@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,12 @@
1
+ import { CheckboxGroup } from '@base-ui/react/checkbox-group';
2
+ import { JSX } from 'react/jsx-runtime';
3
+ import * as React_2 from 'react';
4
+
5
+ export declare const CheckboxGroupRoot: {
6
+ ({ className, ...props }: CheckboxGroupRootProps): JSX.Element;
7
+ displayName: string;
8
+ };
9
+
10
+ export declare type CheckboxGroupRootProps = React_2.ComponentProps<typeof CheckboxGroup>;
11
+
12
+ export { }
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import { CheckboxGroup as t } from "@base-ui/react/checkbox-group";
4
+ import { c } from "./utils-B6yFEsav.js";
5
+ const m = ({ className: o, ...r }) => /* @__PURE__ */ e(
6
+ t,
7
+ {
8
+ className: c("flex flex-col items-start gap-2", o),
9
+ ...r
10
+ }
11
+ );
12
+ m.displayName = "CheckboxGroupRoot";
13
+ export {
14
+ m as CheckboxGroupRoot
15
+ };
@@ -0,0 +1,19 @@
1
+ import { Checkbox } from '@base-ui/react/checkbox';
2
+ import { JSX } from 'react/jsx-runtime';
3
+ import * as React_2 from 'react';
4
+
5
+ export declare const CheckboxIndicator: {
6
+ ({ className, children, ...props }: CheckboxIndicatorProps): JSX.Element;
7
+ displayName: string;
8
+ };
9
+
10
+ export declare type CheckboxIndicatorProps = React_2.ComponentProps<typeof Checkbox.Indicator>;
11
+
12
+ export declare const CheckboxRoot: {
13
+ ({ className, ...props }: CheckboxRootProps): JSX.Element;
14
+ displayName: string;
15
+ };
16
+
17
+ export declare type CheckboxRootProps = React_2.ComponentProps<typeof Checkbox.Root>;
18
+
19
+ export { }
@@ -0,0 +1,33 @@
1
+ "use client";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { Checkbox as a } from "@base-ui/react/checkbox";
4
+ import { c as o } from "./utils-B6yFEsav.js";
5
+ const d = ({ className: e, ...r }) => /* @__PURE__ */ t(
6
+ a.Root,
7
+ {
8
+ className: o(
9
+ "flex size-5 items-center justify-center rounded-sm border border-input bg-transparent",
10
+ "transition-colors duration-150",
11
+ "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",
12
+ "data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground",
13
+ "data-indeterminate:border-primary data-indeterminate:bg-primary data-indeterminate:text-primary-foreground",
14
+ "data-disabled:cursor-not-allowed data-disabled:opacity-50",
15
+ e
16
+ ),
17
+ ...r
18
+ }
19
+ );
20
+ d.displayName = "CheckboxRoot";
21
+ const n = ({ className: e, children: r, ...i }) => /* @__PURE__ */ t(
22
+ a.Indicator,
23
+ {
24
+ className: o("flex items-center justify-center data-unchecked:hidden", e),
25
+ ...i,
26
+ children: r
27
+ }
28
+ );
29
+ n.displayName = "CheckboxIndicator";
30
+ export {
31
+ n as CheckboxIndicator,
32
+ d as CheckboxRoot
33
+ };
@@ -0,0 +1,54 @@
1
+ import { Field } from '@base-ui/react/field';
2
+ import { JSX } from 'react/jsx-runtime';
3
+ import * as React_2 from 'react';
4
+
5
+ export declare const FieldControl: {
6
+ ({ className, ...props }: FieldControlProps): JSX.Element;
7
+ displayName: string;
8
+ };
9
+
10
+ export declare type FieldControlProps = React_2.ComponentProps<typeof Field.Control>;
11
+
12
+ export declare const FieldDescription: {
13
+ ({ className, ...props }: FieldDescriptionProps): JSX.Element;
14
+ displayName: string;
15
+ };
16
+
17
+ export declare type FieldDescriptionProps = React_2.ComponentProps<typeof Field.Description>;
18
+
19
+ export declare const FieldError: {
20
+ ({ className, ...props }: FieldErrorProps): JSX.Element;
21
+ displayName: string;
22
+ };
23
+
24
+ export declare type FieldErrorProps = React_2.ComponentProps<typeof Field.Error>;
25
+
26
+ export declare const FieldItem: {
27
+ ({ className, ...props }: FieldItemProps): JSX.Element;
28
+ displayName: string;
29
+ };
30
+
31
+ export declare type FieldItemProps = React_2.ComponentProps<typeof Field.Item>;
32
+
33
+ export declare const FieldLabel: {
34
+ ({ className, ...props }: FieldLabelProps): JSX.Element;
35
+ displayName: string;
36
+ };
37
+
38
+ export declare type FieldLabelProps = React_2.ComponentProps<typeof Field.Label>;
39
+
40
+ export declare const FieldRoot: {
41
+ ({ className, ...props }: FieldRootProps): JSX.Element;
42
+ displayName: string;
43
+ };
44
+
45
+ export declare type FieldRootProps = React_2.ComponentProps<typeof Field.Root>;
46
+
47
+ export declare const FieldValidity: {
48
+ (props: FieldValidityProps): JSX.Element;
49
+ displayName: string;
50
+ };
51
+
52
+ export declare type FieldValidityProps = React_2.ComponentProps<typeof Field.Validity>;
53
+
54
+ export { }
package/dist/field.js ADDED
@@ -0,0 +1,28 @@
1
+ "use client";
2
+ import { jsx as s } from "react/jsx-runtime";
3
+ import { Field as i } from "@base-ui/react/field";
4
+ import { f as a, l as r, i as o, d, e as m, a as n } from "./form-variants-D4ge0qav.js";
5
+ import { c as t } from "./utils-B6yFEsav.js";
6
+ const c = ({ className: e, ...l }) => /* @__PURE__ */ s(i.Root, { className: t(a, e), ...l });
7
+ c.displayName = "FieldRoot";
8
+ const p = ({ className: e, ...l }) => /* @__PURE__ */ s(i.Label, { className: t(r, e), ...l });
9
+ p.displayName = "FieldLabel";
10
+ const y = ({ className: e, ...l }) => /* @__PURE__ */ s(i.Control, { className: t(o, e), ...l });
11
+ y.displayName = "FieldControl";
12
+ const F = ({ className: e, ...l }) => /* @__PURE__ */ s(i.Description, { className: t(d, e), ...l });
13
+ F.displayName = "FieldDescription";
14
+ const N = ({ className: e, ...l }) => /* @__PURE__ */ s(i.Error, { className: t(m, e), ...l });
15
+ N.displayName = "FieldError";
16
+ const u = ({ className: e, ...l }) => /* @__PURE__ */ s(i.Item, { className: t(n, e), ...l });
17
+ u.displayName = "FieldItem";
18
+ const f = (e) => /* @__PURE__ */ s(i.Validity, { ...e });
19
+ f.displayName = "FieldValidity";
20
+ export {
21
+ y as FieldControl,
22
+ F as FieldDescription,
23
+ N as FieldError,
24
+ u as FieldItem,
25
+ p as FieldLabel,
26
+ c as FieldRoot,
27
+ f as FieldValidity
28
+ };
@@ -0,0 +1,19 @@
1
+ import { Fieldset } from '@base-ui/react/fieldset';
2
+ import { JSX } from 'react/jsx-runtime';
3
+ import * as React_2 from 'react';
4
+
5
+ export declare const FieldsetLegend: {
6
+ ({ className, ...props }: FieldsetLegendProps): JSX.Element;
7
+ displayName: string;
8
+ };
9
+
10
+ export declare type FieldsetLegendProps = React_2.ComponentProps<typeof Fieldset.Legend>;
11
+
12
+ export declare const FieldsetRoot: {
13
+ ({ className, ...props }: FieldsetRootProps): JSX.Element;
14
+ displayName: string;
15
+ };
16
+
17
+ export declare type FieldsetRootProps = React_2.ComponentProps<typeof Fieldset.Root>;
18
+
19
+ export { }
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import { jsx as s } from "react/jsx-runtime";
3
+ import { Fieldset as o } from "@base-ui/react/fieldset";
4
+ import { l as r } from "./form-variants-D4ge0qav.js";
5
+ import { c as l } from "./utils-B6yFEsav.js";
6
+ const a = ({ className: e, ...t }) => /* @__PURE__ */ s(
7
+ o.Root,
8
+ {
9
+ className: l("flex flex-col items-start gap-2", e),
10
+ ...t
11
+ }
12
+ );
13
+ a.displayName = "FieldsetRoot";
14
+ const i = ({ className: e, ...t }) => /* @__PURE__ */ s(o.Legend, { className: l(r, e), ...t });
15
+ i.displayName = "FieldsetLegend";
16
+ export {
17
+ i as FieldsetLegend,
18
+ a as FieldsetRoot
19
+ };
@@ -0,0 +1,9 @@
1
+ const e = "flex w-full rounded-md text-sm h-9 px-3 bg-transparent text-foreground border border-input transition-colors duration-200 placeholder:text-muted-foreground aria-invalid:border-destructive aria-invalid:ring-destructive/20", t = "flex items-center gap-2 text-sm font-medium text-foreground data-disabled:opacity-50", r = "text-sm text-muted-foreground", s = "text-sm text-destructive", o = "flex flex-col gap-1.5", a = "flex items-center gap-2";
2
+ export {
3
+ a,
4
+ r as d,
5
+ s as e,
6
+ o as f,
7
+ e as i,
8
+ t as l
9
+ };
package/dist/form.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { Form } from '@base-ui/react/form';
2
+ import { JSX } from 'react/jsx-runtime';
3
+ import * as React_2 from 'react';
4
+
5
+ export declare const FormRoot: {
6
+ ({ className, ...props }: FormRootProps): JSX.Element;
7
+ displayName: string;
8
+ };
9
+
10
+ export declare type FormRootProps = React_2.ComponentProps<typeof Form>;
11
+
12
+ export { }
package/dist/form.js ADDED
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ import { jsx as m } from "react/jsx-runtime";
3
+ import { Form as t } from "@base-ui/react/form";
4
+ import { c as e } from "./utils-B6yFEsav.js";
5
+ const s = ({ className: o, ...r }) => /* @__PURE__ */ m(t, { className: e("flex flex-col gap-4", o), ...r });
6
+ s.displayName = "FormRoot";
7
+ export {
8
+ s as FormRoot
9
+ };
package/dist/index.d.ts CHANGED
@@ -2,14 +2,21 @@ import { Accordion } from '@base-ui/react/accordion';
2
2
  import { AlertDialog } from '@base-ui/react/alert-dialog';
