Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

svelte-material-ui

hperrin11.5kApache-2.08.0.0-beta.3

Svelte Material UI Components

svelte, svelte3, material-ui, material-design, material, svelte-components, sveltejs

readme

Svelte Material UI

A library of Svelte Material UI components, based on Material Design Components - Web.

Demos, Code Samples, and Guides

https://sveltematerialui.com

Features

Here are some unique features that help SMUI stand out:

  • Full TypeScript support, including HTML attributes.
  • You can add arbitrary attributes to all of the components and many of the elements within them.
  • You can add actions to the components with use={[Action1, [Action2, action2Props], Action3]}.
  • You can add props to lower components and elements with "$" props, like input$maxlength="15".
  • SMUI supports RTL languages.

Installation

To get started, check out the installation docs or the SvelteKit docs.

Need Help?

If you need help installing or using SMUI, join the Discord server.

Svelte 5

SMUI v8 requires Svelte 5. This is the documentation for v8, which is still in development (and is currently in a prerelease state).

If you are using Svelte 4, you can use SMUI v7, which is the current stable version. Check out the v7 branch for the current docs.

Migration

Upgrading from an old version? Be sure to read the migration doc.

Upgrading from v7? You need Svelte 5. Event listeners no longer to use the CustomEvent type. Check out the upgrade instructions.

Upgrading from v6? You need Svelte 4. No more elemental components; you can now use the "tag" prop to change the element. No more "ComponentDev" types; components can now be used as their type. Check out the upgrade instructions.

Upgrading from v5? If you're still using the advanced styling method, it's really time to switch to the easy styling method. '/styled' endpoints are no longer provided. Check out the upgrade instructions.

Upgrading from v4? SMUI v5 requires the TypeScript preprocessor. SMUI v6 does not though, so if you upgrade straight to v6, don't worry. Check out the upgrade instructions.

Upgrading from v3? SMUI's styling method has been simplified. Check out the upgrade instructions.

Upgrading from v2? There are lots of changes listed in the upgrade instructions.

Old Docs

You can find older versions of the docs on their respective branch:

Icons

You can include icons in a number of ways, but the easiest is the Material Icon Font. This will give you the standard set of Material Icons, available with the CSS class "material-icons".

<link
  href="https://fonts.googleapis.com/icon?family=Material+Icons"
  rel="stylesheet"
/>

However, there are two downsides. First is that all icons are downloaded, no matter which ones you use, so the size over the wire will almost certainly be more than necessary. Second is that it only includes the Material Icons from Google.

Another option is the Material Design Icons library. See the "Using SVGs" demo on the Icon Button demo page for instructions to use icons from the @mdi/js package (or any other SVG icons).

You can even use them in data URLs. To get a data URL for the icon:

  1. Find your icon and click "Copy SVG" button (it looks like </>).
  2. Base64 encode the document.
  3. Format the URL like this data:image/svg+xml;base64,encodedcontent, replacing "encodedcontent" with the Base64 results.
  4. Now you have an image URL you can use in an "img" tag src attribute or anywhere else you put an image URL (like background-image: url();).

Components

Click a component/package below to go to the documentation. (Note that this documentation is a work in progress. The demo code should be your main source of truth for how something works.)

† This is Sass based, and therefore doesn't require Svelte components. I've included a demo showing how you can use it.

‡ This is not an MDC-Web component (upstream library). It is an addition that SMUI provides.

  • Labels and icons are named exports in the components that use them, or you can use the 'Label' and 'Icon' exports from '@smui/common'. (Except for chips labels and icons, textfield icons, and select icons, because they are special snowflakes.)

License

Copyright 2019-2024 Hunter Perrin

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

8.0.0-beta.3 (2024-12-22)

Bug Fixes

  • sigh, svelte 5 doesn't support what classAdderBuilder needs, so it had to be refactored (a4df13c)

8.0.0-beta.2 (2024-12-13)

Bug Fixes

  • don't use state rune on accessor lists and maps (0c90d40)
  • use svelte event on instead of addEventListener (11b68e7)

8.0.0-beta.1 (2024-12-11)

Bug Fixes

  • finish some migration steps, update readme (95fbdc2)
  • migrate away from svelte:component (8cc6c77)
  • migrate to new module script declaration in svelte files (c1a918a)
  • remove bindable rune from things that don't need it (2b77cf8)
  • shorten runes options and snippet renders (d1368a6)
  • svg demo (db24e33)
  • type issues (0424a48)
  • use snippets instead of slots for migrated components (99ca184)

