@slotted/react 0.1.0-beta.2 → 0.1.0-beta.4

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 (319) hide show
  1. package/dist/{accordion-D-YuMJzk.js → accordion-lCqrmQ3w.js} +43 -43
  2. package/dist/accordion.js +1 -1
  3. package/dist/{action-bar-C7cGnEyJ.js → action-bar-OACchRZw.js} +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/{action-sheet-DgwzC3iY.js → action-sheet-C60BWUW8.js} +1 -1
  6. package/dist/action-sheet.js +1 -1
  7. package/dist/{app-shell-CXwma4XA.js → app-shell-CmYvnu_7.js} +310 -310
  8. package/dist/app-shell.js +1 -1
  9. package/dist/button-Db9f3Bxn.js +99 -0
  10. package/dist/button.js +2 -2
  11. package/dist/calendar-BZ6PP7Ke.js +436 -0
  12. package/dist/calendar.js +1 -1
  13. package/dist/cascader-D1AhTyBL.js +1097 -0
  14. package/dist/cascader.js +1 -1
  15. package/dist/{chart-Gb_P3Kdq.js → chart-O0ZhkzJe.js} +381 -374
  16. package/dist/chart.js +1 -1
  17. package/dist/{checkbox-CwUOc-3u.js → checkbox-DfxFHZaU.js} +3 -3
  18. package/dist/{checkbox-group-BYTjgAcX.js → checkbox-group-9sDgrV5Z.js} +2 -2
  19. package/dist/checkbox-group.js +1 -1
  20. package/dist/checkbox.js +1 -1
  21. package/dist/{collapsible-CGo49NNW.js → collapsible-F-K36XbF.js} +17 -17
  22. package/dist/collapsible.js +1 -1
  23. package/dist/{color-picker-BlPR4g4H.js → color-picker-CwbWzCKg.js} +4 -4
  24. package/dist/color-picker.js +1 -1
  25. package/dist/{column-manager-B7_a_jDK.js → column-manager-CTtizVhm.js} +6 -6
  26. package/dist/column-manager.js +1 -1
  27. package/dist/{combobox-C66dNlMR.js → combobox-BVMI9lg8.js} +266 -266
  28. package/dist/combobox.js +1 -1
  29. package/dist/{command-palette-BqRyNR9Y.js → command-palette-DFLbSOiv.js} +1 -1
  30. package/dist/command-palette.js +1 -1
  31. package/dist/{context-menu-DMiHdggw.js → context-menu-BuST6W94.js} +1 -1
  32. package/dist/context-menu.js +1 -1
  33. package/dist/currency-field-DD9A5U3D.js +455 -0
  34. package/dist/currency-field.js +1 -1
  35. package/dist/{dashboard-grid-CKdyO4j6.js → dashboard-grid-CBMP_-JV.js} +2 -2
  36. package/dist/dashboard-grid.js +1 -1
  37. package/dist/{data-grid-rWMDNl-6.js → data-grid-Eb-a4jg3.js} +19 -19
  38. package/dist/data-grid.js +1 -1
  39. package/dist/{data-list-2xfDpHVC.js → data-list-oICmxGkA.js} +5 -5
  40. package/dist/data-list.js +1 -1
  41. package/dist/date-field-Hr-OCU-H.js +290 -0
  42. package/dist/date-field.js +1 -1
  43. package/dist/date-picker-D3-y2Jxw.js +295 -0
  44. package/dist/date-picker.js +1 -1
  45. package/dist/date-range-picker-y3b82Wmf.js +471 -0
  46. package/dist/date-range-picker.js +1 -1
  47. package/dist/{datetime-field-T1gNdJ7t.js → datetime-field-B8TrmsDK.js} +1 -1
  48. package/dist/datetime-field.js +1 -1
  49. package/dist/datetime-picker-CIRHVLQp.js +629 -0
  50. package/dist/datetime-picker.js +1 -1
  51. package/dist/datetime-range-picker-DM-1m98z.js +994 -0
  52. package/dist/datetime-range-picker.js +1 -1
  53. package/dist/{detail-panel-qOJiNuzr.js → detail-panel-CW53lUjp.js} +3 -3
  54. package/dist/detail-panel.js +1 -1
  55. package/dist/{dialog-Dmy-m_pe.js → dialog-BHYDDj1S.js} +112 -113
  56. package/dist/dialog.js +1 -1
  57. package/dist/docs/app-shell.json +1 -1
  58. package/dist/docs/button-group.json +1 -0
  59. package/dist/docs/button-group.md +1 -1
  60. package/dist/docs/button.json +45 -11
  61. package/dist/docs/button.md +10 -6
  62. package/dist/docs/calendar.json +7 -0
  63. package/dist/docs/calendar.md +1 -0
  64. package/dist/docs/chart.json +7 -0
  65. package/dist/docs/chart.md +1 -0
  66. package/dist/docs/collapsible.json +1 -1
  67. package/dist/docs/collapsible.md +1 -1
  68. package/dist/docs/currency-field.json +32 -1
  69. package/dist/docs/currency-field.md +4 -1
  70. package/dist/docs/date-field.json +8 -1
  71. package/dist/docs/date-field.md +2 -1
  72. package/dist/docs/date-picker.examples.md +29 -0
  73. package/dist/docs/date-picker.json +16 -1
  74. package/dist/docs/date-picker.md +2 -1
  75. package/dist/docs/dialog.examples.md +26 -0
  76. package/dist/docs/dialog.json +14 -2
  77. package/dist/docs/dialog.md +1 -1
  78. package/dist/docs/guidelines/composition.md +10 -0
  79. package/dist/docs/guidelines/index.md +2 -0
  80. package/dist/docs/guidelines/list-pages.md +12 -1
  81. package/dist/docs/list.json +26 -1
  82. package/dist/docs/list.md +4 -1
  83. package/dist/docs/page.json +1 -0
  84. package/dist/docs/page.md +1 -0
  85. package/dist/docs/popover.json +1 -1
  86. package/dist/docs/segmented-control.json +29 -1
  87. package/dist/docs/segmented-control.md +17 -1
  88. package/dist/docs/select.json +1 -1
  89. package/dist/docs/select.md +1 -1
  90. package/dist/docs/side-navigation.json +2 -2
  91. package/dist/docs/side-navigation.md +19 -4
  92. package/dist/docs/skills/compose-screen/SKILL.md +7 -0
  93. package/dist/docs/skills/theme-app/SKILL.md +5 -0
  94. package/dist/docs/split-button.json +1 -0
  95. package/dist/docs/split-button.md +1 -1
  96. package/dist/docs/stat-card.json +1 -0
  97. package/dist/docs/stat-card.md +1 -1
  98. package/dist/docs/table.examples.md +1 -1
  99. package/dist/docs/table.json +91 -2
  100. package/dist/docs/table.md +14 -1
  101. package/dist/docs/tabs.examples.md +1 -1
  102. package/dist/docs/tabs.json +10 -2
  103. package/dist/docs/tabs.md +3 -1
  104. package/dist/docs/text-field.json +1 -1
  105. package/dist/docs/text-field.md +1 -1
  106. package/dist/docs/toggle-group.json +14 -3
  107. package/dist/docs/toggle-group.md +3 -3
  108. package/dist/docs/toggle.json +12 -3
  109. package/dist/docs/toggle.md +3 -3
  110. package/dist/docs/tokens.md +25 -1
  111. package/dist/docs/top-navigation.examples.md +23 -5
  112. package/dist/docs/top-navigation.json +2 -2
  113. package/dist/docs/tour.json +1 -1
  114. package/dist/drawer-LXM44eso.js +757 -0
  115. package/dist/drawer.js +1 -1
  116. package/dist/entity-picker-Dn1T7JCq.js +1110 -0
  117. package/dist/entity-picker.js +1 -1
  118. package/dist/{event-calendar-DYjVwTI6.js → event-calendar-CnF3iIZD.js} +5 -5
  119. package/dist/event-calendar.js +1 -1
  120. package/dist/{field-BJh5HI7w.js → field-NJaCxl2h.js} +1 -1
  121. package/dist/{field-group-BDaspQPh.js → field-group-hAzVa2O9.js} +1 -1
  122. package/dist/field-group.js +1 -1
  123. package/dist/field.js +1 -1
  124. package/dist/{filter-bar-Bh7cbqDE.js → filter-bar-CHyy1o--.js} +20 -20
  125. package/dist/filter-bar.js +1 -1
  126. package/dist/{hover-card-CSDbA6zd.js → hover-card-BJE5dtaQ.js} +1 -1
  127. package/dist/hover-card.js +1 -1
  128. package/dist/{icon-button-TnvMhK4o.js → icon-button-CCWkCDMs.js} +26 -24
  129. package/dist/import-export-center-jF37b909.js +813 -0
  130. package/dist/import-export-center.js +1 -1
  131. package/dist/index.js +92 -91
  132. package/dist/{list-C1Y8MWp2.js → list-WsQ6ZzCa.js} +16 -12
  133. package/dist/{list-item-DN_mcouU.js → list-item-DpCwZIrd.js} +1 -1
  134. package/dist/list-item.js +1 -1
  135. package/dist/list.js +1 -1
  136. package/dist/{listbox-4WvqR0JF.js → listbox-Dv856z9I.js} +1 -1
  137. package/dist/listbox.js +1 -1
  138. package/dist/{loading-overlay-B83XFctM.js → loading-overlay-COfnckse.js} +73 -73
  139. package/dist/loading-overlay.js +1 -1
  140. package/dist/{markdown-CpfDn1LF.js → markdown-CeG8mUbI.js} +2 -2
  141. package/dist/markdown.js +1 -1
  142. package/dist/menu-parts-W58pVNUt.js +786 -0
  143. package/dist/menu.js +1 -1
  144. package/dist/{menubar-CtGavUTO.js → menubar-b2CruimJ.js} +1 -1
  145. package/dist/menubar.js +1 -1
  146. package/dist/{multi-select-B-tuIwAu.js → multi-select-DQ5ds0fX.js} +390 -390
  147. package/dist/multi-select.js +1 -1
  148. package/dist/{notification-center-C4pEHJ3h.js → notification-center-C1iWWl5Y.js} +3 -3
  149. package/dist/notification-center.js +1 -1
  150. package/dist/{number-field-J_koud1r.js → number-field-BFIAmv-z.js} +1 -1
  151. package/dist/number-field.js +1 -1
  152. package/dist/{otp-input-Bf8JUiVR.js → otp-input-BNQhuKaT.js} +1 -1
  153. package/dist/otp-input.js +1 -1
  154. package/dist/{page-kQgLctsA.js → page-IiYXk1sz.js} +32 -32
  155. package/dist/{page-header-CWEBfMGq.js → page-header-Bn4nIGfF.js} +1 -1
  156. package/dist/page-header.js +1 -1
  157. package/dist/page.js +1 -1
  158. package/dist/popover-Be7JWbGJ.js +475 -0
  159. package/dist/popover.js +1 -1
  160. package/dist/press-selection-DjOllE2B.js +29 -0
  161. package/dist/press-selection.js +2 -0
  162. package/dist/{prompt-composer-B7MMcER0.js → prompt-composer-BxpdkTpZ.js} +1 -1
  163. package/dist/prompt-composer.js +1 -1
  164. package/dist/{radio-group-BFpjhDkV.js → radio-group-BaVIP9UH.js} +2 -2
  165. package/dist/radio-group.js +1 -1
  166. package/dist/{rating-D1EsADFM.js → rating-DYBQBzwB.js} +1 -1
  167. package/dist/rating.js +1 -1
  168. package/dist/{saved-views-BueW-Lyb.js → saved-views-DlE_--Z9.js} +5 -5
  169. package/dist/saved-views.js +1 -1
  170. package/dist/{segmented-control-Cy_5D3Nj.js → segmented-control-DmuOGiu6.js} +28 -24
  171. package/dist/segmented-control.js +1 -1
  172. package/dist/{select-hRFp8nCj.js → select-M7Io4UL9.js} +278 -265
  173. package/dist/select.js +1 -1
  174. package/dist/{side-navigation-YUiJRpng.js → side-navigation-CBLtCzuJ.js} +186 -187
  175. package/dist/side-navigation.js +1 -1
  176. package/dist/{slider-B432T6nD.js → slider-DTes4HLF.js} +1 -1
  177. package/dist/slider.js +1 -1
  178. package/dist/{split-button-DHF3v3PJ.js → split-button-CPgHiy9G.js} +2 -2
  179. package/dist/split-button.js +1 -1
  180. package/dist/styles.css +1 -1
  181. package/dist/{switch-4MHwKmkz.js → switch-DQzuIhPX.js} +1 -1
  182. package/dist/switch.js +1 -1
  183. package/dist/{table-Bd79IwDC.js → table-U9eJYCuB.js} +327 -292
  184. package/dist/table.js +2 -2
  185. package/dist/tabs-BtHmjlnM.js +348 -0
  186. package/dist/tabs.js +1 -1
  187. package/dist/{tags-input-DLdHLWrH.js → tags-input-CcOkm0AW.js} +1 -1
  188. package/dist/tags-input.js +1 -1
  189. package/dist/{text-field-BktZbmzD.js → text-field-DLfIZ0fk.js} +1 -1
  190. package/dist/text-field.js +1 -1
  191. package/dist/{textarea-JAK2RJl0.js → textarea-CBJBJBi6.js} +1 -1
  192. package/dist/textarea.js +1 -1
  193. package/dist/{time-field-DCG_VtGO.js → time-field-DrhiCtUl.js} +1 -1
  194. package/dist/time-field.js +1 -1
  195. package/dist/{time-picker-DuT1tf5-.js → time-picker-CRQsMJbQ.js} +102 -102
  196. package/dist/time-picker.js +1 -1
  197. package/dist/{time-range-picker-HwBvrrXN.js → time-range-picker-DlZJsj1e.js} +202 -202
  198. package/dist/time-range-picker.js +1 -1
  199. package/dist/{toast-wI8BtPY5.js → toast-Bf3e0AgC.js} +157 -157
  200. package/dist/toast.js +1 -1
  201. package/dist/toggle-group-7iBR9Rn1.js +142 -0
  202. package/dist/toggle-group.js +1 -1
  203. package/dist/{toolbar-CDQTydDx.js → toolbar-DDZpEftQ.js} +1 -1
  204. package/dist/toolbar.js +1 -1
  205. package/dist/{tooltip-BggqPDcW.js → tooltip-DbKTPe_i.js} +108 -109
  206. package/dist/tooltip.js +1 -1
  207. package/dist/{top-navigation-COQZsNqW.js → top-navigation-e-tWMGNr.js} +255 -256
  208. package/dist/top-navigation.js +1 -1
  209. package/dist/{tour-C11DmYTC.js → tour-BTdt716T.js} +180 -180
  210. package/dist/tour.js +1 -1
  211. package/dist/{transfer-JA9TWjAw.js → transfer-CqZOTLMP.js} +6 -6
  212. package/dist/transfer.js +1 -1
  213. package/dist/types/accordion/accordion.d.ts.map +1 -1
  214. package/dist/types/app-shell/app-shell.d.ts.map +1 -1
  215. package/dist/types/button/button-link.d.ts +1 -1
  216. package/dist/types/button/button-link.d.ts.map +1 -1
  217. package/dist/types/button/button-root.d.ts +5 -3
  218. package/dist/types/button/button-root.d.ts.map +1 -1
  219. package/dist/types/button/button.constants.d.ts +2 -1
  220. package/dist/types/button/button.constants.d.ts.map +1 -1
  221. package/dist/types/button/button.d.ts +1 -1
  222. package/dist/types/button/button.d.ts.map +1 -1
  223. package/dist/types/button/button.types.d.ts +9 -2
  224. package/dist/types/button/button.types.d.ts.map +1 -1
  225. package/dist/types/button/index.d.ts +1 -1
  226. package/dist/types/button/index.d.ts.map +1 -1
  227. package/dist/types/button/toggle-button.d.ts +1 -1
  228. package/dist/types/button/toggle-button.d.ts.map +1 -1
  229. package/dist/types/calendar/calendar.d.ts +1 -1
  230. package/dist/types/calendar/calendar.d.ts.map +1 -1
  231. package/dist/types/calendar/calendar.types.d.ts +9 -0
  232. package/dist/types/calendar/calendar.types.d.ts.map +1 -1
  233. package/dist/types/calendar/index.d.ts +1 -1
  234. package/dist/types/calendar/index.d.ts.map +1 -1
  235. package/dist/types/chart/chart.d.ts.map +1 -1
  236. package/dist/types/collapsible/collapsible-parts.d.ts.map +1 -1
  237. package/dist/types/currency-field/currency-field.d.ts +1 -1
  238. package/dist/types/currency-field/currency-field.d.ts.map +1 -1
  239. package/dist/types/currency-field/currency-field.types.d.ts +14 -0
  240. package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
  241. package/dist/types/currency-field/index.d.ts +1 -1
  242. package/dist/types/currency-field/index.d.ts.map +1 -1
  243. package/dist/types/date-field/date-field.d.ts +1 -1
  244. package/dist/types/date-field/date-field.d.ts.map +1 -1
  245. package/dist/types/date-field/date-field.types.d.ts +7 -0
  246. package/dist/types/date-field/date-field.types.d.ts.map +1 -1
  247. package/dist/types/date-picker/date-picker.d.ts +5 -1
  248. package/dist/types/date-picker/date-picker.d.ts.map +1 -1
  249. package/dist/types/date-picker/date-picker.types.d.ts +20 -2
  250. package/dist/types/date-picker/date-picker.types.d.ts.map +1 -1
  251. package/dist/types/date-picker/index.d.ts +1 -1
  252. package/dist/types/date-picker/index.d.ts.map +1 -1
  253. package/dist/types/dialog/dialog-demo.d.ts +8 -0
  254. package/dist/types/dialog/dialog-demo.d.ts.map +1 -1
  255. package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
  256. package/dist/types/index.d.ts +1 -0
  257. package/dist/types/index.d.ts.map +1 -1
  258. package/dist/types/list/index.d.ts +1 -1
  259. package/dist/types/list/index.d.ts.map +1 -1
  260. package/dist/types/list/list-parts.d.ts +1 -1
  261. package/dist/types/list/list-parts.d.ts.map +1 -1
  262. package/dist/types/list/list.types.d.ts +12 -0
  263. package/dist/types/list/list.types.d.ts.map +1 -1
  264. package/dist/types/page/page.d.ts.map +1 -1
  265. package/dist/types/press-selection/index.d.ts +3 -0
  266. package/dist/types/press-selection/index.d.ts.map +1 -0
  267. package/dist/types/press-selection/press-selection.d.ts +23 -0
  268. package/dist/types/press-selection/press-selection.d.ts.map +1 -0
  269. package/dist/types/segmented-control/index.d.ts +1 -1
  270. package/dist/types/segmented-control/index.d.ts.map +1 -1
  271. package/dist/types/segmented-control/segmented-control-defaults.d.ts.map +1 -1
  272. package/dist/types/segmented-control/segmented-control.d.ts +1 -1
  273. package/dist/types/segmented-control/segmented-control.d.ts.map +1 -1
  274. package/dist/types/segmented-control/segmented-control.types.d.ts +10 -0
  275. package/dist/types/segmented-control/segmented-control.types.d.ts.map +1 -1
  276. package/dist/types/select/select-items.d.ts.map +1 -1
  277. package/dist/types/select/select-parts.d.ts.map +1 -1
  278. package/dist/types/select/select.d.ts.map +1 -1
  279. package/dist/types/table/index.d.ts +2 -2
  280. package/dist/types/table/index.d.ts.map +1 -1
  281. package/dist/types/table/table-defaults.d.ts.map +1 -1
  282. package/dist/types/table/table-parts.d.ts +8 -2
  283. package/dist/types/table/table-parts.d.ts.map +1 -1
  284. package/dist/types/table/table.d.ts +1 -1
  285. package/dist/types/table/table.d.ts.map +1 -1
  286. package/dist/types/table/table.types.d.ts +43 -1
  287. package/dist/types/table/table.types.d.ts.map +1 -1
  288. package/dist/types/tabs/tabs-parts.d.ts.map +1 -1
  289. package/dist/types/tabs/tabs.d.ts +1 -1
  290. package/dist/types/tabs/tabs.d.ts.map +1 -1
  291. package/dist/types/tabs/tabs.types.d.ts +18 -0
  292. package/dist/types/tabs/tabs.types.d.ts.map +1 -1
  293. package/dist/types/toggle/toggle.types.d.ts +1 -1
  294. package/dist/types/toggle/toggle.types.d.ts.map +1 -1
  295. package/dist/types/toggle-group/toggle-group.d.ts.map +1 -1
  296. package/dist/types/toggle-group/toggle-group.types.d.ts +6 -1
  297. package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
  298. package/dist/{upload-Bq_UiyMr.js → upload-DjnlVR8y.js} +2 -2
  299. package/dist/upload.js +1 -1
  300. package/dist/{wizard-B4GrlEqh.js → wizard-BxA08vXt.js} +1 -1
  301. package/dist/wizard.js +1 -1
  302. package/package.json +12 -7
  303. package/dist/button-DakQ-7Tm.js +0 -97
  304. package/dist/calendar-B3mio8iQ.js +0 -387
  305. package/dist/cascader-CARCYdHh.js +0 -1097
  306. package/dist/currency-field-B7OZ0hk7.js +0 -436
  307. package/dist/date-field-D_kLLTfL.js +0 -279
  308. package/dist/date-picker-DQ5SIhdA.js +0 -264
  309. package/dist/date-range-picker-lpB08hK_.js +0 -471
  310. package/dist/datetime-picker-0F0kDW-8.js +0 -629
  311. package/dist/datetime-range-picker-ClnEleth.js +0 -994
  312. package/dist/drawer-Dtospdqk.js +0 -758
  313. package/dist/entity-picker-Dm-y0RNE.js +0 -1111
  314. package/dist/import-export-center-CkZ_Ar9w.js +0 -813
  315. package/dist/menu-parts-BQej6eU9.js +0 -787
  316. package/dist/popover-DE22lSpV.js +0 -476
  317. package/dist/react-dom-DzrKNxo6.js +0 -273
  318. package/dist/tabs-DQ36APY-.js +0 -343
  319. package/dist/toggle-group-DQBlI1TV.js +0 -140
