@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,75 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* The full specification of this component is available in [the associated documentation](https://mozaic.adeo.cloud/components/buttons/).
|
|
8
|
-
*/
|
|
9
|
-
export default {
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
3
|
+
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
|
|
4
|
+
import '@mozaic-ds/icons-svelte/custom-elements/ChevronRight20/ChevronRight20.js';
|
|
5
|
+
import '@mozaic-ds/icons-svelte/custom-elements/ChevronRight32/ChevronRight32.js';
|
|
6
|
+
const meta = {
|
|
10
7
|
title: 'Action/Icon Button',
|
|
11
|
-
|
|
8
|
+
component: 'm-icon-button',
|
|
9
|
+
tags: ['v2'],
|
|
12
10
|
args: {
|
|
13
|
-
|
|
11
|
+
icon: '<chevron-right-24 slot="icon"></chevron-right-24>',
|
|
14
12
|
},
|
|
15
13
|
argTypes: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const Template = (args) => {
|
|
20
|
-
const primary = document.createElement('m-icon-button');
|
|
21
|
-
primary.setAttribute('data-testid', args.label || 'Primary');
|
|
22
|
-
primary.setAttribute('type', args.type);
|
|
23
|
-
primary.setAttribute('appearance', args.appearance || 'standard');
|
|
24
|
-
primary.setAttribute('size', args.size);
|
|
25
|
-
const icon = document.createElement('chevron-right-24');
|
|
26
|
-
icon.setAttribute('slot', 'icon');
|
|
27
|
-
icon.setAttribute('style', 'height: 100%');
|
|
28
|
-
primary.appendChild(icon);
|
|
29
|
-
primary.addEventListener('click', action('click'));
|
|
30
|
-
if (args.outlined)
|
|
31
|
-
primary.setAttribute('outlined', 'true');
|
|
32
|
-
if (args.ghost)
|
|
33
|
-
primary.setAttribute('ghost', 'true');
|
|
34
|
-
if (args.disabled)
|
|
35
|
-
primary.setAttribute('disabled', 'true');
|
|
36
|
-
return primary;
|
|
37
|
-
};
|
|
38
|
-
export const Filled = Template.bind({});
|
|
39
|
-
Filled.args = {};
|
|
40
|
-
Filled.play = async ({ canvasElement }) => {
|
|
41
|
-
const MIconButton = canvasElement.querySelector('m-icon-button');
|
|
42
|
-
const button = MIconButton?.shadowRoot.querySelector('button');
|
|
43
|
-
expect(button).not.toBeNull();
|
|
44
|
-
await userEvent.click(button);
|
|
45
|
-
expect(MIconButton).toHaveAttribute('appearance', 'standard');
|
|
46
|
-
};
|
|
47
|
-
export const Outlined = Template.bind({});
|
|
48
|
-
Outlined.args = {
|
|
49
|
-
outlined: true,
|
|
50
|
-
};
|
|
51
|
-
Outlined.play = async ({ canvasElement }) => {
|
|
52
|
-
const MIconButton = canvasElement.querySelector('m-icon-button');
|
|
53
|
-
const button = MIconButton?.shadowRoot.querySelector('button');
|
|
54
|
-
expect(button).not.toBeNull();
|
|
55
|
-
await userEvent.click(button);
|
|
56
|
-
expect(MIconButton).toHaveAttribute('outlined', 'true');
|
|
57
|
-
};
|
|
58
|
-
export const Ghost = Template.bind({});
|
|
59
|
-
Ghost.args = {
|
|
60
|
-
ghost: true,
|
|
61
|
-
};
|
|
62
|
-
Ghost.argTypes = {
|
|
63
|
-
iconmode: {
|
|
64
|
-
table: {
|
|
65
|
-
disable: true,
|
|
14
|
+
appearance: {
|
|
15
|
+
control: 'radio',
|
|
16
|
+
options: ['danger', 'accent', 'inverse', 'standard'],
|
|
66
17
|
},
|
|
18
|
+
size: {
|
|
19
|
+
control: 'radio',
|
|
20
|
+
options: ['s', 'm', 'l'],
|
|
21
|
+
},
|
|
22
|
+
type: {
|
|
23
|
+
control: 'radio',
|
|
24
|
+
options: ['button', 'reset', 'submit'],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
render: (args) => html `
|
|
28
|
+
<m-icon-button
|
|
29
|
+
appearance=${ifDefined(args.appearance)}
|
|
30
|
+
size=${ifDefined(args.size)}
|
|
31
|
+
disabled=${ifDefined(args.disabled)}
|
|
32
|
+
ghost=${ifDefined(args.ghost)}
|
|
33
|
+
outlined=${ifDefined(args.outlined)}
|
|
34
|
+
type=${ifDefined(args.type)}
|
|
35
|
+
>
|
|
36
|
+
${unsafeHTML(ifDefined(args.icon))}
|
|
37
|
+
</m-icon-button>
|
|
38
|
+
`,
|
|
39
|
+
};
|
|
40
|
+
export default meta;
|
|
41
|
+
export const Standard = {};
|
|
42
|
+
export const Outline = {
|
|
43
|
+
args: { outlined: true },
|
|
44
|
+
};
|
|
45
|
+
export const Ghost = {
|
|
46
|
+
args: { ghost: true },
|
|
47
|
+
};
|
|
48
|
+
export const SizeS = {
|
|
49
|
+
args: {
|
|
50
|
+
size: 's',
|
|
51
|
+
icon: '<chevron-right-20 slot="icon"></chevron-right-20>',
|
|
67
52
|
},
|
|
68
53
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
expect(MIconButton).toHaveAttribute('ghost', 'true');
|
|
54
|
+
export const SizeL = {
|
|
55
|
+
args: {
|
|
56
|
+
size: 'l',
|
|
57
|
+
icon: '<chevron-right-32 slot="icon"></chevron-right-32>',
|
|
58
|
+
},
|
|
75
59
|
};
|
|
@@ -1,58 +1,62 @@
|
|
|
1
1
|
<svelte:options customElement={{ tag: 'm-icon-button' }} />
|
|
2
2
|
|
|
3
3
|
<script lang="ts">
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* @slot icon - Use this slot to insert an icon for the Button.
|
|
8
|
+
*/
|
|
6
9
|
interface Props {
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
/**
|
|
12
|
+
* Defines the visual style of the icon button.
|
|
13
|
+
*/
|
|
14
|
+
appearance?: 'standard' | 'accent' | 'danger' | 'inverse';
|
|
15
|
+
/**
|
|
16
|
+
* Determines the size of the icon button.
|
|
17
|
+
*/
|
|
18
|
+
size?: 's' | 'm' | 'l';
|
|
19
|
+
/**
|
|
20
|
+
* If `true`, disables the icon button, making it non-interactive.
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* If `true`, applies a "ghost" style to the icon button.
|
|
25
|
+
*/
|
|
9
26
|
ghost?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* If `true`, the icon button gets an outlined style.
|
|
29
|
+
*/
|
|
10
30
|
outlined?: boolean;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Specifies the button's HTML `type` attribute.
|
|
33
|
+
*/
|
|
34
|
+
type?: 'button' | 'reset' | 'submit';
|
|
15
35
|
}
|
|
16
36
|
|
|
17
37
|
let {
|
|
18
38
|
appearance = 'standard',
|
|
19
39
|
size = 'm',
|
|
20
|
-
ghost = false,
|
|
21
|
-
outlined = false,
|
|
22
|
-
iconname,
|
|
23
|
-
disabled = false,
|
|
24
40
|
type = 'button',
|
|
25
|
-
|
|
41
|
+
ghost,
|
|
42
|
+
outlined,
|
|
43
|
+
disabled,
|
|
44
|
+
...attrs
|
|
26
45
|
}: Props = $props();
|
|
27
|
-
|
|
28
|
-
function generateIconName(size: ButtonSize, iconName: string): string {
|
|
29
|
-
let iconSize: string;
|
|
30
|
-
|
|
31
|
-
switch (size) {
|
|
32
|
-
case 's':
|
|
33
|
-
iconSize = '20px';
|
|
34
|
-
break;
|
|
35
|
-
case 'm':
|
|
36
|
-
iconSize = '24px';
|
|
37
|
-
break;
|
|
38
|
-
case 'l':
|
|
39
|
-
iconSize = '32px';
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return `${iconName} size="${iconSize}" `;
|
|
44
|
-
}
|
|
45
46
|
</script>
|
|
46
47
|
|
|
47
48
|
<button
|
|
48
|
-
class=
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
class={[
|
|
50
|
+
'mc-button',
|
|
51
|
+
'mc-button--icon-button',
|
|
52
|
+
`mc-button--${size}`,
|
|
53
|
+
`mc-button--${appearance}`,
|
|
54
|
+
ghost && 'mc-button--ghost',
|
|
55
|
+
outlined && 'mc-button--outlined',
|
|
56
|
+
]}
|
|
53
57
|
{disabled}
|
|
54
58
|
{type}
|
|
55
|
-
{...
|
|
59
|
+
{...attrs}
|
|
56
60
|
>
|
|
57
61
|
<slot name="icon" />
|
|
58
62
|
</button>
|
|
@@ -60,22 +64,38 @@
|
|
|
60
64
|
<style>/**
|
|
61
65
|
* Do not edit directly, this file was auto-generated.
|
|
62
66
|
*/
|
|
63
|
-
/**
|
|
64
|
-
* Do not edit directly, this file was auto-generated.
|
|
65
|
-
*/
|
|
66
67
|
.mc-button {
|
|
67
|
-
color: #ffffff;
|
|
68
|
-
background-color: #464e63;
|
|
69
|
-
|
|
68
|
+
color: var(--button-color-filled-standard-font, #ffffff);
|
|
69
|
+
background-color: var(--button-color-filled-standard-background, #464e63);
|
|
70
|
+
}
|
|
71
|
+
.mc-button:hover {
|
|
72
|
+
background-color: var(--button-color-filled-standard-hover-background, #343b4c);
|
|
73
|
+
}
|
|
74
|
+
.mc-button:active {
|
|
75
|
+
background-color: var(--button-color-filled-standard-active-background, #242938);
|
|
76
|
+
}
|
|
77
|
+
.mc-button:disabled {
|
|
78
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
79
|
+
border-color: transparent;
|
|
80
|
+
color: var(--button-state-disabled-color, #737373);
|
|
81
|
+
cursor: not-allowed;
|
|
82
|
+
}
|
|
83
|
+
.mc-button {
|
|
84
|
+
font-weight: var(--font-weight-semi-bold, 600);
|
|
70
85
|
padding: 0 calc(1rem - 0.125rem);
|
|
71
86
|
min-height: 3rem;
|
|
72
87
|
min-width: 3rem;
|
|
88
|
+
}
|
|
89
|
+
.mc-button .mc-button__label {
|
|
90
|
+
font-size: var(--font-size-150, 1rem);
|
|
91
|
+
}
|
|
92
|
+
.mc-button {
|
|
73
93
|
display: inline-flex;
|
|
74
94
|
justify-content: center;
|
|
75
95
|
vertical-align: middle;
|
|
76
96
|
text-align: center;
|
|
77
97
|
border: 2px solid transparent;
|
|
78
|
-
border-radius: 0.25rem;
|
|
98
|
+
border-radius: var(--button-radius, 0.25rem);
|
|
79
99
|
transition: all ease 200ms;
|
|
80
100
|
transition: box-shadow 200ms ease;
|
|
81
101
|
align-items: center;
|
|
@@ -85,23 +105,8 @@
|
|
|
85
105
|
gap: 0.25rem;
|
|
86
106
|
cursor: pointer;
|
|
87
107
|
}
|
|
88
|
-
.mc-button:hover {
|
|
89
|
-
background-color: #343b4c;
|
|
90
|
-
}
|
|
91
|
-
.mc-button:active {
|
|
92
|
-
background-color: #242938;
|
|
93
|
-
}
|
|
94
|
-
.mc-button:disabled {
|
|
95
|
-
background-color: #d9d9d9;
|
|
96
|
-
border-color: transparent;
|
|
97
|
-
color: #737373;
|
|
98
|
-
cursor: not-allowed;
|
|
99
|
-
}
|
|
100
|
-
.mc-button .mc-button__label {
|
|
101
|
-
font-size: 1rem;
|
|
102
|
-
}
|
|
103
108
|
.mc-button__label {
|
|
104
|
-
font-size: 1rem;
|
|
109
|
+
font-size: var(--font-size-150, 1rem);
|
|
105
110
|
}
|
|
106
111
|
.mc-button__icon {
|
|
107
112
|
flex-shrink: 0;
|
|
@@ -109,13 +114,13 @@
|
|
|
109
114
|
height: 1.5rem;
|
|
110
115
|
}
|
|
111
116
|
.mc-button:disabled {
|
|
112
|
-
background-color: #d9d9d9;
|
|
117
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
113
118
|
border-color: transparent;
|
|
114
|
-
color: #737373;
|
|
119
|
+
color: var(--button-state-disabled-color, #737373);
|
|
115
120
|
cursor: not-allowed;
|
|
116
121
|
}
|
|
117
122
|
.mc-button:focus-visible {
|
|
118
|
-
box-shadow: 0 0 0 0.125rem var(--focus-color-mid, #ffffff), 0 0 0 0.25rem var(--focus-color-outer, #000000);
|
|
123
|
+
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));
|
|
119
124
|
outline: 0.125rem solid transparent;
|
|
120
125
|
outline-offset: 0.125rem;
|
|
121
126
|
}
|
|
@@ -125,7 +130,7 @@
|
|
|
125
130
|
min-width: 2rem;
|
|
126
131
|
}
|
|
127
132
|
.mc-button--s .mc-button__label {
|
|
128
|
-
font-size: 0.875rem;
|
|
133
|
+
font-size: var(--font-size-100, 0.875rem);
|
|
129
134
|
}
|
|
130
135
|
.mc-button--s .mc-button__icon {
|
|
131
136
|
width: 1.25rem;
|
|
@@ -141,7 +146,7 @@
|
|
|
141
146
|
min-width: 3rem;
|
|
142
147
|
}
|
|
143
148
|
.mc-button--m .mc-button__label {
|
|
144
|
-
font-size: 1rem;
|
|
149
|
+
font-size: var(--font-size-150, 1rem);
|
|
145
150
|
}
|
|
146
151
|
.mc-button--m .mc-button__icon {
|
|
147
152
|
width: 1.5rem;
|
|
@@ -157,7 +162,7 @@
|
|
|
157
162
|
min-width: 4rem;
|
|
158
163
|
}
|
|
159
164
|
.mc-button--l .mc-button__label {
|
|
160
|
-
font-size: 1.125rem;
|
|
165
|
+
font-size: var(--font-size-200, 1.125rem);
|
|
161
166
|
}
|
|
162
167
|
.mc-button--l .mc-button__icon {
|
|
163
168
|
width: 2rem;
|
|
@@ -171,90 +176,90 @@
|
|
|
171
176
|
padding: 0.25rem;
|
|
172
177
|
}
|
|
173
178
|
.mc-button--outlined {
|
|
174
|
-
color: #242938;
|
|
175
|
-
border-color: #8891aa;
|
|
176
|
-
background-color: #ffffff;
|
|
179
|
+
color: var(--button-color-outlined-standard-font, #242938);
|
|
180
|
+
border-color: var(--button-color-outlined-standard-border, #8891aa);
|
|
181
|
+
background-color: var(--button-color-outlined-standard-background, #ffffff);
|
|
177
182
|
}
|
|
178
183
|
.mc-button--outlined:hover {
|
|
179
|
-
background-color: #eff1f6;
|
|
184
|
+
background-color: var(--button-color-outlined-standard-hover-background, #eff1f6);
|
|
180
185
|
}
|
|
181
186
|
.mc-button--outlined:active {
|
|
182
|
-
background-color: #c9d0de;
|
|
187
|
+
background-color: var(--button-color-outlined-standard-active-background, #c9d0de);
|
|
183
188
|
}
|
|
184
189
|
.mc-button--outlined:disabled {
|
|
185
|
-
background-color: #d9d9d9;
|
|
190
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
186
191
|
border-color: transparent;
|
|
187
|
-
color: #737373;
|
|
192
|
+
color: var(--button-state-disabled-color, #737373);
|
|
188
193
|
cursor: not-allowed;
|
|
189
194
|
}
|
|
190
195
|
.mc-button--ghost {
|
|
191
|
-
color: #242938;
|
|
192
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
196
|
+
color: var(--button-color-ghost-standard-font, #242938);
|
|
197
|
+
background-color: var(--button-color-ghost-standard-background, rgba(255, 255, 255, 0.01));
|
|
193
198
|
}
|
|
194
199
|
.mc-button--ghost:hover {
|
|
195
|
-
background-color: rgba(70, 78, 99, 0.1);
|
|
200
|
+
background-color: var(--button-color-ghost-standard-hover-background, rgba(70, 78, 99, 0.1));
|
|
196
201
|
}
|
|
197
202
|
.mc-button--ghost:active {
|
|
198
|
-
background-color: rgba(70, 78, 99, 0.2);
|
|
203
|
+
background-color: var(--button-color-ghost-standard-active-background, rgba(70, 78, 99, 0.2));
|
|
199
204
|
}
|
|
200
205
|
.mc-button--ghost:disabled {
|
|
201
|
-
background-color: #d9d9d9;
|
|
206
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
202
207
|
border-color: transparent;
|
|
203
|
-
color: #737373;
|
|
208
|
+
color: var(--button-state-disabled-color, #737373);
|
|
204
209
|
cursor: not-allowed;
|
|
205
210
|
}
|
|
206
211
|
.mc-button--accent {
|
|
207
|
-
color: #ffffff;
|
|
208
|
-
background-color: #117f03;
|
|
212
|
+
color: var(--button-color-filled-accent-font, #ffffff);
|
|
213
|
+
background-color: var(--button-color-filled-accent-background, #117f03);
|
|
209
214
|
}
|
|
210
215
|
.mc-button--accent:hover {
|
|
211
|
-
background-color: #006902;
|
|
216
|
+
background-color: var(--button-color-filled-accent-hover-background, #006902);
|
|
212
217
|
}
|
|
213
218
|
.mc-button--accent:active {
|
|
214
|
-
background-color: #035010;
|
|
219
|
+
background-color: var(--button-color-filled-accent-active-background, #035010);
|
|
215
220
|
}
|
|
216
221
|
.mc-button--accent:disabled {
|
|
217
|
-
background-color: #d9d9d9;
|
|
222
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
218
223
|
border-color: transparent;
|
|
219
|
-
color: #737373;
|
|
224
|
+
color: var(--button-state-disabled-color, #737373);
|
|
220
225
|
cursor: not-allowed;
|
|
221
226
|
}
|
|
222
227
|
.mc-button--danger {
|
|
223
|
-
color: #ffffff;
|
|
224
|
-
background-color: #c61112;
|
|
228
|
+
color: var(--button-color-filled-danger-font, #ffffff);
|
|
229
|
+
background-color: var(--button-color-filled-danger-background, #c61112);
|
|
225
230
|
}
|
|
226
231
|
.mc-button--danger:hover {
|
|
227
|
-
background-color: #8c0003;
|
|
232
|
+
background-color: var(--button-color-filled-danger-hover-background, #8c0003);
|
|
228
233
|
}
|
|
229
234
|
.mc-button--danger:active {
|
|
230
|
-
background-color: #530000;
|
|
235
|
+
background-color: var(--button-color-filled-danger-active-background, #530000);
|
|
231
236
|
}
|
|
232
237
|
.mc-button--danger:disabled {
|
|
233
|
-
background-color: #d9d9d9;
|
|
238
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
234
239
|
border-color: transparent;
|
|
235
|
-
color: #737373;
|
|
240
|
+
color: var(--button-state-disabled-color, #737373);
|
|
236
241
|
cursor: not-allowed;
|
|
237
242
|
}
|
|
238
243
|
.mc-button--inverse {
|
|
239
|
-
--focus-color-mid: #000000;
|
|
240
|
-
--focus-color-outer: #ffffff;
|
|
241
|
-
color: #242938;
|
|
242
|
-
background-color: #ffffff;
|
|
244
|
+
--focus-color-mid: var(--focus-color-outline-outer, #000000);
|
|
245
|
+
--focus-color-outer: var(--focus-color-outline-mid, #ffffff);
|
|
246
|
+
color: var(--button-color-filled-inverse-font, #242938);
|
|
247
|
+
background-color: var(--button-color-filled-inverse-background, #ffffff);
|
|
243
248
|
}
|
|
244
249
|
.mc-button--inverse:hover {
|
|
245
|
-
background-color: #e6e6e6;
|
|
250
|
+
background-color: var(--button-color-filled-inverse-hover-background, #e6e6e6);
|
|
246
251
|
}
|
|
247
252
|
.mc-button--inverse:active {
|
|
248
|
-
background-color: #cccccc;
|
|
253
|
+
background-color: var(--button-color-filled-inverse-active-background, #cccccc);
|
|
249
254
|
}
|
|
250
255
|
.mc-button--inverse:disabled {
|
|
251
|
-
background-color: #d9d9d9;
|
|
256
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
252
257
|
border-color: transparent;
|
|
253
|
-
color: #737373;
|
|
258
|
+
color: var(--button-state-disabled-color, #737373);
|
|
254
259
|
cursor: not-allowed;
|
|
255
260
|
}
|
|
256
261
|
.mc-button--icon-button {
|
|
257
|
-
border-radius: 100
|
|
262
|
+
border-radius: var(--radius-full, 100%);
|
|
258
263
|
padding: 0;
|
|
259
264
|
}
|
|
260
265
|
.mc-button--loading .mc-button__loader {
|
|
@@ -266,134 +271,134 @@
|
|
|
266
271
|
visibility: hidden;
|
|
267
272
|
}
|
|
268
273
|
.mc-button--outlined.mc-button--standard {
|
|
269
|
-
color: #242938;
|
|
270
|
-
border-color: #8891aa;
|
|
271
|
-
background-color: #ffffff;
|
|
274
|
+
color: var(--button-color-outlined-standard-font, #242938);
|
|
275
|
+
border-color: var(--button-color-outlined-standard-border, #8891aa);
|
|
276
|
+
background-color: var(--button-color-outlined-standard-background, #ffffff);
|
|
272
277
|
}
|
|
273
278
|
.mc-button--outlined.mc-button--standard:hover {
|
|
274
|
-
background-color: #eff1f6;
|
|
279
|
+
background-color: var(--button-color-outlined-standard-hover-background, #eff1f6);
|
|
275
280
|
}
|
|
276
281
|
.mc-button--outlined.mc-button--standard:active {
|
|
277
|
-
background-color: #c9d0de;
|
|
282
|
+
background-color: var(--button-color-outlined-standard-active-background, #c9d0de);
|
|
278
283
|
}
|
|
279
284
|
.mc-button--outlined.mc-button--standard:disabled {
|
|
280
|
-
background-color: #d9d9d9;
|
|
285
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
281
286
|
border-color: transparent;
|
|
282
|
-
color: #737373;
|
|
287
|
+
color: var(--button-state-disabled-color, #737373);
|
|
283
288
|
cursor: not-allowed;
|
|
284
289
|
}
|
|
285
290
|
.mc-button--outlined.mc-button--accent {
|
|
286
|
-
color: #117f03;
|
|
287
|
-
border-color: #78be20;
|
|
288
|
-
background-color: #ffffff;
|
|
291
|
+
color: var(--button-color-outlined-accent-font, #117f03);
|
|
292
|
+
border-color: var(--button-color-outlined-accent-border, #78be20);
|
|
293
|
+
background-color: var(--button-color-outlined-accent-background, #ffffff);
|
|
289
294
|
}
|
|
290
295
|
.mc-button--outlined.mc-button--accent:hover {
|
|
291
|
-
background-color: #ebf5de;
|
|
296
|
+
background-color: var(--button-color-outlined-accent-hover-background, #ebf5de);
|
|
292
297
|
}
|
|
293
298
|
.mc-button--outlined.mc-button--accent:active {
|
|
294
|
-
background-color: #c5e39e;
|
|
299
|
+
background-color: var(--button-color-outlined-accent-active-background, #c5e39e);
|
|
295
300
|
}
|
|
296
301
|
.mc-button--outlined.mc-button--accent:disabled {
|
|
297
|
-
background-color: #d9d9d9;
|
|
302
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
298
303
|
border-color: transparent;
|
|
299
|
-
color: #737373;
|
|
304
|
+
color: var(--button-state-disabled-color, #737373);
|
|
300
305
|
cursor: not-allowed;
|
|
301
306
|
}
|
|
302
307
|
.mc-button--outlined.mc-button--danger {
|
|
303
|
-
color: #c61112;
|
|
304
|
-
border-color: #ef5f5c;
|
|
305
|
-
background-color: #ffffff;
|
|
308
|
+
color: var(--button-color-outlined-danger-font, #c61112);
|
|
309
|
+
border-color: var(--button-color-outlined-danger-border, #ef5f5c);
|
|
310
|
+
background-color: var(--button-color-outlined-danger-background, #ffffff);
|
|
306
311
|
}
|
|
307
312
|
.mc-button--outlined.mc-button--danger:hover {
|
|
308
|
-
background-color: #fdeaea;
|
|
313
|
+
background-color: var(--button-color-outlined-danger-hover-background, #fdeaea);
|
|
309
314
|
}
|
|
310
315
|
.mc-button--outlined.mc-button--danger:active {
|
|
311
|
-
background-color: #f8bcbb;
|
|
316
|
+
background-color: var(--button-color-outlined-danger-active-background, #f8bcbb);
|
|
312
317
|
}
|
|
313
318
|
.mc-button--outlined.mc-button--danger:disabled {
|
|
314
|
-
background-color: #d9d9d9;
|
|
319
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
315
320
|
border-color: transparent;
|
|
316
|
-
color: #737373;
|
|
321
|
+
color: var(--button-state-disabled-color, #737373);
|
|
317
322
|
cursor: not-allowed;
|
|
318
323
|
}
|
|
319
324
|
.mc-button--outlined.mc-button--inverse {
|
|
320
|
-
color: #ffffff;
|
|
321
|
-
border-color: #ffffff;
|
|
322
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
325
|
+
color: var(--button-color-outlined-inverse-font, #ffffff);
|
|
326
|
+
border-color: var(--button-color-outlined-inverse-border, #ffffff);
|
|
327
|
+
background-color: var(--button-color-outlined-inverse-background, rgba(255, 255, 255, 0.01));
|
|
323
328
|
}
|
|
324
329
|
.mc-button--outlined.mc-button--inverse:hover {
|
|
325
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
330
|
+
background-color: var(--button-color-outlined-inverse-hover-background, rgba(255, 255, 255, 0.1));
|
|
326
331
|
}
|
|
327
332
|
.mc-button--outlined.mc-button--inverse:active {
|
|
328
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
333
|
+
background-color: var(--button-color-outlined-inverse-active-background, rgba(255, 255, 255, 0.2));
|
|
329
334
|
}
|
|
330
335
|
.mc-button--outlined.mc-button--inverse:disabled {
|
|
331
|
-
background-color: #d9d9d9;
|
|
336
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
332
337
|
border-color: transparent;
|
|
333
|
-
color: #737373;
|
|
338
|
+
color: var(--button-state-disabled-color, #737373);
|
|
334
339
|
cursor: not-allowed;
|
|
335
340
|
}
|
|
336
341
|
.mc-button--ghost.mc-button--standard {
|
|
337
|
-
color: #242938;
|
|
338
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
342
|
+
color: var(--button-color-ghost-standard-font, #242938);
|
|
343
|
+
background-color: var(--button-color-ghost-standard-background, rgba(255, 255, 255, 0.01));
|
|
339
344
|
}
|
|
340
345
|
.mc-button--ghost.mc-button--standard:hover {
|
|
341
|
-
background-color: rgba(70, 78, 99, 0.1);
|
|
346
|
+
background-color: var(--button-color-ghost-standard-hover-background, rgba(70, 78, 99, 0.1));
|
|
342
347
|
}
|
|
343
348
|
.mc-button--ghost.mc-button--standard:active {
|
|
344
|
-
background-color: rgba(70, 78, 99, 0.2);
|
|
349
|
+
background-color: var(--button-color-ghost-standard-active-background, rgba(70, 78, 99, 0.2));
|
|
345
350
|
}
|
|
346
351
|
.mc-button--ghost.mc-button--standard:disabled {
|
|
347
|
-
background-color: #d9d9d9;
|
|
352
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
348
353
|
border-color: transparent;
|
|
349
|
-
color: #737373;
|
|
354
|
+
color: var(--button-state-disabled-color, #737373);
|
|
350
355
|
cursor: not-allowed;
|
|
351
356
|
}
|
|
352
357
|
.mc-button--ghost.mc-button--accent {
|
|
353
|
-
color: #117f03;
|
|
354
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
358
|
+
color: var(--button-color-ghost-accent-font, #117f03);
|
|
359
|
+
background-color: var(--button-color-ghost-accent-background, rgba(255, 255, 255, 0.01));
|
|
355
360
|
}
|
|
356
361
|
.mc-button--ghost.mc-button--accent:hover {
|
|
357
|
-
background-color: rgba(17, 127, 3, 0.1);
|
|
362
|
+
background-color: var(--button-color-ghost-accent-hover-background, rgba(17, 127, 3, 0.1));
|
|
358
363
|
}
|
|
359
364
|
.mc-button--ghost.mc-button--accent:active {
|
|
360
|
-
background-color: rgba(17, 127, 3, 0.2);
|
|
365
|
+
background-color: var(--button-color-ghost-accent-active-background, rgba(17, 127, 3, 0.2));
|
|
361
366
|
}
|
|
362
367
|
.mc-button--ghost.mc-button--accent:disabled {
|
|
363
|
-
background-color: #d9d9d9;
|
|
368
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
364
369
|
border-color: transparent;
|
|
365
|
-
color: #737373;
|
|
370
|
+
color: var(--button-state-disabled-color, #737373);
|
|
366
371
|
cursor: not-allowed;
|
|
367
372
|
}
|
|
368
373
|
.mc-button--ghost.mc-button--danger {
|
|
369
|
-
color: #c61112;
|
|
370
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
374
|
+
color: var(--button-color-ghost-danger-font, #c61112);
|
|
375
|
+
background-color: var(--button-color-ghost-danger-background, rgba(255, 255, 255, 0.01));
|
|
371
376
|
}
|
|
372
377
|
.mc-button--ghost.mc-button--danger:hover {
|
|
373
|
-
background-color: rgba(198, 17, 18, 0.1);
|
|
378
|
+
background-color: var(--button-color-ghost-danger-hover-background, rgba(198, 17, 18, 0.1));
|
|
374
379
|
}
|
|
375
380
|
.mc-button--ghost.mc-button--danger:active {
|
|
376
|
-
background-color: rgba(198, 17, 18, 0.2);
|
|
381
|
+
background-color: var(--button-color-ghost-danger-active-background, rgba(198, 17, 18, 0.2));
|
|
377
382
|
}
|
|
378
383
|
.mc-button--ghost.mc-button--danger:disabled {
|
|
379
|
-
background-color: #d9d9d9;
|
|
384
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
380
385
|
border-color: transparent;
|
|
381
|
-
color: #737373;
|
|
386
|
+
color: var(--button-state-disabled-color, #737373);
|
|
382
387
|
cursor: not-allowed;
|
|
383
388
|
}
|
|
384
389
|
.mc-button--ghost.mc-button--inverse {
|
|
385
|
-
color: #ffffff;
|
|
386
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
390
|
+
color: var(--button-color-ghost-inverse-font, #ffffff);
|
|
391
|
+
background-color: var(--button-color-ghost-inverse-background, rgba(255, 255, 255, 0.01));
|
|
387
392
|
}
|
|
388
393
|
.mc-button--ghost.mc-button--inverse:hover {
|
|
389
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
394
|
+
background-color: var(--button-color-ghost-inverse-hover-background, rgba(255, 255, 255, 0.1));
|
|
390
395
|
}
|
|
391
396
|
.mc-button--ghost.mc-button--inverse:active {
|
|
392
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
397
|
+
background-color: var(--button-color-ghost-inverse-active-background, rgba(255, 255, 255, 0.2));
|
|
393
398
|
}
|
|
394
399
|
.mc-button--ghost.mc-button--inverse:disabled {
|
|
395
|
-
background-color: #d9d9d9;
|
|
400
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
396
401
|
border-color: transparent;
|
|
397
|
-
color: #737373;
|
|
402
|
+
color: var(--button-state-disabled-color, #737373);
|
|
398
403
|
cursor: not-allowed;
|
|
399
404
|
}</style>
|