Features

  • migrate components in accordion to runes (ae985f3)
  • migrate components in autocomplete to runes (8201ec2)
  • migrate components in badge to runes (20db79a)
  • migrate components in banner to runes (5de28c8)
  • migrate components in bottom app bar to runes (1f92d28)
  • migrate components in button to runes (63c91d4)
  • migrate components in card to runes (dbabb13)
  • migrate components in checkbox to runes (60bf4ef)
  • migrate components in chip input to runes (e53dda1)
  • migrate components in chips to runes (1d9f88d)
  • migrate components in circular progress to runes (a5ff2a0)
  • migrate components in common to runes (0b14a99)
  • migrate components in data table to runes (c4f2909)
  • migrate components in dialog to runes (9c936ab)
  • migrate components in drawer to runes (cd03aa5)
  • migrate components in fab to runes (43a2a1c)
  • migrate components in floating label, line ripple, and notched outline to runes (605ca35)
  • migrate components in form field to runes (b905153)
  • migrate components in icon button to runes (58edcd2)
  • migrate components in image list to runes (9b7063b)
  • migrate components in layout grid to runes (2a806f5)
  • migrate components in linear progress to runes (a82d923)
  • migrate components in list to runes (6ece353)
  • migrate components in menu surface to runes (bde6442)
  • migrate components in menu to runes (42a84e8)
  • migrate components in radio to runes (9e18b62)
  • migrate components in segmented button to runes (1dece23)
  • migrate components in select to runes (451d7c0)
  • migrate components in slider to runes (f1783d9)
  • migrate components in snackbar to runes (30ad599)
  • migrate components in switch to runes (0394217)
  • migrate components in tab and tab bar to runes (3f3ceef)
  • migrate components in text field to runes (7233ecc)
  • migrate components in tooltip to runes (69055f6)
  • migrate components in top app bar to runes (b6dff77)
  • migrate components in touch target to runes (e2a005c)
  • turn on runes mode on demo site and begin migrating (52f1681)

8.0.0-beta.0 (2024-11-19)

Bug Fixes

  • another event name (614ce9a)
  • event names (642c2a3)
  • improve chips trailing action focus state (b61550b)
  • keep autocomplete loading state when one of multiple searches is canceled (19ea8ed)
  • update classadder to work with new svelte component functions (54a4266)

Features

  • add chip-input component (4e82fd8)
  • add new premade theme called Bubblegum (18b496b)
  • migrate Paper slots to snippets (9b7dedd)
  • migrate Paper to runes mode (0e55441)

8.0.0-alpha.0 (2024-05-13)

Bug Fixes

  • custom component types (fa5b473)
  • explicitly opt out of runes mode in all components (96b69f9)

Features

  • change fixation theme large header font (ce56c2b)
  • events for svelte 5, mount events to contexts, event modifiers, remove custom event typing (52d60b8)
  • remove deprecated MDC event names (df78b17)
  • remove forwardEventsBuilder, since it's no longer used (63a2e95)

7.0.0 (2024-05-04)

Note: Version bump only for package svelte-material-ui-dev

7.0.0-beta.18 (2024-03-17)

Bug Fixes

  • rare typerror in buttons ssr (b8760f8)

7.0.0-beta.17 (2024-03-13)

Note: Version bump only for package svelte-material-ui-dev

7.0.0-beta.16 (2023-12-27)

Bug Fixes

  • allow changing the element for the snackbar close button in kitchen (fcaff7c)
  • cast component type to something ts likes (017039f)
  • prettier format extremely slow because autogenerated css not excluded (6dd27e1)
  • typescript and accessibility issues with menus and select inputs (5b4794f)

7.0.0-beta.15 (2023-09-04)

Bug Fixes

  • add declaration files to work around rollup typescript resolving modules to the src directory (b09a46b), closes #556

7.0.0-beta.14 (2023-06-30)

Bug Fixes

  • move omit generic down line to fix union type that is too complex to represent type error (b26b1d4)

7.0.0-beta.13 (2023-06-29)

Bug Fixes

  • rework tag prop to allow svg, simplify prop types to fix ts error (d1610c8)

7.0.0-beta.12 (2023-06-29)

