@slotted/react 0.1.0-beta.2 → 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 (252) hide show
  1. package/dist/{action-bar-C7cGnEyJ.js → action-bar-OACchRZw.js} +1 -1
  2. package/dist/action-bar.js +1 -1
  3. package/dist/{action-sheet-DgwzC3iY.js → action-sheet-C60BWUW8.js} +1 -1
  4. package/dist/action-sheet.js +1 -1
  5. package/dist/{app-shell-CXwma4XA.js → app-shell-CmYvnu_7.js} +310 -310
  6. package/dist/app-shell.js +1 -1
  7. package/dist/button-Db9f3Bxn.js +99 -0
  8. package/dist/button.js +2 -2
  9. package/dist/cascader-D1AhTyBL.js +1097 -0
  10. package/dist/cascader.js +1 -1
  11. package/dist/{chart-Gb_P3Kdq.js → chart-O0ZhkzJe.js} +381 -374
  12. package/dist/chart.js +1 -1
  13. package/dist/{checkbox-CwUOc-3u.js → checkbox-DfxFHZaU.js} +3 -3
  14. package/dist/{checkbox-group-BYTjgAcX.js → checkbox-group-9sDgrV5Z.js} +2 -2
  15. package/dist/checkbox-group.js +1 -1
  16. package/dist/checkbox.js +1 -1
  17. package/dist/{color-picker-BlPR4g4H.js → color-picker-CwbWzCKg.js} +4 -4
  18. package/dist/color-picker.js +1 -1
  19. package/dist/{column-manager-B7_a_jDK.js → column-manager-CTtizVhm.js} +6 -6
  20. package/dist/column-manager.js +1 -1
  21. package/dist/{combobox-C66dNlMR.js → combobox-BVMI9lg8.js} +266 -266
  22. package/dist/combobox.js +1 -1
  23. package/dist/{command-palette-BqRyNR9Y.js → command-palette-DFLbSOiv.js} +1 -1
  24. package/dist/command-palette.js +1 -1
  25. package/dist/{context-menu-DMiHdggw.js → context-menu-BuST6W94.js} +1 -1
  26. package/dist/context-menu.js +1 -1
  27. package/dist/currency-field-DD9A5U3D.js +455 -0
  28. package/dist/currency-field.js +1 -1
  29. package/dist/{dashboard-grid-CKdyO4j6.js → dashboard-grid-CBMP_-JV.js} +2 -2
  30. package/dist/dashboard-grid.js +1 -1
  31. package/dist/{data-grid-rWMDNl-6.js → data-grid-BKaGMqIm.js} +19 -19
  32. package/dist/data-grid.js +1 -1
  33. package/dist/{data-list-2xfDpHVC.js → data-list-oICmxGkA.js} +5 -5
  34. package/dist/data-list.js +1 -1
  35. package/dist/{date-field-D_kLLTfL.js → date-field-CYcN6diW.js} +1 -1
  36. package/dist/date-field.js +1 -1
  37. package/dist/date-picker-4X-_2ltN.js +264 -0
  38. package/dist/date-picker.js +1 -1
  39. package/dist/date-range-picker-CNOAtHwU.js +471 -0
  40. package/dist/date-range-picker.js +1 -1
  41. package/dist/{datetime-field-T1gNdJ7t.js → datetime-field-B8TrmsDK.js} +1 -1
  42. package/dist/datetime-field.js +1 -1
  43. package/dist/datetime-picker-HDVlUhzy.js +629 -0
  44. package/dist/datetime-picker.js +1 -1
  45. package/dist/datetime-range-picker-IqOFJtdW.js +994 -0
  46. package/dist/datetime-range-picker.js +1 -1
  47. package/dist/{dialog-Dmy-m_pe.js → dialog-BHYDDj1S.js} +112 -113
  48. package/dist/dialog.js +1 -1
  49. package/dist/docs/app-shell.json +1 -1
  50. package/dist/docs/button-group.json +1 -0
  51. package/dist/docs/button-group.md +1 -1
  52. package/dist/docs/button.json +45 -11
  53. package/dist/docs/button.md +10 -6
  54. package/dist/docs/chart.json +7 -0
  55. package/dist/docs/chart.md +1 -0
  56. package/dist/docs/currency-field.json +32 -1
  57. package/dist/docs/currency-field.md +4 -1
  58. package/dist/docs/dialog.examples.md +26 -0
  59. package/dist/docs/dialog.json +14 -2
  60. package/dist/docs/dialog.md +1 -1
  61. package/dist/docs/list.json +26 -1
  62. package/dist/docs/list.md +4 -1
  63. package/dist/docs/popover.json +1 -1
  64. package/dist/docs/segmented-control.json +29 -1
  65. package/dist/docs/segmented-control.md +17 -1
  66. package/dist/docs/side-navigation.json +2 -2
  67. package/dist/docs/side-navigation.md +19 -4
  68. package/dist/docs/skills/theme-app/SKILL.md +5 -0
  69. package/dist/docs/split-button.json +1 -0
  70. package/dist/docs/split-button.md +1 -1
  71. package/dist/docs/stat-card.json +1 -0
  72. package/dist/docs/stat-card.md +1 -1
  73. package/dist/docs/table.examples.md +1 -1
  74. package/dist/docs/table.json +78 -2
  75. package/dist/docs/table.md +12 -1
  76. package/dist/docs/tabs.examples.md +1 -1
  77. package/dist/docs/tabs.json +1 -1
  78. package/dist/docs/toggle-group.json +14 -3
  79. package/dist/docs/toggle-group.md +3 -3
  80. package/dist/docs/toggle.json +12 -3
  81. package/dist/docs/toggle.md +3 -3
  82. package/dist/docs/tokens.md +25 -1
  83. package/dist/docs/top-navigation.examples.md +23 -5
  84. package/dist/docs/top-navigation.json +2 -2
  85. package/dist/docs/tour.json +1 -1
  86. package/dist/drawer-LXM44eso.js +757 -0
  87. package/dist/drawer.js +1 -1
  88. package/dist/entity-picker-CPDd73JR.js +1110 -0
  89. package/dist/entity-picker.js +1 -1
  90. package/dist/{event-calendar-DYjVwTI6.js → event-calendar-CnF3iIZD.js} +5 -5
  91. package/dist/event-calendar.js +1 -1
  92. package/dist/{field-BJh5HI7w.js → field-NJaCxl2h.js} +1 -1
  93. package/dist/{field-group-BDaspQPh.js → field-group-hAzVa2O9.js} +1 -1
  94. package/dist/field-group.js +1 -1
  95. package/dist/field.js +1 -1
  96. package/dist/{filter-bar-Bh7cbqDE.js → filter-bar-D_xDcAp2.js} +20 -20
  97. package/dist/filter-bar.js +1 -1
  98. package/dist/{hover-card-CSDbA6zd.js → hover-card-BJE5dtaQ.js} +1 -1
  99. package/dist/hover-card.js +1 -1
  100. package/dist/{icon-button-TnvMhK4o.js → icon-button-CCWkCDMs.js} +26 -24
  101. package/dist/import-export-center-DpY2DGBZ.js +813 -0
  102. package/dist/import-export-center.js +1 -1
  103. package/dist/index.js +85 -84
  104. package/dist/{list-C1Y8MWp2.js → list-WsQ6ZzCa.js} +16 -12
  105. package/dist/{list-item-DN_mcouU.js → list-item-DpCwZIrd.js} +1 -1
  106. package/dist/list-item.js +1 -1
  107. package/dist/list.js +1 -1
  108. package/dist/{listbox-4WvqR0JF.js → listbox-Dv856z9I.js} +1 -1
  109. package/dist/listbox.js +1 -1
  110. package/dist/{loading-overlay-B83XFctM.js → loading-overlay-COfnckse.js} +73 -73
  111. package/dist/loading-overlay.js +1 -1
  112. package/dist/{markdown-CpfDn1LF.js → markdown-CeG8mUbI.js} +2 -2
  113. package/dist/markdown.js +1 -1
  114. package/dist/menu-parts-W58pVNUt.js +786 -0
  115. package/dist/menu.js +1 -1
  116. package/dist/{menubar-CtGavUTO.js → menubar-b2CruimJ.js} +1 -1
  117. package/dist/menubar.js +1 -1
  118. package/dist/{multi-select-B-tuIwAu.js → multi-select-DQ5ds0fX.js} +390 -390
  119. package/dist/multi-select.js +1 -1
  120. package/dist/{notification-center-C4pEHJ3h.js → notification-center-Sz54IziY.js} +2 -2
  121. package/dist/notification-center.js +1 -1
  122. package/dist/{number-field-J_koud1r.js → number-field-BFIAmv-z.js} +1 -1
  123. package/dist/number-field.js +1 -1
  124. package/dist/{otp-input-Bf8JUiVR.js → otp-input-BNQhuKaT.js} +1 -1
  125. package/dist/otp-input.js +1 -1
  126. package/dist/popover-Be7JWbGJ.js +475 -0
  127. package/dist/popover.js +1 -1
  128. package/dist/press-selection-DjOllE2B.js +29 -0
  129. package/dist/press-selection.js +2 -0
  130. package/dist/{prompt-composer-B7MMcER0.js → prompt-composer-BxpdkTpZ.js} +1 -1
  131. package/dist/prompt-composer.js +1 -1
  132. package/dist/{radio-group-BFpjhDkV.js → radio-group-BaVIP9UH.js} +2 -2
  133. package/dist/radio-group.js +1 -1
  134. package/dist/{rating-D1EsADFM.js → rating-DYBQBzwB.js} +1 -1
  135. package/dist/rating.js +1 -1
  136. package/dist/{saved-views-BueW-Lyb.js → saved-views-DlE_--Z9.js} +5 -5
  137. package/dist/saved-views.js +1 -1
  138. package/dist/{segmented-control-Cy_5D3Nj.js → segmented-control-DmuOGiu6.js} +28 -24
  139. package/dist/segmented-control.js +1 -1
  140. package/dist/{select-hRFp8nCj.js → select-DOFqPy26.js} +273 -273
  141. package/dist/select.js +1 -1
  142. package/dist/{side-navigation-YUiJRpng.js → side-navigation-CBLtCzuJ.js} +186 -187
  143. package/dist/side-navigation.js +1 -1
  144. package/dist/{slider-B432T6nD.js → slider-DTes4HLF.js} +1 -1
  145. package/dist/slider.js +1 -1
  146. package/dist/{split-button-DHF3v3PJ.js → split-button-CPgHiy9G.js} +2 -2
  147. package/dist/split-button.js +1 -1
  148. package/dist/styles.css +1 -1
  149. package/dist/{switch-4MHwKmkz.js → switch-DQzuIhPX.js} +1 -1
  150. package/dist/switch.js +1 -1
  151. package/dist/{table-Bd79IwDC.js → table-Cipi2c5X.js} +206 -173
  152. package/dist/table.js +2 -2
  153. package/dist/{tags-input-DLdHLWrH.js → tags-input-CcOkm0AW.js} +1 -1
  154. package/dist/tags-input.js +1 -1
  155. package/dist/{text-field-BktZbmzD.js → text-field-DLfIZ0fk.js} +1 -1
  156. package/dist/text-field.js +1 -1
  157. package/dist/{textarea-JAK2RJl0.js → textarea-CBJBJBi6.js} +1 -1
  158. package/dist/textarea.js +1 -1
  159. package/dist/{time-field-DCG_VtGO.js → time-field-DrhiCtUl.js} +1 -1
  160. package/dist/time-field.js +1 -1
  161. package/dist/{time-picker-DuT1tf5-.js → time-picker-CRQsMJbQ.js} +102 -102
  162. package/dist/time-picker.js +1 -1
  163. package/dist/{time-range-picker-HwBvrrXN.js → time-range-picker-DlZJsj1e.js} +202 -202
  164. package/dist/time-range-picker.js +1 -1
  165. package/dist/{toast-wI8BtPY5.js → toast-Bf3e0AgC.js} +157 -157
  166. package/dist/toast.js +1 -1
  167. package/dist/toggle-group-7iBR9Rn1.js +142 -0
  168. package/dist/toggle-group.js +1 -1
  169. package/dist/{toolbar-CDQTydDx.js → toolbar-DDZpEftQ.js} +1 -1
  170. package/dist/toolbar.js +1 -1
  171. package/dist/{tooltip-BggqPDcW.js → tooltip-DbKTPe_i.js} +108 -109
  172. package/dist/tooltip.js +1 -1
  173. package/dist/{top-navigation-COQZsNqW.js → top-navigation-e-tWMGNr.js} +255 -256
  174. package/dist/top-navigation.js +1 -1
  175. package/dist/{tour-C11DmYTC.js → tour-BTdt716T.js} +180 -180
  176. package/dist/tour.js +1 -1
  177. package/dist/{transfer-JA9TWjAw.js → transfer-CqZOTLMP.js} +6 -6
  178. package/dist/transfer.js +1 -1
  179. package/dist/types/app-shell/app-shell.d.ts.map +1 -1
  180. package/dist/types/button/button-link.d.ts +1 -1
  181. package/dist/types/button/button-link.d.ts.map +1 -1
  182. package/dist/types/button/button-root.d.ts +5 -3
  183. package/dist/types/button/button-root.d.ts.map +1 -1
  184. package/dist/types/button/button.constants.d.ts +2 -1
  185. package/dist/types/button/button.constants.d.ts.map +1 -1
  186. package/dist/types/button/button.d.ts +1 -1
  187. package/dist/types/button/button.d.ts.map +1 -1
  188. package/dist/types/button/button.types.d.ts +9 -2
  189. package/dist/types/button/button.types.d.ts.map +1 -1
  190. package/dist/types/button/index.d.ts +1 -1
  191. package/dist/types/button/index.d.ts.map +1 -1
  192. package/dist/types/button/toggle-button.d.ts +1 -1
  193. package/dist/types/button/toggle-button.d.ts.map +1 -1
  194. package/dist/types/chart/chart.d.ts.map +1 -1
  195. package/dist/types/currency-field/currency-field.d.ts +1 -1
  196. package/dist/types/currency-field/currency-field.d.ts.map +1 -1
  197. package/dist/types/currency-field/currency-field.types.d.ts +14 -0
  198. package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
  199. package/dist/types/currency-field/index.d.ts +1 -1
  200. package/dist/types/currency-field/index.d.ts.map +1 -1
  201. package/dist/types/dialog/dialog-demo.d.ts +8 -0
  202. package/dist/types/dialog/dialog-demo.d.ts.map +1 -1
  203. package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
  204. package/dist/types/index.d.ts +1 -0
  205. package/dist/types/index.d.ts.map +1 -1
  206. package/dist/types/list/index.d.ts +1 -1
  207. package/dist/types/list/index.d.ts.map +1 -1
  208. package/dist/types/list/list-parts.d.ts +1 -1
  209. package/dist/types/list/list-parts.d.ts.map +1 -1
  210. package/dist/types/list/list.types.d.ts +12 -0
  211. package/dist/types/list/list.types.d.ts.map +1 -1
  212. package/dist/types/press-selection/index.d.ts +3 -0
  213. package/dist/types/press-selection/index.d.ts.map +1 -0
  214. package/dist/types/press-selection/press-selection.d.ts +23 -0
  215. package/dist/types/press-selection/press-selection.d.ts.map +1 -0
  216. package/dist/types/segmented-control/index.d.ts +1 -1
  217. package/dist/types/segmented-control/index.d.ts.map +1 -1
  218. package/dist/types/segmented-control/segmented-control-defaults.d.ts.map +1 -1
  219. package/dist/types/segmented-control/segmented-control.d.ts +1 -1
  220. package/dist/types/segmented-control/segmented-control.d.ts.map +1 -1
  221. package/dist/types/segmented-control/segmented-control.types.d.ts +10 -0
  222. package/dist/types/segmented-control/segmented-control.types.d.ts.map +1 -1
  223. package/dist/types/table/index.d.ts +2 -2
  224. package/dist/types/table/index.d.ts.map +1 -1
  225. package/dist/types/table/table-parts.d.ts +8 -2
  226. package/dist/types/table/table-parts.d.ts.map +1 -1
  227. package/dist/types/table/table.types.d.ts +28 -1
  228. package/dist/types/table/table.types.d.ts.map +1 -1
  229. package/dist/types/toggle/toggle.types.d.ts +1 -1
  230. package/dist/types/toggle/toggle.types.d.ts.map +1 -1
  231. package/dist/types/toggle-group/toggle-group.d.ts.map +1 -1
  232. package/dist/types/toggle-group/toggle-group.types.d.ts +6 -1
  233. package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
  234. package/dist/{upload-Bq_UiyMr.js → upload-DjnlVR8y.js} +2 -2
  235. package/dist/upload.js +1 -1
  236. package/dist/{wizard-B4GrlEqh.js → wizard-BxA08vXt.js} +1 -1
  237. package/dist/wizard.js +1 -1
  238. package/package.json +12 -7
  239. package/dist/button-DakQ-7Tm.js +0 -97
  240. package/dist/cascader-CARCYdHh.js +0 -1097
  241. package/dist/currency-field-B7OZ0hk7.js +0 -436
  242. package/dist/date-picker-DQ5SIhdA.js +0 -264
  243. package/dist/date-range-picker-lpB08hK_.js +0 -471
  244. package/dist/datetime-picker-0F0kDW-8.js +0 -629
  245. package/dist/datetime-range-picker-ClnEleth.js +0 -994
  246. package/dist/drawer-Dtospdqk.js +0 -758
  247. package/dist/entity-picker-Dm-y0RNE.js +0 -1111
  248. package/dist/import-export-center-CkZ_Ar9w.js +0 -813
  249. package/dist/menu-parts-BQej6eU9.js +0 -787
  250. package/dist/popover-DE22lSpV.js +0 -476
  251. package/dist/react-dom-DzrKNxo6.js +0 -273
  252. 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 };