@economic/taco 1.16.2 → 1.17.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 (137) hide show
  1. package/dist/components/AlertDialog/Context.d.ts +1 -1
  2. package/dist/components/Banner/Banner.stories.d.ts +2 -20
  3. package/dist/components/Button/Button.d.ts +2 -2
  4. package/dist/components/Button/Button.stories.d.ts +1 -1
  5. package/dist/components/Combobox/useCombobox.d.ts +2 -1
  6. package/dist/components/Datepicker/Datepicker.d.ts +7 -3
  7. package/dist/components/Datepicker/Datepicker.stories.d.ts +2 -2
  8. package/dist/components/Datepicker/useDatepicker.d.ts +2 -1
  9. package/dist/components/Dialog/Context.d.ts +1 -1
  10. package/dist/components/Dialog/Dialog.d.ts +1 -1
  11. package/dist/components/Icon/Icon.stories.d.ts +4 -20
  12. package/dist/components/IconButton/IconButton.stories.d.ts +11 -48
  13. package/dist/components/Input/Input.d.ts +15 -8
  14. package/dist/components/Input/Input.stories.d.ts +15 -41
  15. package/dist/components/Provider/Localization.d.ts +3 -2
  16. package/dist/components/SearchInput/SearchInput.d.ts +5 -10
  17. package/dist/components/SearchInput/SearchInput.stories.d.ts +3 -6
  18. package/dist/components/Select/Select.d.ts +1 -1
  19. package/dist/components/Select/Select.stories.d.ts +1 -1
  20. package/dist/components/Select2/Select2.d.ts +2 -0
  21. package/dist/components/Select2/Select2.stories.d.ts +0 -1
  22. package/dist/components/Select2/components/Search.d.ts +6 -3
  23. package/dist/components/Select2/hooks/useChildren.d.ts +2 -1
  24. package/dist/components/Tooltip/Tooltip.d.ts +4 -4
  25. package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -2
  26. package/dist/esm/index.css +44 -40
  27. package/dist/esm/packages/taco/src/components/Accordion/Accordion.js +2 -2
  28. package/dist/esm/packages/taco/src/components/Accordion/Accordion.js.map +1 -1
  29. package/dist/esm/packages/taco/src/components/AlertDialog/Context.js.map +1 -1
  30. package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js +1 -1
  31. package/dist/esm/packages/taco/src/components/Backdrop/Backdrop.js.map +1 -1
  32. package/dist/esm/packages/taco/src/components/Button/Button.js +1 -2
  33. package/dist/esm/packages/taco/src/components/Button/Button.js.map +1 -1
  34. package/dist/esm/packages/taco/src/components/Button/util.js +7 -7
  35. package/dist/esm/packages/taco/src/components/Button/util.js.map +1 -1
  36. package/dist/esm/packages/taco/src/components/Calendar/Calendar.js +1 -1
  37. package/dist/esm/packages/taco/src/components/Calendar/Calendar.js.map +1 -1
  38. package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js +6 -5
  39. package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js.map +1 -1
  40. package/dist/esm/packages/taco/src/components/Combobox/Combobox.js +2 -2
  41. package/dist/esm/packages/taco/src/components/Combobox/Combobox.js.map +1 -1
  42. package/dist/esm/packages/taco/src/components/Combobox/useCombobox.js.map +1 -1
  43. package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js +37 -33
  44. package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js.map +1 -1
  45. package/dist/esm/packages/taco/src/components/Datepicker/useDatepicker.js.map +1 -1
  46. package/dist/esm/packages/taco/src/components/Dialog/Context.js.map +1 -1
  47. package/dist/esm/packages/taco/src/components/Dialog/Dialog.js.map +1 -1
  48. package/dist/esm/packages/taco/src/components/Dialog/components/Content.js +1 -1
  49. package/dist/esm/packages/taco/src/components/Dialog/components/Content.js.map +1 -1
  50. package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js +1 -1
  51. package/dist/esm/packages/taco/src/components/Dialog/components/Extra.js.map +1 -1
  52. package/dist/esm/packages/taco/src/components/Field/Field.js +3 -3
  53. package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
  54. package/dist/esm/packages/taco/src/components/Hanger/Hanger.js +3 -4
  55. package/dist/esm/packages/taco/src/components/Hanger/Hanger.js.map +1 -1
  56. package/dist/esm/packages/taco/src/components/HoverCard/Primitives.js +1 -1
  57. package/dist/esm/packages/taco/src/components/HoverCard/Primitives.js.map +1 -1
  58. package/dist/esm/packages/taco/src/components/Input/Input.js +110 -58
  59. package/dist/esm/packages/taco/src/components/Input/Input.js.map +1 -1
  60. package/dist/esm/packages/taco/src/components/Input/util.js +14 -8
  61. package/dist/esm/packages/taco/src/components/Input/util.js.map +1 -1
  62. package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js +2 -2
  63. package/dist/esm/packages/taco/src/components/Listbox/ScrollableList.js.map +1 -1
  64. package/dist/esm/packages/taco/src/components/Menu/components/Header.js +1 -1
  65. package/dist/esm/packages/taco/src/components/Menu/components/Header.js.map +1 -1
  66. package/dist/esm/packages/taco/src/components/Menu/components/Item.js +3 -3
  67. package/dist/esm/packages/taco/src/components/Menu/components/Item.js.map +1 -1
  68. package/dist/esm/packages/taco/src/components/Menu/components/Separator.js +1 -1
  69. package/dist/esm/packages/taco/src/components/Menu/components/Separator.js.map +1 -1
  70. package/dist/esm/packages/taco/src/components/Navigation/Navigation.js +7 -7
  71. package/dist/esm/packages/taco/src/components/Navigation/Navigation.js.map +1 -1
  72. package/dist/esm/packages/taco/src/components/Popover/Popover.js +1 -2
  73. package/dist/esm/packages/taco/src/components/Popover/Popover.js.map +1 -1
  74. package/dist/esm/packages/taco/src/components/Popover/Primitives.js +1 -1
  75. package/dist/esm/packages/taco/src/components/Popover/Primitives.js.map +1 -1
  76. package/dist/esm/packages/taco/src/components/Popover/util.js +1 -1
  77. package/dist/esm/packages/taco/src/components/Popover/util.js.map +1 -1
  78. package/dist/esm/packages/taco/src/components/Progress/Progress.js +3 -3
  79. package/dist/esm/packages/taco/src/components/Progress/Progress.js.map +1 -1
  80. package/dist/esm/packages/taco/src/components/Provider/Localization.js +3 -2
  81. package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
  82. package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js +4 -4
  83. package/dist/esm/packages/taco/src/components/RadioGroup/RadioGroup.js.map +1 -1
  84. package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js +1 -1
  85. package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js.map +1 -1
  86. package/dist/esm/packages/taco/src/components/SearchInput/SearchInput.js +31 -15
  87. package/dist/esm/packages/taco/src/components/SearchInput/SearchInput.js.map +1 -1
  88. package/dist/esm/packages/taco/src/components/Select/Select.js +2 -2
  89. package/dist/esm/packages/taco/src/components/Select/Select.js.map +1 -1
  90. package/dist/esm/packages/taco/src/components/Select2/Select2.js +8 -9
  91. package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
  92. package/dist/esm/packages/taco/src/components/Select2/components/Collection.js +1 -1
  93. package/dist/esm/packages/taco/src/components/Select2/components/Collection.js.map +1 -1
  94. package/dist/esm/packages/taco/src/components/Select2/components/Edit.js +1 -1
  95. package/dist/esm/packages/taco/src/components/Select2/components/Edit.js.map +1 -1
  96. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +14 -6
  97. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -1
  98. package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js +3 -2
  99. package/dist/esm/packages/taco/src/components/Select2/hooks/useChildren.js.map +1 -1
  100. package/dist/esm/packages/taco/src/components/Select2/utilities.js +1 -1
  101. package/dist/esm/packages/taco/src/components/Select2/utilities.js.map +1 -1
  102. package/dist/esm/packages/taco/src/components/Switch/Switch.js +5 -4
  103. package/dist/esm/packages/taco/src/components/Switch/Switch.js.map +1 -1
  104. package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js +1 -1
  105. package/dist/esm/packages/taco/src/components/Table/components/BaseTable.js.map +1 -1
  106. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js +2 -2
  107. package/dist/esm/packages/taco/src/components/Table/components/WindowedTable.js.map +1 -1
  108. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowDraggable.js +1 -1
  109. package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowDraggable.js.map +1 -1
  110. package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js +1 -1
  111. package/dist/esm/packages/taco/src/components/Table/util/renderColumn.js.map +1 -1
  112. package/dist/esm/packages/taco/src/components/Table/util/renderRow.js +2 -2
  113. package/dist/esm/packages/taco/src/components/Table/util/renderRow.js.map +1 -1
  114. package/dist/esm/packages/taco/src/components/Table/util/sortTypes.js +1 -1
  115. package/dist/esm/packages/taco/src/components/Table/util/sortTypes.js.map +1 -1
  116. package/dist/esm/packages/taco/src/components/Tabs/Tabs.js +2 -2
  117. package/dist/esm/packages/taco/src/components/Tabs/Tabs.js.map +1 -1
  118. package/dist/esm/packages/taco/src/components/Toast/Toast.js +5 -5
  119. package/dist/esm/packages/taco/src/components/Toast/Toast.js.map +1 -1
  120. package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js +3 -3
  121. package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js.map +1 -1
  122. package/dist/esm/packages/taco/src/components/Tour/Tour.js +3 -3
  123. package/dist/esm/packages/taco/src/components/Tour/Tour.js.map +1 -1
  124. package/dist/esm/packages/taco/src/index.js +1 -1
  125. package/dist/esm/packages/taco/src/utils/colors.js +9 -9
  126. package/dist/esm/packages/taco/src/utils/colors.js.map +1 -1
  127. package/dist/index.css +44 -40
  128. package/dist/index.d.ts +0 -1
  129. package/dist/primitives/Sortable/components/Item.d.ts +1 -0
  130. package/dist/taco.cjs.development.js +362 -280
  131. package/dist/taco.cjs.development.js.map +1 -1
  132. package/dist/taco.cjs.production.min.js +1 -1
  133. package/dist/taco.cjs.production.min.js.map +1 -1
  134. package/package.json +3 -3
  135. package/plugins/tailwindcss-group-peer.js +12 -0
  136. package/tailwind.config.js +272 -22
  137. package/types.json +87 -43
@@ -94,7 +94,7 @@ const Action = /*#__PURE__*/React.forwardRef(function AlertDialogAction(props, r
94
94
  });
95
95
 
