@webstudio-is/sdk-components-react-radix 0.191.4 → 0.192.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.
Files changed (94) hide show
  1. package/lib/__generated__/accordion.props.js +2631 -0
  2. package/lib/__generated__/checkbox.props.js +1084 -0
  3. package/lib/__generated__/collapsible.props.js +1024 -0
  4. package/lib/__generated__/dialog.props.js +2599 -0
  5. package/lib/__generated__/label.props.js +519 -0
  6. package/lib/__generated__/navigation-menu.props.js +3660 -0
  7. package/lib/__generated__/popover.props.js +564 -0
  8. package/lib/__generated__/radio-group.props.js +1619 -0
  9. package/lib/__generated__/select.props.js +3681 -0
  10. package/lib/__generated__/switch.props.js +1084 -0
  11. package/lib/__generated__/tabs.props.js +2121 -0
  12. package/lib/__generated__/tooltip.props.js +575 -0
  13. package/lib/accordion.js +36 -0
  14. package/lib/accordion.ws.js +250 -0
  15. package/lib/checkbox.js +8 -0
  16. package/lib/checkbox.ws.js +141 -0
  17. package/lib/collapsible.js +26 -0
  18. package/lib/collapsible.ws.js +92 -0
  19. package/lib/components.js +62 -0
  20. package/lib/dialog.js +84 -0
  21. package/lib/dialog.ws.js +260 -0
  22. package/lib/hooks.js +23 -0
  23. package/lib/label.js +7 -0
  24. package/lib/label.ws.js +43 -0
  25. package/lib/metas.js +64 -0
  26. package/lib/navigation-menu.js +59 -0
  27. package/lib/navigation-menu.ws.js +475 -0
  28. package/lib/popover.js +48 -0
  29. package/lib/popover.ws.js +96 -0
  30. package/lib/props.js +62 -0
  31. package/lib/radio-group.js +9 -0
  32. package/lib/radio-group.ws.js +158 -0
  33. package/lib/select.js +46 -0
  34. package/lib/select.ws.js +305 -0
  35. package/lib/sheet.js +43 -0
  36. package/lib/sheet.ws.js +217 -0
  37. package/lib/switch.js +8 -0
  38. package/lib/switch.ws.js +140 -0
  39. package/lib/tabs.js +31 -0
  40. package/lib/tabs.ws.js +183 -0
  41. package/lib/theme/__generated__/tailwind-theme.js +503 -0
  42. package/lib/theme/styles.js +52 -0
  43. package/lib/theme/tailwind-classes.js +474 -0
  44. package/lib/tooltip.js +45 -0
  45. package/lib/tooltip.ws.js +97 -0
  46. package/lib/types/__generated__/accordion.props.d.ts +6 -0
  47. package/lib/types/__generated__/checkbox.props.d.ts +3 -0
  48. package/lib/types/__generated__/collapsible.props.d.ts +4 -0
  49. package/lib/types/__generated__/dialog.props.d.ts +8 -0
  50. package/lib/types/__generated__/label.props.d.ts +2 -0
  51. package/lib/types/__generated__/navigation-menu.props.d.ts +8 -0
  52. package/lib/types/__generated__/popover.props.d.ts +4 -0
  53. package/lib/types/__generated__/radio-group.props.d.ts +4 -0
  54. package/lib/types/__generated__/select.props.d.ts +9 -0
  55. package/lib/types/__generated__/sheet.props.d.ts +8 -0
  56. package/lib/types/__generated__/switch.props.d.ts +3 -0
  57. package/lib/types/__generated__/tabs.props.d.ts +5 -0
  58. package/lib/types/__generated__/tooltip.props.d.ts +4 -0
  59. package/lib/types/accordion.d.ts +11 -0
  60. package/lib/types/accordion.ws.d.ts +11 -0
  61. package/lib/types/checkbox.d.ts +9 -0
  62. package/lib/types/checkbox.ws.d.ts +5 -0
  63. package/lib/types/collapsible.d.ts +15 -0
  64. package/lib/types/collapsible.ws.d.ts +7 -0
  65. package/lib/types/components.d.ts +12 -0
  66. package/lib/types/dialog.d.ts +23 -0
  67. package/lib/types/dialog.ws.d.ts +23 -0
  68. package/lib/types/hooks.d.ts +2 -0
  69. package/lib/types/label.d.ts +2 -0
  70. package/lib/types/label.ws.d.ts +3 -0
  71. package/lib/types/metas.d.ts +13 -0
  72. package/lib/types/navigation-menu.d.ts +10 -0
  73. package/lib/types/navigation-menu.ws.d.ts +15 -0
  74. package/lib/types/popover.d.ts +15 -0
  75. package/lib/types/popover.ws.d.ts +15 -0
  76. package/lib/types/props-descriptions.d.ts +29 -0
  77. package/lib/types/props.d.ts +12 -0
  78. package/lib/types/radio-group.d.ts +5 -0
  79. package/lib/types/radio-group.ws.d.ts +7 -0
  80. package/lib/types/select.d.ts +14 -0
  81. package/lib/types/select.ws.d.ts +17 -0
  82. package/lib/types/sheet.d.ts +16 -0
  83. package/lib/types/sheet.ws.d.ts +10 -0
  84. package/lib/types/switch.d.ts +4 -0
  85. package/lib/types/switch.ws.d.ts +5 -0
  86. package/lib/types/tabs.d.ts +12 -0
  87. package/lib/types/tabs.ws.d.ts +9 -0
  88. package/lib/types/theme/__generated__/tailwind-theme.d.ts +26 -0
  89. package/lib/types/theme/styles.d.ts +278 -0
  90. package/lib/types/theme/tailwind-classes.d.ts +104 -0
  91. package/lib/types/theme/tailwind-colors.d.ts +31 -0
  92. package/lib/types/tooltip.d.ts +15 -0
  93. package/lib/types/tooltip.ws.d.ts +15 -0
  94. package/package.json +7 -7
