@economic/taco 0.0.1-alpha.2 → 0.0.3-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/components/Backdrop/Backdrop.d.ts +3 -0
  2. package/dist/components/Combobox/useCombobox.d.ts +3 -3
  3. package/dist/components/Listbox/Listbox.d.ts +0 -1
  4. package/dist/components/RadioGroup/RadioGroup.d.ts +5 -4
  5. package/dist/components/Select/Select.d.ts +0 -5
  6. package/dist/components/Select/useSelect.d.ts +5 -4
  7. package/dist/esm/index.css +8 -80
  8. package/dist/esm/src/components/Backdrop/Backdrop.js +12 -0
  9. package/dist/esm/src/components/Backdrop/Backdrop.js.map +1 -0
  10. package/dist/esm/src/components/Combobox/Combobox.js +28 -24
  11. package/dist/esm/src/components/Combobox/Combobox.js.map +1 -1
  12. package/dist/esm/src/components/Combobox/useCombobox.js +32 -38
  13. package/dist/esm/src/components/Combobox/useCombobox.js.map +1 -1
  14. package/dist/esm/src/components/Dialog/components/Content.js +8 -8
  15. package/dist/esm/src/components/Dialog/components/Content.js.map +1 -1
  16. package/dist/esm/src/components/Dialog/components/Drawer.js +2 -1
  17. package/dist/esm/src/components/Dialog/components/Drawer.js.map +1 -1
  18. package/dist/esm/src/components/Dialog/components/Extra.js +2 -1
  19. package/dist/esm/src/components/Dialog/components/Extra.js.map +1 -1
  20. package/dist/esm/src/components/Input/util.js +6 -6
  21. package/dist/esm/src/components/Input/util.js.map +1 -1
  22. package/dist/esm/src/components/Listbox/Listbox.js +21 -5
  23. package/dist/esm/src/components/Listbox/Listbox.js.map +1 -1
  24. package/dist/esm/src/components/Listbox/ScrollableList.js +6 -4
  25. package/dist/esm/src/components/Listbox/ScrollableList.js.map +1 -1
  26. package/dist/esm/src/components/Navigation/Navigation.js +1 -0
  27. package/dist/esm/src/components/Navigation/Navigation.js.map +1 -1
  28. package/dist/esm/src/components/Pagination/Pagination.js +1 -0
  29. package/dist/esm/src/components/Pagination/Pagination.js.map +1 -1
  30. package/dist/esm/src/components/RadioGroup/RadioGroup.js +20 -17
  31. package/dist/esm/src/components/RadioGroup/RadioGroup.js.map +1 -1
  32. package/dist/esm/src/components/SearchInput/SearchInput.js +1 -0
  33. package/dist/esm/src/components/SearchInput/SearchInput.js.map +1 -1
  34. package/dist/esm/src/components/Select/Select.js +27 -26
  35. package/dist/esm/src/components/Select/Select.js.map +1 -1
  36. package/dist/esm/src/components/Select/useSelect.js +72 -39
  37. package/dist/esm/src/components/Select/useSelect.js.map +1 -1
  38. package/dist/esm/src/index.js +1 -0
  39. package/dist/esm/src/index.js.map +1 -1
  40. package/dist/index.css +8 -80
  41. package/dist/index.d.ts +1 -0
  42. package/dist/taco.cjs.development.js +240 -175
  43. package/dist/taco.cjs.development.js.map +1 -1
  44. package/dist/taco.cjs.production.min.js +1 -1
  45. package/dist/taco.cjs.production.min.js.map +1 -1
  46. package/package.json +2 -3
  47. package/types.json +467 -479
@@ -16,7 +16,6 @@ var DialogPrimitive = require('@radix-ui/react-dialog');
16
16
  var interactions = require('@react-aria/interactions');
17
17
  var ReactDayPicker = _interopDefault(require('react-day-picker'));
18
18
  var CheckboxPrimitive = require('@radix-ui/react-checkbox');
19
- var Popover$1 = require('reakit/Popover');
20
19
  var keycode = _interopDefault(require('keycode'));
21
20
  var debounce = _interopDefault(require('lodash/debounce'));
22
21
  var dateFns = require('date-fns');
@@ -3188,6 +3187,13 @@ Accordion.Item = Item;
3188
3187
  Accordion.Trigger = Trigger;
3189
3188
  Accordion.Content = Content;
3190
3189
 
3190
+ var Backdrop = function Backdrop(props) {
3191
+ var className = cn('fixed inset-0 cursor-default overflow-y-auto bg-[rgba(50,46,62,0.8)] animate-[fade-in_150ms] aria-hidden:hidden', props.className);
3192
+ return React.createElement("div", Object.assign({}, props, {
3193
+ className: className
3194
+ }));
3195
+ };
3196
+
3191
3197
  var VisuallyHidden = /*#__PURE__*/React.forwardRef(function VisuallyHidden(props, ref) {
3192
3198
  return React.createElement("span", Object.assign({}, props, {
3193
3199
  className: "sr-only",
@@ -4092,10 +4098,9 @@ var Content$2 = /*#__PURE__*/React.forwardRef(function DialogContent(props, ref)
4092
4098
  'w-md': dialog.size === 'md',
4093
4099
  'w-lg': dialog.size === 'lg'
4094
4100
  });
4095
- var containerClassName = cn('yt-dialog bg-white p-6 rounded relative z-[999]', 'shadow-[0_6px_9px_0_rgba(89,85,98,0.3),0_0_1px_0_rgba(89,85,98,0.2)]', {
4101
+ var containerClassName = cn('bg-white p-6 rounded relative z-[999]', 'shadow-[0_6px_9px_0_rgba(89,85,98,0.3),0_0_1px_0_rgba(89,85,98,0.2)]', {
4096
4102
  'rounded-b-none': !!dialog.elements.extra
4097
- }, props.className);
4098
- var overlayClassName = cn('fixed inset-0 cursor-default overflow-y-auto bg-[rgba(50,46,62,0.8)] animate-[fade-in_150ms] aria-hidden:hidden'); // the chosen behaviour in taco is that outside clicks do not close the dialog
4103
+ }, props.className); // the chosen behaviour in taco is that outside clicks do not close the dialog
4099
4104
 
4100
4105
  var handleInteractOutside = function handleInteractOutside(event) {
4101
4106
  return event.preventDefault();
@@ -4113,10 +4118,9 @@ var Content$2 = /*#__PURE__*/React.forwardRef(function DialogContent(props, ref)
4113
4118
  }
4114
4119
 
4115
4120
  return React.createElement(DialogPrimitive.Portal, null, React.createElement(DialogPrimitive.Overlay, {
4116
- className: overlayClassName
4117
- }, React.createElement(DialogPrimitive.Content, Object.assign({}, props, {
4121
+ asChild: true
4122
+ }, React.createElement(Backdrop, null, React.createElement(DialogPrimitive.Content, Object.assign({}, props, {
4118
4123
  className: className,
4119
- "data-taco": "dialog",
4120
4124
  onEscapeKeyDown: dialog.onClose,
4121
4125
  onInteractOutside: handleInteractOutside,
4122
4126
  onCloseAutoFocus: handleCloseAutoFocus,
@@ -4126,7 +4130,8 @@ var Content$2 = /*#__PURE__*/React.forwardRef(function DialogContent(props, ref)
4126
4130
  top: dialog.draggable ? "calc(50% + " + position.y + "px)" : undefined
4127
4131
  })
4128
4132
  }), React.createElement("div", {
4129
- className: containerClassName
4133
+ className: containerClassName,
4134
+ "data-taco": "dialog"
4130
4135
  }, output, dialog.draggable && React.createElement("div", Object.assign({}, dragHandleProps, {
4131
4136
  "aria-label": texts.dialog.drag,
4132
4137
  className: "yt-dialog__drag absolute-center-x bg-grey-light top-1.5 h-3 w-24 cursor-move rounded text-center"
@@ -4138,7 +4143,7 @@ var Content$2 = /*#__PURE__*/React.forwardRef(function DialogContent(props, ref)
4138
4143
  "aria-label": texts.dialog.close,
4139
4144
  className: "absolute top-0 right-0 mt-2 mr-2",
4140
4145
  icon: "close"
4141
- }))), dialog.elements.drawer, dialog.elements.extra)));
4146
+ }))), dialog.elements.drawer, dialog.elements.extra))));
4142
4147
  });
