@crystallize/design-system 0.0.1 → 0.2.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 (43) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/index.css +242 -5
  3. package/dist/index.d.ts +113 -23
  4. package/dist/index.js +498 -168
  5. package/dist/index.mjs +485 -166
  6. package/package.json +15 -12
  7. package/src/action-menu/action-item.tsx +2 -2
  8. package/src/action-menu/action-menu.tsx +4 -7
  9. package/src/checkbox/checkbox.stories.tsx +62 -0
  10. package/src/checkbox/checkbox.tsx +36 -0
  11. package/src/checkbox/index.ts +1 -0
  12. package/src/dialog/dialog.tsx +6 -6
  13. package/src/dropdown-menu/DropdownMenu.stories.tsx +1 -2
  14. package/src/dropdown-menu/dropdown-menu-item.tsx +3 -3
  15. package/src/dropdown-menu/dropdown-menu-label.tsx +3 -3
  16. package/src/dropdown-menu/dropdown-menu-root.tsx +1 -1
  17. package/src/icons/error.tsx +22 -29
  18. package/src/icons/info.tsx +25 -32
  19. package/src/icons/warning.tsx +34 -41
  20. package/src/index.ts +13 -1
  21. package/src/inline-radio/index.ts +1 -0
  22. package/src/inline-radio/inline-radio.stories.tsx +62 -0
  23. package/src/inline-radio/inline-radio.tsx +36 -0
  24. package/src/input/Input.stories.tsx +19 -0
  25. package/src/input/index.ts +1 -0
  26. package/src/input/input.tsx +33 -0
  27. package/src/label/index.ts +1 -0
  28. package/src/label/label.stories.tsx +19 -0
  29. package/src/label/label.tsx +11 -0
  30. package/src/progress/Progress.stories.tsx +26 -0
  31. package/src/progress/index.ts +1 -0
  32. package/src/progress/progress.tsx +16 -0
  33. package/src/radio/index.ts +1 -0
  34. package/src/radio/radio.stories.tsx +142 -0
  35. package/src/radio/radio.tsx +26 -0
  36. package/src/select/index.ts +1 -0
  37. package/src/select/select-item.tsx +27 -0
  38. package/src/select/select-root.tsx +41 -0
  39. package/src/select/select.stories.tsx +62 -0
  40. package/src/select/select.ts +7 -0
  41. package/src/text-field/TextField.stories.tsx +20 -0
  42. package/src/text-field/index.ts +1 -0
  43. package/src/text-field/text-field.tsx +60 -0
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/action-menu/action-menu.tsx
2
- import clsx4 from "clsx";
2
+ import { cx as cx4 } from "class-variance-authority";
3
3
 
4
4
  // src/dropdown-menu/dropdown-menu-root.tsx
