@crystallize/design-system 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/index.css +926 -0
  2. package/dist/index.d.ts +123 -0
  3. package/dist/index.js +1023 -0
  4. package/dist/index.mjs +981 -0
  5. package/package.json +73 -0
  6. package/src/action-menu/ActionMenu.stories.tsx +23 -0
  7. package/src/action-menu/action-item.tsx +24 -0
  8. package/src/action-menu/action-menu.tsx +37 -0
  9. package/src/action-menu/index.tsx +1 -0
  10. package/src/button/Button.stories.tsx +63 -0
  11. package/src/button/button.tsx +50 -0
  12. package/src/button/index.ts +3 -0
  13. package/src/button copy/ButtonCopy.stories.tsx +86 -0
  14. package/src/button copy/button.tsx +61 -0
  15. package/src/button copy/index.ts +3 -0
  16. package/src/card/card.stories.tsx +24 -0
  17. package/src/card/card.tsx +25 -0
  18. package/src/card/index.ts +1 -0
  19. package/src/colors/Colors.stories.mdx +33 -0
  20. package/src/dialog/Dialog.stories.tsx +165 -0
  21. package/src/dialog/config.tsx +134 -0
  22. package/src/dialog/confirm-dialog.tsx +59 -0
  23. package/src/dialog/destroyFns.ts +1 -0
  24. package/src/dialog/dialog.tsx +85 -0
  25. package/src/dialog/index.tsx +40 -0
  26. package/src/dialog/types.ts +38 -0
  27. package/src/dropdown-menu/DropdownMenu.stories.tsx +47 -0
  28. package/src/dropdown-menu/dropdown-menu-item.tsx +24 -0
  29. package/src/dropdown-menu/dropdown-menu-label.tsx +17 -0
  30. package/src/dropdown-menu/dropdown-menu-root.tsx +20 -0
  31. package/src/dropdown-menu/index.ts +9 -0
  32. package/src/icon-button/IconButton.stories.tsx +35 -0
  33. package/src/icon-button/icon-button.tsx +42 -0
  34. package/src/icon-button/index.ts +3 -0
  35. package/src/icons/Iconography.stories.mdx +45 -0
  36. package/src/icons/arrow.tsx +15 -0
  37. package/src/icons/cancel.tsx +26 -0
  38. package/src/icons/dots.tsx +24 -0
  39. package/src/icons/error.tsx +50 -0
  40. package/src/icons/glasses.tsx +62 -0
  41. package/src/icons/graphQL.tsx +90 -0
  42. package/src/icons/index.ts +21 -0
  43. package/src/icons/info.tsx +53 -0
  44. package/src/icons/nail-polish.tsx +84 -0
  45. package/src/icons/warning.tsx +62 -0
  46. package/src/index.css +3 -0
  47. package/src/index.ts +8 -0
  48. package/src/vite-env.d.ts +1 -0
