@economic/taco 0.0.13-alpha.0 → 0.0.14-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 (46) hide show
  1. package/dist/components/{Label/Label.d.ts → Field/Field.d.ts} +9 -9
  2. package/dist/esm/components/{Label/Label.js → Field/Field.js} +3 -3
  3. package/dist/esm/components/Field/Field.js.map +1 -0
  4. package/dist/esm/components/Pagination/Pagination.js +56 -39
  5. package/dist/esm/components/Pagination/Pagination.js.map +1 -1
  6. package/dist/esm/components/Popover/Popover.js +34 -29
  7. package/dist/esm/components/Popover/Popover.js.map +1 -1
  8. package/dist/esm/components/Progress/Progress.js +15 -11
  9. package/dist/esm/components/Progress/Progress.js.map +1 -1
  10. package/dist/esm/components/Provider/Provider.js +18 -13
  11. package/dist/esm/components/Provider/Provider.js.map +1 -1
  12. package/dist/esm/components/RadioGroup/RadioGroup.js +57 -45
  13. package/dist/esm/components/RadioGroup/RadioGroup.js.map +1 -1
  14. package/dist/esm/components/SearchInput/SearchInput.js +1 -1
  15. package/dist/esm/components/Select/Select.js +31 -30
  16. package/dist/esm/components/Select/Select.js.map +1 -1
  17. package/dist/esm/components/Spinner/Spinner.js +19 -12
  18. package/dist/esm/components/Spinner/Spinner.js.map +1 -1
  19. package/dist/esm/components/Switch/Switch.js +10 -9
  20. package/dist/esm/components/Switch/Switch.js.map +1 -1
  21. package/dist/esm/components/Tabs/Tabs.js +27 -25
  22. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  23. package/dist/esm/components/Textarea/Textarea.js +6 -8
  24. package/dist/esm/components/Textarea/Textarea.js.map +1 -1
  25. package/dist/esm/components/Toast/Toaster.js +118 -88
  26. package/dist/esm/components/Toast/Toaster.js.map +1 -1
  27. package/dist/esm/components/Tooltip/Tooltip.js +8 -7
  28. package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
  29. package/dist/esm/components/Tour/Tour.js +50 -44
  30. package/dist/esm/components/Tour/Tour.js.map +1 -1
  31. package/dist/esm/components/Treeview/Treeview.js +36 -26
  32. package/dist/esm/components/Treeview/Treeview.js.map +1 -1
  33. package/dist/esm/components/VisuallyHidden/VisuallyHidden.js +1 -1
  34. package/dist/esm/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
  35. package/dist/esm/index.css +4 -8
  36. package/dist/esm/index.js +1 -1
  37. package/dist/index.css +4 -8
  38. package/dist/index.d.ts +1 -1
  39. package/dist/taco.cjs.development.js +535 -449
  40. package/dist/taco.cjs.development.js.map +1 -1
  41. package/dist/taco.cjs.production.min.js +1 -1
  42. package/dist/taco.cjs.production.min.js.map +1 -1
  43. package/dist/utils/tailwind.d.ts +1 -1
  44. package/package.json +2 -2
  45. package/types.json +116 -116
  46. package/dist/esm/components/Label/Label.js.map +0 -1
