diginet-core-ui 1.3.95 → 1.3.96

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.
@@ -104,9 +104,9 @@ Notify.defaultProps = {
104
104
  Notify.propTypes = {
105
105
  /** Class for component. */
106
106
  className: PropTypes.string,
107
- /**
108
- * used to set position of Alert (is a string or an object)
109
- * string is center (obligatory) as {vertical: 'center', horizontal: 'center'}
107
+ /**
108
+ * used to set position of Alert (is a string or an object)
109
+ * string is center (obligatory) as {vertical: 'center', horizontal: 'center'}
110
110
  */
111
111
  position: PropTypes.oneOfType([PropTypes.oneOf(['center']), PropTypes.shape({
112
112
  horizontal: PropTypes.oneOf(['center', 'left', 'right']),
@@ -116,13 +116,13 @@ Notify.propTypes = {
116
116
  style: PropTypes.object,
117
117
  /** Any [props](https://core.diginet.com.vn/ui/?path=/docs/alert--basic) of Alert */
118
118
  props: PropTypes.any
119
- /**
120
- * ref methods (ref.current.instance.*method*)
121
- *
122
- * * show(message, option): Show notify
123
- * * @param {message} - number
124
- * * @param {options} - object
125
- * * {[Props](https://core.diginet.com.vn/ui/?path=/docs/alert--basic) applied to the `Alert`.}
119
+ /**
120
+ * ref methods (ref.current.instance.*method*)
121
+ *
122
+ * * show(message, option): Show notify
123
+ * * @param {message} - number
124
+ * * @param {options} - object
125
+ * * {[Props](https://core.diginet.com.vn/ui/?path=/docs/alert--basic) applied to the `Alert`.}
126
126
  */
127
127
  };
128
128
 
@@ -201,28 +201,28 @@ Badge.propTypes = {
201
201
  name: PropTypes.string,
202
202
  /** Controls whether the badge is hidden when `content` is zero. */
203
203
  showZero: PropTypes.bool,
204
- /** Size of the components.
205
- *
206
- * * medium (dot 8px, typography p3)
207
- * * large (button 10px, typography p2)
208
- * * giant (button 12px, typography p1)
204
+ /** Size of the components.
205
+ *
206
+ * * medium (dot 8px, typography p3)
207
+ * * large (button 10px, typography p2)
208
+ * * giant (button 12px, typography p1)
209
209
  * */
210
210
  size: PropTypes.oneOf(['medium', 'large', 'giant']),
211
211
  /** Style inline of component. */
212
212
  style: PropTypes.object
213
- /**
214
- * ref methods (ref.current.instance.*method*)
215
- *
216
- * * option(): Gets all UI component properties
217
- * * Returns value - object
218
- * * option(optionName): Gets the value of a single property
219
- * * @param {optionName} - string
220
- * * Returns value - any
221
- * * option(optionName, optionValue): Updates the value of a single property
222
- * * @param {optionName} - string
223
- * * @param {optionValue} - any
224
- * * option(options): Updates the values of several properties
225
- * * @param {options} - object
213
+ /**
214
+ * ref methods (ref.current.instance.*method*)
215
+ *
216
+ * * option(): Gets all UI component properties
217
+ * * Returns value - object
218
+ * * option(optionName): Gets the value of a single property
219
+ * * @param {optionName} - string
220
+ * * Returns value - any
221
+ * * option(optionName, optionValue): Updates the value of a single property
222
+ * * @param {optionName} - string
223
+ * * @param {optionValue} - any
224
+ * * option(options): Updates the values of several properties
225
+ * * @param {options} - object
226
226
  */
227
227
  };
228
228
 
@@ -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
  };
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
  };
423
423
 
@@ -1,20 +1,12 @@
1
1
  /** @jsxRuntime classic */
2
2
  /** @jsx jsx */
3
3
  import { css, jsx } from '@emotion/core';
4
- import { ButtonIcon, Icon, Popover, Typography } from "./..";
4
+ import { ButtonIcon, Icon, Popover, Tooltip, Typography } from "./..";
5
+ import OptionWrapper from "../others/option-wrapper";
5
6
  import PropTypes from 'prop-types';
6
7
  import React, { forwardRef, isValidElement, memo, useImperativeHandle, useMemo, useRef, useState } from 'react';
7
8
  import { bgColor, borderNone, cursorPointer, displayFlex, flexCol, flexRow, gap, itemsCenter, outlineNone, parseHeight, pd, pdl } from "../../styles/general";
8
- import { useTheme } from "../../theme";
9
9
  import { classNames } from "../../utils";
10
- import OptionWrapper from "../others/option-wrapper";
11
- const {
12
- colors: {
13
- system: {
14
- dark: systemDark
15
- }
16
- }
17
- } = useTheme();
18
10
  const ButtonMore = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
19
11
  action = {},
20
12
  anchor,
@@ -28,6 +20,7 @@ const ButtonMore = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
28
20
  popoverProp,
29
21
  style
30
22
  }, reference) => {
23
+ if (!reference) reference = useRef(null);
31
24
  const isOptionFull = optionType === 'full';
32
25
  const ref = useRef(null);
33
26
  const [openState, setOpenState] = useState(false);
@@ -51,7 +44,7 @@ const ButtonMore = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
51
44
  });
52
45
  const renderOptions = () => {
53
46
  return options.map((item, idx) => {
54
- if ( /*#__PURE__*/isValidElement(item)) return item;else {
47
+ if (item !== null && item !== void 0 && item.hidden) return;else if ( /*#__PURE__*/isValidElement(item)) return item;else {
55
48
  const icon = item === null || item === void 0 ? void 0 : item.icon;
56
49
  const label = item === null || item === void 0 ? void 0 : item.label;
57
50
  const action = () => {
@@ -69,19 +62,21 @@ const ButtonMore = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
69
62
  name: icon,
70
63
  width: 20,
71
64
  height: 20,
72
- color: systemDark
65
+ color: 'system/dark'
73
66
  }) : null, jsx(Typography, {
74
67
  css: !icon && iconState && ExtraPaddingCSS,
75
68
  className: 'DGN-UI-ButtonMore-Label',
76
69
  ...labelProp
77
- }, label)) : jsx(ButtonIcon, {
70
+ }, label)) : jsx(Tooltip, {
78
71
  key: idx,
79
72
  className: 'DGN-UI-ButtonMore-Option',
73
+ title: label
74
+ }, jsx(ButtonIcon, {
80
75
  circular: true,
81
76
  name: icon,
82
77
  onClick: action,
83
78
  viewType: 'text'
84
- });
79
+ }));
85
80
  }
