@economic/taco 1.1.5-alpha.1 → 1.1.8

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 (93) hide show
  1. package/dist/components/Icon/components/LogOut.d.ts +3 -0
  2. package/dist/components/Icon/components/Menu.d.ts +3 -0
  3. package/dist/components/Icon/components/Profile.d.ts +3 -0
  4. package/dist/components/Icon/components/index.d.ts +1 -1
  5. package/dist/components/Input/Input.d.ts +1 -1
  6. package/dist/components/Menu/Menu.d.ts +2 -2
  7. package/dist/components/Menu/components/Item.d.ts +1 -1
  8. package/dist/components/Menu/components/Link.d.ts +1 -1
  9. package/dist/esm/components/Card/Card.js +12 -14
  10. package/dist/esm/components/Card/Card.js.map +1 -1
  11. package/dist/esm/components/Checkbox/Checkbox.js +18 -15
  12. package/dist/esm/components/Checkbox/Checkbox.js.map +1 -1
  13. package/dist/esm/components/Combobox/Combobox.js +25 -23
  14. package/dist/esm/components/Combobox/Combobox.js.map +1 -1
  15. package/dist/esm/components/Datepicker/Datepicker.js +52 -48
  16. package/dist/esm/components/Datepicker/Datepicker.js.map +1 -1
  17. package/dist/esm/components/Dialog/Dialog.js +58 -39
  18. package/dist/esm/components/Dialog/Dialog.js.map +1 -1
  19. package/dist/esm/components/Field/Field.js +12 -10
  20. package/dist/esm/components/Field/Field.js.map +1 -1
  21. package/dist/esm/components/Form/Form.js +8 -6
  22. package/dist/esm/components/Form/Form.js.map +1 -1
  23. package/dist/esm/components/Group/Group.js +8 -6
  24. package/dist/esm/components/Group/Group.js.map +1 -1
  25. package/dist/esm/components/Hanger/Hanger.js +35 -27
  26. package/dist/esm/components/Hanger/Hanger.js.map +1 -1
  27. package/dist/esm/components/HoverCard/HoverCard.js +9 -8
  28. package/dist/esm/components/HoverCard/HoverCard.js.map +1 -1
  29. package/dist/esm/components/Icon/Icon.js +8 -7
  30. package/dist/esm/components/Icon/Icon.js.map +1 -1
  31. package/dist/esm/components/Icon/components/LogOut.js +20 -0
  32. package/dist/esm/components/Icon/components/LogOut.js.map +1 -0
  33. package/dist/esm/components/Icon/components/Menu.js +18 -0
  34. package/dist/esm/components/Icon/components/Menu.js.map +1 -0
  35. package/dist/esm/components/Icon/components/Profile.js +20 -0
  36. package/dist/esm/components/Icon/components/Profile.js.map +1 -0
  37. package/dist/esm/components/Icon/components/index.js +6 -0
  38. package/dist/esm/components/Icon/components/index.js.map +1 -1
  39. package/dist/esm/components/IconButton/IconButton.js +11 -9
  40. package/dist/esm/components/IconButton/IconButton.js.map +1 -1
  41. package/dist/esm/components/Input/Input.js +25 -25
  42. package/dist/esm/components/Input/Input.js.map +1 -1
  43. package/dist/esm/components/Listbox/Listbox.js +25 -24
  44. package/dist/esm/components/Listbox/Listbox.js.map +1 -1
  45. package/dist/esm/components/Menu/Menu.js +34 -16
  46. package/dist/esm/components/Menu/Menu.js.map +1 -1
  47. package/dist/esm/components/Navigation/Navigation.js +44 -35
  48. package/dist/esm/components/Navigation/Navigation.js.map +1 -1
  49. package/dist/esm/components/Pagination/Pagination.js +56 -39
  50. package/dist/esm/components/Pagination/Pagination.js.map +1 -1
  51. package/dist/esm/components/Popover/Popover.js +34 -29
  52. package/dist/esm/components/Popover/Popover.js.map +1 -1
  53. package/dist/esm/components/Progress/Progress.js +15 -11
  54. package/dist/esm/components/Progress/Progress.js.map +1 -1
  55. package/dist/esm/components/Provider/Provider.js +18 -13
  56. package/dist/esm/components/Provider/Provider.js.map +1 -1
  57. package/dist/esm/components/RadioGroup/RadioGroup.js +57 -45
  58. package/dist/esm/components/RadioGroup/RadioGroup.js.map +1 -1
  59. package/dist/esm/components/SearchInput/SearchInput.js +11 -11
  60. package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
  61. package/dist/esm/components/Select/Select.js +31 -30
  62. package/dist/esm/components/Select/Select.js.map +1 -1
  63. package/dist/esm/components/Spinner/Spinner.js +19 -12
  64. package/dist/esm/components/Spinner/Spinner.js.map +1 -1
  65. package/dist/esm/components/Switch/Switch.js +10 -9
  66. package/dist/esm/components/Switch/Switch.js.map +1 -1
  67. package/dist/esm/components/Tabs/Tabs.js +27 -25
  68. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  69. package/dist/esm/components/Textarea/Textarea.js +9 -11
  70. package/dist/esm/components/Textarea/Textarea.js.map +1 -1
  71. package/dist/esm/components/Toast/Toaster.js +118 -88
  72. package/dist/esm/components/Toast/Toaster.js.map +1 -1
  73. package/dist/esm/components/Tooltip/Tooltip.js +8 -7
  74. package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
  75. package/dist/esm/components/Tour/Tour.js +50 -44
  76. package/dist/esm/components/Tour/Tour.js.map +1 -1
  77. package/dist/esm/components/Treeview/Treeview.js +36 -26
  78. package/dist/esm/components/Treeview/Treeview.js.map +1 -1
  79. package/dist/esm/components/VisuallyHidden/VisuallyHidden.js +1 -1
  80. package/dist/esm/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
  81. package/dist/esm/index.js +0 -1
  82. package/dist/esm/index.js.map +1 -1
  83. package/dist/esm/utils/hooks/useProxiedRef.js +3 -3
  84. package/dist/esm/utils/hooks/useProxiedRef.js.map +1 -1
  85. package/dist/index.d.ts +0 -1
  86. package/dist/taco.cjs.development.js +913 -724
  87. package/dist/taco.cjs.development.js.map +1 -1
  88. package/dist/taco.cjs.production.min.js +1 -1
  89. package/dist/taco.cjs.production.min.js.map +1 -1
  90. package/dist/utils/tailwind.d.ts +1 -1
  91. package/package.json +4 -5
  92. package/tailwind.config.js +0 -5
  93. package/types.json +5 -2