@@ -1,273 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var e = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), t = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
3
- if (typeof require < "u") return require.apply(this, arguments);
4
- 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.");
5
- }), n = /* @__PURE__ */ e(((e) => {
6
- var n = t("react");
7
- function r(e) {
8
- var t = "https://react.dev/errors/" + e;
9
- if (1 < arguments.length) {
10
- t += "?args[]=" + encodeURIComponent(arguments[1]);
11
- for (var n = 2; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]);
12
- }
13
- return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
14
- }
15
- function i() {}
16
- var a = {
17
- d: {
18
- f: i,
19
- r: function() {
20
- throw Error(r(522));
21
- },
22
- D: i,
23
- C: i,
24
- L: i,
25
- m: i,
26
- X: i,
27
- S: i,
28
- M: i
29
- },
30
- p: 0,
31
- findDOMNode: null
32
- }, o = Symbol.for("react.portal");
33
- function s(e, t, n) {
34
- var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
35
- return {
36
- $$typeof: o,
37
- key: r == null ? null : "" + r,
38
- children: e,
39
- containerInfo: t,
40
- implementation: n
41
- };
42
- }
43
- var c = n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
44
- function l(e, t) {
45
- if (e === "font") return "";
46
- if (typeof t == "string") return t === "use-credentials" ? t : "";
47
- }
48
- e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = a, e.createPortal = function(e, t) {
49
- var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
50
- if (!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11) throw Error(r(299));
51
- return s(e, t, null, n);
52
- }, e.flushSync = function(e) {
53
- var t = c.T, n = a.p;
54
- try {
55
- if (c.T = null, a.p = 2, e) return e();
56
- } finally {
57
- c.T = t, a.p = n, a.d.f();
58
- }
59
- }, e.preconnect = function(e, t) {
60
- typeof e == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, a.d.C(e, t));
61
- }, e.prefetchDNS = function(e) {
62
- typeof e == "string" && a.d.D(e);
63
- }, e.preinit = function(e, t) {
64
- if (typeof e == "string" && t && typeof t.as == "string") {
65
- var n = t.as, r = l(n, t.crossOrigin), i = typeof t.integrity == "string" ? t.integrity : void 0, o = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0;
66
- n === "style" ? a.d.S(e, typeof t.precedence == "string" ? t.precedence : void 0, {
67
- crossOrigin: r,
68
- integrity: i,
69
- fetchPriority: o
70
- }) : n === "script" && a.d.X(e, {
71
- crossOrigin: r,
72
- integrity: i,
73
- fetchPriority: o,
74
- nonce: typeof t.nonce == "string" ? t.nonce : void 0
75
- });
76
- }
77
- }, e.preinitModule = function(e, t) {
78
- if (typeof e == "string") {
79
- if (typeof t == "object" && t) {
80
- if (t.as == null || t.as === "script") {
81
- var n = l(t.as, t.crossOrigin);
82
- a.d.M(e, {
83
- crossOrigin: n,
84
- integrity: typeof t.integrity == "string" ? t.integrity : void 0,
85
- nonce: typeof t.nonce == "string" ? t.nonce : void 0
86
- });
87
- }
88
- } else t ?? a.d.M(e);
89
- }
90
- }, e.preload = function(e, t) {
91
- if (typeof e == "string" && typeof t == "object" && t && typeof t.as == "string") {
92
- var n = t.as, r = l(n, t.crossOrigin);
93
- a.d.L(e, n, {
94
- crossOrigin: r,
95
- integrity: typeof t.integrity == "string" ? t.integrity : void 0,
96
- nonce: typeof t.nonce == "string" ? t.nonce : void 0,
97
- type: typeof t.type == "string" ? t.type : void 0,
98
- fetchPriority: typeof t.fetchPriority == "string" ? t.fetchPriority : void 0,
99
- referrerPolicy: typeof t.referrerPolicy == "string" ? t.referrerPolicy : void 0,
100
- imageSrcSet: typeof t.imageSrcSet == "string" ? t.imageSrcSet : void 0,
101
- imageSizes: typeof t.imageSizes == "string" ? t.imageSizes : void 0,
102
- media: typeof t.media == "string" ? t.media : void 0
103
- });
104
- }
105
- }, e.preloadModule = function(e, t) {
106
- if (typeof e == "string") {
107
- if (t) {
108
- var n = l(t.as, t.crossOrigin);
109
- a.d.m(e, {
110
- as: typeof t.as == "string" && t.as !== "script" ? t.as : void 0,
111
- crossOrigin: n,
112
- integrity: typeof t.integrity == "string" ? t.integrity : void 0
113
- });
114
- } else a.d.m(e);
115
- }
116
- }, e.requestFormReset = function(e) {
117
- a.d.r(e);
118
- }, e.unstable_batchedUpdates = function(e, t) {
119
- return e(t);
120
- }, e.useFormState = function(e, t, n) {
121
- return c.H.useFormState(e, t, n);
122
- }, e.useFormStatus = function() {
123
- return c.H.useHostTransitionStatus();
124
- }, e.version = "19.2.8";
125
- })), r = /* @__PURE__ */ e(((e) => {
126
- process.env.NODE_ENV !== "production" && (function() {
127
- function n() {}
128
- function r(e) {
129
- return "" + e;
130
- }
131
- function i(e, t, n) {
132
- var i = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
133
- try {
134
- r(i);
135
- var a = !1;
136
- } catch {
137
- a = !0;
138
- }
139
- return a && (console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object"), r(i)), {
140
- $$typeof: d,
141
- key: i == null ? null : "" + i,
142
- children: e,
143
- containerInfo: t,
144
- implementation: n
145
- };
146
- }
147
- function a(e, t) {
148
- if (e === "font") return "";
149
- if (typeof t == "string") return t === "use-credentials" ? t : "";
150
- }
151
- function o(e) {
152
- return e === null ? "`null`" : e === void 0 ? "`undefined`" : e === "" ? "an empty string" : "something with type \"" + typeof e + "\"";
153
- }
154
- function s(e) {
155
- return e === null ? "`null`" : e === void 0 ? "`undefined`" : e === "" ? "an empty string" : typeof e == "string" ? JSON.stringify(e) : typeof e == "number" ? "`" + e + "`" : "something with type \"" + typeof e + "\"";
156
- }
157
- function c() {
158
- var e = f.H;
159
- return e === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), e;
160
- }
161
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
162
- var l = t("react"), u = {
163
- d: {
164
- f: n,
165
- r: function() {
166
- throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.");
167
- },
168
- D: n,
169
- C: n,
170
- L: n,
171
- m: n,
172
- X: n,
173
- S: n,
174
- M: n
175
- },
176
- p: 0,
177
- findDOMNode: null
178
- }, d = Symbol.for("react.portal"), f = l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
179
- typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"), e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = u, e.createPortal = function(e, t) {
180
- var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
181
- if (!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11) throw Error("Target container is not a DOM element.");
182
- return i(e, t, null, n);
183
- }, e.flushSync = function(e) {
184
- var t = f.T, n = u.p;
185
- try {
186
- if (f.T = null, u.p = 2, e) return e();
187
- } finally {
188
- f.T = t, u.p = n, u.d.f() && console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.");
189
- }
190
- }, e.preconnect = function(e, t) {
191
- typeof e == "string" && e ? t != null && typeof t != "object" ? console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.", s(t)) : t != null && typeof t.crossOrigin != "string" && console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.", o(t.crossOrigin)) : console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", o(e)), typeof e == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, u.d.C(e, t));
192
- }, e.prefetchDNS = function(e) {
193
- if (typeof e != "string" || !e) console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", o(e));
194
- else if (1 < arguments.length) {
195
- var t = arguments[1];
196
- typeof t == "object" && t.hasOwnProperty("crossOrigin") ? console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.", s(t)) : console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.", s(t));
197
- }
198
- typeof e == "string" && u.d.D(e);
199
- }, e.preinit = function(e, t) {
200
- if (typeof e == "string" && e ? typeof t != "object" || !t ? console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.", s(t)) : t.as !== "style" && t.as !== "script" && console.error("ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are \"style\" and \"script\".", s(t.as)) : console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", o(e)), typeof e == "string" && t && typeof t.as == "string") {
201
- var n = t.as, r = a(n, t.crossOrigin), i = typeof t.integrity == "string" ? t.integrity : void 0, c = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0;
202
- n === "style" ? u.d.S(e, typeof t.precedence == "string" ? t.precedence : void 0, {
203
- crossOrigin: r,
204
- integrity: i,
205
- fetchPriority: c
206
- }) : n === "script" && u.d.X(e, {
207
- crossOrigin: r,
208
- integrity: i,
209
- fetchPriority: c,
210
- nonce: typeof t.nonce == "string" ? t.nonce : void 0
211
- });
212
- }
213
- }, e.preinitModule = function(e, t) {
214
- var n = "";
215
- if (typeof e == "string" && e || (n += " The `href` argument encountered was " + o(e) + "."), t !== void 0 && typeof t != "object" ? n += " The `options` argument encountered was " + o(t) + "." : t && "as" in t && t.as !== "script" && (n += " The `as` option encountered was " + s(t.as) + "."), n) console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s", n);
216
- else switch (n = t && typeof t.as == "string" ? t.as : "script", n) {
217
- case "script": break;
218
- default: n = s(n), console.error("ReactDOM.preinitModule(): Currently the only supported \"as\" type for this function is \"script\" but received \"%s\" instead. This warning was generated for `href` \"%s\". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)", n, e);
219
- }
220
- typeof e == "string" && (typeof t == "object" && t ? (t.as == null || t.as === "script") && (n = a(t.as, t.crossOrigin), u.d.M(e, {
221
- crossOrigin: n,
222
- integrity: typeof t.integrity == "string" ? t.integrity : void 0,
223
- nonce: typeof t.nonce == "string" ? t.nonce : void 0
224
- })) : t ?? u.d.M(e));
225
- }, e.preload = function(e, t) {
226
- var n = "";
227
- if (typeof e == "string" && e || (n += " The `href` argument encountered was " + o(e) + "."), typeof t != "object" || !t ? n += " The `options` argument encountered was " + o(t) + "." : typeof t.as == "string" && t.as || (n += " The `as` option encountered was " + o(t.as) + "."), n && console.error("ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel=\"preload\" as=\"...\" />` tag.%s", n), typeof e == "string" && typeof t == "object" && t && typeof t.as == "string") {
228
- n = t.as;
229
- var r = a(n, t.crossOrigin);
230
- u.d.L(e, n, {
231
- crossOrigin: r,
232
- integrity: typeof t.integrity == "string" ? t.integrity : void 0,
233
- nonce: typeof t.nonce == "string" ? t.nonce : void 0,
234
- type: typeof t.type == "string" ? t.type : void 0,
235
- fetchPriority: typeof t.fetchPriority == "string" ? t.fetchPriority : void 0,
236
- referrerPolicy: typeof t.referrerPolicy == "string" ? t.referrerPolicy : void 0,
237
- imageSrcSet: typeof t.imageSrcSet == "string" ? t.imageSrcSet : void 0,
238
- imageSizes: typeof t.imageSizes == "string" ? t.imageSizes : void 0,
239
- media: typeof t.media == "string" ? t.media : void 0
240
- });
241
- }
242
- }, e.preloadModule = function(e, t) {
243
- var n = "";
244
- typeof e == "string" && e || (n += " The `href` argument encountered was " + o(e) + "."), t !== void 0 && typeof t != "object" ? n += " The `options` argument encountered was " + o(t) + "." : t && "as" in t && typeof t.as != "string" && (n += " The `as` option encountered was " + o(t.as) + "."), n && console.error("ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel=\"modulepreload\" as=\"...\" />` tag.%s", n), typeof e == "string" && (t ? (n = a(t.as, t.crossOrigin), u.d.m(e, {
245
- as: typeof t.as == "string" && t.as !== "script" ? t.as : void 0,
246
- crossOrigin: n,
247
- integrity: typeof t.integrity == "string" ? t.integrity : void 0
248
- })) : u.d.m(e));
249
- }, e.requestFormReset = function(e) {
250
- u.d.r(e);
251
- }, e.unstable_batchedUpdates = function(e, t) {
252
- return e(t);
253
- }, e.useFormState = function(e, t, n) {
254
- return c().useFormState(e, t, n);
255
- }, e.useFormStatus = function() {
256
- return c().useHostTransitionStatus();
257
- }, e.version = "19.2.8", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
258
- })();
259
- })), i = /* @__PURE__ */ e(((e, t) => {
260
- function i() {
261
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE == "function") {
262
- if (process.env.NODE_ENV !== "production") throw Error("^_^");
263
- try {
264
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i);
265
- } catch (e) {
266
- console.error(e);
267
- }
268
- }
269
- }
270
- process.env.NODE_ENV === "production" ? (i(), t.exports = n()) : t.exports = r();
271
- }));
272
- //#endregion
273
- export { i as t };
@@ -1,343 +0,0 @@
1
- import { n as e, t } from "./icon-T9Yt4tnm.js";
2
- import { createRemovalFocus as n, createRovingTabindex as r } from "@slotted/core/focus";
3
- import { createControllable as i } from "@slotted/core/state";
4
- import { createContext as a, useCallback as o, useContext as s, useEffect as c, useId as l, useRef as u, useState as d } from "react";
5
- import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
6
- import { NOT_OVERFLOWING as h, createScrollAffordance as g } from "@slotted/core/overflow";
7
- //#region src/tabs/tabs-defaults.tsx
8
- var _ = a({
9
- activation: "automatic",
10
- fit: "auto",
11
- loop: !0,
12
- mount: "active",
13
- orientation: "horizontal",
14
- size: "md",
15
- track: "line",
16
- variant: "line"
17
- });
18
- function v() {
19
- return s(_);
20
- }
21
- function y({ children: e, ...t }) {
22
- let n = v();
23
- return /* @__PURE__ */ p(_.Provider, {
24
- value: {
25
- activation: t.activation ?? n.activation,
26
- fit: t.fit ?? n.fit,
27
- loop: t.loop ?? n.loop,
28
- mount: t.mount ?? n.mount,
29
- orientation: t.orientation ?? n.orientation,
30
- size: t.size ?? n.size,
31
- track: t.track ?? n.track,
32
- variant: t.variant ?? n.variant
33
- },
34
- children: e
35
- });
36
- }
37
- //#endregion
38
- //#region src/tabs/tabs.tsx
39
- var b = "[data-part=\"tab\"]", x = a(void 0);
40
- function S() {
41
- let e = s(x);
42
- if (e === void 0) throw Error("Tab, TabPanel and TabActions must be rendered inside Tabs.");
43
- return e;
44
- }
45
- function C(e) {
46
- return e.replace(/[^\w-]/g, (e) => `-${e.charCodeAt(0).toString(16)}-`);
47
- }
48
- function w(e, t) {
49
- let n = !1;
50
- return {
51
- reason: e,
52
- source: t,
53
- get cancelled() {
54
- return n;
55
- },
56
- cancel() {
57
- n = !0;
58
- }
59
- };
60
- }
61
- function T({ activation: a, children: o, className: s, defaultValue: _, disabled: y, fit: S, loop: T, mount: E, onTabDismiss: D, onValueChange: O, orientation: k, ref: A, render: j, size: M, style: N, track: ee, value: P, variant: te, ...ne }) {
62
- let F = v(), I = l(), [re, ie] = d(_), L = P ?? re, [R, ae] = d(null), [z, B] = d(h), [oe, se] = d("none"), V = a ?? F.activation, ce = S ?? F.fit, H = T ?? F.loop, le = E ?? F.mount, U = k ?? F.orientation, ue = M ?? F.size, de = ee ?? F.track, fe = te ?? F.variant, W = y === !0, G = u(new Set(L === void 0 ? [] : [L]));
63
- L !== void 0 && G.current.add(L);
64
- let K = u(null), q = u(null);
65
- function J() {
66
- return R === null ? [] : [...R.querySelectorAll(b)];
67
- }
68
- function Y(e) {
69
- return e === void 0 ? -1 : J().findIndex((t) => t.getAttribute("data-value") === e);
70
- }
71
- function X(e, t, n) {
72
- if (e === L) return;
73
- let r = !1, a = i({
74
- controlled: P,
75
- initial: L,
76
- onRequest: (e) => {
77
- r = e.cancelled, e.value !== void 0 && O?.(e.value, e);
78
- }
79
- }).request(e, t, n);
80
- if (r) return;
81
- let o = Y(L), s = Y(e);
82
- o !== -1 && s !== -1 && se(s > o ? "forward" : "backward"), G.current.add(e), a && ie(e);
83
- }
84
- function pe(e) {
85
- let t = J().map((e) => e.getAttribute("data-value")).filter((e) => e !== null), n = t.indexOf(e);
86
- if (n !== -1) return t[n + 1] ?? t[n - 1];
87
- }
88
- function me(e, t, n) {
89
- let r = w(t, n);
90
- if (D?.(e, r), r.cancelled || e !== L) return;
91
- let i = pe(e);
92
- i !== void 0 && X(i, "remove", n);
93
- }
94
- let Z = u({
95
- activation: V,
96
- select: X,
97
- value: L
98
- });
99
- c(() => {
100
- Z.current = {
101
- activation: V,
102
- select: X,
103
- value: L
104
- };
105
- }), c(() => {
106
- if (R === null) return;
107
- let e = r(R, {
108
- crossAxis: !1,
109
- itemSelector: b,
110
- loop: H,
111
- onMove: (e, t) => {
112
- if (q.current?.reveal(t), Z.current.activation !== "automatic") return;
113
- let n = t.getAttribute("data-value");
114
- n !== null && Z.current.select(n, "keyboard", void 0);
115
- },
116
- orientation: () => U
117
- });
118
- K.current = e;
119
- let t = n(R, { itemSelector: b }), i = new MutationObserver(() => {
120
- e.refresh(), q.current?.refresh();
121
- });
122
- return i.observe(R, {
123
- childList: !0,
124
- subtree: !0
125
- }), () => {
126
- i.disconnect(), t.destroy(), e.destroy(), K.current = null;
127
- };
128
- }, [
129
- R,
130
- H,
131
- U
132
- ]), c(() => {
133
- if (R === null || U === "vertical") {
134
- B(h);
135
- return;
136
- }
137
- let e = g(R, { onChange: B });
138
- return q.current = e, B(e.state()), () => {
139
- e.destroy(), q.current = null;
140
- };
141
- }, [R, U]), c(() => {
142
- let e = Y(L);
143
- if (e === -1) return;
144
- K.current?.setActive(e);
145
- let t = J()[e];
146
- t !== void 0 && q.current?.reveal(t);
147
- }, [L, R]);
148
- let Q = z.overflowing && U === "horizontal";
149
- c(() => {
150
- if (!Q) return;
151
- let e = J()[Y(Z.current.value)];
152
- e !== void 0 && q.current?.reveal(e);
153
- }, [Q]);
154
- let he = {
155
- activation: V,
156
- attachList: ae,
157
- disabled: W,
158
- dismiss: me,
159
- identify: (e) => ({
160
- panelId: `${I}panel-${C(e)}`,
161
- tabId: `${I}tab-${C(e)}`
162
- }),
163
- mount: le,
164
- orientation: U,
165
- seen: (e) => G.current.has(e),
166
- select: X,
167
- value: L
168
- }, $ = {
169
- ...ne,
170
- children: /* @__PURE__ */ m(f, { children: [o, Q ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("button", {
171
- "aria-hidden": "true",
172
- "data-direction": "start",
173
- "data-part": "scroll",
174
- disabled: z.atStart,
175
- onClick: () => q.current?.page(-1),
176
- tabIndex: -1,
177
- type: "button",
178
- children: /* @__PURE__ */ p(t, {
179
- directional: !0,
180
- children: /* @__PURE__ */ p(e, { name: "chevron-right" })
181
- })
182
- }), /* @__PURE__ */ p("button", {
183
- "aria-hidden": "true",
184
- "data-direction": "end",
185
- "data-part": "scroll",
186
- disabled: z.atEnd,
187
- onClick: () => q.current?.page(1),
188
- tabIndex: -1,
189
- type: "button",
190
- children: /* @__PURE__ */ p(t, {
191
- directional: !0,
192
- children: /* @__PURE__ */ p(e, { name: "chevron-right" })
193
- })
194
- })] }) : null] }),
195
- className: s,
196
- "data-activation-direction": oe,
197
- ...W ? { "data-disabled": "" } : {},
198
- "data-fit": ce,
199
- "data-orientation": U,
200
- ...z.overflowing ? { "data-overflowing": "" } : {},
201
- "data-part": "root",
202
- "data-size": ue,
203
- "data-track": de,
204
- "data-ui": "tabs",
205
- "data-variant": fe,
206
- style: N
207
- };
208
- return /* @__PURE__ */ p(x.Provider, {
209
- value: he,
210
- children: j === void 0 ? /* @__PURE__ */ p("div", {
211
- ...$,
212
- ref: A
213
- }) : j($)
214
- });
215
- }
216
- //#endregion
217
- //#region src/tabs/tabs-parts.tsx
218
- function E(e) {
219
- return e.detail === 0 ? "keyboard" : "pointer";
220
- }
221
- function D({ children: e, ref: t, render: n, ...r }) {
222
- let i = S(), a = o((e) => {
223
- if (i.attachList(e), typeof t == "function") return t(e);
224
- t && (t.current = e);
225
- }, [t, i.attachList]), s = {
226
- tabIndex: -1,
227
- ...r,
228
- ...i.orientation === "vertical" ? { "aria-orientation": "vertical" } : {},
229
- children: e,
230
- "data-part": "list",
231
- role: "tablist"
232
- };
233
- return n === void 0 ? /* @__PURE__ */ p("div", {
234
- ...s,
235
- ref: a
236
- }) : n({
237
- ...s,
238
- ref: a
239
- });
240
- }
241
- function O({ children: n, className: r, controls: i, disabled: a, dismissLabel: o, dismissible: s = !1, end: c, href: l, onClick: u, onKeyDown: d, ref: h, render: g, start: _, style: v, value: y, ...b }) {
242
- let x = S(), { panelId: C, tabId: w } = x.identify(y), T = i ?? C, D = x.value === y, O = x.disabled === !0 || a === !0;
243
- function k(e) {
244
- u?.(e), !e.defaultPrevented && (O || l !== void 0 && (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) || (l !== void 0 && e.preventDefault(), x.select(y, E(e), e)));
245
- }
246
- function A(e) {
247
- d?.(e), !(e.defaultPrevented || e.repeat) && s && !O && e.key === "Delete" && (e.preventDefault(), x.dismiss(y, "keyboard", e));
248
- }
249
- let j = /* @__PURE__ */ m(f, { children: [
250
- _ === void 0 ? null : /* @__PURE__ */ p("span", {
251
- "data-part": "start",
252
- children: _
253
- }),
254
- /* @__PURE__ */ p("span", {
255
- "data-part": "label",
256
- children: n
257
- }),
258
- c === void 0 ? null : /* @__PURE__ */ p("span", {
259
- "data-part": "end",
260
- children: c
261
- })
262
- ] }), M = l === void 0 ? /* @__PURE__ */ p("button", {
263
- ...b,
264
- "aria-controls": T,
265
- "aria-keyshortcuts": s ? "Delete" : void 0,
266
- "aria-selected": D,
267
- "data-part": "tab",
268
- "data-value": y,
269
- disabled: O,
270
- id: w,
271
- onClick: k,
272
- onKeyDown: A,
273
- ref: h,
274
- role: "tab",
275
- tabIndex: D ? 0 : -1,
276
- type: "button",
277
- children: j
278
- }) : /* @__PURE__ */ p("a", {
279
- ...b,
280
- "aria-controls": T,
281
- "aria-disabled": O === !0 || void 0,
282
- "aria-keyshortcuts": s ? "Delete" : void 0,
283
- "aria-selected": D,
284
- "data-part": "tab",
285
- "data-value": y,
286
- href: l,
287
- id: w,
288
- onClick: k,
289
- onKeyDown: A,
290
- ref: h,
291
- role: "tab",
292
- tabIndex: D ? 0 : -1,
293
- children: j
294
- }), N = {
295
- children: /* @__PURE__ */ m(f, { children: [M, s ? /* @__PURE__ */ p("button", {
296
- "aria-label": o,
297
- "data-part": "dismiss",
298
- disabled: O,
299
- onClick: (e) => {
300
- e.stopPropagation(), x.dismiss(y, "pointer", e);
301
- },
302
- tabIndex: -1,
303
- type: "button",
304
- children: /* @__PURE__ */ p(t, { children: /* @__PURE__ */ p(e, { name: "x" }) })
305
- }) : null] }),
306
- className: r,
307
- "data-part": "item",
308
- ...D ? { "data-selected": "" } : {},
309
- role: "presentation",
310
- style: v
311
- };
312
- return g === void 0 ? /* @__PURE__ */ p("div", { ...N }) : g(N);
313
- }
314
- function k({ children: e, ref: t, render: n, value: r, ...i }) {
315
- let a = S(), { panelId: o, tabId: s } = a.identify(r), c = a.value === r, l = c || a.mount === "eager" || a.mount === "lazy" && a.seen(r), u = {
316
- ...i,
317
- "aria-labelledby": s,
318
- children: l ? e : null,
319
- "data-part": "panel",
320
- hidden: !c,
321
- id: o,
322
- role: "tabpanel",
323
- tabIndex: 0
324
- };
325
- return n === void 0 ? /* @__PURE__ */ p("div", {
326
- ...u,
327
- ref: t
328
- }) : n(u);
329
- }
330
- function A({ children: e, ref: t, render: n, ...r }) {
331
- S();
332
- let i = {
333
- ...r,
334
- children: e,
335
- "data-part": "actions"
336
- };
337
- return n === void 0 ? /* @__PURE__ */ p("div", {
338
- ...i,
339
- ref: t
340
- }) : n(i);
341
- }
342
- //#endregion
343
- export { T as a, v as c, k as i, A as n, S as o, D as r, y as s, O as t };