@povio/ui 3.4.0-rc.20 → 3.4.0-rc.22

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 (264) hide show
  1. package/README.md +5 -6
  2. package/dist/components/autocomplete/react-aria.d.ts +1 -0
  3. package/dist/components/autocomplete/react-aria.js +1 -0
  4. package/dist/components/breadcrumb/react-aria.d.ts +1 -0
  5. package/dist/components/breadcrumb/react-aria.js +11 -0
  6. package/dist/components/breadcrumbs/react-aria.d.ts +1 -0
  7. package/dist/components/breadcrumbs/react-aria.js +11 -0
  8. package/dist/components/button/react-aria.d.ts +1 -0
  9. package/dist/components/button/react-aria.js +1 -0
  10. package/dist/components/calendar/react-aria.d.ts +1 -0
  11. package/dist/components/calendar/react-aria.js +1 -0
  12. package/dist/components/calendar-cell/react-aria.d.ts +1 -0
  13. package/dist/components/calendar-cell/react-aria.js +1 -0
  14. package/dist/components/calendar-grid/react-aria.d.ts +1 -0
  15. package/dist/components/calendar-grid/react-aria.js +1 -0
  16. package/dist/components/calendar-grid-body/react-aria.d.ts +1 -0
  17. package/dist/components/calendar-grid-body/react-aria.js +1 -0
  18. package/dist/components/calendar-grid-header/react-aria.d.ts +1 -0
  19. package/dist/components/calendar-grid-header/react-aria.js +1 -0
  20. package/dist/components/calendar-header-cell/react-aria.d.ts +1 -0
  21. package/dist/components/calendar-header-cell/react-aria.js +1 -0
  22. package/dist/components/cell/react-aria.d.ts +1 -0
  23. package/dist/components/cell/react-aria.js +11 -0
  24. package/dist/components/checkbox/react-aria.d.ts +1 -0
  25. package/dist/components/checkbox/react-aria.js +1 -0
  26. package/dist/components/checkbox-group/react-aria.d.ts +1 -0
  27. package/dist/components/checkbox-group/react-aria.js +1 -0
  28. package/dist/components/collection/react-aria.d.ts +1 -0
  29. package/dist/components/collection/react-aria.js +11 -0
  30. package/dist/components/color-area/react-aria.d.ts +1 -0
  31. package/dist/components/color-area/react-aria.js +1 -0
  32. package/dist/components/color-field/react-aria.d.ts +1 -0
  33. package/dist/components/color-field/react-aria.js +1 -0
  34. package/dist/components/color-picker/react-aria.d.ts +1 -0
  35. package/dist/components/color-picker/react-aria.js +1 -0
  36. package/dist/components/color-slider/react-aria.d.ts +1 -0
  37. package/dist/components/color-slider/react-aria.js +1 -0
  38. package/dist/components/color-swatch/react-aria.d.ts +1 -0
  39. package/dist/components/color-swatch/react-aria.js +1 -0
  40. package/dist/components/color-swatch-picker/react-aria.d.ts +5 -0
  41. package/dist/components/color-swatch-picker/react-aria.js +11 -0
  42. package/dist/components/color-swatch-picker-item/react-aria.d.ts +5 -0
  43. package/dist/components/color-swatch-picker-item/react-aria.js +11 -0
  44. package/dist/components/color-thumb/react-aria.d.ts +1 -0
  45. package/dist/components/color-thumb/react-aria.js +1 -0
  46. package/dist/components/color-wheel/react-aria.d.ts +1 -0
  47. package/dist/components/color-wheel/react-aria.js +1 -0
  48. package/dist/components/color-wheel-track/react-aria.d.ts +1 -0
  49. package/dist/components/color-wheel-track/react-aria.js +1 -0
  50. package/dist/components/column/react-aria.d.ts +1 -0
  51. package/dist/components/column/react-aria.js +11 -0
  52. package/dist/components/column-resizer/react-aria.d.ts +1 -0
  53. package/dist/components/column-resizer/react-aria.js +11 -0
  54. package/dist/components/combo-box/react-aria.d.ts +1 -0
  55. package/dist/components/combo-box/react-aria.js +11 -0
  56. package/dist/components/date-field/react-aria.d.ts +1 -0
  57. package/dist/components/date-field/react-aria.js +1 -0
  58. package/dist/components/date-input/react-aria.d.ts +1 -0
  59. package/dist/components/date-input/react-aria.js +1 -0
  60. package/dist/components/date-picker/react-aria.d.ts +1 -0
  61. package/dist/components/date-picker/react-aria.js +1 -0
  62. package/dist/components/date-range-picker/react-aria.d.ts +1 -0
  63. package/dist/components/date-range-picker/react-aria.js +1 -0
  64. package/dist/components/date-segment/react-aria.d.ts +1 -0
  65. package/dist/components/date-segment/react-aria.js +1 -0
  66. package/dist/components/default-collection-renderer/react-aria.d.ts +1 -0
  67. package/dist/components/default-collection-renderer/react-aria.js +1 -0
  68. package/dist/components/dialog/react-aria.d.ts +1 -0
  69. package/dist/components/dialog/react-aria.js +1 -0
  70. package/dist/components/dialog-trigger/react-aria.d.ts +1 -0
  71. package/dist/components/dialog-trigger/react-aria.js +1 -0
  72. package/dist/components/disclosure/react-aria.d.ts +1 -0
  73. package/dist/components/disclosure/react-aria.js +1 -0
  74. package/dist/components/disclosure-group/react-aria.d.ts +1 -0
  75. package/dist/components/disclosure-group/react-aria.js +1 -0
  76. package/dist/components/disclosure-panel/react-aria.d.ts +1 -0
  77. package/dist/components/disclosure-panel/react-aria.js +1 -0
  78. package/dist/components/drop-indicator/react-aria.d.ts +1 -0
  79. package/dist/components/drop-indicator/react-aria.js +1 -0
  80. package/dist/components/drop-zone/react-aria.d.ts +1 -0
  81. package/dist/components/drop-zone/react-aria.js +1 -0
  82. package/dist/components/field-error/react-aria.d.ts +1 -0
  83. package/dist/components/field-error/react-aria.js +1 -0
  84. package/dist/components/file-trigger/react-aria.d.ts +1 -0
  85. package/dist/components/file-trigger/react-aria.js +1 -0
  86. package/dist/components/focusable/react-aria.d.ts +1 -0
  87. package/dist/components/focusable/react-aria.js +1 -0
  88. package/dist/components/form/react-aria.d.ts +1 -0
  89. package/dist/components/form/react-aria.js +1 -0
  90. package/dist/components/grid-list/react-aria.d.ts +1 -0
  91. package/dist/components/grid-list/react-aria.js +11 -0
  92. package/dist/components/grid-list-header/react-aria.d.ts +1 -0
  93. package/dist/components/grid-list-header/react-aria.js +11 -0
  94. package/dist/components/grid-list-item/react-aria.d.ts +1 -0
  95. package/dist/components/grid-list-item/react-aria.js +11 -0
  96. package/dist/components/grid-list-load-more-item/react-aria.d.ts +1 -0
  97. package/dist/components/grid-list-load-more-item/react-aria.js +11 -0
  98. package/dist/components/grid-list-section/react-aria.d.ts +1 -0
  99. package/dist/components/grid-list-section/react-aria.js +11 -0
  100. package/dist/components/group/react-aria.d.ts +1 -0
  101. package/dist/components/group/react-aria.js +1 -0
  102. package/dist/components/header/react-aria.d.ts +1 -0
  103. package/dist/components/header/react-aria.js +11 -0
  104. package/dist/components/heading/react-aria.d.ts +1 -0
  105. package/dist/components/heading/react-aria.js +1 -0
  106. package/dist/components/i18n-provider/react-aria.d.ts +1 -0
  107. package/dist/components/i18n-provider/react-aria.js +1 -0
  108. package/dist/components/input/react-aria.d.ts +1 -0
  109. package/dist/components/input/react-aria.js +1 -0
  110. package/dist/components/keyboard/react-aria.d.ts +1 -0
  111. package/dist/components/keyboard/react-aria.js +1 -0
  112. package/dist/components/label/react-aria.d.ts +1 -0
  113. package/dist/components/label/react-aria.js +1 -0
  114. package/dist/components/link/react-aria.d.ts +1 -0
  115. package/dist/components/link/react-aria.js +1 -0
  116. package/dist/components/list-box/react-aria.d.ts +1 -0
  117. package/dist/components/list-box/react-aria.js +11 -0
  118. package/dist/components/list-box-item/react-aria.d.ts +1 -0
  119. package/dist/components/list-box-item/react-aria.js +11 -0
  120. package/dist/components/list-box-load-more-item/react-aria.d.ts +1 -0
  121. package/dist/components/list-box-load-more-item/react-aria.js +11 -0
  122. package/dist/components/list-box-section/react-aria.d.ts +1 -0
  123. package/dist/components/list-box-section/react-aria.js +11 -0
  124. package/dist/components/menu/react-aria.d.ts +1 -0
  125. package/dist/components/menu/react-aria.js +11 -0
  126. package/dist/components/menu-item/react-aria.d.ts +1 -0
  127. package/dist/components/menu-item/react-aria.js +11 -0
  128. package/dist/components/menu-section/react-aria.d.ts +1 -0
  129. package/dist/components/menu-section/react-aria.js +11 -0
  130. package/dist/components/menu-trigger/react-aria.d.ts +1 -0
  131. package/dist/components/menu-trigger/react-aria.js +1 -0
  132. package/dist/components/meter/react-aria.d.ts +1 -0
  133. package/dist/components/meter/react-aria.js +1 -0
  134. package/dist/components/modal/react-aria.d.ts +1 -0
  135. package/dist/components/modal/react-aria.js +1 -0
  136. package/dist/components/modal-overlay/react-aria.d.ts +1 -0
  137. package/dist/components/modal-overlay/react-aria.js +1 -0
  138. package/dist/components/number-field/react-aria.d.ts +1 -0
  139. package/dist/components/number-field/react-aria.js +1 -0
  140. package/dist/components/overlay-arrow/react-aria.d.ts +1 -0
  141. package/dist/components/overlay-arrow/react-aria.js +1 -0
  142. package/dist/components/popover/react-aria.d.ts +1 -0
  143. package/dist/components/popover/react-aria.js +1 -0
  144. package/dist/components/pressable/react-aria.d.ts +1 -0
  145. package/dist/components/pressable/react-aria.js +1 -0
  146. package/dist/components/progress-bar/react-aria.d.ts +1 -0
  147. package/dist/components/progress-bar/react-aria.js +1 -0
  148. package/dist/components/provider/react-aria.d.ts +1 -0
  149. package/dist/components/provider/react-aria.js +1 -0
  150. package/dist/components/radio/react-aria.d.ts +1 -0
  151. package/dist/components/radio/react-aria.js +1 -0
  152. package/dist/components/radio-group/react-aria.d.ts +1 -0
  153. package/dist/components/radio-group/react-aria.js +1 -0
  154. package/dist/components/range-calendar/react-aria.d.ts +1 -0
  155. package/dist/components/range-calendar/react-aria.js +1 -0
  156. package/dist/components/resizable-table-container/react-aria.d.ts +1 -0
  157. package/dist/components/resizable-table-container/react-aria.js +11 -0
  158. package/dist/components/router-provider/react-aria.d.ts +1 -0
  159. package/dist/components/router-provider/react-aria.js +1 -0
  160. package/dist/components/row/react-aria.d.ts +1 -0
  161. package/dist/components/row/react-aria.js +11 -0
  162. package/dist/components/search-field/react-aria.d.ts +1 -0
  163. package/dist/components/search-field/react-aria.js +1 -0
  164. package/dist/components/section/react-aria.d.ts +1 -0
  165. package/dist/components/section/react-aria.js +11 -0
  166. package/dist/components/select/react-aria.d.ts +1 -0
  167. package/dist/components/select/react-aria.js +11 -0
  168. package/dist/components/select-value/react-aria.d.ts +1 -0
  169. package/dist/components/select-value/react-aria.js +1 -0
  170. package/dist/components/selection-indicator/react-aria.d.ts +1 -0
  171. package/dist/components/selection-indicator/react-aria.js +1 -0
  172. package/dist/components/separator/react-aria.d.ts +1 -0
  173. package/dist/components/separator/react-aria.js +11 -0
  174. package/dist/components/shared-element/react-aria.d.ts +1 -0
  175. package/dist/components/shared-element/react-aria.js +1 -0
  176. package/dist/components/shared-element-transition/react-aria.d.ts +1 -0
  177. package/dist/components/shared-element-transition/react-aria.js +1 -0
  178. package/dist/components/slider/react-aria.d.ts +1 -0
  179. package/dist/components/slider/react-aria.js +1 -0
  180. package/dist/components/slider-output/react-aria.d.ts +1 -0
  181. package/dist/components/slider-output/react-aria.js +1 -0
  182. package/dist/components/slider-thumb/react-aria.d.ts +1 -0
  183. package/dist/components/slider-thumb/react-aria.js +1 -0
  184. package/dist/components/slider-track/react-aria.d.ts +1 -0
  185. package/dist/components/slider-track/react-aria.js +1 -0
  186. package/dist/components/ssr-provider/react-aria.d.ts +1 -0
  187. package/dist/components/ssr-provider/react-aria.js +1 -0
  188. package/dist/components/submenu-trigger/react-aria.d.ts +1 -0
  189. package/dist/components/submenu-trigger/react-aria.js +11 -0
  190. package/dist/components/switch/react-aria.d.ts +1 -0
  191. package/dist/components/switch/react-aria.js +1 -0
  192. package/dist/components/tab/react-aria.d.ts +1 -0
  193. package/dist/components/tab/react-aria.js +11 -0
  194. package/dist/components/tab-list/react-aria.d.ts +1 -0
  195. package/dist/components/tab-list/react-aria.js +11 -0
  196. package/dist/components/tab-panel/react-aria.d.ts +1 -0
  197. package/dist/components/tab-panel/react-aria.js +1 -0
  198. package/dist/components/tab-panels/react-aria.d.ts +1 -0
  199. package/dist/components/tab-panels/react-aria.js +11 -0
  200. package/dist/components/table/react-aria.d.ts +1 -0
  201. package/dist/components/table/react-aria.js +11 -0
  202. package/dist/components/table-body/react-aria.d.ts +1 -0
  203. package/dist/components/table-body/react-aria.js +11 -0
  204. package/dist/components/table-header/react-aria.d.ts +1 -0
  205. package/dist/components/table-header/react-aria.js +11 -0
  206. package/dist/components/table-load-more-item/react-aria.d.ts +1 -0
  207. package/dist/components/table-load-more-item/react-aria.js +11 -0
  208. package/dist/components/tabs/react-aria.d.ts +1 -0
  209. package/dist/components/tabs/react-aria.js +11 -0
  210. package/dist/components/tag/react-aria.d.ts +1 -0
  211. package/dist/components/tag/react-aria.js +11 -0
  212. package/dist/components/tag-group/react-aria.d.ts +1 -0
  213. package/dist/components/tag-group/react-aria.js +11 -0
  214. package/dist/components/tag-list/react-aria.d.ts +1 -0
  215. package/dist/components/tag-list/react-aria.js +11 -0
  216. package/dist/components/text/react-aria.d.ts +1 -0
  217. package/dist/components/text/react-aria.js +1 -0
  218. package/dist/components/text-area/react-aria.d.ts +1 -0
  219. package/dist/components/text-area/react-aria.js +1 -0
  220. package/dist/components/text-field/react-aria.d.ts +1 -0
  221. package/dist/components/text-field/react-aria.js +1 -0
  222. package/dist/components/time-field/react-aria.d.ts +1 -0
  223. package/dist/components/time-field/react-aria.js +1 -0
  224. package/dist/components/toast/react-aria.d.ts +1 -0
  225. package/dist/components/toast/react-aria.js +1 -0
  226. package/dist/components/toast-content/react-aria.d.ts +1 -0
  227. package/dist/components/toast-content/react-aria.js +1 -0
  228. package/dist/components/toast-list/react-aria.d.ts +1 -0
  229. package/dist/components/toast-list/react-aria.js +1 -0
  230. package/dist/components/toast-region/react-aria.d.ts +1 -0
  231. package/dist/components/toast-region/react-aria.js +1 -0
  232. package/dist/components/toggle-button/react-aria.d.ts +1 -0
  233. package/dist/components/toggle-button/react-aria.js +1 -0
  234. package/dist/components/toggle-button-group/react-aria.d.ts +5 -0
  235. package/dist/components/toggle-button-group/react-aria.js +1 -0
  236. package/dist/components/toolbar/react-aria.d.ts +1 -0
  237. package/dist/components/toolbar/react-aria.js +1 -0
  238. package/dist/components/tooltip/react-aria.d.ts +1 -0
  239. package/dist/components/tooltip/react-aria.js +1 -0
  240. package/dist/components/tooltip-trigger/react-aria.d.ts +1 -0
  241. package/dist/components/tooltip-trigger/react-aria.js +1 -0
  242. package/dist/components/tree/react-aria.d.ts +1 -0
  243. package/dist/components/tree/react-aria.js +11 -0
  244. package/dist/components/tree-item/react-aria.d.ts +1 -0
  245. package/dist/components/tree-item/react-aria.js +11 -0
  246. package/dist/components/tree-item-content/react-aria.d.ts +1 -0
  247. package/dist/components/tree-item-content/react-aria.js +11 -0
  248. package/dist/components/tree-load-more-item/react-aria.d.ts +1 -0
  249. package/dist/components/tree-load-more-item/react-aria.js +11 -0
  250. package/dist/components/virtualizer/react-aria.d.ts +1 -0
  251. package/dist/components/virtualizer/react-aria.js +1 -0
  252. package/dist/components/visually-hidden/react-aria.d.ts +1 -0
  253. package/dist/components/visually-hidden/react-aria.js +1 -0
  254. package/package.json +630 -25
  255. package/dist/react-aria/components.d.ts +0 -1
  256. package/dist/react-aria/components.js +0 -1
  257. package/dist/react-aria/hooks.d.ts +0 -1
  258. package/dist/react-aria/hooks.js +0 -1
  259. package/dist/react-aria/index.d.ts +0 -1
  260. package/dist/react-aria/index.js +0 -1
  261. package/dist/react-aria/state.d.ts +0 -1
  262. package/dist/react-aria/state.js +0 -1
  263. package/dist/react-aria/types.d.ts +0 -1
  264. package/dist/react-aria/types.js +0 -0