Bug Fixes

  • rewrite google's imports to work in sveltekit (cf99c9e)

7.0.0-beta.11 (2023-06-29)

Bug Fixes

  • if Google's not gonna fix it, I'll fix it myself (e5d8a80)

7.0.0-beta.10 (2023-06-28)

Bug Fixes

  • import ambient types from index files for ts event support (d62e12c)
  • import specifically the module version of segmented button (0a26e4a)
  • move from prop_def to ComponentProps (191126e)
  • reference ambient types instead of importing them (2d1193c)
  • remove reliance on svelte internals from forward events builder (dea2cc9)
  • remove svg types from list (bbcd9e9)
  • suppress typescript issues with importing svelte internals (985183c)

Features

  • migration to Svelte 4 in components (51d2411)
  • use new generics definitions for better typing of components with tag prop (4476f3a)

7.0.0-beta.9 (2023-06-20)

Bug Fixes

  • svelte-material-ui package build after clean checkout (4d2e835)

7.0.0-beta.8 (2023-04-29)

Bug Fixes

  • autocomplete can set text to a non-string value (b4f9fa7)

7.0.0-beta.7 (2023-04-29)

Bug Fixes

  • don't focus autocomplete after selecting item to avoid performaing async search again (a3dda7d)

7.0.0-beta.6 (2023-04-29)

Bug Fixes

  • ensure element is defined when calling addTabindexIfNoItemsSelected by passing it (73fe3df)

7.0.0-beta.5 (2023-04-28)

Bug Fixes

  • add a svelte tick before attempting to add tabindex to list element (859a230)
  • list item can crash if element.getElement is undefined (d617f97)

7.0.0-beta.4 (2023-04-24)

Bug Fixes

  • issue with bad package.json of MDC segmented button (51d4a1c), closes #500

7.0.0-beta.3 (2023-04-06)

Features

  • add premade themes to svelte-material-ui package (bb7fd66)

7.0.0-beta.2 (2023-04-06)

Bug Fixes

  • exported type of ClassAdder component (7f35915)
  • never confuse an exported function type with an html attr type (d00860a), closes #575
  • rounded corners on shadow of accordion panels (5b4a9ff)
  • rounded corners on shadow of button group (dd3c405)

7.0.0-beta.1 (2023-04-04)

Bug Fixes

  • check for NaN value when floating the label in text field (d64bec0)
  • many type issues (d5ade30), closes #527
  • query selector in dialog component (d053274)
  • update packages and fix issues (13050de)

Features

  • export List focusItemAtIndex (4e0aad7), closes #363
  • redo autocomplete resetTextWhenSelected option, use event cancelation instead (78950d4)

7.0.0-beta.0 (2022-10-12)

Bug Fixes

  • adjust position of snackbar when a page level bottom app bar is present (e6db9f2)
  • default element in common icon (98b1536)
  • icon button mini size (9dc65de)
  • return correct element type when the component is static (441bb09)
  • rework Object.entries into more compatible code (41246d4)
  • scroll direction that makes bottom app bar hide (8405e9a)
  • turns out, svelte still doesn't report exported module members in typescript (72702aa)
  • use separate svg component and fix all type errors (9accd0b)
  • workaround for chrome bug with bottom app bar background (c9f0726)

Features

  • add standard variant for bottom app bar with scrolling behavior (68deb4b)
  • migrate to common element component instead of elemental components (8aaf611)
  • new bottom app bar component (8448267)
  • new common element component with dynamic element support (bfa69d2)
  • new typing method gets rid of separate type files, keeps html prop autocomplete (bf7b2a4)
  • redo type system to bring types into their svelte files (61b9395)
  • trying to get components with generic types working (9952576)
  • update to mdc-web 14, implement new features and fixes (cca1827)

6.2.0 (2022-09-27)

Features

  • add a getMenuSurface function to Menu (38e7927)

6.1.4 (2022-09-27)

Bug Fixes

  • update svelte-strip for module script lang fix (2dc89a9)

6.1.3 (2022-08-22)

Bug Fixes

  • workaround for upstream segmented button bad package.json (3c73693)

6.1.2 (2022-08-22)

Bug Fixes

  • segmented button imports wrong path (5a765d2), closes #461

6.1.1 (2022-08-20)

Bug Fixes

  • wrong border radius on last accordion panel (but actually this time) (0ff5099)

6.1.0 (2022-08-20)