package/dist/index.js ADDED
@@ -0,0 +1,1023 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+
26
+ // src/index.ts
27
+ var src_exports = {};
28
+ __export(src_exports, {
29
+ ActionMenu: () => ActionMenu,
30
+ Button: () => Button,
31
+ Dialog: () => Dialog,
32
+ DropdownMenu: () => DropdownMenu,
33
+ destroyAll: () => destroyAll,
34
+ showConfirm: () => showConfirm,
35
+ showDialog: () => showDialog,
36
+ showError: () => showError,
37
+ showInfo: () => showInfo,
38
+ showWarning: () => showWarning
39
+ });
40
+ module.exports = __toCommonJS(src_exports);
41
+
42
+ // src/action-menu/action-menu.tsx
43
+ var import_clsx4 = __toESM(require("clsx"));
44
+
45
+ // src/dropdown-menu/dropdown-menu-root.tsx
46
+ var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
47
+ var import_jsx_runtime = require("react/jsx-runtime");
48
+ function DropdownMenuRoot({ children, content, onOpenChange, alignContent = "start" }) {
49
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenuPrimitive.Root, {
50
+ onOpenChange,
51
+ children: [
52
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuPrimitive.Trigger, {
53
+ asChild: true,
54
+ children
55
+ }),
56
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuPrimitive.Content, {
57
+ align: alignContent,
58
+ sideOffset: 5,
59
+ className: "shadow",
60
+ children: content
61
+ })
62
+ ]
63
+ });
64
+ }
65
+
66
+ // src/dropdown-menu/dropdown-menu-item.tsx
67
+ var DropdownMenuPrimitive2 = __toESM(require("@radix-ui/react-dropdown-menu"));
68
+ var import_clsx = __toESM(require("clsx"));
69
+ var import_jsx_runtime2 = require("react/jsx-runtime");
70
+ function DropdownMenuItem({ children, className, ...delegated }) {
71
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(DropdownMenuPrimitive2.Item, {
72
+ ...delegated,
73
+ className: (0, import_clsx.default)(
74
+ "text-xs font-medium text-black-text",
75
+ "flex h-10 cursor-pointer items-center bg-white px-4 outline-asteroid",
76
+ "hover:bg-[#F8F8F9] hover:outline-none hover:focus-visible:outline-none",
77
+ "first:rounded-tr first:rounded-tl last:rounded-br last:rounded-bl",
78
+ className
79
+ ),
80
+ children
81
+ });
82
+ }
83
+
84
+ // src/dropdown-menu/dropdown-menu-label.tsx
85
+ var import_clsx2 = __toESM(require("clsx"));
86
+ var DropdownMenuPrimitive3 = __toESM(require("@radix-ui/react-dropdown-menu"));
87
+ var import_jsx_runtime3 = require("react/jsx-runtime");
88
+ function DropdownMenuLabel({ children }) {
89
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(DropdownMenuPrimitive3.Label, {
90
+ className: (0, import_clsx2.default)("bg-white px-4 py-2 text-xs text-label", "first:rounded-tl first:rounded-tr"),
91
+ children
92
+ });
93
+ }
94
+
95
+ // src/dropdown-menu/index.ts
96
+ var DropdownMenu = {
97
+ Root: DropdownMenuRoot,
98
+ Item: DropdownMenuItem,
99
+ Label: DropdownMenuLabel
100
+ };
101
+
102
+ // src/icons/arrow.tsx
103
+ var import_react = require("react");
104
+ var import_jsx_runtime4 = require("react/jsx-runtime");
105
+ var Arrow = (0, import_react.forwardRef)((delegated, ref) => {
106
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", {
107
+ ref,
108
+ width: "10",
109
+ height: "10",
110
+ viewBox: "0 0 10 10",
111
+ fill: "currentColor",
112
+ ...delegated,
113
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", {
114
+ d: "M4.14995 9.85C4.24341 9.94161 4.36907 9.99293 4.49995 9.99293C4.63083 9.99293 4.75649 9.94161 4.84995 9.85L8.03995 6.67C8.09195 6.6248 8.13404 6.56934 8.16359 6.5071C8.19314 6.44486 8.20951 6.37719 8.21167 6.30832C8.21383 6.23946 8.20173 6.17089 8.17614 6.10693C8.15055 6.04296 8.11201 5.98497 8.06295 5.9366C8.01389 5.88823 7.95536 5.85052 7.89104 5.82584C7.82671 5.80116 7.75798 5.79003 7.68915 5.79317C7.62033 5.79631 7.55289 5.81363 7.49108 5.84406C7.42927 5.87449 7.37441 5.91737 7.32995 5.97L4.49995 8.78L1.66995 5.96C1.62475 5.908 1.56929 5.86591 1.50705 5.83636C1.44481 5.80681 1.37714 5.79044 1.30827 5.78828C1.23941 5.78612 1.17084 5.79822 1.10688 5.82381C1.04291 5.8494 0.98492 5.88794 0.936549 5.937C0.888179 5.98606 0.850469 6.04459 0.825787 6.10892C0.801105 6.17324 0.789983 6.24197 0.79312 6.3108C0.796256 6.37962 0.813582 6.44706 0.844012 6.50887C0.874442 6.57068 0.917318 6.62554 0.96995 6.67L4.14995 9.85ZM4.49995 -2.18557e-08C4.22381 -3.39261e-08 3.99995 0.223858 3.99995 0.5L3.99995 9.5L4.99995 9.5L4.99995 0.5C4.99995 0.223857 4.77609 -9.78527e-09 4.49995 -2.18557e-08Z"
115
+ })
116
+ });
117
+ });
118
+ Arrow.displayName = "ArrowIcon";
119
+
120
+ // src/icons/cancel.tsx
121
+ var import_react2 = require("react");
122
+ var import_jsx_runtime5 = require("react/jsx-runtime");
123
+ var Cancel = (0, import_react2.forwardRef)((delegated, ref) => {
124
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", {
125
+ ref,
126
+ width: "34",
127
+ height: "34",
128
+ viewBox: "0 0 34 34",
129
+ fill: "none",
130
+ xmlns: "http://www.w3.org/2000/svg",
131
+ ...delegated,
132
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", {
133
+ d: "m27.4301 24.4325-.1299.1299c-.17.15-.6497.5798-1.1695 1.0595l-1.7392 1.5993-.1499.05a.2783.2783 0 0 1-.2299-.14l-3.6183-3.7182-2.6088-2.6388a1.0488 1.0488 0 0 0-.7926-.3838 1.006 1.006 0 0 0-.7096.2899l-5.6474 5.6773-.7696.7496-.07.18h-.2599l-2.6987-2.7088a.3813.3813 0 0 1-.18-.2598l.02-.14 5.6674-5.6173 1.2394-1.2395a.2995.2995 0 0 0 .1-.2398.2903.2903 0 0 0-.1-.2299l-1.8591-1.8692-2.8487-2.8786-1.5692-1.5992-.6197-.6597-.1-.09v-.12a.3689.3689 0 0 1 .12-.2398l2.7786-2.6588.11-.09h.14l.1099.06 5.7273 5.9272.8696.8796a.6998.6998 0 0 0 .9995 0l5.9672-6.0071.1799-.18a4.5467 4.5467 0 0 1 .5597-.5197.5585.5585 0 0 1 .19-.1c.1099 0 .2099.13.2998.22l.08.0899 2.039 2.109s.1899.2.2299.2499a.864.864 0 0 0 .1399.13.7704.7704 0 0 1 .13.1199c.0899.1499 0 .2598-.1799.4298l-6.1172 6.0871a1.3994 1.3994 0 0 0-.5197.7696.9287.9287 0 0 0 .2899.7997l3.0185 2.9786 3.4284 3.1785a2.001 2.001 0 0 1 .1999.2398.2564.2564 0 0 1 .0853.1524.2564.2564 0 0 1-.0323.1715Z",
134
+ fill: "currentColor"
135
+ })
136
+ });
137
+ });
138
+ Cancel.displayName = "CancelIcon";
139
+
140
+ // src/icons/dots.tsx
141
+ var import_react3 = require("react");
142
+ var import_jsx_runtime6 = require("react/jsx-runtime");
143
+ var Dots = (0, import_react3.forwardRef)((delegated, ref) => {
144
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("svg", {
145
+ ref,
146
+ width: "20",
147
+ height: "20",
148
+ viewBox: "0 0 20 20",
149
+ fill: "none",
150
+ xmlns: "http://www.w3.org/2000/svg",
151
+ ...delegated,
152
+ children: [
153
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", {
154
+ cx: "10",
155
+ cy: "5",
156
+ r: "1.7857",
157
+ fill: "#9095A8"
158
+ }),
159
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", {
160
+ cx: "10",
161
+ cy: "10",
162
+ r: "1.7857",
163
+ fill: "#9095A8"
164
+ }),
165
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("circle", {
166
+ cx: "10",
167
+ cy: "15",
168
+ r: "1.7857",
169
+ fill: "#9095A8"
170
+ })
171
+ ]
172
+ });
173
+ });
174
+ Dots.displayName = "DotsIcon";
175
+
176
+ // src/icons/error.tsx
177
+ var import_react4 = require("react");
178
+ var import_jsx_runtime7 = require("react/jsx-runtime");
179
+ var Error2 = (0, import_react4.forwardRef)((delegated, ref) => {
180
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", {
181
+ ref,
182
+ xmlns: "http://www.w3.org/2000/svg",
183
+ width: "22",
184
+ height: "22",
185
+ fill: "none",
186
+ viewBox: "0 0 22 22",
187
+ ...delegated,
188
+ children: [
189
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("g", {
190
+ clipPath: "url(#a)",
191
+ children: [
192
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
193
+ fill: "#DD1367",
194
+ d: "M20.83 11c0 5.43-4.4 9.83-9.83 9.83S1.17 16.43 1.17 11 5.57 1.17 11 1.17s9.83 4.4 9.83 9.83Z"
195
+ }),
196
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
197
+ fill: "#528693",
198
+ fillRule: "evenodd",
199
+ d: "M21.431 11c0 5.76-4.67 10.43-10.43 10.43C5.238 21.43.568 16.76.568 11S5.24.57 11 .57C16.76.57 21.431 5.24 21.431 11Zm-10.43 9.83c5.429 0 9.83-4.4 9.83-9.83s-4.401-9.83-9.83-9.83c-5.43 0-9.832 4.4-9.832 9.83S5.571 20.83 11 20.83Z",
200
+ clipRule: "evenodd"
201
+ }),
202
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
203
+ fill: "#fff",
204
+ fillRule: "evenodd",
205
+ d: "m7.364 13.479 1.157 1.157L11 12.158l2.479 2.478 1.157-1.157L12.158 11l2.478-2.479-1.157-1.157-2.48 2.478-2.478-2.478L7.364 8.52 9.842 11l-2.478 2.479Z",
206
+ clipRule: "evenodd"
207
+ }),
208
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
209
+ fill: "#528693",
210
+ fillRule: "evenodd",
211
+ d: "M6.94 13.903a.6.6 0 0 1 0-.849L8.994 11 6.94 8.946a.6.6 0 0 1 0-.849L8.097 6.94a.6.6 0 0 1 .849 0L11 8.994l2.054-2.054a.6.6 0 0 1 .849 0l1.157 1.157a.6.6 0 0 1 0 .849L13.006 11l2.054 2.054a.6.6 0 0 1 0 .849l-1.157 1.157a.6.6 0 0 1-.849 0L11 13.006 8.946 15.06a.6.6 0 0 1-.849 0L6.94 13.903ZM11 12.158l2.479 2.478 1.157-1.157L12.158 11l2.478-2.479-1.157-1.157L11 9.842 8.521 7.364 7.364 8.52 9.842 11l-2.478 2.479 1.157 1.157L11 12.158Z",
212
+ clipRule: "evenodd"
213
+ })
214
+ ]
215
+ }),
216
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("defs", {
217
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("clipPath", {
218
+ id: "a",
219
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", {
220
+ fill: "#fff",
221
+ d: "M0 0h22v22H0z"
222
+ })
223
+ })
224
+ })
225
+ ]
226
+ });
227
+ });
228
+ Error2.displayName = "ErrorIcon";
229
+
230
+ // src/icons/glasses.tsx
231
+ var import_react5 = require("react");
232
+ var import_jsx_runtime8 = require("react/jsx-runtime");
233
+ var Glasses = (0, import_react5.forwardRef)((delegated, ref) => {
234
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("svg", {
235
+ ref,
236
+ width: "20",
237
+ height: "15",
238
+ viewBox: "0 0 20 15",
239
+ fill: "none",
240
+ xmlns: "http://www.w3.org/2000/svg",
241
+ ...delegated,
242
+ children: [
243
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", {
244
+ fillRule: "evenodd",
245
+ clipRule: "evenodd",
246
+ d: "M7.4856 2.0673c-.3158-.7572-1.2453-1.0361-1.9258-.578l-3.42 2.3025c-.8613.5798-.7287 1.8856.2315 2.2806l.1216.05.2282-.5549-.1216-.05c-.517-.2127-.5884-.9158-.1246-1.228l3.42-2.3025c.3664-.2467.8669-.0965 1.037.3112l.0748.1795a.3.3 0 0 0 .5537-.231l-.0748-.1795Z",
247
+ fill: "#528693"
248
+ }),
249
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", {
250
+ d: "m9.7363 8.289-.2116.453-.906-.4233.2116-.453.906.4234Z",
251
+ fill: "#528793"
252
+ }),
253
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", {
254
+ d: "M4.391 9.9236c1.5958.7593 3.5051.0811 4.2644-1.5148.7593-1.596.081-3.5052-1.5148-4.2644-1.5959-.7593-3.5051-.0811-4.2644 1.5148-.7593 1.5958-.0811 3.505 1.5148 4.2644Z",
255
+ fill: "#BFF6F8"
256
+ }),
257
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", {
258
+ d: "M3.1883 8.7645a3.2004 3.2004 0 0 1-.3446-.514l5.955-2.1168c.0388.203.0579.4094.0568.6162L3.1883 8.7644Zm4.8102-4.212L2.468 6.517a3.2001 3.2001 0 0 0 .1588 1.2118l6.0129-2.136a3.2002 3.2002 0 0 0-.6412-1.0403Z",
259
+ fill: "#fff"
260
+ }),
261
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", {
262
+ fillRule: "evenodd",
263
+ clipRule: "evenodd",
264
+ d: "M4.4255 9.3845c1.4463.6881 3.1766.0735 3.8647-1.3728.688-1.4463.0735-3.1765-1.3728-3.8646-1.4463-.6881-3.1765-.0735-3.8646 1.3728-.6882 1.4462-.0735 3.1765 1.3727 3.8646Zm-.2577.5418c1.7455.8305 3.8337.0887 4.6642-1.6568.8304-1.7455.0887-3.8338-1.6568-4.6642-1.7455-.8305-3.8338-.0887-4.6643 1.6568-.8304 1.7455-.0886 3.8337 1.6569 4.6642Z",
265
+ fill: "#528793"
266
+ }),
267
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", {
268
+ d: "M11.3275 12.7751c1.5959.7593 3.5051.0811 4.2644-1.5148.7593-1.5959.0811-3.5051-1.5148-4.2644-1.5959-.7593-3.5051-.081-4.2644 1.5148-.7593 1.5959-.0811 3.5052 1.5148 4.2644Z",
269
+ fill: "#BFF6F8"
270
+ }),
271
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", {
272
+ d: "M10.1248 11.616a3.2048 3.2048 0 0 1-.3446-.5139l5.9551-2.1168c.0388.203.0578.4094.0568.6161l-5.6673 2.0146Zm4.8102-4.212L9.4045 9.3687a3.1998 3.1998 0 0 0 .1588 1.2117l6.0129-2.1358a3.1995 3.1995 0 0 0-.6412-1.0404Z",
273
+ fill: "#fff"
274
+ }),
275
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", {
276
+ fillRule: "evenodd",
277
+ clipRule: "evenodd",
278
+ d: "M11.3621 12.2361c1.4462.6881 3.1765.0734 3.8646-1.3728.6881-1.4463.0735-3.1766-1.3728-3.8647-1.4463-.688-3.1765-.0735-3.8646 1.3728-.6881 1.4463-.0735 3.1766 1.3728 3.8647Zm-.2578.5418c1.7455.8304 3.8337.0887 4.6642-1.6568.8305-1.7455.0887-3.8338-1.6568-4.6643-1.7455-.8304-3.8338-.0887-4.6642 1.6568-.8305 1.7455-.0887 3.8338 1.6568 4.6643Z",
279
+ fill: "#528793"
280
+ }),
281
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", {
282
+ fillRule: "evenodd",
283
+ clipRule: "evenodd",
284
+ d: "M14.7461 5.0551c.7572-.3158 1.614.14 1.7751.9444l.81 4.0424c.204 1.0181-.809 1.8527-1.7692 1.4577l-.1216-.05.2283-.5549.1216.05c.517.2127 1.0625-.2367.9526-.7849l-.81-4.0424c-.0868-.4331-.5481-.6786-.9558-.5085l-.1794.0748a.3.3 0 0 1-.231-.5538l.1794-.0748Z",
285
+ fill: "#528693"
286
+ })
287
+ ]
288
+ });
289
+ });
290
+ Glasses.displayName = "GlassesIcon";
291
+
292
+ // src/icons/graphQL.tsx
293
+ var import_react6 = require("react");
294
+ var import_jsx_runtime9 = require("react/jsx-runtime");
295
+ var GraphQL = (0, import_react6.forwardRef)((delegated, ref) => {
296
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("svg", {
297
+ ref,
298
+ width: "23",
299
+ height: "22",
300
+ viewBox: "0 0 23 22",
301
+ fill: "none",
302
+ xmlns: "http://www.w3.org/2000/svg",
303
+ ...delegated,
304
+ children: [
305
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
306
+ d: "M10.479 3.4a1.4 1.4 0 1 1 2.8 0 1.4 1.4 0 1 1-2.8 0Z",
307
+ fill: "#BFF6F8"
308
+ }),
309
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
310
+ fillRule: "evenodd",
311
+ clipRule: "evenodd",
312
+ d: "M11.879 5.4a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm0-3.4a1.4 1.4 0 1 0 0 2.8 1.4 1.4 0 0 0 0-2.8Z",
313
+ fill: "#528693"
314
+ }),
315
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
316
+ d: "M10.479 3.4a1.4 1.4 0 1 1 2.8 0 1.4 1.4 0 1 1-2.8 0Z",
317
+ fill: "#BFF6F8"
318
+ }),
319
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
320
+ fillRule: "evenodd",
321
+ clipRule: "evenodd",
322
+ d: "M11.879 5.4a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm0-3.4a1.4 1.4 0 1 0 0 2.8 1.4 1.4 0 0 0 0-2.8Z",
323
+ fill: "#528693"
324
+ }),
325
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
326
+ d: "M3.679 7.2a1.4 1.4 0 1 1 2.8 0 1.4 1.4 0 1 1-2.8 0Z",
327
+ fill: "#BFF6F8"
328
+ }),
329
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
330
+ fillRule: "evenodd",
331
+ clipRule: "evenodd",
332
+ d: "M5.079 9.2a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm0-3.4a1.4 1.4 0 1 0 0 2.8 1.4 1.4 0 0 0 0-2.8Z",
333
+ fill: "#528693"
334
+ }),
335
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
336
+ d: "M17.279 7.2a1.4 1.4 0 1 1 2.8 0 1.4 1.4 0 1 1-2.8 0Z",
337
+ fill: "#BFF6F8"
338
+ }),
339
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
340
+ fillRule: "evenodd",
341
+ clipRule: "evenodd",
342
+ d: "M18.679 9.2a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm0-3.4a1.4 1.4 0 1 0 0 2.8 1.4 1.4 0 0 0 0-2.8Z",
343
+ fill: "#528693"
344
+ }),
345
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
346
+ d: "M3.679 7.2a1.4 1.4 0 1 1 2.8 0 1.4 1.4 0 1 1-2.8 0Z",
347
+ fill: "#BFF6F8"
348
+ }),
349
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
350
+ fillRule: "evenodd",
351
+ clipRule: "evenodd",
352
+ d: "M5.079 9.2a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm0-3.4a1.4 1.4 0 1 0 0 2.8 1.4 1.4 0 0 0 0-2.8Z",
353
+ fill: "#528693"
354
+ }),
355
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
356
+ d: "M17.279 7.2a1.4 1.4 0 1 1 2.8 0 1.4 1.4 0 1 1-2.8 0Z",
357
+ fill: "#BFF6F8"
358
+ }),
359
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
360
+ fillRule: "evenodd",
361
+ clipRule: "evenodd",
362
+ d: "M18.679 9.2a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm0-3.4a1.4 1.4 0 1 0 0 2.8 1.4 1.4 0 0 0 0-2.8Z",
363
+ fill: "#528693"
364
+ }),
365
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
366
+ d: "M3.679 14.8a1.4 1.4 0 1 1 2.8 0 1.4 1.4 0 1 1-2.8 0Z",
367
+ fill: "#BFF6F8"
368
+ }),
369
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
370
+ fillRule: "evenodd",
371
+ clipRule: "evenodd",
372
+ d: "M5.079 16.8a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm0-3.4a1.4 1.4 0 1 0 0 2.8 1.4 1.4 0 0 0 0-2.8Z",
373
+ fill: "#528693"
374
+ }),
375
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
376
+ d: "M17.279 14.8a1.4 1.4 0 1 1 2.8 0 1.4 1.4 0 1 1-2.8 0Z",
377
+ fill: "#fff"
378
+ }),
379
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
380
+ fillRule: "evenodd",
381
+ clipRule: "evenodd",
382
+ d: "M18.679 16.8a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm0-3.4a1.4 1.4 0 1 0 0 2.8 1.4 1.4 0 0 0 0-2.8Z",
383
+ fill: "#528693"
384
+ }),
385
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
386
+ d: "M10.479 18.75a1.4 1.4 0 1 1 2.8 0 1.4 1.4 0 1 1-2.8 0Z",
387
+ fill: "#BFF6F8"
388
+ }),
389
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
390
+ fillRule: "evenodd",
391
+ clipRule: "evenodd",
392
+ d: "M11.879 20.75a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm0-3.4a1.4 1.4 0 1 0 0 2.8 1.4 1.4 0 0 0 0-2.8ZM10.44 3.851a.3.3 0 0 1-.112.41l-3.5 2a.3.3 0 0 1-.298-.521l3.5-2a.3.3 0 0 1 .41.111ZM13.419 3.851a.3.3 0 0 0 .111.41l3.5 2a.3.3 0 0 0 .298-.521l-3.5-2a.3.3 0 0 0-.41.111Z",
393
+ fill: "#528693"
394
+ }),
395
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", {
396
+ fillRule: "evenodd",
397
+ clipRule: "evenodd",
398
+ d: "M10.44 18.149a.3.3 0 0 0-.112-.41l-3.5-2a.3.3 0 0 0-.298.521l3.5 2a.3.3 0 0 0 .41-.111ZM13.419 18.149a.3.3 0 0 1 .111-.41l3.5-2a.3.3 0 0 1 .298.521l-3.5 2a.3.3 0 0 1-.41-.111ZM5.079 8.7a.3.3 0 0 1 .3.3v4a.3.3 0 1 1-.6 0V9a.3.3 0 0 1 .3-.3ZM18.679 8.7a.3.3 0 0 1 .3.3v4a.3.3 0 1 1-.6 0V9a.3.3 0 0 1 .3-.3ZM11.033 4.743a.3.3 0 0 1 .103.411l-4.8 8a.3.3 0 1 1-.514-.308l4.8-8a.3.3 0 0 1 .411-.103ZM12.725 4.743a.3.3 0 0 0-.103.411l4.8 8a.3.3 0 1 0 .514-.308l-4.8-8a.3.3 0 0 0-.411-.103ZM6.579 14.9a.3.3 0 0 1 .3-.3h10a.3.3 0 0 1 0 .6h-10a.3.3 0 0 1-.3-.3Z",
399
+ fill: "#528693"
400
+ })
401
+ ]
402
+ });
403
+ });
404
+ GraphQL.displayName = "GraphQLIcon";
405
+
406
+ // src/icons/info.tsx
407
+ var import_react7 = require("react");
408
+ var import_jsx_runtime10 = require("react/jsx-runtime");
409
+ var Info = (0, import_react7.forwardRef)((delegated, ref) => {
410
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("svg", {
411
+ ref,
412
+ xmlns: "http://www.w3.org/2000/svg",
413
+ width: "22",
414
+ height: "22",
415
+ fill: "none",
416
+ viewBox: "0 0 22 22",
417
+ ...delegated,
418
+ children: [
419
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("g", {
420
+ clipPath: "url(#a)",
421
+ children: [
422
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", {
423
+ fill: "#BFF6F8",
424
+ d: "M20.83 11c0 5.43-4.4 9.83-9.83 9.83S1.17 16.43 1.17 11 5.57 1.17 11 1.17s9.83 4.4 9.83 9.83Z"
425
+ }),
426
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", {
427
+ fill: "#528693",
428
+ fillRule: "evenodd",
429
+ d: "M21.431 11c0 5.76-4.67 10.43-10.43 10.43C5.238 21.43.568 16.76.568 11S5.24.57 11 .57C16.76.57 21.431 5.24 21.431 11Zm-10.43 9.83c5.429 0 9.83-4.4 9.83-9.83s-4.401-9.83-9.83-9.83c-5.43 0-9.832 4.4-9.832 9.83S5.571 20.83 11 20.83Z",
430
+ clipRule: "evenodd"
431
+ }),
432
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", {
433
+ fill: "#fff",
434
+ d: "M14.814 6.317a.991.991 0 1 1-1.983 0 .991.991 0 0 1 1.983 0Z"
435
+ }),
436
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", {
437
+ fill: "#528693",
438
+ fillRule: "evenodd",
439
+ d: "M15.415 6.317a1.592 1.592 0 1 1-3.184 0 1.592 1.592 0 0 1 3.184 0Zm-1.592.991a.991.991 0 1 0 0-1.982.991.991 0 0 0 0 1.982Z",
440
+ clipRule: "evenodd"
441
+ }),
442
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", {
443
+ fill: "#fff",
444
+ d: "m9.37 16.049 1.8.26-.22-.7-.78-.621.56-1.14 2.261-3.382-.34-1.381-1.92-1-1.261.14-.28.32 1.08.54.14.54-2.22 2.862-.821 2.36 2 1.202Z"
445
+ }),
446
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", {
447
+ fill: "#528693",
448
+ d: "M10.476 16.666a4.93 4.93 0 0 1-2.096-.599c-1.114-.605-1.482-1.63-.961-2.673a9.606 9.606 0 0 1 1.437-1.963l.067-.077c.252-.293.513-.595.742-.897.288-.38.538-.745.443-1.031-.056-.164-.215-.282-.485-.362a1.58 1.58 0 0 0-.247-.033l-.055-.004a.984.984 0 0 1-.481-.096c-.169-.132-.098-.51-.013-.676a.915.915 0 0 1 .701-.473c.139-.025.28-.037.42-.035.656.034 1.301.176 1.91.42 1.104.424 1.631 1.263 1.41 2.244a4.193 4.193 0 0 1-.908 1.714c-.128.161-.26.315-.392.471l-.07.083c-.282.32-.544.654-.788 1.003l-.144.206c-.161.209-.291.44-.385.687a.582.582 0 0 0 .32.743.91.91 0 0 0 .32.08c.175.021.356.044.428.21a.575.575 0 0 1-.035.477 1.144 1.144 0 0 1-1.138.581Zm-.877-8.193c.128.079.268.136.414.17.18.04.35.12.494.236.58.552.14 1.272-.318 1.903-.214.292-.47.58-.74.884l-.068.077c-.624.692-1.27 1.408-1.497 2.232a1.148 1.148 0 0 0 .163 1.06c.493.658 1.78.907 2.819.921l.035-.05-.025-.035a1.248 1.248 0 0 1-.865-.594 1.04 1.04 0 0 1 .006-.894 8.071 8.071 0 0 1 1.309-1.977l.127-.155c.171-.21.356-.437.525-.665.371-.501.844-1.245.664-1.915-.315-1.173-2.15-1.209-3.03-1.226h-.057l.044.028Z"
449
+ })
450
+ ]
451
+ }),
452
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("defs", {
453
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("clipPath", {
454
+ id: "a",
455
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("path", {
456
+ fill: "#fff",
457
+ d: "M0 0h22v22H0z"
458
+ })
459
+ })
460
+ })
461
+ ]
462
+ });
463
+ });
464
+ Info.displayName = "InfoIcon";
465
+
466
+ // src/icons/nail-polish.tsx
467
+ var import_react8 = require("react");
468
+ var import_jsx_runtime11 = require("react/jsx-runtime");
469
+ var NailPolish = (0, import_react8.forwardRef)((delegated, ref) => {
470
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("svg", {
471
+ ref,
472
+ width: "12",
473
+ height: "16",
474
+ viewBox: "0 0 12 16",
475
+ fill: "none",
476
+ xmlns: "http://www.w3.org/2000/svg",
477
+ ...delegated,
478
+ children: [
479
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", {
480
+ d: "M.8573 9.7059H.4287v-.8824c0-.4873.3838-.8823.8571-.8823h4.2858c.4734 0 .8571.395.8571.8823v.8824h-.4286V15H.8573V9.7059Z",
481
+ fill: "#BFF6F8"
482
+ }),
483
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", {
484
+ fillRule: "evenodd",
485
+ clipRule: "evenodd",
486
+ d: "M1.3716 9.1765v5.2941h4.1143V9.1765h.4285v-.353c0-.195-.1535-.353-.3428-.353H1.2858c-.1893 0-.3428.158-.3428.353v.353h.4286ZM6 9.7059h.4286v-.8824c0-.4873-.3837-.8823-.8571-.8823H1.2858c-.4733 0-.857.395-.857.8823v.8824h.4285V15H6V9.7059Z",
487
+ fill: "#528693"
488
+ }),
489
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", {
490
+ d: "M1.2856 6.6176c0-.4873.3838-.8823.8572-.8823h2.5714c.4734 0 .8572.395.8572.8823v1.7648H1.2856V6.6176Z",
491
+ fill: "#BFF6F8"
492
+ }),
493
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", {
494
+ fillRule: "evenodd",
495
+ clipRule: "evenodd",
496
+ d: "M4.7142 6.2647H2.1428c-.1894 0-.3429.158-.3429.353v1.2352h3.2572V6.6176c0-.1949-.1535-.3529-.3429-.3529Zm-2.5714-.5294c-.4734 0-.8572.395-.8572.8823v1.7648h4.2858V6.6176c0-.4873-.3838-.8823-.8572-.8823H2.1428Z",
497
+ fill: "#528693"
498
+ }),
499
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", {
500
+ d: "M1.7144.6228c0-.344.2708-.6228.605-.6228 1.5594 0 2.8235 1.3013 2.8235 2.9066v3.2699H1.7144V.6228Z",
501
+ fill: "#FFCCEC"
502
+ }),
503
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", {
504
+ fillRule: "evenodd",
505
+ clipRule: "evenodd",
506
+ d: "M2.2286 5.647h2.4V2.9067c0-1.3129-1.0338-2.3772-2.3092-2.3772a.0921.0921 0 0 0-.0908.0934v5.0243ZM2.3194 0c-.3342 0-.605.2789-.605.6228v5.5537h3.4285v-3.27C5.143 1.3014 3.8788 0 2.3194 0Z",
507
+ fill: "#528693"
508
+ }),
509
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", {
510
+ fillRule: "evenodd",
511
+ clipRule: "evenodd",
512
+ d: "M2.4626 1.9929c-.432-.5148-.5769-1.1307-.5769-1.5517H2.4c0 .3142.1124.8013.4518 1.2056.3313.3947.8997.7355 1.8625.7355v.5295c-1.0943 0-1.8116-.3945-2.2517-.9189Z",
513
+ fill: "#528693"
514
+ }),
515
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", {
516
+ d: "M4.8708 8.6772c.245-.9414 1.185-1.5 2.0995-1.2478l2.4838.6851c.9145.2523 1.4573 1.22 1.2122 2.1613l-1.2201 4.6876c-.1225.4707-.5925.75-1.0498.6239l-4.1397-1.1418c-.4573-.1262-.7286-.61-.606-1.0807l1.22-4.6876Z",
517
+ fill: "#FFCCEC"
518
+ }),
519
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", {
520
+ fillRule: "evenodd",
521
+ clipRule: "evenodd",
522
+ d: "m9.321 8.6259-2.4838-.6851c-.6401-.1766-1.2981.2145-1.4697.8734l-1.2201 4.6876c-.049.1883.0595.3818.2424.4323l4.1397 1.1418c.1829.0505.3709-.0612.42-.2495l1.2201-4.6876c.1715-.659-.2084-1.3363-.8486-1.513ZM6.9703 7.4294c-.9145-.2523-1.8545.3064-2.0995 1.2478l-1.2202 4.6876c-.1225.4707.1489.9545.6061 1.0807l4.1397 1.1418c.4573.1261.9273-.1532 1.0498-.6239l1.2201-4.6876c.2451-.9414-.2977-1.909-1.2122-2.1613l-2.4838-.6851Z",
523
+ fill: "#528693"
524
+ }),
525
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", {
526
+ d: "M7.9236 3.5069c.1508-.4319.598-.6727 1.0285-.554l.9602.2649c.4306.1188.7009.5575.6217 1.009l-.6114 3.4854c-.0892.508-.581.829-1.0654.6954l-1.5121-.417c-.4844-.1337-.7544-.6649-.5848-1.1507l1.1633-3.333Z",
527
+ fill: "#BFF6F8"
528
+ }),
529
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", {
530
+ fillRule: "evenodd",
531
+ clipRule: "evenodd",
532
+ d: "m9.7792 3.7292-.9602-.2649c-.1722-.0475-.351.0488-.4114.2216l-1.1634 3.333c-.0678.1943.0402.4068.234.4603l1.5121.417c.1938.0535.3905-.075.4262-.2781l.6114-3.4853c.0316-.1806-.0765-.3561-.2487-.4036Zm-.827-.7763c-.4307-.1187-.8778.1221-1.0286.554l-1.1633 3.333c-.1696.4858.1004 1.017.5848 1.1506l1.5121.4171c.4844.1336.9762-.1875 1.0654-.6954l.6114-3.4853c.0792-.4516-.1911-.8903-.6217-1.0091l-.9602-.2649Z",
533
+ fill: "#528693"
534
+ }),
535
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", {
536
+ d: "m5.8906 9.8713 3.3118.9135-.4437 1.7046-3.3118-.9135.4437-1.7046Z",
537
+ fill: "#fff"
538
+ }),
539
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", {
540
+ fillRule: "evenodd",
541
+ clipRule: "evenodd",
542
+ d: "m8.5725 11.1592-2.3182-.6395-.1775.6819 2.3182.6394.1775-.6818ZM5.8906 9.8713 5.447 11.576l3.3118.9135.4437-1.7046-3.3118-.9135Z",
543
+ fill: "#528693"
544
+ })
545
+ ]
546
+ });
547
+ });
548
+ NailPolish.displayName = "NailPolishIcon";
549
+
550
+ // src/icons/warning.tsx
551
+ var import_react9 = require("react");
552
+ var import_jsx_runtime12 = require("react/jsx-runtime");
553
+ var Warning = (0, import_react9.forwardRef)((delegated, ref) => {
554
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("svg", {
555
+ ref,
556
+ xmlns: "http://www.w3.org/2000/svg",
557
+ width: "22",
558
+ height: "22",
559
+ fill: "none",
560
+ viewBox: "0 0 22 22",
561
+ ...delegated,
562
+ children: [
563
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("g", {
564
+ clipPath: "url(#a)",
565
+ children: [
566
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", {
567
+ fill: "#FFDE99",
568
+ d: "M20.83 11c0 5.43-4.4 9.83-9.83 9.83S1.17 16.43 1.17 11 5.57 1.17 11 1.17s9.83 4.4 9.83 9.83Z"
569
+ }),
570
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", {
571
+ fill: "#528693",
572
+ fillRule: "evenodd",
573
+ d: "M21.43 11c0 5.76-4.67 10.43-10.43 10.43S.57 16.76.57 11 5.24.57 11 .57 21.43 5.24 21.43 11ZM11 20.83c5.43 0 9.83-4.4 9.83-9.83S16.43 1.17 11 1.17 1.17 5.57 1.17 11s4.4 9.83 9.83 9.83Z",
574
+ clipRule: "evenodd"
575
+ }),
576
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", {
577
+ fill: "#fff",
578
+ d: "M10.077 5.232c.41-.71 1.436-.71 1.846 0L17 14.025c.41.71-.103 1.599-.924 1.599H5.923c-.82 0-1.333-.889-.923-1.6l5.077-8.792Z"
579
+ }),
580
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", {
581
+ fill: "#528693",
582
+ fillRule: "evenodd",
583
+ d: "m16.48 14.325-5.077-8.793a.466.466 0 0 0-.806 0L5.52 14.325c-.18.31.045.699.403.699h10.153a.466.466 0 0 0 .404-.7Zm-4.557-9.093a1.066 1.066 0 0 0-1.846 0L5 14.025c-.41.71.103 1.599.923 1.599h10.153c.821 0 1.334-.889.924-1.6l-5.077-8.792Z",
584
+ clipRule: "evenodd"
585
+ }),
586
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", {
587
+ fill: "#FFDE99",
588
+ d: "M10.588 8.628a.5.5 0 1 1 1 0v2.475a.5.5 0 0 1-1 0V8.628Z"
589
+ }),
590
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", {
591
+ fill: "#528693",
592
+ fillRule: "evenodd",
593
+ d: "M12.188 8.628v2.475a1.1 1.1 0 0 1-2.2 0V8.628a1.1 1.1 0 1 1 2.2 0Zm-1.1-.5a.5.5 0 0 0-.5.5v2.475a.5.5 0 1 0 1 0V8.628a.5.5 0 0 0-.5-.5Z",
594
+ clipRule: "evenodd"
595
+ }),
596
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", {
597
+ fill: "#FFDE99",
598
+ d: "M11.588 13.403a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"
599
+ }),
600
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", {
601
+ fill: "#528693",
602
+ fillRule: "evenodd",
603
+ d: "M12.188 13.403a1.1 1.1 0 1 1-2.2 0 1.1 1.1 0 0 1 2.2 0Zm-1.1.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z",
604
+ clipRule: "evenodd"
605
+ })
606
+ ]
607
+ }),
608
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("defs", {
609
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("clipPath", {
610
+ id: "a",
611
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", {
612
+ fill: "#fff",
613
+ d: "M0 0h22v22H0z"
614
+ })
615
+ })
616
+ })
617
+ ]
618
+ });
619
+ });
620
+ Warning.displayName = "WarningIcon";
621
+
622
+ // src/icons/index.ts
623
+ var Icon = {
624
+ Arrow,
625
+ Cancel,
626
+ Dots,
627
+ Error: Error2,
628
+ Glasses,
629
+ GraphQL,
630
+ Info,
631
+ NailPolish,
632
+ Warning
633
+ };
634
+
635
+ // src/action-menu/action-item.tsx
636
+ var import_clsx3 = __toESM(require("clsx"));
637
+ var import_jsx_runtime13 = require("react/jsx-runtime");
638
+ function Item2({ children, className, onSelect }) {
639
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenu.Item, {
640
+ onClick: onSelect,
641
+ className: (0, import_clsx3.default)(
642
+ "items-center text-density cursor-pointer flex font-sans font-medium text-sm gap-2 py-2.5 px-5",
643
+ "hover:bg-[#f4f4f4]",
644
+ "[&.danger]:text-error",
645
+ className
646
+ ),
647
+ children
648
+ });
649
+ }
650
+
651
+ // src/action-menu/action-menu.tsx
652
+ var import_jsx_runtime14 = require("react/jsx-runtime");
653
+ function ActionMenu({ children, className, tabIndex }) {
654
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DropdownMenu.Root, {
655
+ content: children,
656
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("button", {
657
+ tabIndex,
658
+ type: "button",
659
+ className: (0, import_clsx4.default)(
660
+ "items-center bg-transparent rounded-full border-none cursor-pointer flex justify-center p-1",
661
+ "hover:bg-gray-6 focus:bg-gray-6 focus:outline-offset-2 focus:outline focus:outline-1 focus:outline-glacier focus-visible:outline-offset-2 focus-visible:outline focus-visible:outline-1 focus-visible:outline-glacier",
662
+ "active:scale-95",
663
+ className
664
+ ),
665
+ "aria-label": "more options",
666
+ children: [
667
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", {
668
+ className: "sr-only",
669
+ children: "Open more options"
670
+ }),
671
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Icon.Dots, {})
672
+ ]
673
+ })
674
+ });
675
+ }
676
+ ActionMenu.Item = Item2;
677
+
678
+ // src/button/button.tsx
679
+ var import_react10 = require("react");
680
+ var import_class_variance_authority = require("class-variance-authority");
681
+ var import_jsx_runtime15 = require("react/jsx-runtime");
682
+ var DEFAULT_TEXT_COLOR = "text-black-text disabled:text-black-text/50";
683
+ var buttonStyles = (0, import_class_variance_authority.cva)(
684
+ [
685
+ "inline-grid grid-flow-col items-center gap-2 rounded border-none font-medium cursor-pointer whitespace-nowrap",
686
+ "disabled:cursor-default disabled:scale-100 disabled:drop-shadow-none",
687
+ "active:scale-95",
688
+ "focus:drop-shadow-active",
689
+ "hover:drop-shadow-hover"
690
+ ],
691
+ {
692
+ variants: {
693
+ variant: {
694
+ primary: `bg-neptune disabled:bg-neptune-light ${DEFAULT_TEXT_COLOR}`,
695
+ secondary: `bg-white disabled:bg-[#FBFCFC] ${DEFAULT_TEXT_COLOR}`,
696
+ "secondary-dark": `bg-cosmos disabled:bg-[#F7F8F9] ${DEFAULT_TEXT_COLOR}`,
697
+ danger: "text-white bg-error disabled:bg-error/50 disabled:text-white/75"
698
+ },
699
+ size: {
700
+ xs: "h-8 px-5",
701
+ sm: "h-9 px-6",
702
+ md: "h-10 px-7",
703
+ lg: "h-10 px-8",
704
+ xl: "h-11 px-9"
705
+ }
706
+ },
707
+ defaultVariants: {
708
+ variant: "primary",
709
+ size: "sm"
710
+ }
711
+ }
712
+ );
713
+ var Button = (0, import_react10.forwardRef)(
714
+ ({ children, className, type = "button", size, variant, ...delegated }, ref) => {
715
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", {
716
+ ref,
717
+ type,
718
+ className: buttonStyles({ size, variant, className }),
719
+ ...delegated,
720
+ children
721
+ });
722
+ }
723
+ );
724
+ Button.displayName = "Button";
725
+
726
+ // src/dialog/destroyFns.ts
727
+ var destroyFns = [];
728
+
729
+ // src/dialog/dialog.tsx
730
+ var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
731
+ var import_class_variance_authority2 = require("class-variance-authority");
732
+ var import_jsx_runtime16 = require("react/jsx-runtime");
733
+ var IconMap = {
734
+ error: Icon.Error,
735
+ info: Icon.Info,
736
+ warning: Icon.Warning
737
+ };
738
+ var dialogContentStyles = (0, import_class_variance_authority2.cva)(
739
+ "bg-white rounded shadow fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 max-w-xl w-auto p-6",
740
+ {
741
+ variants: {
742
+ withIcon: {
743
+ true: "flex gap-4 items-start"
744
+ }
745
+ }
746
+ }
747
+ );
748
+ function DialogContent({ children, closable = true, type, ...delegated }) {
749
+ const withIcon = typeof type !== "undefined";
750
+ const IconComponent = type && IconMap[type];
751
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(DialogPrimitive.Portal, {
752
+ children: [
753
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DialogPrimitive.Overlay, {
754
+ className: "bg-black/30 fixed inset-0"
755
+ }),
756
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(DialogPrimitive.Content, {
757
+ className: dialogContentStyles({ withIcon }),
758
+ ...delegated,
759
+ children: [
760
+ IconComponent && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(IconComponent, {
761
+ className: "my-1 shrink-0",
762
+ width: 32,
763
+ height: 32
764
+ }),
765
+ closable && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DialogClose, {
766
+ asChild: true,
767
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button, {
768
+ className: "absolute top-2.5 right-2.5 !rounded-full !p-0 h-6 w-6 inline-flex items-center justify-center !bg-transparent hover:!bg-gray-200 focus:!bg-gray-200 !drop-shadow-none",
769
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon.Cancel, {
770
+ color: "density",
771
+ "aria-label": "Close",
772
+ height: 18,
773
+ width: 18
774
+ })
775
+ })
776
+ }),
777
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", {
778
+ children
779
+ })
780
+ ]
781
+ })
782
+ ]
783
+ });
784
+ }
785
+ function DialogTitle(delegated) {
786
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DialogPrimitive.Title, {
787
+ className: "m-0 font-semibold text-2xl font-sans text-black-text",
788
+ ...delegated
789
+ });
790
+ }
791
+ function DialogDescription(delegated) {
792
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DialogPrimitive.Description, {
793
+ className: "mt-2 mb-5 text-gray-600",
794
+ ...delegated
795
+ });
796
+ }
797
+ var DialogTrigger = DialogPrimitive.Trigger;
798
+ var DialogClose = DialogPrimitive.Close;
799
+ var DialogRoot = DialogPrimitive.Root;
800
+ function DialogBase({ children }) {
801
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DialogRoot, {
802
+ children
803
+ });
804
+ }
805
+ DialogBase.Title = DialogTitle;
806
+ DialogBase.Trigger = DialogTrigger;
807
+ DialogBase.Description = DialogDescription;
808
+ DialogBase.Content = DialogContent;
809
+
810
+ // src/dialog/config.tsx
811
+ var import_react_dom = require("react-dom");
812
+
813
+ // src/dialog/confirm-dialog.tsx
814
+ var import_jsx_runtime17 = require("react/jsx-runtime");
815
+ function ConfirmDialog({
816
+ open,
817
+ close,
818
+ title,
819
+ description,
820
+ content,
821
+ okCancel,
822
+ okText = "OK",
823
+ onOk,
824
+ onCancel,
825
+ cancelText = "cancel",
826
+ onEscapeKeyDown,
827
+ onInteractOutside,
828
+ onPointerDownOutside,
829
+ type
830
+ }) {
831
+ const cancelButton = okCancel && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Button, {
832
+ variant: "secondary",
833
+ onClick: () => {
834
+ onCancel == null ? void 0 : onCancel();
835
+ close();
836
+ },
837
+ children: cancelText
838
+ });
839
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DialogRoot, {
840
+ open,
841
+ onOpenChange: () => close(),
842
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Dialog.Content, {
843
+ onEscapeKeyDown,
844
+ onInteractOutside,
845
+ onPointerDownOutside,
846
+ type,
847
+ children: [
848
+ title && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog.Title, {
849
+ children: title
850
+ }),
851
+ description && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Dialog.Description, {
852
+ children: description
853
+ }),
854
+ content,
855
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", {
856
+ className: "flex items-center gap-4 mt-4 justify-end",
857
+ children: [
858
+ cancelButton,
859
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Button, {
860
+ onClick: () => {
861
+ onOk == null ? void 0 : onOk();
862
+ close();
863
+ },
864
+ children: okText
865
+ })
866
+ ]
867
+ })
868
+ ]
869
+ })
870
+ });
871
+ }
872
+
873
+ // src/dialog/config.tsx
874
+ var import_jsx_runtime18 = require("react/jsx-runtime");
875
+ function confirm(config) {
876
+ const container = document.createDocumentFragment();
877
+ let currentConfig = { ...config, close, open: true };
878
+ let timeoutId;
879
+ function close(...args) {
880
+ currentConfig = {
881
+ ...currentConfig,
882
+ open: false,
883
+ afterClose: () => {
884
+ if (typeof config.afterClose === "function") {
885
+ config.afterClose();
886
+ }
887
+ destroy.apply(this, args);
888
+ }
889
+ };
890
+ render(currentConfig);
891
+ }
892
+ function destroy(...args) {
893
+ const triggerCancel = args.some((param) => param && param.triggerCancel);
894
+ if (config.onCancel && triggerCancel) {
895
+ config.onCancel(() => {
896
+ }, ...args.slice(1));
897
+ }
898
+ for (let i = 0; i < destroyFns.length; i++) {
899
+ const fn = destroyFns[i];
900
+ if (fn === close) {
901
+ destroyFns.splice(i, 1);
902
+ break;
903
+ }
904
+ }
905
+ (0, import_react_dom.unmountComponentAtNode)(container);
906
+ }
907
+ function render({ okText, cancelText, ...delegated }) {
908
+ clearTimeout(timeoutId);
909
+ timeoutId = setTimeout(() => {
910
+ (0, import_react_dom.render)(/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ConfirmDialog, {
911
+ ...delegated,
912
+ okText,
913
+ cancelText
914
+ }), container);
915
+ });
916
+ }
917
+ function update(configUpdate) {
918
+ if (typeof configUpdate === "function") {
919
+ currentConfig = configUpdate(currentConfig);
920
+ } else {
921
+ currentConfig = {
922
+ ...currentConfig,
923
+ ...configUpdate
924
+ };
925
+ }
926
+ render(currentConfig);
927
+ }
928
+ render(currentConfig);
929
+ destroyFns.push(close);
930
+ return {
931
+ destroy: close,
932
+ update
933
+ };
934
+ }
935
+ var dumbFn = (event) => {
936
+ event.preventDefault();
937
+ };
938
+ function withDialog(delegated) {
939
+ return {
940
+ ...delegated,
941
+ open: true,
942
+ okCancel: true
943
+ };
944
+ }
945
+ function withWarning(delegated) {
946
+ return {
947
+ ...delegated,
948
+ open: true,
949
+ okCancel: false,
950
+ type: "warning",
951
+ onInteractOutside: dumbFn,
952
+ onPointerDownOutside: dumbFn
953
+ };
954
+ }
955
+ function withError(delegated) {
956
+ return {
957
+ ...delegated,
958
+ open: true,
959
+ okCancel: false,
960
+ type: "error",
961
+ onInteractOutside: dumbFn,
962
+ onPointerDownOutside: dumbFn
963
+ };
964
+ }
965
+ function withInfo(delegated) {
966
+ return {
967
+ ...delegated,
968
+ open: true,
969
+ okCancel: false,
970
+ type: "info",
971
+ onInteractOutside: dumbFn,
972
+ onPointerDownOutside: dumbFn
973
+ };
974
+ }
975
+ function withConfirm(delegated) {
976
+ return {
977
+ ...delegated,
978
+ open: true,
979
+ okCancel: true,
980
+ type: "info",
981
+ onInteractOutside: dumbFn,
982
+ onPointerDownOutside: dumbFn
983
+ };
984
+ }
985
+
986
+ // src/dialog/index.tsx
987
+ var Dialog = DialogBase;
988
+ function showDialog(delegated) {
989
+ return confirm(withDialog(delegated));
990
+ }
991
+ function showWarning(delegated) {
992
+ return confirm(withWarning(delegated));
993
+ }
994
+ function showConfirm(delegated) {
995
+ return confirm(withConfirm(delegated));
996
+ }
997
+ function showError(delegated) {
998
+ return confirm(withError(delegated));
999
+ }
1000
+ function showInfo(delegated) {
1001
+ return confirm(withInfo(delegated));
1002
+ }
1003
+ function destroyAll() {
1004
+ while (destroyFns.length) {
1005
+ const close = destroyFns.pop();
1006
+ if (close) {
1007
+ close();
1008
+ }
1009
+ }
1010
+ }
1011
+ // Annotate the CommonJS export names for ESM import in node:
1012
+ 0 && (module.exports = {
1013
+ ActionMenu,
1014
+ Button,
1015
+ Dialog,
1016
+ DropdownMenu,
1017
+ destroyAll,
1018
+ showConfirm,
1019
+ showDialog,
1020
+ showError,
1021
+ showInfo,
1022
+ showWarning
1023
+ });