@incognia/cosmik 2.0.0-alpha.1 → 2.0.0-alpha.2

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 (171) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +34 -34
  3. package/dist/index10.cjs +1 -1
  4. package/dist/index10.cjs.map +1 -1
  5. package/dist/index10.js +69 -9
  6. package/dist/index10.js.map +1 -1
  7. package/dist/index11.cjs +1 -1
  8. package/dist/index11.cjs.map +1 -1
  9. package/dist/index11.js +91 -54
  10. package/dist/index11.js.map +1 -1
  11. package/dist/index12.cjs +1 -1
  12. package/dist/index12.cjs.map +1 -1
  13. package/dist/index12.js +51 -151
  14. package/dist/index12.js.map +1 -1
  15. package/dist/index13.cjs +1 -1
  16. package/dist/index13.cjs.map +1 -1
  17. package/dist/index13.js +16 -86
  18. package/dist/index13.js.map +1 -1
  19. package/dist/index14.cjs +1 -1
  20. package/dist/index14.cjs.map +1 -1
  21. package/dist/index14.js +83 -66
  22. package/dist/index14.js.map +1 -1
  23. package/dist/index15.cjs +1 -1
  24. package/dist/index15.cjs.map +1 -1
  25. package/dist/index15.js +81 -98
  26. package/dist/index15.js.map +1 -1
  27. package/dist/index16.cjs +1 -1
  28. package/dist/index16.cjs.map +1 -1
  29. package/dist/index16.js +105 -38
  30. package/dist/index16.js.map +1 -1
  31. package/dist/index17.cjs +1 -1
  32. package/dist/index17.cjs.map +1 -1
  33. package/dist/index17.js +34 -17
  34. package/dist/index17.js.map +1 -1
  35. package/dist/index18.cjs +1 -1
  36. package/dist/index18.cjs.map +1 -1
  37. package/dist/index18.js +68 -82
  38. package/dist/index18.js.map +1 -1
  39. package/dist/index19.cjs +1 -1
  40. package/dist/index19.cjs.map +1 -1
  41. package/dist/index19.js +63 -84
  42. package/dist/index19.js.map +1 -1
  43. package/dist/index2.cjs +1 -1
  44. package/dist/index20.cjs +1 -1
  45. package/dist/index20.cjs.map +1 -1
  46. package/dist/index20.js +19 -114
  47. package/dist/index20.js.map +1 -1
  48. package/dist/index21.cjs +1 -1
  49. package/dist/index21.cjs.map +1 -1
  50. package/dist/index21.js +10 -36
  51. package/dist/index21.js.map +1 -1
  52. package/dist/index22.cjs +1 -1
  53. package/dist/index22.cjs.map +1 -1
  54. package/dist/index22.js +12 -72
  55. package/dist/index22.js.map +1 -1
  56. package/dist/index23.cjs +1 -1
  57. package/dist/index23.cjs.map +1 -1
  58. package/dist/index23.js +46 -64
  59. package/dist/index23.js.map +1 -1
  60. package/dist/index24.cjs +1 -1
  61. package/dist/index24.cjs.map +1 -1
  62. package/dist/index24.js +6 -28
  63. package/dist/index24.js.map +1 -1
  64. package/dist/index25.cjs +1 -1
  65. package/dist/index25.cjs.map +1 -1
  66. package/dist/index25.js +19 -12
  67. package/dist/index25.js.map +1 -1
  68. package/dist/index26.cjs +1 -1
  69. package/dist/index26.cjs.map +1 -1
  70. package/dist/index26.js +62 -11
  71. package/dist/index26.js.map +1 -1
  72. package/dist/index27.cjs +1 -1
  73. package/dist/index27.cjs.map +1 -1
  74. package/dist/index27.js +16 -46
  75. package/dist/index27.js.map +1 -1
  76. package/dist/index28.cjs +1 -1
  77. package/dist/index28.cjs.map +1 -1
  78. package/dist/index28.js +26 -7
  79. package/dist/index28.js.map +1 -1
  80. package/dist/index29.cjs +1 -1
  81. package/dist/index29.cjs.map +1 -1
  82. package/dist/index29.js +92 -20
  83. package/dist/index29.js.map +1 -1
  84. package/dist/index3.js +18 -0
  85. package/dist/index3.js.map +1 -0
  86. package/dist/index30.cjs +1 -1
  87. package/dist/index30.cjs.map +1 -1
  88. package/dist/index30.js +13 -64
  89. package/dist/index30.js.map +1 -1
  90. package/dist/index31.cjs +1 -1
  91. package/dist/index31.cjs.map +1 -1
  92. package/dist/index31.js +77 -16
  93. package/dist/index31.js.map +1 -1
  94. package/dist/index32.cjs +1 -1
  95. package/dist/index32.cjs.map +1 -1
  96. package/dist/index32.js +8 -26
  97. package/dist/index32.js.map +1 -1
  98. package/dist/index33.cjs +1 -1
  99. package/dist/index33.cjs.map +1 -1
  100. package/dist/index33.js +40 -94
  101. package/dist/index33.js.map +1 -1
  102. package/dist/index34.cjs +1 -1
  103. package/dist/index34.cjs.map +1 -1
  104. package/dist/index34.js +14 -13
  105. package/dist/index34.js.map +1 -1
  106. package/dist/index35.cjs +1 -1
  107. package/dist/index35.cjs.map +1 -1
  108. package/dist/index35.js +44 -59
  109. package/dist/index35.js.map +1 -1
  110. package/dist/index36.cjs +1 -1
  111. package/dist/index36.cjs.map +1 -1
  112. package/dist/index36.js +32 -8
  113. package/dist/index36.js.map +1 -1
  114. package/dist/index37.cjs +1 -1
  115. package/dist/index37.cjs.map +1 -1
  116. package/dist/index37.js +69 -40
  117. package/dist/index37.js.map +1 -1
  118. package/dist/index38.cjs +1 -1
  119. package/dist/index38.cjs.map +1 -1
  120. package/dist/index38.js +9 -16
  121. package/dist/index38.js.map +1 -1
  122. package/dist/index39.cjs +1 -1
  123. package/dist/index39.cjs.map +1 -1
  124. package/dist/index39.js +81 -65
  125. package/dist/index39.js.map +1 -1
  126. package/dist/index4.js +32 -15
  127. package/dist/index4.js.map +1 -1
  128. package/dist/index40.cjs +1 -1
  129. package/dist/index40.cjs.map +1 -1
  130. package/dist/index40.js +45 -31
  131. package/dist/index40.js.map +1 -1
  132. package/dist/index41.cjs +1 -1
  133. package/dist/index41.cjs.map +1 -1
  134. package/dist/index41.js +43 -68
  135. package/dist/index41.js.map +1 -1
  136. package/dist/index42.cjs +1 -1
  137. package/dist/index42.cjs.map +1 -1
  138. package/dist/index42.js +78 -10
  139. package/dist/index42.js.map +1 -1
  140. package/dist/index43.cjs +1 -1
  141. package/dist/index43.cjs.map +1 -1
  142. package/dist/index5.js +1584 -31
  143. package/dist/index5.js.map +1 -1
  144. package/dist/index6.js +10 -1582
  145. package/dist/index6.js.map +1 -1
  146. package/dist/index7.js +57 -11
  147. package/dist/index7.js.map +1 -1
  148. package/dist/index8.cjs +1 -1
  149. package/dist/index8.cjs.map +1 -1
  150. package/dist/index8.js +153 -19
  151. package/dist/index8.js.map +1 -1
  152. package/dist/index9.cjs +1 -6
  153. package/dist/index9.cjs.map +1 -1
  154. package/dist/index9.js +89 -159
  155. package/dist/index9.js.map +1 -1
  156. package/package.json +1 -1
  157. package/dist/index2.js +0 -7
  158. package/dist/index43.js +0 -87
  159. package/dist/index43.js.map +0 -1
  160. package/dist/index44.cjs +0 -2
  161. package/dist/index44.cjs.map +0 -1
  162. package/dist/index44.js +0 -53
  163. package/dist/index44.js.map +0 -1
  164. package/dist/index45.cjs +0 -2
  165. package/dist/index45.cjs.map +0 -1
  166. package/dist/index45.js +0 -49
  167. package/dist/index45.js.map +0 -1
  168. package/dist/index46.cjs +0 -2
  169. package/dist/index46.cjs.map +0 -1
  170. package/dist/index46.js +0 -85
  171. package/dist/index46.js.map +0 -1
