@chayns-components/core 5.0.0-beta.36 → 5.0.0-beta.360
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 -9
- 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/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 +24 -3
- package/lib/components/accordion/Accordion.js +38 -33
- 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 +70 -35
- 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 -17
- 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 +15 -11
- package/lib/components/accordion/accordion-body/AccordionBody.styles.js.map +1 -1
- package/lib/components/accordion/accordion-content/AccordionContent.d.ts +10 -2
- package/lib/components/accordion/accordion-content/AccordionContent.js +7 -10
- package/lib/components/accordion/accordion-content/AccordionContent.js.map +1 -1
- package/lib/components/accordion/accordion-content/AccordionContent.styles.d.ts +7 -4
- package/lib/components/accordion/accordion-content/AccordionContent.styles.js +18 -13
- 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 -14
- package/lib/components/accordion/accordion-group/AccordionGroup.js.map +1 -1
- package/lib/components/accordion/accordion-head/AccordionHead.d.ts +1 -1
- package/lib/components/accordion/accordion-head/AccordionHead.js +6 -19
- package/lib/components/accordion/accordion-head/AccordionHead.js.map +1 -1
- package/lib/components/accordion/accordion-head/AccordionHead.styles.d.ts +2687 -12
- package/lib/components/accordion/accordion-head/AccordionHead.styles.js +104 -45
- package/lib/components/accordion/accordion-head/AccordionHead.styles.js.map +1 -1
- package/lib/components/accordion/accordion-intro/AccordionIntro.d.ts +8 -2
- package/lib/components/accordion/accordion-intro/AccordionIntro.js +1 -7
- package/lib/components/accordion/accordion-intro/AccordionIntro.js.map +1 -1
- package/lib/components/accordion/accordion-intro/AccordionIntro.styles.d.ts +273 -1
- package/lib/components/accordion/accordion-intro/AccordionIntro.styles.js +3 -10
- 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/accordion/utils.js +1 -5
- package/lib/components/accordion/utils.js.map +1 -1
- 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/amount-control/utils.d.ts +7 -0
- package/lib/components/amount-control/utils.js +22 -0
- package/lib/components/amount-control/utils.js.map +1 -0
- package/lib/components/badge/Badge.d.ts +1 -1
- package/lib/components/badge/Badge.js +1 -8
- 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 +14 -14
- 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 +55 -14
- package/lib/components/button/Button.js.map +1 -1
- package/lib/components/button/Button.styles.d.ts +808 -4
- package/lib/components/button/Button.styles.js +59 -23
- package/lib/components/button/Button.styles.js.map +1 -1
- package/lib/components/checkbox/Checkbox.d.ts +33 -0
- package/lib/components/checkbox/Checkbox.js +51 -0
- package/lib/components/checkbox/Checkbox.js.map +1 -0
- package/lib/components/checkbox/Checkbox.styles.d.ts +585 -0
- package/lib/components/checkbox/Checkbox.styles.js +140 -0
- package/lib/components/checkbox/Checkbox.styles.js.map +1 -0
- package/lib/components/code-highlighter/CodeHighlighter.d.ts +36 -0
- package/lib/components/code-highlighter/CodeHighlighter.js +82 -0
- package/lib/components/code-highlighter/CodeHighlighter.js.map +1 -0
- package/lib/components/code-highlighter/CodeHighlighter.styles.d.ts +16 -0
- package/lib/components/code-highlighter/CodeHighlighter.styles.js +88 -0
- package/lib/components/code-highlighter/CodeHighlighter.styles.js.map +1 -0
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.d.ts +9 -0
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.js +41 -0
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.js.map +1 -0
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.styles.d.ts +280 -0
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.styles.js +24 -0
- package/lib/components/code-highlighter/copy-to-clipboard/CopyToClipboard.styles.js.map +1 -0
- package/lib/components/color-scheme-provider/ColorSchemeProvider.d.ts +3 -2
- package/lib/components/color-scheme-provider/ColorSchemeProvider.js +20 -27
- package/lib/components/color-scheme-provider/ColorSchemeProvider.js.map +1 -1
- package/lib/components/color-scheme-provider/font.d.ts +6 -0
- package/lib/components/color-scheme-provider/font.js +59 -0
- package/lib/components/color-scheme-provider/font.js.map +1 -0
- package/lib/components/combobox/ComboBox.d.ts +25 -0
- package/lib/components/combobox/ComboBox.js +143 -0
- package/lib/components/combobox/ComboBox.js.map +1 -0
- package/lib/components/combobox/ComboBox.styles.d.ts +821 -0
- package/lib/components/combobox/ComboBox.styles.js +123 -0
- package/lib/components/combobox/ComboBox.styles.js.map +1 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.d.ts +18 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.js +29 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.js.map +1 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.styles.d.ts +4 -0
- package/lib/components/combobox/combobox-item/ComboBoxItem.styles.js +27 -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 +273 -0
- package/lib/components/content-card/ContentCard.styles.js +22 -0
- package/lib/components/content-card/ContentCard.styles.js.map +1 -0
- package/lib/components/context-menu/ContextMenu.d.ts +5 -5
- package/lib/components/context-menu/ContextMenu.js +20 -42
- package/lib/components/context-menu/ContextMenu.js.map +1 -1
- package/lib/components/context-menu/ContextMenu.styles.d.ts +273 -1
- package/lib/components/context-menu/ContextMenu.styles.js +3 -10
- package/lib/components/context-menu/ContextMenu.styles.js.map +1 -1
- package/lib/components/context-menu/constants/alignment.js +3 -5
- package/lib/components/context-menu/constants/alignment.js.map +1 -1
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.d.ts +1 -1
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.js +11 -11
- 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 +813 -8
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.js +80 -39
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.js.map +1 -1
- package/lib/components/date-info/DateInfo.d.ts +40 -0
- package/lib/components/date-info/DateInfo.js +108 -0
- package/lib/components/date-info/DateInfo.js.map +1 -0
- package/lib/components/date-info/utils/format.d.ts +43 -0
- package/lib/components/date-info/utils/format.js +287 -0
- package/lib/components/date-info/utils/format.js.map +1 -0
- package/lib/components/date-info/utils/language.d.ts +1 -0
- package/lib/components/date-info/utils/language.js +35 -0
- package/lib/components/date-info/utils/language.js.map +1 -0
- package/lib/components/file-input/FileInput.d.ts +21 -0
- package/lib/components/file-input/FileInput.js +104 -0
- package/lib/components/file-input/FileInput.js.map +1 -0
- package/lib/components/file-input/FileInput.styles.d.ts +544 -0
- package/lib/components/file-input/FileInput.styles.js +35 -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 +273 -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 +273 -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 +557 -0
- package/lib/components/filter-buttons/filter-button/FilterButton.styles.js +104 -0
- package/lib/components/filter-buttons/filter-button/FilterButton.styles.js.map +1 -0
- package/lib/components/filter-buttons/types.d.ts +15 -0
- package/lib/components/filter-buttons/types.js +17 -0
- package/lib/components/filter-buttons/types.js.map +1 -0
- package/lib/components/grid-image/GridImage.d.ts +1 -1
- package/lib/components/grid-image/GridImage.js +3 -10
- 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 +52 -32
- 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 +2 -16
- 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 +35 -29
- package/lib/components/icon/Icon.styles.js.map +1 -1
- package/lib/components/icon/utils.js +1 -5
- package/lib/components/icon/utils.js.map +1 -1
- package/lib/components/input/Input.d.ts +35 -3
- package/lib/components/input/Input.js +62 -24
- package/lib/components/input/Input.js.map +1 -1
- package/lib/components/input/Input.styles.d.ts +1081 -6
- package/lib/components/input/Input.styles.js +80 -28
- 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 -14
- package/lib/components/list/List.js.map +1 -1
- package/lib/components/list/list-item/ListItem.d.ts +1 -1
- package/lib/components/list/list-item/ListItem.js +7 -20
- 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 +30 -32
- 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 -12
- 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 +3 -10
- 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 -7
- 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 +273 -1
- package/lib/components/list/list-item/list-item-content/ListItemContent.styles.js +5 -11
- 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 -17
- 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 +2434 -14
- package/lib/components/list/list-item/list-item-head/ListItemHead.styles.js +75 -55
- 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 -8
- 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 +273 -1
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.js +14 -12
- 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 -15
- 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 +25 -18
- 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 +540 -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/constants/alignment.d.ts +4 -0
- package/lib/components/mention-finder/constants/alignment.js +12 -0
- package/lib/components/mention-finder/constants/alignment.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 +1102 -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 +46 -0
- package/lib/components/number-input/NumberInput.js +123 -0
- package/lib/components/number-input/NumberInput.js.map +1 -0
- package/lib/components/number-input/constants/number.d.ts +4 -0
- package/lib/components/number-input/constants/number.js +11 -0
- package/lib/components/number-input/constants/number.js.map +1 -0
- package/lib/components/number-input/utils/number.d.ts +21 -0
- package/lib/components/number-input/utils/number.js +64 -0
- package/lib/components/number-input/utils/number.js.map +1 -0
- package/lib/components/popup/Popup.d.ts +26 -0
- package/lib/components/popup/Popup.js +153 -0
- package/lib/components/popup/Popup.js.map +1 -0
- package/lib/components/popup/Popup.styles.d.ts +276 -0
- package/lib/components/popup/Popup.styles.js +25 -0
- package/lib/components/popup/Popup.styles.js.map +1 -0
- package/lib/components/popup/popup-content/PopupContent.d.ts +9 -0
- package/lib/components/popup/popup-content/PopupContent.js +68 -0
- package/lib/components/popup/popup-content/PopupContent.js.map +1 -0
- package/lib/components/popup/popup-content/PopupContent.styles.d.ts +544 -0
- package/lib/components/popup/popup-content/PopupContent.styles.js +94 -0
- package/lib/components/popup/popup-content/PopupContent.styles.js.map +1 -0
- package/lib/components/popup/types.d.ts +16 -0
- package/lib/components/popup/types.js +16 -0
- package/lib/components/popup/types.js.map +1 -0
- package/lib/components/progress-bar/ProgressBar.d.ts +9 -0
- package/lib/components/progress-bar/ProgressBar.js +38 -0
- package/lib/components/progress-bar/ProgressBar.js.map +1 -0
- package/lib/components/progress-bar/ProgressBar.styles.d.ts +541 -0
- package/lib/components/progress-bar/ProgressBar.styles.js +36 -0
- package/lib/components/progress-bar/ProgressBar.styles.js.map +1 -0
- package/lib/components/radio-button/RadioButton.d.ts +26 -0
- package/lib/components/radio-button/RadioButton.js +85 -0
- package/lib/components/radio-button/RadioButton.js.map +1 -0
- package/lib/components/radio-button/RadioButton.styles.d.ts +22 -0
- package/lib/components/radio-button/RadioButton.styles.js +95 -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/radio-button/types.d.ts +4 -0
- package/lib/components/radio-button/types.js +2 -0
- package/lib/components/radio-button/types.js.map +1 -0
- package/lib/components/scroll-view/ScrollView.d.ts +13 -0
- package/lib/components/scroll-view/ScrollView.js +22 -0
- package/lib/components/scroll-view/ScrollView.js.map +1 -0
- package/lib/components/scroll-view/ScrollView.styles.d.ts +7 -0
- package/lib/components/scroll-view/ScrollView.styles.js +26 -0
- package/lib/components/scroll-view/ScrollView.styles.js.map +1 -0
- package/lib/components/search-box/SearchBox.d.ts +30 -0
- package/lib/components/search-box/SearchBox.js +179 -0
- package/lib/components/search-box/SearchBox.js.map +1 -0
- package/lib/components/search-box/SearchBox.styles.d.ts +542 -0
- package/lib/components/search-box/SearchBox.styles.js +56 -0
- package/lib/components/search-box/SearchBox.styles.js.map +1 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.d.ts +9 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.js +29 -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 +7 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.styles.js +28 -0
- package/lib/components/search-box/search-box-item/SearchBoxItem.styles.js.map +1 -0
- package/lib/components/search-box/types.d.ts +4 -0
- package/lib/components/search-box/types.js +2 -0
- package/lib/components/search-box/types.js.map +1 -0
- package/lib/components/search-box/utils.d.ts +7 -0
- package/lib/components/search-box/utils.js +23 -0
- package/lib/components/search-box/utils.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 +1074 -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/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 +273 -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 +544 -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 +547 -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/slider/Slider.d.ts +21 -0
- package/lib/components/slider/Slider.js +51 -0
- package/lib/components/slider/Slider.js.map +1 -0
- package/lib/components/slider/Slider.styles.d.ts +281 -0
- package/lib/components/slider/Slider.styles.js +74 -0
- package/lib/components/slider/Slider.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/text-area/TextArea.d.ts +29 -0
- package/lib/components/text-area/TextArea.js +72 -0
- package/lib/components/text-area/TextArea.js.map +1 -0
- package/lib/components/text-area/TextArea.styles.d.ts +283 -0
- package/lib/components/text-area/TextArea.styles.js +79 -0
- package/lib/components/text-area/TextArea.styles.js.map +1 -0
- package/lib/components/tooltip/Tooltip.d.ts +18 -0
- package/lib/components/tooltip/Tooltip.js +32 -0
- package/lib/components/tooltip/Tooltip.js.map +1 -0
- package/lib/components/tooltip/Tooltip.styles.d.ts +273 -0
- package/lib/components/tooltip/Tooltip.styles.js +10 -0
- package/lib/components/tooltip/Tooltip.styles.js.map +1 -0
- package/lib/components/tooltip/interface.d.ts +4 -0
- package/lib/components/tooltip/interface.js +2 -0
- package/lib/components/tooltip/interface.js.map +1 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.d.ts +7 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.js +20 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.js.map +1 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.styles.d.ts +279 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.styles.js +29 -0
- package/lib/components/tooltip/tooltip-item/TooltipItem.styles.js.map +1 -0
- package/lib/components/truncation/Truncation.d.ts +25 -0
- package/lib/components/truncation/Truncation.js +92 -0
- package/lib/components/truncation/Truncation.js.map +1 -0
- package/lib/components/truncation/Truncation.styles.d.ts +1088 -0
- package/lib/components/truncation/Truncation.styles.js +27 -0
- package/lib/components/truncation/Truncation.styles.js.map +1 -0
- package/lib/constants/codeHighlighter.d.ts +7 -0
- package/lib/constants/codeHighlighter.js +13 -0
- package/lib/constants/codeHighlighter.js.map +1 -0
- package/lib/hooks/uuid.js +0 -4
- package/lib/hooks/uuid.js.map +1 -1
- package/lib/index.d.ts +41 -0
- package/lib/index.js +244 -14
- package/lib/index.js.map +1 -1
- package/lib/types/chayns.d.ts +56 -0
- package/lib/types/chayns.js +3 -5
- package/lib/types/chayns.js.map +1 -1
- package/lib/types/codeHighlighter.d.ts +10 -0
- package/lib/types/codeHighlighter.js +12 -0
- package/lib/types/codeHighlighter.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/parser/prettier-parser-babel.d.js +2 -0
- package/lib/types/parser/prettier-parser-babel.d.js.map +1 -0
- package/lib/types/parser/prettier-parser-graphql.d.js +2 -0
- package/lib/types/parser/prettier-parser-graphql.d.js.map +1 -0
- package/lib/types/parser/prettier-parser-html.d.js +2 -0
- package/lib/types/parser/prettier-parser-html.d.js.map +1 -0
- package/lib/types/parser/prettier-parser-markdown.d.js +2 -0
- package/lib/types/parser/prettier-parser-markdown.d.js.map +1 -0
- package/lib/types/parser/prettier-parser-postcss.d.js +2 -0
- package/lib/types/parser/prettier-parser-postcss.d.js.map +1 -0
- package/lib/types/parser/prettier-parser-yaml.d.js +2 -0
- package/lib/types/parser/prettier-parser-yaml.d.js.map +1 -0
- package/lib/utils/calculate.d.ts +3 -0
- package/lib/utils/calculate.js +49 -0
- package/lib/utils/calculate.js.map +1 -0
- package/lib/utils/codeHighlighter.d.ts +3 -0
- package/lib/utils/codeHighlighter.js +67 -0
- package/lib/utils/codeHighlighter.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/isTobitEmployee.d.ts +1 -0
- package/lib/utils/isTobitEmployee.js +28 -0
- package/lib/utils/isTobitEmployee.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 +29 -21
|
@@ -4,65 +4,71 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.StyledIconWrapper = exports.StyledIcon = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
|
|
16
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
17
|
-
|
|
18
|
-
const StyledIconWrapper = _styledComponents.default.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n cursor: ", ";\n display: inline-flex;\n height: ", ";\n justify-content: center;\n opacity: ", ";\n position: relative;\n transition: opacity 0.3s ease;\n width: ", ";\n"])), _ref => {
|
|
8
|
+
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); }
|
|
9
|
+
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; }
|
|
10
|
+
const StyledIconWrapper = exports.StyledIconWrapper = _styledComponents.default.span`
|
|
11
|
+
align-items: center;
|
|
12
|
+
cursor: ${_ref => {
|
|
19
13
|
let {
|
|
20
14
|
isDisabled,
|
|
21
15
|
onClick
|
|
22
16
|
} = _ref;
|
|
23
17
|
return typeof onClick === 'function' && !isDisabled ? 'pointer' : 'inherit';
|
|
24
|
-
}
|
|
18
|
+
}};
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
min-height: ${_ref2 => {
|
|
25
21
|
let {
|
|
26
22
|
size
|
|
27
23
|
} = _ref2;
|
|
28
|
-
return
|
|
29
|
-
}
|
|
24
|
+
return `${size}px`;
|
|
25
|
+
}};
|
|
26
|
+
justify-content: center;
|
|
27
|
+
opacity: ${_ref3 => {
|
|
30
28
|
let {
|
|
31
29
|
isDisabled
|
|
32
30
|
} = _ref3;
|
|
33
31
|
return isDisabled ? 0.5 : 1;
|
|
34
|
-
}
|
|
32
|
+
}};
|
|
33
|
+
position: relative;
|
|
34
|
+
transition: opacity 0.3s ease;
|
|
35
|
+
min-width: ${_ref4 => {
|
|
35
36
|
let {
|
|
36
37
|
size
|
|
37
38
|
} = _ref4;
|
|
38
|
-
return
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
exports.
|
|
42
|
-
|
|
43
|
-
const StyledIcon = _styledComponents.default.i(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n display: ", ";\n font-size: ", ";\n\n ", "\n"])), _ref5 => {
|
|
39
|
+
return `${size}px`;
|
|
40
|
+
}};
|
|
41
|
+
`;
|
|
42
|
+
const StyledIcon = exports.StyledIcon = _styledComponents.default.i`
|
|
43
|
+
color: ${_ref5 => {
|
|
44
44
|
let {
|
|
45
45
|
color,
|
|
46
46
|
theme
|
|
47
47
|
} = _ref5;
|
|
48
48
|
return color || theme.headline;
|
|
49
|
-
}
|
|
49
|
+
}};
|
|
50
|
+
display: ${_ref6 => {
|
|
50
51
|
let {
|
|
51
52
|
isStacked
|
|
52
53
|
} = _ref6;
|
|
53
54
|
return isStacked ? undefined : 'inline-flex';
|
|
54
|
-
}
|
|
55
|
+
}};
|
|
56
|
+
font-size: ${_ref7 => {
|
|
55
57
|
let {
|
|
56
58
|
fontSize
|
|
57
59
|
} = _ref7;
|
|
58
|
-
return
|
|
59
|
-
}
|
|
60
|
+
return `${fontSize}px`;
|
|
61
|
+
}};
|
|
62
|
+
|
|
63
|
+
${_ref8 => {
|
|
60
64
|
let {
|
|
61
65
|
fontSize,
|
|
62
66
|
size
|
|
63
67
|
} = _ref8;
|
|
64
|
-
return fontSize !== size && (0, _styledComponents.css)
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
return fontSize !== size && (0, _styledComponents.css)`
|
|
69
|
+
top: 50%;
|
|
70
|
+
transform: translateY(-50%);
|
|
71
|
+
`;
|
|
72
|
+
}}
|
|
73
|
+
`;
|
|
68
74
|
//# sourceMappingURL=Icon.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.styles.js","names":["StyledIconWrapper","styled","span","isDisabled","onClick","size","StyledIcon","
|
|
1
|
+
{"version":3,"file":"Icon.styles.js","names":["_styledComponents","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","StyledIconWrapper","exports","styled","span","_ref","isDisabled","onClick","_ref2","size","_ref3","_ref4","StyledIcon","_ref5","color","theme","headline","_ref6","isStacked","undefined","_ref7","fontSize","_ref8","css"],"sources":["../../../src/components/icon/Icon.styles.ts"],"sourcesContent":["import type { MouseEventHandler } from 'react';\nimport styled, { css } from 'styled-components';\nimport type { WithTheme } from '../color-scheme-provider/ColorSchemeProvider';\nimport type { IconProps } from './Icon';\n\ntype StyledIconWrapperProps = {\n isDisabled?: boolean;\n onClick?: MouseEventHandler<HTMLSpanElement>;\n size: number;\n};\n\nexport const StyledIconWrapper = styled.span<StyledIconWrapperProps>`\n align-items: center;\n cursor: ${({ isDisabled, onClick }) =>\n typeof onClick === 'function' && !isDisabled ? 'pointer' : 'inherit'};\n display: inline-flex;\n min-height: ${({ size }) => `${size}px`};\n justify-content: center;\n opacity: ${({ isDisabled }) => (isDisabled ? 0.5 : 1)};\n position: relative;\n transition: opacity 0.3s ease;\n min-width: ${({ size }) => `${size}px`};\n`;\n\ntype StyledIconProps = Omit<IconProps, 'icons'> &\n WithTheme<{\n fontSize: number;\n isStacked?: boolean;\n }>;\n\nexport const StyledIcon = styled.i<StyledIconProps>`\n color: ${({ color, theme }: StyledIconProps) => color || theme.headline};\n display: ${({ isStacked }) => (isStacked ? undefined : 'inline-flex')};\n font-size: ${({ fontSize }) => `${fontSize}px`};\n\n ${({ fontSize, size }) =>\n fontSize !== size &&\n css`\n top: 50%;\n transform: translateY(-50%);\n `}\n`;\n"],"mappings":";;;;;;A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
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getStackSizeFactor = void 0;
|
|
7
|
-
|
|
8
7
|
const getStackSizeFactor = icon => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const sizeFactorString = (_icon$match = icon.match(/fa-stack-([\d])x/)) === null || _icon$match === void 0 ? void 0 : _icon$match[1];
|
|
8
|
+
const sizeFactorString = icon.match(/fa-stack-([\d])x/)?.[1];
|
|
12
9
|
return typeof sizeFactorString === 'string' ? parseInt(sizeFactorString, 10) : undefined;
|
|
13
10
|
};
|
|
14
|
-
|
|
15
11
|
exports.getStackSizeFactor = getStackSizeFactor;
|
|
16
12
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["getStackSizeFactor","icon","sizeFactorString","match","parseInt","undefined"],"sources":["../../../src/components/icon/utils.ts"],"sourcesContent":["export const getStackSizeFactor = (icon: string) => {\n const sizeFactorString = icon.match(/fa-stack-([\\d])x/)?.[1];\n\n return typeof sizeFactorString === 'string' ? parseInt(sizeFactorString, 10) : undefined;\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","names":["getStackSizeFactor","icon","sizeFactorString","match","parseInt","undefined","exports"],"sources":["../../../src/components/icon/utils.ts"],"sourcesContent":["export const getStackSizeFactor = (icon: string) => {\n const sizeFactorString = icon.match(/fa-stack-([\\d])x/)?.[1];\n\n return typeof sizeFactorString === 'string' ? parseInt(sizeFactorString, 10) : undefined;\n};\n"],"mappings":";;;;;;AAAO,MAAMA,kBAAkB,GAAIC,IAAY,IAAK;EAChD,MAAMC,gBAAgB,GAAGD,IAAI,CAACE,KAAK,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;EAE5D,OAAO,OAAOD,gBAAgB,KAAK,QAAQ,GAAGE,QAAQ,CAACF,gBAAgB,EAAE,EAAE,CAAC,GAAGG,SAAS;AAC5F,CAAC;AAACC,OAAA,CAAAN,kBAAA,GAAAA,kBAAA"}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
import { ChangeEventHandler,
|
|
2
|
-
export
|
|
1
|
+
import React, { ChangeEventHandler, FocusEventHandler, HTMLInputTypeAttribute, KeyboardEventHandler, ReactNode } from 'react';
|
|
2
|
+
export type InputRef = {
|
|
3
|
+
focus: VoidFunction;
|
|
4
|
+
};
|
|
5
|
+
type InputMode = 'email' | 'search' | 'tel' | 'text' | 'url' | 'none' | 'numeric' | 'decimal' | undefined;
|
|
6
|
+
export type InputProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Icon element to be displayed on the left side of the input field
|
|
9
|
+
*/
|
|
10
|
+
iconElement?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Defines the input mode of the input
|
|
13
|
+
*/
|
|
14
|
+
inputMode?: InputMode;
|
|
15
|
+
/**
|
|
16
|
+
* Disables the input so that it cannot be changed anymore
|
|
17
|
+
*/
|
|
18
|
+
isDisabled?: boolean;
|
|
3
19
|
/**
|
|
4
20
|
* Function that is executed when the input field loses focus
|
|
5
21
|
*/
|
|
@@ -20,6 +36,14 @@ export declare type InputProps = {
|
|
|
20
36
|
* Placeholder for the input field
|
|
21
37
|
*/
|
|
22
38
|
placeholder?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Element to be displayed next to or instead of the "placeholder"
|
|
41
|
+
*/
|
|
42
|
+
placeholderElement?: ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* If true, a clear icon is displayed at the end of the input field
|
|
45
|
+
*/
|
|
46
|
+
shouldShowClearIcon?: boolean;
|
|
23
47
|
/**
|
|
24
48
|
* Input type set for input element (e.g. 'text', 'number' or 'password')
|
|
25
49
|
*/
|
|
@@ -28,6 +52,14 @@ export declare type InputProps = {
|
|
|
28
52
|
* Value if the input field should be controlled
|
|
29
53
|
*/
|
|
30
54
|
value?: string;
|
|
55
|
+
/**
|
|
56
|
+
* If true, the input field is focused when the component is mounted
|
|
57
|
+
*/
|
|
58
|
+
shouldUseAutoFocus?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* If true, the input field is marked as invalid
|
|
61
|
+
*/
|
|
62
|
+
isInvalid?: boolean;
|
|
31
63
|
};
|
|
32
|
-
declare const Input:
|
|
64
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>>;
|
|
33
65
|
export default Input;
|
|
@@ -4,33 +4,52 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
8
|
+
var _styledComponents = require("styled-components");
|
|
9
|
+
var _Icon = _interopRequireDefault(require("../icon/Icon"));
|
|
10
10
|
var _Input = require("./Input.styles");
|
|
11
|
-
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const Input = _ref => {
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
|
+
const Input = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
17
15
|
let {
|
|
16
|
+
iconElement,
|
|
17
|
+
inputMode,
|
|
18
|
+
isDisabled,
|
|
18
19
|
onBlur,
|
|
19
20
|
onChange,
|
|
20
21
|
onFocus,
|
|
21
22
|
onKeyDown,
|
|
22
23
|
placeholder,
|
|
24
|
+
placeholderElement,
|
|
25
|
+
shouldShowClearIcon = false,
|
|
23
26
|
type = 'text',
|
|
24
|
-
value
|
|
27
|
+
value,
|
|
28
|
+
shouldUseAutoFocus = false,
|
|
29
|
+
isInvalid = false
|
|
25
30
|
} = _ref;
|
|
26
31
|
const [hasValue, setHasValue] = (0, _react.useState)(typeof value === 'string' && value !== '');
|
|
32
|
+
const theme = (0, _styledComponents.useTheme)();
|
|
33
|
+
const inputRef = (0, _react.useRef)(null);
|
|
34
|
+
const handleClearIconClick = (0, _react.useCallback)(() => {
|
|
35
|
+
if (inputRef.current) {
|
|
36
|
+
inputRef.current.value = '';
|
|
37
|
+
if (typeof onChange === 'function') {
|
|
38
|
+
onChange({
|
|
39
|
+
target: inputRef.current
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}, [onChange]);
|
|
27
44
|
const handleInputFieldChange = (0, _react.useCallback)(event => {
|
|
28
45
|
setHasValue(event.target.value !== '');
|
|
29
|
-
|
|
30
46
|
if (typeof onChange === 'function') {
|
|
31
47
|
onChange(event);
|
|
32
48
|
}
|
|
33
49
|
}, [onChange]);
|
|
50
|
+
(0, _react.useImperativeHandle)(ref, () => ({
|
|
51
|
+
focus: () => inputRef.current?.focus()
|
|
52
|
+
}), []);
|
|
34
53
|
(0, _react.useEffect)(() => {
|
|
35
54
|
if (typeof value === 'string') {
|
|
36
55
|
setHasValue(value !== '');
|
|
@@ -43,37 +62,56 @@ const Input = _ref => {
|
|
|
43
62
|
right: -6
|
|
44
63
|
};
|
|
45
64
|
}
|
|
46
|
-
|
|
47
65
|
return {
|
|
48
66
|
left: 0,
|
|
49
67
|
top: 0
|
|
50
68
|
};
|
|
51
69
|
}, [hasValue]);
|
|
52
70
|
return /*#__PURE__*/_react.default.createElement(_Input.StyledInput, {
|
|
53
|
-
className: "beta-chayns-input"
|
|
54
|
-
|
|
71
|
+
className: "beta-chayns-input",
|
|
72
|
+
isDisabled: isDisabled,
|
|
73
|
+
isInvalid: isInvalid
|
|
74
|
+
}, iconElement && /*#__PURE__*/_react.default.createElement(_Input.StyledInputIconWrapper, null, iconElement), /*#__PURE__*/_react.default.createElement(_Input.StyledInputContent, null, /*#__PURE__*/_react.default.createElement(_Input.StyledInputField, {
|
|
75
|
+
disabled: isDisabled,
|
|
55
76
|
onBlur: onBlur,
|
|
56
77
|
onChange: handleInputFieldChange,
|
|
57
78
|
onFocus: onFocus,
|
|
58
79
|
onKeyDown: onKeyDown,
|
|
80
|
+
ref: inputRef,
|
|
81
|
+
type: type,
|
|
59
82
|
value: value,
|
|
60
|
-
|
|
83
|
+
autoFocus: shouldUseAutoFocus,
|
|
84
|
+
inputMode: inputMode,
|
|
85
|
+
isInvalid: isInvalid
|
|
61
86
|
}), /*#__PURE__*/_react.default.createElement(_Input.StyledMotionInputLabel, {
|
|
62
87
|
animate: {
|
|
63
|
-
|
|
88
|
+
fontSize: hasValue ? '10px' : '16px'
|
|
64
89
|
},
|
|
90
|
+
initial: false,
|
|
65
91
|
layout: true,
|
|
66
|
-
style: {
|
|
67
|
-
|
|
68
|
-
originY: 1
|
|
92
|
+
style: {
|
|
93
|
+
...labelPosition
|
|
69
94
|
},
|
|
95
|
+
transition: {
|
|
96
|
+
type: 'tween',
|
|
97
|
+
duration: 0.3
|
|
98
|
+
},
|
|
99
|
+
isInvalid: isInvalid
|
|
100
|
+
}, placeholderElement, placeholder)), shouldShowClearIcon && /*#__PURE__*/_react.default.createElement(_Input.StyledMotionInputClearIcon, {
|
|
101
|
+
animate: {
|
|
102
|
+
opacity: hasValue ? 1 : 0
|
|
103
|
+
},
|
|
104
|
+
initial: false,
|
|
105
|
+
onClick: handleClearIconClick,
|
|
70
106
|
transition: {
|
|
71
107
|
type: 'tween'
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
108
|
+
},
|
|
109
|
+
isInvalid: isInvalid
|
|
110
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
111
|
+
icons: ['fa fa-times'],
|
|
112
|
+
color: isInvalid ? theme.wrong : undefined
|
|
113
|
+
})));
|
|
114
|
+
});
|
|
76
115
|
Input.displayName = 'Input';
|
|
77
|
-
var _default = Input;
|
|
78
|
-
exports.default = _default;
|
|
116
|
+
var _default = exports.default = Input;
|
|
79
117
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","names":["Input","onBlur","onChange","onFocus","onKeyDown","placeholder","type","value","hasValue","setHasValue","useState","handleInputFieldChange","useCallback","event","target","useEffect","labelPosition","useMemo","bottom","right","left","top","scale","originX","originY","displayName"],"sources":["../../../src/components/input/Input.tsx"],"sourcesContent":["import React, {\n ChangeEvent,\n ChangeEventHandler,\n FC,\n FocusEventHandler,\n HTMLInputTypeAttribute,\n KeyboardEventHandler,\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react';\nimport {\n StyledInput,\n StyledInputContent,\n StyledInputField,\n StyledMotionInputLabel,\n} from './Input.styles';\n\nexport type InputProps = {\n /**\n * Function that is executed when the input field loses focus\n */\n onBlur?: FocusEventHandler<HTMLInputElement>;\n /**\n * Function that is executed when the text of the input changes\n */\n onChange?: ChangeEventHandler<HTMLInputElement>;\n /**\n * Function that is executed when the input field is focused\n */\n onFocus?: FocusEventHandler<HTMLInputElement>;\n /**\n * Function that is executed when a letter is pressed\n */\n onKeyDown?: KeyboardEventHandler<HTMLInputElement>;\n /**\n * Placeholder for the input field\n */\n placeholder?: string;\n /**\n * Input type set for input element (e.g. 'text', 'number' or 'password')\n */\n type?: HTMLInputTypeAttribute;\n /**\n * Value if the input field should be controlled\n */\n value?: string;\n};\n\nconst Input: FC<InputProps> = ({\n onBlur,\n onChange,\n onFocus,\n onKeyDown,\n placeholder,\n type = 'text',\n value,\n}) => {\n const [hasValue, setHasValue] = useState(typeof value === 'string' && value !== '');\n\n const handleInputFieldChange = useCallback(\n (event: ChangeEvent<HTMLInputElement>) => {\n setHasValue(event.target.value !== '');\n\n if (typeof onChange === 'function') {\n onChange(event);\n }\n },\n [onChange]\n );\n\n useEffect(() => {\n if (typeof value === 'string') {\n setHasValue(value !== '');\n }\n }, [value]);\n\n const labelPosition = useMemo(() => {\n if (hasValue) {\n return { bottom: -8, right: -6 };\n }\n\n return { left: 0, top: 0 };\n }, [hasValue]);\n\n return (\n <StyledInput className=\"beta-chayns-input\">\n <StyledInputContent>\n <StyledInputField\n onBlur={onBlur}\n onChange={handleInputFieldChange}\n onFocus={onFocus}\n onKeyDown={onKeyDown}\n value={value}\n type={type}\n />\n <StyledMotionInputLabel\n animate={{ scale: hasValue ? 0.6 : 1 }}\n layout\n style={{ ...labelPosition, originX: 1, originY: 1 }}\n transition={{ type: 'tween' }}\n >\n {placeholder}\n </StyledMotionInputLabel>\n </StyledInputContent>\n </StyledInput>\n );\n};\n\nInput.displayName = 'Input';\n\nexport default Input;\n"],"mappings":";;;;;;;AAAA;;AAYA;;;;;;AAsCA,MAAMA,KAAqB,GAAG,QAQxB;EAAA,IARyB;IAC3BC,MAD2B;IAE3BC,QAF2B;IAG3BC,OAH2B;IAI3BC,SAJ2B;IAK3BC,WAL2B;IAM3BC,IAAI,GAAG,MANoB;IAO3BC;EAP2B,CAQzB;EACF,MAAM,CAACC,QAAD,EAAWC,WAAX,IAA0B,IAAAC,eAAA,EAAS,OAAOH,KAAP,KAAiB,QAAjB,IAA6BA,KAAK,KAAK,EAAhD,CAAhC;EAEA,MAAMI,sBAAsB,GAAG,IAAAC,kBAAA,EAC1BC,KAAD,IAA0C;IACtCJ,WAAW,CAACI,KAAK,CAACC,MAAN,CAAaP,KAAb,KAAuB,EAAxB,CAAX;;IAEA,IAAI,OAAOL,QAAP,KAAoB,UAAxB,EAAoC;MAChCA,QAAQ,CAACW,KAAD,CAAR;IACH;EACJ,CAP0B,EAQ3B,CAACX,QAAD,CAR2B,CAA/B;EAWA,IAAAa,gBAAA,EAAU,MAAM;IACZ,IAAI,OAAOR,KAAP,KAAiB,QAArB,EAA+B;MAC3BE,WAAW,CAACF,KAAK,KAAK,EAAX,CAAX;IACH;EACJ,CAJD,EAIG,CAACA,KAAD,CAJH;EAMA,MAAMS,aAAa,GAAG,IAAAC,cAAA,EAAQ,MAAM;IAChC,IAAIT,QAAJ,EAAc;MACV,OAAO;QAAEU,MAAM,EAAE,CAAC,CAAX;QAAcC,KAAK,EAAE,CAAC;MAAtB,CAAP;IACH;;IAED,OAAO;MAAEC,IAAI,EAAE,CAAR;MAAWC,GAAG,EAAE;IAAhB,CAAP;EACH,CANqB,EAMnB,CAACb,QAAD,CANmB,CAAtB;EAQA,oBACI,6BAAC,kBAAD;IAAa,SAAS,EAAC;EAAvB,gBACI,6BAAC,yBAAD,qBACI,6BAAC,uBAAD;IACI,MAAM,EAAEP,MADZ;IAEI,QAAQ,EAAEU,sBAFd;IAGI,OAAO,EAAER,OAHb;IAII,SAAS,EAAEC,SAJf;IAKI,KAAK,EAAEG,KALX;IAMI,IAAI,EAAED;EANV,EADJ,eASI,6BAAC,6BAAD;IACI,OAAO,EAAE;MAAEgB,KAAK,EAAEd,QAAQ,GAAG,GAAH,GAAS;IAA1B,CADb;IAEI,MAAM,MAFV;IAGI,KAAK,EAAE,EAAE,GAAGQ,aAAL;MAAoBO,OAAO,EAAE,CAA7B;MAAgCC,OAAO,EAAE;IAAzC,CAHX;IAII,UAAU,EAAE;MAAElB,IAAI,EAAE;IAAR;EAJhB,GAMKD,WANL,CATJ,CADJ,CADJ;AAsBH,CA1DD;;AA4DAL,KAAK,CAACyB,WAAN,GAAoB,OAApB;eAEezB,K"}
|
|
1
|
+
{"version":3,"file":"Input.js","names":["_react","_interopRequireWildcard","require","_styledComponents","_Icon","_interopRequireDefault","_Input","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Input","forwardRef","_ref","ref","iconElement","inputMode","isDisabled","onBlur","onChange","onFocus","onKeyDown","placeholder","placeholderElement","shouldShowClearIcon","type","value","shouldUseAutoFocus","isInvalid","hasValue","setHasValue","useState","theme","useTheme","inputRef","useRef","handleClearIconClick","useCallback","current","target","handleInputFieldChange","event","useImperativeHandle","focus","useEffect","labelPosition","useMemo","bottom","right","left","top","createElement","StyledInput","className","StyledInputIconWrapper","StyledInputContent","StyledInputField","disabled","autoFocus","StyledMotionInputLabel","animate","fontSize","initial","layout","style","transition","duration","StyledMotionInputClearIcon","opacity","onClick","icons","color","wrong","undefined","displayName","_default","exports"],"sources":["../../../src/components/input/Input.tsx"],"sourcesContent":["import React, {\n ChangeEvent,\n ChangeEventHandler,\n FocusEventHandler,\n forwardRef,\n HTMLInputTypeAttribute,\n KeyboardEventHandler,\n ReactNode,\n useCallback,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport { useTheme } from 'styled-components';\nimport type { Theme } from '../color-scheme-provider/ColorSchemeProvider';\nimport Icon from '../icon/Icon';\nimport {\n StyledInput,\n StyledInputContent,\n StyledInputField,\n StyledInputIconWrapper,\n StyledMotionInputClearIcon,\n StyledMotionInputLabel,\n} from './Input.styles';\n\nexport type InputRef = {\n focus: VoidFunction;\n};\n\ntype InputMode =\n | 'email'\n | 'search'\n | 'tel'\n | 'text'\n | 'url'\n | 'none'\n | 'numeric'\n | 'decimal'\n | undefined;\n\nexport type InputProps = {\n /**\n * Icon element to be displayed on the left side of the input field\n */\n iconElement?: ReactNode;\n /**\n * Defines the input mode of the input\n */\n inputMode?: InputMode;\n /**\n * Disables the input so that it cannot be changed anymore\n */\n isDisabled?: boolean;\n /**\n * Function that is executed when the input field loses focus\n */\n onBlur?: FocusEventHandler<HTMLInputElement>;\n /**\n * Function that is executed when the text of the input changes\n */\n onChange?: ChangeEventHandler<HTMLInputElement>;\n /**\n * Function that is executed when the input field is focused\n */\n onFocus?: FocusEventHandler<HTMLInputElement>;\n /**\n * Function that is executed when a letter is pressed\n */\n onKeyDown?: KeyboardEventHandler<HTMLInputElement>;\n /**\n * Placeholder for the input field\n */\n placeholder?: string;\n /**\n * Element to be displayed next to or instead of the \"placeholder\"\n */\n placeholderElement?: ReactNode;\n /**\n * If true, a clear icon is displayed at the end of the input field\n */\n shouldShowClearIcon?: boolean;\n /**\n * Input type set for input element (e.g. 'text', 'number' or 'password')\n */\n type?: HTMLInputTypeAttribute;\n /**\n * Value if the input field should be controlled\n */\n value?: string;\n /**\n * If true, the input field is focused when the component is mounted\n */\n shouldUseAutoFocus?: boolean;\n /**\n * If true, the input field is marked as invalid\n */\n isInvalid?: boolean;\n};\n\nconst Input = forwardRef<InputRef, InputProps>(\n (\n {\n iconElement,\n inputMode,\n isDisabled,\n onBlur,\n onChange,\n onFocus,\n onKeyDown,\n placeholder,\n placeholderElement,\n shouldShowClearIcon = false,\n type = 'text',\n value,\n shouldUseAutoFocus = false,\n isInvalid = false,\n },\n ref,\n ) => {\n const [hasValue, setHasValue] = useState(typeof value === 'string' && value !== '');\n const theme = useTheme() as Theme;\n const inputRef = useRef<HTMLInputElement>(null);\n\n const handleClearIconClick = useCallback(() => {\n if (inputRef.current) {\n inputRef.current.value = '';\n\n if (typeof onChange === 'function') {\n onChange({ target: inputRef.current } as ChangeEvent<HTMLInputElement>);\n }\n }\n }, [onChange]);\n\n const handleInputFieldChange = useCallback(\n (event: ChangeEvent<HTMLInputElement>) => {\n setHasValue(event.target.value !== '');\n\n if (typeof onChange === 'function') {\n onChange(event);\n }\n },\n [onChange],\n );\n\n useImperativeHandle(\n ref,\n () => ({\n focus: () => inputRef.current?.focus(),\n }),\n [],\n );\n\n useEffect(() => {\n if (typeof value === 'string') {\n setHasValue(value !== '');\n }\n }, [value]);\n\n const labelPosition = useMemo(() => {\n if (hasValue) {\n return { bottom: -8, right: -6 };\n }\n\n return { left: 0, top: 0 };\n }, [hasValue]);\n\n return (\n <StyledInput\n className=\"beta-chayns-input\"\n isDisabled={isDisabled}\n isInvalid={isInvalid}\n >\n {iconElement && <StyledInputIconWrapper>{iconElement}</StyledInputIconWrapper>}\n <StyledInputContent>\n <StyledInputField\n disabled={isDisabled}\n onBlur={onBlur}\n onChange={handleInputFieldChange}\n onFocus={onFocus}\n onKeyDown={onKeyDown}\n ref={inputRef}\n type={type}\n value={value}\n autoFocus={shouldUseAutoFocus}\n inputMode={inputMode}\n isInvalid={isInvalid}\n />\n <StyledMotionInputLabel\n animate={{\n fontSize: hasValue ? '10px' : '16px',\n }}\n initial={false}\n layout\n style={{ ...labelPosition }}\n transition={{ type: 'tween', duration: 0.3 }}\n isInvalid={isInvalid}\n >\n {placeholderElement}\n {placeholder}\n </StyledMotionInputLabel>\n </StyledInputContent>\n {shouldShowClearIcon && (\n <StyledMotionInputClearIcon\n animate={{ opacity: hasValue ? 1 : 0 }}\n initial={false}\n onClick={handleClearIconClick}\n transition={{ type: 'tween' }}\n isInvalid={isInvalid}\n >\n <Icon icons={['fa fa-times']} color={isInvalid ? theme.wrong : undefined} />\n </StyledMotionInputClearIcon>\n )}\n </StyledInput>\n );\n },\n);\n\nInput.displayName = 'Input';\n\nexport default Input;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAeA,IAAAC,iBAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAOwB,SAAAG,uBAAAE,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,C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