@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 f,mergeRefs as p,useLayoutEffect as m,useLoadMoreSentinel as h,useObjectRef as g}from"@react-aria/utils";import _ from"react-dom";import{mergeProps as v,useFocusRing as ee,useHover as y,useLocale as b,useLocalizedStringFormatter as x,useTableColumnResize as S}from"react-aria";import"react-stately";var C=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),w=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function T(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:l}=e;return c(()=>{let e,c,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,c=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:c||o?{...o,...c}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,s):void 0}},[t,n,r,i,a,o,s,l])}function E(t,n,r){let{render:i,...a}=n,o=l(null),s=c(()=>p(r,o),[r,o]);m(()=>{},[t,i]);let u={...a,ref:s};return i?i(u,void 0):e.createElement(t,u)}const D={},O=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=D[t];return n||(n=r(E.bind(null,t)),D[t]=n),n}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let k=e.createContext(null);var A=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},j=class extends A{filter(e,t,n){let[r,i]=I(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},M=class extends A{};M.type=`header`;var N=class extends A{};N.type=`loader`;var P=class extends j{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};P.type=`item`;var F=class extends j{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};F.type=`section`;function I(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}function L(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 R=C((e=>{var t=w(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore}));C(((e,t)=>{t.exports=R()}))();const z=n(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const B=n(null);function V(e){var t;return t=class extends A{},t.type=e,t}function H(t,n,r,i,s,c){typeof t==`string`&&(t=V(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(B);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(B.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function U(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(k);if(!o(z)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return H(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(k.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}const W={CollectionRoot({collection:e,renderDropIndicator:t}){return G(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return G(e,t,n)}};function G(t,n,r){return L({items:n?t.getChildren(n.key):t,dependencies:[r],children(n){let i=n.render(n);return!r||n.type!==`item`?i:e.createElement(e.Fragment,null,r({type:`item`,key:n.key,dropPosition:`before`}),i,te(t,n,r))}})}function te(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(W);var q={};q={colorSwatchPicker:`تغييرات الألوان`,dropzoneLabel:`DropZone`,selectPlaceholder:`حدد عنصرًا`,tableResizer:`أداة تغيير الحجم`};var J={};J={colorSwatchPicker:`Цветови мостри`,dropzoneLabel:`DropZone`,selectPlaceholder:`Изберете предмет`,tableResizer:`Преоразмерител`};var Y={};Y={colorSwatchPicker:`Vzorky barev`,dropzoneLabel:`Místo pro přetažení`,selectPlaceholder:`Vyberte položku`,tableResizer:`Změna velikosti`};var X={};X={colorSwatchPicker:`Farveprøver`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vælg et element`,tableResizer:`Størrelsesændring`};var Z={};Z={colorSwatchPicker:`Farbfelder`,dropzoneLabel:`Ablegebereich`,selectPlaceholder:`Element wählen`,tableResizer:`Größenanpassung`};var Q={};Q={colorSwatchPicker:`Χρωματικά δείγματα`,dropzoneLabel:`DropZone`,selectPlaceholder:`Επιλέξτε ένα αντικείμενο`,tableResizer:`Αλλαγή μεγέθους`};var $={};$={selectPlaceholder:`Select an item`,tableResizer:`Resizer`,dropzoneLabel:`DropZone`,colorSwatchPicker:`Color swatches`};var ne={};ne={colorSwatchPicker:`Muestras de colores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Seleccionar un artículo`,tableResizer:`Cambiador de tamaño`};var re={};re={colorSwatchPicker:`Värvinäidised`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valige üksus`,tableResizer:`Suuruse muutja`};var ie={};ie={colorSwatchPicker:`Värimallit`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valitse kohde`,tableResizer:`Koon muuttaja`};var ae={};ae={colorSwatchPicker:`Échantillons de couleurs`,dropzoneLabel:`DropZone`,selectPlaceholder:`Sélectionner un élément`,tableResizer:`Redimensionneur`};var oe={};oe={colorSwatchPicker:`דוגמיות צבע`,dropzoneLabel:`DropZone`,selectPlaceholder:`בחר פריט`,tableResizer:`שינוי גודל`};var se={};se={colorSwatchPicker:`Uzorci boja`,dropzoneLabel:`Zona spuštanja`,selectPlaceholder:`Odaberite stavku`,tableResizer:`Promjena veličine`};var ce={};ce={colorSwatchPicker:`Színtárak`,dropzoneLabel:`DropZone`,selectPlaceholder:`Válasszon ki egy elemet`,tableResizer:`Átméretező`};var le={};le={colorSwatchPicker:`Campioni di colore`,dropzoneLabel:`Zona di rilascio`,selectPlaceholder:`Seleziona un elemento`,tableResizer:`Ridimensionamento`};var ue={};ue={colorSwatchPicker:`カラースウォッチ`,dropzoneLabel:`ドロップゾーン`,selectPlaceholder:`項目を選択`,tableResizer:`サイズ変更ツール`};var de={};de={colorSwatchPicker:`색상 견본`,dropzoneLabel:`드롭 영역`,selectPlaceholder:`항목 선택`,tableResizer:`크기 조정기`};var fe={};fe={colorSwatchPicker:`Spalvų pavyzdžiai`,dropzoneLabel:`„DropZone“`,selectPlaceholder:`Pasirinkite elementą`,tableResizer:`Dydžio keitiklis`};var pe={};pe={colorSwatchPicker:`Krāsu paraugi`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izvēlēties vienumu`,tableResizer:`Izmēra mainītājs`};var me={};me={colorSwatchPicker:`Fargekart`,dropzoneLabel:`Droppsone`,selectPlaceholder:`Velg et element`,tableResizer:`Størrelsesendrer`};var he={};he={colorSwatchPicker:`kleurstalen`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecteer een item`,tableResizer:`Resizer`};var ge={};ge={colorSwatchPicker:`Próbki kolorów`,dropzoneLabel:`Strefa upuszczania`,selectPlaceholder:`Wybierz element`,tableResizer:`Zmiana rozmiaru`};var _e={};_e={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var ve={};ve={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var ye={};ye={colorSwatchPicker:`Specimene de culoare`,dropzoneLabel:`Zonă de plasare`,selectPlaceholder:`Selectați un element`,tableResizer:`Instrument de redimensionare`};var be={};be={colorSwatchPicker:`Цветовые образцы`,dropzoneLabel:`DropZone`,selectPlaceholder:`Выберите элемент`,tableResizer:`Средство изменения размера`};var xe={};xe={colorSwatchPicker:`Vzorkovníky farieb`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vyberte položku`,tableResizer:`Nástroj na zmenu veľkosti`};var Se={};Se={colorSwatchPicker:`Barvne palete`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izberite element`,tableResizer:`Spreminjanje velikosti`};var Ce={};Ce={colorSwatchPicker:`Uzorci boje`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izaberite stavku`,tableResizer:`Promena veličine`};var we={};we={colorSwatchPicker:`Färgrutor`,dropzoneLabel:`DropZone`,selectPlaceholder:`Välj en artikel`,tableResizer:`Storleksändrare`};var Te={};Te={colorSwatchPicker:`Renk örnekleri`,dropzoneLabel:`Bırakma Bölgesi`,selectPlaceholder:`Bir öğe seçin`,tableResizer:`Yeniden boyutlandırıcı`};var Ee={};Ee={colorSwatchPicker:`Зразки кольорів`,dropzoneLabel:`DropZone`,selectPlaceholder:`Виберіть елемент`,tableResizer:`Засіб змінення розміру`};var De={};De={colorSwatchPicker:`颜色色板`,dropzoneLabel:`放置区域`,selectPlaceholder:`选择一个项目`,tableResizer:`尺寸调整器`};var Oe={};Oe={colorSwatchPicker:`色票`,dropzoneLabel:`放置區`,selectPlaceholder:`選取項目`,tableResizer:`大小調整器`};var ke={};ke={"ar-AE":q,"bg-BG":J,"cs-CZ":Y,"da-DK":X,"de-DE":Z,"el-GR":Q,"en-US":$,"es-ES":ne,"et-EE":re,"fi-FI":ie,"fr-FR":ae,"he-IL":oe,"hr-HR":se,"hu-HU":ce,"it-IT":le,"ja-JP":ue,"ko-KR":de,"lt-LT":fe,"lv-LV":pe,"nb-NO":me,"nl-NL":he,"pl-PL":ge,"pt-BR":_e,"pt-PT":ve,"ro-RO":ye,"ru-RU":be,"sk-SK":xe,"sl-SI":Se,"sr-SP":Ce,"sv-SE":we,"tr-TR":Te,"uk-UA":Ee,"zh-CN":De,"zh-TW":Oe};function Ae(e){return e&&e.__esModule?e.default:e}const je=n(null),Me=n(null),Ne=n(null);var Pe=class extends A{};Pe.type=`tableheader`;var Fe=class extends A{};Fe.type=`column`;const Ie=n(null),Le=r(function(t,n){let r=o(Ne);if(!r)throw Error(`Wrap your <Table> in a <ResizableTableContainer> to enable column resizing`);let i=x(Ae(ke),`react-aria-components`),{onResizeStart:a,onResize:c,onResizeEnd:f}=o(je),{column:p,triggerRef:m}=o(Ie),h=l(null),{resizerProps:C,inputProps:w,isResizing:E}=S({column:p,"aria-label":t[`aria-label`]||i.format(`tableResizer`),onResizeStart:a,onResize:c,onResizeEnd:f,triggerRef:m},r,h),{focusProps:D,isFocused:k,isFocusVisible:A}=ee(),{hoverProps:j,isHovered:M}=y(t),N=r.getColumnMinWidth(p.key)>=r.getColumnWidth(p.key),P=r.getColumnMaxWidth(p.key)<=r.getColumnWidth(p.key),{direction:F}=b(),I=`both`;I=N?F===`rtl`?`right`:`left`:P?F===`rtl`?`left`:`right`:`both`;let L=g(n),[R,z]=u(``);s(()=>{if(!L.current)return;let e=window.getComputedStyle(L.current);z(e.cursor)},[L,I]);let B=T({...t,defaultClassName:`react-aria-ColumnResizer`,values:{isFocused:k,isFocusVisible:A,isResizing:E,isHovered:M,resizableDirection:I}}),[V,H]=u(!1),U=e=>{e.pointerType===`mouse`&&H(!0)};!E&&V&&H(!1);let W=d(t,{global:!0});return e.createElement(O.div,{ref:L,role:`presentation`,...v(W,B,C,{onPointerDown:U},j),"data-hovered":M||void 0,"data-focused":k||void 0,"data-focus-visible":A||void 0,"data-resizing":E||void 0,"data-resizable-direction":I},B.children,e.createElement(`input`,{ref:h,...v(w,D)}),E&&V&&_.createPortal(e.createElement(`div`,{style:{position:`fixed`,top:0,left:0,bottom:0,right:0,cursor:R}}),document.body))});var Re=class extends j{};Re.type=`tablebody`;var ze=class extends A{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}};ze.type=`item`;let Be=r(function(t,n){let{isVirtualized:r}=o(K);return r?e.createElement(O.div,{...t,ref:n}):e.createElement(O.tr,{...t,ref:n})});var Ve=class extends A{};Ve.type=`cell`;let He=r(function(t,n){let{isVirtualized:r}=o(K);return r?e.createElement(O.div,{...t,ref:n}):e.createElement(O.td,{...t,ref:n})});U(N,function(t,n,r){let i=o(Me),{isVirtualized:a}=o(K),{isLoading:s,onLoadMore:u,scrollOffset:p,...m}=t,g=i.collection.columns.length,_=l(null),ee=c(()=>({onLoadMore:u,collection:i?.collection,sentinelRef:_,scrollOffset:p}),[u,p,i?.collection]);h(ee,_);let y=T({...m,id:void 0,children:r.rendered,defaultClassName:`react-aria-TableLoadingIndicator`,values:void 0}),b={},x={},S={};return a?(x[`aria-colspan`]=g,S={display:`contents`}):x.colSpan=g,e.createElement(e.Fragment,null,e.createElement(Be,{style:{height:0},inert:f(!0)},e.createElement(He,{style:{padding:0,border:0}},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:_,style:{position:`relative`,height:1,width:1}}))),s&&y.children&&e.createElement(Be,{...v(d(t,{global:!0}),b),...y,role:`row`,ref:n},e.createElement(He,{role:`rowheader`,...x,style:S},y.children)))});export{Le as ColumnResizer};
@@ -0,0 +1 @@
1
+ export { ComboBox, type ComboBoxProps, type ComboBoxRenderProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{createContext as t,forwardRef as n,useCallback as r,useContext as i,useMemo as a,useRef as o,useState as s}from"react";import{filterDOMProps as c,inertValue as l,mergeProps as u,mergeRefs as d,useLayoutEffect as f,useLoadMoreSentinel as p,useObjectRef as m,useResizeObserver as h}from"@react-aria/utils";import"react-dom";import{mergeProps as g,useComboBox as _,useFilter as v}from"react-aria";import{useComboBoxState as ee}from"react-stately";var y=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),b=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});const x=Symbol(`default`);function te({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function S(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return a(()=>{let e,a,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,a=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??i,style:a||s?{...s,...a}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,o,s,c,l])}function C(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||x;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function w(e,t,n){let{ref:r,...i}=C(n,e.slot)||{},o=m(a(()=>d(t,r),[t,r])),s=u(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(s.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[s,o]}function ne(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 re(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function T(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 E={},D=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=E[t];return r||(r=n(T.bind(null,t)),E[t]=r),r}});String(Math.round(Math.random()*1e10));const O=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function k(){return!1}function A(){return!0}function j(e){return()=>{}}function M(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(j,k,A):i(O)}let N=e.createContext(null);var P=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}},F=class extends P{filter(e,t,n){let[r,i]=V(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},I=class extends P{};I.type=`header`;var L=class extends P{};L.type=`loader`;var R=class extends F{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 F{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}},ie=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 W=t(!1);function ae(t){if(i(W))return e.createElement(e.Fragment,null,t.children);let n=e.createElement(W.Provider,{value:!0},t.children);return e.createElement(`template`,{"data-react-aria-hidden":!0},n)}
2
+ /**
3
+ * @license React
4
+ * use-sync-external-store-shim.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var oe=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})),se=y(((e,t)=>{t.exports=oe()}))();const ce=t(!1),G=t(null);function le(t){if(i(G))return t.content;let{collection:n,document:r}=pe(t.createCollection);return e.createElement(e.Fragment,null,e.createElement(ae,null,e.createElement(G.Provider,{value:r},t.content)),e.createElement(ue,{render:t.children,collection:n}))}function ue({collection:e,render:t}){return t(e)}function de(e,t,n){let i=M(),a=o(i);a.current=i;let s=r(()=>a.current?n():t(),[t,n]);return(0,se.useSyncExternalStore)(e,s)}const fe=typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore:de;function pe(e){let[t]=s(()=>new ie(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:fe(n,i,a),document:t}}const K=t(null);function me(e){var t;return t=class extends P{},t.type=e,t}function he(t,n,a,o,s,c){typeof t==`string`&&(t=me(t));let l=r(e=>{e?.setProps(n,a,t,o,c)},[n,a,o,c,t]),u=i(K);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(K.Provider,{value:r},s):null}return e.createElement(t.type,{ref:l},s)}function ge(t,r){let a=({node:e})=>r(e.props,e.props.ref,e),o=n((n,o)=>{let s=i(N);if(!i(ce)){if(r.length>=3)throw Error(r.name+` cannot be rendered outside a collection.`);return r(n,o)}return he(t,n,o,`children`in n?n.children:null,null,t=>e.createElement(N.Provider,{value:s},e.createElement(a,{node:t})))});return o.displayName=r.name,o}const q=t({}),J=t({}),Y=t({}),_e=t(null),ve=t(null),X=t({}),Z=t({}),Q=t(null),$=t(null);ge(L,function(t,n,r){let s=i($),{isLoading:u,onLoadMore:d,scrollOffset:f,...m}=t,h=o(null),_=a(()=>({onLoadMore:d,collection:s?.collection,sentinelRef:h,scrollOffset:f}),[d,f,s?.collection]);p(_,h);let v=S({...m,id:void 0,children:r.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return e.createElement(e.Fragment,null,e.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:l(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:h,style:{position:`absolute`,height:1,width:1}})),u&&v.children&&e.createElement(D.div,{...g(c(t,{global:!0}),{tabIndex:-1}),...v,role:`option`,ref:n},v.children))});const ye=t(null),be=t(null),xe=t(null),Se=t(null),Ce=n(function(t,n){[t,n]=w(t,n,xe);let{children:r,isDisabled:i=!1,isInvalid:o=!1,isRequired:s=!1}=t,c=a(()=>e.createElement(Q.Provider,{value:{items:t.items??t.defaultItems}},typeof r==`function`?r({isOpen:!1,isDisabled:i,isInvalid:o,isRequired:s,defaultChildren:null}):r),[r,i,o,s,t.items,t.defaultItems]);return e.createElement(le,{content:c},r=>e.createElement(Te,{props:t,collection:r,comboBoxRef:n}))}),we=[q,J,Z,X,Y];function Te({props:t,collection:n,comboBoxRef:i}){let{name:l,formValue:u=`key`,allowsCustomValue:d}=t;d&&(u=`text`);let{validationBehavior:f}=C(ve)||{},p=t.validationBehavior??f??`native`,{contains:m}=v({sensitivity:`base`}),g=ee({...t,defaultFilter:t.defaultFilter||m,items:t.items,children:void 0,collection:n,validationBehavior:p}),y=o(null),b=o(null),x=o(null),w=o(null),[T,E]=ne(!t[`aria-label`]&&!t[`aria-labelledby`]),{buttonProps:O,inputProps:k,listBoxProps:A,labelProps:j,descriptionProps:M,errorMessageProps:N,...P}=_({...re(t),label:E,inputRef:b,buttonRef:y,listBoxRef:x,popoverRef:w,name:u===`text`?l:void 0,validationBehavior:p},g),[F,I]=s(null),L=r(()=>{if(b.current){let e=y.current?.getBoundingClientRect(),t=b.current.getBoundingClientRect(),n=e?Math.min(e.left,t.left):t.left,r=e?Math.max(e.right,t.right):t.right;I(r-n+`px`)}},[y,b,I]);h({ref:b,onResize:L});let R=a(()=>({isOpen:g.isOpen,isDisabled:t.isDisabled||!1,isInvalid:P.isInvalid||!1,isRequired:t.isRequired||!1}),[g.isOpen,t.isDisabled,P.isInvalid,t.isRequired]),z=S({...t,values:R,defaultClassName:`react-aria-ComboBox`}),B=c(t,{global:!0});return delete B.id,e.createElement(te,{values:[[Se,g],[q,{...j,ref:T}],[J,{...O,ref:y,isPressed:g.isOpen}],[Z,{...k,ref:b}],[be,g],[ye,{ref:w,triggerRef:b,scrollRef:x,placement:`bottom start`,isNonModal:!0,trigger:`ComboBox`,style:{"--trigger-width":F},clearContexts:we}],[Q,{...A,ref:x}],[$,g],[Y,{slots:{description:M,errorMessage:N}}],[X,{isInvalid:P.isInvalid,isDisabled:t.isDisabled||!1}],[_e,P]]},e.createElement(D.div,{...B,...z,ref:i,slot:t.slot||void 0,"data-focused":g.isFocused||void 0,"data-open":g.isOpen||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":P.isInvalid||void 0,"data-required":t.isRequired||void 0}),l&&u===`key`&&e.createElement(`input`,{type:`hidden`,name:l,form:t.form,value:g.selectedKey??``}))}export{Ce as ComboBox};
@@ -0,0 +1 @@
1
+ export { DateField, type DateFieldProps, type DateFieldRenderProps } 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{useDateField as p,useLocale as m,useVisuallyHidden as h}from"react-aria";import{createCalendar as g,parseDate as _,parseDateTime as v,toCalendarDate as y,toCalendarDateTime as b,toLocalTimeZone as x}from"@internationalized/date";import{useDateFieldState as S}from"react-stately";const C=Symbol(`default`);function w({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function T(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren: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 E(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||C;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 D(e,t,n){let{ref:r,...i}=E(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 O(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 k(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function A(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 j={},M=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=j[t];return r||(r=n(A.bind(null,t)),j[t]=r),r}}),N=t({}),P=t({}),F=t(null),I=t(null),L=t({}),R=t({}),z=[`day`,`month`,`year`],B={hour:1,minute:2,second:3};function V(e,t){let{autoComplete:n,isDisabled:r,name:i}=e,{visuallyHiddenProps:a}=h({style:{position:`fixed`,top:0,left:0}}),o=60;t.granularity===`second`?o=1:t.granularity===`hour`&&(o=3600);let s=``;t.value&&(s=t.granularity===`day`?y(t.value).toString():b(`timeZone`in t.value?x(t.value):t.value).toString());let c=t.granularity===`day`?`date`:`datetime-local`,l=[`hour`,`minute`,`second`],u=0;return l.includes(t.granularity)&&(u=B[t.granularity],l=l.slice(0,u)),{containerProps:{...a,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":`aria-hidden-focus`},inputProps:{tabIndex:-1,autoComplete:n,disabled:r,type:c,form:``,name:i,step:o,value:s,onChange:e=>{let n=e.target.value.toString();if(n)try{let e=v(n);if(t.granularity===`day`&&(e=_(n)),`setSegment`in t)for(let n in e)z.includes(n)&&t.setSegment(n,e[n]),l.includes(n)&&t.setSegment(n,e[n]);t.setValue(e)}catch{}}}}}function H(t){let{state:n}=t,{containerProps:r,inputProps:i}=V({...t},n);return e.createElement(`div`,{...r,"data-testid":`hidden-dateinput-container`},e.createElement(`input`,i))}const U=t(null),W=t(null),G=n(function(t,n){[t,n]=D(t,n,U);let{validationBehavior:r}=E(I)||{},i=t.validationBehavior??r??`native`,{locale:a}=m(),s=S({...t,locale:a,createCalendar:g,validationBehavior:i}),l=o(null),[u,d]=O(!t[`aria-label`]&&!t[`aria-labelledby`]),f=o(null),{labelProps:h,fieldProps:_,inputProps:v,descriptionProps:y,errorMessageProps:b,...x}=p({...k(t),label:d,inputRef:f,validationBehavior:i},s,l),C=T({...k(t),values:{state:s,isInvalid:s.isInvalid,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly},defaultClassName:`react-aria-DateField`}),A=c(t,{global:!0});return delete A.id,e.createElement(w,{values:[[W,s],[L,{..._,ref:l,isInvalid:s.isInvalid,isDisabled:s.isDisabled}],[R,{...v,ref:f}],[N,{...h,ref:u,elementType:`span`}],[P,{slots:{description:y,errorMessage:b}}],[F,x]]},e.createElement(M.div,{...A,...C,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}),e.createElement(H,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:s}))});export{G as DateField};
@@ -0,0 +1 @@
1
+ export { DateInput, type DateInputProps, type DateInputRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,useContext as i,useMemo as a,useRef as o}from"react";import{mergeProps as s,mergeRefs as c,useLayoutEffect as l,useObjectRef as u}from"@react-aria/utils";import{mergeProps as d,useDateField as f,useFocusRing as p,useHover as m,useLocale as h}from"react-aria";import{createCalendar as g}from"@internationalized/date";import{useDateFieldState as _}from"react-stately";const v=Symbol(`default`);function y({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function b(e){let{className:t,style:n,children:r,defaultClassName: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 x(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 S(e,t,n){let{ref:r,...i}=x(n,e.slot)||{},o=u(a(()=>c(t,r),[t,r])),l=s(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(l.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}),[l,o]}function C(t,n,r){let{render:i,...s}=n,u=o(null),d=a(()=>c(r,u),[r,u]);l(()=>{},[t,i]);let f={...s,ref:d};return i?i(f,void 0):e.createElement(t,f)}const w={},T=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=w[t];return n||(n=r(C.bind(null,t)),w[t]=n),n}});if(typeof HTMLTemplateElement<`u`){let e=Object.getOwnPropertyDescriptor(Node.prototype,`firstChild`).get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const E=n(!1);function D(e){let t=(t,n)=>i(E)?null:e(t,n);return t.displayName=e.displayName||e.name,r(t)}const O=n({}),k=r(function(t,n){[t,n]=S(t,n,O);let{isDisabled:r,isInvalid:i,isReadOnly:a,onHoverStart:o,onHoverChange:s,onHoverEnd:c,...l}=t;r??=!!t[`aria-disabled`]&&t[`aria-disabled`]!==`false`,i??=!!t[`aria-invalid`]&&t[`aria-invalid`]!==`false`;let{hoverProps:u,isHovered:f}=m({onHoverStart:o,onHoverChange:s,onHoverEnd:c,isDisabled:r}),{isFocused:h,isFocusVisible:g,focusProps:_}=p({within:!0}),v=b({...t,values:{isHovered:f,isFocusWithin:h,isFocusVisible:g,isDisabled:r,isInvalid:i},defaultClassName:`react-aria-Group`});return e.createElement(T.div,{...d(l,_,u),...v,ref:n,role:t.role??`group`,slot:t.slot??void 0,"data-focus-within":h||void 0,"data-hovered":f||void 0,"data-focus-visible":g||void 0,"data-disabled":r||void 0,"data-invalid":i||void 0,"data-readonly":a||void 0},v.children)}),A=n({});let j=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i};const M=D(function(t,n){[t,n]=S(t,n,A);let{hoverProps:r,isHovered:i}=m({...t,isDisabled:t.disabled}),{isFocused:a,isFocusVisible:o,focusProps:s}=p({isTextInput:!0,autoFocus:t.autoFocus}),c=!!t[`aria-invalid`]&&t[`aria-invalid`]!==`false`,l=b({...t,values:{isHovered:i,isFocused:a,isFocusVisible:o,isDisabled:t.disabled||!1,isInvalid:c},defaultClassName:`react-aria-Input`});return e.createElement(T.input,{...d(j(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})}),N=n(null),P=n(null),F=n(null),I=r(function(t,n){let r=i(P),a=i(F);return r||a?e.createElement(R,{...t,ref:n}):e.createElement(L,{...t,ref:n})}),L=r((t,n)=>{let[r,i]=S({slot:t.slot},n,N),{locale:a}=h(),s=_({...r,locale:a,createCalendar:g}),c=o(null),{fieldProps:l,inputProps:u}=f({...r,inputRef:c},s,i);return e.createElement(y,{values:[[P,s],[A,{...u,ref:c}],[O,{...l,ref:i,isInvalid:s.isInvalid,isDisabled:s.isDisabled}]]},e.createElement(R,t))}),R=r((n,r)=>{let{className:a,children:o}=n,s=i(P),c=i(F),l=s??c;return e.createElement(e.Fragment,null,e.createElement(k,{...n,ref:r,slot:n.slot||void 0,className:a??`react-aria-DateInput`,isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isDisabled:l.isDisabled},l.segments.map((e,n)=>t(o(e),{key:n}))),e.createElement(M,{className:``}))});export{I as DateInput};
@@ -0,0 +1 @@
1
+ export { DatePicker, type DatePickerProps, type DatePickerRenderProps } 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,useResizeObserver as ee}from"@react-aria/utils";import{useDatePicker as p,useFocusRing as m,useVisuallyHidden as h}from"react-aria";import{parseDate as g,parseDateTime as _,toCalendarDate as v,toCalendarDateTime as y,toLocalTimeZone as b}from"@internationalized/date";import{useDatePickerState as x}from"react-stately";const S=Symbol(`default`);function te({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||S;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=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 E(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 D(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function O(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 k={},A=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=k[t];return r||(r=n(O.bind(null,t)),k[t]=r),r}}),j=t({}),M=t({}),N=t({}),P=t(null),F=t(null),I=t(null),L=t({}),R=t(null),z=t(null),B=t(null),V=[`day`,`month`,`year`],H={hour:1,minute:2,second:3};function U(e,t){let{autoComplete:n,isDisabled:r,name:i}=e,{visuallyHiddenProps:a}=h({style:{position:`fixed`,top:0,left:0}}),o=60;t.granularity===`second`?o=1:t.granularity===`hour`&&(o=3600);let s=``;t.value&&(s=t.granularity===`day`?v(t.value).toString():y(`timeZone`in t.value?b(t.value):t.value).toString());let c=t.granularity===`day`?`date`:`datetime-local`,l=[`hour`,`minute`,`second`],u=0;return l.includes(t.granularity)&&(u=H[t.granularity],l=l.slice(0,u)),{containerProps:{...a,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":`aria-hidden-focus`},inputProps:{tabIndex:-1,autoComplete:n,disabled:r,type:c,form:``,name:i,step:o,value:s,onChange:e=>{let n=e.target.value.toString();if(n)try{let e=_(n);if(t.granularity===`day`&&(e=g(n)),`setSegment`in t)for(let n in e)V.includes(n)&&t.setSegment(n,e[n]),l.includes(n)&&t.setSegment(n,e[n]);t.setValue(e)}catch{}}}}}function W(t){let{state:n}=t,{containerProps:r,inputProps:i}=U({...t},n);return e.createElement(`div`,{...r,"data-testid":`hidden-dateinput-container`},e.createElement(`input`,i))}const G=t(null),K=t(null),q=t(null),J=[L,M,j,N],Y=n(function(t,n){[t,n]=T(t,n,K);let{validationBehavior:i}=w(I)||{},a=t.validationBehavior??i??`native`,u=x({...t,validationBehavior:a}),d=o(null),[f,h]=E(!t[`aria-label`]&&!t[`aria-labelledby`]),{groupProps:g,labelProps:_,fieldProps:v,buttonProps:y,dialogProps:b,calendarProps:S,descriptionProps:O,errorMessageProps:k,...V}=p({...D(t),label:h,validationBehavior:a},u,d),[H,U]=s(null),Y=r(()=>{d.current&&U(d.current.offsetWidth+`px`)},[]);ee({ref:d,onResize:Y});let{focusProps:X,isFocused:Z,isFocusVisible:Q}=m({within:!0}),ne=C({...t,values:{state:u,isFocusWithin:Z,isFocusVisible:Q,isDisabled:t.isDisabled||!1,isInvalid:u.isInvalid,isOpen:u.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:`react-aria-DatePicker`}),$=c(t,{global:!0});return delete $.id,e.createElement(te,{values:[[q,u],[L,{...g,ref:d,isInvalid:u.isInvalid}],[G,v],[M,{...y,isPressed:u.isOpen}],[j,{..._,ref:f,elementType:`span`}],[P,S],[B,u],[R,{trigger:`DatePicker`,triggerRef:d,placement:`bottom start`,style:{"--trigger-width":H},clearContexts:J}],[z,b],[N,{slots:{description:O,errorMessage:k}}],[F,V]]},e.createElement(A.div,{...l($,ne,X),ref:n,slot:t.slot||void 0,"data-focus-within":Z||void 0,"data-invalid":u.isInvalid||void 0,"data-focus-visible":Q||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-open":u.isOpen||void 0}),e.createElement(W,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:u}))});export{Y as DatePicker};
@@ -0,0 +1 @@
1
+ export { DateRangePicker, type DateRangePickerProps, type DateRangePickerRenderProps } 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,useResizeObserver as ee}from"@react-aria/utils";import{useDateRangePicker as p,useFocusRing as m}from"react-aria";import"@internationalized/date";import{useDateRangePickerState 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={},te=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}}),T=t({}),E=t({}),D=t({}),O=t(null),k=t(null),A=t(null),j=t({}),M=t(null),N=t(null),P=t(null),F=t(null),I=t(null),L=t(null),R=[j,E,T,D],z=n(function(t,n){[t,n]=b(t,n,I);let{validationBehavior:i}=y(A)||{},a=t.validationBehavior??i??`native`,u=h({...t,validationBehavior:a}),d=o(null),[f,g]=x(!t[`aria-label`]&&!t[`aria-labelledby`]),{groupProps:C,labelProps:w,startFieldProps:z,endFieldProps:B,buttonProps:V,dialogProps:H,calendarProps:U,descriptionProps:W,errorMessageProps:G,...K}=p({...S(t),label:g,validationBehavior:a},u,d),[q,J]=s(null),Y=r(()=>{d.current&&J(d.current.offsetWidth+`px`)},[]);ee({ref:d,onResize:Y});let{focusProps:X,isFocused:Z,isFocusVisible:Q}=m({within:!0}),ne=v({...t,values:{state:u,isFocusWithin:Z,isFocusVisible:Q,isDisabled:t.isDisabled||!1,isInvalid:u.isInvalid,isOpen:u.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:`react-aria-DateRangePicker`}),$=c(t,{global:!0});return delete $.id,e.createElement(_,{values:[[L,u],[j,{...C,ref:d,isInvalid:u.isInvalid}],[E,{...V,isPressed:u.isOpen}],[T,{...w,ref:f,elementType:`span`}],[O,U],[P,u],[M,{trigger:`DateRangePicker`,triggerRef:d,placement:`bottom start`,style:{"--trigger-width":q},clearContexts:R}],[N,H],[F,{slots:{start:z,end:B}}],[D,{slots:{description:W,errorMessage:G}}],[k,K]]},e.createElement(te.div,{...l($,ne,X),ref:n,slot:t.slot||void 0,"data-focus-within":Z||void 0,"data-invalid":u.isInvalid||void 0,"data-focus-visible":Q||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-open":u.isOpen||void 0}))});export{z as DateRangePicker};
@@ -0,0 +1 @@
1
+ export { DateSegment, type DateSegmentProps, type DateSegmentRenderProps } 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{mergeProps as u,useDateSegment as d,useFocusRing as f,useHover as p}from"react-aria";import"@internationalized/date";import"react-stately";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(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 g={},_=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=g[t];return r||(r=n(h.bind(null,t)),g[t]=r),r}}),v=t(null),y=t(null),b=n(function({segment:t,...n},i){let a=r(v),s=r(y),c=a??s,h=l(i),{segmentProps:g}=d(t,c,h),{focusProps:b,isFocused:x,isFocusVisible:S}=f(),{hoverProps:C,isHovered:w}=p({...n,isDisabled:c.isDisabled||t.type===`literal`}),T=m({...n,values:{...t,isReadOnly:c.isReadOnly,isInvalid:c.isInvalid,isDisabled:c.isDisabled,isHovered:w,isFocused:x,isFocusVisible:S},defaultChildren:t.text,defaultClassName:`react-aria-DateSegment`});return e.createElement(_.span,{...u(o(n,{global:!0}),g,b,C),...T,style:g.style,ref:h,"data-placeholder":t.isPlaceholder||void 0,"data-invalid":c.isInvalid||void 0,"data-readonly":c.isReadOnly||void 0,"data-disabled":c.isDisabled||void 0,"data-type":t.type,"data-hovered":w||void 0,"data-focused":x||void 0,"data-focus-visible":S||void 0})});export{b as DateSegment};
@@ -0,0 +1 @@
1
+ export { DefaultCollectionRenderer } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{cloneElement as t,isValidElement as n,useMemo as r}from"react";function i(e){let{children:n,items:i,idScope:a,addIdAndValue:o,dependencies:s=[]}=e,c=r(()=>new WeakMap,s);return r(()=>{if(i&&typeof n==`function`){let e=[];for(let r of i){let i=c.get(r);if(!i){i=n(r);let e=i.props.id??r.key??r.id;if(e==null)throw Error(`Could not determine key for item`);a!=null&&(e=a+`:`+e),i=t(i,o?{key:e,id:e,value:r}:{key:e}),c.set(r,i)}e.push(i)}return e}if(typeof n!=`function`)return n},[n,i,c,a,o])}const a={CollectionRoot({collection:e,renderDropIndicator:t}){return o(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return o(e,t,n)}};function o(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,s(t,n,r))}})}function s(e,r,i){let a=r.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=r.nextKey==null?null:e.getItem(r.nextKey);for(;c!=null&&c.type!==`item`;)c=c.nextKey==null?null:e.getItem(c.nextKey);let l=[];if(c==null){let a=r;for(;a?.type===`item`&&(!s||a.parentKey!==s.parentKey&&s.level<a.level);){let r=i({type:`item`,key:a.key,dropPosition:`after`});n(r)&&l.push(t(r,{key:`${a.key}-after`})),a=a.parentKey==null?null:e.getItem(a.parentKey)}}return l}export{a as DefaultCollectionRenderer};
@@ -0,0 +1 @@
1
+ export { Dialog, type DialogProps, type DialogRenderProps } 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{useDialog as d}from"react-aria";import"react-stately";t(null),t(null),t(null),t(null),t(null);const f=t({});t(null),t(null);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(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 _(e,t,n){let{ref:r,...a}=g(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 v(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 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}}),x=t({}),S=t(null),C=t(null),w=n(function(t,n){let i=t[`aria-labelledby`];[t,n]=_(t,n,S);let{dialogProps:a,titleProps:c}=d({...t,"aria-labelledby":i},n),l=r(C);!a[`aria-label`]&&!a[`aria-labelledby`]&&t[`aria-labelledby`]&&(a[`aria-labelledby`]=t[`aria-labelledby`]);let u=h({defaultClassName:`react-aria-Dialog`,className:t.className,style:t.style,children:t.children,values:{close:l?.close||(()=>{})}}),g=o(t,{global:!0});return e.createElement(b.section,{...s(g,u,a),render:t.render,ref:n,slot:t.slot||void 0},e.createElement(m,{values:[[f,{slots:{[p]:{},title:{...c,level:2}}}],[x,{slots:{[p]:{},close:{onPress:()=>l?.close()}}}]]},u.children))});export{w as Dialog};
@@ -0,0 +1 @@
1
+ export { DialogTrigger, type DialogTriggerProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useCallback as r,useContext as i,useEffect as a,useMemo as o,useRef as s,useState as c}from"react";import{mergeProps as l,mergeRefs as u,useLayoutEffect as d,useObjectRef as f,useResizeObserver as p,useSyncRef as m}from"@react-aria/utils";import{useId as h,useOverlayTrigger as g}from"react-aria";import{useMenuTriggerState as _}from"react-stately";function v({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function y(t,n,r){let{render:i,...a}=n,c=s(null),l=o(()=>u(r,c),[r,c]);d(()=>{},[t,i]);let f={...a,ref:l};return i?i(f,void 0):e.createElement(t,f)}const b={};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}});const x=e.createContext({register:()=>{}});x.displayName=`PressResponderContext`;const S=e.forwardRef(({children:t,...n},r)=>{let o=s(!1),c=i(x),u=l(c||{},{...n,register(){o.current=!0,c&&c.register()}});return u.ref=f(r||c?.ref),m(c,u.ref),a(()=>{o.current||=!0},[]),e.createElement(x.Provider,{value:u},t)});var C=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}},w=class extends C{filter(e,t,n){let[r,i]=k(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},T=class extends C{};T.type=`header`;var E=class extends C{};E.type=`loader`;var D=class extends w{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};D.type=`item`;var O=class extends w{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}};O.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]}const A=t(null),j=t(null);var M=class extends C{filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};M.type=`submenutrigger`;const N=t(null),P=t(null);function F(t){let n=_(t),i=s(null),{triggerProps:a,overlayProps:o}=g({type:`dialog`},n,i),[l,u]=c(null),d=r(()=>{i.current&&u(i.current.offsetWidth+`px`)},[i]);return p({ref:i,onResize:d}),a.id=h(),o[`aria-labelledby`]=a.id,e.createElement(v,{values:[[P,n],[j,n],[N,o],[A,{trigger:`DialogTrigger`,triggerRef:i,"aria-labelledby":o[`aria-labelledby`],style:{"--trigger-width":l}}]]},e.createElement(S,{...a,ref:i,isPressed:n.isOpen},t.children))}export{F as DialogTrigger};
@@ -0,0 +1 @@
1
+ export { Disclosure, type DisclosureProps, type DisclosureRenderProps } 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,useId as l,useLayoutEffect as u,useObjectRef as d}from"@react-aria/utils";import{useDisclosure as f,useFocusRing as p}from"react-aria";import{useDisclosureState as m}from"react-stately";const h=Symbol(`default`);function g({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function _(e){let{className:t,style:n,children:r,defaultClassName: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(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 y(e,t,n){let{ref:r,...a}=v(n,e.slot)||{},o=d(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 b(t,n,r){let{render:o,...s}=n,l=a(null),d=i(()=>c(r,l),[r,l]);u(()=>{},[t,o]);let f={...s,ref:d};return o?o(f,void 0):e.createElement(t,f)}const x={},S=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=x[t];return r||(r=n(b.bind(null,t)),x[t]=r),r}}),C=t({}),w=t(null),T=t(null),E=t(null),D=t(null),O=n(function(t,n){[t,n]=y(t,n,T);let i=r(w),{id:a,...c}=t,u=l();a||=u;let d=i?i.expandedKeys.has(a):t.isExpanded,v=m({...t,isExpanded:d,onExpandedChange(e){var n;i&&i.toggleKey(a),(n=t.onExpandedChange)==null||n.call(t,e)}}),b=e.useRef(null),x=t.isDisabled||i?.isDisabled||!1,{buttonProps:O,panelProps:k}=f({...t,isExpanded:d,isDisabled:x},v,b),{isFocusVisible:A,focusProps:j}=p({within:!0}),M=_({...t,id:void 0,defaultClassName:`react-aria-Disclosure`,values:{isExpanded:v.isExpanded,isDisabled:x,isFocusVisibleWithin:A,state:v}}),N=o(c,{global:!0});return e.createElement(g,{values:[[C,{slots:{[h]:{},trigger:O}}],[D,{panelProps:k,panelRef:b}],[E,v]]},e.createElement(S.div,{...s(N,M,j),ref:n,"data-expanded":v.isExpanded||void 0,"data-disabled":x||void 0,"data-focus-visible-within":A||void 0},M.children))});export{O as Disclosure};
@@ -0,0 +1 @@
1
+ export { DisclosureGroup, type DisclosureGroupProps, type DisclosureGroupRenderProps } 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{filterDOMProps as a,mergeRefs as o,useLayoutEffect as s}from"@react-aria/utils";import"react-aria";import{useDisclosureGroupState as c}from"react-stately";function l(e){let{className:t,style:n,children:i,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return r(()=>{let e,r,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,r=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof i==`function`?i({...c,defaultChildren:o}):i??o,{className:e??a,style:r||s?{...s,...r}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,i,a,o,s,c,l])}function u(t,n,a){let{render:c,...l}=n,u=i(null),d=r(()=>o(a,u),[a,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 r=c(t),i=l({...t,defaultClassName:`react-aria-DisclosureGroup`,values:{isDisabled:r.isDisabled,state:r}}),o=a(t,{global:!0});return e.createElement(f.div,{...o,...i,ref:n,"data-disabled":t.isDisabled||void 0},e.createElement(p.Provider,{value:r},i.children))});export{m as DisclosureGroup};
@@ -0,0 +1 @@
1
+ export { DisclosurePanel, type DisclosurePanelProps, type DisclosurePanelRenderProps } 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}from"@react-aria/utils";import{useFocusRing as u}from"react-aria";import"react-stately";function d({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function f(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function p(t,n,r){let{render:o,...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 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({}),_=t(null),v=n(function(t,n){let{role:i=`group`}=t,{panelProps:a,panelRef:l}=r(_),{isFocusVisible:p,focusProps:m}=u({within:!0}),v=f({...t,defaultClassName:`react-aria-DisclosurePanel`,values:{isFocusVisibleWithin:p}}),y=o(t,{global:!0,labelable:!0});return e.createElement(h.div,{...s(y,v,a,m),ref:c(n,l),role:i,"data-focus-visible-within":p||void 0},e.createElement(d,{values:[[g,null]]},t.children))});export{v as DisclosurePanel};
@@ -0,0 +1 @@
1
+ export { DropIndicator, type DropIndicatorProps, type DropIndicatorRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r}from"react";const i=t(null),a=n(function(t,n){let{render:a}=r(i);return e.createElement(e.Fragment,null,a(t,n))});export{a as DropIndicator};
@@ -0,0 +1 @@
1
+ export { DropZone, type DropZoneProps, type DropZoneRenderProps } 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,isFocusable as s,mergeProps as c,mergeRefs as l,nodeContains as u,useLabels as d,useLayoutEffect as f,useObjectRef as p,useSlotId as ee}from"@react-aria/utils";import{VisuallyHidden as te,mergeProps as m,useButton as ne,useClipboard as re,useDrop as ie,useFocusRing as ae,useHover as oe,useLocalizedStringFormatter as se}from"react-aria";const h=Symbol(`default`);function ce({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function le(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(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 ue(e,t,n){let{ref:r,...a}=g(n,e.slot)||{},o=p(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 _(t,n,r){let{render:o,...s}=n,c=a(null),u=i(()=>l(r,c),[r,c]);f(()=>{},[t,o]);let d={...s,ref:u};return o?o(d,void 0):e.createElement(t,d)}const v={},de=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}}),fe=t({});var y={};y={colorSwatchPicker:`تغييرات الألوان`,dropzoneLabel:`DropZone`,selectPlaceholder:`حدد عنصرًا`,tableResizer:`أداة تغيير الحجم`};var b={};b={colorSwatchPicker:`Цветови мостри`,dropzoneLabel:`DropZone`,selectPlaceholder:`Изберете предмет`,tableResizer:`Преоразмерител`};var x={};x={colorSwatchPicker:`Vzorky barev`,dropzoneLabel:`Místo pro přetažení`,selectPlaceholder:`Vyberte položku`,tableResizer:`Změna velikosti`};var S={};S={colorSwatchPicker:`Farveprøver`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vælg et element`,tableResizer:`Størrelsesændring`};var C={};C={colorSwatchPicker:`Farbfelder`,dropzoneLabel:`Ablegebereich`,selectPlaceholder:`Element wählen`,tableResizer:`Größenanpassung`};var w={};w={colorSwatchPicker:`Χρωματικά δείγματα`,dropzoneLabel:`DropZone`,selectPlaceholder:`Επιλέξτε ένα αντικείμενο`,tableResizer:`Αλλαγή μεγέθους`};var T={};T={selectPlaceholder:`Select an item`,tableResizer:`Resizer`,dropzoneLabel:`DropZone`,colorSwatchPicker:`Color swatches`};var E={};E={colorSwatchPicker:`Muestras de colores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Seleccionar un artículo`,tableResizer:`Cambiador de tamaño`};var D={};D={colorSwatchPicker:`Värvinäidised`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valige üksus`,tableResizer:`Suuruse muutja`};var O={};O={colorSwatchPicker:`Värimallit`,dropzoneLabel:`DropZone`,selectPlaceholder:`Valitse kohde`,tableResizer:`Koon muuttaja`};var k={};k={colorSwatchPicker:`Échantillons de couleurs`,dropzoneLabel:`DropZone`,selectPlaceholder:`Sélectionner un élément`,tableResizer:`Redimensionneur`};var A={};A={colorSwatchPicker:`דוגמיות צבע`,dropzoneLabel:`DropZone`,selectPlaceholder:`בחר פריט`,tableResizer:`שינוי גודל`};var j={};j={colorSwatchPicker:`Uzorci boja`,dropzoneLabel:`Zona spuštanja`,selectPlaceholder:`Odaberite stavku`,tableResizer:`Promjena veličine`};var M={};M={colorSwatchPicker:`Színtárak`,dropzoneLabel:`DropZone`,selectPlaceholder:`Válasszon ki egy elemet`,tableResizer:`Átméretező`};var N={};N={colorSwatchPicker:`Campioni di colore`,dropzoneLabel:`Zona di rilascio`,selectPlaceholder:`Seleziona un elemento`,tableResizer:`Ridimensionamento`};var P={};P={colorSwatchPicker:`カラースウォッチ`,dropzoneLabel:`ドロップゾーン`,selectPlaceholder:`項目を選択`,tableResizer:`サイズ変更ツール`};var F={};F={colorSwatchPicker:`색상 견본`,dropzoneLabel:`드롭 영역`,selectPlaceholder:`항목 선택`,tableResizer:`크기 조정기`};var I={};I={colorSwatchPicker:`Spalvų pavyzdžiai`,dropzoneLabel:`„DropZone“`,selectPlaceholder:`Pasirinkite elementą`,tableResizer:`Dydžio keitiklis`};var L={};L={colorSwatchPicker:`Krāsu paraugi`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izvēlēties vienumu`,tableResizer:`Izmēra mainītājs`};var R={};R={colorSwatchPicker:`Fargekart`,dropzoneLabel:`Droppsone`,selectPlaceholder:`Velg et element`,tableResizer:`Størrelsesendrer`};var z={};z={colorSwatchPicker:`kleurstalen`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecteer een item`,tableResizer:`Resizer`};var B={};B={colorSwatchPicker:`Próbki kolorów`,dropzoneLabel:`Strefa upuszczania`,selectPlaceholder:`Wybierz element`,tableResizer:`Zmiana rozmiaru`};var V={};V={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var H={};H={colorSwatchPicker:`Amostras de cores`,dropzoneLabel:`DropZone`,selectPlaceholder:`Selecione um item`,tableResizer:`Redimensionador`};var U={};U={colorSwatchPicker:`Specimene de culoare`,dropzoneLabel:`Zonă de plasare`,selectPlaceholder:`Selectați un element`,tableResizer:`Instrument de redimensionare`};var W={};W={colorSwatchPicker:`Цветовые образцы`,dropzoneLabel:`DropZone`,selectPlaceholder:`Выберите элемент`,tableResizer:`Средство изменения размера`};var G={};G={colorSwatchPicker:`Vzorkovníky farieb`,dropzoneLabel:`DropZone`,selectPlaceholder:`Vyberte položku`,tableResizer:`Nástroj na zmenu veľkosti`};var K={};K={colorSwatchPicker:`Barvne palete`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izberite element`,tableResizer:`Spreminjanje velikosti`};var q={};q={colorSwatchPicker:`Uzorci boje`,dropzoneLabel:`DropZone`,selectPlaceholder:`Izaberite stavku`,tableResizer:`Promena veličine`};var J={};J={colorSwatchPicker:`Färgrutor`,dropzoneLabel:`DropZone`,selectPlaceholder:`Välj en artikel`,tableResizer:`Storleksändrare`};var Y={};Y={colorSwatchPicker:`Renk örnekleri`,dropzoneLabel:`Bırakma Bölgesi`,selectPlaceholder:`Bir öğe seçin`,tableResizer:`Yeniden boyutlandırıcı`};var X={};X={colorSwatchPicker:`Зразки кольорів`,dropzoneLabel:`DropZone`,selectPlaceholder:`Виберіть елемент`,tableResizer:`Засіб змінення розміру`};var Z={};Z={colorSwatchPicker:`颜色色板`,dropzoneLabel:`放置区域`,selectPlaceholder:`选择一个项目`,tableResizer:`尺寸调整器`};var Q={};Q={colorSwatchPicker:`色票`,dropzoneLabel:`放置區`,selectPlaceholder:`選取項目`,tableResizer:`大小調整器`};var $={};$={"ar-AE":y,"bg-BG":b,"cs-CZ":x,"da-DK":S,"de-DE":C,"el-GR":w,"en-US":T,"es-ES":E,"et-EE":D,"fi-FI":O,"fr-FR":k,"he-IL":A,"hr-HR":j,"hu-HU":M,"it-IT":N,"ja-JP":P,"ko-KR":F,"lt-LT":I,"lv-LV":L,"nb-NO":R,"nl-NL":z,"pl-PL":B,"pt-BR":V,"pt-PT":H,"ro-RO":U,"ru-RU":W,"sk-SK":G,"sl-SI":K,"sr-SP":q,"sv-SE":J,"tr-TR":Y,"uk-UA":X,"zh-CN":Z,"zh-TW":Q};function pe(e){return e&&e.__esModule?e.default:e}const me=t(null),he=n(function(t,n){let{isDisabled:r=!1}=t;[t,n]=ue(t,n,me);let i=p(n),c=a(null),{dropProps:l,dropButtonProps:f,isDropTarget:h}=ie({...t,ref:c,hasDropButton:!0}),{buttonProps:g}=ne(f||{},c),{hoverProps:_,isHovered:v}=oe(t),{focusProps:y,isFocused:b,isFocusVisible:x}=ae(),S=se(pe($),`react-aria-components`),C=ee(),w=t[`aria-label`]||S.format(`dropzoneLabel`),T=[C,t[`aria-labelledby`]].filter(Boolean).join(` `),E=d({"aria-label":w,"aria-labelledby":T}),{clipboardProps:D}=re({isDisabled:r,onPaste:e=>t.onDrop?.call(t,{type:`drop`,items:e,x:0,y:0,dropOperation:`copy`})}),O=le({...t,values:{isHovered:v,isFocused:b,isFocusVisible:x,isDropTarget:h,isDisabled:r},defaultClassName:`react-aria-DropZone`}),k=o(t,{global:!0});return delete k.id,e.createElement(ce,{values:[[fe,{id:C,slot:`label`}]]},e.createElement(de.div,{...m(k,O,l,_),slot:t.slot||void 0,ref:i,onClick:e=>{let t=e.target;for(;t&&u(i.current,t)&&!s(t);){if(t===i.current){var n;(n=c.current)==null||n.focus();break}t=t.parentElement}},"data-hovered":v||void 0,"data-focused":b||void 0,"data-focus-visible":x||void 0,"data-drop-target":h||void 0,"data-disabled":r||void 0},e.createElement(te,null,e.createElement(`button`,{...m(g,y,D,E),ref:c})),O.children))});export{he as DropZone};
@@ -0,0 +1 @@
1
+ export { FieldError, type FieldErrorProps, type FieldErrorRenderProps } 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";const d=Symbol(`default`);function f(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function p(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||d;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function m(e,t,n){let{ref:r,...a}=p(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 h(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 g={},_=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=g[t];return r||(r=n(h.bind(null,t)),g[t]=r),r}}),v=t({}),y=n(function(t,n){[t,n]=m(t,n,v);let{elementType:r=`span`,...i}=t,a=_[r];return e.createElement(a,{className:`react-aria-Text`,...i,ref:n})}),b=t(null),x=n(function(t,n){return r(b)?.isInvalid?e.createElement(S,{...t,ref:n}):null}),S=n((t,n)=>{let i=r(b),a=o(t,{global:!0}),s=f({...t,defaultClassName:`react-aria-FieldError`,defaultChildren:i.validationErrors.length===0?void 0:i.validationErrors.join(` `),values:i});return s.children==null?null:e.createElement(y,{slot:`errorMessage`,...a,...s,ref:n})});export{x as FieldError};
@@ -0,0 +1 @@
1
+ export { FileTrigger, type FileTriggerProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useEffect as i,useMemo as a,useRef as o}from"react";import{filterDOMProps as s,mergeProps as c,mergeRefs as l,useLayoutEffect as u,useObjectRef as d,useSyncRef as f}from"@react-aria/utils";import{mergeProps as p,useFocusRing as m,useHover as h}from"react-aria";const g=Symbol(`default`);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=r(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 y(e,t,n){let{ref:r,...i}=v(n,e.slot)||{},o=d(a(()=>l(t,r),[t,r])),s=c(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(s.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[s,o]}function b(t,n,r){let{render:i,...s}=n,c=o(null),d=a(()=>l(r,c),[r,c]);u(()=>{},[t,i]);let f={...s,ref:d};return i?i(f,void 0):e.createElement(t,f)}const x={},S=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=x[t];return r||(r=n(b.bind(null,t)),x[t]=r),r}}),C=e.createContext({register:()=>{}});C.displayName=`PressResponderContext`;const w=e.forwardRef(({children:t,...n},a)=>{let s=o(!1),l=r(C),u=c(l||{},{...n,register(){s.current=!0,l&&l.register()}});return u.ref=d(a||l?.ref),f(l,u.ref),i(()=>{s.current||=!0},[]),e.createElement(C.Provider,{value:u},t)});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)=>r(T)?null:e(t,n);return t.displayName=e.displayName||e.name,n(t)}const D=t({});let O=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i};const k=E(function(t,n){[t,n]=y(t,n,D);let{hoverProps:r,isHovered:i}=h({...t,isDisabled:t.disabled}),{isFocused:a,isFocusVisible:o,focusProps:s}=m({isTextInput:!0,autoFocus:t.autoFocus}),c=!!t[`aria-invalid`]&&t[`aria-invalid`]!==`false`,l=_({...t,values:{isHovered:i,isFocused:a,isFocusVisible:o,isDisabled:t.disabled||!1,isInvalid:c},defaultClassName:`react-aria-Input`});return e.createElement(S.input,{...p(O(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})}),A=n(function(t,n){let{onSelect:r,acceptedFileTypes:i,allowsMultiple:a,defaultCamera:o,children:c,acceptDirectory:l,...u}=t,f=d(n),p=s(u,{global:!0});return e.createElement(e.Fragment,null,e.createElement(w,{onPress:()=>{var e;f.current?.value&&(f.current.value=``),(e=f.current)==null||e.click()}},c),e.createElement(k,{...p,className:``,type:`file`,ref:f,style:{display:`none`},accept:i?.toString(),onChange:e=>r?.(e.target.files),capture:o,multiple:a,webkitdirectory:l?``:void 0}))});export{A as FileTrigger};
@@ -0,0 +1 @@
1
+ export { Focusable } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import{Focusable as e}from"react-aria";import"react-stately";export{e as Focusable};
@@ -0,0 +1 @@
1
+ export { Form, type FormProps } 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{FormValidationContext as u}from"react-stately";const d=Symbol(`default`);function f(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||d;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function p(e,t,n){let{ref:r,...a}=f(n,e.slot)||{},c=l(i(()=>s(t,r),[t,r])),u=o(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(u.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[u,c]}function m(t,n,r){let{render:o,...l}=n,u=a(null),d=i(()=>s(r,u),[r,u]);c(()=>{},[t,o]);let f={...l,ref:d};return o?o(f,void 0):e.createElement(t,f)}const h={},g=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=h[t];return r||(r=n(m.bind(null,t)),h[t]=r),r}}),_=t(null),v=n(function(t,n){[t,n]=p(t,n,_);let{validationErrors:r,validationBehavior:i=`native`,children:a,className:o,...s}=t;return e.createElement(g.form,{noValidate:i!==`native`,...s,ref:n,className:o||`react-aria-Form`},e.createElement(_.Provider,{value:{...t,validationBehavior:i}},e.createElement(u.Provider,{value:r??{}},a)))});export{v as Form};
@@ -0,0 +1 @@
1
+ export { GridList, type GridListProps, type GridListRenderProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useEffect as s,useMemo as c,useRef as l,useState as u}from"react";import{filterDOMProps as d,inertValue as f,mergeProps as p,mergeRefs as m,useLayoutEffect as h,useLoadMoreSentinel as g,useObjectRef as _}from"@react-aria/utils";import{createPortal as v}from"react-dom";import{FocusScope as ee,ListKeyboardDelegate as y,mergeProps as b,useCollator as te,useFocusRing as ne,useGridList as re,useLocale as ie,useVisuallyHidden as x}from"react-aria";import{UNSTABLE_useFilteredListState as ae,useListState as oe}from"react-stately";var S=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),C=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});n(null),n(null),n(null),n(null),n(null),n({});const se=n(null);n(null);const w=Symbol(`default`);function ce({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function T(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:l}=e;return c(()=>{let e,c,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,c=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:c||o?{...o,...c}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,s):void 0}},[t,n,r,i,a,o,s,l])}function E(e,t){let n=o(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||w;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 D(e,t,n){let{ref:r,...i}=E(n,e.slot)||{},a=_(c(()=>m(t,r),[t,r])),o=p(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(o.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[o,a]}function O(t,n,r){let{render:i,...a}=n,o=l(null),s=c(()=>m(r,o),[r,o]);h(()=>{},[t,i]);let u={...a,ref:s};return i?i(u,void 0):e.createElement(t,u)}const k={},A=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=k[t];return n||(n=r(O.bind(null,t)),k[t]=n),n}});String(Math.round(Math.random()*1e10));const j=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function M(){return!1}function N(){return!0}function P(e){return()=>{}}function F(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(P,M,N):o(j)}let I=e.createContext(null);var L=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},R=class extends L{filter(e,t,n){let[r,i]=W(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},z=class extends L{};z.type=`header`;var B=class extends L{};B.type=`loader`;var V=class extends R{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};V.type=`item`;var H=class extends R{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}};H.type=`section`;var U=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]=W(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 W(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 G=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}},K=class e extends G{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}},q=class extends G{get isConnected(){return!0}createElement(e){return new K(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 K&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof K?(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 J(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 Y=n(!1);function le(t){if(o(Y))return e.createElement(e.Fragment,null,t.children);let n=e.createElement(Y.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=S((e=>{var t=C(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),de=S(((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=F(),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 q(e?.()||new U)),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 L{},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(I);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(I.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}function xe(e){return J({...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 F()?e.createElement(Z.Provider,{value:n},r):v(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 J({items:n?t.getChildren(n.key):t,dependencies:[r],children(n){let i=n.render(n);return!r||n.type!==`item`?i:e.createElement(e.Fragment,null,r({type:`item`,key:n.key,dropPosition:`before`}),i,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 Oe=n(Te),Q=n({}),ke=n(null),Ae=r(function(t,n){let{render:r}=o(ke);return e.createElement(e.Fragment,null,r(t,n))});function je(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(Ae,{target:t})},[n?.target,i,r]);return t?.useDropIndicator?o:void 0}function Me(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 Ne=n(null);function Pe(t){let n=l({});return e.createElement(Ne.Provider,{value:n},t.children)}const $=n(null);be(B,function(t,n,r){let i=o($),{isLoading:a,onLoadMore:s,scrollOffset:u,...p}=t,m=l(null),h=c(()=>({onLoadMore:s,collection:i?.collection,sentinelRef:m,scrollOffset:u}),[s,u,i?.collection]);g(h,m);let _=T({...p,id:void 0,children:r.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return e.createElement(e.Fragment,null,e.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:f(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:m,style:{position:`absolute`,height:1,width:1}})),a&&_.children&&e.createElement(A.div,{...b(d(t,{global:!0}),{tabIndex:-1}),..._,role:`option`,ref:n},_.children))});const Fe=n(null),Ie=r(function(t,n){return[t,n]=D(t,n,Fe),e.createElement(pe,{content:e.createElement(Ce,t)},r=>e.createElement(Le,{props:t,collection:r,gridListRef:n}))});function Le({props:t,collection:n,gridListRef:r}){[t,r]=D(t,r,se);let{shouldUseVirtualFocus:i,filter:a,disallowTypeAhead:u,...f}=t,{dragAndDropHooks:p,keyboardNavigationBehavior:m=`arrow`,layout:h=`stack`}=t,{CollectionRoot:g,isVirtualized:_,layoutDelegate:v,dropTargetDelegate:x}=o(Oe),S=oe({...f,collection:n,children:void 0,layoutDelegate:v}),C=ae(S,a),w=te({usage:`search`,sensitivity:`base`}),{disabledBehavior:E,disabledKeys:O}=C.selectionManager,{direction:k}=ie(),j=c(()=>new y({collection:C.collection,collator:w,ref:r,disabledKeys:O,disabledBehavior:E,layoutDelegate:v,layout:h,direction:k}),[C.collection,r,h,O,E,v,w,k]),{gridProps:M}=re({...f,keyboardDelegate:j,keyboardNavigationBehavior:h===`grid`?`tab`:m,isVirtualized:_,shouldSelectOnPressUp:t.shouldSelectOnPressUp,disallowTypeAhead:u},C,r),N=C.selectionManager,P=!!p?.useDraggableCollectionState,F=!!p?.useDroppableCollectionState;l(P),l(F),s(()=>{},[P,F]);let I,L,R,z=!1,B=null,V=l(null);if(P&&p){I=p.useDraggableCollectionState({collection:C.collection,selectionManager:N,preview:p.renderDragPreview?V:void 0}),p.useDraggableCollection({},I,r);let t=p.DragPreview;B=p.renderDragPreview?e.createElement(t,{ref:V},p.renderDragPreview):null}if(F&&p){L=p.useDroppableCollectionState({collection:C.collection,selectionManager:N});let e=new y({collection:C.collection,disabledKeys:N.disabledKeys,disabledBehavior:N.disabledBehavior,ref:r}),t=p.dropTargetDelegate||x||new p.ListDropTargetDelegate(n,r,{layout:h,direction:k});R=p.useDroppableCollection({keyboardDelegate:e,dropTargetDelegate:t},L,r),z=L.isDropTarget({type:`root`})}let{focusProps:H,isFocused:U,isFocusVisible:W}=ne(),G=C.collection.size===0,K={isDropTarget:z,isEmpty:G,isFocused:U,isFocusVisible:W,layout:h,state:C},q=T({...t,children:void 0,defaultClassName:`react-aria-GridList`,values:K}),J=null;if(G&&t.renderEmptyState){let n=t.renderEmptyState(K);J=e.createElement(`div`,{role:`row`,"aria-rowindex":1,style:{display:`contents`}},e.createElement(`div`,{role:`gridcell`,style:{display:`contents`}},n))}let Y=d(t,{global:!0});return e.createElement(ee,null,e.createElement(A.div,{...b(Y,q,M,H,R?.collectionProps,null),ref:r,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":z||void 0,"data-empty":G||void 0,"data-focused":U||void 0,"data-focus-visible":W||void 0,"data-layout":h},e.createElement(ce,{values:[[$,C],[Q,{dragAndDropHooks:p,dragState:I,dropState:L}],[ke,{render:Re}]]},F&&e.createElement(Ve,null),e.createElement(Pe,null,e.createElement(g,{collection:C.collection,scrollRef:r,persistedKeys:Me(N,p,L),renderDropIndicator:je(p,L)}))),J,B))}function Re(t,n){n=_(n);let{dragAndDropHooks:r,dropState:i}=o(Q),a=l(null),{dropIndicatorProps:s,isHidden:c,isDropTarget:u}=r.useDropIndicator(t,i,a);return c?null:e.createElement(Be,{...t,dropIndicatorProps:s,isDropTarget:u,buttonRef:a,ref:n})}function ze(t,n){let{dropIndicatorProps:r,isDropTarget:i,buttonRef:a,...o}=t,{visuallyHiddenProps:s}=x(),c=T({...o,defaultClassName:`react-aria-DropIndicator`,values:{isDropTarget:i}});return e.createElement(A.div,{...c,role:`row`,ref:n,"data-drop-target":i||void 0},e.createElement(`div`,{role:`gridcell`},e.createElement(`div`,{...s,role:`button`,...r,ref:a}),c.children))}const Be=r(ze);function Ve(){let{dragAndDropHooks:t,dropState:n}=o(Q),r=l(null),{dropIndicatorProps:i}=t.useDropIndicator({target:{type:`root`}},n,r),a=n.isDropTarget({type:`root`}),{visuallyHiddenProps:s}=x();return!a&&i[`aria-hidden`]?null:e.createElement(`div`,{role:`row`,"aria-hidden":i[`aria-hidden`],style:{position:`absolute`}},e.createElement(`div`,{role:`gridcell`},e.createElement(`div`,{role:`button`,...s,...i,ref:r})))}be(B,function(t,n,r){let i=o($),{isVirtualized:a}=o(Oe),{isLoading:s,onLoadMore:u,scrollOffset:p,...m}=t,h=l(null),_=c(()=>({onLoadMore:u,collection:i?.collection,sentinelRef:h,scrollOffset:p}),[u,p,i?.collection]);g(_,h);let v=T({...m,id:void 0,children:r.rendered,defaultClassName:`react-aria-GridListLoadingIndicator`,values:void 0});return e.createElement(e.Fragment,null,e.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:f(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:h,style:{position:`absolute`,height:1,width:1}})),s&&v.children&&e.createElement(A.div,{...v,...d(t,{global:!0}),role:`row`,ref:n},e.createElement(`div`,{"aria-colindex":a?1:void 0,role:`gridcell`},v.children)))});export{Ie as GridList};
@@ -0,0 +1 @@
1
+ export { GridListHeader } 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"react-dom";import{mergeProps 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.")});const y=Symbol(`default`);function b(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 x(e,t){let n=o(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||y;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function S(e,t,n){let{ref:r,...i}=x(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 C(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 w={},T=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=w[t];return n||(n=r(C.bind(null,t)),w[t]=n),n}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let E=e.createContext(null);var D=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},O=class extends D{filter(e,t,n){let[r,i]=N(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},k=class extends D{};k.type=`header`;var A=class extends D{};A.type=`loader`;var j=class extends O{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};j.type=`item`;var M=class extends O{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};M.type=`section`;function N(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}function P(e){let{children:n,items:r,idScope:i,addIdAndValue:a,dependencies:o=[]}=e,c=s(()=>new WeakMap,o);return s(()=>{if(r&&typeof n==`function`){let e=[];for(let o of r){let r=c.get(o);if(!r){r=n(o);let e=r.props.id??o.key??o.id;if(e==null)throw Error(`Could not determine key for item`);i!=null&&(e=i+`:`+e),r=t(r,a?{key:e,id:e,value:o}:{key:e}),c.set(o,r)}e.push(r)}return e}if(typeof n!=`function`)return n},[n,r,c,i,a])}
2
+ /**
3
+ * @license React
4
+ * use-sync-external-store-shim.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var F=_((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=F()}))();const I=n(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const L=n(null);function R(e){var t;return t=class extends D{},t.type=e,t}function z(t,n,r,i,s,c){typeof t==`string`&&(t=R(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(L);if(u){let a=u.ownerDocument.nodesByProps.get(n);return a||(a=u.ownerDocument.createElement(t.type),a.setProps(n,r,t,i,c),u.appendChild(a),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(n,a)),s?e.createElement(L.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function B(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(E);if(!o(I)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return z(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(E.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}const V={CollectionRoot({collection:e,renderDropIndicator:t}){return H(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return H(e,t,n)}};function H(t,n,r){return P({items:n?t.getChildren(n.key):t,dependencies:[r],children(n){let i=n.render(n);return!r||n.type!==`item`?i:e.createElement(e.Fragment,null,r({type:`item`,key:n.key,dropPosition:`before`}),i,U(t,n,r))}})}function U(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 W=n(V),G=n(null);B(A,function(t,n,r){let i=o(G),{isLoading:a,onLoadMore:d,scrollOffset:f,...p}=t,h=c(null),_=s(()=>({onLoadMore:d,collection:i?.collection,sentinelRef:h,scrollOffset:f}),[d,f,i?.collection]);m(_,h);let v=b({...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&&v.children&&e.createElement(T.div,{...g(l(t,{global:!0}),{tabIndex:-1}),...v,role:`option`,ref:n},v.children))}),B(A,function(t,n,r){let i=o(G),{isVirtualized:a}=o(W),{isLoading:d,onLoadMore:f,scrollOffset:p,...h}=t,g=c(null),_=s(()=>({onLoadMore:f,collection:i?.collection,sentinelRef:g,scrollOffset:p}),[f,p,i?.collection]);m(_,g);let v=b({...h,id:void 0,children:r.rendered,defaultClassName:`react-aria-GridListLoadingIndicator`,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:g,style:{position:`absolute`,height:1,width:1}})),d&&v.children&&e.createElement(T.div,{...v,...l(t,{global:!0}),role:`row`,ref:n},e.createElement(`div`,{"aria-colindex":a?1:void 0,role:`gridcell`},v.children)))});const K=n({}),q=n(null),J=B(k,function(t,n){[t,n]=S(t,n,K);let r=o(q);return e.createElement(T.div,{render:t.render,className:`react-aria-GridListHeader`,ref:n,...t},e.createElement(`div`,{...r,style:{display:`contents`}},t.children))});export{J as GridListHeader};
@@ -0,0 +1 @@
1
+ export { GridListItem, type GridListItemProps, type GridListItemRenderProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useEffect as s,useMemo as c,useRef as l}from"react";import{filterDOMProps as u,inertValue as d,mergeRefs as f,useLayoutEffect as p,useLoadMoreSentinel as m,useObjectRef as h}from"@react-aria/utils";import"react-dom";import{mergeProps as g,useFocusRing as _,useGridListItem as v,useGridListSelectionCheckbox as ee,useHover as y,useVisuallyHidden 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.")});const C=n(null);n(null),n(null),n(null),n(null),n({});const w=n(null),T=n(null),E=Symbol(`default`);function D({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function O(e){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 k(t,n,r){let{render:i,...a}=n,o=l(null),s=c(()=>f(r,o),[r,o]);p(()=>{},[t,i]);let u={...a,ref:s};return i?i(u,void 0):e.createElement(t,u)}const A={},j=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=A[t];return n||(n=r(k.bind(null,t)),A[t]=n),n}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let M=e.createContext(null);var N=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}},P=class extends N{filter(e,t,n){let[r,i]=z(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},F=class extends N{};F.type=`header`;var I=class extends N{};I.type=`loader`;var L=class extends P{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};L.type=`item`;var R=class extends P{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}};R.type=`section`;function z(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 B(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 V=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=V()}))();const H=n(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const U=n(null);function W(e){var t;return t=class extends N{},t.type=e,t}function G(t,n,r,i,s,c){typeof t==`string`&&(t=W(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(U);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(U.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function K(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(M);if(!o(H)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return G(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(M.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}const q={CollectionRoot({collection:e,renderDropIndicator:t}){return J(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return J(e,t,n)}};function J(t,n,r){return B({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,Y(t,n,r))}})}function Y(e,n,r){let a=n.key,o=e.getKeyAfter(a),s=o==null?null:e.getItem(o);for(;s!=null&&s.type!==`item`;)o=e.getKeyAfter(s.key),s=o==null?null:e.getItem(o);let c=n.nextKey==null?null:e.getItem(n.nextKey);for(;c!=null&&c.type!==`item`;)c=c.nextKey==null?null:e.getItem(c.nextKey);let l=[];if(c==null){let a=n;for(;a?.type===`item`&&(!s||a.parentKey!==s.parentKey&&s.level<a.level);){let n=r({type:`item`,key:a.key,dropPosition:`after`});i(n)&&l.push(t(n,{key:`${a.key}-after`})),a=a.parentKey==null?null:e.getItem(a.parentKey)}}return l}const X=n(q),Z=n({}),Q=n({}),te=n({}),ne=n({isSelected:!1}),$=n(null);K(I,function(t,n,r){let i=o($),{isLoading:a,onLoadMore:s,scrollOffset:f,...p}=t,h=l(null),_=c(()=>({onLoadMore:s,collection:i?.collection,sentinelRef:h,scrollOffset:f}),[s,f,i?.collection]);m(_,h);let v=O({...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:h,style:{position:`absolute`,height:1,width:1}})),a&&v.children&&e.createElement(j.div,{...g(u(t,{global:!0}),{tabIndex:-1}),...v,role:`option`,ref:n},v.children))});const re=K(L,function(t,n,r){let i=o($),{dragAndDropHooks:a,dragState:c,dropState:d}=o(te),f=h(n),{isVirtualized:p}=o(X),{rowProps:m,gridCellProps:x,descriptionProps:S,...k}=v({node:r,shouldSelectOnPressUp:!!c,isVirtualized:p},i,f),{hoverProps:A,isHovered:M}=y({isDisabled:!k.allowsSelection&&!k.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),{isFocusVisible:N,focusProps:P}=_(),{checkboxProps:F}=ee({key:r.key},i),I=i.selectionManager.disabledBehavior===`all`&&k.isDisabled?{isDisabled:!0}:{},L=null;c&&a&&(L=a.useDraggableItem({key:r.key,hasDragButton:!0},c));let R=null,z=l(null),{visuallyHiddenProps:B}=b();d&&a&&(R=a.useDropIndicator({target:{type:`item`,key:r.key,dropPosition:`on`}},d,z));let V=c&&c.isDragging(r.key),H=O({...t,id:void 0,children:r.rendered,defaultClassName:`react-aria-GridListItem`,values:{...k,isHovered:M,isFocusVisible:N,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!c,isDragging:V,isDropTarget:R?.isDropTarget}}),U=l(null);s(()=>{c&&!U.current&&console.warn(`Draggable items in a GridList must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.`)},[]),s(()=>{r.textValue},[r.textValue]);let W=u(t,{global:!0});return delete W.id,delete W.onClick,e.createElement(e.Fragment,null,R&&!R.isHidden&&e.createElement(`div`,{role:`row`,style:{position:`absolute`}},e.createElement(`div`,{role:`gridcell`},e.createElement(`div`,{role:`button`,...B,...R?.dropIndicatorProps,ref:z}))),e.createElement(j.div,{...g(W,H,m,P,A,L?.dragProps),ref:f,"data-selected":k.isSelected||void 0,"data-disabled":k.isDisabled||void 0,"data-hovered":M||void 0,"data-focused":k.isFocused||void 0,"data-focus-visible":N||void 0,"data-pressed":k.isPressed||void 0,"data-allows-dragging":!!c||void 0,"data-dragging":V||void 0,"data-drop-target":R?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode===`none`?void 0:i.selectionManager.selectionMode},e.createElement(`div`,{...x,style:{display:`contents`}},e.createElement(D,{values:[[C,{slots:{[E]:{},selection:F}}],[Z,{slots:{[E]:I,drag:{...L?.dragButtonProps,ref:U,style:{pointerEvents:`none`}}}}],[Q,{slots:{[E]:{},description:S}}],[X,q],[$,null],[w,null],[T,null],[ne,{isSelected:k.isSelected}]]},H.children))))});K(I,function(t,n,r){let i=o($),{isVirtualized:a}=o(X),{isLoading:s,onLoadMore:f,scrollOffset:p,...h}=t,g=l(null),_=c(()=>({onLoadMore:f,collection:i?.collection,sentinelRef:g,scrollOffset:p}),[f,p,i?.collection]);m(_,g);let v=O({...h,id:void 0,children:r.rendered,defaultClassName:`react-aria-GridListLoadingIndicator`,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:g,style:{position:`absolute`,height:1,width:1}})),s&&v.children&&e.createElement(j.div,{...v,...u(t,{global:!0}),role:`row`,ref:n},e.createElement(`div`,{"aria-colindex":a?1:void 0,role:`gridcell`},v.children)))});export{re as GridListItem};
@@ -0,0 +1 @@
1
+ export { GridListLoadMoreItem, type GridListLoadMoreItemProps } 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);F(T,function(t,n,r){let i=o(B),{isLoading:a,onLoadMore:d,scrollOffset:f,...h}=t,g=c(null),v=s(()=>({onLoadMore:d,collection:i?.collection,sentinelRef:g,scrollOffset:f}),[d,f,i?.collection]);p(v,g);let y=_({...h,id:void 0,children:r.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return e.createElement(e.Fragment,null,e.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:u(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:g,style:{position:`absolute`,height:1,width:1}})),a&&y.children&&e.createElement(b.div,{...m(l(t,{global:!0}),{tabIndex:-1}),...y,role:`option`,ref:n},y.children))});const V=F(T,function(t,n,r){let i=o(B),{isVirtualized:a}=o(z),{isLoading:d,onLoadMore:f,scrollOffset:m,...h}=t,g=c(null),v=s(()=>({onLoadMore:f,collection:i?.collection,sentinelRef:g,scrollOffset:m}),[f,m,i?.collection]);p(v,g);let y=_({...h,id:void 0,children:r.rendered,defaultClassName:`react-aria-GridListLoadingIndicator`,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:g,style:{position:`absolute`,height:1,width:1}})),d&&y.children&&e.createElement(b.div,{...y,...l(t,{global:!0}),role:`row`,ref:n},e.createElement(`div`,{"aria-colindex":a?1:void 0,role:`gridcell`},y.children)))});export{V as GridListLoadMoreItem};
@@ -0,0 +1 @@
1
+ export { GridListSection, type GridListSectionProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useMemo as s,useRef as c}from"react";import{filterDOMProps as l,inertValue as u,mergeRefs as d,useLayoutEffect as f,useLoadMoreSentinel as p,useObjectRef as m}from"@react-aria/utils";import"react-dom";import{mergeProps as h,useGridListSection 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({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function b(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle: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 x(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 S={},C=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=S[t];return n||(n=r(x.bind(null,t)),S[t]=n),n}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let w=e.createContext(null);var T=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}},E=class extends T{filter(e,t,n){let[r,i]=j(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},D=class extends T{};D.type=`header`;var O=class extends T{};O.type=`loader`;var k=class extends E{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};k.type=`item`;var A=class extends E{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}};A.type=`section`;function j(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 M(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 N=_((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=N()}))();const P=n(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const F=n(null);function I(e){var t;return t=class extends T{},t.type=e,t}function L(t,n,r,i,s,c){typeof t==`string`&&(t=I(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(F);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(F.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function R(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(w);if(!o(P)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return L(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(w.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}function z(t,n,i=B){let a=({node:e})=>n(e.props,e.props.ref,e),o=r((n,r)=>L(t,n,r,null,i(n),t=>e.createElement(a,{node:t}))??e.createElement(e.Fragment,null));return o.displayName=n.name,o}function B(e){return M({...e,addIdAndValue:!0})}const V={CollectionRoot({collection:e,renderDropIndicator:t}){return H(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return H(e,t,n)}};function H(t,n,r){return M({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,U(t,n,r))}})}function U(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 W=n(V),G=n(null);R(O,function(t,n,r){let i=o(G),{isLoading:a,onLoadMore:d,scrollOffset:f,...m}=t,g=c(null),_=s(()=>({onLoadMore:d,collection:i?.collection,sentinelRef:g,scrollOffset:f}),[d,f,i?.collection]);p(_,g);let v=b({...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:u(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:g,style:{position:`absolute`,height:1,width:1}})),a&&v.children&&e.createElement(C.div,{...h(l(t,{global:!0}),{tabIndex:-1}),...v,role:`option`,ref:n},v.children))}),R(O,function(t,n,r){let i=o(G),{isVirtualized:a}=o(W),{isLoading:d,onLoadMore:f,scrollOffset:m,...h}=t,g=c(null),_=s(()=>({onLoadMore:f,collection:i?.collection,sentinelRef:g,scrollOffset:m}),[f,m,i?.collection]);p(_,g);let v=b({...h,id:void 0,children:r.rendered,defaultClassName:`react-aria-GridListLoadingIndicator`,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:g,style:{position:`absolute`,height:1,width:1}})),d&&v.children&&e.createElement(C.div,{...v,...l(t,{global:!0}),role:`row`,ref:n},e.createElement(`div`,{"aria-colindex":a?1:void 0,role:`gridcell`},v.children)))});const K=z(A,(t,n,r)=>{let i=o(G),{CollectionBranch:a}=o(W),s=c(null);n=m(n);let{rowHeaderProps:u,rowProps:d,rowGroupProps:f}=g({"aria-label":t[`aria-label`]??void 0},i,n),p=b({...t,id:void 0,children:void 0,defaultClassName:`react-aria-GridListSection`,values:void 0}),_=l(t,{global:!0});return delete _.id,e.createElement(C.div,{...h(_,p,f),ref:n},e.createElement(y,{values:[[q,{...d,ref:s}],[J,{...u}]]},e.createElement(a,{collection:i.collection,parent:r})))}),q=n({}),J=n(null);export{K as GridListSection};
@@ -0,0 +1 @@
1
+ export { Group, type GroupProps, type GroupRenderProps } 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({}),x=n(function(t,n){[t,n]=g(t,n,b);let{isDisabled:r,isInvalid:i,isReadOnly:a,onHoverStart:o,onHoverChange:s,onHoverEnd:c,...l}=t;r??=!!t[`aria-disabled`]&&t[`aria-disabled`]!==`false`,i??=!!t[`aria-invalid`]&&t[`aria-invalid`]!==`false`;let{hoverProps:p,isHovered:h}=f({onHoverStart:o,onHoverChange:s,onHoverEnd:c,isDisabled:r}),{isFocused:_,isFocusVisible:v,focusProps:x}=d({within:!0}),S=m({...t,values:{isHovered:h,isFocusWithin:_,isFocusVisible:v,isDisabled:r,isInvalid:i},defaultClassName:`react-aria-Group`});return e.createElement(y.div,{...u(l,x,p),...S,ref:n,role:t.role??`group`,slot:t.slot??void 0,"data-focus-within":_||void 0,"data-hovered":h||void 0,"data-focus-visible":v||void 0,"data-disabled":r||void 0,"data-invalid":i||void 0,"data-readonly":a||void 0},S.children)});export{x as Group};
@@ -0,0 +1 @@
1
+ export { Header } from "react-aria-components";