@mozaic-ds/web-components 1.0.0-beta.7 → 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/CrossCircleFilled24.js +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 -2
- 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 +2 -0
- 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 +2 -2
- 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 +11 -16
- 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 +2 -2
- 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 +70 -53
- 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 +1 -1
- 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 +4 -0
- 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 -3
- 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 +42 -22
- 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 +3 -3
- 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 +56 -45
- 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 +2 -2
- 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 +25 -6
- 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 -3
- 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 +48 -25
- 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 +2 -2
- 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 +61 -38
- 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 +2 -2
- 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 +48 -12
- 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 -2
- 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 +11 -9
- 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 -2
- 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 +41 -37
- 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 -2
- 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 +15 -5
- 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 -2
- 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 +6 -0
- 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 -2
- 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 +45 -40
- 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 +2 -2
- 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 +31 -31
- 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 +2 -2
- 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 +42 -41
- 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 -2
- 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 +24 -20
- 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 -2
- 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 +14 -4
- 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 +6 -6
- 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 +33 -12
- 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 +3 -4
- 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 +387 -24
- 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 +2 -2
- 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 +56 -41
- 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 +2 -2
- 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 +100 -77
- 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 -2
- 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 +42 -20
- 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 +3 -3
- 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 +50 -43
- 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 +2 -2
- 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 +57 -44
- 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 -2
- 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 +14 -6
- 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 -2
- 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 +9 -7
- 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 -3
- 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 +49 -51
- 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/{tabs → tab}/Tab.svelte +46 -26
- 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 -2
- 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 +27 -7
- 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 +1 -1
- package/dist/components/tags/TagContextualised.js +2 -2
- package/dist/components/tags/TagInteractive.js +1 -1
- package/dist/components/tags/TagRemovable.js +2 -2
- package/dist/components/tags/TagSelectable.js +2 -2
- 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 -5
- 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 +53 -97
- 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 +2 -2
- 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 +70 -112
- 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 +2 -2
- 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 +17 -7
- 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 -2
- 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 +38 -24
- 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 -3
- 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 +55 -58
- 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 +2 -2
- 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 +23 -14
- 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.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/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 +11 -3
- 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 -27
- 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 -160
- 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 -4
- package/dist/components/tabs/Tab.js.map +0 -1
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordInput.stories.d.ts","sourceRoot":"","sources":["../../../src/components/passwordinput/PasswordInput.stories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PasswordInput.stories.d.ts","sourceRoot":"","sources":["../../../src/components/passwordinput/PasswordInput.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAKrE,QAAA,MAAM,IAAI,EAAE,IAuCX,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AAEtB,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC"}
|
|
@@ -1,132 +1,75 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
1
3
|
import { action } from 'storybook/actions';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
description: 'Makes the input read-only',
|
|
40
|
-
control: 'boolean',
|
|
41
|
-
},
|
|
42
|
-
isclearable: {
|
|
43
|
-
description: 'Show a clear button when value is set',
|
|
44
|
-
control: 'boolean',
|
|
45
|
-
},
|
|
46
|
-
clearLabel: {
|
|
47
|
-
description: 'Label for the clear button',
|
|
48
|
-
control: 'text',
|
|
49
|
-
},
|
|
50
|
-
buttonLabel: {
|
|
51
|
-
description: 'Show/Hide button labels',
|
|
52
|
-
control: 'object',
|
|
53
|
-
},
|
|
54
|
-
onclear: {
|
|
55
|
-
description: 'Event that occurs when the clear button is clicked',
|
|
56
|
-
action: 'onclear',
|
|
57
|
-
table: {
|
|
58
|
-
category: 'Events',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
ontoggle: {
|
|
62
|
-
description: 'Event that occurs when the show/hide button is clicked',
|
|
63
|
-
action: 'ontoggle',
|
|
64
|
-
table: {
|
|
65
|
-
category: 'Events',
|
|
66
|
-
},
|
|
67
|
-
},
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Form Elements/PasswordInput',
|
|
6
|
+
component: 'm-password-input',
|
|
7
|
+
args: {
|
|
8
|
+
id: 'passwordInputId',
|
|
9
|
+
placeholder: 'Enter your password',
|
|
10
|
+
},
|
|
11
|
+
render: (args) => {
|
|
12
|
+
const onInput = action('input');
|
|
13
|
+
const onChange = action('change');
|
|
14
|
+
const onFocus = action('focus');
|
|
15
|
+
const onBlur = action('blur');
|
|
16
|
+
return html `
|
|
17
|
+
<m-password-input
|
|
18
|
+
id=${ifDefined(args.id)}
|
|
19
|
+
name=${ifDefined(args.name)}
|
|
20
|
+
value=${ifDefined(args.value)}
|
|
21
|
+
placeholder=${ifDefined(args.placeholder)}
|
|
22
|
+
isinvalid=${ifDefined(args.isinvalid)}
|
|
23
|
+
disabled=${ifDefined(args.disabled)}
|
|
24
|
+
readonly=${ifDefined(args.readonly)}
|
|
25
|
+
isclearable=${ifDefined(args.isclearable)}
|
|
26
|
+
clearlabel=${ifDefined(args.clearlabel)}
|
|
27
|
+
@input=${(event) => {
|
|
28
|
+
onInput(event);
|
|
29
|
+
}}
|
|
30
|
+
@change=${(event) => {
|
|
31
|
+
onChange(event);
|
|
32
|
+
}}
|
|
33
|
+
@focus=${(event) => {
|
|
34
|
+
onFocus(event);
|
|
35
|
+
}}
|
|
36
|
+
@blur=${(event) => {
|
|
37
|
+
onBlur(event);
|
|
38
|
+
}}
|
|
39
|
+
></m-password-input>
|
|
40
|
+
`;
|
|
68
41
|
},
|
|
69
42
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
input.setAttribute('placeholder', args.placeholder || 'Password input');
|
|
77
|
-
if (args.disabled)
|
|
78
|
-
input.setAttribute('disabled', args.disabled);
|
|
79
|
-
if (args.readonly)
|
|
80
|
-
input.setAttribute('readonly', args.readonly);
|
|
81
|
-
if (args.isinvalid)
|
|
82
|
-
input.setAttribute('isinvalid', args.isinvalid);
|
|
83
|
-
if (args.isclearable)
|
|
84
|
-
input.setAttribute('isclearable', args.isclearable);
|
|
85
|
-
if (args.clearlabel)
|
|
86
|
-
input.setAttribute('clearlabel', args.clearlabel);
|
|
87
|
-
if (args.buttonlabel)
|
|
88
|
-
input.setAttribute('buttonlabel', JSON.stringify(args.buttonlabel));
|
|
89
|
-
if (args.value)
|
|
90
|
-
input.setAttribute('value', args.value);
|
|
91
|
-
input.addEventListener('input', action('input'));
|
|
92
|
-
input.onclear = action('onclear');
|
|
93
|
-
input.ontoggle = action('ontoggle');
|
|
94
|
-
return input;
|
|
95
|
-
};
|
|
96
|
-
export const Default = Template.bind({});
|
|
97
|
-
Default.args = {
|
|
98
|
-
placeholder: 'Enter password',
|
|
99
|
-
};
|
|
100
|
-
Default.play = async ({ canvasElement }) => {
|
|
101
|
-
const inputEl = canvasElement.querySelector('m-password-input');
|
|
102
|
-
const input = inputEl?.shadowRoot?.querySelector('input');
|
|
103
|
-
expect(input).not.toBeNull();
|
|
104
|
-
await userEvent.type(input, 'supersecret');
|
|
105
|
-
expect(input).toHaveValue('supersecret');
|
|
43
|
+
export default meta;
|
|
44
|
+
export const WithValue = {
|
|
45
|
+
args: {
|
|
46
|
+
id: 'withValueId',
|
|
47
|
+
value: 'Magic-word-123',
|
|
48
|
+
},
|
|
106
49
|
};
|
|
107
|
-
export const
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
50
|
+
export const Default = {};
|
|
51
|
+
export const Clearable = {
|
|
52
|
+
args: {
|
|
53
|
+
id: 'clearableId',
|
|
54
|
+
value: 'Magic-word-123',
|
|
55
|
+
isclearable: true,
|
|
56
|
+
},
|
|
113
57
|
};
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
await userEvent.click(clearBtn);
|
|
120
|
-
expect(input).toHaveValue('');
|
|
58
|
+
export const Disabled = {
|
|
59
|
+
args: {
|
|
60
|
+
id: 'disableId',
|
|
61
|
+
disabled: true,
|
|
62
|
+
},
|
|
121
63
|
};
|
|
122
|
-
export const
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
64
|
+
export const ReadOnly = {
|
|
65
|
+
args: {
|
|
66
|
+
id: 'readonlyId',
|
|
67
|
+
readonly: true,
|
|
68
|
+
},
|
|
126
69
|
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
70
|
+
export const Invalid = {
|
|
71
|
+
args: {
|
|
72
|
+
id: 'invalidId',
|
|
73
|
+
isinvalid: true,
|
|
74
|
+
},
|
|
132
75
|
};
|
|
@@ -1,58 +1,84 @@
|
|
|
1
1
|
<svelte:options
|
|
2
2
|
customElement={{
|
|
3
3
|
tag: 'm-password-input',
|
|
4
|
+
extend: customElementForwardEvents,
|
|
4
5
|
}}
|
|
5
6
|
/>
|
|
6
7
|
|
|
7
8
|
<script lang="ts">
|
|
8
|
-
import
|
|
9
|
+
import { customElementForwardEvents } from '../../utils';
|
|
10
|
+
/**
|
|
11
|
+
* A password input is a specialized input field used to securely enter and manage passwords. It typically masks the characters entered to protect sensitive information from being seen. It includes a toggle button to show or hide the password, improving usability while maintaining security. Password inputs are commonly used in login forms, account creation, and authentication flows.
|
|
12
|
+
*/
|
|
9
13
|
interface Props {
|
|
14
|
+
/**
|
|
15
|
+
* A unique identifier for the password input element, used to associate the label with the form element.
|
|
16
|
+
*/
|
|
10
17
|
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* The name attribute for the password input element, typically used for form submission.
|
|
20
|
+
*/
|
|
11
21
|
name?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The current value of the password input field.
|
|
24
|
+
*/
|
|
12
25
|
value?: string | number;
|
|
26
|
+
/**
|
|
27
|
+
* A placeholder text to show in the password input when it is empty.
|
|
28
|
+
*/
|
|
13
29
|
placeholder?: string;
|
|
30
|
+
/**
|
|
31
|
+
* If `true`, applies an invalid state to the password input.
|
|
32
|
+
*/
|
|
14
33
|
isinvalid?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* If `true`, disables the password input, making it non-interactive.
|
|
36
|
+
*/
|
|
15
37
|
disabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* If `true`, the password input is read-only (cannot be edited).
|
|
40
|
+
*/
|
|
16
41
|
readonly?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* If `true`, a clear button will appear when the password input has a value.
|
|
44
|
+
*/
|
|
17
45
|
isclearable?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The label text for the clear button.
|
|
48
|
+
*/
|
|
18
49
|
clearlabel?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Labels of the button displayed when showing or hiding the password.
|
|
52
|
+
*/
|
|
19
53
|
buttonlabel?: {
|
|
20
54
|
show: string;
|
|
21
55
|
hide: string;
|
|
22
56
|
};
|
|
23
|
-
[key: string]: any;
|
|
24
57
|
}
|
|
25
58
|
|
|
26
59
|
let {
|
|
27
60
|
id,
|
|
28
61
|
name,
|
|
29
|
-
value
|
|
30
|
-
placeholder
|
|
31
|
-
isinvalid
|
|
32
|
-
disabled
|
|
33
|
-
readonly
|
|
34
|
-
isclearable
|
|
62
|
+
value,
|
|
63
|
+
placeholder,
|
|
64
|
+
isinvalid,
|
|
65
|
+
disabled,
|
|
66
|
+
readonly,
|
|
67
|
+
isclearable,
|
|
35
68
|
clearlabel = 'Clear content',
|
|
36
69
|
buttonlabel = { show: 'Show', hide: 'Hide' },
|
|
37
|
-
onclear,
|
|
38
|
-
ontoggle,
|
|
39
|
-
...events
|
|
40
70
|
}: Props = $props();
|
|
41
71
|
|
|
42
72
|
let isVisible = $state(false);
|
|
43
73
|
|
|
44
74
|
function toggleVisibility() {
|
|
45
75
|
isVisible = !isVisible;
|
|
46
|
-
ontoggle(isVisible);
|
|
47
76
|
}
|
|
48
77
|
|
|
49
|
-
|
|
50
|
-
value = '';
|
|
51
|
-
onclear();
|
|
52
|
-
}
|
|
78
|
+
const resetValue = () => (value = '');
|
|
53
79
|
</script>
|
|
54
80
|
|
|
55
|
-
<div class=
|
|
81
|
+
<div class={['mc-password-input', 'mc-text-input', isinvalid && 'is-invalid']}>
|
|
56
82
|
<input
|
|
57
83
|
class="mc-password-input__control mc-text-input__control"
|
|
58
84
|
{id}
|
|
@@ -63,14 +89,13 @@
|
|
|
63
89
|
{disabled}
|
|
64
90
|
{readonly}
|
|
65
91
|
aria-invalid={isinvalid}
|
|
66
|
-
{...events}
|
|
67
92
|
/>
|
|
68
93
|
{#if isclearable && value}
|
|
69
94
|
<div class="mc-controls-options">
|
|
70
95
|
<button
|
|
71
96
|
class="mc-controls-options__button"
|
|
72
97
|
type="button"
|
|
73
|
-
onclick={
|
|
98
|
+
onclick={resetValue}
|
|
74
99
|
>
|
|
75
100
|
<svg class="mc-controls-options__icon" aria-hidden="true">
|
|
76
101
|
<path
|
|
@@ -83,18 +108,17 @@
|
|
|
83
108
|
</div>
|
|
84
109
|
{/if}
|
|
85
110
|
|
|
86
|
-
<
|
|
111
|
+
<button
|
|
112
|
+
class={['mc-button', 'mc-button--s', 'mc-button--ghost']}
|
|
87
113
|
type="button"
|
|
88
114
|
role="switch"
|
|
89
115
|
tabindex="0"
|
|
90
|
-
aria-checked={isVisible}
|
|
91
|
-
size="s"
|
|
92
|
-
ghost={true}
|
|
93
116
|
{disabled}
|
|
117
|
+
aria-checked={isVisible}
|
|
94
118
|
onclick={toggleVisibility}
|
|
95
119
|
>
|
|
96
120
|
<span>{isVisible ? buttonlabel.hide : buttonlabel.show}</span>
|
|
97
|
-
</
|
|
121
|
+
</button>
|
|
98
122
|
</div>
|
|
99
123
|
|
|
100
124
|
<style>/**
|
|
@@ -217,6 +241,345 @@
|
|
|
217
241
|
}
|
|
218
242
|
|
|
219
243
|
/* stylelint-enable string-no-newline */
|
|
244
|
+
.mc-button {
|
|
245
|
+
color: var(--button-color-filled-standard-font, #ffffff);
|
|
246
|
+
background-color: var(--button-color-filled-standard-background, #464e63);
|
|
247
|
+
}
|
|
248
|
+
.mc-button:hover {
|
|
249
|
+
background-color: var(--button-color-filled-standard-hover-background, #343b4c);
|
|
250
|
+
}
|
|
251
|
+
.mc-button:active {
|
|
252
|
+
background-color: var(--button-color-filled-standard-active-background, #242938);
|
|
253
|
+
}
|
|
254
|
+
.mc-button:disabled {
|
|
255
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
256
|
+
border-color: transparent;
|
|
257
|
+
color: var(--button-state-disabled-color, #737373);
|
|
258
|
+
cursor: not-allowed;
|
|
259
|
+
}
|
|
260
|
+
.mc-button {
|
|
261
|
+
font-weight: var(--font-weight-semi-bold, 600);
|
|
262
|
+
padding: 0 calc(1rem - 0.125rem);
|
|
263
|
+
min-height: 3rem;
|
|
264
|
+
min-width: 3rem;
|
|
265
|
+
}
|
|
266
|
+
.mc-button .mc-button__label {
|
|
267
|
+
font-size: var(--font-size-150, 1rem);
|
|
268
|
+
}
|
|
269
|
+
.mc-button {
|
|
270
|
+
display: inline-flex;
|
|
271
|
+
justify-content: center;
|
|
272
|
+
vertical-align: middle;
|
|
273
|
+
text-align: center;
|
|
274
|
+
border: 2px solid transparent;
|
|
275
|
+
border-radius: var(--button-radius, 0.25rem);
|
|
276
|
+
transition: all ease 200ms;
|
|
277
|
+
transition: box-shadow 200ms ease;
|
|
278
|
+
align-items: center;
|
|
279
|
+
box-sizing: border-box;
|
|
280
|
+
font-family: inherit;
|
|
281
|
+
fill: currentcolor;
|
|
282
|
+
gap: 0.25rem;
|
|
283
|
+
cursor: pointer;
|
|
284
|
+
}
|
|
285
|
+
.mc-button__label {
|
|
286
|
+
font-size: var(--font-size-150, 1rem);
|
|
287
|
+
}
|
|
288
|
+
.mc-button__icon {
|
|
289
|
+
flex-shrink: 0;
|
|
290
|
+
width: 1.5rem;
|
|
291
|
+
height: 1.5rem;
|
|
292
|
+
}
|
|
293
|
+
.mc-button:disabled {
|
|
294
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
295
|
+
border-color: transparent;
|
|
296
|
+
color: var(--button-state-disabled-color, #737373);
|
|
297
|
+
cursor: not-allowed;
|
|
298
|
+
}
|
|
299
|
+
.mc-button:focus-visible {
|
|
300
|
+
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));
|
|
301
|
+
outline: 0.125rem solid transparent;
|
|
302
|
+
outline-offset: 0.125rem;
|
|
303
|
+
}
|
|
304
|
+
.mc-button--s {
|
|
305
|
+
padding: 0 calc(0.75rem - 0.125rem);
|
|
306
|
+
min-height: 2rem;
|
|
307
|
+
min-width: 2rem;
|
|
308
|
+
}
|
|
309
|
+
.mc-button--s .mc-button__label {
|
|
310
|
+
font-size: var(--font-size-100, 0.875rem);
|
|
311
|
+
}
|
|
312
|
+
.mc-button--s .mc-button__icon {
|
|
313
|
+
width: 1.25rem;
|
|
314
|
+
height: 1.25rem;
|
|
315
|
+
}
|
|
316
|
+
.mc-button--s .mc-button__icon:only-child {
|
|
317
|
+
width: 1.25rem;
|
|
318
|
+
height: 1.25rem;
|
|
319
|
+
}
|
|
320
|
+
.mc-button--m {
|
|
321
|
+
padding: 0 calc(1rem - 0.125rem);
|
|
322
|
+
min-height: 3rem;
|
|
323
|
+
min-width: 3rem;
|
|
324
|
+
}
|
|
325
|
+
.mc-button--m .mc-button__label {
|
|
326
|
+
font-size: var(--font-size-150, 1rem);
|
|
327
|
+
}
|
|
328
|
+
.mc-button--m .mc-button__icon {
|
|
329
|
+
width: 1.5rem;
|
|
330
|
+
height: 1.5rem;
|
|
331
|
+
}
|
|
332
|
+
.mc-button--m .mc-button__icon:only-child {
|
|
333
|
+
width: 1.5rem;
|
|
334
|
+
height: 1.5rem;
|
|
335
|
+
}
|
|
336
|
+
.mc-button--l {
|
|
337
|
+
padding: 0 calc(1.25rem - 0.125rem);
|
|
338
|
+
min-height: 4rem;
|
|
339
|
+
min-width: 4rem;
|
|
340
|
+
}
|
|
341
|
+
.mc-button--l .mc-button__label {
|
|
342
|
+
font-size: var(--font-size-200, 1.125rem);
|
|
343
|
+
}
|
|
344
|
+
.mc-button--l .mc-button__icon {
|
|
345
|
+
width: 2rem;
|
|
346
|
+
height: 2rem;
|
|
347
|
+
}
|
|
348
|
+
.mc-button--l .mc-button__icon:only-child {
|
|
349
|
+
width: 2rem;
|
|
350
|
+
height: 2rem;
|
|
351
|
+
}
|
|
352
|
+
.mc-button--icon-only {
|
|
353
|
+
padding: 0.25rem;
|
|
354
|
+
}
|
|
355
|
+
.mc-button--outlined {
|
|
356
|
+
color: var(--button-color-outlined-standard-font, #242938);
|
|
357
|
+
border-color: var(--button-color-outlined-standard-border, #8891aa);
|
|
358
|
+
background-color: var(--button-color-outlined-standard-background, #ffffff);
|
|
359
|
+
}
|
|
360
|
+
.mc-button--outlined:hover {
|
|
361
|
+
background-color: var(--button-color-outlined-standard-hover-background, #eff1f6);
|
|
362
|
+
}
|
|
363
|
+
.mc-button--outlined:active {
|
|
364
|
+
background-color: var(--button-color-outlined-standard-active-background, #c9d0de);
|
|
365
|
+
}
|
|
366
|
+
.mc-button--outlined:disabled {
|
|
367
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
368
|
+
border-color: transparent;
|
|
369
|
+
color: var(--button-state-disabled-color, #737373);
|
|
370
|
+
cursor: not-allowed;
|
|
371
|
+
}
|
|
372
|
+
.mc-button--ghost {
|
|
373
|
+
color: var(--button-color-ghost-standard-font, #242938);
|
|
374
|
+
background-color: var(--button-color-ghost-standard-background, rgba(255, 255, 255, 0.01));
|
|
375
|
+
}
|
|
376
|
+
.mc-button--ghost:hover {
|
|
377
|
+
background-color: var(--button-color-ghost-standard-hover-background, rgba(70, 78, 99, 0.1));
|
|
378
|
+
}
|
|
379
|
+
.mc-button--ghost:active {
|
|
380
|
+
background-color: var(--button-color-ghost-standard-active-background, rgba(70, 78, 99, 0.2));
|
|
381
|
+
}
|
|
382
|
+
.mc-button--ghost:disabled {
|
|
383
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
384
|
+
border-color: transparent;
|
|
385
|
+
color: var(--button-state-disabled-color, #737373);
|
|
386
|
+
cursor: not-allowed;
|
|
387
|
+
}
|
|
388
|
+
.mc-button--accent {
|
|
389
|
+
color: var(--button-color-filled-accent-font, #ffffff);
|
|
390
|
+
background-color: var(--button-color-filled-accent-background, #117f03);
|
|
391
|
+
}
|
|
392
|
+
.mc-button--accent:hover {
|
|
393
|
+
background-color: var(--button-color-filled-accent-hover-background, #006902);
|
|
394
|
+
}
|
|
395
|
+
.mc-button--accent:active {
|
|
396
|
+
background-color: var(--button-color-filled-accent-active-background, #035010);
|
|
397
|
+
}
|
|
398
|
+
.mc-button--accent:disabled {
|
|
399
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
400
|
+
border-color: transparent;
|
|
401
|
+
color: var(--button-state-disabled-color, #737373);
|
|
402
|
+
cursor: not-allowed;
|
|
403
|
+
}
|
|
404
|
+
.mc-button--danger {
|
|
405
|
+
color: var(--button-color-filled-danger-font, #ffffff);
|
|
406
|
+
background-color: var(--button-color-filled-danger-background, #c61112);
|
|
407
|
+
}
|
|
408
|
+
.mc-button--danger:hover {
|
|
409
|
+
background-color: var(--button-color-filled-danger-hover-background, #8c0003);
|
|
410
|
+
}
|
|
411
|
+
.mc-button--danger:active {
|
|
412
|
+
background-color: var(--button-color-filled-danger-active-background, #530000);
|
|
413
|
+
}
|
|
414
|
+
.mc-button--danger:disabled {
|
|
415
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
416
|
+
border-color: transparent;
|
|
417
|
+
color: var(--button-state-disabled-color, #737373);
|
|
418
|
+
cursor: not-allowed;
|
|
419
|
+
}
|
|
420
|
+
.mc-button--inverse {
|
|
421
|
+
--focus-color-mid: var(--focus-color-outline-outer, #000000);
|
|
422
|
+
--focus-color-outer: var(--focus-color-outline-mid, #ffffff);
|
|
423
|
+
color: var(--button-color-filled-inverse-font, #242938);
|
|
424
|
+
background-color: var(--button-color-filled-inverse-background, #ffffff);
|
|
425
|
+
}
|
|
426
|
+
.mc-button--inverse:hover {
|
|
427
|
+
background-color: var(--button-color-filled-inverse-hover-background, #e6e6e6);
|
|
428
|
+
}
|
|
429
|
+
.mc-button--inverse:active {
|
|
430
|
+
background-color: var(--button-color-filled-inverse-active-background, #cccccc);
|
|
431
|
+
}
|
|
432
|
+
.mc-button--inverse:disabled {
|
|
433
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
434
|
+
border-color: transparent;
|
|
435
|
+
color: var(--button-state-disabled-color, #737373);
|
|
436
|
+
cursor: not-allowed;
|
|
437
|
+
}
|
|
438
|
+
.mc-button--icon-button {
|
|
439
|
+
border-radius: var(--radius-full, 100%);
|
|
440
|
+
padding: 0;
|
|
441
|
+
}
|
|
442
|
+
.mc-button--loading .mc-button__loader {
|
|
443
|
+
position: absolute;
|
|
444
|
+
color: currentcolor;
|
|
445
|
+
}
|
|
446
|
+
.mc-button--loading .mc-button__label,
|
|
447
|
+
.mc-button--loading .mc-button__icon {
|
|
448
|
+
visibility: hidden;
|
|
449
|
+
}
|
|
450
|
+
.mc-button--outlined.mc-button--standard {
|
|
451
|
+
color: var(--button-color-outlined-standard-font, #242938);
|
|
452
|
+
border-color: var(--button-color-outlined-standard-border, #8891aa);
|
|
453
|
+
background-color: var(--button-color-outlined-standard-background, #ffffff);
|
|
454
|
+
}
|
|
455
|
+
.mc-button--outlined.mc-button--standard:hover {
|
|
456
|
+
background-color: var(--button-color-outlined-standard-hover-background, #eff1f6);
|
|
457
|
+
}
|
|
458
|
+
.mc-button--outlined.mc-button--standard:active {
|
|
459
|
+
background-color: var(--button-color-outlined-standard-active-background, #c9d0de);
|
|
460
|
+
}
|
|
461
|
+
.mc-button--outlined.mc-button--standard:disabled {
|
|
462
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
463
|
+
border-color: transparent;
|
|
464
|
+
color: var(--button-state-disabled-color, #737373);
|
|
465
|
+
cursor: not-allowed;
|
|
466
|
+
}
|
|
467
|
+
.mc-button--outlined.mc-button--accent {
|
|
468
|
+
color: var(--button-color-outlined-accent-font, #117f03);
|
|
469
|
+
border-color: var(--button-color-outlined-accent-border, #78be20);
|
|
470
|
+
background-color: var(--button-color-outlined-accent-background, #ffffff);
|
|
471
|
+
}
|
|
472
|
+
.mc-button--outlined.mc-button--accent:hover {
|
|
473
|
+
background-color: var(--button-color-outlined-accent-hover-background, #ebf5de);
|
|
474
|
+
}
|
|
475
|
+
.mc-button--outlined.mc-button--accent:active {
|
|
476
|
+
background-color: var(--button-color-outlined-accent-active-background, #c5e39e);
|
|
477
|
+
}
|
|
478
|
+
.mc-button--outlined.mc-button--accent:disabled {
|
|
479
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
480
|
+
border-color: transparent;
|
|
481
|
+
color: var(--button-state-disabled-color, #737373);
|
|
482
|
+
cursor: not-allowed;
|
|
483
|
+
}
|
|
484
|
+
.mc-button--outlined.mc-button--danger {
|
|
485
|
+
color: var(--button-color-outlined-danger-font, #c61112);
|
|
486
|
+
border-color: var(--button-color-outlined-danger-border, #ef5f5c);
|
|
487
|
+
background-color: var(--button-color-outlined-danger-background, #ffffff);
|
|
488
|
+
}
|
|
489
|
+
.mc-button--outlined.mc-button--danger:hover {
|
|
490
|
+
background-color: var(--button-color-outlined-danger-hover-background, #fdeaea);
|
|
491
|
+
}
|
|
492
|
+
.mc-button--outlined.mc-button--danger:active {
|
|
493
|
+
background-color: var(--button-color-outlined-danger-active-background, #f8bcbb);
|
|
494
|
+
}
|
|
495
|
+
.mc-button--outlined.mc-button--danger:disabled {
|
|
496
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
497
|
+
border-color: transparent;
|
|
498
|
+
color: var(--button-state-disabled-color, #737373);
|
|
499
|
+
cursor: not-allowed;
|
|
500
|
+
}
|
|
501
|
+
.mc-button--outlined.mc-button--inverse {
|
|
502
|
+
color: var(--button-color-outlined-inverse-font, #ffffff);
|
|
503
|
+
border-color: var(--button-color-outlined-inverse-border, #ffffff);
|
|
504
|
+
background-color: var(--button-color-outlined-inverse-background, rgba(255, 255, 255, 0.01));
|
|
505
|
+
}
|
|
506
|
+
.mc-button--outlined.mc-button--inverse:hover {
|
|
507
|
+
background-color: var(--button-color-outlined-inverse-hover-background, rgba(255, 255, 255, 0.1));
|
|
508
|
+
}
|
|
509
|
+
.mc-button--outlined.mc-button--inverse:active {
|
|
510
|
+
background-color: var(--button-color-outlined-inverse-active-background, rgba(255, 255, 255, 0.2));
|
|
511
|
+
}
|
|
512
|
+
.mc-button--outlined.mc-button--inverse:disabled {
|
|
513
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
514
|
+
border-color: transparent;
|
|
515
|
+
color: var(--button-state-disabled-color, #737373);
|
|
516
|
+
cursor: not-allowed;
|
|
517
|
+
}
|
|
518
|
+
.mc-button--ghost.mc-button--standard {
|
|
519
|
+
color: var(--button-color-ghost-standard-font, #242938);
|
|
520
|
+
background-color: var(--button-color-ghost-standard-background, rgba(255, 255, 255, 0.01));
|
|
521
|
+
}
|
|
522
|
+
.mc-button--ghost.mc-button--standard:hover {
|
|
523
|
+
background-color: var(--button-color-ghost-standard-hover-background, rgba(70, 78, 99, 0.1));
|
|
524
|
+
}
|
|
525
|
+
.mc-button--ghost.mc-button--standard:active {
|
|
526
|
+
background-color: var(--button-color-ghost-standard-active-background, rgba(70, 78, 99, 0.2));
|
|
527
|
+
}
|
|
528
|
+
.mc-button--ghost.mc-button--standard:disabled {
|
|
529
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
530
|
+
border-color: transparent;
|
|
531
|
+
color: var(--button-state-disabled-color, #737373);
|
|
532
|
+
cursor: not-allowed;
|
|
533
|
+
}
|
|
534
|
+
.mc-button--ghost.mc-button--accent {
|
|
535
|
+
color: var(--button-color-ghost-accent-font, #117f03);
|
|
536
|
+
background-color: var(--button-color-ghost-accent-background, rgba(255, 255, 255, 0.01));
|
|
537
|
+
}
|
|
538
|
+
.mc-button--ghost.mc-button--accent:hover {
|
|
539
|
+
background-color: var(--button-color-ghost-accent-hover-background, rgba(17, 127, 3, 0.1));
|
|
540
|
+
}
|
|
541
|
+
.mc-button--ghost.mc-button--accent:active {
|
|
542
|
+
background-color: var(--button-color-ghost-accent-active-background, rgba(17, 127, 3, 0.2));
|
|
543
|
+
}
|
|
544
|
+
.mc-button--ghost.mc-button--accent:disabled {
|
|
545
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
546
|
+
border-color: transparent;
|
|
547
|
+
color: var(--button-state-disabled-color, #737373);
|
|
548
|
+
cursor: not-allowed;
|
|
549
|
+
}
|
|
550
|
+
.mc-button--ghost.mc-button--danger {
|
|
551
|
+
color: var(--button-color-ghost-danger-font, #c61112);
|
|
552
|
+
background-color: var(--button-color-ghost-danger-background, rgba(255, 255, 255, 0.01));
|
|
553
|
+
}
|
|
554
|
+
.mc-button--ghost.mc-button--danger:hover {
|
|
555
|
+
background-color: var(--button-color-ghost-danger-hover-background, rgba(198, 17, 18, 0.1));
|
|
556
|
+
}
|
|
557
|
+
.mc-button--ghost.mc-button--danger:active {
|
|
558
|
+
background-color: var(--button-color-ghost-danger-active-background, rgba(198, 17, 18, 0.2));
|
|
559
|
+
}
|
|
560
|
+
.mc-button--ghost.mc-button--danger:disabled {
|
|
561
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
562
|
+
border-color: transparent;
|
|
563
|
+
color: var(--button-state-disabled-color, #737373);
|
|
564
|
+
cursor: not-allowed;
|
|
565
|
+
}
|
|
566
|
+
.mc-button--ghost.mc-button--inverse {
|
|
567
|
+
color: var(--button-color-ghost-inverse-font, #ffffff);
|
|
568
|
+
background-color: var(--button-color-ghost-inverse-background, rgba(255, 255, 255, 0.01));
|
|
569
|
+
}
|
|
570
|
+
.mc-button--ghost.mc-button--inverse:hover {
|
|
571
|
+
background-color: var(--button-color-ghost-inverse-hover-background, rgba(255, 255, 255, 0.1));
|
|
572
|
+
}
|
|
573
|
+
.mc-button--ghost.mc-button--inverse:active {
|
|
574
|
+
background-color: var(--button-color-ghost-inverse-active-background, rgba(255, 255, 255, 0.2));
|
|
575
|
+
}
|
|
576
|
+
.mc-button--ghost.mc-button--inverse:disabled {
|
|
577
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
578
|
+
border-color: transparent;
|
|
579
|
+
color: var(--button-state-disabled-color, #737373);
|
|
580
|
+
cursor: not-allowed;
|
|
581
|
+
}
|
|
582
|
+
|
|
220
583
|
.mc-controls-options {
|
|
221
584
|
align-items: center;
|
|
222
585
|
display: inline-flex;
|