@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
@@ -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"react-dom";import{useRadioGroup as p}from"react-aria";import{useRadioGroupState as m}from"react-stately";const h=Symbol(`default`);function g({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function _(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 v(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||h;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 y(e,t,n){let{ref:r,...i}=v(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 b(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 x(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 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=t({}),T=t({}),E=t(null),D=t(null),O=t(null);function k(t){let n=o({});return e.createElement(O.Provider,{value:n},t.children)}const A=t(null),j=t(null),M=n(function(t,n){[t,n]=y(t,n,A);let{validationBehavior:r}=v(D)||{},i=t.validationBehavior??r??`native`,a=m({...t,validationBehavior:i}),[o,s]=b(!t[`aria-label`]&&!t[`aria-labelledby`]),{radioGroupProps:u,labelProps:d,descriptionProps:f,errorMessageProps:h,...x}=p({...t,label:s,validationBehavior:i},a),S=_({...t,values:{orientation:t.orientation||`vertical`,isDisabled:a.isDisabled,isReadOnly:a.isReadOnly,isRequired:a.isRequired,isInvalid:a.isInvalid,state:a},defaultClassName:`react-aria-RadioGroup`}),O=c(t,{global:!0});return e.createElement(C.div,{...l(O,S,u),ref:n,slot:t.slot||void 0,"data-orientation":t.orientation||`vertical`,"data-invalid":a.isInvalid||void 0,"data-disabled":a.isDisabled||void 0,"data-readonly":a.isReadOnly||void 0,"data-required":a.isRequired||void 0},e.createElement(g,{values:[[j,a],[w,{...d,ref:o,elementType:`span`}],[T,{slots:{description:f,errorMessage:h}}],[E,x]]},e.createElement(k,null,S.children)))});export{M as RadioGroup};
@@ -0,0 +1 @@
1
+ export { RangeCalendar, type RangeCalendarProps, type RangeCalendarRenderProps } 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,useLocale as p,useRangeCalendar as m}from"react-aria";import{createCalendar as h}from"@internationalized/date";import{useRangeCalendarState 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}=p(),i=g({...t,locale:r,createCalendar:t.createCalendar||h}),{calendarProps:a,prevButtonProps:s,nextButtonProps:c,errorMessageProps:l,title:u}=m(t,i,n),v=b({...t,values:{state:i,isDisabled:t.isDisabled||!1,isInvalid:i.isValueInvalid},defaultClassName:`react-aria-RangeCalendar`}),x=o(t,{global:!0});return e.createElement(T.div,{...f(v,x,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 RangeCalendar};
@@ -0,0 +1 @@
1
+ export { ResizableTableContainer, type ResizableTableContainerProps } 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,inertValue as d,isScrollable as f,mergeRefs as p,useLayoutEffect as m,useLoadMoreSentinel as h,useObjectRef as g,useResizeObserver as _}from"@react-aria/utils";import"react-dom";import{mergeProps as v}from"react-aria";import{useTableColumnResizeState 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.")});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(()=>p(r,o),[r,o]);m(()=>{},[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]=M(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 ee=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}};ee.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=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=P()}))();const F=n(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const I=n(null);function L(e){var t;return t=class extends D{},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(E);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(E.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(null),G=r(function(t,n){let r=g(n),i=c(null),a=c(null),[o,d]=l(0);m(()=>{let e=i.current;for(;e&&e!==r.current&&!f(e);)e=e.parentElement;a.current=e},[r]),_({ref:a,box:`border-box`,onResize(){d(a.current?.clientWidth??0)}}),m(()=>{d(a.current?.clientWidth??0)},[]);let p=s(()=>({tableRef:i,scrollRef:a,tableWidth:o,useTableColumnResizeState:y,onResizeStart:t.onResizeStart,onResize:t.onResize,onResizeEnd:t.onResizeEnd}),[i,o,t.onResizeStart,t.onResize,t.onResizeEnd]);return e.createElement(T.div,{render:t.render,...u(t,{global:!0}),ref:r,className:t.className||`react-aria-ResizableTableContainer`,style:t.style,onScroll:t.onScroll},e.createElement(W.Provider,{value:p},t.children))}),K=n(null);var q=class extends D{};q.type=`tableheader`;var J=class extends D{};J.type=`column`;var Y=class extends O{};Y.type=`tablebody`;var X=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}};X.type=`item`;let Z=r(function(t,n){let{isVirtualized:r}=o(U);return r?e.createElement(T.div,{...t,ref:n}):e.createElement(T.tr,{...t,ref:n})});var Q=class extends D{};Q.type=`cell`;let $=r(function(t,n){let{isVirtualized:r}=o(U);return r?e.createElement(T.div,{...t,ref:n}):e.createElement(T.td,{...t,ref:n})});z(A,function(t,n,r){let i=o(K),{isVirtualized:a}=o(U),{isLoading:l,onLoadMore:f,scrollOffset:p,...m}=t,g=i.collection.columns.length,_=c(null),y=s(()=>({onLoadMore:f,collection:i?.collection,sentinelRef:_,scrollOffset:p}),[f,p,i?.collection]);h(y,_);let b=S({...m,id:void 0,children:r.rendered,defaultClassName:`react-aria-TableLoadingIndicator`,values:void 0}),x={},C={},w={};return a?(C[`aria-colspan`]=g,w={display:`contents`}):C.colSpan=g,e.createElement(e.Fragment,null,e.createElement(Z,{style:{height:0},inert:d(!0)},e.createElement($,{style:{padding:0,border:0}},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:_,style:{position:`relative`,height:1,width:1}}))),l&&b.children&&e.createElement(Z,{...v(u(t,{global:!0}),x),...b,role:`row`,ref:n},e.createElement($,{role:`rowheader`,...C,style:w},b.children)))});export{G as ResizableTableContainer};
@@ -0,0 +1 @@
1
+ export { RouterProvider } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import{RouterProvider as e}from"react-aria";import"react-stately";export{e as RouterProvider};
@@ -0,0 +1 @@
1
+ export { Row, type RowProps, type RowRenderProps } 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}from"react";import{filterDOMProps as u,inertValue as d,mergeRefs as f,useLayoutEffect as p,useLoadMoreSentinel as m,useObjectRef as h}from"@react-aria/utils";import{createPortal as g}from"react-dom";import{mergeProps as _,useFocusRing as v,useHover as ee,useTableRow as y,useTableSelectionCheckbox as b,useVisuallyHidden as x}from"react-aria";import"react-stately";var S=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),C=(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 te=n(null);n(null),n(null),n(null),n(null),n({}),n(null),n(null);const w=Symbol(`default`);function ne({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function T(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 E(t,n,r){let{render:i,...a}=n,o=l(null),s=c(()=>f(r,o),[r,o]);p(()=>{},[t,i]);let u={...a,ref:s};return i?i(u,void 0):e.createElement(t,u)}const D={},O=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=D[t];return n||(n=r(E.bind(null,t)),D[t]=n),n}});String(Math.round(Math.random()*1e10));const k=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function A(){return!1}function j(){return!0}function M(e){return()=>{}}function N(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(M,A,j):o(k)}let P=e.createContext(null);var F=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}},I=class extends F{filter(e,t,n){let[r,i]=B(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},L=class extends F{};L.type=`header`;var R=class extends F{};R.type=`loader`;var re=class extends I{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};re.type=`item`;var z=class extends I{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}};z.type=`section`;function B(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 V(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])}
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=S((e=>{var t=C(`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}));S(((e,t)=>{t.exports=ie()}))();const H=n(!1),U=n(null);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const W=n(null);function ae(e){var t;return t=class extends F{},t.type=e,t}function G(t,n,r,i,s,c){typeof t==`string`&&(t=ae(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(W);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(W.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function oe(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(P);if(!o(H)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return G(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(P.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}function se(t,n,i=K){let a=({node:e})=>n(e.props,e.props.ref,e),o=r((n,r)=>G(t,n,r,null,i(n),t=>e.createElement(a,{node:t}))??e.createElement(e.Fragment,null));return o.displayName=n.name,o}function K(e){return V({...e,addIdAndValue:!0})}const q=n(null);function ce(t){let n=o(q),r=(n?.dependencies||[]).concat(t.dependencies),i=t.idScope??n?.idScope,a=K({...t,idScope:i,dependencies:r});return o(U)&&(a=e.createElement(le,null,a)),n=c(()=>({dependencies:r,idScope:i}),[i,...r]),e.createElement(q.Provider,{value:n},a)}function le({children:t}){let n=o(U),r=c(()=>e.createElement(U.Provider,{value:null},e.createElement(H.Provider,{value:!0},t)),[t]);return N()?e.createElement(W.Provider,{value:n},r):g(r,n)}const ue={CollectionRoot({collection:e,renderDropIndicator:t}){return J(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return J(e,t,n)}};function J(t,n,r){return V({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,de(t,n,r))}})}function de(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 Y=n(ue),fe=n({}),pe=n({}),me=n({isSelected:!1}),X=n(null);var he=class extends F{};he.type=`tableheader`;var ge=class extends F{};ge.type=`column`;var _e=class extends I{};_e.type=`tablebody`;var Z=class extends F{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(Y);return r?e.createElement(O.div,{...t,ref:n}):e.createElement(O.tr,{...t,ref:n})});const ve=se(Z,(t,n,r)=>{let i=h(n),a=o(X),{dragAndDropHooks:c,dragState:d,dropState:f}=o(pe),{isVirtualized:p,CollectionBranch:m}=o(Y),{rowProps:g,...S}=y({node:r,shouldSelectOnPressUp:!!d,isVirtualized:p},a,i),{isFocused:C,isFocusVisible:E,focusProps:D}=v(),{isFocusVisible:O,focusProps:k}=v({within:!0}),{hoverProps:A,isHovered:j}=ee({isDisabled:!S.allowsSelection&&!S.hasAction,onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),{checkboxProps:M}=b({key:r.key},a),N;d&&c&&(N=c.useDraggableItem({key:r.key,hasDragButton:!0},d));let P,F=l(null),{visuallyHiddenProps:I}=x();f&&c&&(P=c.useDropIndicator({target:{type:`item`,key:r.key,dropPosition:`on`}},f,F));let L=l(null);s(()=>{d&&L.current},[]);let R=d&&d.isDragging(r.key),{children:re,...z}=t,B=T({...z,id:void 0,defaultClassName:`react-aria-Row`,values:{...S,isHovered:j,isFocused:C,isFocusVisible:E,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior,isDragging:R,isDropTarget:P?.isDropTarget,isFocusVisibleWithin:O,id:r.key}}),V=u(t,{global:!0});return delete V.id,delete V.onClick,e.createElement(e.Fragment,null,P&&!P.isHidden&&e.createElement(Q,{role:`row`,style:{height:0}},e.createElement($,{role:`gridcell`,colSpan:a.collection.columnCount,style:{padding:0}},e.createElement(`div`,{role:`button`,...I,...P.dropIndicatorProps,ref:F}))),e.createElement(Q,{..._(V,B,g,D,A,N?.dragProps,k),ref:i,"data-disabled":S.isDisabled||void 0,"data-selected":S.isSelected||void 0,"data-hovered":j||void 0,"data-focused":S.isFocused||void 0,"data-focus-visible":E||void 0,"data-pressed":S.isPressed||void 0,"data-dragging":R||void 0,"data-drop-target":P?.isDropTarget||void 0,"data-selection-mode":a.selectionManager.selectionMode===`none`?void 0:a.selectionManager.selectionMode,"data-focus-visible-within":O||void 0},e.createElement(ne,{values:[[te,{slots:{[w]:{},selection:M}}],[fe,{slots:{[w]:{},drag:{...N?.dragButtonProps,ref:L,style:{pointerEvents:`none`}}}}],[me,{isSelected:S.isSelected}]]},e.createElement(m,{collection:a.collection,parent:r}))))},t=>{if(t.id==null&&typeof t.children==`function`)throw Error(`No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.`);let n=[t.value].concat(t.dependencies);return e.createElement(ce,{dependencies:n,items:t.columns,idScope:t.id},t.children)});var ye=class extends F{};ye.type=`cell`;let $=r(function(t,n){let{isVirtualized:r}=o(Y);return r?e.createElement(O.div,{...t,ref:n}):e.createElement(O.td,{...t,ref:n})});oe(R,function(t,n,r){let i=o(X),{isVirtualized:a}=o(Y),{isLoading:s,onLoadMore:f,scrollOffset:p,...h}=t,g=i.collection.columns.length,v=l(null),ee=c(()=>({onLoadMore:f,collection:i?.collection,sentinelRef:v,scrollOffset:p}),[f,p,i?.collection]);m(ee,v);let y=T({...h,id:void 0,children:r.rendered,defaultClassName:`react-aria-TableLoadingIndicator`,values:void 0}),b={},x={},S={};return a?(x[`aria-colspan`]=g,S={display:`contents`}):x.colSpan=g,e.createElement(e.Fragment,null,e.createElement(Q,{style:{height:0},inert:d(!0)},e.createElement($,{style:{padding:0,border:0}},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:v,style:{position:`relative`,height:1,width:1}}))),s&&y.children&&e.createElement(Q,{..._(u(t,{global:!0}),b),...y,role:`row`,ref:n},e.createElement($,{role:`rowheader`,...x,style:S},y.children)))});export{ve as Row};
@@ -0,0 +1 @@
1
+ export { SearchField, type SearchFieldProps, type SearchFieldRenderProps } 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{useSearchField as p}from"react-aria";import{useSearchFieldState as m}from"react-stately";t(null),t(null),t(null),t(null),t(null),t({}),t(null);const h=t(null),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(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}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}});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 E=t(!1);function D(e){let t=(t,n)=>i(E)?null:e(t,n);return t.displayName=e.displayName||e.name,n(t)}const O=t({}),k=t({}),A=t({}),j=t(null),M=t(null),N=t({}),P=t({}),F=t(null),I=D(function(t,n){[t,n]=b(t,n,F);let{validationBehavior:r}=y(M)||{},i=t.validationBehavior??r??`native`,a=o(null);[t,a]=b(t,a,h);let[s,l]=x(!t[`aria-label`]&&!t[`aria-labelledby`]),u=m({...t,validationBehavior:i}),{labelProps:d,inputProps:f,clearButtonProps:g,descriptionProps:C,errorMessageProps:w,...E}=p({...S(t),label:l,validationBehavior:i},u,a),D=v({...t,values:{isEmpty:u.value===``,isDisabled:t.isDisabled||!1,isInvalid:E.isInvalid||!1,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1,state:u},defaultClassName:`react-aria-SearchField`}),I=c(t,{global:!0});return delete I.id,e.createElement(T.div,{...I,...D,ref:n,slot:t.slot||void 0,"data-empty":u.value===``||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":E.isInvalid||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0},e.createElement(_,{values:[[O,{...d,ref:s}],[P,{...f,ref:a}],[k,g],[A,{slots:{description:C,errorMessage:w}}],[N,{isInvalid:E.isInvalid,isDisabled:t.isDisabled||!1}],[j,E]]},D.children))});export{I as SearchField};
@@ -0,0 +1 @@
1
+ export { Section, type SectionProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,useCallback as i,useContext as a,useMemo as o}from"react";import"react-dom";var s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(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)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;var l=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}},u=class extends l{filter(e,t,n){let[r,i]=h(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},d=class extends l{};d.type=`header`;var f=class extends l{};f.type=`loader`;var p=class extends u{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 m=class extends u{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 h(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 g(e){let{children:n,items:r,idScope:i,addIdAndValue:a,dependencies:s=[]}=e,c=o(()=>new WeakMap,s);return o(()=>{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 _=s((e=>{var t=c(`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 l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,l=r[1];return o(function(){c.value=n,c.getSnapshot=t,u(c)&&l({inst:c})},[e,n,t]),a(function(){return u(c)&&l({inst:c}),e(function(){u(c)&&l({inst:c})})},[e]),s(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}));s(((e,t)=>{t.exports=_()}))(),typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const v=n(null);function y(e){var t;return t=class extends l{},t.type=e,t}function b(t,n,r,o,s,c){typeof t==`string`&&(t=y(t));let l=i(e=>{e?.setProps(n,r,t,o,c)},[n,r,o,c,t]),u=a(v);if(u){let i=u.ownerDocument.nodesByProps.get(n);return i||(i=u.ownerDocument.createElement(t.type),i.setProps(n,r,t,o,c),u.appendChild(i),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(n,i)),s?e.createElement(v.Provider,{value:i},s):null}return e.createElement(t.type,{ref:l},s)}function x(t,n,i=S){let a=({node:e})=>n(e.props,e.props.ref,e),o=r((n,r)=>b(t,n,r,null,i(n),t=>e.createElement(a,{node:t}))??e.createElement(e.Fragment,null));return o.displayName=n.name,o}function S(e){return g({...e,addIdAndValue:!0})}const C=n(null),w=x(`section`,(e,t,n)=>{let{name:r,render:i}=a(C);return i(e,t,n,`react-aria-Section`)});export{w as Section};
@@ -0,0 +1 @@
1
+ export { Select, type SelectProps, type SelectRenderProps } 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,useState as s}from"react";import{filterDOMProps as c,inertValue as l,mergeProps as u,mergeRefs as d,useLayoutEffect as f,useLoadMoreSentinel as p,useObjectRef as m,useResizeObserver as h}from"@react-aria/utils";import"react-dom";import{HiddenSelect as g,mergeProps as _,useFocusRing as v,useSelect as ee}from"react-aria";import{useSelectState as te}from"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.")});const x=Symbol(`default`);function ne({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: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 C(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||x;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 w(e,t,n){let{ref:r,...i}=C(n,e.slot)||{},o=m(a(()=>d(t,r),[t,r])),s=u(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 re(e=!0){let[t,n]=s(e),i=o(!1),a=r(e=>{i.current=!0,n(!!e)},[]);return f(()=>{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(()=>d(r,c),[r,c]);f(()=>{},[t,i]);let u={...s,ref:l};return i?i(u,void 0):e.createElement(t,u)}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));const k=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function A(){return!1}function j(){return!0}function M(e){return()=>{}}function N(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(M,A,j):i(k)}let P=e.createContext(null);var F=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}},I=class extends F{filter(e,t,n){let[r,i]=B(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},L=class extends F{};L.type=`header`;var R=class extends F{};R.type=`loader`;var z=class extends I{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};z.type=`item`;var ie=class extends I{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}};ie.type=`section`;var ae=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]=B(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 B(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 V=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}},H=class e extends V{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}},oe=class extends V{get isConnected(){return!0}createElement(e){return new H(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 H&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof H?(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}};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 U=t(!1);function W(t){if(i(U))return e.createElement(e.Fragment,null,t.children);let n=e.createElement(U.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 G=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})),K=y(((e,t)=>{t.exports=G()}))();const se=t(!1),q=t(null);function ce(t){if(i(q))return t.content;let{collection:n,document:r}=fe(t.createCollection);return e.createElement(e.Fragment,null,e.createElement(W,null,e.createElement(q.Provider,{value:r},t.content)),e.createElement(le,{render:t.children,collection:n}))}function le({collection:e,render:t}){return t(e)}function ue(e,t,n){let i=N(),a=o(i);a.current=i;let s=r(()=>a.current?n():t(),[t,n]);return(0,K.useSyncExternalStore)(e,s)}const de=typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore:ue;function fe(e){let[t]=s(()=>new oe(e?.()||new ae)),n=r(e=>t.subscribe(e),[t]),i=r(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),a=r(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:de(n,i,a),document:t}}const J=t(null);function pe(e){var t;return t=class extends F{},t.type=e,t}function me(t,n,a,o,s,c){typeof t==`string`&&(t=pe(t));let l=r(e=>{e?.setProps(n,a,t,o,c)},[n,a,o,c,t]),u=i(J);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(J.Provider,{value:r},s):null}return e.createElement(t.type,{ref:l},s)}function he(t,r){let a=({node:e})=>r(e.props,e.props.ref,e),o=n((n,o)=>{let s=i(P);if(!i(se)){if(r.length>=3)throw Error(r.name+` cannot be rendered outside a collection.`);return r(n,o)}return me(t,n,o,`children`in n?n.children:null,null,t=>e.createElement(P.Provider,{value:s},e.createElement(a,{node:t})))});return o.displayName=r.name,o}const Y=t({}),X=t({}),Z=t({}),ge=t(null),_e=t(null),ve=t(null),Q=t(null);he(R,function(t,n,r){let s=i(Q),{isLoading:u,onLoadMore:d,scrollOffset:f,...m}=t,h=o(null),g=a(()=>({onLoadMore:d,collection:s?.collection,sentinelRef:h,scrollOffset:f}),[d,f,s?.collection]);p(g,h);let v=S({...m,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:h,style:{position:`absolute`,height:1,width:1}})),u&&v.children&&e.createElement(O.div,{..._(c(t,{global:!0}),{tabIndex:-1}),...v,role:`option`,ref:n},v.children))});const ye=t(null),be=t(null),$=t(null),xe=t(null),Se=n(function(t,n){[t,n]=w(t,n,$);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:s=!1}=t,c=a(()=>typeof r==`function`?r({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:s,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):r,[r,i,o,s]);return e.createElement(ce,{content:c},r=>e.createElement(we,{props:t,collection:r,selectRef:n}))}),Ce=[Y,X,Z];function we({props:t,selectRef:n,collection:i}){let{validationBehavior:l}=C(_e)||{},d=t.validationBehavior??l??`native`,f=te({...t,collection:i,children:void 0,validationBehavior:d}),{isFocusVisible:p,focusProps:m}=v({within:!0}),_=o(null),[y,b]=re(!t[`aria-label`]&&!t[`aria-labelledby`]),{labelProps:x,triggerProps:w,valueProps:E,menuProps:D,descriptionProps:k,errorMessageProps:A,hiddenSelectProps:j,...M}=ee({...T(t),label:b,validationBehavior:d},f,_),[N,P]=s(null),F=r(()=>{_.current&&P(_.current.offsetWidth+`px`)},[_]);h({ref:_,onResize:F});let I=a(()=>({isOpen:f.isOpen,isFocused:f.isFocused,isFocusVisible:p,isDisabled:t.isDisabled||!1,isInvalid:M.isInvalid||!1,isRequired:t.isRequired||!1}),[f.isOpen,f.isFocused,p,t.isDisabled,M.isInvalid,t.isRequired]),L=S({...t,values:I,defaultClassName:`react-aria-Select`}),R=c(t,{global:!0});delete R.id;let z=o(null);return e.createElement(ne,{values:[[$,t],[xe,f],[Te,E],[Y,{...x,ref:y,elementType:`span`}],[X,{...w,ref:_,isPressed:f.isOpen,autoFocus:t.autoFocus}],[be,f],[ye,{trigger:`Select`,triggerRef:_,scrollRef:z,placement:`bottom start`,style:{"--trigger-width":N},"aria-labelledby":D[`aria-labelledby`],clearContexts:Ce}],[ve,{...D,ref:z}],[Q,f],[Z,{slots:{description:k,errorMessage:A}}],[ge,M]]},e.createElement(O.div,{...u(R,L,m),ref:n,slot:t.slot||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":p||void 0,"data-open":f.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":M.isInvalid||void 0,"data-required":t.isRequired||void 0},L.children,e.createElement(g,{...j,autoComplete:t.autoComplete})))}const Te=t(null);export{Se as Select};
@@ -0,0 +1 @@
1
+ export { SelectValue, type SelectValueProps, type SelectValueRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{Fragment as t,createContext as n,forwardRef as r,useContext 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{useListFormatter as f,useLocalizedStringFormatter as ee}from"react-aria";import"react-stately";const p=Symbol(`default`);function te(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||p;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 ne(e,t,n){let{ref:r,...i}=m(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 h(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 g={},re=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=g[t];return n||(n=r(h.bind(null,t)),g[t]=n),n}});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 _=n(!1);function v(e){let t=(t,n)=>i(_)?null:e(t,n);return t.displayName=e.displayName||e.name,r(t)}const ie=n({});var y={};y={colorSwatchPicker:`تغييرات الألوان`,dropzoneLabel:`DropZone`,selectPlaceholder:`حدد عنصرًا`,tableResizer:`أداة تغيير الحجم`};var b={};b={colorSwatchPicker:`Цветови мостри`,dropzoneLabel:`DropZone`,selectPlaceholder:`Изберете предмет`,tableResizer:`Преоразмерител`};var x={};x={colorSwatchPicker:`Vzorky barev`,dropzoneLabel:`Místo pro přetažení`,selectPlaceholder:`Vyberte položku`,tableResizer:`Změna velikosti`};var S={};S={colorSwatchPicker:`Farveprøver`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vælg et element`,tableResizer:`Størrelsesændring`};var C={};C={colorSwatchPicker:`Farbfelder`,dropzoneLabel:`Ablegebereich`,selectPlaceholder:`Element wählen`,tableResizer:`Größenanpassung`};var w={};w={colorSwatchPicker:`Χρωματικά δείγματα`,dropzoneLabel:`DropZone`,selectPlaceholder:`Επιλέξτε ένα αντικείμενο`,tableResizer:`Αλλαγή μεγέθους`};var T={};T={selectPlaceholder:`Select an item`,tableResizer:`Resizer`,dropzoneLabel:`DropZone`,colorSwatchPicker:`Color swatches`};var E={};E={colorSwatchPicker:`Muestras de colores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Seleccionar un artículo`,tableResizer:`Cambiador de tamaño`};var D={};D={colorSwatchPicker:`Värvinäidised`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valige üksus`,tableResizer:`Suuruse muutja`};var O={};O={colorSwatchPicker:`Värimallit`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valitse kohde`,tableResizer:`Koon muuttaja`};var k={};k={colorSwatchPicker:`Échantillons de couleurs`,dropzoneLabel:`DropZone`,selectPlaceholder:`Sélectionner un élément`,tableResizer:`Redimensionneur`};var A={};A={colorSwatchPicker:`דוגמיות צבע`,dropzoneLabel:`DropZone`,selectPlaceholder:`בחר פריט`,tableResizer:`שינוי גודל`};var j={};j={colorSwatchPicker:`Uzorci boja`,dropzoneLabel:`Zona spuštanja`,selectPlaceholder:`Odaberite stavku`,tableResizer:`Promjena veličine`};var M={};M={colorSwatchPicker:`Színtárak`,dropzoneLabel:`DropZone`,selectPlaceholder:`Válasszon ki egy elemet`,tableResizer:`Átméretező`};var N={};N={colorSwatchPicker:`Campioni di colore`,dropzoneLabel:`Zona di rilascio`,selectPlaceholder:`Seleziona un elemento`,tableResizer:`Ridimensionamento`};var P={};P={colorSwatchPicker:`カラースウォッチ`,dropzoneLabel:`ドロップゾーン`,selectPlaceholder:`項目を選択`,tableResizer:`サイズ変更ツール`};var F={};F={colorSwatchPicker:`색상 견본`,dropzoneLabel:`드롭 영역`,selectPlaceholder:`항목 선택`,tableResizer:`크기 조정기`};var I={};I={colorSwatchPicker:`Spalvų pavyzdžiai`,dropzoneLabel:`„DropZone“`,selectPlaceholder:`Pasirinkite elementą`,tableResizer:`Dydžio keitiklis`};var L={};L={colorSwatchPicker:`Krāsu paraugi`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izvēlēties vienumu`,tableResizer:`Izmēra mainītājs`};var R={};R={colorSwatchPicker:`Fargekart`,dropzoneLabel:`Droppsone`,selectPlaceholder:`Velg et element`,tableResizer:`Størrelsesendrer`};var z={};z={colorSwatchPicker:`kleurstalen`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecteer een item`,tableResizer:`Resizer`};var B={};B={colorSwatchPicker:`Próbki kolorów`,dropzoneLabel:`Strefa upuszczania`,selectPlaceholder:`Wybierz element`,tableResizer:`Zmiana rozmiaru`};var V={};V={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var H={};H={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var U={};U={colorSwatchPicker:`Specimene de culoare`,dropzoneLabel:`Zonă de plasare`,selectPlaceholder:`Selectați un element`,tableResizer:`Instrument de redimensionare`};var W={};W={colorSwatchPicker:`Цветовые образцы`,dropzoneLabel:`DropZone`,selectPlaceholder:`Выберите элемент`,tableResizer:`Средство изменения размера`};var G={};G={colorSwatchPicker:`Vzorkovníky farieb`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vyberte položku`,tableResizer:`Nástroj na zmenu veľkosti`};var K={};K={colorSwatchPicker:`Barvne palete`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izberite element`,tableResizer:`Spreminjanje velikosti`};var q={};q={colorSwatchPicker:`Uzorci boje`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izaberite stavku`,tableResizer:`Promena veličine`};var J={};J={colorSwatchPicker:`Färgrutor`,dropzoneLabel:`DropZone`,selectPlaceholder:`Välj en artikel`,tableResizer:`Storleksändrare`};var Y={};Y={colorSwatchPicker:`Renk örnekleri`,dropzoneLabel:`Bırakma Bölgesi`,selectPlaceholder:`Bir öğe seçin`,tableResizer:`Yeniden boyutlandırıcı`};var X={};X={colorSwatchPicker:`Зразки кольорів`,dropzoneLabel:`DropZone`,selectPlaceholder:`Виберіть елемент`,tableResizer:`Засіб змінення розміру`};var Z={};Z={colorSwatchPicker:`颜色色板`,dropzoneLabel:`放置区域`,selectPlaceholder:`选择一个项目`,tableResizer:`尺寸调整器`};var Q={};Q={colorSwatchPicker:`色票`,dropzoneLabel:`放置區`,selectPlaceholder:`選取項目`,tableResizer:`大小調整器`};var $={};$={"ar-AE":y,"bg-BG":b,"cs-CZ":x,"da-DK":S,"de-DE":C,"el-GR":w,"en-US":T,"es-ES":E,"et-EE":D,"fi-FI":O,"fr-FR":k,"he-IL":A,"hr-HR":j,"hu-HU":M,"it-IT":N,"ja-JP":P,"ko-KR":F,"lt-LT":I,"lv-LV":L,"nb-NO":R,"nl-NL":z,"pl-PL":B,"pt-BR":V,"pt-PT":H,"ro-RO":U,"ru-RU":W,"sk-SK":G,"sl-SI":K,"sr-SP":q,"sv-SE":J,"tr-TR":Y,"uk-UA":X,"zh-CN":Z,"zh-TW":Q};function ae(e){return e&&e.__esModule?e.default:e}const oe=n(null),se=n(null),ce=n(null),le=v(function(n,r){[n,r]=ne(n,r,ce);let o=i(se),{placeholder:c}=m(oe),l=o.selectedItems.map(e=>{let t=e.props?.children;return typeof t==`function`&&(t=t({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:`single`,selectionBehavior:`toggle`})),t}),u=f(),d=a(()=>o.selectedItems.map(e=>e?.textValue),[o.selectedItems]),p=o.selectionManager.selectionMode,h=a(()=>p===`single`?d[0]??``:u.format(d),[p,u,d]),g=a(()=>{if(p===`single`)return l[0];let n=u.formatToParts(d);if(n.length===0)return null;let r=0;return n.map(n=>n.type===`element`?e.createElement(t,{key:r},l[r++]):n.value)},[p,u,d,l]),_=ee(ae($),`react-aria-components`),v=te({...n,defaultChildren:g??c??_.format(`selectPlaceholder`),defaultClassName:`react-aria-SelectValue`,values:{selectedItem:o.selectedItems[0]?.value??null,selectedItems:a(()=>o.selectedItems.map(e=>e.value??null),[o.selectedItems]),selectedText:h,isPlaceholder:o.selectedItems.length===0,state:o}}),y=s(n,{global:!0});return e.createElement(re.span,{ref:r,...y,...v,"data-placeholder":o.selectedItems.length===0||void 0},e.createElement(ie.Provider,{value:void 0},v.children))});export{le as SelectValue};
@@ -0,0 +1 @@
1
+ export { SelectionIndicator, type SelectionIndicatorProps } 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,useState as o}from"react";import{mergeProps as s,mergeRefs as c,useLayoutEffect as l,useObjectRef as u}from"@react-aria/utils";import{flushSync as d}from"react-dom";import{useObjectRef as f}from"react-aria";const p=Symbol(`default`);function m(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 h(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||p;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 g(e,t,n){let{ref:r,...a}=h(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 _(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={},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=n(function(t,n){let{name:i,isVisible:a=!0,children:s,className:c,style:u,render:p,...h}=t,[g,_]=o(a?`visible`:`hidden`),v=r(b);if(!v)throw Error(`<SharedElement> must be rendered inside a <SharedElementTransition>`);a&&g===`hidden`&&_(`visible`),n=f(n),l(()=>{let e=n.current,t=v.current,r=t[i],o=null;if(e&&a&&r){_(`visible`);let n=e.getAnimations(),a=r.style.map(([t,n])=>{let i=e.style[t];if(t===`translate`){let t=r.rect,n=e.getBoundingClientRect(),i=t.left-n?.left,a=t.top-n?.top;e.style.translate=`${i}px ${a}px`}else e.style[t]=n;return[t,i]});for(let t of e.getAnimations())n.includes(t)||t.cancel();o=requestAnimationFrame(()=>{o=null;for(let[t,n]of a)e.style[t]=n}),delete t[i]}else e&&a&&!r?(queueMicrotask(()=>d(()=>_(`entering`))),o=requestAnimationFrame(()=>{o=null,_(`visible`)})):e&&!a&&queueMicrotask(()=>{t[i]?(delete t[i],d(()=>_(`exiting`)),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>_(`hidden`)).catch(()=>{})):_(`hidden`)});return()=>{if(o!=null&&cancelAnimationFrame(o),e&&e.isConnected&&!e.hasAttribute(`data-exiting`)){let n=window.getComputedStyle(e);if(n.transitionProperty!==`none`){let r=n.transitionProperty.split(/\s*,\s*/);t[i]={rect:e.getBoundingClientRect(),style:r.map(e=>[e,n[e]])}}}}},[n,v,i,a]);let x=m({children:s,className:c,style:u,render:p,values:{isEntering:g===`entering`,isExiting:g===`exiting`}});return g===`hidden`?null:e.createElement(y.div,{...h,...x,ref:n,"data-entering":g===`entering`||void 0,"data-exiting":g===`exiting`||void 0})}),S=t({isSelected:!1}),C=n(function(t,n){[t,n]=g(t,n,S);let{isSelected:r,...i}=t;return e.createElement(x,{...i,ref:n,className:t.className||`react-aria-SelectionIndicator`,name:`SelectionIndicator`,isVisible:r})});export{C as SelectionIndicator};
@@ -0,0 +1 @@
1
+ export { Separator, type SeparatorProps } 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,mergeProps as c,mergeRefs as l,useLayoutEffect as u,useObjectRef as d}from"@react-aria/utils";import"react-dom";import{useSeparator as f}from"react-aria";var p=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),m=(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 h=Symbol(`default`);function g(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||h;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 _(e,t,n){let{ref:r,...i}=g(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 v(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 y={},b=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}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let x=e.createContext(null);var S=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}},C=class extends S{filter(e,t,n){let[r,i]=O(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},w=class extends S{};w.type=`header`;var T=class extends S{};T.type=`loader`;var E=class extends C{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};E.type=`item`;var D=class extends C{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}};D.type=`section`;function O(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 k=p((e=>{var t=m(`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}));p(((e,t)=>{t.exports=k()}))();const A=t(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const j=t(null);function M(e){var t;return t=class extends S{},t.type=e,t}function N(t,n,a,o,s,c){typeof t==`string`&&(t=M(t));let l=r(e=>{e?.setProps(n,a,t,o,c)},[n,a,o,c,t]),u=i(j);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(j.Provider,{value:r},s):null}return e.createElement(t.type,{ref:l},s)}function P(t,r){let a=({node:e})=>r(e.props,e.props.ref,e),o=n((n,o)=>{let s=i(x);if(!i(A)){if(r.length>=3)throw Error(r.name+` cannot be rendered outside a collection.`);return r(n,o)}return N(t,n,o,`children`in n?n.children:null,null,t=>e.createElement(x.Provider,{value:s},e.createElement(a,{node:t})))});return o.displayName=r.name,o}const F=t({});var I=class extends S{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}};I.type=`separator`;const L=P(I,function(t,n){[t,n]=_(t,n,F);let{elementType:r,orientation:i,style:a,className:o,slot:l,...u}=t,d=r||`hr`;d===`hr`&&i===`vertical`&&(d=`div`);let p=b[d],{separatorProps:m}=f({...u,elementType:r,orientation:i}),h=s(t,{global:!0});return e.createElement(p,{render:t.render,...c(h,m),style:a,className:o??`react-aria-Separator`,ref:n,slot:l||void 0})});export{L as Separator};
@@ -0,0 +1 @@
1
+ export { SharedElement, type SharedElementProps, type SharedElementRenderProps } 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,useState as o}from"react";import{mergeRefs as s,useLayoutEffect as c}from"@react-aria/utils";import{flushSync as l}from"react-dom";import{useObjectRef as u}from"react-aria";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(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 p={},m=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=p[t];return r||(r=n(f.bind(null,t)),p[t]=r),r}}),h=t(null),g=n(function(t,n){let{name:i,isVisible:a=!0,children:s,className:f,style:p,render:g,..._}=t,[v,y]=o(a?`visible`:`hidden`),b=r(h);if(!b)throw Error(`<SharedElement> must be rendered inside a <SharedElementTransition>`);a&&v===`hidden`&&y(`visible`),n=u(n),c(()=>{let e=n.current,t=b.current,r=t[i],o=null;if(e&&a&&r){y(`visible`);let n=e.getAnimations(),a=r.style.map(([t,n])=>{let i=e.style[t];if(t===`translate`){let t=r.rect,n=e.getBoundingClientRect(),i=t.left-n?.left,a=t.top-n?.top;e.style.translate=`${i}px ${a}px`}else e.style[t]=n;return[t,i]});for(let t of e.getAnimations())n.includes(t)||t.cancel();o=requestAnimationFrame(()=>{o=null;for(let[t,n]of a)e.style[t]=n}),delete t[i]}else e&&a&&!r?(queueMicrotask(()=>l(()=>y(`entering`))),o=requestAnimationFrame(()=>{o=null,y(`visible`)})):e&&!a&&queueMicrotask(()=>{t[i]?(delete t[i],l(()=>y(`exiting`)),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>y(`hidden`)).catch(()=>{})):y(`hidden`)});return()=>{if(o!=null&&cancelAnimationFrame(o),e&&e.isConnected&&!e.hasAttribute(`data-exiting`)){let n=window.getComputedStyle(e);if(n.transitionProperty!==`none`){let r=n.transitionProperty.split(/\s*,\s*/);t[i]={rect:e.getBoundingClientRect(),style:r.map(e=>[e,n[e]])}}}}},[n,b,i,a]);let x=d({children:s,className:f,style:p,render:g,values:{isEntering:v===`entering`,isExiting:v===`exiting`}});return v===`hidden`?null:e.createElement(m.div,{..._,...x,ref:n,"data-entering":v===`entering`||void 0,"data-exiting":v===`exiting`||void 0})});export{g as SharedElement};
@@ -0,0 +1 @@
1
+ export { SharedElementTransition, type SharedElementTransitionProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,useRef as n}from"react";import"@react-aria/utils";import"react-dom";import"react-aria";const r=t(null);function i(t){let i=n({});return e.createElement(r.Provider,{value:i},t.children)}export{i as SharedElementTransition};
@@ -0,0 +1 @@
1
+ export { Slider, type SliderProps, type SliderRenderProps } 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,useNumberFormatter as m,useSlider as h}from"react-aria";import{useSliderState as g}from"react-stately";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=n(function(t,n){[t,n]=x(t,n,D);let r=o(null),i=m(t.formatOptions),a=g({...t,numberFormatter:i}),[s,l]=S(!t[`aria-label`]&&!t[`aria-labelledby`]),{groupProps:u,trackProps:d,labelProps:f,outputProps:_}=h({...t,label:l},a,r),b=y({...t,values:{orientation:a.orientation,isDisabled:a.isDisabled,state:a},defaultClassName:`react-aria-Slider`}),C=c(t,{global:!0});return delete C.id,e.createElement(v,{values:[[O,a],[k,{...d,ref:r}],[A,_],[E,{...f,ref:s}]]},e.createElement(T.div,{...p(C,b,u),ref:n,slot:t.slot||void 0,"data-orientation":a.orientation,"data-disabled":a.isDisabled||void 0}))});export{j as Slider};
@@ -0,0 +1 @@
1
+ export { SliderOutput, type SliderOutputProps } 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{children:i,style:a,className:o,render:s,...c}=t,l=r(_),u=d({className:o,style:a,children:i,render:s,defaultChildren:l.getThumbValueLabel(0),defaultClassName:`react-aria-SliderOutput`,values:{orientation:l.orientation,isDisabled:l.isDisabled,state:l}});return e.createElement(g.output,{...c,...u,ref:n,"data-orientation":l.orientation||void 0,"data-disabled":l.isDisabled||void 0})});export{y as SliderOutput};
@@ -0,0 +1 @@
1
+ export { SliderThumb, type SliderThumbProps, type SliderThumbRenderProps } 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,mergeRefs as l,useLayoutEffect as u}from"@react-aria/utils";import{VisuallyHidden as d,mergeProps as f,useFocusRing as p,useHover as m,useSliderThumb as h}from"react-aria";import"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=!0){let[t,n]=s(e),i=o(!1),a=r(e=>{i.current=!0,n(!!e)},[]);return u(()=>{i.current||n(!1)},[]),[a,t]}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=t({}),T=t(null),E=t(null),D=n(function(t,n){let{inputRef:r=null}=t,a=i(T),{ref:s}=y(E),{index:l=0}=t,u=o(null),g=r||u,[x,S]=b(!t[`aria-label`]&&!t[`aria-labelledby`]),{thumbProps:D,inputProps:O,labelProps:k,isDragging:A,isFocused:j,isDisabled:M}=h({...t,index:l,trackRef:s,inputRef:g,label:S},a),{focusProps:N,isFocusVisible:P}=p(),{hoverProps:F,isHovered:I}=m(t),L=v({...t,defaultClassName:`react-aria-SliderThumb`,values:{state:a,isHovered:I,isDragging:A,isFocused:j,isFocusVisible:P,isDisabled:M}}),R=c(t,{global:!0});return delete R.id,e.createElement(C.div,{...f(R,D,F),...L,ref:n,style:{...D.style,...L.style},"data-hovered":I||void 0,"data-dragging":A||void 0,"data-focused":j||void 0,"data-focus-visible":P||void 0,"data-disabled":M||void 0},e.createElement(d,null,e.createElement(`input`,{ref:g,...f(O,N)})),e.createElement(_,{values:[[w,{...k,ref:x}]]},L.children))});export{D as SliderThumb};
@@ -0,0 +1 @@
1
+ export { SliderTrack, type SliderTrackProps, type SliderTrackRenderProps } 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{mergeProps as u,useHover as d}from"react-aria";import"react-stately";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)||{},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 g(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=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=t(null),x=n(function(t,n){[t,n]=h(t,n,b);let i=r(y),{onHoverStart:a,onHoverEnd:o,onHoverChange:s,...c}=t,{hoverProps:l,isHovered:f}=d({onHoverStart:a,onHoverEnd:o,onHoverChange:s}),m=p({...t,defaultClassName:`react-aria-SliderTrack`,values:{orientation:i.orientation,isDisabled:i.isDisabled,isHovered:f,state:i}});return e.createElement(v.div,{...u(c,l),...m,ref:n,"data-hovered":f||void 0,"data-orientation":i.orientation||void 0,"data-disabled":i.isDisabled||void 0})});export{x as SliderTrack};
@@ -0,0 +1 @@
1
+ export { SSRProvider } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import{SSRProvider as e}from"react-aria";import"react-stately";export{e as SSRProvider};
@@ -0,0 +1 @@
1
+ export { SubmenuTrigger, type SubmenuTriggerProps } 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{mergeRefs as l,useLayoutEffect as u,useObjectRef as d}from"@react-aria/utils";import"react-dom";import{useSubmenuTrigger as f}from"react-aria";import{useSubmenuTriggerState as p}from"react-stately";var m=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),h=(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 g({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function _(t,n,r){let{render:i,...a}=n,o=c(null),d=s(()=>l(r,o),[r,o]);u(()=>{},[t,i]);let f={...a,ref:d};return i?i(f,void 0):e.createElement(t,f)}const v={};new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=v[t];return n||(n=r(_.bind(null,t)),v[t]=n),n}}),String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;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]}function E(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 D=m((e=>{var t=h(`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}));m(((e,t)=>{t.exports=D()}))(),typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const O=n(null);function k(e){var t;return t=class extends y{},t.type=e,t}function A(t,n,r,i,s,c){typeof t==`string`&&(t=k(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(O);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(O.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function j(t,n,i=M){let a=({node:e})=>n(e.props,e.props.ref,e),o=r((n,r)=>A(t,n,r,null,i(n),t=>e.createElement(a,{node:t}))??e.createElement(e.Fragment,null));return o.displayName=n.name,o}function M(e){return E({...e,addIdAndValue:!0})}const N={CollectionRoot({collection:e,renderDropIndicator:t}){return P(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return P(e,t,n)}};function P(t,n,r){return E({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,F(t,n,r))}})}function F(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 I=n(N),L=n(null),R=n(null),z=n(null),B=n(null),V=n(null);var H=class extends y{filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};H.type=`submenutrigger`;const U=j(H,(t,n,r)=>{let{CollectionBranch:i}=o(I),a=o(z),s=o(B),l=p({triggerKey:r.key},s),u=c(null),m=d(n),{parentMenuRef:h,shouldUseVirtualFocus:_}=o(V),{submenuTriggerProps:v,submenuProps:y,popoverProps:b}=f({parentMenuRef:h,submenuRef:u,delay:t.delay,shouldUseVirtualFocus:_},l,m);return e.createElement(g,{values:[[W,{...v,onAction:void 0,ref:m}],[R,{ref:u,...y}],[G,l],[L,{trigger:`SubmenuTrigger`,triggerRef:m,placement:`end top`,"aria-labelledby":y[`aria-labelledby`],...b}]]},e.createElement(i,{collection:a.collection,parent:r}),t.children[1])},e=>e.children[0]),W=n(null),G=n(null);export{U as SubmenuTrigger};
@@ -0,0 +1 @@
1
+ export { Switch, type SwitchProps, type SwitchRenderProps } 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,useFocusRing as p,useHover as m,useSwitch as h}from"react-aria";import{useToggleState as g}from"react-stately";const _=Symbol(`default`);function v(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 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,...a}=y(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 x(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function S(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 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(null),E=n(function(t,n){let{inputRef:r=null,...i}=t;[t,n]=b(i,n,T);let a=u(c(r,t.inputRef===void 0?null:t.inputRef)),s=g(t),{labelProps:l,inputProps:_,isSelected:y,isDisabled:S,isReadOnly:C,isPressed:E}=h({...x(t),children:typeof t.children==`function`||t.children},s,a),{isFocused:D,isFocusVisible:O,focusProps:k}=p(),A=t.isDisabled||t.isReadOnly,{hoverProps:j,isHovered:M}=m({...t,isDisabled:A}),N=v({...t,defaultClassName:`react-aria-Switch`,values:{isSelected:y,isPressed:E,isHovered:M,isFocused:D,isFocusVisible:O,isDisabled:S,isReadOnly:C,state:s}}),P=o(t,{global:!0});return delete P.id,delete P.onClick,e.createElement(w.label,{...f(P,l,j,N),ref:n,slot:t.slot||void 0,"data-selected":y||void 0,"data-pressed":E||void 0,"data-hovered":M||void 0,"data-focused":D||void 0,"data-focus-visible":O||void 0,"data-disabled":S||void 0,"data-readonly":C||void 0},e.createElement(d,{elementType:`span`},e.createElement(`input`,{...f(_,k),ref:a})),N.children)});export{E as Switch};
@@ -0,0 +1 @@
1
+ export { Tab, type TabProps, type TabRenderProps } 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,useObjectRef as u}from"@react-aria/utils";import"react-dom";import{mergeProps as d,useFocusRing as f,useHover as p,useTab as m}from"react-aria";import"react-stately";var h=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),g=(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 _(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 v(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 y={},b=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}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let x=e.createContext(null);var S=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}},C=class extends S{filter(e,t,n){let[r,i]=O(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},w=class extends S{};w.type=`header`;var T=class extends S{};T.type=`loader`;var E=class extends C{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};E.type=`item`;var D=class extends C{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}};D.type=`section`;function O(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 k=h((e=>{var t=g(`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}));h(((e,t)=>{t.exports=k()}))();const A=t(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const j=t(null);function M(e){var t;return t=class extends S{},t.type=e,t}function N(t,n,a,o,s,c){typeof t==`string`&&(t=M(t));let l=r(e=>{e?.setProps(n,a,t,o,c)},[n,a,o,c,t]),u=i(j);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(j.Provider,{value:r},s):null}return e.createElement(t.type,{ref:l},s)}function P(t,r){let a=({node:e})=>r(e.props,e.props.ref,e),o=n((n,o)=>{let s=i(x);if(!i(A)){if(r.length>=3)throw Error(r.name+` cannot be rendered outside a collection.`);return r(n,o)}return N(t,n,o,`children`in n?n.children:null,null,t=>e.createElement(x.Provider,{value:s},e.createElement(a,{node:t})))});return o.displayName=r.name,o}const F=t({isSelected:!1}),I=t(null);var L=class extends S{};L.type=`item`;const R=P(L,(t,n,r)=>{let a=i(I),o=u(n),{tabProps:c,isSelected:l,isDisabled:h,isPressed:g}=m({key:r.key,...t},a,o),{focusProps:v,isFocused:y,isFocusVisible:x}=f(),{hoverProps:S,isHovered:C}=p({isDisabled:h,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),w=_({...t,id:void 0,children:r.rendered,defaultClassName:`react-aria-Tab`,values:{isSelected:l,isDisabled:h,isFocused:y,isFocusVisible:x,isPressed:g,isHovered:C}}),T=r.props.href?b.a:b.div,E=s(t,{global:!0});return delete E.id,delete E.onClick,e.createElement(T,{...d(E,w,c,v,S),ref:o,"data-selected":l||void 0,"data-disabled":h||void 0,"data-focused":y||void 0,"data-focus-visible":x||void 0,"data-pressed":g||void 0,"data-hovered":C||void 0},e.createElement(F.Provider,{value:{isSelected:l}},w.children))});export{R as Tab};
@@ -0,0 +1 @@
1
+ export { TabList, type TabListProps, type TabListRenderProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useContext as a,useMemo as o,useRef as s}from"react";import{filterDOMProps as c,mergeRefs as l,useLayoutEffect as u,useObjectRef as d}from"@react-aria/utils";import{createPortal as f}from"react-dom";import{mergeProps as p,useTabList as m}from"react-aria";import"react-stately";var h=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),g=(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 _=Symbol(`default`);function v(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 y(e,t){let n=a(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(t,n,r){let{render:i,...a}=n,c=s(null),d=o(()=>l(r,c),[r,c]);u(()=>{},[t,i]);let f={...a,ref:d};return i?i(f,void 0):e.createElement(t,f)}const x={},S=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=x[t];return n||(n=r(b.bind(null,t)),x[t]=n),n}});String(Math.round(Math.random()*1e10));const C=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function w(){return!1}function T(){return!0}function E(e){return()=>{}}function D(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(E,w,T):a(C)}var O=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}},k=class extends O{filter(e,t,n){let[r,i]=P(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},A=class extends O{};A.type=`header`;var j=class extends O{};j.type=`loader`;var M=class extends k{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};M.type=`item`;var N=class extends k{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}};N.type=`section`;function P(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 F(e){let{children:n,items:r,idScope:i,addIdAndValue:a,dependencies:s=[]}=e,c=o(()=>new WeakMap,s);return o(()=>{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 I=h((e=>{var t=g(`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}));h(((e,t)=>{t.exports=I()}))();const L=n(!1),R=n(null);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const ee=n(null);function z(e){return F({...e,addIdAndValue:!0})}const B=n(null);function V(t){let n=a(B),r=(n?.dependencies||[]).concat(t.dependencies),i=t.idScope??n?.idScope,s=z({...t,idScope:i,dependencies:r});return a(R)&&(s=e.createElement(H,null,s)),n=o(()=>({dependencies:r,idScope:i}),[i,...r]),e.createElement(B.Provider,{value:n},s)}function H({children:t}){let n=a(R),r=o(()=>e.createElement(R.Provider,{value:null},e.createElement(L.Provider,{value:!0},t)),[t]);return D()?e.createElement(ee.Provider,{value:n},r):f(r,n)}const U={CollectionRoot({collection:e,renderDropIndicator:t}){return W(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return W(e,t,n)}};function W(t,n,r){return F({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,G(t,n,r))}})}function G(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 K=n(U);function q(e){return o(()=>e==null?null:new Set([e]),[e])}const J=n(null);function Y(t){let n=s({});return e.createElement(J.Provider,{value:n},t.children)}const X=n(null),Z=n(null),Q=r(function(t,n){return a(Z)?e.createElement($,{props:t,forwardedRef:n}):e.createElement(V,t)});function $({props:t,forwardedRef:n}){let r=a(Z),{CollectionRoot:i}=a(K),{orientation:o=`horizontal`,keyboardActivation:s=`automatic`}=y(X),l=d(n),{tabListProps:u}=m({...t,orientation:o,keyboardActivation:s},r,l),f=v({...t,children:null,defaultClassName:`react-aria-TabList`,values:{orientation:o,state:r}}),h=c(t,{global:!0});return delete h.id,e.createElement(S.div,{...p(h,f,u),ref:l,"data-orientation":o||void 0},e.createElement(Y,null,e.createElement(i,{collection:r.collection,persistedKeys:q(r.selectionManager.focusedKey)})))}var te=class extends O{};te.type=`item`;export{Q as TabList};
@@ -0,0 +1 @@
1
+ export { TabPanel, type TabPanelProps, type TabPanelRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useContext as a,useMemo as o,useRef as s,useState as c}from"react";import{filterDOMProps as l,inertValue as u,mergeRefs as d,useEnterAnimation as f,useExitAnimation as p,useLayoutEffect as m,useObjectRef as h}from"@react-aria/utils";import{mergeProps as g,useFocusRing as _,useTabPanel as v}from"react-aria";import"react-stately";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: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 x(t,n,r){let{render:i,...a}=n,c=s(null),l=o(()=>d(r,c),[r,c]);m(()=>{},[t,i]);let u={...a,ref:l};return i?i(u,void 0):e.createElement(t,u)}const S={},C=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=S[t];return n||(n=r(x.bind(null,t)),S[t]=n),n}});var w=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}},T=class extends w{filter(e,t,n){let[r,i]=A(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},E=class extends w{};E.type=`header`;var D=class extends w{};D.type=`loader`;var O=class extends T{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};O.type=`item`;var k=class extends T{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}};k.type=`section`;function A(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 j(e){let{children:n,items:r,idScope:i,addIdAndValue:a,dependencies:s=[]}=e,c=o(()=>new WeakMap,s);return o(()=>{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 M=n(!1);function N(e){let t=(t,n)=>a(M)?null:e(t,n);return t.displayName=e.displayName||e.name,r(t)}const P={CollectionRoot({collection:e,renderDropIndicator:t}){return F(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return F(e,t,n)}};function F(t,n,r){return j({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,I(t,n,r))}})}function I(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 L=n(P),R=n(null),z=n(null);var B=class extends w{};B.type=`item`;const V=N(function(t,n){let r=a(z),i=h(n),o=r.selectedKey===t.id,[s,l]=c(r.selectedKey==null?null:o);s==null&&r.selectedKey!=null?l(o):!o&&s&&l(!1);let u=p(i,o);return!o&&!t.shouldForceMount&&!u?null:e.createElement(H,{...t,tabPanelRef:i,isInitiallySelected:s||!1,isExiting:u})});function H(t){let n=a(z),{id:r,tabPanelRef:i,isInitiallySelected:o,isExiting:s,...c}=t,{tabPanelProps:d}=v(t,n,i),{focusProps:p,isFocused:m,isFocusVisible:h}=_(),x=n.selectedKey===t.id,S=f(i)&&!o,w=b({...t,defaultClassName:`react-aria-TabPanel`,values:{isFocused:m,isFocusVisible:h,isInert:u(!x),isEntering:S,isExiting:s,state:n}}),T=l(c,{global:!0});delete T.id;let E=x?g(T,d,p,w):g(T,w);return e.createElement(C.div,{...E,ref:i,"data-focused":m||void 0,"data-focus-visible":h||void 0,inert:u(!x||t.inert),"data-inert":x?void 0:`true`,"data-entering":S||void 0,"data-exiting":s||void 0},e.createElement(y,{values:[[R,null],[z,null]]},e.createElement(L.Provider,{value:P},w.children)))}export{V as TabPanel};
@@ -0,0 +1 @@
1
+ export { TabPanels, type TabPanelsProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,useContext as i,useMemo as a,useRef as o}from"react";import{filterDOMProps as s,mergeRefs as c,useLayoutEffect as l,useObjectRef as u}from"@react-aria/utils";import{createPortal as d}from"react-dom";import"react-aria";import"react-stately";var f=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),p=(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 m(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 h={},g=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=h[t];return n||(n=r(m.bind(null,t)),h[t]=n),n}});String(Math.round(Math.random()*1e10));const _=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function v(){return!1}function y(){return!0}function b(e){return()=>{}}function x(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(b,v,y):i(_)}var S=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}},C=class extends S{filter(e,t,n){let[r,i]=O(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},w=class extends S{};w.type=`header`;var T=class extends S{};T.type=`loader`;var E=class extends C{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};E.type=`item`;var D=class extends C{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}};D.type=`section`;function O(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 k(e){let{children:n,items:r,idScope:i,addIdAndValue:o,dependencies:s=[]}=e,c=a(()=>new WeakMap,s);return a(()=>{if(r&&typeof n==`function`){let e=[];for(let a of r){let r=c.get(a);if(!r){r=n(a);let e=r.props.id??a.key??a.id;if(e==null)throw Error(`Could not determine key for item`);i!=null&&(e=i+`:`+e),r=t(r,o?{key:e,id:e,value:a}:{key:e}),c.set(a,r)}e.push(r)}return e}if(typeof n!=`function`)return n},[n,r,c,i,o])}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 A=n(!1);function j(e){let t=(t,n)=>i(A)?null:e(t,n);return t.displayName=e.displayName||e.name,r(t)}
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=f((e=>{var t=p(`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}));f(((e,t)=>{t.exports=M()}))();const N=n(!1),P=n(null);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const F=n(null);function I(e){return k({...e,addIdAndValue:!0})}const L=n(null);function R(t){let n=i(L),r=(n?.dependencies||[]).concat(t.dependencies),o=t.idScope??n?.idScope,s=I({...t,idScope:o,dependencies:r});return i(P)&&(s=e.createElement(z,null,s)),n=a(()=>({dependencies:r,idScope:o}),[o,...r]),e.createElement(L.Provider,{value:n},s)}function z({children:t}){let n=i(P),r=a(()=>e.createElement(P.Provider,{value:null},e.createElement(N.Provider,{value:!0},t)),[t]);return x()?e.createElement(F.Provider,{value:n},r):d(r,n)}const B=n(null);var V=class extends S{};V.type=`item`;const H=j(function(t,n){let r=i(B),a=u(n),c=o(r.selectedKey),d=o(null),f=o(null);l(()=>{let e=a.current;if(e){if(f.current??=/width|height|all/.test(window.getComputedStyle(e).transition),f.current&&c.current!=null&&c.current!==r.selectedKey){e.style.setProperty(`--tab-panel-width`,`auto`),e.style.setProperty(`--tab-panel-height`,`auto`);let{width:t,height:n}=e.getBoundingClientRect();d.current&&(d.current.width!==t||d.current.height!==n)&&(e.style.setProperty(`--tab-panel-width`,d.current.width+`px`),e.style.setProperty(`--tab-panel-height`,d.current.height+`px`),window.getComputedStyle(e).height,e.style.setProperty(`--tab-panel-width`,t+`px`),e.style.setProperty(`--tab-panel-height`,n+`px`),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>{e.style.setProperty(`--tab-panel-width`,`auto`),e.style.setProperty(`--tab-panel-height`,`auto`)}).catch(()=>{}))}c.current=r.selectedKey}},[a,r.selectedKey]),r.selectedKey!=null&&r.selectedKey!==c.current&&a.current&&f.current&&(d.current=a.current.getBoundingClientRect());let p=s(t,{labelable:!0,global:!0});return delete p.id,e.createElement(g.div,{render:t.render,...p,ref:a,style:t.style,className:t.className||`react-aria-TabPanels`},e.createElement(R,t))});export{H as TabPanels};
@@ -0,0 +1 @@
1
+ export { Table, type TableProps, type TableRenderProps } from "react-aria-components";