@cognite/aura 0.1.5 → 0.1.6

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 (65) hide show
  1. package/dist/colors.css +824 -0
  2. package/dist/components/index.d.ts +9 -2
  3. package/dist/components/index.js +279 -249
  4. package/dist/components/ui/core/accordion/accordion.d.ts +24 -0
  5. package/dist/components/ui/core/accordion/accordion.js +113 -0
  6. package/dist/components/ui/core/accordion/accordion.metadata.d.ts +2 -0
  7. package/dist/components/ui/core/accordion/accordion.metadata.js +9 -0
  8. package/dist/components/ui/core/alert/alert.js +65 -65
  9. package/dist/components/ui/core/avatar/avatar.js +29 -32
  10. package/dist/components/ui/core/badge/badge.d.ts +1 -1
  11. package/dist/components/ui/core/badge/badge.js +44 -52
  12. package/dist/components/ui/core/banner/banner.d.ts +40 -0
  13. package/dist/components/ui/core/banner/banner.js +218 -0
  14. package/dist/components/ui/core/banner/banner.metadata.d.ts +2 -0
  15. package/dist/components/ui/core/banner/banner.metadata.js +9 -0
  16. package/dist/components/ui/core/button/button.d.ts +2 -2
  17. package/dist/components/ui/core/button/button.js +19 -20
  18. package/dist/components/ui/core/button-group/button-group.js +10 -10
  19. package/dist/components/ui/core/card/card.js +1 -1
  20. package/dist/components/ui/core/code-block/code-block.d.ts +10 -3
  21. package/dist/components/ui/core/code-block/code-block.js +147 -94
  22. package/dist/components/ui/core/code-block/code-block.metadata.js +1 -1
  23. package/dist/components/ui/core/collapsible/collapsible.js +30 -24
  24. package/dist/components/ui/core/command/command.d.ts +2 -2
  25. package/dist/components/ui/core/command/command.js +30 -30
  26. package/dist/components/ui/core/dialog/dialog.js +8 -8
  27. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +35 -35
  28. package/dist/components/ui/core/helper-text/helper-text.js +8 -8
  29. package/dist/components/ui/core/hover-card/hover-card.js +5 -5
  30. package/dist/components/ui/core/inline-citation/inline-citation.js +19 -16
  31. package/dist/components/ui/core/input/input.d.ts +1 -5
  32. package/dist/components/ui/core/input/input.js +24 -30
  33. package/dist/components/ui/core/input-group/input-group.d.ts +2 -2
  34. package/dist/components/ui/core/input-group/input-group.js +104 -74
  35. package/dist/components/ui/core/label/label.d.ts +3 -1
  36. package/dist/components/ui/core/label/label.js +39 -16
  37. package/dist/components/ui/core/label/label.metadata.js +2 -2
  38. package/dist/components/ui/core/message/message-response-default-streamdown-controls.d.ts +11 -0
  39. package/dist/components/ui/core/message/message-response-default-streamdown-controls.js +13 -0
  40. package/dist/components/ui/core/message/message.d.ts +1 -1
  41. package/dist/components/ui/core/message/message.js +62 -44
  42. package/dist/components/ui/core/popover/popover.d.ts +10 -1
  43. package/dist/components/ui/core/popover/popover.js +137 -34
  44. package/dist/components/ui/core/popover/popover.metadata.js +9 -0
  45. package/dist/components/ui/core/progress/progress.d.ts +10 -0
  46. package/dist/components/ui/core/progress/progress.js +61 -0
  47. package/dist/components/ui/core/progress/progress.metadata.d.ts +2 -0
  48. package/dist/components/ui/core/progress/progress.metadata.js +9 -0
  49. package/dist/components/ui/core/prompt-input/prompt-input.d.ts +2 -2
  50. package/dist/components/ui/core/prompt-input/prompt-input.js +100 -100
  51. package/dist/components/ui/core/select/select.d.ts +3 -3
  52. package/dist/components/ui/core/select/select.js +69 -73
  53. package/dist/components/ui/core/skeleton/skeleton.js +6 -6
  54. package/dist/components/ui/core/sources/sources.js +8 -1
  55. package/dist/components/ui/core/textarea/textarea.d.ts +1 -8
  56. package/dist/components/ui/core/textarea/textarea.js +21 -45
  57. package/dist/components/ui/core/tool/tool.js +38 -34
  58. package/dist/components/ui/core/tooltip/tooltip.js +10 -10
  59. package/dist/index.d.ts +1 -1
  60. package/dist/index.js +276 -249
  61. package/dist/lib/utils.d.ts +6 -6
  62. package/dist/lib/utils.js +26 -26
  63. package/dist/styles.css +1 -1
  64. package/dist/styles.source.css +3 -812
  65. package/package.json +21 -7
