@webstudio-is/sdk-components-react-radix 0.219.0 → 0.221.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/lib/__generated__/popover.props.js +2 -1
- package/lib/__generated__/tabs.props.js +2 -2
- package/lib/accordion.js +35 -23
- package/lib/accordion.template.js +4 -4
- package/lib/accordion.ws.js +27 -49
- package/lib/checkbox.js +17 -6
- package/lib/checkbox.ws.js +21 -36
- package/lib/collapsible.js +29 -26
- package/lib/collapsible.ws.js +8 -21
- package/lib/components.js +46 -45
- package/lib/dialog.js +50 -56
- package/lib/dialog.ws.js +36 -65
- package/lib/label.ws.js +8 -14
- package/lib/metas.js +45 -44
- package/lib/navigation-menu.ws.js +21 -35
- package/lib/popover.js +36 -32
- package/lib/popover.template.js +50 -20
- package/lib/popover.ws.js +35 -27
- package/lib/radio-group.js +10 -7
- package/lib/radio-group.ws.js +26 -44
- package/lib/select.js +49 -35
- package/lib/select.ws.js +33 -63
- package/lib/switch.js +9 -6
- package/lib/switch.ws.js +21 -44
- package/lib/tabs.js +46 -50
- package/lib/tabs.template.js +5 -5
- package/lib/tabs.ws.js +20 -42
- package/lib/tooltip.js +34 -31
- package/lib/tooltip.ws.js +12 -20
- package/lib/types/__generated__/popover.props.d.ts +1 -0
- package/lib/types/accordion.ws.d.ts +1 -6
- package/lib/types/checkbox.ws.d.ts +1 -3
- package/lib/types/collapsible.d.ts +2 -2
- package/lib/types/collapsible.ws.d.ts +1 -4
- package/lib/types/components.d.ts +1 -1
- package/lib/types/dialog.ws.d.ts +1 -8
- package/lib/types/label.ws.d.ts +1 -2
- package/lib/types/metas.d.ts +1 -1
- package/lib/types/navigation-menu.ws.d.ts +1 -8
- package/lib/types/popover.d.ts +1 -0
- package/lib/types/popover.ws.d.ts +2 -4
- package/lib/types/radio-group.d.ts +1 -1
- package/lib/types/radio-group.ws.d.ts +1 -4
- package/lib/types/select.ws.d.ts +1 -9
- package/lib/types/switch.ws.d.ts +1 -3
- package/lib/types/tabs.d.ts +1 -4
- package/lib/types/tabs.ws.d.ts +1 -5
- package/lib/types/tooltip.ws.d.ts +1 -4
- package/package.json +9 -15
- package/lib/props.js +0 -62
- package/lib/types/props.d.ts +0 -12
|
@@ -30,10 +30,10 @@ Mainly so arrow navigation is done accordingly (left & right vs. up & down)
|
|
|
30
30
|
options: ["horizontal", "vertical"]
|
|
31
31
|
},
|
|
32
32
|
value: {
|
|
33
|
+
description: "The value for the selected tab, if controlled",
|
|
33
34
|
required: !1,
|
|
34
35
|
control: "text",
|
|
35
|
-
type: "string"
|
|
36
|
-
description: "Current value of the element"
|
|
36
|
+
type: "string"
|
|
37
37
|
}
|
|
38
38
|
}, t = {
|
|
39
39
|
loop: {
|
package/lib/accordion.js
CHANGED
|
@@ -1,37 +1,49 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as m } from "react";
|
|
3
|
-
import { Header as
|
|
4
|
-
import { getIndexWithinAncestorFromProps as
|
|
2
|
+
import { forwardRef as m, useState as u, useEffect as f } from "react";
|
|
3
|
+
import { Header as l, Trigger as g, Content as A, Root as p, Item as h } from "@radix-ui/react-accordion";
|
|
4
|
+
import { getIndexWithinAncestorFromProps as P } from "@webstudio-is/sdk/runtime";
|
|
5
5
|
import { getClosestInstance as a } from "@webstudio-is/react-sdk/runtime";
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
const S = m(({ defaultValue: e, ...o }, n) => {
|
|
7
|
+
const t = o.value ?? e ?? "", [r, c] = u(t);
|
|
8
|
+
return f(() => c(t), [t]), /* @__PURE__ */ d(
|
|
9
|
+
p,
|
|
10
|
+
{
|
|
11
|
+
...o,
|
|
12
|
+
ref: n,
|
|
13
|
+
type: "single",
|
|
14
|
+
value: r,
|
|
15
|
+
onValueChange: c
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}), $ = m(({ value: e, ...o }, n) => {
|
|
19
|
+
const t = P(o);
|
|
20
|
+
return /* @__PURE__ */ d(h, { ref: n, value: e ?? t ?? "", ...o });
|
|
21
|
+
}), k = l, w = g, y = A, i = "@webstudio-is/sdk-components-react-radix", H = {
|
|
22
|
+
onNavigatorSelect: (e, o) => {
|
|
23
|
+
var n;
|
|
24
|
+
for (const t of o.instancePath)
|
|
25
|
+
if (t.component === `${i}:AccordionContent`) {
|
|
26
|
+
const r = a(
|
|
15
27
|
o.instancePath,
|
|
16
|
-
|
|
17
|
-
`${
|
|
18
|
-
),
|
|
28
|
+
t,
|
|
29
|
+
`${i}:Accordion`
|
|
30
|
+
), c = a(
|
|
19
31
|
o.instancePath,
|
|
20
|
-
|
|
21
|
-
`${
|
|
32
|
+
t,
|
|
33
|
+
`${i}:AccordionItem`
|
|
22
34
|
);
|
|
23
|
-
if (
|
|
24
|
-
const s =
|
|
25
|
-
s &&
|
|
35
|
+
if (r && c) {
|
|
36
|
+
const s = e.getPropValue(c, "value") ?? ((n = e.indexesWithinAncestors.get(c.id)) == null ? void 0 : n.toString());
|
|
37
|
+
s && e.setMemoryProp(r, "value", s);
|
|
26
38
|
}
|
|
27
39
|
}
|
|
28
40
|
}
|
|
29
41
|
};
|
|
30
42
|
export {
|
|
31
|
-
|
|
43
|
+
S as Accordion,
|
|
32
44
|
y as AccordionContent,
|
|
33
|
-
|
|
34
|
-
|
|
45
|
+
k as AccordionHeader,
|
|
46
|
+
$ as AccordionItem,
|
|
35
47
|
w as AccordionTrigger,
|
|
36
48
|
H as hooksAccordion
|
|
37
49
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { $ as o, PlaceholderValue as s, css as t } from "@webstudio-is/template";
|
|
3
3
|
import { radix as i } from "./shared/proxy.js";
|
|
4
|
-
import { height as h, width as m, transition as a, spacing as c, weights as
|
|
4
|
+
import { height as h, width as m, transition as a, spacing as c, weights as g, fontSize as f, fontSizeLineHeight as p, borderWidth as w, colors as y } from "./shared/theme.js";
|
|
5
5
|
import { ChevronDownIcon as b } from "@webstudio-is/icons/svg";
|
|
6
6
|
const n = (d, l) => /* @__PURE__ */ r(
|
|
7
7
|
i.AccordionItem,
|
|
@@ -25,7 +25,7 @@ const n = (d, l) => /* @__PURE__ */ r(
|
|
|
25
25
|
align-items: center;
|
|
26
26
|
justify-content: between;
|
|
27
27
|
padding: ${c[4]} 0;
|
|
28
|
-
font-weight: ${
|
|
28
|
+
font-weight: ${g.medium};
|
|
29
29
|
--accordion-trigger-icon-transform: 0deg;
|
|
30
30
|
&:hover {
|
|
31
31
|
text-decoration-line: underline;
|
|
@@ -61,7 +61,7 @@ const n = (d, l) => /* @__PURE__ */ r(
|
|
|
61
61
|
{
|
|
62
62
|
"ws:style": t`
|
|
63
63
|
overflow: hidden;
|
|
64
|
-
font-size: ${
|
|
64
|
+
font-size: ${f.sm};
|
|
65
65
|
line-height: ${p.sm};
|
|
66
66
|
transition: ${a.all};
|
|
67
67
|
padding-bottom: ${c[4]};
|
|
@@ -75,7 +75,7 @@ const n = (d, l) => /* @__PURE__ */ r(
|
|
|
75
75
|
category: "radix",
|
|
76
76
|
description: "A vertically stacked set of interactive headings that each reveal an associated section of content. Clicking on the heading will open the item and close other items.",
|
|
77
77
|
order: 3,
|
|
78
|
-
template: /* @__PURE__ */ r(i.Accordion, { collapsible: !0,
|
|
78
|
+
template: /* @__PURE__ */ r(i.Accordion, { collapsible: !0, value: "0", children: [
|
|
79
79
|
n(
|
|
80
80
|
"Is it accessible?",
|
|
81
81
|
"Yes. It adheres to the WAI-ARIA design pattern."
|
package/lib/accordion.ws.js
CHANGED
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
import { AccordionIcon as t, ItemIcon as n, HeaderIcon as r, TriggerIcon as c, ContentIcon as i } from "@webstudio-is/icons/svg";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { radix as o } from "./shared/meta.js";
|
|
2
|
+
import { div as o, h3 as a, button as p } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { radix as e } from "./shared/meta.js";
|
|
5
4
|
import { buttonReset as d } from "./shared/preset-styles.js";
|
|
6
|
-
import { propsAccordion as
|
|
5
|
+
import { propsAccordion as s, propsAccordionItem as l, propsAccordionHeader as m, propsAccordionTrigger as g, propsAccordionContent as A } from "./__generated__/accordion.props.js";
|
|
7
6
|
const v = {
|
|
8
7
|
icon: t,
|
|
9
8
|
contentModel: {
|
|
10
9
|
category: "instance",
|
|
11
10
|
children: ["instance"],
|
|
12
|
-
descendants: [
|
|
11
|
+
descendants: [e.AccordionItem]
|
|
13
12
|
},
|
|
14
|
-
presetStyle: {
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
presetStyle: { div: o },
|
|
14
|
+
initialProps: ["value", "collapsible"],
|
|
15
|
+
props: s
|
|
17
16
|
}, x = {
|
|
18
17
|
label: "Item",
|
|
19
18
|
icon: n,
|
|
20
|
-
indexWithinAncestor:
|
|
19
|
+
indexWithinAncestor: e.Accordion,
|
|
21
20
|
contentModel: {
|
|
22
21
|
category: "none",
|
|
23
22
|
children: ["instance"],
|
|
24
|
-
descendants: [
|
|
23
|
+
descendants: [e.AccordionHeader, e.AccordionContent]
|
|
25
24
|
},
|
|
26
|
-
presetStyle: {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
25
|
+
presetStyle: { div: o },
|
|
26
|
+
initialProps: ["value"],
|
|
27
|
+
props: l
|
|
28
|
+
}, f = {
|
|
30
29
|
label: "Item Header",
|
|
31
30
|
icon: r,
|
|
32
31
|
contentModel: {
|
|
33
32
|
category: "none",
|
|
34
33
|
children: ["instance"],
|
|
35
|
-
descendants: [
|
|
34
|
+
descendants: [e.AccordionTrigger]
|
|
36
35
|
},
|
|
37
36
|
presetStyle: {
|
|
38
37
|
h3: [
|
|
@@ -46,26 +45,21 @@ const v = {
|
|
|
46
45
|
value: { type: "unit", unit: "px", value: 0 }
|
|
47
46
|
}
|
|
48
47
|
]
|
|
49
|
-
}
|
|
50
|
-
|
|
48
|
+
},
|
|
49
|
+
props: m
|
|
50
|
+
}, C = {
|
|
51
51
|
label: "Item Trigger",
|
|
52
52
|
icon: c,
|
|
53
53
|
contentModel: {
|
|
54
54
|
category: "none",
|
|
55
55
|
children: ["instance", "rich-text"]
|
|
56
56
|
},
|
|
57
|
-
states: [
|
|
58
|
-
...p,
|
|
59
|
-
{
|
|
60
|
-
category: "component-states",
|
|
61
|
-
label: "Open",
|
|
62
|
-
selector: "[data-state=open]"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
57
|
+
states: [{ label: "Open", selector: "[data-state=open]" }],
|
|
65
58
|
presetStyle: {
|
|
66
|
-
button: [
|
|
67
|
-
}
|
|
68
|
-
|
|
59
|
+
button: [p, d].flat()
|
|
60
|
+
},
|
|
61
|
+
props: g
|
|
62
|
+
}, H = {
|
|
69
63
|
label: "Item Content",
|
|
70
64
|
icon: i,
|
|
71
65
|
contentModel: {
|
|
@@ -73,30 +67,14 @@ const v = {
|
|
|
73
67
|
children: ["instance", "rich-text"]
|
|
74
68
|
},
|
|
75
69
|
presetStyle: {
|
|
76
|
-
div:
|
|
77
|
-
}
|
|
78
|
-
}, T = {
|
|
79
|
-
props: l,
|
|
80
|
-
initialProps: ["value", "collapsible"]
|
|
81
|
-
}, P = {
|
|
82
|
-
props: m,
|
|
83
|
-
initialProps: ["value"]
|
|
84
|
-
}, O = {
|
|
70
|
+
div: o
|
|
71
|
+
},
|
|
85
72
|
props: A
|
|
86
|
-
}, R = {
|
|
87
|
-
props: g
|
|
88
|
-
}, W = {
|
|
89
|
-
props: y
|
|
90
73
|
};
|
|
91
74
|
export {
|
|
92
75
|
v as metaAccordion,
|
|
93
|
-
|
|
94
|
-
|
|
76
|
+
H as metaAccordionContent,
|
|
77
|
+
f as metaAccordionHeader,
|
|
95
78
|
x as metaAccordionItem,
|
|
96
|
-
|
|
97
|
-
T as propsMetaAccordion,
|
|
98
|
-
W as propsMetaAccordionContent,
|
|
99
|
-
O as propsMetaAccordionHeader,
|
|
100
|
-
P as propsMetaAccordionItem,
|
|
101
|
-
R as propsMetaAccordionTrigger
|
|
79
|
+
C as metaAccordionTrigger
|
|
102
80
|
};
|
package/lib/checkbox.js
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Indicator as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h, useState as s, useEffect as k } from "react";
|
|
3
|
+
import { Indicator as a, Root as m } from "@radix-ui/react-checkbox";
|
|
4
|
+
const x = h(({ defaultChecked: c, ...o }, r) => {
|
|
5
|
+
const e = o.checked ?? c ?? !1, [n, t] = s(e);
|
|
6
|
+
return k(() => t(e), [e]), /* @__PURE__ */ f(
|
|
7
|
+
m,
|
|
8
|
+
{
|
|
9
|
+
...o,
|
|
10
|
+
ref: r,
|
|
11
|
+
checked: n,
|
|
12
|
+
onCheckedChange: (d) => t(d === !0)
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}), b = a;
|
|
5
16
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
17
|
+
x as Checkbox,
|
|
18
|
+
b as CheckboxIndicator
|
|
8
19
|
};
|
package/lib/checkbox.ws.js
CHANGED
|
@@ -1,51 +1,36 @@
|
|
|
1
|
-
import { CheckboxCheckedIcon as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
icon: t,
|
|
1
|
+
import { CheckboxCheckedIcon as e, TriggerIcon as t } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { button as o, span as c } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { radix as n } from "./shared/meta.js";
|
|
4
|
+
import { buttonReset as r } from "./shared/preset-styles.js";
|
|
5
|
+
import { propsCheckbox as a, propsCheckboxIndicator as s } from "./__generated__/checkbox.props.js";
|
|
6
|
+
const m = {
|
|
7
|
+
icon: e,
|
|
9
8
|
contentModel: {
|
|
10
9
|
category: "instance",
|
|
11
10
|
children: ["instance"],
|
|
12
|
-
descendants: [
|
|
11
|
+
descendants: [n.CheckboxIndicator]
|
|
13
12
|
},
|
|
14
13
|
states: [
|
|
15
|
-
|
|
16
|
-
{
|
|
17
|
-
label: "Checked",
|
|
18
|
-
selector: "[data-state=checked]",
|
|
19
|
-
category: "component-states"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
label: "Unchecked",
|
|
23
|
-
selector: "[data-state=unchecked]",
|
|
24
|
-
category: "component-states"
|
|
25
|
-
}
|
|
14
|
+
{ label: "Checked", selector: "[data-state=checked]" },
|
|
15
|
+
{ label: "Unchecked", selector: "[data-state=unchecked]" }
|
|
26
16
|
],
|
|
27
17
|
presetStyle: {
|
|
28
|
-
button: [
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
18
|
+
button: [o, r].flat()
|
|
19
|
+
},
|
|
20
|
+
initialProps: ["id", "class", "name", "value", "required", "checked"],
|
|
21
|
+
props: a
|
|
22
|
+
}, k = {
|
|
23
|
+
icon: t,
|
|
32
24
|
contentModel: {
|
|
33
25
|
category: "none",
|
|
34
26
|
children: ["instance", "rich-text"]
|
|
35
27
|
},
|
|
36
|
-
states: e,
|
|
37
28
|
presetStyle: {
|
|
38
|
-
span:
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
props: s,
|
|
42
|
-
initialProps: ["id", "className", "name", "value", "required", "checked"]
|
|
43
|
-
}, f = {
|
|
44
|
-
props: i
|
|
29
|
+
span: c
|
|
30
|
+
},
|
|
31
|
+
props: s
|
|
45
32
|
};
|
|
46
33
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
C as propsMetaCheckbox,
|
|
50
|
-
f as propsMetaCheckboxIndicator
|
|
34
|
+
m as metaCheckbox,
|
|
35
|
+
k as metaCheckboxIndicator
|
|
51
36
|
};
|
package/lib/collapsible.js
CHANGED
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import { getClosestInstance as
|
|
5
|
-
const
|
|
6
|
-
const n =
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
}),
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as a, useState as c, useEffect as p, Children as f } from "react";
|
|
3
|
+
import { Content as C, Root as m, Trigger as b } from "@radix-ui/react-collapsible";
|
|
4
|
+
import { getClosestInstance as r } from "@webstudio-is/react-sdk/runtime";
|
|
5
|
+
const P = a((n, t) => {
|
|
6
|
+
const o = n.open ?? !1, [e, i] = c(o);
|
|
7
|
+
return p(() => i(o), [o]), /* @__PURE__ */ l(m, { ...n, ref: t, open: e, onOpenChange: i });
|
|
8
|
+
}), $ = a(({ children: n, ...t }, o) => {
|
|
9
|
+
const e = f.toArray(n)[0];
|
|
10
|
+
return /* @__PURE__ */ l(b, { asChild: !0, ref: o, ...t, children: e ?? /* @__PURE__ */ l("button", { children: "Add button" }) });
|
|
11
|
+
}), x = C, s = "@webstudio-is/sdk-components-react-radix", y = {
|
|
12
|
+
onNavigatorSelect: (n, t) => {
|
|
13
|
+
for (const o of t.instancePath)
|
|
14
|
+
if (o.component === `${s}:CollapsibleContent`) {
|
|
15
|
+
const e = r(
|
|
16
|
+
t.instancePath,
|
|
17
|
+
o,
|
|
15
18
|
`${s}:Collapsible`
|
|
16
19
|
);
|
|
17
|
-
|
|
20
|
+
e && n.setMemoryProp(e, "open", !0);
|
|
18
21
|
}
|
|
19
22
|
},
|
|
20
|
-
onNavigatorUnselect: (
|
|
21
|
-
for (const
|
|
22
|
-
if (
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
onNavigatorUnselect: (n, t) => {
|
|
24
|
+
for (const o of t.instancePath)
|
|
25
|
+
if (o.component === `${s}:CollapsibleContent`) {
|
|
26
|
+
const e = r(
|
|
27
|
+
t.instancePath,
|
|
28
|
+
o,
|
|
26
29
|
`${s}:Collapsible`
|
|
27
30
|
);
|
|
28
|
-
|
|
31
|
+
e && n.setMemoryProp(e, "open", void 0);
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
};
|
|
32
35
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
P as Collapsible,
|
|
37
|
+
x as CollapsibleContent,
|
|
38
|
+
$ as CollapsibleTrigger,
|
|
39
|
+
y as hooksCollapsible
|
|
37
40
|
};
|
package/lib/collapsible.ws.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CollapsibleIcon as n, TriggerIcon as t, ContentIcon as l } from "@webstudio-is/icons/svg";
|
|
2
2
|
import { div as o } from "@webstudio-is/sdk/normalize.css";
|
|
3
3
|
import { radix as e } from "./shared/meta.js";
|
|
4
|
-
import { propsCollapsible as r, propsCollapsibleTrigger as
|
|
4
|
+
import { propsCollapsible as r, propsCollapsibleTrigger as i, propsCollapsibleContent as p } from "./__generated__/collapsible.props.js";
|
|
5
5
|
const g = {
|
|
6
6
|
icon: n,
|
|
7
7
|
contentModel: {
|
|
@@ -11,13 +11,16 @@ const g = {
|
|
|
11
11
|
},
|
|
12
12
|
presetStyle: {
|
|
13
13
|
div: o
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
},
|
|
15
|
+
initialProps: ["open"],
|
|
16
|
+
props: r
|
|
17
|
+
}, m = {
|
|
16
18
|
icon: t,
|
|
17
19
|
contentModel: {
|
|
18
20
|
category: "none",
|
|
19
21
|
children: ["instance", "rich-text"]
|
|
20
|
-
}
|
|
22
|
+
},
|
|
23
|
+
props: i
|
|
21
24
|
}, d = {
|
|
22
25
|
icon: l,
|
|
23
26
|
contentModel: {
|
|
@@ -26,27 +29,11 @@ const g = {
|
|
|
26
29
|
},
|
|
27
30
|
presetStyle: {
|
|
28
31
|
div: o
|
|
29
|
-
}
|
|
30
|
-
}, m = {
|
|
31
|
-
props: {
|
|
32
|
-
...r,
|
|
33
|
-
onOpenChange: {
|
|
34
|
-
type: "action",
|
|
35
|
-
control: "action",
|
|
36
|
-
required: !1
|
|
37
|
-
}
|
|
38
32
|
},
|
|
39
|
-
initialProps: ["open", "onOpenChange"]
|
|
40
|
-
}, h = {
|
|
41
33
|
props: p
|
|
42
|
-
}, y = {
|
|
43
|
-
props: i
|
|
44
34
|
};
|
|
45
35
|
export {
|
|
46
36
|
g as metaCollapsible,
|
|
47
37
|
d as metaCollapsibleContent,
|
|
48
|
-
|
|
49
|
-
m as propsMetaCollapsible,
|
|
50
|
-
y as propsMetaCollapsibleContent,
|
|
51
|
-
h as propsMetaCollapsibleTrigger
|
|
38
|
+
m as metaCollapsibleTrigger
|
|
52
39
|
};
|
package/lib/components.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { Collapsible as t, CollapsibleContent as r, CollapsibleTrigger as i } from "./collapsible.js";
|
|
2
2
|
import { Dialog as a, DialogClose as l, DialogContent as g, DialogDescription as p, DialogOverlay as c, DialogTitle as m, DialogTrigger as T } from "./dialog.js";
|
|
3
|
-
import { Popover as C,
|
|
4
|
-
import { Tooltip as
|
|
5
|
-
import { Tabs as
|
|
6
|
-
import { Label as
|
|
7
|
-
import { Accordion as
|
|
8
|
-
import { NavigationMenu as
|
|
9
|
-
import { Select as
|
|
10
|
-
import { Switch as
|
|
11
|
-
import { Checkbox as
|
|
12
|
-
import { RadioGroup as
|
|
3
|
+
import { Popover as C, PopoverClose as d, PopoverContent as f, PopoverTrigger as s } from "./popover.js";
|
|
4
|
+
import { Tooltip as v, TooltipContent as b, TooltipTrigger as S } from "./tooltip.js";
|
|
5
|
+
import { Tabs as D, TabsContent as M, TabsList as N, TabsTrigger as h } from "./tabs.js";
|
|
6
|
+
import { Label as w } from "./label.js";
|
|
7
|
+
import { Accordion as P, AccordionContent as k, AccordionHeader as G, AccordionItem as R, AccordionTrigger as V } from "./accordion.js";
|
|
8
|
+
import { NavigationMenu as H, NavigationMenuContent as O, NavigationMenuItem as j, NavigationMenuLink as q, NavigationMenuList as z, NavigationMenuTrigger as B, NavigationMenuViewport as E } from "./navigation-menu.js";
|
|
9
|
+
import { Select as J, SelectContent as K, SelectItem as Q, SelectItemIndicator as U, SelectItemText as W, SelectTrigger as X, SelectValue as Y, SelectViewport as Z } from "./select.js";
|
|
10
|
+
import { Switch as $, SwitchThumb as oo } from "./switch.js";
|
|
11
|
+
import { Checkbox as to, CheckboxIndicator as ro } from "./checkbox.js";
|
|
12
|
+
import { RadioGroup as no, RadioGroupIndicator as ao, RadioGroupItem as lo } from "./radio-group.js";
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
P as Accordion,
|
|
15
15
|
k as AccordionContent,
|
|
16
16
|
G as AccordionHeader,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
R as AccordionItem,
|
|
18
|
+
V as AccordionTrigger,
|
|
19
|
+
to as Checkbox,
|
|
20
|
+
ro as CheckboxIndicator,
|
|
21
21
|
t as Collapsible,
|
|
22
22
|
r as CollapsibleContent,
|
|
23
23
|
i as CollapsibleTrigger,
|
|
@@ -28,35 +28,36 @@ export {
|
|
|
28
28
|
c as DialogOverlay,
|
|
29
29
|
m as DialogTitle,
|
|
30
30
|
T as DialogTrigger,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
w as Label,
|
|
32
|
+
H as NavigationMenu,
|
|
33
|
+
O as NavigationMenuContent,
|
|
34
|
+
j as NavigationMenuItem,
|
|
35
|
+
q as NavigationMenuLink,
|
|
36
|
+
z as NavigationMenuList,
|
|
37
|
+
B as NavigationMenuTrigger,
|
|
38
|
+
E as NavigationMenuViewport,
|
|
39
39
|
C as Popover,
|
|
40
|
-
d as
|
|
41
|
-
f as
|
|
42
|
-
|
|
43
|
-
no as
|
|
44
|
-
ao as
|
|
45
|
-
|
|
46
|
-
J as
|
|
47
|
-
K as
|
|
48
|
-
Q as
|
|
49
|
-
U as
|
|
50
|
-
W as
|
|
51
|
-
X as
|
|
52
|
-
Y as
|
|
53
|
-
|
|
54
|
-
$ as
|
|
55
|
-
|
|
56
|
-
D as
|
|
57
|
-
M as
|
|
58
|
-
N as
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
40
|
+
d as PopoverClose,
|
|
41
|
+
f as PopoverContent,
|
|
42
|
+
s as PopoverTrigger,
|
|
43
|
+
no as RadioGroup,
|
|
44
|
+
ao as RadioGroupIndicator,
|
|
45
|
+
lo as RadioGroupItem,
|
|
46
|
+
J as Select,
|
|
47
|
+
K as SelectContent,
|
|
48
|
+
Q as SelectItem,
|
|
49
|
+
U as SelectItemIndicator,
|
|
50
|
+
W as SelectItemText,
|
|
51
|
+
X as SelectTrigger,
|
|
52
|
+
Y as SelectValue,
|
|
53
|
+
Z as SelectViewport,
|
|
54
|
+
$ as Switch,
|
|
55
|
+
oo as SwitchThumb,
|
|
56
|
+
D as Tabs,
|
|
57
|
+
M as TabsContent,
|
|
58
|
+
N as TabsList,
|
|
59
|
+
h as TabsTrigger,
|
|
60
|
+
v as Tooltip,
|
|
61
|
+
b as TooltipContent,
|
|
62
|
+
S as TooltipTrigger
|
|
62
63
|
};
|