@gemologic/sheen 0.2.1 → 0.4.0
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 +1 -1
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/ai.d.ts +8 -0
- package/dist/ai.js +5 -0
- package/dist/core.d.ts +11 -4
- package/dist/core.js +32 -28
- package/dist/formisch.js +1 -2
- package/dist/forms.d.ts +2 -0
- package/dist/forms.js +16 -15
- package/dist/index.d.ts +27 -5
- package/dist/index.js +87 -76
- package/dist/layout/Layout.js +1 -2
- package/dist/metadata.js +1 -2
- package/dist/navigation.d.ts +2 -1
- package/dist/navigation.js +16 -16
- package/dist/overlays.d.ts +2 -0
- package/dist/overlays.js +9 -8
- package/dist/primitives/Accordion.js +9 -9
- package/dist/primitives/ActivityTimeline.js +57 -49
- package/dist/primitives/AlertDialog.js +1 -2
- package/dist/primitives/Avatar.js +16 -17
- package/dist/primitives/Board.d.ts +39 -0
- package/dist/primitives/Board.js +471 -0
- package/dist/primitives/Breadcrumb.js +1 -2
- package/dist/primitives/Button.js +38 -27
- package/dist/primitives/ButtonGroup.js +1 -2
- package/dist/primitives/Checkbox.d.ts +16 -2
- package/dist/primitives/Checkbox.js +46 -36
- package/dist/primitives/CheckboxGroup.js +11 -12
- package/dist/primitives/Collapsible.js +6 -6
- package/dist/primitives/Combobox.js +203 -201
- package/dist/primitives/CommandPalette.d.ts +4 -0
- package/dist/primitives/CommandPalette.js +138 -116
- package/dist/primitives/ConfirmDialog.js +5 -6
- package/dist/primitives/ContextMenu.js +7 -8
- package/dist/primitives/Conversation.d.ts +17 -0
- package/dist/primitives/Conversation.js +107 -0
- package/dist/primitives/DescriptionList.js +1 -2
- package/dist/primitives/Dialog.js +101 -68
- package/dist/primitives/Drawer.js +12 -13
- package/dist/primitives/DropdownMenu.js +163 -157
- package/dist/primitives/EditableTextField.js +3 -8
- package/dist/primitives/EmptyState.js +1 -2
- package/dist/primitives/Field.js +1 -2
- package/dist/primitives/FileDropzone.js +19 -18
- package/dist/primitives/Form.d.ts +23 -0
- package/dist/primitives/Form.js +76 -0
- package/dist/primitives/Glyph.d.ts +40 -0
- package/dist/primitives/Glyph.js +65 -0
- package/dist/primitives/IconButton.js +5 -6
- package/dist/primitives/Input.js +1 -2
- package/dist/primitives/InputGroup.js +8 -9
- package/dist/primitives/Link.d.ts +9 -1
- package/dist/primitives/Link.js +23 -17
- package/dist/primitives/LinkTooltip.js +6 -7
- package/dist/primitives/List.d.ts +34 -0
- package/dist/primitives/List.js +135 -0
- package/dist/primitives/Message.d.ts +13 -0
- package/dist/primitives/Message.js +75 -0
- package/dist/primitives/NavList.js +15 -16
- package/dist/primitives/Notice.d.ts +15 -1
- package/dist/primitives/Notice.js +91 -43
- package/dist/primitives/NumberField.js +81 -81
- package/dist/primitives/NumberText.d.ts +4 -0
- package/dist/primitives/NumberText.js +50 -25
- package/dist/primitives/Pagination.js +81 -60
- package/dist/primitives/Popover.d.ts +1 -0
- package/dist/primitives/Popover.js +65 -57
- package/dist/primitives/Progress.js +1 -2
- package/dist/primitives/PromptInput.d.ts +23 -0
- package/dist/primitives/PromptInput.js +135 -0
- package/dist/primitives/RadioGroup.js +12 -17
- package/dist/primitives/Resizable.js +1 -2
- package/dist/primitives/ScrollArea.js +1 -2
- package/dist/primitives/SearchInput.js +45 -38
- package/dist/primitives/SegmentedControl.d.ts +2 -0
- package/dist/primitives/SegmentedControl.js +92 -78
- package/dist/primitives/Select.js +105 -100
- package/dist/primitives/Separator.js +1 -2
- package/dist/primitives/ShortcutPending.js +11 -12
- package/dist/primitives/ShortcutProvider.d.ts +5 -0
- package/dist/primitives/ShortcutProvider.js +71 -65
- package/dist/primitives/ShortcutScope.js +8 -9
- package/dist/primitives/ShortcutSheet.js +30 -24
- package/dist/primitives/Skeleton.js +1 -2
- package/dist/primitives/Slider.js +1 -2
- package/dist/primitives/SortableList.d.ts +19 -0
- package/dist/primitives/SortableList.js +235 -0
- package/dist/primitives/Spinner.js +1 -2
- package/dist/primitives/Status.js +14 -14
- package/dist/primitives/Stepper.js +54 -52
- package/dist/primitives/StreamingText.d.ts +12 -0
- package/dist/primitives/StreamingText.js +42 -0
- package/dist/primitives/Surface.js +1 -2
- package/dist/primitives/Switch.d.ts +2 -2
- package/dist/primitives/Switch.js +1 -2
- package/dist/primitives/Table.js +1 -2
- package/dist/primitives/Tabs.js +20 -17
- package/dist/primitives/TagInput.js +6 -9
- package/dist/primitives/Textarea.js +37 -63
- package/dist/primitives/Toast.js +42 -41
- package/dist/primitives/Toaster.js +27 -28
- package/dist/primitives/Tooltip.js +32 -32
- package/dist/primitives/TooltipTrigger.d.ts +18 -0
- package/dist/primitives/TooltipTrigger.js +76 -0
- package/dist/primitives/Tree.js +1 -2
- package/dist/primitives/Typography.d.ts +6 -2
- package/dist/primitives/Typography.js +20 -12
- package/dist/primitives/boolean-input-state.js +3 -8
- package/dist/primitives/button-variants.js +2 -3
- package/dist/primitives/choice-options.js +1 -2
- package/dist/primitives/create-confirm.js +1 -2
- package/dist/primitives/create-toaster.js +1 -2
- package/dist/primitives/link-focus.js +1 -2
- package/dist/primitives/menu-focus.js +1 -2
- package/dist/primitives/sortable-core.d.ts +70 -0
- package/dist/primitives/sortable-core.js +109 -0
- package/dist/primitives/sortable-drag.d.ts +29 -0
- package/dist/primitives/sortable-drag.js +50 -0
- package/dist/primitives/tooltip-layer.js +26 -27
- package/dist/sortable.d.ts +6 -0
- package/dist/sortable.js +4 -0
- package/dist/theme/ThemeProvider.d.ts +6 -1
- package/dist/theme/ThemeProvider.js +65 -58
- package/dist/theme/intl.js +1 -2
- package/dist/theme/keyboard-script.js +1 -2
- package/dist/theme/layers.js +1 -2
- package/dist/theme/messages.d.ts +26 -0
- package/dist/theme/messages.js +9 -2
- package/dist/theme/number-format-cache.js +1 -2
- package/dist/theme/script.d.ts +1 -0
- package/dist/theme/script.js +3 -3
- package/dist/theme/state.d.ts +4 -4
- package/dist/theme/state.js +12 -13
- package/dist/utils/auto-resize.d.ts +6 -0
- package/dist/utils/auto-resize.js +31 -0
- package/dist/utils/browser-status.js +1 -2
- package/dist/utils/change-motion.d.ts +8 -0
- package/dist/utils/change-motion.js +19 -0
- package/dist/utils/cn.js +1 -2
- package/dist/utils/media-query.d.ts +10 -0
- package/dist/utils/media-query.js +16 -0
- package/dist/utils/optimistic.js +1 -2
- package/dist/utils/shortcut-platform.js +1 -2
- package/dist/utils/shortcut-registry.d.ts +5 -0
- package/dist/utils/shortcut-registry.js +61 -51
- package/dist/vite.js +3 -4
- package/package.json +23 -5
- package/src/ai.ts +8 -0
- package/src/core.ts +11 -4
- package/src/forms.ts +2 -0
- package/src/index.ts +27 -5
- package/src/navigation.ts +2 -1
- package/src/overlays.ts +2 -0
- package/src/primitives/Accordion.tsx +1 -1
- package/src/primitives/ActivityTimeline.tsx +12 -7
- package/src/primitives/Board.tsx +406 -0
- package/src/primitives/Button.tsx +15 -4
- package/src/primitives/Checkbox.tsx +14 -7
- package/src/primitives/Collapsible.tsx +1 -1
- package/src/primitives/Combobox.tsx +2 -1
- package/src/primitives/CommandPalette.tsx +13 -4
- package/src/primitives/Conversation.tsx +108 -0
- package/src/primitives/Dialog.tsx +5 -1
- package/src/primitives/DropdownMenu.tsx +12 -6
- package/src/primitives/FileDropzone.tsx +2 -2
- package/src/primitives/Form.tsx +58 -0
- package/src/primitives/Glyph.tsx +55 -0
- package/src/primitives/Link.tsx +15 -6
- package/src/primitives/List.tsx +68 -0
- package/src/primitives/Message.tsx +40 -0
- package/src/primitives/Notice.tsx +45 -12
- package/src/primitives/NumberField.tsx +3 -2
- package/src/primitives/NumberText.tsx +31 -4
- package/src/primitives/Pagination.tsx +6 -5
- package/src/primitives/Popover.tsx +7 -5
- package/src/primitives/PromptInput.tsx +116 -0
- package/src/primitives/SearchInput.tsx +4 -3
- package/src/primitives/SegmentedControl.tsx +29 -4
- package/src/primitives/Select.tsx +3 -2
- package/src/primitives/ShortcutProvider.tsx +14 -1
- package/src/primitives/ShortcutSheet.tsx +1 -1
- package/src/primitives/SortableList.tsx +208 -0
- package/src/primitives/Status.tsx +1 -1
- package/src/primitives/Stepper.tsx +7 -7
- package/src/primitives/StreamingText.tsx +32 -0
- package/src/primitives/Switch.tsx +2 -2
- package/src/primitives/Tabs.tsx +2 -1
- package/src/primitives/TagInput.tsx +1 -1
- package/src/primitives/Textarea.tsx +3 -47
- package/src/primitives/Toast.tsx +2 -1
- package/src/primitives/Tooltip.tsx +4 -2
- package/src/primitives/TooltipTrigger.tsx +60 -0
- package/src/primitives/Typography.tsx +11 -2
- package/src/primitives/button-variants.ts +1 -1
- package/src/primitives/sortable-core.ts +139 -0
- package/src/primitives/sortable-drag.ts +75 -0
- package/src/sortable.ts +6 -0
- package/src/styles/ai.css +57 -0
- package/src/styles/core.css +321 -0
- package/src/styles/forms.css +263 -0
- package/src/styles/navigation.css +137 -0
- package/src/styles/overlays.css +107 -0
- package/src/styles/sortable.css +87 -0
- package/src/styles.css +5 -658
- package/src/theme/ThemeProvider.tsx +20 -8
- package/src/theme/messages.ts +20 -1
- package/src/theme/script.ts +2 -2
- package/src/theme/state.ts +5 -5
- package/src/utils/auto-resize.ts +58 -0
- package/src/utils/change-motion.ts +28 -0
- package/src/utils/media-query.ts +26 -0
- package/src/utils/shortcut-registry.ts +19 -2
- package/src/vite.ts +3 -3
- package/vendor/integrity.json +13 -13
- package/vendor/kobalte-core/chunk/3D6FM2PJ.js +7 -1
- package/vendor/kobalte-core/chunk/G3KI2B4X.js +2 -1
- package/vendor/kobalte-core/chunk/KEL2LLJM.jsx +2 -1
- package/vendor/kobalte-core/chunk/RFN6X5VH.jsx +7 -1
- package/vendor/origins.json +4 -4
- package/vendor/solid-web/dev.cjs +21 -17
- package/vendor/solid-web/dev.js +21 -17
- package/vendor/solid-web/server.cjs +1 -1
- package/vendor/solid-web/server.js +1 -1
- package/vendor/solid-web/web.cjs +21 -17
- package/vendor/solid-web/web.js +21 -17
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import { useTheme as e } from "../theme/ThemeProvider.js";
|
|
2
|
+
import { useNumberFormatter as t } from "../theme/intl.js";
|
|
3
|
+
import { cn as n } from "../utils/cn.js";
|
|
4
|
+
import { closestEdge as r, dropIndex as i, edgeField as a, formatMessage as o, isRtl as s, keyIntent as c, moveId as l, resolveSortableMessages as u, scrollContainers as d, stringField as f, validateIds as p } from "./sortable-core.js";
|
|
5
|
+
import { bindDraggable as m, bindDropTarget as h, bindMonitor as ee } from "./sortable-drag.js";
|
|
6
|
+
import { Glyph as te } from "./Glyph.js";
|
|
7
|
+
import { createComponent as g, delegateEvents as ne, effect as _, insert as v, mergeProps as re, setAttribute as y, spread as ie, template as b, use as x } from "solid-js/web";
|
|
8
|
+
import { For as S, Show as C, batch as w, createEffect as ae, createMemo as T, createSignal as E, createUniqueId as oe, onCleanup as D, onMount as se, splitProps as ce } from "solid-js";
|
|
9
|
+
// src/primitives/Board.tsx
|
|
10
|
+
var le = /*#__PURE__*/ b("<div><div class=sheen-board-columns></div><span class=sheen-sortable-hidden></span><span class=sheen-sortable-hidden role=status aria-live=assertive aria-atomic=true>"), ue = /*#__PURE__*/ b("<button type=button class=\"sheen-sortable-handle sheen-board-column-handle\">"), de = /*#__PURE__*/ b("<p class=sheen-board-empty>"), fe = /*#__PURE__*/ b("<div class=sheen-board-column role=group><div class=sheen-board-column-header><div class=sheen-board-column-heading></div></div><ul class=sheen-board-cards role=list>"), pe = /*#__PURE__*/ b("<span class=sheen-board-column-title>"), me = /*#__PURE__*/ b("<span class=sheen-board-column-count>"), he = /*#__PURE__*/ b("<button type=button class=\"sheen-sortable-handle sheen-board-card-handle\">"), ge = /*#__PURE__*/ b("<li class=sheen-board-card><div class=sheen-board-card-content>");
|
|
11
|
+
function _e(e, t) {
|
|
12
|
+
return !e || !t ? e === t : e.kind === t.kind && e.id === t.id && (e.kind === "append" || t.kind === "append" || e.edge === t.edge);
|
|
13
|
+
}
|
|
14
|
+
function O(ne) {
|
|
15
|
+
let b = e(), O = t(), ve = oe(), k = Symbol("Board"), [A, ye] = ce(ne, [
|
|
16
|
+
"ref",
|
|
17
|
+
"class",
|
|
18
|
+
"columns",
|
|
19
|
+
"children",
|
|
20
|
+
"columnHeader",
|
|
21
|
+
"onMove",
|
|
22
|
+
"onColumnReorder",
|
|
23
|
+
"label",
|
|
24
|
+
"handle",
|
|
25
|
+
"disabled",
|
|
26
|
+
"messages",
|
|
27
|
+
"aria-describedby"
|
|
28
|
+
]), j = T(() => u(b.messages(), A.messages)), M = T(() => (p(A.columns.map((e) => e.id), "Board columns"), p(A.columns.flatMap((e) => e.cards.map((e) => e.id)), "Board cards"), new Map(A.columns.map((e) => [e.id, e])))), N = T(() => {
|
|
29
|
+
let e = /* @__PURE__ */ new Map();
|
|
30
|
+
for (let t of A.columns) for (let n of t.cards) e.set(n.id, {
|
|
31
|
+
card: n,
|
|
32
|
+
column: t.id
|
|
33
|
+
});
|
|
34
|
+
return e;
|
|
35
|
+
}), P = T(() => [...M().keys()]), F = (e) => M().get(e)?.cards.map((e) => e.id) ?? [], [be, I] = E(), [L, xe] = E(), [R, z] = E(), [Se, Ce] = E(""), B = T(() => {
|
|
36
|
+
let e = be();
|
|
37
|
+
if (e) return e.kind === "column" ? M().has(e.id) ? e : void 0 : N().has(e.id) && M().has(e.target.column) ? e : void 0;
|
|
38
|
+
}), we = T(() => {
|
|
39
|
+
let e = B();
|
|
40
|
+
return e?.kind === "column" ? l(P(), e.id, e.target) : P();
|
|
41
|
+
}), Te = (e) => {
|
|
42
|
+
let t = B(), n = F(e);
|
|
43
|
+
if (t?.kind !== "card") return n;
|
|
44
|
+
let r = n.filter((e) => e !== t.id);
|
|
45
|
+
return t.target.column === e && r.splice(Math.min(r.length, t.target.index), 0, t.id), r;
|
|
46
|
+
}, V = `${ve}-instructions`, Ee, H, U = !1, De = !1;
|
|
47
|
+
D(() => {
|
|
48
|
+
De = !0;
|
|
49
|
+
});
|
|
50
|
+
let W = (e) => !!(A.disabled || M().get(e)?.disabled), Oe = (e) => {
|
|
51
|
+
let t = N().get(e);
|
|
52
|
+
return !t || W(t.column) || !!t.card.disabled;
|
|
53
|
+
}, ke = (e) => M().get(e)?.label ?? e, G = (e) => e.boardInstance === k, Ae = (e, t, n) => [...Ee?.querySelectorAll(e) ?? []].find((e) => e.getAttribute(t) === n), je = (e, t) => {
|
|
54
|
+
if (e === "column") return Ae(".sheen-board-column", "data-column-id", t)?.querySelector(".sheen-board-column-handle") ?? void 0;
|
|
55
|
+
let n = Ae(".sheen-board-card", "data-card-id", t);
|
|
56
|
+
return A.handle ? n?.querySelector(".sheen-board-card-handle") ?? void 0 : n;
|
|
57
|
+
}, Me = (e) => {
|
|
58
|
+
Ce(""), queueMicrotask(() => {
|
|
59
|
+
De || Ce(e);
|
|
60
|
+
});
|
|
61
|
+
}, K = (e) => O().format(e), q = (e, t, n) => Me(o(e, {
|
|
62
|
+
label: N().get(t)?.card.label ?? t,
|
|
63
|
+
column: ke(n.column),
|
|
64
|
+
position: K(n.index + 1),
|
|
65
|
+
count: K(F(n.column).filter((e) => e !== t).length + 1)
|
|
66
|
+
})), J = (e, t, n) => Me(o(e, {
|
|
67
|
+
label: ke(t),
|
|
68
|
+
position: K(n + 1),
|
|
69
|
+
count: K(P().length)
|
|
70
|
+
})), Y = (e, t, n) => {
|
|
71
|
+
U = !0;
|
|
72
|
+
try {
|
|
73
|
+
n();
|
|
74
|
+
} finally {
|
|
75
|
+
let n = je(e, t);
|
|
76
|
+
n && n.ownerDocument.activeElement !== n && n.focus(), U = !1;
|
|
77
|
+
}
|
|
78
|
+
}, X = (e) => {
|
|
79
|
+
let t = N().get(e);
|
|
80
|
+
return t ? {
|
|
81
|
+
column: t.column,
|
|
82
|
+
index: F(t.column).indexOf(e)
|
|
83
|
+
} : void 0;
|
|
84
|
+
}, Ne = (e, t) => {
|
|
85
|
+
let n = X(e);
|
|
86
|
+
!n || n.column === t.column && n.index === t.index || A.onMove({
|
|
87
|
+
id: e,
|
|
88
|
+
fromColumn: n.column,
|
|
89
|
+
fromIndex: n.index,
|
|
90
|
+
toColumn: t.column,
|
|
91
|
+
index: t.index
|
|
92
|
+
});
|
|
93
|
+
}, Pe = (e, t, n) => {
|
|
94
|
+
!A.onColumnReorder || t === n || t < 0 || A.onColumnReorder({
|
|
95
|
+
id: e,
|
|
96
|
+
fromIndex: t,
|
|
97
|
+
toIndex: n,
|
|
98
|
+
ids: l(P(), e, n)
|
|
99
|
+
});
|
|
100
|
+
}, Fe = () => {
|
|
101
|
+
let e = B();
|
|
102
|
+
I(void 0), e?.kind === "card" ? q(j().boardCancelled, e.id, e.origin) : e && J(j().sortableCancelled, e.id, e.origin);
|
|
103
|
+
}, Ie = (e, t) => {
|
|
104
|
+
let n = we();
|
|
105
|
+
for (let r = n.indexOf(e) + t; r >= 0 && r < n.length; r += t) {
|
|
106
|
+
let e = n[r];
|
|
107
|
+
if (e !== void 0 && !W(e)) return e;
|
|
108
|
+
}
|
|
109
|
+
}, Le = (e, t) => {
|
|
110
|
+
let n = (t) => F(t).filter((t) => t !== e.id).length, { column: r, index: i } = e.target;
|
|
111
|
+
if (t.kind === "edge") return {
|
|
112
|
+
column: r,
|
|
113
|
+
index: t.to === "start" ? 0 : n(r)
|
|
114
|
+
};
|
|
115
|
+
if (t.kind !== "step") return;
|
|
116
|
+
if (t.axis === "vertical") return {
|
|
117
|
+
column: r,
|
|
118
|
+
index: Math.max(0, Math.min(n(r), i + t.delta))
|
|
119
|
+
};
|
|
120
|
+
let a = Ie(r, t.delta);
|
|
121
|
+
return a ? {
|
|
122
|
+
column: a,
|
|
123
|
+
index: Math.min(i, n(a))
|
|
124
|
+
} : void 0;
|
|
125
|
+
}, Z = (e, t, n, r) => {
|
|
126
|
+
if (n.target !== r || n.altKey || n.ctrlKey || n.metaKey) return;
|
|
127
|
+
let i = c(n.key, s(r)), a = B();
|
|
128
|
+
if (!i) return;
|
|
129
|
+
if (!a) {
|
|
130
|
+
if (i.kind !== "toggle") return;
|
|
131
|
+
if (e === "card") {
|
|
132
|
+
let r = X(t);
|
|
133
|
+
if (!r || Oe(t)) return;
|
|
134
|
+
n.preventDefault(), I({
|
|
135
|
+
kind: e,
|
|
136
|
+
id: t,
|
|
137
|
+
origin: r,
|
|
138
|
+
target: r
|
|
139
|
+
}), q(j().boardLifted, t, r);
|
|
140
|
+
} else {
|
|
141
|
+
if (W(t)) return;
|
|
142
|
+
n.preventDefault();
|
|
143
|
+
let r = P().indexOf(t);
|
|
144
|
+
I({
|
|
145
|
+
kind: e,
|
|
146
|
+
id: t,
|
|
147
|
+
origin: r,
|
|
148
|
+
target: r
|
|
149
|
+
}), J(j().sortableLifted, t, r);
|
|
150
|
+
}
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
if (a.id !== t || a.kind !== e) return;
|
|
154
|
+
if (n.preventDefault(), i.kind === "cancel") {
|
|
155
|
+
Y(e, t, Fe);
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
if (a.kind === "card") {
|
|
159
|
+
if (i.kind === "toggle") {
|
|
160
|
+
Y(e, t, () => w(() => {
|
|
161
|
+
Ne(t, a.target), I(void 0);
|
|
162
|
+
})), q(j().boardDropped, t, a.target);
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
let n = Le(a, i);
|
|
166
|
+
if (!n || n.column === a.target.column && n.index === a.target.index) return;
|
|
167
|
+
Y(e, t, () => I({
|
|
168
|
+
...a,
|
|
169
|
+
target: n
|
|
170
|
+
})), q(j().boardMoved, t, n);
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
if (i.kind === "toggle") {
|
|
174
|
+
Y(e, t, () => w(() => {
|
|
175
|
+
Pe(t, a.origin, a.target), I(void 0);
|
|
176
|
+
})), J(j().sortableDropped, t, a.target);
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
if (i.kind === "step" && i.axis !== "horizontal") return;
|
|
180
|
+
let o = P().length - 1, l = i.kind === "edge" ? i.to === "start" ? 0 : o : Math.max(0, Math.min(o, a.target + i.delta));
|
|
181
|
+
l !== a.target && (Y(e, t, () => I({
|
|
182
|
+
...a,
|
|
183
|
+
target: l
|
|
184
|
+
})), J(j().sortableMoved, t, l));
|
|
185
|
+
}, Q = (e, t, n) => {
|
|
186
|
+
U || B()?.id !== e || t.relatedTarget instanceof Node && n.contains(t.relatedTarget) || Fe();
|
|
187
|
+
}, Re = (e, t) => {
|
|
188
|
+
let n = f(t, "columnId");
|
|
189
|
+
if (!n) return;
|
|
190
|
+
let r = F(n).filter((t) => t !== e);
|
|
191
|
+
if (t.kind === "column") return {
|
|
192
|
+
position: {
|
|
193
|
+
column: n,
|
|
194
|
+
index: r.length
|
|
195
|
+
},
|
|
196
|
+
indicator: {
|
|
197
|
+
kind: "append",
|
|
198
|
+
id: n
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
let i = f(t, "cardId"), o = a(t);
|
|
202
|
+
if (i && o && i !== e) return {
|
|
203
|
+
position: {
|
|
204
|
+
column: n,
|
|
205
|
+
index: r.indexOf(i) + +(o === "after")
|
|
206
|
+
},
|
|
207
|
+
indicator: {
|
|
208
|
+
kind: "card",
|
|
209
|
+
id: i,
|
|
210
|
+
edge: o
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
}, ze = (e, t) => {
|
|
214
|
+
let n = f(t, "columnId"), r = a(t);
|
|
215
|
+
if (t.kind !== "column" || !n || !r) return;
|
|
216
|
+
let o = P().indexOf(e), s = i(o, P().indexOf(n), r);
|
|
217
|
+
return s === o ? void 0 : {
|
|
218
|
+
from: o,
|
|
219
|
+
to: s,
|
|
220
|
+
indicator: {
|
|
221
|
+
kind: "column",
|
|
222
|
+
id: n,
|
|
223
|
+
edge: r
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
}, $ = (e, t) => {
|
|
227
|
+
let n = X(e);
|
|
228
|
+
return n?.column === t.column && n.index === t.index;
|
|
229
|
+
};
|
|
230
|
+
return se(() => {
|
|
231
|
+
if (!H) return;
|
|
232
|
+
let e = H;
|
|
233
|
+
D(ee({
|
|
234
|
+
accepts: G,
|
|
235
|
+
scrollers: () => d(e, ...e.querySelectorAll(".sheen-board-cards")),
|
|
236
|
+
onDrag: (e, t) => {
|
|
237
|
+
let n = f(e, "sourceId"), r;
|
|
238
|
+
if (n && t && e.kind === "card") {
|
|
239
|
+
let e = Re(n, t);
|
|
240
|
+
r = e && !$(n, e.position) ? e.indicator : void 0;
|
|
241
|
+
} else n && t && e.kind === "column" && (r = ze(n, t)?.indicator);
|
|
242
|
+
_e(L(), r) || xe(r);
|
|
243
|
+
},
|
|
244
|
+
onDrop: (e, t) => {
|
|
245
|
+
xe(void 0);
|
|
246
|
+
let n = f(e, "sourceId");
|
|
247
|
+
if (n && t) {
|
|
248
|
+
if (e.kind === "card") {
|
|
249
|
+
let e = Re(n, t);
|
|
250
|
+
if (!e || $(n, e.position)) return;
|
|
251
|
+
Ne(n, e.position), q(j().boardDropped, n, e.position);
|
|
252
|
+
} else if (e.kind === "column") {
|
|
253
|
+
let e = ze(n, t);
|
|
254
|
+
if (!e) return;
|
|
255
|
+
Pe(n, e.from, e.to), J(j().sortableDropped, n, e.to);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}));
|
|
260
|
+
}), (() => {
|
|
261
|
+
var e = le(), t = e.firstChild, i = t.nextSibling, a = i.nextSibling;
|
|
262
|
+
x((e) => {
|
|
263
|
+
Ee = e, typeof A.ref == "function" && A.ref(e);
|
|
264
|
+
}, e), ie(e, re(ye, {
|
|
265
|
+
get class() {
|
|
266
|
+
return n("sheen-board", A.class);
|
|
267
|
+
},
|
|
268
|
+
role: "group",
|
|
269
|
+
get "aria-label"() {
|
|
270
|
+
return A.label;
|
|
271
|
+
},
|
|
272
|
+
get "aria-describedby"() {
|
|
273
|
+
return [V, A["aria-describedby"]].filter(Boolean).join(" ");
|
|
274
|
+
},
|
|
275
|
+
get "data-disabled"() {
|
|
276
|
+
return A.disabled ? "" : void 0;
|
|
277
|
+
},
|
|
278
|
+
get "data-active"() {
|
|
279
|
+
return B() || R() ? "" : void 0;
|
|
280
|
+
}
|
|
281
|
+
}), !1, !0);
|
|
282
|
+
var s = H;
|
|
283
|
+
return typeof s == "function" ? x(s, t) : H = t, v(t, g(S, {
|
|
284
|
+
get each() {
|
|
285
|
+
return we();
|
|
286
|
+
},
|
|
287
|
+
children: (e) => {
|
|
288
|
+
let t = M().get(e);
|
|
289
|
+
if (!t) throw Error(`Board: missing column ${JSON.stringify(e)}`);
|
|
290
|
+
let n = t, i = () => {
|
|
291
|
+
let t = M().get(e);
|
|
292
|
+
return t && (n = t), n;
|
|
293
|
+
}, a = T(() => Te(e), void 0, { equals: (e, t) => e.length === t.length && e.every((e, n) => e === t[n]) }), s = () => a().length, c = oe(), l = () => W(e), u = () => B()?.kind === "column" && B()?.id === e, d = () => {
|
|
294
|
+
let t = L();
|
|
295
|
+
return t && t.kind !== "card" && t.id === e ? t : void 0;
|
|
296
|
+
}, f, p;
|
|
297
|
+
return ae(() => {
|
|
298
|
+
if (!f) return;
|
|
299
|
+
let t = f, n = !!A.onColumnReorder, i = [h({
|
|
300
|
+
element: t,
|
|
301
|
+
accepts: (e) => G(e) && !l() && (e.kind === "card" || n),
|
|
302
|
+
data: (n) => ({
|
|
303
|
+
kind: "column",
|
|
304
|
+
columnId: e,
|
|
305
|
+
edge: r(t, n, "horizontal")
|
|
306
|
+
})
|
|
307
|
+
})];
|
|
308
|
+
n && p && i.push(m({
|
|
309
|
+
element: t,
|
|
310
|
+
handle: p,
|
|
311
|
+
canDrag: () => !l() && !B(),
|
|
312
|
+
data: () => ({
|
|
313
|
+
boardInstance: k,
|
|
314
|
+
kind: "column",
|
|
315
|
+
sourceId: e
|
|
316
|
+
}),
|
|
317
|
+
onStart: () => z(e),
|
|
318
|
+
onEnd: () => z(void 0)
|
|
319
|
+
})), D(() => {
|
|
320
|
+
for (let e of i) e();
|
|
321
|
+
});
|
|
322
|
+
}), (() => {
|
|
323
|
+
var t = fe(), n = t.firstChild, r = n.firstChild, m = n.nextSibling, h = f;
|
|
324
|
+
return typeof h == "function" ? x(h, t) : f = t, y(t, "aria-labelledby", c), y(t, "data-column-id", e), v(n, g(C, {
|
|
325
|
+
get when() {
|
|
326
|
+
return A.onColumnReorder;
|
|
327
|
+
},
|
|
328
|
+
get children() {
|
|
329
|
+
var t = ue();
|
|
330
|
+
t.$$focusout = (t) => Q(e, t, t.currentTarget), t.$$keydown = (t) => Z("column", e, t, t.currentTarget);
|
|
331
|
+
var n = p;
|
|
332
|
+
return typeof n == "function" ? x(n, t) : p = t, y(t, "aria-describedby", V), v(t, g(te, {
|
|
333
|
+
class: "sheen-sortable-grip",
|
|
334
|
+
name: "grip"
|
|
335
|
+
})), _((e) => {
|
|
336
|
+
var n = o(j().boardColumnHandle, { label: i().label }), r = u() ? "true" : "false", a = l();
|
|
337
|
+
return n !== e.e && y(t, "aria-label", e.e = n), r !== e.t && y(t, "aria-pressed", e.t = r), a !== e.a && (t.disabled = e.a = a), e;
|
|
338
|
+
}, {
|
|
339
|
+
e: void 0,
|
|
340
|
+
t: void 0,
|
|
341
|
+
a: void 0
|
|
342
|
+
}), t;
|
|
343
|
+
}
|
|
344
|
+
}), r), y(r, "id", c), v(r, g(C, {
|
|
345
|
+
get when() {
|
|
346
|
+
return A.columnHeader;
|
|
347
|
+
},
|
|
348
|
+
get fallback() {
|
|
349
|
+
return [(() => {
|
|
350
|
+
var e = pe();
|
|
351
|
+
return v(e, () => i().label), e;
|
|
352
|
+
})(), (() => {
|
|
353
|
+
var e = me();
|
|
354
|
+
return v(e, () => K(s())), _(() => y(e, "aria-label", o(j().boardCardCount, { count: K(s()) }))), e;
|
|
355
|
+
})()];
|
|
356
|
+
},
|
|
357
|
+
children: (e) => e()(i, s)
|
|
358
|
+
})), y(m, "aria-labelledby", c), v(m, g(S, {
|
|
359
|
+
get each() {
|
|
360
|
+
return a();
|
|
361
|
+
},
|
|
362
|
+
children: (e) => g(Be, {
|
|
363
|
+
cardId: e,
|
|
364
|
+
column: i
|
|
365
|
+
})
|
|
366
|
+
})), v(t, g(C, {
|
|
367
|
+
get when() {
|
|
368
|
+
return s() === 0;
|
|
369
|
+
},
|
|
370
|
+
get children() {
|
|
371
|
+
var e = de();
|
|
372
|
+
return v(e, () => j().boardEmptyColumn), e;
|
|
373
|
+
}
|
|
374
|
+
}), null), _((n) => {
|
|
375
|
+
var r = l() ? "" : void 0, i = u() ? "" : void 0, a = R() === e ? "" : void 0, o = d()?.kind === "append" ? "" : void 0, s = (() => {
|
|
376
|
+
let e = d();
|
|
377
|
+
return e?.kind === "column" ? e.edge : void 0;
|
|
378
|
+
})();
|
|
379
|
+
return r !== n.e && y(t, "data-disabled", n.e = r), i !== n.t && y(t, "data-lifted", n.t = i), a !== n.a && y(t, "data-dragging", n.a = a), o !== n.o && y(t, "data-drop-target", n.o = o), s !== n.i && y(t, "data-drop-edge", n.i = s), n;
|
|
380
|
+
}, {
|
|
381
|
+
e: void 0,
|
|
382
|
+
t: void 0,
|
|
383
|
+
a: void 0,
|
|
384
|
+
o: void 0,
|
|
385
|
+
i: void 0
|
|
386
|
+
}), t;
|
|
387
|
+
})();
|
|
388
|
+
}
|
|
389
|
+
})), y(i, "id", V), v(i, () => j().boardInstructions), v(a, Se), e;
|
|
390
|
+
})();
|
|
391
|
+
function Be(e) {
|
|
392
|
+
let t = e.cardId, n = N().get(t);
|
|
393
|
+
if (!n) throw Error(`Board: missing card ${JSON.stringify(t)}`);
|
|
394
|
+
let i = n.card, a = () => {
|
|
395
|
+
let e = N().get(t);
|
|
396
|
+
return e && (i = e.card), i;
|
|
397
|
+
}, s = () => Oe(t), c = () => B()?.kind === "card" && B()?.id === t, l = () => !A.handle, u = () => {
|
|
398
|
+
let e = L();
|
|
399
|
+
return e?.kind === "card" && e.id === t ? e.edge : void 0;
|
|
400
|
+
}, d, f;
|
|
401
|
+
return ae(() => {
|
|
402
|
+
if (!d) return;
|
|
403
|
+
let n = d, i = A.handle ? f : void 0, a = [m({
|
|
404
|
+
element: n,
|
|
405
|
+
handle: i,
|
|
406
|
+
canDrag: () => !s() && !B(),
|
|
407
|
+
data: () => ({
|
|
408
|
+
boardInstance: k,
|
|
409
|
+
kind: "card",
|
|
410
|
+
sourceId: t
|
|
411
|
+
}),
|
|
412
|
+
onStart: () => z(t),
|
|
413
|
+
onEnd: () => z(void 0)
|
|
414
|
+
}), h({
|
|
415
|
+
element: n,
|
|
416
|
+
accepts: (t) => G(t) && t.kind === "card" && !W(e.column().id),
|
|
417
|
+
data: (i) => ({
|
|
418
|
+
kind: "card",
|
|
419
|
+
cardId: t,
|
|
420
|
+
columnId: e.column().id,
|
|
421
|
+
edge: r(n, i, "vertical")
|
|
422
|
+
})
|
|
423
|
+
})];
|
|
424
|
+
D(() => {
|
|
425
|
+
for (let e of a) e();
|
|
426
|
+
});
|
|
427
|
+
}), (() => {
|
|
428
|
+
var n = ge(), r = n.firstChild;
|
|
429
|
+
n.$$focusout = (e) => {
|
|
430
|
+
l() && Q(t, e, e.currentTarget);
|
|
431
|
+
}, n.$$keydown = (e) => {
|
|
432
|
+
l() && Z("card", t, e, e.currentTarget);
|
|
433
|
+
};
|
|
434
|
+
var i = d;
|
|
435
|
+
return typeof i == "function" ? x(i, n) : d = n, y(n, "data-card-id", t), v(n, g(C, {
|
|
436
|
+
get when() {
|
|
437
|
+
return A.handle;
|
|
438
|
+
},
|
|
439
|
+
get children() {
|
|
440
|
+
var e = he();
|
|
441
|
+
e.$$focusout = (e) => Q(t, e, e.currentTarget), e.$$keydown = (e) => Z("card", t, e, e.currentTarget);
|
|
442
|
+
var n = f;
|
|
443
|
+
return typeof n == "function" ? x(n, e) : f = e, y(e, "aria-describedby", V), v(e, g(te, {
|
|
444
|
+
class: "sheen-sortable-grip",
|
|
445
|
+
name: "grip"
|
|
446
|
+
})), _((t) => {
|
|
447
|
+
var n = o(j().boardCardHandle, { label: a().label }), r = c() ? "true" : "false", i = s();
|
|
448
|
+
return n !== t.e && y(e, "aria-label", t.e = n), r !== t.t && y(e, "aria-pressed", t.t = r), i !== t.a && (e.disabled = t.a = i), t;
|
|
449
|
+
}, {
|
|
450
|
+
e: void 0,
|
|
451
|
+
t: void 0,
|
|
452
|
+
a: void 0
|
|
453
|
+
}), e;
|
|
454
|
+
}
|
|
455
|
+
}), r), v(r, () => A.children(a, e.column)), _((e) => {
|
|
456
|
+
var r = s() ? "" : void 0, i = c() ? "" : void 0, a = R() === t ? "" : void 0, o = u(), d = l() && !s() ? 0 : void 0, f = l() ? V : void 0, p = l() && s() ? "true" : void 0;
|
|
457
|
+
return r !== e.e && y(n, "data-disabled", e.e = r), i !== e.t && y(n, "data-lifted", e.t = i), a !== e.a && y(n, "data-dragging", e.a = a), o !== e.o && y(n, "data-drop-edge", e.o = o), d !== e.i && y(n, "tabindex", e.i = d), f !== e.n && y(n, "aria-describedby", e.n = f), p !== e.s && y(n, "aria-disabled", e.s = p), e;
|
|
458
|
+
}, {
|
|
459
|
+
e: void 0,
|
|
460
|
+
t: void 0,
|
|
461
|
+
a: void 0,
|
|
462
|
+
o: void 0,
|
|
463
|
+
i: void 0,
|
|
464
|
+
n: void 0,
|
|
465
|
+
s: void 0
|
|
466
|
+
}), n;
|
|
467
|
+
})();
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
ne(["keydown", "focusout"]);
|
|
471
|
+
export { O as Board };
|
|
@@ -3,7 +3,7 @@ import { cn as t } from "../utils/cn.js";
|
|
|
3
3
|
import { createLinkFocusRecovery as n } from "./link-focus.js";
|
|
4
4
|
import { createComponent as r, effect as i, insert as a, mergeProps as o, setAttribute as s, spread as c, template as l, use as u } from "solid-js/web";
|
|
5
5
|
import { For as d, Show as f, createMemo as p, splitProps as m } from "solid-js";
|
|
6
|
-
|
|
6
|
+
// src/primitives/Breadcrumb.tsx
|
|
7
7
|
var h = /*#__PURE__*/ l("<nav><ol>"), g = /*#__PURE__*/ l("<a>"), _ = /*#__PURE__*/ l("<li>"), v = /*#__PURE__*/ l("<span aria-current=page>");
|
|
8
8
|
function y(l) {
|
|
9
9
|
let y = e(), [b, x] = m(l, [
|
|
@@ -62,5 +62,4 @@ function y(l) {
|
|
|
62
62
|
})), e;
|
|
63
63
|
})();
|
|
64
64
|
}
|
|
65
|
-
//#endregion
|
|
66
65
|
export { y as Breadcrumb };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { cn as e } from "../utils/cn.js";
|
|
2
2
|
import { buttonVariants as t } from "./button-variants.js";
|
|
3
3
|
import { useShortcutAction as n } from "./ShortcutProvider.js";
|
|
4
|
-
import { insert as r,
|
|
5
|
-
import { splitProps as
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
let [
|
|
4
|
+
import { insert as r, memo as i, mergeProps as a, spread as o, template as s, use as c } from "solid-js/web";
|
|
5
|
+
import { splitProps as l } from "solid-js";
|
|
6
|
+
// src/primitives/Button.tsx
|
|
7
|
+
var u = /*#__PURE__*/ s("<button>");
|
|
8
|
+
function d(s) {
|
|
9
|
+
let [d, f] = l(s, [
|
|
10
10
|
"class",
|
|
11
11
|
"variant",
|
|
12
12
|
"tone",
|
|
@@ -15,45 +15,56 @@ function u(o) {
|
|
|
15
15
|
"disabled",
|
|
16
16
|
"shortcut",
|
|
17
17
|
"ref",
|
|
18
|
+
"onClick",
|
|
18
19
|
"children"
|
|
19
|
-
]),
|
|
20
|
-
!
|
|
21
|
-
})
|
|
20
|
+
]), p, m = n(() => d.shortcut, () => {
|
|
21
|
+
!d.disabled && !d.loading && p?.click();
|
|
22
|
+
}), h = (e) => {
|
|
23
|
+
if (d.loading) {
|
|
24
|
+
e.preventDefault(), e.stopPropagation();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
let t = d.onClick;
|
|
28
|
+
typeof t == "function" ? t(e) : t && t[0](t[1], e);
|
|
29
|
+
};
|
|
22
30
|
return (() => {
|
|
23
|
-
var n =
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
}, n),
|
|
31
|
+
var n = u();
|
|
32
|
+
return c((e) => {
|
|
33
|
+
p = e, typeof d.ref == "function" && d.ref(e);
|
|
34
|
+
}, n), o(n, a(f, {
|
|
35
|
+
onClick: h,
|
|
27
36
|
get type() {
|
|
28
|
-
return
|
|
37
|
+
return f.type ?? "button";
|
|
29
38
|
},
|
|
30
39
|
get class() {
|
|
31
40
|
return e(t({
|
|
32
|
-
variant:
|
|
33
|
-
tone:
|
|
34
|
-
size:
|
|
35
|
-
}),
|
|
41
|
+
variant: d.variant,
|
|
42
|
+
tone: d.tone,
|
|
43
|
+
size: d.size
|
|
44
|
+
}), d.class);
|
|
36
45
|
},
|
|
37
46
|
get "data-variant"() {
|
|
38
|
-
return
|
|
47
|
+
return d.variant ?? "outline";
|
|
39
48
|
},
|
|
40
49
|
get "data-tone"() {
|
|
41
|
-
return
|
|
50
|
+
return d.tone ?? "neutral";
|
|
42
51
|
},
|
|
43
52
|
get "data-size"() {
|
|
44
|
-
return
|
|
53
|
+
return d.size ?? "md";
|
|
45
54
|
},
|
|
46
55
|
get "data-sheen-shortcut"() {
|
|
47
|
-
return
|
|
56
|
+
return m()?.displayKeys;
|
|
48
57
|
},
|
|
49
58
|
get disabled() {
|
|
50
|
-
return
|
|
59
|
+
return d.disabled;
|
|
60
|
+
},
|
|
61
|
+
get "aria-disabled"() {
|
|
62
|
+
return i(() => !(!d.loading || d.disabled))() ? "true" : f["aria-disabled"];
|
|
51
63
|
},
|
|
52
64
|
get "aria-busy"() {
|
|
53
|
-
return
|
|
65
|
+
return d.loading || void 0;
|
|
54
66
|
}
|
|
55
|
-
}), !1, !0), r(n, () =>
|
|
67
|
+
}), !1, !0), r(n, () => d.children), n;
|
|
56
68
|
})();
|
|
57
69
|
}
|
|
58
|
-
|
|
59
|
-
export { u as Button };
|
|
70
|
+
export { d as Button };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn as e } from "../utils/cn.js";
|
|
2
2
|
import { insert as t, mergeProps as n, spread as r, template as i } from "solid-js/web";
|
|
3
3
|
import { createMemo as a, splitProps as o } from "solid-js";
|
|
4
|
-
|
|
4
|
+
// src/primitives/ButtonGroup.tsx
|
|
5
5
|
var s = /*#__PURE__*/ i("<div>");
|
|
6
6
|
function c(i) {
|
|
7
7
|
let [c, l] = o(i, [
|
|
@@ -29,5 +29,4 @@ function c(i) {
|
|
|
29
29
|
}), !1, !0), t(i, () => c.children), i;
|
|
30
30
|
})();
|
|
31
31
|
}
|
|
32
|
-
//#endregion
|
|
33
32
|
export { c as ButtonGroup };
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import type { JSX } from "solid-js";
|
|
2
|
-
|
|
2
|
+
/** Exactly one accessible name source for the native input. */
|
|
3
|
+
export type BooleanControlName = {
|
|
4
|
+
label: string;
|
|
5
|
+
"aria-label"?: never;
|
|
6
|
+
"aria-labelledby"?: never;
|
|
7
|
+
} | {
|
|
8
|
+
label?: never;
|
|
9
|
+
"aria-label": string;
|
|
10
|
+
"aria-labelledby"?: never;
|
|
11
|
+
} | {
|
|
12
|
+
label?: never;
|
|
13
|
+
"aria-label"?: never;
|
|
14
|
+
"aria-labelledby": string;
|
|
15
|
+
};
|
|
16
|
+
export interface BooleanControlBaseProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, "children" | "onChange" | "id" | "ref" | "onPointerDown" | "aria-label" | "aria-labelledby" | `use:${string}`> {
|
|
3
17
|
id?: string;
|
|
4
18
|
ref?: HTMLDivElement | ((element: HTMLDivElement) => void);
|
|
5
19
|
onPointerDown?: NonNullable<JSX.HTMLAttributes<HTMLDivElement>["onPointerDown"]>;
|
|
6
|
-
label: string;
|
|
7
20
|
description?: string;
|
|
8
21
|
error?: string;
|
|
9
22
|
checked?: boolean;
|
|
@@ -18,5 +31,6 @@ export interface CheckboxProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>,
|
|
|
18
31
|
value?: string;
|
|
19
32
|
inputRef?: (element: HTMLInputElement) => void;
|
|
20
33
|
}
|
|
34
|
+
export type CheckboxProps = BooleanControlBaseProps & BooleanControlName;
|
|
21
35
|
export declare function createNativeBooleanControl(props: CheckboxProps, kind: "checkbox" | "switch"): JSX.Element;
|
|
22
36
|
export declare function Checkbox(props: CheckboxProps): JSX.Element;
|