@mailstep/design-system 0.1.4-beta.6 → 0.1.4-beta.7
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/build/2b1ddee3e1b3cc7f.png +0 -0
- package/build/Blocks/CornerDialog/CornerDialog.js +25 -0
- package/build/Blocks/CornerDialog/CornerDialog.js.map +1 -0
- package/build/Blocks/CornerDialog/styles.js +33 -0
- package/build/Blocks/CornerDialog/styles.js.map +1 -0
- package/build/Blocks/CornerDialog/utils.js +18 -0
- package/build/Blocks/CornerDialog/utils.js.map +1 -0
- package/build/Blocks/ImageList/ImageList.js +27 -0
- package/build/Blocks/ImageList/ImageList.js.map +1 -0
- package/build/Blocks/ImageList/components/AddPhoto/index.js +34 -0
- package/build/Blocks/ImageList/components/AddPhoto/index.js.map +1 -0
- package/build/Blocks/ImageList/components/AddPhoto/styles.js +16 -0
- package/build/Blocks/ImageList/components/AddPhoto/styles.js.map +1 -0
- package/build/Blocks/ImageList/components/CloseButton/index.js +14 -0
- package/build/Blocks/ImageList/components/CloseButton/index.js.map +1 -0
- package/build/Blocks/ImageList/components/CloseButton/styles.js +14 -0
- package/build/Blocks/ImageList/components/CloseButton/styles.js.map +1 -0
- package/build/Blocks/ImageList/components/ImageElement/index.js +17 -0
- package/build/Blocks/ImageList/components/ImageElement/index.js.map +1 -0
- package/build/Blocks/ImageList/components/ImageElement/styles.js +15 -0
- package/build/Blocks/ImageList/components/ImageElement/styles.js.map +1 -0
- package/build/Blocks/ImageList/components/ImageTag/index.js +15 -0
- package/build/Blocks/ImageList/components/ImageTag/index.js.map +1 -0
- package/build/Blocks/ImageList/components/ImageTag/styles.js +14 -0
- package/build/Blocks/ImageList/components/ImageTag/styles.js.map +1 -0
- package/build/Blocks/ImageList/styles.js +14 -0
- package/build/Blocks/ImageList/styles.js.map +1 -0
- package/build/Blocks/LightBox/LightBox.js +22 -0
- package/build/Blocks/LightBox/LightBox.js.map +1 -0
- package/build/Blocks/LightBox/hooks/useLightBox.js +24 -0
- package/build/Blocks/LightBox/hooks/useLightBox.js.map +1 -0
- package/build/Blocks/LightBox/styles.js +18 -0
- package/build/Blocks/LightBox/styles.js.map +1 -0
- package/build/Blocks/Modal/Modal.js +42 -0
- package/build/Blocks/Modal/Modal.js.map +1 -0
- package/build/Blocks/Modal/hooks/useClickOutside.js +36 -0
- package/build/Blocks/Modal/hooks/useClickOutside.js.map +1 -0
- package/build/Blocks/Modal/hooks/useModal.js +21 -0
- package/build/Blocks/Modal/hooks/useModal.js.map +1 -0
- package/build/Blocks/Modal/styles.js +60 -0
- package/build/Blocks/Modal/styles.js.map +1 -0
- package/build/Blocks/Modal/utils.js +17 -0
- package/build/Blocks/Modal/utils.js.map +1 -0
- package/build/Blocks/Tabs/Tabs.js +26 -0
- package/build/Blocks/Tabs/Tabs.js.map +1 -0
- package/build/Blocks/Tabs/hooks/useTabs.js +16 -0
- package/build/Blocks/Tabs/hooks/useTabs.js.map +1 -0
- package/build/Blocks/Tabs/styles.js +26 -0
- package/build/Blocks/Tabs/styles.js.map +1 -0
- package/build/Elements/Alert/Alert.js +37 -0
- package/build/Elements/Alert/Alert.js.map +1 -0
- package/build/Elements/Alert/styles.js +47 -0
- package/build/Elements/Alert/styles.js.map +1 -0
- package/build/Elements/Avatar/Avatar.js +21 -0
- package/build/Elements/Avatar/Avatar.js.map +1 -0
- package/build/Elements/Badge/Badge.js +45 -0
- package/build/Elements/Badge/Badge.js.map +1 -0
- package/build/Elements/BorderedBox/BorderedBox.js +19 -0
- package/build/Elements/BorderedBox/BorderedBox.js.map +1 -0
- package/build/Elements/Button/Button.js +14 -0
- package/build/Elements/Button/Button.js.map +1 -0
- package/build/Elements/Button/styles.js +58 -0
- package/build/Elements/Button/styles.js.map +1 -0
- package/build/Elements/Card/Card.js +26 -0
- package/build/Elements/Card/Card.js.map +1 -0
- package/build/Elements/Card/styles.js +44 -0
- package/build/Elements/Card/styles.js.map +1 -0
- package/build/Elements/Dropdown/Dropdown.js +33 -0
- package/build/Elements/Dropdown/Dropdown.js.map +1 -0
- package/build/Elements/ErrorMessage/ErrorMessage.js +22 -0
- package/build/Elements/ErrorMessage/ErrorMessage.js.map +1 -0
- package/build/Elements/Icon/Icon.js +254 -0
- package/build/Elements/Icon/Icon.js.map +1 -0
- package/build/Elements/Icon/icons/FlagCZ.js +9 -0
- package/build/Elements/Icon/icons/FlagCZ.js.map +1 -0
- package/build/Elements/Icon/icons/FlagUSA.js +9 -0
- package/build/Elements/Icon/icons/FlagUSA.js.map +1 -0
- package/build/Elements/Image/Image.js +21 -0
- package/build/Elements/Image/Image.js.map +1 -0
- package/build/Elements/Label/Label.js +24 -0
- package/build/Elements/Label/Label.js.map +1 -0
- package/build/Elements/Line/Line.js +31 -0
- package/build/Elements/Line/Line.js.map +1 -0
- package/build/Elements/Link/Link.js +51 -0
- package/build/Elements/Link/Link.js.map +1 -0
- package/build/Elements/Logo/Logo.js +68 -0
- package/build/Elements/Logo/Logo.js.map +1 -0
- package/build/Elements/Logo/assets/mailship/logo_black.png.js +6 -0
- package/build/Elements/Logo/assets/mailship/logo_black.png.js.map +1 -0
- package/build/Elements/Logo/assets/mailship/logo_m.png.js +6 -0
- package/build/Elements/Logo/assets/mailship/logo_m.png.js.map +1 -0
- package/build/Elements/Logo/assets/mailship/logo_white.png.js +6 -0
- package/build/Elements/Logo/assets/mailship/logo_white.png.js.map +1 -0
- package/build/Elements/Logo/assets/mailship/mailship-logo.svg.js +8 -0
- package/build/Elements/Logo/assets/mailship/mailship-logo.svg.js.map +1 -0
- package/build/Elements/Logo/assets/mailstep/mailstep_black.svg.js +8 -0
- package/build/Elements/Logo/assets/mailstep/mailstep_black.svg.js.map +1 -0
- package/build/Elements/Logo/assets/mailstep/mailstep_white.svg.js +8 -0
- package/build/Elements/Logo/assets/mailstep/mailstep_white.svg.js.map +1 -0
- package/build/Elements/Logo/assets/mailstock/mailstock.svg.js +8 -0
- package/build/Elements/Logo/assets/mailstock/mailstock.svg.js.map +1 -0
- package/build/Elements/Logo/assets/mailwise/mailwiseLogo.svg.js +8 -0
- package/build/Elements/Logo/assets/mailwise/mailwiseLogo.svg.js.map +1 -0
- package/build/Elements/Logo/assets/mailwise/mailwiseLogoSmall.svg.js +8 -0
- package/build/Elements/Logo/assets/mailwise/mailwiseLogoSmall.svg.js.map +1 -0
- package/build/Elements/Logo/assets/mailwrap/mailwrapLogo.svg.js +8 -0
- package/build/Elements/Logo/assets/mailwrap/mailwrapLogo.svg.js.map +1 -0
- package/build/Elements/Pagination/Pagination.js +40 -0
- package/build/Elements/Pagination/Pagination.js.map +1 -0
- package/build/Elements/Pagination/styled.js +38 -0
- package/build/Elements/Pagination/styled.js.map +1 -0
- package/build/Elements/Paragraph/Paragraph.js +8 -0
- package/build/Elements/Paragraph/Paragraph.js.map +1 -0
- package/build/Elements/Portal/index.js +23 -0
- package/build/Elements/Portal/index.js.map +1 -0
- package/build/Elements/ProgressBar/ProgressBar.js +14 -0
- package/build/Elements/ProgressBar/ProgressBar.js.map +1 -0
- package/build/Elements/ProgressBar/styles.js +28 -0
- package/build/Elements/ProgressBar/styles.js.map +1 -0
- package/build/Elements/SimpleLink/SimpleLink.js +23 -0
- package/build/Elements/SimpleLink/SimpleLink.js.map +1 -0
- package/build/Elements/SpaceAround/SpaceAround.js +37 -0
- package/build/Elements/SpaceAround/SpaceAround.js.map +1 -0
- package/build/Elements/Spinner/Spinner.js +27 -0
- package/build/Elements/Spinner/Spinner.js.map +1 -0
- package/build/Elements/Spinner/styles.js +28 -0
- package/build/Elements/Spinner/styles.js.map +1 -0
- package/build/Elements/Tag/Tag.js +68 -0
- package/build/Elements/Tag/Tag.js.map +1 -0
- package/build/Elements/Tag/palletes.js +15 -0
- package/build/Elements/Tag/palletes.js.map +1 -0
- package/build/Elements/Text/Text.js +10 -0
- package/build/Elements/Text/Text.js.map +1 -0
- package/build/Elements/Toast/Toast.js +29 -0
- package/build/Elements/Toast/Toast.js.map +1 -0
- package/build/Elements/Toggle/Toggle.js +36 -0
- package/build/Elements/Toggle/Toggle.js.map +1 -0
- package/build/Elements/Typography/Typography.js +49 -0
- package/build/Elements/Typography/Typography.js.map +1 -0
- package/build/Forms/Checkbox/Checkbox.js +17 -0
- package/build/Forms/Checkbox/Checkbox.js.map +1 -0
- package/build/Forms/Checkbox/styles.js +37 -0
- package/build/Forms/Checkbox/styles.js.map +1 -0
- package/build/Forms/Input/Input.js +45 -0
- package/build/Forms/Input/Input.js.map +1 -0
- package/build/Forms/Input/styles.js +71 -0
- package/build/Forms/Input/styles.js.map +1 -0
- package/build/Forms/RadioButton/RadioButton.js +13 -0
- package/build/Forms/RadioButton/RadioButton.js.map +1 -0
- package/build/Forms/RadioButton/styles.js +27 -0
- package/build/Forms/RadioButton/styles.js.map +1 -0
- package/build/ThemeProvider/ThemeProvider.js +13 -0
- package/build/ThemeProvider/ThemeProvider.js.map +1 -0
- package/build/ThemeProvider/themes/default.js +147 -0
- package/build/ThemeProvider/themes/default.js.map +1 -0
- package/build/ThemeProvider/themes/index.js +14 -0
- package/build/ThemeProvider/themes/index.js.map +1 -0
- package/build/ThemeProvider/themes/light.js +11 -0
- package/build/ThemeProvider/themes/light.js.map +1 -0
- package/build/ThemeProvider/themes/mailwise.js +218 -0
- package/build/ThemeProvider/themes/mailwise.js.map +1 -0
- package/build/ba2267d1dea00b65.png +0 -0
- package/build/dts/Blocks/CornerDialog/CornerDialog.d.ts +3 -0
- package/build/dts/Blocks/CornerDialog/index.d.ts +2 -0
- package/build/dts/Blocks/CornerDialog/stories/CornerDialog.stories.d.ts +14 -0
- package/build/dts/Blocks/CornerDialog/styles.d.ts +12 -0
- package/build/dts/Blocks/CornerDialog/types.d.ts +16 -0
- package/build/dts/Blocks/CornerDialog/utils.d.ts +3 -0
- package/build/dts/Blocks/ImageList/ImageList.d.ts +3 -0
- package/build/dts/Blocks/ImageList/components/AddPhoto/index.d.ts +7 -0
- package/build/dts/Blocks/ImageList/components/AddPhoto/styles.d.ts +2 -0
- package/build/dts/Blocks/ImageList/components/CloseButton/index.d.ts +6 -0
- package/build/dts/Blocks/ImageList/components/CloseButton/styles.d.ts +1 -0
- package/build/dts/Blocks/ImageList/components/ImageElement/index.d.ts +9 -0
- package/build/dts/Blocks/ImageList/components/ImageElement/styles.d.ts +2 -0
- package/build/dts/Blocks/ImageList/components/ImageTag/index.d.ts +6 -0
- package/build/dts/Blocks/ImageList/components/ImageTag/styles.d.ts +1 -0
- package/build/dts/Blocks/ImageList/index.d.ts +4 -0
- package/build/dts/Blocks/ImageList/styles.d.ts +1 -0
- package/build/dts/Blocks/ImageList/types.d.ts +12 -0
- package/build/dts/Blocks/LightBox/LightBox.d.ts +4 -0
- package/build/dts/Blocks/LightBox/hooks/useLightBox.d.ts +2 -0
- package/build/dts/Blocks/LightBox/index.d.ts +3 -0
- package/build/dts/Blocks/LightBox/styles.d.ts +3 -0
- package/build/dts/Blocks/LightBox/types.d.ts +24 -0
- package/build/dts/Blocks/Modal/Modal.d.ts +3 -0
- package/build/dts/Blocks/Modal/hooks/useClickOutside.d.ts +3 -0
- package/build/dts/Blocks/Modal/hooks/useModal.d.ts +2 -0
- package/build/dts/Blocks/Modal/index.d.ts +4 -0
- package/build/dts/Blocks/Modal/stories/Modal.stories.d.ts +26 -0
- package/build/dts/Blocks/Modal/styles.d.ts +22 -0
- package/build/dts/Blocks/Modal/types.d.ts +45 -0
- package/build/dts/Blocks/Modal/utils.d.ts +3 -0
- package/build/dts/Blocks/Tabs/TabContent.d.ts +2 -0
- package/build/dts/Blocks/Tabs/Tabs.d.ts +3 -0
- package/build/dts/Blocks/Tabs/hooks/useTabs.d.ts +2 -0
- package/build/dts/Blocks/Tabs/index.d.ts +3 -0
- package/build/dts/Blocks/Tabs/stories/Tabs.stories.d.ts +13 -0
- package/build/dts/Blocks/Tabs/styles.d.ts +8 -0
- package/build/dts/Blocks/Tabs/types.d.ts +27 -0
- package/build/dts/Elements/Alert/Alert.d.ts +3 -0
- package/build/dts/Elements/Alert/index.d.ts +2 -0
- package/build/dts/Elements/Alert/stories/Alert.stories.d.ts +17 -0
- package/build/dts/Elements/Alert/styles.d.ts +44 -0
- package/build/dts/Elements/Alert/types.d.ts +18 -0
- package/build/dts/Elements/Avatar/Avatar.d.ts +3 -0
- package/build/dts/Elements/Avatar/index.d.ts +1 -0
- package/build/dts/Elements/Avatar/stories/Avatar.stories.d.ts +12 -0
- package/build/dts/Elements/Avatar/types.d.ts +8 -0
- package/build/dts/Elements/Badge/Badge.d.ts +12 -0
- package/build/dts/Elements/Badge/index.d.ts +2 -0
- package/build/dts/Elements/Badge/stories/Badge.stories.d.ts +12 -0
- package/build/dts/Elements/BorderedBox/BorderedBox.d.ts +4 -0
- package/build/dts/Elements/BorderedBox/index.d.ts +2 -0
- package/build/dts/Elements/BorderedBox/stories/BorderedBox.stories.d.ts +11 -0
- package/build/dts/Elements/BorderedBox/types.d.ts +6 -0
- package/build/dts/Elements/Button/Button.d.ts +4 -0
- package/build/dts/Elements/Button/index.d.ts +4 -0
- package/build/dts/Elements/Button/stories/Button.stories.d.ts +20 -0
- package/build/dts/Elements/Button/styles.d.ts +19 -0
- package/build/dts/Elements/Button/types.d.ts +22 -0
- package/build/dts/Elements/Card/Card.d.ts +7 -0
- package/build/dts/Elements/Card/index.d.ts +1 -0
- package/build/dts/Elements/Card/stories/Card.stories.d.ts +16 -0
- package/build/dts/Elements/Card/stories/CardComponent.stories.d.ts +12 -0
- package/build/dts/Elements/Card/styles.d.ts +14 -0
- package/build/dts/Elements/Card/types.d.ts +21 -0
- package/build/dts/Elements/Dropdown/Dropdown.d.ts +4 -0
- package/build/dts/Elements/Dropdown/index.d.ts +2 -0
- package/build/dts/Elements/Dropdown/stories/Dropdown.stories.d.ts +11 -0
- package/build/dts/Elements/Dropdown/types.d.ts +10 -0
- package/build/dts/Elements/ErrorMessage/ErrorMessage.d.ts +4 -0
- package/build/dts/Elements/ErrorMessage/index.d.ts +2 -0
- package/build/dts/Elements/ErrorMessage/stories/ErrorMessage.stories.d.ts +12 -0
- package/build/dts/Elements/ErrorMessage/types.d.ts +5 -0
- package/build/dts/Elements/Icon/BadgeIcon.d.ts +7 -0
- package/build/dts/Elements/Icon/Icon.d.ts +9 -0
- package/build/dts/Elements/Icon/icons/FlagCZ.d.ts +3 -0
- package/build/dts/Elements/Icon/icons/FlagUSA.d.ts +3 -0
- package/build/dts/Elements/Icon/icons/index.d.ts +2 -0
- package/build/dts/Elements/Icon/index.d.ts +5 -0
- package/build/dts/Elements/Icon/stories/BadgeIcon.stories.d.ts +24 -0
- package/build/dts/Elements/Icon/stories/Icon.stories.d.ts +16 -0
- package/build/dts/Elements/Icon/types.d.ts +22 -0
- package/build/dts/Elements/Image/Image.d.ts +4 -0
- package/build/dts/Elements/Image/index.d.ts +2 -0
- package/build/dts/Elements/Image/stories/Image.stories.d.ts +14 -0
- package/build/dts/Elements/Image/types.d.ts +18 -0
- package/build/dts/Elements/Label/Label.d.ts +6 -0
- package/build/dts/Elements/Label/index.d.ts +1 -0
- package/build/dts/Elements/Label/stories/Label.stories.d.ts +13 -0
- package/build/dts/Elements/Line/Line.d.ts +3 -0
- package/build/dts/Elements/Line/index.d.ts +2 -0
- package/build/dts/Elements/Line/stories/Line.stories.d.ts +16 -0
- package/build/dts/Elements/Line/types.d.ts +12 -0
- package/build/dts/Elements/Link/Link.d.ts +29 -0
- package/build/dts/Elements/Link/index.d.ts +2 -0
- package/build/dts/Elements/Link/stories/Link.stories.d.ts +42 -0
- package/build/dts/Elements/Logo/Logo.d.ts +4 -0
- package/build/dts/Elements/Logo/index.d.ts +2 -0
- package/build/dts/Elements/Logo/stories/Logo.stories.d.ts +34 -0
- package/build/dts/Elements/Logo/types.d.ts +10 -0
- package/build/dts/Elements/Pagination/Pagination.d.ts +9 -0
- package/build/dts/Elements/Pagination/index.d.ts +2 -0
- package/build/dts/Elements/Pagination/stories/Pagination.stories.d.ts +12 -0
- package/build/dts/Elements/Pagination/styled.d.ts +15 -0
- package/build/dts/Elements/Paragraph/Paragraph.d.ts +2 -0
- package/build/dts/Elements/Paragraph/index.d.ts +2 -0
- package/build/dts/Elements/Paragraph/stories/Paragraph.stories.d.ts +17 -0
- package/build/dts/Elements/Portal/index.d.ts +4 -0
- package/build/dts/Elements/ProgressBar/ProgressBar.d.ts +10 -0
- package/build/dts/Elements/ProgressBar/index.d.ts +2 -0
- package/build/dts/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +19 -0
- package/build/dts/Elements/ProgressBar/styles.d.ts +9 -0
- package/build/dts/Elements/SimpleLink/SimpleLink.d.ts +19 -0
- package/build/dts/Elements/SimpleLink/index.d.ts +2 -0
- package/build/dts/Elements/SpaceAround/SpaceAround.d.ts +4 -0
- package/build/dts/Elements/SpaceAround/index.d.ts +3 -0
- package/build/dts/Elements/SpaceAround/stories/SpaceAround.stories.d.ts +12 -0
- package/build/dts/Elements/SpaceAround/types.d.ts +14 -0
- package/build/dts/Elements/Spinner/Spinner.d.ts +14 -0
- package/build/dts/Elements/Spinner/index.d.ts +2 -0
- package/build/dts/Elements/Spinner/stories/Spinner.stories.d.ts +19 -0
- package/build/dts/Elements/Spinner/styles.d.ts +4 -0
- package/build/dts/Elements/Spinner/types.d.ts +7 -0
- package/build/dts/Elements/Tag/Tag.d.ts +3 -0
- package/build/dts/Elements/Tag/index.d.ts +3 -0
- package/build/dts/Elements/Tag/palletes.d.ts +5 -0
- package/build/dts/Elements/Tag/stories/Tag.stories.d.ts +19 -0
- package/build/dts/Elements/Tag/stories/components/predefinedTags.d.ts +3 -0
- package/build/dts/Elements/Tag/types.d.ts +16 -0
- package/build/dts/Elements/Text/Text.d.ts +4 -0
- package/build/dts/Elements/Text/index.d.ts +3 -0
- package/build/dts/Elements/Text/stories/Text.stories.d.ts +16 -0
- package/build/dts/Elements/Text/types.d.ts +13 -0
- package/build/dts/Elements/Toast/Toast.d.ts +12 -0
- package/build/dts/Elements/Toast/index.d.ts +3 -0
- package/build/dts/Elements/Toggle/Toggle.d.ts +4 -0
- package/build/dts/Elements/Toggle/index.d.ts +2 -0
- package/build/dts/Elements/Toggle/stories/Toggle.stories.d.ts +14 -0
- package/build/dts/Elements/Toggle/types.d.ts +21 -0
- package/build/dts/Elements/Typography/Typography.d.ts +118 -0
- package/build/dts/Elements/Typography/index.d.ts +1 -0
- package/build/dts/Elements/Typography/stories/Typography.stories.d.ts +20 -0
- package/build/dts/Forms/Checkbox/Checkbox.d.ts +4 -0
- package/build/dts/Forms/Checkbox/index.d.ts +2 -0
- package/build/dts/Forms/Checkbox/stories/Checkbox.stories.d.ts +14 -0
- package/build/dts/Forms/Checkbox/styles.d.ts +11 -0
- package/build/dts/Forms/Checkbox/types.d.ts +16 -0
- package/build/dts/Forms/Input/Input.d.ts +3 -0
- package/build/dts/Forms/Input/index.d.ts +4 -0
- package/build/dts/Forms/Input/stories/Input.stories.d.ts +17 -0
- package/build/dts/Forms/Input/styles.d.ts +31 -0
- package/build/dts/Forms/Input/types.d.ts +49 -0
- package/build/dts/Forms/RadioButton/RadioButton.d.ts +4 -0
- package/build/dts/Forms/RadioButton/index.d.ts +2 -0
- package/build/dts/Forms/RadioButton/stories/RadioButton.stories.d.ts +14 -0
- package/build/dts/Forms/RadioButton/styles.d.ts +10 -0
- package/build/dts/Forms/RadioButton/types.d.ts +12 -0
- package/build/dts/ThemeProvider/ThemeProvider.d.ts +3 -0
- package/build/dts/ThemeProvider/index.d.ts +5 -0
- package/build/dts/ThemeProvider/themes/default.d.ts +141 -0
- package/build/dts/ThemeProvider/themes/index.d.ts +350 -0
- package/build/dts/ThemeProvider/themes/light.d.ts +3 -0
- package/build/dts/ThemeProvider/themes/mailwise.d.ts +207 -0
- package/build/dts/ThemeProvider/types.d.ts +50 -0
- package/build/dts/index.d.ts +35 -0
- package/build/dts/utils/CreateRgba/createRgba.d.ts +3 -0
- package/build/dts/utils/CreateRgba/types.d.ts +1 -0
- package/build/dts/utils/KeyPress/KeyPress.d.ts +3 -0
- package/build/dts/utils/KeyPress/KeyPress.stories.d.ts +10 -0
- package/build/dts/utils/KeyPress/index.d.ts +2 -0
- package/build/dts/utils/KeyPress/types.d.ts +6 -0
- package/build/dts/utils/index.d.ts +3 -0
- package/build/index.js +110 -0
- package/build/index.js.map +1 -0
- package/build/utils/CreateRgba/createRgba.js +30 -0
- package/build/utils/CreateRgba/createRgba.js.map +1 -0
- package/build/utils/KeyPress/KeyPress.js +22 -0
- package/build/utils/KeyPress/KeyPress.js.map +1 -0
- package/build/utils/KeyPress/index.js +8 -0
- package/build/utils/KeyPress/index.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type Color = {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
export type Theme = {
|
|
6
|
+
breakpoints?: {
|
|
7
|
+
xs: number;
|
|
8
|
+
sm: number;
|
|
9
|
+
md: number;
|
|
10
|
+
lg: number;
|
|
11
|
+
xl: number;
|
|
12
|
+
};
|
|
13
|
+
colors?: {
|
|
14
|
+
[key: string]: string | Color;
|
|
15
|
+
};
|
|
16
|
+
fonts?: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
fontLinks?: string[];
|
|
20
|
+
fontSizes?: string[];
|
|
21
|
+
fontWeights?: {
|
|
22
|
+
[key: string]: number | null;
|
|
23
|
+
};
|
|
24
|
+
letterSpacings?: {
|
|
25
|
+
[key: string]: string | null;
|
|
26
|
+
};
|
|
27
|
+
borders?: {
|
|
28
|
+
[key: string]: string;
|
|
29
|
+
};
|
|
30
|
+
radii?: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
shadows?: {
|
|
34
|
+
[key: string]: string;
|
|
35
|
+
};
|
|
36
|
+
spaces?: number[];
|
|
37
|
+
lineHeights?: number[];
|
|
38
|
+
transitions?: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
zIndices?: number[];
|
|
42
|
+
};
|
|
43
|
+
export type Themes = {
|
|
44
|
+
[key: string]: Theme;
|
|
45
|
+
};
|
|
46
|
+
export interface Props {
|
|
47
|
+
children: React.ReactNode;
|
|
48
|
+
theme: 'default' | 'light' | 'mailwise';
|
|
49
|
+
preflight?: boolean;
|
|
50
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export * from './Blocks/CornerDialog';
|
|
2
|
+
export * from './Blocks/ImageList';
|
|
3
|
+
export * from './Blocks/LightBox';
|
|
4
|
+
export * from './Blocks/Modal';
|
|
5
|
+
export * from './Blocks/Tabs';
|
|
6
|
+
export * from './Elements/Alert';
|
|
7
|
+
export * from './Elements/Avatar';
|
|
8
|
+
export * from './Elements/Badge';
|
|
9
|
+
export * from './Elements/BorderedBox';
|
|
10
|
+
export * from './Elements/Button';
|
|
11
|
+
export * from './Elements/Card';
|
|
12
|
+
export * from './Elements/Dropdown';
|
|
13
|
+
export * from './Elements/ErrorMessage';
|
|
14
|
+
export * from './Elements/Icon';
|
|
15
|
+
export * from './Elements/Image';
|
|
16
|
+
export * from './Elements/Label';
|
|
17
|
+
export * from './Elements/Line';
|
|
18
|
+
export * from './Elements/Link';
|
|
19
|
+
export * from './Elements/Logo';
|
|
20
|
+
export * from './Elements/Pagination';
|
|
21
|
+
export * from './Elements/Paragraph';
|
|
22
|
+
export * from './Elements/Portal';
|
|
23
|
+
export * from './Elements/ProgressBar';
|
|
24
|
+
export * from './Elements/SimpleLink';
|
|
25
|
+
export * from './Elements/SpaceAround';
|
|
26
|
+
export * from './Elements/Spinner';
|
|
27
|
+
export * from './Elements/Tag';
|
|
28
|
+
export * from './Elements/Toast';
|
|
29
|
+
export * from './Elements/Toggle';
|
|
30
|
+
export * from './Elements/Typography';
|
|
31
|
+
export * from './Forms/Checkbox';
|
|
32
|
+
export * from './Forms/Input';
|
|
33
|
+
export * from './Forms/RadioButton';
|
|
34
|
+
export * from './ThemeProvider';
|
|
35
|
+
export * from './utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CreateRgba = (color: string, alpha: number) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("./types").KeyPress;
|
|
5
|
+
tags: string[];
|
|
6
|
+
argTypes: {};
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Default: Story;
|
package/build/index.js
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var CornerDialog = require('./Blocks/CornerDialog/CornerDialog.js');
|
|
4
|
+
var ImageList = require('./Blocks/ImageList/ImageList.js');
|
|
5
|
+
var LightBox = require('./Blocks/LightBox/LightBox.js');
|
|
6
|
+
var useLightBox = require('./Blocks/LightBox/hooks/useLightBox.js');
|
|
7
|
+
var Modal = require('./Blocks/Modal/Modal.js');
|
|
8
|
+
var useModal = require('./Blocks/Modal/hooks/useModal.js');
|
|
9
|
+
var useClickOutside = require('./Blocks/Modal/hooks/useClickOutside.js');
|
|
10
|
+
var Tabs = require('./Blocks/Tabs/Tabs.js');
|
|
11
|
+
var useTabs = require('./Blocks/Tabs/hooks/useTabs.js');
|
|
12
|
+
var Alert = require('./Elements/Alert/Alert.js');
|
|
13
|
+
var Avatar = require('./Elements/Avatar/Avatar.js');
|
|
14
|
+
var Badge = require('./Elements/Badge/Badge.js');
|
|
15
|
+
var BorderedBox = require('./Elements/BorderedBox/BorderedBox.js');
|
|
16
|
+
var Button = require('./Elements/Button/Button.js');
|
|
17
|
+
var Card = require('./Elements/Card/Card.js');
|
|
18
|
+
var Dropdown = require('./Elements/Dropdown/Dropdown.js');
|
|
19
|
+
var ErrorMessage = require('./Elements/ErrorMessage/ErrorMessage.js');
|
|
20
|
+
var Icon = require('./Elements/Icon/Icon.js');
|
|
21
|
+
var FlagUSA = require('./Elements/Icon/icons/FlagUSA.js');
|
|
22
|
+
var FlagCZ = require('./Elements/Icon/icons/FlagCZ.js');
|
|
23
|
+
var Image = require('./Elements/Image/Image.js');
|
|
24
|
+
var Label = require('./Elements/Label/Label.js');
|
|
25
|
+
var Line = require('./Elements/Line/Line.js');
|
|
26
|
+
var Link = require('./Elements/Link/Link.js');
|
|
27
|
+
var Logo = require('./Elements/Logo/Logo.js');
|
|
28
|
+
var Pagination = require('./Elements/Pagination/Pagination.js');
|
|
29
|
+
var Paragraph = require('./Elements/Paragraph/Paragraph.js');
|
|
30
|
+
var index = require('./Elements/Portal/index.js');
|
|
31
|
+
var ProgressBar = require('./Elements/ProgressBar/ProgressBar.js');
|
|
32
|
+
var SimpleLink = require('./Elements/SimpleLink/SimpleLink.js');
|
|
33
|
+
var SpaceAround = require('./Elements/SpaceAround/SpaceAround.js');
|
|
34
|
+
var Spinner = require('./Elements/Spinner/Spinner.js');
|
|
35
|
+
var Tag = require('./Elements/Tag/Tag.js');
|
|
36
|
+
var palletes = require('./Elements/Tag/palletes.js');
|
|
37
|
+
var Toast = require('./Elements/Toast/Toast.js');
|
|
38
|
+
var Toggle = require('./Elements/Toggle/Toggle.js');
|
|
39
|
+
var Typography = require('./Elements/Typography/Typography.js');
|
|
40
|
+
var Checkbox = require('./Forms/Checkbox/Checkbox.js');
|
|
41
|
+
var Input = require('./Forms/Input/Input.js');
|
|
42
|
+
var RadioButton = require('./Forms/RadioButton/RadioButton.js');
|
|
43
|
+
var ThemeProvider = require('./ThemeProvider/ThemeProvider.js');
|
|
44
|
+
var index$1 = require('./ThemeProvider/themes/index.js');
|
|
45
|
+
var createRgba = require('./utils/CreateRgba/createRgba.js');
|
|
46
|
+
var KeyPress = require('./utils/KeyPress/KeyPress.js');
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
exports.CornerDialog = CornerDialog.CornerDialog;
|
|
51
|
+
exports.ImageList = ImageList.ImageList;
|
|
52
|
+
exports.LightBox = LightBox.LightBox;
|
|
53
|
+
exports.useLightBox = useLightBox.useLightBox;
|
|
54
|
+
exports.Modal = Modal.Modal;
|
|
55
|
+
exports.useModal = useModal.useModal;
|
|
56
|
+
exports.useClickOutside = useClickOutside.useClickOutside;
|
|
57
|
+
exports.Tabs = Tabs.Tabs;
|
|
58
|
+
exports.useTabs = useTabs.useTabs;
|
|
59
|
+
exports.Alert = Alert;
|
|
60
|
+
exports.Avatar = Avatar.Avatar;
|
|
61
|
+
exports.Badge = Badge;
|
|
62
|
+
exports.BorderedBox = BorderedBox;
|
|
63
|
+
exports.Button = Button;
|
|
64
|
+
exports.Card = Card.Card;
|
|
65
|
+
exports.CardBody = Card.CardBody;
|
|
66
|
+
exports.CardImage = Card.CardImage;
|
|
67
|
+
exports.Dropdown = Dropdown;
|
|
68
|
+
exports.ErrorMessage = ErrorMessage;
|
|
69
|
+
exports.Icon = Icon.default;
|
|
70
|
+
exports.iconDictionary = Icon.iconDictionary;
|
|
71
|
+
exports.FlagUSA = FlagUSA.FlagUSA;
|
|
72
|
+
exports.FlagCZ = FlagCZ.FlagCZ;
|
|
73
|
+
exports.Image = Image;
|
|
74
|
+
exports.FieldLabel = Label.FieldLabel;
|
|
75
|
+
exports.Label = Label.Label;
|
|
76
|
+
exports.Line = Line;
|
|
77
|
+
exports.Link = Link;
|
|
78
|
+
exports.Logo = Logo;
|
|
79
|
+
exports.Pagination = Pagination;
|
|
80
|
+
exports.Paragraph = Paragraph;
|
|
81
|
+
exports.Portal = index.Portal;
|
|
82
|
+
exports.ProgressBar = ProgressBar;
|
|
83
|
+
exports.SimpleLink = SimpleLink;
|
|
84
|
+
exports.SpaceAroundWrap = SpaceAround;
|
|
85
|
+
exports.Spinner = Spinner.Spinner;
|
|
86
|
+
exports.Tag = Tag.Tag;
|
|
87
|
+
exports.palletes = palletes.palletes;
|
|
88
|
+
exports.Toast = Toast;
|
|
89
|
+
exports.Toggle = Toggle;
|
|
90
|
+
exports.H1 = Typography.H1;
|
|
91
|
+
exports.H2 = Typography.H2;
|
|
92
|
+
exports.H3 = Typography.H3;
|
|
93
|
+
exports.H4 = Typography.H4;
|
|
94
|
+
exports.H5 = Typography.H5;
|
|
95
|
+
exports.H6 = Typography.H6;
|
|
96
|
+
exports.H7 = Typography.H7;
|
|
97
|
+
exports.Paragraph1 = Typography.Paragraph1;
|
|
98
|
+
exports.Paragraph2 = Typography.Paragraph2;
|
|
99
|
+
exports.Paragraph3 = Typography.Paragraph3;
|
|
100
|
+
exports.Paragraph4 = Typography.Paragraph4;
|
|
101
|
+
exports.Paragraph5 = Typography.Paragraph5;
|
|
102
|
+
exports.Text = Typography.Text;
|
|
103
|
+
exports.Checkbox = Checkbox;
|
|
104
|
+
exports.Input = Input.Input;
|
|
105
|
+
exports.RadioButton = RadioButton;
|
|
106
|
+
exports.ThemeProvider = ThemeProvider;
|
|
107
|
+
exports.themes = index$1;
|
|
108
|
+
exports.createRgba = createRgba.createRgba;
|
|
109
|
+
exports.KeyPress = KeyPress;
|
|
110
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('react/jsx-runtime');
|
|
6
|
+
require('@xstyled/styled-components');
|
|
7
|
+
var index = require('../../ThemeProvider/themes/index.js');
|
|
8
|
+
var getOr = require('lodash/fp/getOr');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
|
+
|
|
12
|
+
var getOr__default = /*#__PURE__*/_interopDefaultCompat(getOr);
|
|
13
|
+
|
|
14
|
+
var createRgba = function (color, alpha) {
|
|
15
|
+
color = getOr__default.default(false, "colors[".concat(color, "]"), index.default) || color;
|
|
16
|
+
if (/^rgb/.test(color)) {
|
|
17
|
+
return "rgba(".concat(color.substring(color.indexOf('(') + 1, color.length - 1), ", ").concat(alpha, ")");
|
|
18
|
+
}
|
|
19
|
+
if (/^#/.test(color)) {
|
|
20
|
+
var r = parseInt("0x".concat(color.substr(1, 2)));
|
|
21
|
+
var g = parseInt("0x".concat(color.substr(3, 2)));
|
|
22
|
+
var b = parseInt("0x".concat(color.substr(5, 2)));
|
|
23
|
+
return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(alpha, ")");
|
|
24
|
+
}
|
|
25
|
+
return color;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
exports.createRgba = createRgba;
|
|
29
|
+
exports.default = createRgba;
|
|
30
|
+
//# sourceMappingURL=createRgba.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createRgba.js","sources":["../../../packages/ui/utils/CreateRgba/createRgba.ts"],"sourcesContent":["import { themes } from '../../ThemeProvider';\nimport getOr from 'lodash/fp/getOr';\nexport var createRgba = function (color, alpha) {\n color = getOr(false, \"colors[\".concat(color, \"]\"), themes.default) || color;\n if (/^rgb/.test(color)) {\n return \"rgba(\".concat(color.substring(color.indexOf('(') + 1, color.length - 1), \", \").concat(alpha, \")\");\n }\n if (/^#/.test(color)) {\n var r = parseInt(\"0x\".concat(color.substr(1, 2)));\n var g = parseInt(\"0x\".concat(color.substr(3, 2)));\n var b = parseInt(\"0x\".concat(color.substr(5, 2)));\n return \"rgba(\".concat(r, \", \").concat(g, \", \").concat(b, \", \").concat(alpha, \")\");\n }\n return color;\n};\nexport default createRgba;\n//# sourceMappingURL=createRgba.js.map"],"names":["getOr","themes"],"mappings":";;;;;;;;;;;;;AAEU,IAAC,UAAU,GAAG,UAAU,KAAK,EAAE,KAAK,EAAE;AAChD,IAAI,KAAK,GAAGA,sBAAK,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,EAAEC,KAAM,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC;AAChF,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;AAC5B,QAAQ,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAClH,KAAK;AACL,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;AAC1B,QAAQ,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1D,QAAQ,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1D,QAAQ,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1D,QAAQ,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAC1F,KAAK;AACL,IAAI,OAAO,KAAK,CAAC;AACjB;;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
|
|
5
|
+
var OnKeyPress = function (_a) {
|
|
6
|
+
var action = _a.action, keyCode = _a.keyCode;
|
|
7
|
+
var testKeyCode = React.useCallback(function (event) {
|
|
8
|
+
if (event.keyCode === keyCode) {
|
|
9
|
+
action();
|
|
10
|
+
}
|
|
11
|
+
}, [keyCode, action]);
|
|
12
|
+
React.useEffect(function () {
|
|
13
|
+
document.addEventListener('keydown', testKeyCode, false);
|
|
14
|
+
return function () {
|
|
15
|
+
document.removeEventListener('keydown', testKeyCode, false);
|
|
16
|
+
};
|
|
17
|
+
}, [testKeyCode]);
|
|
18
|
+
return null;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
module.exports = OnKeyPress;
|
|
22
|
+
//# sourceMappingURL=KeyPress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyPress.js","sources":["../../../packages/ui/utils/KeyPress/KeyPress.tsx"],"sourcesContent":["import { useEffect, useCallback } from 'react';\nvar OnKeyPress = function (_a) {\n var action = _a.action, keyCode = _a.keyCode;\n var testKeyCode = useCallback(function (event) {\n if (event.keyCode === keyCode) {\n action();\n }\n }, [keyCode, action]);\n useEffect(function () {\n document.addEventListener('keydown', testKeyCode, false);\n return function () {\n document.removeEventListener('keydown', testKeyCode, false);\n };\n }, [testKeyCode]);\n return null;\n};\nexport default OnKeyPress;\n//# sourceMappingURL=KeyPress.js.map"],"names":["useCallback","useEffect"],"mappings":";;;;AACG,IAAC,UAAU,GAAG,UAAU,EAAE,EAAE;AAC/B,IAAI,IAAI,MAAM,GAAG,EAAE,CAAC,MAAM,EAAE,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC;AACjD,IAAI,IAAI,WAAW,GAAGA,iBAAW,CAAC,UAAU,KAAK,EAAE;AACnD,QAAQ,IAAI,KAAK,CAAC,OAAO,KAAK,OAAO,EAAE;AACvC,YAAY,MAAM,EAAE,CAAC;AACrB,SAAS;AACT,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AAC1B,IAAIC,eAAS,CAAC,YAAY;AAC1B,QAAQ,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;AACjE,QAAQ,OAAO,YAAY;AAC3B,YAAY,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;AACxE,SAAS,CAAC;AACV,KAAK,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;AACtB,IAAI,OAAO,IAAI,CAAC;AAChB;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailstep/design-system",
|
|
3
|
-
"version": "0.1.4-beta.
|
|
3
|
+
"version": "0.1.4-beta.7",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./build/index.js",
|
|
7
7
|
"module": "./build/index.es.js",
|
|
8
8
|
"types": "./build/index.d.ts",
|
|
9
9
|
"files": [
|
|
10
|
-
"build
|
|
10
|
+
"build"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"storybook": "storybook dev -p 6006",
|