@mozaic-ds/web-components 1.0.0-beta.6 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -68
- package/dist/Cross20.js +1 -1
- package/dist/Cross20.js.map +1 -1
- package/dist/Cross24.js +1 -1
- package/dist/Cross24.js.map +1 -1
- package/dist/CrossCircleFilled24.js +1 -1
- package/dist/CrossCircleFilled24.js.map +1 -1
- package/dist/attributes.js +1 -1
- package/dist/attributes.js.map +1 -1
- package/dist/bundle.d.ts +24 -23
- package/dist/bundle.d.ts.map +1 -1
- package/dist/bundle.js +24 -23
- package/dist/components/avatar/Avatar.js +2 -5
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/avatar/Avatar.spec.js +17 -0
- package/dist/components/avatar/Avatar.stories.d.ts.map +1 -1
- package/dist/components/avatar/Avatar.stories.js +3 -29
- package/dist/components/avatar/Avatar.svelte +9 -10
- package/dist/components/avatar/Avatar.svelte.d.ts +2 -0
- package/dist/components/avatar/Avatar.svelte.d.ts.map +1 -1
- package/dist/components/avatar/README.md +16 -0
- package/dist/components/breadcrumb/Breadcrumb.js +6 -9
- package/dist/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/breadcrumb/Breadcrumb.spec.js +42 -0
- package/dist/components/breadcrumb/Breadcrumb.stories.d.ts.map +1 -1
- package/dist/components/breadcrumb/Breadcrumb.stories.js +6 -35
- package/dist/components/breadcrumb/Breadcrumb.svelte +26 -34
- package/dist/components/breadcrumb/Breadcrumb.svelte.d.ts.map +1 -1
- package/dist/components/breadcrumb/README.md +11 -0
- package/dist/components/button/Button.js +3 -6
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/button/Button.spec.js +74 -0
- package/dist/components/button/Button.stories.d.ts +9 -13
- package/dist/components/button/Button.stories.d.ts.map +1 -1
- package/dist/components/button/Button.stories.js +46 -146
- package/dist/components/button/Button.svelte +186 -168
- package/dist/components/button/Button.svelte.d.ts +36 -8
- package/dist/components/button/Button.svelte.d.ts.map +1 -1
- package/dist/components/button/README.md +26 -0
- package/dist/components/callout/Callout.js +2 -5
- package/dist/components/callout/Callout.js.map +1 -1
- package/dist/components/callout/Callout.spec.js +33 -0
- package/dist/components/callout/Callout.stories.d.ts.map +1 -1
- package/dist/components/callout/Callout.stories.js +2 -55
- package/dist/components/callout/Callout.svelte +15 -14
- package/dist/components/callout/Callout.svelte.d.ts +4 -0
- package/dist/components/callout/Callout.svelte.d.ts.map +1 -1
- package/dist/components/callout/README.md +20 -0
- package/dist/components/checkbox/Checkbox.js +3 -6
- package/dist/components/checkbox/Checkbox.js.map +1 -1
- package/dist/components/checkbox/Checkbox.spec.js +70 -0
- package/dist/components/checkbox/Checkbox.stories.d.ts +11 -16
- package/dist/components/checkbox/Checkbox.stories.d.ts.map +1 -1
- package/dist/components/checkbox/Checkbox.stories.js +67 -124
- package/dist/components/checkbox/Checkbox.svelte +75 -58
- package/dist/components/checkbox/Checkbox.svelte.d.ts +31 -6
- package/dist/components/checkbox/Checkbox.svelte.d.ts.map +1 -1
- package/dist/components/checkbox/README.md +17 -0
- package/dist/components/checkboxgroup/CheckboxGroup.js +4 -7
- package/dist/components/checkboxgroup/CheckboxGroup.js.map +1 -1
- package/dist/components/checkboxgroup/CheckboxGroup.spec.js +113 -0
- package/dist/components/checkboxgroup/CheckboxGroup.stories.d.ts +5 -13
- package/dist/components/checkboxgroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/dist/components/checkboxgroup/CheckboxGroup.stories.js +56 -140
- package/dist/components/checkboxgroup/CheckboxGroup.svelte +89 -81
- package/dist/components/checkboxgroup/CheckboxGroup.svelte.d.ts +30 -6
- package/dist/components/checkboxgroup/CheckboxGroup.svelte.d.ts.map +1 -1
- package/dist/components/checkboxgroup/README.md +14 -0
- package/dist/components/circularprogressbar/CircularProgressbar.js +4 -7
- package/dist/components/circularprogressbar/CircularProgressbar.js.map +1 -1
- package/dist/components/circularprogressbar/CircularProgressbar.spec.js +74 -0
- package/dist/components/circularprogressbar/CircularProgressbar.stories.d.ts +6 -6
- package/dist/components/circularprogressbar/CircularProgressbar.stories.d.ts.map +1 -1
- package/dist/components/circularprogressbar/CircularProgressbar.stories.js +29 -68
- package/dist/components/circularprogressbar/CircularProgressbar.svelte +46 -30
- package/dist/components/circularprogressbar/CircularProgressbar.svelte.d.ts +18 -0
- package/dist/components/circularprogressbar/CircularProgressbar.svelte.d.ts.map +1 -1
- package/dist/components/circularprogressbar/README.md +14 -0
- package/dist/components/datepicker/Datepicker.js +3 -6
- package/dist/components/datepicker/Datepicker.js.map +1 -1
- package/dist/components/datepicker/Datepicker.spec.js +95 -0
- package/dist/components/datepicker/Datepicker.stories.d.ts +7 -6
- package/dist/components/datepicker/Datepicker.stories.d.ts.map +1 -1
- package/dist/components/datepicker/Datepicker.stories.js +58 -75
- package/dist/components/datepicker/Datepicker.svelte +103 -79
- package/dist/components/datepicker/Datepicker.svelte.d.ts +30 -1
- package/dist/components/datepicker/Datepicker.svelte.d.ts.map +1 -1
- package/dist/components/datepicker/README.md +18 -0
- package/dist/components/drawer/Drawer.js +12 -15
- package/dist/components/drawer/Drawer.js.map +1 -1
- package/dist/components/drawer/Drawer.spec.js +101 -0
- package/dist/components/drawer/Drawer.stories.d.ts +29 -8
- package/dist/components/drawer/Drawer.stories.d.ts.map +1 -1
- package/dist/components/drawer/Drawer.stories.js +86 -87
- package/dist/components/drawer/Drawer.svelte +185 -161
- package/dist/components/drawer/Drawer.svelte.d.ts +26 -3
- package/dist/components/drawer/Drawer.svelte.d.ts.map +1 -1
- package/dist/components/drawer/README.md +29 -0
- package/dist/components/field/Field.js +3 -6
- package/dist/components/field/Field.js.map +1 -1
- package/dist/components/field/Field.spec.js +51 -0
- package/dist/components/field/Field.stories.d.ts +9 -15
- package/dist/components/field/Field.stories.d.ts.map +1 -1
- package/dist/components/field/Field.stories.js +86 -142
- package/dist/components/field/Field.svelte +63 -30
- package/dist/components/field/Field.svelte.d.ts +38 -7
- package/dist/components/field/Field.svelte.d.ts.map +1 -1
- package/dist/components/field/README.md +24 -0
- package/dist/components/flag/Flag.js +2 -5
- package/dist/components/flag/Flag.js.map +1 -1
- package/dist/components/flag/Flag.spec.js +30 -0
- package/dist/components/flag/Flag.stories.d.ts +8 -18
- package/dist/components/flag/Flag.stories.d.ts.map +1 -1
- package/dist/components/flag/Flag.stories.js +28 -106
- package/dist/components/flag/Flag.svelte +23 -24
- package/dist/components/flag/Flag.svelte.d.ts +10 -28
- package/dist/components/flag/Flag.svelte.d.ts.map +1 -1
- package/dist/components/flag/README.md +11 -0
- package/dist/components/iconbutton/IconButton.js +2 -5
- package/dist/components/iconbutton/IconButton.js.map +1 -1
- package/dist/components/iconbutton/IconButton.stories.d.ts +11 -11
- package/dist/components/iconbutton/IconButton.stories.d.ts.map +1 -1
- package/dist/components/iconbutton/IconButton.stories.js +51 -67
- package/dist/components/iconbutton/IconButton.svelte +157 -152
- package/dist/components/iconbutton/IconButton.svelte.d.ts +28 -7
- package/dist/components/iconbutton/IconButton.svelte.d.ts.map +1 -1
- package/dist/components/iconbutton/README.md +21 -0
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.js +2 -5
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.js.map +1 -1
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.spec.js +28 -0
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.stories.d.ts +5 -7
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.stories.d.ts.map +1 -1
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.stories.js +18 -49
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.svelte +19 -12
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.svelte.d.ts +10 -1
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.svelte.d.ts.map +1 -1
- package/dist/components/linearprogressbarbuffer/README.md +11 -0
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.js +2 -5
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.js.map +1 -1
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.spec.js +26 -0
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.stories.d.ts +4 -5
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.stories.d.ts.map +1 -1
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.stories.js +15 -33
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.svelte +19 -16
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.svelte.d.ts +6 -0
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.svelte.d.ts.map +1 -1
- package/dist/components/linearprogressbarpercentage/README.md +10 -0
- package/dist/components/link/Link.js +2 -5
- package/dist/components/link/Link.js.map +1 -1
- package/dist/components/link/Link.spec.js +51 -0
- package/dist/components/link/Link.stories.d.ts +12 -12
- package/dist/components/link/Link.stories.d.ts.map +1 -1
- package/dist/components/link/Link.stories.js +61 -74
- package/dist/components/link/Link.svelte +54 -52
- package/dist/components/link/Link.svelte.d.ts +29 -8
- package/dist/components/link/Link.svelte.d.ts.map +1 -1
- package/dist/components/link/README.md +23 -0
- package/dist/components/loader/Loader.js +7 -10
- package/dist/components/loader/Loader.js.map +1 -1
- package/dist/components/loader/Loader.spec.js +54 -0
- package/dist/components/loader/Loader.stories.d.ts +8 -10
- package/dist/components/loader/Loader.stories.d.ts.map +1 -1
- package/dist/components/loader/Loader.stories.js +27 -43
- package/dist/components/loader/Loader.svelte +42 -43
- package/dist/components/loader/Loader.svelte.d.ts +14 -3
- package/dist/components/loader/Loader.svelte.d.ts.map +1 -1
- package/dist/components/loader/README.md +12 -0
- package/dist/components/loadingoverlay/LoadingOverlay.js +4 -0
- package/dist/components/loadingoverlay/LoadingOverlay.js.map +1 -0
- package/dist/components/loadingoverlay/LoadingOverlay.spec.js +38 -0
- package/dist/components/loadingoverlay/LoadingOverlay.stories.d.ts +7 -0
- package/dist/components/loadingoverlay/LoadingOverlay.stories.d.ts.map +1 -0
- package/dist/components/loadingoverlay/LoadingOverlay.stories.js +39 -0
- package/dist/components/loadingoverlay/LoadingOverlay.svelte +50 -0
- package/dist/components/loadingoverlay/LoadingOverlay.svelte.d.ts +17 -0
- package/dist/components/loadingoverlay/LoadingOverlay.svelte.d.ts.map +1 -0
- package/dist/components/loadingoverlay/README.md +11 -0
- package/dist/components/modal/Modal.js +14 -17
- package/dist/components/modal/Modal.js.map +1 -1
- package/dist/components/modal/Modal.spec.js +50 -0
- package/dist/components/modal/Modal.stories.d.ts +36 -9
- package/dist/components/modal/Modal.stories.d.ts.map +1 -1
- package/dist/components/modal/Modal.stories.js +54 -83
- package/dist/components/modal/Modal.svelte +167 -166
- package/dist/components/modal/Modal.svelte.d.ts +22 -5
- package/dist/components/modal/Modal.svelte.d.ts.map +1 -1
- package/dist/components/modal/README.md +28 -0
- package/dist/components/numberbadge/NumberBadge.js +2 -5
- package/dist/components/numberbadge/NumberBadge.js.map +1 -1
- package/dist/components/numberbadge/NumberBadge.spec.js +28 -0
- package/dist/components/numberbadge/NumberBadge.stories.d.ts +9 -13
- package/dist/components/numberbadge/NumberBadge.stories.d.ts.map +1 -1
- package/dist/components/numberbadge/NumberBadge.stories.js +28 -56
- package/dist/components/numberbadge/NumberBadge.svelte +36 -35
- package/dist/components/numberbadge/NumberBadge.svelte.d.ts +15 -4
- package/dist/components/numberbadge/NumberBadge.svelte.d.ts.map +1 -1
- package/dist/components/numberbadge/README.md +12 -0
- package/dist/components/overlay/Overlay.js +2 -5
- package/dist/components/overlay/Overlay.js.map +1 -1
- package/dist/components/overlay/Overlay.spec.js +29 -0
- package/dist/components/overlay/Overlay.stories.d.ts +5 -7
- package/dist/components/overlay/Overlay.stories.d.ts.map +1 -1
- package/dist/components/overlay/Overlay.stories.js +32 -40
- package/dist/components/overlay/Overlay.svelte +21 -12
- package/dist/components/overlay/Overlay.svelte.d.ts +11 -0
- package/dist/components/overlay/Overlay.svelte.d.ts.map +1 -1
- package/dist/components/overlay/README.md +17 -0
- package/dist/components/pagination/Pagination.js +8 -11
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/components/pagination/Pagination.spec.js +65 -0
- package/dist/components/pagination/Pagination.stories.d.ts +8 -11
- package/dist/components/pagination/Pagination.stories.d.ts.map +1 -1
- package/dist/components/pagination/Pagination.stories.js +37 -91
- package/dist/components/pagination/Pagination.svelte +53 -35
- package/dist/components/pagination/Pagination.svelte.d.ts +27 -4
- package/dist/components/pagination/Pagination.svelte.d.ts.map +1 -1
- package/dist/components/pagination/README.md +16 -0
- package/dist/components/passwordinput/PasswordInput.js +4 -9
- package/dist/components/passwordinput/PasswordInput.js.map +1 -1
- package/dist/components/passwordinput/PasswordInput.spec.js +84 -0
- package/dist/components/passwordinput/PasswordInput.stories.d.ts +10 -13
- package/dist/components/passwordinput/PasswordInput.stories.d.ts.map +1 -1
- package/dist/components/passwordinput/PasswordInput.stories.js +67 -124
- package/dist/components/passwordinput/PasswordInput.svelte +424 -60
- package/dist/components/passwordinput/PasswordInput.svelte.d.ts +34 -2
- package/dist/components/passwordinput/PasswordInput.svelte.d.ts.map +1 -1
- package/dist/components/passwordinput/README.md +19 -0
- package/dist/components/pincode/Pincode.js +4 -7
- package/dist/components/pincode/Pincode.js.map +1 -1
- package/dist/components/pincode/Pincode.spec.js +99 -0
- package/dist/components/pincode/Pincode.stories.d.ts +9 -13
- package/dist/components/pincode/Pincode.stories.d.ts.map +1 -1
- package/dist/components/pincode/Pincode.stories.js +62 -127
- package/dist/components/pincode/Pincode.svelte +72 -60
- package/dist/components/pincode/Pincode.svelte.d.ts +30 -24
- package/dist/components/pincode/Pincode.svelte.d.ts.map +1 -1
- package/dist/components/pincode/README.md +22 -0
- package/dist/components/quantityselector/QuantitySelector.js +3 -7
- package/dist/components/quantityselector/QuantitySelector.js.map +1 -1
- package/dist/components/quantityselector/QuantitySelector.spec.js +104 -0
- package/dist/components/quantityselector/QuantitySelector.stories.d.ts +11 -15
- package/dist/components/quantityselector/QuantitySelector.stories.d.ts.map +1 -1
- package/dist/components/quantityselector/QuantitySelector.stories.js +77 -145
- package/dist/components/quantityselector/QuantitySelector.svelte +136 -112
- package/dist/components/quantityselector/QuantitySelector.svelte.d.ts +49 -17
- package/dist/components/quantityselector/QuantitySelector.svelte.d.ts.map +1 -1
- package/dist/components/quantityselector/README.md +21 -0
- package/dist/components/radio/README.md +15 -0
- package/dist/components/radio/Radio.js +2 -5
- package/dist/components/radio/Radio.js.map +1 -1
- package/dist/components/radio/Radio.spec.js +60 -0
- package/dist/components/radio/Radio.stories.d.ts +9 -13
- package/dist/components/radio/Radio.stories.d.ts.map +1 -1
- package/dist/components/radio/Radio.stories.js +54 -70
- package/dist/components/radio/Radio.svelte +58 -39
- package/dist/components/radio/Radio.svelte.d.ts +27 -5
- package/dist/components/radio/Radio.svelte.d.ts.map +1 -1
- package/dist/components/radiogroup/README.md +14 -0
- package/dist/components/radiogroup/RadioGroup.js +4 -7
- package/dist/components/radiogroup/RadioGroup.js.map +1 -1
- package/dist/components/radiogroup/RadioGroup.spec.js +65 -0
- package/dist/components/radiogroup/RadioGroup.stories.d.ts +5 -12
- package/dist/components/radiogroup/RadioGroup.stories.d.ts.map +1 -1
- package/dist/components/radiogroup/RadioGroup.stories.js +56 -151
- package/dist/components/radiogroup/RadioGroup.svelte +81 -77
- package/dist/components/radiogroup/RadioGroup.svelte.d.ts +28 -9
- package/dist/components/radiogroup/RadioGroup.svelte.d.ts.map +1 -1
- package/dist/components/select/README.md +18 -0
- package/dist/components/select/Select.js +3 -6
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/select/Select.spec.js +76 -0
- package/dist/components/select/Select.stories.d.ts +10 -14
- package/dist/components/select/Select.stories.d.ts.map +1 -1
- package/dist/components/select/Select.stories.js +87 -92
- package/dist/components/select/Select.svelte +77 -67
- package/dist/components/select/Select.svelte.d.ts +41 -10
- package/dist/components/select/Select.svelte.d.ts.map +1 -1
- package/dist/components/statusbadge/README.md +11 -0
- package/dist/components/statusbadge/StatusBadge.js +2 -5
- package/dist/components/statusbadge/StatusBadge.js.map +1 -1
- package/dist/components/statusbadge/StatusBadge.spec.js +31 -0
- package/dist/components/statusbadge/StatusBadge.stories.d.ts +9 -12
- package/dist/components/statusbadge/StatusBadge.stories.d.ts.map +1 -1
- package/dist/components/statusbadge/StatusBadge.stories.js +21 -44
- package/dist/components/statusbadge/StatusBadge.svelte +34 -29
- package/dist/components/statusbadge/StatusBadge.svelte.d.ts +13 -28
- package/dist/components/statusbadge/StatusBadge.svelte.d.ts.map +1 -1
- package/dist/components/statusdot/README.md +11 -0
- package/dist/components/statusdot/StatusDot.js +2 -5
- package/dist/components/statusdot/StatusDot.js.map +1 -1
- package/dist/components/statusdot/StatusDot.spec.js +42 -0
- package/dist/components/statusdot/StatusDot.stories.d.ts.map +1 -1
- package/dist/components/statusdot/StatusDot.stories.js +9 -37
- package/dist/components/statusdot/StatusDot.svelte +15 -16
- package/dist/components/statusdot/StatusDot.svelte.d.ts +2 -2
- package/dist/components/statusdot/StatusDot.svelte.d.ts.map +1 -1
- package/dist/components/statusnotification/README.md +25 -0
- package/dist/components/statusnotification/StatusNotification.js +3 -6
- package/dist/components/statusnotification/StatusNotification.js.map +1 -1
- package/dist/components/statusnotification/StatusNotification.spec.js +54 -0
- package/dist/components/statusnotification/StatusNotification.stories.d.ts +16 -14
- package/dist/components/statusnotification/StatusNotification.stories.d.ts.map +1 -1
- package/dist/components/statusnotification/StatusNotification.stories.js +53 -86
- package/dist/components/statusnotification/StatusNotification.svelte +186 -187
- package/dist/components/statusnotification/StatusNotification.svelte.d.ts +21 -18
- package/dist/components/statusnotification/StatusNotification.svelte.d.ts.map +1 -1
- package/dist/components/tab/README.md +20 -0
- package/dist/components/tab/Tab.js +4 -0
- package/dist/components/tab/Tab.js.map +1 -0
- package/dist/components/tab/Tab.spec.js +58 -0
- package/dist/components/tab/Tab.svelte +154 -0
- package/dist/components/{tabs → tab}/Tab.svelte.d.ts +20 -3
- package/dist/components/tab/Tab.svelte.d.ts.map +1 -0
- package/dist/components/tabs/README.md +18 -0
- package/dist/components/tabs/Tabs.js +2 -5
- package/dist/components/tabs/Tabs.js.map +1 -1
- package/dist/components/tabs/Tabs.spec.js +51 -0
- package/dist/components/tabs/Tabs.stories.d.ts +9 -6
- package/dist/components/tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/components/tabs/Tabs.stories.js +59 -115
- package/dist/components/tabs/Tabs.svelte +46 -29
- package/dist/components/tabs/Tabs.svelte.d.ts +21 -7
- package/dist/components/tabs/Tabs.svelte.d.ts.map +1 -1
- package/dist/components/tags/README.md +9 -0
- package/dist/components/tags/Tag.js +2 -5
- package/dist/components/tags/Tag.js.map +1 -1
- package/dist/components/tags/Tag.svelte +35 -38
- package/dist/components/tags/TagContextualised.js +2 -5
- package/dist/components/tags/TagContextualised.js.map +1 -1
- package/dist/components/tags/TagContextualised.svelte +35 -38
- package/dist/components/tags/TagInteractive.js +2 -5
- package/dist/components/tags/TagInteractive.js.map +1 -1
- package/dist/components/tags/TagInteractive.svelte +35 -38
- package/dist/components/tags/TagRemovable.js +2 -5
- package/dist/components/tags/TagRemovable.js.map +1 -1
- package/dist/components/tags/TagRemovable.svelte +35 -38
- package/dist/components/tags/TagSelectable.js +2 -5
- package/dist/components/tags/TagSelectable.js.map +1 -1
- package/dist/components/tags/TagSelectable.svelte +35 -38
- package/dist/components/tags/Tags.stories.d.ts.map +1 -1
- package/dist/components/tags/Tags.stories.js +7 -1
- package/dist/components/tags/TagsContextualised.stories.d.ts.map +1 -1
- package/dist/components/tags/TagsContextualised.stories.js +7 -1
- package/dist/components/tags/TagsInteractive.stories.d.ts.map +1 -1
- package/dist/components/tags/TagsInteractive.stories.js +7 -1
- package/dist/components/tags/TagsRemovable.stories.d.ts.map +1 -1
- package/dist/components/tags/TagsRemovable.stories.js +7 -1
- package/dist/components/tags/TagsSelectable.stories.d.ts.map +1 -1
- package/dist/components/tags/TagsSelectable.stories.js +7 -1
- package/dist/components/textarea/README.md +19 -0
- package/dist/components/textarea/Textarea.js +2 -8
- package/dist/components/textarea/Textarea.js.map +1 -1
- package/dist/components/textarea/Textarea.spec.js +67 -0
- package/dist/components/textarea/Textarea.stories.d.ts +9 -13
- package/dist/components/textarea/Textarea.stories.d.ts.map +1 -1
- package/dist/components/textarea/Textarea.stories.js +61 -92
- package/dist/components/textarea/Textarea.svelte +70 -117
- package/dist/components/textarea/Textarea.svelte.d.ts +43 -13
- package/dist/components/textarea/Textarea.svelte.d.ts.map +1 -1
- package/dist/components/textinput/README.md +26 -0
- package/dist/components/textinput/Textinput.js +5 -9
- package/dist/components/textinput/Textinput.js.map +1 -1
- package/dist/components/textinput/Textinput.spec.js +89 -0
- package/dist/components/textinput/Textinput.stories.d.ts +11 -12
- package/dist/components/textinput/Textinput.stories.d.ts.map +1 -1
- package/dist/components/textinput/Textinput.stories.js +78 -137
- package/dist/components/textinput/Textinput.svelte +107 -148
- package/dist/components/textinput/Textinput.svelte.d.ts +46 -22
- package/dist/components/textinput/Textinput.svelte.d.ts.map +1 -1
- package/dist/components/toaster/README.md +28 -0
- package/dist/components/toaster/Toaster.js +5 -8
- package/dist/components/toaster/Toaster.js.map +1 -1
- package/dist/components/toaster/Toaster.spec.js +100 -0
- package/dist/components/toaster/Toaster.stories.d.ts.map +1 -1
- package/dist/components/toaster/Toaster.stories.js +5 -73
- package/dist/components/toaster/Toaster.svelte +157 -146
- package/dist/components/toaster/Toaster.svelte.d.ts +3 -0
- package/dist/components/toaster/Toaster.svelte.d.ts.map +1 -1
- package/dist/components/toggle/README.md +15 -0
- package/dist/components/toggle/Toggle.js +2 -5
- package/dist/components/toggle/Toggle.js.map +1 -1
- package/dist/components/toggle/Toggle.spec.js +69 -0
- package/dist/components/toggle/Toggle.stories.d.ts +9 -14
- package/dist/components/toggle/Toggle.stories.d.ts.map +1 -1
- package/dist/components/toggle/Toggle.stories.js +55 -64
- package/dist/components/toggle/Toggle.svelte +59 -48
- package/dist/components/toggle/Toggle.svelte.d.ts +26 -7
- package/dist/components/toggle/Toggle.svelte.d.ts.map +1 -1
- package/dist/components/togglegroup/README.md +13 -0
- package/dist/components/togglegroup/ToggleGroup.js +3 -6
- package/dist/components/togglegroup/ToggleGroup.js.map +1 -1
- package/dist/components/togglegroup/ToggleGroup.spec.js +50 -0
- package/dist/components/togglegroup/ToggleGroup.stories.d.ts +5 -13
- package/dist/components/togglegroup/ToggleGroup.stories.d.ts.map +1 -1
- package/dist/components/togglegroup/ToggleGroup.stories.js +56 -104
- package/dist/components/togglegroup/ToggleGroup.svelte +91 -97
- package/dist/components/togglegroup/ToggleGroup.svelte.d.ts +25 -14
- package/dist/components/togglegroup/ToggleGroup.svelte.d.ts.map +1 -1
- package/dist/components/tooltip/README.md +19 -0
- package/dist/components/tooltip/Tooltip.js +4 -7
- package/dist/components/tooltip/Tooltip.js.map +1 -1
- package/dist/components/tooltip/Tooltip.spec.js +38 -0
- package/dist/components/tooltip/Tooltip.stories.d.ts +6 -7
- package/dist/components/tooltip/Tooltip.stories.d.ts.map +1 -1
- package/dist/components/tooltip/Tooltip.stories.js +45 -59
- package/dist/components/tooltip/Tooltip.svelte +31 -25
- package/dist/components/tooltip/Tooltip.svelte.d.ts +17 -0
- package/dist/components/tooltip/Tooltip.svelte.d.ts.map +1 -1
- package/dist/custom-element-forward-events.js.map +1 -1
- package/dist/custom-element.js +3 -3
- package/dist/custom-element.js.map +1 -1
- package/dist/documentation/Contributing.mdx +1 -1
- package/dist/documentation/Introduction.mdx +45 -11
- package/dist/documentation/SupportAndOnboarding.mdx +2 -2
- package/dist/each.js +1 -1
- package/dist/each.js.map +1 -1
- package/dist/if.js +1 -1
- package/dist/if.js.map +1 -1
- package/dist/input.js +1 -1
- package/dist/input.js.map +1 -1
- package/dist/legacy.js +1 -1
- package/dist/legacy.js.map +1 -1
- package/dist/main.d.ts +24 -23
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +24 -23
- package/dist/slot.js +1 -1
- package/dist/slot.js.map +1 -1
- package/dist/this.js +2 -0
- package/dist/this.js.map +1 -0
- package/package.json +12 -4
- package/dist/components/button/button.types.d.ts +0 -13
- package/dist/components/button/button.types.d.ts.map +0 -1
- package/dist/components/button/button.types.js +0 -1
- package/dist/components/checkboxgroup/checkboxgroup.types.d.ts +0 -9
- package/dist/components/checkboxgroup/checkboxgroup.types.d.ts.map +0 -1
- package/dist/components/checkboxgroup/checkboxgroup.types.js +0 -1
- package/dist/components/link/link.types.d.ts +0 -4
- package/dist/components/link/link.types.d.ts.map +0 -1
- package/dist/components/link/link.types.js +0 -1
- package/dist/components/loader/loader.types.d.ts +0 -3
- package/dist/components/loader/loader.types.d.ts.map +0 -1
- package/dist/components/loader/loader.types.js +0 -1
- package/dist/components/numberbadge/NumberBadge.types.d.ts +0 -3
- package/dist/components/numberbadge/NumberBadge.types.d.ts.map +0 -1
- package/dist/components/numberbadge/NumberBadge.types.js +0 -1
- package/dist/components/overlayloader/OverlayLoader.js +0 -30
- package/dist/components/overlayloader/OverlayLoader.js.map +0 -1
- package/dist/components/overlayloader/OverlayLoader.stories.d.ts +0 -8
- package/dist/components/overlayloader/OverlayLoader.stories.d.ts.map +0 -1
- package/dist/components/overlayloader/OverlayLoader.stories.js +0 -50
- package/dist/components/overlayloader/OverlayLoader.svelte +0 -159
- package/dist/components/overlayloader/OverlayLoader.svelte.d.ts +0 -9
- package/dist/components/overlayloader/OverlayLoader.svelte.d.ts.map +0 -1
- package/dist/components/quantityselector/quantitySelector.types.d.ts +0 -2
- package/dist/components/quantityselector/quantitySelector.types.d.ts.map +0 -1
- package/dist/components/quantityselector/quantitySelector.types.js +0 -1
- package/dist/components/radiogroup/radioGroup.types.d.ts +0 -9
- package/dist/components/radiogroup/radioGroup.types.d.ts.map +0 -1
- package/dist/components/radiogroup/radioGroup.types.js +0 -1
- package/dist/components/select/select.types.d.ts +0 -9
- package/dist/components/select/select.types.d.ts.map +0 -1
- package/dist/components/select/select.types.js +0 -1
- package/dist/components/statusbadge/StatusBadge.types.d.ts +0 -2
- package/dist/components/statusbadge/StatusBadge.types.d.ts.map +0 -1
- package/dist/components/statusbadge/StatusBadge.types.js +0 -1
- package/dist/components/statusdot/StatusDot.types.d.ts +0 -3
- package/dist/components/statusdot/StatusDot.types.d.ts.map +0 -1
- package/dist/components/statusdot/StatusDot.types.js +0 -1
- package/dist/components/tabs/Tab.js +0 -7
- package/dist/components/tabs/Tab.js.map +0 -1
- package/dist/components/tabs/Tab.svelte +0 -137
- package/dist/components/tabs/Tab.svelte.d.ts.map +0 -1
- package/dist/components/textinput/textinput.types.d.ts +0 -3
- package/dist/components/textinput/textinput.types.d.ts.map +0 -1
- package/dist/components/textinput/textinput.types.js +0 -1
- package/dist/components/toggle/toggle.types.d.ts +0 -2
- package/dist/components/toggle/toggle.types.d.ts.map +0 -1
- package/dist/components/toggle/toggle.types.js +0 -1
- package/dist/index-client.js +0 -2
- package/dist/index-client.js.map +0 -1
- package/dist/snippet.js +0 -2
- package/dist/snippet.js.map +0 -1
|
@@ -1,80 +1,106 @@
|
|
|
1
1
|
<svelte:options customElement={{ tag: 'm-button' }} />
|
|
2
2
|
|
|
3
3
|
<script lang="ts">
|
|
4
|
-
import type {
|
|
5
|
-
ButtonIconMode,
|
|
6
|
-
ButtonSize,
|
|
7
|
-
ButtonStyle,
|
|
8
|
-
ButtonType,
|
|
9
|
-
} from './button.types';
|
|
10
|
-
|
|
11
4
|
import Loader from '../loader/Loader.svelte';
|
|
12
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Buttons are key interactive elements used to perform actions and can be used as standalone element, or as part of another component. Their appearance depends on the type of action required from the user and the context in which they are used.
|
|
7
|
+
*
|
|
8
|
+
* @slot default - The content displayed in the button.
|
|
9
|
+
* @slot icon - Use this slot to insert an icon for the Button.
|
|
10
|
+
*/
|
|
13
11
|
interface Props {
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the visual style of the button.
|
|
15
|
+
*/
|
|
16
|
+
appearance?: 'standard' | 'accent' | 'danger' | 'inverse';
|
|
17
|
+
/**
|
|
18
|
+
* Determines the size of the button.
|
|
19
|
+
*/
|
|
20
|
+
size?: 's' | 'm' | 'l';
|
|
21
|
+
/**
|
|
22
|
+
* If `true`, disables the button, making it non-interactive.
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* If `true`, applies a "ghost" style to the button, typically a transparent background with a border.
|
|
27
|
+
*/
|
|
16
28
|
ghost?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* If `true`, the button gets an outlined style, usually with just the border and no solid background.
|
|
31
|
+
*/
|
|
17
32
|
outlined?: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Controls the positioning of an icon in the button.
|
|
35
|
+
*/
|
|
36
|
+
iconposition?: 'left' | 'right' | 'only';
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the button's HTML `type` attribute.
|
|
39
|
+
*/
|
|
40
|
+
type?: 'button' | 'reset' | 'submit';
|
|
41
|
+
/**
|
|
42
|
+
* If `true`, a loading state is displayed.
|
|
43
|
+
*/
|
|
21
44
|
isloading?: boolean;
|
|
22
|
-
hasiconslot?: boolean;
|
|
23
|
-
[key: string]: any;
|
|
24
45
|
}
|
|
25
46
|
|
|
26
47
|
let {
|
|
27
48
|
appearance = 'standard',
|
|
28
49
|
size = 'm',
|
|
29
|
-
ghost = false,
|
|
30
|
-
outlined = false,
|
|
31
|
-
iconmode,
|
|
32
|
-
disabled = false,
|
|
33
50
|
type = 'button',
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
51
|
+
ghost,
|
|
52
|
+
outlined,
|
|
53
|
+
disabled,
|
|
54
|
+
isloading,
|
|
55
|
+
iconposition,
|
|
56
|
+
...attrs
|
|
37
57
|
}: Props = $props();
|
|
38
58
|
</script>
|
|
39
59
|
|
|
40
60
|
<button
|
|
41
|
-
class={
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
61
|
+
class={[
|
|
62
|
+
'mc-button',
|
|
63
|
+
`mc-button--${size}`,
|
|
64
|
+
`mc-button--${appearance}`,
|
|
65
|
+
ghost && 'mc-button--ghost',
|
|
66
|
+
outlined && 'mc-button--outlined',
|
|
67
|
+
isloading && 'mc-button--loading',
|
|
68
|
+
iconposition === 'only' && 'mc-button--icon-only',
|
|
69
|
+
]}
|
|
46
70
|
{disabled}
|
|
47
71
|
{type}
|
|
48
|
-
{...
|
|
72
|
+
{...attrs}
|
|
49
73
|
>
|
|
74
|
+
{#if iconposition === 'left' && !isloading}
|
|
75
|
+
<span class="mc-button__icon">
|
|
76
|
+
<slot name="icon" />
|
|
77
|
+
</span>
|
|
78
|
+
{/if}
|
|
79
|
+
|
|
50
80
|
{#if isloading}
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
style="color: currentColor;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
81
|
+
<span
|
|
82
|
+
class="mc-button__icon"
|
|
83
|
+
style="color: currentColor;position: absolute; visibility: visible;"
|
|
84
|
+
>
|
|
85
|
+
<Loader appearance={'inverse'} size="s" />
|
|
86
|
+
</span>
|
|
57
87
|
{/if}
|
|
58
88
|
|
|
59
|
-
{#if
|
|
89
|
+
{#if iconposition === 'only'}
|
|
60
90
|
<span class="mc-button__icon">
|
|
61
|
-
|
|
62
|
-
<slot name="icon" />
|
|
63
|
-
{/if}
|
|
91
|
+
<slot name="icon" />
|
|
64
92
|
</span>
|
|
65
93
|
{/if}
|
|
66
94
|
|
|
67
|
-
{#if
|
|
68
|
-
<span class=
|
|
95
|
+
{#if iconposition !== 'only'}
|
|
96
|
+
<span class={['mc-button__label', isloading && 'hidden']}>
|
|
69
97
|
<slot />
|
|
70
98
|
</span>
|
|
71
99
|
{/if}
|
|
72
100
|
|
|
73
|
-
{#if
|
|
101
|
+
{#if iconposition === 'right'}
|
|
74
102
|
<span class="mc-button__icon">
|
|
75
|
-
|
|
76
|
-
<slot name="icon" />
|
|
77
|
-
{/if}
|
|
103
|
+
<slot name="icon" />
|
|
78
104
|
</span>
|
|
79
105
|
{/if}
|
|
80
106
|
</button>
|
|
@@ -82,22 +108,38 @@
|
|
|
82
108
|
<style>/**
|
|
83
109
|
* Do not edit directly, this file was auto-generated.
|
|
84
110
|
*/
|
|
85
|
-
/**
|
|
86
|
-
* Do not edit directly, this file was auto-generated.
|
|
87
|
-
*/
|
|
88
111
|
.mc-button {
|
|
89
|
-
color: #ffffff;
|
|
90
|
-
background-color: #464e63;
|
|
91
|
-
|
|
112
|
+
color: var(--button-color-filled-standard-font, #ffffff);
|
|
113
|
+
background-color: var(--button-color-filled-standard-background, #464e63);
|
|
114
|
+
}
|
|
115
|
+
.mc-button:hover {
|
|
116
|
+
background-color: var(--button-color-filled-standard-hover-background, #343b4c);
|
|
117
|
+
}
|
|
118
|
+
.mc-button:active {
|
|
119
|
+
background-color: var(--button-color-filled-standard-active-background, #242938);
|
|
120
|
+
}
|
|
121
|
+
.mc-button:disabled {
|
|
122
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
123
|
+
border-color: transparent;
|
|
124
|
+
color: var(--button-state-disabled-color, #737373);
|
|
125
|
+
cursor: not-allowed;
|
|
126
|
+
}
|
|
127
|
+
.mc-button {
|
|
128
|
+
font-weight: var(--font-weight-semi-bold, 600);
|
|
92
129
|
padding: 0 calc(1rem - 0.125rem);
|
|
93
130
|
min-height: 3rem;
|
|
94
131
|
min-width: 3rem;
|
|
132
|
+
}
|
|
133
|
+
.mc-button .mc-button__label {
|
|
134
|
+
font-size: var(--font-size-150, 1rem);
|
|
135
|
+
}
|
|
136
|
+
.mc-button {
|
|
95
137
|
display: inline-flex;
|
|
96
138
|
justify-content: center;
|
|
97
139
|
vertical-align: middle;
|
|
98
140
|
text-align: center;
|
|
99
141
|
border: 2px solid transparent;
|
|
100
|
-
border-radius: 0.25rem;
|
|
142
|
+
border-radius: var(--button-radius, 0.25rem);
|
|
101
143
|
transition: all ease 200ms;
|
|
102
144
|
transition: box-shadow 200ms ease;
|
|
103
145
|
align-items: center;
|
|
@@ -107,23 +149,8 @@
|
|
|
107
149
|
gap: 0.25rem;
|
|
108
150
|
cursor: pointer;
|
|
109
151
|
}
|
|
110
|
-
.mc-button:hover {
|
|
111
|
-
background-color: #343b4c;
|
|
112
|
-
}
|
|
113
|
-
.mc-button:active {
|
|
114
|
-
background-color: #242938;
|
|
115
|
-
}
|
|
116
|
-
.mc-button:disabled {
|
|
117
|
-
background-color: #d9d9d9;
|
|
118
|
-
border-color: transparent;
|
|
119
|
-
color: #737373;
|
|
120
|
-
cursor: not-allowed;
|
|
121
|
-
}
|
|
122
|
-
.mc-button .mc-button__label {
|
|
123
|
-
font-size: 1rem;
|
|
124
|
-
}
|
|
125
152
|
.mc-button__label {
|
|
126
|
-
font-size: 1rem;
|
|
153
|
+
font-size: var(--font-size-150, 1rem);
|
|
127
154
|
}
|
|
128
155
|
.mc-button__icon {
|
|
129
156
|
flex-shrink: 0;
|
|
@@ -131,13 +158,13 @@
|
|
|
131
158
|
height: 1.5rem;
|
|
132
159
|
}
|
|
133
160
|
.mc-button:disabled {
|
|
134
|
-
background-color: #d9d9d9;
|
|
161
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
135
162
|
border-color: transparent;
|
|
136
|
-
color: #737373;
|
|
163
|
+
color: var(--button-state-disabled-color, #737373);
|
|
137
164
|
cursor: not-allowed;
|
|
138
165
|
}
|
|
139
166
|
.mc-button:focus-visible {
|
|
140
|
-
box-shadow: 0 0 0 0.125rem var(--focus-color-mid, #ffffff), 0 0 0 0.25rem var(--focus-color-outer, #000000);
|
|
167
|
+
box-shadow: 0 0 0 0.125rem var(--focus-color-mid, var(--focus-color-outline-mid, #ffffff)), 0 0 0 0.25rem var(--focus-color-outer, var(--focus-color-outline-outer, #000000));
|
|
141
168
|
outline: 0.125rem solid transparent;
|
|
142
169
|
outline-offset: 0.125rem;
|
|
143
170
|
}
|
|
@@ -147,7 +174,7 @@
|
|
|
147
174
|
min-width: 2rem;
|
|
148
175
|
}
|
|
149
176
|
.mc-button--s .mc-button__label {
|
|
150
|
-
font-size: 0.875rem;
|
|
177
|
+
font-size: var(--font-size-100, 0.875rem);
|
|
151
178
|
}
|
|
152
179
|
.mc-button--s .mc-button__icon {
|
|
153
180
|
width: 1.25rem;
|
|
@@ -163,7 +190,7 @@
|
|
|
163
190
|
min-width: 3rem;
|
|
164
191
|
}
|
|
165
192
|
.mc-button--m .mc-button__label {
|
|
166
|
-
font-size: 1rem;
|
|
193
|
+
font-size: var(--font-size-150, 1rem);
|
|
167
194
|
}
|
|
168
195
|
.mc-button--m .mc-button__icon {
|
|
169
196
|
width: 1.5rem;
|
|
@@ -179,7 +206,7 @@
|
|
|
179
206
|
min-width: 4rem;
|
|
180
207
|
}
|
|
181
208
|
.mc-button--l .mc-button__label {
|
|
182
|
-
font-size: 1.125rem;
|
|
209
|
+
font-size: var(--font-size-200, 1.125rem);
|
|
183
210
|
}
|
|
184
211
|
.mc-button--l .mc-button__icon {
|
|
185
212
|
width: 2rem;
|
|
@@ -193,90 +220,90 @@
|
|
|
193
220
|
padding: 0.25rem;
|
|
194
221
|
}
|
|
195
222
|
.mc-button--outlined {
|
|
196
|
-
color: #242938;
|
|
197
|
-
border-color: #8891aa;
|
|
198
|
-
background-color: #ffffff;
|
|
223
|
+
color: var(--button-color-outlined-standard-font, #242938);
|
|
224
|
+
border-color: var(--button-color-outlined-standard-border, #8891aa);
|
|
225
|
+
background-color: var(--button-color-outlined-standard-background, #ffffff);
|
|
199
226
|
}
|
|
200
227
|
.mc-button--outlined:hover {
|
|
201
|
-
background-color: #eff1f6;
|
|
228
|
+
background-color: var(--button-color-outlined-standard-hover-background, #eff1f6);
|
|
202
229
|
}
|
|
203
230
|
.mc-button--outlined:active {
|
|
204
|
-
background-color: #c9d0de;
|
|
231
|
+
background-color: var(--button-color-outlined-standard-active-background, #c9d0de);
|
|
205
232
|
}
|
|
206
233
|
.mc-button--outlined:disabled {
|
|
207
|
-
background-color: #d9d9d9;
|
|
234
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
208
235
|
border-color: transparent;
|
|
209
|
-
color: #737373;
|
|
236
|
+
color: var(--button-state-disabled-color, #737373);
|
|
210
237
|
cursor: not-allowed;
|
|
211
238
|
}
|
|
212
239
|
.mc-button--ghost {
|
|
213
|
-
color: #242938;
|
|
214
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
240
|
+
color: var(--button-color-ghost-standard-font, #242938);
|
|
241
|
+
background-color: var(--button-color-ghost-standard-background, rgba(255, 255, 255, 0.01));
|
|
215
242
|
}
|
|
216
243
|
.mc-button--ghost:hover {
|
|
217
|
-
background-color: rgba(70, 78, 99, 0.1);
|
|
244
|
+
background-color: var(--button-color-ghost-standard-hover-background, rgba(70, 78, 99, 0.1));
|
|
218
245
|
}
|
|
219
246
|
.mc-button--ghost:active {
|
|
220
|
-
background-color: rgba(70, 78, 99, 0.2);
|
|
247
|
+
background-color: var(--button-color-ghost-standard-active-background, rgba(70, 78, 99, 0.2));
|
|
221
248
|
}
|
|
222
249
|
.mc-button--ghost:disabled {
|
|
223
|
-
background-color: #d9d9d9;
|
|
250
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
224
251
|
border-color: transparent;
|
|
225
|
-
color: #737373;
|
|
252
|
+
color: var(--button-state-disabled-color, #737373);
|
|
226
253
|
cursor: not-allowed;
|
|
227
254
|
}
|
|
228
255
|
.mc-button--accent {
|
|
229
|
-
color: #ffffff;
|
|
230
|
-
background-color: #117f03;
|
|
256
|
+
color: var(--button-color-filled-accent-font, #ffffff);
|
|
257
|
+
background-color: var(--button-color-filled-accent-background, #117f03);
|
|
231
258
|
}
|
|
232
259
|
.mc-button--accent:hover {
|
|
233
|
-
background-color: #006902;
|
|
260
|
+
background-color: var(--button-color-filled-accent-hover-background, #006902);
|
|
234
261
|
}
|
|
235
262
|
.mc-button--accent:active {
|
|
236
|
-
background-color: #035010;
|
|
263
|
+
background-color: var(--button-color-filled-accent-active-background, #035010);
|
|
237
264
|
}
|
|
238
265
|
.mc-button--accent:disabled {
|
|
239
|
-
background-color: #d9d9d9;
|
|
266
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
240
267
|
border-color: transparent;
|
|
241
|
-
color: #737373;
|
|
268
|
+
color: var(--button-state-disabled-color, #737373);
|
|
242
269
|
cursor: not-allowed;
|
|
243
270
|
}
|
|
244
271
|
.mc-button--danger {
|
|
245
|
-
color: #ffffff;
|
|
246
|
-
background-color: #c61112;
|
|
272
|
+
color: var(--button-color-filled-danger-font, #ffffff);
|
|
273
|
+
background-color: var(--button-color-filled-danger-background, #c61112);
|
|
247
274
|
}
|
|
248
275
|
.mc-button--danger:hover {
|
|
249
|
-
background-color: #8c0003;
|
|
276
|
+
background-color: var(--button-color-filled-danger-hover-background, #8c0003);
|
|
250
277
|
}
|
|
251
278
|
.mc-button--danger:active {
|
|
252
|
-
background-color: #530000;
|
|
279
|
+
background-color: var(--button-color-filled-danger-active-background, #530000);
|
|
253
280
|
}
|
|
254
281
|
.mc-button--danger:disabled {
|
|
255
|
-
background-color: #d9d9d9;
|
|
282
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
256
283
|
border-color: transparent;
|
|
257
|
-
color: #737373;
|
|
284
|
+
color: var(--button-state-disabled-color, #737373);
|
|
258
285
|
cursor: not-allowed;
|
|
259
286
|
}
|
|
260
287
|
.mc-button--inverse {
|
|
261
|
-
--focus-color-mid: #000000;
|
|
262
|
-
--focus-color-outer: #ffffff;
|
|
263
|
-
color: #242938;
|
|
264
|
-
background-color: #ffffff;
|
|
288
|
+
--focus-color-mid: var(--focus-color-outline-outer, #000000);
|
|
289
|
+
--focus-color-outer: var(--focus-color-outline-mid, #ffffff);
|
|
290
|
+
color: var(--button-color-filled-inverse-font, #242938);
|
|
291
|
+
background-color: var(--button-color-filled-inverse-background, #ffffff);
|
|
265
292
|
}
|
|
266
293
|
.mc-button--inverse:hover {
|
|
267
|
-
background-color: #e6e6e6;
|
|
294
|
+
background-color: var(--button-color-filled-inverse-hover-background, #e6e6e6);
|
|
268
295
|
}
|
|
269
296
|
.mc-button--inverse:active {
|
|
270
|
-
background-color: #cccccc;
|
|
297
|
+
background-color: var(--button-color-filled-inverse-active-background, #cccccc);
|
|
271
298
|
}
|
|
272
299
|
.mc-button--inverse:disabled {
|
|
273
|
-
background-color: #d9d9d9;
|
|
300
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
274
301
|
border-color: transparent;
|
|
275
|
-
color: #737373;
|
|
302
|
+
color: var(--button-state-disabled-color, #737373);
|
|
276
303
|
cursor: not-allowed;
|
|
277
304
|
}
|
|
278
305
|
.mc-button--icon-button {
|
|
279
|
-
border-radius: 100
|
|
306
|
+
border-radius: var(--radius-full, 100%);
|
|
280
307
|
padding: 0;
|
|
281
308
|
}
|
|
282
309
|
.mc-button--loading .mc-button__loader {
|
|
@@ -288,147 +315,138 @@
|
|
|
288
315
|
visibility: hidden;
|
|
289
316
|
}
|
|
290
317
|
.mc-button--outlined.mc-button--standard {
|
|
291
|
-
color: #242938;
|
|
292
|
-
border-color: #8891aa;
|
|
293
|
-
background-color: #ffffff;
|
|
318
|
+
color: var(--button-color-outlined-standard-font, #242938);
|
|
319
|
+
border-color: var(--button-color-outlined-standard-border, #8891aa);
|
|
320
|
+
background-color: var(--button-color-outlined-standard-background, #ffffff);
|
|
294
321
|
}
|
|
295
322
|
.mc-button--outlined.mc-button--standard:hover {
|
|
296
|
-
background-color: #eff1f6;
|
|
323
|
+
background-color: var(--button-color-outlined-standard-hover-background, #eff1f6);
|
|
297
324
|
}
|
|
298
325
|
.mc-button--outlined.mc-button--standard:active {
|
|
299
|
-
background-color: #c9d0de;
|
|
326
|
+
background-color: var(--button-color-outlined-standard-active-background, #c9d0de);
|
|
300
327
|
}
|
|
301
328
|
.mc-button--outlined.mc-button--standard:disabled {
|
|
302
|
-
background-color: #d9d9d9;
|
|
329
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
303
330
|
border-color: transparent;
|
|
304
|
-
color: #737373;
|
|
331
|
+
color: var(--button-state-disabled-color, #737373);
|
|
305
332
|
cursor: not-allowed;
|
|
306
333
|
}
|
|
307
334
|
.mc-button--outlined.mc-button--accent {
|
|
308
|
-
color: #117f03;
|
|
309
|
-
border-color: #78be20;
|
|
310
|
-
background-color: #ffffff;
|
|
335
|
+
color: var(--button-color-outlined-accent-font, #117f03);
|
|
336
|
+
border-color: var(--button-color-outlined-accent-border, #78be20);
|
|
337
|
+
background-color: var(--button-color-outlined-accent-background, #ffffff);
|
|
311
338
|
}
|
|
312
339
|
.mc-button--outlined.mc-button--accent:hover {
|
|
313
|
-
background-color: #ebf5de;
|
|
340
|
+
background-color: var(--button-color-outlined-accent-hover-background, #ebf5de);
|
|
314
341
|
}
|
|
315
342
|
.mc-button--outlined.mc-button--accent:active {
|
|
316
|
-
background-color: #c5e39e;
|
|
343
|
+
background-color: var(--button-color-outlined-accent-active-background, #c5e39e);
|
|
317
344
|
}
|
|
318
345
|
.mc-button--outlined.mc-button--accent:disabled {
|
|
319
|
-
background-color: #d9d9d9;
|
|
346
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
320
347
|
border-color: transparent;
|
|
321
|
-
color: #737373;
|
|
348
|
+
color: var(--button-state-disabled-color, #737373);
|
|
322
349
|
cursor: not-allowed;
|
|
323
350
|
}
|
|
324
351
|
.mc-button--outlined.mc-button--danger {
|
|
325
|
-
color: #c61112;
|
|
326
|
-
border-color: #ef5f5c;
|
|
327
|
-
background-color: #ffffff;
|
|
352
|
+
color: var(--button-color-outlined-danger-font, #c61112);
|
|
353
|
+
border-color: var(--button-color-outlined-danger-border, #ef5f5c);
|
|
354
|
+
background-color: var(--button-color-outlined-danger-background, #ffffff);
|
|
328
355
|
}
|
|
329
356
|
.mc-button--outlined.mc-button--danger:hover {
|
|
330
|
-
background-color: #fdeaea;
|
|
357
|
+
background-color: var(--button-color-outlined-danger-hover-background, #fdeaea);
|
|
331
358
|
}
|
|
332
359
|
.mc-button--outlined.mc-button--danger:active {
|
|
333
|
-
background-color: #f8bcbb;
|
|
360
|
+
background-color: var(--button-color-outlined-danger-active-background, #f8bcbb);
|
|
334
361
|
}
|
|
335
362
|
.mc-button--outlined.mc-button--danger:disabled {
|
|
336
|
-
background-color: #d9d9d9;
|
|
363
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
337
364
|
border-color: transparent;
|
|
338
|
-
color: #737373;
|
|
365
|
+
color: var(--button-state-disabled-color, #737373);
|
|
339
366
|
cursor: not-allowed;
|
|
340
367
|
}
|
|
341
368
|
.mc-button--outlined.mc-button--inverse {
|
|
342
|
-
color: #ffffff;
|
|
343
|
-
border-color: #ffffff;
|
|
344
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
369
|
+
color: var(--button-color-outlined-inverse-font, #ffffff);
|
|
370
|
+
border-color: var(--button-color-outlined-inverse-border, #ffffff);
|
|
371
|
+
background-color: var(--button-color-outlined-inverse-background, rgba(255, 255, 255, 0.01));
|
|
345
372
|
}
|
|
346
373
|
.mc-button--outlined.mc-button--inverse:hover {
|
|
347
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
374
|
+
background-color: var(--button-color-outlined-inverse-hover-background, rgba(255, 255, 255, 0.1));
|
|
348
375
|
}
|
|
349
376
|
.mc-button--outlined.mc-button--inverse:active {
|
|
350
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
377
|
+
background-color: var(--button-color-outlined-inverse-active-background, rgba(255, 255, 255, 0.2));
|
|
351
378
|
}
|
|
352
379
|
.mc-button--outlined.mc-button--inverse:disabled {
|
|
353
|
-
background-color: #d9d9d9;
|
|
380
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
354
381
|
border-color: transparent;
|
|
355
|
-
color: #737373;
|
|
382
|
+
color: var(--button-state-disabled-color, #737373);
|
|
356
383
|
cursor: not-allowed;
|
|
357
384
|
}
|
|
358
385
|
.mc-button--ghost.mc-button--standard {
|
|
359
|
-
color: #242938;
|
|
360
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
386
|
+
color: var(--button-color-ghost-standard-font, #242938);
|
|
387
|
+
background-color: var(--button-color-ghost-standard-background, rgba(255, 255, 255, 0.01));
|
|
361
388
|
}
|
|
362
389
|
.mc-button--ghost.mc-button--standard:hover {
|
|
363
|
-
background-color: rgba(70, 78, 99, 0.1);
|
|
390
|
+
background-color: var(--button-color-ghost-standard-hover-background, rgba(70, 78, 99, 0.1));
|
|
364
391
|
}
|
|
365
392
|
.mc-button--ghost.mc-button--standard:active {
|
|
366
|
-
background-color: rgba(70, 78, 99, 0.2);
|
|
393
|
+
background-color: var(--button-color-ghost-standard-active-background, rgba(70, 78, 99, 0.2));
|
|
367
394
|
}
|
|
368
395
|
.mc-button--ghost.mc-button--standard:disabled {
|
|
369
|
-
background-color: #d9d9d9;
|
|
396
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
370
397
|
border-color: transparent;
|
|
371
|
-
color: #737373;
|
|
398
|
+
color: var(--button-state-disabled-color, #737373);
|
|
372
399
|
cursor: not-allowed;
|
|
373
400
|
}
|
|
374
401
|
.mc-button--ghost.mc-button--accent {
|
|
375
|
-
color: #117f03;
|
|
376
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
402
|
+
color: var(--button-color-ghost-accent-font, #117f03);
|
|
403
|
+
background-color: var(--button-color-ghost-accent-background, rgba(255, 255, 255, 0.01));
|
|
377
404
|
}
|
|
378
405
|
.mc-button--ghost.mc-button--accent:hover {
|
|
379
|
-
background-color: rgba(17, 127, 3, 0.1);
|
|
406
|
+
background-color: var(--button-color-ghost-accent-hover-background, rgba(17, 127, 3, 0.1));
|
|
380
407
|
}
|
|
381
408
|
.mc-button--ghost.mc-button--accent:active {
|
|
382
|
-
background-color: rgba(17, 127, 3, 0.2);
|
|
409
|
+
background-color: var(--button-color-ghost-accent-active-background, rgba(17, 127, 3, 0.2));
|
|
383
410
|
}
|
|
384
411
|
.mc-button--ghost.mc-button--accent:disabled {
|
|
385
|
-
background-color: #d9d9d9;
|
|
412
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
386
413
|
border-color: transparent;
|
|
387
|
-
color: #737373;
|
|
414
|
+
color: var(--button-state-disabled-color, #737373);
|
|
388
415
|
cursor: not-allowed;
|
|
389
416
|
}
|
|
390
417
|
.mc-button--ghost.mc-button--danger {
|
|
391
|
-
color: #c61112;
|
|
392
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
418
|
+
color: var(--button-color-ghost-danger-font, #c61112);
|
|
419
|
+
background-color: var(--button-color-ghost-danger-background, rgba(255, 255, 255, 0.01));
|
|
393
420
|
}
|
|
394
421
|
.mc-button--ghost.mc-button--danger:hover {
|
|
395
|
-
background-color: rgba(198, 17, 18, 0.1);
|
|
422
|
+
background-color: var(--button-color-ghost-danger-hover-background, rgba(198, 17, 18, 0.1));
|
|
396
423
|
}
|
|
397
424
|
.mc-button--ghost.mc-button--danger:active {
|
|
398
|
-
background-color: rgba(198, 17, 18, 0.2);
|
|
425
|
+
background-color: var(--button-color-ghost-danger-active-background, rgba(198, 17, 18, 0.2));
|
|
399
426
|
}
|
|
400
427
|
.mc-button--ghost.mc-button--danger:disabled {
|
|
401
|
-
background-color: #d9d9d9;
|
|
428
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
402
429
|
border-color: transparent;
|
|
403
|
-
color: #737373;
|
|
430
|
+
color: var(--button-state-disabled-color, #737373);
|
|
404
431
|
cursor: not-allowed;
|
|
405
432
|
}
|
|
406
433
|
.mc-button--ghost.mc-button--inverse {
|
|
407
|
-
color: #ffffff;
|
|
408
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
434
|
+
color: var(--button-color-ghost-inverse-font, #ffffff);
|
|
435
|
+
background-color: var(--button-color-ghost-inverse-background, rgba(255, 255, 255, 0.01));
|
|
409
436
|
}
|
|
410
437
|
.mc-button--ghost.mc-button--inverse:hover {
|
|
411
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
438
|
+
background-color: var(--button-color-ghost-inverse-hover-background, rgba(255, 255, 255, 0.1));
|
|
412
439
|
}
|
|
413
440
|
.mc-button--ghost.mc-button--inverse:active {
|
|
414
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
441
|
+
background-color: var(--button-color-ghost-inverse-active-background, rgba(255, 255, 255, 0.2));
|
|
415
442
|
}
|
|
416
443
|
.mc-button--ghost.mc-button--inverse:disabled {
|
|
417
|
-
background-color: #d9d9d9;
|
|
444
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
418
445
|
border-color: transparent;
|
|
419
|
-
color: #737373;
|
|
446
|
+
color: var(--button-state-disabled-color, #737373);
|
|
420
447
|
cursor: not-allowed;
|
|
421
448
|
}
|
|
422
449
|
|
|
423
|
-
.mc-button__icon {
|
|
424
|
-
pointer-events: none;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
450
|
.hidden {
|
|
428
451
|
visibility: hidden;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
.loader-style {
|
|
432
|
-
color: currentColor;
|
|
433
|
-
position: absolute;
|
|
434
452
|
}</style>
|
|
@@ -1,15 +1,43 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Buttons are key interactive elements used to perform actions and can be used as standalone element, or as part of another component. Their appearance depends on the type of action required from the user and the context in which they are used.
|
|
3
|
+
*
|
|
4
|
+
* @slot default - The content displayed in the button.
|
|
5
|
+
* @slot icon - Use this slot to insert an icon for the Button.
|
|
6
|
+
*/
|
|
2
7
|
interface Props {
|
|
3
|
-
|
|
4
|
-
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
/**
|
|
10
|
+
* Defines the visual style of the button.
|
|
11
|
+
*/
|
|
12
|
+
appearance?: 'standard' | 'accent' | 'danger' | 'inverse';
|
|
13
|
+
/**
|
|
14
|
+
* Determines the size of the button.
|
|
15
|
+
*/
|
|
16
|
+
size?: 's' | 'm' | 'l';
|
|
17
|
+
/**
|
|
18
|
+
* If `true`, disables the button, making it non-interactive.
|
|
19
|
+
*/
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* If `true`, applies a "ghost" style to the button, typically a transparent background with a border.
|
|
23
|
+
*/
|
|
5
24
|
ghost?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* If `true`, the button gets an outlined style, usually with just the border and no solid background.
|
|
27
|
+
*/
|
|
6
28
|
outlined?: boolean;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Controls the positioning of an icon in the button.
|
|
31
|
+
*/
|
|
32
|
+
iconposition?: 'left' | 'right' | 'only';
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the button's HTML `type` attribute.
|
|
35
|
+
*/
|
|
36
|
+
type?: 'button' | 'reset' | 'submit';
|
|
37
|
+
/**
|
|
38
|
+
* If `true`, a loading state is displayed.
|
|
39
|
+
*/
|
|
10
40
|
isloading?: boolean;
|
|
11
|
-
hasiconslot?: boolean;
|
|
12
|
-
[key: string]: any;
|
|
13
41
|
}
|
|
14
42
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
15
43
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/button/Button.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/button/Button.svelte.ts"],"names":[],"mappings":"AAKE;;;;;GAKG;AACH,UAAU,KAAK;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC1D;;OAEG;IACH,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACrC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAgEH,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IAC9G,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AACD,KAAK,gCAAgC,CAAC,KAAK,EAAE,KAAK,IAAI,KAAK,GACvD,CAAC,KAAK,SAAS;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,GACzB,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACnC,GAAG,GACH;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE,GAClB,EAAE,CAAC,CAAC;AAId,QAAA,MAAM,MAAM;;;;;;;;UAAqF,CAAC;AAChF,KAAK,MAAM,GAAG,YAAY,CAAC,OAAO,MAAM,CAAC,CAAC;AAC5C,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# `m-button`
|
|
2
|
+
|
|
3
|
+
Buttons are key interactive elements used to perform actions and can be used as standalone element, or as part of another component. Their appearance depends on the type of action required from the user and the context in which they are used.
|
|
4
|
+
|
|
5
|
+
## Props
|
|
6
|
+
|
|
7
|
+
| Name | Description | Type | Default |
|
|
8
|
+
|------|-------------|------|---------|
|
|
9
|
+
| `appearance` | Defines the visual style of the button. | `'standard'` `'accent'` `'danger'` `'inverse'` | `standard` |
|
|
10
|
+
| `size` | Determines the size of the button. | `'s'` `'m'` `'l'` | `m` |
|
|
11
|
+
| `disabled` | If `true`, disables the button, making it non-interactive. | `boolean` | |
|
|
12
|
+
| `ghost` | If `true`, applies a "ghost" style to the button, typically a transparent background with a border. | `boolean` | |
|
|
13
|
+
| `outlined` | If `true`, the button gets an outlined style, usually with just the border and no solid background. | `boolean` | |
|
|
14
|
+
| `iconposition` | Controls the positioning of an icon in the button. | `'left'` `'right'` `'only'` | |
|
|
15
|
+
| `type` | Specifies the button's HTML `type` attribute. | `'button'` `'reset'` `'submit'` | `button` |
|
|
16
|
+
| `isloading` | If `true`, a loading state is displayed. | `boolean` | |
|
|
17
|
+
|
|
18
|
+
## Slots
|
|
19
|
+
|
|
20
|
+
| Name | Description |
|
|
21
|
+
|------|-------------|
|
|
22
|
+
| `icon` | Use this slot to insert an icon for the Button. |
|
|
23
|
+
| `icon` | Use this slot to insert an icon for the Button. |
|
|
24
|
+
| `default` | The content displayed in the button. |
|
|
25
|
+
| `icon` | Use this slot to insert an icon for the Button. |
|
|
26
|
+
|