3
3
  import { Avatar } from '@base-ui/react/avatar';
4
4
  import { Button as Button_2 } from '@base-ui/react/button';
5
+ import { Checkbox } from '@base-ui/react/checkbox';
6
+ import { CheckboxGroup } from '@base-ui/react/checkbox-group';
5
7
  import { ClassProp } from 'class-variance-authority/types';
6
8
  import { Collapsible } from '@base-ui/react/collapsible';
7
9
  import { ContextMenu } from '@base-ui/react/context-menu';
8
10
  import { Dialog } from '@base-ui/react/dialog';
11
+ import { Field } from '@base-ui/react/field';
12
+ import { Fieldset } from '@base-ui/react/fieldset';
13
+ import { Form } from '@base-ui/react/form';
14
+ import { Input as Input_2 } from '@base-ui/react/input';
9
15
  import { JSX } from 'react/jsx-runtime';
10
16
  import { Menu } from '@base-ui/react/menu';
11
17
  import { Menubar } from '@base-ui/react/menubar';
12
18
  import { Meter } from '@base-ui/react/meter';
19
+ import { NavigationMenu } from '@base-ui/react/navigation-menu';
13
20
  import { Popover } from '@base-ui/react/popover';
14
21
  import { PreviewCard } from '@base-ui/react/preview-card';
