@economic/taco 1.1.9-alpha.1 → 1.1.10-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 (57) hide show
  1. package/dist/esm/components/Card/Card.js +1 -0
  2. package/dist/esm/components/Card/Card.js.map +1 -1
  3. package/dist/esm/components/HoverCard/HoverCard.js +9 -8
  4. package/dist/esm/components/HoverCard/HoverCard.js.map +1 -1
  5. package/dist/esm/components/Icon/Icon.js +8 -7
  6. package/dist/esm/components/Icon/Icon.js.map +1 -1
  7. package/dist/esm/components/IconButton/IconButton.js +11 -9
  8. package/dist/esm/components/IconButton/IconButton.js.map +1 -1
  9. package/dist/esm/components/Input/Input.js +25 -25
  10. package/dist/esm/components/Input/Input.js.map +1 -1
  11. package/dist/esm/components/Listbox/Listbox.js +25 -24
  12. package/dist/esm/components/Listbox/Listbox.js.map +1 -1
  13. package/dist/esm/components/Menu/Menu.js +34 -16
  14. package/dist/esm/components/Menu/Menu.js.map +1 -1
  15. package/dist/esm/components/Navigation/Navigation.js +44 -35
  16. package/dist/esm/components/Navigation/Navigation.js.map +1 -1
  17. package/dist/esm/components/Pagination/Pagination.js +56 -39
  18. package/dist/esm/components/Pagination/Pagination.js.map +1 -1
  19. package/dist/esm/components/Popover/Popover.js +34 -29
  20. package/dist/esm/components/Popover/Popover.js.map +1 -1
  21. package/dist/esm/components/Progress/Progress.js +15 -11
  22. package/dist/esm/components/Progress/Progress.js.map +1 -1
  23. package/dist/esm/components/Provider/Provider.js +18 -13
  24. package/dist/esm/components/Provider/Provider.js.map +1 -1
  25. package/dist/esm/components/RadioGroup/RadioGroup.js +57 -45
  26. package/dist/esm/components/RadioGroup/RadioGroup.js.map +1 -1
  27. package/dist/esm/components/SearchInput/SearchInput.js +12 -10
  28. package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
  29. package/dist/esm/components/Select/Select.js +31 -30
  30. package/dist/esm/components/Select/Select.js.map +1 -1
  31. package/dist/esm/components/Spinner/Spinner.js +19 -12
  32. package/dist/esm/components/Spinner/Spinner.js.map +1 -1
  33. package/dist/esm/components/Switch/Switch.js +10 -9
  34. package/dist/esm/components/Switch/Switch.js.map +1 -1
  35. package/dist/esm/components/Textarea/Textarea.js +9 -11
  36. package/dist/esm/components/Textarea/Textarea.js.map +1 -1
  37. package/dist/esm/components/Toast/Toaster.js +118 -88
  38. package/dist/esm/components/Toast/Toaster.js.map +1 -1
  39. package/dist/esm/components/Tooltip/Tooltip.js +8 -7
  40. package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
  41. package/dist/esm/components/Tour/Tour.js +51 -45
  42. package/dist/esm/components/Tour/Tour.js.map +1 -1
  43. package/dist/esm/components/Treeview/Treeview.js +36 -26
  44. package/dist/esm/components/Treeview/Treeview.js.map +1 -1
  45. package/dist/esm/components/VisuallyHidden/VisuallyHidden.js +1 -1
  46. package/dist/esm/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
  47. package/dist/esm/index.js +1 -0
  48. package/dist/esm/index.js.map +1 -1
  49. package/dist/esm/utils/hooks/useDropTarget.js +10 -7
  50. package/dist/esm/utils/hooks/useDropTarget.js.map +1 -1
  51. package/dist/index.d.ts +1 -0
  52. package/dist/taco.cjs.development.js +647 -533
  53. package/dist/taco.cjs.development.js.map +1 -1
  54. package/dist/taco.cjs.production.min.js +1 -1
  55. package/dist/taco.cjs.production.min.js.map +1 -1
  56. package/package.json +2 -2
  57. package/tailwind.config.js +4 -0
@@ -3188,17 +3188,17 @@ const icons = {
3188
3188
  zoom: Zoom
3189
3189
  };
3190
3190
 
