diginet-core-ui 1.3.73 → 1.3.74
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/MHRP29N0026.svg +13 -0
- package/assets/images/menu/dhr/MHRP29N0027.svg +14 -0
- package/assets/images/menu/dhr/MHRP29N0028.svg +15 -0
- package/components/accordion/details.js +19 -10
- package/components/accordion/group.js +15 -6
- package/components/accordion/index.js +20 -11
- package/components/accordion/summary.js +18 -9
- package/components/avatar/index.js +1 -1
- package/components/badge/index.js +17 -9
- package/components/button/icon.js +33 -25
- package/components/button/index.js +25 -17
- package/components/card/body.js +12 -4
- package/components/card/extra.js +12 -4
- package/components/card/footer.js +12 -4
- package/components/card/header.js +12 -4
- package/components/card/index.js +12 -4
- package/components/chip/index.js +6 -6
- package/components/form-control/attachment/index.js +197 -192
- package/components/form-control/date-picker/index.js +4 -2
- package/components/form-control/date-range-picker/index.js +15 -8
- package/components/form-control/dropdown/index.js +34 -13
- package/components/form-control/input-base/index.js +505 -483
- package/components/form-control/label/index.js +27 -21
- package/components/form-control/text-input/index.js +4 -1
- package/components/grid/Col.js +8 -7
- package/components/grid/Container.js +16 -15
- package/components/grid/Row.js +16 -15
- package/components/grid/index.js +17 -36
- package/components/image/index.js +164 -0
- package/components/index.js +3 -1
- package/components/modal/body.js +12 -9
- package/components/modal/footer.js +22 -11
- package/components/modal/header.js +25 -13
- package/components/modal/index.js +32 -30
- package/components/modal/modal.js +29 -25
- package/components/others/option-wrapper/index.js +5 -18
- package/components/paging/page-info.js +45 -33
- package/components/paging/page-selector2.js +45 -33
- package/components/popover/body.js +14 -6
- package/components/popover/footer.js +15 -6
- package/components/popover/header.js +17 -7
- package/components/popover/index.js +242 -109
- package/components/status/index.js +12 -4
- package/components/tab/tab-container.js +29 -27
- package/components/tab/tab-header.js +33 -28
- package/components/tab/tab-panel.js +31 -27
- package/components/tab/tab.js +45 -35
- package/components/tree-view/index.js +108 -73
- package/components/typography/index.js +36 -25
- package/icons/basic.js +248 -0
- package/icons/effect.js +44 -36
- package/package.json +1 -1
- package/readme.md +40 -0
- package/styles/general.js +23 -0
- package/theme/index.js +1 -1
- package/theme/set-theme.js +2 -1
- package/utils/index.js +13 -10
- package/utils/useMediaQuery.js +4 -2
package/icons/basic.js
CHANGED
|
@@ -392,6 +392,34 @@ export const ApprovalCancel = /*#__PURE__*/memo(({
|
|
|
392
392
|
fill: colors[color] || color
|
|
393
393
|
}));
|
|
394
394
|
});
|
|
395
|
+
export const ApprovalDouble = /*#__PURE__*/memo(({
|
|
396
|
+
width,
|
|
397
|
+
height,
|
|
398
|
+
color = '#7F828E',
|
|
399
|
+
viewBox = false
|
|
400
|
+
}) => {
|
|
401
|
+
return viewBox ? /*#__PURE__*/React.createElement("svg", {
|
|
402
|
+
width: width || 24,
|
|
403
|
+
height: height || 24,
|
|
404
|
+
viewBox: "0 0 24 24",
|
|
405
|
+
fill: "none"
|
|
406
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
407
|
+
fillRule: "evenodd",
|
|
408
|
+
clipRule: "evenodd",
|
|
409
|
+
d: "M22.2399 5.58997L11.6599 16.17L7.47991 12L6.06991 13.41L11.6599 19L23.6599 6.99997L22.2399 5.58997ZM17.9999 6.99997L16.5899 5.58997L10.2499 11.93L11.6599 13.34L17.9999 6.99997ZM5.99991 19L0.409912 13.41L1.82991 12L7.40991 17.59L5.99991 19Z",
|
|
410
|
+
fill: colors[color] || color
|
|
411
|
+
})) : /*#__PURE__*/React.createElement("svg", {
|
|
412
|
+
width: width || 24,
|
|
413
|
+
height: height || 14,
|
|
414
|
+
viewBox: "0 0 24 14",
|
|
415
|
+
fill: "none"
|
|
416
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
417
|
+
fillRule: "evenodd",
|
|
418
|
+
clipRule: "evenodd",
|
|
419
|
+
d: "M22.2399 0.589966L11.6599 11.17L7.47991 6.99997L6.06991 8.40997L11.6599 14L23.6599 1.99997L22.2399 0.589966ZM17.9999 1.99997L16.5899 0.589966L10.2499 6.92997L11.6599 8.33997L17.9999 1.99997ZM5.99991 14L0.409912 8.40997L1.82991 6.99997L7.40991 12.59L5.99991 14Z",
|
|
420
|
+
fill: colors[color] || color
|
|
421
|
+
}));
|
|
422
|
+
});
|
|
395
423
|
export const ApprovalOutline = /*#__PURE__*/memo(({
|
|
396
424
|
width,
|
|
397
425
|
height,
|
|
@@ -714,6 +742,34 @@ export const Assessment = /*#__PURE__*/memo(({
|
|
|
714
742
|
fill: colors[color] || color
|
|
715
743
|
}));
|
|
716
744
|
});
|
|
745
|
+
export const AssignmentFilled = /*#__PURE__*/memo(({
|
|
746
|
+
width,
|
|
747
|
+
height,
|
|
748
|
+
color = '#7F828E',
|
|
749
|
+
viewBox = false
|
|
750
|
+
}) => {
|
|
751
|
+
return viewBox ? /*#__PURE__*/React.createElement("svg", {
|
|
752
|
+
width: width || 24,
|
|
753
|
+
height: height || 24,
|
|
754
|
+
viewBox: "0 0 24 24",
|
|
755
|
+
fill: "none"
|
|
756
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
757
|
+
fillRule: "evenodd",
|
|
758
|
+
clipRule: "evenodd",
|
|
759
|
+
d: "M19 3H14.82C14.4 1.84 13.3 1 12 1C10.7 1 9.6 1.84 9.18 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM12 3C12.55 3 13 3.45 13 4C13 4.55 12.55 5 12 5C11.45 5 11 4.55 11 4C11 3.45 11.45 3 12 3ZM7 17H14V15H7V17ZM17 13H7V11H17V13ZM7 9H17V7H7V9Z",
|
|
760
|
+
fill: colors[color] || color
|
|
761
|
+
})) : /*#__PURE__*/React.createElement("svg", {
|
|
762
|
+
width: width || 18,
|
|
763
|
+
height: height || 20,
|
|
764
|
+
viewBox: "0 0 18 20",
|
|
765
|
+
fill: "none"
|
|
766
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
767
|
+
fillRule: "evenodd",
|
|
768
|
+
clipRule: "evenodd",
|
|
769
|
+
d: "M16 2H11.82C11.4 0.84 10.3 0 9 0C7.7 0 6.6 0.84 6.18 2H2C0.9 2 0 2.9 0 4V18C0 19.1 0.9 20 2 20H16C17.1 20 18 19.1 18 18V4C18 2.9 17.1 2 16 2ZM9 2C9.55 2 10 2.45 10 3C10 3.55 9.55 4 9 4C8.45 4 8 3.55 8 3C8 2.45 8.45 2 9 2ZM4 16H11V14H4V16ZM14 12H4V10H14V12ZM4 8H14V6H4V8Z",
|
|
770
|
+
fill: colors[color] || color
|
|
771
|
+
}));
|
|
772
|
+
});
|
|
717
773
|
export const AssignmentInd = /*#__PURE__*/memo(({
|
|
718
774
|
width,
|
|
719
775
|
height,
|
|
@@ -1972,6 +2028,34 @@ export const Emoji = /*#__PURE__*/memo(({
|
|
|
1972
2028
|
fill: colors[color] || color
|
|
1973
2029
|
}));
|
|
1974
2030
|
});
|
|
2031
|
+
export const Error = /*#__PURE__*/memo(({
|
|
2032
|
+
width,
|
|
2033
|
+
height,
|
|
2034
|
+
color = '#7F828E',
|
|
2035
|
+
viewBox = false
|
|
2036
|
+
}) => {
|
|
2037
|
+
return viewBox ? /*#__PURE__*/React.createElement("svg", {
|
|
2038
|
+
width: width || 24,
|
|
2039
|
+
height: height || 24,
|
|
2040
|
+
viewBox: "0 0 24 24",
|
|
2041
|
+
fill: "none"
|
|
2042
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
2043
|
+
fillRule: "evenodd",
|
|
2044
|
+
clipRule: "evenodd",
|
|
2045
|
+
d: "M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM11 17V15H13V17H11ZM11 7V13H13V7H11Z",
|
|
2046
|
+
fill: colors[color] || color
|
|
2047
|
+
})) : /*#__PURE__*/React.createElement("svg", {
|
|
2048
|
+
width: width || 20,
|
|
2049
|
+
height: height || 20,
|
|
2050
|
+
viewBox: "0 0 20 20",
|
|
2051
|
+
fill: "none"
|
|
2052
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
2053
|
+
fillRule: "evenodd",
|
|
2054
|
+
clipRule: "evenodd",
|
|
2055
|
+
d: "M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM9 15V13H11V15H9ZM9 5V11H11V5H9Z",
|
|
2056
|
+
fill: colors[color] || color
|
|
2057
|
+
}));
|
|
2058
|
+
});
|
|
1975
2059
|
export const Event = /*#__PURE__*/memo(({
|
|
1976
2060
|
width,
|
|
1977
2061
|
height,
|
|
@@ -2262,6 +2346,34 @@ export const First = /*#__PURE__*/memo(({
|
|
|
2262
2346
|
fill: colors[color] || color
|
|
2263
2347
|
}));
|
|
2264
2348
|
});
|
|
2349
|
+
export const FiveSquare = /*#__PURE__*/memo(({
|
|
2350
|
+
width,
|
|
2351
|
+
height,
|
|
2352
|
+
color = '#7F828E',
|
|
2353
|
+
viewBox = false
|
|
2354
|
+
}) => {
|
|
2355
|
+
return viewBox ? /*#__PURE__*/React.createElement("svg", {
|
|
2356
|
+
width: width || 24,
|
|
2357
|
+
height: height || 24,
|
|
2358
|
+
viewBox: "0 0 24 24",
|
|
2359
|
+
fill: "none"
|
|
2360
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
2361
|
+
fillRule: "evenodd",
|
|
2362
|
+
clipRule: "evenodd",
|
|
2363
|
+
d: "M5 3H19C20.1 3 21 3.9 21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3ZM11 9H15V7H9V13H13V15H9V17H13C14.1 17 15 16.11 15 15V13C15 11.89 14.1 11 13 11H11V9Z",
|
|
2364
|
+
fill: colors[color] || color
|
|
2365
|
+
})) : /*#__PURE__*/React.createElement("svg", {
|
|
2366
|
+
width: width || 18,
|
|
2367
|
+
height: height || 18,
|
|
2368
|
+
viewBox: "0 0 18 18",
|
|
2369
|
+
fill: "none"
|
|
2370
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
2371
|
+
fillRule: "evenodd",
|
|
2372
|
+
clipRule: "evenodd",
|
|
2373
|
+
d: "M2 0H16C17.1 0 18 0.9 18 2V16C18 17.1 17.1 18 16 18H2C0.9 18 0 17.1 0 16V2C0 0.9 0.9 0 2 0ZM8 6H12V4H6V10H10V12H6V14H10C11.1 14 12 13.11 12 12V10C12 8.89 11.1 8 10 8H8V6Z",
|
|
2374
|
+
fill: colors[color] || color
|
|
2375
|
+
}));
|
|
2376
|
+
});
|
|
2265
2377
|
export const Flag = /*#__PURE__*/memo(({
|
|
2266
2378
|
width,
|
|
2267
2379
|
height,
|
|
@@ -2340,6 +2452,34 @@ export const FolderInsurance = /*#__PURE__*/memo(({
|
|
|
2340
2452
|
fill: colors[color] || color
|
|
2341
2453
|
}));
|
|
2342
2454
|
});
|
|
2455
|
+
export const FourSquare = /*#__PURE__*/memo(({
|
|
2456
|
+
width,
|
|
2457
|
+
height,
|
|
2458
|
+
color = '#7F828E',
|
|
2459
|
+
viewBox = false
|
|
2460
|
+
}) => {
|
|
2461
|
+
return viewBox ? /*#__PURE__*/React.createElement("svg", {
|
|
2462
|
+
width: width || 24,
|
|
2463
|
+
height: height || 24,
|
|
2464
|
+
viewBox: "0 0 24 24",
|
|
2465
|
+
fill: "none"
|
|
2466
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
2467
|
+
fillRule: "evenodd",
|
|
2468
|
+
clipRule: "evenodd",
|
|
2469
|
+
d: "M4.83846 3H18.2785C19.3345 3 20.1985 3.9 20.1985 5V19C20.1985 20.1 19.3345 21 18.2785 21H4.83846C3.78246 21 2.91846 20.1 2.91846 19V5C2.91846 3.9 3.78246 3 4.83846 3ZM12.5185 17H14.4385V7H12.5185V11H10.5985V7H8.67846V13H12.5185V17Z",
|
|
2470
|
+
fill: colors[color] || color
|
|
2471
|
+
})) : /*#__PURE__*/React.createElement("svg", {
|
|
2472
|
+
width: width || 18,
|
|
2473
|
+
height: height || 18,
|
|
2474
|
+
viewBox: "0 0 18 18",
|
|
2475
|
+
fill: "none"
|
|
2476
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
2477
|
+
fillRule: "evenodd",
|
|
2478
|
+
clipRule: "evenodd",
|
|
2479
|
+
d: "M2.83846 0H16.2785C17.3345 0 18.1985 0.9 18.1985 2V16C18.1985 17.1 17.3345 18 16.2785 18H2.83846C1.78246 18 0.918457 17.1 0.918457 16V2C0.918457 0.9 1.78246 0 2.83846 0ZM10.5185 14H12.4385V4H10.5185V8H8.59846V4H6.67846V10H10.5185V14Z",
|
|
2480
|
+
fill: colors[color] || color
|
|
2481
|
+
}));
|
|
2482
|
+
});
|
|
2343
2483
|
export const Gavel = /*#__PURE__*/memo(({
|
|
2344
2484
|
width,
|
|
2345
2485
|
height,
|
|
@@ -3748,6 +3888,34 @@ export const NotificationV2 = /*#__PURE__*/memo(({
|
|
|
3748
3888
|
fill: colors[color] || color
|
|
3749
3889
|
}));
|
|
3750
3890
|
});
|
|
3891
|
+
export const OneSquare = /*#__PURE__*/memo(({
|
|
3892
|
+
width,
|
|
3893
|
+
height,
|
|
3894
|
+
color = '#7F828E',
|
|
3895
|
+
viewBox = false
|
|
3896
|
+
}) => {
|
|
3897
|
+
return viewBox ? /*#__PURE__*/React.createElement("svg", {
|
|
3898
|
+
width: width || 24,
|
|
3899
|
+
height: height || 24,
|
|
3900
|
+
viewBox: "0 0 24 24",
|
|
3901
|
+
fill: "none"
|
|
3902
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
3903
|
+
fillRule: "evenodd",
|
|
3904
|
+
clipRule: "evenodd",
|
|
3905
|
+
d: "M5 3H19C20.1 3 21 3.9 21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3ZM12 17H14V7H10V9H12V17Z",
|
|
3906
|
+
fill: colors[color] || color
|
|
3907
|
+
})) : /*#__PURE__*/React.createElement("svg", {
|
|
3908
|
+
width: width || 18,
|
|
3909
|
+
height: height || 18,
|
|
3910
|
+
viewBox: "0 0 18 18",
|
|
3911
|
+
fill: "none"
|
|
3912
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
3913
|
+
fillRule: "evenodd",
|
|
3914
|
+
clipRule: "evenodd",
|
|
3915
|
+
d: "M2 0H16C17.1 0 18 0.9 18 2V16C18 17.1 17.1 18 16 18H2C0.9 18 0 17.1 0 16V2C0 0.9 0.9 0 2 0ZM9 14H11V4H7V6H9V14Z",
|
|
3916
|
+
fill: colors[color] || color
|
|
3917
|
+
}));
|
|
3918
|
+
});
|
|
3751
3919
|
export const Undo = /*#__PURE__*/memo(({
|
|
3752
3920
|
width,
|
|
3753
3921
|
height,
|
|
@@ -4999,6 +5167,30 @@ export const ReviewAdd = /*#__PURE__*/memo(({
|
|
|
4999
5167
|
fill: colors[color] || color
|
|
5000
5168
|
}));
|
|
5001
5169
|
});
|
|
5170
|
+
export const ReviewOutline = /*#__PURE__*/memo(({
|
|
5171
|
+
width,
|
|
5172
|
+
height,
|
|
5173
|
+
color = '#7F828E',
|
|
5174
|
+
viewBox = false
|
|
5175
|
+
}) => {
|
|
5176
|
+
return viewBox ? /*#__PURE__*/React.createElement("svg", {
|
|
5177
|
+
width: width || 24,
|
|
5178
|
+
height: height || 24,
|
|
5179
|
+
viewBox: "0 0 24 24",
|
|
5180
|
+
fill: "none"
|
|
5181
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
5182
|
+
d: "M20 2H4C2.9 2 2.01 2.9 2.01 4L2 22L6 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2ZM20 16H5.17L4.58 16.59L4 17.17V4H20V16ZM10.5 14H18V12H12.5L10.5 14ZM14.36 8.13C14.56 7.93 14.56 7.62 14.36 7.42L12.59 5.65C12.39 5.45 12.08 5.45 11.88 5.65L6 11.53V14H8.47L14.36 8.13Z",
|
|
5183
|
+
fill: colors[color] || color
|
|
5184
|
+
})) : /*#__PURE__*/React.createElement("svg", {
|
|
5185
|
+
width: width || 20,
|
|
5186
|
+
height: height || 20,
|
|
5187
|
+
viewBox: "0 0 20 20",
|
|
5188
|
+
fill: "none"
|
|
5189
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
5190
|
+
d: "M18 0H2C0.9 0 0.00999999 0.9 0.00999999 2L0 20L4 16H18C19.1 16 20 15.1 20 14V2C20 0.9 19.1 0 18 0ZM18 14H3.17L2.58 14.59L2 15.17V2H18V14ZM8.5 12H16V10H10.5L8.5 12ZM12.36 6.13C12.56 5.93 12.56 5.62 12.36 5.42L10.59 3.65C10.39 3.45 10.08 3.45 9.88 3.65L4 9.53V12H6.47L12.36 6.13Z",
|
|
5191
|
+
fill: colors[color] || color
|
|
5192
|
+
}));
|
|
5193
|
+
});
|
|
5002
5194
|
export const Link = /*#__PURE__*/memo(({
|
|
5003
5195
|
width,
|
|
5004
5196
|
height,
|
|
@@ -5557,6 +5749,34 @@ export const SyncHorizontal = /*#__PURE__*/memo(({
|
|
|
5557
5749
|
fill: colors[color] || color
|
|
5558
5750
|
}));
|
|
5559
5751
|
});
|
|
5752
|
+
export const ThreeSquare = /*#__PURE__*/memo(({
|
|
5753
|
+
width,
|
|
5754
|
+
height,
|
|
5755
|
+
color = '#7F828E',
|
|
5756
|
+
viewBox = false
|
|
5757
|
+
}) => {
|
|
5758
|
+
return viewBox ? /*#__PURE__*/React.createElement("svg", {
|
|
5759
|
+
width: width || 24,
|
|
5760
|
+
height: height || 24,
|
|
5761
|
+
viewBox: "0 0 24 24",
|
|
5762
|
+
fill: "none"
|
|
5763
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
5764
|
+
fillRule: "evenodd",
|
|
5765
|
+
clipRule: "evenodd",
|
|
5766
|
+
d: "M5.01001 3H19.01C20.11 3 21 3.9 21 5V19C21 20.1 20.11 21 19.01 21H5.01001C3.91001 21 3.01001 20.1 3.01001 19V5C3.01001 3.9 3.91001 3 5.01001 3ZM13.51 12C14.34 12 15.01 11.33 15.01 10.5V9C15.01 7.89 14.11 7 13.01 7H9.00001V9H13V11H11V13H13V15H9.00001V17H13.01C14.11 17 15.01 16.11 15.01 15V13.5C15.01 12.67 14.34 12 13.51 12Z",
|
|
5767
|
+
fill: colors[color] || color
|
|
5768
|
+
})) : /*#__PURE__*/React.createElement("svg", {
|
|
5769
|
+
width: width || 18,
|
|
5770
|
+
height: height || 18,
|
|
5771
|
+
viewBox: "0 0 18 18",
|
|
5772
|
+
fill: "none"
|
|
5773
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
5774
|
+
fillRule: "evenodd",
|
|
5775
|
+
clipRule: "evenodd",
|
|
5776
|
+
d: "M2.01001 0H16.01C17.11 0 18 0.9 18 2V16C18 17.1 17.11 18 16.01 18H2.01001C0.91001 18 0.0100098 17.1 0.0100098 16V2C0.0100098 0.9 0.91001 0 2.01001 0ZM10.51 9C11.34 9 12.01 8.33 12.01 7.5V6C12.01 4.89 11.11 4 10.01 4H6.00001V6H10V8H8.00001V10H10V12H6.00001V14H10.01C11.11 14 12.01 13.11 12.01 12V10.5C12.01 9.67 11.34 9 10.51 9Z",
|
|
5777
|
+
fill: colors[color] || color
|
|
5778
|
+
}));
|
|
5779
|
+
});
|
|
5560
5780
|
export const Touch = /*#__PURE__*/memo(({
|
|
5561
5781
|
width,
|
|
5562
5782
|
height,
|
|
@@ -5641,6 +5861,34 @@ export const Treeview = /*#__PURE__*/memo(({
|
|
|
5641
5861
|
fill: colors[color] || color
|
|
5642
5862
|
}));
|
|
5643
5863
|
});
|
|
5864
|
+
export const TwoSquare = /*#__PURE__*/memo(({
|
|
5865
|
+
width,
|
|
5866
|
+
height,
|
|
5867
|
+
color = '#7F828E',
|
|
5868
|
+
viewBox = false
|
|
5869
|
+
}) => {
|
|
5870
|
+
return viewBox ? /*#__PURE__*/React.createElement("svg", {
|
|
5871
|
+
width: width || 24,
|
|
5872
|
+
height: height || 24,
|
|
5873
|
+
viewBox: "0 0 24 24",
|
|
5874
|
+
fill: "none"
|
|
5875
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
5876
|
+
fillRule: "evenodd",
|
|
5877
|
+
clipRule: "evenodd",
|
|
5878
|
+
d: "M5 3H19C20.1 3 21 3.9 21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3ZM13 13C14.1 13 15 12.11 15 11V9C15 7.89 14.1 7 13 7H9V9H13V11H11C9.9 11 9 11.89 9 13V17H15V15H11V13H13Z",
|
|
5879
|
+
fill: colors[color] || color
|
|
5880
|
+
})) : /*#__PURE__*/React.createElement("svg", {
|
|
5881
|
+
width: width || 18,
|
|
5882
|
+
height: height || 18,
|
|
5883
|
+
viewBox: "0 0 18 18",
|
|
5884
|
+
fill: "none"
|
|
5885
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
5886
|
+
fillRule: "evenodd",
|
|
5887
|
+
clipRule: "evenodd",
|
|
5888
|
+
d: "M2 0H16C17.1 0 18 0.9 18 2V16C18 17.1 17.1 18 16 18H2C0.9 18 0 17.1 0 16V2C0 0.9 0.9 0 2 0ZM10 10C11.1 10 12 9.11 12 8V6C12 4.89 11.1 4 10 4H6V6H10V8H8C6.9 8 6 8.89 6 10V14H12V12H8V10H10Z",
|
|
5889
|
+
fill: colors[color] || color
|
|
5890
|
+
}));
|
|
5891
|
+
});
|
|
5644
5892
|
export const View = /*#__PURE__*/memo(({
|
|
5645
5893
|
width,
|
|
5646
5894
|
height,
|
package/icons/effect.js
CHANGED
|
@@ -15,6 +15,7 @@ const {
|
|
|
15
15
|
}
|
|
16
16
|
} = colors;
|
|
17
17
|
const Icon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
18
|
+
action = {},
|
|
18
19
|
name,
|
|
19
20
|
className,
|
|
20
21
|
style,
|
|
@@ -27,28 +28,35 @@ const Icon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
27
28
|
}, reference) => {
|
|
28
29
|
const ref = useRef(null);
|
|
29
30
|
const IconCss = css`
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
${flexRow};
|
|
32
|
+
${justifyCenter};
|
|
33
|
+
${alignCenter};
|
|
34
|
+
${borderBox};
|
|
35
|
+
${outlineNone};
|
|
36
|
+
${userSelectNone};
|
|
37
|
+
width: max-content;
|
|
38
|
+
height: max-content;
|
|
39
|
+
min-width: ${width ? isNaN(width) ? width : width + 'px' : '24px'};
|
|
40
|
+
min-height: ${width ? isNaN(height) ? height : height + 'px' : '24px'};
|
|
41
|
+
`;
|
|
41
42
|
const NotFoundIcon = css`
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
useImperativeHandle(reference, () =>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
${flexRow};
|
|
44
|
+
${borderBox};
|
|
45
|
+
width: ${width ? isNaN(width) ? width : width + 'px' : '24px'};
|
|
46
|
+
height: ${width ? isNaN(width) ? width : width + 'px' : '24px'};
|
|
47
|
+
border: 1px dashed ${rest};
|
|
48
|
+
`;
|
|
49
|
+
useImperativeHandle(reference, () => {
|
|
50
|
+
const currentRef = ref.current || {};
|
|
51
|
+
currentRef.element = ref.current;
|
|
52
|
+
const _instance = { ...action
|
|
53
|
+
}; // methods
|
|
54
|
+
|
|
55
|
+
_instance.__proto__ = {}; // hidden methods
|
|
56
|
+
|
|
57
|
+
currentRef.instance = _instance;
|
|
58
|
+
return currentRef;
|
|
59
|
+
});
|
|
52
60
|
return useMemo(() => {
|
|
53
61
|
if (!name) return null;
|
|
54
62
|
let node = null;
|
|
@@ -89,8 +97,8 @@ Icon.propTypes = {
|
|
|
89
97
|
/** name of icon in icons store */
|
|
90
98
|
name: PropTypes.string.isRequired,
|
|
91
99
|
|
|
92
|
-
/** color of icon<br />
|
|
93
|
-
* default: #7F828E
|
|
100
|
+
/** color of icon<br />
|
|
101
|
+
* default: #7F828E
|
|
94
102
|
*/
|
|
95
103
|
color: PropTypes.string,
|
|
96
104
|
|
|
@@ -112,19 +120,19 @@ Icon.propTypes = {
|
|
|
112
120
|
/** have view box if true */
|
|
113
121
|
onClick: PropTypes.func,
|
|
114
122
|
|
|
115
|
-
/**
|
|
116
|
-
* ref methods
|
|
117
|
-
*
|
|
118
|
-
* * option(): Gets all UI component properties
|
|
119
|
-
* * Returns value - object
|
|
120
|
-
* * option(optionName): Gets the value of a single property
|
|
121
|
-
* * @param {optionName} - string
|
|
122
|
-
* * Returns value - any
|
|
123
|
-
* * option(optionName, optionValue): Updates the value of a single property
|
|
124
|
-
* * @param {optionName} - string
|
|
125
|
-
* * @param {optionValue} - any
|
|
126
|
-
* * option(options): Updates the values of several properties
|
|
127
|
-
* * @param {options} - object
|
|
123
|
+
/**
|
|
124
|
+
* ref methods
|
|
125
|
+
*
|
|
126
|
+
* * option(): Gets all UI component properties
|
|
127
|
+
* * Returns value - object
|
|
128
|
+
* * option(optionName): Gets the value of a single property
|
|
129
|
+
* * @param {optionName} - string
|
|
130
|
+
* * Returns value - any
|
|
131
|
+
* * option(optionName, optionValue): Updates the value of a single property
|
|
132
|
+
* * @param {optionName} - string
|
|
133
|
+
* * @param {optionValue} - any
|
|
134
|
+
* * option(options): Updates the values of several properties
|
|
135
|
+
* * @param {options} - object
|
|
128
136
|
*/
|
|
129
137
|
reference: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
130
138
|
current: PropTypes.instanceOf(Element)
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -38,6 +38,46 @@ npm test
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
## Changelog
|
|
41
|
+
## 1.3.74
|
|
42
|
+
- \[Added\]: Icon – ApprovalDouble, Error, OneSquare, TwoSquare, ThreeSquare, FourSquare, FiveSquare, AssignmentFilled, ReviewOutline
|
|
43
|
+
- \[Added\]: MenuIcon – MHRP29N0026 , MHRP29N0027, MHRP29N0028
|
|
44
|
+
- \[Changed\]: Dropdown – Update UI mode multi and optimize render multi selected
|
|
45
|
+
- \[Changed\]: Chip – Update Chip with new design, clean and optimize code
|
|
46
|
+
- \[Changed\]: Modal – Update Padding Modal with new design
|
|
47
|
+
- \[Changed\]: Modal – Update option Show/Hide Box-shadow for Footer
|
|
48
|
+
- \[Changed\]: Tab – Add prop width in TabHeader
|
|
49
|
+
- \[Changed\]: Popover – Add target to method show; Add prop className
|
|
50
|
+
- \[Changed\]: OptionWrapper – Update OptionWrapper
|
|
51
|
+
- \[Changed\]: Typography – Add cursor pointer when clickable
|
|
52
|
+
- \[Changed\]: Dropdown – Add no data text when treeview datasource empty
|
|
53
|
+
- \[Changed\]: Attachment – Add recentRemovedAttached and change removedAttached in onChange
|
|
54
|
+
- \[Changed\]: Popover – Add anchor's cursor pointer; Update position when children is changed
|
|
55
|
+
- \[Changed\]: Attachment – Add default for prop uploadErrorInfo
|
|
56
|
+
- \[Changed\]: Tab – Add proptype string for prop tabIndex in TabContainer
|
|
57
|
+
- \[Changed\]: Tab – Add prop labelProps in TabItem; Fix max-width TabItem; Remove border TabHeader
|
|
58
|
+
- \[Changed\]: Avatar – Add default when src url error
|
|
59
|
+
- \[Changed\]: Image – Add component Image
|
|
60
|
+
- \[Changed\]: InputBase, TextInput – Add hover tooltip when readOnly
|
|
61
|
+
- \[Changed\]: DateRangePicker – Add prop showUnitCount
|
|
62
|
+
- \[Fixed\]: DatePicker – Fix not show placeholder
|
|
63
|
+
- \[Fixed\]: Label – Fix margin of label inside input components
|
|
64
|
+
- \[Fixed\]: TreeView – Fix bug disabledRelevantValue
|
|
65
|
+
- \[Fixed\]: Dropdown – Fix bug not close after select dropdown treeview by children
|
|
66
|
+
- \[Fixed\]: Grid – Add missing useMemo dependency
|
|
67
|
+
- \[Fixed\]: Popover – Fix css min-width, max-height, justify-content
|
|
68
|
+
- \[Fixed\]: Dropdown – Chip disable when Dropdown is disabled
|
|
69
|
+
- \[Fixed\]: Accordion – Fix bug onExpand, onCollapse not return element AccordionSummary
|
|
70
|
+
- \[Fixed\]: DatePicker – Recalculate position of picker
|
|
71
|
+
- \[Fixed\]: Dropdown – Fix bug render selected item [object Object]
|
|
72
|
+
- \[Fixed\]: Dropdown – Fix bug lost icon when select same value
|
|
73
|
+
- \[Fixed\]: Dropdown – Fix bug not show clear when use only defaultValue
|
|
74
|
+
- \[Fixed\]: Popover – Fix bug trigger hover
|
|
75
|
+
- \[Fixed\]: Typography – Fix hover tooltip height
|
|
76
|
+
- \[Fixed\]: DateRangePicker – Fix not show placeholder
|
|
77
|
+
- \[Fixed\]: Dropdown – Fix viewType outlined not show placeholder
|
|
78
|
+
- \[Fixed\]: Popover – Calculate position center when overflow
|
|
79
|
+
|
|
80
|
+
|
|
41
81
|
## 1.3.73
|
|
42
82
|
- \[Added\]: Icon – PersonArrowRight
|
|
43
83
|
- \[Added\]: MenuIcon – MHRM82N0001, MHRM82N0002
|
package/styles/general.js
CHANGED
|
@@ -96,6 +96,9 @@ export const positionFixed = css`
|
|
|
96
96
|
export const borderRadius4px = css`
|
|
97
97
|
border-radius: 4px;
|
|
98
98
|
`;
|
|
99
|
+
export const borderRadius50 = css`
|
|
100
|
+
border-radius: 50%;
|
|
101
|
+
`;
|
|
99
102
|
export const borderBox = css`
|
|
100
103
|
box-sizing: border-box;
|
|
101
104
|
`;
|
|
@@ -185,4 +188,24 @@ export const parseHeight = height => css`
|
|
|
185
188
|
export const parseWidthHeight = (width, height = width) => css`
|
|
186
189
|
width: ${isNaN(width) ? width : width + 'px'};
|
|
187
190
|
height: ${isNaN(height) ? height : height + 'px'};
|
|
191
|
+
`;
|
|
192
|
+
export const parseMinWidth = width => css`
|
|
193
|
+
min-width: ${isNaN(width) ? width : width + 'px'};
|
|
194
|
+
`;
|
|
195
|
+
export const parseMinHeight = height => css`
|
|
196
|
+
min-height: ${isNaN(height) ? height : height + 'px'};
|
|
197
|
+
`;
|
|
198
|
+
export const parseMinWidthHeight = (width, height = width) => css`
|
|
199
|
+
min-width: ${isNaN(width) ? width : width + 'px'};
|
|
200
|
+
min-height: ${isNaN(height) ? height : height + 'px'};
|
|
201
|
+
`;
|
|
202
|
+
export const parseMaxWidth = width => css`
|
|
203
|
+
max-width: ${isNaN(width) ? width : width + 'px'};
|
|
204
|
+
`;
|
|
205
|
+
export const parseMaxHeight = height => css`
|
|
206
|
+
max-height: ${isNaN(height) ? height : height + 'px'};
|
|
207
|
+
`;
|
|
208
|
+
export const parseMaxWidthHeight = (width, height = width) => css`
|
|
209
|
+
max-width: ${isNaN(width) ? width : width + 'px'};
|
|
210
|
+
max-height: ${isNaN(height) ? height : height + 'px'};
|
|
188
211
|
`;
|
package/theme/index.js
CHANGED
package/theme/set-theme.js
CHANGED
package/utils/index.js
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import * as utils from '.';
|
|
2
2
|
export * from './array/array';
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as capitalizeSentenceCase } from './string/capitalizeSentenceCase';
|
|
5
|
-
export * from './string/string';
|
|
3
|
+
export { default as classNames } from './classNames';
|
|
6
4
|
export * from './date';
|
|
7
5
|
export { default as date } from './date';
|
|
8
6
|
export { default as getFileType } from './getFileType';
|
|
7
|
+
export { default as handleBreakpoints } from './handleBreakpoints';
|
|
8
|
+
export { default as isMobile } from './isMobile';
|
|
9
9
|
export { default as mapParent } from './map-parent';
|
|
10
10
|
export { default as parseTextToHTML } from './parseHTML';
|
|
11
11
|
export { default as promisify } from './promisify';
|
|
12
12
|
export { default as randomString } from './randomString';
|
|
13
|
+
export { default as refType } from './refType';
|
|
13
14
|
export { default as removeUnicode } from './remove-unicode';
|
|
14
|
-
export { default as renderIcon } from './renderIcon';
|
|
15
|
-
export { default as renderHTML } from './renderHTML';
|
|
16
15
|
export * from './render-portal';
|
|
16
|
+
export { default as renderHTML } from './renderHTML';
|
|
17
|
+
export { default as renderIcon } from './renderIcon';
|
|
18
|
+
export * from './sb-template';
|
|
19
|
+
export { default as SbTemplate } from './sb-template';
|
|
20
|
+
export { default as capitalize } from './string/capitalize';
|
|
21
|
+
export { default as capitalizeSentenceCase } from './string/capitalizeSentenceCase';
|
|
22
|
+
export * from './string/string';
|
|
17
23
|
export { default as updatePosition } from './updatePosition';
|
|
24
|
+
export { default as useDelayUnmount } from './useDelayUnmount';
|
|
25
|
+
export { default as useMediaQuery } from './useMediaQuery';
|
|
18
26
|
export { default as useOnClickOutside } from './useOnClickOutside';
|
|
19
27
|
export { default as usePortal } from './usePortal';
|
|
20
28
|
export * from './validate';
|
|
21
29
|
export { default as onValidate } from './validate';
|
|
22
|
-
export { default as classNames } from './classNames';
|
|
23
|
-
export { default as refType } from './refType';
|
|
24
|
-
export * from './sb-template';
|
|
25
|
-
export { default as SbTemplate } from './sb-template';
|
|
26
|
-
export { default as handleBreakpoints } from './handleBreakpoints';
|
|
27
30
|
export default utils;
|
package/utils/useMediaQuery.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useEffect, useState } from 'react'; // Usage:
|
|
|
4
4
|
// return <div>{`The view port is ${matches ? 'at least' : 'less than'} 768 pixels wide`}</div>;
|
|
5
5
|
// }
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const useMediaQuery = query => {
|
|
8
8
|
const getMatches = query => {
|
|
9
9
|
// Prevents SSR issues
|
|
10
10
|
if (typeof window !== 'undefined') {
|
|
@@ -41,4 +41,6 @@ export const useMediaQuery = query => {
|
|
|
41
41
|
};
|
|
42
42
|
}, [query]);
|
|
43
43
|
return matches;
|
|
44
|
-
};
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export default useMediaQuery;
|