15
22
  import { Progress } from '@base-ui/react/progress';
@@ -285,6 +292,27 @@ declare const cardVariants: (props?: ({
285
292
  variant?: "default" | "outline" | "elevated" | null | undefined;
286
293
  } & ClassProp) | undefined) => string;
287
294
 
295
+ export declare const CheckboxGroupRoot: {
296
+ ({ className, ...props }: CheckboxGroupRootProps): JSX.Element;
297
+ displayName: string;
298
+ };
299
+
300
+ export declare type CheckboxGroupRootProps = React_2.ComponentProps<typeof CheckboxGroup>;
301
+
302
+ export declare const CheckboxIndicator: {
303
+ ({ className, children, ...props }: CheckboxIndicatorProps): JSX.Element;
304
+ displayName: string;
305
+ };
306
+
307
+ export declare type CheckboxIndicatorProps = React_2.ComponentProps<typeof Checkbox.Indicator>;
308
+
309
+ export declare const CheckboxRoot: {
310
+ ({ className, ...props }: CheckboxRootProps): JSX.Element;
311
+ displayName: string;
312
+ };
313
+
314
+ export declare type CheckboxRootProps = React_2.ComponentProps<typeof Checkbox.Root>;
315
+
288
316
  export declare const CollapsiblePanel: {
289
317
  ({ className, ...props }: CollapsiblePanelProps): JSX.Element;
290
318
  displayName: string;
@@ -616,8 +644,85 @@ export declare type DrawerTriggerProps = React_2.ComponentProps<typeof Dialog.Tr
616
644
  size?: ButtonSize;
617
645
  };