86
81
  });
87
82
  };
@@ -132,6 +127,7 @@ const ButtonMore = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
132
127
  }, [buttonProps, className, disabled, id, options, optionType, popoverProp, style, iconState, openState]);
133
128
  }));
134
129
  const PopoverCSS = isOptionFull => css`
130
+ ${displayFlex};
135
131
  ${isOptionFull ? flexCol : flexRow};
136
132
  ${pd(isOptionFull ? [1, 0] : [0, 2])}
137
133
  `;
@@ -145,14 +141,14 @@ const OptionFullCSS = css`
145
141
  ${parseHeight(28)};
146
142
  ${pd([0, 4])};
147
143
  ${gap([0, 1])};
148
- ${bgColor('system.white')};
144
+ ${bgColor('system/white')};
149
145
  transition: all 0.5s ease;
150
146
  &:hover,
151
147
  &:focus {
152
- ${bgColor('fill.hover')};
148
+ ${bgColor('fill/hover')};
153
149
  }
154
150
  &:active {
155
- ${bgColor('fill.pressed')};
151
+ ${bgColor('fill/pressed')};
156
152
  }
157
153
  `;
158
154
  const ExtraPaddingCSS = css`
@@ -167,41 +163,27 @@ ButtonMore.defaultProps = {
167
163
  style: {}
168
164
  };
169
165
  ButtonMore.propTypes = {
170
- /** [Props](https://core.diginet.com.vn/ui/?path=/docs/buttonicon) applied to the main `ButtonIcon`. */
166
+ /** [Props](https://core.diginet.com.vn/ui/?path=/docs/components-buttonicon) applied to the main `ButtonIcon`. */
171
167
  buttonProps: PropTypes.object,
172
168
  /** Class for component. */
173
169
  className: PropTypes.string,
174
170
  /** If `true`, the component is disabled. */
175
171
  disabled: PropTypes.bool,
176
- /** [Props](https://core.diginet.com.vn/ui/?path=/docs/typography) applied to the `Typography` label. */
172
+ /** [Props](https://core.diginet.com.vn/ui/?path=/docs/components-typography) applied to the `Typography` label. */
177
173
  labelProp: PropTypes.object,
178
174
  /** Option(s) in popover. */
179
175
  option: PropTypes.arrayOf(PropTypes.shape({
180
176
  label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
181
177
  icon: PropTypes.string,
182
- action: PropTypes.func
178
+ action: PropTypes.func,
179
+ hidden: PropTypes.bool
183
180
  })),
184
181
  /** The variant of option's type. */
185
182
  optionType: PropTypes.oneOf(['full', 'icon']),
186
- /** [Props](https://core.diginet.com.vn/ui/?path=/docs/overplay-popover) applied to the main `Popover`. */
183
+ /** [Props](https://core.diginet.com.vn/ui/?path=/docs/components-popover) applied to the main `Popover`. */
187
184
  popoverProp: PropTypes.object,
188
185
  /** Style inline of component. */
189
186
  style: PropTypes.object
190
- /**
191
- * ref methods (ref.current.instance.*method*)
192
- *
193
- * * option(): Gets all UI component properties
194
- * * Returns value - object
195
- * * option(optionName): Gets the value of a single property
196
- * * @param {optionName} - string
197
- * * Returns value - any
198
- * * option(optionName, optionValue): Updates the value of a single property
199
- * * @param {optionName} - string
200
- * * @param {optionValue} - any
201
- * * option(options): Updates the values of several properties
202
- * * @param {options} - object
203
- */
204
187
  };
205
-
206
188
  export { ButtonMore };
207
189
  export default OptionWrapper(ButtonMore);
@@ -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,