Bug Fixes

  • wrong border radius on last accordion panel (026d423)

Features

  • add middle alignments for badges (9431254)

6.0.0 (2022-07-23)

Bug Fixes

  • add type="button" on chip action to prevent form submit (29d91ed)
  • resolved "max height" typo in menu-surface (b5f334f)
  • set accordion opened state based on open value (8f939b3)
  • set menu surface max height if it changes to zero after initialization (563163a)
  • update sveltekit and fix package.json (9dfb3d0), closes #425
  • upgrade packages and fix issues with new versions (67f45cc)

Features

  • add demo code to illustrate how to have multiple snackbar colours (bf9f0bc)
  • cancel tab click if event.defaultPrevented (4f0c60a)

6.0.0-beta.16 (2022-04-11)

Bug Fixes

6.0.0-beta.15 (2022-03-02)

Bug Fixes

  • error when menu is destructed while it's open (de95905)

6.0.0-beta.14 (2022-02-13)

Bug Fixes

  • rename type attributes to lang (88a45ff)
  • update to latest packages, sveltekit and fix issues (ca21255)

Features

  • add label elemental component (533b085)
  • update SvelteKit and move types to separate imports (5fb1216)

6.0.0-beta.13 (2022-01-05)

Bug Fixes

  • import everything from material correctly. replace announce function with own implementation (7ac0383)
  • import from commonjs util file in material animation (85aabaa)

6.0.0-beta.12 (2022-01-05)

Bug Fixes

  • correct entries in package.json files, noExternal config no longer needed (95c56b5), closes #375

6.0.0-beta.11 (2021-12-29)

Bug Fixes

  • let content overflow accordion panels and reset stacking context when a dialog is open in one (800c6ff)

Features

  • add non-interactive prop to accordion panels (dbed3e7)

6.0.0-beta.10 (2021-12-28)

Bug Fixes

  • blur buttons to remove styles when they are disabled (a90dca8)

Features

  • add separate events for opening, closing, opened, and closed in accordion (95eeea5)

6.0.0-beta.9 (2021-12-15)

Bug Fixes

  • allow textfield to use undefined as value (351acbb)

6.0.0-beta.8 (2021-12-14)

Features

  • extending accordion panels, better animation, better mobile styling (635da12)

6.0.0-beta.7 (2021-12-14)

Bug Fixes

  • add disabled prop in autocomplete (6331151)
  • properly forward the label to the textfield in autocomplete (8ffcab7)

Features

  • new accordion component (006903f)

6.0.0-beta.6 (2021-12-11)

Bug Fixes

  • correct slots (8f3cc3b)
  • migrate autocomplete to typescript and new features, also some fixes (0107ca6)
  • move menu style in class (3800386)
  • remove unused args on unsubscribe (a7f2aca)

Features

  • add autocomplete component (e3025e4)
  • add custom textfield support (2b82dfb)
  • add freeSolo (0ce827c)
  • customizability & add examples (7a0bc30)
  • export action function (9c0f9f5)
  • focus on textfield while browsing options (b7f86eb)

6.0.0-beta.5 (2021-12-10)

Features

  • new badge component (65fcd64)
  • new paper variants, unelevated and outlined (8091b32)

6.0.0-beta.4 (2021-11-25)

Features

  • dispatch an event when the switch's value is changed (087331b)

6.0.0-beta.3 (2021-11-24)

Bug Fixes

  • include svelte tsconfig from common module (2cfc838)

6.0.0-beta.2 (2021-11-17)

Bug Fixes

  • common doesn't have a default export (a29127f)

6.0.0-beta.1 (2021-11-17)

Bug Fixes

  • lock to last good ts minor version, add index files for repl (d77c735)

6.0.0-beta.0 (2021-11-17)

Bug Fixes

  • add getActiveElement to tooltip adapter (429a141)
  • add getAttributeFromElementAtIndex to menu adapter (18f0d3e)
  • add removeAttribute to tooltip adapter (018556a)
  • get sass compiling for all packages (6405961)
  • get sass compiling in dev env for site with smui-theme (08fd30f)
  • import paths no longer support or require index suffix (3619881)
  • migrate sass to compile with latest mdc-web (e9c4a7f)
  • rm deprecation warn by updating to material 12 + breaking changes (e3e95e1)
  • tooltip issue during hot reload (395f411)
  • update other packages, move svelte to peerDependencies (2c1b137)
  • use mdc-web's sass imports and include sass from dev packages (5ccdf53)