package/README.md CHANGED
@@ -25,16 +25,15 @@ The broad `@povio/ui`, `@povio/ui/rhf`, and `@povio/ui/tanstack` entries remain
25
25
 
26
26
  Feature dependencies are optional peers. Install the matching packages when using date/calendar entries, `@povio/ui/tanstack/table`, RHF/TanStack Form inputs, or the text editor. Basic components such as Button, Typography, and Modal do not require table, drag-and-drop, calendar, or TipTap packages.
27
27
 
28
- React Aria is an internal `@povio/ui` dependency and does not need to be installed separately. Povio component entries include the React Aria implementation they use. For custom components, the supported React Aria APIs and their original types are available through opt-in escape-hatch entries:
28
+ React Aria is an internal `@povio/ui` dependency and does not need to be installed separately. Povio component entries include the React Aria implementation they use. Component-scoped escape-hatch entries expose only the corresponding React Aria primitive and its types for custom implementations:
29
29
 
30
30
  ```tsx
31
- import { Button, type ButtonProps } from "@povio/ui/react-aria";
32
- import { useButton, type AriaButtonProps } from "@povio/ui/react-aria/hooks";
33
- import { useToggleState } from "@povio/ui/react-aria/state";
34
- import type { PressEvent } from "@povio/ui/react-aria/types";
31
+ import { Link, type LinkProps } from "@povio/ui/link/react-aria";
35
32
  ```
36
33
 
37
- `@povio/ui/react-aria/components` is an explicit alias for the component entry. Importing these escape-hatch entries opts into the corresponding upstream React Aria surface; ordinary Povio component imports do not.
34
+ Every public React Aria component has a matching `@povio/ui/<component>/react-aria` entry, including primitives that do not have a Povio wrapper. Compound controls are split into their individual pieces—for example, `@povio/ui/table-header/react-aria` and `@povio/ui/slider-thumb/react-aria` are independent entries.
35
+
36
+ Each emitted entry is independently bundled and tree-shaken; it does not forward React Aria's aggregate barrel or share a generated aggregate chunk with unrelated controls. Ordinary Povio component imports do not include the escape-hatch entries.
38
37
 
39
38
  ## Versioning
40
39
 
