@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,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useEffect as s,useMemo as c,useRef as l,useState as u}from"react";import{filterDOMProps as d,inertValue as ee,mergeProps as f,mergeRefs as p,useLayoutEffect as m,useLoadMoreSentinel as h,useObjectRef as g}from"@react-aria/utils";import{createPortal as _}from"react-dom";import{FocusScope as v,ListKeyboardDelegate as te,mergeProps as y,useFocusRing as b,useTable as x,useVisuallyHidden as S}from"react-aria";import{UNSTABLE_useFilteredTableState as ne,useMultipleSelectionState as C,useTableState as re}from"react-stately";var w=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),ie=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});n(null),n(null),n(null),n(null),n(null),n({});const T=n(null),ae=n(null),E=Symbol(`default`);function oe({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function D(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 O(e,t){let n=o(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||E;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function k(e,t,n){let{ref:r,...i}=O(n,e.slot)||{},a=g(c(()=>p(t,r),[t,r])),o=f(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(o.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[o,a]}function A(t,n,r){let{render:i,...a}=n,o=l(null),s=c(()=>p(r,o),[r,o]);m(()=>{},[t,i]);let u={...a,ref:s};return i?i(u,void 0):e.createElement(t,u)}const j={},M=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=j[t];return n||(n=r(A.bind(null,t)),j[t]=n),n}});String(Math.round(Math.random()*1e10));const N=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function P(){return!1}function F(){return!0}function I(e){return()=>{}}function L(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(I,P,F):o(N)}let R=e.createContext(null);var z=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 z{filter(e,t,n){let[r,i]=K(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},V=class extends z{};V.type=`header`;var H=class extends z{};H.type=`loader`;var U=class extends B{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};U.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`;var G=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]=K(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 K(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 q=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}},J=class e extends q{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}},se=class extends q{get isConnected(){return!0}createElement(e){return new J(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 J&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof J?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function Y(e){let{children:n,items:r,idScope:i,addIdAndValue:a,dependencies:o=[]}=e,s=c(()=>new WeakMap,o);return c(()=>{if(r&&typeof n==`function`){let e=[];for(let o of r){let r=s.get(o);if(!r){r=n(o);let e=r.props.id??o.key??o.id;if(e==null)throw Error(`Could not determine key for item`);i!=null&&(e=i+`:`+e),r=t(r,a?{key:e,id:e,value:o}:{key:e}),s.set(o,r)}e.push(r)}return e}if(typeof n!=`function`)return n},[n,r,s,i,a])}if(typeof HTMLTemplateElement<`u`){let e=Object.getOwnPropertyDescriptor(Node.prototype,`firstChild`).get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const ce=n(!1);function le(t){if(o(ce))return e.createElement(e.Fragment,null,t.children);let n=e.createElement(ce.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 ue=w((e=>{var t=ie(`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})),de=w(((e,t)=>{t.exports=ue()}))();const fe=n(!1),X=n(null);function pe(t){if(o(X))return t.content;let{collection:n,document:r}=_e(t.createCollection);return e.createElement(e.Fragment,null,e.createElement(le,null,e.createElement(X.Provider,{value:r},t.content)),e.createElement(me,{render:t.children,collection:n}))}function me({collection:e,render:t}){return t(e)}function he(e,t,n){let r=L(),i=l(r);i.current=r;let o=a(()=>i.current?n():t(),[t,n]);return(0,de.useSyncExternalStore)(e,o)}const ge=typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore:he;function _e(e){let[t]=u(()=>new se(e?.()||new G)),n=a(e=>t.subscribe(e),[t]),r=a(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),i=a(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:ge(n,r,i),document:t}}const Z=n(null);function ve(e){var t;return t=class extends z{},t.type=e,t}function ye(t,n,r,i,s,c){typeof t==`string`&&(t=ve(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(Z);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(Z.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function be(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(R);if(!o(fe)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return ye(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(R.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}function xe(e){return Y({...e,addIdAndValue:!0})}const Se=n(null);function Ce(t){let n=o(Se),r=(n?.dependencies||[]).concat(t.dependencies),i=t.idScope??n?.idScope,a=xe({...t,idScope:i,dependencies:r});return o(X)&&(a=e.createElement(we,null,a)),n=c(()=>({dependencies:r,idScope:i}),[i,...r]),e.createElement(Se.Provider,{value:n},a)}function we({children:t}){let n=o(X),r=c(()=>e.createElement(X.Provider,{value:null},e.createElement(fe.Provider,{value:!0},t)),[t]);return L()?e.createElement(Z.Provider,{value:n},r):_(r,n)}const Te={CollectionRoot({collection:e,renderDropIndicator:t}){return Ee(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Ee(e,t,n)}};function Ee(t,n,r){return Y({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 Q=n(Te),Oe=n({}),ke=n(null);function Ae(e,t,n){let r=e.focusedKey,i=null;if(t!=null&&t.isVirtualDragging?.call(t)&&n?.target?.type===`item`&&(i=n.target.key,n.target.dropPosition===`after`)){let e=n.collection.getKeyAfter(i),t=null;if(e!=null){let r=n.collection.getItem(i)?.level??0;for(;e;){let i=n.collection.getItem(e);if(!i)break;if(i.type!==`item`){e=n.collection.getKeyAfter(e);continue}if((i.level??0)<=r)break;t=e,e=n.collection.getKeyAfter(e)}}i=e??t??i}return c(()=>new Set([r,i].filter(e=>e!=null)),[r,i])}const je=n(null);function Me(t){let n=l({});return e.createElement(je.Provider,{value:n},t.children)}const Ne=`row-header-column-`+Math.random().toString(36).slice(2);let Pe=`row-header-column-`+Math.random().toString(36).slice(2);for(;Ne===Pe;)Pe=`row-header-column-`+Math.random().toString(36).slice(2);function Fe(e,t){if(t.length===0)return[];let n=[],r=new Map;for(let a of t){let t=a.parentKey,o=[a];for(;t;){let n=e.get(t);if(!n)break;if(r.has(n)){var i;(i=n).colSpan??(i.colSpan=0),n.colSpan++,n.colspan=n.colSpan;let{column:e,index:t}=r.get(n);if(t>o.length)break;for(let n=t;n<o.length;n++)e.splice(n,0,null);for(let t=o.length;t<e.length;t++)e[t]&&r.has(e[t])&&(r.get(e[t]).index=t)}else n.colSpan=1,n.colspan=1,o.push(n),r.set(n,{column:o,index:o.length-1});t=n.parentKey}n.push(o),a.index=n.length-1}let a=Math.max(...n.map(e=>e.length)),o=Array(a).fill(0).map(()=>[]),s=0;for(let e of n){let t=a-1;for(let n of e){if(n){let e=o[t],r=e.reduce((e,t)=>e+(t.colSpan??1),0);if(r<s){let i={type:`placeholder`,key:`placeholder-`+n.key,colspan:s-r,colSpan:s-r,index:r,value:null,rendered:null,level:t,hasChildNodes:!1,childNodes:[],textValue:``};e.length>0&&(e[e.length-1].nextKey=i.key,i.prevKey=e[e.length-1].key),e.push(i)}e.length>0&&(e[e.length-1].nextKey=n.key,n.prevKey=e[e.length-1].key),n.level=t,n.colIndex=s,e.push(n)}t--}s++}let c=0;for(let e of o){let n=e.reduce((e,t)=>e+(t.colSpan??1),0);if(n<t.length){let r={type:`placeholder`,key:`placeholder-`+e[e.length-1].key,colSpan:t.length-n,colspan:t.length-n,index:n,value:null,rendered:null,level:c,hasChildNodes:!1,childNodes:[],textValue:``,prevKey:e[e.length-1].key};e.push(r)}c++}return o.map((e,t)=>({type:`headerrow`,key:`headerrow-`+t,index:t,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:e,textValue:``}))}var Ie=class extends G{addNode(e){super.addNode(e),this.columnsDirty||=e.type===`column`,e.type===`tableheader`&&(this.head=e),e.type===`tablebody`&&(this.body=e)}commit(e,t,n=!1){this.updateColumns(n),this.rows=[];for(let e of this.getChildren(this.body.key)){let t=e.lastChildKey;if(t!=null){let e=this.getItem(t),r=(e.colIndex??e.index)+(e.colSpan??1);if(r!==this.columns.length&&!n)throw Error(`Cell count must match column count. Found ${r} cells and ${this.columns.length} columns.`)}this.rows.push(e)}super.commit(e,t,n)}updateColumns(e){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let t=new Map,n=e=>{e.type===`column`&&(t.set(e.key,e),e.hasChildNodes||(e.index=this.columns.length,this.columns.push(e),e.props.isRowHeader&&this.rowHeaderColumnKeys.add(e.key)));for(let t of this.getChildren(e.key))n(t)};for(let e of this.getChildren(this.head.key))n(e);if(this.headerRows=Fe(t,this.columns),this.columnsDirty=!1,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!e)throw Error(`A table must have at least one Column with the isRowHeader prop set to true`)}get columnCount(){return this.columns.length}*[Symbol.iterator](){this.head.key!==-1&&(yield this.head,yield this.body)}getFirstKey(){return this.body.firstChildKey}getLastKey(){return this.body.lastChildKey}getKeyAfter(e){let t=this.getItem(e);return t?.type===`column`?t.nextKey??null:super.getKeyAfter(e)}getKeyBefore(e){let t=this.getItem(e);if(t?.type===`column`)return t.prevKey??null;let n=super.getKeyBefore(e);return n!=null&&this.getItem(n)?.type===`tablebody`?null:n}getChildren(e){if(!this.getItem(e)){for(let t of this.headerRows)if(t.key===e)return t.childNodes}return super.getChildren(e)}clone(){let e=super.clone();return e.headerRows=this.headerRows,e.columns=this.columns,e.rowHeaderColumnKeys=this.rowHeaderColumnKeys,e.head=this.head,e.body=this.body,e}getTextValue(e){let t=this.getItem(e);if(!t)return``;if(t.textValue)return t.textValue;let n=this.rowHeaderColumnKeys,r=[];for(let t of this.getChildren(e)){let e=this.columns[t.index];if(n.has(e.key)&&t.textValue&&r.push(t.textValue),r.length===n.size)break}return r.join(` `)}constructor(...e){super(...e),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new We(-1),this.body=new Ke(-2),this.columnsDirty=!0}};const Le=n(null),Re=n(null),$=n(null),ze=n(null),Be=r(function(t,n){[t,n]=k(t,n,Re);let r=C(t),{selectionBehavior:i,selectionMode:a,disallowEmptySelection:o}=r,s=!!t.dragAndDropHooks?.useDraggableCollectionState,l=c(()=>({selectionBehavior:a===`none`?null:i,selectionMode:a,disallowEmptySelection:o,allowsDragging:s}),[i,a,o,s]),u=e.createElement(Ue.Provider,{value:l},e.createElement(Ce,t));return e.createElement(pe,{content:u,createCollection:()=>new Ie},i=>e.createElement(He,{props:t,forwardedRef:n,selectionState:r,collection:i}))});let Ve=r(function(t,n){let{isVirtualized:r}=o(Q);return r?e.createElement(M.div,{...t,ref:n}):e.createElement(M.table,{...t,ref:n})});function He({props:t,forwardedRef:n,selectionState:r,collection:i}){[t,n]=k(t,n,T);let{shouldUseVirtualFocus:a,disallowTypeAhead:u,filter:ee,...f}=t,m=o(Le);n=g(c(()=>p(n,m?.tableRef),[n,m?.tableRef]));let h=re({...f,collection:i,children:void 0,UNSAFE_selectionState:r}),_=ne(h,ee),{isVirtualized:S,layoutDelegate:C,dropTargetDelegate:w,CollectionRoot:ie}=o(Q),{dragAndDropHooks:E}=t,{gridProps:O}=x({...f,layoutDelegate:C,isVirtualized:S},_,n),A=_.selectionManager,j=!!E?.useDraggableCollectionState,M=!!E?.useDroppableCollectionState;l(j),l(M),s(()=>{},[j,M]);let N,P,F,I=!1,L=null,R=l(null);if(j&&E){N=E.useDraggableCollectionState({collection:_.collection,selectionManager:A,preview:E.renderDragPreview?R:void 0}),E.useDraggableCollection({},N,n);let t=E.DragPreview;L=E.renderDragPreview?e.createElement(t,{ref:R},E.renderDragPreview):null}if(M&&E){P=E.useDroppableCollectionState({collection:_.collection,selectionManager:A});let e=new te({collection:_.collection,disabledKeys:A.disabledKeys,disabledBehavior:A.disabledBehavior,ref:n,layoutDelegate:C}),t=E.dropTargetDelegate||w||new E.ListDropTargetDelegate(i.rows,n);F=E.useDroppableCollection({keyboardDelegate:e,dropTargetDelegate:t},P,n),I=P.isDropTarget({type:`root`})}let{focusProps:z,isFocused:B,isFocusVisible:V}=b(),H=D({...t,children:void 0,defaultClassName:`react-aria-Table`,values:{isDropTarget:I,isFocused:B,isFocusVisible:V,state:_}}),U=!!(j&&!N?.isDisabled),W=H.style,G=null;m&&(G=m.useTableColumnResizeState({tableWidth:m.tableWidth},_),S||(W={...W,tableLayout:`fixed`,width:`fit-content`}));let K=d(t,{global:!0});return e.createElement(oe,{values:[[$,_],[ze,G],[Oe,{dragAndDropHooks:E,dragState:N,dropState:P}],[ke,{render:Ze}],[T,null],[ae,null]]},e.createElement(v,null,e.createElement(Ve,{...y(K,H,O,z,F?.collectionProps),style:W,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-allows-dragging":U||void 0,"data-drop-target":I||void 0,"data-focused":B||void 0,"data-focus-visible":V||void 0},e.createElement(Me,null,e.createElement(ie,{collection:_.collection,scrollRef:m?.scrollRef??n,persistedKeys:Ae(A,E,P)})))),L)}const Ue=n(null);var We=class extends z{};We.type=`tableheader`;var Ge=class extends z{};Ge.type=`column`;var Ke=class extends B{};Ke.type=`tablebody`;var qe=class extends z{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}};qe.type=`item`;let Je=r(function(t,n){let{isVirtualized:r}=o(Q);return r?e.createElement(M.div,{...t,ref:n}):e.createElement(M.tr,{...t,ref:n})});var Ye=class extends z{};Ye.type=`cell`;let Xe=r(function(t,n){let{isVirtualized:r}=o(Q);return r?e.createElement(M.div,{...t,ref:n}):e.createElement(M.td,{...t,ref:n})});function Ze(t,n){n=g(n);let{dragAndDropHooks:r,dropState:i}=o(Oe),a=l(null),{dropIndicatorProps:s,isHidden:c,isDropTarget:u}=r.useDropIndicator(t,i,a);return c?null:e.createElement(tt,{...t,dropIndicatorProps:s,isDropTarget:u,buttonRef:a,ref:n})}let Qe=r(function(t,n){let{isVirtualized:r}=o(Q);return r?e.createElement(M.div,{...t,ref:n}):e.createElement(M.tr,{...t,ref:n})}),$e=r(function(t,n){let{isVirtualized:r}=o(Q);return r?e.createElement(M.div,{...t,ref:n}):e.createElement(M.td,{...t,ref:n})});function et(t,n){let{dropIndicatorProps:r,isDropTarget:i,buttonRef:a,...s}=t,c=o($),{visuallyHiddenProps:l}=S(),u=D({...s,defaultClassName:`react-aria-DropIndicator`,values:{isDropTarget:i}});return e.createElement(Qe,{...d(t,{global:!0}),...u,role:`row`,ref:n,"data-drop-target":i||void 0},e.createElement($e,{role:`gridcell`,colSpan:c.collection.columnCount,style:{padding:0}},e.createElement(`div`,{...l,role:`button`,...r,ref:a}),u.children))}const tt=r(et);be(H,function(t,n,r){let i=o($),{isVirtualized:a}=o(Q),{isLoading:s,onLoadMore:u,scrollOffset:f,...p}=t,m=i.collection.columns.length,g=l(null),_=c(()=>({onLoadMore:u,collection:i?.collection,sentinelRef:g,scrollOffset:f}),[u,f,i?.collection]);h(_,g);let v=D({...p,id:void 0,children:r.rendered,defaultClassName:`react-aria-TableLoadingIndicator`,values:void 0}),te={},b={},x={};return a?(b[`aria-colspan`]=m,x={display:`contents`}):b.colSpan=m,e.createElement(e.Fragment,null,e.createElement(Je,{style:{height:0},inert:ee(!0)},e.createElement(Xe,{style:{padding:0,border:0}},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:g,style:{position:`relative`,height:1,width:1}}))),s&&v.children&&e.createElement(Je,{...y(d(t,{global:!0}),te),...v,role:`row`,ref:n},e.createElement(Xe,{role:`rowheader`,...b,style:x},v.children)))});export{Be as Table};
@@ -0,0 +1 @@
1
+ export { TableBody, type TableBodyProps, type TableBodyRenderProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useMemo as s,useRef as c}from"react";import{filterDOMProps as l,inertValue as u,mergeRefs as d,useLayoutEffect as f,useLoadMoreSentinel as p}from"@react-aria/utils";import"react-dom";import{mergeProps as m,useTableRowGroup as h,useVisuallyHidden as g}from"react-aria";import"react-stately";var _=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),v=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function y(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 b(t,n,r){let{render:i,...a}=n,o=c(null),l=s(()=>d(r,o),[r,o]);f(()=>{},[t,i]);let u={...a,ref:l};return i?i(u,void 0):e.createElement(t,u)}const 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)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let C=e.createContext(null);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]=k(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 ee=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}};ee.type=`section`;function k(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 A(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 j=_((e=>{var t=v(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore}));_(((e,t)=>{t.exports=j()}))();const M=n(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const N=n(null);function P(e){var t;return t=class extends w{},t.type=e,t}function F(t,n,r,i,s,c){typeof t==`string`&&(t=P(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(N);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(N.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function te(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(C);if(!o(M)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return F(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(C.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}function I(t,n,i=L){let a=({node:e})=>n(e.props,e.props.ref,e),o=r((n,r)=>F(t,n,r,null,i(n),t=>e.createElement(a,{node:t}))??e.createElement(e.Fragment,null));return o.displayName=n.name,o}function L(e){return A({...e,addIdAndValue:!0})}const R={CollectionRoot({collection:e,renderDropIndicator:t}){return z(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return z(e,t,n)}};function z(t,n,r){return A({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,B(t,n,r))}})}function B(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 V=n(R),H=n({}),U=n(null),W=r(function(t,n){let{render:r}=o(U);return e.createElement(e.Fragment,null,r(t,n))});function G(t,n){let r=t?.renderDropIndicator,i=t?.isVirtualDragging?.call(t),o=a(t=>{if(i||n?.isDropTarget(t))return r?r(t):e.createElement(W,{target:t})},[n?.target,i,r]);return t?.useDropIndicator?o:void 0}const K=n(null);var q=class extends w{};q.type=`tableheader`;var J=class extends w{};J.type=`column`;var Y=class extends T{};Y.type=`tablebody`;let X=r(function(t,n){let{isVirtualized:r}=o(V);return r?e.createElement(S.div,{...t,ref:n}):e.createElement(S.tbody,{...t,ref:n})});const Z=I(Y,(t,n)=>{let r=o(K),{isVirtualized:i}=o(V),a=r.collection,{CollectionBranch:s}=o(V),{dragAndDropHooks:c,dropState:u}=o(H),d=!!c?.useDroppableCollectionState&&!u?.isDisabled,f=d&&!!u&&(u.isDropTarget({type:`root`})??!1),p=a.size===0,g={isDropTarget:f,isEmpty:p},_=y({...t,id:void 0,children:void 0,defaultClassName:`react-aria-TableBody`,values:g}),v,b=a.columnCount;if(p&&t.renderEmptyState&&r){let n={},r={},a={};i?(r[`aria-colspan`]=b,a={display:`contents`}):r.colSpan=b,v=e.createElement(Q,{role:`row`,...n,style:a},e.createElement($,{role:`rowheader`,...r,style:a},t.renderEmptyState(g)))}let{rowGroupProps:x}=h(),S=l(t,{global:!0});return e.createElement(X,{...m(S,_,x),ref:n,"data-empty":p||void 0},d&&e.createElement(ie,null),e.createElement(s,{collection:a,parent:a.body,renderDropIndicator:G(c,u)}),v)});var ne=class extends w{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}};ne.type=`item`;let Q=r(function(t,n){let{isVirtualized:r}=o(V);return r?e.createElement(S.div,{...t,ref:n}):e.createElement(S.tr,{...t,ref:n})});var re=class extends w{};re.type=`cell`;let $=r(function(t,n){let{isVirtualized:r}=o(V);return r?e.createElement(S.div,{...t,ref:n}):e.createElement(S.td,{...t,ref:n})});function ie(){let t=o(K),{dragAndDropHooks:n,dropState:r}=o(H),i=c(null),{dropIndicatorProps:a}=n.useDropIndicator({target:{type:`root`}},r,i),s=r.isDropTarget({type:`root`}),{visuallyHiddenProps:l}=g();return!s&&a[`aria-hidden`]?null:e.createElement(Q,{role:`row`,"aria-hidden":a[`aria-hidden`],style:{height:0}},e.createElement($,{role:`gridcell`,colSpan:t.collection.columnCount,style:{padding:0}},e.createElement(`div`,{role:`button`,...l,...a,ref:i})))}te(D,function(t,n,r){let i=o(K),{isVirtualized:a}=o(V),{isLoading:d,onLoadMore:f,scrollOffset:h,...g}=t,_=i.collection.columns.length,v=c(null),b=s(()=>({onLoadMore:f,collection:i?.collection,sentinelRef:v,scrollOffset:h}),[f,h,i?.collection]);p(b,v);let x=y({...g,id:void 0,children:r.rendered,defaultClassName:`react-aria-TableLoadingIndicator`,values:void 0}),S={},C={},w={};return a?(C[`aria-colspan`]=_,w={display:`contents`}):C.colSpan=_,e.createElement(e.Fragment,null,e.createElement(Q,{style:{height:0},inert:u(!0)},e.createElement($,{style:{padding:0,border:0}},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:v,style:{position:`relative`,height:1,width:1}}))),d&&x.children&&e.createElement(Q,{...m(l(t,{global:!0}),S),...x,role:`row`,ref:n},e.createElement($,{role:`rowheader`,...C,style:w},x.children)))});export{Z as TableBody};
@@ -0,0 +1 @@
1
+ export { TableHeader, type TableHeaderProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useMemo as s,useRef as c}from"react";import{filterDOMProps as l,inertValue as u,mergeRefs as d,useLayoutEffect as f,useLoadMoreSentinel as p}from"@react-aria/utils";import{createPortal as m}from"react-dom";import{mergeProps as h,useHover as g,useTableHeaderRow as _,useTableRowGroup as v,useTableSelectAllCheckbox as y}from"react-aria";import"react-stately";var b=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),x=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});const S=n(null);n(null),n(null),n(null),n(null),n({}),n(null),n(null);function C({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function w(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle: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 T(t,n,r){let{render:i,...a}=n,o=c(null),l=s(()=>d(r,o),[r,o]);f(()=>{},[t,i]);let u={...a,ref:l};return i?i(u,void 0):e.createElement(t,u)}const E={},D=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=E[t];return n||(n=r(T.bind(null,t)),E[t]=n),n}});String(Math.round(Math.random()*1e10));const O=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function ee(){return!1}function te(){return!0}function ne(e){return()=>{}}function k(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(ne,ee,te):o(O)}let A=e.createContext(null);var j=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}},M=class extends j{filter(e,t,n){let[r,i]=ae(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},N=class extends j{};N.type=`header`;var P=class extends j{};P.type=`loader`;var re=class extends M{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 ie=class extends M{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`;function ae(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: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 oe=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=oe()}))();const I=n(!1),L=n(null);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const R=n(null);function z(e){var t;return t=class extends j{},t.type=e,t}function B(t,n,r,i,s,c){typeof t==`string`&&(t=z(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(R);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(R.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function V(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(A);if(!o(I)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return B(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(A.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}function H(t,n,i=U){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 U(e){return F({...e,addIdAndValue:!0})}const W=n(null);function G(t){let n=o(W),r=(n?.dependencies||[]).concat(t.dependencies),i=t.idScope??n?.idScope,a=U({...t,idScope:i,dependencies:r});return o(L)&&(a=e.createElement(K,null,a)),n=s(()=>({dependencies:r,idScope:i}),[i,...r]),e.createElement(W.Provider,{value:n},a)}function K({children:t}){let n=o(L),r=s(()=>e.createElement(L.Provider,{value:null},e.createElement(I.Provider,{value:!0},t)),[t]);return k()?e.createElement(R.Provider,{value:n},r):m(r,n)}const se={CollectionRoot({collection:e,renderDropIndicator:t}){return q(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return q(e,t,n)}};function q(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,ce(t,n,r))}})}function ce(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 J=n(se),Y=n(null);var X=class extends j{};X.type=`tableheader`;let Z=r(function(t,n){let{isVirtualized:r}=o(J);return r?e.createElement(D.div,{...t,ref:n}):e.createElement(D.thead,{...t,ref:n})});const le=H(X,(t,n)=>{let r=o(Y).collection,i=F({items:r.headerRows,children:a(t=>{switch(t.type){case`headerrow`:return e.createElement(de,{item:t});default:throw Error(`Unsupported node type in TableHeader: `+t.type)}},[])}),{rowGroupProps:s}=v(),{hoverProps:c,isHovered:u}=g({onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),d=w({...t,children:void 0,defaultClassName:`react-aria-TableHeader`,values:{isHovered:u}});return e.createElement(Z,{...h(l(t,{global:!0}),s,c),...d,ref:n,"data-hovered":u||void 0},i)},t=>e.createElement(G,{dependencies:t.dependencies,items:t.columns},t.children));let ue=r(function(t,n){let{isVirtualized:r}=o(J);return r?e.createElement(`div`,{...t,ref:n}):e.createElement(`tr`,{...t,ref:n})});function de({item:t}){let n=c(null),r=o(Y),{isVirtualized:i,CollectionBranch:a}=o(J),{rowProps:s}=_({node:t,isVirtualized:i},r,n),{checkboxProps:l}=y(r);return e.createElement(ue,{...s,ref:n},e.createElement(C,{values:[[S,{slots:{selection:l}}]]},e.createElement(a,{collection:r.collection,parent:t})))}var fe=class extends j{};fe.type=`column`;var pe=class extends M{};pe.type=`tablebody`;var me=class extends j{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}};me.type=`item`;let Q=r(function(t,n){let{isVirtualized:r}=o(J);return r?e.createElement(D.div,{...t,ref:n}):e.createElement(D.tr,{...t,ref:n})});var he=class extends j{};he.type=`cell`;let $=r(function(t,n){let{isVirtualized:r}=o(J);return r?e.createElement(D.div,{...t,ref:n}):e.createElement(D.td,{...t,ref:n})});V(P,function(t,n,r){let i=o(Y),{isVirtualized:a}=o(J),{isLoading:d,onLoadMore:f,scrollOffset:m,...g}=t,_=i.collection.columns.length,v=c(null),y=s(()=>({onLoadMore:f,collection:i?.collection,sentinelRef:v,scrollOffset:m}),[f,m,i?.collection]);p(y,v);let b=w({...g,id:void 0,children:r.rendered,defaultClassName:`react-aria-TableLoadingIndicator`,values:void 0}),x={},S={},C={};return a?(S[`aria-colspan`]=_,C={display:`contents`}):S.colSpan=_,e.createElement(e.Fragment,null,e.createElement(Q,{style:{height:0},inert:u(!0)},e.createElement($,{style:{padding:0,border:0}},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:v,style:{position:`relative`,height:1,width:1}}))),d&&b.children&&e.createElement(Q,{...h(l(t,{global:!0}),x),...b,role:`row`,ref:n},e.createElement($,{role:`rowheader`,...S,style:C},b.children)))});export{le as TableHeader};
@@ -0,0 +1 @@
1
+ export { TableLoadMoreItem, type TableLoadMoreItemProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useMemo as s,useRef as c}from"react";import{filterDOMProps as l,inertValue as u,mergeRefs as d,useLayoutEffect as f,useLoadMoreSentinel as p}from"@react-aria/utils";import"react-dom";import{mergeProps 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: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 v(t,n,r){let{render:i,...a}=n,o=c(null),l=s(()=>d(r,o),[r,o]);f(()=>{},[t,i]);let u={...a,ref:l};return i?i(u,void 0):e.createElement(t,u)}const y={},b=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=y[t];return n||(n=r(v.bind(null,t)),y[t]=n),n}});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]}function k(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 A=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=A()}))();const j=n(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const M=n(null);function N(e){var t;return t=class extends S{},t.type=e,t}function P(t,n,r,i,s,c){typeof t==`string`&&(t=N(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(M);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(M.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function F(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(x);if(!o(j)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return P(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(x.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}const I={CollectionRoot({collection:e,renderDropIndicator:t}){return L(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return L(e,t,n)}};function L(t,n,r){return k({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,R(t,n,r))}})}function R(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 z=n(I),B=n(null);var V=class extends S{};V.type=`tableheader`;var H=class extends S{};H.type=`column`;var U=class extends C{};U.type=`tablebody`;var W=class extends S{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}};W.type=`item`;let G=r(function(t,n){let{isVirtualized:r}=o(z);return r?e.createElement(b.div,{...t,ref:n}):e.createElement(b.tr,{...t,ref:n})});var K=class extends S{};K.type=`cell`;let q=r(function(t,n){let{isVirtualized:r}=o(z);return r?e.createElement(b.div,{...t,ref:n}):e.createElement(b.td,{...t,ref:n})});const J=F(T,function(t,n,r){let i=o(B),{isVirtualized:a}=o(z),{isLoading:d,onLoadMore:f,scrollOffset:h,...g}=t,v=i.collection.columns.length,y=c(null),b=s(()=>({onLoadMore:f,collection:i?.collection,sentinelRef:y,scrollOffset:h}),[f,h,i?.collection]);p(b,y);let x=_({...g,id:void 0,children:r.rendered,defaultClassName:`react-aria-TableLoadingIndicator`,values:void 0}),S={},C={},w={};return a?(C[`aria-colspan`]=v,w={display:`contents`}):C.colSpan=v,e.createElement(e.Fragment,null,e.createElement(G,{style:{height:0},inert:u(!0)},e.createElement(q,{style:{padding:0,border:0}},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:y,style:{position:`relative`,height:1,width:1}}))),d&&x.children&&e.createElement(G,{...m(l(t,{global:!0}),S),...x,role:`row`,ref:n},e.createElement(q,{role:`rowheader`,...C,style:w},x.children)))});export{J as TableLoadMoreItem};
@@ -0,0 +1 @@
1
+ export { Tabs, type TabsProps, type TabsRenderProps } 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,mergeProps as l,mergeRefs as u,useLayoutEffect as d,useObjectRef as f}from"@react-aria/utils";import"react-dom";import{mergeProps as p,useFocusRing as m}from"react-aria";import{useTabListState as h}from"react-stately";var g=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),_=(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 v=Symbol(`default`);function ee({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||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 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(t,n,r){let{render:i,...s}=n,c=o(null),l=a(()=>u(r,c),[r,c]);d(()=>{},[t,i]);let f={...s,ref:l};return i?i(f,void 0):e.createElement(t,f)}const C={},w=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=C[t];return r||(r=n(S.bind(null,t)),C[t]=r),r}});String(Math.round(Math.random()*1e10));const T=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function E(){return!1}function D(){return!0}function O(e){return()=>{}}function k(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(O,E,D):i(T)}var A=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},j=class extends A{filter(e,t,n){let[r,i]=L(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},M=class extends A{};M.type=`header`;var N=class extends A{};N.type=`loader`;var P=class extends j{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};P.type=`item`;var F=class extends j{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};F.type=`section`;var I=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]=L(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 L(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 R=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}},z=class e extends R{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}},B=class extends R{get isConnected(){return!0}createElement(e){return new z(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 z&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof z?(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 V=t(!1);function H(t){if(i(V))return e.createElement(e.Fragment,null,t.children);let n=e.createElement(V.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 U=g((e=>{var t=_(`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})),W=g(((e,t)=>{t.exports=U()}))();const G=t(null);function K(t){if(i(G))return t.content;let{collection:n,document:r}=X(t.createCollection);return e.createElement(e.Fragment,null,e.createElement(H,null,e.createElement(G.Provider,{value:r},t.content)),e.createElement(q,{render:t.children,collection:n}))}function q({collection:e,render:t}){return t(e)}function J(e,t,n){let i=k(),a=o(i);a.current=i;let s=r(()=>a.current?n():t(),[t,n]);return(0,W.useSyncExternalStore)(e,s)}const Y=typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore:J;function X(e){let[t]=s(()=>new B(e?.()||new I)),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:Y(n,i,a),document:t}}const Z=t(null),Q=t(null),$=n(function(t,n){[t,n]=x(t,n,Z);let{children:r,orientation:i=`horizontal`}=t;return r=a(()=>typeof r==`function`?r({orientation:i,defaultChildren:null}):r,[r,i]),e.createElement(K,{content:r},r=>e.createElement(te,{props:t,collection:r,tabsRef:n}))});function te({props:t,tabsRef:n,collection:r}){let{orientation:i=`horizontal`}=t,o=h({...t,collection:r,children:void 0}),{focusProps:s,isFocused:l,isFocusVisible:u}=m({within:!0}),d=a(()=>({orientation:i,isFocusWithin:l,isFocusVisible:u}),[i,l,u]),f=y({...t,defaultClassName:`react-aria-Tabs`,values:d}),g=c(t,{global:!0});return e.createElement(w.div,{...p(g,f,s),ref:n,slot:t.slot||void 0,"data-focused":l||void 0,"data-orientation":i,"data-focus-visible":u||void 0,"data-disabled":o.isDisabled||void 0},e.createElement(ee,{values:[[Z,t],[Q,o]]},f.children))}var ne=class extends A{};ne.type=`item`;export{$ as Tabs};
@@ -0,0 +1 @@
1
+ export { Tag, type TagProps, type TagRenderProps } 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,mergeProps as f,mergeRefs as p,useLayoutEffect as m,useLoadMoreSentinel as h,useObjectRef as g}from"@react-aria/utils";import"react-dom";import{mergeProps as _,useFocusRing as v,useHover as y,useTag as b}from"react-aria";import"react-stately";var x=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),S=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function C({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function w(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle: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 T(t,n,r){let{render:i,...a}=n,o=l(null),s=c(()=>p(r,o),[r,o]);m(()=>{},[t,i]);let u={...a,ref:s};return i?i(u,void 0):e.createElement(t,u)}const E={},D=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=E[t];return n||(n=r(T.bind(null,t)),E[t]=n),n}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let O=e.createContext(null);var k=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}},A=class extends k{filter(e,t,n){let[r,i]=F(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},j=class extends k{};j.type=`header`;var M=class extends k{};M.type=`loader`;var N=class extends A{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};N.type=`item`;var P=class extends A{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}};P.type=`section`;function F(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 I(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 L=x((e=>{var t=S(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,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}));x(((e,t)=>{t.exports=L()}))();const R=n(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const z=n(null);function B(e){var t;return t=class extends k{},t.type=e,t}function V(t,n,r,i,s,c){typeof t==`string`&&(t=B(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(z);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(z.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function H(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(O);if(!o(R)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return V(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(O.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}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 I({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),q=n({}),J=n({isSelected:!1}),Y=n(null);H(M,function(t,n,r){let i=o(Y),{isLoading:a,onLoadMore:s,scrollOffset:f,...p}=t,m=l(null),g=c(()=>({onLoadMore:s,collection:i?.collection,sentinelRef:m,scrollOffset:f}),[s,f,i?.collection]);h(g,m);let v=w({...p,id:void 0,children:r.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return e.createElement(e.Fragment,null,e.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:d(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:m,style:{position:`absolute`,height:1,width:1}})),a&&v.children&&e.createElement(D.div,{..._(u(t,{global:!0}),{tabIndex:-1}),...v,role:`option`,ref:n},v.children))});const X=H(N,(t,n,r)=>{let i=o(Y),a=g(n),{focusProps:c,isFocusVisible:l}=v({within:!1}),{rowProps:d,gridCellProps:p,removeButtonProps:m,...h}=b({item:r},i,a),{hoverProps:_,isHovered:x}=y({isDisabled:!h.allowsSelection,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),S=w({...t,id:void 0,children:r.rendered,defaultClassName:`react-aria-Tag`,values:{...h,isFocusVisible:l,isHovered:x,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior}});s(()=>{r.textValue},[r.textValue]);let T=u(t,{global:!0});return delete T.id,delete T.onClick,e.createElement(D.div,{ref:a,...f(T,S,d,c,_),"data-selected":h.isSelected||void 0,"data-disabled":h.isDisabled||void 0,"data-hovered":x||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":l||void 0,"data-pressed":h.isPressed||void 0,"data-allows-removing":h.allowsRemoving||void 0,"data-selection-mode":i.selectionManager.selectionMode===`none`?void 0:i.selectionManager.selectionMode},e.createElement(`div`,{...p,style:{display:`contents`}},e.createElement(C,{values:[[q,{slots:{remove:m}}],[K,U],[J,{isSelected:h.isSelected}]]},S.children)))});export{X as Tag};
@@ -0,0 +1 @@
1
+ export { TagGroup, type TagGroupProps } 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}from"@react-aria/utils";import"react-dom";import{mergeProps as h,useTagGroup as g}from"react-aria";import{UNSTABLE_useFilteredListState as _,useListState as v}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.")});t(null),t(null),t(null),t(null),t(null),t({});const ee=t(null);t(null);const x=Symbol(`default`);function S({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function C(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 w(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 T(e,t,n){let{ref:r,...i}=w(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 te(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 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]=V(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},ne=class extends F{};ne.type=`header`;var L=class extends F{};L.type=`loader`;var R=class extends I{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};R.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`;var B=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]=V(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 V(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 H=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},U=class e extends H{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}},W=class extends H{get isConnected(){return!0}createElement(e){return new U(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof U&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof U?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};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 G=t(!1);function K(t){if(i(G))return e.createElement(e.Fragment,null,t.children);let n=e.createElement(G.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 q=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})),J=y(((e,t)=>{t.exports=q()}))();const Y=t(!1),X=t(null);function re(t){if(i(X))return t.content;let{collection:n,document:r}=se(t.createCollection);return e.createElement(e.Fragment,null,e.createElement(K,null,e.createElement(X.Provider,{value:r},t.content)),e.createElement(ie,{render:t.children,collection:n}))}function ie({collection:e,render:t}){return t(e)}function ae(e,t,n){let i=N(),a=o(i);a.current=i;let s=r(()=>a.current?n():t(),[t,n]);return(0,J.useSyncExternalStore)(e,s)}const oe=typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore:ae;function se(e){let[t]=s(()=>new W(e?.()||new B)),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:oe(n,i,a),document:t}}const Z=t(null);function Q(e){var t;return t=class extends F{},t.type=e,t}function ce(t,n,a,o,s,c){typeof t==`string`&&(t=Q(t));let l=r(e=>{e?.setProps(n,a,t,o,c)},[n,a,o,c,t]),u=i(Z);if(u){let r=u.ownerDocument.nodesByProps.get(n);return r||(r=u.ownerDocument.createElement(t.type),r.setProps(n,a,t,o,c),u.appendChild(r),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(n,r)),s?e.createElement(Z.Provider,{value:r},s):null}return e.createElement(t.type,{ref:l},s)}function le(t,r){let a=({node:e})=>r(e.props,e.props.ref,e),o=n((n,o)=>{let s=i(P);if(!i(Y)){if(r.length>=3)throw Error(r.name+` cannot be rendered outside a collection.`);return r(n,o)}return ce(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 ue=t({}),de=t({}),$=t(null);le(L,function(t,n,r){let s=i($),{isLoading:u,onLoadMore:d,scrollOffset:f,...m}=t,g=o(null),_=a(()=>({onLoadMore:d,collection:s?.collection,sentinelRef:g,scrollOffset:f}),[d,f,s?.collection]);p(_,g);let v=C({...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:g,style:{position:`absolute`,height:1,width:1}})),u&&v.children&&e.createElement(O.div,{...h(c(t,{global:!0}),{tabIndex:-1}),...v,role:`option`,ref:n},v.children))});const fe=t(null),pe=t(null),me=n(function(t,n){return[t,n]=T(t,n,fe),e.createElement($.Provider,{value:null},e.createElement(re,{content:t.children},r=>e.createElement(he,{props:t,forwardedRef:n,collection:r})))});function he({props:t,forwardedRef:n,collection:r}){let i=o(null),{id:a,...s}=t;[s,i]=T(s,i,ee);let{filter:l,shouldUseVirtualFocus:u,...d}=s,[f,p]=te(!t[`aria-label`]&&!t[`aria-labelledby`]),m=v({...d,children:void 0,collection:r}),h=_(m,l),y=c(s,{global:!0}),b=Object.fromEntries(Object.entries(y).map(([e,t])=>[e,e===`id`?t:void 0])),{gridProps:x,labelProps:C,descriptionProps:w,errorMessageProps:E}=g({...d,...b,label:p},h,i);return e.createElement(O.div,{render:t.render,...y,id:a,ref:n,slot:t.slot||void 0,className:t.className??`react-aria-TagGroup`,style:t.style},e.createElement(S,{values:[[ue,{...C,elementType:`span`,ref:f}],[pe,{...x,ref:i}],[$,h],[de,{slots:{description:w,errorMessage:E}}]]},t.children))}export{me as TagGroup};
@@ -0,0 +1 @@
1
+ export { TagList, type TagListProps, type TagListRenderProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useMemo as s,useRef as c}from"react";import{filterDOMProps as l,inertValue as u,mergeProps 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 ee,useFocusRing as _}from"react-aria";import"react-stately";var v=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),y=(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 b=Symbol(`default`);function x(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:c,render:l}=e;return s(()=>{let e,s,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,s=typeof n==`function`?n({...c,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:a}):r??a,{className:e??i,style:s||o?{...o,...s}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,a,o,c,l])}function S(e,t){let n=o(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||b;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function C(e,t,n){let{ref:r,...i}=S(n,e.slot)||{},a=h(s(()=>f(t,r),[t,r])),o=d(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(o.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[o,a]}function w(t,n,r){let{render:i,...a}=n,o=c(null),l=s(()=>f(r,o),[r,o]);p(()=>{},[t,i]);let u={...a,ref:l};return i?i(u,void 0):e.createElement(t,u)}const T={},E=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=T[t];return n||(n=r(w.bind(null,t)),T[t]=n),n}});String(Math.round(Math.random()*1e10));const D=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function O(){return!1}function k(){return!0}function te(e){return()=>{}}function ne(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(te,O,k):o(D)}let A=e.createContext(null);var j=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}},M=class extends j{filter(e,t,n){let[r,i]=L(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},N=class extends j{};N.type=`header`;var P=class extends j{};P.type=`loader`;var F=class extends M{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};F.type=`item`;var I=class extends M{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}};I.type=`section`;function L(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 R(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 z=v((e=>{var t=y(`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}));v(((e,t)=>{t.exports=z()}))();const B=n(!1),V=n(null);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const H=n(null);function U(e){var t;return t=class extends j{},t.type=e,t}function W(t,n,r,i,s,c){typeof t==`string`&&(t=U(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(H);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(H.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function G(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(A);if(!o(B)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return W(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(A.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}function K(e){return R({...e,addIdAndValue:!0})}const q=n(null);function J(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(V)&&(a=e.createElement(Y,null,a)),n=s(()=>({dependencies:r,idScope:i}),[i,...r]),e.createElement(q.Provider,{value:n},a)}function Y({children:t}){let n=o(V),r=s(()=>e.createElement(V.Provider,{value:null},e.createElement(B.Provider,{value:!0},t)),[t]);return ne()?e.createElement(H.Provider,{value:n},r):g(r,n)}const X={CollectionRoot({collection:e,renderDropIndicator:t}){return Z(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return Z(e,t,n)}};function Z(t,n,r){return R({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,re(t,n,r))}})}function re(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 ie=n(X);function ae(e){return s(()=>e==null?null:new Set([e]),[e])}const oe=n(null);function se(t){let n=c({});return e.createElement(oe.Provider,{value:n},t.children)}const Q=n(null);G(P,function(t,n,r){let i=o(Q),{isLoading:a,onLoadMore:d,scrollOffset:f,...p}=t,h=c(null),g=s(()=>({onLoadMore:d,collection:i?.collection,sentinelRef:h,scrollOffset:f}),[d,f,i?.collection]);m(g,h);let _=x({...p,id:void 0,children:r.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return e.createElement(e.Fragment,null,e.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:u(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:h,style:{position:`absolute`,height:1,width:1}})),a&&_.children&&e.createElement(E.div,{...ee(l(t,{global:!0}),{tabIndex:-1}),..._,role:`option`,ref:n},_.children))});const ce=n(null),le=r(function(t,n){return o(Q)?e.createElement($,{props:t,forwardedRef:n}):e.createElement(J,t)});function $({props:t,forwardedRef:n}){let r=o(Q),{CollectionRoot:i}=o(ie),[a,s]=C({},n,ce),{focusProps:c,isFocused:u,isFocusVisible:f}=_(),p={isEmpty:r.collection.size===0,isFocused:u,isFocusVisible:f,state:r},m=x({...t,children:void 0,defaultClassName:`react-aria-TagList`,values:p}),h=ae(r.selectionManager.focusedKey),g=l(t,{global:!0});return e.createElement(E.div,{...d(g,m,a,c),ref:s,"data-empty":r.collection.size===0||void 0,"data-focused":u||void 0,"data-focus-visible":f||void 0},e.createElement(se,null,r.collection.size===0&&t.renderEmptyState?t.renderEmptyState(p):e.createElement(i,{collection:r.collection,persistedKeys:h})))}export{le as TagList};
@@ -0,0 +1 @@
1
+ export { Text, type TextProps } 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";const u=Symbol(`default`);function d(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 f(e,t,n){let{ref:r,...a}=d(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 p(t,n,r){let{render:o,...l}=n,u=a(null),d=i(()=>s(r,u),[r,u]);c(()=>{},[t,o]);let f={...l,ref:d};return o?o(f,void 0):e.createElement(t,f)}const m={},h=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=m[t];return r||(r=n(p.bind(null,t)),m[t]=r),r}}),g=t({}),_=n(function(t,n){[t,n]=f(t,n,g);let{elementType:r=`span`,...i}=t,a=h[r];return e.createElement(a,{className:`react-aria-Text`,...i,ref:n})});export{_ as Text};
@@ -0,0 +1 @@
1
+ export { TextArea, type TextAreaProps } 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,useFocusRing as d,useHover 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)||{},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 _(t,n,r){let{render:o,...l}=n,u=a(null),d=i(()=>s(r,u),[r,u]);c(()=>{},[t,o]);let f={...l,ref:d};return o?o(f,void 0):e.createElement(t,f)}const v={},y=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=v[t];return r||(r=n(_.bind(null,t)),v[t]=r),r}}),b=t({});let x=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i};const S=n(function(t,n){[t,n]=g(t,n,b);let{hoverProps:r,isHovered:i}=f(t),{isFocused:a,isFocusVisible:o,focusProps:s}=d({isTextInput:!0,autoFocus:t.autoFocus}),c=!!t[`aria-invalid`]&&t[`aria-invalid`]!==`false`,l=m({...t,values:{isHovered:i,isFocused:a,isFocusVisible:o,isDisabled:t.disabled||!1,isInvalid:c},defaultClassName:`react-aria-TextArea`});return e.createElement(y.textarea,{...u(x(t),s,r),...l,ref:n,"data-focused":a||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":o||void 0,"data-invalid":c||void 0})});export{S as TextArea};
@@ -0,0 +1 @@
1
+ export { TextField, type TextFieldProps, type TextFieldRenderProps } 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{useTextField as p}from"react-aria";import"react-stately";t(null),t(null),t(null),t(null),t(null),t({}),t(null);const m=t(null),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(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:i,...s}=n,c=o(null),l=a(()=>u(r,c),[r,c]);d(()=>{},[t,i]);let f={...s,ref:l};return i?i(f,void 0):e.createElement(t,f)}const C={},w=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=C[t];return r||(r=n(S.bind(null,t)),C[t]=r),r}});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 T=t(!1);function E(e){let t=(t,n)=>i(T)?null:e(t,n);return t.displayName=e.displayName||e.name,n(t)}const D=t({}),O=t({}),k=t(null),A=t(null),j=t({}),M=t({}),N=t({}),P=t(null),F=E(function(t,n){[t,n]=y(t,n,P);let{validationBehavior:i}=v(A)||{},a=t.validationBehavior??i??`native`,l=o(null);[t,l]=y(t,l,m);let[u,d]=b(!t[`aria-label`]&&!t[`aria-labelledby`]),[f,h]=s(`input`),{labelProps:S,inputProps:C,descriptionProps:T,errorMessageProps:E,...F}=p({...x(t),inputElementType:f,label:d,validationBehavior:a},l),I=r(e=>{l.current=e,e&&h(e instanceof HTMLTextAreaElement?`textarea`:`input`)},[l]),L=_({...t,values:{isDisabled:t.isDisabled||!1,isInvalid:F.isInvalid,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1},defaultClassName:`react-aria-TextField`}),R=c(t,{global:!0});return delete R.id,e.createElement(w.div,{...R,...L,ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":F.isInvalid||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0},e.createElement(g,{values:[[D,{...S,ref:u}],[M,{...C,ref:I}],[N,{...C,ref:I}],[j,{role:`presentation`,isInvalid:F.isInvalid,isDisabled:t.isDisabled||!1}],[O,{slots:{description:T,errorMessage:E}}],[k,F]]},L.children))});export{F as TextField};
@@ -0,0 +1 @@
1
+ export { TimeField, type TimeFieldProps } 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{useLocale as p,useTimeField as m}from"react-aria";import"@internationalized/date";import{useTimeFieldState as h}from"react-stately";const g=Symbol(`default`);function _({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function v(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return a(()=>{let e,a,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,a=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??i,style:a||s?{...s,...a}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,o,s,c,l])}function y(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||g;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function b(e,t,n){let{ref:r,...i}=y(n,e.slot)||{},o=f(a(()=>u(t,r),[t,r])),s=l(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(s.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[s,o]}function x(e=!0){let[t,n]=s(e),i=o(!1),a=r(e=>{i.current=!0,n(!!e)},[]);return d(()=>{i.current||n(!1)},[]),[a,t]}function S(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}}),E=t({}),D=t({}),O=t(null),k=t(null),A=t({}),j=t({}),M=t(null),N=t(null),P=n(function(t,n){[t,n]=b(t,n,M);let{validationBehavior:r}=y(k)||{},i=t.validationBehavior??r??`native`,{locale:a}=p(),s=h({...t,locale:a,validationBehavior:i}),l=o(null),[u,d]=x(!t[`aria-label`]&&!t[`aria-labelledby`]),f=o(null),{labelProps:g,fieldProps:C,inputProps:w,descriptionProps:P,errorMessageProps:F,...I}=m({...S(t),label:d,inputRef:f,validationBehavior:i},s,l),L=v({...t,values:{state:s,isInvalid:s.isInvalid,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly},defaultClassName:`react-aria-TimeField`}),R=c(t,{global:!0});return delete R.id,e.createElement(_,{values:[[N,s],[A,{...C,ref:l,isInvalid:s.isInvalid,isDisabled:s.isDisabled}],[j,{...w,ref:f}],[E,{...g,ref:u,elementType:`span`}],[D,{slots:{description:P,errorMessage:F}}],[O,I]]},e.createElement(T.div,{...R,...L,ref:n,slot:t.slot||void 0,"data-invalid":s.isInvalid||void 0,"data-disabled":s.isDisabled||void 0,"data-readonly":s.isReadOnly||void 0}))});export{P as TimeField};
@@ -0,0 +1 @@
1
+ export { UNSTABLE_Toast, type ToastProps, type ToastRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeRefs as s,useLayoutEffect as c,useObjectRef as l}from"@react-aria/utils";import"react-dom";import{mergeProps as u,useFocusRing as d,useToast as f}from"react-aria";import"react-stately";const p=Symbol(`default`);function m({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function h(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 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({}),b=t({}),x=t(null),S=n(function(t,n){let i=r(x),a=l(n),{toastProps:s,contentProps:c,titleProps:g,descriptionProps:_,closeButtonProps:S}=f(t,i,a),{focusProps:w,isFocused:T,isFocusVisible:E}=d(),D=h({...t,defaultClassName:`react-aria-Toast`,values:{toast:t.toast,isFocused:T,isFocusVisible:E}}),O=o(t,{global:!0});return e.createElement(v.div,{...u(O,D,s,w),ref:a,"data-focused":T||void 0,"data-focus-visible":E||void 0},e.createElement(m,{values:[[C,c],[b,{slots:{[p]:{},title:g,description:_}}],[y,{slots:{[p]:{},close:S}}]]},D.children))}),C=t({});export{S as UNSTABLE_Toast};
@@ -0,0 +1 @@
1
+ export { UNSTABLE_ToastContent } 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-dom";import"react-aria";import"react-stately";const u=Symbol(`default`);function d(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 f(e,t,n){let{ref:r,...a}=d(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 p(t,n,r){let{render:o,...l}=n,u=a(null),d=i(()=>s(r,u),[r,u]);c(()=>{},[t,o]);let f={...l,ref:d};return o?o(f,void 0):e.createElement(t,f)}const m={},h=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=m[t];return r||(r=n(p.bind(null,t)),m[t]=r),r}}),g=t({}),_=n(function(t,n){return[t,n]=f(t,n,g),e.createElement(h.div,{render:t.render,className:`react-aria-ToastContent`,...t,ref:n},t.children)});export{_ as UNSTABLE_ToastContent};
@@ -0,0 +1 @@
1
+ export { UNSTABLE_ToastList, type ToastListProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{mergeRefs as o,useLayoutEffect as s}from"@react-aria/utils";import"react-dom";import{useHover as c}from"react-aria";import"react-stately";function l(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 u(t,n,r){let{render:c,...l}=n,u=a(null),d=i(()=>o(r,u),[r,u]);s(()=>{},[t,c]);let f={...l,ref:d};return c?c(f,void 0):e.createElement(t,f)}const d={},f=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=d[t];return r||(r=n(u.bind(null,t)),d[t]=r),r}}),p=t(null),m=n(function(t,n){let i=r(p),{hoverProps:a,isHovered:o}=c({}),s=l({...t,children:void 0,defaultClassName:`react-aria-ToastList`,values:{visibleToasts:i.visibleToasts,isFocused:!1,isFocusVisible:!1,isHovered:o}});return e.createElement(f.ol,{...a,...s,ref:n},i.visibleToasts.map(n=>e.createElement(`li`,{key:n.key,style:{display:`contents`}},t.children({toast:n}))))});export{m as UNSTABLE_ToastList};
@@ -0,0 +1 @@
1
+ export { UNSTABLE_ToastRegion, type ToastRegionProps, type ToastRegionRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeRefs as s,useLayoutEffect as c,useObjectRef as l}from"@react-aria/utils";import{createPortal as u}from"react-dom";import{mergeProps as d,useFocusRing as f,useHover as p,useLocale as m,useToastRegion as h}from"react-aria";import{useToastQueue as g}from"react-stately";function _(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 v(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 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));const x=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function S(){return!1}function C(){return!0}function w(e){return()=>{}}function T(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(w,S,C):r(x)}const E=t({});function D(){return r(E)??{}}const O=t(null),k=n(function(t,n){let r=T(),i=g(t.queue),a=l(n),{regionProps:s}=h(t,i,a),{focusProps:c,isFocused:v,isFocusVisible:y}=f(),{hoverProps:x,isHovered:S}=p({}),C=_({...t,children:void 0,defaultClassName:`react-aria-ToastRegion`,values:{visibleToasts:i.visibleToasts,isHovered:S,isFocused:v,isFocusVisible:y}}),{direction:w}=m(),E,{getContainer:k}=D();r||(E=document.body,k&&(E=k()));let j=o(t,{global:!0}),M=e.createElement(O.Provider,{value:i},e.createElement(b.div,{...d(j,C,s,c,x),dir:w,ref:a,"data-hovered":S||void 0,"data-focused":v||void 0,"data-focus-visible":y||void 0},typeof t.children==`function`?e.createElement(A,{...t,render:void 0,className:void 0,style:{display:`contents`}},t.children):t.children));return i.visibleToasts.length>0&&E?u(M,E):null}),A=n(function(t,n){let i=r(O),{hoverProps:a,isHovered:o}=p({}),s=_({...t,children:void 0,defaultClassName:`react-aria-ToastList`,values:{visibleToasts:i.visibleToasts,isFocused:!1,isFocusVisible:!1,isHovered:o}});return e.createElement(b.ol,{...a,...s,ref:n},i.visibleToasts.map(n=>e.createElement(`li`,{key:n.key,style:{display:`contents`}},t.children({toast:n}))))});export{k as UNSTABLE_ToastRegion};
@@ -0,0 +1 @@
1
+ export { ToggleButton, type ToggleButtonProps, type ToggleButtonRenderProps } 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{mergeProps as d,useFocusRing as f,useHover as p,useToggleButton as m,useToggleButtonGroupItem 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(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 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({isSelected:!1}),T=t(null),E=t({}),D=n(function(t,n){[t,n]=b(t,n,E);let i=r(T),a=g(i&&t.id!=null?{isSelected:i.selectedKeys.has(t.id),onChange(e){i.setSelected(t.id,e)}}:t),{buttonProps:s,isPressed:c,isSelected:l,isDisabled:u}=i&&t.id!=null?h({...t,id:t.id},i,n):m({...t,id:t.id==null?void 0:String(t.id)},a,n),{focusProps:_,isFocused:y,isFocusVisible:x}=f(t),{hoverProps:S,isHovered:D}=p({...t,isDisabled:u}),O=v({...t,id:void 0,values:{isHovered:D,isPressed:c,isFocused:y,isSelected:a.isSelected,isFocusVisible:x,isDisabled:u,state:a},defaultClassName:`react-aria-ToggleButton`}),k=o(t,{global:!0});return delete k.id,delete k.onClick,e.createElement(C.button,{...d(k,O,s,_,S),ref:n,slot:t.slot||void 0,"data-focused":y||void 0,"data-disabled":u||void 0,"data-pressed":c||void 0,"data-selected":l||void 0,"data-hovered":D||void 0,"data-focus-visible":x||void 0},e.createElement(w.Provider,{value:{isSelected:l}},O.children))});export{D as ToggleButton};
@@ -0,0 +1,5 @@
1
+ export {
2
+ ToggleButtonGroup,
3
+ type ToggleButtonGroupProps,
4
+ type ToggleButtonGroupRenderProps,
5
+ } 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"react-dom";import{useToggleButtonGroup as d}from"react-aria";import{useToggleGroupState as f}from"react-stately";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);function x(t){let n=a({});return e.createElement(b.Provider,{value:n},t.children)}const S=t({}),C=t(null),w=n(function(t,n){[t,n]=g(t,n,S);let r=f(t),{groupProps:i}=d(t,r,n),a=m({...t,values:{orientation:t.orientation||`horizontal`,isDisabled:r.isDisabled,state:r},defaultClassName:`react-aria-ToggleButtonGroup`}),c=o(t,{global:!0});return e.createElement(y.div,{...s(c,a,i),ref:n,slot:t.slot||void 0,"data-orientation":t.orientation||`horizontal`,"data-disabled":t.isDisabled||void 0},e.createElement(C.Provider,{value:r},e.createElement(x,null,a.children)))});export{w as ToggleButtonGroup};
@@ -0,0 +1 @@
1
+ export { Toolbar, type ToolbarProps, type ToolbarRenderProps } 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{filterDOMProps as s,mergeProps as c,mergeRefs as l,nodeContains as u,useLayoutEffect as d,useObjectRef as f}from"@react-aria/utils";import{useLocale as p}from"@react-aria/i18n";import{createFocusManager as m}from"@react-aria/focus";const h=Symbol(`default`);function g(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function _(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||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 v(e,t,n){let{ref:r,...a}=_(n,e.slot)||{},o=f(i(()=>l(t,r),[t,r])),s=c(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(s.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}),[s,o]}function y(t,n,r){let{render:o,...s}=n,c=a(null),u=i(()=>l(r,c),[r,c]);d(()=>{},[t,o]);let f={...s,ref:u};return o?o(f,void 0):e.createElement(t,f)}const b={},x=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=b[t];return r||(r=n(y.bind(null,t)),b[t]=r),r}});function S(e,t){let{"aria-label":n,"aria-labelledby":r,orientation:i=`horizontal`}=e,[c,l]=o(!1);d(()=>{l(!!(t.current&&t.current.parentElement?.closest(`[role="toolbar"]`)))});let{direction:f}=p(),h=f===`rtl`&&i===`horizontal`,g=m(t),_=e=>{if(u(e.currentTarget,e.target)){if(i===`horizontal`&&e.key===`ArrowRight`||i===`vertical`&&e.key===`ArrowDown`)h?g.focusPrevious():g.focusNext();else if(i===`horizontal`&&e.key===`ArrowLeft`||i===`vertical`&&e.key===`ArrowUp`)h?g.focusNext():g.focusPrevious();else if(e.key===`Tab`){e.stopPropagation(),v.current=document.activeElement,e.shiftKey?g.focusFirst():g.focusLast();return}else return;e.stopPropagation(),e.preventDefault()}},v=a(null),y=e=>{!u(e.currentTarget,e.relatedTarget)&&!v.current&&(v.current=e.target)},b=e=>{if(v.current&&!u(e.currentTarget,e.relatedTarget)&&u(t.current,e.target)){var n;(n=v.current)==null||n.focus(),v.current=null}};return{toolbarProps:{...s(e,{labelable:!0}),role:c?`group`:`toolbar`,"aria-orientation":i,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:c?void 0:_,onFocusCapture:c?void 0:b,onBlurCapture:c?void 0:y}}}const C=t({}),w=n(function(t,n){[t,n]=v(t,n,C);let{toolbarProps:r}=S(t,n),i=g({...t,values:{orientation:t.orientation||`horizontal`},defaultClassName:`react-aria-Toolbar`}),a=s(t,{global:!0});return delete a.id,e.createElement(x.div,{...c(a,i,r),ref:n,slot:t.slot||void 0,"data-orientation":t.orientation||`horizontal`},i.children)});export{w as Toolbar};
@@ -0,0 +1 @@
1
+ export { Tooltip, type TooltipProps, type TooltipRenderProps } 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,useEnterAnimation as l,useExitAnimation as u,useLayoutEffect as d,useObjectRef as f}from"@react-aria/utils";import"@react-aria/focus";import{OverlayContainer as p,mergeProps as m,useOverlayPosition as h,useTooltip as g}from"react-aria";import{useTooltipTriggerState as _}from"react-stately";const v=Symbol(`default`);function y(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 b(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 x(e,t,n){let{ref:r,...a}=b(n,e.slot)||{},o=f(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 S(t,n,r){let{render:o,...s}=n,l=a(null),u=i(()=>c(r,l),[r,l]);d(()=>{},[t,o]);let f={...s,ref:u};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({placement:`bottom`}),E=t(null),D=t(null),O=n(function({UNSTABLE_portalContainer:t,...n},i){[n,i]=x(n,i,D);let a=r(E),o=_(n),s=n.isOpen!=null||n.defaultOpen!=null||!a?o:a,c=u(i,s.isOpen)||n.isExiting||!1;return!s.isOpen&&!c?null:e.createElement(p,{portalContainer:t},e.createElement(k,{...n,tooltipRef:i,isExiting:c}))});function k(t){let n=r(E),i=a(null),{overlayProps:s,arrowProps:c,placement:u,triggerAnchorPoint:d}=h({placement:t.placement||`top`,targetRef:t.triggerRef,overlayRef:t.tooltipRef,arrowRef:i,offset:t.offset,crossOffset:t.crossOffset,isOpen:n.isOpen,arrowBoundaryOffset:t.arrowBoundaryOffset,shouldFlip:t.shouldFlip,containerPadding:t.containerPadding,onClose:()=>n.close(!0)}),f=l(t.tooltipRef,!!u)||t.isEntering||!1,p=y({...t,defaultClassName:`react-aria-Tooltip`,values:{placement:u,isEntering:f,isExiting:t.isExiting,state:n}});t=m(t,s);let{tooltipProps:_}=g(t,n),v=o(t,{global:!0});return e.createElement(w.div,{...m(v,p,_),ref:t.tooltipRef,style:{...s.style,"--trigger-anchor-point":d?`${d.x}px ${d.y}px`:void 0,...p.style},"data-placement":u??void 0,"data-entering":f||void 0,"data-exiting":t.isExiting||void 0},e.createElement(T.Provider,{value:{...c,placement:u,ref:i}},p.children))}export{O as Tooltip};
@@ -0,0 +1 @@
1
+ export { TooltipTrigger, type TooltipTriggerComponentProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useMemo as r,useRef as i}from"react";import{mergeRefs as a,useLayoutEffect as o}from"@react-aria/utils";import{FocusableProvider as s}from"@react-aria/focus";import{useTooltipTrigger as c}from"react-aria";import{useTooltipTriggerState as l}from"react-stately";function u({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function d(t,n,s){let{render:c,...l}=n,u=i(null),d=r(()=>a(s,u),[s,u]);o(()=>{},[t,c]);let f={...l,ref:d};return c?c(f,void 0):e.createElement(t,f)}const f={};new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=f[t];return r||(r=n(d.bind(null,t)),f[t]=r),r}});const p=t(null),m=t(null);function h(t){let n=l(t),r=i(null),{triggerProps:a,tooltipProps:o}=c(t,n,r);return e.createElement(u,{values:[[p,n],[m,{...o,triggerRef:r}]]},e.createElement(s,{...a,ref:r},t.children))}export{h as TooltipTrigger};
@@ -0,0 +1 @@
1
+ export { Tree, type TreeProps, type TreeRenderProps } from "react-aria-components";