Features

  • add default on displayFlex prop to icon button for centering content (fc81366)
  • add margin to switch, clean up no longer needed sass (312372d)
  • add ripple and touch elements to icon button (f14c050)
  • add row click event for data table (cf3ebb2)
  • add show and hide delay props for tooltips (7ad2688)
  • add skipRestoreFocus property to list item for menus (58b98e0)
  • add tooltip hideFromScreenreader prop (a5f74c2)
  • added ability to remove switch icons (bab3fec)
  • let slider's props be changed after init (9043afe)
  • migrate switch to new mdc-web version (943795f)
  • mini and button sizes for icon button (1e2c8d5)
  • new getFocusedItemIndex list function, card ripple, touch demos (8e0b64c)
  • new getSelectedIndex menu function (7ad7156)
  • new getUseDefaultValidation and setUseDefaultValidation select functions (fc83dde)
  • new package directory structure, include stripped svelte files so no preprocess needed (382e78d)
  • remove styled endpoints and update readme and installation docs (c8755d4)
  • rename MDC events to SMUI events (55effc6)
  • set useDefaultValidation automatically in select (ac51132)
  • upgrade mdc-web packages to v13 (9f0457f)

BREAKING CHANGES

  • No more styled endpoints, so the advanced styling method now requires that you import the Sass yourself.

5.0.1 (2021-11-16)

Bug Fixes

  • classadder not loaded from explicit path (46c5a3c)

5.0.0 (2021-11-10)

Features

  • let segmented button selection be controlled manually (835ef80)

5.0.0-beta.8 (2021-11-02)

Bug Fixes

  • work around list foundation using setTimeout before accessing the adapter (a72ee10)

5.0.0-beta.7 (2021-09-28)

Bug Fixes

  • cannot access internals before initialization (d297517), closes #329

5.0.0-beta.6 (2021-09-27)

Bug Fixes

  • forward blur and focus events from textfield (0a9b508), closes #328
  • incorrect import path for scss file in button (126d764)
  • internals causing issues being outside of class adder component (1c29076), closes #329
  • lock sass to the last working minor release (62d4895), closes #334

5.0.0-beta.5 (2021-09-18)

Bug Fixes

  • remove smui.d file and SMUIComponent declaration class (ef30919)

5.0.0-beta.4 (2021-09-17)

Bug Fixes

  • use index.js endpoint within elements and internal for common package imports (cf76ed2)

5.0.0-beta.3 (2021-09-17)

Bug Fixes

  • include extensions in import paths (3c06e33)
  • material dom announce unable to import (c222858)
  • undo announce fix, which was wrong (0e4c625)

Features

BREAKING CHANGES

  • Bare endpoints in packages have been removed. You don't need them.

5.0.0-beta.2 (2021-09-15)

Bug Fixes

  • smui-theme template 404 issue (59a94b4)

5.0.0-beta.1 (2021-09-14)

Bug Fixes

  • correctly provide html attributes (048a11d)
  • data table checkboxes and sorting (e88a19c)
  • some type issues and simpler ambient declarations (44e2cea)

5.0.0-beta.0 (2021-09-14)

Bug Fixes

  • listeners for manually forwarded events bound with modifiers were called twice (3096ffc)
  • make non-index import paths explicit (2821cb0)
  • some more type errors (f4b8568)
  • textfield had some issues (fce60e1)
  • type errors after making site package strict (7cdcad9)

Features

  • add input props and element props to textfield type (c929bb8)
  • add prop types for HTML props for components (f5c6e53)
  • got sveltekit working local in dev (024b19a)
  • implement js builds of all ts files (085b829)
  • migrate banner to typescript (dae0f3c)
  • migrate card to typescript (c1a9ef2)
  • migrate chips to typescript (075f48a)
  • migrate circular progress and linear progress to typescript (ba5dc2a)
  • migrate common and button to typescript (cf9c6af)
  • migrate data table to typescript (f654b9b)
  • migrate dialog to typescript (a881c73)
  • migrate drawer to typescript (223b72b)
  • migrate fab and icon button to typescript (5e81e89)
  • migrate floating label, line ripple, and notched outline to typescript (f05373e)
  • migrate image list to typescript (e9a8a32)
  • migrate layout grid to typescript (3eb3d49)
  • migrate list, checkbox, and radio to typescript (6b475a5)
  • migrate menu surface and menu to typescript (b479315)
  • migrate paper to typescript (a146d9e)
  • migrate segmented button and touch target to typescript (5ecd2d9)
  • migrate select to typescript (c555fa1)
  • migrate slider to typescript (42c8c00)
  • migrate snackbar to typescript (b7bb054)
  • migrate switch and form field to typescript (e012927)
  • migrate tab, tab bar, tab indicator, and tab scroller to typescript (e5dc8a9)
  • migrate textfield to typescript (0010211)
  • migrate tooltip to typescript (6b32c1a)
  • migrate top app bar to typescript (38fd192)

