@sia.soul/sia-react-ui 0.1.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 (46) hide show
  1. package/README.md +37 -0
  2. package/THIRD_PARTY_NOTICES.md +12 -0
  3. package/dist/Select-CJJ5LQap.d.cts +44 -0
  4. package/dist/Select-CJJ5LQap.d.ts +44 -0
  5. package/dist/chart.cjs +7523 -0
  6. package/dist/chart.css +1036 -0
  7. package/dist/chart.d.cts +2061 -0
  8. package/dist/chart.d.ts +2061 -0
  9. package/dist/chart.js +120 -0
  10. package/dist/chunk-34TTF4Y7.js +812 -0
  11. package/dist/chunk-6VXOLMKZ.js +381 -0
  12. package/dist/chunk-DZ45HRVP.js +583 -0
  13. package/dist/chunk-I342FGQY.js +7344 -0
  14. package/dist/chunk-JKZGAZMB.js +318 -0
  15. package/dist/chunk-MBS2HXLZ.js +59 -0
  16. package/dist/chunk-NZAT2RUM.js +60 -0
  17. package/dist/chunk-OMA75YLM.js +298 -0
  18. package/dist/chunk-ULEGTKXR.js +2138 -0
  19. package/dist/chunk-YCVXUMGP.js +945 -0
  20. package/dist/core-BeiAQiDY.d.ts +1076 -0
  21. package/dist/core-DRICIs2n.d.cts +1076 -0
  22. package/dist/core.cjs +3353 -0
  23. package/dist/core.css +8734 -0
  24. package/dist/core.d.cts +3 -0
  25. package/dist/core.d.ts +3 -0
  26. package/dist/core.js +45 -0
  27. package/dist/index.cjs +19658 -0
  28. package/dist/index.css +9762 -0
  29. package/dist/index.d.cts +1222 -0
  30. package/dist/index.d.ts +1222 -0
  31. package/dist/index.js +6843 -0
  32. package/dist/markdown-editor.cjs +417 -0
  33. package/dist/markdown-editor.d.cts +28 -0
  34. package/dist/markdown-editor.d.ts +28 -0
  35. package/dist/markdown-editor.js +6 -0
  36. package/dist/rich-text-editor.cjs +1853 -0
  37. package/dist/rich-text-editor.d.cts +27 -0
  38. package/dist/rich-text-editor.d.ts +27 -0
  39. package/dist/rich-text-editor.js +11 -0
  40. package/dist/select-date-range-BDWdo7qt.d.ts +84 -0
  41. package/dist/select-date-range-DWik3ADr.d.cts +84 -0
  42. package/dist/select-date-range.cjs +2074 -0
  43. package/dist/select-date-range.d.cts +3 -0
  44. package/dist/select-date-range.d.ts +3 -0
  45. package/dist/select-date-range.js +8 -0
  46. package/package.json +129 -0