4143
4148
 
4144
4149
  var Drawer = /*#__PURE__*/React.forwardRef(function DialogDrawer(props, ref) {
@@ -4146,7 +4151,8 @@ var Drawer = /*#__PURE__*/React.forwardRef(function DialogDrawer(props, ref) {
4146
4151
 
4147
4152
  var dialog = useCurrentDialog();
4148
4153
  return React.createElement(framerMotion.motion.div, Object.assign({}, props, {
4149
- className: "bg-white absolute top-0 h-full w-full hidden text-left p-6 overflow-y-auto rounded-r -ml-[4px] z-[998]",
4154
+ className: "absolute top-0 z-[998] -ml-[4px] hidden h-full w-full overflow-y-auto rounded-r bg-white p-6 text-left",
4155
+ "data-taco": "dialog-drawer",
4150
4156
  "aria-hidden": !((_dialog$drawer = dialog.drawer) !== null && _dialog$drawer !== void 0 && _dialog$drawer.open),
4151
4157
  variants: {
4152
4158
  visible: {
@@ -4175,7 +4181,8 @@ var Drawer = /*#__PURE__*/React.forwardRef(function DialogDrawer(props, ref) {
4175
4181
 
4176
4182
  var Extra = /*#__PURE__*/React.forwardRef(function (props, ref) {
4177
4183
  return React.createElement("div", Object.assign({}, props, {
4178
- className: "bg-grey-light rounded-t-none rounded-b absolute top-full w-full text-left p-6 left-0 -mt-px yt-shadow-inset",
4184
+ className: "bg-grey-light yt-shadow-inset absolute top-full left-0 -mt-px w-full rounded-t-none rounded-b p-6 text-left",
4185
+ "data-taco": "dialog-extra",
4179
4186
  ref: ref
4180
4187
  }));
4181
4188
  });
@@ -4654,7 +4661,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
4654
4661
  var getInputClasses = function getInputClasses(props) {
4655
4662
  var _cn;
4656
4663
 
4657
- return cn('bg-white text-black text-sm border font-normal not-italic no-underline rounded inline-flex leading-6 px-2 relative w-full text-ellipsis transition-all delay-100 ease-in flex items-center', (_cn = {
4664
+ return cn('peer bg-white text-black text-sm border font-normal not-italic no-underline rounded inline-flex leading-6 px-2 relative w-full text-ellipsis transition-all delay-100 ease-in flex items-center', (_cn = {
4658
4665
  'cursor-not-allowed text-black bg-grey': props.readOnly,
4659
4666
  'border-grey text-opacity-25 cursor-not-allowed': props.disabled
4660
4667
  }, _cn[getStateClasses$1(props.state)] = !props.disabled, _cn['bg-[rgba(255,255,0,0.075)]'] = props.highlighted && props.disabled, _cn['bg-[rgba(255,255,0,0.2)]'] = props.highlighted && !props.disabled, _cn));
@@ -4680,19 +4687,19 @@ var getStateClasses$1 = function getStateClasses(value) {
4680
4687
  var getButtonStateClasses = function getButtonStateClasses(value) {
4681
4688
  switch (value) {
4682
4689
  case 'success':
4683
- return 'border-green focus:border-green-light focus:yt-focus-green peer-focus:border-green-light peer-focus:peer-active:border-green-dark';
4690
+ return '!border-green focus:!border-green-light focus:yt-focus-green peer-focus:!border-green-light peer-focus:peer-active:!border-green-dark';
4684
4691
 
4685
4692
  case 'error':
4686
- return 'border-red focus:border-red-light focus:yt-focus-red peer-focus:border-red-light peer-focus:peer-active:border-red-dark';
4693
+ return '!border-red focus:!border-red-light focus:yt-focus-red peer-focus:!border-red-light peer-focus:peer-active:!border-red-dark';
4687
4694
 
4688
4695
  case 'warning':
4689
- return 'border-yellow-dark focus:border-yellow-dark focus:yt-focus-yellow peer-focus:peer-active:border-yellow-dark';
4696
+ return '!border-yellow-dark focus:!border-yellow-dark focus:yt-focus-yellow peer-focus:peer-active:!border-yellow-dark';
4690
4697
 
4691
4698
  case 'information':
4692
- return 'border-blue focus:border-blue-light peer-focus:border-blue-light peer-focus:peer-active:border-blue-dark';
4699
+ return '!border-blue focus:!border-blue-light peer-focus:!border-blue-light peer-focus:peer-active:!border-blue-dark';
4693
4700
 
4694
4701
  default:
4695
- return 'border-grey-dark focus:border-blue-light peer-focus:border-blue-light peer-focus:peer-active:border-blue-dark';
4702
+ return '!border-grey-dark focus:!border-blue-light peer-focus:!border-blue-light peer-focus:peer-active:!border-blue-dark';
4696
4703
  }
4697
4704
  };
4698
4705
 
@@ -4953,7 +4960,9 @@ var ScrollableList = /*#__PURE__*/React.forwardRef(function ScrollableList(props
4953
4960
 
4954
4961
  var list = _extends({}, otherProps, {
4955
4962
  className: cn('inline-flex flex-col list-none !p-0 m-0 overflow-y-auto h-auto', getInputClasses(props), {
4956
- 'yt-list--multiselect': multiselect
4963
+ 'yt-list--multiselect': multiselect,
4964
+ 'pointer-events-none': disabled,
4965
+ 'cursor-not-allowed': disabled || readOnly
4957
4966
  }, otherProps.className),
4958
4967
  disabled: disabled,
4959
4968
  id: id,
@@ -4971,7 +4980,7 @@ var ScrollableList = /*#__PURE__*/React.forwardRef(function ScrollableList(props
4971
4980
  'aria-selected': multiselect ? getOptionCheckedState(String(option.value), index) : currentIndex === index,
4972
4981
  'data-focused': currentIndex === index,
4973
4982
  children: option.text,
4974
- className: cn('flex items-center px-3 w-full cursor-pointer bg-white flex-[0_0_2rem] focus:wcag-blue', {
4983
+ className: cn('flex items-center px-3 w-full cursor-pointer bg-white flex-[0_0_2rem] focus:wcag-blue focus:border-blue', {
4975
4984
  'sticky top-0 font-bold': depth === 0 && !!option.hasChildren
4976
4985
  }),
4977
4986
  disabled: option.disabled,
@@ -4998,13 +5007,13 @@ var ScrollableList = /*#__PURE__*/React.forwardRef(function ScrollableList(props
4998
5007
  optionProps = _objectWithoutPropertiesLoose(_ref, _excluded2$1);
4999
5008
 
5000
5009
  return React.createElement("li", Object.assign({}, optionProps), icon, React.createElement("span", {
5001
- className: "flex-grow text-left truncate"
5010
+ className: "flex-grow truncate text-left"
5002
5011
  }, children), multiselect && React.createElement(Checkbox, {
5003
5012
  checked: optionProps['aria-selected'],
5004
5013
  onChange: function onChange() {
5005
5014
  return null;
5006
5015
  },
5007
- className: "ml-2 flex items-center justify-end pointer-events-none overflow-visible p-px"
5016
+ className: "pointer-events-none ml-2 flex items-center justify-end overflow-visible p-px"
5008
5017
  }));
5009
5018
  }) : React.createElement("li", {
5010
5019
  className: "yt-list__empty"
@@ -5251,8 +5260,7 @@ var convertToInputValue = function convertToInputValue(value) {
5251
5260
  };
5252
5261
 
5253
5262
  var useCombobox = function useCombobox(_ref, ref) {
5254
- var ariaLabel = _ref['aria-label'],
5255
- ariaLabelledBy = _ref['aria-labelledby'],
5263
+ var ariaLabelledBy = _ref['aria-labelledby'],
5256
5264
  _ref$data = _ref.data,
5257
5265
  unfilteredData = _ref$data === void 0 ? [] : _ref$data,
5258
5266
  defaultValue = _ref.defaultValue,
@@ -5267,17 +5275,18 @@ var useCombobox = function useCombobox(_ref, ref) {
5267
5275
 
5268
5276
  var inputRef = useProxiedRef(ref);
5269
5277
  var listRef = React.useRef(null);
5270
- var popover = Popover$1.usePopoverState({
5271
- gutter: 4,
5272
- placement: 'bottom-start'
5273
- });
5278
+
5279
+ var _React$useState = React.useState(false),
5280
+ open = _React$useState[0],
5281
+ setOpen = _React$useState[1];
5282
+
5274
5283
  var listId = React.useMemo(function () {
5275
5284
  return uuid.v4();
5276
5285
  }, []);
5277
5286
 
5278
- var _React$useState = React.useState(convertToInputValue(value)),
5279
- inputValue = _React$useState[0],
5280
- setInputValue = _React$useState[1];
5287
+ var _React$useState2 = React.useState(convertToInputValue(value)),
5288
+ inputValue = _React$useState2[0],
5289
+ setInputValue = _React$useState2[1];
5281
5290
 
5282
5291
  var shouldFilterData = !inline || inline && inputValue !== convertToInputValue(value);
5283
5292
  var flattenedData = useFlattenedData(unfilteredData);
@@ -5285,9 +5294,9 @@ var useCombobox = function useCombobox(_ref, ref) {
5285
5294
  return shouldFilterData ? filterData(flattenedData, inputValue) : flattenedData;
5286
5295
  }, [shouldFilterData, inputValue, flattenedData]); // listbox/select change value _with_ the index, but combobox changes on select of an index (click/enter), so we need state
5287
5296
 
5288
- var _React$useState2 = React.useState(inputValue !== undefined ? getIndexFromValue(data, inputValue) : undefined),
5289
- currentIndex = _React$useState2[0],
5290
- setCurrentIndex = _React$useState2[1];
5297
+ var _React$useState3 = React.useState(inputValue !== undefined ? getIndexFromValue(data, inputValue) : undefined),
5298
+ currentIndex = _React$useState3[0],
5299
+ setCurrentIndex = _React$useState3[1];
5291
5300
 
5292
5301
  var setInputValueByIndex = function setInputValueByIndex(index) {
5293
5302
  if (index !== undefined) {
@@ -5335,20 +5344,20 @@ var useCombobox = function useCombobox(_ref, ref) {
5335
5344
  if (inputValue && data.length && !isCurrentValue) {
5336
5345
  setCurrentIndex(0);
5337
5346
 
5338
- if (!popover.visible) {
5339
- popover.show();
5347
+ if (!open) {
5348
+ setOpen(true);
5340
5349
  }
5341
5350
  } else {
5342
- popover.hide();
5351
+ setOpen(false);
5343
5352
  }
5344
5353
  }, [inputValue, data]);
5345
5354
  React.useEffect(function () {
5346
- if (popover.visible) {
5355
+ if (open) {
5347
5356
  setCurrentIndex(getIndexFromValue(data, inputValue) || 0);
5348
5357
  } else {
5349
5358
  setCurrentIndex(undefined);
5350
5359
  }
5351
- }, [popover.visible]); // event handlers
5360
+ }, [open]); // event handlers
5352
5361
 
5353
5362
  var handleInputBlur = function handleInputBlur(event) {
5354
5363
  event.persist();
@@ -5380,8 +5389,8 @@ var useCombobox = function useCombobox(_ref, ref) {
5380
5389
  };
5381
5390
 
5382
5391
  var handleInputClick = function handleInputClick(event) {
5383
- if (inline || !popover.visible && inputValue && data.length) {
5384
- popover.show();
5392
+ if (inline || !open && inputValue && data.length) {
5393
+ setOpen(true);
5385
5394
  }
5386
5395
 
5387
5396
  if (onClick) {
@@ -5403,7 +5412,7 @@ var useCombobox = function useCombobox(_ref, ref) {
5403
5412
  {
5404
5413
  event.preventDefault();
5405
5414
  setInputValue(convertToInputValue(value));
5406
- popover.hide();
5415
+ setOpen(false);
5407
5416
  return;
5408
5417
  }
5409
5418
 
@@ -5415,7 +5424,7 @@ var useCombobox = function useCombobox(_ref, ref) {
5415
5424
  }
5416
5425
 
5417
5426
  setCurrentValue(currentIndex);
5418
- popover.hide();
5427
+ setOpen(false);
5419
5428
  return;
5420
5429
  }
5421
5430
 
@@ -5424,7 +5433,7 @@ var useCombobox = function useCombobox(_ref, ref) {
5424
5433
  case keycode('home'):
5425
5434
  case keycode('end'):
5426
5435
  {
5427
- if (popover.visible) {
5436
+ if (open) {
5428
5437
  event.preventDefault();
5429
5438
  }
5430
5439
 
@@ -5437,12 +5446,12 @@ var useCombobox = function useCombobox(_ref, ref) {
5437
5446
  listRef.current.dispatchEvent(createCustomKeyboardEvent(event));
5438
5447
  }
5439
5448
 
5440
- if (inline && !popover.visible) {
5449
+ if (inline && !open) {
5441
5450
  if (event.keyCode === keycode('up') || event.keyCode === keycode('down')) {
5442
5451
  event.preventDefault();
5443
5452
  var initialIndex = event.keyCode === keycode('up') ? data.length - 1 : 0;
5444
5453
  setCurrentIndex(currentIndex !== undefined ? currentIndex : initialIndex);
5445
- popover.show();
5454
+ setOpen(true);
5446
5455
  }
5447
5456
  }
5448
5457
 
@@ -5459,11 +5468,11 @@ var useCombobox = function useCombobox(_ref, ref) {
5459
5468
  var handleListboxClick = function handleListboxClick(event, index) {
5460
5469
  event.preventDefault();
5461
5470
  setCurrentValue(index);
5462
- popover.hide();
5471
+ setOpen(false);
5463
5472
  };
5464
5473
 
5465
5474
  var combobox = {
5466
- 'aria-expanded': popover.visible,
5475
+ 'aria-expanded': open,
5467
5476
  'aria-owns': listId,
5468
5477
  'aria-haspopup': 'listbox',
5469
5478
  role: 'combobox'
@@ -5504,15 +5513,10 @@ var useCombobox = function useCombobox(_ref, ref) {
5504
5513
  combobox: combobox,
5505
5514
  input: input,
5506
5515
  list: list,
5507
- popover: _extends({}, popover, {
5508
- visible: !data.length ? false : popover.visible,
5509
- container: {
5510
- tabIndex: -1,
5511
- 'aria-label': ariaLabel,
5512
- 'aria-labelledby': ariaLabelledBy,
5513
- unstable_initialFocusRef: inputRef
5514
- }
5515
- })
5516
+ popover: {
5517
+ open: open,
5518
+ onOpenChange: setOpen
5519
+ }
5516
5520
  };
5517
5521
  };
5518
5522
 
@@ -5561,8 +5565,7 @@ var useBoundingClientRectListener = function useBoundingClientRectListener(ref)
5561
5565
  return dimensions;
5562
5566
  };
5563
5567
 
5564
- var _excluded$m = ["className", "style"],
5565
- _excluded2$2 = ["container"];
5568
+ var _excluded$m = ["className", "style"];
5566
5569
  var Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
5567
5570
  var externalClassName = props.className,
5568
5571
  style = props.style,
@@ -5574,9 +5577,6 @@ var Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
5574
5577
  popover = _useCombobox.popover,
5575
5578
  list = _useCombobox.list;
5576
5579
 
5577
- var container = popover.container,
5578
- base = _objectWithoutPropertiesLoose(popover, _excluded2$2);
5579
-
5580
5580
  var internalRef = React.useRef(null);
5581
5581
  var selectDimensions = useBoundingClientRectListener(internalRef);
5582
5582
  var className = cn('inline-flex relative', {
@@ -5586,28 +5586,36 @@ var Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
5586
5586
  className: className,
5587
5587
  "data-taco": "combobox",
5588
5588
  style: style
5589
- }, React.createElement(Popover$1.PopoverDisclosure, Object.assign({}, base, {
5589
+ }, React.createElement(PopoverPrimitive.Root, Object.assign({}, popover), React.createElement(PopoverPrimitive.Anchor, {
5590
+ asChild: true,
5590
5591
  ref: internalRef
5591
- }), function (_ref) {
5592
- var ref = _ref.ref;
5593
- return React.createElement("span", Object.assign({}, combobox, {
5594
- className: "w-full",
5595
- ref: ref
5596
- }), React.createElement(Input, Object.assign({}, input, {
5597
- autoComplete: "off",
5598
- button: props.inline ? React.createElement(IconButton, {
5599
- icon: popover.visible ? 'chevron-up' : 'chevron-down',
5600
- onClick: popover.toggle,
5601
- tabIndex: -1
5602
- }) : props.button
5603
- })));
5604
- }), !otherProps.disabled && React.createElement(Popover$1.Popover, Object.assign({}, base, container), React.createElement(ScrollableList, Object.assign({}, list, {
5605
- className: cn('border-blue w-auto max-w-[theme(spacing.96)] max-h-[calc(12rem+2px)]'),
5592
+ }, React.createElement("div", Object.assign({}, combobox, {
5593
+ className: "inline w-full",
5594
+ ref: ref
5595
+ }), React.createElement(Input, Object.assign({}, input, {
5596
+ autoComplete: "off",
5597
+ button: props.inline ? React.createElement(IconButton, {
5598
+ appearance: "discrete",
5599
+ className: "focus:!border-none focus:!shadow-none active:!border-none",
5600
+ icon: popover.open ? 'chevron-up' : 'chevron-down',
5601
+ onClick: function onClick() {
5602
+ return popover.onOpenChange(true);
5603
+ },
5604
+ tabIndex: -1
5605
+ }) : props.button
5606
+ })))), React.createElement(PopoverPrimitive.Content, {
5607
+ align: "start",
5608
+ onOpenAutoFocus: function onOpenAutoFocus(event) {
5609
+ event.preventDefault();
5610
+ },
5611
+ sideOffset: 4
5612
+ }, React.createElement(ScrollableList, Object.assign({}, list, {
5613
+ className: cn('border-blue max-h-[calc(12rem+2px)] w-auto max-w-[theme(spacing.96)]'),
5606
5614
  style: {
5607
5615
  minWidth: selectDimensions === null || selectDimensions === void 0 ? void 0 : selectDimensions.width
5608
5616
  },
5609
- tabIndex: popover.visible ? 0 : -1
5610
- }))));
5617
+ tabIndex: popover.open ? 0 : -1
5618
+ })))));
5611
5619
  });
5612
5620
 
5613
5621
  var format = function format(date, mask) {
@@ -6304,7 +6312,7 @@ var useMultiListbox = function useMultiListbox(_ref, ref) {
6304
6312
  };
6305
6313
 
6306
6314
  var _excluded$u = ["className"],
6307
- _excluded2$3 = ["className"];
6315
+ _excluded2$2 = ["className"];
6308
6316
  var Listbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6309
6317
  var externalClassName = props.className,
6310
6318
  otherProps = _objectWithoutPropertiesLoose(props, _excluded$u);
@@ -6313,25 +6321,41 @@ var Listbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6313
6321
  list = _useListbox.list,
6314
6322
  input = _useListbox.input;
6315
6323
 
6316
- var className = cn('yt-listbox', externalClassName);
6324
+ var className = cn('bg-white inline-flex relative w-full', externalClassName);
6317
6325
  return React.createElement("span", {
6326
+ "data-taco": "listbox",
6318
6327
  className: className
6319
- }, React.createElement(ScrollableList, Object.assign({}, list)), React.createElement("input", Object.assign({}, input, {
6328
+ }, React.createElement(ScrollableList, Object.assign({}, list, {
6329
+ style: _extends({}, list.style, {
6330
+ maxHeight: 'calc(12rem + 2px)'
6331
+ /* (6 * option height) + listbox border */
6332
+
6333
+ })
6334
+ })), React.createElement("input", Object.assign({}, input, {
6335
+ className: "hidden",
6320
6336
  type: "text"
6321
6337
  })));
6322
6338
  });
6323
6339
  var MultiListbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6324
6340
  var externalClassName = props.className,
6325
- otherProps = _objectWithoutPropertiesLoose(props, _excluded2$3);
6341
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$2);
6326
6342
 
6327
6343
  var _useMultiListbox = useMultiListbox(otherProps, ref),
6328
6344
  list = _useMultiListbox.list,
6329
6345
  input = _useMultiListbox.input;
6330
6346
 
6331
- var className = cn('yt-listbox', externalClassName);
6347
+ var className = cn('bg-white inline-flex relative w-full', externalClassName);
6332
6348
  return React.createElement("span", {
6349
+ "data-taco": "listbox",
6333
6350
  className: className
6334
- }, React.createElement(ScrollableList, Object.assign({}, list)), React.createElement("input", Object.assign({}, input, {
6351
+ }, React.createElement(ScrollableList, Object.assign({}, list, {
6352
+ style: _extends({}, list.style, {
6353
+ maxHeight: 'calc(12rem + 2px + 2px)'
6354
+ /* (6 * option height) + listbox border + ALL_OPTIONS bottom border */
6355
+
6356
+ })
6357
+ })), React.createElement("input", Object.assign({}, input, {
6358
+ className: "hidden",
6335
6359
  type: "text"
6336
6360
  })));
6337
6361
  });
@@ -6569,9 +6593,9 @@ var Checkbox$1 = function Checkbox(props) {
6569
6593
  };
6570
6594
 
6571
6595
  var _excluded$z = ["children", "value"],
6572
- _excluded2$4 = ["children", "defaultValue", "disabled", "invalid", "onChange", "orientation", "value"];
6596
+ _excluded2$3 = ["children", "defaultValue", "disabled", "invalid", "onChange", "orientation", "value"];
6573
6597
  var getRadioGroupItemValueAsString = function getRadioGroupItemValueAsString(value) {
6574
- return value === undefined || value === null ? '' : String(value);
6598
+ return value === null ? '' : String(value);
6575
6599
  };
6576
6600
  var findByValue$1 = function findByValue(values, valueAsString) {
6577
6601
  return values.find(function (value) {
@@ -6618,14 +6642,16 @@ var useRadioGroup = function useRadioGroup(props) {
6618
6642
  _props$orientation = props.orientation,
6619
6643
  orientation = _props$orientation === void 0 ? 'vertical' : _props$orientation,
6620
6644
  value = props.value,
6621
- otherProps = _objectWithoutPropertiesLoose(props, _excluded2$4);
6645
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$3);
6622
6646
 
6623
6647
  var values = React.useMemo(function () {
6624
- var _React$Children$map;
6625
-
6626
- return (_React$Children$map = React.Children.map(children, function (child) {
6627
- return child.props.value;
6628
- })) !== null && _React$Children$map !== void 0 ? _React$Children$map : [];
6648
+ var radioGroupItemValues = [];
6649
+ React.Children.forEach(children, function (child) {
6650
+ if (React.isValidElement(child)) {
6651
+ radioGroupItemValues.push(child.props.value);
6652
+ }
6653
+ });
6654
+ return radioGroupItemValues;
6629
6655
  }, [children]);
6630
6656
  var context = React.useMemo(function () {
6631
6657
  return {
@@ -6635,17 +6661,18 @@ var useRadioGroup = function useRadioGroup(props) {
6635
6661
  }, [disabled, invalid]);
6636
6662
  var valueProps;
6637
6663
 
6638
- if (defaultValue) {
6664
+ if (onChange !== undefined) {
6665
+ var handleChange = function handleChange(value) {
6666
+ return onChange(findByValue$1(values, value));
6667
+ };
6668
+
6639
6669
  valueProps = {
6640
- defaultValue: getRadioGroupItemValueAsString(defaultValue) || undefined
6670
+ onValueChange: handleChange,
6671
+ value: value !== undefined ? getRadioGroupItemValueAsString(value) : undefined
6641
6672
  };
6642
6673
  } else {
6643
- var handleChange = onChange ? function (value) {
6644
- return onChange(findByValue$1(values, value));
6645
- } : undefined;
6646
6674
  valueProps = {
6647
- onValueChange: handleChange,
6648
- value: getRadioGroupItemValueAsString(value) || undefined
6675
+ defaultValue: defaultValue !== undefined ? getRadioGroupItemValueAsString(defaultValue) : undefined
6649
6676
  };
6650
6677
  }
6651
6678
 
@@ -6663,9 +6690,9 @@ var RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
6663
6690
  otherProps = _useRadioGroup.props;
6664
6691
 
6665
6692
  var className = cn('flex items-start', {
6666
- 'flex-wrap space-x-4': props.orientation === 'horizontal',
6667
- 'flex-col space-y-2': props.orientation === 'vertical'
6668
- }, props.className);
6693
+ 'flex-wrap space-x-4': otherProps.orientation === 'horizontal',
6694
+ 'flex-col space-y-2': otherProps.orientation === 'vertical'
6695
+ }, otherProps.className);
6669
6696
  return React.createElement(RadioGroupContext.Provider, {
6670
6697
  value: context
6671
6698
  }, React.createElement(RadioGroupPrimitive.Root, Object.assign({}, otherProps, {
@@ -6943,7 +6970,7 @@ var useDropTarget = function useDropTarget(onDrop) {
6943
6970
  };
6944
6971
 
6945
6972
  var _excluded$C = ["active", "children", "onDrop", "postfix", "prefix", "role"],
6946
- _excluded2$5 = ["children"];
6973
+ _excluded2$4 = ["children"];
6947
6974
  var Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
6948
6975
  var active = props.active,
6949
6976
  children = props.children,
@@ -7053,11 +7080,12 @@ var Menu$1 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref) {
7053
7080
  Menu$1.Group = MenuGroup;
7054
7081
  var Navigation = /*#__PURE__*/React__default.forwardRef(function Navigation(props, ref) {
7055
7082
  var children = props.children,
7056
- otherProps = _objectWithoutPropertiesLoose(props, _excluded2$5);
7083
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$4);
7057
7084
 
7058
7085
  var className = cn('h-full flex flex-col bg-grey-light divide-y-2 divide-grey-light', props.className);
7059
7086
  return React__default.createElement("div", Object.assign({}, otherProps, {
7060
7087
  className: className,
7088
+ "data-taco": "navigation",
7061
7089
  ref: ref
7062
7090
  }), children);
7063
7091
  });
@@ -7114,20 +7142,19 @@ var PageNumbers = function PageNumbers(_ref) {
7114
7142
  }));
7115
7143
  };
7116
7144
 
7117
- var _excluded$D = ["aria-label", "aria-labelledby", "data", "disabled", "emptyValue", "id", "multiselect", "onClick", "readOnly", "showSelectedIcon", "value"];
7145
+ var _excluded$D = ["aria-label", "aria-labelledby", "data", "defaultValue", "disabled", "emptyValue", "id", "multiselect", "onClick", "onChange", "readOnly", "value"];
7118
7146
  var useSelect = function useSelect(_ref, ref) {
7119
7147
  var ariaLabel = _ref['aria-label'],
7120
7148
  ariaLabelledBy = _ref['aria-labelledby'],
7121
7149
  _ref$data = _ref.data,
7122
7150
  data = _ref$data === void 0 ? [] : _ref$data,
7151
+ defaultValue = _ref.defaultValue,
7123
7152
  disabled = _ref.disabled,
7124
7153
  emptyValue = _ref.emptyValue,
7125
7154
  nativeId = _ref.id,
7126
7155
  multiselect = _ref.multiselect,
7127
- onClick = _ref.onClick,
7156
+ onChange = _ref.onChange,
7128
7157
  readOnly = _ref.readOnly,
7129
- _ref$showSelectedIcon = _ref.showSelectedIcon,
7130
- showSelectedIcon = _ref$showSelectedIcon === void 0 ? false : _ref$showSelectedIcon,
7131
7158
  _ref$value = _ref.value,
7132
7159
  value = _ref$value === void 0 ? emptyValue : _ref$value,
7133
7160
  otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$D);
@@ -7137,36 +7164,39 @@ var useSelect = function useSelect(_ref, ref) {
7137
7164
 
7138
7165
  var searchData = useFlattenedData(data);
7139
7166
  var inputRef = useProxiedRef(ref);
7140
- var popover = Popover$1.usePopoverState({
7141
- gutter: 4,
7142
- placement: 'bottom-start'
7143
- });
7167
+
7168
+ var _React$useState = React.useState(false),
7169
+ open = _React$useState[0],
7170
+ setOpen = _React$useState[1];
7171
+
7144
7172
  var id = React.useMemo(function () {
7145
7173
  return nativeId || "select_" + uuid.v4();
7146
7174
  }, [nativeId]);
7175
+ var internalInputRef = React.useRef(null);
7147
7176
  var buttonId = id + "-button"; // support 'escape' resetting to the value that was set when the listbox opened
7148
7177
 
7149
- var _React$useState = React.useState(value),
7150
- lastValue = _React$useState[0],
7151
- setLastValue = _React$useState[1];
7178
+ var _React$useState2 = React.useState(value),
7179
+ lastValue = _React$useState2[0],
7180
+ setLastValue = _React$useState2[1];
7152
7181
 
7153
7182
  React.useEffect(function () {
7154
7183
  setLastValue(value);
7155
- }, [popover.visible]); // event handlers
7156
-
7157
- var handleButtonClick = function handleButtonClick(event) {
7158
- popover.toggle();
7159
-
7160
- if (onClick) {
7161
- event.persist();
7162
- onClick(event);
7184
+ }, [open]);
7185
+ React.useEffect(function () {
7186
+ if (defaultValue !== undefined && value === undefined) {
7187
+ setInputValueByRef$1(internalInputRef.current, defaultValue);
7163
7188
  }
7164
- };
7189
+ }, [defaultValue]);
7190
+ React.useEffect(function () {
7191
+ if (value !== undefined) {
7192
+ setInputValueByRef$1(internalInputRef.current, value);
7193
+ }
7194
+ }, []); // event handlers
7165
7195
 
7166
7196
  var handleButtonKeyDown = function handleButtonKeyDown(event) {
7167
7197
  if (event.keyCode === keycode('up') || event.keyCode === keycode('down')) {
7168
7198
  event.preventDefault();
7169
- popover.toggle();
7199
+ setOpen(true);
7170
7200
  }
7171
7201
  };
7172
7202
 
@@ -7180,7 +7210,7 @@ var useSelect = function useSelect(_ref, ref) {
7180
7210
  setInputValueByRef$1(inputRef.current, lastValue);
7181
7211
  }
7182
7212
 
7183
- popover.hide();
7213
+ setOpen(false);
7184
7214
  break;
7185
7215
  }
7186
7216
 
@@ -7191,7 +7221,7 @@ var useSelect = function useSelect(_ref, ref) {
7191
7221
  event.preventDefault();
7192
7222
  }
7193
7223
 
7194
- popover.hide();
7224
+ setOpen(false);
7195
7225
  break;
7196
7226
  }
7197
7227
  }
@@ -7205,7 +7235,7 @@ var useSelect = function useSelect(_ref, ref) {
7205
7235
  event.preventDefault();
7206
7236
 
7207
7237
  if (!multiselect) {
7208
- popover.hide();
7238
+ setOpen(false);
7209
7239
  }
7210
7240
  };
7211
7241
 
@@ -7230,21 +7260,47 @@ var useSelect = function useSelect(_ref, ref) {
7230
7260
  var item = findByValue(searchData, value);
7231
7261
 
7232
7262
  if (item) {
7233
- text = showSelectedIcon && item.icon ? React.createElement(React.Fragment, null, React.cloneElement(item.icon, {
7234
- className: cn(item.icon.props.className, 'mr-1')
7263
+ text = item.icon ? React.createElement(React.Fragment, null, React.cloneElement(item.icon, {
7264
+ className: cn(item.icon.props.className, 'mr-1 -mt-px')
7235
7265
  }), item.text) : item.text;
7236
7266
  }
7237
7267
  }
7238
7268
  }
7239
7269
 
7270
+ var handleInputChange = function handleInputChange(event) {
7271
+ event.persist();
7272
+
7273
+ if (onChange) {
7274
+ var _item$path$split, _item$path;
7275
+
7276
+ var _item = findByValue(searchData, event.target.value);
7277
+
7278
+ event.detail = sanitizeItem(_item);
7279
+ var indexes = (_item$path$split = _item === null || _item === void 0 ? void 0 : (_item$path = _item.path) === null || _item$path === void 0 ? void 0 : _item$path.split('.')) !== null && _item$path$split !== void 0 ? _item$path$split : [];
7280
+
7281
+ if (indexes.length > 1) {
7282
+ // we don't want to map the current item
7283
+ indexes.pop(); // we need to rebuild the path as we map
7284
+
7285
+ var lastPath;
7286
+ event.detail.parents = indexes.map(function (i) {
7287
+ lastPath = lastPath ? [lastPath, i].join('.') : i;
7288
+ return sanitizeItem(searchData.find(function (i) {
7289
+ return i.path === lastPath;
7290
+ }));
7291
+ });
7292
+ }
7293
+
7294
+ onChange(event);
7295
+ }
7296
+ };
7297
+
7240
7298
  var button = {
7241
- 'aria-expanded': popover.visible,
7242
7299
  'aria-haspopup': 'listbox',
7243
7300
  'aria-label': ariaLabel ? ariaLabel + " " + text : undefined,
7244
7301
  'aria-labelledby': ariaLabelledBy ? ariaLabelledBy + " " + buttonId : undefined,
7245
7302
  disabled: disabled,
7246
7303
  id: buttonId,
7247
- onClick: !disabled && !readOnly ? handleButtonClick : undefined,
7248
7304
  onKeyDown: !disabled && !readOnly ? handleButtonKeyDown : undefined,
7249
7305
  type: 'button'
7250
7306
  };
@@ -7256,30 +7312,35 @@ var useSelect = function useSelect(_ref, ref) {
7256
7312
  disabled: disabled,
7257
7313
  emptyValue: emptyValue,
7258
7314
  onClick: handleListboxClick,
7315
+ onChange: function onChange(event) {
7316
+ setInputValueByRef$1(internalInputRef.current, event.detail.value);
7317
+ },
7259
7318
  onKeyDown: handleListboxKeyDown,
7260
7319
  ref: inputRef,
7261
7320
  value: value,
7262
7321
  multiselect: multiselect
7263
7322
  });
7264
7323
 
7324
+ var input = {
7325
+ onChange: handleInputChange,
7326
+ ref: internalInputRef,
7327
+ value: value !== null && value !== void 0 ? value : ''
7328
+ };
7265
7329
  return {
7266
7330
  button: button,
7267
7331
  listbox: listbox,
7268
- popover: _extends({}, popover, {
7269
- container: {
7270
- tabIndex: -1,
7271
- 'aria-label': ariaLabel,
7272
- 'aria-labelledby': ariaLabelledBy
7273
- }
7274
- }),
7332
+ input: input,
7333
+ popover: {
7334
+ open: open,
7335
+ onOpenChange: setOpen
7336
+ },
7275
7337
  text: text,
7276
7338
  more: more
7277
7339
  };
7278
7340
  };
7279
7341
 
7280
7342
  var _excluded$E = ["autoFocus", "className", "highlighted", "style"],
7281
- _excluded2$6 = ["container"],
7282
- _excluded3 = ["editable"];
7343
+ _excluded2$5 = ["editable"];
7283
7344
  var BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
7284
7345
  var autoFocus = props.autoFocus,
7285
7346
  externalClassName = props.className,
@@ -7290,19 +7351,19 @@ var BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
7290
7351
  button = _useSelect.button,
7291
7352
  listbox = _useSelect.listbox,
7292
7353
  popover = _useSelect.popover,
7354
+ input = _useSelect.input,
7293
7355
  text = _useSelect.text,
7294
7356
  _useSelect$more = _useSelect.more,
7295
7357
  more = _useSelect$more === void 0 ? 0 : _useSelect$more;
7296
7358
 
7297
- var container = popover.container,
7298
- base = _objectWithoutPropertiesLoose(popover, _excluded2$6);
7299
-
7300
7359
  var internalRef = React.useRef(null);
7301
7360
  var selectDimensions = useBoundingClientRectListener(internalRef);
7302
7361
  var className = cn('inline-flex relative w-full', {
7303
7362
  'yt-select--readonly': props.readOnly
7304
7363
  }, externalClassName);
7305
- var inputClassname = cn(getInputClasses(props), 'text-left pr-0');
7364
+ var inputClassname = cn(getInputClasses(props), 'text-left pr-0', {
7365
+ 'border-blue': popover.open
7366
+ });
7306
7367
  React.useEffect(function () {
7307
7368
  if (autoFocus && internalRef.current) {
7308
7369
  internalRef.current.focus();
@@ -7310,7 +7371,9 @@ var BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
7310
7371
  }, []);
7311
7372
 
7312
7373
  var renderMultiSelection = function renderMultiSelection() {
7313
- return React.createElement(React.Fragment, null, React.createElement("span", null, text), more > 0 && React.createElement(Badge, {
7374
+ return React.createElement(React.Fragment, null, React.createElement("span", {
7375
+ className: "flex-grow truncate text-left"
7376
+ }, text), more > 0 && React.createElement(Badge, {
7314
7377
  className: "ml-2"
7315
7378
  }, "+" + more));
7316
7379
  };
@@ -7320,34 +7383,34 @@ var BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
7320
7383
  style: {
7321
7384
  minWidth: selectDimensions === null || selectDimensions === void 0 ? void 0 : selectDimensions.width
7322
7385
  },
7323
- tabIndex: popover.visible ? 0 : -1
7386
+ tabIndex: popover.open ? 0 : -1
7324
7387
  });
7325
7388
 
7326
7389
  return React.createElement("span", {
7327
7390
  className: className,
7328
7391
  "data-taco": "select",
7329
7392
  style: style
7330
- }, React.createElement(Popover$1.PopoverDisclosure, Object.assign({}, base, {
7393
+ }, React.createElement(PopoverPrimitive.Root, Object.assign({}, popover), React.createElement(PopoverPrimitive.Trigger, Object.assign({}, button, {
7394
+ className: inputClassname,
7331
7395
  ref: internalRef
7332
- }), function (_ref) {
7333
- var disclosureRef = _ref.ref;
7334
- return React.createElement("button", Object.assign({
7335
- ref: disclosureRef
7336
- }, button, {
7337
- className: inputClassname
7338
- }), props.multiselect ? renderMultiSelection() : React.createElement("span", {
7339
- className: "flex-grow"
7340
- }, text), React.createElement("span", {
7341
- className: "flex h-8 w-8 items-center justify-center"
7342
- }, React.createElement(Icon, {
7343
- className: "group-hover:text-grey-darkest text-black",
7344
- name: popover.visible ? 'chevron-up' : 'chevron-down'
7345
- })));
7346
- }), !otherProps.disabled && React.createElement(Popover$1.Popover, Object.assign({}, base, container), props.multiselect ? React.createElement(MultiListbox, Object.assign({}, commonListboxProps)) : React.createElement(Listbox, Object.assign({}, commonListboxProps))));
7396
+ }), props.multiselect ? renderMultiSelection() : React.createElement("span", {
7397
+ className: "flex-grow truncate text-left"
7398
+ }, text), React.createElement("span", {
7399
+ className: "flex h-8 w-8 items-center justify-center"
7400
+ }, React.createElement(Icon, {
7401
+ className: "pointer-events-none",
7402
+ name: popover.open ? 'chevron-up' : 'chevron-down'
7403
+ }))), React.createElement(PopoverPrimitive.Content, {
7404
+ align: "start",
7405
+ sideOffset: 4
7406
+ }, props.multiselect ? React.createElement(MultiListbox, Object.assign({}, commonListboxProps)) : React.createElement(Listbox, Object.assign({}, commonListboxProps))), React.createElement("input", Object.assign({}, input, {
7407
+ className: "hidden",
7408
+ type: "text"
7409
+ }))));
7347
7410
  });
7348
7411
  var Select = /*#__PURE__*/React.forwardRef(function Select(props, ref) {
7349
7412
  var editable = props.editable,
7350
- otherProps = _objectWithoutPropertiesLoose(props, _excluded3);
7413
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$5);
7351
7414
 
7352
7415
  if (editable) {
7353
7416
  return React.createElement(Combobox, Object.assign({}, otherProps, {
@@ -7474,6 +7537,7 @@ var Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
7474
7537
  var className = cn('inline-flex relative justify-between items-center', props.className);
7475
7538
  return React.createElement("div", Object.assign({}, otherProps, {
7476
7539
  className: className,
7540
+ "data-taco": "pagination",
7477
7541
  ref: ref
7478
7542
  }), showPageSize && React.createElement("span", {
7479
7543
  className: "mr-4"
@@ -8105,7 +8169,7 @@ var useRowActions = function useRowActions(inlineEditingUniqueId, handlers, acti
8105
8169
  };
8106
8170
 
8107
8171
  var _excluded$I = ["onChange"],
8108
- _excluded2$7 = ["onChange"];
8172
+ _excluded2$6 = ["onChange"];
8109
8173
 
8110
8174
  var toggleBetween = function toggleBetween(fromRowIndex, toRowIndex) {
8111
8175
  var fromIndex = toRowIndex < fromRowIndex ? toRowIndex : fromRowIndex;
@@ -8173,7 +8237,7 @@ var useRowSelect = function useRowSelect(onSelectedRows) {
8173
8237
  rows = _ref2.rows;
8174
8238
 
8175
8239
  var _row$getToggleRowSele = row.getToggleRowSelectedProps(),
8176
- props = _objectWithoutPropertiesLoose(_row$getToggleRowSele, _excluded2$7); // row.index refers to the index in the original data, not the current index
8240
+ props = _objectWithoutPropertiesLoose(_row$getToggleRowSele, _excluded2$6); // row.index refers to the index in the original data, not the current index
8177
8241
 
8178
8242
 
8179
8243
  var sortedIndex = rows.findIndex(function (r) {
@@ -8467,7 +8531,7 @@ var useRowDraggable = function useRowDraggable(onRowDrag) {
8467
8531
  };
8468
8532
 
8469
8533
  var _excluded$J = ["children", "data", "dangerouslyHijackGlobalKeyboardNavigation", "onRowClick", "onRowDrag", "onSelectedRows", "rowClassName", "rowExpansionRenderer", "rowHeight", "selectedRows", "disableSorting", "manualSorting", "onSort", "sortRules", "disablePagination", "length", "onPaginate", "pageSize", "pageIndex", "inlineEditingUniqueId", "onRowCreate", "actions", "onRowEdit", "onRowCopy", "onRowDelete", "onRowActive", "windowed"],
8470
- _excluded2$8 = ["headerGroups", "rows", "sortedRows", "prepareRow", "state", "page", "gotoPage", "setPageSize"];
8534
+ _excluded2$7 = ["headerGroups", "rows", "sortedRows", "prepareRow", "state", "page", "gotoPage", "setPageSize"];
8471
8535
 
8472
8536
  var useTableRowActive = function useTableRowActive(activeIndex, rows, rowExpansionRenderer, handleonRowActive) {
8473
8537
  React__default.useEffect(function () {
@@ -8631,7 +8695,7 @@ var useTable = function useTable(props, ref) {
8631
8695
  page = _useReactTable.page,
8632
8696
  gotoPage = _useReactTable.gotoPage,
8633
8697
  setPageSize = _useReactTable.setPageSize,
8634
- instance = _objectWithoutPropertiesLoose(_useReactTable, _excluded2$8);
8698
+ instance = _objectWithoutPropertiesLoose(_useReactTable, _excluded2$7);
8635
8699
 
8636
8700
  useTablePaginationListener(disablePagination, onPaginate, state);
8637
8701
  useTableSortingListener(data, sortedRows, onSort, !!manualSorting, state);
@@ -8935,7 +8999,7 @@ PaginatedTable.Group = function () {
8935
8999
  };
8936
9000
 
8937
9001
  var _excluded$N = ["height"],
8938
- _excluded2$9 = ["emptyStateRenderer", "length", "loadMore"];
9002
+ _excluded2$8 = ["emptyStateRenderer", "length", "loadMore"];
8939
9003
  var ROW_HEIGHT = 40;
8940
9004
  var VariableRow = /*#__PURE__*/React__default.memo(function (_ref) {
8941
9005
  var data = _ref.data,
@@ -9003,7 +9067,7 @@ var WindowedTable = /*#__PURE__*/React__default.forwardRef(function WindowedTabl
9003
9067
  emptyStateRenderer = _props$emptyStateRend === void 0 ? DefaultEmptyState : _props$emptyStateRend,
9004
9068
  length = props.length,
9005
9069
  loadMore = props.loadMore,
9006
- otherProps = _objectWithoutPropertiesLoose(props, _excluded2$9);
9070
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$8);
9007
9071
 
9008
9072
  var _useTable = useTable(_extends({}, otherProps, {
9009
9073
  windowed: true
@@ -9308,8 +9372,8 @@ var useTableRowCreation = function useTableRowCreation(data, tableRef) {
9308
9372
  };
9309
9373
 
9310
9374
  var _excluded$O = ["id", "defaultId", "children", "onChange", "orientation"],
9311
- _excluded2$a = ["id", "disabled"],
9312
- _excluded3$1 = ["id"];
9375
+ _excluded2$9 = ["id", "disabled"],
9376
+ _excluded3 = ["id"];
9313
9377
  var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
9314
9378
  var id = props.id,
9315
9379
  defaultId = props.defaultId,
@@ -9343,7 +9407,7 @@ var TabList = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9343
9407
  var TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9344
9408
  var id = props.id,
9345
9409
  disabled = props.disabled,
9346
- otherProps = _objectWithoutPropertiesLoose(props, _excluded2$a);
9410
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$9);
9347
9411
 
9348
9412
  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' : 'cursor-pointer rounded-t hover:border-grey-light hover:text-black active:yt-focus active:border-blue focus:yt-focus focus:border-blue', props.className);
9349
9413
  return React.createElement(TabsPrimitive.Trigger, Object.assign({}, otherProps, {
@@ -9358,7 +9422,7 @@ var TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9358
9422
  });
9359
9423
  var TabContent = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9360
9424
  var id = props.id,
9361
- otherProps = _objectWithoutPropertiesLoose(props, _excluded3$1);
9425
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded3);
9362
9426
 
9363
9427
  var className = cn('yt-tab__panel outline-none', props.className);
9364
9428
  return React.createElement(TabsPrimitive.Content, Object.assign({}, otherProps, {
@@ -9882,6 +9946,7 @@ var useOnClickOutside = function useOnClickOutside(ref, callback) {
9882
9946
  };
9883
9947
 
9884
9948
  exports.Accordion = Accordion;
9949
+ exports.Backdrop = Backdrop;
9885
9950
  exports.Badge = Badge;
9886
9951
  exports.Banner = Banner;
9887
9952
  exports.Button = Button$1;