@geneui/components 2.11.2 → 2.12.2
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/{ActionableList.js → ActionableList/index.js} +83 -152
- package/{AdvancedSearch.js → AdvancedSearch/index.js} +290 -304
- package/Alert/index.js +97 -0
- package/Avatar/index.js +30 -0
- package/Badge/index.js +75 -0
- package/{Breadcrumb.js → Breadcrumb/index.js} +32 -31
- package/BusyLoader/index.js +68 -0
- package/Button/index.js +129 -0
- package/CHANGELOG.md +53 -0
- package/{Card.js → Card/index.js} +82 -94
- package/{CardList.js → CardList/index.js} +120 -165
- package/{CellMeasurerCache-b786dd93.js → CellMeasurerCache-3741d716.js} +2 -2
- package/{index-9164a86d.js → Charts/index.js} +17103 -30447
- package/{Checkbox.js → Checkbox/index.js} +37 -38
- package/{CheckboxGroup.js → CheckboxGroup/index.js} +41 -42
- package/{CheckboxGroupWithSearch.js → CheckboxGroupWithSearch/index.js} +64 -65
- package/{Collapse.js → Collapse/index.js} +28 -29
- package/{ColorPicker.js → ColorPicker/index.js} +16 -16
- package/ComboBox/index.js +525 -0
- package/Counter/index.js +310 -0
- package/{DateFilter.js → DateFilter/index.js} +45 -43
- package/{DatePicker.js → DatePicker/index.js} +106 -108
- package/{index-0199942c.js → DatePickerInput/index.js} +114 -100
- package/{Divider.js → Divider/index.js} +9 -10
- package/{Drawer.js → Drawer/index.js} +40 -41
- package/Dropdown/index.js +41 -0
- package/{Editor.js → Editor/index.js} +165 -164
- package/{Empty.js → Empty/index.js} +12 -13
- package/{ExtendedInput.js → ExtendedInput/index.js} +81 -71
- package/Form/index.js +83 -0
- package/{FormContainer.js → FormContainer/index.js} +25 -26
- package/FormableCheckbox/index.js +26 -0
- package/FormableDatePicker/index.js +41 -0
- package/FormableDropdown/index.js +48 -0
- package/FormableEditor/index.js +24 -0
- package/{FormableHOC-21051057.js → FormableHOC-55263162.js} +3 -3
- package/FormableMultiSelectDropdown/index.js +48 -0
- package/FormableNumberInput/index.js +32 -0
- package/FormableRadio/index.js +22 -0
- package/FormableSwitcher/index.js +22 -0
- package/FormableTextInput/index.js +32 -0
- package/FormableUploader/index.js +42 -0
- package/GeneUIProvider/index.js +282 -0
- package/{Grid.js → Grid/index.js} +27 -27
- package/Holder/index.js +261 -0
- package/{Icon.js → Icon/index.js} +9 -10
- package/Image/index.js +129 -0
- package/ImagePreview/index.js +481 -0
- package/{KeyValue.js → KeyValue/index.js} +11 -12
- package/LICENSE +21 -0
- package/Label/index.js +57 -0
- package/LinkButton/index.js +67 -0
- package/{Menu.js → Menu/index.js} +27 -28
- package/MobileNavigation/index.js +94 -0
- package/{MobilePopup.js → MobilePopup/index.js} +42 -41
- package/{Modal.js → Modal/index.js} +39 -40
- package/ModuleTitle/index.js +143 -0
- package/{NavigationMenu.js → NavigationMenu/index.js} +30 -29
- package/Notification/index.js +119 -0
- package/Option/index.js +184 -0
- package/Overlay/index.js +189 -0
- package/Overspread/index.js +289 -0
- package/{Pagination.js → Pagination/index.js} +35 -34
- package/Paper/index.js +96 -0
- package/{index-084588e9.js → Popover/index.js} +48 -58
- package/PopoverV2/index.js +18 -0
- package/{Portal.js → Portal/index.js} +7 -8
- package/{Products.js → Products/index.js} +20 -21
- package/Profile/index.js +585 -0
- package/Progress/index.js +199 -0
- package/{QRCode.js → QRCode/index.js} +4 -6
- package/{Radio.js → Radio/index.js} +25 -26
- package/{RadioGroup.js → RadioGroup/index.js} +17 -18
- package/{index-00fe8887.js → Range/index.js} +29 -32
- package/RichEditor/index.js +13 -0
- package/{RichEditor-98accead.js → RichEditor-8b0f7ccd.js} +18 -18
- package/{Scrollbar.js → Scrollbar/index.js} +15 -17
- package/{Search.js → Search/index.js} +25 -24
- package/SearchWithDropdown/index.js +138 -0
- package/Section/index.js +61 -0
- package/{SkeletonLoader.js → SkeletonLoader/index.js} +13 -14
- package/{Slider.js → Slider/index.js} +46 -43
- package/Status/index.js +103 -0
- package/Steps/index.js +313 -0
- package/{index-897d8240.js → SuggestionList/index.js} +15 -38
- package/{Switcher.js → Switcher/index.js} +30 -31
- package/Table/index.js +53 -0
- package/{TableCompositions.js → TableCompositions/index.js} +131 -168
- package/Tabs/index.js +235 -0
- package/Tag/index.js +102 -0
- package/{TextLink.js → TextLink/index.js} +3 -3
- package/{Textarea.js → Textarea/index.js} +66 -65
- package/{Time.js → Time/index.js} +13 -14
- package/TimePicker/index.js +555 -0
- package/Timeline/index.js +113 -0
- package/Title/index.js +65 -0
- package/{Toaster.js → Toaster/index.js} +19 -20
- package/{Tooltip.js → Tooltip/index.js} +27 -28
- package/{TransferList.js → TransferList/index.js} +44 -55
- package/{index-135b9d17.js → Uploader/index.js} +119 -116
- package/{ValidatableCheckbox.js → ValidatableCheckbox/index.js} +23 -24
- package/{ValidatableDatePicker.js → ValidatableDatePicker/index.js} +44 -42
- package/ValidatableDropdown/index.js +139 -0
- package/ValidatableElements/index.js +65 -0
- package/ValidatableMultiSelectDropdown/index.js +150 -0
- package/{ValidatableNumberInput.js → ValidatableNumberInput/index.js} +41 -33
- package/{ValidatableRadio.js → ValidatableRadio/index.js} +19 -20
- package/{ValidatableSwitcher.js → ValidatableSwitcher/index.js} +19 -20
- package/{ValidatableTextInput.js → ValidatableTextInput/index.js} +32 -31
- package/{ValidatableTimeInput.js → ValidatableTimeInput/index.js} +31 -30
- package/{ValidatableUploader.js → ValidatableUploader/index.js} +36 -34
- package/Widget/index.js +227 -0
- package/config-0ca92874.js +31 -0
- package/{configs-91c86664.js → configs-fed6ac34.js} +28 -1
- package/hooks/useBodyScroll.js +16 -0
- package/hooks/useClick.js +18 -0
- package/{useClickOutside-5183e396.js → hooks/useClickOutside.js} +1 -1
- package/hooks/useDebounceHook.js +16 -0
- package/{useDeviceType-dd51db38.js → hooks/useDeviceType.js} +4 -3
- package/hooks/useDidMount.js +15 -0
- package/{useEllipsisDetection-ef536015.js → hooks/useEllipsisDetection.js} +1 -1
- package/hooks/useForceUpdate.js +8 -0
- package/hooks/useImgDownload.js +18 -0
- package/{useKeyDown-38102ae7.js → hooks/useKeyDown.js} +1 -1
- package/hooks/useMount.js +13 -0
- package/hooks/useMutationObserver.js +21 -0
- package/hooks/usePrevious.js +10 -0
- package/hooks/useThrottle.js +16 -0
- package/hooks/useToggle.js +11 -0
- package/hooks/useUpdatableRef.js +14 -0
- package/hooks/useUpdate.js +10 -0
- package/{useWidth-9f4647f8.js → hooks/useWidth.js} +2 -2
- package/{useWindowSize-80369d76.js → hooks/useWindowSize.js} +1 -1
- package/{index-8c98317a.js → index-11eea761.js} +678 -752
- package/index-2ad83e03.js +4 -0
- package/index-34e47647.js +10054 -0
- package/index-45eafea6.js +90 -0
- package/{index-5e96cb4d.js → index-462461c0.js} +50 -48
- package/{index-ac59cb10.js → index-a0e4e333.js} +6 -6
- package/{index-e8776f3d.js → index-b1e429a7.js} +1 -1
- package/index.d.ts +115 -0
- package/index.js +137 -113
- package/index.mobile.d.ts +16 -0
- package/lib/atoms/Avatar/Avatar.d.ts +34 -0
- package/lib/atoms/Avatar/index.d.ts +1 -0
- package/lib/atoms/LinkButton/LinkButton.d.ts +46 -0
- package/lib/atoms/LinkButton/index.d.ts +1 -0
- package/{objectWithoutPropertiesLoose-299691d8.js → objectWithoutPropertiesLoose-d8a4a68c.js} +12 -12
- package/package.json +42 -22
- package/{rangeAndSlider-20599da4.js → rangeAndSlider-0301a458.js} +220 -375
- package/{react-beautiful-dnd.esm-38c37304.js → react-beautiful-dnd.esm-04c14563.js} +9 -9
- package/react-lifecycles-compat.es-6e1f3768.js +158 -0
- package/Alert.js +0 -98
- package/Avatar.js +0 -77
- package/Badge.js +0 -76
- package/BusyLoader.js +0 -69
- package/Button.js +0 -130
- package/Charts.js +0 -99
- package/ComboBox.js +0 -99
- package/Counter.js +0 -99
- package/DatePickerInput.js +0 -30
- package/Dropdown.js +0 -99
- package/Form.js +0 -116
- package/FormableCheckbox.js +0 -27
- package/FormableDatePicker.js +0 -39
- package/FormableDropdown.js +0 -105
- package/FormableEditor.js +0 -24
- package/FormableMultiSelectDropdown.js +0 -105
- package/FormableNumberInput.js +0 -31
- package/FormableRadio.js +0 -23
- package/FormableSwitcher.js +0 -23
- package/FormableTextInput.js +0 -31
- package/FormableUploader.js +0 -40
- package/GeneUIProvider.js +0 -256
- package/Holder.js +0 -99
- package/Image.js +0 -130
- package/ImagePreview.js +0 -99
- package/Label.js +0 -58
- package/LinkButton.js +0 -104
- package/MobileNavigation.js +0 -95
- package/ModuleTitle.js +0 -99
- package/Notification.js +0 -120
- package/Option.js +0 -186
- package/Overlay.js +0 -99
- package/Overspread.js +0 -343
- package/Paper.js +0 -97
- package/Popover.js +0 -20
- package/PopoverV2.js +0 -19
- package/Profile.js +0 -99
- package/Progress.js +0 -200
- package/Range.js +0 -14
- package/RichEditor.js +0 -13
- package/SearchWithDropdown.js +0 -195
- package/Section.js +0 -62
- package/Status.js +0 -104
- package/Steps.js +0 -312
- package/SuggestionList.js +0 -15
- package/Table.js +0 -102
- package/Tabs.js +0 -236
- package/Tag.js +0 -103
- package/TimePicker.js +0 -99
- package/Timeline.js +0 -114
- package/Title.js +0 -66
- package/Uploader.js +0 -32
- package/ValidatableDropdown.js +0 -99
- package/ValidatableElements.js +0 -99
- package/ValidatableMultiSelectDropdown.js +0 -99
- package/Widget.js +0 -99
- package/globalStyling-9c60a159.js +0 -4
- package/index-2030e31c.js +0 -4
- package/index-b7a33c58.js +0 -11
- package/index-e0af0caf.js +0 -1182
- package/useMount-6fef51a5.js +0 -9
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { _ as _extends } from '
|
|
1
|
+
import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import
|
|
4
|
-
import { c as classnames } from '
|
|
5
|
-
import '
|
|
6
|
-
import { s as styleInject } from './style-inject.es-746bb8ed.js';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { c as classnames } from '../index-6ff23041.js';
|
|
5
|
+
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
7
6
|
|
|
8
7
|
var img$e = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 22.0.1%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 215 215' style='enable-background:new 0 0 215 215%3b' xml:space='preserve'%3e%3cstyle type='text/css'%3e .st0%7bfill:url(%23SVGID_1_)%3b%7d .st1%7bopacity:0.2%3bclip-path:url(%23SVGID_3_)%3bfill:%231473E6%3b%7d .st2%7bopacity:0.1%3bclip-path:url(%23SVGID_5_)%3bfill:%231473E6%3b%7d .st3%7bfill:%23F9FBFC%3b%7d .st4%7bopacity:0.7%3bfill:%23F9FBFC%3b%7d .st5%7bfill:url(%23SVGID_6_)%3b%7d .st6%7bfill:%23F5F5F5%3b%7d .st7%7bfill:%2360AFFF%3b%7d .st8%7bfill:%23FFCC4D%3b%7d .st9%7bfill:%239BE4EC%3b%7d .st10%7bfill:%2314CEE6%3b%7d .st11%7bfill:url(%23SVGID_7_)%3b%7d .st12%7bopacity:0.2%3bclip-path:url(%23SVGID_9_)%3bfill:%231473E6%3b%7d .st13%7bopacity:0.1%3bclip-path:url(%23SVGID_11_)%3bfill:%231473E6%3b%7d .st14%7bfill:url(%23SVGID_12_)%3b%7d .st15%7bfill:url(%23SVGID_13_)%3b%7d .st16%7bopacity:0.1%3bclip-path:url(%23SVGID_15_)%3bfill:%231473E6%3b%7d .st17%7bfill:%23FFE49D%3b%7d .st18%7bclip-path:url(%23SVGID_17_)%3bfill:url(%23SVGID_18_)%3b%7d .st19%7bclip-path:url(%23SVGID_17_)%3bfill:url(%23SVGID_19_)%3b%7d .st20%7bfill:url(%23SVGID_20_)%3b%7d .st21%7bfill:url(%23SVGID_21_)%3b%7d .st22%7bopacity:0.25%3bclip-path:url(%23SVGID_23_)%3bfill:%231473E6%3b%7d .st23%7bfill:url(%23SVGID_24_)%3b%7d .st24%7bfill:url(%23SVGID_25_)%3b%7d .st25%7bopacity:0.1%3bclip-path:url(%23SVGID_27_)%3bfill:%231473E6%3b%7d .st26%7bclip-path:url(%23SVGID_29_)%3bfill:url(%23SVGID_30_)%3b%7d .st27%7bclip-path:url(%23SVGID_29_)%3bfill:url(%23SVGID_31_)%3b%7d .st28%7bfill:url(%23SVGID_32_)%3b%7d .st29%7bfill:url(%23SVGID_33_)%3b%7d .st30%7bopacity:0.25%3bclip-path:url(%23SVGID_35_)%3bfill:%231473E6%3b%7d .st31%7bfill:url(%23SVGID_36_)%3b%7d .st32%7bfill:url(%23SVGID_37_)%3b%7d .st33%7bopacity:0.2%3bclip-path:url(%23SVGID_39_)%3bfill:%231473E6%3b%7d .st34%7bopacity:0.1%3bclip-path:url(%23SVGID_41_)%3bfill:%231473E6%3b%7d .st35%7bfill:url(%23SVGID_42_)%3b%7d .st36%7bopacity:5.000000e-02%3b%7d .st37%7bopacity:5.000000e-02%3bclip-path:url(%23SVGID_44_)%3b%7d .st38%7bopacity:0.9%3b%7d .st39%7bfill:white%3b%7d .st40%7bopacity:0.9%3bfill:white%3b%7d .st41%7bfill:%23EBEFF2%3b%7d .st42%7bopacity:5.000000e-02%3bclip-path:url(%23SVGID_48_)%3b%7d .st43%7bfill:url(%23SVGID_51_)%3b%7d .st44%7bopacity:0.1%3bclip-path:url(%23SVGID_53_)%3bfill:%231473E6%3b%7d .st45%7bclip-path:url(%23SVGID_55_)%3bfill:url(%23SVGID_56_)%3b%7d .st46%7bclip-path:url(%23SVGID_55_)%3bfill:url(%23SVGID_57_)%3b%7d .st47%7bfill:url(%23SVGID_58_)%3b%7d .st48%7bfill:url(%23SVGID_59_)%3b%7d .st49%7bopacity:0.25%3bclip-path:url(%23SVGID_61_)%3bfill:%231473E6%3b%7d .st50%7bfill:url(%23SVGID_62_)%3b%7d .st51%7bopacity:0.9%3bclip-path:url(%23SVGID_66_)%3bfill:white%3b%7d .st52%7bopacity:5.000000e-02%3bclip-path:url(%23SVGID_68_)%3b%7d .st53%7bopacity:0.9%3bclip-path:url(%23SVGID_72_)%3bfill:white%3b%7d .st54%7bopacity:5.000000e-02%3bclip-path:url(%23SVGID_74_)%3b%7d .st55%7bfill:none%3b%7d .st56%7bfill:url(%23SVGID_75_)%3b%7d .st57%7bopacity:0.2%3bclip-path:url(%23SVGID_77_)%3bfill:%231473E6%3b%7d .st58%7bopacity:0.1%3bclip-path:url(%23SVGID_79_)%3bfill:%231473E6%3b%7d .st59%7bfill:url(%23SVGID_80_)%3b%7d .st60%7bfill:url(%23SVGID_81_)%3b%7d .st61%7bopacity:0.1%3bclip-path:url(%23SVGID_83_)%3bfill:%231473E6%3b%7d .st62%7bclip-path:url(%23SVGID_85_)%3bfill:url(%23SVGID_86_)%3b%7d .st63%7bclip-path:url(%23SVGID_85_)%3bfill:url(%23SVGID_87_)%3b%7d .st64%7bfill:url(%23SVGID_88_)%3b%7d .st65%7bfill:url(%23SVGID_89_)%3b%7d .st66%7bopacity:0.25%3bclip-path:url(%23SVGID_91_)%3bfill:%231473E6%3b%7d .st67%7bfill:url(%23SVGID_92_)%3b%7d .st68%7bopacity:5.000000e-02%3bclip-path:url(%23SVGID_94_)%3b%7d .st69%7bclip-path:url(%23SVGID_96_)%3bfill:white%3b%7d .st70%7bopacity:5.000000e-02%3bclip-path:url(%23SVGID_98_)%3b%7d%3c/style%3e%3cg%3e %3cg%3e %3cpath class='st41' d='M161.7%2c174H72.2c-4.6%2c0-8.2-3.7-8.2-8.3V43.3c0-4.6%2c3.7-8.3%2c8.2-8.3h89.5c4.6%2c0%2c8.3%2c3.7%2c8.3%2c8.3v122.5 C169.9%2c170.3%2c166.2%2c174%2c161.7%2c174z'/%3e %3c/g%3e %3cg%3e %3cdefs%3e %3cpath id='SVGID_93_' d='M161.7%2c174H72.1c-4.5%2c0-8.2-3.7-8.2-8.2V43.2c0-4.5%2c3.7-8.2%2c8.2-8.2h89.6c4.5%2c0%2c8.2%2c3.7%2c8.2%2c8.2v122.6 C169.9%2c170.3%2c166.2%2c174%2c161.7%2c174z'/%3e %3c/defs%3e %3cclipPath id='SVGID_1_'%3e %3cuse xlink:href='%23SVGID_93_' style='overflow:visible%3b'/%3e %3c/clipPath%3e %3cpath style='opacity:5.000000e-02%3bclip-path:url(%23SVGID_1_)%3b' d='M94.1%2c175H53.7c-2.1%2c0-3.8-1.7-3.8-3.8v-50.3 c0-2.1%2c1.7-3.8%2c3.8-3.8h40.3c2.1%2c0%2c3.8%2c1.7%2c3.8%2c3.8v50.3C97.9%2c173.3%2c96.2%2c175%2c94.1%2c175z'/%3e %3c/g%3e %3cg%3e %3cpath class='st39' d='M138.7%2c59.5H95.1c-1.7%2c0-3.2-1.4-3.2-3.2v-2.2c0-1.7%2c1.4-3.2%2c3.2-3.2h43.7c1.7%2c0%2c3.2%2c1.4%2c3.2%2c3.2v2.2 C141.9%2c58.1%2c140.5%2c59.5%2c138.7%2c59.5z'/%3e %3cpath class='st39' d='M130.4%2c82.5H80.9c-1.1%2c0-2-0.9-2-2v-3c0-1.1%2c0.9-2%2c2-2h49.5c1.1%2c0%2c2%2c0.9%2c2%2c2v3 C132.4%2c81.6%2c131.5%2c82.5%2c130.4%2c82.5z'/%3e %3cpath class='st39' d='M152.9%2c105h-72c-1.1%2c0-2-0.9-2-2v-3c0-1.1%2c0.9-2%2c2-2h72c1.1%2c0%2c2%2c0.9%2c2%2c2v3C154.9%2c104.1%2c154%2c105%2c152.9%2c105z' /%3e %3cpath class='st39' d='M121.9%2c131h-48c-1.1%2c0-2-0.9-2-2v-3c0-1.1%2c0.9-2%2c2-2h48c1.1%2c0%2c2%2c0.9%2c2%2c2v3C123.9%2c130.1%2c123%2c131%2c121.9%2c131z' /%3e %3cpath class='st39' d='M152.9%2c150h-79c-1.1%2c0-2-0.9-2-2v-3c0-1.1%2c0.9-2%2c2-2h79c1.1%2c0%2c2%2c0.9%2c2%2c2v3C154.9%2c149.1%2c154%2c150%2c152.9%2c150z' /%3e %3c/g%3e %3cg%3e %3cpath class='st41' d='M89.3%2c180H48.9c-2.1%2c0-3.8-1.7-3.8-3.8v-48.3c0-2.1%2c1.7-3.8%2c3.8-3.8h40.3c2.1%2c0%2c3.8%2c1.7%2c3.8%2c3.8v48.3 C93.1%2c178.3%2c91.4%2c180%2c89.3%2c180z'/%3e %3ccircle class='st39' cx='69.1' cy='145.5' r='9.5'/%3e %3cpath class='st39' d='M83.4%2c164.8H54.7c-0.6%2c0-1.2-0.5-1.2-1.2v-0.2c0-0.6%2c0.5-1.2%2c1.2-1.2h28.7c0.6%2c0%2c1.2%2c0.5%2c1.2%2c1.2v0.2 C84.6%2c164.2%2c84.1%2c164.8%2c83.4%2c164.8z'/%3e %3cpath class='st39' d='M83.1%2c170.8H54.4c-0.6%2c0-1.2-0.5-1.2-1.2v-0.2c0-0.6%2c0.5-1.2%2c1.2-1.2h28.7c0.6%2c0%2c1.2%2c0.5%2c1.2%2c1.2v0.2 C84.2%2c170.2%2c83.7%2c170.8%2c83.1%2c170.8z'/%3e %3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
9
8
|
|
|
@@ -35,7 +34,7 @@ var img$1 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3
|
|
|
35
34
|
|
|
36
35
|
var img = "data:image/svg+xml,%3csvg id='Layer_1' data-name='Layer 1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 254.81 222.67'%3e%3cdefs%3e%3cstyle%3e.cls-1%7bfill:%23fab925%3b%7d.cls-2%7bfill:%23f5f5f5%3b%7d.cls-3%7bfill:%2300bcf7%3b%7d.cls-4%7bfill:%23e6e6e6%3b%7d.cls-5%7bfill:%23ffd56c%3b%7d.cls-6%7bfill:%23ffc732%3b%7d%3c/style%3e%3c/defs%3e%3cpath class='cls-1' d='M75.68%2c110.76%2c51.13%2c95.68l65.41-50.5a18.43%2c18.43%2c0%2c0%2c1%2c22.6.07L203.68%2c96l-24.55%2c15.18Z'/%3e%3cpath class='cls-2' d='M182.2%2c58.24V108.1l-42%2c23.64-1.09-.85a18.43%2c18.43%2c0%2c0%2c0-22.6-.07l-1.05.82L72.61%2c107.69V58.24a1.54%2c1.54%2c0%2c0%2c1%2c1.54-1.54H180.66a1.54%2c1.54%2c0%2c0%2c1%2c1.54%2c1.54Z'/%3e%3cpath class='cls-3' d='M148.74%2c76.81H106.07a2.31%2c2.31%2c0%2c0%2c1%2c0-4.61h42.67a2.31%2c2.31%2c0%2c0%2c1%2c0%2c4.61Z'/%3e%3cpath class='cls-3' d='M162.55%2c108.12H92.26a2.31%2c2.31%2c0%2c0%2c1%2c0-4.61h70.29a2.31%2c2.31%2c0%2c0%2c1%2c0%2c4.61Z'/%3e%3cpath class='cls-3' d='M110.83%2c92.36H92.27a2.3%2c2.3%2c0%2c0%2c1%2c0-4.6h18.56a2.3%2c2.3%2c0%2c0%2c1%2c0%2c4.6Z'/%3e%3cpath class='cls-3' d='M162.53%2c92.36H123.08a2.3%2c2.3%2c0%2c0%2c1%2c0-4.6h39.45a2.3%2c2.3%2c0%2c1%2c1%2c0%2c4.6Z'/%3e%3cpath class='cls-4' d='M182.2%2c105.27v4.36l-42%2c23.65-1.09-.86a18.42%2c18.42%2c0%2c0%2c0-22.6-.06l-1.05.81L72.61%2c109.22v-4.35l42.53%2c20.69a23%2c23%2c0%2c0%2c1%2c25.44.09Z'/%3e%3cpath class='cls-5' d='M203.68%2c96v82.27a2.66%2c2.66%2c0%2c0%2c1-.08.69.53.53%2c0%2c0%2c1%2c0%2c.12%2c1.09%2c1.09%2c0%2c0%2c1%2c0%2c.17%2c1.21%2c1.21%2c0%2c0%2c1-.05.14l0%2c.08a1.24%2c1.24%2c0%2c0%2c1-.1.2s0%2c0%2c0%2c0a3%2c3%2c0%2c0%2c1-.27.42l-.05.07%2c0%2c0-.15.17-.15.14h0l-38.6-24.69-22.7-23.2-1.14-.9%2c7.81-4.4L182.2%2c108.1Z'/%3e%3cpath class='cls-5' d='M115.49%2c131.64l-1.16.89L91.19%2c155.84l-39%2c24.7-.15-.15a3%2c3%2c0%2c0%2c1-.86-2.13V95.68l21.48%2c12%2c30.74%2c17.17%2c3.81%2c2.12Z'/%3e%3cpath class='cls-1' d='M115.49%2c131.64l-1.16.89L91.19%2c155.84l-39%2c24.7-.15-.15a3%2c3%2c0%2c0%2c1-.86-2.13v-.12l56-51.16Z'/%3e%3cpath class='cls-1' d='M203.68%2c178.14v.12a2.66%2c2.66%2c0%2c0%2c1-.08.69.53.53%2c0%2c0%2c1%2c0%2c.12%2c1.09%2c1.09%2c0%2c0%2c1%2c0%2c.17%2c1.21%2c1.21%2c0%2c0%2c1-.05.14l0%2c.08a1.24%2c1.24%2c0%2c0%2c1-.1.2s0%2c0%2c0%2c0a3%2c3%2c0%2c0%2c1-.27.42l-.05.07%2c0%2c0-.15.17-.15.14h0l-39-24.7-23.15-23.31-1.15-.89.45-.25.46.35%2c7.81-4.4Z'/%3e%3cpath class='cls-6' d='M202.67%2c180.53h0a3%2c3%2c0%2c0%2c1-2%2c.78H54.2a3%2c3%2c0%2c0%2c1-2-.7l-.1-.08%2c36-27.77%2c26.21-20.24%2c1.16-.89%2c1.05-.82a18.44%2c18.44%2c0%2c0%2c1%2c22.6.07l.63.5.46.35%2c1.14.9%2c25.77%2c20.13Z'/%3e%3c/svg%3e";
|
|
37
36
|
|
|
38
|
-
var css_248z = "[data-gene-ui-version=\"
|
|
37
|
+
var css_248z = "[data-gene-ui-version=\"2.12.2\"] .empty-state-holder{align-items:center;display:flex;flex-direction:column;justify-content:center;text-align:center}[data-gene-ui-version=\"2.12.2\"] .empty-state-holder.absolute{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}[data-gene-ui-version=\"2.12.2\"] .empty-state-image img{height:16.6rem;max-width:inherit}[data-gene-ui-version=\"2.12.2\"] .s-small>.empty-state-image img{height:6.6rem}[data-gene-ui-version=\"2.12.2\"] .s-medium>.empty-state-image img{height:12rem}[data-gene-ui-version=\"2.12.2\"] .empty-state-title{font:600 1.6rem/2rem var(--font-family)}[data-gene-ui-version=\"2.12.2\"] .empty-state-title:not(:last-child){margin:0 0 1rem}[data-gene-ui-version=\"2.12.2\"] .s-medium>.empty-state-title{font-size:1.4rem}[data-gene-ui-version=\"2.12.2\"] .s-small>.empty-state-title{font-size:1.2rem}[data-gene-ui-version=\"2.12.2\"] .empty-state-subtitle{font:1.4rem/1.36 var(--font-family);max-width:23.8rem}[data-gene-ui-version=\"2.12.2\"] .s-small>.empty-state-subtitle{font-size:1rem}";
|
|
39
38
|
styleInject(css_248z);
|
|
40
39
|
|
|
41
40
|
const images = {
|
|
@@ -95,31 +94,31 @@ Empty.propTypes = {
|
|
|
95
94
|
/**
|
|
96
95
|
* Available style varieties of Empty atom to display
|
|
97
96
|
*/
|
|
98
|
-
appearance:
|
|
97
|
+
appearance: PropTypes.oneOf(appearances),
|
|
99
98
|
/**
|
|
100
99
|
* Types of data Empty atom should represent
|
|
101
100
|
*/
|
|
102
|
-
type:
|
|
101
|
+
type: PropTypes.oneOf(types),
|
|
103
102
|
/**
|
|
104
103
|
* Empty atom size
|
|
105
104
|
*/
|
|
106
|
-
size:
|
|
105
|
+
size: PropTypes.oneOf(sizes),
|
|
107
106
|
/**
|
|
108
107
|
* Will add a title to the "Empty" atom. Any valid React node
|
|
109
108
|
*/
|
|
110
|
-
title:
|
|
109
|
+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
111
110
|
/**
|
|
112
111
|
* Will add a subtitle to the "Empty" atom. Any valid React node
|
|
113
112
|
*/
|
|
114
|
-
subTitle:
|
|
113
|
+
subTitle: PropTypes.string,
|
|
115
114
|
/**
|
|
116
115
|
* When set to "true" Empty atom will show a predefined image based on "appearance" and "type" props
|
|
117
116
|
*/
|
|
118
|
-
withImage:
|
|
117
|
+
withImage: PropTypes.bool,
|
|
119
118
|
/**
|
|
120
119
|
* Additional className
|
|
121
120
|
*/
|
|
122
|
-
className:
|
|
121
|
+
className: PropTypes.string
|
|
123
122
|
};
|
|
124
123
|
Empty.defaultProps = {
|
|
125
124
|
appearance: appearances[0],
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { _ as _extends } from '
|
|
1
|
+
import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
2
|
import React__default, { forwardRef, useRef, useState, useEffect, useCallback } from 'react';
|
|
3
|
-
import { c as classnames } from '
|
|
4
|
-
import
|
|
5
|
-
import { i as inputConfig, s as screenTypes } from '
|
|
6
|
-
import { n as noop, s as stopEvent } from '
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import Icon from '
|
|
10
|
-
import
|
|
11
|
-
import '
|
|
12
|
-
import { s as styleInject } from '
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
3
|
+
import { c as classnames } from '../index-6ff23041.js';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import { i as inputConfig, s as screenTypes } from '../configs-fed6ac34.js';
|
|
6
|
+
import { n as noop, s as stopEvent } from '../index-a0e4e333.js';
|
|
7
|
+
import useDeviceType from '../hooks/useDeviceType.js';
|
|
8
|
+
import useEllipsisDetection from '../hooks/useEllipsisDetection.js';
|
|
9
|
+
import Icon from '../Icon/index.js';
|
|
10
|
+
import SuggestionList from '../SuggestionList/index.js';
|
|
11
|
+
import Tooltip from '../Tooltip/index.js';
|
|
12
|
+
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
13
|
+
import '../dateValidation-67caec66.js';
|
|
14
|
+
import '../_commonjsHelpers-24198af3.js';
|
|
15
15
|
import 'react-dom';
|
|
16
|
-
import '
|
|
17
|
-
import '
|
|
18
|
-
import '
|
|
19
|
-
import '
|
|
20
|
-
import '
|
|
21
|
-
import '
|
|
16
|
+
import '../hooks/useWindowSize.js';
|
|
17
|
+
import '../hooks/useKeyDown.js';
|
|
18
|
+
import '../hooks/useClickOutside.js';
|
|
19
|
+
import '../config-0ca92874.js';
|
|
20
|
+
import '../Scrollbar/index.js';
|
|
21
|
+
import '../Popover-f4d1cac0.js';
|
|
22
|
+
import '../GeneUIProvider/index.js';
|
|
22
23
|
|
|
23
|
-
var css_248z = "[data-gene-ui-version=\"1.0.0\"] .input-holder{--input-message-padding-side:2rem;--input-element-padding-side:0.5rem;--input-element-height:3.6rem;--textarea-height:21.5rem;--number-actions-holder-padding:0 0.5rem;--swap-label-color:inherit;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-width:100%;position:relative;transition:opacity .3s;-webkit-user-select:none;user-select:none}[data-gene-ui-version=\"1.0.0\"] .input-holder.disabled{opacity:.5}[data-gene-ui-version=\"1.0.0\"] .input-holder.read-only{cursor:inherit;-webkit-user-select:text;user-select:text}[data-gene-ui-version=\"1.0.0\"] .input-holder:not(.f-content-size){width:100%}[data-gene-ui-version=\"1.0.0\"] .input-holder.s-big{--input-element-height:4.2rem;--textarea-height:52rem}[data-gene-ui-version=\"1.0.0\"] .input-holder.s-small{--input-element-height:3.2rem;--textarea-height:14.8rem}[data-gene-ui-version=\"1.0.0\"] .input-holder.id-start .validation-icon{margin-inline-end:-.5rem}[data-gene-ui-version=\"1.0.0\"] .input-holder.id-end{--direction:row-reverse}[data-gene-ui-version=\"1.0.0\"] .input-holder.id-end .validation-icon{margin-inline-start:-.5rem}[data-gene-ui-version=\"1.0.0\"] .input-holder.cr-smooth-radius{--input-element-border-radius:0.4rem;--textarea-border-radius:0.4rem}[data-gene-ui-version=\"1.0.0\"] .input-holder .end-add-on{align-items:center;border-radius:0 var(--input-element-border-radius,4.2rem) var(--input-element-border-radius,4.2rem) 0;display:flex;font:600 1.4rem/1.5 var(--font-family);height:var(--input-element-height);justify-content:center;margin:1px 0;margin-inline-end:calc(var(--input-structure-padding, 1.5rem)*-1 + 1px);margin-inline-start:var(--input-structure-padding,1.5rem);padding:0 var(--input-structure-padding,1.5rem);transition:background .3s,border-color .3s,opacity .3s}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-outline{--input-element-border-color:rgba(var(--background-sc-rgb),0.2)}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-outline:not(.t-textarea) .end-add-on{background:rgba(var(--background-sc-rgb),.03);border-inline-start:1px solid var(--input-element-border-color,#0000);height:calc(var(--input-element-height) - .2rem)}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-outline.read-only{--input-element-border-color:rgba(var(--background-sc-rgb),0.05)}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-outline.filled:not(:focus-within){--input-element-border-color:rgba(var(--background-sc-rgb),0.3)}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-outline:not(.read-only):focus-within{--input-element-border-color:var(--hero);--swap-label-color:var(--hero)}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-minimal{--input-element-background:rgba(var(--background-sc-rgb),0.02)}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-minimal.read-only{--input-element-background:rgba(var(--background-sc-rgb),0.01)}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-minimal.filled:not(:focus-within),[data-gene-ui-version=\"1.0.0\"] .input-holder.a-minimal:not(.read-only):focus-within{--input-element-background:rgba(var(--background-sc-rgb),0.03)}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-minimal.s-small{--input-message-padding-side:0.7rem;--input-element-background:rgba(var(--background-sc-rgb),0.03);--input-element-padding-side:0.3rem;--number-actions-holder-padding:0;--input-structure-padding:0.4rem}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-minimal.s-small.read-only{--input-element-background:rgba(var(--background-sc-rgb),0.01)}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-minimal.s-small.filled:not(:focus-within){--input-element-background:rgba(var(--background-sc-rgb),0.03)}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-minimal.s-small:not(.read-only):focus-within{--input-element-background:#0000;--input-element-border-color:var(--hero);--swap-label-color:var(--hero)}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-light:not(.read-only):focus-within{--input-element-background:rgba(var(--background-sc-rgb),0.05)}@media (hover:hover){[data-gene-ui-version=\"1.0.0\"] .input-holder.a-light:hover{--input-element-background:rgba(var(--background-sc-rgb),0.05)}}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-light.popover-opened{--input-element-background:rgba(var(--background-sc-rgb),0.05)}[data-gene-ui-version=\"1.0.0\"] .input-holder.error-color,[data-gene-ui-version=\"1.0.0\"] .input-holder.success-color{--input-element-background:#0000!important}[data-gene-ui-version=\"1.0.0\"] .input-holder.error-color{--input-element-border-color:var(--danger)!important}[data-gene-ui-version=\"1.0.0\"] .input-holder.error-color:not(.read-only):focus-within{--swap-label-color:var(--danger)!important}[data-gene-ui-version=\"1.0.0\"] .input-holder.success-color{--input-element-border-color:var(--confirm)!important}[data-gene-ui-version=\"1.0.0\"] .input-holder.success-color:not(.read-only):focus-within{--swap-label-color:var(--confirm)!important}[data-gene-ui-version=\"1.0.0\"] .input-holder.t-textarea .end-add-on{align-self:flex-end}[data-gene-ui-version=\"1.0.0\"] .input-structure{align-items:center;display:flex;flex-direction:var(--direction,row);padding:0 var(--input-structure-padding,1.5rem);position:relative;width:100%}[data-gene-ui-version=\"1.0.0\"] .input-structure>*{flex-shrink:0}[data-gene-ui-version=\"1.0.0\"] .input-structure>:not(label){position:relative;z-index:1}[data-gene-ui-version=\"1.0.0\"] .input-holder.a-minimal.s-small .input-structure>:not(label){margin:0 .3rem}[data-gene-ui-version=\"1.0.0\"] .input-structure>:not(label).bc-icon-clear{border-radius:100%;transition:background .4s,color .4s}@media (hover:hover){[data-gene-ui-version=\"1.0.0\"] .input-structure>:not(label).bc-icon-clear:hover{background:rgba(var(--background-sc-rgb),.03);color:var(--hero)}}[data-gene-ui-version=\"1.0.0\"] .input-structure>label{cursor:inherit;display:block;flex:auto;overflow:hidden}[data-gene-ui-version=\"1.0.0\"] .input-structure .icon{align-items:center;display:flex;justify-content:center;transition:color .3s,background .3s;z-index:10}[data-gene-ui-version=\"1.0.0\"] .input-structure .icon-holder{order:-1;z-index:2}[data-gene-ui-version=\"1.0.0\"] .input-structure .icon-holder-disabled{pointer-events:none}[data-gene-ui-version=\"1.0.0\"] .input-element-back{background:var(--input-element-background,var(--background));border:1px solid var(--input-element-border-color,#0000);border-radius:var(--input-element-border-radius,4.2rem);bottom:0;height:100%;left:0;position:absolute;right:0;top:0;transition:background .3s,border-color .3s,opacity .3s;width:100%}[data-gene-ui-version=\"1.0.0\"] .t-textarea .input-element-back{border-radius:var(--textarea-border-radius,1rem)}[data-gene-ui-version=\"1.0.0\"] .read-only .input-element-back:empty{opacity:0}[data-gene-ui-version=\"1.0.0\"] .fit-content-hack{height:0;opacity:0;overflow:hidden;pointer-events:none}[data-gene-ui-version=\"1.0.0\"] .input-element-relative{position:relative;width:100%;z-index:1}[data-gene-ui-version=\"1.0.0\"] .input-element{color:rgba(var(--background-sc-rgb),.75);font:600 1.4rem var(--font-family);height:var(--input-element-height);overflow:hidden;padding:0 var(--input-element-padding-side);position:relative;resize:none;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap;width:100%}[data-gene-ui-version=\"1.0.0\"] .input-element:-webkit-autofill{-webkit-text-fill-color:var(--background-sc);-webkit-background-clip:text;background-clip:text}[data-gene-ui-version=\"1.0.0\"] .input-element:-webkit-autofill::selection{-webkit-text-fill-color:var(--hero)}[data-gene-ui-version=\"1.0.0\"] .input-element.hide{opacity:0}[data-gene-ui-version=\"1.0.0\"] .input-element::input-placeholder{color:rgba(var(--background-sc-rgb),.375);font-size:1.4rem;font-weight:600;transition:color .15s}[data-gene-ui-version=\"1.0.0\"] .input-element:placeholder{color:rgba(var(--background-sc-rgb),.375);font-size:1.4rem;font-weight:600;transition:color .15s}[data-gene-ui-version=\"1.0.0\"] .input-element::placeholder{color:rgba(var(--background-sc-rgb),.375);font-size:1.4rem;font-weight:600;transition:color .15s}[data-gene-ui-version=\"1.0.0\"] .input-element:input-placeholder{color:rgba(var(--background-sc-rgb),.375);font-size:1.4rem;font-weight:600;transition:color .15s}[data-gene-ui-version=\"1.0.0\"] .input-element.read-only:not(.textarea-element){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-gene-ui-version=\"1.0.0\"] .textarea-element,[data-gene-ui-version=\"1.0.0\"] textarea.input-element{border:1px solid #0000;cursor:auto;height:var(--textarea-height);overflow:auto;padding:1rem var(--input-element-padding-side);padding-right:70px!important;text-overflow:unset;white-space:normal}[data-gene-ui-version=\"1.0.0\"] .textarea-element.read-only,[data-gene-ui-version=\"1.0.0\"] textarea.input-element.read-only{height:auto}[data-gene-ui-version=\"1.0.0\"] .textarea-element::-webkit-scrollbar,[data-gene-ui-version=\"1.0.0\"] textarea.input-element::-webkit-scrollbar{height:1.6rem;width:1.6rem}[data-gene-ui-version=\"1.0.0\"] .textarea-element::-webkit-scrollbar-thumb,[data-gene-ui-version=\"1.0.0\"] textarea.input-element::-webkit-scrollbar-thumb{background:rgba(var(--background-sc-rgb),.05);border:.4rem solid var(--background);border-radius:1.6rem}[data-gene-ui-version=\"1.0.0\"] div.input-element{align-items:center;display:flex;justify-content:flex-start}[data-gene-ui-version=\"1.0.0\"] div.input-element:not([readonly]).placeholder{color:rgba(var(--background-sc-rgb),.375)}[data-gene-ui-version=\"1.0.0\"] div.input-element:not([readonly]).placeholder:focus{color:rgba(var(--background-sc-rgb),0)}[data-gene-ui-version=\"1.0.0\"] .input-element[readonly]{cursor:inherit}[data-gene-ui-version=\"1.0.0\"] .input-element[readonly]::selection{background:#0000;color:inherit}[data-gene-ui-version=\"1.0.0\"] .input-element[type=date],[data-gene-ui-version=\"1.0.0\"] .input-element[type=datetime-local],[data-gene-ui-version=\"1.0.0\"] .input-element[type=time]{line-height:var(--input-element-height)}[data-gene-ui-version=\"1.0.0\"] .input-fake-placeholder{align-items:center;color:rgba(var(--background-sc-rgb),.375);display:flex;font:600 1.4rem/1.8rem var(--font-family);height:100%;left:0;padding:0 var(--input-element-padding-side);pointer-events:none;position:absolute;top:0;transition:opacity .15s;-webkit-user-select:none;user-select:none;width:100%}[data-gene-ui-version=\"1.0.0\"] .input-fake-placeholder.hide{opacity:0}[data-gene-ui-version=\"1.0.0\"] .input-swap-label{display:flex;font:600 1rem/1.8rem var(--font-family);left:0;max-width:100%;padding:0 var(--input-message-padding-side);position:absolute;top:-.9rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;z-index:5}[data-gene-ui-version=\"1.0.0\"] .input-swap-label .icon{font-size:1.8rem;transition:none}[data-gene-ui-version=\"1.0.0\"] .input-swap{max-width:100%;overflow:hidden}[data-gene-ui-version=\"1.0.0\"] .input-swap-animate{align-items:center;background:var(--background);box-shadow:inset 0 -.8rem 0 var(--input-element-background);color:var(--swap-label-color);display:flex;max-width:100%;padding:0 .4rem;transition:transform .3s,opacity .3s .1s,color .3s}[data-gene-ui-version=\"1.0.0\"] .input-swap-animate>*+*{margin-inline-start:.5rem}[data-gene-ui-version=\"1.0.0\"] .input-swap-animate.hide{opacity:0;transform:translateY(100%)}[data-gene-ui-version=\"1.0.0\"] .number-actions-holder{padding:var(--number-actions-holder-padding)}[data-gene-ui-version=\"1.0.0\"] .number-actions-holder>ul{background:var(--background);border:1px solid rgba(var(--background-sc-rgb),.1);border-radius:.7rem;color:inherit;font-size:1rem;width:1.5rem}[data-gene-ui-version=\"1.0.0\"] .number-actions-holder>ul>li{cursor:pointer;transition:color .3s,background .3s,opacity .3s}[data-gene-ui-version=\"1.0.0\"] .number-actions-holder>ul>li:first-child{border-radius:.7rem .7rem 0 0}[data-gene-ui-version=\"1.0.0\"] .number-actions-holder>ul>li:last-child{border-radius:0 0 .7rem .7rem}[data-gene-ui-version=\"1.0.0\"] .number-actions-holder>ul>li.disabled{opacity:.5;pointer-events:none}@media (hover:hover){[data-gene-ui-version=\"1.0.0\"] .number-actions-holder>ul>li:hover{background:rgba(var(--background-sc-rgb),.03);color:var(--hero)}}[data-gene-ui-version=\"1.0.0\"] .information-message{cursor:default;font:600 1.2rem/1.42 var(--font-family);margin:.6rem 0 0;padding:0 var(--input-message-padding-side);width:100%}[data-gene-ui-version=\"1.0.0\"] .information-message:empty{display:none}[data-gene-ui-version=\"1.0.0\"] .input-description{cursor:default;font:600 1.4rem/2rem var(--font-family);margin:1rem 0 0;max-width:100%;opacity:.7}[data-gene-ui-version=\"1.0.0\"] .input-structure~.input-description{padding:0 1rem}[data-gene-ui-version=\"1.0.0\"] .input-title{align-items:center;cursor:default;display:flex;font:600 1.4rem/2rem var(--font-family);margin:0 0 .4rem;max-width:100%;opacity:.5;padding:0 var(--input-message-padding-side)}[data-gene-ui-version=\"1.0.0\"] .input-title>*+*{margin-inline-start:.5rem}";
|
|
24
|
+
var css_248z = "[data-gene-ui-version=\"2.12.2\"] .input-holder{--input-message-padding-side:2rem;--input-element-padding-side:0.5rem;--input-element-height:3.6rem;--textarea-height:21.5rem;--number-actions-holder-padding:0 0.5rem;--swap-label-color:inherit;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-width:100%;position:relative;transition:opacity .3s;-webkit-user-select:none;user-select:none}[data-gene-ui-version=\"2.12.2\"] .input-holder.disabled{opacity:.5}[data-gene-ui-version=\"2.12.2\"] .input-holder.read-only{cursor:inherit;-webkit-user-select:text;user-select:text}[data-gene-ui-version=\"2.12.2\"] .input-holder:not(.f-content-size){width:100%}[data-gene-ui-version=\"2.12.2\"] .input-holder.s-big{--input-element-height:4.2rem;--textarea-height:52rem}[data-gene-ui-version=\"2.12.2\"] .input-holder.s-small{--input-element-height:3.2rem;--textarea-height:14.8rem}[data-gene-ui-version=\"2.12.2\"] .input-holder.id-start .validation-icon{margin-inline-end:-.5rem}[data-gene-ui-version=\"2.12.2\"] .input-holder.id-end{--direction:row-reverse}[data-gene-ui-version=\"2.12.2\"] .input-holder.id-end .validation-icon{margin-inline-start:-.5rem}[data-gene-ui-version=\"2.12.2\"] .input-holder.cr-smooth-radius{--input-element-border-radius:0.4rem;--textarea-border-radius:0.4rem}[data-gene-ui-version=\"2.12.2\"] .input-holder .end-add-on{align-items:center;border-radius:0 var(--input-element-border-radius,4.2rem) var(--input-element-border-radius,4.2rem) 0;display:flex;font:600 1.4rem/1.5 var(--font-family);height:var(--input-element-height);justify-content:center;margin:1px 0;margin-inline-end:calc(var(--input-structure-padding, 1.5rem)*-1 + 1px);margin-inline-start:var(--input-structure-padding,1.5rem);padding:0 var(--input-structure-padding,1.5rem);transition:background .3s,border-color .3s,opacity .3s}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-outline{--input-element-border-color:rgba(var(--background-sc-rgb),0.2)}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-outline:not(.t-textarea) .end-add-on{background:rgba(var(--background-sc-rgb),.03);border-inline-start:1px solid var(--input-element-border-color,#0000);height:calc(var(--input-element-height) - .2rem)}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-outline.read-only{--input-element-border-color:rgba(var(--background-sc-rgb),0.05)}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-outline.filled:not(:focus-within){--input-element-border-color:rgba(var(--background-sc-rgb),0.3)}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-outline:not(.read-only):focus-within{--input-element-border-color:var(--hero);--swap-label-color:var(--hero)}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-minimal{--input-element-background:rgba(var(--background-sc-rgb),0.02)}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-minimal.read-only{--input-element-background:rgba(var(--background-sc-rgb),0.01)}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-minimal.filled:not(:focus-within),[data-gene-ui-version=\"2.12.2\"] .input-holder.a-minimal:not(.read-only):focus-within{--input-element-background:rgba(var(--background-sc-rgb),0.03)}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-minimal.s-small{--input-message-padding-side:0.7rem;--input-element-background:rgba(var(--background-sc-rgb),0.03);--input-element-padding-side:0.3rem;--number-actions-holder-padding:0;--input-structure-padding:0.4rem}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-minimal.s-small.read-only{--input-element-background:rgba(var(--background-sc-rgb),0.01)}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-minimal.s-small.filled:not(:focus-within){--input-element-background:rgba(var(--background-sc-rgb),0.03)}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-minimal.s-small:not(.read-only):focus-within{--input-element-background:#0000;--input-element-border-color:var(--hero);--swap-label-color:var(--hero)}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-light:not(.read-only):focus-within{--input-element-background:rgba(var(--background-sc-rgb),0.05)}@media (hover:hover){[data-gene-ui-version=\"2.12.2\"] .input-holder.a-light:hover{--input-element-background:rgba(var(--background-sc-rgb),0.05)}}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-light.popover-opened{--input-element-background:rgba(var(--background-sc-rgb),0.05)}[data-gene-ui-version=\"2.12.2\"] .input-holder.error-color,[data-gene-ui-version=\"2.12.2\"] .input-holder.success-color{--input-element-background:#0000!important}[data-gene-ui-version=\"2.12.2\"] .input-holder.error-color{--input-element-border-color:var(--danger)!important}[data-gene-ui-version=\"2.12.2\"] .input-holder.error-color:not(.read-only):focus-within{--swap-label-color:var(--danger)!important}[data-gene-ui-version=\"2.12.2\"] .input-holder.success-color{--input-element-border-color:var(--confirm)!important}[data-gene-ui-version=\"2.12.2\"] .input-holder.success-color:not(.read-only):focus-within{--swap-label-color:var(--confirm)!important}[data-gene-ui-version=\"2.12.2\"] .input-holder.t-textarea .end-add-on{align-self:flex-end}[data-gene-ui-version=\"2.12.2\"] .input-structure{align-items:center;display:flex;flex-direction:var(--direction,row);padding:0 var(--input-structure-padding,1.5rem);position:relative;width:100%}[data-gene-ui-version=\"2.12.2\"] .input-structure>*{flex-shrink:0}[data-gene-ui-version=\"2.12.2\"] .input-structure>:not(label){position:relative;z-index:1}[data-gene-ui-version=\"2.12.2\"] .input-holder.a-minimal.s-small .input-structure>:not(label){margin:0 .3rem}[data-gene-ui-version=\"2.12.2\"] .input-structure>:not(label).bc-icon-clear{border-radius:100%;transition:background .4s,color .4s}@media (hover:hover){[data-gene-ui-version=\"2.12.2\"] .input-structure>:not(label).bc-icon-clear:hover{background:rgba(var(--background-sc-rgb),.03);color:var(--hero)}}[data-gene-ui-version=\"2.12.2\"] .input-structure>label{cursor:inherit;display:block;flex:auto;overflow:hidden}[data-gene-ui-version=\"2.12.2\"] .input-structure .icon{align-items:center;display:flex;justify-content:center;transition:color .3s,background .3s;z-index:10}[data-gene-ui-version=\"2.12.2\"] .input-structure .icon-holder{order:-1;z-index:2}[data-gene-ui-version=\"2.12.2\"] .input-structure .icon-holder-disabled{pointer-events:none}[data-gene-ui-version=\"2.12.2\"] .input-element-back{background:var(--input-element-background,var(--background));border:1px solid var(--input-element-border-color,#0000);border-radius:var(--input-element-border-radius,4.2rem);bottom:0;height:100%;left:0;position:absolute;right:0;top:0;transition:background .3s,border-color .3s,opacity .3s;width:100%}[data-gene-ui-version=\"2.12.2\"] .t-textarea .input-element-back{border-radius:var(--textarea-border-radius,1rem)}[data-gene-ui-version=\"2.12.2\"] .read-only .input-element-back:empty{opacity:0}[data-gene-ui-version=\"2.12.2\"] .fit-content-hack{height:0;opacity:0;overflow:hidden;pointer-events:none}[data-gene-ui-version=\"2.12.2\"] .input-element-relative{position:relative;width:100%;z-index:1}[data-gene-ui-version=\"2.12.2\"] .input-element{color:rgba(var(--background-sc-rgb),.75);font:600 1.4rem var(--font-family);height:var(--input-element-height);overflow:hidden;padding:0 var(--input-element-padding-side);position:relative;resize:none;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap;width:100%}[data-gene-ui-version=\"2.12.2\"] .input-element:-webkit-autofill{-webkit-text-fill-color:var(--background-sc);-webkit-background-clip:text;background-clip:text}[data-gene-ui-version=\"2.12.2\"] .input-element:-webkit-autofill::selection{-webkit-text-fill-color:var(--hero)}[data-gene-ui-version=\"2.12.2\"] .input-element.hide{opacity:0}[data-gene-ui-version=\"2.12.2\"] .input-element::input-placeholder{color:rgba(var(--background-sc-rgb),.375);font-size:1.4rem;font-weight:600;transition:color .15s}[data-gene-ui-version=\"2.12.2\"] .input-element:placeholder{color:rgba(var(--background-sc-rgb),.375);font-size:1.4rem;font-weight:600;transition:color .15s}[data-gene-ui-version=\"2.12.2\"] .input-element::placeholder{color:rgba(var(--background-sc-rgb),.375);font-size:1.4rem;font-weight:600;transition:color .15s}[data-gene-ui-version=\"2.12.2\"] .input-element:input-placeholder{color:rgba(var(--background-sc-rgb),.375);font-size:1.4rem;font-weight:600;transition:color .15s}[data-gene-ui-version=\"2.12.2\"] .input-element.read-only:not(.textarea-element){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-gene-ui-version=\"2.12.2\"] .textarea-element,[data-gene-ui-version=\"2.12.2\"] textarea.input-element{border:1px solid #0000;cursor:auto;height:var(--textarea-height);overflow:auto;padding:1rem var(--input-element-padding-side);padding-right:70px!important;text-overflow:unset;white-space:normal}[data-gene-ui-version=\"2.12.2\"] .textarea-element.read-only,[data-gene-ui-version=\"2.12.2\"] textarea.input-element.read-only{height:auto}[data-gene-ui-version=\"2.12.2\"] .textarea-element::-webkit-scrollbar,[data-gene-ui-version=\"2.12.2\"] textarea.input-element::-webkit-scrollbar{height:1.6rem;width:1.6rem}[data-gene-ui-version=\"2.12.2\"] .textarea-element::-webkit-scrollbar-thumb,[data-gene-ui-version=\"2.12.2\"] textarea.input-element::-webkit-scrollbar-thumb{background:rgba(var(--background-sc-rgb),.05);border:.4rem solid var(--background);border-radius:1.6rem}[data-gene-ui-version=\"2.12.2\"] div.input-element{align-items:center;display:flex;justify-content:flex-start}[data-gene-ui-version=\"2.12.2\"] div.input-element:not([readonly]).placeholder{color:rgba(var(--background-sc-rgb),.375)}[data-gene-ui-version=\"2.12.2\"] div.input-element:not([readonly]).placeholder:focus{color:rgba(var(--background-sc-rgb),0)}[data-gene-ui-version=\"2.12.2\"] .input-element[readonly]{cursor:inherit}[data-gene-ui-version=\"2.12.2\"] .input-element[readonly]::selection{background:#0000;color:inherit}[data-gene-ui-version=\"2.12.2\"] .input-element[type=date],[data-gene-ui-version=\"2.12.2\"] .input-element[type=datetime-local],[data-gene-ui-version=\"2.12.2\"] .input-element[type=time]{line-height:var(--input-element-height)}[data-gene-ui-version=\"2.12.2\"] .input-fake-placeholder{align-items:center;color:rgba(var(--background-sc-rgb),.375);display:flex;font:600 1.4rem/1.8rem var(--font-family);height:100%;left:0;padding:0 var(--input-element-padding-side);pointer-events:none;position:absolute;top:0;transition:opacity .15s;-webkit-user-select:none;user-select:none;width:100%}[data-gene-ui-version=\"2.12.2\"] .input-fake-placeholder.hide{opacity:0}[data-gene-ui-version=\"2.12.2\"] .input-swap-label{display:flex;font:600 1rem/1.8rem var(--font-family);left:0;max-width:100%;padding:0 var(--input-message-padding-side);position:absolute;top:-.9rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;z-index:5}[data-gene-ui-version=\"2.12.2\"] .input-swap-label .icon{font-size:1.8rem;transition:none}[data-gene-ui-version=\"2.12.2\"] .input-swap{max-width:100%;overflow:hidden}[data-gene-ui-version=\"2.12.2\"] .input-swap-animate{align-items:center;background:var(--background);box-shadow:inset 0 -.8rem 0 var(--input-element-background);color:var(--swap-label-color);display:flex;max-width:100%;padding:0 .4rem;transition:transform .3s,opacity .3s .1s,color .3s}[data-gene-ui-version=\"2.12.2\"] .input-swap-animate>*+*{margin-inline-start:.5rem}[data-gene-ui-version=\"2.12.2\"] .input-swap-animate.hide{opacity:0;transform:translateY(100%)}[data-gene-ui-version=\"2.12.2\"] .number-actions-holder{padding:var(--number-actions-holder-padding)}[data-gene-ui-version=\"2.12.2\"] .number-actions-holder>ul{background:var(--background);border:1px solid rgba(var(--background-sc-rgb),.1);border-radius:.7rem;color:inherit;font-size:1rem;width:1.5rem}[data-gene-ui-version=\"2.12.2\"] .number-actions-holder>ul>li{cursor:pointer;transition:color .3s,background .3s,opacity .3s}[data-gene-ui-version=\"2.12.2\"] .number-actions-holder>ul>li:first-child{border-radius:.7rem .7rem 0 0}[data-gene-ui-version=\"2.12.2\"] .number-actions-holder>ul>li:last-child{border-radius:0 0 .7rem .7rem}[data-gene-ui-version=\"2.12.2\"] .number-actions-holder>ul>li.disabled{opacity:.5;pointer-events:none}@media (hover:hover){[data-gene-ui-version=\"2.12.2\"] .number-actions-holder>ul>li:hover{background:rgba(var(--background-sc-rgb),.03);color:var(--hero)}}[data-gene-ui-version=\"2.12.2\"] .information-message{cursor:default;font:600 1.2rem/1.42 var(--font-family);margin:.6rem 0 0;padding:0 var(--input-message-padding-side);width:100%}[data-gene-ui-version=\"2.12.2\"] .information-message:empty{display:none}[data-gene-ui-version=\"2.12.2\"] .input-description{cursor:default;font:600 1.4rem/2rem var(--font-family);margin:1rem 0 0;max-width:100%;opacity:.7}[data-gene-ui-version=\"2.12.2\"] .input-structure~.input-description{padding:0 1rem}[data-gene-ui-version=\"2.12.2\"] .input-title{align-items:center;cursor:default;display:flex;font:600 1.4rem/2rem var(--font-family);margin:0 0 .4rem;max-width:100%;opacity:.5;padding:0 var(--input-message-padding-side)}[data-gene-ui-version=\"2.12.2\"] .input-title>*+*{margin-inline-start:.5rem}";
|
|
24
25
|
styleInject(css_248z);
|
|
25
26
|
|
|
26
27
|
function replaceBetween(start, end, initial, what) {
|
|
@@ -100,6 +101,9 @@ const ExtendedInput = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
100
101
|
const isControlled = 'value' in props && typeof value !== 'undefined';
|
|
101
102
|
// non strict equality is needed for covering 'undefined' case also
|
|
102
103
|
const inputValue = isControlled ? value != null ? value : '' : localValue;
|
|
104
|
+
const [isTextTruncated, setIsTextTruncated] = useState(false);
|
|
105
|
+
const isTruncated = useEllipsisDetection(inputRef, [inputValue]);
|
|
106
|
+
useEffect(() => setIsTextTruncated(isTruncated), [isTruncated]);
|
|
103
107
|
useEffect(() => {
|
|
104
108
|
isControlled && value && value !== inputValue && setLocalValue(value);
|
|
105
109
|
}, [value, isControlled, inputValue]);
|
|
@@ -113,9 +117,15 @@ const ExtendedInput = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
113
117
|
onChange(e);
|
|
114
118
|
};
|
|
115
119
|
const handleFocus = useCallback(e => {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
120
|
+
if (isDropdown && (writeProtected || isMobile)) {
|
|
121
|
+
var _inputRef$current;
|
|
122
|
+
stopEvent(e, true);
|
|
123
|
+
inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.blur();
|
|
124
|
+
} else {
|
|
125
|
+
setFocused(true);
|
|
126
|
+
onFocus(e);
|
|
127
|
+
}
|
|
128
|
+
}, [onFocus, isTextTruncated, isMobile, value]);
|
|
119
129
|
const handleIconClick = useCallback(e => {
|
|
120
130
|
// We will remove this later, when get report who use this
|
|
121
131
|
if (clickableIcon) {
|
|
@@ -344,199 +354,199 @@ ExtendedInput.propTypes = {
|
|
|
344
354
|
/**
|
|
345
355
|
* Additional className
|
|
346
356
|
*/
|
|
347
|
-
className:
|
|
357
|
+
className: PropTypes.string,
|
|
348
358
|
/**
|
|
349
359
|
* Control ExtendedInput disabled state with this prop
|
|
350
360
|
*/
|
|
351
|
-
disabled:
|
|
361
|
+
disabled: PropTypes.bool,
|
|
352
362
|
/**
|
|
353
363
|
* Borders will be colored on when "isValid" and this props are set to "true"
|
|
354
364
|
*/
|
|
355
|
-
colorBorderOnError:
|
|
365
|
+
colorBorderOnError: PropTypes.bool,
|
|
356
366
|
/**
|
|
357
367
|
* Shows an icon to clear ExtendedInput's value when set to "true"
|
|
358
368
|
*/
|
|
359
|
-
showClearIcon:
|
|
369
|
+
showClearIcon: PropTypes.bool,
|
|
360
370
|
/**
|
|
361
371
|
* Use this props in combo with "icon" prop. This will fire on icon click when set to "true"
|
|
362
372
|
*/
|
|
363
|
-
clickableIcon:
|
|
373
|
+
clickableIcon: PropTypes.bool,
|
|
364
374
|
/**
|
|
365
375
|
* Shows an error icon when "isValid" is set to "false" and this prop is set to "true"
|
|
366
376
|
*/
|
|
367
|
-
showErrorIcon:
|
|
377
|
+
showErrorIcon: PropTypes.bool,
|
|
368
378
|
/**
|
|
369
379
|
* Shows an "Icon" for number inputs, when "type" is set to "number" and this prop is et to "true"
|
|
370
380
|
*/
|
|
371
|
-
showNumberIcon:
|
|
381
|
+
showNumberIcon: PropTypes.bool,
|
|
372
382
|
/**
|
|
373
383
|
*.
|
|
374
384
|
*/
|
|
375
|
-
showClickableTooltipOnError:
|
|
385
|
+
showClickableTooltipOnError: PropTypes.bool,
|
|
376
386
|
/**
|
|
377
387
|
* ExtendedInput borders are colored when "isValid" and this props are set to "true"
|
|
378
388
|
*/
|
|
379
|
-
colorOnValid:
|
|
389
|
+
colorOnValid: PropTypes.bool,
|
|
380
390
|
/**
|
|
381
391
|
* ExtendedInput will display an icon when "isValid" and this props are set to "true"
|
|
382
392
|
*/
|
|
383
|
-
showIconOnValid:
|
|
393
|
+
showIconOnValid: PropTypes.bool,
|
|
384
394
|
/**
|
|
385
395
|
* Shows the "errorText" value in "Tooltip" when set to "true"
|
|
386
396
|
*/
|
|
387
|
-
showErrorWithTooltip:
|
|
397
|
+
showErrorWithTooltip: PropTypes.bool,
|
|
388
398
|
/**
|
|
389
399
|
* Control ExtendedInput validation. For more info see "ValidatableNumberInput", "ValidatableTextInput"(integrated ExtendedInputs with "Form" organism).
|
|
390
400
|
*/
|
|
391
|
-
isValid:
|
|
401
|
+
isValid: PropTypes.bool,
|
|
392
402
|
/**
|
|
393
403
|
* Use this prop to specify error message. This will be displayed when "isValid" is set to "false"
|
|
394
404
|
*/
|
|
395
|
-
errorText:
|
|
405
|
+
errorText: PropTypes.string,
|
|
396
406
|
/**
|
|
397
407
|
* Use this prop to specify tooltip message.
|
|
398
408
|
*/
|
|
399
|
-
tooltipText:
|
|
409
|
+
tooltipText: PropTypes.string,
|
|
400
410
|
/**
|
|
401
411
|
* Specify increment or decrement value, when arrow up or down are clicked
|
|
402
412
|
*/
|
|
403
|
-
step:
|
|
413
|
+
step: PropTypes.number,
|
|
404
414
|
/**
|
|
405
415
|
* Valid values are same as "Icon" type
|
|
406
416
|
*/
|
|
407
|
-
icon:
|
|
417
|
+
icon: PropTypes.string,
|
|
408
418
|
/**
|
|
409
419
|
* ExtendedInput placeholder
|
|
410
420
|
*/
|
|
411
|
-
placeholder:
|
|
421
|
+
placeholder: PropTypes.string,
|
|
412
422
|
/**
|
|
413
423
|
* Control items direction
|
|
414
424
|
*/
|
|
415
|
-
itemsDirection:
|
|
425
|
+
itemsDirection: PropTypes.oneOf(inputConfig.itemsDirection),
|
|
416
426
|
/**
|
|
417
427
|
* Use this prop to control ExtendedInput state. Note that when you specify this prop, the ExtendedInput will not functionate itself
|
|
418
428
|
*/
|
|
419
|
-
value:
|
|
429
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
420
430
|
/**
|
|
421
431
|
* ExtendedInput type
|
|
422
432
|
*/
|
|
423
|
-
type:
|
|
433
|
+
type: PropTypes.oneOf(inputConfig.type).isRequired,
|
|
424
434
|
/**
|
|
425
435
|
* ExtendedInput appearance
|
|
426
436
|
*/
|
|
427
|
-
appearance:
|
|
437
|
+
appearance: PropTypes.oneOf(inputConfig.appearance),
|
|
428
438
|
/**
|
|
429
439
|
* ExtendedInput size
|
|
430
440
|
*/
|
|
431
|
-
inputSize:
|
|
441
|
+
inputSize: PropTypes.oneOf(inputConfig.size),
|
|
432
442
|
/**
|
|
433
443
|
* ExtendedInput corner radius
|
|
434
444
|
*/
|
|
435
|
-
cornerRadius:
|
|
445
|
+
cornerRadius: PropTypes.oneOf(inputConfig.cornerRadius),
|
|
436
446
|
/**
|
|
437
447
|
* Will make ExtendedInput readonly when set to "true"
|
|
438
448
|
*/
|
|
439
|
-
readOnly:
|
|
449
|
+
readOnly: PropTypes.bool,
|
|
440
450
|
/**
|
|
441
451
|
* How to display inscription in relation to it's parent in ExtendedInput
|
|
442
452
|
*/
|
|
443
|
-
flexibility:
|
|
453
|
+
flexibility: PropTypes.oneOf(inputConfig.flexibility),
|
|
444
454
|
/**
|
|
445
455
|
* This prop will only applied once as defaultState for "value" when ExtendedInput mounts.
|
|
446
456
|
* Note that specifying this prop is not mean controlling it.
|
|
447
457
|
*/
|
|
448
|
-
defaultValue:
|
|
458
|
+
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
449
459
|
/**
|
|
450
460
|
* Shows an "Icon" to remove ExtendedInput's value
|
|
451
461
|
*/
|
|
452
|
-
canClear:
|
|
462
|
+
canClear: PropTypes.bool,
|
|
453
463
|
/**
|
|
454
464
|
* Fires an event on clear "Icon" click((element: Element) => void)
|
|
455
465
|
*/
|
|
456
|
-
onClear:
|
|
466
|
+
onClear: PropTypes.func,
|
|
457
467
|
/**
|
|
458
468
|
* Fires an event on ExtendedInput change((event: Event) => void)
|
|
459
469
|
*/
|
|
460
|
-
onChange:
|
|
470
|
+
onChange: PropTypes.func,
|
|
461
471
|
/**
|
|
462
472
|
* Specify a label for ExtendedInput
|
|
463
473
|
*/
|
|
464
|
-
label:
|
|
474
|
+
label: PropTypes.string,
|
|
465
475
|
/**
|
|
466
476
|
* Specify a "label" appearance
|
|
467
477
|
*/
|
|
468
|
-
labelAppearance:
|
|
478
|
+
labelAppearance: PropTypes.oneOf(inputConfig.labelAppearance),
|
|
469
479
|
/**
|
|
470
480
|
* Will add an additional description field
|
|
471
481
|
*/
|
|
472
|
-
description:
|
|
482
|
+
description: PropTypes.node,
|
|
473
483
|
/**
|
|
474
484
|
* Property is needed for "Dropdown" organism usage
|
|
475
485
|
*/
|
|
476
|
-
isDropdown:
|
|
486
|
+
isDropdown: PropTypes.bool,
|
|
477
487
|
/**
|
|
478
488
|
* Fires an event on ExtendInput <input /> click((event: Event => void))
|
|
479
489
|
*/
|
|
480
|
-
onClick:
|
|
490
|
+
onClick: PropTypes.func,
|
|
481
491
|
/**
|
|
482
492
|
* Typing will be blocked when set to "true". Note design is different from "readonly" prop's design
|
|
483
493
|
*/
|
|
484
|
-
writeProtected:
|
|
494
|
+
writeProtected: PropTypes.bool,
|
|
485
495
|
/**
|
|
486
496
|
* Input field maximum value
|
|
487
497
|
*/
|
|
488
|
-
max:
|
|
498
|
+
max: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
489
499
|
/**
|
|
490
500
|
* Input field minimum value
|
|
491
501
|
*/
|
|
492
|
-
min:
|
|
502
|
+
min: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
493
503
|
/**
|
|
494
504
|
* Callback fires when input is focused
|
|
495
505
|
*/
|
|
496
|
-
onFocus:
|
|
506
|
+
onFocus: PropTypes.func,
|
|
497
507
|
/**
|
|
498
508
|
* Callback fires when input loose focus
|
|
499
509
|
*/
|
|
500
|
-
onBlur:
|
|
510
|
+
onBlur: PropTypes.func,
|
|
501
511
|
/**
|
|
502
512
|
* Callback fires when clicked the icon </br>
|
|
503
513
|
* as a first parameter passed native event </br>
|
|
504
514
|
* as a second parameter passed is blur function </br>
|
|
505
515
|
* initiated by icon click
|
|
506
516
|
*/
|
|
507
|
-
onIconClick:
|
|
517
|
+
onIconClick: PropTypes.func,
|
|
508
518
|
/**
|
|
509
519
|
* Define is input required or no.
|
|
510
520
|
*/
|
|
511
|
-
required:
|
|
521
|
+
required: PropTypes.bool,
|
|
512
522
|
/**
|
|
513
523
|
* The switch between mobile and desktop version
|
|
514
524
|
*/
|
|
515
|
-
screenType:
|
|
525
|
+
screenType: PropTypes.oneOf(screenTypes),
|
|
516
526
|
/**
|
|
517
527
|
* Define is need input info icon required.
|
|
518
528
|
*/
|
|
519
|
-
withInfoIcon:
|
|
529
|
+
withInfoIcon: PropTypes.bool,
|
|
520
530
|
/**
|
|
521
531
|
* ExtendedInput info icon title.
|
|
522
532
|
*/
|
|
523
|
-
infoIconTitle:
|
|
533
|
+
infoIconTitle: PropTypes.string,
|
|
524
534
|
/**
|
|
525
535
|
* Max Length of input Value
|
|
526
536
|
*/
|
|
527
|
-
maxLength:
|
|
537
|
+
maxLength: PropTypes.number,
|
|
528
538
|
/**
|
|
529
539
|
* Show Remaining Length of input value, works only with maxLength
|
|
530
540
|
*/
|
|
531
|
-
showRemainingLength:
|
|
541
|
+
showRemainingLength: PropTypes.bool,
|
|
532
542
|
/**
|
|
533
543
|
* Decoration that can be added to the inner input field at the start
|
|
534
544
|
*/
|
|
535
|
-
startAdornment:
|
|
545
|
+
startAdornment: PropTypes.oneOfType([PropTypes.element, PropTypes.string, PropTypes.number, PropTypes.node]),
|
|
536
546
|
/**
|
|
537
547
|
* Decoration that can be added to the inner input field at the end
|
|
538
548
|
*/
|
|
539
|
-
endAdornment:
|
|
549
|
+
endAdornment: PropTypes.oneOfType([PropTypes.element, PropTypes.string, PropTypes.number, PropTypes.node])
|
|
540
550
|
};
|
|
541
551
|
ExtendedInput.defaultProps = {
|
|
542
552
|
step: 1,
|
package/Form/index.js
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import 'prop-types';
|
|
3
|
+
import FormContainer from '../FormContainer/index.js';
|
|
4
|
+
export { default as FormableMultiSelectDropdown } from '../FormableMultiSelectDropdown/index.js';
|
|
5
|
+
export { default as FormableNumberInput } from '../FormableNumberInput/index.js';
|
|
6
|
+
export { default as FormableDatePicker } from '../FormableDatePicker/index.js';
|
|
7
|
+
export { default as FormableTextInput } from '../FormableTextInput/index.js';
|
|
8
|
+
export { default as FormableDropdown } from '../FormableDropdown/index.js';
|
|
9
|
+
export { default as FormableCheckbox } from '../FormableCheckbox/index.js';
|
|
10
|
+
export { default as FormableUploader } from '../FormableUploader/index.js';
|
|
11
|
+
export { default as FormableSwitcher } from '../FormableSwitcher/index.js';
|
|
12
|
+
export { default as FormableEditor } from '../FormableEditor/index.js';
|
|
13
|
+
export { default as FormableRadio } from '../FormableRadio/index.js';
|
|
14
|
+
export { F as FormableHOC } from '../FormableHOC-55263162.js';
|
|
15
|
+
import '../_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
16
|
+
import '../index-a0e4e333.js';
|
|
17
|
+
import '../dateValidation-67caec66.js';
|
|
18
|
+
import '../_commonjsHelpers-24198af3.js';
|
|
19
|
+
import 'react-dom';
|
|
20
|
+
import '../Paper/index.js';
|
|
21
|
+
import '../style-inject.es-746bb8ed.js';
|
|
22
|
+
import '../Button/index.js';
|
|
23
|
+
import '../index-6ff23041.js';
|
|
24
|
+
import '../Icon/index.js';
|
|
25
|
+
import '../index-262edd7a.js';
|
|
26
|
+
import '../ValidatableMultiSelectDropdown/index.js';
|
|
27
|
+
import '../hooks/useMount.js';
|
|
28
|
+
import '../configs-fed6ac34.js';
|
|
29
|
+
import '../index-34e47647.js';
|
|
30
|
+
import '../objectWithoutPropertiesLoose-d8a4a68c.js';
|
|
31
|
+
import '../react-lifecycles-compat.es-6e1f3768.js';
|
|
32
|
+
import '../clsx.m-2bb6df4b.js';
|
|
33
|
+
import '../hooks/useClick.js';
|
|
34
|
+
import '../hooks/useKeyDown.js';
|
|
35
|
+
import '../hooks/useDeviceType.js';
|
|
36
|
+
import '../hooks/useWindowSize.js';
|
|
37
|
+
import '../hooks/useClickOutside.js';
|
|
38
|
+
import '../hooks/useUpdatableRef.js';
|
|
39
|
+
import '../hooks/useForceUpdate.js';
|
|
40
|
+
import '../hooks/useEllipsisDetection.js';
|
|
41
|
+
import '../BusyLoader/index.js';
|
|
42
|
+
import '../Empty/index.js';
|
|
43
|
+
import '../index-462461c0.js';
|
|
44
|
+
import '../index-122432cd.js';
|
|
45
|
+
import '../Scrollbar/index.js';
|
|
46
|
+
import '../GeneUIProvider/index.js';
|
|
47
|
+
import '../debounce-4419bc2f.js';
|
|
48
|
+
import '../Tooltip/index.js';
|
|
49
|
+
import '../Popover-f4d1cac0.js';
|
|
50
|
+
import '../ExtendedInput/index.js';
|
|
51
|
+
import '../SuggestionList/index.js';
|
|
52
|
+
import '../config-0ca92874.js';
|
|
53
|
+
import '../Checkbox/index.js';
|
|
54
|
+
import '../checkboxRadioSwitcher-5b69d7bd.js';
|
|
55
|
+
import '../guid-8ddf77b3.js';
|
|
56
|
+
import '../index-2ad83e03.js';
|
|
57
|
+
import '../Tag/index.js';
|
|
58
|
+
import '../ValidatableNumberInput/index.js';
|
|
59
|
+
import '../ValidatableDatePicker/index.js';
|
|
60
|
+
import '../DatePickerInput/index.js';
|
|
61
|
+
import '../DatePicker/index.js';
|
|
62
|
+
import '../localization-4ba17032.js';
|
|
63
|
+
import '../checkTimeValidation-e56771be.js';
|
|
64
|
+
import '../ValidatableTextInput/index.js';
|
|
65
|
+
import '../ValidatableDropdown/index.js';
|
|
66
|
+
import '../ValidatableCheckbox/index.js';
|
|
67
|
+
import '../ValidatableUploader/index.js';
|
|
68
|
+
import '../Uploader/index.js';
|
|
69
|
+
import '../Grid/index.js';
|
|
70
|
+
import '../hooks/useWidth.js';
|
|
71
|
+
import '../hooks/useImgDownload.js';
|
|
72
|
+
import '../Image/index.js';
|
|
73
|
+
import '../ValidatableSwitcher/index.js';
|
|
74
|
+
import '../Switcher/index.js';
|
|
75
|
+
import '../Editor/index.js';
|
|
76
|
+
import '../index-45eafea6.js';
|
|
77
|
+
import '../ValidatableRadio/index.js';
|
|
78
|
+
import '../RadioGroup/index.js';
|
|
79
|
+
import '../Radio/index.js';
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
export { FormContainer as default };
|