@@ -0,0 +1,945 @@
1
+ // src/components/Icon.tsx
2
+ import { forwardRef } from "react";
3
+
4
+ // src/components/IconCatalog.tsx
5
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
+ var extendedIconPaths = {
7
+ "notepad-file": /* @__PURE__ */ jsxs("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: [
8
+ /* @__PURE__ */ jsx("path", { d: "M752 80H272c-70.4 0-128 57.6-128 128v608c0 70.4 57.6 128 128 128h353.6c33.6 0 65.6-12.8 91.2-36.8l126.4-126.4c24-24 36.8-56 36.8-91.2V208c0-70.4-57.6-128-128-128zM208 816V208c0-35.2 28.8-64 64-64h480c35.2 0 64 28.8 64 64v464h-96c-70.4 0-128 57.6-128 128v80H272c-35.2 0-64-28.8-64-64z m462.4 44.8c-4.8 4.8-9.6 8-14.4 11.2v-72c0-35.2 28.8-64 64-64h75.2L670.4 860.8z" }),
9
+ /* @__PURE__ */ jsx("path", { d: "M368 352h288c17.6 0 32-14.4 32-32s-14.4-32-32-32H368c-17.6 0-32 14.4-32 32s14.4 32 32 32z m128 256H368c-17.6 0-32 14.4-32 32s14.4 32 32 32h128c17.6 0 32-14.4 32-32s-14.4-32-32-32z m-128-96h288c17.6 0 32-14.4 32-32s-14.4-32-32-32H368c-17.6 0-32 14.4-32 32s14.4 32 32 32z" })
10
+ ] }),
11
+ "notepad-folder": /* @__PURE__ */ jsx("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: /* @__PURE__ */ jsx("path", { d: "M510.4 243.2c8 27.2 33.6 44.8 60.8 44.8h259.2c0-35.2-28.8-64-64-64H504l6.4 19.2zM484.8 160h281.6c70.4 0 128 57.6 128 128v25.6c30.4 24 51.2 60.8 51.2 102.4v384c0 70.4-57.6 128-128 128H208c-70.4 0-128-57.6-128-128V224c0-70.4 57.6-128 128-128h164.8c46.4 0 89.6 25.6 112 64z m-112 0H208c-35.2 0-64 28.8-64 64v576c0 35.2 28.8 64 64 64h608c35.2 0 64-28.8 64-64V416c0-35.2-28.8-64-64-64H574.4c-56 0-105.6-36.8-121.6-89.6l-19.2-57.6c-8-27.2-32-44.8-60.8-44.8zM272 704h256c17.6 0 32 14.4 32 32s-14.4 32-32 32H272c-17.6 0-32-14.4-32-32s14.4-32 32-32z" }) }),
12
+ "notepad-virtual-folder": /* @__PURE__ */ jsxs("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: [
13
+ /* @__PURE__ */ jsx("path", { d: "M704 864H192c-89.6 0-160-70.4-160-160V192c0-89.6 70.4-160 160-160h512c89.6 0 160 70.4 160 160v512c0 89.6-70.4 160-160 160zM192 96c-51.2 0-96 44.8-96 96v512c0 51.2 44.8 96 96 96h512c51.2 0 96-44.8 96-96V192c0-51.2-44.8-96-96-96H192z" }),
14
+ /* @__PURE__ */ jsx("path", { d: "M832 992H320c-19.2 0-32-12.8-32-32s12.8-32 32-32h512c51.2 0 96-44.8 96-96V320c0-19.2 12.8-32 32-32s32 12.8 32 32v512c0 89.6-70.4 160-160 160z" })
15
+ ] }),
16
+ "step-backward": /* @__PURE__ */ jsxs(Fragment, { children: [
17
+ /* @__PURE__ */ jsx("path", { d: "M6 5v14" }),
18
+ /* @__PURE__ */ jsx("path", { d: "m18 6-8 6 8 6V6Z" })
19
+ ] }),
20
+ "step-forward": /* @__PURE__ */ jsxs(Fragment, { children: [
21
+ /* @__PURE__ */ jsx("path", { d: "M18 5v14" }),
22
+ /* @__PURE__ */ jsx("path", { d: "m6 6 8 6-8 6V6Z" })
23
+ ] }),
24
+ "fast-backward": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m11 6-7 6 7 6V6ZM20 6l-7 6 7 6V6Z" }) }),
25
+ "fast-forward": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m13 6 7 6-7 6V6ZM4 6l7 6-7 6V6Z" }) }),
26
+ "corner-up-left": /* @__PURE__ */ jsxs(Fragment, { children: [
27
+ /* @__PURE__ */ jsx("path", { d: "m9 5-5 5 5 5" }),
28
+ /* @__PURE__ */ jsx("path", { d: "M4 10h9a7 7 0 0 1 7 7v2" })
29
+ ] }),
30
+ "corner-up-right": /* @__PURE__ */ jsxs(Fragment, { children: [
31
+ /* @__PURE__ */ jsx("path", { d: "m15 5 5 5-5 5" }),
32
+ /* @__PURE__ */ jsx("path", { d: "M20 10h-9a7 7 0 0 0-7 7v2" })
33
+ ] }),
34
+ "swap-horizontal": /* @__PURE__ */ jsxs(Fragment, { children: [
35
+ /* @__PURE__ */ jsx("path", { d: "M4 8h15m0 0-4-4m4 4-4 4" }),
36
+ /* @__PURE__ */ jsx("path", { d: "M20 16H5m0 0 4-4m-4 4 4 4" })
37
+ ] }),
38
+ "swap-vertical": /* @__PURE__ */ jsxs(Fragment, { children: [
39
+ /* @__PURE__ */ jsx("path", { d: "M8 4v15m0 0-4-4m4 4 4-4" }),
40
+ /* @__PURE__ */ jsx("path", { d: "M16 20V5m0 0-4 4m4-4 4 4" })
41
+ ] }),
42
+ expand: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M9 4H4v5M4 4l6 6M15 20h5v-5m0 5-6-6" }) }),
43
+ shrink: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M10 10H5V5m0 5 6-6M14 14h5v5m0-5-6 6" }) }),
44
+ fullscreen: /* @__PURE__ */ jsx("path", { d: "M9 4H4v5M15 4h5v5M9 20H4v-5M15 20h5v-5" }),
45
+ "fullscreen-exit": /* @__PURE__ */ jsx("path", { d: "M4 9h5V4M20 9h-5V4M4 15h5v5M20 15h-5v5" }),
46
+ "menu-fold": /* @__PURE__ */ jsxs(Fragment, { children: [
47
+ /* @__PURE__ */ jsx("path", { d: "M4 6h16M4 12h10M4 18h16" }),
48
+ /* @__PURE__ */ jsx("path", { d: "m18 9-3 3 3 3" })
49
+ ] }),
50
+ "menu-unfold": /* @__PURE__ */ jsxs(Fragment, { children: [
51
+ /* @__PURE__ */ jsx("path", { d: "M4 6h16M10 12h10M4 18h16" }),
52
+ /* @__PURE__ */ jsx("path", { d: "m6 9 3 3-3 3" })
53
+ ] }),
54
+ login: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M10 5H5v14h5M13 8l4 4-4 4M8 12h9" }) }),
55
+ logout: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M14 5h5v14h-5M11 8l-4 4 4 4M16 12H7" }) }),
56
+ move: /* @__PURE__ */ jsxs(Fragment, { children: [
57
+ /* @__PURE__ */ jsx("path", { d: "M12 3v18M3 12h18" }),
58
+ /* @__PURE__ */ jsx("path", { d: "m9 6 3-3 3 3M9 18l3 3 3-3M6 9l-3 3 3 3M18 9l3 3-3 3" })
59
+ ] }),
60
+ "vertical-align-top": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M4 4h16M12 7v13M8 11l4-4 4 4" }) }),
61
+ "vertical-align-middle": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M4 12h16M12 4v16M8 8l4 4 4-4M8 16l4-4 4 4" }) }),
62
+ "vertical-align-bottom": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M4 20h16M12 4v13M8 13l4 4 4-4" }) }),
63
+ "square-plus": /* @__PURE__ */ jsxs(Fragment, { children: [
64
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
65
+ /* @__PURE__ */ jsx("path", { d: "M12 8v8M8 12h8" })
66
+ ] }),
67
+ "square-minus": /* @__PURE__ */ jsxs(Fragment, { children: [
68
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
69
+ /* @__PURE__ */ jsx("path", { d: "M8 12h8" })
70
+ ] }),
71
+ "square-check": /* @__PURE__ */ jsxs(Fragment, { children: [
72
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
73
+ /* @__PURE__ */ jsx("path", { d: "m8 12 3 3 6-7" })
74
+ ] }),
75
+ "square-close": /* @__PURE__ */ jsxs(Fragment, { children: [
76
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
77
+ /* @__PURE__ */ jsx("path", { d: "m8.5 8.5 7 7m0-7-7 7" })
78
+ ] }),
79
+ "tab-plus": /* @__PURE__ */ jsxs(Fragment, { children: [
80
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2.5" }),
81
+ /* @__PURE__ */ jsx("path", { d: "M3 9h18M7 6.5h.1M10 6.5h.1M15 12v6M12 15h6" })
82
+ ] }),
83
+ "folder-plus": /* @__PURE__ */ jsxs(Fragment, { children: [
84
+ /* @__PURE__ */ jsx("path", { d: "M3 6h7l2 2h9v11H3V6Z" }),
85
+ /* @__PURE__ */ jsx("path", { d: "M16 11v6M13 14h6" })
86
+ ] }),
87
+ pin: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M8 3h8l-1.5 5 3 3v2H13v8l-2-2v-6H6.5v-2l3-3L8 3Z" }) }),
88
+ "pin-off": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M9.5 8 8 3h8l-1.5 5 3 3v2H13v4M6.5 13v-2l1-1M3 3l18 18" }) }),
89
+ stop: /* @__PURE__ */ jsxs(Fragment, { children: [
90
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
91
+ /* @__PURE__ */ jsx("path", { d: "M6 18 18 6" })
92
+ ] }),
93
+ "help-circle": /* @__PURE__ */ jsxs(Fragment, { children: [
94
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
95
+ /* @__PURE__ */ jsx("path", { d: "M9.7 9a2.5 2.5 0 1 1 3.6 2.3c-.9.5-1.3 1.1-1.3 2.1M12 17v.1" })
96
+ ] }),
97
+ save: /* @__PURE__ */ jsxs(Fragment, { children: [
98
+ /* @__PURE__ */ jsx("path", { d: "M4 3h13l3 3v15H4V3Z" }),
99
+ /* @__PURE__ */ jsx("path", { d: "M8 3v6h8V3M8 21v-7h8v7" })
100
+ ] }),
101
+ clipboard: /* @__PURE__ */ jsxs(Fragment, { children: [
102
+ /* @__PURE__ */ jsx("rect", { x: "5", y: "4", width: "14", height: "17", rx: "2.5" }),
103
+ /* @__PURE__ */ jsx("path", { d: "M9 4.5V3h6v1.5M9 9h6M9 13h6M9 17h4" })
104
+ ] }),
105
+ "clipboard-check": /* @__PURE__ */ jsxs(Fragment, { children: [
106
+ /* @__PURE__ */ jsx("rect", { x: "5", y: "4", width: "14", height: "17", rx: "2.5" }),
107
+ /* @__PURE__ */ jsx("path", { d: "M9 4.5V3h6v1.5m-6 9 2 2 4-5" })
108
+ ] }),
109
+ "file-plus": /* @__PURE__ */ jsxs(Fragment, { children: [
110
+ /* @__PURE__ */ jsx("path", { d: "M6 3h8l4 4v14H6V3Z" }),
111
+ /* @__PURE__ */ jsx("path", { d: "M14 3v5h4M12 11v6M9 14h6" })
112
+ ] }),
113
+ "file-check": /* @__PURE__ */ jsxs(Fragment, { children: [
114
+ /* @__PURE__ */ jsx("path", { d: "M6 3h8l4 4v14H6V3Z" }),
115
+ /* @__PURE__ */ jsx("path", { d: "M14 3v5h4m-8 6 2 2 4-5" })
116
+ ] }),
117
+ "file-warning": /* @__PURE__ */ jsxs(Fragment, { children: [
118
+ /* @__PURE__ */ jsx("path", { d: "M6 3h8l4 4v14H6V3Z" }),
119
+ /* @__PURE__ */ jsx("path", { d: "M14 3v5h4M12 11v4m0 3v.1" })
120
+ ] }),
121
+ "file-spreadsheet": /* @__PURE__ */ jsxs(Fragment, { children: [
122
+ /* @__PURE__ */ jsx("path", { d: "M6 3h8l4 4v14H6V3Z" }),
123
+ /* @__PURE__ */ jsx("path", { d: "M14 3v5h4M8.5 11h7v7h-7v-7Zm0 3.5h7M12 11v7" })
124
+ ] }),
125
+ "align-left": /* @__PURE__ */ jsx("path", { d: "M4 6h16M4 10h11M4 14h16M4 18h11" }),
126
+ "align-center": /* @__PURE__ */ jsx("path", { d: "M4 6h16M7 10h10M4 14h16M7 18h10" }),
127
+ "align-right": /* @__PURE__ */ jsx("path", { d: "M4 6h16M9 10h11M4 14h16M9 18h11" }),
128
+ "align-justify": /* @__PURE__ */ jsx("path", { d: "M4 6h16M4 10h16M4 14h16M4 18h16" }),
129
+ bold: /* @__PURE__ */ jsx("path", { d: "M7 4h6a4 4 0 0 1 0 8H7V4Zm0 8h7a4 4 0 0 1 0 8H7v-8Z" }),
130
+ italic: /* @__PURE__ */ jsx("path", { d: "M10 4h8M6 20h8M14 4 10 20" }),
131
+ underline: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M7 4v7a5 5 0 0 0 10 0V4M5 21h14" }) }),
132
+ strikethrough: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M5 12h14M8 8c.3-2.5 2-4 4.5-4 2.2 0 3.7 1 4.5 2.5M8 16c.8 2.5 2.5 4 5 4 2.2 0 3.8-1 4.5-2.5" }) }),
133
+ "list-ordered": /* @__PURE__ */ jsxs(Fragment, { children: [
134
+ /* @__PURE__ */ jsx("path", { d: "M9 6h12M9 12h12M9 18h12" }),
135
+ /* @__PURE__ */ jsx("path", { d: "M4 5h1v3M4 11h2l-2 3h2M4 17h2l-2 3h2" })
136
+ ] }),
137
+ "list-unordered": /* @__PURE__ */ jsxs(Fragment, { children: [
138
+ /* @__PURE__ */ jsx("path", { d: "M9 6h12M9 12h12M9 18h12" }),
139
+ /* @__PURE__ */ jsx("circle", { cx: "4.5", cy: "6", r: ".5" }),
140
+ /* @__PURE__ */ jsx("circle", { cx: "4.5", cy: "12", r: ".5" }),
141
+ /* @__PURE__ */ jsx("circle", { cx: "4.5", cy: "18", r: ".5" })
142
+ ] }),
143
+ eraser: /* @__PURE__ */ jsxs(Fragment, { children: [
144
+ /* @__PURE__ */ jsx("path", { d: "m4 15 8-10 8 7-7 8H7l-3-3v-2Z" }),
145
+ /* @__PURE__ */ jsx("path", { d: "m9 9 8 7M13 20h8" })
146
+ ] }),
147
+ highlighter: /* @__PURE__ */ jsxs(Fragment, { children: [
148
+ /* @__PURE__ */ jsx("path", { d: "m7 14 7-10 5 4-8 9-4-3Z" }),
149
+ /* @__PURE__ */ jsx("path", { d: "m5 17 6 3H3l2-3ZM15 14l4 3" })
150
+ ] }),
151
+ table: /* @__PURE__ */ jsxs(Fragment, { children: [
152
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
153
+ /* @__PURE__ */ jsx("path", { d: "M3 9h18M3 14h18M9 4v16M15 4v16" })
154
+ ] }),
155
+ columns: /* @__PURE__ */ jsxs(Fragment, { children: [
156
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
157
+ /* @__PURE__ */ jsx("path", { d: "M12 4v16" })
158
+ ] }),
159
+ rows: /* @__PURE__ */ jsxs(Fragment, { children: [
160
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
161
+ /* @__PURE__ */ jsx("path", { d: "M3 9h18M3 15h18" })
162
+ ] }),
163
+ "bar-chart": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M4 21V10h4v11M10 21V4h4v17M16 21v-8h4v8M3 21h18" }) }),
164
+ "line-chart": /* @__PURE__ */ jsxs(Fragment, { children: [
165
+ /* @__PURE__ */ jsx("path", { d: "M3 20h18M4 17l5-6 4 3 7-9" }),
166
+ /* @__PURE__ */ jsx("circle", { cx: "9", cy: "11", r: "1" }),
167
+ /* @__PURE__ */ jsx("circle", { cx: "13", cy: "14", r: "1" })
168
+ ] }),
169
+ "pie-chart": /* @__PURE__ */ jsxs(Fragment, { children: [
170
+ /* @__PURE__ */ jsx("path", { d: "M11 3a9 9 0 1 0 9 9h-9V3Z" }),
171
+ /* @__PURE__ */ jsx("path", { d: "M14 3.5A8.5 8.5 0 0 1 20.5 10H14V3.5Z" })
172
+ ] }),
173
+ "area-chart": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M3 20h18M4 17l5-6 4 3 7-9v12H4Z" }) }),
174
+ activity: /* @__PURE__ */ jsx("path", { d: "M3 12h4l2-6 4 13 3-7h5" }),
175
+ "trending-up": /* @__PURE__ */ jsxs(Fragment, { children: [
176
+ /* @__PURE__ */ jsx("path", { d: "m4 17 6-6 4 4 6-7" }),
177
+ /* @__PURE__ */ jsx("path", { d: "M15 8h5v5" })
178
+ ] }),
179
+ "trending-down": /* @__PURE__ */ jsxs(Fragment, { children: [
180
+ /* @__PURE__ */ jsx("path", { d: "m4 7 6 6 4-4 6 7" }),
181
+ /* @__PURE__ */ jsx("path", { d: "M15 16h5v-5" })
182
+ ] }),
183
+ database: /* @__PURE__ */ jsxs(Fragment, { children: [
184
+ /* @__PURE__ */ jsx("ellipse", { cx: "12", cy: "5", rx: "8", ry: "3" }),
185
+ /* @__PURE__ */ jsx("path", { d: "M4 5v7c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 12v7c0 1.7 3.6 3 8 3s8-1.3 8-3v-7" })
186
+ ] }),
187
+ cloud: /* @__PURE__ */ jsx("path", { d: "M7 19h11a4 4 0 0 0 .5-8A7 7 0 0 0 5.2 9.5 4.8 4.8 0 0 0 7 19Z" }),
188
+ "cloud-download": /* @__PURE__ */ jsxs(Fragment, { children: [
189
+ /* @__PURE__ */ jsx("path", { d: "M7 18H5a4 4 0 0 1 .2-8 7 7 0 0 1 13.3 1A4 4 0 0 1 19 19h-2" }),
190
+ /* @__PURE__ */ jsx("path", { d: "M12 11v10m-4-4 4 4 4-4" })
191
+ ] }),
192
+ "cloud-upload": /* @__PURE__ */ jsxs(Fragment, { children: [
193
+ /* @__PURE__ */ jsx("path", { d: "M7 18H5a4 4 0 0 1 .2-8 7 7 0 0 1 13.3 1A4 4 0 0 1 19 19h-2" }),
194
+ /* @__PURE__ */ jsx("path", { d: "M12 21V11m-4 4 4-4 4 4" })
195
+ ] }),
196
+ server: /* @__PURE__ */ jsxs(Fragment, { children: [
197
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "4", width: "18", height: "7", rx: "2" }),
198
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "13", width: "18", height: "7", rx: "2" }),
199
+ /* @__PURE__ */ jsx("path", { d: "M7 7.5h.1M7 16.5h.1M11 7.5h6M11 16.5h6" })
200
+ ] }),
201
+ desktop: /* @__PURE__ */ jsxs(Fragment, { children: [
202
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "14", rx: "2" }),
203
+ /* @__PURE__ */ jsx("path", { d: "M8 21h8M12 17v4" })
204
+ ] }),
205
+ laptop: /* @__PURE__ */ jsxs(Fragment, { children: [
206
+ /* @__PURE__ */ jsx("path", { d: "M5 5h14v11H5V5Z" }),
207
+ /* @__PURE__ */ jsx("path", { d: "m3 19 2-3h14l2 3H3Z" })
208
+ ] }),
209
+ mobile: /* @__PURE__ */ jsxs(Fragment, { children: [
210
+ /* @__PURE__ */ jsx("rect", { x: "7", y: "2", width: "10", height: "20", rx: "2.5" }),
211
+ /* @__PURE__ */ jsx("path", { d: "M10 5h4M12 19v.1" })
212
+ ] }),
213
+ tablet: /* @__PURE__ */ jsxs(Fragment, { children: [
214
+ /* @__PURE__ */ jsx("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2.5" }),
215
+ /* @__PURE__ */ jsx("path", { d: "M10 5h4M12 19v.1" })
216
+ ] }),
217
+ printer: /* @__PURE__ */ jsxs(Fragment, { children: [
218
+ /* @__PURE__ */ jsx("path", { d: "M7 9V3h10v6M6 18H4V9h16v9h-2" }),
219
+ /* @__PURE__ */ jsx("path", { d: "M7 14h10v7H7v-7ZM17 11h.1" })
220
+ ] }),
221
+ camera: /* @__PURE__ */ jsxs(Fragment, { children: [
222
+ /* @__PURE__ */ jsx("path", { d: "M3 7h4l2-3h6l2 3h4v13H3V7Z" }),
223
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "13", r: "4" })
224
+ ] }),
225
+ video: /* @__PURE__ */ jsxs(Fragment, { children: [
226
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "5", width: "13", height: "14", rx: "2" }),
227
+ /* @__PURE__ */ jsx("path", { d: "m16 10 5-3v10l-5-3v-4Z" })
228
+ ] }),
229
+ microphone: /* @__PURE__ */ jsxs(Fragment, { children: [
230
+ /* @__PURE__ */ jsx("rect", { x: "9", y: "3", width: "6", height: "12", rx: "3" }),
231
+ /* @__PURE__ */ jsx("path", { d: "M5 11a7 7 0 0 0 14 0M12 18v3M8 21h8" })
232
+ ] }),
233
+ "volume-up": /* @__PURE__ */ jsxs(Fragment, { children: [
234
+ /* @__PURE__ */ jsx("path", { d: "M4 10h4l5-4v12l-5-4H4v-4Z" }),
235
+ /* @__PURE__ */ jsx("path", { d: "M16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11" })
236
+ ] }),
237
+ "volume-off": /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M4 10h4l5-4v12l-5-4H4v-4ZM17 9l5 6m0-6-5 6" }) }),
238
+ "speaker-wave": /* @__PURE__ */ jsxs(Fragment, { children: [
239
+ /* @__PURE__ */ jsx("path", { d: "M4 10h3.5l4.7-3.6v11.2L7.5 14H4v-4Z", fill: "currentColor", stroke: "none" }),
240
+ /* @__PURE__ */ jsx("path", { d: "M15.2 9.2a4 4 0 0 1 0 5.6" })
241
+ ] }),
242
+ "speaker-muted": /* @__PURE__ */ jsxs(Fragment, { children: [
243
+ /* @__PURE__ */ jsx("path", { d: "M4 10h3.5l4.7-3.6v11.2L7.5 14H4v-4Z", fill: "currentColor", stroke: "none" }),
244
+ /* @__PURE__ */ jsx("path", { d: "m15.5 9.5 5 5m0-5-5 5" })
245
+ ] }),
246
+ wifi: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M3 9a14 14 0 0 1 18 0M6 13a9 9 0 0 1 12 0M9.5 17a4 4 0 0 1 5 0M12 21v.1" }) }),
247
+ power: /* @__PURE__ */ jsxs(Fragment, { children: [
248
+ /* @__PURE__ */ jsx("path", { d: "M12 3v9" }),
249
+ /* @__PURE__ */ jsx("path", { d: "M7 5.5a8 8 0 1 0 10 0" })
250
+ ] }),
251
+ key: /* @__PURE__ */ jsxs(Fragment, { children: [
252
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "15", r: "4" }),
253
+ /* @__PURE__ */ jsx("path", { d: "m11 12 8-8m-3 3 3 3m-6 0 3 3" })
254
+ ] }),
255
+ shield: /* @__PURE__ */ jsx("path", { d: "M12 3 4 6v6c0 5 3 8 8 10 5-2 8-5 8-10V6l-8-3Z" }),
256
+ "shield-check": /* @__PURE__ */ jsxs(Fragment, { children: [
257
+ /* @__PURE__ */ jsx("path", { d: "M12 3 4 6v6c0 5 3 8 8 10 5-2 8-5 8-10V6l-8-3Z" }),
258
+ /* @__PURE__ */ jsx("path", { d: "m8 12 2.5 2.5L16 9" })
259
+ ] }),
260
+ bug: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M8 9h8v7a4 4 0 0 1-8 0V9ZM9 9a3 3 0 0 1 6 0M5 11h3M16 11h3M5 16h3M16 16h3M7 5l2 2M17 5l-2 2" }) }),
261
+ bulb: /* @__PURE__ */ jsxs(Fragment, { children: [
262
+ /* @__PURE__ */ jsx("path", { d: "M8 15a7 7 0 1 1 8 0c-1.2.8-1.5 1.8-1.5 3h-5c0-1.2-.3-2.2-1.5-3Z" }),
263
+ /* @__PURE__ */ jsx("path", { d: "M9.5 21h5" })
264
+ ] }),
265
+ rocket: /* @__PURE__ */ jsxs(Fragment, { children: [
266
+ /* @__PURE__ */ jsx("path", { d: "M8 16c-2-1-4-1-5 0 0-3 1-5 4-6M14 6c3-3 6-3 7-3 0 1 0 4-3 7l-6 6-4-4 6-6Z" }),
267
+ /* @__PURE__ */ jsx("path", { d: "M14 14c0 3-2 6-5 7 0-2 0-4-1-5M5 19l-2 2" })
268
+ ] }),
269
+ target: /* @__PURE__ */ jsxs(Fragment, { children: [
270
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
271
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "5" }),
272
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "1" })
273
+ ] }),
274
+ trophy: /* @__PURE__ */ jsxs(Fragment, { children: [
275
+ /* @__PURE__ */ jsx("path", { d: "M8 4h8v5a4 4 0 0 1-8 0V4ZM9 20h6M12 13v7" }),
276
+ /* @__PURE__ */ jsx("path", { d: "M8 6H4v2a4 4 0 0 0 5 4M16 6h4v2a4 4 0 0 1-5 4" })
277
+ ] }),
278
+ "shopping-cart": /* @__PURE__ */ jsxs(Fragment, { children: [
279
+ /* @__PURE__ */ jsx("path", { d: "M3 4h2l2 11h10l3-8H6" }),
280
+ /* @__PURE__ */ jsx("circle", { cx: "9", cy: "20", r: "1" }),
281
+ /* @__PURE__ */ jsx("circle", { cx: "17", cy: "20", r: "1" })
282
+ ] }),
283
+ "shopping-bag": /* @__PURE__ */ jsxs(Fragment, { children: [
284
+ /* @__PURE__ */ jsx("path", { d: "M5 8h14l1 13H4L5 8Z" }),
285
+ /* @__PURE__ */ jsx("path", { d: "M9 9V6a3 3 0 0 1 6 0v3" })
286
+ ] }),
287
+ shop: /* @__PURE__ */ jsxs(Fragment, { children: [
288
+ /* @__PURE__ */ jsx("path", { d: "M4 10v11h16V10M3 4h18l-2 6H5L3 4Z" }),
289
+ /* @__PURE__ */ jsx("path", { d: "M9 21v-6h6v6" })
290
+ ] }),
291
+ wallet: /* @__PURE__ */ jsxs(Fragment, { children: [
292
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "5", width: "18", height: "15", rx: "2.5" }),
293
+ /* @__PURE__ */ jsx("path", { d: "M3 9h18M15 13h6v4h-6a2 2 0 0 1 0-4Z" })
294
+ ] }),
295
+ bank: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m3 9 9-6 9 6M5 10h14M6 10v8M10 10v8M14 10v8M18 10v8M3 21h18M4 18h16" }) }),
296
+ calculator: /* @__PURE__ */ jsxs(Fragment, { children: [
297
+ /* @__PURE__ */ jsx("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2.5" }),
298
+ /* @__PURE__ */ jsx("path", { d: "M8 5h8v4H8V5ZM8 13h.1M12 13h.1M16 13h.1M8 17h.1M12 17h.1M16 17h.1" })
299
+ ] }),
300
+ tag: /* @__PURE__ */ jsxs(Fragment, { children: [
301
+ /* @__PURE__ */ jsx("path", { d: "M3 12V4h8l10 10-7 7L3 12Z" }),
302
+ /* @__PURE__ */ jsx("circle", { cx: "7.5", cy: "8.5", r: "1" })
303
+ ] }),
304
+ tags: /* @__PURE__ */ jsxs(Fragment, { children: [
305
+ /* @__PURE__ */ jsx("path", { d: "M6 12V4h7l8 8-6 6-9-6Z" }),
306
+ /* @__PURE__ */ jsx("circle", { cx: "10", cy: "8", r: "1" }),
307
+ /* @__PURE__ */ jsx("path", { d: "m3 8 1 9 7 4 2-2" })
308
+ ] }),
309
+ message: /* @__PURE__ */ jsx("path", { d: "M4 4h16v13H9l-5 4V4Z" }),
310
+ comments: /* @__PURE__ */ jsxs(Fragment, { children: [
311
+ /* @__PURE__ */ jsx("path", { d: "M3 4h13v10H8l-5 4V4Z" }),
312
+ /* @__PURE__ */ jsx("path", { d: "M10 17h6l5 4V8h-2" })
313
+ ] }),
314
+ send: /* @__PURE__ */ jsx("path", { d: "m3 11 18-8-8 18-2-8-8-2Zm8 2 10-10" }),
315
+ share: /* @__PURE__ */ jsxs(Fragment, { children: [
316
+ /* @__PURE__ */ jsx("circle", { cx: "18", cy: "5", r: "3" }),
317
+ /* @__PURE__ */ jsx("circle", { cx: "6", cy: "12", r: "3" }),
318
+ /* @__PURE__ */ jsx("circle", { cx: "18", cy: "19", r: "3" }),
319
+ /* @__PURE__ */ jsx("path", { d: "m8.5 10.5 7-4M8.5 13.5l7 4" })
320
+ ] }),
321
+ paperclip: /* @__PURE__ */ jsx("path", { d: "m8 12 7-7a4 4 0 0 1 6 6l-9 9a6 6 0 0 1-9-9l8-8" }),
322
+ location: /* @__PURE__ */ jsxs(Fragment, { children: [
323
+ /* @__PURE__ */ jsx("path", { d: "M12 22s7-6.2 7-13a7 7 0 1 0-14 0c0 6.8 7 13 7 13Z" }),
324
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "9", r: "2.5" })
325
+ ] }),
326
+ compass: /* @__PURE__ */ jsxs(Fragment, { children: [
327
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
328
+ /* @__PURE__ */ jsx("path", { d: "m15.5 8.5-2 5-5 2 2-5 5-2Z" })
329
+ ] }),
330
+ car: /* @__PURE__ */ jsxs(Fragment, { children: [
331
+ /* @__PURE__ */ jsx("path", { d: "M4 15V9l2-5h12l2 5v6M3 10h18M6 15h12" }),
332
+ /* @__PURE__ */ jsx("circle", { cx: "7", cy: "18", r: "2" }),
333
+ /* @__PURE__ */ jsx("circle", { cx: "17", cy: "18", r: "2" })
334
+ ] }),
335
+ truck: /* @__PURE__ */ jsxs(Fragment, { children: [
336
+ /* @__PURE__ */ jsx("path", { d: "M3 5h11v12H3V5ZM14 9h4l3 4v4h-7V9Z" }),
337
+ /* @__PURE__ */ jsx("circle", { cx: "7", cy: "19", r: "2" }),
338
+ /* @__PURE__ */ jsx("circle", { cx: "18", cy: "19", r: "2" })
339
+ ] }),
340
+ gift: /* @__PURE__ */ jsxs(Fragment, { children: [
341
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "9", width: "18", height: "12", rx: "2" }),
342
+ /* @__PURE__ */ jsx("path", { d: "M12 9v12M3 13h18M12 9H8a3 3 0 1 1 4-3v3Zm0 0h4a3 3 0 1 0-4-3v3Z" })
343
+ ] }),
344
+ coffee: /* @__PURE__ */ jsxs(Fragment, { children: [
345
+ /* @__PURE__ */ jsx("path", { d: "M4 8h13v6a6 6 0 0 1-6 6H10a6 6 0 0 1-6-6V8ZM17 10h2a3 3 0 0 1 0 6h-3" }),
346
+ /* @__PURE__ */ jsx("path", { d: "M8 4v1M12 3v2" })
347
+ ] }),
348
+ experiment: /* @__PURE__ */ jsxs(Fragment, { children: [
349
+ /* @__PURE__ */ jsx("path", { d: "M9 3h6M10 3v6l-6 10a2 2 0 0 0 2 3h12a2 2 0 0 0 2-3L14 9V3" }),
350
+ /* @__PURE__ */ jsx("path", { d: "M7 16h10" })
351
+ ] }),
352
+ tool: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M14 6a5 5 0 0 0-6-3l3 3-3 3-3-3a5 5 0 0 0 6 6l7 7a2 2 0 0 0 3-3l-7-7Z" }) }),
353
+ appstore: /* @__PURE__ */ jsxs(Fragment, { children: [
354
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "7", height: "7", rx: "2" }),
355
+ /* @__PURE__ */ jsx("rect", { x: "14", y: "3", width: "7", height: "7", rx: "2" }),
356
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "14", width: "7", height: "7", rx: "2" }),
357
+ /* @__PURE__ */ jsx("rect", { x: "14", y: "14", width: "7", height: "7", rx: "2" })
358
+ ] }),
359
+ puzzle: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M9 3h4.2a2.8 2.8 0 1 0 5.6 0H21v6h-2.2a2.8 2.8 0 1 0 0 5.6H21V21h-6.4v-2.2a2.8 2.8 0 1 0-5.6 0V21H3v-6.4h2.2a2.8 2.8 0 1 0 0-5.6H3V3h6Z" }) }),
360
+ partition: /* @__PURE__ */ jsxs(Fragment, { children: [
361
+ /* @__PURE__ */ jsx("path", { d: "M12 5v5M6 14v-2h12v2M6 18v3M12 18v3M18 18v3" }),
362
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "3", r: "2" }),
363
+ /* @__PURE__ */ jsx("circle", { cx: "6", cy: "16", r: "2" }),
364
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "16", r: "2" }),
365
+ /* @__PURE__ */ jsx("circle", { cx: "18", cy: "16", r: "2" })
366
+ ] }),
367
+ branches: /* @__PURE__ */ jsxs(Fragment, { children: [
368
+ /* @__PURE__ */ jsx("circle", { cx: "6", cy: "5", r: "2" }),
369
+ /* @__PURE__ */ jsx("circle", { cx: "18", cy: "7", r: "2" }),
370
+ /* @__PURE__ */ jsx("circle", { cx: "6", cy: "19", r: "2" }),
371
+ /* @__PURE__ */ jsx("path", { d: "M6 7v10M8 10c6 0 4-3 8-3M8 14c6 0 4 3 8 3" })
372
+ ] }),
373
+ scan: /* @__PURE__ */ jsx("path", { d: "M8 3H3v5M16 3h5v5M8 21H3v-5M16 21h5v-5M7 12h10" }),
374
+ "qr-code": /* @__PURE__ */ jsxs(Fragment, { children: [
375
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "7", height: "7", rx: "1" }),
376
+ /* @__PURE__ */ jsx("rect", { x: "14", y: "3", width: "7", height: "7", rx: "1" }),
377
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "14", width: "7", height: "7", rx: "1" }),
378
+ /* @__PURE__ */ jsx("path", { d: "M14 14h3v3h-3v-3ZM18 18h3v3h-3v-3ZM14 20h1M20 14h1" })
379
+ ] }),
380
+ barcode: /* @__PURE__ */ jsx("path", { d: "M4 5v14M7 5v14M11 5v14M14 5v14M16 5v14M20 5v14" }),
381
+ "user-plus": /* @__PURE__ */ jsxs(Fragment, { children: [
382
+ /* @__PURE__ */ jsx("circle", { cx: "10", cy: "8", r: "4" }),
383
+ /* @__PURE__ */ jsx("path", { d: "M3 21c.7-4.3 3-6.5 7-6.5 2 0 3.6.6 4.7 1.7M19 14v7M15.5 17.5h7" })
384
+ ] }),
385
+ "user-minus": /* @__PURE__ */ jsxs(Fragment, { children: [
386
+ /* @__PURE__ */ jsx("circle", { cx: "10", cy: "8", r: "4" }),
387
+ /* @__PURE__ */ jsx("path", { d: "M3 21c.7-4.3 3-6.5 7-6.5 2 0 3.6.6 4.7 1.7M15.5 17.5h7" })
388
+ ] }),
389
+ smile: /* @__PURE__ */ jsxs(Fragment, { children: [
390
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
391
+ /* @__PURE__ */ jsx("path", { d: "M8 10h.1M16 10h.1M8 15c1 1.4 2.3 2 4 2s3-.6 4-2" })
392
+ ] }),
393
+ meh: /* @__PURE__ */ jsxs(Fragment, { children: [
394
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
395
+ /* @__PURE__ */ jsx("path", { d: "M8 10h.1M16 10h.1M8 16h8" })
396
+ ] }),
397
+ frown: /* @__PURE__ */ jsxs(Fragment, { children: [
398
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
399
+ /* @__PURE__ */ jsx("path", { d: "M8 10h.1M16 10h.1M8 17c1-1.4 2.3-2 4-2s3 .6 4 2" })
400
+ ] }),
401
+ "game-cultivator": /* @__PURE__ */ jsxs(Fragment, { children: [
402
+ /* @__PURE__ */ jsx("path", { d: "M7.2 7.5h9.6M9 5.2 12 2l3 3.2" }),
403
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "8.8", r: "3.6" }),
404
+ /* @__PURE__ */ jsx("path", { d: "M7.5 21c.2-4.9 1.8-7.3 4.5-7.3s4.3 2.4 4.5 7.3M9.4 15.2 7 18m7.6-2.8L17 18M10 21l2-4 2 4" })
405
+ ] }),
406
+ "game-swordsman": /* @__PURE__ */ jsxs(Fragment, { children: [
407
+ /* @__PURE__ */ jsx("path", { d: "M9.2 5.2h5.6M12 2.5v2.7" }),
408
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "8.8", r: "3.4" }),
409
+ /* @__PURE__ */ jsx("path", { d: "M7.2 21c.3-5 1.9-7.4 4.8-7.4s4.5 2.4 4.8 7.4M9.2 14.8 7 18.2m7.8-3.4 2.2 3.4M9.5 21l2.5-4 2.5 4" }),
410
+ /* @__PURE__ */ jsx("path", { d: "m17.7 5.1 2.2-1-.9 2.3-5.2 5.2M16.2 7.8l1.8 1.8" })
411
+ ] }),
412
+ "game-spirit-wolf": /* @__PURE__ */ jsxs(Fragment, { children: [
413
+ /* @__PURE__ */ jsx("path", { d: "m5.2 8.2.7-4 3.3 2.2A9 9 0 0 1 12 6c1 0 1.9.1 2.8.4l3.3-2.2.7 4A7.7 7.7 0 0 1 20 13c0 4.3-3.5 7.7-8 7.7S4 17.3 4 13c0-1.8.4-3.4 1.2-4.8Z" }),
414
+ /* @__PURE__ */ jsx("path", { d: "M8.3 12h.1m7.2 0h.1M9 16c1.8 1.3 4.2 1.3 6 0m-3-1.5v1M7 18l-2.2 2M17 18l2.2 2" })
415
+ ] }),
416
+ "game-gem": /* @__PURE__ */ jsxs(Fragment, { children: [
417
+ /* @__PURE__ */ jsx("path", { d: "m4 8 3-4h10l3 4-8 13L4 8Z" }),
418
+ /* @__PURE__ */ jsx("path", { d: "M4 8h16M8 4l-2 4 6 13 6-13-2-4M6 8h12" })
419
+ ] }),
420
+ "game-ingot": /* @__PURE__ */ jsxs(Fragment, { children: [
421
+ /* @__PURE__ */ jsx("path", { d: "M4 9.5c2.2 1 4.1 1.5 5.8 1.6L12 6l2.2 5.1c1.7-.1 3.6-.6 5.8-1.6-.3 5.1-2.9 8.4-8 10-5.1-1.6-7.7-4.9-8-10Z" }),
422
+ /* @__PURE__ */ jsx("path", { d: "M4.6 10.1 3 6.5c2.3 1.2 4.2 1.6 5.8 1.2M19.4 10.1 21 6.5c-2.3 1.2-4.2 1.6-5.8 1.2M7 16.3c3.3 1 6.7 1 10 0" })
423
+ ] }),
424
+ "game-sword": /* @__PURE__ */ jsxs(Fragment, { children: [
425
+ /* @__PURE__ */ jsx("path", { d: "m14.5 4.5 5-1-1 5L9 18l-3 1 1-3 9.5-9.5M5 19l-1 1" }),
426
+ /* @__PURE__ */ jsx("path", { d: "m12.5 7.5 4 4M7.5 14.5l2 2" })
427
+ ] }),
428
+ "game-robe": /* @__PURE__ */ jsxs(Fragment, { children: [
429
+ /* @__PURE__ */ jsx("path", { d: "m8.5 4 3.5 2 3.5-2 4 4-2.5 3-1.2-1V21H8.2V10L7 11 4.5 8l4-4Z" }),
430
+ /* @__PURE__ */ jsx("path", { d: "M9 4.5 12 9l3-4.5M12 9v12" })
431
+ ] }),
432
+ "game-pants": /* @__PURE__ */ jsxs(Fragment, { children: [
433
+ /* @__PURE__ */ jsx("path", { d: "M7 3h10l1 18h-5l-1-10-1 10H6L7 3Z" }),
434
+ /* @__PURE__ */ jsx("path", { d: "M7 7h10M12 3v8" })
435
+ ] }),
436
+ "game-pendant": /* @__PURE__ */ jsxs(Fragment, { children: [
437
+ /* @__PURE__ */ jsx("path", { d: "M5 4c1.7 4.4 4 6.6 7 6.6S17.3 8.4 19 4" }),
438
+ /* @__PURE__ */ jsx("path", { d: "M12 10.6c-2.7 1.8-4 3.8-4 6a4 4 0 0 0 8 0c0-2.2-1.3-4.2-4-6Z" }),
439
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "16.5", r: "1.5" })
440
+ ] }),
441
+ "game-necklace": /* @__PURE__ */ jsxs(Fragment, { children: [
442
+ /* @__PURE__ */ jsx("path", { d: "M5 4c.7 6.3 3 9.5 7 9.5S18.3 10.3 19 4" }),
443
+ /* @__PURE__ */ jsx("path", { d: "m12 13.5 3 2.4-1.2 4.1h-3.6L9 15.9l3-2.4Z" }),
444
+ /* @__PURE__ */ jsx("path", { d: "M7 7h.1m10 0h.1M9 10h.1m6 0h.1" })
445
+ ] }),
446
+ "game-pill": /* @__PURE__ */ jsxs(Fragment, { children: [
447
+ /* @__PURE__ */ jsx("path", { d: "M6.2 17.8a5.7 5.7 0 0 1 0-8.1l3.5-3.5a5.7 5.7 0 1 1 8.1 8.1l-3.5 3.5a5.7 5.7 0 0 1-8.1 0Z" }),
448
+ /* @__PURE__ */ jsx("path", { d: "m8 8 8 8" }),
449
+ /* @__PURE__ */ jsx("path", { d: "M6.3 12.2c1.3.2 2.5.7 3.5 1.7s1.6 2.2 1.8 3.5" })
450
+ ] }),
451
+ "game-potion": /* @__PURE__ */ jsxs(Fragment, { children: [
452
+ /* @__PURE__ */ jsx("path", { d: "M9 3h6M10 3v5l-5 7.5A3.5 3.5 0 0 0 8 21h8a3.5 3.5 0 0 0 3-5.5L14 8V3" }),
453
+ /* @__PURE__ */ jsx("path", { d: "M7 15h10M9.5 12h5" })
454
+ ] }),
455
+ "game-elixir-jar": /* @__PURE__ */ jsxs(Fragment, { children: [
456
+ /* @__PURE__ */ jsx("path", { d: "M8 3h8l-1 4c2.6 1.2 4 3.5 4 6.8V21H5v-7.2C5 10.5 6.4 8.2 9 7L8 3Z" }),
457
+ /* @__PURE__ */ jsx("path", { d: "M8.5 7h7M5 14h14M9 17h6" })
458
+ ] }),
459
+ "game-flame": /* @__PURE__ */ jsxs(Fragment, { children: [
460
+ /* @__PURE__ */ jsx("path", { d: "M13.8 2.5c.6 3.6-2.1 4.8-2.1 7.2 0 1.1.7 1.9 1.7 1.9 1.8 0 2.4-2.1 2-4.1 2.6 2 4.1 4.6 4.1 7.4A7.5 7.5 0 0 1 4.5 15c0-3.5 1.8-6.5 5.2-9-.2 2.3.8 3.4 1.8 3.7-.4-2.6.3-5.1 2.3-7.2Z" }),
461
+ /* @__PURE__ */ jsx("path", { d: "M12 21c-2 0-3.3-1.3-3.3-3.2 0-1.5.9-2.8 2.6-4.2 0 1.7.8 2.5 1.7 2.5 1 0 1.7-.9 1.5-2.3 1.2 1.2 1.8 2.5 1.8 4A4 4 0 0 1 12 21Z" })
462
+ ] }),
463
+ "game-soul-elixir": /* @__PURE__ */ jsxs(Fragment, { children: [
464
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "4.2" }),
465
+ /* @__PURE__ */ jsx("path", { d: "M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.2 2.2m9 9 2.2 2.2m0-13.4-2.2 2.2m-9 9-2.2 2.2" }),
466
+ /* @__PURE__ */ jsx("path", { d: "m10 12 1.4 1.4L14.5 10" })
467
+ ] }),
468
+ "game-herb": /* @__PURE__ */ jsxs(Fragment, { children: [
469
+ /* @__PURE__ */ jsx("path", { d: "M12 21V9" }),
470
+ /* @__PURE__ */ jsx("path", { d: "M12 13c-5.5.1-8-2.6-8-7.5 5-.2 7.8 2.1 8 7.5Zm0 4c5.5.1 8-2.6 8-7.5-5-.2-7.8 2.1-8 7.5Z" })
471
+ ] }),
472
+ "game-meditate": /* @__PURE__ */ jsxs(Fragment, { children: [
473
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "5.5", r: "2.5" }),
474
+ /* @__PURE__ */ jsx("path", { d: "M8.5 11c1-1.5 2.2-2.2 3.5-2.2s2.5.7 3.5 2.2l2.8 4M5.7 15l2.8-4M4 19c2.5-2.2 5.2-2.5 8-1 2.8-1.5 5.5-1.2 8 1M7 21h10" }),
475
+ /* @__PURE__ */ jsx("path", { d: "m9.5 14.5 2.5 3.4 2.5-3.4" })
476
+ ] }),
477
+ "game-backpack": /* @__PURE__ */ jsxs(Fragment, { children: [
478
+ /* @__PURE__ */ jsx("path", { d: "M8 8V5.5a4 4 0 0 1 8 0V8M6 8h12l2 13H4L6 8Z" }),
479
+ /* @__PURE__ */ jsx("path", { d: "M8.5 13h7v5h-7v-5ZM9 5.5h6" })
480
+ ] }),
481
+ "game-qi": /* @__PURE__ */ jsxs(Fragment, { children: [
482
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
483
+ /* @__PURE__ */ jsx("path", { d: "M7 8.5c2.5-2.8 7-2.2 8.7.2 1.7 2.4.9 5.6-1.6 6.8-2.4 1.2-5.5-.1-5.8-2.5-.2-1.8 1.4-3.1 3.2-2.8 1.8.3 2.6 2.2 1.7 3.5" })
484
+ ] })
485
+ };
486
+
487
+ // src/components/Icon.tsx
488
+ import { Fragment as Fragment2, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
489
+ var coreIconPaths = {
490
+ search: /* @__PURE__ */ jsxs2(Fragment2, { children: [
491
+ /* @__PURE__ */ jsx2("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
492
+ /* @__PURE__ */ jsx2("path", { d: "m15.8 15.8 5.2 5.2" })
493
+ ] }),
494
+ plus: /* @__PURE__ */ jsx2("path", { d: "M12 4v16M4 12h16" }),
495
+ minus: /* @__PURE__ */ jsx2("path", { d: "M4 12h16" }),
496
+ close: /* @__PURE__ */ jsx2("path", { d: "m5 5 14 14M19 5 5 19" }),
497
+ check: /* @__PURE__ */ jsx2("path", { d: "m4 12.5 5.2 5L20 6.5" }),
498
+ info: /* @__PURE__ */ jsxs2(Fragment2, { children: [
499
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "9" }),
500
+ /* @__PURE__ */ jsx2("path", { d: "M12 11v6M12 7.2v.1" })
501
+ ] }),
502
+ question: /* @__PURE__ */ jsxs2(Fragment2, { children: [
503
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "9" }),
504
+ /* @__PURE__ */ jsx2("path", { d: "M9.8 9a2.4 2.4 0 1 1 3.5 2.2c-.9.5-1.3 1.1-1.3 2.1M12 16.8v.1" })
505
+ ] }),
506
+ warning: /* @__PURE__ */ jsxs2(Fragment2, { children: [
507
+ /* @__PURE__ */ jsx2("path", { d: "M10.3 4.1 2.6 18a2 2 0 0 0 1.8 3h15.2a2 2 0 0 0 1.8-3L13.7 4.1a2 2 0 0 0-3.4 0Z" }),
508
+ /* @__PURE__ */ jsx2("path", { d: "M12 9v4M12 17v.1" })
509
+ ] }),
510
+ "circle-check": /* @__PURE__ */ jsxs2(Fragment2, { children: [
511
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "9" }),
512
+ /* @__PURE__ */ jsx2("path", { d: "m8 12 2.7 2.7L16.5 9" })
513
+ ] }),
514
+ "circle-close": /* @__PURE__ */ jsxs2(Fragment2, { children: [
515
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "9" }),
516
+ /* @__PURE__ */ jsx2("path", { d: "m9 9 6 6M15 9l-6 6" })
517
+ ] }),
518
+ "circle-plus": /* @__PURE__ */ jsxs2(Fragment2, { children: [
519
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "9" }),
520
+ /* @__PURE__ */ jsx2("path", { d: "M12 8v8M8 12h8" })
521
+ ] }),
522
+ "circle-minus": /* @__PURE__ */ jsxs2(Fragment2, { children: [
523
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "9" }),
524
+ /* @__PURE__ */ jsx2("path", { d: "M8 12h8" })
525
+ ] }),
526
+ "chevron-left": /* @__PURE__ */ jsx2("path", { d: "m15.5 5-7 7 7 7" }),
527
+ "chevron-right": /* @__PURE__ */ jsx2("path", { d: "m8.5 5 7 7-7 7" }),
528
+ "chevron-up": /* @__PURE__ */ jsx2("path", { d: "m5 15.5 7-7 7 7" }),
529
+ "chevron-down": /* @__PURE__ */ jsx2("path", { d: "m5 8.5 7 7 7-7" }),
530
+ "double-left": /* @__PURE__ */ jsxs2(Fragment2, { children: [
531
+ /* @__PURE__ */ jsx2("path", { d: "m12 5-7 7 7 7" }),
532
+ /* @__PURE__ */ jsx2("path", { d: "m19 5-7 7 7 7" })
533
+ ] }),
534
+ "double-right": /* @__PURE__ */ jsxs2(Fragment2, { children: [
535
+ /* @__PURE__ */ jsx2("path", { d: "m5 5 7 7-7 7" }),
536
+ /* @__PURE__ */ jsx2("path", { d: "m12 5 7 7-7 7" })
537
+ ] }),
538
+ "arrow-left": /* @__PURE__ */ jsxs2(Fragment2, { children: [
539
+ /* @__PURE__ */ jsx2("path", { d: "m10 5-7 7 7 7" }),
540
+ /* @__PURE__ */ jsx2("path", { d: "M3 12h18" })
541
+ ] }),
542
+ "arrow-right": /* @__PURE__ */ jsxs2(Fragment2, { children: [
543
+ /* @__PURE__ */ jsx2("path", { d: "m14 5 7 7-7 7" }),
544
+ /* @__PURE__ */ jsx2("path", { d: "M3 12h18" })
545
+ ] }),
546
+ "arrow-up": /* @__PURE__ */ jsxs2(Fragment2, { children: [
547
+ /* @__PURE__ */ jsx2("path", { d: "m5 10 7-7 7 7" }),
548
+ /* @__PURE__ */ jsx2("path", { d: "M12 3v18" })
549
+ ] }),
550
+ "arrow-down": /* @__PURE__ */ jsxs2(Fragment2, { children: [
551
+ /* @__PURE__ */ jsx2("path", { d: "m5 14 7 7 7-7" }),
552
+ /* @__PURE__ */ jsx2("path", { d: "M12 3v18" })
553
+ ] }),
554
+ menu: /* @__PURE__ */ jsx2("path", { d: "M4 6h16M4 12h16M4 18h16" }),
555
+ "more-horizontal": /* @__PURE__ */ jsx2("path", { d: "M5 12h.1M12 12h.1M19 12h.1" }),
556
+ "more-vertical": /* @__PURE__ */ jsx2("path", { d: "M12 5v.1M12 12v.1M12 19v.1" }),
557
+ home: /* @__PURE__ */ jsxs2(Fragment2, { children: [
558
+ /* @__PURE__ */ jsx2("path", { d: "m3.5 11 8.5-7 8.5 7" }),
559
+ /* @__PURE__ */ jsx2("path", { d: "M5.5 9.5V20h13V9.5M9.5 20v-6h5v6" })
560
+ ] }),
561
+ user: /* @__PURE__ */ jsxs2(Fragment2, { children: [
562
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "8", r: "4" }),
563
+ /* @__PURE__ */ jsx2("path", { d: "M4.5 21c.7-4.2 3.2-6.5 7.5-6.5s6.8 2.3 7.5 6.5" })
564
+ ] }),
565
+ users: /* @__PURE__ */ jsxs2(Fragment2, { children: [
566
+ /* @__PURE__ */ jsx2("circle", { cx: "9", cy: "8", r: "3.5" }),
567
+ /* @__PURE__ */ jsx2("path", { d: "M2.8 20c.6-3.8 2.7-5.8 6.2-5.8s5.6 2 6.2 5.8" }),
568
+ /* @__PURE__ */ jsx2("path", { d: "M15 5.2a3.5 3.5 0 0 1 0 6.6M16.2 14.5c2.9.5 4.4 2.3 4.9 5.5" })
569
+ ] }),
570
+ settings: /* @__PURE__ */ jsxs2(Fragment2, { children: [
571
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "3" }),
572
+ /* @__PURE__ */ jsx2("path", { d: "M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2.8 2.8-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.6v.2h-4V21a1.7 1.7 0 0 0-1-1.6 1.7 1.7 0 0 0-1.9.3l-.1.1L4.2 17l.1-.1a1.7 1.7 0 0 0 .3-1.9A1.7 1.7 0 0 0 3 14H2.8v-4H3a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9L4.2 7 7 4.2l.1.1a1.7 1.7 0 0 0 1.9.3A1.7 1.7 0 0 0 10 3v-.2h4V3a1.7 1.7 0 0 0 1 1.6 1.7 1.7 0 0 0 1.9-.3l.1-.1L19.8 7l-.1.1a1.7 1.7 0 0 0-.3 1.9 1.7 1.7 0 0 0 1.6 1h.2v4H21a1.7 1.7 0 0 0-1.6 1Z" })
573
+ ] }),
574
+ edit: /* @__PURE__ */ jsxs2(Fragment2, { children: [
575
+ /* @__PURE__ */ jsx2("path", { d: "M4 20h4l11-11a2.8 2.8 0 0 0-4-4L4 16v4Z" }),
576
+ /* @__PURE__ */ jsx2("path", { d: "m13.5 6.5 4 4M4 20h16" })
577
+ ] }),
578
+ copy: /* @__PURE__ */ jsxs2(Fragment2, { children: [
579
+ /* @__PURE__ */ jsx2("rect", { x: "8", y: "8", width: "12", height: "12", rx: "2.5" }),
580
+ /* @__PURE__ */ jsx2("path", { d: "M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2" })
581
+ ] }),
582
+ trash: /* @__PURE__ */ jsx2(Fragment2, { children: /* @__PURE__ */ jsx2("path", { d: "M4 7h16M9 3h6l1 4H8l1-4ZM6 7l1 14h10l1-14M10 11v6M14 11v6" }) }),
583
+ scissors: /* @__PURE__ */ jsxs2(Fragment2, { children: [
584
+ /* @__PURE__ */ jsx2("circle", { cx: "6", cy: "7", r: "3" }),
585
+ /* @__PURE__ */ jsx2("circle", { cx: "6", cy: "17", r: "3" }),
586
+ /* @__PURE__ */ jsx2("path", { d: "m8.7 8.3 11.3 6.2M8.7 15.7 20 9.5" })
587
+ ] }),
588
+ undo: /* @__PURE__ */ jsxs2(Fragment2, { children: [
589
+ /* @__PURE__ */ jsx2("path", { d: "m8 7-5 5 5 5" }),
590
+ /* @__PURE__ */ jsx2("path", { d: "M3 12h10a7 7 0 0 1 7 7" })
591
+ ] }),
592
+ redo: /* @__PURE__ */ jsxs2(Fragment2, { children: [
593
+ /* @__PURE__ */ jsx2("path", { d: "m16 7 5 5-5 5" }),
594
+ /* @__PURE__ */ jsx2("path", { d: "M21 12H11a7 7 0 0 0-7 7" })
595
+ ] }),
596
+ "zoom-in": /* @__PURE__ */ jsxs2(Fragment2, { children: [
597
+ /* @__PURE__ */ jsx2("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
598
+ /* @__PURE__ */ jsx2("path", { d: "m15.8 15.8 5.2 5.2M10.8 7.8v6M7.8 10.8h6" })
599
+ ] }),
600
+ "zoom-out": /* @__PURE__ */ jsxs2(Fragment2, { children: [
601
+ /* @__PURE__ */ jsx2("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
602
+ /* @__PURE__ */ jsx2("path", { d: "m15.8 15.8 5.2 5.2M7.8 10.8h6" })
603
+ ] }),
604
+ download: /* @__PURE__ */ jsx2(Fragment2, { children: /* @__PURE__ */ jsx2("path", { d: "M12 3v12M7 10l5 5 5-5M4 20h16" }) }),
605
+ upload: /* @__PURE__ */ jsx2(Fragment2, { children: /* @__PURE__ */ jsx2("path", { d: "M12 16V4M7 9l5-5 5 5M4 20h16" }) }),
606
+ refresh: /* @__PURE__ */ jsxs2(Fragment2, { children: [
607
+ /* @__PURE__ */ jsx2("path", { d: "M20 7v5h-5" }),
608
+ /* @__PURE__ */ jsx2("path", { d: "M19 12a7.5 7.5 0 1 1-2-5" })
609
+ ] }),
610
+ loader: /* @__PURE__ */ jsx2("path", { d: "M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M18.4 5.6l-2.1 2.1M7.7 16.3l-2.1 2.1" }),
611
+ calendar: /* @__PURE__ */ jsxs2(Fragment2, { children: [
612
+ /* @__PURE__ */ jsx2("rect", { x: "3", y: "5", width: "18", height: "16", rx: "2.5" }),
613
+ /* @__PURE__ */ jsx2("path", { d: "M8 3v4M16 3v4M3 10h18M7 14h2M11 14h2M15 14h2M7 18h2M11 18h2" })
614
+ ] }),
615
+ clock: /* @__PURE__ */ jsxs2(Fragment2, { children: [
616
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "9" }),
617
+ /* @__PURE__ */ jsx2("path", { d: "M12 7v5l3.5 2" })
618
+ ] }),
619
+ mail: /* @__PURE__ */ jsxs2(Fragment2, { children: [
620
+ /* @__PURE__ */ jsx2("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2.5" }),
621
+ /* @__PURE__ */ jsx2("path", { d: "m4 7 8 6 8-6" })
622
+ ] }),
623
+ phone: /* @__PURE__ */ jsx2("path", { d: "M8.2 3.5 5.4 4.8c-1 .5-1.5 1.7-1.1 2.8 2.2 5.9 6.2 9.9 12.1 12.1 1.1.4 2.3-.1 2.8-1.1l1.3-2.8-4.2-2-1.4 2.1c-2.8-1.2-5.6-4-6.8-6.8l2.1-1.4-2-4.2Z" }),
624
+ link: /* @__PURE__ */ jsxs2(Fragment2, { children: [
625
+ /* @__PURE__ */ jsx2("path", { d: "m9.5 14.5 5-5" }),
626
+ /* @__PURE__ */ jsx2("path", { d: "M7.5 16.5 6 18a3.5 3.5 0 0 1-5-5l3-3a3.5 3.5 0 0 1 5 0M16.5 7.5 18 6a3.5 3.5 0 0 1 5 5l-3 3a3.5 3.5 0 0 1-5 0" })
627
+ ] }),
628
+ "external-link": /* @__PURE__ */ jsxs2(Fragment2, { children: [
629
+ /* @__PURE__ */ jsx2("path", { d: "M14 4h6v6M20 4 11 13" }),
630
+ /* @__PURE__ */ jsx2("path", { d: "M19 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h6" })
631
+ ] }),
632
+ eye: /* @__PURE__ */ jsxs2(Fragment2, { children: [
633
+ /* @__PURE__ */ jsx2("path", { d: "M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Z" }),
634
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "3" })
635
+ ] }),
636
+ "eye-off": /* @__PURE__ */ jsx2(Fragment2, { children: /* @__PURE__ */ jsx2("path", { d: "m3 3 18 18M10.6 6.1A10 10 0 0 1 12 6c6 0 9.5 6 9.5 6a14.5 14.5 0 0 1-2.2 3M6.4 6.4C3.9 8.2 2.5 12 2.5 12s3.5 6 9.5 6a9.7 9.7 0 0 0 3-.5M9.9 9.9a3 3 0 0 0 4.2 4.2" }) }),
637
+ lock: /* @__PURE__ */ jsxs2(Fragment2, { children: [
638
+ /* @__PURE__ */ jsx2("rect", { x: "4", y: "10", width: "16", height: "11", rx: "2.5" }),
639
+ /* @__PURE__ */ jsx2("path", { d: "M8 10V7a4 4 0 0 1 8 0v3M12 14v3" })
640
+ ] }),
641
+ unlock: /* @__PURE__ */ jsxs2(Fragment2, { children: [
642
+ /* @__PURE__ */ jsx2("rect", { x: "4", y: "10", width: "16", height: "11", rx: "2.5" }),
643
+ /* @__PURE__ */ jsx2("path", { d: "M8 10V7a4 4 0 0 1 7.5-2M12 14v3" })
644
+ ] }),
645
+ bell: /* @__PURE__ */ jsxs2(Fragment2, { children: [
646
+ /* @__PURE__ */ jsx2("path", { d: "M18 9a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9Z" }),
647
+ /* @__PURE__ */ jsx2("path", { d: "M10 21h4" })
648
+ ] }),
649
+ star: /* @__PURE__ */ jsx2("path", { d: "m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2-5.6-3-5.6 3 1.1-6.2L3 9.6l6.2-.9L12 3Z" }),
650
+ heart: /* @__PURE__ */ jsx2("path", { d: "M20.8 5.8a5.5 5.5 0 0 0-7.8 0L12 6.9l-1-1.1a5.5 5.5 0 1 0-7.8 7.8L12 21l8.8-7.4a5.5 5.5 0 0 0 0-7.8Z" }),
651
+ file: /* @__PURE__ */ jsxs2(Fragment2, { children: [
652
+ /* @__PURE__ */ jsx2("path", { d: "M6 3h8l4 4v14H6V3Z" }),
653
+ /* @__PURE__ */ jsx2("path", { d: "M14 3v5h4" })
654
+ ] }),
655
+ folder: /* @__PURE__ */ jsx2("path", { d: "M3 6h7l2 2h9v11H3V6Z" }),
656
+ image: /* @__PURE__ */ jsxs2(Fragment2, { children: [
657
+ /* @__PURE__ */ jsx2("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2.5" }),
658
+ /* @__PURE__ */ jsx2("circle", { cx: "9", cy: "9", r: "2" }),
659
+ /* @__PURE__ */ jsx2("path", { d: "m4 17 4.5-4.5 3.5 3 2.5-2.5 5.5 5" })
660
+ ] }),
661
+ filter: /* @__PURE__ */ jsx2("path", { d: "M3 5h18l-7 8v6l-4 2v-8L3 5Z" }),
662
+ "sort-ascending": /* @__PURE__ */ jsxs2(Fragment2, { children: [
663
+ /* @__PURE__ */ jsx2("path", { d: "M7 19V5M3.5 8.5 7 5l3.5 3.5" }),
664
+ /* @__PURE__ */ jsx2("path", { d: "M13 7h8M13 12h6M13 17h4" })
665
+ ] }),
666
+ "sort-descending": /* @__PURE__ */ jsxs2(Fragment2, { children: [
667
+ /* @__PURE__ */ jsx2("path", { d: "M7 5v14M3.5 15.5 7 19l3.5-3.5" }),
668
+ /* @__PURE__ */ jsx2("path", { d: "M13 7h4M13 12h6M13 17h8" })
669
+ ] }),
670
+ play: /* @__PURE__ */ jsxs2(Fragment2, { children: [
671
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "9" }),
672
+ /* @__PURE__ */ jsx2("path", { d: "m10 8 6 4-6 4V8Z" })
673
+ ] }),
674
+ pause: /* @__PURE__ */ jsxs2(Fragment2, { children: [
675
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "9" }),
676
+ /* @__PURE__ */ jsx2("path", { d: "M9.5 9v6M14.5 9v6" })
677
+ ] }),
678
+ book: /* @__PURE__ */ jsxs2(Fragment2, { children: [
679
+ /* @__PURE__ */ jsx2("path", { d: "M4 5.5A2.5 2.5 0 0 1 6.5 3H11v17H6.5A2.5 2.5 0 0 0 4 22V5.5Z" }),
680
+ /* @__PURE__ */ jsx2("path", { d: "M20 5.5A2.5 2.5 0 0 0 17.5 3H13v17h4.5A2.5 2.5 0 0 1 20 22V5.5Z" })
681
+ ] }),
682
+ component: /* @__PURE__ */ jsxs2(Fragment2, { children: [
683
+ /* @__PURE__ */ jsx2("rect", { x: "4", y: "4", width: "6", height: "6", rx: "1.5" }),
684
+ /* @__PURE__ */ jsx2("rect", { x: "14", y: "4", width: "6", height: "6", rx: "1.5" }),
685
+ /* @__PURE__ */ jsx2("rect", { x: "4", y: "14", width: "6", height: "6", rx: "1.5" }),
686
+ /* @__PURE__ */ jsx2("rect", { x: "14", y: "14", width: "6", height: "6", rx: "1.5" })
687
+ ] }),
688
+ token: /* @__PURE__ */ jsxs2(Fragment2, { children: [
689
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "4" }),
690
+ /* @__PURE__ */ jsx2("path", { d: "M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M18.7 5.3l-2.1 2.1M7.4 16.6l-2.1 2.1" })
691
+ ] }),
692
+ sun: /* @__PURE__ */ jsxs2(Fragment2, { children: [
693
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "3.6" }),
694
+ /* @__PURE__ */ jsx2("path", { d: "M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M18.7 5.3l-1.4 1.4M6.7 17.3l-1.4 1.4" })
695
+ ] }),
696
+ moon: /* @__PURE__ */ jsx2("path", { d: "M20 15.2A8 8 0 0 1 8.8 4 8.5 8.5 0 1 0 20 15.2Z" }),
697
+ code: /* @__PURE__ */ jsx2("path", { d: "m9 18-6-6 6-6M15 6l6 6-6 6" }),
698
+ github: /* @__PURE__ */ jsx2("path", { d: "M9 19c-4 1.2-4-2-5-2.5M14 22v-3.1c0-.9.3-1.5.8-1.9 2.7-.3 5.5-1.3 5.5-6A4.7 4.7 0 0 0 19 7.7 4.4 4.4 0 0 0 18.9 4S17.8 3.7 15 5.3a11.7 11.7 0 0 0-6 0C6.2 3.7 5.1 4 5.1 4A4.4 4.4 0 0 0 5 7.7 4.7 4.7 0 0 0 3.7 11c0 4.7 2.8 5.7 5.5 6 .5.4.8 1 .8 1.9V22" })
699
+ };
700
+ var iconPaths = { ...coreIconPaths, ...extendedIconPaths };
701
+ var ICON_NAMES = Object.freeze(Object.keys(iconPaths));
702
+ var filledIconPaths = {
703
+ info: /* @__PURE__ */ jsxs2(Fragment2, { children: [
704
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
705
+ /* @__PURE__ */ jsx2("path", { d: "M12 10.5v6M12 7.2v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
706
+ ] }),
707
+ question: /* @__PURE__ */ jsxs2(Fragment2, { children: [
708
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
709
+ /* @__PURE__ */ jsx2("path", { d: "M9.6 9a2.5 2.5 0 1 1 3.6 2.3c-.8.5-1.2 1.1-1.2 2.1M12 16.8v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
710
+ ] }),
711
+ warning: /* @__PURE__ */ jsxs2(Fragment2, { children: [
712
+ /* @__PURE__ */ jsx2("path", { d: "M10.3 3.5 1.8 19a2 2 0 0 0 1.8 3h16.8a2 2 0 0 0 1.8-3L13.7 3.5a2 2 0 0 0-3.4 0Z", fill: "currentColor", stroke: "none" }),
713
+ /* @__PURE__ */ jsx2("path", { d: "M12 9v5M12 18v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
714
+ ] }),
715
+ "circle-check": /* @__PURE__ */ jsxs2(Fragment2, { children: [
716
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
717
+ /* @__PURE__ */ jsx2("path", { d: "m7.5 12 3 3 6-6", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
718
+ ] }),
719
+ "circle-close": /* @__PURE__ */ jsxs2(Fragment2, { children: [
720
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
721
+ /* @__PURE__ */ jsx2("path", { d: "m8.8 8.8 6.4 6.4M15.2 8.8l-6.4 6.4", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
722
+ ] }),
723
+ "circle-plus": /* @__PURE__ */ jsxs2(Fragment2, { children: [
724
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
725
+ /* @__PURE__ */ jsx2("path", { d: "M12 7.5v9M7.5 12h9", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
726
+ ] }),
727
+ "circle-minus": /* @__PURE__ */ jsxs2(Fragment2, { children: [
728
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
729
+ /* @__PURE__ */ jsx2("path", { d: "M7.5 12h9", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
730
+ ] }),
731
+ home: /* @__PURE__ */ jsx2("path", { d: "M2.6 10.8 12 2.8l9.4 8a1 1 0 0 1-1.3 1.5l-.6-.5V21h-5.2v-6.2H9.7V21H4.5v-9.2l-.6.5a1 1 0 1 1-1.3-1.5Z", fill: "currentColor", stroke: "none" }),
732
+ user: /* @__PURE__ */ jsxs2(Fragment2, { children: [
733
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "7.5", r: "4.5", fill: "currentColor", stroke: "none" }),
734
+ /* @__PURE__ */ jsx2("path", { d: "M3.5 21c.7-5 3.6-7.5 8.5-7.5s7.8 2.5 8.5 7.5H3.5Z", fill: "currentColor", stroke: "none" })
735
+ ] }),
736
+ users: /* @__PURE__ */ jsxs2(Fragment2, { children: [
737
+ /* @__PURE__ */ jsx2("circle", { cx: "8.5", cy: "8", r: "3.8", fill: "currentColor", stroke: "none" }),
738
+ /* @__PURE__ */ jsx2("circle", { cx: "17", cy: "8.5", r: "3", fill: "currentColor", stroke: "none", opacity: ".7" }),
739
+ /* @__PURE__ */ jsx2("path", { d: "M1.8 21c.6-4.6 2.8-7 6.7-7s6.1 2.4 6.7 7H1.8ZM14.4 15.2c3.9-.2 6.4 1.7 7 5.8h-4.5a9.9 9.9 0 0 0-2.5-5.8Z", fill: "currentColor", stroke: "none" })
740
+ ] }),
741
+ trash: /* @__PURE__ */ jsx2("path", { d: "M8 3h8l1 3h4v2H3V6h4l1-3Zm-2.5 7h13l-1 11h-11l-1-11Z", fill: "currentColor", stroke: "none" }),
742
+ bell: /* @__PURE__ */ jsx2("path", { d: "M12 2.5a2 2 0 0 1 2 1.6c3 .9 5 3.6 5 6.9v4.3l2 3.2H3l2-3.2V11c0-3.3 2-6 5-6.9a2 2 0 0 1 2-1.6ZM9.2 20h5.6a3 3 0 0 1-5.6 0Z", fill: "currentColor", stroke: "none" }),
743
+ star: /* @__PURE__ */ jsx2("path", { d: "m12 2.2 3 6 6.6 1-4.8 4.6 1.1 6.6-5.9-3.1-5.9 3.1 1.1-6.6-4.8-4.6 6.6-1 3-6Z", fill: "currentColor", stroke: "none" }),
744
+ heart: /* @__PURE__ */ jsx2("path", { d: "M12 21.3 3.1 13.7A5.8 5.8 0 0 1 11 5.2l1 1 1-1a5.8 5.8 0 0 1 7.9 8.5L12 21.3Z", fill: "currentColor", stroke: "none" }),
745
+ mail: /* @__PURE__ */ jsxs2(Fragment2, { children: [
746
+ /* @__PURE__ */ jsx2("rect", { x: "2.5", y: "4.5", width: "19", height: "15", rx: "2.5", fill: "currentColor", stroke: "none" }),
747
+ /* @__PURE__ */ jsx2("path", { d: "m4.5 7 7.5 5.8L19.5 7", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.8" })
748
+ ] }),
749
+ lock: /* @__PURE__ */ jsx2("path", { d: "M7 10V7a5 5 0 0 1 10 0v3h1.5a2.5 2.5 0 0 1 2.5 2.5v7a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-7A2.5 2.5 0 0 1 5.5 10H7Zm2.5 0h5V7a2.5 2.5 0 0 0-5 0v3Z", fill: "currentColor", stroke: "none" }),
750
+ unlock: /* @__PURE__ */ jsx2("path", { d: "M7 10V7a5 5 0 0 1 9.5-2.2l-2.2 1.1A2.5 2.5 0 0 0 9.5 7v3h9A2.5 2.5 0 0 1 21 12.5v7a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-7A2.5 2.5 0 0 1 5.5 10H7Z", fill: "currentColor", stroke: "none" }),
751
+ calendar: /* @__PURE__ */ jsxs2(Fragment2, { children: [
752
+ /* @__PURE__ */ jsx2("rect", { x: "2.5", y: "4.5", width: "19", height: "17", rx: "2.5", fill: "currentColor", stroke: "none" }),
753
+ /* @__PURE__ */ jsx2("path", { d: "M3 9.5h18M8 2.5v4M16 2.5v4", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.8" })
754
+ ] }),
755
+ clock: /* @__PURE__ */ jsxs2(Fragment2, { children: [
756
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
757
+ /* @__PURE__ */ jsx2("path", { d: "M12 6.5V12l4 2.3", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
758
+ ] }),
759
+ file: /* @__PURE__ */ jsx2("path", { d: "M5 2.5h10l4 4V22H5V2.5Zm9 1.8V8h3.7L14 4.3Z", fill: "currentColor", stroke: "none" }),
760
+ folder: /* @__PURE__ */ jsx2("path", { d: "M2.5 5h7l2.2 2.5h9.8V20H2.5V5Z", fill: "currentColor", stroke: "none" }),
761
+ image: /* @__PURE__ */ jsxs2(Fragment2, { children: [
762
+ /* @__PURE__ */ jsx2("rect", { x: "2.5", y: "3.5", width: "19", height: "17", rx: "2.5", fill: "currentColor", stroke: "none" }),
763
+ /* @__PURE__ */ jsx2("path", { d: "m4.5 18 4.3-4.6 3.4 3 2.5-2.6 4.8 4.2", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.7" }),
764
+ /* @__PURE__ */ jsx2("circle", { cx: "8", cy: "8.5", r: "1.7", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
765
+ ] }),
766
+ filter: /* @__PURE__ */ jsx2("path", { d: "M2 4h20l-7.8 9v6.2L9.8 22v-9L2 4Z", fill: "currentColor", stroke: "none" }),
767
+ play: /* @__PURE__ */ jsxs2(Fragment2, { children: [
768
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
769
+ /* @__PURE__ */ jsx2("path", { d: "m10 7.8 6.5 4.2-6.5 4.2V7.8Z", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
770
+ ] }),
771
+ pause: /* @__PURE__ */ jsxs2(Fragment2, { children: [
772
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
773
+ /* @__PURE__ */ jsx2("path", { d: "M8.5 7.5h2.5v9H8.5v-9Zm4.5 0h2.5v9H13v-9Z", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
774
+ ] }),
775
+ book: /* @__PURE__ */ jsx2("path", { d: "M3 4.5A3.5 3.5 0 0 1 6.5 1H11v19H6.5A3.5 3.5 0 0 0 3 23V4.5ZM21 4.5A3.5 3.5 0 0 0 17.5 1H13v19h4.5A3.5 3.5 0 0 1 21 23V4.5Z", fill: "currentColor", stroke: "none" }),
776
+ component: /* @__PURE__ */ jsxs2(Fragment2, { children: [
777
+ /* @__PURE__ */ jsx2("rect", { x: "3", y: "3", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
778
+ /* @__PURE__ */ jsx2("rect", { x: "13", y: "3", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
779
+ /* @__PURE__ */ jsx2("rect", { x: "3", y: "13", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
780
+ /* @__PURE__ */ jsx2("rect", { x: "13", y: "13", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" })
781
+ ] }),
782
+ token: /* @__PURE__ */ jsxs2(Fragment2, { children: [
783
+ /* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "5", fill: "currentColor", stroke: "none" }),
784
+ /* @__PURE__ */ jsx2("path", { d: "M12 1v4M12 19v4M1 12h4M19 12h4M4.2 4.2 7 7M17 17l2.8 2.8M19.8 4.2 17 7M7 17l-2.8 2.8", stroke: "currentColor", strokeWidth: "2.2" })
785
+ ] })
786
+ };
787
+ var FILLED_ICON_NAMES = Object.freeze(Object.keys(filledIconPaths));
788
+ var Icon = forwardRef(function Icon2({ name, size = "1em", strokeWidth = 1.8, rotate = 0, spin = false, pulse = false, label, variant = "outline", className = "", style, ...props }, ref) {
789
+ const resolvedSize = typeof size === "number" ? `${size}px` : size;
790
+ const mergedStyle = { "--sia-icon-size": resolvedSize, "--sia-icon-rotate": `${rotate}deg`, ...style };
791
+ const animationClass = spin ? " sia-icon--spin" : pulse ? " sia-icon--pulse" : "";
792
+ const filledPath = filledIconPaths[name];
793
+ const resolvedVariant = variant === "filled" && filledPath ? "filled" : "outline";
794
+ return /* @__PURE__ */ jsx2(
795
+ "span",
796
+ {
797
+ ref,
798
+ className: `sia-icon${animationClass} ${className}`.trim(),
799
+ "data-variant": resolvedVariant,
800
+ role: label ? "img" : void 0,
801
+ "aria-label": label,
802
+ "aria-hidden": label ? void 0 : true,
803
+ style: mergedStyle,
804
+ ...props,
805
+ children: /* @__PURE__ */ jsx2("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth, strokeLinecap: "round", strokeLinejoin: "round", focusable: "false", children: resolvedVariant === "filled" ? filledPath : iconPaths[name] })
806
+ }
807
+ );
808
+ });
809
+
810
+ // src/components/PopupPortal.tsx
811
+ import { forwardRef as forwardRef2, useLayoutEffect, useRef, useState } from "react";
812
+ import { createPortal } from "react-dom";
813
+ import { jsx as jsx3 } from "react/jsx-runtime";
814
+ function setForwardedRef(ref, value) {
815
+ if (typeof ref === "function") ref(value);
816
+ else if (ref) ref.current = value;
817
+ }
818
+ function clamp(value, min, max) {
819
+ return Math.min(Math.max(value, min), Math.max(min, max));
820
+ }
821
+ var PopupPortal = forwardRef2(function PopupPortal2({
822
+ anchorRef,
823
+ open = true,
824
+ placement = "bottom-start",
825
+ offset = 6,
826
+ viewportPadding = 8,
827
+ className = "",
828
+ style,
829
+ children,
830
+ ...props
831
+ }, forwardedRef) {
832
+ const popupRef = useRef(null);
833
+ const [position, setPosition] = useState();
834
+ useLayoutEffect(() => {
835
+ if (!open || typeof document === "undefined") {
836
+ setPosition(void 0);
837
+ return;
838
+ }
839
+ const update = () => {
840
+ const anchor = anchorRef.current;
841
+ const popup = popupRef.current;
842
+ if (!anchor || !popup) return;
843
+ const anchorRect = anchor.getBoundingClientRect();
844
+ const popupRect = popup.getBoundingClientRect();
845
+ const viewportWidth = document.documentElement.clientWidth;
846
+ const viewportHeight = document.documentElement.clientHeight;
847
+ let resolvedPlacement = placement;
848
+ const availableBelow = Math.max(0, viewportHeight - viewportPadding - anchorRect.bottom - offset);
849
+ const availableAbove = Math.max(0, anchorRect.top - offset - viewportPadding);
850
+ const availableRight = Math.max(0, viewportWidth - viewportPadding - anchorRect.right - offset);
851
+ const availableLeft = Math.max(0, anchorRect.left - offset - viewportPadding);
852
+ const horizontalSide = placement.startsWith("right") || placement.startsWith("left");
853
+ if (horizontalSide) {
854
+ const prefersRight = placement.startsWith("right");
855
+ const fitsRight = popupRect.width <= availableRight;
856
+ const fitsLeft = popupRect.width <= availableLeft;
857
+ if (prefersRight && !fitsRight && (fitsLeft || availableLeft > availableRight)) {
858
+ resolvedPlacement = placement.replace("right", "left");
859
+ } else if (!prefersRight && !fitsLeft && (fitsRight || availableRight > availableLeft)) {
860
+ resolvedPlacement = placement.replace("left", "right");
861
+ }
862
+ } else {
863
+ const prefersBottom = placement.startsWith("bottom");
864
+ const fitsBelow = popupRect.height <= availableBelow;
865
+ const fitsAbove = popupRect.height <= availableAbove;
866
+ if (prefersBottom && !fitsBelow && (fitsAbove || availableAbove > availableBelow)) {
867
+ resolvedPlacement = placement.replace("bottom", "top");
868
+ } else if (!prefersBottom && !fitsAbove && (fitsBelow || availableBelow > availableAbove)) {
869
+ resolvedPlacement = placement.replace("top", "bottom");
870
+ }
871
+ }
872
+ const resolvedHorizontalSide = resolvedPlacement.startsWith("right") || resolvedPlacement.startsWith("left");
873
+ const top = resolvedHorizontalSide ? resolvedPlacement.endsWith("end") ? anchorRect.bottom - popupRect.height : anchorRect.top : resolvedPlacement.startsWith("bottom") ? anchorRect.bottom + offset : anchorRect.top - popupRect.height - offset;
874
+ const availableHeight = resolvedHorizontalSide ? Math.max(0, viewportHeight - viewportPadding * 2) : resolvedPlacement.startsWith("bottom") ? availableBelow : availableAbove;
875
+ const alignedLeft = resolvedHorizontalSide ? resolvedPlacement.startsWith("right") ? anchorRect.right + offset : anchorRect.left - popupRect.width - offset : resolvedPlacement.endsWith("end") ? anchorRect.right - popupRect.width : anchorRect.left;
876
+ const next = {
877
+ top: clamp(top, viewportPadding, viewportHeight - popupRect.height - viewportPadding),
878
+ left: clamp(alignedLeft, viewportPadding, viewportWidth - popupRect.width - viewportPadding),
879
+ anchorWidth: anchorRect.width,
880
+ availableHeight,
881
+ placement: resolvedPlacement
882
+ };
883
+ setPosition((current) => current && current.top === next.top && current.left === next.left && current.anchorWidth === next.anchorWidth && current.availableHeight === next.availableHeight && current.placement === next.placement ? current : next);
884
+ };
885
+ update();
886
+ window.addEventListener("resize", update);
887
+ window.addEventListener("scroll", update, true);
888
+ const observer = new ResizeObserver(update);
889
+ if (anchorRef.current) observer.observe(anchorRef.current);
890
+ if (popupRef.current) observer.observe(popupRef.current);
891
+ return () => {
892
+ window.removeEventListener("resize", update);
893
+ window.removeEventListener("scroll", update, true);
894
+ observer.disconnect();
895
+ };
896
+ }, [anchorRef, offset, open, placement, viewportPadding]);
897
+ if (!open || typeof document === "undefined") return null;
898
+ return createPortal(
899
+ /* @__PURE__ */ jsx3(
900
+ "div",
901
+ {
902
+ ref: (node) => {
903
+ popupRef.current = node;
904
+ setForwardedRef(forwardedRef, node);
905
+ },
906
+ className: `sia-popup-portal ${className}`.trim(),
907
+ "data-sia-popup-layer": "",
908
+ "data-placement": position?.placement ?? placement,
909
+ style: {
910
+ ...style,
911
+ "--sia-popup-anchor-width": `${position?.anchorWidth ?? anchorRef.current?.getBoundingClientRect().width ?? 0}px`,
912
+ "--sia-popup-available-height": position ? `${position.availableHeight}px` : void 0,
913
+ top: position?.top ?? 0,
914
+ left: position?.left ?? 0,
915
+ visibility: position ? "visible" : "hidden"
916
+ },
917
+ ...props,
918
+ children
919
+ }
920
+ ),
921
+ document.body
922
+ );
923
+ });
924
+
925
+ // src/components/shared.ts
926
+ import { useCallback, useState as useState2 } from "react";
927
+ function useControllableState({ value, defaultValue, onChange }) {
928
+ const [internalValue, setInternalValue] = useState2(defaultValue);
929
+ const controlled = value !== void 0;
930
+ const currentValue = controlled ? value : internalValue;
931
+ const setValue = useCallback((nextValue) => {
932
+ if (Object.is(currentValue, nextValue)) return;
933
+ if (!controlled) setInternalValue(nextValue);
934
+ onChange?.(nextValue);
935
+ }, [controlled, currentValue, onChange]);
936
+ return [currentValue, setValue];
937
+ }
938
+
939
+ export {
940
+ ICON_NAMES,
941
+ FILLED_ICON_NAMES,
942
+ Icon,
943
+ PopupPortal,
944
+ useControllableState
945
+ };