BREAKING CHANGES

  • Renamed SMUI events from like SMUI:component:event to like SMUIComponent:event.
  • Had to rename export "default" from Button to "defaultAction".

4.2.0 (2021-05-05)

Bug Fixes

  • events with modifiers called once for every event listener on event (4234efa)
  • textfield layout (0ff4b00), closes #241

Features

  • allow customizing Label component, add Em and Strong elemental components (5dd42e2)

4.1.0 (2021-04-28)

Bug Fixes

  • remove duplicate change and input event forwarding (641acf1), closes #233
  • required causes textfield to use native validation, label stops floating when value deleted (b13b2a0), closes #234
  • slider external updates not reflected in UI (d46b854)
  • textfield labels and notches show incorrect state and position (c935423), closes #236
  • theme builder error when the output directory doesn't exist (36c2531)
  • warnings about unexpected slot in Img and Hr (98a555f)

Features

  • change event modifier syntax to allow use on all events (1fe4f82)
  • include props for conditional icons on Textfield and Select (2d95dc7), closes #230

Reverts

4.0.0 (2021-04-24)

Bug Fixes

  • let textfield value be null (769678c), closes #143
  • textfield baseline alignment in safari (7186a26), closes #226
  • textfield trailing icon padding (744cb55), closes #227

Features

  • add focus trap to banner (79d70de)
  • new Theme Builder package (a717225)
  • remove style importing from index files, no more /bare (2ab900a)

3.1.0 (2021-04-22)

Features

  • update to MDC 11, new fullscreen dialogs (ee962bc)

Reverts

3.0.3 (2021-04-22)

Bug Fixes

  • import only from Ripple index (99ed6dc)

3.0.2 (2021-04-21)

Features

  • new easy styling method (9c58fc9)

3.0.1 (2021-04-21)

Features

  • implement fixes and workarounds for Vite and SvelteKit (9ed43aa)

Reverts

3.0.0 (2021-04-19)

Bug Fixes

  • button order when dialog auto stack buttons in false (98e9a63)
  • fab link text color (f91c438)
  • icon button pressed state wasn't setting aria attrs without toggle (ce550f1)

3.0.0-beta.12 (2021-04-18)

Features

  • allow using objects as Select options (880a22b)

3.0.0-beta.11 (2021-04-18)

Bug Fixes

  • data table sticky header, top app bar demos on mobile, reference errors (236f6d2)

Features

  • new Data Table Column Sort feature (c831855)
  • new Data Table Pagination component (267f31d)
  • new Data Table Progress Indicator component (b6e5cd6)

3.0.0-beta.10 (2021-04-17)

Features

  • new Segmented Button component (4b1dc50)

3.0.0-beta.9 (2021-04-16)

Bug Fixes

  • focus indicator on keyboard focus checkbox and switch (219d146)
  • menu surface anchor adds classes with default function (27f5a16)
  • non-interactive chip text color (e673c93)
  • primary action span missing from chips (17758af)
  • remove more event forwarding declarations (17165ce)
  • remove Slider highlight color on tap in Chrome (3ccb603), closes #219
  • use passive listener on tooltip window scroll (377de62)

Features

  • add nonInteractive chip set feature and fix chip tabindex management (c1f223f)
  • new Tooltip component (6293aef)

3.0.0-beta.8 (2021-04-15)

Features

  • forward all events, and only forward when bound, and allow modifiers (50a0db3)

3.0.0-beta.7 (2021-04-15)

Features

  • allow disabling textarea resize (ebb84af)
  • new Touch Target component (4b576b2)

Reverts

  • Revert "docs: use absolute links in package readmes" (3392c16)

3.0.0-beta.6 (2021-04-14)

