@mailstep/design-system 0.1.26 → 0.2.0-beta.1
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/package.json +7 -14
- package/ui/2b1ddee3e1b3cc7f.png +0 -0
- package/ui/Blocks/CornerDialog/CornerDialog.js +0 -23
- package/ui/Blocks/CornerDialog/CornerDialog.js.map +0 -1
- package/ui/Blocks/CornerDialog/index.d.ts +0 -6
- package/ui/Blocks/CornerDialog/index.js +0 -6
- package/ui/Blocks/CornerDialog/index.js.map +0 -1
- package/ui/Blocks/CornerDialog/styles.js +0 -22
- package/ui/Blocks/CornerDialog/styles.js.map +0 -1
- package/ui/Blocks/CornerDialog/types.d.ts +0 -14
- package/ui/Blocks/CornerDialog/utils.js +0 -15
- package/ui/Blocks/CornerDialog/utils.js.map +0 -1
- package/ui/Blocks/ImageList/ImageList.js +0 -24
- package/ui/Blocks/ImageList/ImageList.js.map +0 -1
- package/ui/Blocks/ImageList/components/AddPhoto/index.js +0 -37
- package/ui/Blocks/ImageList/components/AddPhoto/index.js.map +0 -1
- package/ui/Blocks/ImageList/components/AddPhoto/styles.js +0 -12
- package/ui/Blocks/ImageList/components/AddPhoto/styles.js.map +0 -1
- package/ui/Blocks/ImageList/components/CloseButton/index.js +0 -12
- package/ui/Blocks/ImageList/components/CloseButton/index.js.map +0 -1
- package/ui/Blocks/ImageList/components/CloseButton/styles.js +0 -11
- package/ui/Blocks/ImageList/components/CloseButton/styles.js.map +0 -1
- package/ui/Blocks/ImageList/components/ImageElement/index.js +0 -15
- package/ui/Blocks/ImageList/components/ImageElement/index.js.map +0 -1
- package/ui/Blocks/ImageList/components/ImageElement/styles.js +0 -9
- package/ui/Blocks/ImageList/components/ImageElement/styles.js.map +0 -1
- package/ui/Blocks/ImageList/components/ImageTag/index.js +0 -13
- package/ui/Blocks/ImageList/components/ImageTag/index.js.map +0 -1
- package/ui/Blocks/ImageList/components/ImageTag/styles.js +0 -8
- package/ui/Blocks/ImageList/components/ImageTag/styles.js.map +0 -1
- package/ui/Blocks/ImageList/index.d.ts +0 -7
- package/ui/Blocks/ImageList/index.js +0 -6
- package/ui/Blocks/ImageList/index.js.map +0 -1
- package/ui/Blocks/ImageList/styles.js +0 -8
- package/ui/Blocks/ImageList/styles.js.map +0 -1
- package/ui/Blocks/ImageList/types.d.ts +0 -17
- package/ui/Blocks/LightBox/LightBox.js +0 -19
- package/ui/Blocks/LightBox/LightBox.js.map +0 -1
- package/ui/Blocks/LightBox/hooks/useLightBox.js +0 -22
- package/ui/Blocks/LightBox/hooks/useLightBox.js.map +0 -1
- package/ui/Blocks/LightBox/index.d.ts +0 -8
- package/ui/Blocks/LightBox/index.js +0 -8
- package/ui/Blocks/LightBox/index.js.map +0 -1
- package/ui/Blocks/LightBox/styles.js +0 -10
- package/ui/Blocks/LightBox/styles.js.map +0 -1
- package/ui/Blocks/LightBox/types.d.ts +0 -26
- package/ui/Blocks/Modal/Modal.js +0 -40
- package/ui/Blocks/Modal/Modal.js.map +0 -1
- package/ui/Blocks/Modal/hooks/useClickOutside.js +0 -34
- package/ui/Blocks/Modal/hooks/useClickOutside.js.map +0 -1
- package/ui/Blocks/Modal/hooks/useModal.js +0 -19
- package/ui/Blocks/Modal/hooks/useModal.js.map +0 -1
- package/ui/Blocks/Modal/index.d.ts +0 -8
- package/ui/Blocks/Modal/index.js +0 -7
- package/ui/Blocks/Modal/index.js.map +0 -1
- package/ui/Blocks/Modal/styles.js +0 -47
- package/ui/Blocks/Modal/styles.js.map +0 -1
- package/ui/Blocks/Modal/types.d.ts +0 -48
- package/ui/Blocks/Modal/utils.js +0 -14
- package/ui/Blocks/Modal/utils.js.map +0 -1
- package/ui/Blocks/Tabs/TabContent.js +0 -7
- package/ui/Blocks/Tabs/TabContent.js.map +0 -1
- package/ui/Blocks/Tabs/Tabs.js +0 -24
- package/ui/Blocks/Tabs/Tabs.js.map +0 -1
- package/ui/Blocks/Tabs/hooks/useTabs.js +0 -14
- package/ui/Blocks/Tabs/hooks/useTabs.js.map +0 -1
- package/ui/Blocks/Tabs/index.d.ts +0 -9
- package/ui/Blocks/Tabs/index.js +0 -7
- package/ui/Blocks/Tabs/index.js.map +0 -1
- package/ui/Blocks/Tabs/styles.js +0 -19
- package/ui/Blocks/Tabs/styles.js.map +0 -1
- package/ui/Blocks/Tabs/types.d.ts +0 -25
- package/ui/Elements/Alert/Alert.js +0 -35
- package/ui/Elements/Alert/Alert.js.map +0 -1
- package/ui/Elements/Alert/index.d.ts +0 -6
- package/ui/Elements/Alert/index.js +0 -6
- package/ui/Elements/Alert/index.js.map +0 -1
- package/ui/Elements/Alert/styles.js +0 -33
- package/ui/Elements/Alert/styles.js.map +0 -1
- package/ui/Elements/Alert/types.d.ts +0 -19
- package/ui/Elements/Avatar/Avatar.js +0 -16
- package/ui/Elements/Avatar/Avatar.js.map +0 -1
- package/ui/Elements/Avatar/index.d.ts +0 -5
- package/ui/Elements/Avatar/index.js +0 -6
- package/ui/Elements/Avatar/index.js.map +0 -1
- package/ui/Elements/Avatar/types.d.ts +0 -10
- package/ui/Elements/Badge/Badge.d.ts +0 -11
- package/ui/Elements/Badge/Badge.js +0 -39
- package/ui/Elements/Badge/Badge.js.map +0 -1
- package/ui/Elements/Badge/index.d.ts +0 -5
- package/ui/Elements/Badge/index.js +0 -6
- package/ui/Elements/Badge/index.js.map +0 -1
- package/ui/Elements/BorderedBox/BorderedBox.js +0 -13
- package/ui/Elements/BorderedBox/BorderedBox.js.map +0 -1
- package/ui/Elements/BorderedBox/index.d.ts +0 -5
- package/ui/Elements/BorderedBox/index.js +0 -6
- package/ui/Elements/BorderedBox/index.js.map +0 -1
- package/ui/Elements/BorderedBox/types.d.ts +0 -7
- package/ui/Elements/Button/Button.js +0 -12
- package/ui/Elements/Button/Button.js.map +0 -1
- package/ui/Elements/Button/index.d.ts +0 -6
- package/ui/Elements/Button/index.js +0 -6
- package/ui/Elements/Button/index.js.map +0 -1
- package/ui/Elements/Button/styles.js +0 -49
- package/ui/Elements/Button/styles.js.map +0 -1
- package/ui/Elements/Button/types.d.ts +0 -23
- package/ui/Elements/Card/Card.js +0 -26
- package/ui/Elements/Card/Card.js.map +0 -1
- package/ui/Elements/Card/index.d.ts +0 -5
- package/ui/Elements/Card/index.js +0 -7
- package/ui/Elements/Card/index.js.map +0 -1
- package/ui/Elements/Card/styles.d.ts +0 -12
- package/ui/Elements/Card/styles.js +0 -34
- package/ui/Elements/Card/styles.js.map +0 -1
- package/ui/Elements/Card/types.d.ts +0 -10
- package/ui/Elements/Dropdown/Dropdown.d.ts +0 -5
- package/ui/Elements/Dropdown/Dropdown.js +0 -27
- package/ui/Elements/Dropdown/Dropdown.js.map +0 -1
- package/ui/Elements/Dropdown/index.d.ts +0 -5
- package/ui/Elements/Dropdown/index.js +0 -6
- package/ui/Elements/Dropdown/index.js.map +0 -1
- package/ui/Elements/Dropdown/types.d.ts +0 -13
- package/ui/Elements/ErrorMessage/ErrorMessage.js +0 -16
- package/ui/Elements/ErrorMessage/ErrorMessage.js.map +0 -1
- package/ui/Elements/ErrorMessage/index.d.ts +0 -5
- package/ui/Elements/ErrorMessage/index.js +0 -6
- package/ui/Elements/ErrorMessage/index.js.map +0 -1
- package/ui/Elements/ErrorMessage/types.d.ts +0 -8
- package/ui/Elements/Icon/Icon.js +0 -244
- package/ui/Elements/Icon/Icon.js.map +0 -1
- package/ui/Elements/Icon/icons/AddPhoto.js +0 -7
- package/ui/Elements/Icon/icons/AddPhoto.js.map +0 -1
- package/ui/Elements/Icon/icons/BarcodeScan.js +0 -7
- package/ui/Elements/Icon/icons/BarcodeScan.js.map +0 -1
- package/ui/Elements/Icon/icons/Box.js +0 -7
- package/ui/Elements/Icon/icons/Box.js.map +0 -1
- package/ui/Elements/Icon/icons/Complaint.js +0 -7
- package/ui/Elements/Icon/icons/Complaint.js.map +0 -1
- package/ui/Elements/Icon/icons/Expeditions.js +0 -7
- package/ui/Elements/Icon/icons/Expeditions.js.map +0 -1
- package/ui/Elements/Icon/icons/FlagCZ.js +0 -7
- package/ui/Elements/Icon/icons/FlagCZ.js.map +0 -1
- package/ui/Elements/Icon/icons/FlagEL.js +0 -7
- package/ui/Elements/Icon/icons/FlagEL.js.map +0 -1
- package/ui/Elements/Icon/icons/FlagESP.js +0 -7
- package/ui/Elements/Icon/icons/FlagESP.js.map +0 -1
- package/ui/Elements/Icon/icons/FlagITA.js +0 -7
- package/ui/Elements/Icon/icons/FlagITA.js.map +0 -1
- package/ui/Elements/Icon/icons/FlagRUS.js +0 -7
- package/ui/Elements/Icon/icons/FlagRUS.js.map +0 -1
- package/ui/Elements/Icon/icons/FlagSVK.js +0 -7
- package/ui/Elements/Icon/icons/FlagSVK.js.map +0 -1
- package/ui/Elements/Icon/icons/FlagUSA.js +0 -7
- package/ui/Elements/Icon/icons/FlagUSA.js.map +0 -1
- package/ui/Elements/Icon/icons/HamburgerMenu.js +0 -7
- package/ui/Elements/Icon/icons/HamburgerMenu.js.map +0 -1
- package/ui/Elements/Icon/icons/HelpCircle1.js +0 -7
- package/ui/Elements/Icon/icons/HelpCircle1.js.map +0 -1
- package/ui/Elements/Icon/icons/ImagePlaceholder.js +0 -7
- package/ui/Elements/Icon/icons/ImagePlaceholder.js.map +0 -1
- package/ui/Elements/Icon/icons/Income.js +0 -7
- package/ui/Elements/Icon/icons/Income.js.map +0 -1
- package/ui/Elements/Icon/icons/Inventory.js +0 -7
- package/ui/Elements/Icon/icons/Inventory.js.map +0 -1
- package/ui/Elements/Icon/icons/Inventory2.js +0 -7
- package/ui/Elements/Icon/icons/Inventory2.js.map +0 -1
- package/ui/Elements/Icon/icons/Logout1.js +0 -7
- package/ui/Elements/Icon/icons/Logout1.js.map +0 -1
- package/ui/Elements/Icon/icons/MenuItems.js +0 -7
- package/ui/Elements/Icon/icons/MenuItems.js.map +0 -1
- package/ui/Elements/Icon/icons/MobileCancel.js +0 -7
- package/ui/Elements/Icon/icons/MobileCancel.js.map +0 -1
- package/ui/Elements/Icon/icons/Notification2.js +0 -7
- package/ui/Elements/Icon/icons/Notification2.js.map +0 -1
- package/ui/Elements/Icon/icons/OpenBox.js +0 -7
- package/ui/Elements/Icon/icons/OpenBox.js.map +0 -1
- package/ui/Elements/Icon/icons/Plus1.js +0 -7
- package/ui/Elements/Icon/icons/Plus1.js.map +0 -1
- package/ui/Elements/Icon/icons/Product.js +0 -7
- package/ui/Elements/Icon/icons/Product.js.map +0 -1
- package/ui/Elements/Icon/icons/Products.js +0 -7
- package/ui/Elements/Icon/icons/Products.js.map +0 -1
- package/ui/Elements/Icon/icons/Profile.js +0 -7
- package/ui/Elements/Icon/icons/Profile.js.map +0 -1
- package/ui/Elements/Icon/icons/Puzzle1.js +0 -7
- package/ui/Elements/Icon/icons/Puzzle1.js.map +0 -1
- package/ui/Elements/Icon/icons/Rack.js +0 -7
- package/ui/Elements/Icon/icons/Rack.js.map +0 -1
- package/ui/Elements/Icon/icons/Return.js +0 -7
- package/ui/Elements/Icon/icons/Return.js.map +0 -1
- package/ui/Elements/Icon/icons/Settings2.js +0 -7
- package/ui/Elements/Icon/icons/Settings2.js.map +0 -1
- package/ui/Elements/Icon/icons/Transfer.js +0 -7
- package/ui/Elements/Icon/icons/Transfer.js.map +0 -1
- package/ui/Elements/Icon/index.d.ts +0 -38
- package/ui/Elements/Icon/index.js +0 -9
- package/ui/Elements/Icon/index.js.map +0 -1
- package/ui/Elements/Icon/types.d.ts +0 -26
- package/ui/Elements/Image/Image.d.ts +0 -5
- package/ui/Elements/Image/Image.js +0 -19
- package/ui/Elements/Image/Image.js.map +0 -1
- package/ui/Elements/Image/index.d.ts +0 -5
- package/ui/Elements/Image/index.js +0 -6
- package/ui/Elements/Image/index.js.map +0 -1
- package/ui/Elements/Image/types.d.ts +0 -19
- package/ui/Elements/Label/Label.d.ts +0 -11
- package/ui/Elements/Label/Label.js +0 -17
- package/ui/Elements/Label/Label.js.map +0 -1
- package/ui/Elements/Label/index.d.ts +0 -6
- package/ui/Elements/Label/index.js +0 -7
- package/ui/Elements/Label/index.js.map +0 -1
- package/ui/Elements/Line/Line.js +0 -25
- package/ui/Elements/Line/Line.js.map +0 -1
- package/ui/Elements/Line/index.d.ts +0 -3
- package/ui/Elements/Line/index.js +0 -6
- package/ui/Elements/Line/index.js.map +0 -1
- package/ui/Elements/Line/types.d.ts +0 -13
- package/ui/Elements/Link/Link.d.ts +0 -31
- package/ui/Elements/Link/Link.js +0 -45
- package/ui/Elements/Link/Link.js.map +0 -1
- package/ui/Elements/Link/index.d.ts +0 -5
- package/ui/Elements/Link/index.js +0 -6
- package/ui/Elements/Link/index.js.map +0 -1
- package/ui/Elements/Logo/Logo.js +0 -62
- package/ui/Elements/Logo/Logo.js.map +0 -1
- package/ui/Elements/Logo/assets/mailship/logo_black.png.js +0 -4
- package/ui/Elements/Logo/assets/mailship/logo_black.png.js.map +0 -1
- package/ui/Elements/Logo/assets/mailship/logo_m.png.js +0 -4
- package/ui/Elements/Logo/assets/mailship/logo_m.png.js.map +0 -1
- package/ui/Elements/Logo/assets/mailship/logo_white.png.js +0 -4
- package/ui/Elements/Logo/assets/mailship/logo_white.png.js.map +0 -1
- package/ui/Elements/Logo/assets/mailship/mailship-logo.svg.js +0 -6
- package/ui/Elements/Logo/assets/mailship/mailship-logo.svg.js.map +0 -1
- package/ui/Elements/Logo/assets/mailstep/mailstep_black.svg.js +0 -6
- package/ui/Elements/Logo/assets/mailstep/mailstep_black.svg.js.map +0 -1
- package/ui/Elements/Logo/assets/mailstep/mailstep_white.svg.js +0 -6
- package/ui/Elements/Logo/assets/mailstep/mailstep_white.svg.js.map +0 -1
- package/ui/Elements/Logo/assets/mailstock/mailstock.svg.js +0 -6
- package/ui/Elements/Logo/assets/mailstock/mailstock.svg.js.map +0 -1
- package/ui/Elements/Logo/assets/mailwise/mailwiseLogo.svg.js +0 -6
- package/ui/Elements/Logo/assets/mailwise/mailwiseLogo.svg.js.map +0 -1
- package/ui/Elements/Logo/assets/mailwise/mailwiseLogoSmall.svg.js +0 -6
- package/ui/Elements/Logo/assets/mailwise/mailwiseLogoSmall.svg.js.map +0 -1
- package/ui/Elements/Logo/assets/mailwrap/mailwrapLogo.svg.js +0 -6
- package/ui/Elements/Logo/assets/mailwrap/mailwrapLogo.svg.js.map +0 -1
- package/ui/Elements/Logo/index.d.ts +0 -5
- package/ui/Elements/Logo/index.js +0 -6
- package/ui/Elements/Logo/index.js.map +0 -1
- package/ui/Elements/Logo/types.d.ts +0 -12
- package/ui/Elements/Pagination/Pagination.d.ts +0 -8
- package/ui/Elements/Pagination/Pagination.js +0 -38
- package/ui/Elements/Pagination/Pagination.js.map +0 -1
- package/ui/Elements/Pagination/index.d.ts +0 -5
- package/ui/Elements/Pagination/index.js +0 -6
- package/ui/Elements/Pagination/index.js.map +0 -1
- package/ui/Elements/Pagination/styled.js +0 -27
- package/ui/Elements/Pagination/styled.js.map +0 -1
- package/ui/Elements/Paragraph/Paragraph.d.ts +0 -5
- package/ui/Elements/Paragraph/Paragraph.js +0 -6
- package/ui/Elements/Paragraph/Paragraph.js.map +0 -1
- package/ui/Elements/Paragraph/index.d.ts +0 -5
- package/ui/Elements/Paragraph/index.js +0 -6
- package/ui/Elements/Paragraph/index.js.map +0 -1
- package/ui/Elements/Portal/index.d.ts +0 -7
- package/ui/Elements/Portal/index.js +0 -17
- package/ui/Elements/Portal/index.js.map +0 -1
- package/ui/Elements/ProgressBar/ProgressBar.d.ts +0 -10
- package/ui/Elements/ProgressBar/ProgressBar.js +0 -12
- package/ui/Elements/ProgressBar/ProgressBar.js.map +0 -1
- package/ui/Elements/ProgressBar/index.d.ts +0 -5
- package/ui/Elements/ProgressBar/index.js +0 -6
- package/ui/Elements/ProgressBar/index.js.map +0 -1
- package/ui/Elements/ProgressBar/styles.js +0 -20
- package/ui/Elements/ProgressBar/styles.js.map +0 -1
- package/ui/Elements/SimpleLink/SimpleLink.d.ts +0 -23
- package/ui/Elements/SimpleLink/SimpleLink.js +0 -17
- package/ui/Elements/SimpleLink/SimpleLink.js.map +0 -1
- package/ui/Elements/SimpleLink/index.d.ts +0 -5
- package/ui/Elements/SimpleLink/index.js +0 -6
- package/ui/Elements/SimpleLink/index.js.map +0 -1
- package/ui/Elements/SpaceAround/SpaceAround.d.ts +0 -5
- package/ui/Elements/SpaceAround/SpaceAround.js +0 -31
- package/ui/Elements/SpaceAround/SpaceAround.js.map +0 -1
- package/ui/Elements/SpaceAround/index.d.ts +0 -5
- package/ui/Elements/SpaceAround/index.js +0 -6
- package/ui/Elements/SpaceAround/index.js.map +0 -1
- package/ui/Elements/SpaceAround/types.d.ts +0 -15
- package/ui/Elements/Spinner/Spinner.js +0 -21
- package/ui/Elements/Spinner/Spinner.js.map +0 -1
- package/ui/Elements/Spinner/index.d.ts +0 -5
- package/ui/Elements/Spinner/index.js +0 -6
- package/ui/Elements/Spinner/index.js.map +0 -1
- package/ui/Elements/Spinner/styles.js +0 -21
- package/ui/Elements/Spinner/styles.js.map +0 -1
- package/ui/Elements/Spinner/types.d.ts +0 -8
- package/ui/Elements/Tag/Tag.js +0 -59
- package/ui/Elements/Tag/Tag.js.map +0 -1
- package/ui/Elements/Tag/index.d.ts +0 -7
- package/ui/Elements/Tag/index.js +0 -6
- package/ui/Elements/Tag/index.js.map +0 -1
- package/ui/Elements/Tag/palletes.js +0 -13
- package/ui/Elements/Tag/palletes.js.map +0 -1
- package/ui/Elements/Tag/types.d.ts +0 -18
- package/ui/Elements/Text/Text.js +0 -8
- package/ui/Elements/Text/Text.js.map +0 -1
- package/ui/Elements/Text/types.d.ts +0 -13
- package/ui/Elements/Toast/Toast.d.ts +0 -12
- package/ui/Elements/Toast/Toast.js +0 -23
- package/ui/Elements/Toast/Toast.js.map +0 -1
- package/ui/Elements/Toast/index.d.ts +0 -5
- package/ui/Elements/Toast/index.js +0 -6
- package/ui/Elements/Toast/index.js.map +0 -1
- package/ui/Elements/Toggle/Toggle.js +0 -30
- package/ui/Elements/Toggle/Toggle.js.map +0 -1
- package/ui/Elements/Toggle/index.d.ts +0 -5
- package/ui/Elements/Toggle/index.js +0 -6
- package/ui/Elements/Toggle/index.js.map +0 -1
- package/ui/Elements/Toggle/types.d.ts +0 -23
- package/ui/Elements/Typography/Typography.js +0 -35
- package/ui/Elements/Typography/Typography.js.map +0 -1
- package/ui/Elements/Typography/index.d.ts +0 -19
- package/ui/Elements/Typography/index.js +0 -7
- package/ui/Elements/Typography/index.js.map +0 -1
- package/ui/Forms/Checkbox/Checkbox.js +0 -15
- package/ui/Forms/Checkbox/Checkbox.js.map +0 -1
- package/ui/Forms/Checkbox/index.d.ts +0 -5
- package/ui/Forms/Checkbox/index.js +0 -6
- package/ui/Forms/Checkbox/index.js.map +0 -1
- package/ui/Forms/Checkbox/styles.js +0 -28
- package/ui/Forms/Checkbox/styles.js.map +0 -1
- package/ui/Forms/Checkbox/types.d.ts +0 -19
- package/ui/Forms/Input/Input.js +0 -47
- package/ui/Forms/Input/Input.js.map +0 -1
- package/ui/Forms/Input/index.d.ts +0 -5
- package/ui/Forms/Input/index.js +0 -6
- package/ui/Forms/Input/index.js.map +0 -1
- package/ui/Forms/Input/styles.js +0 -58
- package/ui/Forms/Input/styles.js.map +0 -1
- package/ui/Forms/Input/types.d.ts +0 -49
- package/ui/Forms/RadioButton/RadioButton.js +0 -11
- package/ui/Forms/RadioButton/RadioButton.js.map +0 -1
- package/ui/Forms/RadioButton/index.d.ts +0 -5
- package/ui/Forms/RadioButton/index.js +0 -6
- package/ui/Forms/RadioButton/index.js.map +0 -1
- package/ui/Forms/RadioButton/styles.js +0 -16
- package/ui/Forms/RadioButton/styles.js.map +0 -1
- package/ui/Forms/RadioButton/types.d.ts +0 -15
- package/ui/ThemeProvider/ThemeProvider.js +0 -11
- package/ui/ThemeProvider/ThemeProvider.js.map +0 -1
- package/ui/ThemeProvider/index.d.ts +0 -8
- package/ui/ThemeProvider/index.js +0 -6
- package/ui/ThemeProvider/index.js.map +0 -1
- package/ui/ThemeProvider/themes/default.js +0 -146
- package/ui/ThemeProvider/themes/default.js.map +0 -1
- package/ui/ThemeProvider/themes/index.js +0 -12
- package/ui/ThemeProvider/themes/index.js.map +0 -1
- package/ui/ThemeProvider/themes/light.js +0 -9
- package/ui/ThemeProvider/themes/light.js.map +0 -1
- package/ui/ThemeProvider/themes/mailwise.js +0 -216
- package/ui/ThemeProvider/themes/mailwise.js.map +0 -1
- package/ui/ThemeProvider/types.d.ts +0 -53
- package/ui/ba2267d1dea00b65.png +0 -0
- package/ui/dts/Blocks/CornerDialog/CornerDialog.d.ts +0 -3
- package/ui/dts/Blocks/CornerDialog/index.d.ts +0 -3
- package/ui/dts/Blocks/CornerDialog/stories/CornerDialog.stories.d.ts +0 -14
- package/ui/dts/Blocks/CornerDialog/styles.d.ts +0 -12
- package/ui/dts/Blocks/CornerDialog/types.d.ts +0 -16
- package/ui/dts/Blocks/CornerDialog/utils.d.ts +0 -3
- package/ui/dts/Blocks/ImageList/ImageList.d.ts +0 -3
- package/ui/dts/Blocks/ImageList/components/AddPhoto/index.d.ts +0 -8
- package/ui/dts/Blocks/ImageList/components/AddPhoto/styles.d.ts +0 -4
- package/ui/dts/Blocks/ImageList/components/CloseButton/index.d.ts +0 -7
- package/ui/dts/Blocks/ImageList/components/CloseButton/styles.d.ts +0 -3
- package/ui/dts/Blocks/ImageList/components/ImageElement/index.d.ts +0 -10
- package/ui/dts/Blocks/ImageList/components/ImageElement/styles.d.ts +0 -2
- package/ui/dts/Blocks/ImageList/components/ImageTag/index.d.ts +0 -6
- package/ui/dts/Blocks/ImageList/components/ImageTag/styles.d.ts +0 -1
- package/ui/dts/Blocks/ImageList/index.d.ts +0 -5
- package/ui/dts/Blocks/ImageList/styles.d.ts +0 -1
- package/ui/dts/Blocks/ImageList/types.d.ts +0 -14
- package/ui/dts/Blocks/LightBox/LightBox.d.ts +0 -3
- package/ui/dts/Blocks/LightBox/hooks/useLightBox.d.ts +0 -2
- package/ui/dts/Blocks/LightBox/index.d.ts +0 -4
- package/ui/dts/Blocks/LightBox/styles.d.ts +0 -3
- package/ui/dts/Blocks/LightBox/types.d.ts +0 -24
- package/ui/dts/Blocks/Modal/Modal.d.ts +0 -3
- package/ui/dts/Blocks/Modal/hooks/useClickOutside.d.ts +0 -3
- package/ui/dts/Blocks/Modal/hooks/useModal.d.ts +0 -2
- package/ui/dts/Blocks/Modal/index.d.ts +0 -5
- package/ui/dts/Blocks/Modal/stories/Modal.stories.d.ts +0 -26
- package/ui/dts/Blocks/Modal/styles.d.ts +0 -22
- package/ui/dts/Blocks/Modal/types.d.ts +0 -45
- package/ui/dts/Blocks/Modal/utils.d.ts +0 -3
- package/ui/dts/Blocks/Tabs/TabContent.d.ts +0 -3
- package/ui/dts/Blocks/Tabs/Tabs.d.ts +0 -3
- package/ui/dts/Blocks/Tabs/hooks/useTabs.d.ts +0 -2
- package/ui/dts/Blocks/Tabs/index.d.ts +0 -5
- package/ui/dts/Blocks/Tabs/stories/Tabs.stories.d.ts +0 -13
- package/ui/dts/Blocks/Tabs/styles.d.ts +0 -10
- package/ui/dts/Blocks/Tabs/types.d.ts +0 -28
- package/ui/dts/Elements/Alert/Alert.d.ts +0 -3
- package/ui/dts/Elements/Alert/index.d.ts +0 -3
- package/ui/dts/Elements/Alert/stories/Alert.stories.d.ts +0 -17
- package/ui/dts/Elements/Alert/styles.d.ts +0 -44
- package/ui/dts/Elements/Alert/types.d.ts +0 -18
- package/ui/dts/Elements/Avatar/Avatar.d.ts +0 -3
- package/ui/dts/Elements/Avatar/index.d.ts +0 -3
- package/ui/dts/Elements/Avatar/stories/Avatar.stories.d.ts +0 -12
- package/ui/dts/Elements/Avatar/types.d.ts +0 -8
- package/ui/dts/Elements/Badge/Badge.d.ts +0 -12
- package/ui/dts/Elements/Badge/index.d.ts +0 -3
- package/ui/dts/Elements/Badge/stories/Badge.stories.d.ts +0 -12
- package/ui/dts/Elements/BorderedBox/BorderedBox.d.ts +0 -4
- package/ui/dts/Elements/BorderedBox/index.d.ts +0 -3
- package/ui/dts/Elements/BorderedBox/stories/BorderedBox.stories.d.ts +0 -11
- package/ui/dts/Elements/BorderedBox/types.d.ts +0 -6
- package/ui/dts/Elements/Button/Button.d.ts +0 -4
- package/ui/dts/Elements/Button/index.d.ts +0 -5
- package/ui/dts/Elements/Button/stories/Button.stories.d.ts +0 -20
- package/ui/dts/Elements/Button/styles.d.ts +0 -19
- package/ui/dts/Elements/Button/types.d.ts +0 -22
- package/ui/dts/Elements/Card/Card.d.ts +0 -7
- package/ui/dts/Elements/Card/index.d.ts +0 -3
- package/ui/dts/Elements/Card/stories/Card.stories.d.ts +0 -15
- package/ui/dts/Elements/Card/stories/CardComponent.stories.d.ts +0 -12
- package/ui/dts/Elements/Card/styles.d.ts +0 -14
- package/ui/dts/Elements/Card/types.d.ts +0 -21
- package/ui/dts/Elements/Dropdown/Dropdown.d.ts +0 -4
- package/ui/dts/Elements/Dropdown/index.d.ts +0 -3
- package/ui/dts/Elements/Dropdown/stories/Dropdown.stories.d.ts +0 -11
- package/ui/dts/Elements/Dropdown/types.d.ts +0 -10
- package/ui/dts/Elements/ErrorMessage/ErrorMessage.d.ts +0 -4
- package/ui/dts/Elements/ErrorMessage/index.d.ts +0 -3
- package/ui/dts/Elements/ErrorMessage/stories/ErrorMessage.stories.d.ts +0 -12
- package/ui/dts/Elements/ErrorMessage/types.d.ts +0 -5
- package/ui/dts/Elements/Icon/BadgeIcon.d.ts +0 -7
- package/ui/dts/Elements/Icon/Icon.d.ts +0 -9
- package/ui/dts/Elements/Icon/icons/AddPhoto.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/BarcodeScan.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Box.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Complaint.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Expeditions.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/FlagCZ.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/FlagEL.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/FlagESP.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/FlagITA.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/FlagRUS.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/FlagSVK.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/FlagUSA.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/HamburgerMenu.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/HelpCircle1.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/ImagePlaceholder.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Income.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Inventory.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Inventory2.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Link.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Logout1.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/MenuItems.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/MobileCancel.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Notification2.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/OpenBox.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Plus1.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Product.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Products.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Profile.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Puzzle1.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Rack.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Return.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Settings2.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/Transfer.d.ts +0 -3
- package/ui/dts/Elements/Icon/icons/index.d.ts +0 -33
- package/ui/dts/Elements/Icon/index.d.ts +0 -6
- package/ui/dts/Elements/Icon/stories/BadgeIcon.stories.d.ts +0 -24
- package/ui/dts/Elements/Icon/stories/Icon.stories.d.ts +0 -16
- package/ui/dts/Elements/Icon/types.d.ts +0 -23
- package/ui/dts/Elements/Image/Image.d.ts +0 -4
- package/ui/dts/Elements/Image/index.d.ts +0 -3
- package/ui/dts/Elements/Image/stories/Image.stories.d.ts +0 -14
- package/ui/dts/Elements/Image/types.d.ts +0 -18
- package/ui/dts/Elements/Label/Label.d.ts +0 -6
- package/ui/dts/Elements/Label/index.d.ts +0 -3
- package/ui/dts/Elements/Label/stories/Label.stories.d.ts +0 -13
- package/ui/dts/Elements/Line/Line.d.ts +0 -3
- package/ui/dts/Elements/Line/index.d.ts +0 -3
- package/ui/dts/Elements/Line/stories/Line.stories.d.ts +0 -16
- package/ui/dts/Elements/Line/types.d.ts +0 -12
- package/ui/dts/Elements/Link/Link.d.ts +0 -29
- package/ui/dts/Elements/Link/index.d.ts +0 -3
- package/ui/dts/Elements/Link/stories/Link.stories.d.ts +0 -42
- package/ui/dts/Elements/Logo/Logo.d.ts +0 -4
- package/ui/dts/Elements/Logo/index.d.ts +0 -3
- package/ui/dts/Elements/Logo/stories/Logo.stories.d.ts +0 -34
- package/ui/dts/Elements/Logo/types.d.ts +0 -10
- package/ui/dts/Elements/Pagination/Pagination.d.ts +0 -9
- package/ui/dts/Elements/Pagination/index.d.ts +0 -3
- package/ui/dts/Elements/Pagination/stories/Pagination.stories.d.ts +0 -12
- package/ui/dts/Elements/Pagination/styled.d.ts +0 -15
- package/ui/dts/Elements/Paragraph/Paragraph.d.ts +0 -2
- package/ui/dts/Elements/Paragraph/index.d.ts +0 -3
- package/ui/dts/Elements/Paragraph/stories/Paragraph.stories.d.ts +0 -17
- package/ui/dts/Elements/Portal/index.d.ts +0 -5
- package/ui/dts/Elements/ProgressBar/ProgressBar.d.ts +0 -10
- package/ui/dts/Elements/ProgressBar/index.d.ts +0 -3
- package/ui/dts/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +0 -19
- package/ui/dts/Elements/ProgressBar/styles.d.ts +0 -9
- package/ui/dts/Elements/SimpleLink/SimpleLink.d.ts +0 -19
- package/ui/dts/Elements/SimpleLink/index.d.ts +0 -3
- package/ui/dts/Elements/SpaceAround/SpaceAround.d.ts +0 -4
- package/ui/dts/Elements/SpaceAround/index.d.ts +0 -4
- package/ui/dts/Elements/SpaceAround/stories/SpaceAround.stories.d.ts +0 -12
- package/ui/dts/Elements/SpaceAround/types.d.ts +0 -14
- package/ui/dts/Elements/Spinner/Spinner.d.ts +0 -14
- package/ui/dts/Elements/Spinner/index.d.ts +0 -3
- package/ui/dts/Elements/Spinner/stories/Spinner.stories.d.ts +0 -19
- package/ui/dts/Elements/Spinner/styles.d.ts +0 -4
- package/ui/dts/Elements/Spinner/types.d.ts +0 -7
- package/ui/dts/Elements/Tag/Tag.d.ts +0 -3
- package/ui/dts/Elements/Tag/index.d.ts +0 -3
- package/ui/dts/Elements/Tag/palletes.d.ts +0 -5
- package/ui/dts/Elements/Tag/stories/Tag.stories.d.ts +0 -19
- package/ui/dts/Elements/Tag/stories/components/predefinedTags.d.ts +0 -3
- package/ui/dts/Elements/Tag/types.d.ts +0 -17
- package/ui/dts/Elements/Text/Text.d.ts +0 -4
- package/ui/dts/Elements/Text/index.d.ts +0 -3
- package/ui/dts/Elements/Text/stories/Text.stories.d.ts +0 -16
- package/ui/dts/Elements/Text/types.d.ts +0 -12
- package/ui/dts/Elements/Toast/Toast.d.ts +0 -12
- package/ui/dts/Elements/Toast/index.d.ts +0 -4
- package/ui/dts/Elements/Toggle/Toggle.d.ts +0 -4
- package/ui/dts/Elements/Toggle/index.d.ts +0 -3
- package/ui/dts/Elements/Toggle/stories/Toggle.stories.d.ts +0 -14
- package/ui/dts/Elements/Toggle/types.d.ts +0 -21
- package/ui/dts/Elements/Typography/Typography.d.ts +0 -118
- package/ui/dts/Elements/Typography/index.d.ts +0 -3
- package/ui/dts/Elements/Typography/stories/Typography.stories.d.ts +0 -20
- package/ui/dts/Forms/Checkbox/Checkbox.d.ts +0 -4
- package/ui/dts/Forms/Checkbox/index.d.ts +0 -3
- package/ui/dts/Forms/Checkbox/stories/Checkbox.stories.d.ts +0 -14
- package/ui/dts/Forms/Checkbox/styles.d.ts +0 -11
- package/ui/dts/Forms/Checkbox/types.d.ts +0 -16
- package/ui/dts/Forms/Input/Input.d.ts +0 -3
- package/ui/dts/Forms/Input/index.d.ts +0 -5
- package/ui/dts/Forms/Input/stories/Input.stories.d.ts +0 -17
- package/ui/dts/Forms/Input/styles.d.ts +0 -31
- package/ui/dts/Forms/Input/types.d.ts +0 -49
- package/ui/dts/Forms/RadioButton/RadioButton.d.ts +0 -4
- package/ui/dts/Forms/RadioButton/index.d.ts +0 -3
- package/ui/dts/Forms/RadioButton/stories/RadioButton.stories.d.ts +0 -14
- package/ui/dts/Forms/RadioButton/styles.d.ts +0 -10
- package/ui/dts/Forms/RadioButton/types.d.ts +0 -12
- package/ui/dts/ThemeProvider/ThemeProvider.d.ts +0 -3
- package/ui/dts/ThemeProvider/index.d.ts +0 -5
- package/ui/dts/ThemeProvider/themes/default.d.ts +0 -142
- package/ui/dts/ThemeProvider/themes/index.d.ts +0 -351
- package/ui/dts/ThemeProvider/themes/light.d.ts +0 -3
- package/ui/dts/ThemeProvider/themes/mailwise.d.ts +0 -207
- package/ui/dts/ThemeProvider/types.d.ts +0 -50
- package/ui/dts/index.d.ts +0 -71
- package/ui/dts/utils/CreateRgba/createRgba.d.ts +0 -3
- package/ui/dts/utils/CreateRgba/types.d.ts +0 -1
- package/ui/dts/utils/KeyPress/KeyPress.d.ts +0 -3
- package/ui/dts/utils/KeyPress/KeyPress.stories.d.ts +0 -10
- package/ui/dts/utils/KeyPress/index.d.ts +0 -2
- package/ui/dts/utils/KeyPress/types.d.ts +0 -6
- package/ui/dts/utils/index.d.ts +0 -8
- package/ui/index.d.ts +0 -50
- package/ui/index.js +0 -79
- package/ui/index.js.map +0 -1
- package/ui/utils/CreateRgba/createRgba.js +0 -21
- package/ui/utils/CreateRgba/createRgba.js.map +0 -1
- package/ui/utils/CreateRgba/types.d.ts +0 -3
- package/ui/utils/KeyPress/KeyPress.js +0 -20
- package/ui/utils/KeyPress/KeyPress.js.map +0 -1
- package/ui/utils/KeyPress/index.js +0 -6
- package/ui/utils/KeyPress/index.js.map +0 -1
- package/ui/utils/KeyPress/types.d.ts +0 -7
- package/ui/utils/index.d.ts +0 -10
- package/ui/utils/index.js +0 -10
- package/ui/utils/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailstep/design-system",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.0-beta.1",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./ui/index.js",
|
|
7
7
|
"module": "./ui/index.es.js",
|
|
8
8
|
"types": "./ui/index.d.ts",
|
|
9
9
|
"files": [
|
|
10
|
-
"
|
|
10
|
+
"build"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"storybook": "storybook dev -p 6006",
|
|
14
|
-
"build": "rm -rf ./build &&
|
|
14
|
+
"build": "rm -rf ./build && tsc && vite build && cp package.json build",
|
|
15
15
|
"build-storybook": "storybook build",
|
|
16
16
|
"deploy": "npm run build && npm publish ./build",
|
|
17
|
+
"version:beta": "npm run build && scripts/prepublish.js",
|
|
17
18
|
"dev": "yarn storybook",
|
|
18
19
|
"test": "echo \"The tests are still waiting to be written, but it seems like they're really good at procrastinating!\""
|
|
19
20
|
},
|
|
@@ -28,11 +29,6 @@
|
|
|
28
29
|
"@fortawesome/pro-regular-svg-icons": "^6.0.0",
|
|
29
30
|
"@fortawesome/pro-solid-svg-icons": "^6.3.0",
|
|
30
31
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
31
|
-
"@rollup/plugin-commonjs": "^25.0.0",
|
|
32
|
-
"@rollup/plugin-image": "^3.0.3",
|
|
33
|
-
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
34
|
-
"@rollup/plugin-typescript": "^11.1.1",
|
|
35
|
-
"@rollup/plugin-url": "^8.0.1",
|
|
36
32
|
"@storybook/addon-controls": "7.5.2",
|
|
37
33
|
"@storybook/addon-essentials": "7.5.2",
|
|
38
34
|
"@storybook/addon-interactions": "7.5.2",
|
|
@@ -61,18 +57,15 @@
|
|
|
61
57
|
"react-script": "^2.0.5",
|
|
62
58
|
"react-toastify": "^9.1.3",
|
|
63
59
|
"react-use-draggable-scroll": "^0.4.7",
|
|
64
|
-
"rollup": "^3.21.8",
|
|
65
|
-
"rollup-plugin-del": "^1.0.1",
|
|
66
|
-
"rollup-plugin-dts": "^5.3.0",
|
|
67
|
-
"rollup-plugin-multi-input": "^1.4.1",
|
|
68
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
69
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
70
60
|
"storybook": "7.5.2",
|
|
71
61
|
"string-width": "6.1.0",
|
|
72
62
|
"styled-components": "^5.3.10",
|
|
73
63
|
"swiper": "^11.0.3",
|
|
74
64
|
"tslib": "^2.6.2",
|
|
75
65
|
"typescript": "^5.0.4",
|
|
66
|
+
"vite-plugin-dts": "^3.6.4",
|
|
67
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
68
|
+
"vite": "^5.0.10",
|
|
76
69
|
"webpack": "^5.82.1"
|
|
77
70
|
},
|
|
78
71
|
"peerDependencies": {
|
package/ui/2b1ddee3e1b3cc7f.png
DELETED
|
Binary file
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { useState, useEffect } from 'react';
|
|
3
|
-
import { statusToIcon, statusToColors } from './utils.js';
|
|
4
|
-
import { Portal } from '../../Elements/Portal/index.js';
|
|
5
|
-
import Icon from '../../Elements/Icon/Icon.js';
|
|
6
|
-
import 'tslib';
|
|
7
|
-
import { Container, Status, StatusText, Header, CloseBtn, Wrapper } from './styles.js';
|
|
8
|
-
|
|
9
|
-
var CornerDialog = function (_a) {
|
|
10
|
-
var title = _a.title, children = _a.children, onClose = _a.onClose, statusToTitle = _a.statusToTitle, _b = _a.isOpen, isOpen = _b === void 0 ? true : _b, _intent = _a.intent;
|
|
11
|
-
var _c = useState(false), isMounted = _c[0], setIsMounted = _c[1];
|
|
12
|
-
useEffect(function () {
|
|
13
|
-
setIsMounted(true);
|
|
14
|
-
}, []);
|
|
15
|
-
var intent = _intent !== null && _intent !== void 0 ? _intent : 'info';
|
|
16
|
-
var _d = statusToColors[intent], fontColor = _d.fontColor, backgroundColor = _d.backgroundColor, fill = _d.fill;
|
|
17
|
-
if (!isOpen)
|
|
18
|
-
return null;
|
|
19
|
-
return (jsx(Portal, { children: jsxs(Container, { "$mounted": isMounted, children: [jsxs(Status, { background: backgroundColor, children: [jsx(Icon, { icon: statusToIcon[intent], fill: fill }), jsx(StatusText, { fontColor: fontColor, children: statusToTitle[intent]() })] }), jsx(Header, { children: title }), jsx(CloseBtn, { onClick: onClose, children: jsx(Icon, { icon: "close", size: "25px" }) }), jsx(Wrapper, { children: children })] }) }));
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export { CornerDialog };
|
|
23
|
-
//# sourceMappingURL=CornerDialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CornerDialog.js","sources":["../../../../packages/ui/Blocks/CornerDialog/CornerDialog.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useEffect, useState } from 'react';\nimport { statusToColors, statusToIcon } from './utils';\nimport { Portal } from '../../Elements/Portal';\nimport { Icon } from '../../Elements/Icon';\nimport { Container, Header, Status, StatusText, Wrapper, CloseBtn } from './styles';\nexport var CornerDialog = function (_a) {\n var title = _a.title, children = _a.children, onClose = _a.onClose, statusToTitle = _a.statusToTitle, _b = _a.isOpen, isOpen = _b === void 0 ? true : _b, _intent = _a.intent;\n var _c = useState(false), isMounted = _c[0], setIsMounted = _c[1];\n useEffect(function () {\n setIsMounted(true);\n }, []);\n var intent = _intent !== null && _intent !== void 0 ? _intent : 'info';\n var _d = statusToColors[intent], fontColor = _d.fontColor, backgroundColor = _d.backgroundColor, fill = _d.fill;\n if (!isOpen)\n return null;\n return (_jsx(Portal, { children: _jsxs(Container, { \"$mounted\": isMounted, children: [_jsxs(Status, { background: backgroundColor, children: [_jsx(Icon, { icon: statusToIcon[intent], fill: fill }), _jsx(StatusText, { fontColor: fontColor, children: statusToTitle[intent]() })] }), _jsx(Header, { children: title }), _jsx(CloseBtn, { onClick: onClose, children: _jsx(Icon, { icon: \"close\", size: \"25px\" }) }), _jsx(Wrapper, { children: children })] }) }));\n};\n//# sourceMappingURL=CornerDialog.js.map"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;AAMU,IAAC,YAAY,GAAG,UAAU,EAAE,EAAE;AACxC,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC,KAAK,EAAE,QAAQ,GAAG,EAAE,CAAC,QAAQ,EAAE,OAAO,GAAG,EAAE,CAAC,OAAO,EAAE,aAAa,GAAG,EAAE,CAAC,aAAa,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,EAAE,KAAK,KAAK,CAAC,GAAG,IAAI,GAAG,EAAE,EAAE,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC;AAClL,IAAI,IAAI,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;AACtE,IAAI,SAAS,CAAC,YAAY;AAC1B,QAAQ,YAAY,CAAC,IAAI,CAAC,CAAC;AAC3B,KAAK,EAAE,EAAE,CAAC,CAAC;AACX,IAAI,IAAI,MAAM,GAAG,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,CAAC,GAAG,OAAO,GAAG,MAAM,CAAC;AAC3E,IAAI,IAAI,EAAE,GAAG,cAAc,CAAC,MAAM,CAAC,EAAE,SAAS,GAAG,EAAE,CAAC,SAAS,EAAE,eAAe,GAAG,EAAE,CAAC,eAAe,EAAE,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;AACpH,IAAI,IAAI,CAAC,MAAM;AACf,QAAQ,OAAO,IAAI,CAAC;AACpB,IAAI,QAAQA,GAAI,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAEC,IAAK,CAAC,SAAS,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,CAACA,IAAK,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,CAACD,GAAI,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAEA,GAAI,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAEA,GAAI,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAEA,GAAI,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAEA,GAAI,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,EAAEA,GAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AAC3c;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from 'tslib';
|
|
2
|
-
import styled, { th } from '@xstyled/styled-components';
|
|
3
|
-
|
|
4
|
-
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: fixed;\n z-index: 10;\n bottom: 3rem;\n right: 3rem;\n background: white;\n border-radius: 12px;\n box-shadow: cornerDialogShadow;\n width: 400px;\n padding: 50px 30px 30px;\n color: typoPrimary;\n transition: opacity 225ms linear;\n opacity: ", ";\n"], ["\n position: fixed;\n z-index: 10;\n bottom: 3rem;\n right: 3rem;\n background: white;\n border-radius: 12px;\n box-shadow: cornerDialogShadow;\n width: 400px;\n padding: 50px 30px 30px;\n color: typoPrimary;\n transition: opacity 225ms linear;\n opacity: ", ";\n"])), function (_a) {
|
|
5
|
-
var $mounted = _a.$mounted;
|
|
6
|
-
return ($mounted ? 1 : 0);
|
|
7
|
-
});
|
|
8
|
-
var Header = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-bottom: 15px;\n color: typoPrimary;\n font-size: 18px;\n font-weight: bold;\n display: flex;\n align-items: center;\n"], ["\n margin-bottom: 15px;\n color: typoPrimary;\n font-size: 18px;\n font-weight: bold;\n display: flex;\n align-items: center;\n"])));
|
|
9
|
-
var Wrapper = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-size: 14px;\n font-weight: 400;\n"], ["\n font-size: 14px;\n font-weight: 400;\n"])));
|
|
10
|
-
var Status = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: absolute;\n left: 0;\n top: 0;\n padding: 6px 10px;\n text-transform: uppercase;\n border-radius: 12px 0 12px 0;\n background-color: ", ";\n"], ["\n position: absolute;\n left: 0;\n top: 0;\n padding: 6px 10px;\n text-transform: uppercase;\n border-radius: 12px 0 12px 0;\n background-color: ", ";\n"])), function (_a) {
|
|
11
|
-
var background = _a.background;
|
|
12
|
-
return th.color(background);
|
|
13
|
-
});
|
|
14
|
-
var CloseBtn = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n cursor: pointer;\n position: absolute;\n top: 12px;\n right: 12px;\n"], ["\n cursor: pointer;\n position: absolute;\n top: 12px;\n right: 12px;\n"])));
|
|
15
|
-
var StatusText = styled.span(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: inline-block;\n margin-left: 6px;\n font-size: 14px;\n font-weight: 700;\n color: ", ";\n"], ["\n display: inline-block;\n margin-left: 6px;\n font-size: 14px;\n font-weight: 700;\n color: ", ";\n"])), function (_a) {
|
|
16
|
-
var fontColor = _a.fontColor;
|
|
17
|
-
return th.color(fontColor);
|
|
18
|
-
});
|
|
19
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
20
|
-
|
|
21
|
-
export { CloseBtn, Container, Header, Status, StatusText, Wrapper };
|
|
22
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../packages/ui/Blocks/CornerDialog/styles.ts"],"sourcesContent":["import { __makeTemplateObject } from \"tslib\";\nimport styled, { th } from '@xstyled/styled-components';\nexport var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject([\"\\n position: fixed;\\n z-index: 10;\\n bottom: 3rem;\\n right: 3rem;\\n background: white;\\n border-radius: 12px;\\n box-shadow: cornerDialogShadow;\\n width: 400px;\\n padding: 50px 30px 30px;\\n color: typoPrimary;\\n transition: opacity 225ms linear;\\n opacity: \", \";\\n\"], [\"\\n position: fixed;\\n z-index: 10;\\n bottom: 3rem;\\n right: 3rem;\\n background: white;\\n border-radius: 12px;\\n box-shadow: cornerDialogShadow;\\n width: 400px;\\n padding: 50px 30px 30px;\\n color: typoPrimary;\\n transition: opacity 225ms linear;\\n opacity: \", \";\\n\"])), function (_a) {\n var $mounted = _a.$mounted;\n return ($mounted ? 1 : 0);\n});\nexport var Header = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject([\"\\n margin-bottom: 15px;\\n color: typoPrimary;\\n font-size: 18px;\\n font-weight: bold;\\n display: flex;\\n align-items: center;\\n\"], [\"\\n margin-bottom: 15px;\\n color: typoPrimary;\\n font-size: 18px;\\n font-weight: bold;\\n display: flex;\\n align-items: center;\\n\"])));\nexport var Wrapper = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject([\"\\n font-size: 14px;\\n font-weight: 400;\\n\"], [\"\\n font-size: 14px;\\n font-weight: 400;\\n\"])));\nexport var Status = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject([\"\\n position: absolute;\\n left: 0;\\n top: 0;\\n padding: 6px 10px;\\n text-transform: uppercase;\\n border-radius: 12px 0 12px 0;\\n background-color: \", \";\\n\"], [\"\\n position: absolute;\\n left: 0;\\n top: 0;\\n padding: 6px 10px;\\n text-transform: uppercase;\\n border-radius: 12px 0 12px 0;\\n background-color: \", \";\\n\"])), function (_a) {\n var background = _a.background;\n return th.color(background);\n});\nexport var CloseBtn = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject([\"\\n cursor: pointer;\\n position: absolute;\\n top: 12px;\\n right: 12px;\\n\"], [\"\\n cursor: pointer;\\n position: absolute;\\n top: 12px;\\n right: 12px;\\n\"])));\nexport var StatusText = styled.span(templateObject_6 || (templateObject_6 = __makeTemplateObject([\"\\n display: inline-block;\\n margin-left: 6px;\\n font-size: 14px;\\n font-weight: 700;\\n color: \", \";\\n\"], [\"\\n display: inline-block;\\n margin-left: 6px;\\n font-size: 14px;\\n font-weight: 700;\\n color: \", \";\\n\"])), function (_a) {\n var fontColor = _a.fontColor;\n return th.color(fontColor);\n});\nvar templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;\n//# sourceMappingURL=styles.js.map"],"names":[],"mappings":";;;AAEU,IAAC,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,8QAA8Q,EAAE,KAAK,CAAC,EAAE,CAAC,8QAA8Q,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE;AACjqB,IAAI,IAAI,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC;AAC/B,IAAI,QAAQ,QAAQ,GAAG,CAAC,GAAG,CAAC,EAAE;AAC9B,CAAC,EAAE;AACO,IAAC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,uIAAuI,CAAC,EAAE,CAAC,uIAAuI,CAAC,CAAC,CAAC,EAAE;AAC1W,IAAC,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,6CAA6C,CAAC,EAAE,CAAC,6CAA6C,CAAC,CAAC,CAAC,EAAE;AACvL,IAAC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,2JAA2J,EAAE,KAAK,CAAC,EAAE,CAAC,2JAA2J,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE;AACxb,IAAI,IAAI,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AACnC,IAAI,OAAO,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;AAChC,CAAC,EAAE;AACO,IAAC,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,6EAA6E,CAAC,EAAE,CAAC,6EAA6E,CAAC,CAAC,CAAC,EAAE;AACxP,IAAC,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,qGAAqG,EAAE,KAAK,CAAC,EAAE,CAAC,qGAAqG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE;AACjV,IAAI,IAAI,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC;AACjC,IAAI,OAAO,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAC/B,CAAC,EAAE;AACH,IAAI,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB;;;;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ReactChild } from 'react';
|
|
2
|
-
|
|
3
|
-
type Intent = 'success' | 'error' | 'warning' | 'info';
|
|
4
|
-
interface CornerDialogProps {
|
|
5
|
-
title: JSX.Element | string;
|
|
6
|
-
children: ReactChild;
|
|
7
|
-
icon?: string;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
isOpen?: boolean;
|
|
10
|
-
intent?: Intent;
|
|
11
|
-
statusToTitle: Record<Intent, () => string>;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { CornerDialogProps, Intent };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var statusToColors = {
|
|
2
|
-
info: { fontColor: 'gray1', backgroundColor: 'lightGray7', fill: 'gray1' },
|
|
3
|
-
success: { fontColor: 'white', backgroundColor: 'green', fill: 'white' },
|
|
4
|
-
error: { fontColor: 'white', backgroundColor: 'red1', fill: 'white' },
|
|
5
|
-
warning: { fontColor: 'blue2', backgroundColor: 'yellow1', fill: 'blue2' },
|
|
6
|
-
};
|
|
7
|
-
var statusToIcon = {
|
|
8
|
-
info: 'info',
|
|
9
|
-
success: 'circleCheck',
|
|
10
|
-
error: 'circleX',
|
|
11
|
-
warning: 'circleTriangle',
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { statusToColors, statusToIcon };
|
|
15
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../../packages/ui/Blocks/CornerDialog/utils.ts"],"sourcesContent":["export var statusToColors = {\n info: { fontColor: 'gray1', backgroundColor: 'lightGray7', fill: 'gray1' },\n success: { fontColor: 'white', backgroundColor: 'green', fill: 'white' },\n error: { fontColor: 'white', backgroundColor: 'red1', fill: 'white' },\n warning: { fontColor: 'blue2', backgroundColor: 'yellow1', fill: 'blue2' },\n};\nexport var statusToIcon = {\n info: 'info',\n success: 'circleCheck',\n error: 'circleX',\n warning: 'circleTriangle',\n};\n//# sourceMappingURL=utils.js.map"],"names":[],"mappings":"AAAU,IAAC,cAAc,GAAG;AAC5B,IAAI,IAAI,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE;AAC9E,IAAI,OAAO,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;AAC5E,IAAI,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE;AACzE,IAAI,OAAO,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE;AAC9E,EAAE;AACQ,IAAC,YAAY,GAAG;AAC1B,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,aAAa;AAC1B,IAAI,KAAK,EAAE,SAAS;AACpB,IAAI,OAAO,EAAE,gBAAgB;AAC7B;;;;"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { __assign } from 'tslib';
|
|
2
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { useRef } from 'react';
|
|
4
|
-
import { useDraggable } from 'react-use-draggable-scroll';
|
|
5
|
-
import { LightBox } from '../LightBox/LightBox.js';
|
|
6
|
-
import { useLightBox } from '../LightBox/hooks/useLightBox.js';
|
|
7
|
-
import { AddPhoto } from './components/AddPhoto/index.js';
|
|
8
|
-
import { ImageElement } from './components/ImageElement/index.js';
|
|
9
|
-
import { x } from '@xstyled/styled-components';
|
|
10
|
-
import { ImageListContainer } from './styles.js';
|
|
11
|
-
|
|
12
|
-
var ImageList = function (_a) {
|
|
13
|
-
var onImageUpload = _a.onImageUpload, onImageRemove = _a.onImageRemove, lightBoxAction = _a.lightBoxAction, lightBoxActionTitle = _a.lightBoxActionTitle, images = _a.images, isDisabled = _a.isDisabled;
|
|
14
|
-
var ref = useRef();
|
|
15
|
-
var events = useDraggable(ref, { isMounted: !!(images === null || images === void 0 ? void 0 : images.length) }).events;
|
|
16
|
-
var _b = useLightBox(), isLightBoxOpen = _b.isLightBoxOpen, onCloseLightBox = _b.onCloseLightBox, onOpenLightBox = _b.onOpenLightBox, lightBoxData = _b.lightBoxData;
|
|
17
|
-
return (jsxs(x.div, { display: "flex", alignItems: "flex-end", children: [jsx(AddPhoto, { onImageUpload: onImageUpload, isDisabled: isDisabled }), images && (jsx(ImageListContainer, __assign({ ref: ref }, events, { children: images.map(function (item, index) {
|
|
18
|
-
var _a, _b;
|
|
19
|
-
return (jsx(ImageElement, { imageUrl: (_a = item.smallUrl) !== null && _a !== void 0 ? _a : item.url, onImageRemove: onImageRemove === null || onImageRemove === void 0 ? void 0 : onImageRemove(item.id), onOpenLightBox: onOpenLightBox(index), isDisabled: isDisabled }, (_b = item.id) !== null && _b !== void 0 ? _b : index));
|
|
20
|
-
}) }))), jsx(LightBox, { initialSlide: lightBoxData === null || lightBoxData === void 0 ? void 0 : lightBoxData.initialSlide, isLightBoxOpen: isLightBoxOpen, onCloseLightBox: onCloseLightBox, lightBoxAction: lightBoxAction, lightBoxActionTitle: lightBoxActionTitle, images: images })] }));
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export { ImageList };
|
|
24
|
-
//# sourceMappingURL=ImageList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageList.js","sources":["../../../../packages/ui/Blocks/ImageList/ImageList.tsx"],"sourcesContent":["import { __assign } from \"tslib\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useRef } from 'react';\nimport { useDraggable } from 'react-use-draggable-scroll';\nimport LightBox, { useLightBox } from '../LightBox';\nimport { AddPhoto } from './components/AddPhoto';\nimport { ImageElement } from './components/ImageElement';\nimport { x } from '@xstyled/styled-components';\nimport { ImageListContainer } from './styles';\nexport var ImageList = function (_a) {\n var onImageUpload = _a.onImageUpload, onImageRemove = _a.onImageRemove, lightBoxAction = _a.lightBoxAction, lightBoxActionTitle = _a.lightBoxActionTitle, images = _a.images, isDisabled = _a.isDisabled;\n var ref = useRef();\n var events = useDraggable(ref, { isMounted: !!(images === null || images === void 0 ? void 0 : images.length) }).events;\n var _b = useLightBox(), isLightBoxOpen = _b.isLightBoxOpen, onCloseLightBox = _b.onCloseLightBox, onOpenLightBox = _b.onOpenLightBox, lightBoxData = _b.lightBoxData;\n return (_jsxs(x.div, { display: \"flex\", alignItems: \"flex-end\", children: [_jsx(AddPhoto, { onImageUpload: onImageUpload, isDisabled: isDisabled }), images && (_jsx(ImageListContainer, __assign({ ref: ref }, events, { children: images.map(function (item, index) {\n var _a, _b;\n return (_jsx(ImageElement, { imageUrl: (_a = item.smallUrl) !== null && _a !== void 0 ? _a : item.url, onImageRemove: onImageRemove === null || onImageRemove === void 0 ? void 0 : onImageRemove(item.id), onOpenLightBox: onOpenLightBox(index), isDisabled: isDisabled }, (_b = item.id) !== null && _b !== void 0 ? _b : index));\n }) }))), _jsx(LightBox, { initialSlide: lightBoxData === null || lightBoxData === void 0 ? void 0 : lightBoxData.initialSlide, isLightBoxOpen: isLightBoxOpen, onCloseLightBox: onCloseLightBox, lightBoxAction: lightBoxAction, lightBoxActionTitle: lightBoxActionTitle, images: images })] }));\n};\n//# sourceMappingURL=ImageList.js.map"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;AASU,IAAC,SAAS,GAAG,UAAU,EAAE,EAAE;AACrC,IAAI,IAAI,aAAa,GAAG,EAAE,CAAC,aAAa,EAAE,aAAa,GAAG,EAAE,CAAC,aAAa,EAAE,cAAc,GAAG,EAAE,CAAC,cAAc,EAAE,mBAAmB,GAAG,EAAE,CAAC,mBAAmB,EAAE,MAAM,GAAG,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AAC7M,IAAI,IAAI,GAAG,GAAG,MAAM,EAAE,CAAC;AACvB,IAAI,IAAI,MAAM,GAAG,YAAY,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC;AAC5H,IAAI,IAAI,EAAE,GAAG,WAAW,EAAE,EAAE,cAAc,GAAG,EAAE,CAAC,cAAc,EAAE,eAAe,GAAG,EAAE,CAAC,eAAe,EAAE,cAAc,GAAG,EAAE,CAAC,cAAc,EAAE,YAAY,GAAG,EAAE,CAAC,YAAY,CAAC;AACzK,IAAI,QAAQA,IAAK,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,CAACC,GAAI,CAAC,QAAQ,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,KAAKA,GAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,UAAU,IAAI,EAAE,KAAK,EAAE;AAC1Q,oBAAoB,IAAI,EAAE,EAAE,EAAE,CAAC;AAC/B,oBAAoB,QAAQA,GAAI,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,aAAa,EAAE,aAAa,KAAK,IAAI,IAAI,aAAa,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,EAAE;AACzV,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC,EAAEA,GAAI,CAAC,QAAQ,EAAE,EAAE,YAAY,EAAE,YAAY,KAAK,IAAI,IAAI,YAAY,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,YAAY,CAAC,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE;AAClT;;;;"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { __awaiter, __generator } from 'tslib';
|
|
2
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { useCallback } from 'react';
|
|
4
|
-
import { Container, HiddenInput } from './styles.js';
|
|
5
|
-
import { AddPhoto as AddPhoto$1 } from '../../../../Elements/Icon/icons/AddPhoto.js';
|
|
6
|
-
|
|
7
|
-
var AddPhoto = function (_a) {
|
|
8
|
-
var onImageUpload = _a.onImageUpload, isDisabled = _a.isDisabled;
|
|
9
|
-
var handleImageUpload = useCallback(function (event) {
|
|
10
|
-
var _a, _b;
|
|
11
|
-
if (!((_b = (_a = event.target) === null || _a === void 0 ? void 0 : _a.files) === null || _b === void 0 ? void 0 : _b[0]))
|
|
12
|
-
return;
|
|
13
|
-
var reader = new FileReader();
|
|
14
|
-
reader.readAsDataURL(event.target.files[0]);
|
|
15
|
-
reader.onload = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
16
|
-
var _a, _b;
|
|
17
|
-
return __generator(this, function (_c) {
|
|
18
|
-
switch (_c.label) {
|
|
19
|
-
case 0: return [4 /*yield*/, (onImageUpload === null || onImageUpload === void 0 ? void 0 : onImageUpload({
|
|
20
|
-
base64image: (_a = reader.result) === null || _a === void 0 ? void 0 : _a.split(',').pop(),
|
|
21
|
-
base64WithDataDeclaration: reader.result,
|
|
22
|
-
file: (_b = event.target.files) === null || _b === void 0 ? void 0 : _b[0],
|
|
23
|
-
}))];
|
|
24
|
-
case 1:
|
|
25
|
-
_c.sent();
|
|
26
|
-
return [2 /*return*/];
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}); };
|
|
30
|
-
}, [onImageUpload]);
|
|
31
|
-
if (!onImageUpload)
|
|
32
|
-
return null;
|
|
33
|
-
return (jsxs(Container, { isDisabled: isDisabled, children: [jsx(HiddenInput, { disabled: isDisabled, onChange: handleImageUpload, type: "file", accept: "image/*" }), jsx(AddPhoto$1, { width: "36", height: "36" })] }));
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export { AddPhoto };
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../packages/ui/Blocks/ImageList/components/AddPhoto/index.tsx"],"sourcesContent":["import { __awaiter, __generator } from \"tslib\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useCallback } from 'react';\nimport { Container, HiddenInput } from './styles';\nimport { AddPhoto as AddPhotoIcon } from '../../../../Elements/Icon/icons/AddPhoto';\nexport var AddPhoto = function (_a) {\n var onImageUpload = _a.onImageUpload, isDisabled = _a.isDisabled;\n var handleImageUpload = useCallback(function (event) {\n var _a, _b;\n if (!((_b = (_a = event.target) === null || _a === void 0 ? void 0 : _a.files) === null || _b === void 0 ? void 0 : _b[0]))\n return;\n var reader = new FileReader();\n reader.readAsDataURL(event.target.files[0]);\n reader.onload = function () { return __awaiter(void 0, void 0, void 0, function () {\n var _a, _b;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0: return [4 /*yield*/, (onImageUpload === null || onImageUpload === void 0 ? void 0 : onImageUpload({\n base64image: (_a = reader.result) === null || _a === void 0 ? void 0 : _a.split(',').pop(),\n base64WithDataDeclaration: reader.result,\n file: (_b = event.target.files) === null || _b === void 0 ? void 0 : _b[0],\n }))];\n case 1:\n _c.sent();\n return [2 /*return*/];\n }\n });\n }); };\n }, [onImageUpload]);\n if (!onImageUpload)\n return null;\n return (_jsxs(Container, { isDisabled: isDisabled, children: [_jsx(HiddenInput, { disabled: isDisabled, onChange: handleImageUpload, type: \"file\", accept: \"image/*\" }), _jsx(AddPhotoIcon, { width: \"36\", height: \"36\" })] }));\n};\n//# sourceMappingURL=index.js.map"],"names":["_jsxs","_jsx","AddPhotoIcon"],"mappings":";;;;;;AAKU,IAAC,QAAQ,GAAG,UAAU,EAAE,EAAE;AACpC,IAAI,IAAI,aAAa,GAAG,EAAE,CAAC,aAAa,EAAE,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AACrE,IAAI,IAAI,iBAAiB,GAAG,WAAW,CAAC,UAAU,KAAK,EAAE;AACzD,QAAQ,IAAI,EAAE,EAAE,EAAE,CAAC;AACnB,QAAQ,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC,MAAM,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;AAClI,YAAY,OAAO;AACnB,QAAQ,IAAI,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;AACtC,QAAQ,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,QAAQ,MAAM,CAAC,MAAM,GAAG,YAAY,EAAE,OAAO,SAAS,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,YAAY;AAC3F,YAAY,IAAI,EAAE,EAAE,EAAE,CAAC;AACvB,YAAY,OAAO,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE;AACnD,gBAAgB,QAAQ,EAAE,CAAC,KAAK;AAChC,oBAAoB,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC,aAAa,aAAa,KAAK,IAAI,IAAI,aAAa,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC;AAC9H,4BAA4B,WAAW,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE;AACtH,4BAA4B,yBAAyB,EAAE,MAAM,CAAC,MAAM;AACpE,4BAA4B,IAAI,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;AACtG,yBAAyB,CAAC,EAAE,CAAC;AAC7B,oBAAoB,KAAK,CAAC;AAC1B,wBAAwB,EAAE,CAAC,IAAI,EAAE,CAAC;AAClC,wBAAwB,OAAO,CAAC,CAAC,YAAY,CAAC;AAC9C,iBAAiB;AACjB,aAAa,CAAC,CAAC;AACf,SAAS,CAAC,CAAC,EAAE,CAAC;AACd,KAAK,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;AACxB,IAAI,IAAI,CAAC,aAAa;AACtB,QAAQ,OAAO,IAAI,CAAC;AACpB,IAAI,QAAQA,IAAK,CAAC,SAAS,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,CAACC,GAAI,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,EAAEA,GAAI,CAACC,UAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE;AACpO;;;;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from 'tslib';
|
|
2
|
-
import styled, { th } from '@xstyled/styled-components';
|
|
3
|
-
|
|
4
|
-
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n flex-shrink: 0;\n transition: all 0.2s linear;\n height: 85px !important;\n width: 85px !important;\n border-radius: ", ";\n border: ", ";\n border-color: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n margin-right: 15px;\n opacity: ", ";\n"], ["\n position: relative;\n flex-shrink: 0;\n transition: all 0.2s linear;\n height: 85px !important;\n width: 85px !important;\n border-radius: ", ";\n border: ", ";\n border-color: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n margin-right: 15px;\n opacity: ", ";\n"])), th.radius('lg'), th.border('mediumSlim'), th.color('red1'), function (_a) {
|
|
5
|
-
var isDisabled = _a.isDisabled;
|
|
6
|
-
return (isDisabled ? 0.6 : 1);
|
|
7
|
-
});
|
|
8
|
-
var HiddenInput = styled.input(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n"], ["\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n"])));
|
|
9
|
-
var templateObject_1, templateObject_2;
|
|
10
|
-
|
|
11
|
-
export { Container, HiddenInput };
|
|
12
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../../../packages/ui/Blocks/ImageList/components/AddPhoto/styles.ts"],"sourcesContent":["import { __makeTemplateObject } from \"tslib\";\nimport styled, { th } from '@xstyled/styled-components';\nexport var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject([\"\\n position: relative;\\n flex-shrink: 0;\\n transition: all 0.2s linear;\\n height: 85px !important;\\n width: 85px !important;\\n border-radius: \", \";\\n border: \", \";\\n border-color: \", \";\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n cursor: pointer;\\n margin-right: 15px;\\n opacity: \", \";\\n\"], [\"\\n position: relative;\\n flex-shrink: 0;\\n transition: all 0.2s linear;\\n height: 85px !important;\\n width: 85px !important;\\n border-radius: \", \";\\n border: \", \";\\n border-color: \", \";\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n cursor: pointer;\\n margin-right: 15px;\\n opacity: \", \";\\n\"])), th.radius('lg'), th.border('mediumSlim'), th.color('red1'), function (_a) {\n var isDisabled = _a.isDisabled;\n return (isDisabled ? 0.6 : 1);\n});\nexport var HiddenInput = styled.input(templateObject_2 || (templateObject_2 = __makeTemplateObject([\"\\n opacity: 0;\\n position: absolute;\\n top: 0;\\n left: 0;\\n width: 100%;\\n height: 100%;\\n cursor: pointer;\\n\"], [\"\\n opacity: 0;\\n position: absolute;\\n top: 0;\\n left: 0;\\n width: 100%;\\n height: 100%;\\n cursor: pointer;\\n\"])));\nvar templateObject_1, templateObject_2;\n//# sourceMappingURL=styles.js.map"],"names":[],"mappings":";;;AAEU,IAAC,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,sJAAsJ,EAAE,eAAe,EAAE,qBAAqB,EAAE,iIAAiI,EAAE,KAAK,CAAC,EAAE,CAAC,sJAAsJ,EAAE,eAAe,EAAE,qBAAqB,EAAE,iIAAiI,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,EAAE;AACn0B,IAAI,IAAI,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AACnC,IAAI,QAAQ,UAAU,GAAG,GAAG,GAAG,CAAC,EAAE;AAClC,CAAC,EAAE;AACO,IAAC,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,sHAAsH,CAAC,EAAE,CAAC,sHAAsH,CAAC,CAAC,CAAC,EAAE;AACzV,IAAI,gBAAgB,EAAE,gBAAgB;;;;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import Icon from '../../../../Elements/Icon/Icon.js';
|
|
3
|
-
import 'tslib';
|
|
4
|
-
import { Container } from './styles.js';
|
|
5
|
-
|
|
6
|
-
var CloseButton = function (_a) {
|
|
7
|
-
var onImageRemove = _a.onImageRemove, isDisabled = _a.isDisabled;
|
|
8
|
-
return (jsx(Container, { onClick: !isDisabled ? onImageRemove : undefined, isDisabled: isDisabled, children: jsx(Icon, { icon: "close", size: "22px", fill: isDisabled ? 'magenta60' : 'red1' }) }));
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export { CloseButton };
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../packages/ui/Blocks/ImageList/components/CloseButton/index.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Icon } from '../../../../Elements/Icon';\nimport { Container } from './styles';\nexport var CloseButton = function (_a) {\n var onImageRemove = _a.onImageRemove, isDisabled = _a.isDisabled;\n return (_jsx(Container, { onClick: !isDisabled ? onImageRemove : undefined, isDisabled: isDisabled, children: _jsx(Icon, { icon: \"close\", size: \"22px\", fill: isDisabled ? 'magenta60' : 'red1' }) }));\n};\n//# sourceMappingURL=index.js.map"],"names":["_jsx"],"mappings":";;;;;AAGU,IAAC,WAAW,GAAG,UAAU,EAAE,EAAE;AACvC,IAAI,IAAI,aAAa,GAAG,EAAE,CAAC,aAAa,EAAE,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AACrE,IAAI,QAAQA,GAAI,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,UAAU,GAAG,aAAa,GAAG,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAEA,GAAI,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE;AAC3M;;;;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from 'tslib';
|
|
2
|
-
import styled, { th } from '@xstyled/styled-components';
|
|
3
|
-
|
|
4
|
-
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n width: 30px;\n height: 30px;\n background-color: ", ";\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s linear;\n"], ["\n position: absolute;\n top: 0;\n right: 0;\n width: 30px;\n height: 30px;\n background-color: ", ";\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s linear;\n"])), function (_a) {
|
|
5
|
-
var isDisabled = _a.isDisabled;
|
|
6
|
-
return th.color(isDisabled ? 'bgLightGray1' : 'red20');
|
|
7
|
-
});
|
|
8
|
-
var templateObject_1;
|
|
9
|
-
|
|
10
|
-
export { Container };
|
|
11
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../../../packages/ui/Blocks/ImageList/components/CloseButton/styles.ts"],"sourcesContent":["import { __makeTemplateObject } from \"tslib\";\nimport styled, { th } from '@xstyled/styled-components';\nexport var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject([\"\\n position: absolute;\\n top: 0;\\n right: 0;\\n width: 30px;\\n height: 30px;\\n background-color: \", \";\\n border-radius: 50%;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n cursor: pointer;\\n transition: all 0.2s linear;\\n\"], [\"\\n position: absolute;\\n top: 0;\\n right: 0;\\n width: 30px;\\n height: 30px;\\n background-color: \", \";\\n border-radius: 50%;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n cursor: pointer;\\n transition: all 0.2s linear;\\n\"])), function (_a) {\n var isDisabled = _a.isDisabled;\n return th.color(isDisabled ? 'bgLightGray1' : 'red20');\n});\nvar templateObject_1;\n//# sourceMappingURL=styles.js.map"],"names":[],"mappings":";;;AAEU,IAAC,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,wGAAwG,EAAE,sJAAsJ,CAAC,EAAE,CAAC,wGAAwG,EAAE,sJAAsJ,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE;AACvnB,IAAI,IAAI,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AACnC,IAAI,OAAO,EAAE,CAAC,KAAK,CAAC,UAAU,GAAG,cAAc,GAAG,OAAO,CAAC,CAAC;AAC3D,CAAC,EAAE;AACH,IAAI,gBAAgB;;;;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Image } from './styles.js';
|
|
3
|
-
import { ImageTag } from '../ImageTag/index.js';
|
|
4
|
-
import { CloseButton } from '../CloseButton/index.js';
|
|
5
|
-
import { x } from '@xstyled/styled-components';
|
|
6
|
-
|
|
7
|
-
var ImageElement = function (_a) {
|
|
8
|
-
var label = _a.label, onImageRemove = _a.onImageRemove, isDisabled = _a.isDisabled, onOpenLightBox = _a.onOpenLightBox, imageUrl = _a.imageUrl;
|
|
9
|
-
if (!imageUrl)
|
|
10
|
-
return null;
|
|
11
|
-
return (jsxs(x.div, { position: "relative", pr: "15px", pt: "15px", w: "100px", children: [jsx(Image, { src: imageUrl, alt: "", width: "85px", height: "85px", onClick: onOpenLightBox }), onImageRemove && jsx(CloseButton, { onImageRemove: onImageRemove, isDisabled: isDisabled }), jsx(ImageTag, { label: label })] }));
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { ImageElement };
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../packages/ui/Blocks/ImageList/components/ImageElement/index.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Image } from './styles';\nimport { ImageTag } from '../ImageTag';\nimport { CloseButton } from '../CloseButton';\nimport { x } from '@xstyled/styled-components';\nexport var ImageElement = function (_a) {\n var label = _a.label, onImageRemove = _a.onImageRemove, isDisabled = _a.isDisabled, onOpenLightBox = _a.onOpenLightBox, imageUrl = _a.imageUrl;\n if (!imageUrl)\n return null;\n return (_jsxs(x.div, { position: \"relative\", pr: \"15px\", pt: \"15px\", w: \"100px\", children: [_jsx(Image, { src: imageUrl, alt: \"\", width: \"85px\", height: \"85px\", onClick: onOpenLightBox }), onImageRemove && _jsx(CloseButton, { onImageRemove: onImageRemove, isDisabled: isDisabled }), _jsx(ImageTag, { label: label })] }));\n};\n//# sourceMappingURL=index.js.map"],"names":["_jsxs","_jsx"],"mappings":";;;;;;AAKU,IAAC,YAAY,GAAG,UAAU,EAAE,EAAE;AACxC,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,EAAE,CAAC,aAAa,EAAE,UAAU,GAAG,EAAE,CAAC,UAAU,EAAE,cAAc,GAAG,EAAE,CAAC,cAAc,EAAE,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC;AACnJ,IAAI,IAAI,CAAC,QAAQ;AACjB,QAAQ,OAAO,IAAI,CAAC;AACpB,IAAI,QAAQA,IAAK,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAACC,GAAI,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC,EAAE,aAAa,IAAIA,GAAI,CAAC,WAAW,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,EAAEA,GAAI,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE;AACrU;;;;"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from 'tslib';
|
|
2
|
-
import styled, { th } from '@xstyled/styled-components';
|
|
3
|
-
|
|
4
|
-
styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
|
|
5
|
-
var Image = styled.img(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-radius: ", ";\n"], ["\n border-radius: ", ";\n"])), th.radius('lg'));
|
|
6
|
-
var templateObject_1, templateObject_2;
|
|
7
|
-
|
|
8
|
-
export { Image };
|
|
9
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../../../packages/ui/Blocks/ImageList/components/ImageElement/styles.ts"],"sourcesContent":["import { __makeTemplateObject } from \"tslib\";\nimport styled, { th } from '@xstyled/styled-components';\nexport var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject([\"\"], [\"\"])));\nexport var Image = styled.img(templateObject_2 || (templateObject_2 = __makeTemplateObject([\"\\n border-radius: \", \";\\n\"], [\"\\n border-radius: \", \";\\n\"])), th.radius('lg'));\nvar templateObject_1, templateObject_2;\n//# sourceMappingURL=styles.js.map"],"names":[],"mappings":";;;AAEuB,MAAM,CAAC,GAAG,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;AACnG,IAAC,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;AAC9K,IAAI,gBAAgB,EAAE,gBAAgB;;;;"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import Tag from '../../../../Elements/Tag/Tag.js';
|
|
3
|
-
import { Container } from './styles.js';
|
|
4
|
-
|
|
5
|
-
var ImageTag = function (_a) {
|
|
6
|
-
var label = _a.label;
|
|
7
|
-
if (!label)
|
|
8
|
-
return null;
|
|
9
|
-
return (jsx(Container, { children: jsx(Tag, { size: "small", color: "darkGreen", textColor: "white", children: jsx("b", { children: label }) }) }));
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { ImageTag };
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../packages/ui/Blocks/ImageList/components/ImageTag/index.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport Tag from '../../../../Elements/Tag';\nimport { Container } from './styles';\nexport var ImageTag = function (_a) {\n var label = _a.label;\n if (!label)\n return null;\n return (_jsx(Container, { children: _jsx(Tag, { size: \"small\", color: \"darkGreen\", textColor: \"white\", children: _jsx(\"b\", { children: label }) }) }));\n};\n//# sourceMappingURL=index.js.map"],"names":["_jsx"],"mappings":";;;;AAGU,IAAC,QAAQ,GAAG,UAAU,EAAE,EAAE;AACpC,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC;AACzB,IAAI,IAAI,CAAC,KAAK;AACd,QAAQ,OAAO,IAAI,CAAC;AACpB,IAAI,QAAQA,GAAI,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAEA,GAAI,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAEA,GAAI,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AAC3J;;;;"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from 'tslib';
|
|
2
|
-
import styled from '@xstyled/styled-components';
|
|
3
|
-
|
|
4
|
-
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n bottom: 2px;\n left: 2px;\n"], ["\n position: absolute;\n bottom: 2px;\n left: 2px;\n"])));
|
|
5
|
-
var templateObject_1;
|
|
6
|
-
|
|
7
|
-
export { Container };
|
|
8
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../../../packages/ui/Blocks/ImageList/components/ImageTag/styles.ts"],"sourcesContent":["import { __makeTemplateObject } from \"tslib\";\nimport styled from '@xstyled/styled-components';\nexport var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject([\"\\n position: absolute;\\n bottom: 2px;\\n left: 2px;\\n\"], [\"\\n position: absolute;\\n bottom: 2px;\\n left: 2px;\\n\"])));\nvar templateObject_1;\n//# sourceMappingURL=styles.js.map"],"names":[],"mappings":";;;AAEU,IAAC,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,yDAAyD,CAAC,EAAE,CAAC,yDAAyD,CAAC,CAAC,CAAC,EAAE;AAC3N,IAAI,gBAAgB;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from 'tslib';
|
|
2
|
-
import styled from '@xstyled/styled-components';
|
|
3
|
-
|
|
4
|
-
var ImageListContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n overflow-x: scroll;\n -ms-overflow-style: none;\n scrollbar-width: none;\n position: relative;\n\n &::-webkit-scrollbar {\n display: none;\n }\n"], ["\n display: flex;\n overflow-x: scroll;\n -ms-overflow-style: none;\n scrollbar-width: none;\n position: relative;\n\n &::-webkit-scrollbar {\n display: none;\n }\n"])));
|
|
5
|
-
var templateObject_1;
|
|
6
|
-
|
|
7
|
-
export { ImageListContainer };
|
|
8
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../packages/ui/Blocks/ImageList/styles.ts"],"sourcesContent":["import { __makeTemplateObject } from \"tslib\";\nimport styled from '@xstyled/styled-components';\nexport var ImageListContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject([\"\\n display: flex;\\n overflow-x: scroll;\\n -ms-overflow-style: none;\\n scrollbar-width: none;\\n position: relative;\\n\\n &::-webkit-scrollbar {\\n display: none;\\n }\\n\"], [\"\\n display: flex;\\n overflow-x: scroll;\\n -ms-overflow-style: none;\\n scrollbar-width: none;\\n position: relative;\\n\\n &::-webkit-scrollbar {\\n display: none;\\n }\\n\"])));\nvar templateObject_1;\n//# sourceMappingURL=styles.js.map"],"names":[],"mappings":";;;AAEU,IAAC,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,gLAAgL,CAAC,EAAE,CAAC,gLAAgL,CAAC,CAAC,CAAC,EAAE;AACld,IAAI,gBAAgB;;;;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ImageData } from '../LightBox/types.js';
|
|
2
|
-
|
|
3
|
-
interface ImageUploadProps {
|
|
4
|
-
base64image?: string;
|
|
5
|
-
base64WithDataDeclaration?: string;
|
|
6
|
-
file?: File;
|
|
7
|
-
}
|
|
8
|
-
interface ImageListProps {
|
|
9
|
-
images: ImageData[] | undefined;
|
|
10
|
-
onImageUpload?: (props: ImageUploadProps) => Promise<void>;
|
|
11
|
-
onImageRemove?: (id?: string) => () => void;
|
|
12
|
-
lightBoxAction?: (id?: string) => () => Promise<void>;
|
|
13
|
-
lightBoxActionTitle?: string;
|
|
14
|
-
isDisabled?: boolean;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { ImageListProps, ImageUploadProps };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import Button from '../../Elements/Button/Button.js';
|
|
3
|
-
import { Modal } from '../Modal/Modal.js';
|
|
4
|
-
import 'react';
|
|
5
|
-
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
6
|
-
import { Container, Image, ButtonContainer } from './styles.js';
|
|
7
|
-
|
|
8
|
-
var LightBox = function (_a) {
|
|
9
|
-
var isLightBoxOpen = _a.isLightBoxOpen, onCloseLightBox = _a.onCloseLightBox, lightBoxAction = _a.lightBoxAction, lightBoxActionTitle = _a.lightBoxActionTitle, images = _a.images, _b = _a.initialSlide, initialSlide = _b === void 0 ? 0 : _b;
|
|
10
|
-
if (!(images === null || images === void 0 ? void 0 : images.length))
|
|
11
|
-
return null;
|
|
12
|
-
return (jsx(Modal, { isShown: isLightBoxOpen, onClose: onCloseLightBox, mobileFullscreen: true, miniCloseBtn: true, withCloseIcon: true, children: jsx(Swiper, { initialSlide: initialSlide, slidesPerView: 1, autoHeight: true, children: images.map(function (item) {
|
|
13
|
-
var _a;
|
|
14
|
-
return (jsx(SwiperSlide, { children: jsxs(Container, { children: [jsx(Image, { src: (_a = item.originalUrl) !== null && _a !== void 0 ? _a : item.url, loading: "lazy", alt: "" }), !!item.withLightBoxAction && lightBoxAction && lightBoxActionTitle && (jsx(ButtonContainer, { children: jsx(Button, { onClick: lightBoxAction(item.id), appearance: "primaryLight", children: lightBoxActionTitle }) }))] }) }, item.id));
|
|
15
|
-
}) }) }));
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { LightBox };
|
|
19
|
-
//# sourceMappingURL=LightBox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LightBox.js","sources":["../../../../packages/ui/Blocks/LightBox/LightBox.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Button } from '../../Elements/Button';\nimport Modal from '../Modal';\nimport { Swiper, SwiperSlide } from 'swiper/react';\nimport { Container, Image, ButtonContainer } from './styles';\nexport var LightBox = function (_a) {\n var isLightBoxOpen = _a.isLightBoxOpen, onCloseLightBox = _a.onCloseLightBox, lightBoxAction = _a.lightBoxAction, lightBoxActionTitle = _a.lightBoxActionTitle, images = _a.images, _b = _a.initialSlide, initialSlide = _b === void 0 ? 0 : _b;\n if (!(images === null || images === void 0 ? void 0 : images.length))\n return null;\n return (_jsx(Modal, { isShown: isLightBoxOpen, onClose: onCloseLightBox, mobileFullscreen: true, miniCloseBtn: true, withCloseIcon: true, children: _jsx(Swiper, { initialSlide: initialSlide, slidesPerView: 1, autoHeight: true, children: images.map(function (item) {\n var _a;\n return (_jsx(SwiperSlide, { children: _jsxs(Container, { children: [_jsx(Image, { src: (_a = item.originalUrl) !== null && _a !== void 0 ? _a : item.url, loading: \"lazy\", alt: \"\" }), !!item.withLightBoxAction && lightBoxAction && lightBoxActionTitle && (_jsx(ButtonContainer, { children: _jsx(Button, { onClick: lightBoxAction(item.id), appearance: \"primaryLight\", children: lightBoxActionTitle }) }))] }) }, item.id));\n }) }) }));\n};\n//# sourceMappingURL=LightBox.js.map"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;AAKU,IAAC,QAAQ,GAAG,UAAU,EAAE,EAAE;AACpC,IAAI,IAAI,cAAc,GAAG,EAAE,CAAC,cAAc,EAAE,eAAe,GAAG,EAAE,CAAC,eAAe,EAAE,cAAc,GAAG,EAAE,CAAC,cAAc,EAAE,mBAAmB,GAAG,EAAE,CAAC,mBAAmB,EAAE,MAAM,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,YAAY,EAAE,YAAY,GAAG,EAAE,KAAK,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;AACpP,IAAI,IAAI,EAAE,MAAM,KAAK,IAAI,IAAI,MAAM,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;AACxE,QAAQ,OAAO,IAAI,CAAC;AACpB,IAAI,QAAQA,GAAI,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAEA,GAAI,CAAC,MAAM,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,UAAU,IAAI,EAAE;AAC5Q,gBAAgB,IAAI,EAAE,CAAC;AACvB,gBAAgB,QAAQA,GAAI,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAEC,IAAK,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,CAACD,GAAI,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,WAAW,MAAM,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,IAAI,cAAc,IAAI,mBAAmB,KAAKA,GAAI,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAEA,GAAI,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,UAAU,EAAE,cAAc,EAAE,QAAQ,EAAE,mBAAmB,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,EAAE;AACnb,aAAa,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AACtB;;;;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { useCallback } from 'react';
|
|
2
|
-
import '../../Modal/Modal.js';
|
|
3
|
-
import { useModal } from '../../Modal/hooks/useModal.js';
|
|
4
|
-
|
|
5
|
-
var useLightBox = function () {
|
|
6
|
-
var _a = useModal(), isOpen = _a.isOpen, onOpen = _a.onOpen, onClose = _a.onClose, data = _a.data;
|
|
7
|
-
var onOpenLightBox = useCallback(function (index) {
|
|
8
|
-
if (index === void 0) { index = 0; }
|
|
9
|
-
return function () {
|
|
10
|
-
onOpen({ initialSlide: index });
|
|
11
|
-
};
|
|
12
|
-
}, [onOpen]);
|
|
13
|
-
return {
|
|
14
|
-
onOpenLightBox: onOpenLightBox,
|
|
15
|
-
onCloseLightBox: onClose,
|
|
16
|
-
isLightBoxOpen: isOpen,
|
|
17
|
-
lightBoxData: data
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export { useLightBox };
|
|
22
|
-
//# sourceMappingURL=useLightBox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLightBox.js","sources":["../../../../../packages/ui/Blocks/LightBox/hooks/useLightBox.ts"],"sourcesContent":["import { useCallback } from 'react';\nimport { useModal } from '../../Modal';\nexport var useLightBox = function () {\n var _a = useModal(), isOpen = _a.isOpen, onOpen = _a.onOpen, onClose = _a.onClose, data = _a.data;\n var onOpenLightBox = useCallback(function (index) {\n if (index === void 0) { index = 0; }\n return function () {\n onOpen({ initialSlide: index });\n };\n }, [onOpen]);\n return {\n onOpenLightBox: onOpenLightBox,\n onCloseLightBox: onClose,\n isLightBoxOpen: isOpen,\n lightBoxData: data\n };\n};\n//# sourceMappingURL=useLightBox.js.map"],"names":[],"mappings":";;;;AAEU,IAAC,WAAW,GAAG,YAAY;AACrC,IAAI,IAAI,EAAE,GAAG,QAAQ,EAAE,EAAE,MAAM,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,EAAE,CAAC,MAAM,EAAE,OAAO,GAAG,EAAE,CAAC,OAAO,EAAE,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;AACtG,IAAI,IAAI,cAAc,GAAG,WAAW,CAAC,UAAU,KAAK,EAAE;AACtD,QAAQ,IAAI,KAAK,KAAK,KAAK,CAAC,EAAE,EAAE,KAAK,GAAG,CAAC,CAAC,EAAE;AAC5C,QAAQ,OAAO,YAAY;AAC3B,YAAY,MAAM,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC;AAC5C,SAAS,CAAC;AACV,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACjB,IAAI,OAAO;AACX,QAAQ,cAAc,EAAE,cAAc;AACtC,QAAQ,eAAe,EAAE,OAAO;AAChC,QAAQ,cAAc,EAAE,MAAM;AAC9B,QAAQ,YAAY,EAAE,IAAI;AAC1B,KAAK,CAAC;AACN;;;;"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { LightBoxProps, UseLightBoxHookType } from './types.js';
|
|
3
|
-
export { ImageData } from './types.js';
|
|
4
|
-
|
|
5
|
-
declare const LightBox: FC<LightBoxProps>
|
|
6
|
-
declare const useLightBox: UseLightBoxHookType
|
|
7
|
-
|
|
8
|
-
export { LightBox, LightBox as default, useLightBox };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { __makeTemplateObject } from 'tslib';
|
|
2
|
-
import styled from '@xstyled/styled-components';
|
|
3
|
-
|
|
4
|
-
var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n position: relative;\n"], ["\n width: 100%;\n height: 100%;\n position: relative;\n"])));
|
|
5
|
-
var Image = styled.img(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n"], ["\n width: 100%;\n height: 100%;\n"])));
|
|
6
|
-
var ButtonContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: -60px;\n"], ["\n width: 100%;\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: -60px;\n"])));
|
|
7
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
8
|
-
|
|
9
|
-
export { ButtonContainer, Container, Image };
|
|
10
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../packages/ui/Blocks/LightBox/styles.ts"],"sourcesContent":["import { __makeTemplateObject } from \"tslib\";\nimport styled from '@xstyled/styled-components';\nexport var Container = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject([\"\\n width: 100%;\\n height: 100%;\\n position: relative;\\n\"], [\"\\n width: 100%;\\n height: 100%;\\n position: relative;\\n\"])));\nexport var Image = styled.img(templateObject_2 || (templateObject_2 = __makeTemplateObject([\"\\n width: 100%;\\n height: 100%;\\n\"], [\"\\n width: 100%;\\n height: 100%;\\n\"])));\nexport var ButtonContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject([\"\\n width: 100%;\\n display: flex;\\n justify-content: center;\\n position: absolute;\\n bottom: -60px;\\n\"], [\"\\n width: 100%;\\n display: flex;\\n justify-content: center;\\n position: absolute;\\n bottom: -60px;\\n\"])));\nvar templateObject_1, templateObject_2, templateObject_3;\n//# sourceMappingURL=styles.js.map"],"names":[],"mappings":";;;AAEU,IAAC,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,4DAA4D,CAAC,EAAE,CAAC,4DAA4D,CAAC,CAAC,CAAC,EAAE;AACvN,IAAC,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,qCAAqC,CAAC,EAAE,CAAC,qCAAqC,CAAC,CAAC,CAAC,EAAE;AACrK,IAAC,eAAe,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,KAAK,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,2GAA2G,CAAC,EAAE,CAAC,2GAA2G,CAAC,CAAC,CAAC,EAAE;AACrU,IAAI,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB;;;;"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
interface LightBoxData {
|
|
2
|
-
initialSlide: number;
|
|
3
|
-
}
|
|
4
|
-
type UseLightBoxHookType = () => {
|
|
5
|
-
onOpenLightBox: (index?: number) => () => void;
|
|
6
|
-
onCloseLightBox: () => void;
|
|
7
|
-
isLightBoxOpen: boolean;
|
|
8
|
-
lightBoxData?: LightBoxData;
|
|
9
|
-
};
|
|
10
|
-
interface ImageData {
|
|
11
|
-
id: string;
|
|
12
|
-
url?: string;
|
|
13
|
-
smallUrl?: string;
|
|
14
|
-
originalUrl?: string;
|
|
15
|
-
withLightBoxAction?: boolean;
|
|
16
|
-
}
|
|
17
|
-
interface LightBoxProps {
|
|
18
|
-
images: ImageData[] | undefined;
|
|
19
|
-
isLightBoxOpen: boolean;
|
|
20
|
-
onCloseLightBox: () => void;
|
|
21
|
-
lightBoxAction?: (id?: string) => () => Promise<void>;
|
|
22
|
-
lightBoxActionTitle?: string;
|
|
23
|
-
initialSlide?: number;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { ImageData, LightBoxData, LightBoxProps, UseLightBoxHookType };
|