@lglab/compose-ui 0.23.0 → 0.25.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.
@@ -0,0 +1,176 @@
1
+ "use client";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import { NavigationMenu as o } from "@base-ui/react/navigation-menu";
4
+ import { A as c } from "./arrow-svg-C6zQTvgS.js";
5
+ import { c as n } from "./utils-B6yFEsav.js";
6
+ const i = [
7
+ "inline-flex items-center justify-center rounded-md text-sm font-medium outline-none select-none",
8
+ "h-9 px-4 py-2",
9
+ "transition-colors",
10
+ "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
11
+ "focus:bg-accent focus:text-accent-foreground"
12
+ ], r = [
13
+ "group-data-content/content:block group-data-content/content:h-auto group-data-content/content:w-auto group-data-content/content:p-2",
14
+ "group-data-content/content:hover:bg-accent group-data-content/content:hover:text-accent-foreground"
15
+ ], l = ({ className: t, ...a }) => /* @__PURE__ */ e(o.Root, { className: n("min-w-max", t), ...a });
16
+ l.displayName = "NavigationMenuRoot";
17
+ const u = ({ className: t, ...a }) => /* @__PURE__ */ e(
18
+ o.List,
19
+ {
20
+ className: n("flex items-center gap-1 relative", t),
21
+ ...a
22
+ }
23
+ );
24
+ u.displayName = "NavigationMenuList";
25
+ const g = ({ className: t, ...a }) => /* @__PURE__ */ e(o.Item, { className: n(t), ...a });
26
+ g.displayName = "NavigationMenuItem";
27
+ const p = ({ className: t, ...a }) => /* @__PURE__ */ e(
28
+ o.Trigger,
29
+ {
30
+ className: n(
31
+ i,
32
+ r,
33
+ "group gap-1",
34
+ "group-data-content/content:inline-flex group-data-content/content:w-full group-data-content/content:justify-between",
35
+ t
36
+ ),
37
+ ...a
38
+ }
39
+ );
40
+ p.displayName = "NavigationMenuTrigger";
41
+ const m = ({ className: t, ...a }) => /* @__PURE__ */ e(
42
+ o.Icon,
43
+ {
44
+ className: n(
45
+ "transition-transform duration-200 ease-in-out",
46
+ "group-data-popup-open:rotate-180",
47
+ t
48
+ ),
49
+ ...a
50
+ }
51
+ );
52
+ m.displayName = "NavigationMenuIcon";
53
+ const f = ({ className: t, ...a }) => /* @__PURE__ */ e(
54
+ o.Content,
55
+ {
56
+ "data-content": !0,
57
+ className: n(
58
+ "group/content",
59
+ "w-[calc(100vw-40px)] h-full p-2 xs:w-max xs:min-w-[400px] xs:w-max",
60
+ "transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)]",
61
+ "data-starting-style:opacity-0 data-ending-style:opacity-0",
62
+ "data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%]",
63
+ "data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%]",
64
+ t
65
+ ),
66
+ ...a
67
+ }
68
+ );
69
+ f.displayName = "NavigationMenuContent";
70
+ const b = ({ className: t, ...a }) => /* @__PURE__ */ e(
71
+ o.Link,
72
+ {
73
+ className: n(
74
+ i,
75
+ r,
76
+ "data-active:bg-accent data-active:text-accent-foreground",
77
+ t
78
+ ),
79
+ ...a
80
+ }
81
+ );
82
+ b.displayName = "NavigationMenuLink";
83
+ const N = (t) => /* @__PURE__ */ e(o.Portal, { ...t });
84
+ N.displayName = "NavigationMenuPortal";
85
+ const v = ({
86
+ className: t,
87
+ sideOffset: a = 10,
88
+ collisionPadding: s = { top: 5, bottom: 5, left: 20, right: 20 },
89
+ ...d
90
+ }) => /* @__PURE__ */ e(
91
+ o.Positioner,
92
+ {
93
+ className: n(
94
+ "z-50 box-border",
95
+ "h-(--positioner-height) w-(--positioner-width) max-w-(--available-width)",
96
+ "transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)]",
97
+ "data-instant:transition-none",
98
+ // Gap element to maintain hover when moving to popup
99
+ "before:absolute before:content-['']",
100
+ "data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0 data-[side=bottom]:before:h-2.5",
101
+ "data-[side=top]:before:right-0 data-[side=top]:before:bottom-[-10px] data-[side=top]:before:left-0 data-[side=top]:before:h-2.5",
102
+ "data-[side=left]:before:top-0 data-[side=left]:before:right-[-10px] data-[side=left]:before:bottom-0 data-[side=left]:before:w-2.5",
103
+ "data-[side=right]:before:top-0 data-[side=right]:before:bottom-0 data-[side=right]:before:left-[-10px] data-[side=right]:before:w-2.5",
104
+ t
105
+ ),
106
+ sideOffset: a,
107
+ collisionPadding: s,
108
+ ...d
109
+ }
110
+ );
111
+ v.displayName = "NavigationMenuPositioner";
112
+ const h = ({ className: t, ...a }) => /* @__PURE__ */ e(
113
+ o.Popup,
114
+ {
115
+ className: n(
116
+ "relative rounded-lg border border-border bg-background shadow-lg",
117
+ "h-(--popup-height) w-(--popup-width)",
118
+ "origin-(--transform-origin)",
119
+ "transition-[opacity,transform,width,height,scale] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)]",
120
+ "data-starting-style:scale-90 data-starting-style:opacity-0",
121
+ "data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150",
122
+ t
123
+ ),
124
+ ...a
125
+ }
126
+ );
127
+ h.displayName = "NavigationMenuPopup";
128
+ const y = ({ className: t, ...a }) => /* @__PURE__ */ e(
129
+ o.Viewport,
130
+ {
131
+ className: n("relative h-full w-full overflow-hidden", t),
132
+ ...a
133
+ }
134
+ );
135
+ y.displayName = "NavigationMenuViewport";
136
+ const x = ({ className: t, ...a }) => /* @__PURE__ */ e(
137
+ o.Arrow,
138
+ {
139
+ className: n(
140
+ "flex transition-[left] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)]",
141
+ "data-[side=bottom]:top-[-9px] data-[side=left]:right-[-14px] data-[side=left]:rotate-90 data-[side=right]:left-[-14px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-9px] data-[side=top]:rotate-180",
142
+ t
143
+ ),
144
+ ...a,
145
+ children: /* @__PURE__ */ e(c, {})
146
+ }
147
+ );
148
+ x.displayName = "NavigationMenuArrow";
149
+ const w = ({ className: t, ...a }) => /* @__PURE__ */ e(
150
+ o.Backdrop,
151
+ {
152
+ className: n(
153
+ "fixed inset-0 z-40 bg-black/50 backdrop-blur-sm",
154
+ "transition-opacity duration-200",
155
+ "data-starting-style:opacity-0 data-ending-style:opacity-0",
156
+ t
157
+ ),
158
+ ...a
159
+ }
160
+ );
161
+ w.displayName = "NavigationMenuBackdrop";
162
+ export {
163
+ x as NavigationMenuArrow,
164
+ w as NavigationMenuBackdrop,
165
+ f as NavigationMenuContent,
166
+ m as NavigationMenuIcon,
167
+ g as NavigationMenuItem,
168
+ b as NavigationMenuLink,
169
+ u as NavigationMenuList,
170
+ h as NavigationMenuPopup,
171
+ N as NavigationMenuPortal,
172
+ v as NavigationMenuPositioner,
173
+ l as NavigationMenuRoot,
174
+ p as NavigationMenuTrigger,
175
+ y as NavigationMenuViewport
176
+ };
@@ -0,0 +1,11 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+ import * as React_2 from 'react';
3
+
4
+ export declare const Textarea: {
5
+ ({ className, ...props }: TextareaProps): JSX.Element;
6
+ displayName: string;
7
+ };
8
+
9
+ export declare type TextareaProps = React_2.ComponentProps<'textarea'>;
10
+
11
+ export { }
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { i as r } from "./form-variants-D4ge0qav.js";
4
+ import { c as s } from "./utils-B6yFEsav.js";
5
+ const m = ({ className: a, ...e }) => /* @__PURE__ */ t(
6
+ "textarea",
7
+ {
8
+ className: s(r, "h-auto min-h-20 py-2", a),
9
+ ...e
10
+ }
11
+ );
12
+ m.displayName = "Textarea";
13
+ export {
14
+ m as Textarea
15
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lglab/compose-ui",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "description": "A collection of components built with Base UI & Tailwind CSS",
5
5
  "author": "LGLab",
6
6
  "license": "MIT",
@@ -46,6 +46,14 @@
46
46
  "import": "./dist/card.js",
47
47
  "types": "./dist/card.d.ts"
48
48
  },