96
96
  const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(props, ref) {
97
- const className = cn('fixed inset-0 cursor-default overflow-y-auto bg-purple-darker/[0.3] aria-hidden:invisible', props.className);
97
+ const className = cn('fixed inset-0 cursor-default overflow-y-auto bg-blue-900/[0.3] aria-hidden:invisible', props.className);
98
98
  return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
99
99
  className: className,
100
100
  "data-taco": "backdrop",
@@ -3169,7 +3169,7 @@ const AccordionContext = /*#__PURE__*/React__default.createContext({
3169
3169
  });
3170
3170
  const StyledTrigger = /*#__PURE__*/React__default.forwardRef(function AccordionStyledTrigger(props, ref) {
3171
3171
  const isExpanded = !!props['aria-expanded'];
3172
- const className = cn('w-full inline-flex justify-between items-center align-middle', 'focus:rounded-sm focus:border-blue focus:yt-focus', props.className);
3172
+ const className = cn('w-full inline-flex justify-between items-center align-middle', 'focus:rounded-sm focus:border-blue-500 focus:yt-focus', props.className);
3173
3173
  return /*#__PURE__*/React__default.createElement("button", Object.assign({}, props, {
3174
3174
  ref: ref,
3175
3175
  className: className
@@ -3230,7 +3230,7 @@ const Accordion = props => {
3230
3230
  };
3231
3231
  }
3232
3232
  const type = Array.isArray(valueProps.defaultValue) || Array.isArray(valueProps.value) ? 'multiple' : 'single';
3233
- const className = cn('divide-y divide-grey', props.className);
3233
+ const className = cn('divide-y divide-grey-200', props.className);
3234
3234
  return /*#__PURE__*/React__default.createElement(AccordionContext.Provider, {
3235
3235
  value: context
3236
3236
  }, /*#__PURE__*/React__default.createElement(AccordionPrimitive.Root, Object.assign({}, otherProps, valueProps, {
@@ -3359,7 +3359,7 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
3359
3359
  } = props;
3360
3360
  const className = cn(otherProps.className);
3361
3361
  return /*#__PURE__*/React.createElement(TooltipPrimitive.Root, {
3362
- delayDuration: 50
3362
+ delayDuration: 250
3363
3363
  }, /*#__PURE__*/React.createElement(TooltipPrimitive.Trigger, {
3364
3364
  asChild: true,
3365
3365
  ref: ref
@@ -3369,36 +3369,36 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
3369
3369
  side: placement,
3370
3370
  sideOffset: 3
3371
3371
  }), /*#__PURE__*/React.createElement("div", {
3372
- className: "wcag-purple xs:max-w-[theme(spacing.56)] max-w-[theme(spacing.32)] animate-[fade-in_150ms] rounded-sm px-2 py-1 text-xs font-bold opacity-90",
3372
+ className: "xs:max-w-[theme(spacing.56)] max-w-[theme(spacing.32)] animate-[fade-in_150ms] rounded-sm bg-blue-900/90 px-2 py-1 text-xs font-bold text-white opacity-90",
3373
3373
  "data-taco": "tooltip",
3374
3374
  style: {
3375
3375
  transformOrigin: 'var(--radix-tooltip-content-transform-origin)'
3376
3376
  }
3377
3377
  }, /*#__PURE__*/React.createElement(TooltipPrimitive.Arrow, {
3378
- className: "fill-purple stroke-purple -mt-px"
3378
+ className: "-mt-px fill-blue-900/90 stroke-blue-900/90"
3379
3379
  }), title))));
3380
3380
  });
3381
3381
 
3382
3382
  const getButtonClasses = () => {
3383
- return 'min-h-[theme(spacing.8)] min-w-[theme(spacing.8)] gap-1 h-max leading-5 inline-flex items-center justify-center';
3383
+ return 'flex-shrink-0 min-h-[theme(spacing.8)] min-w-[theme(spacing.8)] gap-1 h-max leading-5 inline-flex items-center justify-center';
3384
3384
  };
3385
3385
  const getAppearanceClasses = (value, icon = false) => {
3386
3386
  switch (value) {
3387
3387
  case 'primary':
3388
- return `yt-blue-solid focus:bg-blue focus:text-white focus:yt-focus active:bg-blue-dark active:text-white hover:bg-blue-light hover:text-white hover:focus:bg-blue-light hover:focus:border-blue-light hover:focus:text-white disabled:hover:yt-blue-solid disabled:hover:hover:border-blue`;
3388
+ return `yt-blue-solid focus:bg-blue-500 focus:text-white focus:yt-focus active:bg-blue-700 active:text-white hover:bg-blue-300 hover:text-white hover:focus:bg-blue-300 hover:focus:border-blue-300 hover:focus:text-white disabled:hover:yt-blue-solid disabled:hover:hover:border-blue-500`;
3389
3389
  case 'danger':
3390
- return `yt-red-solid focus:bg-red focus:text-white focus:yt-focus-red active:bg-red-dark active:text-white hover:bg-red-light hover:text-white hover:focus:bg-red-light hover:focus:text-white disabled:hover:yt-red-solid`;
3390
+ return `yt-red-solid focus:bg-red-500 focus:text-white focus:yt-focus-red active:bg-red-700 active:text-white hover:bg-red-300 hover:text-white hover:focus:bg-red-300 hover:focus:text-white disabled:hover:yt-red-solid`;
3391
3391
  case 'ghost':
3392
- return `bg-white shadow-[inset_0_0_0_1px_theme(colors.blue.DEFAULT)] text-blue focus:bg-transparent focus:text-blue active:bg-blue-lightest focus:!shadow-[inset_0_0_0_1px_theme(colors.blue.DEFAULT),0_0_0_2px_rgba(0,99,255,0.25)] active:text-blue-dark hover:bg-blue-lightest hover:shadow-[inset_0_0_0_1px_theme(colors.blue.light)] hover:text-blue-light hover:focus:bg-blue-lightest hover:focus:!shadow-[inset_0_0_0_1px_theme(colors.blue.light),0_0_0_2px_rgba(0,99,255,0.25)] hover:focus:text-blue-light`;
3392
+ return `bg-white shadow-[inset_0_0_0_1px_theme(colors.blue.500)] text-blue-500 focus:bg-transparent focus:text-blue-500 active:bg-blue-100 focus:!shadow-[inset_0_0_0_1px_theme(colors.blue.500),0_0_0_2px_rgba(0,99,255,0.25)] active:text-blue-700 hover:bg-blue-100 hover:shadow-[inset_0_0_0_1px_theme(colors.blue.300)] hover:text-blue-300 hover:focus:bg-blue-100 hover:focus:!shadow-[inset_0_0_0_1px_theme(colors.blue.300),0_0_0_2px_rgba(0,99,255,0.25)] hover:focus:text-blue-300`;
3393
3393
  case 'discrete':
3394
3394
  {
3395
3395
  if (icon) {
3396
- return `bg-transparent text-black border-transparent focus:text-black focus:yt-focus active:text-black hover:text-grey-darkest hover:focus:text-grey-darkest disabled:hover:text-black `;
3396
+ return `bg-transparent text-black border-transparent focus:text-black focus:yt-focus active:text-black hover:text-grey-700 hover:focus:text-grey-700 disabled:hover:text-black `;
3397
3397
  }
3398
- return `yt-transparent focus:text-blue focus:yt-focus active:text-blue-dark hover:text-blue-light hover:focus:text-blue-light disabled:hover:yt-transparent`;
3398
+ return `yt-transparent focus:text-blue-500 focus:yt-focus active:text-blue-700 hover:text-blue-300 hover:focus:text-blue-300 disabled:hover:yt-transparent`;
3399
3399
  }
3400
3400
  default:
3401
- return `yt-grey-solid focus:bg-grey focus:yt-focus active:bg-grey-dark active:text-black hover:bg-grey-light hover:text-grey-darkest hover:focus:bg-grey-light hover:focus:text-grey-darkest disabled:hover:yt-grey-solid`;
3401
+ return `yt-grey-solid focus:bg-grey-200 focus:yt-focus active:bg-grey-300 active:text-black hover:bg-grey-100 hover:text-grey-700 hover:focus:bg-grey-100 hover:focus:text-grey-700 disabled:hover:yt-grey-solid`;
3402
3402
  }
3403
3403
  };
3404
3404
  const createButtonWithTooltip = (props, className, ref) => {
@@ -3575,8 +3575,9 @@ const defaultLocalisationTexts = {
3575
3575
  open: 'Open'
3576
3576
  },
3577
3577
  searchInput: {
3578
- inputLabel: 'Search...',
3579
- buttonLabel: 'Search'
3578
+ button: 'Search',
3579
+ placeholder: 'Search...',
3580
+ clear: 'Clear'
3580
3581
  }
3581
3582
  };
3582
3583
  const defaultLocalizationContext = {
@@ -3655,9 +3656,8 @@ const Button$1 = /*#__PURE__*/React.forwardRef(function Button(props, ref) {
3655
3656
  })];
3656
3657
  }
3657
3658
  const button = /*#__PURE__*/React.createElement(Base$1, Object.assign({}, buttonProps, {
3658
- children: children,
3659
3659
  ref: ref
3660
- }));
3660
+ }), children);
3661
3661
  return createButtonWithOverlays({
3662
3662
  dialog,
3663
3663
  hanger,
@@ -3668,7 +3668,7 @@ const Button$1 = /*#__PURE__*/React.forwardRef(function Button(props, ref) {
3668
3668
 
3669
3669
  const thisYear = /*#__PURE__*/new Date().getFullYear();
3670
3670
  const years = [];
3671
- for (let i = thisYear - 10; i <= thisYear + 10; i += 1) {
3671
+ for (let i = thisYear - 50; i <= thisYear + 10; i += 1) {
3672
3672
  years.push(i);
3673
3673
  }
3674
3674
  const Navbar = /*#__PURE__*/React.memo(({
@@ -3839,10 +3839,10 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
3839
3839
  const className = cn('bg-white h-5 w-5 border rounded text-sm flex-shrink-0 self-start mt-[0.1rem] focus:yt-focus',
3840
3840
  //hover:shadow-[0_0_0_1px_rgba(235,235,235,1)]
3841
3841
  props.className, {
3842
- 'border-grey-dark text-blue hover:text-blue-light focus:border-blue focus:hover:border-blue-light': !props.disabled && !invalid,
3843
- 'border-grey text-blue-light cursor-not-allowed': props.disabled,
3842
+ 'border-grey-300 text-blue-500 hover:text-blue-300 focus:border-blue-500 focus:hover:border-blue-300': !props.disabled && !invalid,
3843
+ 'border-grey-200 text-blue-300 cursor-not-allowed': props.disabled,
3844
3844
  'bg-[rgba(255,255,0,0.2)] disabled:bg-[rgba(255,255,0,0.075)]': highlighted,
3845
- 'border-red text-red hover:text-red-light hover:border-red-light focus:border-red focus:hover:border-red-light': invalid && !props.disabled
3845
+ 'border-red-500 text-red-500 hover:text-red-300 hover:border-red-300 focus:border-red-500 focus:hover:border-red-300': invalid && !props.disabled
3846
3846
  });
3847
3847
  let handleChange;
3848
3848
  if (onChange) {
@@ -3851,7 +3851,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
3851
3851
  let labelledByProps = null;
3852
3852
  if (label) {
3853
3853
  labelledByProps = {
3854
- ['aria-labelledby']: `${id}-label`,
3854
+ 'aria-labelledby': `${id}-label`,
3855
3855
  id
3856
3856
  };
3857
3857
  }
@@ -3869,7 +3869,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
3869
3869
  })));
3870
3870
  if (label) {
3871
3871
  const labelContainerClassName = cn('flex items-center cursor-pointer gap-2', {
3872
- 'cursor-not-allowed text-grey-dark': props.disabled
3872
+ 'cursor-not-allowed text-grey-300': props.disabled
3873
3873
  }, props.className);
3874
3874
  return /*#__PURE__*/React.createElement("span", {
3875
3875
  className: labelContainerClassName
@@ -3880,6 +3880,80 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
3880
3880
  }
3881
3881
  return element;
3882
3882
  });
3883
+ Checkbox.displayName = 'Checkbox';
3884
+
3885
+ const getInputClasses = props => {
3886
+ const disabled = props.disabled || !!props['aria-disabled'];
3887
+ const readOnly = props.readOnly || !!props['aria-readonly'];
3888
+ const invalid = props.invalid || !!props['aria-invalid'];
3889
+ return cn('peer bg-white text-black text-sm border font-normal not-italic no-underline rounded inline-flex items-center leading-6 px-2 relative w-full text-ellipsis transition-colors transition-opacity ease-in min-h-[theme(spacing.8)]', {
3890
+ // default
3891
+ 'border-grey-300 focus:border-blue-300 focus:yt-focus': !invalid,
3892
+ 'hover:shadow-[0_0_0.1rem_theme(colors.grey.500)] active:border-blue-700': !invalid && !disabled,
3893
+ // disabled
3894
+ 'border-grey-200 text-opacity-25 cursor-not-allowed placeholder:text-grey-700': disabled,
3895
+ // highlighted
3896
+ 'bg-[rgba(255,255,0,0.075)]': props.highlighted && disabled,
3897
+ 'bg-[rgba(255,255,0,0.2)]': props.highlighted && !disabled,
3898
+ // invalid
3899
+ 'border-red focus:border-red-300 focus:yt-focus-red active:border-red-700': invalid,
3900
+ 'hover:shadow-[0_0_0.15rem_theme(colors.red.500)]': invalid && !disabled,
3901
+ // readOnly
3902
+ 'cursor-not-allowed text-black bg-grey-200': readOnly
3903
+ });
3904
+ };
3905
+ const getButtonStateClasses = invalid => {
3906
+ if (invalid) {
3907
+ return '!border-red-500 group-peer-focus:!border-red-300 focus:yt-focus-red group-focus:group-active:!border-red-300 transition-colors ease-in';
3908
+ }
3909
+ return 'border-grey-300 focus:!border-blue-300 group-peer-focus:!border-blue-300 group-peer-focus:group-peer-active:!border-blue-700 transition-colors transition-opacity ease-in';
3910
+ };
3911
+
3912
+ const debounce = (fn, delay) => {
3913
+ let timeoutId;
3914
+ return function (...args) {
3915
+ clearTimeout(timeoutId);
3916
+ timeoutId = setTimeout(() => fn.apply(this, args), delay);
3917
+ };
3918
+ };
3919
+
3920
+ const getVisibility = element => Boolean(element && (element.offsetWidth || element.offsetHeight || element.getClientRects().length));
3921
+ const useBoundingClientRectListener = (ref, dependencies) => {
3922
+ const [dimensions, setDimensions] = React.useState(undefined);
3923
+ const isRefElementVisible = getVisibility(ref.current);
3924
+ const [visibility, setVisibility] = React.useState(isRefElementVisible);
3925
+ const resize = () => {
3926
+ if (visibility) {
3927
+ var _ref$current;
3928
+ setDimensions((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.getBoundingClientRect());
3929
+ }
3930
+ };
3931
+ React.useEffect(() => {
3932
+ const timeout = setTimeout(resize, 0);
3933
+ const debouncedResize = debounce(resize, 250);
3934
+ window.addEventListener('resize', debouncedResize);
3935
+ return () => {
3936
+ clearTimeout(timeout);
3937
+ window.removeEventListener('resize', debouncedResize);
3938
+ };
3939
+ }, [ref.current, visibility]);
3940
+ React.useEffect(() => {
3941
+ const newRefElementVisibility = getVisibility(ref.current);
3942
+ if (visibility !== newRefElementVisibility) {
3943
+ // When visibility of an element changes, then the new visibility of the element can only be checked after the
3944
+ // component has rendered. That's why the visibility check is inside the useEffect. This useEffect will cause
3945
+ // the consumer to rerender and that will cause the above hook to recalculate the dimensions
3946
+ setVisibility(newRefElementVisibility);
3947
+ }
3948
+ });
3949
+ React.useEffect(() => {
3950
+ if (dependencies) {
3951
+ var _ref$current2;
3952
+ setDimensions((_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.getBoundingClientRect());
3953
+ }
3954
+ }, dependencies);
3955
+ return dimensions;
3956
+ };
3883
3957
 
3884
3958
  // merges an external ref (optional) with an internal ref (required)
3885
3959
  const useMergedRef = ref => {
@@ -3896,96 +3970,126 @@ const useMergedRef = ref => {
3896
3970
  return internalRef;
3897
3971
  };
3898
3972
 
3899
- const getInputClasses = props => {
3900
- const disabled = props.disabled || !!props['aria-disabled'];
3901
- const readOnly = props.readOnly || !!props['aria-readonly'];
3902
- const invalid = props.invalid || !!props['aria-invalid'];
3903
- return cn('peer bg-white text-black text-sm border font-normal not-italic no-underline rounded inline-flex leading-6 px-2 relative w-full text-ellipsis flex items-center min-h-[theme(spacing.8)]', {
3904
- 'cursor-not-allowed text-black bg-grey border-grey-dark': readOnly,
3905
- 'border-grey text-opacity-25 cursor-not-allowed': disabled,
3906
- 'bg-[rgba(255,255,0,0.075)]': props.highlighted && disabled,
3907
- 'bg-[rgba(255,255,0,0.2)]': props.highlighted && !disabled,
3908
- 'border-grey-dark': !invalid,
3909
- 'hover:shadow-[0_0_0.1rem_theme(colors.grey.darker)] focus:border-blue-light focus:yt-focus active:border-blue-dark': !disabled && !readOnly,
3910
- 'border-red hover:shadow-[0_0_0.15rem_theme(colors.red.DEFAULT)] focus:border-red-light focus:yt-focus-red active:border-red-dark': invalid && !disabled && !readOnly
3911
- });
3912
- };
3913
- const getButtonStateClasses = invalid => {
3914
- if (invalid) {
3915
- return '!border-red focus:!border-red-light focus:yt-focus-red peer-focus:!border-red-light peer-focus:peer-active:!border-red-dark';
3916
- }
3917
- return '!border-grey-dark focus:!border-blue-light peer-focus:!border-blue-light peer-focus:peer-active:!border-blue-dark';
3918
- };
3919
-
3920
- const Input = /*#__PURE__*/React.forwardRef(function Input(props, ref) {
3973
+ const validSetSelectionRangeTypes = ['text', 'search', 'url', 'tel', 'password'];
3974
+ const InputWithoutDeprecatedFeatures = /*#__PURE__*/React.forwardRef(function InputWithoutDeprecatedFeatures(props, ref) {
3921
3975
  const {
3922
- button,
3923
- icon,
3924
3976
  highlighted,
3925
3977
  invalid,
3926
3978
  onKeyDown,
3927
- autoFocus,
3928
- ...otherProps
3979
+ postfix,
3980
+ prefix,
3981
+ type = 'text',
3982
+ ...attributes
3929
3983
  } = props;
3930
- const inputRef = useMergedRef(ref);
3931
- const hasContainer = button || icon;
3932
- const className = cn(getInputClasses(props), 'min-h-[theme(spacing.8)] pointer-events-all', {
3933
- 'pr-8': !!hasContainer
3934
- }, !hasContainer && otherProps.className);
3935
- React.useEffect(() => {
3936
- if (autoFocus && inputRef.current) {
3937
- inputRef.current.focus();
3938
- }
3939
- }, []);
3984
+ const internalRef = useMergedRef(ref);
3985
+ let handleKeyDown = onKeyDown;
3940
3986
  // home and end keys only navigate to the start/end of input value if the input container does not scroll
3941
3987
  // if it has scroll height then the browser reverts to native scrolling behaviour only
3942
3988
  // so we manually override it to ensure _our_ desired behaviour remains intact
3943
- const handleKeyDown = event => {
3944
- if (!event.shiftKey && (event.key === 'Home' || event.key === 'End')) {
3945
- event.preventDefault();
3946
- const position = event.key === 'End' ? event.currentTarget.value.length : 0;
3947
- event.currentTarget.setSelectionRange(position, position);
3948
- }
3949
- if (onKeyDown) {
3950
- onKeyDown(event);
3951
- }
3952
- };
3953
- const input = /*#__PURE__*/React.createElement("input", Object.assign({}, otherProps, {
3989
+ // only the 'text', 'search', 'url', 'tel', 'password' input types support setSelectionRange
3990
+ if (validSetSelectionRangeTypes.includes(type)) {
3991
+ handleKeyDown = event => {
3992
+ if (!event.shiftKey && (event.key === 'Home' || event.key === 'End')) {
3993
+ event.preventDefault();
3994
+ const position = event.key === 'End' ? event.currentTarget.value.length : 0;
3995
+ event.currentTarget.setSelectionRange(position, position);
3996
+ }
3997
+ if (typeof onKeyDown === 'function') {
3998
+ onKeyDown(event);
3999
+ }
4000
+ };
4001
+ }
4002
+ const prefixRef = React.useRef(null);
4003
+ const prefixRect = useBoundingClientRectListener(prefixRef);
4004
+ const postfixRef = React.useRef(null);
4005
+ const postfixRect = useBoundingClientRectListener(postfixRef);
4006
+ const className = cn(getInputClasses(props), {
4007
+ 'pl-8': !!prefix,
4008
+ 'pr-8': !!postfix
4009
+ }, attributes.className);
4010
+ return /*#__PURE__*/React.createElement("div", {
4011
+ className: "relative inline-flex"
4012
+ }, /*#__PURE__*/React.createElement("input", Object.assign({}, attributes, {
3954
4013
  className: className,
3955
4014
  "data-taco": "input",
3956
4015
  onKeyDown: handleKeyDown,
3957
- ref: inputRef
3958
- }));
3959
- if (hasContainer) {
3960
- let extra;
3961
- if (button) {
3962
- const disabled = button.props.disabled || otherProps.disabled;
3963
- const buttonClassName = cn('items-center flex justify-center border absolute rounded-l-none rounded-r right-0 h-full focus:rounded focus:outline-none', {
3964
- [getButtonStateClasses(invalid)]: !props.disabled
3965
- }, button.props.className);
3966
- extra = /*#__PURE__*/React.cloneElement(button, {
3967
- className: buttonClassName,
3968
- disabled
3969
- });
3970
- } else if (icon) {
3971
- const iconClassName = cn('items-center flex justify-center absolute pointer-events-none mr-1 p-px right-0 w-5 top-1/2 -translate-y-1/2', {
3972
- 'text-grey-dark': props.disabled,
3973
- 'text-grey-darkest': !props.disabled
3974
- });
3975
- extra = typeof icon === 'string' ? /*#__PURE__*/React.createElement(Icon, {
3976
- className: iconClassName,
3977
- name: icon
3978
- }) : /*#__PURE__*/React.cloneElement(icon, {
3979
- className: cn(iconClassName, icon.props.className)
3980
- });
4016
+ ref: internalRef,
4017
+ style: {
4018
+ paddingLeft: prefixRect ? `${prefixRect.width - 1}px` : undefined,
4019
+ paddingRight: postfixRect ? `${postfixRect.width - 1}px` : undefined
4020
+ },
4021
+ type: type
4022
+ })), prefix ? /*#__PURE__*/React.createElement(Affix, {
4023
+ type: "prefix",
4024
+ children: prefix,
4025
+ disabled: attributes.disabled,
4026
+ ref: prefixRef
4027
+ }) : null, postfix ? /*#__PURE__*/React.createElement(Affix, {
4028
+ type: "postfix",
4029
+ children: postfix,
4030
+ disabled: attributes.disabled,
4031
+ ref: postfixRef
4032
+ }) : null);
4033
+ });
4034
+ const Affix = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function Affix(props, ref) {
4035
+ const {
4036
+ children,
4037
+ disabled,
4038
+ type
4039
+ } = props;
4040
+ let displayName;
4041
+ if (children) {
4042
+ let el = children;
4043
+ if ( /*#__PURE__*/React.isValidElement(children)) {
4044
+ var _children$type;
4045
+ displayName = children === null || children === void 0 ? void 0 : (_children$type = children.type) === null || _children$type === void 0 ? void 0 : _children$type.displayName;
4046
+ if (displayName === 'Icon') {
4047
+ el = /*#__PURE__*/React.cloneElement(children, {
4048
+ className: cn('!h-5 !w-5', children.props.className)
4049
+ });
4050
+ }
3981
4051
  }
3982
- const containerClassName = cn('bg-white inline-flex relative rounded w-full', otherProps.className);
3983
- return /*#__PURE__*/React.createElement("div", {
3984
- className: containerClassName,
3985
- "data-taco": "input-container"
3986
- }, input, extra);
4052
+ return /*#__PURE__*/React.createElement("span", {
4053
+ className: cn('group absolute top-0 flex h-full items-center justify-center', {
4054
+ 'text-grey-300': disabled,
4055
+ 'text-grey-700': !disabled,
4056
+ 'left-0': type === 'prefix',
4057
+ 'right-0': type === 'postfix',
4058
+ 'px-0': displayName === 'IconButton',
4059
+ 'px-1.5': displayName === 'Icon',
4060
+ 'px-2': displayName !== 'IconButton' && displayName !== 'Icon'
4061
+ }),
4062
+ ref: ref
4063
+ }, el);
4064
+ }
4065
+ return null;
4066
+ }));
4067
+ const Input = /*#__PURE__*/React.forwardRef(function LegacyInput(props, ref) {
4068
+ var _attributes$postfix;
4069
+ const {
4070
+ button,
4071
+ icon,
4072
+ ...attributes
4073
+ } = props;
4074
+ let postfix;
4075
+ if (button) {
4076
+ const disabled = button.props.disabled || attributes.disabled;
4077
+ const buttonClassName = cn('items-center focus:z-10 flex justify-center border rounded-l-none rounded-r h-full focus:rounded focus:outline-none', {
4078
+ [getButtonStateClasses(attributes.invalid)]: !props.disabled
4079
+ }, button.props.className);
4080
+ postfix = /*#__PURE__*/React.cloneElement(button, {
4081
+ className: buttonClassName,
4082
+ disabled
4083
+ });
4084
+ } else if (icon) {
4085
+ postfix = typeof icon === 'string' ? /*#__PURE__*/React.createElement(Icon, {
4086
+ name: icon
4087
+ }) : icon;
3987
4088
  }
3988
- return input;
4089
+ return /*#__PURE__*/React.createElement(InputWithoutDeprecatedFeatures, Object.assign({}, attributes, {
4090
+ postfix: (_attributes$postfix = attributes.postfix) !== null && _attributes$postfix !== void 0 ? _attributes$postfix : postfix,
4091
+ ref: ref
4092
+ }));
3989
4093
  });
3990
4094
 
3991
4095
  const getNextIndexFromKey = (key, length, index, direction = 'vertical') => {
@@ -4184,7 +4288,7 @@ const ScrollableList = /*#__PURE__*/React.forwardRef(function ScrollableList(pro
4184
4288
  'aria-selected': multiselect ? getOptionCheckedState(String(option.value), index) : currentIndex === index,
4185
4289
  'data-focused': currentIndex === index,
4186
4290
  children: option.text,
4187
- className: cn('flex items-center px-3 w-full cursor-pointer bg-white flex-[0_0_2rem] focus:wcag-blue focus:border-blue', {
4291
+ className: cn('flex items-center px-3 w-full cursor-pointer bg-white flex-[0_0_2rem] focus:wcag-blue-500 focus:border-blue-500', {
4188
4292
  'sticky top-0 font-bold': depth === 0 && !!option.hasChildren
4189
4293
  }),
4190
4294
  disabled: option.disabled,
@@ -4648,52 +4752,6 @@ const useCombobox = ({
4648
4752
  };
4649
4753
  };
4650
4754
 
4651
- const debounce = (fn, delay) => {
4652
- let timeoutId;
4653
- return function (...args) {
4654
- clearTimeout(timeoutId);
4655
- timeoutId = setTimeout(() => fn.apply(this, args), delay);
4656
- };
4657
- };
4658
-
4659
- const getVisibility = element => Boolean(element && (element.offsetWidth || element.offsetHeight || element.getClientRects().length));
4660
- const useBoundingClientRectListener = (ref, dependencies) => {
4661
- const [dimensions, setDimensions] = React.useState(undefined);
4662
- const isRefElementVisible = getVisibility(ref.current);
4663
- const [visibility, setVisibility] = React.useState(isRefElementVisible);
4664
- const resize = () => {
4665
- if (visibility) {
4666
- var _ref$current;
4667
- setDimensions((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.getBoundingClientRect());
4668
- }
4669
- };
4670
- React.useEffect(() => {
4671
- const timeout = setTimeout(resize, 0);
4672
- const debouncedResize = debounce(resize, 250);
4673
- window.addEventListener('resize', debouncedResize);
4674
- return () => {
4675
- clearTimeout(timeout);
4676
- window.removeEventListener('resize', debouncedResize);
4677
- };
4678
- }, [ref.current, visibility]);
4679
- React.useEffect(() => {
4680
- const newRefElementVisibility = getVisibility(ref.current);
4681
- if (visibility !== newRefElementVisibility) {
4682
- // When visibility of an element changes, then the new visibility of the element can only be checked after the
4683
- // component has rendered. That's why the visibility check is inside the useEffect. This useEffect will cause
4684
- // the consumer to rerender and that will cause the above hook to recalculate the dimensions
4685
- setVisibility(newRefElementVisibility);
4686
- }
4687
- });
4688
- React.useEffect(() => {
4689
- if (dependencies) {
4690
- var _ref$current2;
4691
- setDimensions((_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.getBoundingClientRect());
4692
- }
4693
- }, dependencies);
4694
- return dimensions;
4695
- };
4696
-
4697
4755
  const Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
4698
4756
  const {
4699
4757
  className: externalClassName,
@@ -4764,7 +4822,7 @@ const Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
4764
4822
  },
4765
4823
  sideOffset: 4
4766
4824
  }, /*#__PURE__*/React.createElement(ScrollableList, Object.assign({}, list, {
4767
- className: cn('!border-blue max-h-[calc(12rem+2px)] w-auto max-w-[theme(spacing.96)]'),
4825
+ className: cn('max-h-[calc(12rem+2px)] w-auto max-w-[theme(spacing.96)] !border-blue-500'),
4768
4826
  style: {
4769
4827
  minWidth: selectDimensions === null || selectDimensions === void 0 ? void 0 : selectDimensions.width
4770
4828
  },
@@ -4918,7 +4976,7 @@ const UnstyledArrow = /*#__PURE__*/React.forwardRef(function PopoverArrow(props,
4918
4976
  transform: 'rotateZ(180deg)'
4919
4977
  }
4920
4978
  }), /*#__PURE__*/React.createElement("path", {
4921
- className: "text-grey-dark group-focus:text-blue-light fill-current",
4979
+ className: "text-grey-300 fill-current group-focus:text-blue-300",
4922
4980
  d: "M23.7,27.1L17,19.9C16.5,19.3,15.8,19,15,19s-1.6,0.3-2.1,0.9l-6.6,7.2C5.3,28.1,3.4,29,2,29h26 C26.7,29,24.6,28.1,23.7,27.1z"
4923
4981
  }), /*#__PURE__*/React.createElement("path", {
4924
4982
  className: "fill-current",
@@ -4926,7 +4984,7 @@ const UnstyledArrow = /*#__PURE__*/React.forwardRef(function PopoverArrow(props,
4926
4984
  })));
4927
4985
  });
4928
4986
 
4929
- const getPopoverStyleClassnames = () => 'bg-white focus:border-blue-light border border-transparent rounded p-3 yt-shadow focus:yt-focus outline-none group';
4987
+ const getPopoverStyleClassnames = () => 'bg-white focus:border-blue-300 border border-transparent rounded p-3 yt-shadow focus:yt-focus outline-none group';
4930
4988
 
4931
4989
  const PopoverContext = /*#__PURE__*/React.createContext({
4932
4990
  props: {},
@@ -4945,10 +5003,9 @@ const Trigger$2 = /*#__PURE__*/React.forwardRef(function PopoverAnchor(props, ex
4945
5003
  children = /*#__PURE__*/React.createElement("span", null, props.children);
4946
5004
  }
4947
5005
  return /*#__PURE__*/React.createElement(PopoverPrimitive.Trigger, Object.assign({}, parentProps, props, {
4948
- children: children,
4949
5006
  ref: refCallback,
4950
5007
  asChild: true
4951
- }));
5008
+ }), children);
4952
5009
  });
4953
5010
  const RenderPropWrapper = /*#__PURE__*/React.forwardRef(function RenderPropWrapper({
4954
5011
  children,
@@ -5040,43 +5097,47 @@ const Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref)
5040
5097
  "data-taco": "datepicker",
5041
5098
  style: style
5042
5099
  }, /*#__PURE__*/React.createElement(Input, Object.assign({}, input, {
5043
- button: /*#__PURE__*/React.createElement(Popover, null, /*#__PURE__*/React.createElement(Popover.Trigger, null, /*#__PURE__*/React.createElement(IconButton, {
5100
+ button: /*#__PURE__*/React.createElement(IconButton, {
5044
5101
  "aria-label": texts.datepicker.expand,
5045
5102
  disabled: input.disabled || input.readOnly,
5046
- icon: "calendar"
5047
- })), /*#__PURE__*/React.createElement(Popover.Content, null, ({
5048
- close
5049
- }) => /*#__PURE__*/React.createElement("div", {
5050
- className: "-m-3 flex"
5051
- }, /*#__PURE__*/React.createElement(Calendar$1, Object.assign({}, calendar, {
5052
- onChange: (date, event) => {
5053
- calendar.onChange(date, event);
5054
- close();
5055
- },
5056
- tabIndex: -1
5057
- })), shortcuts && /*#__PURE__*/React.createElement("div", {
5058
- className: "border-grey-dark flex flex-col border-l"
5059
- }, /*#__PURE__*/React.createElement("span", {
5060
- className: "m-4 mb-3 flex h-8 w-32 items-center text-xs font-semibold"
5061
- }, shortcutsText !== null && shortcutsText !== void 0 ? shortcutsText : texts.datepicker.shortcuts), /*#__PURE__*/React.createElement("ul", null, shortcuts.map((shortcut, i) => /*#__PURE__*/React.createElement("li", {
5062
- key: i
5063
- }, /*#__PURE__*/React.createElement("button", {
5064
- className: "hover:bg-grey-light flex w-full items-start px-4 py-1 text-xs",
5065
- onClick: event => {
5066
- event.persist();
5067
- shortcut.onClick(event);
5068
- close();
5069
- }
5070
- }, shortcut.text)))), handleReset && /*#__PURE__*/React.createElement("button", {
5071
- className: "text-blue hover:text-blue-light my-4 mx-auto mt-auto inline-flex cursor-pointer border-none bg-transparent text-xs",
5072
- onClick: event => {
5073
- event.persist();
5074
- handleReset(event);
5075
- close();
5076
- }
5077
- }, texts.datepicker.clear)))))
5103
+ icon: "calendar",
5104
+ popover: props => /*#__PURE__*/React.createElement(Popover, Object.assign({}, props), /*#__PURE__*/React.createElement(Popover.Content, null, ({
5105
+ close
5106
+ }) => /*#__PURE__*/React.createElement("div", {
5107
+ className: "-m-3 flex"
5108
+ }, /*#__PURE__*/React.createElement(Calendar$1, Object.assign({}, calendar, {
5109
+ onChange: (date, event) => {
5110
+ calendar.onChange(date, event);
5111
+ close();
5112
+ },
5113
+ tabIndex: -1
5114
+ })), shortcuts && /*#__PURE__*/React.createElement("div", {
5115
+ className: "border-grey-300 flex flex-col border-l"
5116
+ }, /*#__PURE__*/React.createElement("span", {
5117
+ className: "m-4 mb-3 flex h-8 w-32 items-center text-xs font-semibold"
5118
+ }, shortcutsText !== null && shortcutsText !== void 0 ? shortcutsText : texts.datepicker.shortcuts), /*#__PURE__*/React.createElement("ul", null, shortcuts.map(shortcut => /*#__PURE__*/React.createElement("li", {
5119
+ key: shortcut.text
5120
+ }, /*#__PURE__*/React.createElement("button", {
5121
+ type: "button",
5122
+ className: "hover:bg-grey-100 flex w-full items-start px-4 py-1 text-xs",
5123
+ onClick: event => {
5124
+ event.persist();
5125
+ shortcut.onClick(event);
5126
+ close();
5127
+ }
5128
+ }, shortcut.text)))), handleReset && /*#__PURE__*/React.createElement("button", {
5129
+ type: "button",
5130
+ className: "my-4 mx-auto mt-auto inline-flex cursor-pointer border-none bg-transparent text-xs text-blue-500 hover:text-blue-300",
5131
+ onClick: event => {
5132
+ event.persist();
5133
+ handleReset(event);
5134
+ close();
5135
+ }
5136
+ }, texts.datepicker.clear)))))
5137
+ })
5078
5138
  })));
5079
5139
  });
5140
+ Datepicker.displayName = 'Datepicker';
5080
5141
 
5081
5142
  /* eslint-disable @typescript-eslint/no-empty-function */
5082
5143
  const DialogContext = /*#__PURE__*/React.createContext({
@@ -5247,7 +5308,7 @@ const Content$4 = /*#__PURE__*/React.forwardRef(function DialogContent(props, re
5247
5308
  draggable: true,
5248
5309
  "aria-grabbed": dragging,
5249
5310
  "aria-label": texts.dialog.drag,
5250
- className: "yt-dialog__drag absolute-center-x bg-grey-light top-1.5 h-3 w-24 cursor-move rounded text-center"
5311
+ className: "yt-dialog__drag absolute-center-x bg-grey-100 top-1.5 h-3 w-24 cursor-move rounded text-center"
5251
5312
  })), dialog.showCloseButton ? /*#__PURE__*/React.createElement(DialogPrimitive.Close, {
5252
5313
  onClick: dialog.onClose,
5253
5314
  asChild: true
@@ -5294,7 +5355,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function DialogDrawer(props, ref) {
5294
5355
  Drawer.displayName = 'DialogDrawer';
5295
5356
 
5296
5357
  const Extra = /*#__PURE__*/React.forwardRef(function DialogExtra(props, ref) {
5297
- const className = cn('bg-grey-light yt-shadow-inset absolute top-full left-0 -mt-px w-full rounded-t-none rounded-b p-6 text-left', props.className);
5358
+ const className = cn('bg-grey-100 yt-shadow-inset absolute top-full left-0 -mt-px w-full rounded-t-none rounded-b p-6 text-left', props.className);
5298
5359
  return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
5299
5360
  className: className,
5300
5361
  "data-taco": "dialog-extra",
@@ -5379,11 +5440,11 @@ const Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
5379
5440
  ...otherProps
5380
5441
  } = props;
5381
5442
  const className = cn('flex flex-col font-bold text-xs leading-loose pb-4 min-h-[theme(spacing.18)]', {
5382
- 'text-grey-dark': disabled
5443
+ 'text-grey-300': disabled
5383
5444
  }, props.className);
5384
5445
  const messageClassName = cn('h-4 text-xs text-left leading-normal font-normal truncate -mb-4', {
5385
- 'text-grey-darkest': !invalid,
5386
- 'text-red': invalid,
5446
+ 'text-grey-700': !invalid,
5447
+ 'text-red-500': invalid,
5387
5448
  'opacity-50': disabled
5388
5449
  }, props.className);
5389
5450
  return /*#__PURE__*/React.createElement("label", Object.assign({}, otherProps, {
@@ -5445,10 +5506,9 @@ const Anchor = /*#__PURE__*/React.forwardRef(function HangerAnchor(props, extern
5445
5506
  children = /*#__PURE__*/React.createElement("span", null, props.children);
5446
5507
  }
5447
5508
  return /*#__PURE__*/React.createElement(PopoverPrimitive.Anchor, Object.assign({}, parentProps, props, {
5448
- children: children,
5449
5509
  ref: refCallback,
5450
5510
  asChild: true
5451
- }));
5511
+ }), children);
5452
5512
  });
5453
5513
  const Title$2 = /*#__PURE__*/React.forwardRef(function DialogTitle(props, ref) {
5454
5514
  const className = cn('mb-1 text-base font-bold flex w-full', props.className);
@@ -5465,7 +5525,7 @@ const Content$5 = /*#__PURE__*/React.forwardRef(function HangerContent(props, re
5465
5525
  const {
5466
5526
  texts
5467
5527
  } = useLocalization();
5468
- const className = cn('wcag-blue border border-transparent rounded p-3 pr-12 yt-shadow focus:border-transparent max-w-sm', props.className);
5528
+ const className = cn('wcag-blue-500 border border-transparent rounded p-3 pr-12 yt-shadow focus:border-transparent max-w-sm', props.className);
5469
5529
  const handleInteractOutside = event => {
5470
5530
  event.preventDefault();
5471
5531
  };
@@ -5477,7 +5537,7 @@ const Content$5 = /*#__PURE__*/React.forwardRef(function HangerContent(props, re
5477
5537
  sideOffset: 1,
5478
5538
  ref: ref
5479
5539
  }, props.children, /*#__PURE__*/React.createElement(UnstyledArrow, {
5480
- className: "text-blue"
5540
+ className: "text-blue-500"
5481
5541
  }), /*#__PURE__*/React.createElement(PopoverPrimitive.Close, {
5482
5542
  asChild: true
5483
5543
  }, /*#__PURE__*/React.createElement(IconButton, {
@@ -5533,7 +5593,7 @@ const UnstyledArrow$1 = /*#__PURE__*/React.forwardRef(function HoverCardArrow(pr
5533
5593
  transform: 'rotateZ(180deg)'
5534
5594
  }
5535
5595
  }), /*#__PURE__*/React.createElement("path", {
5536
- className: "text-grey-dark group-focus:text-blue-light fill-current",
5596
+ className: "text-grey-300 fill-current group-focus:text-blue-300",
5537
5597
  d: "M23.7,27.1L17,19.9C16.5,19.3,15.8,19,15,19s-1.6,0.3-2.1,0.9l-6.6,7.2C5.3,28.1,3.4,29,2,29h26 C26.7,29,24.6,28.1,23.7,27.1z"
5538
5598
  }), /*#__PURE__*/React.createElement("path", {
5539
5599
  className: "fill-current",
@@ -5574,34 +5634,48 @@ const SearchInput = /*#__PURE__*/React.forwardRef(function SearchInput({
5574
5634
  onSearch,
5575
5635
  ...props
5576
5636
  }, ref) {
5637
+ const internalRef = useMergedRef(ref);
5577
5638
  const {
5578
5639
  texts
5579
5640
  } = useLocalization();
5580
5641
  const handleClick = () => {
5581
- if (!props.disabled) {
5582
- onSearch === null || onSearch === void 0 ? void 0 : onSearch(props.value);
5583
- }
5642
+ var _internalRef$current$, _internalRef$current;
5643
+ onSearch === null || onSearch === void 0 ? void 0 : onSearch((_internalRef$current$ = (_internalRef$current = internalRef.current) === null || _internalRef$current === void 0 ? void 0 : _internalRef$current.value) !== null && _internalRef$current$ !== void 0 ? _internalRef$current$ : '');
5644
+ };
5645
+ const handleCancelClick = () => {
5646
+ setInputValueByRef(internalRef.current, '');
5584
5647
  };
5585
5648
  const handleKeyDown = event => {
5586
5649
  var _props$onKeyDown;
5587
- const isEnterKeyPressed = event.key === 'Enter';
5588
- if (isEnterKeyPressed) {
5650
+ if (event.key === 'Enter') {
5651
+ event.preventDefault();
5589
5652
  handleClick();
5653
+ return;
5590
5654
  }
5591
5655
  (_props$onKeyDown = props.onKeyDown) === null || _props$onKeyDown === void 0 ? void 0 : _props$onKeyDown.call(props, event);
5592
5656
  };
5593
5657
  return /*#__PURE__*/React.createElement(Input, Object.assign({
5594
- "aria-label": texts.searchInput.inputLabel
5658
+ "aria-label": texts.searchInput.placeholder,
5659
+ placeholder: texts.searchInput.placeholder
5595
5660
  }, props, {
5596
- button: /*#__PURE__*/React.createElement(IconButton, {
5597
- "aria-label": texts.searchInput.buttonLabel,
5598
- icon: "search",
5599
- className: "!border-transparent !bg-transparent focus:!border-transparent peer-focus:!border-transparent peer-focus:peer-active:!border-transparent",
5600
- disabled: props.disabled,
5601
- onClick: handleClick
5602
- }),
5603
5661
  onKeyDown: handleKeyDown,
5604
- ref: ref,
5662
+ postfix: /*#__PURE__*/React.createElement(React.Fragment, null, props.disabled || props.readOnly || !props.value ? null : /*#__PURE__*/React.createElement(IconButton, {
5663
+ "aria-hidden": true,
5664
+ className: "group-peer-focus:visible group-peer-hover:visible !text-grey-700 invisible mr-0.5 !h-5 !min-h-[theme(spacing.4)] !w-5 !min-w-[theme(spacing.4)] text-xs hover:visible group-hover:visible",
5665
+ icon: "close",
5666
+ onClick: handleCancelClick,
5667
+ rounded: true,
5668
+ tabIndex: -1,
5669
+ tooltip: texts.searchInput.clear
5670
+ }), /*#__PURE__*/React.createElement(IconButton, {
5671
+ "aria-label": texts.searchInput.button,
5672
+ icon: "search",
5673
+ className: "group-peer-focus:!border-transparent group-peer-focus:group-peer-active:!border-transparent -mr-2 !border-transparent !bg-transparent focus:!border-transparent",
5674
+ disabled: props.disabled || props.readOnly,
5675
+ onClick: handleClick,
5676
+ tooltip: texts.searchInput.button
5677
+ })),
5678
+ ref: internalRef,
5605
5679
  type: "search"
5606
5680
  }));
5607
5681
  });
@@ -6058,13 +6132,13 @@ const useItemStyling = ({
6058
6132
  return cn('flex items-center justify-start h-8 pr-1.5 relative rounded w-full focus:outline-none group', {
6059
6133
  'pl-7': menu === null || menu === void 0 ? void 0 : menu.indented,
6060
6134
  'pl-1.5': !(menu !== null && menu !== void 0 && menu.indented),
6061
- 'cursor-pointer hover:bg-grey-light text-black hover:text-black': !disabled,
6062
- 'cursor-not-allowed hover:bg-white text-grey-dark': disabled
6135
+ 'cursor-pointer hover:bg-grey-100 text-black hover:text-black': !disabled,
6136
+ 'cursor-not-allowed hover:bg-white text-grey-300': disabled
6063
6137
  }, className);
6064
6138
  };
6065
6139
  const Shortcut = props => {
6066
6140
  return /*#__PURE__*/React.createElement("span", Object.assign({}, props, {
6067
- className: "text-grey-darkest ml-auto pl-3"
6141
+ className: "text-grey-700 ml-auto pl-3"
6068
6142
  }));
6069
6143
  };
6070
6144
  const Item$1 = /*#__PURE__*/React.forwardRef(function MenuItem(props, ref) {
@@ -6200,13 +6274,13 @@ const RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(pro
6200
6274
  } = props;
6201
6275
  const isDisabled = context.disabled || props.disabled;
6202
6276
  const className = cn('flex flex-shrink-0 self-start items-center justify-center h-4 w-4 mt-[0.2rem] rounded-full bg-white border-2', {
6203
- 'border-grey-dark hover:border-4 focus:yt-focus aria-checked:bg-blue aria-checked:border-blue hover:aria-checked:border-blue-light': !isDisabled && !context.invalid,
6204
- 'border-grey cursor-not-allowed aria-checked:bg-blue-light aria-checked:border-blue-light ': isDisabled,
6205
- 'border-red hover:border-4 text-red focus:border-red focus:yt-focus-red aria-checked:bg-red aria-checked:border-red': context.invalid && !isDisabled
6277
+ 'border-grey-300 hover:border-4 focus:yt-focus aria-checked:bg-blue-500 aria-checked:border-blue-500 hover:aria-checked:border-blue-300': !isDisabled && !context.invalid,
6278
+ 'border-grey-200 cursor-not-allowed aria-checked:bg-blue-300 aria-checked:border-blue-300 ': isDisabled,
6279
+ 'border-red-500 hover:border-4 text-red-500 focus:border-red-500 focus:yt-focus-red aria-checked:bg-red-500 aria-checked:border-red': context.invalid && !isDisabled
6206
6280
  });
6207
6281
  const labelClassName = cn('flex items-center gap-2', {
6208
6282
  'cursor-pointer': !isDisabled,
6209
- 'cursor-not-allowed text-grey-dark': isDisabled
6283
+ 'cursor-not-allowed text-grey-300': isDisabled
6210
6284
  }, props.className);
6211
6285
  return /*#__PURE__*/React.createElement("label", {
6212
6286
  className: labelClassName
@@ -6328,13 +6402,13 @@ RadioGroup$1.Item = RadioItem;
6328
6402
 
6329
6403
  const Separator = () => {
6330
6404
  return /*#__PURE__*/React.createElement(DropdownMenuPrimitive.Separator, {
6331
- className: "bg-grey-dark my-1 h-px"
6405
+ className: "bg-grey-300 my-1 h-px"
6332
6406
  });
6333
6407
  };
6334
6408
 
6335
6409
  const Header = /*#__PURE__*/React.forwardRef(function MenuHeader(props, ref) {
6336
6410
  const menu = useCurrentMenu();
6337
- const className = cn('flex items-center justify-start h-7 pr-1.5 text-xs text-grey-darkest', {
6411
+ const className = cn('flex items-center justify-start h-7 pr-1.5 text-xs text-grey-700', {
6338
6412
  'pl-7': menu === null || menu === void 0 ? void 0 : menu.indented,
6339
6413
  'pl-1.5': !(menu !== null && menu !== void 0 && menu.indented)
6340
6414
  }, props.className);
@@ -6499,11 +6573,11 @@ const Item$2 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
6499
6573
  const [isDraggedOver, dropTargetProps] = useDropTarget(onDrop);
6500
6574
  const isTreeitem = role === 'treeitem';
6501
6575
  const className = cn('yt-navigation__item cursor-pointer', {
6502
- 'w-full mb-px py-1 px-3 flex items-center hover:bg-grey-dark': isTreeitem,
6576
+ 'w-full mb-px py-1 px-3 flex items-center hover:bg-grey-300': isTreeitem,
6503
6577
  'bg-white w-full h-10 px-3 flex-shrink-0 flex items-center justify-between cursor-pointer': !isTreeitem,
6504
6578
  'yt-navigation__item--active': active && !isDraggedOver,
6505
- 'bg-grey-dark': isTreeitem && active && !isDraggedOver,
6506
- 'yt-navigation__item--dropping bg-blue': isDraggedOver
6579
+ 'bg-grey-300': isTreeitem && active && !isDraggedOver,
6580
+ 'yt-navigation__item--dropping bg-blue-500': isDraggedOver
6507
6581
  }, props.className);
6508
6582
  const handleClick = event => {
6509
6583
  if (event.target instanceof HTMLAnchorElement || event.target instanceof HTMLButtonElement) {
@@ -6539,7 +6613,7 @@ const MenuGroup = /*#__PURE__*/React__default.forwardRef(function MenuGroup(prop
6539
6613
  const title = expanded => {
6540
6614
  const className = cn('bg-white h-10 pl-3 pr-1 flex items-center justify-between w-full', {
6541
6615
  'mb-1': expanded,
6542
- 'cursor-pointer hover:text-blue': !props.fixed
6616
+ 'cursor-pointer hover:text-blue-500': !props.fixed
6543
6617
  });
6544
6618
  return /*#__PURE__*/React__default.createElement("span", {
6545
6619
  className: className
@@ -6572,10 +6646,10 @@ const Menu$2 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref)
6572
6646
  return scrollableAreas;
6573
6647
  }, [props.children]);
6574
6648
  return /*#__PURE__*/React__default.createElement(Treeview, Object.assign({}, props, {
6575
- className: cn('divide-grey-light flex flex-grow flex-col divide-y-2 overflow-y-auto', props.className),
6649
+ className: cn('divide-grey-100 flex flex-grow flex-col divide-y-2 overflow-y-auto', props.className),
6576
6650
  ref: ref
6577
6651
  }), scrollableAreas.map((area, i) => Array.isArray(area) ? /*#__PURE__*/React__default.createElement("div", {
6578
- className: "divide-grey-light flex h-0 flex-auto flex-shrink-0 flex-grow flex-col divide-y-2 overflow-y-auto",
6652
+ className: "divide-grey-100 flex h-0 flex-auto flex-shrink-0 flex-grow flex-col divide-y-2 overflow-y-auto",
6579
6653
  key: i
6580
6654
  }, area) : area));
6581
6655
  });
@@ -6585,7 +6659,7 @@ const Navigation = /*#__PURE__*/React__default.forwardRef(function Navigation(pr
6585
6659
  children,
6586
6660
  ...otherProps
6587
6661
  } = props;
6588
- const className = cn('h-full flex flex-col bg-grey-light divide-y-2 divide-grey-light', props.className);
6662
+ const className = cn('h-full flex flex-col bg-grey-100 divide-y-2 divide-grey-100', props.className);
6589
6663
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, otherProps, {
6590
6664
  className: className,
6591
6665
  "data-taco": "navigation",
@@ -6836,8 +6910,8 @@ const BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref)
6836
6910
  const className = cn('inline-flex relative w-full', {
6837
6911
  'yt-select--readonly': props.readOnly
6838
6912
  }, externalClassName);
6839
- const inputClassname = cn(getInputClasses(props), 'h-8 text-left pr-0', {
6840
- 'border-blue': popover.open
6913
+ const inputClassname = cn(getInputClasses(props), 'h-8 text-left !pr-0', {
6914
+ 'border-blue-500': popover.open
6841
6915
  });
6842
6916
  React.useEffect(() => {
6843
6917
  if (autoFocus && internalRef.current) {
@@ -7050,10 +7124,10 @@ const Progress = ({
7050
7124
  animationDuration: `${duration}ms`
7051
7125
  };
7052
7126
  }
7053
- const className = cn('bg-grey-light rounded block h-1 overflow-hidden w-full', props.className);
7127
+ const className = cn('bg-grey-100 rounded block h-1 overflow-hidden w-full', props.className);
7054
7128
  const progressClassName = cn('yt-progress__bar block h-1', {
7055
- "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,
7056
- [`w-0 bg-grey-dark animate-[progress_linear]`]: duration
7129
+ "w-full before:h-1 before:bg-grey-300 before:block before:animate-[progress-indeterminate_2s_cubic-bezier(0.4,0,0.2,1)_infinite] before:content-[' ']": !duration,
7130
+ [`w-0 bg-grey-300 animate-[progress_linear]`]: duration
7057
7131
  });
7058
7132
  return /*#__PURE__*/React__default.createElement("span", Object.assign({}, props, {
7059
7133
  "data-taco": "progress",
@@ -7113,10 +7187,10 @@ const Toast = ({
7113
7187
  type = 'default'
7114
7188
  } = options;
7115
7189
  const className = cn('bg-white relative flex items-center py-1 px-2 mt-3 w-full rounded yt-shadow', {
7116
- 'border border-grey': type === 'default' || type === 'loading' || !type,
7117
- 'border border-grey-darker': type === 'success',
7118
- 'border border-blue': type === 'information',
7119
- 'border border-yellow-dark': type === 'warning',
7190
+ 'border border-grey-200': type === 'default' || type === 'loading' || !type,
7191
+ 'border border-grey-500': type === 'success',
7192
+ 'border border-blue-500': type === 'information',
7193
+ 'border border-yellow-700': type === 'warning',
7120
7194
  'border border-red': type === 'error'
7121
7195
  });
7122
7196
  const timer = useTimer(autoClose, handleClose);
@@ -7160,7 +7234,7 @@ const Toast = ({
7160
7234
  className: "flex-grow"
7161
7235
  }, content), /*#__PURE__*/React__default.createElement(IconButton, {
7162
7236
  appearance: "discrete",
7163
- className: "text-grey-darkest -mr-2 cursor-pointer self-start !px-0",
7237
+ className: "text-grey-700 -mr-2 cursor-pointer self-start !px-0",
7164
7238
  icon: "close",
7165
7239
  "aria-label": texts.toasts.dismiss,
7166
7240
  onClick: handleClose
@@ -7615,15 +7689,15 @@ const Title$3 = /*#__PURE__*/React__default.forwardRef(function Listbox2Group(pr
7615
7689
  });
7616
7690
 
7617
7691
  const colors = {
7618
- green: 'bg-[#cdf0e7] text-[#14493a]',
7619
- yellow: 'bg-[#fff1c3] text-[#733700]',
7620
- red: 'bg-[#ffdad2] text-[#64001b]',
7621
- blue: 'bg-[#deebff] text-[#29283e]',
7622
- purple: 'bg-[#eee5ff] text-[#412970]',
7623
- orange: 'bg-[#ffe3bb] text-[#4a2811]',
7624
- brown: 'bg-[#eee0da] text-[#45291f]',
7625
- pink: 'bg-[#ffe3f7] text-[#870062]',
7626
- grey: 'bg-grey text-[#303030]'
7692
+ green: 'bg-green-100 text-green-900',
7693
+ yellow: 'bg-yellow-100 text-yellow-900',
7694
+ red: 'bg-red-100 text-red-900',
7695
+ blue: 'bg-blue-100 text-blue-900',
7696
+ purple: 'bg-purple-100 text-purple-900',
7697
+ orange: 'bg-orange-100 text-orange-900',
7698
+ brown: 'bg-brown-100 text-brown-900',
7699
+ pink: 'bg-pink-100 text-pink-900',
7700
+ grey: 'bg-grey-200 text-grey-900'
7627
7701
  };
7628
7702
 
7629
7703
  const Tag$1 = /*#__PURE__*/React__default.forwardRef((props, ref) => {
@@ -7661,7 +7735,7 @@ const Tag$1 = /*#__PURE__*/React__default.forwardRef((props, ref) => {
7661
7735
  }) : null);
7662
7736
  });
7663
7737
 
7664
- const createOptionClassName = () => 'group mb-px flex h-8 w-full text-sm flex-shrink-0 font-normal cursor-pointer items-center rounded bg-white px-2 leading-8 text-black aria-hidden:hidden gap-1.5 bg-white hover:bg-grey-light aria-current:bg-grey-light aria-disabled:text-black/25 aria-disabled:pointer-events-none';
7738
+ const createOptionClassName = () => 'group mb-px flex h-8 w-full text-sm flex-shrink-0 font-normal cursor-pointer items-center rounded bg-white px-2 leading-8 text-black aria-hidden:hidden gap-1.5 bg-white hover:bg-grey-100 aria-current:bg-grey-100 aria-disabled:text-black/25 aria-disabled:pointer-events-none';
7665
7739
  const createCollectionClassName = () => 'flex flex-col gap-px';
7666
7740
 
7667
7741
  const Select2Context = /*#__PURE__*/React__default.createContext({});
@@ -7818,7 +7892,7 @@ const EditPopover = props => {
7818
7892
  appearance: "primary",
7819
7893
  onClick: handleSave(close)
7820
7894
  }, texts.select2.save))) : null, onEdit && onDelete ? /*#__PURE__*/React__default.createElement("hr", null) : null, onDelete ? /*#__PURE__*/React__default.createElement("button", {
7821
- className: "hover:text-grey-darkest flex items-center justify-start gap-1",
7895
+ className: "hover:text-grey-700 flex items-center justify-start gap-1",
7822
7896
  onClick: handleDelete(close),
7823
7897
  onKeyDown: preventKeyDownPropagation
7824
7898
  }, /*#__PURE__*/React__default.createElement(Icon, {
@@ -7981,7 +8055,7 @@ const Thumb = props => /*#__PURE__*/React__default.createElement(ScrollAreaPrimi
7981
8055
  className: "flex-[1] rounded bg-black opacity-50"
7982
8056
  }));
7983
8057
  const Corner = props => /*#__PURE__*/React__default.createElement(ScrollAreaPrimitive.Corner, Object.assign({}, props, {
7984
- classname: "bg-grey-darker"
8058
+ classname: "bg-grey-500"
7985
8059
  }));
7986
8060
  const ScrollArea = props => {
7987
8061
  const {
@@ -8037,7 +8111,7 @@ const Button$2 = /*#__PURE__*/React__default.forwardRef(function Select2TriggerB
8037
8111
  highlighted,
8038
8112
  invalid,
8039
8113
  readOnly
8040
- }).replace('w-full ', ''), {
8114
+ }).replace('w-full', ''), {
8041
8115
  'w-full': !((_props$className = props.className) !== null && _props$className !== void 0 && _props$className.includes('w-'))
8042
8116
  }, props.className);
8043
8117
  const handleClick = event => {
@@ -8100,6 +8174,7 @@ const Single = /*#__PURE__*/React__default.forwardRef(function Select2TriggerSin
8100
8174
  }, output));
8101
8175
  });
8102
8176
  const Multiple = /*#__PURE__*/React__default.forwardRef(function Select2TriggerMultiple(props, ref) {
8177
+ var _buttonRef$current;
8103
8178
  const {
8104
8179
  children,
8105
8180
  values = [],
@@ -8112,9 +8187,12 @@ const Multiple = /*#__PURE__*/React__default.forwardRef(function Select2TriggerM
8112
8187
  setValue,
8113
8188
  tags
8114
8189
  } = useSelect2Context();
8190
+ const buttonRef = useMergedRef(ref);
8115
8191
  const valuesAsChildren = values.map(value => children.find(c => c.props.value === value));
8116
8192
  let content;
8117
- let className = buttonProps.className;
8193
+ let {
8194
+ className
8195
+ } = buttonProps;
8118
8196
  if (open) {
8119
8197
  className = cn('absolute z-20', buttonProps.className);
8120
8198
  content = /*#__PURE__*/React__default.createElement(ScrollArea, {
@@ -8143,12 +8221,15 @@ const Multiple = /*#__PURE__*/React__default.forwardRef(function Select2TriggerM
8143
8221
  });
8144
8222
  }
8145
8223
  return /*#__PURE__*/React__default.createElement("span", {
8146
- className: cn({
8147
- 'relative h-8': open
8148
- })
8224
+ className: cn('relative inline-flex flex-grow', {
8225
+ 'h-8': open
8226
+ }),
8227
+ style: {
8228
+ width: open ? (_buttonRef$current = buttonRef.current) === null || _buttonRef$current === void 0 ? void 0 : _buttonRef$current.offsetWidth : undefined
8229
+ }
8149
8230
  }, /*#__PURE__*/React__default.createElement(Button$2, Object.assign({}, buttonProps, {
8150
8231
  className: className,
8151
- ref: ref
8232
+ ref: buttonRef
8152
8233
  }), content));
8153
8234
  });
8154
8235
  const MultipleValue = ({
@@ -8343,6 +8424,7 @@ const Search$1 = /*#__PURE__*/React__default.forwardRef(function ListboxSearch(p
8343
8424
  const useChildren = ({
8344
8425
  children: initialChildren,
8345
8426
  emptyValue,
8427
+ multiple,
8346
8428
  open,
8347
8429
  setValue,
8348
8430
  value
@@ -8351,7 +8433,7 @@ const useChildren = ({
8351
8433
  // support empty value - probably a more elegant way to achieve this
8352
8434
  const allChildren = React__default.useMemo(() => {
8353
8435
  const initial = initialChildren || [];
8354
- if (emptyValue !== undefined) {
8436
+ if (emptyValue !== undefined && !multiple) {
8355
8437
  return [/*#__PURE__*/React__default.createElement(Option$1, {
8356
8438
  key: "__empty",
8357
8439
  children: "",
@@ -8362,7 +8444,7 @@ const useChildren = ({
8362
8444
  }, [initialChildren, emptyValue]);
8363
8445
  // set an initial value if none is set, we have to trigger state updates for controlled components
8364
8446
  React__default.useEffect(() => {
8365
- if (emptyValue === undefined && value === undefined) {
8447
+ if (!multiple && emptyValue === undefined && value === undefined) {
8366
8448
  var _allChildren$;
8367
8449
  setValue(allChildren === null || allChildren === void 0 ? void 0 : (_allChildren$ = allChildren[0]) === null || _allChildren$ === void 0 ? void 0 : _allChildren$.props.value);
8368
8450
  }
@@ -8465,7 +8547,7 @@ const Collection = props => {
8465
8547
  children
8466
8548
  } = props;
8467
8549
  return /*#__PURE__*/React__default.createElement(ScrollArea, {
8468
- className: "flex max-h-[10.25rem] w-full flex-col gap-y-0.5 px-1.5"
8550
+ className: "flex max-h-[10.3rem] w-full flex-col gap-y-0.5 px-1.5"
8469
8551
  }, children);
8470
8552
  };
8471
8553
 
@@ -8518,6 +8600,7 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
8518
8600
  } = useChildren({
8519
8601
  children: initialChildren,
8520
8602
  emptyValue,
8603
+ multiple,
8521
8604
  open,
8522
8605
  setValue,
8523
8606
  value
@@ -8549,15 +8632,13 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
8549
8632
  var _listboxRef$current;
8550
8633
  if (open) {
8551
8634
  event.preventDefault();
8552
- } else {
8553
- if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
8554
- setOpen(true);
8555
- }
8635
+ } else if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
8636
+ setOpen(true);
8556
8637
  }
8557
8638
  // the focus should always remain on the input, so we forward events on to the listbox
8558
8639
  (_listboxRef$current = listboxRef.current) === null || _listboxRef$current === void 0 ? void 0 : _listboxRef$current.dispatchEvent(createCustomKeyboardEvent(event));
8559
8640
  };
8560
- const className = cn('border-grey-dark rounded border bg-white py-1.5 shadow-md outline-none', createCollectionClassName());
8641
+ const className = cn('border-grey-300 rounded border bg-white py-1.5 shadow-md outline-none', createCollectionClassName());
8561
8642
  return /*#__PURE__*/React__default.createElement(Select2Context.Provider, {
8562
8643
  value: context
8563
8644
  }, /*#__PURE__*/React__default.createElement(PopoverPrimitive.Root, {
@@ -8576,10 +8657,9 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
8576
8657
  "data-taco": "Select2"
8577
8658
  }, /*#__PURE__*/React__default.createElement(Trigger$6, Object.assign({}, otherProps, {
8578
8659
  "aria-haspopup": "listbox",
8579
- children: allChildren,
8580
8660
  onKeyDown: handleKeyDown,
8581
8661
  ref: internalRef
8582
- }))), /*#__PURE__*/React__default.createElement(PopoverPrimitive.Portal, null, /*#__PURE__*/React__default.createElement(PopoverPrimitive.Content, {
8662
+ }), allChildren)), /*#__PURE__*/React__default.createElement(PopoverPrimitive.Portal, null, /*#__PURE__*/React__default.createElement(PopoverPrimitive.Content, {
8583
8663
  asChild: true,
8584
8664
  align: "start",
8585
8665
  onOpenAutoFocus: event => {
@@ -8605,7 +8685,7 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
8605
8685
  placeholder: onCreate ? texts.select2.searchOrCreate : texts.select2.search,
8606
8686
  ref: searchRef
8607
8687
  }) : null, allChildren.length <= 0 ? /*#__PURE__*/React__default.createElement("div", {
8608
- className: "text-grey-darkest -mt-0.5 flex h-8 items-center px-2",
8688
+ className: "text-grey-700 -mt-0.5 flex h-8 items-center px-2",
8609
8689
  role: "presentation"
8610
8690
  }, "No results found...") : /*#__PURE__*/React__default.createElement(Root$1, {
8611
8691
  className: "flex flex-col gap-0.5",
@@ -8660,6 +8740,7 @@ const ControlledHiddenField = props => {
8660
8740
  }
8661
8741
  return null;
8662
8742
  };
8743
+ Select2.displayName = 'Select2';
8663
8744
 
8664
8745
  const sanitizeRowProps = (row, rowExpansionRenderer) => {
8665
8746
  var _row$subRows;
@@ -8773,7 +8854,7 @@ const getString = value => {
8773
8854
  };
8774
8855
  const guess = value => {
8775
8856
  if (typeof value === 'boolean') {
8776
- return !!value;
8857
+ return value;
8777
8858
  }
8778
8859
  return isNaN(value) ? getString(value) : Number(value);
8779
8860
  };
@@ -9370,7 +9451,7 @@ const visibleColumns = columns => {
9370
9451
  className: 'yt-table__cell--draggable flex-col px-0',
9371
9452
  Cell: () => /*#__PURE__*/React__default.createElement(Icon, {
9372
9453
  name: "drag",
9373
- className: "text-grey-darkest invisible w-[20px] cursor-grab"
9454
+ className: "text-grey-700 invisible w-[20px] cursor-grab"
9374
9455
  }),
9375
9456
  flex: '0 0 20px'
9376
9457
  }, ...columns];
@@ -9662,8 +9743,8 @@ const Row = /*#__PURE__*/React__default.forwardRef(function TableRow({
9662
9743
  minHeight: rowHeight ? `${rowHeight}px` : undefined,
9663
9744
  paddingLeft: row.depth ? `${row.depth * 2}rem` : undefined
9664
9745
  },
9665
- className: cn('yt-table__row border-grey-light flex border-b min-h-[2.5rem] hover:bg-grey-light', {
9666
- 'yt-table__row--active bg-grey-light hover:bg-grey-light': activeIndex === index,
9746
+ className: cn('yt-table__row border-grey-100 flex border-b min-h-[2.5rem] hover:bg-grey-100', {
9747
+ 'yt-table__row--active bg-grey-100 hover:bg-grey-100': activeIndex === index,
9667
9748
  'yt-table__row--clickable': !!onRowClick,
9668
9749
  'yt-table__row--dragging': !!row.isDragging,
9669
9750
  'yt-table__row--editing': !!row.isEditing
@@ -9720,7 +9801,7 @@ const Column = ({
9720
9801
  ...(cell.getSortByToggleProps && cell.getSortByToggleProps({
9721
9802
  title: undefined
9722
9803
  })),
9723
- className: cn('yt-table__cell flex flex-1 truncate p-2 align-middle text-grey-darkest hover:text-black', cell.className, {
9804
+ className: cn('yt-table__cell flex flex-1 truncate p-2 align-middle text-grey-700 hover:text-black', cell.className, {
9724
9805
  'yt-table__cell__group': !!cell.columns,
9725
9806
  'cursor-pointer': !cell.disableSorting,
9726
9807
  'justify-start text-left': cell.align === 'left',
@@ -9775,7 +9856,7 @@ const BaseTable = /*#__PURE__*/React__default.forwardRef(function BaseTable(prop
9775
9856
  }, headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map((headerGroup, index) => /*#__PURE__*/React__default.createElement("div", {
9776
9857
  key: index,
9777
9858
  role: "row",
9778
- className: "border-grey-light flex h-auto min-h-[2.5rem] w-full select-none border-t-0 border-b-2 font-bold"
9859
+ className: "border-grey-100 flex h-auto min-h-[2.5rem] w-full select-none border-t-0 border-b-2 font-bold"
9779
9860
  }, headerGroup.headers.map((cell, index) => /*#__PURE__*/React__default.createElement(Column, {
9780
9861
  key: index,
9781
9862
  index: index,
@@ -9885,7 +9966,7 @@ const VariableRow = /*#__PURE__*/React__default.memo(({
9885
9966
  role: "row",
9886
9967
  style: style
9887
9968
  }, /*#__PURE__*/React__default.createElement("div", {
9888
- className: "yt-table__cell text-grey-dark"
9969
+ className: "yt-table__cell text-grey-300"
9889
9970
  }, texts.table.loading));
9890
9971
  }, reactWindow.areEqual);
9891
9972
  const getAverageRowHeight = (rowHeights = {}) => {
@@ -10155,7 +10236,7 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
10155
10236
  }), children);
10156
10237
  });
10157
10238
  const TabList = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
10158
- const className = cn('yt-tab__list border-b border-grey-light flex flex-row m-0 mb-4', props.className);
10239
+ const className = cn('yt-tab__list border-b border-grey-100 flex flex-row m-0 mb-4', props.className);
10159
10240
  return /*#__PURE__*/React.createElement(TabsPrimitive.List, Object.assign({}, props, {
10160
10241
  className: className,
10161
10242
  ref: ref
@@ -10167,7 +10248,7 @@ const TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
10167
10248
  disabled,
10168
10249
  ...otherProps
10169
10250
  } = props;
10170
- 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-darker' : 'cursor-pointer rounded-t hover:border-grey-dark aria-selected:border-blue aria-selected:text-black aria-selected:hover:border-blue-light hover:text-black active:yt-focus active:border-blue focus:yt-focus focus:border-blue', props.className);
10251
+ const className = cn('yt-tab bg-transparent border-b-2 border-transparent text-grey-700 m-0 py-2 px-4', disabled ? 'cursor-not-allowed !text-grey-500' : 'cursor-pointer rounded-t hover:border-grey-300 aria-selected:border-blue-500 aria-selected:text-black aria-selected:hover:border-blue-300 hover:text-black active:yt-focus active:border-blue-500 focus:yt-focus focus:border-blue-500', props.className);
10171
10252
  return /*#__PURE__*/React.createElement(TabsPrimitive.Trigger, Object.assign({}, otherProps, {
10172
10253
  className: className,
10173
10254
  disabled: disabled,
@@ -10234,13 +10315,13 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
10234
10315
  const id = useId(props.id);
10235
10316
  const className = cn('group h-5 w-9 flex flex-shrink-0 rounded-full inline-flex', {
10236
10317
  'mr-2': !!label,
10237
- 'bg-grey-darker hover:bg-grey-dark aria-checked:bg-blue aria-checked:hover:bg-blue-light focus:yt-focus': !props.disabled,
10238
- 'bg-grey-light cursor-not-allowed aria-checked:bg-blue-light': props.disabled
10318
+ 'bg-grey-500 hover:bg-grey-300 aria-checked:bg-blue-500 aria-checked:hover:bg-blue-300 focus:yt-focus': !props.disabled,
10319
+ 'bg-grey-100 cursor-not-allowed aria-checked:bg-blue-300': props.disabled
10239
10320
  }, props.className);
10240
10321
  let labelledByProps = null;
10241
10322
  if (label) {
10242
10323
  labelledByProps = {
10243
- ['aria-labelledby']: `${id}-label`,
10324
+ 'aria-labelledby': `${id}-label`,
10244
10325
  id
10245
10326
  };
10246
10327
  }
@@ -10253,7 +10334,7 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
10253
10334
  }));
10254
10335
  if (label) {
10255
10336
  const labelContainerClassName = cn('flex self-start cursor-pointer', {
10256
- 'cursor-not-allowed text-grey-dark': props.disabled
10337
+ 'cursor-not-allowed text-grey-300': props.disabled
10257
10338
  });
10258
10339
  return /*#__PURE__*/React.createElement("span", {
10259
10340
  className: labelContainerClassName
@@ -10264,6 +10345,7 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
10264
10345
  }
10265
10346
  return element;
10266
10347
  });
10348
+ Switch.displayName = 'Switch';
10267
10349
 
10268
10350
  const Tooltip$1 = ({
10269
10351
  continuous,
@@ -10346,7 +10428,7 @@ const Tour = props => {
10346
10428
  var _props$children$find;
10347
10429
  return (_props$children$find = props.children.find(child => child.props.selector === selector)) === null || _props$children$find === void 0 ? void 0 : _props$children$find.props;
10348
10430
  }, [props.children]);
10349
- function callback(state) {
10431
+ const callback = state => {
10350
10432
  if (state.action === Joyride.ACTIONS.SKIP && state.lifecycle === Joyride.LIFECYCLE.COMPLETE) {
10351
10433
  if (onClose) {
10352
10434
  onClose(getStep(state.step.target));
@@ -10362,7 +10444,7 @@ const Tour = props => {
10362
10444
  onReady(getStep(state.step.target));
10363
10445
  }
10364
10446
  }
10365
- }
10447
+ };
10366
10448
  return /*#__PURE__*/React.createElement(Joyride__default, Object.assign({}, rest, {
10367
10449
  run: run,
10368
10450
  steps: steps,
@@ -10383,7 +10465,7 @@ const Tour = props => {
10383
10465
  styles: {
10384
10466
  /** style beacon */
10385
10467
  options: {
10386
- // tailwind.theme.colors.blue.light
10468
+ // tailwind.theme.colors.blue.300
10387
10469
  primaryColor: '#6ba4ff'
10388
10470
  }
10389
10471
  },