@a-little-world/little-world-design-system 2.10.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/.babelrc +7 -0
- package/.storybook/main.ts +36 -0
- package/.storybook/preview-head.html +6 -0
- package/.storybook/preview.ts +15 -0
- package/.turbo/turbo-build.log +14 -0
- package/CHANGELOG.md +398 -0
- package/LICENSE +21 -0
- package/README.md +180 -0
- package/__mocks__/focus-trap-react.tsx +1 -0
- package/__mocks__/svg.tsx +6 -0
- package/dist/cjs/components/Accordion/Accordion.d.ts +15 -0
- package/dist/cjs/components/Accordion/Accordion.js +20 -0
- package/dist/cjs/components/Accordion/styles.d.ts +18 -0
- package/dist/cjs/components/Accordion/styles.js +100 -0
- package/dist/cjs/components/Button/Button.d.ts +9 -0
- package/dist/cjs/components/Button/Button.js +17 -0
- package/dist/cjs/components/Button/styles.d.ts +16 -0
- package/dist/cjs/components/Button/styles.js +313 -0
- package/dist/cjs/components/Card/Card.d.ts +11 -0
- package/dist/cjs/components/Card/Card.js +108 -0
- package/dist/cjs/components/Checkbox/Checkbox.d.ts +15 -0
- package/dist/cjs/components/Checkbox/Checkbox.js +24 -0
- package/dist/cjs/components/Checkbox/styles.d.ts +27 -0
- package/dist/cjs/components/Checkbox/styles.js +108 -0
- package/dist/cjs/components/CheckboxGrid/CheckboxGrid.d.ts +22 -0
- package/dist/cjs/components/CheckboxGrid/CheckboxGrid.js +73 -0
- package/dist/cjs/components/CheckboxGrid/styles.d.ts +64 -0
- package/dist/cjs/components/CheckboxGrid/styles.js +137 -0
- package/dist/cjs/components/Dropdown/Dropdown.d.ts +25 -0
- package/dist/cjs/components/Dropdown/Dropdown.js +70 -0
- package/dist/cjs/components/Dropdown/styles.d.ts +15 -0
- package/dist/cjs/components/Dropdown/styles.js +145 -0
- package/dist/cjs/components/Icon/Icon.d.ts +10 -0
- package/dist/cjs/components/Icon/Icon.js +82 -0
- package/dist/cjs/components/Icon/IconGradient.d.ts +4 -0
- package/dist/cjs/components/Icon/IconGradient.js +29 -0
- package/dist/cjs/components/Icon/createIconComponent.d.ts +10 -0
- package/dist/cjs/components/Icon/createIconComponent.js +31 -0
- package/dist/cjs/components/Icon/getDefaultIconProps.d.ts +2 -0
- package/dist/cjs/components/Icon/getDefaultIconProps.js +15 -0
- package/dist/cjs/components/Icon/index.d.ts +553 -0
- package/dist/cjs/components/Icon/index.js +342 -0
- package/dist/cjs/components/Illustrations/Illustration.d.ts +3 -0
- package/dist/cjs/components/Illustrations/Illustration.js +12 -0
- package/dist/cjs/components/Illustrations/createIllustrationComponent.d.ts +10 -0
- package/dist/cjs/components/Illustrations/createIllustrationComponent.js +23 -0
- package/dist/cjs/components/Illustrations/index.d.ts +152 -0
- package/dist/cjs/components/Illustrations/index.js +81 -0
- package/dist/cjs/components/InputError/InputError.d.ts +15 -0
- package/dist/cjs/components/InputError/InputError.js +79 -0
- package/dist/cjs/components/Label/Label.d.ts +10 -0
- package/dist/cjs/components/Label/Label.js +68 -0
- package/dist/cjs/components/Link/Link.d.ts +6 -0
- package/dist/cjs/components/Link/Link.js +48 -0
- package/dist/cjs/components/Link/styles.d.ts +22 -0
- package/dist/cjs/components/Link/styles.js +99 -0
- package/dist/cjs/components/Loading/Loading.d.ts +10 -0
- package/dist/cjs/components/Loading/Loading.js +27 -0
- package/dist/cjs/components/Loading/LoadingLogo.d.ts +8 -0
- package/dist/cjs/components/Loading/LoadingLogo.js +31 -0
- package/dist/cjs/components/Loading/styles.d.ts +15 -0
- package/dist/cjs/components/Loading/styles.js +107 -0
- package/dist/cjs/components/Modal/Modal.d.ts +20 -0
- package/dist/cjs/components/Modal/Modal.js +95 -0
- package/dist/cjs/components/Modal/styles.d.ts +4 -0
- package/dist/cjs/components/Modal/styles.js +102 -0
- package/dist/cjs/components/MultiCheckbox/MultiCheckbox.d.ts +15 -0
- package/dist/cjs/components/MultiCheckbox/MultiCheckbox.js +61 -0
- package/dist/cjs/components/MultiCheckbox/styles.d.ts +1 -0
- package/dist/cjs/components/MultiCheckbox/styles.js +15 -0
- package/dist/cjs/components/MultiDropdown/MultiDropdown.d.ts +28 -0
- package/dist/cjs/components/MultiDropdown/MultiDropdown.js +124 -0
- package/dist/cjs/components/MultiDropdown/styles.d.ts +7 -0
- package/dist/cjs/components/MultiDropdown/styles.js +44 -0
- package/dist/cjs/components/MultiSelection/MultiSelection.d.ts +16 -0
- package/dist/cjs/components/MultiSelection/MultiSelection.js +62 -0
- package/dist/cjs/components/MultiSelection/styles.d.ts +9 -0
- package/dist/cjs/components/MultiSelection/styles.js +99 -0
- package/dist/cjs/components/NavigationMenu/NavigationMenu.d.ts +35 -0
- package/dist/cjs/components/NavigationMenu/NavigationMenu.js +85 -0
- package/dist/cjs/components/NavigationMenu/styles.d.ts +81 -0
- package/dist/cjs/components/NavigationMenu/styles.js +296 -0
- package/dist/cjs/components/Popover/InfoPopover.d.ts +8 -0
- package/dist/cjs/components/Popover/InfoPopover.js +46 -0
- package/dist/cjs/components/Popover/Popover.d.ts +16 -0
- package/dist/cjs/components/Popover/Popover.js +61 -0
- package/dist/cjs/components/Popover/styles.d.ts +14 -0
- package/dist/cjs/components/Popover/styles.js +116 -0
- package/dist/cjs/components/ProgressBar/ProgressBar.d.ts +8 -0
- package/dist/cjs/components/ProgressBar/ProgressBar.js +85 -0
- package/dist/cjs/components/RadioGroup/RadioGroup.d.ts +16 -0
- package/dist/cjs/components/RadioGroup/RadioGroup.js +24 -0
- package/dist/cjs/components/RadioGroup/styles.d.ts +12 -0
- package/dist/cjs/components/RadioGroup/styles.js +126 -0
- package/dist/cjs/components/Separator/Separator.d.ts +11 -0
- package/dist/cjs/components/Separator/Separator.js +61 -0
- package/dist/cjs/components/Separator/styles.d.ts +6 -0
- package/dist/cjs/components/Separator/styles.js +57 -0
- package/dist/cjs/components/Slider/Slider.d.ts +12 -0
- package/dist/cjs/components/Slider/Slider.js +17 -0
- package/dist/cjs/components/Slider/styles.d.ts +6 -0
- package/dist/cjs/components/Slider/styles.js +57 -0
- package/dist/cjs/components/StarRating/StarRating.d.ts +22 -0
- package/dist/cjs/components/StarRating/StarRating.js +143 -0
- package/dist/cjs/components/StarRating/styles.d.ts +35 -0
- package/dist/cjs/components/StarRating/styles.js +104 -0
- package/dist/cjs/components/StatusMessage/StatusMessage.d.ts +4 -0
- package/dist/cjs/components/StatusMessage/StatusMessage.js +112 -0
- package/dist/cjs/components/Switch/Switch.d.ts +15 -0
- package/dist/cjs/components/Switch/Switch.js +19 -0
- package/dist/cjs/components/Switch/styles.d.ts +14 -0
- package/dist/cjs/components/Switch/styles.js +99 -0
- package/dist/cjs/components/Tags/Tags.d.ts +15 -0
- package/dist/cjs/components/Tags/Tags.js +17 -0
- package/dist/cjs/components/Tags/styles.d.ts +19 -0
- package/dist/cjs/components/Tags/styles.js +119 -0
- package/dist/cjs/components/Text/Text.d.ts +11 -0
- package/dist/cjs/components/Text/Text.js +13 -0
- package/dist/cjs/components/Text/styles.d.ts +8 -0
- package/dist/cjs/components/Text/styles.js +98 -0
- package/dist/cjs/components/Text/types.d.ts +8 -0
- package/dist/cjs/components/Text/types.js +2 -0
- package/dist/cjs/components/TextArea/TextArea.d.ts +19 -0
- package/dist/cjs/components/TextArea/TextArea.js +84 -0
- package/dist/cjs/components/TextArea/styles.d.ts +22 -0
- package/dist/cjs/components/TextArea/styles.js +81 -0
- package/dist/cjs/components/TextContent/TextContent.d.ts +28 -0
- package/dist/cjs/components/TextContent/TextContent.js +46 -0
- package/dist/cjs/components/TextContent/styles.d.ts +24 -0
- package/dist/cjs/components/TextContent/styles.js +75 -0
- package/dist/cjs/components/TextInput/TextInput.d.ts +8 -0
- package/dist/cjs/components/TextInput/TextInput.js +49 -0
- package/dist/cjs/components/TextInput/styles.d.ts +18 -0
- package/dist/cjs/components/TextInput/styles.js +150 -0
- package/dist/cjs/components/Toast/Toast.d.ts +5 -0
- package/dist/cjs/components/Toast/Toast.js +90 -0
- package/dist/cjs/components/Toast/styles.d.ts +27 -0
- package/dist/cjs/components/Toast/styles.js +164 -0
- package/dist/cjs/components/Tooltip/Tooltip.d.ts +9 -0
- package/dist/cjs/components/Tooltip/Tooltip.js +55 -0
- package/dist/cjs/components/Tooltip/styles.d.ts +2 -0
- package/dist/cjs/components/Tooltip/styles.js +24 -0
- package/dist/cjs/components/Widget/AttachmentWidget.d.ts +18 -0
- package/dist/cjs/components/Widget/AttachmentWidget.js +124 -0
- package/dist/cjs/components/Widget/CallWidget.d.ts +11 -0
- package/dist/cjs/components/Widget/CallWidget.js +84 -0
- package/dist/cjs/components/Widget/Widget.d.ts +26 -0
- package/dist/cjs/components/Widget/Widget.js +87 -0
- package/dist/cjs/globalStyles.d.ts +5 -0
- package/dist/cjs/globalStyles.js +66 -0
- package/dist/cjs/hooks/useAutosizeTextArea.d.ts +2 -0
- package/dist/cjs/hooks/useAutosizeTextArea.js +14 -0
- package/dist/cjs/index.d.ts +51 -0
- package/dist/cjs/index.js +139 -0
- package/dist/cjs/storybook/BreakpointDocumentation.d.ts +3 -0
- package/dist/cjs/storybook/BreakpointDocumentation.js +139 -0
- package/dist/cjs/storybook/Components.d.ts +2 -0
- package/dist/cjs/storybook/Components.js +30 -0
- package/dist/cjs/storybook/Documentation.d.ts +5 -0
- package/dist/cjs/storybook/Documentation.js +67 -0
- package/dist/cjs/storybook/RadiusDocumentation.d.ts +3 -0
- package/dist/cjs/storybook/RadiusDocumentation.js +150 -0
- package/dist/cjs/storybook/SpacingDocumentation.d.ts +3 -0
- package/dist/cjs/storybook/SpacingDocumentation.js +146 -0
- package/dist/cjs/theme/index.d.ts +17 -0
- package/dist/cjs/theme/index.js +90 -0
- package/dist/cjs/utils/animations.d.ts +12 -0
- package/dist/cjs/utils/animations.js +120 -0
- package/dist/cjs/utils/createReactSvg.d.ts +3 -0
- package/dist/cjs/utils/createReactSvg.js +77 -0
- package/dist/cjs/utils/parser.d.ts +12 -0
- package/dist/cjs/utils/parser.js +200 -0
- package/dist/cjs/utils/replaceUrlsWithAnchors.d.ts +6 -0
- package/dist/cjs/utils/replaceUrlsWithAnchors.js +32 -0
- package/dist/cjs/utils/status.d.ts +6 -0
- package/dist/cjs/utils/status.js +54 -0
- package/dist/cjs/utils/styles.d.ts +1 -0
- package/dist/cjs/utils/styles.js +5 -0
- package/dist/cjs/utils/types.d.ts +1 -0
- package/dist/cjs/utils/types.js +2 -0
- package/dist/esm/components/Accordion/Accordion.d.ts +15 -0
- package/dist/esm/components/Accordion/Accordion.js +14 -0
- package/dist/esm/components/Accordion/styles.d.ts +18 -0
- package/dist/esm/components/Accordion/styles.js +61 -0
- package/dist/esm/components/Button/Button.d.ts +9 -0
- package/dist/esm/components/Button/Button.js +10 -0
- package/dist/esm/components/Button/styles.d.ts +16 -0
- package/dist/esm/components/Button/styles.js +277 -0
- package/dist/esm/components/Card/Card.d.ts +11 -0
- package/dist/esm/components/Card/Card.js +66 -0
- package/dist/esm/components/Checkbox/Checkbox.d.ts +15 -0
- package/dist/esm/components/Checkbox/Checkbox.js +17 -0
- package/dist/esm/components/Checkbox/styles.d.ts +27 -0
- package/dist/esm/components/Checkbox/styles.js +69 -0
- package/dist/esm/components/CheckboxGrid/CheckboxGrid.d.ts +22 -0
- package/dist/esm/components/CheckboxGrid/CheckboxGrid.js +35 -0
- package/dist/esm/components/CheckboxGrid/styles.d.ts +64 -0
- package/dist/esm/components/CheckboxGrid/styles.js +98 -0
- package/dist/esm/components/Dropdown/Dropdown.d.ts +25 -0
- package/dist/esm/components/Dropdown/Dropdown.js +32 -0
- package/dist/esm/components/Dropdown/styles.d.ts +15 -0
- package/dist/esm/components/Dropdown/styles.js +106 -0
- package/dist/esm/components/Icon/Icon.d.ts +10 -0
- package/dist/esm/components/Icon/Icon.js +42 -0
- package/dist/esm/components/Icon/IconGradient.d.ts +4 -0
- package/dist/esm/components/Icon/IconGradient.js +24 -0
- package/dist/esm/components/Icon/createIconComponent.d.ts +10 -0
- package/dist/esm/components/Icon/createIconComponent.js +24 -0
- package/dist/esm/components/Icon/getDefaultIconProps.d.ts +2 -0
- package/dist/esm/components/Icon/getDefaultIconProps.js +11 -0
- package/dist/esm/components/Icon/index.d.ts +553 -0
- package/dist/esm/components/Icon/index.js +338 -0
- package/dist/esm/components/Illustrations/Illustration.d.ts +3 -0
- package/dist/esm/components/Illustrations/Illustration.js +5 -0
- package/dist/esm/components/Illustrations/createIllustrationComponent.d.ts +10 -0
- package/dist/esm/components/Illustrations/createIllustrationComponent.js +16 -0
- package/dist/esm/components/Illustrations/index.d.ts +152 -0
- package/dist/esm/components/Illustrations/index.js +78 -0
- package/dist/esm/components/InputError/InputError.d.ts +15 -0
- package/dist/esm/components/InputError/InputError.js +40 -0
- package/dist/esm/components/Label/Label.d.ts +10 -0
- package/dist/esm/components/Label/Label.js +30 -0
- package/dist/esm/components/Link/Link.d.ts +6 -0
- package/dist/esm/components/Link/Link.js +13 -0
- package/dist/esm/components/Link/styles.d.ts +22 -0
- package/dist/esm/components/Link/styles.js +63 -0
- package/dist/esm/components/Loading/Loading.d.ts +10 -0
- package/dist/esm/components/Loading/Loading.js +21 -0
- package/dist/esm/components/Loading/LoadingLogo.d.ts +8 -0
- package/dist/esm/components/Loading/LoadingLogo.js +26 -0
- package/dist/esm/components/Loading/styles.d.ts +15 -0
- package/dist/esm/components/Loading/styles.js +71 -0
- package/dist/esm/components/Modal/Modal.d.ts +20 -0
- package/dist/esm/components/Modal/Modal.js +59 -0
- package/dist/esm/components/Modal/styles.d.ts +4 -0
- package/dist/esm/components/Modal/styles.js +63 -0
- package/dist/esm/components/MultiCheckbox/MultiCheckbox.d.ts +15 -0
- package/dist/esm/components/MultiCheckbox/MultiCheckbox.js +23 -0
- package/dist/esm/components/MultiCheckbox/styles.d.ts +1 -0
- package/dist/esm/components/MultiCheckbox/styles.js +9 -0
- package/dist/esm/components/MultiDropdown/MultiDropdown.d.ts +28 -0
- package/dist/esm/components/MultiDropdown/MultiDropdown.js +86 -0
- package/dist/esm/components/MultiDropdown/styles.d.ts +7 -0
- package/dist/esm/components/MultiDropdown/styles.js +38 -0
- package/dist/esm/components/MultiSelection/MultiSelection.d.ts +16 -0
- package/dist/esm/components/MultiSelection/MultiSelection.js +24 -0
- package/dist/esm/components/MultiSelection/styles.d.ts +9 -0
- package/dist/esm/components/MultiSelection/styles.js +63 -0
- package/dist/esm/components/NavigationMenu/NavigationMenu.d.ts +35 -0
- package/dist/esm/components/NavigationMenu/NavigationMenu.js +40 -0
- package/dist/esm/components/NavigationMenu/styles.d.ts +81 -0
- package/dist/esm/components/NavigationMenu/styles.js +257 -0
- package/dist/esm/components/Popover/InfoPopover.d.ts +8 -0
- package/dist/esm/components/Popover/InfoPopover.js +8 -0
- package/dist/esm/components/Popover/Popover.d.ts +16 -0
- package/dist/esm/components/Popover/Popover.js +22 -0
- package/dist/esm/components/Popover/styles.d.ts +14 -0
- package/dist/esm/components/Popover/styles.js +80 -0
- package/dist/esm/components/ProgressBar/ProgressBar.d.ts +8 -0
- package/dist/esm/components/ProgressBar/ProgressBar.js +47 -0
- package/dist/esm/components/RadioGroup/RadioGroup.d.ts +16 -0
- package/dist/esm/components/RadioGroup/RadioGroup.js +19 -0
- package/dist/esm/components/RadioGroup/styles.d.ts +12 -0
- package/dist/esm/components/RadioGroup/styles.js +90 -0
- package/dist/esm/components/Separator/Separator.d.ts +11 -0
- package/dist/esm/components/Separator/Separator.js +23 -0
- package/dist/esm/components/Separator/styles.d.ts +6 -0
- package/dist/esm/components/Separator/styles.js +51 -0
- package/dist/esm/components/Slider/Slider.d.ts +12 -0
- package/dist/esm/components/Slider/Slider.js +12 -0
- package/dist/esm/components/Slider/styles.d.ts +6 -0
- package/dist/esm/components/Slider/styles.js +51 -0
- package/dist/esm/components/StarRating/StarRating.d.ts +22 -0
- package/dist/esm/components/StarRating/StarRating.js +107 -0
- package/dist/esm/components/StarRating/styles.d.ts +35 -0
- package/dist/esm/components/StarRating/styles.js +65 -0
- package/dist/esm/components/StatusMessage/StatusMessage.d.ts +4 -0
- package/dist/esm/components/StatusMessage/StatusMessage.js +74 -0
- package/dist/esm/components/Switch/Switch.d.ts +15 -0
- package/dist/esm/components/Switch/Switch.js +14 -0
- package/dist/esm/components/Switch/styles.d.ts +14 -0
- package/dist/esm/components/Switch/styles.js +63 -0
- package/dist/esm/components/Tags/Tags.d.ts +15 -0
- package/dist/esm/components/Tags/Tags.js +10 -0
- package/dist/esm/components/Tags/styles.d.ts +19 -0
- package/dist/esm/components/Tags/styles.js +80 -0
- package/dist/esm/components/Text/Text.d.ts +11 -0
- package/dist/esm/components/Text/Text.js +8 -0
- package/dist/esm/components/Text/styles.d.ts +8 -0
- package/dist/esm/components/Text/styles.js +62 -0
- package/dist/esm/components/Text/types.d.ts +8 -0
- package/dist/esm/components/Text/types.js +1 -0
- package/dist/esm/components/TextArea/TextArea.d.ts +19 -0
- package/dist/esm/components/TextArea/TextArea.js +45 -0
- package/dist/esm/components/TextArea/styles.d.ts +22 -0
- package/dist/esm/components/TextArea/styles.js +42 -0
- package/dist/esm/components/TextContent/TextContent.d.ts +28 -0
- package/dist/esm/components/TextContent/TextContent.js +40 -0
- package/dist/esm/components/TextContent/styles.d.ts +24 -0
- package/dist/esm/components/TextContent/styles.js +36 -0
- package/dist/esm/components/TextInput/TextInput.d.ts +8 -0
- package/dist/esm/components/TextInput/TextInput.js +42 -0
- package/dist/esm/components/TextInput/styles.d.ts +18 -0
- package/dist/esm/components/TextInput/styles.js +111 -0
- package/dist/esm/components/Toast/Toast.d.ts +5 -0
- package/dist/esm/components/Toast/Toast.js +54 -0
- package/dist/esm/components/Toast/styles.d.ts +27 -0
- package/dist/esm/components/Toast/styles.js +125 -0
- package/dist/esm/components/Tooltip/Tooltip.d.ts +9 -0
- package/dist/esm/components/Tooltip/Tooltip.js +16 -0
- package/dist/esm/components/Tooltip/styles.d.ts +2 -0
- package/dist/esm/components/Tooltip/styles.js +18 -0
- package/dist/esm/components/Widget/AttachmentWidget.d.ts +18 -0
- package/dist/esm/components/Widget/AttachmentWidget.js +85 -0
- package/dist/esm/components/Widget/CallWidget.d.ts +11 -0
- package/dist/esm/components/Widget/CallWidget.js +46 -0
- package/dist/esm/components/Widget/Widget.d.ts +26 -0
- package/dist/esm/components/Widget/Widget.js +46 -0
- package/dist/esm/globalStyles.d.ts +5 -0
- package/dist/esm/globalStyles.js +64 -0
- package/dist/esm/hooks/useAutosizeTextArea.d.ts +2 -0
- package/dist/esm/hooks/useAutosizeTextArea.js +12 -0
- package/dist/esm/index.d.ts +51 -0
- package/dist/esm/index.js +45 -0
- package/dist/esm/storybook/BreakpointDocumentation.d.ts +3 -0
- package/dist/esm/storybook/BreakpointDocumentation.js +101 -0
- package/dist/esm/storybook/Components.d.ts +2 -0
- package/dist/esm/storybook/Components.js +23 -0
- package/dist/esm/storybook/Documentation.d.ts +5 -0
- package/dist/esm/storybook/Documentation.js +62 -0
- package/dist/esm/storybook/RadiusDocumentation.d.ts +3 -0
- package/dist/esm/storybook/RadiusDocumentation.js +112 -0
- package/dist/esm/storybook/SpacingDocumentation.d.ts +3 -0
- package/dist/esm/storybook/SpacingDocumentation.js +108 -0
- package/dist/esm/theme/index.d.ts +17 -0
- package/dist/esm/theme/index.js +53 -0
- package/dist/esm/utils/animations.d.ts +12 -0
- package/dist/esm/utils/animations.js +117 -0
- package/dist/esm/utils/createReactSvg.d.ts +3 -0
- package/dist/esm/utils/createReactSvg.js +70 -0
- package/dist/esm/utils/parser.d.ts +12 -0
- package/dist/esm/utils/parser.js +195 -0
- package/dist/esm/utils/replaceUrlsWithAnchors.d.ts +6 -0
- package/dist/esm/utils/replaceUrlsWithAnchors.js +29 -0
- package/dist/esm/utils/status.d.ts +6 -0
- package/dist/esm/utils/status.js +49 -0
- package/dist/esm/utils/styles.d.ts +1 -0
- package/dist/esm/utils/styles.js +1 -0
- package/dist/esm/utils/types.d.ts +1 -0
- package/dist/esm/utils/types.js +1 -0
- package/jest.config.ts +30 -0
- package/package.json +98 -0
- package/src/components/Accordion/Accordion.stories.tsx +66 -0
- package/src/components/Accordion/Accordion.tsx +59 -0
- package/src/components/Accordion/styles.tsx +68 -0
- package/src/components/Button/Button.stories.tsx +119 -0
- package/src/components/Button/Button.tsx +59 -0
- package/src/components/Button/styles.tsx +313 -0
- package/src/components/Card/Card.stories.tsx +22 -0
- package/src/components/Card/Card.tsx +125 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +11 -0
- package/src/components/Checkbox/Checkbox.tsx +112 -0
- package/src/components/Checkbox/styles.tsx +96 -0
- package/src/components/CheckboxGrid/CheckboxGrid.stories.tsx +49 -0
- package/src/components/CheckboxGrid/CheckboxGrid.tsx +126 -0
- package/src/components/CheckboxGrid/styles.tsx +122 -0
- package/src/components/Dropdown/Dropdown.stories.tsx +59 -0
- package/src/components/Dropdown/Dropdown.tsx +128 -0
- package/src/components/Dropdown/styles.tsx +120 -0
- package/src/components/Icon/Icon.stories.tsx +44 -0
- package/src/components/Icon/Icon.test.tsx +20 -0
- package/src/components/Icon/Icon.tsx +88 -0
- package/src/components/Icon/IconDocs.mdx +22 -0
- package/src/components/Icon/IconGradient.tsx +70 -0
- package/src/components/Icon/createIconComponent.tsx +63 -0
- package/src/components/Icon/getDefaultIconProps.ts +23 -0
- package/src/components/Icon/index.ts +499 -0
- package/src/components/Illustrations/Illustration.tsx +18 -0
- package/src/components/Illustrations/Illustrations.stories.tsx +53 -0
- package/src/components/Illustrations/createIllustrationComponent.tsx +39 -0
- package/src/components/Illustrations/index.ts +118 -0
- package/src/components/InputError/InputError.tsx +86 -0
- package/src/components/Label/Label.stories.tsx +18 -0
- package/src/components/Label/Label.tsx +76 -0
- package/src/components/Link/Link.stories.tsx +14 -0
- package/src/components/Link/Link.test.tsx +27 -0
- package/src/components/Link/Link.tsx +68 -0
- package/src/components/Link/styles.tsx +86 -0
- package/src/components/Loading/Loading.stories.tsx +26 -0
- package/src/components/Loading/Loading.tsx +65 -0
- package/src/components/Loading/LoadingLogo.tsx +141 -0
- package/src/components/Loading/styles.ts +95 -0
- package/src/components/Modal/Modal.stories.tsx +52 -0
- package/src/components/Modal/Modal.test.tsx +98 -0
- package/src/components/Modal/Modal.tsx +115 -0
- package/src/components/Modal/ModalDocs.mdx +21 -0
- package/src/components/Modal/styles.tsx +67 -0
- package/src/components/MultiCheckbox/MultiCheckbox.stories.tsx +24 -0
- package/src/components/MultiCheckbox/MultiCheckbox.tsx +73 -0
- package/src/components/MultiCheckbox/styles.tsx +10 -0
- package/src/components/MultiDropdown/MultiDropdown.stories.tsx +105 -0
- package/src/components/MultiDropdown/MultiDropdown.tsx +247 -0
- package/src/components/MultiDropdown/styles.tsx +45 -0
- package/src/components/MultiSelection/MultiSelection.stories.tsx +19 -0
- package/src/components/MultiSelection/MultiSelection.tsx +74 -0
- package/src/components/MultiSelection/styles.tsx +78 -0
- package/src/components/NavigationMenu/NavigationMenu.stories.tsx +108 -0
- package/src/components/NavigationMenu/NavigationMenu.tsx +151 -0
- package/src/components/NavigationMenu/styles.tsx +293 -0
- package/src/components/Popover/InfoPopover.tsx +40 -0
- package/src/components/Popover/Popover.stories.tsx +85 -0
- package/src/components/Popover/Popover.tsx +68 -0
- package/src/components/Popover/styles.tsx +109 -0
- package/src/components/ProgressBar/ProgressBar.stories.tsx +15 -0
- package/src/components/ProgressBar/ProgressBar.tsx +76 -0
- package/src/components/RadioGroup/RadioGroup.stories.tsx +42 -0
- package/src/components/RadioGroup/RadioGroup.tsx +91 -0
- package/src/components/RadioGroup/styles.tsx +100 -0
- package/src/components/Separator/Separator.stories.tsx +27 -0
- package/src/components/Separator/Separator.tsx +52 -0
- package/src/components/Separator/styles.tsx +57 -0
- package/src/components/Slider/Slider.stories.tsx +27 -0
- package/src/components/Slider/Slider.tsx +61 -0
- package/src/components/Slider/styles.tsx +57 -0
- package/src/components/StarRating/StarRating.stories.tsx +20 -0
- package/src/components/StarRating/StarRating.tsx +212 -0
- package/src/components/StarRating/styles.ts +76 -0
- package/src/components/StatusMessage/StatusMessage.stories.tsx +44 -0
- package/src/components/StatusMessage/StatusMessage.tsx +110 -0
- package/src/components/Switch/Switch.stories.tsx +12 -0
- package/src/components/Switch/Switch.tsx +83 -0
- package/src/components/Switch/styles.tsx +75 -0
- package/src/components/Tags/Tags.stories.tsx +44 -0
- package/src/components/Tags/Tags.tsx +68 -0
- package/src/components/Tags/styles.tsx +89 -0
- package/src/components/Text/Text.stories.tsx +288 -0
- package/src/components/Text/Text.tsx +58 -0
- package/src/components/Text/styles.tsx +75 -0
- package/src/components/Text/types.ts +9 -0
- package/src/components/Text/typography.mdx +91 -0
- package/src/components/TextArea/TextArea.stories.tsx +26 -0
- package/src/components/TextArea/TextArea.tsx +117 -0
- package/src/components/TextArea/styles.tsx +58 -0
- package/src/components/TextContent/TextContent.stories.tsx +54 -0
- package/src/components/TextContent/TextContent.tsx +154 -0
- package/src/components/TextContent/styles.tsx +47 -0
- package/src/components/TextInput/TextInput.stories.tsx +43 -0
- package/src/components/TextInput/TextInput.tsx +146 -0
- package/src/components/TextInput/styles.tsx +129 -0
- package/src/components/Toast/Toast.stories.tsx +55 -0
- package/src/components/Toast/Toast.tsx +139 -0
- package/src/components/Toast/styles.tsx +142 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +31 -0
- package/src/components/Tooltip/Tooltip.tsx +48 -0
- package/src/components/Tooltip/styles.tsx +20 -0
- package/src/components/Widget/AttachmentWidget.stories.tsx +14 -0
- package/src/components/Widget/AttachmentWidget.tsx +142 -0
- package/src/components/Widget/CallWidget.stories.tsx +38 -0
- package/src/components/Widget/CallWidget.tsx +114 -0
- package/src/components/Widget/Widget.stories.tsx +10 -0
- package/src/components/Widget/Widget.tsx +104 -0
- package/src/globalStyles.ts +68 -0
- package/src/hooks/useAutosizeTextArea.tsx +19 -0
- package/src/index.ts +107 -0
- package/src/setupTests.ts +8 -0
- package/src/storybook/BreakpointDocumentation.tsx +126 -0
- package/src/storybook/Components.tsx +29 -0
- package/src/storybook/Documentation.tsx +86 -0
- package/src/storybook/RadiusDocumentation.tsx +133 -0
- package/src/storybook/SpacingDocumentation.tsx +131 -0
- package/src/storybook/breakpoints.mdx +83 -0
- package/src/storybook/colors.mdx +118 -0
- package/src/storybook/radius.mdx +48 -0
- package/src/storybook/spacing.mdx +45 -0
- package/src/testUtils.tsx +49 -0
- package/src/theme/index.tsx +98 -0
- package/src/utils/animations.ts +129 -0
- package/src/utils/createReactSvg.tsx +140 -0
- package/src/utils/parser.mdx +41 -0
- package/src/utils/parser.test.tsx +542 -0
- package/src/utils/parser.tsx +333 -0
- package/src/utils/replaceUrlsWithAnchors.test.ts +42 -0
- package/src/utils/replaceUrlsWithAnchors.ts +32 -0
- package/src/utils/status.tsx +85 -0
- package/src/utils/styles.ts +1 -0
- package/src/utils/types.ts +1 -0
- package/tsconfig.json +34 -0
- package/tsconfig.test.json +16 -0
package/.babelrc
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// This file has been automatically migrated to valid ESM format by Storybook.
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { dirname, join } from "node:path";
|
|
4
|
+
const require = createRequire(import.meta.url);
|
|
5
|
+
export default {
|
|
6
|
+
addons: [
|
|
7
|
+
"@storybook/addon-a11y",
|
|
8
|
+
"@storybook/addon-themes",
|
|
9
|
+
"@storybook/addon-webpack5-compiler-swc",
|
|
10
|
+
"@chromatic-com/storybook",
|
|
11
|
+
"storybook-addon-remix-react-router",
|
|
12
|
+
"@storybook/addon-docs"
|
|
13
|
+
],
|
|
14
|
+
|
|
15
|
+
framework: {
|
|
16
|
+
name: "@storybook/react-webpack5",
|
|
17
|
+
options: {},
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
stories: [
|
|
21
|
+
'../src/components/**/*.stories.tsx',
|
|
22
|
+
'../src/components/**/*.mdx',
|
|
23
|
+
'../src/utils/*.mdx',
|
|
24
|
+
'../src/storybook/*.mdx',
|
|
25
|
+
],
|
|
26
|
+
|
|
27
|
+
features: {
|
|
28
|
+
interactionsDebugger: true,
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
docs: {},
|
|
32
|
+
|
|
33
|
+
typescript: {
|
|
34
|
+
reactDocgen: 'react-docgen-typescript',
|
|
35
|
+
},
|
|
36
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
2
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
3
|
+
<link
|
|
4
|
+
href="https://fonts.googleapis.com/css2?family=Signika+Negative:wght@300;600;700&family=Work+Sans:wght@700&display=swap"
|
|
5
|
+
rel="stylesheet"
|
|
6
|
+
/>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { withThemeFromJSXProvider } from '@storybook/addon-themes';
|
|
2
|
+
|
|
3
|
+
import { GlobalStyles } from '../src/index';
|
|
4
|
+
import { CustomThemeProvider, themes } from '../src/theme';
|
|
5
|
+
import { ThemeVariants } from '@a-little-world/little-world-design-system-core';
|
|
6
|
+
|
|
7
|
+
export const decorators = [
|
|
8
|
+
withThemeFromJSXProvider({
|
|
9
|
+
themes,
|
|
10
|
+
defaultTheme: ThemeVariants.light,
|
|
11
|
+
Provider: CustomThemeProvider,
|
|
12
|
+
GlobalStyles: GlobalStyles,
|
|
13
|
+
}),
|
|
14
|
+
];
|
|
15
|
+
export const tags = ['autodocs'];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @a-little-world/little-world-design-system@2.10.0 build /home/tim/development/little-world/little-world-design-system/packages/web
|
|
4
|
+
> rimraf dist && npm run build:esm && npm run build:cjs
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
> @a-little-world/little-world-design-system@2.10.0 build:esm
|
|
8
|
+
> tsc --outDir dist/esm
|
|
9
|
+
|
|
10
|
+
[1G[0K[1G[0K⠙[1G[0K
|
|
11
|
+
> @a-little-world/little-world-design-system@2.10.0 build:cjs
|
|
12
|
+
> tsc --module commonjs --outDir dist/cjs
|
|
13
|
+
|
|
14
|
+
[1G[0K[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
# @a-little-world/little-world-design-system
|
|
2
|
+
|
|
3
|
+
## 2.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add new Radio Group type
|
|
8
|
+
- Fix styling for Popover close button
|
|
9
|
+
- Add withBackground prop to MultiSelection for styling variation
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
- @a-little-world/little-world-design-system-core@1.7.0
|
|
15
|
+
|
|
16
|
+
## 2.9.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- Add loading logo type
|
|
21
|
+
- Improve Button Icon type styling
|
|
22
|
+
- Add ShareScreen Icon
|
|
23
|
+
- Improve Icon styling in MultiDropdown & TextInput components
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
- @a-little-world/little-world-design-system-core@1.6.0
|
|
29
|
+
|
|
30
|
+
## 2.8.0
|
|
31
|
+
|
|
32
|
+
### Minor Changes
|
|
33
|
+
|
|
34
|
+
- Update styling of TextArea and Button Icon Type
|
|
35
|
+
|
|
36
|
+
## 2.7.0
|
|
37
|
+
|
|
38
|
+
### Minor Changes
|
|
39
|
+
|
|
40
|
+
- Expo 54 upgrades
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- Updated dependencies
|
|
45
|
+
- @a-little-world/little-world-design-system-core@1.5.0
|
|
46
|
+
|
|
47
|
+
## 2.5.4
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- Updated dependencies
|
|
52
|
+
- Change versioning for react packages to allow minor update versions for React 19
|
|
53
|
+
|
|
54
|
+
## 2.6.0
|
|
55
|
+
|
|
56
|
+
### Patch Changes
|
|
57
|
+
|
|
58
|
+
- Fix TextArea component mobile keyboard behavior
|
|
59
|
+
- Added touch device detection to prevent Enter key from submitting form on mobile devices
|
|
60
|
+
- Enter key now correctly creates new lines on mobile while maintaining submit functionality on desktop
|
|
61
|
+
- Improved cross-platform compatibility for text input handling
|
|
62
|
+
- Updated dependencies
|
|
63
|
+
- @a-little-world/little-world-design-system-core@1.4.4
|
|
64
|
+
|
|
65
|
+
## 2.5.3
|
|
66
|
+
|
|
67
|
+
### Patch Changes
|
|
68
|
+
|
|
69
|
+
- Add onlyCountries prop to TextInput (for phone numbers)
|
|
70
|
+
- Updated dependencies
|
|
71
|
+
- @a-little-world/little-world-design-system-core@1.4.3
|
|
72
|
+
|
|
73
|
+
## 2.5.2
|
|
74
|
+
|
|
75
|
+
### Minor Changes
|
|
76
|
+
|
|
77
|
+
- Add nonInteractive option to text parser
|
|
78
|
+
- Renders interactive elements (buttons, links) as plain text
|
|
79
|
+
- Preserves styling tags (bold, highlight)
|
|
80
|
+
- Prevents URL auto-conversion to clickable links
|
|
81
|
+
- Enhance Text component stories with comprehensive nonInteractive visual tests
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- Fix parser tests for nonInteractive functionality
|
|
86
|
+
- Updated dependencies
|
|
87
|
+
- @a-little-world/little-world-design-system-core@1.4.2
|
|
88
|
+
|
|
89
|
+
## 2.5.1
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
93
|
+
- Add className to StatusMessage
|
|
94
|
+
- Do not spread key in attribute props for svg elements
|
|
95
|
+
- Updated dependencies
|
|
96
|
+
- @a-little-world/little-world-design-system-core@1.4.1
|
|
97
|
+
|
|
98
|
+
## 2.5.0
|
|
99
|
+
|
|
100
|
+
### Minor Changes
|
|
101
|
+
|
|
102
|
+
- Upgrade to React 19
|
|
103
|
+
- Improve StatusMessage component
|
|
104
|
+
|
|
105
|
+
### Patch Changes
|
|
106
|
+
|
|
107
|
+
- Updated dependencies
|
|
108
|
+
- @a-little-world/little-world-design-system-core@1.4.0
|
|
109
|
+
|
|
110
|
+
## 2.4.0
|
|
111
|
+
|
|
112
|
+
### Minor Changes
|
|
113
|
+
|
|
114
|
+
- Implement version 2 of text parser (non-regex based)
|
|
115
|
+
|
|
116
|
+
## 2.3.4
|
|
117
|
+
|
|
118
|
+
### Patch Changes
|
|
119
|
+
|
|
120
|
+
- Fix issue with TextArea size
|
|
121
|
+
- Updated dependencies
|
|
122
|
+
- @a-little-world/little-world-design-system-core@1.3.4
|
|
123
|
+
|
|
124
|
+
## 2.3.3
|
|
125
|
+
|
|
126
|
+
### Patch Changes
|
|
127
|
+
|
|
128
|
+
- Fix issue with publishing error
|
|
129
|
+
- Updated dependencies
|
|
130
|
+
- @a-little-world/little-world-design-system-core@1.3.3
|
|
131
|
+
|
|
132
|
+
## 2.3.2
|
|
133
|
+
|
|
134
|
+
### Patch Changes
|
|
135
|
+
|
|
136
|
+
- Fix some dark mode colors
|
|
137
|
+
- Updated dependencies
|
|
138
|
+
- @a-little-world/little-world-design-system-core@1.3.2
|
|
139
|
+
|
|
140
|
+
## 2.3.1
|
|
141
|
+
|
|
142
|
+
### Patch Changes
|
|
143
|
+
|
|
144
|
+
- **Fix issue with gradient label**
|
|
145
|
+
- **Add line-height logic to Text**
|
|
146
|
+
- **Add setMode to customThemeProvider**
|
|
147
|
+
- Updated dependencies
|
|
148
|
+
- @a-little-world/little-world-design-system-core@1.3.1
|
|
149
|
+
|
|
150
|
+
## 2.3.0
|
|
151
|
+
|
|
152
|
+
### Minor Changes
|
|
153
|
+
|
|
154
|
+
- **ESLint Integration**: Added comprehensive ESLint configuration with TypeScript support, React hooks rules, and accessibility guidelines
|
|
155
|
+
- **Code Quality**: Implemented strict linting rules for better code consistency and maintainability across all components
|
|
156
|
+
- **Type Safety**: Enhanced TypeScript configurations with proper project references and type checking
|
|
157
|
+
- **Component Improvements**: Enhanced various component implementations with better styling and functionality
|
|
158
|
+
|
|
159
|
+
### Patch Changes
|
|
160
|
+
|
|
161
|
+
- **Utility Consolidation**: Removed duplicate utility files (`isValidUrl.ts`, `validDomains.ts`) and consolidated them in the core package
|
|
162
|
+
- **Theme System**: Fixed theme provider issues and improved browser API handling with proper SSR support
|
|
163
|
+
- **Component Styling**: Enhanced component styling consistency and improved theme integration
|
|
164
|
+
- **Build System**: Updated build configurations for better cross-platform compatibility
|
|
165
|
+
- **Dependencies**: Updated and optimized package dependencies for improved performance and security
|
|
166
|
+
- Updated dependencies
|
|
167
|
+
- @a-little-world/little-world-design-system-core@1.3.0
|
|
168
|
+
|
|
169
|
+
## 2.2.9
|
|
170
|
+
|
|
171
|
+
### Patch Changes
|
|
172
|
+
|
|
173
|
+
- Ensure web Icons take className prop and add surface.quaternary
|
|
174
|
+
- Updated dependencies
|
|
175
|
+
- @a-little-world/little-world-design-system-core@1.2.3
|
|
176
|
+
|
|
177
|
+
## 2.2.8
|
|
178
|
+
|
|
179
|
+
### Patch Changes
|
|
180
|
+
|
|
181
|
+
- Move theme declaration into index file
|
|
182
|
+
- Improve styling of AccordionContent
|
|
183
|
+
- Remove redundant copy-declaration scripts
|
|
184
|
+
|
|
185
|
+
## 2.2.7
|
|
186
|
+
|
|
187
|
+
### Patch Changes
|
|
188
|
+
|
|
189
|
+
- Fix theme type declaration import in index file (Unsuccessful)
|
|
190
|
+
|
|
191
|
+
## 2.2.6
|
|
192
|
+
|
|
193
|
+
### Patch Changes
|
|
194
|
+
|
|
195
|
+
- Fix theme type declaration import in index file (Unsuccessful)
|
|
196
|
+
|
|
197
|
+
## 2.2.5
|
|
198
|
+
|
|
199
|
+
### Patch Changes
|
|
200
|
+
|
|
201
|
+
- Fix theme type declaration import in theme file (Unsuccessful)
|
|
202
|
+
|
|
203
|
+
## 2.2.4
|
|
204
|
+
|
|
205
|
+
### Patch Changes
|
|
206
|
+
|
|
207
|
+
- **TypeScript Integration**: Fixed styled-components theme type declarations by ensuring theme.d.ts is included in build output, resolving "Property 'color' does not exist on type 'DefaultTheme'" errors in consuming applications
|
|
208
|
+
- **Accordion Component**: Added ContentWrapper prop for flexible content styling - consumers can now pass custom styled components to wrap accordion content
|
|
209
|
+
- **Icon System**: Enhanced icon gradient system with improved diagonal gradient support for better visual consistency
|
|
210
|
+
- **SVG Processing**: Improved SVG gradient definitions with better universal applicability across different icon shapes
|
|
211
|
+
- **Accordion Component**: Fixed TypeScript issues with Accordion component by removing required type prop dependency
|
|
212
|
+
- Updated dependencies
|
|
213
|
+
- @a-little-world/little-world-design-system-core@1.2.2
|
|
214
|
+
|
|
215
|
+
## 2.2.3
|
|
216
|
+
|
|
217
|
+
### Patch Changes
|
|
218
|
+
|
|
219
|
+
- **Theme System**: Fixed critical theme provider issues that were causing undefined theme objects and runtime errors in consuming applications
|
|
220
|
+
- **Dependencies**: Moved react-router and styled-components to peer dependencies to prevent version conflicts and bundling issues
|
|
221
|
+
- **Accordion Component**: Fixed TypeScript issues with Accordion component by removing required type prop dependency
|
|
222
|
+
- **Icon System**: Improved gradient system with better universal gradient support for square icons
|
|
223
|
+
- **Build Process**: Enhanced build configuration and dependency management
|
|
224
|
+
- **Component Exports**: Added ThemeWeb type export for better TypeScript support
|
|
225
|
+
- **Testing**: Improved test configuration and setup for better reliability
|
|
226
|
+
|
|
227
|
+
### Updated Dependencies
|
|
228
|
+
|
|
229
|
+
- @a-little-world/little-world-design-system-core@1.2.1
|
|
230
|
+
|
|
231
|
+
## 2.2.2
|
|
232
|
+
|
|
233
|
+
### Patch Changes
|
|
234
|
+
|
|
235
|
+
- **Type Exports**: Added ThemeWeb type export for better TypeScript integration
|
|
236
|
+
- **Component Improvements**: Enhanced various component implementations and exports
|
|
237
|
+
|
|
238
|
+
## 2.2.1
|
|
239
|
+
|
|
240
|
+
### Patch Changes
|
|
241
|
+
|
|
242
|
+
- **Theme Provider**: Fixed theme provider issues in web package that were causing undefined theme objects
|
|
243
|
+
- **Testing**: Resolved test configuration issues and improved test setup
|
|
244
|
+
- **Component Stability**: Enhanced component stability and error handling
|
|
245
|
+
|
|
246
|
+
## 2.2.0
|
|
247
|
+
|
|
248
|
+
### Minor Changes
|
|
249
|
+
|
|
250
|
+
- **Font Loading**: Fixed issues with loading fonts in web environments by implementing conditional font exports
|
|
251
|
+
- **Theme Integration**: Improved theme construction to properly preserve breakpoints, radius, and spacing properties
|
|
252
|
+
|
|
253
|
+
### Patch Changes
|
|
254
|
+
|
|
255
|
+
- **Build System**: Enhanced build process for better cross-platform compatibility
|
|
256
|
+
- **Package Structure**: Improved package organization and exports
|
|
257
|
+
|
|
258
|
+
### Updated Dependencies
|
|
259
|
+
|
|
260
|
+
- @a-little-world/little-world-design-system-core@1.2.0
|
|
261
|
+
|
|
262
|
+
## 2.1.0
|
|
263
|
+
|
|
264
|
+
### Minor Changes
|
|
265
|
+
|
|
266
|
+
- **Illustration Components**: Enhanced illustration component system with improved SVG processing and better component structure
|
|
267
|
+
- **Icon Components**: Updated icon component creation utilities for better performance and consistency
|
|
268
|
+
- **Theme Integration**: Improved theme handling and integration across components
|
|
269
|
+
- **SVG Utilities**: Enhanced SVG processing utilities for better web rendering
|
|
270
|
+
- **Component Exports**: Updated component exports to include latest illustration and icon improvements
|
|
271
|
+
|
|
272
|
+
### Patch Changes
|
|
273
|
+
|
|
274
|
+
- Updated dependencies
|
|
275
|
+
- @a-little-world/little-world-design-system-core@1.1.5
|
|
276
|
+
|
|
277
|
+
## 2.0.3
|
|
278
|
+
|
|
279
|
+
### Patch Changes
|
|
280
|
+
|
|
281
|
+
- Fix patch build issue with incorrect reference to workspaces
|
|
282
|
+
- Updated dependencies
|
|
283
|
+
- @a-little-world/little-world-design-system-core@1.1.4
|
|
284
|
+
|
|
285
|
+
## 2.0.2
|
|
286
|
+
|
|
287
|
+
### Patch Changes
|
|
288
|
+
|
|
289
|
+
- Updated dependencies
|
|
290
|
+
- @a-little-world/little-world-design-system-core@1.1.3
|
|
291
|
+
|
|
292
|
+
## 2.0.1
|
|
293
|
+
|
|
294
|
+
### Patch Changes
|
|
295
|
+
|
|
296
|
+
## 📚 Documentation Improvements
|
|
297
|
+
|
|
298
|
+
- **Storybook MDX**: Enhanced theme accessibility in MDX documentation files
|
|
299
|
+
- **Design Tokens**: Added comprehensive documentation for spacing, radius, and breakpoints
|
|
300
|
+
- **Color System**: Improved color token documentation with proper theme implementation
|
|
301
|
+
- **Typography**: Updated typography documentation with accurate font size values from core
|
|
302
|
+
|
|
303
|
+
## 🔧 Technical Improvements
|
|
304
|
+
|
|
305
|
+
- **Theme Integration**: Fixed MDX files to use theme directly instead of tokensPixelated
|
|
306
|
+
- **Documentation Structure**: Reorganized foundation documentation for better discoverability
|
|
307
|
+
- **Implementation Examples**: Updated all code examples to use proper styled-components theme pattern
|
|
308
|
+
|
|
309
|
+
- Updated dependencies
|
|
310
|
+
- @a-little-world/little-world-design-system-core@1.1.2
|
|
311
|
+
|
|
312
|
+
## 2.0.0
|
|
313
|
+
|
|
314
|
+
### Major Changes
|
|
315
|
+
|
|
316
|
+
- bd7e9d2: # BREAKING: Monorepo Refactor - Core Package Extraction
|
|
317
|
+
|
|
318
|
+
## What Changed
|
|
319
|
+
- **Extracted shared design tokens and types** into a new `@a-little-world/little-world-design-system-core` package
|
|
320
|
+
- **Restructured the design system** into a monorepo with separate packages for web, native, and core
|
|
321
|
+
- **Updated styled-components** from v5 to v6 for better compatibility
|
|
322
|
+
- **Added Toast component** to the core package
|
|
323
|
+
|
|
324
|
+
## Why This Change Was Made
|
|
325
|
+
- **Better separation of concerns** - Core tokens and types are now reusable across web and native
|
|
326
|
+
- **Improved maintainability** - Shared code is centralized and versioned independently
|
|
327
|
+
- **Enhanced developer experience** - Clear package boundaries and dependencies
|
|
328
|
+
- **New functionality** - Toast component provides consistent notification system
|
|
329
|
+
|
|
330
|
+
## How to Update Your Code
|
|
331
|
+
|
|
332
|
+
### For Web Applications
|
|
333
|
+
1. **Update your package.json**:
|
|
334
|
+
|
|
335
|
+
```json
|
|
336
|
+
{
|
|
337
|
+
"dependencies": {
|
|
338
|
+
"@a-little-world/little-world-design-system": "^2.0.0",
|
|
339
|
+
"@a-little-world/little-world-design-system-core": "^1.1.0"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
2. **Update imports** (if you were importing tokens directly):
|
|
345
|
+
|
|
346
|
+
```typescript
|
|
347
|
+
// OLD
|
|
348
|
+
import {
|
|
349
|
+
colors,
|
|
350
|
+
spacing,
|
|
351
|
+
} from '@a-little-world/little-world-design-system';
|
|
352
|
+
|
|
353
|
+
// NEW
|
|
354
|
+
import {
|
|
355
|
+
colors,
|
|
356
|
+
spacing,
|
|
357
|
+
} from '@a-little-world/little-world-design-system-core';
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
3. **Component imports remain the same**:
|
|
361
|
+
```typescript
|
|
362
|
+
import { Button, Text } from '@a-little-world/little-world-design-system';
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
### For React Native Applications
|
|
366
|
+
1. **Add the native package**:
|
|
367
|
+
|
|
368
|
+
```json
|
|
369
|
+
{
|
|
370
|
+
"dependencies": {
|
|
371
|
+
"@a-little-world/little-world-design-system-native": "^0.1.0",
|
|
372
|
+
"@a-little-world/little-world-design-system-core": "^1.1.0"
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
2. **Import components**:
|
|
378
|
+
```typescript
|
|
379
|
+
import {
|
|
380
|
+
Button,
|
|
381
|
+
Text,
|
|
382
|
+
} from '@a-little-world/little-world-design-system-native';
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
## Migration Checklist
|
|
386
|
+
- [ ] Update package.json dependencies
|
|
387
|
+
- [ ] Update any direct token imports to use the core package
|
|
388
|
+
- [ ] Test your application thoroughly
|
|
389
|
+
- [ ] Update any build configurations if needed
|
|
390
|
+
|
|
391
|
+
## Support
|
|
392
|
+
|
|
393
|
+
If you encounter any issues during migration, please check the [documentation](https://github.com/a-little-world/little-world-design-system) or create an issue.
|
|
394
|
+
|
|
395
|
+
### Patch Changes
|
|
396
|
+
|
|
397
|
+
- Updated dependencies [bd7e9d2]
|
|
398
|
+
- @a-little-world/little-world-design-system-core@1.1.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Little World
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# @a-little-world/little-world-design-system
|
|
2
|
+
|
|
3
|
+
Web components for the Little World Design System.
|
|
4
|
+
|
|
5
|
+
This system utilises [Radix Primitives](https://github.com/radix-ui/primitives) to ensure components are accessible and customizable.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @a-little-world/little-world-design-system
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { Button, Text } from '@a-little-world/little-world-design-system';
|
|
17
|
+
|
|
18
|
+
export default function App() {
|
|
19
|
+
return (
|
|
20
|
+
<Button variant="primary">
|
|
21
|
+
<Text>Hello World</Text>
|
|
22
|
+
</Button>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Fonts
|
|
28
|
+
|
|
29
|
+
Ensure that you have the required fonts available by including them in your HTML file:
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
33
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
34
|
+
<link
|
|
35
|
+
href="https://fonts.googleapis.com/css2?family=Signika+Negative:wght@300;600;700&family=Work+Sans:wght@700&display=swap"
|
|
36
|
+
rel="stylesheet"
|
|
37
|
+
/>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Local Development
|
|
41
|
+
|
|
42
|
+
### ⚠️ Important: Build from Root
|
|
43
|
+
|
|
44
|
+
**Always build and publish from the root of the monorepo, never from individual package directories.**
|
|
45
|
+
|
|
46
|
+
✅ **Correct (from root):**
|
|
47
|
+
```bash
|
|
48
|
+
pnpm build:web
|
|
49
|
+
pnpm --filter=@a-little-world/little-world-design-system publish
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
❌ **Incorrect (from package directory):**
|
|
53
|
+
```bash
|
|
54
|
+
cd packages/web
|
|
55
|
+
npm run build
|
|
56
|
+
npm publish # This will break workspace dependencies!
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Quick Start
|
|
60
|
+
|
|
61
|
+
From the root of the monorepo:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# Build the web package
|
|
65
|
+
pnpm build:web
|
|
66
|
+
|
|
67
|
+
# Start Storybook for development
|
|
68
|
+
pnpm storybook:web
|
|
69
|
+
|
|
70
|
+
# Build Storybook for production
|
|
71
|
+
pnpm storybook:web:build
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Development Workflow
|
|
75
|
+
|
|
76
|
+
1. **Make changes** to web components
|
|
77
|
+
2. **Build package** - `pnpm build:web`
|
|
78
|
+
3. **Test in Storybook** - `pnpm storybook:web`
|
|
79
|
+
4. **Preview changes** - View components in Storybook at http://localhost:6006
|
|
80
|
+
|
|
81
|
+
### Manual Setup
|
|
82
|
+
|
|
83
|
+
If you prefer to work directly in the web package directory:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
cd packages/web
|
|
87
|
+
npm install
|
|
88
|
+
npm run build
|
|
89
|
+
npm run storybook
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Storybook
|
|
93
|
+
|
|
94
|
+
The web package includes Storybook for component development and testing:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
# From root
|
|
98
|
+
pnpm storybook:web
|
|
99
|
+
|
|
100
|
+
# Or from web package directory
|
|
101
|
+
cd packages/web
|
|
102
|
+
npm run storybook
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Building
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# Build the web package
|
|
109
|
+
pnpm build:web
|
|
110
|
+
|
|
111
|
+
# Or from the web package directory
|
|
112
|
+
cd packages/web
|
|
113
|
+
npm run build
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Publishing
|
|
117
|
+
|
|
118
|
+
### Automated Releases (Recommended)
|
|
119
|
+
|
|
120
|
+
**Releases should ideally be automated and handled via merging into the main branch of the repo.**
|
|
121
|
+
|
|
122
|
+
See the [Versioning and Releases section in the root README](../../README.md#versioning-and-releases) for detailed information about the automated release process using Changesets.
|
|
123
|
+
|
|
124
|
+
The automated workflow will:
|
|
125
|
+
- Detect version changes in package.json
|
|
126
|
+
- Publish to GitHub Packages registry
|
|
127
|
+
- Create GitHub releases with changelog information
|
|
128
|
+
- Handle all publishing steps automatically
|
|
129
|
+
|
|
130
|
+
### Manual Publishing (Fallback)
|
|
131
|
+
|
|
132
|
+
If you need to publish manually (not recommended):
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
# Ensure you're authenticated to GitHub Packages
|
|
136
|
+
npm login --registry=https://npm.pkg.github.com
|
|
137
|
+
|
|
138
|
+
pnpm build:web
|
|
139
|
+
pnpm --filter=@a-little-world/little-world-design-system publish
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
**Note**: Manual publishing bypasses the automated changelog generation and release management. Use the automated process whenever possible.
|
|
143
|
+
|
|
144
|
+
## Dependencies
|
|
145
|
+
|
|
146
|
+
This package depends on:
|
|
147
|
+
- `@a-little-world/little-world-design-system-core` - Core design tokens and utilities
|
|
148
|
+
- `react` - React framework
|
|
149
|
+
- `styled-components` - Styling library
|
|
150
|
+
- `@radix-ui/react-*` - Radix UI primitives for accessibility
|
|
151
|
+
|
|
152
|
+
## Gotcha's! Going from web to native...
|
|
153
|
+
|
|
154
|
+
In React Native, when you set `minWidth` on a component, it doesn't automatically expand beyond that width based on content like it would on the web. The flexbox implementation in React Native is more strict about respecting explicit dimensions.
|
|
155
|
+
|
|
156
|
+
**Recommendation**: For most cases:
|
|
157
|
+
- Use `flex: 1` when you want a component to fill its parent
|
|
158
|
+
- Use `max-width` to limit the size
|
|
159
|
+
- Otherwise use an explicit `width` and manage the content
|
|
160
|
+
|
|
161
|
+
## Contributing
|
|
162
|
+
|
|
163
|
+
Check [contribution guidelines](CONTRIBUTING.md).
|
|
164
|
+
|
|
165
|
+
## Versioning and Releases
|
|
166
|
+
|
|
167
|
+
This package uses [Changesets](https://github.com/changesets/changesets) for version management. See the root README for detailed information about the release process.
|
|
168
|
+
|
|
169
|
+
**Note**: The manual release process described below is deprecated. Use Changesets instead.
|
|
170
|
+
|
|
171
|
+
### Deprecated Manual Release Process
|
|
172
|
+
|
|
173
|
+
~~In order to release a new version of this package:~~
|
|
174
|
+
|
|
175
|
+
1. ~~Bump the version in the `package.json` and run `npm install` to update the package-lock.json in the relevant release branch.~~
|
|
176
|
+
2. ~~Ensure your release branch has been tested, approved and merged into `main`.~~
|
|
177
|
+
3. ~~Go to the "Draft a release" [section](https://github.com/a-little-world/little-world-design-system/releases/new) of the repo.~~
|
|
178
|
+
4. ~~Create a tag that relates to the new version.~~
|
|
179
|
+
5. ~~Include the release version in the title and give an appropriate description~~
|
|
180
|
+
6. ~~Hit the "publish release" button which will trigger a github action that will publish the new version to npm.~~
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default ({ children }) => children;
|