@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,{createContext as t,forwardRef as n,useCallback 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"react-dom";var d=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),f=(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 p=Symbol(`default`);function m(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||p;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function h(e,t,n){let{ref:r,...i}=m(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 g(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 _={},v=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=_[t];return r||(r=n(g.bind(null,t)),_[t]=r),r}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let y=e.createContext(null);var b=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}},x=class extends b{filter(e,t,n){let[r,i]=E(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},S=class extends b{};S.type=`header`;var C=class extends b{};C.type=`loader`;var w=class extends x{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};w.type=`item`;var T=class extends x{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}};T.type=`section`;function E(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}
2
+ /**
3
+ * @license React
4
+ * use-sync-external-store-shim.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var D=d((e=>{var t=f(`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}));d(((e,t)=>{t.exports=D()}))();const O=t(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const k=t(null);function A(e){var t;return t=class extends b{},t.type=e,t}function j(t,n,a,o,s,c){typeof t==`string`&&(t=A(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 M(t,r){let a=({node:e})=>r(e.props,e.props.ref,e),o=n((n,o)=>{let s=i(y);if(!i(O)){if(r.length>=3)throw Error(r.name+` cannot be rendered outside a collection.`);return r(n,o)}return j(t,n,o,`children`in n?n.children:null,null,t=>e.createElement(y.Provider,{value:s},e.createElement(a,{node:t})))});return o.displayName=r.name,o}const N=t({}),P=M(S,function(t,n){return[t,n]=h(t,n,N),e.createElement(v.header,{className:`react-aria-Header`,...t,ref:n},t.children)});export{P as Header};
@@ -0,0 +1 @@
1
+ export { Heading, type HeadingProps } 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";t(null),t(null),t(null),t(null),t(null);const u=t({});t(null),t(null);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}}),_=n(function(t,n){[t,n]=p(t,n,u);let{children:r,level:i=3,className:a,...o}=t,s=g[`h${i}`];return e.createElement(s,{...o,ref:n,className:a??`react-aria-Heading`},r)});export{_ as Heading};
@@ -0,0 +1 @@
1
+ export { I18nProvider } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import{I18nProvider as e}from"react-aria";import"react-stately";export{e as I18nProvider};
@@ -0,0 +1 @@
1
+ export { Input, type InputProps, type InputRenderProps } 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}});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 b=t(!1);function x(e){let t=(t,n)=>r(b)?null:e(t,n);return t.displayName=e.displayName||e.name,n(t)}const S=t({});let C=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...i}=e;return i};const w=x(function(t,n){[t,n]=g(t,n,S);let{hoverProps:r,isHovered:i}=f({...t,isDisabled:t.disabled}),{isFocused:a,isFocusVisible:o,focusProps:s}=d({isTextInput:!0,autoFocus:t.autoFocus}),c=!!t[`aria-invalid`]&&t[`aria-invalid`]!==`false`,l=m({...t,values:{isHovered:i,isFocused:a,isFocusVisible:o,isDisabled:t.disabled||!1,isInvalid:c},defaultClassName:`react-aria-Input`});return e.createElement(y.input,{...u(C(t),s,r),...l,ref:n,"data-focused":a||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":o||void 0,"data-invalid":c||void 0})});export{w as Input};
@@ -0,0 +1 @@
1
+ export { Keyboard } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{mergeProps as o,mergeRefs as s,useLayoutEffect as c,useObjectRef as l}from"@react-aria/utils";const u=Symbol(`default`);function d(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||u;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function f(e,t,n){let{ref:r,...a}=d(n,e.slot)||{},c=l(i(()=>s(t,r),[t,r])),u=o(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(u.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[u,c]}function p(t,n,r){let{render:o,...l}=n,u=a(null),d=i(()=>s(r,u),[r,u]);c(()=>{},[t,o]);let f={...l,ref:d};return o?o(f,void 0):e.createElement(t,f)}const m={},h=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=m[t];return r||(r=n(p.bind(null,t)),m[t]=r),r}}),g=t({}),_=n(function(t,n){return[t,n]=f(t,n,g),e.createElement(h.kbd,{dir:`ltr`,...t,ref:n})});export{_ as Keyboard};
@@ -0,0 +1 @@
1
+ export { Label, type LabelProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{mergeProps as o,mergeRefs as s,useLayoutEffect as c,useObjectRef as l}from"@react-aria/utils";const u=Symbol(`default`);function d(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||u;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function f(e,t,n){let{ref:r,...a}=d(n,e.slot)||{},c=l(i(()=>s(t,r),[t,r])),u=o(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(u.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[u,c]}function p(t,n,r){let{render:o,...l}=n,u=a(null),d=i(()=>s(r,u),[r,u]);c(()=>{},[t,o]);let f={...l,ref:d};return o?o(f,void 0):e.createElement(t,f)}const m={},h=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=m[t];return r||(r=n(p.bind(null,t)),m[t]=r),r}});if(typeof HTMLTemplateElement<`u`){let e=Object.getOwnPropertyDescriptor(Node.prototype,`firstChild`).get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const g=t(!1);function _(e){let t=(t,n)=>r(g)?null:e(t,n);return t.displayName=e.displayName||e.name,n(t)}const v=t({}),y=_(function(t,n){[t,n]=f(t,n,v);let{elementType:r=`label`,...i}=t,a=h[r];return e.createElement(a,{className:`react-aria-Label`,...i,ref:n})});export{y as Label};
@@ -0,0 +1 @@
1
+ export { Link, type LinkProps, type LinkRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeProps as s,mergeRefs as c,useLayoutEffect as l,useObjectRef as u}from"@react-aria/utils";import{mergeProps as d,useFocusRing as f,useHover as p,useLink as m}from"react-aria";const h=Symbol(`default`);function g(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function _(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||h;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function v(e,t,n){let{ref:r,...a}=_(n,e.slot)||{},o=u(i(()=>c(t,r),[t,r])),l=s(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(l.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[l,o]}function y(t,n,r){let{render:o,...s}=n,u=a(null),d=i(()=>c(r,u),[r,u]);l(()=>{},[t,o]);let f={...s,ref:d};return o?o(f,void 0):e.createElement(t,f)}const b={},x=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=b[t];return r||(r=n(y.bind(null,t)),b[t]=r),r}}),S=t(null),C=n(function(t,n){[t,n]=v(t,n,S);let r=t.href&&!t.isDisabled?`a`:`span`,{linkProps:i,isPressed:a}=m({...t,elementType:r},n),s=x[r],{hoverProps:c,isHovered:l}=p(t),{focusProps:u,isFocused:h,isFocusVisible:_}=f(),y=g({...t,defaultClassName:`react-aria-Link`,values:{isCurrent:!!t[`aria-current`],isDisabled:t.isDisabled||!1,isPressed:a,isHovered:l,isFocused:h,isFocusVisible:_}}),b=o(t,{global:!0});return delete b.onClick,e.createElement(s,{ref:n,slot:t.slot||void 0,...d(b,y,i,c,u),"data-focused":h||void 0,"data-hovered":l||void 0,"data-pressed":a||void 0,"data-focus-visible":_||void 0,"data-current":!!t[`aria-current`]||void 0,"data-disabled":t.isDisabled||void 0},y.children)});export{C as Link};
@@ -0,0 +1 @@
1
+ export { ListBox, type ListBoxProps, type ListBoxRenderProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useEffect as s,useMemo as c,useRef as l,useState as u}from"react";import{filterDOMProps as d,inertValue as f,mergeProps as p,mergeRefs as m,useLayoutEffect as h,useLoadMoreSentinel as g,useObjectRef as _}from"@react-aria/utils";import{createPortal as v}from"react-dom";import{FocusScope as ee,ListKeyboardDelegate as te,mergeProps as y,useCollator as ne,useFocusRing as re,useListBox as ie,useListBoxSection as b,useLocale as ae}from"react-aria";import{UNSTABLE_useFilteredListState as oe,useListState as x}from"react-stately";var S=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),se=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});n(null),n(null),n(null),n(null),n(null),n({});const ce=n(null);n(null);const C=Symbol(`default`);function le({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function w(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:l}=e;return c(()=>{let e,c,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,c=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:c||o?{...o,...c}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,s):void 0}},[t,n,r,i,a,o,s,l])}function ue(e,t){let n=o(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 T(e,t,n){let{ref:r,...i}=ue(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 E(e=!0){let[t,n]=u(e),r=l(!1),i=a(e=>{r.current=!0,n(!!e)},[]);return h(()=>{r.current||n(!1)},[]),[i,t]}function D(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 O={},k=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=O[t];return n||(n=r(D.bind(null,t)),O[t]=n),n}});String(Math.round(Math.random()*1e10));const A=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function j(){return!1}function M(){return!0}function N(e){return()=>{}}function P(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(N,j,M):o(A)}let F=e.createContext(null);var I=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}},L=class extends I{filter(e,t,n){let[r,i]=U(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},R=class extends I{};R.type=`header`;var z=class extends I{};z.type=`loader`;var B=class extends L{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};B.type=`item`;var V=class extends L{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}};V.type=`section`;var H=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]=U(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 U(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 W=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}},G=class e extends W{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}},de=class extends W{get isConnected(){return!0}createElement(e){return new G(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 G&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof G?(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 K(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 q=n(!1);function fe(t){if(o(q))return e.createElement(e.Fragment,null,t.children);let n=e.createElement(q.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 pe=S((e=>{var t=se(`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})),me=S(((e,t)=>{t.exports=pe()}))();const J=n(!1),Y=n(null);function he(t){if(o(Y))return t.content;let{collection:n,document:r}=ye(t.createCollection);return e.createElement(e.Fragment,null,e.createElement(fe,null,e.createElement(Y.Provider,{value:r},t.content)),e.createElement(ge,{render:t.children,collection:n}))}function ge({collection:e,render:t}){return t(e)}function _e(e,t,n){let r=P(),i=l(r);i.current=r;let o=a(()=>i.current?n():t(),[t,n]);return(0,me.useSyncExternalStore)(e,o)}const ve=typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore:_e;function ye(e){let[t]=u(()=>new de(e?.()||new H)),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:ve(n,r,i),document:t}}const X=n(null);function be(e){var t;return t=class extends I{},t.type=e,t}function xe(t,n,r,i,s,c){typeof t==`string`&&(t=be(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(X);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(X.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function Se(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(F);if(!o(J)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return xe(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(F.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}function Ce(e){return K({...e,addIdAndValue:!0})}const we=n(null);function Te(t){let n=o(we),r=(n?.dependencies||[]).concat(t.dependencies),i=t.idScope??n?.idScope,a=Ce({...t,idScope:i,dependencies:r});return o(Y)&&(a=e.createElement(Ee,null,a)),n=c(()=>({dependencies:r,idScope:i}),[i,...r]),e.createElement(we.Provider,{value:n},a)}function Ee({children:t}){let n=o(Y),r=c(()=>e.createElement(Y.Provider,{value:null},e.createElement(J.Provider,{value:!0},t)),[t]);return P()?e.createElement(X.Provider,{value:n},r):v(r,n)}const De=n(null),Oe={CollectionRoot({collection:e,renderDropIndicator:t}){return ke(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return ke(e,t,n)}};function ke(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,Ae(t,n,r))}})}function Ae(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(Oe),Q=n({}),je=n(null),Me=r(function(t,n){let{render:r}=o(je);return e.createElement(e.Fragment,null,r(t,n))});function Ne(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(Me,{target:t})},[n?.target,i,r]);return t?.useDropIndicator?o:void 0}function Pe(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 Fe=n({}),Ie=n(null);function Le(t){let n=l({});return e.createElement(Ie.Provider,{value:n},t.children)}const Re=n({});var ze=class extends I{filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}};ze.type=`separator`;const Be=n(null),$=n(null),Ve=r(function(t,n){[t,n]=T(t,n,Be);let r=o($);return r?e.createElement(Ue,{state:r,props:t,listBoxRef:n}):e.createElement(he,{content:e.createElement(Te,t)},r=>e.createElement(He,{props:t,listBoxRef:n,collection:r}))});function He({props:t,listBoxRef:n,collection:r}){t={...t,collection:r,children:null,items:null};let{layoutDelegate:i}=o(Z),a=x({...t,layoutDelegate:i});return e.createElement(Ue,{state:a,props:t,listBoxRef:n})}function Ue({state:t,props:n,listBoxRef:r}){[n,r]=T(n,r,ce);let{dragAndDropHooks:i,layout:a=`stack`,orientation:u=`vertical`,filter:f}=n,p=oe(t,f),{collection:m,selectionManager:h}=p,g=!!i?.useDraggableCollectionState,_=!!i?.useDroppableCollectionState,{direction:v}=ae(),{disabledBehavior:b,disabledKeys:x}=h,S=ne({usage:`search`,sensitivity:`base`}),{isVirtualized:se,layoutDelegate:C,dropTargetDelegate:ue,CollectionRoot:E}=o(Z),D=c(()=>n.keyboardDelegate||new te({collection:m,collator:S,ref:r,disabledKeys:x,disabledBehavior:b,layout:a,orientation:u,direction:v,layoutDelegate:C}),[m,S,r,b,x,u,v,n.keyboardDelegate,a,C]),{listBoxProps:O}=ie({...n,shouldSelectOnPressUp:g||n.shouldSelectOnPressUp,keyboardDelegate:D,isVirtualized:se},p,r);l(g),l(_),s(()=>{},[g,_]);let A,j,M,N=!1,P=null,F=l(null);if(g&&i){A=i.useDraggableCollectionState({collection:m,selectionManager:h,preview:i.renderDragPreview?F:void 0}),i.useDraggableCollection({},A,r);let t=i.DragPreview;P=i.renderDragPreview?e.createElement(t,{ref:F},i.renderDragPreview):null}if(_&&i){j=i.useDroppableCollectionState({collection:m,selectionManager:h});let e=i.dropTargetDelegate||ue||new i.ListDropTargetDelegate(m,r,{orientation:u,layout:a,direction:v});M=i.useDroppableCollection({keyboardDelegate:D,dropTargetDelegate:e},j,r),N=j.isDropTarget({type:`root`})}let{focusProps:I,isFocused:L,isFocusVisible:R}=re(),z=p.collection.size===0,B={isDropTarget:N,isEmpty:z,isFocused:L,isFocusVisible:R,layout:n.layout||`stack`,state:p},V=w({...n,children:void 0,defaultClassName:`react-aria-ListBox`,values:B}),H=null;z&&n.renderEmptyState&&(H=e.createElement(`div`,{role:`option`,style:{display:`contents`}},n.renderEmptyState(B)));let U=d(n,{global:!0});return e.createElement(ee,null,e.createElement(k.div,{...y(U,V,O,I,M?.collectionProps),ref:r,slot:n.slot||void 0,onScroll:n.onScroll,"data-drop-target":N||void 0,"data-empty":z||void 0,"data-focused":L||void 0,"data-focus-visible":R||void 0,"data-layout":n.layout||`stack`,"data-orientation":n.orientation||`vertical`},e.createElement(le,{values:[[Be,n],[$,p],[Q,{dragAndDropHooks:i,dragState:A,dropState:j}],[Re,{elementType:`div`}],[je,{render:Ge}],[De,{name:`ListBoxSection`,render:We}]]},e.createElement(Le,null,e.createElement(E,{collection:m,scrollRef:r,persistedKeys:Pe(h,i,j),renderDropIndicator:Ne(i,j)}))),H,P))}function We(t,n,r,i=`react-aria-ListBoxSection`){let a=o($),{dragAndDropHooks:s,dropState:c}=o(Q),{CollectionBranch:l}=o(Z),[u,f]=E(),{headingProps:p,groupProps:m}=b({heading:f,"aria-label":t[`aria-label`]??void 0}),h=w({...t,id:void 0,children:void 0,defaultClassName:i,values:void 0}),g=d(t,{global:!0});return delete g.id,e.createElement(k.section,{...y(g,h,m),ref:n},e.createElement(Fe.Provider,{value:{...p,ref:u}},e.createElement(l,{collection:a.collection,parent:r,renderDropIndicator:Ne(s,c)})))}function Ge(t,n){n=_(n);let{dragAndDropHooks:r,dropState:i}=o(Q),{dropIndicatorProps:a,isHidden:s,isDropTarget:c}=r.useDropIndicator(t,i,n);return s?null:e.createElement(qe,{...t,dropIndicatorProps:a,isDropTarget:c,ref:n})}function Ke(t,n){let{dropIndicatorProps:r,isDropTarget:i,...a}=t,o=w({...a,defaultClassName:`react-aria-DropIndicator`,values:{isDropTarget:i}});return e.createElement(k.div,{...r,...o,role:`option`,ref:n,"data-drop-target":i||void 0})}const qe=r(Ke);Se(z,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 _=w({...p,id:void 0,children:r.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return e.createElement(e.Fragment,null,e.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:f(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:m,style:{position:`absolute`,height:1,width:1}})),a&&_.children&&e.createElement(k.div,{...y(d(t,{global:!0}),{tabIndex:-1}),..._,role:`option`,ref:n},_.children))});export{Ve as ListBox};
@@ -0,0 +1 @@
1
+ export { ListBoxItem, type ListBoxItemProps, type ListBoxItemRenderProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{createContext as t,forwardRef as n,useCallback as r,useContext as i,useEffect as a,useMemo as o,useRef as s}from"react";import{filterDOMProps as c,inertValue as l,mergeRefs as u,useLayoutEffect as d,useLoadMoreSentinel as f,useObjectRef as p}from"@react-aria/utils";import"react-dom";import{mergeProps as m,useFocus as h,useHover as g,useOption as _}from"react-aria";import"react-stately";var v=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),y=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});const b=Symbol(`default`);function x({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function S(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:s,values:c,render:l}=e;return o(()=>{let e,o,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,o=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:a}):r??a,{className:e??i,style:o||s?{...s,...o}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,a,s,c,l])}function C(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 w={},T=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=w[t];return r||(r=n(C.bind(null,t)),w[t]=r),r}});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]}
2
+ /**
3
+ * @license React
4
+ * use-sync-external-store-shim.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var P=v((e=>{var t=y(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore}));v(((e,t)=>{t.exports=P()}))();const F=t(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const I=t(null);function L(e){var t;return t=class extends D{},t.type=e,t}function R(t,n,a,o,s,c){typeof t==`string`&&(t=L(t));let l=r(e=>{e?.setProps(n,a,t,o,c)},[n,a,o,c,t]),u=i(I);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(I.Provider,{value:r},s):null}return e.createElement(t.type,{ref:l},s)}function z(t,r){let a=({node:e})=>r(e.props,e.props.ref,e),o=n((n,o)=>{let s=i(E);if(!i(F)){if(r.length>=3)throw Error(r.name+` cannot be rendered outside a collection.`);return r(n,o)}return R(t,n,o,`children`in n?n.children:null,null,t=>e.createElement(E.Provider,{value:s},e.createElement(a,{node:t})))});return o.displayName=r.name,o}const B=t({}),V=t({}),H=t({isSelected:!1}),U=t(null),W=z(j,function(t,n,r){let o=p(n),s=i(U),{dragAndDropHooks:l,dragState:u,dropState:d}=i(V),{optionProps:f,labelProps:v,descriptionProps:y,...C}=_({key:r.key,"aria-label":t?.[`aria-label`]},s,o),{hoverProps:w,isHovered:E}=g({isDisabled:!C.allowsSelection&&!C.hasAction,onHoverStart:r.props.onHoverStart,onHoverChange:r.props.onHoverChange,onHoverEnd:r.props.onHoverEnd}),{focusProps:D}=h(t),O=null;u&&l&&(O=l.useDraggableItem({key:r.key,hasAction:C.hasAction},u));let k=null;d&&l&&(k=l.useDroppableItem({target:{type:`item`,key:r.key,dropPosition:`on`}},d,o));let A=u&&u.isDragging(r.key),j=S({...t,id:void 0,children:t.children,defaultClassName:`react-aria-ListBoxItem`,values:{...C,isHovered:E,selectionMode:s.selectionManager.selectionMode,selectionBehavior:s.selectionManager.selectionBehavior,allowsDragging:!!u,isDragging:A,isDropTarget:k?.isDropTarget}});a(()=>{r.textValue},[r.textValue]);let M=t.href?T.a:T.div,N=c(t,{global:!0});return delete N.id,delete N.onClick,t.href&&f.tabIndex==null&&(f.tabIndex=-1),e.createElement(M,{...m(N,j,f,w,D,O?.dragProps,k?.dropProps),ref:o,"data-allows-dragging":!!u||void 0,"data-selected":C.isSelected||void 0,"data-disabled":C.isDisabled||void 0,"data-hovered":E||void 0,"data-focused":C.isFocused||void 0,"data-focus-visible":C.isFocusVisible||void 0,"data-pressed":C.isPressed||void 0,"data-dragging":A||void 0,"data-drop-target":k?.isDropTarget||void 0,"data-selection-mode":s.selectionManager.selectionMode===`none`?void 0:s.selectionManager.selectionMode},e.createElement(x,{values:[[B,{slots:{[b]:v,label:v,description:y}}],[H,{isSelected:C.isSelected}]]},j.children))});z(A,function(t,n,r){let a=i(U),{isLoading:u,onLoadMore:d,scrollOffset:p,...h}=t,g=s(null),_=o(()=>({onLoadMore:d,collection:a?.collection,sentinelRef:g,scrollOffset:p}),[d,p,a?.collection]);f(_,g);let v=S({...h,id:void 0,children:r.rendered,defaultClassName:`react-aria-ListBoxLoadingIndicator`,values:void 0});return e.createElement(e.Fragment,null,e.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:l(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:g,style:{position:`absolute`,height:1,width:1}})),u&&v.children&&e.createElement(T.div,{...m(c(t,{global:!0}),{tabIndex:-1}),...v,role:`option`,ref:n},v.children))});export{W as ListBoxItem};
@@ -0,0 +1 @@
1
+ export { ListBoxLoadMoreItem, type ListBoxLoadMoreItemProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{createContext as t,forwardRef as n,useCallback as r,useContext as i,useMemo as a,useRef as o}from"react";import{filterDOMProps as s,inertValue as c,mergeRefs as l,useLayoutEffect as u,useLoadMoreSentinel as d}from"@react-aria/utils";import"react-dom";import{mergeProps as f}from"react-aria";import"react-stately";var p=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),m=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function h(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 g(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 _={},v=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=_[t];return r||(r=n(g.bind(null,t)),_[t]=r),r}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let y=e.createContext(null);var b=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}},x=class extends b{filter(e,t,n){let[r,i]=E(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},S=class extends b{};S.type=`header`;var C=class extends b{};C.type=`loader`;var w=class extends x{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};w.type=`item`;var T=class extends x{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}};T.type=`section`;function E(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}
2
+ /**
3
+ * @license React
4
+ * use-sync-external-store-shim.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var D=p((e=>{var t=m(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore}));p(((e,t)=>{t.exports=D()}))();const O=t(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const k=t(null);function A(e){var t;return t=class extends b{},t.type=e,t}function j(t,n,a,o,s,c){typeof t==`string`&&(t=A(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 M(t,r){let a=({node:e})=>r(e.props,e.props.ref,e),o=n((n,o)=>{let s=i(y);if(!i(O)){if(r.length>=3)throw Error(r.name+` cannot be rendered outside a collection.`);return r(n,o)}return j(t,n,o,`children`in n?n.children:null,null,t=>e.createElement(y.Provider,{value:s},e.createElement(a,{node:t})))});return o.displayName=r.name,o}const N=t(null),P=M(C,function(t,n,r){let l=i(N),{isLoading:u,onLoadMore:p,scrollOffset:m,...g}=t,_=o(null),y=a(()=>({onLoadMore:p,collection:l?.collection,sentinelRef:_,scrollOffset:m}),[p,m,l?.collection]);d(y,_);let b=h({...g,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:c(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:_,style:{position:`absolute`,height:1,width:1}})),u&&b.children&&e.createElement(v.div,{...f(s(t,{global:!0}),{tabIndex:-1}),...b,role:`option`,ref:n},b.children))});export{P as ListBoxLoadMoreItem};
@@ -0,0 +1 @@
1
+ export { ListBoxSection, type ListBoxSectionProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useMemo as s,useRef as c,useState as l}from"react";import{filterDOMProps as u,inertValue as d,mergeRefs as f,useLayoutEffect as p,useLoadMoreSentinel as m}from"@react-aria/utils";import"react-dom";import{mergeProps as h,useListBoxSection as g}from"react-aria";import"react-stately";var _=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),v=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function y(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:c,render:l}=e;return s(()=>{let e,s,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,s=typeof n==`function`?n({...c,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:a}):r??a,{className:e??i,style:s||o?{...o,...s}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,a,o,c,l])}function b(e=!0){let[t,n]=l(e),r=c(!1),i=a(e=>{r.current=!0,n(!!e)},[]);return p(()=>{r.current||n(!1)},[]),[i,t]}function x(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 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({}),K=n(null),q=r(function(t,n){let{render:r}=o(K);return e.createElement(e.Fragment,null,r(t,n))});function J(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(q,{target:t})},[n?.target,i,r]);return t?.useDropIndicator?o:void 0}const Y=n({}),X=n(null);function Z(t,n,r,i=`react-aria-ListBoxSection`){let a=o(X),{dragAndDropHooks:s,dropState:c}=o(G),{CollectionBranch:l}=o(W),[d,f]=b(),{headingProps:p,groupProps:m}=g({heading:f,"aria-label":t[`aria-label`]??void 0}),_=y({...t,id:void 0,children:void 0,defaultClassName:i,values:void 0}),v=u(t,{global:!0});return delete v.id,e.createElement(C.section,{...h(v,_,m),ref:n},e.createElement(Y.Provider,{value:{...p,ref:d}},e.createElement(l,{collection:a.collection,parent:r,renderDropIndicator:J(s,c)})))}const Q=z(A,Z);R(O,function(t,n,r){let i=o(X),{isLoading:a,onLoadMore:l,scrollOffset:f,...p}=t,g=c(null),_=s(()=>({onLoadMore:l,collection:i?.collection,sentinelRef:g,scrollOffset:f}),[l,f,i?.collection]);m(_,g);let v=y({...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:g,style:{position:`absolute`,height:1,width:1}})),a&&v.children&&e.createElement(C.div,{...h(u(t,{global:!0}),{tabIndex:-1}),...v,role:`option`,ref:n},v.children))});export{Q as ListBoxSection};
@@ -0,0 +1 @@
1
+ export { Menu, type MenuProps } 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,useReducer as l,useRef as u,useState as d}from"react";import{filterDOMProps as f,mergeProps as p,mergeRefs as m,useLayoutEffect as h,useObjectRef as g}from"@react-aria/utils";import{createPortal as _}from"react-dom";import{FocusScope as v,mergeProps as y,useMenu as b,useMenuSection as ee}from"react-aria";import{useMenuTriggerState as te,useTreeState as ne}from"react-stately";var x=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),re=(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 S=n(null),C=n(null),ie=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: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||ie;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=g(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 ae(e=!0){let[t,n]=d(e),r=u(!1),i=a(e=>{r.current=!0,n(!!e)},[]);return h(()=>{r.current||n(!1)},[]),[i,t]}function oe(t,n,r){let{render:i,...a}=n,o=u(null),s=c(()=>m(r,o),[r,o]);h(()=>{},[t,i]);let l={...a,ref:s};return i?i(l,void 0):e.createElement(t,l)}const O={},k=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=O[t];return n||(n=r(oe.bind(null,t)),O[t]=n),n}});String(Math.round(Math.random()*1e10));const se=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function ce(){return!1}function le(){return!0}function ue(e){return()=>{}}function A(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(ue,ce,le):o(se)}function de(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function fe(e){return pe(e,0)}function pe(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function j(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...M(e,t),t],i=[...M(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function M(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const me=typeof document<`u`?e.useInsertionEffect??e.useLayoutEffect:()=>{};function he(e,t,n){let[r,i]=d(e||t),o=u(r),c=u(e!==void 0),f=e!==void 0;s(()=>{c.current,c.current=f},[f]);let p=f?e:r;me(()=>{o.current=p});let[,m]=l(()=>({}),{});return[p,a((e,...t)=>{let r=typeof e==`function`?e(o.current):e;Object.is(o.current,r)||(o.current=r,i(r),m(),n?.(r,...t))},[n])]}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`;var ge=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]=z(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 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]}var B=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}},V=class e extends B{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}},_e=class extends B{get isConnected(){return!0}createElement(e){return new V(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 V&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof V?(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 H(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 U=n(!1);function ve(t){if(o(U))return e.createElement(e.Fragment,null,t.children);let n=e.createElement(U.Provider,{value:!0},t.children);return e.createElement(`template`,{"data-react-aria-hidden":!0},n)}
2
+ /**
3
+ * @license React
4
+ * use-sync-external-store-shim.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var ye=x((e=>{var t=re(`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})),be=x(((e,t)=>{t.exports=ye()}))();const xe=n(!1),W=n(null);function Se(t){if(o(W))return t.content;let{collection:n,document:r}=Ee(t.createCollection);return e.createElement(e.Fragment,null,e.createElement(ve,null,e.createElement(W.Provider,{value:r},t.content)),e.createElement(Ce,{render:t.children,collection:n}))}function Ce({collection:e,render:t}){return t(e)}function we(e,t,n){let r=A(),i=u(r);i.current=r;let o=a(()=>i.current?n():t(),[t,n]);return(0,be.useSyncExternalStore)(e,o)}const Te=typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore:we;function Ee(e){let[t]=d(()=>new _e(e?.()||new ge)),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:Te(n,r,i),document:t}}const De=n(null);function Oe(e){return H({...e,addIdAndValue:!0})}const G=n(null);function ke(t){let n=o(G),r=(n?.dependencies||[]).concat(t.dependencies),i=t.idScope??n?.idScope,a=Oe({...t,idScope:i,dependencies:r});return o(W)&&(a=e.createElement(Ae,null,a)),n=c(()=>({dependencies:r,idScope:i}),[i,...r]),e.createElement(G.Provider,{value:n},a)}function Ae({children:t}){let n=o(W),r=c(()=>e.createElement(W.Provider,{value:null},e.createElement(xe.Provider,{value:!0},t)),[t]);return A()?e.createElement(De.Provider,{value:n},r):_(r,n)}const je=n(null),Me={CollectionRoot({collection:e,renderDropIndicator:t}){return K(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return K(e,t,n)}};function K(t,n,r){return H({items:n?t.getChildren(n.key):t,dependencies:[r],children(n){let i=n.render(n);return!r||n.type!==`item`?i:e.createElement(e.Fragment,null,r({type:`item`,key:n.key,dropPosition:`before`}),i,Ne(t,n,r))}})}function Ne(e,n,r){let a=n.key,o=e.getKeyAfter(a),s=o==null?null:e.getItem(o);for(;s!=null&&s.type!==`item`;)o=e.getKeyAfter(s.key),s=o==null?null:e.getItem(o);let c=n.nextKey==null?null:e.getItem(n.nextKey);for(;c!=null&&c.type!==`item`;)c=c.nextKey==null?null:e.getItem(c.nextKey);let l=[];if(c==null){let a=n;for(;a?.type===`item`&&(!s||a.parentKey!==s.parentKey&&s.level<a.level);){let n=r({type:`item`,key:a.key,dropPosition:`after`});i(n)&&l.push(t(n,{key:`${a.key}-after`})),a=a.parentKey==null?null:e.getItem(a.parentKey)}}return l}const q=n(Me);function Pe(e){return c(()=>e==null?null:new Set([e]),[e])}const Fe=n({}),Ie=n(null);function Le(t){let n=u({});return e.createElement(Ie.Provider,{value:n},t.children)}const Re=n({});var ze=class extends N{filter(e,t){let n=t.getItem(this.prevKey);if(n&&n.type!==`separator`){let n=this.clone();return t.addDescendants(n,e),n}return null}};ze.type=`separator`;var J=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function Be(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Ve(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=u(!1),[,l]=d(!1),f=u(null),p=u(null),[,m]=d(null),[h,g]=he(c(()=>Y(e.selectedKeys),[e.selectedKeys]),c(()=>Y(e.defaultSelectedKeys,new J),[e.defaultSelectedKeys]),e.onSelectionChange),_=c(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,y]=d(i);i===`replace`&&v===`toggle`&&typeof h==`object`&&h.size===0&&y(`replace`);let b=u(i);return s(()=>{i!==b.current&&(y(i),b.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:y,get isFocused(){return o.current},setFocused(e){o.current=e,l(e)},get focusedKey(){return f.current},get childFocusStrategy(){return p.current},setFocusedKey(e,t=`first`){f.current=e,p.current=t,m(e)},selectedKeys:h,setSelectedKeys(e){(r||!Be(e,h))&&g(e)},disabledKeys:_,disabledBehavior:a}}function Y(e,t){return e?e===`all`?`all`:new J(e):t}var He=class e{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!==`all`&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys===`all`)return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&j(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&j(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new J([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new J(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?j(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new J(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new J([t],t,t):new J;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new J;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);r?.type===`item`&&e.push(n),r?.hasChildNodes&&(this.allowsCellSelection||r.type!==`item`)&&t(fe(de(r,this.collection))?.key??null)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode===`multiple`&&this.state.setSelectedKeys(`all`)}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys===`all`||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new J)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let t=this.collection.getItem(e);return!(!t||t!=null&&t.props?.isDisabled||t.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){var t;return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!((t=this.collection.getItem(e))!=null&&t.props?.isDisabled))}isLink(e){var t;return!!((t=this.collection.getItem(e))!=null&&t.props?.href)}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}};const Ue=n(null),X=n(null),Z=n(null),Q=n(null),We=n(null);var Ge=class extends N{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}};Ge.type=`submenutrigger`;const Ke=r(function(t,n){return[t,n]=D(t,n,Ue),e.createElement(Se,{content:e.createElement(ke,t)},r=>e.createElement(qe,{props:t,collection:r,menuRef:n}))});function qe({props:t,collection:n,menuRef:r}){[t,r]=D(t,r,S);let{filter:i,...a}=t,s=c(()=>i?n.filter(i):n,[n,i]),l=ne({...t,collection:s,children:void 0}),u=o(Z),{isVirtualized:d,CollectionRoot:p}=o(q),{menuProps:m}=b({...t,isVirtualized:d,onClose:t.onClose||u?.close},l,r),h=T({...t,children:void 0,defaultClassName:`react-aria-Menu`,values:{isEmpty:l.collection.size===0}}),g=null;l.collection.size===0&&t.renderEmptyState&&(g=e.createElement(`div`,{role:`menuitem`,style:{display:`contents`}},t.renderEmptyState()));let _=f(t,{global:!0});return e.createElement(v,null,e.createElement(k.div,{...y(_,h,m),ref:r,slot:t.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:t.onScroll},e.createElement(w,{values:[[X,l],[Re,{elementType:`div`}],[je,{name:`MenuSection`,render:Ye}],[We,{parentMenuRef:r,shouldUseVirtualFocus:a?.shouldUseVirtualFocus}],[$,{shouldCloseOnSelect:t.shouldCloseOnSelect}],[S,null],[C,null],[Q,l.selectionManager],[Z,u??te({})]]},e.createElement(Le,null,e.createElement(p,{collection:l.collection,persistedKeys:Pe(l.selectionManager.focusedKey),scrollRef:r}))),g))}var Je=class extends He{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function Ye(t,n,r,i=`react-aria-MenuSection`){let a=o(X),{CollectionBranch:s}=o(q),[c,l]=ae(),{headingProps:u,groupProps:d}=ee({heading:l,"aria-label":r.props[`aria-label`]??void 0}),p=T({...t,id:void 0,children:void 0,defaultClassName:i,className:r.props?.className,style:r.props?.style,values:void 0}),m=o(Q),h=Ve(t),g=t.selectionMode==null?m:new Je(m,h),_=E($)?.shouldCloseOnSelect,v=f(t,{global:!0});return delete v.id,e.createElement(k.section,{...y(v,p,d),ref:n},e.createElement(w,{values:[[Fe,{...u,ref:c}],[Q,g],[$,{shouldCloseOnSelect:t.shouldCloseOnSelect??_}]]},e.createElement(s,{collection:a.collection,parent:r})))}const $=n(null);export{Ke as Menu};
@@ -0,0 +1 @@
1
+ export { MenuItem, type MenuItemProps, type MenuItemRenderProps } from "react-aria-components";
@@ -0,0 +1,11 @@
1
+ import e,{createContext as t,forwardRef as n,useCallback as r,useContext as i,useMemo as a,useRef as o}from"react";import{filterDOMProps as s,mergeProps as c,mergeRefs as l,useLayoutEffect as u,useObjectRef as d}from"@react-aria/utils";import"react-dom";import{mergeProps as f,useHover as p,useMenuItem as m}from"react-aria";import"react-stately";var h=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),g=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});const _=Symbol(`default`);function v({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function y(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return a(()=>{let e,a,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,a=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??i,style:a||s?{...s,...a}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,o,s,c,l])}function b(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||_;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function x(e,t,n){let{ref:r,...i}=b(n,e.slot)||{},o=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 S(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 C={},w=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=C[t];return r||(r=n(S.bind(null,t)),C[t]=r),r}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let T=e.createContext(null);var E=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},D=class extends E{filter(e,t,n){let[r,i]=M(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},O=class extends E{};O.type=`header`;var k=class extends E{};k.type=`loader`;var A=class extends D{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};A.type=`item`;var j=class extends D{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};j.type=`section`;function M(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}
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=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=N()}))();const P=t(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const F=t(null);function I(e){var t;return t=class extends E{},t.type=e,t}function L(t,n,a,o,s,c){typeof t==`string`&&(t=I(t));let l=r(e=>{e?.setProps(n,a,t,o,c)},[n,a,o,c,t]),u=i(F);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(F.Provider,{value:r},s):null}return e.createElement(t.type,{ref:l},s)}function R(t,r){let a=({node:e})=>r(e.props,e.props.ref,e),o=n((n,o)=>{let s=i(T);if(!i(P)){if(r.length>=3)throw Error(r.name+` cannot be rendered outside a collection.`);return r(n,o)}return L(t,n,o,`children`in n?n.children:null,null,t=>e.createElement(T.Provider,{value:s},e.createElement(a,{node:t})))});return o.displayName=r.name,o}const z=t({}),B=t({isSelected:!1}),V=t({}),H=t(null),U=t(null);var W=class extends E{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}};W.type=`submenutrigger`;const G=t(null),K=R(A,function(t,n,r){[t,n]=x(t,n,G);let a=b(G)?.id,o=i(H),c=d(n),l=i(U),{menuItemProps:u,labelProps:h,descriptionProps:g,keyboardShortcutProps:S,...C}=m({...t,id:a,key:r.key,selectionManager:l},o,c),{hoverProps:T,isHovered:E}=p({isDisabled:C.isDisabled}),D=y({...t,id:void 0,children:r.rendered,defaultClassName:`react-aria-MenuItem`,values:{...C,isHovered:E,isFocusVisible:C.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!t[`aria-haspopup`],isOpen:t[`aria-expanded`]===`true`}}),O=t.href?w.a:w.div,k=s(t,{global:!0});return delete k.id,delete k.onClick,e.createElement(O,{...f(k,D,u,T),ref:c,"data-disabled":C.isDisabled||void 0,"data-hovered":E||void 0,"data-focused":C.isFocused||void 0,"data-focus-visible":C.isFocusVisible||void 0,"data-pressed":C.isPressed||void 0,"data-selected":C.isSelected||void 0,"data-selection-mode":l.selectionMode===`none`?void 0:l.selectionMode,"data-has-submenu":!!t[`aria-haspopup`]||void 0,"data-open":t[`aria-expanded`]===`true`||void 0},e.createElement(v,{values:[[z,{slots:{[_]:h,label:h,description:g}}],[V,S],[B,{isSelected:C.isSelected}]]},D.children))});export{K as MenuItem};
@@ -0,0 +1 @@
1
+ export { MenuSection, type MenuSectionProps } 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,useReducer as l,useRef as u,useState as d}from"react";import{filterDOMProps as f,mergeRefs as p,useLayoutEffect as m}from"@react-aria/utils";import"react-dom";import{mergeProps as h,useMenuSection 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({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function x(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren: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 ee(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=!0){let[t,n]=d(e),r=u(!1),i=a(e=>{r.current=!0,n(!!e)},[]);return m(()=>{r.current||n(!1)},[]),[i,t]}function C(t,n,r){let{render:i,...a}=n,o=u(null),s=c(()=>p(r,o),[r,o]);m(()=>{},[t,i]);let l={...a,ref:s};return i?i(l,void 0):e.createElement(t,l)}const w={},te=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;function T(e,t){return typeof t.getChildren==`function`?t.getChildren(e.key):e.childNodes}function E(e){return D(e,0)}function D(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function O(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...k(e,t),t],i=[...k(e,n),n],a=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return a===-1?r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1):(t=r[a],n=i[a],t.index-n.index)}function k(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const ne=typeof document<`u`?e.useInsertionEffect??e.useLayoutEffect:()=>{};function re(e,t,n){let[r,i]=d(e||t),o=u(r),c=u(e!==void 0),f=e!==void 0;s(()=>{c.current,c.current=f},[f]);let p=f?e:r;ne(()=>{o.current=p});let[,m]=l(()=>({}),{});return[p,a((e,...t)=>{let r=typeof e==`function`?e(o.current):e;Object.is(o.current,r)||(o.current=r,i(r),m(),n?.(r,...t))},[n])]}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=_((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=R()}))(),typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const z=n(null);function B(e){var t;return t=class extends A{},t.type=e,t}function V(t,n,r,i,s,c){typeof t==`string`&&(t=B(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(z);if(u){let a=u.ownerDocument.nodesByProps.get(n);return a||(a=u.ownerDocument.createElement(t.type),a.setProps(n,r,t,i,c),u.appendChild(a),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(n,a)),s?e.createElement(z.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function H(t,n,i=U){let a=({node:e})=>n(e.props,e.props.ref,e),o=r((n,r)=>V(t,n,r,null,i(n),t=>e.createElement(a,{node:t}))??e.createElement(e.Fragment,null));return o.displayName=n.name,o}function U(e){return L({...e,addIdAndValue:!0})}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,K(t,n,r))}})}function K(e,n,r){let a=n.key,o=e.getKeyAfter(a),s=o==null?null:e.getItem(o);for(;s!=null&&s.type!==`item`;)o=e.getKeyAfter(s.key),s=o==null?null:e.getItem(o);let c=n.nextKey==null?null:e.getItem(n.nextKey);for(;c!=null&&c.type!==`item`;)c=c.nextKey==null?null:e.getItem(c.nextKey);let l=[];if(c==null){let a=n;for(;a?.type===`item`&&(!s||a.parentKey!==s.parentKey&&s.level<a.level);){let n=r({type:`item`,key:a.key,dropPosition:`after`});i(n)&&l.push(t(n,{key:`${a.key}-after`})),a=a.parentKey==null?null:e.getItem(a.parentKey)}}return l}const q=n(W),J=n({});var Y=class e extends Set{constructor(t,n,r){super(t),t instanceof e?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}};function ie(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function ae(e){let{selectionMode:t=`none`,disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i=`toggle`,disabledBehavior:a=`all`}=e,o=u(!1),[,l]=d(!1),f=u(null),p=u(null),[,m]=d(null),[h,g]=re(c(()=>X(e.selectedKeys),[e.selectedKeys]),c(()=>X(e.defaultSelectedKeys,new Y),[e.defaultSelectedKeys]),e.onSelectionChange),_=c(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,y]=d(i);i===`replace`&&v===`toggle`&&typeof h==`object`&&h.size===0&&y(`replace`);let b=u(i);return s(()=>{i!==b.current&&(y(i),b.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:v,setSelectionBehavior:y,get isFocused(){return o.current},setFocused(e){o.current=e,l(e)},get focusedKey(){return f.current},get childFocusStrategy(){return p.current},setFocusedKey(e,t=`first`){f.current=e,p.current=t,m(e)},selectedKeys:h,setSelectedKeys(e){(r||!ie(e,h))&&g(e)},disabledKeys:_,disabledBehavior:a}}function X(e,t){return e?e===`all`?`all`:new Y(e):t}var oe=class e{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys===`all`?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode===`none`)return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys===`all`?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!==`all`&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys===`all`)return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&O(this.collection,n,e)<0)&&(e=n)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&O(this.collection,n,e)>0)&&(e=n)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n;if(this.state.selectedKeys===`all`)n=new Y([t],t,t);else{let e=this.state.selectedKeys,r=e.anchorKey??t;n=new Y(e,r,t);for(let i of this.getKeyRange(r,e.currentKey??t))n.delete(i);for(let e of this.getKeyRange(t,r))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?O(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],r=e;for(;r!=null;){let e=this.collection.getItem(r);if(e&&(e.type===`item`||e.type===`cell`&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type===`cell`&&this.allowsCellSelection)return e;for(;t&&t.type!==`item`&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!==`item`?null:t.key}toggleSelection(e){if(this.selectionMode===`none`)return;if(this.selectionMode===`single`&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let n=new Y(this.state.selectedKeys===`all`?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode===`none`)return;let t=this.getKey(e);if(t==null)return;let n=this.canSelectItem(t)?new Y([t],t,t):new Y;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode===`none`)return;let t=new Y;for(let n of e){let e=this.getKey(n);if(e!=null&&(t.add(e),this.selectionMode===`single`))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n!=null;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);r?.type===`item`&&e.push(n),r?.hasChildNodes&&(this.allowsCellSelection||r.type!==`item`)&&t(E(T(r,this.collection))?.key??null)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode===`multiple`&&this.state.setSelectedKeys(`all`)}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys===`all`||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Y)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!==`none`&&(this.selectionMode===`single`?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior===`toggle`||t&&(t.pointerType===`touch`||t.pointerType===`virtual`)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if(this.state.selectionMode===`none`||this.state.disabledKeys.has(e))return!1;let t=this.collection.getItem(e);return!(!t||t!=null&&t.props?.isDisabled||t.type===`cell`&&!this.allowsCellSelection)}isDisabled(e){var t;return this.state.disabledBehavior===`all`&&(this.state.disabledKeys.has(e)||!!((t=this.collection.getItem(e))!=null&&t.props?.isDisabled))}isLink(e){var t;return!!((t=this.collection.getItem(e))!=null&&t.props?.href)}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}};const se=n(null),Z=n(null);var ce=class extends A{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}};ce.type=`submenutrigger`;var le=class extends oe{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function ue(t,n,r,i=`react-aria-MenuSection`){let a=o(se),{CollectionBranch:s}=o(q),[c,l]=S(),{headingProps:u,groupProps:d}=g({heading:l,"aria-label":r.props[`aria-label`]??void 0}),p=x({...t,id:void 0,children:void 0,defaultClassName:i,className:r.props?.className,style:r.props?.style,values:void 0}),m=o(Z),_=ae(t),v=t.selectionMode==null?m:new le(m,_),y=ee($)?.shouldCloseOnSelect,C=f(t,{global:!0});return delete C.id,e.createElement(te.section,{...h(C,p,d),ref:n},e.createElement(b,{values:[[J,{...u,ref:c}],[Z,v],[$,{shouldCloseOnSelect:t.shouldCloseOnSelect??y}]]},e.createElement(s,{collection:a.collection,parent:r})))}const Q=H(F,ue),$=n(null);export{Q as MenuSection};
@@ -0,0 +1 @@
1
+ export { MenuTrigger, type MenuTriggerProps } 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{useMenuTrigger as h}from"react-aria";import{useMenuTriggerState as g}from"react-stately";function _({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function v(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 y={};new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=y[t];return r||(r=n(v.bind(null,t)),y[t]=r),r}});const b=e.createContext({register:()=>{}});b.displayName=`PressResponderContext`;const x=e.forwardRef(({children:t,...n},r)=>{let o=s(!1),c=i(b),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(b.Provider,{value:u},t)});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]}const k=t(null),A=t(null),j=t(null);function M(t){let n=g(t),i=s(null),{menuTriggerProps:a,menuProps:o}=h({...t,type:`menu`},n,i),[l,u]=c(null),d=r(()=>{i.current&&u(i.current.offsetWidth+`px`)},[i]);p({ref:i,onResize:d});let f=s(null);return e.createElement(_,{values:[[A,{...o,ref:f}],[P,n],[j,n],[k,{trigger:`MenuTrigger`,triggerRef:i,scrollRef:f,placement:`bottom start`,style:{"--trigger-width":l},"aria-labelledby":o[`aria-labelledby`]}]]},e.createElement(x,{...a,ref:i,isPressed:n.isOpen},t.children))}var N=class extends S{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}};N.type=`submenutrigger`;const P=t(null);export{M as MenuTrigger};
@@ -0,0 +1 @@
1
+ export { Meter, type MeterProps, type MeterRenderProps } 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{useMeter as p}from"react-aria";const m=Symbol(`default`);function h(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 g(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||m;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function _(e,t,n){let{ref:r,...i}=g(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 v(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 y(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 b={},x=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=b[t];return r||(r=n(y.bind(null,t)),b[t]=r),r}});function S(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const C=t({}),w=t(null),T=n(function(t,n){[t,n]=_(t,n,w);let{value:r=0,minValue:i=0,maxValue:a=100}=t;r=S(r,i,a);let[o,s]=v(!t[`aria-label`]&&!t[`aria-labelledby`]),{meterProps:u,labelProps:d}=p({...t,label:s}),f=(r-i)/(a-i)*100,m=h({...t,defaultClassName:`react-aria-Meter`,values:{percentage:f,valueText:u[`aria-valuetext`]}}),g=c(t,{global:!0});return e.createElement(x.div,{...l(g,m,u),ref:n,slot:t.slot||void 0},e.createElement(C.Provider,{value:{...d,ref:o,elementType:`span`}},m.children))});export{T as Meter};
@@ -0,0 +1 @@
1
+ export { Modal, type ModalOverlayProps, type ModalRenderProps } 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,isScrollable as s,mergeProps as c,mergeRefs as l,useEnterAnimation as u,useExitAnimation as d,useLayoutEffect as f,useObjectRef as p,useViewportSize as m}from"@react-aria/utils";import{DismissButton as h,Overlay as g,useIsSSR as _,useModalOverlay as v}from"react-aria";import{useOverlayTriggerState as y}from"react-stately";const b=Symbol(`default`);function x({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function S(e){let{className:t,style:n,children:r,defaultClassName: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 C(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||b;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function w(e,t,n){let{ref:r,...a}=C(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(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 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}}),O=t(null),k=t(null),A=t(null),j=n(function(t,n){if(r(A))return e.createElement(F,{...t,modalRef:n},t.children);let{isDismissable:i,isKeyboardDismissDisabled:a,isOpen:o,defaultOpen:s,onOpenChange:c,children:l,isEntering:u,isExiting:d,UNSTABLE_portalContainer:f,shouldCloseOnInteractOutside:p,...m}=t;return e.createElement(N,{isDismissable:i,isKeyboardDismissDisabled:a,isOpen:o,defaultOpen:s,onOpenChange:c,isEntering:u,isExiting:d,UNSTABLE_portalContainer:f,shouldCloseOnInteractOutside:p},e.createElement(F,{...m,modalRef:n},l))});function M(t,n){[t,n]=w(t,n,k);let i=r(O),o=y(t),s=t.isOpen!=null||t.defaultOpen!=null||!i?o:i,c=p(n),l=a(null),u=d(c,s.isOpen),f=d(l,s.isOpen),m=u||f||t.isExiting||!1,h=_();return!s.isOpen&&!m||h?null:e.createElement(P,{...t,state:s,isExiting:m,overlayRef:c,modalRef:l})}const N=n(M);function P({UNSTABLE_portalContainer:t,...n}){let r=n.modalRef,{state:i}=n,{modalProps:a,underlayProps:l}=v(n,i,r),d=u(n.overlayRef)||n.isEntering||!1,f=S({...n,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:d,isExiting:n.isExiting,state:i}}),p=m(),h;if(typeof document<`u`){let e=s(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().height%1;h=e.scrollHeight-t}let _={...f.style,"--visual-viewport-height":p.height+`px`,"--page-height":h===void 0?void 0:h+`px`};return e.createElement(g,{isExiting:n.isExiting,portalContainer:t},e.createElement(D.div,{...c(o(n,{global:!0}),l),...f,style:_,ref:n.overlayRef,"data-entering":d||void 0,"data-exiting":n.isExiting||void 0},e.createElement(x,{values:[[A,{modalProps:a,modalRef:r,isExiting:n.isExiting,isDismissable:n.isDismissable}],[O,i]]},f.children)))}function F(t){let{modalProps:n,modalRef:a,isExiting:s,isDismissable:d}=r(A),f=r(O),m=i(()=>l(t.modalRef,a),[t.modalRef,a]),g=p(m),_=u(g),v=S({...t,defaultClassName:`react-aria-Modal`,values:{isEntering:_,isExiting:s,state:f}});return e.createElement(D.div,{...c(o(t,{global:!0}),n),...v,ref:g,"data-entering":_||void 0,"data-exiting":s||void 0},d&&e.createElement(h,{onDismiss:f.close}),v.children)}export{j as Modal};
@@ -0,0 +1 @@
1
+ export { ModalOverlay, type ModalOverlayProps } 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,isScrollable as s,mergeProps as c,mergeRefs as l,useEnterAnimation as u,useExitAnimation as d,useLayoutEffect as f,useObjectRef as p,useViewportSize as m}from"@react-aria/utils";import{Overlay as h,useIsSSR as g,useModalOverlay as _}from"react-aria";import{useOverlayTriggerState as v}from"react-stately";const y=Symbol(`default`);function b({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function x(e){let{className:t,style:n,children:r,defaultClassName: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 S(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||y;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function C(e,t,n){let{ref:r,...a}=S(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 w(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 T={},E=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=T[t];return r||(r=n(w.bind(null,t)),T[t]=r),r}}),D=t(null),O=t(null),k=t(null);function A(t,n){[t,n]=C(t,n,O);let i=r(D),o=v(t),s=t.isOpen!=null||t.defaultOpen!=null||!i?o:i,c=p(n),l=a(null),u=d(c,s.isOpen),f=d(l,s.isOpen),m=u||f||t.isExiting||!1,h=g();return!s.isOpen&&!m||h?null:e.createElement(M,{...t,state:s,isExiting:m,overlayRef:c,modalRef:l})}const j=n(A);function M({UNSTABLE_portalContainer:t,...n}){let r=n.modalRef,{state:i}=n,{modalProps:a,underlayProps:l}=_(n,i,r),d=u(n.overlayRef)||n.isEntering||!1,f=x({...n,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:d,isExiting:n.isExiting,state:i}}),p=m(),g;if(typeof document<`u`){let e=s(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().height%1;g=e.scrollHeight-t}let v={...f.style,"--visual-viewport-height":p.height+`px`,"--page-height":g===void 0?void 0:g+`px`};return e.createElement(h,{isExiting:n.isExiting,portalContainer:t},e.createElement(E.div,{...c(o(n,{global:!0}),l),...f,style:v,ref:n.overlayRef,"data-entering":d||void 0,"data-exiting":n.isExiting||void 0},e.createElement(b,{values:[[k,{modalProps:a,modalRef:r,isExiting:n.isExiting,isDismissable:n.isDismissable}],[D,i]]},f.children)))}export{j as ModalOverlay};
@@ -0,0 +1 @@
1
+ export { NumberField, type NumberFieldProps, type NumberFieldRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useCallback as r,useContext as i,useMemo as a,useRef as o,useState as s}from"react";import{filterDOMProps as c,mergeProps as l,mergeRefs as u,useLayoutEffect as d,useObjectRef as f}from"@react-aria/utils";import{useLocale as p,useNumberField as m}from"react-aria";import{useNumberFieldState as h}from"react-stately";const g=Symbol(`default`);function _({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function v(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return a(()=>{let e,a,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,a=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??i,style:a||s?{...s,...a}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,o,s,c,l])}function y(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||g;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function b(e,t,n){let{ref:r,...i}=y(n,e.slot)||{},o=f(a(()=>u(t,r),[t,r])),s=l(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(s.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[s,o]}function x(e=!0){let[t,n]=s(e),i=o(!1),a=r(e=>{i.current=!0,n(!!e)},[]);return d(()=>{i.current||n(!1)},[]),[a,t]}function S(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function C(t,n,r){let{render:i,...s}=n,c=o(null),l=a(()=>u(r,c),[r,c]);d(()=>{},[t,i]);let f={...s,ref:l};return i?i(f,void 0):e.createElement(t,f)}const w={},T=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=w[t];return r||(r=n(C.bind(null,t)),w[t]=r),r}}),E=t({}),D=t({}),O=t({}),k=t(null),A=t(null),j=t({}),M=t({}),N=t(null),P=t(null),F=n(function(t,n){[t,n]=b(t,n,N);let{validationBehavior:r}=y(A)||{},i=t.validationBehavior??r??`native`,{locale:a}=p(),s=h({...t,locale:a,validationBehavior:i}),l=o(null),[u,d]=x(!t[`aria-label`]&&!t[`aria-labelledby`]),{labelProps:f,groupProps:g,inputProps:C,incrementButtonProps:w,decrementButtonProps:F,descriptionProps:I,errorMessageProps:L,...R}=m({...S(t),label:d,validationBehavior:i},s,l),z=v({...t,values:{state:s,isDisabled:t.isDisabled||!1,isInvalid:R.isInvalid||!1,isRequired:t.isRequired||!1},defaultClassName:`react-aria-NumberField`}),B=c(t,{global:!0});return delete B.id,e.createElement(_,{values:[[P,s],[j,g],[M,{...C,ref:l}],[E,{...f,ref:u}],[D,{slots:{increment:w,decrement:F}}],[O,{slots:{description:I,errorMessage:L}}],[k,R]]},e.createElement(T.div,{...B,...z,ref:n,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-required":t.isRequired||void 0,"data-invalid":R.isInvalid||void 0}),t.name&&e.createElement(`input`,{type:`hidden`,name:t.name,form:t.form,value:isNaN(s.numberValue)?``:s.numberValue,disabled:t.isDisabled||void 0}))});export{F as NumberField};
@@ -0,0 +1 @@
1
+ export { OverlayArrow, type OverlayArrowProps, type OverlayArrowRenderProps } 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({placement:`bottom`}),y=n(function(t,n){[t,n]=m(t,n,v);let r=t.placement,i={position:`absolute`,transform:r===`top`||r===`bottom`?`translateX(-50%)`:`translateY(-50%)`};r!=null&&(i[r]=`100%`);let a=f({...t,defaultClassName:`react-aria-OverlayArrow`,values:{placement:r}});a.style&&Object.keys(a.style).forEach(e=>a.style[e]===void 0&&delete a.style[e]);let s=o(t);return e.createElement(_.div,{...s,...a,style:{...i,...a.style},ref:n,"data-placement":r})});export{y as OverlayArrow};
@@ -0,0 +1 @@
1
+ export { Popover, type PopoverProps, type PopoverRenderProps } 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,useState as s}from"react";import{filterDOMProps as c,focusWithoutScrolling as l,getActiveElement as u,getOwnerDocument as d,getOwnerWindow as f,isMac as p,isVirtualClick as m,mergeProps as h,mergeRefs as g,nodeContains as _,openLink as v,runAfterTransition as y,useEnterAnimation as b,useExitAnimation as x,useLayoutEffect as S,useObjectRef as C}from"@react-aria/utils";import{DismissButton as w,Overlay as T,useLocale as E,usePopover as ee}from"react-aria";import{useOverlayTriggerState as D}from"react-stately";const O=Symbol(`default`);function k(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 A(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||O;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 j(e,t,n){let{ref:r,...i}=A(n,e.slot)||{},o=C(a(()=>g(t,r),[t,r])),s=h(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 M(t,n,r){let{render:i,...s}=n,c=o(null),l=a(()=>g(r,c),[r,c]);S(()=>{},[t,i]);let u={...s,ref:l};return i?i(u,void 0):e.createElement(t,u)}const N={},te=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=N[t];return r||(r=n(M.bind(null,t)),N[t]=r),r}});let P=null;const F=new Set;let I=new Map,L=!1,R=!1;function z(e,t){for(let n of F)n(e,t)}function B(e){return!(e.metaKey||!p()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}function V(e){L=!0,!v.isOpening&&B(e)&&(P=`keyboard`,z(`keyboard`,e))}function H(e){P=`pointer`,`pointerType`in e&&e.pointerType,(e.type===`mousedown`||e.type===`pointerdown`)&&(L=!0,z(`pointer`,e))}function U(e){!v.isOpening&&m(e)&&(L=!0,P=`virtual`)}function W(e){e.target===window||e.target===document||!e.isTrusted||(!L&&!R&&(P=`virtual`,z(`virtual`,e)),L=!1,R=!1)}function G(){L=!1,R=!0}function K(e){if(typeof window>`u`||typeof document>`u`||I.get(f(e)))return;let t=f(e),n=d(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){L=!0,r.apply(this,arguments)},n.addEventListener(`keydown`,V,!0),n.addEventListener(`keyup`,V,!0),n.addEventListener(`click`,U,!0),t.addEventListener(`focus`,W,!0),t.addEventListener(`blur`,G,!1),typeof PointerEvent<`u`&&(n.addEventListener(`pointerdown`,H,!0),n.addEventListener(`pointermove`,H,!0),n.addEventListener(`pointerup`,H,!0)),t.addEventListener(`beforeunload`,()=>{q(e)},{once:!0}),I.set(t,{focus:r})}const q=(e,t)=>{let n=f(e),r=d(e);t&&r.removeEventListener(`DOMContentLoaded`,t),I.has(n)&&(n.HTMLElement.prototype.focus=I.get(n).focus,r.removeEventListener(`keydown`,V,!0),r.removeEventListener(`keyup`,V,!0),r.removeEventListener(`click`,U,!0),n.removeEventListener(`focus`,W,!0),n.removeEventListener(`blur`,G,!1),typeof PointerEvent<`u`&&(r.removeEventListener(`pointerdown`,H,!0),r.removeEventListener(`pointermove`,H,!0),r.removeEventListener(`pointerup`,H,!0)),I.delete(n))};function J(e){let t=d(e),n;return t.readyState===`loading`?(n=()=>{K(e)},t.addEventListener(`DOMContentLoaded`,n)):K(e),()=>q(e,n)}typeof document<`u`&&J();function Y(){return P}function X(e){let t=d(e);if(Y()===`virtual`){let n=u(t);y(()=>{let r=u(t);(r===n||r===t.body)&&e.isConnected&&l(e)})}else l(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 Z=t(!1);function ne(){return r(Z)}const re=t({placement:`bottom`}),Q=t(null),$=t(null),ie=n(function(t,n){[t,n]=j(t,n,Q);let i=r(oe),a=D(t),o=t.isOpen!=null||t.defaultOpen!=null||!i?a:i,s=x(n,o.isOpen)||t.isExiting||!1,c=ne(),{direction:l}=E();if(c){let n=t.children;return typeof n==`function`&&(n=n({trigger:t.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),e.createElement(e.Fragment,null,n)}return o&&!o.isOpen&&!s?null:e.createElement(ae,{...t,triggerRef:t.triggerRef,state:o,popoverRef:n,isExiting:s,dir:l})});function ae({state:t,isExiting:n,UNSTABLE_portalContainer:l,clearContexts:u,...d}){let f=o(null),p=o(null),m=r($),g=m&&d.trigger===`SubmenuTrigger`,{popoverProps:v,underlayProps:y,arrowProps:x,placement:C,triggerAnchorPoint:E}=ee({...d,offset:d.offset??8,arrowRef:f,groupRef:g?m:p},t),D=d.popoverRef,O=b(D,!!C)||d.isEntering||!1,A=k({...d,defaultClassName:`react-aria-Popover`,values:{trigger:d.trigger||null,placement:C,isEntering:O,isExiting:n}}),j=!d.isNonModal||d.trigger===`SubmenuTrigger`,[M,N]=s(!1);S(()=>{D.current&&N(j&&!D.current.querySelector(`[role=dialog]`))},[D,j]),i(()=>{M&&d.trigger!==`SubmenuTrigger`&&D.current&&!_(D.current,document.activeElement)&&X(D.current)},[M,D,d.trigger]);let P=a(()=>{let t=A.children;if(u)for(let n of u)t=e.createElement(n.Provider,{value:null},t);return t},[A.children,u]),F={...v.style,"--trigger-anchor-point":E?`${E.x}px ${E.y}px`:void 0,...A.style},I=e.createElement(te.div,{...h(c(d,{global:!0}),v),...A,role:M?`dialog`:void 0,tabIndex:M?-1:void 0,"aria-label":d[`aria-label`],"aria-labelledby":d[`aria-labelledby`],ref:D,slot:d.slot||void 0,style:F,dir:d.dir,"data-trigger":d.trigger,"data-placement":C,"data-entering":O||void 0,"data-exiting":n||void 0},!d.isNonModal&&e.createElement(w,{onDismiss:t.close}),e.createElement(re.Provider,{value:{...x,placement:C,ref:f}},P),e.createElement(w,{onDismiss:t.close}));return g?e.createElement(T,{...d,shouldContainFocus:M,isExiting:n,portalContainer:l??m?.current??void 0},I):e.createElement(T,{...d,shouldContainFocus:M,isExiting:n,portalContainer:l},!d.isNonModal&&t.isOpen&&e.createElement(`div`,{"data-testid":`underlay`,...y,style:{position:`fixed`,inset:0}}),e.createElement(`div`,{ref:p,style:{display:`contents`}},e.createElement($.Provider,{value:p},I)))}const oe=t(null);export{ie as Popover};
@@ -0,0 +1 @@
1
+ export { Pressable } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import{Pressable as e}from"react-aria";import"react-stately";export{e as Pressable};
@@ -0,0 +1 @@
1
+ export { ProgressBar, type ProgressBarProps, type ProgressBarRenderProps } 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{useProgressBar as p}from"react-aria";const m=Symbol(`default`);function h(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 g(e,t){let n=i(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||m;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function _(e,t,n){let{ref:r,...i}=g(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 v(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 y(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 b={},x=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=b[t];return r||(r=n(y.bind(null,t)),b[t]=r),r}});function S(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const C=t({}),w=t(null),T=n(function(t,n){[t,n]=_(t,n,w);let{value:r=0,minValue:i=0,maxValue:a=100,isIndeterminate:o=!1}=t;r=S(r,i,a);let[s,u]=v(!t[`aria-label`]&&!t[`aria-labelledby`]),{progressBarProps:d,labelProps:f}=p({...t,label:u}),m=o?void 0:(r-i)/(a-i)*100,g=h({...t,defaultClassName:`react-aria-ProgressBar`,values:{percentage:m,valueText:d[`aria-valuetext`],isIndeterminate:o}}),y=c(t,{global:!0});return e.createElement(x.div,{...l(y,g,d),ref:n,slot:t.slot||void 0},e.createElement(C.Provider,{value:{...f,ref:s,elementType:`span`}},g.children))});export{T as ProgressBar};
@@ -0,0 +1 @@
1
+ export { Provider } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{forwardRef as t,useMemo as n,useRef as r}from"react";import{mergeRefs as i,useLayoutEffect as a}from"@react-aria/utils";function o({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function s(t,o,s){let{render:c,...l}=o,u=r(null),d=n(()=>i(s,u),[s,u]);a(()=>{},[t,c]);let f={...l,ref:d};return c?c(f,void 0):e.createElement(t,f)}const c={};new Proxy({},{get(e,n){if(typeof n!=`string`)return;let r=c[n];return r||(r=t(s.bind(null,n)),c[n]=r),r}});export{o as Provider};
@@ -0,0 +1 @@
1
+ export { Radio, type RadioProps, type RadioRenderProps } from "react-aria-components";
@@ -0,0 +1 @@
1
+ import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeProps as s,mergeRefs as c,useLayoutEffect as l,useObjectRef as u}from"@react-aria/utils";import{VisuallyHidden as d,useFocusRing as f,useHover as p,useRadio as m}from"react-aria";import"react-stately";const h=Symbol(`default`);function g(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function _(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||h;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function v(e,t,n){let{ref:r,...a}=_(n,e.slot)||{},o=u(i(()=>c(t,r),[t,r])),l=s(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(l.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[l,o]}function y(e){let t=/^(data-.*)$/,n={};for(let r in e)t.test(r)||(n[r]=e[r]);return n}function b(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 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({isSelected:!1}),w=t(null),T=t(null),E=n(function(t,n){let{inputRef:r=null,...a}=t;[t,n]=v(a,n,w);let l=e.useContext(T),h=u(i(()=>c(r,t.inputRef===void 0?null:t.inputRef),[r,t.inputRef])),{labelProps:_,inputProps:b,isSelected:x,isDisabled:E,isPressed:D}=m({...y(t),children:typeof t.children==`function`||t.children},l,h),{isFocused:O,isFocusVisible:k,focusProps:A}=f(),j=E||l.isReadOnly,{hoverProps:M,isHovered:N}=p({...t,isDisabled:j}),P=g({...t,defaultClassName:`react-aria-Radio`,values:{isSelected:x,isPressed:D,isHovered:N,isFocused:O,isFocusVisible:k,isDisabled:E,isReadOnly:l.isReadOnly,isInvalid:l.isInvalid,isRequired:l.isRequired}}),F=o(t,{global:!0});return delete F.id,delete F.onClick,e.createElement(S.label,{...s(F,_,M,P),ref:n,"data-selected":x||void 0,"data-pressed":D||void 0,"data-hovered":N||void 0,"data-focused":O||void 0,"data-focus-visible":k||void 0,"data-disabled":E||void 0,"data-readonly":l.isReadOnly||void 0,"data-invalid":l.isInvalid||void 0,"data-required":l.isRequired||void 0},e.createElement(d,{elementType:`span`},e.createElement(`input`,{...s(b,A),ref:h})),e.createElement(C.Provider,{value:{isSelected:x}},P.children))});export{E as Radio};
@@ -0,0 +1 @@
1
+ export { RadioGroup, type RadioGroupProps, type RadioGroupRenderProps } from "react-aria-components";