@webstudio-is/sdk-components-react-radix 0.0.0-5844e28 → 0.0.0-73cd6ea
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__/accordion.props.js +15 -2582
- package/lib/__generated__/checkbox.props.js +5 -1071
- package/lib/__generated__/collapsible.props.js +7 -1012
- package/lib/__generated__/dialog.props.js +10 -2585
- package/lib/__generated__/label.props.js +2 -517
- package/lib/__generated__/navigation-menu.props.js +13 -3625
- package/lib/__generated__/popover.props.js +7 -509
- package/lib/__generated__/radio-group.props.js +19 -1568
- package/lib/__generated__/select.props.js +42 -3615
- package/lib/__generated__/switch.props.js +5 -1071
- package/lib/__generated__/tabs.props.js +17 -2073
- package/lib/__generated__/tooltip.props.js +6 -503
- package/lib/accordion.js +33 -20
- package/lib/accordion.template.js +14 -14
- package/lib/accordion.ws.js +56 -93
- package/lib/checkbox.js +17 -6
- package/lib/checkbox.template.js +10 -10
- package/lib/checkbox.ws.js +26 -41
- package/lib/collapsible.js +29 -26
- package/lib/collapsible.ws.js +28 -48
- package/lib/components.js +46 -45
- package/lib/dialog.js +50 -56
- package/lib/dialog.template.js +19 -19
- package/lib/dialog.ws.js +68 -126
- package/lib/label.template.js +3 -3
- package/lib/label.ws.js +8 -15
- package/lib/metas.js +45 -44
- package/lib/navigation-menu.js +21 -20
- package/lib/navigation-menu.template.js +8 -8
- package/lib/navigation-menu.ws.js +71 -102
- package/lib/popover.js +36 -32
- package/lib/popover.template.js +50 -20
- package/lib/popover.ws.js +45 -44
- package/lib/radio-group.js +10 -7
- package/lib/radio-group.ws.js +37 -61
- package/lib/select.js +49 -37
- package/lib/select.ws.js +71 -137
- package/lib/shared/meta.js +13 -0
- package/lib/shared/preset-styles.js +29 -29
- package/lib/shared/theme.js +25 -68
- package/lib/sheet.template.js +32 -32
- package/lib/switch.js +9 -6
- package/lib/switch.template.js +9 -9
- package/lib/switch.ws.js +29 -52
- package/lib/tabs.js +50 -53
- package/lib/tabs.template.js +16 -16
- package/lib/tabs.ws.js +41 -76
- package/lib/tooltip.js +34 -31
- package/lib/tooltip.ws.js +27 -42
- 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.d.ts +3 -3
- package/lib/types/select.ws.d.ts +1 -9
- package/lib/types/shared/meta.d.ts +1 -0
- package/lib/types/shared/preset-styles.d.ts +2 -2
- package/lib/types/shared/proxy.d.ts +1 -0
- 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 +21 -27
- package/lib/props.js +0 -62
- package/lib/types/props.d.ts +0 -12
package/lib/popover.ws.js
CHANGED
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
import { TriggerIcon as
|
|
2
|
-
import { div as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
|
|
1
|
+
import { PopoverIcon as e, TriggerIcon as t, ContentIcon as n, ButtonElementIcon as r } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { div as p, button as i } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { radix as o } from "./shared/meta.js";
|
|
4
|
+
import { propsPopover as s, propsPopoverTrigger as c, propsPopoverContent as a, propsPopoverClose as l } from "./__generated__/popover.props.js";
|
|
5
|
+
import { buttonReset as d } from "./shared/preset-styles.js";
|
|
6
|
+
const C = {
|
|
7
|
+
icon: t,
|
|
8
|
+
contentModel: {
|
|
9
|
+
category: "none",
|
|
10
|
+
children: ["instance"]
|
|
11
|
+
},
|
|
12
|
+
props: c
|
|
13
|
+
}, y = {
|
|
14
|
+
icon: n,
|
|
15
|
+
contentModel: {
|
|
16
|
+
category: "none",
|
|
17
|
+
children: ["instance"],
|
|
18
|
+
descendants: [o.PopoverClose]
|
|
19
|
+
},
|
|
13
20
|
presetStyle: {
|
|
14
|
-
div:
|
|
21
|
+
div: p
|
|
15
22
|
},
|
|
23
|
+
initialProps: ["side", "sideOffset", "align", "alignOffset"],
|
|
24
|
+
props: a
|
|
25
|
+
}, h = {
|
|
16
26
|
icon: e,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
props: r,
|
|
36
|
-
initialProps: ["open"]
|
|
37
|
-
}, l = {
|
|
38
|
-
props: p
|
|
39
|
-
}, d = {
|
|
40
|
-
props: i,
|
|
41
|
-
initialProps: ["side", "sideOffset", "align", "alignOffset"]
|
|
27
|
+
contentModel: {
|
|
28
|
+
category: "instance",
|
|
29
|
+
children: ["instance"],
|
|
30
|
+
descendants: [o.PopoverTrigger, o.PopoverContent]
|
|
31
|
+
},
|
|
32
|
+
initialProps: ["open"],
|
|
33
|
+
props: s
|
|
34
|
+
}, u = {
|
|
35
|
+
icon: r,
|
|
36
|
+
label: "Close Button",
|
|
37
|
+
contentModel: {
|
|
38
|
+
category: "none",
|
|
39
|
+
children: ["instance", "rich-text"]
|
|
40
|
+
},
|
|
41
|
+
presetStyle: {
|
|
42
|
+
button: [d, i].flat()
|
|
43
|
+
},
|
|
44
|
+
props: l
|
|
42
45
|
};
|
|
43
46
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
d as propsMetaPopoverContent,
|
|
49
|
-
l as propsMetaPopoverTrigger
|
|
47
|
+
h as metaPopover,
|
|
48
|
+
u as metaPopoverClose,
|
|
49
|
+
y as metaPopoverContent,
|
|
50
|
+
C as metaPopoverTrigger
|
|
50
51
|
};
|
package/lib/radio-group.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as m } from "react";
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c, useState as i, useEffect as m } from "react";
|
|
3
|
+
import { Item as s, Indicator as f, Root as d } from "@radix-ui/react-radio-group";
|
|
4
|
+
const I = c(({ defaultValue: r, ...t }, a) => {
|
|
5
|
+
const o = t.value ?? r ?? "", [u, e] = i(o);
|
|
6
|
+
return m(() => e(o), [o]), /* @__PURE__ */ n(d, { ...t, ref: a, value: u, onValueChange: e });
|
|
7
|
+
}), G = s, V = f;
|
|
5
8
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
I as RadioGroup,
|
|
10
|
+
V as RadioGroupIndicator,
|
|
11
|
+
G as RadioGroupItem
|
|
9
12
|
};
|
package/lib/radio-group.ws.js
CHANGED
|
@@ -1,73 +1,49 @@
|
|
|
1
|
-
import { RadioGroupIcon as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { buttonReset as
|
|
5
|
-
import { propsRadioGroup as
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { RadioGroupIcon as e, ItemIcon as t, TriggerIcon as r } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { div as n, button as a, span as i } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { radix as o } from "./shared/meta.js";
|
|
4
|
+
import { buttonReset as c } from "./shared/preset-styles.js";
|
|
5
|
+
import { propsRadioGroup as p, propsRadioGroupItem as d, propsRadioGroupIndicator as s } from "./__generated__/radio-group.props.js";
|
|
6
|
+
const G = {
|
|
7
|
+
icon: e,
|
|
8
|
+
contentModel: {
|
|
9
|
+
category: "instance",
|
|
10
|
+
children: ["instance"],
|
|
11
|
+
descendants: [o.RadioGroupItem]
|
|
11
12
|
},
|
|
12
|
-
icon: t,
|
|
13
13
|
states: [
|
|
14
|
-
|
|
15
|
-
{
|
|
16
|
-
label: "Checked",
|
|
17
|
-
selector: "[data-state=checked]",
|
|
18
|
-
category: "component-states"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
label: "Unchecked",
|
|
22
|
-
selector: "[data-state=unchecked]",
|
|
23
|
-
category: "component-states"
|
|
24
|
-
}
|
|
14
|
+
{ label: "Checked", selector: "[data-state=checked]" },
|
|
15
|
+
{ label: "Unchecked", selector: "[data-state=unchecked]" }
|
|
25
16
|
],
|
|
26
17
|
presetStyle: {
|
|
27
|
-
div:
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
component: { $eq: "RadioGroupIndicator" }
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
icon: e,
|
|
42
|
-
states: o,
|
|
18
|
+
div: n
|
|
19
|
+
},
|
|
20
|
+
initialProps: ["id", "class", "name", "value", "required"],
|
|
21
|
+
props: p
|
|
22
|
+
}, h = {
|
|
23
|
+
icon: t,
|
|
24
|
+
contentModel: {
|
|
25
|
+
category: "none",
|
|
26
|
+
children: ["instance"],
|
|
27
|
+
descendants: [o.RadioGroupIndicator]
|
|
28
|
+
},
|
|
43
29
|
presetStyle: {
|
|
44
|
-
button: [
|
|
45
|
-
}
|
|
30
|
+
button: [a, c].flat()
|
|
31
|
+
},
|
|
32
|
+
initialProps: ["value"],
|
|
33
|
+
props: d
|
|
46
34
|
}, f = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
component: { $eq: "RadioGroupItem" }
|
|
35
|
+
icon: r,
|
|
36
|
+
contentModel: {
|
|
37
|
+
category: "none",
|
|
38
|
+
children: ["instance"]
|
|
52
39
|
},
|
|
53
|
-
states: o,
|
|
54
40
|
presetStyle: {
|
|
55
|
-
span:
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
props: i,
|
|
59
|
-
initialProps: ["id", "className", "name", "value", "required"]
|
|
60
|
-
}, q = {
|
|
61
|
-
props: c,
|
|
62
|
-
initialProps: ["value"]
|
|
63
|
-
}, g = {
|
|
64
|
-
props: d
|
|
41
|
+
span: i
|
|
42
|
+
},
|
|
43
|
+
props: s
|
|
65
44
|
};
|
|
66
45
|
export {
|
|
67
|
-
|
|
46
|
+
G as metaRadioGroup,
|
|
68
47
|
f as metaRadioGroupIndicator,
|
|
69
|
-
|
|
70
|
-
b as propsMetaRadioGroup,
|
|
71
|
-
g as propsMetaRadioGroupIndicator,
|
|
72
|
-
q as propsMetaRadioGroupItem
|
|
48
|
+
h as metaRadioGroupItem
|
|
73
49
|
};
|
package/lib/select.js
CHANGED
|
@@ -1,46 +1,58 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import { ReactSdkContext as
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
)
|
|
8
|
-
const
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as a, useState as m, useEffect as f, useContext as g } from "react";
|
|
3
|
+
import { Viewport as C, Item as I, ItemIndicator as P, ItemText as h, Root as x, Trigger as V, Value as v, Portal as w, Content as T } from "@radix-ui/react-select";
|
|
4
|
+
import { ReactSdkContext as $, getClosestInstance as u } from "@webstudio-is/react-sdk/runtime";
|
|
5
|
+
const y = a(({ defaultOpen: t, defaultValue: e, ...n }, o) => {
|
|
6
|
+
const c = n.open ?? t ?? !1, [S, l] = m(c);
|
|
7
|
+
f(() => l(c), [c]);
|
|
8
|
+
const i = n.value ?? e ?? "", [d, p] = m(i);
|
|
9
|
+
return f(() => p(i), [i]), /* @__PURE__ */ r(
|
|
10
|
+
x,
|
|
11
|
+
{
|
|
12
|
+
...n,
|
|
13
|
+
open: S,
|
|
14
|
+
onOpenChange: l,
|
|
15
|
+
value: d,
|
|
16
|
+
onValueChange: p
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}), M = a((t, e) => {
|
|
20
|
+
const { renderer: n } = g($);
|
|
21
|
+
return /* @__PURE__ */ r(V, { onPointerDown: n === "canvas" ? (c) => {
|
|
22
|
+
c.preventDefault();
|
|
23
|
+
} : void 0, ref: e, ...t });
|
|
24
|
+
}), N = a((t, e) => /* @__PURE__ */ r(v, { ref: e, ...t })), b = a((t, e) => /* @__PURE__ */ r(w, { children: /* @__PURE__ */ r(T, { ref: e, ...t, position: "popper" }) })), j = C, E = I, U = P, _ = h, s = "@webstudio-is/sdk-components-react-radix", q = {
|
|
25
|
+
onNavigatorUnselect: (t, e) => {
|
|
26
|
+
for (const n of e.instancePath)
|
|
27
|
+
if (n.component === `${s}:SelectContent`) {
|
|
28
|
+
const o = u(
|
|
29
|
+
e.instancePath,
|
|
30
|
+
n,
|
|
31
|
+
`${s}:Select`
|
|
20
32
|
);
|
|
21
|
-
|
|
33
|
+
o && t.setMemoryProp(o, "open", void 0);
|
|
22
34
|
}
|
|
23
35
|
},
|
|
24
|
-
onNavigatorSelect: (
|
|
25
|
-
for (const
|
|
26
|
-
if (
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
`${
|
|
36
|
+
onNavigatorSelect: (t, e) => {
|
|
37
|
+
for (const n of e.instancePath)
|
|
38
|
+
if (n.component === `${s}:SelectContent`) {
|
|
39
|
+
const o = u(
|
|
40
|
+
e.instancePath,
|
|
41
|
+
n,
|
|
42
|
+
`${s}:Select`
|
|
31
43
|
);
|
|
32
|
-
|
|
44
|
+
o && t.setMemoryProp(o, "open", !0);
|
|
33
45
|
}
|
|
34
46
|
}
|
|
35
47
|
};
|
|
36
48
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
49
|
+
y as Select,
|
|
50
|
+
b as SelectContent,
|
|
51
|
+
E as SelectItem,
|
|
52
|
+
U as SelectItemIndicator,
|
|
53
|
+
_ as SelectItemText,
|
|
54
|
+
M as SelectTrigger,
|
|
55
|
+
N as SelectValue,
|
|
56
|
+
j as SelectViewport,
|
|
57
|
+
q as hooksSelect
|
|
46
58
|
};
|
package/lib/select.ws.js
CHANGED
|
@@ -1,155 +1,89 @@
|
|
|
1
|
-
import { SelectIcon as o, TriggerIcon as
|
|
2
|
-
import { button as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { SelectIcon as o, TriggerIcon as c, FormTextFieldIcon as r, ViewportIcon as l, ContentIcon as i, ItemIcon as p, CheckMarkIcon as s, TextIcon as a } from "@webstudio-is/icons/svg";
|
|
2
|
+
import { button as d, span as t, div as n } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { radix as e } from "./shared/meta.js";
|
|
4
|
+
import { propsSelect as S, propsSelectTrigger as m, propsSelectValue as I, propsSelectViewport as g, propsSelectContent as y, propsSelectItem as h, propsSelectItemIndicator as T, propsSelectItemText as x } from "./__generated__/select.props.js";
|
|
5
|
+
const b = {
|
|
6
6
|
icon: o,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
relation: "descendant",
|
|
14
|
-
component: { $eq: "SelectContent" }
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}, x = {
|
|
18
|
-
type: "container",
|
|
19
|
-
icon: n,
|
|
20
|
-
presetStyle: {
|
|
21
|
-
button: i
|
|
7
|
+
contentModel: {
|
|
8
|
+
category: "instance",
|
|
9
|
+
children: ["instance"],
|
|
10
|
+
descendants: [e.SelectTrigger, e.SelectContent]
|
|
22
11
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
component: { $eq: "Select" }
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
relation: "descendant",
|
|
30
|
-
component: { $eq: "SelectValue" }
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}, C = {
|
|
34
|
-
type: "container",
|
|
35
|
-
label: "Value",
|
|
12
|
+
initialProps: ["name", "value", "open", "required"],
|
|
13
|
+
props: S
|
|
14
|
+
}, f = {
|
|
36
15
|
icon: c,
|
|
37
|
-
|
|
38
|
-
|
|
16
|
+
contentModel: {
|
|
17
|
+
category: "none",
|
|
18
|
+
children: ["instance"],
|
|
19
|
+
descendants: [e.SelectValue]
|
|
39
20
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
component: { $eq: "SelectTrigger" }
|
|
43
|
-
}
|
|
21
|
+
presetStyle: { button: d },
|
|
22
|
+
props: m
|
|
44
23
|
}, w = {
|
|
45
|
-
|
|
24
|
+
label: "Value",
|
|
46
25
|
icon: r,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
constraints: [
|
|
51
|
-
{
|
|
52
|
-
relation: "ancestor",
|
|
53
|
-
component: { $eq: "Select" }
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
relation: "descendant",
|
|
57
|
-
component: { $eq: "SelectViewport" }
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}, b = {
|
|
61
|
-
type: "container",
|
|
62
|
-
icon: p,
|
|
63
|
-
presetStyle: {
|
|
64
|
-
div: t
|
|
26
|
+
contentModel: {
|
|
27
|
+
category: "none",
|
|
28
|
+
children: []
|
|
65
29
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
component: { $eq: "SelectContent" }
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
relation: "descendant",
|
|
73
|
-
component: { $eq: "SelectItem" }
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
}, f = {
|
|
77
|
-
type: "container",
|
|
78
|
-
icon: a,
|
|
79
|
-
constraints: [
|
|
80
|
-
{
|
|
81
|
-
relation: "ancestor",
|
|
82
|
-
component: { $eq: "SelectViewport" }
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
relation: "descendant",
|
|
86
|
-
component: { $eq: "SelectItemIndicator" }
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
relation: "descendant",
|
|
90
|
-
component: { $eq: "SelectItemText" }
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
presetStyle: {
|
|
94
|
-
div: t
|
|
95
|
-
}
|
|
30
|
+
presetStyle: { span: t },
|
|
31
|
+
initialProps: ["placeholder"],
|
|
32
|
+
props: I
|
|
96
33
|
}, v = {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
component: { $eq: "SelectItem" }
|
|
34
|
+
icon: i,
|
|
35
|
+
contentModel: {
|
|
36
|
+
category: "none",
|
|
37
|
+
children: ["instance"],
|
|
38
|
+
descendants: [e.SelectViewport]
|
|
103
39
|
},
|
|
104
|
-
presetStyle: {
|
|
105
|
-
|
|
106
|
-
}
|
|
40
|
+
presetStyle: { div: n },
|
|
41
|
+
props: y
|
|
107
42
|
}, P = {
|
|
108
|
-
type: "container",
|
|
109
|
-
label: "Item Text",
|
|
110
43
|
icon: l,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
44
|
+
contentModel: {
|
|
45
|
+
category: "none",
|
|
46
|
+
children: ["instance"],
|
|
47
|
+
descendants: [e.SelectItem]
|
|
114
48
|
},
|
|
115
|
-
presetStyle: {
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
}, h = {
|
|
119
|
-
props: m,
|
|
120
|
-
initialProps: ["name", "value", "open", "required"]
|
|
49
|
+
presetStyle: { div: n },
|
|
50
|
+
props: g
|
|
121
51
|
}, k = {
|
|
122
|
-
|
|
52
|
+
icon: p,
|
|
53
|
+
contentModel: {
|
|
54
|
+
category: "none",
|
|
55
|
+
children: ["instance"],
|
|
56
|
+
descendants: [e.SelectItemIndicator, e.SelectItemText]
|
|
57
|
+
},
|
|
58
|
+
presetStyle: { div: n },
|
|
59
|
+
initialProps: ["value"],
|
|
60
|
+
props: h
|
|
123
61
|
}, F = {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
props: y,
|
|
132
|
-
initialProps: ["value"]
|
|
133
|
-
}, B = {
|
|
134
|
-
props: $
|
|
135
|
-
}, D = {
|
|
62
|
+
label: "Indicator",
|
|
63
|
+
icon: s,
|
|
64
|
+
contentModel: {
|
|
65
|
+
category: "none",
|
|
66
|
+
children: ["instance"]
|
|
67
|
+
},
|
|
68
|
+
presetStyle: { span: t },
|
|
136
69
|
props: T
|
|
70
|
+
}, q = {
|
|
71
|
+
label: "Item Text",
|
|
72
|
+
icon: a,
|
|
73
|
+
contentModel: {
|
|
74
|
+
category: "none",
|
|
75
|
+
children: ["instance", "rich-text"]
|
|
76
|
+
},
|
|
77
|
+
presetStyle: { span: t },
|
|
78
|
+
props: x
|
|
137
79
|
};
|
|
138
80
|
export {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
h as propsMetaSelect,
|
|
148
|
-
j as propsMetaSelectContent,
|
|
149
|
-
A as propsMetaSelectItem,
|
|
150
|
-
B as propsMetaSelectItemIndicator,
|
|
151
|
-
D as propsMetaSelectItemText,
|
|
152
|
-
k as propsMetaSelectTrigger,
|
|
153
|
-
F as propsMetaSelectValue,
|
|
154
|
-
z as propsMetaSelectViewport
|
|
81
|
+
b as metaSelect,
|
|
82
|
+
v as metaSelectContent,
|
|
83
|
+
k as metaSelectItem,
|
|
84
|
+
F as metaSelectItemIndicator,
|
|
85
|
+
q as metaSelectItemText,
|
|
86
|
+
f as metaSelectTrigger,
|
|
87
|
+
w as metaSelectValue,
|
|
88
|
+
P as metaSelectViewport
|
|
155
89
|
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
const o = (
|
|
2
|
-
property:
|
|
3
|
-
value: { type: "unit", unit: p, value:
|
|
4
|
-
}),
|
|
5
|
-
property:
|
|
6
|
-
value: { type: "keyword", value:
|
|
7
|
-
}), d = (
|
|
8
|
-
property:
|
|
9
|
-
value: { type: "rgb", alpha: 1, r, g: p, b: l }
|
|
10
|
-
}),
|
|
1
|
+
const o = (r, t, p) => ({
|
|
2
|
+
property: r,
|
|
3
|
+
value: { type: "unit", unit: p, value: t }
|
|
4
|
+
}), e = (r, t) => ({
|
|
5
|
+
property: r,
|
|
6
|
+
value: { type: "keyword", value: t }
|
|
7
|
+
}), d = (r, t, p, l) => ({
|
|
8
|
+
property: r,
|
|
9
|
+
value: { type: "rgb", alpha: 1, r: t, g: p, b: l }
|
|
10
|
+
}), b = [
|
|
11
11
|
{
|
|
12
|
-
property: "
|
|
12
|
+
property: "background-color",
|
|
13
13
|
value: { type: "keyword", value: "transparent" }
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
property: "
|
|
16
|
+
property: "background-image",
|
|
17
17
|
value: { type: "keyword", value: "none" }
|
|
18
18
|
},
|
|
19
|
-
o("
|
|
20
|
-
o("
|
|
21
|
-
o("
|
|
22
|
-
o("
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
d("
|
|
28
|
-
d("
|
|
29
|
-
d("
|
|
30
|
-
d("
|
|
31
|
-
o("
|
|
32
|
-
o("
|
|
33
|
-
o("
|
|
34
|
-
o("
|
|
19
|
+
o("border-top-width", 0, "px"),
|
|
20
|
+
o("border-right-width", 0, "px"),
|
|
21
|
+
o("border-bottom-width", 0, "px"),
|
|
22
|
+
o("border-left-width", 0, "px"),
|
|
23
|
+
e("border-top-style", "solid"),
|
|
24
|
+
e("border-right-style", "solid"),
|
|
25
|
+
e("border-bottom-style", "solid"),
|
|
26
|
+
e("border-left-style", "solid"),
|
|
27
|
+
d("border-top-color", 226, 232, 240),
|
|
28
|
+
d("border-right-color", 226, 232, 240),
|
|
29
|
+
d("border-bottom-color", 226, 232, 240),
|
|
30
|
+
d("border-left-color", 226, 232, 240),
|
|
31
|
+
o("padding-top", 0, "px"),
|
|
32
|
+
o("padding-right", 0, "px"),
|
|
33
|
+
o("padding-bottom", 0, "px"),
|
|
34
|
+
o("padding-left", 0, "px")
|
|
35
35
|
];
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
b as buttonReset
|
|
38
38
|
};
|