package/dist/index25.js CHANGED
@@ -1,17 +1,24 @@
1
- import { cn as e } from "./index7.js";
2
- import { require_jsx_runtime as t } from "./index10.js";
3
- import "react";
4
- //#region src/Input/index.tsx
5
- var n = t();
6
- function r({ className: t, type: r, ...i }) {
7
- return /* @__PURE__ */ (0, n.jsx)("input", {
8
- type: r,
9
- "data-slot": "input",
10
- className: e("flex h-[36px] w-full rounded border border-gray-900/24 bg-white px-12 py-[6px] text-md", "file:border-0 file:bg-white file:text-md file:font-semibold", "placeholder:text-gray-400", "hover:shadow-field-hover", "active:shadow-field-active", "focus-visible:outline-none focus:shadow-field-active", "disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none", t),
11
- ...i
1
+ import { cn as e } from "./index6.js";
2
+ import t from "./index24.js";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ //#region src/Loading/index.tsx
5
+ function i({ className: i }) {
6
+ return /* @__PURE__ */ n("div", {
7
+ role: "alert",
8
+ "aria-busy": !0,
9
+ className: e("flex items-center justify-center", i),
10
+ children: /* @__PURE__ */ r("div", {
11
+ className: "inline-block relative w-[76px] h-48",
12
+ children: [
13
+ /* @__PURE__ */ n(t, { className: "left-8 animate-loading-ellipsis1" }),
14
+ /* @__PURE__ */ n(t, { className: "left-8 animate-loading-ellipsis2" }),
15
+ /* @__PURE__ */ n(t, { className: "left-32 animate-loading-ellipsis2" }),
16
+ /* @__PURE__ */ n(t, { className: "left-[56px] animate-loading-ellipsis3" })
17
+ ]
18
+ })
12
19
  });
13
20
  }
14
21
  //#endregion
15
- export { r as Input };
22
+ export { i as Loading };
16
23
 
17
24
  //# sourceMappingURL=index25.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index25.js","names":[],"sources":["../src/Input/index.tsx"],"sourcesContent":["import * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Input({ className, type, ...props }: React.ComponentProps<'input'>) {\n return (\n <input\n type={type}\n data-slot=\"input\"\n className={cn(\n 'flex h-[36px] w-full rounded border border-gray-900/24 bg-white px-12 py-[6px] text-md',\n 'file:border-0 file:bg-white file:text-md file:font-semibold',\n 'placeholder:text-gray-400',\n 'hover:shadow-field-hover',\n 'active:shadow-field-active',\n 'focus-visible:outline-none focus:shadow-field-active',\n 'disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none',\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Input }\n"],"mappings":";;;;;AAGA,SAAS,EAAM,EAAE,cAAW,SAAM,GAAG,KAAwC;CAC3E,OACE,iBAAA,GAAA,EAAA,KAAC,SAAD;EACQ;EACN,aAAU;EACV,WAAW,EACT,0FACA,+DACA,6BACA,4BACA,8BACA,wDACA,wEACA,CACF;EACA,GAAI;CACL,CAAA;AAEL"}
1
+ {"version":3,"file":"index25.js","names":[],"sources":["../src/Loading/index.tsx"],"sourcesContent":["import { cn } from '../lib/utils'\nimport LoadingDot from './LoadingDot'\n\ntype Props = {\n className?: string\n}\n\nexport function Loading({ className }: Props) {\n return (\n <div\n role=\"alert\"\n aria-busy={true}\n className={cn('flex items-center justify-center', className)}\n >\n <div className=\"inline-block relative w-[76px] h-48\">\n <LoadingDot className=\"left-8 animate-loading-ellipsis1\" />\n <LoadingDot className=\"left-8 animate-loading-ellipsis2\" />\n <LoadingDot className=\"left-32 animate-loading-ellipsis2\" />\n <LoadingDot className=\"left-[56px] animate-loading-ellipsis3\" />\n </div>\n </div>\n )\n}\n"],"mappings":";;;;AAOA,SAAgB,EAAQ,EAAE,gBAAoB;CAC5C,OACE,kBAAC,OAAD;EACE,MAAK;EACL,aAAW;EACX,WAAW,EAAG,oCAAoC,CAAS;YAE3D,kBAAC,OAAD;GAAK,WAAU;aAAf;IACE,kBAAC,GAAD,EAAY,WAAU,mCAAoC,CAAA;IAC1D,kBAAC,GAAD,EAAY,WAAU,mCAAoC,CAAA;IAC1D,kBAAC,GAAD,EAAY,WAAU,oCAAqC,CAAA;IAC3D,kBAAC,GAAD,EAAY,WAAU,wCAAyC,CAAA;GAC5D;;CACF,CAAA;AAET"}
package/dist/index26.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";const e=require("./index2.cjs"),t=require("./index7.cjs"),n=require("./index10.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("@radix-ui/react-label");i=e.__toESM(i,1);var a=n.default;function o({className:e,...n}){return(0,a.jsx)(i.Root,{"data-slot":`label`,className:t.cn(`flex items-center gap-8 leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-64 peer-disabled:cursor-not-allowed peer-disabled:opacity-64`,e),...n})}exports.Label=o;
1
+ const e=require("./index7.cjs"),t=require("./index25.cjs");let n=require("react/jsx-runtime");function r({className:r}){return(0,n.jsx)(`div`,{role:`alert`,"aria-busy":!0,className:e.cn(`flex items-center justify-center`,r),children:(0,n.jsxs)(`div`,{className:`inline-block relative w-[76px] h-48`,children:[(0,n.jsx)(t.default,{className:`left-8 animate-loading-ellipsis1`}),(0,n.jsx)(t.default,{className:`left-8 animate-loading-ellipsis2`}),(0,n.jsx)(t.default,{className:`left-32 animate-loading-ellipsis2`}),(0,n.jsx)(t.default,{className:`left-[56px] animate-loading-ellipsis3`})]})})}exports.Loading=r;
2
2
  //# sourceMappingURL=index26.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index26.cjs","names":[],"sources":["../src/Label/index.tsx"],"sourcesContent":["'use client'\n\nimport * as LabelPrimitive from '@radix-ui/react-label'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Label({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n 'flex items-center gap-8 leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-64 peer-disabled:cursor-not-allowed peer-disabled:opacity-64',\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Label }\n"],"mappings":"kNAMA,SAAS,EAAM,CACb,YACA,GAAG,GACgD,CACnD,OACE,EAAA,EAAA,KAAC,EAAe,KAAhB,CACE,YAAU,QACV,UAAW,EAAA,GACT,kMACA,CACF,EACA,GAAI,CACL,CAAA,CAEL"}
1
+ {"version":3,"file":"index26.cjs","names":[],"sources":["../src/Loading/index.tsx"],"sourcesContent":["import { cn } from '../lib/utils'\nimport LoadingDot from './LoadingDot'\n\ntype Props = {\n className?: string\n}\n\nexport function Loading({ className }: Props) {\n return (\n <div\n role=\"alert\"\n aria-busy={true}\n className={cn('flex items-center justify-center', className)}\n >\n <div className=\"inline-block relative w-[76px] h-48\">\n <LoadingDot className=\"left-8 animate-loading-ellipsis1\" />\n <LoadingDot className=\"left-8 animate-loading-ellipsis2\" />\n <LoadingDot className=\"left-32 animate-loading-ellipsis2\" />\n <LoadingDot className=\"left-[56px] animate-loading-ellipsis3\" />\n </div>\n </div>\n )\n}\n"],"mappings":"8FAOA,SAAgB,EAAQ,CAAE,aAAoB,CAC5C,OACE,EAAA,EAAA,KAAC,MAAD,CACE,KAAK,QACL,YAAW,GACX,UAAW,EAAA,GAAG,mCAAoC,CAAS,YAE3D,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,+CAAf,EACE,EAAA,EAAA,KAAC,EAAA,QAAD,CAAY,UAAU,kCAAoC,CAAA,GAC1D,EAAA,EAAA,KAAC,EAAA,QAAD,CAAY,UAAU,kCAAoC,CAAA,GAC1D,EAAA,EAAA,KAAC,EAAA,QAAD,CAAY,UAAU,mCAAqC,CAAA,GAC3D,EAAA,EAAA,KAAC,EAAA,QAAD,CAAY,UAAU,uCAAyC,CAAA,CAC5D,GACF,CAAA,CAET"}
package/dist/index26.js CHANGED
@@ -1,18 +1,69 @@
1
- "use client";
2
- import { cn as e } from "./index7.js";
3
- import { require_jsx_runtime as t } from "./index10.js";
1
+ import { cn as e } from "./index6.js";
2
+ import { Button as t } from "./index8.js";
3
+ import { ChevronLeftIcon as n, ChevronRightIcon as r, MoreHorizontalIcon as i } from "lucide-react";
4
4
  import "react";
5
- import * as n from "@radix-ui/react-label";
6
- //#region src/Label/index.tsx
7
- var r = t();
8
- function i({ className: t, ...i }) {
9
- return /* @__PURE__ */ (0, r.jsx)(n.Root, {
10
- "data-slot": "label",
11
- className: e("flex items-center gap-8 leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-64 peer-disabled:cursor-not-allowed peer-disabled:opacity-64", t),
5
+ import { jsx as a } from "react/jsx-runtime";
6
+ //#region src/Pagination/index.tsx
7
+ function o({ className: t, ...n }) {
8
+ return /* @__PURE__ */ a("nav", {
9
+ role: "navigation",
10
+ "aria-label": "pagination",
11
+ "data-slot": "pagination",
12
+ className: e("mx-auto flex w-full justify-center", t),
13
+ ...n
14
+ });
15
+ }
16
+ function s({ className: t, ...n }) {
17
+ return /* @__PURE__ */ a("ul", {
18
+ "data-slot": "pagination-content",
19
+ className: e("flex flex-row items-center gap-8", t),
20
+ ...n
21
+ });
22
+ }
23
+ function c({ ...e }) {
24
+ return /* @__PURE__ */ a("li", {
25
+ "data-slot": "pagination-item",
26
+ ...e
27
+ });
28
+ }
29
+ function l({ className: n, isActive: r, ...i }) {
30
+ return /* @__PURE__ */ a(t, {
31
+ "aria-current": r ? "page" : void 0,
32
+ "data-slot": "pagination-button",
33
+ "data-active": r,
34
+ variant: "filled",
35
+ intent: r ? "primary" : "secondary",
36
+ size: "icon",
37
+ className: e({ "bg-purple-800 hover:bg-purple-800 focus:bg-purple-800 active:bg-purple-800": r }, n),
12
38
  ...i
13
39
  });
14
40
  }
41
+ function u({ className: e, ...t }) {
42
+ return /* @__PURE__ */ a(l, {
43
+ "aria-label": "Go to previous page",
44
+ className: e,
45
+ ...t,
46
+ children: /* @__PURE__ */ a(n, { className: "size-16" })
47
+ });
48
+ }
49
+ function d({ className: e, ...t }) {
50
+ return /* @__PURE__ */ a(l, {
51
+ "aria-label": "Go to next page",
52
+ className: e,
53
+ ...t,
54
+ children: /* @__PURE__ */ a(r, { className: "size-16" })
55
+ });
56
+ }
57
+ function f({ className: t, ...n }) {
58
+ return /* @__PURE__ */ a("span", {
59
+ "aria-hidden": !0,
60
+ "data-slot": "pagination-ellipsis",
61
+ className: e("flex size-32 items-center justify-center", t),
62
+ ...n,
63
+ children: /* @__PURE__ */ a(i, { className: "size-16" })
64
+ });
65
+ }
15
66
  //#endregion
16
- export { i as Label };
67
+ export { o as Pagination, l as PaginationButton, s as PaginationContent, f as PaginationEllipsis, c as PaginationItem, d as PaginationNext, u as PaginationPrevious };
17
68
 
18
69
  //# sourceMappingURL=index26.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index26.js","names":[],"sources":["../src/Label/index.tsx"],"sourcesContent":["'use client'\n\nimport * as LabelPrimitive from '@radix-ui/react-label'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Label({\n className,\n ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n return (\n <LabelPrimitive.Root\n data-slot=\"label\"\n className={cn(\n 'flex items-center gap-8 leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-64 peer-disabled:cursor-not-allowed peer-disabled:opacity-64',\n className\n )}\n {...props}\n />\n )\n}\n\nexport { Label }\n"],"mappings":";;;;;;;AAMA,SAAS,EAAM,EACb,cACA,GAAG,KACgD;CACnD,OACE,iBAAA,GAAA,EAAA,KAAC,EAAe,MAAhB;EACE,aAAU;EACV,WAAW,EACT,mMACA,CACF;EACA,GAAI;CACL,CAAA;AAEL"}
1
+ {"version":3,"file":"index26.js","names":[],"sources":["../src/Pagination/index.tsx"],"sourcesContent":["import {\n ChevronLeftIcon,\n ChevronRightIcon,\n MoreHorizontalIcon\n} from 'lucide-react'\nimport * as React from 'react'\nimport { Button } from '../Button'\nimport { cn } from '../lib/utils'\n\nfunction Pagination({ className, ...props }: React.ComponentProps<'nav'>) {\n return (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n )\n}\n\nfunction PaginationContent({\n className,\n ...props\n}: React.ComponentProps<'ul'>) {\n return (\n <ul\n data-slot=\"pagination-content\"\n className={cn('flex flex-row items-center gap-8', className)}\n {...props}\n />\n )\n}\n\nfunction PaginationItem({ ...props }: React.ComponentProps<'li'>) {\n return <li data-slot=\"pagination-item\" {...props} />\n}\n\ntype PaginationButtonProps = {\n isActive?: boolean\n} & React.ComponentProps<typeof Button>\n\nfunction PaginationButton({\n className,\n isActive,\n ...props\n}: PaginationButtonProps) {\n return (\n <Button\n aria-current={isActive ? 'page' : undefined}\n data-slot=\"pagination-button\"\n data-active={isActive}\n variant=\"filled\"\n intent={isActive ? 'primary' : 'secondary'}\n size=\"icon\"\n className={cn(\n {\n 'bg-purple-800 hover:bg-purple-800 focus:bg-purple-800 active:bg-purple-800':\n isActive\n },\n className\n )}\n {...props}\n />\n )\n}\n\nfunction PaginationPrevious({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationButton>) {\n return (\n <PaginationButton\n aria-label=\"Go to previous page\"\n className={className}\n {...props}\n >\n <ChevronLeftIcon className=\"size-16\" />\n </PaginationButton>\n )\n}\n\nfunction PaginationNext({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationButton>) {\n return (\n <PaginationButton\n aria-label=\"Go to next page\"\n className={className}\n {...props}\n >\n <ChevronRightIcon className=\"size-16\" />\n </PaginationButton>\n )\n}\n\nfunction PaginationEllipsis({\n className,\n ...props\n}: React.ComponentProps<'span'>) {\n return (\n <span\n aria-hidden\n data-slot=\"pagination-ellipsis\"\n className={cn('flex size-32 items-center justify-center', className)}\n {...props}\n >\n <MoreHorizontalIcon className=\"size-16\" />\n </span>\n )\n}\n\nexport {\n Pagination,\n PaginationButton,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationNext,\n PaginationPrevious\n}\n"],"mappings":";;;;;;AASA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAsC;CACxE,OACE,kBAAC,OAAD;EACE,MAAK;EACL,cAAW;EACX,aAAU;EACV,WAAW,EAAG,sCAAsC,CAAS;EAC7D,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAkB,EACzB,cACA,GAAG,KAC0B;CAC7B,OACE,kBAAC,MAAD;EACE,aAAU;EACV,WAAW,EAAG,oCAAoC,CAAS;EAC3D,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAe,EAAE,GAAG,KAAqC;CAChE,OAAO,kBAAC,MAAD;EAAI,aAAU;EAAkB,GAAI;CAAQ,CAAA;AACrD;AAMA,SAAS,EAAiB,EACxB,cACA,aACA,GAAG,KACqB;CACxB,OACE,kBAAC,GAAD;EACE,gBAAc,IAAW,SAAS,KAAA;EAClC,aAAU;EACV,eAAa;EACb,SAAQ;EACR,QAAQ,IAAW,YAAY;EAC/B,MAAK;EACL,WAAW,EACT,EACE,8EACE,EACJ,GACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAmB,EAC1B,cACA,GAAG,KAC6C;CAChD,OACE,kBAAC,GAAD;EACE,cAAW;EACA;EACX,GAAI;YAEJ,kBAAC,GAAD,EAAiB,WAAU,UAAW,CAAA;CACtB,CAAA;AAEtB;AAEA,SAAS,EAAe,EACtB,cACA,GAAG,KAC6C;CAChD,OACE,kBAAC,GAAD;EACE,cAAW;EACA;EACX,GAAI;YAEJ,kBAAC,GAAD,EAAkB,WAAU,UAAW,CAAA;CACvB,CAAA;AAEtB;AAEA,SAAS,EAAmB,EAC1B,cACA,GAAG,KAC4B;CAC/B,OACE,kBAAC,QAAD;EACE,eAAA;EACA,aAAU;EACV,WAAW,EAAG,4CAA4C,CAAS;EACnE,GAAI;YAEJ,kBAAC,GAAD,EAAoB,WAAU,UAAW,CAAA;CACrC,CAAA;AAEV"}
package/dist/index27.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const e=require("./index2.cjs"),t=require("./index7.cjs"),n=require("./index10.cjs");let r=require("react");r=e.__toESM(r,1);var i=n.default;function a({children:e,className:n,isLoading:r,...a}){return(0,i.jsxs)(`div`,{className:t.cn(`flex h-full`,n),...a,children:[r&&(0,i.jsx)(o,{}),e]})}function o(){return(0,i.jsx)(`div`,{className:`fixed inset-0 bg-gray-400 z-60 h-4`,children:(0,i.jsx)(`div`,{className:`bg-dataviz-purple h-4 rounded-r animate-page-loader`})})}function s({className:e,...n}){return(0,i.jsx)(`aside`,{className:t.cn(`bg-white flex flex-col shrink-0 border-r border-gray-900/16 sticky h-screen`,e),...n})}function c({className:e,...n}){return(0,i.jsx)(`div`,{className:t.cn(`shrink-0`,e),...n})}function l({className:e,...n}){return(0,i.jsx)(`div`,{className:t.cn(`grow overflow-auto`,e),...n})}function u({className:e,...n}){return(0,i.jsx)(`main`,{className:t.cn(`flex flex-col grow justify-start bg-gray-50 sticky h-screen overflow-hidden`,e),...n})}function d({className:e,...n}){return(0,i.jsx)(`div`,{className:t.cn(`shrink-0 bg-white border-b border-gray-900/16`,e),...n})}exports.Layout=a,exports.LayoutContent=c,exports.LayoutMain=u,exports.LayoutScrollableContent=l,exports.LayoutSidebar=s,exports.LayoutTopbar=d;
1
+ const e=require("./index2.cjs"),t=require("./index7.cjs"),n=require("./index9.cjs");let r=require("lucide-react"),i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime");function o({className:e,...n}){return(0,a.jsx)(`nav`,{role:`navigation`,"aria-label":`pagination`,"data-slot":`pagination`,className:t.cn(`mx-auto flex w-full justify-center`,e),...n})}function s({className:e,...n}){return(0,a.jsx)(`ul`,{"data-slot":`pagination-content`,className:t.cn(`flex flex-row items-center gap-8`,e),...n})}function c({...e}){return(0,a.jsx)(`li`,{"data-slot":`pagination-item`,...e})}function l({className:e,isActive:r,...i}){return(0,a.jsx)(n.Button,{"aria-current":r?`page`:void 0,"data-slot":`pagination-button`,"data-active":r,variant:`filled`,intent:r?`primary`:`secondary`,size:`icon`,className:t.cn({"bg-purple-800 hover:bg-purple-800 focus:bg-purple-800 active:bg-purple-800":r},e),...i})}function u({className:e,...t}){return(0,a.jsx)(l,{"aria-label":`Go to previous page`,className:e,...t,children:(0,a.jsx)(r.ChevronLeftIcon,{className:`size-16`})})}function d({className:e,...t}){return(0,a.jsx)(l,{"aria-label":`Go to next page`,className:e,...t,children:(0,a.jsx)(r.ChevronRightIcon,{className:`size-16`})})}function f({className:e,...n}){return(0,a.jsx)(`span`,{"aria-hidden":!0,"data-slot":`pagination-ellipsis`,className:t.cn(`flex size-32 items-center justify-center`,e),...n,children:(0,a.jsx)(r.MoreHorizontalIcon,{className:`size-16`})})}exports.Pagination=o,exports.PaginationButton=l,exports.PaginationContent=s,exports.PaginationEllipsis=f,exports.PaginationItem=c,exports.PaginationNext=d,exports.PaginationPrevious=u;
2
2
  //# sourceMappingURL=index27.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index27.cjs","names":[],"sources":["../src/Layout/index.tsx"],"sourcesContent":["import React from 'react'\nimport { cn } from '../lib/utils'\n\ntype LayoutProps = React.HTMLAttributes<HTMLDivElement> & {\n children: React.ReactNode\n className?: string\n}\n\nexport function Layout({\n children,\n className,\n isLoading,\n ...props\n}: LayoutProps & {\n isLoading?: boolean\n}) {\n return (\n <div className={cn('flex h-full', className)} {...props}>\n {isLoading && <LayoutPageLoader />}\n {children}\n </div>\n )\n}\n\nfunction LayoutPageLoader() {\n return (\n <div className=\"fixed inset-0 bg-gray-400 z-60 h-4\">\n <div className=\"bg-dataviz-purple h-4 rounded-r animate-page-loader\"></div>\n </div>\n )\n}\n\nexport function LayoutSidebar({ className, ...props }: LayoutProps) {\n return (\n <aside\n className={cn(\n 'bg-white flex flex-col shrink-0 border-r border-gray-900/16 sticky h-screen',\n className\n )}\n {...props}\n />\n )\n}\n\nexport function LayoutContent({ className, ...props }: LayoutProps) {\n return <div className={cn('shrink-0', className)} {...props} />\n}\n\nexport function LayoutScrollableContent({ className, ...props }: LayoutProps) {\n return <div className={cn('grow overflow-auto', className)} {...props} />\n}\n\nexport function LayoutMain({ className, ...props }: LayoutProps) {\n return (\n <main\n className={cn(\n 'flex flex-col grow justify-start bg-gray-50 sticky h-screen overflow-hidden',\n className\n )}\n {...props}\n />\n )\n}\n\nexport function LayoutTopbar({ className, ...props }: LayoutProps) {\n return (\n <div\n className={cn('shrink-0 bg-white border-b border-gray-900/16', className)}\n {...props}\n />\n )\n}\n"],"mappings":"6IAQA,SAAgB,EAAO,CACrB,WACA,YACA,YACA,GAAG,GAGF,CACD,OACE,EAAA,EAAA,MAAC,MAAD,CAAK,UAAW,EAAA,GAAG,cAAe,CAAS,EAAG,GAAI,WAAlD,CACG,IAAa,EAAA,EAAA,KAAC,EAAD,CAAmB,CAAA,EAChC,CACE,GAET,CAEA,SAAS,GAAmB,CAC1B,OACE,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,+CACb,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,qDAA2D,CAAA,CACvE,CAAA,CAET,CAEA,SAAgB,EAAc,CAAE,YAAW,GAAG,GAAsB,CAClE,OACE,EAAA,EAAA,KAAC,QAAD,CACE,UAAW,EAAA,GACT,8EACA,CACF,EACA,GAAI,CACL,CAAA,CAEL,CAEA,SAAgB,EAAc,CAAE,YAAW,GAAG,GAAsB,CAClE,OAAO,EAAA,EAAA,KAAC,MAAD,CAAK,UAAW,EAAA,GAAG,WAAY,CAAS,EAAG,GAAI,CAAQ,CAAA,CAChE,CAEA,SAAgB,EAAwB,CAAE,YAAW,GAAG,GAAsB,CAC5E,OAAO,EAAA,EAAA,KAAC,MAAD,CAAK,UAAW,EAAA,GAAG,qBAAsB,CAAS,EAAG,GAAI,CAAQ,CAAA,CAC1E,CAEA,SAAgB,EAAW,CAAE,YAAW,GAAG,GAAsB,CAC/D,OACE,EAAA,EAAA,KAAC,OAAD,CACE,UAAW,EAAA,GACT,8EACA,CACF,EACA,GAAI,CACL,CAAA,CAEL,CAEA,SAAgB,EAAa,CAAE,YAAW,GAAG,GAAsB,CACjE,OACE,EAAA,EAAA,KAAC,MAAD,CACE,UAAW,EAAA,GAAG,gDAAiD,CAAS,EACxE,GAAI,CACL,CAAA,CAEL"}
1
+ {"version":3,"file":"index27.cjs","names":[],"sources":["../src/Pagination/index.tsx"],"sourcesContent":["import {\n ChevronLeftIcon,\n ChevronRightIcon,\n MoreHorizontalIcon\n} from 'lucide-react'\nimport * as React from 'react'\nimport { Button } from '../Button'\nimport { cn } from '../lib/utils'\n\nfunction Pagination({ className, ...props }: React.ComponentProps<'nav'>) {\n return (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n )\n}\n\nfunction PaginationContent({\n className,\n ...props\n}: React.ComponentProps<'ul'>) {\n return (\n <ul\n data-slot=\"pagination-content\"\n className={cn('flex flex-row items-center gap-8', className)}\n {...props}\n />\n )\n}\n\nfunction PaginationItem({ ...props }: React.ComponentProps<'li'>) {\n return <li data-slot=\"pagination-item\" {...props} />\n}\n\ntype PaginationButtonProps = {\n isActive?: boolean\n} & React.ComponentProps<typeof Button>\n\nfunction PaginationButton({\n className,\n isActive,\n ...props\n}: PaginationButtonProps) {\n return (\n <Button\n aria-current={isActive ? 'page' : undefined}\n data-slot=\"pagination-button\"\n data-active={isActive}\n variant=\"filled\"\n intent={isActive ? 'primary' : 'secondary'}\n size=\"icon\"\n className={cn(\n {\n 'bg-purple-800 hover:bg-purple-800 focus:bg-purple-800 active:bg-purple-800':\n isActive\n },\n className\n )}\n {...props}\n />\n )\n}\n\nfunction PaginationPrevious({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationButton>) {\n return (\n <PaginationButton\n aria-label=\"Go to previous page\"\n className={className}\n {...props}\n >\n <ChevronLeftIcon className=\"size-16\" />\n </PaginationButton>\n )\n}\n\nfunction PaginationNext({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationButton>) {\n return (\n <PaginationButton\n aria-label=\"Go to next page\"\n className={className}\n {...props}\n >\n <ChevronRightIcon className=\"size-16\" />\n </PaginationButton>\n )\n}\n\nfunction PaginationEllipsis({\n className,\n ...props\n}: React.ComponentProps<'span'>) {\n return (\n <span\n aria-hidden\n data-slot=\"pagination-ellipsis\"\n className={cn('flex size-32 items-center justify-center', className)}\n {...props}\n >\n <MoreHorizontalIcon className=\"size-16\" />\n </span>\n )\n}\n\nexport {\n Pagination,\n PaginationButton,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationNext,\n PaginationPrevious\n}\n"],"mappings":"yLASA,SAAS,EAAW,CAAE,YAAW,GAAG,GAAsC,CACxE,OACE,EAAA,EAAA,KAAC,MAAD,CACE,KAAK,aACL,aAAW,aACX,YAAU,aACV,UAAW,EAAA,GAAG,qCAAsC,CAAS,EAC7D,GAAI,CACL,CAAA,CAEL,CAEA,SAAS,EAAkB,CACzB,YACA,GAAG,GAC0B,CAC7B,OACE,EAAA,EAAA,KAAC,KAAD,CACE,YAAU,qBACV,UAAW,EAAA,GAAG,mCAAoC,CAAS,EAC3D,GAAI,CACL,CAAA,CAEL,CAEA,SAAS,EAAe,CAAE,GAAG,GAAqC,CAChE,OAAO,EAAA,EAAA,KAAC,KAAD,CAAI,YAAU,kBAAkB,GAAI,CAAQ,CAAA,CACrD,CAMA,SAAS,EAAiB,CACxB,YACA,WACA,GAAG,GACqB,CACxB,OACE,EAAA,EAAA,KAAC,EAAA,OAAD,CACE,eAAc,EAAW,OAAS,IAAA,GAClC,YAAU,oBACV,cAAa,EACb,QAAQ,SACR,OAAQ,EAAW,UAAY,YAC/B,KAAK,OACL,UAAW,EAAA,GACT,CACE,6EACE,CACJ,EACA,CACF,EACA,GAAI,CACL,CAAA,CAEL,CAEA,SAAS,EAAmB,CAC1B,YACA,GAAG,GAC6C,CAChD,OACE,EAAA,EAAA,KAAC,EAAD,CACE,aAAW,sBACA,YACX,GAAI,YAEJ,EAAA,EAAA,KAAC,EAAA,gBAAD,CAAiB,UAAU,SAAW,CAAA,CACtB,CAAA,CAEtB,CAEA,SAAS,EAAe,CACtB,YACA,GAAG,GAC6C,CAChD,OACE,EAAA,EAAA,KAAC,EAAD,CACE,aAAW,kBACA,YACX,GAAI,YAEJ,EAAA,EAAA,KAAC,EAAA,iBAAD,CAAkB,UAAU,SAAW,CAAA,CACvB,CAAA,CAEtB,CAEA,SAAS,EAAmB,CAC1B,YACA,GAAG,GAC4B,CAC/B,OACE,EAAA,EAAA,KAAC,OAAD,CACE,cAAA,GACA,YAAU,sBACV,UAAW,EAAA,GAAG,2CAA4C,CAAS,EACnE,GAAI,YAEJ,EAAA,EAAA,KAAC,EAAA,mBAAD,CAAoB,UAAU,SAAW,CAAA,CACrC,CAAA,CAEV"}
package/dist/index27.js CHANGED
@@ -1,52 +1,22 @@
1
- import { cn as e } from "./index7.js";
2
- import { require_jsx_runtime as t } from "./index10.js";
1
+ "use client";
2
+ import { cn as e } from "./index6.js";
3
3
  import "react";
4
- //#region src/Layout/index.tsx
5
- var n = t();
6
- function r({ children: t, className: r, isLoading: a, ...o }) {
7
- return /* @__PURE__ */ (0, n.jsxs)("div", {
8
- className: e("flex h-full", r),
9
- ...o,
10
- children: [a && /* @__PURE__ */ (0, n.jsx)(i, {}), t]
11
- });
12
- }
13
- function i() {
14
- return /* @__PURE__ */ (0, n.jsx)("div", {
15
- className: "fixed inset-0 bg-gray-400 z-60 h-4",
16
- children: /* @__PURE__ */ (0, n.jsx)("div", { className: "bg-dataviz-purple h-4 rounded-r animate-page-loader" })
17
- });
18
- }
19
- function a({ className: t, ...r }) {
20
- return /* @__PURE__ */ (0, n.jsx)("aside", {
21
- className: e("bg-white flex flex-col shrink-0 border-r border-gray-900/16 sticky h-screen", t),
22
- ...r
23
- });
24
- }
25
- function o({ className: t, ...r }) {
26
- return /* @__PURE__ */ (0, n.jsx)("div", {
27
- className: e("shrink-0", t),
28
- ...r
29
- });
30
- }
31
- function s({ className: t, ...r }) {
32
- return /* @__PURE__ */ (0, n.jsx)("div", {
33
- className: e("grow overflow-auto", t),
34
- ...r
35
- });
36
- }
37
- function c({ className: t, ...r }) {
38
- return /* @__PURE__ */ (0, n.jsx)("main", {
39
- className: e("flex flex-col grow justify-start bg-gray-50 sticky h-screen overflow-hidden", t),
40
- ...r
41
- });
42
- }
43
- function l({ className: t, ...r }) {
44
- return /* @__PURE__ */ (0, n.jsx)("div", {
45
- className: e("shrink-0 bg-white border-b border-gray-900/16", t),
46
- ...r
4
+ import { jsx as t } from "react/jsx-runtime";
5
+ import * as n from "@radix-ui/react-progress";
6
+ //#region src/Progress/index.tsx
7
+ function r({ className: r, value: i, ...a }) {
8
+ return /* @__PURE__ */ t(n.Root, {
9
+ "data-slot": "progress",
10
+ className: e("relative h-16 w-full overflow-hidden rounded-full bg-gray-900/8", r),
11
+ ...a,
12
+ children: /* @__PURE__ */ t(n.Indicator, {
13
+ "data-slot": "progress-indicator",
14
+ className: "h-full w-full flex-1 bg-purple-700 transition-all",
15
+ style: { transform: `translateX(-${100 - (i || 0)}%)` }
16
+ })
47
17
  });
48
18
  }
49
19
  //#endregion
50
- export { r as Layout, o as LayoutContent, c as LayoutMain, s as LayoutScrollableContent, a as LayoutSidebar, l as LayoutTopbar };
20
+ export { r as Progress };
51
21
 
52
22
  //# sourceMappingURL=index27.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index27.js","names":[],"sources":["../src/Layout/index.tsx"],"sourcesContent":["import React from 'react'\nimport { cn } from '../lib/utils'\n\ntype LayoutProps = React.HTMLAttributes<HTMLDivElement> & {\n children: React.ReactNode\n className?: string\n}\n\nexport function Layout({\n children,\n className,\n isLoading,\n ...props\n}: LayoutProps & {\n isLoading?: boolean\n}) {\n return (\n <div className={cn('flex h-full', className)} {...props}>\n {isLoading && <LayoutPageLoader />}\n {children}\n </div>\n )\n}\n\nfunction LayoutPageLoader() {\n return (\n <div className=\"fixed inset-0 bg-gray-400 z-60 h-4\">\n <div className=\"bg-dataviz-purple h-4 rounded-r animate-page-loader\"></div>\n </div>\n )\n}\n\nexport function LayoutSidebar({ className, ...props }: LayoutProps) {\n return (\n <aside\n className={cn(\n 'bg-white flex flex-col shrink-0 border-r border-gray-900/16 sticky h-screen',\n className\n )}\n {...props}\n />\n )\n}\n\nexport function LayoutContent({ className, ...props }: LayoutProps) {\n return <div className={cn('shrink-0', className)} {...props} />\n}\n\nexport function LayoutScrollableContent({ className, ...props }: LayoutProps) {\n return <div className={cn('grow overflow-auto', className)} {...props} />\n}\n\nexport function LayoutMain({ className, ...props }: LayoutProps) {\n return (\n <main\n className={cn(\n 'flex flex-col grow justify-start bg-gray-50 sticky h-screen overflow-hidden',\n className\n )}\n {...props}\n />\n )\n}\n\nexport function LayoutTopbar({ className, ...props }: LayoutProps) {\n return (\n <div\n className={cn('shrink-0 bg-white border-b border-gray-900/16', className)}\n {...props}\n />\n )\n}\n"],"mappings":";;;;;AAQA,SAAgB,EAAO,EACrB,aACA,cACA,cACA,GAAG,KAGF;CACD,OACE,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,WAAW,EAAG,eAAe,CAAS;EAAG,GAAI;YAAlD,CACG,KAAa,iBAAA,GAAA,EAAA,KAAC,GAAD,CAAmB,CAAA,GAChC,CACE;;AAET;AAEA,SAAS,IAAmB;CAC1B,OACE,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAU;YACb,iBAAA,GAAA,EAAA,KAAC,OAAD,EAAK,WAAU,sDAA2D,CAAA;CACvE,CAAA;AAET;AAEA,SAAgB,EAAc,EAAE,cAAW,GAAG,KAAsB;CAClE,OACE,iBAAA,GAAA,EAAA,KAAC,SAAD;EACE,WAAW,EACT,+EACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAgB,EAAc,EAAE,cAAW,GAAG,KAAsB;CAClE,OAAO,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAW,EAAG,YAAY,CAAS;EAAG,GAAI;CAAQ,CAAA;AAChE;AAEA,SAAgB,EAAwB,EAAE,cAAW,GAAG,KAAsB;CAC5E,OAAO,iBAAA,GAAA,EAAA,KAAC,OAAD;EAAK,WAAW,EAAG,sBAAsB,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC1E;AAEA,SAAgB,EAAW,EAAE,cAAW,GAAG,KAAsB;CAC/D,OACE,iBAAA,GAAA,EAAA,KAAC,QAAD;EACE,WAAW,EACT,+EACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAgB,EAAa,EAAE,cAAW,GAAG,KAAsB;CACjE,OACE,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,WAAW,EAAG,iDAAiD,CAAS;EACxE,GAAI;CACL,CAAA;AAEL"}
1
+ {"version":3,"file":"index27.js","names":[],"sources":["../src/Progress/index.tsx"],"sourcesContent":["'use client'\n\nimport * as ProgressPrimitive from '@radix-ui/react-progress'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Progress({\n className,\n value,\n ...props\n}: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n className={cn(\n 'relative h-16 w-full overflow-hidden rounded-full bg-gray-900/8',\n className\n )}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"h-full w-full flex-1 bg-purple-700 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n )\n}\n\nexport { Progress }\n"],"mappings":";;;;;;AAMA,SAAS,EAAS,EAChB,cACA,UACA,GAAG,KACmD;CACtD,OACE,kBAAC,EAAkB,MAAnB;EACE,aAAU;EACV,WAAW,EACT,mEACA,CACF;EACA,GAAI;YAEJ,kBAAC,EAAkB,WAAnB;GACE,aAAU;GACV,WAAU;GACV,OAAO,EAAE,WAAW,eAAe,OAAO,KAAS,GAAG,IAAI;EAC3D,CAAA;CACqB,CAAA;AAE5B"}
package/dist/index28.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const e=require("./index7.cjs");var t=require("./index10.cjs").default;function n({className:n}){return(0,t.jsx)(`div`,{className:e.cn(`absolute top-[18px] w-12 h-12 rounded-full bg-purple-700`,n)})}exports.default=n;
1
+ "use client";const e=require("./index2.cjs"),t=require("./index7.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime"),i=require("@radix-ui/react-progress");i=e.__toESM(i,1);function a({className:e,value:n,...a}){return(0,r.jsx)(i.Root,{"data-slot":`progress`,className:t.cn(`relative h-16 w-full overflow-hidden rounded-full bg-gray-900/8`,e),...a,children:(0,r.jsx)(i.Indicator,{"data-slot":`progress-indicator`,className:`h-full w-full flex-1 bg-purple-700 transition-all`,style:{transform:`translateX(-${100-(n||0)}%)`}})})}exports.Progress=a;
2
2
  //# sourceMappingURL=index28.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index28.cjs","names":[],"sources":["../src/Loading/LoadingDot.tsx"],"sourcesContent":["import { cn } from '../lib/utils'\n\ntype Props = {\n className?: string\n}\n\nexport default function LoadingDot({ className }: Props) {\n return (\n <div\n className={cn(\n 'absolute top-[18px] w-12 h-12 rounded-full bg-purple-700',\n className\n )}\n ></div>\n )\n}\n"],"mappings":"uEAMA,SAAwB,EAAW,CAAE,aAAoB,CACvD,OACE,EAAA,EAAA,KAAC,MAAD,CACE,UAAW,EAAA,GACT,2DACA,CACF,CACI,CAAA,CAEV"}
1
+ {"version":3,"file":"index28.cjs","names":[],"sources":["../src/Progress/index.tsx"],"sourcesContent":["'use client'\n\nimport * as ProgressPrimitive from '@radix-ui/react-progress'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Progress({\n className,\n value,\n ...props\n}: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n className={cn(\n 'relative h-16 w-full overflow-hidden rounded-full bg-gray-900/8',\n className\n )}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"h-full w-full flex-1 bg-purple-700 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n )\n}\n\nexport { Progress }\n"],"mappings":"yMAMA,SAAS,EAAS,CAChB,YACA,QACA,GAAG,GACmD,CACtD,OACE,EAAA,EAAA,KAAC,EAAkB,KAAnB,CACE,YAAU,WACV,UAAW,EAAA,GACT,kEACA,CACF,EACA,GAAI,YAEJ,EAAA,EAAA,KAAC,EAAkB,UAAnB,CACE,YAAU,qBACV,UAAU,oDACV,MAAO,CAAE,UAAW,eAAe,KAAO,GAAS,GAAG,GAAI,CAC3D,CAAA,CACqB,CAAA,CAE5B"}
package/dist/index28.js CHANGED
@@ -1,11 +1,30 @@
1
- import { cn as e } from "./index7.js";
2
- import { require_jsx_runtime as t } from "./index10.js";
3
- //#region src/Loading/LoadingDot.tsx
4
- var n = t();
5
- function r({ className: t }) {
6
- return /* @__PURE__ */ (0, n.jsx)("div", { className: e("absolute top-[18px] w-12 h-12 rounded-full bg-purple-700", t) });
1
+ "use client";
2
+ import { cn as e } from "./index6.js";
3
+ import { CircleIcon as t } from "lucide-react";
4
+ import "react";
5
+ import { jsx as n } from "react/jsx-runtime";
6
+ import * as r from "@radix-ui/react-radio-group";
7
+ //#region src/RadioGroup/index.tsx
8
+ function i({ className: t, ...i }) {
9
+ return /* @__PURE__ */ n(r.Root, {
10
+ "data-slot": "radio-group",
11
+ className: e("grid gap-8", t),
12
+ ...i
13
+ });
14
+ }
15
+ function a({ className: i, ...a }) {
16
+ return /* @__PURE__ */ n(r.Item, {
17
+ "data-slot": "radio-group-item",
18
+ className: e("aspect-square bg-white peer group h-16 w-16 rounded-full border border-gray-900/16 hover:bg-gray-900/8 active:bg-gray-900/16 disabled:cursor-not-allowed disabled:opacity-64 disabled:bg-white", "data-[state=checked]:bg-white data-[state=checked]:border-purple-700 data-[state=checked]:hover:border-purple-800 data-[state=checked]:active:border-purple-900", i),
19
+ ...a,
20
+ children: /* @__PURE__ */ n(r.Indicator, {
21
+ "data-slot": "radio-group-indicator",
22
+ className: "relative flex items-center justify-center",
23
+ children: /* @__PURE__ */ n(t, { className: "fill-purple-700 text-purple-700 group-hover:fill-purple-800 group-hover:text-purple-800 group-active:fill-purple-900 group-active:text-purple-900 absolute top-1/2 left-1/2 size-[10px] -translate-x-1/2 -translate-y-1/2" })
24
+ })
25
+ });
7
26
  }
8
27
  //#endregion
9
- export { r as default };
28
+ export { i as RadioGroup, a as RadioGroupItem };
10
29
 
11
30
  //# sourceMappingURL=index28.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index28.js","names":[],"sources":["../src/Loading/LoadingDot.tsx"],"sourcesContent":["import { cn } from '../lib/utils'\n\ntype Props = {\n className?: string\n}\n\nexport default function LoadingDot({ className }: Props) {\n return (\n <div\n className={cn(\n 'absolute top-[18px] w-12 h-12 rounded-full bg-purple-700',\n className\n )}\n ></div>\n )\n}\n"],"mappings":";;;;AAMA,SAAwB,EAAW,EAAE,gBAAoB;CACvD,OACE,iBAAA,GAAA,EAAA,KAAC,OAAD,EACE,WAAW,EACT,4DACA,CACF,EACI,CAAA;AAEV"}
1
+ {"version":3,"file":"index28.js","names":[],"sources":["../src/RadioGroup/index.tsx"],"sourcesContent":["'use client'\n\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group'\nimport { CircleIcon } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction RadioGroup({\n className,\n ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n return (\n <RadioGroupPrimitive.Root\n data-slot=\"radio-group\"\n className={cn('grid gap-8', className)}\n {...props}\n />\n )\n}\n\nfunction RadioGroupItem({\n className,\n ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return (\n <RadioGroupPrimitive.Item\n data-slot=\"radio-group-item\"\n className={cn(\n 'aspect-square bg-white peer group h-16 w-16 rounded-full border border-gray-900/16 hover:bg-gray-900/8 active:bg-gray-900/16 disabled:cursor-not-allowed disabled:opacity-64 disabled:bg-white',\n 'data-[state=checked]:bg-white data-[state=checked]:border-purple-700 data-[state=checked]:hover:border-purple-800 data-[state=checked]:active:border-purple-900',\n\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator\n data-slot=\"radio-group-indicator\"\n className=\"relative flex items-center justify-center\"\n >\n <CircleIcon className=\"fill-purple-700 text-purple-700 group-hover:fill-purple-800 group-hover:text-purple-800 group-active:fill-purple-900 group-active:text-purple-900 absolute top-1/2 left-1/2 size-[10px] -translate-x-1/2 -translate-y-1/2\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n )\n}\n\nexport { RadioGroup, RadioGroupItem }\n"],"mappings":";;;;;;;AAOA,SAAS,EAAW,EAClB,cACA,GAAG,KACqD;CACxD,OACE,kBAAC,EAAoB,MAArB;EACE,aAAU;EACV,WAAW,EAAG,cAAc,CAAS;EACrC,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAe,EACtB,cACA,GAAG,KACqD;CACxD,OACE,kBAAC,EAAoB,MAArB;EACE,aAAU;EACV,WAAW,EACT,kMACA,mKAEA,CACF;EACA,GAAI;YAEJ,kBAAC,EAAoB,WAArB;GACE,aAAU;GACV,WAAU;aAEV,kBAAC,GAAD,EAAY,WAAU,4NAA6N,CAAA;EACtN,CAAA;CACP,CAAA;AAE9B"}
package/dist/index29.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const e=require("./index7.cjs"),t=require("./index10.cjs"),n=require("./index28.cjs");var r=t.default;function i({className:t}){return(0,r.jsx)(`div`,{role:`alert`,"aria-busy":!0,className:e.cn(`flex items-center justify-center`,t),children:(0,r.jsxs)(`div`,{className:`inline-block relative w-[76px] h-48`,children:[(0,r.jsx)(n.default,{className:`left-8 animate-loading-ellipsis1`}),(0,r.jsx)(n.default,{className:`left-8 animate-loading-ellipsis2`}),(0,r.jsx)(n.default,{className:`left-32 animate-loading-ellipsis2`}),(0,r.jsx)(n.default,{className:`left-[56px] animate-loading-ellipsis3`})]})})}exports.Loading=i;
1
+ "use client";const e=require("./index2.cjs"),t=require("./index7.cjs");let n=require("lucide-react"),r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("@radix-ui/react-radio-group");a=e.__toESM(a,1);function o({className:e,...n}){return(0,i.jsx)(a.Root,{"data-slot":`radio-group`,className:t.cn(`grid gap-8`,e),...n})}function s({className:e,...r}){return(0,i.jsx)(a.Item,{"data-slot":`radio-group-item`,className:t.cn(`aspect-square bg-white peer group h-16 w-16 rounded-full border border-gray-900/16 hover:bg-gray-900/8 active:bg-gray-900/16 disabled:cursor-not-allowed disabled:opacity-64 disabled:bg-white`,`data-[state=checked]:bg-white data-[state=checked]:border-purple-700 data-[state=checked]:hover:border-purple-800 data-[state=checked]:active:border-purple-900`,e),...r,children:(0,i.jsx)(a.Indicator,{"data-slot":`radio-group-indicator`,className:`relative flex items-center justify-center`,children:(0,i.jsx)(n.CircleIcon,{className:`fill-purple-700 text-purple-700 group-hover:fill-purple-800 group-hover:text-purple-800 group-active:fill-purple-900 group-active:text-purple-900 absolute top-1/2 left-1/2 size-[10px] -translate-x-1/2 -translate-y-1/2`})})})}exports.RadioGroup=o,exports.RadioGroupItem=s;
2
2
  //# sourceMappingURL=index29.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index29.cjs","names":[],"sources":["../src/Loading/index.tsx"],"sourcesContent":["import { cn } from '../lib/utils'\nimport LoadingDot from './LoadingDot'\n\ntype Props = {\n className?: string\n}\n\nexport function Loading({ className }: Props) {\n return (\n <div\n role=\"alert\"\n aria-busy={true}\n className={cn('flex items-center justify-center', className)}\n >\n <div className=\"inline-block relative w-[76px] h-48\">\n <LoadingDot className=\"left-8 animate-loading-ellipsis1\" />\n <LoadingDot className=\"left-8 animate-loading-ellipsis2\" />\n <LoadingDot className=\"left-32 animate-loading-ellipsis2\" />\n <LoadingDot className=\"left-[56px] animate-loading-ellipsis3\" />\n </div>\n </div>\n )\n}\n"],"mappings":"sGAOA,SAAgB,EAAQ,CAAE,aAAoB,CAC5C,OACE,EAAA,EAAA,KAAC,MAAD,CACE,KAAK,QACL,YAAW,GACX,UAAW,EAAA,GAAG,mCAAoC,CAAS,YAE3D,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,+CAAf,EACE,EAAA,EAAA,KAAC,EAAA,QAAD,CAAY,UAAU,kCAAoC,CAAA,GAC1D,EAAA,EAAA,KAAC,EAAA,QAAD,CAAY,UAAU,kCAAoC,CAAA,GAC1D,EAAA,EAAA,KAAC,EAAA,QAAD,CAAY,UAAU,mCAAqC,CAAA,GAC3D,EAAA,EAAA,KAAC,EAAA,QAAD,CAAY,UAAU,uCAAyC,CAAA,CAC5D,GACF,CAAA,CAET"}
1
+ {"version":3,"file":"index29.cjs","names":[],"sources":["../src/RadioGroup/index.tsx"],"sourcesContent":["'use client'\n\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group'\nimport { CircleIcon } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction RadioGroup({\n className,\n ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n return (\n <RadioGroupPrimitive.Root\n data-slot=\"radio-group\"\n className={cn('grid gap-8', className)}\n {...props}\n />\n )\n}\n\nfunction RadioGroupItem({\n className,\n ...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return (\n <RadioGroupPrimitive.Item\n data-slot=\"radio-group-item\"\n className={cn(\n 'aspect-square bg-white peer group h-16 w-16 rounded-full border border-gray-900/16 hover:bg-gray-900/8 active:bg-gray-900/16 disabled:cursor-not-allowed disabled:opacity-64 disabled:bg-white',\n 'data-[state=checked]:bg-white data-[state=checked]:border-purple-700 data-[state=checked]:hover:border-purple-800 data-[state=checked]:active:border-purple-900',\n\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator\n data-slot=\"radio-group-indicator\"\n className=\"relative flex items-center justify-center\"\n >\n <CircleIcon className=\"fill-purple-700 text-purple-700 group-hover:fill-purple-800 group-hover:text-purple-800 group-active:fill-purple-900 group-active:text-purple-900 absolute top-1/2 left-1/2 size-[10px] -translate-x-1/2 -translate-y-1/2\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n )\n}\n\nexport { RadioGroup, RadioGroupItem }\n"],"mappings":"sOAOA,SAAS,EAAW,CAClB,YACA,GAAG,GACqD,CACxD,OACE,EAAA,EAAA,KAAC,EAAoB,KAArB,CACE,YAAU,cACV,UAAW,EAAA,GAAG,aAAc,CAAS,EACrC,GAAI,CACL,CAAA,CAEL,CAEA,SAAS,EAAe,CACtB,YACA,GAAG,GACqD,CACxD,OACE,EAAA,EAAA,KAAC,EAAoB,KAArB,CACE,YAAU,mBACV,UAAW,EAAA,GACT,iMACA,kKAEA,CACF,EACA,GAAI,YAEJ,EAAA,EAAA,KAAC,EAAoB,UAArB,CACE,YAAU,wBACV,UAAU,sDAEV,EAAA,EAAA,KAAC,EAAA,WAAD,CAAY,UAAU,2NAA6N,CAAA,CACtN,CAAA,CACP,CAAA,CAE9B"}
package/dist/index29.js CHANGED
@@ -1,25 +1,97 @@
1
- import { cn as e } from "./index7.js";
2
- import { require_jsx_runtime as t } from "./index10.js";
3
- import n from "./index28.js";
4
- //#region src/Loading/index.tsx
5
- var r = t();
6
- function i({ className: t }) {
7
- return /* @__PURE__ */ (0, r.jsx)("div", {
8
- role: "alert",
9
- "aria-busy": !0,
10
- className: e("flex items-center justify-center", t),
11
- children: /* @__PURE__ */ (0, r.jsxs)("div", {
12
- className: "inline-block relative w-[76px] h-48",
13
- children: [
14
- /* @__PURE__ */ (0, r.jsx)(n, { className: "left-8 animate-loading-ellipsis1" }),
15
- /* @__PURE__ */ (0, r.jsx)(n, { className: "left-8 animate-loading-ellipsis2" }),
16
- /* @__PURE__ */ (0, r.jsx)(n, { className: "left-32 animate-loading-ellipsis2" }),
17
- /* @__PURE__ */ (0, r.jsx)(n, { className: "left-[56px] animate-loading-ellipsis3" })
18
- ]
19
- })
1
+ "use client";
2
+ import { cn as e } from "./index6.js";
3
+ import { CheckIcon as t, ChevronDownIcon as n, ChevronUpIcon as r } from "lucide-react";
4
+ import "react";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import * as o from "@radix-ui/react-select";
7
+ //#region src/Select/index.tsx
8
+ function s({ ...e }) {
9
+ return /* @__PURE__ */ i(o.Root, {
10
+ "data-slot": "select",
11
+ ...e
12
+ });
13
+ }
14
+ function c({ ...e }) {
15
+ return /* @__PURE__ */ i(o.Group, {
16
+ "data-slot": "select-group",
17
+ ...e
18
+ });
19
+ }
20
+ function l({ ...e }) {
21
+ return /* @__PURE__ */ i(o.Value, {
22
+ "data-slot": "select-value",
23
+ ...e
24
+ });
25
+ }
26
+ function u({ className: t, children: r, ...s }) {
27
+ return /* @__PURE__ */ a(o.Trigger, {
28
+ "data-slot": "select-trigger",
29
+ className: e("border border-gray-900/24 data-[placeholder]:text-gray-700 [&_svg:not([class*='text-'])]:text-gray-700", "focus-visible:outline-none focus:shadow-field-active", "flex h-[36px] w-full items-center justify-between rounded bg-white pl-16 pr-12 text-left whitespace-nowrap transition-[color,box-shadow]", "disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none", "*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-8", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-16", "hover:shadow-field-hover", "active:shadow-field-active", "data-[state=open]:shadow-field-active", t),
30
+ ...s,
31
+ children: [r, /* @__PURE__ */ i(o.Icon, {
32
+ asChild: !0,
33
+ children: /* @__PURE__ */ i(n, { className: "size-16 opacity-64 shrink-0 ml-4" })
34
+ })]
35
+ });
36
+ }
37
+ function d({ className: t, children: n, position: r = "popper", ...s }) {
38
+ return /* @__PURE__ */ i(o.Portal, { children: /* @__PURE__ */ a(o.Content, {
39
+ "data-slot": "select-content",
40
+ className: e("bg-white", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", "data-[state=closed]:zoom-out-95 data-[state=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", "relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded border shadow-200", r === "popper" && "data-[side=bottom]:translate-y-4 data-[side=left]:-translate-x-4 data-[side=right]:translate-x-4 data-[side=top]:-translate-y-4", t),
41
+ position: r,
42
+ ...s,
43
+ children: [
44
+ /* @__PURE__ */ i(h, {}),
45
+ /* @__PURE__ */ i(o.Viewport, {
46
+ className: e(r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-4"),
47
+ children: n
48
+ }),
49
+ /* @__PURE__ */ i(g, {})
50
+ ]
51
+ }) });
52
+ }
53
+ function f({ className: t, ...n }) {
54
+ return /* @__PURE__ */ i(o.Label, {
55
+ "data-slot": "select-label",
56
+ className: e("px-16 py-8 pr-8 font-semibold", t),
57
+ ...n
58
+ });
59
+ }
60
+ function p({ className: n, children: r, ...s }) {
61
+ return /* @__PURE__ */ a(o.Item, {
62
+ "data-slot": "select-item",
63
+ className: e("relative flex w-full cursor-default items-center gap-8 py-8 pl-16 pr-32 outline-none select-none", "hover:bg-gray-200", "data-[disabled]:pointer-events-none data-[disabled]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0", "data-[state=checked]:bg-purple-800 data-[state=checked]:text-white hover:data-[state=checked]:bg-purple-800", "[&_svg:not([class*='size-'])]:size-16 *:[span]:last:flex *:[span]:last:flex-col *:[span]:last:gap-8", n),
64
+ ...s,
65
+ children: [/* @__PURE__ */ i("span", {
66
+ className: "absolute right-8 top-8 flex size-16 items-center justify-center",
67
+ children: /* @__PURE__ */ i(o.ItemIndicator, { children: /* @__PURE__ */ i(t, { className: "size-16" }) })
68
+ }), /* @__PURE__ */ i(o.ItemText, { children: r })]
69
+ });
70
+ }
71
+ function m({ className: t, ...n }) {
72
+ return /* @__PURE__ */ i(o.Separator, {
73
+ "data-slot": "select-separator",
74
+ className: e("bg-gray-900/24 pointer-events-none -mx-4 my-4 h-px", t),
75
+ ...n
76
+ });
77
+ }
78
+ function h({ className: t, ...n }) {
79
+ return /* @__PURE__ */ i(o.ScrollUpButton, {
80
+ "data-slot": "select-scroll-up-button",
81
+ className: e("flex cursor-default items-center justify-center py-4", t),
82
+ ...n,
83
+ children: /* @__PURE__ */ i(r, { className: "size-16" })
84
+ });
85
+ }
86
+ function g({ className: t, ...r }) {
87
+ return /* @__PURE__ */ i(o.ScrollDownButton, {
88
+ "data-slot": "select-scroll-down-button",
89
+ className: e("flex cursor-default items-center justify-center py-4", t),
90
+ ...r,
91
+ children: /* @__PURE__ */ i(n, { className: "size-16" })
20
92
  });
21
93
  }
22
94
  //#endregion
23
- export { i as Loading };
95
+ export { s as Select, d as SelectContent, c as SelectGroup, p as SelectItem, f as SelectLabel, g as SelectScrollDownButton, h as SelectScrollUpButton, m as SelectSeparator, u as SelectTrigger, l as SelectValue };
24
96
 
25
97
  //# sourceMappingURL=index29.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index29.js","names":[],"sources":["../src/Loading/index.tsx"],"sourcesContent":["import { cn } from '../lib/utils'\nimport LoadingDot from './LoadingDot'\n\ntype Props = {\n className?: string\n}\n\nexport function Loading({ className }: Props) {\n return (\n <div\n role=\"alert\"\n aria-busy={true}\n className={cn('flex items-center justify-center', className)}\n >\n <div className=\"inline-block relative w-[76px] h-48\">\n <LoadingDot className=\"left-8 animate-loading-ellipsis1\" />\n <LoadingDot className=\"left-8 animate-loading-ellipsis2\" />\n <LoadingDot className=\"left-32 animate-loading-ellipsis2\" />\n <LoadingDot className=\"left-[56px] animate-loading-ellipsis3\" />\n </div>\n </div>\n )\n}\n"],"mappings":";;;;;AAOA,SAAgB,EAAQ,EAAE,gBAAoB;CAC5C,OACE,iBAAA,GAAA,EAAA,KAAC,OAAD;EACE,MAAK;EACL,aAAW;EACX,WAAW,EAAG,oCAAoC,CAAS;YAE3D,iBAAA,GAAA,EAAA,MAAC,OAAD;GAAK,WAAU;aAAf;IACE,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAY,WAAU,mCAAoC,CAAA;IAC1D,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAY,WAAU,mCAAoC,CAAA;IAC1D,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAY,WAAU,oCAAqC,CAAA;IAC3D,iBAAA,GAAA,EAAA,KAAC,GAAD,EAAY,WAAU,wCAAyC,CAAA;GAC5D;;CACF,CAAA;AAET"}
1
+ {"version":3,"file":"index29.js","names":[],"sources":["../src/Select/index.tsx"],"sourcesContent":["'use client'\n\nimport * as SelectPrimitive from '@radix-ui/react-select'\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nfunction Select({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Root>) {\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />\n}\n\nfunction SelectGroup({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Group>) {\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />\n}\n\nfunction SelectValue({\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Value>) {\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />\n}\n\nfunction SelectTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {\n size?: 'sm' | 'default'\n}) {\n return (\n <SelectPrimitive.Trigger\n data-slot=\"select-trigger\"\n className={cn(\n \"border border-gray-900/24 data-[placeholder]:text-gray-700 [&_svg:not([class*='text-'])]:text-gray-700\",\n 'focus-visible:outline-none focus:shadow-field-active',\n 'flex h-[36px] w-full items-center justify-between rounded bg-white pl-16 pr-12 text-left whitespace-nowrap transition-[color,box-shadow]',\n 'disabled:cursor-not-allowed disabled:opacity-64 disabled:shadow-none',\n '*:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-8',\n \"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-16\",\n 'hover:shadow-field-hover',\n 'active:shadow-field-active',\n 'data-[state=open]:shadow-field-active',\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDownIcon className=\"size-16 opacity-64 shrink-0 ml-4\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n )\n}\n\nfunction SelectContent({\n className,\n children,\n position = 'popper',\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Content>) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n data-slot=\"select-content\"\n className={cn(\n 'bg-white',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2',\n 'data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n 'relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded border shadow-200',\n position === 'popper' &&\n 'data-[side=bottom]:translate-y-4 data-[side=left]:-translate-x-4 data-[side=right]:translate-x-4 data-[side=top]:-translate-y-4',\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n position === 'popper' &&\n 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-4'\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n )\n}\n\nfunction SelectLabel({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Label>) {\n return (\n <SelectPrimitive.Label\n data-slot=\"select-label\"\n className={cn('px-16 py-8 pr-8 font-semibold', className)}\n {...props}\n />\n )\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Item>) {\n return (\n <SelectPrimitive.Item\n data-slot=\"select-item\"\n className={cn(\n 'relative flex w-full cursor-default items-center gap-8 py-8 pl-16 pr-32 outline-none select-none',\n 'hover:bg-gray-200',\n 'data-[disabled]:pointer-events-none data-[disabled]:opacity-64 [&_svg]:pointer-events-none [&_svg]:shrink-0',\n 'data-[state=checked]:bg-purple-800 data-[state=checked]:text-white hover:data-[state=checked]:bg-purple-800',\n \"[&_svg:not([class*='size-'])]:size-16 *:[span]:last:flex *:[span]:last:flex-col *:[span]:last:gap-8\",\n className\n )}\n {...props}\n >\n <span className=\"absolute right-8 top-8 flex size-16 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <CheckIcon className=\"size-16\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n )\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.Separator>) {\n return (\n <SelectPrimitive.Separator\n data-slot=\"select-separator\"\n className={cn(\n 'bg-gray-900/24 pointer-events-none -mx-4 my-4 h-px',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {\n return (\n <SelectPrimitive.ScrollUpButton\n data-slot=\"select-scroll-up-button\"\n className={cn(\n 'flex cursor-default items-center justify-center py-4',\n className\n )}\n {...props}\n >\n <ChevronUpIcon className=\"size-16\" />\n </SelectPrimitive.ScrollUpButton>\n )\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {\n return (\n <SelectPrimitive.ScrollDownButton\n data-slot=\"select-scroll-down-button\"\n className={cn(\n 'flex cursor-default items-center justify-center py-4',\n className\n )}\n {...props}\n >\n <ChevronDownIcon className=\"size-16\" />\n </SelectPrimitive.ScrollDownButton>\n )\n}\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue\n}\n"],"mappings":";;;;;;;AAOA,SAAS,EAAO,EACd,GAAG,KACiD;CACpD,OAAO,kBAAC,EAAgB,MAAjB;EAAsB,aAAU;EAAS,GAAI;CAAQ,CAAA;AAC9D;AAEA,SAAS,EAAY,EACnB,GAAG,KACkD;CACrD,OAAO,kBAAC,EAAgB,OAAjB;EAAuB,aAAU;EAAe,GAAI;CAAQ,CAAA;AACrE;AAEA,SAAS,EAAY,EACnB,GAAG,KACkD;CACrD,OAAO,kBAAC,EAAgB,OAAjB;EAAuB,aAAU;EAAe,GAAI;CAAQ,CAAA;AACrE;AAEA,SAAS,EAAc,EACrB,cACA,aACA,GAAG,KAGF;CACD,OACE,kBAAC,EAAgB,SAAjB;EACE,aAAU;EACV,WAAW,EACT,0GACA,wDACA,4IACA,wEACA,oJACA,sFACA,4BACA,8BACA,yCACA,CACF;EACA,GAAI;YAdN,CAgBG,GACD,kBAAC,EAAgB,MAAjB;GAAsB,SAAA;aACpB,kBAAC,GAAD,EAAiB,WAAU,mCAAoC,CAAA;EAC3C,CAAA,CACC;;AAE7B;AAEA,SAAS,EAAc,EACrB,cACA,aACA,cAAW,UACX,GAAG,KACoD;CACvD,OACE,kBAAC,EAAgB,QAAjB,EAAA,UACE,kBAAC,EAAgB,SAAjB;EACE,aAAU;EACV,WAAW,EACT,YACA,2HACA,uGACA,wHACA,2LACA,MAAa,YACX,mIACF,CACF;EACU;EACV,GAAI;YAbN;GAeE,kBAAC,GAAD,CAAuB,CAAA;GACvB,kBAAC,EAAgB,UAAjB;IACE,WAAW,EACT,MAAa,YACX,qGACJ;IAEC;GACuB,CAAA;GAC1B,kBAAC,GAAD,CAAyB,CAAA;EACF;IACH,CAAA;AAE5B;AAEA,SAAS,EAAY,EACnB,cACA,GAAG,KACkD;CACrD,OACE,kBAAC,EAAgB,OAAjB;EACE,aAAU;EACV,WAAW,EAAG,iCAAiC,CAAS;EACxD,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAW,EAClB,cACA,aACA,GAAG,KACiD;CACpD,OACE,kBAAC,EAAgB,MAAjB;EACE,aAAU;EACV,WAAW,EACT,oGACA,qBACA,+GACA,+GACA,uGACA,CACF;EACA,GAAI;YAVN,CAYE,kBAAC,QAAD;GAAM,WAAU;aACd,kBAAC,EAAgB,eAAjB,EAAA,UACE,kBAAC,GAAD,EAAW,WAAU,UAAW,CAAA,EACH,CAAA;EAC3B,CAAA,GACN,kBAAC,EAAgB,UAAjB,EAA2B,YAAmC,CAAA,CAC1C;;AAE1B;AAEA,SAAS,EAAgB,EACvB,cACA,GAAG,KACsD;CACzD,OACE,kBAAC,EAAgB,WAAjB;EACE,aAAU;EACV,WAAW,EACT,sDACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAqB,EAC5B,cACA,GAAG,KAC2D;CAC9D,OACE,kBAAC,EAAgB,gBAAjB;EACE,aAAU;EACV,WAAW,EACT,wDACA,CACF;EACA,GAAI;YAEJ,kBAAC,GAAD,EAAe,WAAU,UAAW,CAAA;CACN,CAAA;AAEpC;AAEA,SAAS,EAAuB,EAC9B,cACA,GAAG,KAC6D;CAChE,OACE,kBAAC,EAAgB,kBAAjB;EACE,aAAU;EACV,WAAW,EACT,wDACA,CACF;EACA,GAAI;YAEJ,kBAAC,GAAD,EAAiB,WAAU,UAAW,CAAA;CACN,CAAA;AAEtC"}
package/dist/index3.js ADDED
@@ -0,0 +1,18 @@
1
+ //#region node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
2
+ function e(t) {
3
+ var n, r, i = "";
4
+ if (typeof t == "string" || typeof t == "number") i += t;
5
+ else if (typeof t == "object") if (Array.isArray(t)) {
6
+ var a = t.length;
7
+ for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
8
+ } else for (r in t) t[r] && (i && (i += " "), i += r);
9
+ return i;
10
+ }
11
+ function t() {
12
+ for (var t, n, r = 0, i = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (n = e(t)) && (i && (i += " "), i += n);
13
+ return i;
14
+ }
15
+ //#endregion
16
+ export { t as default };
17
+
18
+ //# sourceMappingURL=index3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index3.js","names":[],"sources":["../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,EAAE,GAAE;CAAC,IAAI,GAAE,GAAE,IAAE;CAAG,IAAa,OAAO,KAAjB,YAA8B,OAAO,KAAjB,UAAmB,KAAG;MAAO,IAAa,OAAO,KAAjB,UAAmB,IAAG,MAAM,QAAQ,CAAC,GAAE;EAAC,IAAI,IAAE,EAAE;EAAO,KAAI,IAAE,GAAE,IAAE,GAAE,KAAI,EAAE,OAAK,IAAE,EAAE,EAAE,EAAE,OAAK,MAAI,KAAG,MAAK,KAAG;CAAE,OAAM,KAAI,KAAK,GAAE,EAAE,OAAK,MAAI,KAAG,MAAK,KAAG;CAAG,OAAO;AAAC;AAAC,SAAgB,IAAM;CAAC,KAAI,IAAI,GAAE,GAAE,IAAE,GAAE,IAAE,IAAG,IAAE,UAAU,QAAO,IAAE,GAAE,KAAI,CAAC,IAAE,UAAU,QAAM,IAAE,EAAE,CAAC,OAAK,MAAI,KAAG,MAAK,KAAG;CAAG,OAAO;AAAC"}