@economic/taco 0.0.19-alpha.0 → 0.0.20-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 (42) hide show
  1. package/dist/components/Hanger/Hanger.d.ts +7 -3
  2. package/dist/esm/components/Combobox/Combobox.js +1 -1
  3. package/dist/esm/components/Combobox/Combobox.js.map +1 -1
  4. package/dist/esm/components/Hanger/Hanger.js +7 -3
  5. package/dist/esm/components/Hanger/Hanger.js.map +1 -1
  6. package/dist/esm/components/Menu/Menu.js +1 -0
  7. package/dist/esm/components/Menu/Menu.js.map +1 -1
  8. package/dist/esm/components/Popover/Popover.js +34 -29
  9. package/dist/esm/components/Popover/Popover.js.map +1 -1
  10. package/dist/esm/components/Progress/Progress.js +15 -11
  11. package/dist/esm/components/Progress/Progress.js.map +1 -1
  12. package/dist/esm/components/Provider/Provider.js +18 -13
  13. package/dist/esm/components/Provider/Provider.js.map +1 -1
  14. package/dist/esm/components/RadioGroup/RadioGroup.js +57 -45
  15. package/dist/esm/components/RadioGroup/RadioGroup.js.map +1 -1
  16. package/dist/esm/components/Select/Select.js +31 -30
  17. package/dist/esm/components/Select/Select.js.map +1 -1
  18. package/dist/esm/components/Spinner/Spinner.js +19 -12
  19. package/dist/esm/components/Spinner/Spinner.js.map +1 -1
  20. package/dist/esm/components/Switch/Switch.js +10 -9
  21. package/dist/esm/components/Switch/Switch.js.map +1 -1
  22. package/dist/esm/components/Tabs/Tabs.js +27 -25
  23. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  24. package/dist/esm/components/Textarea/Textarea.js +9 -11
  25. package/dist/esm/components/Textarea/Textarea.js.map +1 -1
  26. package/dist/esm/components/Toast/Toaster.js +118 -88
  27. package/dist/esm/components/Toast/Toaster.js.map +1 -1
  28. package/dist/esm/components/Tooltip/Tooltip.js +8 -7
  29. package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
  30. package/dist/esm/components/Tour/Tour.js +50 -44
  31. package/dist/esm/components/Tour/Tour.js.map +1 -1
  32. package/dist/esm/components/Treeview/Treeview.js +36 -26
  33. package/dist/esm/components/Treeview/Treeview.js.map +1 -1
  34. package/dist/esm/components/VisuallyHidden/VisuallyHidden.js +1 -1
  35. package/dist/esm/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
  36. package/dist/taco.cjs.development.js +518 -427
  37. package/dist/taco.cjs.development.js.map +1 -1
  38. package/dist/taco.cjs.production.min.js +1 -1
  39. package/dist/taco.cjs.production.min.js.map +1 -1
  40. package/dist/utils/tailwind.d.ts +1 -1
  41. package/package.json +2 -2
  42. package/types.json +379 -405
@@ -3199,7 +3199,7 @@ var Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(props, ref) {
3199
3199
  }));
3200
3200
  });
3201
3201
 
