@northlight/ui 2.43.0 → 2.43.2

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.
Files changed (42) hide show
  1. package/dist/es/northlight.d.ts +2 -2
  2. package/dist/es/northlight.js +1482 -949
  3. package/dist/es/northlight.js.map +1 -1
  4. package/dist/sandbox/index.cjs +1282 -749
  5. package/dist/sandbox/index.cjs.map +1 -1
  6. package/dist/sandbox/index.js +1283 -750
  7. package/dist/sandbox/index.js.map +1 -1
  8. package/dist/umd/northlight.cjs +1476 -943
  9. package/dist/umd/northlight.cjs.map +1 -1
  10. package/dist/umd/northlight.min.cjs +3 -3
  11. package/dist/umd/northlight.min.cjs.map +1 -1
  12. package/lib/components/date-picker/components/date-field/trigger.tsx +26 -6
  13. package/lib/components/date-picker/components/date-field/types.ts +8 -2
  14. package/lib/components/date-picker/date-picker/date-picker.tsx +221 -9
  15. package/lib/components/date-picker/date-picker/date-range-picker.tsx +211 -29
  16. package/lib/hooks/use-arrow-focus/index.ts +1 -1
  17. package/lib/theme/components/textarea/index.ts +82 -41
  18. package/package.json +3 -3
  19. package/sandbox/lib/run-scenarios.ts +4 -1
  20. package/sandbox/node_modules/.yarn-integrity +0 -38
  21. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/LICENSE +0 -127
  22. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/README.md +0 -50
  23. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/filter.d.ts +0 -2
  24. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/filter.js +0 -39
  25. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/filter.js.map +0 -1
  26. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/index.d.ts +0 -11
  27. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/index.js +0 -78
  28. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/index.js.map +0 -1
  29. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/lib.d.ts +0 -6
  30. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/lib.js +0 -79
  31. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/lib.js.map +0 -1
  32. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/package.json +0 -34
  33. package/sandbox/node_modules/esbuild/LICENSE.md +0 -21
  34. package/sandbox/node_modules/esbuild/README.md +0 -3
  35. package/sandbox/node_modules/esbuild/bin/esbuild +0 -178
  36. package/sandbox/node_modules/esbuild/install.js +0 -244
  37. package/sandbox/node_modules/esbuild/lib/main.d.ts +0 -602
  38. package/sandbox/node_modules/esbuild/lib/main.js +0 -2332
  39. package/sandbox/node_modules/esbuild/package.json +0 -41
  40. package/sandbox/node_modules/esbuild-linux-64/README.md +0 -3
  41. package/sandbox/node_modules/esbuild-linux-64/bin/esbuild +0 -0
  42. package/sandbox/node_modules/esbuild-linux-64/package.json +0 -17
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@chakra-ui/react'), require('react'), require('chakra-react-select'), require('ramda'), require('@react-aria/focus'), require('react-hook-form'), require('@chakra-ui/system'), require('@northlight/tokens'), require('@emotion/react'), require('@chakra-ui/theme-tools'), require('@northlight/icons'), require('@hookform/resolvers/joi'), require('@react-aria/checkbox'), require('@react-aria/radio'), require('@react-aria/utils'), require('@react-stately/radio'), require('@react-stately/checkbox'), require('@react-aria/datepicker'), require('@react-stately/datepicker'), require('@internationalized/date'), require('@react-aria/button'), require('@react-aria/i18n'), require('@react-stately/calendar'), require('@react-aria/calendar'), require('react-router-dom'), require('@chakra-ui/clickable'), require('framer-motion'), require('@dnd-kit/core'), require('@dnd-kit/utilities'), require('@dnd-kit/sortable'), require('@dnd-kit/modifiers'), require('react-window'), require('react-virtualized-auto-sizer'), require('react-avatar-editor'), require('react-number-format'), require('react-input-mask'), require('yafu')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@chakra-ui/react', 'react', 'chakra-react-select', 'ramda', '@react-aria/focus', 'react-hook-form', '@chakra-ui/system', '@northlight/tokens', '@emotion/react', '@chakra-ui/theme-tools', '@northlight/icons', '@hookform/resolvers/joi', '@react-aria/checkbox', '@react-aria/radio', '@react-aria/utils', '@react-stately/radio', '@react-stately/checkbox', '@react-aria/datepicker', '@react-stately/datepicker', '@internationalized/date', '@react-aria/button', '@react-aria/i18n', '@react-stately/calendar', '@react-aria/calendar', 'react-router-dom', '@chakra-ui/clickable', 'framer-motion', '@dnd-kit/core', '@dnd-kit/utilities', '@dnd-kit/sortable', '@dnd-kit/modifiers', 'react-window', 'react-virtualized-auto-sizer', 'react-avatar-editor', 'react-number-format', 'react-input-mask', 'yafu'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.northlight = {}, global.react, global.React, global.chakraReactSelect, global.ramda, global.focus, global.reactHookForm, global.system, global.tokens, global.react$1, global.themeTools, global.NorthlightIcons, global.joi, global.checkbox$1, global.radio$1, global.utils, global.radio, global.checkbox, global.datepicker, global.datepicker$1, global.date, global.button, global.i18n, global.calendar$1, global.calendar, global.reactRouterDom, global.clickable, global.framerMotion, global.core, global.utilities, global.sortable, global.modifiers, global.reactWindow, global.AutoSizer, global.AvatarEditor, global.reactNumberFormat, global.InputMask, global.yafu));
5
- })(this, (function (exports, react, React, chakraReactSelect, ramda, focus, reactHookForm, system, tokens, react$1, themeTools, NorthlightIcons, joi, checkbox$1, radio$1, utils, radio, checkbox, datepicker, datepicker$1, date, button, i18n, calendar$1, calendar, reactRouterDom, clickable, framerMotion, core, utilities, sortable, modifiers, reactWindow, AutoSizer, AvatarEditor, reactNumberFormat, InputMask, yafu) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@chakra-ui/react'), require('react'), require('chakra-react-select'), require('ramda'), require('@react-aria/focus'), require('react-hook-form'), require('@chakra-ui/system'), require('@northlight/tokens'), require('@emotion/react'), require('@chakra-ui/theme-tools'), require('@northlight/icons'), require('@hookform/resolvers/joi'), require('@react-aria/checkbox'), require('@react-aria/radio'), require('@react-aria/utils'), require('@react-stately/radio'), require('@react-stately/checkbox'), require('@react-aria/datepicker'), require('@react-stately/datepicker'), require('@internationalized/date'), require('@react-aria/i18n'), require('@react-stately/calendar'), require('@react-aria/calendar'), require('@react-aria/button'), require('react-router-dom'), require('@chakra-ui/clickable'), require('framer-motion'), require('@dnd-kit/core'), require('@dnd-kit/utilities'), require('@dnd-kit/sortable'), require('@dnd-kit/modifiers'), require('react-window'), require('react-virtualized-auto-sizer'), require('react-avatar-editor'), require('react-number-format'), require('react-input-mask'), require('yafu')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@chakra-ui/react', 'react', 'chakra-react-select', 'ramda', '@react-aria/focus', 'react-hook-form', '@chakra-ui/system', '@northlight/tokens', '@emotion/react', '@chakra-ui/theme-tools', '@northlight/icons', '@hookform/resolvers/joi', '@react-aria/checkbox', '@react-aria/radio', '@react-aria/utils', '@react-stately/radio', '@react-stately/checkbox', '@react-aria/datepicker', '@react-stately/datepicker', '@internationalized/date', '@react-aria/i18n', '@react-stately/calendar', '@react-aria/calendar', '@react-aria/button', 'react-router-dom', '@chakra-ui/clickable', 'framer-motion', '@dnd-kit/core', '@dnd-kit/utilities', '@dnd-kit/sortable', '@dnd-kit/modifiers', 'react-window', 'react-virtualized-auto-sizer', 'react-avatar-editor', 'react-number-format', 'react-input-mask', 'yafu'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.northlight = {}, global.react, global.React, global.chakraReactSelect, global.ramda, global.focus, global.reactHookForm, global.system, global.tokens, global.react$1, global.themeTools, global.NorthlightIcons, global.joi, global.checkbox$1, global.radio$1, global.utils, global.radio, global.checkbox, global.datepicker, global.datepicker$1, global.date, global.i18n, global.calendar$1, global.calendar, global.button, global.reactRouterDom, global.clickable, global.framerMotion, global.core, global.utilities, global.sortable, global.modifiers, global.reactWindow, global.AutoSizer, global.AvatarEditor, global.reactNumberFormat, global.InputMask, global.yafu));
5
+ })(this, (function (exports, react, React, chakraReactSelect, ramda, focus, reactHookForm, system, tokens, react$1, themeTools, NorthlightIcons, joi, checkbox$1, radio$1, utils, radio, checkbox, datepicker, datepicker$1, date, i18n, calendar$1, calendar, button, reactRouterDom, clickable, framerMotion, core, utilities, sortable, modifiers, reactWindow, AutoSizer, AvatarEditor, reactNumberFormat, InputMask, yafu) { 'use strict';
6
6
 
7
7
  function _interopNamespaceDefault(e) {
8
8
  var n = Object.create(null);
@@ -23,24 +23,6 @@
23
23
 
24
24
  var NorthlightIcons__namespace = /*#__PURE__*/_interopNamespaceDefault(NorthlightIcons);
25
25
 
26
- var __defProp$2x = Object.defineProperty;
27
- var __getOwnPropSymbols$2x = Object.getOwnPropertySymbols;
28
- var __hasOwnProp$2x = Object.prototype.hasOwnProperty;
29
- var __propIsEnum$2x = Object.prototype.propertyIsEnumerable;
30
- var __defNormalProp$2x = (obj, key, value) => key in obj ? __defProp$2x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
31
- var __spreadValues$2x = (a, b) => {
32
- for (var prop in b || (b = {}))
33
- if (__hasOwnProp$2x.call(b, prop))
34
- __defNormalProp$2x(a, prop, b[prop]);
35
- if (__getOwnPropSymbols$2x)
36
- for (var prop of __getOwnPropSymbols$2x(b)) {
37
- if (__propIsEnum$2x.call(b, prop))
38
- __defNormalProp$2x(a, prop, b[prop]);
39
- }
40
- return a;
41
- };
42
- const Accordion = (props) => /* @__PURE__ */ React.createElement(react.Accordion, __spreadValues$2x({}, props));
43
-
44
26
  var __defProp$2w = Object.defineProperty;
45
27
  var __getOwnPropSymbols$2w = Object.getOwnPropertySymbols;
46
28
  var __hasOwnProp$2w = Object.prototype.hasOwnProperty;
@@ -57,7 +39,7 @@
57
39
  }
58
40
  return a;
59
41
  };
60
- const AccordionButton = (props) => /* @__PURE__ */ React.createElement(react.AccordionButton, __spreadValues$2w({}, props));
42
+ const Accordion = (props) => /* @__PURE__ */ React.createElement(react.Accordion, __spreadValues$2w({}, props));
61
43
 
62
44
  var __defProp$2v = Object.defineProperty;
63
45
  var __getOwnPropSymbols$2v = Object.getOwnPropertySymbols;
@@ -75,7 +57,7 @@
75
57
  }
76
58
  return a;
77
59
  };
78
- const AccordionPanel = (props) => /* @__PURE__ */ React.createElement(react.AccordionPanel, __spreadValues$2v({}, props));
60
+ const AccordionButton = (props) => /* @__PURE__ */ React.createElement(react.AccordionButton, __spreadValues$2v({}, props));
79
61
 
80
62
  var __defProp$2u = Object.defineProperty;
81
63
  var __getOwnPropSymbols$2u = Object.getOwnPropertySymbols;
@@ -93,7 +75,25 @@
93
75
  }
94
76
  return a;
95
77
  };
96
- const AccordionItem = (props) => /* @__PURE__ */ React.createElement(react.AccordionItem, __spreadValues$2u({}, props));
78
+ const AccordionPanel = (props) => /* @__PURE__ */ React.createElement(react.AccordionPanel, __spreadValues$2u({}, props));
79
+
80
+ var __defProp$2t = Object.defineProperty;
81
+ var __getOwnPropSymbols$2t = Object.getOwnPropertySymbols;
82
+ var __hasOwnProp$2t = Object.prototype.hasOwnProperty;
83
+ var __propIsEnum$2t = Object.prototype.propertyIsEnumerable;
84
+ var __defNormalProp$2t = (obj, key, value) => key in obj ? __defProp$2t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
85
+ var __spreadValues$2t = (a, b) => {
86
+ for (var prop in b || (b = {}))
87
+ if (__hasOwnProp$2t.call(b, prop))
88
+ __defNormalProp$2t(a, prop, b[prop]);
89
+ if (__getOwnPropSymbols$2t)
90
+ for (var prop of __getOwnPropSymbols$2t(b)) {
91
+ if (__propIsEnum$2t.call(b, prop))
92
+ __defNormalProp$2t(a, prop, b[prop]);
93
+ }
94
+ return a;
95
+ };
96
+ const AccordionItem = (props) => /* @__PURE__ */ React.createElement(react.AccordionItem, __spreadValues$2t({}, props));
97
97
 
98
98
  const useDebounce = (value, delay) => {
99
99
  const [debouncedValue, setDebouncedValue] = React.useState(value);
@@ -438,24 +438,6 @@
438
438
  return fieldError;
439
439
  }
440
440
 
441
- var __defProp$2t = Object.defineProperty;
442
- var __getOwnPropSymbols$2t = Object.getOwnPropertySymbols;
443
- var __hasOwnProp$2t = Object.prototype.hasOwnProperty;
444
- var __propIsEnum$2t = Object.prototype.propertyIsEnumerable;
445
- var __defNormalProp$2t = (obj, key, value) => key in obj ? __defProp$2t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
446
- var __spreadValues$2t = (a, b) => {
447
- for (var prop in b || (b = {}))
448
- if (__hasOwnProp$2t.call(b, prop))
449
- __defNormalProp$2t(a, prop, b[prop]);
450
- if (__getOwnPropSymbols$2t)
451
- for (var prop of __getOwnPropSymbols$2t(b)) {
452
- if (__propIsEnum$2t.call(b, prop))
453
- __defNormalProp$2t(a, prop, b[prop]);
454
- }
455
- return a;
456
- };
457
- const passPropsToChild = (child, styles) => React.isValidElement(child) ? React.cloneElement(child, __spreadValues$2t({}, styles)) : child;
458
-
459
441
  var __defProp$2s = Object.defineProperty;
460
442
  var __getOwnPropSymbols$2s = Object.getOwnPropertySymbols;
461
443
  var __hasOwnProp$2s = Object.prototype.hasOwnProperty;
@@ -472,9 +454,27 @@
472
454
  }
473
455
  return a;
474
456
  };
457
+ const passPropsToChild = (child, styles) => React.isValidElement(child) ? React.cloneElement(child, __spreadValues$2s({}, styles)) : child;
458
+
459
+ var __defProp$2r = Object.defineProperty;
460
+ var __getOwnPropSymbols$2r = Object.getOwnPropertySymbols;
461
+ var __hasOwnProp$2r = Object.prototype.hasOwnProperty;
462
+ var __propIsEnum$2r = Object.prototype.propertyIsEnumerable;
463
+ var __defNormalProp$2r = (obj, key, value) => key in obj ? __defProp$2r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
464
+ var __spreadValues$2r = (a, b) => {
465
+ for (var prop in b || (b = {}))
466
+ if (__hasOwnProp$2r.call(b, prop))
467
+ __defNormalProp$2r(a, prop, b[prop]);
468
+ if (__getOwnPropSymbols$2r)
469
+ for (var prop of __getOwnPropSymbols$2r(b)) {
470
+ if (__propIsEnum$2r.call(b, prop))
471
+ __defNormalProp$2r(a, prop, b[prop]);
472
+ }
473
+ return a;
474
+ };
475
475
  const getChildrenWithProps = (children, styles, predicate = ramda.T) => {
476
476
  const childrenAsArr = React.Children.toArray(children);
477
- const childrenWithoutFocus = childrenAsArr.map((child, i) => predicate(child, i) ? passPropsToChild(child, __spreadValues$2s({}, styles)) : child);
477
+ const childrenWithoutFocus = childrenAsArr.map((child, i) => predicate(child, i) ? passPropsToChild(child, __spreadValues$2r({}, styles)) : child);
478
478
  return childrenWithoutFocus;
479
479
  };
480
480
 
@@ -548,80 +548,80 @@
548
548
  };
549
549
  };
550
550
 
