@mozaic-ds/web-components 1.3.0 → 1.4.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/dist/Condition20.js +2 -0
- package/dist/Condition20.js.map +1 -0
- package/dist/accordion-list.state.svelte.js +2 -0
- package/dist/accordion-list.state.svelte.js.map +1 -0
- package/dist/attributes.js +1 -1
- package/dist/attributes.js.map +1 -1
- package/dist/bundle.d.ts +8 -0
- package/dist/bundle.d.ts.map +1 -1
- package/dist/bundle.js +8 -0
- package/dist/components/accordionlist/AccordionList.js +50 -0
- package/dist/components/accordionlist/AccordionList.js.map +1 -0
- package/dist/components/accordionlist/AccordionList.spec.js +40 -0
- package/dist/components/accordionlist/AccordionList.stories.d.ts +15 -0
- package/dist/components/accordionlist/AccordionList.stories.d.ts.map +1 -0
- package/dist/components/accordionlist/AccordionList.stories.js +141 -0
- package/dist/components/accordionlist/AccordionList.svelte +441 -0
- package/dist/components/accordionlist/AccordionList.svelte.d.ts +47 -0
- package/dist/components/accordionlist/AccordionList.svelte.d.ts.map +1 -0
- package/dist/components/accordionlist/README.md +18 -0
- package/dist/components/accordionlist/accordion-list.state.svelte.d.ts +5 -0
- package/dist/components/accordionlist/accordion-list.state.svelte.d.ts.map +1 -0
- package/dist/components/accordionlist/accordion-list.state.svelte.js +6 -0
- package/dist/components/accordionlistItem/AccordionListItem.js +50 -0
- package/dist/components/accordionlistItem/AccordionListItem.js.map +1 -0
- package/dist/components/accordionlistItem/AccordionListItem.spec.js +75 -0
- package/dist/components/accordionlistItem/AccordionListItem.svelte +463 -0
- package/dist/components/accordionlistItem/AccordionListItem.svelte.d.ts +50 -0
- package/dist/components/accordionlistItem/AccordionListItem.svelte.d.ts.map +1 -0
- package/dist/components/accordionlistItem/README.md +29 -0
- package/dist/components/actionbottombar/ActionBottomBar.js +12 -0
- package/dist/components/actionbottombar/ActionBottomBar.js.map +1 -0
- package/dist/components/actionbottombar/ActionBottomBar.spec.js +20 -0
- package/dist/components/actionbottombar/ActionBottomBar.stories.d.ts +19 -0
- package/dist/components/actionbottombar/ActionBottomBar.stories.d.ts.map +1 -0
- package/dist/components/actionbottombar/ActionBottomBar.stories.js +131 -0
- package/dist/components/actionbottombar/ActionBottomBar.svelte +113 -0
- package/dist/components/actionbottombar/ActionBottomBar.svelte.d.ts +43 -0
- package/dist/components/actionbottombar/ActionBottomBar.svelte.d.ts.map +1 -0
- package/dist/components/actionbottombar/README.md +19 -0
- package/dist/components/actionlistbox/ActionListbox.js +10 -0
- package/dist/components/actionlistbox/ActionListbox.js.map +1 -0
- package/dist/components/actionlistbox/ActionListbox.spec.js +20 -0
- package/dist/components/actionlistbox/ActionListbox.stories.d.ts +12 -0
- package/dist/components/actionlistbox/ActionListbox.stories.d.ts.map +1 -0
- package/dist/components/actionlistbox/ActionListbox.stories.js +49 -0
- package/dist/components/actionlistbox/ActionListbox.svelte +213 -0
- package/dist/components/actionlistbox/ActionListbox.svelte.d.ts +37 -0
- package/dist/components/actionlistbox/ActionListbox.svelte.d.ts.map +1 -0
- package/dist/components/actionlistbox/README.md +23 -0
- package/dist/components/actionlistboxitem/ActionListboxItem.js +4 -0
- package/dist/components/actionlistboxitem/ActionListboxItem.js.map +1 -0
- package/dist/components/actionlistboxitem/ActionListboxItem.spec.js +37 -0
- package/dist/components/actionlistboxitem/ActionListboxItem.svelte +136 -0
- package/dist/components/actionlistboxitem/ActionListboxItem.svelte.d.ts +43 -0
- package/dist/components/actionlistboxitem/ActionListboxItem.svelte.d.ts.map +1 -0
- package/dist/components/actionlistboxitem/README.md +20 -0
- package/dist/components/avatar/Avatar.js +2 -2
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/avatar/Avatar.stories.d.ts +1 -1
- package/dist/components/avatar/Avatar.stories.d.ts.map +1 -1
- package/dist/components/avatar/Avatar.stories.js +2 -2
- package/dist/components/avatar/Avatar.svelte +13 -3
- package/dist/components/avatar/Avatar.svelte.d.ts +7 -1
- package/dist/components/avatar/Avatar.svelte.d.ts.map +1 -1
- package/dist/components/avatar/README.md +2 -1
- package/dist/components/breadcrumb/Breadcrumb.js +2 -2
- package/dist/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/breadcrumb/Breadcrumb.svelte +1 -0
- package/dist/components/breadcrumb/Breadcrumb.svelte.d.ts +1 -0
- package/dist/components/breadcrumb/Breadcrumb.svelte.d.ts.map +1 -1
- package/dist/components/builtinmenu/BuiltInMenu.js +4 -0
- package/dist/components/builtinmenu/BuiltInMenu.js.map +1 -0
- package/dist/components/builtinmenu/BuiltInMenu.stories.d.ts +11 -0
- package/dist/components/builtinmenu/BuiltInMenu.stories.d.ts.map +1 -0
- package/dist/components/builtinmenu/BuiltInMenu.stories.js +61 -0
- package/dist/components/builtinmenu/BuiltInMenu.svelte +142 -0
- package/dist/components/builtinmenu/BuiltInMenu.svelte.d.ts +41 -0
- package/dist/components/builtinmenu/BuiltInMenu.svelte.d.ts.map +1 -0
- package/dist/components/builtinmenu/BuiltinMenu.spec.js +19 -0
- package/dist/components/builtinmenu/README.md +18 -0
- package/dist/components/builtinmenuitem/BuiltInMenuItem.js +8 -0
- package/dist/components/builtinmenuitem/BuiltInMenuItem.js.map +1 -0
- package/dist/components/builtinmenuitem/BuiltInMenuItem.spec.js +36 -0
- package/dist/components/builtinmenuitem/BuiltInMenuItem.svelte +165 -0
- package/dist/components/builtinmenuitem/BuiltInMenuItem.svelte.d.ts +50 -0
- package/dist/components/builtinmenuitem/BuiltInMenuItem.svelte.d.ts.map +1 -0
- package/dist/components/builtinmenuitem/README.md +20 -0
- package/dist/components/button/Button.js +2 -2
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/button/Button.stories.d.ts +13 -2
- package/dist/components/button/Button.stories.d.ts.map +1 -1
- package/dist/components/button/Button.stories.js +145 -7
- package/dist/components/button/Button.svelte +44 -16
- package/dist/components/button/Button.svelte.d.ts +10 -0
- package/dist/components/button/Button.svelte.d.ts.map +1 -1
- package/dist/components/button/README.md +2 -2
- package/dist/components/callout/Callout.js +2 -2
- package/dist/components/callout/Callout.js.map +1 -1
- package/dist/components/callout/Callout.spec.js +4 -1
- package/dist/components/callout/Callout.stories.d.ts +2 -2
- package/dist/components/callout/Callout.stories.d.ts.map +1 -1
- package/dist/components/callout/Callout.stories.js +2 -2
- package/dist/components/callout/Callout.svelte +39 -4
- package/dist/components/callout/Callout.svelte.d.ts +14 -0
- package/dist/components/callout/Callout.svelte.d.ts.map +1 -1
- package/dist/components/callout/README.md +3 -0
- package/dist/components/carousel/Carousel.js +2 -2
- package/dist/components/carousel/Carousel.js.map +1 -1
- package/dist/components/carousel/Carousel.stories.d.ts.map +1 -1
- package/dist/components/carousel/Carousel.stories.js +1 -0
- package/dist/components/carousel/Carousel.svelte +30 -6
- package/dist/components/carousel/Carousel.svelte.d.ts +10 -0
- package/dist/components/carousel/Carousel.svelte.d.ts.map +1 -1
- package/dist/components/carousel/README.md +3 -1
- package/dist/components/checkbox/Checkbox.js +2 -2
- package/dist/components/checkbox/Checkbox.js.map +1 -1
- package/dist/components/checkbox/Checkbox.stories.js +5 -5
- package/dist/components/checkbox/Checkbox.svelte +5 -0
- package/dist/components/checkbox/Checkbox.svelte.d.ts +1 -0
- package/dist/components/checkbox/Checkbox.svelte.d.ts.map +1 -1
- package/dist/components/checkboxgroup/CheckboxGroup.js +2 -2
- package/dist/components/checkboxgroup/CheckboxGroup.js.map +1 -1
- package/dist/components/checkboxgroup/CheckboxGroup.stories.js +2 -2
- package/dist/components/checkboxgroup/CheckboxGroup.svelte +3 -0
- package/dist/components/checkboxgroup/CheckboxGroup.svelte.d.ts +1 -0
- package/dist/components/checkboxgroup/CheckboxGroup.svelte.d.ts.map +1 -1
- package/dist/components/checklistmenu/CheckListMenu.js +4 -0
- package/dist/components/checklistmenu/CheckListMenu.js.map +1 -0
- package/dist/components/checklistmenu/CheckListMenu.spec.js +33 -0
- package/dist/components/checklistmenu/CheckListMenu.stories.d.ts +8 -0
- package/dist/components/checklistmenu/CheckListMenu.stories.d.ts.map +1 -0
- package/dist/components/checklistmenu/CheckListMenu.stories.js +32 -0
- package/dist/components/checklistmenu/CheckListMenu.svelte +79 -0
- package/dist/components/checklistmenu/CheckListMenu.svelte.d.ts +27 -0
- package/dist/components/checklistmenu/CheckListMenu.svelte.d.ts.map +1 -0
- package/dist/components/checklistmenu/README.md +12 -0
- package/dist/components/circularprogressbar/CircularProgressbar.js +2 -2
- package/dist/components/circularprogressbar/CircularProgressbar.js.map +1 -1
- package/dist/components/circularprogressbar/CircularProgressbar.svelte +1 -0
- package/dist/components/circularprogressbar/CircularProgressbar.svelte.d.ts +1 -0
- package/dist/components/circularprogressbar/CircularProgressbar.svelte.d.ts.map +1 -1
- package/dist/components/container/Container.js +2 -2
- package/dist/components/container/Container.js.map +1 -1
- package/dist/components/container/Container.stories.d.ts.map +1 -1
- package/dist/components/container/Container.stories.js +1 -3
- package/dist/components/container/Container.svelte +19 -3
- package/dist/components/container/Container.svelte.d.ts +5 -0
- package/dist/components/container/Container.svelte.d.ts.map +1 -1
- package/dist/components/container/README.md +1 -0
- package/dist/components/datepicker/Datepicker.js +2 -2
- package/dist/components/datepicker/Datepicker.js.map +1 -1
- package/dist/components/datepicker/Datepicker.stories.d.ts.map +1 -1
- package/dist/components/datepicker/Datepicker.stories.js +5 -4
- package/dist/components/datepicker/Datepicker.svelte +15 -3
- package/dist/components/datepicker/Datepicker.svelte.d.ts +1 -0
- package/dist/components/datepicker/Datepicker.svelte.d.ts.map +1 -1
- package/dist/components/divider/Divider.js +2 -2
- package/dist/components/divider/Divider.js.map +1 -1
- package/dist/components/divider/Divider.svelte +19 -3
- package/dist/components/divider/Divider.svelte.d.ts +6 -0
- package/dist/components/divider/Divider.svelte.d.ts.map +1 -1
- package/dist/components/divider/README.md +1 -0
- package/dist/components/drawer/Drawer.js +2 -2
- package/dist/components/drawer/Drawer.js.map +1 -1
- package/dist/components/drawer/Drawer.stories.js +3 -3
- package/dist/components/drawer/Drawer.svelte +35 -7
- package/dist/components/drawer/Drawer.svelte.d.ts +10 -0
- package/dist/components/drawer/Drawer.svelte.d.ts.map +1 -1
- package/dist/components/drawer/README.md +2 -0
- package/dist/components/field/Field.js +2 -2
- package/dist/components/field/Field.js.map +1 -1
- package/dist/components/field/Field.stories.js +3 -3
- package/dist/components/field/Field.svelte +16 -1
- package/dist/components/field/Field.svelte.d.ts +5 -0
- package/dist/components/field/Field.svelte.d.ts.map +1 -1
- package/dist/components/field/README.md +1 -0
- package/dist/components/fileuploader/FileUploader.js +4 -0
- package/dist/components/fileuploader/FileUploader.js.map +1 -0
- package/dist/components/fileuploader/FileUploader.spec.js +134 -0
- package/dist/components/fileuploader/FileUploader.stories.d.ts +17 -0
- package/dist/components/fileuploader/FileUploader.stories.d.ts.map +1 -0
- package/dist/components/fileuploader/FileUploader.stories.js +172 -0
- package/dist/components/fileuploader/FileUploader.svelte +816 -0
- package/dist/components/fileuploader/FileUploader.svelte.d.ts +125 -0
- package/dist/components/fileuploader/FileUploader.svelte.d.ts.map +1 -0
- package/dist/components/fileuploader/README.md +42 -0
- package/dist/components/fileuploaderitem/FileUploaderItem.js +5 -0
- package/dist/components/fileuploaderitem/FileUploaderItem.js.map +1 -0
- package/dist/components/fileuploaderitem/FileUploaderItem.spec.js +41 -0
- package/dist/components/fileuploaderitem/FileUploaderItem.svelte +298 -0
- package/dist/components/fileuploaderitem/FileUploaderItem.svelte.d.ts +62 -0
- package/dist/components/fileuploaderitem/FileUploaderItem.svelte.d.ts.map +1 -0
- package/dist/components/fileuploaderitem/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.svelte +1 -0
- package/dist/components/flag/Flag.svelte.d.ts +1 -0
- package/dist/components/flag/Flag.svelte.d.ts.map +1 -1
- 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 +13 -7
- package/dist/components/iconbutton/IconButton.stories.d.ts.map +1 -1
- package/dist/components/iconbutton/IconButton.stories.js +113 -10
- package/dist/components/iconbutton/IconButton.svelte +35 -2
- package/dist/components/iconbutton/IconButton.svelte.d.ts +10 -0
- package/dist/components/iconbutton/IconButton.svelte.d.ts.map +1 -1
- package/dist/components/iconbutton/README.md +2 -0
- package/dist/components/kpiitem/KpiItem.js +2 -2
- package/dist/components/kpiitem/KpiItem.js.map +1 -1
- package/dist/components/kpiitem/KpiItem.stories.d.ts.map +1 -1
- package/dist/components/kpiitem/KpiItem.stories.js +1 -0
- package/dist/components/kpiitem/KpiItem.svelte +2 -3
- package/dist/components/kpiitem/KpiItem.svelte.d.ts +1 -0
- package/dist/components/kpiitem/KpiItem.svelte.d.ts.map +1 -1
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.js +2 -2
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.js.map +1 -1
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.svelte +1 -0
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.svelte.d.ts +1 -0
- package/dist/components/linearprogressbarbuffer/LinearProgressbarBuffer.svelte.d.ts.map +1 -1
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.js +2 -2
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.js.map +1 -1
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.svelte +1 -0
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.svelte.d.ts +1 -0
- package/dist/components/linearprogressbarpercentage/LinearProgressbarPercentage.svelte.d.ts.map +1 -1
- package/dist/components/link/Link.js +2 -2
- package/dist/components/link/Link.js.map +1 -1
- package/dist/components/link/Link.stories.d.ts +2 -2
- package/dist/components/link/Link.stories.d.ts.map +1 -1
- package/dist/components/link/Link.stories.js +5 -5
- package/dist/components/link/Link.svelte +38 -8
- package/dist/components/link/Link.svelte.d.ts +10 -0
- package/dist/components/link/Link.svelte.d.ts.map +1 -1
- package/dist/components/link/README.md +2 -1
- package/dist/components/loader/Loader.js +2 -2
- package/dist/components/loader/Loader.js.map +1 -1
- package/dist/components/loader/Loader.svelte +1 -0
- package/dist/components/loader/Loader.svelte.d.ts +1 -0
- package/dist/components/loader/Loader.svelte.d.ts.map +1 -1
- package/dist/components/loadingoverlay/LoadingOverlay.js +2 -2
- package/dist/components/loadingoverlay/LoadingOverlay.js.map +1 -1
- package/dist/components/loadingoverlay/LoadingOverlay.stories.js +1 -1
- package/dist/components/loadingoverlay/LoadingOverlay.svelte +9 -1
- package/dist/components/loadingoverlay/LoadingOverlay.svelte.d.ts +1 -0
- package/dist/components/loadingoverlay/LoadingOverlay.svelte.d.ts.map +1 -1
- package/dist/components/modal/Modal.js +2 -2
- package/dist/components/modal/Modal.js.map +1 -1
- package/dist/components/modal/Modal.stories.d.ts +2 -2
- package/dist/components/modal/Modal.stories.d.ts.map +1 -1
- package/dist/components/modal/Modal.stories.js +4 -4
- package/dist/components/modal/Modal.svelte +62 -8
- package/dist/components/modal/Modal.svelte.d.ts +18 -0
- package/dist/components/modal/Modal.svelte.d.ts.map +1 -1
- package/dist/components/modal/README.md +4 -0
- package/dist/components/numberbadge/NumberBadge.js +2 -2
- package/dist/components/numberbadge/NumberBadge.js.map +1 -1
- package/dist/components/numberbadge/NumberBadge.svelte +1 -0
- package/dist/components/numberbadge/NumberBadge.svelte.d.ts +1 -0
- package/dist/components/numberbadge/NumberBadge.svelte.d.ts.map +1 -1
- package/dist/components/overlay/Overlay.js +2 -2
- package/dist/components/overlay/Overlay.js.map +1 -1
- package/dist/components/overlay/Overlay.stories.js +1 -1
- package/dist/components/overlay/Overlay.svelte +19 -3
- package/dist/components/overlay/Overlay.svelte.d.ts +5 -0
- package/dist/components/overlay/Overlay.svelte.d.ts.map +1 -1
- package/dist/components/overlay/README.md +1 -0
- package/dist/components/pagination/Pagination.js +8 -8
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/components/pagination/Pagination.stories.js +1 -1
- package/dist/components/pagination/Pagination.svelte +16 -6
- package/dist/components/pagination/Pagination.svelte.d.ts.map +1 -1
- package/dist/components/passwordinput/PasswordInput.js +2 -2
- package/dist/components/passwordinput/PasswordInput.js.map +1 -1
- package/dist/components/passwordinput/PasswordInput.stories.js +4 -4
- package/dist/components/passwordinput/PasswordInput.svelte +7 -0
- package/dist/components/passwordinput/PasswordInput.svelte.d.ts +1 -0
- package/dist/components/passwordinput/PasswordInput.svelte.d.ts.map +1 -1
- package/dist/components/phonenumber/PhoneNumber.js +6 -6
- package/dist/components/phonenumber/PhoneNumber.js.map +1 -1
- package/dist/components/phonenumber/PhoneNumber.stories.d.ts.map +1 -1
- package/dist/components/phonenumber/PhoneNumber.stories.js +10 -4
- package/dist/components/phonenumber/PhoneNumber.svelte +13 -4
- package/dist/components/phonenumber/PhoneNumber.svelte.d.ts +1 -0
- package/dist/components/phonenumber/PhoneNumber.svelte.d.ts.map +1 -1
- package/dist/components/pincode/Pincode.js +2 -2
- package/dist/components/pincode/Pincode.js.map +1 -1
- package/dist/components/pincode/Pincode.stories.js +3 -3
- package/dist/components/pincode/Pincode.svelte +12 -2
- package/dist/components/pincode/Pincode.svelte.d.ts.map +1 -1
- package/dist/components/quantityselector/QuantitySelector.js +2 -2
- package/dist/components/quantityselector/QuantitySelector.js.map +1 -1
- package/dist/components/quantityselector/QuantitySelector.stories.js +3 -3
- package/dist/components/quantityselector/QuantitySelector.svelte +7 -2
- package/dist/components/quantityselector/QuantitySelector.svelte.d.ts +1 -0
- package/dist/components/quantityselector/QuantitySelector.svelte.d.ts.map +1 -1
- package/dist/components/radio/Radio.js +2 -2
- package/dist/components/radio/Radio.js.map +1 -1
- package/dist/components/radio/Radio.stories.js +3 -3
- package/dist/components/radio/Radio.svelte +3 -0
- package/dist/components/radio/Radio.svelte.d.ts +1 -0
- package/dist/components/radio/Radio.svelte.d.ts.map +1 -1
- package/dist/components/radiogroup/RadioGroup.js +2 -2
- package/dist/components/radiogroup/RadioGroup.js.map +1 -1
- package/dist/components/radiogroup/RadioGroup.stories.js +2 -2
- package/dist/components/radiogroup/RadioGroup.svelte +2 -0
- package/dist/components/radiogroup/RadioGroup.svelte.d.ts.map +1 -1
- package/dist/components/segmentedcontrol/SegmentedControl.js +2 -2
- package/dist/components/segmentedcontrol/SegmentedControl.js.map +1 -1
- package/dist/components/segmentedcontrol/SegmentedControl.stories.d.ts.map +1 -1
- package/dist/components/segmentedcontrol/SegmentedControl.stories.js +2 -1
- package/dist/components/segmentedcontrol/SegmentedControl.svelte +8 -1
- package/dist/components/segmentedcontrol/SegmentedControl.svelte.d.ts.map +1 -1
- package/dist/components/select/Select.js +2 -2
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/select/Select.stories.js +3 -3
- package/dist/components/select/Select.svelte +4 -0
- package/dist/components/select/Select.svelte.d.ts +1 -0
- package/dist/components/select/Select.svelte.d.ts.map +1 -1
- package/dist/components/starrating/StarRating.js +2 -2
- package/dist/components/starrating/StarRating.js.map +1 -1
- package/dist/components/starrating/StarRating.stories.d.ts +1 -0
- package/dist/components/starrating/StarRating.stories.d.ts.map +1 -1
- package/dist/components/starrating/StarRating.stories.js +3 -2
- package/dist/components/starrating/StarRating.svelte +6 -3
- package/dist/components/starrating/StarRating.svelte.d.ts +1 -0
- package/dist/components/starrating/StarRating.svelte.d.ts.map +1 -1
- package/dist/components/statusbadge/StatusBadge.js +2 -2
- package/dist/components/statusbadge/StatusBadge.js.map +1 -1
- package/dist/components/statusbadge/StatusBadge.svelte +1 -0
- package/dist/components/statusbadge/StatusBadge.svelte.d.ts +1 -0
- package/dist/components/statusbadge/StatusBadge.svelte.d.ts.map +1 -1
- package/dist/components/statusdot/StatusDot.js +2 -2
- package/dist/components/statusdot/StatusDot.js.map +1 -1
- package/dist/components/statusdot/StatusDot.svelte +1 -0
- package/dist/components/statusdot/StatusDot.svelte.d.ts +1 -0
- package/dist/components/statusdot/StatusDot.svelte.d.ts.map +1 -1
- package/dist/components/statusmessage/StatusMessage.js +2 -2
- package/dist/components/statusmessage/StatusMessage.js.map +1 -1
- package/dist/components/statusmessage/StatusMessage.svelte +10 -7
- package/dist/components/statusmessage/StatusMessage.svelte.d.ts +1 -0
- package/dist/components/statusmessage/StatusMessage.svelte.d.ts.map +1 -1
- package/dist/components/statusnotification/README.md +1 -0
- package/dist/components/statusnotification/StatusNotification.js +2 -2
- package/dist/components/statusnotification/StatusNotification.js.map +1 -1
- package/dist/components/statusnotification/StatusNotification.stories.d.ts +1 -1
- package/dist/components/statusnotification/StatusNotification.stories.d.ts.map +1 -1
- package/dist/components/statusnotification/StatusNotification.stories.js +2 -2
- package/dist/components/statusnotification/StatusNotification.svelte +34 -15
- package/dist/components/statusnotification/StatusNotification.svelte.d.ts +6 -0
- package/dist/components/statusnotification/StatusNotification.svelte.d.ts.map +1 -1
- package/dist/components/stepperbottombar/README.md +24 -0
- package/dist/components/stepperbottombar/StepperBottomBar.js +12 -0
- package/dist/components/stepperbottombar/StepperBottomBar.js.map +1 -0
- package/dist/components/stepperbottombar/StepperBottomBar.spec.js +106 -0
- package/dist/components/stepperbottombar/StepperBottomBar.stories.d.ts +9 -0
- package/dist/components/stepperbottombar/StepperBottomBar.stories.d.ts.map +1 -0
- package/dist/components/stepperbottombar/StepperBottomBar.stories.js +74 -0
- package/dist/components/stepperbottombar/StepperBottomBar.svelte +532 -0
- package/dist/components/stepperbottombar/StepperBottomBar.svelte.d.ts +41 -0
- package/dist/components/stepperbottombar/StepperBottomBar.svelte.d.ts.map +1 -0
- package/dist/components/steppercompact/StepperCompact.js +2 -2
- package/dist/components/steppercompact/StepperCompact.js.map +1 -1
- package/dist/components/stepperinline/README.md +11 -0
- package/dist/components/stepperinline/StepperInline.js +16 -0
- package/dist/components/stepperinline/StepperInline.js.map +1 -0
- package/dist/components/stepperinline/StepperInline.spec.js +83 -0
- package/dist/components/stepperinline/StepperInline.stories.d.ts +7 -0
- package/dist/components/stepperinline/StepperInline.stories.d.ts.map +1 -0
- package/dist/components/stepperinline/StepperInline.stories.js +23 -0
- package/dist/components/stepperinline/StepperInline.svelte +176 -0
- package/dist/components/stepperinline/StepperInline.svelte.d.ts +27 -0
- package/dist/components/stepperinline/StepperInline.svelte.d.ts.map +1 -0
- package/dist/components/tab/README.md +3 -1
- package/dist/components/tab/Tab.js +2 -2
- package/dist/components/tab/Tab.js.map +1 -1
- package/dist/components/tab/Tab.svelte +49 -16
- package/dist/components/tab/Tab.svelte.d.ts +10 -0
- package/dist/components/tab/Tab.svelte.d.ts.map +1 -1
- package/dist/components/tabs/README.md +1 -0
- package/dist/components/tabs/Tabs.js +2 -2
- package/dist/components/tabs/Tabs.js.map +1 -1
- package/dist/components/tabs/Tabs.stories.d.ts +1 -1
- package/dist/components/tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/components/tabs/Tabs.stories.js +3 -3
- package/dist/components/tabs/Tabs.svelte +21 -4
- package/dist/components/tabs/Tabs.svelte.d.ts +5 -0
- package/dist/components/tabs/Tabs.svelte.d.ts.map +1 -1
- package/dist/components/tag/README.md +1 -0
- package/dist/components/tag/Tag.js +2 -2
- package/dist/components/tag/Tag.js.map +1 -1
- package/dist/components/tag/Tag.stories.js +2 -2
- package/dist/components/tag/Tag.svelte +31 -9
- package/dist/components/tag/Tag.svelte.d.ts +6 -0
- package/dist/components/tag/Tag.svelte.d.ts.map +1 -1
- package/dist/components/textarea/Textarea.js +2 -2
- package/dist/components/textarea/Textarea.js.map +1 -1
- package/dist/components/textarea/Textarea.stories.js +3 -3
- package/dist/components/textarea/Textarea.svelte +12 -1
- package/dist/components/textarea/Textarea.svelte.d.ts +1 -0
- package/dist/components/textarea/Textarea.svelte.d.ts.map +1 -1
- package/dist/components/textinput/README.md +1 -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 +4 -1
- package/dist/components/textinput/Textinput.stories.js +4 -4
- package/dist/components/textinput/Textinput.svelte +24 -2
- package/dist/components/textinput/Textinput.svelte.d.ts +6 -0
- package/dist/components/textinput/Textinput.svelte.d.ts.map +1 -1
- package/dist/components/toaster/README.md +1 -0
- package/dist/components/toaster/Toaster.js +2 -2
- package/dist/components/toaster/Toaster.js.map +1 -1
- package/dist/components/toaster/Toaster.stories.js +1 -1
- package/dist/components/toaster/Toaster.svelte +32 -11
- package/dist/components/toaster/Toaster.svelte.d.ts +6 -0
- package/dist/components/toaster/Toaster.svelte.d.ts.map +1 -1
- package/dist/components/toggle/Toggle.js +2 -2
- package/dist/components/toggle/Toggle.js.map +1 -1
- package/dist/components/toggle/Toggle.stories.js +2 -2
- package/dist/components/toggle/Toggle.svelte +2 -0
- package/dist/components/toggle/Toggle.svelte.d.ts +1 -0
- package/dist/components/toggle/Toggle.svelte.d.ts.map +1 -1
- package/dist/components/togglegroup/ToggleGroup.js +2 -2
- package/dist/components/togglegroup/ToggleGroup.js.map +1 -1
- package/dist/components/togglegroup/ToggleGroup.stories.js +1 -1
- package/dist/components/togglegroup/ToggleGroup.svelte +1 -0
- package/dist/components/togglegroup/ToggleGroup.svelte.d.ts.map +1 -1
- package/dist/components/tooltip/README.md +1 -0
- package/dist/components/tooltip/Tooltip.js +2 -2
- package/dist/components/tooltip/Tooltip.js.map +1 -1
- package/dist/components/tooltip/Tooltip.stories.js +1 -1
- package/dist/components/tooltip/Tooltip.svelte +20 -3
- package/dist/components/tooltip/Tooltip.svelte.d.ts +6 -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/{WebComponents/usingPresets.mdx → BrandPresets.mdx} +2 -24
- package/dist/documentation/Changelog.mdx +19 -0
- package/dist/documentation/Color.mdx +224 -0
- package/dist/documentation/Contributing.mdx +11 -5
- package/dist/documentation/GettingStarted.mdx +76 -0
- package/dist/documentation/Icon.stories.d.ts +10 -0
- package/dist/documentation/Icon.stories.d.ts.map +1 -0
- package/dist/documentation/Icon.stories.js +138 -0
- package/dist/documentation/Migration.mdx +5 -5
- package/dist/documentation/Welcome.mdx +52 -0
- 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/index-client.js +2 -0
- package/dist/index-client.js.map +1 -0
- package/dist/input.js +1 -1
- package/dist/input.js.map +1 -1
- package/dist/main.d.ts +8 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +8 -1
- package/dist/slot.js +1 -1
- package/dist/slot.js.map +1 -1
- package/dist/snippet.js +2 -0
- package/dist/snippet.js.map +1 -0
- package/dist/svelte-component.js +1 -1
- package/dist/svelte-element.js +2 -0
- package/dist/svelte-element.js.map +1 -0
- package/dist/this.js +1 -1
- package/dist/this.js.map +1 -1
- package/package.json +22 -23
- package/dist/Cross20.js +0 -2
- package/dist/Cross20.js.map +0 -1
- package/dist/Cross24.js +0 -2
- package/dist/Cross24.js.map +0 -1
- package/dist/CrossCircleFilled24.js +0 -2
- package/dist/CrossCircleFilled24.js.map +0 -1
- package/dist/Less24.js +0 -2
- package/dist/Less24.js.map +0 -1
- package/dist/documentation/Introduction.mdx +0 -109
- package/dist/documentation/SupportAndOnboarding.mdx +0 -70
- package/dist/documentation/Svelte/Introduction.mdx +0 -76
- package/dist/documentation/Svelte/usingIcons.mdx +0 -98
- package/dist/documentation/Svelte/usingPresets.mdx +0 -134
- package/dist/documentation/WebComponents/Introduction.mdx +0 -52
- package/dist/documentation/WebComponents/usingIcons.mdx +0 -81
- package/dist/legacy.js +0 -2
- package/dist/legacy.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Meta, Source } from '@storybook/addon-docs/blocks';
|
|
2
2
|
|
|
3
|
-
<Meta title="
|
|
3
|
+
<Meta title="Brand Presets" />
|
|
4
4
|
|
|
5
|
-
#
|
|
5
|
+
# Brand Presets
|
|
6
6
|
|
|
7
7
|
**ADEO Design System** is a **multi-brand design system** designed for maximum flexibility.<br/>
|
|
8
8
|
It provides a set of **Svelte** using **tokens** that can be fully customized to adapt to each brand’s visual identity and guidelines.
|
|
@@ -112,25 +112,3 @@ cp node_modules/@mozaic-ds/web-fonts/*.{woff,woff2} static/assets/fonts
|
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
Then, import and reference the fonts in your stylesheets as needed.
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
### 3️⃣ Using Components
|
|
119
|
-
|
|
120
|
-
Once the preset and font are configured, you can directly start using ADEO Design System’s Web Components customized with your selected preset.
|
|
121
|
-
|
|
122
|
-
Example:
|
|
123
|
-
|
|
124
|
-
```html
|
|
125
|
-
<script>
|
|
126
|
-
import { Button } from '@mozaic-ds/web-components/lib';
|
|
127
|
-
</script>
|
|
128
|
-
|
|
129
|
-
<m-button appearance="accent">Button label</m-button>
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
---
|
|
133
|
-
|
|
134
|
-
## 📚 Going Further
|
|
135
|
-
|
|
136
|
-
- Learn how to set up **Svelte** in detail in the [Svelte documentation](?path=/docs/getting-started-svelte-introduction--docs).
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Meta, Markdown } from '@storybook/addon-docs/blocks';
|
|
2
|
+
import Changelog from '../../CHANGELOG.md?raw';
|
|
3
|
+
|
|
4
|
+
<style>
|
|
5
|
+
{`
|
|
6
|
+
.sbdocs-toc--custom {
|
|
7
|
+
display: none;
|
|
8
|
+
}
|
|
9
|
+
`}
|
|
10
|
+
</style>
|
|
11
|
+
|
|
12
|
+
<Meta
|
|
13
|
+
title="Changelog"
|
|
14
|
+
parameters={{
|
|
15
|
+
docs: { toc: { disable: true } },
|
|
16
|
+
}}
|
|
17
|
+
/>
|
|
18
|
+
|
|
19
|
+
<Markdown>{Changelog}</Markdown>
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { Meta, ColorPalette, ColorItem } from '@storybook/addon-docs/blocks';
|
|
2
|
+
|
|
3
|
+
<style>
|
|
4
|
+
{`
|
|
5
|
+
.css-1gwggp0 span {
|
|
6
|
+
display: none;
|
|
7
|
+
}
|
|
8
|
+
`}
|
|
9
|
+
</style>
|
|
10
|
+
|
|
11
|
+
<Meta title="Foundations/Color" />
|
|
12
|
+
|
|
13
|
+
# Color
|
|
14
|
+
|
|
15
|
+
Colors are foundational elements of the interface used to convey meaning, establish hierarchy, and reinforce brand identity. They help guide user attention, communicate status, and ensure readability across different contexts and themes.
|
|
16
|
+
|
|
17
|
+
Each color should be used according to its designated role to preserve visual consistency, contrast, and usability across the interface.
|
|
18
|
+
|
|
19
|
+
<br />
|
|
20
|
+
|
|
21
|
+
### Text
|
|
22
|
+
|
|
23
|
+
Text colors define the appearance of all written content. Use primary and secondary text colors for readability and hierarchy, tertiary for subtle information, accent for emphasis, and inverse variants for dark backgrounds.
|
|
24
|
+
|
|
25
|
+
<ColorPalette>
|
|
26
|
+
{/* Text */}
|
|
27
|
+
<ColorItem
|
|
28
|
+
title="Text / Primary"
|
|
29
|
+
colors={{
|
|
30
|
+
'--color-text-primary': 'var(--color-text-primary)',
|
|
31
|
+
}}
|
|
32
|
+
/>
|
|
33
|
+
|
|
34
|
+
<ColorItem
|
|
35
|
+
title="Text / Secondary"
|
|
36
|
+
colors={{
|
|
37
|
+
'--color-text-secondary': 'var(--color-text-secondary)',
|
|
38
|
+
}}
|
|
39
|
+
/>
|
|
40
|
+
|
|
41
|
+
<ColorItem
|
|
42
|
+
title="Text / Tertiary"
|
|
43
|
+
colors={{
|
|
44
|
+
'--color-text-tertiary': 'var(--color-text-tertiary)',
|
|
45
|
+
}}
|
|
46
|
+
/>
|
|
47
|
+
|
|
48
|
+
<ColorItem
|
|
49
|
+
title="Text / Accent"
|
|
50
|
+
colors={{
|
|
51
|
+
'--color-text-accent': 'var(--color-text-accent)',
|
|
52
|
+
}}
|
|
53
|
+
/>
|
|
54
|
+
|
|
55
|
+
<ColorItem
|
|
56
|
+
title="Text / Disabled"
|
|
57
|
+
colors={{
|
|
58
|
+
'--color-text-disabled': 'var(--color-text-disabled)',
|
|
59
|
+
}}
|
|
60
|
+
/>
|
|
61
|
+
|
|
62
|
+
<ColorItem
|
|
63
|
+
title="Text / Primary Inverse"
|
|
64
|
+
colors={{
|
|
65
|
+
'--color-text-primary-inverse': 'var(--color-text-primary-inverse)',
|
|
66
|
+
}}
|
|
67
|
+
/>
|
|
68
|
+
|
|
69
|
+
<ColorItem
|
|
70
|
+
title="Text / Secondary Inverse"
|
|
71
|
+
colors={{
|
|
72
|
+
'--color-text-secondary-inverse':
|
|
73
|
+
'var(--color-text-secondary-inverse)',
|
|
74
|
+
}}
|
|
75
|
+
/>
|
|
76
|
+
</ColorPalette>
|
|
77
|
+
|
|
78
|
+
### Background
|
|
79
|
+
|
|
80
|
+
Background colors are used to create contrast and define sections of the interface. Primary is the default canvas, secondary provides subtle separation, accent highlights areas, ghost is for overlays, and inverse variants for dark parts.
|
|
81
|
+
|
|
82
|
+
<ColorPalette>
|
|
83
|
+
{/* Background */}
|
|
84
|
+
<ColorItem
|
|
85
|
+
title="Background / Primary"
|
|
86
|
+
colors={{
|
|
87
|
+
'--color-background-primary': 'var(--color-background-primary)',
|
|
88
|
+
}}
|
|
89
|
+
/>
|
|
90
|
+
|
|
91
|
+
<ColorItem
|
|
92
|
+
title="Background / Secondary"
|
|
93
|
+
colors={{
|
|
94
|
+
'--color-background-secondary': 'var(--color-background-secondary)',
|
|
95
|
+
}}
|
|
96
|
+
/>
|
|
97
|
+
|
|
98
|
+
<ColorItem
|
|
99
|
+
title="Background / Secondary Inverse"
|
|
100
|
+
colors={{
|
|
101
|
+
'--color-background-secondary-inverse': 'var(--color-background-secondary-inverse)',
|
|
102
|
+
}}
|
|
103
|
+
/>
|
|
104
|
+
|
|
105
|
+
<ColorItem
|
|
106
|
+
title="Background / Accent"
|
|
107
|
+
colors={{
|
|
108
|
+
'--color-background-accent': 'var(--color-background-accent)',
|
|
109
|
+
}}
|
|
110
|
+
/>
|
|
111
|
+
|
|
112
|
+
<ColorItem
|
|
113
|
+
title="Background / Accent Inverse"
|
|
114
|
+
colors={{
|
|
115
|
+
'--color-background-accent-inverse': 'var(--color-background-accent-inverse)',
|
|
116
|
+
}}
|
|
117
|
+
/>
|
|
118
|
+
|
|
119
|
+
<ColorItem
|
|
120
|
+
title="Background / Ghost"
|
|
121
|
+
colors={{
|
|
122
|
+
'--color-background-ghost': 'var(--color-background-ghost)',
|
|
123
|
+
}}
|
|
124
|
+
/>
|
|
125
|
+
|
|
126
|
+
<ColorItem
|
|
127
|
+
title="Background / Disabled"
|
|
128
|
+
colors={{
|
|
129
|
+
'--color-background-disabled': 'var(--color-background-disabled)',
|
|
130
|
+
}}
|
|
131
|
+
/>
|
|
132
|
+
</ColorPalette>
|
|
133
|
+
|
|
134
|
+
### Border
|
|
135
|
+
|
|
136
|
+
Border colors provide visual separation between interface elements. Use primary for main borders, secondary and tertiary for subtle dividers, and inverse for dark backgrounds.
|
|
137
|
+
|
|
138
|
+
<ColorPalette>
|
|
139
|
+
{/* Border */}
|
|
140
|
+
<ColorItem
|
|
141
|
+
title="Border / Primary"
|
|
142
|
+
colors={{
|
|
143
|
+
'--color-border-primary': 'var(--color-border-primary)',
|
|
144
|
+
}}
|
|
145
|
+
/>
|
|
146
|
+
|
|
147
|
+
<ColorItem
|
|
148
|
+
title="Border / Secondary"
|
|
149
|
+
colors={{
|
|
150
|
+
'--color-border-secondary': 'var(--color-border-secondary)',
|
|
151
|
+
}}
|
|
152
|
+
/>
|
|
153
|
+
|
|
154
|
+
<ColorItem
|
|
155
|
+
title="Border / Tertiary"
|
|
156
|
+
colors={{
|
|
157
|
+
'--color-border-tertiary': 'var(--color-border-tertiary)',
|
|
158
|
+
}}
|
|
159
|
+
/>
|
|
160
|
+
|
|
161
|
+
<ColorItem
|
|
162
|
+
title="Border / Inverse"
|
|
163
|
+
colors={{
|
|
164
|
+
'--color-border-inverse': 'var(--color-border-inverse)',
|
|
165
|
+
}}
|
|
166
|
+
/>
|
|
167
|
+
</ColorPalette>
|
|
168
|
+
|
|
169
|
+
### Icon
|
|
170
|
+
|
|
171
|
+
Icon colors communicate meaning and status. Primary icons are default, secondary and tertiary support hierarchy, accent icons draw attention, disabled icons indicate inactivity, and inverse variants are for dark backgrounds.
|
|
172
|
+
|
|
173
|
+
<ColorPalette>
|
|
174
|
+
{/* Icon */}
|
|
175
|
+
<ColorItem
|
|
176
|
+
title="Icon / Primary"
|
|
177
|
+
colors={{
|
|
178
|
+
'--color-icon-primary': 'var(--color-icon-primary)',
|
|
179
|
+
}}
|
|
180
|
+
/>
|
|
181
|
+
|
|
182
|
+
<ColorItem
|
|
183
|
+
title="Icon / Secondary"
|
|
184
|
+
colors={{
|
|
185
|
+
'--color-icon-secondary': 'var(--color-icon-secondary)',
|
|
186
|
+
}}
|
|
187
|
+
/>
|
|
188
|
+
|
|
189
|
+
<ColorItem
|
|
190
|
+
title="Icon / Tertiary"
|
|
191
|
+
colors={{
|
|
192
|
+
'--color-icon-tertiary': 'var(--color-icon-tertiary)',
|
|
193
|
+
}}
|
|
194
|
+
/>
|
|
195
|
+
|
|
196
|
+
<ColorItem
|
|
197
|
+
title="Icon / Accent"
|
|
198
|
+
colors={{
|
|
199
|
+
'--color-icon-accent': 'var(--color-icon-accent)',
|
|
200
|
+
}}
|
|
201
|
+
/>
|
|
202
|
+
|
|
203
|
+
<ColorItem
|
|
204
|
+
title="Icon / Disabled"
|
|
205
|
+
colors={{
|
|
206
|
+
'--color-icon-disabled': 'var(--color-icon-disabled)',
|
|
207
|
+
}}
|
|
208
|
+
/>
|
|
209
|
+
|
|
210
|
+
<ColorItem
|
|
211
|
+
title="Icon / Primary Inverse"
|
|
212
|
+
colors={{
|
|
213
|
+
'--color-icon-primary-inverse': 'var(--color-icon-primary-inverse)',
|
|
214
|
+
}}
|
|
215
|
+
/>
|
|
216
|
+
|
|
217
|
+
<ColorItem
|
|
218
|
+
title="Icon / Secondary Inverse"
|
|
219
|
+
colors={{
|
|
220
|
+
'--color-icon-secondary-inverse':
|
|
221
|
+
'var(--color-icon-secondary-inverse)',
|
|
222
|
+
}}
|
|
223
|
+
/>
|
|
224
|
+
</ColorPalette>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Meta } from '@storybook/addon-docs/blocks';
|
|
1
|
+
import { Meta, Source } from '@storybook/addon-docs/blocks';
|
|
2
2
|
import { Mermaid } from 'mdx-mermaid/Mermaid';
|
|
3
3
|
|
|
4
|
-
<Meta title="
|
|
4
|
+
<Meta title="Contributing" />
|
|
5
5
|
|
|
6
6
|
# 🤝 Be Part of Something Bigger!
|
|
7
7
|
|
|
8
|
-
**Mozaic-
|
|
8
|
+
**Mozaic-Web-Components** exists thanks to the continuous support and involvement of an incredible community of developers and designers.<br/>
|
|
9
9
|
Each issue reported, bug fixed, or new feature proposed helps us improve and deliver better tools for everyone.
|
|
10
10
|
|
|
11
11
|
If you spot something that could be improved, encounter a bug, or have an idea for new functionality — you're more than welcome to contribute!
|
|
@@ -95,16 +95,22 @@ For simple bug fixes, feel free to directly open a Pull Request, but linking an
|
|
|
95
95
|
|
|
96
96
|
Follow these steps to get started contributing:
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
<Source
|
|
99
|
+
language='bash'
|
|
100
|
+
dark
|
|
101
|
+
code={`
|
|
99
102
|
# Clone Mozaic-WebComponents repository
|
|
100
103
|
git clone git@github.com:adeo/mozaic-web-components.git
|
|
101
104
|
|
|
102
105
|
# Navigate to project directory
|
|
106
|
+
|
|
103
107
|
cd mozaic-web-components
|
|
104
108
|
|
|
105
109
|
# Checkout the branch you're working on (feature/fix/...)
|
|
110
|
+
|
|
106
111
|
git checkout <branch-name>
|
|
107
112
|
|
|
108
113
|
# Install dependencies
|
|
114
|
+
|
|
109
115
|
npm install
|
|
110
|
-
|
|
116
|
+
`} />
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Meta, Source } from '@storybook/addon-docs/blocks';
|
|
2
|
+
|
|
3
|
+
<Meta title="Getting Started" />
|
|
4
|
+
|
|
5
|
+
# Getting Started
|
|
6
|
+
|
|
7
|
+
**ADEO Design system** is a global and collaborative design system that facilitates the designer and developer experience, enabling them to create universal interfaces perfectly aligned with the business strategy of **ADEO**.
|
|
8
|
+
|
|
9
|
+
### Installation
|
|
10
|
+
|
|
11
|
+
<Source language="bash" dark code="npm i @mozaic-ds/web-components" />
|
|
12
|
+
|
|
13
|
+
Or with **Yarn**:
|
|
14
|
+
|
|
15
|
+
<Source language="bash" dark code="yarn add @mozaic-ds/web-components" />
|
|
16
|
+
|
|
17
|
+
### Web Components
|
|
18
|
+
|
|
19
|
+
The Mozaic Web Component library provides a suite of **Web Components** built with **Svelte's custom element API**. These components allow you to integrate the **ADEO Design System** seamlessly, regardless of the front-end framework or stack you are using.
|
|
20
|
+
|
|
21
|
+
#### 📝 Usage
|
|
22
|
+
|
|
23
|
+
Once installed, you can directly use the web components in your HTML or any front-end framework (React, Vue, Angular, etc.):
|
|
24
|
+
|
|
25
|
+
Simply call the component as follows:
|
|
26
|
+
|
|
27
|
+
- Import the component
|
|
28
|
+
|
|
29
|
+
<Source
|
|
30
|
+
language="javascript"
|
|
31
|
+
dark
|
|
32
|
+
code="import '@mozaic-ds/web-components/components/button/Button.js';"
|
|
33
|
+
/>
|
|
34
|
+
|
|
35
|
+
- Use the component
|
|
36
|
+
|
|
37
|
+
<Source
|
|
38
|
+
language="html"
|
|
39
|
+
dark
|
|
40
|
+
code='<m-button appearance="accent">This is an accent button</m-button>'
|
|
41
|
+
/>
|
|
42
|
+
|
|
43
|
+
#### 🛠️ Framework Integration
|
|
44
|
+
|
|
45
|
+
These web components are framework-agnostic. Here are a few resources to help you integrate them:
|
|
46
|
+
|
|
47
|
+
- React Integration: Use the components directly in JSX (ensure to use className instead of class if needed).
|
|
48
|
+
- Vue Integration: Register them globally or locally in your Vue app.[Official documentation](https://vuejs.org/guide/extras/web-components)
|
|
49
|
+
- Angular Integration: Add CUSTOM_ELEMENTS_SCHEMA to your NgModule. [Official documentation](https://angular.dev/guide/components/advanced-configuration#custom-element-schemas)
|
|
50
|
+
|
|
51
|
+
### Svelte
|
|
52
|
+
|
|
53
|
+
In addition to Web Components, **@mozaic-ds/web-components** package also exposes native **Svelte Components**, offering an even smoother developer experience when working within **Svelte-based applications**.
|
|
54
|
+
|
|
55
|
+
Why Use Native Svelte Components?
|
|
56
|
+
|
|
57
|
+
- Full compatibility with Svelte’s reactivity system.
|
|
58
|
+
- Simpler syntax, no need to deal with custom element registration.
|
|
59
|
+
- Easier to compose with other Svelte components.
|
|
60
|
+
|
|
61
|
+
#### 📝 Usage
|
|
62
|
+
|
|
63
|
+
You can import and use the Svelte components directly:
|
|
64
|
+
|
|
65
|
+
Simply call the component as follows:
|
|
66
|
+
|
|
67
|
+
<Source
|
|
68
|
+
language='tsx'
|
|
69
|
+
dark
|
|
70
|
+
code={`
|
|
71
|
+
<script lang="ts">
|
|
72
|
+
import { Button } from '@mozaic-ds/web-components/svelte';
|
|
73
|
+
</script>
|
|
74
|
+
|
|
75
|
+
<Button appearance="accent">My first svelte Button</Button>
|
|
76
|
+
`} />
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import '@mozaic-ds/icons-svelte/components/index.js';
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Size: Story;
|
|
8
|
+
export declare const Color: Story;
|
|
9
|
+
export declare const IconList: Story;
|
|
10
|
+
//# sourceMappingURL=Icon.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.stories.d.ts","sourceRoot":"","sources":["../../src/documentation/Icon.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAIrE,OAAO,6CAA6C,CAAC;AAErD,QAAA,MAAM,IAAI,EAAE,IA+DX,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AAEtB,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,IAAI,EAAE,KAQlB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAyDtB,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { html, unsafeStatic } from 'lit/static-html.js';
|
|
2
|
+
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
3
|
+
import * as Icons from '@mozaic-ds/icons-svelte/components/index.js';
|
|
4
|
+
import '@mozaic-ds/icons-svelte/components/index.js';
|
|
5
|
+
const meta = {
|
|
6
|
+
title: 'Foundations/Icon',
|
|
7
|
+
parameters: {
|
|
8
|
+
docs: {
|
|
9
|
+
description: {
|
|
10
|
+
component: 'Icons are compact visual elements used to represent actions, objects, or concepts in a clear and recognizable way. They can be used as standalone components or paired with other UI elements to enhance meaning and usability. Their style, size, and emphasis depend on the function they communicate and the context in which they appear.',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
tags: ['v2'],
|
|
15
|
+
argTypes: {
|
|
16
|
+
id: {
|
|
17
|
+
description: 'A unique identifier for the icon element.',
|
|
18
|
+
control: 'text',
|
|
19
|
+
table: {
|
|
20
|
+
category: 'Properties',
|
|
21
|
+
type: { summary: 'string' },
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
style: {
|
|
25
|
+
description: 'Inline CSS styles added on the svg element.',
|
|
26
|
+
control: 'text',
|
|
27
|
+
table: {
|
|
28
|
+
category: 'Properties',
|
|
29
|
+
type: { summary: 'string' },
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
className: {
|
|
33
|
+
description: 'CSS class names to pass to the svg element.',
|
|
34
|
+
control: 'text',
|
|
35
|
+
table: {
|
|
36
|
+
category: 'Properties',
|
|
37
|
+
type: { summary: 'string' },
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
fill: {
|
|
41
|
+
description: 'customize the color of the SVG.',
|
|
42
|
+
control: 'select',
|
|
43
|
+
options: [
|
|
44
|
+
undefined,
|
|
45
|
+
'var(--color-icon-primary)',
|
|
46
|
+
'var(--color-icon-secondary)',
|
|
47
|
+
'var(--color-icon-tertiary)',
|
|
48
|
+
'var(--color-icon-primary-inverse)',
|
|
49
|
+
'var(--color-icon-secondary-inverse)',
|
|
50
|
+
'var(--color-icon-accent)',
|
|
51
|
+
'var(--color-icon-disabled)',
|
|
52
|
+
],
|
|
53
|
+
table: {
|
|
54
|
+
category: 'Properties',
|
|
55
|
+
type: { summary: 'string' },
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
render: (args) => html `
|
|
60
|
+
<release-32
|
|
61
|
+
id=${ifDefined(args.id)}
|
|
62
|
+
style=${ifDefined(args.style)}
|
|
63
|
+
className=${ifDefined(args.className)}
|
|
64
|
+
fill=${ifDefined(args.fill)}
|
|
65
|
+
></release-32>
|
|
66
|
+
`,
|
|
67
|
+
};
|
|
68
|
+
export default meta;
|
|
69
|
+
export const Default = {};
|
|
70
|
+
export const Size = {
|
|
71
|
+
render: () => html `
|
|
72
|
+
<check-circle-filled-20></check-circle-filled-20>
|
|
73
|
+
<check-circle-filled-24></check-circle-filled-24>
|
|
74
|
+
<check-circle-filled-32></check-circle-filled-32>
|
|
75
|
+
<check-circle-filled-48></check-circle-filled-48>
|
|
76
|
+
<check-circle-filled-64></check-circle-filled-64>
|
|
77
|
+
`,
|
|
78
|
+
};
|
|
79
|
+
export const Color = {
|
|
80
|
+
args: {
|
|
81
|
+
fill: 'var(--color-icon-accent)',
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
export const IconList = {
|
|
85
|
+
parameters: {
|
|
86
|
+
docs: {
|
|
87
|
+
canvas: { sourceState: 'hidden' },
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
render: () => {
|
|
91
|
+
const iconEntries = Object.entries(Icons).filter(([name]) => name.endsWith('32'));
|
|
92
|
+
return html `
|
|
93
|
+
<style>
|
|
94
|
+
.icon-grid {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-wrap: wrap;
|
|
97
|
+
gap: 1rem;
|
|
98
|
+
align-items: center;
|
|
99
|
+
text-align: center;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.icon-item {
|
|
103
|
+
display: flex;
|
|
104
|
+
min-width: 10rem;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
align-items: center;
|
|
107
|
+
font-size: 14px;
|
|
108
|
+
color: #555;
|
|
109
|
+
margin-bottom: 2rem;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.icon-label {
|
|
113
|
+
margin-top: 0.5rem;
|
|
114
|
+
}
|
|
115
|
+
</style>
|
|
116
|
+
|
|
117
|
+
<div class="icon-grid">
|
|
118
|
+
${iconEntries.map(([name]) => {
|
|
119
|
+
// convert component name → custom element tag
|
|
120
|
+
// example: Cross24 → cross-24
|
|
121
|
+
const tagName = name
|
|
122
|
+
// ArrowLeft → Arrow-Left
|
|
123
|
+
.replace(/([a-z])([A-Z])/g, '$1-$2')
|
|
124
|
+
// a11y32 → a11y-32 (ONLY last number group)
|
|
125
|
+
.replace(/(\D)(\d+)$/, '$1-$2')
|
|
126
|
+
.toLowerCase();
|
|
127
|
+
const Tag = unsafeStatic(tagName);
|
|
128
|
+
return html `
|
|
129
|
+
<div class="icon-item">
|
|
130
|
+
<${Tag}></${Tag}>
|
|
131
|
+
<div class="icon-label">${tagName}</div>
|
|
132
|
+
</div>
|
|
133
|
+
`;
|
|
134
|
+
})}
|
|
135
|
+
</div>
|
|
136
|
+
`;
|
|
137
|
+
},
|
|
138
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/addon-docs/blocks';
|
|
2
2
|
|
|
3
3
|
<Meta
|
|
4
|
-
title="
|
|
4
|
+
title="Migration guide"
|
|
5
5
|
parameters={{
|
|
6
6
|
layout: 'fullscreen',
|
|
7
7
|
viewMode: 'docs',
|
|
@@ -11,11 +11,11 @@ import { Meta } from '@storybook/addon-docs/blocks';
|
|
|
11
11
|
}}
|
|
12
12
|
/>
|
|
13
13
|
|
|
14
|
-
# Migration Guide
|
|
14
|
+
# Migration Guide
|
|
15
15
|
|
|
16
|
-
This guide helps you migrate from **v0.30.0** to **v1.X.X** of `@mozaic-ds/web-components`.
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
This guide helps you migrate from **v0.30.0** to **v1.X.X** of `@mozaic-ds/web-components`.
|
|
17
|
+
|
|
18
|
+
This new version introduces **Svelte 5**, ships **Svelte components** and **Web Components**, and aligns with **Mozaic Core V2** (styles + tokens).
|
|
19
19
|
|
|
20
20
|
---
|
|
21
21
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Meta, Source } from '@storybook/addon-docs/blocks';
|
|
2
|
+
|
|
3
|
+
import ads from '../../.storybook/assets/logo.svg';
|
|
4
|
+
import svelte from '../../.storybook/assets/svelte.svg';
|
|
5
|
+
import '@mozaic-ds/styles';
|
|
6
|
+
|
|
7
|
+
<style>
|
|
8
|
+
{`
|
|
9
|
+
.sbdocs-toc--custom {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
`}
|
|
13
|
+
</style>
|
|
14
|
+
|
|
15
|
+
<Meta title="Welcome" />
|
|
16
|
+
|
|
17
|
+
<div class="hero">
|
|
18
|
+
<p
|
|
19
|
+
style={{
|
|
20
|
+
display: 'flex',
|
|
21
|
+
alignItems: 'center',
|
|
22
|
+
justifyContent: 'center',
|
|
23
|
+
gap: '1rem',
|
|
24
|
+
}}
|
|
25
|
+
>
|
|
26
|
+
<img src={ads} alt="ADEO Design system logo" style={{ height: '80px' }} />
|
|
27
|
+
<span style={{ fontSize: '32px' }}>x</span>
|
|
28
|
+
<img src={svelte} alt="Svelte.js logo" style={{ height: '80px' }} />
|
|
29
|
+
</p>
|
|
30
|
+
<h1 class="mt-heading--l">ADEO Design system - Web Components (Svelte)</h1>
|
|
31
|
+
|
|
32
|
+
<p class="mt-body-l">
|
|
33
|
+
A library of **Svelte** and **Web Components** implementing **ADEO Design system** guidelines.
|
|
34
|
+
</p>
|
|
35
|
+
|
|
36
|
+
<div class="hero-links">
|
|
37
|
+
<a href="https://github.com/adeo/mozaic-web-components" target="_blank" class="mc-button mc-button--outlined">
|
|
38
|
+
<svg class="mc-button__icon" width="24" height="24" aria-hidden="true" viewBox="0 0 1024 1024" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z" transform="scale(64)" fill="#000"/></svg>
|
|
39
|
+
<span class="mc-button__label">Github</span>
|
|
40
|
+
</a>
|
|
41
|
+
<a href="https://www.figma.com/design/Zyh9RyabNaqkjbuFWP9Aqj/%E2%9C%A8-Components--ADS2---Stable-version-" target="_blank" class="mc-button mc-button--outlined">
|
|
42
|
+
<svg lass="mc-button__icon" width="24" height="24" aria-hidden="true" viewBox="0 0 54 80" fill="none"><g clip-path="url(#figma__clip0_912_3)"><path d="M13.3333 80.0002C20.6933 80.0002 26.6667 74.0268 26.6667 66.6668V53.3335H13.3333C5.97333 53.3335 0 59.3068 0 66.6668C0 74.0268 5.97333 80.0002 13.3333 80.0002Z" fill="#0ACF83"/><path d="M0 39.9998C0 32.6398 5.97333 26.6665 13.3333 26.6665H26.6667V53.3332H13.3333C5.97333 53.3332 0 47.3598 0 39.9998Z" fill="#A259FF"/><path d="M0 13.3333C0 5.97333 5.97333 0 13.3333 0H26.6667V26.6667H13.3333C5.97333 26.6667 0 20.6933 0 13.3333Z" fill="#F24E1E"/><path d="M26.6667 0H40.0001C47.3601 0 53.3334 5.97333 53.3334 13.3333C53.3334 20.6933 47.3601 26.6667 40.0001 26.6667H26.6667V0Z" fill="#FF7262"/><path d="M53.3334 39.9998C53.3334 47.3598 47.3601 53.3332 40.0001 53.3332C32.6401 53.3332 26.6667 47.3598 26.6667 39.9998C26.6667 32.6398 32.6401 26.6665 40.0001 26.6665C47.3601 26.6665 53.3334 32.6398 53.3334 39.9998Z" fill="#1ABCFE"/></g><defs><clipPath id="figma__clip0_912_3"><rect width="53.3333" height="80" fill="white"/></clipPath></defs></svg>
|
|
43
|
+
<span class="mc-button__label">Figma</span>
|
|
44
|
+
</a>
|
|
45
|
+
<a href="/?path=/docs/getting-started--docs" class="mc-button mc-button--accent">
|
|
46
|
+
<span class="mc-button__label">Get Started</span>
|
|
47
|
+
<svg class="mc-button__icon" width="24" height="24" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
48
|
+
<path fill-rule="evenodd" d="M15.2929 6.29289c.3905-.39052 1.0237-.39052 1.4142 0l5 5.00001c.3905.3905.3905 1.0237 0 1.4142l-5 5c-.3905.3905-1.0237.3905-1.4142 0-.3905-.3905-.3905-1.0237 0-1.4142L18.5858 13H3c-.55228 0-1-.4477-1-1s.44772-1 1-1h15.5858l-3.2929-3.29289c-.3905-.39053-.3905-1.02369 0-1.41422Z"></path>
|
|
49
|
+
</svg>
|
|
50
|
+
</a>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|