3202
- const VisuallyHidden = /*#__PURE__*/React.forwardRef(function VisuallyHidden(props, ref) {
3202
+ var VisuallyHidden = /*#__PURE__*/React.forwardRef(function VisuallyHidden(props, ref) {
3203
3203
  return React.createElement("span", Object.assign({}, props, {
3204
3204
  className: "sr-only",
3205
3205
  ref: ref
@@ -3317,13 +3317,13 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(props, ref) {
3317
3317
  }), React.Children.count(props.children) > 1 ? React.Children.map(props.children, child => typeof child === 'string' ? React.createElement("span", null, child) : child) : props.children);
3318
3318
  });
3319
3319
 
3320
- const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
3321
- const {
3322
- title,
3323
- children,
3324
- placement,
3325
- ...otherProps
3326
- } = props;
3320
+ var _excluded$3 = ["title", "children", "placement"];
3321
+ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
3322
+ var title = props.title,
3323
+ children = props.children,
3324
+ placement = props.placement,
3325
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$3);
3326
+
3327
3327
  return React.createElement(TooltipPrimitive.Root, {
3328
3328
  delayDuration: 50
3329
3329
  }, React.createElement(TooltipPrimitive.Trigger, {
@@ -3414,13 +3414,13 @@ const createButton = (props, className, ref) => {
3414
3414
  return button;
3415
3415
  };
3416
3416
 
3417
- var _excluded$3 = ["appearance", "icon", "rounded"];
3417
+ var _excluded$4 = ["appearance", "icon", "rounded"];
3418
3418
  var IconButton = /*#__PURE__*/React.forwardRef(function IconButton(props, ref) {
3419
3419
  var appearance = props.appearance,
3420
3420
  icon = props.icon,
3421
3421
  _props$rounded = props.rounded,
3422
3422
  rounded = _props$rounded === void 0 ? false : _props$rounded,
3423
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$3);
3423
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$4);
3424
3424
 
3425
3425
  var className = cn(getButtonClasses(), getAppearanceClasses(appearance, true), {
3426
3426
  'rounded-full': rounded,
@@ -3459,11 +3459,11 @@ var Banner = /*#__PURE__*/React.forwardRef(function Banner(props, ref) {
3459
3459
  }) : null);
3460
3460
  });
3461
3461
 
3462
- var _excluded$4 = ["appearance", "fluid"];
3462
+ var _excluded$5 = ["appearance", "fluid"];
3463
3463
  var Button$1 = /*#__PURE__*/React.forwardRef(function Button(props, ref) {
3464
3464
  var appearance = props.appearance,
3465
3465
  fluid = props.fluid,
3466
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$4);
3466
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$5);
3467
3467
 
3468
3468
  var className = cn(getButtonClasses(), getAppearanceClasses(appearance), 'rounded px-3', {
3469
3469
  'cursor-not-allowed opacity-50': props.disabled,
@@ -3534,21 +3534,27 @@ function useTimer(duration = 0, callback) {
3534
3534
  };
3535
3535
  }
3536
3536
 
3537
- const Spinner$1 = /*#__PURE__*/React__default.forwardRef(function Spinner(props, ref) {
3538
- const {
3539
- delay = 500,
3540
- label,
3541
- ...otherProps
3542
- } = props;
3543
- const [visible, setVisibility] = React__default.useState(!delay);
3544
- React__default.useEffect(() => {
3545
- let timeout;
3537
+ var _excluded$6 = ["delay", "label"];
3538
+ var Spinner$1 = /*#__PURE__*/React__default.forwardRef(function Spinner(props, ref) {
3539
+ var _props$delay = props.delay,
3540
+ delay = _props$delay === void 0 ? 500 : _props$delay,
3541
+ label = props.label,
3542
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$6);
3543
+
3544
+ var _React$useState = React__default.useState(!delay),
3545
+ visible = _React$useState[0],
3546
+ setVisibility = _React$useState[1];
3547
+
3548
+ React__default.useEffect(function () {
3549
+ var timeout;
3546
3550
 
3547
3551
  if (delay) {
3548
- timeout = window.setTimeout(() => setVisibility(true), delay);
3552
+ timeout = window.setTimeout(function () {
3553
+ return setVisibility(true);
3554
+ }, delay);
3549
3555
  }
3550
3556
 
3551
- return () => {
3557
+ return function () {
3552
3558
  if (timeout) {
3553
3559
  clearTimeout(timeout);
3554
3560
  }
@@ -3559,7 +3565,7 @@ const Spinner$1 = /*#__PURE__*/React__default.forwardRef(function Spinner(props,
3559
3565
  return null;
3560
3566
  }
3561
3567
 
3562
- const className = cn('inline-flex flex-col relative items-center', otherProps.className);
3568
+ var className = cn('inline-flex flex-col relative items-center', otherProps.className);
3563
3569
  return React__default.createElement("div", Object.assign({}, otherProps, {
3564
3570
  className: className,
3565
3571
  "data-taco": "spinner",
@@ -3685,49 +3691,62 @@ const Toast = ({
3685
3691
  }));
3686
3692
  };
3687
3693
 
3688
- const DEFAULT_AUTO_CLOSE_TIMEOUT = 7500;
3689
- const ToastContext = /*#__PURE__*/React.createContext({});
3694
+ var _excluded$7 = ["children"];
3695
+ var DEFAULT_AUTO_CLOSE_TIMEOUT = 7500;
3696
+ var ToastContext = /*#__PURE__*/React.createContext({});
3690
3697
 
3691
- const insertToastWithoutDuplicates = (currentToasts, id, content, options, close) => {
3692
- const nextToasts = [...currentToasts];
3693
- const existingToastIndex = currentToasts.findIndex(toast => JSON.stringify(toast.content) === JSON.stringify(content));
3698
+ var insertToastWithoutDuplicates = function insertToastWithoutDuplicates(currentToasts, id, content, options, close) {
3699
+ var nextToasts = [].concat(currentToasts);
3700
+ var existingToastIndex = currentToasts.findIndex(function (toast) {
3701
+ return JSON.stringify(toast.content) === JSON.stringify(content);
3702
+ });
3694
3703
 
3695
3704
  if (existingToastIndex > -1) {
3696
3705
  nextToasts[existingToastIndex].lastDuplicateId = id;
3697
3706
  nextToasts[existingToastIndex].lastUpdated = Date.now();
3698
3707
  } else {
3699
3708
  nextToasts.push({
3700
- id,
3709
+ id: id,
3701
3710
  content: typeof content === 'function' ? content(close) : content,
3702
- options
3711
+ options: options
3703
3712
  });
3704
3713
  }
3705
3714
 
3706
3715
  return nextToasts;
3707
3716
  };
3708
3717
 
3709
- const ToastProvider = ({
3710
- children,
3711
- ...props
3712
- }) => {
3713
- const [toasts, setToasts] = React.useState([]);
3718
+ var ToastProvider = function ToastProvider(_ref) {
3719
+ var children = _ref.children,
3720
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3721
+
3722
+ var _React$useState = React.useState([]),
3723
+ toasts = _React$useState[0],
3724
+ setToasts = _React$useState[1];
3714
3725
 
3715
- const handleClose = id => {
3716
- setToasts(currentToasts => currentToasts.filter(toast => toast.id !== id));
3726
+ var handleClose = function handleClose(id) {
3727
+ setToasts(function (currentToasts) {
3728
+ return currentToasts.filter(function (toast) {
3729
+ return toast.id !== id;
3730
+ });
3731
+ });
3717
3732
  }; // memoize (useCallback) this function,
3718
3733
  // it is the value of the context provider and we don't want it to trigger state tree re-renders on provider children
3719
3734
 
3720
3735
 
3721
- const toaster = React.useCallback((content, options) => {
3722
- const id = uuid.v4();
3736
+ var toaster = React.useCallback(function (content, options) {
3737
+ var id = uuid.v4();
3723
3738
 
3724
- const close = () => handleClose(id);
3739
+ var close = function close() {
3740
+ return handleClose(id);
3741
+ };
3725
3742
 
3726
- setToasts(currentToasts => insertToastWithoutDuplicates(currentToasts, id, content, options, close));
3743
+ setToasts(function (currentToasts) {
3744
+ return insertToastWithoutDuplicates(currentToasts, id, content, options, close);
3745
+ });
3727
3746
 
3728
- const update = (content, options) => {
3729
- setToasts(currentToasts => {
3730
- const nextToasts = currentToasts.filter(toast => {
3747
+ var update = function update(content, options) {
3748
+ setToasts(function (currentToasts) {
3749
+ var nextToasts = currentToasts.filter(function (toast) {
3731
3750
  if (toast.lastDuplicateId) {
3732
3751
  return toast.lastDuplicateId !== id;
3733
3752
  }
@@ -3738,70 +3757,80 @@ const ToastProvider = ({
3738
3757
  });
3739
3758
  };
3740
3759
 
3741
- const success = (content, options) => {
3742
- update(content, {
3743
- autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT,
3744
- ...options,
3760
+ var success = function success(content, options) {
3761
+ update(content, _extends({
3762
+ autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT
3763
+ }, options, {
3745
3764
  type: 'success'
3746
- });
3765
+ }));
3747
3766
  };
3748
3767
 
3749
- const error = (content, options) => {
3750
- update(content, { ...options,
3768
+ var error = function error(content, options) {
3769
+ update(content, _extends({}, options, {
3751
3770
  type: 'error'
3752
- });
3771
+ }));
3753
3772
  };
3754
3773
 
3755
- const warning = (content, options) => {
3756
- update(content, { ...options,
3774
+ var warning = function warning(content, options) {
3775
+ update(content, _extends({}, options, {
3757
3776
  type: 'warning'
3758
- });
3777
+ }));
3759
3778
  };
3760
3779
 
3761
- const information = (content, options) => {
3762
- update(content, { ...options,
3780
+ var information = function information(content, options) {
3781
+ update(content, _extends({}, options, {
3763
3782
  type: 'information'
3764
- });
3783
+ }));
3765
3784
  };
3766
3785
 
3767
- const loading = (content, options) => {
3768
- update(content, { ...options,
3786
+ var loading = function loading(content, options) {
3787
+ update(content, _extends({}, options, {
3769
3788
  type: 'loading'
3770
- });
3789
+ }));
3771
3790
  };
3772
3791
 
3773
3792
  return {
3774
- success,
3775
- error,
3776
- warning,
3777
- information,
3778
- loading,
3779
- close
3793
+ success: success,
3794
+ error: error,
3795
+ warning: warning,
3796
+ information: information,
3797
+ loading: loading,
3798
+ close: close
3780
3799
  };
3781
3800
  }, []); // no need to rebind these every render, do them once in an effect
3782
3801
 
3783
- React.useEffect(() => {
3784
- toaster.success = (content, options) => toaster(content, {
3785
- autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT,
3786
- ...options,
3787
- type: 'success'
3788
- });
3802
+ React.useEffect(function () {
3803
+ toaster.success = function (content, options) {
3804
+ return toaster(content, _extends({
3805
+ autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT
3806
+ }, options, {
3807
+ type: 'success'
3808
+ }));
3809
+ };
3789
3810
 
3790
- toaster.error = (content, options) => toaster(content, { ...options,
3791
- type: 'error'
3792
- });
3811
+ toaster.error = function (content, options) {
3812
+ return toaster(content, _extends({}, options, {
3813
+ type: 'error'
3814
+ }));
3815
+ };
3793
3816
 
3794
- toaster.warning = (content, options) => toaster(content, { ...options,
3795
- type: 'warning'
3796
- });
3817
+ toaster.warning = function (content, options) {
3818
+ return toaster(content, _extends({}, options, {
3819
+ type: 'warning'
3820
+ }));
3821
+ };
3797
3822
 
3798
- toaster.information = (content, options) => toaster(content, { ...options,
3799
- type: 'information'
3800
- });
3823
+ toaster.information = function (content, options) {
3824
+ return toaster(content, _extends({}, options, {
3825
+ type: 'information'
3826
+ }));
3827
+ };
3801
3828
 
3802
- toaster.loading = (content, options) => toaster(content, { ...options,
3803
- type: 'loading'
3804
- });
3829
+ toaster.loading = function (content, options) {
3830
+ return toaster(content, _extends({}, options, {
3831
+ type: 'loading'
3832
+ }));
3833
+ };
3805
3834
  }, []);
3806
3835
  return React.createElement(ToastContext.Provider, Object.assign({}, props, {
3807
3836
  value: toaster
@@ -3811,37 +3840,43 @@ const ToastProvider = ({
3811
3840
  role: "log"
3812
3841
  }, React.createElement(framerMotion.AnimatePresence, {
3813
3842
  initial: false
3814
- }, toasts.map(toast => React.createElement(framerMotion.motion.div, {
3815
- key: toast.id,
3816
- transition: {
3817
- type: 'spring',
3818
- damping: 20,
3819
- stiffness: 300
3820
- },
3821
- initial: {
3822
- opacity: 0,
3823
- y: 10,
3824
- scale: 0.5
3825
- },
3826
- animate: {
3827
- opacity: 1,
3828
- y: 0,
3829
- scale: 1
3830
- },
3831
- exit: {
3832
- opacity: 0,
3833
- scale: 0.5,
3843
+ }, toasts.map(function (toast) {
3844
+ return React.createElement(framerMotion.motion.div, {
3845
+ key: toast.id,
3834
3846
  transition: {
3835
- duration: 0.2
3847
+ type: 'spring',
3848
+ damping: 20,
3849
+ stiffness: 300
3850
+ },
3851
+ initial: {
3852
+ opacity: 0,
3853
+ y: 10,
3854
+ scale: 0.5
3855
+ },
3856
+ animate: {
3857
+ opacity: 1,
3858
+ y: 0,
3859
+ scale: 1
3860
+ },
3861
+ exit: {
3862
+ opacity: 0,
3863
+ scale: 0.5,
3864
+ transition: {
3865
+ duration: 0.2
3866
+ }
3836
3867
  }
3837
- }
3838
- }, React.createElement(Toast, Object.assign({}, toast, {
3839
- onClose: () => handleClose(toast.id)
3840
- })))))));
3868
+ }, React.createElement(Toast, Object.assign({}, toast, {
3869
+ onClose: function onClose() {
3870
+ return handleClose(toast.id);
3871
+ }
3872
+ })));
3873
+ }))));
3874
+ };
3875
+ var useToast = function useToast() {
3876
+ return React.useContext(ToastContext);
3841
3877
  };
3842
- const useToast = () => React.useContext(ToastContext);
3843
3878
 
3844
- const defaultLocalisationTexts = {
3879
+ var defaultLocalisationTexts = {
3845
3880
  calendar: {
3846
3881
  months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
3847
3882
  weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
@@ -3913,32 +3948,37 @@ const defaultLocalisationTexts = {
3913
3948
  inputLabel: 'Search...'
3914
3949
  }
3915
3950
  };
3916
- const defaultLocalizationContext = {
3951
+ var defaultLocalizationContext = {
3917
3952
  locale: 'en-GB',
3918
3953
  texts: defaultLocalisationTexts,
3919
3954
  formatting: {
3920
3955
  date: 'dd.mm.yy'
3921
3956
  }
3922
3957
  };
3923
- const Context = /*#__PURE__*/React.createContext({
3958
+ var Context = /*#__PURE__*/React.createContext({
3924
3959
  localization: defaultLocalizationContext
3925
3960
  });
3926
- const Provider = props => {
3927
- const {
3928
- children,
3929
- localization = defaultLocalizationContext
3930
- } = props;
3931
- const value = React.useMemo(() => ({
3932
- localization
3933
- }), [localization]);
3961
+ var Provider = function Provider(props) {
3962
+ var children = props.children,
3963
+ _props$localization = props.localization,
3964
+ localization = _props$localization === void 0 ? defaultLocalizationContext : _props$localization;
3965
+ var value = React.useMemo(function () {
3966
+ return {
3967
+ localization: localization
3968
+ };
3969
+ }, [localization]);
3934
3970
  return React.createElement(Context.Provider, {
3935
3971
  value: value
3936
3972
  }, React.createElement(ToastProvider, null, children));
3937
3973
  };
3938
- const useTaco = () => React.useContext(Context);
3939
- const useLocalization = () => useTaco().localization;
3974
+ var useTaco = function useTaco() {
3975
+ return React.useContext(Context);
3976
+ };
3977
+ var useLocalization = function useLocalization() {
3978
+ return useTaco().localization;
3979
+ };
3940
3980
 
3941
- var _excluded$5 = ["onChange", "value"];
3981
+ var _excluded$8 = ["onChange", "value"];
3942
3982
 
3943
3983
  var renderDay = function renderDay(day, modifiers) {
3944
3984
  return modifiers.disabled ? React.createElement("span", {
@@ -4017,7 +4057,7 @@ var Navbar = /*#__PURE__*/React.memo(function (_ref) {
4017
4057
  var Calendar$1 = /*#__PURE__*/React.forwardRef(function Calendar(props, ref) {
4018
4058
  var handleChange = props.onChange,
4019
4059
  value = props.value,
4020
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$5);
4060
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$8);
4021
4061
 
4022
4062
  var _useLocalization2 = useLocalization(),
4023
4063
  locale = _useLocalization2.locale,
@@ -4081,7 +4121,7 @@ var Calendar$1 = /*#__PURE__*/React.forwardRef(function Calendar(props, ref) {
4081
4121
  })));
4082
4122
  });
4083
4123
 
4084
- var _excluded$6 = ["checked", "highlighted", "indeterminate", "invalid", "label", "onChange"];
4124
+ var _excluded$9 = ["checked", "highlighted", "indeterminate", "invalid", "label", "onChange"];
4085
4125
  var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
4086
4126
  var checked = props.checked,
4087
4127
  highlighted = props.highlighted,
@@ -4089,7 +4129,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
4089
4129
  invalid = props.invalid,
4090
4130
  label = props.label,
4091
4131
  onChange = props.onChange,
4092
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$6);
4132
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$9);
4093
4133
 
4094
4134
  var className = cn('h-5 w-5 border rounded text-sm', {
4095
4135
  'mr-2': !!label,
@@ -4191,14 +4231,14 @@ const getButtonStateClasses = value => {
4191
4231
  }
4192
4232
  };
4193
4233
 
4194
- var _excluded$7 = ["button", "icon", "highlighted", "onKeyDown", "state", "autoFocus"];
4234
+ var _excluded$a = ["button", "icon", "highlighted", "onKeyDown", "state", "autoFocus"];
4195
4235
  var Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
4196
4236
  var button = props.button,
4197
4237
  icon = props.icon,
4198
4238
  onKeyDown = props.onKeyDown,
4199
4239
  state = props.state,
4200
4240
  autoFocus = props.autoFocus,
4201
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$7);
4241
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$a);
4202
4242
 
4203
4243
  var inputRef = useProxiedRef(ref);
4204
4244
  var hasContainer = button || icon;
@@ -5005,11 +5045,11 @@ var useBoundingClientRectListener = function useBoundingClientRectListener(ref)
5005
5045
  return dimensions;
5006
5046
  };
5007
5047
 
5008
- var _excluded$8 = ["className", "style"];
5048
+ var _excluded$b = ["className", "style"];
5009
5049
  var Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
5010
5050
  var externalClassName = props.className,
5011
5051
  style = props.style,
5012
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$8);
5052
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$b);
5013
5053
 
5014
5054
  var _useCombobox = useCombobox(otherProps, ref),
5015
5055
  combobox = _useCombobox.combobox,
@@ -5036,7 +5076,7 @@ var Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
5036
5076
  autoComplete: "off",
5037
5077
  button: props.inline ? React.createElement(IconButton, {
5038
5078
  appearance: "discrete",
5039
- className: "focus:!border-none focus:!shadow-none active:!border-none",
5079
+ className: "!border-l-0 focus:!border-none focus:!shadow-none active:!border-none",
5040
5080
  icon: popover.open ? 'chevron-up' : 'chevron-down',
5041
5081
  onClick: function onClick() {
5042
5082
  return popover.onOpenChange(true);
@@ -5279,18 +5319,19 @@ function mergeRefs(refs) {
5279
5319
  };
5280
5320
  }
5281
5321
 
5282
- const PopoverContext = /*#__PURE__*/React.createContext({
5322
+ var _excluded$c = ["children", "trigger"];
5323
+ var PopoverContext = /*#__PURE__*/React.createContext({
5283
5324
  props: {},
5284
5325
  ref: null
5285
5326
  });
5286
- const Trigger$1 = /*#__PURE__*/React.forwardRef(function PopoverTrigger(props, ref) {
5327
+ var Trigger$1 = /*#__PURE__*/React.forwardRef(function PopoverTrigger(props, ref) {
5287
5328
  var _props$children;
5288
5329
 
5289
- const context = React.useContext(PopoverContext);
5290
- let children = props.children;
5330
+ var context = React.useContext(PopoverContext);
5331
+ var children = props.children;
5291
5332
 
5292
5333
  if (React.isValidElement(props.children) && typeof ((_props$children = props.children) === null || _props$children === void 0 ? void 0 : _props$children.type) === 'function') {
5293
- 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`);
5334
+ 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");
5294
5335
  children = React.createElement("span", null, props.children);
5295
5336
  }
5296
5337
 
@@ -5300,22 +5341,22 @@ const Trigger$1 = /*#__PURE__*/React.forwardRef(function PopoverTrigger(props, r
5300
5341
  asChild: true
5301
5342
  }));
5302
5343
  });
5303
- const RenderPropWrapper = /*#__PURE__*/React.forwardRef(function RenderPropWrapper({
5304
- children,
5305
- onClick
5306
- }, ref) {
5307
- const close = () => {
5344
+ var RenderPropWrapper = /*#__PURE__*/React.forwardRef(function RenderPropWrapper(_ref, ref) {
5345
+ var children = _ref.children,
5346
+ onClick = _ref.onClick;
5347
+
5348
+ var close = function close() {
5308
5349
  onClick(new CustomEvent('hide'));
5309
5350
  };
5310
5351
 
5311
5352
  return children({
5312
- close,
5313
- ref
5353
+ close: close,
5354
+ ref: ref
5314
5355
  });
5315
5356
  });
5316
- const Content$1 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, ref) {
5317
- const className = cn('bg-white focus:border-blue-light', props.className);
5318
- let output;
5357
+ var Content$1 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, ref) {
5358
+ var className = cn('bg-white focus:border-blue-light', props.className);
5359
+ var output;
5319
5360
 
5320
5361
  if (typeof props.children === 'function') {
5321
5362
  output = React.createElement(PopoverPrimitive.Close, {
@@ -5333,20 +5374,23 @@ const Content$1 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, r
5333
5374
  className: "text-white"
5334
5375
  }));
5335
5376
  });
5336
- const Close$1 = /*#__PURE__*/React.forwardRef((props, ref) => React.createElement(PopoverPrimitive.Close, Object.assign({}, props, {
5337
- ref: ref,
5338
- asChild: true
5339
- })));
5340
- const Popover = /*#__PURE__*/React.forwardRef(function Popover(props, ref) {
5341
- const {
5342
- children,
5343
- trigger,
5344
- ...otherProps
5345
- } = props;
5346
- const context = React.useMemo(() => ({
5347
- props: otherProps,
5348
- ref
5349
- }), [otherProps]);
5377
+ var Close$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
5378
+ return React.createElement(PopoverPrimitive.Close, Object.assign({}, props, {
5379
+ ref: ref,
5380
+ asChild: true
5381
+ }));
5382
+ });
5383
+ var Popover = /*#__PURE__*/React.forwardRef(function Popover(props, ref) {
5384
+ var children = props.children,
5385
+ trigger = props.trigger,
5386
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$c);
5387
+
5388
+ var context = React.useMemo(function () {
5389
+ return {
5390
+ props: otherProps,
5391
+ ref: ref
5392
+ };
5393
+ }, [otherProps]);
5350
5394
  return React.createElement(PopoverContext.Provider, {
5351
5395
  value: context
5352
5396
  }, React.createElement(PopoverPrimitive.Root, null, trigger && React.createElement(Trigger$1, null, trigger), children));
@@ -5355,7 +5399,7 @@ Popover.Trigger = Trigger$1;
5355
5399
  Popover.Content = Content$1;
5356
5400
  Popover.Close = Close$1;
5357
5401
 
5358
- var _excluded$9 = ["className", "onReset", "style", "shortcuts", "shortcutsText"];
5402
+ var _excluded$d = ["className", "onReset", "style", "shortcuts", "shortcutsText"];
5359
5403
  var Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref) {
5360
5404
  var _input$disabled;
5361
5405
 
@@ -5364,7 +5408,7 @@ var Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref) {
5364
5408
  style = props.style,
5365
5409
  shortcuts = props.shortcuts,
5366
5410
  shortcutsText = props.shortcutsText,
5367
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$9);
5411
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$d);
5368
5412
 
5369
5413
  var _useDatepicker = useDatepicker(otherProps, ref),
5370
5414
  calendar = _useDatepicker.calendar,
@@ -5656,7 +5700,7 @@ const Extra = /*#__PURE__*/React.forwardRef(function DialogExtra(props, ref) {
5656
5700
  });
5657
5701
  Extra.displayName = 'DialogExtra';
5658
5702
 
5659
- var _excluded$a = ["children", "closeOnEscape", "defaultOpen", "draggable", "onChange", "onClose", "open", "showCloseButton", "size", "trigger"];
5703
+ var _excluded$e = ["children", "closeOnEscape", "defaultOpen", "draggable", "onChange", "onClose", "open", "showCloseButton", "size", "trigger"];
5660
5704
 
5661
5705
  var useSeparatedChildren = function useSeparatedChildren(initialChildren) {
5662
5706
  return React.useMemo(function () {
@@ -5693,7 +5737,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function Dialog(props, ref) {
5693
5737
  _props$size = props.size,
5694
5738
  size = _props$size === void 0 ? 'sm' : _props$size,
5695
5739
  trigger = props.trigger,
5696
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$a);
5740
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$e);
5697
5741
 
5698
5742
  var _useSeparatedChildren = useSeparatedChildren(initialChildren),
5699
5743
  children = _useSeparatedChildren[0],
@@ -5743,13 +5787,13 @@ Dialog.Extra = Extra;
5743
5787
  Dialog.Drawer = Drawer;
5744
5788
  Dialog.Close = Close$2;
5745
5789
 
5746
- var _excluded$b = ["disabled", "children", "message", "state"];
5790
+ var _excluded$f = ["disabled", "children", "message", "state"];
5747
5791
  var Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
5748
5792
  var disabled = props.disabled,
5749
5793
  children = props.children,
5750
5794
  message = props.message,
5751
5795
  state = props.state,
5752
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$b);
5796
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$f);
5753
5797
 
5754
5798
  var className = cn('flex flex-col font-bold text-xs leading-loose pb-4 min-h-[theme(spacing.18)]', {
5755
5799
  'text-grey-dark': disabled
@@ -5772,11 +5816,11 @@ var Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
5772
5816
  }, message));
5773
5817
  });
5774
5818
 
5775
- var _excluded$c = ["horizontal"];
5819
+ var _excluded$g = ["horizontal"];
5776
5820
  var Form = /*#__PURE__*/React.forwardRef(function Form(props, ref) {
5777
5821
  var _props$horizontal = props.horizontal,
5778
5822
  horizontal = _props$horizontal === void 0 ? false : _props$horizontal,
5779
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$c);
5823
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$g);
5780
5824
 
5781
5825
  var className = cn('yt-form', {
5782
5826
  'yt-form--horizontal flex flex-wrap': horizontal
@@ -5788,11 +5832,11 @@ var Form = /*#__PURE__*/React.forwardRef(function Form(props, ref) {
5788
5832
  }));
5789
5833
  });
5790
5834
 
5791
- var _excluded$d = ["as"];
5835
+ var _excluded$h = ["as"];
5792
5836
  var Group = /*#__PURE__*/React.forwardRef(function Group(props, ref) {
5793
5837
  var _props$as = props.as,
5794
5838
  Tag = _props$as === void 0 ? 'span' : _props$as,
5795
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$d);
5839
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$h);
5796
5840
 
5797
5841
  var className = cn('flex ', props.className);
5798
5842
  return React.createElement(Tag, Object.assign({}, otherProps, {
@@ -5802,7 +5846,7 @@ var Group = /*#__PURE__*/React.forwardRef(function Group(props, ref) {
5802
5846
  }));
5803
5847
  });
5804
5848
 
5805
- var _excluded$e = ["anchor", "children"];
5849
+ var _excluded$i = ["anchor", "children", "defaultOpen"];
5806
5850
  var HangerContext = /*#__PURE__*/React.createContext({
5807
5851
  props: {},
5808
5852
  ref: null
@@ -5825,6 +5869,8 @@ var Anchor = /*#__PURE__*/React.forwardRef(function HangerAnchor(props, ref) {
5825
5869
  }));
5826
5870
  });
5827
5871
  var Content$3 = /*#__PURE__*/React.forwardRef(function HangerContent(props, ref) {
5872
+ var context = React.useContext(HangerContext);
5873
+
5828
5874
  var _useLocalization = useLocalization(),
5829
5875
  texts = _useLocalization.texts;
5830
5876
 
@@ -5849,13 +5895,15 @@ var Content$3 = /*#__PURE__*/React.forwardRef(function HangerContent(props, ref)
5849
5895
  "aria-label": texts.hanger.close,
5850
5896
  className: "absolute top-0 right-0 ml-2 mr-2 mt-2 text-white",
5851
5897
  icon: "close",
5852
- onClick: props.onClose
5898
+ onClick: context.props.onClose
5853
5899
  })));
5854
5900
  });
5855
5901
  var Hanger = /*#__PURE__*/React.forwardRef(function Hanger(props, ref) {
5856
5902
  var anchor = props.anchor,
5857
5903
  children = props.children,
5858
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$e);
5904
+ _props$defaultOpen = props.defaultOpen,
5905
+ defaultOpen = _props$defaultOpen === void 0 ? true : _props$defaultOpen,
5906
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$i);
5859
5907
 
5860
5908
  var context = React.useMemo(function () {
5861
5909
  return {
@@ -5866,7 +5914,7 @@ var Hanger = /*#__PURE__*/React.forwardRef(function Hanger(props, ref) {
5866
5914
  return React.createElement(HangerContext.Provider, {
5867
5915
  value: context
5868
5916
  }, React.createElement(PopoverPrimitive.Root, {
5869
- defaultOpen: true
5917
+ defaultOpen: defaultOpen
5870
5918
  }, anchor && React.createElement(Anchor, null, anchor), children));
5871
5919
  });
5872
5920
  Hanger.Anchor = Anchor;
@@ -6214,11 +6262,11 @@ const useMultiListbox = ({
6214
6262
  };
6215
6263
  };
6216
6264
 
6217
- var _excluded$f = ["className"],
6265
+ var _excluded$j = ["className"],
6218
6266
  _excluded2$1 = ["className"];
6219
6267
  var Listbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6220
6268
  var externalClassName = props.className,
6221
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$f);
6269
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$j);
6222
6270
 
6223
6271
  var _useListbox = useListbox(otherProps, ref),
6224
6272
  list = _useListbox.list,
@@ -6519,26 +6567,34 @@ const Checkbox$1 = props => {
6519
6567
  })), children);
6520
6568
  };
6521
6569
 
6522
- const getRadioGroupItemValueAsString = value => value === null ? '' : String(value);
6523
- const findByValue$1 = (values, valueAsString) => values.find(value => getRadioGroupItemValueAsString(value) === valueAsString);
6524
- const RadioGroupContext = /*#__PURE__*/React.createContext({
6570
+ var _excluded$k = ["children", "value"],
6571
+ _excluded2$2 = ["children", "defaultValue", "disabled", "invalid", "onChange", "orientation", "value"];
6572
+ var getRadioGroupItemValueAsString = function getRadioGroupItemValueAsString(value) {
6573
+ return value === null ? '' : String(value);
6574
+ };
6575
+ var findByValue$1 = function findByValue(values, valueAsString) {
6576
+ return values.find(function (value) {
6577
+ return getRadioGroupItemValueAsString(value) === valueAsString;
6578
+ });
6579
+ };
6580
+ var RadioGroupContext = /*#__PURE__*/React.createContext({
6525
6581
  disabled: false,
6526
6582
  invalid: false
6527
6583
  });
6528
- const RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(props, ref) {
6529
- const context = React.useContext(RadioGroupContext);
6530
- const {
6531
- children,
6532
- value,
6533
- ...otherProps
6534
- } = props;
6535
- const disabled = context.disabled || props.disabled;
6536
- const className = cn('flex items-center justify-center h-4 w-4 mr-2 rounded-full bg-white border-2 ', {
6584
+ var RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(props, ref) {
6585
+ var context = React.useContext(RadioGroupContext);
6586
+
6587
+ var children = props.children,
6588
+ value = props.value,
6589
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$k);
6590
+
6591
+ var disabled = context.disabled || props.disabled;
6592
+ var className = cn('flex items-center justify-center h-4 w-4 mr-2 rounded-full bg-white border-2 ', {
6537
6593
  'border-grey-dark focus:border-blue focus:yt-focus aria-checked:bg-blue aria-checked:border-blue': !disabled && !context.invalid,
6538
6594
  'border-grey cursor-not-allowed aria-checked:bg-grey-dark aria-checked:border-grey-dark': disabled,
6539
6595
  'border-red text-red focus:border-red focus:yt-focus-red aria-checked:bg-red aria-checked:border-red': context.invalid && !disabled
6540
6596
  });
6541
- const labelClassName = cn('flex items-center cursor-pointer', {
6597
+ var labelClassName = cn('flex items-center cursor-pointer', {
6542
6598
  'cursor-not-allowed text-grey-dark': disabled
6543
6599
  });
6544
6600
  return React.createElement("label", {
@@ -6552,34 +6608,38 @@ const RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(pro
6552
6608
  className: "h-2 w-2 rounded-full bg-white"
6553
6609
  })), children);
6554
6610
  });
6555
- const useRadioGroup = props => {
6556
- const {
6557
- children,
6558
- defaultValue,
6559
- disabled,
6560
- invalid,
6561
- onChange,
6562
- orientation = 'vertical',
6563
- value,
6564
- ...otherProps
6565
- } = props;
6566
- const values = React.useMemo(() => {
6567
- const radioGroupItemValues = [];
6568
- React.Children.forEach(children, child => {
6611
+ var useRadioGroup = function useRadioGroup(props) {
6612
+ var children = props.children,
6613
+ defaultValue = props.defaultValue,
6614
+ disabled = props.disabled,
6615
+ invalid = props.invalid,
6616
+ onChange = props.onChange,
6617
+ _props$orientation = props.orientation,
6618
+ orientation = _props$orientation === void 0 ? 'vertical' : _props$orientation,
6619
+ value = props.value,
6620
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$2);
6621
+
6622
+ var values = React.useMemo(function () {
6623
+ var radioGroupItemValues = [];
6624
+ React.Children.forEach(children, function (child) {
6569
6625
  if (React.isValidElement(child)) {
6570
6626
  radioGroupItemValues.push(child.props.value);
6571
6627
  }
6572
6628
  });
6573
6629
  return radioGroupItemValues;
6574
6630
  }, [children]);
6575
- const context = React.useMemo(() => ({
6576
- disabled: disabled !== null && disabled !== void 0 ? disabled : false,
6577
- invalid: invalid !== null && invalid !== void 0 ? invalid : false
6578
- }), [disabled, invalid]);
6579
- let valueProps;
6631
+ var context = React.useMemo(function () {
6632
+ return {
6633
+ disabled: disabled !== null && disabled !== void 0 ? disabled : false,
6634
+ invalid: invalid !== null && invalid !== void 0 ? invalid : false
6635
+ };
6636
+ }, [disabled, invalid]);
6637
+ var valueProps;
6580
6638
 
6581
6639
  if (onChange !== undefined) {
6582
- const handleChange = value => onChange(findByValue$1(values, value));
6640
+ var handleChange = function handleChange(value) {
6641
+ return onChange(findByValue$1(values, value));
6642
+ };
6583
6643
 
6584
6644
  valueProps = {
6585
6645
  onValueChange: handleChange,
@@ -6592,20 +6652,19 @@ const useRadioGroup = props => {
6592
6652
  }
6593
6653
 
6594
6654
  return {
6595
- context,
6596
- props: { ...otherProps,
6597
- ...valueProps,
6598
- children,
6599
- orientation
6600
- }
6655
+ context: context,
6656
+ props: _extends({}, otherProps, valueProps, {
6657
+ children: children,
6658
+ orientation: orientation
6659
+ })
6601
6660
  };
6602
6661
  };
6603
- const RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
6604
- const {
6605
- context,
6606
- props: otherProps
6607
- } = useRadioGroup(props);
6608
- const className = cn('flex items-start', {
6662
+ var RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
6663
+ var _useRadioGroup = useRadioGroup(props),
6664
+ context = _useRadioGroup.context,
6665
+ otherProps = _useRadioGroup.props;
6666
+
6667
+ var className = cn('flex items-start', {
6609
6668
  'flex-wrap space-x-4': otherProps.orientation === 'horizontal',
6610
6669
  'flex-col space-y-2': otherProps.orientation === 'vertical'
6611
6670
  }, otherProps.className);
@@ -6718,11 +6777,11 @@ const Header = props => {
6718
6777
  }));
6719
6778
  };
6720
6779
 
6721
- var _excluded$g = ["children", "trigger"];
6780
+ var _excluded$l = ["children", "trigger"];
6722
6781
  var Menu = function Menu(externalProps) {
6723
6782
  var children = externalProps.children,
6724
6783
  trigger = externalProps.trigger,
6725
- props = _objectWithoutPropertiesLoose(externalProps, _excluded$g);
6784
+ props = _objectWithoutPropertiesLoose(externalProps, _excluded$l);
6726
6785
 
6727
6786
  var _React$useState = React.useState(false),
6728
6787
  open = _React$useState[0],
@@ -6762,6 +6821,7 @@ var Menu = function Menu(externalProps) {
6762
6821
  return React.createElement(MenuContext.Provider, {
6763
6822
  value: context
6764
6823
  }, React.createElement(DropdownMenuPrimitive.Root, Object.assign({}, props, {
6824
+ modal: false,
6765
6825
  open: open,
6766
6826
  onOpenChange: setOpen
6767
6827
  }), trigger && React.createElement(Trigger$3, null, trigger), children));
@@ -6775,39 +6835,44 @@ Menu.Separator = Separator;
6775
6835
  Menu.Header = Header;
6776
6836
  Menu.RadioGroup = RadioGroup$1;
6777
6837
 
6778
- const TreeviewItem = /*#__PURE__*/React__default.forwardRef(function TreeviewItem(props, ref) {
6838
+ var _excluded$m = ["children", "className", "expanded", "title", "fixed", "onClick"];
6839
+ var TreeviewItem = /*#__PURE__*/React__default.forwardRef(function TreeviewItem(props, ref) {
6779
6840
  return React__default.createElement("a", Object.assign({}, props, {
6780
6841
  ref: ref
6781
6842
  }));
6782
6843
  });
6783
- const TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGroup(props, ref) {
6784
- const {
6785
- children,
6786
- className: externalClassName,
6787
- expanded: initialExpanded = false,
6788
- title,
6789
- fixed,
6790
- onClick,
6791
- ...otherProps
6792
- } = props;
6793
- const [expanded, setExpanded] = React__default.useState(fixed || initialExpanded);
6794
- React__default.useEffect(() => {
6844
+ var TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGroup(props, ref) {
6845
+ var children = props.children,
6846
+ externalClassName = props.className,
6847
+ _props$expanded = props.expanded,
6848
+ initialExpanded = _props$expanded === void 0 ? false : _props$expanded,
6849
+ title = props.title,
6850
+ fixed = props.fixed,
6851
+ onClick = props.onClick,
6852
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$m);
6853
+
6854
+ var _React$useState = React__default.useState(fixed || initialExpanded),
6855
+ expanded = _React$useState[0],
6856
+ setExpanded = _React$useState[1];
6857
+
6858
+ React__default.useEffect(function () {
6795
6859
  if (!fixed) {
6796
6860
  setExpanded(fixed || initialExpanded);
6797
6861
  }
6798
6862
  }, [fixed, initialExpanded]);
6799
- const listClassName = cn('flex-col mb-0', {
6863
+ var listClassName = cn('flex-col mb-0', {
6800
6864
  flex: expanded,
6801
6865
  hidden: !expanded
6802
6866
  });
6803
- const itemProps = { ...otherProps,
6867
+
6868
+ var itemProps = _extends({}, otherProps, {
6804
6869
  'aria-expanded': expanded,
6805
6870
  role: 'treeitem',
6806
6871
  tabIndex: -1
6807
- };
6872
+ });
6808
6873
 
6809
- const handleClick = event => {
6810
- const nextState = !expanded;
6874
+ var handleClick = function handleClick(event) {
6875
+ var nextState = !expanded;
6811
6876
 
6812
6877
  if (!fixed) {
6813
6878
  setExpanded(nextState);
@@ -6818,7 +6883,7 @@ const TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGr
6818
6883
  }
6819
6884
  };
6820
6885
 
6821
- const className = typeof externalClassName === 'function' ? externalClassName(expanded) : externalClassName;
6886
+ var className = typeof externalClassName === 'function' ? externalClassName(expanded) : externalClassName;
6822
6887
  return React__default.createElement("div", Object.assign({}, itemProps, {
6823
6888
  className: className,
6824
6889
  ref: ref
@@ -6827,14 +6892,18 @@ const TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGr
6827
6892
  }, typeof title === 'function' ? title(expanded) : title), React__default.createElement("ul", {
6828
6893
  role: "group",
6829
6894
  className: listClassName
6830
- }, React__default.Children.toArray(children).filter(item => !!item).map((item, i) => React__default.createElement("li", {
6831
- key: i,
6832
- role: "none"
6833
- }, React__default.cloneElement(item, {
6834
- role: 'treeitem'
6835
- })))));
6895
+ }, React__default.Children.toArray(children).filter(function (item) {
6896
+ return !!item;
6897
+ }).map(function (item, i) {
6898
+ return React__default.createElement("li", {
6899
+ key: i,
6900
+ role: "none"
6901
+ }, React__default.cloneElement(item, {
6902
+ role: 'treeitem'
6903
+ }));
6904
+ })));
6836
6905
  });
6837
- const Treeview = /*#__PURE__*/React__default.forwardRef(function Treeview(props, ref) {
6906
+ var Treeview = /*#__PURE__*/React__default.forwardRef(function Treeview(props, ref) {
6838
6907
  return React__default.createElement("div", Object.assign({}, props, {
6839
6908
  ref: ref,
6840
6909
  role: "tree"
@@ -6877,8 +6946,8 @@ const useDropTarget = onDrop => {
6877
6946
  return [isDraggedOver, props];
6878
6947
  };
6879
6948
 
6880
- var _excluded$h = ["active", "children", "onDrop", "postfix", "prefix", "role"],
6881
- _excluded2$2 = ["children"];
6949
+ var _excluded$n = ["active", "children", "onDrop", "postfix", "prefix", "role"],
6950
+ _excluded2$3 = ["children"];
6882
6951
  var Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
6883
6952
  var active = props.active,
6884
6953
  children = props.children,
@@ -6886,7 +6955,7 @@ var Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
6886
6955
  postfix = props.postfix,
6887
6956
  prefix = props.prefix,
6888
6957
  role = props.role,
6889
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$h);
6958
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$n);
6890
6959
 
6891
6960
  var proxyRef = useProxiedRef(ref);
6892
6961
 
@@ -6988,7 +7057,7 @@ var Menu$1 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref) {
6988
7057
  Menu$1.Group = MenuGroup;
6989
7058
  var Navigation = /*#__PURE__*/React__default.forwardRef(function Navigation(props, ref) {
6990
7059
  var children = props.children,
6991
- otherProps = _objectWithoutPropertiesLoose(props, _excluded2$2);
7060
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$3);
6992
7061
 
6993
7062
  var className = cn('h-full flex flex-col bg-grey-light divide-y-2 divide-grey-light', props.className);
6994
7063
  return React__default.createElement("div", Object.assign({}, otherProps, {
@@ -7224,51 +7293,53 @@ const useSelect = ({
7224
7293
  };
7225
7294
  };
7226
7295
 
7227
- const BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
7228
- const {
7229
- autoFocus,
7230
- className: externalClassName,
7231
- highlighted,
7232
- style,
7233
- ...otherProps
7234
- } = props;
7235
- const {
7236
- button,
7237
- listbox,
7238
- popover,
7239
- input,
7240
- text,
7241
- more = 0
7242
- } = useSelect(otherProps, ref);
7243
- const internalRef = React.useRef(null);
7244
- const selectDimensions = useBoundingClientRectListener(internalRef);
7245
- const className = cn('inline-flex relative w-full', {
7296
+ var _excluded$o = ["autoFocus", "className", "highlighted", "style"],
7297
+ _excluded2$4 = ["editable"];
7298
+ var BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
7299
+ var autoFocus = props.autoFocus,
7300
+ externalClassName = props.className,
7301
+ style = props.style,
7302
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$o);
7303
+
7304
+ var _useSelect = useSelect(otherProps, ref),
7305
+ button = _useSelect.button,
7306
+ listbox = _useSelect.listbox,
7307
+ popover = _useSelect.popover,
7308
+ input = _useSelect.input,
7309
+ text = _useSelect.text,
7310
+ _useSelect$more = _useSelect.more,
7311
+ more = _useSelect$more === void 0 ? 0 : _useSelect$more;
7312
+
7313
+ var internalRef = React.useRef(null);
7314
+ var selectDimensions = useBoundingClientRectListener(internalRef);
7315
+ var className = cn('inline-flex relative w-full', {
7246
7316
  'yt-select--readonly': props.readOnly
7247
7317
  }, externalClassName);
7248
- const inputClassname = cn(getInputClasses(props), 'text-left pr-0', {
7318
+ var inputClassname = cn(getInputClasses(props), 'text-left pr-0', {
7249
7319
  'border-blue': popover.open
7250
7320
  });
7251
- React.useEffect(() => {
7321
+ React.useEffect(function () {
7252
7322
  if (autoFocus && internalRef.current) {
7253
7323
  internalRef.current.focus();
7254
7324
  }
7255
7325
  }, []);
7256
7326
 
7257
- const renderMultiSelection = () => {
7327
+ var renderMultiSelection = function renderMultiSelection() {
7258
7328
  return React.createElement(React.Fragment, null, React.createElement("span", {
7259
7329
  className: "flex-grow truncate text-left"
7260
7330
  }, text), more > 0 && React.createElement(Badge, {
7261
7331
  className: "ml-2"
7262
- }, `+${more}`));
7332
+ }, "+" + more));
7263
7333
  };
7264
7334
 
7265
- const commonListboxProps = { ...listbox,
7335
+ var commonListboxProps = _extends({}, listbox, {
7266
7336
  className: 'w-auto',
7267
7337
  style: {
7268
7338
  minWidth: selectDimensions === null || selectDimensions === void 0 ? void 0 : selectDimensions.width
7269
7339
  },
7270
7340
  tabIndex: popover.open ? 0 : -1
7271
- };
7341
+ });
7342
+
7272
7343
  return React.createElement("span", {
7273
7344
  className: className,
7274
7345
  "data-taco": "select",
@@ -7291,11 +7362,9 @@ const BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref)
7291
7362
  type: "text"
7292
7363
  }))));
7293
7364
  });
7294
- const Select = /*#__PURE__*/React.forwardRef(function Select(props, ref) {
7295
- const {
7296
- editable,
7297
- ...otherProps
7298
- } = props;
7365
+ var Select = /*#__PURE__*/React.forwardRef(function Select(props, ref) {
7366
+ var editable = props.editable,
7367
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$4);
7299
7368
 
7300
7369
  if (editable) {
7301
7370
  return React.createElement(Combobox, Object.assign({}, otherProps, {
@@ -7365,41 +7434,47 @@ const usePagination = (initialPageIndex = 0, initialPageSize = 10) => {
7365
7434
  };
7366
7435
  };
7367
7436
 
7368
- const getShowingLabel = (length, pageIndex, pageSize, texts) => {
7369
- const minItemIndex = pageIndex * pageSize + 1;
7370
- const maxItemIndex = (pageIndex + 1) * pageSize;
7437
+ var _excluded$p = ["length", "pageIndex", "pageSize", "pageSizes", "setPageIndex", "setPageSize", "showPageControls", "showPageNumbers", "showPageSize", "dangerouslyHijackGlobalKeyboardNavigation"];
7438
+
7439
+ var getShowingLabel = function getShowingLabel(length, pageIndex, pageSize, texts) {
7440
+ var minItemIndex = pageIndex * pageSize + 1;
7441
+ var maxItemIndex = (pageIndex + 1) * pageSize;
7371
7442
  return texts.pagination.showingXofYofTotal.replace('[X]', length === 0 ? '0' : String(minItemIndex)).replace('[Y]', String(maxItemIndex > length ? length : maxItemIndex)).replace('[total]', String(length));
7372
7443
  };
7373
7444
 
7374
- const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
7375
- const {
7376
- length,
7377
- pageIndex,
7378
- pageSize,
7379
- pageSizes = [10, 25, 50, 100, 500],
7380
- setPageIndex,
7381
- setPageSize,
7382
- showPageControls = true,
7383
- showPageNumbers = true,
7384
- showPageSize = true,
7385
- dangerouslyHijackGlobalKeyboardNavigation = false,
7386
- ...otherProps
7387
- } = props;
7388
- const {
7389
- texts
7390
- } = useLocalization();
7391
- const maxPageIndex = Math.ceil(length / pageSize) - 1;
7392
- const showShortcutTexts = dangerouslyHijackGlobalKeyboardNavigation;
7445
+ var Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
7446
+ var length = props.length,
7447
+ pageIndex = props.pageIndex,
7448
+ pageSize = props.pageSize,
7449
+ _props$pageSizes = props.pageSizes,
7450
+ pageSizes = _props$pageSizes === void 0 ? [10, 25, 50, 100, 500] : _props$pageSizes,
7451
+ setPageIndex = props.setPageIndex,
7452
+ setPageSize = props.setPageSize,
7453
+ _props$showPageContro = props.showPageControls,
7454
+ showPageControls = _props$showPageContro === void 0 ? true : _props$showPageContro,
7455
+ _props$showPageNumber = props.showPageNumbers,
7456
+ showPageNumbers = _props$showPageNumber === void 0 ? true : _props$showPageNumber,
7457
+ _props$showPageSize = props.showPageSize,
7458
+ showPageSize = _props$showPageSize === void 0 ? true : _props$showPageSize,
7459
+ _props$dangerouslyHij = props.dangerouslyHijackGlobalKeyboardNavigation,
7460
+ dangerouslyHijackGlobalKeyboardNavigation = _props$dangerouslyHij === void 0 ? false : _props$dangerouslyHij,
7461
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$p);
7462
+
7463
+ var _useLocalization = useLocalization(),
7464
+ texts = _useLocalization.texts;
7465
+
7466
+ var maxPageIndex = Math.ceil(length / pageSize) - 1;
7467
+ var showShortcutTexts = dangerouslyHijackGlobalKeyboardNavigation;
7393
7468
  usePaginationShortcuts({
7394
- setPageIndex,
7395
- maxPageIndex,
7396
- pageIndex,
7397
- dangerouslyHijackGlobalKeyboardNavigation
7469
+ setPageIndex: setPageIndex,
7470
+ maxPageIndex: maxPageIndex,
7471
+ pageIndex: pageIndex,
7472
+ dangerouslyHijackGlobalKeyboardNavigation: dangerouslyHijackGlobalKeyboardNavigation
7398
7473
  });
7399
- const pageCount = Math.ceil(length / pageSize);
7400
- const canPreviousPage = pageIndex > 0;
7401
- const canNextPage = pageIndex < pageCount - 1;
7402
- const className = cn('inline-flex relative justify-between items-center', props.className);
7474
+ var pageCount = Math.ceil(length / pageSize);
7475
+ var canPreviousPage = pageIndex > 0;
7476
+ var canNextPage = pageIndex < pageCount - 1;
7477
+ var className = cn('inline-flex relative justify-between items-center', props.className);
7403
7478
  return React.createElement("div", Object.assign({}, otherProps, {
7404
7479
  className: className,
7405
7480
  "data-taco": "pagination",
@@ -7409,11 +7484,13 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7409
7484
  }, getShowingLabel(length, pageIndex, pageSize, texts), React.createElement(Select, {
7410
7485
  "aria-label": texts.pagination.pageSize,
7411
7486
  className: "ml-4 !w-20",
7412
- data: pageSizes.map(pageSize => ({
7413
- text: String(pageSize),
7414
- value: pageSize
7415
- })),
7416
- onChange: event => {
7487
+ data: pageSizes.map(function (pageSize) {
7488
+ return {
7489
+ text: String(pageSize),
7490
+ value: pageSize
7491
+ };
7492
+ }),
7493
+ onChange: function onChange(event) {
7417
7494
  setPageIndex(0);
7418
7495
  setPageSize(Number(event.target.value));
7419
7496
  },
@@ -7425,14 +7502,18 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7425
7502
  appearance: "default",
7426
7503
  disabled: !canPreviousPage,
7427
7504
  icon: "arrow-start",
7428
- onClick: () => setPageIndex(0),
7505
+ onClick: function onClick() {
7506
+ return setPageIndex(0);
7507
+ },
7429
7508
  "aria-label": showShortcutTexts ? texts.pagination.actions.firstPageWithShortcut : texts.pagination.actions.firstPage,
7430
7509
  tooltip: showShortcutTexts ? texts.pagination.actions.firstPageWithShortcut : texts.pagination.actions.firstPage
7431
7510
  }), React.createElement(IconButton, {
7432
7511
  appearance: "default",
7433
7512
  disabled: !canPreviousPage,
7434
7513
  icon: "arrow-left",
7435
- onClick: () => setPageIndex(pageIndex - 1),
7514
+ onClick: function onClick() {
7515
+ return setPageIndex(pageIndex - 1);
7516
+ },
7436
7517
  "aria-label": showShortcutTexts ? texts.pagination.actions.previousPageWithShortcut : texts.pagination.actions.previousPage,
7437
7518
  tooltip: showShortcutTexts ? texts.pagination.actions.previousPageWithShortcut : texts.pagination.actions.previousPage
7438
7519
  }), showPageNumbers && pageCount > 0 && React.createElement(PageNumbers, {
@@ -7443,36 +7524,43 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7443
7524
  appearance: "default",
7444
7525
  disabled: !canNextPage,
7445
7526
  icon: "arrow-right",
7446
- onClick: () => setPageIndex(pageIndex + 1),
7527
+ onClick: function onClick() {
7528
+ return setPageIndex(pageIndex + 1);
7529
+ },
7447
7530
  "aria-label": showShortcutTexts ? texts.pagination.actions.nextPageWithShortcut : texts.pagination.actions.nextPage,
7448
7531
  tooltip: showShortcutTexts ? texts.pagination.actions.nextPageWithShortcut : texts.pagination.actions.nextPage
7449
7532
  }), React.createElement(IconButton, {
7450
7533
  appearance: "default",
7451
7534
  disabled: !canNextPage,
7452
7535
  icon: "arrow-end",
7453
- onClick: () => setPageIndex(pageCount - 1),
7536
+ onClick: function onClick() {
7537
+ return setPageIndex(pageCount - 1);
7538
+ },
7454
7539
  "aria-label": showShortcutTexts ? texts.pagination.actions.lastPageWithShortcut : texts.pagination.actions.lastPage,
7455
7540
  tooltip: showShortcutTexts ? texts.pagination.actions.lastPageWithShortcut : texts.pagination.actions.lastPage
7456
7541
  })));
7457
7542
  });
7458
7543
 
7459
- const Progress = ({
7460
- duration = undefined,
7461
- ...props
7462
- }) => {
7463
- let style;
7544
+ var _excluded$q = ["duration"];
7545
+ var Progress = function Progress(_ref) {
7546
+ var _cn;
7547
+
7548
+ var _ref$duration = _ref.duration,
7549
+ duration = _ref$duration === void 0 ? undefined : _ref$duration,
7550
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7551
+
7552
+ var style;
7464
7553
 
7465
7554
  if (duration) {
7466
7555
  style = {
7467
- animationDuration: `${duration}ms`
7556
+ animationDuration: duration + "ms"
7468
7557
  };
7469
7558
  }
7470
7559
 
7471
- const className = cn('bg-grey-light rounded block h-1 overflow-hidden w-full', props.className);
7472
- const progressClassName = cn('yt-progress__bar block h-1', {
7473
- "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,
7474
- [`w-0 bg-grey-dark animate-[progress_linear]`]: duration
7475
- });
7560
+ var className = cn('bg-grey-light rounded block h-1 overflow-hidden w-full', props.className);
7561
+ var progressClassName = cn('yt-progress__bar block h-1', (_cn = {
7562
+ "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
7563
+ }, _cn["w-0 bg-grey-dark animate-[progress_linear]"] = duration, _cn));
7476
7564
  return React__default.createElement("span", Object.assign({}, props, {
7477
7565
  "data-taco": "progress",
7478
7566
  className: className
@@ -9082,16 +9170,19 @@ const useTableRowCreation = (data, tableRef) => {
9082
9170
  };
9083
9171
  };
9084
9172
 
9085
- const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
9086
- const {
9087
- id,
9088
- defaultId,
9089
- children,
9090
- onChange,
9091
- orientation = 'horizontal',
9092
- ...otherProps
9093
- } = props;
9094
- const className = cn('yt-tabs', `yt-tabs--${orientation}`, {
9173
+ var _excluded$r = ["id", "defaultId", "children", "onChange", "orientation"],
9174
+ _excluded2$5 = ["id", "disabled"],
9175
+ _excluded3 = ["id"];
9176
+ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
9177
+ var id = props.id,
9178
+ defaultId = props.defaultId,
9179
+ children = props.children,
9180
+ onChange = props.onChange,
9181
+ _props$orientation = props.orientation,
9182
+ orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
9183
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$r);
9184
+
9185
+ var className = cn('yt-tabs', "yt-tabs--" + orientation, {
9095
9186
  'flex w-full': orientation === 'vertical'
9096
9187
  }, props.className);
9097
9188
  return React.createElement(TabsPrimitive.Root, Object.assign({}, otherProps, {
@@ -9105,20 +9196,19 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
9105
9196
  value: id
9106
9197
  }), children);
9107
9198
  });
9108
- const TabList = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9109
- const className = cn('yt-tab__list border-b border-grey-light flex flex-row m-0 mb-4', props.className);
9199
+ var TabList = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9200
+ var className = cn('yt-tab__list border-b border-grey-light flex flex-row m-0 mb-4', props.className);
9110
9201
  return React.createElement(TabsPrimitive.List, Object.assign({}, props, {
9111
9202
  className: className,
9112
9203
  ref: ref
9113
9204
  }));
9114
9205
  });
9115
- const TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9116
- const {
9117
- id,
9118
- disabled,
9119
- ...otherProps
9120
- } = props;
9121
- const className = cn('yt-tab bg-transparent border-b-2 border-transparent text-grey-darkest m-0 py-2 px-4', disabled ? 'cursor-not-allowed !text-grey' : 'cursor-pointer rounded-t hover:border-grey-light hover:text-black active:yt-focus active:border-blue focus:yt-focus focus:border-blue', props.className);
9206
+ var TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9207
+ var id = props.id,
9208
+ disabled = props.disabled,
9209
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$5);
9210
+
9211
+ var className = cn('yt-tab bg-transparent border-b-2 border-transparent text-grey-darkest m-0 py-2 px-4', disabled ? 'cursor-not-allowed !text-grey' : 'cursor-pointer rounded-t hover:border-grey-light hover:text-black active:yt-focus active:border-blue focus:yt-focus focus:border-blue', props.className);
9122
9212
  return React.createElement(TabsPrimitive.Trigger, Object.assign({}, otherProps, {
9123
9213
  className: className,
9124
9214
  disabled: disabled,
@@ -9129,12 +9219,11 @@ const TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9129
9219
  value: id
9130
9220
  }));
9131
9221
  });
9132
- const TabContent = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9133
- const {
9134
- id,
9135
- ...otherProps
9136
- } = props;
9137
- const className = cn('yt-tab__panel outline-none', props.className);
9222
+ var TabContent = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9223
+ var id = props.id,
9224
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded3);
9225
+
9226
+ var className = cn('yt-tab__panel outline-none', props.className);
9138
9227
  return React.createElement(TabsPrimitive.Content, Object.assign({}, otherProps, {
9139
9228
  className: className,
9140
9229
  ref: ref,
@@ -9145,22 +9234,19 @@ Tabs.List = TabList;
9145
9234
  Tabs.Trigger = TabTrigger;
9146
9235
  Tabs.Content = TabContent;
9147
9236
 
9148
- const Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
9149
- const {
9150
- defaultValue: _,
9151
- highlighted,
9152
- onKeyDown,
9153
- state,
9154
- ...otherProps
9155
- } = props;
9156
- 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
9237
+ var _excluded$s = ["defaultValue", "highlighted", "onKeyDown", "state"];
9238
+ var Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
9239
+ var onKeyDown = props.onKeyDown,
9240
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$s);
9241
+
9242
+ 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
9157
9243
  // if it has scroll height then the browser reverts to native scrolling behaviour only
9158
9244
  // so we manually override it to ensure _our_ desired behaviour remains intact
9159
9245
 
9160
- const handleKeyDown = event => {
9246
+ var handleKeyDown = function handleKeyDown(event) {
9161
9247
  if (event.key === 'Home' || event.key === 'End') {
9162
9248
  event.preventDefault();
9163
- const position = event.key === 'End' ? event.currentTarget.value.length : 0;
9249
+ var position = event.key === 'End' ? event.currentTarget.value.length : 0;
9164
9250
  event.currentTarget.setSelectionRange(position, position);
9165
9251
  event.currentTarget.scrollTop = event.key === 'End' ? event.currentTarget.scrollHeight : 0;
9166
9252
  }
@@ -9177,18 +9263,18 @@ const Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
9177
9263
  }));
9178
9264
  });
9179
9265
 
9180
- const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9181
- const {
9182
- label,
9183
- onChange,
9184
- ...otherProps
9185
- } = props;
9186
- const className = cn('group h-6 w-10 flex rounded-full inline-flex', {
9266
+ var _excluded$t = ["label", "onChange"];
9267
+ var Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9268
+ var label = props.label,
9269
+ onChange = props.onChange,
9270
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$t);
9271
+
9272
+ var className = cn('group h-6 w-10 flex rounded-full inline-flex', {
9187
9273
  'mr-2': !!label,
9188
9274
  'bg-grey-darker aria-checked:bg-blue focus:yt-focus': !props.disabled,
9189
9275
  'bg-grey-light cursor-not-allowed aria-checked:bg-blue-light': props.disabled
9190
9276
  }, props.className);
9191
- const element = React.createElement(PrimitiveSwitch.Root, Object.assign({}, otherProps, {
9277
+ var element = React.createElement(PrimitiveSwitch.Root, Object.assign({}, otherProps, {
9192
9278
  className: className,
9193
9279
  onCheckedChange: onChange,
9194
9280
  ref: ref
@@ -9197,7 +9283,7 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9197
9283
  }));
9198
9284
 
9199
9285
  if (label) {
9200
- const labelClassName = cn('flex items-center cursor-pointer', {
9286
+ var labelClassName = cn('flex items-center cursor-pointer', {
9201
9287
  'cursor-not-allowed text-grey-dark': props.disabled
9202
9288
  });
9203
9289
  return React.createElement("label", {
@@ -9208,22 +9294,23 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9208
9294
  return element;
9209
9295
  });
9210
9296
 
9211
- const Tooltip$1 = ({
9212
- continuous,
9213
- index,
9214
- isLastStep,
9215
- step,
9216
- backProps,
9217
- primaryProps,
9218
- skipProps,
9219
- tooltipProps,
9220
- size,
9221
- locale,
9222
- disableTourSkipOnEsc
9223
- }) => {
9224
- const skipButtonRef = React.useRef(null);
9225
- React.useEffect(() => {
9226
- const onWindowKeyDown = event => {
9297
+ var _excluded$u = ["autoStart", "onComplete", "onClose", "onReady", "spotlightClicks", "disableCloseOnEsc", "disableScrollParentFix"];
9298
+
9299
+ var Tooltip$1 = function Tooltip(_ref) {
9300
+ var continuous = _ref.continuous,
9301
+ index = _ref.index,
9302
+ isLastStep = _ref.isLastStep,
9303
+ step = _ref.step,
9304
+ backProps = _ref.backProps,
9305
+ primaryProps = _ref.primaryProps,
9306
+ skipProps = _ref.skipProps,
9307
+ tooltipProps = _ref.tooltipProps,
9308
+ size = _ref.size,
9309
+ locale = _ref.locale,
9310
+ disableTourSkipOnEsc = _ref.disableTourSkipOnEsc;
9311
+ var skipButtonRef = React.useRef(null);
9312
+ React.useEffect(function () {
9313
+ var onWindowKeyDown = function onWindowKeyDown(event) {
9227
9314
  if (!disableTourSkipOnEsc) {
9228
9315
  if (event.keyCode === keycode('esc') && skipButtonRef.current !== null) {
9229
9316
  event.preventDefault();
@@ -9234,7 +9321,7 @@ const Tooltip$1 = ({
9234
9321
  };
9235
9322
 
9236
9323
  window.addEventListener('keydown', onWindowKeyDown);
9237
- return () => {
9324
+ return function () {
9238
9325
  window.removeEventListener('keydown', onWindowKeyDown);
9239
9326
  };
9240
9327
  }, []);
@@ -9253,30 +9340,30 @@ const Tooltip$1 = ({
9253
9340
  appearance: "discrete"
9254
9341
  }), locale.back), React.createElement(Button$1, Object.assign({}, primaryProps, {
9255
9342
  appearance: "primary"
9256
- }), continuous ? isLastStep ? `${locale.last} (${index + 1}/${size})` : `${locale.next} (${index + 1}/${size})` : locale.close)));
9343
+ }), continuous ? isLastStep ? locale.last + " (" + (index + 1) + "/" + size + ")" : locale.next + " (" + (index + 1) + "/" + size + ")" : locale.close)));
9257
9344
  }; // eslint-disable-next-line @typescript-eslint/no-unused-vars
9258
9345
 
9259
9346
 
9260
- const TourStep = _props => null;
9261
- const Tour = props => {
9262
- const {
9263
- texts: {
9264
- tour
9265
- }
9266
- } = useLocalization();
9267
- const {
9268
- autoStart: run,
9269
- onComplete,
9270
- onClose,
9271
- onReady,
9272
- spotlightClicks,
9273
- disableCloseOnEsc: disableTourSkipOnEsc,
9274
- disableScrollParentFix = false,
9275
- ...rest
9276
- } = props;
9277
- const steps = React.useMemo(() => {
9278
- return React.Children.map(props.children, child => {
9279
- const step = {
9347
+ var TourStep = function TourStep(_props) {
9348
+ return null;
9349
+ };
9350
+ var Tour = function Tour(props) {
9351
+ var _useLocalization = useLocalization(),
9352
+ tour = _useLocalization.texts.tour;
9353
+
9354
+ var run = props.autoStart,
9355
+ onComplete = props.onComplete,
9356
+ onClose = props.onClose,
9357
+ onReady = props.onReady,
9358
+ spotlightClicks = props.spotlightClicks,
9359
+ disableTourSkipOnEsc = props.disableCloseOnEsc,
9360
+ _props$disableScrollP = props.disableScrollParentFix,
9361
+ disableScrollParentFix = _props$disableScrollP === void 0 ? false : _props$disableScrollP,
9362
+ rest = _objectWithoutPropertiesLoose(props, _excluded$u);
9363
+
9364
+ var steps = React.useMemo(function () {
9365
+ return React.Children.map(props.children, function (child) {
9366
+ var step = {
9280
9367
  disableBeacon: !child.props.showBeacon,
9281
9368
  target: child.props.selector,
9282
9369
  placement: child.props.position,
@@ -9286,10 +9373,12 @@ const Tour = props => {
9286
9373
  return step;
9287
9374
  });
9288
9375
  }, [props.children]);
9289
- const getStep = React.useCallback(selector => {
9376
+ var getStep = React.useCallback(function (selector) {
9290
9377
  var _props$children$find;
9291
9378
 
9292
- return (_props$children$find = props.children.find(child => child.props.selector === selector)) === null || _props$children$find === void 0 ? void 0 : _props$children$find.props;
9379
+ return (_props$children$find = props.children.find(function (child) {
9380
+ return child.props.selector === selector;
9381
+ })) === null || _props$children$find === void 0 ? void 0 : _props$children$find.props;
9293
9382
  }, [props.children]);
9294
9383
 
9295
9384
  function callback(state) {
@@ -9319,10 +9408,12 @@ const Tour = props => {
9319
9408
  floaterProps: {
9320
9409
  disableAnimation: true
9321
9410
  },
9322
- tooltipComponent: tooltipProps => React.createElement(Tooltip$1, Object.assign({}, tooltipProps, {
9323
- locale: tour,
9324
- disableTourSkipOnEsc: disableTourSkipOnEsc
9325
- })),
9411
+ tooltipComponent: function tooltipComponent(tooltipProps) {
9412
+ return React.createElement(Tooltip$1, Object.assign({}, tooltipProps, {
9413
+ locale: tour,
9414
+ disableTourSkipOnEsc: disableTourSkipOnEsc
9415
+ }));
9416
+ },
9326
9417
  locale: tour,
9327
9418
  spotlightPadding: 8,
9328
9419
  spotlightClicks: spotlightClicks,
@@ -9363,10 +9454,10 @@ var useOnClickOutside = function useOnClickOutside(ref, callback) {
9363
9454
  }, [ref, callback]);
9364
9455
  };
9365
9456
 
9366
- var _excluded$i = ["onSearch"];
9457
+ var _excluded$v = ["onSearch"];
9367
9458
  var SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput(_ref, ref) {
9368
9459
  var onSearch = _ref.onSearch,
9369
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
9460
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
9370
9461
 
9371
9462
  var _useLocalization = useLocalization(),
9372
9463
  texts = _useLocalization.texts;