@avenue-ticketing/ui 0.10.0 → 0.12.0-beta.1

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 (225) hide show
  1. package/README.md +47 -0
  2. package/dist/badge-types-B67wcd4m.d.ts +22 -0
  3. package/dist/react/app-store-buttons-outline.d.ts +17 -0
  4. package/dist/react/app-store-buttons-outline.js +582 -0
  5. package/dist/react/app-store-buttons-outline.js.map +1 -0
  6. package/dist/react/app-store-buttons.d.ts +20 -0
  7. package/dist/react/app-store-buttons.js +817 -0
  8. package/dist/react/app-store-buttons.js.map +1 -0
  9. package/dist/react/avatar-label-group.d.ts +14 -0
  10. package/dist/react/avatar-label-group.js +183 -0
  11. package/dist/react/avatar-label-group.js.map +1 -0
  12. package/dist/react/avatar-profile-photo.d.ts +9 -0
  13. package/dist/react/avatar-profile-photo.js +202 -0
  14. package/dist/react/avatar-profile-photo.js.map +1 -0
  15. package/dist/react/avatar.d.ts +66 -40
  16. package/dist/react/avatar.js +159 -149
  17. package/dist/react/avatar.js.map +1 -1
  18. package/dist/react/badge-groups.d.ts +25 -0
  19. package/dist/react/badge-groups.js +162 -0
  20. package/dist/react/badge-groups.js.map +1 -0
  21. package/dist/react/badge.d.ts +123 -59
  22. package/dist/react/badge.js +314 -86
  23. package/dist/react/badge.js.map +1 -1
  24. package/dist/react/button-group.d.ts +43 -0
  25. package/dist/react/button-group.js +108 -0
  26. package/dist/react/button-group.js.map +1 -0
  27. package/dist/react/button-utility.d.ts +47 -0
  28. package/dist/react/button-utility.js +158 -0
  29. package/dist/react/button-utility.js.map +1 -0
  30. package/dist/react/button.d.ts +112 -37
  31. package/dist/react/button.js +270 -55
  32. package/dist/react/button.js.map +1 -1
  33. package/dist/react/checkbox.d.ts +25 -8
  34. package/dist/react/checkbox.js +112 -110
  35. package/dist/react/checkbox.js.map +1 -1
  36. package/dist/react/close-button.d.ts +25 -0
  37. package/dist/react/close-button.js +54 -0
  38. package/dist/react/close-button.js.map +1 -0
  39. package/dist/react/combobox.d.ts +17 -0
  40. package/dist/react/combobox.js +322 -0
  41. package/dist/react/combobox.js.map +1 -0
  42. package/dist/react/dialog.d.ts +15 -15
  43. package/dist/react/dialog.js +43 -108
  44. package/dist/react/dialog.js.map +1 -1
  45. package/dist/react/dropdown-account-breadcrumb.d.ts +5 -0
  46. package/dist/react/dropdown-account-breadcrumb.js +319 -0
  47. package/dist/react/dropdown-account-breadcrumb.js.map +1 -0
  48. package/dist/react/dropdown-account-button.d.ts +5 -0
  49. package/dist/react/dropdown-account-button.js +773 -0
  50. package/dist/react/dropdown-account-button.js.map +1 -0
  51. package/dist/react/dropdown-account-card-md.d.ts +5 -0
  52. package/dist/react/dropdown-account-card-md.js +549 -0
  53. package/dist/react/dropdown-account-card-md.js.map +1 -0
  54. package/dist/react/dropdown-account-card-sm.d.ts +5 -0
  55. package/dist/react/dropdown-account-card-sm.js +527 -0
  56. package/dist/react/dropdown-account-card-sm.js.map +1 -0
  57. package/dist/react/dropdown-account-card-xs.d.ts +5 -0
  58. package/dist/react/dropdown-account-card-xs.js +507 -0
  59. package/dist/react/dropdown-account-card-xs.js.map +1 -0
  60. package/dist/react/dropdown-avatar.d.ts +5 -0
  61. package/dist/react/dropdown-avatar.js +790 -0
  62. package/dist/react/dropdown-avatar.js.map +1 -0
  63. package/dist/react/dropdown-button-advanced.d.ts +5 -0
  64. package/dist/react/dropdown-button-advanced.js +799 -0
  65. package/dist/react/dropdown-button-advanced.js.map +1 -0
  66. package/dist/react/dropdown-button-link.d.ts +5 -0
  67. package/dist/react/dropdown-button-link.js +501 -0
  68. package/dist/react/dropdown-button-link.js.map +1 -0
  69. package/dist/react/dropdown-button-simple.d.ts +5 -0
  70. package/dist/react/dropdown-button-simple.js +754 -0
  71. package/dist/react/dropdown-button-simple.js.map +1 -0
  72. package/dist/react/dropdown-icon-advanced.d.ts +5 -0
  73. package/dist/react/dropdown-icon-advanced.js +543 -0
  74. package/dist/react/dropdown-icon-advanced.js.map +1 -0
  75. package/dist/react/dropdown-icon-simple.d.ts +5 -0
  76. package/dist/react/dropdown-icon-simple.js +505 -0
  77. package/dist/react/dropdown-icon-simple.js.map +1 -0
  78. package/dist/react/dropdown-integration.d.ts +5 -0
  79. package/dist/react/dropdown-integration.js +1325 -0
  80. package/dist/react/dropdown-integration.js.map +1 -0
  81. package/dist/react/dropdown-search-advanced.d.ts +5 -0
  82. package/dist/react/dropdown-search-advanced.js +998 -0
  83. package/dist/react/dropdown-search-advanced.js.map +1 -0
  84. package/dist/react/dropdown-search-simple.d.ts +5 -0
  85. package/dist/react/dropdown-search-simple.js +960 -0
  86. package/dist/react/dropdown-search-simple.js.map +1 -0
  87. package/dist/react/dropdown.d.ts +32 -133
  88. package/dist/react/dropdown.js +404 -1351
  89. package/dist/react/dropdown.js.map +1 -1
  90. package/dist/react/file-upload-trigger.d.ts +34 -0
  91. package/dist/react/file-upload-trigger.js +39 -0
  92. package/dist/react/file-upload-trigger.js.map +1 -0
  93. package/dist/react/form.d.ts +10 -0
  94. package/dist/react/form.js +11 -0
  95. package/dist/react/form.js.map +1 -0
  96. package/dist/react/hint-text.d.ts +17 -0
  97. package/dist/react/hint-text.js +36 -0
  98. package/dist/react/hint-text.js.map +1 -0
  99. package/dist/react/hook-form.d.ts +35 -0
  100. package/dist/react/hook-form.js +50 -0
  101. package/dist/react/hook-form.js.map +1 -0
  102. package/dist/react/input-date.d.ts +43 -0
  103. package/dist/react/input-date.js +306 -0
  104. package/dist/react/input-date.js.map +1 -0
  105. package/dist/react/input-file.d.ts +45 -0
  106. package/dist/react/input-file.js +748 -0
  107. package/dist/react/input-file.js.map +1 -0
  108. package/dist/react/input-group.d.ts +37 -0
  109. package/dist/react/input-group.js +251 -0
  110. package/dist/react/input-group.js.map +1 -0
  111. package/dist/react/input-number.d.ts +32 -0
  112. package/dist/react/input-number.js +553 -0
  113. package/dist/react/input-number.js.map +1 -0
  114. package/dist/react/input-payment.d.ts +16 -0
  115. package/dist/react/input-payment.js +593 -0
  116. package/dist/react/input-payment.js.map +1 -0
  117. package/dist/react/input-tags-outer.d.ts +53 -0
  118. package/dist/react/input-tags-outer.js +607 -0
  119. package/dist/react/input-tags-outer.js.map +1 -0
  120. package/dist/react/input-tags.d.ts +53 -0
  121. package/dist/react/input-tags.js +565 -0
  122. package/dist/react/input-tags.js.map +1 -0
  123. package/dist/react/input.d.ts +71 -22
  124. package/dist/react/input.js +332 -45
  125. package/dist/react/input.js.map +1 -1
  126. package/dist/react/label.d.ts +18 -0
  127. package/dist/react/label.js +112 -0
  128. package/dist/react/label.js.map +1 -0
  129. package/dist/react/multi-select.d.ts +89 -0
  130. package/dist/react/multi-select.js +1036 -0
  131. package/dist/react/multi-select.js.map +1 -0
  132. package/dist/react/pin-input.d.ts +59 -0
  133. package/dist/react/pin-input.js +229 -0
  134. package/dist/react/pin-input.js.map +1 -0
  135. package/dist/react/popover.d.ts +7 -73
  136. package/dist/react/popover.js +23 -569
  137. package/dist/react/popover.js.map +1 -1
  138. package/dist/react/progress-circle.d.ts +9 -0
  139. package/dist/react/progress-circle.js +36 -0
  140. package/dist/react/progress-circle.js.map +1 -0
  141. package/dist/react/progress-circles.d.ts +14 -0
  142. package/dist/react/progress-circles.js +160 -0
  143. package/dist/react/progress-circles.js.map +1 -0
  144. package/dist/react/progress-indicators.d.ts +52 -0
  145. package/dist/react/progress-indicators.js +78 -0
  146. package/dist/react/progress-indicators.js.map +1 -0
  147. package/dist/react/radio-buttons.d.ts +35 -0
  148. package/dist/react/radio-buttons.js +116 -0
  149. package/dist/react/radio-buttons.js.map +1 -0
  150. package/dist/react/scroll-header.d.ts +6 -0
  151. package/dist/react/scroll-header.js +42 -61
  152. package/dist/react/scroll-header.js.map +1 -1
  153. package/dist/react/scroll-wheel.d.ts +4 -5
  154. package/dist/react/scroll-wheel.js +19 -15
  155. package/dist/react/scroll-wheel.js.map +1 -1
  156. package/dist/react/select-item.d.ts +13 -0
  157. package/dist/react/select-item.js +336 -0
  158. package/dist/react/select-item.js.map +1 -0
  159. package/dist/react/select-native.d.ts +17 -0
  160. package/dist/react/select-native.js +203 -0
  161. package/dist/react/select-native.js.map +1 -0
  162. package/dist/react/select.d.ts +18 -61
  163. package/dist/react/select.js +625 -923
  164. package/dist/react/select.js.map +1 -1
  165. package/dist/react/sheet.d.ts +19 -19
  166. package/dist/react/sheet.js +97 -219
  167. package/dist/react/sheet.js.map +1 -1
  168. package/dist/react/slider.d.ts +15 -0
  169. package/dist/react/slider.js +66 -0
  170. package/dist/react/slider.js.map +1 -0
  171. package/dist/react/social-button.d.ts +55 -0
  172. package/dist/react/social-button.js +263 -0
  173. package/dist/react/social-button.js.map +1 -0
  174. package/dist/react/social-logos.d.ts +20 -0
  175. package/dist/react/social-logos.js +131 -0
  176. package/dist/react/social-logos.js.map +1 -0
  177. package/dist/react/switch.d.ts +21 -36
  178. package/dist/react/switch.js +121 -109
  179. package/dist/react/switch.js.map +1 -1
  180. package/dist/react/tag-select.d.ts +44 -0
  181. package/dist/react/tag-select.js +1062 -0
  182. package/dist/react/tag-select.js.map +1 -0
  183. package/dist/react/tags.d.ts +30 -0
  184. package/dist/react/tags.js +228 -0
  185. package/dist/react/tags.js.map +1 -0
  186. package/dist/react/textarea.d.ts +40 -4
  187. package/dist/react/textarea.js +193 -27
  188. package/dist/react/textarea.js.map +1 -1
  189. package/dist/react/tooltip.d.ts +30 -43
  190. package/dist/react/tooltip.js +65 -521
  191. package/dist/react/tooltip.js.map +1 -1
  192. package/dist/select-shared-B3Y5SMXU.d.ts +62 -0
  193. package/package.json +28 -21
  194. package/source.css +2 -12
  195. package/theme.css +883 -79
  196. package/dist/react/calendar.d.ts +0 -13
  197. package/dist/react/calendar.js +0 -4639
  198. package/dist/react/calendar.js.map +0 -1
  199. package/dist/react/card.d.ts +0 -11
  200. package/dist/react/card.js +0 -113
  201. package/dist/react/card.js.map +0 -1
  202. package/dist/react/datetime-picker.d.ts +0 -21
  203. package/dist/react/datetime-picker.js +0 -6142
  204. package/dist/react/datetime-picker.js.map +0 -1
  205. package/dist/react/pagination.d.ts +0 -28
  206. package/dist/react/pagination.js +0 -262
  207. package/dist/react/pagination.js.map +0 -1
  208. package/dist/react/table-pagination.d.ts +0 -15
  209. package/dist/react/table-pagination.js +0 -1247
  210. package/dist/react/table-pagination.js.map +0 -1
  211. package/dist/react/table-view/column-menu.d.ts +0 -15
  212. package/dist/react/table-view/column-menu.js +0 -1049
  213. package/dist/react/table-view/column-menu.js.map +0 -1
  214. package/dist/react/table-view/index.d.ts +0 -70
  215. package/dist/react/table-view/index.js +0 -2284
  216. package/dist/react/table-view/index.js.map +0 -1
  217. package/dist/react/table.d.ts +0 -86
  218. package/dist/react/table.js +0 -414
  219. package/dist/react/table.js.map +0 -1
  220. package/dist/react/tabs.d.ts +0 -34
  221. package/dist/react/tabs.js +0 -423
  222. package/dist/react/tabs.js.map +0 -1
  223. package/dist/react/time-picker.d.ts +0 -22
  224. package/dist/react/time-picker.js +0 -856
  225. package/dist/react/time-picker.js.map +0 -1
