@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
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
import {
|
|
2
|
+
accountIcon,
|
|
3
|
+
addToChatIcon,
|
|
4
|
+
appointmentIcon,
|
|
5
|
+
archiveIcon,
|
|
6
|
+
arrowLeftIcon,
|
|
7
|
+
attachmentIcon,
|
|
8
|
+
bellIcon,
|
|
9
|
+
calendarAddIcon,
|
|
10
|
+
calendarIcon,
|
|
11
|
+
callIncomingIcon,
|
|
12
|
+
callOutgoingIcon,
|
|
13
|
+
cameraIcon,
|
|
14
|
+
checkIcon,
|
|
15
|
+
checkInChatIcon,
|
|
16
|
+
chevronDownIcon,
|
|
17
|
+
chevronLeftIcon,
|
|
18
|
+
chevronRightIcon,
|
|
19
|
+
clockBackIcon,
|
|
20
|
+
clockDashedIcon,
|
|
21
|
+
clockIcon,
|
|
22
|
+
closeIcon,
|
|
23
|
+
copyIcon,
|
|
24
|
+
dashboardIcon,
|
|
25
|
+
dotsIcon,
|
|
26
|
+
downloadIcon,
|
|
27
|
+
exclamationIcon,
|
|
28
|
+
eyeClosedIcon,
|
|
29
|
+
eyeOpenIcon,
|
|
30
|
+
facebookIcon,
|
|
31
|
+
fullScreenExitIcon,
|
|
32
|
+
fullScreenIcon,
|
|
33
|
+
githubIcon,
|
|
34
|
+
groupChatIcon,
|
|
35
|
+
heartIcon,
|
|
36
|
+
imageIcon,
|
|
37
|
+
imageSearchIcon,
|
|
38
|
+
inclusiveIcon,
|
|
39
|
+
infoIcon,
|
|
40
|
+
instagramIcon,
|
|
41
|
+
linkedinIcon,
|
|
42
|
+
logoIcon,
|
|
43
|
+
logoutIcon,
|
|
44
|
+
mailIcon,
|
|
45
|
+
menuIcon,
|
|
46
|
+
messageIcon,
|
|
47
|
+
messageWithQuestionIcon,
|
|
48
|
+
micIcon,
|
|
49
|
+
mobileIcon,
|
|
50
|
+
moonIcon,
|
|
51
|
+
notesIcon,
|
|
52
|
+
pencilIcon,
|
|
53
|
+
phoneIcon,
|
|
54
|
+
phoneSlashIcon,
|
|
55
|
+
plusIcon,
|
|
56
|
+
profileChatIcon,
|
|
57
|
+
profileIcon,
|
|
58
|
+
puzzleIcon,
|
|
59
|
+
questionIcon,
|
|
60
|
+
sendIcon,
|
|
61
|
+
shareScreenIcon,
|
|
62
|
+
settingsIcon,
|
|
63
|
+
speakerIcon,
|
|
64
|
+
stackIcon,
|
|
65
|
+
starIcon,
|
|
66
|
+
sunIcon,
|
|
67
|
+
swapIcon,
|
|
68
|
+
telegramIcon,
|
|
69
|
+
tickDoubleIcon,
|
|
70
|
+
tickIcon,
|
|
71
|
+
tiktokIcon,
|
|
72
|
+
translatorIcon,
|
|
73
|
+
trashIcon,
|
|
74
|
+
twitterIcon,
|
|
75
|
+
uploadIcon,
|
|
76
|
+
userDisconnectedIcon,
|
|
77
|
+
userSearchIcon,
|
|
78
|
+
videoIcon,
|
|
79
|
+
webIcon,
|
|
80
|
+
whatsappIcon,
|
|
81
|
+
GradientTypes,
|
|
82
|
+
} from '@a-little-world/little-world-design-system-core';
|
|
83
|
+
|
|
84
|
+
import { createIconComponent } from './createIconComponent';
|
|
85
|
+
|
|
86
|
+
export const AccountIcon = createIconComponent({
|
|
87
|
+
name: 'Account',
|
|
88
|
+
svgData: accountIcon,
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export const AddToChatIcon = createIconComponent({
|
|
92
|
+
name: 'AddToChat',
|
|
93
|
+
svgData: addToChatIcon,
|
|
94
|
+
gradientType: GradientTypes.v3,
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
export const AppointmentIcon = createIconComponent({
|
|
98
|
+
name: 'Appointment',
|
|
99
|
+
svgData: appointmentIcon,
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
export const ArchiveIcon = createIconComponent({
|
|
103
|
+
name: 'Archive',
|
|
104
|
+
svgData: archiveIcon,
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
export const ArrowLeftIcon = createIconComponent({
|
|
108
|
+
name: 'ArrowLeft',
|
|
109
|
+
svgData: arrowLeftIcon,
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
export const AttachmentIcon = createIconComponent({
|
|
113
|
+
name: 'Attachment',
|
|
114
|
+
svgData: attachmentIcon,
|
|
115
|
+
gradientType: GradientTypes.v3,
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
export const BellIcon = createIconComponent({
|
|
119
|
+
name: 'Bell',
|
|
120
|
+
svgData: bellIcon,
|
|
121
|
+
gradientType: GradientTypes.v2,
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
export const CalendarIcon = createIconComponent({
|
|
125
|
+
name: 'Calendar',
|
|
126
|
+
svgData: calendarIcon,
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
export const CalendarAddIcon = createIconComponent({
|
|
130
|
+
name: 'CalendarAdd',
|
|
131
|
+
svgData: calendarAddIcon,
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
export const CallIncomingIcon = createIconComponent({
|
|
135
|
+
name: 'CallIncoming',
|
|
136
|
+
svgData: callIncomingIcon,
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
export const CallOutgoingIcon = createIconComponent({
|
|
140
|
+
name: 'CallOutgoing',
|
|
141
|
+
svgData: callOutgoingIcon,
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
export const CameraIcon = createIconComponent({
|
|
145
|
+
name: 'Camera',
|
|
146
|
+
svgData: cameraIcon,
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
export const CheckIcon = createIconComponent({
|
|
150
|
+
name: 'Check',
|
|
151
|
+
svgData: checkIcon,
|
|
152
|
+
gradientType: GradientTypes.v3,
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
export const CheckInChatIcon = createIconComponent({
|
|
156
|
+
name: 'CheckInChat',
|
|
157
|
+
svgData: checkInChatIcon,
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
export const ChevronDownIcon = createIconComponent({
|
|
161
|
+
name: 'ChevronDown',
|
|
162
|
+
svgData: chevronDownIcon,
|
|
163
|
+
gradientType: GradientTypes.v3,
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
export const ChevronLeftIcon = createIconComponent({
|
|
167
|
+
name: 'ChevronLeft',
|
|
168
|
+
svgData: chevronLeftIcon,
|
|
169
|
+
gradientType: GradientTypes.v2,
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
export const ChevronRightIcon = createIconComponent({
|
|
173
|
+
name: 'ChevronRight',
|
|
174
|
+
svgData: chevronRightIcon,
|
|
175
|
+
gradientType: GradientTypes.v2,
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
export const ClockIcon = createIconComponent({
|
|
179
|
+
name: 'Clock',
|
|
180
|
+
svgData: clockIcon,
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
export const ClockBackIcon = createIconComponent({
|
|
184
|
+
name: 'ClockBack',
|
|
185
|
+
svgData: clockBackIcon,
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
export const ClockDashedIcon = createIconComponent({
|
|
189
|
+
name: 'ClockDashed',
|
|
190
|
+
svgData: clockDashedIcon,
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
export const CloseIcon = createIconComponent({
|
|
194
|
+
name: 'Close',
|
|
195
|
+
svgData: closeIcon,
|
|
196
|
+
gradientType: GradientTypes.v2,
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
export const CopyIcon = createIconComponent({
|
|
200
|
+
name: 'Copy',
|
|
201
|
+
svgData: copyIcon,
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
export const DashboardIcon = createIconComponent({
|
|
205
|
+
name: 'Dashboard',
|
|
206
|
+
svgData: dashboardIcon,
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
export const DotsIcon = createIconComponent({
|
|
210
|
+
name: 'Dots',
|
|
211
|
+
svgData: dotsIcon,
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
export const DownloadIcon = createIconComponent({
|
|
215
|
+
name: 'Download',
|
|
216
|
+
svgData: downloadIcon,
|
|
217
|
+
gradientType: GradientTypes.v2,
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
export const ExclamationIcon = createIconComponent({
|
|
221
|
+
name: 'Exclamation',
|
|
222
|
+
svgData: exclamationIcon,
|
|
223
|
+
gradientType: GradientTypes.v2,
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
export const EyeClosedIcon = createIconComponent({
|
|
227
|
+
name: 'EyeClosed',
|
|
228
|
+
svgData: eyeClosedIcon,
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
export const EyeOpenIcon = createIconComponent({
|
|
232
|
+
name: 'EyeOpen',
|
|
233
|
+
svgData: eyeOpenIcon,
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
export const FacebookIcon = createIconComponent({
|
|
237
|
+
name: 'Facebook',
|
|
238
|
+
svgData: facebookIcon,
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
export const FullScreenExitIcon = createIconComponent({
|
|
242
|
+
name: 'FullScreenExit',
|
|
243
|
+
svgData: fullScreenExitIcon,
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
export const FullScreenIcon = createIconComponent({
|
|
247
|
+
name: 'FullScreen',
|
|
248
|
+
svgData: fullScreenIcon,
|
|
249
|
+
gradientType: GradientTypes.v2,
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
export const GithubIcon = createIconComponent({
|
|
253
|
+
name: 'Github',
|
|
254
|
+
svgData: githubIcon,
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
export const GroupChatIcon = createIconComponent({
|
|
258
|
+
name: 'GroupChat',
|
|
259
|
+
svgData: groupChatIcon,
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
export const HeartIcon = createIconComponent({
|
|
263
|
+
name: 'Heart',
|
|
264
|
+
svgData: heartIcon,
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
export const ImageIcon = createIconComponent({
|
|
268
|
+
name: 'Image',
|
|
269
|
+
svgData: imageIcon,
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
export const ImageSearchIcon = createIconComponent({
|
|
273
|
+
name: 'ImageSearch',
|
|
274
|
+
svgData: imageSearchIcon,
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
export const InclusiveIcon = createIconComponent({
|
|
278
|
+
name: 'Inclusive',
|
|
279
|
+
svgData: inclusiveIcon,
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
export const InfoIcon = createIconComponent({
|
|
283
|
+
name: 'Info',
|
|
284
|
+
svgData: infoIcon,
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
export const InstagramIcon = createIconComponent({
|
|
288
|
+
name: 'Instagram',
|
|
289
|
+
svgData: instagramIcon,
|
|
290
|
+
});
|
|
291
|
+
|
|
292
|
+
export const LinkedinIcon = createIconComponent({
|
|
293
|
+
name: 'Linkedin',
|
|
294
|
+
svgData: linkedinIcon,
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
export const Logo = createIconComponent({
|
|
298
|
+
name: 'Logo',
|
|
299
|
+
svgData: logoIcon,
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
export const LogoutIcon = createIconComponent({
|
|
303
|
+
name: 'Logout',
|
|
304
|
+
svgData: logoutIcon,
|
|
305
|
+
});
|
|
306
|
+
|
|
307
|
+
export const MailIcon = createIconComponent({
|
|
308
|
+
name: 'Mail',
|
|
309
|
+
svgData: mailIcon,
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
export const MenuIcon = createIconComponent({
|
|
313
|
+
name: 'Menu',
|
|
314
|
+
svgData: menuIcon,
|
|
315
|
+
});
|
|
316
|
+
|
|
317
|
+
export const MessageIcon = createIconComponent({
|
|
318
|
+
name: 'Message',
|
|
319
|
+
svgData: messageIcon,
|
|
320
|
+
gradientType: GradientTypes.v3,
|
|
321
|
+
});
|
|
322
|
+
|
|
323
|
+
export const MessageWithQuestionIcon = createIconComponent({
|
|
324
|
+
name: 'MessageWithQuestion',
|
|
325
|
+
svgData: messageWithQuestionIcon,
|
|
326
|
+
gradientType: GradientTypes.v3,
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
export const MicIcon = createIconComponent({
|
|
330
|
+
name: 'Mic',
|
|
331
|
+
svgData: micIcon,
|
|
332
|
+
gradientType: GradientTypes.v2,
|
|
333
|
+
});
|
|
334
|
+
|
|
335
|
+
export const MoonIcon = createIconComponent({
|
|
336
|
+
name: 'Moon',
|
|
337
|
+
svgData: moonIcon,
|
|
338
|
+
});
|
|
339
|
+
|
|
340
|
+
export const MobileIcon = createIconComponent({
|
|
341
|
+
name: 'Mobile',
|
|
342
|
+
svgData: mobileIcon,
|
|
343
|
+
});
|
|
344
|
+
|
|
345
|
+
export const NotesIcon = createIconComponent({
|
|
346
|
+
name: 'Notes',
|
|
347
|
+
svgData: notesIcon,
|
|
348
|
+
});
|
|
349
|
+
|
|
350
|
+
export const PencilIcon = createIconComponent({
|
|
351
|
+
name: 'Pencil',
|
|
352
|
+
svgData: pencilIcon,
|
|
353
|
+
});
|
|
354
|
+
|
|
355
|
+
export const PhoneIcon = createIconComponent({
|
|
356
|
+
name: 'Phone',
|
|
357
|
+
svgData: phoneIcon,
|
|
358
|
+
});
|
|
359
|
+
|
|
360
|
+
export const PhoneSlashIcon = createIconComponent({
|
|
361
|
+
name: 'PhoneSlash',
|
|
362
|
+
svgData: phoneSlashIcon,
|
|
363
|
+
});
|
|
364
|
+
|
|
365
|
+
export const PlusIcon = createIconComponent({
|
|
366
|
+
name: 'Plus',
|
|
367
|
+
svgData: plusIcon,
|
|
368
|
+
});
|
|
369
|
+
|
|
370
|
+
export const ProfileIcon = createIconComponent({
|
|
371
|
+
name: 'Profile',
|
|
372
|
+
svgData: profileIcon,
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
export const ProfileChatIcon = createIconComponent({
|
|
376
|
+
name: 'ProfileChat',
|
|
377
|
+
svgData: profileChatIcon,
|
|
378
|
+
gradientType: GradientTypes.v2,
|
|
379
|
+
});
|
|
380
|
+
|
|
381
|
+
export const PuzzleIcon = createIconComponent({
|
|
382
|
+
name: 'Puzzle',
|
|
383
|
+
svgData: puzzleIcon,
|
|
384
|
+
});
|
|
385
|
+
|
|
386
|
+
export const QuestionIcon = createIconComponent({
|
|
387
|
+
name: 'Question',
|
|
388
|
+
svgData: questionIcon,
|
|
389
|
+
});
|
|
390
|
+
|
|
391
|
+
export const SendIcon = createIconComponent({
|
|
392
|
+
name: 'Send',
|
|
393
|
+
svgData: sendIcon,
|
|
394
|
+
});
|
|
395
|
+
|
|
396
|
+
export const ScreenShareIcon = createIconComponent({
|
|
397
|
+
name: 'ScreenShare',
|
|
398
|
+
svgData: shareScreenIcon,
|
|
399
|
+
});
|
|
400
|
+
|
|
401
|
+
export const SettingsIcon = createIconComponent({
|
|
402
|
+
name: 'Settings',
|
|
403
|
+
svgData: settingsIcon,
|
|
404
|
+
});
|
|
405
|
+
|
|
406
|
+
export const SpeakerIcon = createIconComponent({
|
|
407
|
+
name: 'Speaker',
|
|
408
|
+
svgData: speakerIcon,
|
|
409
|
+
});
|
|
410
|
+
|
|
411
|
+
export const StackIcon = createIconComponent({
|
|
412
|
+
name: 'Stack',
|
|
413
|
+
svgData: stackIcon,
|
|
414
|
+
gradientType: GradientTypes.v2,
|
|
415
|
+
});
|
|
416
|
+
|
|
417
|
+
export const StarIcon = createIconComponent({
|
|
418
|
+
name: 'Star',
|
|
419
|
+
svgData: starIcon,
|
|
420
|
+
});
|
|
421
|
+
|
|
422
|
+
export const SunIcon = createIconComponent({
|
|
423
|
+
name: 'Sun',
|
|
424
|
+
svgData: sunIcon,
|
|
425
|
+
});
|
|
426
|
+
|
|
427
|
+
export const SwapIcon = createIconComponent({
|
|
428
|
+
name: 'Swap',
|
|
429
|
+
svgData: swapIcon,
|
|
430
|
+
gradientType: GradientTypes.v2,
|
|
431
|
+
});
|
|
432
|
+
|
|
433
|
+
export const TelegramIcon = createIconComponent({
|
|
434
|
+
name: 'Telegram',
|
|
435
|
+
svgData: telegramIcon,
|
|
436
|
+
});
|
|
437
|
+
|
|
438
|
+
export const TickDoubleIcon = createIconComponent({
|
|
439
|
+
name: 'TickDouble',
|
|
440
|
+
svgData: tickDoubleIcon,
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
export const TickIcon = createIconComponent({
|
|
444
|
+
name: 'Tick',
|
|
445
|
+
svgData: tickIcon,
|
|
446
|
+
});
|
|
447
|
+
|
|
448
|
+
export const TiktokIcon = createIconComponent({
|
|
449
|
+
name: 'Tiktok',
|
|
450
|
+
svgData: tiktokIcon,
|
|
451
|
+
});
|
|
452
|
+
|
|
453
|
+
export const TranslatorIcon = createIconComponent({
|
|
454
|
+
name: 'Translator',
|
|
455
|
+
svgData: translatorIcon,
|
|
456
|
+
});
|
|
457
|
+
|
|
458
|
+
export const TrashIcon = createIconComponent({
|
|
459
|
+
name: 'Trash',
|
|
460
|
+
svgData: trashIcon,
|
|
461
|
+
});
|
|
462
|
+
|
|
463
|
+
export const TwitterIcon = createIconComponent({
|
|
464
|
+
name: 'Twitter',
|
|
465
|
+
svgData: twitterIcon,
|
|
466
|
+
});
|
|
467
|
+
|
|
468
|
+
export const UploadIcon = createIconComponent({
|
|
469
|
+
name: 'Upload',
|
|
470
|
+
svgData: uploadIcon,
|
|
471
|
+
gradientType: GradientTypes.v2,
|
|
472
|
+
});
|
|
473
|
+
|
|
474
|
+
export const UserDisconnectedIcon = createIconComponent({
|
|
475
|
+
name: 'UserDisconnected',
|
|
476
|
+
svgData: userDisconnectedIcon,
|
|
477
|
+
gradientType: GradientTypes.v2,
|
|
478
|
+
});
|
|
479
|
+
|
|
480
|
+
export const UserSearchIcon = createIconComponent({
|
|
481
|
+
name: 'UserSearch',
|
|
482
|
+
svgData: userSearchIcon,
|
|
483
|
+
});
|
|
484
|
+
|
|
485
|
+
export const VideoIcon = createIconComponent({
|
|
486
|
+
name: 'Video',
|
|
487
|
+
svgData: videoIcon,
|
|
488
|
+
gradientType: GradientTypes.v1,
|
|
489
|
+
});
|
|
490
|
+
|
|
491
|
+
export const WebIcon = createIconComponent({
|
|
492
|
+
name: 'Web',
|
|
493
|
+
svgData: webIcon,
|
|
494
|
+
});
|
|
495
|
+
|
|
496
|
+
export const WhatsappIcon = createIconComponent({
|
|
497
|
+
name: 'Whatsapp',
|
|
498
|
+
svgData: whatsappIcon,
|
|
499
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { ImageLabel } from '../Icon/Icon';
|
|
4
|
+
import { IllustrationProps } from '@a-little-world/little-world-design-system-core';
|
|
5
|
+
|
|
6
|
+
export const Illustration = ({
|
|
7
|
+
children,
|
|
8
|
+
label,
|
|
9
|
+
labelVisible,
|
|
10
|
+
labelTop = '56px',
|
|
11
|
+
}: IllustrationProps) => (
|
|
12
|
+
<>
|
|
13
|
+
{children}
|
|
14
|
+
<ImageLabel id={label} $visible={labelVisible} $top={labelTop}>
|
|
15
|
+
{label}
|
|
16
|
+
</ImageLabel>
|
|
17
|
+
</>
|
|
18
|
+
);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { tokensPixelated } from "@a-little-world/little-world-design-system-core";
|
|
4
|
+
import Text from "../Text/Text";
|
|
5
|
+
import * as allIllustrations from "./index";
|
|
6
|
+
import styled from "styled-components";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: "Components/Illustrations",
|
|
10
|
+
argTypes: {
|
|
11
|
+
color: { control: "color" },
|
|
12
|
+
height: { control: "text" },
|
|
13
|
+
width: { control: "text" },
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const AllVariants = (args) => (
|
|
18
|
+
<div style={{ display: "flex", flexWrap: "wrap", gap: tokensPixelated.spacing.large }}>
|
|
19
|
+
{Object.entries(allIllustrations).map(([name, Component]) => (
|
|
20
|
+
<div
|
|
21
|
+
style={{
|
|
22
|
+
display: "flex",
|
|
23
|
+
flexDirection: "column",
|
|
24
|
+
gap: tokensPixelated.spacing.xxsmall,
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
justifyContent: "center",
|
|
27
|
+
borderRadius: "8px",
|
|
28
|
+
padding: "8px",
|
|
29
|
+
width: "200px",
|
|
30
|
+
}}
|
|
31
|
+
key={name}
|
|
32
|
+
>
|
|
33
|
+
<Component key={name} {...args} />
|
|
34
|
+
<Text>{name}</Text>
|
|
35
|
+
</div>
|
|
36
|
+
))}
|
|
37
|
+
</div>
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
const StyledMatchSearching = styled(allIllustrations.MatchSearchingImage)`
|
|
41
|
+
height: 64px;
|
|
42
|
+
width: 64px;
|
|
43
|
+
background-color: red;
|
|
44
|
+
`;
|
|
45
|
+
|
|
46
|
+
export const StyledIllustration = (args) => {
|
|
47
|
+
return (
|
|
48
|
+
<div>
|
|
49
|
+
<Text>Icon should have custom styles applied: Red background and height of 64px</Text>
|
|
50
|
+
<StyledMatchSearching label="Stack Icon" />
|
|
51
|
+
</div>
|
|
52
|
+
)
|
|
53
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
import { Illustration } from './Illustration';
|
|
4
|
+
import { createReactSvg } from '../../utils/createReactSvg';
|
|
5
|
+
import { SvgFactoryOptions } from '@a-little-world/little-world-design-system-core';
|
|
6
|
+
|
|
7
|
+
export const createIllustrationComponent = ({
|
|
8
|
+
name,
|
|
9
|
+
svgData,
|
|
10
|
+
}: SvgFactoryOptions) => {
|
|
11
|
+
const Component = ({
|
|
12
|
+
className,
|
|
13
|
+
color,
|
|
14
|
+
height,
|
|
15
|
+
width,
|
|
16
|
+
label,
|
|
17
|
+
labelVisible,
|
|
18
|
+
}: SVGProps<SVGElement> & {
|
|
19
|
+
label: string;
|
|
20
|
+
labelVisible?: boolean;
|
|
21
|
+
color?: string;
|
|
22
|
+
}) => {
|
|
23
|
+
return (
|
|
24
|
+
<Illustration label={label} labelVisible={labelVisible}>
|
|
25
|
+
{createReactSvg(svgData, {
|
|
26
|
+
className,
|
|
27
|
+
label,
|
|
28
|
+
width,
|
|
29
|
+
height,
|
|
30
|
+
color,
|
|
31
|
+
})}
|
|
32
|
+
</Illustration>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
Component.displayName = `${name}Image`;
|
|
37
|
+
|
|
38
|
+
return Component;
|
|
39
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import {
|
|
2
|
+
brokenChainIllustration,
|
|
3
|
+
confettiIllustration,
|
|
4
|
+
friendshipIllustration,
|
|
5
|
+
groupHandsIllustration,
|
|
6
|
+
keyIllustration,
|
|
7
|
+
livingRoomIllustration,
|
|
8
|
+
laptopWithPhoneIllustration,
|
|
9
|
+
manOnRocketIllustration,
|
|
10
|
+
matchSearchingIllustration,
|
|
11
|
+
paperPlaneIllustration,
|
|
12
|
+
peopleTogetherIllustration,
|
|
13
|
+
questionMarksIllustration,
|
|
14
|
+
raisingMoneyIllustration,
|
|
15
|
+
teacherIllustration,
|
|
16
|
+
timeFlexibleIllustration,
|
|
17
|
+
unmatchedIllustration,
|
|
18
|
+
wavyLinesIllustration,
|
|
19
|
+
wavyBlockIllustration,
|
|
20
|
+
womanOnRocketIllustration,
|
|
21
|
+
} from '@a-little-world/little-world-design-system-core';
|
|
22
|
+
|
|
23
|
+
import { createIllustrationComponent } from './createIllustrationComponent';
|
|
24
|
+
|
|
25
|
+
export const BrokenChainImage = createIllustrationComponent({
|
|
26
|
+
name: 'BrokenChain',
|
|
27
|
+
svgData: brokenChainIllustration,
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export const ConfettiImage = createIllustrationComponent({
|
|
31
|
+
name: 'Confetti',
|
|
32
|
+
svgData: confettiIllustration,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export const FriendshipImage = createIllustrationComponent({
|
|
36
|
+
name: 'Friendship',
|
|
37
|
+
svgData: friendshipIllustration,
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export const GroupHandsImage = createIllustrationComponent({
|
|
41
|
+
name: 'GroupHands',
|
|
42
|
+
svgData: groupHandsIllustration,
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export const KeyImage = createIllustrationComponent({
|
|
46
|
+
name: 'Key',
|
|
47
|
+
svgData: keyIllustration,
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export const LivingRoomImage = createIllustrationComponent({
|
|
51
|
+
name: 'LivingRoom',
|
|
52
|
+
svgData: livingRoomIllustration,
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export const LaptopWithPhoneImage = createIllustrationComponent({
|
|
56
|
+
name: 'LaptopWithPhone',
|
|
57
|
+
svgData: laptopWithPhoneIllustration,
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export const ManOnRocketImage = createIllustrationComponent({
|
|
61
|
+
name: 'ManOnRocket',
|
|
62
|
+
svgData: manOnRocketIllustration,
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export const MatchSearchingImage = createIllustrationComponent({
|
|
66
|
+
name: 'MatchSearching',
|
|
67
|
+
svgData: matchSearchingIllustration,
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export const PaperPlaneImage = createIllustrationComponent({
|
|
71
|
+
name: 'PaperPlane',
|
|
72
|
+
svgData: paperPlaneIllustration,
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export const PeopleTogetherImage = createIllustrationComponent({
|
|
76
|
+
name: 'PeopleTogether',
|
|
77
|
+
svgData: peopleTogetherIllustration,
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
export const QuestionMarksImage = createIllustrationComponent({
|
|
81
|
+
name: 'QuestionMarks',
|
|
82
|
+
svgData: questionMarksIllustration,
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
export const RaisingMoneyImage = createIllustrationComponent({
|
|
86
|
+
name: 'RaisingMoney',
|
|
87
|
+
svgData: raisingMoneyIllustration,
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
export const TeacherImage = createIllustrationComponent({
|
|
91
|
+
name: 'Teacher',
|
|
92
|
+
svgData: teacherIllustration,
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export const TimeFlexibleImage = createIllustrationComponent({
|
|
96
|
+
name: 'TimeFlexible',
|
|
97
|
+
svgData: timeFlexibleIllustration,
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
export const UnmatchedImage = createIllustrationComponent({
|
|
101
|
+
name: 'Unmatched',
|
|
102
|
+
svgData: unmatchedIllustration,
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
export const WavyBlockImage = createIllustrationComponent({
|
|
106
|
+
name: 'WavyBlock',
|
|
107
|
+
svgData: wavyBlockIllustration,
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export const WavyLinesImage = createIllustrationComponent({
|
|
111
|
+
name: 'WavyLines',
|
|
112
|
+
svgData: wavyLinesIllustration,
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
export const WomanOnRocketImage = createIllustrationComponent({
|
|
116
|
+
name: 'WomanOnRocket',
|
|
117
|
+
svgData: womanOnRocketIllustration,
|
|
118
|
+
});
|