@webstudio-is/sdk-components-react-radix 0.196.0 → 0.197.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__/select.props.js +6 -0
- package/lib/__generated__/tabs.props.js +2 -2
- package/lib/accordion.template.js +95 -0
- package/lib/accordion.ws.js +53 -205
- package/lib/checkbox.template.js +63 -0
- package/lib/checkbox.ws.js +22 -119
- package/lib/collapsible.template.js +16 -0
- package/lib/collapsible.ws.js +21 -71
- package/lib/dialog.template.js +119 -0
- package/lib/dialog.ws.js +60 -237
- package/lib/label.template.js +23 -0
- package/lib/label.ws.js +12 -36
- package/lib/metas.js +48 -50
- package/lib/navigation-menu.template.js +283 -0
- package/lib/navigation-menu.ws.js +54 -420
- package/lib/popover.template.js +33 -0
- package/lib/popover.ws.js +19 -79
- package/lib/radio-group.template.js +66 -0
- package/lib/radio-group.ws.js +27 -125
- package/lib/select.template.js +121 -0
- package/lib/select.ws.js +61 -262
- package/lib/shared/preset-styles.js +38 -0
- package/lib/shared/proxy.js +5 -0
- package/lib/shared/styles.js +51 -0
- package/lib/shared/theme.js +162 -0
- package/lib/sheet.template.js +129 -0
- package/lib/switch.js +1 -1
- package/lib/switch.template.js +63 -0
- package/lib/switch.ws.js +22 -106
- package/lib/tabs.template.js +66 -0
- package/lib/tabs.ws.js +36 -131
- package/lib/templates.js +28 -1
- package/lib/tooltip.template.js +33 -0
- package/lib/tooltip.ws.js +24 -84
- package/lib/types/__generated__/accordion.props.d.ts +1 -1
- package/lib/types/__generated__/checkbox.props.d.ts +1 -1
- package/lib/types/__generated__/collapsible.props.d.ts +1 -1
- package/lib/types/__generated__/dialog.props.d.ts +1 -1
- package/lib/types/__generated__/label.props.d.ts +1 -1
- package/lib/types/__generated__/navigation-menu.props.d.ts +1 -1
- package/lib/types/__generated__/popover.props.d.ts +1 -1
- package/lib/types/__generated__/radio-group.props.d.ts +1 -1
- package/lib/types/__generated__/select.props.d.ts +1 -1
- package/lib/types/__generated__/switch.props.d.ts +1 -1
- package/lib/types/__generated__/tabs.props.d.ts +1 -1
- package/lib/types/__generated__/tooltip.props.d.ts +1 -1
- package/lib/types/accordion.template.d.ts +10 -0
- package/lib/types/accordion.ws.d.ts +1 -1
- package/lib/types/checkbox.d.ts +1 -1
- package/lib/types/checkbox.template.d.ts +2 -0
- package/lib/types/checkbox.ws.d.ts +1 -1
- package/lib/types/collapsible.template.d.ts +2 -0
- package/lib/types/collapsible.ws.d.ts +1 -1
- package/lib/types/dialog.template.d.ts +10 -0
- package/lib/types/dialog.ws.d.ts +1 -9
- package/lib/types/label.template.d.ts +10 -0
- package/lib/types/label.ws.d.ts +1 -1
- package/lib/types/metas.d.ts +0 -1
- package/lib/types/navigation-menu.template.d.ts +2 -0
- package/lib/types/navigation-menu.ws.d.ts +1 -1
- package/lib/types/popover.template.d.ts +10 -0
- package/lib/types/popover.ws.d.ts +1 -9
- package/lib/types/radio-group.template.d.ts +2 -0
- package/lib/types/radio-group.ws.d.ts +1 -1
- package/lib/types/select.template.d.ts +2 -0
- package/lib/types/select.ws.d.ts +1 -1
- package/lib/types/shared/preset-styles.d.ts +2 -0
- package/lib/types/shared/proxy.d.ts +17 -0
- package/lib/types/shared/styles.d.ts +2 -0
- package/lib/types/shared/theme.d.ts +212 -0
- package/lib/types/{sheet.ws.d.ts → sheet.template.d.ts} +2 -2
- package/lib/types/switch.template.d.ts +2 -0
- package/lib/types/switch.ws.d.ts +1 -1
- package/lib/types/tabs.template.d.ts +2 -0
- package/lib/types/tabs.ws.d.ts +1 -1
- package/lib/types/templates.d.ts +13 -0
- package/lib/types/tooltip.template.d.ts +10 -0
- package/lib/types/tooltip.ws.d.ts +1 -9
- package/package.json +25 -22
- package/lib/sheet.ws.js +0 -217
- package/lib/theme/__generated__/tailwind-theme.js +0 -503
- package/lib/theme/styles.js +0 -52
- package/lib/theme/tailwind-classes.js +0 -474
- package/lib/types/__generated__/sheet.props.d.ts +0 -8
- package/lib/types/theme/__generated__/tailwind-theme.d.ts +0 -26
- package/lib/types/theme/styles.d.ts +0 -278
- package/lib/types/theme/tailwind-classes.d.ts +0 -104
- package/lib/types/theme/tailwind-colors.d.ts +0 -31
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs as d, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { $ as t, PlaceholderValue as r, css as l } from "@webstudio-is/template";
|
|
3
|
+
import { radix as e } from "./shared/proxy.js";
|
|
4
|
+
import { getButtonStyle as s } from "./shared/styles.js";
|
|
5
|
+
import { zIndex as a, borderRadius as h, colors as i, spacing as n, fontSize as p, fontSizeLineHeight as c, boxShadow as m } from "./shared/theme.js";
|
|
6
|
+
const $ = {
|
|
7
|
+
category: "radix",
|
|
8
|
+
description: "Displays content that is related to the trigger, when the trigger is hovered with the mouse or focused with the keyboard. You are reading an example of a tooltip right now.",
|
|
9
|
+
order: 7,
|
|
10
|
+
template: /* @__PURE__ */ d(e.Tooltip, { children: [
|
|
11
|
+
/* @__PURE__ */ o(e.TooltipTrigger, { children: /* @__PURE__ */ o(t.Button, { "ws:style": s("outline"), children: new r("Button") }) }),
|
|
12
|
+
/* @__PURE__ */ o(
|
|
13
|
+
e.TooltipContent,
|
|
14
|
+
{
|
|
15
|
+
"ws:style": l`
|
|
16
|
+
z-index: ${a[50]};
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
border-radius: ${h.md};
|
|
19
|
+
background-color: ${i.popover};
|
|
20
|
+
padding: ${n[1.5]} ${n[3]};
|
|
21
|
+
font-size: ${p.sm};
|
|
22
|
+
line-height: ${c.sm};
|
|
23
|
+
color: ${i.popoverForeground};
|
|
24
|
+
box-shadow: ${m.md};
|
|
25
|
+
`,
|
|
26
|
+
children: /* @__PURE__ */ o(t.Text, { children: new r("The text you can edit") })
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
] })
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
$ as meta
|
|
33
|
+
};
|
package/lib/tooltip.ws.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { TriggerIcon as o, ContentIcon as
|
|
2
|
-
import "@webstudio-is/
|
|
3
|
-
import { div as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
div: r
|
|
9
|
-
}, q = {
|
|
10
|
-
category: "hidden",
|
|
1
|
+
import { TriggerIcon as o, ContentIcon as t, TooltipIcon as n } from "@webstudio-is/icons/svg";
|
|
2
|
+
import "@webstudio-is/sdk";
|
|
3
|
+
import { div as e } from "@webstudio-is/sdk/normalize.css";
|
|
4
|
+
import { propsTooltip as i, propsTooltipTrigger as p, propsTooltipContent as r } from "./__generated__/tooltip.props.js";
|
|
5
|
+
const s = {
|
|
6
|
+
div: e
|
|
7
|
+
}, m = {
|
|
11
8
|
type: "container",
|
|
12
9
|
icon: o,
|
|
13
10
|
stylable: !1,
|
|
@@ -15,18 +12,15 @@ const f = {
|
|
|
15
12
|
relation: "ancestor",
|
|
16
13
|
component: { $eq: "Tooltip" }
|
|
17
14
|
}
|
|
18
|
-
},
|
|
19
|
-
category: "hidden",
|
|
15
|
+
}, g = {
|
|
20
16
|
type: "container",
|
|
21
|
-
icon:
|
|
22
|
-
presetStyle:
|
|
17
|
+
icon: t,
|
|
18
|
+
presetStyle: s,
|
|
23
19
|
constraints: {
|
|
24
20
|
relation: "ancestor",
|
|
25
21
|
component: { $eq: "Tooltip" }
|
|
26
22
|
}
|
|
27
|
-
},
|
|
28
|
-
category: "radix",
|
|
29
|
-
order: 7,
|
|
23
|
+
}, d = {
|
|
30
24
|
type: "container",
|
|
31
25
|
constraints: [
|
|
32
26
|
{
|
|
@@ -39,75 +33,21 @@ const f = {
|
|
|
39
33
|
}
|
|
40
34
|
],
|
|
41
35
|
icon: n,
|
|
42
|
-
stylable: !1
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
{
|
|
46
|
-
type: "instance",
|
|
47
|
-
component: "Tooltip",
|
|
48
|
-
props: [],
|
|
49
|
-
children: [
|
|
50
|
-
{
|
|
51
|
-
type: "instance",
|
|
52
|
-
component: "TooltipTrigger",
|
|
53
|
-
children: [
|
|
54
|
-
{
|
|
55
|
-
type: "instance",
|
|
56
|
-
component: "Button",
|
|
57
|
-
styles: h("outline"),
|
|
58
|
-
children: [{ type: "text", value: "Button", placeholder: !0 }]
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
type: "instance",
|
|
64
|
-
component: "TooltipContent",
|
|
65
|
-
/**
|
|
66
|
-
* z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md
|
|
67
|
-
**/
|
|
68
|
-
styles: [
|
|
69
|
-
i(50),
|
|
70
|
-
p("hidden"),
|
|
71
|
-
a("md"),
|
|
72
|
-
s(),
|
|
73
|
-
l("popover"),
|
|
74
|
-
c(3),
|
|
75
|
-
d(1.5),
|
|
76
|
-
t("sm"),
|
|
77
|
-
t("popoverForeground"),
|
|
78
|
-
m("md")
|
|
79
|
-
].flat(),
|
|
80
|
-
children: [
|
|
81
|
-
{
|
|
82
|
-
type: "instance",
|
|
83
|
-
component: "Text",
|
|
84
|
-
children: [
|
|
85
|
-
{
|
|
86
|
-
type: "text",
|
|
87
|
-
value: "The text you can edit",
|
|
88
|
-
placeholder: !0
|
|
89
|
-
}
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
}, I = {
|
|
98
|
-
props: g,
|
|
36
|
+
stylable: !1
|
|
37
|
+
}, f = {
|
|
38
|
+
props: i,
|
|
99
39
|
initialProps: ["open", "delayDuration", "disableHoverableContent"]
|
|
100
|
-
},
|
|
101
|
-
props:
|
|
102
|
-
},
|
|
103
|
-
props:
|
|
40
|
+
}, y = {
|
|
41
|
+
props: p
|
|
42
|
+
}, C = {
|
|
43
|
+
props: r,
|
|
104
44
|
initialProps: ["side", "sideOffset", "align", "alignOffset"]
|
|
105
45
|
};
|
|
106
46
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
47
|
+
d as metaTooltip,
|
|
48
|
+
g as metaTooltipContent,
|
|
49
|
+
m as metaTooltipTrigger,
|
|
50
|
+
f as propsMetaTooltip,
|
|
51
|
+
C as propsMetaTooltipContent,
|
|
52
|
+
y as propsMetaTooltipTrigger
|
|
113
53
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const propsAccordion: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsAccordionItem: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsAccordionHeader: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const propsCollapsible: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsCollapsibleTrigger: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsCollapsibleContent: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const propsDialog: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsDialogTrigger: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsDialogOverlay: Record<string, PropMeta>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const props: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const propsNavigationMenu: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsNavigationMenuList: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsNavigationMenuViewport: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const propsPopover: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsPopoverTrigger: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsPopoverContent: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const propsRadioGroup: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsRadioGroupItem: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsRadioGroupIndicator: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const propsSelect: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsSelectTrigger: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsSelectValue: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const propsTabs: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsTabsList: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsTabsTrigger: Record<string, PropMeta>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropMeta } from "@webstudio-is/
|
|
1
|
+
import type { PropMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const propsTooltip: Record<string, PropMeta>;
|
|
3
3
|
export declare const propsTooltipTrigger: Record<string, PropMeta>;
|
|
4
4
|
export declare const propsTooltipContent: Record<string, PropMeta>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type TemplateMeta } from "@webstudio-is/template";
|
|
2
|
+
/**
|
|
3
|
+
* Styles source without animations:
|
|
4
|
+
* https://github.com/shadcn-ui/ui/blob/main/apps/www/registry/default/ui/accordion.tsx
|
|
5
|
+
*
|
|
6
|
+
* Attributions
|
|
7
|
+
* MIT License
|
|
8
|
+
* Copyright (c) 2023 shadcn
|
|
9
|
+
**/
|
|
10
|
+
export declare const meta: TemplateMeta;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/
|
|
1
|
+
import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const metaAccordion: WsComponentMeta;
|
|
3
3
|
export declare const metaAccordionItem: WsComponentMeta;
|
|
4
4
|
export declare const metaAccordionHeader: WsComponentMeta;
|
package/lib/types/checkbox.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Indicator } from "@radix-ui/react-checkbox";
|
|
|
3
3
|
export declare const Checkbox: ForwardRefExoticComponent<Omit<Omit<Omit<import("@radix-ui/react-checkbox").CheckboxProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
4
4
|
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
5
5
|
}, "defaultChecked" | "checked"> & {
|
|
6
|
-
checked
|
|
6
|
+
checked?: boolean;
|
|
7
7
|
defaultChecked?: boolean;
|
|
8
8
|
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
9
9
|
export declare const CheckboxIndicator: ForwardRefExoticComponent<ComponentProps<typeof Indicator> & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/
|
|
1
|
+
import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const metaCheckbox: WsComponentMeta;
|
|
3
3
|
export declare const metaCheckboxIndicator: WsComponentMeta;
|
|
4
4
|
export declare const propsMetaCheckbox: WsComponentPropsMeta;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/
|
|
1
|
+
import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const metaCollapsible: WsComponentMeta;
|
|
3
3
|
export declare const metaCollapsibleTrigger: WsComponentMeta;
|
|
4
4
|
export declare const metaCollapsibleContent: WsComponentMeta;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type TemplateMeta } from "@webstudio-is/template";
|
|
2
|
+
/**
|
|
3
|
+
* Styles source without animations:
|
|
4
|
+
* https://github.com/shadcn-ui/ui/blob/main/apps/www/registry/default/ui/dialog.tsx
|
|
5
|
+
*
|
|
6
|
+
* Attributions
|
|
7
|
+
* MIT License
|
|
8
|
+
* Copyright (c) 2023 shadcn
|
|
9
|
+
**/
|
|
10
|
+
export declare const meta: TemplateMeta;
|
package/lib/types/dialog.ws.d.ts
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/
|
|
1
|
+
import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const metaDialogTrigger: WsComponentMeta;
|
|
3
3
|
export declare const metaDialogOverlay: WsComponentMeta;
|
|
4
4
|
export declare const metaDialogContent: WsComponentMeta;
|
|
5
5
|
export declare const metaDialogTitle: WsComponentMeta;
|
|
6
6
|
export declare const metaDialogDescription: WsComponentMeta;
|
|
7
7
|
export declare const metaDialogClose: WsComponentMeta;
|
|
8
|
-
/**
|
|
9
|
-
* Styles source without animations:
|
|
10
|
-
* https://github.com/shadcn-ui/ui/blob/main/apps/www/registry/default/ui/dialog.tsx
|
|
11
|
-
*
|
|
12
|
-
* Attributions
|
|
13
|
-
* MIT License
|
|
14
|
-
* Copyright (c) 2023 shadcn
|
|
15
|
-
**/
|
|
16
8
|
export declare const metaDialog: WsComponentMeta;
|
|
17
9
|
export declare const propsMetaDialog: WsComponentPropsMeta;
|
|
18
10
|
export declare const propsMetaDialogTrigger: WsComponentPropsMeta;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type TemplateMeta } from "@webstudio-is/template";
|
|
2
|
+
/**
|
|
3
|
+
* Styles source without animations:
|
|
4
|
+
* https://github.com/shadcn-ui/ui/blob/main/apps/www/registry/default/ui/label.tsx
|
|
5
|
+
*
|
|
6
|
+
* Attributions
|
|
7
|
+
* MIT License
|
|
8
|
+
* Copyright (c) 2023 shadcn
|
|
9
|
+
**/
|
|
10
|
+
export declare const meta: TemplateMeta;
|
package/lib/types/label.ws.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/
|
|
1
|
+
import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const meta: WsComponentMeta;
|
|
3
3
|
export declare const propsMeta: WsComponentPropsMeta;
|
package/lib/types/metas.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { metaCollapsible as Collapsible, metaCollapsibleTrigger as CollapsibleTrigger, metaCollapsibleContent as CollapsibleContent, } from "./collapsible.ws";
|
|
2
2
|
export { metaDialog as Dialog, metaDialogTrigger as DialogTrigger, metaDialogOverlay as DialogOverlay, metaDialogContent as DialogContent, metaDialogClose as DialogClose, metaDialogTitle as DialogTitle, metaDialogDescription as DialogDescription, } from "./dialog.ws";
|
|
3
|
-
export { meta as Sheet } from "./sheet.ws";
|
|
4
3
|
export { metaPopover as Popover, metaPopoverTrigger as PopoverTrigger, metaPopoverContent as PopoverContent, } from "./popover.ws";
|
|
5
4
|
export { metaTooltip as Tooltip, metaTooltipTrigger as TooltipTrigger, metaTooltipContent as TooltipContent, } from "./tooltip.ws";
|
|
6
5
|
export { metaTabs as Tabs, metaTabsList as TabsList, metaTabsTrigger as TabsTrigger, metaTabsContent as TabsContent, } from "./tabs.ws";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/
|
|
1
|
+
import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const metaNavigationMenu: WsComponentMeta;
|
|
3
3
|
export declare const metaNavigationMenuList: WsComponentMeta;
|
|
4
4
|
export declare const metaNavigationMenuItem: WsComponentMeta;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type TemplateMeta } from "@webstudio-is/template";
|
|
2
|
+
/**
|
|
3
|
+
* Styles source without animations:
|
|
4
|
+
* https://github.com/shadcn-ui/ui/blob/main/apps/www/registry/default/ui/popover.tsx
|
|
5
|
+
*
|
|
6
|
+
* Attributions
|
|
7
|
+
* MIT License
|
|
8
|
+
* Copyright (c) 2023 shadcn
|
|
9
|
+
**/
|
|
10
|
+
export declare const meta: TemplateMeta;
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const metaPopoverTrigger: WsComponentMeta;
|
|
3
3
|
export declare const metaPopoverContent: WsComponentMeta;
|
|
4
|
-
/**
|
|
5
|
-
* Styles source without animations:
|
|
6
|
-
* https://github.com/shadcn-ui/ui/blob/main/apps/www/registry/default/ui/popover.tsx
|
|
7
|
-
*
|
|
8
|
-
* Attributions
|
|
9
|
-
* MIT License
|
|
10
|
-
* Copyright (c) 2023 shadcn
|
|
11
|
-
**/
|
|
12
4
|
export declare const metaPopover: WsComponentMeta;
|
|
13
5
|
export declare const propsMetaPopover: WsComponentPropsMeta;
|
|
14
6
|
export declare const propsMetaPopoverTrigger: WsComponentPropsMeta;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/
|
|
1
|
+
import { type WsComponentMeta, type WsComponentPropsMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const metaRadioGroup: WsComponentMeta;
|
|
3
3
|
export declare const metaRadioGroupItem: WsComponentMeta;
|
|
4
4
|
export declare const metaRadioGroupIndicator: WsComponentMeta;
|
package/lib/types/select.ws.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/
|
|
1
|
+
import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/sdk";
|
|
2
2
|
export declare const metaSelect: WsComponentMeta;
|
|
3
3
|
export declare const metaSelectTrigger: WsComponentMeta;
|
|
4
4
|
export declare const metaSelectValue: WsComponentMeta;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const radix: Record<string, {
|
|
2
|
+
displayName: string;
|
|
3
|
+
} & ((props: Record<string, unknown> & Record<`${string}:expression`, string> & {
|
|
4
|
+
"ws:id"?: string;
|
|
5
|
+
"ws:label"?: string;
|
|
6
|
+
"ws:style"?: import("@webstudio-is/template").TemplateStyleDecl[];
|
|
7
|
+
"ws:show"?: boolean | {
|
|
8
|
+
chunks: string[];
|
|
9
|
+
variables: import("@webstudio-is/template").Variable[];
|
|
10
|
+
serialize(variableIds: string[]): string;
|
|
11
|
+
};
|
|
12
|
+
children?: import("react").ReactNode | import("@webstudio-is/template").ExpressionValue | {
|
|
13
|
+
chunks: string[];
|
|
14
|
+
variables: import("@webstudio-is/template").Variable[];
|
|
15
|
+
serialize(variableIds: string[]): string;
|
|
16
|
+
} | import("@webstudio-is/template").PlaceholderValue;
|
|
17
|
+
}) => import("react").ReactNode)>;
|