@cognite/aura 0.1.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 (128) hide show
  1. package/dist/components/index.d.ts +53 -0
  2. package/dist/components/ui/core/alert/alert.d.ts +19 -0
  3. package/dist/components/ui/core/alert/alert.js +180 -0
  4. package/dist/components/ui/core/alert/alert.metadata.d.ts +2 -0
  5. package/dist/components/ui/core/alert/alert.metadata.js +9 -0
  6. package/dist/components/ui/core/avatar/avatar.d.ts +10 -0
  7. package/dist/components/ui/core/avatar/avatar.js +94 -0
  8. package/dist/components/ui/core/avatar/avatar.metadata.d.ts +8 -0
  9. package/dist/components/ui/core/avatar/avatar.metadata.js +9 -0
  10. package/dist/components/ui/core/badge/badge.d.ts +14 -0
  11. package/dist/components/ui/core/badge/badge.js +116 -0
  12. package/dist/components/ui/core/badge/badge.metadata.d.ts +2 -0
  13. package/dist/components/ui/core/badge/badge.metadata.js +8 -0
  14. package/dist/components/ui/core/button/button.d.ts +9 -0
  15. package/dist/components/ui/core/button/button.js +50 -0
  16. package/dist/components/ui/core/button/button.metadata.d.ts +2 -0
  17. package/dist/components/ui/core/button/button.metadata.js +9 -0
  18. package/dist/components/ui/core/button-group/button-group.d.ts +11 -0
  19. package/dist/components/ui/core/button-group/button-group.js +83 -0
  20. package/dist/components/ui/core/button-group/button-group.metadata.d.ts +2 -0
  21. package/dist/components/ui/core/button-group/button-group.metadata.js +8 -0
  22. package/dist/components/ui/core/code-block/code-block.d.ts +21 -0
  23. package/dist/components/ui/core/code-block/code-block.js +146 -0
  24. package/dist/components/ui/core/code-block/code-block.metadata.d.ts +2 -0
  25. package/dist/components/ui/core/code-block/code-block.metadata.js +8 -0
  26. package/dist/components/ui/core/collapsible/collapsible.d.ts +4 -0
  27. package/dist/components/ui/core/collapsible/collapsible.js +44 -0
  28. package/dist/components/ui/core/collapsible/collapsible.metadata.d.ts +2 -0
  29. package/dist/components/ui/core/collapsible/collapsible.metadata.js +9 -0
  30. package/dist/components/ui/core/command/command.d.ts +86 -0
  31. package/dist/components/ui/core/command/command.js +150 -0
  32. package/dist/components/ui/core/command/command.metadata.d.ts +2 -0
  33. package/dist/components/ui/core/command/command.metadata.js +9 -0
  34. package/dist/components/ui/core/dialog/dialog.d.ts +18 -0
  35. package/dist/components/ui/core/dialog/dialog.js +155 -0
  36. package/dist/components/ui/core/dialog/dialog.metadata.d.ts +2 -0
  37. package/dist/components/ui/core/dialog/dialog.metadata.js +9 -0
  38. package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +53 -0
  39. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +250 -0
  40. package/dist/components/ui/core/dropdown-menu/dropdown-menu.metadata.d.ts +2 -0
  41. package/dist/components/ui/core/dropdown-menu/dropdown-menu.metadata.js +9 -0
  42. package/dist/components/ui/core/helper-text/helper-text.d.ts +12 -0
  43. package/dist/components/ui/core/helper-text/helper-text.js +65 -0
  44. package/dist/components/ui/core/helper-text/helper-text.metadata.d.ts +2 -0
  45. package/dist/components/ui/core/helper-text/helper-text.metadata.js +9 -0
  46. package/dist/components/ui/core/hover-card/hover-card.d.ts +12 -0
  47. package/dist/components/ui/core/hover-card/hover-card.js +76 -0
  48. package/dist/components/ui/core/hover-card/hover-card.metadata.d.ts +2 -0
  49. package/dist/components/ui/core/hover-card/hover-card.metadata.js +8 -0
  50. package/dist/components/ui/core/inline-citation/inline-citation.d.ts +33 -0
  51. package/dist/components/ui/core/inline-citation/inline-citation.js +170 -0
  52. package/dist/components/ui/core/inline-citation/inline-citation.metadata.d.ts +2 -0
  53. package/dist/components/ui/core/inline-citation/inline-citation.metadata.js +8 -0
  54. package/dist/components/ui/core/input/input.d.ts +6 -0
  55. package/dist/components/ui/core/input/input.js +34 -0
  56. package/dist/components/ui/core/input/input.metadata.d.ts +2 -0
  57. package/dist/components/ui/core/input/input.metadata.js +9 -0
  58. package/dist/components/ui/core/input-group/input-group.d.ts +15 -0
  59. package/dist/components/ui/core/input-group/input-group.js +144 -0
  60. package/dist/components/ui/core/input-group/input-group.metadata.d.ts +2 -0
  61. package/dist/components/ui/core/input-group/input-group.metadata.js +9 -0
  62. package/dist/components/ui/core/label/label.d.ts +2 -0
  63. package/dist/components/ui/core/label/label.js +20 -0
  64. package/dist/components/ui/core/label/label.metadata.d.ts +2 -0
  65. package/dist/components/ui/core/label/label.metadata.js +9 -0
  66. package/dist/components/ui/core/loader/loader.d.ts +7 -0
  67. package/dist/components/ui/core/loader/loader.js +119 -0
  68. package/dist/components/ui/core/loader/loader.metadata.d.ts +2 -0
  69. package/dist/components/ui/core/loader/loader.metadata.js +9 -0
  70. package/dist/components/ui/core/message/message.d.ts +55 -0
  71. package/dist/components/ui/core/message/message.js +169 -0
  72. package/dist/components/ui/core/message/message.metadata.d.ts +2 -0
  73. package/dist/components/ui/core/popover/popover.d.ts +8 -0
  74. package/dist/components/ui/core/popover/popover.metadata.d.ts +2 -0
  75. package/dist/components/ui/core/prompt-input/prompt-input.d.ts +161 -0
  76. package/dist/components/ui/core/prompt-input/prompt-input.js +402 -0
  77. package/dist/components/ui/core/prompt-input/prompt-input.metadata.d.ts +2 -0
  78. package/dist/components/ui/core/prompt-input/prompt-input.metadata.js +9 -0
  79. package/dist/components/ui/core/reasoning/reasoning.d.ts +9 -0
  80. package/dist/components/ui/core/reasoning/reasoning.js +85 -0
  81. package/dist/components/ui/core/reasoning/reasoning.metadata.d.ts +2 -0
  82. package/dist/components/ui/core/reasoning/reasoning.metadata.js +8 -0
  83. package/dist/components/ui/core/select/select.d.ts +44 -0
  84. package/dist/components/ui/core/select/select.js +279 -0
  85. package/dist/components/ui/core/select/select.metadata.d.ts +2 -0
  86. package/dist/components/ui/core/select/select.metadata.js +9 -0
  87. package/dist/components/ui/core/separator/separator.d.ts +6 -0
  88. package/dist/components/ui/core/separator/separator.js +25 -0
  89. package/dist/components/ui/core/separator/separator.metadata.d.ts +2 -0
  90. package/dist/components/ui/core/separator/separator.metadata.js +8 -0
  91. package/dist/components/ui/core/shimmer/shimmer.d.ts +14 -0
  92. package/dist/components/ui/core/shimmer/shimmer.js +69 -0
  93. package/dist/components/ui/core/shimmer/shimmer.metadata.d.ts +2 -0
  94. package/dist/components/ui/core/shimmer/shimmer.metadata.js +9 -0
  95. package/dist/components/ui/core/skeleton/skeleton.d.ts +2 -0
  96. package/dist/components/ui/core/skeleton/skeleton.js +18 -0
  97. package/dist/components/ui/core/skeleton/skeleton.metadata.d.ts +2 -0
  98. package/dist/components/ui/core/skeleton/skeleton.metadata.js +9 -0
  99. package/dist/components/ui/core/sources/sources.d.ts +16 -0
  100. package/dist/components/ui/core/sources/sources.metadata.d.ts +2 -0
  101. package/dist/components/ui/core/textarea/textarea.d.ts +9 -0
  102. package/dist/components/ui/core/textarea/textarea.js +49 -0
  103. package/dist/components/ui/core/textarea/textarea.metadata.d.ts +2 -0
  104. package/dist/components/ui/core/textarea/textarea.metadata.js +9 -0
  105. package/dist/components/ui/core/tool/tool.d.ts +21 -0
  106. package/dist/components/ui/core/tool/tool.js +151 -0
  107. package/dist/components/ui/core/tool/tool.metadata.d.ts +2 -0
  108. package/dist/components/ui/core/tool/tool.metadata.js +8 -0
  109. package/dist/components/ui/core/tooltip/tooltip.d.ts +10 -0
  110. package/dist/components/ui/core/tooltip/tooltip.js +82 -0
  111. package/dist/components/ui/core/tooltip/tooltip.metadata.d.ts +8 -0
  112. package/dist/components/ui/core/tooltip/tooltip.metadata.js +9 -0
  113. package/dist/components/ui/lab/breadcrumb/breadcrumb.d.ts +134 -0
  114. package/dist/components/ui/lab/breadcrumb/breadcrumb.metadata.d.ts +2 -0
  115. package/dist/components/ui/lab/topbar/topbar.d.ts +10 -0
  116. package/dist/components/ui/lab/topbar/topbar.metadata.d.ts +2 -0
  117. package/dist/index.d.ts +1 -0
  118. package/dist/index.js +229 -0
  119. package/dist/lib/ai/types.d.ts +53 -0
  120. package/dist/lib/component-status-config.d.ts +12 -0
  121. package/dist/lib/style-scope.d.ts +5 -0
  122. package/dist/lib/style-scope.js +7 -0
  123. package/dist/lib/types.d.ts +50 -0
  124. package/dist/lib/use-controllable-state.d.ts +11 -0
  125. package/dist/lib/use-controllable-state.js +32 -0
  126. package/dist/lib/utils.d.ts +45 -0
  127. package/dist/lib/utils.js +92 -0
  128. package/package.json +51 -0
