@definable/ui 0.1.22 → 0.1.25

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.
@@ -3,7 +3,7 @@ export declare const Icons: {
3
3
  anthropic: (props: import('./providers/types').IconProps) => import("react/jsx-runtime").JSX.Element;
4
4
  openai: (props: import('./providers/types').IconProps) => import("react/jsx-runtime").JSX.Element;
5
5
  deepseek: (props: import('./providers/types').IconProps) => import("react/jsx-runtime").JSX.Element;
6
- grok: (props: import('./providers/types').IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ xai: (props: import('./providers/types').IconProps) => import("react/jsx-runtime").JSX.Element;
7
7
  gemini: (props: import('./providers/types').IconProps) => import("react/jsx-runtime").JSX.Element;
8
8
  moonshot: (props: import('./providers/types').IconProps) => import("react/jsx-runtime").JSX.Element;
9
9
  };
@@ -2,6 +2,6 @@ export * from './claude';
2
2
  export * from './anthropic';
3
3
  export * from './openai';
4
4
  export * from './deepseek';
5
- export * from './grok';
5
+ export * from './xai';
6
6
  export * from './gemini';
7
7
  export * from './moonshot';
@@ -0,0 +1,2 @@
1
+ import { IconProps } from './types';
2
+ export declare const XAIIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
package/dist/index.js CHANGED
@@ -1,65 +1,65 @@
1
1
  import { Alert as M, AlertDescription as S, AlertTitle as y } from "./components/alert.js";
2
2
  import { AlertDialog as L } from "./components/alert-dialog.js";
3
- import { Avatar as D, AvatarFallback as A, AvatarImage as N } from "./components/avatar.js";
4
- import { Badge as k, badgeVariants as G } from "./components/badge.js";
3
+ import { Avatar as A, AvatarFallback as D, AvatarImage as N } from "./components/avatar.js";
4
+ import { Badge as k, badgeVariants as B } from "./components/badge.js";
5
5
  import { Button as O } from "./components/button.js";
6
6
  import { Calendar as j } from "./components/calendar.js";
7
- import { Card as H, CardContent as P, CardDescription as U, CardFooter as V, CardHeader as E, CardTitle as _ } from "./components/card.js";
8
- import { Carousel as J } from "./components/carousel.js";
9
- import { Checkbox as Q } from "./components/checkbox.js";
10
- import { Collapse as X } from "./components/collapse.js";
11
- import { Command as Z, CommandDialog as $, CommandEmpty as e0, CommandGroup as o0, CommandInput as l0, CommandItem as r0, CommandList as t0, CommandSeparator as n0 } from "./components/command.js";
7
+ import { Card as H, CardContent as P, CardDescription as U, CardFooter as V, CardHeader as E, CardTitle as X } from "./components/card.js";
8
+ import { Carousel as q } from "./components/carousel.js";
9
+ import { Checkbox as K } from "./components/checkbox.js";
10
+ import { Collapse as W } from "./components/collapse.js";
11
+ import { Command as Z, CommandDialog as $, CommandEmpty as e0, CommandGroup as o0, CommandInput as l0, CommandItem as t0, CommandList as r0, CommandSeparator as n0 } from "./components/command.js";
12
12
  import { CommandMenu as i0, CommandMenuDemo as c0 } from "./components/command-menu.js";
13
13
  import { ConfirmationModal as d0 } from "./components/confirmation-modal.js";
14
14
  import { ContextMenu as m0, ContextMenuCheckboxItem as x0, ContextMenuGroup as f0, ContextMenuItem as h0, ContextMenuLabel as g0, ContextMenuRadioGroup as u0, ContextMenuRadioItem as C0, ContextMenuSeparator as w0, ContextMenuSub as b0, ContextMenuSubContent as v0, ContextMenuSubTrigger as M0 } from "./components/context-menu.js";
15
- import { Dialog as y0, DialogClose as z0, DialogContent as L0, DialogDescription as I0, DialogFooter as D0, DialogHeader as A0, DialogOverlay as N0, DialogPortal as T0, DialogTitle as k0, DialogTrigger as G0 } from "./components/dialog.js";
15
+ import { Dialog as y0, DialogClose as z0, DialogContent as L0, DialogDescription as I0, DialogFooter as A0, DialogHeader as D0, DialogOverlay as N0, DialogPortal as T0, DialogTitle as k0, DialogTrigger as B0 } from "./components/dialog.js";
16
16
  import { DropdownMenu as O0, DropdownMenuContent as R0, DropdownMenuGroup as j0, DropdownMenuItem as F0, DropdownMenuSeparator as H0, DropdownMenuTrigger as P0 } from "./components/dropdown-menu.js";
17
17
  import { Dropzone as V0 } from "./components/dropzone.js";
18
- import { ImageCropper as _0 } from "./components/image-cropper.js";
19
- import { ImageCropperModal as J0 } from "./components/image-cropper-modal.js";
20
- import { Input as Q0 } from "./components/input.js";
21
- import { Label as X0 } from "./components/label.js";
18
+ import { ImageCropper as X0 } from "./components/image-cropper.js";
19
+ import { ImageCropperModal as q0 } from "./components/image-cropper-modal.js";
20
+ import { Input as K0 } from "./components/input.js";
21
+ import { Label as W0 } from "./components/label.js";
22
22
  import { Loader as Z0 } from "./components/loader.js";
23
23
  import { LoadingPlaceholder as e1 } from "./components/loading-placeholder.js";
24
24
  import { Mention as l1 } from "./components/mention.js";
25
- import { Modal as t1 } from "./components/modal.js";
25
+ import { Modal as r1 } from "./components/modal.js";
26
26
  import { NotificationContainer as a1 } from "./components/notification.js";
27
27
  import { Popover as c1, PopoverContent as s1, PopoverTrigger as d1 } from "./components/popover.js";
28
28
  import { Progress as m1 } from "./components/progress.js";
29
29
  import { RadioGroup as f1, RadioGroupItem as h1 } from "./components/radio-group.js";
30
30
  import { ScrollArea as u1, ScrollBar as C1 } from "./components/scroll-area.js";
31
31
  import { SearchableSelect as b1, Select as v1, SelectContent as M1, SelectGroup as S1, SelectItem as y1, SelectLabel as z1, SelectTrigger as L1, SelectValue as I1 } from "./components/select.js";
32
- import { SelectionBar as A1 } from "./components/selection-bar.js";
32
+ import { SelectionBar as D1 } from "./components/selection-bar.js";
33
33
  import { Separator as T1 } from "./components/separator.js";
34
- import { Sheet as G1 } from "./components/sheet.js";
34
+ import { Sheet as B1 } from "./components/sheet.js";
35
35
  import { Skeleton as O1 } from "./components/skeleton.js";
36
36
  import { Slider as j1 } from "./components/slider.js";
37
37
  import { a as H1, S as P1, b as U1 } from "./stepper-modal-JXpOXOV2.js";
38
38
  import { Switch as E1 } from "./components/switch.js";
39
- import { Table as q1 } from "./components/table.js";
40
- import { TableEmpty as K1 } from "./components/table-empty.js";
41
- import { TableMobile as W1 } from "./components/table-mobile.js";
39
+ import { Table as _1 } from "./components/table.js";
40
+ import { TableEmpty as J1 } from "./components/table-empty.js";
41
+ import { TableMobile as Q1 } from "./components/table-mobile.js";
42
42
  import { Tabs as Y1, TabsContent as Z1, TabsList as $1, TabsTrigger as e2 } from "./components/tabs.js";
43
- import { ANSI as l2, LOG_COLORS as r2, colorize as t2 } from "./components/terminal.js";
43
+ import { ANSI as l2, LOG_COLORS as t2, colorize as r2 } from "./components/terminal.js";
44
44
  import { Textarea as a2 } from "./components/textarea.js";
45
45
  import { Tooltip as c2 } from "./components/tooltip.js";
46
46
  import { ToastContainer as d2, toast as p2, useToast as m2 } from "./components/use-toast.js";
47
- import { jsx as o, jsxs as t } from "react/jsx-runtime";
47
+ import { jsx as o, jsxs as r } from "react/jsx-runtime";
48
48
  import { cn as n } from "./lib/utils.js";
49
49
  import { BotIcon as a } from "lucide-react";
50
50
  const i = (l) => {
51
- const { size: e = 48, className: r = "" } = l;
51
+ const { size: e = 48, className: t = "" } = l;
52
52
  return /* @__PURE__ */ o(
53
53
  "div",
54
54
  {
55
55
  "aria-label": "Claude",
56
- className: n("flex flex-col items-center justify-center flex-none text-white rounded-full", r),
56
+ className: n("flex flex-col items-center justify-center flex-none text-white rounded-full", t),
57
57
  style: {
58
58
  background: "rgb(217, 119, 87)",
59
59
  height: e,
60
60
  width: e
61
61
  },
62
- children: /* @__PURE__ */ t(
62
+ children: /* @__PURE__ */ r(
63
63
  "svg",
64
64
  {
65
65
  fill: "currentColor",
@@ -81,19 +81,19 @@ const i = (l) => {
81
81
  }
82
82
  );
83
83
  }, c = (l) => {
84
- const { size: e = 48, className: r = "" } = l;
84
+ const { size: e = 48, className: t = "" } = l;
85
85
  return /* @__PURE__ */ o(
86
86
  "div",
87
87
  {
88
88
  "aria-label": "Anthropic",
89
- className: n("flex flex-col items-center justify-center flex-none rounded-full", r),
89
+ className: n("flex flex-col items-center justify-center flex-none rounded-full", t),
90
90
  style: {
91
91
  background: "rgb(241, 240, 232)",
92
92
  color: "rgb(20, 20, 19)",
93
93
  height: e,
94
94
  width: e
95
95
  },
96
- children: /* @__PURE__ */ t(
96
+ children: /* @__PURE__ */ r(
97
97
  "svg",
98
98
  {
99
99
  fill: "currentColor",
@@ -115,19 +115,19 @@ const i = (l) => {
115
115
  }
116
116
  );
117
117
  }, s = (l) => {
118
- const { size: e = 48, className: r = "" } = l;
118
+ const { size: e = 48, className: t = "" } = l;
119
119
  return /* @__PURE__ */ o(
120
120
  "div",
121
121
  {
122
122
  "aria-label": "OpenAI",
123
- className: n("flex flex-col items-center justify-center flex-none rounded-full", r),
123
+ className: n("flex flex-col items-center justify-center flex-none rounded-full", t),
124
124
  style: {
125
125
  background: "rgb(25, 195, 125)",
126
126
  color: "rgb(255, 255, 255)",
127
127
  height: e,
128
128
  width: e
129
129
  },
130
- children: /* @__PURE__ */ t(
130
+ children: /* @__PURE__ */ r(
131
131
  "svg",
132
132
  {
133
133
  fill: "currentColor",
@@ -149,19 +149,19 @@ const i = (l) => {
149
149
  }
150
150
  );
151
151
  }, d = (l) => {
152
- const { size: e = 48, className: r = "" } = l;
152
+ const { size: e = 48, className: t = "" } = l;
153
153
  return /* @__PURE__ */ o(
154
154
  "div",
155
155
  {
156
156
  "aria-label": "DeepSeek",
157
- className: n("flex flex-col items-center justify-center flex-none rounded-full h-16 w-16", r),
157
+ className: n("flex flex-col items-center justify-center flex-none rounded-full h-16 w-16", t),
158
158
  style: {
159
159
  background: "rgb(77, 107, 254)",
160
160
  color: "rgb(255, 255, 255)",
161
161
  height: e,
162
162
  width: e
163
163
  },
164
- children: /* @__PURE__ */ t(
164
+ children: /* @__PURE__ */ r(
165
165
  "svg",
166
166
  {
167
167
  fill: "currentColor",
@@ -181,12 +181,12 @@ const i = (l) => {
181
181
  }
182
182
  );
183
183
  }, p = (l) => {
184
- const { size: e = 48, className: r = "" } = l;
184
+ const { size: e = 48, className: t = "" } = l;
185
185
  return /* @__PURE__ */ o(
186
186
  "div",
187
187
  {
188
- "aria-label": "Grok",
189
- className: n("flex flex-col items-center justify-center flex-none rounded-full h-16 w-16", r),
188
+ "aria-label": "XAI",
189
+ className: n("flex flex-col items-center justify-center flex-none rounded-full h-16 w-16", t),
190
190
  style: {
191
191
  background: "rgb(0, 0, 0)",
192
192
  color: "rgb(255, 255, 255)",
@@ -194,7 +194,7 @@ const i = (l) => {
194
194
  width: e,
195
195
  padding: "5px"
196
196
  },
197
- children: /* @__PURE__ */ t(
197
+ children: /* @__PURE__ */ r(
198
198
  "svg",
199
199
  {
200
200
  fill: "currentColor",
@@ -214,12 +214,12 @@ const i = (l) => {
214
214
  }
215
215
  );
216
216
  }, m = (l) => {
217
- const { size: e = 48, className: r = "" } = l;
217
+ const { size: e = 48, className: t = "" } = l;
218
218
  return /* @__PURE__ */ o(
219
219
  "div",
220
220
  {
221
221
  "aria-label": "Gemini",
222
- className: n("flex items-center justify-center rounded-full", r),
222
+ className: n("flex items-center justify-center rounded-full", t),
223
223
  style: {
224
224
  background: "rgb(255, 255, 255)",
225
225
  height: e,
@@ -227,7 +227,7 @@ const i = (l) => {
227
227
  boxShadow: "rgba(0, 0, 0, 0.05) 0px 0px 0px 1px inset",
228
228
  color: "rgb(255, 255, 255)"
229
229
  },
230
- children: /* @__PURE__ */ t(
230
+ children: /* @__PURE__ */ r(
231
231
  "svg",
232
232
  {
233
233
  xmlns: "http://www.w3.org/2000/svg",
@@ -265,8 +265,8 @@ const i = (l) => {
265
265
  fill: "url(#lobe-icons-gemini-fill-2)"
266
266
  }
267
267
  ),
268
- /* @__PURE__ */ t("defs", { children: [
269
- /* @__PURE__ */ t(
268
+ /* @__PURE__ */ r("defs", { children: [
269
+ /* @__PURE__ */ r(
270
270
  "linearGradient",
271
271
  {
272
272
  id: "lobe-icons-gemini-fill-0",
@@ -281,7 +281,7 @@ const i = (l) => {
281
281
  ]
282
282
  }
283
283
  ),
284
- /* @__PURE__ */ t(
284
+ /* @__PURE__ */ r(
285
285
  "linearGradient",
286
286
  {
287
287
  id: "lobe-icons-gemini-fill-1",
@@ -296,7 +296,7 @@ const i = (l) => {
296
296
  ]
297
297
  }
298
298
  ),
299
- /* @__PURE__ */ t(
299
+ /* @__PURE__ */ r(
300
300
  "linearGradient",
301
301
  {
302
302
  id: "lobe-icons-gemini-fill-2",
@@ -318,19 +318,19 @@ const i = (l) => {
318
318
  }
319
319
  );
320
320
  }, x = (l) => {
321
- const { size: e = 48, className: r = "" } = l;
321
+ const { size: e = 48, className: t = "" } = l;
322
322
  return /* @__PURE__ */ o(
323
323
  "div",
324
324
  {
325
325
  "aria-label": "Moonshot",
326
- className: n("flex flex-col items-center justify-center flex-none rounded-full h-16 w-16", r),
326
+ className: n("flex flex-col items-center justify-center flex-none rounded-full h-16 w-16", t),
327
327
  style: {
328
328
  background: "rgb(0, 0, 0)",
329
329
  color: "rgb(255, 255, 255)",
330
330
  height: e,
331
331
  width: e
332
332
  },
333
- children: /* @__PURE__ */ t(
333
+ children: /* @__PURE__ */ r(
334
334
  "svg",
335
335
  {
336
336
  fill: "currentColor",
@@ -354,12 +354,12 @@ const i = (l) => {
354
354
  anthropic: c,
355
355
  openai: s,
356
356
  deepseek: d,
357
- grok: p,
357
+ xai: p,
358
358
  gemini: m,
359
359
  moonshot: x
360
360
  }, h = (l, e = {}) => {
361
- const r = f[l];
362
- return r ? /* @__PURE__ */ o(r, { ...e }) : /* @__PURE__ */ o(a, { ...e });
361
+ const t = f[l];
362
+ return t ? /* @__PURE__ */ o(t, { ...e }) : /* @__PURE__ */ o(a, { ...e });
363
363
  }, w = (l, e = {}) => l.type === "core" ? h(l.provider, e) : /* @__PURE__ */ o("img", { src: l.image, alt: l.name, className: n("h-6 w-6", e.className), ...e });
364
364
  export {
365
365
  l2 as ANSI,
@@ -367,8 +367,8 @@ export {
367
367
  S as AlertDescription,
368
368
  L as AlertDialog,
369
369
  y as AlertTitle,
370
- D as Avatar,
371
- A as AvatarFallback,
370
+ A as Avatar,
371
+ D as AvatarFallback,
372
372
  N as AvatarImage,
373
373
  k as Badge,
374
374
  O as Button,
@@ -378,17 +378,17 @@ export {
378
378
  U as CardDescription,
379
379
  V as CardFooter,
380
380
  E as CardHeader,
381
- _ as CardTitle,
382
- J as Carousel,
383
- Q as Checkbox,
384
- X as Collapse,
381
+ X as CardTitle,
382
+ q as Carousel,
383
+ K as Checkbox,
384
+ W as Collapse,
385
385
  Z as Command,
386
386
  $ as CommandDialog,
387
387
  e0 as CommandEmpty,
388
388
  o0 as CommandGroup,
389
389
  l0 as CommandInput,
390
- r0 as CommandItem,
391
- t0 as CommandList,
390
+ t0 as CommandItem,
391
+ r0 as CommandList,
392
392
  i0 as CommandMenu,
393
393
  c0 as CommandMenuDemo,
394
394
  n0 as CommandSeparator,
@@ -408,12 +408,12 @@ export {
408
408
  z0 as DialogClose,
409
409
  L0 as DialogContent,
410
410
  I0 as DialogDescription,
411
- D0 as DialogFooter,
412
- A0 as DialogHeader,
411
+ A0 as DialogFooter,
412
+ D0 as DialogHeader,
413
413
  N0 as DialogOverlay,
414
414
  T0 as DialogPortal,
415
415
  k0 as DialogTitle,
416
- G0 as DialogTrigger,
416
+ B0 as DialogTrigger,
417
417
  O0 as DropdownMenu,
418
418
  R0 as DropdownMenuContent,
419
419
  j0 as DropdownMenuGroup,
@@ -422,15 +422,15 @@ export {
422
422
  P0 as DropdownMenuTrigger,
423
423
  V0 as Dropzone,
424
424
  f as Icons,
425
- _0 as ImageCropper,
426
- J0 as ImageCropperModal,
427
- Q0 as Input,
428
- r2 as LOG_COLORS,
429
- X0 as Label,
425
+ X0 as ImageCropper,
426
+ q0 as ImageCropperModal,
427
+ K0 as Input,
428
+ t2 as LOG_COLORS,
429
+ W0 as Label,
430
430
  Z0 as Loader,
431
431
  e1 as LoadingPlaceholder,
432
432
  l1 as Mention,
433
- t1 as Modal,
433
+ r1 as Modal,
434
434
  a1 as NotificationContainer,
435
435
  c1 as Popover,
436
436
  s1 as PopoverContent,
@@ -448,18 +448,18 @@ export {
448
448
  z1 as SelectLabel,
449
449
  L1 as SelectTrigger,
450
450
  I1 as SelectValue,
451
- A1 as SelectionBar,
451
+ D1 as SelectionBar,
452
452
  T1 as Separator,
453
- G1 as Sheet,
453
+ B1 as Sheet,
454
454
  O1 as Skeleton,
455
455
  j1 as Slider,
456
456
  H1 as StepLayout,
457
457
  P1 as Stepper,
458
458
  U1 as StepperModal,
459
459
  E1 as Switch,
460
- q1 as Table,
461
- K1 as TableEmpty,
462
- W1 as TableMobile,
460
+ _1 as Table,
461
+ J1 as TableEmpty,
462
+ Q1 as TableMobile,
463
463
  Y1 as Tabs,
464
464
  Z1 as TabsContent,
465
465
  $1 as TabsList,
@@ -467,9 +467,9 @@ export {
467
467
  a2 as Textarea,
468
468
  d2 as ToastContainer,
469
469
  c2 as Tooltip,
470
- G as badgeVariants,
470
+ B as badgeVariants,
471
471
  n as cn,
472
- t2 as colorize,
472
+ r2 as colorize,
473
473
  w as getAssistantIcon,
474
474
  h as getLLMIcon,
475
475
  p2 as toast,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@definable/ui",
3
3
  "type": "module",
4
- "version": "0.1.22",
4
+ "version": "0.1.25",
5
5
  "private": false,
6
6
  "description": "Definable UI Component Library",
7
7
  "main": "dist/index.js",
@@ -406,4 +406,4 @@
406
406
  "vite": "^5.4.19",
407
407
  "vite-plugin-dts": "^4.5.4"
408
408
  }
409
- }
409
+ }
@@ -1,2 +0,0 @@
1
- import { IconProps } from './types';
2
- export declare const GrokIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;