5
5
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
@@ -24,12 +24,12 @@ function DropdownMenuRoot({ children, content, onOpenChange, alignContent = "sta
24
24
 
25
25
  // src/dropdown-menu/dropdown-menu-item.tsx
26
26
  import * as DropdownMenuPrimitive2 from "@radix-ui/react-dropdown-menu";
27
- import clsx from "clsx";
27
+ import { cx } from "class-variance-authority";
28
28
  import { jsx as jsx2 } from "react/jsx-runtime";
29
29
  function DropdownMenuItem({ children, className, ...delegated }) {
30
30
  return /* @__PURE__ */ jsx2(DropdownMenuPrimitive2.Item, {
31
31
  ...delegated,
32
- className: clsx(
32
+ className: cx(
33
33
  "text-xs font-medium text-black-text",
34
34
  "flex h-10 cursor-pointer items-center bg-white px-4 outline-asteroid",
35
35
  "hover:bg-[#F8F8F9] hover:outline-none hover:focus-visible:outline-none",
@@ -41,12 +41,12 @@ function DropdownMenuItem({ children, className, ...delegated }) {
41
41
  }
42
42
 
43
43
  // src/dropdown-menu/dropdown-menu-label.tsx
44
- import clsx2 from "clsx";
45
44
  import * as DropdownMenuPrimitive3 from "@radix-ui/react-dropdown-menu";
45
+ import { cx as cx2 } from "class-variance-authority";
46
46
  import { jsx as jsx3 } from "react/jsx-runtime";
47
47
  function DropdownMenuLabel({ children }) {
48
48
  return /* @__PURE__ */ jsx3(DropdownMenuPrimitive3.Label, {
49
- className: clsx2("bg-white px-4 py-2 text-xs text-label", "first:rounded-tl first:rounded-tr"),
49
+ className: cx2("bg-white px-4 py-2 text-xs text-label", "first:rounded-tl first:rounded-tr"),
50
50
  children
51
51
  });
52
52
  }
@@ -145,41 +145,27 @@ var Error = forwardRef4((delegated, ref) => {
145
145
  viewBox: "0 0 22 22",
146
146
  ...delegated,
147
147
  children: [
148
- /* @__PURE__ */ jsxs3("g", {
149
- clipPath: "url(#a)",
150
- children: [
151
- /* @__PURE__ */ jsx7("path", {
152
- fill: "#DD1367",
153
- d: "M20.83 11c0 5.43-4.4 9.83-9.83 9.83S1.17 16.43 1.17 11 5.57 1.17 11 1.17s9.83 4.4 9.83 9.83Z"
154
- }),
155
- /* @__PURE__ */ jsx7("path", {
156
- fill: "#528693",
157
- fillRule: "evenodd",
158
- d: "M21.431 11c0 5.76-4.67 10.43-10.43 10.43C5.238 21.43.568 16.76.568 11S5.24.57 11 .57C16.76.57 21.431 5.24 21.431 11Zm-10.43 9.83c5.429 0 9.83-4.4 9.83-9.83s-4.401-9.83-9.83-9.83c-5.43 0-9.832 4.4-9.832 9.83S5.571 20.83 11 20.83Z",
159
- clipRule: "evenodd"
160
- }),
161
- /* @__PURE__ */ jsx7("path", {
162
- fill: "#fff",
163
- fillRule: "evenodd",
164
- d: "m7.364 13.479 1.157 1.157L11 12.158l2.479 2.478 1.157-1.157L12.158 11l2.478-2.479-1.157-1.157-2.48 2.478-2.478-2.478L7.364 8.52 9.842 11l-2.478 2.479Z",
165
- clipRule: "evenodd"
166
- }),
167
- /* @__PURE__ */ jsx7("path", {
168
- fill: "#528693",
169
- fillRule: "evenodd",
170
- d: "M6.94 13.903a.6.6 0 0 1 0-.849L8.994 11 6.94 8.946a.6.6 0 0 1 0-.849L8.097 6.94a.6.6 0 0 1 .849 0L11 8.994l2.054-2.054a.6.6 0 0 1 .849 0l1.157 1.157a.6.6 0 0 1 0 .849L13.006 11l2.054 2.054a.6.6 0 0 1 0 .849l-1.157 1.157a.6.6 0 0 1-.849 0L11 13.006 8.946 15.06a.6.6 0 0 1-.849 0L6.94 13.903ZM11 12.158l2.479 2.478 1.157-1.157L12.158 11l2.478-2.479-1.157-1.157L11 9.842 8.521 7.364 7.364 8.52 9.842 11l-2.478 2.479 1.157 1.157L11 12.158Z",
171
- clipRule: "evenodd"
172
- })
173
- ]
148
+ /* @__PURE__ */ jsx7("path", {
149
+ fill: "#DD1367",
150
+ d: "M20.83 11c0 5.43-4.4 9.83-9.83 9.83S1.17 16.43 1.17 11 5.57 1.17 11 1.17s9.83 4.4 9.83 9.83Z"
174
151
  }),
175
- /* @__PURE__ */ jsx7("defs", {
176
- children: /* @__PURE__ */ jsx7("clipPath", {
177
- id: "a",
178
- children: /* @__PURE__ */ jsx7("path", {
179
- fill: "#fff",
180
- d: "M0 0h22v22H0z"
181
- })
182
- })
152
+ /* @__PURE__ */ jsx7("path", {
153
+ fill: "#528693",
154
+ fillRule: "evenodd",
155
+ d: "M21.431 11c0 5.76-4.67 10.43-10.43 10.43C5.238 21.43.568 16.76.568 11S5.24.57 11 .57C16.76.57 21.431 5.24 21.431 11Zm-10.43 9.83c5.429 0 9.83-4.4 9.83-9.83s-4.401-9.83-9.83-9.83c-5.43 0-9.832 4.4-9.832 9.83S5.571 20.83 11 20.83Z",
156
+ clipRule: "evenodd"
157
+ }),
158
+ /* @__PURE__ */ jsx7("path", {
159
+ fill: "#fff",
160
+ fillRule: "evenodd",
161
+ d: "m7.364 13.479 1.157 1.157L11 12.158l2.479 2.478 1.157-1.157L12.158 11l2.478-2.479-1.157-1.157-2.48 2.478-2.478-2.478L7.364 8.52 9.842 11l-2.478 2.479Z",
162
+ clipRule: "evenodd"
163
+ }),
164
+ /* @__PURE__ */ jsx7("path", {
165
+ fill: "#528693",
166
+ fillRule: "evenodd",
167
+ d: "M6.94 13.903a.6.6 0 0 1 0-.849L8.994 11 6.94 8.946a.6.6 0 0 1 0-.849L8.097 6.94a.6.6 0 0 1 .849 0L11 8.994l2.054-2.054a.6.6 0 0 1 .849 0l1.157 1.157a.6.6 0 0 1 0 .849L13.006 11l2.054 2.054a.6.6 0 0 1 0 .849l-1.157 1.157a.6.6 0 0 1-.849 0L11 13.006 8.946 15.06a.6.6 0 0 1-.849 0L6.94 13.903ZM11 12.158l2.479 2.478 1.157-1.157L12.158 11l2.478-2.479-1.157-1.157L11 9.842 8.521 7.364 7.364 8.52 9.842 11l-2.478 2.479 1.157 1.157L11 12.158Z",
168
+ clipRule: "evenodd"
183
169
  })
184
170
  ]
185
171
  });
@@ -375,47 +361,33 @@ var Info = forwardRef7((delegated, ref) => {
375
361
  viewBox: "0 0 22 22",
376
362
  ...delegated,
377
363
  children: [
378
- /* @__PURE__ */ jsxs6("g", {
379
- clipPath: "url(#a)",
380
- children: [
381
- /* @__PURE__ */ jsx10("path", {
382
- fill: "#BFF6F8",
383
- d: "M20.83 11c0 5.43-4.4 9.83-9.83 9.83S1.17 16.43 1.17 11 5.57 1.17 11 1.17s9.83 4.4 9.83 9.83Z"
384
- }),
385
- /* @__PURE__ */ jsx10("path", {
386
- fill: "#528693",
387
- fillRule: "evenodd",
388
- d: "M21.431 11c0 5.76-4.67 10.43-10.43 10.43C5.238 21.43.568 16.76.568 11S5.24.57 11 .57C16.76.57 21.431 5.24 21.431 11Zm-10.43 9.83c5.429 0 9.83-4.4 9.83-9.83s-4.401-9.83-9.83-9.83c-5.43 0-9.832 4.4-9.832 9.83S5.571 20.83 11 20.83Z",
389
- clipRule: "evenodd"
390
- }),
391
- /* @__PURE__ */ jsx10("path", {
392
- fill: "#fff",
393
- d: "M14.814 6.317a.991.991 0 1 1-1.983 0 .991.991 0 0 1 1.983 0Z"
394
- }),
395
- /* @__PURE__ */ jsx10("path", {
396
- fill: "#528693",
397
- fillRule: "evenodd",
398
- d: "M15.415 6.317a1.592 1.592 0 1 1-3.184 0 1.592 1.592 0 0 1 3.184 0Zm-1.592.991a.991.991 0 1 0 0-1.982.991.991 0 0 0 0 1.982Z",
399
- clipRule: "evenodd"
400
- }),
401
- /* @__PURE__ */ jsx10("path", {
402
- fill: "#fff",
403
- d: "m9.37 16.049 1.8.26-.22-.7-.78-.621.56-1.14 2.261-3.382-.34-1.381-1.92-1-1.261.14-.28.32 1.08.54.14.54-2.22 2.862-.821 2.36 2 1.202Z"
404
- }),
405
- /* @__PURE__ */ jsx10("path", {
406
- fill: "#528693",
407
- d: "M10.476 16.666a4.93 4.93 0 0 1-2.096-.599c-1.114-.605-1.482-1.63-.961-2.673a9.606 9.606 0 0 1 1.437-1.963l.067-.077c.252-.293.513-.595.742-.897.288-.38.538-.745.443-1.031-.056-.164-.215-.282-.485-.362a1.58 1.58 0 0 0-.247-.033l-.055-.004a.984.984 0 0 1-.481-.096c-.169-.132-.098-.51-.013-.676a.915.915 0 0 1 .701-.473c.139-.025.28-.037.42-.035.656.034 1.301.176 1.91.42 1.104.424 1.631 1.263 1.41 2.244a4.193 4.193 0 0 1-.908 1.714c-.128.161-.26.315-.392.471l-.07.083c-.282.32-.544.654-.788 1.003l-.144.206c-.161.209-.291.44-.385.687a.582.582 0 0 0 .32.743.91.91 0 0 0 .32.08c.175.021.356.044.428.21a.575.575 0 0 1-.035.477 1.144 1.144 0 0 1-1.138.581Zm-.877-8.193c.128.079.268.136.414.17.18.04.35.12.494.236.58.552.14 1.272-.318 1.903-.214.292-.47.58-.74.884l-.068.077c-.624.692-1.27 1.408-1.497 2.232a1.148 1.148 0 0 0 .163 1.06c.493.658 1.78.907 2.819.921l.035-.05-.025-.035a1.248 1.248 0 0 1-.865-.594 1.04 1.04 0 0 1 .006-.894 8.071 8.071 0 0 1 1.309-1.977l.127-.155c.171-.21.356-.437.525-.665.371-.501.844-1.245.664-1.915-.315-1.173-2.15-1.209-3.03-1.226h-.057l.044.028Z"
408
- })
409
- ]
364
+ /* @__PURE__ */ jsx10("path", {
365
+ fill: "#BFF6F8",
366
+ d: "M20.83 11c0 5.43-4.4 9.83-9.83 9.83S1.17 16.43 1.17 11 5.57 1.17 11 1.17s9.83 4.4 9.83 9.83Z"
410
367
  }),
411
- /* @__PURE__ */ jsx10("defs", {
412
- children: /* @__PURE__ */ jsx10("clipPath", {
413
- id: "a",
414
- children: /* @__PURE__ */ jsx10("path", {
415
- fill: "#fff",
416
- d: "M0 0h22v22H0z"
417
- })
418
- })
368
+ /* @__PURE__ */ jsx10("path", {
369
+ fill: "#528693",
370
+ fillRule: "evenodd",
371
+ d: "M21.431 11c0 5.76-4.67 10.43-10.43 10.43C5.238 21.43.568 16.76.568 11S5.24.57 11 .57C16.76.57 21.431 5.24 21.431 11Zm-10.43 9.83c5.429 0 9.83-4.4 9.83-9.83s-4.401-9.83-9.83-9.83c-5.43 0-9.832 4.4-9.832 9.83S5.571 20.83 11 20.83Z",
372
+ clipRule: "evenodd"
373
+ }),
374
+ /* @__PURE__ */ jsx10("path", {
375
+ fill: "#fff",
376
+ d: "M14.814 6.317a.991.991 0 1 1-1.983 0 .991.991 0 0 1 1.983 0Z"
377
+ }),
378
+ /* @__PURE__ */ jsx10("path", {
379
+ fill: "#528693",
380
+ fillRule: "evenodd",
381
+ d: "M15.415 6.317a1.592 1.592 0 1 1-3.184 0 1.592 1.592 0 0 1 3.184 0Zm-1.592.991a.991.991 0 1 0 0-1.982.991.991 0 0 0 0 1.982Z",
382
+ clipRule: "evenodd"
383
+ }),
384
+ /* @__PURE__ */ jsx10("path", {
385
+ fill: "#fff",
386
+ d: "m9.37 16.049 1.8.26-.22-.7-.78-.621.56-1.14 2.261-3.382-.34-1.381-1.92-1-1.261.14-.28.32 1.08.54.14.54-2.22 2.862-.821 2.36 2 1.202Z"
387
+ }),
388
+ /* @__PURE__ */ jsx10("path", {
389
+ fill: "#528693",
390
+ d: "M10.476 16.666a4.93 4.93 0 0 1-2.096-.599c-1.114-.605-1.482-1.63-.961-2.673a9.606 9.606 0 0 1 1.437-1.963l.067-.077c.252-.293.513-.595.742-.897.288-.38.538-.745.443-1.031-.056-.164-.215-.282-.485-.362a1.58 1.58 0 0 0-.247-.033l-.055-.004a.984.984 0 0 1-.481-.096c-.169-.132-.098-.51-.013-.676a.915.915 0 0 1 .701-.473c.139-.025.28-.037.42-.035.656.034 1.301.176 1.91.42 1.104.424 1.631 1.263 1.41 2.244a4.193 4.193 0 0 1-.908 1.714c-.128.161-.26.315-.392.471l-.07.083c-.282.32-.544.654-.788 1.003l-.144.206c-.161.209-.291.44-.385.687a.582.582 0 0 0 .32.743.91.91 0 0 0 .32.08c.175.021.356.044.428.21a.575.575 0 0 1-.035.477 1.144 1.144 0 0 1-1.138.581Zm-.877-8.193c.128.079.268.136.414.17.18.04.35.12.494.236.58.552.14 1.272-.318 1.903-.214.292-.47.58-.74.884l-.068.077c-.624.692-1.27 1.408-1.497 2.232a1.148 1.148 0 0 0 .163 1.06c.493.658 1.78.907 2.819.921l.035-.05-.025-.035a1.248 1.248 0 0 1-.865-.594 1.04 1.04 0 0 1 .006-.894 8.071 8.071 0 0 1 1.309-1.977l.127-.155c.171-.21.356-.437.525-.665.371-.501.844-1.245.664-1.915-.315-1.173-2.15-1.209-3.03-1.226h-.057l.044.028Z"
419
391
  })
420
392
  ]
421
393
  });
@@ -519,59 +491,45 @@ var Warning = forwardRef9((delegated, ref) => {
519
491
  viewBox: "0 0 22 22",
520
492
  ...delegated,
521
493
  children: [
522
- /* @__PURE__ */ jsxs8("g", {
523
- clipPath: "url(#a)",
524
- children: [
525
- /* @__PURE__ */ jsx12("path", {
526
- fill: "#FFDE99",
527
- d: "M20.83 11c0 5.43-4.4 9.83-9.83 9.83S1.17 16.43 1.17 11 5.57 1.17 11 1.17s9.83 4.4 9.83 9.83Z"
528
- }),
529
- /* @__PURE__ */ jsx12("path", {
530
- fill: "#528693",
531
- fillRule: "evenodd",
532
- d: "M21.43 11c0 5.76-4.67 10.43-10.43 10.43S.57 16.76.57 11 5.24.57 11 .57 21.43 5.24 21.43 11ZM11 20.83c5.43 0 9.83-4.4 9.83-9.83S16.43 1.17 11 1.17 1.17 5.57 1.17 11s4.4 9.83 9.83 9.83Z",
533
- clipRule: "evenodd"
534
- }),
535
- /* @__PURE__ */ jsx12("path", {
536
- fill: "#fff",
537
- d: "M10.077 5.232c.41-.71 1.436-.71 1.846 0L17 14.025c.41.71-.103 1.599-.924 1.599H5.923c-.82 0-1.333-.889-.923-1.6l5.077-8.792Z"
538
- }),
539
- /* @__PURE__ */ jsx12("path", {
540
- fill: "#528693",
541
- fillRule: "evenodd",
542
- d: "m16.48 14.325-5.077-8.793a.466.466 0 0 0-.806 0L5.52 14.325c-.18.31.045.699.403.699h10.153a.466.466 0 0 0 .404-.7Zm-4.557-9.093a1.066 1.066 0 0 0-1.846 0L5 14.025c-.41.71.103 1.599.923 1.599h10.153c.821 0 1.334-.889.924-1.6l-5.077-8.792Z",
543
- clipRule: "evenodd"
544
- }),
545
- /* @__PURE__ */ jsx12("path", {
546
- fill: "#FFDE99",
547
- d: "M10.588 8.628a.5.5 0 1 1 1 0v2.475a.5.5 0 0 1-1 0V8.628Z"
548
- }),
549
- /* @__PURE__ */ jsx12("path", {
550
- fill: "#528693",
551
- fillRule: "evenodd",
552
- d: "M12.188 8.628v2.475a1.1 1.1 0 0 1-2.2 0V8.628a1.1 1.1 0 1 1 2.2 0Zm-1.1-.5a.5.5 0 0 0-.5.5v2.475a.5.5 0 1 0 1 0V8.628a.5.5 0 0 0-.5-.5Z",
553
- clipRule: "evenodd"
554
- }),
555
- /* @__PURE__ */ jsx12("path", {
556
- fill: "#FFDE99",
557
- d: "M11.588 13.403a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"
558
- }),
559
- /* @__PURE__ */ jsx12("path", {
560
- fill: "#528693",
561
- fillRule: "evenodd",
562
- d: "M12.188 13.403a1.1 1.1 0 1 1-2.2 0 1.1 1.1 0 0 1 2.2 0Zm-1.1.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z",
563
- clipRule: "evenodd"
564
- })
565
- ]
494
+ /* @__PURE__ */ jsx12("path", {
495
+ fill: "#FFDE99",
496
+ d: "M20.83 11c0 5.43-4.4 9.83-9.83 9.83S1.17 16.43 1.17 11 5.57 1.17 11 1.17s9.83 4.4 9.83 9.83Z"
566
497
  }),
567
- /* @__PURE__ */ jsx12("defs", {
568
- children: /* @__PURE__ */ jsx12("clipPath", {
569
- id: "a",
570
- children: /* @__PURE__ */ jsx12("path", {
571
- fill: "#fff",
572
- d: "M0 0h22v22H0z"
573
- })
574
- })
498
+ /* @__PURE__ */ jsx12("path", {
499
+ fill: "#528693",
500
+ fillRule: "evenodd",
501
+ d: "M21.43 11c0 5.76-4.67 10.43-10.43 10.43S.57 16.76.57 11 5.24.57 11 .57 21.43 5.24 21.43 11ZM11 20.83c5.43 0 9.83-4.4 9.83-9.83S16.43 1.17 11 1.17 1.17 5.57 1.17 11s4.4 9.83 9.83 9.83Z",
502
+ clipRule: "evenodd"
503
+ }),
504
+ /* @__PURE__ */ jsx12("path", {
505
+ fill: "#fff",
506
+ d: "M10.077 5.232c.41-.71 1.436-.71 1.846 0L17 14.025c.41.71-.103 1.599-.924 1.599H5.923c-.82 0-1.333-.889-.923-1.6l5.077-8.792Z"
507
+ }),
508
+ /* @__PURE__ */ jsx12("path", {
509
+ fill: "#528693",
510
+ fillRule: "evenodd",
511
+ d: "m16.48 14.325-5.077-8.793a.466.466 0 0 0-.806 0L5.52 14.325c-.18.31.045.699.403.699h10.153a.466.466 0 0 0 .404-.7Zm-4.557-9.093a1.066 1.066 0 0 0-1.846 0L5 14.025c-.41.71.103 1.599.923 1.599h10.153c.821 0 1.334-.889.924-1.6l-5.077-8.792Z",
512
+ clipRule: "evenodd"
513
+ }),
514
+ /* @__PURE__ */ jsx12("path", {
515
+ fill: "#FFDE99",
516
+ d: "M10.588 8.628a.5.5 0 1 1 1 0v2.475a.5.5 0 0 1-1 0V8.628Z"
517
+ }),
518
+ /* @__PURE__ */ jsx12("path", {
519
+ fill: "#528693",
520
+ fillRule: "evenodd",
521
+ d: "M12.188 8.628v2.475a1.1 1.1 0 0 1-2.2 0V8.628a1.1 1.1 0 1 1 2.2 0Zm-1.1-.5a.5.5 0 0 0-.5.5v2.475a.5.5 0 1 0 1 0V8.628a.5.5 0 0 0-.5-.5Z",
522
+ clipRule: "evenodd"
523
+ }),
524
+ /* @__PURE__ */ jsx12("path", {
525
+ fill: "#FFDE99",
526
+ d: "M11.588 13.403a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"
527
+ }),
528
+ /* @__PURE__ */ jsx12("path", {
529
+ fill: "#528693",
530
+ fillRule: "evenodd",
531
+ d: "M12.188 13.403a1.1 1.1 0 1 1-2.2 0 1.1 1.1 0 0 1 2.2 0Zm-1.1.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z",
532
+ clipRule: "evenodd"
575
533
  })
576
534
  ]
577
535
  });
@@ -592,12 +550,12 @@ var Icon = {
592
550
  };
593
551
 
594
552
  // src/action-menu/action-item.tsx
595
- import clsx3 from "clsx";
553
+ import { cx as cx3 } from "class-variance-authority";
596
554
  import { jsx as jsx13 } from "react/jsx-runtime";
597
555
  function Item2({ children, className, onSelect }) {
598
556
  return /* @__PURE__ */ jsx13(DropdownMenu.Item, {
599
557
  onClick: onSelect,
600
- className: clsx3(
558
+ className: cx3(
601
559
  "items-center text-density cursor-pointer flex font-sans font-medium text-sm gap-2 py-2.5 px-5",
602
560
  "hover:bg-[#f4f4f4]",
603
561
  "[&.danger]:text-error",
@@ -609,17 +567,17 @@ function Item2({ children, className, onSelect }) {
609
567
 
610
568
  // src/action-menu/action-menu.tsx
611
569
  import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
612
- function ActionMenu({ children, className, tabIndex }) {
570
+ function ActionMenu({ children, tabIndex }) {
613
571
  return /* @__PURE__ */ jsx14(DropdownMenu.Root, {
614
572
  content: children,
573
+ alignContent: "center",
615
574
  children: /* @__PURE__ */ jsxs9("button", {
616
575
  tabIndex,
617
576
  type: "button",
618
- className: clsx4(
577
+ className: cx4(
619
578
  "items-center bg-transparent rounded-full border-none cursor-pointer flex justify-center p-1",
620
579
  "hover:bg-gray-6 focus:bg-gray-6 focus:outline-offset-2 focus:outline focus:outline-1 focus:outline-glacier focus-visible:outline-offset-2 focus-visible:outline focus-visible:outline-1 focus-visible:outline-glacier",
621
- "active:scale-95",
622
- className
580
+ "active:scale-95"
623
581
  ),
624
582
  "aria-label": "more options",
625
583
  children: [
@@ -682,20 +640,77 @@ var Button = forwardRef10(
682
640
  );
683
641
  Button.displayName = "Button";
684
642
 
643
+ // src/card/card.tsx
644
+ import { cva as cva2 } from "class-variance-authority";
645
+ import { jsx as jsx16 } from "react/jsx-runtime";
646
+ var cardStyles = cva2("rounded-lg p-4 sm:p-8", {
647
+ variants: {
648
+ variant: {
649
+ gray: "bg-jupiter",
650
+ white: "bg-white"
651
+ }
652
+ },
653
+ defaultVariants: {
654
+ variant: "gray"
655
+ }
656
+ });
657
+ function Card({ children, className, variant, ...delegated }) {
658
+ return /* @__PURE__ */ jsx16("section", {
659
+ className: cardStyles({ variant, className }),
660
+ ...delegated,
661
+ children
662
+ });
663
+ }
664
+
665
+ // src/checkbox/checkbox.tsx
666
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
667
+ import { cx as cx5 } from "class-variance-authority";
668
+ import { forwardRef as forwardRef11 } from "react";
669
+ import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
670
+ var Checkbox = forwardRef11((props, ref) => {
671
+ return /* @__PURE__ */ jsx17(CheckboxPrimitive.Root, {
672
+ ...props,
673
+ ref,
674
+ className: cx5(
675
+ "flex h-3.5 w-3.5 items-center justify-center rounded-sm border border-solid border-[#ddd] bg-white",
676
+ "focus:outline-none focus:ring-1 focus:ring-[#528693] focus:ring-offset-1",
677
+ "radix-state-checked:border-[#528693] radix-state-checked:bg-neptune",
678
+ "radix-state-checked:disabled:opacity-40 radix-state-unchecked:disabled:!bg-[#ddd]/20"
679
+ ),
680
+ children: /* @__PURE__ */ jsx17(CheckboxPrimitive.Indicator, {
681
+ children: /* @__PURE__ */ jsxs10("svg", {
682
+ viewBox: "0 0 9 9",
683
+ fill: "none",
684
+ className: "h-2 w-2",
685
+ children: [
686
+ /* @__PURE__ */ jsx17("path", {
687
+ d: "M1.12 5.51a.559.559 0 01.832-.101l2.201 1.953-.427.624a.326.326 0 01-.486.06L1.21 6.245a.559.559 0 01-.09-.734z",
688
+ fill: "#528693"
689
+ }),
690
+ /* @__PURE__ */ jsx17("path", {
691
+ d: "M7.883 1.087c.043.03.053.09.023.132L3.669 7.132l-.154-.105L7.754 1.11a.093.093 0 01.129-.023z",
692
+ stroke: "#528693"
693
+ })
694
+ ]
695
+ })
696
+ })
697
+ });
698
+ });
699
+ Checkbox.displayName = "Checkbox";
700
+
685
701
  // src/dialog/destroyFns.ts
686
702
  var destroyFns = [];
687
703
 
688
704
  // src/dialog/dialog.tsx
689
- import clsx5 from "clsx";
690
705
  import * as DialogPrimitive from "@radix-ui/react-dialog";
691
- import { cva as cva2 } from "class-variance-authority";
692
- import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
706
+ import { cva as cva3, cx as cx6 } from "class-variance-authority";
707
+ import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
693
708
  var IconMap = {
694
709
  error: Icon.Error,
695
710
  info: Icon.Info,
696
711
  warning: Icon.Warning
697
712
  };
698
- var dialogContentStyles = cva2(
713
+ var dialogContentStyles = cva3(
699
714
  "bg-white rounded shadow fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 max-w-xl w-auto p-6",
700
715
  {
701
716
  variants: {
@@ -705,28 +720,29 @@ var dialogContentStyles = cva2(
705
720
  }
706
721
  }
707
722
  );
708
- function DialogContent({ children, closable = true, type, className, ...delegated }) {
723
+ function DialogContent({ children, closable = true, type, className, container, ...delegated }) {
709
724
  const withIcon = typeof type !== "undefined";
710
725
  const IconComponent = type && IconMap[type];
711
- return /* @__PURE__ */ jsxs10(DialogPrimitive.Portal, {
726
+ return /* @__PURE__ */ jsxs11(DialogPrimitive.Portal, {
727
+ container,
712
728
  children: [
713
- /* @__PURE__ */ jsx16(DialogPrimitive.Overlay, {
729
+ /* @__PURE__ */ jsx18(DialogPrimitive.Overlay, {
714
730
  className: "bg-black/30 fixed inset-0"
715
731
  }),
716
- /* @__PURE__ */ jsxs10(DialogPrimitive.Content, {
732
+ /* @__PURE__ */ jsxs11(DialogPrimitive.Content, {
717
733
  className: dialogContentStyles({ withIcon, class: className }),
718
734
  ...delegated,
719
735
  children: [
720
- IconComponent && /* @__PURE__ */ jsx16(IconComponent, {
736
+ IconComponent && /* @__PURE__ */ jsx18(IconComponent, {
721
737
  className: "my-1 shrink-0",
722
738
  width: 32,
723
739
  height: 32
724
740
  }),
725
- closable && /* @__PURE__ */ jsx16(DialogClose, {
741
+ closable && /* @__PURE__ */ jsx18(DialogClose, {
726
742
  asChild: true,
727
- children: /* @__PURE__ */ jsx16(Button, {
743
+ children: /* @__PURE__ */ jsx18(Button, {
728
744
  className: "absolute top-2.5 right-2.5 !rounded-full !p-0 h-6 w-6 inline-flex items-center justify-center !bg-transparent hover:!bg-gray-200 focus:!bg-gray-200 !drop-shadow-none",
729
- children: /* @__PURE__ */ jsx16(Icon.Cancel, {
745
+ children: /* @__PURE__ */ jsx18(Icon.Cancel, {
730
746
  color: "density",
731
747
  "aria-label": "Close",
732
748
  height: 18,
@@ -734,7 +750,7 @@ function DialogContent({ children, closable = true, type, className, ...delegate
734
750
  })
735
751
  })
736
752
  }),
737
- /* @__PURE__ */ jsx16("div", {
753
+ /* @__PURE__ */ jsx18("div", {
738
754
  children
739
755
  })
740
756
  ]
@@ -743,13 +759,13 @@ function DialogContent({ children, closable = true, type, className, ...delegate
743
759
  });
744
760
  }
745
761
  function DialogTitle({ className, ...delegated }) {
746
- return /* @__PURE__ */ jsx16(DialogPrimitive.Title, {
747
- className: clsx5("m-0 font-semibold text-2xl font-sans text-black-text", className),
762
+ return /* @__PURE__ */ jsx18(DialogPrimitive.Title, {
763
+ className: cx6("m-0 font-medium text-xl font-sans text-black-text", className),
748
764
  ...delegated
749
765
  });
750
766
  }
751
767
  function DialogDescription(delegated) {
752
- return /* @__PURE__ */ jsx16(DialogPrimitive.Description, {
768
+ return /* @__PURE__ */ jsx18(DialogPrimitive.Description, {
753
769
  className: "mt-2 mb-5 text-gray-600",
754
770
  ...delegated
755
771
  });
@@ -758,7 +774,7 @@ var DialogTrigger = DialogPrimitive.Trigger;
758
774
  var DialogClose = DialogPrimitive.Close;
759
775
  var DialogRoot = DialogPrimitive.Root;
760
776
  function DialogBase({ children, ...delegated }) {
761
- return /* @__PURE__ */ jsx16(DialogRoot, {
777
+ return /* @__PURE__ */ jsx18(DialogRoot, {
762
778
  ...delegated,
763
779
  children
764
780
  });
@@ -773,7 +789,7 @@ DialogBase.Overlay = DialogPrimitive.Overlay;
773
789
  import { unmountComponentAtNode, render as DOMRender } from "react-dom";
774
790
 
775
791
  // src/dialog/confirm-dialog.tsx
776
- import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
792
+ import { jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
777
793
  function ConfirmDialog({
778
794
  open,
779
795
  close,
@@ -790,37 +806,37 @@ function ConfirmDialog({
790
806
  onPointerDownOutside,
791
807
  type
792
808
  }) {
793
- const cancelButton = okCancel && /* @__PURE__ */ jsx17(Button, {
809
+ const cancelButton = okCancel && /* @__PURE__ */ jsx19(Button, {
794
810
  variant: "secondary",
795
811
  onClick: () => {
796
- onCancel == null ? void 0 : onCancel();
812
+ onCancel?.();
797
813
  close();
798
814
  },
799
815
  children: cancelText
800
816
  });
801
- return /* @__PURE__ */ jsx17(DialogRoot, {
817
+ return /* @__PURE__ */ jsx19(DialogRoot, {
802
818
  open,
803
819
  onOpenChange: () => close(),
804
- children: /* @__PURE__ */ jsxs11(Dialog.Content, {
820
+ children: /* @__PURE__ */ jsxs12(Dialog.Content, {
805
821
  onEscapeKeyDown,
806
822
  onInteractOutside,
807
823
  onPointerDownOutside,
808
824
  type,
809
825
  children: [
810
- title && /* @__PURE__ */ jsx17(Dialog.Title, {
826
+ title && /* @__PURE__ */ jsx19(Dialog.Title, {
811
827
  children: title
812
828
  }),
813
- description && /* @__PURE__ */ jsx17(Dialog.Description, {
829
+ description && /* @__PURE__ */ jsx19(Dialog.Description, {
814
830
  children: description
815
831
  }),
816
832
  content,
817
- /* @__PURE__ */ jsxs11("div", {
833
+ /* @__PURE__ */ jsxs12("div", {
818
834
  className: "flex items-center gap-4 mt-4 justify-end",
819
835
  children: [
820
836
  cancelButton,
821
- /* @__PURE__ */ jsx17(Button, {
837
+ /* @__PURE__ */ jsx19(Button, {
822
838
  onClick: () => {
823
- onOk == null ? void 0 : onOk();
839
+ onOk?.();
824
840
  close();
825
841
  },
826
842
  children: okText
@@ -833,7 +849,7 @@ function ConfirmDialog({
833
849
  }
834
850
 
835
851
  // src/dialog/config.tsx
836
- import { jsx as jsx18 } from "react/jsx-runtime";
852
+ import { jsx as jsx20 } from "react/jsx-runtime";
837
853
  function confirm(config) {
838
854
  const container = document.createDocumentFragment();
839
855
  let currentConfig = { ...config, close, open: true };
@@ -869,7 +885,7 @@ function confirm(config) {
869
885
  function render({ okText, cancelText, ...delegated }) {
870
886
  clearTimeout(timeoutId);
871
887
  timeoutId = setTimeout(() => {
872
- DOMRender(/* @__PURE__ */ jsx18(ConfirmDialog, {
888
+ DOMRender(/* @__PURE__ */ jsx20(ConfirmDialog, {
873
889
  ...delegated,
874
890
  okText,
875
891
  cancelText
@@ -970,11 +986,314 @@ function destroyAll() {
970
986
  }
971
987
  }
972
988
  }
989
+
990
+ // src/icon-button/icon-button.tsx
991
+ import { forwardRef as forwardRef12 } from "react";
992
+ import { cva as cva4 } from "class-variance-authority";
993
+ import { jsx as jsx21 } from "react/jsx-runtime";
994
+ var buttonStyles2 = cva4(
995
+ [
996
+ "flex items-center justify-center rounded-full font-medium cursor-pointer",
997
+ "disabled:cursor-default disabled:scale-100 disabled:shadow-none",
998
+ "active:scale-95",
999
+ "focus:shadow focus:bg-slate-200",
1000
+ "hover:shadow hover:bg-slate-200",
1001
+ "focus-visible:outline-inherit focus-visible:outline-offset-1 focus-visible:outline focus-visible:outline-1"
1002
+ ],
1003
+ {
1004
+ variants: {
1005
+ size: {
1006
+ xs: "h-8 w-8",
1007
+ sm: "h-9 w-9",
1008
+ md: "h-10 w-10",
1009
+ lg: "h-10 w-10",
1010
+ xl: "h-11 w-11"
1011
+ }
1012
+ },
1013
+ defaultVariants: {
1014
+ size: "sm"
1015
+ }
1016
+ }
1017
+ );
1018
+ var IconButton = forwardRef12(
1019
+ ({ children, className, type = "button", size, ...delegated }, ref) => {
1020
+ return /* @__PURE__ */ jsx21("button", {
1021
+ ref,
1022
+ type,
1023
+ className: buttonStyles2({ size, className }),
1024
+ ...delegated,
1025
+ children
1026
+ });
1027
+ }
1028
+ );
1029
+ IconButton.displayName = "Button";
1030
+
1031
+ // src/inline-radio/inline-radio.tsx
1032
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
1033
+ import { cx as cx7 } from "class-variance-authority";
1034
+ import { jsx as jsx22 } from "react/jsx-runtime";
1035
+ function InlineRadioGroup(delegated) {
1036
+ return /* @__PURE__ */ jsx22(RadioGroupPrimitive.Root, {
1037
+ ...delegated,
1038
+ className: "inline-flex space-x-1 rounded-sm bg-[#9095a81a] p-[3px]"
1039
+ });
1040
+ }
1041
+ function InlineRadioItem({ children, className, ...delegated }) {
1042
+ return /* @__PURE__ */ jsx22(RadioGroupPrimitive.Item, {
1043
+ ...delegated,
1044
+ className: cx7(
1045
+ "m-0 p-0",
1046
+ "flex cursor-pointer items-center justify-center rounded border-none bg-transparent text-sm leading-none text-zinc-800",
1047
+ "disabled:cursor-not-allowed",
1048
+ "radix-state-checked:bg-white radix-state-checked:shadow-sm",
1049
+ "focus:outline-neptune",
1050
+ className
1051
+ ),
1052
+ children: /* @__PURE__ */ jsx22(RadioGroupPrimitive.Indicator, {
1053
+ forceMount: true,
1054
+ children
1055
+ })
1056
+ });
1057
+ }
1058
+ var InlineRadio = {
1059
+ Group: InlineRadioGroup,
1060
+ Item: InlineRadioItem
1061
+ };
1062
+
1063
+ // src/input/input.tsx
1064
+ import { cva as cva5 } from "class-variance-authority";
1065
+ import { forwardRef as forwardRef13 } from "react";
1066
+ import { jsx as jsx23 } from "react/jsx-runtime";
1067
+ var inputStyles = cva5(
1068
+ [
1069
+ "p-0 border-none text-zinc-800",
1070
+ "focus:outline-none",
1071
+ "placeholder:italic placeholder:font-light placeholder:text-gray-400 placeholder:text-sm",
1072
+ "disabled:cursor-default"
1073
+ ],
1074
+ {
1075
+ variants: {
1076
+ paper: {
1077
+ white: "bg-white",
1078
+ gray: "bg-jupiter"
1079
+ }
1080
+ },
1081
+ defaultVariants: {
1082
+ paper: "gray"
1083
+ }
1084
+ }
1085
+ );
1086
+ var Input = forwardRef13(({ className, paper, ...delegated }, ref) => {
1087
+ return /* @__PURE__ */ jsx23("input", {
1088
+ ref,
1089
+ className: inputStyles({ className, paper }),
1090
+ type: "text",
1091
+ ...delegated
1092
+ });
1093
+ });
1094
+ Input.displayName = "Input";
1095
+
1096
+ // src/label/label.tsx
1097
+ import { forwardRef as forwardRef14 } from "react";
1098
+ import { cx as cx8 } from "class-variance-authority";
1099
+ import { jsx as jsx24 } from "react/jsx-runtime";
1100
+ var Label2 = forwardRef14(({ className, ...delegated }, ref) => {
1101
+ return /* @__PURE__ */ jsx24("label", {
1102
+ ref,
1103
+ className: cx8("text-xs font-medium text-gray-400", className),
1104
+ ...delegated
1105
+ });
1106
+ });
1107
+ Label2.displayName = "Label";
1108
+
1109
+ // src/progress/progress.tsx
1110
+ import * as ProgressPrimitives from "@radix-ui/react-progress";
1111
+ import { jsx as jsx25 } from "react/jsx-runtime";
1112
+ function Progress({ value }) {
1113
+ return /* @__PURE__ */ jsx25(ProgressPrimitives.Root, {
1114
+ className: "relative overflow-hidden rounded-full w-full h-6 bg-neutral-200",
1115
+ value,
1116
+ children: /* @__PURE__ */ jsx25(ProgressPrimitives.Indicator, {
1117
+ className: "bg-[#50dbdc] w-full h-full transform ease-linear duration-500",
1118
+ style: { transform: `translateX(-${100 - value}%)` }
1119
+ })
1120
+ });
1121
+ }
1122
+
1123
+ // src/radio/radio.tsx
1124
+ import * as RadioGroupPrimitive2 from "@radix-ui/react-radio-group";
1125
+ import { cx as cx9 } from "class-variance-authority";
1126
+ import { jsx as jsx26 } from "react/jsx-runtime";
1127
+ function RadioGroupItem(props) {
1128
+ return /* @__PURE__ */ jsx26(RadioGroupPrimitive2.Item, {
1129
+ ...props,
1130
+ className: cx9(
1131
+ "flex h-3 w-3 flex-shrink-0 items-center justify-center rounded-full border border-solid border-[#ddd] bg-white p-0",
1132
+ "focus:outline-none",
1133
+ "disabled:bg-[#ddd]/20",
1134
+ "radix-state-checked:border-[#528693] radix-state-checked:bg-neptune"
1135
+ ),
1136
+ children: /* @__PURE__ */ jsx26(RadioGroupPrimitive2.Indicator, {
1137
+ className: cx9("block h-[6px] w-[6px] rounded-full bg-[#528693]")
1138
+ })
1139
+ });
1140
+ }
1141
+ var Radio = {
1142
+ Group: RadioGroupPrimitive2.Root,
1143
+ Item: RadioGroupItem
1144
+ };
1145
+
1146
+ // src/select/select-item.tsx
1147
+ import { forwardRef as forwardRef15 } from "react";
1148
+ import * as SelectPrimitives from "@radix-ui/react-select";
1149
+ import { cx as cx10 } from "class-variance-authority";
1150
+ import { jsx as jsx27, jsxs as jsxs13 } from "react/jsx-runtime";
1151
+ var SelectItem = forwardRef15((props, ref) => {
1152
+ const { children, ...delegated } = props;
1153
+ return /* @__PURE__ */ jsxs13(SelectPrimitives.Item, {
1154
+ className: cx10(
1155
+ "flex cursor-pointer items-center whitespace-nowrap px-6 py-2 font-medium",
1156
+ "focus:bg-neptune/20",
1157
+ "hover:bg-neptune/20"
1158
+ ),
1159
+ ref,
1160
+ ...delegated,
1161
+ children: [
1162
+ /* @__PURE__ */ jsx27(SelectPrimitives.ItemText, {
1163
+ children
1164
+ }),
1165
+ /* @__PURE__ */ jsx27(SelectPrimitives.ItemIndicator, {})
1166
+ ]
1167
+ });
1168
+ });
1169
+ SelectItem.displayName = "SelectItem";
1170
+
1171
+ // src/select/select-root.tsx
1172
+ import { forwardRef as forwardRef16 } from "react";
1173
+ import * as SelectPrimitives2 from "@radix-ui/react-select";
1174
+ import { jsx as jsx28, jsxs as jsxs14 } from "react/jsx-runtime";
1175
+ var SelectContainer = forwardRef16(
1176
+ ({ children, id, placeholder, disabled, ...delegated }, ref) => {
1177
+ return /* @__PURE__ */ jsxs14(SelectPrimitives2.Root, {
1178
+ ...delegated,
1179
+ children: [
1180
+ /* @__PURE__ */ jsxs14(SelectPrimitives2.Trigger, {
1181
+ ref,
1182
+ className: "inline-flex cursor-pointer items-center justify-center gap-4 whitespace-nowrap rounded border-0 bg-white px-4 py-3 text-sm font-medium text-black-text shadow disabled:cursor-default disabled:opacity-50",
1183
+ disabled,
1184
+ id,
1185
+ children: [
1186
+ /* @__PURE__ */ jsx28(SelectPrimitives2.Value, {
1187
+ placeholder: /* @__PURE__ */ jsx28("span", {
1188
+ className: "italic text-label",
1189
+ children: placeholder ?? "Select..."
1190
+ })
1191
+ }),
1192
+ /* @__PURE__ */ jsx28(Icon.Arrow, {})
1193
+ ]
1194
+ }),
1195
+ /* @__PURE__ */ jsx28(SelectPrimitives2.Portal, {
1196
+ children: /* @__PURE__ */ jsxs14(SelectPrimitives2.Content, {
1197
+ className: "overflow-hidden rounded bg-white text-black-text shadow",
1198
+ children: [
1199
+ /* @__PURE__ */ jsx28(SelectPrimitives2.ScrollUpButton, {}),
1200
+ /* @__PURE__ */ jsx28(SelectPrimitives2.Viewport, {
1201
+ className: "py-2",
1202
+ children
1203
+ }),
1204
+ /* @__PURE__ */ jsx28(SelectPrimitives2.ScrollDownButton, {})
1205
+ ]
1206
+ })
1207
+ })
1208
+ ]
1209
+ });
1210
+ }
1211
+ );
1212
+ SelectContainer.displayName = "Select";
1213
+
1214
+ // src/select/select.ts
1215
+ var Select = {
1216
+ Container: SelectContainer,
1217
+ Item: SelectItem
1218
+ };
1219
+
1220
+ // src/text-field/text-field.tsx
1221
+ import { forwardRef as forwardRef17 } from "react";
1222
+ import { cva as cva6 } from "class-variance-authority";
1223
+ import { Fragment, jsx as jsx29, jsxs as jsxs15 } from "react/jsx-runtime";
1224
+ var textFieldStyles = cva6(
1225
+ ["relative gap-3 flex flex-col p-3 text-sm font-medium text-gray-400 rounded border border-transparent border-solid"],
1226
+ {
1227
+ variants: {
1228
+ variant: {
1229
+ outlined: "",
1230
+ filled: "",
1231
+ standard: ""
1232
+ },
1233
+ raised: {
1234
+ sm: "shadow-sm",
1235
+ md: "shadow-md",
1236
+ lg: "shadow-lg"
1237
+ },
1238
+ paper: {
1239
+ white: "bg-white",
1240
+ gray: "bg-jupiter"
1241
+ },
1242
+ error: {
1243
+ true: "border-rose-800 text-rose-800"
1244
+ }
1245
+ },
1246
+ defaultVariants: {
1247
+ variant: "standard",
1248
+ paper: "white"
1249
+ }
1250
+ }
1251
+ );
1252
+ var TextField = forwardRef17(
1253
+ ({ variant, raised, className, label, paper, endAdornment, error, ...delegated }, ref) => {
1254
+ return /* @__PURE__ */ jsxs15(Fragment, {
1255
+ children: [
1256
+ /* @__PURE__ */ jsxs15("label", {
1257
+ className: textFieldStyles({ variant, raised, paper, error: Boolean(error), className }),
1258
+ children: [
1259
+ label,
1260
+ /* @__PURE__ */ jsx29(Input, {
1261
+ ref,
1262
+ className: "w-10/12 text-ellipsis overflow-hidden",
1263
+ type: "text",
1264
+ ...delegated
1265
+ }),
1266
+ /* @__PURE__ */ jsx29("div", {
1267
+ className: "absolute right-1 top-2/3 -translate-y-1/2 ",
1268
+ children: endAdornment
1269
+ })
1270
+ ]
1271
+ }),
1272
+ error && /* @__PURE__ */ jsx29("div", {
1273
+ className: "text-rose-800 text-sm px-3 !mt-1",
1274
+ children: error
1275
+ })
1276
+ ]
1277
+ });
1278
+ }
1279
+ );
1280
+ TextField.displayName = "TextField";
973
1281
  export {
974
1282
  ActionMenu,
975
1283
  Button,
1284
+ Card,
1285
+ Checkbox,
976
1286
  Dialog,
977
1287
  DropdownMenu,
1288
+ Icon,
1289
+ IconButton,
1290
+ InlineRadio,
1291
+ Input,
1292
+ Label2 as Label,
1293
+ Progress,
1294
+ Radio,
1295
+ Select,
1296
+ TextField,
978
1297
  destroyAll,
979
1298
  showConfirm,
980
1299
  showDialog,