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

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 (183) hide show
  1. package/README.md +16 -1
  2. package/dist/{action-bar-OACchRZw.js → action-bar-ti3e6FK1.js} +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/{app-shell-CmYvnu_7.js → app-shell-nnSP44OO.js} +271 -267
  5. package/dist/app-shell.js +1 -1
  6. package/dist/bin/slotted-agent-docs.mjs +297 -0
  7. package/dist/{cascader-D1AhTyBL.js → cascader-Cn2Acpcv.js} +227 -210
  8. package/dist/cascader.js +1 -1
  9. package/dist/chart-04i6NZQA.js +968 -0
  10. package/dist/chart.js +1 -1
  11. package/dist/{checkbox-DfxFHZaU.js → checkbox-B4Sb1eXj.js} +3 -3
  12. package/dist/{checkbox-group-9sDgrV5Z.js → checkbox-group-LpGMuq9w.js} +2 -2
  13. package/dist/checkbox-group.js +1 -1
  14. package/dist/checkbox.js +1 -1
  15. package/dist/{code-block-CFHf8uTm.js → code-block-CTNiyt0U.js} +1 -1
  16. package/dist/code-block.js +1 -1
  17. package/dist/{color-picker-CwbWzCKg.js → color-picker-BcRCeISx.js} +4 -4
  18. package/dist/color-picker.js +1 -1
  19. package/dist/{column-manager-CTtizVhm.js → column-manager-BtkYLs5G.js} +4 -4
  20. package/dist/column-manager.js +1 -1
  21. package/dist/{combobox-BVMI9lg8.js → combobox-C1D5doWM.js} +227 -198
  22. package/dist/combobox.js +1 -1
  23. package/dist/{context-menu-BuST6W94.js → context-menu-B00UIBVC.js} +1 -1
  24. package/dist/context-menu.js +1 -1
  25. package/dist/{currency-field-DD9A5U3D.js → currency-field-Dti9JFu0.js} +1 -1
  26. package/dist/currency-field.js +1 -1
  27. package/dist/{dashboard-grid-CBMP_-JV.js → dashboard-grid-CoLKLvYL.js} +1 -1
  28. package/dist/dashboard-grid.js +1 -1
  29. package/dist/{data-grid-Eb-a4jg3.js → data-grid-DX95Y7mY.js} +18 -18
  30. package/dist/data-grid.js +1 -1
  31. package/dist/{data-list-oICmxGkA.js → data-list-CWYTPNm-.js} +2 -2
  32. package/dist/data-list.js +1 -1
  33. package/dist/{date-field-Hr-OCU-H.js → date-field-BxEpqAPg.js} +1 -1
  34. package/dist/date-field.js +1 -1
  35. package/dist/date-picker-DRk9SZp1.js +308 -0
  36. package/dist/date-picker.js +1 -1
  37. package/dist/date-range-picker-6Yz7avTS.js +483 -0
  38. package/dist/date-range-picker.js +1 -1
  39. package/dist/{datetime-field-B8TrmsDK.js → datetime-field-D2f9u6im.js} +1 -1
  40. package/dist/datetime-field.js +1 -1
  41. package/dist/datetime-picker-STqSWMkH.js +645 -0
  42. package/dist/datetime-picker.js +1 -1
  43. package/dist/datetime-range-picker-DQNQwr3K.js +1000 -0
  44. package/dist/datetime-range-picker.js +1 -1
  45. package/dist/{detail-panel-CW53lUjp.js → detail-panel-z6WGleP4.js} +1 -1
  46. package/dist/detail-panel.js +1 -1
  47. package/dist/docs/AGENTS.snippet.md +2 -0
  48. package/dist/docs/app-shell.examples.md +1 -1
  49. package/dist/docs/app-shell.json +4 -4
  50. package/dist/docs/app-shell.md +2 -2
  51. package/dist/docs/guidelines/README.md +2 -2
  52. package/dist/docs/guidelines/index.md +1 -1
  53. package/dist/docs/guidelines/own-elements.md +1 -1
  54. package/dist/docs/page-header.json +1 -0
  55. package/dist/docs/page-header.md +1 -1
  56. package/dist/docs/skills/build-own-element/SKILL.md +6 -6
  57. package/dist/docs/skills/compose-screen/SKILL.md +6 -6
  58. package/dist/docs/skills/review-screen/SKILL.md +6 -6
  59. package/dist/docs/skills/theme-app/SKILL.md +1 -1
  60. package/dist/docs/skills/waiting-states/SKILL.md +2 -2
  61. package/dist/docs/tabs.json +13 -3
  62. package/dist/docs/tabs.md +3 -2
  63. package/dist/{entity-picker-Dn1T7JCq.js → entity-picker-BdySwW8F.js} +274 -256
  64. package/dist/entity-picker.js +1 -1
  65. package/dist/{event-calendar-CnF3iIZD.js → event-calendar-CiphPXdV.js} +4 -4
  66. package/dist/event-calendar.js +1 -1
  67. package/dist/{field-NJaCxl2h.js → field-BxQFpOXS.js} +1 -1
  68. package/dist/{field-group-hAzVa2O9.js → field-group-DcN_hiZN.js} +1 -1
  69. package/dist/field-group.js +1 -1
  70. package/dist/field.js +1 -1
  71. package/dist/{filter-bar-CHyy1o--.js → filter-bar-C_dXljI_.js} +10 -10
  72. package/dist/filter-bar.js +1 -1
  73. package/dist/{hover-card-BJE5dtaQ.js → hover-card-DpVzwvDJ.js} +1 -1
  74. package/dist/hover-card.js +1 -1
  75. package/dist/{import-export-center-jF37b909.js → import-export-center-BQnMJz4g.js} +3 -3
  76. package/dist/import-export-center.js +1 -1
  77. package/dist/index.js +63 -63
  78. package/dist/{listbox-Dv856z9I.js → listbox-D0MJcAMm.js} +1 -1
  79. package/dist/listbox.js +1 -1
  80. package/dist/{markdown-CeG8mUbI.js → markdown-IiVoh6yi.js} +2 -2
  81. package/dist/markdown.js +1 -1
  82. package/dist/menu-parts-D6v_mz6O.js +809 -0
  83. package/dist/menu.js +1 -1
  84. package/dist/{menubar-b2CruimJ.js → menubar-DApIg1eR.js} +1 -1
  85. package/dist/menubar.js +1 -1
  86. package/dist/{multi-select-DQ5ds0fX.js → multi-select-B8z6ApgW.js} +286 -257
  87. package/dist/multi-select.js +1 -1
  88. package/dist/{notification-center-C1iWWl5Y.js → notification-center-CGEEHcRA.js} +2 -2
  89. package/dist/notification-center.js +1 -1
  90. package/dist/{number-field-BFIAmv-z.js → number-field-DXk1TAXA.js} +1 -1
  91. package/dist/number-field.js +1 -1
  92. package/dist/{otp-input-BNQhuKaT.js → otp-input-CI-kdNgx.js} +1 -1
  93. package/dist/otp-input.js +1 -1
  94. package/dist/{popover-Be7JWbGJ.js → popover-DEp8Bf3e.js} +186 -166
  95. package/dist/popover.js +1 -1
  96. package/dist/{prompt-composer-BxpdkTpZ.js → prompt-composer-DdcU3S3L.js} +1 -1
  97. package/dist/prompt-composer.js +1 -1
  98. package/dist/{radio-group-BaVIP9UH.js → radio-group-D8csBZ8Z.js} +2 -2
  99. package/dist/radio-group.js +1 -1
  100. package/dist/{rating-DYBQBzwB.js → rating-rI3b5zII.js} +1 -1
  101. package/dist/rating.js +1 -1
  102. package/dist/{saved-views-DlE_--Z9.js → saved-views-B3brBTD9.js} +4 -4
  103. package/dist/saved-views.js +1 -1
  104. package/dist/scroll-area-DQ_ansLu.js +112 -0
  105. package/dist/scroll-area.js +1 -1
  106. package/dist/{segmented-control-DmuOGiu6.js → segmented-control-C-PzkTtg.js} +2 -2
  107. package/dist/segmented-control.js +1 -1
  108. package/dist/{select-M7Io4UL9.js → select-BUylPwpb.js} +241 -203
  109. package/dist/select.js +1 -1
  110. package/dist/{side-navigation-CBLtCzuJ.js → side-navigation-Bm-BZma1.js} +156 -140
  111. package/dist/side-navigation.js +1 -1
  112. package/dist/{slider-DTes4HLF.js → slider-fp7kyg-6.js} +1 -1
  113. package/dist/slider.js +1 -1
  114. package/dist/{split-button-CPgHiy9G.js → split-button-DKRm0j5c.js} +1 -1
  115. package/dist/split-button.js +1 -1
  116. package/dist/styles.css +1 -1
  117. package/dist/{switch-DQzuIhPX.js → switch-aVoc4C2F.js} +1 -1
  118. package/dist/switch.js +1 -1
  119. package/dist/{table-U9eJYCuB.js → table-BYEvFr4P.js} +276 -275
  120. package/dist/table.js +1 -1
  121. package/dist/{tabs-BtHmjlnM.js → tabs-HWmvOKM4.js} +109 -102
  122. package/dist/tabs.js +1 -1
  123. package/dist/{tags-input-CcOkm0AW.js → tags-input-pbv6x1Pi.js} +1 -1
  124. package/dist/tags-input.js +1 -1
  125. package/dist/{text-field-DLfIZ0fk.js → text-field-CbQ6UCAP.js} +1 -1
  126. package/dist/text-field.js +1 -1
  127. package/dist/{textarea-CBJBJBi6.js → textarea-DJSfhrXH.js} +1 -1
  128. package/dist/textarea.js +1 -1
  129. package/dist/{time-field-DrhiCtUl.js → time-field-BI9n607q.js} +1 -1
  130. package/dist/time-field.js +1 -1
  131. package/dist/time-picker-D6SlQWNF.js +402 -0
  132. package/dist/time-picker.js +1 -1
  133. package/dist/time-range-picker-CcV3_45h.js +751 -0
  134. package/dist/time-range-picker.js +1 -1
  135. package/dist/{toggle-group-7iBR9Rn1.js → toggle-group-i7JPO8BM.js} +1 -1
  136. package/dist/toggle-group.js +1 -1
  137. package/dist/{toolbar-DDZpEftQ.js → toolbar-B9knmgHA.js} +1 -1
  138. package/dist/toolbar.js +1 -1
  139. package/dist/tooltip-CgjIROUy.js +410 -0
  140. package/dist/tooltip.js +1 -1
  141. package/dist/{top-navigation-e-tWMGNr.js → top-navigation-DiG2PF5W.js} +2 -2
  142. package/dist/top-navigation.js +1 -1
  143. package/dist/{transfer-CqZOTLMP.js → transfer--UOQVeKE.js} +5 -5
  144. package/dist/transfer.js +1 -1
  145. package/dist/types/app-shell/app-shell-parts.d.ts +6 -4
  146. package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
  147. package/dist/types/app-shell/app-shell.d.ts.map +1 -1
  148. package/dist/types/cascader/cascader.d.ts.map +1 -1
  149. package/dist/types/chart/chart.d.ts.map +1 -1
  150. package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
  151. package/dist/types/date-picker/date-picker.d.ts.map +1 -1
  152. package/dist/types/date-range-picker/date-range-picker.d.ts.map +1 -1
  153. package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
  154. package/dist/types/datetime-range-picker/datetime-range-picker.d.ts.map +1 -1
  155. package/dist/types/entity-picker/entity-picker-popup.d.ts.map +1 -1
  156. package/dist/types/menu/menu-parts.d.ts.map +1 -1
  157. package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
  158. package/dist/types/popover/popover-parts.d.ts.map +1 -1
  159. package/dist/types/scroll-area/scroll-area.d.ts.map +1 -1
  160. package/dist/types/select/select-parts.d.ts.map +1 -1
  161. package/dist/types/side-navigation/side-navigation-parts.d.ts.map +1 -1
  162. package/dist/types/stat-card/stat-card.types.d.ts +2 -2
  163. package/dist/types/stat-card/stat-card.types.d.ts.map +1 -1
  164. package/dist/types/table/table-content.d.ts.map +1 -1
  165. package/dist/types/tabs/tabs-parts.d.ts +2 -4
  166. package/dist/types/tabs/tabs-parts.d.ts.map +1 -1
  167. package/dist/types/tabs/tabs.d.ts.map +1 -1
  168. package/dist/types/time-picker/time-picker.d.ts.map +1 -1
  169. package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
  170. package/dist/types/tooltip/tooltip-parts.d.ts.map +1 -1
  171. package/dist/{upload-DjnlVR8y.js → upload-CLX5cURk.js} +1 -1
  172. package/dist/upload.js +1 -1
  173. package/package.json +10 -7
  174. package/dist/chart-O0ZhkzJe.js +0 -966
  175. package/dist/date-picker-D3-y2Jxw.js +0 -295
  176. package/dist/date-range-picker-y3b82Wmf.js +0 -471
  177. package/dist/datetime-picker-CIRHVLQp.js +0 -629
  178. package/dist/datetime-range-picker-DM-1m98z.js +0 -994
  179. package/dist/menu-parts-W58pVNUt.js +0 -786
  180. package/dist/scroll-area-BriwmvYY.js +0 -111
  181. package/dist/time-picker-CRQsMJbQ.js +0 -396
  182. package/dist/time-range-picker-DlZJsj1e.js +0 -745
  183. package/dist/tooltip-DbKTPe_i.js +0 -392