618
646
 
647
+ export declare const FieldControl: {
648
+ ({ className, ...props }: FieldControlProps): JSX.Element;
649
+ displayName: string;
650
+ };
651
+
652
+ export declare type FieldControlProps = React_2.ComponentProps<typeof Field.Control>;
653
+
654
+ export declare const FieldDescription: {
655
+ ({ className, ...props }: FieldDescriptionProps): JSX.Element;
656
+ displayName: string;
657
+ };
658
+
659
+ export declare type FieldDescriptionProps = React_2.ComponentProps<typeof Field.Description>;
660
+
661
+ export declare const FieldError: {
662
+ ({ className, ...props }: FieldErrorProps): JSX.Element;
663
+ displayName: string;
664
+ };
665
+
666
+ export declare type FieldErrorProps = React_2.ComponentProps<typeof Field.Error>;
667
+
668
+ export declare const FieldItem: {
669
+ ({ className, ...props }: FieldItemProps): JSX.Element;
670
+ displayName: string;
671
+ };
672
+
673
+ export declare type FieldItemProps = React_2.ComponentProps<typeof Field.Item>;
674
+
675
+ export declare const FieldLabel: {
676
+ ({ className, ...props }: FieldLabelProps): JSX.Element;
677
+ displayName: string;
678
+ };
679
+
680
+ export declare type FieldLabelProps = React_2.ComponentProps<typeof Field.Label>;
681
+
682
+ export declare const FieldRoot: {
683
+ ({ className, ...props }: FieldRootProps): JSX.Element;
684
+ displayName: string;
685
+ };
686
+
687
+ export declare type FieldRootProps = React_2.ComponentProps<typeof Field.Root>;
688
+
689
+ export declare const FieldsetLegend: {
690
+ ({ className, ...props }: FieldsetLegendProps): JSX.Element;
691
+ displayName: string;
692
+ };
693
+
694
+ export declare type FieldsetLegendProps = React_2.ComponentProps<typeof Fieldset.Legend>;
695
+
696
+ export declare const FieldsetRoot: {
697
+ ({ className, ...props }: FieldsetRootProps): JSX.Element;
698
+ displayName: string;
699
+ };
700
+
701
+ export declare type FieldsetRootProps = React_2.ComponentProps<typeof Fieldset.Root>;
702
+
703
+ export declare const FieldValidity: {
704
+ (props: FieldValidityProps): JSX.Element;
705
+ displayName: string;
706
+ };
707
+
708
+ export declare type FieldValidityProps = React_2.ComponentProps<typeof Field.Validity>;
709
+
710
+ export declare const FormRoot: {
711
+ ({ className, ...props }: FormRootProps): JSX.Element;
712
+ displayName: string;
713
+ };
714
+
715
+ export declare type FormRootProps = React_2.ComponentProps<typeof Form>;
716
+
619
717
  declare type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
620
718
 
