@incognia/cosmik 1.1.0 → 1.1.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 (173) hide show
  1. package/dist/cosmik.css +1 -1
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.js +34 -34
  4. package/dist/index10.cjs +1 -1
  5. package/dist/index10.cjs.map +1 -1
  6. package/dist/index10.js +69 -9
  7. package/dist/index10.js.map +1 -1
  8. package/dist/index11.cjs +1 -1
  9. package/dist/index11.cjs.map +1 -1
  10. package/dist/index11.js +91 -54
  11. package/dist/index11.js.map +1 -1
  12. package/dist/index12.cjs +1 -1
  13. package/dist/index12.cjs.map +1 -1
  14. package/dist/index12.js +51 -151
  15. package/dist/index12.js.map +1 -1
  16. package/dist/index13.cjs +1 -1
  17. package/dist/index13.cjs.map +1 -1
  18. package/dist/index13.js +16 -86
  19. package/dist/index13.js.map +1 -1
  20. package/dist/index14.cjs +1 -1
  21. package/dist/index14.cjs.map +1 -1
  22. package/dist/index14.js +83 -66
  23. package/dist/index14.js.map +1 -1
  24. package/dist/index15.cjs +1 -1
  25. package/dist/index15.cjs.map +1 -1
  26. package/dist/index15.js +81 -98
  27. package/dist/index15.js.map +1 -1
  28. package/dist/index16.cjs +1 -1
  29. package/dist/index16.cjs.map +1 -1
  30. package/dist/index16.js +105 -38
  31. package/dist/index16.js.map +1 -1
  32. package/dist/index17.cjs +1 -1
  33. package/dist/index17.cjs.map +1 -1
  34. package/dist/index17.js +34 -17
  35. package/dist/index17.js.map +1 -1
  36. package/dist/index18.cjs +1 -1
  37. package/dist/index18.cjs.map +1 -1
  38. package/dist/index18.js +68 -82
  39. package/dist/index18.js.map +1 -1
  40. package/dist/index19.cjs +1 -1
  41. package/dist/index19.cjs.map +1 -1
  42. package/dist/index19.js +63 -84
  43. package/dist/index19.js.map +1 -1
  44. package/dist/index2.cjs +1 -1
  45. package/dist/index20.cjs +1 -1
  46. package/dist/index20.cjs.map +1 -1
  47. package/dist/index20.js +19 -114
  48. package/dist/index20.js.map +1 -1
  49. package/dist/index21.cjs +1 -1
  50. package/dist/index21.cjs.map +1 -1
  51. package/dist/index21.js +10 -36
  52. package/dist/index21.js.map +1 -1
  53. package/dist/index22.cjs +1 -1
  54. package/dist/index22.cjs.map +1 -1
  55. package/dist/index22.js +12 -72
  56. package/dist/index22.js.map +1 -1
  57. package/dist/index23.cjs +1 -1
  58. package/dist/index23.cjs.map +1 -1
  59. package/dist/index23.js +46 -64
  60. package/dist/index23.js.map +1 -1
  61. package/dist/index24.cjs +1 -1
  62. package/dist/index24.cjs.map +1 -1
  63. package/dist/index24.js +6 -28
  64. package/dist/index24.js.map +1 -1
  65. package/dist/index25.cjs +1 -1
  66. package/dist/index25.cjs.map +1 -1
  67. package/dist/index25.js +19 -12
  68. package/dist/index25.js.map +1 -1
  69. package/dist/index26.cjs +1 -1
  70. package/dist/index26.cjs.map +1 -1
  71. package/dist/index26.js +62 -11
  72. package/dist/index26.js.map +1 -1
  73. package/dist/index27.cjs +1 -1
  74. package/dist/index27.cjs.map +1 -1
  75. package/dist/index27.js +16 -46
  76. package/dist/index27.js.map +1 -1
  77. package/dist/index28.cjs +1 -1
  78. package/dist/index28.cjs.map +1 -1
  79. package/dist/index28.js +26 -7
  80. package/dist/index28.js.map +1 -1
  81. package/dist/index29.cjs +1 -1
  82. package/dist/index29.cjs.map +1 -1
  83. package/dist/index29.js +92 -20
  84. package/dist/index29.js.map +1 -1
  85. package/dist/index3.js +18 -0
  86. package/dist/index3.js.map +1 -0
  87. package/dist/index30.cjs +1 -1
  88. package/dist/index30.cjs.map +1 -1
  89. package/dist/index30.js +13 -64
  90. package/dist/index30.js.map +1 -1
  91. package/dist/index31.cjs +1 -1
  92. package/dist/index31.cjs.map +1 -1
  93. package/dist/index31.js +77 -16
  94. package/dist/index31.js.map +1 -1
  95. package/dist/index32.cjs +1 -1
  96. package/dist/index32.cjs.map +1 -1
  97. package/dist/index32.js +8 -26
  98. package/dist/index32.js.map +1 -1
  99. package/dist/index33.cjs +1 -1
  100. package/dist/index33.cjs.map +1 -1
  101. package/dist/index33.js +40 -94
  102. package/dist/index33.js.map +1 -1
  103. package/dist/index34.cjs +1 -1
  104. package/dist/index34.cjs.map +1 -1
  105. package/dist/index34.js +14 -13
  106. package/dist/index34.js.map +1 -1
  107. package/dist/index35.cjs +1 -1
  108. package/dist/index35.cjs.map +1 -1
  109. package/dist/index35.js +44 -59
  110. package/dist/index35.js.map +1 -1
  111. package/dist/index36.cjs +1 -1
  112. package/dist/index36.cjs.map +1 -1
  113. package/dist/index36.js +54 -9
  114. package/dist/index36.js.map +1 -1
  115. package/dist/index37.cjs +1 -1
  116. package/dist/index37.cjs.map +1 -1
  117. package/dist/index37.js +69 -40
  118. package/dist/index37.js.map +1 -1
  119. package/dist/index38.cjs +1 -1
  120. package/dist/index38.cjs.map +1 -1
  121. package/dist/index38.js +9 -16
  122. package/dist/index38.js.map +1 -1
  123. package/dist/index39.cjs +1 -1
  124. package/dist/index39.cjs.map +1 -1
  125. package/dist/index39.js +81 -65
  126. package/dist/index39.js.map +1 -1
  127. package/dist/index4.js +32 -15
  128. package/dist/index4.js.map +1 -1
  129. package/dist/index40.cjs +1 -1
  130. package/dist/index40.cjs.map +1 -1
  131. package/dist/index40.js +44 -50
  132. package/dist/index40.js.map +1 -1
  133. package/dist/index41.cjs +1 -1
  134. package/dist/index41.cjs.map +1 -1
  135. package/dist/index41.js +43 -68
  136. package/dist/index41.js.map +1 -1
  137. package/dist/index42.cjs +1 -1
  138. package/dist/index42.cjs.map +1 -1
  139. package/dist/index42.js +78 -10
  140. package/dist/index42.js.map +1 -1
  141. package/dist/index43.cjs +1 -1
  142. package/dist/index43.cjs.map +1 -1
  143. package/dist/index5.js +1584 -31
  144. package/dist/index5.js.map +1 -1
  145. package/dist/index6.js +10 -1582
  146. package/dist/index6.js.map +1 -1
  147. package/dist/index7.js +57 -11
  148. package/dist/index7.js.map +1 -1
  149. package/dist/index8.cjs +1 -1
  150. package/dist/index8.cjs.map +1 -1
  151. package/dist/index8.js +153 -19
  152. package/dist/index8.js.map +1 -1
  153. package/dist/index9.cjs +1 -6
  154. package/dist/index9.cjs.map +1 -1
  155. package/dist/index9.js +89 -159
  156. package/dist/index9.js.map +1 -1
  157. package/package.json +2 -3
  158. package/dist/index2.js +0 -7
  159. package/dist/index43.js +0 -87
  160. package/dist/index43.js.map +0 -1
  161. package/dist/index44.cjs +0 -2
  162. package/dist/index44.cjs.map +0 -1
  163. package/dist/index44.js +0 -53
  164. package/dist/index44.js.map +0 -1
  165. package/dist/index45.cjs +0 -2
  166. package/dist/index45.cjs.map +0 -1
  167. package/dist/index45.js +0 -49
  168. package/dist/index45.js.map +0 -1
  169. package/dist/index46.cjs +0 -2
  170. package/dist/index46.cjs.map +0 -1
  171. package/dist/index46.js +0 -85
  172. package/dist/index46.js.map +0 -1
  173. /package/dist/{src/cosmik-theme.css → cosmik-theme.css} +0 -0