package/dist/table.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, P as s, S as c, T as l, _ as u, a as d, b as f, c as p, d as m, f as h, g, h as _, i as v, j as y, k as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, x as M, y as N } from "./table-U9eJYCuB.js";
1
+ import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, P as s, S as c, T as l, _ as u, a as d, b as f, c as p, d as m, f as h, g, h as _, i as v, j as y, k as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, x as M, y as N } from "./table-BYEvFr4P.js";
2
2
  export { b as TABLE_ROW_SELECTOR, e as Table, p as TableBody, O as TableBooleanFilter, x as TableCaption, k as TableCell, m as TableColumnActions, h as TableColumnHeader, o as TableContent, C as TableDateFilter, E as TableDateTimeFilter, a as TableDefaultsProvider, T as TableDetail, S as TableEmpty, _ as TableExpander, g as TableFooter, u as TableGroupRow, A as TableHead, N as TableLoader, v as TableNumberFilter, f as TableRow, M as TableRowHeader, c as TableSelect, t as TableSelectAll, d as TableSetFilter, j as TableSort, l as TableSummary, w as TableTextFilter, D as TableTimeFilter, y as useOptionalTable, i as useTable, r as useTableColumn, s as useTableDefaults, n as useTableRow };
@@ -1,11 +1,12 @@
1
1
  import { n as e, t } from "./icon-T9Yt4tnm.js";