@@ -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((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 (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, {
@@ -3444,13 +3444,13 @@ const createButton = (props, className, ref) => {
3444
3444
  return button;
3445
3445
  };
3446
3446
 
3447
- var _excluded$3 = ["appearance", "icon", "rounded"];
3447
+ var _excluded$4 = ["appearance", "icon", "rounded"];
3448
3448
  var IconButton = /*#__PURE__*/React.forwardRef(function IconButton(props, ref) {
3449
3449
  var appearance = props.appearance,
3450
3450
  icon = props.icon,
3451
3451
  _props$rounded = props.rounded,
3452
3452
  rounded = _props$rounded === void 0 ? false : _props$rounded,
3453
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$3);
3453
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$4);
3454
3454
 
3455
3455
  var className = cn(getButtonClasses(), getAppearanceClasses(appearance, true), {
3456
3456
  'rounded-full': rounded,
@@ -3489,11 +3489,11 @@ var Banner = /*#__PURE__*/React.forwardRef(function Banner(props, ref) {
3489
3489
  }) : null);
3490
3490
  });
3491
3491
 
3492
- var _excluded$4 = ["appearance", "fluid"];
3492
+ var _excluded$5 = ["appearance", "fluid"];
3493
3493
  var Button$1 = /*#__PURE__*/React.forwardRef(function Button(props, ref) {
3494
3494
  var appearance = props.appearance,
3495
3495
  fluid = props.fluid,
3496
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$4);
3496
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$5);
3497
3497
 
3498
3498
  var className = cn(getButtonClasses(), getAppearanceClasses(appearance), 'rounded px-3', {
3499
3499
  'cursor-not-allowed opacity-50': props.disabled,
@@ -3551,21 +3551,27 @@ function useTimer(duration = 0, callback) {
3551
3551
  };
3552
3552
  }
3553
3553
 
3554
- const Spinner$1 = /*#__PURE__*/React__default.forwardRef(function Spinner(props, ref) {
3555
- const {
3556
- delay = 500,
3557
- label,
3558
- ...otherProps
3559
- } = props;
3560
- const [visible, setVisibility] = React__default.useState(!delay);
3561
- React__default.useEffect(() => {
3562
- let timeout;
3554
+ var _excluded$6 = ["delay", "label"];
3555
+ var Spinner$1 = /*#__PURE__*/React__default.forwardRef(function Spinner(props, ref) {
3556
+ var _props$delay = props.delay,
3557
+ delay = _props$delay === void 0 ? 500 : _props$delay,
3558
+ label = props.label,
3559
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$6);
3560
+
3561
+ var _React$useState = React__default.useState(!delay),
3562
+ visible = _React$useState[0],
3563
+ setVisibility = _React$useState[1];
3564
+
3565
+ React__default.useEffect(function () {
3566
+ var timeout;
3563
3567
 
3564
3568
  if (delay) {
3565
- timeout = window.setTimeout(() => setVisibility(true), delay);
3569
+ timeout = window.setTimeout(function () {
3570
+ return setVisibility(true);
3571
+ }, delay);
3566
3572
  }
3567
3573
 
3568
- return () => {
3574
+ return function () {
3569
3575
  if (timeout) {
3570
3576
  clearTimeout(timeout);
3571
3577
  }
@@ -3576,7 +3582,7 @@ const Spinner$1 = /*#__PURE__*/React__default.forwardRef(function Spinner(props,
3576
3582
  return null;
3577
3583
  }
3578
3584
 
3579
- const className = cn('inline-flex flex-col relative items-center', otherProps.className);
3585
+ var className = cn('inline-flex flex-col relative items-center', otherProps.className);
3580
3586
  return React__default.createElement("div", Object.assign({}, otherProps, {
3581
3587
  className: className,
3582
3588
  "data-taco": "spinner",
@@ -3702,49 +3708,62 @@ const Toast = ({
3702
3708
  }));
3703
3709
  };
3704
3710
 
3705
- const DEFAULT_AUTO_CLOSE_TIMEOUT = 7500;
3706
- const ToastContext = /*#__PURE__*/React.createContext({});
3711
+ var _excluded$7 = ["children"];
3712
+ var DEFAULT_AUTO_CLOSE_TIMEOUT = 7500;
3713
+ var ToastContext = /*#__PURE__*/React.createContext({});
3707
3714
 
3708
- const insertToastWithoutDuplicates = (currentToasts, id, content, options, close) => {
3709
- const nextToasts = [...currentToasts];
3710
- const existingToastIndex = currentToasts.findIndex(toast => JSON.stringify(toast.content) === JSON.stringify(content));
3715
+ var insertToastWithoutDuplicates = function insertToastWithoutDuplicates(currentToasts, id, content, options, close) {
3716
+ var nextToasts = [].concat(currentToasts);
3717
+ var existingToastIndex = currentToasts.findIndex(function (toast) {
3718
+ return JSON.stringify(toast.content) === JSON.stringify(content);
3719
+ });
3711
3720
 
3712
3721
  if (existingToastIndex > -1) {
3713
3722
  nextToasts[existingToastIndex].lastDuplicateId = id;
3714
3723
  nextToasts[existingToastIndex].lastUpdated = Date.now();
3715
3724
  } else {
3716
3725
  nextToasts.push({
3717
- id,
3726
+ id: id,
3718
3727
  content: typeof content === 'function' ? content(close) : content,
3719
- options
3728
+ options: options
3720
3729
  });
3721
3730
  }
3722
3731
 
3723
3732
  return nextToasts;
3724
3733
  };
3725
3734
 
3726
- const ToastProvider = ({
3727
- children,
3728
- ...props
3729
- }) => {
3730
- const [toasts, setToasts] = React.useState([]);
3735
+ var ToastProvider = function ToastProvider(_ref) {
3736
+ var children = _ref.children,
3737
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3731
3738
 
3732
- const handleClose = id => {
3733
- setToasts(currentToasts => currentToasts.filter(toast => toast.id !== id));
3739
+ var _React$useState = React.useState([]),
3740
+ toasts = _React$useState[0],
3741
+ setToasts = _React$useState[1];
3742
+
3743
+ var handleClose = function handleClose(id) {
3744
+ setToasts(function (currentToasts) {
3745
+ return currentToasts.filter(function (toast) {
3746
+ return toast.id !== id;
3747
+ });
3748
+ });
3734
3749
  }; // memoize (useCallback) this function,
3735
3750
  // it is the value of the context provider and we don't want it to trigger state tree re-renders on provider children
3736
3751
 
3737
3752
 
3738
- const toaster = React.useCallback((content, options) => {
3739
- const id = uuid.v4();
3753
+ var toaster = React.useCallback(function (content, options) {
3754
+ var id = uuid.v4();
3740
3755
 
3741
- const close = () => handleClose(id);
3756
+ var close = function close() {
3757
+ return handleClose(id);
3758
+ };
3742
3759
 
3743
- setToasts(currentToasts => insertToastWithoutDuplicates(currentToasts, id, content, options, close));
3760
+ setToasts(function (currentToasts) {
3761
+ return insertToastWithoutDuplicates(currentToasts, id, content, options, close);
3762
+ });
3744
3763
 
3745
- const update = (content, options) => {
3746
- setToasts(currentToasts => {
3747
- const nextToasts = currentToasts.filter(toast => {
3764
+ var update = function update(content, options) {
3765
+ setToasts(function (currentToasts) {
3766
+ var nextToasts = currentToasts.filter(function (toast) {
3748
3767
  if (toast.lastDuplicateId) {
3749
3768
  return toast.lastDuplicateId !== id;
3750
3769
  }
@@ -3755,70 +3774,80 @@ const ToastProvider = ({
3755
3774
  });
3756
3775
  };
3757
3776
 
3758
- const success = (content, options) => {
3759
- update(content, {
3760
- autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT,
3761
- ...options,
3777
+ var success = function success(content, options) {
3778
+ update(content, _extends({
3779
+ autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT
3780
+ }, options, {
3762
3781
  type: 'success'
3763
- });
3782
+ }));
3764
3783
  };
3765
3784
 
3766
- const error = (content, options) => {
3767
- update(content, { ...options,
3785
+ var error = function error(content, options) {
3786
+ update(content, _extends({}, options, {
3768
3787
  type: 'error'
3769
- });
3788
+ }));
3770
3789
  };
3771
3790
 
3772
- const warning = (content, options) => {
3773
- update(content, { ...options,
3791
+ var warning = function warning(content, options) {
3792
+ update(content, _extends({}, options, {
3774
3793
  type: 'warning'
3775
- });
3794
+ }));
3776
3795
  };
3777
3796
 
3778
- const information = (content, options) => {
3779
- update(content, { ...options,
3797
+ var information = function information(content, options) {
3798
+ update(content, _extends({}, options, {
3780
3799
  type: 'information'
3781
- });
3800
+ }));
3782
3801
  };
3783
3802
 
3784
- const loading = (content, options) => {
3785
- update(content, { ...options,
3803
+ var loading = function loading(content, options) {
3804
+ update(content, _extends({}, options, {
3786
3805
  type: 'loading'
3787
- });
3806
+ }));
3788
3807
  };
3789
3808
 
3790
3809
  return {
3791
- success,
3792
- error,
3793
- warning,
3794
- information,
3795
- loading,
3796
- close
3810
+ success: success,
3811
+ error: error,
3812
+ warning: warning,
3813
+ information: information,
3814
+ loading: loading,
3815
+ close: close
3797
3816
  };
3798
3817
  }, []); // no need to rebind these every render, do them once in an effect
3799
3818
 
3800
- React.useEffect(() => {
3801
- toaster.success = (content, options) => toaster(content, {
3802
- autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT,
3803
- ...options,
3804
- type: 'success'
3805
- });
3819
+ React.useEffect(function () {
3820
+ toaster.success = function (content, options) {
3821
+ return toaster(content, _extends({
3822
+ autoClose: DEFAULT_AUTO_CLOSE_TIMEOUT
3823
+ }, options, {
3824
+ type: 'success'
3825
+ }));
3826
+ };
3806
3827
 
3807
- toaster.error = (content, options) => toaster(content, { ...options,
3808
- type: 'error'
3809
- });
3828
+ toaster.error = function (content, options) {
3829
+ return toaster(content, _extends({}, options, {
3830
+ type: 'error'
3831
+ }));
3832
+ };
3810
3833
 
3811
- toaster.warning = (content, options) => toaster(content, { ...options,
3812
- type: 'warning'
3813
- });
3834
+ toaster.warning = function (content, options) {
3835
+ return toaster(content, _extends({}, options, {
3836
+ type: 'warning'
3837
+ }));
3838
+ };
3814
3839
 
3815
- toaster.information = (content, options) => toaster(content, { ...options,
3816
- type: 'information'
3817
- });
3840
+ toaster.information = function (content, options) {
3841
+ return toaster(content, _extends({}, options, {
3842
+ type: 'information'
3843
+ }));
3844
+ };
3818
3845
 
3819
- toaster.loading = (content, options) => toaster(content, { ...options,
3820
- type: 'loading'
3821
- });
3846
+ toaster.loading = function (content, options) {
3847
+ return toaster(content, _extends({}, options, {
3848
+ type: 'loading'
3849
+ }));
3850
+ };
3822
3851
  }, []);
3823
3852
  return React.createElement(ToastContext.Provider, Object.assign({}, props, {
3824
3853
  value: toaster
@@ -3828,37 +3857,43 @@ const ToastProvider = ({
3828
3857
  role: "log"
3829
3858
  }, React.createElement(framerMotion.AnimatePresence, {
3830
3859
  initial: false
3831
- }, toasts.map(toast => React.createElement(framerMotion.motion.div, {
3832
- key: toast.id,
3833
- transition: {
3834
- type: 'spring',
3835
- damping: 20,
3836
- stiffness: 300
3837
- },
3838
- initial: {
3839
- opacity: 0,
3840
- y: 10,
3841
- scale: 0.5
3842
- },
3843
- animate: {
3844
- opacity: 1,
3845
- y: 0,
3846
- scale: 1
3847
- },
3848
- exit: {
3849
- opacity: 0,
3850
- scale: 0.5,
3860
+ }, toasts.map(function (toast) {
3861
+ return React.createElement(framerMotion.motion.div, {
3862
+ key: toast.id,
3851
3863
  transition: {
3852
- duration: 0.2
3864
+ type: 'spring',
3865
+ damping: 20,
3866
+ stiffness: 300
3867
+ },
3868
+ initial: {
3869
+ opacity: 0,
3870
+ y: 10,
3871
+ scale: 0.5
3872
+ },
3873
+ animate: {
3874
+ opacity: 1,
3875
+ y: 0,
3876
+ scale: 1
3877
+ },
3878
+ exit: {
3879
+ opacity: 0,
3880
+ scale: 0.5,
3881
+ transition: {
3882
+ duration: 0.2
3883
+ }
3853
3884
  }
3854
- }
3855
- }, React.createElement(Toast, Object.assign({}, toast, {
3856
- onClose: () => handleClose(toast.id)
3857
- })))))));
3885
+ }, React.createElement(Toast, Object.assign({}, toast, {
3886
+ onClose: function onClose() {
3887
+ return handleClose(toast.id);
3888
+ }
3889
+ })));
3890
+ }))));
3891
+ };
3892
+ var useToast = function useToast() {
3893
+ return React.useContext(ToastContext);
3858
3894
  };
3859
- const useToast = () => React.useContext(ToastContext);
3860
3895
 
3861
- const defaultLocalisationTexts = {
3896
+ var defaultLocalisationTexts = {
3862
3897
  calendar: {
3863
3898
  months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
3864
3899
  weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
@@ -3930,32 +3965,37 @@ const defaultLocalisationTexts = {
3930
3965
  inputLabel: 'Search...'
3931
3966
  }
3932
3967
  };
3933
- const defaultLocalizationContext = {
3968
+ var defaultLocalizationContext = {
3934
3969
  locale: 'en-GB',
3935
3970
  texts: defaultLocalisationTexts,
3936
3971
  formatting: {
3937
3972
  date: 'dd.mm.yy'
3938
3973
  }
3939
3974
  };
3940
- const Context = /*#__PURE__*/React.createContext({
3975
+ var Context = /*#__PURE__*/React.createContext({
3941
3976
  localization: defaultLocalizationContext
3942
3977
  });
3943
- const Provider = props => {
3944
- const {
3945
- children,
3946
- localization = defaultLocalizationContext
3947
- } = props;
3948
- const value = React.useMemo(() => ({
3949
- localization
3950
- }), [localization]);
3978
+ var Provider = function Provider(props) {
3979
+ var children = props.children,
3980
+ _props$localization = props.localization,
3981
+ localization = _props$localization === void 0 ? defaultLocalizationContext : _props$localization;
3982
+ var value = React.useMemo(function () {
3983
+ return {
3984
+ localization: localization
3985
+ };
3986
+ }, [localization]);
3951
3987
  return React.createElement(Context.Provider, {
3952
3988
  value: value
3953
3989
  }, React.createElement(ToastProvider, null, children));
3954
3990
  };
3955
- const useTaco = () => React.useContext(Context);
3956
- const useLocalization = () => useTaco().localization;
3991
+ var useTaco = function useTaco() {
3992
+ return React.useContext(Context);
3993
+ };
3994
+ var useLocalization = function useLocalization() {
3995
+ return useTaco().localization;
3996
+ };
3957
3997
 
3958
- var _excluded$5 = ["onChange", "value"];
3998
+ var _excluded$8 = ["onChange", "value"];
3959
3999
 
3960
4000
  var renderDay = function renderDay(day, modifiers) {
3961
4001
  return modifiers.disabled ? React.createElement("span", {
@@ -4032,7 +4072,7 @@ var Navbar = /*#__PURE__*/React.memo(function (_ref) {
4032
4072
  var Calendar$1 = /*#__PURE__*/React.forwardRef(function Calendar(props, ref) {
4033
4073
  var handleChange = props.onChange,
4034
4074
  value = props.value,
4035
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$5);
4075
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$8);
4036
4076
 
4037
4077
  var _useLocalization2 = useLocalization(),
4038
4078
  locale = _useLocalization2.locale,
@@ -4096,7 +4136,7 @@ var Calendar$1 = /*#__PURE__*/React.forwardRef(function Calendar(props, ref) {
4096
4136
  })));
4097
4137
  });
4098
4138
 
4099
- var _excluded$6 = ["checked", "highlighted", "indeterminate", "invalid", "label", "onChange"];
4139
+ var _excluded$9 = ["checked", "highlighted", "indeterminate", "invalid", "label", "onChange"];
4100
4140
  var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
4101
4141
  var checked = props.checked,
4102
4142
  highlighted = props.highlighted,
@@ -4104,7 +4144,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
4104
4144
  invalid = props.invalid,
4105
4145
  label = props.label,
4106
4146
  onChange = props.onChange,
4107
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$6);
4147
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$9);
4108
4148
 
4109
4149
  var className = cn('h-5 w-5 border rounded text-sm', {
4110
4150
  'mr-2': !!label,
@@ -4206,13 +4246,13 @@ const getButtonStateClasses = value => {
4206
4246
  }
4207
4247
  };
4208
4248
 
4209
- var _excluded$7 = ["button", "icon", "highlighted", "state", "autoFocus"];
4249
+ var _excluded$a = ["button", "icon", "highlighted", "state", "autoFocus"];
4210
4250
  var Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
4211
4251
  var button = props.button,
4212
4252
  icon = props.icon,
4213
4253
  state = props.state,
4214
4254
  autoFocus = props.autoFocus,
4215
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$7);
4255
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$a);
4216
4256
 
4217
4257
  var inputRef = useProxiedRef(ref);
4218
4258
  var hasContainer = button || icon;
@@ -4995,11 +5035,11 @@ const useBoundingClientRectListener = ref => {
4995
5035
  return dimensions;
4996
5036
  };
4997
5037
 
4998
- var _excluded$8 = ["className", "style"];
5038
+ var _excluded$b = ["className", "style"];
4999
5039
  var Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
5000
5040
  var externalClassName = props.className,
5001
5041
  style = props.style,
5002
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$8);
5042
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$b);
5003
5043
 
5004
5044
  var _useCombobox = useCombobox(otherProps, ref),
5005
5045
  combobox = _useCombobox.combobox,
@@ -5270,18 +5310,19 @@ function mergeRefs(refs) {
5270
5310
  };
5271
5311
  }
5272
5312
 
5273
- const PopoverContext = /*#__PURE__*/React.createContext({
5313
+ var _excluded$c = ["children", "trigger"];
5314
+ var PopoverContext = /*#__PURE__*/React.createContext({
5274
5315
  props: {},
5275
5316
  ref: null
5276
5317
  });
5277
- const Trigger$1 = /*#__PURE__*/React.forwardRef((props, ref) => {
5318
+ var Trigger$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
5278
5319
  var _props$children;
5279
5320
 
5280
- const context = React.useContext(PopoverContext);
5281
- let children = props.children;
5321
+ var context = React.useContext(PopoverContext);
5322
+ var children = props.children;
5282
5323
 
5283
5324
  if (React.isValidElement(props.children) && typeof ((_props$children = props.children) === null || _props$children === void 0 ? void 0 : _props$children.type) === 'function') {
5284
- 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`);
5325
+ 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");
5285
5326
  children = React.createElement("span", null, props.children);
5286
5327
  }
5287
5328
 
@@ -5291,22 +5332,22 @@ const Trigger$1 = /*#__PURE__*/React.forwardRef((props, ref) => {
5291
5332
  asChild: true
5292
5333
  }));
5293
5334
  });
5294
- const RenderPropWrapper = /*#__PURE__*/React.forwardRef(({
5295
- children,
5296
- onClick
5297
- }, ref) => {
5298
- const close = () => {
5335
+ var RenderPropWrapper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
5336
+ var children = _ref.children,
5337
+ onClick = _ref.onClick;
5338
+
5339
+ var close = function close() {
5299
5340
  onClick(new CustomEvent('hide'));
5300
5341
  };
5301
5342
 
5302
5343
  return children({
5303
- close,
5304
- ref
5344
+ close: close,
5345
+ ref: ref
5305
5346
  });
5306
5347
  });
5307
- const Content$1 = /*#__PURE__*/React.forwardRef((props, ref) => {
5308
- const className = cn('bg-white focus:border-blue-light', props.className);
5309
- let output;
5348
+ var Content$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
5349
+ var className = cn('bg-white focus:border-blue-light', props.className);
5350
+ var output;
5310
5351
 
5311
5352
  if (typeof props.children === 'function') {
5312
5353
  output = React.createElement(PopoverPrimitive.Close, {
@@ -5324,20 +5365,23 @@ const Content$1 = /*#__PURE__*/React.forwardRef((props, ref) => {
5324
5365
  className: "text-white"
5325
5366
  }));
5326
5367
  });
5327
- const Close$1 = /*#__PURE__*/React.forwardRef((props, ref) => React.createElement(PopoverPrimitive.Close, Object.assign({}, props, {
5328
- ref: ref,
5329
- asChild: true
5330
- })));
5331
- const Popover = /*#__PURE__*/React.forwardRef((props, ref) => {
5332
- const {
5333
- children,
5334
- trigger,
5335
- ...otherProps
5336
- } = props;
5337
- const context = React.useMemo(() => ({
5338
- props: otherProps,
5339
- ref
5340
- }), [otherProps]);
5368
+ var Close$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
5369
+ return React.createElement(PopoverPrimitive.Close, Object.assign({}, props, {
5370
+ ref: ref,
5371
+ asChild: true
5372
+ }));
5373
+ });
5374
+ var Popover = /*#__PURE__*/React.forwardRef(function (props, ref) {
5375
+ var children = props.children,
5376
+ trigger = props.trigger,
5377
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$c);
5378
+
5379
+ var context = React.useMemo(function () {
5380
+ return {
5381
+ props: otherProps,
5382
+ ref: ref
5383
+ };
5384
+ }, [otherProps]);
5341
5385
  return React.createElement(PopoverContext.Provider, {
5342
5386
  value: context
5343
5387
  }, React.createElement(PopoverPrimitive.Root, null, trigger && React.createElement(Trigger$1, null, trigger), children));
@@ -5346,7 +5390,7 @@ Popover.Trigger = Trigger$1;
5346
5390
  Popover.Content = Content$1;
5347
5391
  Popover.Close = Close$1;
5348
5392
 
5349
- var _excluded$9 = ["className", "onReset", "style", "shortcuts", "shortcutsText"];
5393
+ var _excluded$d = ["className", "onReset", "style", "shortcuts", "shortcutsText"];
5350
5394
  var Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref) {
5351
5395
  var _input$disabled;
5352
5396
 
@@ -5355,7 +5399,7 @@ var Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref) {
5355
5399
  style = props.style,
5356
5400
  shortcuts = props.shortcuts,
5357
5401
  shortcutsText = props.shortcutsText,
5358
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$9);
5402
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$d);
5359
5403
 
5360
5404
  var _useDatepicker = useDatepicker(otherProps, ref),
5361
5405
  calendar = _useDatepicker.calendar,
@@ -5645,7 +5689,7 @@ const Extra = /*#__PURE__*/React.forwardRef(function (props, ref) {
5645
5689
  }));
5646
5690
  });
5647
5691
 
5648
- var _excluded$a = ["children", "closeOnEscape", "defaultOpen", "draggable", "onChange", "onClose", "open", "showCloseButton", "size", "trigger"];
5692
+ var _excluded$e = ["children", "closeOnEscape", "defaultOpen", "draggable", "onChange", "onClose", "open", "showCloseButton", "size", "trigger"];
5649
5693
 
5650
5694
  var useSeparatedChildren = function useSeparatedChildren(initialChildren) {
5651
5695
  return React.useMemo(function () {
@@ -5680,7 +5724,7 @@ var Dialog = /*#__PURE__*/React.forwardRef(function (props, ref) {
5680
5724
  _props$size = props.size,
5681
5725
  size = _props$size === void 0 ? 'sm' : _props$size,
5682
5726
  trigger = props.trigger,
5683
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$a);
5727
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$e);
5684
5728
 
5685
5729
  var _useSeparatedChildren = useSeparatedChildren(initialChildren),
5686
5730
  children = _useSeparatedChildren[0],
@@ -5730,11 +5774,40 @@ Dialog.Extra = Extra;
5730
5774
  Dialog.Drawer = Drawer;
5731
5775
  Dialog.Close = Close$2;
5732
5776
 
5733
- var _excluded$b = ["horizontal"];
5777
+ var _excluded$f = ["disabled", "children", "message", "state"];
5778
+ var Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
5779
+ var disabled = props.disabled,
5780
+ children = props.children,
5781
+ message = props.message,
5782
+ state = props.state,
5783
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$f);
5784
+
5785
+ var className = cn('flex flex-col font-bold text-xs leading-loose pb-4 min-h-[theme(spacing.18)]', {
5786
+ 'text-grey-dark': disabled
5787
+ }, props.className);
5788
+ var messageClassName = cn('h-4 text-xs text-left leading-normal font-normal truncate -mb-4', {
5789
+ 'text-grey-darkest': !state || state === 'default',
5790
+ 'text-red': state === 'error',
5791
+ 'text-green': state === 'success',
5792
+ 'text-blue': state === 'information',
5793
+ 'text-yellow-dark': state === 'warning',
5794
+ 'opacity-50': disabled
5795
+ }, props.className);
5796
+ return React.createElement("label", Object.assign({}, otherProps, {
5797
+ className: className,
5798
+ "data-taco": "label",
5799
+ ref: ref
5800
+ }), children, message && React.createElement("span", {
5801
+ className: messageClassName,
5802
+ role: state === 'error' ? 'alert' : undefined
5803
+ }, message));
5804
+ });
5805
+
5806
+ var _excluded$g = ["horizontal"];
5734
5807
  var Form = /*#__PURE__*/React.forwardRef(function Form(props, ref) {
5735
5808
  var _props$horizontal = props.horizontal,
5736
5809
  horizontal = _props$horizontal === void 0 ? false : _props$horizontal,
5737
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$b);
5810
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$g);
5738
5811
 
5739
5812
  var className = cn('yt-form', {
5740
5813
  'yt-form--horizontal flex flex-wrap': horizontal
@@ -5746,11 +5819,11 @@ var Form = /*#__PURE__*/React.forwardRef(function Form(props, ref) {
5746
5819
  }));
5747
5820
  });
5748
5821
 
5749
- var _excluded$c = ["as"];
5822
+ var _excluded$h = ["as"];
5750
5823
  var Group = /*#__PURE__*/React.forwardRef(function Group(props, ref) {
5751
5824
  var _props$as = props.as,
5752
5825
  Tag = _props$as === void 0 ? 'span' : _props$as,
5753
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$c);
5826
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$h);
5754
5827
 
5755
5828
  var className = cn('flex ', props.className);
5756
5829
  return React.createElement(Tag, Object.assign({}, otherProps, {
@@ -5760,7 +5833,7 @@ var Group = /*#__PURE__*/React.forwardRef(function Group(props, ref) {
5760
5833
  }));
5761
5834
  });
5762
5835
 
5763
- var _excluded$d = ["anchor", "children"];
5836
+ var _excluded$i = ["anchor", "children"];
5764
5837
  var HangerContext = /*#__PURE__*/React.createContext({
5765
5838
  props: {},
5766
5839
  ref: null
@@ -5813,7 +5886,7 @@ var Content$3 = /*#__PURE__*/React.forwardRef(function (props, ref) {
5813
5886
  var Hanger = /*#__PURE__*/React.forwardRef(function (props, ref) {
5814
5887
  var anchor = props.anchor,
5815
5888
  children = props.children,
5816
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$d);
5889
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$i);
5817
5890
 
5818
5891
  var context = React.useMemo(function () {
5819
5892
  return {
@@ -5830,35 +5903,6 @@ var Hanger = /*#__PURE__*/React.forwardRef(function (props, ref) {
5830
5903
  Hanger.Anchor = Anchor;
5831
5904
  Hanger.Content = Content$3;
5832
5905
 
5833
- var _excluded$e = ["disabled", "children", "message", "state"];
5834
- var Label = /*#__PURE__*/React.forwardRef(function Label(props, ref) {
5835
- var disabled = props.disabled,
5836
- children = props.children,
5837
- message = props.message,
5838
- state = props.state,
5839
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$e);
5840
-
5841
- var className = cn('flex flex-col font-bold text-xs leading-loose pb-4 min-h-[theme(spacing.18)]', {
5842
- 'text-grey-dark': disabled
5843
- }, props.className);
5844
- var messageClassName = cn('h-4 text-xs text-left leading-normal font-normal truncate -mb-4', {
5845
- 'text-grey-darkest': !state || state === 'default',
5846
- 'text-red': state === 'error',
5847
- 'text-green': state === 'success',
5848
- 'text-blue': state === 'information',
5849
- 'text-yellow-dark': state === 'warning',
5850
- 'opacity-50': disabled
5851
- }, props.className);
5852
- return React.createElement("label", Object.assign({}, otherProps, {
5853
- className: className,
5854
- "data-taco": "label",
5855
- ref: ref
5856
- }), children, message && React.createElement("span", {
5857
- className: messageClassName,
5858
- role: state === 'error' ? 'alert' : undefined
5859
- }, message));
5860
- });
5861
-
5862
5906
  const useTypeahead = ({
5863
5907
  data,
5864
5908
  currentIndex
@@ -6201,11 +6245,11 @@ const useMultiListbox = ({
6201
6245
  };
6202
6246
  };
6203
6247
 
6204
- var _excluded$f = ["className"],
6248
+ var _excluded$j = ["className"],
6205
6249
  _excluded2$1 = ["className"];
6206
6250
  var Listbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
6207
6251
  var externalClassName = props.className,
6208
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$f);
6252
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$j);
6209
6253
 
6210
6254
  var _useListbox = useListbox(otherProps, ref),
6211
6255
  list = _useListbox.list,
@@ -6497,26 +6541,34 @@ const Checkbox$1 = props => {
6497
6541
  })), children);
6498
6542
  };
6499
6543
 
6500
- const getRadioGroupItemValueAsString = value => value === null ? '' : String(value);
6501
- const findByValue$1 = (values, valueAsString) => values.find(value => getRadioGroupItemValueAsString(value) === valueAsString);
6502
- const RadioGroupContext = /*#__PURE__*/React.createContext({
6544
+ var _excluded$k = ["children", "value"],
6545
+ _excluded2$2 = ["children", "defaultValue", "disabled", "invalid", "onChange", "orientation", "value"];
6546
+ var getRadioGroupItemValueAsString = function getRadioGroupItemValueAsString(value) {
6547
+ return value === null ? '' : String(value);
6548
+ };
6549
+ var findByValue$1 = function findByValue(values, valueAsString) {
6550
+ return values.find(function (value) {
6551
+ return getRadioGroupItemValueAsString(value) === valueAsString;
6552
+ });
6553
+ };
6554
+ var RadioGroupContext = /*#__PURE__*/React.createContext({
6503
6555
  disabled: false,
6504
6556
  invalid: false
6505
6557
  });
6506
- const RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(props, ref) {
6507
- const context = React.useContext(RadioGroupContext);
6508
- const {
6509
- children,
6510
- value,
6511
- ...otherProps
6512
- } = props;
6513
- const disabled = context.disabled || props.disabled;
6514
- const className = cn('flex items-center justify-center h-4 w-4 mr-2 rounded-full bg-white border-2 ', {
6558
+ var RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(props, ref) {
6559
+ var context = React.useContext(RadioGroupContext);
6560
+
6561
+ var children = props.children,
6562
+ value = props.value,
6563
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$k);
6564
+
6565
+ var disabled = context.disabled || props.disabled;
6566
+ var className = cn('flex items-center justify-center h-4 w-4 mr-2 rounded-full bg-white border-2 ', {
6515
6567
  'border-grey-dark focus:border-blue focus:yt-focus aria-checked:bg-blue aria-checked:border-blue': !disabled && !context.invalid,
6516
6568
  'border-grey cursor-not-allowed aria-checked:bg-grey-dark aria-checked:border-grey-dark': disabled,
6517
6569
  'border-red text-red focus:border-red focus:yt-focus-red aria-checked:bg-red aria-checked:border-red': context.invalid && !disabled
6518
6570
  });
6519
- const labelClassName = cn('flex items-center cursor-pointer', {
6571
+ var labelClassName = cn('flex items-center cursor-pointer', {
6520
6572
  'cursor-not-allowed text-grey-dark': disabled
6521
6573
  });
6522
6574
  return React.createElement("label", {
@@ -6530,34 +6582,38 @@ const RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(pro
6530
6582
  className: "h-2 w-2 rounded-full bg-white"
6531
6583
  })), children);
6532
6584
  });
6533
- const useRadioGroup = props => {
6534
- const {
6535
- children,
6536
- defaultValue,
6537
- disabled,
6538
- invalid,
6539
- onChange,
6540
- orientation = 'vertical',
6541
- value,
6542
- ...otherProps
6543
- } = props;
6544
- const values = React.useMemo(() => {
6545
- const radioGroupItemValues = [];
6546
- React.Children.forEach(children, child => {
6585
+ var useRadioGroup = function useRadioGroup(props) {
6586
+ var children = props.children,
6587
+ defaultValue = props.defaultValue,
6588
+ disabled = props.disabled,
6589
+ invalid = props.invalid,
6590
+ onChange = props.onChange,
6591
+ _props$orientation = props.orientation,
6592
+ orientation = _props$orientation === void 0 ? 'vertical' : _props$orientation,
6593
+ value = props.value,
6594
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$2);
6595
+
6596
+ var values = React.useMemo(function () {
6597
+ var radioGroupItemValues = [];
6598
+ React.Children.forEach(children, function (child) {
6547
6599
  if (React.isValidElement(child)) {
6548
6600
  radioGroupItemValues.push(child.props.value);
6549
6601
  }
6550
6602
  });
6551
6603
  return radioGroupItemValues;
6552
6604
  }, [children]);
6553
- const context = React.useMemo(() => ({
6554
- disabled: disabled !== null && disabled !== void 0 ? disabled : false,
6555
- invalid: invalid !== null && invalid !== void 0 ? invalid : false
6556
- }), [disabled, invalid]);
6557
- let valueProps;
6605
+ var context = React.useMemo(function () {
6606
+ return {
6607
+ disabled: disabled !== null && disabled !== void 0 ? disabled : false,
6608
+ invalid: invalid !== null && invalid !== void 0 ? invalid : false
6609
+ };
6610
+ }, [disabled, invalid]);
6611
+ var valueProps;
6558
6612
 
6559
6613
  if (onChange !== undefined) {
6560
- const handleChange = value => onChange(findByValue$1(values, value));
6614
+ var handleChange = function handleChange(value) {
6615
+ return onChange(findByValue$1(values, value));
6616
+ };
6561
6617
 
6562
6618
  valueProps = {
6563
6619
  onValueChange: handleChange,
@@ -6570,20 +6626,19 @@ const useRadioGroup = props => {
6570
6626
  }
6571
6627
 
6572
6628
  return {
6573
- context,
6574
- props: { ...otherProps,
6575
- ...valueProps,
6576
- children,
6577
- orientation
6578
- }
6629
+ context: context,
6630
+ props: _extends({}, otherProps, valueProps, {
6631
+ children: children,
6632
+ orientation: orientation
6633
+ })
6579
6634
  };
6580
6635
  };
6581
- const RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
6582
- const {
6583
- context,
6584
- props: otherProps
6585
- } = useRadioGroup(props);
6586
- const className = cn('flex items-start', {
6636
+ var RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref) {
6637
+ var _useRadioGroup = useRadioGroup(props),
6638
+ context = _useRadioGroup.context,
6639
+ otherProps = _useRadioGroup.props;
6640
+
6641
+ var className = cn('flex items-start', {
6587
6642
  'flex-wrap space-x-4': otherProps.orientation === 'horizontal',
6588
6643
  'flex-col space-y-2': otherProps.orientation === 'vertical'
6589
6644
  }, otherProps.className);
@@ -6696,11 +6751,11 @@ const Header = props => {
6696
6751
  }));
6697
6752
  };
6698
6753
 
6699
- var _excluded$g = ["children", "trigger"];
6754
+ var _excluded$l = ["children", "trigger"];
6700
6755
  var Menu = function Menu(externalProps) {
6701
6756
  var children = externalProps.children,
6702
6757
  trigger = externalProps.trigger,
6703
- props = _objectWithoutPropertiesLoose(externalProps, _excluded$g);
6758
+ props = _objectWithoutPropertiesLoose(externalProps, _excluded$l);
6704
6759
 
6705
6760
  var _React$useState = React.useState(false),
6706
6761
  open = _React$useState[0],
@@ -6753,39 +6808,44 @@ Menu.Separator = Separator;
6753
6808
  Menu.Header = Header;
6754
6809
  Menu.RadioGroup = RadioGroup$1;
6755
6810
 
6756
- const TreeviewItem = /*#__PURE__*/React__default.forwardRef((props, ref) => {
6811
+ var _excluded$m = ["children", "className", "expanded", "title", "fixed", "onClick"];
6812
+ var TreeviewItem = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
6757
6813
  return React__default.createElement("a", Object.assign({}, props, {
6758
6814
  ref: ref
6759
6815
  }));
6760
6816
  });
6761
- const TreeviewGroup = /*#__PURE__*/React__default.forwardRef((props, ref) => {
6762
- const {
6763
- children,
6764
- className: externalClassName,
6765
- expanded: initialExpanded = false,
6766
- title,
6767
- fixed,
6768
- onClick,
6769
- ...otherProps
6770
- } = props;
6771
- const [expanded, setExpanded] = React__default.useState(fixed || initialExpanded);
6772
- React__default.useEffect(() => {
6817
+ var TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
6818
+ var children = props.children,
6819
+ externalClassName = props.className,
6820
+ _props$expanded = props.expanded,
6821
+ initialExpanded = _props$expanded === void 0 ? false : _props$expanded,
6822
+ title = props.title,
6823
+ fixed = props.fixed,
6824
+ onClick = props.onClick,
6825
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$m);
6826
+
6827
+ var _React$useState = React__default.useState(fixed || initialExpanded),
6828
+ expanded = _React$useState[0],
6829
+ setExpanded = _React$useState[1];
6830
+
6831
+ React__default.useEffect(function () {
6773
6832
  if (!fixed) {
6774
6833
  setExpanded(fixed || initialExpanded);
6775
6834
  }
6776
6835
  }, [fixed, initialExpanded]);
6777
- const listClassName = cn('flex-col mb-0', {
6836
+ var listClassName = cn('flex-col mb-0', {
6778
6837
  flex: expanded,
6779
6838
  hidden: !expanded
6780
6839
  });
6781
- const itemProps = { ...otherProps,
6840
+
6841
+ var itemProps = _extends({}, otherProps, {
6782
6842
  'aria-expanded': expanded,
6783
6843
  role: 'treeitem',
6784
6844
  tabIndex: -1
6785
- };
6845
+ });
6786
6846
 
6787
- const handleClick = event => {
6788
- const nextState = !expanded;
6847
+ var handleClick = function handleClick(event) {
6848
+ var nextState = !expanded;
6789
6849
 
6790
6850
  if (!fixed) {
6791
6851
  setExpanded(nextState);
@@ -6796,7 +6856,7 @@ const TreeviewGroup = /*#__PURE__*/React__default.forwardRef((props, ref) => {
6796
6856
  }
6797
6857
  };
6798
6858
 
6799
- const className = typeof externalClassName === 'function' ? externalClassName(expanded) : externalClassName;
6859
+ var className = typeof externalClassName === 'function' ? externalClassName(expanded) : externalClassName;
6800
6860
  return React__default.createElement("div", Object.assign({}, itemProps, {
6801
6861
  className: className,
6802
6862
  ref: ref
@@ -6805,14 +6865,18 @@ const TreeviewGroup = /*#__PURE__*/React__default.forwardRef((props, ref) => {
6805
6865
  }, typeof title === 'function' ? title(expanded) : title), React__default.createElement("ul", {
6806
6866
  role: "group",
6807
6867
  className: listClassName
6808
- }, React__default.Children.toArray(children).filter(item => !!item).map((item, i) => React__default.createElement("li", {
6809
- key: i,
6810
- role: "none"
6811
- }, React__default.cloneElement(item, {
6812
- role: 'treeitem'
6813
- })))));
6868
+ }, React__default.Children.toArray(children).filter(function (item) {
6869
+ return !!item;
6870
+ }).map(function (item, i) {
6871
+ return React__default.createElement("li", {
6872
+ key: i,
6873
+ role: "none"
6874
+ }, React__default.cloneElement(item, {
6875
+ role: 'treeitem'
6876
+ }));
6877
+ })));
6814
6878
  });
6815
- const Treeview = /*#__PURE__*/React__default.forwardRef((props, ref) => {
6879
+ var Treeview = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
6816
6880
  return React__default.createElement("div", Object.assign({}, props, {
6817
6881
  ref: ref,
6818
6882
  role: "tree"
@@ -6855,8 +6919,8 @@ const useDropTarget = onDrop => {
6855
6919
  return [isDraggedOver, props];
6856
6920
  };
6857
6921
 
6858
- var _excluded$h = ["active", "children", "onDrop", "postfix", "prefix", "role"],
6859
- _excluded2$2 = ["children"];
6922
+ var _excluded$n = ["active", "children", "onDrop", "postfix", "prefix", "role"],
6923
+ _excluded2$3 = ["children"];
6860
6924
  var Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
6861
6925
  var active = props.active,
6862
6926
  children = props.children,
@@ -6864,7 +6928,7 @@ var Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref) {
6864
6928
  postfix = props.postfix,
6865
6929
  prefix = props.prefix,
6866
6930
  role = props.role,
6867
- otherProps = _objectWithoutPropertiesLoose(props, _excluded$h);
6931
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$n);
6868
6932
 
6869
6933
  var proxyRef = useProxiedRef(ref);
6870
6934
 
@@ -6966,7 +7030,7 @@ var Menu$1 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref) {
6966
7030
  Menu$1.Group = MenuGroup;
6967
7031
  var Navigation = /*#__PURE__*/React__default.forwardRef(function Navigation(props, ref) {
6968
7032
  var children = props.children,
6969
- otherProps = _objectWithoutPropertiesLoose(props, _excluded2$2);
7033
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$3);
6970
7034
 
6971
7035
  var className = cn('h-full flex flex-col bg-grey-light divide-y-2 divide-grey-light', props.className);
6972
7036
  return React__default.createElement("div", Object.assign({}, otherProps, {
@@ -7202,51 +7266,53 @@ const useSelect = ({
7202
7266
  };
7203
7267
  };
7204
7268
 
7205
- const BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
7206
- const {
7207
- autoFocus,
7208
- className: externalClassName,
7209
- highlighted,
7210
- style,
7211
- ...otherProps
7212
- } = props;
7213
- const {
7214
- button,
7215
- listbox,
7216
- popover,
7217
- input,
7218
- text,
7219
- more = 0
7220
- } = useSelect(otherProps, ref);
7221
- const internalRef = React.useRef(null);
7222
- const selectDimensions = useBoundingClientRectListener(internalRef);
7223
- const className = cn('inline-flex relative w-full', {
7269
+ var _excluded$o = ["autoFocus", "className", "highlighted", "style"],
7270
+ _excluded2$4 = ["editable"];
7271
+ var BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref) {
7272
+ var autoFocus = props.autoFocus,
7273
+ externalClassName = props.className,
7274
+ style = props.style,
7275
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$o);
7276
+
7277
+ var _useSelect = useSelect(otherProps, ref),
7278
+ button = _useSelect.button,
7279
+ listbox = _useSelect.listbox,
7280
+ popover = _useSelect.popover,
7281
+ input = _useSelect.input,
7282
+ text = _useSelect.text,
7283
+ _useSelect$more = _useSelect.more,
7284
+ more = _useSelect$more === void 0 ? 0 : _useSelect$more;
7285
+
7286
+ var internalRef = React.useRef(null);
7287
+ var selectDimensions = useBoundingClientRectListener(internalRef);
7288
+ var className = cn('inline-flex relative w-full', {
7224
7289
  'yt-select--readonly': props.readOnly
7225
7290
  }, externalClassName);
7226
- const inputClassname = cn(getInputClasses(props), 'text-left pr-0', {
7291
+ var inputClassname = cn(getInputClasses(props), 'text-left pr-0', {
7227
7292
  'border-blue': popover.open
7228
7293
  });
7229
- React.useEffect(() => {
7294
+ React.useEffect(function () {
7230
7295
  if (autoFocus && internalRef.current) {
7231
7296
  internalRef.current.focus();
7232
7297
  }
7233
7298
  }, []);
7234
7299
 
7235
- const renderMultiSelection = () => {
7300
+ var renderMultiSelection = function renderMultiSelection() {
7236
7301
  return React.createElement(React.Fragment, null, React.createElement("span", {
7237
7302
  className: "flex-grow truncate text-left"
7238
7303
  }, text), more > 0 && React.createElement(Badge, {
7239
7304
  className: "ml-2"
7240
- }, `+${more}`));
7305
+ }, "+" + more));
7241
7306
  };
7242
7307
 
7243
- const commonListboxProps = { ...listbox,
7308
+ var commonListboxProps = _extends({}, listbox, {
7244
7309
  className: 'w-auto',
7245
7310
  style: {
7246
7311
  minWidth: selectDimensions === null || selectDimensions === void 0 ? void 0 : selectDimensions.width
7247
7312
  },
7248
7313
  tabIndex: popover.open ? 0 : -1
7249
- };
7314
+ });
7315
+
7250
7316
  return React.createElement("span", {
7251
7317
  className: className,
7252
7318
  "data-taco": "select",
@@ -7269,11 +7335,9 @@ const BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref)
7269
7335
  type: "text"
7270
7336
  }))));
7271
7337
  });
7272
- const Select = /*#__PURE__*/React.forwardRef(function Select(props, ref) {
7273
- const {
7274
- editable,
7275
- ...otherProps
7276
- } = props;
7338
+ var Select = /*#__PURE__*/React.forwardRef(function Select(props, ref) {
7339
+ var editable = props.editable,
7340
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$4);
7277
7341
 
7278
7342
  if (editable) {
7279
7343
  return React.createElement(Combobox, Object.assign({}, otherProps, {
@@ -7343,41 +7407,47 @@ const usePagination = (initialPageIndex = 0, initialPageSize = 10) => {
7343
7407
  };
7344
7408
  };
7345
7409
 
7346
- const getShowingLabel = (length, pageIndex, pageSize, texts) => {
7347
- const minItemIndex = pageIndex * pageSize + 1;
7348
- const maxItemIndex = (pageIndex + 1) * pageSize;
7410
+ var _excluded$p = ["length", "pageIndex", "pageSize", "pageSizes", "setPageIndex", "setPageSize", "showPageControls", "showPageNumbers", "showPageSize", "dangerouslyHijackGlobalKeyboardNavigation"];
7411
+
7412
+ var getShowingLabel = function getShowingLabel(length, pageIndex, pageSize, texts) {
7413
+ var minItemIndex = pageIndex * pageSize + 1;
7414
+ var maxItemIndex = (pageIndex + 1) * pageSize;
7349
7415
  return texts.pagination.showingXofYofTotal.replace('[X]', length === 0 ? '0' : String(minItemIndex)).replace('[Y]', String(maxItemIndex > length ? length : maxItemIndex)).replace('[total]', String(length));
7350
7416
  };
7351
7417
 
7352
- const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
7353
- const {
7354
- length,
7355
- pageIndex,
7356
- pageSize,
7357
- pageSizes = [10, 25, 50, 100, 500],
7358
- setPageIndex,
7359
- setPageSize,
7360
- showPageControls = true,
7361
- showPageNumbers = true,
7362
- showPageSize = true,
7363
- dangerouslyHijackGlobalKeyboardNavigation = false,
7364
- ...otherProps
7365
- } = props;
7366
- const {
7367
- texts
7368
- } = useLocalization();
7369
- const maxPageIndex = Math.ceil(length / pageSize) - 1;
7370
- const showShortcutTexts = dangerouslyHijackGlobalKeyboardNavigation;
7418
+ var Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {
7419
+ var length = props.length,
7420
+ pageIndex = props.pageIndex,
7421
+ pageSize = props.pageSize,
7422
+ _props$pageSizes = props.pageSizes,
7423
+ pageSizes = _props$pageSizes === void 0 ? [10, 25, 50, 100, 500] : _props$pageSizes,
7424
+ setPageIndex = props.setPageIndex,
7425
+ setPageSize = props.setPageSize,
7426
+ _props$showPageContro = props.showPageControls,
7427
+ showPageControls = _props$showPageContro === void 0 ? true : _props$showPageContro,
7428
+ _props$showPageNumber = props.showPageNumbers,
7429
+ showPageNumbers = _props$showPageNumber === void 0 ? true : _props$showPageNumber,
7430
+ _props$showPageSize = props.showPageSize,
7431
+ showPageSize = _props$showPageSize === void 0 ? true : _props$showPageSize,
7432
+ _props$dangerouslyHij = props.dangerouslyHijackGlobalKeyboardNavigation,
7433
+ dangerouslyHijackGlobalKeyboardNavigation = _props$dangerouslyHij === void 0 ? false : _props$dangerouslyHij,
7434
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$p);
7435
+
7436
+ var _useLocalization = useLocalization(),
7437
+ texts = _useLocalization.texts;
7438
+
7439
+ var maxPageIndex = Math.ceil(length / pageSize) - 1;
7440
+ var showShortcutTexts = dangerouslyHijackGlobalKeyboardNavigation;
7371
7441
  usePaginationShortcuts({
7372
- setPageIndex,
7373
- maxPageIndex,
7374
- pageIndex,
7375
- dangerouslyHijackGlobalKeyboardNavigation
7442
+ setPageIndex: setPageIndex,
7443
+ maxPageIndex: maxPageIndex,
7444
+ pageIndex: pageIndex,
7445
+ dangerouslyHijackGlobalKeyboardNavigation: dangerouslyHijackGlobalKeyboardNavigation
7376
7446
  });
7377
- const pageCount = Math.ceil(length / pageSize);
7378
- const canPreviousPage = pageIndex > 0;
7379
- const canNextPage = pageIndex < pageCount - 1;
7380
- const className = cn('inline-flex relative justify-between items-center', props.className);
7447
+ var pageCount = Math.ceil(length / pageSize);
7448
+ var canPreviousPage = pageIndex > 0;
7449
+ var canNextPage = pageIndex < pageCount - 1;
7450
+ var className = cn('inline-flex relative justify-between items-center', props.className);
7381
7451
  return React.createElement("div", Object.assign({}, otherProps, {
7382
7452
  className: className,
7383
7453
  "data-taco": "pagination",
@@ -7387,11 +7457,13 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7387
7457
  }, getShowingLabel(length, pageIndex, pageSize, texts), React.createElement(Select, {
7388
7458
  "aria-label": texts.pagination.pageSize,
7389
7459
  className: "ml-4 !w-20",
7390
- data: pageSizes.map(pageSize => ({
7391
- text: String(pageSize),
7392
- value: pageSize
7393
- })),
7394
- onChange: event => {
7460
+ data: pageSizes.map(function (pageSize) {
7461
+ return {
7462
+ text: String(pageSize),
7463
+ value: pageSize
7464
+ };
7465
+ }),
7466
+ onChange: function onChange(event) {
7395
7467
  setPageIndex(0);
7396
7468
  setPageSize(Number(event.target.value));
7397
7469
  },
@@ -7403,14 +7475,18 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7403
7475
  appearance: "default",
7404
7476
  disabled: !canPreviousPage,
7405
7477
  icon: "arrow-start",
7406
- onClick: () => setPageIndex(0),
7478
+ onClick: function onClick() {
7479
+ return setPageIndex(0);
7480
+ },
7407
7481
  "aria-label": showShortcutTexts ? texts.pagination.actions.firstPageWithShortcut : texts.pagination.actions.firstPage,
7408
7482
  tooltip: showShortcutTexts ? texts.pagination.actions.firstPageWithShortcut : texts.pagination.actions.firstPage
7409
7483
  }), React.createElement(IconButton, {
7410
7484
  appearance: "default",
7411
7485
  disabled: !canPreviousPage,
7412
7486
  icon: "arrow-left",
7413
- onClick: () => setPageIndex(pageIndex - 1),
7487
+ onClick: function onClick() {
7488
+ return setPageIndex(pageIndex - 1);
7489
+ },
7414
7490
  "aria-label": showShortcutTexts ? texts.pagination.actions.previousPageWithShortcut : texts.pagination.actions.previousPage,
7415
7491
  tooltip: showShortcutTexts ? texts.pagination.actions.previousPageWithShortcut : texts.pagination.actions.previousPage
7416
7492
  }), showPageNumbers && pageCount > 0 && React.createElement(PageNumbers, {
@@ -7421,36 +7497,43 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
7421
7497
  appearance: "default",
7422
7498
  disabled: !canNextPage,
7423
7499
  icon: "arrow-right",
7424
- onClick: () => setPageIndex(pageIndex + 1),
7500
+ onClick: function onClick() {
7501
+ return setPageIndex(pageIndex + 1);
7502
+ },
7425
7503
  "aria-label": showShortcutTexts ? texts.pagination.actions.nextPageWithShortcut : texts.pagination.actions.nextPage,
7426
7504
  tooltip: showShortcutTexts ? texts.pagination.actions.nextPageWithShortcut : texts.pagination.actions.nextPage
7427
7505
  }), React.createElement(IconButton, {
7428
7506
  appearance: "default",
7429
7507
  disabled: !canNextPage,
7430
7508
  icon: "arrow-end",
7431
- onClick: () => setPageIndex(pageCount - 1),
7509
+ onClick: function onClick() {
7510
+ return setPageIndex(pageCount - 1);
7511
+ },
7432
7512
  "aria-label": showShortcutTexts ? texts.pagination.actions.lastPageWithShortcut : texts.pagination.actions.lastPage,
7433
7513
  tooltip: showShortcutTexts ? texts.pagination.actions.lastPageWithShortcut : texts.pagination.actions.lastPage
7434
7514
  })));
7435
7515
  });
7436
7516
 
7437
- const Progress = ({
7438
- duration = undefined,
7439
- ...props
7440
- }) => {
7441
- let style;
7517
+ var _excluded$q = ["duration"];
7518
+ var Progress = function Progress(_ref) {
7519
+ var _cn;
7520
+
7521
+ var _ref$duration = _ref.duration,
7522
+ duration = _ref$duration === void 0 ? undefined : _ref$duration,
7523
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7524
+
7525
+ var style;
7442
7526
 
7443
7527
  if (duration) {
7444
7528
  style = {
7445
- animationDuration: `${duration}ms`
7529
+ animationDuration: duration + "ms"
7446
7530
  };
7447
7531
  }
7448
7532
 
7449
- const className = cn('bg-grey-light rounded block h-1 overflow-hidden w-full', props.className);
7450
- const progressClassName = cn('yt-progress__bar block h-1', {
7451
- "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,
7452
- [`w-0 bg-grey-dark animate-[progress_linear]`]: duration
7453
- });
7533
+ var className = cn('bg-grey-light rounded block h-1 overflow-hidden w-full', props.className);
7534
+ var progressClassName = cn('yt-progress__bar block h-1', (_cn = {
7535
+ "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
7536
+ }, _cn["w-0 bg-grey-dark animate-[progress_linear]"] = duration, _cn));
7454
7537
  return React__default.createElement("span", Object.assign({}, props, {
7455
7538
  "data-taco": "progress",
7456
7539
  className: className
@@ -9058,16 +9141,19 @@ const useTableRowCreation = (data, tableRef) => {
9058
9141
  };
9059
9142
  };
9060
9143
 
9061
- const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
9062
- const {
9063
- id,
9064
- defaultId,
9065
- children,
9066
- onChange,
9067
- orientation = 'horizontal',
9068
- ...otherProps
9069
- } = props;
9070
- const className = cn('yt-tabs', `yt-tabs--${orientation}`, {
9144
+ var _excluded$r = ["id", "defaultId", "children", "onChange", "orientation"],
9145
+ _excluded2$5 = ["id", "disabled"],
9146
+ _excluded3 = ["id"];
9147
+ var Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
9148
+ var id = props.id,
9149
+ defaultId = props.defaultId,
9150
+ children = props.children,
9151
+ onChange = props.onChange,
9152
+ _props$orientation = props.orientation,
9153
+ orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,
9154
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$r);
9155
+
9156
+ var className = cn('yt-tabs', "yt-tabs--" + orientation, {
9071
9157
  'flex w-full': orientation === 'vertical'
9072
9158
  }, props.className);
9073
9159
  return React.createElement(TabsPrimitive.Root, Object.assign({}, otherProps, {
@@ -9081,20 +9167,19 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
9081
9167
  value: id
9082
9168
  }), children);
9083
9169
  });
9084
- const TabList = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9085
- const className = cn('yt-tab__list border-b border-grey-light flex flex-row m-0 mb-4', props.className);
9170
+ var TabList = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9171
+ var className = cn('yt-tab__list border-b border-grey-light flex flex-row m-0 mb-4', props.className);
9086
9172
  return React.createElement(TabsPrimitive.List, Object.assign({}, props, {
9087
9173
  className: className,
9088
9174
  ref: ref
9089
9175
  }));
9090
9176
  });
9091
- const TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9092
- const {
9093
- id,
9094
- disabled,
9095
- ...otherProps
9096
- } = props;
9097
- 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);
9177
+ var TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9178
+ var id = props.id,
9179
+ disabled = props.disabled,
9180
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded2$5);
9181
+
9182
+ 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);
9098
9183
  return React.createElement(TabsPrimitive.Trigger, Object.assign({}, otherProps, {
9099
9184
  className: className,
9100
9185
  disabled: disabled,
@@ -9105,12 +9190,11 @@ const TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9105
9190
  value: id
9106
9191
  }));
9107
9192
  });
9108
- const TabContent = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9109
- const {
9110
- id,
9111
- ...otherProps
9112
- } = props;
9113
- const className = cn('yt-tab__panel outline-none', props.className);
9193
+ var TabContent = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
9194
+ var id = props.id,
9195
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded3);
9196
+
9197
+ var className = cn('yt-tab__panel outline-none', props.className);
9114
9198
  return React.createElement(TabsPrimitive.Content, Object.assign({}, otherProps, {
9115
9199
  className: className,
9116
9200
  ref: ref,
@@ -9121,32 +9205,29 @@ Tabs.List = TabList;
9121
9205
  Tabs.Trigger = TabTrigger;
9122
9206
  Tabs.Content = TabContent;
9123
9207
 
9124
- const Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
9125
- const {
9126
- defaultValue: _,
9127
- highlighted,
9128
- state,
9129
- ...otherProps
9130
- } = props;
9131
- const classNames = cn(getInputClasses(props), 'py-1 min-h-[75px] disabled:resize-none', props.className);
9208
+ var _excluded$s = ["defaultValue", "highlighted", "state"];
9209
+ var Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
9210
+ var otherProps = _objectWithoutPropertiesLoose(props, _excluded$s);
9211
+
9212
+ var classNames = cn(getInputClasses(props), 'py-1 min-h-[75px] disabled:resize-none', props.className);
9132
9213
  return React.createElement("textarea", Object.assign({}, otherProps, {
9133
9214
  className: classNames,
9134
9215
  ref: ref
9135
9216
  }));
9136
9217
  });
9137
9218
 
9138
- const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9139
- const {
9140
- label,
9141
- onChange,
9142
- ...otherProps
9143
- } = props;
9144
- const className = cn('group h-6 w-10 flex rounded-full inline-flex', {
9219
+ var _excluded$t = ["label", "onChange"];
9220
+ var Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9221
+ var label = props.label,
9222
+ onChange = props.onChange,
9223
+ otherProps = _objectWithoutPropertiesLoose(props, _excluded$t);
9224
+
9225
+ var className = cn('group h-6 w-10 flex rounded-full inline-flex', {
9145
9226
  'mr-2': !!label,
9146
9227
  'bg-grey-darker aria-checked:bg-blue focus:yt-focus': !props.disabled,
9147
9228
  'bg-grey-light cursor-not-allowed aria-checked:bg-blue-light': props.disabled
9148
9229
  }, props.className);
9149
- const element = React.createElement(PrimitiveSwitch.Root, Object.assign({}, otherProps, {
9230
+ var element = React.createElement(PrimitiveSwitch.Root, Object.assign({}, otherProps, {
9150
9231
  className: className,
9151
9232
  onCheckedChange: onChange,
9152
9233
  ref: ref
@@ -9155,7 +9236,7 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9155
9236
  }));
9156
9237
 
9157
9238
  if (label) {
9158
- const labelClassName = cn('flex items-center cursor-pointer', {
9239
+ var labelClassName = cn('flex items-center cursor-pointer', {
9159
9240
  'cursor-not-allowed text-grey-dark': props.disabled
9160
9241
  });
9161
9242
  return React.createElement("label", {
@@ -9166,22 +9247,23 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
9166
9247
  return element;
9167
9248
  });
9168
9249
 
9169
- const Tooltip$1 = ({
9170
- continuous,
9171
- index,
9172
- isLastStep,
9173
- step,
9174
- backProps,
9175
- primaryProps,
9176
- skipProps,
9177
- tooltipProps,
9178
- size,
9179
- locale,
9180
- disableTourSkipOnEsc
9181
- }) => {
9182
- const skipButtonRef = React.useRef(null);
9183
- React.useEffect(() => {
9184
- const onWindowKeyDown = event => {
9250
+ var _excluded$u = ["autoStart", "onComplete", "onClose", "onReady", "spotlightClicks", "disableCloseOnEsc", "disableScrollParentFix"];
9251
+
9252
+ var Tooltip$1 = function Tooltip(_ref) {
9253
+ var continuous = _ref.continuous,
9254
+ index = _ref.index,
9255
+ isLastStep = _ref.isLastStep,
9256
+ step = _ref.step,
9257
+ backProps = _ref.backProps,
9258
+ primaryProps = _ref.primaryProps,
9259
+ skipProps = _ref.skipProps,
9260
+ tooltipProps = _ref.tooltipProps,
9261
+ size = _ref.size,
9262
+ locale = _ref.locale,
9263
+ disableTourSkipOnEsc = _ref.disableTourSkipOnEsc;
9264
+ var skipButtonRef = React.useRef(null);
9265
+ React.useEffect(function () {
9266
+ var onWindowKeyDown = function onWindowKeyDown(event) {
9185
9267
  if (!disableTourSkipOnEsc) {
9186
9268
  if (event.keyCode === keycode('esc') && skipButtonRef.current !== null) {
9187
9269
  event.preventDefault();
@@ -9192,7 +9274,7 @@ const Tooltip$1 = ({
9192
9274
  };
9193
9275
 
9194
9276
  window.addEventListener('keydown', onWindowKeyDown);
9195
- return () => {
9277
+ return function () {
9196
9278
  window.removeEventListener('keydown', onWindowKeyDown);
9197
9279
  };
9198
9280
  }, []);
@@ -9211,30 +9293,30 @@ const Tooltip$1 = ({
9211
9293
  appearance: "discrete"
9212
9294
  }), locale.back), React.createElement(Button$1, Object.assign({}, primaryProps, {
9213
9295
  appearance: "primary"
9214
- }), continuous ? isLastStep ? `${locale.last} (${index + 1}/${size})` : `${locale.next} (${index + 1}/${size})` : locale.close)));
9296
+ }), continuous ? isLastStep ? locale.last + " (" + (index + 1) + "/" + size + ")" : locale.next + " (" + (index + 1) + "/" + size + ")" : locale.close)));
9215
9297
  }; // eslint-disable-next-line @typescript-eslint/no-unused-vars
9216
9298
 
9217
9299
 
9218
- const TourStep = _props => null;
9219
- const Tour = props => {
9220
- const {
9221
- texts: {
9222
- tour
9223
- }
9224
- } = useLocalization();
9225
- const {
9226
- autoStart: run,
9227
- onComplete,
9228
- onClose,
9229
- onReady,
9230
- spotlightClicks,
9231
- disableCloseOnEsc: disableTourSkipOnEsc,
9232
- disableScrollParentFix = false,
9233
- ...rest
9234
- } = props;
9235
- const steps = React.useMemo(() => {
9236
- return React.Children.map(props.children, child => {
9237
- const step = {
9300
+ var TourStep = function TourStep(_props) {
9301
+ return null;
9302
+ };
9303
+ var Tour = function Tour(props) {
9304
+ var _useLocalization = useLocalization(),
9305
+ tour = _useLocalization.texts.tour;
9306
+
9307
+ var run = props.autoStart,
9308
+ onComplete = props.onComplete,
9309
+ onClose = props.onClose,
9310
+ onReady = props.onReady,
9311
+ spotlightClicks = props.spotlightClicks,
9312
+ disableTourSkipOnEsc = props.disableCloseOnEsc,
9313
+ _props$disableScrollP = props.disableScrollParentFix,
9314
+ disableScrollParentFix = _props$disableScrollP === void 0 ? false : _props$disableScrollP,
9315
+ rest = _objectWithoutPropertiesLoose(props, _excluded$u);
9316
+
9317
+ var steps = React.useMemo(function () {
9318
+ return React.Children.map(props.children, function (child) {
9319
+ var step = {
9238
9320
  disableBeacon: !child.props.showBeacon,
9239
9321
  target: child.props.selector,
9240
9322
  placement: child.props.position,
@@ -9244,10 +9326,12 @@ const Tour = props => {
9244
9326
  return step;
9245
9327
  });
9246
9328
  }, [props.children]);
9247
- const getStep = React.useCallback(selector => {
9329
+ var getStep = React.useCallback(function (selector) {
9248
9330
  var _props$children$find;
9249
9331
 
9250
- return (_props$children$find = props.children.find(child => child.props.selector === selector)) === null || _props$children$find === void 0 ? void 0 : _props$children$find.props;
9332
+ return (_props$children$find = props.children.find(function (child) {
9333
+ return child.props.selector === selector;
9334
+ })) === null || _props$children$find === void 0 ? void 0 : _props$children$find.props;
9251
9335
  }, [props.children]);
9252
9336
 
9253
9337
  function callback(state) {
@@ -9277,10 +9361,12 @@ const Tour = props => {
9277
9361
  floaterProps: {
9278
9362
  disableAnimation: true
9279
9363
  },
9280
- tooltipComponent: tooltipProps => React.createElement(Tooltip$1, Object.assign({}, tooltipProps, {
9281
- locale: tour,
9282
- disableTourSkipOnEsc: disableTourSkipOnEsc
9283
- })),
9364
+ tooltipComponent: function tooltipComponent(tooltipProps) {
9365
+ return React.createElement(Tooltip$1, Object.assign({}, tooltipProps, {
9366
+ locale: tour,
9367
+ disableTourSkipOnEsc: disableTourSkipOnEsc
9368
+ }));
9369
+ },
9284
9370
  locale: tour,
9285
9371
  spotlightPadding: 8,
9286
9372
  spotlightClicks: spotlightClicks,
@@ -9321,10 +9407,10 @@ var useOnClickOutside = function useOnClickOutside(ref, callback) {
9321
9407
  }, [ref, callback]);
9322
9408
  };
9323
9409
 
9324
- var _excluded$i = ["onSearch"];
9410
+ var _excluded$v = ["onSearch"];
9325
9411
  var SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput(_ref, ref) {
9326
9412
  var onSearch = _ref.onSearch,
9327
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
9413
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
9328
9414
 
9329
9415
  var _useLocalization = useLocalization(),
9330
9416
  texts = _useLocalization.texts;
@@ -9367,13 +9453,13 @@ exports.Checkbox = Checkbox;
9367
9453
  exports.Combobox = Combobox;
9368
9454
  exports.Datepicker = Datepicker;
9369
9455
  exports.Dialog = Dialog;
9456
+ exports.Field = Field;
9370
9457
  exports.Form = Form;
9371
9458
  exports.Group = Group;
9372
9459
  exports.Hanger = Hanger;
9373
9460
  exports.Icon = Icon;
9374
9461
  exports.IconButton = IconButton;
9375
9462
  exports.Input = Input;
9376
- exports.Label = Label;
9377
9463
  exports.Listbox = Listbox;
9378
9464
  exports.Menu = Menu;
9379
9465
  exports.MultiListbox = MultiListbox;