@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
package/index.js
CHANGED
|
@@ -1,128 +1,152 @@
|
|
|
1
|
-
export { default as TextLink } from './TextLink.js';
|
|
2
|
-
export { default as Button } from './Button.js';
|
|
3
|
-
export { default as Label } from './Label.js';
|
|
4
|
-
export { default as Icon } from './Icon.js';
|
|
5
|
-
export { default as Switcher } from './Switcher.js';
|
|
6
|
-
export { default as Divider } from './Divider.js';
|
|
7
|
-
export { default as Radio } from './Radio.js';
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as
|
|
13
|
-
export {
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export { default as
|
|
21
|
-
export { default as
|
|
22
|
-
export { default as
|
|
23
|
-
export { default as
|
|
24
|
-
export { default as
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export { default as
|
|
32
|
-
export { default as
|
|
33
|
-
export { default as
|
|
34
|
-
export { default as
|
|
35
|
-
export {
|
|
36
|
-
export { default as
|
|
37
|
-
export { default as
|
|
38
|
-
export { default as
|
|
39
|
-
export { default as
|
|
40
|
-
export { default as
|
|
41
|
-
export { default as
|
|
42
|
-
export { default as
|
|
43
|
-
export { default as
|
|
44
|
-
export { default as
|
|
45
|
-
export { default as
|
|
46
|
-
export { default as
|
|
47
|
-
export { default as
|
|
48
|
-
export { default as
|
|
49
|
-
|
|
50
|
-
export {
|
|
51
|
-
export { default as
|
|
52
|
-
export { default as
|
|
53
|
-
export {
|
|
54
|
-
export { default as
|
|
55
|
-
export { default as
|
|
56
|
-
export {
|
|
57
|
-
export { default as
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
60
|
-
export { default as
|
|
61
|
-
export { default as
|
|
62
|
-
export { default as
|
|
63
|
-
export { default as
|
|
64
|
-
export { default as
|
|
65
|
-
export { default as
|
|
66
|
-
export { default as
|
|
67
|
-
export { default as
|
|
68
|
-
export { default as
|
|
69
|
-
export { default as
|
|
70
|
-
export { default as
|
|
71
|
-
export { default as
|
|
72
|
-
export { default as
|
|
73
|
-
export { default as
|
|
74
|
-
export { default as
|
|
75
|
-
export { default as
|
|
76
|
-
export {
|
|
77
|
-
export { default as
|
|
78
|
-
export { default as
|
|
79
|
-
export { default as
|
|
80
|
-
export { default as
|
|
81
|
-
export { default as
|
|
82
|
-
export { default as
|
|
83
|
-
export { default as
|
|
84
|
-
export {
|
|
85
|
-
export {
|
|
86
|
-
export {
|
|
1
|
+
export { default as TextLink } from './TextLink/index.js';
|
|
2
|
+
export { default as Button } from './Button/index.js';
|
|
3
|
+
export { default as Label } from './Label/index.js';
|
|
4
|
+
export { default as Icon } from './Icon/index.js';
|
|
5
|
+
export { default as Switcher } from './Switcher/index.js';
|
|
6
|
+
export { default as Divider } from './Divider/index.js';
|
|
7
|
+
export { default as Radio } from './Radio/index.js';
|
|
8
|
+
export { default as Portal } from './Portal/index.js';
|
|
9
|
+
export { default as Badge } from './Badge/index.js';
|
|
10
|
+
export { default as BusyLoader } from './BusyLoader/index.js';
|
|
11
|
+
export { default as ModuleTitle } from './ModuleTitle/index.js';
|
|
12
|
+
export { default as SkeletonLoader } from './SkeletonLoader/index.js';
|
|
13
|
+
export { default as Scrollbar } from './Scrollbar/index.js';
|
|
14
|
+
export { default as Time } from './Time/index.js';
|
|
15
|
+
export { default as Empty } from './Empty/index.js';
|
|
16
|
+
export { default as Popover } from './Popover/index.js';
|
|
17
|
+
export { P as PopoverV2 } from './index-462461c0.js';
|
|
18
|
+
export { default as Title } from './Title/index.js';
|
|
19
|
+
export { default as Image } from './Image/index.js';
|
|
20
|
+
export { default as KeyValue } from './KeyValue/index.js';
|
|
21
|
+
export { default as Option } from './Option/index.js';
|
|
22
|
+
export { default as ImagePreview } from './ImagePreview/index.js';
|
|
23
|
+
export { default as QRCode } from './QRCode/index.js';
|
|
24
|
+
export { default as Paper, alignItems, cornersRadius, justifyContents, paperDirections, paperWraps } from './Paper/index.js';
|
|
25
|
+
export { default as Avatar } from './Avatar/index.js';
|
|
26
|
+
export { default as LinkButton } from './LinkButton/index.js';
|
|
27
|
+
export { Col, Row } from './Grid/index.js';
|
|
28
|
+
export { Tab, Tabs } from './Tabs/index.js';
|
|
29
|
+
export { Step, Steps } from './Steps/index.js';
|
|
30
|
+
export { Timeline, TimelineItem, timelineAppearances, timelineColors } from './Timeline/index.js';
|
|
31
|
+
export { default as RadioGroup } from './RadioGroup/index.js';
|
|
32
|
+
export { default as Checkbox } from './Checkbox/index.js';
|
|
33
|
+
export { default as Card } from './Card/index.js';
|
|
34
|
+
export { default as Tag } from './Tag/index.js';
|
|
35
|
+
export { default as Alert, alertTypes } from './Alert/index.js';
|
|
36
|
+
export { default as Tooltip } from './Tooltip/index.js';
|
|
37
|
+
export { default as Range } from './Range/index.js';
|
|
38
|
+
export { default as Slider } from './Slider/index.js';
|
|
39
|
+
export { default as Pagination } from './Pagination/index.js';
|
|
40
|
+
export { default as ExtendedInput } from './ExtendedInput/index.js';
|
|
41
|
+
export { default as ValidatableDropdown } from './ValidatableDropdown/index.js';
|
|
42
|
+
export { default as MultiSelectDropdownField } from './ValidatableMultiSelectDropdown/index.js';
|
|
43
|
+
export { default as Editor, default as ValidatableEditor } from './Editor/index.js';
|
|
44
|
+
export { default as ValidatableUploader } from './ValidatableUploader/index.js';
|
|
45
|
+
export { default as ValidatableRadio } from './ValidatableRadio/index.js';
|
|
46
|
+
export { default as ValidatableCheckbox } from './ValidatableCheckbox/index.js';
|
|
47
|
+
export { default as ValidatableSwitcher } from './ValidatableSwitcher/index.js';
|
|
48
|
+
export { default as ValidatableNumberInput } from './ValidatableNumberInput/index.js';
|
|
49
|
+
export { default as ValidatableTextInput } from './ValidatableTextInput/index.js';
|
|
50
|
+
export { default as ValidatableDatePicker } from './ValidatableDatePicker/index.js';
|
|
51
|
+
export { default as Notification, notificationTypes } from './Notification/index.js';
|
|
52
|
+
export { default as Modal } from './Modal/index.js';
|
|
53
|
+
export { Collapse, Panel } from './Collapse/index.js';
|
|
54
|
+
export { default as Status, statusIconTypes } from './Status/index.js';
|
|
55
|
+
export { default as Menu } from './Menu/index.js';
|
|
56
|
+
export { default as Overlay } from './Overlay/index.js';
|
|
57
|
+
export { default as Profile } from './Profile/index.js';
|
|
58
|
+
export { AreaChart, BarChart, ColumnChart, ColumnRangeChart, DalColumnChart, DonutChart, FunnelChart, HeatMapChart, LineChart, MapChart, PieChart, ScatterChart, StackedBarChart, StackedColumnChart, TreeMapChart } from './Charts/index.js';
|
|
59
|
+
export { default as Widget } from './Widget/index.js';
|
|
60
|
+
export { default as Progress } from './Progress/index.js';
|
|
61
|
+
export { default as MobileNavigation } from './MobileNavigation/index.js';
|
|
62
|
+
export { default as MobilePopup } from './MobilePopup/index.js';
|
|
63
|
+
export { default as Uploader } from './Uploader/index.js';
|
|
64
|
+
export { default as Products } from './Products/index.js';
|
|
65
|
+
export { default as Search } from './Search/index.js';
|
|
66
|
+
export { default as DatePickerInput } from './DatePickerInput/index.js';
|
|
67
|
+
export { default as Holder } from './Holder/index.js';
|
|
68
|
+
export { default as Breadcrumb } from './Breadcrumb/index.js';
|
|
69
|
+
export { default as Section } from './Section/index.js';
|
|
70
|
+
export { default as TimePicker } from './TimePicker/index.js';
|
|
71
|
+
export { default as ColorPicker } from './ColorPicker/index.js';
|
|
72
|
+
export { default as NavigationMenu } from './NavigationMenu/index.js';
|
|
73
|
+
export { default as ComboBox } from './ComboBox/index.js';
|
|
74
|
+
export { default as Textarea } from './Textarea/index.js';
|
|
75
|
+
export { default as Counter } from './Counter/index.js';
|
|
76
|
+
export { default as AdvancedSearch } from './AdvancedSearch/index.js';
|
|
77
|
+
export { default as FormableMultiSelectDropdown } from './FormableMultiSelectDropdown/index.js';
|
|
78
|
+
export { default as FormableNumberInput } from './FormableNumberInput/index.js';
|
|
79
|
+
export { default as FormableDatePicker } from './FormableDatePicker/index.js';
|
|
80
|
+
export { default as FormableTextInput } from './FormableTextInput/index.js';
|
|
81
|
+
export { default as FormableDropdown } from './FormableDropdown/index.js';
|
|
82
|
+
export { default as FormableCheckbox } from './FormableCheckbox/index.js';
|
|
83
|
+
export { default as FormableUploader } from './FormableUploader/index.js';
|
|
84
|
+
export { default as FormableSwitcher } from './FormableSwitcher/index.js';
|
|
85
|
+
export { default as FormableEditor } from './FormableEditor/index.js';
|
|
86
|
+
export { default as FormableRadio } from './FormableRadio/index.js';
|
|
87
|
+
export { F as FormableHOC } from './FormableHOC-55263162.js';
|
|
88
|
+
export { default as Toaster, toasterPositions } from './Toaster/index.js';
|
|
89
|
+
export { default as SearchWithDropdown } from './SearchWithDropdown/index.js';
|
|
90
|
+
export { default as CheckboxGroupWithSearch } from './CheckboxGroupWithSearch/index.js';
|
|
91
|
+
export { default as CheckboxGroup } from './CheckboxGroup/index.js';
|
|
92
|
+
export { default as Overspread } from './Overspread/index.js';
|
|
93
|
+
export { default as DatePicker } from './DatePicker/index.js';
|
|
94
|
+
export { default as DateFilter } from './DateFilter/index.js';
|
|
95
|
+
export { ComboTable, PaginationSelector, PaperWrapper, TableContainer, TableHeader, TablePagination, TableTitle, WithHeader, WithTitle } from './TableCompositions/index.js';
|
|
96
|
+
export { D as Dropdown } from './index-34e47647.js';
|
|
97
|
+
export { T as Table } from './index-11eea761.js';
|
|
98
|
+
export { CardList, WrappedCardList } from './CardList/index.js';
|
|
87
99
|
import 'react';
|
|
88
|
-
|
|
89
|
-
export { default as
|
|
90
|
-
export {
|
|
91
|
-
export {
|
|
92
|
-
export { default as
|
|
93
|
-
export {
|
|
94
|
-
|
|
100
|
+
import 'prop-types';
|
|
101
|
+
export { default as Form } from './FormContainer/index.js';
|
|
102
|
+
export { default as TransferList } from './TransferList/index.js';
|
|
103
|
+
export { R as RichEditor } from './RichEditor-8b0f7ccd.js';
|
|
104
|
+
export { default as Drawer } from './Drawer/index.js';
|
|
105
|
+
export { default as ActionableList } from './ActionableList/index.js';
|
|
106
|
+
export { GeneUIDesignSystemContext, default as GeneUIProvider } from './GeneUIProvider/index.js';
|
|
107
|
+
export { default as useWidth } from './hooks/useWidth.js';
|
|
108
|
+
export { default as useMount } from './hooks/useMount.js';
|
|
109
|
+
export { default as useClick } from './hooks/useClick.js';
|
|
110
|
+
export { default as useToggle } from './hooks/useToggle.js';
|
|
111
|
+
export { default as useUpdate } from './hooks/useUpdate.js';
|
|
112
|
+
export { default as usePrevious } from './hooks/usePrevious.js';
|
|
113
|
+
export { default as useKeyDown } from './hooks/useKeyDown.js';
|
|
114
|
+
export { default as useForceUpdate } from './hooks/useForceUpdate.js';
|
|
115
|
+
export { default as useDeviceType } from './hooks/useDeviceType.js';
|
|
116
|
+
export { default as useWindowSize } from './hooks/useWindowSize.js';
|
|
117
|
+
export { default as useClickOutside } from './hooks/useClickOutside.js';
|
|
118
|
+
export { default as useDebounce } from './hooks/useDebounceHook.js';
|
|
119
|
+
export { default as useThrottle } from './hooks/useThrottle.js';
|
|
120
|
+
export { default as useMutationObserver } from './hooks/useMutationObserver.js';
|
|
121
|
+
export { default as useUpdatableRef } from './hooks/useUpdatableRef.js';
|
|
122
|
+
export { default as useDidMount } from './hooks/useDidMount.js';
|
|
123
|
+
export { default as useBodyScroll } from './hooks/useBodyScroll.js';
|
|
124
|
+
export { default as useImgDownload } from './hooks/useImgDownload.js';
|
|
125
|
+
export { default as useEllipsisDetection } from './hooks/useEllipsisDetection.js';
|
|
95
126
|
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
96
127
|
import './index-6ff23041.js';
|
|
97
128
|
import './style-inject.es-746bb8ed.js';
|
|
98
|
-
import './configs-
|
|
99
|
-
import './index-
|
|
129
|
+
import './configs-fed6ac34.js';
|
|
130
|
+
import './index-a0e4e333.js';
|
|
100
131
|
import './dateValidation-67caec66.js';
|
|
101
132
|
import './_commonjsHelpers-24198af3.js';
|
|
102
133
|
import 'react-dom';
|
|
103
|
-
import './useKeyDown-38102ae7.js';
|
|
104
134
|
import './checkboxRadioSwitcher-5b69d7bd.js';
|
|
105
135
|
import './guid-8ddf77b3.js';
|
|
106
|
-
import './configs.js';
|
|
107
|
-
import './useEllipsisDetection-ef536015.js';
|
|
108
|
-
import './useMount-6fef51a5.js';
|
|
109
|
-
import './objectWithoutPropertiesLoose-299691d8.js';
|
|
110
|
-
import './rangeAndSlider-20599da4.js';
|
|
111
|
-
import './clsx.m-2bb6df4b.js';
|
|
112
|
-
import './useDeviceType-dd51db38.js';
|
|
113
|
-
import './useWindowSize-80369d76.js';
|
|
114
|
-
import './useClickOutside-5183e396.js';
|
|
115
|
-
import './index-897d8240.js';
|
|
116
|
-
import './index-2030e31c.js';
|
|
117
|
-
import './index-b7a33c58.js';
|
|
118
136
|
import './localization-4ba17032.js';
|
|
119
137
|
import './Popover-f4d1cac0.js';
|
|
120
138
|
import './index-122432cd.js';
|
|
121
139
|
import './debounce-4419bc2f.js';
|
|
122
|
-
import './
|
|
140
|
+
import './rangeAndSlider-0301a458.js';
|
|
141
|
+
import './index-45eafea6.js';
|
|
142
|
+
import './react-lifecycles-compat.es-6e1f3768.js';
|
|
143
|
+
import './SuggestionList/index.js';
|
|
144
|
+
import './config-0ca92874.js';
|
|
123
145
|
import './checkTimeValidation-e56771be.js';
|
|
124
|
-
import './LinkButton.js';
|
|
125
146
|
import './index-262edd7a.js';
|
|
126
|
-
import './
|
|
127
|
-
import './
|
|
128
|
-
import './
|
|
147
|
+
import './index-2ad83e03.js';
|
|
148
|
+
import './objectWithoutPropertiesLoose-d8a4a68c.js';
|
|
149
|
+
import './clsx.m-2bb6df4b.js';
|
|
150
|
+
import './CellMeasurerCache-3741d716.js';
|
|
151
|
+
import './index-b1e429a7.js';
|
|
152
|
+
import './react-beautiful-dnd.esm-04c14563.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './lib/atoms/Button/index.mobile';
|
|
2
|
+
export * from './lib/atoms/Divider/index.mobile';
|
|
3
|
+
export * from './lib/atoms/Icon/index.mobile';
|
|
4
|
+
export * from './lib/atoms/Label/index.mobile';
|
|
5
|
+
export * from './lib/atoms/Radio/index.mobile';
|
|
6
|
+
export * from './lib/atoms/Switcher/index.mobile';
|
|
7
|
+
export * from './lib/molecules/Alert/index.mobile';
|
|
8
|
+
export * from './lib/molecules/Checkbox/index.mobile';
|
|
9
|
+
export * from './lib/molecules/ExtendedInput/index.mobile';
|
|
10
|
+
export * from './lib/molecules/Grid/index.mobile';
|
|
11
|
+
export * from './lib/molecules/Notification/index.mobile';
|
|
12
|
+
export * from './lib/molecules/Pagination/index.mobile';
|
|
13
|
+
export * from './lib/molecules/RadioGroup/index.mobile';
|
|
14
|
+
export * from './lib/molecules/ValidatableElements/Elements/index.mobile';
|
|
15
|
+
export * from './lib/molecules/Counter/index.mobile';
|
|
16
|
+
export * from './lib/organisms/CheckboxGroup/index.mobile';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import './Avatar.scss';
|
|
3
|
+
interface IAvatarProps {
|
|
4
|
+
/**
|
|
5
|
+
* Background image source
|
|
6
|
+
*/
|
|
7
|
+
src?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The property will show icon. This property will work when "src" is not specified.
|
|
10
|
+
*/
|
|
11
|
+
icon?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The property will show first two letters in upper case. This will work when "src" or "icon" are not specified.
|
|
14
|
+
*/
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Avatar size
|
|
18
|
+
*/
|
|
19
|
+
size?: 'small' | 'default' | 'medium' | 'big';
|
|
20
|
+
/**
|
|
21
|
+
* Avatar color
|
|
22
|
+
*/
|
|
23
|
+
color?: 'default' | 'green' | 'red';
|
|
24
|
+
/**
|
|
25
|
+
* Avatar shape
|
|
26
|
+
*/
|
|
27
|
+
shape?: 'circle' | 'square';
|
|
28
|
+
/**
|
|
29
|
+
* Handle click event on avatar component((event: Event) => void 0).
|
|
30
|
+
*/
|
|
31
|
+
onClick?: (event: MouseEvent) => void;
|
|
32
|
+
}
|
|
33
|
+
declare const Avatar: React.FC<IAvatarProps>;
|
|
34
|
+
export { IAvatarProps, Avatar as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IAvatarProps, default as default } from './Avatar';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './LinkButton.scss';
|
|
3
|
+
interface ILinkButtonProps {
|
|
4
|
+
/**
|
|
5
|
+
* Href for <code>\<a\></code> tag if you don't pass instead of <code>\<a\></code> tag will be <code>\<button\></code> tag .
|
|
6
|
+
*/
|
|
7
|
+
href?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Fires event when user click on LinkButton.
|
|
10
|
+
* <br>
|
|
11
|
+
* <code>(event: Event) => void </code>
|
|
12
|
+
*/
|
|
13
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Fires event when the element has been pressed.
|
|
16
|
+
* <br>
|
|
17
|
+
* <code>(event: Event) => void</code>
|
|
18
|
+
*/
|
|
19
|
+
onMouseDown?: (event: React.MouseEvent) => void;
|
|
20
|
+
/**
|
|
21
|
+
* The LinkButton additional className.
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Any valid React node.
|
|
26
|
+
*/
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Icon to render before the LinkButton. Should be an icon component's type.
|
|
30
|
+
*/
|
|
31
|
+
iconBefore?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Icon to render after the LinkButton. Should be an icon component's type.
|
|
34
|
+
*/
|
|
35
|
+
iconAfter?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Makes the LinkButton disabled.
|
|
38
|
+
*/
|
|
39
|
+
isDisabled?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* aria-label for button or LinkButton.
|
|
42
|
+
*/
|
|
43
|
+
ariaLabel?: string;
|
|
44
|
+
}
|
|
45
|
+
declare const LinkButton: React.FC<ILinkButtonProps>;
|
|
46
|
+
export { ILinkButtonProps, LinkButton as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ILinkButtonProps, default as default } from './LinkButton';
|
package/{objectWithoutPropertiesLoose-299691d8.js → objectWithoutPropertiesLoose-d8a4a68c.js}
RENAMED
|
@@ -8,20 +8,20 @@ function _typeof(o) {
|
|
|
8
8
|
}, _typeof(o);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
function
|
|
12
|
-
if (
|
|
13
|
-
var
|
|
14
|
-
if (
|
|
15
|
-
var
|
|
16
|
-
if (
|
|
11
|
+
function toPrimitive(t, r) {
|
|
12
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
13
|
+
var e = t[Symbol.toPrimitive];
|
|
14
|
+
if (void 0 !== e) {
|
|
15
|
+
var i = e.call(t, r || "default");
|
|
16
|
+
if ("object" != _typeof(i)) return i;
|
|
17
17
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
18
18
|
}
|
|
19
|
-
return (
|
|
19
|
+
return ("string" === r ? String : Number)(t);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
function
|
|
23
|
-
var
|
|
24
|
-
return _typeof(
|
|
22
|
+
function toPropertyKey(t) {
|
|
23
|
+
var i = toPrimitive(t, "string");
|
|
24
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
function _setPrototypeOf(o, p) {
|
|
@@ -33,7 +33,7 @@ function _setPrototypeOf(o, p) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
function _defineProperty(obj, key, value) {
|
|
36
|
-
key =
|
|
36
|
+
key = toPropertyKey(key);
|
|
37
37
|
if (key in obj) {
|
|
38
38
|
Object.defineProperty(obj, key, {
|
|
39
39
|
value: value,
|
|
@@ -75,4 +75,4 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
75
75
|
return target;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
export { _defineProperty as _, _setPrototypeOf as a, _objectWithoutPropertiesLoose as b, _extends as c,
|
|
78
|
+
export { _defineProperty as _, _setPrototypeOf as a, _objectWithoutPropertiesLoose as b, _extends as c, _typeof as d, toPropertyKey as t };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geneui/components",
|
|
3
3
|
"description": "The Gene UI components library designed for BI tools",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.12.2",
|
|
5
5
|
"author": "SoftConstruct",
|
|
6
6
|
"homepage": "https://github.com/softconstruct/gene-ui-components#readme",
|
|
7
7
|
"repository": {
|
|
@@ -18,18 +18,25 @@
|
|
|
18
18
|
"component-library"
|
|
19
19
|
],
|
|
20
20
|
"main": "index.js",
|
|
21
|
+
"typings": "index.d.ts",
|
|
22
|
+
"sideEffects": [
|
|
23
|
+
"**/*.css",
|
|
24
|
+
"**/*.scss"
|
|
25
|
+
],
|
|
21
26
|
"scripts": {
|
|
22
|
-
"start": "
|
|
23
|
-
"
|
|
27
|
+
"start": "npm run test && storybook dev -p 6006",
|
|
28
|
+
"dev": "concurrently --kill-others -g \"npm:test:watch\" \"npm:start\"",
|
|
29
|
+
"test": "jest --silent --config ./configs/jest.config.js --rootDir ./ --coverage --json --outputFile=./coverage/.jest-test-results.json",
|
|
30
|
+
"test:watch": "npm run test -- --watchAll --json",
|
|
31
|
+
"test-report": "babel-node --config-file ./configs/.babelrc ./scripts/testReport.js",
|
|
24
32
|
"build": "babel-node --config-file ./configs/.babelrc ./scripts/build.js",
|
|
25
33
|
"copy-build-statics-files": "babel-node --config-file ./configs/.babelrc ./scripts/copyFiles.js",
|
|
26
34
|
"bump-up-commit": "babel-node --config-file ./configs/.babelrc ./scripts/postPublish.js",
|
|
27
35
|
"build:watch": "watch 'npm run build' ./src",
|
|
28
|
-
"commit": "git-cz",
|
|
36
|
+
"commit": "cross-env DISABLE_SCOPE_LOWERCASE=true git-cz",
|
|
29
37
|
"changelog": "conventional-changelog -i CHANGELOG.md -s",
|
|
30
38
|
"add-lib-version-to-docs": "babel-node --config-file ./configs/.babelrc ./scripts/addVersionHistory.js",
|
|
31
|
-
"build-storybook": "npm run add-lib-version-to-docs && build
|
|
32
|
-
"publish-lib": "npm run build && cd dist && npm publish",
|
|
39
|
+
"build-storybook": "npm run add-lib-version-to-docs && npm run test && storybook build",
|
|
33
40
|
"semantic-release": "semantic-release --extends ./configs/.releaserc.json --no-ci",
|
|
34
41
|
"create-component": "babel-node --config-file ./configs/.babelrc ./scripts/createComponent.js",
|
|
35
42
|
"find-component-usage": "babel-node --config-file ./configs/.babelrc ./scripts/findComponentUsage.js",
|
|
@@ -54,8 +61,9 @@
|
|
|
54
61
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
55
62
|
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
|
|
56
63
|
"@babel/plugin-syntax-jsx": "^7.18.6",
|
|
57
|
-
"@babel/preset-env": "^7.
|
|
58
|
-
"@babel/preset-react": "^7.
|
|
64
|
+
"@babel/preset-env": "^7.23.6",
|
|
65
|
+
"@babel/preset-react": "^7.23.3",
|
|
66
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
59
67
|
"@commitlint/cli": "^17.1.2",
|
|
60
68
|
"@commitlint/config-conventional": "^17.1.0",
|
|
61
69
|
"@faker-js/faker": "^7.6.0",
|
|
@@ -65,31 +73,38 @@
|
|
|
65
73
|
"@rollup/plugin-image": "^3.0.1",
|
|
66
74
|
"@rollup/plugin-json": "^6.0.0",
|
|
67
75
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
76
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
|
68
77
|
"@semantic-release/changelog": "^6.0.2",
|
|
69
78
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
70
79
|
"@semantic-release/git": "^10.0.1",
|
|
71
80
|
"@semantic-release/npm": "^9.0.1",
|
|
72
81
|
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
73
|
-
"@storybook/addon-a11y": "^6.5
|
|
74
|
-
"@storybook/addon-
|
|
75
|
-
"@storybook/addon-
|
|
76
|
-
"@storybook/addon-viewport": "^6.5
|
|
77
|
-
"@storybook/addons": "^6.
|
|
78
|
-
"@storybook/
|
|
79
|
-
"@storybook/manager-webpack5": "^6.4.22",
|
|
80
|
-
"@storybook/mdx2-csf": "^0.0.3",
|
|
82
|
+
"@storybook/addon-a11y": "^7.6.5",
|
|
83
|
+
"@storybook/addon-essentials": "^7.6.5",
|
|
84
|
+
"@storybook/addon-jest": "^7.6.6",
|
|
85
|
+
"@storybook/addon-viewport": "^7.6.5",
|
|
86
|
+
"@storybook/addons": "^7.6.5",
|
|
87
|
+
"@storybook/blocks": "^7.6.6",
|
|
81
88
|
"@storybook/preset-scss": "^1.0.3",
|
|
82
|
-
"@storybook/react": "^6.
|
|
83
|
-
"@storybook/
|
|
89
|
+
"@storybook/react": "^7.6.5",
|
|
90
|
+
"@storybook/react-docgen-typescript-plugin": "^1.0.6--canary.9.0c3f3b7.0",
|
|
91
|
+
"@storybook/react-webpack5": "^7.6.5",
|
|
92
|
+
"@storybook/theming": "^7.6.5",
|
|
93
|
+
"@types/enzyme-adapter-react-16": "^1.0.9",
|
|
94
|
+
"@types/jest": "^29.5.11",
|
|
84
95
|
"autoprefixer": "^10.4.13",
|
|
96
|
+
"babel-jest": "^29.7.0",
|
|
85
97
|
"babel-loader": "^8.2.5",
|
|
86
98
|
"chalk": "^4.1.2",
|
|
87
99
|
"commitizen": "^4.2.5",
|
|
100
|
+
"concurrently": "^8.2.2",
|
|
88
101
|
"conventional-changelog-cli": "^2.2.2",
|
|
102
|
+
"cross-env": "^7.0.3",
|
|
89
103
|
"css-loader": "^6.7.3",
|
|
90
104
|
"cz-conventional-changelog": "^3.3.0",
|
|
91
105
|
"enzyme": "^3.11.0",
|
|
92
|
-
"enzyme-adapter-react-16": "^1.15.
|
|
106
|
+
"enzyme-adapter-react-16": "^1.15.7",
|
|
107
|
+
"enzyme-to-json": "^3.6.2",
|
|
93
108
|
"eslint": "^8.25.0",
|
|
94
109
|
"eslint-config-airbnb": "^19.0.4",
|
|
95
110
|
"eslint-config-prettier": "^8.5.0",
|
|
@@ -104,7 +119,8 @@
|
|
|
104
119
|
"identity-obj-proxy": "^3.0.0",
|
|
105
120
|
"immutability-helper": "^3.0.1",
|
|
106
121
|
"inquirer": "^8.2.4",
|
|
107
|
-
"jest": "^29.
|
|
122
|
+
"jest": "^29.7.0",
|
|
123
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
108
124
|
"lint-staged": "^13.0.3",
|
|
109
125
|
"metro-react-native-babel-preset": "^0.51.1",
|
|
110
126
|
"open-cli": "^7.1.0",
|
|
@@ -125,17 +141,21 @@
|
|
|
125
141
|
"sass": "^1.55.0",
|
|
126
142
|
"sass-loader": "^13.2.0",
|
|
127
143
|
"semantic-release": "^19.0.5",
|
|
128
|
-
"storybook
|
|
144
|
+
"storybook": "^7.6.5",
|
|
145
|
+
"storybook-dark-mode": "^3.0.3",
|
|
129
146
|
"style-loader": "^3.3.1",
|
|
130
147
|
"stylelint": "^14.14.0",
|
|
131
148
|
"stylelint-config-prettier": "^9.0.3",
|
|
132
149
|
"stylelint-config-standard-scss": "^5.0.0",
|
|
133
150
|
"treeify": "^1.1.0",
|
|
151
|
+
"ts-jest": "^29.1.1",
|
|
152
|
+
"typescript": "^5.3.2",
|
|
134
153
|
"watch": "^1.0.2",
|
|
135
154
|
"webpack": "^5.74.0",
|
|
136
155
|
"webpack-cli": "^4.10.0",
|
|
137
156
|
"webpack-dev-server": "^3.1.14",
|
|
138
|
-
"webpack-node-externals": "^1.7.2"
|
|
157
|
+
"webpack-node-externals": "^1.7.2",
|
|
158
|
+
"yargs": "^17.7.2"
|
|
139
159
|
},
|
|
140
160
|
"dependencies": {
|
|
141
161
|
"classnames": "^2.3.2",
|