@chayns-components/core 5.0.0-beta.44 → 5.0.0-beta.441
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/README.md +3 -19
- package/lib/api/image/post.d.ts +16 -0
- package/lib/api/image/post.js +34 -0
- package/lib/api/image/post.js.map +1 -0
- package/lib/api/signature/delete.d.ts +1 -0
- package/lib/api/signature/delete.js +34 -0
- package/lib/api/signature/delete.js.map +1 -0
- package/lib/api/signature/get.d.ts +1 -0
- package/lib/api/signature/get.js +40 -0
- package/lib/api/signature/get.js.map +1 -0
- package/lib/api/signature/put.d.ts +1 -0
- package/lib/api/signature/put.js +38 -0
- package/lib/api/signature/put.js.map +1 -0
- package/lib/api/theme/get.d.ts +2 -0
- package/lib/api/theme/get.js +21 -0
- package/lib/api/theme/get.js.map +1 -0
- package/lib/api/video/post.d.ts +16 -0
- package/lib/api/video/post.js +31 -0
- package/lib/api/video/post.js.map +1 -0
- package/lib/components/accordion/Accordion.d.ts +32 -3
- package/lib/components/accordion/Accordion.js +61 -22
- package/lib/components/accordion/Accordion.js.map +1 -1
- package/lib/components/accordion/Accordion.styles.d.ts +6 -4
- package/lib/components/accordion/Accordion.styles.js +55 -33
- package/lib/components/accordion/Accordion.styles.js.map +1 -1
- package/lib/components/accordion/accordion-body/AccordionBody.d.ts +21 -2
- package/lib/components/accordion/accordion-body/AccordionBody.js +17 -11
- package/lib/components/accordion/accordion-body/AccordionBody.js.map +1 -1
- package/lib/components/accordion/accordion-body/AccordionBody.styles.d.ts +268 -1
- package/lib/components/accordion/accordion-body/AccordionBody.styles.js +14 -4
- package/lib/components/accordion/accordion-body/AccordionBody.styles.js.map +1 -1
- package/lib/components/accordion/accordion-content/AccordionContent.d.ts +9 -2
- package/lib/components/accordion/accordion-content/AccordionContent.js +5 -4
- package/lib/components/accordion/accordion-content/AccordionContent.js.map +1 -1
- package/lib/components/accordion/accordion-content/AccordionContent.styles.d.ts +6 -4
- package/lib/components/accordion/accordion-content/AccordionContent.styles.js +3 -4
- package/lib/components/accordion/accordion-content/AccordionContent.styles.js.map +1 -1
- package/lib/components/accordion/accordion-group/AccordionGroup.d.ts +4 -3
- package/lib/components/accordion/accordion-group/AccordionGroup.js +6 -6
- package/lib/components/accordion/accordion-group/AccordionGroup.js.map +1 -1
- package/lib/components/accordion/accordion-head/AccordionHead.d.ts +3 -1
- package/lib/components/accordion/accordion-head/AccordionHead.js +32 -14
- package/lib/components/accordion/accordion-head/AccordionHead.js.map +1 -1
- package/lib/components/accordion/accordion-head/AccordionHead.styles.d.ts +2421 -12
- package/lib/components/accordion/accordion-head/AccordionHead.styles.js +56 -39
- package/lib/components/accordion/accordion-head/AccordionHead.styles.js.map +1 -1
- package/lib/components/accordion/accordion-intro/AccordionIntro.d.ts +1 -1
- package/lib/components/accordion/accordion-intro/AccordionIntro.js +1 -2
- package/lib/components/accordion/accordion-intro/AccordionIntro.js.map +1 -1
- package/lib/components/accordion/accordion-intro/AccordionIntro.styles.d.ts +2 -1
- package/lib/components/accordion/accordion-intro/AccordionIntro.styles.js +1 -2
- package/lib/components/accordion/accordion-intro/AccordionIntro.styles.js.map +1 -1
- package/lib/components/accordion/accordion-item/AccordionItem.d.ts +9 -0
- package/lib/components/accordion/accordion-item/AccordionItem.js +27 -0
- package/lib/components/accordion/accordion-item/AccordionItem.js.map +1 -0
- package/lib/components/accordion/accordion-item/AccordionItem.styles.d.ts +7 -0
- package/lib/components/accordion/accordion-item/AccordionItem.styles.js +33 -0
- package/lib/components/accordion/accordion-item/AccordionItem.styles.js.map +1 -0
- package/lib/components/amount-control/AmountControl.d.ts +22 -0
- package/lib/components/amount-control/AmountControl.js +185 -0
- package/lib/components/amount-control/AmountControl.js.map +1 -0
- package/lib/components/amount-control/AmountControl.styles.d.ts +288 -0
- package/lib/components/amount-control/AmountControl.styles.js +58 -0
- package/lib/components/amount-control/AmountControl.styles.js.map +1 -0
- package/lib/components/badge/Badge.d.ts +1 -1
- package/lib/components/badge/Badge.js +1 -2
- package/lib/components/badge/Badge.js.map +1 -1
- package/lib/components/badge/Badge.styles.d.ts +5 -3
- package/lib/components/badge/Badge.styles.js +3 -4
- package/lib/components/badge/Badge.styles.js.map +1 -1
- package/lib/components/button/Button.d.ts +6 -2
- package/lib/components/button/Button.js +56 -4
- package/lib/components/button/Button.js.map +1 -1
- package/lib/components/button/Button.styles.d.ts +539 -4
- package/lib/components/button/Button.styles.js +43 -17
- package/lib/components/button/Button.styles.js.map +1 -1
- package/lib/components/checkbox/Checkbox.d.ts +11 -3
- package/lib/components/checkbox/Checkbox.js +13 -8
- package/lib/components/checkbox/Checkbox.js.map +1 -1
- package/lib/components/checkbox/Checkbox.styles.d.ts +12 -5
- package/lib/components/checkbox/Checkbox.styles.js +51 -36
- package/lib/components/checkbox/Checkbox.styles.js.map +1 -1
- package/lib/components/color-scheme-provider/ColorSchemeProvider.d.ts +8 -2
- package/lib/components/color-scheme-provider/ColorSchemeProvider.js +56 -24
- package/lib/components/color-scheme-provider/ColorSchemeProvider.js.map +1 -1
- package/lib/components/combobox/ComboBox.d.ts +43 -0
- package/lib/components/combobox/ComboBox.js +192 -0
- package/lib/components/combobox/ComboBox.js.map +1 -0
- package/lib/components/combobox/ComboBox.styles.d.ts +291 -0
- package/lib/components/combobox/ComboBox.styles.js +206 -0
- package/lib/components/combobox/ComboBox.styles.js.map +1 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.d.ts +12 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.js +40 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.js.map +1 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.styles.d.ts +11 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.styles.js +62 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.styles.js.map +1 -0
- package/lib/components/content-card/ContentCard.d.ts +13 -0
- package/lib/components/content-card/ContentCard.js +21 -0
- package/lib/components/content-card/ContentCard.js.map +1 -0
- package/lib/components/content-card/ContentCard.styles.d.ts +2 -0
- package/lib/components/content-card/ContentCard.styles.js +39 -0
- package/lib/components/content-card/ContentCard.styles.js.map +1 -0
- package/lib/components/context-menu/ContextMenu.d.ts +6 -6
- package/lib/components/context-menu/ContextMenu.js +25 -26
- package/lib/components/context-menu/ContextMenu.js.map +1 -1
- package/lib/components/context-menu/ContextMenu.styles.d.ts +2 -1
- package/lib/components/context-menu/ContextMenu.styles.js +1 -2
- package/lib/components/context-menu/ContextMenu.styles.js.map +1 -1
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.d.ts +2 -2
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.js +9 -8
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.js.map +1 -1
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +274 -9
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.js +19 -24
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.js.map +1 -1
- package/lib/components/file-input/FileInput.d.ts +29 -0
- package/lib/components/file-input/FileInput.js +121 -0
- package/lib/components/file-input/FileInput.js.map +1 -0
- package/lib/components/file-input/FileInput.styles.d.ts +277 -0
- package/lib/components/file-input/FileInput.styles.js +46 -0
- package/lib/components/file-input/FileInput.styles.js.map +1 -0
- package/lib/components/file-input/file-list/FileListItem.d.ts +9 -0
- package/lib/components/file-input/file-list/FileListItem.js +36 -0
- package/lib/components/file-input/file-list/FileListItem.js.map +1 -0
- package/lib/components/file-input/file-list/FileListItem.styles.d.ts +2 -0
- package/lib/components/file-input/file-list/FileListItem.styles.js +10 -0
- package/lib/components/file-input/file-list/FileListItem.styles.js.map +1 -0
- package/lib/components/filter-buttons/FilterButtons.d.ts +22 -0
- package/lib/components/filter-buttons/FilterButtons.js +88 -0
- package/lib/components/filter-buttons/FilterButtons.js.map +1 -0
- package/lib/components/filter-buttons/FilterButtons.styles.d.ts +2 -0
- package/lib/components/filter-buttons/FilterButtons.styles.js +14 -0
- package/lib/components/filter-buttons/FilterButtons.styles.js.map +1 -0
- package/lib/components/filter-buttons/filter-button/FilterButton.d.ts +14 -0
- package/lib/components/filter-buttons/filter-button/FilterButton.js +47 -0
- package/lib/components/filter-buttons/filter-button/FilterButton.js.map +1 -0
- package/lib/components/filter-buttons/filter-button/FilterButton.styles.d.ts +287 -0
- package/lib/components/filter-buttons/filter-button/FilterButton.styles.js +106 -0
- package/lib/components/filter-buttons/filter-button/FilterButton.styles.js.map +1 -0
- package/lib/components/grid-image/GridImage.d.ts +1 -1
- package/lib/components/grid-image/GridImage.js +3 -4
- package/lib/components/grid-image/GridImage.js.map +1 -1
- package/lib/components/grid-image/GridImage.styles.d.ts +12 -11
- package/lib/components/grid-image/GridImage.styles.js +4 -8
- package/lib/components/grid-image/GridImage.styles.js.map +1 -1
- package/lib/components/icon/Icon.d.ts +1 -1
- package/lib/components/icon/Icon.js +7 -6
- package/lib/components/icon/Icon.js.map +1 -1
- package/lib/components/icon/Icon.styles.d.ts +7 -7
- package/lib/components/icon/Icon.styles.js +6 -8
- package/lib/components/icon/Icon.styles.js.map +1 -1
- package/lib/components/input/Input.d.ts +43 -3
- package/lib/components/input/Input.js +65 -15
- package/lib/components/input/Input.js.map +1 -1
- package/lib/components/input/Input.styles.d.ts +548 -6
- package/lib/components/input/Input.styles.js +104 -34
- package/lib/components/input/Input.styles.js.map +1 -1
- package/lib/components/list/List.d.ts +1 -1
- package/lib/components/list/List.js +4 -6
- package/lib/components/list/List.js.map +1 -1
- package/lib/components/list/list-item/ListItem.d.ts +2 -2
- package/lib/components/list/list-item/ListItem.js +7 -6
- package/lib/components/list/list-item/ListItem.js.map +1 -1
- package/lib/components/list/list-item/ListItem.styles.d.ts +6 -4
- package/lib/components/list/list-item/ListItem.styles.js +14 -26
- package/lib/components/list/list-item/ListItem.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-body/ListItemBody.d.ts +6 -2
- package/lib/components/list/list-item/list-item-body/ListItemBody.js +28 -7
- package/lib/components/list/list-item/list-item-body/ListItemBody.js.map +1 -1
- package/lib/components/list/list-item/list-item-body/ListItemBody.styles.d.ts +267 -1
- package/lib/components/list/list-item/list-item-body/ListItemBody.styles.js +1 -2
- package/lib/components/list/list-item/list-item-body/ListItemBody.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-content/ListItemContent.d.ts +8 -2
- package/lib/components/list/list-item/list-item-content/ListItemContent.js +1 -2
- package/lib/components/list/list-item/list-item-content/ListItemContent.js.map +1 -1
- package/lib/components/list/list-item/list-item-content/ListItemContent.styles.d.ts +2 -1
- package/lib/components/list/list-item/list-item-content/ListItemContent.styles.js +1 -2
- package/lib/components/list/list-item/list-item-content/ListItemContent.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/ListItemHead.d.ts +1 -1
- package/lib/components/list/list-item/list-item-head/ListItemHead.js +4 -5
- package/lib/components/list/list-item/list-item-head/ListItemHead.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/ListItemHead.styles.d.ts +544 -14
- package/lib/components/list/list-item/list-item-head/ListItemHead.styles.js +13 -24
- package/lib/components/list/list-item/list-item-head/ListItemHead.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.d.ts +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.js +1 -2
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.d.ts +2 -1
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.js +1 -2
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.d.ts +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.js +3 -4
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.d.ts +8 -7
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.js +2 -4
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.js.map +1 -1
- package/lib/components/mention-finder/MentionFinder.d.ts +31 -0
- package/lib/components/mention-finder/MentionFinder.js +139 -0
- package/lib/components/mention-finder/MentionFinder.js.map +1 -0
- package/lib/components/mention-finder/MentionFinder.styles.d.ts +270 -0
- package/lib/components/mention-finder/MentionFinder.styles.js +92 -0
- package/lib/components/mention-finder/MentionFinder.styles.js.map +1 -0
- package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.d.ts +10 -0
- package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.js +31 -0
- package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.js.map +1 -0
- package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.styles.d.ts +10 -0
- package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.styles.js +91 -0
- package/lib/components/mention-finder/mention-finder-item/MentionFinderItem.styles.js.map +1 -0
- package/lib/components/number-input/NumberInput.d.ts +54 -0
- package/lib/components/number-input/NumberInput.js +142 -0
- package/lib/components/number-input/NumberInput.js.map +1 -0
- package/lib/components/popup/Popup.d.ts +30 -0
- package/lib/components/popup/Popup.js +161 -0
- package/lib/components/popup/Popup.js.map +1 -0
- package/lib/components/popup/Popup.styles.d.ts +5 -0
- package/lib/components/popup/Popup.styles.js +28 -0
- package/lib/components/popup/Popup.styles.js.map +1 -0
- package/lib/components/popup/popup-content/PopupContent.d.ts +10 -0
- package/lib/components/popup/popup-content/PopupContent.js +69 -0
- package/lib/components/popup/popup-content/PopupContent.js.map +1 -0
- package/lib/components/popup/popup-content/PopupContent.styles.d.ts +274 -0
- package/lib/components/popup/popup-content/PopupContent.styles.js +92 -0
- package/lib/components/popup/popup-content/PopupContent.styles.js.map +1 -0
- package/lib/components/progress-bar/ProgressBar.d.ts +13 -0
- package/lib/components/progress-bar/ProgressBar.js +39 -0
- package/lib/components/progress-bar/ProgressBar.js.map +1 -0
- package/lib/components/progress-bar/ProgressBar.styles.d.ts +272 -0
- package/lib/components/progress-bar/ProgressBar.styles.js +37 -0
- package/lib/components/progress-bar/ProgressBar.styles.js.map +1 -0
- package/lib/components/radio-button/RadioButton.d.ts +30 -0
- package/lib/components/radio-button/RadioButton.js +100 -0
- package/lib/components/radio-button/RadioButton.js.map +1 -0
- package/lib/components/radio-button/RadioButton.styles.d.ts +287 -0
- package/lib/components/radio-button/RadioButton.styles.js +105 -0
- package/lib/components/radio-button/RadioButton.styles.js.map +1 -0
- package/lib/components/radio-button/radio-button-group/RadioButtonGroup.d.ts +17 -0
- package/lib/components/radio-button/radio-button-group/RadioButtonGroup.js +46 -0
- package/lib/components/radio-button/radio-button-group/RadioButtonGroup.js.map +1 -0
- package/lib/components/scroll-view/ScrollView.d.ts +13 -0
- package/lib/components/scroll-view/ScrollView.js +27 -0
- package/lib/components/scroll-view/ScrollView.js.map +1 -0
- package/lib/components/scroll-view/ScrollView.styles.d.ts +9 -0
- package/lib/components/scroll-view/ScrollView.styles.js +49 -0
- package/lib/components/scroll-view/ScrollView.styles.js.map +1 -0
- package/lib/components/search-box/SearchBox.d.ts +38 -0
- package/lib/components/search-box/SearchBox.js +255 -0
- package/lib/components/search-box/SearchBox.js.map +1 -0
- package/lib/components/search-box/SearchBox.styles.d.ts +274 -0
- package/lib/components/search-box/SearchBox.styles.js +79 -0
- package/lib/components/search-box/SearchBox.styles.js.map +1 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.d.ts +11 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.js +35 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.js.map +1 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.styles.d.ts +13 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.styles.js +63 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.styles.js.map +1 -0
- package/lib/components/search-input/SearchInput.d.ts +33 -0
- package/lib/components/search-input/SearchInput.js +102 -0
- package/lib/components/search-input/SearchInput.js.map +1 -0
- package/lib/components/search-input/SearchInput.styles.d.ts +534 -0
- package/lib/components/search-input/SearchInput.styles.js +26 -0
- package/lib/components/search-input/SearchInput.styles.js.map +1 -0
- package/lib/components/select-button/SelectButton.d.ts +34 -0
- package/lib/components/select-button/SelectButton.js +65 -0
- package/lib/components/select-button/SelectButton.js.map +1 -0
- package/lib/components/select-button/SelectButton.styles.d.ts +2 -0
- package/lib/components/select-button/SelectButton.styles.js +10 -0
- package/lib/components/select-button/SelectButton.styles.js.map +1 -0
- package/lib/components/setup-wizard/SetupWizard.d.ts +23 -0
- package/lib/components/setup-wizard/SetupWizard.js +79 -0
- package/lib/components/setup-wizard/SetupWizard.js.map +1 -0
- package/lib/components/setup-wizard/SetupWizard.styles.d.ts +2 -0
- package/lib/components/setup-wizard/SetupWizard.styles.js +10 -0
- package/lib/components/setup-wizard/SetupWizard.styles.js.map +1 -0
- package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.d.ts +25 -0
- package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.js +60 -0
- package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.js.map +1 -0
- package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.styles.d.ts +3 -0
- package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.styles.js +14 -0
- package/lib/components/setup-wizard/setup-wizard-item/SetupWizardItem.styles.js.map +1 -0
- package/lib/components/sharing-bar/SharingBar.d.ts +18 -0
- package/lib/components/sharing-bar/SharingBar.js +110 -0
- package/lib/components/sharing-bar/SharingBar.js.map +1 -0
- package/lib/components/sharing-bar/SharingBar.styles.d.ts +6 -0
- package/lib/components/sharing-bar/SharingBar.styles.js +24 -0
- package/lib/components/sharing-bar/SharingBar.styles.js.map +1 -0
- package/lib/components/signature/Signature.d.ts +33 -0
- package/lib/components/signature/Signature.js +104 -0
- package/lib/components/signature/Signature.js.map +1 -0
- package/lib/components/signature/Signature.styles.d.ts +5 -0
- package/lib/components/signature/Signature.styles.js +21 -0
- package/lib/components/signature/Signature.styles.js.map +1 -0
- package/lib/components/slider/Slider.d.ts +45 -0
- package/lib/components/slider/Slider.js +183 -0
- package/lib/components/slider/Slider.js.map +1 -0
- package/lib/components/slider/Slider.styles.d.ts +16 -0
- package/lib/components/slider/Slider.styles.js +106 -0
- package/lib/components/slider/Slider.styles.js.map +1 -0
- package/lib/components/slider-button/SliderButton.d.ts +23 -0
- package/lib/components/slider-button/SliderButton.js +156 -0
- package/lib/components/slider-button/SliderButton.js.map +1 -0
- package/lib/components/slider-button/SliderButton.styles.d.ts +279 -0
- package/lib/components/slider-button/SliderButton.styles.js +69 -0
- package/lib/components/slider-button/SliderButton.styles.js.map +1 -0
- package/lib/components/small-wait-cursor/SmallWaitCursor.d.ts +31 -0
- package/lib/components/small-wait-cursor/SmallWaitCursor.js +42 -0
- package/lib/components/small-wait-cursor/SmallWaitCursor.js.map +1 -0
- package/lib/components/small-wait-cursor/SmallWaitCursor.styles.d.ts +19 -0
- package/lib/components/small-wait-cursor/SmallWaitCursor.styles.js +101 -0
- package/lib/components/small-wait-cursor/SmallWaitCursor.styles.js.map +1 -0
- package/lib/components/tag-input/TagInput.d.ts +22 -0
- package/lib/components/tag-input/TagInput.js +88 -0
- package/lib/components/tag-input/TagInput.js.map +1 -0
- package/lib/components/tag-input/TagInput.styles.d.ts +9 -0
- package/lib/components/tag-input/TagInput.styles.js +48 -0
- package/lib/components/tag-input/TagInput.styles.js.map +1 -0
- package/lib/components/text-area/TextArea.d.ts +29 -0
- package/lib/components/text-area/TextArea.js +57 -0
- package/lib/components/text-area/TextArea.js.map +1 -0
- package/lib/components/text-area/TextArea.styles.d.ts +15 -0
- package/lib/components/text-area/TextArea.styles.js +101 -0
- package/lib/components/text-area/TextArea.styles.js.map +1 -0
- package/lib/components/tooltip/Tooltip.d.ts +22 -0
- package/lib/components/tooltip/Tooltip.js +36 -0
- package/lib/components/tooltip/Tooltip.js.map +1 -0
- package/lib/components/tooltip/Tooltip.styles.d.ts +2 -0
- package/lib/components/tooltip/Tooltip.styles.js +10 -0
- package/lib/components/tooltip/Tooltip.styles.js.map +1 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.d.ts +13 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.js +31 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.js.map +1 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.styles.d.ts +15 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.styles.js +44 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.styles.js.map +1 -0
- package/lib/components/truncation/Truncation.d.ts +29 -0
- package/lib/components/truncation/Truncation.js +136 -0
- package/lib/components/truncation/Truncation.js.map +1 -0
- package/lib/components/truncation/Truncation.styles.d.ts +270 -0
- package/lib/components/truncation/Truncation.styles.js +27 -0
- package/lib/components/truncation/Truncation.styles.js.map +1 -0
- package/lib/constants/mentionFinder.d.ts +4 -0
- package/lib/constants/mentionFinder.js +12 -0
- package/lib/constants/mentionFinder.js.map +1 -0
- package/lib/constants/numberInput.d.ts +5 -0
- package/lib/constants/numberInput.js +12 -0
- package/lib/constants/numberInput.js.map +1 -0
- package/lib/constants/signature.d.ts +1 -0
- package/lib/constants/signature.js +8 -0
- package/lib/constants/signature.js.map +1 -0
- package/lib/hooks/colorMode.d.ts +2 -0
- package/lib/hooks/colorMode.js +20 -0
- package/lib/hooks/colorMode.js.map +1 -0
- package/lib/hooks/uuid.js.map +1 -1
- package/lib/index.d.ts +42 -0
- package/lib/index.js +237 -0
- package/lib/index.js.map +1 -1
- package/lib/types/chayns.d.ts +67 -1
- package/lib/types/chayns.js +3 -4
- package/lib/types/chayns.js.map +1 -1
- package/lib/types/colorSchemeProvider.d.ts +15 -0
- package/lib/types/colorSchemeProvider.js +15 -0
- package/lib/types/colorSchemeProvider.js.map +1 -0
- package/lib/types/comboBox.d.ts +4 -0
- package/lib/types/comboBox.js +12 -0
- package/lib/types/comboBox.js.map +1 -0
- package/lib/{components/context-menu/constants/alignment.js → types/contextMenu.js} +4 -5
- package/lib/types/contextMenu.js.map +1 -0
- package/lib/types/file.d.ts +42 -0
- package/lib/types/file.js +2 -0
- package/lib/types/file.js.map +1 -0
- package/lib/types/filterButtons.d.ts +15 -0
- package/lib/types/filterButtons.js +17 -0
- package/lib/types/filterButtons.js.map +1 -0
- package/lib/types/popup.d.ts +16 -0
- package/lib/types/popup.js +16 -0
- package/lib/types/popup.js.map +1 -0
- package/lib/types/radioButton.d.ts +4 -0
- package/lib/types/radioButton.js +2 -0
- package/lib/types/radioButton.js.map +1 -0
- package/lib/types/searchBox.d.ts +5 -0
- package/lib/types/searchBox.js +2 -0
- package/lib/types/searchBox.js.map +1 -0
- package/lib/types/selectButton.d.ts +4 -0
- package/lib/types/selectButton.js +2 -0
- package/lib/types/selectButton.js.map +1 -0
- package/lib/types/signature.d.ts +10 -0
- package/lib/types/signature.js +2 -0
- package/lib/types/signature.js.map +1 -0
- package/lib/types/slider-button.d.ts +4 -0
- package/lib/types/slider-button.js +2 -0
- package/lib/types/slider-button.js.map +1 -0
- package/lib/types/tagInput.d.ts +4 -0
- package/lib/types/tagInput.js +2 -0
- package/lib/types/tagInput.js.map +1 -0
- package/lib/types/tooltip.d.ts +9 -0
- package/lib/types/tooltip.js +2 -0
- package/lib/types/tooltip.js.map +1 -0
- package/lib/{components/accordion/utils.js → utils/accordion.js} +1 -1
- package/lib/utils/accordion.js.map +1 -0
- package/lib/utils/amountControl.d.ts +7 -0
- package/lib/utils/amountControl.js +22 -0
- package/lib/utils/amountControl.js.map +1 -0
- package/lib/utils/calculate.d.ts +5 -0
- package/lib/utils/calculate.js +73 -0
- package/lib/utils/calculate.js.map +1 -0
- package/lib/utils/file.d.ts +363 -0
- package/lib/utils/file.js +402 -0
- package/lib/utils/file.js.map +1 -0
- package/lib/utils/fileDialog.d.ts +7 -0
- package/lib/utils/fileDialog.js +73 -0
- package/lib/utils/fileDialog.js.map +1 -0
- package/lib/utils/font.d.ts +8 -0
- package/lib/utils/font.js +75 -0
- package/lib/utils/font.js.map +1 -0
- package/lib/{components/icon/utils.js → utils/icon.js} +2 -3
- package/lib/utils/icon.js.map +1 -0
- package/lib/utils/isTobitEmployee.d.ts +1 -0
- package/lib/utils/isTobitEmployee.js +28 -0
- package/lib/utils/isTobitEmployee.js.map +1 -0
- package/lib/utils/numberInput.d.ts +23 -0
- package/lib/utils/numberInput.js +92 -0
- package/lib/utils/numberInput.js.map +1 -0
- package/lib/utils/searchBox.d.ts +7 -0
- package/lib/utils/searchBox.js +23 -0
- package/lib/utils/searchBox.js.map +1 -0
- package/lib/utils/slider.d.ts +7 -0
- package/lib/utils/slider.js +35 -0
- package/lib/utils/slider.js.map +1 -0
- package/lib/utils/sliderButton.d.ts +15 -0
- package/lib/utils/sliderButton.js +53 -0
- package/lib/utils/sliderButton.js.map +1 -0
- package/lib/utils/truncation.d.ts +1 -0
- package/lib/utils/truncation.js +34 -0
- package/lib/utils/truncation.js.map +1 -0
- package/lib/utils/uploadFile.d.ts +9 -0
- package/lib/utils/uploadFile.js +47 -0
- package/lib/utils/uploadFile.js.map +1 -0
- package/package.json +24 -21
- package/lib/components/accordion/utils.js.map +0 -1
- package/lib/components/context-menu/constants/alignment.js.map +0 -1
- package/lib/components/icon/utils.js.map +0 -1
- /package/lib/{components/context-menu/constants/alignment.d.ts → types/contextMenu.d.ts} +0 -0
- /package/lib/{components/accordion/utils.d.ts → utils/accordion.d.ts} +0 -0
- /package/lib/{components/icon/utils.d.ts → utils/icon.d.ts} +0 -0
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.StyledRightWrapper = exports.StyledMotionTitleWrapper = exports.StyledMotionTitleElementWrapper = exports.StyledMotionTitle = exports.StyledMotionRightInputIconWrapper = exports.StyledMotionRightInput = exports.StyledMotionRightElementWrapper = exports.StyledMotionIconWrapper = exports.StyledMotionContentWrapper = exports.StyledMotionAccordionHead = void 0;
|
|
6
|
+
exports.StyledRightWrapper = exports.StyledMotionTitleWrapper = exports.StyledMotionTitleElementWrapper = exports.StyledMotionTitle = exports.StyledMotionRightInputIconWrapper = exports.StyledMotionRightInput = exports.StyledMotionRightElementWrapper = exports.StyledMotionIconWrapper = exports.StyledMotionContentWrapper = exports.StyledMotionAccordionHead = exports.StyledAccordionIcon = void 0;
|
|
7
7
|
var _framerMotion = require("framer-motion");
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
function _getRequireWildcardCache(
|
|
10
|
-
function _interopRequireWildcard(
|
|
11
|
-
const StyledMotionAccordionHead = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
9
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
const StyledMotionAccordionHead = exports.StyledMotionAccordionHead = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
12
12
|
align-items: center;
|
|
13
13
|
color: ${_ref => {
|
|
14
14
|
let {
|
|
@@ -20,8 +20,7 @@ const StyledMotionAccordionHead = (0, _styledComponents.default)(_framerMotion.m
|
|
|
20
20
|
overflow: hidden;
|
|
21
21
|
padding: 4px 0;
|
|
22
22
|
`;
|
|
23
|
-
exports.
|
|
24
|
-
const StyledMotionIconWrapper = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
23
|
+
const StyledMotionIconWrapper = exports.StyledMotionIconWrapper = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
25
24
|
align-items: center;
|
|
26
25
|
cursor: ${_ref2 => {
|
|
27
26
|
let {
|
|
@@ -35,13 +34,33 @@ const StyledMotionIconWrapper = (0, _styledComponents.default)(_framerMotion.mot
|
|
|
35
34
|
justify-content: center;
|
|
36
35
|
width: 25px;
|
|
37
36
|
`;
|
|
38
|
-
exports.
|
|
39
|
-
|
|
37
|
+
const StyledAccordionIcon = exports.StyledAccordionIcon = _styledComponents.default.i`
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
display: flex;
|
|
41
|
+
color: ${_ref3 => {
|
|
42
|
+
let {
|
|
43
|
+
theme
|
|
44
|
+
} = _ref3;
|
|
45
|
+
return theme.headline;
|
|
46
|
+
}};
|
|
47
|
+
|
|
48
|
+
&:before {
|
|
49
|
+
content: ${_ref4 => {
|
|
50
|
+
let {
|
|
51
|
+
icon
|
|
52
|
+
} = _ref4;
|
|
53
|
+
return `"\\${icon}"`;
|
|
54
|
+
}};
|
|
55
|
+
font-family: 'Font Awesome 6 Pro', Fontawesome !important;
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
const StyledMotionContentWrapper = exports.StyledMotionContentWrapper = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
40
59
|
align-self: flex-start;
|
|
41
|
-
cursor: ${
|
|
60
|
+
cursor: ${_ref5 => {
|
|
42
61
|
let {
|
|
43
62
|
onClick
|
|
44
|
-
} =
|
|
63
|
+
} = _ref5;
|
|
45
64
|
return typeof onClick === 'function' ? 'pointer' : 'default';
|
|
46
65
|
}};
|
|
47
66
|
display: flex;
|
|
@@ -50,65 +69,61 @@ const StyledMotionContentWrapper = (0, _styledComponents.default)(_framerMotion.
|
|
|
50
69
|
overflow: hidden;
|
|
51
70
|
margin-right: 10px;
|
|
52
71
|
`;
|
|
53
|
-
exports.
|
|
54
|
-
const StyledMotionTitleWrapper = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
72
|
+
const StyledMotionTitleWrapper = exports.StyledMotionTitleWrapper = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
55
73
|
display: grid;
|
|
56
74
|
flex: 0 1 auto;
|
|
57
75
|
grid-template-areas: 'header';
|
|
58
76
|
`;
|
|
59
|
-
exports.
|
|
60
|
-
|
|
61
|
-
font-size: ${_ref4 => {
|
|
77
|
+
const StyledMotionTitle = exports.StyledMotionTitle = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
78
|
+
font-size: ${_ref6 => {
|
|
62
79
|
let {
|
|
63
80
|
isOpen,
|
|
64
81
|
isWrapped
|
|
65
|
-
} =
|
|
82
|
+
} = _ref6;
|
|
66
83
|
return isOpen && !isWrapped ? '1.3rem' : undefined;
|
|
67
84
|
}};
|
|
68
|
-
font-weight: ${
|
|
85
|
+
font-weight: ${_ref7 => {
|
|
69
86
|
let {
|
|
70
87
|
isOpen,
|
|
71
88
|
isWrapped
|
|
72
|
-
} =
|
|
89
|
+
} = _ref7;
|
|
73
90
|
return isOpen && isWrapped ? 700 : 'normal';
|
|
74
91
|
}};
|
|
75
92
|
grid-area: header;
|
|
76
|
-
height: ${
|
|
93
|
+
height: ${_ref8 => {
|
|
77
94
|
let {
|
|
78
95
|
isWrapped
|
|
79
|
-
} =
|
|
96
|
+
} = _ref8;
|
|
80
97
|
return isWrapped ? '100%' : undefined;
|
|
81
98
|
}};
|
|
82
99
|
overflow: hidden;
|
|
83
100
|
text-overflow: ellipsis;
|
|
84
101
|
transform-origin: top left;
|
|
85
102
|
user-select: none;
|
|
86
|
-
white-space: ${
|
|
103
|
+
white-space: ${_ref9 => {
|
|
87
104
|
let {
|
|
88
105
|
isOpen,
|
|
89
106
|
isWrapped
|
|
90
|
-
} =
|
|
107
|
+
} = _ref9;
|
|
91
108
|
return isOpen && !isWrapped ? 'normal' : 'nowrap';
|
|
92
109
|
}};
|
|
93
110
|
|
|
94
|
-
${
|
|
111
|
+
${_ref10 => {
|
|
95
112
|
let {
|
|
96
113
|
isWrapped
|
|
97
|
-
} =
|
|
114
|
+
} = _ref10;
|
|
98
115
|
return isWrapped && (0, _styledComponents.css)`
|
|
99
116
|
align-items: center;
|
|
100
117
|
display: flex;
|
|
101
118
|
`;
|
|
102
119
|
}}
|
|
103
120
|
`;
|
|
104
|
-
exports.
|
|
105
|
-
const StyledMotionTitleElementWrapper = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
121
|
+
const StyledMotionTitleElementWrapper = exports.StyledMotionTitleElementWrapper = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
106
122
|
align-items: center;
|
|
107
123
|
display: flex;
|
|
108
124
|
margin-left: 8px;
|
|
109
125
|
`;
|
|
110
|
-
exports.
|
|
111
|
-
const StyledRightWrapper = _styledComponents.default.div`
|
|
126
|
+
const StyledRightWrapper = exports.StyledRightWrapper = _styledComponents.default.div`
|
|
112
127
|
display: grid;
|
|
113
128
|
flex: 0 0 auto;
|
|
114
129
|
grid-template-areas: 'right';
|
|
@@ -116,36 +131,39 @@ const StyledRightWrapper = _styledComponents.default.div`
|
|
|
116
131
|
overflow: hidden;
|
|
117
132
|
position: relative;
|
|
118
133
|
`;
|
|
119
|
-
exports.
|
|
120
|
-
const StyledMotionRightElementWrapper = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
134
|
+
const StyledMotionRightElementWrapper = exports.StyledMotionRightElementWrapper = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
121
135
|
align-items: center;
|
|
122
136
|
display: flex;
|
|
123
137
|
grid-area: header;
|
|
124
138
|
justify-content: flex-end;
|
|
125
139
|
`;
|
|
126
|
-
exports.
|
|
127
|
-
const StyledMotionRightInput = (0, _styledComponents.default)(_framerMotion.motion.input)`
|
|
140
|
+
const StyledMotionRightInput = exports.StyledMotionRightInput = (0, _styledComponents.default)(_framerMotion.motion.input)`
|
|
128
141
|
background-color: transparent;
|
|
129
142
|
border: 1px solid transparent;
|
|
130
143
|
border-bottom-color: rgba(
|
|
131
|
-
${
|
|
144
|
+
${_ref11 => {
|
|
132
145
|
let {
|
|
133
146
|
theme
|
|
134
|
-
} =
|
|
147
|
+
} = _ref11;
|
|
135
148
|
return theme['headline-rgb'];
|
|
136
149
|
}},
|
|
137
150
|
0.45
|
|
138
151
|
);
|
|
152
|
+
color: ${_ref12 => {
|
|
153
|
+
let {
|
|
154
|
+
theme
|
|
155
|
+
} = _ref12;
|
|
156
|
+
return theme.text;
|
|
157
|
+
}};
|
|
139
158
|
grid-area: header;
|
|
140
|
-
padding: ${
|
|
159
|
+
padding: ${_ref13 => {
|
|
141
160
|
let {
|
|
142
161
|
hasIcon
|
|
143
|
-
} =
|
|
162
|
+
} = _ref13;
|
|
144
163
|
return hasIcon ? '5px 23px 5px 1px' : '5px 1px';
|
|
145
164
|
}};
|
|
146
165
|
`;
|
|
147
|
-
exports.
|
|
148
|
-
const StyledMotionRightInputIconWrapper = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
166
|
+
const StyledMotionRightInputIconWrapper = exports.StyledMotionRightInputIconWrapper = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
149
167
|
align-items: center;
|
|
150
168
|
display: flex;
|
|
151
169
|
height: 100%;
|
|
@@ -154,5 +172,4 @@ const StyledMotionRightInputIconWrapper = (0, _styledComponents.default)(_framer
|
|
|
154
172
|
right: 4px;
|
|
155
173
|
top: 0;
|
|
156
174
|
`;
|
|
157
|
-
exports.StyledMotionRightInputIconWrapper = StyledMotionRightInputIconWrapper;
|
|
158
175
|
//# sourceMappingURL=AccordionHead.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionHead.styles.js","names":["StyledMotionAccordionHead","styled","motion","div","theme","text","StyledMotionIconWrapper","onClick","StyledMotionContentWrapper","StyledMotionTitleWrapper","StyledMotionTitle","isOpen","isWrapped","undefined","css","StyledMotionTitleElementWrapper","StyledRightWrapper","StyledMotionRightElementWrapper","StyledMotionRightInput","input","hasIcon","StyledMotionRightInputIconWrapper"],"sources":["../../../../src/components/accordion/accordion-head/AccordionHead.styles.ts"],"sourcesContent":["import { motion } from 'framer-motion';\nimport styled, { css } from 'styled-components';\nimport type {
|
|
1
|
+
{"version":3,"file":"AccordionHead.styles.js","names":["_framerMotion","require","_styledComponents","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","StyledMotionAccordionHead","exports","styled","motion","div","_ref","theme","text","StyledMotionIconWrapper","_ref2","onClick","StyledAccordionIcon","_ref3","headline","_ref4","icon","StyledMotionContentWrapper","_ref5","StyledMotionTitleWrapper","StyledMotionTitle","_ref6","isOpen","isWrapped","undefined","_ref7","_ref8","_ref9","_ref10","css","StyledMotionTitleElementWrapper","StyledRightWrapper","StyledMotionRightElementWrapper","StyledMotionRightInput","input","_ref11","_ref12","_ref13","hasIcon","StyledMotionRightInputIconWrapper"],"sources":["../../../../src/components/accordion/accordion-head/AccordionHead.styles.ts"],"sourcesContent":["import { motion } from 'framer-motion';\nimport styled, { css } from 'styled-components';\nimport type {\n FramerMotionBugFix,\n WithTheme,\n} from '../../color-scheme-provider/ColorSchemeProvider';\n\ntype StyledMotionAccordionHeadProps = WithTheme<unknown>;\n\nexport const StyledMotionAccordionHead = styled(motion.div)<StyledMotionAccordionHeadProps>`\n align-items: center;\n color: ${({ theme }: StyledMotionAccordionHeadProps) => theme.text};\n display: flex;\n overflow: hidden;\n padding: 4px 0;\n`;\n\nexport const StyledMotionIconWrapper = styled(motion.div)<FramerMotionBugFix>`\n align-items: center;\n cursor: ${({ onClick }) => (typeof onClick === 'function' ? 'pointer' : 'default')};\n display: flex;\n flex: 0 0 auto;\n height: 25px;\n justify-content: center;\n width: 25px;\n`;\n\ntype StyledAccordionIconProps = WithTheme<{ icon: string }>;\n\nexport const StyledAccordionIcon = styled.i<StyledAccordionIconProps>`\n align-items: center;\n justify-content: center;\n display: flex;\n color: ${({ theme }: StyledAccordionIconProps) => theme.headline};\n\n &:before {\n content: ${({ icon }) => `\"\\\\${icon}\"`};\n font-family: 'Font Awesome 6 Pro', Fontawesome !important;\n }\n`;\n\nexport const StyledMotionContentWrapper = styled(motion.div)<FramerMotionBugFix>`\n align-self: flex-start;\n cursor: ${({ onClick }) => (typeof onClick === 'function' ? 'pointer' : 'default')};\n display: flex;\n flex: 1 1 auto;\n height: 100%;\n overflow: hidden;\n margin-right: 10px;\n`;\n\nexport const StyledMotionTitleWrapper = styled(motion.div)<FramerMotionBugFix>`\n display: grid;\n flex: 0 1 auto;\n grid-template-areas: 'header';\n`;\n\ninterface StyledMotionTitleProps {\n isOpen: boolean;\n isWrapped: boolean;\n}\n\nexport const StyledMotionTitle = styled(motion.div)<StyledMotionTitleProps>`\n font-size: ${({ isOpen, isWrapped }) => (isOpen && !isWrapped ? '1.3rem' : undefined)};\n font-weight: ${({ isOpen, isWrapped }) => (isOpen && isWrapped ? 700 : 'normal')};\n grid-area: header;\n height: ${({ isWrapped }) => (isWrapped ? '100%' : undefined)};\n overflow: hidden;\n text-overflow: ellipsis;\n transform-origin: top left;\n user-select: none;\n white-space: ${({ isOpen, isWrapped }) => (isOpen && !isWrapped ? 'normal' : 'nowrap')};\n\n ${({ isWrapped }) =>\n isWrapped &&\n css`\n align-items: center;\n display: flex;\n `}\n`;\n\nexport const StyledMotionTitleElementWrapper = styled(motion.div)<FramerMotionBugFix>`\n align-items: center;\n display: flex;\n margin-left: 8px;\n`;\n\nexport const StyledRightWrapper = styled.div`\n display: grid;\n flex: 0 0 auto;\n grid-template-areas: 'right';\n margin-right: 5px;\n overflow: hidden;\n position: relative;\n`;\n\nexport const StyledMotionRightElementWrapper = styled(motion.div)<FramerMotionBugFix>`\n align-items: center;\n display: flex;\n grid-area: header;\n justify-content: flex-end;\n`;\n\ntype StyledMotionRightInputProps = WithTheme<{\n hasIcon: boolean;\n}>;\n\nexport const StyledMotionRightInput = styled(motion.input)<StyledMotionRightInputProps>`\n background-color: transparent;\n border: 1px solid transparent;\n border-bottom-color: rgba(\n ${({ theme }: StyledMotionRightInputProps) => theme['headline-rgb']},\n 0.45\n );\n color: ${({ theme }: StyledMotionRightInputProps) => theme.text};\n grid-area: header;\n padding: ${({ hasIcon }) => (hasIcon ? '5px 23px 5px 1px' : '5px 1px')};\n`;\n\nexport const StyledMotionRightInputIconWrapper = styled(motion.div)<FramerMotionBugFix>`\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n position: absolute;\n right: 4px;\n top: 0;\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,uBAAA,CAAAF,OAAA;AAAgD,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,G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ro';
|
|
19
|
-
var _default = AccordionIntro;
|
|
20
|
-
exports.default = _default;
|
|
19
|
+
var _default = exports.default = AccordionIntro;
|
|
21
20
|
//# sourceMappingURL=AccordionIntro.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionIntro.js","names":["AccordionIntro","children","displayName"],"sources":["../../../../src/components/accordion/accordion-intro/AccordionIntro.tsx"],"sourcesContent":["import React, { FC, ReactNode } from 'react';\nimport { StyledAccordionIntro } from './AccordionIntro.styles';\n\nexport type AccordionIntroProps = {\n /**\n * The content of the accordion content element\n */\n children: ReactNode;\n};\n\nconst AccordionIntro: FC<AccordionIntroProps> = ({ children }) => (\n <StyledAccordionIntro className=\"beta-chayns-accordion-intro\">{children}</StyledAccordionIntro>\n);\n\nAccordionIntro.displayName = 'AccordionIntro';\n\nexport default AccordionIntro;\n"],"mappings":";;;;;;AAAA;AACA;AAA+D;AAS/D,
|
|
1
|
+
{"version":3,"file":"AccordionIntro.js","names":["_react","_interopRequireDefault","require","_AccordionIntro","obj","__esModule","default","AccordionIntro","_ref","children","createElement","StyledAccordionIntro","className","displayName","_default","exports"],"sources":["../../../../src/components/accordion/accordion-intro/AccordionIntro.tsx"],"sourcesContent":["import React, { FC, ReactNode } from 'react';\nimport { StyledAccordionIntro } from './AccordionIntro.styles';\n\nexport type AccordionIntroProps = {\n /**\n * The content of the accordion content element\n */\n children: ReactNode;\n};\n\nconst AccordionIntro: FC<AccordionIntroProps> = ({ children }) => (\n <StyledAccordionIntro className=\"beta-chayns-accordion-intro\">{children}</StyledAccordionIntro>\n);\n\nAccordionIntro.displayName = 'AccordionIntro';\n\nexport default AccordionIntro;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AAA+D,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAS/D,MAAMG,cAAuC,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAS,CAAC,GAAAD,IAAA;EAAA,oBACzDR,MAAA,CAAAM,OAAA,CAAAI,aAAA,CAACP,eAAA,CAAAQ,oBAAoB;IAACC,SAAS,EAAC;EAA6B,GAAEH,QAA+B,CAAC;AAAA,CAClG;AAEDF,cAAc,CAACM,WAAW,GAAG,gBAAgB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAT,OAAA,GAE/BC,cAAc"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledAccordionIntro: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.StyledAccordionIntro = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
const StyledAccordionIntro = _styledComponents.default.div`
|
|
9
|
+
const StyledAccordionIntro = exports.StyledAccordionIntro = _styledComponents.default.div`
|
|
10
10
|
padding: 0 9px 6px;
|
|
11
11
|
`;
|
|
12
|
-
exports.StyledAccordionIntro = StyledAccordionIntro;
|
|
13
12
|
//# sourceMappingURL=AccordionIntro.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionIntro.styles.js","names":["StyledAccordionIntro","styled","div"],"sources":["../../../../src/components/accordion/accordion-intro/AccordionIntro.styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StyledAccordionIntro = styled.div`\n padding: 0 9px 6px;\n`;\n"],"mappings":";;;;;;AAAA;AAAuC;AAEhC,
|
|
1
|
+
{"version":3,"file":"AccordionIntro.styles.js","names":["_styledComponents","_interopRequireDefault","require","obj","__esModule","default","StyledAccordionIntro","exports","styled","div"],"sources":["../../../../src/components/accordion/accordion-intro/AccordionIntro.styles.ts"],"sourcesContent":["import styled from 'styled-components';\n\nexport const StyledAccordionIntro = styled.div`\n padding: 0 9px 6px;\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAuC,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEhC,MAAMG,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAGE,yBAAM,CAACC,GAAI;AAC/C;AACA,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _Accordion = require("../Accordion");
|
|
9
|
+
var _AccordionItem = require("./AccordionItem.styles");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
const AccordionItem = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
children
|
|
14
|
+
} = _ref;
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement(_Accordion.AccordionContext.Consumer, null, _ref2 => {
|
|
16
|
+
let {
|
|
17
|
+
isWrapped
|
|
18
|
+
} = _ref2;
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_AccordionItem.StyledAccordionItem, {
|
|
20
|
+
className: "beta-chayns-accordion-item",
|
|
21
|
+
isWrapped: isWrapped
|
|
22
|
+
}, children);
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
AccordionItem.displayName = 'AccordionItem';
|
|
26
|
+
var _default = exports.default = AccordionItem;
|
|
27
|
+
//# sourceMappingURL=AccordionItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionItem.js","names":["_react","_interopRequireDefault","require","_Accordion","_AccordionItem","obj","__esModule","default","AccordionItem","_ref","children","createElement","AccordionContext","Consumer","_ref2","isWrapped","StyledAccordionItem","className","displayName","_default","exports"],"sources":["../../../../src/components/accordion/accordion-item/AccordionItem.tsx"],"sourcesContent":["import React, { FC, ReactNode } from 'react';\nimport { AccordionContext } from '../Accordion';\nimport { StyledAccordionItem } from './AccordionItem.styles';\n\nexport type AccordionItemProps = {\n /**\n * The content of the accordion content element\n */\n children: ReactNode;\n};\n\nconst AccordionItem: FC<AccordionItemProps> = ({ children }) => (\n <AccordionContext.Consumer>\n {({ isWrapped }) => (\n <StyledAccordionItem className=\"beta-chayns-accordion-item\" isWrapped={isWrapped}>\n {children}\n </StyledAccordionItem>\n )}\n </AccordionContext.Consumer>\n);\n\nAccordionItem.displayName = 'AccordionItem';\n\nexport default AccordionItem;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAA6D,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAS7D,MAAMG,aAAqC,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAS,CAAC,GAAAD,IAAA;EAAA,oBACvDT,MAAA,CAAAO,OAAA,CAAAI,aAAA,CAACR,UAAA,CAAAS,gBAAgB,CAACC,QAAQ,QACrBC,KAAA;IAAA,IAAC;MAAEC;IAAU,CAAC,GAAAD,KAAA;IAAA,oBACXd,MAAA,CAAAO,OAAA,CAAAI,aAAA,CAACP,cAAA,CAAAY,mBAAmB;MAACC,SAAS,EAAC,4BAA4B;MAACF,SAAS,EAAEA;IAAU,GAC5EL,QACgB,CAAC;EAAA,CAEH,CAAC;AAAA,CAC/B;AAEDF,aAAa,CAACU,WAAW,GAAG,eAAe;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAb,OAAA,GAE7BC,aAAa"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { WithTheme } from '../../color-scheme-provider/ColorSchemeProvider';
|
|
3
|
+
type StyledAccordionItemProps = WithTheme<{
|
|
4
|
+
isWrapped: boolean;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const StyledAccordionItem: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledAccordionItemProps>>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StyledAccordionItem = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
const StyledAccordionItem = exports.StyledAccordionItem = _styledComponents.default.div`
|
|
10
|
+
color: ${_ref => {
|
|
11
|
+
let {
|
|
12
|
+
theme
|
|
13
|
+
} = _ref;
|
|
14
|
+
return theme.text;
|
|
15
|
+
}};
|
|
16
|
+
padding: ${_ref2 => {
|
|
17
|
+
let {
|
|
18
|
+
isWrapped
|
|
19
|
+
} = _ref2;
|
|
20
|
+
return isWrapped ? '8px 9px 8px 30px' : '8px 9px';
|
|
21
|
+
}};
|
|
22
|
+
|
|
23
|
+
&:not(:first-child) {
|
|
24
|
+
border-top: 1px solid
|
|
25
|
+
rgba(${_ref3 => {
|
|
26
|
+
let {
|
|
27
|
+
theme
|
|
28
|
+
} = _ref3;
|
|
29
|
+
return theme['headline-rgb'];
|
|
30
|
+
}}, 0.5);
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
//# sourceMappingURL=AccordionItem.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionItem.styles.js","names":["_styledComponents","_interopRequireDefault","require","obj","__esModule","default","StyledAccordionItem","exports","styled","div","_ref","theme","text","_ref2","isWrapped","_ref3"],"sources":["../../../../src/components/accordion/accordion-item/AccordionItem.styles.ts"],"sourcesContent":["import styled from 'styled-components';\nimport type { WithTheme } from '../../color-scheme-provider/ColorSchemeProvider';\n\ntype StyledAccordionItemProps = WithTheme<{\n isWrapped: boolean;\n}>;\n\nexport const StyledAccordionItem = styled.div<StyledAccordionItemProps>`\n color: ${({ theme }: StyledAccordionItemProps) => theme.text};\n padding: ${({ isWrapped }) => (isWrapped ? '8px 9px 8px 30px' : '8px 9px')};\n\n &:not(:first-child) {\n border-top: 1px solid\n rgba(${({ theme }: StyledAccordionItemProps) => theme['headline-rgb']}, 0.5);\n }\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAuC,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAOhC,MAAMG,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAGE,yBAAM,CAACC,GAA8B;AACxE,aAAaC,IAAA;EAAA,IAAC;IAAEC;EAAgC,CAAC,GAAAD,IAAA;EAAA,OAAKC,KAAK,CAACC,IAAI;AAAA,CAAC;AACjE,eAAeC,KAAA;EAAA,IAAC;IAAEC;EAAU,CAAC,GAAAD,KAAA;EAAA,OAAMC,SAAS,GAAG,kBAAkB,GAAG,SAAS;AAAA,CAAE;AAC/E;AACA;AACA;AACA,mBAAmBC,KAAA;EAAA,IAAC;IAAEJ;EAAgC,CAAC,GAAAI,KAAA;EAAA,OAAKJ,KAAK,CAAC,cAAc,CAAC;AAAA,CAAC;AAClF;AACA,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export type DisplayState = 'default' | 'delete' | 'normal' | 'maxAmount';
|
|
3
|
+
export type AmountControlProps = {
|
|
4
|
+
/**
|
|
5
|
+
* The amount that should be displayed.
|
|
6
|
+
*/
|
|
7
|
+
amount?: number;
|
|
8
|
+
/**
|
|
9
|
+
* A Text that should be displayed, if no amount is selected;
|
|
10
|
+
*/
|
|
11
|
+
label?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The maximum allowed amount. If the maxAmount is set to one, a delete button is displayed on the left side.
|
|
14
|
+
*/
|
|
15
|
+
maxAmount?: number;
|
|
16
|
+
/**
|
|
17
|
+
* A Function that is executed when the amount is changed
|
|
18
|
+
*/
|
|
19
|
+
onChange?: (amount: number) => void;
|
|
20
|
+
};
|
|
21
|
+
declare const AmountControl: FC<AmountControlProps>;
|
|
22
|
+
export default AmountControl;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _framerMotion = require("framer-motion");
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _Icon = _interopRequireDefault(require("../icon/Icon"));
|
|
10
|
+
var _AmountControl = require("./AmountControl.styles");
|
|
11
|
+
var _amountControl = require("../../utils/amountControl");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
const AmountControl = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
amount,
|
|
18
|
+
label,
|
|
19
|
+
maxAmount,
|
|
20
|
+
onChange
|
|
21
|
+
} = _ref;
|
|
22
|
+
const [amountValue, setAmountValue] = (0, _react.useState)(0);
|
|
23
|
+
const [inputValue, setInputValue] = (0, _react.useState)('0');
|
|
24
|
+
const [displayState, setDisplayState] = (0, _react.useState)('default');
|
|
25
|
+
const minAmount = 0;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* This function controls the displayState
|
|
29
|
+
*/
|
|
30
|
+
(0, _react.useEffect)(() => {
|
|
31
|
+
switch (true) {
|
|
32
|
+
case maxAmount === 1 && amountValue === 1:
|
|
33
|
+
setDisplayState('delete');
|
|
34
|
+
return;
|
|
35
|
+
case maxAmount && amountValue >= maxAmount:
|
|
36
|
+
setDisplayState('maxAmount');
|
|
37
|
+
return;
|
|
38
|
+
case amountValue > 0:
|
|
39
|
+
setDisplayState('normal');
|
|
40
|
+
return;
|
|
41
|
+
default:
|
|
42
|
+
setDisplayState('default');
|
|
43
|
+
}
|
|
44
|
+
}, [amountValue, maxAmount]);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Function that sets the amountValue to the amount
|
|
48
|
+
*/
|
|
49
|
+
(0, _react.useEffect)(() => {
|
|
50
|
+
if (!amount) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
setAmountValue((0, _amountControl.checkForValidAmount)({
|
|
54
|
+
amount,
|
|
55
|
+
maxAmount,
|
|
56
|
+
minAmount
|
|
57
|
+
}));
|
|
58
|
+
setInputValue((0, _amountControl.checkForValidAmount)({
|
|
59
|
+
amount,
|
|
60
|
+
maxAmount,
|
|
61
|
+
minAmount
|
|
62
|
+
}).toString());
|
|
63
|
+
}, [amount, maxAmount, minAmount]);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Function that updates the onChange event
|
|
67
|
+
*/
|
|
68
|
+
(0, _react.useEffect)(() => {
|
|
69
|
+
if (onChange) {
|
|
70
|
+
onChange(amountValue);
|
|
71
|
+
}
|
|
72
|
+
}, [amountValue, onChange]);
|
|
73
|
+
const handleAmountAdd = () => {
|
|
74
|
+
setAmountValue(prevState => prevState + 1);
|
|
75
|
+
setInputValue(prevState => (Number(prevState) + 1).toString());
|
|
76
|
+
};
|
|
77
|
+
const handleAmountRemove = () => {
|
|
78
|
+
setAmountValue(prevState => prevState - 1);
|
|
79
|
+
setInputValue(prevState => (Number(prevState) - 1).toString());
|
|
80
|
+
};
|
|
81
|
+
const handleFirstAmount = (0, _react.useCallback)(() => {
|
|
82
|
+
if (amountValue !== 0) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
setAmountValue(1);
|
|
86
|
+
setInputValue('1');
|
|
87
|
+
}, [amountValue]);
|
|
88
|
+
const handleInputBlur = (0, _react.useCallback)(() => {
|
|
89
|
+
setAmountValue(inputValue === '' ? 0 : Number(inputValue));
|
|
90
|
+
if (inputValue === '') {
|
|
91
|
+
setInputValue('0');
|
|
92
|
+
}
|
|
93
|
+
}, [inputValue]);
|
|
94
|
+
const handleInputChange = (0, _react.useCallback)(event => {
|
|
95
|
+
const valueBeforeCheck = Number(event.target.value);
|
|
96
|
+
const checkedValue = (0, _amountControl.checkForValidAmount)({
|
|
97
|
+
minAmount,
|
|
98
|
+
maxAmount,
|
|
99
|
+
amount: Number(event.target.value)
|
|
100
|
+
});
|
|
101
|
+
if (valueBeforeCheck < minAmount && minAmount === 0) {
|
|
102
|
+
setInputValue('0');
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
setInputValue(checkedValue === 0 ? '' : checkedValue.toString());
|
|
106
|
+
}, [maxAmount, minAmount]);
|
|
107
|
+
const leftIcon = (0, _react.useMemo)(() => {
|
|
108
|
+
let item = null;
|
|
109
|
+
switch (displayState) {
|
|
110
|
+
case 'default':
|
|
111
|
+
item = /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
112
|
+
icons: ['fa fa-cart-shopping'],
|
|
113
|
+
size: 15
|
|
114
|
+
});
|
|
115
|
+
break;
|
|
116
|
+
case 'delete':
|
|
117
|
+
item = /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
118
|
+
icons: ['fa ts-trash'],
|
|
119
|
+
size: 25
|
|
120
|
+
});
|
|
121
|
+
break;
|
|
122
|
+
case 'normal':
|
|
123
|
+
item = /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
124
|
+
icons: ['fa fa-minus'],
|
|
125
|
+
size: 15,
|
|
126
|
+
color: "red"
|
|
127
|
+
});
|
|
128
|
+
break;
|
|
129
|
+
case 'maxAmount':
|
|
130
|
+
item = /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
131
|
+
icons: ['fa fa-minus'],
|
|
132
|
+
size: 15,
|
|
133
|
+
color: "red"
|
|
134
|
+
});
|
|
135
|
+
break;
|
|
136
|
+
default:
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
return item;
|
|
140
|
+
}, [displayState]);
|
|
141
|
+
return (0, _react.useMemo)(() => /*#__PURE__*/_react.default.createElement(_AmountControl.StyledAmountControl, {
|
|
142
|
+
onClick: handleFirstAmount
|
|
143
|
+
}, /*#__PURE__*/_react.default.createElement(_AmountControl.StyledMotionAmountControlButton, {
|
|
144
|
+
onClick: handleAmountRemove,
|
|
145
|
+
disabled: amountValue !== 0 && amountValue <= minAmount
|
|
146
|
+
}, leftIcon), /*#__PURE__*/_react.default.createElement(_AmountControl.StyledAmountControlInput, {
|
|
147
|
+
displayState: displayState,
|
|
148
|
+
onBlur: handleInputBlur,
|
|
149
|
+
onChange: handleInputChange,
|
|
150
|
+
value: displayState === 'default' && label ? label : inputValue,
|
|
151
|
+
type: amountValue === 0 ? 'text' : 'number'
|
|
152
|
+
}), /*#__PURE__*/_react.default.createElement(_framerMotion.AnimatePresence, {
|
|
153
|
+
initial: false
|
|
154
|
+
}, displayState === 'normal' && /*#__PURE__*/_react.default.createElement(_AmountControl.StyledMotionAmountControlButton, {
|
|
155
|
+
key: "right_button",
|
|
156
|
+
initial: {
|
|
157
|
+
width: 0,
|
|
158
|
+
opacity: 0,
|
|
159
|
+
padding: 0
|
|
160
|
+
},
|
|
161
|
+
animate: {
|
|
162
|
+
width: 40,
|
|
163
|
+
opacity: 1,
|
|
164
|
+
padding: 0
|
|
165
|
+
},
|
|
166
|
+
exit: {
|
|
167
|
+
width: 0,
|
|
168
|
+
opacity: 0,
|
|
169
|
+
padding: 0
|
|
170
|
+
},
|
|
171
|
+
transition: {
|
|
172
|
+
duration: 0.2,
|
|
173
|
+
type: 'tween'
|
|
174
|
+
},
|
|
175
|
+
onClick: handleAmountAdd,
|
|
176
|
+
disabled: maxAmount ? amountValue >= maxAmount : false
|
|
177
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
178
|
+
icons: ['fa fa-plus'],
|
|
179
|
+
size: 15,
|
|
180
|
+
color: "green"
|
|
181
|
+
})))), [amountValue, displayState, handleFirstAmount, handleInputBlur, handleInputChange, inputValue, label, leftIcon, maxAmount, minAmount]);
|
|
182
|
+
};
|
|
183
|
+
AmountControl.displayName = 'AmountControl';
|
|
184
|
+
var _default = exports.default = AmountControl;
|
|
185
|
+
//# sourceMappingURL=AmountControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmountControl.js","names":["_framerMotion","require","_react","_interopRequireWildcard","_Icon","_interopRequireDefault","_AmountControl","_amountControl","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","AmountControl","_ref","amount","label","maxAmount","onChange","amountValue","setAmountValue","useState","inputValue","setInputValue","displayState","setDisplayState","minAmount","useEffect","checkForValidAmount","toString","handleAmountAdd","prevState","Number","handleAmountRemove","handleFirstAmount","useCallback","handleInputBlur","handleInputChange","event","valueBeforeCheck","target","value","checkedValue","leftIcon","useMemo","item","createElement","icons","size","color","StyledAmountControl","onClick","StyledMotionAmountControlButton","disabled","StyledAmountControlInput","onBlur","type","AnimatePresence","initial","key","width","opacity","padding","animate","exit","transition","duration","displayName","_default","exports"],"sources":["../../../src/components/amount-control/AmountControl.tsx"],"sourcesContent":["import { AnimatePresence } from 'framer-motion';\nimport React, {\n ChangeEvent,\n FC,\n ReactElement,\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react';\nimport Icon from '../icon/Icon';\nimport {\n StyledAmountControl,\n StyledAmountControlInput,\n StyledMotionAmountControlButton,\n} from './AmountControl.styles';\nimport { checkForValidAmount } from '../../utils/amountControl';\n\nexport type DisplayState = 'default' | 'delete' | 'normal' | 'maxAmount';\n\nexport type AmountControlProps = {\n /**\n * The amount that should be displayed.\n */\n amount?: number;\n /**\n * A Text that should be displayed, if no amount is selected;\n */\n label?: string;\n /**\n * The maximum allowed amount. If the maxAmount is set to one, a delete button is displayed on the left side.\n */\n maxAmount?: number;\n /**\n * A Function that is executed when the amount is changed\n */\n onChange?: (amount: number) => void;\n};\n\nconst AmountControl: FC<AmountControlProps> = ({ amount, label, maxAmount, onChange }) => {\n const [amountValue, setAmountValue] = useState(0);\n const [inputValue, setInputValue] = useState('0');\n const [displayState, setDisplayState] = useState<DisplayState>('default');\n\n const minAmount = 0;\n\n /**\n * This function controls the displayState\n */\n useEffect(() => {\n switch (true) {\n case maxAmount === 1 && amountValue === 1:\n setDisplayState('delete');\n return;\n case maxAmount && amountValue >= maxAmount:\n setDisplayState('maxAmount');\n return;\n case amountValue > 0:\n setDisplayState('normal');\n return;\n default:\n setDisplayState('default');\n }\n }, [amountValue, maxAmount]);\n\n /**\n * Function that sets the amountValue to the amount\n */\n useEffect(() => {\n if (!amount) {\n return;\n }\n\n setAmountValue(checkForValidAmount({ amount, maxAmount, minAmount }));\n setInputValue(checkForValidAmount({ amount, maxAmount, minAmount }).toString());\n }, [amount, maxAmount, minAmount]);\n\n /**\n * Function that updates the onChange event\n */\n useEffect(() => {\n if (onChange) {\n onChange(amountValue);\n }\n }, [amountValue, onChange]);\n\n const handleAmountAdd = () => {\n setAmountValue((prevState) => prevState + 1);\n setInputValue((prevState) => (Number(prevState) + 1).toString());\n };\n\n const handleAmountRemove = () => {\n setAmountValue((prevState) => prevState - 1);\n setInputValue((prevState) => (Number(prevState) - 1).toString());\n };\n\n const handleFirstAmount = useCallback(() => {\n if (amountValue !== 0) {\n return;\n }\n\n setAmountValue(1);\n setInputValue('1');\n }, [amountValue]);\n\n const handleInputBlur = useCallback(() => {\n setAmountValue(inputValue === '' ? 0 : Number(inputValue));\n\n if (inputValue === '') {\n setInputValue('0');\n }\n }, [inputValue]);\n\n const handleInputChange = useCallback(\n (event: ChangeEvent<HTMLInputElement>) => {\n const valueBeforeCheck = Number(event.target.value);\n\n const checkedValue = checkForValidAmount({\n minAmount,\n maxAmount,\n amount: Number(event.target.value),\n });\n\n if (valueBeforeCheck < minAmount && minAmount === 0) {\n setInputValue('0');\n\n return;\n }\n\n setInputValue(checkedValue === 0 ? '' : checkedValue.toString());\n },\n [maxAmount, minAmount],\n );\n\n const leftIcon = useMemo(() => {\n let item: ReactElement | null = null;\n\n switch (displayState) {\n case 'default':\n item = <Icon icons={['fa fa-cart-shopping']} size={15} />;\n break;\n case 'delete':\n item = <Icon icons={['fa ts-trash']} size={25} />;\n break;\n case 'normal':\n item = <Icon icons={['fa fa-minus']} size={15} color=\"red\" />;\n break;\n case 'maxAmount':\n item = <Icon icons={['fa fa-minus']} size={15} color=\"red\" />;\n break;\n default:\n break;\n }\n\n return item;\n }, [displayState]);\n\n return useMemo(\n () => (\n <StyledAmountControl onClick={handleFirstAmount}>\n <StyledMotionAmountControlButton\n onClick={handleAmountRemove}\n disabled={amountValue !== 0 && amountValue <= minAmount}\n >\n {leftIcon}\n </StyledMotionAmountControlButton>\n <StyledAmountControlInput\n displayState={displayState}\n onBlur={handleInputBlur}\n onChange={handleInputChange}\n value={displayState === 'default' && label ? label : inputValue}\n type={amountValue === 0 ? 'text' : 'number'}\n />\n <AnimatePresence initial={false}>\n {displayState === 'normal' && (\n <StyledMotionAmountControlButton\n key=\"right_button\"\n initial={{ width: 0, opacity: 0, padding: 0 }}\n animate={{ width: 40, opacity: 1, padding: 0 }}\n exit={{ width: 0, opacity: 0, padding: 0 }}\n transition={{ duration: 0.2, type: 'tween' }}\n onClick={handleAmountAdd}\n disabled={maxAmount ? amountValue >= maxAmount : false}\n >\n <Icon icons={['fa fa-plus']} size={15} color=\"green\" />\n </StyledMotionAmountControlButton>\n )}\n </AnimatePresence>\n </StyledAmountControl>\n ),\n [\n amountValue,\n displayState,\n handleFirstAmount,\n handleInputBlur,\n handleInputChange,\n inputValue,\n label,\n leftIcon,\n maxAmount,\n minAmount,\n ],\n );\n};\n\nAmountControl.displayName = 'AmountControl';\n\nexport default AmountControl;\n"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AASA,IAAAG,KAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AAKA,IAAAM,cAAA,GAAAN,OAAA;AAAgE,SAAAI,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;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