@slotted/react 0.1.0-beta.4 → 0.1.0-beta.6
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.
- package/README.md +16 -1
- package/dist/{action-bar-OACchRZw.js → action-bar-ti3e6FK1.js} +1 -1
- package/dist/action-bar.js +1 -1
- package/dist/{app-shell-CmYvnu_7.js → app-shell-nnSP44OO.js} +271 -267
- package/dist/app-shell.js +1 -1
- package/dist/bin/slotted-agent-docs.mjs +297 -0
- package/dist/{cascader-D1AhTyBL.js → cascader-Cn2Acpcv.js} +227 -210
- package/dist/cascader.js +1 -1
- package/dist/chart-04i6NZQA.js +968 -0
- package/dist/chart.js +1 -1
- package/dist/{checkbox-DfxFHZaU.js → checkbox-B4Sb1eXj.js} +3 -3
- package/dist/{checkbox-group-9sDgrV5Z.js → checkbox-group-LpGMuq9w.js} +2 -2
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{code-block-CFHf8uTm.js → code-block-CTNiyt0U.js} +1 -1
- package/dist/code-block.js +1 -1
- package/dist/{color-picker-CwbWzCKg.js → color-picker-BcRCeISx.js} +4 -4
- package/dist/color-picker.js +1 -1
- package/dist/{column-manager-CTtizVhm.js → column-manager-BtkYLs5G.js} +4 -4
- package/dist/column-manager.js +1 -1
- package/dist/{combobox-BVMI9lg8.js → combobox-C1D5doWM.js} +227 -198
- package/dist/combobox.js +1 -1
- package/dist/{context-menu-BuST6W94.js → context-menu-B00UIBVC.js} +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/{currency-field-DD9A5U3D.js → currency-field-Dti9JFu0.js} +1 -1
- package/dist/currency-field.js +1 -1
- package/dist/{dashboard-grid-CBMP_-JV.js → dashboard-grid-CoLKLvYL.js} +1 -1
- package/dist/dashboard-grid.js +1 -1
- package/dist/{data-grid-Eb-a4jg3.js → data-grid-DX95Y7mY.js} +18 -18
- package/dist/data-grid.js +1 -1
- package/dist/{data-list-oICmxGkA.js → data-list-CWYTPNm-.js} +2 -2
- package/dist/data-list.js +1 -1
- package/dist/{date-field-Hr-OCU-H.js → date-field-BxEpqAPg.js} +1 -1
- package/dist/date-field.js +1 -1
- package/dist/date-picker-DRk9SZp1.js +308 -0
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker-6Yz7avTS.js +483 -0
- package/dist/date-range-picker.js +1 -1
- package/dist/{datetime-field-B8TrmsDK.js → datetime-field-D2f9u6im.js} +1 -1
- package/dist/datetime-field.js +1 -1
- package/dist/datetime-picker-STqSWMkH.js +645 -0
- package/dist/datetime-picker.js +1 -1
- package/dist/datetime-range-picker-DQNQwr3K.js +1000 -0
- package/dist/datetime-range-picker.js +1 -1
- package/dist/{detail-panel-CW53lUjp.js → detail-panel-z6WGleP4.js} +1 -1
- package/dist/detail-panel.js +1 -1
- package/dist/docs/AGENTS.snippet.md +2 -0
- package/dist/docs/app-shell.examples.md +1 -1
- package/dist/docs/app-shell.json +4 -4
- package/dist/docs/app-shell.md +2 -2
- package/dist/docs/guidelines/README.md +2 -2
- package/dist/docs/guidelines/index.md +1 -1
- package/dist/docs/guidelines/own-elements.md +1 -1
- package/dist/docs/page-header.json +1 -0
- package/dist/docs/page-header.md +1 -1
- package/dist/docs/segmented-control.json +7 -11
- package/dist/docs/segmented-control.md +1 -1
- package/dist/docs/skills/build-own-element/SKILL.md +6 -6
- package/dist/docs/skills/compose-screen/SKILL.md +6 -6
- package/dist/docs/skills/review-screen/SKILL.md +6 -6
- package/dist/docs/skills/theme-app/SKILL.md +1 -1
- package/dist/docs/skills/waiting-states/SKILL.md +2 -2
- package/dist/docs/tabs.json +16 -3
- package/dist/docs/tabs.md +3 -2
- package/dist/{entity-picker-Dn1T7JCq.js → entity-picker-BdySwW8F.js} +274 -256
- package/dist/entity-picker.js +1 -1
- package/dist/{event-calendar-CnF3iIZD.js → event-calendar-CiphPXdV.js} +4 -4
- package/dist/event-calendar.js +1 -1
- package/dist/{field-NJaCxl2h.js → field-BxQFpOXS.js} +1 -1
- package/dist/{field-group-hAzVa2O9.js → field-group-DcN_hiZN.js} +1 -1
- package/dist/field-group.js +1 -1
- package/dist/field.js +1 -1
- package/dist/{filter-bar-CHyy1o--.js → filter-bar-C_dXljI_.js} +10 -10
- package/dist/filter-bar.js +1 -1
- package/dist/{hover-card-BJE5dtaQ.js → hover-card-DpVzwvDJ.js} +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/{import-export-center-jF37b909.js → import-export-center-BQnMJz4g.js} +3 -3
- package/dist/import-export-center.js +1 -1
- package/dist/index.js +63 -63
- package/dist/{listbox-Dv856z9I.js → listbox-D0MJcAMm.js} +1 -1
- package/dist/listbox.js +1 -1
- package/dist/{markdown-CeG8mUbI.js → markdown-IiVoh6yi.js} +2 -2
- package/dist/markdown.js +1 -1
- package/dist/menu-parts-D6v_mz6O.js +809 -0
- package/dist/menu.js +1 -1
- package/dist/{menubar-b2CruimJ.js → menubar-DApIg1eR.js} +1 -1
- package/dist/menubar.js +1 -1
- package/dist/{multi-select-DQ5ds0fX.js → multi-select-B8z6ApgW.js} +286 -257
- package/dist/multi-select.js +1 -1
- package/dist/{notification-center-C1iWWl5Y.js → notification-center-CGEEHcRA.js} +2 -2
- package/dist/notification-center.js +1 -1
- package/dist/{number-field-BFIAmv-z.js → number-field-DXk1TAXA.js} +1 -1
- package/dist/number-field.js +1 -1
- package/dist/{otp-input-BNQhuKaT.js → otp-input-CI-kdNgx.js} +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/{popover-Be7JWbGJ.js → popover-DEp8Bf3e.js} +186 -166
- package/dist/popover.js +1 -1
- package/dist/{prompt-composer-BxpdkTpZ.js → prompt-composer-DdcU3S3L.js} +1 -1
- package/dist/prompt-composer.js +1 -1
- package/dist/{radio-group-BaVIP9UH.js → radio-group-D8csBZ8Z.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{rating-DYBQBzwB.js → rating-rI3b5zII.js} +1 -1
- package/dist/rating.js +1 -1
- package/dist/{saved-views-DlE_--Z9.js → saved-views-B3brBTD9.js} +4 -4
- package/dist/saved-views.js +1 -1
- package/dist/scroll-area-DQ_ansLu.js +112 -0
- package/dist/scroll-area.js +1 -1
- package/dist/{segmented-control-DmuOGiu6.js → segmented-control-C-PzkTtg.js} +2 -2
- package/dist/segmented-control.js +1 -1
- package/dist/{select-M7Io4UL9.js → select-BUylPwpb.js} +241 -203
- package/dist/select.js +1 -1
- package/dist/{side-navigation-CBLtCzuJ.js → side-navigation-Bm-BZma1.js} +156 -140
- package/dist/side-navigation.js +1 -1
- package/dist/{slider-DTes4HLF.js → slider-fp7kyg-6.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{split-button-CPgHiy9G.js → split-button-DKRm0j5c.js} +1 -1
- package/dist/split-button.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/{switch-DQzuIhPX.js → switch-aVoc4C2F.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/{table-U9eJYCuB.js → table-BYEvFr4P.js} +276 -275
- package/dist/table.js +1 -1
- package/dist/{tabs-BtHmjlnM.js → tabs-HWmvOKM4.js} +109 -102
- package/dist/tabs.js +1 -1
- package/dist/{tags-input-CcOkm0AW.js → tags-input-pbv6x1Pi.js} +1 -1
- package/dist/tags-input.js +1 -1
- package/dist/{text-field-DLfIZ0fk.js → text-field-CbQ6UCAP.js} +1 -1
- package/dist/text-field.js +1 -1
- package/dist/{textarea-CBJBJBi6.js → textarea-DJSfhrXH.js} +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{time-field-DrhiCtUl.js → time-field-BI9n607q.js} +1 -1
- package/dist/time-field.js +1 -1
- package/dist/time-picker-D6SlQWNF.js +402 -0
- package/dist/time-picker.js +1 -1
- package/dist/time-range-picker-CcV3_45h.js +751 -0
- package/dist/time-range-picker.js +1 -1
- package/dist/{toggle-group-7iBR9Rn1.js → toggle-group-i7JPO8BM.js} +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/{toolbar-DDZpEftQ.js → toolbar-B9knmgHA.js} +1 -1
- package/dist/toolbar.js +1 -1
- package/dist/tooltip-CgjIROUy.js +410 -0
- package/dist/tooltip.js +1 -1
- package/dist/{top-navigation-e-tWMGNr.js → top-navigation-DiG2PF5W.js} +2 -2
- package/dist/top-navigation.js +1 -1
- package/dist/{transfer-CqZOTLMP.js → transfer--UOQVeKE.js} +5 -5
- package/dist/transfer.js +1 -1
- package/dist/types/app-shell/app-shell-parts.d.ts +6 -4
- package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
- package/dist/types/app-shell/app-shell.d.ts.map +1 -1
- package/dist/types/cascader/cascader.d.ts.map +1 -1
- package/dist/types/chart/chart.d.ts.map +1 -1
- package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
- package/dist/types/date-picker/date-picker.d.ts.map +1 -1
- package/dist/types/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
- package/dist/types/datetime-range-picker/datetime-range-picker.d.ts.map +1 -1
- package/dist/types/entity-picker/entity-picker-popup.d.ts.map +1 -1
- package/dist/types/menu/menu-parts.d.ts.map +1 -1
- package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
- package/dist/types/popover/popover-parts.d.ts.map +1 -1
- package/dist/types/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/types/select/select-parts.d.ts.map +1 -1
- package/dist/types/side-navigation/side-navigation-parts.d.ts.map +1 -1
- package/dist/types/stat-card/stat-card.types.d.ts +2 -2
- package/dist/types/stat-card/stat-card.types.d.ts.map +1 -1
- package/dist/types/table/table-content.d.ts.map +1 -1
- package/dist/types/tabs/tabs-parts.d.ts +2 -4
- package/dist/types/tabs/tabs-parts.d.ts.map +1 -1
- package/dist/types/tabs/tabs.d.ts.map +1 -1
- package/dist/types/time-picker/time-picker.d.ts.map +1 -1
- package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
- package/dist/types/tooltip/tooltip-parts.d.ts.map +1 -1
- package/dist/{upload-DjnlVR8y.js → upload-CLX5cURk.js} +1 -1
- package/dist/upload.js +1 -1
- package/package.json +10 -7
- package/dist/chart-O0ZhkzJe.js +0 -966
- package/dist/date-picker-D3-y2Jxw.js +0 -295
- package/dist/date-range-picker-y3b82Wmf.js +0 -471
- package/dist/datetime-picker-CIRHVLQp.js +0 -629
- package/dist/datetime-range-picker-DM-1m98z.js +0 -994
- package/dist/menu-parts-W58pVNUt.js +0 -786
- package/dist/scroll-area-BriwmvYY.js +0 -111
- package/dist/time-picker-CRQsMJbQ.js +0 -396
- package/dist/time-range-picker-DlZJsj1e.js +0 -745
- 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-
|
|
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,
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { NOT_OVERFLOWING as
|
|
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
|
|
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
|
|
19
|
-
return s(
|
|
19
|
+
function x() {
|
|
20
|
+
return s(b);
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
-
let n =
|
|
23
|
-
return /* @__PURE__ */
|
|
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
|
|
40
|
-
function
|
|
41
|
-
let e = 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
|
|
46
|
+
function O(e) {
|
|
46
47
|
return e.replace(/[^\w-]/g, (e) => `-${e.charCodeAt(0).toString(16)}-`);
|
|
47
48
|
}
|
|
48
|
-
function
|
|
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
|
|
62
|
-
let F =
|
|
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 =
|
|
65
|
+
let q = f(null), J = f(null);
|
|
65
66
|
function Y() {
|
|
66
|
-
return R === null ? [] : [...R.querySelectorAll(
|
|
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:
|
|
75
|
+
controlled: ae,
|
|
75
76
|
initial: L,
|
|
76
77
|
onRequest: (e) => {
|
|
77
|
-
r = e.cancelled, e.value !== void 0 &&
|
|
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 &&
|
|
83
|
+
o !== -1 && s !== -1 && fe(s > o ? "forward" : "backward"), K.current.add(e), a && le(e);
|
|
83
84
|
}
|
|
84
|
-
function
|
|
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
|
|
89
|
-
let r =
|
|
90
|
-
if (
|
|
91
|
-
let i =
|
|
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 =
|
|
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:
|
|
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:
|
|
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
|
-
]),
|
|
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(
|
|
141
|
+
B(_);
|
|
135
142
|
return;
|
|
136
143
|
}
|
|
137
|
-
let e =
|
|
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
|
|
161
|
+
let xe = {
|
|
155
162
|
activation: V,
|
|
156
|
-
attachList:
|
|
163
|
+
attachList: ue,
|
|
157
164
|
disabled: G,
|
|
158
|
-
dismiss:
|
|
165
|
+
dismiss: be,
|
|
159
166
|
identify: (e) => ({
|
|
160
|
-
panelId: `${I}panel-${
|
|
161
|
-
tabId: `${I}tab-${
|
|
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:
|
|
174
|
+
shownValue: ve,
|
|
168
175
|
value: L
|
|
169
|
-
},
|
|
170
|
-
...
|
|
171
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
186
|
+
children: /* @__PURE__ */ h(t, {
|
|
180
187
|
directional: !0,
|
|
181
|
-
children: /* @__PURE__ */
|
|
188
|
+
children: /* @__PURE__ */ h(e, { name: "chevron-right" })
|
|
182
189
|
})
|
|
183
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
198
|
+
children: /* @__PURE__ */ h(t, {
|
|
192
199
|
directional: !0,
|
|
193
|
-
children: /* @__PURE__ */
|
|
200
|
+
children: /* @__PURE__ */ h(e, { name: "chevron-right" })
|
|
194
201
|
})
|
|
195
202
|
})] }) : null] }),
|
|
196
203
|
className: s,
|
|
197
|
-
"data-activation-direction":
|
|
204
|
+
"data-activation-direction": de,
|
|
198
205
|
...G ? { "data-disabled": "" } : {},
|
|
199
|
-
"data-fit":
|
|
206
|
+
"data-fit": pe,
|
|
200
207
|
"data-orientation": W,
|
|
201
208
|
...z.overflowing ? { "data-overflowing": "" } : {},
|
|
202
209
|
"data-part": "root",
|
|
203
|
-
"data-size":
|
|
204
|
-
"data-track":
|
|
210
|
+
"data-size": me,
|
|
211
|
+
"data-track": he,
|
|
205
212
|
"data-ui": "tabs",
|
|
206
|
-
"data-variant":
|
|
207
|
-
style:
|
|
213
|
+
"data-variant": ge,
|
|
214
|
+
style: re
|
|
208
215
|
};
|
|
209
|
-
return /* @__PURE__ */
|
|
210
|
-
value:
|
|
211
|
-
children:
|
|
212
|
-
...
|
|
213
|
-
ref:
|
|
214
|
-
}) :
|
|
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
|
|
226
|
+
function j(e) {
|
|
220
227
|
return e.detail === 0 ? "keyboard" : "pointer";
|
|
221
228
|
}
|
|
222
|
-
function
|
|
223
|
-
let i =
|
|
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__ */
|
|
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
|
|
243
|
-
let x =
|
|
244
|
-
function
|
|
245
|
-
u?.(e), !e.defaultPrevented && (
|
|
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
|
|
248
|
-
d?.(e), !(e.defaultPrevented || e.repeat) && s && !
|
|
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
|
|
251
|
-
_ === void 0 ? null : /* @__PURE__ */
|
|
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__ */
|
|
262
|
+
/* @__PURE__ */ h("span", {
|
|
256
263
|
"data-part": "label",
|
|
257
264
|
children: n
|
|
258
265
|
}),
|
|
259
|
-
c === void 0 ? null : /* @__PURE__ */
|
|
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__ */
|
|
270
|
+
] }), M = l === void 0 ? /* @__PURE__ */ h("button", {
|
|
264
271
|
...b,
|
|
265
|
-
"aria-controls":
|
|
272
|
+
"aria-controls": w,
|
|
266
273
|
"aria-keyshortcuts": s ? "Delete" : void 0,
|
|
267
|
-
"aria-selected":
|
|
274
|
+
"aria-selected": T,
|
|
268
275
|
"data-part": "tab",
|
|
269
276
|
"data-value": y,
|
|
270
|
-
disabled:
|
|
271
|
-
id:
|
|
272
|
-
onClick:
|
|
273
|
-
onKeyDown:
|
|
277
|
+
disabled: E,
|
|
278
|
+
id: C,
|
|
279
|
+
onClick: O,
|
|
280
|
+
onKeyDown: k,
|
|
274
281
|
ref: f,
|
|
275
282
|
role: "tab",
|
|
276
|
-
tabIndex:
|
|
283
|
+
tabIndex: T ? 0 : -1,
|
|
277
284
|
type: "button",
|
|
278
|
-
children:
|
|
279
|
-
}) : /* @__PURE__ */
|
|
285
|
+
children: A
|
|
286
|
+
}) : /* @__PURE__ */ h("a", {
|
|
280
287
|
...b,
|
|
281
|
-
"aria-controls":
|
|
282
|
-
"aria-disabled":
|
|
288
|
+
"aria-controls": w,
|
|
289
|
+
"aria-disabled": E === !0 || void 0,
|
|
283
290
|
"aria-keyshortcuts": s ? "Delete" : void 0,
|
|
284
|
-
"aria-selected":
|
|
291
|
+
"aria-selected": T,
|
|
285
292
|
"data-part": "tab",
|
|
286
293
|
"data-value": y,
|
|
287
294
|
href: l,
|
|
288
|
-
id:
|
|
289
|
-
onClick:
|
|
290
|
-
onKeyDown:
|
|
295
|
+
id: C,
|
|
296
|
+
onClick: O,
|
|
297
|
+
onKeyDown: k,
|
|
291
298
|
ref: f,
|
|
292
299
|
role: "tab",
|
|
293
|
-
tabIndex:
|
|
294
|
-
children:
|
|
300
|
+
tabIndex: T ? 0 : -1,
|
|
301
|
+
children: A
|
|
295
302
|
}), N = {
|
|
296
|
-
children: /* @__PURE__ */
|
|
303
|
+
children: /* @__PURE__ */ g(m, { children: [M, s ? /* @__PURE__ */ h("button", {
|
|
297
304
|
"aria-label": o,
|
|
298
305
|
"data-part": "dismiss",
|
|
299
|
-
disabled:
|
|
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__ */
|
|
312
|
+
children: /* @__PURE__ */ h(t, { children: /* @__PURE__ */ h(e, { name: "x" }) })
|
|
306
313
|
}) : null] }),
|
|
307
314
|
className: r,
|
|
308
315
|
"data-part": "item",
|
|
309
|
-
...
|
|
316
|
+
...T ? { "data-selected": "" } : {},
|
|
310
317
|
role: "presentation",
|
|
311
318
|
style: v
|
|
312
319
|
};
|
|
313
|
-
return
|
|
320
|
+
return p === void 0 ? /* @__PURE__ */ h("div", { ...N }) : p(N);
|
|
314
321
|
}
|
|
315
|
-
function
|
|
316
|
-
let a =
|
|
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__ */
|
|
337
|
+
return n === void 0 ? /* @__PURE__ */ h("div", {
|
|
331
338
|
...d,
|
|
332
339
|
ref: t
|
|
333
340
|
}) : n(d);
|
|
334
341
|
}
|
|
335
|
-
function
|
|
336
|
-
|
|
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__ */
|
|
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 {
|
|
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-
|
|
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-
|
|
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";
|
package/dist/tags-input.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./tags-input-
|
|
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-
|
|
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";
|
package/dist/text-field.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./text-field-
|
|
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-
|
|
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-
|
|
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-
|
|
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";
|
package/dist/time-field.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./time-field-
|
|
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 };
|