@cognite/aura 0.1.5 → 0.1.7

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 (74) hide show
  1. package/DESIGN.md +1269 -0
  2. package/README.md +24 -0
  3. package/dist/colors.css +824 -0
  4. package/dist/components/index.d.ts +11 -2
  5. package/dist/components/index.js +284 -249
  6. package/dist/components/ui/core/accordion/accordion.d.ts +24 -0
  7. package/dist/components/ui/core/accordion/accordion.js +113 -0
  8. package/dist/components/ui/core/accordion/accordion.metadata.d.ts +2 -0
  9. package/dist/components/ui/core/accordion/accordion.metadata.js +9 -0
  10. package/dist/components/ui/core/alert/alert.d.ts +2 -1
  11. package/dist/components/ui/core/alert/alert.js +120 -96
  12. package/dist/components/ui/core/alert/alert.metadata.js +1 -1
  13. package/dist/components/ui/core/avatar/avatar.js +29 -32
  14. package/dist/components/ui/core/badge/badge.d.ts +1 -1
  15. package/dist/components/ui/core/badge/badge.js +44 -52
  16. package/dist/components/ui/core/banner/banner.d.ts +40 -0
  17. package/dist/components/ui/core/banner/banner.js +218 -0
  18. package/dist/components/ui/core/banner/banner.metadata.d.ts +2 -0
  19. package/dist/components/ui/core/banner/banner.metadata.js +9 -0
  20. package/dist/components/ui/core/button/button.d.ts +2 -2
  21. package/dist/components/ui/core/button/button.js +19 -20
  22. package/dist/components/ui/core/button-group/button-group.js +10 -10
  23. package/dist/components/ui/core/card/card.js +1 -1
  24. package/dist/components/ui/core/code-block/code-block.d.ts +14 -3
  25. package/dist/components/ui/core/code-block/code-block.js +218 -97
  26. package/dist/components/ui/core/code-block/code-block.metadata.js +1 -1
  27. package/dist/components/ui/core/collapsible/collapsible.js +30 -24
  28. package/dist/components/ui/core/command/command.d.ts +2 -2
  29. package/dist/components/ui/core/command/command.js +30 -30
  30. package/dist/components/ui/core/dialog/dialog.js +8 -8
  31. package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +1 -1
  32. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +65 -62
  33. package/dist/components/ui/core/helper-text/helper-text.js +8 -8
  34. package/dist/components/ui/core/hover-card/hover-card.js +5 -5
  35. package/dist/components/ui/core/inline-citation/inline-citation.js +19 -16
  36. package/dist/components/ui/core/input/input.d.ts +1 -5
  37. package/dist/components/ui/core/input/input.js +24 -30
  38. package/dist/components/ui/core/input-group/input-group.d.ts +2 -2
  39. package/dist/components/ui/core/input-group/input-group.js +104 -74
  40. package/dist/components/ui/core/label/label.d.ts +3 -1
  41. package/dist/components/ui/core/label/label.js +39 -16
  42. package/dist/components/ui/core/label/label.metadata.js +2 -2
  43. package/dist/components/ui/core/message/message-response-default-streamdown-controls.d.ts +11 -0
  44. package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +13 -0
  45. package/dist/components/ui/core/message/message.d.ts +1 -1
  46. package/dist/components/ui/core/message/message.js +62 -44
  47. package/dist/components/ui/core/popover/popover.d.ts +10 -1
  48. package/dist/components/ui/core/popover/popover.js +137 -34
  49. package/dist/components/ui/core/popover/popover.metadata.js +9 -0
  50. package/dist/components/ui/core/progress/progress.d.ts +10 -0
  51. package/dist/components/ui/core/progress/progress.js +61 -0
  52. package/dist/components/ui/core/progress/progress.metadata.d.ts +2 -0
  53. package/dist/components/ui/core/progress/progress.metadata.js +9 -0
  54. package/dist/components/ui/core/prompt-input/prompt-input.d.ts +2 -2
  55. package/dist/components/ui/core/prompt-input/prompt-input.js +100 -100
  56. package/dist/components/ui/core/scroll-area/scroll-area.d.ts +3 -0
  57. package/dist/components/ui/core/scroll-area/scroll-area.js +71 -0
  58. package/dist/components/ui/core/scroll-area/scroll-area.metadata.d.ts +2 -0
  59. package/dist/components/ui/core/scroll-area/scroll-area.metadata.js +9 -0
  60. package/dist/components/ui/core/select/select.d.ts +3 -3
  61. package/dist/components/ui/core/select/select.js +69 -73
  62. package/dist/components/ui/core/skeleton/skeleton.js +6 -6
  63. package/dist/components/ui/core/sources/sources.js +8 -1
  64. package/dist/components/ui/core/textarea/textarea.d.ts +1 -8
  65. package/dist/components/ui/core/textarea/textarea.js +21 -45
  66. package/dist/components/ui/core/tool/tool.js +58 -50
  67. package/dist/components/ui/core/tooltip/tooltip.js +10 -10
  68. package/dist/index.d.ts +1 -1
  69. package/dist/index.js +281 -249
  70. package/dist/lib/utils.d.ts +6 -6
  71. package/dist/lib/utils.js +26 -26
  72. package/dist/styles.css +1 -1
  73. package/dist/styles.source.css +3 -812
  74. package/package.json +28 -9