2
2
  import { createRemovalFocus as n, createRovingTabindex as r } from "@slotted/core/focus";
3
3
  import { createControllable as i } from "@slotted/core/state";
4
- import { createContext as a, useCallback as o, useContext as s, useDeferredValue as c, useEffect as l, useId as u, useRef as d, useState as f } from "react";
5
- import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
6
- import { NOT_OVERFLOWING as g, createScrollAffordance as _ } from "@slotted/core/overflow";
4
+ import { createContext as a, useCallback as o, useContext as s, useDeferredValue as c, useEffect as l, useId as u, useLayoutEffect as d, useRef as f, useState as p } from "react";
5
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
6
+ import { NOT_OVERFLOWING as _, createScrollAffordance as v } from "@slotted/core/overflow";
7
+ import { createIndicator as y } from "@slotted/core/measure";
7
8
  //#region src/tabs/tabs-defaults.tsx
8
- var v = a({
9
+ var b = a({
9
10
  activation: "automatic",
10
11
  fit: "auto",
11
12
  loop: !0,
@@ -15,12 +16,12 @@ var v = a({
15
16
  track: "line",
16
17
  variant: "line"
17
18
  });
18
- function y() {
19
- return s(v);
19
+ function x() {
20
+ return s(b);
20
21
  }
21
- function b({ children: e, ...t }) {
22
- let n = y();
23
- return /* @__PURE__ */ m(v.Provider, {
22
+ function S({ children: e, ...t }) {
23
+ let n = x();
24
+ return /* @__PURE__ */ h(b.Provider, {
24
25
  value: {
25
26
  activation: t.activation ?? n.activation,
26
27
  fit: t.fit ?? n.fit,
@@ -36,16 +37,16 @@ function b({ children: e, ...t }) {
36
37
  }
37
38
  //#endregion
38
39
  //#region src/tabs/tabs.tsx
39
- var x = "[data-part=\"tab\"]", S = a(void 0);
40
- function C() {
41
- let e = s(S);
40
+ var C = "[data-part=\"tab\"]", w = ":scope > [data-part=\"item\"][data-selected] > [data-part=\"tab\"]", T = typeof document > "u" ? l : d, E = a(void 0);
41
+ function D() {
42
+ let e = s(E);
42
43
  if (e === void 0) throw Error("Tab, TabPanel and TabActions must be rendered inside Tabs.");
43
44
  return e;
44
45
  }
45
- function w(e) {
46
+ function O(e) {
46
47
  return e.replace(/[^\w-]/g, (e) => `-${e.charCodeAt(0).toString(16)}-`);
47
48
  }
48
- function T(e, t) {
49
+ function k(e, t) {
49
50
  let n = !1;
50
51
  return {
51
52
  reason: e,
@@ -58,12 +59,12 @@ function T(e, t) {
58
59
  }
59
60
  };
60
61
  }
61
- function E({ activation: a, children: o, className: s, defaultValue: v, deferPanels: b, disabled: C, fit: E, loop: D, mount: O, onTabDismiss: k, onValueChange: A, orientation: j, ref: M, render: N, size: ee, style: te, track: ne, value: P, variant: re, ...ie }) {
62
- let F = y(), I = u(), [ae, oe] = f(v), L = P ?? ae, [R, se] = f(null), [z, B] = f(g), [ce, le] = f("none"), V = a ?? F.activation, ue = E ?? F.fit, H = D ?? F.loop, U = O ?? F.mount, W = j ?? F.orientation, de = ee ?? F.size, fe = ne ?? F.track, pe = re ?? F.variant, G = C === !0, me = c(L), he = b ?? U === "active" ? me : L, K = d(new Set(L === void 0 ? [] : [L]));
62
+ function A({ activation: a, children: o, className: s, defaultValue: d, deferPanels: b, disabled: S, fit: D, loop: A, mount: j, onTabDismiss: M, onValueChange: N, orientation: P, ref: ee, render: te, size: ne, style: re, track: ie, value: ae, variant: oe, ...se }) {
63
+ let F = x(), I = u(), [ce, le] = p(d), L = ae ?? ce, [R, ue] = p(null), [z, B] = p(_), [de, fe] = p("none"), V = a ?? F.activation, pe = D ?? F.fit, H = A ?? F.loop, U = j ?? F.mount, W = P ?? F.orientation, me = ne ?? F.size, he = ie ?? F.track, ge = oe ?? F.variant, G = S === !0, _e = c(L), ve = b ?? U === "active" ? _e : L, K = f(new Set(L === void 0 ? [] : [L]));
63
64
  L !== void 0 && K.current.add(L);
64
- let q = d(null), J = d(null);
65
+ let q = f(null), J = f(null);
65
66
  function Y() {
66
- return R === null ? [] : [...R.querySelectorAll(x)];
67
+ return R === null ? [] : [...R.querySelectorAll(C)];
67
68
  }
68
69
  function X(e) {
69
70
  return e === void 0 ? -1 : Y().findIndex((t) => t.getAttribute("data-value") === e);
@@ -71,27 +72,27 @@ function E({ activation: a, children: o, className: s, defaultValue: v, deferPan
71
72
  function Z(e, t, n) {
72
73
  if (e === L) return;
73
74
  let r = !1, a = i({
74
- controlled: P,
75
+ controlled: ae,
75
76
  initial: L,
76
77
  onRequest: (e) => {
77
- r = e.cancelled, e.value !== void 0 && A?.(e.value, e);
78
+ r = e.cancelled, e.value !== void 0 && N?.(e.value, e);
78
79
  }
79
80
  }).request(e, t, n);
80
81
  if (r) return;
81
82
  let o = X(L), s = X(e);
82
- o !== -1 && s !== -1 && le(s > o ? "forward" : "backward"), K.current.add(e), a && oe(e);
83
+ o !== -1 && s !== -1 && fe(s > o ? "forward" : "backward"), K.current.add(e), a && le(e);
83
84
  }
84
- function ge(e) {
85
+ function ye(e) {
85
86
  let t = Y().map((e) => e.getAttribute("data-value")).filter((e) => e !== null), n = t.indexOf(e);
86
87
  if (n !== -1) return t[n + 1] ?? t[n - 1];
87
88
  }
88
- function _e(e, t, n) {
89
- let r = T(t, n);
90
- if (k?.(e, r), r.cancelled || e !== L) return;
91
- let i = ge(e);
89
+ function be(e, t, n) {
90
+ let r = k(t, n);
91
+ if (M?.(e, r), r.cancelled || e !== L) return;
92
+ let i = ye(e);
92
93
  i !== void 0 && Z(i, "remove", n);
93
94
  }
94
- let Q = d({
95
+ let Q = f({
95
96
  activation: V,
96
97
  select: Z,
97
98
  value: L
@@ -106,7 +107,7 @@ function E({ activation: a, children: o, className: s, defaultValue: v, deferPan
106
107
  if (R === null) return;
107
108
  let e = r(R, {
108
109
  crossAxis: !1,
109
- itemSelector: x,
110
+ itemSelector: C,
110
111
  loop: H,
111
112
  onMove: (e, t) => {
112
113
  if (J.current?.reveal(t), Q.current.activation !== "automatic") return;
@@ -116,7 +117,7 @@ function E({ activation: a, children: o, className: s, defaultValue: v, deferPan
116
117
  orientation: () => W
117
118
  });
118
119
  q.current = e;
119
- let t = n(R, { itemSelector: x }), i = new MutationObserver(() => {
120
+ let t = n(R, { itemSelector: C }), i = new MutationObserver(() => {
120
121
  e.refresh(), J.current?.refresh();
121
122
  });
122
123
  return i.observe(R, {
@@ -129,12 +130,18 @@ function E({ activation: a, children: o, className: s, defaultValue: v, deferPan
129
130
  R,
130
131
  H,
131
132
  W
132
- ]), l(() => {
133
+ ]), T(() => {
134
+ if (R !== null) return y(R, {
135
+ orientation: () => W,
136
+ part: "marker",
137
+ target: () => R.querySelector(w)
138
+ }).destroy;
139
+ }, [R, W]), l(() => {
133
140
  if (R === null || W === "vertical") {
134
- B(g);
141
+ B(_);
135
142
  return;
136
143
  }
137
- let e = _(R, { onChange: B });
144
+ let e = v(R, { onChange: B });
138
145
  return J.current = e, B(e.state()), () => {
139
146
  e.destroy(), J.current = null;
140
147
  };
@@ -151,24 +158,24 @@ function E({ activation: a, children: o, className: s, defaultValue: v, deferPan
151
158
  let e = Y()[X(Q.current.value)];
152
159
  e !== void 0 && J.current?.reveal(e);
153
160
  }, [$]);
154
- let ve = {
161
+ let xe = {
155
162
  activation: V,
156
- attachList: se,
163
+ attachList: ue,
157
164
  disabled: G,
158
- dismiss: _e,
165
+ dismiss: be,
159
166
  identify: (e) => ({
160
- panelId: `${I}panel-${w(e)}`,
161
- tabId: `${I}tab-${w(e)}`
167
+ panelId: `${I}panel-${O(e)}`,
168
+ tabId: `${I}tab-${O(e)}`
162
169
  }),
163
170
  mount: U,
164
171
  orientation: W,
165
172
  seen: (e) => K.current.has(e),
166
173
  select: Z,
167
- shownValue: he,
174
+ shownValue: ve,
168
175
  value: L
169
- }, ye = {
170
- ...ie,
171
- children: /* @__PURE__ */ h(p, { children: [o, $ ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
176
+ }, Se = {
177
+ ...se,
178
+ children: /* @__PURE__ */ g(m, { children: [o, $ ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("button", {
172
179
  "aria-hidden": "true",
173
180
  "data-direction": "start",
174
181
  "data-part": "scroll",
@@ -176,11 +183,11 @@ function E({ activation: a, children: o, className: s, defaultValue: v, deferPan
176
183
  onClick: () => J.current?.page(-1),
177
184
  tabIndex: -1,
178
185
  type: "button",
179
- children: /* @__PURE__ */ m(t, {
186
+ children: /* @__PURE__ */ h(t, {
180
187
  directional: !0,
181
- children: /* @__PURE__ */ m(e, { name: "chevron-right" })
188
+ children: /* @__PURE__ */ h(e, { name: "chevron-right" })
182
189
  })
183
- }), /* @__PURE__ */ m("button", {
190
+ }), /* @__PURE__ */ h("button", {
184
191
  "aria-hidden": "true",
185
192
  "data-direction": "end",
186
193
  "data-part": "scroll",
@@ -188,39 +195,39 @@ function E({ activation: a, children: o, className: s, defaultValue: v, deferPan
188
195
  onClick: () => J.current?.page(1),
189
196
  tabIndex: -1,
190
197
  type: "button",
191
- children: /* @__PURE__ */ m(t, {
198
+ children: /* @__PURE__ */ h(t, {
192
199
  directional: !0,
193
- children: /* @__PURE__ */ m(e, { name: "chevron-right" })
200
+ children: /* @__PURE__ */ h(e, { name: "chevron-right" })
194
201
  })
195
202
  })] }) : null] }),
196
203
  className: s,
197
- "data-activation-direction": ce,
204
+ "data-activation-direction": de,
198
205
  ...G ? { "data-disabled": "" } : {},
199
- "data-fit": ue,
206
+ "data-fit": pe,
200
207
  "data-orientation": W,
201
208
  ...z.overflowing ? { "data-overflowing": "" } : {},
202
209
  "data-part": "root",
203
- "data-size": de,
204
- "data-track": fe,
210
+ "data-size": me,
211
+ "data-track": he,
205
212
  "data-ui": "tabs",
206
- "data-variant": pe,
207
- style: te
213
+ "data-variant": ge,
214
+ style: re
208
215
  };
209
- return /* @__PURE__ */ m(S.Provider, {
210
- value: ve,
211
- children: N === void 0 ? /* @__PURE__ */ m("div", {
212
- ...ye,
213
- ref: M
214
- }) : N(ye)
216
+ return /* @__PURE__ */ h(E.Provider, {
217
+ value: xe,
218
+ children: te === void 0 ? /* @__PURE__ */ h("div", {
219
+ ...Se,
220
+ ref: ee
221
+ }) : te(Se)
215
222
  });
216
223
  }
217
224
  //#endregion
218
225
  //#region src/tabs/tabs-parts.tsx
219
- function D(e) {
226
+ function j(e) {
220
227
  return e.detail === 0 ? "keyboard" : "pointer";
221
228
  }
222
- function O({ children: e, ref: t, render: n, ...r }) {
223
- let i = C(), a = o((e) => {
229
+ function M({ children: e, ref: t, render: n, ...r }) {
230
+ let i = D(), a = o((e) => {
224
231
  if (i.attachList(e), typeof t == "function") return t(e);
225
232
  t && (t.current = e);
226
233
  }, [t, i.attachList]), s = {
@@ -231,7 +238,7 @@ function O({ children: e, ref: t, render: n, ...r }) {
231
238
  "data-part": "list",
232
239
  role: "tablist"
233
240
  };
234
- return n === void 0 ? /* @__PURE__ */ m("div", {
241
+ return n === void 0 ? /* @__PURE__ */ h("div", {
235
242
  ...s,
236
243
  ref: a
237
244
  }) : n({
@@ -239,81 +246,81 @@ function O({ children: e, ref: t, render: n, ...r }) {
239
246
  ref: a
240
247
  });
241
248
  }
242
- function k({ children: n, className: r, controls: i, disabled: a, dismissLabel: o, dismissible: s = !1, end: c, href: l, onClick: u, onKeyDown: d, ref: f, render: g, start: _, style: v, value: y, ...b }) {
243
- let x = C(), { panelId: S, tabId: w } = x.identify(y), T = i ?? S, E = x.value === y, O = x.disabled === !0 || a === !0;
244
- function k(e) {
245
- u?.(e), !e.defaultPrevented && (O || l !== void 0 && (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) || (l !== void 0 && e.preventDefault(), x.select(y, D(e), e)));
249
+ function N({ children: n, className: r, controls: i, disabled: a, dismissLabel: o, dismissible: s = !1, end: c, href: l, onClick: u, onKeyDown: d, ref: f, render: p, start: _, style: v, value: y, ...b }) {
250
+ let x = D(), { panelId: S, tabId: C } = x.identify(y), w = i ?? S, T = x.value === y, E = x.disabled === !0 || a === !0;
251
+ function O(e) {
252
+ u?.(e), !e.defaultPrevented && (E || l !== void 0 && (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) || (l !== void 0 && e.preventDefault(), x.select(y, j(e), e)));
246
253
  }
247
- function A(e) {
248
- d?.(e), !(e.defaultPrevented || e.repeat) && s && !O && e.key === "Delete" && (e.preventDefault(), x.dismiss(y, "keyboard", e));
254
+ function k(e) {
255
+ d?.(e), !(e.defaultPrevented || e.repeat) && s && !E && e.key === "Delete" && (e.preventDefault(), x.dismiss(y, "keyboard", e));
249
256
  }
250
- let j = /* @__PURE__ */ h(p, { children: [
251
- _ === void 0 ? null : /* @__PURE__ */ m("span", {
257
+ let A = /* @__PURE__ */ g(m, { children: [
258
+ _ === void 0 ? null : /* @__PURE__ */ h("span", {
252
259
  "data-part": "start",
253
260
  children: _
254
261
  }),
255
- /* @__PURE__ */ m("span", {
262
+ /* @__PURE__ */ h("span", {
256
263
  "data-part": "label",
257
264
  children: n
258
265
  }),
259
- c === void 0 ? null : /* @__PURE__ */ m("span", {
266
+ c === void 0 ? null : /* @__PURE__ */ h("span", {
260
267
  "data-part": "end",
261
268
  children: c
262
269
  })
263
- ] }), M = l === void 0 ? /* @__PURE__ */ m("button", {
270
+ ] }), M = l === void 0 ? /* @__PURE__ */ h("button", {
264
271
  ...b,
265
- "aria-controls": T,
272
+ "aria-controls": w,
266
273
  "aria-keyshortcuts": s ? "Delete" : void 0,
267
- "aria-selected": E,
274
+ "aria-selected": T,
268
275
  "data-part": "tab",
269
276
  "data-value": y,
270
- disabled: O,
271
- id: w,
272
- onClick: k,
273
- onKeyDown: A,
277
+ disabled: E,
278
+ id: C,
279
+ onClick: O,
280
+ onKeyDown: k,
274
281
  ref: f,
275
282
  role: "tab",
276
- tabIndex: E ? 0 : -1,
283
+ tabIndex: T ? 0 : -1,
277
284
  type: "button",
278
- children: j
279
- }) : /* @__PURE__ */ m("a", {
285
+ children: A
286
+ }) : /* @__PURE__ */ h("a", {
280
287
  ...b,
281
- "aria-controls": T,
282
- "aria-disabled": O === !0 || void 0,
288
+ "aria-controls": w,
289
+ "aria-disabled": E === !0 || void 0,
283
290
  "aria-keyshortcuts": s ? "Delete" : void 0,
284
- "aria-selected": E,
291
+ "aria-selected": T,
285
292
  "data-part": "tab",
286
293
  "data-value": y,
287
294
  href: l,
288
- id: w,
289
- onClick: k,
290
- onKeyDown: A,
295
+ id: C,
296
+ onClick: O,
297
+ onKeyDown: k,
291
298
  ref: f,
292
299
  role: "tab",
293
- tabIndex: E ? 0 : -1,
294
- children: j
300
+ tabIndex: T ? 0 : -1,
301
+ children: A
295
302
  }), N = {
296
- children: /* @__PURE__ */ h(p, { children: [M, s ? /* @__PURE__ */ m("button", {
303
+ children: /* @__PURE__ */ g(m, { children: [M, s ? /* @__PURE__ */ h("button", {
297
304
  "aria-label": o,
298
305
  "data-part": "dismiss",
299
- disabled: O,
306
+ disabled: E,
300
307
  onClick: (e) => {
301
308
  e.stopPropagation(), x.dismiss(y, "pointer", e);
302
309
  },
303
310
  tabIndex: -1,
304
311
  type: "button",
305
- children: /* @__PURE__ */ m(t, { children: /* @__PURE__ */ m(e, { name: "x" }) })
312
+ children: /* @__PURE__ */ h(t, { children: /* @__PURE__ */ h(e, { name: "x" }) })
306
313
  }) : null] }),
307
314
  className: r,
308
315
  "data-part": "item",
309
- ...E ? { "data-selected": "" } : {},
316
+ ...T ? { "data-selected": "" } : {},
310
317
  role: "presentation",
311
318
  style: v
312
319
  };
313
- return g === void 0 ? /* @__PURE__ */ m("div", { ...N }) : g(N);
320
+ return p === void 0 ? /* @__PURE__ */ h("div", { ...N }) : p(N);
314
321
  }
315
- function A({ children: e, ref: t, render: n, value: r, ...i }) {
316
- let a = C(), { panelId: o, tabId: s } = a.identify(r), c = a.shownValue === r, l = c && a.value !== a.shownValue, u = c || a.mount === "eager" || a.mount === "lazy" && a.seen(r), d = {
322
+ function P({ children: e, ref: t, render: n, value: r, ...i }) {
323
+ let a = D(), { panelId: o, tabId: s } = a.identify(r), c = a.shownValue === r, l = c && a.value !== a.shownValue, u = c || a.mount === "eager" || a.mount === "lazy" && a.seen(r), d = {
317
324
  ...i,
318
325
  "aria-labelledby": s,
319
326
  ...l ? {
@@ -327,22 +334,22 @@ function A({ children: e, ref: t, render: n, value: r, ...i }) {
327
334
  role: "tabpanel",
328
335
  tabIndex: 0
329
336
  };
330
- return n === void 0 ? /* @__PURE__ */ m("div", {
337
+ return n === void 0 ? /* @__PURE__ */ h("div", {
331
338
  ...d,
332
339
  ref: t
333
340
  }) : n(d);
334
341
  }
335
- function j({ children: e, ref: t, render: n, ...r }) {
336
- C();
342
+ function ee({ children: e, ref: t, render: n, ...r }) {
343
+ D();
337
344
  let i = {
338
345
  ...r,
339
346
  children: e,
340
347
  "data-part": "actions"
341
348
  };
342
- return n === void 0 ? /* @__PURE__ */ m("div", {
349
+ return n === void 0 ? /* @__PURE__ */ h("div", {
343
350
  ...i,
344
351
  ref: t
345
352
  }) : n(i);
346
353
  }
347
354
  //#endregion
348
- export { E as a, y as c, A as i, j as n, C as o, O as r, b as s, k as t };
355
+ export { A as a, x as c, P as i, ee as n, D as o, M as r, S as s, N as t };
package/dist/tabs.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./tabs-BtHmjlnM.js";
1
+ import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./tabs-HWmvOKM4.js";
2
2
  export { s as Tab, r as TabActions, a as TabList, n as TabPanel, e as Tabs, o as TabsDefaultsProvider, i as useTabs, t as useTabsDefaults };
@@ -1,6 +1,6 @@
1
1
  import { n as e, t } from "./icon-T9Yt4tnm.js";
2
2
  import { n, r } from "./i18n-DpW8lqJ1.js";
3
- import { b as i } from "./field-NJaCxl2h.js";
3
+ import { b as i } from "./field-BxQFpOXS.js";
4
4
  /* empty css */
5
5
  import { createArrowNavigation as a, createRemovalFocus as o } from "@slotted/core/focus";
6
6
  import { createControllable as s } from "@slotted/core/state";
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./tags-input-CcOkm0AW.js";
1
+ import { i as e, n as t, r as n, t as r } from "./tags-input-pbv6x1Pi.js";
2
2
  export { t as TAGS_INPUT_FALLBACK, r as TagsInput, n as TagsInputDefaultsProvider, e as useTagsInputDefaults };
@@ -1,6 +1,6 @@
1
1
  import { n as e, t } from "./icon-T9Yt4tnm.js";
2
2
  import { r as n } from "./i18n-DpW8lqJ1.js";
3
- import { b as r, h as i } from "./field-NJaCxl2h.js";
3
+ import { b as r, h as i } from "./field-BxQFpOXS.js";
4
4
  import { createControllable as a } from "@slotted/core/state";
5
5
  import { createContext as o, useContext as s, useEffect as c, useLayoutEffect as ee, useRef as l, useState as u } from "react";
6
6
  import { Fragment as te, jsx as d, jsxs as ne } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./text-field-DLfIZ0fk.js";
1
+ import { i as e, n as t, r as n, t as r } from "./text-field-CbQ6UCAP.js";
2
2
  export { r as TextField, t as TextFieldAction, n as TextFieldDefaultsProvider, e as useTextFieldDefaults };
@@ -1,4 +1,4 @@
1
- import { b as e, h as t } from "./field-NJaCxl2h.js";
1
+ import { b as e, h as t } from "./field-BxQFpOXS.js";
2
2
  import { createControllable as n } from "@slotted/core/state";
3
3
  import { createContext as r, useContext as i, useEffect as a, useRef as o, useState as s } from "react";
4
4
  import { jsx as c } from "react/jsx-runtime";
package/dist/textarea.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./textarea-CBJBJBi6.js";
1
+ import { n as e, r as t, t as n } from "./textarea-DJSfhrXH.js";
2
2
  export { n as Textarea, e as TextareaDefaultsProvider, t as useTextareaDefaults };
@@ -1,6 +1,6 @@
1
1
  import { n as e, t } from "./icon-T9Yt4tnm.js";
2
2
  import { n, r } from "./i18n-DpW8lqJ1.js";
3
- import { b as i } from "./field-NJaCxl2h.js";
3
+ import { b as i } from "./field-BxQFpOXS.js";
4
4
  import { createControllable as ee } from "@slotted/core/state";
5
5
  import { createContext as a, useCallback as o, useContext as s, useEffect as c, useId as l, useImperativeHandle as u, useMemo as d, useRef as f, useState as p } from "react";
6
6
  import { Fragment as te, jsx as m, jsxs as h } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./time-field-DrhiCtUl.js";
1
+ import { n as e, r as t, t as n } from "./time-field-BI9n607q.js";
2
2
  export { n as TimeField, e as TimeFieldDefaultsProvider, t as useTimeFieldDefaults };