@geneui/components 2.11.1 → 2.12.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 → ActionableList/index.js} +83 -152
- package/{AdvancedSearch.js → AdvancedSearch/index.js} +291 -304
- package/{Alert.js → Alert/index.js} +19 -20
- package/Avatar/index.js +30 -0
- package/{Badge.js → Badge/index.js} +13 -14
- package/{Breadcrumb.js → Breadcrumb/index.js} +32 -31
- package/{BusyLoader.js → BusyLoader/index.js} +11 -12
- package/{Button.js → Button/index.js} +20 -21
- package/CHANGELOG.md +56 -0
- package/{Card.js → Card/index.js} +82 -94
- package/{CardList.js → CardList/index.js} +118 -165
- package/{CellMeasurerCache-c11cec83.js → CellMeasurerCache-bc2163c1.js} +2 -2
- package/{index-0cf65939.js → Charts/index.js} +17103 -30439
- 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} +46 -43
- package/{DatePicker.js → DatePicker/index.js} +106 -108
- package/{index-5e722d91.js → DatePickerInput/index.js} +103 -89
- 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} +83 -73
- package/Form/index.js +86 -0
- package/{FormContainer.js → FormContainer/index.js} +25 -26
- package/FormableCheckbox/index.js +26 -0
- package/FormableDatePicker/index.js +42 -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.js → Image/index.js} +29 -30
- package/ImagePreview/index.js +481 -0
- package/{KeyValue.js → KeyValue/index.js} +11 -12
- package/LICENSE +21 -0
- package/{Label.js → Label/index.js} +8 -9
- package/LinkButton/index.js +67 -0
- package/{Menu.js → Menu/index.js} +39 -34
- package/{MobileNavigation.js → MobileNavigation/index.js} +19 -20
- 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} +44 -35
- package/{Notification.js → Notification/index.js} +24 -25
- package/{Option.js → Option/index.js} +37 -39
- package/Overlay/index.js +189 -0
- package/{Overspread.js → Overspread/index.js} +65 -121
- package/{Pagination.js → Pagination/index.js} +35 -34
- package/Paper/index.js +96 -0
- package/{index-a4635754.js → Popover/index.js} +48 -58
- package/{index-702bf24a.js → PopoverV2/index.js} +57 -1006
- package/{Portal.js → Portal/index.js} +7 -8
- package/{Products.js → Products/index.js} +20 -21
- package/Profile/index.js +585 -0
- package/{Progress.js → Progress/index.js} +24 -25
- 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-b7928765.js → RichEditor-8b9c3afa.js} +18 -18
- package/{Scrollbar.js → Scrollbar/index.js} +15 -17
- package/{Search.js → Search/index.js} +25 -24
- package/{SearchWithDropdown.js → SearchWithDropdown/index.js} +47 -104
- package/{Section.js → Section/index.js} +15 -16
- package/{SkeletonLoader.js → SkeletonLoader/index.js} +13 -14
- package/{Slider.js → Slider/index.js} +46 -43
- package/{Status.js → Status/index.js} +23 -24
- package/{Steps.js → Steps/index.js} +42 -41
- package/{index-5cea9a7d.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} +132 -168
- package/{Tabs.js → Tabs/index.js} +27 -28
- package/{Tag.js → Tag/index.js} +17 -18
- 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 +556 -0
- package/{Timeline.js → Timeline/index.js} +19 -20
- package/{Title.js → Title/index.js} +13 -14
- 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-d9e8a888.js → Uploader/index.js} +119 -116
- package/{ValidatableCheckbox.js → ValidatableCheckbox/index.js} +23 -24
- package/{ValidatableDatePicker.js → ValidatableDatePicker/index.js} +45 -42
- package/ValidatableDropdown/index.js +139 -0
- package/ValidatableElements/index.js +68 -0
- package/ValidatableMultiSelectDropdown/index.js +150 -0
- package/{ValidatableNumberInput.js → ValidatableNumberInput/index.js} +34 -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-45eafea6.js +90 -0
- package/{index-a59530cd.js → index-583e0b30.js} +1 -1
- package/{index-67f4d4d1.js → index-78d2ea5b.js} +684 -752
- package/{index-ac59cb10.js → index-a0e4e333.js} +6 -6
- package/{index-e8776f3d.js → index-b1e429a7.js} +1 -1
- package/index-bd525a3a.js +10054 -0
- package/index.d.ts +115 -0
- package/index.js +138 -113
- package/index.mobile.d.ts +16 -0
- package/jsx-runtime-57b40d9e.js +957 -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/Avatar.js +0 -77
- 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/ImagePreview.js +0 -99
- package/LinkButton.js +0 -104
- package/ModuleTitle.js +0 -99
- package/Overlay.js +0 -99
- package/Paper.js +0 -97
- package/Popover.js +0 -20
- package/PopoverV2.js +0 -19
- package/Profile.js +0 -99
- package/Range.js +0 -14
- package/RichEditor.js +0 -13
- package/SuggestionList.js +0 -15
- package/Table.js +0 -102
- package/TimePicker.js +0 -99
- 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-b7a33c58.js +0 -11
- package/index-e0af0caf.js +0 -1182
- package/useMount-6fef51a5.js +0 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useLayoutEffect, useEffect, useMemo as useMemo$1, useContext, useReducer, useRef, useState } from 'react';
|
|
2
|
-
import { a as _setPrototypeOf, b as _objectWithoutPropertiesLoose, c as _extends } from './objectWithoutPropertiesLoose-
|
|
3
|
-
import { r as reactIsExports$1, c as compose, b as bindActionCreators$1, a as createStore$1, d as applyMiddleware } from './index-
|
|
4
|
-
import
|
|
2
|
+
import { a as _setPrototypeOf, b as _objectWithoutPropertiesLoose, c as _extends } from './objectWithoutPropertiesLoose-d8a4a68c.js';
|
|
3
|
+
import { r as reactIsExports$1, c as compose, b as bindActionCreators$1, a as createStore$1, d as applyMiddleware } from './index-b1e429a7.js';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
5
|
import ReactDOM__default, { unstable_batchedUpdates } from 'react-dom';
|
|
6
6
|
|
|
7
7
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -203,13 +203,13 @@ function Provider(_ref) {
|
|
|
203
203
|
|
|
204
204
|
if (process.env.NODE_ENV !== 'production') {
|
|
205
205
|
Provider.propTypes = {
|
|
206
|
-
store:
|
|
207
|
-
subscribe:
|
|
208
|
-
dispatch:
|
|
209
|
-
getState:
|
|
206
|
+
store: PropTypes.shape({
|
|
207
|
+
subscribe: PropTypes.func.isRequired,
|
|
208
|
+
dispatch: PropTypes.func.isRequired,
|
|
209
|
+
getState: PropTypes.func.isRequired
|
|
210
210
|
}),
|
|
211
|
-
context:
|
|
212
|
-
children:
|
|
211
|
+
context: PropTypes.object,
|
|
212
|
+
children: PropTypes.any
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
215
|
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
function componentWillMount() {
|
|
9
|
+
// Call this.constructor.gDSFP to support sub-classes.
|
|
10
|
+
var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
11
|
+
if (state !== null && state !== undefined) {
|
|
12
|
+
this.setState(state);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function componentWillReceiveProps(nextProps) {
|
|
17
|
+
// Call this.constructor.gDSFP to support sub-classes.
|
|
18
|
+
// Use the setState() updater to ensure state isn't stale in certain edge cases.
|
|
19
|
+
function updater(prevState) {
|
|
20
|
+
var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);
|
|
21
|
+
return state !== null && state !== undefined ? state : null;
|
|
22
|
+
}
|
|
23
|
+
// Binding "this" is important for shallow renderer support.
|
|
24
|
+
this.setState(updater.bind(this));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function componentWillUpdate(nextProps, nextState) {
|
|
28
|
+
try {
|
|
29
|
+
var prevProps = this.props;
|
|
30
|
+
var prevState = this.state;
|
|
31
|
+
this.props = nextProps;
|
|
32
|
+
this.state = nextState;
|
|
33
|
+
this.__reactInternalSnapshotFlag = true;
|
|
34
|
+
this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
|
|
35
|
+
prevProps,
|
|
36
|
+
prevState
|
|
37
|
+
);
|
|
38
|
+
} finally {
|
|
39
|
+
this.props = prevProps;
|
|
40
|
+
this.state = prevState;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// React may warn about cWM/cWRP/cWU methods being deprecated.
|
|
45
|
+
// Add a flag to suppress these warnings for this special case.
|
|
46
|
+
componentWillMount.__suppressDeprecationWarning = true;
|
|
47
|
+
componentWillReceiveProps.__suppressDeprecationWarning = true;
|
|
48
|
+
componentWillUpdate.__suppressDeprecationWarning = true;
|
|
49
|
+
|
|
50
|
+
function polyfill(Component) {
|
|
51
|
+
var prototype = Component.prototype;
|
|
52
|
+
|
|
53
|
+
if (!prototype || !prototype.isReactComponent) {
|
|
54
|
+
throw new Error('Can only polyfill class components');
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (
|
|
58
|
+
typeof Component.getDerivedStateFromProps !== 'function' &&
|
|
59
|
+
typeof prototype.getSnapshotBeforeUpdate !== 'function'
|
|
60
|
+
) {
|
|
61
|
+
return Component;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// If new component APIs are defined, "unsafe" lifecycles won't be called.
|
|
65
|
+
// Error if any of these lifecycles are present,
|
|
66
|
+
// Because they would work differently between older and newer (16.3+) versions of React.
|
|
67
|
+
var foundWillMountName = null;
|
|
68
|
+
var foundWillReceivePropsName = null;
|
|
69
|
+
var foundWillUpdateName = null;
|
|
70
|
+
if (typeof prototype.componentWillMount === 'function') {
|
|
71
|
+
foundWillMountName = 'componentWillMount';
|
|
72
|
+
} else if (typeof prototype.UNSAFE_componentWillMount === 'function') {
|
|
73
|
+
foundWillMountName = 'UNSAFE_componentWillMount';
|
|
74
|
+
}
|
|
75
|
+
if (typeof prototype.componentWillReceiveProps === 'function') {
|
|
76
|
+
foundWillReceivePropsName = 'componentWillReceiveProps';
|
|
77
|
+
} else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {
|
|
78
|
+
foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
|
|
79
|
+
}
|
|
80
|
+
if (typeof prototype.componentWillUpdate === 'function') {
|
|
81
|
+
foundWillUpdateName = 'componentWillUpdate';
|
|
82
|
+
} else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {
|
|
83
|
+
foundWillUpdateName = 'UNSAFE_componentWillUpdate';
|
|
84
|
+
}
|
|
85
|
+
if (
|
|
86
|
+
foundWillMountName !== null ||
|
|
87
|
+
foundWillReceivePropsName !== null ||
|
|
88
|
+
foundWillUpdateName !== null
|
|
89
|
+
) {
|
|
90
|
+
var componentName = Component.displayName || Component.name;
|
|
91
|
+
var newApiName =
|
|
92
|
+
typeof Component.getDerivedStateFromProps === 'function'
|
|
93
|
+
? 'getDerivedStateFromProps()'
|
|
94
|
+
: 'getSnapshotBeforeUpdate()';
|
|
95
|
+
|
|
96
|
+
throw Error(
|
|
97
|
+
'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' +
|
|
98
|
+
componentName +
|
|
99
|
+
' uses ' +
|
|
100
|
+
newApiName +
|
|
101
|
+
' but also contains the following legacy lifecycles:' +
|
|
102
|
+
(foundWillMountName !== null ? '\n ' + foundWillMountName : '') +
|
|
103
|
+
(foundWillReceivePropsName !== null
|
|
104
|
+
? '\n ' + foundWillReceivePropsName
|
|
105
|
+
: '') +
|
|
106
|
+
(foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') +
|
|
107
|
+
'\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' +
|
|
108
|
+
'https://fb.me/react-async-component-lifecycle-hooks'
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// React <= 16.2 does not support static getDerivedStateFromProps.
|
|
113
|
+
// As a workaround, use cWM and cWRP to invoke the new static lifecycle.
|
|
114
|
+
// Newer versions of React will ignore these lifecycles if gDSFP exists.
|
|
115
|
+
if (typeof Component.getDerivedStateFromProps === 'function') {
|
|
116
|
+
prototype.componentWillMount = componentWillMount;
|
|
117
|
+
prototype.componentWillReceiveProps = componentWillReceiveProps;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// React <= 16.2 does not support getSnapshotBeforeUpdate.
|
|
121
|
+
// As a workaround, use cWU to invoke the new lifecycle.
|
|
122
|
+
// Newer versions of React will ignore that lifecycle if gSBU exists.
|
|
123
|
+
if (typeof prototype.getSnapshotBeforeUpdate === 'function') {
|
|
124
|
+
if (typeof prototype.componentDidUpdate !== 'function') {
|
|
125
|
+
throw new Error(
|
|
126
|
+
'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
prototype.componentWillUpdate = componentWillUpdate;
|
|
131
|
+
|
|
132
|
+
var componentDidUpdate = prototype.componentDidUpdate;
|
|
133
|
+
|
|
134
|
+
prototype.componentDidUpdate = function componentDidUpdatePolyfill(
|
|
135
|
+
prevProps,
|
|
136
|
+
prevState,
|
|
137
|
+
maybeSnapshot
|
|
138
|
+
) {
|
|
139
|
+
// 16.3+ will not execute our will-update method;
|
|
140
|
+
// It will pass a snapshot value to did-update though.
|
|
141
|
+
// Older versions will require our polyfilled will-update value.
|
|
142
|
+
// We need to handle both cases, but can't just check for the presence of "maybeSnapshot",
|
|
143
|
+
// Because for <= 15.x versions this might be a "prevContext" object.
|
|
144
|
+
// We also can't just check "__reactInternalSnapshot",
|
|
145
|
+
// Because get-snapshot might return a falsy value.
|
|
146
|
+
// So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.
|
|
147
|
+
var snapshot = this.__reactInternalSnapshotFlag
|
|
148
|
+
? this.__reactInternalSnapshot
|
|
149
|
+
: maybeSnapshot;
|
|
150
|
+
|
|
151
|
+
componentDidUpdate.call(this, prevProps, prevState, snapshot);
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return Component;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export { polyfill as p };
|
package/Avatar.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { p as propTypesExports } from './index-e0af0caf.js';
|
|
3
|
-
import { c as classnames } from './index-6ff23041.js';
|
|
4
|
-
import { g as getInitials, n as noop } from './index-ac59cb10.js';
|
|
5
|
-
import './globalStyling-9c60a159.js';
|
|
6
|
-
import { s as styleInject } from './style-inject.es-746bb8ed.js';
|
|
7
|
-
import './dateValidation-67caec66.js';
|
|
8
|
-
import './_commonjsHelpers-24198af3.js';
|
|
9
|
-
import 'react-dom';
|
|
10
|
-
|
|
11
|
-
var css_248z = "[data-gene-ui-version=\"2.11.0\"] .user-avatar-c{--size:2.6rem;background:var(--background-sc) no-repeat 50% 50%/cover;border-radius:.3rem;box-shadow:0 0 0 0 rgba(var(--background-sc-rgb),.2);color:var(--background);font:600 calc(var(--size)/2.3)/var(--size) var(--font-family);height:var(--size);text-align:center;transition:box-shadow .3s;width:var(--size)}[data-gene-ui-version=\"2.11.0\"] .user-avatar-c.clickable{cursor:pointer}[data-gene-ui-version=\"2.11.0\"] .user-avatar-c.clickable:hover{box-shadow:0 0 0 .3rem rgba(var(--background-sc-rgb),.2)}[data-gene-ui-version=\"2.11.0\"] .user-avatar-c:not(.color-default){background:var(--background) no-repeat 50% 50%/cover;box-shadow:0 0 0 0 rgba(var(--background-rgb),.2);color:var(--background-sc)}[data-gene-ui-version=\"2.11.0\"] .user-avatar-c:not(.color-default).clickable:hover{box-shadow:0 0 0 .3rem rgba(var(--background-rgb),.2)}[data-gene-ui-version=\"2.11.0\"] .user-avatar-c.color-green{--background:var(--confirm);--background-hover:var(--confirm-hover);--background-sc:var(--confirm-sc);--background-rgb:var(--confirm-rgb);--background-sc-rgb:var(--confirm-sc-rgb)}[data-gene-ui-version=\"2.11.0\"] .user-avatar-c.color-red{--background:var(--danger);--background-hover:var(--danger-hover);--background-sc:var(--danger-sc);--background-rgb:var(--danger-rgb);--background-sc-rgb:var(--danger-sc-rgb)}[data-gene-ui-version=\"2.11.0\"] .user-avatar-c.shape-circle{border-radius:100%}[data-gene-ui-version=\"2.11.0\"] .user-avatar-c.text-small{font-size:calc(var(--size)/2.5)}[data-gene-ui-version=\"2.11.0\"] .user-avatar-c[class*=bc-icon-]{font-size:calc(var(--size)/2);line-height:var(--size)}[data-gene-ui-version=\"2.11.0\"] .user-avatar-c.size-small{--size:2.2rem}[data-gene-ui-version=\"2.11.0\"] .user-avatar-c.size-medium{--size:3.6rem}[data-gene-ui-version=\"2.11.0\"] .user-avatar-c.size-big{--size:4.6rem}";
|
|
12
|
-
styleInject(css_248z);
|
|
13
|
-
|
|
14
|
-
function Avatar(_ref) {
|
|
15
|
-
let {
|
|
16
|
-
src,
|
|
17
|
-
icon,
|
|
18
|
-
size,
|
|
19
|
-
color,
|
|
20
|
-
shape,
|
|
21
|
-
onClick,
|
|
22
|
-
children
|
|
23
|
-
} = _ref;
|
|
24
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
25
|
-
className: classnames('user-avatar-c', {
|
|
26
|
-
["size-".concat(size)]: size,
|
|
27
|
-
["color-".concat(color)]: color,
|
|
28
|
-
["shape-".concat(shape)]: shape,
|
|
29
|
-
[icon]: !src && icon,
|
|
30
|
-
'text-small': typeof children === 'string' && children.length > 1,
|
|
31
|
-
clickable: !!onClick
|
|
32
|
-
}),
|
|
33
|
-
style: {
|
|
34
|
-
backgroundImage: src ? "url(".concat(src, ")") : ''
|
|
35
|
-
},
|
|
36
|
-
onClick: onClick
|
|
37
|
-
}, !src && !icon && children && getInitials(children));
|
|
38
|
-
}
|
|
39
|
-
Avatar.propTypes = {
|
|
40
|
-
/**
|
|
41
|
-
* Background image source
|
|
42
|
-
*/
|
|
43
|
-
src: propTypesExports.string,
|
|
44
|
-
/**
|
|
45
|
-
* The property will show icon. This property will work when "src" is not specified.
|
|
46
|
-
*/
|
|
47
|
-
icon: propTypesExports.string,
|
|
48
|
-
/**
|
|
49
|
-
* The property will show first two letters in upper case. This will work when "src" or "icon" are not specified.
|
|
50
|
-
*/
|
|
51
|
-
children: propTypesExports.string,
|
|
52
|
-
/**
|
|
53
|
-
* Avatar size
|
|
54
|
-
*/
|
|
55
|
-
size: propTypesExports.oneOf(['small', 'default', 'medium', 'big']),
|
|
56
|
-
/**
|
|
57
|
-
* Avatar color
|
|
58
|
-
*/
|
|
59
|
-
color: propTypesExports.oneOf(['default', 'green', 'red']),
|
|
60
|
-
/**
|
|
61
|
-
* Avatar shape
|
|
62
|
-
*/
|
|
63
|
-
shape: propTypesExports.oneOf(['circle', 'square']),
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* Handle click event on avatar component((event: Event) => void 0).
|
|
67
|
-
*/
|
|
68
|
-
onClick: propTypesExports.func
|
|
69
|
-
};
|
|
70
|
-
Avatar.defaultProps = {
|
|
71
|
-
onClick: noop,
|
|
72
|
-
size: 'default',
|
|
73
|
-
color: 'default',
|
|
74
|
-
shape: 'circle'
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export { Avatar as default };
|
package/Charts.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import './globalStyling-9c60a159.js';
|
|
2
|
-
export { A as AreaChart, B as BarChart, e as ColumnChart, l as ColumnRangeChart, f as DalColumnChart, i as DonutChart, F as FunnelChart, k as HeatMapChart, L as LineChart, c as MapChart, h as PieChart, j as ScatterChart, S as StackedBarChart, g as StackedColumnChart, d as TreeMapChart } from './index-0cf65939.js';
|
|
3
|
-
import './style-inject.es-746bb8ed.js';
|
|
4
|
-
import './Editor.js';
|
|
5
|
-
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
6
|
-
import 'react';
|
|
7
|
-
import './index-e0af0caf.js';
|
|
8
|
-
import './_commonjsHelpers-24198af3.js';
|
|
9
|
-
import 'react-dom';
|
|
10
|
-
import './index-6ff23041.js';
|
|
11
|
-
import './index-ac59cb10.js';
|
|
12
|
-
import './dateValidation-67caec66.js';
|
|
13
|
-
import './useMount-6fef51a5.js';
|
|
14
|
-
import './useDeviceType-dd51db38.js';
|
|
15
|
-
import './configs-91c86664.js';
|
|
16
|
-
import './useWindowSize-80369d76.js';
|
|
17
|
-
import './Button.js';
|
|
18
|
-
import './Icon.js';
|
|
19
|
-
import './ValidatableUploader.js';
|
|
20
|
-
import './index-d9e8a888.js';
|
|
21
|
-
import './Grid.js';
|
|
22
|
-
import './useWidth-9f4647f8.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 './GeneUIProvider.js';
|
|
30
|
-
import './Checkbox.js';
|
|
31
|
-
import './checkboxRadioSwitcher-5b69d7bd.js';
|
|
32
|
-
import './guid-8ddf77b3.js';
|
|
33
|
-
import './ExtendedInput.js';
|
|
34
|
-
import './index-5cea9a7d.js';
|
|
35
|
-
import './useClickOutside-5183e396.js';
|
|
36
|
-
import './Scrollbar.js';
|
|
37
|
-
import './ValidatableRadio.js';
|
|
38
|
-
import './RadioGroup.js';
|
|
39
|
-
import './Radio.js';
|
|
40
|
-
import './ValidatableCheckbox.js';
|
|
41
|
-
import './ValidatableSwitcher.js';
|
|
42
|
-
import './Switcher.js';
|
|
43
|
-
import './ValidatableNumberInput.js';
|
|
44
|
-
import './ValidatableTextInput.js';
|
|
45
|
-
import './ValidatableDatePicker.js';
|
|
46
|
-
import './index-5e722d91.js';
|
|
47
|
-
import './index-702bf24a.js';
|
|
48
|
-
import './index-122432cd.js';
|
|
49
|
-
import './debounce-4419bc2f.js';
|
|
50
|
-
import './DatePicker.js';
|
|
51
|
-
import './localization-4ba17032.js';
|
|
52
|
-
import './checkTimeValidation-e56771be.js';
|
|
53
|
-
import './useEllipsisDetection-ef536015.js';
|
|
54
|
-
import './Tabs.js';
|
|
55
|
-
import './Steps.js';
|
|
56
|
-
import './index-a4635754.js';
|
|
57
|
-
import './Portal.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';
|
package/ComboBox.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import './index-e0af0caf.js';
|
|
4
|
-
import './index-6ff23041.js';
|
|
5
|
-
import './configs-91c86664.js';
|
|
6
|
-
import './index-ac59cb10.js';
|
|
7
|
-
import './useClickOutside-5183e396.js';
|
|
8
|
-
import './Tooltip.js';
|
|
9
|
-
import './Icon.js';
|
|
10
|
-
export { C as default } from './index-0cf65939.js';
|
|
11
|
-
import './index-5cea9a7d.js';
|
|
12
|
-
import './Scrollbar.js';
|
|
13
|
-
import './globalStyling-9c60a159.js';
|
|
14
|
-
import './dateValidation-67caec66.js';
|
|
15
|
-
import './_commonjsHelpers-24198af3.js';
|
|
16
|
-
import 'react-dom';
|
|
17
|
-
import './Popover-f4d1cac0.js';
|
|
18
|
-
import './useDeviceType-dd51db38.js';
|
|
19
|
-
import './useWindowSize-80369d76.js';
|
|
20
|
-
import './GeneUIProvider.js';
|
|
21
|
-
import './style-inject.es-746bb8ed.js';
|
|
22
|
-
import './Editor.js';
|
|
23
|
-
import './useMount-6fef51a5.js';
|
|
24
|
-
import './Button.js';
|
|
25
|
-
import './ValidatableUploader.js';
|
|
26
|
-
import './index-d9e8a888.js';
|
|
27
|
-
import './Grid.js';
|
|
28
|
-
import './useWidth-9f4647f8.js';
|
|
29
|
-
import './useKeyDown-38102ae7.js';
|
|
30
|
-
import './BusyLoader.js';
|
|
31
|
-
import './Image.js';
|
|
32
|
-
import './Empty.js';
|
|
33
|
-
import './Checkbox.js';
|
|
34
|
-
import './checkboxRadioSwitcher-5b69d7bd.js';
|
|
35
|
-
import './guid-8ddf77b3.js';
|
|
36
|
-
import './ExtendedInput.js';
|
|
37
|
-
import './ValidatableRadio.js';
|
|
38
|
-
import './RadioGroup.js';
|
|
39
|
-
import './Radio.js';
|
|
40
|
-
import './ValidatableCheckbox.js';
|
|
41
|
-
import './ValidatableSwitcher.js';
|
|
42
|
-
import './Switcher.js';
|
|
43
|
-
import './ValidatableNumberInput.js';
|
|
44
|
-
import './ValidatableTextInput.js';
|
|
45
|
-
import './ValidatableDatePicker.js';
|
|
46
|
-
import './index-5e722d91.js';
|
|
47
|
-
import './index-702bf24a.js';
|
|
48
|
-
import './index-122432cd.js';
|
|
49
|
-
import './debounce-4419bc2f.js';
|
|
50
|
-
import './DatePicker.js';
|
|
51
|
-
import './localization-4ba17032.js';
|
|
52
|
-
import './checkTimeValidation-e56771be.js';
|
|
53
|
-
import './useEllipsisDetection-ef536015.js';
|
|
54
|
-
import './Tabs.js';
|
|
55
|
-
import './Steps.js';
|
|
56
|
-
import './index-a4635754.js';
|
|
57
|
-
import './Portal.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';
|
package/Counter.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import './index-ac59cb10.js';
|
|
3
|
-
import './index-6ff23041.js';
|
|
4
|
-
import './index-e0af0caf.js';
|
|
5
|
-
import './useKeyDown-38102ae7.js';
|
|
6
|
-
import './configs-91c86664.js';
|
|
7
|
-
import './Tooltip.js';
|
|
8
|
-
import './ExtendedInput.js';
|
|
9
|
-
import './TextLink.js';
|
|
10
|
-
import './Button.js';
|
|
11
|
-
import './Label.js';
|
|
12
|
-
import './Icon.js';
|
|
13
|
-
import './Switcher.js';
|
|
14
|
-
import './Divider.js';
|
|
15
|
-
import './Radio.js';
|
|
16
|
-
import './Paper.js';
|
|
17
|
-
import './Portal.js';
|
|
18
|
-
import './Avatar.js';
|
|
19
|
-
import './Badge.js';
|
|
20
|
-
import './BusyLoader.js';
|
|
21
|
-
export { a as default } from './index-0cf65939.js';
|
|
22
|
-
import './SkeletonLoader.js';
|
|
23
|
-
import './Scrollbar.js';
|
|
24
|
-
import './Time.js';
|
|
25
|
-
import './Empty.js';
|
|
26
|
-
import './index-a4635754.js';
|
|
27
|
-
import './index-702bf24a.js';
|
|
28
|
-
import './Title.js';
|
|
29
|
-
import './Image.js';
|
|
30
|
-
import './KeyValue.js';
|
|
31
|
-
import './Option.js';
|
|
32
|
-
import './QRCode.js';
|
|
33
|
-
import './globalStyling-9c60a159.js';
|
|
34
|
-
import './dateValidation-67caec66.js';
|
|
35
|
-
import './_commonjsHelpers-24198af3.js';
|
|
36
|
-
import 'react-dom';
|
|
37
|
-
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
38
|
-
import './Popover-f4d1cac0.js';
|
|
39
|
-
import './useDeviceType-dd51db38.js';
|
|
40
|
-
import './useWindowSize-80369d76.js';
|
|
41
|
-
import './GeneUIProvider.js';
|
|
42
|
-
import './style-inject.es-746bb8ed.js';
|
|
43
|
-
import './index-5cea9a7d.js';
|
|
44
|
-
import './useClickOutside-5183e396.js';
|
|
45
|
-
import './checkboxRadioSwitcher-5b69d7bd.js';
|
|
46
|
-
import './guid-8ddf77b3.js';
|
|
47
|
-
import './configs.js';
|
|
48
|
-
import './Editor.js';
|
|
49
|
-
import './useMount-6fef51a5.js';
|
|
50
|
-
import './ValidatableUploader.js';
|
|
51
|
-
import './index-d9e8a888.js';
|
|
52
|
-
import './Grid.js';
|
|
53
|
-
import './useWidth-9f4647f8.js';
|
|
54
|
-
import './Checkbox.js';
|
|
55
|
-
import './ValidatableRadio.js';
|
|
56
|
-
import './RadioGroup.js';
|
|
57
|
-
import './ValidatableCheckbox.js';
|
|
58
|
-
import './ValidatableSwitcher.js';
|
|
59
|
-
import './ValidatableNumberInput.js';
|
|
60
|
-
import './ValidatableTextInput.js';
|
|
61
|
-
import './ValidatableDatePicker.js';
|
|
62
|
-
import './index-5e722d91.js';
|
|
63
|
-
import './DatePicker.js';
|
|
64
|
-
import './localization-4ba17032.js';
|
|
65
|
-
import './checkTimeValidation-e56771be.js';
|
|
66
|
-
import './index-122432cd.js';
|
|
67
|
-
import './debounce-4419bc2f.js';
|
|
68
|
-
import './useEllipsisDetection-ef536015.js';
|
|
69
|
-
import './Tabs.js';
|
|
70
|
-
import './Steps.js';
|
|
71
|
-
import './Timeline.js';
|
|
72
|
-
import './Card.js';
|
|
73
|
-
import './MobilePopup.js';
|
|
74
|
-
import './Menu.js';
|
|
75
|
-
import './Tag.js';
|
|
76
|
-
import './Alert.js';
|
|
77
|
-
import './index-00fe8887.js';
|
|
78
|
-
import './rangeAndSlider-20599da4.js';
|
|
79
|
-
import './Slider.js';
|
|
80
|
-
import './Pagination.js';
|
|
81
|
-
import './objectWithoutPropertiesLoose-299691d8.js';
|
|
82
|
-
import './clsx.m-2bb6df4b.js';
|
|
83
|
-
import './index-a59530cd.js';
|
|
84
|
-
import './Notification.js';
|
|
85
|
-
import './Modal.js';
|
|
86
|
-
import './Collapse.js';
|
|
87
|
-
import './Status.js';
|
|
88
|
-
import './Search.js';
|
|
89
|
-
import './index-b7a33c58.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';
|
package/DatePickerInput.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import './globalStyling-9c60a159.js';
|
|
2
|
-
export { D as default } from './index-5e722d91.js';
|
|
3
|
-
import './style-inject.es-746bb8ed.js';
|
|
4
|
-
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
5
|
-
import 'react';
|
|
6
|
-
import './index-e0af0caf.js';
|
|
7
|
-
import './dateValidation-67caec66.js';
|
|
8
|
-
import './_commonjsHelpers-24198af3.js';
|
|
9
|
-
import './configs-91c86664.js';
|
|
10
|
-
import './index-ac59cb10.js';
|
|
11
|
-
import 'react-dom';
|
|
12
|
-
import './useKeyDown-38102ae7.js';
|
|
13
|
-
import './useDeviceType-dd51db38.js';
|
|
14
|
-
import './useWindowSize-80369d76.js';
|
|
15
|
-
import './index-6ff23041.js';
|
|
16
|
-
import './index-702bf24a.js';
|
|
17
|
-
import './index-122432cd.js';
|
|
18
|
-
import './useClickOutside-5183e396.js';
|
|
19
|
-
import './Scrollbar.js';
|
|
20
|
-
import './GeneUIProvider.js';
|
|
21
|
-
import './debounce-4419bc2f.js';
|
|
22
|
-
import './DatePicker.js';
|
|
23
|
-
import './guid-8ddf77b3.js';
|
|
24
|
-
import './Button.js';
|
|
25
|
-
import './Icon.js';
|
|
26
|
-
import './ExtendedInput.js';
|
|
27
|
-
import './index-5cea9a7d.js';
|
|
28
|
-
import './Tooltip.js';
|
|
29
|
-
import './Popover-f4d1cac0.js';
|
|
30
|
-
import './localization-4ba17032.js';
|