@@ -27,7 +27,7 @@ function N({
27
27
  }) {
28
28
  return /* @__PURE__ */ a(e.Close, { "data-slot": "dialog-close", ...o, children: t });
29
29
  }
30
- function m({
30
+ function u({
31
31
  className: t,
32
32
  ...o
33
33
  }) {
@@ -51,13 +51,13 @@ function C({
51
51
  ...s
52
52
  }) {
53
53
  return /* @__PURE__ */ l(p, { "data-slot": "dialog-portal", children: [
54
- /* @__PURE__ */ a(m, {}),
54
+ /* @__PURE__ */ a(u, {}),
55
55
  /* @__PURE__ */ l(
56
56
  e.Popup,
57
57
  {
58
58
  "data-slot": "dialog-content",
59
59
  className: i(
60
- "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",
60
+ "bg-popover-background 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",
61
61
  t
62
62
  ),
63
63
  ...s,
@@ -84,7 +84,7 @@ function C({
84
84
  )
85
85
  ] });
86
86
  }
87
- function w({ className: t, ...o }) {
87
+ function k({ className: t, ...o }) {
88
88
  return /* @__PURE__ */ a(
89
89
  "div",
90
90
  {
@@ -97,7 +97,7 @@ function w({ className: t, ...o }) {
97
97
  }
98
98
  );
99
99
  }
100
- function k({ className: t, ...o }) {
100
+ function w({ className: t, ...o }) {
101
101
  return /* @__PURE__ */ a(
102
102
  "div",
103
103
  {
@@ -147,9 +147,9 @@ export {
147
147
  N as DialogClose,
148
148
  C as DialogContent,
149
149
  T as DialogDescription,
150
- k as DialogFooter,
151
- w as DialogHeader,
152
- m as DialogOverlay,
150
+ w as DialogFooter,
151
+ k as DialogHeader,
152
+ u as DialogOverlay,
153
153
  p as DialogPortal,
154
154
  P as DialogTitle,
155
155
  v as DialogTrigger
@@ -4,7 +4,7 @@ declare function DropdownMenu({ ...props }: MenuPrimitive.Root.Props): import("r
4
4
  declare namespace DropdownMenu {
5
5
  var displayName: string;
6
6
  }
7
- declare function DropdownMenuPortal({ ...props }: MenuPrimitive.Portal.Props): import("react/jsx-runtime").JSX.Element;
7
+ declare function DropdownMenuPortal({ container, ...props }: MenuPrimitive.Portal.Props): import("react/jsx-runtime").JSX.Element;
8
8
  declare namespace DropdownMenuPortal {
9
9
  var displayName: string;
10
10
  }
@@ -1,55 +1,58 @@
1
- import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
- import { forwardRef as i } from "react";
1
+ import { jsx as n, jsxs as c } from "react/jsx-runtime";
2
+ import { forwardRef as u } from "react";
3
3
  import { Menu as r } from "@base-ui/react/menu";
4
- import { IconCheck as c, IconChevronRight as f } from "@tabler/icons-react";
5
- import { usePortalContainer as v } from "../../../../lib/portal-container-context.js";
4
+ import { IconCheck as p, IconChevronRight as f } from "@tabler/icons-react";
5
+ import { usePortalContainer as b } from "../../../../lib/portal-container-context.js";
6
6
  import { cn as d } from "../../../../lib/utils.js";
7
- function w({ ...e }) {
8
- return /* @__PURE__ */ t(r.Root, { "data-slot": "dropdown-menu", ...e });
7
+ function v({ ...e }) {
8
+ return /* @__PURE__ */ n(r.Root, { "data-slot": "dropdown-menu", ...e });
9
9
  }
10
- w.displayName = "DropdownMenu";
11
- function l({ ...e }) {
12
- const o = v();
13
- return /* @__PURE__ */ t(
10
+ v.displayName = "DropdownMenu";
11
+ function l({
12
+ container: e,
13
+ ...o
14
+ }) {
15
+ const t = b();
16
+ return /* @__PURE__ */ n(
14
17
  r.Portal,
15
18
  {
16
19
  "data-slot": "dropdown-menu-portal",
17
- container: o,
18
- ...e
20
+ container: e ?? t,
21
+ ...o
19
22
  }
20
23
  );
21
24
  }
22
25
  l.displayName = "DropdownMenuPortal";
23
- function b({
26
+ function w({
24
27
  children: e,
25
28
  ...o
26
29
  }) {
27
- return /* @__PURE__ */ t(r.Trigger, { "data-slot": "dropdown-menu-trigger", ...o, children: e });
30
+ return /* @__PURE__ */ n(r.Trigger, { "data-slot": "dropdown-menu-trigger", ...o, children: e });
28
31
  }
29
- b.displayName = "DropdownMenuTrigger";
32
+ w.displayName = "DropdownMenuTrigger";
30
33
  function m({
31
34
  align: e = "start",
32
35
  alignOffset: o = 0,
33
- side: n = "bottom",
36
+ side: t = "bottom",
34
37
  sideOffset: a = 4,
35
38
  className: s,
36
- container: u,
39
+ container: i,
37
40
  ...g
38
41
  }) {
39
- return /* @__PURE__ */ t(l, { container: u, children: /* @__PURE__ */ t(
42
+ return /* @__PURE__ */ n(l, { container: i, children: /* @__PURE__ */ n(
40
43
  r.Positioner,
41
44
  {
42
45
  className: "isolate z-50 outline-none",
43
46
  align: e,
44
47
  alignOffset: o,
45
- side: n,
48
+ side: t,
46
49
  sideOffset: a,
47
- children: /* @__PURE__ */ t(
50
+ children: /* @__PURE__ */ n(
48
51
  r.Popup,
49
52
  {
50
53
  "data-slot": "dropdown-menu-content",
51
54
  className: d(
52
- "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",
55
+ "bg-popover-background text-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",
53
56
  s
54
57
  ),
55
58
  ...g
@@ -60,18 +63,18 @@ function m({
60
63
  }
61
64
  m.displayName = "DropdownMenuContent";
62
65
  function x({ ...e }) {
63
- return /* @__PURE__ */ t(r.Group, { "data-slot": "dropdown-menu-group", ...e });
66
+ return /* @__PURE__ */ n(r.Group, { "data-slot": "dropdown-menu-group", ...e });
64
67
  }
65
68
  x.displayName = "DropdownMenuGroup";
66
- const h = i(({ className: e, inset: o, variant: n = "default", children: a, ...s }, u) => /* @__PURE__ */ t(
69
+ const h = u(({ className: e, inset: o, variant: t = "default", children: a, ...s }, i) => /* @__PURE__ */ n(
67
70
  r.Item,
68
71
  {
69
- ref: u,
72
+ ref: i,
70
73
  "data-slot": "dropdown-menu-item",
71
74
  "data-inset": o,
72
- "data-variant": n,
75
+ "data-variant": t,
73
76
  className: d(
74
- "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",
77
+ "focus:bg-accent-background focus:text-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive-background-hover dark:data-[variant=destructive]:focus:bg-destructive-background-hover data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:text-destructive-foreground data-[variant=destructive]:hover:bg-destructive-background-hover dark:data-[variant=destructive]:hover:bg-destructive-background-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",
75
78
  e
76
79
  ),
77
80
  ...s,
@@ -79,26 +82,26 @@ const h = i(({ className: e, inset: o, variant: n = "default", children: a, ...s
79
82
  }
80
83
  ));
81
84
  h.displayName = "DropdownMenuItem";
82
- const M = i(({ className: e, children: o, checked: n, ...a }, s) => /* @__PURE__ */ p(
85
+ const M = u(({ className: e, children: o, checked: t, ...a }, s) => /* @__PURE__ */ c(
83
86
  r.CheckboxItem,
84
87
  {
85
88
  ref: s,
86
89
  "data-slot": "dropdown-menu-checkbox-item",
87
90
  className: d(
88
- "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",
91
+ "focus:bg-accent-background focus:text-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",
89
92
  e
90
93
  ),
91
- checked: n,
94
+ checked: t,
92
95
  ...a,
93
96
  children: [
94
- /* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(r.CheckboxItemIndicator, { children: /* @__PURE__ */ t(c, { className: "size-4 text-popover-foreground" }) }) }),
97
+ /* @__PURE__ */ n("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ n(r.CheckboxItemIndicator, { children: /* @__PURE__ */ n(p, { className: "size-4 text-foreground" }) }) }),
95
98
  o
96
99
  ]
97
100
  }
98
101
  ));
99
102
  M.displayName = "DropdownMenuCheckboxItem";
100
103
  function D({ ...e }) {
101
- return /* @__PURE__ */ t(
104
+ return /* @__PURE__ */ n(
102
105
  r.RadioGroup,
103
106
  {
104
107
  "data-slot": "dropdown-menu-radio-group",
@@ -107,41 +110,41 @@ function D({ ...e }) {
107
110
  );
108
111
  }
109
112
  D.displayName = "DropdownMenuRadioGroup";
110
- const N = i(({ className: e, children: o, ...n }, a) => /* @__PURE__ */ p(
113
+ const N = u(({ className: e, children: o, ...t }, a) => /* @__PURE__ */ c(
111
114
  r.RadioItem,
112
115
  {
113
116
  ref: a,
114
117
  "data-slot": "dropdown-menu-radio-item",
115
118
  className: d(
116
- "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",
119
+ "focus:bg-accent-background focus:text-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",
117
120
  e
118
121
  ),
119
- ...n,
122
+ ...t,
120
123
  children: [
121
- /* @__PURE__ */ t("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(r.RadioItemIndicator, { children: /* @__PURE__ */ t(c, { className: "size-4 text-popover-foreground" }) }) }),
124
+ /* @__PURE__ */ n("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ n(r.RadioItemIndicator, { children: /* @__PURE__ */ n(p, { className: "size-4 text-foreground" }) }) }),
122
125
  o
123
126
  ]
124
127
  }
125
128
  ));
126
129
  N.displayName = "DropdownMenuRadioItem";
127
- const y = i(({ className: e, inset: o, ...n }, a) => /* @__PURE__ */ t(
130
+ const y = u(({ className: e, inset: o, ...t }, a) => /* @__PURE__ */ n(
128
131
  r.GroupLabel,
129
132
  {
130
133
  ref: a,
131
134
  "data-slot": "dropdown-menu-label",
132
135
  "data-inset": o,
133
136
  className: d(
134
- "-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",
137
+ "-mx-1 -mt-1 mb-1 px-2 py-1.5 text-sm border-b border-border font-medium data-inset:pl-8 text-foreground dark:text-foreground",
135
138
  e
136
139
  ),
137
- ...n
140
+ ...t
138
141
  }
139
142
  ));
140
143
  y.displayName = "DropdownMenuLabel";
141
- const z = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
144
+ const k = u(({ className: e, ...o }, t) => /* @__PURE__ */ n(
142
145
  "div",
143
146
  {
144
- ref: n,
147
+ ref: t,
145
148
  "data-slot": "dropdown-menu-header",
146
149
  className: d(
147
150
  "-mx-1 -mt-1 mb-1 flex flex-row items-center gap-2 border-b border-border px-2 py-2 pointer-events-none",
@@ -150,21 +153,21 @@ const z = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
150
153
  ...o
151
154
  }
152
155
  ));
153
- z.displayName = "DropdownMenuHeader";
154
- const k = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
156
+ k.displayName = "DropdownMenuHeader";
157
+ const z = u(({ className: e, ...o }, t) => /* @__PURE__ */ n(
155
158
  r.Separator,
156
159
  {
157
- ref: n,
160
+ ref: t,
158
161
  "data-slot": "dropdown-menu-separator",
159
162
  className: d("bg-border -mx-1 my-1 h-px", e),
160
163
  ...o
161
164
  }
162
165
  ));
163
- k.displayName = "DropdownMenuSeparator";
164
- const I = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
166
+ z.displayName = "DropdownMenuSeparator";
167
+ const I = u(({ className: e, ...o }, t) => /* @__PURE__ */ n(
165
168
  "span",
166
169
  {
167
- ref: n,
170
+ ref: t,
168
171
  "data-slot": "dropdown-menu-shortcut",
169
172
  className: d(
170
173
  "text-muted-foreground ml-auto text-xs tracking-widest",
@@ -175,23 +178,23 @@ const I = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
175
178
  ));
176
179
  I.displayName = "DropdownMenuShortcut";
177
180
  function S({ ...e }) {
178
- return /* @__PURE__ */ t(r.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...e });
181
+ return /* @__PURE__ */ n(r.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...e });
179
182
  }
180
183
  S.displayName = "DropdownMenuSub";
181
- const _ = i(({ className: e, inset: o, children: n, ...a }, s) => /* @__PURE__ */ p(
184
+ const _ = u(({ className: e, inset: o, children: t, ...a }, s) => /* @__PURE__ */ c(
182
185
  r.SubmenuTrigger,
183
186
  {
184
187
  ref: s,
185
188
  "data-slot": "dropdown-menu-sub-trigger",
186
189
  "data-inset": o,
187
190
  className: d(
188
- "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",
191
+ "focus:bg-accent-background focus:text-foreground data-open:bg-accent-background data-open:text-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",
189
192
  e
190
193
  ),
191
194
  ...a,
192
195
  children: [
193
- n,
194
- /* @__PURE__ */ t(f, { className: "ml-auto size-4" })
196
+ t,
197
+ /* @__PURE__ */ n(f, { className: "ml-auto size-4" })
195
198
  ]
196
199
  }
197
200
  ));
@@ -199,29 +202,29 @@ _.displayName = "DropdownMenuSubTrigger";
199
202
  function C({
200
203
  align: e = "start",
201
204
  alignOffset: o = -3,
202
- side: n = "right",
205
+ side: t = "right",
203
206
  sideOffset: a = 0,
204
207
  className: s,
205
- ...u
208
+ ...i
206
209
  }) {
207
- return /* @__PURE__ */ t(
210
+ return /* @__PURE__ */ n(
208
211
  m,
209
212
  {
210
213
  "data-slot": "dropdown-menu-sub-content",
211
214
  className: d("min-w-32 w-auto", s),
212
215
  align: e,
213
216
  alignOffset: o,
214
- side: n,
217
+ side: t,
215
218
  sideOffset: a,
216
- ...u
219
+ ...i
217
220
  }
218
221
  );
219
222
  }
220
223
  C.displayName = "DropdownMenuSubContent";
221
- const R = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
224
+ const R = u(({ className: e, ...o }, t) => /* @__PURE__ */ n(
222
225
  "div",
223
226
  {
224
- ref: n,
227
+ ref: t,
225
228
  "data-slot": "dropdown-menu-section-label",
226
229
  className: d(
227
230
  "px-2 py-1 text-sm text-muted-foreground dark:text-muted-foreground",
@@ -232,21 +235,21 @@ const R = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
232
235
  ));
233
236
  R.displayName = "DropdownMenuSectionLabel";
234
237
  export {
235
- w as DropdownMenu,
238
+ v as DropdownMenu,
236
239
  M as DropdownMenuCheckboxItem,
237
240
  m as DropdownMenuContent,
238
241
  x as DropdownMenuGroup,
239
- z as DropdownMenuHeader,
242
+ k as DropdownMenuHeader,
240
243
  h as DropdownMenuItem,
241
244
  y as DropdownMenuLabel,
242
245
  l as DropdownMenuPortal,
243
246
  D as DropdownMenuRadioGroup,
244
247
  N as DropdownMenuRadioItem,
245
248
  R as DropdownMenuSectionLabel,
246
- k as DropdownMenuSeparator,
249
+ z as DropdownMenuSeparator,
247
250
  I as DropdownMenuShortcut,
248
251
  S as DropdownMenuSub,
249
252
  C as DropdownMenuSubContent,
250
253
  _ as DropdownMenuSubTrigger,
251
- b as DropdownMenuTrigger
254
+ w as DropdownMenuTrigger
252
255
  };
@@ -1,12 +1,12 @@
1
- import { jsxs as p, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as f, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as g, isValidElement as u } from "react";
3
3
  import { IconExclamationCircle as h } from "@tabler/icons-react";
4
4
  import { cva as i } from "class-variance-authority";
5
5
  import { cn as n } from "../../../../lib/utils.js";
6
- const v = i("flex flex-row justify-start items-start", {
6
+ const v = i("flex flex-row justify-start items-start pt-2", {
7
7
  variants: {
8
8
  size: {
9
- xs: "gap-0.5 text-xs leading-3.5 tracking-tightest",
9
+ xs: "gap-1 text-xs leading-3.5 tracking-tightest",
10
10
  sm: "gap-1 text-sm leading-4.5 tracking-tight"
11
11
  }
12
12
  },
@@ -32,17 +32,17 @@ const v = i("flex flex-row justify-start items-start", {
32
32
  icon: m,
33
33
  children: c,
34
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(
35
+ }, p) => {
36
+ const a = m ?? (s ? /* @__PURE__ */ e(h, {}) : null), d = u(a), r = s ? "text-destructive-foreground" : l ? "text-success-foreground" : "text-muted-foreground";
37
+ return /* @__PURE__ */ f(
38
38
  "div",
39
39
  {
40
- ref: d,
40
+ ref: p,
41
41
  "data-slot": "helper-text",
42
42
  className: n(v({ size: t }), o),
43
43
  ...x,
44
44
  children: [
45
- f ? /* @__PURE__ */ e(
45
+ d ? /* @__PURE__ */ e(
46
46
  "span",
47
47
  {
48
48
  className: n(
@@ -1,8 +1,8 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { createContext as p, forwardRef as l, useContext as f, useMemo as u } from "react";
3
3
  import { PreviewCard as d } from "@base-ui/react/preview-card";
4
- import { usePortalContainer as v } from "../../../../lib/portal-container-context.js";
5
- import { cn as g } from "../../../../lib/utils.js";
4
+ import { usePortalContainer as g } from "../../../../lib/portal-container-context.js";
5
+ import { cn as v } from "../../../../lib/utils.js";
6
6
  const m = p(null);
7
7
  function C({
8
8
  openDelay: o,
@@ -40,7 +40,7 @@ const y = l(
40
40
  alignOffset: n = 4,
41
41
  ...i
42
42
  }, s) => {
43
- const c = v();
43
+ const c = g();
44
44
  return /* @__PURE__ */ t(
45
45
  d.Portal,
46
46
  {
@@ -59,8 +59,8 @@ const y = l(
59
59
  {
60
60
  ref: s,
61
61
  "data-slot": "hover-card-content",
62
- className: g(
63
- "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",
62
+ className: v(
63
+ "bg-popover-background text-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",
64
64
  o
65
65
  ),
66
66
  ...i
@@ -1,8 +1,8 @@
1
- import { jsx as i, jsxs as d, Fragment as v } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as d, Fragment as f } from "react/jsx-runtime";
2
2
  import { forwardRef as r } from "react";
3
3
  import { cn as o, getHostname as m } from "../../../../lib/utils.js";
4
4
  import { Badge as g } from "../badge/badge.js";
5
- import { HoverCard as f, HoverCardContent as x, HoverCardTrigger as b } from "../hover-card/hover-card.js";
5
+ import { HoverCard as v, HoverCardContent as x, HoverCardTrigger as b } from "../hover-card/hover-card.js";
6
6
  const h = r(
7
7
  ({ className: e, ...n }, t) => /* @__PURE__ */ i(
8
8
  "span",
@@ -30,13 +30,16 @@ const N = r(({ className: e, ...n }, t) => /* @__PURE__ */ i(
30
30
  {
31
31
  ref: t,
32
32
  "data-slot": "inline-citation-text",
33
- className: o("transition-colors group-hover:bg-accent", e),
33
+ className: o(
34
+ "transition-colors group-hover:bg-accent-background",
35
+ e
36
+ ),
34
37
  ...n
35
38
  }
36
39
  ));
37
40
  N.displayName = "InlineCitationText";
38
41
  const q = (e) => /* @__PURE__ */ i(
39
- f,
42
+ v,
40
43
  {
41
44
  "data-slot": "inline-citation-card",
42
45
  closeDelay: 0,
@@ -56,14 +59,14 @@ const q = (e) => /* @__PURE__ */ i(
56
59
  {
57
60
  "data-slot": "inline-citation-card-trigger",
58
61
  className: o(
59
- "ml-1 inline-flex items-center justify-center rounded-md border border-transparent bg-decorative-background-fjord px-1 text-sm leading-4.5 font-medium text-decorative-foreground-fjord whitespace-nowrap gap-1 transition-[color,box-shadow]",
62
+ "ml-1 inline-flex items-center justify-center rounded-md border border-transparent bg-decorative-fjord-background px-1 text-sm leading-4.5 font-medium text-decorative-fjord-foreground whitespace-nowrap gap-1 transition-[color,box-shadow]",
60
63
  "[&>svg]:size-3 [&>svg]:pointer-events-none",
61
64
  t
62
65
  ),
63
66
  ...a,
64
67
  children: [
65
68
  n && /* @__PURE__ */ i(n, { className: "size-3" }),
66
- e[0] ? /* @__PURE__ */ d(v, { children: [
69
+ e[0] ? /* @__PURE__ */ d(f, { children: [
67
70
  m(e[0]),
68
71
  " ",
69
72
  e.length > 1 && `+${e.length - 1}`
@@ -82,7 +85,7 @@ const q = (e) => /* @__PURE__ */ i(
82
85
  className: o("relative w-80 p-0", e),
83
86
  ...n
84
87
  }
85
- ), y = r(({ title: e, url: n, description: t, className: a, children: l, ...s }, c) => /* @__PURE__ */ d(
88
+ ), k = r(({ title: e, url: n, description: t, className: a, children: l, ...s }, c) => /* @__PURE__ */ d(
86
89
  "div",
87
90
  {
88
91
  ref: c,
@@ -97,21 +100,21 @@ const q = (e) => /* @__PURE__ */ i(
97
100
  ]
98
101
  }
99
102
  ));
100
- y.displayName = "InlineCitationSource";
101
- const k = r(({ children: e, className: n, ...t }, a) => /* @__PURE__ */ i(
103
+ k.displayName = "InlineCitationSource";
104
+ const y = r(({ children: e, className: n, ...t }, a) => /* @__PURE__ */ i(
102
105
  "blockquote",
103
106
  {
104
107
  ref: a,
105
108
  "data-slot": "inline-citation-quote",
106
109
  className: o(
107
- "border-muted border-l-2 pl-3 text-muted-foreground text-sm italic",
110
+ "border-muted-background border-l-2 pl-3 text-muted-foreground text-sm italic",
108
111
  n
109
112
  ),
110
113
  ...t,
111
114
  children: e
112
115
  }
113
116
  ));
114
- k.displayName = "InlineCitationQuote";
117
+ y.displayName = "InlineCitationQuote";
115
118
  const I = r(
116
119
  ({
117
120
  href: e,
@@ -140,9 +143,9 @@ const I = r(
140
143
  "inline-flex items-center justify-center rounded-md border border-transparent px-1 text-sm leading-4.5 font-medium whitespace-nowrap gap-1 transition-colors",
141
144
  "[&>svg]:size-3 [&>svg]:pointer-events-none",
142
145
  {
143
- mountain: "bg-decorative-background-mountain hover:bg-decorative-background-hover-mountain text-decorative-foreground-mountain",
144
- nordic: "bg-decorative-background-nordic hover:bg-decorative-background-hover-nordic text-decorative-foreground-nordic",
145
- fjord: "bg-decorative-background-fjord hover:bg-decorative-background-hover-fjord text-decorative-foreground-fjord"
146
+ mountain: "bg-decorative-mountain-background hover:bg-decorative-mountain-background-hover text-decorative-mountain-foreground",
147
+ nordic: "bg-decorative-nordic-background hover:bg-background-hover text-decorative-nordic-foreground",
148
+ fjord: "bg-decorative-fjord-background hover:bg-decorative-fjord-background-hover text-decorative-fjord-foreground"
146
149
  }[a],
147
150
  l
148
151
  ),
@@ -164,7 +167,7 @@ export {
164
167
  B as InlineCitationCardTrigger,
165
168
  C as InlineCitationGroup,
166
169
  I as InlineCitationLink,
167
- k as InlineCitationQuote,
168
- y as InlineCitationSource,
170
+ y as InlineCitationQuote,
171
+ k as InlineCitationSource,
169
172
  N as InlineCitationText
170
173
  };
@@ -1,6 +1,2 @@
1
- import { ComponentProps, ReactNode } from 'react';
2
- interface InputProps extends ComponentProps<'input'> {
3
- errorMessage?: ReactNode;
4
- }
5
- declare const Input: import('react').ForwardRefExoticComponent<Omit<InputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
1
+ declare const Input: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
6
2
  export { Input };
@@ -1,34 +1,28 @@
1
- import { jsxs as n, jsx as r } from "react/jsx-runtime";
1
+ import { jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as o } from "react";
3
- import { cn as s, readOnlyState as m, disabledState as u, invalidState as d, focusState as p, filledState as f, hoverState as c, formElementBase as S } from "../../../../lib/utils.js";
4
- import { HelperText as v } from "../helper-text/helper-text.js";
5
- const x = ({ errorMessage: t }) => t ? /* @__PURE__ */ r(v, { className: "pt-1", isError: !0, children: t }) : null, N = o(
6
- ({ className: t, type: a, errorMessage: e, ...l }, i) => /* @__PURE__ */ n("div", { className: "w-full", children: [
7
- /* @__PURE__ */ r(
8
- "input",
9
- {
10
- ref: i,
11
- type: a,
12
- "data-slot": "input",
13
- "aria-invalid": e ? !0 : void 0,
14
- className: s(
15
- "w-full",
16
- S,
17
- c,
18
- f,
19
- p,
20
- d,
21
- u,
22
- m,
23
- t
24
- ),
25
- ...l
26
- }
27
- ),
28
- /* @__PURE__ */ r(x, { errorMessage: e })
29
- ] })
3
+ import { cn as l, readOnlyState as i, disabledState as m, invalidState as n, focusState as f, filledState as p, hoverState as s, formElementBase as d } from "../../../../lib/utils.js";
4
+ const u = o(
5
+ ({ className: t, ...e }, a) => /* @__PURE__ */ r(
6
+ "input",
7
+ {
8
+ ref: a,
9
+ "data-slot": "input",
10
+ className: l(
11
+ "w-full",
12
+ d,
13
+ s,
14
+ p,
15
+ f,
16
+ n,
17
+ m,
18
+ i,
19
+ t
20
+ ),
21
+ ...e
22
+ }
23
+ )
30
24
  );
31
- N.displayName = "Input";
25
+ u.displayName = "Input";
32
26
  export {
33
- N as Input
27
+ u as Input
34
28
  };
@@ -4,8 +4,8 @@ declare const InputGroupAddon: import('react').ForwardRefExoticComponent<Omit<im
4
4
  align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
6
6
  declare const InputGroupButton: import('react').ForwardRefExoticComponent<Omit<Omit<Omit<import('@base-ui/react').ButtonProps & VariantProps<(props?: ({
7
- variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
8
- size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
7
+ variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | null | undefined;
8
+ size?: "icon" | "default" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLElement>, "size"> & VariantProps<(props?: ({
10
10
  size?: "sm" | "icon-sm" | "xs" | "icon-xs" | null | undefined;
11
11
  } & import('class-variance-authority/types').ClassProp) | undefined) => string>, "ref"> & import('react').RefAttributes<HTMLElement>>;