@xqmsg/ui-core 0.28.1 → 0.29.0
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/README.md +3 -3
- package/dist/components/SimpleTable/SimpleTable.stories.d.ts +2 -2
- package/dist/components/SimpleTable/TableTypes.d.ts +1 -1
- package/dist/components/SimpleTable/utils/generateTableColumns.d.ts +1 -1
- package/dist/components/banner/Banner.stories.d.ts +2 -2
- package/dist/components/breadcrumbs/Breadcrumbs.stories.d.ts +2 -2
- package/dist/components/button/Button.stories.d.ts +2 -2
- package/dist/components/button/google/GoogleButton.stories.d.ts +2 -2
- package/dist/components/button/index.d.ts +4 -5
- package/dist/components/button/microsoft/MicrosoftButton.stories.d.ts +2 -2
- package/dist/components/button/spinner/SpinnerButton.stories.d.ts +2 -2
- package/dist/components/card/Card.stories.d.ts +2 -2
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/form/Form.stories.d.ts +2 -2
- package/dist/components/form/section/FormSection.stories.d.ts +2 -2
- package/dist/components/input/Input.stories.d.ts +2 -2
- package/dist/components/input/InputTypes.d.ts +2 -0
- package/dist/components/input/components/token/Token.stories.d.ts +2 -2
- package/dist/components/layout/Layout.stories.d.ts +2 -2
- package/dist/components/link/Link.stories.d.ts +2 -2
- package/dist/components/loading/LoadingIndicator.stories.d.ts +2 -2
- package/dist/components/modal/Modal.stories.d.ts +2 -2
- package/dist/components/navigation/NavigationMenu.stories.d.ts +2 -2
- package/dist/components/tabs/TabsWrapper.stories.d.ts +2 -2
- package/dist/components/text/Text.stories.d.ts +2 -2
- package/dist/components/toast/Toast.stories.d.ts +2 -2
- package/dist/components/toolbar/Toolbar.stories.d.ts +2 -2
- package/dist/hooks/useToast.d.ts +1 -2
- package/dist/theme/components/checkbox.d.ts +1 -1
- package/dist/theme/components/code.d.ts +9 -3
- package/dist/theme/components/form-error.d.ts +1 -2
- package/dist/theme/components/link.d.ts +1 -1
- package/dist/theme/components/menu.d.ts +2 -1
- package/dist/theme/components/modal.d.ts +15 -11
- package/dist/theme/components/switch.d.ts +2 -1
- package/dist/theme/components/tabs.d.ts +4 -4
- package/dist/theme/foundations/colors.d.ts +225 -22
- package/dist/theme/foundations/typography.d.ts +10 -9
- package/dist/theme/styles.d.ts +0 -3
- package/dist/ui-core.cjs.development.js +281 -235
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +281 -236
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +4 -9
- package/src/components/SimpleTable/SimpleTable.tsx +1 -1
- package/src/components/SimpleTable/TableTypes.ts +1 -1
- package/src/components/SimpleTable/components/loading/index.tsx +2 -2
- package/src/components/SimpleTable/components/text/index.tsx +2 -2
- package/src/components/breadcrumbs/components/icon/index.tsx +3 -3
- package/src/components/breadcrumbs/components/label/index.tsx +1 -1
- package/src/components/button/index.tsx +6 -6
- package/src/components/card/index.tsx +12 -10
- package/src/components/icons/chevron/down/index.tsx +1 -1
- package/src/components/icons/settings/index.tsx +1 -1
- package/src/components/input/InputTypes.ts +3 -0
- package/src/components/input/StackedMultiSelect/index.tsx +7 -2
- package/src/components/input/StackedNumberInput/StackedNumberInput.tsx +2 -2
- package/src/components/input/StackedPilledInput/index.tsx +11 -3
- package/src/components/input/components/dropdown/index.tsx +8 -8
- package/src/components/input/components/label/index.tsx +2 -2
- package/src/components/input/components/token/index.tsx +1 -1
- package/src/components/input/index.tsx +1 -2
- package/src/components/link/index.tsx +1 -1
- package/src/components/loading/index.tsx +1 -1
- package/src/components/navigation/components/header/index.tsx +1 -1
- package/src/components/navigation/components/items/index.tsx +1 -1
- package/src/components/select/index.tsx +0 -19
- package/src/components/toast/index.tsx +2 -2
- package/src/components/toolbar/components/breadcrumbs/item/index.tsx +2 -2
- package/src/components/toolbar/components/dropdown/index.tsx +2 -2
- package/src/theme/components/alert.ts +4 -4
- package/src/theme/components/button.ts +50 -50
- package/src/theme/components/form-error.ts +3 -5
- package/src/theme/components/form-label.ts +1 -1
- package/src/theme/components/form.ts +2 -2
- package/src/theme/components/input.ts +3 -3
- package/src/theme/components/link.ts +4 -13
- package/src/theme/components/menu.ts +1 -1
- package/src/theme/components/modal.ts +17 -11
- package/src/theme/components/table.ts +2 -2
- package/src/theme/components/tabs.ts +6 -6
- package/src/theme/foundations/colors.ts +89 -37
- package/src/theme/foundations/shadows.ts +3 -3
- package/src/theme/foundations/typography.ts +3 -2
- package/src/theme/styles.ts +0 -3
package/dist/ui-core.esm.js
CHANGED
|
@@ -30,11 +30,9 @@ var ActionRow = function ActionRow(_ref) {
|
|
|
30
30
|
}, primaryText));
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
/**
|
|
34
|
-
* A functional React component utilized to render the `Button` component
|
|
35
|
-
*/
|
|
36
33
|
var Button = function Button(_ref) {
|
|
37
34
|
var onClick = _ref.onClick,
|
|
35
|
+
children = _ref.children,
|
|
38
36
|
text = _ref.text,
|
|
39
37
|
_ref$type = _ref.type,
|
|
40
38
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
@@ -58,7 +56,7 @@ var Button = function Button(_ref) {
|
|
|
58
56
|
rightIcon: rightIcon,
|
|
59
57
|
leftIcon: leftIcon,
|
|
60
58
|
color: color
|
|
61
|
-
}, text);
|
|
59
|
+
}, children != null ? children : text);
|
|
62
60
|
};
|
|
63
61
|
|
|
64
62
|
var _path;
|
|
@@ -297,34 +295,40 @@ var green = {
|
|
|
297
295
|
800: 'hsl(141, 42%, 24%)',
|
|
298
296
|
900: 'hsl(138, 42%, 6%)'
|
|
299
297
|
};
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
298
|
+
// ─── Canonical semantic tokens ────────────────────────────────────────────────
|
|
299
|
+
var text = {
|
|
300
|
+
primary: '#000000',
|
|
301
|
+
secondary: '#3C3C4399',
|
|
302
|
+
tertiary: '#3C3C4366',
|
|
303
|
+
onAccent: '#FFFFFF',
|
|
304
|
+
danger: red[500] // form-error text and required indicator
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
var surface = {
|
|
308
|
+
canvas: '#FFFFFF' // page / card / table-header background
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
var action = {
|
|
312
|
+
solid: '#0082ff',
|
|
313
|
+
danger: red[600] // danger button fill; also used for focus rings
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
var status = {
|
|
317
|
+
success: {
|
|
318
|
+
fill: '#d8f1b8'
|
|
307
319
|
},
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
dark: '#EBEBF52E'
|
|
320
|
+
warning: {
|
|
321
|
+
fill: '#ffefb4'
|
|
311
322
|
},
|
|
312
|
-
|
|
323
|
+
danger: {
|
|
324
|
+
fill: '#ffbdb9'
|
|
325
|
+
}
|
|
313
326
|
};
|
|
314
327
|
var border = {
|
|
315
328
|
focus: '#3A6CD980',
|
|
316
329
|
"default": '#D9D9D9',
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
var blur = {
|
|
320
|
-
quaternary: {
|
|
321
|
-
light: '',
|
|
322
|
-
dark: '#2A2A2A73'
|
|
323
|
-
},
|
|
324
|
-
tertiary: {
|
|
325
|
-
light: '',
|
|
326
|
-
dark: '#111111A6'
|
|
327
|
-
}
|
|
330
|
+
/** @deprecated typo was '#99999919A' — kept for compat, use inline '#9999991A' */
|
|
331
|
+
light: '#9999991A'
|
|
328
332
|
};
|
|
329
333
|
var fill = {
|
|
330
334
|
light: {
|
|
@@ -333,11 +337,50 @@ var fill = {
|
|
|
333
337
|
tertiary: '#7474801F',
|
|
334
338
|
quaternary: '#7474800D'
|
|
335
339
|
},
|
|
340
|
+
// translucent "dark glass" fills — previously named blur.*
|
|
341
|
+
dark: {
|
|
342
|
+
subtle: '#2A2A2A60',
|
|
343
|
+
strong: '#111111A6' // tertiary button pressed bg
|
|
344
|
+
},
|
|
345
|
+
|
|
346
|
+
// ─── deprecated aliases ───────────────────────────────────────────────────
|
|
347
|
+
/** @deprecated use colors.action.solid */
|
|
348
|
+
action: '#0082ff',
|
|
349
|
+
/** @deprecated use colors.status.success.fill */
|
|
336
350
|
success: '#d8f1b8',
|
|
351
|
+
/** @deprecated use colors.status.danger.fill */
|
|
337
352
|
error: '#ffbdb9',
|
|
338
|
-
warning
|
|
339
|
-
|
|
353
|
+
/** @deprecated use colors.status.warning.fill */
|
|
354
|
+
warning: '#ffefb4'
|
|
340
355
|
};
|
|
356
|
+
// ─── Deprecated compat aliases ────────────────────────────────────────────────
|
|
357
|
+
// Keep old top-level keys so consumer repos don't break on upgrade.
|
|
358
|
+
// Remove these in the next major version.
|
|
359
|
+
/** @deprecated use colors.text.* and colors.surface.canvas */
|
|
360
|
+
var label = {
|
|
361
|
+
primary: {
|
|
362
|
+
light: text.primary,
|
|
363
|
+
dark: text.onAccent
|
|
364
|
+
},
|
|
365
|
+
secondary: {
|
|
366
|
+
light: text.secondary
|
|
367
|
+
},
|
|
368
|
+
tertiary: {
|
|
369
|
+
light: text.tertiary,
|
|
370
|
+
dark: '#EBEBF52E'
|
|
371
|
+
},
|
|
372
|
+
error: text.danger
|
|
373
|
+
};
|
|
374
|
+
/** @deprecated use colors.fill.dark.subtle / colors.fill.dark.strong */
|
|
375
|
+
var blur = {
|
|
376
|
+
quaternary: {
|
|
377
|
+
dark: fill.dark.subtle
|
|
378
|
+
},
|
|
379
|
+
tertiary: {
|
|
380
|
+
dark: fill.dark.strong
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
/** @deprecated colors.semantic.* was a parallel action palette — use colors.action / colors.status instead */
|
|
341
384
|
var semantic = {
|
|
342
385
|
action: '#488ef7',
|
|
343
386
|
success: '#5fcf65',
|
|
@@ -345,18 +388,28 @@ var semantic = {
|
|
|
345
388
|
error: '#f96057'
|
|
346
389
|
};
|
|
347
390
|
var colors = {
|
|
348
|
-
|
|
349
|
-
|
|
391
|
+
// canonical
|
|
392
|
+
text: text,
|
|
393
|
+
surface: surface,
|
|
394
|
+
action: action,
|
|
395
|
+
status: status,
|
|
350
396
|
border: border,
|
|
351
397
|
fill: fill,
|
|
398
|
+
// deprecated compat
|
|
399
|
+
label: label,
|
|
400
|
+
blur: blur,
|
|
352
401
|
semantic: semantic,
|
|
402
|
+
// misc
|
|
353
403
|
transparent: 'transparent',
|
|
354
404
|
current: 'currentColor',
|
|
355
405
|
black: '#000000',
|
|
356
406
|
white: '#FFFFFF',
|
|
407
|
+
/** @deprecated */
|
|
357
408
|
lightBlue: '#29abe2',
|
|
358
409
|
coolGray: '#F6F7FB',
|
|
410
|
+
/** @deprecated */
|
|
359
411
|
darkBlue: '#292f4c',
|
|
412
|
+
/** @deprecated */
|
|
360
413
|
backdrop: '#fbfcff',
|
|
361
414
|
whiteAlpha: {
|
|
362
415
|
50: 'rgba(255, 255, 255, 0.04)',
|
|
@@ -399,6 +452,8 @@ var colors = {
|
|
|
399
452
|
green: green,
|
|
400
453
|
blue: blue
|
|
401
454
|
};
|
|
455
|
+
/** Canonical alias — prefer this over `colors` for new code */
|
|
456
|
+
var tokens = colors;
|
|
402
457
|
|
|
403
458
|
/**
|
|
404
459
|
* A functional React component utilized to render the `Icon` for the `Breadcrumbs` component.
|
|
@@ -411,17 +466,17 @@ var Icon = function Icon(_ref) {
|
|
|
411
466
|
case 'active':
|
|
412
467
|
return {
|
|
413
468
|
bg: '#0082FF',
|
|
414
|
-
color: colors.
|
|
469
|
+
color: colors.text.onAccent
|
|
415
470
|
};
|
|
416
471
|
case 'complete':
|
|
417
472
|
return {
|
|
418
473
|
bg: '#7474800D',
|
|
419
|
-
color: colors.
|
|
474
|
+
color: colors.text.primary
|
|
420
475
|
};
|
|
421
476
|
case 'inactive':
|
|
422
477
|
return {
|
|
423
478
|
bg: '#7474800D',
|
|
424
|
-
color: colors.
|
|
479
|
+
color: colors.text.primary
|
|
425
480
|
};
|
|
426
481
|
}
|
|
427
482
|
}, [status]);
|
|
@@ -445,7 +500,7 @@ var Label = function Label(_ref) {
|
|
|
445
500
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
446
501
|
pl: "8px"
|
|
447
502
|
}, /*#__PURE__*/React__default.createElement(Text$2, {
|
|
448
|
-
color: colors.
|
|
503
|
+
color: colors.text.primary,
|
|
449
504
|
fontSize: "13px"
|
|
450
505
|
}, label));
|
|
451
506
|
};
|
|
@@ -521,7 +576,8 @@ var typography = {
|
|
|
521
576
|
black: 900
|
|
522
577
|
},
|
|
523
578
|
fonts: {
|
|
524
|
-
|
|
579
|
+
heading: "proxima-nova, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"",
|
|
580
|
+
body: "proxima-nova, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"",
|
|
525
581
|
mono: "SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace"
|
|
526
582
|
},
|
|
527
583
|
fontSizes: {
|
|
@@ -546,18 +602,20 @@ var Card = function Card(_ref) {
|
|
|
546
602
|
leftIcon = _ref.leftIcon,
|
|
547
603
|
children = _ref.children,
|
|
548
604
|
_ref$height = _ref.height,
|
|
549
|
-
height = _ref$height === void 0 ? 'auto' : _ref$height
|
|
605
|
+
height = _ref$height === void 0 ? 'auto' : _ref$height,
|
|
606
|
+
_ref$width = _ref.width,
|
|
607
|
+
width = _ref$width === void 0 ? '206px' : _ref$width;
|
|
550
608
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
551
609
|
bg: colors.fill.light.quaternary,
|
|
552
610
|
borderRadius: "4px",
|
|
553
611
|
border: ".5px solid " + colors.border["default"],
|
|
554
|
-
py:
|
|
555
|
-
px:
|
|
612
|
+
py: 2,
|
|
613
|
+
px: 2,
|
|
556
614
|
height: height,
|
|
557
615
|
overflowY: "auto",
|
|
558
|
-
width:
|
|
616
|
+
width: width,
|
|
559
617
|
_notLast: {
|
|
560
|
-
marginBottom:
|
|
618
|
+
marginBottom: 2
|
|
561
619
|
}
|
|
562
620
|
}, title && /*#__PURE__*/React__default.createElement(Flex, {
|
|
563
621
|
display: "flex",
|
|
@@ -567,13 +625,13 @@ var Card = function Card(_ref) {
|
|
|
567
625
|
_hover: {
|
|
568
626
|
textDecoration: 'none'
|
|
569
627
|
},
|
|
570
|
-
mb:
|
|
628
|
+
mb: 2
|
|
571
629
|
}, /*#__PURE__*/React__default.createElement(Flex, {
|
|
572
630
|
alignItems: "center"
|
|
573
631
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
574
|
-
mr:
|
|
632
|
+
mr: 1
|
|
575
633
|
}, leftIcon), /*#__PURE__*/React__default.createElement(Text$2, {
|
|
576
|
-
color: colors.
|
|
634
|
+
color: colors.text.primary,
|
|
577
635
|
fontSize: typography.fontSizes.sm,
|
|
578
636
|
fontWeight: typography.fontWeights.medium
|
|
579
637
|
}, title))), Children.map(children, function (child) {
|
|
@@ -584,15 +642,15 @@ var Card = function Card(_ref) {
|
|
|
584
642
|
return /*#__PURE__*/React__default.createElement(Text$2, {
|
|
585
643
|
as: "div",
|
|
586
644
|
_notLast: {
|
|
587
|
-
marginBottom:
|
|
645
|
+
marginBottom: 2
|
|
588
646
|
},
|
|
589
|
-
color: colors.
|
|
647
|
+
color: colors.text.primary,
|
|
590
648
|
fontSize: typography.fontSizes.xs,
|
|
591
649
|
fontWeight: typography.fontWeights.normal
|
|
592
650
|
}, child);
|
|
593
651
|
} else {
|
|
594
652
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
595
|
-
mt:
|
|
653
|
+
mt: 2
|
|
596
654
|
}, child);
|
|
597
655
|
}
|
|
598
656
|
}));
|
|
@@ -745,6 +803,33 @@ var SpinnerButton = function SpinnerButton(_ref) {
|
|
|
745
803
|
}, text);
|
|
746
804
|
};
|
|
747
805
|
|
|
806
|
+
function _extends$6() {
|
|
807
|
+
_extends$6 = Object.assign ? Object.assign.bind() : function (target) {
|
|
808
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
809
|
+
var source = arguments[i];
|
|
810
|
+
for (var key in source) {
|
|
811
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
812
|
+
target[key] = source[key];
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
return target;
|
|
817
|
+
};
|
|
818
|
+
return _extends$6.apply(this, arguments);
|
|
819
|
+
}
|
|
820
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
821
|
+
if (source == null) return {};
|
|
822
|
+
var target = {};
|
|
823
|
+
var sourceKeys = Object.keys(source);
|
|
824
|
+
var key, i;
|
|
825
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
826
|
+
key = sourceKeys[i];
|
|
827
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
828
|
+
target[key] = source[key];
|
|
829
|
+
}
|
|
830
|
+
return target;
|
|
831
|
+
}
|
|
832
|
+
|
|
748
833
|
/**
|
|
749
834
|
* A functional React component utilized to render the `Form` component, a form wrapper for
|
|
750
835
|
* `react-hook-form`. The `Form` component is provided a `formHandler` and is used to wrap a container
|
|
@@ -755,7 +840,7 @@ function Form(_ref) {
|
|
|
755
840
|
children = _ref.children;
|
|
756
841
|
var form = formHandler.form,
|
|
757
842
|
onSubmit = formHandler.onSubmit;
|
|
758
|
-
return /*#__PURE__*/React__default.createElement(FormProvider,
|
|
843
|
+
return /*#__PURE__*/React__default.createElement(FormProvider, _extends$6({}, form), /*#__PURE__*/React__default.createElement("form", {
|
|
759
844
|
onSubmit: onSubmit
|
|
760
845
|
}, children));
|
|
761
846
|
}
|
|
@@ -786,33 +871,6 @@ var StackedCheckbox = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
|
|
|
786
871
|
}, label));
|
|
787
872
|
});
|
|
788
873
|
|
|
789
|
-
function _extends$6() {
|
|
790
|
-
_extends$6 = Object.assign ? Object.assign.bind() : function (target) {
|
|
791
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
792
|
-
var source = arguments[i];
|
|
793
|
-
for (var key in source) {
|
|
794
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
795
|
-
target[key] = source[key];
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
return target;
|
|
800
|
-
};
|
|
801
|
-
return _extends$6.apply(this, arguments);
|
|
802
|
-
}
|
|
803
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
804
|
-
if (source == null) return {};
|
|
805
|
-
var target = {};
|
|
806
|
-
var sourceKeys = Object.keys(source);
|
|
807
|
-
var key, i;
|
|
808
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
809
|
-
key = sourceKeys[i];
|
|
810
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
811
|
-
target[key] = source[key];
|
|
812
|
-
}
|
|
813
|
-
return target;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
874
|
var _excluded = ["type", "isRequired", "rightElement", "leftElement", "defaultValue", "variant", "label"];
|
|
817
875
|
/**
|
|
818
876
|
* A functional React component utilized to render the `StackedInput` component.
|
|
@@ -830,7 +888,7 @@ var StackedInput = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref)
|
|
|
830
888
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded);
|
|
831
889
|
var isMobile = variant === 'mobile';
|
|
832
890
|
var placeholder = isMobile && label ? label : undefined;
|
|
833
|
-
return /*#__PURE__*/React__default.createElement(InputGroup, null, leftElement && leftElement, label, /*#__PURE__*/React__default.createElement(Input$2,
|
|
891
|
+
return /*#__PURE__*/React__default.createElement(InputGroup, null, leftElement && leftElement, label, /*#__PURE__*/React__default.createElement(Input$2, _extends$6({}, props, {
|
|
834
892
|
placeholder: (_props$placeholder = props.placeholder) != null ? _props$placeholder : placeholder,
|
|
835
893
|
type: type,
|
|
836
894
|
isRequired: isRequired,
|
|
@@ -884,7 +942,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
884
942
|
px: "8px",
|
|
885
943
|
py: "4px",
|
|
886
944
|
width: "100%",
|
|
887
|
-
color: colors.
|
|
945
|
+
color: colors.text.primary,
|
|
888
946
|
bg: "inherit",
|
|
889
947
|
whiteSpace: "nowrap"
|
|
890
948
|
}, /*#__PURE__*/React__default.createElement(Flex, {
|
|
@@ -902,7 +960,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
902
960
|
px: "8px",
|
|
903
961
|
py: "4px",
|
|
904
962
|
width: "100%",
|
|
905
|
-
color: colors.
|
|
963
|
+
color: colors.text.primary,
|
|
906
964
|
bg: "inherit",
|
|
907
965
|
whiteSpace: "nowrap"
|
|
908
966
|
}, "No options");
|
|
@@ -913,7 +971,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
913
971
|
width: "100%",
|
|
914
972
|
role: "combobox"
|
|
915
973
|
}, option.value === 'section_header' && options[idx + 1] && options[idx + 1].value !== 'section_header' && /*#__PURE__*/React__default.createElement(Box, {
|
|
916
|
-
color: colors.
|
|
974
|
+
color: colors.text.secondary,
|
|
917
975
|
fontSize: "13px",
|
|
918
976
|
width: "100%",
|
|
919
977
|
fontWeight: "bold",
|
|
@@ -936,14 +994,14 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
936
994
|
px: "8px",
|
|
937
995
|
py: "4px",
|
|
938
996
|
width: "100%",
|
|
939
|
-
color: optionIndex === idx ? colors.
|
|
997
|
+
color: optionIndex === idx ? colors.text.onAccent : colors.text.primary,
|
|
940
998
|
_hover: {
|
|
941
|
-
color: colors.
|
|
942
|
-
bg: colors.
|
|
999
|
+
color: colors.text.onAccent,
|
|
1000
|
+
bg: colors.action.solid,
|
|
943
1001
|
borderRadius: '4px',
|
|
944
1002
|
width: '100%'
|
|
945
1003
|
},
|
|
946
|
-
bg: optionIndex === idx ? colors.
|
|
1004
|
+
bg: optionIndex === idx ? colors.action.solid : 'inherit',
|
|
947
1005
|
whiteSpace: "nowrap",
|
|
948
1006
|
id: option.value
|
|
949
1007
|
}, option.label));
|
|
@@ -1187,7 +1245,7 @@ var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
|
|
|
1187
1245
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
1188
1246
|
ref: dropdownRef,
|
|
1189
1247
|
position: "relative"
|
|
1190
|
-
}, /*#__PURE__*/React__default.createElement(InputGroup, null, /*#__PURE__*/React__default.createElement(Input$2,
|
|
1248
|
+
}, /*#__PURE__*/React__default.createElement(InputGroup, null, /*#__PURE__*/React__default.createElement(Input$2, _extends$6({
|
|
1191
1249
|
isRequired: isRequired
|
|
1192
1250
|
}, props, {
|
|
1193
1251
|
ref: _ref,
|
|
@@ -1229,7 +1287,7 @@ var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
|
|
|
1229
1287
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded$2);
|
|
1230
1288
|
var isMobile = variant === 'mobile';
|
|
1231
1289
|
if (isMobile) {
|
|
1232
|
-
return /*#__PURE__*/React__default.createElement(Flex, null, /*#__PURE__*/React__default.createElement(Textarea$1,
|
|
1290
|
+
return /*#__PURE__*/React__default.createElement(Flex, null, /*#__PURE__*/React__default.createElement(Textarea$1, _extends$6({
|
|
1233
1291
|
ref: _ref
|
|
1234
1292
|
}, props, {
|
|
1235
1293
|
variant: variant,
|
|
@@ -1237,7 +1295,7 @@ var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
|
|
|
1237
1295
|
placeholder: label != null ? label : ''
|
|
1238
1296
|
})));
|
|
1239
1297
|
}
|
|
1240
|
-
return /*#__PURE__*/React__default.createElement(Textarea$1,
|
|
1298
|
+
return /*#__PURE__*/React__default.createElement(Textarea$1, _extends$6({
|
|
1241
1299
|
ref: _ref
|
|
1242
1300
|
}, props, {
|
|
1243
1301
|
variant: variant,
|
|
@@ -1317,7 +1375,7 @@ var Token = function Token(_ref) {
|
|
|
1317
1375
|
}, /*#__PURE__*/React__default.createElement(Text$2, {
|
|
1318
1376
|
whiteSpace: "nowrap",
|
|
1319
1377
|
wordBreak: "break-word",
|
|
1320
|
-
color: colors.
|
|
1378
|
+
color: colors.text.primary,
|
|
1321
1379
|
fontSize: isMobile ? '17px' : '13px',
|
|
1322
1380
|
lineHeight: "1.5",
|
|
1323
1381
|
pr: "2px",
|
|
@@ -1362,6 +1420,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1362
1420
|
var dropdownMenuRef = useRef(null);
|
|
1363
1421
|
var scrollRef = useRef(null);
|
|
1364
1422
|
var inputRef = useRef(null);
|
|
1423
|
+
var searchRef = useRef(null);
|
|
1365
1424
|
var _useState = useState(false),
|
|
1366
1425
|
isInit = _useState[0],
|
|
1367
1426
|
setIsInit = _useState[1];
|
|
@@ -1538,6 +1597,10 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1538
1597
|
return element.label.toLowerCase().includes(searchValue.toLowerCase());
|
|
1539
1598
|
}));
|
|
1540
1599
|
}, [localOptions, searchValue]);
|
|
1600
|
+
useEffect(function () {
|
|
1601
|
+
var _searchRef$current;
|
|
1602
|
+
if (isFocussed) (_searchRef$current = searchRef.current) == null ? void 0 : _searchRef$current.focus();
|
|
1603
|
+
}, [isFocussed]);
|
|
1541
1604
|
var handleInput = function handleInput(e) {
|
|
1542
1605
|
var _filteredOptions$;
|
|
1543
1606
|
var initialOptionIndex = ((_filteredOptions$ = filteredOptions[0]) == null ? void 0 : _filteredOptions$.value) === 'section_header' ? 1 : 0;
|
|
@@ -1600,7 +1663,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1600
1663
|
}
|
|
1601
1664
|
}));
|
|
1602
1665
|
}) : /*#__PURE__*/React__default.createElement(Text$2, {
|
|
1603
|
-
color: colors.
|
|
1666
|
+
color: colors.text.secondary,
|
|
1604
1667
|
fontSize: "13px"
|
|
1605
1668
|
}, placeholder)), /*#__PURE__*/React__default.createElement(Input$2, {
|
|
1606
1669
|
padding: 0,
|
|
@@ -1631,7 +1694,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1631
1694
|
optionIndex: optionIndex,
|
|
1632
1695
|
loading: loadingOptions
|
|
1633
1696
|
}, /*#__PURE__*/React__default.createElement(Input$2, {
|
|
1634
|
-
|
|
1697
|
+
ref: searchRef,
|
|
1635
1698
|
value: searchValue,
|
|
1636
1699
|
onChange: handleInput,
|
|
1637
1700
|
disabled: loadingOptions
|
|
@@ -1682,11 +1745,11 @@ var StackedNumberInput = /*#__PURE__*/React__default.forwardRef(function (_ref,
|
|
|
1682
1745
|
max: max,
|
|
1683
1746
|
step: step,
|
|
1684
1747
|
precision: precision,
|
|
1685
|
-
onChange: function onChange(
|
|
1748
|
+
onChange: function onChange(valueAsString, valueAsNumber) {
|
|
1686
1749
|
return _onChange == null ? void 0 : _onChange({
|
|
1687
1750
|
target: {
|
|
1688
1751
|
name: name,
|
|
1689
|
-
value: Number.isNaN(valueAsNumber) ? '' : precision === 0 ? String(Math.round(valueAsNumber)) :
|
|
1752
|
+
value: Number.isNaN(valueAsNumber) ? '' : precision === 0 ? String(Math.round(valueAsNumber)) : valueAsString
|
|
1690
1753
|
}
|
|
1691
1754
|
});
|
|
1692
1755
|
},
|
|
@@ -1976,7 +2039,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1976
2039
|
truncateLength: truncatePillLength
|
|
1977
2040
|
}));
|
|
1978
2041
|
}) : null, !lastestFormValueToArray.length && !isFocussed ? /*#__PURE__*/React__default.createElement(Text$2, {
|
|
1979
|
-
color: colors.
|
|
2042
|
+
color: colors.text.secondary,
|
|
1980
2043
|
fontSize: isMobile ? '17px' : '13px',
|
|
1981
2044
|
pointerEvents: "none"
|
|
1982
2045
|
}, placeholder) : null, !disabled && !scrollMode && /*#__PURE__*/React__default.createElement(Flex, {
|
|
@@ -1990,7 +2053,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1990
2053
|
"float": "right",
|
|
1991
2054
|
border: "none",
|
|
1992
2055
|
height: "auto",
|
|
1993
|
-
color: tokenIndex !== null ? 'transparent' : colors.
|
|
2056
|
+
color: tokenIndex !== null ? 'transparent' : colors.text.primary,
|
|
1994
2057
|
_focus: {
|
|
1995
2058
|
boxShadow: 'none !important'
|
|
1996
2059
|
},
|
|
@@ -2000,6 +2063,10 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
2000
2063
|
onFocus: function onFocus() {
|
|
2001
2064
|
return setIsFocussed(true);
|
|
2002
2065
|
},
|
|
2066
|
+
onBlur: function onBlur() {
|
|
2067
|
+
setIsFocussed(false);
|
|
2068
|
+
setTokenIndex(null);
|
|
2069
|
+
},
|
|
2003
2070
|
fontSize: isMobile ? '17px' : '13px',
|
|
2004
2071
|
lineHeight: 1.5,
|
|
2005
2072
|
placeholder: isMobile && label && lastestFormValueToArray.length === 0 ? label : '',
|
|
@@ -2018,7 +2085,7 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
2018
2085
|
"float": "right",
|
|
2019
2086
|
border: "none",
|
|
2020
2087
|
height: "auto",
|
|
2021
|
-
color: tokenIndex !== null ? 'transparent' : colors.
|
|
2088
|
+
color: tokenIndex !== null ? 'transparent' : colors.text.primary,
|
|
2022
2089
|
_focus: {
|
|
2023
2090
|
boxShadow: 'none !important'
|
|
2024
2091
|
},
|
|
@@ -2028,6 +2095,10 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
2028
2095
|
onFocus: function onFocus() {
|
|
2029
2096
|
return setIsFocussed(true);
|
|
2030
2097
|
},
|
|
2098
|
+
onBlur: function onBlur() {
|
|
2099
|
+
setIsFocussed(false);
|
|
2100
|
+
setTokenIndex(null);
|
|
2101
|
+
},
|
|
2031
2102
|
placeholder: isMobile && label && lastestFormValueToArray.length === 0 ? label : '',
|
|
2032
2103
|
variant: variant,
|
|
2033
2104
|
style: isMobile ? {
|
|
@@ -2072,7 +2143,7 @@ var Label$1 = function Label(_ref) {
|
|
|
2072
2143
|
ml: "0"
|
|
2073
2144
|
}, label, isRequired && /*#__PURE__*/React__default.createElement(Box, {
|
|
2074
2145
|
ml: 1,
|
|
2075
|
-
color: colors.
|
|
2146
|
+
color: colors.text.danger
|
|
2076
2147
|
}, "*"), !!tooltipText && /*#__PURE__*/React__default.createElement(Popover$1, {
|
|
2077
2148
|
trigger: "hover",
|
|
2078
2149
|
placement: "top"
|
|
@@ -2081,7 +2152,7 @@ var Label$1 = function Label(_ref) {
|
|
|
2081
2152
|
}, /*#__PURE__*/React__default.createElement(QuestionIcon, {
|
|
2082
2153
|
boxSize: "13px",
|
|
2083
2154
|
ml: 1,
|
|
2084
|
-
color: colors.
|
|
2155
|
+
color: colors.action.solid
|
|
2085
2156
|
}))), /*#__PURE__*/React__default.createElement(PopoverContent, null, /*#__PURE__*/React__default.createElement(PopoverArrow, null), /*#__PURE__*/React__default.createElement(PopoverBody, null, tooltipText))));
|
|
2086
2157
|
};
|
|
2087
2158
|
|
|
@@ -2319,7 +2390,7 @@ function Input(_ref) {
|
|
|
2319
2390
|
id: name,
|
|
2320
2391
|
isInvalid: isInvalid,
|
|
2321
2392
|
position: "relative",
|
|
2322
|
-
py: !nonLabeledInputs.includes(inputType) && variant !== 'mobile' && label || helperText
|
|
2393
|
+
py: !nonLabeledInputs.includes(inputType) && variant !== 'mobile' && label || helperText ? 5 : 0
|
|
2323
2394
|
}, label && !nonLabeledInputs.includes(inputType) && variant !== 'mobile' && /*#__PURE__*/React__default.createElement(Label$1, {
|
|
2324
2395
|
tooltipText: tooltipText,
|
|
2325
2396
|
label: label,
|
|
@@ -2441,7 +2512,7 @@ var ChevronDown = function ChevronDown(_ref) {
|
|
|
2441
2512
|
return /*#__PURE__*/React__default.createElement(Memo$9, {
|
|
2442
2513
|
width: boxSize,
|
|
2443
2514
|
height: boxSize,
|
|
2444
|
-
fill: colors.
|
|
2515
|
+
fill: colors.action.solid
|
|
2445
2516
|
});
|
|
2446
2517
|
};
|
|
2447
2518
|
|
|
@@ -2972,7 +3043,7 @@ var Settings = function Settings(_ref) {
|
|
|
2972
3043
|
return /*#__PURE__*/React__default.createElement(Memo$o, {
|
|
2973
3044
|
width: boxSize,
|
|
2974
3045
|
height: boxSize,
|
|
2975
|
-
fill: colors.
|
|
3046
|
+
fill: colors.action.solid
|
|
2976
3047
|
});
|
|
2977
3048
|
};
|
|
2978
3049
|
|
|
@@ -3310,7 +3381,7 @@ var GearIcon = function GearIcon(_ref) {
|
|
|
3310
3381
|
var boxSize = _ref.boxSize,
|
|
3311
3382
|
color = _ref.color,
|
|
3312
3383
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
3313
|
-
return /*#__PURE__*/React__default.createElement(Box,
|
|
3384
|
+
return /*#__PURE__*/React__default.createElement(Box, _extends$6({}, props), /*#__PURE__*/React__default.createElement("svg", _extends$6({
|
|
3314
3385
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3315
3386
|
width: boxSize != null ? boxSize : 16,
|
|
3316
3387
|
height: boxSize != null ? boxSize : 17,
|
|
@@ -3344,22 +3415,6 @@ function SelectNative(_ref) {
|
|
|
3344
3415
|
onChange = _ref.onChange,
|
|
3345
3416
|
setValue = _ref.setValue,
|
|
3346
3417
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
3347
|
-
// const [selectedOption, setSelectedOption] = useState(
|
|
3348
|
-
// options ? options[0] ?? '' : ''
|
|
3349
|
-
// );
|
|
3350
|
-
var style = {
|
|
3351
|
-
cursor: 'pointer',
|
|
3352
|
-
color: 'var(--chakra-colors-blue-500)',
|
|
3353
|
-
height: '48px',
|
|
3354
|
-
fontSize: '17px',
|
|
3355
|
-
lineHeight: '20px',
|
|
3356
|
-
fontWeight: 400,
|
|
3357
|
-
padding: '12px 16px 12px 0px',
|
|
3358
|
-
borderRadius: 0,
|
|
3359
|
-
border: '0.5px solid rgba(153, 153, 153, 0.1)',
|
|
3360
|
-
borderLeft: 'none',
|
|
3361
|
-
borderRight: 'none'
|
|
3362
|
-
};
|
|
3363
3418
|
var handleOnSelectItem = function handleOnSelectItem(e) {
|
|
3364
3419
|
var selectedValue = e.target.value;
|
|
3365
3420
|
var selectedOption = options == null ? void 0 : options.find(function (_ref2) {
|
|
@@ -3391,14 +3446,13 @@ function SelectNative(_ref) {
|
|
|
3391
3446
|
isInvalid: isInvalid,
|
|
3392
3447
|
position: "relative",
|
|
3393
3448
|
py: 0
|
|
3394
|
-
}, /*#__PURE__*/React__default.createElement(Select$1,
|
|
3449
|
+
}, /*#__PURE__*/React__default.createElement(Select$1, _extends$6({}, props, {
|
|
3395
3450
|
required: isRequired,
|
|
3396
3451
|
ref: ref,
|
|
3397
3452
|
value: value,
|
|
3398
3453
|
disabled: disabled != null ? disabled : false,
|
|
3399
3454
|
onChange: handleOnSelectItem,
|
|
3400
|
-
defaultValue: defaultValue
|
|
3401
|
-
style: style
|
|
3455
|
+
defaultValue: defaultValue
|
|
3402
3456
|
}), options && options.map(function (i) {
|
|
3403
3457
|
return /*#__PURE__*/React__default.createElement("option", {
|
|
3404
3458
|
value: i.value,
|
|
@@ -3524,7 +3578,7 @@ var Link = function Link(_ref) {
|
|
|
3524
3578
|
}, getIcon, /*#__PURE__*/React__default.createElement(Text$2, {
|
|
3525
3579
|
variant: "description-large",
|
|
3526
3580
|
pl: "2px",
|
|
3527
|
-
color: colors.
|
|
3581
|
+
color: colors.action.solid
|
|
3528
3582
|
}, text));
|
|
3529
3583
|
};
|
|
3530
3584
|
|
|
@@ -3548,7 +3602,7 @@ var LoadingIndicator = function LoadingIndicator(_ref) {
|
|
|
3548
3602
|
className: "loading-indicator " + (className != null ? className : '')
|
|
3549
3603
|
}, /*#__PURE__*/React__default.createElement(Spinner, {
|
|
3550
3604
|
size: size,
|
|
3551
|
-
color: colors.
|
|
3605
|
+
color: colors.action.solid,
|
|
3552
3606
|
flex: "none",
|
|
3553
3607
|
thickness: thickness,
|
|
3554
3608
|
speed: speed,
|
|
@@ -3587,7 +3641,7 @@ var NavigationMenuHeader = function NavigationMenuHeader(_ref) {
|
|
|
3587
3641
|
height: "26px",
|
|
3588
3642
|
width: "204px",
|
|
3589
3643
|
fontSize: "12px",
|
|
3590
|
-
color: colors.
|
|
3644
|
+
color: colors.text.secondary
|
|
3591
3645
|
}, label);
|
|
3592
3646
|
};
|
|
3593
3647
|
|
|
@@ -3619,7 +3673,7 @@ var NavigationMenuItem = function NavigationMenuItem(_ref) {
|
|
|
3619
3673
|
isExternal: true
|
|
3620
3674
|
});
|
|
3621
3675
|
}
|
|
3622
|
-
return /*#__PURE__*/React__default.createElement(Link$2,
|
|
3676
|
+
return /*#__PURE__*/React__default.createElement(Link$2, _extends$6({}, reactRouterLinkProps, additionalProps, {
|
|
3623
3677
|
onClick: onClick,
|
|
3624
3678
|
display: "flex",
|
|
3625
3679
|
alignItems: "center",
|
|
@@ -3628,7 +3682,7 @@ var NavigationMenuItem = function NavigationMenuItem(_ref) {
|
|
|
3628
3682
|
px: "4px",
|
|
3629
3683
|
height: "26px",
|
|
3630
3684
|
width: "204px",
|
|
3631
|
-
color: colors.
|
|
3685
|
+
color: colors.text.primary,
|
|
3632
3686
|
bg: isSelected ? colors.fill.light.quaternary : 'transparent',
|
|
3633
3687
|
borderRadius: "4px",
|
|
3634
3688
|
fontSize: "13px",
|
|
@@ -3679,7 +3733,7 @@ var NavigationMenu = function NavigationMenu(_ref) {
|
|
|
3679
3733
|
}, menuItemGroup.groupHeader && /*#__PURE__*/React__default.createElement(NavigationMenuHeader, {
|
|
3680
3734
|
label: menuItemGroup.groupHeader
|
|
3681
3735
|
}), menuItemGroup.groupMenuItems.map(function (item, idx) {
|
|
3682
|
-
return /*#__PURE__*/React__default.createElement(NavigationMenuItem,
|
|
3736
|
+
return /*#__PURE__*/React__default.createElement(NavigationMenuItem, _extends$6({}, item, {
|
|
3683
3737
|
key: idx,
|
|
3684
3738
|
isSelected: _selectedMenuItem === item.label,
|
|
3685
3739
|
onClick: function onClick() {
|
|
@@ -3687,7 +3741,7 @@ var NavigationMenu = function NavigationMenu(_ref) {
|
|
|
3687
3741
|
}
|
|
3688
3742
|
}));
|
|
3689
3743
|
}));
|
|
3690
|
-
}), bottomMenuItem && /*#__PURE__*/React__default.createElement(NavigationMenuItem,
|
|
3744
|
+
}), bottomMenuItem && /*#__PURE__*/React__default.createElement(NavigationMenuItem, _extends$6({}, bottomMenuItem, {
|
|
3691
3745
|
key: bottomMenuItem.label,
|
|
3692
3746
|
isSelected: true,
|
|
3693
3747
|
onClick: function onClick() {
|
|
@@ -3721,14 +3775,14 @@ var TableLoadingRows = function TableLoadingRows(_ref) {
|
|
|
3721
3775
|
borderTopColor: colors.fill.light.quaternary
|
|
3722
3776
|
}, isLoading ? /*#__PURE__*/React__default.createElement(Spinner, {
|
|
3723
3777
|
size: "lg",
|
|
3724
|
-
color: colors.
|
|
3778
|
+
color: colors.action.solid
|
|
3725
3779
|
}) : /*#__PURE__*/React__default.createElement(IconButton, {
|
|
3726
3780
|
"aria-label": "Fetch more rows",
|
|
3727
3781
|
icon: /*#__PURE__*/React__default.createElement(HiOutlineRefresh, null),
|
|
3728
3782
|
fontSize: typography.fontSizes['3xl'],
|
|
3729
3783
|
bg: "transparent",
|
|
3730
3784
|
shadow: "none",
|
|
3731
|
-
color: colors.
|
|
3785
|
+
color: colors.action.solid,
|
|
3732
3786
|
type: "button",
|
|
3733
3787
|
variant: "outline",
|
|
3734
3788
|
onClick: onLoadMore
|
|
@@ -3808,7 +3862,7 @@ function SimpleTable(_ref) {
|
|
|
3808
3862
|
}
|
|
3809
3863
|
}, (headers || columnsWidths) && /*#__PURE__*/React__default.createElement(Thead, null, /*#__PURE__*/React__default.createElement(Tr, {
|
|
3810
3864
|
_odd: {
|
|
3811
|
-
bg: colors.
|
|
3865
|
+
bg: colors.surface.canvas
|
|
3812
3866
|
}
|
|
3813
3867
|
}, columnsAsConst.map(function (column, idx) {
|
|
3814
3868
|
return /*#__PURE__*/React__default.createElement(Th, {
|
|
@@ -3896,9 +3950,9 @@ var shadows = {
|
|
|
3896
3950
|
lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
|
|
3897
3951
|
xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
|
|
3898
3952
|
'2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',
|
|
3899
|
-
insetOutline: "inset 0 0 0 2px " + colors.
|
|
3900
|
-
outline: "0 0 0 2px " + colors.
|
|
3901
|
-
outlineDanger600: "0 0 0 2px " + colors.
|
|
3953
|
+
insetOutline: "inset 0 0 0 2px " + colors.action.solid,
|
|
3954
|
+
outline: "0 0 0 2px " + colors.action.solid,
|
|
3955
|
+
outlineDanger600: "0 0 0 2px " + colors.action.danger,
|
|
3902
3956
|
inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
|
|
3903
3957
|
none: 'none',
|
|
3904
3958
|
'dark-lg': 'rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px'
|
|
@@ -3914,28 +3968,28 @@ var baseStyle = {
|
|
|
3914
3968
|
width: '100%',
|
|
3915
3969
|
fontSize: '13px',
|
|
3916
3970
|
textAlign: 'left',
|
|
3917
|
-
color: colors.
|
|
3971
|
+
color: colors.text.primary,
|
|
3918
3972
|
lineHeight: '16px'
|
|
3919
3973
|
}
|
|
3920
3974
|
};
|
|
3921
3975
|
function variantPositive() {
|
|
3922
3976
|
return {
|
|
3923
3977
|
container: {
|
|
3924
|
-
bg: colors.
|
|
3978
|
+
bg: colors.status.success.fill
|
|
3925
3979
|
}
|
|
3926
3980
|
};
|
|
3927
3981
|
}
|
|
3928
3982
|
function variantWarning() {
|
|
3929
3983
|
return {
|
|
3930
3984
|
container: {
|
|
3931
|
-
bg: colors.
|
|
3985
|
+
bg: colors.status.warning.fill
|
|
3932
3986
|
}
|
|
3933
3987
|
};
|
|
3934
3988
|
}
|
|
3935
3989
|
function variantError() {
|
|
3936
3990
|
return {
|
|
3937
3991
|
container: {
|
|
3938
|
-
bg: colors.fill
|
|
3992
|
+
bg: colors.status.danger.fill
|
|
3939
3993
|
}
|
|
3940
3994
|
};
|
|
3941
3995
|
}
|
|
@@ -4017,8 +4071,8 @@ var baseStyle$2 = /*#__PURE__*/defineStyle({
|
|
|
4017
4071
|
borderRadius: '4px',
|
|
4018
4072
|
fontSize: '13px',
|
|
4019
4073
|
fontWeight: 400,
|
|
4020
|
-
bg: colors.
|
|
4021
|
-
color: colors.
|
|
4074
|
+
bg: colors.action.solid,
|
|
4075
|
+
color: colors.text.onAccent,
|
|
4022
4076
|
h: '26px',
|
|
4023
4077
|
border: 'none',
|
|
4024
4078
|
px: '8px',
|
|
@@ -4032,11 +4086,11 @@ var baseStyle$2 = /*#__PURE__*/defineStyle({
|
|
|
4032
4086
|
pointerEvents: 'none'
|
|
4033
4087
|
},
|
|
4034
4088
|
_hover: {
|
|
4035
|
-
bg: colors.
|
|
4089
|
+
bg: colors.action.solid
|
|
4036
4090
|
},
|
|
4037
4091
|
_active: {
|
|
4038
|
-
color: colors.
|
|
4039
|
-
bg: colors.
|
|
4092
|
+
color: colors.text.onAccent,
|
|
4093
|
+
bg: colors.action.solid,
|
|
4040
4094
|
bgGradient: colors.fill.light.quaternary
|
|
4041
4095
|
},
|
|
4042
4096
|
_focus: {
|
|
@@ -4050,66 +4104,66 @@ var variantPrimary = function variantPrimary() {
|
|
|
4050
4104
|
var variantSecondary = function variantSecondary() {
|
|
4051
4105
|
return _extends$6({}, baseStyle$2, {
|
|
4052
4106
|
color: colors.black,
|
|
4053
|
-
bg: colors.
|
|
4107
|
+
bg: colors.surface.canvas,
|
|
4054
4108
|
_hover: {
|
|
4055
|
-
bg: colors.
|
|
4109
|
+
bg: colors.surface.canvas
|
|
4056
4110
|
},
|
|
4057
4111
|
_active: {
|
|
4058
4112
|
color: colors.black,
|
|
4059
|
-
bg: colors.
|
|
4113
|
+
bg: colors.surface.canvas,
|
|
4060
4114
|
bgGradient: colors.fill.light.quaternary
|
|
4061
4115
|
},
|
|
4062
4116
|
_focus: {
|
|
4063
|
-
bg: colors.
|
|
4117
|
+
bg: colors.surface.canvas
|
|
4064
4118
|
}
|
|
4065
4119
|
});
|
|
4066
4120
|
};
|
|
4067
4121
|
var variantTertiary = function variantTertiary() {
|
|
4068
4122
|
return _extends$6({}, baseStyle$2, {
|
|
4069
|
-
color: colors.
|
|
4070
|
-
bg: colors.
|
|
4123
|
+
color: colors.text.onAccent,
|
|
4124
|
+
bg: colors.fill.dark.subtle,
|
|
4071
4125
|
_hover: {
|
|
4072
|
-
bg: colors.
|
|
4126
|
+
bg: colors.fill.dark.subtle
|
|
4073
4127
|
},
|
|
4074
4128
|
_active: {
|
|
4075
|
-
color: colors.
|
|
4076
|
-
bg: colors.
|
|
4129
|
+
color: colors.text.onAccent,
|
|
4130
|
+
bg: colors.fill.dark.strong
|
|
4077
4131
|
},
|
|
4078
4132
|
_focus: {
|
|
4079
|
-
color: colors.
|
|
4080
|
-
bg: colors.
|
|
4133
|
+
color: colors.text.onAccent,
|
|
4134
|
+
bg: colors.fill.dark.subtle
|
|
4081
4135
|
},
|
|
4082
4136
|
_disabled: {
|
|
4083
|
-
backgroundColor: colors.
|
|
4084
|
-
color:
|
|
4137
|
+
backgroundColor: colors.fill.dark.subtle,
|
|
4138
|
+
color: 'gray.500'
|
|
4085
4139
|
}
|
|
4086
4140
|
});
|
|
4087
4141
|
};
|
|
4088
4142
|
var variantDanger = function variantDanger() {
|
|
4089
4143
|
return _extends$6({}, baseStyle$2, {
|
|
4090
4144
|
fontWeight: '400',
|
|
4091
|
-
color: colors.
|
|
4092
|
-
bg: colors.
|
|
4145
|
+
color: colors.text.onAccent,
|
|
4146
|
+
bg: colors.action.danger,
|
|
4093
4147
|
_hover: {
|
|
4094
|
-
bg: colors.
|
|
4148
|
+
bg: colors.action.danger
|
|
4095
4149
|
},
|
|
4096
4150
|
_active: {
|
|
4097
|
-
color: colors.
|
|
4098
|
-
bg: colors.
|
|
4151
|
+
color: colors.text.onAccent,
|
|
4152
|
+
bg: colors.action.danger
|
|
4099
4153
|
},
|
|
4100
4154
|
_focus: {
|
|
4101
|
-
color: colors.
|
|
4102
|
-
bg: colors.
|
|
4155
|
+
color: colors.text.onAccent,
|
|
4156
|
+
bg: colors.action.danger
|
|
4103
4157
|
},
|
|
4104
4158
|
_disabled: {
|
|
4105
|
-
backgroundColor: colors.
|
|
4106
|
-
color: colors.
|
|
4159
|
+
backgroundColor: colors.action.danger,
|
|
4160
|
+
color: colors.text.secondary
|
|
4107
4161
|
}
|
|
4108
4162
|
});
|
|
4109
4163
|
};
|
|
4110
4164
|
var variantPrimaryFlat = function variantPrimaryFlat() {
|
|
4111
4165
|
return _extends$6({}, baseStyle$2, {
|
|
4112
|
-
bg: colors.
|
|
4166
|
+
bg: colors.action.solid,
|
|
4113
4167
|
bgGradient: null,
|
|
4114
4168
|
minWidth: '120px',
|
|
4115
4169
|
padding: '10px 16px',
|
|
@@ -4130,61 +4184,61 @@ var variantSecondaryFlat = function variantSecondaryFlat() {
|
|
|
4130
4184
|
return _extends$6({}, variantPrimaryFlat(), {
|
|
4131
4185
|
fontWeight: '400',
|
|
4132
4186
|
color: colors.black,
|
|
4133
|
-
bg: colors.
|
|
4187
|
+
bg: colors.surface.canvas,
|
|
4134
4188
|
_hover: {
|
|
4135
|
-
bg: colors.
|
|
4189
|
+
bg: colors.surface.canvas
|
|
4136
4190
|
},
|
|
4137
4191
|
_active: {
|
|
4138
4192
|
color: colors.black,
|
|
4139
|
-
bg: colors.
|
|
4193
|
+
bg: colors.surface.canvas,
|
|
4140
4194
|
bgGradient: colors.fill.light.quaternary
|
|
4141
4195
|
},
|
|
4142
4196
|
_focus: {
|
|
4143
|
-
bg: colors.
|
|
4197
|
+
bg: colors.surface.canvas
|
|
4144
4198
|
}
|
|
4145
4199
|
});
|
|
4146
4200
|
};
|
|
4147
4201
|
var variantTertiaryFlat = function variantTertiaryFlat() {
|
|
4148
4202
|
return _extends$6({}, variantPrimaryFlat(), {
|
|
4149
4203
|
fontWeight: '400',
|
|
4150
|
-
color: colors.
|
|
4151
|
-
bg: colors.
|
|
4204
|
+
color: colors.text.onAccent,
|
|
4205
|
+
bg: colors.fill.dark.subtle,
|
|
4152
4206
|
_hover: {
|
|
4153
|
-
bg: colors.
|
|
4207
|
+
bg: colors.fill.dark.subtle
|
|
4154
4208
|
},
|
|
4155
4209
|
_active: {
|
|
4156
|
-
color: colors.
|
|
4157
|
-
bg: colors.
|
|
4210
|
+
color: colors.text.onAccent,
|
|
4211
|
+
bg: colors.fill.dark.strong
|
|
4158
4212
|
},
|
|
4159
4213
|
_focus: {
|
|
4160
|
-
color: colors.
|
|
4161
|
-
bg: colors.
|
|
4214
|
+
color: colors.text.onAccent,
|
|
4215
|
+
bg: colors.fill.dark.subtle
|
|
4162
4216
|
},
|
|
4163
4217
|
_disabled: {
|
|
4164
|
-
backgroundColor: colors.
|
|
4165
|
-
color:
|
|
4218
|
+
backgroundColor: colors.fill.dark.subtle,
|
|
4219
|
+
color: 'gray.500'
|
|
4166
4220
|
}
|
|
4167
4221
|
});
|
|
4168
4222
|
};
|
|
4169
4223
|
var variantDangerFlat = function variantDangerFlat() {
|
|
4170
4224
|
return _extends$6({}, variantPrimaryFlat(), {
|
|
4171
4225
|
fontWeight: '400',
|
|
4172
|
-
color: colors.
|
|
4173
|
-
bg: colors.
|
|
4226
|
+
color: colors.text.onAccent,
|
|
4227
|
+
bg: colors.action.danger,
|
|
4174
4228
|
_hover: {
|
|
4175
|
-
bg: colors.
|
|
4229
|
+
bg: colors.action.danger
|
|
4176
4230
|
},
|
|
4177
4231
|
_active: {
|
|
4178
|
-
color: colors.
|
|
4179
|
-
bg: colors.
|
|
4232
|
+
color: colors.text.onAccent,
|
|
4233
|
+
bg: colors.action.danger
|
|
4180
4234
|
},
|
|
4181
4235
|
_focus: {
|
|
4182
|
-
color: colors.
|
|
4183
|
-
bg: colors.
|
|
4236
|
+
color: colors.text.onAccent,
|
|
4237
|
+
bg: colors.action.danger
|
|
4184
4238
|
},
|
|
4185
4239
|
_disabled: {
|
|
4186
|
-
backgroundColor: colors.
|
|
4187
|
-
color: colors.
|
|
4240
|
+
backgroundColor: colors.action.danger,
|
|
4241
|
+
color: colors.text.secondary
|
|
4188
4242
|
}
|
|
4189
4243
|
});
|
|
4190
4244
|
};
|
|
@@ -4247,14 +4301,14 @@ var parts$1 = ['requiredIndicator', 'helperText'];
|
|
|
4247
4301
|
function baseStyleRequiredIndicator() {
|
|
4248
4302
|
return {
|
|
4249
4303
|
ml: 1,
|
|
4250
|
-
color: colors.
|
|
4304
|
+
color: colors.text.danger
|
|
4251
4305
|
};
|
|
4252
4306
|
}
|
|
4253
4307
|
function baseStyleHelperText() {
|
|
4254
4308
|
return {
|
|
4255
4309
|
// mt: 1,
|
|
4256
4310
|
ml: 1,
|
|
4257
|
-
color: colors.
|
|
4311
|
+
color: colors.text.secondary,
|
|
4258
4312
|
fontSize: '11px'
|
|
4259
4313
|
};
|
|
4260
4314
|
}
|
|
@@ -4272,10 +4326,8 @@ var Form$1 = {
|
|
|
4272
4326
|
var parts$2 = ['text', 'icon'];
|
|
4273
4327
|
function baseStyleText() {
|
|
4274
4328
|
return {
|
|
4275
|
-
color: colors.
|
|
4276
|
-
|
|
4277
|
-
bottom: 0,
|
|
4278
|
-
// mt: 1,
|
|
4329
|
+
color: colors.text.danger,
|
|
4330
|
+
mt: 1,
|
|
4279
4331
|
ml: 1,
|
|
4280
4332
|
fontSize: '11px'
|
|
4281
4333
|
};
|
|
@@ -4283,7 +4335,7 @@ function baseStyleText() {
|
|
|
4283
4335
|
function baseStyleIcon() {
|
|
4284
4336
|
return {
|
|
4285
4337
|
ml: 1,
|
|
4286
|
-
color: colors.
|
|
4338
|
+
color: colors.text.danger
|
|
4287
4339
|
};
|
|
4288
4340
|
}
|
|
4289
4341
|
var baseStyle$5 = function baseStyle() {
|
|
@@ -4305,7 +4357,7 @@ var baseStyle$6 = {
|
|
|
4305
4357
|
display: 'flex',
|
|
4306
4358
|
ml: 1,
|
|
4307
4359
|
// mb: 1,
|
|
4308
|
-
color: colors.
|
|
4360
|
+
color: colors.text.primary,
|
|
4309
4361
|
opacity: 1
|
|
4310
4362
|
};
|
|
4311
4363
|
var FormLabel = {
|
|
@@ -4318,7 +4370,7 @@ var baseStyle$7 = {
|
|
|
4318
4370
|
fontSize: '13px',
|
|
4319
4371
|
h: '26px',
|
|
4320
4372
|
'::placeholder': {
|
|
4321
|
-
color: colors.
|
|
4373
|
+
color: colors.text.secondary
|
|
4322
4374
|
},
|
|
4323
4375
|
py: '5px',
|
|
4324
4376
|
px: '8px',
|
|
@@ -4328,7 +4380,7 @@ var baseStyle$7 = {
|
|
|
4328
4380
|
opacity: 1,
|
|
4329
4381
|
cursor: 'not-allowed',
|
|
4330
4382
|
bg: colors.fill.light.quaternary,
|
|
4331
|
-
color: colors.
|
|
4383
|
+
color: colors.text.secondary,
|
|
4332
4384
|
border: '1px solid',
|
|
4333
4385
|
borderColor: '#9999991A'
|
|
4334
4386
|
},
|
|
@@ -4338,7 +4390,7 @@ var baseStyle$7 = {
|
|
|
4338
4390
|
borderColor: colors.border.focus
|
|
4339
4391
|
},
|
|
4340
4392
|
_placeholder: {
|
|
4341
|
-
color: colors.
|
|
4393
|
+
color: colors.text.secondary
|
|
4342
4394
|
}
|
|
4343
4395
|
}
|
|
4344
4396
|
};
|
|
@@ -4374,7 +4426,7 @@ var Input$1 = {
|
|
|
4374
4426
|
};
|
|
4375
4427
|
|
|
4376
4428
|
var baseStyle$8 = {
|
|
4377
|
-
color: colors.
|
|
4429
|
+
color: colors.action.solid,
|
|
4378
4430
|
textDecoration: 'underline',
|
|
4379
4431
|
transition: 'none',
|
|
4380
4432
|
_hover: {
|
|
@@ -4385,7 +4437,6 @@ function variantSidebar() {
|
|
|
4385
4437
|
return {
|
|
4386
4438
|
display: 'flex',
|
|
4387
4439
|
alignItems: 'center',
|
|
4388
|
-
// height: '56px',
|
|
4389
4440
|
pl: 4,
|
|
4390
4441
|
pr: 4,
|
|
4391
4442
|
py: 2,
|
|
@@ -4411,20 +4462,13 @@ function variantSidebar() {
|
|
|
4411
4462
|
// and not only for a child sub route match. I did it as a separate variant instead of a
|
|
4412
4463
|
// prop to get around React complaining that the dom element was not recognized.
|
|
4413
4464
|
function variantSidebarExact() {
|
|
4414
|
-
// props: Dict
|
|
4415
4465
|
var base = variantSidebar();
|
|
4416
|
-
// const { theme } = props;
|
|
4417
|
-
// const primaryColor = getColor(theme, 'primary.500');
|
|
4418
4466
|
return _extends$6({}, base, {
|
|
4419
|
-
'&.active': {
|
|
4420
|
-
// ...base['&.active'],
|
|
4421
|
-
// boxShadow: `inset 3px 0 0 0 ${primaryColor}`,
|
|
4422
|
-
}
|
|
4467
|
+
'&.active': {}
|
|
4423
4468
|
});
|
|
4424
4469
|
}
|
|
4425
|
-
function variantSubNavigation(
|
|
4426
|
-
var
|
|
4427
|
-
var primaryColor = getColor(theme, 'primary.500');
|
|
4470
|
+
function variantSubNavigation(_props) {
|
|
4471
|
+
var primaryColor = colors.action.solid;
|
|
4428
4472
|
return {
|
|
4429
4473
|
display: 'block',
|
|
4430
4474
|
pl: 10,
|
|
@@ -4508,7 +4552,7 @@ function baseStyleItem(props) {
|
|
|
4508
4552
|
transition: 'background 50ms ease-in 0s',
|
|
4509
4553
|
_hover: {
|
|
4510
4554
|
color: colors.white,
|
|
4511
|
-
background: colors.
|
|
4555
|
+
background: colors.action.solid
|
|
4512
4556
|
},
|
|
4513
4557
|
_active: {
|
|
4514
4558
|
bg: mode("gray.200", "whiteAlpha.200")(props)
|
|
@@ -4546,30 +4590,34 @@ var Menu$1 = {
|
|
|
4546
4590
|
|
|
4547
4591
|
var parts$5 = ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'];
|
|
4548
4592
|
var baseStyle$a = {
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4593
|
+
overlay: {
|
|
4594
|
+
backdropFilter: 'blur(25px)'
|
|
4595
|
+
},
|
|
4596
|
+
dialog: {
|
|
4597
|
+
width: 'fit-content',
|
|
4598
|
+
height: 'fit-content',
|
|
4599
|
+
background: colors.coolGray
|
|
4600
|
+
},
|
|
4553
4601
|
header: {
|
|
4554
|
-
pt:
|
|
4555
|
-
px:
|
|
4556
|
-
pb:
|
|
4602
|
+
pt: 8,
|
|
4603
|
+
px: 8,
|
|
4604
|
+
pb: 4,
|
|
4557
4605
|
fontSize: '18px',
|
|
4558
4606
|
fontWeight: 600,
|
|
4559
4607
|
lineHeight: '26px'
|
|
4560
4608
|
},
|
|
4561
4609
|
body: {
|
|
4562
4610
|
pt: 0,
|
|
4563
|
-
pb:
|
|
4564
|
-
px:
|
|
4611
|
+
pb: 8,
|
|
4612
|
+
px: 8,
|
|
4565
4613
|
fontSize: '13px',
|
|
4566
4614
|
fontWeight: 400,
|
|
4567
4615
|
lineHeight: '16px',
|
|
4568
4616
|
whiteSpace: 'pre-line'
|
|
4569
4617
|
},
|
|
4570
4618
|
footer: {
|
|
4571
|
-
py:
|
|
4572
|
-
px:
|
|
4619
|
+
py: 4,
|
|
4620
|
+
px: 8,
|
|
4573
4621
|
display: 'flex',
|
|
4574
4622
|
justifyContent: 'flex-end',
|
|
4575
4623
|
width: '100%'
|
|
@@ -4713,10 +4761,10 @@ var Switch = {
|
|
|
4713
4761
|
var parts$8 = ['th', 'td', 'tr', 'body', 'thead'];
|
|
4714
4762
|
var baseStyle$d = {
|
|
4715
4763
|
thead: {
|
|
4716
|
-
bg: colors.
|
|
4764
|
+
bg: colors.surface.canvas
|
|
4717
4765
|
},
|
|
4718
4766
|
th: {
|
|
4719
|
-
bg: colors.
|
|
4767
|
+
bg: colors.surface.canvas,
|
|
4720
4768
|
padding: '5px 8px !important',
|
|
4721
4769
|
fontSize: '13px'
|
|
4722
4770
|
},
|
|
@@ -4797,7 +4845,7 @@ var baseStyle$e = function baseStyle(props) {
|
|
|
4797
4845
|
var sizes$1 = {
|
|
4798
4846
|
sm: {
|
|
4799
4847
|
tab: {
|
|
4800
|
-
py:
|
|
4848
|
+
py: 1,
|
|
4801
4849
|
px: 6,
|
|
4802
4850
|
fontSize: '0.85rem'
|
|
4803
4851
|
}
|
|
@@ -4805,7 +4853,7 @@ var sizes$1 = {
|
|
|
4805
4853
|
md: {
|
|
4806
4854
|
tab: {
|
|
4807
4855
|
fontSize: '1rem',
|
|
4808
|
-
py:
|
|
4856
|
+
py: 3,
|
|
4809
4857
|
px: 6
|
|
4810
4858
|
}
|
|
4811
4859
|
},
|
|
@@ -4815,7 +4863,7 @@ var sizes$1 = {
|
|
|
4815
4863
|
base: '1rem',
|
|
4816
4864
|
sm: '1.15rem'
|
|
4817
4865
|
},
|
|
4818
|
-
py:
|
|
4866
|
+
py: 3,
|
|
4819
4867
|
px: 6
|
|
4820
4868
|
}
|
|
4821
4869
|
}
|
|
@@ -4934,12 +4982,12 @@ var variantSimple = {
|
|
|
4934
4982
|
position: 'relative',
|
|
4935
4983
|
borderColor: 'transparent',
|
|
4936
4984
|
'&.active': {
|
|
4937
|
-
color: colors.
|
|
4985
|
+
color: colors.action.solid,
|
|
4938
4986
|
bg: 'transparent',
|
|
4939
|
-
borderBottom: "1px solid " + colors.
|
|
4987
|
+
borderBottom: "1px solid " + colors.action.solid
|
|
4940
4988
|
},
|
|
4941
4989
|
_selected: {
|
|
4942
|
-
color: colors.
|
|
4990
|
+
color: colors.action.solid,
|
|
4943
4991
|
bg: 'transparent',
|
|
4944
4992
|
_after: {
|
|
4945
4993
|
content: '""',
|
|
@@ -5118,9 +5166,6 @@ var styles = {
|
|
|
5118
5166
|
},
|
|
5119
5167
|
'*, *::before, *::after': {
|
|
5120
5168
|
borderColor: 'gray.200'
|
|
5121
|
-
},
|
|
5122
|
-
'*::placeholder': {
|
|
5123
|
-
color: 'primary'
|
|
5124
5169
|
}
|
|
5125
5170
|
}
|
|
5126
5171
|
};
|
|
@@ -5204,7 +5249,7 @@ var ToolbarBreadcrumbItem = function ToolbarBreadcrumbItem(_ref) {
|
|
|
5204
5249
|
return pageLabel;
|
|
5205
5250
|
}, [breakpoint1512, breakpoint400, breakpoint600, breakpoint800, page, pageLabel]);
|
|
5206
5251
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
5207
|
-
color: page === 'current' ? colors.
|
|
5252
|
+
color: page === 'current' ? colors.text.primary : colors.text.secondary,
|
|
5208
5253
|
fontSize: "13px",
|
|
5209
5254
|
letterSpacing: "0.02em",
|
|
5210
5255
|
onClick: onClick,
|
|
@@ -5439,12 +5484,12 @@ var Toast = function Toast(_ref) {
|
|
|
5439
5484
|
}, Icon), /*#__PURE__*/React__default.createElement(Text$2, {
|
|
5440
5485
|
pr: "16px",
|
|
5441
5486
|
fontSize: "13px",
|
|
5442
|
-
color: colors.
|
|
5487
|
+
color: colors.text.onAccent
|
|
5443
5488
|
}, message), onClick && buttonText && /*#__PURE__*/React__default.createElement(Flex, {
|
|
5444
5489
|
ml: "auto",
|
|
5445
5490
|
justifyContent: "flex-end"
|
|
5446
5491
|
}, /*#__PURE__*/React__default.createElement(Button$2, {
|
|
5447
|
-
color: colors.
|
|
5492
|
+
color: colors.action.solid,
|
|
5448
5493
|
style: {
|
|
5449
5494
|
background: 'transparent',
|
|
5450
5495
|
border: 'transparent',
|
|
@@ -5465,7 +5510,7 @@ var useToast = function useToast() {
|
|
|
5465
5510
|
return toast({
|
|
5466
5511
|
position: props.position,
|
|
5467
5512
|
render: function render() {
|
|
5468
|
-
return /*#__PURE__*/React__default.createElement(Toast,
|
|
5513
|
+
return /*#__PURE__*/React__default.createElement(Toast, _extends$6({}, props));
|
|
5469
5514
|
}
|
|
5470
5515
|
});
|
|
5471
5516
|
}, [toast]);
|
|
@@ -5493,5 +5538,5 @@ function formatErrorResponse(error) {
|
|
|
5493
5538
|
};
|
|
5494
5539
|
}
|
|
5495
5540
|
|
|
5496
|
-
export { ActionRow, Banner, Breadcrumbs, Button, Card, Checkmark, ChevronDown, ChevronRight, Clock, Close, Dropdown$1 as Dropdown, Error$1 as Error, FileFill, FileOutline, FolderAddFill, FolderAddOutline, FolderFill, FolderOutline, Form, FormSection, GearIcon, Google, GoogleButton, GoogleDrive, Group, Home, Image, Input, Label$1 as Label, Layout, Link, LoadingIndicator, Menu, Microsoft, MicrosoftButton, MicrosoftOneDrive, Modal, NavigationMenu, Neutral, Page, Positive, Question, Search, SelectNative, Services, Settings, SimpleTable, SpinnerButton, TableFill, TableOutline, TabsWrapper, Task, Text, Toolbar, Trash, Vault, Video, Warning, Workspace, XQThemeProvider, colors, formatErrorResponse, useToast };
|
|
5541
|
+
export { ActionRow, Banner, Breadcrumbs, Button, Card, Checkmark, ChevronDown, ChevronRight, Clock, Close, Dropdown$1 as Dropdown, Error$1 as Error, FileFill, FileOutline, FolderAddFill, FolderAddOutline, FolderFill, FolderOutline, Form, FormSection, GearIcon, Google, GoogleButton, GoogleDrive, Group, Home, Image, Input, Label$1 as Label, Layout, Link, LoadingIndicator, Menu, Microsoft, MicrosoftButton, MicrosoftOneDrive, Modal, NavigationMenu, Neutral, Page, Positive, Question, Search, SelectNative, Services, Settings, SimpleTable, SpinnerButton, TableFill, TableOutline, TabsWrapper, Task, Text, Toolbar, Trash, Vault, Video, Warning, Workspace, XQThemeProvider, colors, formatErrorResponse, tokens, useToast };
|
|
5497
5542
|
//# sourceMappingURL=ui-core.esm.js.map
|