49
+ "./checkbox": {
50
+ "import": "./dist/checkbox.js",
51
+ "types": "./dist/checkbox.d.ts"
52
+ },
53
+ "./checkbox-group": {
54
+ "import": "./dist/checkbox-group.js",
55
+ "types": "./dist/checkbox-group.d.ts"
56
+ },
49
57
  "./collapsible": {
50
58
  "import": "./dist/collapsible.js",
51
59
  "types": "./dist/collapsible.d.ts"
@@ -62,6 +70,22 @@
62
70
  "import": "./dist/drawer.js",
63
71
  "types": "./dist/drawer.d.ts"
64
72
  },
73
+ "./field": {
74
+ "import": "./dist/field.js",
75
+ "types": "./dist/field.d.ts"
76
+ },
77
+ "./fieldset": {
78
+ "import": "./dist/fieldset.js",
79
+ "types": "./dist/fieldset.d.ts"
80
+ },
81
+ "./form": {
82
+ "import": "./dist/form.js",
83
+ "types": "./dist/form.d.ts"
84
+ },
85
+ "./input": {
86
+ "import": "./dist/input.js",
87
+ "types": "./dist/input.d.ts"
88
+ },
65
89
  "./menu": {
66
90
  "import": "./dist/menu.js",
67
91
  "types": "./dist/menu.d.ts"
@@ -74,6 +98,10 @@
74
98
  "import": "./dist/meter.js",
75
99
  "types": "./dist/meter.d.ts"
76
100
  },
101
+ "./navigation-menu": {
102
+ "import": "./dist/navigation-menu.js",
103
+ "types": "./dist/navigation-menu.d.ts"
104
+ },
77
105
  "./popover": {
78
106
  "import": "./dist/popover.js",
79
107
  "types": "./dist/popover.d.ts"
@@ -106,6 +134,10 @@
106
134
  "import": "./dist/tabs.js",
107
135
  "types": "./dist/tabs.d.ts"
108
136
  },
137
+ "./textarea": {
138
+ "import": "./dist/textarea.js",
139
+ "types": "./dist/textarea.d.ts"
140
+ },
109
141
  "./toast": {
110
142
  "import": "./dist/toast.js",
111
143
  "types": "./dist/toast.d.ts"