Features

  • new Layout Grid component (f253dbd)

3.0.0-beta.5 (2021-04-14)

Bug Fixes

  • classAdderBuilder polluting ClassAdder internals (b484114)
  • fixed banners next to drawers were positioned wrong (5143e11)

Features

  • new Circular Progress component (7a0b797)

3.0.0-beta.4 (2021-04-12)

Bug Fixes

  • outlined select menu labels (020cb0c)

Features

3.0.0-beta.3 (2021-04-12)

Bug Fixes

  • add ripple style on buttons when style prop is defined (aa65603)
  • allow styles on components with ripples (1c6b28a)
  • don't focus tab when activated programmatically by default (59c66b1)
  • floating label noLabel default to false (cf06c28)
  • outlined textfield labels (07e7544)
  • reference error on button GroupItem (41402f8)

3.0.0-beta.2 (2021-04-11)

Bug Fixes

  • removed a debugger statement left in the code (966e3f2)

3.0.0-beta.1 (2021-04-11)

Bug Fixes

  • allow keyboard navigation to tabs when none are active (13c1812)
  • svgs in icon buttons were focusable (f9d2678)

3.0.0-beta.0 (2021-04-11)

Bug Fixes

  • button styling, menu events (53d0282)
  • checkbox lists (c6df907)
  • class and attr removal (b3ca6f1)
  • dont use a store for HelperText id (b0c4fbd)
  • drawer item ripple color (d1de7f9)
  • drawer scrim positioning (444ebf9)
  • fix some demo bugs (f551776)
  • fixed event bubbling (8b40fa0)
  • get element and pass events correctly (d405de5)
  • import ripple styles from slider (86ed83b)
  • list item ripples and menus (4010556)
  • list selected ripple color (76dc500)
  • modal drawer absolute positioning (d180ee3)
  • more components fixes (fbdf204)
  • programmatic change on Switch (8162ff3)
  • reference error on tabs unloading (a970335)
  • ripple activation and colors (d584be7)
  • ripple demo and classes (b9a2530)
  • selection dialog and stacked buttons styling (d0987ca)
  • slider input now updates value (0b16829)
  • slider value attribute getter (656fbc3)
  • slider value setting and range demo (4f7869b)
  • textfield onDestroy issues (5d23ed0)
  • toggle icon buttons (7eb48c7)
  • update all the sass imports (172a557)
  • update new class internals to report hasClass properly (52a7b2c)
  • use new service for placeholder images (095e00f)

Features

  • add getElement method to all components (f293cf3)
  • add primary color option to Switch (a77bca9)
  • re-enable Button bare styles (cf74655)
  • remove FOUC on Sapper installation instructions (988c919)
  • started updating List for MDC v10 (8bf2727)
  • update more Sass imports to use (4061e59)
  • updated Button for MDC v10 (ecf16e7)
  • updated Card for MDC v10 (047ee65)
  • updated Checkbox for MDC v10 (9efc1b4)
  • updated Chips for MDC v10 (5ca1c05)
  • updated Data Tables for MDC v10 (89cbd52)
  • updated Dialog for MDC v10 (2cc5c15)
  • updated Drawer for MDC v10 (25adc19)
  • updated Elevation demo for MDC v10 (3430a9f)
  • updated Floating Actio Button for MDC v10 (4a85665)
  • updated Floating Label for MDC v10 (452e95a)
  • updated IconButton for MDC v10 (1a6fc5a)
  • updated Image List for MDC v10 (015db52)
  • updated Line Ripple for MDC v10 (66b54ca)
  • updated Linear Progress for MDC v10 (86c7766)
  • updated List for MDC v10 (849e007)
  • updated Menu for MDC v10 (ddd6262)
  • updated MenuSurface for MDC v10 (c032c89)
  • updated Notched Outline for MDC v10 (24b2699)
  • updated Paper for MDC v10 (7ebfb06)
  • updated Radio and FormField for MDC v10 (f1f95b7)
  • updated Ripple for MDC v10 (ae3f23d)
  • updated Select Menus for MDC v10 (f066d20)
  • updated site for SMUI 3 components (f24c25f)
  • updated Slider for MDC v10 (be1aab4)
  • updated Snackbars and Kitchen for MDC v10 (78974e5)
  • updated Switch for MDC v10 (b1b81d5)
  • updated Tab, TabBar, TabIndicator, TabScroller for MDC v10 (3e4bd27)
  • updated Text Field for MDC v10 (60e10c2)
  • updated Theme demo for MDC v10 (81091eb)
  • updated TopAppBar for MDC v10 (6cf291d)
  • updated Typography for MDC v10 (858751a)
  • upgrade upstream MDC components to v10 (d47c59a)

