@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
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import React__default, { createContext, useRef } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
4
|
+
|
|
5
|
+
var name = "@geneui/components";
|
|
6
|
+
var description = "The Gene UI components library designed for BI tools";
|
|
7
|
+
var version = "2.12.2";
|
|
8
|
+
var author = "SoftConstruct";
|
|
9
|
+
var homepage = "https://github.com/softconstruct/gene-ui-components#readme";
|
|
10
|
+
var repository = {
|
|
11
|
+
type: "git",
|
|
12
|
+
url: "https://github.com/softconstruct/gene-ui-components"
|
|
13
|
+
};
|
|
14
|
+
var bugs = {
|
|
15
|
+
url: "https://github.com/softconstruct/gene-ui-components/issues"
|
|
16
|
+
};
|
|
17
|
+
var keywords = [
|
|
18
|
+
"react",
|
|
19
|
+
"gene-ui",
|
|
20
|
+
"design-system",
|
|
21
|
+
"component-library"
|
|
22
|
+
];
|
|
23
|
+
var main = "index.js";
|
|
24
|
+
var typings = "index.d.ts";
|
|
25
|
+
var sideEffects = [
|
|
26
|
+
"**/*.css",
|
|
27
|
+
"**/*.scss"
|
|
28
|
+
];
|
|
29
|
+
var scripts = {
|
|
30
|
+
start: "npm run test && storybook dev -p 6006",
|
|
31
|
+
dev: "concurrently --kill-others -g \"npm:test:watch\" \"npm:start\"",
|
|
32
|
+
test: "jest --silent --config ./configs/jest.config.js --rootDir ./ --coverage --json --outputFile=./coverage/.jest-test-results.json",
|
|
33
|
+
"test:watch": "npm run test -- --watchAll --json",
|
|
34
|
+
"test-report": "babel-node --config-file ./configs/.babelrc ./scripts/testReport.js",
|
|
35
|
+
build: "babel-node --config-file ./configs/.babelrc ./scripts/build.js",
|
|
36
|
+
"copy-build-statics-files": "babel-node --config-file ./configs/.babelrc ./scripts/copyFiles.js",
|
|
37
|
+
"bump-up-commit": "babel-node --config-file ./configs/.babelrc ./scripts/postPublish.js",
|
|
38
|
+
"build:watch": "watch 'npm run build' ./src",
|
|
39
|
+
commit: "cross-env DISABLE_SCOPE_LOWERCASE=true git-cz",
|
|
40
|
+
changelog: "conventional-changelog -i CHANGELOG.md -s",
|
|
41
|
+
"add-lib-version-to-docs": "babel-node --config-file ./configs/.babelrc ./scripts/addVersionHistory.js",
|
|
42
|
+
"build-storybook": "npm run add-lib-version-to-docs && npm run test && storybook build",
|
|
43
|
+
"semantic-release": "semantic-release --extends ./configs/.releaserc.json --no-ci",
|
|
44
|
+
"create-component": "babel-node --config-file ./configs/.babelrc ./scripts/createComponent.js",
|
|
45
|
+
"find-component-usage": "babel-node --config-file ./configs/.babelrc ./scripts/findComponentUsage.js",
|
|
46
|
+
"format-code": "prettier --config ./configs/.prettierrc --write . --ignore-path ./configs/.prettierignore",
|
|
47
|
+
"lint-styles": "stylelint **/*.{css,scss,sass} --config ./configs/.stylelintrc.json --fix",
|
|
48
|
+
"lint-scripts": "eslint --config ./configs/.eslintrc.json src --ignore-path ./configs/.eslintignore --fix",
|
|
49
|
+
"fix-code-style": "npm run format-code && npm run lint-styles && npm run lint-scripts",
|
|
50
|
+
"analyze-bundle-size": "babel-node --config-file ./configs/.babelrc ./scripts/analyzeBundleSize.js"
|
|
51
|
+
};
|
|
52
|
+
var peerDependencies = {
|
|
53
|
+
"prop-types": "^15.8.1",
|
|
54
|
+
react: "^16.8.1",
|
|
55
|
+
"react-dom": "^16.8.1"
|
|
56
|
+
};
|
|
57
|
+
var devDependencies = {
|
|
58
|
+
"@babel/cli": "^7.19.3",
|
|
59
|
+
"@babel/core": "^7.20.2",
|
|
60
|
+
"@babel/eslint-parser": "^7.19.1",
|
|
61
|
+
"@babel/node": "^7.20.2",
|
|
62
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
63
|
+
"@babel/plugin-proposal-export-default-from": "^7.18.10",
|
|
64
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
65
|
+
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
|
|
66
|
+
"@babel/plugin-syntax-jsx": "^7.18.6",
|
|
67
|
+
"@babel/preset-env": "^7.23.6",
|
|
68
|
+
"@babel/preset-react": "^7.23.3",
|
|
69
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
70
|
+
"@commitlint/cli": "^17.1.2",
|
|
71
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
72
|
+
"@faker-js/faker": "^7.6.0",
|
|
73
|
+
"@rollup/plugin-alias": "^4.0.2",
|
|
74
|
+
"@rollup/plugin-babel": "^6.0.0",
|
|
75
|
+
"@rollup/plugin-commonjs": "^23.0.0",
|
|
76
|
+
"@rollup/plugin-image": "^3.0.1",
|
|
77
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
78
|
+
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
79
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
|
80
|
+
"@semantic-release/changelog": "^6.0.2",
|
|
81
|
+
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
82
|
+
"@semantic-release/git": "^10.0.1",
|
|
83
|
+
"@semantic-release/npm": "^9.0.1",
|
|
84
|
+
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
85
|
+
"@storybook/addon-a11y": "^7.6.5",
|
|
86
|
+
"@storybook/addon-essentials": "^7.6.5",
|
|
87
|
+
"@storybook/addon-jest": "^7.6.6",
|
|
88
|
+
"@storybook/addon-viewport": "^7.6.5",
|
|
89
|
+
"@storybook/addons": "^7.6.5",
|
|
90
|
+
"@storybook/blocks": "^7.6.6",
|
|
91
|
+
"@storybook/preset-scss": "^1.0.3",
|
|
92
|
+
"@storybook/react": "^7.6.5",
|
|
93
|
+
"@storybook/react-docgen-typescript-plugin": "^1.0.6--canary.9.0c3f3b7.0",
|
|
94
|
+
"@storybook/react-webpack5": "^7.6.5",
|
|
95
|
+
"@storybook/theming": "^7.6.5",
|
|
96
|
+
"@types/enzyme-adapter-react-16": "^1.0.9",
|
|
97
|
+
"@types/jest": "^29.5.11",
|
|
98
|
+
autoprefixer: "^10.4.13",
|
|
99
|
+
"babel-jest": "^29.7.0",
|
|
100
|
+
"babel-loader": "^8.2.5",
|
|
101
|
+
chalk: "^4.1.2",
|
|
102
|
+
commitizen: "^4.2.5",
|
|
103
|
+
concurrently: "^8.2.2",
|
|
104
|
+
"conventional-changelog-cli": "^2.2.2",
|
|
105
|
+
"cross-env": "^7.0.3",
|
|
106
|
+
"css-loader": "^6.7.3",
|
|
107
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
108
|
+
enzyme: "^3.11.0",
|
|
109
|
+
"enzyme-adapter-react-16": "^1.15.7",
|
|
110
|
+
"enzyme-to-json": "^3.6.2",
|
|
111
|
+
eslint: "^8.25.0",
|
|
112
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
113
|
+
"eslint-config-prettier": "^8.5.0",
|
|
114
|
+
"eslint-plugin-import": "^2.26.0",
|
|
115
|
+
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
116
|
+
"eslint-plugin-react": "^7.31.11",
|
|
117
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
118
|
+
figlet: "^1.5.2",
|
|
119
|
+
"file-loader": "^6.2.0",
|
|
120
|
+
"git-cz": "^4.9.0",
|
|
121
|
+
husky: "^1.3.1",
|
|
122
|
+
"identity-obj-proxy": "^3.0.0",
|
|
123
|
+
"immutability-helper": "^3.0.1",
|
|
124
|
+
inquirer: "^8.2.4",
|
|
125
|
+
jest: "^29.7.0",
|
|
126
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
127
|
+
"lint-staged": "^13.0.3",
|
|
128
|
+
"metro-react-native-babel-preset": "^0.51.1",
|
|
129
|
+
"open-cli": "^7.1.0",
|
|
130
|
+
ora: "^5.4.1",
|
|
131
|
+
postcss: "^8.4.31",
|
|
132
|
+
"postcss-prefix-selector": "^1.16.0",
|
|
133
|
+
"postcss-url": "^10.1.3",
|
|
134
|
+
prettier: "^2.7.1",
|
|
135
|
+
react: "^16.8.1",
|
|
136
|
+
"react-dom": "^16.8.1",
|
|
137
|
+
"react-test-renderer": "^16.12.0",
|
|
138
|
+
rollup: "^3.1.0",
|
|
139
|
+
"rollup-plugin-peer-deps-external": "^2.2.0",
|
|
140
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
141
|
+
"rollup-plugin-scss": "^4.0.0",
|
|
142
|
+
"rollup-plugin-svg": "^1.0.1",
|
|
143
|
+
"rollup-plugin-visualizer": "^5.8.3",
|
|
144
|
+
sass: "^1.55.0",
|
|
145
|
+
"sass-loader": "^13.2.0",
|
|
146
|
+
"semantic-release": "^19.0.5",
|
|
147
|
+
storybook: "^7.6.5",
|
|
148
|
+
"storybook-dark-mode": "^3.0.3",
|
|
149
|
+
"style-loader": "^3.3.1",
|
|
150
|
+
stylelint: "^14.14.0",
|
|
151
|
+
"stylelint-config-prettier": "^9.0.3",
|
|
152
|
+
"stylelint-config-standard-scss": "^5.0.0",
|
|
153
|
+
treeify: "^1.1.0",
|
|
154
|
+
"ts-jest": "^29.1.1",
|
|
155
|
+
typescript: "^5.3.2",
|
|
156
|
+
watch: "^1.0.2",
|
|
157
|
+
webpack: "^5.74.0",
|
|
158
|
+
"webpack-cli": "^4.10.0",
|
|
159
|
+
"webpack-dev-server": "^3.1.14",
|
|
160
|
+
"webpack-node-externals": "^1.7.2",
|
|
161
|
+
yargs: "^17.7.2"
|
|
162
|
+
};
|
|
163
|
+
var dependencies = {
|
|
164
|
+
classnames: "^2.3.2",
|
|
165
|
+
dayjs: "^1.11.5",
|
|
166
|
+
"draft-js": "^0.11.7",
|
|
167
|
+
"draftjs-to-html": "^0.9.1",
|
|
168
|
+
"file-saver": "^2.0.5",
|
|
169
|
+
highcharts: "^10.2.1",
|
|
170
|
+
"highcharts-react-official": "^3.1.0",
|
|
171
|
+
"html-to-draftjs": "^1.5.0",
|
|
172
|
+
i: "^0.3.7",
|
|
173
|
+
immer: "^9.0.18",
|
|
174
|
+
"jodit-react": "^1.3.23",
|
|
175
|
+
npm: "^9.4.1",
|
|
176
|
+
"pure-react-carousel": "^1.30.1",
|
|
177
|
+
"qrcode.react": "^3.1.0",
|
|
178
|
+
"rc-slider": "^8.6.9",
|
|
179
|
+
"react-beautiful-dnd": "^13.1.1",
|
|
180
|
+
"react-colorful": "^5.6.1",
|
|
181
|
+
"react-custom-scrollbars": "^4.2.1",
|
|
182
|
+
"react-dnd": "^16.0.1",
|
|
183
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
184
|
+
"react-draft-wysiwyg": "^1.15.0",
|
|
185
|
+
"react-fast-compare": "^3.2.0",
|
|
186
|
+
"react-is": "^17.0.2",
|
|
187
|
+
"react-loading-skeleton": "^1.1.1",
|
|
188
|
+
"react-swipeable": "^7.0.0",
|
|
189
|
+
"react-tiny-popover": "^3.4.5",
|
|
190
|
+
"react-tiny-popover-latest": "npm:react-tiny-popover@^6.0.4",
|
|
191
|
+
"react-virtualized": "^9.21.1",
|
|
192
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
193
|
+
xlsx: "^0.18.5"
|
|
194
|
+
};
|
|
195
|
+
var husky = {
|
|
196
|
+
hooks: {
|
|
197
|
+
"pre-commit": "lint-staged --config ./configs/.lintstagedrc.json",
|
|
198
|
+
"commit-msg": "commitlint --config ./configs/commitlint.config.js -E HUSKY_GIT_PARAMS"
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
var browserslist = [
|
|
202
|
+
">0.2%",
|
|
203
|
+
"not dead",
|
|
204
|
+
"not ie <= 11",
|
|
205
|
+
"not op_mini all"
|
|
206
|
+
];
|
|
207
|
+
var config = {
|
|
208
|
+
commitizen: {
|
|
209
|
+
path: "./node_modules/cz-conventional-changelog"
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
var license = "MIT";
|
|
213
|
+
var pgk = {
|
|
214
|
+
name: name,
|
|
215
|
+
description: description,
|
|
216
|
+
version: version,
|
|
217
|
+
author: author,
|
|
218
|
+
homepage: homepage,
|
|
219
|
+
repository: repository,
|
|
220
|
+
bugs: bugs,
|
|
221
|
+
keywords: keywords,
|
|
222
|
+
main: main,
|
|
223
|
+
typings: typings,
|
|
224
|
+
sideEffects: sideEffects,
|
|
225
|
+
scripts: scripts,
|
|
226
|
+
peerDependencies: peerDependencies,
|
|
227
|
+
devDependencies: devDependencies,
|
|
228
|
+
dependencies: dependencies,
|
|
229
|
+
husky: husky,
|
|
230
|
+
browserslist: browserslist,
|
|
231
|
+
config: config,
|
|
232
|
+
license: license
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
var css_248z = "@import \"https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap\";:root{--font-family:\"Open Sans\",\"Arial\",\"Helvetica Neue\",sans-serif;--hero:#1473e6;--confirm:#2bc784;--warning:#e6af57;--danger:#e64e48;--note:#fdc625;--message:#8bd779;--background:#fff;--foreground:#3d3d5f;--hero-hover:#1267cf;--hero-sc:#fff;--hero-rgb:20,115,230;--hero-sc-rgb:255,255,255;--confirm-hover:#26b276;--confirm-sc:#fff;--confirm-rgb:43,199,132;--confirm-sc-rgb:255,255,255;--warning-hover:#e3a441;--warning-sc:#fff;--warning-rgb:230,175,87;--warning-sc-rgb:255,255,255;--danger-hover:#e33832;--danger-sc:#fff;--danger-rgb:230,78,72;--danger-sc-rgb:255,255,255;--note-hover:#fdbf0c;--note-sc:#000;--note-rgb:253,198,37;--note-sc-rgb:0,0,0;--message-hover:#7ad165;--message-sc:#000;--message-rgb:139,215,121;--message-sc-rgb:0,0,0;--background-hover:#f2f2f2;--background-sc:#000;--background-rgb:255,255,255;--background-sc-rgb:0,0,0;--foreground-hover:#33334f;--foreground-sc:#fff;--foreground-rgb:61,61,95;--foreground-sc-rgb:255,255,255}.invert-colors{--background:var(--foreground);--background-hover:var(--foreground-hover);--background-sc:var(--foreground-sc);--background-rgb:var(--foreground-rgb);--background-sc-rgb:var(--foreground-sc-rgb)}*{-webkit-font-smoothing:subpixel-antialiased;-webkit-tap-highlight-color:transparent;background:none;border:0;border-radius:0;margin:0;outline:0;padding:0;vertical-align:top}*,:after,:before{box-sizing:border-box}@media screen and (min-width:1024px){:not(main)::-webkit-scrollbar{height:var(--scrollbar-size,16px);width:var(--scrollbar-size,16px)}:not(main)::-webkit-scrollbar-button,:not(main)::-webkit-scrollbar-corner{display:none}:not(main)::-webkit-scrollbar-thumb{background:rgba(var(--background-sc-rgb),.05) content-box;border:var(--scrollbar-space,4px) solid #0000;border-radius:var(--scrollbar-size,16px)}:not(main)::-webkit-scrollbar-thumb:active,:not(main)::-webkit-scrollbar-thumb:hover{background-color:rgba(var(--background-sc-rgb),.1)}:not(main)::-webkit-scrollbar-track{background:#0000}}a{color:inherit;text-decoration:none;transition:color .3s,background .3s}table{border-collapse:collapse;border-spacing:0;width:100%}img,svg{display:block;max-width:100%}button,input,optgroup,select,textarea{-webkit-appearance:none;appearance:none;color:inherit;display:block;font:inherit}button::input-placeholder,input::input-placeholder,optgroup::input-placeholder,select::input-placeholder,textarea::input-placeholder{font-family:inherit;opacity:1}button:placeholder,input:placeholder,optgroup:placeholder,select:placeholder,textarea:placeholder{font-family:inherit;opacity:1}button::placeholder,input::placeholder,optgroup::placeholder,select::placeholder,textarea::placeholder{font-family:inherit;opacity:1}button:input-placeholder,input:input-placeholder,optgroup:input-placeholder,select:input-placeholder,textarea:input-placeholder{font-family:inherit;opacity:1}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;background:var(--page-background,#f0f2f5);color:rgba(var(--background-sc-rgb),.75);font:10px/1.15 var(--font-family);height:100%;max-width:100vw}html.view-small{font-size:8.12px}html.view-normal{font-size:9.12px}html #root,html body{width:100%}body{font-size:1.4rem}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:normal}h1{font-size:3.2rem}h1.large{font-size:3.8rem}h2{font-size:2.8rem}h3{font-size:1.8rem}h4{font-size:1.6rem}h5{font-size:1.4rem}h6{font-size:1.2rem}li{display:block}.ellipsis-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.capitalize-text{text-transform:capitalize}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}input::-ms-clear{display:none}.pointer-events-none{pointer-events:none}.cursor-pointer,[data-react-beautiful-dnd-drag-handle=\"0\"]{cursor:pointer}.color-danger{color:var(--danger)!important}.color-confirm{color:var(--confirm)!important}.color-hero{color:var(--hero)!important}::selection{background:rgba(var(--hero-rgb),.15);color:var(--hero)}.vertical-resizing-cursor *{cursor:col-resize!important}.vertical-resizing-cursor :not(:active){pointer-events:none}.cursor-grab{cursor:grab}.cursor-grab:active{cursor:grabbing}.m-rl-2{margin:0 .2rem}.m-tb-2{margin:.2rem 0}.m-t-2{margin-top:.2rem}.m-r-2{margin-inline-end:.2rem}.m-l-2{margin-inline-start:.2rem}.m-b-2{margin-bottom:.2rem}.m-rl-4{margin:0 .4rem}.m-tb-4{margin:.4rem 0}.m-t-4{margin-top:.4rem}.m-r-4{margin-inline-end:.4rem}.m-l-4{margin-inline-start:.4rem}.m-b-4{margin-bottom:.4rem}.m-rl-6{margin:0 .6rem}.m-tb-6{margin:.6rem 0}.m-t-6{margin-top:.6rem}.m-r-6{margin-inline-end:.6rem}.m-l-6{margin-inline-start:.6rem}.m-b-6{margin-bottom:.6rem}.m-rl-8{margin:0 .8rem}.m-tb-8{margin:.8rem 0}.m-t-8{margin-top:.8rem}.m-r-8{margin-inline-end:.8rem}.m-l-8{margin-inline-start:.8rem}.m-b-8{margin-bottom:.8rem}.m-rl-10{margin:0 1rem}.m-tb-10{margin:1rem 0}.m-t-10{margin-top:1rem}.m-r-10{margin-inline-end:1rem}.m-l-10{margin-inline-start:1rem}.m-b-10{margin-bottom:1rem}.m-rl-12{margin:0 1.2rem}.m-tb-12{margin:1.2rem 0}.m-t-12{margin-top:1.2rem}.m-r-12{margin-inline-end:1.2rem}.m-l-12{margin-inline-start:1.2rem}.m-b-12{margin-bottom:1.2rem}.m-rl-14{margin:0 1.4rem}.m-tb-14{margin:1.4rem 0}.m-t-14{margin-top:1.4rem}.m-r-14{margin-inline-end:1.4rem}.m-l-14{margin-inline-start:1.4rem}.m-b-14{margin-bottom:1.4rem}.m-rl-16{margin:0 1.6rem}.m-tb-16{margin:1.6rem 0}.m-t-16{margin-top:1.6rem}.m-r-16{margin-inline-end:1.6rem}.m-l-16{margin-inline-start:1.6rem}.m-b-16{margin-bottom:1.6rem}.m-rl-18{margin:0 1.8rem}.m-tb-18{margin:1.8rem 0}.m-t-18{margin-top:1.8rem}.m-r-18{margin-inline-end:1.8rem}.m-l-18{margin-inline-start:1.8rem}.m-b-18{margin-bottom:1.8rem}.m-rl-20{margin:0 2rem}.m-tb-20{margin:2rem 0}.m-t-20{margin-top:2rem}.m-r-20{margin-inline-end:2rem}.m-l-20{margin-inline-start:2rem}.m-b-20{margin-bottom:2rem}.m-rl-22{margin:0 2.2rem}.m-tb-22{margin:2.2rem 0}.m-t-22{margin-top:2.2rem}.m-r-22{margin-inline-end:2.2rem}.m-l-22{margin-inline-start:2.2rem}.m-b-22{margin-bottom:2.2rem}.m-rl-24{margin:0 2.4rem}.m-tb-24{margin:2.4rem 0}.m-t-24{margin-top:2.4rem}.m-r-24{margin-inline-end:2.4rem}.m-l-24{margin-inline-start:2.4rem}.m-b-24{margin-bottom:2.4rem}.m-rl-26{margin:0 2.6rem}.m-tb-26{margin:2.6rem 0}.m-t-26{margin-top:2.6rem}.m-r-26{margin-inline-end:2.6rem}.m-l-26{margin-inline-start:2.6rem}.m-b-26{margin-bottom:2.6rem}.m-rl-28{margin:0 2.8rem}.m-tb-28{margin:2.8rem 0}.m-t-28{margin-top:2.8rem}.m-r-28{margin-inline-end:2.8rem}.m-l-28{margin-inline-start:2.8rem}.m-b-28{margin-bottom:2.8rem}.m-rl-30{margin:0 3rem}.m-tb-30{margin:3rem 0}.m-t-30{margin-top:3rem}.m-r-30{margin-inline-end:3rem}.m-l-30{margin-inline-start:3rem}.m-b-30{margin-bottom:3rem}.m-rl-32{margin:0 3.2rem}.m-tb-32{margin:3.2rem 0}.m-t-32{margin-top:3.2rem}.m-r-32{margin-inline-end:3.2rem}.m-l-32{margin-inline-start:3.2rem}.m-b-32{margin-bottom:3.2rem}.m-rl-34{margin:0 3.4rem}.m-tb-34{margin:3.4rem 0}.m-t-34{margin-top:3.4rem}.m-r-34{margin-inline-end:3.4rem}.m-l-34{margin-inline-start:3.4rem}.m-b-34{margin-bottom:3.4rem}.m-rl-36{margin:0 3.6rem}.m-tb-36{margin:3.6rem 0}.m-t-36{margin-top:3.6rem}.m-r-36{margin-inline-end:3.6rem}.m-l-36{margin-inline-start:3.6rem}.m-b-36{margin-bottom:3.6rem}.m-rl-38{margin:0 3.8rem}.m-tb-38{margin:3.8rem 0}.m-t-38{margin-top:3.8rem}.m-r-38{margin-inline-end:3.8rem}.m-l-38{margin-inline-start:3.8rem}.m-b-38{margin-bottom:3.8rem}.m-rl-40{margin:0 4rem}.m-tb-40{margin:4rem 0}.m-t-40{margin-top:4rem}.m-r-40{margin-inline-end:4rem}.m-l-40{margin-inline-start:4rem}.m-b-40{margin-bottom:4rem}.m-rl-42{margin:0 4.2rem}.m-tb-42{margin:4.2rem 0}.m-t-42{margin-top:4.2rem}.m-r-42{margin-inline-end:4.2rem}.m-l-42{margin-inline-start:4.2rem}.m-b-42{margin-bottom:4.2rem}.m-rl-44{margin:0 4.4rem}.m-tb-44{margin:4.4rem 0}.m-t-44{margin-top:4.4rem}.m-r-44{margin-inline-end:4.4rem}.m-l-44{margin-inline-start:4.4rem}.m-b-44{margin-bottom:4.4rem}.m-rl-46{margin:0 4.6rem}.m-tb-46{margin:4.6rem 0}.m-t-46{margin-top:4.6rem}.m-r-46{margin-inline-end:4.6rem}.m-l-46{margin-inline-start:4.6rem}.m-b-46{margin-bottom:4.6rem}";
|
|
236
|
+
styleInject(css_248z);
|
|
237
|
+
|
|
238
|
+
const GeneUIDesignSystemContext = /*#__PURE__*/createContext();
|
|
239
|
+
function GeneUIProvider(_ref) {
|
|
240
|
+
let {
|
|
241
|
+
children,
|
|
242
|
+
tokens,
|
|
243
|
+
theme
|
|
244
|
+
} = _ref;
|
|
245
|
+
const geneUIProviderRef = useRef(null);
|
|
246
|
+
const contextValue = {
|
|
247
|
+
theme,
|
|
248
|
+
tokens,
|
|
249
|
+
geneUIProviderRef
|
|
250
|
+
};
|
|
251
|
+
return /*#__PURE__*/React__default.createElement(GeneUIDesignSystemContext.Provider, {
|
|
252
|
+
value: contextValue
|
|
253
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
254
|
+
"data-gene-ui-version": pgk.version,
|
|
255
|
+
ref: geneUIProviderRef,
|
|
256
|
+
style: {
|
|
257
|
+
height: '100%'
|
|
258
|
+
}
|
|
259
|
+
}, children));
|
|
260
|
+
}
|
|
261
|
+
GeneUIProvider.propTypes = {
|
|
262
|
+
/**
|
|
263
|
+
* Any valid React node
|
|
264
|
+
*/
|
|
265
|
+
children: PropTypes.node,
|
|
266
|
+
/**
|
|
267
|
+
* Tokens library object defined by style-dictionary standard,
|
|
268
|
+
* and GeneUI tokens package rules
|
|
269
|
+
*/
|
|
270
|
+
tokens: PropTypes.object,
|
|
271
|
+
/**
|
|
272
|
+
* Theme which will follow all nested GeneUI components
|
|
273
|
+
*/
|
|
274
|
+
theme: PropTypes.oneOf(['light', 'dark'])
|
|
275
|
+
};
|
|
276
|
+
GeneUIProvider.defaultProps = {
|
|
277
|
+
tokens: {},
|
|
278
|
+
theme: 'light'
|
|
279
|
+
};
|
|
280
|
+
GeneUIProvider.displayName = 'GeneUIProvider';
|
|
281
|
+
|
|
282
|
+
export { GeneUIDesignSystemContext, GeneUIProvider as default };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React__default, { useRef } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { c as classnames } from '
|
|
4
|
-
import
|
|
5
|
-
import '
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { c as classnames } from '../index-6ff23041.js';
|
|
4
|
+
import useWidth from '../hooks/useWidth.js';
|
|
5
|
+
import '../dateValidation-67caec66.js';
|
|
6
6
|
import 'react-dom';
|
|
7
|
-
import {
|
|
8
|
-
import { _ as _extends } from '
|
|
9
|
-
import { s as styleInject } from '
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
7
|
+
import { q as breakPoints } from '../configs-fed6ac34.js';
|
|
8
|
+
import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
9
|
+
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
10
|
+
import '../hooks/useWindowSize.js';
|
|
11
|
+
import '../_commonjsHelpers-24198af3.js';
|
|
12
12
|
|
|
13
13
|
/* Recognizing screen size by configuration.
|
|
14
14
|
* Now we have 5 supported screen sizes.
|
|
@@ -55,55 +55,55 @@ Col.propTypes = {
|
|
|
55
55
|
/**
|
|
56
56
|
* Component will calculate width based on this props
|
|
57
57
|
*/
|
|
58
|
-
__parentWidth:
|
|
58
|
+
__parentWidth: PropTypes.number,
|
|
59
59
|
/**
|
|
60
60
|
* The space between elements vertically
|
|
61
61
|
*/
|
|
62
|
-
__padding:
|
|
62
|
+
__padding: PropTypes.number,
|
|
63
63
|
/**
|
|
64
64
|
* The space between elements horizontally
|
|
65
65
|
*/
|
|
66
|
-
__gutter:
|
|
66
|
+
__gutter: PropTypes.number,
|
|
67
67
|
/**
|
|
68
68
|
* Defines the number of grids the component is going to use
|
|
69
69
|
*/
|
|
70
|
-
__count:
|
|
70
|
+
__count: PropTypes.number,
|
|
71
71
|
/**
|
|
72
72
|
* The CSS class name of the element.
|
|
73
73
|
*/
|
|
74
|
-
className:
|
|
74
|
+
className: PropTypes.string,
|
|
75
75
|
/**
|
|
76
76
|
* Custom stylings
|
|
77
77
|
*/
|
|
78
|
-
style:
|
|
78
|
+
style: PropTypes.object,
|
|
79
79
|
/**
|
|
80
80
|
* Defines the size of grids the component is going to use.
|
|
81
81
|
*/
|
|
82
|
-
xs:
|
|
82
|
+
xs: PropTypes.number,
|
|
83
83
|
/**
|
|
84
84
|
* Defines the size of grids the component is going to use.
|
|
85
85
|
*/
|
|
86
|
-
md:
|
|
86
|
+
md: PropTypes.number,
|
|
87
87
|
/**
|
|
88
88
|
* Defines the size of grids the component is going to use.
|
|
89
89
|
*/
|
|
90
|
-
lg:
|
|
90
|
+
lg: PropTypes.number,
|
|
91
91
|
/**
|
|
92
92
|
* Defines the size of grids the component is going to use.
|
|
93
93
|
*/
|
|
94
|
-
xl:
|
|
94
|
+
xl: PropTypes.number,
|
|
95
95
|
/**
|
|
96
96
|
* Defines the size of grids the component is going to use.
|
|
97
97
|
*/
|
|
98
|
-
xxl:
|
|
98
|
+
xxl: PropTypes.number,
|
|
99
99
|
/**
|
|
100
100
|
* Custom size for element
|
|
101
101
|
*/
|
|
102
|
-
size:
|
|
102
|
+
size: PropTypes.number,
|
|
103
103
|
/**
|
|
104
104
|
* Any valid react node
|
|
105
105
|
*/
|
|
106
|
-
children:
|
|
106
|
+
children: PropTypes.node
|
|
107
107
|
};
|
|
108
108
|
Col.defaultProps = {
|
|
109
109
|
__parentWidth: 0,
|
|
@@ -117,7 +117,7 @@ Col.defaultProps = {
|
|
|
117
117
|
xxl: 1
|
|
118
118
|
};
|
|
119
119
|
|
|
120
|
-
var css_248z = "[data-gene-ui-version=\"
|
|
120
|
+
var css_248z = "[data-gene-ui-version=\"2.12.2\"] .grid-holder{width:100%}[data-gene-ui-version=\"2.12.2\"] .grid-items-group{display:flex;flex-wrap:wrap;width:100%}[data-gene-ui-version=\"2.12.2\"] .grid-child{display:flex}";
|
|
121
121
|
styleInject(css_248z);
|
|
122
122
|
|
|
123
123
|
function Row(props) {
|
|
@@ -143,19 +143,19 @@ Row.propTypes = {
|
|
|
143
143
|
/**
|
|
144
144
|
* Defines the space between horizontally
|
|
145
145
|
*/
|
|
146
|
-
gutter:
|
|
146
|
+
gutter: PropTypes.number,
|
|
147
147
|
/**
|
|
148
148
|
* Defines the number of grids the component is going to use
|
|
149
149
|
*/
|
|
150
|
-
span:
|
|
150
|
+
span: PropTypes.number,
|
|
151
151
|
/**
|
|
152
152
|
* Defines the space between vertically
|
|
153
153
|
*/
|
|
154
|
-
padding:
|
|
154
|
+
padding: PropTypes.number,
|
|
155
155
|
/**
|
|
156
156
|
* The content of the component.
|
|
157
157
|
*/
|
|
158
|
-
children:
|
|
158
|
+
children: PropTypes.oneOfType([PropTypes.bool, PropTypes.node, PropTypes.element, PropTypes.instanceOf(Col)])
|
|
159
159
|
};
|
|
160
160
|
Row.defaultProps = {
|
|
161
161
|
gutter: 20,
|