package/dist/index8.js CHANGED
@@ -1,23 +1,157 @@
1
- import { __commonJSMin as e } from "./index2.js";
2
- //#region node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react-jsx-runtime.production.js
3
- var t = /* @__PURE__ */ e(((e) => {
4
- var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
5
- function r(e, n, r) {
6
- var i = null;
7
- if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
8
- else r = n;
9
- return n = r.ref, {
10
- $$typeof: t,
11
- type: e,
12
- key: i,
13
- ref: n === void 0 ? null : n,
14
- props: r
15
- };
1
+ import { cva as e } from "./index4.js";
2
+ import { cn as t } from "./index6.js";
3
+ import "react";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ import { Slot as r } from "@radix-ui/react-slot";
6
+ //#region src/Button/index.tsx
7
+ var i = e("inline-flex items-center justify-center rounded text-base font-semibold outline-none transition-opacity transition-colors disabled:pointer-events-none disabled:opacity-40", {
8
+ variants: {
9
+ variant: {
10
+ filled: "",
11
+ outline: "border",
12
+ ghost: "",
13
+ link: ""
14
+ },
15
+ intent: {
16
+ primary: "",
17
+ secondary: "",
18
+ warning: "",
19
+ danger: "",
20
+ filter: ""
21
+ },
22
+ size: {
23
+ md: "h-40 min-w-96 px-24",
24
+ sm: "h-32 px-16",
25
+ icon: "h-32 w-32",
26
+ "fit-content": ""
27
+ }
28
+ },
29
+ compoundVariants: [
30
+ {
31
+ variant: "filled",
32
+ intent: "primary",
33
+ className: "bg-purple-700 text-white fill-white hover:bg-purple-800 focus:bg-purple-800 data-[state=open]:bg-purple-800 active:bg-purple-900"
34
+ },
35
+ {
36
+ variant: "filled",
37
+ intent: "secondary",
38
+ className: "bg-gray-900/8 text-gray-900 fill-gray-900 hover:bg-gray-900/12 focus:bg-gray-900/12 data-[state=open]:bg-gray-900/12 active:bg-gray-900/16"
39
+ },
40
+ {
41
+ variant: "filled",
42
+ intent: "warning",
43
+ className: "bg-yellow-500 text-white fill-white hover:bg-yellow-600 focus:bg-yellow-600 data-[state=open]:bg-yellow-600 active:bg-yellow-700"
44
+ },
45
+ {
46
+ variant: "filled",
47
+ intent: "danger",
48
+ className: "bg-magenta-500 text-white fill-white hover:bg-magenta-600 focus:bg-magenta-600 data-[state=open]:bg-magenta-600 active:bg-magenta-700"
49
+ },
50
+ {
51
+ variant: "filled",
52
+ intent: "filter",
53
+ className: "bg-purple-100 text-purple-800 fill-purple-800 hover:bg-purple-200 focus:bg-purple-200 data-[state=open]:bg-purple-200 active:bg-purple-300"
54
+ },
55
+ {
56
+ variant: "outline",
57
+ intent: "primary",
58
+ className: "text-purple-700 fill-purple-700 border-purple-700"
59
+ },
60
+ {
61
+ variant: "outline",
62
+ intent: "secondary",
63
+ className: "text-gray-700 fill-gray-700 border-gray-900/24 hover:bg-gray-900/8 focus:bg-gray-900/8 data-[state=open]:bg-gray-900/8 active:bg-gray-900/12"
64
+ },
65
+ {
66
+ variant: "outline",
67
+ intent: "warning",
68
+ className: "text-yellow-500 fill-yellow-500 border-yellow-500"
69
+ },
70
+ {
71
+ variant: "outline",
72
+ intent: "danger",
73
+ className: "text-magenta-500 fill-magenta-500 border-magenta-500"
74
+ },
75
+ {
76
+ variant: "outline",
77
+ intent: "filter",
78
+ className: "text-purple-600 fill-purple-600 border-purple-400"
79
+ },
80
+ {
81
+ variant: ["outline", "ghost"],
82
+ intent: "primary",
83
+ className: "hover:bg-purple-50 focus:bg-purple-50 data-[state=open]:bg-purple-50 active:bg-purple-100"
84
+ },
85
+ {
86
+ variant: ["outline", "ghost"],
87
+ intent: "secondary",
88
+ className: "hover:bg-gray-900/8 focus:bg-gray-900/8 data-[state=open]:bg-gray-900/8 active:bg-gray-900/12"
89
+ },
90
+ {
91
+ variant: ["outline", "ghost"],
92
+ intent: "warning",
93
+ className: "bg-yellow-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12"
94
+ },
95
+ {
96
+ variant: ["outline", "ghost"],
97
+ intent: "danger",
98
+ className: "bg-magenta-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12"
99
+ },
100
+ {
101
+ variant: ["outline", "ghost"],
102
+ intent: "filter",
103
+ className: "bg-purple-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12"
104
+ },
105
+ {
106
+ variant: "ghost",
107
+ intent: "primary",
108
+ className: "text-purple-700 fill-purple-700 hover:text-purple-800 hover:fill-purple-800 focus:text-purple-800 focus:fill-purple-800 data-[state=open]:text-purple-800 data-[state=open]:fill-purple-800 active:text-purple-900 active:fill-purple-900"
109
+ },
110
+ {
111
+ variant: "link",
112
+ intent: "primary",
113
+ className: "text-robinblue-500 fill-robinblue-500 hover:text-robinblue-600 hover:fill-robinblue-600 focus:text-robinblue-600 focus:fill-robinblue-600 data-[state=open]:text-robinblue-600 data-[state=open]:fill-robinblue-600 active:text-robinblue-700 active:fill-robinblue-700"
114
+ },
115
+ {
116
+ variant: ["ghost", "link"],
117
+ intent: "secondary",
118
+ className: "text-gray-700 fill-gray-700 hover:text-gray-800 hover:fill-gray-800 focus:text-gray-800 focus:fill-gray-800 data-[state=open]:text-gray-800 data-[state=open]:fill-gray-800 active:text-gray-900 active:fill-gray-900 "
119
+ },
120
+ {
121
+ variant: ["ghost", "link"],
122
+ intent: "warning",
123
+ className: "text-yellow-500 fill-yellow-500 hover:text-yellow-600 hover:fill-text-yellow-600 focus:text-yellow-600 focus:fill-yellow-600 data-[state=open]:text-yellow-600 data-[state=open]:fill-text-yellow-600 active:text-yellow-700 active:fill-yellow-700"
124
+ },
125
+ {
126
+ variant: ["ghost", "link"],
127
+ intent: "danger",
128
+ className: "text-magenta-500 fill-magenta-500 hover:text-magenta-600 hover:fill-text-magenta-600 focus:text-magenta-600 focus:fill-magenta-600 data-[state=open]:text-magenta-600 data-[state=open]:fill-text-magenta-600 active:text-magenta-700 active:fill-magenta-700"
129
+ },
130
+ {
131
+ variant: ["ghost", "link"],
132
+ intent: "filter",
133
+ className: "text-purple-600 fill-purple-600 hover:text-purple-700 hover:fill-text-purple-700 focus:text-purple-700 focus:fill-purple-700 data-[state=open]:text-purple-700 data-[state=open]:fill-text-purple-700 active:text-purple-800 active:fill-purple-800"
134
+ }
135
+ ],
136
+ defaultVariants: {
137
+ variant: "filled",
138
+ intent: "primary",
139
+ size: "md"
16
140
  }
17
- e.Fragment = n, e.jsx = r, e.jsxs = r;
18
- }));
141
+ });
142
+ function a({ className: e, variant: a, size: o, intent: s, asChild: c = !1, ...l }) {
143
+ return /* @__PURE__ */ n(c ? r : "button", {
144
+ "data-slot": "button",
145
+ className: t(i({
146
+ variant: a,
147
+ size: o,
148
+ intent: s,
149
+ className: e
150
+ })),
151
+ ...l
152
+ });
153
+ }
19
154
  //#endregion
20
- export default t();
21
- export { t as require_react_jsx_runtime_production };
155
+ export { a as Button, i as buttonVariants };
22
156
 
23
157
  //# sourceMappingURL=index8.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index8.js","names":[],"sources":["../node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react-jsx-runtime.production.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n"],"x_google_ignoreList":[0],"mappings":";;;CAWA,IAAI,IAAqB,OAAO,IAAI,4BAA4B,GAC9D,IAAsB,OAAO,IAAI,gBAAgB;CACnD,SAAS,EAAQ,GAAM,GAAQ,GAAU;EACvC,IAAI,IAAM;EAGV,IAFW,MAAX,KAAK,MAAmB,IAAM,KAAK,IACxB,EAAO,QAAlB,KAAK,MAAqB,IAAM,KAAK,EAAO,MACxC,SAAS,GAEX,KAAK,IAAI,KADT,IAAW,CAAC,GACS,GACnB,AAAU,MAAV,UAAuB,EAAS,KAAY,EAAO;OAChD,IAAW;EAElB,OADA,IAAS,EAAS,KACX;GACL,UAAU;GACJ;GACD;GACL,KAAgB,MAAX,KAAK,IAAwB,OAAT;GACzB,OAAO;EACT;CACF;CAGA,AAFA,EAAQ,WAAW,GACnB,EAAQ,MAAM,GACd,EAAQ,OAAO"}
1
+ {"version":3,"file":"index8.js","names":[],"sources":["../src/Button/index.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center rounded text-base font-semibold outline-none transition-opacity transition-colors disabled:pointer-events-none disabled:opacity-40',\n {\n variants: {\n variant: {\n filled: '',\n outline: 'border',\n ghost: '',\n link: ''\n },\n intent: {\n primary: '',\n secondary: '',\n warning: '',\n danger: '',\n filter: ''\n },\n size: {\n md: 'h-40 min-w-96 px-24',\n sm: 'h-32 px-16',\n icon: 'h-32 w-32',\n 'fit-content': ''\n }\n },\n compoundVariants: [\n {\n variant: 'filled',\n intent: 'primary',\n className:\n 'bg-purple-700 text-white fill-white hover:bg-purple-800 focus:bg-purple-800 data-[state=open]:bg-purple-800 active:bg-purple-900'\n },\n {\n variant: 'filled',\n intent: 'secondary',\n className:\n 'bg-gray-900/8 text-gray-900 fill-gray-900 hover:bg-gray-900/12 focus:bg-gray-900/12 data-[state=open]:bg-gray-900/12 active:bg-gray-900/16'\n },\n {\n variant: 'filled',\n intent: 'warning',\n className:\n 'bg-yellow-500 text-white fill-white hover:bg-yellow-600 focus:bg-yellow-600 data-[state=open]:bg-yellow-600 active:bg-yellow-700'\n },\n {\n variant: 'filled',\n intent: 'danger',\n className:\n 'bg-magenta-500 text-white fill-white hover:bg-magenta-600 focus:bg-magenta-600 data-[state=open]:bg-magenta-600 active:bg-magenta-700'\n },\n {\n variant: 'filled',\n intent: 'filter',\n className:\n 'bg-purple-100 text-purple-800 fill-purple-800 hover:bg-purple-200 focus:bg-purple-200 data-[state=open]:bg-purple-200 active:bg-purple-300'\n },\n {\n variant: 'outline',\n intent: 'primary',\n className: 'text-purple-700 fill-purple-700 border-purple-700'\n },\n {\n variant: 'outline',\n intent: 'secondary',\n className:\n 'text-gray-700 fill-gray-700 border-gray-900/24 hover:bg-gray-900/8 focus:bg-gray-900/8 data-[state=open]:bg-gray-900/8 active:bg-gray-900/12'\n },\n {\n variant: 'outline',\n intent: 'warning',\n className: 'text-yellow-500 fill-yellow-500 border-yellow-500'\n },\n {\n variant: 'outline',\n intent: 'danger',\n className: 'text-magenta-500 fill-magenta-500 border-magenta-500'\n },\n {\n variant: 'outline',\n intent: 'filter',\n className: 'text-purple-600 fill-purple-600 border-purple-400'\n },\n {\n variant: ['outline', 'ghost'],\n intent: 'primary',\n className:\n 'hover:bg-purple-50 focus:bg-purple-50 data-[state=open]:bg-purple-50 active:bg-purple-100'\n },\n {\n variant: ['outline', 'ghost'],\n intent: 'secondary',\n className:\n 'hover:bg-gray-900/8 focus:bg-gray-900/8 data-[state=open]:bg-gray-900/8 active:bg-gray-900/12'\n },\n {\n variant: ['outline', 'ghost'],\n intent: 'warning',\n className:\n 'bg-yellow-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12'\n },\n {\n variant: ['outline', 'ghost'],\n intent: 'danger',\n className:\n 'bg-magenta-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12'\n },\n {\n variant: ['outline', 'ghost'],\n intent: 'filter',\n className:\n 'bg-purple-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12'\n },\n {\n variant: 'ghost',\n intent: 'primary',\n className:\n 'text-purple-700 fill-purple-700 hover:text-purple-800 hover:fill-purple-800 focus:text-purple-800 focus:fill-purple-800 data-[state=open]:text-purple-800 data-[state=open]:fill-purple-800 active:text-purple-900 active:fill-purple-900'\n },\n {\n variant: 'link',\n intent: 'primary',\n className:\n 'text-robinblue-500 fill-robinblue-500 hover:text-robinblue-600 hover:fill-robinblue-600 focus:text-robinblue-600 focus:fill-robinblue-600 data-[state=open]:text-robinblue-600 data-[state=open]:fill-robinblue-600 active:text-robinblue-700 active:fill-robinblue-700'\n },\n {\n variant: ['ghost', 'link'],\n intent: 'secondary',\n className:\n 'text-gray-700 fill-gray-700 hover:text-gray-800 hover:fill-gray-800 focus:text-gray-800 focus:fill-gray-800 data-[state=open]:text-gray-800 data-[state=open]:fill-gray-800 active:text-gray-900 active:fill-gray-900 '\n },\n {\n variant: ['ghost', 'link'],\n intent: 'warning',\n className:\n 'text-yellow-500 fill-yellow-500 hover:text-yellow-600 hover:fill-text-yellow-600 focus:text-yellow-600 focus:fill-yellow-600 data-[state=open]:text-yellow-600 data-[state=open]:fill-text-yellow-600 active:text-yellow-700 active:fill-yellow-700'\n },\n {\n variant: ['ghost', 'link'],\n intent: 'danger',\n className:\n 'text-magenta-500 fill-magenta-500 hover:text-magenta-600 hover:fill-text-magenta-600 focus:text-magenta-600 focus:fill-magenta-600 data-[state=open]:text-magenta-600 data-[state=open]:fill-text-magenta-600 active:text-magenta-700 active:fill-magenta-700'\n },\n {\n variant: ['ghost', 'link'],\n intent: 'filter',\n className:\n 'text-purple-600 fill-purple-600 hover:text-purple-700 hover:fill-text-purple-700 focus:text-purple-700 focus:fill-purple-700 data-[state=open]:text-purple-700 data-[state=open]:fill-text-purple-700 active:text-purple-800 active:fill-purple-800'\n }\n ],\n defaultVariants: {\n variant: 'filled',\n intent: 'primary',\n size: 'md'\n }\n }\n)\n\nexport type ButtonProps = React.ComponentProps<'button'> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean\n }\n\nfunction Button({\n className,\n variant,\n size,\n intent,\n asChild = false,\n ...props\n}: ButtonProps) {\n const Comp = asChild ? Slot : 'button'\n\n return (\n <Comp\n data-slot=\"button\"\n className={cn(buttonVariants({ variant, size, intent, className }))}\n {...props}\n />\n )\n}\n\nexport { Button, buttonVariants }\n"],"mappings":";;;;;;AAKA,IAAM,IAAiB,EACrB,8KACA;CACE,UAAU;EACR,SAAS;GACP,QAAQ;GACR,SAAS;GACT,OA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AM;GACzB,QAAQ;GACR,WACE;EACJ;CACF;CACA,iBAAiB;EACf,SAAS;EACT,QAAQ;EACR,MAAM;CACR;AACF,CACF;AAOA,SAAS,EAAO,EACd,cACA,YACA,SACA,WACA,aAAU,IACV,GAAG,KACW;CAGd,OACE,kBAHW,IAAU,IAAO,UAG5B;EACE,aAAU;EACV,WAAW,EAAG,EAAe;GAAE;GAAS;GAAM;GAAQ;EAAU,CAAC,CAAC;EAClE,GAAI;CACL,CAAA;AAEL"}
package/dist/index9.cjs CHANGED
@@ -1,7 +1,2 @@
1
- "use strict";var e=require("./index2.cjs").__commonJSMin((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===D?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case h:return`Portal`;case b:return(e.displayName||`Context`)+`.Provider`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case T:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===g)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===T)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=O.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(k.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function l(){var e=t(this.type);return N[e]||(N[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a,o,s){return n=a.ref,e={$$typeof:m,type:e,key:t,props:a,_owner:i},(n===void 0?null:n)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:o}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:s}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d,p,m){var h=n.children;if(h!==void 0)if(o)if(A(h)){for(o=0;o<h.length;o++)f(h[o]);Object.freeze&&Object.freeze(h)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else f(h);if(k.call(n,`key`)){h=t(e);var g=Object.keys(n).filter(function(e){return e!==`key`});o=0<g.length?`{key: someKey, `+g.join(`: ..., `)+`: ...}`:`{key: someKey}`,I[h+o]||(g=0<g.length?`{`+g.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
2
- let props = %s;
3
- <%s {...props} />
4
- React keys must be passed directly to JSX without using spread:
5
- let props = %s;
6
- <%s key={someKey} {...props} />`,o,h,g,h),I[h+o]=!0)}if(h=null,i!==void 0&&(r(i),h=``+i),s(n)&&(r(n.key),h=``+n.key),`key`in n)for(var _ in i={},n)_!==`key`&&(i[_]=n[_]);else i=n;return h&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,h,d,l,a(),i,p,m)}function f(e){typeof e==`object`&&e&&e.$$typeof===m&&e._store&&(e._store.validated=1)}var p=require("react"),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),D=Symbol.for(`react.client.reference`),O=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=Object.prototype.hasOwnProperty,A=Array.isArray,j=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(e){return e()}};var M,N={},P=p.react_stack_bottom_frame.bind(p,o)(),F=j(i(o)),I={};e.Fragment=g,e.jsx=function(e,t,n,r,a){var o=1e4>O.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r,a,o?Error(`react-stack-top-frame`):P,o?j(i(e)):F)},e.jsxs=function(e,t,n,r,a){var o=1e4>O.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r,a,o?Error(`react-stack-top-frame`):P,o?j(i(e)):F)}})()}));Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return e()}});
1
+ const e=require("./index2.cjs"),t=require("./index5.cjs"),n=require("./index7.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("@radix-ui/react-slot");var o=t.cva(`inline-flex items-center justify-center rounded text-base font-semibold outline-none transition-opacity transition-colors disabled:pointer-events-none disabled:opacity-40`,{variants:{variant:{filled:``,outline:`border`,ghost:``,link:``},intent:{primary:``,secondary:``,warning:``,danger:``,filter:``},size:{md:`h-40 min-w-96 px-24`,sm:`h-32 px-16`,icon:`h-32 w-32`,"fit-content":``}},compoundVariants:[{variant:`filled`,intent:`primary`,className:`bg-purple-700 text-white fill-white hover:bg-purple-800 focus:bg-purple-800 data-[state=open]:bg-purple-800 active:bg-purple-900`},{variant:`filled`,intent:`secondary`,className:`bg-gray-900/8 text-gray-900 fill-gray-900 hover:bg-gray-900/12 focus:bg-gray-900/12 data-[state=open]:bg-gray-900/12 active:bg-gray-900/16`},{variant:`filled`,intent:`warning`,className:`bg-yellow-500 text-white fill-white hover:bg-yellow-600 focus:bg-yellow-600 data-[state=open]:bg-yellow-600 active:bg-yellow-700`},{variant:`filled`,intent:`danger`,className:`bg-magenta-500 text-white fill-white hover:bg-magenta-600 focus:bg-magenta-600 data-[state=open]:bg-magenta-600 active:bg-magenta-700`},{variant:`filled`,intent:`filter`,className:`bg-purple-100 text-purple-800 fill-purple-800 hover:bg-purple-200 focus:bg-purple-200 data-[state=open]:bg-purple-200 active:bg-purple-300`},{variant:`outline`,intent:`primary`,className:`text-purple-700 fill-purple-700 border-purple-700`},{variant:`outline`,intent:`secondary`,className:`text-gray-700 fill-gray-700 border-gray-900/24 hover:bg-gray-900/8 focus:bg-gray-900/8 data-[state=open]:bg-gray-900/8 active:bg-gray-900/12`},{variant:`outline`,intent:`warning`,className:`text-yellow-500 fill-yellow-500 border-yellow-500`},{variant:`outline`,intent:`danger`,className:`text-magenta-500 fill-magenta-500 border-magenta-500`},{variant:`outline`,intent:`filter`,className:`text-purple-600 fill-purple-600 border-purple-400`},{variant:[`outline`,`ghost`],intent:`primary`,className:`hover:bg-purple-50 focus:bg-purple-50 data-[state=open]:bg-purple-50 active:bg-purple-100`},{variant:[`outline`,`ghost`],intent:`secondary`,className:`hover:bg-gray-900/8 focus:bg-gray-900/8 data-[state=open]:bg-gray-900/8 active:bg-gray-900/12`},{variant:[`outline`,`ghost`],intent:`warning`,className:`bg-yellow-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12`},{variant:[`outline`,`ghost`],intent:`danger`,className:`bg-magenta-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12`},{variant:[`outline`,`ghost`],intent:`filter`,className:`bg-purple-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12`},{variant:`ghost`,intent:`primary`,className:`text-purple-700 fill-purple-700 hover:text-purple-800 hover:fill-purple-800 focus:text-purple-800 focus:fill-purple-800 data-[state=open]:text-purple-800 data-[state=open]:fill-purple-800 active:text-purple-900 active:fill-purple-900`},{variant:`link`,intent:`primary`,className:`text-robinblue-500 fill-robinblue-500 hover:text-robinblue-600 hover:fill-robinblue-600 focus:text-robinblue-600 focus:fill-robinblue-600 data-[state=open]:text-robinblue-600 data-[state=open]:fill-robinblue-600 active:text-robinblue-700 active:fill-robinblue-700`},{variant:[`ghost`,`link`],intent:`secondary`,className:`text-gray-700 fill-gray-700 hover:text-gray-800 hover:fill-gray-800 focus:text-gray-800 focus:fill-gray-800 data-[state=open]:text-gray-800 data-[state=open]:fill-gray-800 active:text-gray-900 active:fill-gray-900 `},{variant:[`ghost`,`link`],intent:`warning`,className:`text-yellow-500 fill-yellow-500 hover:text-yellow-600 hover:fill-text-yellow-600 focus:text-yellow-600 focus:fill-yellow-600 data-[state=open]:text-yellow-600 data-[state=open]:fill-text-yellow-600 active:text-yellow-700 active:fill-yellow-700`},{variant:[`ghost`,`link`],intent:`danger`,className:`text-magenta-500 fill-magenta-500 hover:text-magenta-600 hover:fill-text-magenta-600 focus:text-magenta-600 focus:fill-magenta-600 data-[state=open]:text-magenta-600 data-[state=open]:fill-text-magenta-600 active:text-magenta-700 active:fill-magenta-700`},{variant:[`ghost`,`link`],intent:`filter`,className:`text-purple-600 fill-purple-600 hover:text-purple-700 hover:fill-text-purple-700 focus:text-purple-700 focus:fill-purple-700 data-[state=open]:text-purple-700 data-[state=open]:fill-text-purple-700 active:text-purple-800 active:fill-purple-800`}],defaultVariants:{variant:`filled`,intent:`primary`,size:`md`}});function s({className:e,variant:t,size:r,intent:s,asChild:c=!1,...l}){return(0,i.jsx)(c?a.Slot:`button`,{"data-slot":`button`,className:n.cn(o({variant:t,size:r,intent:s,className:e})),...l})}exports.Button=s,exports.buttonVariants=o;
7
2
  //# sourceMappingURL=index9.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index9.cjs","names":[],"sources":["../node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react-jsx-runtime.development.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n"],"x_google_ignoreList":[0],"mappings":"8DAWA,QAAA,IAAA,WAAA,eACG,UAAY,CACX,SAAS,EAAyB,EAAM,CACtC,GAAY,GAAR,KAAc,OAAO,KACzB,GAAmB,OAAO,GAAtB,WACF,OAAO,EAAK,WAAa,EACrB,KACA,EAAK,aAAe,EAAK,MAAQ,KACvC,GAAiB,OAAO,GAApB,SAA0B,OAAO,EACrC,OAAQ,EAAR,CACE,KAAK,EACH,MAAO,WACT,KAAK,EACH,MAAO,WACT,KAAK,EACH,MAAO,aACT,KAAK,EACH,MAAO,WACT,KAAK,EACH,MAAO,eACT,KAAK,EACH,MAAO,UACX,CACA,GAAiB,OAAO,GAApB,SACF,OACgB,OAAO,EAAK,KAAzB,UACC,QAAQ,MACN,mHACF,EACF,EAAK,SALP,CAOE,KAAK,EACH,MAAO,SACT,KAAK,EACH,OAAQ,EAAK,aAAe,WAAa,YAC3C,KAAK,EACH,OAAQ,EAAK,SAAS,aAAe,WAAa,YACpD,KAAK,EACH,IAAI,EAAY,EAAK,OAKrB,MAJA,GAAO,EAAK,YACZ,AAEG,KADC,EAAO,EAAU,aAAe,EAAU,MAAQ,GACrC,IAAP,GAA2C,aAA7B,cAAgB,EAAO,KACxC,EACT,KAAK,EACH,MACG,GAAY,EAAK,aAAe,KACxB,IAAT,KAEI,EAAyB,EAAK,IAAI,GAAK,OADvC,EAGR,KAAK,EACH,EAAY,EAAK,SACjB,EAAO,EAAK,MACZ,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,eAAe,EAC/C,EAAyB,OAAO,IAAI,mBAAmB,EACvD,EAAsB,OAAO,IAAI,gBAAgB,EACjD,EAA2B,OAAO,IAAI,qBAAqB,EAC3D,EAAkB,OAAO,IAAI,YAAY,EACzC,EAAkB,OAAO,IAAI,YAAY,EACzC,EAAsB,OAAO,IAAI,gBAAgB,EACjD,EAAyB,OAAO,IAAI,wBAAwB,EAC5D,EACE,EAAM,gEACR,EAAiB,OAAO,UAAU,eAClC,EAAc,MAAM,QACpB,EAAa,QAAQ,WACjB,QAAQ,WACR,UAAY,CACV,OAAO,IACT,EACN,EAAQ,CACN,yBAA0B,SAAU,EAAmB,CACrD,OAAO,EAAkB,CAC3B,CACF,EACA,IAAI,EACA,EAAyB,CAAC,EAC1B,EAAyB,EAAM,yBAAyB,KAC1D,EACA,CACF,EAAE,EACE,EAAwB,EAAW,EAAY,CAAY,CAAC,EAC5D,EAAwB,CAAC,EAC7B,EAAQ,SAAW,EACnB,EAAQ,IAAM,SAAU,EAAM,EAAQ,EAAU,EAAQ,EAAM,CAC5D,IAAI,EACF,IAAM,EAAqB,6BAC7B,OAAO,EACL,EACA,EACA,EACA,CAAC,EACD,EACA,EACA,EACI,MAAM,uBAAuB,EAC7B,EACJ,EAAmB,EAAW,EAAY,CAAI,CAAC,EAAI,CACrD,CACF,EACA,EAAQ,KAAO,SAAU,EAAM,EAAQ,EAAU,EAAQ,EAAM,CAC7D,IAAI,EACF,IAAM,EAAqB,6BAC7B,OAAO,EACL,EACA,EACA,EACA,CAAC,EACD,EACA,EACA,EACI,MAAM,uBAAuB,EAC7B,EACJ,EAAmB,EAAW,EAAY,CAAI,CAAC,EAAI,CACrD,CACF,CACF,GAAG"}
1
+ {"version":3,"file":"index9.cjs","names":[],"sources":["../src/Button/index.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport * as React from 'react'\nimport { cn } from '../lib/utils'\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center rounded text-base font-semibold outline-none transition-opacity transition-colors disabled:pointer-events-none disabled:opacity-40',\n {\n variants: {\n variant: {\n filled: '',\n outline: 'border',\n ghost: '',\n link: ''\n },\n intent: {\n primary: '',\n secondary: '',\n warning: '',\n danger: '',\n filter: ''\n },\n size: {\n md: 'h-40 min-w-96 px-24',\n sm: 'h-32 px-16',\n icon: 'h-32 w-32',\n 'fit-content': ''\n }\n },\n compoundVariants: [\n {\n variant: 'filled',\n intent: 'primary',\n className:\n 'bg-purple-700 text-white fill-white hover:bg-purple-800 focus:bg-purple-800 data-[state=open]:bg-purple-800 active:bg-purple-900'\n },\n {\n variant: 'filled',\n intent: 'secondary',\n className:\n 'bg-gray-900/8 text-gray-900 fill-gray-900 hover:bg-gray-900/12 focus:bg-gray-900/12 data-[state=open]:bg-gray-900/12 active:bg-gray-900/16'\n },\n {\n variant: 'filled',\n intent: 'warning',\n className:\n 'bg-yellow-500 text-white fill-white hover:bg-yellow-600 focus:bg-yellow-600 data-[state=open]:bg-yellow-600 active:bg-yellow-700'\n },\n {\n variant: 'filled',\n intent: 'danger',\n className:\n 'bg-magenta-500 text-white fill-white hover:bg-magenta-600 focus:bg-magenta-600 data-[state=open]:bg-magenta-600 active:bg-magenta-700'\n },\n {\n variant: 'filled',\n intent: 'filter',\n className:\n 'bg-purple-100 text-purple-800 fill-purple-800 hover:bg-purple-200 focus:bg-purple-200 data-[state=open]:bg-purple-200 active:bg-purple-300'\n },\n {\n variant: 'outline',\n intent: 'primary',\n className: 'text-purple-700 fill-purple-700 border-purple-700'\n },\n {\n variant: 'outline',\n intent: 'secondary',\n className:\n 'text-gray-700 fill-gray-700 border-gray-900/24 hover:bg-gray-900/8 focus:bg-gray-900/8 data-[state=open]:bg-gray-900/8 active:bg-gray-900/12'\n },\n {\n variant: 'outline',\n intent: 'warning',\n className: 'text-yellow-500 fill-yellow-500 border-yellow-500'\n },\n {\n variant: 'outline',\n intent: 'danger',\n className: 'text-magenta-500 fill-magenta-500 border-magenta-500'\n },\n {\n variant: 'outline',\n intent: 'filter',\n className: 'text-purple-600 fill-purple-600 border-purple-400'\n },\n {\n variant: ['outline', 'ghost'],\n intent: 'primary',\n className:\n 'hover:bg-purple-50 focus:bg-purple-50 data-[state=open]:bg-purple-50 active:bg-purple-100'\n },\n {\n variant: ['outline', 'ghost'],\n intent: 'secondary',\n className:\n 'hover:bg-gray-900/8 focus:bg-gray-900/8 data-[state=open]:bg-gray-900/8 active:bg-gray-900/12'\n },\n {\n variant: ['outline', 'ghost'],\n intent: 'warning',\n className:\n 'bg-yellow-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12'\n },\n {\n variant: ['outline', 'ghost'],\n intent: 'danger',\n className:\n 'bg-magenta-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12'\n },\n {\n variant: ['outline', 'ghost'],\n intent: 'filter',\n className:\n 'bg-purple-500 bg-opacity-0 hover:bg-opacity-8 focus:bg-opacity-8 data-[state=open]:bg-opacity-8 active:bg-opacity-12'\n },\n {\n variant: 'ghost',\n intent: 'primary',\n className:\n 'text-purple-700 fill-purple-700 hover:text-purple-800 hover:fill-purple-800 focus:text-purple-800 focus:fill-purple-800 data-[state=open]:text-purple-800 data-[state=open]:fill-purple-800 active:text-purple-900 active:fill-purple-900'\n },\n {\n variant: 'link',\n intent: 'primary',\n className:\n 'text-robinblue-500 fill-robinblue-500 hover:text-robinblue-600 hover:fill-robinblue-600 focus:text-robinblue-600 focus:fill-robinblue-600 data-[state=open]:text-robinblue-600 data-[state=open]:fill-robinblue-600 active:text-robinblue-700 active:fill-robinblue-700'\n },\n {\n variant: ['ghost', 'link'],\n intent: 'secondary',\n className:\n 'text-gray-700 fill-gray-700 hover:text-gray-800 hover:fill-gray-800 focus:text-gray-800 focus:fill-gray-800 data-[state=open]:text-gray-800 data-[state=open]:fill-gray-800 active:text-gray-900 active:fill-gray-900 '\n },\n {\n variant: ['ghost', 'link'],\n intent: 'warning',\n className:\n 'text-yellow-500 fill-yellow-500 hover:text-yellow-600 hover:fill-text-yellow-600 focus:text-yellow-600 focus:fill-yellow-600 data-[state=open]:text-yellow-600 data-[state=open]:fill-text-yellow-600 active:text-yellow-700 active:fill-yellow-700'\n },\n {\n variant: ['ghost', 'link'],\n intent: 'danger',\n className:\n 'text-magenta-500 fill-magenta-500 hover:text-magenta-600 hover:fill-text-magenta-600 focus:text-magenta-600 focus:fill-magenta-600 data-[state=open]:text-magenta-600 data-[state=open]:fill-text-magenta-600 active:text-magenta-700 active:fill-magenta-700'\n },\n {\n variant: ['ghost', 'link'],\n intent: 'filter',\n className:\n 'text-purple-600 fill-purple-600 hover:text-purple-700 hover:fill-text-purple-700 focus:text-purple-700 focus:fill-purple-700 data-[state=open]:text-purple-700 data-[state=open]:fill-text-purple-700 active:text-purple-800 active:fill-purple-800'\n }\n ],\n defaultVariants: {\n variant: 'filled',\n intent: 'primary',\n size: 'md'\n }\n }\n)\n\nexport type ButtonProps = React.ComponentProps<'button'> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean\n }\n\nfunction Button({\n className,\n variant,\n size,\n intent,\n asChild = false,\n ...props\n}: ButtonProps) {\n const Comp = asChild ? Slot : 'button'\n\n return (\n <Comp\n data-slot=\"button\"\n className={cn(buttonVariants({ variant, size, intent, className }))}\n {...props}\n />\n )\n}\n\nexport { Button, buttonVariants }\n"],"mappings":"iMAKA,IAAM,EAAiB,EAAA,IACrB,6KACA,CACE,SAAU,CACR,QAAS,CACP,OAAQ,GACR,QAAS,SACT,MAAO,GACP,KAAM,EACR,EACA,OAAQ,CACN,QAAS,GACT,UAAW,GACX,QAAS,GACT,OAAQ,GACR,OAAQ,EACV,EACA,KAAM,CACJ,GAAI,sBACJ,GAAI,aACJ,KAAM,YACN,cAAe,EACjB,CACF,EACA,iBAAkB,CAChB,CACE,QAAS,SACT,OAAQ,UACR,UACE,kIACJ,EACA,C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A,KAAO,SAG5B,CACE,YAAU,SACV,UAAW,EAAA,GAAG,EAAe,CAAE,UAAS,OAAM,SAAQ,WAAU,CAAC,CAAC,EAClE,GAAI,CACL,CAAA,CAEL"}
package/dist/index9.js CHANGED
@@ -1,162 +1,92 @@
1
- import { __commonJSMin as e, __require as t } from "./index2.js";
2
- //#region node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react-jsx-runtime.development.js
3
- var n = /* @__PURE__ */ e(((e) => {
4
- process.env.NODE_ENV !== "production" && (function() {
5
- function n(e) {
6
- if (e == null) return null;
7
- if (typeof e == "function") return e.$$typeof === O ? null : e.displayName || e.name || null;
8
- if (typeof e == "string") return e;
9
- switch (e) {
10
- case _: return "Fragment";
11
- case y: return "Profiler";
12
- case v: return "StrictMode";
13
- case C: return "Suspense";
14
- case w: return "SuspenseList";
15
- case D: return "Activity";
16
- }
17
- if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
18
- case g: return "Portal";
19
- case x: return (e.displayName || "Context") + ".Provider";
20
- case b: return (e._context.displayName || "Context") + ".Consumer";
21
- case S:
22
- var t = e.render;
23
- return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
24
- case T: return t = e.displayName || null, t === null ? n(e.type) || "Memo" : t;
25
- case E:
26
- t = e._payload, e = e._init;
27
- try {
28
- return n(e(t));
29
- } catch {}
30
- }
31
- return null;
32
- }
33
- function r(e) {
34
- return "" + e;
35
- }
36
- function i(e) {
37
- try {
38
- r(e);
39
- var t = !1;
40
- } catch {
41
- t = !0;
42
- }
43
- if (t) {
44
- t = console;
45
- var n = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
46
- return n.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), r(e);
47
- }
48
- }
49
- function a(e) {
50
- if (e === _) return "<>";
51
- if (typeof e == "object" && e && e.$$typeof === E) return "<...>";
52
- try {
53
- var t = n(e);
54
- return t ? "<" + t + ">" : "<...>";
55
- } catch {
56
- return "<...>";
57
- }
58
- }
59
- function o() {
60
- var e = k.A;
61
- return e === null ? null : e.getOwner();
62
- }
63
- function s() {
64
- return Error("react-stack-top-frame");
65
- }
66
- function c(e) {
67
- if (A.call(e, "key")) {
68
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
69
- if (t && t.isReactWarning) return !1;
70
- }
71
- return e.key !== void 0;
72
- }
73
- function l(e, t) {
74
- function n() {
75
- N || (N = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
76
- }
77
- n.isReactWarning = !0, Object.defineProperty(e, "key", {
78
- get: n,
79
- configurable: !0
80
- });
81
- }
82
- function u() {
83
- var e = n(this.type);
84
- return P[e] || (P[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
85
- }
86
- function d(e, t, n, r, i, a, o, s) {
87
- return n = a.ref, e = {
88
- $$typeof: h,
89
- type: e,
90
- key: t,
91
- props: a,
92
- _owner: i
93
- }, (n === void 0 ? null : n) === null ? Object.defineProperty(e, "ref", {
94
- enumerable: !1,
95
- value: null
96
- }) : Object.defineProperty(e, "ref", {
97
- enumerable: !1,
98
- get: u
99
- }), e._store = {}, Object.defineProperty(e._store, "validated", {
100
- configurable: !1,
101
- enumerable: !1,
102
- writable: !0,
103
- value: 0
104
- }), Object.defineProperty(e, "_debugInfo", {
105
- configurable: !1,
106
- enumerable: !1,
107
- writable: !0,
108
- value: null
109
- }), Object.defineProperty(e, "_debugStack", {
110
- configurable: !1,
111
- enumerable: !1,
112
- writable: !0,
113
- value: o
114
- }), Object.defineProperty(e, "_debugTask", {
115
- configurable: !1,
116
- enumerable: !1,
117
- writable: !0,
118
- value: s
119
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
120
- }
121
- function f(e, t, r, a, s, u, f, m) {
122
- var h = t.children;
123
- if (h !== void 0) if (a) if (j(h)) {
124
- for (a = 0; a < h.length; a++) p(h[a]);
125
- Object.freeze && Object.freeze(h);
126
- } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
127
- else p(h);
128
- if (A.call(t, "key")) {
129
- h = n(e);
130
- var g = Object.keys(t).filter(function(e) {
131
- return e !== "key";
132
- });
133
- a = 0 < g.length ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}", L[h + a] || (g = 0 < g.length ? "{" + g.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, h, g, h), L[h + a] = !0);
134
- }
135
- if (h = null, r !== void 0 && (i(r), h = "" + r), c(t) && (i(t.key), h = "" + t.key), "key" in t) for (var _ in r = {}, t) _ !== "key" && (r[_] = t[_]);
136
- else r = t;
137
- return h && l(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, h, u, s, o(), r, f, m);
138
- }
139
- function p(e) {
140
- typeof e == "object" && e && e.$$typeof === h && e._store && (e._store.validated = 1);
141
- }
142
- var m = t("react"), h = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), x = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), k = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, j = Array.isArray, M = console.createTask ? console.createTask : function() {
143
- return null;
144
- };
145
- m = { react_stack_bottom_frame: function(e) {
146
- return e();
147
- } };
148
- var N, P = {}, F = m.react_stack_bottom_frame.bind(m, s)(), I = M(a(s)), L = {};
149
- e.Fragment = _, e.jsx = function(e, t, n, r, i) {
150
- var o = 1e4 > k.recentlyCreatedOwnerStacks++;
151
- return f(e, t, n, !1, r, i, o ? Error("react-stack-top-frame") : F, o ? M(a(e)) : I);
152
- }, e.jsxs = function(e, t, n, r, i) {
153
- var o = 1e4 > k.recentlyCreatedOwnerStacks++;
154
- return f(e, t, n, !0, r, i, o ? Error("react-stack-top-frame") : F, o ? M(a(e)) : I);
155
- };
156
- })();
157
- }));
1
+ "use client";
2
+ import { cva as e } from "./index4.js";
3
+ import { cn as t } from "./index6.js";
4
+ import { buttonVariants as n } from "./index8.js";
5
+ import "react";
6
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
7
+ import * as a from "@radix-ui/react-alert-dialog";
8
+ //#region src/AlertDialog/index.tsx
9
+ function o({ ...e }) {
10
+ return /* @__PURE__ */ r(a.Root, {
11
+ "data-slot": "alert-dialog",
12
+ ...e
13
+ });
14
+ }
15
+ function s({ ...e }) {
16
+ return /* @__PURE__ */ r(a.Trigger, {
17
+ "data-slot": "alert-dialog-trigger",
18
+ ...e
19
+ });
20
+ }
21
+ function c({ ...e }) {
22
+ return /* @__PURE__ */ r(a.Portal, {
23
+ "data-slot": "alert-dialog-portal",
24
+ ...e
25
+ });
26
+ }
27
+ function l({ className: e, ...n }) {
28
+ return /* @__PURE__ */ r(a.Overlay, {
29
+ "data-slot": "alert-dialog-overlay",
30
+ className: t("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-gray-900/48", e),
31
+ ...n
32
+ });
33
+ }
34
+ function u({ className: e, ...n }) {
35
+ return /* @__PURE__ */ i(c, { children: [/* @__PURE__ */ r(l, {}), /* @__PURE__ */ r(a.Content, {
36
+ "data-slot": "alert-dialog-content",
37
+ className: t("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 fixed left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] gap-24 border-0 p-24 top-24 shadow-200 duration-200 sm:max-w-lg min-w-[384px]", e),
38
+ ...n
39
+ })] });
40
+ }
41
+ function d({ className: e, ...n }) {
42
+ return /* @__PURE__ */ r("div", {
43
+ "data-slot": "alert-dialog-header",
44
+ className: t("flex flex-col gap-8 text-left font-display", e),
45
+ ...n
46
+ });
47
+ }
48
+ function f({ className: e, ...n }) {
49
+ return /* @__PURE__ */ r("div", {
50
+ "data-slot": "alert-dialog-footer",
51
+ className: t("flex gap-8 flex-row justify-end", e),
52
+ ...n
53
+ });
54
+ }
55
+ var p = e("flex items-center text-lg font-semibold", {
56
+ variants: { intent: {
57
+ default: "text-gray-800",
58
+ warning: "text-yellow-600",
59
+ danger: "text-magenta-600"
60
+ } },
61
+ defaultVariants: { intent: "default" }
62
+ });
63
+ function m({ className: e, intent: n, ...i }) {
64
+ return /* @__PURE__ */ r(a.Title, {
65
+ "data-slot": "alert-dialog-title",
66
+ className: t(p({ intent: n }), e),
67
+ ...i
68
+ });
69
+ }
70
+ function h({ className: e, ...n }) {
71
+ return /* @__PURE__ */ r(a.Description, {
72
+ "data-slot": "alert-dialog-description",
73
+ className: t("text-base text-gray-900", e),
74
+ ...n
75
+ });
76
+ }
77
+ function g({ className: e, intent: i, ...o }) {
78
+ return /* @__PURE__ */ r(a.Action, {
79
+ className: t(n({ intent: i }), e),
80
+ ...o
81
+ });
82
+ }
83
+ function _({ className: e, ...i }) {
84
+ return /* @__PURE__ */ r(a.Cancel, {
85
+ className: t(n({ intent: "secondary" }), e),
86
+ ...i
87
+ });
88
+ }
158
89
  //#endregion
159
- export default n();
160
- export { n as require_react_jsx_runtime_development };
90
+ export { o as AlertDialog, g as AlertDialogAction, _ as AlertDialogCancel, u as AlertDialogContent, h as AlertDialogDescription, f as AlertDialogFooter, d as AlertDialogHeader, m as AlertDialogTitle, s as AlertDialogTrigger };
161
91
 
162
92
  //# sourceMappingURL=index9.js.map