diginet-core-ui 1.3.94-beta.7 → 1.3.94-beta.9

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.
@@ -0,0 +1,17 @@
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_1074_66)">
3
+ <path d="M25 0H7C5.9 0 5 0.9 5 2V9.4C5.1 9.4 5.1 9.3 5.2 9.3C5.5 9.1 5.9 8.9 6.2 8.7C6.3 8.7 6.4 8.6 6.5 8.6V5H25.5V21.1C26 21.2 26.5 21.4 27 21.7V2C27 0.9 26.1 0 25 0ZM18.5 3H13.5C13.2 3 13 2.8 13 2.5C13 2.2 13.2 2 13.5 2H18.5C18.8 2 19 2.2 19 2.5C19 2.8 18.8 3 18.5 3ZM25.5 32.5V33H6.5V18C6.1 18.3 5.7 18.6 5.2 18.8L5.1 18.9V19C5.1 21 5.1 23 5 24.9V37C5 38.1 5.9 39 7 39H25C25.3 39 25.6 38.9 25.9 38.8C25.7 38.6 25.5 38.4 25.4 38.1H21.2C20.1 38.1 19.3 37.2 19.3 36.2C19.3 35.2 20.2 34.3 21.2 34.3H25.4C25.8 33.7 26.3 33.1 27 32.8V32.5H25.5ZM16 38C14.9 38 14 37.1 14 36C14 34.9 14.9 34 16 34C17.1 34 18 34.9 18 36C18 37.1 17.1 38 16 38Z" fill="#2680EB"/>
4
+ <path d="M24 8V9C24 9.6 23.5 10 23 10H10C9.9 9.7 9.8 9.5 9.6 9.3C9.3 9 9 8.7 8.6 8.6C8.4 8.5 8.2 8.4 8 8.4V8C8 7.4 8.5 7 9 7H23C23.5 7 24 7.4 24 8Z" fill="#7BC0F9"/>
5
+ <path d="M24 13V14C24 14.6 23.5 15 23 15H9.5C9.7 14.6 9.9 14.1 10.1 13.7C10.3 13.2 10.4 12.6 10.4 12H23C23.5 12 24 12.4 24 13Z" fill="#7BC0F9"/>
6
+ <path d="M23 20H9C8.4 20 8 19.6 8 19V18C8 17.4 8.4 17 9 17H23C23.6 17 24 17.4 24 18V19C24 19.6 23.5 20 23 20Z" fill="#7BC0F9"/>
7
+ <path d="M22.5 22C22.2 22.3 21.9 22.6 21.7 23H21.2C20.1 23 19.3 23.9 19.3 24.9V25H9C8.5 25 8 24.6 8 24V23C8 22.4 8.5 22 9 22H22.5Z" fill="#7BC0F9"/>
8
+ <path d="M24 28.6H21.2C20.3 28.6 19.6 29.2 19.3 30H9C8.5 30 8 29.6 8 29V28C8 27.4 8.5 27 9 27H21.8C22.3 27.8 23 28.4 24 28.6Z" fill="#7BC0F9"/>
9
+ <path d="M9.1 13.4C8.8 14.5 8.1 15.5 7.1 16.3C6.3 16.9 5.5 17.5 4.6 18C4 18.4 4.1 18.1 4.1 19C4.1 21.4 4 23.8 3.9 26.1C3.8 27.6 3.8 29 3.7 30.5C3.7 30.9 3.5 31.4001 3.3 31.7001C2.7 32.4001 2.1 33 1.4 33.5C1 33.9 0.5 34.2001 0 34.4001V13.2C0.2 13 0.4 12.9 0.6 12.8C2 12 3.3 11.3 4.7 10.6C5.4 10.3 6 9.80005 6.7 9.50005C6.9 9.40005 7.2 9.30005 7.4 9.30005C7.7 9.30005 7.9 9.30005 8.2 9.40005C8.4 9.50005 8.6 9.70005 8.8 9.80005C9 10 9.1 10.2 9.2 10.5C9.5 11.5 9.4 12.5 9.1 13.4Z" fill="#2680EB"/>
10
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M21.1998 25.9H22.2998C22.6998 27 23.6998 27.7999 24.8998 27.7999C26.0998 27.7999 27.1998 27 27.4998 25.9H37.9998C38.4998 25.9 38.8998 25.5 38.8998 25C38.8998 24.5 38.4998 24.1 37.9998 24.1H27.5998C27.1998 23 26.1998 22.2 24.9998 22.2C23.7998 22.2 22.6998 23 22.3998 24.1H21.2998C20.7998 24.1 20.3998 24.5 20.3998 25C20.1998 25.4 20.5998 25.9 21.1998 25.9ZM36.1998 27.7C34.9998 27.7 33.8998 28.5 33.5998 29.6H21.1998C20.6998 29.6 20.2998 30 20.2998 30.5C20.2998 31 20.6998 31.4 21.1998 31.4H33.5998C33.9998 32.5 34.9998 33.2999 36.1998 33.2999C37.7998 33.2999 38.9998 32 38.9998 30.5C38.9998 29 37.6998 27.7 36.1998 27.7ZM31.2998 35.2H37.9998C38.4998 35.2 38.8998 35.5999 38.8998 36.0999C38.8998 36.5999 38.4998 37 37.9998 37H31.2998C30.8998 38.1 29.8998 38.9 28.6998 38.9C27.4998 38.9 26.3998 38.1 26.0998 37H21.1998C20.6998 37 20.2998 36.5999 20.2998 36.0999C20.2998 35.5999 20.6998 35.2 21.1998 35.2H25.9998C26.3998 34.1 27.3998 33.2999 28.5998 33.2999C29.7998 33.2999 30.8998 34.2 31.2998 35.2Z" fill="#FF8C00"/>
11
+ </g>
12
+ <defs>
13
+ <clipPath id="clip0_1074_66">
14
+ <rect width="39" height="39" fill="white"/>
15
+ </clipPath>
16
+ </defs>
17
+ </svg>
@@ -0,0 +1,12 @@
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_1072_22)">
3
+ <path d="M7.4 28.5L8.2 26.9H8C7.5 26.9 7.2 26.5 7.2 26.1V2.5C7.2 2 7.6 1.7 8 1.7H18.9V5.9C18.9 7.3 20 8.4 21.4 8.4H24.4H25.6V12.5V13.3V21.6H27.3V13.2V12.4V8.4V8.3V7.5C27.3 7.3 27.2 7.1 27.1 6.9L20.4 0.2C20.1 0.1 19.9 0 19.7 0H8C6.6 0 5.5 1.1 5.5 2.5V26.1C5.5 27.3 6.3 28.2 7.4 28.5ZM20.5 2.9L24.3 6.7H21.3C20.8 6.7 20.5 6.3 20.5 5.9V2.9Z" fill="#2680EB"/>
4
+ <path d="M38.8 24.6L31.9 37.6C31.6 38.2 30.6 38.9 29.9 38.9L2.2 39C1.6 39 1.1 38.8 0.6 38.4C0.2 38 0 37.4 0 36.8V15.3C0 14.1 1 13.1 2.2 13.1H4.2V15H2.9C2.6 15 2.4 15.1 2.2 15.3C2 15.5 1.9 15.7 1.9 16V36.1C1.9 36.7 2.3 37.1 2.9 37.1H4.3L10.8 23.9C11.2 23.2 11.9 22.6 12.6 22.6H28.6V17.3C29.6 17.4 30.5 18.3 30.5 19.3V22.6H37.8C38.7 22.6 39.4 23.4 38.8 24.6Z" fill="#FF8C00"/>
5
+ <path d="M11 21C11.1 21 11.2 20.9 11.4 20.9H21.7V20.2C21.7 19.8 21.6 19.5 21.4 19.2C21.2 18.9 20.9 18.6 20.6 18.4L18.4 17.2C18.3 17.2 18.2 17.1 18.1 17C18 16.9 18 16.8 18 16.7V16C18.4 15.5 18.7 15 18.8 14.4C18.9 14.3 19 14.2 19.1 14.1C19.2 14 19.2 13.8 19.2 13.7V12.8C19.2 12.7 19.2 12.6 19.1 12.5C19.1 12.4 19 12.3 18.9 12.2V10.9C18.9 10.6 18.9 10.3 18.8 10.1C18.7 9.8 18.6 9.6 18.4 9.4C18.1 9.1 17.7 8.9 17.3 8.7C16.9 8.6 16.5 8.5 16.1 8.5C15.7 8.5 15.3 8.5 14.9 8.7C14.5 8.8 14.1 9.1 13.8 9.4C13.5 9.8 13.3 10.4 13.3 10.9V12.2C13.1 12.4 13 12.6 13 12.8V13.7C13 13.9 13 14 13.1 14.2C13.2 14.3 13.3 14.5 13.5 14.5C13.7 15 14 15.4 14.2 15.9C14.3 15.9 14.3 16 14.4 16.1V16.9C14.4 17 14.4 17.1 14.3 17.2C14.2 17.3 14.1 17.4 14 17.4L12 18.4C11.6 18.5 11.4 18.8 11.2 19.1C11 19.5 11 19.9 11 20.2V21Z" fill="#2680EB"/>
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_1072_22">
9
+ <rect width="39" height="39" fill="white"/>
10
+ </clipPath>
11
+ </defs>
12
+ </svg>
@@ -0,0 +1,17 @@
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_1073_43)">
3
+ <path d="M33.6 3.09998H31V5.69998C31 7.39998 29.7 8.69998 28 8.69998C26.3 8.69998 25 7.39998 25 5.69998V3.09998H14V5.69998C14 7.39998 12.7 8.69998 11 8.69998C9.3 8.69998 8 7.39998 8 5.69998V3.09998H5.4C2.4 3.09998 0 5.49998 0 8.39998V33.6C0 36.6 2.4 39 5.4 39H33.6C36.6 39 39 36.6 39 33.6V8.39998C39 5.49998 36.6 3.09998 33.6 3.09998ZM36.2 32.9C36.2 34.7 34.7 36.2 32.9 36.2H6.1C4.3 36.2 2.8 34.7 2.8 32.9V14.1H36.1V32.9H36.2Z" fill="#2680EB"/>
4
+ <path d="M11 7.7C9.9 7.7 9 6.8 9 5.7V2C9 0.9 9.9 0 11 0C12.1 0 13 0.9 13 2V5.7C13 6.8 12.1 7.7 11 7.7ZM30 5.7V2C30 0.9 29.1 0 28 0C26.9 0 26 0.9 26 2V5.7C26 6.8 26.9 7.7 28 7.7C29.1 7.7 30 6.8 30 5.7Z" fill="#7BC0F9"/>
5
+ <path d="M7 17.7C7 17.3 7.3 17 7.7 17H22.4C22.8 17 23.1 17.3 23.1 17.7V20.4C23.1 20.8 22.8 21.1 22.4 21.1H7.7C7.3 21 7 20.7 7 20.3V17.7Z" fill="#FF8C00"/>
6
+ <path d="M24 17.7C24 17.3 24.3 17 24.7 17H27.4C27.8 17 28.1 17.3 28.1 17.7V20.4C28.1 20.8 27.8 21.1 27.4 21.1H24.7C24.3 21.1 24 20.8 24 20.4V17.7Z" fill="#FF8C00"/>
7
+ <path d="M29 29.7C29 29.3 29.3 29 29.7 29H32.4C32.8 29 33.1 29.3 33.1 29.7V32.4C33.1 32.8 32.8 33.1 32.4 33.1H29.7C29.3 33.1 29 32.8 29 32.4V29.7Z" fill="#FF8C00"/>
8
+ <path d="M12 23.7C12 23.3 12.3 23 12.7 23H15.4C15.8 23 16.1 23.3 16.1 23.7V26.4C16.1 26.8 15.8 27.1 15.4 27.1H12.7C12.3 27.1 12 26.8 12 26.4V23.7Z" fill="#FF8C00"/>
9
+ <path d="M17 23.7C17 23.3 17.3 23 17.7 23H32.4C32.8 23 33.1 23.3 33.1 23.7V26.4C33.1 26.8 32.8 27.1 32.4 27.1H17.7C17.3 27.1 17 26.8 17 26.4V23.7Z" fill="#FF8C00"/>
10
+ <path d="M6 29.7C6 29.3 6.3 29 6.7 29H27.4C27.8 29 28.1 29.3 28.1 29.7V32.4C28.1 32.8 27.8 33.1 27.4 33.1H6.7C6.3 33 6 32.7 6 32.3V29.7Z" fill="#FF8C00"/>
11
+ </g>
12
+ <defs>
13
+ <clipPath id="clip0_1073_43">
14
+ <rect width="39" height="39" fill="white"/>
15
+ </clipPath>
16
+ </defs>
17
+ </svg>
@@ -301,14 +301,14 @@ ButtonIcon.propTypes = {
301
301
  onClick: PropTypes.func,
302
302
  /** Name of [icon](https://core.diginet.com.vn/ui/?path=/story/icon-basic). */
303
303
  name: PropTypes.string,
304
- /**
305
- * The size of the component.
306
- *
307
- * * tiny (button 24px, icon 16px)
308
- * * small (button 32px, icon 20px)
309
- * * medium (button 40px, icon 24px)
310
- * * large (button 48px, icon 32px)
311
- * * giant (button 56px, icon 40px)
304
+ /**
305
+ * The size of the component.
306
+ *
307
+ * * tiny (button 24px, icon 16px)
308
+ * * small (button 32px, icon 20px)
309
+ * * medium (button 40px, icon 24px)
310
+ * * large (button 48px, icon 32px)
311
+ * * giant (button 56px, icon 40px)
312
312
  * */
313
313
  size: PropTypes.oneOf(['tiny', 'small', 'medium', 'large', 'giant', 'extraGiant']),
314
314
  /** Style inline of component. */
@@ -319,19 +319,19 @@ ButtonIcon.propTypes = {
319
319
  viewType: PropTypes.oneOf(['text', 'outlined', 'filled', 'ghost']),
320
320
  /** Width of the component. */
321
321
  width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
322
- /**
323
- * ref methods (ref.current.instance.*method*)
324
- *
325
- * * option(): Gets all UI component properties
326
- * * Returns value - object
327
- * * option(optionName): Gets the value of a single property
328
- * * @param {optionName} - string
329
- * * Returns value - any
330
- * * option(optionName, optionValue): Updates the value of a single property
331
- * * @param {optionName} - string
332
- * * @param {optionValue} - any
333
- * * option(options): Updates the values of several properties
334
- * * @param {options} - object
322
+ /**
323
+ * ref methods (ref.current.instance.*method*)
324
+ *
325
+ * * option(): Gets all UI component properties
326
+ * * Returns value - object
327
+ * * option(optionName): Gets the value of a single property
328
+ * * @param {optionName} - string
329
+ * * Returns value - any
330
+ * * option(optionName, optionValue): Updates the value of a single property
331
+ * * @param {optionName} - string
332
+ * * @param {optionValue} - any
333
+ * * option(options): Updates the values of several properties
334
+ * * @param {options} - object
335
335
  */
336
336
  reference: ref
337
337
  };
@@ -405,19 +405,19 @@ Button.propTypes = {
405
405
  urlParams: PropTypes.object,
406
406
  /** The variant to use. */
407
407
  viewType: PropTypes.oneOf(['text', 'outlined', 'filled', 'link']),
408
- /**
409
- * ref methods (ref.current.instance.*method*)
410
- *
411
- * * option(): Gets all UI component properties
412
- * * Returns value - object
413
- * * option(optionName): Gets the value of a single property
414
- * * @param {optionName} - string
415
- * * Returns value - any
416
- * * option(optionName, optionValue): Updates the value of a single property
417
- * * @param {optionName} - string
418
- * * @param {optionValue} - any
419
- * * option(options): Updates the values of several properties
420
- * * @param {options} - object
408
+ /**
409
+ * ref methods (ref.current.instance.*method*)
410
+ *
411
+ * * option(): Gets all UI component properties
412
+ * * Returns value - object
413
+ * * option(optionName): Gets the value of a single property
414
+ * * @param {optionName} - string
415
+ * * Returns value - any
416
+ * * option(optionName, optionValue): Updates the value of a single property
417
+ * * @param {optionName} - string
418
+ * * @param {optionValue} - any
419
+ * * option(options): Updates the values of several properties
420
+ * * @param {options} - object
421
421
  */
422
422
  ref: ref
423
423
  };
@@ -5,7 +5,7 @@ import { Button, ButtonIcon, Typography } from "../..";
5
5
  import { getGlobal } from "../../../global";
6
6
  import locale from "../../../locale";
7
7
  import { render } from 'react-dom';
8
- import { bgColor, border, borderRadius, boxBorder, cursorDefault, cursorPointer, displayFlex, flexCol, flexRow, inset, itemsCenter, justifyBetween, mg, parseHeight, parseMaxWidth, parseMinWidth, parseWidth, pointerEventsNone, positionAbsolute, positionRelative, textCenter, textColor, userSelectNone } from "../../../styles/general";
8
+ import { bgColor, border, borderRadius, boxBorder, cursorDefault, cursorPointer, displayFlex, flexCol, flexRow, inset, itemsCenter, justifyBetween, mg, mgt, parseHeight, parseMaxWidth, parseMinWidth, parseWidth, parseWidthHeight, pd, pointerEventsNone, positionAbsolute, positionRelative, textCenter, textColor, userSelectNone } from "../../../styles/general";
9
9
  import { useTheme } from "../../../theme";
10
10
  import { date as moment } from "../../../utils";
11
11
  const {
@@ -22,6 +22,7 @@ const {
22
22
  *
23
23
  * @param {Object} unique
24
24
  * @param {Boolean} boxShadow
25
+ * @param onClickActive
25
26
  * @returns
26
27
  */
27
28
  const generateCalendarCSS = (unique, boxShadow = true, onClickActive = true) => css`
@@ -29,9 +30,8 @@ const generateCalendarCSS = (unique, boxShadow = true, onClickActive = true) =>
29
30
  ${flexCol};
30
31
  ${boxBorder};
31
32
  ${borderRadius('0px 0px 4px 4px')};
32
- ${bgColor('system.white')};
33
+ ${bgColor('system/white')};
33
34
  ${parseWidth('100%')};
34
- ${parseMinWidth(260)};
35
35
  ${parseMaxWidth(400)};
36
36
  box-shadow: ${boxShadow ? boxShadowsLarge : 'none'};
37
37
  .${unique.navigator.navigator} {
@@ -56,9 +56,9 @@ const generateCalendarCSS = (unique, boxShadow = true, onClickActive = true) =>
56
56
  }
57
57
  .${unique.table.table} {
58
58
  ${mg([0, 4])};
59
+ ${pd(0)};
59
60
  ${parseWidth('calc(100% - 32px)')};
60
61
  border-collapse: separate;
61
- padding: 0;
62
62
  table-layout: fixed;
63
63
  .${unique.table.data} {
64
64
  &:not(.empty) {
@@ -66,7 +66,7 @@ const generateCalendarCSS = (unique, boxShadow = true, onClickActive = true) =>
66
66
  ${positionRelative};
67
67
  ${textCenter};
68
68
  ${userSelectNone};
69
- ${textColor('text.main')};
69
+ ${textColor('text/main')};
70
70
  &:nth-of-type(7n - 1) {
71
71
  ${textColor('info8')};
72
72
  }
@@ -84,37 +84,37 @@ const generateCalendarCSS = (unique, boxShadow = true, onClickActive = true) =>
84
84
  }
85
85
  &:hover {
86
86
  span.${unique.day.day} {
87
- ${bgColor('fill.hover')};
87
+ ${bgColor('fill/hover')};
88
88
  }
89
89
  }
90
90
  ${onClickActive && css`
91
91
  &:active {
92
92
  span.${unique.day.day} {
93
- ${bgColor('fill.pressed')};
93
+ ${bgColor('fill/pressed')};
94
94
  }
95
95
  }
96
96
  `}
97
97
  &.${unique.day.active} {
98
98
  span.${unique.day.day} {
99
- ${bgColor('fill.focus')};
99
+ ${bgColor('fill/focus')};
100
100
  }
101
101
  }
102
102
  &.${unique.day.today} {
103
103
  span {
104
104
  ${boxBorder};
105
- ${border(1, 'system.active')};
105
+ ${border(1, 'system/active')};
106
106
  }
107
107
  }
108
108
  &.${unique.day.between} {
109
109
  opacity: 1;
110
110
  &::before {
111
- ${bgColor('fill.hover')};
111
+ ${bgColor('fill/hover')};
112
112
  }
113
113
  }
114
114
  &.${unique.day.from} {
115
115
  opacity: 1;
116
116
  &::before {
117
- ${bgColor('fill.hover')};
117
+ ${bgColor('fill/hover')};
118
118
  border-bottom-left-radius: 12px;
119
119
  border-top-left-radius: 12px;
120
120
  left: calc((100% - 24px) / 2);
@@ -123,7 +123,7 @@ const generateCalendarCSS = (unique, boxShadow = true, onClickActive = true) =>
123
123
  &.${unique.day.to} {
124
124
  opacity: 1;
125
125
  &::before {
126
- ${bgColor('fill.hover')};
126
+ ${bgColor('fill/hover')};
127
127
  border-bottom-right-radius: 12px;
128
128
  border-top-right-radius: 12px;
129
129
  right: calc((100% - 24px) / 2);
@@ -140,7 +140,7 @@ const generateCalendarCSS = (unique, boxShadow = true, onClickActive = true) =>
140
140
  ${userSelectNone};
141
141
  ${textCenter};
142
142
  ${parseHeight(24)};
143
- ${textColor('text.normal_label')};
143
+ ${textColor('text/normal_label')};
144
144
  &:nth-of-type(6) {
145
145
  ${textColor('info8')};
146
146
  }
@@ -149,43 +149,34 @@ const generateCalendarCSS = (unique, boxShadow = true, onClickActive = true) =>
149
149
  }
150
150
  }
151
151
  }
152
- @media only screen and (max-width: 599px) {
152
+ @media only screen and (max-width: 800px) {
153
153
  .${unique.navigator.navigator} {
154
- height: 24px;
155
- margin-top: 14px;
154
+ ${parseHeight(24)};
155
+ ${mgt(14)};
156
156
  .${unique.navigator.center} {
157
- height: 24px;
158
- margin: 0;
159
- min-width: 130px;
160
- button {
161
- height: 24px;
162
- }
163
- .DGN-UI-Typography {
164
- font-size: 18px;
165
- min-width: 130px;
166
- }
157
+ ${parseMinWidth(130)};
158
+ ${parseHeight(24)};
159
+ ${mg(0)};
167
160
  }
168
161
  .${unique.navigator.around} {
169
- height: 24px;
170
- width: 56px;
162
+ ${parseWidthHeight(56, 24)};
171
163
  }
172
164
  .${unique.icon} {
173
- height: 24px;
174
- margin: 0 2px;
175
- width: 24px;
165
+ ${parseWidthHeight(24)};
166
+ ${mg('0 2px')};
176
167
  svg,
177
168
  path,
178
169
  g {
179
- ${pointerEventsNone}
170
+ ${pointerEventsNone};
180
171
  }
181
172
  }
182
173
  }
183
174
  .${unique.table.container} {
184
- margin: 6px 0;
175
+ ${mg('6px 0')};
185
176
  }
186
177
  .${unique.table.table} {
187
- margin: 0 10px;
188
- width: calc(100% - 20px);
178
+ ${mg('0 10px')};
179
+ ${parseWidth('calc(100% - 20px)')};
189
180
  .DGN-UI-Typography {
190
181
  font-size: 14px;
191
182
  }
@@ -476,10 +467,9 @@ const renderHeader = className => {
476
467
  type: 'h6'
477
468
  }, weekdays[i])));
478
469
  }
479
- const header = jsx("thead", null, jsx("tr", {
470
+ return jsx("thead", null, jsx("tr", {
480
471
  className: className.table.raw
481
472
  }, tableHeader));
482
- return header;
483
473
  };
484
474
  /**
485
475
  *
@@ -489,6 +479,7 @@ const renderHeader = className => {
489
479
  * @param {Function} leftFn
490
480
  * @param {Function} rightFn
491
481
  * @param {Function} dbRightFn
482
+ * @param fn
492
483
  * @returns navigator
493
484
  */
494
485
  const renderNavigator = (className, refs, dbLeftFn, leftFn, rightFn, dbRightFn, fn) => jsx("div", {
@@ -7,7 +7,7 @@ import locale from "../../../locale";
7
7
  import PropTypes from 'prop-types';
8
8
  import { forwardRef, memo, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
9
9
  import { render } from 'react-dom';
10
- import { bgColor, borderRadius4px, cursorPointer, displayBlock, displayFlex, displayNone, flexCol, flexRow, justifyEnd, left, mg, parseHeight, parseMaxWidth, parseMinWidth, parseWidthHeight, pd, pointerEventsNone, positionFixed, textCenter, top, userSelectNone, whiteSpaceNoWrap } from "../../../styles/general";
10
+ import { bgColor, borderRadius4px, cursorPointer, displayBlock, displayFlex, displayNone, flexCol, flexRow, invisible, justifyEnd, left, mg, parseHeight, parseMaxWidth, parseMinWidth, parseWidthHeight, pd, pointerEventsNone, positionFixed, textCenter, top, userSelectNone, whiteSpaceNoWrap, z } from "../../../styles/general";
11
11
  import { useTheme } from "../../../theme";
12
12
  import { capitalizeSentenceCase, classNames, date as moment, isEqual, randomString, updatePosition } from "../../../utils";
13
13
  import { generateCalendarCSS, onUpdateNavigator, renderHeader, renderNavigator } from "../calendar/function";
@@ -103,6 +103,7 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
103
103
  viewType,
104
104
  ...props
105
105
  }, reference) => {
106
+ if (!reference) reference = useRef(null);
106
107
  const footerRef = useRef(null);
107
108
  const iconRef = useRef(null);
108
109
  const ipConRef = useRef(null);
@@ -366,7 +367,7 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
366
367
  height,
367
368
  top,
368
369
  width
369
- } = anchor instanceof Element ? anchor.getBoundingClientRect() : ipConRef.current.getBoundingClientRect();
370
+ } = anchor instanceof Element ? anchor.getBoundingClientRect() : ref.current.getBoundingClientRect();
370
371
  const pickerHeight = innerWidth < 567 ? controls ? 550 : 495 : controls ? 310 : 256;
371
372
  let style = {};
372
373
  style.left = left;
@@ -885,7 +886,7 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
885
886
  className: unique.tooltip,
886
887
  ref: tooltipRef
887
888
  }, jsx(Typography, {
888
- color: 'system.white',
889
+ color: 'system/white',
889
890
  type: 'p2'
890
891
  }));
891
892
  const pickerComp = jsx("div", {
@@ -1023,7 +1024,7 @@ const pickerCSS = {
1023
1024
  ${displayFlex};
1024
1025
  ${flexCol};
1025
1026
  ${borderRadius4px};
1026
- ${bgColor('system.white')};
1027
+ ${bgColor('system/white')};
1027
1028
  box-shadow: ${boxShadowsLarge};
1028
1029
  .${unique.wrapper} {
1029
1030
  ${displayFlex};
@@ -1041,13 +1042,13 @@ const pickerCSS = {
1041
1042
  ${parseMinWidth(65)};
1042
1043
  ${bgColor('rgba(21, 26, 48, 0.9)')};
1043
1044
  ${pd([0.75, 1.5])};
1045
+ ${invisible};
1046
+ ${z(3)};
1044
1047
  transition: left 0.05s ease-in, top 0.05s ease-in;
1045
1048
  vertical-align: middle;
1046
- visibility: hidden;
1047
1049
  will-change: left top visibility;
1048
- z-index: ${zIndexCORE(3)};
1049
1050
  }
1050
- @media only screen and (max-width: 599px) {
1051
+ @media only screen and (max-width: 800px) {
1051
1052
  ${parseMaxWidth(400)};
1052
1053
  .${unique.wrapper} {
1053
1054
  ${displayFlex};
@@ -1069,11 +1070,11 @@ const pickerCSS = {
1069
1070
  ${parseMaxWidth(805)};
1070
1071
  ${top(position.top)};
1071
1072
  ${left(position.left)};
1073
+ ${z(2)};
1072
1074
  opacity: 0;
1073
1075
  transform: scale(0);
1074
1076
  transform-origin: ${position.transformOrigin};
1075
1077
  transition: opacity 120ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
1076
- z-index: ${zIndexCORE(2)};
1077
1078
  `,
1078
1079
  active: {
1079
1080
  opacity: 1,
package/icons/effect.js CHANGED
@@ -105,19 +105,19 @@ Icon.propTypes = {
105
105
  viewBox: PropTypes.bool,
106
106
  /** Width of the component. */
107
107
  width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
108
- /**
109
- * ref methods (ref.current.instance.*method*)
110
- *
111
- * * option(): Gets all UI component properties
112
- * * Returns value - object
113
- * * option(optionName): Gets the value of a single property
114
- * * @param {optionName} - string
115
- * * Returns value - any
116
- * * option(optionName, optionValue): Updates the value of a single property
117
- * * @param {optionName} - string
118
- * * @param {optionValue} - any
119
- * * option(options): Updates the values of several properties
120
- * * @param {options} - object
108
+ /**
109
+ * ref methods (ref.current.instance.*method*)
110
+ *
111
+ * * option(): Gets all UI component properties
112
+ * * Returns value - object
113
+ * * option(optionName): Gets the value of a single property
114
+ * * @param {optionName} - string
115
+ * * Returns value - any
116
+ * * option(optionName, optionValue): Updates the value of a single property
117
+ * * @param {optionName} - string
118
+ * * @param {optionValue} - any
119
+ * * option(options): Updates the values of several properties
120
+ * * @param {options} - object
121
121
  */
122
122
  ref: ref
123
123
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diginet-core-ui",
3
- "version": "1.3.94-beta.7",
3
+ "version": "1.3.94-beta.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "license": "UNLICENSED",