@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
|
@@ -3,58 +3,61 @@
|
|
|
3
3
|
<script lang="ts">
|
|
4
4
|
import Cross24 from '@mozaic-ds/icons-svelte/svelte/Cross24/Cross24.svelte';
|
|
5
5
|
import MOverlay from '../overlay/Overlay.svelte';
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* A modal is a dialog window that appears on top of the main content, requiring user interaction before returning to the main interface. It is used to focus attention on a specific task, provide important information, or request confirmation for an action. Modals typically include a title, description, and primary/secondary actions and should be used for single, focused tasks to avoid disrupting the user experience.
|
|
8
|
+
*
|
|
9
|
+
* @slot icon - Use this slot to insert an icon next to the title of the modal.
|
|
10
|
+
* @slot default - Use this slot to insert the content of the modal.
|
|
11
|
+
* @slot link - Use this slot to insert a link in the footer.
|
|
12
|
+
* @slot footer - Use this slot to insert buttons in the footer.
|
|
13
|
+
* @event update:open {CustomEvent<boolean>} - Fired when the open state changes.
|
|
14
|
+
*/
|
|
7
15
|
interface Props {
|
|
16
|
+
/**
|
|
17
|
+
* if `true`, display the modal.
|
|
18
|
+
*/
|
|
8
19
|
open?: boolean;
|
|
9
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Title of the modal.
|
|
22
|
+
*/
|
|
23
|
+
title: string;
|
|
24
|
+
/**
|
|
25
|
+
* Description of the modal.
|
|
26
|
+
*/
|
|
10
27
|
description?: string;
|
|
28
|
+
/**
|
|
29
|
+
* if `true`, display the close button.
|
|
30
|
+
*/
|
|
11
31
|
closable?: boolean;
|
|
12
|
-
icon?: any;
|
|
13
|
-
footer?: any;
|
|
14
|
-
link?: any;
|
|
15
|
-
[key: string]: any;
|
|
16
32
|
}
|
|
17
33
|
|
|
18
|
-
let {
|
|
19
|
-
|
|
20
|
-
title = '',
|
|
21
|
-
description = '',
|
|
22
|
-
closable = true,
|
|
23
|
-
icon = undefined,
|
|
24
|
-
footer = undefined,
|
|
25
|
-
link = undefined,
|
|
26
|
-
}: Props = $props();
|
|
34
|
+
let { open, title, description, closable = true }: Props = $props();
|
|
35
|
+
let element: HTMLElement;
|
|
27
36
|
|
|
28
37
|
function onClose() {
|
|
29
38
|
open = false;
|
|
30
|
-
|
|
39
|
+
|
|
31
40
|
const event = new CustomEvent('update:open', {
|
|
32
41
|
detail: open,
|
|
33
42
|
bubbles: true,
|
|
34
43
|
composed: true,
|
|
35
44
|
});
|
|
36
|
-
|
|
37
|
-
this.dispatchEvent(event);
|
|
45
|
+
element.dispatchEvent(event);
|
|
38
46
|
}
|
|
39
|
-
// afterUpdate(() => {
|
|
40
|
-
// dispatch('update:open', open);
|
|
41
|
-
// });
|
|
42
47
|
</script>
|
|
43
48
|
|
|
44
49
|
<section
|
|
45
|
-
class=
|
|
46
|
-
class:is-open={open}
|
|
50
|
+
class={['mc-modal', open && 'is-open']}
|
|
47
51
|
tabindex="-1"
|
|
48
52
|
aria-labelledby="modalTitle"
|
|
49
53
|
aria-hidden={!open}
|
|
54
|
+
bind:this={element}
|
|
50
55
|
>
|
|
51
56
|
<div class="mc-modal__dialog" role="document">
|
|
52
57
|
<header class="mc-modal__header">
|
|
53
|
-
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
</span>
|
|
57
|
-
{/if}
|
|
58
|
+
<span class="mc-modal__icon">
|
|
59
|
+
<slot name="icon" />
|
|
60
|
+
</span>
|
|
58
61
|
<h2 class="mc-modal__title" id="modalTitle">{title}</h2>
|
|
59
62
|
{#if closable}
|
|
60
63
|
<button
|
|
@@ -63,9 +66,7 @@
|
|
|
63
66
|
aria-label="Close"
|
|
64
67
|
onclick={onClose}
|
|
65
68
|
>
|
|
66
|
-
<
|
|
67
|
-
<Cross24 aria-hidden="true" />
|
|
68
|
-
</span>
|
|
69
|
+
<Cross24 class="mc-modal__close" aria-hidden="true" />
|
|
69
70
|
</button>
|
|
70
71
|
{/if}
|
|
71
72
|
</header>
|
|
@@ -77,16 +78,12 @@
|
|
|
77
78
|
<slot />
|
|
78
79
|
</main>
|
|
79
80
|
|
|
80
|
-
|
|
81
|
-
<
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
{/if}
|
|
87
|
-
<slot name="footer" />
|
|
88
|
-
</footer>
|
|
89
|
-
{/if}
|
|
81
|
+
<footer class="mc-modal__footer">
|
|
82
|
+
<span class="mc-modal__link">
|
|
83
|
+
<slot name="link" />
|
|
84
|
+
</span>
|
|
85
|
+
<slot name="footer" />
|
|
86
|
+
</footer>
|
|
90
87
|
</div>
|
|
91
88
|
|
|
92
89
|
<MOverlay isvisible={open} dialoglabel="modal" />
|
|
@@ -95,9 +92,6 @@
|
|
|
95
92
|
<style>/**
|
|
96
93
|
* Do not edit directly, this file was auto-generated.
|
|
97
94
|
*/
|
|
98
|
-
/**
|
|
99
|
-
* Do not edit directly, this file was auto-generated.
|
|
100
|
-
*/
|
|
101
95
|
.mc-modal {
|
|
102
96
|
box-sizing: border-box;
|
|
103
97
|
inset: 0;
|
|
@@ -116,7 +110,7 @@
|
|
|
116
110
|
}
|
|
117
111
|
}
|
|
118
112
|
.mc-modal__dialog {
|
|
119
|
-
background: #ffffff;
|
|
113
|
+
background: var(--modal-color-background, #ffffff);
|
|
120
114
|
display: flex;
|
|
121
115
|
flex-direction: column;
|
|
122
116
|
opacity: 0;
|
|
@@ -125,14 +119,13 @@
|
|
|
125
119
|
transition: visibility 0s linear 0.4s, transform 0.4s ease, opacity 0.4s ease;
|
|
126
120
|
visibility: hidden;
|
|
127
121
|
width: 100%;
|
|
128
|
-
border-radius: 1rem 1rem 0 0;
|
|
122
|
+
border-radius: var(--radius-l, 1rem) var(--radius-l, 1rem) 0 0;
|
|
129
123
|
z-index: 3;
|
|
130
|
-
box-shadow: 0px 10px 20px -4px rgba(36, 41, 56, 0.2);
|
|
131
124
|
}
|
|
132
125
|
@media (width >= 680px) {
|
|
133
126
|
.mc-modal__dialog {
|
|
134
127
|
width: 38rem;
|
|
135
|
-
border-radius: 1rem;
|
|
128
|
+
border-radius: var(--radius-l, 1rem);
|
|
136
129
|
}
|
|
137
130
|
}
|
|
138
131
|
.mc-modal.is-open .mc-modal__dialog {
|
|
@@ -160,9 +153,9 @@
|
|
|
160
153
|
height: 2rem;
|
|
161
154
|
}
|
|
162
155
|
.mc-modal__title {
|
|
163
|
-
font-size: 1.5rem;
|
|
164
|
-
font-weight: 600;
|
|
165
|
-
color: #000000;
|
|
156
|
+
font-size: var(--font-title-m, 1.5rem);
|
|
157
|
+
font-weight: var(--font-weight-semi-bold, 600);
|
|
158
|
+
color: var(--modal-color-title, #000000);
|
|
166
159
|
margin-bottom: 0.5rem;
|
|
167
160
|
margin-top: 0.5rem;
|
|
168
161
|
padding-right: 3rem;
|
|
@@ -173,8 +166,8 @@
|
|
|
173
166
|
right: 0.75rem;
|
|
174
167
|
}
|
|
175
168
|
.mc-modal__body {
|
|
176
|
-
font-size: 1rem;
|
|
177
|
-
color: #404040;
|
|
169
|
+
font-size: var(--font-size-150, 1rem);
|
|
170
|
+
color: var(--modal-color-paragraph, #404040);
|
|
178
171
|
padding: 0 1rem;
|
|
179
172
|
margin-bottom: 1rem;
|
|
180
173
|
}
|
|
@@ -185,7 +178,7 @@
|
|
|
185
178
|
}
|
|
186
179
|
.mc-modal__body p {
|
|
187
180
|
margin: 0;
|
|
188
|
-
line-height: 1.3;
|
|
181
|
+
line-height: var(--line-height-s, 1.3);
|
|
189
182
|
}
|
|
190
183
|
.mc-modal__footer {
|
|
191
184
|
align-items: stretch;
|
|
@@ -215,18 +208,37 @@
|
|
|
215
208
|
}
|
|
216
209
|
|
|
217
210
|
.mc-button {
|
|
218
|
-
color: #ffffff;
|
|
219
|
-
background-color: #464e63;
|
|
220
|
-
|
|
211
|
+
color: var(--button-color-filled-standard-font, #ffffff);
|
|
212
|
+
background-color: var(--button-color-filled-standard-background, #464e63);
|
|
213
|
+
}
|
|
214
|
+
.mc-button:hover {
|
|
215
|
+
background-color: var(--button-color-filled-standard-hover-background, #343b4c);
|
|
216
|
+
}
|
|
217
|
+
.mc-button:active {
|
|
218
|
+
background-color: var(--button-color-filled-standard-active-background, #242938);
|
|
219
|
+
}
|
|
220
|
+
.mc-button:disabled {
|
|
221
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
222
|
+
border-color: transparent;
|
|
223
|
+
color: var(--button-state-disabled-color, #737373);
|
|
224
|
+
cursor: not-allowed;
|
|
225
|
+
}
|
|
226
|
+
.mc-button {
|
|
227
|
+
font-weight: var(--font-weight-semi-bold, 600);
|
|
221
228
|
padding: 0 calc(1rem - 0.125rem);
|
|
222
229
|
min-height: 3rem;
|
|
223
230
|
min-width: 3rem;
|
|
231
|
+
}
|
|
232
|
+
.mc-button .mc-button__label {
|
|
233
|
+
font-size: var(--font-size-150, 1rem);
|
|
234
|
+
}
|
|
235
|
+
.mc-button {
|
|
224
236
|
display: inline-flex;
|
|
225
237
|
justify-content: center;
|
|
226
238
|
vertical-align: middle;
|
|
227
239
|
text-align: center;
|
|
228
240
|
border: 2px solid transparent;
|
|
229
|
-
border-radius: 0.25rem;
|
|
241
|
+
border-radius: var(--button-radius, 0.25rem);
|
|
230
242
|
transition: all ease 200ms;
|
|
231
243
|
transition: box-shadow 200ms ease;
|
|
232
244
|
align-items: center;
|
|
@@ -236,23 +248,8 @@
|
|
|
236
248
|
gap: 0.25rem;
|
|
237
249
|
cursor: pointer;
|
|
238
250
|
}
|
|
239
|
-
.mc-button:hover {
|
|
240
|
-
background-color: #343b4c;
|
|
241
|
-
}
|
|
242
|
-
.mc-button:active {
|
|
243
|
-
background-color: #242938;
|
|
244
|
-
}
|
|
245
|
-
.mc-button:disabled {
|
|
246
|
-
background-color: #d9d9d9;
|
|
247
|
-
border-color: transparent;
|
|
248
|
-
color: #737373;
|
|
249
|
-
cursor: not-allowed;
|
|
250
|
-
}
|
|
251
|
-
.mc-button .mc-button__label {
|
|
252
|
-
font-size: 1rem;
|
|
253
|
-
}
|
|
254
251
|
.mc-button__label {
|
|
255
|
-
font-size: 1rem;
|
|
252
|
+
font-size: var(--font-size-150, 1rem);
|
|
256
253
|
}
|
|
257
254
|
.mc-button__icon {
|
|
258
255
|
flex-shrink: 0;
|
|
@@ -260,13 +257,13 @@
|
|
|
260
257
|
height: 1.5rem;
|
|
261
258
|
}
|
|
262
259
|
.mc-button:disabled {
|
|
263
|
-
background-color: #d9d9d9;
|
|
260
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
264
261
|
border-color: transparent;
|
|
265
|
-
color: #737373;
|
|
262
|
+
color: var(--button-state-disabled-color, #737373);
|
|
266
263
|
cursor: not-allowed;
|
|
267
264
|
}
|
|
268
265
|
.mc-button:focus-visible {
|
|
269
|
-
box-shadow: 0 0 0 0.125rem var(--focus-color-mid, #ffffff), 0 0 0 0.25rem var(--focus-color-outer, #000000);
|
|
266
|
+
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));
|
|
270
267
|
outline: 0.125rem solid transparent;
|
|
271
268
|
outline-offset: 0.125rem;
|
|
272
269
|
}
|
|
@@ -276,7 +273,7 @@
|
|
|
276
273
|
min-width: 2rem;
|
|
277
274
|
}
|
|
278
275
|
.mc-button--s .mc-button__label {
|
|
279
|
-
font-size: 0.875rem;
|
|
276
|
+
font-size: var(--font-size-100, 0.875rem);
|
|
280
277
|
}
|
|
281
278
|
.mc-button--s .mc-button__icon {
|
|
282
279
|
width: 1.25rem;
|
|
@@ -292,7 +289,7 @@
|
|
|
292
289
|
min-width: 3rem;
|
|
293
290
|
}
|
|
294
291
|
.mc-button--m .mc-button__label {
|
|
295
|
-
font-size: 1rem;
|
|
292
|
+
font-size: var(--font-size-150, 1rem);
|
|
296
293
|
}
|
|
297
294
|
.mc-button--m .mc-button__icon {
|
|
298
295
|
width: 1.5rem;
|
|
@@ -308,7 +305,7 @@
|
|
|
308
305
|
min-width: 4rem;
|
|
309
306
|
}
|
|
310
307
|
.mc-button--l .mc-button__label {
|
|
311
|
-
font-size: 1.125rem;
|
|
308
|
+
font-size: var(--font-size-200, 1.125rem);
|
|
312
309
|
}
|
|
313
310
|
.mc-button--l .mc-button__icon {
|
|
314
311
|
width: 2rem;
|
|
@@ -322,90 +319,90 @@
|
|
|
322
319
|
padding: 0.25rem;
|
|
323
320
|
}
|
|
324
321
|
.mc-button--outlined {
|
|
325
|
-
color: #242938;
|
|
326
|
-
border-color: #8891aa;
|
|
327
|
-
background-color: #ffffff;
|
|
322
|
+
color: var(--button-color-outlined-standard-font, #242938);
|
|
323
|
+
border-color: var(--button-color-outlined-standard-border, #8891aa);
|
|
324
|
+
background-color: var(--button-color-outlined-standard-background, #ffffff);
|
|
328
325
|
}
|
|
329
326
|
.mc-button--outlined:hover {
|
|
330
|
-
background-color: #eff1f6;
|
|
327
|
+
background-color: var(--button-color-outlined-standard-hover-background, #eff1f6);
|
|
331
328
|
}
|
|
332
329
|
.mc-button--outlined:active {
|
|
333
|
-
background-color: #c9d0de;
|
|
330
|
+
background-color: var(--button-color-outlined-standard-active-background, #c9d0de);
|
|
334
331
|
}
|
|
335
332
|
.mc-button--outlined:disabled {
|
|
336
|
-
background-color: #d9d9d9;
|
|
333
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
337
334
|
border-color: transparent;
|
|
338
|
-
color: #737373;
|
|
335
|
+
color: var(--button-state-disabled-color, #737373);
|
|
339
336
|
cursor: not-allowed;
|
|
340
337
|
}
|
|
341
338
|
.mc-button--ghost {
|
|
342
|
-
color: #242938;
|
|
343
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
339
|
+
color: var(--button-color-ghost-standard-font, #242938);
|
|
340
|
+
background-color: var(--button-color-ghost-standard-background, rgba(255, 255, 255, 0.01));
|
|
344
341
|
}
|
|
345
342
|
.mc-button--ghost:hover {
|
|
346
|
-
background-color: rgba(70, 78, 99, 0.1);
|
|
343
|
+
background-color: var(--button-color-ghost-standard-hover-background, rgba(70, 78, 99, 0.1));
|
|
347
344
|
}
|
|
348
345
|
.mc-button--ghost:active {
|
|
349
|
-
background-color: rgba(70, 78, 99, 0.2);
|
|
346
|
+
background-color: var(--button-color-ghost-standard-active-background, rgba(70, 78, 99, 0.2));
|
|
350
347
|
}
|
|
351
348
|
.mc-button--ghost:disabled {
|
|
352
|
-
background-color: #d9d9d9;
|
|
349
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
353
350
|
border-color: transparent;
|
|
354
|
-
color: #737373;
|
|
351
|
+
color: var(--button-state-disabled-color, #737373);
|
|
355
352
|
cursor: not-allowed;
|
|
356
353
|
}
|
|
357
354
|
.mc-button--accent {
|
|
358
|
-
color: #ffffff;
|
|
359
|
-
background-color: #117f03;
|
|
355
|
+
color: var(--button-color-filled-accent-font, #ffffff);
|
|
356
|
+
background-color: var(--button-color-filled-accent-background, #117f03);
|
|
360
357
|
}
|
|
361
358
|
.mc-button--accent:hover {
|
|
362
|
-
background-color: #006902;
|
|
359
|
+
background-color: var(--button-color-filled-accent-hover-background, #006902);
|
|
363
360
|
}
|
|
364
361
|
.mc-button--accent:active {
|
|
365
|
-
background-color: #035010;
|
|
362
|
+
background-color: var(--button-color-filled-accent-active-background, #035010);
|
|
366
363
|
}
|
|
367
364
|
.mc-button--accent:disabled {
|
|
368
|
-
background-color: #d9d9d9;
|
|
365
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
369
366
|
border-color: transparent;
|
|
370
|
-
color: #737373;
|
|
367
|
+
color: var(--button-state-disabled-color, #737373);
|
|
371
368
|
cursor: not-allowed;
|
|
372
369
|
}
|
|
373
370
|
.mc-button--danger {
|
|
374
|
-
color: #ffffff;
|
|
375
|
-
background-color: #c61112;
|
|
371
|
+
color: var(--button-color-filled-danger-font, #ffffff);
|
|
372
|
+
background-color: var(--button-color-filled-danger-background, #c61112);
|
|
376
373
|
}
|
|
377
374
|
.mc-button--danger:hover {
|
|
378
|
-
background-color: #8c0003;
|
|
375
|
+
background-color: var(--button-color-filled-danger-hover-background, #8c0003);
|
|
379
376
|
}
|
|
380
377
|
.mc-button--danger:active {
|
|
381
|
-
background-color: #530000;
|
|
378
|
+
background-color: var(--button-color-filled-danger-active-background, #530000);
|
|
382
379
|
}
|
|
383
380
|
.mc-button--danger:disabled {
|
|
384
|
-
background-color: #d9d9d9;
|
|
381
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
385
382
|
border-color: transparent;
|
|
386
|
-
color: #737373;
|
|
383
|
+
color: var(--button-state-disabled-color, #737373);
|
|
387
384
|
cursor: not-allowed;
|
|
388
385
|
}
|
|
389
386
|
.mc-button--inverse {
|
|
390
|
-
--focus-color-mid: #000000;
|
|
391
|
-
--focus-color-outer: #ffffff;
|
|
392
|
-
color: #242938;
|
|
393
|
-
background-color: #ffffff;
|
|
387
|
+
--focus-color-mid: var(--focus-color-outline-outer, #000000);
|
|
388
|
+
--focus-color-outer: var(--focus-color-outline-mid, #ffffff);
|
|
389
|
+
color: var(--button-color-filled-inverse-font, #242938);
|
|
390
|
+
background-color: var(--button-color-filled-inverse-background, #ffffff);
|
|
394
391
|
}
|
|
395
392
|
.mc-button--inverse:hover {
|
|
396
|
-
background-color: #e6e6e6;
|
|
393
|
+
background-color: var(--button-color-filled-inverse-hover-background, #e6e6e6);
|
|
397
394
|
}
|
|
398
395
|
.mc-button--inverse:active {
|
|
399
|
-
background-color: #cccccc;
|
|
396
|
+
background-color: var(--button-color-filled-inverse-active-background, #cccccc);
|
|
400
397
|
}
|
|
401
398
|
.mc-button--inverse:disabled {
|
|
402
|
-
background-color: #d9d9d9;
|
|
399
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
403
400
|
border-color: transparent;
|
|
404
|
-
color: #737373;
|
|
401
|
+
color: var(--button-state-disabled-color, #737373);
|
|
405
402
|
cursor: not-allowed;
|
|
406
403
|
}
|
|
407
404
|
.mc-button--icon-button {
|
|
408
|
-
border-radius: 100
|
|
405
|
+
border-radius: var(--radius-full, 100%);
|
|
409
406
|
padding: 0;
|
|
410
407
|
}
|
|
411
408
|
.mc-button--loading .mc-button__loader {
|
|
@@ -417,134 +414,138 @@
|
|
|
417
414
|
visibility: hidden;
|
|
418
415
|
}
|
|
419
416
|
.mc-button--outlined.mc-button--standard {
|
|
420
|
-
color: #242938;
|
|
421
|
-
border-color: #8891aa;
|
|
422
|
-
background-color: #ffffff;
|
|
417
|
+
color: var(--button-color-outlined-standard-font, #242938);
|
|
418
|
+
border-color: var(--button-color-outlined-standard-border, #8891aa);
|
|
419
|
+
background-color: var(--button-color-outlined-standard-background, #ffffff);
|
|
423
420
|
}
|
|
424
421
|
.mc-button--outlined.mc-button--standard:hover {
|
|
425
|
-
background-color: #eff1f6;
|
|
422
|
+
background-color: var(--button-color-outlined-standard-hover-background, #eff1f6);
|
|
426
423
|
}
|
|
427
424
|
.mc-button--outlined.mc-button--standard:active {
|
|
428
|
-
background-color: #c9d0de;
|
|
425
|
+
background-color: var(--button-color-outlined-standard-active-background, #c9d0de);
|
|
429
426
|
}
|
|
430
427
|
.mc-button--outlined.mc-button--standard:disabled {
|
|
431
|
-
background-color: #d9d9d9;
|
|
428
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
432
429
|
border-color: transparent;
|
|
433
|
-
color: #737373;
|
|
430
|
+
color: var(--button-state-disabled-color, #737373);
|
|
434
431
|
cursor: not-allowed;
|
|
435
432
|
}
|
|
436
433
|
.mc-button--outlined.mc-button--accent {
|
|
437
|
-
color: #117f03;
|
|
438
|
-
border-color: #78be20;
|
|
439
|
-
background-color: #ffffff;
|
|
434
|
+
color: var(--button-color-outlined-accent-font, #117f03);
|
|
435
|
+
border-color: var(--button-color-outlined-accent-border, #78be20);
|
|
436
|
+
background-color: var(--button-color-outlined-accent-background, #ffffff);
|
|
440
437
|
}
|
|
441
438
|
.mc-button--outlined.mc-button--accent:hover {
|
|
442
|
-
background-color: #ebf5de;
|
|
439
|
+
background-color: var(--button-color-outlined-accent-hover-background, #ebf5de);
|
|
443
440
|
}
|
|
444
441
|
.mc-button--outlined.mc-button--accent:active {
|
|
445
|
-
background-color: #c5e39e;
|
|
442
|
+
background-color: var(--button-color-outlined-accent-active-background, #c5e39e);
|
|
446
443
|
}
|
|
447
444
|
.mc-button--outlined.mc-button--accent:disabled {
|
|
448
|
-
background-color: #d9d9d9;
|
|
445
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
449
446
|
border-color: transparent;
|
|
450
|
-
color: #737373;
|
|
447
|
+
color: var(--button-state-disabled-color, #737373);
|
|
451
448
|
cursor: not-allowed;
|
|
452
449
|
}
|
|
453
450
|
.mc-button--outlined.mc-button--danger {
|
|
454
|
-
color: #c61112;
|
|
455
|
-
border-color: #ef5f5c;
|
|
456
|
-
background-color: #ffffff;
|
|
451
|
+
color: var(--button-color-outlined-danger-font, #c61112);
|
|
452
|
+
border-color: var(--button-color-outlined-danger-border, #ef5f5c);
|
|
453
|
+
background-color: var(--button-color-outlined-danger-background, #ffffff);
|
|
457
454
|
}
|
|
458
455
|
.mc-button--outlined.mc-button--danger:hover {
|
|
459
|
-
background-color: #fdeaea;
|
|
456
|
+
background-color: var(--button-color-outlined-danger-hover-background, #fdeaea);
|
|
460
457
|
}
|
|
461
458
|
.mc-button--outlined.mc-button--danger:active {
|
|
462
|
-
background-color: #f8bcbb;
|
|
459
|
+
background-color: var(--button-color-outlined-danger-active-background, #f8bcbb);
|
|
463
460
|
}
|
|
464
461
|
.mc-button--outlined.mc-button--danger:disabled {
|
|
465
|
-
background-color: #d9d9d9;
|
|
462
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
466
463
|
border-color: transparent;
|
|
467
|
-
color: #737373;
|
|
464
|
+
color: var(--button-state-disabled-color, #737373);
|
|
468
465
|
cursor: not-allowed;
|
|
469
466
|
}
|
|
470
467
|
.mc-button--outlined.mc-button--inverse {
|
|
471
|
-
color: #ffffff;
|
|
472
|
-
border-color: #ffffff;
|
|
473
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
468
|
+
color: var(--button-color-outlined-inverse-font, #ffffff);
|
|
469
|
+
border-color: var(--button-color-outlined-inverse-border, #ffffff);
|
|
470
|
+
background-color: var(--button-color-outlined-inverse-background, rgba(255, 255, 255, 0.01));
|
|
474
471
|
}
|
|
475
472
|
.mc-button--outlined.mc-button--inverse:hover {
|
|
476
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
473
|
+
background-color: var(--button-color-outlined-inverse-hover-background, rgba(255, 255, 255, 0.1));
|
|
477
474
|
}
|
|
478
475
|
.mc-button--outlined.mc-button--inverse:active {
|
|
479
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
476
|
+
background-color: var(--button-color-outlined-inverse-active-background, rgba(255, 255, 255, 0.2));
|
|
480
477
|
}
|
|
481
478
|
.mc-button--outlined.mc-button--inverse:disabled {
|
|
482
|
-
background-color: #d9d9d9;
|
|
479
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
483
480
|
border-color: transparent;
|
|
484
|
-
color: #737373;
|
|
481
|
+
color: var(--button-state-disabled-color, #737373);
|
|
485
482
|
cursor: not-allowed;
|
|
486
483
|
}
|
|
487
484
|
.mc-button--ghost.mc-button--standard {
|
|
488
|
-
color: #242938;
|
|
489
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
485
|
+
color: var(--button-color-ghost-standard-font, #242938);
|
|
486
|
+
background-color: var(--button-color-ghost-standard-background, rgba(255, 255, 255, 0.01));
|
|
490
487
|
}
|
|
491
488
|
.mc-button--ghost.mc-button--standard:hover {
|
|
492
|
-
background-color: rgba(70, 78, 99, 0.1);
|
|
489
|
+
background-color: var(--button-color-ghost-standard-hover-background, rgba(70, 78, 99, 0.1));
|
|
493
490
|
}
|
|
494
491
|
.mc-button--ghost.mc-button--standard:active {
|
|
495
|
-
background-color: rgba(70, 78, 99, 0.2);
|
|
492
|
+
background-color: var(--button-color-ghost-standard-active-background, rgba(70, 78, 99, 0.2));
|
|
496
493
|
}
|
|
497
494
|
.mc-button--ghost.mc-button--standard:disabled {
|
|
498
|
-
background-color: #d9d9d9;
|
|
495
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
499
496
|
border-color: transparent;
|
|
500
|
-
color: #737373;
|
|
497
|
+
color: var(--button-state-disabled-color, #737373);
|
|
501
498
|
cursor: not-allowed;
|
|
502
499
|
}
|
|
503
500
|
.mc-button--ghost.mc-button--accent {
|
|
504
|
-
color: #117f03;
|
|
505
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
501
|
+
color: var(--button-color-ghost-accent-font, #117f03);
|
|
502
|
+
background-color: var(--button-color-ghost-accent-background, rgba(255, 255, 255, 0.01));
|
|
506
503
|
}
|
|
507
504
|
.mc-button--ghost.mc-button--accent:hover {
|
|
508
|
-
background-color: rgba(17, 127, 3, 0.1);
|
|
505
|
+
background-color: var(--button-color-ghost-accent-hover-background, rgba(17, 127, 3, 0.1));
|
|
509
506
|
}
|
|
510
507
|
.mc-button--ghost.mc-button--accent:active {
|
|
511
|
-
background-color: rgba(17, 127, 3, 0.2);
|
|
508
|
+
background-color: var(--button-color-ghost-accent-active-background, rgba(17, 127, 3, 0.2));
|
|
512
509
|
}
|
|
513
510
|
.mc-button--ghost.mc-button--accent:disabled {
|
|
514
|
-
background-color: #d9d9d9;
|
|
511
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
515
512
|
border-color: transparent;
|
|
516
|
-
color: #737373;
|
|
513
|
+
color: var(--button-state-disabled-color, #737373);
|
|
517
514
|
cursor: not-allowed;
|
|
518
515
|
}
|
|
519
516
|
.mc-button--ghost.mc-button--danger {
|
|
520
|
-
color: #c61112;
|
|
521
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
517
|
+
color: var(--button-color-ghost-danger-font, #c61112);
|
|
518
|
+
background-color: var(--button-color-ghost-danger-background, rgba(255, 255, 255, 0.01));
|
|
522
519
|
}
|
|
523
520
|
.mc-button--ghost.mc-button--danger:hover {
|
|
524
|
-
background-color: rgba(198, 17, 18, 0.1);
|
|
521
|
+
background-color: var(--button-color-ghost-danger-hover-background, rgba(198, 17, 18, 0.1));
|
|
525
522
|
}
|
|
526
523
|
.mc-button--ghost.mc-button--danger:active {
|
|
527
|
-
background-color: rgba(198, 17, 18, 0.2);
|
|
524
|
+
background-color: var(--button-color-ghost-danger-active-background, rgba(198, 17, 18, 0.2));
|
|
528
525
|
}
|
|
529
526
|
.mc-button--ghost.mc-button--danger:disabled {
|
|
530
|
-
background-color: #d9d9d9;
|
|
527
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
531
528
|
border-color: transparent;
|
|
532
|
-
color: #737373;
|
|
529
|
+
color: var(--button-state-disabled-color, #737373);
|
|
533
530
|
cursor: not-allowed;
|
|
534
531
|
}
|
|
535
532
|
.mc-button--ghost.mc-button--inverse {
|
|
536
|
-
color: #ffffff;
|
|
537
|
-
background-color: rgba(255, 255, 255, 0.01);
|
|
533
|
+
color: var(--button-color-ghost-inverse-font, #ffffff);
|
|
534
|
+
background-color: var(--button-color-ghost-inverse-background, rgba(255, 255, 255, 0.01));
|
|
538
535
|
}
|
|
539
536
|
.mc-button--ghost.mc-button--inverse:hover {
|
|
540
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
537
|
+
background-color: var(--button-color-ghost-inverse-hover-background, rgba(255, 255, 255, 0.1));
|
|
541
538
|
}
|
|
542
539
|
.mc-button--ghost.mc-button--inverse:active {
|
|
543
|
-
background-color: rgba(255, 255, 255, 0.2);
|
|
540
|
+
background-color: var(--button-color-ghost-inverse-active-background, rgba(255, 255, 255, 0.2));
|
|
544
541
|
}
|
|
545
542
|
.mc-button--ghost.mc-button--inverse:disabled {
|
|
546
|
-
background-color: #d9d9d9;
|
|
543
|
+
background-color: var(--button-state-disabled-background, #d9d9d9);
|
|
547
544
|
border-color: transparent;
|
|
548
|
-
color: #737373;
|
|
545
|
+
color: var(--button-state-disabled-color, #737373);
|
|
549
546
|
cursor: not-allowed;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.mc-modal__icon:empty {
|
|
550
|
+
display: none;
|
|
550
551
|
}</style>
|
|
@@ -1,12 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A modal is a dialog window that appears on top of the main content, requiring user interaction before returning to the main interface. It is used to focus attention on a specific task, provide important information, or request confirmation for an action. Modals typically include a title, description, and primary/secondary actions and should be used for single, focused tasks to avoid disrupting the user experience.
|
|
3
|
+
*
|
|
4
|
+
* @slot icon - Use this slot to insert an icon next to the title of the modal.
|
|
5
|
+
* @slot default - Use this slot to insert the content of the modal.
|
|
6
|
+
* @slot link - Use this slot to insert a link in the footer.
|
|
7
|
+
* @slot footer - Use this slot to insert buttons in the footer.
|
|
8
|
+
* @event update:open {CustomEvent<boolean>} - Fired when the open state changes.
|
|
9
|
+
*/
|
|
1
10
|
interface Props {
|
|
11
|
+
/**
|
|
12
|
+
* if `true`, display the modal.
|
|
13
|
+
*/
|
|
2
14
|
open?: boolean;
|
|
3
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Title of the modal.
|
|
17
|
+
*/
|
|
18
|
+
title: string;
|
|
19
|
+
/**
|
|
20
|
+
* Description of the modal.
|
|
21
|
+
*/
|
|
4
22
|
description?: string;
|
|
23
|
+
/**
|
|
24
|
+
* if `true`, display the close button.
|
|
25
|
+
*/
|
|
5
26
|
closable?: boolean;
|
|
6
|
-
icon?: any;
|
|
7
|
-
footer?: any;
|
|
8
|
-
link?: any;
|
|
9
|
-
[key: string]: any;
|
|
10
27
|
}
|
|
11
28
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
12
29
|
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/modal/Modal.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/modal/Modal.svelte.ts"],"names":[],"mappings":"AAME;;;;;;;;GAQG;AACH,UAAU,KAAK;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA2DH,UAAU,kCAAkC,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,OAAO,GAAG,EAAE,EAAE,QAAQ,GAAG,MAAM;IACpM,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,2BAA2B,CAAC,KAAK,CAAC,GAAG,OAAO,QAAQ,EAAE,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,QAAQ,CAAA;KAAE,GAAG,OAAO,CAAC;IACjK,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CAAA;KAAC,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,GAAG,CAAC;QAAC,GAAG,CAAC,EAAE,GAAG,CAAA;KAAE,CAAC;IAC9G,YAAY,CAAC,EAAE,QAAQ,CAAC;CAC3B;AACD,KAAK,gCAAgC,CAAC,KAAK,EAAE,KAAK,IAAI,KAAK,GACvD,CAAC,KAAK,SAAS;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,GACzB,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GACnC,GAAG,GACH;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE,GAClB,EAAE,CAAC,CAAC;AAId,QAAA,MAAM,KAAK;;;;;;;;;;;;UAAqF,CAAC;AAC/E,KAAK,KAAK,GAAG,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC;AAC1C,eAAe,KAAK,CAAC"}
|