@@ -1,15 +1,15 @@
1
1
  import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
- import { forwardRef as i } from "react";
2
+ import { forwardRef as u } from "react";
3
3
  import { Menu as r } from "@base-ui/react/menu";
4
4
  import { IconCheck as c, IconChevronRight as f } from "@tabler/icons-react";
5
- import { usePortalContainer as v } from "../../../../lib/portal-container-context.js";
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 }) {
7
+ function v({ ...e }) {
8
8
  return /* @__PURE__ */ t(r.Root, { "data-slot": "dropdown-menu", ...e });
9
9
  }
10
- w.displayName = "DropdownMenu";
10
+ v.displayName = "DropdownMenu";
11
11
  function l({ ...e }) {
12
- const o = v();
12
+ const o = b();
13
13
  return /* @__PURE__ */ t(
14
14
  r.Portal,
15
15
  {
@@ -20,23 +20,23 @@ function l({ ...e }) {
20
20
  );
21
21
  }
22
22
  l.displayName = "DropdownMenuPortal";
23
- function b({
23
+ function w({
24
24
  children: e,
25
25
  ...o
26
26
  }) {
27
27
  return /* @__PURE__ */ t(r.Trigger, { "data-slot": "dropdown-menu-trigger", ...o, children: e });
28
28
  }
29
- b.displayName = "DropdownMenuTrigger";
29
+ w.displayName = "DropdownMenuTrigger";
30
30
  function m({
31
31
  align: e = "start",
32
32
  alignOffset: o = 0,
33
33
  side: n = "bottom",
34
34
  sideOffset: a = 4,
35
35
  className: s,
36
- container: u,
36
+ container: i,
37
37
  ...g
38
38
  }) {
39
- return /* @__PURE__ */ t(l, { container: u, children: /* @__PURE__ */ t(
39
+ return /* @__PURE__ */ t(l, { container: i, children: /* @__PURE__ */ t(
40
40
  r.Positioner,
41
41
  {
42
42
  className: "isolate z-50 outline-none",
@@ -49,7 +49,7 @@ function m({
49
49
  {
50
50
  "data-slot": "dropdown-menu-content",
51
51
  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",
52
+ "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
53
  s
54
54
  ),
55
55
  ...g
@@ -63,15 +63,15 @@ function x({ ...e }) {
63
63
  return /* @__PURE__ */ t(r.Group, { "data-slot": "dropdown-menu-group", ...e });
64
64
  }
65
65
  x.displayName = "DropdownMenuGroup";
66
- const h = i(({ className: e, inset: o, variant: n = "default", children: a, ...s }, u) => /* @__PURE__ */ t(
66
+ const h = u(({ className: e, inset: o, variant: n = "default", children: a, ...s }, i) => /* @__PURE__ */ t(
67
67
  r.Item,
68
68
  {
69
- ref: u,
69
+ ref: i,
70
70
  "data-slot": "dropdown-menu-item",
71
71
  "data-inset": o,
72
72
  "data-variant": n,
73
73
  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",
74
+ "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
75
  e
76
76
  ),
77
77
  ...s,
@@ -79,19 +79,19 @@ const h = i(({ className: e, inset: o, variant: n = "default", children: a, ...s
79
79
  }
80
80
  ));
81
81
  h.displayName = "DropdownMenuItem";
82
- const M = i(({ className: e, children: o, checked: n, ...a }, s) => /* @__PURE__ */ p(
82
+ const M = u(({ className: e, children: o, checked: n, ...a }, s) => /* @__PURE__ */ p(
83
83
  r.CheckboxItem,
84
84
  {
85
85
  ref: s,
86
86
  "data-slot": "dropdown-menu-checkbox-item",
87
87
  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",
88
+ "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
89
  e
90
90
  ),
91
91
  checked: n,
92
92
  ...a,
93
93
  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" }) }) }),
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-foreground" }) }) }),
95
95
  o
96
96
  ]
97
97
  }
@@ -107,38 +107,38 @@ function D({ ...e }) {
107
107
  );
108
108
  }
109
109
  D.displayName = "DropdownMenuRadioGroup";
110
- const N = i(({ className: e, children: o, ...n }, a) => /* @__PURE__ */ p(
110
+ const N = u(({ className: e, children: o, ...n }, a) => /* @__PURE__ */ p(
111
111
  r.RadioItem,
112
112
  {
113
113
  ref: a,
114
114
  "data-slot": "dropdown-menu-radio-item",
115
115
  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",
116
+ "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
117
  e
118
118
  ),
119
119
  ...n,
120
120
  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" }) }) }),
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-foreground" }) }) }),
122
122
  o
123
123
  ]
124
124
  }
125
125
  ));
126
126
  N.displayName = "DropdownMenuRadioItem";
127
- const y = i(({ className: e, inset: o, ...n }, a) => /* @__PURE__ */ t(
127
+ const y = u(({ className: e, inset: o, ...n }, a) => /* @__PURE__ */ t(
128
128
  r.GroupLabel,
129
129
  {
130
130
  ref: a,
131
131
  "data-slot": "dropdown-menu-label",
132
132
  "data-inset": o,
133
133
  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",
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-foreground dark:text-foreground",
135
135
  e
136
136
  ),
137
137
  ...n
138
138
  }
139
139
  ));
140
140
  y.displayName = "DropdownMenuLabel";
141
- const z = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
141
+ const k = u(({ className: e, ...o }, n) => /* @__PURE__ */ t(
142
142
  "div",
143
143
  {
144
144
  ref: n,
@@ -150,8 +150,8 @@ const z = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
150
150
  ...o
151
151
  }
152
152
  ));
153
- z.displayName = "DropdownMenuHeader";
154
- const k = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
153
+ k.displayName = "DropdownMenuHeader";
154
+ const z = u(({ className: e, ...o }, n) => /* @__PURE__ */ t(
155
155
  r.Separator,
156
156
  {
157
157
  ref: n,
@@ -160,8 +160,8 @@ const k = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
160
160
  ...o
161
161
  }
162
162
  ));
163
- k.displayName = "DropdownMenuSeparator";
164
- const I = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
163
+ z.displayName = "DropdownMenuSeparator";
164
+ const I = u(({ className: e, ...o }, n) => /* @__PURE__ */ t(
165
165
  "span",
166
166
  {
167
167
  ref: n,
@@ -178,14 +178,14 @@ function S({ ...e }) {
178
178
  return /* @__PURE__ */ t(r.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...e });
179
179
  }
180
180
  S.displayName = "DropdownMenuSub";
181
- const _ = i(({ className: e, inset: o, children: n, ...a }, s) => /* @__PURE__ */ p(
181
+ const _ = u(({ className: e, inset: o, children: n, ...a }, s) => /* @__PURE__ */ p(
182
182
  r.SubmenuTrigger,
183
183
  {
184
184
  ref: s,
185
185
  "data-slot": "dropdown-menu-sub-trigger",
186
186
  "data-inset": o,
187
187
  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",
188
+ "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
189
  e
190
190
  ),
191
191
  ...a,
@@ -202,7 +202,7 @@ function C({
202
202
  side: n = "right",
203
203
  sideOffset: a = 0,
204
204
  className: s,
205
- ...u
205
+ ...i
206
206
  }) {
207
207
  return /* @__PURE__ */ t(
208
208
  m,
@@ -213,12 +213,12 @@ function C({
213
213
  alignOffset: o,
214
214
  side: n,
215
215
  sideOffset: a,
216
- ...u
216
+ ...i
217
217
  }
218
218
  );
219
219
  }
220
220
  C.displayName = "DropdownMenuSubContent";
221
- const R = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
221
+ const R = u(({ className: e, ...o }, n) => /* @__PURE__ */ t(
222
222
  "div",
223
223
  {
224
224
  ref: n,
@@ -232,21 +232,21 @@ const R = i(({ className: e, ...o }, n) => /* @__PURE__ */ t(
232
232
  ));
233
233
  R.displayName = "DropdownMenuSectionLabel";
234
234
  export {
235
- w as DropdownMenu,
235
+ v as DropdownMenu,
236
236
  M as DropdownMenuCheckboxItem,
237
237
  m as DropdownMenuContent,
238
238
  x as DropdownMenuGroup,
239
- z as DropdownMenuHeader,
239
+ k as DropdownMenuHeader,
240
240
  h as DropdownMenuItem,
241
241
  y as DropdownMenuLabel,
242
242
  l as DropdownMenuPortal,
243
243
  D as DropdownMenuRadioGroup,
244
244
  N as DropdownMenuRadioItem,
245
245
  R as DropdownMenuSectionLabel,
246
- k as DropdownMenuSeparator,
246
+ z as DropdownMenuSeparator,
247
247
  I as DropdownMenuShortcut,
248
248
  S as DropdownMenuSub,
249
249
  C as DropdownMenuSubContent,
250
250
  _ as DropdownMenuSubTrigger,
251
- b as DropdownMenuTrigger
251
+ w as DropdownMenuTrigger
252
252
  };
@@ -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>>;