diginet-core-ui 1.3.78 → 1.3.79
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/components/accordion/details.js +2 -6
- package/components/accordion/group.js +2 -9
- package/components/accordion/index.js +2 -15
- package/components/accordion/summary.js +4 -27
- package/components/alert/index.js +98 -137
- package/components/alert/notify.js +97 -166
- package/components/avatar/index.js +4 -63
- package/components/badge/index.js +7 -34
- package/components/button/icon.js +120 -186
- package/components/button/index.js +136 -205
- package/components/button/more.js +0 -12
- package/components/button/ripple-effect.js +46 -44
- package/components/card/body.js +2 -7
- package/components/card/extra.js +2 -7
- package/components/card/footer.js +2 -7
- package/components/card/header.js +2 -7
- package/components/card/index.js +2 -22
- package/components/chart/Pie/Circle.js +0 -1
- package/components/chart/Pie/Sector.js +0 -17
- package/components/chart/Pie/Sectors.js +0 -10
- package/components/chart/Pie/index.js +4 -36
- package/components/chart/Pie-v2/Circle.js +0 -1
- package/components/chart/Pie-v2/Sector.js +0 -13
- package/components/chart/Pie-v2/Sectors.js +0 -20
- package/components/chart/Pie-v2/index.js +11 -38
- package/components/chart/bar/Axis.js +0 -12
- package/components/chart/bar/Bar.js +13 -35
- package/components/chart/bar/Grid.js +0 -18
- package/components/chart/bar/Labels.js +0 -18
- package/components/chart/bar/Points.js +0 -17
- package/components/chart/bar/index.js +6 -26
- package/components/chart/bar-v2/Axis.js +0 -12
- package/components/chart/bar-v2/Bar.js +15 -36
- package/components/chart/bar-v2/Grid.js +0 -18
- package/components/chart/bar-v2/Labels.js +0 -18
- package/components/chart/bar-v2/Points.js +0 -17
- package/components/chart/bar-v2/index.js +6 -26
- package/components/chart/line/Axis.js +4 -16
- package/components/chart/line/Grid.js +2 -19
- package/components/chart/line/Labels.js +0 -18
- package/components/chart/line/Path.js +23 -33
- package/components/chart/line/Point.js +6 -40
- package/components/chart/line/Title.js +0 -3
- package/components/chart/line/index.js +12 -35
- package/components/chart/line-v2/Axis.js +0 -13
- package/components/chart/line-v2/Grid.js +0 -18
- package/components/chart/line-v2/Labels.js +0 -18
- package/components/chart/line-v2/Path.js +23 -33
- package/components/chart/line-v2/Point.js +6 -35
- package/components/chart/line-v2/Title.js +0 -3
- package/components/chart/line-v2/index.js +12 -30
- package/components/check-text/index.js +0 -8
- package/components/check-text/interview-confirmation.js +0 -7
- package/components/check-text/interview-status.js +0 -7
- package/components/chip/attach.js +4 -17
- package/components/chip/index.js +6 -33
- package/components/collapse/index.js +0 -13
- package/components/divider/index.js +0 -8
- package/components/form-control/attachment/index.js +24 -202
- package/components/form-control/calendar/function.js +40 -94
- package/components/form-control/calendar/index.js +5 -30
- package/components/form-control/calendar/range.js +11 -28
- package/components/form-control/checkbox/index.js +4 -37
- package/components/form-control/control/index.js +3 -13
- package/components/form-control/date-picker/index-old.js +18 -0
- package/components/form-control/date-picker/index.js +23 -99
- package/components/form-control/date-range-picker/index.js +86 -221
- package/components/form-control/dropdown/index.js +72 -289
- package/components/form-control/dropdown-box/index.js +6 -35
- package/components/form-control/form/index.js +0 -2
- package/components/form-control/form-group/index.js +1 -6
- package/components/form-control/helper-text/index.js +2 -9
- package/components/form-control/input-base/index.js +218 -399
- package/components/form-control/label/index.js +2 -12
- package/components/form-control/money-input/index.js +43 -132
- package/components/form-control/number-input/index.js +15 -113
- package/components/form-control/number-input/index2.js +78 -119
- package/components/form-control/phone-input/index.js +16 -78
- package/components/form-control/radio/index.js +4 -23
- package/components/form-control/text-input/index.js +33 -256
- package/components/form-control/time-picker/index.js +14 -71
- package/components/form-control/time-picker/swiper.js +21 -73
- package/components/form-control/toggle/index.js +4 -19
- package/components/form-view/helper-text.js +2 -2
- package/components/form-view/index.js +0 -14
- package/components/form-view/input.js +2 -13
- package/components/form-view/label.js +0 -2
- package/components/grid/Col.js +2 -15
- package/components/grid/Container.js +2 -21
- package/components/grid/Row.js +2 -21
- package/components/grid/index.js +2 -43
- package/components/image/index.js +2 -22
- package/components/index.js +62 -31
- package/components/list/list-item-action.js +0 -9
- package/components/list/list-item-icon.js +0 -9
- package/components/list/list-item-text.js +0 -5
- package/components/list/list-item.js +0 -11
- package/components/list/list.js +0 -13
- package/components/list/sub-header.js +0 -4
- package/components/modal/body.js +2 -6
- package/components/modal/footer.js +2 -11
- package/components/modal/header.js +2 -12
- package/components/modal/index.js +2 -10
- package/components/modal/modal.js +11 -52
- package/components/others/extra/index.js +3 -10
- package/components/others/import/index.js +0 -7
- package/components/others/option-wrapper/index.js +4 -7
- package/components/others/scrollbar/index.js +0 -3
- package/components/paging/page-info.js +39 -101
- package/components/paging/page-selector.js +7 -35
- package/components/paging/page-selector2.js +35 -74
- package/components/paper/index.js +0 -11
- package/components/popover/body.js +2 -6
- package/components/popover/footer.js +2 -11
- package/components/popover/header.js +2 -7
- package/components/popover/index.js +39 -123
- package/components/popup/danger_popup.js +0 -19
- package/components/popup/index.js +2 -48
- package/components/popup/proposals_popup.js +10 -49
- package/components/popup/v2/index.js +0 -31
- package/components/progress/circular.js +19 -81
- package/components/progress/linear.js +4 -20
- package/components/rating/index.js +0 -24
- package/components/slider/slider-container.js +3 -40
- package/components/slider/slider-item.js +10 -25
- package/components/status/index.js +2 -16
- package/components/tab/tab-container.js +2 -16
- package/components/tab/tab-header.js +4 -24
- package/components/tab/tab-panel.js +4 -16
- package/components/tab/tab.js +4 -28
- package/components/tooltip/index.js +12 -97
- package/components/tooltip/portal.js +0 -2
- package/components/transfer/index.js +22 -67
- package/components/tree-view/index.js +62 -202
- package/components/typography/index.js +3 -31
- package/global/index.js +0 -8
- package/icons/basic.js +0 -48
- package/icons/effect.js +17 -29
- package/icons/general/clock/clock.js +0 -2
- package/icons/general/color-handler/background.js +0 -2
- package/icons/general/color-handler/text.js +0 -2
- package/icons/general/emoji/emoji.js +0 -2
- package/icons/general/font-properties/bold.js +0 -2
- package/icons/general/font-properties/font-family.js +0 -2
- package/icons/general/font-properties/font-size.js +0 -2
- package/icons/general/font-properties/italic.js +0 -2
- package/icons/general/font-properties/underline.js +0 -2
- package/icons/general/hyperlink/hyperlink.js +0 -2
- package/icons/general/indent/decrease.js +0 -2
- package/icons/general/indent/increase.js +0 -2
- package/icons/general/list/bullets.js +0 -2
- package/icons/general/list/numbering.js +0 -2
- package/icons/general/picture/picture.js +0 -2
- package/icons/general/steps/redo.js +0 -2
- package/icons/general/steps/undo.js +0 -2
- package/icons/general/text-align/center.js +0 -2
- package/icons/general/text-align/justify.js +0 -2
- package/icons/general/text-align/left.js +0 -2
- package/icons/general/text-align/right.js +0 -2
- package/icons/menu/dhr.js +2 -1
- package/icons/menu/index.js +2 -2
- package/icons/menu/v2/index.js +0 -10
- package/package.json +1 -1
- package/readme.md +11 -1
- package/styles/animation.js +15 -58
- package/styles/color-helper.js +24 -54
- package/styles/colors.js +17 -9
- package/styles/general.js +6 -2
- package/styles/typography.js +4 -4
- package/styles/utils.js +2 -2
- package/theme/createBreakpoints.js +7 -18
- package/theme/make-styles.js +2 -5
- package/theme/set-theme.js +3 -6
- package/theme/settings.js +3 -2
- package/theme/theme-provider.js +0 -1
- package/utils/array/array.js +14 -23
- package/utils/classNames.js +0 -5
- package/utils/console.js +0 -6
- package/utils/date.js +13 -82
- package/utils/error/error.js +1 -9
- package/utils/error/errors.js +1 -48
- package/utils/getFileType.js +0 -9
- package/utils/handleBreakpoints.js +0 -5
- package/utils/intersectionObserver.js +0 -5
- package/utils/iterator.js +0 -9
- package/utils/map-parent.js +3 -10
- package/utils/object/extend.js +0 -10
- package/utils/object/object.js +12 -11
- package/utils/parseHTML.js +0 -1
- package/utils/promisify.js +0 -5
- package/utils/randomString.js +0 -7
- package/utils/remove-unicode.js +0 -1
- package/utils/render-portal.js +1 -9
- package/utils/renderHTML.js +4 -6
- package/utils/renderIcon.js +4 -14
- package/utils/sb-template.js +6 -5
- package/utils/string/capitalize.js +0 -1
- package/utils/string/capitalizeSentenceCase.js +0 -2
- package/utils/string/string.js +0 -13
- package/utils/type.js +0 -21
- package/utils/updatePosition.js +4 -5
- package/utils/useDelayUnmount.js +0 -4
- package/utils/useElementSize.js +9 -3
- package/utils/useEventListener.js +12 -6
- package/utils/useInput.js +0 -6
- package/utils/useMediaQuery.js +8 -10
- package/utils/useOnClickOutside.js +0 -2
- package/utils/usePortal.js +3 -10
- package/utils/validate.js +6 -20
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { css, jsx } from '@emotion/core';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -27,9 +26,7 @@ const {
|
|
|
27
26
|
spacing
|
|
28
27
|
} = useTheme();
|
|
29
28
|
const colorMap = new Map([['default', textMain], ['secondary', systemRest]]);
|
|
30
|
-
|
|
31
29
|
const isTextClamped = elm => (elm === null || elm === void 0 ? void 0 : elm.scrollHeight) > (elm === null || elm === void 0 ? void 0 : elm.clientHeight);
|
|
32
|
-
|
|
33
30
|
const Typography = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
34
31
|
action = {},
|
|
35
32
|
capitalize,
|
|
@@ -48,42 +45,32 @@ const Typography = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
48
45
|
...props
|
|
49
46
|
}, reference) => {
|
|
50
47
|
var _ref$current;
|
|
51
|
-
|
|
52
48
|
const ref = useRef(null);
|
|
53
49
|
const [openTooltip, setOpenTooltip] = useState(false);
|
|
54
|
-
|
|
55
50
|
const _TextRootCSS = TextRootCSS(color, type, lineClamp, onClick, hoverTooltip);
|
|
56
|
-
|
|
57
51
|
const showTooltip = () => {
|
|
58
52
|
if (!hoverTooltip) return;
|
|
59
|
-
|
|
60
53
|
if (isTextClamped(ref.current)) {
|
|
61
54
|
setOpenTooltip(true);
|
|
62
55
|
}
|
|
63
56
|
};
|
|
64
|
-
|
|
65
57
|
const hideTooltip = () => {
|
|
66
58
|
if (!hoverTooltip) return;
|
|
67
|
-
|
|
68
59
|
if (isTextClamped(ref.current)) {
|
|
69
60
|
setOpenTooltip(false);
|
|
70
61
|
}
|
|
71
62
|
};
|
|
72
|
-
|
|
73
63
|
useImperativeHandle(reference, () => {
|
|
74
64
|
const currentRef = ref.current || {};
|
|
75
65
|
currentRef.element = ref.current;
|
|
76
|
-
const _instance = {
|
|
66
|
+
const _instance = {
|
|
67
|
+
...action
|
|
77
68
|
}; // methods
|
|
78
|
-
|
|
79
69
|
_instance.__proto__ = {}; // hidden methods
|
|
80
|
-
|
|
81
70
|
currentRef.instance = _instance;
|
|
82
71
|
return currentRef;
|
|
83
72
|
});
|
|
84
|
-
|
|
85
73
|
const classes = (inTooltip = false) => classNames('DGN-UI-Typography', center && 'DGN-Typography-center', fullWidth && 'DGN-Typography-fullWidth', `DGN-Typography-${type}`, uppercase && `DGN-Typography-Uppercase`, capitalize && 'DGN-Typography-Capitalize', !inTooltip && lineClamp && 'DGN-Typography-Clamp', className);
|
|
86
|
-
|
|
87
74
|
const content = Array.isArray(children) && !children.some(node => node && String(node.$$typeof) === 'Symbol(react.element)') ? children.join('') : children;
|
|
88
75
|
const renderTooltip = hoverTooltip ? jsx(Popover, {
|
|
89
76
|
css: PopoverCSS,
|
|
@@ -109,7 +96,6 @@ const Typography = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
109
96
|
}), renderTooltip);
|
|
110
97
|
}, [capitalize, center, children, className, color, fullWidth, hoverTooltip, lineClamp, mapping, onClick, tooltipDirection, type, uppercase, props, openTooltip]);
|
|
111
98
|
}));
|
|
112
|
-
|
|
113
99
|
const TextRootCSS = (color, type, lineClamp, onClick, hoverTooltip) => css`
|
|
114
100
|
${displayInlineBlock};
|
|
115
101
|
${positionRelative};
|
|
@@ -142,7 +128,6 @@ const TextRootCSS = (color, type, lineClamp, onClick, hoverTooltip) => css`
|
|
|
142
128
|
-webkit-box-orient: vertical;
|
|
143
129
|
}
|
|
144
130
|
`;
|
|
145
|
-
|
|
146
131
|
const PopoverCSS = css`
|
|
147
132
|
${pointerEventsNone};
|
|
148
133
|
color: ${textTooltip};
|
|
@@ -162,6 +147,7 @@ Typography.defaultProps = {
|
|
|
162
147
|
tooltipDirection: 'bottom',
|
|
163
148
|
type: 'p1'
|
|
164
149
|
};
|
|
150
|
+
|
|
165
151
|
/** type of text<br/>
|
|
166
152
|
* h1: Title <br/>
|
|
167
153
|
* h2: Header Popup <br/>
|
|
@@ -173,48 +159,34 @@ Typography.defaultProps = {
|
|
|
173
159
|
* p2: Body text <br/>
|
|
174
160
|
* p3: Notice, Tooltip <br/>
|
|
175
161
|
*/
|
|
176
|
-
|
|
177
162
|
export const arrTypeTypography = ['t1', 't2', 't3', 't4', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p1', 'p2', 'p3', 'title1', 'title2', 'title3', 'title4', 'heading1', 'heading2', 'heading3', 'heading4', 'heading5', 'heading6', 'paragraph1', 'paragraph2', 'paragraph3'];
|
|
178
163
|
Typography.propTypes = {
|
|
179
164
|
/** If `true`, text-transform is capitalized. It overrides the value of the `uppercase` prop. */
|
|
180
165
|
capitalize: PropTypes.bool,
|
|
181
|
-
|
|
182
166
|
/** If `true`, text-align is center. */
|
|
183
167
|
center: PropTypes.bool,
|
|
184
|
-
|
|
185
168
|
/** The content of the component. */
|
|
186
169
|
children: PropTypes.node,
|
|
187
|
-
|
|
188
170
|
/** Class for component. */
|
|
189
171
|
className: PropTypes.string,
|
|
190
|
-
|
|
191
172
|
/** Color of text ['primary', 'secondary', 'success', 'warning', 'danger', 'info', '#hex', rgb(#,#,#)]. */
|
|
192
173
|
color: PropTypes.string,
|
|
193
|
-
|
|
194
174
|
/** If `true`, the component will take up the full width of its container. */
|
|
195
175
|
fullWidth: PropTypes.bool,
|
|
196
|
-
|
|
197
176
|
/** If `true`, hover will show tooltip when text clamped. */
|
|
198
177
|
hoverTooltip: PropTypes.bool,
|
|
199
|
-
|
|
200
178
|
/** The line-clamp property truncates text at a specific number of lines. */
|
|
201
179
|
lineClamp: PropTypes.number,
|
|
202
|
-
|
|
203
180
|
/** The component used for the root node. Either a string to use a HTML element or a component. */
|
|
204
181
|
mapping: PropTypes.string,
|
|
205
|
-
|
|
206
182
|
/** Callback fired when the component is clicked. */
|
|
207
183
|
onClick: PropTypes.func,
|
|
208
|
-
|
|
209
184
|
/** Accepts all props which `mapping` tag support. */
|
|
210
185
|
props: PropTypes.object,
|
|
211
|
-
|
|
212
186
|
/** Tooltip direction. */
|
|
213
187
|
tooltipDirection: PropTypes.oneOf(['top', 'bottom', 'left', 'right']),
|
|
214
|
-
|
|
215
188
|
/** Applies the theme typography styles. */
|
|
216
189
|
type: PropTypes.oneOf(arrTypeTypography),
|
|
217
|
-
|
|
218
190
|
/** If `true`, text-transform is uppercase. */
|
|
219
191
|
uppercase: PropTypes.bool
|
|
220
192
|
};
|
package/global/index.js
CHANGED
|
@@ -137,21 +137,16 @@ const globalObject = {
|
|
|
137
137
|
};
|
|
138
138
|
export const getGlobal = (key, language = locale.get()) => {
|
|
139
139
|
var _globalObject$languag;
|
|
140
|
-
|
|
141
140
|
if (Array.isArray(key)) {
|
|
142
141
|
let result = globalObject[language];
|
|
143
|
-
|
|
144
142
|
for (let i = 0; i < key.length; i++) {
|
|
145
143
|
if (!result[key[i]]) {
|
|
146
144
|
return null;
|
|
147
145
|
}
|
|
148
|
-
|
|
149
146
|
result = result[key[i]];
|
|
150
147
|
}
|
|
151
|
-
|
|
152
148
|
return result;
|
|
153
149
|
}
|
|
154
|
-
|
|
155
150
|
return globalObject[key] || ((_globalObject$languag = globalObject[language]) === null || _globalObject$languag === void 0 ? void 0 : _globalObject$languag[key]);
|
|
156
151
|
};
|
|
157
152
|
export const setGlobal = global => {
|
|
@@ -162,11 +157,9 @@ export const setGlobal = global => {
|
|
|
162
157
|
});
|
|
163
158
|
}
|
|
164
159
|
};
|
|
165
|
-
|
|
166
160
|
const overrideGlobal = (newGlobal, ingredient, key) => {
|
|
167
161
|
const newGlobalValue = newGlobal[key];
|
|
168
162
|
const rootValue = ingredient[key];
|
|
169
|
-
|
|
170
163
|
if (typeof newGlobalValue === 'object' && typeof rootValue === 'object') {
|
|
171
164
|
const newGlobalKeys = Object.keys(newGlobalValue);
|
|
172
165
|
newGlobalKeys.forEach(newKey => {
|
|
@@ -178,5 +171,4 @@ const overrideGlobal = (newGlobal, ingredient, key) => {
|
|
|
178
171
|
globalObject[key] = newGlobalValue;
|
|
179
172
|
}
|
|
180
173
|
};
|
|
181
|
-
|
|
182
174
|
export default globalObject;
|
package/icons/basic.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* eslint-disable react/display-name */
|
|
2
|
-
|
|
3
2
|
/* eslint-disable react/prop-types */
|
|
4
3
|
import React, { memo } from 'react';
|
|
5
4
|
import { useTheme } from '../theme';
|
|
@@ -25,7 +24,6 @@ export const Account = /*#__PURE__*/memo(({
|
|
|
25
24
|
fill: colors[color] || color
|
|
26
25
|
}));
|
|
27
26
|
}
|
|
28
|
-
|
|
29
27
|
return /*#__PURE__*/React.createElement("svg", {
|
|
30
28
|
width: width || 20,
|
|
31
29
|
height: height || 20,
|
|
@@ -120,7 +118,6 @@ export const AddItem = /*#__PURE__*/memo(({
|
|
|
120
118
|
fill: colors[color] || color
|
|
121
119
|
})));
|
|
122
120
|
}
|
|
123
|
-
|
|
124
121
|
return /*#__PURE__*/React.createElement("svg", {
|
|
125
122
|
width: width || 22,
|
|
126
123
|
height: height || 17,
|
|
@@ -155,7 +152,6 @@ export const AddNote = /*#__PURE__*/memo(({
|
|
|
155
152
|
fillOpacity: opacity
|
|
156
153
|
}));
|
|
157
154
|
}
|
|
158
|
-
|
|
159
155
|
return /*#__PURE__*/React.createElement("svg", {
|
|
160
156
|
width: width || 16,
|
|
161
157
|
height: height || 20,
|
|
@@ -214,7 +210,6 @@ export const AddPerson = /*#__PURE__*/memo(({
|
|
|
214
210
|
fill: colors[color] || color
|
|
215
211
|
}));
|
|
216
212
|
}
|
|
217
|
-
|
|
218
213
|
return /*#__PURE__*/React.createElement("svg", {
|
|
219
214
|
width: width || 22,
|
|
220
215
|
height: height || 16,
|
|
@@ -280,7 +275,6 @@ export const AddAttachmentSmall = /*#__PURE__*/memo(({
|
|
|
280
275
|
fill: colors[color] || color
|
|
281
276
|
}));
|
|
282
277
|
}
|
|
283
|
-
|
|
284
278
|
return /*#__PURE__*/React.createElement("svg", {
|
|
285
279
|
width: width || 18,
|
|
286
280
|
height: height || 18,
|
|
@@ -326,7 +320,6 @@ export const AddServer = /*#__PURE__*/memo(({
|
|
|
326
320
|
fillOpacity: opacity
|
|
327
321
|
}));
|
|
328
322
|
}
|
|
329
|
-
|
|
330
323
|
return /*#__PURE__*/React.createElement("svg", {
|
|
331
324
|
width: width || 23,
|
|
332
325
|
height: height || 20,
|
|
@@ -843,7 +836,6 @@ export const Attachment = /*#__PURE__*/memo(({
|
|
|
843
836
|
fill: colors[color] || color
|
|
844
837
|
}));
|
|
845
838
|
}
|
|
846
|
-
|
|
847
839
|
return /*#__PURE__*/React.createElement("svg", {
|
|
848
840
|
width: width || 18,
|
|
849
841
|
height: height || 21,
|
|
@@ -871,7 +863,6 @@ export const Back = /*#__PURE__*/memo(({
|
|
|
871
863
|
fill: colors[color] || color
|
|
872
864
|
}));
|
|
873
865
|
}
|
|
874
|
-
|
|
875
866
|
return /*#__PURE__*/React.createElement("svg", {
|
|
876
867
|
width: width || 18,
|
|
877
868
|
height: height || 12,
|
|
@@ -1129,7 +1120,6 @@ export const Block = /*#__PURE__*/memo(({
|
|
|
1129
1120
|
fill: colors[color] || color
|
|
1130
1121
|
}));
|
|
1131
1122
|
}
|
|
1132
|
-
|
|
1133
1123
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1134
1124
|
width: width || 20,
|
|
1135
1125
|
height: height || 20,
|
|
@@ -1688,7 +1678,6 @@ export const Danger = /*#__PURE__*/memo(({
|
|
|
1688
1678
|
fill: colors[color] || color
|
|
1689
1679
|
}));
|
|
1690
1680
|
}
|
|
1691
|
-
|
|
1692
1681
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1693
1682
|
width: width || 16,
|
|
1694
1683
|
height: height || 22,
|
|
@@ -1720,7 +1709,6 @@ export const Delete = /*#__PURE__*/memo(({
|
|
|
1720
1709
|
fill: colors[color] || color
|
|
1721
1710
|
}));
|
|
1722
1711
|
}
|
|
1723
|
-
|
|
1724
1712
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1725
1713
|
width: width || 14,
|
|
1726
1714
|
height: height || 18,
|
|
@@ -1851,7 +1839,6 @@ export const Display = /*#__PURE__*/memo(({
|
|
|
1851
1839
|
fill: colors[color] || color
|
|
1852
1840
|
}));
|
|
1853
1841
|
}
|
|
1854
|
-
|
|
1855
1842
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1856
1843
|
width: width || 22,
|
|
1857
1844
|
height: height || 22,
|
|
@@ -1911,7 +1898,6 @@ export const Download = /*#__PURE__*/memo(({
|
|
|
1911
1898
|
fill: colors[color] || color
|
|
1912
1899
|
}));
|
|
1913
1900
|
}
|
|
1914
|
-
|
|
1915
1901
|
return /*#__PURE__*/React.createElement("svg", {
|
|
1916
1902
|
width: width || 14,
|
|
1917
1903
|
height: height || 17,
|
|
@@ -2137,7 +2123,6 @@ export const Earth = /*#__PURE__*/memo(({
|
|
|
2137
2123
|
fill: colors[color] || color
|
|
2138
2124
|
}));
|
|
2139
2125
|
}
|
|
2140
|
-
|
|
2141
2126
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2142
2127
|
width: width || 20,
|
|
2143
2128
|
height: height || 20,
|
|
@@ -2277,7 +2262,6 @@ export const Filters = /*#__PURE__*/memo(({
|
|
|
2277
2262
|
fill: colors[color] || color
|
|
2278
2263
|
}));
|
|
2279
2264
|
}
|
|
2280
|
-
|
|
2281
2265
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2282
2266
|
width: width || 18,
|
|
2283
2267
|
height: height || 18,
|
|
@@ -2501,7 +2485,6 @@ export const Gavel = /*#__PURE__*/memo(({
|
|
|
2501
2485
|
fillOpacity: opacity
|
|
2502
2486
|
}));
|
|
2503
2487
|
}
|
|
2504
|
-
|
|
2505
2488
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2506
2489
|
width: width || 22,
|
|
2507
2490
|
height: height || 22,
|
|
@@ -2534,7 +2517,6 @@ export const Generate = /*#__PURE__*/memo(({
|
|
|
2534
2517
|
fill: colors[color] || color
|
|
2535
2518
|
}));
|
|
2536
2519
|
}
|
|
2537
|
-
|
|
2538
2520
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2539
2521
|
width: width || 18,
|
|
2540
2522
|
height: height || 20,
|
|
@@ -2796,7 +2778,6 @@ export const IconView = /*#__PURE__*/memo(({
|
|
|
2796
2778
|
fill: colors[color] || color
|
|
2797
2779
|
}));
|
|
2798
2780
|
}
|
|
2799
|
-
|
|
2800
2781
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2801
2782
|
width: width || 17,
|
|
2802
2783
|
height: height || 17,
|
|
@@ -2831,7 +2812,6 @@ export const Incorrect = /*#__PURE__*/memo(({
|
|
|
2831
2812
|
fill: colors[color] || color
|
|
2832
2813
|
}));
|
|
2833
2814
|
}
|
|
2834
|
-
|
|
2835
2815
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2836
2816
|
width: width || 20,
|
|
2837
2817
|
height: height || 21,
|
|
@@ -2938,7 +2918,6 @@ export const Key = /*#__PURE__*/memo(({
|
|
|
2938
2918
|
fill: colors[color] || color
|
|
2939
2919
|
}));
|
|
2940
2920
|
}
|
|
2941
|
-
|
|
2942
2921
|
return /*#__PURE__*/React.createElement("svg", {
|
|
2943
2922
|
width: width || 22,
|
|
2944
2923
|
height: height || 12,
|
|
@@ -3130,7 +3109,6 @@ export const ListView = /*#__PURE__*/memo(({
|
|
|
3130
3109
|
fill: colors[color] || color
|
|
3131
3110
|
}));
|
|
3132
3111
|
}
|
|
3133
|
-
|
|
3134
3112
|
return /*#__PURE__*/React.createElement("svg", {
|
|
3135
3113
|
width: width || 18,
|
|
3136
3114
|
height: height || 12,
|
|
@@ -3166,7 +3144,6 @@ export const Loading = /*#__PURE__*/memo(({
|
|
|
3166
3144
|
fill: colors[color] || color
|
|
3167
3145
|
}));
|
|
3168
3146
|
}
|
|
3169
|
-
|
|
3170
3147
|
return /*#__PURE__*/React.createElement("svg", {
|
|
3171
3148
|
width: width || 17,
|
|
3172
3149
|
height: height || 6,
|
|
@@ -3480,7 +3457,6 @@ export const Message = /*#__PURE__*/memo(({
|
|
|
3480
3457
|
fillOpacity: opacity
|
|
3481
3458
|
}));
|
|
3482
3459
|
}
|
|
3483
|
-
|
|
3484
3460
|
return /*#__PURE__*/React.createElement("svg", {
|
|
3485
3461
|
width: width || 20,
|
|
3486
3462
|
height: height || 20,
|
|
@@ -3733,7 +3709,6 @@ export const More = /*#__PURE__*/memo(({
|
|
|
3733
3709
|
fill: colors[color] || color
|
|
3734
3710
|
}));
|
|
3735
3711
|
}
|
|
3736
|
-
|
|
3737
3712
|
return /*#__PURE__*/React.createElement("svg", {
|
|
3738
3713
|
width: width || 4,
|
|
3739
3714
|
height: height || 18,
|
|
@@ -3959,7 +3934,6 @@ export const Unlock = /*#__PURE__*/memo(({
|
|
|
3959
3934
|
fill: colors[color] || color
|
|
3960
3935
|
}));
|
|
3961
3936
|
}
|
|
3962
|
-
|
|
3963
3937
|
return /*#__PURE__*/React.createElement("svg", {
|
|
3964
3938
|
width: width || 16,
|
|
3965
3939
|
height: height || 21,
|
|
@@ -4101,7 +4075,6 @@ export const PaperView = /*#__PURE__*/memo(({
|
|
|
4101
4075
|
fill: colors[color] || color
|
|
4102
4076
|
}));
|
|
4103
4077
|
}
|
|
4104
|
-
|
|
4105
4078
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4106
4079
|
width: width || 16,
|
|
4107
4080
|
height: height || 20,
|
|
@@ -4214,7 +4187,6 @@ export const Pen = /*#__PURE__*/memo(({
|
|
|
4214
4187
|
fill: colors[color] || color
|
|
4215
4188
|
}));
|
|
4216
4189
|
}
|
|
4217
|
-
|
|
4218
4190
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4219
4191
|
width: width || 19,
|
|
4220
4192
|
height: height || 19,
|
|
@@ -4266,7 +4238,6 @@ export const DoublePen = /*#__PURE__*/memo(({
|
|
|
4266
4238
|
fill: colors[color] || color
|
|
4267
4239
|
}));
|
|
4268
4240
|
}
|
|
4269
|
-
|
|
4270
4241
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4271
4242
|
width: width || 22,
|
|
4272
4243
|
height: height || 18,
|
|
@@ -4344,7 +4315,6 @@ export const PersonAccept = /*#__PURE__*/memo(({
|
|
|
4344
4315
|
fill: colors[color] || color
|
|
4345
4316
|
}));
|
|
4346
4317
|
}
|
|
4347
|
-
|
|
4348
4318
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4349
4319
|
width: width || 19,
|
|
4350
4320
|
height: height || 17,
|
|
@@ -4733,7 +4703,6 @@ export const Play = /*#__PURE__*/memo(({
|
|
|
4733
4703
|
fillOpacity: opacity
|
|
4734
4704
|
}));
|
|
4735
4705
|
}
|
|
4736
|
-
|
|
4737
4706
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4738
4707
|
width: width || 11,
|
|
4739
4708
|
height: height || 14,
|
|
@@ -4766,7 +4735,6 @@ export const PlayBorder = /*#__PURE__*/memo(({
|
|
|
4766
4735
|
fillOpacity: opacity
|
|
4767
4736
|
}));
|
|
4768
4737
|
}
|
|
4769
|
-
|
|
4770
4738
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4771
4739
|
width: width || 20,
|
|
4772
4740
|
height: height || 20,
|
|
@@ -4801,7 +4769,6 @@ export const PlayFilled = /*#__PURE__*/memo(({
|
|
|
4801
4769
|
fillOpacity: opacity
|
|
4802
4770
|
}));
|
|
4803
4771
|
}
|
|
4804
|
-
|
|
4805
4772
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4806
4773
|
width: width || 20,
|
|
4807
4774
|
height: height || 20,
|
|
@@ -4862,7 +4829,6 @@ export const PersonRemoved = /*#__PURE__*/memo(({
|
|
|
4862
4829
|
fill: colors[color] || color
|
|
4863
4830
|
})));
|
|
4864
4831
|
}
|
|
4865
|
-
|
|
4866
4832
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4867
4833
|
width: width || 18,
|
|
4868
4834
|
height: height || 21,
|
|
@@ -5418,7 +5384,6 @@ export const Search = /*#__PURE__*/memo(({
|
|
|
5418
5384
|
fill: colors[color] || color
|
|
5419
5385
|
}));
|
|
5420
5386
|
}
|
|
5421
|
-
|
|
5422
5387
|
return /*#__PURE__*/React.createElement("svg", {
|
|
5423
5388
|
width: width || 20,
|
|
5424
5389
|
height: height || 20,
|
|
@@ -5474,7 +5439,6 @@ export const Skip = /*#__PURE__*/memo(({
|
|
|
5474
5439
|
fill: colors[color] || color
|
|
5475
5440
|
}));
|
|
5476
5441
|
}
|
|
5477
|
-
|
|
5478
5442
|
return /*#__PURE__*/React.createElement("svg", {
|
|
5479
5443
|
width: width || 18,
|
|
5480
5444
|
height: height || 12,
|
|
@@ -5604,7 +5568,6 @@ export const StarHalf = /*#__PURE__*/memo(({
|
|
|
5604
5568
|
fill: colors[color] || color
|
|
5605
5569
|
}));
|
|
5606
5570
|
}
|
|
5607
|
-
|
|
5608
5571
|
return /*#__PURE__*/React.createElement("svg", {
|
|
5609
5572
|
width: width || 20,
|
|
5610
5573
|
height: height || 19,
|
|
@@ -5824,7 +5787,6 @@ export const Trash = /*#__PURE__*/memo(({
|
|
|
5824
5787
|
fill: colors[color] || color
|
|
5825
5788
|
}));
|
|
5826
5789
|
}
|
|
5827
|
-
|
|
5828
5790
|
return /*#__PURE__*/React.createElement("svg", {
|
|
5829
5791
|
width: width || 14,
|
|
5830
5792
|
height: height || 18,
|
|
@@ -5908,7 +5870,6 @@ export const View = /*#__PURE__*/memo(({
|
|
|
5908
5870
|
fill: colors[color] || color
|
|
5909
5871
|
}));
|
|
5910
5872
|
}
|
|
5911
|
-
|
|
5912
5873
|
return /*#__PURE__*/React.createElement("svg", {
|
|
5913
5874
|
width: width || 22,
|
|
5914
5875
|
height: height || 16,
|
|
@@ -5968,7 +5929,6 @@ export const UnView = /*#__PURE__*/memo(({
|
|
|
5968
5929
|
fill: colors[color] || color
|
|
5969
5930
|
}));
|
|
5970
5931
|
}
|
|
5971
|
-
|
|
5972
5932
|
return /*#__PURE__*/React.createElement("svg", {
|
|
5973
5933
|
width: width || 22,
|
|
5974
5934
|
height: height || 20,
|
|
@@ -6091,7 +6051,6 @@ export const Write = /*#__PURE__*/memo(({
|
|
|
6091
6051
|
fill: colors[color] || color
|
|
6092
6052
|
}));
|
|
6093
6053
|
}
|
|
6094
|
-
|
|
6095
6054
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6096
6055
|
width: width || 19,
|
|
6097
6056
|
height: height || 19,
|
|
@@ -6938,7 +6897,6 @@ export const Pdf = /*#__PURE__*/memo(({
|
|
|
6938
6897
|
fill: color
|
|
6939
6898
|
}))));
|
|
6940
6899
|
}
|
|
6941
|
-
|
|
6942
6900
|
return size === 'small' ? /*#__PURE__*/React.createElement("svg", {
|
|
6943
6901
|
width: "15",
|
|
6944
6902
|
height: "16",
|
|
@@ -7030,7 +6988,6 @@ export const Word = /*#__PURE__*/memo(({
|
|
|
7030
6988
|
fill: color
|
|
7031
6989
|
})))));
|
|
7032
6990
|
}
|
|
7033
|
-
|
|
7034
6991
|
return size === 'small' ? /*#__PURE__*/React.createElement("svg", {
|
|
7035
6992
|
width: "15",
|
|
7036
6993
|
height: "16",
|
|
@@ -7146,7 +7103,6 @@ export const Sheet = /*#__PURE__*/memo(({
|
|
|
7146
7103
|
fill: color
|
|
7147
7104
|
})))));
|
|
7148
7105
|
}
|
|
7149
|
-
|
|
7150
7106
|
return size === 'small' ? /*#__PURE__*/React.createElement("svg", {
|
|
7151
7107
|
width: "15",
|
|
7152
7108
|
height: "16",
|
|
@@ -7263,7 +7219,6 @@ export const Presentation = /*#__PURE__*/memo(({
|
|
|
7263
7219
|
fill: color
|
|
7264
7220
|
})))));
|
|
7265
7221
|
}
|
|
7266
|
-
|
|
7267
7222
|
return size === 'small' ? /*#__PURE__*/React.createElement("svg", {
|
|
7268
7223
|
width: "14",
|
|
7269
7224
|
height: "16",
|
|
@@ -7344,7 +7299,6 @@ export const Image = /*#__PURE__*/memo(({
|
|
|
7344
7299
|
fill: color
|
|
7345
7300
|
}))));
|
|
7346
7301
|
}
|
|
7347
|
-
|
|
7348
7302
|
return size === 'small' ? /*#__PURE__*/React.createElement("svg", {
|
|
7349
7303
|
width: "14",
|
|
7350
7304
|
height: "16",
|
|
@@ -7426,7 +7380,6 @@ export const Compressed = /*#__PURE__*/memo(({
|
|
|
7426
7380
|
fill: color
|
|
7427
7381
|
})))));
|
|
7428
7382
|
}
|
|
7429
|
-
|
|
7430
7383
|
return size === 'small' ? /*#__PURE__*/React.createElement("svg", {
|
|
7431
7384
|
width: "15",
|
|
7432
7385
|
height: "16",
|
|
@@ -7514,7 +7467,6 @@ export const Another = /*#__PURE__*/memo(({
|
|
|
7514
7467
|
fill: color
|
|
7515
7468
|
})))));
|
|
7516
7469
|
}
|
|
7517
|
-
|
|
7518
7470
|
return size === 'small' ? /*#__PURE__*/React.createElement("svg", {
|
|
7519
7471
|
width: "15",
|
|
7520
7472
|
height: "16",
|
package/icons/effect.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useRef, useMemo, forwardRef, useImperativeHandle } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -49,11 +48,10 @@ const Icon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
49
48
|
useImperativeHandle(reference, () => {
|
|
50
49
|
const currentRef = ref.current || {};
|
|
51
50
|
currentRef.element = ref.current;
|
|
52
|
-
const _instance = {
|
|
51
|
+
const _instance = {
|
|
52
|
+
...action
|
|
53
53
|
}; // methods
|
|
54
|
-
|
|
55
54
|
_instance.__proto__ = {}; // hidden methods
|
|
56
|
-
|
|
57
55
|
currentRef.instance = _instance;
|
|
58
56
|
return currentRef;
|
|
59
57
|
});
|
|
@@ -61,7 +59,6 @@ const Icon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
61
59
|
if (!name) return null;
|
|
62
60
|
let node = null;
|
|
63
61
|
const IconComp = Icons[capitalize(name)];
|
|
64
|
-
|
|
65
62
|
if (IconComp) {
|
|
66
63
|
node = jsx(IconComp, {
|
|
67
64
|
width: width,
|
|
@@ -74,7 +71,6 @@ const Icon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
74
71
|
css: NotFoundIcon
|
|
75
72
|
});
|
|
76
73
|
}
|
|
77
|
-
|
|
78
74
|
return jsx("span", {
|
|
79
75
|
className: 'DGN-UI-Icon ' + className,
|
|
80
76
|
style: style,
|
|
@@ -96,43 +92,35 @@ Icon.defaultProps = {
|
|
|
96
92
|
Icon.propTypes = {
|
|
97
93
|
/** name of icon in icons store */
|
|
98
94
|
name: PropTypes.string.isRequired,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
* default: #7F828E
|
|
95
|
+
/** color of icon<br />
|
|
96
|
+
* default: #7F828E
|
|
102
97
|
*/
|
|
103
98
|
color: PropTypes.string,
|
|
104
|
-
|
|
105
99
|
/** className of icon in icons store */
|
|
106
100
|
className: PropTypes.string,
|
|
107
|
-
|
|
108
101
|
/** style of icon in icons store */
|
|
109
102
|
style: PropTypes.object,
|
|
110
|
-
|
|
111
103
|
/** the width of icon */
|
|
112
104
|
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
113
|
-
|
|
114
105
|
/** the height of icon */
|
|
115
106
|
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
116
|
-
|
|
117
107
|
/** have view box if true */
|
|
118
108
|
viewBox: PropTypes.bool,
|
|
119
|
-
|
|
120
109
|
/** have view box if true */
|
|
121
110
|
onClick: PropTypes.func,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* *
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* * @param {
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* * @param {options} - object
|
|
111
|
+
/**
|
|
112
|
+
* ref methods
|
|
113
|
+
*
|
|
114
|
+
* * option(): Gets all UI component properties
|
|
115
|
+
* * Returns value - object
|
|
116
|
+
* * option(optionName): Gets the value of a single property
|
|
117
|
+
* * @param {optionName} - string
|
|
118
|
+
* * Returns value - any
|
|
119
|
+
* * option(optionName, optionValue): Updates the value of a single property
|
|
120
|
+
* * @param {optionName} - string
|
|
121
|
+
* * @param {optionValue} - any
|
|
122
|
+
* * option(options): Updates the values of several properties
|
|
123
|
+
* * @param {options} - object
|
|
136
124
|
*/
|
|
137
125
|
reference: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
138
126
|
current: PropTypes.instanceOf(Element)
|