@@ -0,0 +1 @@
1
+ export { Autocomplete, type AutocompleteProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useCallback as r,useContext as i,useEffect as a,useMemo as o,useReducer as s,useRef as c,useState as l}from"react";import{CLEAR_FOCUS_EVENT as u,FOCUS_EVENT as d,getActiveElement as f,getOwnerDocument as p,getOwnerWindow as m,isAndroid as ee,isCtrlKeyPressed as te,isIOS as ne,isMac as h,isVirtualClick as g,mergeProps as _,mergeRefs as v,openLink as y,useEffectEvent as b,useEvent as re,useId as ie,useLabels as ae,useLayoutEffect as x,useObjectRef as oe}from"@react-aria/utils";import{useLocalizedStringFormatter as se}from"@react-aria/i18n";import{dispatchVirtualBlur as S,dispatchVirtualFocus as C,getVirtuallyFocusedElement as ce,moveVirtualFocus as le}from"@react-aria/focus";t(null),t(null),t(null),t(null),t(null),t({});const w=t(null),T=t(null),E=Symbol(`default`);function D({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function O(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||E;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function ue(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function k(t,n,r){let{render:i,...a}=n,s=c(null),l=o(()=>v(r,s),[r,s]);x(()=>{},[t,i]);let u={...a,ref:l};return i?i(u,void 0):e.createElement(t,u)}const A={};new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=A[t];return r||(r=n(k.bind(null,t)),A[t]=r),r}});let j=null,M=`keyboard`;const N=new Set;let P=new Map,F=!1,I=!1;function L(e,t){for(let n of N)n(e,t)}function R(e){return!(e.metaKey||!h()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function z(e){F=!0,!y.isOpening&&R(e)&&(j=`keyboard`,M=`keyboard`,L(`keyboard`,e))}function B(e){j=`pointer`,M=`pointerType`in e?e.pointerType:`mouse`,(e.type===`mousedown`||e.type===`pointerdown`)&&(F=!0,L(`pointer`,e))}function V(e){!y.isOpening&&g(e)&&(F=!0,j=`virtual`,M=`virtual`)}function H(e){e.target===window||e.target===document||!e.isTrusted||(!F&&!I&&(j=`virtual`,M=`virtual`,L(`virtual`,e)),F=!1,I=!1)}function U(){F=!1,I=!0}function W(e){if(typeof window>`u`||typeof document>`u`||P.get(m(e)))return;let t=m(e),n=p(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){F=!0,r.apply(this,arguments)},n.addEventListener(`keydown`,z,!0),n.addEventListener(`keyup`,z,!0),n.addEventListener(`click`,V,!0),t.addEventListener(`focus`,H,!0),t.addEventListener(`blur`,U,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,B,!0),n.addEventListener(`pointermove`,B,!0),n.addEventListener(`pointerup`,B,!0)),t.addEventListener(`beforeunload`,()=>{G(e)},{once:!0}),P.set(t,{focus:r})}const G=(e,t)=>{let n=m(e),r=p(e);t&&r.removeEventListener(`DOMContentLoaded`,t),P.has(n)&&(n.HTMLElement.prototype.focus=P.get(n).focus,r.removeEventListener(`keydown`,z,!0),r.removeEventListener(`keyup`,z,!0),r.removeEventListener(`click`,V,!0),n.removeEventListener(`focus`,H,!0),n.removeEventListener(`blur`,U,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,B,!0),r.removeEventListener(`pointermove`,B,!0),r.removeEventListener(`pointerup`,B,!0)),P.delete(n))};function K(e){let t=p(e),n;return t.readyState===`loading`?(n=()=>{W(e)},t.addEventListener(`DOMContentLoaded`,n)):W(e),()=>G(e,n)}typeof document<`u`&&K();function de(){return j}function fe(){return M}const q=typeof document<`u`?e.useInsertionEffect??e.useLayoutEffect:()=>{};function J(e,t,n){let[i,o]=l(e||t),u=c(i),d=c(e!==void 0),f=e!==void 0;a(()=>{d.current,d.current=f},[f]);let p=f?e:i;q(()=>{u.current=p});let[,m]=s(()=>({}),{});return[p,r((e,...t)=>{let r=typeof e==`function`?e(u.current):e;Object.is(u.current,r)||(u.current=r,o(r),m(),n?.(r,...t))},[n])]}var Y={};Y={collectionLabel:`مقترحات`};var X={};X={collectionLabel:`Предложения`};var Z={};Z={collectionLabel:`Návrhy`};var Q={};Q={collectionLabel:`Forslag`};var pe={};pe={collectionLabel:`Empfehlungen`};var me={};me={collectionLabel:`Προτάσεις`};var $={};$={collectionLabel:`Suggestions`};var he={};he={collectionLabel:`Sugerencias`};var ge={};ge={collectionLabel:`Soovitused`};var _e={};_e={collectionLabel:`Ehdotukset`};var ve={};ve={collectionLabel:`Suggestions`};var ye={};ye={collectionLabel:`הצעות`};var be={};be={collectionLabel:`Prijedlozi`};var xe={};xe={collectionLabel:`Javaslatok`};var Se={};Se={collectionLabel:`Suggerimenti`};var Ce={};Ce={collectionLabel:`候補`};var we={};we={collectionLabel:`제안`};var Te={};Te={collectionLabel:`Pasiūlymai`};var Ee={};Ee={collectionLabel:`Ieteikumi`};var De={};De={collectionLabel:`Forslag`};var Oe={};Oe={collectionLabel:`Suggesties`};var ke={};ke={collectionLabel:`Sugestie`};var Ae={};Ae={collectionLabel:`Sugestões`};var je={};je={collectionLabel:`Sugestões`};var Me={};Me={collectionLabel:`Sugestii`};var Ne={};Ne={collectionLabel:`Предложения`};var Pe={};Pe={collectionLabel:`Návrhy`};var Fe={};Fe={collectionLabel:`Predlogi`};var Ie={};Ie={collectionLabel:`Predlozi`};var Le={};Le={collectionLabel:`Förslag`};var Re={};Re={collectionLabel:`Öneriler`};var ze={};ze={collectionLabel:`Пропозиції`};var Be={};Be={collectionLabel:`建议`};var Ve={};Ve={collectionLabel:`建議`};var He={};He={"ar-AE":Y,"bg-BG":X,"cs-CZ":Z,"da-DK":Q,"de-DE":pe,"el-GR":me,"en-US":$,"es-ES":he,"et-EE":ge,"fi-FI":_e,"fr-FR":ve,"he-IL":ye,"hr-HR":be,"hu-HU":xe,"it-IT":Se,"ja-JP":Ce,"ko-KR":we,"lt-LT":Te,"lv-LV":Ee,"nb-NO":De,"nl-NL":Oe,"pl-PL":ke,"pt-BR":Ae,"pt-PT":je,"ro-RO":Me,"ru-RU":Ne,"sk-SK":Pe,"sl-SI":Fe,"sr-SP":Ie,"sv-SE":Le,"tr-TR":Re,"uk-UA":ze,"zh-CN":Be,"zh-TW":Ve};function Ue(e){return e&&e.__esModule?e.default:e}function We(e,t){let{inputRef:n,collectionRef:i,filter:s,disableAutoFocusFirst:m=!1,disableVirtualFocus:h=!1}=e,g=ie(),y=c(void 0),w=c(!1),T=c(null),E=de()===`virtual`&&(ne()||ee()),[D,O]=l(!E&&!h),[ue,k]=l(!1);a(()=>()=>clearTimeout(y.current),[]);let A=b(e=>{!e.isTrusted&&D&&n.current&&f(p(n.current))!==n.current&&fe()!==`touch`&&n.current.focus();let r=e.target;e.isTrusted||!r||T.current===r.id||(clearTimeout(y.current),r===i.current?T.current&&!document.getElementById(T.current)&&(T.current=null,t.setFocusedNodeId(null)):w.current?(T.current=r.id,y.current=setTimeout(()=>{t.setFocusedNodeId(r.id)},500)):(T.current=r.id,t.setFocusedNodeId(r.id)),w.current=!1)}),[j,M]=l(null),N=r(e=>{M(e),e==null?k(!1):(e.getAttribute(`tabindex`)!=null&&O(!1),k(!0))},[]);x(()=>(j?.addEventListener(`focusin`,A),()=>{j?.removeEventListener(`focusin`,A)}),[j]);let P=oe(o(()=>v(i,N),[i,N])),F=r(()=>{var e;w.current=!0,(e=i.current)==null||e.dispatchEvent(new CustomEvent(d,{cancelable:!0,bubbles:!0,detail:{focusStrategy:`first`}}))},[i]),I=r(e=>{var n;le(f()),T.current=null,t.setFocusedNodeId(null);let r=new CustomEvent(u,{cancelable:!0,bubbles:!0,detail:{clearFocusKey:e}});clearTimeout(y.current),w.current=!1,(n=i.current)==null||n.dispatchEvent(r)},[i,t]),L=c(``);re(n,`input`,e=>{let{inputType:t}=e;L.current=t});let R=e=>{L.current===`insertText`&&!m?F():L.current&&(L.current.includes(`insert`)||L.current.includes(`delete`)||L.current.includes(`history`))&&(I(!0),ce(document)===n.current&&C(n.current,null)),t.setInputValue(e)},z=c(null),B=e=>{if(z.current=e.target,e.nativeEvent.isComposing)return;let t=T.current;switch(e.key){case`a`:if(te(e))return;break;case`Escape`:if(e.isDefaultPrevented())return;break;case` `:return;case`Tab`:`continuePropagation`in e&&e.continuePropagation();return;case`Home`:case`End`:case`PageDown`:case`PageUp`:case`ArrowUp`:case`ArrowDown`:{var n;if((e.key===`Home`||e.key===`End`)&&t==null&&e.shiftKey)return;e.preventDefault();let r=new CustomEvent(d,{cancelable:!0,bubbles:!0});(n=i.current)==null||n.dispatchEvent(r);break}}e.isPropagationStopped()||e.stopPropagation();let r=!0;if(i.current!==null)if(t==null)r=i.current?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1;else{let n=document.getElementById(t);n&&(r=n?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1)}if(r)switch(e.key){case`ArrowLeft`:case`ArrowRight`:I();break;case`Enter`:t!=null&&document.getElementById(t)?.dispatchEvent(new PointerEvent(`click`,e.nativeEvent));break}else e.preventDefault()},V=b(e=>{if(e.target===z.current){var t;e.stopImmediatePropagation();let n=T.current;n==null?(t=i.current)==null||t.dispatchEvent(new KeyboardEvent(e.type,e)):document.getElementById(n)?.dispatchEvent(new KeyboardEvent(e.type,e))}});a(()=>(document.addEventListener(`keyup`,V,!0),()=>{document.removeEventListener(`keyup`,V,!0)}),[]);let H=se(Ue(He),`@react-aria/autocomplete`),U=ae({id:g,"aria-label":H.format(`collectionLabel`)}),W=r((e,n)=>!s||s(e,t.inputValue,n),[t.inputValue,s]),G=e=>{if(!e.isTrusted)return;let t=T.current?document.getElementById(T.current):null;t&&S(t,e.relatedTarget)},K=e=>{if(e.isTrusted&&T.current&&document.getElementById(T.current)){let t=e.target;queueMicrotask(()=>{S(t,i.current),C(i.current,t)})}},q={value:t.inputValue,onChange:R},J={onKeyDown:B,"aria-activedescendant":t.focusedNodeId??void 0,onBlur:G,onFocus:K};return ue&&(q={...q,...D&&J,enterKeyHint:`go`,"aria-controls":g,"aria-autocomplete":`list`,autoCorrect:`off`,spellCheck:`false`,autoComplete:`off`}),{inputProps:q,collectionProps:_(U,{shouldUseVirtualFocus:D,disallowTypeAhead:D}),collectionRef:P,filter:s==null?void 0:W}}function Ge(e){let{onInputChange:t,inputValue:n,defaultInputValue:r=``}=e,i=e=>{t&&t(e)},[a,o]=l(null),[s,c]=J(n,r,i);return{inputValue:s,setInputValue:c,focusedNodeId:a,setFocusedNodeId:o}}const Ke=t(null),qe=t(null);function Je(t){let n=O(Ke,t.slot);t=_(n,t);let{filter:r,disableAutoFocusFirst:i}=t,a=Ge(t),o=c(null),s=c(null),{inputProps:l,collectionProps:u,collectionRef:d,filter:f}=We({...ue(t),filter:r,disableAutoFocusFirst:i,inputRef:o,collectionRef:s},a);return e.createElement(D,{values:[[qe,a],[T,{...l,ref:o}],[w,{...u,filter:f,ref:d}]]},t.children)}export{Je as Autocomplete};
@@ -0,0 +1 @@
1
+ export { Breadcrumb, type BreadcrumbProps, type BreadcrumbRenderProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{createContext as t,forwardRef as n,useCallback as r,useContext as i,useMemo as a,useRef as o}from"react";import{filterDOMProps as s,mergeRefs as c,useLayoutEffect as l}from"@react-aria/utils";import"react-dom";import"react-aria";var u=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),d=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});const f=Symbol(`default`);function p(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return a(()=>{let e,a,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,a=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??i,style:a||s?{...s,...a}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,o,s,c,l])}function m(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||f;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function h(t,n,r){let{render:i,...s}=n,u=o(null),d=a(()=>c(r,u),[r,u]);l(()=>{},[t,i]);let f={...s,ref:d};return i?i(f,void 0):e.createElement(t,f)}const g={},_=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=g[t];return r||(r=n(h.bind(null,t)),g[t]=r),r}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let v=e.createContext(null);var y=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},b=class extends y{filter(e,t,n){let[r,i]=T(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},x=class extends y{};x.type=`header`;var S=class extends y{};S.type=`loader`;var C=class extends b{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};C.type=`item`;var w=class extends b{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};w.type=`section`;function T(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}
2
+ /**
3
+ * @license React
4
+ * use-sync-external-store-shim.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var E=u((e=>{var t=d(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore}));u(((e,t)=>{t.exports=E()}))();const D=t(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const O=t(null);function k(e){var t;return t=class extends y{},t.type=e,t}function A(t,n,a,o,s,c){typeof t==`string`&&(t=k(t));let l=r(e=>{e?.setProps(n,a,t,o,c)},[n,a,o,c,t]),u=i(O);if(u){let r=u.ownerDocument.nodesByProps.get(n);return r||(r=u.ownerDocument.createElement(t.type),r.setProps(n,a,t,o,c),u.appendChild(r),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(n,r)),s?e.createElement(O.Provider,{value:r},s):null}return e.createElement(t.type,{ref:l},s)}function j(t,r){let a=({node:e})=>r(e.props,e.props.ref,e),o=n((n,o)=>{let s=i(v);if(!i(D)){if(r.length>=3)throw Error(r.name+` cannot be rendered outside a collection.`);return r(n,o)}return A(t,n,o,`children`in n?n.children:null,null,t=>e.createElement(v.Provider,{value:s},e.createElement(a,{node:t})))});return o.displayName=r.name,o}const M=t(null),N=t(null);var P=class extends y{};P.type=`item`;const F=j(P,function(t,n,r){let i=r.nextKey==null,{isDisabled:a,onAction:o}=m(N),c={"aria-current":i?`page`:null,isDisabled:a||i,onPress:()=>o?.(r.key)},l=p({...r.props,children:r.rendered,values:{isDisabled:a||i,isCurrent:i},defaultClassName:`react-aria-Breadcrumb`}),u=s(t,{global:!0,labelable:!0});return delete u.id,e.createElement(_.li,{...u,...l,ref:n,"data-disabled":a||i||void 0,"data-current":i||void 0},e.createElement(M.Provider,{value:c},l.children))});export{F as Breadcrumb};
@@ -0,0 +1 @@
1
+ export { Breadcrumbs, type BreadcrumbsProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useMemo as s,useRef as c,useState as l}from"react";import{filterDOMProps as u,mergeProps as d,mergeRefs as f,useLayoutEffect as p,useObjectRef as m}from"@react-aria/utils";import{createPortal as h}from"react-dom";import{useBreadcrumbs as g}from"react-aria";var _=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),v=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});const y=Symbol(`default`);function b(e,t){let n=o(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||y;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function x(e,t,n){let{ref:r,...i}=b(n,e.slot)||{},a=m(s(()=>f(t,r),[t,r])),o=d(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(o.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[o,a]}function S(t,n,r){let{render:i,...a}=n,o=c(null),l=s(()=>f(r,o),[r,o]);p(()=>{},[t,i]);let u={...a,ref:l};return i?i(u,void 0):e.createElement(t,u)}const C={},ee=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=C[t];return n||(n=r(S.bind(null,t)),C[t]=n),n}});String(Math.round(Math.random()*1e10));const te=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function ne(){return!1}function re(){return!0}function w(e){return()=>{}}function T(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(w,ne,re):o(te)}var E=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},D=class extends E{filter(e,t,n){let[r,i]=N(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},O=class extends E{};O.type=`header`;var k=class extends E{};k.type=`loader`;var A=class extends D{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};A.type=`item`;var j=class extends D{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};j.type=`section`;var M=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=N(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function N(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}var P=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},F=class e extends P{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof e?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let e=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&e!==t.node.colIndex){let n=t.getMutableNode();n.colIndex=e}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,e[`aria-label`]&&(a[`aria-label`]=e[`aria-label`]),a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},I=class extends P{get isConnected(){return!0}createElement(e){return new F(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof F&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof F?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function L(e){let{children:n,items:r,idScope:i,addIdAndValue:a,dependencies:o=[]}=e,c=s(()=>new WeakMap,o);return s(()=>{if(r&&typeof n==`function`){let e=[];for(let o of r){let r=c.get(o);if(!r){r=n(o);let e=r.props.id??o.key??o.id;if(e==null)throw Error(`Could not determine key for item`);i!=null&&(e=i+`:`+e),r=t(r,a?{key:e,id:e,value:o}:{key:e}),c.set(o,r)}e.push(r)}return e}if(typeof n!=`function`)return n},[n,r,c,i,a])}if(typeof HTMLTemplateElement<`u`){let e=Object.getOwnPropertyDescriptor(Node.prototype,`firstChild`).get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const R=n(!1);function z(t){if(o(R))return e.createElement(e.Fragment,null,t.children);let n=e.createElement(R.Provider,{value:!0},t.children);return e.createElement(`template`,{"data-react-aria-hidden":!0},n)}
2
+ /**
3
+ * @license React
4
+ * use-sync-external-store-shim.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var ie=_((e=>{var t=v(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),B=_(((e,t)=>{t.exports=ie()}))();const V=n(!1),H=n(null);function U(t){if(o(H))return t.content;let{collection:n,document:r}=q(t.createCollection);return e.createElement(e.Fragment,null,e.createElement(z,null,e.createElement(H.Provider,{value:r},t.content)),e.createElement(W,{render:t.children,collection:n}))}function W({collection:e,render:t}){return t(e)}function G(e,t,n){let r=T(),i=c(r);i.current=r;let o=a(()=>i.current?n():t(),[t,n]);return(0,B.useSyncExternalStore)(e,o)}const K=typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore:G;function q(e){let[t]=l(()=>new I(e?.()||new M)),n=a(e=>t.subscribe(e),[t]),r=a(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),i=a(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:K(n,r,i),document:t}}const J=n(null);function Y(e){return L({...e,addIdAndValue:!0})}const X=n(null);function ae(t){let n=o(X),r=(n?.dependencies||[]).concat(t.dependencies),i=t.idScope??n?.idScope,a=Y({...t,idScope:i,dependencies:r});return o(H)&&(a=e.createElement(oe,null,a)),n=s(()=>({dependencies:r,idScope:i}),[i,...r]),e.createElement(X.Provider,{value:n},a)}function oe({children:t}){let n=o(H),r=s(()=>e.createElement(H.Provider,{value:null},e.createElement(V.Provider,{value:!0},t)),[t]);return T()?e.createElement(J.Provider,{value:n},r):h(r,n)}const se={CollectionRoot({collection:e,renderDropIndicator:t}){return Z(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Z(e,t,n)}};function Z(t,n,r){return L({items:n?t.getChildren(n.key):t,dependencies:[r],children(n){let i=n.render(n);return!r||n.type!==`item`?i:e.createElement(e.Fragment,null,r({type:`item`,key:n.key,dropPosition:`before`}),i,Q(t,n,r))}})}function Q(e,n,r){let a=n.key,o=e.getKeyAfter(a),s=o==null?null:e.getItem(o);for(;s!=null&&s.type!==`item`;)o=e.getKeyAfter(s.key),s=o==null?null:e.getItem(o);let c=n.nextKey==null?null:e.getItem(n.nextKey);for(;c!=null&&c.type!==`item`;)c=c.nextKey==null?null:e.getItem(c.nextKey);let l=[];if(c==null){let a=n;for(;a?.type===`item`&&(!s||a.parentKey!==s.parentKey&&s.level<a.level);){let n=r({type:`item`,key:a.key,dropPosition:`after`});i(n)&&l.push(t(n,{key:`${a.key}-after`})),a=a.parentKey==null?null:e.getItem(a.parentKey)}}return l}const ce=n(se),$=n(null),le=r(function(t,n){[t,n]=x(t,n,$);let{CollectionRoot:r}=o(ce),{navProps:i}=g(t),a=u(t,{global:!0,labelable:!0});return e.createElement(U,{content:e.createElement(ae,t)},o=>e.createElement(ee.ol,{render:t.render,ref:n,...d(a,i),slot:t.slot||void 0,style:t.style,className:t.className??`react-aria-Breadcrumbs`},e.createElement($.Provider,{value:t},e.createElement(r,{collection:o}))))});var ue=class extends E{};ue.type=`item`;export{le as Breadcrumbs};
@@ -0,0 +1 @@
1
+ export { Button, type ButtonProps, type ButtonRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useEffect as i,useMemo as a,useRef as o}from"react";import{filterDOMProps as s,mergeProps as c,mergeRefs as l,useLayoutEffect as u,useObjectRef as d}from"@react-aria/utils";import{mergeProps as f,useButton as p,useFocusRing as m,useHover as h,useId as g}from"react-aria";const _=Symbol(`default`);function v(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return a(()=>{let e,a,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,a=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??i,style:a||s?{...s,...a}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,o,s,c,l])}function y(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||_;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function b(e,t,n){let{ref:r,...i}=y(n,e.slot)||{},o=d(a(()=>l(t,r),[t,r])),s=c(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(s.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[s,o]}function x(t,n,r){let{render:i,...s}=n,c=o(null),d=a(()=>l(r,c),[r,c]);u(()=>{},[t,i]);let f={...s,ref:d};return i?i(f,void 0):e.createElement(t,f)}const S={},C=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=S[t];return r||(r=n(x.bind(null,t)),S[t]=r),r}}),w=7e3;let T=null;function E(e,t=`assertive`,n=w){T?T.announce(e,t,n):(T=new D,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?T.announce(e,t,n):setTimeout(()=>{T?.isAttached()&&T?.announce(e,t,n)},100))}var D=class{isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=w){var r,i;if(!this.node)return;let a=document.createElement(`div`);typeof e==`object`?(a.setAttribute(`role`,`img`),a.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):a.textContent=e,t===`assertive`?(r=this.assertiveLog)==null||r.appendChild(a):(i=this.politeLog)==null||i.appendChild(a),e!==``&&setTimeout(()=>{a.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};if(typeof HTMLTemplateElement<`u`){let e=Object.getOwnPropertyDescriptor(Node.prototype,`firstChild`).get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const O=t(!1);function k(e){let t=(t,n)=>r(O)?null:e(t,n);return t.displayName=e.displayName||e.name,n(t)}const A=t(null),j=t({}),M=k(function(t,n){[t,n]=b(t,n,j);let r=t,{isPending:a}=r,{buttonProps:c,isPressed:l}=p(t,n);c=N(c,a);let{focusProps:u,isFocused:d,isFocusVisible:_}=m(t),{hoverProps:y,isHovered:x}=h({...t,isDisabled:t.isDisabled||a}),S={isHovered:x,isPressed:(r.isPressed||l)&&!a,isFocused:d,isFocusVisible:_,isDisabled:t.isDisabled||!1,isPending:a??!1},w=v({...t,values:S,defaultClassName:`react-aria-Button`}),T=g(c.id),D=g(),O=c[`aria-labelledby`];a&&(O?O=`${O} ${D}`:c[`aria-label`]&&(O=`${T} ${D}`));let k=o(a);i(()=>{let e={"aria-labelledby":O||T};(!k.current&&d&&a||k.current&&d&&!a)&&E(e,`assertive`),k.current=a},[a,d,O,T]);let M=s(t,{global:!0});return delete M.onClick,e.createElement(C.button,{...f(M,w,c,u,y),type:c.type===`submit`&&a?`button`:c.type,id:T,ref:n,"aria-labelledby":O,slot:t.slot||void 0,"aria-disabled":a?`true`:c[`aria-disabled`],"data-disabled":t.isDisabled||void 0,"data-pressed":S.isPressed||void 0,"data-hovered":x||void 0,"data-focused":d||void 0,"data-pending":a||void 0,"data-focus-visible":_||void 0},e.createElement(A.Provider,{value:{id:D}},w.children))});function N(e,t){if(t){for(let t in e)t.startsWith(`on`)&&!(t.includes(`Focus`)||t.includes(`Blur`))&&(e[t]=void 0);e.href=void 0,e.target=void 0}return e}export{M as Button};
@@ -0,0 +1 @@
1
+ export { Calendar, type CalendarProps, type CalendarRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeProps as s,mergeRefs as c,useLayoutEffect as l,useObjectRef as u}from"@react-aria/utils";import{VisuallyHidden as d,mergeProps as f,useCalendar as p,useLocale as m}from"react-aria";import{createCalendar as h}from"@internationalized/date";import{useCalendarState as g}from"react-stately";t(null),t(null),t(null),t(null),t(null);const _=t({});t(null),t(null);const v=Symbol(`default`);function y({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function b(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function x(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||v;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function S(e,t,n){let{ref:r,...a}=x(n,e.slot)||{},o=u(i(()=>c(t,r),[t,r])),l=s(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(l.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[l,o]}function C(t,n,r){let{render:o,...s}=n,u=a(null),d=i(()=>c(r,u),[r,u]);l(()=>{},[t,o]);let f={...s,ref:d};return o?o(f,void 0):e.createElement(t,f)}const w={},T=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=w[t];return r||(r=n(C.bind(null,t)),w[t]=r),r}}),E=t({}),D=t({}),O=t(null),k=t(null),A=n(function(t,n){[t,n]=S(t,n,O);let{locale:r}=m(),i=g({...t,locale:r,createCalendar:t.createCalendar||h}),{calendarProps:a,prevButtonProps:s,nextButtonProps:c,errorMessageProps:l,title:u}=p(t,i),v=b({...t,values:{state:i,isDisabled:t.isDisabled||!1,isInvalid:i.isValueInvalid},defaultClassName:`react-aria-Calendar`}),x=o(t,{global:!0});return e.createElement(T.div,{...f(x,v,a),ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":i.isValueInvalid||void 0},e.createElement(y,{values:[[E,{slots:{previous:s,next:c}}],[_,{"aria-hidden":!0,level:2,children:u}],[k,i],[O,t],[D,{slots:{errorMessage:l}}]]},e.createElement(d,null,e.createElement(`h2`,null,a[`aria-label`])),v.children,e.createElement(d,null,e.createElement(`button`,{"aria-label":c[`aria-label`],disabled:c.isDisabled,onClick:()=>i.focusNextPage(),tabIndex:-1}))))});export{A as Calendar};
@@ -0,0 +1 @@
1
+ export { CalendarCell, type CalendarCellProps, type CalendarCellRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeRefs as s,useLayoutEffect as c}from"@react-aria/utils";import{mergeProps as l,useCalendarCell as u,useFocusRing as d,useHover as f}from"react-aria";import{isSameDay as p,isSameMonth as m,isToday as h}from"@internationalized/date";import"react-stately";function g(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function _(t,n,r){let{render:o,...l}=n,u=a(null),d=i(()=>s(r,u),[r,u]);c(()=>{},[t,o]);let f={...l,ref:d};return o?o(f,void 0):e.createElement(t,f)}const v={},y=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=v[t];return r||(r=n(_.bind(null,t)),v[t]=r),r}}),b=t(null),x=t(null),S=t(null),C=n(function({date:t,...n},i){let s=r(b),c=r(x),_=s??c,{startDate:v}=r(S)??{startDate:_.visibleRange.start},C=!m(v,t),w=h(t,_.timeZone),T=a(null),{cellProps:E,buttonProps:D,...O}=u({date:t,isOutsideMonth:C},_,T),{hoverProps:k,isHovered:A}=f({...n,isDisabled:O.isDisabled}),{focusProps:j,isFocusVisible:M}=d();M&&=O.isFocused;let N=!1,P=!1;`highlightedRange`in _&&_.highlightedRange&&(N=p(t,_.highlightedRange.start),P=p(t,_.highlightedRange.end));let F=g({...n,defaultChildren:O.formattedDate,defaultClassName:`react-aria-CalendarCell`,values:{date:t,isHovered:A,isOutsideMonth:C,isFocusVisible:M,isSelectionStart:N,isSelectionEnd:P,isToday:w,...O}}),I={"data-focused":O.isFocused||void 0,"data-hovered":A||void 0,"data-pressed":O.isPressed||void 0,"data-unavailable":O.isUnavailable||void 0,"data-disabled":O.isDisabled||void 0,"data-focus-visible":M||void 0,"data-outside-visible-range":O.isOutsideVisibleRange||void 0,"data-outside-month":C||void 0,"data-selected":O.isSelected||void 0,"data-selection-start":N||void 0,"data-selection-end":P||void 0,"data-invalid":O.isInvalid||void 0,"data-today":w||void 0},L=o(n,{global:!0});return e.createElement(`td`,{...E,ref:i},e.createElement(y.div,{...l(L,D,j,k,I,F),ref:T}))});export{C as CalendarCell};
@@ -0,0 +1 @@
1
+ export { CalendarGrid, type CalendarGridProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeRefs as s,useLayoutEffect as c}from"@react-aria/utils";import{mergeProps as l,useCalendarGrid as u}from"react-aria";import{endOfMonth as d}from"@internationalized/date";import"react-stately";const f=Symbol(`default`);function p(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||f;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function m(t,n,r){let{render:o,...l}=n,u=a(null),d=i(()=>s(r,u),[r,u]);c(()=>{},[t,o]);let f={...l,ref:d};return o?o(f,void 0):e.createElement(t,f)}const h={},g=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=h[t];return r||(r=n(m.bind(null,t)),h[t]=r),r}}),_=t(null),v=t(null),y=t(null),b=t(null),x=t(null),S=n(function(t,n){let i=r(y),a=r(b),s=p(_),c=p(v),f=i??a,m=f.visibleRange.start;t.offset&&(m=m.add(t.offset));let h=s?.firstDayOfWeek??c?.firstDayOfWeek,{gridProps:S,headerProps:C,weekDays:T,weeksInMonth:D}=u({startDate:m,endDate:d(m),weekdayStyle:t.weekdayStyle,firstDayOfWeek:h},f),k=o(t,{global:!0});return e.createElement(x.Provider,{value:{headerProps:C,weekDays:T,startDate:m,weeksInMonth:D}},e.createElement(g.table,{render:t.render,...l(k,S),ref:n,style:t.style,cellPadding:0,className:t.className??`react-aria-CalendarGrid`},typeof t.children==`function`?e.createElement(e.Fragment,null,e.createElement(w,null,t=>e.createElement(E,null,t)),e.createElement(O,null,t.children)):t.children))});function C(t,n){let{children:i,style:a,className:s}=t,{headerProps:c,weekDays:u}=r(x),d=o(t,{global:!0});return e.createElement(g.thead,{render:t.render,...l(d,c),ref:n,style:a,className:s??`react-aria-CalendarGridHeader`},e.createElement(`tr`,null,u.map((t,n)=>e.cloneElement(i(t),{key:n}))))}const w=n(C);function T(t,n){let{children:r,style:i,className:a}=t,s=o(t,{global:!0});return e.createElement(g.th,{render:t.render,...s,ref:n,style:i,className:a||`react-aria-CalendarHeaderCell`},r)}const E=n(T);function D(t,n){let{children:i,style:a,className:s}=t,c=r(y),l=r(b),u=c??l,{startDate:d,weeksInMonth:f}=r(x),p=o(t,{global:!0});return e.createElement(g.tbody,{render:t.render,...p,ref:n,style:a,className:s??`react-aria-CalendarGridBody`},[...Array(f).keys()].map(t=>e.createElement(`tr`,{key:t},u.getDatesInWeek(t,d).map((t,n)=>t?e.cloneElement(i(t),{key:n}):e.createElement(`td`,{key:n})))))}const O=n(D);export{S as CalendarGrid};
@@ -0,0 +1 @@
1
+ export { CalendarGridBody, type CalendarGridBodyProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeRefs as s,useLayoutEffect as c}from"@react-aria/utils";import"react-aria";import"@internationalized/date";import"react-stately";function l(t,n,r){let{render:o,...l}=n,u=a(null),d=i(()=>s(r,u),[r,u]);c(()=>{},[t,o]);let f={...l,ref:d};return o?o(f,void 0):e.createElement(t,f)}const u={},d=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=u[t];return r||(r=n(l.bind(null,t)),u[t]=r),r}}),f=t(null),p=t(null),m=t(null);function h(t,n){let{children:i,style:a,className:s}=t,c=r(f),l=r(p),u=c??l,{startDate:h,weeksInMonth:g}=r(m),_=o(t,{global:!0});return e.createElement(d.tbody,{render:t.render,..._,ref:n,style:a,className:s??`react-aria-CalendarGridBody`},[...Array(g).keys()].map(t=>e.createElement(`tr`,{key:t},u.getDatesInWeek(t,h).map((t,n)=>t?e.cloneElement(i(t),{key:n}):e.createElement(`td`,{key:n})))))}const g=n(h);export{g as CalendarGridBody};
@@ -0,0 +1 @@
1
+ export { CalendarGridHeader, type CalendarGridHeaderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeRefs as s,useLayoutEffect as c}from"@react-aria/utils";import{mergeProps as l}from"react-aria";import"@internationalized/date";import"react-stately";function u(t,n,r){let{render:o,...l}=n,u=a(null),d=i(()=>s(r,u),[r,u]);c(()=>{},[t,o]);let f={...l,ref:d};return o?o(f,void 0):e.createElement(t,f)}const d={},f=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=d[t];return r||(r=n(u.bind(null,t)),d[t]=r),r}}),p=t(null);function m(t,n){let{children:i,style:a,className:s}=t,{headerProps:c,weekDays:u}=r(p),d=o(t,{global:!0});return e.createElement(f.thead,{render:t.render,...l(d,c),ref:n,style:a,className:s??`react-aria-CalendarGridHeader`},e.createElement(`tr`,null,u.map((t,n)=>e.cloneElement(i(t),{key:n}))))}const h=n(m);export{h as CalendarGridHeader};
@@ -0,0 +1 @@
1
+ export { CalendarHeaderCell, type CalendarHeaderCellProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{forwardRef as t,useMemo as n,useRef as r}from"react";import{filterDOMProps as i,mergeRefs as a,useLayoutEffect as o}from"@react-aria/utils";import"react-aria";import"@internationalized/date";import"react-stately";function s(t,i,s){let{render:c,...l}=i,u=r(null),d=n(()=>a(s,u),[s,u]);o(()=>{},[t,c]);let f={...l,ref:d};return c?c(f,void 0):e.createElement(t,f)}const c={},l=new Proxy({},{get(e,n){if(typeof n!=`string`)return;let r=c[n];return r||(r=t(s.bind(null,n)),c[n]=r),r}});function u(t,n){let{children:r,style:a,className:o}=t,s=i(t,{global:!0});return e.createElement(l.th,{render:t.render,...s,ref:n,style:a,className:o||`react-aria-CalendarHeaderCell`},r)}const d=t(u);export{d as CalendarHeaderCell};
@@ -0,0 +1 @@
1
+ export { Cell, type CellProps, type CellRenderProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useMemo as s,useRef as c}from"react";import{filterDOMProps as l,inertValue as u,mergeRefs as d,useLayoutEffect as f,useLoadMoreSentinel as p,useObjectRef as m}from"@react-aria/utils";import"react-dom";import{mergeProps as h,useFocusRing as g,useHover as _,useTableCell as v}from"react-aria";import"react-stately";var y=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),b=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function x(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:c,render:l}=e;return s(()=>{let e,s,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,s=typeof n==`function`?n({...c,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:a}):r??a,{className:e??i,style:s||o?{...o,...s}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,a,o,c,l])}function S(t,n,r){let{render:i,...a}=n,o=c(null),l=s(()=>d(r,o),[r,o]);f(()=>{},[t,i]);let u={...a,ref:l};return i?i(u,void 0):e.createElement(t,u)}const C={},w=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=C[t];return n||(n=r(S.bind(null,t)),C[t]=n),n}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let T=e.createContext(null);var E=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},D=class extends E{filter(e,t,n){let[r,i]=M(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},O=class extends E{};O.type=`header`;var k=class extends E{};k.type=`loader`;var A=class extends D{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};A.type=`item`;var j=class extends D{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};j.type=`section`;function M(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}function N(e){let{children:n,items:r,idScope:i,addIdAndValue:a,dependencies:o=[]}=e,c=s(()=>new WeakMap,o);return s(()=>{if(r&&typeof n==`function`){let e=[];for(let o of r){let r=c.get(o);if(!r){r=n(o);let e=r.props.id??o.key??o.id;if(e==null)throw Error(`Could not determine key for item`);i!=null&&(e=i+`:`+e),r=t(r,a?{key:e,id:e,value:o}:{key:e}),c.set(o,r)}e.push(r)}return e}if(typeof n!=`function`)return n},[n,r,c,i,a])}
2
+ /**
3
+ * @license React
4
+ * use-sync-external-store-shim.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var P=y((e=>{var t=b(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore}));y(((e,t)=>{t.exports=P()}))();const F=n(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const I=n(null);function L(e){var t;return t=class extends E{},t.type=e,t}function R(t,n,r,i,s,c){typeof t==`string`&&(t=L(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(I);if(u){let a=u.ownerDocument.nodesByProps.get(n);return a||(a=u.ownerDocument.createElement(t.type),a.setProps(n,r,t,i,c),u.appendChild(a),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(n,a)),s?e.createElement(I.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function z(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(T);if(!o(F)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return R(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(T.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}const B={CollectionRoot({collection:e,renderDropIndicator:t}){return V(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return V(e,t,n)}};function V(t,n,r){return N({items:n?t.getChildren(n.key):t,dependencies:[r],children(n){let i=n.render(n);return!r||n.type!==`item`?i:e.createElement(e.Fragment,null,r({type:`item`,key:n.key,dropPosition:`before`}),i,H(t,n,r))}})}function H(e,n,r){let a=n.key,o=e.getKeyAfter(a),s=o==null?null:e.getItem(o);for(;s!=null&&s.type!==`item`;)o=e.getKeyAfter(s.key),s=o==null?null:e.getItem(o);let c=n.nextKey==null?null:e.getItem(n.nextKey);for(;c!=null&&c.type!==`item`;)c=c.nextKey==null?null:e.getItem(c.nextKey);let l=[];if(c==null){let a=n;for(;a?.type===`item`&&(!s||a.parentKey!==s.parentKey&&s.level<a.level);){let n=r({type:`item`,key:a.key,dropPosition:`after`});i(n)&&l.push(t(n,{key:`${a.key}-after`})),a=a.parentKey==null?null:e.getItem(a.parentKey)}}return l}const U=n(B),W=n({}),G=n(null);var K=class extends E{};K.type=`tableheader`;var q=class extends E{};q.type=`column`;var J=class extends D{};J.type=`tablebody`;var Y=class extends E{filter(e,t,n){let r=e.getChildren(this.key);for(let i of r)if(n(i.textValue,i)){let n=this.clone();return t.addDescendants(n,e),n}return null}};Y.type=`item`;let X=r(function(t,n){let{isVirtualized:r}=o(U);return r?e.createElement(w.div,{...t,ref:n}):e.createElement(w.tr,{...t,ref:n})});var Z=class extends E{};Z.type=`cell`;let Q=r(function(t,n){let{isVirtualized:r}=o(U);return r?e.createElement(w.div,{...t,ref:n}):e.createElement(w.td,{...t,ref:n})});const $=z(Z,(t,n,r)=>{let i=m(n),a=o(G),{dragState:s}=o(W),{isVirtualized:c}=o(U);r.column=a.collection.columns[r.index];let{gridCellProps:u,isPressed:d}=v({node:r,shouldSelectOnPressUp:!!s,isVirtualized:c},a,i),{isFocused:f,isFocusVisible:p,focusProps:y}=g(),{hoverProps:b,isHovered:S}=_({}),C=r.parentKey!=null&&a.selectionManager.isSelected(r.parentKey),w=r.colIndex||r.index,T=x({...t,id:void 0,defaultClassName:`react-aria-Cell`,values:{isFocused:f,isFocusVisible:p,isPressed:d,isHovered:S,isSelected:C,id:r.key,columnIndex:w}}),E=l(t,{global:!0});return delete E.id,e.createElement(Q,{...h(E,T,u,y,b),ref:i,"data-focused":f||void 0,"data-focus-visible":p||void 0,"data-pressed":d||void 0,"data-selected":C||void 0,"data-column-index":w},e.createElement(U.Provider,{value:B},T.children))});z(k,function(t,n,r){let i=o(G),{isVirtualized:a}=o(U),{isLoading:d,onLoadMore:f,scrollOffset:m,...g}=t,_=i.collection.columns.length,v=c(null),y=s(()=>({onLoadMore:f,collection:i?.collection,sentinelRef:v,scrollOffset:m}),[f,m,i?.collection]);p(y,v);let b=x({...g,id:void 0,children:r.rendered,defaultClassName:`react-aria-TableLoadingIndicator`,values:void 0}),S={},C={},w={};return a?(C[`aria-colspan`]=_,w={display:`contents`}):C.colSpan=_,e.createElement(e.Fragment,null,e.createElement(X,{style:{height:0},inert:u(!0)},e.createElement(Q,{style:{padding:0,border:0}},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:v,style:{position:`relative`,height:1,width:1}}))),d&&b.children&&e.createElement(X,{...h(l(t,{global:!0}),S),...b,role:`row`,ref:n},e.createElement(Q,{role:`rowheader`,...C,style:w},b.children)))});export{$ as Cell};
@@ -0,0 +1 @@
1
+ export { Checkbox, type CheckboxProps, type CheckboxRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeProps as s,mergeRefs as c,useLayoutEffect as l,useObjectRef as u}from"@react-aria/utils";import{VisuallyHidden as d,mergeProps as f,useCheckbox as p,useCheckboxGroupItem as m,useFocusRing as h,useHover as g}from"react-aria";import{useToggleState as _}from"react-stately";const v=t(null);t(null),t(null),t(null),t(null),t({}),t(null),t(null);const y=Symbol(`default`);function b(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function x(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||y;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function S(e,t,n){let{ref:r,...a}=x(n,e.slot)||{},o=u(i(()=>c(t,r),[t,r])),l=s(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(l.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[l,o]}function C(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function w(t,n,r){let{render:o,...s}=n,u=a(null),d=i(()=>c(r,u),[r,u]);l(()=>{},[t,o]);let f={...s,ref:d};return o?o(f,void 0):e.createElement(t,f)}const T={},E=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=T[t];return r||(r=n(w.bind(null,t)),T[t]=r),r}}),D=t(null),O=t(null),k=n(function(t,n){let{inputRef:a=null,...s}=t;[t,n]=S(s,n,v);let{validationBehavior:l}=x(D)||{},y=t.validationBehavior??l??`native`,w=r(O),T=u(i(()=>c(a,t.inputRef===void 0?null:t.inputRef),[a,t.inputRef])),{labelProps:k,inputProps:A,isSelected:j,isDisabled:M,isReadOnly:N,isPressed:P,isInvalid:F}=w?m({...C(t),value:t.value,children:typeof t.children==`function`||t.children},w,T):p({...C(t),children:typeof t.children==`function`||t.children,validationBehavior:y},_(t),T),{isFocused:I,isFocusVisible:L,focusProps:R}=h(),z=M||N,{hoverProps:B,isHovered:V}=g({...t,isDisabled:z}),H=b({...t,defaultClassName:`react-aria-Checkbox`,values:{isSelected:j,isIndeterminate:t.isIndeterminate||!1,isPressed:P,isHovered:V,isFocused:I,isFocusVisible:L,isDisabled:M,isReadOnly:N,isInvalid:F,isRequired:t.isRequired||!1}}),U=o(t,{global:!0});return delete U.id,delete U.onClick,e.createElement(E.label,{...f(U,k,B,H),ref:n,slot:t.slot||void 0,"data-selected":j||void 0,"data-indeterminate":t.isIndeterminate||void 0,"data-pressed":P||void 0,"data-hovered":V||void 0,"data-focused":I||void 0,"data-focus-visible":L||void 0,"data-disabled":M||void 0,"data-readonly":N||void 0,"data-invalid":F||void 0,"data-required":t.isRequired||void 0},e.createElement(d,{elementType:`span`},e.createElement(`input`,{...f(A,R),ref:T})),H.children)});export{k as Checkbox};
@@ -0,0 +1 @@
1
+ export { CheckboxGroup, type CheckboxGroupProps, type CheckboxGroupRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useCallback as r,useContext as i,useMemo as a,useRef as o,useState as s}from"react";import{filterDOMProps as c,mergeProps as l,mergeRefs as u,useLayoutEffect as d,useObjectRef as f}from"@react-aria/utils";import{mergeProps as p,useCheckboxGroup as m}from"react-aria";import{useCheckboxGroupState as h}from"react-stately";const g=Symbol(`default`);function _({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function v(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return a(()=>{let e,a,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,a=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??i,style:a||s?{...s,...a}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,o,s,c,l])}function y(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||g;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function b(e,t,n){let{ref:r,...i}=y(n,e.slot)||{},o=f(a(()=>u(t,r),[t,r])),s=l(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(s.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[s,o]}function x(e=!0){let[t,n]=s(e),i=o(!1),a=r(e=>{i.current=!0,n(!!e)},[]);return d(()=>{i.current||n(!1)},[]),[a,t]}function S(t,n,r){let{render:i,...s}=n,c=o(null),l=a(()=>u(r,c),[r,c]);d(()=>{},[t,i]);let f={...s,ref:l};return i?i(f,void 0):e.createElement(t,f)}const C={},w=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=C[t];return r||(r=n(S.bind(null,t)),C[t]=r),r}}),T=t({}),E=t({}),D=t(null),O=t(null),k=t(null),A=t(null),j=n(function(t,n){[t,n]=b(t,n,k);let{validationBehavior:r}=y(O)||{},i=t.validationBehavior??r??`native`,a=h({...t,validationBehavior:i}),[o,s]=x(!t[`aria-label`]&&!t[`aria-labelledby`]),{groupProps:l,labelProps:u,descriptionProps:d,errorMessageProps:f,...g}=m({...t,label:s,validationBehavior:i},a),S=v({...t,values:{isDisabled:a.isDisabled,isReadOnly:a.isReadOnly,isRequired:t.isRequired||!1,isInvalid:a.isInvalid,state:a},defaultClassName:`react-aria-CheckboxGroup`}),C=c(t,{global:!0});return e.createElement(w.div,{...p(C,S,l),ref:n,slot:t.slot||void 0,"data-readonly":a.isReadOnly||void 0,"data-required":t.isRequired||void 0,"data-invalid":a.isInvalid||void 0,"data-disabled":t.isDisabled||void 0},e.createElement(_,{values:[[A,a],[T,{...u,ref:o,elementType:`span`}],[E,{slots:{description:d,errorMessage:f}}],[D,g]]},S.children))});export{j as CheckboxGroup};
@@ -0,0 +1 @@
1
+ export { Collection } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,useContext as r,useMemo as i}from"react";import{createPortal as a}from"react-dom";var o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});String(Math.round(Math.random()*1e10));const c=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function l(){return!1}function u(){return!0}function d(e){return()=>{}}function f(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(d,l,u):r(c)}function p(e){let{children:n,items:r,idScope:a,addIdAndValue:o,dependencies:s=[]}=e,c=i(()=>new WeakMap,s);return i(()=>{if(r&&typeof n==`function`){let e=[];for(let i of r){let r=c.get(i);if(!r){r=n(i);let e=r.props.id??i.key??i.id;if(e==null)throw Error(`Could not determine key for item`);a!=null&&(e=a+`:`+e),r=t(r,o?{key:e,id:e,value:i}:{key:e}),c.set(i,r)}e.push(r)}return e}if(typeof n!=`function`)return n},[n,r,c,a,o])}
2
+ /**
3
+ * @license React
4
+ * use-sync-external-store-shim.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var m=o((e=>{var t=s(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),s=r[0].inst,l=r[1];return o(function(){s.value=n,s.getSnapshot=t,u(s)&&l({inst:s})},[e,n,t]),a(function(){return u(s)&&l({inst:s}),e(function(){u(s)&&l({inst:s})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore}));o(((e,t)=>{t.exports=m()}))();const h=n(!1),g=n(null);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const _=n(null);function v(e){return p({...e,addIdAndValue:!0})}const y=n(null);function b(t){let n=r(y),a=(n?.dependencies||[]).concat(t.dependencies),o=t.idScope??n?.idScope,s=v({...t,idScope:o,dependencies:a});return r(g)&&(s=e.createElement(x,null,s)),n=i(()=>({dependencies:a,idScope:o}),[o,...a]),e.createElement(y.Provider,{value:n},s)}function x({children:t}){let n=r(g),o=i(()=>e.createElement(g.Provider,{value:null},e.createElement(h.Provider,{value:!0},t)),[t]);return f()?e.createElement(_.Provider,{value:n},o):a(o,n)}export{b as Collection};
@@ -0,0 +1 @@
1
+ export { ColorArea, type ColorAreaProps, type ColorAreaRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeProps as s,mergeRefs as c,useLayoutEffect as l,useObjectRef as u}from"@react-aria/utils";import{useColorArea as d}from"react-aria";import{useColorAreaState as f}from"react-stately";t(null);const p=t(null);t(null),t(null),t(null),t({}),t(null),t(null);const m=Symbol(`default`);function h({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function g(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function _(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||m;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function v(e,t,n){let{ref:r,...a}=_(n,e.slot)||{},o=u(i(()=>c(t,r),[t,r])),l=s(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(l.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[l,o]}function y(t,n,r){let{render:o,...s}=n,u=a(null),d=i(()=>c(r,u),[r,u]);l(()=>{},[t,o]);let f={...s,ref:d};return o?o(f,void 0):e.createElement(t,f)}const b={},x=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=b[t];return r||(r=n(y.bind(null,t)),b[t]=r),r}}),S=t(null),C=t(null),w=n(function(t,n){[t,n]=v(t,n,p);let r=a(null),i=a(null),c=f(t),{colorAreaProps:l,xInputProps:u,yInputProps:m,thumbProps:_}=d({...t,inputXRef:r,inputYRef:i,containerRef:n},c),y=g({...t,defaultClassName:`react-aria-ColorArea`,defaultStyle:l.style,values:{state:c,isDisabled:t.isDisabled||!1}}),b=o(t,{global:!0});return delete b.id,e.createElement(x.div,{ref:n,...s(b,l,y),slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0},e.createElement(h,{values:[[C,c],[S,{state:c,thumbProps:_,inputXRef:r,xInputProps:u,inputYRef:i,yInputProps:m,isDisabled:t.isDisabled}]]},y.children))});export{w as ColorArea};
@@ -0,0 +1 @@
1
+ export { ColorField, type ColorFieldProps, type ColorFieldRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useCallback as r,useContext as i,useMemo as a,useRef as o,useState as s}from"react";import{filterDOMProps as c,mergeProps as l,mergeRefs as u,useLayoutEffect as d,useObjectRef as f}from"@react-aria/utils";import{useColorChannelField as p,useColorField as m,useLocale as h}from"react-aria";import{useColorChannelFieldState as g,useColorFieldState as _}from"react-stately";t(null),t(null);const v=t(null);t(null),t(null),t({}),t(null),t(null);const y=Symbol(`default`);function b({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function x(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return a(()=>{let e,a,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,a=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??i,style:a||s?{...s,...a}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,o,s,c,l])}function S(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||y;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function C(e,t,n){let{ref:r,...i}=S(n,e.slot)||{},o=f(a(()=>u(t,r),[t,r])),s=l(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(s.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[s,o]}function w(e=!0){let[t,n]=s(e),i=o(!1),a=r(e=>{i.current=!0,n(!!e)},[]);return d(()=>{i.current||n(!1)},[]),[a,t]}function T(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function E(t,n,r){let{render:i,...s}=n,c=o(null),l=a(()=>u(r,c),[r,c]);d(()=>{},[t,i]);let f={...s,ref:l};return i?i(f,void 0):e.createElement(t,f)}const D={},O=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=D[t];return r||(r=n(E.bind(null,t)),D[t]=r),r}}),k=t({}),A=t({}),j=t(null),M=t({}),N=t({}),P=t(null),F=n(function(t,n){return[t,n]=C(t,n,v),t.channel?e.createElement(I,{...t,channel:t.channel,forwardedRef:n}):e.createElement(L,{...t,forwardedRef:n})});function I(t){let{locale:n}=h(),r=g({...t,locale:n}),i=o(null),[a,s]=w(!t[`aria-label`]&&!t[`aria-labelledby`]),{labelProps:c,inputProps:l,descriptionProps:u,errorMessageProps:d,...f}=p({...T(t),label:s,validationBehavior:t.validationBehavior??`native`},r,i);return e.createElement(e.Fragment,null,R(t,r,t.forwardedRef,l,i,c,a,u,d,f),t.name&&e.createElement(`input`,{type:`hidden`,name:t.name,form:t.form,value:isNaN(r.numberValue)?``:r.numberValue}))}function L(e){let t=_({...e,validationBehavior:e.validationBehavior??`native`}),n=o(null),[r,i]=w(!e[`aria-label`]&&!e[`aria-labelledby`]),{labelProps:a,inputProps:s,descriptionProps:c,errorMessageProps:l,...u}=m({...T(e),label:i,validationBehavior:e.validationBehavior??`native`},t,n);return R(e,t,e.forwardedRef,s,n,a,r,c,l,u)}function R(t,n,r,i,a,o,s,l,u,d){let f=x({...t,values:{state:n,channel:t.channel||`hex`,isDisabled:t.isDisabled||!1,isInvalid:d.isInvalid||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1},defaultClassName:`react-aria-ColorField`}),p=c(t,{global:!0});return delete p.id,e.createElement(b,{values:[[P,n],[N,{...i,ref:a}],[k,{...o,ref:s}],[M,{role:`presentation`,isInvalid:d.isInvalid,isDisabled:t.isDisabled||!1}],[A,{slots:{description:l,errorMessage:u}}],[j,d]]},e.createElement(O.div,{...p,...f,ref:r,slot:t.slot||void 0,"data-channel":t.channel||`hex`,"data-disabled":t.isDisabled||void 0,"data-invalid":d.isInvalid||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0}))}export{F as ColorField};
@@ -0,0 +1 @@
1
+ export { ColorPicker, type ColorPickerProps, type ColorPickerRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{mergeRefs as o,useLayoutEffect as s}from"@react-aria/utils";import{mergeProps as c}from"react-aria";import{useColorPickerState as l}from"react-stately";t(null);const u=t(null),d=t(null),f=t(null),p=t(null);t({}),t(null),t(null);const m=Symbol(`default`);function h({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function g(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function _(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||m;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function v(t,n,r){let{render:c,...l}=n,u=a(null),d=i(()=>o(r,u),[r,u]);s(()=>{},[t,c]);let f={...l,ref:d};return c?c(f,void 0):e.createElement(t,f)}const y={};new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=y[t];return r||(r=n(v.bind(null,t)),y[t]=r),r}});const b=t(null),x=t(null),S=t(null),C=t(null);function w(t){let n=_(S,t.slot);t=c(n,t);let r=l(t),i=g({...t,values:{color:r.color}});return e.createElement(h,{values:[[C,r],[f,{value:r.color,onChange:r.setColor}],[u,{value:r.color,onChange:r.setColor}],[p,{value:r.color,onChange:r.setColor}],[d,{value:r.color,onChange:r.setColor}],[b,{color:r.color}],[x,{value:r.color,onChange:r.setColor}]]},i.children)}export{w as ColorPicker};
@@ -0,0 +1 @@
1
+ export { ColorSlider, type ColorSliderProps, type ColorSliderRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useCallback as r,useContext as i,useMemo as a,useRef as o,useState as s}from"react";import{filterDOMProps as c,mergeProps as l,mergeRefs as u,useLayoutEffect as d,useObjectRef as f}from"@react-aria/utils";import{useColorSlider as p,useLocale as m}from"react-aria";import{useColorSliderState as h}from"react-stately";t(null),t(null),t(null);const g=t(null);t(null),t({}),t(null),t(null);const _=Symbol(`default`);function v({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function y(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return a(()=>{let e,a,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,a=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??i,style:a||s?{...s,...a}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,o,s,c,l])}function b(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||_;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function x(e,t,n){let{ref:r,...i}=b(n,e.slot)||{},o=f(a(()=>u(t,r),[t,r])),s=l(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(s.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[s,o]}function S(e=!0){let[t,n]=s(e),i=o(!1),a=r(e=>{i.current=!0,n(!!e)},[]);return d(()=>{i.current||n(!1)},[]),[a,t]}function C(t,n,r){let{render:i,...s}=n,c=o(null),l=a(()=>u(r,c),[r,c]);d(()=>{},[t,i]);let f={...s,ref:l};return i?i(f,void 0):e.createElement(t,f)}const w={},T=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=w[t];return r||(r=n(C.bind(null,t)),w[t]=r),r}}),E=t({}),D=t(null),O=t(null),k=t(null),A=t(null),j=t(null),M=n(function(t,n){[t,n]=x(t,n,g);let{locale:r}=m(),i=h({...t,locale:r}),a=e.useRef(null),o=e.useRef(null),[s,l]=S(!t[`aria-label`]&&!t[`aria-labelledby`]),{trackProps:u,thumbProps:d,inputProps:f,labelProps:_,outputProps:b}=p({...t,label:l,trackRef:a,inputRef:o},i),C=y({...t,values:{orientation:i.orientation,isDisabled:i.isDisabled,state:i},defaultClassName:`react-aria-ColorSlider`}),w=c(t,{global:!0});return delete w.id,e.createElement(v,{values:[[j,i],[O,i],[k,{...u,ref:a}],[A,b],[E,{..._,ref:s,children:i.value.getChannelName(t.channel,r)}],[D,{state:i,thumbProps:d,inputXRef:o,xInputProps:f,isDisabled:t.isDisabled}]]},e.createElement(T.div,{...w,...C,ref:n,slot:t.slot||void 0,"data-orientation":i.orientation,"data-disabled":i.isDisabled||void 0}))});export{M as ColorSlider};
@@ -0,0 +1 @@
1
+ export { ColorSwatch, type ColorSwatchProps, type ColorSwatchRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeProps as s,mergeRefs as c,useLayoutEffect as l,useObjectRef as u}from"@react-aria/utils";import{useColorSwatch as d}from"react-aria";const f=Symbol(`default`);function p(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function m(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||f;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function h(e,t,n){let{ref:r,...a}=m(n,e.slot)||{},o=u(i(()=>c(t,r),[t,r])),l=s(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(l.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[l,o]}function g(t,n,r){let{render:o,...s}=n,u=a(null),d=i(()=>c(r,u),[r,u]);l(()=>{},[t,o]);let f={...s,ref:d};return o?o(f,void 0):e.createElement(t,f)}const _={},v=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=_[t];return r||(r=n(g.bind(null,t)),_[t]=r),r}}),y=t(null),b=n(function(t,n){[t,n]=h(t,n,y);let{colorSwatchProps:r,color:i}=d(t),a=p({...t,defaultClassName:`react-aria-ColorSwatch`,defaultStyle:r.style,values:{color:i}}),c=o(t,{global:!0});return e.createElement(v.div,{...s(c,r,a),slot:t.slot||void 0,ref:n})});export{b as ColorSwatch};
@@ -0,0 +1,5 @@
1
+ export {
2
+ ColorSwatchPicker,
3
+ type ColorSwatchPickerProps,
4
+ type ColorSwatchPickerRenderProps,
5
+ } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useEffect as s,useMemo as c,useRef as l,useState as u}from"react";import{filterDOMProps as d,inertValue as f,mergeProps as p,mergeRefs as m,useLayoutEffect as h,useLoadMoreSentinel as g,useObjectRef as _}from"@react-aria/utils";import{createPortal as v}from"react-dom";import{FocusScope as ee,ListKeyboardDelegate as te,mergeProps as y,useCollator as ne,useFocusRing as re,useListBox as ie,useListBoxSection as b,useLocale as ae,useLocalizedStringFormatter as x}from"react-aria";import{UNSTABLE_useFilteredListState as oe,useColorPickerState as S,useListState as se}from"react-stately";var C=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),w=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});n(null),n(null),n(null),n(null),n(null),n({});const ce=n(null);n(null);const T=Symbol(`default`);function le({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function E(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:l}=e;return c(()=>{let e,c,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,c=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:c||o?{...o,...c}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,s):void 0}},[t,n,r,i,a,o,s,l])}function D(e,t){let n=o(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||T;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function O(e,t,n){let{ref:r,...i}=D(n,e.slot)||{},a=_(c(()=>m(t,r),[t,r])),o=p(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(o.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[o,a]}function ue(e=!0){let[t,n]=u(e),r=l(!1),i=a(e=>{r.current=!0,n(!!e)},[]);return h(()=>{r.current||n(!1)},[]),[i,t]}function k(t,n,r){let{render:i,...a}=n,o=l(null),s=c(()=>m(r,o),[r,o]);h(()=>{},[t,i]);let u={...a,ref:s};return i?i(u,void 0):e.createElement(t,u)}const A={},j=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=A[t];return n||(n=r(k.bind(null,t)),A[t]=n),n}});String(Math.round(Math.random()*1e10));const M=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function N(){return!1}function P(){return!0}function F(e){return()=>{}}function I(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(F,N,P):o(M)}let L=e.createContext(null);var R=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},z=class extends R{filter(e,t,n){let[r,i]=pe(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},B=class extends R{};B.type=`header`;var V=class extends R{};V.type=`loader`;var H=class extends z{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};H.type=`item`;var de=class extends z{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};de.type=`section`;var fe=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=pe(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function pe(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}var me=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},U=class e extends me{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof e?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let e=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&e!==t.node.colIndex){let n=t.getMutableNode();n.colIndex=e}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,e[`aria-label`]&&(a[`aria-label`]=e[`aria-label`]),a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},he=class extends me{get isConnected(){return!0}createElement(e){return new U(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof U&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof U?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function ge(e){let{children:n,items:r,idScope:i,addIdAndValue:a,dependencies:o=[]}=e,s=c(()=>new WeakMap,o);return c(()=>{if(r&&typeof n==`function`){let e=[];for(let o of r){let r=s.get(o);if(!r){r=n(o);let e=r.props.id??o.key??o.id;if(e==null)throw Error(`Could not determine key for item`);i!=null&&(e=i+`:`+e),r=t(r,a?{key:e,id:e,value:o}:{key:e}),s.set(o,r)}e.push(r)}return e}if(typeof n!=`function`)return n},[n,r,s,i,a])}if(typeof HTMLTemplateElement<`u`){let e=Object.getOwnPropertyDescriptor(Node.prototype,`firstChild`).get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const W=n(!1);function _e(t){if(o(W))return e.createElement(e.Fragment,null,t.children);let n=e.createElement(W.Provider,{value:!0},t.children);return e.createElement(`template`,{"data-react-aria-hidden":!0},n)}
2
+ /**
3
+ * @license React
4
+ * use-sync-external-store-shim.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var ve=C((e=>{var t=w(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),ye=C(((e,t)=>{t.exports=ve()}))();const G=n(!1),K=n(null);function be(t){if(o(K))return t.content;let{collection:n,document:r}=we(t.createCollection);return e.createElement(e.Fragment,null,e.createElement(_e,null,e.createElement(K.Provider,{value:r},t.content)),e.createElement(xe,{render:t.children,collection:n}))}function xe({collection:e,render:t}){return t(e)}function Se(e,t,n){let r=I(),i=l(r);i.current=r;let o=a(()=>i.current?n():t(),[t,n]);return(0,ye.useSyncExternalStore)(e,o)}const Ce=typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore:Se;function we(e){let[t]=u(()=>new he(e?.()||new fe)),n=a(e=>t.subscribe(e),[t]),r=a(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),i=a(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:Ce(n,r,i),document:t}}const q=n(null);function Te(e){var t;return t=class extends R{},t.type=e,t}function Ee(t,n,r,i,s,c){typeof t==`string`&&(t=Te(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(q);if(u){let a=u.ownerDocument.nodesByProps.get(n);return a||(a=u.ownerDocument.createElement(t.type),a.setProps(n,r,t,i,c),u.appendChild(a),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(n,a)),s?e.createElement(q.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function De(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(L);if(!o(G)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return Ee(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(L.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}function Oe(e){return ge({...e,addIdAndValue:!0})}const J=n(null);function ke(t){let n=o(J),r=(n?.dependencies||[]).concat(t.dependencies),i=t.idScope??n?.idScope,a=Oe({...t,idScope:i,dependencies:r});return o(K)&&(a=e.createElement(Ae,null,a)),n=c(()=>({dependencies:r,idScope:i}),[i,...r]),e.createElement(J.Provider,{value:n},a)}function Ae({children:t}){let n=o(K),r=c(()=>e.createElement(K.Provider,{value:null},e.createElement(G.Provider,{value:!0},t)),[t]);return I()?e.createElement(q.Provider,{value:n},r):v(r,n)}const je=n(null),Me={CollectionRoot({collection:e,renderDropIndicator:t}){return Y(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Y(e,t,n)}};function Y(t,n,r){return ge({items:n?t.getChildren(n.key):t,dependencies:[r],children(n){let i=n.render(n);return!r||n.type!==`item`?i:e.createElement(e.Fragment,null,r({type:`item`,key:n.key,dropPosition:`before`}),i,Ne(t,n,r))}})}function Ne(e,n,r){let a=n.key,o=e.getKeyAfter(a),s=o==null?null:e.getItem(o);for(;s!=null&&s.type!==`item`;)o=e.getKeyAfter(s.key),s=o==null?null:e.getItem(o);let c=n.nextKey==null?null:e.getItem(n.nextKey);for(;c!=null&&c.type!==`item`;)c=c.nextKey==null?null:e.getItem(c.nextKey);let l=[];if(c==null){let a=n;for(;a?.type===`item`&&(!s||a.parentKey!==s.parentKey&&s.level<a.level);){let n=r({type:`item`,key:a.key,dropPosition:`after`});i(n)&&l.push(t(n,{key:`${a.key}-after`})),a=a.parentKey==null?null:e.getItem(a.parentKey)}}return l}const X=n(Me);var Pe={};Pe={colorSwatchPicker:`تغييرات الألوان`,dropzoneLabel:`DropZone`,selectPlaceholder:`حدد عنصرًا`,tableResizer:`أداة تغيير الحجم`};var Fe={};Fe={colorSwatchPicker:`Цветови мостри`,dropzoneLabel:`DropZone`,selectPlaceholder:`Изберете предмет`,tableResizer:`Преоразмерител`};var Ie={};Ie={colorSwatchPicker:`Vzorky barev`,dropzoneLabel:`Místo pro přetažení`,selectPlaceholder:`Vyberte položku`,tableResizer:`Změna velikosti`};var Le={};Le={colorSwatchPicker:`Farveprøver`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vælg et element`,tableResizer:`Størrelsesændring`};var Re={};Re={colorSwatchPicker:`Farbfelder`,dropzoneLabel:`Ablegebereich`,selectPlaceholder:`Element wählen`,tableResizer:`Größenanpassung`};var ze={};ze={colorSwatchPicker:`Χρωματικά δείγματα`,dropzoneLabel:`DropZone`,selectPlaceholder:`Επιλέξτε ένα αντικείμενο`,tableResizer:`Αλλαγή μεγέθους`};var Be={};Be={selectPlaceholder:`Select an item`,tableResizer:`Resizer`,dropzoneLabel:`DropZone`,colorSwatchPicker:`Color swatches`};var Ve={};Ve={colorSwatchPicker:`Muestras de colores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Seleccionar un artículo`,tableResizer:`Cambiador de tamaño`};var He={};He={colorSwatchPicker:`Värvinäidised`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valige üksus`,tableResizer:`Suuruse muutja`};var Ue={};Ue={colorSwatchPicker:`Värimallit`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valitse kohde`,tableResizer:`Koon muuttaja`};var We={};We={colorSwatchPicker:`Échantillons de couleurs`,dropzoneLabel:`DropZone`,selectPlaceholder:`Sélectionner un élément`,tableResizer:`Redimensionneur`};var Ge={};Ge={colorSwatchPicker:`דוגמיות צבע`,dropzoneLabel:`DropZone`,selectPlaceholder:`בחר פריט`,tableResizer:`שינוי גודל`};var Ke={};Ke={colorSwatchPicker:`Uzorci boja`,dropzoneLabel:`Zona spuštanja`,selectPlaceholder:`Odaberite stavku`,tableResizer:`Promjena veličine`};var qe={};qe={colorSwatchPicker:`Színtárak`,dropzoneLabel:`DropZone`,selectPlaceholder:`Válasszon ki egy elemet`,tableResizer:`Átméretező`};var Je={};Je={colorSwatchPicker:`Campioni di colore`,dropzoneLabel:`Zona di rilascio`,selectPlaceholder:`Seleziona un elemento`,tableResizer:`Ridimensionamento`};var Ye={};Ye={colorSwatchPicker:`カラースウォッチ`,dropzoneLabel:`ドロップゾーン`,selectPlaceholder:`項目を選択`,tableResizer:`サイズ変更ツール`};var Xe={};Xe={colorSwatchPicker:`색상 견본`,dropzoneLabel:`드롭 영역`,selectPlaceholder:`항목 선택`,tableResizer:`크기 조정기`};var Ze={};Ze={colorSwatchPicker:`Spalvų pavyzdžiai`,dropzoneLabel:`„DropZone“`,selectPlaceholder:`Pasirinkite elementą`,tableResizer:`Dydžio keitiklis`};var Qe={};Qe={colorSwatchPicker:`Krāsu paraugi`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izvēlēties vienumu`,tableResizer:`Izmēra mainītājs`};var $e={};$e={colorSwatchPicker:`Fargekart`,dropzoneLabel:`Droppsone`,selectPlaceholder:`Velg et element`,tableResizer:`Størrelsesendrer`};var et={};et={colorSwatchPicker:`kleurstalen`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecteer een item`,tableResizer:`Resizer`};var tt={};tt={colorSwatchPicker:`Próbki kolorów`,dropzoneLabel:`Strefa upuszczania`,selectPlaceholder:`Wybierz element`,tableResizer:`Zmiana rozmiaru`};var nt={};nt={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var rt={};rt={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var it={};it={colorSwatchPicker:`Specimene de culoare`,dropzoneLabel:`Zonă de plasare`,selectPlaceholder:`Selectați un element`,tableResizer:`Instrument de redimensionare`};var at={};at={colorSwatchPicker:`Цветовые образцы`,dropzoneLabel:`DropZone`,selectPlaceholder:`Выберите элемент`,tableResizer:`Средство изменения размера`};var ot={};ot={colorSwatchPicker:`Vzorkovníky farieb`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vyberte položku`,tableResizer:`Nástroj na zmenu veľkosti`};var st={};st={colorSwatchPicker:`Barvne palete`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izberite element`,tableResizer:`Spreminjanje velikosti`};var ct={};ct={colorSwatchPicker:`Uzorci boje`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izaberite stavku`,tableResizer:`Promena veličine`};var lt={};lt={colorSwatchPicker:`Färgrutor`,dropzoneLabel:`DropZone`,selectPlaceholder:`Välj en artikel`,tableResizer:`Storleksändrare`};var ut={};ut={colorSwatchPicker:`Renk örnekleri`,dropzoneLabel:`Bırakma Bölgesi`,selectPlaceholder:`Bir öğe seçin`,tableResizer:`Yeniden boyutlandırıcı`};var dt={};dt={colorSwatchPicker:`Зразки кольорів`,dropzoneLabel:`DropZone`,selectPlaceholder:`Виберіть елемент`,tableResizer:`Засіб змінення розміру`};var ft={};ft={colorSwatchPicker:`颜色色板`,dropzoneLabel:`放置区域`,selectPlaceholder:`选择一个项目`,tableResizer:`尺寸调整器`};var pt={};pt={colorSwatchPicker:`色票`,dropzoneLabel:`放置區`,selectPlaceholder:`選取項目`,tableResizer:`大小調整器`};var Z={};Z={"ar-AE":Pe,"bg-BG":Fe,"cs-CZ":Ie,"da-DK":Le,"de-DE":Re,"el-GR":ze,"en-US":Be,"es-ES":Ve,"et-EE":He,"fi-FI":Ue,"fr-FR":We,"he-IL":Ge,"hr-HR":Ke,"hu-HU":qe,"it-IT":Je,"ja-JP":Ye,"ko-KR":Xe,"lt-LT":Ze,"lv-LV":Qe,"nb-NO":$e,"nl-NL":et,"pl-PL":tt,"pt-BR":nt,"pt-PT":rt,"ro-RO":it,"ru-RU":at,"sk-SK":ot,"sl-SI":st,"sr-SP":ct,"sv-SE":lt,"tr-TR":ut,"uk-UA":dt,"zh-CN":ft,"zh-TW":pt};const Q=n({}),mt=n(null),ht=r(function(t,n){let{render:r}=o(mt);return e.createElement(e.Fragment,null,r(t,n))});function gt(t,n){let r=t?.renderDropIndicator,i=t?.isVirtualDragging?.call(t),o=a(t=>{if(i||n?.isDropTarget(t))return r?r(t):e.createElement(ht,{target:t})},[n?.target,i,r]);return t?.useDropIndicator?o:void 0}function _t(e,t,n){let r=e.focusedKey,i=null;if(t!=null&&t.isVirtualDragging?.call(t)&&n?.target?.type===`item`&&(i=n.target.key,n.target.dropPosition===`after`)){let e=n.collection.getKeyAfter(i),t=null;if(e!=null){let r=n.collection.getItem(i)?.level??0;for(;e;){let i=n.collection.getItem(e);if(!i)break;if(i.type!==`item`){e=n.collection.getKeyAfter(e);continue}if((i.level??0)<=r)break;t=e,e=n.collection.getKeyAfter(e)}}i=e??t??i}return c(()=>new Set([r,i].filter(e=>e!=null)),[r,i])}const vt=n({}),yt=n(null);function bt(t){let n=l({});return e.createElement(yt.Provider,{value:n},t.children)}const xt=n({});var St=class extends R{filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}};St.type=`separator`;const Ct=n(null),$=n(null),wt=r(function(t,n){[t,n]=O(t,n,Ct);let r=o($);return r?e.createElement(Et,{state:r,props:t,listBoxRef:n}):e.createElement(be,{content:e.createElement(ke,t)},r=>e.createElement(Tt,{props:t,listBoxRef:n,collection:r}))});function Tt({props:t,listBoxRef:n,collection:r}){t={...t,collection:r,children:null,items:null};let{layoutDelegate:i}=o(X),a=se({...t,layoutDelegate:i});return e.createElement(Et,{state:a,props:t,listBoxRef:n})}function Et({state:t,props:n,listBoxRef:r}){[n,r]=O(n,r,ce);let{dragAndDropHooks:i,layout:a=`stack`,orientation:u=`vertical`,filter:f}=n,p=oe(t,f),{collection:m,selectionManager:h}=p,g=!!i?.useDraggableCollectionState,_=!!i?.useDroppableCollectionState,{direction:v}=ae(),{disabledBehavior:b,disabledKeys:x}=h,S=ne({usage:`search`,sensitivity:`base`}),{isVirtualized:se,layoutDelegate:C,dropTargetDelegate:w,CollectionRoot:T}=o(X),D=c(()=>n.keyboardDelegate||new te({collection:m,collator:S,ref:r,disabledKeys:x,disabledBehavior:b,layout:a,orientation:u,direction:v,layoutDelegate:C}),[m,S,r,b,x,u,v,n.keyboardDelegate,a,C]),{listBoxProps:ue}=ie({...n,shouldSelectOnPressUp:g||n.shouldSelectOnPressUp,keyboardDelegate:D,isVirtualized:se},p,r);l(g),l(_),s(()=>{},[g,_]);let k,A,M,N=!1,P=null,F=l(null);if(g&&i){k=i.useDraggableCollectionState({collection:m,selectionManager:h,preview:i.renderDragPreview?F:void 0}),i.useDraggableCollection({},k,r);let t=i.DragPreview;P=i.renderDragPreview?e.createElement(t,{ref:F},i.renderDragPreview):null}if(_&&i){A=i.useDroppableCollectionState({collection:m,selectionManager:h});let e=i.dropTargetDelegate||w||new i.ListDropTargetDelegate(m,r,{orientation:u,layout:a,direction:v});M=i.useDroppableCollection({keyboardDelegate:D,dropTargetDelegate:e},A,r),N=A.isDropTarget({type:`root`})}let{focusProps:I,isFocused:L,isFocusVisible:R}=re(),z=p.collection.size===0,B={isDropTarget:N,isEmpty:z,isFocused:L,isFocusVisible:R,layout:n.layout||`stack`,state:p},V=E({...n,children:void 0,defaultClassName:`react-aria-ListBox`,values:B}),H=null;z&&n.renderEmptyState&&(H=e.createElement(`div`,{role:`option`,style:{display:`contents`}},n.renderEmptyState(B)));let de=d(n,{global:!0});return e.createElement(ee,null,e.createElement(j.div,{...y(de,V,ue,I,M?.collectionProps),ref:r,slot:n.slot||void 0,onScroll:n.onScroll,"data-drop-target":N||void 0,"data-empty":z||void 0,"data-focused":L||void 0,"data-focus-visible":R||void 0,"data-layout":n.layout||`stack`,"data-orientation":n.orientation||`vertical`},e.createElement(le,{values:[[Ct,n],[$,p],[Q,{dragAndDropHooks:i,dragState:k,dropState:A}],[xt,{elementType:`div`}],[mt,{render:Ot}],[je,{name:`ListBoxSection`,render:Dt}]]},e.createElement(bt,null,e.createElement(T,{collection:m,scrollRef:r,persistedKeys:_t(h,i,A),renderDropIndicator:gt(i,A)}))),H,P))}function Dt(t,n,r,i=`react-aria-ListBoxSection`){let a=o($),{dragAndDropHooks:s,dropState:c}=o(Q),{CollectionBranch:l}=o(X),[u,f]=ue(),{headingProps:p,groupProps:m}=b({heading:f,"aria-label":t[`aria-label`]??void 0}),h=E({...t,id:void 0,children:void 0,defaultClassName:i,values:void 0}),g=d(t,{global:!0});return delete g.id,e.createElement(j.section,{...y(g,h,m),ref:n},e.createElement(vt.Provider,{value:{...p,ref:u}},e.createElement(l,{collection:a.collection,parent:r,renderDropIndicator:gt(s,c)})))}function Ot(t,n){n=_(n);let{dragAndDropHooks:r,dropState:i}=o(Q),{dropIndicatorProps:a,isHidden:s,isDropTarget:c}=r.useDropIndicator(t,i,n);return s?null:e.createElement(At,{...t,dropIndicatorProps:a,isDropTarget:c,ref:n})}function kt(t,n){let{dropIndicatorProps:r,isDropTarget:i,...a}=t,o=E({...a,defaultClassName:`react-aria-DropIndicator`,values:{isDropTarget:i}});return e.createElement(j.div,{...r,...o,role:`option`,ref:n,"data-drop-target":i||void 0})}const At=r(kt);De(V,function(t,n,r){let i=o($),{isLoading:a,onLoadMore:s,scrollOffset:u,...p}=t,m=l(null),h=c(()=>({onLoadMore:s,collection:i?.collection,sentinelRef:m,scrollOffset:u}),[s,u,i?.collection]);g(h,m);let _=E({...p,id:void 0,children:r.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return e.createElement(e.Fragment,null,e.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:f(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:m,style:{position:`absolute`,height:1,width:1}})),a&&_.children&&e.createElement(j.div,{...y(d(t,{global:!0}),{tabIndex:-1}),..._,role:`option`,ref:n},_.children))});function jt(e){return e&&e.__esModule?e.default:e}const Mt=n(null),Nt=n(null),Pt=r(function(t,n){[t,n]=O(t,n,Mt);let r=S(t),i=c(()=>new Map,[]),a=x(jt(Z),`react-aria-components`);return e.createElement(wt,{...d(t,{labelable:!0}),ref:n,className:t.className||`react-aria-ColorSwatchPicker`,style:t.style,"aria-label":t[`aria-label`]||(t[`aria-labelledby`]?void 0:a.format(`colorSwatchPicker`)),layout:t.layout||`grid`,selectionMode:`single`,selectedKeys:[r.color.toString(`hexa`)],onSelectionChange:e=>{e!==`all`&&r.setColor(i.get([...e][0]))},disallowEmptySelection:!0},e.createElement(Nt.Provider,{value:i},t.children))});export{Pt as ColorSwatchPicker};
@@ -0,0 +1,5 @@
1
+ export {
2
+ ColorSwatchPickerItem,
3
+ type ColorSwatchPickerItemProps,
4
+ type ColorSwatchPickerItemRenderProps,
5
+ } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{createContext as t,forwardRef as n,useCallback as r,useContext as i,useEffect as a,useMemo as o,useRef as s}from"react";import{filterDOMProps as c,inertValue as l,mergeRefs as u,useLayoutEffect as d,useLoadMoreSentinel as f,useObjectRef as p}from"@react-aria/utils";import"react-dom";import{mergeProps as m,useFocus as h,useHover as g,useLocale as _,useOption as v}from"react-aria";import{parseColor as y}from"react-stately";var b=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),x=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});const S=Symbol(`default`);function C({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function w(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:s,values:c,render:l}=e;return o(()=>{let e,o,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,o=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:a}):r??a,{className:e??i,style:o||s?{...s,...o}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,a,s,c,l])}function T(e,t){return n=>t(typeof e==`function`?e(n):e,n)}function E(t,n,r){let{render:i,...a}=n,c=s(null),l=o(()=>u(r,c),[r,c]);d(()=>{},[t,i]);let f={...a,ref:l};return i?i(f,void 0):e.createElement(t,f)}const D={},O=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=D[t];return r||(r=n(E.bind(null,t)),D[t]=r),r}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let k=e.createContext(null);var A=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},j=class extends A{filter(e,t,n){let[r,i]=I(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},M=class extends A{};M.type=`header`;var N=class extends A{};N.type=`loader`;var P=class extends j{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};P.type=`item`;var F=class extends j{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};F.type=`section`;function I(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}
2
+ /**
3
+ * @license React
4
+ * use-sync-external-store-shim.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var L=b((e=>{var t=x(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore}));b(((e,t)=>{t.exports=L()}))();const R=t(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const z=t(null);function B(e){var t;return t=class extends A{},t.type=e,t}function V(t,n,a,o,s,c){typeof t==`string`&&(t=B(t));let l=r(e=>{e?.setProps(n,a,t,o,c)},[n,a,o,c,t]),u=i(z);if(u){let r=u.ownerDocument.nodesByProps.get(n);return r||(r=u.ownerDocument.createElement(t.type),r.setProps(n,a,t,o,c),u.appendChild(r),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(n,r)),s?e.createElement(z.Provider,{value:r},s):null}return e.createElement(t.type,{ref:l},s)}function H(t,r){let a=({node:e})=>r(e.props,e.props.ref,e),o=n((n,o)=>{let s=i(k);if(!i(R)){if(r.length>=3)throw Error(r.name+` cannot be rendered outside a collection.`);return r(n,o)}return V(t,n,o,`children`in n?n.children:null,null,t=>e.createElement(k.Provider,{value:s},e.createElement(a,{node:t})))});return o.displayName=r.name,o}const U=t({}),W=t(null),G=t({}),K=t({isSelected:!1}),q=t(null),J=H(P,function(t,n,r){let o=p(n),s=i(q),{dragAndDropHooks:l,dragState:u,dropState:d}=i(G),{optionProps:f,labelProps:_,descriptionProps:y,...b}=v({key:r.key,"aria-label":t?.[`aria-label`]},s,o),{hoverProps:x,isHovered:T}=g({isDisabled:!b.allowsSelection&&!b.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),{focusProps:E}=h(t),D=null;u&&l&&(D=l.useDraggableItem({key:r.key,hasAction:b.hasAction},u));let k=null;d&&l&&(k=l.useDroppableItem({target:{type:`item`,key:r.key,dropPosition:`on`}},d,o));let A=u&&u.isDragging(r.key),j=w({...t,id:void 0,children:t.children,defaultClassName:`react-aria-ListBoxItem`,values:{...b,isHovered:T,selectionMode:s.selectionManager.selectionMode,selectionBehavior:s.selectionManager.selectionBehavior,allowsDragging:!!u,isDragging:A,isDropTarget:k?.isDropTarget}});a(()=>{r.textValue},[r.textValue]);let M=t.href?O.a:O.div,N=c(t,{global:!0});return delete N.id,delete N.onClick,t.href&&f.tabIndex==null&&(f.tabIndex=-1),e.createElement(M,{...m(N,j,f,x,E,D?.dragProps,k?.dropProps),ref:o,"data-allows-dragging":!!u||void 0,"data-selected":b.isSelected||void 0,"data-disabled":b.isDisabled||void 0,"data-hovered":T||void 0,"data-focused":b.isFocused||void 0,"data-focus-visible":b.isFocusVisible||void 0,"data-pressed":b.isPressed||void 0,"data-dragging":A||void 0,"data-drop-target":k?.isDropTarget||void 0,"data-selection-mode":s.selectionManager.selectionMode===`none`?void 0:s.selectionManager.selectionMode},e.createElement(C,{values:[[U,{slots:{[S]:_,label:_,description:y}}],[K,{isSelected:b.isSelected}]]},j.children))});H(N,function(t,n,r){let a=i(q),{isLoading:u,onLoadMore:d,scrollOffset:p,...h}=t,g=s(null),_=o(()=>({onLoadMore:d,collection:a?.collection,sentinelRef:g,scrollOffset:p}),[d,p,a?.collection]);f(_,g);let v=w({...h,id:void 0,children:r.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return e.createElement(e.Fragment,null,e.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:l(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:g,style:{position:`absolute`,height:1,width:1}})),u&&v.children&&e.createElement(O.div,{...m(c(t,{global:!0}),{tabIndex:-1}),...v,role:`option`,ref:n},v.children))});const Y=t(null),X=n(function(t,n){let r=t.color||`#0000`,s=o(()=>typeof r==`string`?y(r):r,[r]),{locale:c}=_(),l=i(Y);a(()=>{let e=s.toString(`hexa`);return l.set(e,s),()=>{l.delete(e)}},[s,l]);let u=e=>typeof e==`function`?t=>e({...t,color:s}):e;return e.createElement(J,{...t,render:t.render,ref:n,id:s.toString(`hexa`),textValue:s.getColorName(c),className:u(t.className||`react-aria-ColorSwatchPickerItem`),style:u(t.style)},T(u(t.children),t=>e.createElement(W.Provider,{value:{color:s}},t)))});export{X as ColorSwatchPickerItem};
@@ -0,0 +1 @@
1
+ export { ColorThumb, type ColorThumbProps, type ColorThumbRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeRefs as s,useLayoutEffect as c}from"@react-aria/utils";import{mergeProps as l,useFocusRing as u,useHover as d}from"react-aria";function f(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function p(t,n,r){let{render:o,...l}=n,u=a(null),d=i(()=>s(r,u),[r,u]);c(()=>{},[t,o]);let f={...l,ref:d};return o?o(f,void 0):e.createElement(t,f)}const m={},h=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=m[t];return r||(r=n(p.bind(null,t)),m[t]=r),r}}),g=t(null),_=n(function(t,n){let{state:i,thumbProps:a,inputXRef:s,inputYRef:c,xInputProps:p,yInputProps:m,isDisabled:_=!1}=r(g),{focusProps:v,isFocused:y,isFocusVisible:b}=u(),{hoverProps:x,isHovered:S}=d(t),C=f({...t,defaultClassName:`react-aria-ColorThumb`,defaultStyle:{...a.style,backgroundColor:i.getDisplayColor().toString()},values:{color:i.getDisplayColor(),isHovered:S,isDragging:i.isDragging,isFocused:y,isFocusVisible:b,isDisabled:_}}),w=o(t,{global:!0});return delete w.id,e.createElement(h.div,{...l(a,x,w),...C,ref:n,"data-hovered":S||void 0,"data-dragging":i.isDragging||void 0,"data-focused":y||void 0,"data-focus-visible":b||void 0,"data-disabled":_||void 0},e.createElement(`input`,{ref:s,...p,...v}),m&&e.createElement(`input`,{ref:c,...m,...v}),C.children)});export{_ as ColorThumb};
@@ -0,0 +1 @@
1
+ export { ColorWheel, type ColorWheelProps, type ColorWheelRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeProps as s,mergeRefs as c,useLayoutEffect as l,useObjectRef as u}from"@react-aria/utils";import{useColorWheel as d}from"react-aria";import{useColorWheelState as f}from"react-stately";t(null),t(null),t(null),t(null);const p=t(null);t({}),t(null),t(null);const m=Symbol(`default`);function h({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function g(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function _(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||m;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function v(e,t,n){let{ref:r,...a}=_(n,e.slot)||{},o=u(i(()=>c(t,r),[t,r])),l=s(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(l.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[l,o]}function y(t,n,r){let{render:o,...s}=n,u=a(null),d=i(()=>c(r,u),[r,u]);l(()=>{},[t,o]);let f={...s,ref:d};return o?o(f,void 0):e.createElement(t,f)}const b={},x=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=b[t];return r||(r=n(y.bind(null,t)),b[t]=r),r}}),S=t(null),C=t(null),w=n(function(t,n){[t,n]=v(t,n,p);let r=f(t),i=a(null),{trackProps:s,inputProps:c,thumbProps:l}=d(t,r,i),u=g({...t,values:{state:r,isDisabled:t.isDisabled||!1},defaultClassName:`react-aria-ColorWheel`,defaultStyle:{position:`relative`}}),m=o(t,{global:!0});return delete m.id,e.createElement(x.div,{...m,...u,ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0},e.createElement(h,{values:[[C,r],[T,s],[S,{state:r,thumbProps:l,inputXRef:i,xInputProps:c,isDisabled:t.isDisabled}]]},u.children))}),T=t(null);export{w as ColorWheel};
@@ -0,0 +1 @@
1
+ export { ColorWheelTrack, type ColorWheelTrackProps, type ColorWheelTrackRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{mergeProps as o,mergeRefs as s,useLayoutEffect as c,useObjectRef as l}from"@react-aria/utils";import"react-aria";import"react-stately";const u=Symbol(`default`);function d(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function f(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||u;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function p(e,t,n){let{ref:r,...a}=f(n,e.slot)||{},c=l(i(()=>s(t,r),[t,r])),u=o(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(u.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[u,c]}function m(t,n,r){let{render:o,...l}=n,u=a(null),d=i(()=>s(r,u),[r,u]);c(()=>{},[t,o]);let f={...l,ref:d};return o?o(f,void 0):e.createElement(t,f)}const h={},g=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=h[t];return r||(r=n(m.bind(null,t)),h[t]=r),r}}),_=t(null),v=t(null),y=n(function(t,n){[t,n]=p(t,n,v);let i=r(_),{className:a,style:o,...s}=t,c=d({...t,defaultClassName:`react-aria-ColorWheelTrack`,values:{isDisabled:i.isDisabled,state:i}});return e.createElement(g.div,{...s,...c,ref:n,"data-disabled":i.isDisabled||void 0})});export{y as ColorWheelTrack};
@@ -0,0 +1 @@
1
+ export { Column, type ColumnProps, type ColumnRenderProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useMemo as s,useRef as c}from"react";import{filterDOMProps as l,inertValue as u,mergeRefs as d,useLayoutEffect as f,useLoadMoreSentinel as p,useObjectRef as m}from"@react-aria/utils";import"react-dom";import{mergeProps as h,useFocusRing as g,useHover as _,useTableColumnHeader as v}from"react-aria";import"react-stately";var y=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),b=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function x({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function S(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:c,render:l}=e;return s(()=>{let e,s,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,s=typeof n==`function`?n({...c,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:a}):r??a,{className:e??i,style:s||o?{...o,...s}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,a,o,c,l])}function C(t,n,r){let{render:i,...a}=n,o=c(null),l=s(()=>d(r,o),[r,o]);f(()=>{},[t,i]);let u={...a,ref:l};return i?i(u,void 0):e.createElement(t,u)}const w={},T=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=w[t];return n||(n=r(C.bind(null,t)),w[t]=n),n}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let E=e.createContext(null);var D=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},O=class extends D{filter(e,t,n){let[r,i]=N(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},k=class extends D{};k.type=`header`;var A=class extends D{};A.type=`loader`;var j=class extends O{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};j.type=`item`;var M=class extends O{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};M.type=`section`;function N(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}function P(e){let{children:n,items:r,idScope:i,addIdAndValue:a,dependencies:o=[]}=e,c=s(()=>new WeakMap,o);return s(()=>{if(r&&typeof n==`function`){let e=[];for(let o of r){let r=c.get(o);if(!r){r=n(o);let e=r.props.id??o.key??o.id;if(e==null)throw Error(`Could not determine key for item`);i!=null&&(e=i+`:`+e),r=t(r,a?{key:e,id:e,value:o}:{key:e}),c.set(o,r)}e.push(r)}return e}if(typeof n!=`function`)return n},[n,r,c,i,a])}
2
+ /**
3
+ * @license React
4
+ * use-sync-external-store-shim.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var F=y((e=>{var t=b(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore}));y(((e,t)=>{t.exports=F()}))();const I=n(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const L=n(null);function ee(e){var t;return t=class extends D{},t.type=e,t}function te(t,n,r,i,s,c){typeof t==`string`&&(t=ee(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(L);if(u){let a=u.ownerDocument.nodesByProps.get(n);return a||(a=u.ownerDocument.createElement(t.type),a.setProps(n,r,t,i,c),u.appendChild(a),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(n,a)),s?e.createElement(L.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function R(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(E);if(!o(I)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return te(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(E.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}const z={CollectionRoot({collection:e,renderDropIndicator:t}){return B(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return B(e,t,n)}};function B(t,n,r){return P({items:n?t.getChildren(n.key):t,dependencies:[r],children(n){let i=n.render(n);return!r||n.type!==`item`?i:e.createElement(e.Fragment,null,r({type:`item`,key:n.key,dropPosition:`before`}),i,V(t,n,r))}})}function V(e,n,r){let a=n.key,o=e.getKeyAfter(a),s=o==null?null:e.getItem(o);for(;s!=null&&s.type!==`item`;)o=e.getKeyAfter(s.key),s=o==null?null:e.getItem(o);let c=n.nextKey==null?null:e.getItem(n.nextKey);for(;c!=null&&c.type!==`item`;)c=c.nextKey==null?null:e.getItem(c.nextKey);let l=[];if(c==null){let a=n;for(;a?.type===`item`&&(!s||a.parentKey!==s.parentKey&&s.level<a.level);){let n=r({type:`item`,key:a.key,dropPosition:`after`});i(n)&&l.push(t(n,{key:`${a.key}-after`})),a=a.parentKey==null?null:e.getItem(a.parentKey)}}return l}const H=n(z),U=n(null),W=n(null);var G=class extends D{};G.type=`tableheader`;var K=class extends D{};K.type=`column`;let q=r(function(t,n){let{isVirtualized:r}=o(H);return r?e.createElement(T.div,{...t,ref:n}):e.createElement(T.th,{...t,ref:n})});const J=R(K,(t,n,r)=>{let i=m(n),a=o(U),{isVirtualized:s}=o(H),{columnHeaderProps:c,isPressed:u}=v({node:r,isVirtualized:s},a,i),{isFocused:d,isFocusVisible:f,focusProps:p}=g(),y=o(W),b=!1;y&&(b=y.resizingColumn===r.key);let{hoverProps:C,isHovered:w}=_({isDisabled:!t.allowsSorting}),T=S({...t,id:void 0,children:r.rendered,defaultClassName:`react-aria-Column`,values:{isHovered:w,isPressed:u,isFocused:d,isFocusVisible:f,allowsSorting:r.props.allowsSorting,sortDirection:a.sortDescriptor?.column===r.key?a.sortDescriptor.direction:void 0,isResizing:b,startResize:()=>{if(y)y.startResize(r.key),a.setKeyboardNavigationDisabled(!0);else throw Error(`Wrap your <Table> in a <ResizableTableContainer> to enable column resizing`)},sort:e=>{a.sort(r.key,e)}}}),E=T.style;y&&(E={...E,width:y.getColumnWidth(r.key)});let D=l(t,{global:!0});return delete D.id,e.createElement(q,{...h(D,c,p,C),...T,style:E,ref:i,"data-hovered":w||void 0,"data-pressed":u||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-resizing":b||void 0,"data-allows-sorting":r.props.allowsSorting||void 0,"data-sort-direction":a.sortDescriptor?.column===r.key?a.sortDescriptor.direction:void 0},e.createElement(x,{values:[[Y,{column:r,triggerRef:i}],[H,z]]},T.children))}),Y=n(null);var X=class extends O{};X.type=`tablebody`;var Z=class extends D{filter(e,t,n){let r=e.getChildren(this.key);for(let i of r)if(n(i.textValue,i)){let n=this.clone();return t.addDescendants(n,e),n}return null}};Z.type=`item`;let Q=r(function(t,n){let{isVirtualized:r}=o(H);return r?e.createElement(T.div,{...t,ref:n}):e.createElement(T.tr,{...t,ref:n})});var ne=class extends D{};ne.type=`cell`;let $=r(function(t,n){let{isVirtualized:r}=o(H);return r?e.createElement(T.div,{...t,ref:n}):e.createElement(T.td,{...t,ref:n})});R(A,function(t,n,r){let i=o(U),{isVirtualized:a}=o(H),{isLoading:d,onLoadMore:f,scrollOffset:m,...g}=t,_=i.collection.columns.length,v=c(null),y=s(()=>({onLoadMore:f,collection:i?.collection,sentinelRef:v,scrollOffset:m}),[f,m,i?.collection]);p(y,v);let b=S({...g,id:void 0,children:r.rendered,defaultClassName:`react-aria-TableLoadingIndicator`,values:void 0}),x={},C={},w={};return a?(C[`aria-colspan`]=_,w={display:`contents`}):C.colSpan=_,e.createElement(e.Fragment,null,e.createElement(Q,{style:{height:0},inert:u(!0)},e.createElement($,{style:{padding:0,border:0}},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:v,style:{position:`relative`,height:1,width:1}}))),d&&b.children&&e.createElement(Q,{...h(l(t,{global:!0}),x),...b,role:`row`,ref:n},e.createElement($,{role:`rowheader`,...C,style:w},b.children)))});export{J as Column};
@@ -0,0 +1 @@
1
+ export { ColumnResizer, type ColumnResizerProps, type ColumnResizerRenderProps } from "react-aria-components";