@jfrader/ui 0.5.0 → 0.5.1
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/dist/accordion-DLul6vIl.js +205 -0
- package/dist/accordion.js +1 -1
- package/dist/{announcement-bar-B58xempt.js → announcement-bar-Dlbq5-9D.js} +1 -1
- package/dist/announcement-bar.js +1 -1
- package/dist/avatar-CaGJHy1N.js +145 -0
- package/dist/{avatar-group-DOQQuV51.js → avatar-group-M1opAQEG.js} +1 -1
- package/dist/avatar-group.js +1 -1
- package/dist/avatar.js +1 -1
- package/dist/badge-CjM5Agqk.js +119 -0
- package/dist/badge.js +1 -1
- package/dist/{bottom-sheet-DPJBFkie.js → bottom-sheet-DjZOPq4k.js} +10 -9
- package/dist/bottom-sheet.js +1 -1
- package/dist/{breadcrumbs-Cfw_hgt2.js → breadcrumbs-BDK_LiwH.js} +10 -3
- package/dist/breadcrumbs.js +1 -1
- package/dist/{button-C92uYFJW.js → button-NLY0h6EJ.js} +7 -7
- package/dist/button.js +1 -1
- package/dist/{calendar-B3Svu0X2.js → calendar-BzJdv_SZ.js} +3 -1
- package/dist/calendar.js +1 -1
- package/dist/card-Ca4KQKYQ.js +154 -0
- package/dist/card.js +1 -1
- package/dist/carousel-B7OrvD6J.js +474 -0
- package/dist/carousel.js +1 -1
- package/dist/{checkbox-cFquiSdy.js → checkbox-DKSzExj2.js} +16 -15
- package/dist/checkbox.js +1 -1
- package/dist/{chip-group-DTQd_M-G.js → chip-group-DjQ0_6Y9.js} +2 -1
- package/dist/chip-group.js +1 -1
- package/dist/{code-block-ahnRi-g8.js → code-block-B5we2lZa.js} +75 -74
- package/dist/code-block.js +1 -1
- package/dist/{combobox-Bhzvu9ma.js → combobox-DFFqOBCi.js} +114 -109
- package/dist/combobox.js +1 -1
- package/dist/command-palette-BmQu2w4H.js +391 -0
- package/dist/command-palette.js +1 -1
- package/dist/comment-thread-ASaXDcGo.js +1410 -0
- package/dist/comment-thread.js +2 -0
- package/dist/context-menu-__1c2Dk9.js +370 -0
- package/dist/context-menu.js +2 -0
- package/dist/{copy-button-ByiA6D3R.js → copy-button-DCSLcYS-.js} +1 -1
- package/dist/copy-button.js +1 -1
- package/dist/{date-picker-5zKSSuFF.js → date-picker-BiPN7yeK.js} +4 -4
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker-DQpUeKqV.js +570 -0
- package/dist/date-range-picker.js +1 -1
- package/dist/{dialog-ciiv9H2b.js → dialog-BX1zYMs-.js} +2 -1
- package/dist/dialog.js +1 -1
- package/dist/{divider-DYoJf0I_.js → divider-Cp7aNbhM.js} +21 -20
- package/dist/divider.js +1 -1
- package/dist/elastic-slider-BG6K019r.js +395 -0
- package/dist/elastic-slider.js +2 -0
- package/dist/{expandable-card-C-qJcZ14.js → expandable-card-rUATve0o.js} +8 -1
- package/dist/expandable-card.js +1 -1
- package/dist/expanding-search-BxOwtdwt.js +238 -0
- package/dist/expanding-search.js +2 -0
- package/dist/file-dropzone-BuXm3Tea.js +457 -0
- package/dist/file-dropzone.js +1 -1
- package/dist/{filter-toolbar-D5KEKTSe.js → filter-toolbar-Cy5Hqur-.js} +4 -2
- package/dist/filter-toolbar.js +1 -1
- package/dist/{hover-card-B-nrCIy2.js → hover-card-CoMJKg1g.js} +7 -7
- package/dist/hover-card.js +1 -1
- package/dist/{image-compare-ciuhPtQZ.js → image-compare-BxY8Ykzt.js} +1 -1
- package/dist/image-compare.js +1 -1
- package/dist/index.js +81 -76
- package/dist/{json-viewer-BcySQfjZ.js → json-viewer-DgWqyU75.js} +7 -3
- package/dist/json-viewer.js +1 -1
- package/dist/mention-input-sq61si9L.js +600 -0
- package/dist/mention-input.js +1 -1
- package/dist/menu-DDKgmK2F.js +295 -0
- package/dist/menu.js +1 -1
- package/dist/{metric-card-Bh9K4fZs.js → metric-card--lVTz5Wn.js} +2 -2
- package/dist/metric-card.js +1 -1
- package/dist/{multi-select-Pce_IYnz.js → multi-select-DG1BCFX7.js} +14 -6
- package/dist/multi-select.js +1 -1
- package/dist/{navigation-sP5fiuQS.js → navigation-CC26JDr-.js} +20 -14
- package/dist/navigation.js +1 -1
- package/dist/{overlay-layer-SeUyyEPD.js → overlay-layer-qEbpEtb8.js} +16 -2
- package/dist/{pagination-DmXZ8E85.js → pagination-BfkeWbmP.js} +23 -22
- package/dist/pagination.js +1 -1
- package/dist/pill-BaS-uIbn.js +58 -0
- package/dist/pill.js +1 -1
- package/dist/popover-CErIw2q3.js +125 -0
- package/dist/popover.js +1 -1
- package/dist/{progress-CbOWBUdA.js → progress-DAQkfhPd.js} +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-cards-D2QZENI_.js → radio-cards-Cu9cBssN.js} +35 -34
- package/dist/radio-cards.js +1 -1
- package/dist/{radio-group-E6mMRgo7.js → radio-group-TIK0-iPX.js} +18 -15
- package/dist/radio-group.js +1 -1
- package/dist/{resizable-panels-BhjUVXZZ.js → resizable-panels-DUpQEpwG.js} +3 -2
- package/dist/resizable-panels.js +1 -1
- package/dist/{search-field-IxF0IJXm.js → search-field-DMvho0KQ.js} +2 -2
- package/dist/search-field.js +1 -1
- package/dist/{segmented-control-yO1K1nbi.js → segmented-control-8ZUGnsZm.js} +2 -1
- package/dist/segmented-control.js +1 -1
- package/dist/{select-n_H52W1Z.js → select-D5rhJ8gi.js} +3 -2
- package/dist/select.js +1 -1
- package/dist/{signature-pad-q2SAsrdD.js → signature-pad-_bTeguN9.js} +256 -251
- package/dist/signature-pad.js +1 -1
- package/dist/slider-DVG6-Awh.js +308 -0
- package/dist/slider.js +1 -1
- package/dist/{sortable-data-table-tirqlLY2.js → sortable-data-table-CYKT_Ng7.js} +2 -2
- package/dist/sortable-data-table.js +1 -1
- package/dist/{split-button-Cb3EHs64.js → split-button-BCw4zZom.js} +75 -81
- package/dist/split-button.js +1 -1
- package/dist/{swipe-actions-DiZC57-3.js → swipe-actions-CBuJREU1.js} +4 -2
- package/dist/swipe-actions.js +1 -1
- package/dist/switch-C1WrKrf-.js +145 -0
- package/dist/switch.js +1 -1
- package/dist/tabs-XluwRjgg.js +210 -0
- package/dist/tabs.js +1 -1
- package/dist/{text-field-C8TWG-tY.js → text-field-hU72iSVS.js} +15 -13
- package/dist/text-field.js +1 -1
- package/dist/{textarea-BrW0XcG_.js → textarea-3k4Y0QQ3.js} +18 -16
- package/dist/textarea.js +1 -1
- package/dist/theme-root.js +1 -1
- package/dist/theme-switch-C505TtU8.js +166 -0
- package/dist/theme-switch.js +2 -0
- package/dist/{time-picker-Db8D49cP.js → time-picker-CPlhW0tr.js} +26 -20
- package/dist/time-picker.js +1 -1
- package/dist/{timeline-k3nURuCP.js → timeline-B0uAAVfT.js} +8 -2
- package/dist/timeline.js +1 -1
- package/dist/{toast-BHxI32ZA.js → toast-B7wo3sX1.js} +98 -79
- package/dist/{toast-stack-DqrAzdg5.js → toast-stack-B40VpS4M.js} +18 -4
- package/dist/toast-stack.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/{toggle-group-fcjzpifI.js → toggle-group-B2fpFZwV.js} +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip-BvgVTCTN.js +120 -0
- package/dist/tooltip.js +1 -1
- package/dist/{tree-view-C2liIxqy.js → tree-view-j8qLqkb_.js} +5 -1
- package/dist/tree-view.js +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +1 -1
- package/dist/types/components/command-palette/command-palette.d.ts +1 -1
- package/dist/types/components/comment-thread/comment-thread.d.ts +118 -0
- package/dist/types/components/comment-thread/index.d.ts +1 -0
- package/dist/types/components/comment-thread/thread-core.d.ts +96 -0
- package/dist/types/components/comment-thread/thread-parts.d.ts +114 -0
- package/dist/types/components/context-menu/context-menu.d.ts +55 -0
- package/dist/types/components/context-menu/index.d.ts +2 -0
- package/dist/types/components/date-range-picker/date-range-picker.d.ts +1 -1
- package/dist/types/components/elastic-slider/elastic-slider.d.ts +53 -0
- package/dist/types/components/elastic-slider/index.d.ts +1 -0
- package/dist/types/components/expanding-search/expanding-search.d.ts +22 -0
- package/dist/types/components/expanding-search/index.d.ts +1 -0
- package/dist/types/components/menu/menu.d.ts +50 -7
- package/dist/types/components/pagination/pagination.d.ts +1 -1
- package/dist/types/components/radio-cards/radio-cards.d.ts +1 -1
- package/dist/types/components/radio-group/radio-group.d.ts +1 -1
- package/dist/types/components/slider/slider-style.d.ts +14 -0
- package/dist/types/components/slider/slider.d.ts +2 -10
- package/dist/types/components/slider/use-slider-interaction.d.ts +79 -0
- package/dist/types/components/split-button/split-button.d.ts +2 -2
- package/dist/types/components/tabs/tabs.d.ts +1 -1
- package/dist/types/components/text-field/text-field.d.ts +1 -1
- package/dist/types/components/textarea/textarea.d.ts +1 -1
- package/dist/types/components/theme-switch/index.d.ts +1 -0
- package/dist/types/components/theme-switch/theme-switch.d.ts +33 -0
- package/dist/types/components/tooltip/tooltip.d.ts +1 -1
- package/dist/types/index.d.ts +5 -0
- package/dist/types/overlay/overlay-layer.d.ts +20 -0
- package/dist/types/overlay/use-overlay-floating.d.ts +9 -2
- package/dist/{use-overlay-floating-DvJifLpF.js → use-overlay-floating-Bx2jBKAA.js} +8 -6
- package/dist/use-slider-interaction-ChL-208h.js +234 -0
- package/package.json +22 -2
- package/dist/accordion-xCI_u0BV.js +0 -198
- package/dist/avatar-BahDVO9t.js +0 -132
- package/dist/badge-B_sLygxU.js +0 -108
- package/dist/card-D-aI2QHx.js +0 -158
- package/dist/carousel-IvPqN-oM.js +0 -472
- package/dist/command-palette-BQ5LleGb.js +0 -384
- package/dist/date-range-picker-B5uFWsm-.js +0 -562
- package/dist/file-dropzone-pR4v7owg.js +0 -457
- package/dist/mention-input-BcQKX2EJ.js +0 -599
- package/dist/menu-xwOOUtWP.js +0 -275
- package/dist/pill-DO2gHzMb.js +0 -56
- package/dist/popover-QHcEvf9c.js +0 -119
- package/dist/slider-t0B5cecO.js +0 -477
- package/dist/switch-qwv8jQnR.js +0 -142
- package/dist/tabs-CAVJndX1.js +0 -203
- package/dist/tooltip-CkeiW9C1.js +0 -113
- package/dist/{theme-root-BbTBuLMQ.js → theme-root-Bs1U3uPA.js} +2 -2
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { r as e, t } from "./sx-Dx9JUKp5.js";
|
|
3
|
+
import { t as n } from "./use-controlled-state-DpeVQZNR.js";
|
|
4
|
+
import { n as r } from "./surface-DZ4d-2aL.js";
|
|
5
|
+
import { t as i } from "./trigger-style-B1KVC8O1.js";
|
|
6
|
+
import { a, i as o } from "./overlay-layer-qEbpEtb8.js";
|
|
7
|
+
import { t as s } from "./overlay-portal-C4JZFq2M.js";
|
|
8
|
+
import { t as c } from "./use-overlay-floating-Bx2jBKAA.js";
|
|
9
|
+
import { createContext as l, useContext as u, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
10
|
+
import { vars as h } from "@jfrader/tokens/vars";
|
|
11
|
+
import { jsx as g } from "@emotion/react/jsx-runtime";
|
|
12
|
+
import { FloatingFocusManager as _, useClick as v, useInteractions as y, useMergeRefs as b, useRole as x } from "@floating-ui/react";
|
|
13
|
+
//#region src/components/popover/popover.tsx
|
|
14
|
+
var S = l(null);
|
|
15
|
+
function C(e) {
|
|
16
|
+
let t = u(S);
|
|
17
|
+
if (!t) throw Error(`Popover.${e} must be rendered inside <Popover>.`);
|
|
18
|
+
return t;
|
|
19
|
+
}
|
|
20
|
+
var w = e({
|
|
21
|
+
...r,
|
|
22
|
+
borderRadius: h.radius.lg,
|
|
23
|
+
boxShadow: h.shadow.overlay,
|
|
24
|
+
padding: h.space[4],
|
|
25
|
+
minInlineSize: "200px",
|
|
26
|
+
maxInlineSize: "min(360px, calc(100vw - 32px))",
|
|
27
|
+
fontSize: h.textSize.sm,
|
|
28
|
+
overflowY: "auto"
|
|
29
|
+
});
|
|
30
|
+
function T({ nodeId: e, open: t, defaultOpen: r = !1, onOpenChange: i, placement: o = "bottom", children: s }) {
|
|
31
|
+
let [l = !1, u] = n(t, r, i), h = p(!1), [_, b] = m(), { refs: C, floatingStyles: w, context: T } = c({
|
|
32
|
+
open: l,
|
|
33
|
+
placement: o,
|
|
34
|
+
nodeId: e,
|
|
35
|
+
onAvailableSize: ({ height: e }) => b(Math.max(0, e)),
|
|
36
|
+
onOpenChange: (e, t, n) => {
|
|
37
|
+
e || (h.current = n === "escape-key"), u(e);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
d(() => {
|
|
41
|
+
!l && h.current && (h.current = !1, C.domReference.current?.focus());
|
|
42
|
+
}, [l, C]);
|
|
43
|
+
let E = v(T), D = a(T, "container"), O = x(T, { role: "dialog" }), { getReferenceProps: k, getFloatingProps: A } = y([
|
|
44
|
+
E,
|
|
45
|
+
...D,
|
|
46
|
+
O
|
|
47
|
+
]), j = f(() => ({
|
|
48
|
+
open: l,
|
|
49
|
+
refs: C,
|
|
50
|
+
floatingContext: T,
|
|
51
|
+
floatingStyles: {
|
|
52
|
+
...w,
|
|
53
|
+
maxBlockSize: _
|
|
54
|
+
},
|
|
55
|
+
getReferenceProps: k,
|
|
56
|
+
getFloatingProps: A
|
|
57
|
+
}), [
|
|
58
|
+
l,
|
|
59
|
+
C,
|
|
60
|
+
T,
|
|
61
|
+
w,
|
|
62
|
+
_,
|
|
63
|
+
k,
|
|
64
|
+
A
|
|
65
|
+
]);
|
|
66
|
+
return /* @__PURE__ */ g(S.Provider, {
|
|
67
|
+
value: j,
|
|
68
|
+
children: s
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function E(e) {
|
|
72
|
+
return /* @__PURE__ */ g(o, { children: (t) => /* @__PURE__ */ g(T, {
|
|
73
|
+
...e,
|
|
74
|
+
nodeId: t
|
|
75
|
+
}) });
|
|
76
|
+
}
|
|
77
|
+
E.displayName = "Popover";
|
|
78
|
+
function D({ ref: e, className: n, sx: r, ...a }) {
|
|
79
|
+
let { refs: o, getReferenceProps: s } = C("Trigger"), c = b([o.setReference, e]);
|
|
80
|
+
return /* @__PURE__ */ g(t, {
|
|
81
|
+
className: n,
|
|
82
|
+
styles: i,
|
|
83
|
+
sx: r,
|
|
84
|
+
children: (e) => /* @__PURE__ */ g("button", {
|
|
85
|
+
type: "button",
|
|
86
|
+
...s(a),
|
|
87
|
+
ref: c,
|
|
88
|
+
"data-ui": "popover-trigger",
|
|
89
|
+
className: e
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
D.displayName = "Popover.Trigger";
|
|
94
|
+
function O({ ref: e, style: n, className: r, sx: i, ...a }) {
|
|
95
|
+
let { open: o, refs: c, floatingContext: l, floatingStyles: u, getFloatingProps: d } = C("Content"), f = b([c.setFloating, e]);
|
|
96
|
+
return o ? /* @__PURE__ */ g(s, { children: /* @__PURE__ */ g(_, {
|
|
97
|
+
context: l,
|
|
98
|
+
modal: !1,
|
|
99
|
+
initialFocus: -1,
|
|
100
|
+
returnFocus: !1,
|
|
101
|
+
closeOnFocusOut: !1,
|
|
102
|
+
children: /* @__PURE__ */ g(t, {
|
|
103
|
+
className: r,
|
|
104
|
+
styles: w,
|
|
105
|
+
sx: i,
|
|
106
|
+
children: (e) => /* @__PURE__ */ g("div", {
|
|
107
|
+
...d(a),
|
|
108
|
+
ref: f,
|
|
109
|
+
"data-ui": "popover",
|
|
110
|
+
style: {
|
|
111
|
+
...n,
|
|
112
|
+
...u
|
|
113
|
+
},
|
|
114
|
+
className: e
|
|
115
|
+
})
|
|
116
|
+
})
|
|
117
|
+
}) }) : null;
|
|
118
|
+
}
|
|
119
|
+
O.displayName = "Popover.Content";
|
|
120
|
+
var k = Object.assign(E, {
|
|
121
|
+
Trigger: D,
|
|
122
|
+
Content: O
|
|
123
|
+
});
|
|
124
|
+
//#endregion
|
|
125
|
+
export { k as t };
|
package/dist/popover.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as Popover } from "./popover-
|
|
2
|
+
export { t as Popover } from "./popover-CErIw2q3.js";
|
|
@@ -66,7 +66,7 @@ function b({ ref: e, value: t, max: r = p, label: i, getValueLabel: c, slotProps
|
|
|
66
66
|
"aria-valuemin": 0,
|
|
67
67
|
"aria-valuemax": T,
|
|
68
68
|
"aria-valuenow": w,
|
|
69
|
-
"aria-valuetext": w === void 0 ? void 0 : c?.(w, T),
|
|
69
|
+
"aria-valuetext": b["aria-valuetext"] ?? (w === void 0 ? void 0 : c?.(w, T)),
|
|
70
70
|
className: t,
|
|
71
71
|
children: [S && /* @__PURE__ */ l("span", {
|
|
72
72
|
id: x,
|
package/dist/progress.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as Progress } from "./progress-
|
|
2
|
+
export { t as Progress } from "./progress-DAQkfhPd.js";
|
|
@@ -334,76 +334,77 @@ function J({ ref: e, value: n, defaultValue: r, onValueChange: o, name: s, requi
|
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
336
|
J.displayName = "RadioCards";
|
|
337
|
-
function Y({ ref: e, value: n, label: r, description: i, meta: c, icon: l, disabledReason: u,
|
|
338
|
-
let
|
|
337
|
+
function Y({ ref: e, value: n, label: r, description: i, meta: c, icon: l, disabledReason: u, dir: d, disabled: p, required: m, onChange: h, slotProps: g, className: _, sx: b, "aria-label": x, "aria-labelledby": S, "aria-describedby": C, "aria-invalid": w, ...T }) {
|
|
338
|
+
let E = k("Item"), D = f(), O = E.disabled || p, A = O && a(u) ? u : i, M = a(r), N = a(A);
|
|
339
339
|
return /* @__PURE__ */ v(t, {
|
|
340
|
-
className:
|
|
340
|
+
className: _,
|
|
341
341
|
styles: [o, P],
|
|
342
|
-
sx:
|
|
342
|
+
sx: b,
|
|
343
343
|
children: (t) => /* @__PURE__ */ y("label", {
|
|
344
|
+
dir: d,
|
|
344
345
|
"data-ui": "radio-cards-item",
|
|
345
|
-
"data-state":
|
|
346
|
+
"data-state": E.value === n ? "checked" : "unchecked",
|
|
346
347
|
className: t,
|
|
347
348
|
children: [/* @__PURE__ */ v("input", {
|
|
348
|
-
...
|
|
349
|
+
...T,
|
|
349
350
|
ref: e,
|
|
350
351
|
type: "radio",
|
|
351
352
|
"data-ui": "radio-cards-input",
|
|
352
|
-
name:
|
|
353
|
+
name: E.name,
|
|
353
354
|
value: n,
|
|
354
|
-
checked:
|
|
355
|
-
disabled:
|
|
356
|
-
required:
|
|
357
|
-
"aria-label":
|
|
358
|
-
"aria-labelledby": j(
|
|
359
|
-
"aria-describedby": j(
|
|
360
|
-
"aria-invalid":
|
|
355
|
+
checked: E.value === n,
|
|
356
|
+
disabled: O,
|
|
357
|
+
required: E.required || m,
|
|
358
|
+
"aria-label": x,
|
|
359
|
+
"aria-labelledby": j(S, !x && M && `${D}-label`),
|
|
360
|
+
"aria-describedby": j(C, N && `${D}-description`),
|
|
361
|
+
"aria-invalid": E.invalid ? !0 : w,
|
|
361
362
|
onChange: (e) => {
|
|
362
|
-
|
|
363
|
+
h?.(e), e.currentTarget.checked && E.requestChange(n);
|
|
363
364
|
},
|
|
364
365
|
css: [s, F]
|
|
365
366
|
}), /* @__PURE__ */ y("span", {
|
|
366
|
-
...
|
|
367
|
+
...g?.control,
|
|
367
368
|
"data-ui": "radio-cards-control",
|
|
368
369
|
css: [
|
|
369
370
|
I,
|
|
370
|
-
L[
|
|
371
|
-
|
|
371
|
+
L[E.size],
|
|
372
|
+
g?.control?.css
|
|
372
373
|
],
|
|
373
374
|
children: [
|
|
374
375
|
/* @__PURE__ */ v("span", {
|
|
375
|
-
...
|
|
376
|
+
...g?.indicator,
|
|
376
377
|
"aria-hidden": "true",
|
|
377
378
|
"data-ui": "radio-cards-indicator",
|
|
378
|
-
css: [R,
|
|
379
|
+
css: [R, g?.indicator?.css]
|
|
379
380
|
}),
|
|
380
381
|
a(l) && /* @__PURE__ */ v("span", {
|
|
381
|
-
...
|
|
382
|
+
...g?.icon,
|
|
382
383
|
"aria-hidden": "true",
|
|
383
384
|
"data-ui": "radio-cards-icon",
|
|
384
|
-
css: [U,
|
|
385
|
+
css: [U, g?.icon?.css],
|
|
385
386
|
children: l
|
|
386
387
|
}),
|
|
387
|
-
(
|
|
388
|
+
(M || N) && /* @__PURE__ */ y("span", {
|
|
388
389
|
css: z,
|
|
389
|
-
children: [
|
|
390
|
-
...
|
|
391
|
-
id: `${
|
|
390
|
+
children: [M && /* @__PURE__ */ v("span", {
|
|
391
|
+
...g?.label,
|
|
392
|
+
id: `${D}-label`,
|
|
392
393
|
"data-ui": "radio-cards-item-label",
|
|
393
|
-
css: [B,
|
|
394
|
+
css: [B, g?.label?.css],
|
|
394
395
|
children: r
|
|
395
|
-
}),
|
|
396
|
-
...
|
|
397
|
-
id: `${
|
|
396
|
+
}), N && /* @__PURE__ */ v("span", {
|
|
397
|
+
...g?.description,
|
|
398
|
+
id: `${D}-description`,
|
|
398
399
|
"data-ui": "radio-cards-item-description",
|
|
399
|
-
css: [V,
|
|
400
|
-
children:
|
|
400
|
+
css: [V, g?.description?.css],
|
|
401
|
+
children: A
|
|
401
402
|
})]
|
|
402
403
|
}),
|
|
403
404
|
a(c) && /* @__PURE__ */ v("span", {
|
|
404
|
-
...
|
|
405
|
+
...g?.meta,
|
|
405
406
|
"data-ui": "radio-cards-meta",
|
|
406
|
-
css: [H,
|
|
407
|
+
css: [H, g?.meta?.css],
|
|
407
408
|
children: c
|
|
408
409
|
})
|
|
409
410
|
]
|
package/dist/radio-cards.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as RadioCards } from "./radio-cards-
|
|
2
|
+
export { t as RadioCards } from "./radio-cards-Cu9cBssN.js";
|
|
@@ -78,6 +78,7 @@ function E({ ref: e, value: n, defaultValue: r, onValueChange: a, name: o, disab
|
|
|
78
78
|
ref: e,
|
|
79
79
|
role: "radiogroup",
|
|
80
80
|
"aria-orientation": c,
|
|
81
|
+
"aria-disabled": s ? !0 : d["aria-disabled"],
|
|
81
82
|
"data-ui": "radio-group-root",
|
|
82
83
|
"data-orientation": c,
|
|
83
84
|
className: t
|
|
@@ -86,12 +87,12 @@ function E({ ref: e, value: n, defaultValue: r, onValueChange: a, name: o, disab
|
|
|
86
87
|
});
|
|
87
88
|
}
|
|
88
89
|
E.displayName = "RadioGroup";
|
|
89
|
-
function D({ ref: e, value: n, label: r, description: i, disabled: u, onChange: d, slotProps: p, className: m, sx: _, "aria-labelledby":
|
|
90
|
-
let { value:
|
|
91
|
-
d?.(e), e.currentTarget.checked &&
|
|
90
|
+
function D({ ref: e, value: n, label: r, description: i, disabled: u, onChange: d, slotProps: p, className: m, sx: _, dir: y, "aria-labelledby": b, "aria-describedby": E, ...D }) {
|
|
91
|
+
let { value: O, setValue: k, name: A, disabled: j } = v("Radio"), M = j || u, N = f(), P = `${N}-label`, F = `${N}-description`, I = a(r), L = a(i), R = [b, I && P].filter(Boolean).join(" ") || void 0, z = [E, L && F].filter(Boolean).join(" ") || void 0, B = [m, p?.root?.className].filter(Boolean).join(" ") || void 0, V = (e) => {
|
|
92
|
+
d?.(e), e.currentTarget.checked && k(n);
|
|
92
93
|
};
|
|
93
94
|
return /* @__PURE__ */ h(t, {
|
|
94
|
-
className:
|
|
95
|
+
className: B,
|
|
95
96
|
styles: [
|
|
96
97
|
c,
|
|
97
98
|
x,
|
|
@@ -101,21 +102,23 @@ function D({ ref: e, value: n, label: r, description: i, disabled: u, onChange:
|
|
|
101
102
|
sx: _,
|
|
102
103
|
children: (t) => /* @__PURE__ */ g("label", {
|
|
103
104
|
"data-ui": "radio-group-radio",
|
|
105
|
+
dir: y,
|
|
104
106
|
className: t,
|
|
105
107
|
children: [/* @__PURE__ */ g("span", {
|
|
106
108
|
css: [o, S],
|
|
107
109
|
children: [
|
|
108
110
|
/* @__PURE__ */ h("input", {
|
|
109
|
-
...
|
|
111
|
+
...D,
|
|
110
112
|
ref: e,
|
|
111
113
|
type: "radio",
|
|
112
|
-
name:
|
|
114
|
+
name: A,
|
|
113
115
|
value: n,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"aria-
|
|
118
|
-
|
|
116
|
+
dir: y,
|
|
117
|
+
checked: O === n,
|
|
118
|
+
disabled: M,
|
|
119
|
+
"aria-labelledby": R,
|
|
120
|
+
"aria-describedby": z,
|
|
121
|
+
onChange: V,
|
|
119
122
|
css: l
|
|
120
123
|
}),
|
|
121
124
|
/* @__PURE__ */ h("span", {
|
|
@@ -123,15 +126,15 @@ function D({ ref: e, value: n, label: r, description: i, disabled: u, onChange:
|
|
|
123
126
|
className: p?.control?.className,
|
|
124
127
|
css: [C, p?.control?.css]
|
|
125
128
|
}),
|
|
126
|
-
|
|
127
|
-
id:
|
|
129
|
+
I && /* @__PURE__ */ h("span", {
|
|
130
|
+
id: P,
|
|
128
131
|
className: p?.label?.className,
|
|
129
132
|
css: [w, p?.label?.css],
|
|
130
133
|
children: r
|
|
131
134
|
})
|
|
132
135
|
]
|
|
133
|
-
}),
|
|
134
|
-
id:
|
|
136
|
+
}), L && /* @__PURE__ */ h("span", {
|
|
137
|
+
id: F,
|
|
135
138
|
className: p?.description?.className,
|
|
136
139
|
css: [T, p?.description?.css],
|
|
137
140
|
children: i
|
package/dist/radio-group.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as RadioGroup } from "./radio-group-
|
|
2
|
+
export { t as RadioGroup } from "./radio-group-TIK0-iPX.js";
|
|
@@ -116,7 +116,8 @@ var re = 80, ie = 16, ae = 64, oe = 44, se = 90, x = .5, ce = .5, le = 160, ue =
|
|
|
116
116
|
color: y.color.text,
|
|
117
117
|
"&::before": {
|
|
118
118
|
content: "\"\"",
|
|
119
|
-
borderBlock: `${y.space[1]} solid transparent
|
|
119
|
+
borderBlock: `${y.space[1]} solid transparent`,
|
|
120
|
+
forcedColorAdjust: "none"
|
|
120
121
|
},
|
|
121
122
|
"&[data-side=\"start\"]::before": { borderInlineStart: `${y.space[1]} solid currentColor` },
|
|
122
123
|
"&[data-side=\"end\"]::before": { borderInlineEnd: `${y.space[1]} solid currentColor` },
|
|
@@ -408,7 +409,7 @@ function B({ ref: e, children: n, value: r, defaultValue: i, onValueChange: s, o
|
|
|
408
409
|
role: "separator",
|
|
409
410
|
tabIndex: u ? -1 : 0,
|
|
410
411
|
"aria-orientation": "vertical",
|
|
411
|
-
"aria-controls": n.id,
|
|
412
|
+
"aria-controls": [t?.["aria-controls"], n.id].filter(Boolean).join(" "),
|
|
412
413
|
"aria-valuenow": a,
|
|
413
414
|
"aria-valuemin": o,
|
|
414
415
|
"aria-valuemax": s,
|
package/dist/resizable-panels.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as ResizablePanels } from "./resizable-panels-
|
|
2
|
+
export { t as ResizablePanels } from "./resizable-panels-DUpQEpwG.js";
|
|
@@ -231,7 +231,7 @@ function T({ ref: e, value: n, defaultValue: r = "", onValueChange: i, label: f,
|
|
|
231
231
|
R?.(e), !I && !L && X(e.currentTarget.value);
|
|
232
232
|
},
|
|
233
233
|
onKeyDown: (e) => {
|
|
234
|
-
z?.(e), !(e.defaultPrevented || e.key !== "Escape" || e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229 || Y === "") && (e.preventDefault(),
|
|
234
|
+
z?.(e), !(e.defaultPrevented || e.key !== "Escape" || e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229 || Y === "" || !D || I || L) && (e.preventDefault(), $());
|
|
235
235
|
}
|
|
236
236
|
}),
|
|
237
237
|
/* @__PURE__ */ p("span", {
|
|
@@ -241,7 +241,7 @@ function T({ ref: e, value: n, defaultValue: r = "", onValueChange: i, label: f,
|
|
|
241
241
|
type: "button",
|
|
242
242
|
disabled: I,
|
|
243
243
|
"data-enter": Q.current ? "" : void 0,
|
|
244
|
-
"aria-label": O?.clear
|
|
244
|
+
"aria-label": O?.clear || S.clear,
|
|
245
245
|
"aria-controls": W.id,
|
|
246
246
|
onClick: $,
|
|
247
247
|
className: j?.clear?.className,
|
package/dist/search-field.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as SearchField } from "./search-field-
|
|
2
|
+
export { t as SearchField } from "./search-field-DMvho0KQ.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as SegmentedControl } from "./segmented-control-
|
|
2
|
+
export { t as SegmentedControl } from "./segmented-control-8ZUGnsZm.js";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { r as e, t } from "./sx-Dx9JUKp5.js";
|
|
3
3
|
import { t as n } from "./use-controlled-state-DpeVQZNR.js";
|
|
4
4
|
import { t as r } from "./trigger-style-B1KVC8O1.js";
|
|
5
|
-
import { t as i } from "./overlay-layer-
|
|
5
|
+
import { t as i } from "./overlay-layer-qEbpEtb8.js";
|
|
6
6
|
import { a, i as o, n as s, o as c, r as l, s as u, t as d } from "./listbox-style-WX-RASp1.js";
|
|
7
7
|
import { a as f, r as p, t as m } from "./collection-registry-k6JcD3Jr.js";
|
|
8
8
|
import { t as h } from "./overlay-portal-C4JZFq2M.js";
|
|
9
|
-
import { t as g } from "./use-overlay-floating-
|
|
9
|
+
import { t as g } from "./use-overlay-floating-Bx2jBKAA.js";
|
|
10
10
|
import { createContext as _, useContext as v, useId as y, useLayoutEffect as b, useMemo as x, useRef as S, useState as C } from "react";
|
|
11
11
|
import { vars as w } from "@jfrader/tokens/vars";
|
|
12
12
|
import { jsx as T, jsxs as E } from "@emotion/react/jsx-runtime";
|
|
@@ -29,6 +29,7 @@ function B() {
|
|
|
29
29
|
var V = e({
|
|
30
30
|
justifyContent: "flex-start",
|
|
31
31
|
minInlineSize: "180px",
|
|
32
|
+
maxInlineSize: "100%",
|
|
32
33
|
"&[aria-expanded=\"true\"]": { backgroundColor: w.color.surfaceHover }
|
|
33
34
|
}), H = e({
|
|
34
35
|
overflow: "hidden",
|
package/dist/select.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { t as Select } from "./select-
|
|
2
|
+
export { t as Select } from "./select-D5rhJ8gi.js";
|