@@ -0,0 +1,155 @@
1
+ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
+ import { Dialog as a } from "@base-ui/react/dialog";
3
+ import { IconX as d } from "@tabler/icons-react";
4
+ import { cn as i, getPortalContainer as c } from "../../../../lib/utils.js";
5
+ function y({ ...t }) {
6
+ return /* @__PURE__ */ e(a.Root, { "data-slot": "dialog", ...t });
7
+ }
8
+ function D({ children: t, ...o }) {
9
+ return /* @__PURE__ */ e(a.Trigger, { "data-slot": "dialog-trigger", ...o, children: t });
10
+ }
11
+ function g({ ...t }) {
12
+ return /* @__PURE__ */ e(
13
+ a.Portal,
14
+ {
15
+ "data-slot": "dialog-portal",
16
+ ...t,
17
+ container: c()
18
+ }
19
+ );
20
+ }
21
+ function b({
22
+ children: t,
23
+ ...o
24
+ }) {
25
+ return /* @__PURE__ */ e(a.Close, { "data-slot": "dialog-close", ...o, children: t });
26
+ }
27
+ function u({
28
+ className: t,
29
+ ...o
30
+ }) {
31
+ return /* @__PURE__ */ e(
32
+ a.Backdrop,
33
+ {
34
+ "data-slot": "dialog-overlay",
35
+ className: i(
36
+ "fixed inset-0 z-50 bg-black/50 transition-opacity duration-200 data-open:opacity-100 data-closed:opacity-0",
37
+ t
38
+ ),
39
+ ...o
40
+ }
41
+ );
42
+ }
43
+ function h({
44
+ className: t,
45
+ children: o,
46
+ showCloseButton: l = !0,
47
+ closeButtonLabel: r = "Close",
48
+ ...s
49
+ }) {
50
+ return /* @__PURE__ */ n(g, { "data-slot": "dialog-portal", children: [
51
+ /* @__PURE__ */ e(u, {}),
52
+ /* @__PURE__ */ n(
53
+ a.Popup,
54
+ {
55
+ "data-slot": "dialog-content",
56
+ className: i(
57
+ "bg-popover fixed inset-x-4 top-1/2 z-50 grid -translate-y-1/2 rounded-xl border px-5 py-5 mb-2.5 shadow-xl outline-none transition-opacity duration-200 data-open:opacity-100 data-closed:opacity-0 sm:inset-x-0 sm:left-1/2 sm:w-full sm:max-w-lg sm:-translate-x-1/2",
58
+ t
59
+ ),
60
+ ...s,
61
+ children: [
62
+ o,
63
+ l && /* @__PURE__ */ e(
64
+ a.Close,
65
+ {
66
+ "data-slot": "dialog-close",
67
+ render: /* @__PURE__ */ n(
68
+ "button",
69
+ {
70
+ type: "button",
71
+ "aria-label": r,
72
+ className: "ring-offset-background focus:ring-ring data-open:bg-accent data-open:text-muted-foreground text-foreground absolute top-5 right-4 flex size-7 items-center justify-center rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",
73
+ children: [
74
+ /* @__PURE__ */ e(d, { className: "h-4 w-4" }),
75
+ /* @__PURE__ */ e("span", { className: "sr-only", children: r })
76
+ ]
77
+ }
78
+ )
79
+ }
80
+ )
81
+ ]
82
+ }
83
+ )
84
+ ] });
85
+ }
86
+ function v({ className: t, ...o }) {
87
+ return /* @__PURE__ */ e(
88
+ "div",
89
+ {
90
+ "data-slot": "dialog-header",
91
+ className: i(
92
+ "flex flex-col gap-2 text-center sm:text-left pb-2",
93
+ t
94
+ ),
95
+ ...o
96
+ }
97
+ );
98
+ }
99
+ function N({ className: t, ...o }) {
100
+ return /* @__PURE__ */ e(
101
+ "div",
102
+ {
103
+ "data-slot": "dialog-footer",
104
+ className: i(
105
+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end pt-3",
106
+ t
107
+ ),
108
+ ...o
109
+ }
110
+ );
111
+ }
112
+ function k({
113
+ className: t,
114
+ ...o
115
+ }) {
116
+ return /* @__PURE__ */ e(
117
+ a.Title,
118
+ {
119
+ "data-slot": "dialog-title",
120
+ className: i(
121
+ "text-lg font-medium text-foreground leading-6 tracking-tightest",
122
+ t
123
+ ),
124
+ ...o
125
+ }
126
+ );
127
+ }
128
+ function C({
129
+ className: t,
130
+ ...o
131
+ }) {
132
+ return /* @__PURE__ */ e(
133
+ a.Description,
134
+ {
135
+ "data-slot": "dialog-description",
136
+ className: i(
137
+ "text-muted-foreground text-base font-normal leading-5 tracking-tightest pt-2",
138
+ t
139
+ ),
140
+ ...o
141
+ }
142
+ );
143
+ }
144
+ export {
145
+ y as Dialog,
146
+ b as DialogClose,
147
+ h as DialogContent,
148
+ C as DialogDescription,
149
+ N as DialogFooter,
150
+ v as DialogHeader,
151
+ u as DialogOverlay,
152
+ g as DialogPortal,
153
+ k as DialogTitle,
154
+ D as DialogTrigger
155
+ };
@@ -0,0 +1,2 @@
1
+ import { ComponentMeta } from '../../../../lib/types';
2
+ export declare const DialogMetadata: ComponentMeta;
@@ -0,0 +1,9 @@
1
+ const a = {
2
+ name: "Dialog",
3
+ status: "in-progress-code-review",
4
+ description: "A modal dialog with overlay, content, and close affordances built on Base UI Dialog.",
5
+ llmUsage: "Use `<Dialog>` with `<DialogTrigger>`, `<DialogContent>`, and `<DialogTitle>` for modals."
6
+ };
7
+ export {
8
+ a as DialogMetadata
9
+ };
@@ -0,0 +1,53 @@
1
+ import { ComponentProps, HTMLAttributes } from 'react';
2
+ import { Menu as MenuPrimitive } from '@base-ui/react/menu';
3
+ declare function DropdownMenu({ ...props }: MenuPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
4
+ declare namespace DropdownMenu {
5
+ var displayName: string;
6
+ }
7
+ declare function DropdownMenuPortal({ ...props }: MenuPrimitive.Portal.Props): import("react/jsx-runtime").JSX.Element;
8
+ declare namespace DropdownMenuPortal {
9
+ var displayName: string;
10
+ }
11
+ declare function DropdownMenuTrigger({ children, ...props }: MenuPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
12
+ declare namespace DropdownMenuTrigger {
13
+ var displayName: string;
14
+ }
15
+ declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, container, ...props }: MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'> & {
16
+ container?: MenuPrimitive.Portal.Props['container'];
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ declare namespace DropdownMenuContent {
19
+ var displayName: string;
20
+ }
21
+ declare function DropdownMenuGroup({ ...props }: MenuPrimitive.Group.Props): import("react/jsx-runtime").JSX.Element;
22
+ declare namespace DropdownMenuGroup {
23
+ var displayName: string;
24
+ }
25
+ declare const DropdownMenuItem: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ContextMenuItemProps & {
26
+ inset?: boolean;
27
+ variant?: "default" | "destructive";
28
+ }, "ref"> & import('react').RefAttributes<HTMLElement>>;
29
+ declare const DropdownMenuCheckboxItem: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ContextMenuCheckboxItemProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
30
+ declare function DropdownMenuRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props): import("react/jsx-runtime").JSX.Element;
31
+ declare namespace DropdownMenuRadioGroup {
32
+ var displayName: string;
33
+ }
34
+ declare const DropdownMenuRadioItem: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ContextMenuRadioItemProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
35
+ declare const DropdownMenuLabel: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ContextMenuGroupLabelProps & {
36
+ inset?: boolean;
37
+ }, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
38
+ declare const DropdownMenuHeader: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
39
+ declare const DropdownMenuSeparator: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').SeparatorProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
40
+ declare const DropdownMenuShortcut: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & import('react').RefAttributes<HTMLSpanElement>>;
41
+ declare function DropdownMenuSub({ ...props }: MenuPrimitive.SubmenuRoot.Props): import("react/jsx-runtime").JSX.Element;
42
+ declare namespace DropdownMenuSub {
43
+ var displayName: string;
44
+ }
45
+ declare const DropdownMenuSubTrigger: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ContextMenuSubmenuTriggerProps & {
46
+ inset?: boolean;
47
+ }, "ref"> & import('react').RefAttributes<HTMLElement>>;
48
+ declare function DropdownMenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: ComponentProps<typeof DropdownMenuContent>): import("react/jsx-runtime").JSX.Element;
49
+ declare namespace DropdownMenuSubContent {
50
+ var displayName: string;
51
+ }
52
+ declare const DropdownMenuSectionLabel: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
53
+ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, DropdownMenuSectionLabel, };
@@ -0,0 +1,250 @@
1
+ import { jsx as o, jsxs as p } from "react/jsx-runtime";
2
+ import { forwardRef as i } from "react";
3
+ import { Menu as r } from "@base-ui/react/menu";
4
+ import { IconCheck as c, IconChevronRight as f } from "@tabler/icons-react";
5
+ import { cn as d, getPortalContainer as v } from "../../../../lib/utils.js";
6
+ function w({ ...e }) {
7
+ return /* @__PURE__ */ o(r.Root, { "data-slot": "dropdown-menu", ...e });
8
+ }
9
+ w.displayName = "DropdownMenu";
10
+ function l({ ...e }) {
11
+ return /* @__PURE__ */ o(
12
+ r.Portal,
13
+ {
14
+ "data-slot": "dropdown-menu-portal",
15
+ container: v(),
16
+ ...e
17
+ }
18
+ );
19
+ }
20
+ l.displayName = "DropdownMenuPortal";
21
+ function b({
22
+ children: e,
23
+ ...t
24
+ }) {
25
+ return /* @__PURE__ */ o(r.Trigger, { "data-slot": "dropdown-menu-trigger", ...t, children: e });
26
+ }
27
+ b.displayName = "DropdownMenuTrigger";
28
+ function m({
29
+ align: e = "start",
30
+ alignOffset: t = 0,
31
+ side: n = "bottom",
32
+ sideOffset: a = 4,
33
+ className: s,
34
+ container: u,
35
+ ...g
36
+ }) {
37
+ return /* @__PURE__ */ o(l, { container: u, children: /* @__PURE__ */ o(
38
+ r.Positioner,
39
+ {
40
+ className: "isolate z-50 outline-none",
41
+ align: e,
42
+ alignOffset: t,
43
+ side: n,
44
+ sideOffset: a,
45
+ children: /* @__PURE__ */ o(
46
+ r.Popup,
47
+ {
48
+ "data-slot": "dropdown-menu-content",
49
+ className: d(
50
+ "bg-popover text-popover-foreground p-1 data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--available-height) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border shadow-md outline-none",
51
+ s
52
+ ),
53
+ ...g
54
+ }
55
+ )
56
+ }
57
+ ) });
58
+ }
59
+ m.displayName = "DropdownMenuContent";
60
+ function x({ ...e }) {
61
+ return /* @__PURE__ */ o(r.Group, { "data-slot": "dropdown-menu-group", ...e });
62
+ }
63
+ x.displayName = "DropdownMenuGroup";
64
+ const h = i(({ className: e, inset: t, variant: n = "default", children: a, ...s }, u) => /* @__PURE__ */ o(
65
+ r.Item,
66
+ {
67
+ ref: u,
68
+ "data-slot": "dropdown-menu-item",
69
+ "data-inset": t,
70
+ "data-variant": n,
71
+ className: d(
72
+ "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive-hover dark:data-[variant=destructive]:focus:bg-destructive-hover data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:text-destructive-foreground data-[variant=destructive]:hover:bg-destructive-hover dark:data-[variant=destructive]:hover:bg-destructive-hover [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm p-2 text-base outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
73
+ e
74
+ ),
75
+ ...s,
76
+ children: a
77
+ }
78
+ ));
79
+ h.displayName = "DropdownMenuItem";
80
+ const M = i(({ className: e, children: t, checked: n, ...a }, s) => /* @__PURE__ */ p(
81
+ r.CheckboxItem,
82
+ {
83
+ ref: s,
84
+ "data-slot": "dropdown-menu-checkbox-item",
85
+ className: d(
86
+ "focus:bg-accent focus:text-accent-foreground h-9 relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
87
+ e
88
+ ),
89
+ checked: n,
90
+ ...a,
91
+ children: [
92
+ /* @__PURE__ */ o("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ o(r.CheckboxItemIndicator, { children: /* @__PURE__ */ o(c, { className: "size-4 text-popover-foreground" }) }) }),
93
+ t
94
+ ]
95
+ }
96
+ ));
97
+ M.displayName = "DropdownMenuCheckboxItem";
98
+ function D({ ...e }) {
99
+ return /* @__PURE__ */ o(
100
+ r.RadioGroup,
101
+ {
102
+ "data-slot": "dropdown-menu-radio-group",
103
+ ...e
104
+ }
105
+ );
106
+ }
107
+ D.displayName = "DropdownMenuRadioGroup";
108
+ const N = i(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ p(
109
+ r.RadioItem,
110
+ {
111
+ ref: a,
112
+ "data-slot": "dropdown-menu-radio-item",
113
+ className: d(
114
+ "focus:bg-accent focus:text-accent-foreground h-9 relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
115
+ e
116
+ ),
117
+ ...n,
118
+ children: [
119
+ /* @__PURE__ */ o("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ o(r.RadioItemIndicator, { children: /* @__PURE__ */ o(c, { className: "size-4 text-popover-foreground" }) }) }),
120
+ t
121
+ ]
122
+ }
123
+ ));
124
+ N.displayName = "DropdownMenuRadioItem";
125
+ const y = i(({ className: e, inset: t, ...n }, a) => /* @__PURE__ */ o(
126
+ r.GroupLabel,
127
+ {
128
+ ref: a,
129
+ "data-slot": "dropdown-menu-label",
130
+ "data-inset": t,
131
+ className: d(
132
+ "-mx-1 -mt-1 mb-1 px-2 py-1.5 text-sm border-b border-border font-medium data-inset:pl-8 text-popover-foreground dark:text-popover-foreground",
133
+ e
134
+ ),
135
+ ...n
136
+ }
137
+ ));
138
+ y.displayName = "DropdownMenuLabel";
139
+ const z = i(({ className: e, ...t }, n) => /* @__PURE__ */ o(
140
+ "div",
141
+ {
142
+ ref: n,
143
+ "data-slot": "dropdown-menu-header",
144
+ className: d(
145
+ "-mx-1 -mt-1 mb-1 flex flex-row items-center gap-2 border-b border-border px-2 py-2 pointer-events-none",
146
+ e
147
+ ),
148
+ ...t
149
+ }
150
+ ));
151
+ z.displayName = "DropdownMenuHeader";
152
+ const k = i(({ className: e, ...t }, n) => /* @__PURE__ */ o(
153
+ r.Separator,
154
+ {
155
+ ref: n,
156
+ "data-slot": "dropdown-menu-separator",
157
+ className: d("bg-border -mx-1 my-1 h-px", e),
158
+ ...t
159
+ }
160
+ ));
161
+ k.displayName = "DropdownMenuSeparator";
162
+ const I = i(({ className: e, ...t }, n) => /* @__PURE__ */ o(
163
+ "span",
164
+ {
165
+ ref: n,
166
+ "data-slot": "dropdown-menu-shortcut",
167
+ className: d(
168
+ "text-muted-foreground ml-auto text-xs tracking-widest",
169
+ e
170
+ ),
171
+ ...t
172
+ }
173
+ ));
174
+ I.displayName = "DropdownMenuShortcut";
175
+ function S({ ...e }) {
176
+ return /* @__PURE__ */ o(r.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...e });
177
+ }
178
+ S.displayName = "DropdownMenuSub";
179
+ const _ = i(({ className: e, inset: t, children: n, ...a }, s) => /* @__PURE__ */ p(
180
+ r.SubmenuTrigger,
181
+ {
182
+ ref: s,
183
+ "data-slot": "dropdown-menu-sub-trigger",
184
+ "data-inset": t,
185
+ className: d(
186
+ "focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
187
+ e
188
+ ),
189
+ ...a,
190
+ children: [
191
+ n,
192
+ /* @__PURE__ */ o(f, { className: "ml-auto size-4" })
193
+ ]
194
+ }
195
+ ));
196
+ _.displayName = "DropdownMenuSubTrigger";
197
+ function C({
198
+ align: e = "start",
199
+ alignOffset: t = -3,
200
+ side: n = "right",
201
+ sideOffset: a = 0,
202
+ className: s,
203
+ ...u
204
+ }) {
205
+ return /* @__PURE__ */ o(
206
+ m,
207
+ {
208
+ "data-slot": "dropdown-menu-sub-content",
209
+ className: d("min-w-32 w-auto", s),
210
+ align: e,
211
+ alignOffset: t,
212
+ side: n,
213
+ sideOffset: a,
214
+ ...u
215
+ }
216
+ );
217
+ }
218
+ C.displayName = "DropdownMenuSubContent";
219
+ const R = i(({ className: e, ...t }, n) => /* @__PURE__ */ o(
220
+ "div",
221
+ {
222
+ ref: n,
223
+ "data-slot": "dropdown-menu-section-label",
224
+ className: d(
225
+ "px-2 py-1 text-sm text-muted-foreground dark:text-muted-foreground",
226
+ e
227
+ ),
228
+ ...t
229
+ }
230
+ ));
231
+ R.displayName = "DropdownMenuSectionLabel";
232
+ export {
233
+ w as DropdownMenu,
234
+ M as DropdownMenuCheckboxItem,
235
+ m as DropdownMenuContent,
236
+ x as DropdownMenuGroup,
237
+ z as DropdownMenuHeader,
238
+ h as DropdownMenuItem,
239
+ y as DropdownMenuLabel,
240
+ l as DropdownMenuPortal,
241
+ D as DropdownMenuRadioGroup,
242
+ N as DropdownMenuRadioItem,
243
+ R as DropdownMenuSectionLabel,
244
+ k as DropdownMenuSeparator,
245
+ I as DropdownMenuShortcut,
246
+ S as DropdownMenuSub,
247
+ C as DropdownMenuSubContent,
248
+ _ as DropdownMenuSubTrigger,
249
+ b as DropdownMenuTrigger
250
+ };
@@ -0,0 +1,2 @@
1
+ import { ComponentMeta } from '../../../../lib/types';
2
+ export declare const DropdownMenuMetadata: ComponentMeta;
@@ -0,0 +1,9 @@
1
+ const e = {
2
+ name: "DropdownMenu",
3
+ status: "in-progress-code-review",
4
+ description: "A dropdown menu with submenus, separators, and selection states, built on Base UI Dropdown Menu primitives.",
5
+ llmUsage: "Use `<DropdownMenu>` with `<DropdownMenuTrigger>`, `<DropdownMenuContent>`, and `<DropdownMenuItem>` for context actions."
6
+ };
7
+ export {
8
+ e as DropdownMenuMetadata
9
+ };
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ declare const helperTextVariants: (props?: ({
4
+ size?: "sm" | "xs" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ interface HelperTextProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof helperTextVariants> {
7
+ isError?: boolean;
8
+ isSuccess?: boolean;
9
+ icon?: ReactNode;
10
+ }
11
+ declare const HelperText: import('react').ForwardRefExoticComponent<HelperTextProps & import('react').RefAttributes<HTMLDivElement>>;
12
+ export { HelperText };
@@ -0,0 +1,65 @@
1
+ import { jsx as e, jsxs as p } from "react/jsx-runtime";
2
+ import { forwardRef as g, isValidElement as u } from "react";
3
+ import { IconExclamationCircle as h } from "@tabler/icons-react";
4
+ import { cva as i } from "class-variance-authority";
5
+ import { cn as n } from "../../../../lib/utils.js";
6
+ const v = i("flex flex-row justify-start items-start", {
7
+ variants: {
8
+ size: {
9
+ xs: "gap-0.5 text-xs leading-3.5 tracking-tightest",
10
+ sm: "gap-1 text-sm leading-4.5 tracking-tight"
11
+ }
12
+ },
13
+ defaultVariants: {
14
+ size: "sm"
15
+ }
16
+ }), V = i("shrink-0", {
17
+ variants: {
18
+ size: {
19
+ xs: "[&_svg]:size-3.5",
20
+ sm: "[&_svg]:size-4"
21
+ }
22
+ },
23
+ defaultVariants: {
24
+ size: "sm"
25
+ }
26
+ }), z = g(
27
+ ({
28
+ className: o,
29
+ size: t = "sm",
30
+ isError: s = !1,
31
+ isSuccess: l = !1,
32
+ icon: m,
33
+ children: c,
34
+ ...x
35
+ }, d) => {
36
+ const a = m ?? (s ? /* @__PURE__ */ e(h, {}) : null), f = u(a), r = s ? "text-destructive-foreground" : l ? "text-success-foreground" : "text-muted-foreground";
37
+ return /* @__PURE__ */ p(
38
+ "div",
39
+ {
40
+ ref: d,
41
+ "data-slot": "helper-text",
42
+ className: n(v({ size: t }), o),
43
+ ...x,
44
+ children: [
45
+ f ? /* @__PURE__ */ e(
46
+ "span",
47
+ {
48
+ className: n(
49
+ V({ size: t }),
50
+ t === "sm" && "mt-0.25",
51
+ r
52
+ ),
53
+ children: a
54
+ }
55
+ ) : null,
56
+ /* @__PURE__ */ e("span", { className: r, children: c })
57
+ ]
58
+ }
59
+ );
60
+ }
61
+ );
62
+ z.displayName = "HelperText";
63
+ export {
64
+ z as HelperText
65
+ };
@@ -0,0 +1,2 @@
1
+ import { ComponentMeta } from '../../../../lib/types';
2
+ export declare const HelperTextMetadata: ComponentMeta;
@@ -0,0 +1,9 @@
1
+ const e = {
2
+ name: "HelperText",
3
+ status: "in-progress-code-review",
4
+ description: "A helper text component for form fields with validation states.",
5
+ llmUsage: "Use `<HelperText>` below form inputs to provide guidance or error messages."
6
+ };
7
+ export {
8
+ e as HelperTextMetadata
9
+ };
@@ -0,0 +1,12 @@
1
+ import { PreviewCard as PreviewCardPrimitive } from '@base-ui/react/preview-card';
2
+ type HoverCardDelay = {
3
+ openDelay?: number;
4
+ closeDelay?: number;
5
+ };
6
+ declare function HoverCard({ openDelay, closeDelay, ...props }: PreviewCardPrimitive.Root.Props & HoverCardDelay): import("react/jsx-runtime").JSX.Element;
7
+ declare namespace HoverCard {
8
+ var displayName: string;
9
+ }
10
+ declare const HoverCardTrigger: import('react').ForwardRefExoticComponent<Omit<PreviewCardPrimitive.Trigger.Props<unknown>, "ref"> & import('react').RefAttributes<HTMLAnchorElement>>;
11
+ declare const HoverCardContent: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').PreviewCardPopupProps & Pick<import('@base-ui/react').PreviewCardPositionerProps, "align" | "alignOffset" | "side" | "sideOffset">, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
12
+ export { HoverCard, HoverCardTrigger, HoverCardContent };
@@ -0,0 +1,76 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { createContext as c, forwardRef as s, useContext as p, useMemo as f } from "react";
3
+ import { PreviewCard as d } from "@base-ui/react/preview-card";
4
+ import { getPortalContainer as g, cn as v } from "../../../../lib/utils.js";
5
+ const m = c(null);
6
+ function u({
7
+ openDelay: o,
8
+ closeDelay: e,
9
+ ...a
10
+ }) {
11
+ const r = f(
12
+ () => ({ openDelay: o, closeDelay: e }),
13
+ [o, e]
14
+ );
15
+ return /* @__PURE__ */ t(m.Provider, { value: r, children: /* @__PURE__ */ t(d.Root, { "data-slot": "hover-card", ...a }) });
16
+ }
17
+ u.displayName = "HoverCard";
18
+ const C = s(({ children: o, ...e }, a) => {
19
+ const r = p(m), { delay: n, closeDelay: i, ...l } = e;
20
+ return /* @__PURE__ */ t(
21
+ d.Trigger,
22
+ {
23
+ ref: a,
24
+ "data-slot": "hover-card-trigger",
25
+ delay: n ?? r?.openDelay,
26
+ closeDelay: i ?? r?.closeDelay,
27
+ ...l,
28
+ children: o
29
+ }
30
+ );
31
+ });
32
+ C.displayName = "HoverCardTrigger";
33
+ const h = s(
34
+ ({
35
+ className: o,
36
+ side: e = "bottom",
37
+ sideOffset: a = 4,
38
+ align: r = "center",
39
+ alignOffset: n = 4,
40
+ ...i
41
+ }, l) => /* @__PURE__ */ t(
42
+ d.Portal,
43
+ {
44
+ "data-slot": "hover-card-portal",
45
+ container: g(),
46
+ children: /* @__PURE__ */ t(
47
+ d.Positioner,
48
+ {
49
+ align: r,
50
+ alignOffset: n,
51
+ side: e,
52
+ sideOffset: a,
53
+ className: "isolate z-50",
54
+ children: /* @__PURE__ */ t(
55
+ d.Popup,
56
+ {
57
+ ref: l,
58
+ "data-slot": "hover-card-content",
59
+ className: v(
60
+ "bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-[var(--transform-origin)] rounded-md border p-4 shadow-md outline-none",
61
+ o
62
+ ),
63
+ ...i
64
+ }
65
+ )
66
+ }
67
+ )
68
+ }
69
+ )
70
+ );
71
+ h.displayName = "HoverCardContent";
72
+ export {
73
+ u as HoverCard,
74
+ h as HoverCardContent,
75
+ C as HoverCardTrigger
76
+ };
@@ -0,0 +1,2 @@
1
+ import { ComponentMeta } from '../../../../lib/types';
2
+ export declare const HoverCardMetadata: ComponentMeta;