@economic/taco 0.0.32-alpha.0 → 0.0.33-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.
@@ -3383,7 +3383,7 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
3383
3383
  });
3384
3384
 
3385
3385
  const getButtonClasses = () => {
3386
- return 'min-h-[theme(spacing.8)] min-w-[theme(spacing.8)] h-max inline-flex items-center justify-center border';
3386
+ return 'min-h-[theme(spacing.8)] min-w-[theme(spacing.8)] gap-1 h-max inline-flex items-center justify-center border';
3387
3387
  };
3388
3388
  const getAppearanceClasses = (value, icon = false) => {
3389
3389
  switch (value) {
@@ -3878,7 +3878,7 @@ const ToastProvider = ({
3878
3878
  };
3879
3879
  const useToast = () => React.useContext(ToastContext);
3880
3880
 
3881
- const defaultLocalisationTexts = {
3881
+ var defaultLocalisationTexts = {
3882
3882
  calendar: {
3883
3883
  months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
3884
3884
  weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
@@ -3953,30 +3953,35 @@ const defaultLocalisationTexts = {
3953
3953
  inputLabel: 'Search...'
3954
3954
  }
3955
3955
  };
3956
- const defaultLocalizationContext = {
3956
+ var defaultLocalizationContext = {
3957
3957
  locale: 'en-GB',
3958
3958
  texts: defaultLocalisationTexts,
3959
3959
  formatting: {
3960
3960
  date: 'dd.mm.yy'
3961
3961
  }
3962
3962
  };
3963
- const Context = /*#__PURE__*/React.createContext({
3963
+ var Context = /*#__PURE__*/React.createContext({
3964
3964
  localization: defaultLocalizationContext
3965
3965
  });
3966
- const Provider = props => {
3967
- const {
3968
- children,
3969
- localization = defaultLocalizationContext
3970
- } = props;
3971
- const value = React.useMemo(() => ({
3972
- localization
3973
- }), [localization]);
3966
+ var Provider = function Provider(props) {
3967
+ var children = props.children,
3968
+ _props$localization = props.localization,
3969
+ localization = _props$localization === void 0 ? defaultLocalizationContext : _props$localization;
3970
+ var value = React.useMemo(function () {
3971
+ return {
3972
+ localization: localization
3973
+ };
3974
+ }, [localization]);
3974
3975
  return React.createElement(Context.Provider, {
3975
3976
  value: value
3976
3977
  }, React.createElement(ToastProvider, null, children));
3977
3978
  };
3978
- const useTaco = () => React.useContext(Context);
3979
- const useLocalization = () => useTaco().localization;
3979
+ var useTaco = function useTaco() {
3980
+ return React.useContext(Context);
3981
+ };
3982
+ var useLocalization = function useLocalization() {
3983
+ return useTaco().localization;
3984
+ };
3980
3985
 
3981
3986
  var _excluded$5 = ["onChange", "value"];
3982
3987
 
@@ -5340,18 +5345,19 @@ function mergeRefs(refs) {
5340
5345
  };
5341
5346
  }
5342
5347
 
5343
- const PopoverContext = /*#__PURE__*/React.createContext({
5348
+ var _excluded$9 = ["children", "trigger"];
5349
+ var PopoverContext = /*#__PURE__*/React.createContext({
5344
5350
  props: {},
5345
5351
  ref: null
5346
5352
  });
5347
- const Trigger$1 = /*#__PURE__*/React.forwardRef(function PopoverTrigger(props, ref) {
5353
+ var Trigger$1 = /*#__PURE__*/React.forwardRef(function PopoverTrigger(props, ref) {
5348
5354
  var _props$children;
5349
5355
 
5350
- const context = React.useContext(PopoverContext);
5351
- let children = props.children;
5356
+ var context = React.useContext(PopoverContext);
5357
+ var children = props.children;
5352
5358
 
5353
5359
  if (React.isValidElement(props.children) && typeof ((_props$children = props.children) === null || _props$children === void 0 ? void 0 : _props$children.type) === 'function') {
5354
- 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`);
5360
+ 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");
5355
5361
  children = React.createElement("span", null, props.children);
5356
5362
  }
5357
5363
 
@@ -5361,22 +5367,22 @@ const Trigger$1 = /*#__PURE__*/React.forwardRef(function PopoverTrigger(props, r
5361
5367
  asChild: true
5362
5368
  }));
5363
5369
  });
5364
- const RenderPropWrapper = /*#__PURE__*/React.forwardRef(function RenderPropWrapper({
5365
- children,
5366
- onClick
5367
- }, ref) {
5368
- const close = () => {
5370
+ var RenderPropWrapper = /*#__PURE__*/React.forwardRef(function RenderPropWrapper(_ref, ref) {
5371
+ var children = _ref.children,
5372
+ onClick = _ref.onClick;
5373
+
5374
+ var close = function close() {
5369
5375
  onClick(new CustomEvent('hide'));
5370
5376
  };
5371
5377
 
5372
5378
  return children({
5373
- close,
5374
- ref
5379
+ close: close,
5380
+ ref: ref
5375
5381
  });
5376
5382
  });
5377
- const Content$1 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, ref) {
5378
- const className = cn('bg-white focus:border-blue-light', props.className);
5379
- let output;
5383
+ var Content$1 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, ref) {
5384
+ var className = cn('bg-white focus:border-blue-light', props.className);
5385
+ var output;
5380
5386
 
5381
5387
  if (typeof props.children === 'function') {
5382
5388
  output = React.createElement(PopoverPrimitive.Close, {
@@ -5394,20 +5400,23 @@ const Content$1 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, r
5394
5400
  className: "text-white"
5395
5401
  }));
5396
5402
  });
5397
- const Close$1 = /*#__PURE__*/React.forwardRef((props, ref) => React.createElement(PopoverPrimitive.Close, Object.assign({}, props, {
5398
- ref: ref,
5399
- asChild: true
5400
- })));
5401
- const Popover = /*#__PURE__*/React.forwardRef(function Popover(props, ref) {
5402
- const {
5403
- children,
5404
- trigger,
5405
- ...otherProps
5406
- } = props;
5407
- const context = React.useMemo(() => ({
5408
- props: otherProps,
5409
- ref
5410
- }), [otherProps]);
5403
+ var Close$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
5404
+ return React.createElement(PopoverPrimitive.Close, Object.assign({}, props, {
5405
+ ref: ref,
5406
+ asChild: true
5407
+ }));
5408
+ });
5409
+ var Popover = /*#__PURE__*/React.forwardRef(function Popover(props, ref) {
5410
+ var children = props.children,
5411
+ trigger = props.trigger,
5412
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$9);
5413
+
5414
+ var context = React.useMemo(function () {
5415
+ return {
5416
+ props: otherProps,
5417
+ ref: ref
5418
+ };
5419
+ }, [otherProps]);
5411
5420
  return React.createElement(PopoverContext.Provider, {
5412
5421
  value: context
5413
5422
  }, React.createElement(PopoverPrimitive.Root, null, trigger && React.createElement(Trigger$1, null, trigger), children));
@@ -5416,7 +5425,7 @@ Popover.Trigger = Trigger$1;
5416
5425
  Popover.Content = Content$1;
5417
5426
  Popover.Close = Close$1;
5418
5427
 
5419
- var _excluded$9 = ["className", "onReset", "style", "shortcuts", "shortcutsText"];
5428
+ var _excluded$a = ["className", "onReset", "style", "shortcuts", "shortcutsText"];
5420
5429
  var Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref) {
5421
5430
  var _input$disabled;
5422
5431
 
@@ -5425,7 +5434,7 @@ var Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref) {
5425
5434
  style = props.style,
5426
5435
  shortcuts = props.shortcuts,
5427
5436
  shortcutsText = props.shortcutsText,
5428
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$9);
5437
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$a);
5429
5438
 
5430
5439
  var _useDatepicker = useDatepicker(otherProps, ref),
5431
5440
  calendar = _useDatepicker.calendar,
@@ -5720,7 +5729,7 @@ const Extra = /*#__PURE__*/React.forwardRef(function DialogExtra(props, ref) {
5720
5729
  });
5721
5730
  Extra.displayName = 'DialogExtra';
5722
5731
 
5723
- var _excluded$a = ["children", "closeOnEscape", "defaultOpen", "draggable", "onChange", "onClose", "open", "showCloseButton", "size", "trigger"];
5732
+ var _excluded$b = ["children", "closeOnEscape", "defaultOpen", "draggable", "onChange", "onClose", "open", "showCloseButton", "size", "trigger"];
5724
5733
 
5725
5734
  var useSeparatedChildren = function useSeparatedChildren(initialChildren) {
5726
5735
  return React.useMemo(function () {
@@ -5757,7 +5766,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function Dialog(props, ref) {
5757
5766
  _props$size = props.size,
5758
5767
  size = _props$size === void 0 ? 'sm' : _props$size,
5759
5768
  trigger = props.trigger,
5760
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$a);
5769
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$b);
5761
5770
 
5762
5771
  var _useSeparatedChildren = useSeparatedChildren(initialChildren),
5763
5772
  children = _useSeparatedChildren[0],
@@ -5807,14 +5816,14 @@ Dialog.Extra = Extra;
5807
5816
  Dialog.Drawer = Drawer;
5808
5817
  Dialog.Close = Close$2;
5809
5818
 
5810
- var _excluded$b = ["disabled", "children", "invalid", "message"];
5819
+ var _excluded$c = ["disabled", "children", "invalid", "message"];
5811
5820
  var Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
5812
5821
  var disabled = props.disabled,
5813
5822
  children = props.children,
5814
5823
  _props$invalid = props.invalid,
5815
5824
  invalid = _props$invalid === void 0 ? false : _props$invalid,
5816
5825
  message = props.message,
5817
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$b);
5826
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$c);
5818
5827
 
5819
5828
  var className = cn('flex flex-col font-bold text-xs leading-loose pb-4 min-h-[theme(spacing.18)]', {
5820
5829
  'text-grey-dark': disabled
@@ -5834,11 +5843,11 @@ var Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
5834
5843
  }, message));
5835
5844
  });
5836
5845
 
5837
- var _excluded$c = ["horizontal"];
5846
+ var _excluded$d = ["horizontal"];
5838
5847
  var Form = /*#__PURE__*/React.forwardRef(function Form(props, ref) {
5839
5848
  var _props$horizontal = props.horizontal,
5840
5849
  horizontal = _props$horizontal === void 0 ? false : _props$horizontal,
5841
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$c);
5850
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$d);
5842
5851
 
5843
5852
  var className = cn('yt-form', {
5844
5853
  'yt-form--horizontal flex flex-wrap': horizontal
@@ -5850,11 +5859,11 @@ var Form = /*#__PURE__*/React.forwardRef(function Form(props, ref) {
5850
5859
  }));
5851
5860
  });
5852
5861
 
5853
- var _excluded$d = ["as"];
5862
+ var _excluded$e = ["as"];
5854
5863
  var Group = /*#__PURE__*/React.forwardRef(function Group(props, ref) {
5855
5864
  var _props$as = props.as,
5856
5865
  Tag = _props$as === void 0 ? 'span' : _props$as,
5857
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$d);
5866
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$e);
5858
5867
 
5859
5868
  var className = cn('flex ', props.className);
5860
5869
  return React.createElement(Tag, Object.assign({}, otherProps, {
@@ -5864,7 +5873,7 @@ var Group = /*#__PURE__*/React.forwardRef(function Group(props, ref) {
5864
5873
  }));
5865
5874
  });
5866
5875
 
5867
- var _excluded$e = ["anchor", "children", "defaultOpen"];
5876
+ var _excluded$f = ["anchor", "children", "defaultOpen"];
5868
5877
  var HangerContext = /*#__PURE__*/React.createContext({
5869
5878
  props: {},
5870
5879
  ref: null
@@ -5921,7 +5930,7 @@ var Hanger = /*#__PURE__*/React.forwardRef(function Hanger(props, ref) {
5921
5930
  children = props.children,
5922
5931
  _props$defaultOpen = props.defaultOpen,
5923
5932
  defaultOpen = _props$defaultOpen === void 0 ? true : _props$defaultOpen,
5924
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$e);
5933
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$f);
5925
5934
 
5926
5935
  var context = React.useMemo(function () {
5927
5936
  return {
@@ -6293,49 +6302,49 @@ const useMultiListbox = ({
6293
6302
  };
6294
6303
  };
6295
6304
 
6296
- const Listbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6297
- const {
6298
- className: externalClassName,
6299
- ...otherProps
6300
- } = props;
6301
- const {
6302
- list,
6303
- input
6304
- } = useListbox(otherProps, ref);
6305
- const className = cn('bg-white inline-flex relative w-full', externalClassName);
6305
+ var _excluded$g = ["className"],
6306
+ _excluded2$1 = ["className"];
6307
+ var Listbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6308
+ var externalClassName = props.className,
6309
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$g);
6310
+
6311
+ var _useListbox = useListbox(otherProps, ref),
6312
+ list = _useListbox.list,
6313
+ input = _useListbox.input;
6314
+
6315
+ var className = cn('bg-white inline-flex relative w-full', externalClassName);
6306
6316
  return React.createElement("span", {
6307
6317
  "data-taco": "listbox",
6308
6318
  className: className
6309
6319
  }, React.createElement(ScrollableList, Object.assign({}, list, {
6310
- style: { ...list.style,
6320
+ style: _extends({}, list.style, {
6311
6321
  maxHeight: 'calc(12rem + 2px)'
6312
6322
  /* (6 * option height) + listbox border */
6313
6323
 
6314
- }
6324
+ })
6315
6325
  })), React.createElement("input", Object.assign({}, input, {
6316
6326
  className: "hidden",
6317
6327
  type: "text"
6318
6328
  })));
6319
6329
  });
6320
- const MultiListbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6321
- const {
6322
- className: externalClassName,
6323
- ...otherProps
6324
- } = props;
6325
- const {
6326
- list,
6327
- input
6328
- } = useMultiListbox(otherProps, ref);
6329
- const className = cn('bg-white inline-flex relative w-full', externalClassName);
6330
+ var MultiListbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6331
+ var externalClassName = props.className,
6332
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$1);
6333
+
6334
+ var _useMultiListbox = useMultiListbox(otherProps, ref),
6335
+ list = _useMultiListbox.list,
6336
+ input = _useMultiListbox.input;
6337
+
6338
+ var className = cn('bg-white inline-flex relative w-full', externalClassName);
6330
6339
  return React.createElement("span", {
6331
6340
  "data-taco": "listbox",
6332
6341
  className: className
6333
6342
  }, React.createElement(ScrollableList, Object.assign({}, list, {
6334
- style: { ...list.style,
6343
+ style: _extends({}, list.style, {
6335
6344
  maxHeight: 'calc(12rem + 2px + 2px)'
6336
6345
  /* (6 * option height) + listbox border + ALL_OPTIONS bottom border */
6337
6346
 
6338
- }
6347
+ })
6339
6348
  })), React.createElement("input", Object.assign({}, input, {
6340
6349
  className: "hidden",
6341
6350
  type: "text"
@@ -6598,26 +6607,34 @@ const Checkbox$1 = props => {
6598
6607
  })), children);
6599
6608
  };
6600
6609
 
6601
- const getRadioGroupItemValueAsString = value => value === null ? '' : String(value);
6602
- const findByValue$1 = (values, valueAsString) => values.find(value => getRadioGroupItemValueAsString(value) === valueAsString);
6603
- const RadioGroupContext = /*#__PURE__*/React.createContext({
6610
+ var _excluded$h = ["children", "value"],
6611
+ _excluded2$2 = ["children", "defaultValue", "disabled", "invalid", "onChange", "orientation", "value"];
6612
+ var getRadioGroupItemValueAsString = function getRadioGroupItemValueAsString(value) {
6613
+ return value === null ? '' : String(value);
6614
+ };
6615
+ var findByValue$1 = function findByValue(values, valueAsString) {
6616
+ return values.find(function (value) {
6617
+ return getRadioGroupItemValueAsString(value) === valueAsString;
6618
+ });
6619
+ };
6620
+ var RadioGroupContext = /*#__PURE__*/React.createContext({
6604
6621
  disabled: false,
6605
6622
  invalid: false
6606
6623
  });
6607
- const RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(props, ref) {
6608
- const context = React.useContext(RadioGroupContext);
6609
- const {
6610
- children,
6611
- value,
6612
- ...otherProps
6613
- } = props;
6614
- const disabled = context.disabled || props.disabled;
6615
- const className = cn('flex flex-shrink-0 self-start items-center justify-center h-4 w-4 mr-2 mt-[0.2rem] rounded-full bg-white border-2 ', {
6624
+ var RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(props, ref) {
6625
+ var context = React.useContext(RadioGroupContext);
6626
+
6627
+ var children = props.children,
6628
+ value = props.value,
6629
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$h);
6630
+
6631
+ var disabled = context.disabled || props.disabled;
6632
+ var className = cn('flex flex-shrink-0 self-start items-center justify-center h-4 w-4 mr-2 mt-[0.2rem] rounded-full bg-white border-2 ', {
6616
6633
  'border-grey-dark focus:border-blue focus:yt-focus aria-checked:bg-blue aria-checked:border-blue': !disabled && !context.invalid,
6617
6634
  'border-grey cursor-not-allowed aria-checked:bg-grey-dark aria-checked:border-grey-dark': disabled,
6618
6635
  'border-red text-red focus:border-red focus:yt-focus-red aria-checked:bg-red aria-checked:border-red': context.invalid && !disabled
6619
6636
  });
6620
- const labelClassName = cn('flex items-center cursor-pointer', {
6637
+ var labelClassName = cn('flex items-center cursor-pointer', {
6621
6638
  'cursor-not-allowed text-grey-dark': disabled
6622
6639
  }, props.className);
6623
6640
  return React.createElement("label", {
@@ -6631,34 +6648,38 @@ const RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(pro
6631
6648
  className: "h-2 w-2 rounded-full bg-white"
6632
6649
  })), children);
6633
6650
  });
6634
- const useRadioGroup = props => {
6635
- const {
6636
- children,
6637
- defaultValue,
6638
- disabled,
6639
- invalid,
6640
- onChange,
6641
- orientation = 'vertical',
6642
- value,
6643
- ...otherProps
6644
- } = props;
6645
- const values = React.useMemo(() => {
6646
- const radioGroupItemValues = [];
6647
- React.Children.forEach(children, child => {
6651
+ var useRadioGroup = function useRadioGroup(props) {
6652
+ var children = props.children,
6653
+ defaultValue = props.defaultValue,
6654
+ disabled = props.disabled,
6655
+ invalid = props.invalid,
6656
+ onChange = props.onChange,
6657
+ _props$orientation = props.orientation,
6658
+ orientation = _props$orientation === void 0 ? 'vertical' : _props$orientation,
6659
+ value = props.value,
6660
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$2);
6661
+
6662
+ var values = React.useMemo(function () {
6663
+ var radioGroupItemValues = [];
6664
+ React.Children.forEach(children, function (child) {
6648
6665
  if (React.isValidElement(child)) {
6649
6666
  radioGroupItemValues.push(child.props.value);
6650
6667
  }
6651
6668
  });
6652
6669
  return radioGroupItemValues;
6653
6670
  }, [children]);
6654
- const context = React.useMemo(() => ({
6655
- disabled: disabled !== null && disabled !== void 0 ? disabled : false,
6656
- invalid: invalid !== null && invalid !== void 0 ? invalid : false
6657
- }), [disabled, invalid]);
6658
- let valueProps;
6671
+ var context = React.useMemo(function () {
6672
+ return {
6673
+ disabled: disabled !== null && disabled !== void 0 ? disabled : false,
6674
+ invalid: invalid !== null && invalid !== void 0 ? invalid : false
6675
+ };
6676
+ }, [disabled, invalid]);
6677
+ var valueProps;
6659
6678
 
6660
6679
  if (onChange !== undefined) {
6661
- const handleChange = value => onChange(findByValue$1(values, value));
6680
+ var handleChange = function handleChange(value) {
6681
+ return onChange(findByValue$1(values, value));
6682
+ };
6662
6683
 
6663
6684
  valueProps = {
6664
6685
  onValueChange: handleChange,
@@ -6671,20 +6692,19 @@ const useRadioGroup = props => {
6671
6692
  }
6672
6693
 
6673
6694
  return {
6674
- context,
6675
- props: { ...otherProps,
6676
- ...valueProps,
6677
- children,
6678
- orientation
6679
- }
6695
+ context: context,
6696
+ props: _extends({}, otherProps, valueProps, {
6697
+ children: children,
6698
+ orientation: orientation
6699
+ })
6680
6700
  };
6681
6701
  };
6682
- const RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
6683
- const {
6684
- context,
6685
- props: otherProps
6686
- } = useRadioGroup(props);
6687
- const className = cn('flex items-start', {
6702
+ var RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
6703
+ var _useRadioGroup = useRadioGroup(props),
6704
+ context = _useRadioGroup.context,
6705
+ otherProps = _useRadioGroup.props;
6706
+
6707
+ var className = cn('flex items-start', {
6688
6708
  'flex-wrap space-x-4': otherProps.orientation === 'horizontal',
6689
6709
  'flex-col space-y-2': otherProps.orientation === 'vertical'
6690
6710
  }, otherProps.className);
@@ -6797,26 +6817,48 @@ const Header = props => {
6797
6817
  }));
6798
6818
  };
6799
6819
 
6800
- const Menu = externalProps => {
6801
- const {
6802
- appearance: externalAppearance,
6803
- children,
6804
- trigger,
6805
- ...props
6806
- } = externalProps;
6807
- const [open, setOpen] = React.useState(false);
6808
- const [appearance, setAppearance] = React.useState(externalAppearance !== null && externalAppearance !== void 0 ? externalAppearance : 'default');
6809
- const [indented, setIndented] = React.useState(false);
6810
- const [minWidth, setMinWidth] = React.useState(undefined);
6811
- const context = React.useMemo(() => ({
6812
- appearance,
6813
- setAppearance: appearance => setAppearance(appearance),
6814
- indented,
6815
- registerIndentation: () => setIndented(true),
6816
- minWidth,
6817
- setMinWidth: width => setMinWidth(width),
6818
- close: () => setOpen(false)
6819
- }), [indented, minWidth, appearance]);
6820
+ var _excluded$i = ["appearance", "children", "trigger"];
6821
+ var Menu = function Menu(externalProps) {
6822
+ var externalAppearance = externalProps.appearance,
6823
+ children = externalProps.children,
6824
+ trigger = externalProps.trigger,
6825
+ props = _objectWithoutPropertiesLoose(externalProps, _excluded$i);
6826
+
6827
+ var _React$useState = React.useState(false),
6828
+ open = _React$useState[0],
6829
+ setOpen = _React$useState[1];
6830
+
6831
+ var _React$useState2 = React.useState(externalAppearance !== null && externalAppearance !== void 0 ? externalAppearance : 'default'),
6832
+ appearance = _React$useState2[0],
6833
+ _setAppearance = _React$useState2[1];
6834
+
6835
+ var _React$useState3 = React.useState(false),
6836
+ indented = _React$useState3[0],
6837
+ setIndented = _React$useState3[1];
6838
+
6839
+ var _React$useState4 = React.useState(undefined),
6840
+ minWidth = _React$useState4[0],
6841
+ _setMinWidth = _React$useState4[1];
6842
+
6843
+ var context = React.useMemo(function () {
6844
+ return {
6845
+ appearance: appearance,
6846
+ setAppearance: function setAppearance(appearance) {
6847
+ return _setAppearance(appearance);
6848
+ },
6849
+ indented: indented,
6850
+ registerIndentation: function registerIndentation() {
6851
+ return setIndented(true);
6852
+ },
6853
+ minWidth: minWidth,
6854
+ setMinWidth: function setMinWidth(width) {
6855
+ return _setMinWidth(width);
6856
+ },
6857
+ close: function close() {
6858
+ return setOpen(false);
6859
+ }
6860
+ };
6861
+ }, [indented, minWidth, appearance]);
6820
6862
  return React.createElement(MenuContext.Provider, {
6821
6863
  value: context
6822
6864
  }, React.createElement(DropdownMenuPrimitive.Root, Object.assign({}, props, {
@@ -6936,20 +6978,25 @@ const useDropTarget = onDrop => {
6936
6978
  return [isDraggedOver, props];
6937
6979
  };
6938
6980
 
6939
- const Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
6940
- const {
6941
- active,
6942
- children,
6943
- onDrop,
6944
- postfix,
6945
- prefix,
6946
- role,
6947
- ...otherProps
6948
- } = props;
6949
- const proxyRef = useProxiedRef(ref);
6950
- const [isDraggedOver, dropTargetProps] = useDropTarget(onDrop);
6951
- const isTreeitem = role === 'treeitem';
6952
- const className = cn('yt-navigation__item cursor-pointer', {
6981
+ var _excluded$j = ["active", "children", "onDrop", "postfix", "prefix", "role"],
6982
+ _excluded2$3 = ["children"];
6983
+ var Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
6984
+ var active = props.active,
6985
+ children = props.children,
6986
+ onDrop = props.onDrop,
6987
+ postfix = props.postfix,
6988
+ prefix = props.prefix,
6989
+ role = props.role,
6990
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$j);
6991
+
6992
+ var proxyRef = useProxiedRef(ref);
6993
+
6994
+ var _useDropTarget = useDropTarget(onDrop),
6995
+ isDraggedOver = _useDropTarget[0],
6996
+ dropTargetProps = _useDropTarget[1];
6997
+
6998
+ var isTreeitem = role === 'treeitem';
6999
+ var className = cn('yt-navigation__item cursor-pointer', {
6953
7000
  'w-full mb-px py-1 px-3 flex items-center hover:bg-grey-dark': isTreeitem,
6954
7001
  'bg-white w-full h-10 px-3 flex-shrink-0 flex items-center justify-between cursor-pointer': !isTreeitem,
6955
7002
  'yt-navigation__item--active': active && !isDraggedOver,
@@ -6957,7 +7004,7 @@ const Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
6957
7004
  'yt-navigation__item--dropping bg-blue': isDraggedOver
6958
7005
  }, props.className);
6959
7006
 
6960
- const handleClick = event => {
7007
+ var handleClick = function handleClick(event) {
6961
7008
  if (event.target instanceof HTMLAnchorElement || event.target instanceof HTMLButtonElement) {
6962
7009
  return;
6963
7010
  }
@@ -6980,19 +7027,19 @@ const Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
6980
7027
  className: "yt-navigation__item__postfix ml-1"
6981
7028
  }, postfix));
6982
7029
  });
6983
- const Panel = /*#__PURE__*/React__default.forwardRef(function Panel(props, ref) {
7030
+ var Panel = /*#__PURE__*/React__default.forwardRef(function Panel(props, ref) {
6984
7031
  return React__default.createElement("div", Object.assign({}, props, {
6985
7032
  className: cn('w-full bg-white p-3', props.className),
6986
7033
  ref: ref
6987
7034
  }));
6988
7035
  });
6989
- const MenuGroup = /*#__PURE__*/React__default.forwardRef(function MenuGroup(props, ref) {
6990
- const className = cn('flex-shrink-0 space-y-1 outline-none', {
7036
+ var MenuGroup = /*#__PURE__*/React__default.forwardRef(function MenuGroup(props, ref) {
7037
+ var className = cn('flex-shrink-0 space-y-1 outline-none', {
6991
7038
  'bg-white pb-2': props.fixed
6992
7039
  }, props.className);
6993
7040
 
6994
- const title = expanded => {
6995
- const className = cn('bg-white h-10 pl-3 pr-1 flex items-center justify-between w-full', {
7041
+ var title = function title(expanded) {
7042
+ var className = cn('bg-white h-10 pl-3 pr-1 flex items-center justify-between w-full', {
6996
7043
  'mb-1': expanded,
6997
7044
  'cursor-pointer hover:text-blue': !props.fixed
6998
7045
  });
@@ -7009,14 +7056,16 @@ const MenuGroup = /*#__PURE__*/React__default.forwardRef(function MenuGroup(prop
7009
7056
  ref: ref
7010
7057
  }));
7011
7058
  });
7012
- const Menu$1 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref) {
7013
- const scrollableAreas = React__default.useMemo(() => {
7014
- const scrollableAreas = [];
7015
- React__default.Children.toArray(props.children).filter(child => !!child).map(child => {
7059
+ var Menu$1 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref) {
7060
+ var scrollableAreas = React__default.useMemo(function () {
7061
+ var scrollableAreas = [];
7062
+ React__default.Children.toArray(props.children).filter(function (child) {
7063
+ return !!child;
7064
+ }).map(function (child) {
7016
7065
  if (child.props.fixed) {
7017
7066
  scrollableAreas.push(child);
7018
7067
  } else {
7019
- const x = scrollableAreas[scrollableAreas.length - 1];
7068
+ var x = scrollableAreas[scrollableAreas.length - 1];
7020
7069
 
7021
7070
  if (Array.isArray(x)) {
7022
7071
  x.push(child);
@@ -7030,18 +7079,19 @@ const Menu$1 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref)
7030
7079
  return React__default.createElement(Treeview, Object.assign({}, props, {
7031
7080
  className: cn('divide-grey-light flex flex-grow flex-col divide-y-2 overflow-y-auto', props.className),
7032
7081
  ref: ref
7033
- }), scrollableAreas.map((area, i) => Array.isArray(area) ? React__default.createElement("div", {
7034
- className: "divide-grey-light flex h-0 flex-auto flex-shrink-0 flex-grow flex-col divide-y-2 overflow-y-auto",
7035
- key: i
7036
- }, area) : area));
7082
+ }), scrollableAreas.map(function (area, i) {
7083
+ return Array.isArray(area) ? React__default.createElement("div", {
7084
+ className: "divide-grey-light flex h-0 flex-auto flex-shrink-0 flex-grow flex-col divide-y-2 overflow-y-auto",
7085
+ key: i
7086
+ }, area) : area;
7087
+ }));
7037
7088
  });
7038
7089
  Menu$1.Group = MenuGroup;
7039
- const Navigation = /*#__PURE__*/React__default.forwardRef(function Navigation(props, ref) {
7040
- const {
7041
- children,
7042
- ...otherProps
7043
- } = props;
7044
- const className = cn('h-full flex flex-col bg-grey-light divide-y-2 divide-grey-light', props.className);
7090
+ var Navigation = /*#__PURE__*/React__default.forwardRef(function Navigation(props, ref) {
7091
+ var children = props.children,
7092
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$3);
7093
+
7094
+ var className = cn('h-full flex flex-col bg-grey-light divide-y-2 divide-grey-light', props.className);
7045
7095
  return React__default.createElement("div", Object.assign({}, otherProps, {
7046
7096
  className: className,
7047
7097
  "data-taco": "navigation",
@@ -7136,8 +7186,6 @@ const useSelect = ({
7136
7186
  setInputValueByRef$1(internalInputRef.current, value);
7137
7187
  } else if (value !== undefined && data.some(option => option.value === value)) {
7138
7188
  setInputValueByRef$1(internalInputRef.current, value);
7139
- } else if (data.length && defaultValue === undefined) {
7140
- setInputValueByRef$1(internalInputRef.current, data[0].value);
7141
7189
  }
7142
7190
  }, []); // event handlers
7143
7191
 
@@ -7282,52 +7330,54 @@ const useSelect = ({
7282
7330
  };
7283
7331
  };
7284
7332
 
7285
- const BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
7286
- const {
7287
- autoFocus,
7288
- className: externalClassName,
7289
- highlighted,
7290
- style,
7291
- ...otherProps
7292
- } = props;
7293
- const {
7294
- button,
7295
- listbox,
7296
- popover,
7297
- input,
7298
- text,
7299
- more = 0
7300
- } = useSelect(otherProps, ref);
7301
- const internalRef = React.useRef(null);
7302
- const selectDimensions = useBoundingClientRectListener(internalRef);
7303
- const className = cn('inline-flex relative w-full', {
7333
+ var _excluded$k = ["autoFocus", "className", "highlighted", "style"],
7334
+ _excluded2$4 = ["editable"];
7335
+ var BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
7336
+ var autoFocus = props.autoFocus,
7337
+ externalClassName = props.className,
7338
+ style = props.style,
7339
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$k);
7340
+
7341
+ var _useSelect = useSelect(otherProps, ref),
7342
+ button = _useSelect.button,
7343
+ listbox = _useSelect.listbox,
7344
+ popover = _useSelect.popover,
7345
+ input = _useSelect.input,
7346
+ text = _useSelect.text,
7347
+ _useSelect$more = _useSelect.more,
7348
+ more = _useSelect$more === void 0 ? 0 : _useSelect$more;
7349
+
7350
+ var internalRef = React.useRef(null);
7351
+ var selectDimensions = useBoundingClientRectListener(internalRef);
7352
+ var className = cn('inline-flex relative w-full', {
7304
7353
  'yt-select--readonly': props.readOnly
7305
7354
  }, externalClassName);
7306
- const inputClassname = cn(getInputClasses(props), 'h-8 text-left pr-0', {
7355
+ var inputClassname = cn(getInputClasses(props), 'h-8 text-left pr-0', {
7307
7356
  'border-blue': popover.open
7308
7357
  });
7309
- React.useEffect(() => {
7358
+ React.useEffect(function () {
7310
7359
  if (autoFocus && internalRef.current) {
7311
7360
  internalRef.current.focus();
7312
7361
  }
7313
7362
  }, []);
7314
7363
 
7315
- const renderMultiSelection = () => {
7364
+ var renderMultiSelection = function renderMultiSelection() {
7316
7365
  return React.createElement(React.Fragment, null, React.createElement("span", {
7317
7366
  className: "flex-grow truncate text-left"
7318
7367
  }, text), more > 0 && React.createElement(Badge, {
7319
7368
  className: "ml-2"
7320
- }, `+${more}`));
7369
+ }, "+" + more));
7321
7370
  };
7322
7371
 
7323
- const commonListboxProps = { ...listbox,
7372
+ var commonListboxProps = _extends({}, listbox, {
7324
7373
  className: 'w-auto',
7325
7374
  invalid: undefined,
7326
7375
  style: {
7327
7376
  minWidth: selectDimensions === null || selectDimensions === void 0 ? void 0 : selectDimensions.width
7328
7377
  },
7329
7378
  tabIndex: popover.open ? 0 : -1
7330
- };
7379
+ });
7380
+
7331
7381
  return React.createElement("span", {
7332
7382
  className: className,
7333
7383
  "data-taco": "select",
@@ -7350,11 +7400,9 @@ const BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref)
7350
7400
  type: "text"
7351
7401
  }))));
7352
7402
  });
7353
- const Select = /*#__PURE__*/React.forwardRef(function Select(props, ref) {
7354
- const {
7355
- editable,
7356
- ...otherProps
7357
- } = props;
7403
+ var Select = /*#__PURE__*/React.forwardRef(function Select(props, ref) {
7404
+ var editable = props.editable,
7405
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$4);
7358
7406
 
7359
7407
  if (editable) {
7360
7408
  return React.createElement(Combobox, Object.assign({}, otherProps, {
@@ -7425,41 +7473,47 @@ const usePagination = (initialPageIndex = 0, initialPageSize = 10) => {
7425
7473
  };
7426
7474
  };
7427
7475
 
7428
- const getShowingLabel = (length, pageIndex, pageSize, texts) => {
7429
- const minItemIndex = pageIndex * pageSize + 1;
7430
- const maxItemIndex = (pageIndex + 1) * pageSize;
7476
+ var _excluded$l = ["length", "pageIndex", "pageSize", "pageSizes", "setPageIndex", "setPageSize", "showPageControls", "showPageNumbers", "showPageSize", "dangerouslyHijackGlobalKeyboardNavigation"];
7477
+
7478
+ var getShowingLabel = function getShowingLabel(length, pageIndex, pageSize, texts) {
7479
+ var minItemIndex = pageIndex * pageSize + 1;
7480
+ var maxItemIndex = (pageIndex + 1) * pageSize;
7431
7481
  return texts.pagination.showingXofYofTotal.replace('[X]', length === 0 ? '0' : String(minItemIndex)).replace('[Y]', String(maxItemIndex > length ? length : maxItemIndex)).replace('[total]', String(length));
7432
7482
  };
7433
7483
 
7434
- const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
7435
- const {
7436
- length,
7437
- pageIndex,
7438
- pageSize,
7439
- pageSizes = [10, 25, 50, 100, 500],
7440
- setPageIndex,
7441
- setPageSize,
7442
- showPageControls = true,
7443
- showPageNumbers = true,
7444
- showPageSize = true,
7445
- dangerouslyHijackGlobalKeyboardNavigation = false,
7446
- ...otherProps
7447
- } = props;
7448
- const {
7449
- texts
7450
- } = useLocalization();
7451
- const maxPageIndex = Math.ceil(length / pageSize) - 1;
7452
- const showShortcutTexts = dangerouslyHijackGlobalKeyboardNavigation;
7484
+ var Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
7485
+ var length = props.length,
7486
+ pageIndex = props.pageIndex,
7487
+ pageSize = props.pageSize,
7488
+ _props$pageSizes = props.pageSizes,
7489
+ pageSizes = _props$pageSizes === void 0 ? [10, 25, 50, 100, 500] : _props$pageSizes,
7490
+ setPageIndex = props.setPageIndex,
7491
+ setPageSize = props.setPageSize,
7492
+ _props$showPageContro = props.showPageControls,
7493
+ showPageControls = _props$showPageContro === void 0 ? true : _props$showPageContro,
7494
+ _props$showPageNumber = props.showPageNumbers,
7495
+ showPageNumbers = _props$showPageNumber === void 0 ? true : _props$showPageNumber,
7496
+ _props$showPageSize = props.showPageSize,
7497
+ showPageSize = _props$showPageSize === void 0 ? true : _props$showPageSize,
7498
+ _props$dangerouslyHij = props.dangerouslyHijackGlobalKeyboardNavigation,
7499
+ dangerouslyHijackGlobalKeyboardNavigation = _props$dangerouslyHij === void 0 ? false : _props$dangerouslyHij,
7500
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$l);
7501
+
7502
+ var _useLocalization = useLocalization(),
7503
+ texts = _useLocalization.texts;
7504
+
7505
+ var maxPageIndex = Math.ceil(length / pageSize) - 1;
7506
+ var showShortcutTexts = dangerouslyHijackGlobalKeyboardNavigation;
7453
7507
  usePaginationShortcuts({
7454
- setPageIndex,
7455
- maxPageIndex,
7456
- pageIndex,
7457
- dangerouslyHijackGlobalKeyboardNavigation
7508
+ setPageIndex: setPageIndex,
7509
+ maxPageIndex: maxPageIndex,
7510
+ pageIndex: pageIndex,
7511
+ dangerouslyHijackGlobalKeyboardNavigation: dangerouslyHijackGlobalKeyboardNavigation
7458
7512
  });
7459
- const pageCount = Math.ceil(length / pageSize);
7460
- const canPreviousPage = pageIndex > 0;
7461
- const canNextPage = pageIndex < pageCount - 1;
7462
- const className = cn('inline-flex relative justify-between items-center', props.className);
7513
+ var pageCount = Math.ceil(length / pageSize);
7514
+ var canPreviousPage = pageIndex > 0;
7515
+ var canNextPage = pageIndex < pageCount - 1;
7516
+ var className = cn('inline-flex relative justify-between items-center', props.className);
7463
7517
  return React.createElement("div", Object.assign({}, otherProps, {
7464
7518
  className: className,
7465
7519
  "data-taco": "pagination",
@@ -7469,11 +7523,13 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7469
7523
  }, getShowingLabel(length, pageIndex, pageSize, texts), React.createElement(Select, {
7470
7524
  "aria-label": texts.pagination.pageSize,
7471
7525
  className: "ml-4 !w-20",
7472
- data: pageSizes.map(pageSize => ({
7473
- text: String(pageSize),
7474
- value: pageSize
7475
- })),
7476
- onChange: event => {
7526
+ data: pageSizes.map(function (pageSize) {
7527
+ return {
7528
+ text: String(pageSize),
7529
+ value: pageSize
7530
+ };
7531
+ }),
7532
+ onChange: function onChange(event) {
7477
7533
  setPageIndex(0);
7478
7534
  setPageSize(Number(event.target.value));
7479
7535
  },
@@ -7485,14 +7541,18 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7485
7541
  appearance: "default",
7486
7542
  disabled: !canPreviousPage,
7487
7543
  icon: "arrow-start",
7488
- onClick: () => setPageIndex(0),
7544
+ onClick: function onClick() {
7545
+ return setPageIndex(0);
7546
+ },
7489
7547
  "aria-label": showShortcutTexts ? texts.pagination.actions.firstPageWithShortcut : texts.pagination.actions.firstPage,
7490
7548
  tooltip: showShortcutTexts ? texts.pagination.actions.firstPageWithShortcut : texts.pagination.actions.firstPage
7491
7549
  }), React.createElement(IconButton, {
7492
7550
  appearance: "default",
7493
7551
  disabled: !canPreviousPage,
7494
7552
  icon: "arrow-left",
7495
- onClick: () => setPageIndex(pageIndex - 1),
7553
+ onClick: function onClick() {
7554
+ return setPageIndex(pageIndex - 1);
7555
+ },
7496
7556
  "aria-label": showShortcutTexts ? texts.pagination.actions.previousPageWithShortcut : texts.pagination.actions.previousPage,
7497
7557
  tooltip: showShortcutTexts ? texts.pagination.actions.previousPageWithShortcut : texts.pagination.actions.previousPage
7498
7558
  }), showPageNumbers && pageCount > 0 && React.createElement(PageNumbers, {
@@ -7503,36 +7563,43 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7503
7563
  appearance: "default",
7504
7564
  disabled: !canNextPage,
7505
7565
  icon: "arrow-right",
7506
- onClick: () => setPageIndex(pageIndex + 1),
7566
+ onClick: function onClick() {
7567
+ return setPageIndex(pageIndex + 1);
7568
+ },
7507
7569
  "aria-label": showShortcutTexts ? texts.pagination.actions.nextPageWithShortcut : texts.pagination.actions.nextPage,
7508
7570
  tooltip: showShortcutTexts ? texts.pagination.actions.nextPageWithShortcut : texts.pagination.actions.nextPage
7509
7571
  }), React.createElement(IconButton, {
7510
7572
  appearance: "default",
7511
7573
  disabled: !canNextPage,
7512
7574
  icon: "arrow-end",
7513
- onClick: () => setPageIndex(pageCount - 1),
7575
+ onClick: function onClick() {
7576
+ return setPageIndex(pageCount - 1);
7577
+ },
7514
7578
  "aria-label": showShortcutTexts ? texts.pagination.actions.lastPageWithShortcut : texts.pagination.actions.lastPage,
7515
7579
  tooltip: showShortcutTexts ? texts.pagination.actions.lastPageWithShortcut : texts.pagination.actions.lastPage
7516
7580
  })));
7517
7581
  });
7518
7582
 
7519
- const Progress = ({
7520
- duration = undefined,
7521
- ...props
7522
- }) => {
7523
- let style;
7583
+ var _excluded$m = ["duration"];
7584
+ var Progress = function Progress(_ref) {
7585
+ var _cn;
7586
+
7587
+ var _ref$duration = _ref.duration,
7588
+ duration = _ref$duration === void 0 ? undefined : _ref$duration,
7589
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
7590
+
7591
+ var style;
7524
7592
 
7525
7593
  if (duration) {
7526
7594
  style = {
7527
- animationDuration: `${duration}ms`
7595
+ animationDuration: duration + "ms"
7528
7596
  };
7529
7597
  }
7530
7598
 
7531
- const className = cn('bg-grey-light rounded block h-1 overflow-hidden w-full', props.className);
7532
- const progressClassName = cn('yt-progress__bar block h-1', {
7533
- "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,
7534
- [`w-0 bg-grey-dark animate-[progress_linear]`]: duration
7535
- });
7599
+ var className = cn('bg-grey-light rounded block h-1 overflow-hidden w-full', props.className);
7600
+ var progressClassName = cn('yt-progress__bar block h-1', (_cn = {
7601
+ "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
7602
+ }, _cn["w-0 bg-grey-dark animate-[progress_linear]"] = duration, _cn));
7536
7603
  return React__default.createElement("span", Object.assign({}, props, {
7537
7604
  "data-taco": "progress",
7538
7605
  className: className
@@ -9424,10 +9491,10 @@ var useOnClickOutside = function useOnClickOutside(ref, callback) {
9424
9491
  }, [ref, callback]);
9425
9492
  };
9426
9493
 
9427
- var _excluded$f = ["onSearch"];
9494
+ var _excluded$n = ["onSearch"];
9428
9495
  var SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput(_ref, ref) {
9429
9496
  var onSearch = _ref.onSearch,
9430
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
9497
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
9431
9498
 
9432
9499
  var _useLocalization = useLocalization(),
9433
9500
  texts = _useLocalization.texts;