@@ -0,0 +1,475 @@
1
+ import { NavigationMenuIcon as x, ListIcon as w, ListItemIcon as I, TriggerIcon as k, ContentIcon as L, BoxIcon as C, ViewportIcon as A, ChevronDownIcon as T } from "@webstudio-is/icons/svg";
2
+ import { div as B } from "@webstudio-is/sdk/normalize.css";
3
+ import { relative as m, maxW as $, p as a, m as h, flex as n, list as V, items as q, justify as g, gap as s, bg as r, w as c, rounded as d, absolute as v, left as y, top as f, mt as D, overflow as F, border as S, text as t, shadow as W, property as i, noUnderline as M, state as E, ml as P, h as j, shrink as H, transition as U, duration as _, select as z, leading as l, outline as G, hover as J, focus as K, font as O, lineClamp as Q } from "./theme/tailwind-classes.js";
4
+ import { getButtonStyles as N } from "./theme/styles.js";
5
+ import { propsNavigationMenu as R, propsNavigationMenuItem as X, propsNavigationMenuTrigger as Y, propsNavigationMenuContent as Z, propsNavigationMenuLink as ee, propsNavigationMenuList as te, propsNavigationMenuViewport as ne } from "./__generated__/navigation-menu.props.js";
6
+ const o = {
7
+ div: B
8
+ }, oe = [
9
+ {
10
+ title: "Sheet",
11
+ href: "/docs/components/sheet",
12
+ description: "Extends the Dialog component to display content that complements the main content of the screen."
13
+ },
14
+ {
15
+ title: "Navigation Menu",
16
+ href: "/docs/components/navigation-menu",
17
+ description: "A collection of links for navigating websites."
18
+ },
19
+ {
20
+ title: "Tabs",
21
+ href: "/docs/components/tabs",
22
+ description: "A set of layered sections of content—known as tab panels—that are displayed one at a time."
23
+ },
24
+ {
25
+ title: "Accordion",
26
+ href: "/docs/components/accordion",
27
+ description: "A vertically stacked set of interactive headings that each reveal a section of content."
28
+ },
29
+ {
30
+ title: "Dialog",
31
+ href: "/docs/components/dialog",
32
+ description: "A window overlaid on either the primary window or another dialog window, rendering the content underneath inert."
33
+ },
34
+ {
35
+ title: "Collapsible",
36
+ href: "/docs/components/collapsible",
37
+ description: "An interactive component which expands/collapses a panel."
38
+ },
39
+ {
40
+ title: "Popover",
41
+ href: "/docs/components/popover",
42
+ description: "Displays rich content in a portal, triggered by a button."
43
+ },
44
+ {
45
+ title: "Tooltip",
46
+ href: "/docs/components/tooltip",
47
+ description: "A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it."
48
+ },
49
+ {
50
+ title: "Button",
51
+ href: "/docs/components/button",
52
+ description: "Displays a button or a component that looks like a button."
53
+ }
54
+ ], ie = (e) => [
55
+ {
56
+ type: "instance",
57
+ component: "NavigationMenuLink",
58
+ children: [
59
+ {
60
+ type: "instance",
61
+ component: "Link",
62
+ // block select-none space-y-1 rounded-md p-3 leading-none
63
+ // no-underline outline-none transition-colors
64
+ // hover:bg-accent hover:text-accent-foreground
65
+ // focus:bg-accent focus:text-accent-foreground
66
+ styles: [
67
+ t("inherit"),
68
+ n(),
69
+ n("col"),
70
+ z(),
71
+ s(1),
72
+ d("md"),
73
+ a(3),
74
+ l("none"),
75
+ M(),
76
+ G(),
77
+ J([r("accent"), t("accentForeground")].flat()),
78
+ K([r("accent"), t("accentForeground")].flat())
79
+ ].flat(),
80
+ props: [
81
+ {
82
+ name: "href",
83
+ type: "string",
84
+ value: `https://ui.shadcn.com${e.href}`
85
+ }
86
+ ],
87
+ children: [
88
+ {
89
+ type: "instance",
90
+ component: "Text",
91
+ // text-sm font-medium leading-none
92
+ styles: [
93
+ t("sm"),
94
+ O("medium"),
95
+ l("none")
96
+ ].flat(),
97
+ children: [
98
+ {
99
+ type: "text",
100
+ value: e.title,
101
+ placeholder: !0
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ type: "instance",
107
+ component: "Paragraph",
108
+ // line-clamp-2 text-sm leading-snug text-muted-foreground
109
+ styles: [
110
+ h(0),
111
+ Q(2),
112
+ t("sm"),
113
+ l("snug"),
114
+ t("mutedForeground")
115
+ ].flat(),
116
+ children: [
117
+ {
118
+ type: "text",
119
+ value: e.description,
120
+ placeholder: !0
121
+ }
122
+ ]
123
+ }
124
+ ]
125
+ }
126
+ ]
127
+ }
128
+ ], p = (e) => [
129
+ {
130
+ type: "instance",
131
+ component: "Box",
132
+ label: "Flex Column",
133
+ styles: [c(64), n(), s(4), n("col")].flat(),
134
+ children: Array.from(
135
+ Array(e.count),
136
+ (re, b) => ie(oe[b + e.offset])
137
+ ).flat()
138
+ }
139
+ ], ae = (e) => [
140
+ {
141
+ type: "instance",
142
+ component: "NavigationMenuItem",
143
+ children: [
144
+ {
145
+ type: "instance",
146
+ component: "NavigationMenuLink",
147
+ children: [
148
+ {
149
+ type: "instance",
150
+ component: "Link",
151
+ styles: [
152
+ N("ghost", "sm"),
153
+ M(),
154
+ t("current")
155
+ ].flat(),
156
+ children: [{ type: "text", value: e.title, placeholder: !0 }]
157
+ }
158
+ ]
159
+ }
160
+ ]
161
+ }
162
+ ], u = (e) => [
163
+ {
164
+ type: "instance",
165
+ component: "NavigationMenuItem",
166
+ children: [
167
+ {
168
+ type: "instance",
169
+ component: "NavigationMenuTrigger",
170
+ children: [
171
+ {
172
+ type: "instance",
173
+ component: "Button",
174
+ styles: [
175
+ N("ghost", "sm"),
176
+ i("--navigation-menu-trigger-icon-transform", "0deg"),
177
+ E(
178
+ [
179
+ i(
180
+ "--navigation-menu-trigger-icon-transform",
181
+ "180deg"
182
+ )
183
+ ],
184
+ "[data-state=open]"
185
+ )
186
+ ].flat(),
187
+ children: [
188
+ {
189
+ type: "instance",
190
+ component: "Text",
191
+ children: [
192
+ { type: "text", value: e.title, placeholder: !0 }
193
+ ]
194
+ },
195
+ {
196
+ type: "instance",
197
+ component: "Box",
198
+ label: "Icon Container",
199
+ // h-4 w-4 shrink-0 transition-transform duration-200
200
+ styles: [
201
+ P(1),
202
+ i(
203
+ "rotate",
204
+ "--navigation-menu-trigger-icon-transform"
205
+ ),
206
+ j(4),
207
+ c(4),
208
+ H(0),
209
+ U("all"),
210
+ _(200)
211
+ ].flat(),
212
+ children: [
213
+ {
214
+ type: "instance",
215
+ component: "HtmlEmbed",
216
+ label: "Chevron Icon",
217
+ props: [
218
+ {
219
+ type: "string",
220
+ name: "code",
221
+ value: T
222
+ }
223
+ ],
224
+ children: []
225
+ }
226
+ ]
227
+ }
228
+ ]
229
+ }
230
+ ]
231
+ },
232
+ {
233
+ type: "instance",
234
+ component: "NavigationMenuContent",
235
+ // left-0 top-0 absolute w-max
236
+ styles: [
237
+ y(0),
238
+ f(0),
239
+ v(),
240
+ c("max"),
241
+ a(4)
242
+ ].flat(),
243
+ children: [
244
+ {
245
+ type: "instance",
246
+ component: "Box",
247
+ label: "Content",
248
+ styles: [n(), s(4), a(e.padding)].flat(),
249
+ children: e.children
250
+ }
251
+ ]
252
+ }
253
+ ]
254
+ }
255
+ ], me = {
256
+ category: "radix",
257
+ order: 2,
258
+ type: "container",
259
+ description: "A collection of links for navigating websites.",
260
+ icon: x,
261
+ presetStyle: o,
262
+ template: [
263
+ {
264
+ type: "instance",
265
+ component: "NavigationMenu",
266
+ props: [],
267
+ // relative
268
+ // Omiting this: z-10 flex max-w-max flex-1 items-center justify-center
269
+ styles: [m(), $("max")].flat(),
270
+ children: [
271
+ {
272
+ type: "instance",
273
+ component: "NavigationMenuList",
274
+ styles: [
275
+ // ul defaults in tailwind
276
+ a(0),
277
+ h(0),
278
+ // shadcdn styles
279
+ n(),
280
+ n(1),
281
+ V("none"),
282
+ q("center"),
283
+ g("center"),
284
+ s(1)
285
+ ].flat(),
286
+ children: [
287
+ ...u({
288
+ title: "About",
289
+ padding: 2,
290
+ children: [
291
+ {
292
+ type: "instance",
293
+ component: "Box",
294
+ styles: [
295
+ r("border"),
296
+ a(4),
297
+ c(48),
298
+ d("md")
299
+ ].flat(),
300
+ children: [
301
+ {
302
+ type: "text",
303
+ value: "",
304
+ placeholder: !0
305
+ }
306
+ ]
307
+ },
308
+ ...p({ count: 3, offset: 0 })
309
+ ]
310
+ }),
311
+ ...u({
312
+ title: "Components",
313
+ padding: 0,
314
+ children: [
315
+ ...p({ count: 3, offset: 3 }),
316
+ ...p({ count: 3, offset: 6 })
317
+ ]
318
+ }),
319
+ ...ae({ title: "Standalone" })
320
+ ]
321
+ },
322
+ {
323
+ type: "instance",
324
+ component: "Box",
325
+ label: "Viewport Container",
326
+ // absolute left-0 top-full flex justify-center
327
+ styles: [
328
+ v(),
329
+ y(0),
330
+ f("full"),
331
+ n(),
332
+ g("center")
333
+ ].flat(),
334
+ children: [
335
+ {
336
+ type: "instance",
337
+ component: "NavigationMenuViewport",
338
+ /*
339
+ origin-top-center relative mt-1.5 w-full
340
+ overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg
341
+ h-[var(--radix-navigation-menu-viewport-height)]
342
+ w-[var(--radix-navigation-menu-viewport-width)]
343
+ // anims
344
+ [animation-duration:150ms!important] [transition-duration:150ms!important]
345
+ data-[state=open]:animate-in data-[state=closed]:animate-out
346
+ data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90
347
+ */
348
+ styles: [
349
+ m(),
350
+ D(1.5),
351
+ F("hidden"),
352
+ d("md"),
353
+ S(),
354
+ r("popover"),
355
+ t("popoverForeground"),
356
+ W("lg"),
357
+ i(
358
+ "height",
359
+ "--radix-navigation-menu-viewport-height"
360
+ ),
361
+ i("width", "--radix-navigation-menu-viewport-width")
362
+ ].flat(),
363
+ children: []
364
+ }
365
+ ]
366
+ }
367
+ ]
368
+ }
369
+ ]
370
+ }, ge = {
371
+ category: "hidden",
372
+ detachable: !1,
373
+ type: "container",
374
+ icon: w,
375
+ constraints: {
376
+ relation: "ancestor",
377
+ component: { $eq: "NavigationMenu" }
378
+ },
379
+ presetStyle: o,
380
+ label: "Menu List"
381
+ }, ue = {
382
+ category: "hidden",
383
+ type: "container",
384
+ icon: I,
385
+ constraints: {
386
+ relation: "ancestor",
387
+ component: { $eq: "NavigationMenu" }
388
+ },
389
+ presetStyle: o,
390
+ indexWithinAncestor: "NavigationMenu",
391
+ label: "Menu Item"
392
+ }, he = {
393
+ category: "hidden",
394
+ detachable: !1,
395
+ stylable: !1,
396
+ type: "container",
397
+ icon: k,
398
+ constraints: {
399
+ relation: "ancestor",
400
+ component: { $eq: "NavigationMenuItem" }
401
+ },
402
+ presetStyle: o,
403
+ label: "Menu Trigger"
404
+ }, ve = {
405
+ category: "hidden",
406
+ detachable: !1,
407
+ type: "container",
408
+ icon: L,
409
+ constraints: {
410
+ relation: "ancestor",
411
+ component: { $eq: "NavigationMenuItem" }
412
+ },
413
+ indexWithinAncestor: "NavigationMenu",
414
+ presetStyle: o,
415
+ label: "Menu Content"
416
+ }, ye = {
417
+ category: "hidden",
418
+ detachable: !0,
419
+ type: "container",
420
+ stylable: !1,
421
+ icon: C,
422
+ constraints: [
423
+ {
424
+ relation: "ancestor",
425
+ component: { $eq: "NavigationMenu" }
426
+ },
427
+ {
428
+ relation: "ancestor",
429
+ component: { $in: ["NavigationMenuContent", "NavigationMenuItem"] }
430
+ }
431
+ ],
432
+ presetStyle: o,
433
+ label: "Accessible Link Wrapper"
434
+ }, fe = {
435
+ category: "hidden",
436
+ detachable: !0,
437
+ type: "container",
438
+ icon: A,
439
+ constraints: {
440
+ relation: "ancestor",
441
+ component: { $eq: "NavigationMenu" }
442
+ },
443
+ presetStyle: o,
444
+ label: "Menu Viewport"
445
+ }, Me = {
446
+ props: R
447
+ }, Ne = {
448
+ props: X
449
+ }, be = {
450
+ props: Y
451
+ }, xe = {
452
+ props: Z
453
+ }, we = {
454
+ props: ee
455
+ }, Ie = {
456
+ props: te
457
+ }, ke = {
458
+ props: ne
459
+ };
460
+ export {
461
+ me as metaNavigationMenu,
462
+ ve as metaNavigationMenuContent,
463
+ ue as metaNavigationMenuItem,
464
+ ye as metaNavigationMenuLink,
465
+ ge as metaNavigationMenuList,
466
+ he as metaNavigationMenuTrigger,
467
+ fe as metaNavigationMenuViewport,
468
+ Me as propsMetaNavigationMenu,
469
+ xe as propsMetaNavigationMenuContent,
470
+ Ne as propsMetaNavigationMenuItem,
471
+ we as propsMetaNavigationMenuLink,
472
+ Ie as propsMetaNavigationMenuList,
473
+ be as propsMetaNavigationMenuTrigger,
474
+ ke as propsMetaNavigationMenuViewport
475
+ };
package/lib/popover.js ADDED
@@ -0,0 +1,48 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as c, Children as P } from "react";
3
+ import * as s from "@radix-ui/react-popover";
4
+ import { getClosestInstance as a } from "@webstudio-is/react-sdk/runtime";
5
+ const l = c((o, t) => /* @__PURE__ */ n(s.Root, { ...o })), v = c(({ children: o, ...t }, e) => {
6
+ const r = P.toArray(o)[0];
7
+ return /* @__PURE__ */ n(s.Trigger, { asChild: !0, ref: e, ...t, children: r ?? /* @__PURE__ */ n("button", { children: "Add button or link" }) });
8
+ }), h = c(
9
+ ({ sideOffset: o = 4, align: t = "center", hideWhenDetached: e = !0, ...r }, p) => /* @__PURE__ */ n(s.Portal, { children: /* @__PURE__ */ n(
10
+ s.Content,
11
+ {
12
+ ref: p,
13
+ align: "center",
14
+ sideOffset: o,
15
+ hideWhenDetached: e,
16
+ ...r
17
+ }
18
+ ) })
19
+ ), i = "@webstudio-is/sdk-components-react-radix", g = {
20
+ onNavigatorUnselect: (o, t) => {
21
+ for (const e of t.instancePath)
22
+ if (e.component === `${i}:PopoverContent`) {
23
+ const r = a(
24
+ t.instancePath,
25
+ e,
26
+ `${i}:Popover`
27
+ );
28
+ r && o.setMemoryProp(r, "open", void 0);
29
+ }
30
+ },
31
+ onNavigatorSelect: (o, t) => {
32
+ for (const e of t.instancePath)
33
+ if (e.component === `${i}:PopoverContent`) {
34
+ const r = a(
35
+ t.instancePath,
36
+ e,
37
+ `${i}:Popover`
38
+ );
39
+ r && o.setMemoryProp(r, "open", !0);
40
+ }
41
+ }
42
+ };
43
+ export {
44
+ l as Popover,
45
+ h as PopoverContent,
46
+ v as PopoverTrigger,
47
+ g as hooksPopover
48
+ };
@@ -0,0 +1,96 @@
1
+ import { TriggerIcon as e, ContentIcon as o, PopoverIcon as t } from "@webstudio-is/icons/svg";
2
+ import "@webstudio-is/react-sdk";
3
+ import { div as r } from "@webstudio-is/sdk/normalize.css";
4
+ import { z as n, w as p, rounded as i, border as a, bg as s, p as c, text as l, shadow as d, outline as m } from "./theme/tailwind-classes.js";
5
+ import { getButtonStyles as y } from "./theme/styles.js";
6
+ import { propsPopover as g, propsPopoverTrigger as v, propsPopoverContent as P } from "./__generated__/popover.props.js";
7
+ const f = {
8
+ div: r
9
+ }, B = {
10
+ category: "hidden",
11
+ type: "container",
12
+ icon: e,
13
+ stylable: !1,
14
+ detachable: !1
15
+ }, I = {
16
+ category: "hidden",
17
+ type: "container",
18
+ presetStyle: f,
19
+ icon: o,
20
+ detachable: !1
21
+ }, M = {
22
+ category: "radix",
23
+ order: 6,
24
+ type: "container",
25
+ icon: t,
26
+ stylable: !1,
27
+ description: "Displays rich content in a portal, triggered by a button.",
28
+ template: [
29
+ {
30
+ type: "instance",
31
+ component: "Popover",
32
+ props: [],
33
+ children: [
34
+ {
35
+ type: "instance",
36
+ component: "PopoverTrigger",
37
+ children: [
38
+ {
39
+ type: "instance",
40
+ component: "Button",
41
+ styles: y("outline"),
42
+ children: [{ type: "text", value: "Button", placeholder: !0 }]
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ type: "instance",
48
+ component: "PopoverContent",
49
+ /**
50
+ * z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none
51
+ **/
52
+ styles: [
53
+ n(50),
54
+ p(72),
55
+ i("md"),
56
+ a(),
57
+ s("popover"),
58
+ c(4),
59
+ l("popoverForeground"),
60
+ d("md"),
61
+ m()
62
+ ].flat(),
63
+ children: [
64
+ {
65
+ type: "instance",
66
+ component: "Text",
67
+ children: [
68
+ {
69
+ type: "text",
70
+ value: "The text you can edit",
71
+ placeholder: !0
72
+ }
73
+ ]
74
+ }
75
+ ]
76
+ }
77
+ ]
78
+ }
79
+ ]
80
+ }, w = {
81
+ props: g,
82
+ initialProps: ["open"]
83
+ }, O = {
84
+ props: v
85
+ }, S = {
86
+ props: P,
87
+ initialProps: ["side", "sideOffset", "align", "alignOffset"]
88
+ };
89
+ export {
90
+ M as metaPopover,
91
+ I as metaPopoverContent,
92
+ B as metaPopoverTrigger,
93
+ w as propsMetaPopover,
94
+ S as propsMetaPopoverContent,
95
+ O as propsMetaPopoverTrigger
96
+ };
package/lib/props.js ADDED
@@ -0,0 +1,62 @@
1
+ import { propsMetaCollapsible as a, propsMetaCollapsibleContent as t, propsMetaCollapsibleTrigger as r } from "./collapsible.ws.js";
2
+ import { propsMetaDialog as s, propsMetaDialogClose as i, propsMetaDialogContent as n, propsMetaDialogDescription as l, propsMetaDialogOverlay as M, propsMetaDialogTitle as g, propsMetaDialogTrigger as c } from "./dialog.ws.js";
3
+ import { propsMetaPopover as C, propsMetaPopoverContent as m, propsMetaPopoverTrigger as d } from "./popover.ws.js";
4
+ import { propsMetaTooltip as v, propsMetaTooltipContent as b, propsMetaTooltipTrigger as S } from "./tooltip.ws.js";
5
+ import { propsMetaTabs as I, propsMetaTabsContent as D, propsMetaTabsList as N, propsMetaTabsTrigger as f } from "./tabs.ws.js";
6
+ import { propsMeta as A } from "./label.ws.js";
7
+ import { propsMetaAccordion as L, propsMetaAccordionContent as k, propsMetaAccordionHeader as G, propsMetaAccordionItem as P, propsMetaAccordionTrigger as R } from "./accordion.ws.js";
8
+ import { propsMetaNavigationMenu as y, propsMetaNavigationMenuContent as H, propsMetaNavigationMenuItem as O, propsMetaNavigationMenuLink as j, propsMetaNavigationMenuList as q, propsMetaNavigationMenuTrigger as z, propsMetaNavigationMenuViewport as B } from "./navigation-menu.ws.js";
9
+ import { propsMetaSelect as F, propsMetaSelectContent as J, propsMetaSelectItem as K, propsMetaSelectItemIndicator as Q, propsMetaSelectItemText as U, propsMetaSelectTrigger as W, propsMetaSelectValue as X, propsMetaSelectViewport as Y } from "./select.ws.js";
10
+ import { propsMetaSwitch as _, propsMetaSwitchThumb as $ } from "./switch.ws.js";
11
+ import { propsMetaCheckbox as eo, propsMetaCheckboxIndicator as ao } from "./checkbox.ws.js";
12
+ import { propsMetaRadioGroup as ro, propsMetaRadioGroupIndicator as po, propsMetaRadioGroupItem as so } from "./radio-group.ws.js";
13
+ export {
14
+ L as Accordion,
15
+ k as AccordionContent,
16
+ G as AccordionHeader,
17
+ P as AccordionItem,
18
+ R as AccordionTrigger,
19
+ eo as Checkbox,
20
+ ao as CheckboxIndicator,
21
+ a as Collapsible,
22
+ t as CollapsibleContent,
23
+ r as CollapsibleTrigger,
24
+ s as Dialog,
25
+ i as DialogClose,
26
+ n as DialogContent,
27
+ l as DialogDescription,
28
+ M as DialogOverlay,
29
+ g as DialogTitle,
30
+ c as DialogTrigger,
31
+ A as Label,
32
+ y as NavigationMenu,
33
+ H as NavigationMenuContent,
34
+ O as NavigationMenuItem,
35
+ j as NavigationMenuLink,
36
+ q as NavigationMenuList,
37
+ z as NavigationMenuTrigger,
38
+ B as NavigationMenuViewport,
39
+ C as Popover,
40
+ m as PopoverContent,
41
+ d as PopoverTrigger,
42
+ ro as RadioGroup,
43
+ po as RadioGroupIndicator,
44
+ so as RadioGroupItem,
45
+ F as Select,
46
+ J as SelectContent,
47
+ K as SelectItem,
48
+ Q as SelectItemIndicator,
49
+ U as SelectItemText,
50
+ W as SelectTrigger,
51
+ X as SelectValue,
52
+ Y as SelectViewport,
53
+ _ as Switch,
54
+ $ as SwitchThumb,
55
+ I as Tabs,
56
+ D as TabsContent,
57
+ N as TabsList,
58
+ f as TabsTrigger,
59
+ v as Tooltip,
60
+ b as TooltipContent,
61
+ S as TooltipTrigger
62
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
+ import { Root as d, Item as p, Indicator as e } from "@radix-ui/react-radio-group";
4
+ const u = m(({ value: o, defaultValue: r, ...t }, a) => /* @__PURE__ */ i(d, { ...t, defaultValue: o ?? r, ref: a })), R = p, s = e;
5
+ export {
6
+ u as RadioGroup,
7
+ s as RadioGroupIndicator,
8
+ R as RadioGroupItem
9
+ };