diginet-core-ui 1.3.41 → 1.3.42
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/avatar/default.svg +3 -3
- package/assets/images/icons/wifi.svg +3 -3
- package/assets/images/menu/dhr/ALL.svg +6 -6
- package/assets/images/menu/dhr/D00.svg +12 -12
- package/assets/images/menu/dhr/D09.svg +8 -8
- package/assets/images/menu/dhr/D13.svg +10 -10
- package/assets/images/menu/dhr/D15.svg +10 -10
- package/assets/images/menu/dhr/D21.svg +10 -10
- package/assets/images/menu/dhr/D25.svg +11 -11
- package/assets/images/menu/dhr/D29.svg +11 -11
- package/assets/images/menu/dhr/D38.svg +6 -6
- package/assets/images/menu/dhr/D39.svg +10 -10
- package/assets/images/menu/dhr/D51.svg +12 -12
- package/assets/images/menu/dhr/D52.svg +16 -16
- package/assets/images/menu/dhr/D77.svg +16 -16
- package/assets/images/menu/dhr/D84.svg +12 -12
- package/assets/images/menu/dhr/D89.svg +8 -8
- package/assets/images/menu/dhr/Default.svg +13 -13
- package/assets/images/menu/dhr/MHRM00N0001.svg +14 -14
- package/assets/images/menu/dhr/MHRM09N0002.svg +3 -3
- package/assets/images/menu/dhr/MHRM09N0003.svg +25 -25
- package/assets/images/menu/dhr/MHRM09N0004.svg +14 -14
- package/assets/images/menu/dhr/MHRM09N0005.svg +7 -7
- package/assets/images/menu/dhr/MHRM13N0001.svg +16 -16
- package/assets/images/menu/dhr/MHRM25N0001.svg +26 -26
- package/assets/images/menu/dhr/MHRM29N0001.svg +30 -30
- package/assets/images/menu/dhr/MHRM29N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRM29N0003.svg +17 -17
- package/assets/images/menu/dhr/MHRM29N0015.svg +63 -63
- package/assets/images/menu/dhr/MHRM39N0012.svg +43 -43
- package/assets/images/menu/dhr/MHRM39N0013.svg +24 -24
- package/assets/images/menu/dhr/MHRM39N0014.svg +14 -14
- package/assets/images/menu/dhr/MHRM39N0015.svg +36 -36
- package/assets/images/menu/dhr/MHRM39N0016.svg +23 -23
- package/assets/images/menu/dhr/MHRM77N0001.svg +28 -28
- package/assets/images/menu/dhr/MHRM84N0001.svg +27 -27
- package/assets/images/menu/dhr/MHRM84N0002.svg +24 -24
- package/assets/images/menu/dhr/MHRM89N0001.svg +16 -16
- package/assets/images/menu/dhr/MHRP00N0001.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0001.svg +22 -22
- package/assets/images/menu/dhr/MHRP09N0002.svg +19 -19
- package/assets/images/menu/dhr/MHRP09N0003.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0004.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0005.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0006.svg +17 -17
- package/assets/images/menu/dhr/MHRP09N0007.svg +15 -15
- package/assets/images/menu/dhr/MHRP09N0008.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0009.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0010.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0011.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0012.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0013.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0014.svg +11 -11
- package/assets/images/menu/dhr/MHRP09N0015.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0016.svg +18 -18
- package/assets/images/menu/dhr/MHRP09N0017.svg +18 -18
- package/assets/images/menu/dhr/MHRP09N0018.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0019.svg +13 -13
- package/assets/images/menu/dhr/MHRP09N0020.svg +17 -17
- package/assets/images/menu/dhr/MHRP09N0021.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0022.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0023.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0024.svg +15 -15
- package/assets/images/menu/dhr/MHRP09N0025.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0026.svg +13 -13
- package/assets/images/menu/dhr/MHRP09N0027.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0028.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0029.svg +14 -14
- package/assets/images/menu/dhr/MHRP09N0030.svg +4 -4
- package/assets/images/menu/dhr/MHRP09N0031.svg +5 -5
- package/assets/images/menu/dhr/MHRP09N0032.svg +7 -7
- package/assets/images/menu/dhr/MHRP13N0001.svg +9 -9
- package/assets/images/menu/dhr/MHRP21N0001.svg +12 -12
- package/assets/images/menu/dhr/MHRP21N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP25N0001.svg +13 -13
- package/assets/images/menu/dhr/MHRP25N0002.svg +16 -16
- package/assets/images/menu/dhr/MHRP25N0003.svg +38 -38
- package/assets/images/menu/dhr/MHRP25N0004.svg +17 -17
- package/assets/images/menu/dhr/MHRP25N0005.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0001.svg +18 -18
- package/assets/images/menu/dhr/MHRP29N0002.svg +15 -15
- package/assets/images/menu/dhr/MHRP29N0003.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0004.svg +21 -21
- package/assets/images/menu/dhr/MHRP29N0005.svg +21 -21
- package/assets/images/menu/dhr/MHRP29N0006.svg +14 -14
- package/assets/images/menu/dhr/MHRP29N0007.svg +19 -19
- package/assets/images/menu/dhr/MHRP29N0008.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0009.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0010.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0011.svg +12 -12
- package/assets/images/menu/dhr/MHRP29N0012.svg +7 -7
- package/assets/images/menu/dhr/MHRP29N0013.svg +27 -27
- package/assets/images/menu/dhr/MHRP29N0014.svg +32 -32
- package/assets/images/menu/dhr/MHRP29N0016.svg +54 -54
- package/assets/images/menu/dhr/MHRP29N0017.svg +24 -24
- package/assets/images/menu/dhr/MHRP29N0018.svg +44 -44
- package/assets/images/menu/dhr/MHRP29N0019.svg +17 -17
- package/assets/images/menu/dhr/MHRP29N0020.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0021.svg +8 -8
- package/assets/images/menu/dhr/MHRP29N0022.svg +9 -9
- package/assets/images/menu/dhr/MHRP29N0023.svg +22 -22
- package/assets/images/menu/dhr/MHRP38N0001.svg +13 -13
- package/assets/images/menu/dhr/MHRP38N0002.svg +14 -14
- package/assets/images/menu/dhr/MHRP39N0001.svg +15 -15
- package/assets/images/menu/dhr/MHRP39N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP39N0003.svg +16 -16
- package/assets/images/menu/dhr/MHRP39N0004.svg +22 -22
- package/assets/images/menu/dhr/MHRP39N0005.svg +16 -16
- package/assets/images/menu/dhr/MHRP39N0006.svg +17 -17
- package/assets/images/menu/dhr/MHRP39N0007.svg +13 -13
- package/assets/images/menu/dhr/MHRP39N0008.svg +3 -3
- package/assets/images/menu/dhr/MHRP39N0009.svg +3 -3
- package/assets/images/menu/dhr/MHRP39N0010.svg +7 -7
- package/assets/images/menu/dhr/MHRP39N0011.svg +14 -14
- package/assets/images/menu/dhr/MHRP39N0013.svg +10 -10
- package/assets/images/menu/dhr/MHRP39N0014.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N0015.svg +5 -5
- package/assets/images/menu/dhr/MHRP39N0017.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N0018.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N1222.svg +12 -12
- package/assets/images/menu/dhr/MHRP51N0001.svg +9 -9
- package/assets/images/menu/dhr/MHRP51N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP52N0001.svg +21 -21
- package/assets/images/menu/dhr/MHRP52N0002.svg +21 -21
- package/assets/images/menu/dhr/MHRP52N0003.svg +16 -16
- package/assets/images/menu/dhr/MHRP75N0001.svg +19 -19
- package/assets/images/menu/dhr/MHRP75N0002.svg +25 -25
- package/assets/images/menu/dhr/MHRP75N0003.svg +3 -3
- package/assets/images/menu/dhr/MHRP75N0006.svg +14 -14
- package/assets/images/menu/dhr/MHRP75N0007.svg +19 -19
- package/assets/images/menu/dhr/MHRP75N0008.svg +19 -19
- package/assets/images/menu/dhr/MHRP77N0007.svg +28 -28
- package/assets/images/menu/dhr/MHRP77N0008.svg +17 -17
- package/assets/images/menu/dhr/MHRP77N0009.svg +19 -19
- package/assets/images/menu/dhr/MHRP77N0010.svg +20 -20
- package/assets/images/menu/dhr/MHRP89N1000.svg +6 -6
- package/assets/images/menu/dhr/MHRP89N1001.svg +6 -6
- package/assets/images/menu/dhr/TASK.svg +9 -9
- package/assets/images/menu/dhr/W00F0001.svg +3 -3
- package/assets/images/menu/dhr/W00F0002.svg +3 -3
- package/assets/images/menu/dhr/W00F0003.svg +3 -3
- package/assets/images/menu/dhr/W00F0004.svg +3 -3
- package/assets/images/menu/dhr/W09F2000-WEB5.svg +17 -17
- package/assets/images/menu/dhr/W09F2000.svg +6 -6
- package/assets/images/menu/dhr/W09F2002-WEB5.svg +21 -21
- package/assets/images/menu/dhr/W09F2005-WEB5.svg +13 -13
- package/assets/images/menu/dhr/W09F2020-WEB5.svg +16 -16
- package/assets/images/menu/dhr/W09F2022-WEB5.svg +20 -20
- package/assets/images/menu/dhr/W09F2150-WEB5.svg +16 -16
- package/assets/images/menu/dhr/W09F2152-WEB5.svg +20 -20
- package/assets/images/menu/dhr/W09F2160-WEB5.svg +14 -14
- package/assets/images/menu/dhr/W09F2162-WEB5.svg +18 -18
- package/assets/images/menu/dhr/W29F4006-WEB5.svg +19 -19
- package/assets/images/menu/dhr/W75F2260-WEB5.svg +15 -15
- package/assets/images/menu/dhr/W75F2261-WEB5.svg +19 -19
- package/assets/images/menu/dhr/W75F3005-WEB5.svg +13 -13
- package/assets/images/menu/dhr/W75F4070-WEB5.svg +21 -21
- package/assets/images/menu/dhr/W75F4071-WEB5.svg +17 -17
- package/assets/images/menu/dhr/W75F4100-WEB5.svg +14 -14
- package/assets/images/menu/dhr/W77F1011.svg +19 -19
- package/assets/images/menu/dhr/W77F1013.svg +22 -22
- package/assets/images/menu/erp/D05.svg +8 -8
- package/assets/images/menu/erp/D06.svg +4 -4
- package/assets/images/menu/erp/D90R.svg +9 -9
- package/assets/images/menu/erp/DBC.svg +9 -9
- package/assets/images/menu/erp/W00F0001.svg +3 -3
- package/assets/images/menu/erp/W00F0002.svg +3 -3
- package/assets/images/menu/erp/W00F0003.svg +3 -3
- package/assets/images/menu/erp/W00F0004.svg +3 -3
- package/assets/images/menu/erp/W05F0001.svg +16 -16
- package/assets/images/menu/erp/W05F0001N0000.svg +16 -16
- package/assets/images/menu/erp/W05F0004N0000.svg +6 -6
- package/assets/images/menu/erp/W05F0006N0000.svg +30 -30
- package/assets/images/menu/erp/W05F0007N0000.svg +6 -6
- package/assets/images/menu/erp/W05F0008N0000.svg +14 -14
- package/assets/images/menu/erp/W05F0011N0000.svg +20 -20
- package/assets/images/menu/erp/W05F0013N0000.svg +9 -9
- package/assets/images/menu/erp/W05F4000N0000.svg +9 -9
- package/assets/images/menu/erp/W06F0001.svg +17 -17
- package/assets/images/menu/erp/W06F0001N0000.svg +17 -17
- package/assets/images/menu/erp/W06F0004N0000.svg +22 -22
- package/assets/images/menu/erp/W06F0005N0000.svg +22 -22
- package/assets/images/menu/erp/W06F0006N0000.svg +55 -55
- package/assets/images/menu/erp/W06F0008N0000.svg +17 -17
- package/assets/images/menu/erp/W94F1000N0000.svg +9 -9
- package/assets/images/menu/erp/W94F1000N0001.svg +9 -9
- package/assets/images/menu/erp/WA3F1025.svg +5 -5
- package/assets/images/menu/erp/WA3F2100.svg +10 -10
- package/components/alert/index.js +5 -1
- package/components/alert/notify.js +5 -1
- package/components/avatar/index.js +19 -19
- package/components/button/icon.js +21 -21
- package/components/chart/Pie/Sector.js +2 -2
- package/components/chart/Pie-v2/Sector.js +2 -2
- package/components/chip/attach.js +5 -5
- package/components/form-control/checkbox/index.js +5 -5
- package/components/form-control/dropdown/index.js +34 -34
- package/components/form-control/money-input/index.js +11 -11
- package/components/form-control/number-input/index.js +11 -11
- package/components/form-control/phone-input/index.js +7 -7
- package/components/form-control/radio/index.js +11 -11
- package/components/form-control/text-input/index.js +4 -4
- package/components/form-control/toggle/index.js +4 -4
- package/components/modal/modal.js +5 -1
- package/components/popover/index.js +6 -2
- package/components/rating/index.js +3 -3
- package/components/tab/tab-container.js +2 -2
- package/components/tab/tab-header.js +2 -2
- package/components/tab/tab-panel.js +2 -2
- package/components/tab/tab.js +2 -2
- package/components/tooltip/index.js +6 -2
- package/components/transfer/index.js +3 -3
- package/components/tree-view/index.js +38 -38
- package/components/typography/index.js +10 -10
- package/icons/basic.js +82 -0
- package/package.json +45 -45
- package/readme.md +690 -684
- package/styles/color-helper.js +103 -103
- package/styles/general.js +14 -11
- package/styles/utils.js +5 -5
- package/theme/set-theme.js +3 -3
- package/utils/array/array.js +36 -36
- package/utils/date.js +56 -56
- package/utils/error/error.js +2 -2
- package/utils/error/errors.js +99 -99
- package/utils/renderIcon.js +5 -5
- package/utils/useOnClickOutside.js +2 -2
- package/utils/usePortal.js +9 -9
- package/utils/validate.js +33 -33
|
@@ -498,18 +498,18 @@ Avatar.propTypes = {
|
|
|
498
498
|
/** source of file (http:// or https://) */
|
|
499
499
|
src: PropTypes.string,
|
|
500
500
|
|
|
501
|
-
/**
|
|
502
|
-
* it is used to display the default if there is no src<br />
|
|
503
|
-
* if undefined, will display icons available in the icons store
|
|
501
|
+
/**
|
|
502
|
+
* it is used to display the default if there is no src<br />
|
|
503
|
+
* if undefined, will display icons available in the icons store
|
|
504
504
|
*/
|
|
505
505
|
defaultSrc: PropTypes.string,
|
|
506
506
|
|
|
507
507
|
/** the direction to display more info */
|
|
508
508
|
direction: PropTypes.oneOf(['top', 'down', 'left', 'right']),
|
|
509
509
|
|
|
510
|
-
/**
|
|
511
|
-
* data to display when hoverAble is true<br />
|
|
512
|
-
* data is an object or function return a jsx element
|
|
510
|
+
/**
|
|
511
|
+
* data to display when hoverAble is true<br />
|
|
512
|
+
* data is an object or function return a jsx element
|
|
513
513
|
*/
|
|
514
514
|
data: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
|
|
515
515
|
|
|
@@ -525,19 +525,19 @@ Avatar.propTypes = {
|
|
|
525
525
|
/** any props else */
|
|
526
526
|
props: PropTypes.any,
|
|
527
527
|
|
|
528
|
-
/**
|
|
529
|
-
* ref methods
|
|
530
|
-
*
|
|
531
|
-
* * option(): Gets all UI component properties
|
|
532
|
-
* * Returns value - object
|
|
533
|
-
* * option(optionName): Gets the value of a single property
|
|
534
|
-
* * @param {optionName} - string
|
|
535
|
-
* * Returns value - any
|
|
536
|
-
* * option(optionName, optionValue): Updates the value of a single property
|
|
537
|
-
* * @param {optionName} - string
|
|
538
|
-
* * @param {optionValue} - any
|
|
539
|
-
* * option(options): Updates the values of several properties
|
|
540
|
-
* * @param {options} - object
|
|
528
|
+
/**
|
|
529
|
+
* ref methods
|
|
530
|
+
*
|
|
531
|
+
* * option(): Gets all UI component properties
|
|
532
|
+
* * Returns value - object
|
|
533
|
+
* * option(optionName): Gets the value of a single property
|
|
534
|
+
* * @param {optionName} - string
|
|
535
|
+
* * Returns value - any
|
|
536
|
+
* * option(optionName, optionValue): Updates the value of a single property
|
|
537
|
+
* * @param {optionName} - string
|
|
538
|
+
* * @param {optionValue} - any
|
|
539
|
+
* * option(options): Updates the values of several properties
|
|
540
|
+
* * @param {options} - object
|
|
541
541
|
*/
|
|
542
542
|
reference: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
543
543
|
current: PropTypes.instanceOf(Element)
|
|
@@ -359,14 +359,14 @@ ButtonIcon.propTypes = {
|
|
|
359
359
|
/** custom hover color for button with color 'default' */
|
|
360
360
|
colorHover: PropTypes.string,
|
|
361
361
|
|
|
362
|
-
/**
|
|
363
|
-
* size of button
|
|
364
|
-
*
|
|
365
|
-
* * tiny (button 24px, icon 16px)
|
|
366
|
-
* * small (button 32px, icon 20px)
|
|
367
|
-
* * medium (button 40px, icon 24px)
|
|
368
|
-
* * large (button 48px, icon 32px)
|
|
369
|
-
* * giant (button 56px, icon 40px)
|
|
362
|
+
/**
|
|
363
|
+
* size of button
|
|
364
|
+
*
|
|
365
|
+
* * tiny (button 24px, icon 16px)
|
|
366
|
+
* * small (button 32px, icon 20px)
|
|
367
|
+
* * medium (button 40px, icon 24px)
|
|
368
|
+
* * large (button 48px, icon 32px)
|
|
369
|
+
* * giant (button 56px, icon 40px)
|
|
370
370
|
* */
|
|
371
371
|
size: PropTypes.oneOf(['tiny', 'small', 'medium', 'large', 'giant']),
|
|
372
372
|
|
|
@@ -403,19 +403,19 @@ ButtonIcon.propTypes = {
|
|
|
403
403
|
/** status loading of button */
|
|
404
404
|
loading: PropTypes.bool,
|
|
405
405
|
|
|
406
|
-
/**
|
|
407
|
-
* ref methods
|
|
408
|
-
*
|
|
409
|
-
* * option(): Gets all UI component properties
|
|
410
|
-
* * Returns value - object
|
|
411
|
-
* * option(optionName): Gets the value of a single property
|
|
412
|
-
* * @param {optionName} - string
|
|
413
|
-
* * Returns value - any
|
|
414
|
-
* * option(optionName, optionValue): Updates the value of a single property
|
|
415
|
-
* * @param {optionName} - string
|
|
416
|
-
* * @param {optionValue} - any
|
|
417
|
-
* * option(options): Updates the values of several properties
|
|
418
|
-
* * @param {options} - object
|
|
406
|
+
/**
|
|
407
|
+
* ref methods
|
|
408
|
+
*
|
|
409
|
+
* * option(): Gets all UI component properties
|
|
410
|
+
* * Returns value - object
|
|
411
|
+
* * option(optionName): Gets the value of a single property
|
|
412
|
+
* * @param {optionName} - string
|
|
413
|
+
* * Returns value - any
|
|
414
|
+
* * option(optionName, optionValue): Updates the value of a single property
|
|
415
|
+
* * @param {optionName} - string
|
|
416
|
+
* * @param {optionValue} - any
|
|
417
|
+
* * option(options): Updates the values of several properties
|
|
418
|
+
* * @param {options} - object
|
|
419
419
|
*/
|
|
420
420
|
reference: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
421
421
|
current: PropTypes.instanceOf(Element)
|
|
@@ -111,8 +111,8 @@ Sector.propTypes = {
|
|
|
111
111
|
onTouchEnd: PropTypes.func,
|
|
112
112
|
onTouchStart: PropTypes.func,
|
|
113
113
|
|
|
114
|
-
/** function displays selected items by custom, example:<br/>
|
|
115
|
-
* renderItem={(data, index) => index + ' - ' + data.name}<br/>
|
|
114
|
+
/** function displays selected items by custom, example:<br/>
|
|
115
|
+
* renderItem={(data, index) => index + ' - ' + data.name}<br/>
|
|
116
116
|
*/
|
|
117
117
|
renderSelectedItem: PropTypes.func,
|
|
118
118
|
path: PropTypes.string.isRequired,
|
|
@@ -97,8 +97,8 @@ Sector.propTypes = {
|
|
|
97
97
|
onTouchEnd: PropTypes.func,
|
|
98
98
|
onTouchStart: PropTypes.func,
|
|
99
99
|
|
|
100
|
-
/** function displays selected items by custom, example:<br/>
|
|
101
|
-
* renderItem={(data, index) => index + ' - ' + data.name}<br/>
|
|
100
|
+
/** function displays selected items by custom, example:<br/>
|
|
101
|
+
* renderItem={(data, index) => index + ' - ' + data.name}<br/>
|
|
102
102
|
*/
|
|
103
103
|
renderSelectedItem: PropTypes.func,
|
|
104
104
|
path: PropTypes.string.isRequired,
|
|
@@ -156,11 +156,11 @@ const AttachChip = /*#__PURE__*/memo(({
|
|
|
156
156
|
}))), attachView);
|
|
157
157
|
});
|
|
158
158
|
AttachChip.propTypes = {
|
|
159
|
-
/** the file info, such as:<br/>
|
|
160
|
-
* {<br/>
|
|
161
|
-
* URL: https://url.com/pathname,<br/>
|
|
162
|
-
* FileName: file.name,<br/>
|
|
163
|
-
* }
|
|
159
|
+
/** the file info, such as:<br/>
|
|
160
|
+
* {<br/>
|
|
161
|
+
* URL: https://url.com/pathname,<br/>
|
|
162
|
+
* FileName: file.name,<br/>
|
|
163
|
+
* }
|
|
164
164
|
*/
|
|
165
165
|
file: PropTypes.shape({
|
|
166
166
|
URL: PropTypes.string.isRequired,
|
|
@@ -318,11 +318,11 @@ Checkbox.propTypes = {
|
|
|
318
318
|
/** The function will run to return a true or false value of Radio Component */
|
|
319
319
|
onChange: PropTypes.func,
|
|
320
320
|
|
|
321
|
-
/**
|
|
322
|
-
* ref methods
|
|
323
|
-
*
|
|
324
|
-
* * setChecked: Set check for input
|
|
325
|
-
* * getChecked: Get check of input
|
|
321
|
+
/**
|
|
322
|
+
* ref methods
|
|
323
|
+
*
|
|
324
|
+
* * setChecked: Set check for input
|
|
325
|
+
* * getChecked: Get check of input
|
|
326
326
|
*/
|
|
327
327
|
ref: PropTypes.any
|
|
328
328
|
};
|
|
@@ -1797,14 +1797,14 @@ Dropdown.propTypes = {
|
|
|
1797
1797
|
/** display this icon if not found the icon follow iconExpr */
|
|
1798
1798
|
iconDefault: PropTypes.string,
|
|
1799
1799
|
|
|
1800
|
-
/** field name used for icon display<br/>
|
|
1801
|
-
* Example:<br/>
|
|
1802
|
-
* string: 'icon'<br/>
|
|
1803
|
-
* object: {<br/>
|
|
1804
|
-
* key: 'icon',<br/>
|
|
1805
|
-
* prefix: 'https://imglink.com',<br/>
|
|
1806
|
-
* suffix: '.jpg'<br/>
|
|
1807
|
-
* }
|
|
1800
|
+
/** field name used for icon display<br/>
|
|
1801
|
+
* Example:<br/>
|
|
1802
|
+
* string: 'icon'<br/>
|
|
1803
|
+
* object: {<br/>
|
|
1804
|
+
* key: 'icon',<br/>
|
|
1805
|
+
* prefix: 'https://imglink.com',<br/>
|
|
1806
|
+
* suffix: '.jpg'<br/>
|
|
1807
|
+
* }
|
|
1808
1808
|
*/
|
|
1809
1809
|
iconExpr: PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
1810
1810
|
key: PropTypes.string,
|
|
@@ -1822,9 +1822,9 @@ Dropdown.propTypes = {
|
|
|
1822
1822
|
/** field name used for text display in input */
|
|
1823
1823
|
keyExpr: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),
|
|
1824
1824
|
|
|
1825
|
-
/** field name used for text display<br/>
|
|
1826
|
-
* Example: 'name', '{id} - {name}', '{age} age(s)'<br/>
|
|
1827
|
-
* Note: don't use 'id - name', return undefined
|
|
1825
|
+
/** field name used for text display<br/>
|
|
1826
|
+
* Example: 'name', '{id} - {name}', '{age} age(s)'<br/>
|
|
1827
|
+
* Note: don't use 'id - name', return undefined
|
|
1828
1828
|
*/
|
|
1829
1829
|
displayExpr: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),
|
|
1830
1830
|
|
|
@@ -1834,9 +1834,9 @@ Dropdown.propTypes = {
|
|
|
1834
1834
|
/** the field name used for the returned result */
|
|
1835
1835
|
valueExpr: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
1836
1836
|
|
|
1837
|
-
/**
|
|
1838
|
-
* duration wait enter search content on search<br/>
|
|
1839
|
-
* Example: 700 -> 700ms, '700ms' -> 700ms, '0.7s' -> 700ms, '1m' -> 60000ms
|
|
1837
|
+
/**
|
|
1838
|
+
* duration wait enter search content on search<br/>
|
|
1839
|
+
* Example: 700 -> 700ms, '700ms' -> 700ms, '0.7s' -> 700ms, '1m' -> 60000ms
|
|
1840
1840
|
*/
|
|
1841
1841
|
searchDelayTime: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
1842
1842
|
|
|
@@ -1903,19 +1903,19 @@ Dropdown.propTypes = {
|
|
|
1903
1903
|
/** The array of elements that appear in the dropdown */
|
|
1904
1904
|
dataSource: PropTypes.array,
|
|
1905
1905
|
|
|
1906
|
-
/** function displays items by custom<br/>
|
|
1907
|
-
* renderItem={(data, index) => data.name + ' - ' + data.role}<br/>
|
|
1908
|
-
* --> such as: displayExpr={'name - role'}
|
|
1906
|
+
/** function displays items by custom<br/>
|
|
1907
|
+
* renderItem={(data, index) => data.name + ' - ' + data.role}<br/>
|
|
1908
|
+
* --> such as: displayExpr={'name - role'}
|
|
1909
1909
|
*/
|
|
1910
1910
|
renderItem: PropTypes.func,
|
|
1911
1911
|
|
|
1912
|
-
/** function displays selected items by custom, example:<br/>
|
|
1913
|
-
* renderItem={(data, index) => index + ' - ' + data.name}<br/>
|
|
1912
|
+
/** function displays selected items by custom, example:<br/>
|
|
1913
|
+
* renderItem={(data, index) => index + ' - ' + data.name}<br/>
|
|
1914
1914
|
*/
|
|
1915
1915
|
renderSelectedItem: PropTypes.func,
|
|
1916
1916
|
|
|
1917
|
-
/** the function will run when entering input<br/>
|
|
1918
|
-
* if undefined: the filter function will run (default)
|
|
1917
|
+
/** the function will run when entering input<br/>
|
|
1918
|
+
* if undefined: the filter function will run (default)
|
|
1919
1919
|
*/
|
|
1920
1920
|
onInput: PropTypes.func,
|
|
1921
1921
|
|
|
@@ -1934,19 +1934,19 @@ Dropdown.propTypes = {
|
|
|
1934
1934
|
/** the contents in Dropdown box (Exp: TreeView) */
|
|
1935
1935
|
children: PropTypes.node,
|
|
1936
1936
|
|
|
1937
|
-
/**
|
|
1938
|
-
* ref methods
|
|
1939
|
-
*
|
|
1940
|
-
* how to get component element? ref.current
|
|
1941
|
-
*
|
|
1942
|
-
* how to call method? ref.current.instance.{method}
|
|
1943
|
-
*
|
|
1944
|
-
* * showDropdown(): Show dropdown
|
|
1945
|
-
* * closeDropdown(): Close dropdown
|
|
1946
|
-
* * onClear(): Clear selected value
|
|
1947
|
-
* * setPreviousValue(): Set value to previous value
|
|
1948
|
-
* * setValue(value): Set value of dropdown
|
|
1949
|
-
* * @param {value} - string || number || array
|
|
1937
|
+
/**
|
|
1938
|
+
* ref methods
|
|
1939
|
+
*
|
|
1940
|
+
* how to get component element? ref.current
|
|
1941
|
+
*
|
|
1942
|
+
* how to call method? ref.current.instance.{method}
|
|
1943
|
+
*
|
|
1944
|
+
* * showDropdown(): Show dropdown
|
|
1945
|
+
* * closeDropdown(): Close dropdown
|
|
1946
|
+
* * onClear(): Clear selected value
|
|
1947
|
+
* * setPreviousValue(): Set value to previous value
|
|
1948
|
+
* * setValue(value): Set value of dropdown
|
|
1949
|
+
* * @param {value} - string || number || array
|
|
1950
1950
|
*/
|
|
1951
1951
|
reference: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
1952
1952
|
current: PropTypes.instanceOf(Element)
|
|
@@ -552,10 +552,10 @@ MoneyInput.propTypes = {
|
|
|
552
552
|
/** The function to get ref of MoneyInput component */
|
|
553
553
|
refs: PropTypes.func,
|
|
554
554
|
|
|
555
|
-
/** validation value, argument can:<br/>
|
|
556
|
-
* * string: the validation rule. Example required.<br/>
|
|
557
|
-
* * object: the validation rule insist name, property, message. Example {name: 'min', compareValue: 9, message: 'Error'} or {max: 99}<br/>
|
|
558
|
-
* * array: the validation rule list, insist object/string
|
|
555
|
+
/** validation value, argument can:<br/>
|
|
556
|
+
* * string: the validation rule. Example required.<br/>
|
|
557
|
+
* * object: the validation rule insist name, property, message. Example {name: 'min', compareValue: 9, message: 'Error'} or {max: 99}<br/>
|
|
558
|
+
* * array: the validation rule list, insist object/string
|
|
559
559
|
*/
|
|
560
560
|
validates: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array, PropTypes.func]),
|
|
561
561
|
|
|
@@ -568,13 +568,13 @@ MoneyInput.propTypes = {
|
|
|
568
568
|
/** on input function */
|
|
569
569
|
onInput: PropTypes.func,
|
|
570
570
|
|
|
571
|
-
/**
|
|
572
|
-
* on change function, return an object:<br/>
|
|
573
|
-
* {<br/>
|
|
574
|
-
* value: is a number or null value<br/>
|
|
575
|
-
* target.value: value of input<br/>
|
|
576
|
-
* ...element<br/>
|
|
577
|
-
* }
|
|
571
|
+
/**
|
|
572
|
+
* on change function, return an object:<br/>
|
|
573
|
+
* {<br/>
|
|
574
|
+
* value: is a number or null value<br/>
|
|
575
|
+
* target.value: value of input<br/>
|
|
576
|
+
* ...element<br/>
|
|
577
|
+
* }
|
|
578
578
|
*/
|
|
579
579
|
onChange: PropTypes.func,
|
|
580
580
|
|
|
@@ -591,23 +591,23 @@ NumberInput.propTypes = {
|
|
|
591
591
|
/** any props of error in NumberInput component */
|
|
592
592
|
errorProps: PropTypes.object,
|
|
593
593
|
|
|
594
|
-
/**
|
|
595
|
-
* the format to display value<br/>
|
|
596
|
-
* * function: value => function(value)<br/>
|
|
597
|
-
* * string: Example: '#.###', '# ###', '#.### 2%', '#.### %%'<br/>
|
|
598
|
-
* #: integer part digit<br/>
|
|
599
|
-
* . / '_': separator symbol<br/>
|
|
600
|
-
* %: decimal digit, '2%' === '%%'
|
|
594
|
+
/**
|
|
595
|
+
* the format to display value<br/>
|
|
596
|
+
* * function: value => function(value)<br/>
|
|
597
|
+
* * string: Example: '#.###', '# ###', '#.### 2%', '#.### %%'<br/>
|
|
598
|
+
* #: integer part digit<br/>
|
|
599
|
+
* . / '_': separator symbol<br/>
|
|
600
|
+
* %: decimal digit, '2%' === '%%'
|
|
601
601
|
*/
|
|
602
602
|
format: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
603
603
|
|
|
604
604
|
/** The function to get ref of NumberInput component */
|
|
605
605
|
refs: PropTypes.func,
|
|
606
606
|
|
|
607
|
-
/** validation value, argument can:<br/>
|
|
608
|
-
* * string: the validation rule. Example required.<br/>
|
|
609
|
-
* * object: the validation rule insist name, property, message. Example {name: 'min', compareValue: 9, message: 'Error'} or {max: 99}<br/>
|
|
610
|
-
* * array: the validation rule list, insist object/string
|
|
607
|
+
/** validation value, argument can:<br/>
|
|
608
|
+
* * string: the validation rule. Example required.<br/>
|
|
609
|
+
* * object: the validation rule insist name, property, message. Example {name: 'min', compareValue: 9, message: 'Error'} or {max: 99}<br/>
|
|
610
|
+
* * array: the validation rule list, insist object/string
|
|
611
611
|
*/
|
|
612
612
|
validates: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array, PropTypes.func]),
|
|
613
613
|
|
|
@@ -410,13 +410,13 @@ PhoneInput.propTypes = {
|
|
|
410
410
|
/** on input function */
|
|
411
411
|
onInput: PropTypes.func,
|
|
412
412
|
|
|
413
|
-
/**
|
|
414
|
-
* on change function. Return a object, example:<br/>
|
|
415
|
-
* {<br/>
|
|
416
|
-
* target: {value: "(+84) 123 456 789", ...}<br/>
|
|
417
|
-
* value: 0123456789<br/>
|
|
418
|
-
* countryCode: 84<br/>
|
|
419
|
-
* }
|
|
413
|
+
/**
|
|
414
|
+
* on change function. Return a object, example:<br/>
|
|
415
|
+
* {<br/>
|
|
416
|
+
* target: {value: "(+84) 123 456 789", ...}<br/>
|
|
417
|
+
* value: 0123456789<br/>
|
|
418
|
+
* countryCode: 84<br/>
|
|
419
|
+
* }
|
|
420
420
|
*/
|
|
421
421
|
onChange: PropTypes.func,
|
|
422
422
|
|
|
@@ -154,18 +154,18 @@ Radio.defaultProps = {
|
|
|
154
154
|
width: 20
|
|
155
155
|
};
|
|
156
156
|
Radio.propTypes = {
|
|
157
|
-
/**
|
|
158
|
-
* If `true`, the component is disabled.
|
|
157
|
+
/**
|
|
158
|
+
* If `true`, the component is disabled.
|
|
159
159
|
*/
|
|
160
160
|
disabled: PropTypes.bool,
|
|
161
161
|
|
|
162
|
-
/**
|
|
163
|
-
* If `true`, the component is checked.
|
|
162
|
+
/**
|
|
163
|
+
* If `true`, the component is checked.
|
|
164
164
|
*/
|
|
165
165
|
checked: PropTypes.bool,
|
|
166
166
|
|
|
167
|
-
/**
|
|
168
|
-
* If `true`, the component is defaultChecked.
|
|
167
|
+
/**
|
|
168
|
+
* If `true`, the component is defaultChecked.
|
|
169
169
|
*/
|
|
170
170
|
defaultChecked: PropTypes.bool,
|
|
171
171
|
|
|
@@ -187,11 +187,11 @@ Radio.propTypes = {
|
|
|
187
187
|
/** props for input */
|
|
188
188
|
inputProps: PropTypes.object,
|
|
189
189
|
|
|
190
|
-
/** Callback fired when the state is changed.
|
|
191
|
-
*
|
|
192
|
-
* @param {object} event The event source of the callback.
|
|
193
|
-
* You can pull out the new value by accessing `event.target.value` (string).
|
|
194
|
-
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
190
|
+
/** Callback fired when the state is changed.
|
|
191
|
+
*
|
|
192
|
+
* @param {object} event The event source of the callback.
|
|
193
|
+
* You can pull out the new value by accessing `event.target.value` (string).
|
|
194
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
195
195
|
* */
|
|
196
196
|
onChange: PropTypes.func,
|
|
197
197
|
|
|
@@ -497,10 +497,10 @@ TextInput.propTypes = {
|
|
|
497
497
|
/** on focus function */
|
|
498
498
|
onFocus: PropTypes.func,
|
|
499
499
|
|
|
500
|
-
/** validation value, argument can:<br/>
|
|
501
|
-
* * string: the validation rule. Example required.<br/>
|
|
502
|
-
* * object: the validation rule insist name, property, message. Example {name: 'min', compareValue: 9, message: 'Error'} or {max: 99}<br/>
|
|
503
|
-
* * array: the validation rule list, insist object/string
|
|
500
|
+
/** validation value, argument can:<br/>
|
|
501
|
+
* * string: the validation rule. Example required.<br/>
|
|
502
|
+
* * object: the validation rule insist name, property, message. Example {name: 'min', compareValue: 9, message: 'Error'} or {max: 99}<br/>
|
|
503
|
+
* * array: the validation rule list, insist object/string
|
|
504
504
|
*/
|
|
505
505
|
validates: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array, PropTypes.func]),
|
|
506
506
|
|
|
@@ -240,10 +240,10 @@ Toggle.propTypes = {
|
|
|
240
240
|
/** Shows tooltip containing Label on hover */
|
|
241
241
|
hoverTooltip: PropTypes.bool,
|
|
242
242
|
|
|
243
|
-
/** * Callback fired when the state is changed.
|
|
244
|
-
*
|
|
245
|
-
* @param {object} event The event source of the callback.
|
|
246
|
-
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
243
|
+
/** * Callback fired when the state is changed.
|
|
244
|
+
*
|
|
245
|
+
* @param {object} event The event source of the callback.
|
|
246
|
+
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
|
247
247
|
*/
|
|
248
248
|
onChange: PropTypes.func
|
|
249
249
|
};
|
|
@@ -19,6 +19,10 @@ const {
|
|
|
19
19
|
}
|
|
20
20
|
} = colors;
|
|
21
21
|
const fadeInDown = animations.fadeInDown;
|
|
22
|
+
import { useTheme } from '../../theme';
|
|
23
|
+
const {
|
|
24
|
+
zIndex: zIndexCORE
|
|
25
|
+
} = useTheme();
|
|
22
26
|
const Modal = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
23
27
|
open,
|
|
24
28
|
moveable,
|
|
@@ -238,7 +242,7 @@ Modal.defaultProps = {
|
|
|
238
242
|
autoFocus: true,
|
|
239
243
|
alignment: 'top',
|
|
240
244
|
width: '80%',
|
|
241
|
-
zIndex:
|
|
245
|
+
zIndex: zIndexCORE()
|
|
242
246
|
};
|
|
243
247
|
Modal.propTypes = {
|
|
244
248
|
/** Set the position on the component. */
|
|
@@ -7,6 +7,10 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import { jsx, css } from '@emotion/core';
|
|
8
8
|
import { typography } from '../../styles/typography';
|
|
9
9
|
import { borderRadius4px, displayBlock, flexRow, parseWidthHeight, positionAbsolute, positionFixed, positionRelative } from '../../styles/general';
|
|
10
|
+
import { useTheme } from '../../theme';
|
|
11
|
+
const {
|
|
12
|
+
zIndex: zIndexCORE
|
|
13
|
+
} = useTheme();
|
|
10
14
|
const {
|
|
11
15
|
paragraph1
|
|
12
16
|
} = typography;
|
|
@@ -373,7 +377,7 @@ const PopoverContainerCSS = (width, height) => css`
|
|
|
373
377
|
${parseWidthHeight(width, height)};
|
|
374
378
|
max-width: 100%;
|
|
375
379
|
max-height: 100%;
|
|
376
|
-
z-index:
|
|
380
|
+
z-index: ${zIndexCORE()};
|
|
377
381
|
transition: opacity 0.3s ease;
|
|
378
382
|
pointer-events: initial;
|
|
379
383
|
opacity: 0;
|
|
@@ -407,7 +411,7 @@ Popover.defaultProps = {
|
|
|
407
411
|
width: 150,
|
|
408
412
|
height: 'auto',
|
|
409
413
|
bgColor: '#FFF',
|
|
410
|
-
zIndex:
|
|
414
|
+
zIndex: zIndexCORE(1),
|
|
411
415
|
anchorOrigin: {
|
|
412
416
|
vertical: 'bottom',
|
|
413
417
|
horizontal: 'center'
|
|
@@ -264,9 +264,9 @@ Rating.propTypes = {
|
|
|
264
264
|
/** style inline of stars icon */
|
|
265
265
|
starStyle: PropTypes.object,
|
|
266
266
|
|
|
267
|
-
/**
|
|
268
|
-
* the function for rating handler, return e:{value, ...element}<br />
|
|
269
|
-
* value: the quantity of star was selected (insist half)
|
|
267
|
+
/**
|
|
268
|
+
* the function for rating handler, return e:{value, ...element}<br />
|
|
269
|
+
* value: the quantity of star was selected (insist half)
|
|
270
270
|
*/
|
|
271
271
|
onRating: PropTypes.func
|
|
272
272
|
};
|
|
@@ -157,8 +157,8 @@ TabHeader.propTypes = {
|
|
|
157
157
|
/** any props else */
|
|
158
158
|
props: PropTypes.any,
|
|
159
159
|
|
|
160
|
-
/**
|
|
161
|
-
* ref methods
|
|
160
|
+
/**
|
|
161
|
+
* ref methods
|
|
162
162
|
*/
|
|
163
163
|
reference: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
164
164
|
current: PropTypes.instanceOf(Element)
|
package/components/tab/tab.js
CHANGED
|
@@ -213,8 +213,8 @@ TabItem.propTypes = {
|
|
|
213
213
|
/** any props else */
|
|
214
214
|
props: PropTypes.any,
|
|
215
215
|
|
|
216
|
-
/**
|
|
217
|
-
* ref methods
|
|
216
|
+
/**
|
|
217
|
+
* ref methods
|
|
218
218
|
*/
|
|
219
219
|
reference: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
220
220
|
current: PropTypes.instanceOf(Element)
|
|
@@ -21,7 +21,11 @@ const {
|
|
|
21
21
|
tooltip: fillTooltip
|
|
22
22
|
}
|
|
23
23
|
} = colors;
|
|
24
|
+
import { useTheme } from '../../theme';
|
|
24
25
|
const defaultViewPadding = 4;
|
|
26
|
+
const {
|
|
27
|
+
zIndex
|
|
28
|
+
} = useTheme();
|
|
25
29
|
|
|
26
30
|
const getScrollTop = () => {
|
|
27
31
|
var _ref, _ref2, _window$pageYOffset;
|
|
@@ -507,7 +511,7 @@ const arrowCSS = css`
|
|
|
507
511
|
opacity: 0;
|
|
508
512
|
transition: opacity 0.1s ease-in-out;
|
|
509
513
|
width: 0;
|
|
510
|
-
z-index:
|
|
514
|
+
z-index: ${zIndex(5)};
|
|
511
515
|
`;
|
|
512
516
|
|
|
513
517
|
const mainCSS = (backgroundColor, color, size, padding, textAlign) => css`
|
|
@@ -524,7 +528,7 @@ const mainCSS = (backgroundColor, color, size, padding, textAlign) => css`
|
|
|
524
528
|
opacity: 0;
|
|
525
529
|
transition: opacity 0.1s ease-in-out;
|
|
526
530
|
word-wrap: break-word;
|
|
527
|
-
z-index:
|
|
531
|
+
z-index: ${zIndex(4)};
|
|
528
532
|
`;
|
|
529
533
|
|
|
530
534
|
Tooltip.defaultProps = {
|
|
@@ -458,9 +458,9 @@ Transfer.propTypes = {
|
|
|
458
458
|
/** field name used for icon display */
|
|
459
459
|
iconExpr: string,
|
|
460
460
|
|
|
461
|
-
/** field name used for text display<br/>
|
|
462
|
-
* Example: 'name', '{id} - {name}', '{age} age(s)'<br/>
|
|
463
|
-
* Note: don't use 'id - name', return undefined
|
|
461
|
+
/** field name used for text display<br/>
|
|
462
|
+
* Example: 'name', '{id} - {name}', '{age} age(s)'<br/>
|
|
463
|
+
* Note: don't use 'id - name', return undefined
|
|
464
464
|
*/
|
|
465
465
|
displayExpr: oneOfType([string, array]),
|
|
466
466
|
|