3191
- const Icon = /*#__PURE__*/React__default.forwardRef(function Icon(props, ref) {
3191
+ var _excluded = ["name"];
3192
+ var Icon = /*#__PURE__*/React__default.forwardRef(function Icon(props, ref) {
3192
3193
  var _props$className;
3193
3194
 
3194
- const {
3195
- name,
3196
- ...otherProps
3197
- } = props;
3198
- const Component = icons[name];
3195
+ var name = props.name,
3196
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded);
3197
+
3198
+ var Component = icons[name];
3199
3199
  /* 24x24 _at the base body font_ - must be em so that they scale with font size - tailwind spacing uses rem */
3200
3200
 
3201
- const className = cn('inline-flex h-[1.715em] w-[1.715em] flex-shrink-0', props.className, {
3201
+ var className = cn('inline-flex h-[1.715em] w-[1.715em] flex-shrink-0', props.className, {
3202
3202
  'p-[3px]': (_props$className = props.className) === null || _props$className === void 0 ? void 0 : _props$className.includes('rounded-full')
3203
3203
  });
3204
3204
  return Component ? React__default.createElement(Component, Object.assign({}, otherProps, {
@@ -3210,7 +3210,7 @@ const Icon = /*#__PURE__*/React__default.forwardRef(function Icon(props, ref) {
3210
3210
  })) : null;
3211
3211
  });
3212
3212
 
3213
- var _excluded = ["id"],
3213
+ var _excluded$1 = ["id"],
3214
3214
  _excluded2 = ["id", "defaultId", "onChange", "as"];
3215
3215
  var AccordionContext = /*#__PURE__*/React__default.createContext({
3216
3216
  as: 'h2'
@@ -3248,7 +3248,7 @@ var Content = /*#__PURE__*/React__default.forwardRef(function AccordionContent(p
3248
3248
 
3249
3249
  var Item = function Item(props) {
3250
3250
  var id = props.id,
3251
- otherProps = _objectWithoutPropertiesLoose(props, _excluded);
3251
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$1);
3252
3252
 
3253
3253
  return React__default.createElement(AccordionPrimitive.Item, Object.assign({}, otherProps, {
3254
3254
  value: id
@@ -3303,7 +3303,7 @@ var Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(props, ref) {
3303
3303
  }));
3304
3304
  });
3305
3305
 
3306
- const VisuallyHidden = /*#__PURE__*/React.forwardRef(function VisuallyHidden(props, ref) {
3306
+ var VisuallyHidden = /*#__PURE__*/React.forwardRef(function VisuallyHidden(props, ref) {
3307
3307
  return React.createElement("span", Object.assign({}, props, {
3308
3308
  className: "sr-only",
3309
3309
  ref: ref
@@ -3349,7 +3349,7 @@ const getOutlineClasses = state => {
3349
3349
  }
3350
3350
  };
3351
3351
 
3352
- var _excluded$1 = ["children", "compact", "outline", "state"];
3352
+ var _excluded$2 = ["children", "compact", "outline", "state"];
3353
3353
  var Badge = /*#__PURE__*/React.forwardRef(function Badge(props, ref) {
3354
3354
  var _cn;
3355
3355
 
@@ -3359,7 +3359,7 @@ var Badge = /*#__PURE__*/React.forwardRef(function Badge(props, ref) {
3359
3359
  _props$outline = props.outline,
3360
3360
  outline = _props$outline === void 0 ? false : _props$outline,
3361
3361
  state = props.state,
3362
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$1);
3362
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$2);
3363
3363
 
3364
3364
  var className = cn('rounded-full border font-bold text-xs uppercase overflow-hidden whitespace-nowrap inline-flex items-center justify-center h-5', (_cn = {}, _cn[getOutlineClasses(state)] = outline, _cn["border-transparent " + getStateClasses(state)] = !outline, _cn['h-2 w-2 min-w-0'] = compact, _cn['h-5 py-0 px-1.5'] = !compact, _cn), props.className);
3365
3365
  return React.createElement("span", Object.assign({}, otherProps, {
@@ -3421,13 +3421,13 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(props, ref) {
3421
3421
  }), React.Children.count(props.children) > 1 ? React.Children.map(props.children, child => typeof child === 'string' ? React.createElement("span", null, child) : child) : props.children);
3422
3422
  });
3423
3423
 
3424
- const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
3425
- const {
3426
- title,
3427
- children,
3428
- placement,
3429
- ...otherProps
3430
- } = props;
3424
+ var _excluded$3 = ["title", "children", "placement"];
3425
+ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
3426
+ var title = props.title,
3427
+ children = props.children,
3428
+ placement = props.placement,
3429
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$3);
3430
+
3431
3431
  return React.createElement(TooltipPrimitive.Root, {
3432
3432
  delayDuration: 50
3433
3433
  }, React.createElement(TooltipPrimitive.Trigger, {
@@ -3519,13 +3519,14 @@ const createButton = (props, className, ref) => {
3519
3519
  return button;
3520
3520
  };
3521
3521
 
3522
- const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(props, ref) {
3523
- const {
3524
- icon,
3525
- rounded = false,
3526
- ...otherProps
3527
- } = props;
3528
- const className = cn('w-8', getButtonClasses(), getAppearanceClasses(otherProps.appearance, true), {
3522
+ var _excluded$4 = ["icon", "rounded"];
3523
+ var IconButton = /*#__PURE__*/React.forwardRef(function IconButton(props, ref) {
3524
+ var icon = props.icon,
3525
+ _props$rounded = props.rounded,
3526
+ rounded = _props$rounded === void 0 ? false : _props$rounded,
3527
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$4);
3528
+
3529
+ var className = cn('w-8', getButtonClasses(), getAppearanceClasses(otherProps.appearance, true), {
3529
3530
  'rounded-full': rounded,
3530
3531
  rounded: !rounded,
3531
3532
  'cursor-not-allowed opacity-50': props.disabled,
@@ -3536,13 +3537,13 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(props, ref)
3536
3537
  return null;
3537
3538
  }
3538
3539
 
3539
- return createButton({ ...otherProps,
3540
+ return createButton(_extends({}, otherProps, {
3540
3541
  children: React.createElement(Icon, {
3541
3542
  name: icon,
3542
3543
  className: "m-0 p-0"
3543
3544
  }),
3544
3545
  'data-taco': 'icon-button'
3545
- }, className, ref);
3546
+ }), className, ref);
3546
3547
  });
3547
3548
 
3548
3549
  var Banner = /*#__PURE__*/React.forwardRef(function Banner(props, ref) {
@@ -3562,10 +3563,10 @@ var Banner = /*#__PURE__*/React.forwardRef(function Banner(props, ref) {
3562
3563
  }) : null);
3563
3564
  });
3564
3565
 
3565
- var _excluded$2 = ["fluid"];
3566
+ var _excluded$5 = ["fluid"];
3566
3567
  var Button$1 = /*#__PURE__*/React.forwardRef(function Button(props, ref) {
3567
3568
  var fluid = props.fluid,
3568
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$2);
3569
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$5);
3569
3570
 
3570
3571
  var className = cn(getButtonClasses(), getAppearanceClasses(otherProps.appearance), 'rounded px-3', {
3571
3572
  'cursor-not-allowed opacity-50': props.disabled,
@@ -3636,21 +3637,27 @@ function useTimer(duration = 0, callback) {
3636
3637
  };
3637
3638
  }
3638
3639
 
3639
- const Spinner$1 = /*#__PURE__*/React__default.forwardRef(function Spinner(props, ref) {
3640
- const {
3641
- delay = 500,
3642
- label,
3643
- ...otherProps
3644
- } = props;
3645
- const [visible, setVisibility] = React__default.useState(!delay);
3646
- React__default.useEffect(() => {
3647
- let timeout;
3640
+ var _excluded$6 = ["delay", "label"];
3641
+ var Spinner$1 = /*#__PURE__*/React__default.forwardRef(function Spinner(props, ref) {
3642
+ var _props$delay = props.delay,
3643
+ delay = _props$delay === void 0 ? 500 : _props$delay,
3644
+ label = props.label,
3645
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$6);
3646
+
3647
+ var _React$useState = React__default.useState(!delay),
3648
+ visible = _React$useState[0],
3649
+ setVisibility = _React$useState[1];
3650
+
3651
+ React__default.useEffect(function () {
3652
+ var timeout;
3648
3653
 
3649
3654
  if (delay) {
3650
- timeout = window.setTimeout(() => setVisibility(true), delay);
3655
+ timeout = window.setTimeout(function () {
3656
+ return setVisibility(true);
3657
+ }, delay);
3651
3658
  }
3652
3659
 
3653
- return () => {
3660
+ return function () {
3654
3661
  if (timeout) {
3655
3662
  clearTimeout(timeout);
3656
3663
  }
@@ -3661,7 +3668,7 @@ const Spinner$1 = /*#__PURE__*/React__default.forwardRef(function Spinner(props,
3661
3668
  return null;
3662
3669
  }
3663
3670
 
3664
- const className = cn('inline-flex flex-col relative items-center', otherProps.className);
3671
+ var className = cn('inline-flex flex-col relative items-center', otherProps.className);
3665
3672
  return React__default.createElement("div", Object.assign({}, otherProps, {
3666
3673
  className: className,
3667
3674
  "data-taco": "spinner",
@@ -3787,49 +3794,62 @@ const Toast = ({
3787
3794
  }));
3788
3795
  };
3789
3796
 
3790
- const DEFAULT_AUTO_CLOSE_TIMEOUT = 7500;
3791
- const ToastContext = /*#__PURE__*/React.createContext({});
3797
+ var _excluded$7 = ["children"];
3798
+ var DEFAULT_AUTO_CLOSE_TIMEOUT = 7500;
3799
+ var ToastContext = /*#__PURE__*/React.createContext({});
3792
3800
 
3793
- const insertToastWithoutDuplicates = (currentToasts, id, content, options, close) => {
3794
- const nextToasts = [...currentToasts];
3795
- const existingToastIndex = currentToasts.findIndex(toast => JSON.stringify(toast.content) === JSON.stringify(content));
3801
+ var insertToastWithoutDuplicates = function insertToastWithoutDuplicates(currentToasts, id, content, options, close) {
3802
+ var nextToasts = [].concat(currentToasts);
3803
+ var existingToastIndex = currentToasts.findIndex(function (toast) {
3804
+ return JSON.stringify(toast.content) === JSON.stringify(content);
3805
+ });
3796
3806
 
3797
3807
  if (existingToastIndex > -1) {
3798
3808
  nextToasts[existingToastIndex].lastDuplicateId = id;
3799
3809
  nextToasts[existingToastIndex].lastUpdated = Date.now();
3800
3810
  } else {
3801
3811
  nextToasts.push({
3802
- id,
3812
+ id: id,
3803
3813
  content: typeof content === 'function' ? content(close) : content,
3804
- options
3814
+ options: options
3805
3815
  });
3806
3816
  }
3807
3817
 
3808
3818
  return nextToasts;
3809
3819
  };
3810
3820
 
3811
- const ToastProvider = ({
3812
- children,
3813
- ...props
3814
- }) => {
3815
- const [toasts, setToasts] = React.useState([]);
3821
+ var ToastProvider = function ToastProvider(_ref) {
3822
+ var children = _ref.children,
3823
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3824
+
3825
+ var _React$useState = React.useState([]),
3826
+ toasts = _React$useState[0],
3827
+ setToasts = _React$useState[1];
3816
3828
 
3817
- const handleClose = id => {
3818
- setToasts(currentToasts => currentToasts.filter(toast => toast.id !== id));
3829
+ var handleClose = function handleClose(id) {
3830
+ setToasts(function (currentToasts) {
3831
+ return currentToasts.filter(function (toast) {
3832
+ return toast.id !== id;
3833
+ });
3834
+ });
3819
3835
  }; // memoize (useCallback) this function,
3820
3836
  // it is the value of the context provider and we don't want it to trigger state tree re-renders on provider children
3821
3837
 
3822
3838
 
3823
- const toaster = React.useCallback((content, options) => {
3824
- const id = uuid.v4();
3839
+ var toaster = React.useCallback(function (content, options) {
3840
+ var id = uuid.v4();
3825
3841
 
3826
- const close = () => handleClose(id);
3842
+ var close = function close() {
3843
+ return handleClose(id);
3844
+ };
3827
3845
 
3828
- setToasts(currentToasts => insertToastWithoutDuplicates(currentToasts, id, content, options, close));
3846
+ setToasts(function (currentToasts) {
3847
+ return insertToastWithoutDuplicates(currentToasts, id, content, options, close);
3848
+ });
3829
3849
 
3830
- const update = (content, options) => {
3831
- setToasts(currentToasts => {
3832
- const nextToasts = currentToasts.filter(toast => {
3850
+ var update = function update(content, options) {
3851
+ setToasts(function (currentToasts) {
3852
+ var nextToasts = currentToasts.filter(function (toast) {
3833
3853
  if (toast.lastDuplicateId) {
3834
3854
  return toast.lastDuplicateId !== id;
3835
3855
  }
@@ -3840,70 +3860,80 @@ const ToastProvider = ({
3840
3860
  });
3841
3861
  };
3842
3862
 
3843
- const success = (content, options) => {
3844
- update(content, {
3845
- autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT,
3846
- ...options,
3863
+ var success = function success(content, options) {
3864
+ update(content, _extends({
3865
+ autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT
3866
+ }, options, {
3847
3867
  type: 'success'
3848
- });
3868
+ }));
3849
3869
  };
3850
3870
 
3851
- const error = (content, options) => {
3852
- update(content, { ...options,
3871
+ var error = function error(content, options) {
3872
+ update(content, _extends({}, options, {
3853
3873
  type: 'error'
3854
- });
3874
+ }));
3855
3875
  };
3856
3876
 
3857
- const warning = (content, options) => {
3858
- update(content, { ...options,
3877
+ var warning = function warning(content, options) {
3878
+ update(content, _extends({}, options, {
3859
3879
  type: 'warning'
3860
- });
3880
+ }));
3861
3881
  };
3862
3882
 
3863
- const information = (content, options) => {
3864
- update(content, { ...options,
3883
+ var information = function information(content, options) {
3884
+ update(content, _extends({}, options, {
3865
3885
  type: 'information'
3866
- });
3886
+ }));
3867
3887
  };
3868
3888
 
3869
- const loading = (content, options) => {
3870
- update(content, { ...options,
3889
+ var loading = function loading(content, options) {
3890
+ update(content, _extends({}, options, {
3871
3891
  type: 'loading'
3872
- });
3892
+ }));
3873
3893
  };
3874
3894
 
3875
3895
  return {
3876
- success,
3877
- error,
3878
- warning,
3879
- information,
3880
- loading,
3881
- close
3896
+ success: success,
3897
+ error: error,
3898
+ warning: warning,
3899
+ information: information,
3900
+ loading: loading,
3901
+ close: close
3882
3902
  };
3883
3903
  }, []); // no need to rebind these every render, do them once in an effect
3884
3904
 
3885
- React.useEffect(() => {
3886
- toaster.success = (content, options) => toaster(content, {
3887
- autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT,
3888
- ...options,
3889
- type: 'success'
3890
- });
3905
+ React.useEffect(function () {
3906
+ toaster.success = function (content, options) {
3907
+ return toaster(content, _extends({
3908
+ autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT
3909
+ }, options, {
3910
+ type: 'success'
3911
+ }));
3912
+ };
3891
3913
 
3892
- toaster.error = (content, options) => toaster(content, { ...options,
3893
- type: 'error'
3894
- });
3914
+ toaster.error = function (content, options) {
3915
+ return toaster(content, _extends({}, options, {
3916
+ type: 'error'
3917
+ }));
3918
+ };
3895
3919
 
3896
- toaster.warning = (content, options) => toaster(content, { ...options,
3897
- type: 'warning'
3898
- });
3920
+ toaster.warning = function (content, options) {
3921
+ return toaster(content, _extends({}, options, {
3922
+ type: 'warning'
3923
+ }));
3924
+ };
3899
3925
 
3900
- toaster.information = (content, options) => toaster(content, { ...options,
3901
- type: 'information'
3902
- });
3926
+ toaster.information = function (content, options) {
3927
+ return toaster(content, _extends({}, options, {
3928
+ type: 'information'
3929
+ }));
3930
+ };
3903
3931
 
3904
- toaster.loading = (content, options) => toaster(content, { ...options,
3905
- type: 'loading'
3906
- });
3932
+ toaster.loading = function (content, options) {
3933
+ return toaster(content, _extends({}, options, {
3934
+ type: 'loading'
3935
+ }));
3936
+ };
3907
3937
  }, []);
3908
3938
  return React.createElement(ToastContext.Provider, Object.assign({}, props, {
3909
3939
  value: toaster
@@ -3913,37 +3943,43 @@ const ToastProvider = ({
3913
3943
  role: "log"
3914
3944
  }, React.createElement(framerMotion.AnimatePresence, {
3915
3945
  initial: false
3916
- }, toasts.map(toast => React.createElement(framerMotion.motion.div, {
3917
- key: toast.id,
3918
- transition: {
3919
- type: 'spring',
3920
- damping: 20,
3921
- stiffness: 300
3922
- },
3923
- initial: {
3924
- opacity: 0,
3925
- y: 10,
3926
- scale: 0.5
3927
- },
3928
- animate: {
3929
- opacity: 1,
3930
- y: 0,
3931
- scale: 1
3932
- },
3933
- exit: {
3934
- opacity: 0,
3935
- scale: 0.5,
3946
+ }, toasts.map(function (toast) {
3947
+ return React.createElement(framerMotion.motion.div, {
3948
+ key: toast.id,
3936
3949
  transition: {
3937
- duration: 0.2
3950
+ type: 'spring',
3951
+ damping: 20,
3952
+ stiffness: 300
3953
+ },
3954
+ initial: {
3955
+ opacity: 0,
3956
+ y: 10,
3957
+ scale: 0.5
3958
+ },
3959
+ animate: {
3960
+ opacity: 1,
3961
+ y: 0,
3962
+ scale: 1
3963
+ },
3964
+ exit: {
3965
+ opacity: 0,
3966
+ scale: 0.5,
3967
+ transition: {
3968
+ duration: 0.2
3969
+ }
3938
3970
  }
3939
- }
3940
- }, React.createElement(Toast, Object.assign({}, toast, {
3941
- onClose: () => handleClose(toast.id)
3942
- })))))));
3971
+ }, React.createElement(Toast, Object.assign({}, toast, {
3972
+ onClose: function onClose() {
3973
+ return handleClose(toast.id);
3974
+ }
3975
+ })));
3976
+ }))));
3977
+ };
3978
+ var useToast = function useToast() {
3979
+ return React.useContext(ToastContext);
3943
3980
  };
3944
- const useToast = () => React.useContext(ToastContext);
3945
3981
 
3946
- const defaultLocalisationTexts = {
3982
+ var defaultLocalisationTexts = {
3947
3983
  calendar: {
3948
3984
  months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
3949
3985
  weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
@@ -4018,32 +4054,37 @@ const defaultLocalisationTexts = {
4018
4054
  inputLabel: 'Search...'
4019
4055
  }
4020
4056
  };
4021
- const defaultLocalizationContext = {
4057
+ var defaultLocalizationContext = {
4022
4058
  locale: 'en-GB',
4023
4059
  texts: defaultLocalisationTexts,
4024
4060
  formatting: {
4025
4061
  date: 'dd.mm.yy'
4026
4062
  }
4027
4063
  };
4028
- const Context = /*#__PURE__*/React.createContext({
4064
+ var Context = /*#__PURE__*/React.createContext({
4029
4065
  localization: defaultLocalizationContext
4030
4066
  });
4031
- const Provider = props => {
4032
- const {
4033
- children,
4034
- localization = defaultLocalizationContext
4035
- } = props;
4036
- const value = React.useMemo(() => ({
4037
- localization
4038
- }), [localization]);
4067
+ var Provider = function Provider(props) {
4068
+ var children = props.children,
4069
+ _props$localization = props.localization,
4070
+ localization = _props$localization === void 0 ? defaultLocalizationContext : _props$localization;
4071
+ var value = React.useMemo(function () {
4072
+ return {
4073
+ localization: localization
4074
+ };
4075
+ }, [localization]);
4039
4076
  return React.createElement(Context.Provider, {
4040
4077
  value: value
4041
4078
  }, React.createElement(ToastProvider, null, children));
4042
4079
  };
4043
- const useTaco = () => React.useContext(Context);
4044
- const useLocalization = () => useTaco().localization;
4080
+ var useTaco = function useTaco() {
4081
+ return React.useContext(Context);
4082
+ };
4083
+ var useLocalization = function useLocalization() {
4084
+ return useTaco().localization;
4085
+ };
4045
4086
 
4046
- var _excluded$3 = ["onChange", "value"];
4087
+ var _excluded$8 = ["onChange", "value"];
4047
4088
 
4048
4089
  var renderDay = function renderDay(day, modifiers) {
4049
4090
  return modifiers.disabled ? React.createElement("span", {
@@ -4122,7 +4163,7 @@ var Navbar = /*#__PURE__*/React.memo(function (_ref) {
4122
4163
  var Calendar$1 = /*#__PURE__*/React.forwardRef(function Calendar(props, ref) {
4123
4164
  var handleChange = props.onChange,
4124
4165
  value = props.value,
4125
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$3);
4166
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$8);
4126
4167
 
4127
4168
  var _useLocalization2 = useLocalization(),
4128
4169
  locale = _useLocalization2.locale,
@@ -4186,7 +4227,7 @@ var Calendar$1 = /*#__PURE__*/React.forwardRef(function Calendar(props, ref) {
4186
4227
  })));
4187
4228
  });
4188
4229
 
4189
- var _excluded$4 = ["checked", "highlighted", "indeterminate", "invalid", "label", "onChange"];
4230
+ var _excluded$9 = ["checked", "highlighted", "indeterminate", "invalid", "label", "onChange"];
4190
4231
  var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
4191
4232
  var checked = props.checked,
4192
4233
  highlighted = props.highlighted,
@@ -4194,7 +4235,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
4194
4235
  invalid = props.invalid,
4195
4236
  label = props.label,
4196
4237
  onChange = props.onChange,
4197
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$4);
4238
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$9);
4198
4239
 
4199
4240
  var className = cn('bg-white h-5 w-5 border rounded text-sm flex-shrink-0 self-start mt-[0.1rem] focus:yt-focus', //hover:shadow-[0_0_0_1px_rgba(235,235,235,1)]
4200
4241
  props.className, {
@@ -4268,22 +4309,21 @@ const getButtonStateClasses = invalid => {
4268
4309
  return '!border-grey-dark focus:!border-blue-light peer-focus:!border-blue-light peer-focus:peer-active:!border-blue-dark';
4269
4310
  };
4270
4311
 
4271
- const Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
4272
- const {
4273
- button,
4274
- icon,
4275
- highlighted,
4276
- invalid,
4277
- onKeyDown,
4278
- autoFocus,
4279
- ...otherProps
4280
- } = props;
4281
- const inputRef = useProxiedRef(ref);
4282
- const hasContainer = button || icon;
4283
- const className = cn(getInputClasses(props), 'min-h-[theme(spacing.8)] pointer-events-all', {
4312
+ var _excluded$a = ["button", "icon", "highlighted", "invalid", "onKeyDown", "autoFocus"];
4313
+ var Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
4314
+ var button = props.button,
4315
+ icon = props.icon,
4316
+ invalid = props.invalid,
4317
+ onKeyDown = props.onKeyDown,
4318
+ autoFocus = props.autoFocus,
4319
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$a);
4320
+
4321
+ var inputRef = useProxiedRef(ref);
4322
+ var hasContainer = button || icon;
4323
+ var className = cn(getInputClasses(props), 'min-h-[theme(spacing.8)] pointer-events-all', {
4284
4324
  'pr-8': !!hasContainer
4285
4325
  }, !hasContainer && otherProps.className);
4286
- React.useEffect(() => {
4326
+ React.useEffect(function () {
4287
4327
  if (autoFocus && inputRef.current) {
4288
4328
  inputRef.current.focus();
4289
4329
  }
@@ -4291,10 +4331,10 @@ const Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
4291
4331
  // if it has scroll height then the browser reverts to native scrolling behaviour only
4292
4332
  // so we manually override it to ensure _our_ desired behaviour remains intact
4293
4333
 
4294
- const handleKeyDown = event => {
4334
+ var handleKeyDown = function handleKeyDown(event) {
4295
4335
  if (!event.shiftKey && (event.key === 'Home' || event.key === 'End')) {
4296
4336
  event.preventDefault();
4297
- const position = event.key === 'End' ? event.currentTarget.value.length : 0;
4337
+ var position = event.key === 'End' ? event.currentTarget.value.length : 0;
4298
4338
  event.currentTarget.setSelectionRange(position, position);
4299
4339
  }
4300
4340
 
@@ -4303,7 +4343,7 @@ const Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
4303
4343
  }
4304
4344
  };
4305
4345
 
4306
- const input = React.createElement("input", Object.assign({}, otherProps, {
4346
+ var input = React.createElement("input", Object.assign({}, otherProps, {
4307
4347
  className: className,
4308
4348
  "data-taco": "input",
4309
4349
  onKeyDown: handleKeyDown,
@@ -4311,19 +4351,19 @@ const Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
4311
4351
  }));
4312
4352
 
4313
4353
  if (hasContainer) {
4314
- let extra;
4354
+ var extra;
4315
4355
 
4316
4356
  if (button) {
4317
- const disabled = button.props.disabled || otherProps.disabled;
4318
- const buttonClassName = cn('items-center flex justify-center border absolute rounded-l-none rounded-r right-0 h-full focus:rounded focus:outline-none', {
4319
- [getButtonStateClasses(invalid)]: !props.disabled
4320
- }, button.props.className);
4357
+ var _cn;
4358
+
4359
+ var disabled = button.props.disabled || otherProps.disabled;
4360
+ var buttonClassName = cn('items-center flex justify-center border absolute rounded-l-none rounded-r right-0 h-full focus:rounded focus:outline-none', (_cn = {}, _cn[getButtonStateClasses(invalid)] = !props.disabled, _cn), button.props.className);
4321
4361
  extra = React.cloneElement(button, {
4322
4362
  className: buttonClassName,
4323
- disabled
4363
+ disabled: disabled
4324
4364
  });
4325
4365
  } else if (icon) {
4326
- const iconClassName = cn('items-center flex justify-center absolute pointer-events-none mr-1 p-px right-0 w-5 top-1/2 -translate-y-1/2', {
4366
+ var iconClassName = cn('items-center flex justify-center absolute pointer-events-none mr-1 p-px right-0 w-5 top-1/2 -translate-y-1/2', {
4327
4367
  'text-grey-dark': props.disabled,
4328
4368
  'text-grey-darkest': !props.disabled
4329
4369
  });
@@ -4335,7 +4375,7 @@ const Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
4335
4375
  });
4336
4376
  }
4337
4377
 
4338
- const containerClassName = cn('bg-white inline-flex relative rounded w-full', otherProps.className);
4378
+ var containerClassName = cn('bg-white inline-flex relative rounded w-full', otherProps.className);
4339
4379
  return React.createElement("div", {
4340
4380
  className: containerClassName,
4341
4381
  "data-taco": "input-container"
@@ -5106,12 +5146,12 @@ var useBoundingClientRectListener = function useBoundingClientRectListener(ref)
5106
5146
  return dimensions;
5107
5147
  };
5108
5148
 
5109
- var _excluded$5 = ["className", "dialog", "style"];
5149
+ var _excluded$b = ["className", "dialog", "style"];
5110
5150
  var Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
5111
5151
  var externalClassName = props.className,
5112
5152
  dialog = props.dialog,
5113
5153
  style = props.style,
5114
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$5);
5154
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$b);
5115
5155
 
5116
5156
  var _useCombobox = useCombobox(otherProps, ref),
5117
5157
  combobox = _useCombobox.combobox,
@@ -5403,18 +5443,19 @@ function mergeRefs(refs) {
5403
5443
  };
5404
5444
  }
5405
5445
 
5406
- const PopoverContext = /*#__PURE__*/React.createContext({
5446
+ var _excluded$c = ["children", "trigger"];
5447
+ var PopoverContext = /*#__PURE__*/React.createContext({
5407
5448
  props: {},
5408
5449
  ref: null
5409
5450
  });
5410
- const Trigger$1 = /*#__PURE__*/React.forwardRef(function PopoverTrigger(props, ref) {
5451
+ var Trigger$1 = /*#__PURE__*/React.forwardRef(function PopoverTrigger(props, ref) {
5411
5452
  var _props$children;
5412
5453
 
5413
- const context = React.useContext(PopoverContext);
5414
- let children = props.children;
5454
+ var context = React.useContext(PopoverContext);
5455
+ var children = props.children;
5415
5456
 
5416
5457
  if (React.isValidElement(props.children) && typeof ((_props$children = props.children) === null || _props$children === void 0 ? void 0 : _props$children.type) === 'function') {
5417
- console.warn(`Popover.Trigger requires its child to forwardRef so that it can attach to the dom element. Did you mean to wrap '${props.children.type.name}' in React.forwardRef()? Taco has wrapped '${props.children.type.name}' in a 'span' to maintain functionality, but this may cause unintended behaviour`);
5458
+ console.warn("Popover.Trigger requires its child to forwardRef so that it can attach to the dom element. Did you mean to wrap '" + props.children.type.name + "' in React.forwardRef()? Taco has wrapped '" + props.children.type.name + "' in a 'span' to maintain functionality, but this may cause unintended behaviour");
5418
5459
  children = React.createElement("span", null, props.children);
5419
5460
  }
5420
5461
 
@@ -5424,22 +5465,22 @@ const Trigger$1 = /*#__PURE__*/React.forwardRef(function PopoverTrigger(props, r
5424
5465
  asChild: true
5425
5466
  }));
5426
5467
  });
5427
- const RenderPropWrapper = /*#__PURE__*/React.forwardRef(function RenderPropWrapper({
5428
- children,
5429
- onClick
5430
- }, ref) {
5431
- const close = () => {
5468
+ var RenderPropWrapper = /*#__PURE__*/React.forwardRef(function RenderPropWrapper(_ref, ref) {
5469
+ var children = _ref.children,
5470
+ onClick = _ref.onClick;
5471
+
5472
+ var close = function close() {
5432
5473
  onClick(new CustomEvent('hide'));
5433
5474
  };
5434
5475
 
5435
5476
  return children({
5436
- close,
5437
- ref
5477
+ close: close,
5478
+ ref: ref
5438
5479
  });
5439
5480
  });
5440
- const Content$1 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, ref) {
5441
- const className = cn('bg-white focus:border-blue-light', props.className);
5442
- let output;
5481
+ var Content$1 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, ref) {
5482
+ var className = cn('bg-white focus:border-blue-light', props.className);
5483
+ var output;
5443
5484
 
5444
5485
  if (typeof props.children === 'function') {
5445
5486
  output = React.createElement(PopoverPrimitive.Close, {
@@ -5457,20 +5498,23 @@ const Content$1 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, r
5457
5498
  className: "text-white"
5458
5499
  }));
5459
5500
  });
5460
- const Close$1 = /*#__PURE__*/React.forwardRef((props, ref) => React.createElement(PopoverPrimitive.Close, Object.assign({}, props, {
5461
- ref: ref,
5462
- asChild: true
5463
- })));
5464
- const Popover = /*#__PURE__*/React.forwardRef(function Popover(props, ref) {
5465
- const {
5466
- children,
5467
- trigger,
5468
- ...otherProps
5469
- } = props;
5470
- const context = React.useMemo(() => ({
5471
- props: otherProps,
5472
- ref
5473
- }), [otherProps]);
5501
+ var Close$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
5502
+ return React.createElement(PopoverPrimitive.Close, Object.assign({}, props, {
5503
+ ref: ref,
5504
+ asChild: true
5505
+ }));
5506
+ });
5507
+ var Popover = /*#__PURE__*/React.forwardRef(function Popover(props, ref) {
5508
+ var children = props.children,
5509
+ trigger = props.trigger,
5510
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$c);
5511
+
5512
+ var context = React.useMemo(function () {
5513
+ return {
5514
+ props: otherProps,
5515
+ ref: ref
5516
+ };
5517
+ }, [otherProps]);
5474
5518
  return React.createElement(PopoverContext.Provider, {
5475
5519
  value: context
5476
5520
  }, React.createElement(PopoverPrimitive.Root, null, trigger && React.createElement(Trigger$1, null, trigger), children));
@@ -5479,14 +5523,14 @@ Popover.Trigger = Trigger$1;
5479
5523
  Popover.Content = Content$1;
5480
5524
  Popover.Close = Close$1;
5481
5525
 
5482
- var _excluded$6 = ["className", "onReset", "style", "shortcuts", "shortcutsText"];
5526
+ var _excluded$d = ["className", "onReset", "style", "shortcuts", "shortcutsText"];
5483
5527
  var Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref) {
5484
5528
  var externalClassName = props.className,
5485
5529
  handleReset = props.onReset,
5486
5530
  style = props.style,
5487
5531
  shortcuts = props.shortcuts,
5488
5532
  shortcutsText = props.shortcutsText,
5489
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$6);
5533
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$d);
5490
5534
 
5491
5535
  var _useDatepicker = useDatepicker(otherProps, ref),
5492
5536
  calendar = _useDatepicker.calendar,
@@ -5781,7 +5825,7 @@ const Extra = /*#__PURE__*/React.forwardRef(function DialogExtra(props, ref) {
5781
5825
  });
5782
5826
  Extra.displayName = 'DialogExtra';
5783
5827
 
5784
- var _excluded$7 = ["children", "closeOnEscape", "defaultOpen", "draggable", "onChange", "onClose", "open", "showCloseButton", "size", "trigger"];
5828
+ var _excluded$e = ["children", "closeOnEscape", "defaultOpen", "draggable", "onChange", "onClose", "open", "showCloseButton", "size", "trigger"];
5785
5829
 
5786
5830
  var useSeparatedChildren = function useSeparatedChildren(initialChildren) {
5787
5831
  return React.useMemo(function () {
@@ -5818,7 +5862,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function Dialog(props, ref) {
5818
5862
  _props$size = props.size,
5819
5863
  size = _props$size === void 0 ? 'sm' : _props$size,
5820
5864
  trigger = props.trigger,
5821
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$7);
5865
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$e);
5822
5866
 
5823
5867
  var _useSeparatedChildren = useSeparatedChildren(initialChildren),
5824
5868
  children = _useSeparatedChildren[0],
@@ -5868,14 +5912,14 @@ Dialog.Extra = Extra;
5868
5912
  Dialog.Drawer = Drawer;
5869
5913
  Dialog.Close = Close$2;
5870
5914
 
5871
- var _excluded$8 = ["disabled", "children", "invalid", "message"];
5915
+ var _excluded$f = ["disabled", "children", "invalid", "message"];
5872
5916
  var Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
5873
5917
  var disabled = props.disabled,
5874
5918
  children = props.children,
5875
5919
  _props$invalid = props.invalid,
5876
5920
  invalid = _props$invalid === void 0 ? false : _props$invalid,
5877
5921
  message = props.message,
5878
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$8);
5922
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$f);
5879
5923
 
5880
5924
  var className = cn('flex flex-col font-bold text-xs leading-loose pb-4 min-h-[theme(spacing.18)]', {
5881
5925
  'text-grey-dark': disabled
@@ -5895,11 +5939,11 @@ var Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
5895
5939
  }, message));
5896
5940
  });
5897
5941
 
5898
- var _excluded$9 = ["horizontal"];
5942
+ var _excluded$g = ["horizontal"];
5899
5943
  var Form = /*#__PURE__*/React.forwardRef(function Form(props, ref) {
5900
5944
  var _props$horizontal = props.horizontal,
5901
5945
  horizontal = _props$horizontal === void 0 ? false : _props$horizontal,
5902
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$9);
5946
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$g);
5903
5947
 
5904
5948
  var className = cn('yt-form', {
5905
5949
  'yt-form--horizontal flex flex-wrap': horizontal
@@ -5911,11 +5955,11 @@ var Form = /*#__PURE__*/React.forwardRef(function Form(props, ref) {
5911
5955
  }));
5912
5956
  });
5913
5957
 
5914
- var _excluded$a = ["as"];
5958
+ var _excluded$h = ["as"];
5915
5959
  var Group = /*#__PURE__*/React.forwardRef(function Group(props, ref) {
5916
5960
  var _props$as = props.as,
5917
5961
  Tag = _props$as === void 0 ? 'span' : _props$as,
5918
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$a);
5962
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$h);
5919
5963
 
5920
5964
  var className = cn('flex ', props.className);
5921
5965
  return React.createElement(Tag, Object.assign({}, otherProps, {
@@ -5925,7 +5969,7 @@ var Group = /*#__PURE__*/React.forwardRef(function Group(props, ref) {
5925
5969
  }));
5926
5970
  });
5927
5971
 
5928
- var _excluded$b = ["anchor", "children", "defaultOpen"];
5972
+ var _excluded$i = ["anchor", "children", "defaultOpen"];
5929
5973
  var HangerContext = /*#__PURE__*/React.createContext({
5930
5974
  props: {},
5931
5975
  ref: null
@@ -5989,7 +6033,7 @@ var Hanger = /*#__PURE__*/React.forwardRef(function Hanger(props, ref) {
5989
6033
  children = props.children,
5990
6034
  _props$defaultOpen = props.defaultOpen,
5991
6035
  defaultOpen = _props$defaultOpen === void 0 ? true : _props$defaultOpen,
5992
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$b);
6036
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$i);
5993
6037
 
5994
6038
  var context = React.useMemo(function () {
5995
6039
  return {
@@ -6018,25 +6062,25 @@ Hanger.Anchor = Anchor;
6018
6062
  Hanger.Content = Content$3;
6019
6063
  Hanger.Title = Title$1;
6020
6064
 
6021
- const Trigger$3 = /*#__PURE__*/React.forwardRef(function HoverCardTrigger(props, ref) {
6065
+ var _excluded$j = ["placement"];
6066
+ var Trigger$3 = /*#__PURE__*/React.forwardRef(function HoverCardTrigger(props, ref) {
6022
6067
  return React.createElement(HoverCardPrimitive.Trigger, Object.assign({}, props, {
6023
6068
  asChild: true,
6024
6069
  ref: ref
6025
6070
  }));
6026
6071
  });
6027
- const Content$4 = /*#__PURE__*/React.forwardRef(function HoverCardContent(externalProps, ref) {
6028
- const {
6029
- placement,
6030
- ...props
6031
- } = externalProps;
6032
- const className = cn('bg-white rounded p-3 yt-shadow', props.className);
6072
+ var Content$4 = /*#__PURE__*/React.forwardRef(function HoverCardContent(externalProps, ref) {
6073
+ var placement = externalProps.placement,
6074
+ props = _objectWithoutPropertiesLoose(externalProps, _excluded$j);
6075
+
6076
+ var className = cn('bg-white rounded p-3 yt-shadow', props.className);
6033
6077
  return React.createElement(HoverCardPrimitive.Content, Object.assign({}, props, {
6034
6078
  className: className,
6035
6079
  ref: ref,
6036
6080
  side: placement
6037
6081
  }));
6038
6082
  });
6039
- const HoverCard = props => {
6083
+ var HoverCard = function HoverCard(props) {
6040
6084
  return React.createElement(HoverCardPrimitive.Root, Object.assign({}, props, {
6041
6085
  openDelay: 300
6042
6086
  }));
@@ -6044,24 +6088,24 @@ const HoverCard = props => {
6044
6088
  HoverCard.Trigger = Trigger$3;
6045
6089
  HoverCard.Content = Content$4;
6046
6090
 
6047
- const SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput({
6048
- onSearch,
6049
- ...props
6050
- }, ref) {
6051
- const {
6052
- texts
6053
- } = useLocalization();
6091
+ var _excluded$k = ["onSearch"];
6092
+ var SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput(_ref, ref) {
6093
+ var onSearch = _ref.onSearch,
6094
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
6095
+
6096
+ var _useLocalization = useLocalization(),
6097
+ texts = _useLocalization.texts;
6054
6098
 
6055
- const handleClick = () => {
6099
+ var handleClick = function handleClick() {
6056
6100
  if (!props.disabled) {
6057
6101
  onSearch === null || onSearch === void 0 ? void 0 : onSearch(props.value);
6058
6102
  }
6059
6103
  };
6060
6104
 
6061
- const handleKeyDown = event => {
6105
+ var handleKeyDown = function handleKeyDown(event) {
6062
6106
  var _props$onKeyDown;
6063
6107
 
6064
- const isEnterKeyPressed = event.keyCode === keycode('enter');
6108
+ var isEnterKeyPressed = event.keyCode === keycode('enter');
6065
6109
 
6066
6110
  if (isEnterKeyPressed) {
6067
6111
  handleClick();
@@ -6430,49 +6474,49 @@ const useMultiListbox = ({
6430
6474
  };
6431
6475
  };
6432
6476
 
6433
- const Listbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6434
- const {
6435
- className: externalClassName,
6436
- ...otherProps
6437
- } = props;
6438
- const {
6439
- list,
6440
- input
6441
- } = useListbox(otherProps, ref);
6442
- const className = cn('bg-white inline-flex relative w-full', externalClassName);
6477
+ var _excluded$l = ["className"],
6478
+ _excluded2$1 = ["className"];
6479
+ var Listbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6480
+ var externalClassName = props.className,
6481
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$l);
6482
+
6483
+ var _useListbox = useListbox(otherProps, ref),
6484
+ list = _useListbox.list,
6485
+ input = _useListbox.input;
6486
+
6487
+ var className = cn('bg-white inline-flex relative w-full', externalClassName);
6443
6488
  return React.createElement("span", {
6444
6489
  "data-taco": "listbox",
6445
6490
  className: className
6446
6491
  }, React.createElement(ScrollableList, Object.assign({}, list, {
6447
- style: { ...list.style,
6492
+ style: _extends({}, list.style, {
6448
6493
  maxHeight: 'calc(12rem + 2px)'
6449
6494
  /* (6 * option height) + listbox border */
6450
6495
 
6451
- }
6496
+ })
6452
6497
  })), React.createElement("input", Object.assign({}, input, {
6453
6498
  className: "hidden",
6454
6499
  type: "text"
6455
6500
  })));
6456
6501
  });
6457
- const MultiListbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6458
- const {
6459
- className: externalClassName,
6460
- ...otherProps
6461
- } = props;
6462
- const {
6463
- list,
6464
- input
6465
- } = useMultiListbox(otherProps, ref);
6466
- const className = cn('bg-white inline-flex relative w-full', externalClassName);
6502
+ var MultiListbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6503
+ var externalClassName = props.className,
6504
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$1);
6505
+
6506
+ var _useMultiListbox = useMultiListbox(otherProps, ref),
6507
+ list = _useMultiListbox.list,
6508
+ input = _useMultiListbox.input;
6509
+
6510
+ var className = cn('bg-white inline-flex relative w-full', externalClassName);
6467
6511
  return React.createElement("span", {
6468
6512
  "data-taco": "listbox",
6469
6513
  className: className
6470
6514
  }, React.createElement(ScrollableList, Object.assign({}, list, {
6471
- style: { ...list.style,
6515
+ style: _extends({}, list.style, {
6472
6516
  maxHeight: 'calc(12rem + 2px + 2px)'
6473
6517
  /* (6 * option height) + listbox border + ALL_OPTIONS bottom border */
6474
6518
 
6475
- }
6519
+ })
6476
6520
  })), React.createElement("input", Object.assign({}, input, {
6477
6521
  className: "hidden",
6478
6522
  type: "text"
@@ -6655,26 +6699,34 @@ const Checkbox$1 = props => {
6655
6699
  })), children);
6656
6700
  };
6657
6701
 
6658
- const getRadioGroupItemValueAsString = value => String(value !== null && value !== void 0 ? value : '');
6659
- const findByValue$1 = (values, valueAsString) => values.find(value => getRadioGroupItemValueAsString(value) === valueAsString);
6660
- const RadioGroupContext = /*#__PURE__*/React.createContext({
6702
+ var _excluded$m = ["children", "value"],
6703
+ _excluded2$2 = ["children", "defaultValue", "disabled", "invalid", "onChange", "orientation", "value"];
6704
+ var getRadioGroupItemValueAsString = function getRadioGroupItemValueAsString(value) {
6705
+ return String(value !== null && value !== void 0 ? value : '');
6706
+ };
6707
+ var findByValue$1 = function findByValue(values, valueAsString) {
6708
+ return values.find(function (value) {
6709
+ return getRadioGroupItemValueAsString(value) === valueAsString;
6710
+ });
6711
+ };
6712
+ var RadioGroupContext = /*#__PURE__*/React.createContext({
6661
6713
  disabled: false,
6662
6714
  invalid: false
6663
6715
  });
6664
- const RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(props, ref) {
6665
- const context = React.useContext(RadioGroupContext);
6666
- const {
6667
- children,
6668
- value,
6669
- ...otherProps
6670
- } = props;
6671
- const isDisabled = context.disabled || props.disabled;
6672
- const className = cn('flex flex-shrink-0 self-start items-center justify-center h-4 w-4 mt-[0.2rem] rounded-full bg-white border-2', {
6716
+ var RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(props, ref) {
6717
+ var context = React.useContext(RadioGroupContext);
6718
+
6719
+ var children = props.children,
6720
+ value = props.value,
6721
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$m);
6722
+
6723
+ var isDisabled = context.disabled || props.disabled;
6724
+ var className = cn('flex flex-shrink-0 self-start items-center justify-center h-4 w-4 mt-[0.2rem] rounded-full bg-white border-2', {
6673
6725
  'border-grey-dark hover:border-4 focus:yt-focus aria-checked:bg-blue aria-checked:border-blue hover:aria-checked:border-blue-light': !isDisabled && !context.invalid,
6674
6726
  'border-grey cursor-not-allowed aria-checked:bg-blue-light aria-checked:border-blue-light ': isDisabled,
6675
6727
  'border-red hover:border-4 text-red focus:border-red focus:yt-focus-red aria-checked:bg-red aria-checked:border-red': context.invalid && !isDisabled
6676
6728
  });
6677
- const labelClassName = cn('flex items-center gap-2', {
6729
+ var labelClassName = cn('flex items-center gap-2', {
6678
6730
  'cursor-pointer': !isDisabled,
6679
6731
  'cursor-not-allowed text-grey-dark': isDisabled
6680
6732
  }, props.className);
@@ -6689,34 +6741,38 @@ const RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(pro
6689
6741
  className: "h-2 w-2 rounded-full bg-white"
6690
6742
  })), children);
6691
6743
  });
6692
- const useRadioGroup = props => {
6693
- const {
6694
- children,
6695
- defaultValue,
6696
- disabled,
6697
- invalid,
6698
- onChange,
6699
- orientation = 'vertical',
6700
- value,
6701
- ...otherProps
6702
- } = props;
6703
- const values = React.useMemo(() => {
6704
- const radioGroupItemValues = [];
6705
- React.Children.forEach(children, child => {
6744
+ var useRadioGroup = function useRadioGroup(props) {
6745
+ var children = props.children,
6746
+ defaultValue = props.defaultValue,
6747
+ disabled = props.disabled,
6748
+ invalid = props.invalid,
6749
+ onChange = props.onChange,
6750
+ _props$orientation = props.orientation,
6751
+ orientation = _props$orientation === void 0 ? 'vertical' : _props$orientation,
6752
+ value = props.value,
6753
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$2);
6754
+
6755
+ var values = React.useMemo(function () {
6756
+ var radioGroupItemValues = [];
6757
+ React.Children.forEach(children, function (child) {
6706
6758
  if (React.isValidElement(child)) {
6707
6759
  radioGroupItemValues.push(child.props.value);
6708
6760
  }
6709
6761
  });
6710
6762
  return radioGroupItemValues;
6711
6763
  }, [children]);
6712
- const context = React.useMemo(() => ({
6713
- disabled: disabled !== null && disabled !== void 0 ? disabled : false,
6714
- invalid: invalid !== null && invalid !== void 0 ? invalid : false
6715
- }), [disabled, invalid]);
6716
- let valueProps;
6764
+ var context = React.useMemo(function () {
6765
+ return {
6766
+ disabled: disabled !== null && disabled !== void 0 ? disabled : false,
6767
+ invalid: invalid !== null && invalid !== void 0 ? invalid : false
6768
+ };
6769
+ }, [disabled, invalid]);
6770
+ var valueProps;
6717
6771
 
6718
6772
  if (onChange !== undefined) {
6719
- const handleChange = value => onChange(findByValue$1(values, value));
6773
+ var handleChange = function handleChange(value) {
6774
+ return onChange(findByValue$1(values, value));
6775
+ };
6720
6776
 
6721
6777
  valueProps = {
6722
6778
  onValueChange: handleChange,
@@ -6729,20 +6785,19 @@ const useRadioGroup = props => {
6729
6785
  }
6730
6786
 
6731
6787
  return {
6732
- context,
6733
- props: { ...otherProps,
6734
- ...valueProps,
6735
- children,
6736
- orientation
6737
- }
6788
+ context: context,
6789
+ props: _extends({}, otherProps, valueProps, {
6790
+ children: children,
6791
+ orientation: orientation
6792
+ })
6738
6793
  };
6739
6794
  };
6740
- const RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
6741
- const {
6742
- context,
6743
- props: otherProps
6744
- } = useRadioGroup(props);
6745
- const className = cn('flex items-start gap-y-2', {
6795
+ var RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
6796
+ var _useRadioGroup = useRadioGroup(props),
6797
+ context = _useRadioGroup.context,
6798
+ otherProps = _useRadioGroup.props;
6799
+
6800
+ var className = cn('flex items-start gap-y-2', {
6746
6801
  'flex-wrap gap-x-4 ': otherProps.orientation === 'horizontal',
6747
6802
  'flex-col': otherProps.orientation === 'vertical'
6748
6803
  }, otherProps.className);
@@ -6813,22 +6868,39 @@ const Header = props => {
6813
6868
  }));
6814
6869
  };
6815
6870
 
6816
- const Menu$1 = externalProps => {
6817
- const {
6818
- children,
6819
- trigger,
6820
- ...props
6821
- } = externalProps;
6822
- const [open, setOpen] = React.useState(false);
6823
- const [indented, setIndented] = React.useState(false);
6824
- const [minWidth, setMinWidth] = React.useState(undefined);
6825
- const context = React.useMemo(() => ({
6826
- indented,
6827
- registerIndentation: () => setIndented(true),
6828
- minWidth,
6829
- setMinWidth: width => setMinWidth(width),
6830
- close: () => setOpen(false)
6831
- }), [indented, minWidth]);
6871
+ var _excluded$n = ["children", "trigger"];
6872
+ var Menu$1 = function Menu(externalProps) {
6873
+ var children = externalProps.children,
6874
+ trigger = externalProps.trigger,
6875
+ props = _objectWithoutPropertiesLoose(externalProps, _excluded$n);
6876
+
6877
+ var _React$useState = React.useState(false),
6878
+ open = _React$useState[0],
6879
+ setOpen = _React$useState[1];
6880
+
6881
+ var _React$useState2 = React.useState(false),
6882
+ indented = _React$useState2[0],
6883
+ setIndented = _React$useState2[1];
6884
+
6885
+ var _React$useState3 = React.useState(undefined),
6886
+ minWidth = _React$useState3[0],
6887
+ _setMinWidth = _React$useState3[1];
6888
+
6889
+ var context = React.useMemo(function () {
6890
+ return {
6891
+ indented: indented,
6892
+ registerIndentation: function registerIndentation() {
6893
+ return setIndented(true);
6894
+ },
6895
+ minWidth: minWidth,
6896
+ setMinWidth: function setMinWidth(width) {
6897
+ return _setMinWidth(width);
6898
+ },
6899
+ close: function close() {
6900
+ return setOpen(false);
6901
+ }
6902
+ };
6903
+ }, [indented, minWidth]);
6832
6904
  return React.createElement(MenuContext.Provider, {
6833
6905
  value: context
6834
6906
  }, React.createElement(DropdownMenuPrimitive.Root, Object.assign({}, props, {
@@ -6846,39 +6918,44 @@ Menu$1.Separator = Separator;
6846
6918
  Menu$1.Header = Header;
6847
6919
  Menu$1.RadioGroup = RadioGroup$1;
6848
6920
 
6849
- const TreeviewItem = /*#__PURE__*/React__default.forwardRef(function TreeviewItem(props, ref) {
6921
+ var _excluded$o = ["children", "className", "expanded", "title", "fixed", "onClick"];
6922
+ var TreeviewItem = /*#__PURE__*/React__default.forwardRef(function TreeviewItem(props, ref) {
6850
6923
  return React__default.createElement("a", Object.assign({}, props, {
6851
6924
  ref: ref
6852
6925
  }));
6853
6926
  });
6854
- const TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGroup(props, ref) {
6855
- const {
6856
- children,
6857
- className: externalClassName,
6858
- expanded: initialExpanded = false,
6859
- title,
6860
- fixed,
6861
- onClick,
6862
- ...otherProps
6863
- } = props;
6864
- const [expanded, setExpanded] = React__default.useState(fixed || initialExpanded);
6865
- React__default.useEffect(() => {
6927
+ var TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGroup(props, ref) {
6928
+ var children = props.children,
6929
+ externalClassName = props.className,
6930
+ _props$expanded = props.expanded,
6931
+ initialExpanded = _props$expanded === void 0 ? false : _props$expanded,
6932
+ title = props.title,
6933
+ fixed = props.fixed,
6934
+ onClick = props.onClick,
6935
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$o);
6936
+
6937
+ var _React$useState = React__default.useState(fixed || initialExpanded),
6938
+ expanded = _React$useState[0],
6939
+ setExpanded = _React$useState[1];
6940
+
6941
+ React__default.useEffect(function () {
6866
6942
  if (!fixed) {
6867
6943
  setExpanded(fixed || initialExpanded);
6868
6944
  }
6869
6945
  }, [fixed, initialExpanded]);
6870
- const listClassName = cn('flex-col mb-0', {
6946
+ var listClassName = cn('flex-col mb-0', {
6871
6947
  flex: expanded,
6872
6948
  hidden: !expanded
6873
6949
  });
6874
- const itemProps = { ...otherProps,
6950
+
6951
+ var itemProps = _extends({}, otherProps, {
6875
6952
  'aria-expanded': expanded,
6876
6953
  role: 'treeitem',
6877
6954
  tabIndex: -1
6878
- };
6955
+ });
6879
6956
 
6880
- const handleClick = event => {
6881
- const nextState = !expanded;
6957
+ var handleClick = function handleClick(event) {
6958
+ var nextState = !expanded;
6882
6959
 
6883
6960
  if (!fixed) {
6884
6961
  setExpanded(nextState);
@@ -6889,7 +6966,7 @@ const TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGr
6889
6966
  }
6890
6967
  };
6891
6968
 
6892
- const className = typeof externalClassName === 'function' ? externalClassName(expanded) : externalClassName;
6969
+ var className = typeof externalClassName === 'function' ? externalClassName(expanded) : externalClassName;
6893
6970
  return React__default.createElement("div", Object.assign({}, itemProps, {
6894
6971
  className: className,
6895
6972
  ref: ref
@@ -6898,14 +6975,18 @@ const TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGr
6898
6975
  }, typeof title === 'function' ? title(expanded) : title), React__default.createElement("ul", {
6899
6976
  role: "group",
6900
6977
  className: listClassName
6901
- }, React__default.Children.toArray(children).filter(item => !!item).map((item, i) => React__default.createElement("li", {
6902
- key: i,
6903
- role: "none"
6904
- }, React__default.cloneElement(item, {
6905
- role: 'treeitem'
6906
- })))));
6978
+ }, React__default.Children.toArray(children).filter(function (item) {
6979
+ return !!item;
6980
+ }).map(function (item, i) {
6981
+ return React__default.createElement("li", {
6982
+ key: i,
6983
+ role: "none"
6984
+ }, React__default.cloneElement(item, {
6985
+ role: 'treeitem'
6986
+ }));
6987
+ })));
6907
6988
  });
6908
- const Treeview = /*#__PURE__*/React__default.forwardRef(function Treeview(props, ref) {
6989
+ var Treeview = /*#__PURE__*/React__default.forwardRef(function Treeview(props, ref) {
6909
6990
  return React__default.createElement("div", Object.assign({}, props, {
6910
6991
  ref: ref,
6911
6992
  role: "tree"
@@ -6914,23 +6995,26 @@ const Treeview = /*#__PURE__*/React__default.forwardRef(function Treeview(props,
6914
6995
  Treeview.Group = TreeviewGroup;
6915
6996
  Treeview.Item = TreeviewItem;
6916
6997
 
6917
- const useDropTarget = onDrop => {
6918
- const [isDraggedOver, setDraggedOver] = React__default.useState(false);
6919
- const handleDragEnter = React__default.useCallback(event => {
6998
+ var useDropTarget = function useDropTarget(onDrop) {
6999
+ var _React$useState = React__default.useState(false),
7000
+ isDraggedOver = _React$useState[0],
7001
+ setDraggedOver = _React$useState[1];
7002
+
7003
+ var handleDragEnter = React__default.useCallback(function (event) {
6920
7004
  event.preventDefault();
6921
7005
  setDraggedOver(true);
6922
7006
  }, []);
6923
- const handleDragLeave = React__default.useCallback(event => {
7007
+ var handleDragLeave = React__default.useCallback(function (event) {
6924
7008
  event.preventDefault();
6925
7009
 
6926
7010
  if (event.target === event.currentTarget) {
6927
7011
  setDraggedOver(false);
6928
7012
  }
6929
7013
  }, []);
6930
- const handleDragOver = React__default.useCallback(event => {
7014
+ var handleDragOver = React__default.useCallback(function (event) {
6931
7015
  event.preventDefault();
6932
7016
  }, []);
6933
- const handleDrop = React__default.useCallback(event => {
7017
+ var handleDrop = React__default.useCallback(function (event) {
6934
7018
  event.preventDefault();
6935
7019
  event.persist();
6936
7020
  setDraggedOver(false);
@@ -6939,7 +7023,7 @@ const useDropTarget = onDrop => {
6939
7023
  onDrop(event);
6940
7024
  }
6941
7025
  }, [onDrop]);
6942
- const props = onDrop ? {
7026
+ var props = onDrop ? {
6943
7027
  onDragEnter: handleDragEnter,
6944
7028
  onDragLeave: handleDragLeave,
6945
7029
  onDragOver: handleDragOver,
@@ -6948,20 +7032,25 @@ const useDropTarget = onDrop => {
6948
7032
  return [isDraggedOver, props];
6949
7033
  };
6950
7034
 
6951
- const Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
6952
- const {
6953
- active,
6954
- children,
6955
- onDrop,
6956
- postfix,
6957
- prefix,
6958
- role,
6959
- ...otherProps
6960
- } = props;
6961
- const proxyRef = useProxiedRef(ref);
6962
- const [isDraggedOver, dropTargetProps] = useDropTarget(onDrop);
6963
- const isTreeitem = role === 'treeitem';
6964
- const className = cn('yt-navigation__item cursor-pointer', {
7035
+ var _excluded$p = ["active", "children", "onDrop", "postfix", "prefix", "role"],
7036
+ _excluded2$3 = ["children"];
7037
+ var Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
7038
+ var active = props.active,
7039
+ children = props.children,
7040
+ onDrop = props.onDrop,
7041
+ postfix = props.postfix,
7042
+ prefix = props.prefix,
7043
+ role = props.role,
7044
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$p);
7045
+
7046
+ var proxyRef = useProxiedRef(ref);
7047
+
7048
+ var _useDropTarget = useDropTarget(onDrop),
7049
+ isDraggedOver = _useDropTarget[0],
7050
+ dropTargetProps = _useDropTarget[1];
7051
+
7052
+ var isTreeitem = role === 'treeitem';
7053
+ var className = cn('yt-navigation__item cursor-pointer', {
6965
7054
  'w-full mb-px py-1 px-3 flex items-center hover:bg-grey-dark': isTreeitem,
6966
7055
  'bg-white w-full h-10 px-3 flex-shrink-0 flex items-center justify-between cursor-pointer': !isTreeitem,
6967
7056
  'yt-navigation__item--active': active && !isDraggedOver,
@@ -6969,7 +7058,7 @@ const Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
6969
7058
  'yt-navigation__item--dropping bg-blue': isDraggedOver
6970
7059
  }, props.className);
6971
7060
 
6972
- const handleClick = event => {
7061
+ var handleClick = function handleClick(event) {
6973
7062
  if (event.target instanceof HTMLAnchorElement || event.target instanceof HTMLButtonElement) {
6974
7063
  return;
6975
7064
  }
@@ -6992,19 +7081,19 @@ const Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
6992
7081
  className: "yt-navigation__item__postfix ml-1"
6993
7082
  }, postfix));
6994
7083
  });
6995
- const Panel = /*#__PURE__*/React__default.forwardRef(function Panel(props, ref) {
7084
+ var Panel = /*#__PURE__*/React__default.forwardRef(function Panel(props, ref) {
6996
7085
  return React__default.createElement("div", Object.assign({}, props, {
6997
7086
  className: cn('w-full bg-white p-3', props.className),
6998
7087
  ref: ref
6999
7088
  }));
7000
7089
  });
7001
- const MenuGroup = /*#__PURE__*/React__default.forwardRef(function MenuGroup(props, ref) {
7002
- const className = cn('flex-shrink-0 space-y-1 outline-none', {
7090
+ var MenuGroup = /*#__PURE__*/React__default.forwardRef(function MenuGroup(props, ref) {
7091
+ var className = cn('flex-shrink-0 space-y-1 outline-none', {
7003
7092
  'bg-white pb-2': props.fixed
7004
7093
  }, props.className);
7005
7094
 
7006
- const title = expanded => {
7007
- const className = cn('bg-white h-10 pl-3 pr-1 flex items-center justify-between w-full', {
7095
+ var title = function title(expanded) {
7096
+ var className = cn('bg-white h-10 pl-3 pr-1 flex items-center justify-between w-full', {
7008
7097
  'mb-1': expanded,
7009
7098
  'cursor-pointer hover:text-blue': !props.fixed
7010
7099
  });
@@ -7021,14 +7110,16 @@ const MenuGroup = /*#__PURE__*/React__default.forwardRef(function MenuGroup(prop
7021
7110
  ref: ref
7022
7111
  }));
7023
7112
  });
7024
- const Menu$2 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref) {
7025
- const scrollableAreas = React__default.useMemo(() => {
7026
- const scrollableAreas = [];
7027
- React__default.Children.toArray(props.children).filter(child => !!child).map(child => {
7113
+ var Menu$2 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref) {
7114
+ var scrollableAreas = React__default.useMemo(function () {
7115
+ var scrollableAreas = [];
7116
+ React__default.Children.toArray(props.children).filter(function (child) {
7117
+ return !!child;
7118
+ }).map(function (child) {
7028
7119
  if (child.props.fixed) {
7029
7120
  scrollableAreas.push(child);
7030
7121
  } else {
7031
- const x = scrollableAreas[scrollableAreas.length - 1];
7122
+ var x = scrollableAreas[scrollableAreas.length - 1];
7032
7123
 
7033
7124
  if (Array.isArray(x)) {
7034
7125
  x.push(child);
@@ -7042,18 +7133,19 @@ const Menu$2 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref)
7042
7133
  return React__default.createElement(Treeview, Object.assign({}, props, {
7043
7134
  className: cn('divide-grey-light flex flex-grow flex-col divide-y-2 overflow-y-auto', props.className),
7044
7135
  ref: ref
7045
- }), scrollableAreas.map((area, i) => Array.isArray(area) ? React__default.createElement("div", {
7046
- className: "divide-grey-light flex h-0 flex-auto flex-shrink-0 flex-grow flex-col divide-y-2 overflow-y-auto",
7047
- key: i
7048
- }, area) : area));
7136
+ }), scrollableAreas.map(function (area, i) {
7137
+ return Array.isArray(area) ? React__default.createElement("div", {
7138
+ className: "divide-grey-light flex h-0 flex-auto flex-shrink-0 flex-grow flex-col divide-y-2 overflow-y-auto",
7139
+ key: i
7140
+ }, area) : area;
7141
+ }));
7049
7142
  });
7050
7143
  Menu$2.Group = MenuGroup;
7051
- const Navigation = /*#__PURE__*/React__default.forwardRef(function Navigation(props, ref) {
7052
- const {
7053
- children,
7054
- ...otherProps
7055
- } = props;
7056
- const className = cn('h-full flex flex-col bg-grey-light divide-y-2 divide-grey-light', props.className);
7144
+ var Navigation = /*#__PURE__*/React__default.forwardRef(function Navigation(props, ref) {
7145
+ var children = props.children,
7146
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$3);
7147
+
7148
+ var className = cn('h-full flex flex-col bg-grey-light divide-y-2 divide-grey-light', props.className);
7057
7149
  return React__default.createElement("div", Object.assign({}, otherProps, {
7058
7150
  className: className,
7059
7151
  "data-taco": "navigation",
@@ -7309,52 +7401,54 @@ const useSelect = ({
7309
7401
  };
7310
7402
  };
7311
7403
 
7312
- const BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
7313
- const {
7314
- autoFocus,
7315
- className: externalClassName,
7316
- highlighted,
7317
- style,
7318
- ...otherProps
7319
- } = props;
7320
- const {
7321
- button,
7322
- listbox,
7323
- popover,
7324
- input,
7325
- text,
7326
- more = 0
7327
- } = useSelect(otherProps, ref);
7328
- const internalRef = React.useRef(null);
7329
- const selectDimensions = useBoundingClientRectListener(internalRef);
7330
- const className = cn('inline-flex relative w-full', {
7404
+ var _excluded$q = ["autoFocus", "className", "highlighted", "style"],
7405
+ _excluded2$4 = ["editable"];
7406
+ var BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
7407
+ var autoFocus = props.autoFocus,
7408
+ externalClassName = props.className,
7409
+ style = props.style,
7410
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$q);
7411
+
7412
+ var _useSelect = useSelect(otherProps, ref),
7413
+ button = _useSelect.button,
7414
+ listbox = _useSelect.listbox,
7415
+ popover = _useSelect.popover,
7416
+ input = _useSelect.input,
7417
+ text = _useSelect.text,
7418
+ _useSelect$more = _useSelect.more,
7419
+ more = _useSelect$more === void 0 ? 0 : _useSelect$more;
7420
+
7421
+ var internalRef = React.useRef(null);
7422
+ var selectDimensions = useBoundingClientRectListener(internalRef);
7423
+ var className = cn('inline-flex relative w-full', {
7331
7424
  'yt-select--readonly': props.readOnly
7332
7425
  }, externalClassName);
7333
- const inputClassname = cn(getInputClasses(props), 'h-8 text-left pr-0', {
7426
+ var inputClassname = cn(getInputClasses(props), 'h-8 text-left pr-0', {
7334
7427
  'border-blue': popover.open
7335
7428
  });
7336
- React.useEffect(() => {
7429
+ React.useEffect(function () {
7337
7430
  if (autoFocus && internalRef.current) {
7338
7431
  internalRef.current.focus();
7339
7432
  }
7340
7433
  }, []);
7341
7434
 
7342
- const renderMultiSelection = () => {
7435
+ var renderMultiSelection = function renderMultiSelection() {
7343
7436
  return React.createElement(React.Fragment, null, React.createElement("span", {
7344
7437
  className: "flex-grow truncate text-left"
7345
7438
  }, text), more > 0 && React.createElement(Badge, {
7346
7439
  className: "ml-2"
7347
- }, `+${more}`));
7440
+ }, "+" + more));
7348
7441
  };
7349
7442
 
7350
- const commonListboxProps = { ...listbox,
7443
+ var commonListboxProps = _extends({}, listbox, {
7351
7444
  className: 'w-auto',
7352
7445
  invalid: undefined,
7353
7446
  style: {
7354
7447
  minWidth: selectDimensions === null || selectDimensions === void 0 ? void 0 : selectDimensions.width
7355
7448
  },
7356
7449
  tabIndex: popover.open ? 0 : -1
7357
- };
7450
+ });
7451
+
7358
7452
  return React.createElement("span", {
7359
7453
  className: className,
7360
7454
  "data-taco": "select",
@@ -7377,11 +7471,9 @@ const BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref)
7377
7471
  type: "text"
7378
7472
  }))));
7379
7473
  });
7380
- const Select = /*#__PURE__*/React.forwardRef(function Select(props, ref) {
7381
- const {
7382
- editable,
7383
- ...otherProps
7384
- } = props;
7474
+ var Select = /*#__PURE__*/React.forwardRef(function Select(props, ref) {
7475
+ var editable = props.editable,
7476
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$4);
7385
7477
 
7386
7478
  if (editable) {
7387
7479
  return React.createElement(Combobox, Object.assign({}, otherProps, {
@@ -7452,41 +7544,47 @@ const usePagination = (initialPageIndex = 0, initialPageSize = 10) => {
7452
7544
  };
7453
7545
  };
7454
7546
 
7455
- const getShowingLabel = (length, pageIndex, pageSize, texts) => {
7456
- const minItemIndex = pageIndex * pageSize + 1;
7457
- const maxItemIndex = (pageIndex + 1) * pageSize;
7547
+ var _excluded$r = ["length", "pageIndex", "pageSize", "pageSizes", "setPageIndex", "setPageSize", "showPageControls", "showPageNumbers", "showPageSize", "dangerouslyHijackGlobalKeyboardNavigation"];
7548
+
7549
+ var getShowingLabel = function getShowingLabel(length, pageIndex, pageSize, texts) {
7550
+ var minItemIndex = pageIndex * pageSize + 1;
7551
+ var maxItemIndex = (pageIndex + 1) * pageSize;
7458
7552
  return texts.pagination.showingXofYofTotal.replace('[X]', length === 0 ? '0' : String(minItemIndex)).replace('[Y]', String(maxItemIndex > length ? length : maxItemIndex)).replace('[total]', String(length));
7459
7553
  };
7460
7554
 
7461
- const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
7462
- const {
7463
- length,
7464
- pageIndex,
7465
- pageSize,
7466
- pageSizes = [10, 25, 50, 100, 500],
7467
- setPageIndex,
7468
- setPageSize,
7469
- showPageControls = true,
7470
- showPageNumbers = true,
7471
- showPageSize = true,
7472
- dangerouslyHijackGlobalKeyboardNavigation = false,
7473
- ...otherProps
7474
- } = props;
7475
- const {
7476
- texts
7477
- } = useLocalization();
7478
- const maxPageIndex = Math.ceil(length / pageSize) - 1;
7479
- const showShortcutTexts = dangerouslyHijackGlobalKeyboardNavigation;
7555
+ var Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
7556
+ var length = props.length,
7557
+ pageIndex = props.pageIndex,
7558
+ pageSize = props.pageSize,
7559
+ _props$pageSizes = props.pageSizes,
7560
+ pageSizes = _props$pageSizes === void 0 ? [10, 25, 50, 100, 500] : _props$pageSizes,
7561
+ setPageIndex = props.setPageIndex,
7562
+ setPageSize = props.setPageSize,
7563
+ _props$showPageContro = props.showPageControls,
7564
+ showPageControls = _props$showPageContro === void 0 ? true : _props$showPageContro,
7565
+ _props$showPageNumber = props.showPageNumbers,
7566
+ showPageNumbers = _props$showPageNumber === void 0 ? true : _props$showPageNumber,
7567
+ _props$showPageSize = props.showPageSize,
7568
+ showPageSize = _props$showPageSize === void 0 ? true : _props$showPageSize,
7569
+ _props$dangerouslyHij = props.dangerouslyHijackGlobalKeyboardNavigation,
7570
+ dangerouslyHijackGlobalKeyboardNavigation = _props$dangerouslyHij === void 0 ? false : _props$dangerouslyHij,
7571
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$r);
7572
+
7573
+ var _useLocalization = useLocalization(),
7574
+ texts = _useLocalization.texts;
7575
+
7576
+ var maxPageIndex = Math.ceil(length / pageSize) - 1;
7577
+ var showShortcutTexts = dangerouslyHijackGlobalKeyboardNavigation;
7480
7578
  usePaginationShortcuts({
7481
- setPageIndex,
7482
- maxPageIndex,
7483
- pageIndex,
7484
- dangerouslyHijackGlobalKeyboardNavigation
7579
+ setPageIndex: setPageIndex,
7580
+ maxPageIndex: maxPageIndex,
7581
+ pageIndex: pageIndex,
7582
+ dangerouslyHijackGlobalKeyboardNavigation: dangerouslyHijackGlobalKeyboardNavigation
7485
7583
  });
7486
- const pageCount = Math.ceil(length / pageSize);
7487
- const canPreviousPage = pageIndex > 0;
7488
- const canNextPage = pageIndex < pageCount - 1;
7489
- const className = cn('inline-flex relative justify-between items-center', props.className);
7584
+ var pageCount = Math.ceil(length / pageSize);
7585
+ var canPreviousPage = pageIndex > 0;
7586
+ var canNextPage = pageIndex < pageCount - 1;
7587
+ var className = cn('inline-flex relative justify-between items-center', props.className);
7490
7588
  return React.createElement("div", Object.assign({}, otherProps, {
7491
7589
  className: className,
7492
7590
  "data-taco": "pagination",
@@ -7496,11 +7594,13 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7496
7594
  }, getShowingLabel(length, pageIndex, pageSize, texts), React.createElement(Select, {
7497
7595
  "aria-label": texts.pagination.pageSize,
7498
7596
  className: "ml-4 !w-20",
7499
- data: pageSizes.map(pageSize => ({
7500
- text: String(pageSize),
7501
- value: pageSize
7502
- })),
7503
- onChange: event => {
7597
+ data: pageSizes.map(function (pageSize) {
7598
+ return {
7599
+ text: String(pageSize),
7600
+ value: pageSize
7601
+ };
7602
+ }),
7603
+ onChange: function onChange(event) {
7504
7604
  setPageIndex(0);
7505
7605
  setPageSize(Number(event.target.value));
7506
7606
  },
@@ -7512,14 +7612,18 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7512
7612
  appearance: "default",
7513
7613
  disabled: !canPreviousPage,
7514
7614
  icon: "arrow-start",
7515
- onClick: () => setPageIndex(0),
7615
+ onClick: function onClick() {
7616
+ return setPageIndex(0);
7617
+ },
7516
7618
  "aria-label": showShortcutTexts ? texts.pagination.actions.firstPageWithShortcut : texts.pagination.actions.firstPage,
7517
7619
  tooltip: showShortcutTexts ? texts.pagination.actions.firstPageWithShortcut : texts.pagination.actions.firstPage
7518
7620
  }), React.createElement(IconButton, {
7519
7621
  appearance: "default",
7520
7622
  disabled: !canPreviousPage,
7521
7623
  icon: "arrow-left",
7522
- onClick: () => setPageIndex(pageIndex - 1),
7624
+ onClick: function onClick() {
7625
+ return setPageIndex(pageIndex - 1);
7626
+ },
7523
7627
  "aria-label": showShortcutTexts ? texts.pagination.actions.previousPageWithShortcut : texts.pagination.actions.previousPage,
7524
7628
  tooltip: showShortcutTexts ? texts.pagination.actions.previousPageWithShortcut : texts.pagination.actions.previousPage
7525
7629
  }), showPageNumbers && pageCount > 0 && React.createElement(PageNumbers, {
@@ -7530,36 +7634,43 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7530
7634
  appearance: "default",
7531
7635
  disabled: !canNextPage,
7532
7636
  icon: "arrow-right",
7533
- onClick: () => setPageIndex(pageIndex + 1),
7637
+ onClick: function onClick() {
7638
+ return setPageIndex(pageIndex + 1);
7639
+ },
7534
7640
  "aria-label": showShortcutTexts ? texts.pagination.actions.nextPageWithShortcut : texts.pagination.actions.nextPage,
7535
7641
  tooltip: showShortcutTexts ? texts.pagination.actions.nextPageWithShortcut : texts.pagination.actions.nextPage
7536
7642
  }), React.createElement(IconButton, {
7537
7643
  appearance: "default",
7538
7644
  disabled: !canNextPage,
7539
7645
  icon: "arrow-end",
7540
- onClick: () => setPageIndex(pageCount - 1),
7646
+ onClick: function onClick() {
7647
+ return setPageIndex(pageCount - 1);
7648
+ },
7541
7649
  "aria-label": showShortcutTexts ? texts.pagination.actions.lastPageWithShortcut : texts.pagination.actions.lastPage,
7542
7650
  tooltip: showShortcutTexts ? texts.pagination.actions.lastPageWithShortcut : texts.pagination.actions.lastPage
7543
7651
  })));
7544
7652
  });
7545
7653
 
7546
- const Progress = ({
7547
- duration = undefined,
7548
- ...props
7549
- }) => {
7550
- let style;
7654
+ var _excluded$s = ["duration"];
7655
+ var Progress = function Progress(_ref) {
7656
+ var _cn;
7657
+
7658
+ var _ref$duration = _ref.duration,
7659
+ duration = _ref$duration === void 0 ? undefined : _ref$duration,
7660
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
7661
+
7662
+ var style;
7551
7663
 
7552
7664
  if (duration) {
7553
7665
  style = {
7554
- animationDuration: `${duration}ms`
7666
+ animationDuration: duration + "ms"
7555
7667
  };
7556
7668
  }
7557
7669
 
7558
- const className = cn('bg-grey-light rounded block h-1 overflow-hidden w-full', props.className);
7559
- const progressClassName = cn('yt-progress__bar block h-1', {
7560
- "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,
7561
- [`w-0 bg-grey-dark animate-[progress_linear]`]: duration
7562
- });
7670
+ var className = cn('bg-grey-light rounded block h-1 overflow-hidden w-full', props.className);
7671
+ var progressClassName = cn('yt-progress__bar block h-1', (_cn = {
7672
+ "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
7673
+ }, _cn["w-0 bg-grey-dark animate-[progress_linear]"] = duration, _cn));
7563
7674
  return React__default.createElement("span", Object.assign({}, props, {
7564
7675
  "data-taco": "progress",
7565
7676
  className: className
@@ -9237,22 +9348,19 @@ Tabs.List = TabList;
9237
9348
  Tabs.Trigger = TabTrigger;
9238
9349
  Tabs.Content = TabContent;
9239
9350
 
9240
- const Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
9241
- const {
9242
- defaultValue: _,
9243
- highlighted,
9244
- invalid,
9245
- onKeyDown,
9246
- ...otherProps
9247
- } = props;
9248
- const classNames = cn(getInputClasses(props), 'py-1 min-h-[75px] disabled:resize-none', props.className); // home and end keys only navigate to the start/end of textarea value if the textarea container does not scroll
9351
+ var _excluded$t = ["defaultValue", "highlighted", "invalid", "onKeyDown"];
9352
+ var Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
9353
+ var onKeyDown = props.onKeyDown,
9354
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$t);
9355
+
9356
+ var classNames = cn(getInputClasses(props), 'py-1 min-h-[75px] disabled:resize-none', props.className); // home and end keys only navigate to the start/end of textarea value if the textarea container does not scroll
9249
9357
  // if it has scroll height then the browser reverts to native scrolling behaviour only
9250
9358
  // so we manually override it to ensure _our_ desired behaviour remains intact
9251
9359
 
9252
- const handleKeyDown = event => {
9360
+ var handleKeyDown = function handleKeyDown(event) {
9253
9361
  if (event.key === 'Home' || event.key === 'End') {
9254
9362
  event.preventDefault();
9255
- const position = event.key === 'End' ? event.currentTarget.value.length : 0;
9363
+ var position = event.key === 'End' ? event.currentTarget.value.length : 0;
9256
9364
  event.currentTarget.setSelectionRange(position, position);
9257
9365
  event.currentTarget.scrollTop = event.key === 'End' ? event.currentTarget.scrollHeight : 0;
9258
9366
  }
@@ -9270,18 +9378,18 @@ const Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
9270
9378
  }));
9271
9379
  });
9272
9380
 
9273
- const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9274
- const {
9275
- label,
9276
- onChange,
9277
- ...otherProps
9278
- } = props;
9279
- const className = cn('group h-5 w-9 flex rounded-full inline-flex', {
9381
+ var _excluded$u = ["label", "onChange"];
9382
+ var Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9383
+ var label = props.label,
9384
+ onChange = props.onChange,
9385
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$u);
9386
+
9387
+ var className = cn('group h-5 w-9 flex rounded-full inline-flex', {
9280
9388
  'mr-2': !!label,
9281
9389
  'bg-grey-darker hover:bg-grey-dark aria-checked:bg-blue aria-checked:hover:bg-blue-light focus:yt-focus': !props.disabled,
9282
9390
  'bg-grey-light cursor-not-allowed aria-checked:bg-blue-light': props.disabled
9283
9391
  }, props.className);
9284
- const element = React.createElement(PrimitiveSwitch.Root, Object.assign({}, otherProps, {
9392
+ var element = React.createElement(PrimitiveSwitch.Root, Object.assign({}, otherProps, {
9285
9393
  className: className,
9286
9394
  onCheckedChange: onChange,
9287
9395
  ref: ref
@@ -9290,7 +9398,7 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9290
9398
  }));
9291
9399
 
9292
9400
  if (label) {
9293
- const labelClassName = cn('flex items-center cursor-pointer', {
9401
+ var labelClassName = cn('flex items-center cursor-pointer', {
9294
9402
  'cursor-not-allowed text-grey-dark': props.disabled
9295
9403
  });
9296
9404
  return React.createElement("label", {
@@ -9301,22 +9409,23 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9301
9409
  return element;
9302
9410
  });
9303
9411
 
9304
- const Tooltip$1 = ({
9305
- continuous,
9306
- index,
9307
- isLastStep,
9308
- step,
9309
- backProps,
9310
- primaryProps,
9311
- skipProps,
9312
- tooltipProps,
9313
- size,
9314
- locale,
9315
- disableTourSkipOnEsc
9316
- }) => {
9317
- const skipButtonRef = React.useRef(null);
9318
- React.useEffect(() => {
9319
- const onWindowKeyDown = event => {
9412
+ var _excluded$v = ["autoStart", "onComplete", "onClose", "onReady", "spotlightClicks", "disableCloseOnEsc", "disableScrollParentFix", "scrollOffset"];
9413
+
9414
+ var Tooltip$1 = function Tooltip(_ref) {
9415
+ var continuous = _ref.continuous,
9416
+ index = _ref.index,
9417
+ isLastStep = _ref.isLastStep,
9418
+ step = _ref.step,
9419
+ backProps = _ref.backProps,
9420
+ primaryProps = _ref.primaryProps,
9421
+ skipProps = _ref.skipProps,
9422
+ tooltipProps = _ref.tooltipProps,
9423
+ size = _ref.size,
9424
+ locale = _ref.locale,
9425
+ disableTourSkipOnEsc = _ref.disableTourSkipOnEsc;
9426
+ var skipButtonRef = React.useRef(null);
9427
+ React.useEffect(function () {
9428
+ var onWindowKeyDown = function onWindowKeyDown(event) {
9320
9429
  if (!disableTourSkipOnEsc) {
9321
9430
  if (event.keyCode === keycode('esc') && skipButtonRef.current !== null) {
9322
9431
  event.preventDefault();
@@ -9327,7 +9436,7 @@ const Tooltip$1 = ({
9327
9436
  };
9328
9437
 
9329
9438
  window.addEventListener('keydown', onWindowKeyDown);
9330
- return () => {
9439
+ return function () {
9331
9440
  window.removeEventListener('keydown', onWindowKeyDown);
9332
9441
  };
9333
9442
  }, []);
@@ -9346,31 +9455,31 @@ const Tooltip$1 = ({
9346
9455
  appearance: "discrete"
9347
9456
  }), locale.back), React.createElement(Button$1, Object.assign({}, primaryProps, {
9348
9457
  appearance: "primary"
9349
- }), continuous ? isLastStep ? `${locale.last} (${index + 1}/${size})` : `${locale.next} (${index + 1}/${size})` : locale.close)));
9458
+ }), continuous ? isLastStep ? locale.last + " (" + (index + 1) + "/" + size + ")" : locale.next + " (" + (index + 1) + "/" + size + ")" : locale.close)));
9350
9459
  }; // eslint-disable-next-line @typescript-eslint/no-unused-vars
9351
9460
 
9352
9461
 
9353
- const TourStep = _props => null;
9354
- const Tour = props => {
9355
- const {
9356
- texts: {
9357
- tour
9358
- }
9359
- } = useLocalization();
9360
- const {
9361
- autoStart: run,
9362
- onComplete,
9363
- onClose,
9364
- onReady,
9365
- spotlightClicks,
9366
- disableCloseOnEsc: disableTourSkipOnEsc,
9367
- disableScrollParentFix = false,
9368
- scrollOffset,
9369
- ...rest
9370
- } = props;
9371
- const steps = React.useMemo(() => {
9372
- return React.Children.map(props.children, child => {
9373
- const step = {
9462
+ var TourStep = function TourStep(_props) {
9463
+ return null;
9464
+ };
9465
+ var Tour = function Tour(props) {
9466
+ var _useLocalization = useLocalization(),
9467
+ tour = _useLocalization.texts.tour;
9468
+
9469
+ var run = props.autoStart,
9470
+ onComplete = props.onComplete,
9471
+ onClose = props.onClose,
9472
+ onReady = props.onReady,
9473
+ spotlightClicks = props.spotlightClicks,
9474
+ disableTourSkipOnEsc = props.disableCloseOnEsc,
9475
+ _props$disableScrollP = props.disableScrollParentFix,
9476
+ disableScrollParentFix = _props$disableScrollP === void 0 ? false : _props$disableScrollP,
9477
+ scrollOffset = props.scrollOffset,
9478
+ rest = _objectWithoutPropertiesLoose(props, _excluded$v);
9479
+
9480
+ var steps = React.useMemo(function () {
9481
+ return React.Children.map(props.children, function (child) {
9482
+ var step = {
9374
9483
  disableBeacon: !child.props.showBeacon,
9375
9484
  target: child.props.selector,
9376
9485
  placement: child.props.position,
@@ -9380,10 +9489,12 @@ const Tour = props => {
9380
9489
  return step;
9381
9490
  });
9382
9491
  }, [props.children]);
9383
- const getStep = React.useCallback(selector => {
9492
+ var getStep = React.useCallback(function (selector) {
9384
9493
  var _props$children$find;
9385
9494
 
9386
- return (_props$children$find = props.children.find(child => child.props.selector === selector)) === null || _props$children$find === void 0 ? void 0 : _props$children$find.props;
9495
+ return (_props$children$find = props.children.find(function (child) {
9496
+ return child.props.selector === selector;
9497
+ })) === null || _props$children$find === void 0 ? void 0 : _props$children$find.props;
9387
9498
  }, [props.children]);
9388
9499
 
9389
9500
  function callback(state) {
@@ -9413,10 +9524,12 @@ const Tour = props => {
9413
9524
  floaterProps: {
9414
9525
  disableAnimation: true
9415
9526
  },
9416
- tooltipComponent: tooltipProps => React.createElement(Tooltip$1, Object.assign({}, tooltipProps, {
9417
- locale: tour,
9418
- disableTourSkipOnEsc: disableTourSkipOnEsc
9419
- })),
9527
+ tooltipComponent: function tooltipComponent(tooltipProps) {
9528
+ return React.createElement(Tooltip$1, Object.assign({}, tooltipProps, {
9529
+ locale: tour,
9530
+ disableTourSkipOnEsc: disableTourSkipOnEsc
9531
+ }));
9532
+ },
9420
9533
  locale: tour,
9421
9534
  spotlightPadding: 8,
9422
9535
  spotlightClicks: spotlightClicks,
@@ -9458,10 +9571,10 @@ var useOnClickOutside = function useOnClickOutside(ref, callback) {
9458
9571
  }, [ref, callback]);
9459
9572
  };
9460
9573
 
9461
- var _excluded$c = ["noPadding"];
9574
+ var _excluded$w = ["noPadding"];
9462
9575
  var Content$6 = /*#__PURE__*/React.forwardRef(function CardContent(externalProps, ref) {
9463
9576
  var noPadding = externalProps.noPadding,
9464
- props = _objectWithoutPropertiesLoose(externalProps, _excluded$c);
9577
+ props = _objectWithoutPropertiesLoose(externalProps, _excluded$w);
9465
9578
 
9466
9579
  var className = cn('flex-grow overflow-auto', {
9467
9580
  'mx-4 mb-4': !noPadding
@@ -9552,6 +9665,7 @@ exports.parseFromISOString = parseFromISOString;
9552
9665
  exports.removeChildTableRow = removeChildTableRow;
9553
9666
  exports.setByRowIndexPath = setByRowIndexPath;
9554
9667
  exports.useBoundingClientRectListener = useBoundingClientRectListener;
9668
+ exports.useDropTarget = useDropTarget;
9555
9669
  exports.useListKeyboardNavigation = useListKeyboardNavigation;
9556
9670
  exports.useListScrollTo = useListScrollTo;
9557
9671
  exports.useLocalization = useLocalization;