BREAKING CHANGES

  • Upgrading to v10 of upstream components. Their APIs will change. View the component READMEs.

2.0.0-beta.1 (2021-03-27)

Features

  • forward blur and focus from other inputs (6059f87)

2.0.0-beta.0 (2021-01-01)

Bug Fixes

Features

  • updated touch features for MDC 4 (b06e851)

2.0.0-alpha.0 (2020-12-31)

Bug Fixes

  • filter chip leading icon wasn't hidden correctly (b011df9)
  • fix buttons, ripples, and list item for new mdc (9b902b5)
  • forward events from dynamic components correctly (5367449)

Features

  • update chips to work with MDC 4 (2c28796)
  • update Select to work with MDC 4 (81a7ee9)
  • updated form field related features for MDC 4 (4894cfb)

BREAKING CHANGES

  • Select has some breaking changes listed in the migration docs.
  • Chips has several breaking changes listed in the migration docs.

1.1.0 (2020-12-24)

Features

  • make tab an anchor if href prop is present (d9f800b)

1.0.0 (2020-08-04)

Note: Version bump only for package svelte-material-ui

1.0.0-beta.21 (2020-04-19)

Bug Fixes

  • undefined current_component in browsers not supporting import #60 (708abd6)

1.0.0-beta.20 (2020-01-31)

Bug Fixes

  • Cannot read property 'destroy' of undefined in menuSurface (2bd8d37)
  • fix button group styling in Safari/iOS (eb52cc6)
  • fix Svelte warning about unused class export (baac41b)

Features

  • add component option to Button to allow other elements/components (95d4d49)
  • reduce Ripple arguments and add class forwarding option (550ac93)

1.0.0-beta.19 (2019-12-13)

Bug Fixes

  • prevent new Svelte versions from mangling MDC classes (8a94e95), closes #52
  • stop empty attrs on elements (084bc39)

Features

  • add shape props for button to create rounded buttons (a94cf69)
  • add shape props for button to create rounded buttons (7fb3b8b)

1.0.0-beta.18 (2019-11-08)

Bug Fixes

  • layout components when dialog is opened (fee2755), closes #35
  • remove hoisted menu-surface from body in onDestroy (8e905b7)
  • working on fixing dialog. wip (601d4fd)

1.0.0-beta.17 (2019-10-28)

Bug Fixes

  • fixed initial value state of Select component (4afdfc2)
  • handle blank number input as NaN (939543f)

Features

  • add three line lists (modifying MintyMods code) (5894c23)
  • update MDC package versions to 3.2.0 (605753d)

1.0.0-beta.16 (2019-09-24)

Note: Version bump only for package svelte-material-ui

1.0.0-beta.15 (2019-09-13)

Bug Fixes

  • fixed ClassAdder components to allow SSR (de0daa1), closes #29
  • forgot the dialog excludes (78e6ca9)
  • let dialog buttons be links, even though it's not MDC compliant (e504cd7)
  • prefer direct for prop over context on floating label (9184532)

1.0.0-beta.14 (2019-09-07)

Bug Fixes

  • fixed more sass commands (1c81e01)
  • fixed the packages' sass commands (97d64ea)

1.0.0-beta.13 (2019-09-06)

Features

  • add bare js and css to all components (ebe7a6d)

1.0.0-beta.12 (2019-09-06)

Bug Fixes

  • properly import Ripple and its styles (9588c8b)

1.0.0-beta.11 (2019-09-06)

Bug Fixes

  • allow for prop on wrapped floating label (b69049c)
  • import styles correctly (37e6fa6)

Features

  • provide bare js and css (button only for test) for use in REPL (1b9a268)

1.0.0-beta.10 (2019-09-03)

Bug Fixes

  • dependencies between packages (a883601)

1.0.0-beta.8 (2019-08-30)

Note: Version bump only for package svelte-material-ui

1.0.0-beta.7 (2019-08-29)

1.0.0-beta.6 (2019-08-27)

Note: Version bump only for package svelte-material-ui