@slotted/react 0.1.0-beta.1 → 0.1.0-beta.3

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 (307) hide show
  1. package/README.md +4 -0
  2. package/dist/{action-bar-C7cGnEyJ.js → action-bar-OACchRZw.js} +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/{action-sheet-D8Glxl7l.js → action-sheet-C60BWUW8.js} +1 -1
  5. package/dist/action-sheet.js +1 -1
  6. package/dist/{app-shell-CXwma4XA.js → app-shell-CmYvnu_7.js} +310 -310
  7. package/dist/app-shell.js +1 -1
  8. package/dist/button-Db9f3Bxn.js +99 -0
  9. package/dist/button.js +2 -2
  10. package/dist/cascader-D1AhTyBL.js +1097 -0
  11. package/dist/cascader.js +1 -1
  12. package/dist/chart-O0ZhkzJe.js +966 -0
  13. package/dist/chart.js +1 -1
  14. package/dist/{checkbox-CwUOc-3u.js → checkbox-DfxFHZaU.js} +3 -3
  15. package/dist/{checkbox-group-BYTjgAcX.js → checkbox-group-9sDgrV5Z.js} +2 -2
  16. package/dist/checkbox-group.js +1 -1
  17. package/dist/checkbox.js +1 -1
  18. package/dist/{color-picker-BlPR4g4H.js → color-picker-CwbWzCKg.js} +4 -4
  19. package/dist/color-picker.js +1 -1
  20. package/dist/{column-manager-CNZ7Xk5_.js → column-manager-CTtizVhm.js} +6 -6
  21. package/dist/column-manager.js +1 -1
  22. package/dist/{combobox-C46GRqAA.js → combobox-BVMI9lg8.js} +296 -292
  23. package/dist/combobox.js +1 -1
  24. package/dist/{command-palette-BqRyNR9Y.js → command-palette-DFLbSOiv.js} +1 -1
  25. package/dist/command-palette.js +1 -1
  26. package/dist/{context-menu-DMiHdggw.js → context-menu-BuST6W94.js} +1 -1
  27. package/dist/context-menu.js +1 -1
  28. package/dist/currency-field-DD9A5U3D.js +455 -0
  29. package/dist/currency-field.js +1 -1
  30. package/dist/dashboard-grid-CBMP_-JV.js +1043 -0
  31. package/dist/dashboard-grid.js +1 -1
  32. package/dist/{data-grid-BUgOJuGp.js → data-grid-BKaGMqIm.js} +19 -19
  33. package/dist/data-grid.js +1 -1
  34. package/dist/{data-list-2xfDpHVC.js → data-list-oICmxGkA.js} +5 -5
  35. package/dist/data-list.js +1 -1
  36. package/dist/{date-field-D_kLLTfL.js → date-field-CYcN6diW.js} +1 -1
  37. package/dist/date-field.js +1 -1
  38. package/dist/date-picker-4X-_2ltN.js +264 -0
  39. package/dist/date-picker.js +1 -1
  40. package/dist/date-range-picker-CNOAtHwU.js +471 -0
  41. package/dist/date-range-picker.js +1 -1
  42. package/dist/{datetime-field-T1gNdJ7t.js → datetime-field-B8TrmsDK.js} +1 -1
  43. package/dist/datetime-field.js +1 -1
  44. package/dist/datetime-picker-HDVlUhzy.js +629 -0
  45. package/dist/datetime-picker.js +1 -1
  46. package/dist/datetime-range-picker-IqOFJtdW.js +994 -0
  47. package/dist/datetime-range-picker.js +1 -1
  48. package/dist/{dialog-Dmy-m_pe.js → dialog-BHYDDj1S.js} +112 -113
  49. package/dist/dialog.js +1 -1
  50. package/dist/docs/AGENTS.snippet.md +10 -0
  51. package/dist/docs/app-shell.json +1 -1
  52. package/dist/docs/button-group.json +1 -0
  53. package/dist/docs/button-group.md +1 -1
  54. package/dist/docs/button.json +45 -11
  55. package/dist/docs/button.md +10 -6
  56. package/dist/docs/chart.json +7 -0
  57. package/dist/docs/chart.md +1 -0
  58. package/dist/docs/currency-field.json +32 -1
  59. package/dist/docs/currency-field.md +4 -1
  60. package/dist/docs/dialog.examples.md +26 -0
  61. package/dist/docs/dialog.json +14 -2
  62. package/dist/docs/dialog.md +1 -1
  63. package/dist/docs/event-calendar.json +7 -0
  64. package/dist/docs/event-calendar.md +1 -0
  65. package/dist/docs/guidelines/README.md +27 -0
  66. package/dist/docs/guidelines/async-feedback.md +108 -0
  67. package/dist/docs/guidelines/browsing.md +74 -0
  68. package/dist/docs/guidelines/builders.md +97 -0
  69. package/dist/docs/guidelines/composition.md +129 -0
  70. package/dist/docs/guidelines/conversations.md +59 -0
  71. package/dist/docs/guidelines/errors-and-conflicts.md +71 -0
  72. package/dist/docs/guidelines/forms.md +192 -0
  73. package/dist/docs/guidelines/index.md +121 -0
  74. package/dist/docs/guidelines/layout-alignment.md +95 -0
  75. package/dist/docs/guidelines/ledgers.md +45 -0
  76. package/dist/docs/guidelines/list-pages.md +165 -0
  77. package/dist/docs/guidelines/overviews.md +66 -0
  78. package/dist/docs/guidelines/own-elements.md +115 -0
  79. package/dist/docs/guidelines/reading-permissions.md +55 -0
  80. package/dist/docs/guidelines/record-pages.md +178 -0
  81. package/dist/docs/guidelines/reports.md +123 -0
  82. package/dist/docs/guidelines/shell-composition.md +94 -0
  83. package/dist/docs/guidelines/workspaces.md +46 -0
  84. package/dist/docs/index.md +12 -0
  85. package/dist/docs/list.json +26 -1
  86. package/dist/docs/list.md +4 -1
  87. package/dist/docs/popover.json +1 -1
  88. package/dist/docs/progress-indicator.json +1 -2
  89. package/dist/docs/progress-indicator.md +2 -2
  90. package/dist/docs/segmented-control.json +29 -1
  91. package/dist/docs/segmented-control.md +17 -1
  92. package/dist/docs/side-navigation.json +2 -2
  93. package/dist/docs/side-navigation.md +19 -4
  94. package/dist/docs/skills/build-own-element/SKILL.md +90 -0
  95. package/dist/docs/skills/compose-screen/SKILL.md +76 -0
  96. package/dist/docs/skills/index.md +9 -0
  97. package/dist/docs/skills/review-screen/SKILL.md +70 -0
  98. package/dist/docs/skills/theme-app/SKILL.md +79 -0
  99. package/dist/docs/skills/waiting-states/SKILL.md +139 -0
  100. package/dist/docs/split-button.json +1 -0
  101. package/dist/docs/split-button.md +1 -1
  102. package/dist/docs/stat-card.json +2 -0
  103. package/dist/docs/stat-card.md +1 -1
  104. package/dist/docs/table.examples.md +1 -1
  105. package/dist/docs/table.json +78 -2
  106. package/dist/docs/table.md +12 -1
  107. package/dist/docs/tabs.examples.md +1 -1
  108. package/dist/docs/tabs.json +2 -5
  109. package/dist/docs/tabs.md +1 -1
  110. package/dist/docs/toggle-group.json +14 -3
  111. package/dist/docs/toggle-group.md +3 -3
  112. package/dist/docs/toggle.json +12 -3
  113. package/dist/docs/toggle.md +3 -3
  114. package/dist/docs/tokens.md +448 -0
  115. package/dist/docs/top-navigation.examples.md +23 -5
  116. package/dist/docs/top-navigation.json +2 -2
  117. package/dist/docs/tour.json +1 -1
  118. package/dist/drawer-LXM44eso.js +757 -0
  119. package/dist/drawer.js +1 -1
  120. package/dist/entity-picker-CPDd73JR.js +1110 -0
  121. package/dist/entity-picker.js +1 -1
  122. package/dist/{event-calendar-BFdeGfC-.js → event-calendar-CnF3iIZD.js} +391 -390
  123. package/dist/event-calendar.js +1 -1
  124. package/dist/{field-BJh5HI7w.js → field-NJaCxl2h.js} +1 -1
  125. package/dist/{field-group-BDaspQPh.js → field-group-hAzVa2O9.js} +1 -1
  126. package/dist/field-group.js +1 -1
  127. package/dist/field.js +1 -1
  128. package/dist/{filter-bar-b2Q9BZHf.js → filter-bar-D_xDcAp2.js} +20 -20
  129. package/dist/filter-bar.js +1 -1
  130. package/dist/{hover-card-CSDbA6zd.js → hover-card-BJE5dtaQ.js} +1 -1
  131. package/dist/hover-card.js +1 -1
  132. package/dist/{icon-button-TnvMhK4o.js → icon-button-CCWkCDMs.js} +26 -24
  133. package/dist/import-export-center-DpY2DGBZ.js +813 -0
  134. package/dist/import-export-center.js +1 -1
  135. package/dist/index.js +85 -84
  136. package/dist/{list-C1Y8MWp2.js → list-WsQ6ZzCa.js} +16 -12
  137. package/dist/{list-item-DN_mcouU.js → list-item-DpCwZIrd.js} +1 -1
  138. package/dist/list-item.js +1 -1
  139. package/dist/list.js +1 -1
  140. package/dist/{listbox-4WvqR0JF.js → listbox-Dv856z9I.js} +1 -1
  141. package/dist/listbox.js +1 -1
  142. package/dist/{loading-overlay-B83XFctM.js → loading-overlay-COfnckse.js} +73 -73
  143. package/dist/loading-overlay.js +1 -1
  144. package/dist/{markdown-CpfDn1LF.js → markdown-CeG8mUbI.js} +2 -2
  145. package/dist/markdown.js +1 -1
  146. package/dist/menu-parts-W58pVNUt.js +786 -0
  147. package/dist/menu.js +1 -1
  148. package/dist/{menubar-CtGavUTO.js → menubar-b2CruimJ.js} +1 -1
  149. package/dist/menubar.js +1 -1
  150. package/dist/{multi-select-CfzsvAeI.js → multi-select-DQ5ds0fX.js} +432 -437
  151. package/dist/multi-select.js +1 -1
  152. package/dist/{notification-center-C4pEHJ3h.js → notification-center-Sz54IziY.js} +2 -2
  153. package/dist/notification-center.js +1 -1
  154. package/dist/{number-field-J_koud1r.js → number-field-BFIAmv-z.js} +1 -1
  155. package/dist/number-field.js +1 -1
  156. package/dist/{otp-input-Bf8JUiVR.js → otp-input-BNQhuKaT.js} +1 -1
  157. package/dist/otp-input.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-UTwKjheK.js → select-DOFqPy26.js} +334 -347
  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-CzBIw9ng.js → table-Cipi2c5X.js} +206 -173
  184. package/dist/table.js +2 -2
  185. package/dist/{tags-input-DLdHLWrH.js → tags-input-CcOkm0AW.js} +1 -1
  186. package/dist/tags-input.js +1 -1
  187. package/dist/{text-field-BktZbmzD.js → text-field-DLfIZ0fk.js} +1 -1
  188. package/dist/text-field.js +1 -1
  189. package/dist/{textarea-JAK2RJl0.js → textarea-CBJBJBi6.js} +1 -1
  190. package/dist/textarea.js +1 -1
  191. package/dist/{time-field-DCG_VtGO.js → time-field-DrhiCtUl.js} +1 -1
  192. package/dist/time-field.js +1 -1
  193. package/dist/{time-picker-DuT1tf5-.js → time-picker-CRQsMJbQ.js} +102 -102
  194. package/dist/time-picker.js +1 -1
  195. package/dist/{time-range-picker-HwBvrrXN.js → time-range-picker-DlZJsj1e.js} +202 -202
  196. package/dist/time-range-picker.js +1 -1
  197. package/dist/{toast-wI8BtPY5.js → toast-Bf3e0AgC.js} +157 -157
  198. package/dist/toast.js +1 -1
  199. package/dist/toggle-group-7iBR9Rn1.js +142 -0
  200. package/dist/toggle-group.js +1 -1
  201. package/dist/{toolbar-CDQTydDx.js → toolbar-DDZpEftQ.js} +1 -1
  202. package/dist/toolbar.js +1 -1
  203. package/dist/{tooltip-BggqPDcW.js → tooltip-DbKTPe_i.js} +108 -109
  204. package/dist/tooltip.js +1 -1
  205. package/dist/{top-navigation-COQZsNqW.js → top-navigation-e-tWMGNr.js} +255 -256
  206. package/dist/top-navigation.js +1 -1
  207. package/dist/{tour-C11DmYTC.js → tour-BTdt716T.js} +180 -180
  208. package/dist/tour.js +1 -1
  209. package/dist/{transfer-JA9TWjAw.js → transfer-CqZOTLMP.js} +6 -6
  210. package/dist/transfer.js +1 -1
  211. package/dist/types/app-shell/app-shell.d.ts.map +1 -1
  212. package/dist/types/button/button-link.d.ts +1 -1
  213. package/dist/types/button/button-link.d.ts.map +1 -1
  214. package/dist/types/button/button-root.d.ts +5 -3
  215. package/dist/types/button/button-root.d.ts.map +1 -1
  216. package/dist/types/button/button.constants.d.ts +2 -1
  217. package/dist/types/button/button.constants.d.ts.map +1 -1
  218. package/dist/types/button/button.d.ts +1 -1
  219. package/dist/types/button/button.d.ts.map +1 -1
  220. package/dist/types/button/button.types.d.ts +9 -2
  221. package/dist/types/button/button.types.d.ts.map +1 -1
  222. package/dist/types/button/index.d.ts +1 -1
  223. package/dist/types/button/index.d.ts.map +1 -1
  224. package/dist/types/button/toggle-button.d.ts +1 -1
  225. package/dist/types/button/toggle-button.d.ts.map +1 -1
  226. package/dist/types/chart/chart.d.ts.map +1 -1
  227. package/dist/types/combobox/combobox-collection.d.ts +1 -0
  228. package/dist/types/combobox/combobox-collection.d.ts.map +1 -1
  229. package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
  230. package/dist/types/combobox/combobox.d.ts.map +1 -1
  231. package/dist/types/currency-field/currency-field.d.ts +1 -1
  232. package/dist/types/currency-field/currency-field.d.ts.map +1 -1
  233. package/dist/types/currency-field/currency-field.types.d.ts +14 -0
  234. package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
  235. package/dist/types/currency-field/index.d.ts +1 -1
  236. package/dist/types/currency-field/index.d.ts.map +1 -1
  237. package/dist/types/dashboard-grid/dashboard-grid.d.ts.map +1 -1
  238. package/dist/types/dashboard-grid/dashboard-widget.d.ts +1 -1
  239. package/dist/types/dashboard-grid/dashboard-widget.d.ts.map +1 -1
  240. package/dist/types/dialog/dialog-demo.d.ts +8 -0
  241. package/dist/types/dialog/dialog-demo.d.ts.map +1 -1
  242. package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
  243. package/dist/types/event-calendar/event-calendar.d.ts +1 -1
  244. package/dist/types/event-calendar/event-calendar.d.ts.map +1 -1
  245. package/dist/types/event-calendar/event-calendar.types.d.ts +6 -0
  246. package/dist/types/event-calendar/event-calendar.types.d.ts.map +1 -1
  247. package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
  248. package/dist/types/index.d.ts +1 -0
  249. package/dist/types/index.d.ts.map +1 -1
  250. package/dist/types/list/index.d.ts +1 -1
  251. package/dist/types/list/index.d.ts.map +1 -1
  252. package/dist/types/list/list-parts.d.ts +1 -1
  253. package/dist/types/list/list-parts.d.ts.map +1 -1
  254. package/dist/types/list/list.types.d.ts +12 -0
  255. package/dist/types/list/list.types.d.ts.map +1 -1
  256. package/dist/types/menu/menu.types.d.ts +3 -1
  257. package/dist/types/menu/menu.types.d.ts.map +1 -1
  258. package/dist/types/multi-select/multi-select-collection.d.ts +0 -2
  259. package/dist/types/multi-select/multi-select-collection.d.ts.map +1 -1
  260. package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
  261. package/dist/types/multi-select/multi-select.d.ts.map +1 -1
  262. package/dist/types/press-selection/index.d.ts +3 -0
  263. package/dist/types/press-selection/index.d.ts.map +1 -0
  264. package/dist/types/press-selection/press-selection.d.ts +23 -0
  265. package/dist/types/press-selection/press-selection.d.ts.map +1 -0
  266. package/dist/types/segmented-control/index.d.ts +1 -1
  267. package/dist/types/segmented-control/index.d.ts.map +1 -1
  268. package/dist/types/segmented-control/segmented-control-defaults.d.ts.map +1 -1
  269. package/dist/types/segmented-control/segmented-control.d.ts +1 -1
  270. package/dist/types/segmented-control/segmented-control.d.ts.map +1 -1
  271. package/dist/types/segmented-control/segmented-control.types.d.ts +10 -0
  272. package/dist/types/segmented-control/segmented-control.types.d.ts.map +1 -1
  273. package/dist/types/select/select-collection.d.ts +0 -2
  274. package/dist/types/select/select-collection.d.ts.map +1 -1
  275. package/dist/types/select/select.d.ts.map +1 -1
  276. package/dist/types/table/index.d.ts +2 -2
  277. package/dist/types/table/index.d.ts.map +1 -1
  278. package/dist/types/table/table-parts.d.ts +8 -2
  279. package/dist/types/table/table-parts.d.ts.map +1 -1
  280. package/dist/types/table/table.types.d.ts +28 -1
  281. package/dist/types/table/table.types.d.ts.map +1 -1
  282. package/dist/types/toggle/toggle.types.d.ts +1 -1
  283. package/dist/types/toggle/toggle.types.d.ts.map +1 -1
  284. package/dist/types/toggle-group/toggle-group.d.ts.map +1 -1
  285. package/dist/types/toggle-group/toggle-group.types.d.ts +6 -1
  286. package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
  287. package/dist/{upload-Bq_UiyMr.js → upload-DjnlVR8y.js} +2 -2
  288. package/dist/upload.js +1 -1
  289. package/dist/{wizard-B4GrlEqh.js → wizard-BxA08vXt.js} +1 -1
  290. package/dist/wizard.js +1 -1
  291. package/package.json +12 -7
  292. package/dist/button-DakQ-7Tm.js +0 -97
  293. package/dist/cascader-CARCYdHh.js +0 -1097
  294. package/dist/chart-BNzfIfQe.js +0 -948
  295. package/dist/currency-field-B7OZ0hk7.js +0 -436
  296. package/dist/dashboard-grid-nfhEewA4.js +0 -1005
  297. package/dist/date-picker-DQ5SIhdA.js +0 -264
  298. package/dist/date-range-picker-lpB08hK_.js +0 -471
  299. package/dist/datetime-picker-0F0kDW-8.js +0 -629
  300. package/dist/datetime-range-picker-ClnEleth.js +0 -994
  301. package/dist/drawer-Ci3wuCVa.js +0 -758
  302. package/dist/entity-picker-UGhbVwkC.js +0 -1111
  303. package/dist/import-export-center-D8xbCLWs.js +0 -813
  304. package/dist/menu-parts-BQej6eU9.js +0 -787
  305. package/dist/popover-DE22lSpV.js +0 -476
  306. package/dist/react-dom-DzrKNxo6.js +0 -273
  307. 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,140 +0,0 @@