551
- var __defProp$2r = Object.defineProperty;
552
- var __defProps$A = Object.defineProperties;
553
- var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
554
- var __getOwnPropSymbols$2r = Object.getOwnPropertySymbols;
555
- var __hasOwnProp$2r = Object.prototype.hasOwnProperty;
556
- var __propIsEnum$2r = Object.prototype.propertyIsEnumerable;
557
- var __defNormalProp$2r = (obj, key, value) => key in obj ? __defProp$2r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
558
- var __spreadValues$2r = (a, b) => {
551
+ var __defProp$2q = Object.defineProperty;
552
+ var __defProps$z = Object.defineProperties;
553
+ var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
554
+ var __getOwnPropSymbols$2q = Object.getOwnPropertySymbols;
555
+ var __hasOwnProp$2q = Object.prototype.hasOwnProperty;
556
+ var __propIsEnum$2q = Object.prototype.propertyIsEnumerable;
557
+ var __defNormalProp$2q = (obj, key, value) => key in obj ? __defProp$2q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
558
+ var __spreadValues$2q = (a, b) => {
559
559
  for (var prop in b || (b = {}))
560
- if (__hasOwnProp$2r.call(b, prop))
561
- __defNormalProp$2r(a, prop, b[prop]);
562
- if (__getOwnPropSymbols$2r)
563
- for (var prop of __getOwnPropSymbols$2r(b)) {
564
- if (__propIsEnum$2r.call(b, prop))
565
- __defNormalProp$2r(a, prop, b[prop]);
560
+ if (__hasOwnProp$2q.call(b, prop))
561
+ __defNormalProp$2q(a, prop, b[prop]);
562
+ if (__getOwnPropSymbols$2q)
563
+ for (var prop of __getOwnPropSymbols$2q(b)) {
564
+ if (__propIsEnum$2q.call(b, prop))
565
+ __defNormalProp$2q(a, prop, b[prop]);
566
566
  }
567
567
  return a;
568
568
  };
569
- var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
569
+ var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
570
570
  const customSelectStyles = {
571
- container: (provided) => __spreadProps$A(__spreadValues$2r({}, provided), {
571
+ container: (provided) => __spreadProps$z(__spreadValues$2q({}, provided), {
572
572
  width: "100%",
573
573
  color: "text.default"
574
574
  }),
575
- option: (provided, state) => __spreadProps$A(__spreadValues$2r({}, provided), {
575
+ option: (provided, state) => __spreadProps$z(__spreadValues$2q({}, provided), {
576
576
  background: state.isFocused && "background.select.option-focus",
577
577
  overflowWrap: "anywhere",
578
578
  _active: {
579
579
  background: "background.select.option-active"
580
580
  }
581
581
  }),
582
- valueContainer: (provided) => __spreadProps$A(__spreadValues$2r({}, provided), {
582
+ valueContainer: (provided) => __spreadProps$z(__spreadValues$2q({}, provided), {
583
583
  paddingInlineStart: "padding-inline.select.default"
584
584
  }),
585
- downChevron: (provided) => __spreadProps$A(__spreadValues$2r({}, provided), {
585
+ downChevron: (provided) => __spreadProps$z(__spreadValues$2q({}, provided), {
586
586
  color: "icon.select.default"
587
587
  }),
588
- placeholder: (provided) => __spreadProps$A(__spreadValues$2r({}, provided), {
588
+ placeholder: (provided) => __spreadProps$z(__spreadValues$2q({}, provided), {
589
589
  color: "text.select.placeholder"
590
590
  }),
591
591
  multiValue: (provided, state) => {
592
592
  var _a;
593
593
  const background = state.data.isFixed ? "background.select.option-disabled" : (_a = state.data.color) != null ? _a : provided.bgColor;
594
- return __spreadProps$A(__spreadValues$2r({}, provided), {
594
+ return __spreadProps$z(__spreadValues$2q({}, provided), {
595
595
  bgColor: background,
596
596
  color: getContrastColor(background)
597
597
  });
598
598
  },
599
- menuList: (provided) => __spreadProps$A(__spreadValues$2r({}, provided), {
599
+ menuList: (provided) => __spreadProps$z(__spreadValues$2q({}, provided), {
600
600
  bgColor: "background.default"
601
601
  })
602
602
  };
603
603
 
604
- var __defProp$2q = Object.defineProperty;
605
- var __defProps$z = Object.defineProperties;
606
- var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
607
- var __getOwnPropSymbols$2q = Object.getOwnPropertySymbols;
608
- var __hasOwnProp$2q = Object.prototype.hasOwnProperty;
609
- var __propIsEnum$2q = Object.prototype.propertyIsEnumerable;
610
- var __defNormalProp$2q = (obj, key, value) => key in obj ? __defProp$2q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
611
- var __spreadValues$2q = (a, b) => {
604
+ var __defProp$2p = Object.defineProperty;
605
+ var __defProps$y = Object.defineProperties;
606
+ var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
607
+ var __getOwnPropSymbols$2p = Object.getOwnPropertySymbols;
608
+ var __hasOwnProp$2p = Object.prototype.hasOwnProperty;
609
+ var __propIsEnum$2p = Object.prototype.propertyIsEnumerable;
610
+ var __defNormalProp$2p = (obj, key, value) => key in obj ? __defProp$2p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
611
+ var __spreadValues$2p = (a, b) => {
612
612
  for (var prop in b || (b = {}))
613
- if (__hasOwnProp$2q.call(b, prop))
614
- __defNormalProp$2q(a, prop, b[prop]);
615
- if (__getOwnPropSymbols$2q)
616
- for (var prop of __getOwnPropSymbols$2q(b)) {
617
- if (__propIsEnum$2q.call(b, prop))
618
- __defNormalProp$2q(a, prop, b[prop]);
613
+ if (__hasOwnProp$2p.call(b, prop))
614
+ __defNormalProp$2p(a, prop, b[prop]);
615
+ if (__getOwnPropSymbols$2p)
616
+ for (var prop of __getOwnPropSymbols$2p(b)) {
617
+ if (__propIsEnum$2p.call(b, prop))
618
+ __defNormalProp$2p(a, prop, b[prop]);
619
619
  }
620
620
  return a;
621
621
  };
622
- var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
623
- const tagsInputStyles = (isFocused, borderColor) => __spreadProps$z(__spreadValues$2q({}, customSelectStyles), {
624
- container: (provided) => __spreadProps$z(__spreadValues$2q({}, provided), {
622
+ var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
623
+ const tagsInputStyles = (isFocused, borderColor) => __spreadProps$y(__spreadValues$2p({}, customSelectStyles), {
624
+ container: (provided) => __spreadProps$y(__spreadValues$2p({}, provided), {
625
625
  w: "full",
626
626
  height: "100%",
627
627
  resize: "vertical",
@@ -634,12 +634,12 @@
634
634
  color: "text.default",
635
635
  boxShadow: isFocused ? `0 0 0 1px ${borderColor}` : "none"
636
636
  }),
637
- control: (provided) => __spreadProps$z(__spreadValues$2q({}, provided), {
637
+ control: (provided) => __spreadProps$y(__spreadValues$2p({}, provided), {
638
638
  minHeight: "20",
639
639
  height: "100%",
640
640
  alignItems: "start"
641
641
  }),
642
- valueContainer: (provided) => __spreadProps$z(__spreadValues$2q({}, provided), {
642
+ valueContainer: (provided) => __spreadProps$y(__spreadValues$2p({}, provided), {
643
643
  paddingInlineStart: "padding-inline.select.default",
644
644
  overflowY: "auto",
645
645
  maxH: "100%"
@@ -1568,58 +1568,99 @@
1568
1568
 
1569
1569
  const Textarea$1 = {
1570
1570
  baseStyle: ({ theme: {
1571
- space: spacing,
1572
- colors: color,
1573
- borders: borderWidth,
1574
- radii: borderRadius
1571
+ colors: color
1575
1572
  } }) => ({
1576
- paddingInlineStart: spacing["padding-inline"].textarea.default,
1577
- paddingInlineEnd: spacing["padding-inline"].textarea.default,
1578
- borderRadius: borderRadius.textarea.default,
1579
- borderWidth: borderWidth.textarea.default,
1580
- borderColor: color.border.textarea.default,
1581
1573
  color: color.text.default,
1582
- bgColor: color.background.textarea.default,
1583
- _hover: {
1584
- borderColor: color.border.textarea["default-hover"],
1585
- bgColor: color.background.textarea.hover
1586
- },
1587
- _focusVisible: {
1588
- borderColor: color.border.textarea.focus,
1589
- boxShadow: `0 0 0 1px ${color.border.textarea.focus}`,
1590
- bgColor: color.background.textarea.active
1591
- },
1592
- _invalid: {
1593
- boxShadow: "none",
1594
- borderColor: color.border.textarea.error,
1595
- bgColor: color.background.textarea.error
1596
- },
1597
- _readOnly: {
1598
- _focusVisible: {
1599
- borderColor: color.border.textarea.readonly,
1600
- bgColor: color.background.textarea.default
1601
- },
1602
- _hover: {
1603
- borderColor: color.border.textarea.readonly
1604
- }
1605
- },
1606
- _disabled: {
1607
- bgColor: color.background.textarea.disabled,
1608
- _hover: {
1609
- borderColor: color.border.textarea.default
1610
- }
1611
- },
1612
1574
  _placeholder: {
1613
1575
  color: color.text.textarea.placeholder
1614
1576
  }
1615
1577
  }),
1616
1578
  variants: {
1617
- outline: {},
1618
- ai: ({ theme: { colors: color } }) => ({
1579
+ outline: ({ theme: {
1580
+ space: spacing,
1581
+ colors: color,
1582
+ borders: borderWidth,
1583
+ radii: borderRadius
1584
+ } }) => ({
1585
+ paddingInlineStart: spacing["padding-inline"].textarea.default,
1586
+ paddingInlineEnd: spacing["padding-inline"].textarea.default,
1587
+ borderRadius: borderRadius.textarea.default,
1588
+ borderWidth: borderWidth.textarea.default,
1589
+ borderColor: color.border.textarea.default,
1590
+ bgColor: color.background.textarea.default,
1591
+ _hover: {
1592
+ borderColor: color.border.textarea["default-hover"],
1593
+ bgColor: color.background.textarea.hover
1594
+ },
1595
+ _focusVisible: {
1596
+ borderColor: color.border.textarea.focus,
1597
+ boxShadow: `0 0 0 1px ${color.border.textarea.focus}`,
1598
+ bgColor: color.background.textarea.active
1599
+ },
1600
+ _invalid: {
1601
+ boxShadow: "none",
1602
+ borderColor: color.border.textarea.error,
1603
+ bgColor: color.background.textarea.error
1604
+ },
1605
+ _readOnly: {
1606
+ _focusVisible: {
1607
+ borderColor: color.border.textarea.readonly,
1608
+ bgColor: color.background.textarea.default
1609
+ },
1610
+ _hover: {
1611
+ borderColor: color.border.textarea.readonly
1612
+ }
1613
+ },
1614
+ _disabled: {
1615
+ bgColor: color.background.textarea.disabled,
1616
+ _hover: {
1617
+ borderColor: color.border.textarea.default
1618
+ }
1619
+ }
1620
+ }),
1621
+ ai: ({ theme: {
1622
+ space: spacing,
1623
+ colors: color,
1624
+ borders: borderWidth,
1625
+ radii: borderRadius
1626
+ } }) => ({
1627
+ paddingInlineStart: spacing["padding-inline"].textarea.default,
1628
+ paddingInlineEnd: spacing["padding-inline"].textarea.default,
1629
+ borderRadius: borderRadius.textarea.default,
1630
+ borderWidth: borderWidth.textarea.default,
1631
+ borderColor: color.border.textarea.default,
1632
+ bgColor: color.background.textarea.default,
1633
+ _hover: {
1634
+ borderColor: color.border.textarea["default-hover"],
1635
+ bgColor: color.background.textarea.hover
1636
+ },
1619
1637
  _focusVisible: {
1638
+ bgColor: color.background.textarea.active,
1639
+ boxShadow: `inset 0 0 0 1px ${color.border.ai}`,
1640
+ borderColor: color.border.ai,
1641
+ _invalid: {
1642
+ boxShadow: `inset 0 0 0 1px ${color.border.textarea.error}`,
1643
+ bgColor: color.background.textarea.error,
1644
+ borderColor: color.border.textarea.error
1645
+ }
1646
+ },
1647
+ _invalid: {
1648
+ bgColor: color.background.textarea.error,
1649
+ borderColor: color.border.textarea.error
1650
+ },
1651
+ _readOnly: {
1652
+ _focusVisible: {
1653
+ borderColor: color.border.textarea.readonly,
1654
+ bgColor: color.background.textarea.default
1655
+ },
1656
+ _hover: {
1657
+ borderColor: color.border.textarea.readonly
1658
+ }
1659
+ },
1660
+ _disabled: {
1661
+ bgColor: color.background.textarea.disabled,
1620
1662
  _hover: {
1621
- boxShadow: `0 0 0 1px ${color.border.ai}`,
1622
- borderColor: color.border.ai
1663
+ borderColor: color.border.textarea.default
1623
1664
  }
1624
1665
  }
1625
1666
  })
@@ -2004,19 +2045,19 @@
2004
2045
  })
2005
2046
  };
2006
2047
 
2007
- var __defProp$2p = Object.defineProperty;
2008
- var __getOwnPropSymbols$2p = Object.getOwnPropertySymbols;
2009
- var __hasOwnProp$2p = Object.prototype.hasOwnProperty;
2010
- var __propIsEnum$2p = Object.prototype.propertyIsEnumerable;
2011
- var __defNormalProp$2p = (obj, key, value) => key in obj ? __defProp$2p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2012
- var __spreadValues$2p = (a, b) => {
2048
+ var __defProp$2o = Object.defineProperty;
2049
+ var __getOwnPropSymbols$2o = Object.getOwnPropertySymbols;
2050
+ var __hasOwnProp$2o = Object.prototype.hasOwnProperty;
2051
+ var __propIsEnum$2o = Object.prototype.propertyIsEnumerable;
2052
+ var __defNormalProp$2o = (obj, key, value) => key in obj ? __defProp$2o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2053
+ var __spreadValues$2o = (a, b) => {
2013
2054
  for (var prop in b || (b = {}))
2014
- if (__hasOwnProp$2p.call(b, prop))
2015
- __defNormalProp$2p(a, prop, b[prop]);
2016
- if (__getOwnPropSymbols$2p)
2017
- for (var prop of __getOwnPropSymbols$2p(b)) {
2018
- if (__propIsEnum$2p.call(b, prop))
2019
- __defNormalProp$2p(a, prop, b[prop]);
2055
+ if (__hasOwnProp$2o.call(b, prop))
2056
+ __defNormalProp$2o(a, prop, b[prop]);
2057
+ if (__getOwnPropSymbols$2o)
2058
+ for (var prop of __getOwnPropSymbols$2o(b)) {
2059
+ if (__propIsEnum$2o.call(b, prop))
2060
+ __defNormalProp$2o(a, prop, b[prop]);
2020
2061
  }
2021
2062
  return a;
2022
2063
  };
@@ -2041,7 +2082,7 @@
2041
2082
  bgColor: "background.default",
2042
2083
  borderRadius: "input.outline"
2043
2084
  },
2044
- dateSelect: __spreadValues$2p({
2085
+ dateSelect: __spreadValues$2o({
2045
2086
  fontWeight: "semibold",
2046
2087
  border: "none",
2047
2088
  padding: "1",
@@ -3390,19 +3431,19 @@
3390
3431
  }
3391
3432
  };
3392
3433
 
3393
- var __defProp$2o = Object.defineProperty;
3394
- var __getOwnPropSymbols$2o = Object.getOwnPropertySymbols;
3395
- var __hasOwnProp$2o = Object.prototype.hasOwnProperty;
3396
- var __propIsEnum$2o = Object.prototype.propertyIsEnumerable;
3397
- var __defNormalProp$2o = (obj, key, value) => key in obj ? __defProp$2o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3398
- var __spreadValues$2o = (a, b) => {
3434
+ var __defProp$2n = Object.defineProperty;
3435
+ var __getOwnPropSymbols$2n = Object.getOwnPropertySymbols;
3436
+ var __hasOwnProp$2n = Object.prototype.hasOwnProperty;
3437
+ var __propIsEnum$2n = Object.prototype.propertyIsEnumerable;
3438
+ var __defNormalProp$2n = (obj, key, value) => key in obj ? __defProp$2n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3439
+ var __spreadValues$2n = (a, b) => {
3399
3440
  for (var prop in b || (b = {}))
3400
- if (__hasOwnProp$2o.call(b, prop))
3401
- __defNormalProp$2o(a, prop, b[prop]);
3402
- if (__getOwnPropSymbols$2o)
3403
- for (var prop of __getOwnPropSymbols$2o(b)) {
3404
- if (__propIsEnum$2o.call(b, prop))
3405
- __defNormalProp$2o(a, prop, b[prop]);
3441
+ if (__hasOwnProp$2n.call(b, prop))
3442
+ __defNormalProp$2n(a, prop, b[prop]);
3443
+ if (__getOwnPropSymbols$2n)
3444
+ for (var prop of __getOwnPropSymbols$2n(b)) {
3445
+ if (__propIsEnum$2n.call(b, prop))
3446
+ __defNormalProp$2n(a, prop, b[prop]);
3406
3447
  }
3407
3448
  return a;
3408
3449
  };
@@ -3458,7 +3499,7 @@
3458
3499
  const FilePicker$1 = {
3459
3500
  parts: ["filePicker", "fileItem", "multiFilePicker"],
3460
3501
  baseStyle: ({ theme: { sizes, colors }, hasLoaded, isImage, isInvalid, currentTheme, sx }) => ({
3461
- filePicker: ramda.merge(__spreadValues$2o(__spreadValues$2o({
3502
+ filePicker: ramda.merge(__spreadValues$2n(__spreadValues$2n({
3462
3503
  display: "flex",
3463
3504
  flexDirection: "column",
3464
3505
  alignItems: "center",
@@ -3471,7 +3512,7 @@
3471
3512
  borderStyle: "dashed",
3472
3513
  borderRadius: "lg"
3473
3514
  }, getInvalidColorStyles(isInvalid, isImage, currentTheme)), thickRing), sx),
3474
- multiFilePicker: __spreadValues$2o(__spreadValues$2o({
3515
+ multiFilePicker: __spreadValues$2n(__spreadValues$2n({
3475
3516
  width: "full",
3476
3517
  maxWidth: "inherit",
3477
3518
  height: "32",
@@ -3496,8 +3537,8 @@
3496
3537
  }),
3497
3538
  variants: {
3498
3539
  ai: ({ isInvalid }) => ({
3499
- filePicker: __spreadValues$2o({}, getAiColorStyles(isInvalid)),
3500
- multiFilePicker: __spreadValues$2o({}, getAiColorStyles(isInvalid))
3540
+ filePicker: __spreadValues$2n({}, getAiColorStyles(isInvalid)),
3541
+ multiFilePicker: __spreadValues$2n({}, getAiColorStyles(isInvalid))
3501
3542
  })
3502
3543
  }
3503
3544
  };
@@ -3763,39 +3804,6 @@
3763
3804
  Tooltip: Tooltip$1
3764
3805
  });
3765
3806
 
3766
- var __defProp$2n = Object.defineProperty;
3767
- var __defProps$y = Object.defineProperties;
3768
- var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
3769
- var __getOwnPropSymbols$2n = Object.getOwnPropertySymbols;
3770
- var __hasOwnProp$2n = Object.prototype.hasOwnProperty;
3771
- var __propIsEnum$2n = Object.prototype.propertyIsEnumerable;
3772
- var __defNormalProp$2n = (obj, key, value) => key in obj ? __defProp$2n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3773
- var __spreadValues$2n = (a, b) => {
3774
- for (var prop in b || (b = {}))
3775
- if (__hasOwnProp$2n.call(b, prop))
3776
- __defNormalProp$2n(a, prop, b[prop]);
3777
- if (__getOwnPropSymbols$2n)
3778
- for (var prop of __getOwnPropSymbols$2n(b)) {
3779
- if (__propIsEnum$2n.call(b, prop))
3780
- __defNormalProp$2n(a, prop, b[prop]);
3781
- }
3782
- return a;
3783
- };
3784
- var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
3785
- const WebappSkin = {
3786
- colors: __spreadProps$y(__spreadValues$2n(__spreadValues$2n({}, tokens.WebappSystemTokensSet.st.color), tokens.WebappComponentsTokensSet.color), {
3787
- text: __spreadValues$2n(__spreadValues$2n({}, tokens.WebappSystemTokensSet.st.color.text), tokens.WebappComponentsTokensSet.color.text),
3788
- border: __spreadValues$2n(__spreadValues$2n({}, tokens.WebappSystemTokensSet.st.color.border), tokens.WebappComponentsTokensSet.color.border)
3789
- }),
3790
- sizes: tokens.WebappComponentsTokensSet.sizing,
3791
- space: tokens.WebappComponentsTokensSet.spacing,
3792
- radii: __spreadValues$2n(__spreadValues$2n({}, tokens.WebappSystemTokensSet.st.borderRadius), tokens.WebappComponentsTokensSet.borderRadius),
3793
- borders: __spreadValues$2n(__spreadValues$2n({}, tokens.WebappSystemTokensSet.st.borderWidth), tokens.WebappComponentsTokensSet.borderWidth),
3794
- opacity: tokens.WebappComponentsTokensSet.opacity,
3795
- typography: tokens.typography,
3796
- shadows: __spreadValues$2n({}, tokens.WebappSystemTokensSet.st.boxShadow)
3797
- };
3798
-
3799
3807
  var __defProp$2m = Object.defineProperty;
3800
3808
  var __defProps$x = Object.defineProperties;
3801
3809
  var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
@@ -3815,17 +3823,18 @@
3815
3823
  return a;
3816
3824
  };
3817
3825
  var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
3818
- const TottSkin = {
3819
- colors: __spreadProps$x(__spreadValues$2m(__spreadValues$2m({}, tokens.TottSystemTokensSet.st.color), tokens.TottComponentsTokensSet.color), {
3820
- border: __spreadValues$2m(__spreadValues$2m({}, tokens.TottSystemTokensSet.st.color.border), tokens.TottComponentsTokensSet.color.border)
3826
+ const WebappSkin = {
3827
+ colors: __spreadProps$x(__spreadValues$2m(__spreadValues$2m({}, tokens.WebappSystemTokensSet.st.color), tokens.WebappComponentsTokensSet.color), {
3828
+ text: __spreadValues$2m(__spreadValues$2m({}, tokens.WebappSystemTokensSet.st.color.text), tokens.WebappComponentsTokensSet.color.text),
3829
+ border: __spreadValues$2m(__spreadValues$2m({}, tokens.WebappSystemTokensSet.st.color.border), tokens.WebappComponentsTokensSet.color.border)
3821
3830
  }),
3822
- sizes: tokens.TottComponentsTokensSet.sizing,
3823
- space: tokens.TottComponentsTokensSet.spacing,
3824
- radii: __spreadValues$2m(__spreadValues$2m({}, tokens.TottSystemTokensSet.st.borderRadius), tokens.TottComponentsTokensSet.borderRadius),
3825
- borders: __spreadValues$2m(__spreadValues$2m({}, tokens.TottSystemTokensSet.st.borderWidth), tokens.TottComponentsTokensSet.borderWidth),
3826
- opacity: tokens.TottComponentsTokensSet.opacity,
3831
+ sizes: tokens.WebappComponentsTokensSet.sizing,
3832
+ space: tokens.WebappComponentsTokensSet.spacing,
3833
+ radii: __spreadValues$2m(__spreadValues$2m({}, tokens.WebappSystemTokensSet.st.borderRadius), tokens.WebappComponentsTokensSet.borderRadius),
3834
+ borders: __spreadValues$2m(__spreadValues$2m({}, tokens.WebappSystemTokensSet.st.borderWidth), tokens.WebappComponentsTokensSet.borderWidth),
3835
+ opacity: tokens.WebappComponentsTokensSet.opacity,
3827
3836
  typography: tokens.typography,
3828
- shadows: __spreadValues$2m({}, tokens.TottSystemTokensSet.st.boxShadow)
3837
+ shadows: __spreadValues$2m({}, tokens.WebappSystemTokensSet.st.boxShadow)
3829
3838
  };
3830
3839
 
3831
3840
  var __defProp$2l = Object.defineProperty;
@@ -3847,21 +3856,22 @@
3847
3856
  return a;
3848
3857
  };
3849
3858
  var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
3850
- const CamphouseLightSkin = {
3851
- colors: __spreadProps$w(__spreadValues$2l(__spreadValues$2l({}, tokens.CamphouseLightSystemTokensSet.st.color), tokens.CamphouseLightComponentsTokensSet.color), {
3852
- text: __spreadValues$2l(__spreadValues$2l({}, tokens.CamphouseLightSystemTokensSet.st.color.text), tokens.CamphouseLightComponentsTokensSet.color.text),
3853
- border: __spreadValues$2l(__spreadValues$2l({}, tokens.CamphouseLightSystemTokensSet.st.color.border), tokens.CamphouseLightComponentsTokensSet.color.border)
3859
+ const TottSkin = {
3860
+ colors: __spreadProps$w(__spreadValues$2l(__spreadValues$2l({}, tokens.TottSystemTokensSet.st.color), tokens.TottComponentsTokensSet.color), {
3861
+ border: __spreadValues$2l(__spreadValues$2l({}, tokens.TottSystemTokensSet.st.color.border), tokens.TottComponentsTokensSet.color.border)
3854
3862
  }),
3855
- sizes: tokens.CamphouseLightComponentsTokensSet.sizing,
3856
- space: tokens.CamphouseLightComponentsTokensSet.spacing,
3857
- radii: __spreadValues$2l(__spreadValues$2l({}, tokens.CamphouseLightSystemTokensSet.st.borderRadius), tokens.CamphouseLightComponentsTokensSet.borderRadius),
3858
- borders: __spreadValues$2l(__spreadValues$2l({}, tokens.CamphouseLightSystemTokensSet.st.borderWidth), tokens.CamphouseLightComponentsTokensSet.borderWidth),
3859
- opacity: tokens.CamphouseLightComponentsTokensSet.opacity,
3863
+ sizes: tokens.TottComponentsTokensSet.sizing,
3864
+ space: tokens.TottComponentsTokensSet.spacing,
3865
+ radii: __spreadValues$2l(__spreadValues$2l({}, tokens.TottSystemTokensSet.st.borderRadius), tokens.TottComponentsTokensSet.borderRadius),
3866
+ borders: __spreadValues$2l(__spreadValues$2l({}, tokens.TottSystemTokensSet.st.borderWidth), tokens.TottComponentsTokensSet.borderWidth),
3867
+ opacity: tokens.TottComponentsTokensSet.opacity,
3860
3868
  typography: tokens.typography,
3861
- shadows: __spreadValues$2l({}, tokens.CamphouseLightSystemTokensSet.st.boxShadow)
3869
+ shadows: __spreadValues$2l({}, tokens.TottSystemTokensSet.st.boxShadow)
3862
3870
  };
3863
3871
 
3864
3872
  var __defProp$2k = Object.defineProperty;
3873
+ var __defProps$v = Object.defineProperties;
3874
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
3865
3875
  var __getOwnPropSymbols$2k = Object.getOwnPropertySymbols;
3866
3876
  var __hasOwnProp$2k = Object.prototype.hasOwnProperty;
3867
3877
  var __propIsEnum$2k = Object.prototype.propertyIsEnumerable;
@@ -3877,6 +3887,37 @@
3877
3887
  }
3878
3888
  return a;
3879
3889
  };
3890
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
3891
+ const CamphouseLightSkin = {
3892
+ colors: __spreadProps$v(__spreadValues$2k(__spreadValues$2k({}, tokens.CamphouseLightSystemTokensSet.st.color), tokens.CamphouseLightComponentsTokensSet.color), {
3893
+ text: __spreadValues$2k(__spreadValues$2k({}, tokens.CamphouseLightSystemTokensSet.st.color.text), tokens.CamphouseLightComponentsTokensSet.color.text),
3894
+ border: __spreadValues$2k(__spreadValues$2k({}, tokens.CamphouseLightSystemTokensSet.st.color.border), tokens.CamphouseLightComponentsTokensSet.color.border)
3895
+ }),
3896
+ sizes: tokens.CamphouseLightComponentsTokensSet.sizing,
3897
+ space: tokens.CamphouseLightComponentsTokensSet.spacing,
3898
+ radii: __spreadValues$2k(__spreadValues$2k({}, tokens.CamphouseLightSystemTokensSet.st.borderRadius), tokens.CamphouseLightComponentsTokensSet.borderRadius),
3899
+ borders: __spreadValues$2k(__spreadValues$2k({}, tokens.CamphouseLightSystemTokensSet.st.borderWidth), tokens.CamphouseLightComponentsTokensSet.borderWidth),
3900
+ opacity: tokens.CamphouseLightComponentsTokensSet.opacity,
3901
+ typography: tokens.typography,
3902
+ shadows: __spreadValues$2k({}, tokens.CamphouseLightSystemTokensSet.st.boxShadow)
3903
+ };
3904
+
3905
+ var __defProp$2j = Object.defineProperty;
3906
+ var __getOwnPropSymbols$2j = Object.getOwnPropertySymbols;
3907
+ var __hasOwnProp$2j = Object.prototype.hasOwnProperty;
3908
+ var __propIsEnum$2j = Object.prototype.propertyIsEnumerable;
3909
+ var __defNormalProp$2j = (obj, key, value) => key in obj ? __defProp$2j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3910
+ var __spreadValues$2j = (a, b) => {
3911
+ for (var prop in b || (b = {}))
3912
+ if (__hasOwnProp$2j.call(b, prop))
3913
+ __defNormalProp$2j(a, prop, b[prop]);
3914
+ if (__getOwnPropSymbols$2j)
3915
+ for (var prop of __getOwnPropSymbols$2j(b)) {
3916
+ if (__propIsEnum$2j.call(b, prop))
3917
+ __defNormalProp$2j(a, prop, b[prop]);
3918
+ }
3919
+ return a;
3920
+ };
3880
3921
  const overrides = {
3881
3922
  config: {
3882
3923
  cssVarPrefix: ""
@@ -3890,7 +3931,7 @@
3890
3931
  }
3891
3932
  },
3892
3933
  styles: {
3893
- global: __spreadValues$2k({
3934
+ global: __spreadValues$2j({
3894
3935
  html: {
3895
3936
  scrollBehavior: "smooth"
3896
3937
  },
@@ -3906,7 +3947,7 @@
3906
3947
  heading: "Inter, sans-serif",
3907
3948
  body: "Inter, sans-serif"
3908
3949
  },
3909
- components: __spreadValues$2k({}, components),
3950
+ components: __spreadValues$2j({}, components),
3910
3951
  colors: tokens.palette,
3911
3952
  zIndices: tokens.coreZIndex,
3912
3953
  sizes: tokens.coreSizing,
@@ -3922,33 +3963,33 @@
3922
3963
  const tottTheme = react.extendTheme(overrides, TottSkin);
3923
3964
  const camphouseLightTheme = react.extendTheme(overrides, CamphouseLightSkin);
3924
3965
 
3925
- var __defProp$2j = Object.defineProperty;
3926
- var __defProps$v = Object.defineProperties;
3927
- var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
3928
- var __getOwnPropSymbols$2j = Object.getOwnPropertySymbols;
3929
- var __hasOwnProp$2j = Object.prototype.hasOwnProperty;
3930
- var __propIsEnum$2j = Object.prototype.propertyIsEnumerable;
3931
- var __defNormalProp$2j = (obj, key, value) => key in obj ? __defProp$2j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3932
- var __spreadValues$2j = (a, b) => {
3966
+ var __defProp$2i = Object.defineProperty;
3967
+ var __defProps$u = Object.defineProperties;
3968
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
3969
+ var __getOwnPropSymbols$2i = Object.getOwnPropertySymbols;
3970
+ var __hasOwnProp$2i = Object.prototype.hasOwnProperty;
3971
+ var __propIsEnum$2i = Object.prototype.propertyIsEnumerable;
3972
+ var __defNormalProp$2i = (obj, key, value) => key in obj ? __defProp$2i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3973
+ var __spreadValues$2i = (a, b) => {
3933
3974
  for (var prop in b || (b = {}))
3934
- if (__hasOwnProp$2j.call(b, prop))
3935
- __defNormalProp$2j(a, prop, b[prop]);
3936
- if (__getOwnPropSymbols$2j)
3937
- for (var prop of __getOwnPropSymbols$2j(b)) {
3938
- if (__propIsEnum$2j.call(b, prop))
3939
- __defNormalProp$2j(a, prop, b[prop]);
3975
+ if (__hasOwnProp$2i.call(b, prop))
3976
+ __defNormalProp$2i(a, prop, b[prop]);
3977
+ if (__getOwnPropSymbols$2i)
3978
+ for (var prop of __getOwnPropSymbols$2i(b)) {
3979
+ if (__propIsEnum$2i.call(b, prop))
3980
+ __defNormalProp$2i(a, prop, b[prop]);
3940
3981
  }
3941
3982
  return a;
3942
3983
  };
3943
- var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
3944
- var __objRest$1V = (source, exclude) => {
3984
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
3985
+ var __objRest$1X = (source, exclude) => {
3945
3986
  var target = {};
3946
3987
  for (var prop in source)
3947
- if (__hasOwnProp$2j.call(source, prop) && exclude.indexOf(prop) < 0)
3988
+ if (__hasOwnProp$2i.call(source, prop) && exclude.indexOf(prop) < 0)
3948
3989
  target[prop] = source[prop];
3949
- if (source != null && __getOwnPropSymbols$2j)
3950
- for (var prop of __getOwnPropSymbols$2j(source)) {
3951
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2j.call(source, prop))
3990
+ if (source != null && __getOwnPropSymbols$2i)
3991
+ for (var prop of __getOwnPropSymbols$2i(source)) {
3992
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$2i.call(source, prop))
3952
3993
  target[prop] = source[prop];
3953
3994
  }
3954
3995
  return target;
@@ -3962,7 +4003,7 @@
3962
4003
  "data-testid": testId,
3963
4004
  value = [],
3964
4005
  onError
3965
- } = _b, rest = __objRest$1V(_b, [
4006
+ } = _b, rest = __objRest$1X(_b, [
3966
4007
  "options",
3967
4008
  "onChange",
3968
4009
  "isLoading",
@@ -4022,7 +4063,7 @@
4022
4063
  };
4023
4064
  return /* @__PURE__ */ React.createElement(react.Box, { w: "full", "data-testid": testId }, /* @__PURE__ */ React.createElement(
4024
4065
  CustomSelect,
4025
- __spreadValues$2j(__spreadProps$v(__spreadValues$2j({
4066
+ __spreadValues$2i(__spreadProps$u(__spreadValues$2i({
4026
4067
  isMulti: true,
4027
4068
  menuPortalTarget: document.body,
4028
4069
  placeholder: "Type something and press Enter or comma...",
@@ -4050,36 +4091,36 @@
4050
4091
  components: {
4051
4092
  DropdownIndicator: () => null
4052
4093
  },
4053
- styles: { menuPortal: (base) => __spreadProps$v(__spreadValues$2j({}, base), { zIndex: theme.zIndices.popover }) },
4094
+ styles: { menuPortal: (base) => __spreadProps$u(__spreadValues$2i({}, base), { zIndex: theme.zIndices.popover }) },
4054
4095
  formatCreateLabel: (textInputValue) => `Add tag "${textInputValue}"`
4055
4096
  }), rest)
4056
4097
  ));
4057
4098
  }
4058
4099
 
4059
- var __defProp$2i = Object.defineProperty;
4060
- var __getOwnPropSymbols$2i = Object.getOwnPropertySymbols;
4061
- var __hasOwnProp$2i = Object.prototype.hasOwnProperty;
4062
- var __propIsEnum$2i = Object.prototype.propertyIsEnumerable;
4063
- var __defNormalProp$2i = (obj, key, value) => key in obj ? __defProp$2i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4064
- var __spreadValues$2i = (a, b) => {
4100
+ var __defProp$2h = Object.defineProperty;
4101
+ var __getOwnPropSymbols$2h = Object.getOwnPropertySymbols;
4102
+ var __hasOwnProp$2h = Object.prototype.hasOwnProperty;
4103
+ var __propIsEnum$2h = Object.prototype.propertyIsEnumerable;
4104
+ var __defNormalProp$2h = (obj, key, value) => key in obj ? __defProp$2h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4105
+ var __spreadValues$2h = (a, b) => {
4065
4106
  for (var prop in b || (b = {}))
4066
- if (__hasOwnProp$2i.call(b, prop))
4067
- __defNormalProp$2i(a, prop, b[prop]);
4068
- if (__getOwnPropSymbols$2i)
4069
- for (var prop of __getOwnPropSymbols$2i(b)) {
4070
- if (__propIsEnum$2i.call(b, prop))
4071
- __defNormalProp$2i(a, prop, b[prop]);
4107
+ if (__hasOwnProp$2h.call(b, prop))
4108
+ __defNormalProp$2h(a, prop, b[prop]);
4109
+ if (__getOwnPropSymbols$2h)
4110
+ for (var prop of __getOwnPropSymbols$2h(b)) {
4111
+ if (__propIsEnum$2h.call(b, prop))
4112
+ __defNormalProp$2h(a, prop, b[prop]);
4072
4113
  }
4073
4114
  return a;
4074
4115
  };
4075
- var __objRest$1U = (source, exclude) => {
4116
+ var __objRest$1W = (source, exclude) => {
4076
4117
  var target = {};
4077
4118
  for (var prop in source)
4078
- if (__hasOwnProp$2i.call(source, prop) && exclude.indexOf(prop) < 0)
4119
+ if (__hasOwnProp$2h.call(source, prop) && exclude.indexOf(prop) < 0)
4079
4120
  target[prop] = source[prop];
4080
- if (source != null && __getOwnPropSymbols$2i)
4081
- for (var prop of __getOwnPropSymbols$2i(source)) {
4082
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2i.call(source, prop))
4121
+ if (source != null && __getOwnPropSymbols$2h)
4122
+ for (var prop of __getOwnPropSymbols$2h(source)) {
4123
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$2h.call(source, prop))
4083
4124
  target[prop] = source[prop];
4084
4125
  }
4085
4126
  return target;
@@ -4089,7 +4130,7 @@
4089
4130
  name,
4090
4131
  image,
4091
4132
  variant = "square"
4092
- } = _b, rest = __objRest$1U(_b, [
4133
+ } = _b, rest = __objRest$1W(_b, [
4093
4134
  "name",
4094
4135
  "image",
4095
4136
  "variant"
@@ -4098,10 +4139,10 @@
4098
4139
  const {
4099
4140
  container,
4100
4141
  text
4101
- } = react.useMultiStyleConfig("Avatar", __spreadValues$2i({ variant, image }, rest));
4142
+ } = react.useMultiStyleConfig("Avatar", __spreadValues$2h({ variant, image }, rest));
4102
4143
  return /* @__PURE__ */ React.createElement(
4103
4144
  react.chakra.div,
4104
- __spreadValues$2i({
4145
+ __spreadValues$2h({
4105
4146
  __css: container,
4106
4147
  "data-testid": "organization-logo-test-id"
4107
4148
  }, rest),
@@ -4115,30 +4156,30 @@
4115
4156
  );
4116
4157
  };
4117
4158
 
4118
- var __defProp$2h = Object.defineProperty;
4119
- var __getOwnPropSymbols$2h = Object.getOwnPropertySymbols;
4120
- var __hasOwnProp$2h = Object.prototype.hasOwnProperty;
4121
- var __propIsEnum$2h = Object.prototype.propertyIsEnumerable;
4122
- var __defNormalProp$2h = (obj, key, value) => key in obj ? __defProp$2h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4123
- var __spreadValues$2h = (a, b) => {
4159
+ var __defProp$2g = Object.defineProperty;
4160
+ var __getOwnPropSymbols$2g = Object.getOwnPropertySymbols;
4161
+ var __hasOwnProp$2g = Object.prototype.hasOwnProperty;
4162
+ var __propIsEnum$2g = Object.prototype.propertyIsEnumerable;
4163
+ var __defNormalProp$2g = (obj, key, value) => key in obj ? __defProp$2g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4164
+ var __spreadValues$2g = (a, b) => {
4124
4165
  for (var prop in b || (b = {}))
4125
- if (__hasOwnProp$2h.call(b, prop))
4126
- __defNormalProp$2h(a, prop, b[prop]);
4127
- if (__getOwnPropSymbols$2h)
4128
- for (var prop of __getOwnPropSymbols$2h(b)) {
4129
- if (__propIsEnum$2h.call(b, prop))
4130
- __defNormalProp$2h(a, prop, b[prop]);
4166
+ if (__hasOwnProp$2g.call(b, prop))
4167
+ __defNormalProp$2g(a, prop, b[prop]);
4168
+ if (__getOwnPropSymbols$2g)
4169
+ for (var prop of __getOwnPropSymbols$2g(b)) {
4170
+ if (__propIsEnum$2g.call(b, prop))
4171
+ __defNormalProp$2g(a, prop, b[prop]);
4131
4172
  }
4132
4173
  return a;
4133
4174
  };
4134
- var __objRest$1T = (source, exclude) => {
4175
+ var __objRest$1V = (source, exclude) => {
4135
4176
  var target = {};
4136
4177
  for (var prop in source)
4137
- if (__hasOwnProp$2h.call(source, prop) && exclude.indexOf(prop) < 0)
4178
+ if (__hasOwnProp$2g.call(source, prop) && exclude.indexOf(prop) < 0)
4138
4179
  target[prop] = source[prop];
4139
- if (source != null && __getOwnPropSymbols$2h)
4140
- for (var prop of __getOwnPropSymbols$2h(source)) {
4141
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2h.call(source, prop))
4180
+ if (source != null && __getOwnPropSymbols$2g)
4181
+ for (var prop of __getOwnPropSymbols$2g(source)) {
4182
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$2g.call(source, prop))
4142
4183
  target[prop] = source[prop];
4143
4184
  }
4144
4185
  return target;
@@ -4147,30 +4188,12 @@
4147
4188
  var _b = _a, {
4148
4189
  variant = "success",
4149
4190
  children
4150
- } = _b, rest = __objRest$1T(_b, [
4191
+ } = _b, rest = __objRest$1V(_b, [
4151
4192
  "variant",
4152
4193
  "children"
4153
4194
  ]);
4154
- return /* @__PURE__ */ React.createElement(react.Alert, __spreadValues$2h({ variant }, rest), children);
4155
- };
4156
-
4157
- var __defProp$2g = Object.defineProperty;
4158
- var __getOwnPropSymbols$2g = Object.getOwnPropertySymbols;
4159
- var __hasOwnProp$2g = Object.prototype.hasOwnProperty;
4160
- var __propIsEnum$2g = Object.prototype.propertyIsEnumerable;
4161
- var __defNormalProp$2g = (obj, key, value) => key in obj ? __defProp$2g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4162
- var __spreadValues$2g = (a, b) => {
4163
- for (var prop in b || (b = {}))
4164
- if (__hasOwnProp$2g.call(b, prop))
4165
- __defNormalProp$2g(a, prop, b[prop]);
4166
- if (__getOwnPropSymbols$2g)
4167
- for (var prop of __getOwnPropSymbols$2g(b)) {
4168
- if (__propIsEnum$2g.call(b, prop))
4169
- __defNormalProp$2g(a, prop, b[prop]);
4170
- }
4171
- return a;
4195
+ return /* @__PURE__ */ React.createElement(react.Alert, __spreadValues$2g({ variant }, rest), children);
4172
4196
  };
4173
- const AspectRatio = (props) => /* @__PURE__ */ React.createElement(react.AspectRatio, __spreadValues$2g({}, props));
4174
4197
 
4175
4198
  var __defProp$2f = Object.defineProperty;
4176
4199
  var __getOwnPropSymbols$2f = Object.getOwnPropertySymbols;
@@ -4188,14 +4211,32 @@
4188
4211
  }
4189
4212
  return a;
4190
4213
  };
4191
- var __objRest$1S = (source, exclude) => {
4214
+ const AspectRatio = (props) => /* @__PURE__ */ React.createElement(react.AspectRatio, __spreadValues$2f({}, props));
4215
+
4216
+ var __defProp$2e = Object.defineProperty;
4217
+ var __getOwnPropSymbols$2e = Object.getOwnPropertySymbols;
4218
+ var __hasOwnProp$2e = Object.prototype.hasOwnProperty;
4219
+ var __propIsEnum$2e = Object.prototype.propertyIsEnumerable;
4220
+ var __defNormalProp$2e = (obj, key, value) => key in obj ? __defProp$2e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4221
+ var __spreadValues$2e = (a, b) => {
4222
+ for (var prop in b || (b = {}))
4223
+ if (__hasOwnProp$2e.call(b, prop))
4224
+ __defNormalProp$2e(a, prop, b[prop]);
4225
+ if (__getOwnPropSymbols$2e)
4226
+ for (var prop of __getOwnPropSymbols$2e(b)) {
4227
+ if (__propIsEnum$2e.call(b, prop))
4228
+ __defNormalProp$2e(a, prop, b[prop]);
4229
+ }
4230
+ return a;
4231
+ };
4232
+ var __objRest$1U = (source, exclude) => {
4192
4233
  var target = {};
4193
4234
  for (var prop in source)
4194
- if (__hasOwnProp$2f.call(source, prop) && exclude.indexOf(prop) < 0)
4235
+ if (__hasOwnProp$2e.call(source, prop) && exclude.indexOf(prop) < 0)
4195
4236
  target[prop] = source[prop];
4196
- if (source != null && __getOwnPropSymbols$2f)
4197
- for (var prop of __getOwnPropSymbols$2f(source)) {
4198
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2f.call(source, prop))
4237
+ if (source != null && __getOwnPropSymbols$2e)
4238
+ for (var prop of __getOwnPropSymbols$2e(source)) {
4239
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$2e.call(source, prop))
4199
4240
  target[prop] = source[prop];
4200
4241
  }
4201
4242
  return target;
@@ -4206,7 +4247,7 @@
4206
4247
  size,
4207
4248
  color,
4208
4249
  boxSize
4209
- } = _b, rest = __objRest$1S(_b, [
4250
+ } = _b, rest = __objRest$1U(_b, [
4210
4251
  "as",
4211
4252
  "size",
4212
4253
  "color",
@@ -4216,7 +4257,7 @@
4216
4257
  const styles = react.useStyleConfig("Icon", { size, color, boxSize });
4217
4258
  return /* @__PURE__ */ React.createElement(
4218
4259
  react.Icon,
4219
- __spreadValues$2f({
4260
+ __spreadValues$2e({
4220
4261
  ref,
4221
4262
  sx: styles
4222
4263
  }, rest),
@@ -4231,30 +4272,30 @@
4231
4272
  return /* @__PURE__ */ React.createElement(react.chakra.span, { sx: badge }, notificationCount > 999 ? "999+" : notificationCount);
4232
4273
  };
4233
4274
 
4234
- var __defProp$2e = Object.defineProperty;
4235
- var __getOwnPropSymbols$2e = Object.getOwnPropertySymbols;
4236
- var __hasOwnProp$2e = Object.prototype.hasOwnProperty;
4237
- var __propIsEnum$2e = Object.prototype.propertyIsEnumerable;
4238
- var __defNormalProp$2e = (obj, key, value) => key in obj ? __defProp$2e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4239
- var __spreadValues$2e = (a, b) => {
4275
+ var __defProp$2d = Object.defineProperty;
4276
+ var __getOwnPropSymbols$2d = Object.getOwnPropertySymbols;
4277
+ var __hasOwnProp$2d = Object.prototype.hasOwnProperty;
4278
+ var __propIsEnum$2d = Object.prototype.propertyIsEnumerable;
4279
+ var __defNormalProp$2d = (obj, key, value) => key in obj ? __defProp$2d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4280
+ var __spreadValues$2d = (a, b) => {
4240
4281
  for (var prop in b || (b = {}))
4241
- if (__hasOwnProp$2e.call(b, prop))
4242
- __defNormalProp$2e(a, prop, b[prop]);
4243
- if (__getOwnPropSymbols$2e)
4244
- for (var prop of __getOwnPropSymbols$2e(b)) {
4245
- if (__propIsEnum$2e.call(b, prop))
4246
- __defNormalProp$2e(a, prop, b[prop]);
4282
+ if (__hasOwnProp$2d.call(b, prop))
4283
+ __defNormalProp$2d(a, prop, b[prop]);
4284
+ if (__getOwnPropSymbols$2d)
4285
+ for (var prop of __getOwnPropSymbols$2d(b)) {
4286
+ if (__propIsEnum$2d.call(b, prop))
4287
+ __defNormalProp$2d(a, prop, b[prop]);
4247
4288
  }
4248
4289
  return a;
4249
4290
  };
4250
- var __objRest$1R = (source, exclude) => {
4291
+ var __objRest$1T = (source, exclude) => {
4251
4292
  var target = {};
4252
4293
  for (var prop in source)
4253
- if (__hasOwnProp$2e.call(source, prop) && exclude.indexOf(prop) < 0)
4294
+ if (__hasOwnProp$2d.call(source, prop) && exclude.indexOf(prop) < 0)
4254
4295
  target[prop] = source[prop];
4255
- if (source != null && __getOwnPropSymbols$2e)
4256
- for (var prop of __getOwnPropSymbols$2e(source)) {
4257
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2e.call(source, prop))
4296
+ if (source != null && __getOwnPropSymbols$2d)
4297
+ for (var prop of __getOwnPropSymbols$2d(source)) {
4298
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$2d.call(source, prop))
4258
4299
  target[prop] = source[prop];
4259
4300
  }
4260
4301
  return target;
@@ -4267,7 +4308,7 @@
4267
4308
  image,
4268
4309
  size,
4269
4310
  bgColor
4270
- } = _b, rest = __objRest$1R(_b, [
4311
+ } = _b, rest = __objRest$1T(_b, [
4271
4312
  "variant",
4272
4313
  "notificationCount",
4273
4314
  "name",
@@ -4282,7 +4323,7 @@
4282
4323
  name,
4283
4324
  bgColor
4284
4325
  });
4285
- return /* @__PURE__ */ React.createElement(react.Box, __spreadValues$2e({ __css: container, "data-testid": "avatar-test-id" }, rest), image ? /* @__PURE__ */ React.createElement(
4326
+ return /* @__PURE__ */ React.createElement(react.Box, __spreadValues$2d({ __css: container, "data-testid": "avatar-test-id" }, rest), image ? /* @__PURE__ */ React.createElement(
4286
4327
  react.chakra.img,
4287
4328
  {
4288
4329
  alt: name,
@@ -4299,54 +4340,6 @@
4299
4340
  ), notificationCount > 0 && /* @__PURE__ */ React.createElement(AvatarBadge, { notificationCount }));
4300
4341
  };
4301
4342
 
4302
- var __defProp$2d = Object.defineProperty;
4303
- var __getOwnPropSymbols$2d = Object.getOwnPropertySymbols;
4304
- var __hasOwnProp$2d = Object.prototype.hasOwnProperty;
4305
- var __propIsEnum$2d = Object.prototype.propertyIsEnumerable;
4306
- var __defNormalProp$2d = (obj, key, value) => key in obj ? __defProp$2d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4307
- var __spreadValues$2d = (a, b) => {
4308
- for (var prop in b || (b = {}))
4309
- if (__hasOwnProp$2d.call(b, prop))
4310
- __defNormalProp$2d(a, prop, b[prop]);
4311
- if (__getOwnPropSymbols$2d)
4312
- for (var prop of __getOwnPropSymbols$2d(b)) {
4313
- if (__propIsEnum$2d.call(b, prop))
4314
- __defNormalProp$2d(a, prop, b[prop]);
4315
- }
4316
- return a;
4317
- };
4318
- var __objRest$1Q = (source, exclude) => {
4319
- var target = {};
4320
- for (var prop in source)
4321
- if (__hasOwnProp$2d.call(source, prop) && exclude.indexOf(prop) < 0)
4322
- target[prop] = source[prop];
4323
- if (source != null && __getOwnPropSymbols$2d)
4324
- for (var prop of __getOwnPropSymbols$2d(source)) {
4325
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2d.call(source, prop))
4326
- target[prop] = source[prop];
4327
- }
4328
- return target;
4329
- };
4330
- const H1 = React.forwardRef((_a, ref) => {
4331
- var _b = _a, {
4332
- children,
4333
- sx = {}
4334
- } = _b, rest = __objRest$1Q(_b, [
4335
- "children",
4336
- "sx"
4337
- ]);
4338
- const styles = react.useStyleConfig("H1", { sx });
4339
- return /* @__PURE__ */ React.createElement(
4340
- react.Heading,
4341
- __spreadValues$2d({
4342
- as: "h1",
4343
- sx: styles,
4344
- ref
4345
- }, rest),
4346
- children
4347
- );
4348
- });
4349
-
4350
4343
  var __defProp$2c = Object.defineProperty;
4351
4344
  var __getOwnPropSymbols$2c = Object.getOwnPropertySymbols;
4352
4345
  var __hasOwnProp$2c = Object.prototype.hasOwnProperty;
@@ -4363,7 +4356,7 @@
4363
4356
  }
4364
4357
  return a;
4365
4358
  };
4366
- var __objRest$1P = (source, exclude) => {
4359
+ var __objRest$1S = (source, exclude) => {
4367
4360
  var target = {};
4368
4361
  for (var prop in source)
4369
4362
  if (__hasOwnProp$2c.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4375,19 +4368,19 @@
4375
4368
  }
4376
4369
  return target;
4377
4370
  };
4378
- const H2 = React.forwardRef((_a, ref) => {
4371
+ const H1 = React.forwardRef((_a, ref) => {
4379
4372
  var _b = _a, {
4380
4373
  children,
4381
4374
  sx = {}
4382
- } = _b, rest = __objRest$1P(_b, [
4375
+ } = _b, rest = __objRest$1S(_b, [
4383
4376
  "children",
4384
4377
  "sx"
4385
4378
  ]);
4386
- const styles = react.useStyleConfig("H2", { sx });
4379
+ const styles = react.useStyleConfig("H1", { sx });
4387
4380
  return /* @__PURE__ */ React.createElement(
4388
4381
  react.Heading,
4389
4382
  __spreadValues$2c({
4390
- as: "h2",
4383
+ as: "h1",
4391
4384
  sx: styles,
4392
4385
  ref
4393
4386
  }, rest),
@@ -4411,7 +4404,7 @@
4411
4404
  }
4412
4405
  return a;
4413
4406
  };
4414
- var __objRest$1O = (source, exclude) => {
4407
+ var __objRest$1R = (source, exclude) => {
4415
4408
  var target = {};
4416
4409
  for (var prop in source)
4417
4410
  if (__hasOwnProp$2b.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4423,19 +4416,19 @@
4423
4416
  }
4424
4417
  return target;
4425
4418
  };
4426
- const H3 = React.forwardRef((_a, ref) => {
4419
+ const H2 = React.forwardRef((_a, ref) => {
4427
4420
  var _b = _a, {
4428
4421
  children,
4429
4422
  sx = {}
4430
- } = _b, rest = __objRest$1O(_b, [
4423
+ } = _b, rest = __objRest$1R(_b, [
4431
4424
  "children",
4432
4425
  "sx"
4433
4426
  ]);
4434
- const styles = react.useStyleConfig("H3", { sx });
4427
+ const styles = react.useStyleConfig("H2", { sx });
4435
4428
  return /* @__PURE__ */ React.createElement(
4436
4429
  react.Heading,
4437
4430
  __spreadValues$2b({
4438
- as: "h3",
4431
+ as: "h2",
4439
4432
  sx: styles,
4440
4433
  ref
4441
4434
  }, rest),
@@ -4459,7 +4452,7 @@
4459
4452
  }
4460
4453
  return a;
4461
4454
  };
4462
- var __objRest$1N = (source, exclude) => {
4455
+ var __objRest$1Q = (source, exclude) => {
4463
4456
  var target = {};
4464
4457
  for (var prop in source)
4465
4458
  if (__hasOwnProp$2a.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4471,19 +4464,19 @@
4471
4464
  }
4472
4465
  return target;
4473
4466
  };
4474
- const H4 = React.forwardRef((_a, ref) => {
4467
+ const H3 = React.forwardRef((_a, ref) => {
4475
4468
  var _b = _a, {
4476
4469
  children,
4477
4470
  sx = {}
4478
- } = _b, rest = __objRest$1N(_b, [
4471
+ } = _b, rest = __objRest$1Q(_b, [
4479
4472
  "children",
4480
4473
  "sx"
4481
4474
  ]);
4482
- const styles = react.useStyleConfig("H4", { sx });
4475
+ const styles = react.useStyleConfig("H3", { sx });
4483
4476
  return /* @__PURE__ */ React.createElement(
4484
4477
  react.Heading,
4485
4478
  __spreadValues$2a({
4486
- as: "h4",
4479
+ as: "h3",
4487
4480
  sx: styles,
4488
4481
  ref
4489
4482
  }, rest),
@@ -4507,7 +4500,7 @@
4507
4500
  }
4508
4501
  return a;
4509
4502
  };
4510
- var __objRest$1M = (source, exclude) => {
4503
+ var __objRest$1P = (source, exclude) => {
4511
4504
  var target = {};
4512
4505
  for (var prop in source)
4513
4506
  if (__hasOwnProp$29.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4519,19 +4512,19 @@
4519
4512
  }
4520
4513
  return target;
4521
4514
  };
4522
- const H5 = React.forwardRef((_a, ref) => {
4515
+ const H4 = React.forwardRef((_a, ref) => {
4523
4516
  var _b = _a, {
4524
4517
  children,
4525
4518
  sx = {}
4526
- } = _b, rest = __objRest$1M(_b, [
4519
+ } = _b, rest = __objRest$1P(_b, [
4527
4520
  "children",
4528
4521
  "sx"
4529
4522
  ]);
4530
- const styles = react.useStyleConfig("H5", { sx });
4523
+ const styles = react.useStyleConfig("H4", { sx });
4531
4524
  return /* @__PURE__ */ React.createElement(
4532
4525
  react.Heading,
4533
4526
  __spreadValues$29({
4534
- as: "h5",
4527
+ as: "h4",
4535
4528
  sx: styles,
4536
4529
  ref
4537
4530
  }, rest),
@@ -4555,7 +4548,7 @@
4555
4548
  }
4556
4549
  return a;
4557
4550
  };
4558
- var __objRest$1L = (source, exclude) => {
4551
+ var __objRest$1O = (source, exclude) => {
4559
4552
  var target = {};
4560
4553
  for (var prop in source)
4561
4554
  if (__hasOwnProp$28.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4567,19 +4560,19 @@
4567
4560
  }
4568
4561
  return target;
4569
4562
  };
4570
- const H6 = React.forwardRef((_a, ref) => {
4563
+ const H5 = React.forwardRef((_a, ref) => {
4571
4564
  var _b = _a, {
4572
4565
  children,
4573
4566
  sx = {}
4574
- } = _b, rest = __objRest$1L(_b, [
4567
+ } = _b, rest = __objRest$1O(_b, [
4575
4568
  "children",
4576
4569
  "sx"
4577
4570
  ]);
4578
- const styles = react.useStyleConfig("H6", { sx });
4571
+ const styles = react.useStyleConfig("H5", { sx });
4579
4572
  return /* @__PURE__ */ React.createElement(
4580
4573
  react.Heading,
4581
4574
  __spreadValues$28({
4582
- as: "h6",
4575
+ as: "h5",
4583
4576
  sx: styles,
4584
4577
  ref
4585
4578
  }, rest),
@@ -4603,7 +4596,7 @@
4603
4596
  }
4604
4597
  return a;
4605
4598
  };
4606
- var __objRest$1K = (source, exclude) => {
4599
+ var __objRest$1N = (source, exclude) => {
4607
4600
  var target = {};
4608
4601
  for (var prop in source)
4609
4602
  if (__hasOwnProp$27.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4615,21 +4608,19 @@
4615
4608
  }
4616
4609
  return target;
4617
4610
  };
4618
- const P = React.forwardRef((_a, ref) => {
4611
+ const H6 = React.forwardRef((_a, ref) => {
4619
4612
  var _b = _a, {
4620
4613
  children,
4621
- variant = "16",
4622
4614
  sx = {}
4623
- } = _b, rest = __objRest$1K(_b, [
4615
+ } = _b, rest = __objRest$1N(_b, [
4624
4616
  "children",
4625
- "variant",
4626
4617
  "sx"
4627
4618
  ]);
4628
- const styles = react.useStyleConfig("P", { variant, sx });
4619
+ const styles = react.useStyleConfig("H6", { sx });
4629
4620
  return /* @__PURE__ */ React.createElement(
4630
- react.Text,
4621
+ react.Heading,
4631
4622
  __spreadValues$27({
4632
- variant,
4623
+ as: "h6",
4633
4624
  sx: styles,
4634
4625
  ref
4635
4626
  }, rest),
@@ -4653,7 +4644,7 @@
4653
4644
  }
4654
4645
  return a;
4655
4646
  };
4656
- var __objRest$1J = (source, exclude) => {
4647
+ var __objRest$1M = (source, exclude) => {
4657
4648
  var target = {};
4658
4649
  for (var prop in source)
4659
4650
  if (__hasOwnProp$26.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4665,13 +4656,27 @@
4665
4656
  }
4666
4657
  return target;
4667
4658
  };
4668
- const Blockquote = React.forwardRef(
4669
- (_a, ref) => {
4670
- var _b = _a, { children, sx = {} } = _b, rest = __objRest$1J(_b, ["children", "sx"]);
4671
- const styles = react.useStyleConfig("Blockquote", { sx });
4672
- return /* @__PURE__ */ React.createElement(react.Text, __spreadValues$26({ as: "span", sx: styles, ref }, rest), children);
4673
- }
4674
- );
4659
+ const P = React.forwardRef((_a, ref) => {
4660
+ var _b = _a, {
4661
+ children,
4662
+ variant = "16",
4663
+ sx = {}
4664
+ } = _b, rest = __objRest$1M(_b, [
4665
+ "children",
4666
+ "variant",
4667
+ "sx"
4668
+ ]);
4669
+ const styles = react.useStyleConfig("P", { variant, sx });
4670
+ return /* @__PURE__ */ React.createElement(
4671
+ react.Text,
4672
+ __spreadValues$26({
4673
+ variant,
4674
+ sx: styles,
4675
+ ref
4676
+ }, rest),
4677
+ children
4678
+ );
4679
+ });
4675
4680
 
4676
4681
  var __defProp$25 = Object.defineProperty;
4677
4682
  var __getOwnPropSymbols$25 = Object.getOwnPropertySymbols;
@@ -4689,7 +4694,7 @@
4689
4694
  }
4690
4695
  return a;
4691
4696
  };
4692
- var __objRest$1I = (source, exclude) => {
4697
+ var __objRest$1L = (source, exclude) => {
4693
4698
  var target = {};
4694
4699
  for (var prop in source)
4695
4700
  if (__hasOwnProp$25.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4701,25 +4706,13 @@
4701
4706
  }
4702
4707
  return target;
4703
4708
  };
4704
- const Capitalized = React.forwardRef((_a, ref) => {
4705
- var _b = _a, {
4706
- children,
4707
- sx = {}
4708
- } = _b, rest = __objRest$1I(_b, [
4709
- "children",
4710
- "sx"
4711
- ]);
4712
- const styles = react.useStyleConfig("Capitalized", { sx });
4713
- return /* @__PURE__ */ React.createElement(
4714
- react.Text,
4715
- __spreadValues$25({
4716
- as: "span",
4717
- sx: styles,
4718
- ref
4719
- }, rest),
4720
- children
4721
- );
4722
- });
4709
+ const Blockquote = React.forwardRef(
4710
+ (_a, ref) => {
4711
+ var _b = _a, { children, sx = {} } = _b, rest = __objRest$1L(_b, ["children", "sx"]);
4712
+ const styles = react.useStyleConfig("Blockquote", { sx });
4713
+ return /* @__PURE__ */ React.createElement(react.Text, __spreadValues$25({ as: "span", sx: styles, ref }, rest), children);
4714
+ }
4715
+ );
4723
4716
 
4724
4717
  var __defProp$24 = Object.defineProperty;
4725
4718
  var __getOwnPropSymbols$24 = Object.getOwnPropertySymbols;
@@ -4737,7 +4730,7 @@
4737
4730
  }
4738
4731
  return a;
4739
4732
  };
4740
- var __objRest$1H = (source, exclude) => {
4733
+ var __objRest$1K = (source, exclude) => {
4741
4734
  var target = {};
4742
4735
  for (var prop in source)
4743
4736
  if (__hasOwnProp$24.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4749,15 +4742,15 @@
4749
4742
  }
4750
4743
  return target;
4751
4744
  };
4752
- const Lead = React.forwardRef((_a, ref) => {
4745
+ const Capitalized = React.forwardRef((_a, ref) => {
4753
4746
  var _b = _a, {
4754
4747
  children,
4755
4748
  sx = {}
4756
- } = _b, rest = __objRest$1H(_b, [
4749
+ } = _b, rest = __objRest$1K(_b, [
4757
4750
  "children",
4758
4751
  "sx"
4759
4752
  ]);
4760
- const styles = react.useStyleConfig("Lead", { sx });
4753
+ const styles = react.useStyleConfig("Capitalized", { sx });
4761
4754
  return /* @__PURE__ */ React.createElement(
4762
4755
  react.Text,
4763
4756
  __spreadValues$24({
@@ -4785,7 +4778,7 @@
4785
4778
  }
4786
4779
  return a;
4787
4780
  };
4788
- var __objRest$1G = (source, exclude) => {
4781
+ var __objRest$1J = (source, exclude) => {
4789
4782
  var target = {};
4790
4783
  for (var prop in source)
4791
4784
  if (__hasOwnProp$23.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4797,19 +4790,19 @@
4797
4790
  }
4798
4791
  return target;
4799
4792
  };
4800
- const Small = React.forwardRef((_a, ref) => {
4793
+ const Lead = React.forwardRef((_a, ref) => {
4801
4794
  var _b = _a, {
4802
4795
  children,
4803
4796
  sx = {}
4804
- } = _b, rest = __objRest$1G(_b, [
4797
+ } = _b, rest = __objRest$1J(_b, [
4805
4798
  "children",
4806
4799
  "sx"
4807
4800
  ]);
4808
- const styles = react.useStyleConfig("Small", { sx });
4801
+ const styles = react.useStyleConfig("Lead", { sx });
4809
4802
  return /* @__PURE__ */ React.createElement(
4810
4803
  react.Text,
4811
4804
  __spreadValues$23({
4812
- as: "small",
4805
+ as: "span",
4813
4806
  sx: styles,
4814
4807
  ref
4815
4808
  }, rest),
@@ -4833,7 +4826,7 @@
4833
4826
  }
4834
4827
  return a;
4835
4828
  };
4836
- var __objRest$1F = (source, exclude) => {
4829
+ var __objRest$1I = (source, exclude) => {
4837
4830
  var target = {};
4838
4831
  for (var prop in source)
4839
4832
  if (__hasOwnProp$22.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4845,19 +4838,19 @@
4845
4838
  }
4846
4839
  return target;
4847
4840
  };
4848
- const Tiny = React.forwardRef((_a, ref) => {
4841
+ const Small = React.forwardRef((_a, ref) => {
4849
4842
  var _b = _a, {
4850
4843
  children,
4851
4844
  sx = {}
4852
- } = _b, rest = __objRest$1F(_b, [
4845
+ } = _b, rest = __objRest$1I(_b, [
4853
4846
  "children",
4854
4847
  "sx"
4855
4848
  ]);
4856
- const styles = react.useStyleConfig("Tiny", { sx });
4849
+ const styles = react.useStyleConfig("Small", { sx });
4857
4850
  return /* @__PURE__ */ React.createElement(
4858
4851
  react.Text,
4859
4852
  __spreadValues$22({
4860
- as: "span",
4853
+ as: "small",
4861
4854
  sx: styles,
4862
4855
  ref
4863
4856
  }, rest),
@@ -4881,7 +4874,7 @@
4881
4874
  }
4882
4875
  return a;
4883
4876
  };
4884
- var __objRest$1E = (source, exclude) => {
4877
+ var __objRest$1H = (source, exclude) => {
4885
4878
  var target = {};
4886
4879
  for (var prop in source)
4887
4880
  if (__hasOwnProp$21.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4893,22 +4886,20 @@
4893
4886
  }
4894
4887
  return target;
4895
4888
  };
4896
- const Label = React.forwardRef((_a, ref) => {
4889
+ const Tiny = React.forwardRef((_a, ref) => {
4897
4890
  var _b = _a, {
4898
4891
  children,
4899
- size = "sm",
4900
4892
  sx = {}
4901
- } = _b, rest = __objRest$1E(_b, [
4893
+ } = _b, rest = __objRest$1H(_b, [
4902
4894
  "children",
4903
- "size",
4904
4895
  "sx"
4905
4896
  ]);
4906
- const styles = react.useStyleConfig("Label", { sx, size });
4897
+ const styles = react.useStyleConfig("Tiny", { sx });
4907
4898
  return /* @__PURE__ */ React.createElement(
4908
- react.FormLabel,
4899
+ react.Text,
4909
4900
  __spreadValues$21({
4901
+ as: "span",
4910
4902
  sx: styles,
4911
- requiredIndicator: /* @__PURE__ */ React.createElement(react.VisuallyHidden, null),
4912
4903
  ref
4913
4904
  }, rest),
4914
4905
  children
@@ -4931,7 +4922,7 @@
4931
4922
  }
4932
4923
  return a;
4933
4924
  };
4934
- var __objRest$1D = (source, exclude) => {
4925
+ var __objRest$1G = (source, exclude) => {
4935
4926
  var target = {};
4936
4927
  for (var prop in source)
4937
4928
  if (__hasOwnProp$20.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4943,13 +4934,63 @@
4943
4934
  }
4944
4935
  return target;
4945
4936
  };
4937
+ const Label = React.forwardRef((_a, ref) => {
4938
+ var _b = _a, {
4939
+ children,
4940
+ size = "sm",
4941
+ sx = {}
4942
+ } = _b, rest = __objRest$1G(_b, [
4943
+ "children",
4944
+ "size",
4945
+ "sx"
4946
+ ]);
4947
+ const styles = react.useStyleConfig("Label", { sx, size });
4948
+ return /* @__PURE__ */ React.createElement(
4949
+ react.FormLabel,
4950
+ __spreadValues$20({
4951
+ sx: styles,
4952
+ requiredIndicator: /* @__PURE__ */ React.createElement(react.VisuallyHidden, null),
4953
+ ref
4954
+ }, rest),
4955
+ children
4956
+ );
4957
+ });
4958
+
4959
+ var __defProp$1$ = Object.defineProperty;
4960
+ var __getOwnPropSymbols$1$ = Object.getOwnPropertySymbols;
4961
+ var __hasOwnProp$1$ = Object.prototype.hasOwnProperty;
4962
+ var __propIsEnum$1$ = Object.prototype.propertyIsEnumerable;
4963
+ var __defNormalProp$1$ = (obj, key, value) => key in obj ? __defProp$1$(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4964
+ var __spreadValues$1$ = (a, b) => {
4965
+ for (var prop in b || (b = {}))
4966
+ if (__hasOwnProp$1$.call(b, prop))
4967
+ __defNormalProp$1$(a, prop, b[prop]);
4968
+ if (__getOwnPropSymbols$1$)
4969
+ for (var prop of __getOwnPropSymbols$1$(b)) {
4970
+ if (__propIsEnum$1$.call(b, prop))
4971
+ __defNormalProp$1$(a, prop, b[prop]);
4972
+ }
4973
+ return a;
4974
+ };
4975
+ var __objRest$1F = (source, exclude) => {
4976
+ var target = {};
4977
+ for (var prop in source)
4978
+ if (__hasOwnProp$1$.call(source, prop) && exclude.indexOf(prop) < 0)
4979
+ target[prop] = source[prop];
4980
+ if (source != null && __getOwnPropSymbols$1$)
4981
+ for (var prop of __getOwnPropSymbols$1$(source)) {
4982
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1$.call(source, prop))
4983
+ target[prop] = source[prop];
4984
+ }
4985
+ return target;
4986
+ };
4946
4987
  const NumVal = React.forwardRef(
4947
4988
  (_a, ref) => {
4948
- var _b = _a, { children, size = "sm", sx = {} } = _b, rest = __objRest$1D(_b, ["children", "size", "sx"]);
4989
+ var _b = _a, { children, size = "sm", sx = {} } = _b, rest = __objRest$1F(_b, ["children", "size", "sx"]);
4949
4990
  const styles = react.useStyleConfig("NumVal", { sx, size });
4950
4991
  return /* @__PURE__ */ React.createElement(
4951
4992
  react.Text,
4952
- __spreadValues$20({
4993
+ __spreadValues$1$({
4953
4994
  as: "span",
4954
4995
  sx: styles,
4955
4996
  ref
@@ -5039,53 +5080,6 @@
5039
5080
  return { rect, containerRef };
5040
5081
  };
5041
5082
 
5042
- var __defProp$1$ = Object.defineProperty;
5043
- var __getOwnPropSymbols$1$ = Object.getOwnPropertySymbols;
5044
- var __hasOwnProp$1$ = Object.prototype.hasOwnProperty;
5045
- var __propIsEnum$1$ = Object.prototype.propertyIsEnumerable;
5046
- var __defNormalProp$1$ = (obj, key, value) => key in obj ? __defProp$1$(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5047
- var __spreadValues$1$ = (a, b) => {
5048
- for (var prop in b || (b = {}))
5049
- if (__hasOwnProp$1$.call(b, prop))
5050
- __defNormalProp$1$(a, prop, b[prop]);
5051
- if (__getOwnPropSymbols$1$)
5052
- for (var prop of __getOwnPropSymbols$1$(b)) {
5053
- if (__propIsEnum$1$.call(b, prop))
5054
- __defNormalProp$1$(a, prop, b[prop]);
5055
- }
5056
- return a;
5057
- };
5058
- var __objRest$1C = (source, exclude) => {
5059
- var target = {};
5060
- for (var prop in source)
5061
- if (__hasOwnProp$1$.call(source, prop) && exclude.indexOf(prop) < 0)
5062
- target[prop] = source[prop];
5063
- if (source != null && __getOwnPropSymbols$1$)
5064
- for (var prop of __getOwnPropSymbols$1$(source)) {
5065
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1$.call(source, prop))
5066
- target[prop] = source[prop];
5067
- }
5068
- return target;
5069
- };
5070
- const AvatarGroup = (_a) => {
5071
- var _b = _a, {
5072
- children,
5073
- max = Infinity,
5074
- spacing = "-4"
5075
- } = _b, rest = __objRest$1C(_b, [
5076
- "children",
5077
- "max",
5078
- "spacing"
5079
- ]);
5080
- const [nbrRemainingAvatars, setNbrRemainingAvatars] = React.useState(0);
5081
- const childrenWithMargin = getChildrenWithProps(
5082
- children,
5083
- { ml: spacing },
5084
- (_child, idx) => idx > 0
5085
- );
5086
- return /* @__PURE__ */ React.createElement(react.HStack, __spreadValues$1$({ bgColor: "background.default" }, rest), /* @__PURE__ */ React.createElement(react.HStack, { spacing: 0 }, /* @__PURE__ */ React.createElement(OverflowGroup, { max, onChange: setNbrRemainingAvatars }, childrenWithMargin)), nbrRemainingAvatars > 0 && /* @__PURE__ */ React.createElement(Small, { sx: { color: "brand" } }, "+", nbrRemainingAvatars));
5087
- };
5088
-
5089
5083
  var __defProp$1_ = Object.defineProperty;
5090
5084
  var __getOwnPropSymbols$1_ = Object.getOwnPropertySymbols;
5091
5085
  var __hasOwnProp$1_ = Object.prototype.hasOwnProperty;
@@ -5102,7 +5096,7 @@
5102
5096
  }
5103
5097
  return a;
5104
5098
  };
5105
- var __objRest$1B = (source, exclude) => {
5099
+ var __objRest$1E = (source, exclude) => {
5106
5100
  var target = {};
5107
5101
  for (var prop in source)
5108
5102
  if (__hasOwnProp$1_.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -5114,22 +5108,24 @@
5114
5108
  }
5115
5109
  return target;
5116
5110
  };
5117
- const Badge = React.forwardRef((props, ref) => {
5118
- const _a = props, {
5111
+ const AvatarGroup = (_a) => {
5112
+ var _b = _a, {
5119
5113
  children,
5120
- withIcon,
5121
- iconPosition = "left",
5122
- iconAs
5123
- } = _a, rest = __objRest$1B(_a, [
5114
+ max = Infinity,
5115
+ spacing = "-4"
5116
+ } = _b, rest = __objRest$1E(_b, [
5124
5117
  "children",
5125
- "withIcon",
5126
- "iconPosition",
5127
- "iconAs"
5118
+ "max",
5119
+ "spacing"
5128
5120
  ]);
5129
- const IconComponent = iconAs ? NorthlightIcons__namespace[iconAs] : NorthlightIcons.MediatoolLogoSolid;
5130
- const currentTheme = useCurrentTheme();
5131
- return /* @__PURE__ */ React.createElement(react.Badge, __spreadValues$1_({ ref, currentTheme }, rest), /* @__PURE__ */ React.createElement(react.Flex, { align: "center", gap: "1" }, withIcon && iconPosition === "left" && IconComponent && /* @__PURE__ */ React.createElement(Icon, { as: IconComponent, boxSize: "3" }), children, withIcon && iconPosition === "right" && IconComponent && /* @__PURE__ */ React.createElement(Icon, { as: IconComponent, boxSize: "3" })));
5132
- });
5121
+ const [nbrRemainingAvatars, setNbrRemainingAvatars] = React.useState(0);
5122
+ const childrenWithMargin = getChildrenWithProps(
5123
+ children,
5124
+ { ml: spacing },
5125
+ (_child, idx) => idx > 0
5126
+ );
5127
+ return /* @__PURE__ */ React.createElement(react.HStack, __spreadValues$1_({ bgColor: "background.default" }, rest), /* @__PURE__ */ React.createElement(react.HStack, { spacing: 0 }, /* @__PURE__ */ React.createElement(OverflowGroup, { max, onChange: setNbrRemainingAvatars }, childrenWithMargin)), nbrRemainingAvatars > 0 && /* @__PURE__ */ React.createElement(Small, { sx: { color: "brand" } }, "+", nbrRemainingAvatars));
5128
+ };
5133
5129
 
5134
5130
  var __defProp$1Z = Object.defineProperty;
5135
5131
  var __getOwnPropSymbols$1Z = Object.getOwnPropertySymbols;
@@ -5147,7 +5143,7 @@
5147
5143
  }
5148
5144
  return a;
5149
5145
  };
5150
- var __objRest$1A = (source, exclude) => {
5146
+ var __objRest$1D = (source, exclude) => {
5151
5147
  var target = {};
5152
5148
  for (var prop in source)
5153
5149
  if (__hasOwnProp$1Z.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -5159,19 +5155,22 @@
5159
5155
  }
5160
5156
  return target;
5161
5157
  };
5162
- const Blinker = (_a) => {
5163
- var _b = _a, {
5164
- color = "",
5165
- size,
5166
- isBlinking = true
5167
- } = _b, rest = __objRest$1A(_b, [
5168
- "color",
5169
- "size",
5170
- "isBlinking"
5158
+ const Badge = React.forwardRef((props, ref) => {
5159
+ const _a = props, {
5160
+ children,
5161
+ withIcon,
5162
+ iconPosition = "left",
5163
+ iconAs
5164
+ } = _a, rest = __objRest$1D(_a, [
5165
+ "children",
5166
+ "withIcon",
5167
+ "iconPosition",
5168
+ "iconAs"
5171
5169
  ]);
5172
- const styles = react.useStyleConfig("Blinker", { color, size, isBlinking });
5173
- return /* @__PURE__ */ React.createElement(react.Box, __spreadValues$1Z({ sx: styles, "data-testid": "blinker-test-id" }, rest));
5174
- };
5170
+ const IconComponent = iconAs ? NorthlightIcons__namespace[iconAs] : NorthlightIcons.MediatoolLogoSolid;
5171
+ const currentTheme = useCurrentTheme();
5172
+ return /* @__PURE__ */ React.createElement(react.Badge, __spreadValues$1Z({ ref, currentTheme }, rest), /* @__PURE__ */ React.createElement(react.Flex, { align: "center", gap: "1" }, withIcon && iconPosition === "left" && IconComponent && /* @__PURE__ */ React.createElement(Icon, { as: IconComponent, boxSize: "3" }), children, withIcon && iconPosition === "right" && IconComponent && /* @__PURE__ */ React.createElement(Icon, { as: IconComponent, boxSize: "3" })));
5173
+ });
5175
5174
 
5176
5175
  var __defProp$1Y = Object.defineProperty;
5177
5176
  var __getOwnPropSymbols$1Y = Object.getOwnPropertySymbols;
@@ -5189,7 +5188,7 @@
5189
5188
  }
5190
5189
  return a;
5191
5190
  };
5192
- var __objRest$1z = (source, exclude) => {
5191
+ var __objRest$1C = (source, exclude) => {
5193
5192
  var target = {};
5194
5193
  for (var prop in source)
5195
5194
  if (__hasOwnProp$1Y.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -5201,9 +5200,18 @@
5201
5200
  }
5202
5201
  return target;
5203
5202
  };
5204
- const Spinner = (_a) => {
5205
- var rest = __objRest$1z(_a, []);
5206
- return /* @__PURE__ */ React.createElement(react.Spinner, __spreadValues$1Y({}, rest));
5203
+ const Blinker = (_a) => {
5204
+ var _b = _a, {
5205
+ color = "",
5206
+ size,
5207
+ isBlinking = true
5208
+ } = _b, rest = __objRest$1C(_b, [
5209
+ "color",
5210
+ "size",
5211
+ "isBlinking"
5212
+ ]);
5213
+ const styles = react.useStyleConfig("Blinker", { color, size, isBlinking });
5214
+ return /* @__PURE__ */ React.createElement(react.Box, __spreadValues$1Y({ sx: styles, "data-testid": "blinker-test-id" }, rest));
5207
5215
  };
5208
5216
 
5209
5217
  var __defProp$1X = Object.defineProperty;
@@ -5222,14 +5230,47 @@
5222
5230
  }
5223
5231
  return a;
5224
5232
  };
5225
- var __objRest$1y = (source, exclude) => {
5233
+ var __objRest$1B = (source, exclude) => {
5234
+ var target = {};
5235
+ for (var prop in source)
5236
+ if (__hasOwnProp$1X.call(source, prop) && exclude.indexOf(prop) < 0)
5237
+ target[prop] = source[prop];
5238
+ if (source != null && __getOwnPropSymbols$1X)
5239
+ for (var prop of __getOwnPropSymbols$1X(source)) {
5240
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1X.call(source, prop))
5241
+ target[prop] = source[prop];
5242
+ }
5243
+ return target;
5244
+ };
5245
+ const Spinner = (_a) => {
5246
+ var rest = __objRest$1B(_a, []);
5247
+ return /* @__PURE__ */ React.createElement(react.Spinner, __spreadValues$1X({}, rest));
5248
+ };
5249
+
5250
+ var __defProp$1W = Object.defineProperty;
5251
+ var __getOwnPropSymbols$1W = Object.getOwnPropertySymbols;
5252
+ var __hasOwnProp$1W = Object.prototype.hasOwnProperty;
5253
+ var __propIsEnum$1W = Object.prototype.propertyIsEnumerable;
5254
+ var __defNormalProp$1W = (obj, key, value) => key in obj ? __defProp$1W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5255
+ var __spreadValues$1W = (a, b) => {
5256
+ for (var prop in b || (b = {}))
5257
+ if (__hasOwnProp$1W.call(b, prop))
5258
+ __defNormalProp$1W(a, prop, b[prop]);
5259
+ if (__getOwnPropSymbols$1W)
5260
+ for (var prop of __getOwnPropSymbols$1W(b)) {
5261
+ if (__propIsEnum$1W.call(b, prop))
5262
+ __defNormalProp$1W(a, prop, b[prop]);
5263
+ }
5264
+ return a;
5265
+ };
5266
+ var __objRest$1A = (source, exclude) => {
5226
5267
  var target = {};
5227
5268
  for (var prop in source)
5228
- if (__hasOwnProp$1X.call(source, prop) && exclude.indexOf(prop) < 0)
5269
+ if (__hasOwnProp$1W.call(source, prop) && exclude.indexOf(prop) < 0)
5229
5270
  target[prop] = source[prop];
5230
- if (source != null && __getOwnPropSymbols$1X)
5231
- for (var prop of __getOwnPropSymbols$1X(source)) {
5232
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1X.call(source, prop))
5271
+ if (source != null && __getOwnPropSymbols$1W)
5272
+ for (var prop of __getOwnPropSymbols$1W(source)) {
5273
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1W.call(source, prop))
5233
5274
  target[prop] = source[prop];
5234
5275
  }
5235
5276
  return target;
@@ -5242,10 +5283,10 @@
5242
5283
  };
5243
5284
  const Button = React.forwardRef(
5244
5285
  (_a, ref) => {
5245
- var _b = _a, { variant = "default", children, size = "md" } = _b, rest = __objRest$1y(_b, ["variant", "children", "size"]);
5286
+ var _b = _a, { variant = "default", children, size = "md" } = _b, rest = __objRest$1A(_b, ["variant", "children", "size"]);
5246
5287
  return /* @__PURE__ */ React.createElement(
5247
5288
  react.Button,
5248
- __spreadValues$1X({
5289
+ __spreadValues$1W({
5249
5290
  variant,
5250
5291
  ref,
5251
5292
  size,
@@ -5261,30 +5302,30 @@
5261
5302
  }
5262
5303
  );
5263
5304
 
5264
- var __defProp$1W = Object.defineProperty;
5265
- var __getOwnPropSymbols$1W = Object.getOwnPropertySymbols;
5266
- var __hasOwnProp$1W = Object.prototype.hasOwnProperty;
5267
- var __propIsEnum$1W = Object.prototype.propertyIsEnumerable;
5268
- var __defNormalProp$1W = (obj, key, value) => key in obj ? __defProp$1W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5269
- var __spreadValues$1W = (a, b) => {
5305
+ var __defProp$1V = Object.defineProperty;
5306
+ var __getOwnPropSymbols$1V = Object.getOwnPropertySymbols;
5307
+ var __hasOwnProp$1V = Object.prototype.hasOwnProperty;
5308
+ var __propIsEnum$1V = Object.prototype.propertyIsEnumerable;
5309
+ var __defNormalProp$1V = (obj, key, value) => key in obj ? __defProp$1V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5310
+ var __spreadValues$1V = (a, b) => {
5270
5311
  for (var prop in b || (b = {}))
5271
- if (__hasOwnProp$1W.call(b, prop))
5272
- __defNormalProp$1W(a, prop, b[prop]);
5273
- if (__getOwnPropSymbols$1W)
5274
- for (var prop of __getOwnPropSymbols$1W(b)) {
5275
- if (__propIsEnum$1W.call(b, prop))
5276
- __defNormalProp$1W(a, prop, b[prop]);
5312
+ if (__hasOwnProp$1V.call(b, prop))
5313
+ __defNormalProp$1V(a, prop, b[prop]);
5314
+ if (__getOwnPropSymbols$1V)
5315
+ for (var prop of __getOwnPropSymbols$1V(b)) {
5316
+ if (__propIsEnum$1V.call(b, prop))
5317
+ __defNormalProp$1V(a, prop, b[prop]);
5277
5318
  }
5278
5319
  return a;
5279
5320
  };
5280
- var __objRest$1x = (source, exclude) => {
5321
+ var __objRest$1z = (source, exclude) => {
5281
5322
  var target = {};
5282
5323
  for (var prop in source)
5283
- if (__hasOwnProp$1W.call(source, prop) && exclude.indexOf(prop) < 0)
5324
+ if (__hasOwnProp$1V.call(source, prop) && exclude.indexOf(prop) < 0)
5284
5325
  target[prop] = source[prop];
5285
- if (source != null && __getOwnPropSymbols$1W)
5286
- for (var prop of __getOwnPropSymbols$1W(source)) {
5287
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1W.call(source, prop))
5326
+ if (source != null && __getOwnPropSymbols$1V)
5327
+ for (var prop of __getOwnPropSymbols$1V(source)) {
5328
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1V.call(source, prop))
5288
5329
  target[prop] = source[prop];
5289
5330
  }
5290
5331
  return target;
@@ -5296,7 +5337,7 @@
5296
5337
  name,
5297
5338
  size = "md",
5298
5339
  variant = "default"
5299
- } = _b, rest = __objRest$1x(_b, [
5340
+ } = _b, rest = __objRest$1z(_b, [
5300
5341
  "value",
5301
5342
  "onChange",
5302
5343
  "name",
@@ -5306,7 +5347,7 @@
5306
5347
  const controlledValue = typeof value === "boolean" ? { isChecked: value } : { value };
5307
5348
  return /* @__PURE__ */ React.createElement(
5308
5349
  react.Checkbox,
5309
- __spreadValues$1W(__spreadValues$1W({
5350
+ __spreadValues$1V(__spreadValues$1V({
5310
5351
  size,
5311
5352
  id: name,
5312
5353
  onChange,
@@ -5331,30 +5372,30 @@
5331
5372
  return newObj;
5332
5373
  };
5333
5374
 
5334
- var __defProp$1V = Object.defineProperty;
5335
- var __getOwnPropSymbols$1V = Object.getOwnPropertySymbols;
5336
- var __hasOwnProp$1V = Object.prototype.hasOwnProperty;
5337
- var __propIsEnum$1V = Object.prototype.propertyIsEnumerable;
5338
- var __defNormalProp$1V = (obj, key, value) => key in obj ? __defProp$1V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5339
- var __spreadValues$1V = (a, b) => {
5375
+ var __defProp$1U = Object.defineProperty;
5376
+ var __getOwnPropSymbols$1U = Object.getOwnPropertySymbols;
5377
+ var __hasOwnProp$1U = Object.prototype.hasOwnProperty;
5378
+ var __propIsEnum$1U = Object.prototype.propertyIsEnumerable;
5379
+ var __defNormalProp$1U = (obj, key, value) => key in obj ? __defProp$1U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5380
+ var __spreadValues$1U = (a, b) => {
5340
5381
  for (var prop in b || (b = {}))
5341
- if (__hasOwnProp$1V.call(b, prop))
5342
- __defNormalProp$1V(a, prop, b[prop]);
5343
- if (__getOwnPropSymbols$1V)
5344
- for (var prop of __getOwnPropSymbols$1V(b)) {
5345
- if (__propIsEnum$1V.call(b, prop))
5346
- __defNormalProp$1V(a, prop, b[prop]);
5382
+ if (__hasOwnProp$1U.call(b, prop))
5383
+ __defNormalProp$1U(a, prop, b[prop]);
5384
+ if (__getOwnPropSymbols$1U)
5385
+ for (var prop of __getOwnPropSymbols$1U(b)) {
5386
+ if (__propIsEnum$1U.call(b, prop))
5387
+ __defNormalProp$1U(a, prop, b[prop]);
5347
5388
  }
5348
5389
  return a;
5349
5390
  };
5350
- var __objRest$1w = (source, exclude) => {
5391
+ var __objRest$1y = (source, exclude) => {
5351
5392
  var target = {};
5352
5393
  for (var prop in source)
5353
- if (__hasOwnProp$1V.call(source, prop) && exclude.indexOf(prop) < 0)
5394
+ if (__hasOwnProp$1U.call(source, prop) && exclude.indexOf(prop) < 0)
5354
5395
  target[prop] = source[prop];
5355
- if (source != null && __getOwnPropSymbols$1V)
5356
- for (var prop of __getOwnPropSymbols$1V(source)) {
5357
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1V.call(source, prop))
5396
+ if (source != null && __getOwnPropSymbols$1U)
5397
+ for (var prop of __getOwnPropSymbols$1U(source)) {
5398
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1U.call(source, prop))
5358
5399
  target[prop] = source[prop];
5359
5400
  }
5360
5401
  return target;
@@ -5371,7 +5412,7 @@
5371
5412
  shouldTrim = true,
5372
5413
  innerFormStyle = {},
5373
5414
  joiSchema
5374
- } = _b, rest = __objRest$1w(_b, [
5415
+ } = _b, rest = __objRest$1y(_b, [
5375
5416
  "initialValues",
5376
5417
  "onSubmit",
5377
5418
  "children",
@@ -5394,7 +5435,7 @@
5394
5435
  return joi.joiResolver(joiSchema);
5395
5436
  return void 0;
5396
5437
  };
5397
- const newMethods = methods || reactHookForm.useForm(__spreadValues$1V({
5438
+ const newMethods = methods || reactHookForm.useForm(__spreadValues$1U({
5398
5439
  defaultValues: initialValues,
5399
5440
  resolver: getResolver()
5400
5441
  }, formSettings));
@@ -5420,36 +5461,36 @@
5420
5461
  newMethods.trigger();
5421
5462
  e.preventDefault();
5422
5463
  };
5423
- return /* @__PURE__ */ React.createElement(reactHookForm.FormProvider, __spreadValues$1V(__spreadValues$1V({}, newMethods), rest), /* @__PURE__ */ React.createElement("form", { style: __spreadValues$1V({ width: "100%" }, innerFormStyle), onSubmit: handleSubmit }, typeof children === "function" ? children(newMethods) : children));
5464
+ return /* @__PURE__ */ React.createElement(reactHookForm.FormProvider, __spreadValues$1U(__spreadValues$1U({}, newMethods), rest), /* @__PURE__ */ React.createElement("form", { style: __spreadValues$1U({ width: "100%" }, innerFormStyle), onSubmit: handleSubmit }, typeof children === "function" ? children(newMethods) : children));
5424
5465
  });
5425
5466
 
5426
- var __defProp$1U = Object.defineProperty;
5427
- var __defProps$u = Object.defineProperties;
5428
- var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
5429
- var __getOwnPropSymbols$1U = Object.getOwnPropertySymbols;
5430
- var __hasOwnProp$1U = Object.prototype.hasOwnProperty;
5431
- var __propIsEnum$1U = Object.prototype.propertyIsEnumerable;
5432
- var __defNormalProp$1U = (obj, key, value) => key in obj ? __defProp$1U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5433
- var __spreadValues$1U = (a, b) => {
5467
+ var __defProp$1T = Object.defineProperty;
5468
+ var __defProps$t = Object.defineProperties;
5469
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
5470
+ var __getOwnPropSymbols$1T = Object.getOwnPropertySymbols;
5471
+ var __hasOwnProp$1T = Object.prototype.hasOwnProperty;
5472
+ var __propIsEnum$1T = Object.prototype.propertyIsEnumerable;
5473
+ var __defNormalProp$1T = (obj, key, value) => key in obj ? __defProp$1T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5474
+ var __spreadValues$1T = (a, b) => {
5434
5475
  for (var prop in b || (b = {}))
5435
- if (__hasOwnProp$1U.call(b, prop))
5436
- __defNormalProp$1U(a, prop, b[prop]);
5437
- if (__getOwnPropSymbols$1U)
5438
- for (var prop of __getOwnPropSymbols$1U(b)) {
5439
- if (__propIsEnum$1U.call(b, prop))
5440
- __defNormalProp$1U(a, prop, b[prop]);
5476
+ if (__hasOwnProp$1T.call(b, prop))
5477
+ __defNormalProp$1T(a, prop, b[prop]);
5478
+ if (__getOwnPropSymbols$1T)
5479
+ for (var prop of __getOwnPropSymbols$1T(b)) {
5480
+ if (__propIsEnum$1T.call(b, prop))
5481
+ __defNormalProp$1T(a, prop, b[prop]);
5441
5482
  }
5442
5483
  return a;
5443
5484
  };
5444
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
5445
- var __objRest$1v = (source, exclude) => {
5485
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
5486
+ var __objRest$1x = (source, exclude) => {
5446
5487
  var target = {};
5447
5488
  for (var prop in source)
5448
- if (__hasOwnProp$1U.call(source, prop) && exclude.indexOf(prop) < 0)
5489
+ if (__hasOwnProp$1T.call(source, prop) && exclude.indexOf(prop) < 0)
5449
5490
  target[prop] = source[prop];
5450
- if (source != null && __getOwnPropSymbols$1U)
5451
- for (var prop of __getOwnPropSymbols$1U(source)) {
5452
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1U.call(source, prop))
5491
+ if (source != null && __getOwnPropSymbols$1T)
5492
+ for (var prop of __getOwnPropSymbols$1T(source)) {
5493
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1T.call(source, prop))
5453
5494
  target[prop] = source[prop];
5454
5495
  }
5455
5496
  return target;
@@ -5457,12 +5498,12 @@
5457
5498
  const FormLabel = React.forwardRef((_a, ref) => {
5458
5499
  var _b = _a, {
5459
5500
  children: label
5460
- } = _b, rest = __objRest$1v(_b, [
5501
+ } = _b, rest = __objRest$1x(_b, [
5461
5502
  "children"
5462
5503
  ]);
5463
5504
  return /* @__PURE__ */ React.createElement(
5464
5505
  Label,
5465
- __spreadProps$u(__spreadValues$1U({
5506
+ __spreadProps$t(__spreadValues$1T({
5466
5507
  size: "sm",
5467
5508
  sx: {
5468
5509
  width: "80%",
@@ -5478,30 +5519,30 @@
5478
5519
  );
5479
5520
  });
5480
5521
 
5481
- var __defProp$1T = Object.defineProperty;
5482
- var __getOwnPropSymbols$1T = Object.getOwnPropertySymbols;
5483
- var __hasOwnProp$1T = Object.prototype.hasOwnProperty;
5484
- var __propIsEnum$1T = Object.prototype.propertyIsEnumerable;
5485
- var __defNormalProp$1T = (obj, key, value) => key in obj ? __defProp$1T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5486
- var __spreadValues$1T = (a, b) => {
5522
+ var __defProp$1S = Object.defineProperty;
5523
+ var __getOwnPropSymbols$1S = Object.getOwnPropertySymbols;
5524
+ var __hasOwnProp$1S = Object.prototype.hasOwnProperty;
5525
+ var __propIsEnum$1S = Object.prototype.propertyIsEnumerable;
5526
+ var __defNormalProp$1S = (obj, key, value) => key in obj ? __defProp$1S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5527
+ var __spreadValues$1S = (a, b) => {
5487
5528
  for (var prop in b || (b = {}))
5488
- if (__hasOwnProp$1T.call(b, prop))
5489
- __defNormalProp$1T(a, prop, b[prop]);
5490
- if (__getOwnPropSymbols$1T)
5491
- for (var prop of __getOwnPropSymbols$1T(b)) {
5492
- if (__propIsEnum$1T.call(b, prop))
5493
- __defNormalProp$1T(a, prop, b[prop]);
5529
+ if (__hasOwnProp$1S.call(b, prop))
5530
+ __defNormalProp$1S(a, prop, b[prop]);
5531
+ if (__getOwnPropSymbols$1S)
5532
+ for (var prop of __getOwnPropSymbols$1S(b)) {
5533
+ if (__propIsEnum$1S.call(b, prop))
5534
+ __defNormalProp$1S(a, prop, b[prop]);
5494
5535
  }
5495
5536
  return a;
5496
5537
  };
5497
- var __objRest$1u = (source, exclude) => {
5538
+ var __objRest$1w = (source, exclude) => {
5498
5539
  var target = {};
5499
5540
  for (var prop in source)
5500
- if (__hasOwnProp$1T.call(source, prop) && exclude.indexOf(prop) < 0)
5541
+ if (__hasOwnProp$1S.call(source, prop) && exclude.indexOf(prop) < 0)
5501
5542
  target[prop] = source[prop];
5502
- if (source != null && __getOwnPropSymbols$1T)
5503
- for (var prop of __getOwnPropSymbols$1T(source)) {
5504
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1T.call(source, prop))
5543
+ if (source != null && __getOwnPropSymbols$1S)
5544
+ for (var prop of __getOwnPropSymbols$1S(source)) {
5545
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1S.call(source, prop))
5505
5546
  target[prop] = source[prop];
5506
5547
  }
5507
5548
  return target;
@@ -5516,7 +5557,7 @@
5516
5557
  noLabelConnection = false,
5517
5558
  validate,
5518
5559
  control: passedControl
5519
- } = _b, rest = __objRest$1u(_b, [
5560
+ } = _b, rest = __objRest$1w(_b, [
5520
5561
  "name",
5521
5562
  "label",
5522
5563
  "children",
@@ -5532,7 +5573,7 @@
5532
5573
  const fieldError = getFieldError(name, errors);
5533
5574
  return /* @__PURE__ */ React.createElement(react.FormControl, { isInvalid: !!fieldError, isRequired, ref }, /* @__PURE__ */ React.createElement(
5534
5575
  react.Stack,
5535
- __spreadValues$1T({
5576
+ __spreadValues$1S({
5536
5577
  spacing: "auto",
5537
5578
  direction,
5538
5579
  alignItems: direction === "column" ? "stretch" : "center"
@@ -5560,30 +5601,30 @@
5560
5601
  return setValueRefreshed;
5561
5602
  };
5562
5603
 
5563
- var __defProp$1S = Object.defineProperty;
5564
- var __getOwnPropSymbols$1S = Object.getOwnPropertySymbols;
5565
- var __hasOwnProp$1S = Object.prototype.hasOwnProperty;
5566
- var __propIsEnum$1S = Object.prototype.propertyIsEnumerable;
5567
- var __defNormalProp$1S = (obj, key, value) => key in obj ? __defProp$1S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5568
- var __spreadValues$1S = (a, b) => {
5604
+ var __defProp$1R = Object.defineProperty;
5605
+ var __getOwnPropSymbols$1R = Object.getOwnPropertySymbols;
5606
+ var __hasOwnProp$1R = Object.prototype.hasOwnProperty;
5607
+ var __propIsEnum$1R = Object.prototype.propertyIsEnumerable;
5608
+ var __defNormalProp$1R = (obj, key, value) => key in obj ? __defProp$1R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5609
+ var __spreadValues$1R = (a, b) => {
5569
5610
  for (var prop in b || (b = {}))
5570
- if (__hasOwnProp$1S.call(b, prop))
5571
- __defNormalProp$1S(a, prop, b[prop]);
5572
- if (__getOwnPropSymbols$1S)
5573
- for (var prop of __getOwnPropSymbols$1S(b)) {
5574
- if (__propIsEnum$1S.call(b, prop))
5575
- __defNormalProp$1S(a, prop, b[prop]);
5611
+ if (__hasOwnProp$1R.call(b, prop))
5612
+ __defNormalProp$1R(a, prop, b[prop]);
5613
+ if (__getOwnPropSymbols$1R)
5614
+ for (var prop of __getOwnPropSymbols$1R(b)) {
5615
+ if (__propIsEnum$1R.call(b, prop))
5616
+ __defNormalProp$1R(a, prop, b[prop]);
5576
5617
  }
5577
5618
  return a;
5578
5619
  };
5579
- var __objRest$1t = (source, exclude) => {
5620
+ var __objRest$1v = (source, exclude) => {
5580
5621
  var target = {};
5581
5622
  for (var prop in source)
5582
- if (__hasOwnProp$1S.call(source, prop) && exclude.indexOf(prop) < 0)
5623
+ if (__hasOwnProp$1R.call(source, prop) && exclude.indexOf(prop) < 0)
5583
5624
  target[prop] = source[prop];
5584
- if (source != null && __getOwnPropSymbols$1S)
5585
- for (var prop of __getOwnPropSymbols$1S(source)) {
5586
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1S.call(source, prop))
5625
+ if (source != null && __getOwnPropSymbols$1R)
5626
+ for (var prop of __getOwnPropSymbols$1R(source)) {
5627
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1R.call(source, prop))
5587
5628
  target[prop] = source[prop];
5588
5629
  }
5589
5630
  return target;
@@ -5599,7 +5640,7 @@
5599
5640
  direction = "row",
5600
5641
  labelPlacement = "left",
5601
5642
  labelSize = "md"
5602
- } = _b, rest = __objRest$1t(_b, [
5643
+ } = _b, rest = __objRest$1v(_b, [
5603
5644
  "name",
5604
5645
  "label",
5605
5646
  "variant",
@@ -5634,7 +5675,7 @@
5634
5675
  },
5635
5676
  /* @__PURE__ */ React.createElement(
5636
5677
  Checkbox,
5637
- __spreadValues$1S({
5678
+ __spreadValues$1R({
5638
5679
  name,
5639
5680
  onChange: (e) => {
5640
5681
  onChange(e);
@@ -5651,30 +5692,30 @@
5651
5692
  );
5652
5693
  });
5653
5694
 
5654
- var __defProp$1R = Object.defineProperty;
5655
- var __getOwnPropSymbols$1R = Object.getOwnPropertySymbols;
5656
- var __hasOwnProp$1R = Object.prototype.hasOwnProperty;
5657
- var __propIsEnum$1R = Object.prototype.propertyIsEnumerable;
5658
- var __defNormalProp$1R = (obj, key, value) => key in obj ? __defProp$1R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5659
- var __spreadValues$1R = (a, b) => {
5695
+ var __defProp$1Q = Object.defineProperty;
5696
+ var __getOwnPropSymbols$1Q = Object.getOwnPropertySymbols;
5697
+ var __hasOwnProp$1Q = Object.prototype.hasOwnProperty;
5698
+ var __propIsEnum$1Q = Object.prototype.propertyIsEnumerable;
5699
+ var __defNormalProp$1Q = (obj, key, value) => key in obj ? __defProp$1Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5700
+ var __spreadValues$1Q = (a, b) => {
5660
5701
  for (var prop in b || (b = {}))
5661
- if (__hasOwnProp$1R.call(b, prop))
5662
- __defNormalProp$1R(a, prop, b[prop]);
5663
- if (__getOwnPropSymbols$1R)
5664
- for (var prop of __getOwnPropSymbols$1R(b)) {
5665
- if (__propIsEnum$1R.call(b, prop))
5666
- __defNormalProp$1R(a, prop, b[prop]);
5702
+ if (__hasOwnProp$1Q.call(b, prop))
5703
+ __defNormalProp$1Q(a, prop, b[prop]);
5704
+ if (__getOwnPropSymbols$1Q)
5705
+ for (var prop of __getOwnPropSymbols$1Q(b)) {
5706
+ if (__propIsEnum$1Q.call(b, prop))
5707
+ __defNormalProp$1Q(a, prop, b[prop]);
5667
5708
  }
5668
5709
  return a;
5669
5710
  };
5670
- var __objRest$1s = (source, exclude) => {
5711
+ var __objRest$1u = (source, exclude) => {
5671
5712
  var target = {};
5672
5713
  for (var prop in source)
5673
- if (__hasOwnProp$1R.call(source, prop) && exclude.indexOf(prop) < 0)
5714
+ if (__hasOwnProp$1Q.call(source, prop) && exclude.indexOf(prop) < 0)
5674
5715
  target[prop] = source[prop];
5675
- if (source != null && __getOwnPropSymbols$1R)
5676
- for (var prop of __getOwnPropSymbols$1R(source)) {
5677
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1R.call(source, prop))
5716
+ if (source != null && __getOwnPropSymbols$1Q)
5717
+ for (var prop of __getOwnPropSymbols$1Q(source)) {
5718
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1Q.call(source, prop))
5678
5719
  target[prop] = source[prop];
5679
5720
  }
5680
5721
  return target;
@@ -5688,7 +5729,7 @@
5688
5729
  direction,
5689
5730
  validate,
5690
5731
  onChange: onChangeCallback = ramda.identity
5691
- } = _b, rest = __objRest$1s(_b, [
5732
+ } = _b, rest = __objRest$1u(_b, [
5692
5733
  "name",
5693
5734
  "label",
5694
5735
  "children",
@@ -5709,7 +5750,7 @@
5709
5750
  },
5710
5751
  ({ onChange, value }) => /* @__PURE__ */ React.createElement(
5711
5752
  react.CheckboxGroup,
5712
- __spreadValues$1R({
5753
+ __spreadValues$1Q({
5713
5754
  onChange: (e) => {
5714
5755
  onChange(e);
5715
5756
  onChangeCallback(e);
@@ -5722,30 +5763,30 @@
5722
5763
  ));
5723
5764
  });
5724
5765
 
5725
- var __defProp$1Q = Object.defineProperty;
5726
- var __getOwnPropSymbols$1Q = Object.getOwnPropertySymbols;
5727
- var __hasOwnProp$1Q = Object.prototype.hasOwnProperty;
5728
- var __propIsEnum$1Q = Object.prototype.propertyIsEnumerable;
5729
- var __defNormalProp$1Q = (obj, key, value) => key in obj ? __defProp$1Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5730
- var __spreadValues$1Q = (a, b) => {
5766
+ var __defProp$1P = Object.defineProperty;
5767
+ var __getOwnPropSymbols$1P = Object.getOwnPropertySymbols;
5768
+ var __hasOwnProp$1P = Object.prototype.hasOwnProperty;
5769
+ var __propIsEnum$1P = Object.prototype.propertyIsEnumerable;
5770
+ var __defNormalProp$1P = (obj, key, value) => key in obj ? __defProp$1P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5771
+ var __spreadValues$1P = (a, b) => {
5731
5772
  for (var prop in b || (b = {}))
5732
- if (__hasOwnProp$1Q.call(b, prop))
5733
- __defNormalProp$1Q(a, prop, b[prop]);
5734
- if (__getOwnPropSymbols$1Q)
5735
- for (var prop of __getOwnPropSymbols$1Q(b)) {
5736
- if (__propIsEnum$1Q.call(b, prop))
5737
- __defNormalProp$1Q(a, prop, b[prop]);
5773
+ if (__hasOwnProp$1P.call(b, prop))
5774
+ __defNormalProp$1P(a, prop, b[prop]);
5775
+ if (__getOwnPropSymbols$1P)
5776
+ for (var prop of __getOwnPropSymbols$1P(b)) {
5777
+ if (__propIsEnum$1P.call(b, prop))
5778
+ __defNormalProp$1P(a, prop, b[prop]);
5738
5779
  }
5739
5780
  return a;
5740
5781
  };
5741
- var __objRest$1r = (source, exclude) => {
5782
+ var __objRest$1t = (source, exclude) => {
5742
5783
  var target = {};
5743
5784
  for (var prop in source)
5744
- if (__hasOwnProp$1Q.call(source, prop) && exclude.indexOf(prop) < 0)
5785
+ if (__hasOwnProp$1P.call(source, prop) && exclude.indexOf(prop) < 0)
5745
5786
  target[prop] = source[prop];
5746
- if (source != null && __getOwnPropSymbols$1Q)
5747
- for (var prop of __getOwnPropSymbols$1Q(source)) {
5748
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1Q.call(source, prop))
5787
+ if (source != null && __getOwnPropSymbols$1P)
5788
+ for (var prop of __getOwnPropSymbols$1P(source)) {
5789
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1P.call(source, prop))
5749
5790
  target[prop] = source[prop];
5750
5791
  }
5751
5792
  return target;
@@ -5756,7 +5797,7 @@
5756
5797
  icon,
5757
5798
  "aria-label": ariaLabel,
5758
5799
  children
5759
- } = _b, rest = __objRest$1r(_b, [
5800
+ } = _b, rest = __objRest$1t(_b, [
5760
5801
  "variant",
5761
5802
  "icon",
5762
5803
  "aria-label",
@@ -5767,7 +5808,7 @@
5767
5808
  const IconWithSize = React.cloneElement(IconComponent, { size: (_a2 = IconComponent.props.size) != null ? _a2 : rest.size });
5768
5809
  return /* @__PURE__ */ React.createElement(
5769
5810
  react.IconButton,
5770
- __spreadValues$1Q({
5811
+ __spreadValues$1P({
5771
5812
  variant,
5772
5813
  icon: IconWithSize,
5773
5814
  "aria-label": ariaLabel,
@@ -5820,23 +5861,23 @@
5820
5861
  );
5821
5862
  });
5822
5863
 
5823
- var __defProp$1P = Object.defineProperty;
5824
- var __getOwnPropSymbols$1P = Object.getOwnPropertySymbols;
5825
- var __hasOwnProp$1P = Object.prototype.hasOwnProperty;
5826
- var __propIsEnum$1P = Object.prototype.propertyIsEnumerable;
5827
- var __defNormalProp$1P = (obj, key, value) => key in obj ? __defProp$1P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5828
- var __spreadValues$1P = (a, b) => {
5864
+ var __defProp$1O = Object.defineProperty;
5865
+ var __getOwnPropSymbols$1O = Object.getOwnPropertySymbols;
5866
+ var __hasOwnProp$1O = Object.prototype.hasOwnProperty;
5867
+ var __propIsEnum$1O = Object.prototype.propertyIsEnumerable;
5868
+ var __defNormalProp$1O = (obj, key, value) => key in obj ? __defProp$1O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5869
+ var __spreadValues$1O = (a, b) => {
5829
5870
  for (var prop in b || (b = {}))
5830
- if (__hasOwnProp$1P.call(b, prop))
5831
- __defNormalProp$1P(a, prop, b[prop]);
5832
- if (__getOwnPropSymbols$1P)
5833
- for (var prop of __getOwnPropSymbols$1P(b)) {
5834
- if (__propIsEnum$1P.call(b, prop))
5835
- __defNormalProp$1P(a, prop, b[prop]);
5871
+ if (__hasOwnProp$1O.call(b, prop))
5872
+ __defNormalProp$1O(a, prop, b[prop]);
5873
+ if (__getOwnPropSymbols$1O)
5874
+ for (var prop of __getOwnPropSymbols$1O(b)) {
5875
+ if (__propIsEnum$1O.call(b, prop))
5876
+ __defNormalProp$1O(a, prop, b[prop]);
5836
5877
  }
5837
5878
  return a;
5838
5879
  };
5839
- const Popover = (props) => /* @__PURE__ */ React.createElement(react.Popover, __spreadValues$1P({ isLazy: true }, props));
5880
+ const Popover = (props) => /* @__PURE__ */ React.createElement(react.Popover, __spreadValues$1O({ isLazy: true }, props));
5840
5881
 
5841
5882
  const ColorsExpandButton = ({
5842
5883
  onClick,
@@ -5876,41 +5917,6 @@
5876
5917
  );
5877
5918
  };
5878
5919
 
5879
- var __defProp$1O = Object.defineProperty;
5880
- var __getOwnPropSymbols$1O = Object.getOwnPropertySymbols;
5881
- var __hasOwnProp$1O = Object.prototype.hasOwnProperty;
5882
- var __propIsEnum$1O = Object.prototype.propertyIsEnumerable;
5883
- var __defNormalProp$1O = (obj, key, value) => key in obj ? __defProp$1O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5884
- var __spreadValues$1O = (a, b) => {
5885
- for (var prop in b || (b = {}))
5886
- if (__hasOwnProp$1O.call(b, prop))
5887
- __defNormalProp$1O(a, prop, b[prop]);
5888
- if (__getOwnPropSymbols$1O)
5889
- for (var prop of __getOwnPropSymbols$1O(b)) {
5890
- if (__propIsEnum$1O.call(b, prop))
5891
- __defNormalProp$1O(a, prop, b[prop]);
5892
- }
5893
- return a;
5894
- };
5895
- var __objRest$1q = (source, exclude) => {
5896
- var target = {};
5897
- for (var prop in source)
5898
- if (__hasOwnProp$1O.call(source, prop) && exclude.indexOf(prop) < 0)
5899
- target[prop] = source[prop];
5900
- if (source != null && __getOwnPropSymbols$1O)
5901
- for (var prop of __getOwnPropSymbols$1O(source)) {
5902
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1O.call(source, prop))
5903
- target[prop] = source[prop];
5904
- }
5905
- return target;
5906
- };
5907
- const RenderInPortal = (_a) => {
5908
- var _b = _a, { shouldRenderInPortal, children } = _b, rest = __objRest$1q(_b, ["shouldRenderInPortal", "children"]);
5909
- if (!shouldRenderInPortal)
5910
- return children;
5911
- return /* @__PURE__ */ React.createElement(react.Portal, __spreadValues$1O({}, rest), children);
5912
- };
5913
-
5914
5920
  var __defProp$1N = Object.defineProperty;
5915
5921
  var __getOwnPropSymbols$1N = Object.getOwnPropertySymbols;
5916
5922
  var __hasOwnProp$1N = Object.prototype.hasOwnProperty;
@@ -5927,7 +5933,7 @@
5927
5933
  }
5928
5934
  return a;
5929
5935
  };
5930
- var __objRest$1p = (source, exclude) => {
5936
+ var __objRest$1s = (source, exclude) => {
5931
5937
  var target = {};
5932
5938
  for (var prop in source)
5933
5939
  if (__hasOwnProp$1N.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -5939,6 +5945,41 @@
5939
5945
  }
5940
5946
  return target;
5941
5947
  };
5948
+ const RenderInPortal = (_a) => {
5949
+ var _b = _a, { shouldRenderInPortal, children } = _b, rest = __objRest$1s(_b, ["shouldRenderInPortal", "children"]);
5950
+ if (!shouldRenderInPortal)
5951
+ return children;
5952
+ return /* @__PURE__ */ React.createElement(react.Portal, __spreadValues$1N({}, rest), children);
5953
+ };
5954
+
5955
+ var __defProp$1M = Object.defineProperty;
5956
+ var __getOwnPropSymbols$1M = Object.getOwnPropertySymbols;
5957
+ var __hasOwnProp$1M = Object.prototype.hasOwnProperty;
5958
+ var __propIsEnum$1M = Object.prototype.propertyIsEnumerable;
5959
+ var __defNormalProp$1M = (obj, key, value) => key in obj ? __defProp$1M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5960
+ var __spreadValues$1M = (a, b) => {
5961
+ for (var prop in b || (b = {}))
5962
+ if (__hasOwnProp$1M.call(b, prop))
5963
+ __defNormalProp$1M(a, prop, b[prop]);
5964
+ if (__getOwnPropSymbols$1M)
5965
+ for (var prop of __getOwnPropSymbols$1M(b)) {
5966
+ if (__propIsEnum$1M.call(b, prop))
5967
+ __defNormalProp$1M(a, prop, b[prop]);
5968
+ }
5969
+ return a;
5970
+ };
5971
+ var __objRest$1r = (source, exclude) => {
5972
+ var target = {};
5973
+ for (var prop in source)
5974
+ if (__hasOwnProp$1M.call(source, prop) && exclude.indexOf(prop) < 0)
5975
+ target[prop] = source[prop];
5976
+ if (source != null && __getOwnPropSymbols$1M)
5977
+ for (var prop of __getOwnPropSymbols$1M(source)) {
5978
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1M.call(source, prop))
5979
+ target[prop] = source[prop];
5980
+ }
5981
+ return target;
5982
+ };
5942
5983
  const ColorPicker = (_a) => {
5943
5984
  var _b = _a, {
5944
5985
  onChange = () => {
@@ -5951,7 +5992,7 @@
5951
5992
  size = "md",
5952
5993
  shouldRenderInPortal = false,
5953
5994
  popoverProps
5954
- } = _b, rest = __objRest$1p(_b, [
5995
+ } = _b, rest = __objRest$1r(_b, [
5955
5996
  "onChange",
5956
5997
  "clearable",
5957
5998
  "colors",
@@ -6016,14 +6057,14 @@
6016
6057
  };
6017
6058
  return /* @__PURE__ */ React.createElement(react.Box, { "data-testid": "color-picker-test-id" }, /* @__PURE__ */ React.createElement(
6018
6059
  Popover,
6019
- __spreadValues$1N({
6060
+ __spreadValues$1M({
6020
6061
  isOpen,
6021
6062
  onClose,
6022
6063
  initialFocusRef
6023
6064
  }, popoverProps),
6024
6065
  /* @__PURE__ */ React.createElement(react.PopoverTrigger, null, /* @__PURE__ */ React.createElement(
6025
6066
  IconButton,
6026
- __spreadValues$1N({
6067
+ __spreadValues$1M({
6027
6068
  onClick: onToggle,
6028
6069
  "aria-label": name || "color picker",
6029
6070
  name,
@@ -6086,30 +6127,30 @@
6086
6127
  ));
6087
6128
  };
6088
6129
 
6089
- var __defProp$1M = Object.defineProperty;
6090
- var __getOwnPropSymbols$1M = Object.getOwnPropertySymbols;
6091
- var __hasOwnProp$1M = Object.prototype.hasOwnProperty;
6092
- var __propIsEnum$1M = Object.prototype.propertyIsEnumerable;
6093
- var __defNormalProp$1M = (obj, key, value) => key in obj ? __defProp$1M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6094
- var __spreadValues$1M = (a, b) => {
6130
+ var __defProp$1L = Object.defineProperty;
6131
+ var __getOwnPropSymbols$1L = Object.getOwnPropertySymbols;
6132
+ var __hasOwnProp$1L = Object.prototype.hasOwnProperty;
6133
+ var __propIsEnum$1L = Object.prototype.propertyIsEnumerable;
6134
+ var __defNormalProp$1L = (obj, key, value) => key in obj ? __defProp$1L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6135
+ var __spreadValues$1L = (a, b) => {
6095
6136
  for (var prop in b || (b = {}))
6096
- if (__hasOwnProp$1M.call(b, prop))
6097
- __defNormalProp$1M(a, prop, b[prop]);
6098
- if (__getOwnPropSymbols$1M)
6099
- for (var prop of __getOwnPropSymbols$1M(b)) {
6100
- if (__propIsEnum$1M.call(b, prop))
6101
- __defNormalProp$1M(a, prop, b[prop]);
6137
+ if (__hasOwnProp$1L.call(b, prop))
6138
+ __defNormalProp$1L(a, prop, b[prop]);
6139
+ if (__getOwnPropSymbols$1L)
6140
+ for (var prop of __getOwnPropSymbols$1L(b)) {
6141
+ if (__propIsEnum$1L.call(b, prop))
6142
+ __defNormalProp$1L(a, prop, b[prop]);
6102
6143
  }
6103
6144
  return a;
6104
6145
  };
6105
- var __objRest$1o = (source, exclude) => {
6146
+ var __objRest$1q = (source, exclude) => {
6106
6147
  var target = {};
6107
6148
  for (var prop in source)
6108
- if (__hasOwnProp$1M.call(source, prop) && exclude.indexOf(prop) < 0)
6149
+ if (__hasOwnProp$1L.call(source, prop) && exclude.indexOf(prop) < 0)
6109
6150
  target[prop] = source[prop];
6110
- if (source != null && __getOwnPropSymbols$1M)
6111
- for (var prop of __getOwnPropSymbols$1M(source)) {
6112
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1M.call(source, prop))
6151
+ if (source != null && __getOwnPropSymbols$1L)
6152
+ for (var prop of __getOwnPropSymbols$1L(source)) {
6153
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1L.call(source, prop))
6113
6154
  target[prop] = source[prop];
6114
6155
  }
6115
6156
  return target;
@@ -6121,7 +6162,7 @@
6121
6162
  direction,
6122
6163
  isRequired,
6123
6164
  validate
6124
- } = _b, rest = __objRest$1o(_b, [
6165
+ } = _b, rest = __objRest$1q(_b, [
6125
6166
  "name",
6126
6167
  "label",
6127
6168
  "direction",
@@ -6139,7 +6180,7 @@
6139
6180
  },
6140
6181
  ({ onChange, value }) => /* @__PURE__ */ React.createElement(
6141
6182
  ColorPicker,
6142
- __spreadValues$1M({
6183
+ __spreadValues$1L({
6143
6184
  name,
6144
6185
  onChange,
6145
6186
  value
@@ -6148,29 +6189,29 @@
6148
6189
  );
6149
6190
  };
6150
6191
 
6151
- var __defProp$1L = Object.defineProperty;
6152
- var __defProps$t = Object.defineProperties;
6153
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
6154
- var __getOwnPropSymbols$1L = Object.getOwnPropertySymbols;
6155
- var __hasOwnProp$1L = Object.prototype.hasOwnProperty;
6156
- var __propIsEnum$1L = Object.prototype.propertyIsEnumerable;
6157
- var __defNormalProp$1L = (obj, key, value) => key in obj ? __defProp$1L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6158
- var __spreadValues$1L = (a, b) => {
6192
+ var __defProp$1K = Object.defineProperty;
6193
+ var __defProps$s = Object.defineProperties;
6194
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
6195
+ var __getOwnPropSymbols$1K = Object.getOwnPropertySymbols;
6196
+ var __hasOwnProp$1K = Object.prototype.hasOwnProperty;
6197
+ var __propIsEnum$1K = Object.prototype.propertyIsEnumerable;
6198
+ var __defNormalProp$1K = (obj, key, value) => key in obj ? __defProp$1K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6199
+ var __spreadValues$1K = (a, b) => {
6159
6200
  for (var prop in b || (b = {}))
6160
- if (__hasOwnProp$1L.call(b, prop))
6161
- __defNormalProp$1L(a, prop, b[prop]);
6162
- if (__getOwnPropSymbols$1L)
6163
- for (var prop of __getOwnPropSymbols$1L(b)) {
6164
- if (__propIsEnum$1L.call(b, prop))
6165
- __defNormalProp$1L(a, prop, b[prop]);
6201
+ if (__hasOwnProp$1K.call(b, prop))
6202
+ __defNormalProp$1K(a, prop, b[prop]);
6203
+ if (__getOwnPropSymbols$1K)
6204
+ for (var prop of __getOwnPropSymbols$1K(b)) {
6205
+ if (__propIsEnum$1K.call(b, prop))
6206
+ __defNormalProp$1K(a, prop, b[prop]);
6166
6207
  }
6167
6208
  return a;
6168
6209
  };
6169
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
6210
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
6170
6211
  const FlipButtonContext = React.createContext(null);
6171
6212
  const useFlipButtonState = (props, isMulti) => isMulti ? checkbox.useCheckboxGroupState(props) : radio.useRadioGroupState(props);
6172
6213
  const useFlipButtonGroup = (props, state, isMulti) => {
6173
- const propsWithLabel = __spreadProps$t(__spreadValues$1L({}, props), {
6214
+ const propsWithLabel = __spreadProps$s(__spreadValues$1K({}, props), {
6174
6215
  "aria-label": `${isMulti ? "Checkbox" : "Radio"}-button-group`
6175
6216
  });
6176
6217
  return isMulti ? checkbox$1.useCheckboxGroup(
@@ -6187,33 +6228,33 @@
6187
6228
  return { state, flipButtonGroupProps };
6188
6229
  };
6189
6230
 
6190
- var __defProp$1K = Object.defineProperty;
6191
- var __defProps$s = Object.defineProperties;
6192
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
6193
- var __getOwnPropSymbols$1K = Object.getOwnPropertySymbols;
6194
- var __hasOwnProp$1K = Object.prototype.hasOwnProperty;
6195
- var __propIsEnum$1K = Object.prototype.propertyIsEnumerable;
6196
- var __defNormalProp$1K = (obj, key, value) => key in obj ? __defProp$1K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6197
- var __spreadValues$1K = (a, b) => {
6231
+ var __defProp$1J = Object.defineProperty;
6232
+ var __defProps$r = Object.defineProperties;
6233
+ var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
6234
+ var __getOwnPropSymbols$1J = Object.getOwnPropertySymbols;
6235
+ var __hasOwnProp$1J = Object.prototype.hasOwnProperty;
6236
+ var __propIsEnum$1J = Object.prototype.propertyIsEnumerable;
6237
+ var __defNormalProp$1J = (obj, key, value) => key in obj ? __defProp$1J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6238
+ var __spreadValues$1J = (a, b) => {
6198
6239
  for (var prop in b || (b = {}))
6199
- if (__hasOwnProp$1K.call(b, prop))
6200
- __defNormalProp$1K(a, prop, b[prop]);
6201
- if (__getOwnPropSymbols$1K)
6202
- for (var prop of __getOwnPropSymbols$1K(b)) {
6203
- if (__propIsEnum$1K.call(b, prop))
6204
- __defNormalProp$1K(a, prop, b[prop]);
6240
+ if (__hasOwnProp$1J.call(b, prop))
6241
+ __defNormalProp$1J(a, prop, b[prop]);
6242
+ if (__getOwnPropSymbols$1J)
6243
+ for (var prop of __getOwnPropSymbols$1J(b)) {
6244
+ if (__propIsEnum$1J.call(b, prop))
6245
+ __defNormalProp$1J(a, prop, b[prop]);
6205
6246
  }
6206
6247
  return a;
6207
6248
  };
6208
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
6209
- var __objRest$1n = (source, exclude) => {
6249
+ var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
6250
+ var __objRest$1p = (source, exclude) => {
6210
6251
  var target = {};
6211
6252
  for (var prop in source)
6212
- if (__hasOwnProp$1K.call(source, prop) && exclude.indexOf(prop) < 0)
6253
+ if (__hasOwnProp$1J.call(source, prop) && exclude.indexOf(prop) < 0)
6213
6254
  target[prop] = source[prop];
6214
- if (source != null && __getOwnPropSymbols$1K)
6215
- for (var prop of __getOwnPropSymbols$1K(source)) {
6216
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1K.call(source, prop))
6255
+ if (source != null && __getOwnPropSymbols$1J)
6256
+ for (var prop of __getOwnPropSymbols$1J(source)) {
6257
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1J.call(source, prop))
6217
6258
  target[prop] = source[prop];
6218
6259
  }
6219
6260
  return target;
@@ -6228,7 +6269,7 @@
6228
6269
  icon,
6229
6270
  value,
6230
6271
  iconPlacement = "left"
6231
- } = _a, rest = __objRest$1n(_a, [
6272
+ } = _a, rest = __objRest$1p(_a, [
6232
6273
  "children",
6233
6274
  "size",
6234
6275
  "variant",
@@ -6240,7 +6281,7 @@
6240
6281
  ]);
6241
6282
  const state = React.useContext(FlipButtonContext);
6242
6283
  const ref = React.useRef(null);
6243
- const propsWithoutChildren = ramda.omit(["children"], __spreadProps$s(__spreadValues$1K({}, props), { "aria-label": `${isMulti ? "Checkbox" : "Radio"}-input for ${value}` }));
6284
+ const propsWithoutChildren = ramda.omit(["children"], __spreadProps$r(__spreadValues$1J({}, props), { "aria-label": `${isMulti ? "Checkbox" : "Radio"}-input for ${value}` }));
6244
6285
  const { inputProps } = isMulti ? checkbox$1.useCheckboxGroupItem(propsWithoutChildren, state, ref) : radio$1.useRadio(propsWithoutChildren, state, ref);
6245
6286
  const { button, buttonIcon } = react.useMultiStyleConfig("FlipButton", { size, variant });
6246
6287
  const { focusProps, isFocusVisible: isFocused } = focus.useFocusRing();
@@ -6252,7 +6293,7 @@
6252
6293
  };
6253
6294
  const focusRing = isFocused ? focusStyles : {};
6254
6295
  const isSelected = isMulti ? state.isSelected(value) : state.selectedValue === value;
6255
- const flipButtonProps = __spreadProps$s(__spreadValues$1K({}, utils.mergeProps(inputProps, focusProps)), {
6296
+ const flipButtonProps = __spreadProps$r(__spreadValues$1J({}, utils.mergeProps(inputProps, focusProps)), {
6256
6297
  ref,
6257
6298
  style: { opacity: "0", width: "0", height: "0" },
6258
6299
  "aria-label": isMulti ? "Checkbox-input" : "Radio-input"
@@ -6264,7 +6305,7 @@
6264
6305
  as: "label",
6265
6306
  cursor: "pointer"
6266
6307
  };
6267
- return typeof children === "function" ? children(__spreadValues$1K({
6308
+ return typeof children === "function" ? children(__spreadValues$1J({
6268
6309
  state,
6269
6310
  containerProps,
6270
6311
  flipButtonProps,
@@ -6284,39 +6325,39 @@
6284
6325
  as: "label",
6285
6326
  ref: wrapperRef
6286
6327
  },
6287
- /* @__PURE__ */ React.createElement("input", __spreadValues$1K({}, flipButtonProps)),
6328
+ /* @__PURE__ */ React.createElement("input", __spreadValues$1J({}, flipButtonProps)),
6288
6329
  icon && iconPlacement !== "none" ? /* @__PURE__ */ React.createElement(Icon, { as: icon || NorthlightIcons.CheckSolid, sx: buttonIcon }) : isSelected && iconPlacement !== "none" && /* @__PURE__ */ React.createElement(react.SlideFade, { in: isSelected }, /* @__PURE__ */ React.createElement(Icon, { as: icon || NorthlightIcons.CheckSolid, sx: buttonIcon })),
6289
6330
  /* @__PURE__ */ React.createElement(react.Text, { textAlign: "center" }, children)
6290
6331
  );
6291
6332
  });
6292
6333
 
6293
- var __defProp$1J = Object.defineProperty;
6294
- var __defProps$r = Object.defineProperties;
6295
- var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
6296
- var __getOwnPropSymbols$1J = Object.getOwnPropertySymbols;
6297
- var __hasOwnProp$1J = Object.prototype.hasOwnProperty;
6298
- var __propIsEnum$1J = Object.prototype.propertyIsEnumerable;
6299
- var __defNormalProp$1J = (obj, key, value) => key in obj ? __defProp$1J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6300
- var __spreadValues$1J = (a, b) => {
6334
+ var __defProp$1I = Object.defineProperty;
6335
+ var __defProps$q = Object.defineProperties;
6336
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
6337
+ var __getOwnPropSymbols$1I = Object.getOwnPropertySymbols;
6338
+ var __hasOwnProp$1I = Object.prototype.hasOwnProperty;
6339
+ var __propIsEnum$1I = Object.prototype.propertyIsEnumerable;
6340
+ var __defNormalProp$1I = (obj, key, value) => key in obj ? __defProp$1I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6341
+ var __spreadValues$1I = (a, b) => {
6301
6342
  for (var prop in b || (b = {}))
6302
- if (__hasOwnProp$1J.call(b, prop))
6303
- __defNormalProp$1J(a, prop, b[prop]);
6304
- if (__getOwnPropSymbols$1J)
6305
- for (var prop of __getOwnPropSymbols$1J(b)) {
6306
- if (__propIsEnum$1J.call(b, prop))
6307
- __defNormalProp$1J(a, prop, b[prop]);
6343
+ if (__hasOwnProp$1I.call(b, prop))
6344
+ __defNormalProp$1I(a, prop, b[prop]);
6345
+ if (__getOwnPropSymbols$1I)
6346
+ for (var prop of __getOwnPropSymbols$1I(b)) {
6347
+ if (__propIsEnum$1I.call(b, prop))
6348
+ __defNormalProp$1I(a, prop, b[prop]);
6308
6349
  }
6309
6350
  return a;
6310
6351
  };
6311
- var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
6312
- var __objRest$1m = (source, exclude) => {
6352
+ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
6353
+ var __objRest$1o = (source, exclude) => {
6313
6354
  var target = {};
6314
6355
  for (var prop in source)
6315
- if (__hasOwnProp$1J.call(source, prop) && exclude.indexOf(prop) < 0)
6356
+ if (__hasOwnProp$1I.call(source, prop) && exclude.indexOf(prop) < 0)
6316
6357
  target[prop] = source[prop];
6317
- if (source != null && __getOwnPropSymbols$1J)
6318
- for (var prop of __getOwnPropSymbols$1J(source)) {
6319
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1J.call(source, prop))
6358
+ if (source != null && __getOwnPropSymbols$1I)
6359
+ for (var prop of __getOwnPropSymbols$1I(source)) {
6360
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1I.call(source, prop))
6320
6361
  target[prop] = source[prop];
6321
6362
  }
6322
6363
  return target;
@@ -6333,7 +6374,7 @@
6333
6374
  variant,
6334
6375
  icon,
6335
6376
  sx = {}
6336
- } = _a, rest = __objRest$1m(_a, [
6377
+ } = _a, rest = __objRest$1o(_a, [
6337
6378
  "isMulti",
6338
6379
  "name",
6339
6380
  "children",
@@ -6348,7 +6389,7 @@
6348
6389
  const { state, flipButtonGroupProps } = useFlipButton(props, isMulti);
6349
6390
  const numberOfButtons = React.Children.count(children);
6350
6391
  const childrenWithProps = React.Children.toArray(children).map(
6351
- (child) => React.isValidElement(child) ? React.cloneElement(child, __spreadValues$1J({
6392
+ (child) => React.isValidElement(child) ? React.cloneElement(child, __spreadValues$1I({
6352
6393
  key: child.props.value,
6353
6394
  isMulti,
6354
6395
  variant,
@@ -6367,7 +6408,7 @@
6367
6408
  const restWithoutOnChange = ramda.omit(["onChange"], rest);
6368
6409
  return /* @__PURE__ */ React.createElement(
6369
6410
  react.Stack,
6370
- __spreadValues$1J(__spreadProps$r(__spreadValues$1J({}, flipButtonGroupProps), {
6411
+ __spreadValues$1I(__spreadProps$q(__spreadValues$1I({}, flipButtonGroupProps), {
6371
6412
  direction,
6372
6413
  id: name,
6373
6414
  spacing: 0,
@@ -6377,30 +6418,30 @@
6377
6418
  );
6378
6419
  };
6379
6420
 
6380
- var __defProp$1I = Object.defineProperty;
6381
- var __getOwnPropSymbols$1I = Object.getOwnPropertySymbols;
6382
- var __hasOwnProp$1I = Object.prototype.hasOwnProperty;
6383
- var __propIsEnum$1I = Object.prototype.propertyIsEnumerable;
6384
- var __defNormalProp$1I = (obj, key, value) => key in obj ? __defProp$1I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6385
- var __spreadValues$1I = (a, b) => {
6386
- for (var prop in b || (b = {}))
6387
- if (__hasOwnProp$1I.call(b, prop))
6388
- __defNormalProp$1I(a, prop, b[prop]);
6389
- if (__getOwnPropSymbols$1I)
6390
- for (var prop of __getOwnPropSymbols$1I(b)) {
6391
- if (__propIsEnum$1I.call(b, prop))
6392
- __defNormalProp$1I(a, prop, b[prop]);
6421
+ var __defProp$1H = Object.defineProperty;
6422
+ var __getOwnPropSymbols$1H = Object.getOwnPropertySymbols;
6423
+ var __hasOwnProp$1H = Object.prototype.hasOwnProperty;
6424
+ var __propIsEnum$1H = Object.prototype.propertyIsEnumerable;
6425
+ var __defNormalProp$1H = (obj, key, value) => key in obj ? __defProp$1H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6426
+ var __spreadValues$1H = (a, b) => {
6427
+ for (var prop in b || (b = {}))
6428
+ if (__hasOwnProp$1H.call(b, prop))
6429
+ __defNormalProp$1H(a, prop, b[prop]);
6430
+ if (__getOwnPropSymbols$1H)
6431
+ for (var prop of __getOwnPropSymbols$1H(b)) {
6432
+ if (__propIsEnum$1H.call(b, prop))
6433
+ __defNormalProp$1H(a, prop, b[prop]);
6393
6434
  }
6394
6435
  return a;
6395
6436
  };
6396
- var __objRest$1l = (source, exclude) => {
6437
+ var __objRest$1n = (source, exclude) => {
6397
6438
  var target = {};
6398
6439
  for (var prop in source)
6399
- if (__hasOwnProp$1I.call(source, prop) && exclude.indexOf(prop) < 0)
6440
+ if (__hasOwnProp$1H.call(source, prop) && exclude.indexOf(prop) < 0)
6400
6441
  target[prop] = source[prop];
6401
- if (source != null && __getOwnPropSymbols$1I)
6402
- for (var prop of __getOwnPropSymbols$1I(source)) {
6403
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1I.call(source, prop))
6442
+ if (source != null && __getOwnPropSymbols$1H)
6443
+ for (var prop of __getOwnPropSymbols$1H(source)) {
6444
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1H.call(source, prop))
6404
6445
  target[prop] = source[prop];
6405
6446
  }
6406
6447
  return target;
@@ -6415,7 +6456,7 @@
6415
6456
  iconPlacement = "left",
6416
6457
  onChange: onChangeCallback = ramda.identity,
6417
6458
  validate
6418
- } = _b, rest = __objRest$1l(_b, [
6459
+ } = _b, rest = __objRest$1n(_b, [
6419
6460
  "name",
6420
6461
  "label",
6421
6462
  "children",
@@ -6437,7 +6478,7 @@
6437
6478
  },
6438
6479
  ({ onChange, value }) => /* @__PURE__ */ React.createElement(
6439
6480
  FlipButtonGroup,
6440
- __spreadValues$1I({
6481
+ __spreadValues$1H({
6441
6482
  name,
6442
6483
  onChange: (e) => {
6443
6484
  onChange(e);
@@ -6452,30 +6493,30 @@
6452
6493
  );
6453
6494
  });
6454
6495
 
6455
- var __defProp$1H = Object.defineProperty;
6456
- var __getOwnPropSymbols$1H = Object.getOwnPropertySymbols;
6457
- var __hasOwnProp$1H = Object.prototype.hasOwnProperty;
6458
- var __propIsEnum$1H = Object.prototype.propertyIsEnumerable;
6459
- var __defNormalProp$1H = (obj, key, value) => key in obj ? __defProp$1H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6460
- var __spreadValues$1H = (a, b) => {
6496
+ var __defProp$1G = Object.defineProperty;
6497
+ var __getOwnPropSymbols$1G = Object.getOwnPropertySymbols;
6498
+ var __hasOwnProp$1G = Object.prototype.hasOwnProperty;
6499
+ var __propIsEnum$1G = Object.prototype.propertyIsEnumerable;
6500
+ var __defNormalProp$1G = (obj, key, value) => key in obj ? __defProp$1G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6501
+ var __spreadValues$1G = (a, b) => {
6461
6502
  for (var prop in b || (b = {}))
6462
- if (__hasOwnProp$1H.call(b, prop))
6463
- __defNormalProp$1H(a, prop, b[prop]);
6464
- if (__getOwnPropSymbols$1H)
6465
- for (var prop of __getOwnPropSymbols$1H(b)) {
6466
- if (__propIsEnum$1H.call(b, prop))
6467
- __defNormalProp$1H(a, prop, b[prop]);
6503
+ if (__hasOwnProp$1G.call(b, prop))
6504
+ __defNormalProp$1G(a, prop, b[prop]);
6505
+ if (__getOwnPropSymbols$1G)
6506
+ for (var prop of __getOwnPropSymbols$1G(b)) {
6507
+ if (__propIsEnum$1G.call(b, prop))
6508
+ __defNormalProp$1G(a, prop, b[prop]);
6468
6509
  }
6469
6510
  return a;
6470
6511
  };
6471
- var __objRest$1k = (source, exclude) => {
6512
+ var __objRest$1m = (source, exclude) => {
6472
6513
  var target = {};
6473
6514
  for (var prop in source)
6474
- if (__hasOwnProp$1H.call(source, prop) && exclude.indexOf(prop) < 0)
6515
+ if (__hasOwnProp$1G.call(source, prop) && exclude.indexOf(prop) < 0)
6475
6516
  target[prop] = source[prop];
6476
- if (source != null && __getOwnPropSymbols$1H)
6477
- for (var prop of __getOwnPropSymbols$1H(source)) {
6478
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1H.call(source, prop))
6517
+ if (source != null && __getOwnPropSymbols$1G)
6518
+ for (var prop of __getOwnPropSymbols$1G(source)) {
6519
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1G.call(source, prop))
6479
6520
  target[prop] = source[prop];
6480
6521
  }
6481
6522
  return target;
@@ -6485,10 +6526,10 @@
6485
6526
  };
6486
6527
  const ResizeHandle = React.forwardRef(
6487
6528
  (_a, ref) => {
6488
- var _b = _a, { color } = _b, rest = __objRest$1k(_b, ["color"]);
6529
+ var _b = _a, { color } = _b, rest = __objRest$1m(_b, ["color"]);
6489
6530
  return /* @__PURE__ */ React.createElement(
6490
6531
  react.Box,
6491
- __spreadValues$1H({
6532
+ __spreadValues$1G({
6492
6533
  ref,
6493
6534
  cursor: "col-resize",
6494
6535
  _hover: hoverAndActiveStyles,
@@ -6505,40 +6546,42 @@
6505
6546
  }
6506
6547
  );
6507
6548
 
6508
- var __defProp$1G = Object.defineProperty;
6509
- var __defProps$q = Object.defineProperties;
6510
- var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
6511
- var __getOwnPropSymbols$1G = Object.getOwnPropertySymbols;
6512
- var __hasOwnProp$1G = Object.prototype.hasOwnProperty;
6513
- var __propIsEnum$1G = Object.prototype.propertyIsEnumerable;
6514
- var __defNormalProp$1G = (obj, key, value) => key in obj ? __defProp$1G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6515
- var __spreadValues$1G = (a, b) => {
6516
- for (var prop in b || (b = {}))
6517
- if (__hasOwnProp$1G.call(b, prop))
6518
- __defNormalProp$1G(a, prop, b[prop]);
6519
- if (__getOwnPropSymbols$1G)
6520
- for (var prop of __getOwnPropSymbols$1G(b)) {
6521
- if (__propIsEnum$1G.call(b, prop))
6522
- __defNormalProp$1G(a, prop, b[prop]);
6523
- }
6524
- return a;
6525
- };
6526
- var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
6527
6549
  const Trigger = (props) => {
6528
- const { isDisabled, handleClick } = props;
6550
+ const {
6551
+ id,
6552
+ "aria-haspopup": ariaHasPopup,
6553
+ "aria-label": ariaLabel,
6554
+ "aria-labelledby": ariaLabelledBy,
6555
+ "aria-describedby": ariaDescribedBy,
6556
+ "aria-expanded": ariaExpanded,
6557
+ isDisabled,
6558
+ handleClick
6559
+ } = props;
6529
6560
  const ref = React.useRef(null);
6530
- const { buttonProps } = button.useButton(props, ref);
6561
+ const handleKeyDown = (e) => {
6562
+ if (e.key === "Enter") {
6563
+ e.preventDefault();
6564
+ handleClick();
6565
+ }
6566
+ };
6531
6567
  return /* @__PURE__ */ React.createElement(
6532
6568
  Button,
6533
- __spreadProps$q(__spreadValues$1G({}, buttonProps), {
6569
+ {
6534
6570
  ref,
6571
+ id,
6572
+ "aria-haspopup": ariaHasPopup,
6573
+ "aria-label": ariaLabel,
6574
+ "aria-labelledby": ariaLabelledBy,
6575
+ "aria-describedby": ariaDescribedBy,
6576
+ "aria-expanded": ariaExpanded,
6535
6577
  size: "sm",
6536
6578
  boxSize: 8,
6537
6579
  variant: "ghost",
6538
6580
  isDisabled,
6539
- onPointerDown: handleClick,
6581
+ onClick: handleClick,
6582
+ onKeyDown: handleKeyDown,
6540
6583
  pointerEvents: isDisabled ? "none" : "auto"
6541
- }),
6584
+ },
6542
6585
  /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.CalendarDuo })
6543
6586
  );
6544
6587
  };
@@ -6662,7 +6705,7 @@
6662
6705
  return a;
6663
6706
  };
6664
6707
  var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
6665
- var __objRest$1j = (source, exclude) => {
6708
+ var __objRest$1l = (source, exclude) => {
6666
6709
  var target = {};
6667
6710
  for (var prop in source)
6668
6711
  if (__hasOwnProp$1D.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -6676,7 +6719,7 @@
6676
6719
  };
6677
6720
  const StyledField = React.forwardRef(
6678
6721
  (_a, ref) => {
6679
- var _b = _a, { isInvalid, isDisabled, children, variant } = _b, rest = __objRest$1j(_b, ["isInvalid", "isDisabled", "children", "variant"]);
6722
+ var _b = _a, { isInvalid, isDisabled, children, variant } = _b, rest = __objRest$1l(_b, ["isInvalid", "isDisabled", "children", "variant"]);
6680
6723
  const { styledField } = react.useMultiStyleConfig("DatePicker", { variant });
6681
6724
  return /* @__PURE__ */ React.createElement(
6682
6725
  react.Box,
@@ -6787,7 +6830,7 @@
6787
6830
  }
6788
6831
  return a;
6789
6832
  };
6790
- var __objRest$1i = (source, exclude) => {
6833
+ var __objRest$1k = (source, exclude) => {
6791
6834
  var target = {};
6792
6835
  for (var prop in source)
6793
6836
  if (__hasOwnProp$1A.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -6801,7 +6844,7 @@
6801
6844
  };
6802
6845
  const CalendarGrid = React.memo(
6803
6846
  (_a) => {
6804
- var _b = _a, { state, locale, firstDayOfWeek } = _b, rest = __objRest$1i(_b, ["state", "locale", "firstDayOfWeek"]);
6847
+ var _b = _a, { state, locale, firstDayOfWeek } = _b, rest = __objRest$1k(_b, ["state", "locale", "firstDayOfWeek"]);
6805
6848
  const startDate = state.visibleRange.start;
6806
6849
  const { gridProps, headerProps } = calendar.useCalendarGrid(rest, state);
6807
6850
  const weeksInMonth = date.getWeeksInMonth(startDate, locale);
@@ -6842,7 +6885,7 @@
6842
6885
  return a;
6843
6886
  };
6844
6887
  var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
6845
- var __objRest$1h = (source, exclude) => {
6888
+ var __objRest$1j = (source, exclude) => {
6846
6889
  var target = {};
6847
6890
  for (var prop in source)
6848
6891
  if (__hasOwnProp$1z.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -6855,7 +6898,7 @@
6855
6898
  return target;
6856
6899
  };
6857
6900
  const MonthButton = (_a) => {
6858
- var _b = _a, { children } = _b, rest = __objRest$1h(_b, ["children"]);
6901
+ var _b = _a, { children } = _b, rest = __objRest$1j(_b, ["children"]);
6859
6902
  const ref = React.useRef(null);
6860
6903
  const { buttonProps } = button.useButton(rest, ref);
6861
6904
  return /* @__PURE__ */ React.createElement(
@@ -7123,7 +7166,7 @@
7123
7166
  return a;
7124
7167
  };
7125
7168
  var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
7126
- var __objRest$1g = (source, exclude) => {
7169
+ var __objRest$1i = (source, exclude) => {
7127
7170
  var target = {};
7128
7171
  for (var prop in source)
7129
7172
  if (__hasOwnProp$1x.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -7140,7 +7183,7 @@
7140
7183
  state,
7141
7184
  range,
7142
7185
  firstDayOfWeek
7143
- } = _b, rest = __objRest$1g(_b, [
7186
+ } = _b, rest = __objRest$1i(_b, [
7144
7187
  "state",
7145
7188
  "range",
7146
7189
  "firstDayOfWeek"
@@ -7248,6 +7291,18 @@
7248
7291
  return a;
7249
7292
  };
7250
7293
  var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
7294
+ var __objRest$1h = (source, exclude) => {
7295
+ var target = {};
7296
+ for (var prop in source)
7297
+ if (__hasOwnProp$1v.call(source, prop) && exclude.indexOf(prop) < 0)
7298
+ target[prop] = source[prop];
7299
+ if (source != null && __getOwnPropSymbols$1v)
7300
+ for (var prop of __getOwnPropSymbols$1v(source)) {
7301
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1v.call(source, prop))
7302
+ target[prop] = source[prop];
7303
+ }
7304
+ return target;
7305
+ };
7251
7306
  const DatePicker = (props) => {
7252
7307
  const {
7253
7308
  isDisabled,
@@ -7257,49 +7312,265 @@
7257
7312
  dateFormat,
7258
7313
  minValue,
7259
7314
  variant = "outline",
7260
- firstDayOfWeek = "monday"
7315
+ firstDayOfWeek = "monday",
7316
+ value,
7317
+ defaultValue,
7318
+ onChange,
7319
+ maxValue,
7320
+ isReadOnly,
7321
+ isRequired,
7322
+ placeholderValue,
7323
+ isDateUnavailable,
7324
+ granularity,
7325
+ hourCycle,
7326
+ shouldForceLeadingZeros,
7327
+ pageBehavior,
7328
+ defaultOpen,
7329
+ onOpenChange,
7330
+ label,
7331
+ description,
7332
+ errorMessage,
7333
+ id,
7334
+ name,
7335
+ autoFocus,
7336
+ onFocus,
7337
+ onBlur,
7338
+ onFocusChange,
7339
+ onKeyDown,
7340
+ onKeyUp,
7341
+ "aria-label": ariaLabel,
7342
+ "aria-labelledby": ariaLabelledBy,
7343
+ "aria-describedby": ariaDescribedBy,
7344
+ "aria-details": ariaDetails
7261
7345
  } = props;
7262
7346
  const ref = React.useRef();
7347
+ const dialogRef = React.useRef();
7263
7348
  const { group } = react.useMultiStyleConfig("DatePicker");
7264
- const state = datepicker$1.useDatePickerState(__spreadProps$h(__spreadValues$1v({}, props), {
7349
+ const state = datepicker$1.useDatePickerState({
7350
+ value,
7351
+ defaultValue,
7352
+ onChange,
7353
+ minValue,
7354
+ maxValue,
7355
+ isDisabled,
7356
+ isReadOnly,
7357
+ isRequired,
7358
+ isInvalid,
7359
+ placeholderValue,
7360
+ isDateUnavailable,
7361
+ granularity,
7362
+ hourCycle,
7363
+ shouldForceLeadingZeros,
7364
+ defaultOpen,
7365
+ onOpenChange,
7265
7366
  shouldCloseOnSelect: false,
7266
7367
  hideTimeZone: true
7267
- }));
7368
+ });
7268
7369
  const { buttonProps, fieldProps, calendarProps, groupProps, dialogProps } = datepicker.useDatePicker(
7269
- __spreadProps$h(__spreadValues$1v({}, props), { minValue: minValue || date.parseDate("1994-03-08") }),
7370
+ {
7371
+ value,
7372
+ defaultValue,
7373
+ onChange,
7374
+ minValue: minValue || date.parseDate("1994-03-08"),
7375
+ maxValue,
7376
+ isDisabled,
7377
+ isReadOnly,
7378
+ isRequired,
7379
+ isInvalid,
7380
+ placeholderValue,
7381
+ isDateUnavailable,
7382
+ granularity,
7383
+ hourCycle,
7384
+ shouldForceLeadingZeros,
7385
+ pageBehavior,
7386
+ defaultOpen,
7387
+ onOpenChange,
7388
+ label,
7389
+ description,
7390
+ errorMessage,
7391
+ id,
7392
+ name,
7393
+ autoFocus,
7394
+ onFocus,
7395
+ onBlur,
7396
+ onFocusChange,
7397
+ onKeyDown,
7398
+ onKeyUp,
7399
+ "aria-label": ariaLabel,
7400
+ "aria-labelledby": ariaLabelledBy,
7401
+ "aria-describedby": ariaDescribedBy,
7402
+ "aria-details": ariaDetails
7403
+ },
7270
7404
  state,
7271
7405
  ref
7272
7406
  );
7273
- const togglePopup = () => state.setOpen(!state.isOpen);
7407
+ const {
7408
+ id: buttonId,
7409
+ "aria-haspopup": buttonAriaHasPopup,
7410
+ "aria-label": buttonAriaLabel,
7411
+ "aria-labelledby": buttonAriaLabelledBy,
7412
+ "aria-describedby": buttonAriaDescribedBy,
7413
+ "aria-expanded": buttonAriaExpanded
7414
+ } = buttonProps;
7415
+ const {
7416
+ id: dialogId,
7417
+ "aria-labelledby": dialogAriaLabelledBy
7418
+ } = dialogProps;
7419
+ const {
7420
+ autoFocus: calAutoFocus,
7421
+ value: calValue,
7422
+ onChange: calOnChange,
7423
+ minValue: calMinValue,
7424
+ maxValue: calMaxValue,
7425
+ isDisabled: calIsDisabled,
7426
+ isReadOnly: calIsReadOnly,
7427
+ isDateUnavailable: calIsDateUnavailable,
7428
+ defaultFocusedValue: calDefaultFocusedValue,
7429
+ isInvalid: calIsInvalid,
7430
+ errorMessage: calErrorMessage
7431
+ } = calendarProps;
7432
+ const _a = fieldProps, {
7433
+ id: fieldId,
7434
+ "aria-describedby": fieldAriaDescribedBy,
7435
+ "aria-labelledby": fieldAriaLabelledBy,
7436
+ value: fieldValue,
7437
+ onChange: fieldOnChange,
7438
+ minValue: fieldMinValue,
7439
+ maxValue: fieldMaxValue,
7440
+ placeholderValue: fieldPlaceholderValue,
7441
+ hideTimeZone: fieldHideTimeZone,
7442
+ hourCycle: fieldHourCycle,
7443
+ shouldForceLeadingZeros: fieldShouldForceLeadingZeros,
7444
+ granularity: fieldGranularity,
7445
+ isDisabled: fieldIsDisabled,
7446
+ isReadOnly: fieldIsReadOnly,
7447
+ isRequired: fieldIsRequired,
7448
+ isInvalid: fieldIsInvalid,
7449
+ autoFocus: fieldAutoFocus,
7450
+ name: fieldName
7451
+ } = _a, restFieldProps = __objRest$1h(_a, [
7452
+ "id",
7453
+ "aria-describedby",
7454
+ "aria-labelledby",
7455
+ "value",
7456
+ "onChange",
7457
+ "minValue",
7458
+ "maxValue",
7459
+ "placeholderValue",
7460
+ "hideTimeZone",
7461
+ "hourCycle",
7462
+ "shouldForceLeadingZeros",
7463
+ "granularity",
7464
+ "isDisabled",
7465
+ "isReadOnly",
7466
+ "isRequired",
7467
+ "isInvalid",
7468
+ "autoFocus",
7469
+ "name"
7470
+ ]);
7471
+ const {
7472
+ role: groupRole,
7473
+ id: groupId,
7474
+ "aria-disabled": groupAriaDisabled,
7475
+ "aria-labelledby": groupAriaLabelledBy,
7476
+ "aria-describedby": groupAriaDescribedBy,
7477
+ onKeyDown: groupOnKeyDown,
7478
+ onKeyUp: groupOnKeyUp,
7479
+ onFocus: groupOnFocus,
7480
+ onBlur: groupOnBlur,
7481
+ onPointerDown: groupOnPointerDown,
7482
+ onClick: groupOnClick
7483
+ } = groupProps;
7484
+ const togglePopup = () => {
7485
+ state.setOpen(!state.isOpen);
7486
+ };
7487
+ react.useOutsideClick({
7488
+ ref: dialogRef,
7489
+ handler: (event) => {
7490
+ var _a2;
7491
+ if ((_a2 = ref.current) == null ? void 0 : _a2.contains(event.target))
7492
+ return;
7493
+ state.setOpen(false);
7494
+ }
7495
+ });
7274
7496
  return /* @__PURE__ */ React.createElement(
7275
7497
  Popover,
7276
7498
  {
7277
7499
  isOpen: state.isOpen,
7278
7500
  onClose: () => state.setOpen(false),
7501
+ closeOnBlur: false,
7279
7502
  placement: "bottom-end"
7280
7503
  },
7281
- /* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, { minW: 56 }, /* @__PURE__ */ React.createElement(react.InputGroup, __spreadProps$h(__spreadValues$1v({}, groupProps), { ref, __css: group }), /* @__PURE__ */ React.createElement(
7282
- StyledField,
7283
- {
7284
- isDisabled,
7285
- isInvalid,
7286
- variant
7287
- },
7288
- /* @__PURE__ */ React.createElement(react.Box, { paddingInlineStart: "1a", paddingInlineEnd: 10 }, /* @__PURE__ */ React.createElement(DateField, __spreadProps$h(__spreadValues$1v({}, fieldProps), { dateFormat })))
7289
- ), /* @__PURE__ */ React.createElement(
7290
- react.InputRightElement,
7504
+ /* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, { minW: 56 }, /* @__PURE__ */ React.createElement(
7505
+ react.InputGroup,
7291
7506
  {
7292
- sx: { height: "100%", paddingRight: "1" },
7293
- zIndex: 0
7507
+ role: groupRole,
7508
+ id: groupId,
7509
+ "aria-disabled": groupAriaDisabled,
7510
+ "aria-labelledby": groupAriaLabelledBy,
7511
+ "aria-describedby": groupAriaDescribedBy,
7512
+ onKeyDown: groupOnKeyDown,
7513
+ onKeyUp: groupOnKeyUp,
7514
+ onFocus: groupOnFocus,
7515
+ onBlur: groupOnBlur,
7516
+ onPointerDown: groupOnPointerDown,
7517
+ onClick: groupOnClick,
7518
+ ref,
7519
+ __css: group
7294
7520
  },
7295
7521
  /* @__PURE__ */ React.createElement(
7296
- Trigger,
7297
- __spreadProps$h(__spreadValues$1v({}, buttonProps), {
7522
+ StyledField,
7523
+ {
7298
7524
  isDisabled,
7299
- handleClick: togglePopup
7300
- })
7525
+ isInvalid,
7526
+ variant
7527
+ },
7528
+ /* @__PURE__ */ React.createElement(react.Box, { paddingInlineStart: "1a", paddingInlineEnd: 10 }, /* @__PURE__ */ React.createElement(
7529
+ DateField,
7530
+ __spreadProps$h(__spreadValues$1v({}, restFieldProps), {
7531
+ id: fieldId,
7532
+ "aria-describedby": fieldAriaDescribedBy,
7533
+ "aria-labelledby": fieldAriaLabelledBy,
7534
+ value: fieldValue,
7535
+ onChange: fieldOnChange,
7536
+ minValue: fieldMinValue,
7537
+ maxValue: fieldMaxValue,
7538
+ placeholderValue: fieldPlaceholderValue,
7539
+ hideTimeZone: fieldHideTimeZone,
7540
+ hourCycle: fieldHourCycle,
7541
+ shouldForceLeadingZeros: fieldShouldForceLeadingZeros,
7542
+ granularity: fieldGranularity,
7543
+ isDisabled: fieldIsDisabled,
7544
+ isReadOnly: fieldIsReadOnly,
7545
+ isRequired: fieldIsRequired,
7546
+ isInvalid: fieldIsInvalid,
7547
+ autoFocus: fieldAutoFocus,
7548
+ name: fieldName,
7549
+ dateFormat
7550
+ })
7551
+ ))
7552
+ ),
7553
+ /* @__PURE__ */ React.createElement(
7554
+ react.InputRightElement,
7555
+ {
7556
+ sx: { height: "100%", paddingRight: "1" },
7557
+ zIndex: 0
7558
+ },
7559
+ /* @__PURE__ */ React.createElement(
7560
+ Trigger,
7561
+ {
7562
+ id: buttonId,
7563
+ "aria-haspopup": buttonAriaHasPopup,
7564
+ "aria-label": buttonAriaLabel,
7565
+ "aria-labelledby": buttonAriaLabelledBy,
7566
+ "aria-describedby": buttonAriaDescribedBy,
7567
+ "aria-expanded": buttonAriaExpanded,
7568
+ isDisabled,
7569
+ handleClick: togglePopup
7570
+ }
7571
+ )
7301
7572
  )
7302
- )), /* @__PURE__ */ React.createElement(
7573
+ ), /* @__PURE__ */ React.createElement(
7303
7574
  IconButton,
7304
7575
  {
7305
7576
  "aria-label": "reset-date",
@@ -7312,7 +7583,33 @@
7312
7583
  icon: /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.XCloseSolid })
7313
7584
  }
7314
7585
  ))),
7315
- state.isOpen && /* @__PURE__ */ React.createElement(react.PopoverContent, __spreadProps$h(__spreadValues$1v({}, dialogProps), { ref, w: 64, border: "none" }), /* @__PURE__ */ React.createElement(focus.FocusScope, { contain: true, restoreFocus: true }, /* @__PURE__ */ React.createElement(DatePickerLocaleWrapper, { firstDayOfWeek }, /* @__PURE__ */ React.createElement(Calendar, __spreadProps$h(__spreadValues$1v({}, calendarProps), { firstDayOfWeek })))))
7586
+ state.isOpen && /* @__PURE__ */ React.createElement(
7587
+ react.PopoverContent,
7588
+ {
7589
+ id: dialogId,
7590
+ "aria-labelledby": dialogAriaLabelledBy,
7591
+ ref: dialogRef,
7592
+ w: 64,
7593
+ border: "none"
7594
+ },
7595
+ /* @__PURE__ */ React.createElement(focus.FocusScope, { contain: true, restoreFocus: true }, /* @__PURE__ */ React.createElement(DatePickerLocaleWrapper, { firstDayOfWeek }, /* @__PURE__ */ React.createElement(
7596
+ Calendar,
7597
+ {
7598
+ autoFocus: calAutoFocus,
7599
+ value: calValue,
7600
+ onChange: calOnChange,
7601
+ minValue: calMinValue,
7602
+ maxValue: calMaxValue,
7603
+ isDisabled: calIsDisabled,
7604
+ isReadOnly: calIsReadOnly,
7605
+ isDateUnavailable: calIsDateUnavailable,
7606
+ defaultFocusedValue: calDefaultFocusedValue,
7607
+ isInvalid: calIsInvalid,
7608
+ errorMessage: calErrorMessage,
7609
+ firstDayOfWeek
7610
+ }
7611
+ )))
7612
+ )
7316
7613
  );
7317
7614
  };
7318
7615
 
@@ -7332,7 +7629,7 @@
7332
7629
  }
7333
7630
  return a;
7334
7631
  };
7335
- var __objRest$1f = (source, exclude) => {
7632
+ var __objRest$1g = (source, exclude) => {
7336
7633
  var target = {};
7337
7634
  for (var prop in source)
7338
7635
  if (__hasOwnProp$1u.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -7345,7 +7642,7 @@
7345
7642
  return target;
7346
7643
  };
7347
7644
  const Clickable = (_a) => {
7348
- var _b = _a, { href, linkProps } = _b, rest = __objRest$1f(_b, ["href", "linkProps"]);
7645
+ var _b = _a, { href, linkProps } = _b, rest = __objRest$1g(_b, ["href", "linkProps"]);
7349
7646
  const clickable$1 = clickable.useClickable(rest);
7350
7647
  return /* @__PURE__ */ React.createElement(React.Fragment, null, !ramda.isNil(href) && /* @__PURE__ */ React.createElement(
7351
7648
  react.Link,
@@ -7885,7 +8182,7 @@
7885
8182
  }
7886
8183
  return a;
7887
8184
  };
7888
- var __objRest$1e = (source, exclude) => {
8185
+ var __objRest$1f = (source, exclude) => {
7889
8186
  var target = {};
7890
8187
  for (var prop in source)
7891
8188
  if (__hasOwnProp$1s.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -7904,7 +8201,7 @@
7904
8201
  title = "",
7905
8202
  description = "",
7906
8203
  hasIcon = false
7907
- } = _b, rest = __objRest$1e(_b, [
8204
+ } = _b, rest = __objRest$1f(_b, [
7908
8205
  "variant",
7909
8206
  "hasArrow",
7910
8207
  "title",
@@ -7953,6 +8250,18 @@
7953
8250
  return a;
7954
8251
  };
7955
8252
  var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
8253
+ var __objRest$1e = (source, exclude) => {
8254
+ var target = {};
8255
+ for (var prop in source)
8256
+ if (__hasOwnProp$1r.call(source, prop) && exclude.indexOf(prop) < 0)
8257
+ target[prop] = source[prop];
8258
+ if (source != null && __getOwnPropSymbols$1r)
8259
+ for (var prop of __getOwnPropSymbols$1r(source)) {
8260
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1r.call(source, prop))
8261
+ target[prop] = source[prop];
8262
+ }
8263
+ return target;
8264
+ };
7956
8265
  const parseValue = (value) => {
7957
8266
  if (!isValidDateRange(value))
7958
8267
  return null;
@@ -7993,9 +8302,15 @@
7993
8302
  onCancelChanges,
7994
8303
  "data-testid": dataTestId,
7995
8304
  defaultOpen = false,
7996
- onOpenChange
8305
+ onOpenChange,
8306
+ placeholderValue,
8307
+ isDateUnavailable,
8308
+ allowsNonContiguousRanges,
8309
+ startName,
8310
+ endName
7997
8311
  } = props;
7998
8312
  const ref = React.useRef();
8313
+ const dialogRef = React.useRef();
7999
8314
  const { group } = react.useMultiStyleConfig("DatePicker");
8000
8315
  const parsedProps = {
8001
8316
  onChange: (date) => {
@@ -8015,9 +8330,9 @@
8015
8330
  maxValue: parsedProps.maxValue,
8016
8331
  isDisabled,
8017
8332
  isInvalid,
8018
- placeholderValue: props.placeholderValue,
8019
- isDateUnavailable: props.isDateUnavailable,
8020
- allowsNonContiguousRanges: props.allowsNonContiguousRanges,
8333
+ placeholderValue,
8334
+ isDateUnavailable,
8335
+ allowsNonContiguousRanges,
8021
8336
  shouldCloseOnSelect: false,
8022
8337
  hideTimeZone: true,
8023
8338
  defaultOpen,
@@ -8041,22 +8356,148 @@
8041
8356
  value: parseValue(value),
8042
8357
  minValue: parsedProps.minValue || date.parseDate("1994-03-08"),
8043
8358
  maxValue: parsedProps.maxValue,
8044
- placeholderValue: props.placeholderValue,
8045
- isDateUnavailable: props.isDateUnavailable,
8046
- allowsNonContiguousRanges: props.allowsNonContiguousRanges,
8359
+ placeholderValue,
8360
+ isDateUnavailable,
8361
+ allowsNonContiguousRanges,
8047
8362
  isDisabled,
8048
8363
  isInvalid,
8049
- startName: props.startName,
8050
- endName: props.endName,
8364
+ startName,
8365
+ endName,
8051
8366
  "aria-label": "Date range picker"
8052
8367
  }, !ramda.isNil(dataTestId) && { "data-testid": dataTestId }),
8053
8368
  state,
8054
8369
  ref
8055
8370
  );
8056
- const togglePopup = () => state.setOpen(!state.isOpen);
8371
+ const {
8372
+ id: buttonId,
8373
+ "aria-haspopup": buttonAriaHasPopup,
8374
+ "aria-label": buttonAriaLabel,
8375
+ "aria-labelledby": buttonAriaLabelledBy,
8376
+ "aria-describedby": buttonAriaDescribedBy,
8377
+ "aria-expanded": buttonAriaExpanded
8378
+ } = buttonProps;
8379
+ const {
8380
+ role: groupRole,
8381
+ id: groupId,
8382
+ "aria-disabled": groupAriaDisabled,
8383
+ "aria-labelledby": groupAriaLabelledBy,
8384
+ "aria-describedby": groupAriaDescribedBy,
8385
+ onKeyDown: groupOnKeyDown,
8386
+ onKeyUp: groupOnKeyUp,
8387
+ onFocus: groupOnFocus,
8388
+ onBlur: groupOnBlur,
8389
+ onPointerDown: groupOnPointerDown,
8390
+ onClick: groupOnClick
8391
+ } = groupProps;
8392
+ const _a = startFieldProps, {
8393
+ id: startFieldId,
8394
+ "aria-describedby": startFieldAriaDescribedBy,
8395
+ "aria-labelledby": startFieldAriaLabelledBy,
8396
+ value: startFieldValue,
8397
+ onChange: startFieldOnChange,
8398
+ minValue: startFieldMinValue,
8399
+ maxValue: startFieldMaxValue,
8400
+ placeholderValue: startFieldPlaceholderValue,
8401
+ hideTimeZone: startFieldHideTimeZone,
8402
+ hourCycle: startFieldHourCycle,
8403
+ shouldForceLeadingZeros: startFieldShouldForceLeadingZeros,
8404
+ granularity: startFieldGranularity,
8405
+ isDisabled: startFieldIsDisabled,
8406
+ isReadOnly: startFieldIsReadOnly,
8407
+ isRequired: startFieldIsRequired,
8408
+ isInvalid: startFieldIsInvalid,
8409
+ autoFocus: startFieldAutoFocus,
8410
+ name: startFieldName
8411
+ } = _a, restStartFieldProps = __objRest$1e(_a, [
8412
+ "id",
8413
+ "aria-describedby",
8414
+ "aria-labelledby",
8415
+ "value",
8416
+ "onChange",
8417
+ "minValue",
8418
+ "maxValue",
8419
+ "placeholderValue",
8420
+ "hideTimeZone",
8421
+ "hourCycle",
8422
+ "shouldForceLeadingZeros",
8423
+ "granularity",
8424
+ "isDisabled",
8425
+ "isReadOnly",
8426
+ "isRequired",
8427
+ "isInvalid",
8428
+ "autoFocus",
8429
+ "name"
8430
+ ]);
8431
+ const _b = endFieldProps, {
8432
+ id: endFieldId,
8433
+ "aria-describedby": endFieldAriaDescribedBy,
8434
+ "aria-labelledby": endFieldAriaLabelledBy,
8435
+ value: endFieldValue,
8436
+ onChange: endFieldOnChange,
8437
+ minValue: endFieldMinValue,
8438
+ maxValue: endFieldMaxValue,
8439
+ placeholderValue: endFieldPlaceholderValue,
8440
+ hideTimeZone: endFieldHideTimeZone,
8441
+ hourCycle: endFieldHourCycle,
8442
+ shouldForceLeadingZeros: endFieldShouldForceLeadingZeros,
8443
+ granularity: endFieldGranularity,
8444
+ isDisabled: endFieldIsDisabled,
8445
+ isReadOnly: endFieldIsReadOnly,
8446
+ isRequired: endFieldIsRequired,
8447
+ isInvalid: endFieldIsInvalid,
8448
+ name: endFieldName
8449
+ } = _b, restEndFieldProps = __objRest$1e(_b, [
8450
+ "id",
8451
+ "aria-describedby",
8452
+ "aria-labelledby",
8453
+ "value",
8454
+ "onChange",
8455
+ "minValue",
8456
+ "maxValue",
8457
+ "placeholderValue",
8458
+ "hideTimeZone",
8459
+ "hourCycle",
8460
+ "shouldForceLeadingZeros",
8461
+ "granularity",
8462
+ "isDisabled",
8463
+ "isReadOnly",
8464
+ "isRequired",
8465
+ "isInvalid",
8466
+ "name"
8467
+ ]);
8468
+ const {
8469
+ id: dialogId,
8470
+ "aria-labelledby": dialogAriaLabelledBy
8471
+ } = dialogProps;
8472
+ const {
8473
+ autoFocus: calAutoFocus,
8474
+ value: calValue,
8475
+ onChange: calOnChange,
8476
+ minValue: calMinValue,
8477
+ maxValue: calMaxValue,
8478
+ isDisabled: calIsDisabled,
8479
+ isReadOnly: calIsReadOnly,
8480
+ isDateUnavailable: calIsDateUnavailable,
8481
+ allowsNonContiguousRanges: calAllowsNonContiguousRanges,
8482
+ defaultFocusedValue: calDefaultFocusedValue,
8483
+ isInvalid: calIsInvalid,
8484
+ errorMessage: calErrorMessage
8485
+ } = calendarProps;
8486
+ const togglePopup = () => {
8487
+ state.setOpen(!state.isOpen);
8488
+ };
8057
8489
  const handleClose = () => {
8058
8490
  state.setOpen(false);
8059
8491
  };
8492
+ react.useOutsideClick({
8493
+ ref: dialogRef,
8494
+ handler: (event) => {
8495
+ var _a2;
8496
+ if ((_a2 = ref.current) == null ? void 0 : _a2.contains(event.target))
8497
+ return;
8498
+ state.setOpen(false);
8499
+ }
8500
+ });
8060
8501
  const ResetButton = CustomResetButton || /* @__PURE__ */ React.createElement(
8061
8502
  IconButton,
8062
8503
  {
@@ -8100,23 +8541,94 @@
8100
8541
  {
8101
8542
  isOpen: state.isOpen,
8102
8543
  onClose: handleModalClose,
8544
+ closeOnBlur: false,
8103
8545
  placement: "bottom-start"
8104
8546
  },
8105
- /* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, null, /* @__PURE__ */ React.createElement(react.InputGroup, __spreadProps$g(__spreadValues$1r({}, groupProps), { ref, __css: group }), /* @__PURE__ */ React.createElement(
8106
- StyledField,
8547
+ /* @__PURE__ */ React.createElement(react.PopoverAnchor, null, /* @__PURE__ */ React.createElement(react.HStack, null, /* @__PURE__ */ React.createElement(
8548
+ react.InputGroup,
8107
8549
  {
8108
- isDisabled,
8109
- isInvalid,
8110
- variant
8550
+ role: groupRole,
8551
+ id: groupId,
8552
+ "aria-disabled": groupAriaDisabled,
8553
+ "aria-labelledby": groupAriaLabelledBy,
8554
+ "aria-describedby": groupAriaDescribedBy,
8555
+ onKeyDown: groupOnKeyDown,
8556
+ onKeyUp: groupOnKeyUp,
8557
+ onFocus: groupOnFocus,
8558
+ onBlur: groupOnBlur,
8559
+ onPointerDown: groupOnPointerDown,
8560
+ onClick: groupOnClick,
8561
+ ref,
8562
+ __css: group
8111
8563
  },
8112
- /* @__PURE__ */ React.createElement(react.HStack, { paddingInlineStart: "1a", paddingInlineEnd: 10 }, /* @__PURE__ */ React.createElement(DateField, __spreadProps$g(__spreadValues$1r({}, startFieldProps), { dateFormat })), /* @__PURE__ */ React.createElement(P, null, "-"), /* @__PURE__ */ React.createElement(DateField, __spreadProps$g(__spreadValues$1r({}, endFieldProps), { dateFormat })))
8113
- ), /* @__PURE__ */ React.createElement(react.InputRightElement, { sx: { height: "100%", paddingRight: "1" } }, /* @__PURE__ */ React.createElement(
8114
- Trigger,
8115
- __spreadProps$g(__spreadValues$1r({}, buttonProps), {
8116
- isDisabled,
8117
- handleClick: togglePopup
8118
- })
8119
- ))), shouldShowResetButton && ResetButton, shouldShowSaveAndCancelButtons && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Tooltip, { label: clearButtonLabel }, /* @__PURE__ */ React.createElement(
8564
+ /* @__PURE__ */ React.createElement(
8565
+ StyledField,
8566
+ {
8567
+ isDisabled,
8568
+ isInvalid,
8569
+ variant
8570
+ },
8571
+ /* @__PURE__ */ React.createElement(react.HStack, { paddingInlineStart: "1a", paddingInlineEnd: 10 }, /* @__PURE__ */ React.createElement(
8572
+ DateField,
8573
+ __spreadProps$g(__spreadValues$1r({}, restStartFieldProps), {
8574
+ id: startFieldId,
8575
+ "aria-describedby": startFieldAriaDescribedBy,
8576
+ "aria-labelledby": startFieldAriaLabelledBy,
8577
+ value: startFieldValue,
8578
+ onChange: startFieldOnChange,
8579
+ minValue: startFieldMinValue,
8580
+ maxValue: startFieldMaxValue,
8581
+ placeholderValue: startFieldPlaceholderValue,
8582
+ hideTimeZone: startFieldHideTimeZone,
8583
+ hourCycle: startFieldHourCycle,
8584
+ shouldForceLeadingZeros: startFieldShouldForceLeadingZeros,
8585
+ granularity: startFieldGranularity,
8586
+ isDisabled: startFieldIsDisabled,
8587
+ isReadOnly: startFieldIsReadOnly,
8588
+ isRequired: startFieldIsRequired,
8589
+ isInvalid: startFieldIsInvalid,
8590
+ autoFocus: startFieldAutoFocus,
8591
+ name: startFieldName,
8592
+ dateFormat
8593
+ })
8594
+ ), /* @__PURE__ */ React.createElement(P, null, "-"), /* @__PURE__ */ React.createElement(
8595
+ DateField,
8596
+ __spreadProps$g(__spreadValues$1r({}, restEndFieldProps), {
8597
+ id: endFieldId,
8598
+ "aria-describedby": endFieldAriaDescribedBy,
8599
+ "aria-labelledby": endFieldAriaLabelledBy,
8600
+ value: endFieldValue,
8601
+ onChange: endFieldOnChange,
8602
+ minValue: endFieldMinValue,
8603
+ maxValue: endFieldMaxValue,
8604
+ placeholderValue: endFieldPlaceholderValue,
8605
+ hideTimeZone: endFieldHideTimeZone,
8606
+ hourCycle: endFieldHourCycle,
8607
+ shouldForceLeadingZeros: endFieldShouldForceLeadingZeros,
8608
+ granularity: endFieldGranularity,
8609
+ isDisabled: endFieldIsDisabled,
8610
+ isReadOnly: endFieldIsReadOnly,
8611
+ isRequired: endFieldIsRequired,
8612
+ isInvalid: endFieldIsInvalid,
8613
+ name: endFieldName,
8614
+ dateFormat
8615
+ })
8616
+ ))
8617
+ ),
8618
+ /* @__PURE__ */ React.createElement(react.InputRightElement, { sx: { height: "100%", paddingRight: "1" } }, /* @__PURE__ */ React.createElement(
8619
+ Trigger,
8620
+ {
8621
+ id: buttonId,
8622
+ "aria-haspopup": buttonAriaHasPopup,
8623
+ "aria-label": buttonAriaLabel,
8624
+ "aria-labelledby": buttonAriaLabelledBy,
8625
+ "aria-describedby": buttonAriaDescribedBy,
8626
+ "aria-expanded": buttonAriaExpanded,
8627
+ isDisabled,
8628
+ handleClick: togglePopup
8629
+ }
8630
+ ))
8631
+ ), shouldShowResetButton && ResetButton, shouldShowSaveAndCancelButtons && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Tooltip, { label: clearButtonLabel }, /* @__PURE__ */ React.createElement(
8120
8632
  IconButton,
8121
8633
  {
8122
8634
  "aria-label": "cancel-date-change",
@@ -8139,20 +8651,41 @@
8139
8651
  icon: /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.CheckSolid })
8140
8652
  }
8141
8653
  ))))),
8142
- /* @__PURE__ */ React.createElement(PortalWrapper, { renderInPortal }, state.isOpen && /* @__PURE__ */ React.createElement(react.PopoverContent, __spreadProps$g(__spreadValues$1r({}, dialogProps), { ref, w: "max-content" }), /* @__PURE__ */ React.createElement(DatePickerLocaleWrapper, { firstDayOfWeek }, /* @__PURE__ */ React.createElement(
8143
- RangeCalendar,
8144
- __spreadProps$g(__spreadValues$1r({}, calendarProps), {
8145
- resetDate: cancelOrResetDateChange,
8146
- handleClose: handleModalClose,
8147
- fiscalStartMonth: fiscalStartMonth || 0,
8148
- fiscalStartDay: fiscalStartDay || 0,
8149
- isClearable,
8150
- firstDayOfWeek,
8151
- onSave,
8152
- clearButtonLabel,
8153
- buttonLabel
8154
- })
8155
- ))))
8654
+ /* @__PURE__ */ React.createElement(PortalWrapper, { renderInPortal }, state.isOpen && /* @__PURE__ */ React.createElement(
8655
+ react.PopoverContent,
8656
+ {
8657
+ id: dialogId,
8658
+ "aria-labelledby": dialogAriaLabelledBy,
8659
+ ref: dialogRef,
8660
+ w: "max-content"
8661
+ },
8662
+ /* @__PURE__ */ React.createElement(focus.FocusScope, { contain: true, restoreFocus: true }, /* @__PURE__ */ React.createElement(DatePickerLocaleWrapper, { firstDayOfWeek }, /* @__PURE__ */ React.createElement(
8663
+ RangeCalendar,
8664
+ {
8665
+ autoFocus: calAutoFocus,
8666
+ value: calValue,
8667
+ onChange: calOnChange,
8668
+ minValue: calMinValue,
8669
+ maxValue: calMaxValue,
8670
+ isDisabled: calIsDisabled,
8671
+ isReadOnly: calIsReadOnly,
8672
+ isDateUnavailable: calIsDateUnavailable,
8673
+ allowsNonContiguousRanges: calAllowsNonContiguousRanges,
8674
+ defaultFocusedValue: calDefaultFocusedValue,
8675
+ isInvalid: calIsInvalid,
8676
+ errorMessage: calErrorMessage,
8677
+ resetDate: cancelOrResetDateChange,
8678
+ handleClose: handleModalClose,
8679
+ fiscalStartMonth: fiscalStartMonth || 0,
8680
+ fiscalStartDay: fiscalStartDay || 0,
8681
+ isClearable,
8682
+ firstDayOfWeek,
8683
+ onSave,
8684
+ clearButtonLabel,
8685
+ buttonLabel
8686
+ }
8687
+ )))
8688
+ ))
8156
8689
  );
8157
8690
  };
8158
8691