@@ -1850,6 +1850,22 @@ function IconLockOpen(props, svgRef) {
1850
1850
 
1851
1851
  var LockOpen = /*#__PURE__*/React.forwardRef(IconLockOpen);
1852
1852
 
1853
+ function IconLogOut(props, svgRef) {
1854
+ return React.createElement("svg", Object.assign({
1855
+ fill: "none",
1856
+ xmlns: "http://www.w3.org/2000/svg",
1857
+ viewBox: "0 0 24 24",
1858
+ ref: svgRef
1859
+ }, props), React.createElement("path", {
1860
+ fillRule: "evenodd",
1861
+ clipRule: "evenodd",
1862
+ d: "M13.25 4.5H6.5v15h6.75a1.25 1.25 0 110 2.5h-7A2.25 2.25 0 014 19.75V4.25A2.25 2.25 0 016.25 2h7a1.25 1.25 0 110 2.5zm6.384 2.616l-.102-.091a1.25 1.25 0 00-1.666 1.859l1.867 1.866H11.75l-.128.007a1.25 1.25 0 00.128 2.493h7.982l-1.866 1.866-.091.102a1.25 1.25 0 001.859 1.666l4-4 .08-.089.05-.063.068-.106.058-.112.049-.127.03-.108.016-.088.012-.112L24 12l-.004-.096-.016-.13-.03-.127-.03-.087-.046-.107-.046-.086-.065-.1a1.267 1.267 0 00-.13-.15l-4-4zm4.084 4.094l-.084-.094c.03.03.058.061.084.094z",
1863
+ fill: "currentColor"
1864
+ }));
1865
+ }
1866
+
1867
+ var LogOut = /*#__PURE__*/React.forwardRef(IconLogOut);
1868
+
1853
1869
  function IconLog(props, svgRef) {
1854
1870
  return React.createElement("svg", Object.assign({
1855
1871
  xmlns: "http://www.w3.org/2000/svg",
@@ -1906,6 +1922,20 @@ function IconMatchEntries(props, svgRef) {
1906
1922
 
1907
1923
  var MatchEntries = /*#__PURE__*/React.forwardRef(IconMatchEntries);
1908
1924
 
1925
+ function IconMenu(props, svgRef) {
1926
+ return React.createElement("svg", Object.assign({
1927
+ fill: "none",
1928
+ xmlns: "http://www.w3.org/2000/svg",
1929
+ viewBox: "0 0 24 24",
1930
+ ref: svgRef
1931
+ }, props), React.createElement("path", {
1932
+ d: "M4 19h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zm0-6h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zM3 6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1z",
1933
+ fill: "currentColor"
1934
+ }));
1935
+ }
1936
+
1937
+ var Menu = /*#__PURE__*/React.forwardRef(IconMenu);
1938
+
1909
1939
  function IconMileage(props, svgRef) {
1910
1940
  return React.createElement("svg", Object.assign({
1911
1941
  xmlns: "http://www.w3.org/2000/svg",
@@ -2200,6 +2230,22 @@ function IconProductLedgerCard(props, svgRef) {
2200
2230
 
2201
2231
  var ProductLedgerCard = /*#__PURE__*/React.forwardRef(IconProductLedgerCard);
2202
2232
 
2233
+ function IconProfile(props, svgRef) {
2234
+ return React.createElement("svg", Object.assign({
2235
+ fill: "none",
2236
+ xmlns: "http://www.w3.org/2000/svg",
2237
+ viewBox: "0 0 24 24",
2238
+ ref: svgRef
2239
+ }, props), React.createElement("path", {
2240
+ fillRule: "evenodd",
2241
+ clipRule: "evenodd",
2242
+ d: "M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12a9.97 9.97 0 003.047 7.187A9.967 9.967 0 0012 22a9.967 9.967 0 006.953-2.813A9.97 9.97 0 0022 12zM5.704 16.936A7.986 7.986 0 0012 20a7.986 7.986 0 006.296-3.064A7 7 0 0012 13a7 7 0 00-6.296 3.936zM12 12a3.5 3.5 0 100-7 3.5 3.5 0 000 7z",
2243
+ fill: "currentColor"
2244
+ }));
2245
+ }
2246
+
2247
+ var Profile = /*#__PURE__*/React.forwardRef(IconProfile);
2248
+
2203
2249
  function IconProjectCards(props, svgRef) {
2204
2250
  return React.createElement("svg", Object.assign({
2205
2251
  xmlns: "http://www.w3.org/2000/svg",
@@ -3060,10 +3106,12 @@ const icons = {
3060
3106
  'list-search': ListSearch,
3061
3107
  list: List,
3062
3108
  'lock-open': LockOpen,
3109
+ 'log-out': LogOut,
3063
3110
  log: Log,
3064
3111
  market: Market,
3065
3112
  'match-amount': MatchAmount,
3066
3113
  'match-entries': MatchEntries,
3114
+ menu: Menu,
3067
3115
  mileage: Mileage,
3068
3116
  'modal-resize': ModalResize,
3069
3117
  'modal-shrink': ModalShrink,
@@ -3085,6 +3133,7 @@ const icons = {
3085
3133
  print: Print,
3086
3134
  'process-payment': ProcessPayment,
3087
3135
  'product-ledger-card': ProductLedgerCard,
3136
+ profile: Profile,
3088
3137
  'project-cards': ProjectCards,
3089
3138
  projects: Projects,
3090
3139
  quicklinks: Quicklinks,
@@ -3139,17 +3188,17 @@ const icons = {
3139
3188
  zoom: Zoom
3140
3189
  };
3141
3190
 
3142
- const Icon = /*#__PURE__*/React__default.forwardRef(function Icon(props, ref) {
3191
+ var _excluded = ["name"];
3192
+ var Icon = /*#__PURE__*/React__default.forwardRef(function Icon(props, ref) {
3143
3193
  var _props$className;
3144
3194
 
3145
- const {
3146
- name,
3147
- ...otherProps
3148
- } = props;
3149
- const Component = icons[name];
3195
+ var name = props.name,
3196
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded);
3197
+
3198
+ var Component = icons[name];
3150
3199
  /* 24x24 _at the base body font_ - must be em so that they scale with font size - tailwind spacing uses rem */
3151
3200
 
3152
- const className = cn('inline-flex h-[1.715em] w-[1.715em] flex-shrink-0', props.className, {
3201
+ var className = cn('inline-flex h-[1.715em] w-[1.715em] flex-shrink-0', props.className, {
3153
3202
  'p-[3px]': (_props$className = props.className) === null || _props$className === void 0 ? void 0 : _props$className.includes('rounded-full')
3154
3203
  });
3155
3204
  return Component ? React__default.createElement(Component, Object.assign({}, otherProps, {
@@ -3161,7 +3210,7 @@ const Icon = /*#__PURE__*/React__default.forwardRef(function Icon(props, ref) {
3161
3210
  })) : null;
3162
3211
  });
3163
3212
 
3164
- var _excluded = ["id"],
3213
+ var _excluded$1 = ["id"],
3165
3214
  _excluded2 = ["id", "defaultId", "onChange", "as"];
3166
3215
  var AccordionContext = /*#__PURE__*/React__default.createContext({
3167
3216
  as: 'h2'
@@ -3199,7 +3248,7 @@ var Content = /*#__PURE__*/React__default.forwardRef(function AccordionContent(p
3199
3248
 
3200
3249
  var Item = function Item(props) {
3201
3250
  var id = props.id,
3202
- otherProps = _objectWithoutPropertiesLoose(props, _excluded);
3251
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$1);
3203
3252
 
3204
3253
  return React__default.createElement(AccordionPrimitive.Item, Object.assign({}, otherProps, {
3205
3254
  value: id
@@ -3254,7 +3303,7 @@ var Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(props, ref) {
3254
3303
  }));
3255
3304
  });
3256
3305
 
3257
- const VisuallyHidden = /*#__PURE__*/React.forwardRef(function VisuallyHidden(props, ref) {
3306
+ var VisuallyHidden = /*#__PURE__*/React.forwardRef(function VisuallyHidden(props, ref) {
3258
3307
  return React.createElement("span", Object.assign({}, props, {
3259
3308
  className: "sr-only",
3260
3309
  ref: ref
@@ -3300,7 +3349,7 @@ const getOutlineClasses = state => {
3300
3349
  }
3301
3350
  };
3302
3351
 
3303
- var _excluded$1 = ["children", "compact", "outline", "state"];
3352
+ var _excluded$2 = ["children", "compact", "outline", "state"];
3304
3353
  var Badge = /*#__PURE__*/React.forwardRef(function Badge(props, ref) {
3305
3354
  var _cn;
3306
3355
 
@@ -3310,7 +3359,7 @@ var Badge = /*#__PURE__*/React.forwardRef(function Badge(props, ref) {
3310
3359
  _props$outline = props.outline,
3311
3360
  outline = _props$outline === void 0 ? false : _props$outline,
3312
3361
  state = props.state,
3313
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$1);
3362
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$2);
3314
3363
 
3315
3364
  var className = cn('rounded-full border font-bold text-xs uppercase overflow-hidden whitespace-nowrap inline-flex items-center justify-center h-5', (_cn = {}, _cn[getOutlineClasses(state)] = outline, _cn["border-transparent " + getStateClasses(state)] = !outline, _cn['h-2 w-2 min-w-0'] = compact, _cn['h-5 py-0 px-1.5'] = !compact, _cn), props.className);
3316
3365
  return React.createElement("span", Object.assign({}, otherProps, {
@@ -3372,13 +3421,13 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(props, ref) {
3372
3421
  }), React.Children.count(props.children) > 1 ? React.Children.map(props.children, child => typeof child === 'string' ? React.createElement("span", null, child) : child) : props.children);
3373
3422
  });
3374
3423
 
3375
- const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
3376
- const {
3377
- title,
3378
- children,
3379
- placement,
3380
- ...otherProps
3381
- } = props;
3424
+ var _excluded$3 = ["title", "children", "placement"];
3425
+ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
3426
+ var title = props.title,
3427
+ children = props.children,
3428
+ placement = props.placement,
3429
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$3);
3430
+
3382
3431
  return React.createElement(TooltipPrimitive.Root, {
3383
3432
  delayDuration: 50
3384
3433
  }, React.createElement(TooltipPrimitive.Trigger, {
@@ -3470,13 +3519,14 @@ const createButton = (props, className, ref) => {
3470
3519
  return button;
3471
3520
  };
3472
3521
 
3473
- const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(props, ref) {
3474
- const {
3475
- icon,
3476
- rounded = false,
3477
- ...otherProps
3478
- } = props;
3479
- const className = cn('w-8', getButtonClasses(), getAppearanceClasses(otherProps.appearance, true), {
3522
+ var _excluded$4 = ["icon", "rounded"];
3523
+ var IconButton = /*#__PURE__*/React.forwardRef(function IconButton(props, ref) {
3524
+ var icon = props.icon,
3525
+ _props$rounded = props.rounded,
3526
+ rounded = _props$rounded === void 0 ? false : _props$rounded,
3527
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$4);
3528
+
3529
+ var className = cn('w-8', getButtonClasses(), getAppearanceClasses(otherProps.appearance, true), {
3480
3530
  'rounded-full': rounded,
3481
3531
  rounded: !rounded,
3482
3532
  'cursor-not-allowed opacity-50': props.disabled,
@@ -3487,13 +3537,13 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(props, ref)
3487
3537
  return null;
3488
3538
  }
3489
3539
 
3490
- return createButton({ ...otherProps,
3540
+ return createButton(_extends({}, otherProps, {
3491
3541
  children: React.createElement(Icon, {
3492
3542
  name: icon,
3493
3543
  className: "m-0 p-0"
3494
3544
  }),
3495
3545
  'data-taco': 'icon-button'
3496
- }, className, ref);
3546
+ }), className, ref);
3497
3547
  });
3498
3548
 
3499
3549
  var Banner = /*#__PURE__*/React.forwardRef(function Banner(props, ref) {
@@ -3513,10 +3563,10 @@ var Banner = /*#__PURE__*/React.forwardRef(function Banner(props, ref) {
3513
3563
  }) : null);
3514
3564
  });
3515
3565
 
3516
- var _excluded$2 = ["fluid"];
3566
+ var _excluded$5 = ["fluid"];
3517
3567
  var Button$1 = /*#__PURE__*/React.forwardRef(function Button(props, ref) {
3518
3568
  var fluid = props.fluid,
3519
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$2);
3569
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$5);
3520
3570
 
3521
3571
  var className = cn(getButtonClasses(), getAppearanceClasses(otherProps.appearance), 'rounded px-3', {
3522
3572
  'cursor-not-allowed opacity-50': props.disabled,
@@ -3587,21 +3637,27 @@ function useTimer(duration = 0, callback) {
3587
3637
  };
3588
3638
  }
3589
3639
 
3590
- const Spinner$1 = /*#__PURE__*/React__default.forwardRef(function Spinner(props, ref) {
3591
- const {
3592
- delay = 500,
3593
- label,
3594
- ...otherProps
3595
- } = props;
3596
- const [visible, setVisibility] = React__default.useState(!delay);
3597
- React__default.useEffect(() => {
3598
- let timeout;
3640
+ var _excluded$6 = ["delay", "label"];
3641
+ var Spinner$1 = /*#__PURE__*/React__default.forwardRef(function Spinner(props, ref) {
3642
+ var _props$delay = props.delay,
3643
+ delay = _props$delay === void 0 ? 500 : _props$delay,
3644
+ label = props.label,
3645
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$6);
3646
+
3647
+ var _React$useState = React__default.useState(!delay),
3648
+ visible = _React$useState[0],
3649
+ setVisibility = _React$useState[1];
3650
+
3651
+ React__default.useEffect(function () {
3652
+ var timeout;
3599
3653
 
3600
3654
  if (delay) {
3601
- timeout = window.setTimeout(() => setVisibility(true), delay);
3655
+ timeout = window.setTimeout(function () {
3656
+ return setVisibility(true);
3657
+ }, delay);
3602
3658
  }
3603
3659
 
3604
- return () => {
3660
+ return function () {
3605
3661
  if (timeout) {
3606
3662
  clearTimeout(timeout);
3607
3663
  }
@@ -3612,7 +3668,7 @@ const Spinner$1 = /*#__PURE__*/React__default.forwardRef(function Spinner(props,
3612
3668
  return null;
3613
3669
  }
3614
3670
 
3615
- const className = cn('inline-flex flex-col relative items-center', otherProps.className);
3671
+ var className = cn('inline-flex flex-col relative items-center', otherProps.className);
3616
3672
  return React__default.createElement("div", Object.assign({}, otherProps, {
3617
3673
  className: className,
3618
3674
  "data-taco": "spinner",
@@ -3738,49 +3794,62 @@ const Toast = ({
3738
3794
  }));
3739
3795
  };
3740
3796
 
3741
- const DEFAULT_AUTO_CLOSE_TIMEOUT = 7500;
3742
- const ToastContext = /*#__PURE__*/React.createContext({});
3797
+ var _excluded$7 = ["children"];
3798
+ var DEFAULT_AUTO_CLOSE_TIMEOUT = 7500;
3799
+ var ToastContext = /*#__PURE__*/React.createContext({});
3743
3800
 
3744
- const insertToastWithoutDuplicates = (currentToasts, id, content, options, close) => {
3745
- const nextToasts = [...currentToasts];
3746
- const existingToastIndex = currentToasts.findIndex(toast => JSON.stringify(toast.content) === JSON.stringify(content));
3801
+ var insertToastWithoutDuplicates = function insertToastWithoutDuplicates(currentToasts, id, content, options, close) {
3802
+ var nextToasts = [].concat(currentToasts);
3803
+ var existingToastIndex = currentToasts.findIndex(function (toast) {
3804
+ return JSON.stringify(toast.content) === JSON.stringify(content);
3805
+ });
3747
3806
 
3748
3807
  if (existingToastIndex > -1) {
3749
3808
  nextToasts[existingToastIndex].lastDuplicateId = id;
3750
3809
  nextToasts[existingToastIndex].lastUpdated = Date.now();
3751
3810
  } else {
3752
3811
  nextToasts.push({
3753
- id,
3812
+ id: id,
3754
3813
  content: typeof content === 'function' ? content(close) : content,
3755
- options
3814
+ options: options
3756
3815
  });
3757
3816
  }
3758
3817
 
3759
3818
  return nextToasts;
3760
3819
  };
3761
3820
 
3762
- const ToastProvider = ({
3763
- children,
3764
- ...props
3765
- }) => {
3766
- const [toasts, setToasts] = React.useState([]);
3821
+ var ToastProvider = function ToastProvider(_ref) {
3822
+ var children = _ref.children,
3823
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3767
3824
 
3768
- const handleClose = id => {
3769
- setToasts(currentToasts => currentToasts.filter(toast => toast.id !== id));
3825
+ var _React$useState = React.useState([]),
3826
+ toasts = _React$useState[0],
3827
+ setToasts = _React$useState[1];
3828
+
3829
+ var handleClose = function handleClose(id) {
3830
+ setToasts(function (currentToasts) {
3831
+ return currentToasts.filter(function (toast) {
3832
+ return toast.id !== id;
3833
+ });
3834
+ });
3770
3835
  }; // memoize (useCallback) this function,
3771
3836
  // it is the value of the context provider and we don't want it to trigger state tree re-renders on provider children
3772
3837
 
3773
3838
 
3774
- const toaster = React.useCallback((content, options) => {
3775
- const id = uuid.v4();
3839
+ var toaster = React.useCallback(function (content, options) {
3840
+ var id = uuid.v4();
3776
3841
 
3777
- const close = () => handleClose(id);
3842
+ var close = function close() {
3843
+ return handleClose(id);
3844
+ };
3778
3845
 
3779
- setToasts(currentToasts => insertToastWithoutDuplicates(currentToasts, id, content, options, close));
3846
+ setToasts(function (currentToasts) {
3847
+ return insertToastWithoutDuplicates(currentToasts, id, content, options, close);
3848
+ });
3780
3849
 
3781
- const update = (content, options) => {
3782
- setToasts(currentToasts => {
3783
- const nextToasts = currentToasts.filter(toast => {
3850
+ var update = function update(content, options) {
3851
+ setToasts(function (currentToasts) {
3852
+ var nextToasts = currentToasts.filter(function (toast) {
3784
3853
  if (toast.lastDuplicateId) {
3785
3854
  return toast.lastDuplicateId !== id;
3786
3855
  }
@@ -3791,70 +3860,80 @@ const ToastProvider = ({
3791
3860
  });
3792
3861
  };
3793
3862
 
3794
- const success = (content, options) => {
3795
- update(content, {
3796
- autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT,
3797
- ...options,
3863
+ var success = function success(content, options) {
3864
+ update(content, _extends({
3865
+ autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT
3866
+ }, options, {
3798
3867
  type: 'success'
3799
- });
3868
+ }));
3800
3869
  };
3801
3870
 
3802
- const error = (content, options) => {
3803
- update(content, { ...options,
3871
+ var error = function error(content, options) {
3872
+ update(content, _extends({}, options, {
3804
3873
  type: 'error'
3805
- });
3874
+ }));
3806
3875
  };
3807
3876
 
3808
- const warning = (content, options) => {
3809
- update(content, { ...options,
3877
+ var warning = function warning(content, options) {
3878
+ update(content, _extends({}, options, {
3810
3879
  type: 'warning'
3811
- });
3880
+ }));
3812
3881
  };
3813
3882
 
3814
- const information = (content, options) => {
3815
- update(content, { ...options,
3883
+ var information = function information(content, options) {
3884
+ update(content, _extends({}, options, {
3816
3885
  type: 'information'
3817
- });
3886
+ }));
3818
3887
  };
3819
3888
 
3820
- const loading = (content, options) => {
3821
- update(content, { ...options,
3889
+ var loading = function loading(content, options) {
3890
+ update(content, _extends({}, options, {
3822
3891
  type: 'loading'
3823
- });
3892
+ }));
3824
3893
  };
3825
3894
 
3826
3895
  return {
3827
- success,
3828
- error,
3829
- warning,
3830
- information,
3831
- loading,
3832
- close
3896
+ success: success,
3897
+ error: error,
3898
+ warning: warning,
3899
+ information: information,
3900
+ loading: loading,
3901
+ close: close
3833
3902
  };
3834
3903
  }, []); // no need to rebind these every render, do them once in an effect
3835
3904
 
3836
- React.useEffect(() => {
3837
- toaster.success = (content, options) => toaster(content, {
3838
- autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT,
3839
- ...options,
3840
- type: 'success'
3841
- });
3905
+ React.useEffect(function () {
3906
+ toaster.success = function (content, options) {
3907
+ return toaster(content, _extends({
3908
+ autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT
3909
+ }, options, {
3910
+ type: 'success'
3911
+ }));
3912
+ };
3842
3913
 
3843
- toaster.error = (content, options) => toaster(content, { ...options,
3844
- type: 'error'
3845
- });
3914
+ toaster.error = function (content, options) {
3915
+ return toaster(content, _extends({}, options, {
3916
+ type: 'error'
3917
+ }));
3918
+ };
3846
3919
 
3847
- toaster.warning = (content, options) => toaster(content, { ...options,
3848
- type: 'warning'
3849
- });
3920
+ toaster.warning = function (content, options) {
3921
+ return toaster(content, _extends({}, options, {
3922
+ type: 'warning'
3923
+ }));
3924
+ };
3850
3925
 
3851
- toaster.information = (content, options) => toaster(content, { ...options,
3852
- type: 'information'
3853
- });
3926
+ toaster.information = function (content, options) {
3927
+ return toaster(content, _extends({}, options, {
3928
+ type: 'information'
3929
+ }));
3930
+ };
3854
3931
 
3855
- toaster.loading = (content, options) => toaster(content, { ...options,
3856
- type: 'loading'
3857
- });
3932
+ toaster.loading = function (content, options) {
3933
+ return toaster(content, _extends({}, options, {
3934
+ type: 'loading'
3935
+ }));
3936
+ };
3858
3937
  }, []);
3859
3938
  return React.createElement(ToastContext.Provider, Object.assign({}, props, {
3860
3939
  value: toaster
@@ -3864,37 +3943,43 @@ const ToastProvider = ({
3864
3943
  role: "log"
3865
3944
  }, React.createElement(framerMotion.AnimatePresence, {
3866
3945
  initial: false
3867
- }, toasts.map(toast => React.createElement(framerMotion.motion.div, {
3868
- key: toast.id,
3869
- transition: {
3870
- type: 'spring',
3871
- damping: 20,
3872
- stiffness: 300
3873
- },
3874
- initial: {
3875
- opacity: 0,
3876
- y: 10,
3877
- scale: 0.5
3878
- },
3879
- animate: {
3880
- opacity: 1,
3881
- y: 0,
3882
- scale: 1
3883
- },
3884
- exit: {
3885
- opacity: 0,
3886
- scale: 0.5,
3946
+ }, toasts.map(function (toast) {
3947
+ return React.createElement(framerMotion.motion.div, {
3948
+ key: toast.id,
3887
3949
  transition: {
3888
- duration: 0.2
3950
+ type: 'spring',
3951
+ damping: 20,
3952
+ stiffness: 300
3953
+ },
3954
+ initial: {
3955
+ opacity: 0,
3956
+ y: 10,
3957
+ scale: 0.5
3958
+ },
3959
+ animate: {
3960
+ opacity: 1,
3961
+ y: 0,
3962
+ scale: 1
3963
+ },
3964
+ exit: {
3965
+ opacity: 0,
3966
+ scale: 0.5,
3967
+ transition: {
3968
+ duration: 0.2
3969
+ }
3889
3970
  }
3890
- }
3891
- }, React.createElement(Toast, Object.assign({}, toast, {
3892
- onClose: () => handleClose(toast.id)
3893
- })))))));
3971
+ }, React.createElement(Toast, Object.assign({}, toast, {
3972
+ onClose: function onClose() {
3973
+ return handleClose(toast.id);
3974
+ }
3975
+ })));
3976
+ }))));
3977
+ };
3978
+ var useToast = function useToast() {
3979
+ return React.useContext(ToastContext);
3894
3980
  };
3895
- const useToast = () => React.useContext(ToastContext);
3896
3981
 
3897
- const defaultLocalisationTexts = {
3982
+ var defaultLocalisationTexts = {
3898
3983
  calendar: {
3899
3984
  months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
3900
3985
  weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
@@ -3969,32 +4054,37 @@ const defaultLocalisationTexts = {
3969
4054
  inputLabel: 'Search...'
3970
4055
  }
3971
4056
  };
3972
- const defaultLocalizationContext = {
4057
+ var defaultLocalizationContext = {
3973
4058
  locale: 'en-GB',
3974
4059
  texts: defaultLocalisationTexts,
3975
4060
  formatting: {
3976
4061
  date: 'dd.mm.yy'
3977
4062
  }
3978
4063
  };
3979
- const Context = /*#__PURE__*/React.createContext({
4064
+ var Context = /*#__PURE__*/React.createContext({
3980
4065
  localization: defaultLocalizationContext
3981
4066
  });
3982
- const Provider = props => {
3983
- const {
3984
- children,
3985
- localization = defaultLocalizationContext
3986
- } = props;
3987
- const value = React.useMemo(() => ({
3988
- localization
3989
- }), [localization]);
4067
+ var Provider = function Provider(props) {
4068
+ var children = props.children,
4069
+ _props$localization = props.localization,
4070
+ localization = _props$localization === void 0 ? defaultLocalizationContext : _props$localization;
4071
+ var value = React.useMemo(function () {
4072
+ return {
4073
+ localization: localization
4074
+ };
4075
+ }, [localization]);
3990
4076
  return React.createElement(Context.Provider, {
3991
4077
  value: value
3992
4078
  }, React.createElement(ToastProvider, null, children));
3993
4079
  };
3994
- const useTaco = () => React.useContext(Context);
3995
- const useLocalization = () => useTaco().localization;
4080
+ var useTaco = function useTaco() {
4081
+ return React.useContext(Context);
4082
+ };
4083
+ var useLocalization = function useLocalization() {
4084
+ return useTaco().localization;
4085
+ };
3996
4086
 
3997
- var _excluded$3 = ["onChange", "value"];
4087
+ var _excluded$8 = ["onChange", "value"];
3998
4088
 
3999
4089
  var renderDay = function renderDay(day, modifiers) {
4000
4090
  return modifiers.disabled ? React.createElement("span", {
@@ -4073,7 +4163,7 @@ var Navbar = /*#__PURE__*/React.memo(function (_ref) {
4073
4163
  var Calendar$1 = /*#__PURE__*/React.forwardRef(function Calendar(props, ref) {
4074
4164
  var handleChange = props.onChange,
4075
4165
  value = props.value,
4076
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$3);
4166
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$8);
4077
4167
 
4078
4168
  var _useLocalization2 = useLocalization(),
4079
4169
  locale = _useLocalization2.locale,
@@ -4137,7 +4227,7 @@ var Calendar$1 = /*#__PURE__*/React.forwardRef(function Calendar(props, ref) {
4137
4227
  })));
4138
4228
  });
4139
4229
 
4140
- var _excluded$4 = ["checked", "highlighted", "indeterminate", "invalid", "label", "onChange"];
4230
+ var _excluded$9 = ["checked", "highlighted", "indeterminate", "invalid", "label", "onChange"];
4141
4231
  var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
4142
4232
  var checked = props.checked,
4143
4233
  highlighted = props.highlighted,
@@ -4145,7 +4235,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
4145
4235
  invalid = props.invalid,
4146
4236
  label = props.label,
4147
4237
  onChange = props.onChange,
4148
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$4);
4238
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$9);
4149
4239
 
4150
4240
  var className = cn('bg-white h-5 w-5 border rounded text-sm flex-shrink-0 self-start mt-[0.1rem] focus:yt-focus', //hover:shadow-[0_0_0_1px_rgba(235,235,235,1)]
4151
4241
  props.className, {
@@ -4187,9 +4277,9 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
4187
4277
  return element;
4188
4278
  });
4189
4279
 
4190
- var useProxiedRef = function useProxiedRef(ref) {
4191
- var internalRef = React.useRef(null);
4192
- React.useEffect(function () {
4280
+ const useProxiedRef = ref => {
4281
+ const internalRef = React.useRef(null);
4282
+ React.useEffect(() => {
4193
4283
  if (ref) {
4194
4284
  if (typeof ref === 'function') {
4195
4285
  ref(internalRef.current);
@@ -4219,22 +4309,21 @@ const getButtonStateClasses = invalid => {
4219
4309
  return '!border-grey-dark focus:!border-blue-light peer-focus:!border-blue-light peer-focus:peer-active:!border-blue-dark';
4220
4310
  };
4221
4311
 
4222
- const Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
4223
- const {
4224
- button,
4225
- icon,
4226
- highlighted,
4227
- invalid,
4228
- onKeyDown,
4229
- autoFocus,
4230
- ...otherProps
4231
- } = props;
4232
- const inputRef = useProxiedRef(ref);
4233
- const hasContainer = button || icon;
4234
- const className = cn(getInputClasses(props), 'min-h-[theme(spacing.8)] pointer-events-all', {
4312
+ var _excluded$a = ["button", "icon", "highlighted", "invalid", "onKeyDown", "autoFocus"];
4313
+ var Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
4314
+ var button = props.button,
4315
+ icon = props.icon,
4316
+ invalid = props.invalid,
4317
+ onKeyDown = props.onKeyDown,
4318
+ autoFocus = props.autoFocus,
4319
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$a);
4320
+
4321
+ var inputRef = useProxiedRef(ref);
4322
+ var hasContainer = button || icon;
4323
+ var className = cn(getInputClasses(props), 'min-h-[theme(spacing.8)] pointer-events-all', {
4235
4324
  'pr-8': !!hasContainer
4236
4325
  }, !hasContainer && otherProps.className);
4237
- React.useEffect(() => {
4326
+ React.useEffect(function () {
4238
4327
  if (autoFocus && inputRef.current) {
4239
4328
  inputRef.current.focus();
4240
4329
  }
@@ -4242,10 +4331,10 @@ const Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
4242
4331
  // if it has scroll height then the browser reverts to native scrolling behaviour only
4243
4332
  // so we manually override it to ensure _our_ desired behaviour remains intact
4244
4333
 
4245
- const handleKeyDown = event => {
4334
+ var handleKeyDown = function handleKeyDown(event) {
4246
4335
  if (!event.shiftKey && (event.key === 'Home' || event.key === 'End')) {
4247
4336
  event.preventDefault();
4248
- const position = event.key === 'End' ? event.currentTarget.value.length : 0;
4337
+ var position = event.key === 'End' ? event.currentTarget.value.length : 0;
4249
4338
  event.currentTarget.setSelectionRange(position, position);
4250
4339
  }
4251
4340
 
@@ -4254,7 +4343,7 @@ const Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
4254
4343
  }
4255
4344
  };
4256
4345
 
4257
- const input = React.createElement("input", Object.assign({}, otherProps, {
4346
+ var input = React.createElement("input", Object.assign({}, otherProps, {
4258
4347
  className: className,
4259
4348
  "data-taco": "input",
4260
4349
  onKeyDown: handleKeyDown,
@@ -4262,19 +4351,19 @@ const Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
4262
4351
  }));
4263
4352
 
4264
4353
  if (hasContainer) {
4265
- let extra;
4354
+ var extra;
4266
4355
 
4267
4356
  if (button) {
4268
- const disabled = button.props.disabled || otherProps.disabled;
4269
- const buttonClassName = cn('items-center flex justify-center border absolute rounded-l-none rounded-r right-0 h-full focus:rounded focus:outline-none', {
4270
- [getButtonStateClasses(invalid)]: !props.disabled
4271
- }, button.props.className);
4357
+ var _cn;
4358
+
4359
+ var disabled = button.props.disabled || otherProps.disabled;
4360
+ var buttonClassName = cn('items-center flex justify-center border absolute rounded-l-none rounded-r right-0 h-full focus:rounded focus:outline-none', (_cn = {}, _cn[getButtonStateClasses(invalid)] = !props.disabled, _cn), button.props.className);
4272
4361
  extra = React.cloneElement(button, {
4273
4362
  className: buttonClassName,
4274
- disabled
4363
+ disabled: disabled
4275
4364
  });
4276
4365
  } else if (icon) {
4277
- const iconClassName = cn('items-center flex justify-center absolute pointer-events-none mr-1 p-px right-0 w-5 top-1/2 -translate-y-1/2', {
4366
+ var iconClassName = cn('items-center flex justify-center absolute pointer-events-none mr-1 p-px right-0 w-5 top-1/2 -translate-y-1/2', {
4278
4367
  'text-grey-dark': props.disabled,
4279
4368
  'text-grey-darkest': !props.disabled
4280
4369
  });
@@ -4286,7 +4375,7 @@ const Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
4286
4375
  });
4287
4376
  }
4288
4377
 
4289
- const containerClassName = cn('bg-white inline-flex relative rounded w-full', otherProps.className);
4378
+ var containerClassName = cn('bg-white inline-flex relative rounded w-full', otherProps.className);
4290
4379
  return React.createElement("div", {
4291
4380
  className: containerClassName,
4292
4381
  "data-taco": "input-container"
@@ -5057,26 +5146,27 @@ var useBoundingClientRectListener = function useBoundingClientRectListener(ref)
5057
5146
  return dimensions;
5058
5147
  };
5059
5148
 
5060
- const Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
5061
- const {
5062
- className: externalClassName,
5063
- dialog,
5064
- style,
5065
- ...otherProps
5066
- } = props;
5067
- const {
5068
- combobox,
5069
- button,
5070
- input,
5071
- popover,
5072
- list
5073
- } = useCombobox(otherProps, ref);
5074
- const internalRef = React.useRef(null);
5075
- const {
5076
- texts
5077
- } = useLocalization();
5078
- const selectDimensions = useBoundingClientRectListener(internalRef);
5079
- const className = cn('inline-flex relative', {
5149
+ var _excluded$b = ["className", "dialog", "style"];
5150
+ var Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
5151
+ var externalClassName = props.className,
5152
+ dialog = props.dialog,
5153
+ style = props.style,
5154
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$b);
5155
+
5156
+ var _useCombobox = useCombobox(otherProps, ref),
5157
+ combobox = _useCombobox.combobox,
5158
+ button = _useCombobox.button,
5159
+ input = _useCombobox.input,
5160
+ popover = _useCombobox.popover,
5161
+ list = _useCombobox.list;
5162
+
5163
+ var internalRef = React.useRef(null);
5164
+
5165
+ var _useLocalization = useLocalization(),
5166
+ texts = _useLocalization.texts;
5167
+
5168
+ var selectDimensions = useBoundingClientRectListener(internalRef);
5169
+ var className = cn('inline-flex relative', {
5080
5170
  'yt-combobox--inline': props.inline
5081
5171
  }, externalClassName);
5082
5172
  return React.createElement("span", {
@@ -5095,7 +5185,7 @@ const Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
5095
5185
  appearance: "discrete",
5096
5186
  className: "!border-l-0 focus:!border-none focus:!shadow-none active:!border-none",
5097
5187
  icon: popover.open ? 'chevron-up' : 'chevron-down',
5098
- onClick: () => {
5188
+ onClick: function onClick() {
5099
5189
  var _input$ref$current;
5100
5190
 
5101
5191
  popover.onOpenChange(true);
@@ -5106,7 +5196,7 @@ const Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
5106
5196
  icon: "list-search",
5107
5197
  disabled: props.readOnly || props.disabled,
5108
5198
  dialog: dialog,
5109
- onFocus: event => {
5199
+ onFocus: function onFocus(event) {
5110
5200
  var _input$ref$current2;
5111
5201
 
5112
5202
  // Prevents the default focus behaviour of showing the tooltip, on parent tooltip element
@@ -5119,7 +5209,7 @@ const Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
5119
5209
  }) : undefined
5120
5210
  })))), React.createElement(PopoverPrimitive.Content, {
5121
5211
  align: "start",
5122
- onOpenAutoFocus: event => {
5212
+ onOpenAutoFocus: function onOpenAutoFocus(event) {
5123
5213
  event.preventDefault();
5124
5214
  },
5125
5215
  sideOffset: 4
@@ -5353,18 +5443,19 @@ function mergeRefs(refs) {
5353
5443
  };
5354
5444
  }
5355
5445
 
5356
- const PopoverContext = /*#__PURE__*/React.createContext({
5446
+ var _excluded$c = ["children", "trigger"];
5447
+ var PopoverContext = /*#__PURE__*/React.createContext({
5357
5448
  props: {},
5358
5449
  ref: null
5359
5450
  });
5360
- const Trigger$1 = /*#__PURE__*/React.forwardRef(function PopoverTrigger(props, ref) {
5451
+ var Trigger$1 = /*#__PURE__*/React.forwardRef(function PopoverTrigger(props, ref) {
5361
5452
  var _props$children;
5362
5453
 
5363
- const context = React.useContext(PopoverContext);
5364
- let children = props.children;
5454
+ var context = React.useContext(PopoverContext);
5455
+ var children = props.children;
5365
5456
 
5366
5457
  if (React.isValidElement(props.children) && typeof ((_props$children = props.children) === null || _props$children === void 0 ? void 0 : _props$children.type) === 'function') {
5367
- console.warn(`Popover.Trigger requires its child to forwardRef so that it can attach to the dom element. Did you mean to wrap '${props.children.type.name}' in React.forwardRef()? Taco has wrapped '${props.children.type.name}' in a 'span' to maintain functionality, but this may cause unintended behaviour`);
5458
+ console.warn("Popover.Trigger requires its child to forwardRef so that it can attach to the dom element. Did you mean to wrap '" + props.children.type.name + "' in React.forwardRef()? Taco has wrapped '" + props.children.type.name + "' in a 'span' to maintain functionality, but this may cause unintended behaviour");
5368
5459
  children = React.createElement("span", null, props.children);
5369
5460
  }
5370
5461
 
@@ -5374,22 +5465,22 @@ const Trigger$1 = /*#__PURE__*/React.forwardRef(function PopoverTrigger(props, r
5374
5465
  asChild: true
5375
5466
  }));
5376
5467
  });
5377
- const RenderPropWrapper = /*#__PURE__*/React.forwardRef(function RenderPropWrapper({
5378
- children,
5379
- onClick
5380
- }, ref) {
5381
- const close = () => {
5468
+ var RenderPropWrapper = /*#__PURE__*/React.forwardRef(function RenderPropWrapper(_ref, ref) {
5469
+ var children = _ref.children,
5470
+ onClick = _ref.onClick;
5471
+
5472
+ var close = function close() {
5382
5473
  onClick(new CustomEvent('hide'));
5383
5474
  };
5384
5475
 
5385
5476
  return children({
5386
- close,
5387
- ref
5477
+ close: close,
5478
+ ref: ref
5388
5479
  });
5389
5480
  });
5390
- const Content$1 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, ref) {
5391
- const className = cn('bg-white focus:border-blue-light', props.className);
5392
- let output;
5481
+ var Content$1 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, ref) {
5482
+ var className = cn('bg-white focus:border-blue-light', props.className);
5483
+ var output;
5393
5484
 
5394
5485
  if (typeof props.children === 'function') {
5395
5486
  output = React.createElement(PopoverPrimitive.Close, {
@@ -5407,20 +5498,23 @@ const Content$1 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, r
5407
5498
  className: "text-white"
5408
5499
  }));
5409
5500
  });
5410
- const Close$1 = /*#__PURE__*/React.forwardRef((props, ref) => React.createElement(PopoverPrimitive.Close, Object.assign({}, props, {
5411
- ref: ref,
5412
- asChild: true
5413
- })));
5414
- const Popover = /*#__PURE__*/React.forwardRef(function Popover(props, ref) {
5415
- const {
5416
- children,
5417
- trigger,
5418
- ...otherProps
5419
- } = props;
5420
- const context = React.useMemo(() => ({
5421
- props: otherProps,
5422
- ref
5423
- }), [otherProps]);
5501
+ var Close$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
5502
+ return React.createElement(PopoverPrimitive.Close, Object.assign({}, props, {
5503
+ ref: ref,
5504
+ asChild: true
5505
+ }));
5506
+ });
5507
+ var Popover = /*#__PURE__*/React.forwardRef(function Popover(props, ref) {
5508
+ var children = props.children,
5509
+ trigger = props.trigger,
5510
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$c);
5511
+
5512
+ var context = React.useMemo(function () {
5513
+ return {
5514
+ props: otherProps,
5515
+ ref: ref
5516
+ };
5517
+ }, [otherProps]);
5424
5518
  return React.createElement(PopoverContext.Provider, {
5425
5519
  value: context
5426
5520
  }, React.createElement(PopoverPrimitive.Root, null, trigger && React.createElement(Trigger$1, null, trigger), children));
@@ -5429,23 +5523,23 @@ Popover.Trigger = Trigger$1;
5429
5523
  Popover.Content = Content$1;
5430
5524
  Popover.Close = Close$1;
5431
5525
 
5432
- const Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref) {
5433
- const {
5434
- className: externalClassName,
5435
- onReset: handleReset,
5436
- style,
5437
- shortcuts,
5438
- shortcutsText,
5439
- ...otherProps
5440
- } = props;
5441
- const {
5442
- calendar,
5443
- input
5444
- } = useDatepicker(otherProps, ref);
5445
- const {
5446
- texts
5447
- } = useLocalization();
5448
- const className = cn('inline-flex w-full text-black font-normal', externalClassName);
5526
+ var _excluded$d = ["className", "onReset", "style", "shortcuts", "shortcutsText"];
5527
+ var Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref) {
5528
+ var externalClassName = props.className,
5529
+ handleReset = props.onReset,
5530
+ style = props.style,
5531
+ shortcuts = props.shortcuts,
5532
+ shortcutsText = props.shortcutsText,
5533
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$d);
5534
+
5535
+ var _useDatepicker = useDatepicker(otherProps, ref),
5536
+ calendar = _useDatepicker.calendar,
5537
+ input = _useDatepicker.input;
5538
+
5539
+ var _useLocalization = useLocalization(),
5540
+ texts = _useLocalization.texts;
5541
+
5542
+ var className = cn('inline-flex w-full text-black font-normal', externalClassName);
5449
5543
  return React.createElement("span", {
5450
5544
  className: className,
5451
5545
  "data-taco": "datepicker",
@@ -5455,37 +5549,40 @@ const Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref)
5455
5549
  "aria-label": texts.datepicker.expand,
5456
5550
  disabled: input.disabled || input.readOnly,
5457
5551
  icon: "calendar"
5458
- })), React.createElement(Popover.Content, null, ({
5459
- close
5460
- }) => React.createElement("div", {
5461
- className: "-m-3 flex"
5462
- }, React.createElement(Calendar$1, Object.assign({}, calendar, {
5463
- onChange: (date, event) => {
5464
- calendar.onChange(date, event);
5465
- close();
5466
- },
5467
- tabIndex: -1
5468
- })), shortcuts && React.createElement("div", {
5469
- className: "border-grey-dark flex flex-col border-l"
5470
- }, React.createElement("span", {
5471
- className: "m-4 mb-3 flex h-8 w-32 items-center text-xs font-semibold"
5472
- }, shortcutsText !== null && shortcutsText !== void 0 ? shortcutsText : texts.datepicker.shortcuts), React.createElement("ul", null, shortcuts.map((shortcut, i) => React.createElement("li", {
5473
- key: i
5474
- }, React.createElement("button", {
5475
- className: "hover:bg-grey-light flex w-full items-start px-4 py-1 text-xs",
5476
- onClick: event => {
5477
- event.persist();
5478
- shortcut.onClick(event);
5479
- close();
5480
- }
5481
- }, shortcut.text)))), handleReset && React.createElement("button", {
5482
- className: "text-blue hover:text-blue-light my-4 mx-auto mt-auto inline-flex cursor-pointer border-none bg-transparent text-xs",
5483
- onClick: event => {
5484
- event.persist();
5485
- handleReset(event);
5486
- close();
5487
- }
5488
- }, texts.datepicker.clear)))))
5552
+ })), React.createElement(Popover.Content, null, function (_ref) {
5553
+ var close = _ref.close;
5554
+ return React.createElement("div", {
5555
+ className: "-m-3 flex"
5556
+ }, React.createElement(Calendar$1, Object.assign({}, calendar, {
5557
+ onChange: function onChange(date, event) {
5558
+ calendar.onChange(date, event);
5559
+ close();
5560
+ },
5561
+ tabIndex: -1
5562
+ })), shortcuts && React.createElement("div", {
5563
+ className: "border-grey-dark flex flex-col border-l"
5564
+ }, React.createElement("span", {
5565
+ className: "m-4 mb-3 flex h-8 w-32 items-center text-xs font-semibold"
5566
+ }, shortcutsText !== null && shortcutsText !== void 0 ? shortcutsText : texts.datepicker.shortcuts), React.createElement("ul", null, shortcuts.map(function (shortcut, i) {
5567
+ return React.createElement("li", {
5568
+ key: i
5569
+ }, React.createElement("button", {
5570
+ className: "hover:bg-grey-light flex w-full items-start px-4 py-1 text-xs",
5571
+ onClick: function onClick(event) {
5572
+ event.persist();
5573
+ shortcut.onClick(event);
5574
+ close();
5575
+ }
5576
+ }, shortcut.text));
5577
+ })), handleReset && React.createElement("button", {
5578
+ className: "text-blue hover:text-blue-light my-4 mx-auto mt-auto inline-flex cursor-pointer border-none bg-transparent text-xs",
5579
+ onClick: function onClick(event) {
5580
+ event.persist();
5581
+ handleReset(event);
5582
+ close();
5583
+ }
5584
+ }, texts.datepicker.clear)));
5585
+ }))
5489
5586
  })));
5490
5587
  });
5491
5588
 
@@ -5728,12 +5825,14 @@ const Extra = /*#__PURE__*/React.forwardRef(function DialogExtra(props, ref) {
5728
5825
  });
5729
5826
  Extra.displayName = 'DialogExtra';
5730
5827
 
5731
- const useSeparatedChildren = initialChildren => {
5732
- return React.useMemo(() => {
5733
- const children = [];
5734
- let drawer;
5735
- let extra;
5736
- React.Children.toArray(initialChildren).forEach(child => {
5828
+ var _excluded$e = ["children", "closeOnEscape", "defaultOpen", "draggable", "onChange", "onClose", "open", "showCloseButton", "size", "trigger"];
5829
+
5830
+ var useSeparatedChildren = function useSeparatedChildren(initialChildren) {
5831
+ return React.useMemo(function () {
5832
+ var children = [];
5833
+ var drawer;
5834
+ var extra;
5835
+ React.Children.toArray(initialChildren).forEach(function (child) {
5737
5836
  var _child$type, _child$type2;
5738
5837
 
5739
5838
  if (((_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) === Drawer.displayName) {
@@ -5748,39 +5847,55 @@ const useSeparatedChildren = initialChildren => {
5748
5847
  }, [initialChildren]);
5749
5848
  };
5750
5849
 
5751
- const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(props, ref) {
5752
- const {
5753
- children: initialChildren,
5754
- closeOnEscape = true,
5755
- defaultOpen,
5756
- draggable = false,
5757
- onChange,
5758
- onClose,
5759
- open,
5760
- showCloseButton = true,
5761
- size = 'sm',
5762
- trigger,
5763
- ...otherProps
5764
- } = props;
5765
- const [children, drawer, extra] = useSeparatedChildren(initialChildren);
5766
- const [drawerOpen, setDrawerOpen] = React.useState(false);
5767
- const context = React.useMemo(() => ({
5768
- closeOnEscape,
5769
- draggable,
5770
- drawer: {
5771
- open: drawerOpen,
5772
- toggle: () => setDrawerOpen(isDrawerOpen => !isDrawerOpen)
5773
- },
5774
- elements: {
5775
- drawer,
5776
- extra
5777
- },
5778
- onClose,
5779
- props: otherProps,
5780
- showCloseButton,
5781
- size,
5782
- ref
5783
- }), [closeOnEscape, drawerOpen, draggable, drawer, extra, open, otherProps, showCloseButton]);
5850
+ var Dialog = /*#__PURE__*/React.forwardRef(function Dialog(props, ref) {
5851
+ var initialChildren = props.children,
5852
+ _props$closeOnEscape = props.closeOnEscape,
5853
+ closeOnEscape = _props$closeOnEscape === void 0 ? true : _props$closeOnEscape,
5854
+ defaultOpen = props.defaultOpen,
5855
+ _props$draggable = props.draggable,
5856
+ draggable = _props$draggable === void 0 ? false : _props$draggable,
5857
+ onChange = props.onChange,
5858
+ onClose = props.onClose,
5859
+ open = props.open,
5860
+ _props$showCloseButto = props.showCloseButton,
5861
+ showCloseButton = _props$showCloseButto === void 0 ? true : _props$showCloseButto,
5862
+ _props$size = props.size,
5863
+ size = _props$size === void 0 ? 'sm' : _props$size,
5864
+ trigger = props.trigger,
5865
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$e);
5866
+
5867
+ var _useSeparatedChildren = useSeparatedChildren(initialChildren),
5868
+ children = _useSeparatedChildren[0],
5869
+ drawer = _useSeparatedChildren[1],
5870
+ extra = _useSeparatedChildren[2];
5871
+
5872
+ var _React$useState = React.useState(false),
5873
+ drawerOpen = _React$useState[0],
5874
+ setDrawerOpen = _React$useState[1];
5875
+
5876
+ var context = React.useMemo(function () {
5877
+ return {
5878
+ closeOnEscape: closeOnEscape,
5879
+ draggable: draggable,
5880
+ drawer: {
5881
+ open: drawerOpen,
5882
+ toggle: function toggle() {
5883
+ return setDrawerOpen(function (isDrawerOpen) {
5884
+ return !isDrawerOpen;
5885
+ });
5886
+ }
5887
+ },
5888
+ elements: {
5889
+ drawer: drawer,
5890
+ extra: extra
5891
+ },
5892
+ onClose: onClose,
5893
+ props: otherProps,
5894
+ showCloseButton: showCloseButton,
5895
+ size: size,
5896
+ ref: ref
5897
+ };
5898
+ }, [closeOnEscape, drawerOpen, draggable, drawer, extra, open, otherProps, showCloseButton]);
5784
5899
  return React.createElement(DialogContext.Provider, {
5785
5900
  value: context
5786
5901
  }, React.createElement(DialogPrimitive.Root, {
@@ -5797,18 +5912,19 @@ Dialog.Extra = Extra;
5797
5912
  Dialog.Drawer = Drawer;
5798
5913
  Dialog.Close = Close$2;
5799
5914
 
5800
- const Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
5801
- const {
5802
- disabled,
5803
- children,
5804
- invalid = false,
5805
- message,
5806
- ...otherProps
5807
- } = props;
5808
- const className = cn('flex flex-col font-bold text-xs leading-loose pb-4 min-h-[theme(spacing.18)]', {
5915
+ var _excluded$f = ["disabled", "children", "invalid", "message"];
5916
+ var Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
5917
+ var disabled = props.disabled,
5918
+ children = props.children,
5919
+ _props$invalid = props.invalid,
5920
+ invalid = _props$invalid === void 0 ? false : _props$invalid,
5921
+ message = props.message,
5922
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$f);
5923
+
5924
+ var className = cn('flex flex-col font-bold text-xs leading-loose pb-4 min-h-[theme(spacing.18)]', {
5809
5925
  'text-grey-dark': disabled
5810
5926
  }, props.className);
5811
- const messageClassName = cn('h-4 text-xs text-left leading-normal font-normal truncate -mb-4', {
5927
+ var messageClassName = cn('h-4 text-xs text-left leading-normal font-normal truncate -mb-4', {
5812
5928
  'text-grey-darkest': !invalid,
5813
5929
  'text-red': invalid,
5814
5930
  'opacity-50': disabled
@@ -5823,12 +5939,13 @@ const Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
5823
5939
  }, message));
5824
5940
  });
5825
5941
 
5826
- const Form = /*#__PURE__*/React.forwardRef(function Form(props, ref) {
5827
- const {
5828
- horizontal = false,
5829
- ...otherProps
5830
- } = props;
5831
- const className = cn('yt-form', {
5942
+ var _excluded$g = ["horizontal"];
5943
+ var Form = /*#__PURE__*/React.forwardRef(function Form(props, ref) {
5944
+ var _props$horizontal = props.horizontal,
5945
+ horizontal = _props$horizontal === void 0 ? false : _props$horizontal,
5946
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$g);
5947
+
5948
+ var className = cn('yt-form', {
5832
5949
  'yt-form--horizontal flex flex-wrap': horizontal
5833
5950
  }, props.className);
5834
5951
  return React.createElement("form", Object.assign({}, otherProps, {
@@ -5838,12 +5955,13 @@ const Form = /*#__PURE__*/React.forwardRef(function Form(props, ref) {
5838
5955
  }));
5839
5956
  });
5840
5957
 
5841
- const Group = /*#__PURE__*/React.forwardRef(function Group(props, ref) {
5842
- const {
5843
- as: Tag = 'span',
5844
- ...otherProps
5845
- } = props;
5846
- const className = cn('flex ', props.className);
5958
+ var _excluded$h = ["as"];
5959
+ var Group = /*#__PURE__*/React.forwardRef(function Group(props, ref) {
5960
+ var _props$as = props.as,
5961
+ Tag = _props$as === void 0 ? 'span' : _props$as,
5962
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$h);
5963
+
5964
+ var className = cn('flex ', props.className);
5847
5965
  return React.createElement(Tag, Object.assign({}, otherProps, {
5848
5966
  className: className,
5849
5967
  "data-taco": "group",
@@ -5851,18 +5969,19 @@ const Group = /*#__PURE__*/React.forwardRef(function Group(props, ref) {
5851
5969
  }));
5852
5970
  });
5853
5971
 
5854
- const HangerContext = /*#__PURE__*/React.createContext({
5972
+ var _excluded$i = ["anchor", "children", "defaultOpen"];
5973
+ var HangerContext = /*#__PURE__*/React.createContext({
5855
5974
  props: {},
5856
5975
  ref: null
5857
5976
  });
5858
- const Anchor = /*#__PURE__*/React.forwardRef(function HangerAnchor(props, ref) {
5977
+ var Anchor = /*#__PURE__*/React.forwardRef(function HangerAnchor(props, ref) {
5859
5978
  var _props$children;
5860
5979
 
5861
- const context = React.useContext(HangerContext);
5862
- let children = props.children;
5980
+ var context = React.useContext(HangerContext);
5981
+ var children = props.children;
5863
5982
 
5864
5983
  if (React.isValidElement(props.children) && typeof ((_props$children = props.children) === null || _props$children === void 0 ? void 0 : _props$children.type) === 'function') {
5865
- console.warn(`Hanger.Anchor requires its child to forwardRef so that it can attach to the dom element. Did you mean to wrap '${props.children.type.name}' in React.forwardRef()? Taco has wrapped '${props.children.type.name}' in a 'span' to maintain functionality, but this may cause unintended behaviour`);
5984
+ console.warn("Hanger.Anchor requires its child to forwardRef so that it can attach to the dom element. Did you mean to wrap '" + props.children.type.name + "' in React.forwardRef()? Taco has wrapped '" + props.children.type.name + "' in a 'span' to maintain functionality, but this may cause unintended behaviour");
5866
5985
  children = React.createElement("span", null, props.children);
5867
5986
  }
5868
5987
 
@@ -5872,21 +5991,22 @@ const Anchor = /*#__PURE__*/React.forwardRef(function HangerAnchor(props, ref) {
5872
5991
  asChild: true
5873
5992
  }));
5874
5993
  });
5875
- const Title$1 = /*#__PURE__*/React.forwardRef(function DialogTitle(props, ref) {
5876
- const className = cn('mb-1 text-base font-bold flex w-full', props.className);
5994
+ var Title$1 = /*#__PURE__*/React.forwardRef(function DialogTitle(props, ref) {
5995
+ var className = cn('mb-1 text-base font-bold flex w-full', props.className);
5877
5996
  return React.createElement("span", Object.assign({}, props, {
5878
5997
  className: className,
5879
5998
  ref: ref
5880
5999
  }));
5881
6000
  });
5882
- const Content$3 = /*#__PURE__*/React.forwardRef(function HangerContent(props, ref) {
5883
- const context = React.useContext(HangerContext);
5884
- const {
5885
- texts
5886
- } = useLocalization();
5887
- const className = cn('wcag-blue border border-transparent rounded p-3 pr-12 yt-shadow z-[996] focus:border-transparent max-w-sm', props.className);
6001
+ var Content$3 = /*#__PURE__*/React.forwardRef(function HangerContent(props, ref) {
6002
+ var context = React.useContext(HangerContext);
6003
+
6004
+ var _useLocalization = useLocalization(),
6005
+ texts = _useLocalization.texts;
6006
+
6007
+ var className = cn('wcag-blue border border-transparent rounded p-3 pr-12 yt-shadow z-[996] focus:border-transparent max-w-sm', props.className);
5888
6008
 
5889
- const handleInteractOutside = event => {
6009
+ var handleInteractOutside = function handleInteractOutside(event) {
5890
6010
  event.preventDefault();
5891
6011
  };
5892
6012
 
@@ -5908,20 +6028,25 @@ const Content$3 = /*#__PURE__*/React.forwardRef(function HangerContent(props, re
5908
6028
  onClick: context.props.onClose
5909
6029
  })));
5910
6030
  });
5911
- const Hanger = /*#__PURE__*/React.forwardRef(function Hanger(props, ref) {
5912
- const {
5913
- anchor,
5914
- children,
5915
- defaultOpen = true,
5916
- ...otherProps
5917
- } = props;
5918
- const context = React.useMemo(() => ({
5919
- props: otherProps,
5920
- ref
5921
- }), [otherProps]); // we do this to ensure hangers are mounted after their containers, e.g. if the container is another portal
6031
+ var Hanger = /*#__PURE__*/React.forwardRef(function Hanger(props, ref) {
6032
+ var anchor = props.anchor,
6033
+ children = props.children,
6034
+ _props$defaultOpen = props.defaultOpen,
6035
+ defaultOpen = _props$defaultOpen === void 0 ? true : _props$defaultOpen,
6036
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$i);
6037
+
6038
+ var context = React.useMemo(function () {
6039
+ return {
6040
+ props: otherProps,
6041
+ ref: ref
6042
+ };
6043
+ }, [otherProps]); // we do this to ensure hangers are mounted after their containers, e.g. if the container is another portal
5922
6044
 
5923
- const [open, setOpen] = React.useState(false);
5924
- React.useEffect(() => {
6045
+ var _React$useState = React.useState(false),
6046
+ open = _React$useState[0],
6047
+ setOpen = _React$useState[1];
6048
+
6049
+ React.useEffect(function () {
5925
6050
  if (defaultOpen) {
5926
6051
  setOpen(defaultOpen);
5927
6052
  }
@@ -5937,25 +6062,25 @@ Hanger.Anchor = Anchor;
5937
6062
  Hanger.Content = Content$3;
5938
6063
  Hanger.Title = Title$1;
5939
6064
 
5940
- const Trigger$3 = /*#__PURE__*/React.forwardRef(function HoverCardTrigger(props, ref) {
6065
+ var _excluded$j = ["placement"];
6066
+ var Trigger$3 = /*#__PURE__*/React.forwardRef(function HoverCardTrigger(props, ref) {
5941
6067
  return React.createElement(HoverCardPrimitive.Trigger, Object.assign({}, props, {
5942
6068
  asChild: true,
5943
6069
  ref: ref
5944
6070
  }));
5945
6071
  });
5946
- const Content$4 = /*#__PURE__*/React.forwardRef(function HoverCardContent(externalProps, ref) {
5947
- const {
5948
- placement,
5949
- ...props
5950
- } = externalProps;
5951
- const className = cn('bg-white rounded p-3 yt-shadow', props.className);
6072
+ var Content$4 = /*#__PURE__*/React.forwardRef(function HoverCardContent(externalProps, ref) {
6073
+ var placement = externalProps.placement,
6074
+ props = _objectWithoutPropertiesLoose(externalProps, _excluded$j);
6075
+
6076
+ var className = cn('bg-white rounded p-3 yt-shadow', props.className);
5952
6077
  return React.createElement(HoverCardPrimitive.Content, Object.assign({}, props, {
5953
6078
  className: className,
5954
6079
  ref: ref,
5955
6080
  side: placement
5956
6081
  }));
5957
6082
  });
5958
- const HoverCard = props => {
6083
+ var HoverCard = function HoverCard(props) {
5959
6084
  return React.createElement(HoverCardPrimitive.Root, Object.assign({}, props, {
5960
6085
  openDelay: 300
5961
6086
  }));
@@ -5963,24 +6088,24 @@ const HoverCard = props => {
5963
6088
  HoverCard.Trigger = Trigger$3;
5964
6089
  HoverCard.Content = Content$4;
5965
6090
 
5966
- const SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput({
5967
- onSearch,
5968
- ...props
5969
- }, ref) {
5970
- const {
5971
- texts
5972
- } = useLocalization();
6091
+ var _excluded$k = ["onSearch"];
6092
+ var SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput(_ref, ref) {
6093
+ var onSearch = _ref.onSearch,
6094
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
6095
+
6096
+ var _useLocalization = useLocalization(),
6097
+ texts = _useLocalization.texts;
5973
6098
 
5974
- const handleClick = () => {
6099
+ var handleClick = function handleClick() {
5975
6100
  if (!props.disabled) {
5976
6101
  onSearch === null || onSearch === void 0 ? void 0 : onSearch(props.value);
5977
6102
  }
5978
6103
  };
5979
6104
 
5980
- const handleKeyDown = event => {
6105
+ var handleKeyDown = function handleKeyDown(event) {
5981
6106
  var _props$onKeyDown;
5982
6107
 
5983
- const isEnterKeyPressed = event.keyCode === keycode('enter');
6108
+ var isEnterKeyPressed = event.keyCode === keycode('enter');
5984
6109
 
5985
6110
  if (isEnterKeyPressed) {
5986
6111
  handleClick();
@@ -6349,49 +6474,49 @@ const useMultiListbox = ({
6349
6474
  };
6350
6475
  };
6351
6476
 
6352
- const Listbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6353
- const {
6354
- className: externalClassName,
6355
- ...otherProps
6356
- } = props;
6357
- const {
6358
- list,
6359
- input
6360
- } = useListbox(otherProps, ref);
6361
- const className = cn('bg-white inline-flex relative w-full', externalClassName);
6477
+ var _excluded$l = ["className"],
6478
+ _excluded2$1 = ["className"];
6479
+ var Listbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6480
+ var externalClassName = props.className,
6481
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$l);
6482
+
6483
+ var _useListbox = useListbox(otherProps, ref),
6484
+ list = _useListbox.list,
6485
+ input = _useListbox.input;
6486
+
6487
+ var className = cn('bg-white inline-flex relative w-full', externalClassName);
6362
6488
  return React.createElement("span", {
6363
6489
  "data-taco": "listbox",
6364
6490
  className: className
6365
6491
  }, React.createElement(ScrollableList, Object.assign({}, list, {
6366
- style: { ...list.style,
6492
+ style: _extends({}, list.style, {
6367
6493
  maxHeight: 'calc(12rem + 2px)'
6368
6494
  /* (6 * option height) + listbox border */
6369
6495
 
6370
- }
6496
+ })
6371
6497
  })), React.createElement("input", Object.assign({}, input, {
6372
6498
  className: "hidden",
6373
6499
  type: "text"
6374
6500
  })));
6375
6501
  });
6376
- const MultiListbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6377
- const {
6378
- className: externalClassName,
6379
- ...otherProps
6380
- } = props;
6381
- const {
6382
- list,
6383
- input
6384
- } = useMultiListbox(otherProps, ref);
6385
- const className = cn('bg-white inline-flex relative w-full', externalClassName);
6502
+ var MultiListbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6503
+ var externalClassName = props.className,
6504
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$1);
6505
+
6506
+ var _useMultiListbox = useMultiListbox(otherProps, ref),
6507
+ list = _useMultiListbox.list,
6508
+ input = _useMultiListbox.input;
6509
+
6510
+ var className = cn('bg-white inline-flex relative w-full', externalClassName);
6386
6511
  return React.createElement("span", {
6387
6512
  "data-taco": "listbox",
6388
6513
  className: className
6389
6514
  }, React.createElement(ScrollableList, Object.assign({}, list, {
6390
- style: { ...list.style,
6515
+ style: _extends({}, list.style, {
6391
6516
  maxHeight: 'calc(12rem + 2px + 2px)'
6392
6517
  /* (6 * option height) + listbox border + ALL_OPTIONS bottom border */
6393
6518
 
6394
- }
6519
+ })
6395
6520
  })), React.createElement("input", Object.assign({}, input, {
6396
6521
  className: "hidden",
6397
6522
  type: "text"
@@ -6574,26 +6699,34 @@ const Checkbox$1 = props => {
6574
6699
  })), children);
6575
6700
  };
6576
6701
 
6577
- const getRadioGroupItemValueAsString = value => String(value !== null && value !== void 0 ? value : '');
6578
- const findByValue$1 = (values, valueAsString) => values.find(value => getRadioGroupItemValueAsString(value) === valueAsString);
6579
- const RadioGroupContext = /*#__PURE__*/React.createContext({
6702
+ var _excluded$m = ["children", "value"],
6703
+ _excluded2$2 = ["children", "defaultValue", "disabled", "invalid", "onChange", "orientation", "value"];
6704
+ var getRadioGroupItemValueAsString = function getRadioGroupItemValueAsString(value) {
6705
+ return String(value !== null && value !== void 0 ? value : '');
6706
+ };
6707
+ var findByValue$1 = function findByValue(values, valueAsString) {
6708
+ return values.find(function (value) {
6709
+ return getRadioGroupItemValueAsString(value) === valueAsString;
6710
+ });
6711
+ };
6712
+ var RadioGroupContext = /*#__PURE__*/React.createContext({
6580
6713
  disabled: false,
6581
6714
  invalid: false
6582
6715
  });
6583
- const RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(props, ref) {
6584
- const context = React.useContext(RadioGroupContext);
6585
- const {
6586
- children,
6587
- value,
6588
- ...otherProps
6589
- } = props;
6590
- const isDisabled = context.disabled || props.disabled;
6591
- const className = cn('flex flex-shrink-0 self-start items-center justify-center h-4 w-4 mt-[0.2rem] rounded-full bg-white border-2', {
6716
+ var RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(props, ref) {
6717
+ var context = React.useContext(RadioGroupContext);
6718
+
6719
+ var children = props.children,
6720
+ value = props.value,
6721
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$m);
6722
+
6723
+ var isDisabled = context.disabled || props.disabled;
6724
+ var className = cn('flex flex-shrink-0 self-start items-center justify-center h-4 w-4 mt-[0.2rem] rounded-full bg-white border-2', {
6592
6725
  'border-grey-dark hover:border-4 focus:yt-focus aria-checked:bg-blue aria-checked:border-blue hover:aria-checked:border-blue-light': !isDisabled && !context.invalid,
6593
6726
  'border-grey cursor-not-allowed aria-checked:bg-blue-light aria-checked:border-blue-light ': isDisabled,
6594
6727
  'border-red hover:border-4 text-red focus:border-red focus:yt-focus-red aria-checked:bg-red aria-checked:border-red': context.invalid && !isDisabled
6595
6728
  });
6596
- const labelClassName = cn('flex items-center gap-2', {
6729
+ var labelClassName = cn('flex items-center gap-2', {
6597
6730
  'cursor-pointer': !isDisabled,
6598
6731
  'cursor-not-allowed text-grey-dark': isDisabled
6599
6732
  }, props.className);
@@ -6608,34 +6741,38 @@ const RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(pro
6608
6741
  className: "h-2 w-2 rounded-full bg-white"
6609
6742
  })), children);
6610
6743
  });
6611
- const useRadioGroup = props => {
6612
- const {
6613
- children,
6614
- defaultValue,
6615
- disabled,
6616
- invalid,
6617
- onChange,
6618
- orientation = 'vertical',
6619
- value,
6620
- ...otherProps
6621
- } = props;
6622
- const values = React.useMemo(() => {
6623
- const radioGroupItemValues = [];
6624
- React.Children.forEach(children, child => {
6744
+ var useRadioGroup = function useRadioGroup(props) {
6745
+ var children = props.children,
6746
+ defaultValue = props.defaultValue,
6747
+ disabled = props.disabled,
6748
+ invalid = props.invalid,
6749
+ onChange = props.onChange,
6750
+ _props$orientation = props.orientation,
6751
+ orientation = _props$orientation === void 0 ? 'vertical' : _props$orientation,
6752
+ value = props.value,
6753
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$2);
6754
+
6755
+ var values = React.useMemo(function () {
6756
+ var radioGroupItemValues = [];
6757
+ React.Children.forEach(children, function (child) {
6625
6758
  if (React.isValidElement(child)) {
6626
6759
  radioGroupItemValues.push(child.props.value);
6627
6760
  }
6628
6761
  });
6629
6762
  return radioGroupItemValues;
6630
6763
  }, [children]);
6631
- const context = React.useMemo(() => ({
6632
- disabled: disabled !== null && disabled !== void 0 ? disabled : false,
6633
- invalid: invalid !== null && invalid !== void 0 ? invalid : false
6634
- }), [disabled, invalid]);
6635
- let valueProps;
6764
+ var context = React.useMemo(function () {
6765
+ return {
6766
+ disabled: disabled !== null && disabled !== void 0 ? disabled : false,
6767
+ invalid: invalid !== null && invalid !== void 0 ? invalid : false
6768
+ };
6769
+ }, [disabled, invalid]);
6770
+ var valueProps;
6636
6771
 
6637
6772
  if (onChange !== undefined) {
6638
- const handleChange = value => onChange(findByValue$1(values, value));
6773
+ var handleChange = function handleChange(value) {
6774
+ return onChange(findByValue$1(values, value));
6775
+ };
6639
6776
 
6640
6777
  valueProps = {
6641
6778
  onValueChange: handleChange,
@@ -6648,20 +6785,19 @@ const useRadioGroup = props => {
6648
6785
  }
6649
6786
 
6650
6787
  return {
6651
- context,
6652
- props: { ...otherProps,
6653
- ...valueProps,
6654
- children,
6655
- orientation
6656
- }
6788
+ context: context,
6789
+ props: _extends({}, otherProps, valueProps, {
6790
+ children: children,
6791
+ orientation: orientation
6792
+ })
6657
6793
  };
6658
6794
  };
6659
- const RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
6660
- const {
6661
- context,
6662
- props: otherProps
6663
- } = useRadioGroup(props);
6664
- const className = cn('flex items-start gap-y-2', {
6795
+ var RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
6796
+ var _useRadioGroup = useRadioGroup(props),
6797
+ context = _useRadioGroup.context,
6798
+ otherProps = _useRadioGroup.props;
6799
+
6800
+ var className = cn('flex items-start gap-y-2', {
6665
6801
  'flex-wrap gap-x-4 ': otherProps.orientation === 'horizontal',
6666
6802
  'flex-col': otherProps.orientation === 'vertical'
6667
6803
  }, otherProps.className);
@@ -6732,22 +6868,39 @@ const Header = props => {
6732
6868
  }));
6733
6869
  };
6734
6870
 
6735
- const Menu = externalProps => {
6736
- const {
6737
- children,
6738
- trigger,
6739
- ...props
6740
- } = externalProps;
6741
- const [open, setOpen] = React.useState(false);
6742
- const [indented, setIndented] = React.useState(false);
6743
- const [minWidth, setMinWidth] = React.useState(undefined);
6744
- const context = React.useMemo(() => ({
6745
- indented,
6746
- registerIndentation: () => setIndented(true),
6747
- minWidth,
6748
- setMinWidth: width => setMinWidth(width),
6749
- close: () => setOpen(false)
6750
- }), [indented, minWidth]);
6871
+ var _excluded$n = ["children", "trigger"];
6872
+ var Menu$1 = function Menu(externalProps) {
6873
+ var children = externalProps.children,
6874
+ trigger = externalProps.trigger,
6875
+ props = _objectWithoutPropertiesLoose(externalProps, _excluded$n);
6876
+
6877
+ var _React$useState = React.useState(false),
6878
+ open = _React$useState[0],
6879
+ setOpen = _React$useState[1];
6880
+
6881
+ var _React$useState2 = React.useState(false),
6882
+ indented = _React$useState2[0],
6883
+ setIndented = _React$useState2[1];
6884
+
6885
+ var _React$useState3 = React.useState(undefined),
6886
+ minWidth = _React$useState3[0],
6887
+ _setMinWidth = _React$useState3[1];
6888
+
6889
+ var context = React.useMemo(function () {
6890
+ return {
6891
+ indented: indented,
6892
+ registerIndentation: function registerIndentation() {
6893
+ return setIndented(true);
6894
+ },
6895
+ minWidth: minWidth,
6896
+ setMinWidth: function setMinWidth(width) {
6897
+ return _setMinWidth(width);
6898
+ },
6899
+ close: function close() {
6900
+ return setOpen(false);
6901
+ }
6902
+ };
6903
+ }, [indented, minWidth]);
6751
6904
  return React.createElement(MenuContext.Provider, {
6752
6905
  value: context
6753
6906
  }, React.createElement(DropdownMenuPrimitive.Root, Object.assign({}, props, {
@@ -6756,48 +6909,53 @@ const Menu = externalProps => {
6756
6909
  onOpenChange: setOpen
6757
6910
  }), trigger && React.createElement(Trigger$4, null, trigger), children));
6758
6911
  };
6759
- Menu.Trigger = Trigger$4;
6760
- Menu.Content = Content$5;
6761
- Menu.Item = Item$1;
6762
- Menu.Link = Link;
6763
- Menu.Checkbox = Checkbox$1;
6764
- Menu.Separator = Separator;
6765
- Menu.Header = Header;
6766
- Menu.RadioGroup = RadioGroup$1;
6767
-
6768
- const TreeviewItem = /*#__PURE__*/React__default.forwardRef(function TreeviewItem(props, ref) {
6912
+ Menu$1.Trigger = Trigger$4;
6913
+ Menu$1.Content = Content$5;
6914
+ Menu$1.Item = Item$1;
6915
+ Menu$1.Link = Link;
6916
+ Menu$1.Checkbox = Checkbox$1;
6917
+ Menu$1.Separator = Separator;
6918
+ Menu$1.Header = Header;
6919
+ Menu$1.RadioGroup = RadioGroup$1;
6920
+
6921
+ var _excluded$o = ["children", "className", "expanded", "title", "fixed", "onClick"];
6922
+ var TreeviewItem = /*#__PURE__*/React__default.forwardRef(function TreeviewItem(props, ref) {
6769
6923
  return React__default.createElement("a", Object.assign({}, props, {
6770
6924
  ref: ref
6771
6925
  }));
6772
6926
  });
6773
- const TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGroup(props, ref) {
6774
- const {
6775
- children,
6776
- className: externalClassName,
6777
- expanded: initialExpanded = false,
6778
- title,
6779
- fixed,
6780
- onClick,
6781
- ...otherProps
6782
- } = props;
6783
- const [expanded, setExpanded] = React__default.useState(fixed || initialExpanded);
6784
- React__default.useEffect(() => {
6927
+ var TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGroup(props, ref) {
6928
+ var children = props.children,
6929
+ externalClassName = props.className,
6930
+ _props$expanded = props.expanded,
6931
+ initialExpanded = _props$expanded === void 0 ? false : _props$expanded,
6932
+ title = props.title,
6933
+ fixed = props.fixed,
6934
+ onClick = props.onClick,
6935
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$o);
6936
+
6937
+ var _React$useState = React__default.useState(fixed || initialExpanded),
6938
+ expanded = _React$useState[0],
6939
+ setExpanded = _React$useState[1];
6940
+
6941
+ React__default.useEffect(function () {
6785
6942
  if (!fixed) {
6786
6943
  setExpanded(fixed || initialExpanded);
6787
6944
  }
6788
6945
  }, [fixed, initialExpanded]);
6789
- const listClassName = cn('flex-col mb-0', {
6946
+ var listClassName = cn('flex-col mb-0', {
6790
6947
  flex: expanded,
6791
6948
  hidden: !expanded
6792
6949
  });
6793
- const itemProps = { ...otherProps,
6950
+
6951
+ var itemProps = _extends({}, otherProps, {
6794
6952
  'aria-expanded': expanded,
6795
6953
  role: 'treeitem',
6796
6954
  tabIndex: -1
6797
- };
6955
+ });
6798
6956
 
6799
- const handleClick = event => {
6800
- const nextState = !expanded;
6957
+ var handleClick = function handleClick(event) {
6958
+ var nextState = !expanded;
6801
6959
 
6802
6960
  if (!fixed) {
6803
6961
  setExpanded(nextState);
@@ -6808,7 +6966,7 @@ const TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGr
6808
6966
  }
6809
6967
  };
6810
6968
 
6811
- const className = typeof externalClassName === 'function' ? externalClassName(expanded) : externalClassName;
6969
+ var className = typeof externalClassName === 'function' ? externalClassName(expanded) : externalClassName;
6812
6970
  return React__default.createElement("div", Object.assign({}, itemProps, {
6813
6971
  className: className,
6814
6972
  ref: ref
@@ -6817,14 +6975,18 @@ const TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGr
6817
6975
  }, typeof title === 'function' ? title(expanded) : title), React__default.createElement("ul", {
6818
6976
  role: "group",
6819
6977
  className: listClassName
6820
- }, React__default.Children.toArray(children).filter(item => !!item).map((item, i) => React__default.createElement("li", {
6821
- key: i,
6822
- role: "none"
6823
- }, React__default.cloneElement(item, {
6824
- role: 'treeitem'
6825
- })))));
6978
+ }, React__default.Children.toArray(children).filter(function (item) {
6979
+ return !!item;
6980
+ }).map(function (item, i) {
6981
+ return React__default.createElement("li", {
6982
+ key: i,
6983
+ role: "none"
6984
+ }, React__default.cloneElement(item, {
6985
+ role: 'treeitem'
6986
+ }));
6987
+ })));
6826
6988
  });
6827
- const Treeview = /*#__PURE__*/React__default.forwardRef(function Treeview(props, ref) {
6989
+ var Treeview = /*#__PURE__*/React__default.forwardRef(function Treeview(props, ref) {
6828
6990
  return React__default.createElement("div", Object.assign({}, props, {
6829
6991
  ref: ref,
6830
6992
  role: "tree"
@@ -6867,20 +7029,25 @@ const useDropTarget = onDrop => {
6867
7029
  return [isDraggedOver, props];
6868
7030
  };
6869
7031
 
6870
- const Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
6871
- const {
6872
- active,
6873
- children,
6874
- onDrop,
6875
- postfix,
6876
- prefix,
6877
- role,
6878
- ...otherProps
6879
- } = props;
6880
- const proxyRef = useProxiedRef(ref);
6881
- const [isDraggedOver, dropTargetProps] = useDropTarget(onDrop);
6882
- const isTreeitem = role === 'treeitem';
6883
- const className = cn('yt-navigation__item cursor-pointer', {
7032
+ var _excluded$p = ["active", "children", "onDrop", "postfix", "prefix", "role"],
7033
+ _excluded2$3 = ["children"];
7034
+ var Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
7035
+ var active = props.active,
7036
+ children = props.children,
7037
+ onDrop = props.onDrop,
7038
+ postfix = props.postfix,
7039
+ prefix = props.prefix,
7040
+ role = props.role,
7041
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$p);
7042
+
7043
+ var proxyRef = useProxiedRef(ref);
7044
+
7045
+ var _useDropTarget = useDropTarget(onDrop),
7046
+ isDraggedOver = _useDropTarget[0],
7047
+ dropTargetProps = _useDropTarget[1];
7048
+
7049
+ var isTreeitem = role === 'treeitem';
7050
+ var className = cn('yt-navigation__item cursor-pointer', {
6884
7051
  'w-full mb-px py-1 px-3 flex items-center hover:bg-grey-dark': isTreeitem,
6885
7052
  'bg-white w-full h-10 px-3 flex-shrink-0 flex items-center justify-between cursor-pointer': !isTreeitem,
6886
7053
  'yt-navigation__item--active': active && !isDraggedOver,
@@ -6888,7 +7055,7 @@ const Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
6888
7055
  'yt-navigation__item--dropping bg-blue': isDraggedOver
6889
7056
  }, props.className);
6890
7057
 
6891
- const handleClick = event => {
7058
+ var handleClick = function handleClick(event) {
6892
7059
  if (event.target instanceof HTMLAnchorElement || event.target instanceof HTMLButtonElement) {
6893
7060
  return;
6894
7061
  }
@@ -6911,19 +7078,19 @@ const Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
6911
7078
  className: "yt-navigation__item__postfix ml-1"
6912
7079
  }, postfix));
6913
7080
  });
6914
- const Panel = /*#__PURE__*/React__default.forwardRef(function Panel(props, ref) {
7081
+ var Panel = /*#__PURE__*/React__default.forwardRef(function Panel(props, ref) {
6915
7082
  return React__default.createElement("div", Object.assign({}, props, {
6916
7083
  className: cn('w-full bg-white p-3', props.className),
6917
7084
  ref: ref
6918
7085
  }));
6919
7086
  });
6920
- const MenuGroup = /*#__PURE__*/React__default.forwardRef(function MenuGroup(props, ref) {
6921
- const className = cn('flex-shrink-0 space-y-1 outline-none', {
7087
+ var MenuGroup = /*#__PURE__*/React__default.forwardRef(function MenuGroup(props, ref) {
7088
+ var className = cn('flex-shrink-0 space-y-1 outline-none', {
6922
7089
  'bg-white pb-2': props.fixed
6923
7090
  }, props.className);
6924
7091
 
6925
- const title = expanded => {
6926
- const className = cn('bg-white h-10 pl-3 pr-1 flex items-center justify-between w-full', {
7092
+ var title = function title(expanded) {
7093
+ var className = cn('bg-white h-10 pl-3 pr-1 flex items-center justify-between w-full', {
6927
7094
  'mb-1': expanded,
6928
7095
  'cursor-pointer hover:text-blue': !props.fixed
6929
7096
  });
@@ -6940,14 +7107,16 @@ const MenuGroup = /*#__PURE__*/React__default.forwardRef(function MenuGroup(prop
6940
7107
  ref: ref
6941
7108
  }));
6942
7109
  });
6943
- const Menu$1 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref) {
6944
- const scrollableAreas = React__default.useMemo(() => {
6945
- const scrollableAreas = [];
6946
- React__default.Children.toArray(props.children).filter(child => !!child).map(child => {
7110
+ var Menu$2 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref) {
7111
+ var scrollableAreas = React__default.useMemo(function () {
7112
+ var scrollableAreas = [];
7113
+ React__default.Children.toArray(props.children).filter(function (child) {
7114
+ return !!child;
7115
+ }).map(function (child) {
6947
7116
  if (child.props.fixed) {
6948
7117
  scrollableAreas.push(child);
6949
7118
  } else {
6950
- const x = scrollableAreas[scrollableAreas.length - 1];
7119
+ var x = scrollableAreas[scrollableAreas.length - 1];
6951
7120
 
6952
7121
  if (Array.isArray(x)) {
6953
7122
  x.push(child);
@@ -6961,25 +7130,26 @@ const Menu$1 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref)
6961
7130
  return React__default.createElement(Treeview, Object.assign({}, props, {
6962
7131
  className: cn('divide-grey-light flex flex-grow flex-col divide-y-2 overflow-y-auto', props.className),
6963
7132
  ref: ref
6964
- }), scrollableAreas.map((area, i) => Array.isArray(area) ? React__default.createElement("div", {
6965
- className: "divide-grey-light flex h-0 flex-auto flex-shrink-0 flex-grow flex-col divide-y-2 overflow-y-auto",
6966
- key: i
6967
- }, area) : area));
7133
+ }), scrollableAreas.map(function (area, i) {
7134
+ return Array.isArray(area) ? React__default.createElement("div", {
7135
+ className: "divide-grey-light flex h-0 flex-auto flex-shrink-0 flex-grow flex-col divide-y-2 overflow-y-auto",
7136
+ key: i
7137
+ }, area) : area;
7138
+ }));
6968
7139
  });
6969
- Menu$1.Group = MenuGroup;
6970
- const Navigation = /*#__PURE__*/React__default.forwardRef(function Navigation(props, ref) {
6971
- const {
6972
- children,
6973
- ...otherProps
6974
- } = props;
6975
- const className = cn('h-full flex flex-col bg-grey-light divide-y-2 divide-grey-light', props.className);
7140
+ Menu$2.Group = MenuGroup;
7141
+ var Navigation = /*#__PURE__*/React__default.forwardRef(function Navigation(props, ref) {
7142
+ var children = props.children,
7143
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$3);
7144
+
7145
+ var className = cn('h-full flex flex-col bg-grey-light divide-y-2 divide-grey-light', props.className);
6976
7146
  return React__default.createElement("div", Object.assign({}, otherProps, {
6977
7147
  className: className,
6978
7148
  "data-taco": "navigation",
6979
7149
  ref: ref
6980
7150
  }), children);
6981
7151
  });
6982
- Navigation.Menu = Menu$1;
7152
+ Navigation.Menu = Menu$2;
6983
7153
  Navigation.Item = Item$2;
6984
7154
  Navigation.Panel = Panel;
6985
7155
 
@@ -7228,52 +7398,54 @@ const useSelect = ({
7228
7398
  };
7229
7399
  };
7230
7400
 
7231
- const BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
7232
- const {
7233
- autoFocus,
7234
- className: externalClassName,
7235
- highlighted,
7236
- style,
7237
- ...otherProps
7238
- } = props;
7239
- const {
7240
- button,
7241
- listbox,
7242
- popover,
7243
- input,
7244
- text,
7245
- more = 0
7246
- } = useSelect(otherProps, ref);
7247
- const internalRef = React.useRef(null);
7248
- const selectDimensions = useBoundingClientRectListener(internalRef);
7249
- const className = cn('inline-flex relative w-full', {
7401
+ var _excluded$q = ["autoFocus", "className", "highlighted", "style"],
7402
+ _excluded2$4 = ["editable"];
7403
+ var BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
7404
+ var autoFocus = props.autoFocus,
7405
+ externalClassName = props.className,
7406
+ style = props.style,
7407
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$q);
7408
+
7409
+ var _useSelect = useSelect(otherProps, ref),
7410
+ button = _useSelect.button,
7411
+ listbox = _useSelect.listbox,
7412
+ popover = _useSelect.popover,
7413
+ input = _useSelect.input,
7414
+ text = _useSelect.text,
7415
+ _useSelect$more = _useSelect.more,
7416
+ more = _useSelect$more === void 0 ? 0 : _useSelect$more;
7417
+
7418
+ var internalRef = React.useRef(null);
7419
+ var selectDimensions = useBoundingClientRectListener(internalRef);
7420
+ var className = cn('inline-flex relative w-full', {
7250
7421
  'yt-select--readonly': props.readOnly
7251
7422
  }, externalClassName);
7252
- const inputClassname = cn(getInputClasses(props), 'h-8 text-left pr-0', {
7423
+ var inputClassname = cn(getInputClasses(props), 'h-8 text-left pr-0', {
7253
7424
  'border-blue': popover.open
7254
7425
  });
7255
- React.useEffect(() => {
7426
+ React.useEffect(function () {
7256
7427
  if (autoFocus && internalRef.current) {
7257
7428
  internalRef.current.focus();
7258
7429
  }
7259
7430
  }, []);
7260
7431
 
7261
- const renderMultiSelection = () => {
7432
+ var renderMultiSelection = function renderMultiSelection() {
7262
7433
  return React.createElement(React.Fragment, null, React.createElement("span", {
7263
7434
  className: "flex-grow truncate text-left"
7264
7435
  }, text), more > 0 && React.createElement(Badge, {
7265
7436
  className: "ml-2"
7266
- }, `+${more}`));
7437
+ }, "+" + more));
7267
7438
  };
7268
7439
 
7269
- const commonListboxProps = { ...listbox,
7440
+ var commonListboxProps = _extends({}, listbox, {
7270
7441
  className: 'w-auto',
7271
7442
  invalid: undefined,
7272
7443
  style: {
7273
7444
  minWidth: selectDimensions === null || selectDimensions === void 0 ? void 0 : selectDimensions.width
7274
7445
  },
7275
7446
  tabIndex: popover.open ? 0 : -1
7276
- };
7447
+ });
7448
+
7277
7449
  return React.createElement("span", {
7278
7450
  className: className,
7279
7451
  "data-taco": "select",
@@ -7296,11 +7468,9 @@ const BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref)
7296
7468
  type: "text"
7297
7469
  }))));
7298
7470
  });
7299
- const Select = /*#__PURE__*/React.forwardRef(function Select(props, ref) {
7300
- const {
7301
- editable,
7302
- ...otherProps
7303
- } = props;
7471
+ var Select = /*#__PURE__*/React.forwardRef(function Select(props, ref) {
7472
+ var editable = props.editable,
7473
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$4);
7304
7474
 
7305
7475
  if (editable) {
7306
7476
  return React.createElement(Combobox, Object.assign({}, otherProps, {
@@ -7371,41 +7541,47 @@ const usePagination = (initialPageIndex = 0, initialPageSize = 10) => {
7371
7541
  };
7372
7542
  };
7373
7543
 
7374
- const getShowingLabel = (length, pageIndex, pageSize, texts) => {
7375
- const minItemIndex = pageIndex * pageSize + 1;
7376
- const maxItemIndex = (pageIndex + 1) * pageSize;
7544
+ var _excluded$r = ["length", "pageIndex", "pageSize", "pageSizes", "setPageIndex", "setPageSize", "showPageControls", "showPageNumbers", "showPageSize", "dangerouslyHijackGlobalKeyboardNavigation"];
7545
+
7546
+ var getShowingLabel = function getShowingLabel(length, pageIndex, pageSize, texts) {
7547
+ var minItemIndex = pageIndex * pageSize + 1;
7548
+ var maxItemIndex = (pageIndex + 1) * pageSize;
7377
7549
  return texts.pagination.showingXofYofTotal.replace('[X]', length === 0 ? '0' : String(minItemIndex)).replace('[Y]', String(maxItemIndex > length ? length : maxItemIndex)).replace('[total]', String(length));
7378
7550
  };
7379
7551
 
7380
- const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
7381
- const {
7382
- length,
7383
- pageIndex,
7384
- pageSize,
7385
- pageSizes = [10, 25, 50, 100, 500],
7386
- setPageIndex,
7387
- setPageSize,
7388
- showPageControls = true,
7389
- showPageNumbers = true,
7390
- showPageSize = true,
7391
- dangerouslyHijackGlobalKeyboardNavigation = false,
7392
- ...otherProps
7393
- } = props;
7394
- const {
7395
- texts
7396
- } = useLocalization();
7397
- const maxPageIndex = Math.ceil(length / pageSize) - 1;
7398
- const showShortcutTexts = dangerouslyHijackGlobalKeyboardNavigation;
7552
+ var Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
7553
+ var length = props.length,
7554
+ pageIndex = props.pageIndex,
7555
+ pageSize = props.pageSize,
7556
+ _props$pageSizes = props.pageSizes,
7557
+ pageSizes = _props$pageSizes === void 0 ? [10, 25, 50, 100, 500] : _props$pageSizes,
7558
+ setPageIndex = props.setPageIndex,
7559
+ setPageSize = props.setPageSize,
7560
+ _props$showPageContro = props.showPageControls,
7561
+ showPageControls = _props$showPageContro === void 0 ? true : _props$showPageContro,
7562
+ _props$showPageNumber = props.showPageNumbers,
7563
+ showPageNumbers = _props$showPageNumber === void 0 ? true : _props$showPageNumber,
7564
+ _props$showPageSize = props.showPageSize,
7565
+ showPageSize = _props$showPageSize === void 0 ? true : _props$showPageSize,
7566
+ _props$dangerouslyHij = props.dangerouslyHijackGlobalKeyboardNavigation,
7567
+ dangerouslyHijackGlobalKeyboardNavigation = _props$dangerouslyHij === void 0 ? false : _props$dangerouslyHij,
7568
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$r);
7569
+
7570
+ var _useLocalization = useLocalization(),
7571
+ texts = _useLocalization.texts;
7572
+
7573
+ var maxPageIndex = Math.ceil(length / pageSize) - 1;
7574
+ var showShortcutTexts = dangerouslyHijackGlobalKeyboardNavigation;
7399
7575
  usePaginationShortcuts({
7400
- setPageIndex,
7401
- maxPageIndex,
7402
- pageIndex,
7403
- dangerouslyHijackGlobalKeyboardNavigation
7576
+ setPageIndex: setPageIndex,
7577
+ maxPageIndex: maxPageIndex,
7578
+ pageIndex: pageIndex,
7579
+ dangerouslyHijackGlobalKeyboardNavigation: dangerouslyHijackGlobalKeyboardNavigation
7404
7580
  });
7405
- const pageCount = Math.ceil(length / pageSize);
7406
- const canPreviousPage = pageIndex > 0;
7407
- const canNextPage = pageIndex < pageCount - 1;
7408
- const className = cn('inline-flex relative justify-between items-center', props.className);
7581
+ var pageCount = Math.ceil(length / pageSize);
7582
+ var canPreviousPage = pageIndex > 0;
7583
+ var canNextPage = pageIndex < pageCount - 1;
7584
+ var className = cn('inline-flex relative justify-between items-center', props.className);
7409
7585
  return React.createElement("div", Object.assign({}, otherProps, {
7410
7586
  className: className,
7411
7587
  "data-taco": "pagination",
@@ -7415,11 +7591,13 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7415
7591
  }, getShowingLabel(length, pageIndex, pageSize, texts), React.createElement(Select, {
7416
7592
  "aria-label": texts.pagination.pageSize,
7417
7593
  className: "ml-4 !w-20",
7418
- data: pageSizes.map(pageSize => ({
7419
- text: String(pageSize),
7420
- value: pageSize
7421
- })),
7422
- onChange: event => {
7594
+ data: pageSizes.map(function (pageSize) {
7595
+ return {
7596
+ text: String(pageSize),
7597
+ value: pageSize
7598
+ };
7599
+ }),
7600
+ onChange: function onChange(event) {
7423
7601
  setPageIndex(0);
7424
7602
  setPageSize(Number(event.target.value));
7425
7603
  },
@@ -7431,14 +7609,18 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7431
7609
  appearance: "default",
7432
7610
  disabled: !canPreviousPage,
7433
7611
  icon: "arrow-start",
7434
- onClick: () => setPageIndex(0),
7612
+ onClick: function onClick() {
7613
+ return setPageIndex(0);
7614
+ },
7435
7615
  "aria-label": showShortcutTexts ? texts.pagination.actions.firstPageWithShortcut : texts.pagination.actions.firstPage,
7436
7616
  tooltip: showShortcutTexts ? texts.pagination.actions.firstPageWithShortcut : texts.pagination.actions.firstPage
7437
7617
  }), React.createElement(IconButton, {
7438
7618
  appearance: "default",
7439
7619
  disabled: !canPreviousPage,
7440
7620
  icon: "arrow-left",
7441
- onClick: () => setPageIndex(pageIndex - 1),
7621
+ onClick: function onClick() {
7622
+ return setPageIndex(pageIndex - 1);
7623
+ },
7442
7624
  "aria-label": showShortcutTexts ? texts.pagination.actions.previousPageWithShortcut : texts.pagination.actions.previousPage,
7443
7625
  tooltip: showShortcutTexts ? texts.pagination.actions.previousPageWithShortcut : texts.pagination.actions.previousPage
7444
7626
  }), showPageNumbers && pageCount > 0 && React.createElement(PageNumbers, {
@@ -7449,36 +7631,43 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7449
7631
  appearance: "default",
7450
7632
  disabled: !canNextPage,
7451
7633
  icon: "arrow-right",
7452
- onClick: () => setPageIndex(pageIndex + 1),
7634
+ onClick: function onClick() {
7635
+ return setPageIndex(pageIndex + 1);
7636
+ },
7453
7637
  "aria-label": showShortcutTexts ? texts.pagination.actions.nextPageWithShortcut : texts.pagination.actions.nextPage,
7454
7638
  tooltip: showShortcutTexts ? texts.pagination.actions.nextPageWithShortcut : texts.pagination.actions.nextPage
7455
7639
  }), React.createElement(IconButton, {
7456
7640
  appearance: "default",
7457
7641
  disabled: !canNextPage,
7458
7642
  icon: "arrow-end",
7459
- onClick: () => setPageIndex(pageCount - 1),
7643
+ onClick: function onClick() {
7644
+ return setPageIndex(pageCount - 1);
7645
+ },
7460
7646
  "aria-label": showShortcutTexts ? texts.pagination.actions.lastPageWithShortcut : texts.pagination.actions.lastPage,
7461
7647
  tooltip: showShortcutTexts ? texts.pagination.actions.lastPageWithShortcut : texts.pagination.actions.lastPage
7462
7648
  })));
7463
7649
  });
7464
7650
 
7465
- const Progress = ({
7466
- duration = undefined,
7467
- ...props
7468
- }) => {
7469
- let style;
7651
+ var _excluded$s = ["duration"];
7652
+ var Progress = function Progress(_ref) {
7653
+ var _cn;
7654
+
7655
+ var _ref$duration = _ref.duration,
7656
+ duration = _ref$duration === void 0 ? undefined : _ref$duration,
7657
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
7658
+
7659
+ var style;
7470
7660
 
7471
7661
  if (duration) {
7472
7662
  style = {
7473
- animationDuration: `${duration}ms`
7663
+ animationDuration: duration + "ms"
7474
7664
  };
7475
7665
  }
7476
7666
 
7477
- const className = cn('bg-grey-light rounded block h-1 overflow-hidden w-full', props.className);
7478
- const progressClassName = cn('yt-progress__bar block h-1', {
7479
- "w-full before:h-1 before:bg-grey-dark before:block before:animate-[progress-indeterminate_2s_cubic-bezier(0.4,0,0.2,1)_infinite] before:content-[' ']": !duration,
7480
- [`w-0 bg-grey-dark animate-[progress_linear]`]: duration
7481
- });
7667
+ var className = cn('bg-grey-light rounded block h-1 overflow-hidden w-full', props.className);
7668
+ var progressClassName = cn('yt-progress__bar block h-1', (_cn = {
7669
+ "w-full before:h-1 before:bg-grey-dark before:block before:animate-[progress-indeterminate_2s_cubic-bezier(0.4,0,0.2,1)_infinite] before:content-[' ']": !duration
7670
+ }, _cn["w-0 bg-grey-dark animate-[progress_linear]"] = duration, _cn));
7482
7671
  return React__default.createElement("span", Object.assign({}, props, {
7483
7672
  "data-taco": "progress",
7484
7673
  className: className
@@ -7947,7 +8136,7 @@ const useRowActions = (inlineEditingUniqueId, handlers, actions, rowExpansionRen
7947
8136
  appearance: "discrete",
7948
8137
  icon: typeof action.icon === 'function' ? action.icon(sanitizedRow) : action.icon,
7949
8138
  tooltip: typeof action.tooltip === 'function' ? action.tooltip(sanitizedRow) : action.tooltip
7950
- }))), secondaryActions.length ? React__default.createElement(Menu, null, React__default.createElement(Menu.Trigger, null, React__default.createElement(IconButton, {
8139
+ }))), secondaryActions.length ? React__default.createElement(Menu$1, null, React__default.createElement(Menu$1.Trigger, null, React__default.createElement(IconButton, {
7951
8140
  appearance: "discrete",
7952
8141
  icon: "ellipsis-vertical",
7953
8142
  "aria-label": texts.table.actions,
@@ -7957,7 +8146,7 @@ const useRowActions = (inlineEditingUniqueId, handlers, actions, rowExpansionRen
7957
8146
  event.stopPropagation();
7958
8147
  row.setActive();
7959
8148
  }
7960
- })), React__default.createElement(Menu.Content, null, secondaryActions.map((action, index) => React__default.createElement(Menu.Item, Object.assign({
8149
+ })), React__default.createElement(Menu$1.Content, null, secondaryActions.map((action, index) => React__default.createElement(Menu$1.Item, Object.assign({
7961
8150
  key: index,
7962
8151
  icon: typeof action.icon === 'function' ? action.icon(sanitizedRow) : action.icon
7963
8152
  }, getActionProps(action, sanitizedRow)), typeof action.text === 'function' ? action.text(sanitizedRow) : action.text)))) : null);
@@ -9093,16 +9282,19 @@ const useTableRowCreation = (data, tableRef) => {
9093
9282
  };
9094
9283
  };
9095
9284
 
9096
- const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
9097
- const {
9098
- id,
9099
- defaultId,
9100
- children,
9101
- onChange,
9102
- orientation = 'horizontal',
9103
- ...otherProps
9104
- } = props;
9105
- const className = cn('yt-tabs', `yt-tabs--${orientation}`, {
9285
+ var _excluded$t = ["id", "defaultId", "children", "onChange", "orientation"],
9286
+ _excluded2$5 = ["id", "disabled"],
9287
+ _excluded3 = ["id"];
9288
+ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
9289
+ var id = props.id,
9290
+ defaultId = props.defaultId,
9291
+ children = props.children,
9292
+ onChange = props.onChange,
9293
+ _props$orientation = props.orientation,
9294
+ orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
9295
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$t);
9296
+
9297
+ var className = cn('yt-tabs', "yt-tabs--" + orientation, {
9106
9298
  'flex w-full': orientation === 'vertical'
9107
9299
  }, props.className);
9108
9300
  return React.createElement(TabsPrimitive.Root, Object.assign({}, otherProps, {
@@ -9116,20 +9308,19 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
9116
9308
  value: id
9117
9309
  }), children);
9118
9310
  });
9119
- const TabList = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9120
- const className = cn('yt-tab__list border-b border-grey-light flex flex-row m-0 mb-4', props.className);
9311
+ var TabList = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9312
+ var className = cn('yt-tab__list border-b border-grey-light flex flex-row m-0 mb-4', props.className);
9121
9313
  return React.createElement(TabsPrimitive.List, Object.assign({}, props, {
9122
9314
  className: className,
9123
9315
  ref: ref
9124
9316
  }));
9125
9317
  });
9126
- const TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9127
- const {
9128
- id,
9129
- disabled,
9130
- ...otherProps
9131
- } = props;
9132
- const className = cn('yt-tab bg-transparent border-b-2 border-transparent text-grey-darkest m-0 py-2 px-4', disabled ? 'cursor-not-allowed !text-grey-darker' : 'cursor-pointer rounded-t hover:border-grey-dark aria-selected:border-blue aria-selected:text-black aria-selected:hover:border-blue-light hover:text-black active:yt-focus active:border-blue focus:yt-focus focus:border-blue', props.className);
9318
+ var TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9319
+ var id = props.id,
9320
+ disabled = props.disabled,
9321
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$5);
9322
+
9323
+ var className = cn('yt-tab bg-transparent border-b-2 border-transparent text-grey-darkest m-0 py-2 px-4', disabled ? 'cursor-not-allowed !text-grey-darker' : 'cursor-pointer rounded-t hover:border-grey-dark aria-selected:border-blue aria-selected:text-black aria-selected:hover:border-blue-light hover:text-black active:yt-focus active:border-blue focus:yt-focus focus:border-blue', props.className);
9133
9324
  return React.createElement(TabsPrimitive.Trigger, Object.assign({}, otherProps, {
9134
9325
  className: className,
9135
9326
  disabled: disabled,
@@ -9140,12 +9331,11 @@ const TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9140
9331
  value: id
9141
9332
  }));
9142
9333
  });
9143
- const TabContent = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9144
- const {
9145
- id,
9146
- ...otherProps
9147
- } = props;
9148
- const className = cn('yt-tab__panel outline-none', props.className);
9334
+ var TabContent = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9335
+ var id = props.id,
9336
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded3);
9337
+
9338
+ var className = cn('yt-tab__panel outline-none', props.className);
9149
9339
  return React.createElement(TabsPrimitive.Content, Object.assign({}, otherProps, {
9150
9340
  className: className,
9151
9341
  ref: ref,
@@ -9156,22 +9346,19 @@ Tabs.List = TabList;
9156
9346
  Tabs.Trigger = TabTrigger;
9157
9347
  Tabs.Content = TabContent;
9158
9348
 
9159
- const Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
9160
- const {
9161
- defaultValue: _,
9162
- highlighted,
9163
- invalid,
9164
- onKeyDown,
9165
- ...otherProps
9166
- } = props;
9167
- const classNames = cn(getInputClasses(props), 'py-1 min-h-[75px] disabled:resize-none', props.className); // home and end keys only navigate to the start/end of textarea value if the textarea container does not scroll
9349
+ var _excluded$u = ["defaultValue", "highlighted", "invalid", "onKeyDown"];
9350
+ var Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
9351
+ var onKeyDown = props.onKeyDown,
9352
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$u);
9353
+
9354
+ var classNames = cn(getInputClasses(props), 'py-1 min-h-[75px] disabled:resize-none', props.className); // home and end keys only navigate to the start/end of textarea value if the textarea container does not scroll
9168
9355
  // if it has scroll height then the browser reverts to native scrolling behaviour only
9169
9356
  // so we manually override it to ensure _our_ desired behaviour remains intact
9170
9357
 
9171
- const handleKeyDown = event => {
9358
+ var handleKeyDown = function handleKeyDown(event) {
9172
9359
  if (event.key === 'Home' || event.key === 'End') {
9173
9360
  event.preventDefault();
9174
- const position = event.key === 'End' ? event.currentTarget.value.length : 0;
9361
+ var position = event.key === 'End' ? event.currentTarget.value.length : 0;
9175
9362
  event.currentTarget.setSelectionRange(position, position);
9176
9363
  event.currentTarget.scrollTop = event.key === 'End' ? event.currentTarget.scrollHeight : 0;
9177
9364
  }
@@ -9189,18 +9376,18 @@ const Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
9189
9376
  }));
9190
9377
  });
9191
9378
 
9192
- const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9193
- const {
9194
- label,
9195
- onChange,
9196
- ...otherProps
9197
- } = props;
9198
- const className = cn('group h-5 w-9 flex rounded-full inline-flex', {
9379
+ var _excluded$v = ["label", "onChange"];
9380
+ var Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9381
+ var label = props.label,
9382
+ onChange = props.onChange,
9383
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$v);
9384
+
9385
+ var className = cn('group h-5 w-9 flex rounded-full inline-flex', {
9199
9386
  'mr-2': !!label,
9200
9387
  'bg-grey-darker hover:bg-grey-dark aria-checked:bg-blue aria-checked:hover:bg-blue-light focus:yt-focus': !props.disabled,
9201
9388
  'bg-grey-light cursor-not-allowed aria-checked:bg-blue-light': props.disabled
9202
9389
  }, props.className);
9203
- const element = React.createElement(PrimitiveSwitch.Root, Object.assign({}, otherProps, {
9390
+ var element = React.createElement(PrimitiveSwitch.Root, Object.assign({}, otherProps, {
9204
9391
  className: className,
9205
9392
  onCheckedChange: onChange,
9206
9393
  ref: ref
@@ -9209,7 +9396,7 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9209
9396
  }));
9210
9397
 
9211
9398
  if (label) {
9212
- const labelClassName = cn('flex items-center cursor-pointer', {
9399
+ var labelClassName = cn('flex items-center cursor-pointer', {
9213
9400
  'cursor-not-allowed text-grey-dark': props.disabled
9214
9401
  });
9215
9402
  return React.createElement("label", {
@@ -9220,22 +9407,23 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9220
9407
  return element;
9221
9408
  });
9222
9409
 
9223
- const Tooltip$1 = ({
9224
- continuous,
9225
- index,
9226
- isLastStep,
9227
- step,
9228
- backProps,
9229
- primaryProps,
9230
- skipProps,
9231
- tooltipProps,
9232
- size,
9233
- locale,
9234
- disableTourSkipOnEsc
9235
- }) => {
9236
- const skipButtonRef = React.useRef(null);
9237
- React.useEffect(() => {
9238
- const onWindowKeyDown = event => {
9410
+ var _excluded$w = ["autoStart", "onComplete", "onClose", "onReady", "spotlightClicks", "disableCloseOnEsc", "disableScrollParentFix"];
9411
+
9412
+ var Tooltip$1 = function Tooltip(_ref) {
9413
+ var continuous = _ref.continuous,
9414
+ index = _ref.index,
9415
+ isLastStep = _ref.isLastStep,
9416
+ step = _ref.step,
9417
+ backProps = _ref.backProps,
9418
+ primaryProps = _ref.primaryProps,
9419
+ skipProps = _ref.skipProps,
9420
+ tooltipProps = _ref.tooltipProps,
9421
+ size = _ref.size,
9422
+ locale = _ref.locale,
9423
+ disableTourSkipOnEsc = _ref.disableTourSkipOnEsc;
9424
+ var skipButtonRef = React.useRef(null);
9425
+ React.useEffect(function () {
9426
+ var onWindowKeyDown = function onWindowKeyDown(event) {
9239
9427
  if (!disableTourSkipOnEsc) {
9240
9428
  if (event.keyCode === keycode('esc') && skipButtonRef.current !== null) {
9241
9429
  event.preventDefault();
@@ -9246,7 +9434,7 @@ const Tooltip$1 = ({
9246
9434
  };
9247
9435
 
9248
9436
  window.addEventListener('keydown', onWindowKeyDown);
9249
- return () => {
9437
+ return function () {
9250
9438
  window.removeEventListener('keydown', onWindowKeyDown);
9251
9439
  };
9252
9440
  }, []);
@@ -9265,30 +9453,30 @@ const Tooltip$1 = ({
9265
9453
  appearance: "discrete"
9266
9454
  }), locale.back), React.createElement(Button$1, Object.assign({}, primaryProps, {
9267
9455
  appearance: "primary"
9268
- }), continuous ? isLastStep ? `${locale.last} (${index + 1}/${size})` : `${locale.next} (${index + 1}/${size})` : locale.close)));
9456
+ }), continuous ? isLastStep ? locale.last + " (" + (index + 1) + "/" + size + ")" : locale.next + " (" + (index + 1) + "/" + size + ")" : locale.close)));
9269
9457
  }; // eslint-disable-next-line @typescript-eslint/no-unused-vars
9270
9458
 
9271
9459
 
9272
- const TourStep = _props => null;
9273
- const Tour = props => {
9274
- const {
9275
- texts: {
9276
- tour
9277
- }
9278
- } = useLocalization();
9279
- const {
9280
- autoStart: run,
9281
- onComplete,
9282
- onClose,
9283
- onReady,
9284
- spotlightClicks,
9285
- disableCloseOnEsc: disableTourSkipOnEsc,
9286
- disableScrollParentFix = false,
9287
- ...rest
9288
- } = props;
9289
- const steps = React.useMemo(() => {
9290
- return React.Children.map(props.children, child => {
9291
- const step = {
9460
+ var TourStep = function TourStep(_props) {
9461
+ return null;
9462
+ };
9463
+ var Tour = function Tour(props) {
9464
+ var _useLocalization = useLocalization(),
9465
+ tour = _useLocalization.texts.tour;
9466
+
9467
+ var run = props.autoStart,
9468
+ onComplete = props.onComplete,
9469
+ onClose = props.onClose,
9470
+ onReady = props.onReady,
9471
+ spotlightClicks = props.spotlightClicks,
9472
+ disableTourSkipOnEsc = props.disableCloseOnEsc,
9473
+ _props$disableScrollP = props.disableScrollParentFix,
9474
+ disableScrollParentFix = _props$disableScrollP === void 0 ? false : _props$disableScrollP,
9475
+ rest = _objectWithoutPropertiesLoose(props, _excluded$w);
9476
+
9477
+ var steps = React.useMemo(function () {
9478
+ return React.Children.map(props.children, function (child) {
9479
+ var step = {
9292
9480
  disableBeacon: !child.props.showBeacon,
9293
9481
  target: child.props.selector,
9294
9482
  placement: child.props.position,
@@ -9298,10 +9486,12 @@ const Tour = props => {
9298
9486
  return step;
9299
9487
  });
9300
9488
  }, [props.children]);
9301
- const getStep = React.useCallback(selector => {
9489
+ var getStep = React.useCallback(function (selector) {
9302
9490
  var _props$children$find;
9303
9491
 
9304
- return (_props$children$find = props.children.find(child => child.props.selector === selector)) === null || _props$children$find === void 0 ? void 0 : _props$children$find.props;
9492
+ return (_props$children$find = props.children.find(function (child) {
9493
+ return child.props.selector === selector;
9494
+ })) === null || _props$children$find === void 0 ? void 0 : _props$children$find.props;
9305
9495
  }, [props.children]);
9306
9496
 
9307
9497
  function callback(state) {
@@ -9331,10 +9521,12 @@ const Tour = props => {
9331
9521
  floaterProps: {
9332
9522
  disableAnimation: true
9333
9523
  },
9334
- tooltipComponent: tooltipProps => React.createElement(Tooltip$1, Object.assign({}, tooltipProps, {
9335
- locale: tour,
9336
- disableTourSkipOnEsc: disableTourSkipOnEsc
9337
- })),
9524
+ tooltipComponent: function tooltipComponent(tooltipProps) {
9525
+ return React.createElement(Tooltip$1, Object.assign({}, tooltipProps, {
9526
+ locale: tour,
9527
+ disableTourSkipOnEsc: disableTourSkipOnEsc
9528
+ }));
9529
+ },
9338
9530
  locale: tour,
9339
9531
  spotlightPadding: 8,
9340
9532
  spotlightClicks: spotlightClicks,
@@ -9375,12 +9567,12 @@ var useOnClickOutside = function useOnClickOutside(ref, callback) {
9375
9567
  }, [ref, callback]);
9376
9568
  };
9377
9569
 
9378
- const Content$6 = /*#__PURE__*/React.forwardRef(function CardContent(externalProps, ref) {
9379
- const {
9380
- noPadding,
9381
- ...props
9382
- } = externalProps;
9383
- const className = cn('flex-grow overflow-auto', {
9570
+ var _excluded$x = ["noPadding"];
9571
+ var Content$6 = /*#__PURE__*/React.forwardRef(function CardContent(externalProps, ref) {
9572
+ var noPadding = externalProps.noPadding,
9573
+ props = _objectWithoutPropertiesLoose(externalProps, _excluded$x);
9574
+
9575
+ var className = cn('flex-grow overflow-auto', {
9384
9576
  'mx-4 mb-4': !noPadding
9385
9577
  }, props.className);
9386
9578
  return React.createElement("div", Object.assign({}, props, {
@@ -9388,13 +9580,11 @@ const Content$6 = /*#__PURE__*/React.forwardRef(function CardContent(externalPro
9388
9580
  ref: ref
9389
9581
  }));
9390
9582
  });
9391
- const Card = /*#__PURE__*/React.forwardRef(function Card(props, ref) {
9392
- const {
9393
- title,
9394
- menu,
9395
- children
9396
- } = props;
9397
- const className = cn('bg-white flex flex-col rounded-xl shadow-[0px_0px_1px_rgba(0,0,0,0.1),0px_6px_18px_rgba(47,51,68,0.2)]', props.className);
9583
+ var Card = /*#__PURE__*/React.forwardRef(function Card(props, ref) {
9584
+ var title = props.title,
9585
+ menu = props.menu,
9586
+ children = props.children;
9587
+ var className = cn('bg-white flex flex-col rounded-xl shadow-[0px_0px_1px_rgba(0,0,0,0.1),0px_6px_18px_rgba(47,51,68,0.2)]', props.className);
9398
9588
  return React.createElement("div", {
9399
9589
  className: className,
9400
9590
  "data-taco": "card",
@@ -9432,7 +9622,7 @@ exports.Icon = Icon;
9432
9622
  exports.IconButton = IconButton;
9433
9623
  exports.Input = Input;
9434
9624
  exports.Listbox = Listbox;
9435
- exports.Menu = Menu;
9625
+ exports.Menu = Menu$1;
9436
9626
  exports.MultiListbox = MultiListbox;
9437
9627
  exports.Navigation = Navigation;
9438
9628
  exports.PaginatedTable = PaginatedTable;
@@ -9476,7 +9666,6 @@ exports.useListScrollTo = useListScrollTo;
9476
9666
  exports.useLocalization = useLocalization;
9477
9667
  exports.useOnClickOutside = useOnClickOutside;
9478
9668
  exports.usePagination = usePagination;
9479
- exports.useProxiedRef = useProxiedRef;
9480
9669
  exports.useRadioGroup = useRadioGroup;
9481
9670
  exports.useTableRowCreation = useTableRowCreation;
9482
9671
  exports.useTaco = useTaco;