@geneui/components 2.11.1
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 +1761 -0
- package/AdvancedSearch.js +872 -0
- package/Alert.js +98 -0
- package/Avatar.js +77 -0
- package/Badge.js +76 -0
- package/Breadcrumb.js +128 -0
- package/BusyLoader.js +69 -0
- package/Button.js +130 -0
- package/CHANGELOG.md +424 -0
- package/Card.js +513 -0
- package/CardList.js +705 -0
- package/CellMeasurerCache-c11cec83.js +229 -0
- package/Charts.js +99 -0
- package/Checkbox.js +232 -0
- package/CheckboxGroup.js +206 -0
- package/CheckboxGroupWithSearch.js +279 -0
- package/Collapse.js +196 -0
- package/ColorPicker.js +210 -0
- package/ComboBox.js +99 -0
- package/Counter.js +99 -0
- package/DateFilter.js +179 -0
- package/DatePicker.js +1231 -0
- package/DatePickerInput.js +30 -0
- package/Divider.js +56 -0
- package/Drawer.js +264 -0
- package/Dropdown.js +99 -0
- package/Editor.js +22965 -0
- package/Empty.js +132 -0
- package/ExtendedInput.js +578 -0
- package/Form.js +116 -0
- package/FormContainer.js +189 -0
- package/FormableCheckbox.js +27 -0
- package/FormableDatePicker.js +39 -0
- package/FormableDropdown.js +105 -0
- package/FormableEditor.js +24 -0
- package/FormableHOC-21051057.js +83 -0
- package/FormableMultiSelectDropdown.js +105 -0
- package/FormableNumberInput.js +31 -0
- package/FormableRadio.js +23 -0
- package/FormableSwitcher.js +23 -0
- package/FormableTextInput.js +31 -0
- package/FormableUploader.js +40 -0
- package/GeneUIProvider.js +256 -0
- package/Grid.js +166 -0
- package/Holder.js +99 -0
- package/Icon.js +63 -0
- package/Image.js +130 -0
- package/ImagePreview.js +99 -0
- package/KeyValue.js +63 -0
- package/Label.js +58 -0
- package/LinkButton.js +104 -0
- package/Menu.js +277 -0
- package/MobileNavigation.js +95 -0
- package/MobilePopup.js +180 -0
- package/Modal.js +251 -0
- package/ModuleTitle.js +99 -0
- package/NavigationMenu.js +212 -0
- package/Notification.js +120 -0
- package/Option.js +186 -0
- package/Overlay.js +99 -0
- package/Overspread.js +343 -0
- package/Pagination.js +258 -0
- package/Paper.js +97 -0
- package/Popover-f4d1cac0.js +411 -0
- package/Popover.js +20 -0
- package/PopoverV2.js +19 -0
- package/Portal.js +58 -0
- package/Products.js +115 -0
- package/Profile.js +99 -0
- package/Progress.js +200 -0
- package/QRCode.js +816 -0
- package/README.md +90 -0
- package/Radio.js +152 -0
- package/RadioGroup.js +105 -0
- package/Range.js +14 -0
- package/RichEditor-b7928765.js +228 -0
- package/RichEditor.js +13 -0
- package/Scrollbar.js +1587 -0
- package/Search.js +72 -0
- package/SearchWithDropdown.js +195 -0
- package/Section.js +62 -0
- package/SkeletonLoader.js +82 -0
- package/Slider.js +256 -0
- package/Status.js +104 -0
- package/Steps.js +312 -0
- package/SuggestionList.js +15 -0
- package/Switcher.js +194 -0
- package/Table.js +102 -0
- package/TableCompositions.js +17028 -0
- package/Tabs.js +236 -0
- package/Tag.js +103 -0
- package/TextLink.js +22 -0
- package/Textarea.js +239 -0
- package/Time.js +63 -0
- package/TimePicker.js +99 -0
- package/Timeline.js +114 -0
- package/Title.js +66 -0
- package/Toaster.js +116 -0
- package/Tooltip.js +157 -0
- package/TransferList.js +502 -0
- package/Uploader.js +32 -0
- package/ValidatableCheckbox.js +126 -0
- package/ValidatableDatePicker.js +312 -0
- package/ValidatableDropdown.js +99 -0
- package/ValidatableElements.js +99 -0
- package/ValidatableMultiSelectDropdown.js +99 -0
- package/ValidatableNumberInput.js +194 -0
- package/ValidatableRadio.js +117 -0
- package/ValidatableSwitcher.js +94 -0
- package/ValidatableTextInput.js +164 -0
- package/ValidatableTimeInput.js +171 -0
- package/ValidatableUploader.js +94 -0
- package/Widget.js +99 -0
- package/_commonjsHelpers-24198af3.js +35 -0
- package/_rollupPluginBabelHelpers-e8fb2e5c.js +16 -0
- package/checkTimeValidation-e56771be.js +16 -0
- package/checkboxRadioSwitcher-5b69d7bd.js +4 -0
- package/clsx.m-2bb6df4b.js +3 -0
- package/configs-91c86664.js +96 -0
- package/configs.js +131 -0
- package/dateValidation-67caec66.js +225 -0
- package/debounce-4419bc2f.js +17 -0
- package/globalStyling-9c60a159.js +4 -0
- package/guid-8ddf77b3.js +16 -0
- package/index-00fe8887.js +193 -0
- package/index-0cf65939.js +30991 -0
- package/index-122432cd.js +270 -0
- package/index-262edd7a.js +77 -0
- package/index-5cea9a7d.js +407 -0
- package/index-5e722d91.js +867 -0
- package/index-67f4d4d1.js +6568 -0
- package/index-6ff23041.js +66 -0
- package/index-702bf24a.js +1938 -0
- package/index-a4635754.js +329 -0
- package/index-a59530cd.js +4 -0
- package/index-ac59cb10.js +169 -0
- package/index-b7a33c58.js +11 -0
- package/index-d9e8a888.js +987 -0
- package/index-e0af0caf.js +1182 -0
- package/index-e8776f3d.js +807 -0
- package/index.js +128 -0
- package/localization-4ba17032.js +46 -0
- package/objectWithoutPropertiesLoose-299691d8.js +78 -0
- package/package.json +190 -0
- package/rangeAndSlider-20599da4.js +8839 -0
- package/react-beautiful-dnd.esm-38c37304.js +10117 -0
- package/style-inject.es-746bb8ed.js +28 -0
- package/useClickOutside-5183e396.js +25 -0
- package/useDeviceType-dd51db38.js +15 -0
- package/useEllipsisDetection-ef536015.js +23 -0
- package/useKeyDown-38102ae7.js +21 -0
- package/useMount-6fef51a5.js +9 -0
- package/useWidth-9f4647f8.js +15 -0
- package/useWindowSize-80369d76.js +33 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { F as Formable } from './FormableHOC-21051057.js';
|
|
2
|
+
import NumberInput from './ValidatableNumberInput.js';
|
|
3
|
+
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import './index-ac59cb10.js';
|
|
6
|
+
import './index-e0af0caf.js';
|
|
7
|
+
import './dateValidation-67caec66.js';
|
|
8
|
+
import './_commonjsHelpers-24198af3.js';
|
|
9
|
+
import 'react-dom';
|
|
10
|
+
import './useMount-6fef51a5.js';
|
|
11
|
+
import './configs-91c86664.js';
|
|
12
|
+
import './index-262edd7a.js';
|
|
13
|
+
import './guid-8ddf77b3.js';
|
|
14
|
+
import './ExtendedInput.js';
|
|
15
|
+
import './index-6ff23041.js';
|
|
16
|
+
import './useDeviceType-dd51db38.js';
|
|
17
|
+
import './useWindowSize-80369d76.js';
|
|
18
|
+
import './index-5cea9a7d.js';
|
|
19
|
+
import './useKeyDown-38102ae7.js';
|
|
20
|
+
import './useClickOutside-5183e396.js';
|
|
21
|
+
import './Scrollbar.js';
|
|
22
|
+
import './globalStyling-9c60a159.js';
|
|
23
|
+
import './style-inject.es-746bb8ed.js';
|
|
24
|
+
import './Icon.js';
|
|
25
|
+
import './Tooltip.js';
|
|
26
|
+
import './Popover-f4d1cac0.js';
|
|
27
|
+
import './GeneUIProvider.js';
|
|
28
|
+
|
|
29
|
+
var FormableNumberInput = Formable(NumberInput);
|
|
30
|
+
|
|
31
|
+
export { FormableNumberInput as default };
|
package/FormableRadio.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { F as Formable } from './FormableHOC-21051057.js';
|
|
2
|
+
import Radio from './ValidatableRadio.js';
|
|
3
|
+
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import './index-ac59cb10.js';
|
|
6
|
+
import './index-e0af0caf.js';
|
|
7
|
+
import './dateValidation-67caec66.js';
|
|
8
|
+
import './_commonjsHelpers-24198af3.js';
|
|
9
|
+
import 'react-dom';
|
|
10
|
+
import './useMount-6fef51a5.js';
|
|
11
|
+
import './configs-91c86664.js';
|
|
12
|
+
import './index-262edd7a.js';
|
|
13
|
+
import './guid-8ddf77b3.js';
|
|
14
|
+
import './RadioGroup.js';
|
|
15
|
+
import './index-6ff23041.js';
|
|
16
|
+
import './Radio.js';
|
|
17
|
+
import './globalStyling-9c60a159.js';
|
|
18
|
+
import './style-inject.es-746bb8ed.js';
|
|
19
|
+
import './checkboxRadioSwitcher-5b69d7bd.js';
|
|
20
|
+
|
|
21
|
+
var FormableRadio = Formable(Radio);
|
|
22
|
+
|
|
23
|
+
export { FormableRadio as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { F as Formable } from './FormableHOC-21051057.js';
|
|
2
|
+
import SwitcherElement from './ValidatableSwitcher.js';
|
|
3
|
+
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import './index-ac59cb10.js';
|
|
6
|
+
import './index-e0af0caf.js';
|
|
7
|
+
import './dateValidation-67caec66.js';
|
|
8
|
+
import './_commonjsHelpers-24198af3.js';
|
|
9
|
+
import 'react-dom';
|
|
10
|
+
import './useMount-6fef51a5.js';
|
|
11
|
+
import './configs-91c86664.js';
|
|
12
|
+
import './index-262edd7a.js';
|
|
13
|
+
import './guid-8ddf77b3.js';
|
|
14
|
+
import './Switcher.js';
|
|
15
|
+
import './index-6ff23041.js';
|
|
16
|
+
import './useKeyDown-38102ae7.js';
|
|
17
|
+
import './globalStyling-9c60a159.js';
|
|
18
|
+
import './style-inject.es-746bb8ed.js';
|
|
19
|
+
import './checkboxRadioSwitcher-5b69d7bd.js';
|
|
20
|
+
|
|
21
|
+
var FormableSwitcher = Formable(SwitcherElement);
|
|
22
|
+
|
|
23
|
+
export { FormableSwitcher as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { F as Formable } from './FormableHOC-21051057.js';
|
|
2
|
+
import TextInput from './ValidatableTextInput.js';
|
|
3
|
+
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import './index-ac59cb10.js';
|
|
6
|
+
import './index-e0af0caf.js';
|
|
7
|
+
import './dateValidation-67caec66.js';
|
|
8
|
+
import './_commonjsHelpers-24198af3.js';
|
|
9
|
+
import 'react-dom';
|
|
10
|
+
import './useMount-6fef51a5.js';
|
|
11
|
+
import './configs-91c86664.js';
|
|
12
|
+
import './index-262edd7a.js';
|
|
13
|
+
import './guid-8ddf77b3.js';
|
|
14
|
+
import './ExtendedInput.js';
|
|
15
|
+
import './index-6ff23041.js';
|
|
16
|
+
import './useDeviceType-dd51db38.js';
|
|
17
|
+
import './useWindowSize-80369d76.js';
|
|
18
|
+
import './index-5cea9a7d.js';
|
|
19
|
+
import './useKeyDown-38102ae7.js';
|
|
20
|
+
import './useClickOutside-5183e396.js';
|
|
21
|
+
import './Scrollbar.js';
|
|
22
|
+
import './globalStyling-9c60a159.js';
|
|
23
|
+
import './style-inject.es-746bb8ed.js';
|
|
24
|
+
import './Icon.js';
|
|
25
|
+
import './Tooltip.js';
|
|
26
|
+
import './Popover-f4d1cac0.js';
|
|
27
|
+
import './GeneUIProvider.js';
|
|
28
|
+
|
|
29
|
+
var FormableTextInput = Formable(TextInput);
|
|
30
|
+
|
|
31
|
+
export { FormableTextInput as default };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { F as Formable } from './FormableHOC-21051057.js';
|
|
2
|
+
import UploaderField from './ValidatableUploader.js';
|
|
3
|
+
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import './index-ac59cb10.js';
|
|
6
|
+
import './index-e0af0caf.js';
|
|
7
|
+
import './dateValidation-67caec66.js';
|
|
8
|
+
import './_commonjsHelpers-24198af3.js';
|
|
9
|
+
import 'react-dom';
|
|
10
|
+
import './useMount-6fef51a5.js';
|
|
11
|
+
import './configs-91c86664.js';
|
|
12
|
+
import './index-262edd7a.js';
|
|
13
|
+
import './guid-8ddf77b3.js';
|
|
14
|
+
import './index-d9e8a888.js';
|
|
15
|
+
import './index-6ff23041.js';
|
|
16
|
+
import './Grid.js';
|
|
17
|
+
import './useWidth-9f4647f8.js';
|
|
18
|
+
import './useWindowSize-80369d76.js';
|
|
19
|
+
import './style-inject.es-746bb8ed.js';
|
|
20
|
+
import './Button.js';
|
|
21
|
+
import './Icon.js';
|
|
22
|
+
import './globalStyling-9c60a159.js';
|
|
23
|
+
import './useKeyDown-38102ae7.js';
|
|
24
|
+
import './BusyLoader.js';
|
|
25
|
+
import './Image.js';
|
|
26
|
+
import './Empty.js';
|
|
27
|
+
import './Tooltip.js';
|
|
28
|
+
import './Popover-f4d1cac0.js';
|
|
29
|
+
import './useDeviceType-dd51db38.js';
|
|
30
|
+
import './GeneUIProvider.js';
|
|
31
|
+
import './Checkbox.js';
|
|
32
|
+
import './checkboxRadioSwitcher-5b69d7bd.js';
|
|
33
|
+
import './ExtendedInput.js';
|
|
34
|
+
import './index-5cea9a7d.js';
|
|
35
|
+
import './useClickOutside-5183e396.js';
|
|
36
|
+
import './Scrollbar.js';
|
|
37
|
+
|
|
38
|
+
var FormableUploader = Formable(UploaderField);
|
|
39
|
+
|
|
40
|
+
export { FormableUploader as default };
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import React__default, { createContext, useRef } from 'react';
|
|
2
|
+
import { p as propTypesExports } from './index-e0af0caf.js';
|
|
3
|
+
|
|
4
|
+
var name = "@geneui/components";
|
|
5
|
+
var description = "The Gene UI components library designed for BI tools";
|
|
6
|
+
var version = "2.11.0";
|
|
7
|
+
var author = "SoftConstruct";
|
|
8
|
+
var homepage = "https://github.com/softconstruct/gene-ui-components#readme";
|
|
9
|
+
var repository = {
|
|
10
|
+
type: "git",
|
|
11
|
+
url: "https://github.com/softconstruct/gene-ui-components"
|
|
12
|
+
};
|
|
13
|
+
var bugs = {
|
|
14
|
+
url: "https://github.com/softconstruct/gene-ui-components/issues"
|
|
15
|
+
};
|
|
16
|
+
var keywords = [
|
|
17
|
+
"react",
|
|
18
|
+
"gene-ui",
|
|
19
|
+
"design-system",
|
|
20
|
+
"component-library"
|
|
21
|
+
];
|
|
22
|
+
var main = "index.js";
|
|
23
|
+
var scripts = {
|
|
24
|
+
start: "start-storybook -p 6006 -s .storybook/public",
|
|
25
|
+
test: "jest",
|
|
26
|
+
build: "babel-node --config-file ./configs/.babelrc ./scripts/build.js",
|
|
27
|
+
"copy-build-statics-files": "babel-node --config-file ./configs/.babelrc ./scripts/copyFiles.js",
|
|
28
|
+
"bump-up-commit": "babel-node --config-file ./configs/.babelrc ./scripts/postPublish.js",
|
|
29
|
+
"build:watch": "watch 'npm run build' ./src",
|
|
30
|
+
commit: "git-cz",
|
|
31
|
+
changelog: "conventional-changelog -i CHANGELOG.md -s",
|
|
32
|
+
"add-lib-version-to-docs": "babel-node --config-file ./configs/.babelrc ./scripts/addVersionHistory.js",
|
|
33
|
+
"build-storybook": "npm run add-lib-version-to-docs && build-storybook",
|
|
34
|
+
"publish-lib": "npm run build && cd dist && npm publish",
|
|
35
|
+
"semantic-release": "semantic-release --extends ./configs/.releaserc.json --no-ci",
|
|
36
|
+
"create-component": "babel-node --config-file ./configs/.babelrc ./scripts/createComponent.js",
|
|
37
|
+
"find-component-usage": "babel-node --config-file ./configs/.babelrc ./scripts/findComponentUsage.js",
|
|
38
|
+
"format-code": "prettier --config ./configs/.prettierrc --write . --ignore-path ./configs/.prettierignore",
|
|
39
|
+
"lint-styles": "stylelint **/*.{css,scss,sass} --config ./configs/.stylelintrc.json --fix",
|
|
40
|
+
"lint-scripts": "eslint --config ./configs/.eslintrc.json src --ignore-path ./configs/.eslintignore --fix",
|
|
41
|
+
"fix-code-style": "npm run format-code && npm run lint-styles && npm run lint-scripts",
|
|
42
|
+
"analyze-bundle-size": "babel-node --config-file ./configs/.babelrc ./scripts/analyzeBundleSize.js"
|
|
43
|
+
};
|
|
44
|
+
var peerDependencies = {
|
|
45
|
+
"prop-types": "^15.8.1",
|
|
46
|
+
react: "^16.8.1",
|
|
47
|
+
"react-dom": "^16.8.1"
|
|
48
|
+
};
|
|
49
|
+
var devDependencies = {
|
|
50
|
+
"@babel/cli": "^7.19.3",
|
|
51
|
+
"@babel/core": "^7.20.2",
|
|
52
|
+
"@babel/eslint-parser": "^7.19.1",
|
|
53
|
+
"@babel/node": "^7.20.2",
|
|
54
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
55
|
+
"@babel/plugin-proposal-export-default-from": "^7.18.10",
|
|
56
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
57
|
+
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
|
|
58
|
+
"@babel/plugin-syntax-jsx": "^7.18.6",
|
|
59
|
+
"@babel/preset-env": "^7.19.4",
|
|
60
|
+
"@babel/preset-react": "^7.18.6",
|
|
61
|
+
"@commitlint/cli": "^17.1.2",
|
|
62
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
63
|
+
"@faker-js/faker": "^7.6.0",
|
|
64
|
+
"@rollup/plugin-alias": "^4.0.2",
|
|
65
|
+
"@rollup/plugin-babel": "^6.0.0",
|
|
66
|
+
"@rollup/plugin-commonjs": "^23.0.0",
|
|
67
|
+
"@rollup/plugin-image": "^3.0.1",
|
|
68
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
69
|
+
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
70
|
+
"@semantic-release/changelog": "^6.0.2",
|
|
71
|
+
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
72
|
+
"@semantic-release/git": "^10.0.1",
|
|
73
|
+
"@semantic-release/npm": "^9.0.1",
|
|
74
|
+
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
75
|
+
"@storybook/addon-a11y": "^6.5.15",
|
|
76
|
+
"@storybook/addon-docs": "^6.5.15",
|
|
77
|
+
"@storybook/addon-essentials": "^6.4.22",
|
|
78
|
+
"@storybook/addon-viewport": "^6.5.15",
|
|
79
|
+
"@storybook/addons": "^6.4.22",
|
|
80
|
+
"@storybook/builder-webpack5": "^6.4.22",
|
|
81
|
+
"@storybook/manager-webpack5": "^6.4.22",
|
|
82
|
+
"@storybook/mdx2-csf": "^0.0.3",
|
|
83
|
+
"@storybook/preset-scss": "^1.0.3",
|
|
84
|
+
"@storybook/react": "^6.4.22",
|
|
85
|
+
"@storybook/theming": "^6.4.22",
|
|
86
|
+
autoprefixer: "^10.4.13",
|
|
87
|
+
"babel-loader": "^8.2.5",
|
|
88
|
+
chalk: "^4.1.2",
|
|
89
|
+
commitizen: "^4.2.5",
|
|
90
|
+
"conventional-changelog-cli": "^2.2.2",
|
|
91
|
+
"css-loader": "^6.7.3",
|
|
92
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
93
|
+
enzyme: "^3.11.0",
|
|
94
|
+
"enzyme-adapter-react-16": "^1.15.2",
|
|
95
|
+
eslint: "^8.25.0",
|
|
96
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
97
|
+
"eslint-config-prettier": "^8.5.0",
|
|
98
|
+
"eslint-plugin-import": "^2.26.0",
|
|
99
|
+
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
100
|
+
"eslint-plugin-react": "^7.31.11",
|
|
101
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
102
|
+
figlet: "^1.5.2",
|
|
103
|
+
"file-loader": "^6.2.0",
|
|
104
|
+
"git-cz": "^4.9.0",
|
|
105
|
+
husky: "^1.3.1",
|
|
106
|
+
"identity-obj-proxy": "^3.0.0",
|
|
107
|
+
"immutability-helper": "^3.0.1",
|
|
108
|
+
inquirer: "^8.2.4",
|
|
109
|
+
jest: "^29.2.1",
|
|
110
|
+
"lint-staged": "^13.0.3",
|
|
111
|
+
"metro-react-native-babel-preset": "^0.51.1",
|
|
112
|
+
"open-cli": "^7.1.0",
|
|
113
|
+
ora: "^5.4.1",
|
|
114
|
+
postcss: "^8.4.31",
|
|
115
|
+
"postcss-prefix-selector": "^1.16.0",
|
|
116
|
+
"postcss-url": "^10.1.3",
|
|
117
|
+
prettier: "^2.7.1",
|
|
118
|
+
react: "^16.8.1",
|
|
119
|
+
"react-dom": "^16.8.1",
|
|
120
|
+
"react-test-renderer": "^16.12.0",
|
|
121
|
+
rollup: "^3.1.0",
|
|
122
|
+
"rollup-plugin-peer-deps-external": "^2.2.0",
|
|
123
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
124
|
+
"rollup-plugin-scss": "^4.0.0",
|
|
125
|
+
"rollup-plugin-svg": "^1.0.1",
|
|
126
|
+
"rollup-plugin-visualizer": "^5.8.3",
|
|
127
|
+
sass: "^1.55.0",
|
|
128
|
+
"sass-loader": "^13.2.0",
|
|
129
|
+
"semantic-release": "^19.0.5",
|
|
130
|
+
"storybook-dark-mode": "^2.0.4",
|
|
131
|
+
"style-loader": "^3.3.1",
|
|
132
|
+
stylelint: "^14.14.0",
|
|
133
|
+
"stylelint-config-prettier": "^9.0.3",
|
|
134
|
+
"stylelint-config-standard-scss": "^5.0.0",
|
|
135
|
+
treeify: "^1.1.0",
|
|
136
|
+
watch: "^1.0.2",
|
|
137
|
+
webpack: "^5.74.0",
|
|
138
|
+
"webpack-cli": "^4.10.0",
|
|
139
|
+
"webpack-dev-server": "^3.1.14",
|
|
140
|
+
"webpack-node-externals": "^1.7.2"
|
|
141
|
+
};
|
|
142
|
+
var dependencies = {
|
|
143
|
+
classnames: "^2.3.2",
|
|
144
|
+
dayjs: "^1.11.5",
|
|
145
|
+
"draft-js": "^0.11.7",
|
|
146
|
+
"draftjs-to-html": "^0.9.1",
|
|
147
|
+
"file-saver": "^2.0.5",
|
|
148
|
+
highcharts: "^10.2.1",
|
|
149
|
+
"highcharts-react-official": "^3.1.0",
|
|
150
|
+
"html-to-draftjs": "^1.5.0",
|
|
151
|
+
i: "^0.3.7",
|
|
152
|
+
immer: "^9.0.18",
|
|
153
|
+
"jodit-react": "^1.3.23",
|
|
154
|
+
npm: "^9.4.1",
|
|
155
|
+
"pure-react-carousel": "^1.30.1",
|
|
156
|
+
"qrcode.react": "^3.1.0",
|
|
157
|
+
"rc-slider": "^8.6.9",
|
|
158
|
+
"react-beautiful-dnd": "^13.1.1",
|
|
159
|
+
"react-colorful": "^5.6.1",
|
|
160
|
+
"react-custom-scrollbars": "^4.2.1",
|
|
161
|
+
"react-dnd": "^16.0.1",
|
|
162
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
163
|
+
"react-draft-wysiwyg": "^1.15.0",
|
|
164
|
+
"react-fast-compare": "^3.2.0",
|
|
165
|
+
"react-is": "^17.0.2",
|
|
166
|
+
"react-loading-skeleton": "^1.1.1",
|
|
167
|
+
"react-swipeable": "^7.0.0",
|
|
168
|
+
"react-tiny-popover": "^3.4.5",
|
|
169
|
+
"react-tiny-popover-latest": "npm:react-tiny-popover@^6.0.4",
|
|
170
|
+
"react-virtualized": "^9.21.1",
|
|
171
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
172
|
+
xlsx: "^0.18.5"
|
|
173
|
+
};
|
|
174
|
+
var husky = {
|
|
175
|
+
hooks: {
|
|
176
|
+
"pre-commit": "lint-staged --config ./configs/.lintstagedrc.json",
|
|
177
|
+
"commit-msg": "commitlint --config ./configs/commitlint.config.js -E HUSKY_GIT_PARAMS"
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
var browserslist = [
|
|
181
|
+
">0.2%",
|
|
182
|
+
"not dead",
|
|
183
|
+
"not ie <= 11",
|
|
184
|
+
"not op_mini all"
|
|
185
|
+
];
|
|
186
|
+
var config = {
|
|
187
|
+
commitizen: {
|
|
188
|
+
path: "./node_modules/cz-conventional-changelog"
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
var license = "MIT";
|
|
192
|
+
var pgk = {
|
|
193
|
+
name: name,
|
|
194
|
+
description: description,
|
|
195
|
+
version: version,
|
|
196
|
+
author: author,
|
|
197
|
+
homepage: homepage,
|
|
198
|
+
repository: repository,
|
|
199
|
+
bugs: bugs,
|
|
200
|
+
keywords: keywords,
|
|
201
|
+
main: main,
|
|
202
|
+
scripts: scripts,
|
|
203
|
+
peerDependencies: peerDependencies,
|
|
204
|
+
devDependencies: devDependencies,
|
|
205
|
+
dependencies: dependencies,
|
|
206
|
+
husky: husky,
|
|
207
|
+
browserslist: browserslist,
|
|
208
|
+
config: config,
|
|
209
|
+
license: license
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
const GeneUIDesignSystemContext = /*#__PURE__*/createContext();
|
|
213
|
+
function GeneUIProvider(_ref) {
|
|
214
|
+
let {
|
|
215
|
+
children,
|
|
216
|
+
tokens,
|
|
217
|
+
theme
|
|
218
|
+
} = _ref;
|
|
219
|
+
const geneUIProviderRef = useRef(null);
|
|
220
|
+
const contextValue = {
|
|
221
|
+
theme,
|
|
222
|
+
tokens,
|
|
223
|
+
geneUIProviderRef
|
|
224
|
+
};
|
|
225
|
+
return /*#__PURE__*/React__default.createElement(GeneUIDesignSystemContext.Provider, {
|
|
226
|
+
value: contextValue
|
|
227
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
228
|
+
"data-gene-ui-version": pgk.version,
|
|
229
|
+
ref: geneUIProviderRef,
|
|
230
|
+
style: {
|
|
231
|
+
height: '100%'
|
|
232
|
+
}
|
|
233
|
+
}, children));
|
|
234
|
+
}
|
|
235
|
+
GeneUIProvider.propTypes = {
|
|
236
|
+
/**
|
|
237
|
+
* Any valid React node
|
|
238
|
+
*/
|
|
239
|
+
children: propTypesExports.node,
|
|
240
|
+
/**
|
|
241
|
+
* Tokens library object defined by style-dictionary standard,
|
|
242
|
+
* and GeneUI tokens package rules
|
|
243
|
+
*/
|
|
244
|
+
tokens: propTypesExports.object,
|
|
245
|
+
/**
|
|
246
|
+
* Theme which will follow all nested GeneUI components
|
|
247
|
+
*/
|
|
248
|
+
theme: propTypesExports.oneOf(['light', 'dark'])
|
|
249
|
+
};
|
|
250
|
+
GeneUIProvider.defaultProps = {
|
|
251
|
+
tokens: {},
|
|
252
|
+
theme: 'light'
|
|
253
|
+
};
|
|
254
|
+
GeneUIProvider.displayName = 'GeneUIProvider';
|
|
255
|
+
|
|
256
|
+
export { GeneUIDesignSystemContext, GeneUIProvider as default };
|
package/Grid.js
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import React__default, { useRef } from 'react';
|
|
2
|
+
import { p as propTypesExports } from './index-e0af0caf.js';
|
|
3
|
+
import { c as classnames } from './index-6ff23041.js';
|
|
4
|
+
import { u as useWidth } from './useWidth-9f4647f8.js';
|
|
5
|
+
import './dateValidation-67caec66.js';
|
|
6
|
+
import 'react-dom';
|
|
7
|
+
import { g as breakPoints } from './configs-91c86664.js';
|
|
8
|
+
import { _ as _extends } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
9
|
+
import { s as styleInject } from './style-inject.es-746bb8ed.js';
|
|
10
|
+
import './useWindowSize-80369d76.js';
|
|
11
|
+
import './_commonjsHelpers-24198af3.js';
|
|
12
|
+
|
|
13
|
+
/* Recognizing screen size by configuration.
|
|
14
|
+
* Now we have 5 supported screen sizes.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const getPartsByWindowSize = (size, options) => {
|
|
18
|
+
let screenKey = 'xxl';
|
|
19
|
+
let screenSize = options[screenKey];
|
|
20
|
+
for (const key in options) {
|
|
21
|
+
const value = options[key];
|
|
22
|
+
// find value closest to our window size
|
|
23
|
+
if (size <= value && value < screenSize) {
|
|
24
|
+
screenKey = key;
|
|
25
|
+
screenSize = value;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return screenKey;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
function Col(props) {
|
|
32
|
+
const {
|
|
33
|
+
__count,
|
|
34
|
+
__gutter,
|
|
35
|
+
__padding,
|
|
36
|
+
__parentWidth,
|
|
37
|
+
children,
|
|
38
|
+
size,
|
|
39
|
+
className,
|
|
40
|
+
style = {},
|
|
41
|
+
...rest
|
|
42
|
+
} = props;
|
|
43
|
+
const styles = {
|
|
44
|
+
padding: "".concat(__padding / 20, "rem ").concat(__gutter / 20, "rem"),
|
|
45
|
+
...style
|
|
46
|
+
};
|
|
47
|
+
const fit = size || rest[getPartsByWindowSize(__parentWidth, breakPoints)];
|
|
48
|
+
styles.width = "".concat(fit / __count * 100, "%");
|
|
49
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
50
|
+
className: classnames('grid-child', className),
|
|
51
|
+
style: styles
|
|
52
|
+
}, rest), children);
|
|
53
|
+
}
|
|
54
|
+
Col.propTypes = {
|
|
55
|
+
/**
|
|
56
|
+
* Component will calculate width based on this props
|
|
57
|
+
*/
|
|
58
|
+
__parentWidth: propTypesExports.number,
|
|
59
|
+
/**
|
|
60
|
+
* The space between elements vertically
|
|
61
|
+
*/
|
|
62
|
+
__padding: propTypesExports.number,
|
|
63
|
+
/**
|
|
64
|
+
* The space between elements horizontally
|
|
65
|
+
*/
|
|
66
|
+
__gutter: propTypesExports.number,
|
|
67
|
+
/**
|
|
68
|
+
* Defines the number of grids the component is going to use
|
|
69
|
+
*/
|
|
70
|
+
__count: propTypesExports.number,
|
|
71
|
+
/**
|
|
72
|
+
* The CSS class name of the element.
|
|
73
|
+
*/
|
|
74
|
+
className: propTypesExports.string,
|
|
75
|
+
/**
|
|
76
|
+
* Custom stylings
|
|
77
|
+
*/
|
|
78
|
+
style: propTypesExports.object,
|
|
79
|
+
/**
|
|
80
|
+
* Defines the size of grids the component is going to use.
|
|
81
|
+
*/
|
|
82
|
+
xs: propTypesExports.number,
|
|
83
|
+
/**
|
|
84
|
+
* Defines the size of grids the component is going to use.
|
|
85
|
+
*/
|
|
86
|
+
md: propTypesExports.number,
|
|
87
|
+
/**
|
|
88
|
+
* Defines the size of grids the component is going to use.
|
|
89
|
+
*/
|
|
90
|
+
lg: propTypesExports.number,
|
|
91
|
+
/**
|
|
92
|
+
* Defines the size of grids the component is going to use.
|
|
93
|
+
*/
|
|
94
|
+
xl: propTypesExports.number,
|
|
95
|
+
/**
|
|
96
|
+
* Defines the size of grids the component is going to use.
|
|
97
|
+
*/
|
|
98
|
+
xxl: propTypesExports.number,
|
|
99
|
+
/**
|
|
100
|
+
* Custom size for element
|
|
101
|
+
*/
|
|
102
|
+
size: propTypesExports.number,
|
|
103
|
+
/**
|
|
104
|
+
* Any valid react node
|
|
105
|
+
*/
|
|
106
|
+
children: propTypesExports.node
|
|
107
|
+
};
|
|
108
|
+
Col.defaultProps = {
|
|
109
|
+
__parentWidth: 0,
|
|
110
|
+
__padding: 20,
|
|
111
|
+
__gutter: 20,
|
|
112
|
+
__count: 12,
|
|
113
|
+
xs: 1,
|
|
114
|
+
md: 1,
|
|
115
|
+
lg: 1,
|
|
116
|
+
xl: 1,
|
|
117
|
+
xxl: 1
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
var css_248z = "[data-gene-ui-version=\"2.11.0\"] .grid-holder{width:100%}[data-gene-ui-version=\"2.11.0\"] .grid-items-group{display:flex;flex-wrap:wrap;width:100%}[data-gene-ui-version=\"2.11.0\"] .grid-child{display:flex}";
|
|
121
|
+
styleInject(css_248z);
|
|
122
|
+
|
|
123
|
+
function Row(props) {
|
|
124
|
+
const ref = useRef();
|
|
125
|
+
const width = useWidth(ref);
|
|
126
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
127
|
+
ref: ref,
|
|
128
|
+
className: classnames('grid-holder', props.className)
|
|
129
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
130
|
+
className: "grid-items-group",
|
|
131
|
+
style: {
|
|
132
|
+
width: "calc(100% + ".concat(props.gutter / 10, "rem)"),
|
|
133
|
+
margin: "-".concat(props.padding / 20, "rem -").concat(props.gutter / 20, "rem")
|
|
134
|
+
}
|
|
135
|
+
}, React__default.Children.map(props.children, child => /*#__PURE__*/React__default.isValidElement(child) && /*#__PURE__*/React__default.cloneElement(child, {
|
|
136
|
+
__count: props.span,
|
|
137
|
+
__parentWidth: width,
|
|
138
|
+
__padding: props.padding,
|
|
139
|
+
__gutter: props.gutter
|
|
140
|
+
}))));
|
|
141
|
+
}
|
|
142
|
+
Row.propTypes = {
|
|
143
|
+
/**
|
|
144
|
+
* Defines the space between horizontally
|
|
145
|
+
*/
|
|
146
|
+
gutter: propTypesExports.number,
|
|
147
|
+
/**
|
|
148
|
+
* Defines the number of grids the component is going to use
|
|
149
|
+
*/
|
|
150
|
+
span: propTypesExports.number,
|
|
151
|
+
/**
|
|
152
|
+
* Defines the space between vertically
|
|
153
|
+
*/
|
|
154
|
+
padding: propTypesExports.number,
|
|
155
|
+
/**
|
|
156
|
+
* The content of the component.
|
|
157
|
+
*/
|
|
158
|
+
children: propTypesExports.oneOfType([propTypesExports.bool, propTypesExports.node, propTypesExports.element, propTypesExports.instanceOf(Col)])
|
|
159
|
+
};
|
|
160
|
+
Row.defaultProps = {
|
|
161
|
+
gutter: 20,
|
|
162
|
+
padding: 20,
|
|
163
|
+
span: 12
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export { Col, Row };
|
package/Holder.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import './index-e0af0caf.js';
|
|
4
|
+
import './index-6ff23041.js';
|
|
5
|
+
import './index-ac59cb10.js';
|
|
6
|
+
import './configs-91c86664.js';
|
|
7
|
+
import './Icon.js';
|
|
8
|
+
import './Button.js';
|
|
9
|
+
import './Portal.js';
|
|
10
|
+
import './Scrollbar.js';
|
|
11
|
+
export { H as default } from './index-0cf65939.js';
|
|
12
|
+
import './Tooltip.js';
|
|
13
|
+
import './globalStyling-9c60a159.js';
|
|
14
|
+
import './dateValidation-67caec66.js';
|
|
15
|
+
import './_commonjsHelpers-24198af3.js';
|
|
16
|
+
import 'react-dom';
|
|
17
|
+
import './style-inject.es-746bb8ed.js';
|
|
18
|
+
import './GeneUIProvider.js';
|
|
19
|
+
import './Editor.js';
|
|
20
|
+
import './useMount-6fef51a5.js';
|
|
21
|
+
import './useDeviceType-dd51db38.js';
|
|
22
|
+
import './useWindowSize-80369d76.js';
|
|
23
|
+
import './ValidatableUploader.js';
|
|
24
|
+
import './index-d9e8a888.js';
|
|
25
|
+
import './Grid.js';
|
|
26
|
+
import './useWidth-9f4647f8.js';
|
|
27
|
+
import './useKeyDown-38102ae7.js';
|
|
28
|
+
import './BusyLoader.js';
|
|
29
|
+
import './Image.js';
|
|
30
|
+
import './Empty.js';
|
|
31
|
+
import './Checkbox.js';
|
|
32
|
+
import './checkboxRadioSwitcher-5b69d7bd.js';
|
|
33
|
+
import './guid-8ddf77b3.js';
|
|
34
|
+
import './Popover-f4d1cac0.js';
|
|
35
|
+
import './ExtendedInput.js';
|
|
36
|
+
import './index-5cea9a7d.js';
|
|
37
|
+
import './useClickOutside-5183e396.js';
|
|
38
|
+
import './ValidatableRadio.js';
|
|
39
|
+
import './RadioGroup.js';
|
|
40
|
+
import './Radio.js';
|
|
41
|
+
import './ValidatableCheckbox.js';
|
|
42
|
+
import './ValidatableSwitcher.js';
|
|
43
|
+
import './Switcher.js';
|
|
44
|
+
import './ValidatableNumberInput.js';
|
|
45
|
+
import './ValidatableTextInput.js';
|
|
46
|
+
import './ValidatableDatePicker.js';
|
|
47
|
+
import './index-5e722d91.js';
|
|
48
|
+
import './index-702bf24a.js';
|
|
49
|
+
import './index-122432cd.js';
|
|
50
|
+
import './debounce-4419bc2f.js';
|
|
51
|
+
import './DatePicker.js';
|
|
52
|
+
import './localization-4ba17032.js';
|
|
53
|
+
import './checkTimeValidation-e56771be.js';
|
|
54
|
+
import './useEllipsisDetection-ef536015.js';
|
|
55
|
+
import './Tabs.js';
|
|
56
|
+
import './Steps.js';
|
|
57
|
+
import './index-a4635754.js';
|
|
58
|
+
import './Timeline.js';
|
|
59
|
+
import './Card.js';
|
|
60
|
+
import './MobilePopup.js';
|
|
61
|
+
import './Menu.js';
|
|
62
|
+
import './Option.js';
|
|
63
|
+
import './SkeletonLoader.js';
|
|
64
|
+
import './KeyValue.js';
|
|
65
|
+
import './configs.js';
|
|
66
|
+
import './Tag.js';
|
|
67
|
+
import './Alert.js';
|
|
68
|
+
import './index-00fe8887.js';
|
|
69
|
+
import './rangeAndSlider-20599da4.js';
|
|
70
|
+
import './Slider.js';
|
|
71
|
+
import './Pagination.js';
|
|
72
|
+
import './Divider.js';
|
|
73
|
+
import './objectWithoutPropertiesLoose-299691d8.js';
|
|
74
|
+
import './clsx.m-2bb6df4b.js';
|
|
75
|
+
import './index-a59530cd.js';
|
|
76
|
+
import './Notification.js';
|
|
77
|
+
import './Modal.js';
|
|
78
|
+
import './Collapse.js';
|
|
79
|
+
import './Status.js';
|
|
80
|
+
import './Avatar.js';
|
|
81
|
+
import './Search.js';
|
|
82
|
+
import './TextLink.js';
|
|
83
|
+
import './Label.js';
|
|
84
|
+
import './Paper.js';
|
|
85
|
+
import './Badge.js';
|
|
86
|
+
import './Time.js';
|
|
87
|
+
import './Title.js';
|
|
88
|
+
import './index-b7a33c58.js';
|
|
89
|
+
import './QRCode.js';
|
|
90
|
+
import './Progress.js';
|
|
91
|
+
import './MobileNavigation.js';
|
|
92
|
+
import './Products.js';
|
|
93
|
+
import './Breadcrumb.js';
|
|
94
|
+
import './Section.js';
|
|
95
|
+
import './ColorPicker.js';
|
|
96
|
+
import './NavigationMenu.js';
|
|
97
|
+
import './Textarea.js';
|
|
98
|
+
import './AdvancedSearch.js';
|
|
99
|
+
import './LinkButton.js';
|