719
+ export declare const Input: {
720
+ ({ className, ...props }: InputProps): JSX.Element;
721
+ displayName: string;
722
+ };
723
+
724
+ export declare type InputProps = React_2.ComponentProps<typeof Input_2>;
725
+
621
726
  export declare const MenuArrow: {
622
727
  ({ className, ...props }: MenuArrowProps): JSX.Element;
623
728
  displayName: string;
@@ -934,6 +1039,97 @@ export declare const MeterValue: {
934
1039
 
935
1040
  export declare type MeterValueProps = React_2.ComponentProps<typeof Meter.Value>;
936
1041
 
1042
+ export declare const NavigationMenuArrow: {
1043
+ ({ className, ...props }: NavigationMenuArrowProps): JSX.Element;
1044
+ displayName: string;
1045
+ };
1046
+
1047
+ export declare type NavigationMenuArrowProps = React_2.ComponentProps<typeof NavigationMenu.Arrow>;
1048
+
1049
+ export declare const NavigationMenuBackdrop: {
1050
+ ({ className, ...props }: NavigationMenuBackdropProps): JSX.Element;
1051
+ displayName: string;
1052
+ };
1053
+
1054
+ export declare type NavigationMenuBackdropProps = React_2.ComponentProps<typeof NavigationMenu.Backdrop>;
1055
+
1056
+ export declare const NavigationMenuContent: {
1057
+ ({ className, ...props }: NavigationMenuContentProps): JSX.Element;
1058
+ displayName: string;
1059
+ };
1060
+
1061
+ export declare type NavigationMenuContentProps = React_2.ComponentProps<typeof NavigationMenu.Content>;
1062
+
1063
+ export declare const NavigationMenuIcon: {
1064
+ ({ className, ...props }: NavigationMenuIconProps): JSX.Element;
1065
+ displayName: string;
1066
+ };
1067
+
1068
+ export declare type NavigationMenuIconProps = React_2.ComponentProps<typeof NavigationMenu.Icon>;
1069
+
1070
+ export declare const NavigationMenuItem: {
1071
+ ({ className, ...props }: NavigationMenuItemProps): JSX.Element;
1072
+ displayName: string;
1073
+ };
1074
+
1075
+ export declare type NavigationMenuItemProps = React_2.ComponentProps<typeof NavigationMenu.Item>;
1076
+
1077
+ export declare const NavigationMenuLink: {
1078
+ ({ className, ...props }: NavigationMenuLinkProps): JSX.Element;
1079
+ displayName: string;
1080
+ };
1081
+
1082
+ export declare type NavigationMenuLinkProps = React_2.ComponentProps<typeof NavigationMenu.Link>;
1083
+
1084
+ export declare const NavigationMenuList: {
1085
+ ({ className, ...props }: NavigationMenuListProps): JSX.Element;
1086
+ displayName: string;
1087
+ };
1088
+
1089
+ export declare type NavigationMenuListProps = React_2.ComponentProps<typeof NavigationMenu.List>;
1090
+
1091
+ export declare const NavigationMenuPopup: {
1092
+ ({ className, ...props }: NavigationMenuPopupProps): JSX.Element;
1093
+ displayName: string;
1094
+ };
1095
+
1096
+ export declare type NavigationMenuPopupProps = React_2.ComponentProps<typeof NavigationMenu.Popup>;
1097
+
1098
+ export declare const NavigationMenuPortal: {
1099
+ (props: NavigationMenuPortalProps): JSX.Element;
1100
+ displayName: string;
1101
+ };
1102
+
1103
+ export declare type NavigationMenuPortalProps = React_2.ComponentProps<typeof NavigationMenu.Portal>;
1104
+
1105
+ export declare const NavigationMenuPositioner: {
1106
+ ({ className, sideOffset, collisionPadding, ...props }: NavigationMenuPositionerProps): JSX.Element;
1107
+ displayName: string;
1108
+ };
1109
+
1110
+ export declare type NavigationMenuPositionerProps = React_2.ComponentProps<typeof NavigationMenu.Positioner>;
1111
+
1112
+ export declare const NavigationMenuRoot: {
1113
+ ({ className, ...props }: NavigationMenuRootProps): JSX.Element;
1114
+ displayName: string;
1115
+ };
1116
+
1117
+ export declare type NavigationMenuRootProps = React_2.ComponentProps<typeof NavigationMenu.Root>;
1118
+
1119
+ export declare const NavigationMenuTrigger: {
1120
+ ({ className, ...props }: NavigationMenuTriggerProps): JSX.Element;
1121
+ displayName: string;
1122
+ };
1123
+
1124
+ export declare type NavigationMenuTriggerProps = React_2.ComponentProps<typeof NavigationMenu.Trigger>;
1125
+
1126
+ export declare const NavigationMenuViewport: {
1127
+ ({ className, ...props }: NavigationMenuViewportProps): JSX.Element;
1128
+ displayName: string;
1129
+ };
1130
+
1131
+ export declare type NavigationMenuViewportProps = React_2.ComponentProps<typeof NavigationMenu.Viewport>;
1132
+
937
1133
  export declare const PopoverArrow: {
938
1134
  ({ className, ...props }: PopoverArrowProps): JSX.Element;
939
1135
  displayName: string;
@@ -1244,6 +1440,13 @@ export declare type TabsTabProps = React_2.ComponentProps<typeof Tabs.Tab> & {
1244
1440
  size?: 'sm' | 'default' | 'lg';
1245
1441
  };
1246
1442
 
1443
+ export declare const Textarea: {
1444
+ ({ className, ...props }: TextareaProps): JSX.Element;
1445
+ displayName: string;
1446
+ };
1447
+
1448
+ export declare type TextareaProps = React_2.ComponentProps<'textarea'>;
1449
+
1247
1450
  export { Toast }
1248
1451
 
1249
1452
  export declare const ToastAction: {