1
- import { createRovingTabindex as e } from "@slotted/core/focus";
2
- import { createControllable as t } from "@slotted/core/state";
3
- import { createContext as n, useContext as r, useEffect as i, useRef as a, useState as o } from "react";
4
- import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
5
- //#region src/toggle-group/toggle-group-defaults.tsx
6
- var u = n({
7
- attached: !0,
8
- deselectable: !0,
9
- loop: !0,
10
- orientation: "horizontal",
11
- size: "md",
12
- variant: "outline"
13
- });
14
- function d() {
15
- return r(u);
16
- }
17
- function f({ children: e, ...t }) {
18
- let n = d();
19
- return /* @__PURE__ */ c(u.Provider, {
20
- value: {
21
- attached: t.attached ?? n.attached,
22
- deselectable: t.deselectable ?? n.deselectable,
23
- loop: t.loop ?? n.loop,
24
- orientation: t.orientation ?? n.orientation,
25
- size: t.size ?? n.size,
26
- variant: t.variant ?? n.variant
27
- },
28
- children: e
29
- });
30
- }
31
- //#endregion
32
- //#region src/toggle-group/toggle-group.tsx
33
- var p = n(void 0);
34
- function m() {
35
- let e = r(p);
36
- if (e === void 0) throw Error("ToggleGroupItem must be rendered inside a ToggleGroup.");
37
- return e;
38
- }
39
- var h = "[data-part=\"item\"]";
40
- function g({ attached: n, children: r, className: s, defaultValue: l, deselectable: u, disabled: f, fullWidth: m, loop: g, multiple: _, onValueChange: v, orientation: y, ref: b, render: x, role: S, rovingFocus: C, size: w, value: T, variant: E, ...D }) {
41
- let O = d(), k = a(null), [A, j] = o(l ?? []), [M, N] = o(!1), P = T ?? A, F = w ?? O.size, I = E ?? O.variant, L = y ?? O.orientation, R = n ?? O.attached, z = u ?? O.deselectable, B = g ?? O.loop, V = C ?? !M;
42
- i(() => {
43
- N(k.current?.closest("[data-ui=\"toolbar\"]") !== null);
44
- }, []), i(() => {
45
- let t = k.current;
46
- if (t !== null && V) return e(t, {
47
- itemSelector: h,
48
- loop: () => B,
49
- orientation: () => L
50
- }).destroy;
51
- }, [
52
- B,
53
- L,
54
- V,
55
- r
56
- ]);
57
- let H = {
58
- disabled: f,
59
- holds: (e) => P.includes(e),
60
- size: F,
61
- toggle: (e, n, r) => {
62
- let i = P.includes(e), a;
63
- if (_ === !0) a = i ? P.filter((t) => t !== e) : [...P, e];
64
- else if (i) {
65
- if (!z) return;
66
- a = [];
67
- } else a = [e];
68
- let o = !1, s = t({
69
- controlled: T,
70
- equals: (e, t) => e.length === t.length && e.every((e, n) => e === t[n]),
71
- initial: P,
72
- onRequest: (e) => {
73
- o = e.cancelled, v?.(e.value, e);
74
- }
75
- }).request(a, n, r);
76
- !o && s && j(a);
77
- },
78
- variant: I
79
- }, U = {
80
- ...D,
81
- "aria-orientation": D["aria-orientation"] ?? (L === "vertical" ? "vertical" : void 0),
82
- children: /* @__PURE__ */ c(p.Provider, {
83
- value: H,
84
- children: r
85
- }),
86
- className: s,
87
- ...R ? { "data-attached": "" } : {},
88
- ...m ?? !1 ? { "data-full-width": "" } : {},
89
- "data-orientation": L,
90
- "data-part": "root",
91
- "data-size": F,
92
- "data-ui": "toggle-group",
93
- "data-variant": I,
94
- role: S ?? "group"
95
- }, W = (e) => {
96
- k.current = e, typeof b == "function" ? b(e) : b != null && (b.current = e);
97
- };
98
- return x === void 0 ? /* @__PURE__ */ c("div", {
99
- ...U,
100
- ref: W
101
- }) : x({
102
- ...U,
103
- ref: W
104
- });
105
- }
106
- //#endregion
107
- //#region src/toggle-group/toggle-group-parts.tsx
108
- function _(e) {
109
- return e.detail === 0 ? "keyboard" : "pointer";
110
- }
111
- function v({ children: e, className: t, disabled: n, icon: r, onClick: i, ref: a, render: o, style: u, type: d, value: f, ...p }) {
112
- let h = m(), g = h.holds(f), v = n ?? h.disabled, y = {
113
- ...p,
114
- "aria-pressed": g,
115
- children: /* @__PURE__ */ l(s, { children: [r === void 0 ? null : /* @__PURE__ */ c("span", {
116
- "aria-hidden": "true",
117
- "data-part": "icon",
118
- children: r
119
- }), e === void 0 ? null : /* @__PURE__ */ c("span", {
120
- "data-part": "label",
121
- children: e
122
- })] }),
123
- className: t,
124
- ...v === !0 ? { "data-disabled": "" } : {},
125
- "data-part": "item",
126
- ...g ? { "data-pressed": "" } : {},
127
- onClick: (e) => {
128
- i?.(e), !e.defaultPrevented && h.toggle(f, _(e), e);
129
- },
130
- style: u
131
- };
132
- return o === void 0 ? /* @__PURE__ */ c("button", {
133
- ...y,
134
- disabled: v,
135
- ref: a,
136
- type: d ?? "button"
137
- }) : o(y);
138
- }
139
- //#endregion
140
- export { d as a, f as i, g as n, m as r, v as t };