@@ -0,0 +1,1036 @@
1
+ import { createContext, useState, useRef, useCallback, useContext, isValidElement, useLayoutEffect } from 'react';
2
+ import { CaretDownIcon } from '@phosphor-icons/react/dist/csr/CaretDown';
3
+ import { MagnifyingGlassIcon } from '@phosphor-icons/react/dist/csr/MagnifyingGlass';
4
+ import { useFilter } from 'react-aria';
5
+ import { DialogTrigger, Button as Button$1, Popover, Dialog, Autocomplete, SearchField, Input, ListBox, Label as Label$1, Text, ListBoxItem, TooltipTrigger as TooltipTrigger$1, Tooltip as Tooltip$1, OverlayArrow, Link } from 'react-aria-components';
6
+ import { extendTailwindMerge } from 'tailwind-merge';
7
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
8
+ import { QuestionIcon } from '@phosphor-icons/react/dist/csr/Question';
9
+ import '@phosphor-icons/react/dist/csr/Eye';
10
+ import '@phosphor-icons/react/dist/csr/EyeSlash';
11
+ import '@phosphor-icons/react/dist/csr/Info';
12
+ import { CheckIcon } from '@phosphor-icons/react/dist/csr/Check';
13
+ import { UserIcon } from '@phosphor-icons/react/dist/csr/User';
14
+ import '@phosphor-icons/react/dist/csr/Plus';
15
+
16
+ var twMerge = extendTailwindMerge({
17
+ extend: {
18
+ theme: {
19
+ text: ["display-xs", "display-sm", "display-md", "display-lg", "display-xl", "display-2xl"]
20
+ }
21
+ }
22
+ });
23
+ var cx = twMerge;
24
+ function sortCx(classes) {
25
+ return classes;
26
+ }
27
+
28
+ // ../../utils/is-react-component.ts
29
+ var isFunctionComponent = (component) => {
30
+ return typeof component === "function";
31
+ };
32
+ var isClassComponent = (component) => {
33
+ return typeof component === "function" && component.prototype && (!!component.prototype.isReactComponent || !!component.prototype.render);
34
+ };
35
+ var isForwardRefComponent = (component) => {
36
+ return typeof component === "object" && component !== null && component.$$typeof.toString() === "Symbol(react.forward_ref)";
37
+ };
38
+ var isReactComponent = (component) => {
39
+ return isFunctionComponent(component) || isForwardRefComponent(component) || isClassComponent(component);
40
+ };
41
+ var focusShadowPlain = "focus-visible:outline-none focus-visible:[box-shadow:0px_0px_0px_2px_var(--color-bg-primary),0px_0px_0px_4px_var(--color-focus-ring)]";
42
+ var focusShadowSkeuomorphic = "focus-visible:outline-none focus-visible:[box-shadow:var(--shadow-xs-skeuomorphic),0px_0px_0px_2px_var(--color-bg-primary),0px_0px_0px_4px_var(--color-focus-ring)]";
43
+ var skeuomorphicGradientBorderClass = [
44
+ "ring-1 ring-inset ring-transparent",
45
+ "before:pointer-events-none before:absolute before:inset-px before:rounded-[inherit] before:border before:border-[#ffffff1f] before:content-['']",
46
+ "before:[mask-image:linear-gradient(to_bottom,#000,transparent)]"
47
+ ].join(" ");
48
+ var skeuomorphicShadowClass = ["shadow-xs-skeuomorphic", focusShadowSkeuomorphic, "overflow-hidden"].join(" ");
49
+ var focusShadowSecondary = "focus-visible:outline-none focus-visible:[box-shadow:0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_2px_var(--color-bg-primary),0px_0px_0px_4px_var(--color-focus-ring)]";
50
+ var secondaryInnerShadow = "after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:content-[''] after:[box-shadow:inset_0px_-1px_0px_0px_rgba(0,0,0,0.05)]";
51
+ var secondaryShadowClass = ["relative overflow-hidden shadow-xs", secondaryInnerShadow, focusShadowSecondary].join(" ");
52
+ var inputNumberButtonClass = [
53
+ "in-data-number-input:border-0 in-data-number-input:shadow-none in-data-number-input:!rounded-none in-data-number-input:!h-full in-data-number-input:!min-h-0 in-data-number-input:self-stretch in-data-number-input:overflow-hidden",
54
+ "in-data-number-input:before:hidden in-data-number-input:after:hidden",
55
+ "in-data-number-input:focus-visible:outline-none in-data-number-input:focus-visible:shadow-none in-data-number-input:focus-visible:ring-0 in-data-number-input:focus-visible:![box-shadow:none]"
56
+ ].join(" ");
57
+ var inputAddonButtonClass = [
58
+ "in-data-input-wrapper:border-0 in-data-input-wrapper:shadow-none in-data-input-wrapper:!rounded-none in-data-input-wrapper:overflow-hidden",
59
+ "in-data-input-wrapper:in-data-trailing:border-l in-data-input-wrapper:in-data-trailing:border-solid in-data-input-wrapper:in-data-trailing:border-primary",
60
+ "in-data-input-wrapper:in-data-leading:border-r in-data-input-wrapper:in-data-leading:border-solid in-data-input-wrapper:in-data-leading:border-primary",
61
+ "in-data-input-wrapper:group-invalid:in-data-trailing:border-error_subtle in-data-input-wrapper:group-invalid:in-data-leading:border-error_subtle",
62
+ "in-data-input-wrapper:before:hidden in-data-input-wrapper:after:hidden",
63
+ "in-data-input-wrapper:focus-visible:outline-none in-data-input-wrapper:focus-visible:shadow-none in-data-input-wrapper:focus-visible:ring-0 in-data-input-wrapper:focus-visible:![box-shadow:none]"
64
+ ].join(" ");
65
+ var styles = sortCx({
66
+ common: {
67
+ root: [
68
+ "group relative inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-full font-body outline-none before:absolute",
69
+ "font-semibold transition-[color,background-color,border-color,box-shadow,opacity,transform] duration-150 ease-out",
70
+ "pressed:scale-[0.985] pressed:duration-100 pressed:ease-linear motion-reduce:pressed:scale-100",
71
+ "disabled:pointer-events-none disabled:cursor-not-allowed in-data-input-wrapper:disabled:opacity-100",
72
+ inputAddonButtonClass,
73
+ inputNumberButtonClass,
74
+ // Stretch to InputGroup row height; padding/typography follow `data-input-size` on the field (Figma 85:1269).
75
+ "in-data-input-wrapper:!h-full in-data-input-wrapper:!min-h-0 in-data-input-wrapper:self-stretch",
76
+ "in-data-input-wrapper:in-data-[input-size=sm]:gap-1 in-data-input-wrapper:in-data-[input-size=sm]:px-3 in-data-input-wrapper:in-data-[input-size=sm]:py-2 in-data-input-wrapper:in-data-[input-size=sm]:text-sm",
77
+ "in-data-input-wrapper:in-data-[input-size=md]:gap-1 in-data-input-wrapper:in-data-[input-size=md]:px-3.5 in-data-input-wrapper:in-data-[input-size=md]:py-2.5 in-data-input-wrapper:in-data-[input-size=md]:text-sm",
78
+ "in-data-input-wrapper:in-data-[input-size=lg]:gap-1.5 in-data-input-wrapper:in-data-[input-size=lg]:px-4 in-data-input-wrapper:in-data-[input-size=lg]:py-2.5 in-data-input-wrapper:in-data-[input-size=lg]:text-md",
79
+ "*:data-icon:pointer-events-none *:data-icon:shrink-0 *:data-icon:transition-inherit-all"
80
+ ].join(" "),
81
+ icon: "pointer-events-none shrink-0 transition-inherit-all"
82
+ },
83
+ sizes: {
84
+ xs: {
85
+ root: [
86
+ "h-8 min-h-8 gap-1 px-[0.625rem] py-1.5 text-sm data-icon-only:size-8 data-icon-only:min-h-8 data-icon-only:min-w-8 data-icon-only:p-2",
87
+ "in-data-input-wrapper:data-icon-only:p-2.5",
88
+ "*:data-icon:size-4"
89
+ ].join(" "),
90
+ linkRoot: "h-auto min-h-0 gap-1 px-0! py-0! text-sm *:data-text:underline-offset-3"
91
+ },
92
+ sm: {
93
+ root: [
94
+ "h-9 min-h-9 gap-1 px-3 py-2 text-sm data-icon-only:size-9 data-icon-only:min-h-9 data-icon-only:min-w-9 data-icon-only:p-2",
95
+ "in-data-input-wrapper:data-icon-only:p-2.5",
96
+ "*:data-icon:size-5"
97
+ ].join(" "),
98
+ linkRoot: "h-auto min-h-0 gap-1 px-0! py-0! text-sm *:data-text:underline-offset-3"
99
+ },
100
+ md: {
101
+ root: [
102
+ "h-10 min-h-10 gap-1 px-3.5 py-2.5 text-sm data-icon-only:size-10 data-icon-only:min-h-10 data-icon-only:min-w-10 data-icon-only:p-2.5",
103
+ "in-data-input-wrapper:data-icon-only:p-3",
104
+ "*:data-icon:size-5"
105
+ ].join(" "),
106
+ linkRoot: "h-auto min-h-0 gap-1 px-0! py-0! text-sm *:data-text:underline-offset-4"
107
+ },
108
+ lg: {
109
+ root: "h-11 min-h-11 gap-1.5 px-4 py-2.5 text-md data-icon-only:size-11 data-icon-only:min-h-11 data-icon-only:min-w-11 data-icon-only:p-3 *:data-icon:size-5",
110
+ linkRoot: "h-auto min-h-0 gap-1.5 px-0! py-0! text-md *:data-text:underline-offset-4"
111
+ },
112
+ xl: {
113
+ root: "h-12 min-h-12 gap-1.5 px-[1.125rem] py-3 text-md data-icon-only:size-12 data-icon-only:min-h-12 data-icon-only:min-w-12 data-icon-only:p-3 data-icon-only:*:data-icon:size-6 *:data-icon:size-5",
114
+ linkRoot: "h-auto min-h-0 gap-1.5 px-0! py-0! text-md *:data-text:underline-offset-4"
115
+ }
116
+ },
117
+ colors: {
118
+ /** Figma Hierarchy=Primary — dark neutral solid; hover lightens to fg-tertiary_hover (#404040). */
119
+ primary: {
120
+ root: [
121
+ "bg-primary-solid text-white",
122
+ skeuomorphicShadowClass,
123
+ skeuomorphicGradientBorderClass,
124
+ "hover:bg-fg-tertiary_hover dark:hover:bg-quaternary",
125
+ "disabled:opacity-30",
126
+ "data-loading:bg-fg-tertiary_hover dark:data-loading:bg-quaternary",
127
+ "*:data-icon:not([data-icon=loading]):text-white/70"
128
+ ].join(" ")
129
+ },
130
+ /** Figma Hierarchy=Brand — purple solid; hover darkens to bg-brand-solid_hover (#6d28d9). */
131
+ brand: {
132
+ root: [
133
+ "bg-brand-solid text-primary_on-brand",
134
+ skeuomorphicShadowClass,
135
+ skeuomorphicGradientBorderClass,
136
+ "hover:bg-brand-solid_hover",
137
+ "disabled:opacity-50",
138
+ "data-loading:bg-brand-solid_hover",
139
+ "*:data-icon:not([data-icon=loading]):text-primary_on-brand"
140
+ ].join(" ")
141
+ },
142
+ /** Figma Hierarchy=Secondary — border-primary + shadow-xs + skeuomorphic inner rim overlay. */
143
+ secondary: {
144
+ root: [
145
+ "border border-solid border-primary bg-primary text-secondary",
146
+ secondaryShadowClass,
147
+ "hover:bg-primary_hover hover:text-secondary_hover",
148
+ "disabled:opacity-50",
149
+ "data-loading:bg-primary_hover",
150
+ "*:data-icon:text-fg-secondary hover:*:data-icon:text-fg-quaternary_hover"
151
+ ].join(" ")
152
+ },
153
+ /** Figma Hierarchy=Tertiary */
154
+ tertiary: {
155
+ root: [
156
+ "border border-transparent bg-transparent text-tertiary",
157
+ focusShadowPlain,
158
+ "hover:bg-primary_hover hover:text-tertiary_hover",
159
+ "disabled:opacity-50",
160
+ "*:data-icon:text-fg-tertiary hover:*:data-icon:text-fg-quaternary_hover"
161
+ ].join(" ")
162
+ },
163
+ /** Figma Hierarchy=Link color — text + icons share brand-secondary; hover underlines with fg-brand-secondary. */
164
+ "link-color": {
165
+ root: [
166
+ "h-auto min-h-0 border-0 bg-transparent px-0! py-0! text-brand-secondary shadow-none",
167
+ focusShadowPlain,
168
+ "hover:text-brand-secondary_hover",
169
+ "disabled:opacity-50",
170
+ "*:data-text:underline *:data-text:decoration-transparent *:data-text:decoration-solid hover:*:data-text:decoration-fg-brand-secondary"
171
+ ].join(" ")
172
+ },
173
+ /** Figma Hierarchy=Link gray — text + icons share tertiary; hover underlines with fg-quaternary. */
174
+ "link-gray": {
175
+ root: [
176
+ "h-auto min-h-0 border-0 bg-transparent px-0! py-0! text-tertiary shadow-none",
177
+ focusShadowPlain,
178
+ "hover:text-tertiary_hover",
179
+ "disabled:opacity-50",
180
+ "*:data-text:underline *:data-text:decoration-transparent *:data-text:decoration-solid hover:*:data-text:decoration-fg-quaternary"
181
+ ].join(" ")
182
+ },
183
+ "primary-destructive": {
184
+ root: [
185
+ "bg-error-solid text-white",
186
+ skeuomorphicShadowClass,
187
+ skeuomorphicGradientBorderClass,
188
+ "hover:bg-error-solid_hover",
189
+ "disabled:opacity-50",
190
+ "data-loading:bg-error-solid_hover",
191
+ "*:data-icon:not([data-icon=loading]):text-white/70"
192
+ ].join(" ")
193
+ },
194
+ "secondary-destructive": {
195
+ root: [
196
+ "border border-solid border-primary bg-primary text-error-primary",
197
+ secondaryShadowClass,
198
+ "hover:bg-error-primary hover:text-error-primary_hover",
199
+ "disabled:opacity-50",
200
+ "data-loading:bg-error-primary",
201
+ "*:data-icon:text-fg-error-secondary hover:*:data-icon:text-fg-error-primary"
202
+ ].join(" ")
203
+ },
204
+ "tertiary-destructive": {
205
+ root: [
206
+ "border border-transparent bg-transparent text-error-primary",
207
+ focusShadowPlain,
208
+ "hover:bg-error-primary hover:text-error-primary_hover",
209
+ "disabled:opacity-50",
210
+ "*:data-icon:text-fg-error-secondary hover:*:data-icon:text-fg-error-primary"
211
+ ].join(" ")
212
+ },
213
+ /** Figma Hierarchy=Link (destructive) — text + icons share error-primary; hover underlines. */
214
+ "link-destructive": {
215
+ root: [
216
+ "h-auto min-h-0 border-0 bg-transparent px-0! py-0! text-error-primary shadow-none",
217
+ focusShadowPlain,
218
+ "hover:text-error-primary_hover",
219
+ "disabled:opacity-50",
220
+ "*:data-text:underline *:data-text:decoration-transparent *:data-text:decoration-solid hover:*:data-text:decoration-current"
221
+ ].join(" ")
222
+ }
223
+ }
224
+ });
225
+ var Button = ({
226
+ size = "md",
227
+ color = "primary",
228
+ children,
229
+ className,
230
+ noTextPadding,
231
+ iconLeading: IconLeading,
232
+ iconTrailing: IconTrailing,
233
+ isDisabled: disabled,
234
+ isLoading: loading,
235
+ showTextWhileLoading,
236
+ ...props
237
+ }) => {
238
+ const href = "href" in props ? props.href : void 0;
239
+ const isIcon = (IconLeading || IconTrailing) && !children;
240
+ const isLinkType = ["link-gray", "link-color", "link-destructive"].includes(color);
241
+ noTextPadding = isLinkType || noTextPadding;
242
+ const commonChildren = /* @__PURE__ */ jsxs(Fragment, { children: [
243
+ isValidElement(IconLeading) && IconLeading,
244
+ isReactComponent(IconLeading) && /* @__PURE__ */ jsx(IconLeading, { "data-icon": "leading", className: styles.common.icon }),
245
+ loading && /* @__PURE__ */ jsx(
246
+ "svg",
247
+ {
248
+ fill: "none",
249
+ "data-icon": "loading",
250
+ viewBox: "0 0 256 256",
251
+ "aria-hidden": true,
252
+ className: cx(
253
+ styles.common.icon,
254
+ "size-5 animate-spin",
255
+ !showTextWhileLoading && "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"
256
+ ),
257
+ children: /* @__PURE__ */ jsx(
258
+ "path",
259
+ {
260
+ fill: "currentColor",
261
+ d: "M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60,61.46,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20-66.54-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"
262
+ }
263
+ )
264
+ }
265
+ ),
266
+ children && /* @__PURE__ */ jsx("span", { "data-text": true, className: cx("transition-inherit-all", !noTextPadding && !isLinkType && "px-0.5"), children }),
267
+ isValidElement(IconTrailing) && IconTrailing,
268
+ isReactComponent(IconTrailing) && /* @__PURE__ */ jsx(IconTrailing, { "data-icon": "trailing", className: styles.common.icon })
269
+ ] });
270
+ const commonProps = {
271
+ "data-icon-only": isIcon ? true : void 0,
272
+ "data-loading": loading ? true : void 0,
273
+ ...props,
274
+ isDisabled: disabled || loading,
275
+ className: cx(
276
+ styles.common.root,
277
+ styles.sizes[size].root,
278
+ styles.colors[color].root,
279
+ isLinkType && styles.sizes[size].linkRoot,
280
+ (loading || href && (disabled || loading)) && "pointer-events-none",
281
+ loading && (showTextWhileLoading ? "[&>*:not([data-icon=loading]):not([data-text])]:hidden" : "[&>*:not([data-icon=loading])]:invisible"),
282
+ className
283
+ ),
284
+ children: commonChildren
285
+ };
286
+ if ("href" in commonProps) {
287
+ return /* @__PURE__ */ jsx(Link, { ...commonProps, href: disabled || loading ? void 0 : href });
288
+ }
289
+ return /* @__PURE__ */ jsx(Button$1, { ...commonProps, type: commonProps.type || "button", isPending: loading });
290
+ };
291
+ var HintText = ({ isInvalid, className, size = "md", ...props }) => {
292
+ return /* @__PURE__ */ jsx(
293
+ Text,
294
+ {
295
+ ...props,
296
+ slot: isInvalid ? "errorMessage" : "description",
297
+ className: cx(
298
+ "text-sm text-tertiary",
299
+ // Size
300
+ size === "sm" && "text-xs",
301
+ "in-data-[input-size=sm]:text-xs",
302
+ // Invalid state
303
+ isInvalid && "text-error-primary",
304
+ "group-invalid:text-error-primary",
305
+ className
306
+ )
307
+ }
308
+ );
309
+ };
310
+ HintText.displayName = "HintText";
311
+ var Tooltip = ({
312
+ title,
313
+ description,
314
+ children,
315
+ arrow = false,
316
+ delay = 100,
317
+ closeDelay = 0,
318
+ trigger,
319
+ isDisabled,
320
+ isOpen,
321
+ defaultOpen,
322
+ offset = 6,
323
+ crossOffset,
324
+ placement = "top",
325
+ onOpenChange,
326
+ ...tooltipProps
327
+ }) => {
328
+ const isTopOrBottomLeft = ["top left", "top end", "bottom left", "bottom end"].includes(placement);
329
+ const isTopOrBottomRight = ["top right", "top start", "bottom right", "bottom start"].includes(placement);
330
+ const calculatedCrossOffset = isTopOrBottomLeft ? -12 : isTopOrBottomRight ? 12 : 0;
331
+ return /* @__PURE__ */ jsxs(TooltipTrigger$1, { ...{ trigger, delay, closeDelay, isDisabled, isOpen, defaultOpen, onOpenChange }, children: [
332
+ children,
333
+ /* @__PURE__ */ jsx(
334
+ Tooltip$1,
335
+ {
336
+ ...tooltipProps,
337
+ offset,
338
+ placement,
339
+ crossOffset: crossOffset ?? calculatedCrossOffset,
340
+ className: ({ isEntering, isExiting }) => cx(isEntering && "ease-out animate-in", isExiting && "ease-in animate-out"),
341
+ children: ({ isEntering, isExiting }) => /* @__PURE__ */ jsxs(
342
+ "div",
343
+ {
344
+ className: cx(
345
+ "z-50 flex max-w-xs origin-(--trigger-anchor-point) flex-col items-start gap-1 rounded-lg bg-primary-solid px-3 shadow-lg will-change-transform",
346
+ description ? "py-3" : "py-2",
347
+ isEntering && "ease-out animate-in fade-in zoom-in-95 in-placement-left:slide-in-from-right-0.5 in-placement-right:slide-in-from-left-0.5 in-placement-top:slide-in-from-bottom-0.5 in-placement-bottom:slide-in-from-top-0.5",
348
+ isExiting && "ease-in animate-out fade-out zoom-out-95 in-placement-left:slide-out-to-right-0.5 in-placement-right:slide-out-to-left-0.5 in-placement-top:slide-out-to-bottom-0.5 in-placement-bottom:slide-out-to-top-0.5"
349
+ ),
350
+ children: [
351
+ /* @__PURE__ */ jsx("span", { className: "text-xs font-semibold text-white", children: title }),
352
+ description && /* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-tooltip-supporting-text", children: description }),
353
+ arrow && /* @__PURE__ */ jsx(OverlayArrow, { children: /* @__PURE__ */ jsx(
354
+ "svg",
355
+ {
356
+ viewBox: "0 0 100 100",
357
+ className: "size-2.5 fill-bg-primary-solid in-placement-left:-rotate-90 in-placement-right:rotate-90 in-placement-top:rotate-0 in-placement-bottom:rotate-180",
358
+ children: /* @__PURE__ */ jsx("path", { d: "M0,0 L35.858,35.858 Q50,50 64.142,35.858 L100,0 Z" })
359
+ }
360
+ ) })
361
+ ]
362
+ }
363
+ )
364
+ }
365
+ )
366
+ ] });
367
+ };
368
+ var TooltipTrigger = ({ children, className, ...buttonProps }) => {
369
+ return /* @__PURE__ */ jsx(Button$1, { ...buttonProps, className: (values) => cx("h-max w-max outline-hidden", typeof className === "function" ? className(values) : className), children });
370
+ };
371
+ var Label = ({ isInvalid, isRequired, tooltip, tooltipDescription, className, ...props }) => {
372
+ return /* @__PURE__ */ jsxs(
373
+ Label$1,
374
+ {
375
+ "data-label": "true",
376
+ ...props,
377
+ className: cx("flex cursor-default items-center gap-0.5 text-sm font-medium text-secondary", className),
378
+ children: [
379
+ props.children,
380
+ /* @__PURE__ */ jsx(
381
+ "span",
382
+ {
383
+ className: cx(
384
+ "hidden text-brand-tertiary",
385
+ isRequired && "block",
386
+ typeof isRequired === "undefined" && "group-required:block",
387
+ isInvalid && "text-error-primary",
388
+ typeof isInvalid === "undefined" && "group-invalid:text-error-primary"
389
+ ),
390
+ children: "*"
391
+ }
392
+ ),
393
+ tooltip && /* @__PURE__ */ jsx(Tooltip, { title: tooltip, description: tooltipDescription, placement: "top", children: /* @__PURE__ */ jsx(
394
+ TooltipTrigger,
395
+ {
396
+ isDisabled: false,
397
+ className: "cursor-pointer text-fg-quaternary transition duration-200 hover:text-fg-quaternary_hover focus:text-fg-quaternary_hover",
398
+ children: /* @__PURE__ */ jsx(QuestionIcon, { className: "size-4" })
399
+ }
400
+ ) })
401
+ ]
402
+ }
403
+ );
404
+ };
405
+ Label.displayName = "Label";
406
+ var iconsSizes = {
407
+ sm: "*:data-icon:size-4 *:data-icon:stroke-[2.25px]",
408
+ md: "*:data-icon:size-5",
409
+ lg: "*:data-icon:size-6",
410
+ xl: "*:data-icon:size-7"
411
+ };
412
+ var styles2 = sortCx({
413
+ light: {
414
+ base: "rounded-full",
415
+ sizes: {
416
+ sm: "size-8",
417
+ md: "size-10",
418
+ lg: "size-12",
419
+ xl: "size-14"
420
+ },
421
+ colors: {
422
+ brand: "bg-brand-secondary text-featured-icon-light-fg-brand",
423
+ gray: "bg-tertiary text-featured-icon-light-fg-gray",
424
+ error: "bg-error-secondary text-featured-icon-light-fg-error",
425
+ warning: "bg-warning-secondary text-featured-icon-light-fg-warning",
426
+ success: "bg-success-secondary text-featured-icon-light-fg-success"
427
+ }
428
+ },
429
+ gradient: {
430
+ base: "rounded-full text-fg-white before:absolute before:inset-0 before:size-full before:rounded-full before:border before:mask-b-from-0% after:absolute after:block after:rounded-full",
431
+ sizes: {
432
+ sm: "size-8 after:size-6 *:data-icon:size-4",
433
+ md: "size-10 after:size-7 *:data-icon:size-4",
434
+ lg: "size-12 after:size-8 *:data-icon:size-5",
435
+ xl: "size-14 after:size-10 *:data-icon:size-5"
436
+ },
437
+ colors: {
438
+ brand: "before:border-utility-brand-200 before:bg-utility-brand-50 after:bg-brand-solid",
439
+ gray: "before:border-utility-neutral-200 before:bg-utility-neutral-50 after:bg-secondary-solid",
440
+ error: "before:border-utility-red-200 before:bg-utility-red-50 after:bg-error-solid",
441
+ warning: "before:border-utility-yellow-200 before:bg-utility-yellow-50 after:bg-warning-solid",
442
+ success: "before:border-utility-green-200 before:bg-utility-green-50 after:bg-success-solid"
443
+ }
444
+ },
445
+ dark: {
446
+ base: "text-fg-white shadow-xs-skeuomorphic before:absolute before:inset-px before:border before:border-white/12 before:mask-b-from-0%",
447
+ sizes: {
448
+ sm: "size-8 rounded-md before:rounded-[5px]",
449
+ md: "size-10 rounded-lg before:rounded-[7px]",
450
+ lg: "size-12 rounded-[10px] before:rounded-[9px]",
451
+ xl: "size-14 rounded-xl before:rounded-[11px]"
452
+ },
453
+ colors: {
454
+ brand: "bg-brand-solid before:border-utility-brand-200/12",
455
+ gray: "bg-secondary-solid before:border-utility-neutral-200/12",
456
+ error: "bg-error-solid before:border-utility-red-200/12",
457
+ warning: "bg-warning-solid before:border-utility-yellow-200/12",
458
+ success: "bg-success-solid before:border-utility-green-200/12"
459
+ }
460
+ },
461
+ modern: {
462
+ base: "bg-primary shadow-xs-skeuomorphic ring-1 ring-primary ring-inset",
463
+ sizes: {
464
+ sm: "size-8 rounded-md",
465
+ md: "size-10 rounded-lg",
466
+ lg: "size-12 rounded-[10px]",
467
+ xl: "size-14 rounded-xl"
468
+ },
469
+ colors: {
470
+ brand: "text-fg-brand-primary",
471
+ gray: "text-fg-secondary",
472
+ error: "text-fg-error-primary",
473
+ warning: "text-fg-warning-primary",
474
+ success: "text-fg-success-primary"
475
+ }
476
+ },
477
+ "modern-neue": {
478
+ base: [
479
+ "bg-primary_alt ring-1 ring-inset before:absolute before:inset-1",
480
+ // Shadow
481
+ "before:shadow-[0px_1px_2px_0px_rgba(0,0,0,0.1),0px_3px_3px_0px_rgba(0,0,0,0.09),1px_8px_5px_0px_rgba(0,0,0,0.05),2px_21px_6px_0px_rgba(0,0,0,0),0px_0px_0px_1px_rgba(0,0,0,0.08),1px_13px_5px_0px_rgba(0,0,0,0.01),0px_-2px_2px_0px_rgba(0,0,0,0.13)_inset] before:ring-1 before:ring-secondary_alt"
482
+ ].join(" "),
483
+ sizes: {
484
+ sm: "size-8 rounded-[8px] before:rounded-[4px]",
485
+ md: "size-10 rounded-[10px] before:rounded-[6px]",
486
+ lg: "size-12 rounded-[12px] before:rounded-[8px]",
487
+ xl: "size-14 rounded-[14px] before:rounded-[10px]"
488
+ },
489
+ colors: {
490
+ brand: "",
491
+ gray: "text-fg-secondary ring-primary",
492
+ error: "",
493
+ warning: "",
494
+ success: ""
495
+ }
496
+ },
497
+ outline: {
498
+ base: "before:absolute before:rounded-full before:border-2 after:absolute after:rounded-full after:border-2",
499
+ sizes: {
500
+ sm: "size-4 before:size-6 after:size-8.5",
501
+ md: "size-5 before:size-7 after:size-9.5",
502
+ lg: "size-6 before:size-8 after:size-10.5",
503
+ xl: "size-7 before:size-9 after:size-11.5"
504
+ },
505
+ colors: {
506
+ brand: "text-fg-brand-primary before:border-fg-brand-primary/30 after:border-fg-brand-primary/10",
507
+ gray: "text-fg-tertiary before:border-fg-tertiary/30 after:border-fg-tertiary/10",
508
+ error: "text-fg-error-primary before:border-fg-error-primary/30 after:border-fg-error-primary/10",
509
+ warning: "text-fg-warning-primary before:border-fg-warning-primary/30 after:border-fg-warning-primary/10",
510
+ success: "text-fg-success-primary before:border-fg-success-primary/30 after:border-fg-success-primary/10"
511
+ }
512
+ }
513
+ });
514
+ var FeaturedIcon = (props) => {
515
+ const { size = "sm", theme: variant = "light", color = "brand", icon: Icon, ...otherProps } = props;
516
+ return /* @__PURE__ */ jsxs(
517
+ "div",
518
+ {
519
+ ...otherProps,
520
+ "data-featured-icon": true,
521
+ className: cx(
522
+ "relative flex shrink-0 items-center justify-center",
523
+ iconsSizes[size],
524
+ styles2[variant].base,
525
+ styles2[variant].sizes[size],
526
+ styles2[variant].colors[color],
527
+ props.className
528
+ ),
529
+ children: [
530
+ isReactComponent(Icon) && /* @__PURE__ */ jsx(Icon, { "data-icon": true, className: "z-1" }),
531
+ isValidElement(Icon) && /* @__PURE__ */ jsx("div", { className: "z-1", children: Icon }),
532
+ props.children
533
+ ]
534
+ }
535
+ );
536
+ };
537
+ var inputFocusRingShadow = "border-brand ring-1 ring-inset ring-brand";
538
+ var inputErrorFocusRingShadow = "border-error ring-1 ring-inset ring-error";
539
+ createContext({});
540
+ var sizes = {
541
+ xs: "size-1.5",
542
+ sm: "size-2",
543
+ md: "size-2.5",
544
+ lg: "size-3",
545
+ xl: "size-3.5",
546
+ "2xl": "size-4",
547
+ "3xl": "size-4.5",
548
+ "4xl": "size-5"
549
+ };
550
+ var AvatarOnlineIndicator = ({ size, status, className }) => /* @__PURE__ */ jsx(
551
+ "span",
552
+ {
553
+ className: cx(
554
+ "absolute right-0 bottom-0 flex justify-center rounded-full ring-[1.5px] ring-bg-primary",
555
+ status === "online" ? "bg-fg-success-secondary" : "bg-utility-neutral-300",
556
+ sizes[size],
557
+ className
558
+ ),
559
+ style: {
560
+ backgroundImage: "radial-gradient(43.75% 43.75% at 50% 28.75%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.00) 100%), radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.00) 74.66%, rgba(255, 255, 255, 0.18) 100%), radial-gradient(75% 75% at 50% 0%, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.00) 50%, rgba(255, 255, 255, 0.08) 99%, rgba(255, 255, 255, 0.00) 100%)"
561
+ },
562
+ children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 7.2 2.85", fill: "none", className: "mt-[10%] h-[20%] w-[60%]", children: [
563
+ /* @__PURE__ */ jsx(
564
+ "path",
565
+ {
566
+ d: "M7.2 1.83107C7.2 2.84235 5.58823 2.19729 3.6 2.19729C1.61177 2.19729 0 2.84235 0 1.83107C0 0.8198 1.61177 0 3.6 0C5.58823 0 7.2 0.8198 7.2 1.83107Z",
567
+ fill: "url(#reflection-gradient)",
568
+ fillOpacity: "0.4"
569
+ }
570
+ ),
571
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "reflection-gradient", x1: "3.6", y1: "0", x2: "3.6", y2: "2.4", gradientUnits: "userSpaceOnUse", children: [
572
+ /* @__PURE__ */ jsx("stop", { stopColor: "white" }),
573
+ /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "white", stopOpacity: "0.1" })
574
+ ] }) })
575
+ ] })
576
+ }
577
+ );
578
+ var sizes2 = {
579
+ xs: "size-2.5",
580
+ sm: "size-3",
581
+ md: "size-3.5",
582
+ lg: "size-4",
583
+ xl: "size-4.5",
584
+ "2xl": "size-5",
585
+ "3xl": "size-6",
586
+ "4xl": "size-8"
587
+ };
588
+ var VerifiedTick = ({ size, className }) => /* @__PURE__ */ jsxs("svg", { className: cx("z-10 text-utility-blue-500", sizes2[size], className), viewBox: "0 0 10 10", fill: "none", children: [
589
+ /* @__PURE__ */ jsx(
590
+ "path",
591
+ {
592
+ d: "M7.72237 1.77098C7.81734 2.00068 7.99965 2.18326 8.2292 2.27858L9.03413 2.61199C9.26384 2.70714 9.44635 2.88965 9.5415 3.11936C9.63665 3.34908 9.63665 3.60718 9.5415 3.83689L9.20833 4.64125C9.11313 4.87106 9.113 5.12943 9.20863 5.35913L9.54122 6.16325C9.58839 6.27702 9.61268 6.39897 9.6127 6.52214C9.61272 6.6453 9.58847 6.76726 9.54134 6.88105C9.4942 6.99484 9.42511 7.09823 9.33801 7.18531C9.2509 7.27238 9.14749 7.34144 9.03369 7.38854L8.22934 7.72171C7.99964 7.81669 7.81706 7.99899 7.72174 8.22855L7.38833 9.03348C7.29318 9.26319 7.11067 9.4457 6.88096 9.54085C6.65124 9.636 6.39314 9.636 6.16343 9.54085L5.35907 9.20767C5.12935 9.11276 4.87134 9.11295 4.64177 9.20821L3.83684 9.54115C3.60725 9.63608 3.34937 9.636 3.11984 9.54092C2.89032 9.44585 2.70791 9.26356 2.6127 9.03409L2.27918 8.22892C2.18421 7.99923 2.0019 7.81665 1.77235 7.72133L0.967421 7.38792C0.737807 7.29281 0.555355 7.11041 0.460169 6.88083C0.364983 6.65125 0.364854 6.39327 0.45981 6.16359L0.792984 5.35924C0.8879 5.12952 0.887707 4.87151 0.792445 4.64193L0.459749 3.83642C0.41258 3.72265 0.388291 3.60069 0.388272 3.47753C0.388252 3.35436 0.412501 3.2324 0.459634 3.11861C0.506767 3.00482 0.57586 2.90144 0.662965 2.81436C0.75007 2.72728 0.853479 2.65822 0.967283 2.61113L1.77164 2.27795C2.00113 2.18306 2.1836 2.00099 2.27899 1.7717L2.6124 0.966768C2.70755 0.737054 2.89006 0.554547 3.11978 0.459397C3.34949 0.364246 3.60759 0.364246 3.83731 0.459397L4.64166 0.792571C4.87138 0.887487 5.12939 0.887293 5.35897 0.792031L6.16424 0.459913C6.39392 0.364816 6.65197 0.364836 6.88164 0.459968C7.11131 0.555099 7.29379 0.737554 7.38895 0.967208L7.72247 1.77238L7.72237 1.77098Z",
593
+ className: "fill-current"
594
+ }
595
+ ),
596
+ /* @__PURE__ */ jsx(
597
+ "path",
598
+ {
599
+ fillRule: "evenodd",
600
+ clipRule: "evenodd",
601
+ d: "M6.95829 3.68932C7.02509 3.58439 7.04747 3.45723 7.02051 3.3358C6.99356 3.21437 6.91946 3.10862 6.81454 3.04182C6.70961 2.97502 6.58245 2.95264 6.46102 2.97959C6.33959 3.00655 6.23384 3.08064 6.16704 3.18557L4.33141 6.06995L3.49141 5.01995C3.41375 4.92281 3.30069 4.8605 3.17709 4.84673C3.05349 4.83296 2.92949 4.86885 2.83235 4.94651C2.73522 5.02417 2.67291 5.13723 2.65914 5.26083C2.64536 5.38443 2.68125 5.50843 2.75891 5.60557L4.00891 7.16807C4.0555 7.22638 4.11533 7.27271 4.18344 7.30323C4.25154 7.33375 4.32595 7.34757 4.40047 7.34353C4.47499 7.3395 4.54747 7.31773 4.61188 7.28004C4.67629 7.24234 4.73077 7.18981 4.77079 7.12682L6.95829 3.68932Z",
602
+ fill: "white"
603
+ }
604
+ )
605
+ ] });
606
+ var AvatarCount = ({ count, className }) => /* @__PURE__ */ jsx("div", { className: cx("absolute right-0 bottom-0 p-px", className), children: /* @__PURE__ */ jsx("div", { className: "flex size-3.5 items-center justify-center rounded-full bg-fg-error-primary text-center text-[10px] leading-[13px] font-bold text-white", children: count }) });
607
+ var styles3 = {
608
+ xs: { root: "size-6", rootWithBorder: "p-px", initials: "text-xs font-semibold", icon: "size-4" },
609
+ sm: { root: "size-8", rootWithBorder: "p-px", initials: "text-sm font-semibold", icon: "size-5" },
610
+ md: { root: "size-10", rootWithBorder: "p-px", initials: "text-md font-semibold", icon: "size-6" },
611
+ lg: { root: "size-12", rootWithBorder: "p-[1.5px]", initials: "text-lg font-semibold", icon: "size-7" },
612
+ xl: { root: "size-14", rootWithBorder: "p-0.5", initials: "text-xl font-semibold", icon: "size-8" },
613
+ "2xl": { root: "size-16", rootWithBorder: "p-0.5", initials: "text-display-xs font-semibold", icon: "size-8" }
614
+ };
615
+ var Avatar = ({
616
+ size = "md",
617
+ src,
618
+ alt,
619
+ initials,
620
+ placeholder,
621
+ placeholderIcon: PlaceholderIcon,
622
+ border,
623
+ badge,
624
+ status,
625
+ verified,
626
+ count,
627
+ focusable = false,
628
+ rounded = true,
629
+ className,
630
+ contentClassName
631
+ }) => {
632
+ const [isFailed, setIsFailed] = useState(false);
633
+ const canShowImage = src && !isFailed;
634
+ const renderMainContent = () => {
635
+ if (canShowImage) {
636
+ return /* @__PURE__ */ jsx("img", { "data-avatar-img": true, className: "size-full object-cover", src, alt, onError: () => setIsFailed(true) });
637
+ }
638
+ if (initials) {
639
+ return /* @__PURE__ */ jsx("span", { className: cx("text-quaternary", styles3[size].initials), children: initials });
640
+ }
641
+ if (PlaceholderIcon) {
642
+ return /* @__PURE__ */ jsx(PlaceholderIcon, { className: cx("text-fg-quaternary", styles3[size].icon) });
643
+ }
644
+ return placeholder || /* @__PURE__ */ jsx(UserIcon, { className: cx("text-fg-quaternary", styles3[size].icon) });
645
+ };
646
+ const renderBadgeContent = () => {
647
+ if (status) {
648
+ return /* @__PURE__ */ jsx(AvatarOnlineIndicator, { status, size });
649
+ }
650
+ if (verified) {
651
+ return /* @__PURE__ */ jsx(VerifiedTick, { size, className: cx("absolute right-0 bottom-0", size === "xs" && "-right-px -bottom-px") });
652
+ }
653
+ if (count) {
654
+ return /* @__PURE__ */ jsx(AvatarCount, { count });
655
+ }
656
+ return badge;
657
+ };
658
+ return /* @__PURE__ */ jsxs(
659
+ "div",
660
+ {
661
+ "data-avatar": true,
662
+ className: cx(
663
+ "relative inline-flex shrink-0 rounded-[7px]",
664
+ rounded && "rounded-full",
665
+ // Focus styles
666
+ focusable && "outline-none group-focus-visible:[box-shadow:0px_0px_0px_2px_var(--color-bg-primary),0px_0px_0px_4px_var(--color-focus-ring)]",
667
+ border && "ring-1 ring-secondary_alt",
668
+ border && styles3[size].rootWithBorder,
669
+ styles3[size].root,
670
+ className
671
+ ),
672
+ children: [
673
+ /* @__PURE__ */ jsx(
674
+ "div",
675
+ {
676
+ className: cx(
677
+ "relative inline-flex size-full shrink-0 items-center justify-center overflow-hidden rounded-md bg-tertiary outline-[0.5px] -outline-offset-[0.5px] outline-black/16 before:inset-[0.5px]",
678
+ rounded && "rounded-full",
679
+ canShowImage && size !== "xs" && "before:absolute before:inset-0 before:rounded-[inherit] before:border before:border-white/32 before:mask-[linear-gradient(to_bottom,black_0%,transparent_25%,transparent_75%,black_100%)]",
680
+ contentClassName
681
+ ),
682
+ children: renderMainContent()
683
+ }
684
+ ),
685
+ renderBadgeContent()
686
+ ]
687
+ }
688
+ );
689
+ };
690
+ var CHECKBOX_TICK_DELAY_MS = 60;
691
+ var CHECKBOX_TICK_DRAW_MS = 100;
692
+ function CheckboxAnimatedCheckMark({ className }) {
693
+ const pathRef = useRef(null);
694
+ useLayoutEffect(() => {
695
+ const path = pathRef.current;
696
+ if (!path || typeof path.getTotalLength !== "function") return;
697
+ const len = path.getTotalLength();
698
+ if (len <= 0) return;
699
+ path.style.strokeDasharray = `${len}`;
700
+ path.style.strokeDashoffset = `${len}`;
701
+ if (typeof path.animate !== "function") {
702
+ path.style.strokeDashoffset = "0";
703
+ return;
704
+ }
705
+ const anim = path.animate([{ strokeDashoffset: len }, { strokeDashoffset: 0 }], {
706
+ duration: CHECKBOX_TICK_DRAW_MS,
707
+ delay: CHECKBOX_TICK_DELAY_MS,
708
+ easing: "cubic-bezier(0.45, 0, 0.2, 1)",
709
+ fill: "forwards"
710
+ });
711
+ return () => anim.cancel();
712
+ }, []);
713
+ return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 14 14", fill: "none", className: cx("block shrink-0", className), children: /* @__PURE__ */ jsx(
714
+ "path",
715
+ {
716
+ ref: pathRef,
717
+ d: "M2.33325 7L5.24992 9.91667L11.6666 3.5",
718
+ stroke: "currentColor",
719
+ strokeWidth: "2",
720
+ strokeLinecap: "round",
721
+ strokeLinejoin: "round"
722
+ }
723
+ ) });
724
+ }
725
+ var focusRingShadow = "outline-none [box-shadow:0px_0px_0px_2px_var(--color-bg-primary),0px_0px_0px_4px_var(--color-focus-ring)]";
726
+ var CheckboxBase = ({ className, isSelected, isDisabled, isIndeterminate, size = "sm", isFocusVisible = false }) => {
727
+ const isChecked = isSelected || isIndeterminate;
728
+ const iconClassName = size === "sm" ? "size-2.5" : "size-3.5";
729
+ return /* @__PURE__ */ jsxs(
730
+ "div",
731
+ {
732
+ className: cx(
733
+ "relative flex shrink-0 cursor-pointer appearance-none items-center justify-center border border-solid border-primary",
734
+ size === "sm" ? "size-4 rounded-xs" : "size-5 rounded-sm",
735
+ isChecked ? "border-transparent bg-brand-solid" : "bg-primary",
736
+ isDisabled && "cursor-not-allowed opacity-50",
737
+ isDisabled && !isChecked && "bg-tertiary",
738
+ isFocusVisible && !isDisabled && focusRingShadow,
739
+ className
740
+ ),
741
+ children: [
742
+ isIndeterminate && /* @__PURE__ */ jsx(
743
+ "svg",
744
+ {
745
+ "aria-hidden": "true",
746
+ viewBox: "0 0 14 14",
747
+ fill: "none",
748
+ className: cx("pointer-events-none block shrink-0 text-fg-white", iconClassName),
749
+ children: /* @__PURE__ */ jsx("path", { d: "M2.91675 7H11.0834", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
750
+ }
751
+ ),
752
+ isSelected && !isIndeterminate && /* @__PURE__ */ jsx(CheckboxAnimatedCheckMark, { className: cx("pointer-events-none text-fg-white", iconClassName) })
753
+ ]
754
+ }
755
+ );
756
+ };
757
+ CheckboxBase.displayName = "CheckboxBase";
758
+ var sizes3 = {
759
+ sm: {
760
+ root: "py-2 pl-3 pr-2.5 gap-2 *:data-icon:size-4 *:data-icon:stroke-[2.25px]",
761
+ withIcon: "",
762
+ text: "text-sm",
763
+ textContainer: "gap-x-1.5",
764
+ shortcut: "pr-2.5"
765
+ },
766
+ md: { root: "py-2 px-3 gap-2 *:data-icon:size-5", withIcon: "", text: "text-md", textContainer: "gap-x-1.5", shortcut: "pr-2.5" },
767
+ lg: { root: "py-2.5 px-3.5 gap-2 *:data-icon:size-5", withIcon: "", text: "text-md", textContainer: "gap-x-1.5", shortcut: "pr-3" }
768
+ };
769
+ var SelectContext = createContext({ size: "md" });
770
+ var sizes4 = {
771
+ sm: {
772
+ root: "p-2 pr-2.5 gap-2 *:data-icon:size-4 *:data-icon:stroke-[2.25px]",
773
+ text: "text-sm",
774
+ textContainer: "gap-x-1.5",
775
+ check: "size-4 stroke-[2.25px]",
776
+ checkbox: "sm"
777
+ },
778
+ md: {
779
+ root: "p-2 pr-2.5 gap-2 *:data-icon:size-5",
780
+ text: "text-md",
781
+ textContainer: "gap-x-2",
782
+ check: "size-5",
783
+ checkbox: "sm"
784
+ },
785
+ lg: {
786
+ root: "p-2.5 pl-2 gap-2 *:data-icon:size-5",
787
+ text: "text-md",
788
+ textContainer: "gap-x-2",
789
+ check: "size-5",
790
+ checkbox: "md"
791
+ }
792
+ };
793
+ var SelectItem = ({
794
+ label,
795
+ id,
796
+ value,
797
+ avatarUrl,
798
+ supportingText,
799
+ isDisabled,
800
+ icon: Icon,
801
+ className,
802
+ children,
803
+ selectionIndicator = "checkmark",
804
+ selectionIndicatorAlign = "right",
805
+ ...props
806
+ }) => {
807
+ const { size } = useContext(SelectContext);
808
+ const labelOrChildren = label || (typeof children === "string" ? children : "");
809
+ const textValue = supportingText ? labelOrChildren + " " + supportingText : labelOrChildren;
810
+ const isLeft = selectionIndicatorAlign === "left";
811
+ return /* @__PURE__ */ jsx(
812
+ ListBoxItem,
813
+ {
814
+ id,
815
+ value: value ?? {
816
+ id,
817
+ label: labelOrChildren,
818
+ avatarUrl,
819
+ supportingText,
820
+ isDisabled,
821
+ icon: Icon
822
+ },
823
+ textValue,
824
+ isDisabled,
825
+ ...props,
826
+ className: (state) => cx("w-full py-px outline-hidden", size === "sm" ? "px-1" : "px-1.5", typeof className === "function" ? className(state) : className),
827
+ children: (state) => /* @__PURE__ */ jsxs(
828
+ "div",
829
+ {
830
+ className: cx(
831
+ "flex cursor-pointer items-center rounded-md outline-hidden select-none",
832
+ (state.isFocused || state.isHovered || state.isSelected && selectionIndicator !== "checkbox") && "bg-primary_hover",
833
+ state.isDisabled && "cursor-not-allowed opacity-50",
834
+ // Icon styles
835
+ "*:data-icon:shrink-0 *:data-icon:text-fg-quaternary",
836
+ sizes4[size].root
837
+ ),
838
+ children: [
839
+ isLeft && selectionIndicator === "checkbox" && /* @__PURE__ */ jsx(CheckboxBase, { size: sizes4[size].checkbox, isSelected: state.isSelected, isDisabled: state.isDisabled }),
840
+ avatarUrl ? /* @__PURE__ */ jsx(Avatar, { "aria-hidden": "true", size: "xs", src: avatarUrl, alt: label, className: cx(size === "sm" && "size-5") }) : isReactComponent(Icon) ? /* @__PURE__ */ jsx(Icon, { "data-icon": true, "aria-hidden": "true" }) : isValidElement(Icon) ? Icon : null,
841
+ /* @__PURE__ */ jsxs("div", { className: cx("flex w-full min-w-0 flex-1 flex-wrap", sizes4[size].textContainer), children: [
842
+ /* @__PURE__ */ jsx(Text, { slot: "label", className: cx("truncate font-medium whitespace-nowrap text-primary", sizes4[size].text), children: label || (typeof children === "function" ? children(state) : children) }),
843
+ supportingText && /* @__PURE__ */ jsx(Text, { slot: "description", className: cx("whitespace-nowrap text-tertiary", sizes4[size].text), children: supportingText })
844
+ ] }),
845
+ state.isSelected && selectionIndicator === "checkmark" && /* @__PURE__ */ jsx(CheckIcon, { "aria-hidden": "true", className: cx("ml-auto text-fg-brand-primary", sizes4[size].check) }),
846
+ !isLeft && selectionIndicator === "checkbox" && /* @__PURE__ */ jsx(CheckboxBase, { size: sizes4[size].checkbox, isSelected: state.isSelected, isDisabled: state.isDisabled, className: "ml-auto" })
847
+ ]
848
+ }
849
+ )
850
+ }
851
+ );
852
+ };
853
+ var searchSizes = {
854
+ sm: { wrapper: "py-1", root: "px-3 py-2 gap-2 *:data-icon:size-4 *:data-icon:stroke-[2.25px]", text: "text-sm" },
855
+ md: { wrapper: "py-0.5", root: "px-3 py-2 gap-2 *:data-icon:size-5", text: "text-md" },
856
+ lg: { wrapper: "py-0.5", root: "px-3.5 py-2.5 gap-2 *:data-icon:size-5", text: "text-md" }
857
+ };
858
+ var footerButtonSize = {
859
+ sm: "xs",
860
+ md: "sm",
861
+ lg: "sm"
862
+ };
863
+ var popoverMaxHeights = {
864
+ sm: "max-h-68",
865
+ md: "max-h-76",
866
+ lg: "max-h-92"
867
+ };
868
+ var MultiSelectFooter = ({ size = "sm", onReset, onSelectAll, className }) => {
869
+ const btnSize = footerButtonSize[size];
870
+ return /* @__PURE__ */ jsxs("div", { className: cx("flex items-center justify-between border-t border-secondary p-3", className), children: [
871
+ /* @__PURE__ */ jsx(Button, { size: btnSize, color: "secondary", onClick: onReset, children: "Reset" }),
872
+ /* @__PURE__ */ jsx(Button, { size: btnSize, color: "secondary", onClick: onSelectAll, children: "Select all" })
873
+ ] });
874
+ };
875
+ var MultiSelectEmptyState = ({
876
+ title = "No results found",
877
+ description = "Please try a different search term.",
878
+ onClearSearch,
879
+ className
880
+ }) => /* @__PURE__ */ jsxs("div", { className: cx("flex flex-col items-center gap-3 px-4 py-4", className), children: [
881
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-3", children: [
882
+ /* @__PURE__ */ jsx(FeaturedIcon, { icon: MagnifyingGlassIcon, size: "sm", color: "gray", theme: "modern" }),
883
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-0.5 text-center text-sm", children: [
884
+ /* @__PURE__ */ jsx("p", { className: "font-semibold text-primary", children: title }),
885
+ /* @__PURE__ */ jsx("p", { className: "text-tertiary", children: description })
886
+ ] })
887
+ ] }),
888
+ onClearSearch && /* @__PURE__ */ jsx(Button, { size: "sm", color: "link-color", onClick: onClearSearch, children: "Clear search" })
889
+ ] });
890
+ var MultiSelectRoot = ({
891
+ items,
892
+ children,
893
+ size = "md",
894
+ selectedKeys,
895
+ defaultSelectedKeys,
896
+ onSelectionChange,
897
+ isDisabled,
898
+ isRequired,
899
+ isInvalid,
900
+ placeholder = "Select",
901
+ label,
902
+ hint,
903
+ tooltip,
904
+ hideRequiredIndicator,
905
+ popoverClassName,
906
+ className,
907
+ onReset,
908
+ onSelectAll,
909
+ showFooter = true,
910
+ showSearch = true,
911
+ emptyStateTitle,
912
+ emptyStateDescription,
913
+ selectedCountFormatter,
914
+ supportingText
915
+ }) => {
916
+ const { contains } = useFilter({ sensitivity: "base" });
917
+ const [searchValue, setSearchValue] = useState("");
918
+ const triggerRef = useRef(null);
919
+ const [popoverWidth, setPopoverWidth] = useState("");
920
+ const onResize = useCallback(() => {
921
+ if (!triggerRef.current) return;
922
+ const rect = triggerRef.current.getBoundingClientRect();
923
+ setPopoverWidth(rect.width + "px");
924
+ }, []);
925
+ const selectedCount = selectedKeys instanceof Set ? selectedKeys.size : selectedKeys === "all" ? items?.length ?? 0 : 0;
926
+ const hasSelection = selectedCount > 0;
927
+ const handleClearSearch = useCallback(() => {
928
+ setSearchValue("");
929
+ }, []);
930
+ return /* @__PURE__ */ jsx(SelectContext.Provider, { value: { size }, children: /* @__PURE__ */ jsxs("div", { className: cx("flex flex-col gap-1.5", className), children: [
931
+ label && /* @__PURE__ */ jsx(Label, { isRequired: hideRequiredIndicator ? false : isRequired, isInvalid, tooltip, children: label }),
932
+ /* @__PURE__ */ jsxs(DialogTrigger, { children: [
933
+ /* @__PURE__ */ jsx(
934
+ Button$1,
935
+ {
936
+ ref: triggerRef,
937
+ isDisabled,
938
+ onClick: onResize,
939
+ className: (state) => cx(
940
+ "relative flex w-full cursor-pointer items-center rounded-lg border border-solid border-primary bg-primary shadow-xs outline-hidden transition-[border-color,box-shadow] duration-100 ease-linear",
941
+ !isInvalid && (state.isFocusVisible || state.isPressed) && inputFocusRingShadow,
942
+ isInvalid && !state.isFocusVisible && !state.isPressed && "border-error_subtle",
943
+ isInvalid && (state.isFocusVisible || state.isPressed) && inputErrorFocusRingShadow,
944
+ state.isDisabled && "cursor-not-allowed opacity-50"
945
+ ),
946
+ children: /* @__PURE__ */ jsxs(
947
+ "span",
948
+ {
949
+ className: cx(
950
+ "flex w-full items-center truncate text-left",
951
+ sizes3[size].root,
952
+ "*:data-icon:shrink-0 *:data-icon:text-fg-quaternary"
953
+ ),
954
+ children: [
955
+ hasSelection ? /* @__PURE__ */ jsxs("span", { className: cx("flex items-center", sizes3[size].textContainer), children: [
956
+ /* @__PURE__ */ jsx("span", { className: cx("font-medium text-primary", sizes3[size].text), children: selectedCountFormatter ? selectedCountFormatter(selectedCount) : `${selectedCount} selected` }),
957
+ supportingText && /* @__PURE__ */ jsx("span", { className: cx("text-tertiary", sizes3[size].text), children: supportingText })
958
+ ] }) : /* @__PURE__ */ jsx("span", { className: cx("text-placeholder", sizes3[size].text), children: placeholder }),
959
+ /* @__PURE__ */ jsx(
960
+ CaretDownIcon,
961
+ {
962
+ "aria-hidden": "true",
963
+ className: cx("ml-auto shrink-0 text-fg-quaternary", size === "lg" ? "size-5" : "size-4 stroke-[2.25px]")
964
+ }
965
+ )
966
+ ]
967
+ }
968
+ )
969
+ }
970
+ ),
971
+ /* @__PURE__ */ jsx(
972
+ Popover,
973
+ {
974
+ placement: "bottom",
975
+ offset: 4,
976
+ containerPadding: 0,
977
+ style: { width: popoverWidth || void 0 },
978
+ className: (state) => cx(
979
+ "w-(--trigger-width) origin-(--trigger-anchor-point) overflow-hidden rounded-lg bg-primary shadow-lg ring-1 ring-secondary_alt outline-hidden will-change-transform",
980
+ state.isEntering && "duration-150 ease-out animate-in fade-in placement-top:slide-in-from-bottom-0.5 placement-bottom:slide-in-from-top-0.5",
981
+ state.isExiting && "duration-100 ease-in animate-out fade-out placement-top:slide-out-to-bottom-0.5 placement-bottom:slide-out-to-top-0.5",
982
+ popoverClassName
983
+ ),
984
+ children: /* @__PURE__ */ jsxs(Dialog, { className: "outline-hidden", children: [
985
+ /* @__PURE__ */ jsxs(Autocomplete, { filter: contains, inputValue: searchValue, onInputChange: setSearchValue, children: [
986
+ showSearch && /* @__PURE__ */ jsx("div", { className: cx("border-b border-secondary", searchSizes[size].wrapper), children: /* @__PURE__ */ jsx(SearchField, { "aria-label": "Search", value: searchValue, onChange: setSearchValue, autoFocus: true, children: /* @__PURE__ */ jsxs("div", { className: cx("flex items-center", searchSizes[size].root), children: [
987
+ /* @__PURE__ */ jsx(MagnifyingGlassIcon, { "data-icon": true, "aria-hidden": "true", className: "shrink-0 text-fg-quaternary" }),
988
+ /* @__PURE__ */ jsx(
989
+ Input,
990
+ {
991
+ placeholder: "Search",
992
+ className: cx(
993
+ "w-full appearance-none bg-transparent text-primary caret-alpha-black/90 outline-hidden placeholder:text-placeholder",
994
+ searchSizes[size].text
995
+ )
996
+ }
997
+ )
998
+ ] }) }) }),
999
+ /* @__PURE__ */ jsx(
1000
+ ListBox,
1001
+ {
1002
+ "aria-label": label || "Options",
1003
+ items,
1004
+ selectionMode: "multiple",
1005
+ selectedKeys,
1006
+ defaultSelectedKeys,
1007
+ onSelectionChange,
1008
+ renderEmptyState: () => /* @__PURE__ */ jsx(
1009
+ MultiSelectEmptyState,
1010
+ {
1011
+ title: emptyStateTitle,
1012
+ description: emptyStateDescription,
1013
+ onClearSearch: searchValue ? handleClearSearch : void 0
1014
+ }
1015
+ ),
1016
+ className: cx("overflow-y-auto py-1 outline-hidden", popoverMaxHeights[size]),
1017
+ children
1018
+ }
1019
+ )
1020
+ ] }),
1021
+ showFooter && /* @__PURE__ */ jsx(MultiSelectFooter, { size, onReset, onSelectAll })
1022
+ ] })
1023
+ }
1024
+ )
1025
+ ] }),
1026
+ hint && /* @__PURE__ */ jsx(HintText, { isInvalid, className: cx(size === "sm" && "text-xs"), children: hint })
1027
+ ] }) });
1028
+ };
1029
+ var MultiSelect = MultiSelectRoot;
1030
+ MultiSelect.Item = SelectItem;
1031
+ MultiSelect.Footer = MultiSelectFooter;
1032
+ MultiSelect.EmptyState = MultiSelectEmptyState;
1033
+
1034
+ export { MultiSelect };
1035
+ //# sourceMappingURL=multi-select.js.map
1036
+ //# sourceMappingURL=multi-select.js.map