diginet-core-ui 1.4.57 → 1.4.58
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/assets/images/menu/dhr/MHRP29N0035.svg +13 -0
- package/assets/images/menu/dhr/MHRP29N0036.svg +14 -0
- package/components/form-control/dropdown/index.js +6 -3
- package/components/form-control/number-input/index2.js +32 -11
- package/icons/basic.js +76 -0
- package/package.json +1 -1
- package/readme.md +6 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_2445_39)">
|
|
3
|
+
<path d="M27.9999 32.8V26C27.9999 24.9 27.0999 24 25.9999 24H12.9999C11.8999 24 10.9999 24.9 10.9999 26V32.8C9.19988 32.2 7.89988 30.4 8.19988 28.4L9.09988 22.4C9.39988 20.5 11.0999 19 13.0999 19H25.8999C27.8999 19 29.5999 20.4 29.8999 22.4L30.7999 28.4C31.0999 30.4 29.7999 32.3 27.9999 32.8Z" fill="#2680EB"/>
|
|
4
|
+
<path d="M19.5002 17.8C22.4002 17.8 24.8002 15.4 24.8002 12.4C24.8002 9.4 22.4002 7 19.5002 7C16.6002 7 14.2002 9.5 14.2002 12.4C14.2002 15.4 16.6002 17.8 19.5002 17.8Z" fill="#2680EB"/>
|
|
5
|
+
<path d="M26 25H13C12.5 25 12 25.5 12 26V34C12 34.5 12.5 35 13 35H26C26.5 35 27 34.5 27 34V26C27 25.5 26.5 25 26 25ZM19.5 31.5C18.7 31.5 18 30.8 18 30C18 29.2 18.7 28.5 19.5 28.5C20.3 28.5 21 29.2 21 30C21 30.8 20.3 31.5 19.5 31.5Z" fill="#FF8C00"/>
|
|
6
|
+
<path d="M37.8 13.4L21.9 0.700024C20.8 -0.199976 19.1 -0.199976 18 0.700024L11.3 5.80002V4.20002C11.3 3.00002 10.3 2.00002 9.1 2.00002H6.1C4.9 2.00002 3.9 3.00002 3.9 4.20002V11.1C3.9 11.2 3.9 11.2 3.9 11.3L1.2 13.3C0.5 14 0 15 0 16V35.8C0 37.5 1.4 39 3.2 39H35.8C37.6 39 39 37.5 39 35.8V15.9C39 14.9 38.6 14 37.8 13.4ZM6.4 4.40002H8.9V7.50002L6.4 9.50002V4.40002ZM36.5 35.8C36.5 36.2 36.2 36.6 35.8 36.6H3.2C2.8 36.6 2.5 36.3 2.5 35.8V16C2.5 15.8 2.6 15.5 2.8 15.4L5.6 13.3L8.7 10.9L8.9 10.7L11.4 8.80002L19.5 2.60002C19.6 2.50002 19.8 2.50002 19.9 2.50002C20.1 2.50002 20.2 2.50002 20.4 2.70002L36.3 15.4C36.5 15.5 36.6 15.8 36.6 16V35.8H36.5Z" fill="#2680EB"/>
|
|
7
|
+
</g>
|
|
8
|
+
<defs>
|
|
9
|
+
<clipPath id="clip0_2445_39">
|
|
10
|
+
<rect width="39" height="39" fill="white"/>
|
|
11
|
+
</clipPath>
|
|
12
|
+
</defs>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_2445_40)">
|
|
3
|
+
<path d="M21.8 20.7C20.5 21.8 19.4 23.3 18.8 25C18.8 25.1 18.8 25.1 18.7 25.2H9.90003C8.90003 25.2 8.10003 26 8.10003 27V33.0999C6.40003 32.5999 5.30003 30.9 5.60003 29.1L6.40003 23.7C6.70003 21.9 8.20003 20.7 9.90003 20.7H21.3C21.5 20.7 21.7 20.7 21.8 20.7Z" fill="#2680EB"/>
|
|
4
|
+
<path d="M15.6999 19.6C18.2999 19.6 20.3999 17.4 20.3999 14.8C20.3999 12.1 18.2999 10 15.5999 10C12.9999 10 10.8999 12.2 10.8999 14.8C10.8999 17.5 13.0999 19.7 15.6999 19.6Z" fill="#2680EB"/>
|
|
5
|
+
<path d="M18 29C18 28 18.1 27 18.4 26.1H9.9C9.4 26.1 9 26.5 9 27V34.1C9 34.6 9.4 35 9.9 35H19.8C18.7 33.3 18 31.2 18 29ZM15.7 31.9C15 31.9 14.4 31.3 14.4 30.6C14.4 29.8 15 29.3 15.7 29.3C16.4 29.3 17 29.9 17 30.6C17 31.3 16.4 31.9 15.7 31.9Z" fill="#FF8C00"/>
|
|
6
|
+
<path d="M37.8 13.4L21.9 0.700024C20.8 -0.199976 19.1 -0.199976 18 0.700024L11.3 5.80002V4.20002C11.3 3.00002 10.3 2.00002 9.1 2.00002H6.1C5 2.00002 4 3.00002 4 4.20002V11.1C4 11.2 4 11.3 4 11.3L1.3 13.3C0.5 14 0 15 0 16V35.8C0 37.6 1.4 39 3.2 39H24.4C23.1 38.4 21.9 37.6 21 36.5H3.2C2.8 36.5 2.5 36.2 2.5 35.7V16C2.5 15.7 2.6 15.5 2.8 15.4L5.6 13.3L8.7 10.9L8.9 10.7L11.4 8.80002L19.6 2.60002C19.7 2.50002 19.9 2.40002 20 2.40002C20.2 2.40002 20.3 2.50002 20.5 2.60002L36.4 15.3C36.6 15.4 36.7 15.7 36.7 15.9V20.9C37.7 21.9 38.6 23.1 39.2 24.3V15.8C39 14.9 38.6 14 37.8 13.4ZM8.9 7.60002L6.4 9.50002V4.50002H8.9V7.60002Z" fill="#2680EB"/>
|
|
7
|
+
<path d="M34.4 20.6C32.8 19.6 31 19 29 19C28.5 19 28.1 19 27.7 19.1C26.9 19.2 26 19.4 25.3 19.7C24.9 19.9 24.4 20.1 24 20.3C22 21.4 20.5 23.2 19.7 25.3C19.2 26.5 19 27.7 19 29C19 34.5 23.5 39 29 39C34.5 39 39 34.5 39 29C39 25.5 37.1 22.3 34.4 20.6ZM35.2 25.8L29.3 33.8C29 34.3 28.4 34.6 27.8 34.6H27.7C27.2 34.6 26.6 34.4 26.3 34L22.8 30.2C22.3 29.6 22.3 28.7 22.9 28.1C23.2 27.8 23.5 27.7 23.9 27.7C24.3 27.7 24.7 27.9 25 28.2L27.5 30.9L27.6 31C27.7 31 27.7 31 27.7 30.9L32.7 24.1C33 23.7 33.4 23.5 33.9 23.5C34.2 23.5 34.5 23.6 34.8 23.8C35.6 24.2 35.7 25.1 35.2 25.8Z" fill="#1CA261"/>
|
|
8
|
+
</g>
|
|
9
|
+
<defs>
|
|
10
|
+
<clipPath id="clip0_2445_40">
|
|
11
|
+
<rect width="39" height="39" fill="white"/>
|
|
12
|
+
</clipPath>
|
|
13
|
+
</defs>
|
|
14
|
+
</svg>
|
|
@@ -116,7 +116,8 @@ const Dropdown = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference)
|
|
|
116
116
|
defaultValue,
|
|
117
117
|
disabled,
|
|
118
118
|
selectAll,
|
|
119
|
-
selectAllLabel
|
|
119
|
+
selectAllLabel,
|
|
120
|
+
endIcon
|
|
120
121
|
} = props;
|
|
121
122
|
const selectBox = multiple && selectBoxProp === undefined ? true : selectBoxProp;
|
|
122
123
|
const searchExpr = typeof searchExprProp === 'string' ? [searchExprProp] : searchExprProp;
|
|
@@ -1404,7 +1405,7 @@ const Dropdown = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference)
|
|
|
1404
1405
|
key: openState,
|
|
1405
1406
|
css: animation,
|
|
1406
1407
|
viewType: 'ghost',
|
|
1407
|
-
name: openState ? 'ArrowUp' : 'ArrowDown',
|
|
1408
|
+
name: endIcon ? endIcon : openState ? 'ArrowUp' : 'ArrowDown',
|
|
1408
1409
|
onClick: setShowDropdown,
|
|
1409
1410
|
disabled: disabled || readOnly
|
|
1410
1411
|
}) : null));
|
|
@@ -1911,7 +1912,9 @@ Dropdown.propTypes = {
|
|
|
1911
1912
|
/** An object default for value (used for load more). */
|
|
1912
1913
|
valueObjectDefault: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
|
1913
1914
|
/** The variant to use. */
|
|
1914
|
-
viewType: PropTypes.oneOf(['underlined', 'outlined', 'none'])
|
|
1915
|
+
viewType: PropTypes.oneOf(['underlined', 'outlined', 'none']),
|
|
1916
|
+
/** Custom icon to override the default arrow icon. */
|
|
1917
|
+
endIcon: PropTypes.string
|
|
1915
1918
|
/**
|
|
1916
1919
|
* ref methods
|
|
1917
1920
|
*
|
|
@@ -166,14 +166,10 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
|
166
166
|
return number;
|
|
167
167
|
}, [decimalSymbol]);
|
|
168
168
|
const _onInput = useCallback((e, flag) => {
|
|
169
|
-
var _e$target$value
|
|
169
|
+
var _e$target$value;
|
|
170
170
|
let valueT = (_e$target$value = e.target.value) !== null && _e$target$value !== void 0 ? _e$target$value : e.value;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
if (disabledNegative && eval(limitValueT) <= 0 || limitValueT.includes('-')) limitValueT = 0;
|
|
174
|
-
if ((min || min === 0) && eval(limitValueT) <= min || min === 0 && limitValueT.includes('-')) limitValueT = min;
|
|
175
|
-
if ((max || max === 0) && eval(limitValueT) >= max) limitValueT = max;
|
|
176
|
-
valueT = parseNumberToMoney(limitValueT);
|
|
171
|
+
if (disabledNegative && Number(valueT || 0) < 0) return;
|
|
172
|
+
valueT = parseNumberToMoney(valueT);
|
|
177
173
|
const returnValue = convertMoneyToNumber(valueT);
|
|
178
174
|
e.value = globalRef.current.value = !isNaN(parseFloat(returnValue)) ? parseFloat(returnValue) : null;
|
|
179
175
|
// e.target.value = globalRef.current.valueString = valueT || '';
|
|
@@ -185,18 +181,42 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
|
185
181
|
if (flag) _onChange(e);
|
|
186
182
|
}, [min, max, decimalDigit]);
|
|
187
183
|
const _onBlur = useCallback(e => {
|
|
188
|
-
var _e$value, _e$value2;
|
|
184
|
+
var _e$value, _value$toString$repla, _value$toString$repla2, _e$value2;
|
|
189
185
|
let value = (_e$value = e.value) !== null && _e$value !== void 0 ? _e$value : e.target.value;
|
|
190
186
|
if (fixedDecimalDigit) value = Number(value).toFixed(decimalDigit);
|
|
191
187
|
value = convertMoneyToNumber(value);
|
|
192
|
-
|
|
188
|
+
let limitValueT = value;
|
|
189
|
+
// xóa các số "0" đứng trước giá trị ví dụ: 0100, 0200 để tránh lỗi Octal literals are not allowed in strict mode
|
|
190
|
+
limitValueT = (_value$toString$repla = (_value$toString$repla2 = value.toString().replaceAll(thousandSymbol, '')).replaceAll) === null || _value$toString$repla === void 0 ? void 0 : _value$toString$repla.call(_value$toString$repla2, decimalSymbol, '.').split(/([+\-*/])/).map(a => parseFloat(a) || a).join('');
|
|
191
|
+
// không chạy xử lý khi giá trị chỉ có dấu "-"
|
|
192
|
+
if (limitValueT !== '-' && limitValueT !== '.' && limitValueT !== ',') {
|
|
193
193
|
const target = e.target;
|
|
194
|
-
|
|
194
|
+
if (disabledNegative && eval(limitValueT) <= 0) {
|
|
195
|
+
limitValueT = 0;
|
|
196
|
+
}
|
|
197
|
+
if ((min || min === 0) && eval(limitValueT) <= min) {
|
|
198
|
+
limitValueT = min;
|
|
199
|
+
}
|
|
200
|
+
if (max && eval(limitValueT) >= max) {
|
|
201
|
+
limitValueT = max;
|
|
202
|
+
}
|
|
203
|
+
target.value = clamp(limitValueT, min, max);
|
|
195
204
|
_onInput({
|
|
196
205
|
...e,
|
|
197
206
|
target
|
|
198
207
|
}, true);
|
|
199
208
|
}
|
|
209
|
+
// if (((min || min === 0) && Number(value) < min) || ((max || max === 0) && Number(value) > max)) {
|
|
210
|
+
// const target = e.target;
|
|
211
|
+
// target.value = clamp(value, min, max);
|
|
212
|
+
// _onInput(
|
|
213
|
+
// {
|
|
214
|
+
// ...e,
|
|
215
|
+
// target,
|
|
216
|
+
// },
|
|
217
|
+
// true
|
|
218
|
+
// );
|
|
219
|
+
// }
|
|
200
220
|
if (((_e$value2 = e.value) !== null && _e$value2 !== void 0 ? _e$value2 : e.target.value).slice(-1) === decimalSymbol) {
|
|
201
221
|
var _e$value3;
|
|
202
222
|
const target = e.target;
|
|
@@ -275,12 +295,13 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
|
|
|
275
295
|
// disabled negative
|
|
276
296
|
// const disabled180 = (keyCode === 189 || keyCode === 109) && (disabledNegative || value.includes('-'));
|
|
277
297
|
const disabled180 = (keyCode === 189 || keyCode === 109) && (min === 0 || disabledNegative);
|
|
298
|
+
const disable48 = keyCode === 48 && value.toString() === '0';
|
|
278
299
|
|
|
279
300
|
// disabled max digit
|
|
280
301
|
const isMaxDigit = maxDigit && (value === null || value === void 0 ? void 0 : value.replace(regexNumber, '').length) === maxDigit && (isNumber || key === thousandSymbol || key === decimalSymbol) && selectionStart === selectionEnd;
|
|
281
302
|
|
|
282
303
|
// Block event if include conditions
|
|
283
|
-
if (decimalExists || removeDot || isNumber && disabledTypingDecimal || disabledDecimalSymbol || !allowKeyTypeNumber || disabled180 || isMaxDigit) {
|
|
304
|
+
if (decimalExists || removeDot || isNumber && disabledTypingDecimal || disabledDecimalSymbol || !allowKeyTypeNumber || disabled180 || disable48 || isMaxDigit) {
|
|
284
305
|
e.preventDefault();
|
|
285
306
|
}
|
|
286
307
|
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
|
package/icons/basic.js
CHANGED
|
@@ -3108,6 +3108,30 @@ export const Home = /*#__PURE__*/memo(({
|
|
|
3108
3108
|
fill: fillColor(color)
|
|
3109
3109
|
}));
|
|
3110
3110
|
});
|
|
3111
|
+
export const HomeLocation = /*#__PURE__*/memo(({
|
|
3112
|
+
width,
|
|
3113
|
+
height,
|
|
3114
|
+
color = 'system/rest',
|
|
3115
|
+
viewBox = false
|
|
3116
|
+
}) => {
|
|
3117
|
+
return viewBox ? /*#__PURE__*/React.createElement("svg", {
|
|
3118
|
+
width: width || 24,
|
|
3119
|
+
height: height || 24,
|
|
3120
|
+
viewBox: "0 0 24 24",
|
|
3121
|
+
fill: "none"
|
|
3122
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
3123
|
+
d: "M12 15C12.8333 15 13.5417 14.7083 14.125 14.125C14.7083 13.5417 15 12.8333 15 12C15 11.1667 14.7083 10.4583 14.125 9.875C13.5417 9.29167 12.8333 9 12 9C11.1667 9 10.4583 9.29167 9.875 9.875C9.29167 10.4583 9 11.1667 9 12C9 12.8333 9.29167 13.5417 9.875 14.125C10.4583 14.7083 11.1667 15 12 15ZM6 19H18V18.725C18 18.4917 17.95 18.275 17.85 18.075C17.75 17.875 17.6 17.7167 17.4 17.6C16.5833 17.0833 15.7208 16.6875 14.8125 16.4125C13.9042 16.1375 12.9667 16 12 16C11.0333 16 10.0958 16.1375 9.1875 16.4125C8.27917 16.6875 7.41667 17.0833 6.6 17.6C6.4 17.7167 6.25 17.875 6.15 18.075C6.05 18.275 6 18.4917 6 18.725V19ZM4 21V9L12 3L20 9V21H4Z",
|
|
3124
|
+
fill: fillColor(color)
|
|
3125
|
+
})) : /*#__PURE__*/React.createElement("svg", {
|
|
3126
|
+
width: width || 16,
|
|
3127
|
+
height: height || 18,
|
|
3128
|
+
viewBox: "0 0 16 18",
|
|
3129
|
+
fill: "none"
|
|
3130
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
3131
|
+
d: "M8 12C8.83333 12 9.54167 11.7083 10.125 11.125C10.7083 10.5417 11 9.83333 11 9C11 8.16667 10.7083 7.45833 10.125 6.875C9.54167 6.29167 8.83333 6 8 6C7.16667 6 6.45833 6.29167 5.875 6.875C5.29167 7.45833 5 8.16667 5 9C5 9.83333 5.29167 10.5417 5.875 11.125C6.45833 11.7083 7.16667 12 8 12ZM2 16H14V15.725C14 15.4917 13.95 15.275 13.85 15.075C13.75 14.875 13.6 14.7167 13.4 14.6C12.5833 14.0833 11.7208 13.6875 10.8125 13.4125C9.90417 13.1375 8.96667 13 8 13C7.03333 13 6.09583 13.1375 5.1875 13.4125C4.27917 13.6875 3.41667 14.0833 2.6 14.6C2.4 14.7167 2.25 14.875 2.15 15.075C2.05 15.275 2 15.4917 2 15.725V16ZM0 18V6L8 0L16 6V18H0Z",
|
|
3132
|
+
fill: fillColor(color)
|
|
3133
|
+
}));
|
|
3134
|
+
});
|
|
3111
3135
|
export const HourGlass = /*#__PURE__*/memo(({
|
|
3112
3136
|
width,
|
|
3113
3137
|
height,
|
|
@@ -4137,6 +4161,30 @@ export const Minus = /*#__PURE__*/memo(({
|
|
|
4137
4161
|
fill: fillColor(color)
|
|
4138
4162
|
}));
|
|
4139
4163
|
});
|
|
4164
|
+
export const MilkBottle = /*#__PURE__*/memo(({
|
|
4165
|
+
width,
|
|
4166
|
+
height,
|
|
4167
|
+
color = 'system/rest',
|
|
4168
|
+
viewBox = false
|
|
4169
|
+
}) => {
|
|
4170
|
+
return viewBox ? /*#__PURE__*/React.createElement("svg", {
|
|
4171
|
+
width: width || 24,
|
|
4172
|
+
height: height || 24,
|
|
4173
|
+
viewBox: "0 0 24 24",
|
|
4174
|
+
fill: "none"
|
|
4175
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
4176
|
+
d: "M10.9782 5.6788C10.7316 5.53938 10.572 5.33908 10.4994 5.07791C10.4269 4.81674 10.4603 4.56283 10.5998 4.31617C10.7392 4.06952 10.9395 3.90992 11.2007 3.83738C11.4618 3.76484 11.7157 3.79829 11.9624 3.93771L14.574 5.41397L15.5582 3.67288C15.6976 3.42622 15.8979 3.26662 16.1591 3.19409C16.4203 3.12155 16.6742 3.15499 16.9208 3.29441C17.1675 3.43384 17.3271 3.63414 17.3996 3.89531C17.4722 4.15648 17.4387 4.41039 17.2993 4.65705L16.3151 6.39814L18.9268 7.8744C19.1734 8.01382 19.333 8.21412 19.4056 8.47529C19.4781 8.73646 19.4447 8.99038 19.3052 9.23703C19.1658 9.48369 18.9655 9.64328 18.7043 9.71582C18.4432 9.78836 18.1893 9.75492 17.9426 9.61549L10.9782 5.6788ZM4.46749 19.2291C3.98869 18.9584 3.67517 18.5563 3.52694 18.0226C3.37871 17.4889 3.43992 16.9826 3.71057 16.5038L4.69474 14.7627L8.17693 16.7311C8.42358 16.8705 8.67749 16.9039 8.93866 16.8314C9.19984 16.7589 9.40013 16.5993 9.53956 16.3526C9.67898 16.106 9.71243 15.852 9.63989 15.5909C9.56735 15.3297 9.40775 15.1294 9.1611 14.99L5.67891 13.0216L6.66308 11.2805L10.1453 13.2489C10.3919 13.3883 10.6458 13.4218 10.907 13.3492C11.1682 13.2767 11.3685 13.1171 11.5079 12.8704C11.6473 12.6238 11.6808 12.3699 11.6082 12.1087C11.5357 11.8475 11.3761 11.6472 11.1294 11.5078L7.64726 9.53945L8.13934 8.6689C8.54941 7.94345 9.15188 7.47034 9.94675 7.24957C10.7416 7.0288 11.5018 7.12345 12.2272 7.53352L15.7094 9.50187C16.4349 9.91194 16.908 10.5144 17.1288 11.3093C17.3495 12.1041 17.2549 12.8643 16.8448 13.5898L12.416 21.4247C12.1454 21.9035 11.7432 22.217 11.2095 22.3652C10.6758 22.5135 10.1696 22.4523 9.69077 22.1816L4.46749 19.2291Z",
|
|
4177
|
+
fill: fillColor(color)
|
|
4178
|
+
})) : /*#__PURE__*/React.createElement("svg", {
|
|
4179
|
+
width: width || 19,
|
|
4180
|
+
height: height || 23,
|
|
4181
|
+
viewBox: "0 0 19 23",
|
|
4182
|
+
fill: "none"
|
|
4183
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
4184
|
+
d: "M8.25191 4.84482C8.00526 4.70539 7.84566 4.5051 7.77312 4.24393C7.70059 3.98275 7.73403 3.72884 7.87345 3.48219C8.01288 3.23553 8.21317 3.07593 8.47435 3.0034C8.73552 2.93086 8.98943 2.9643 9.23609 3.10373L11.8477 4.57998L12.8319 2.83889C12.9713 2.59224 13.1716 2.43264 13.4328 2.3601C13.694 2.28756 13.9479 2.32101 14.1945 2.46043C14.4412 2.59985 14.6008 2.80015 14.6733 3.06132C14.7459 3.32249 14.7124 3.57641 14.573 3.82306L13.5888 5.56416L16.2005 7.04041C16.4471 7.17984 16.6067 7.38014 16.6792 7.64131C16.7518 7.90248 16.7183 8.15639 16.5789 8.40305C16.4395 8.6497 16.2392 8.8093 15.978 8.88184C15.7169 8.95437 15.4629 8.92093 15.2163 8.78151L8.25191 4.84482ZM1.74117 18.3951C1.26237 18.1245 0.948853 17.7223 0.800623 17.1886C0.652392 16.6549 0.713601 16.1486 0.984248 15.6698L1.96842 13.9287L5.45061 15.8971C5.69726 16.0365 5.95117 16.07 6.21235 15.9974C6.47352 15.9249 6.67381 15.7653 6.81324 15.5186C6.95266 15.272 6.98611 15.0181 6.91357 14.7569C6.84103 14.4957 6.68143 14.2954 6.43478 14.156L2.95259 12.1877L3.93676 10.4466L7.41895 12.4149C7.66561 12.5543 7.91952 12.5878 8.18069 12.5152C8.44186 12.4427 8.64216 12.2831 8.78158 12.0364C8.92101 11.7898 8.95445 11.5359 8.88191 11.2747C8.80937 11.0135 8.64978 10.8132 8.40312 10.6738L4.92094 8.70547L5.41302 7.83492C5.82309 7.10946 6.42556 6.63635 7.22043 6.41558C8.0153 6.19481 8.77547 6.28947 9.50092 6.69954L12.9831 8.66788C13.7086 9.07795 14.1817 9.68042 14.4024 10.4753C14.6232 11.2702 14.5286 12.0303 14.1185 12.7558L9.68971 20.5907C9.41907 21.0695 9.01689 21.383 8.4832 21.5312C7.9495 21.6795 7.44325 21.6183 6.96445 21.3476L1.74117 18.3951Z",
|
|
4185
|
+
fill: fillColor(color)
|
|
4186
|
+
}));
|
|
4187
|
+
});
|
|
4140
4188
|
export const ModuleView = /*#__PURE__*/memo(({
|
|
4141
4189
|
width,
|
|
4142
4190
|
height,
|
|
@@ -6780,6 +6828,34 @@ export const TwoSquare = /*#__PURE__*/memo(({
|
|
|
6780
6828
|
fill: fillColor(color)
|
|
6781
6829
|
}));
|
|
6782
6830
|
});
|
|
6831
|
+
export const TimeMore = /*#__PURE__*/memo(({
|
|
6832
|
+
width,
|
|
6833
|
+
height,
|
|
6834
|
+
color = 'system/rest',
|
|
6835
|
+
viewBox = false
|
|
6836
|
+
}) => {
|
|
6837
|
+
return viewBox ? /*#__PURE__*/React.createElement("svg", {
|
|
6838
|
+
width: width || 24,
|
|
6839
|
+
height: height || 24,
|
|
6840
|
+
viewBox: "0 0 24 24",
|
|
6841
|
+
fill: "none"
|
|
6842
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
6843
|
+
fillRule: "evenodd",
|
|
6844
|
+
clipRule: "evenodd",
|
|
6845
|
+
d: "M11 21C9.75 21 8.57917 20.7667 7.4875 20.3C6.39583 19.8333 5.44167 19.1917 4.625 18.375C3.80833 17.5583 3.16667 16.6042 2.7 15.5125C2.23333 14.4208 2 13.25 2 12C2 10.75 2.23333 9.57917 2.7 8.4875C3.16667 7.39583 3.80833 6.44167 4.625 5.625C5.44167 4.80833 6.39583 4.16667 7.4875 3.7C8.57917 3.23333 9.75 3 11 3C11.35 3 11.6875 3.02083 12.0125 3.0625C12.3375 3.10417 12.6667 3.16667 13 3.25V5.3C12.6667 5.2 12.3375 5.125 12.0125 5.075C11.6875 5.025 11.35 5 11 5C9.03333 5 7.375 5.675 6.025 7.025C4.675 8.375 4 10.0333 4 12C4 13.9667 4.675 15.625 6.025 16.975C7.375 18.325 9.03333 19 11 19C12.9667 19 14.625 18.325 15.975 16.975C17.325 15.625 18 13.9667 18 12C18 11.8167 17.9917 11.65 17.975 11.5C17.9583 11.35 17.9333 11.1833 17.9 11H19.95C19.9833 11.1833 20 11.35 20 11.5V12C20 13.25 19.7667 14.4208 19.3 15.5125C18.8333 16.6042 18.1917 17.5583 17.375 18.375C16.5583 19.1917 15.6042 19.8333 14.5125 20.3C13.4208 20.7667 12.25 21 11 21ZM13.8 16.2L10 12.4V7H12V11.6L15.2 14.8L13.8 16.2ZM18 9V6H15V4H18V1H20V4H23V6H20V9H18Z",
|
|
6846
|
+
fill: fillColor(color)
|
|
6847
|
+
})) : /*#__PURE__*/React.createElement("svg", {
|
|
6848
|
+
width: width || 21,
|
|
6849
|
+
height: height || 20,
|
|
6850
|
+
viewBox: "0 0 21 20",
|
|
6851
|
+
fill: "none"
|
|
6852
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
6853
|
+
fillRule: "evenodd",
|
|
6854
|
+
clipRule: "evenodd",
|
|
6855
|
+
d: "M9 20C7.75 20 6.57917 19.7667 5.4875 19.3C4.39583 18.8333 3.44167 18.1917 2.625 17.375C1.80833 16.5583 1.16667 15.6042 0.7 14.5125C0.233333 13.4208 0 12.25 0 11C0 9.75 0.233333 8.57917 0.7 7.4875C1.16667 6.39583 1.80833 5.44167 2.625 4.625C3.44167 3.80833 4.39583 3.16667 5.4875 2.7C6.57917 2.23333 7.75 2 9 2C9.35 2 9.6875 2.02083 10.0125 2.0625C10.3375 2.10417 10.6667 2.16667 11 2.25V4.3C10.6667 4.2 10.3375 4.125 10.0125 4.075C9.6875 4.025 9.35 4 9 4C7.03333 4 5.375 4.675 4.025 6.025C2.675 7.375 2 9.03333 2 11C2 12.9667 2.675 14.625 4.025 15.975C5.375 17.325 7.03333 18 9 18C10.9667 18 12.625 17.325 13.975 15.975C15.325 14.625 16 12.9667 16 11C16 10.8167 15.9917 10.65 15.975 10.5C15.9583 10.35 15.9333 10.1833 15.9 10H17.95C17.9833 10.1833 18 10.35 18 10.5V11C18 12.25 17.7667 13.4208 17.3 14.5125C16.8333 15.6042 16.1917 16.5583 15.375 17.375C14.5583 18.1917 13.6042 18.8333 12.5125 19.3C11.4208 19.7667 10.25 20 9 20ZM11.8 15.2L8 11.4V6H10V10.6L13.2 13.8L11.8 15.2ZM16 8V5H13V3H16V0H18V3H21V5H18V8H16Z",
|
|
6856
|
+
fill: fillColor(color)
|
|
6857
|
+
}));
|
|
6858
|
+
});
|
|
6783
6859
|
export const View = /*#__PURE__*/memo(({
|
|
6784
6860
|
width,
|
|
6785
6861
|
height,
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -42,6 +42,12 @@ npm test
|
|
|
42
42
|
|
|
43
43
|
## Changelog
|
|
44
44
|
|
|
45
|
+
## 1.4.58
|
|
46
|
+
- \[Added\]: Icon – Add IconMenu MHRP29N0035, MHRP29N0036
|
|
47
|
+
- \[Added\]: Icon – Add Icon TimeMore, HomeLocation, MilkBottle
|
|
48
|
+
- \[Fixed\]: NumberInput – Fix NumberInput, even with the disabledNegative prop enabled, users can still paste negative values.
|
|
49
|
+
- \[Fixed\]: Dropdown – Add the endIcon prop to the Dropdown
|
|
50
|
+
|
|
45
51
|
## 1.4.57
|
|
46
52
|
- \[Fixed\]: NumberInput – Fix NumberInput, even with the disabledNegative prop enabled, users can still paste negative values.
|
|
47
53
|
- \[Fixed\]: Dropdown – In the multiple dropdown, the avatar and name are wrapping to the next line
|