@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,2074 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/select-date-range.ts
21
+ var select_date_range_exports = {};
22
+ __export(select_date_range_exports, {
23
+ SelectDateRange: () => SelectDateRange
24
+ });
25
+ module.exports = __toCommonJS(select_date_range_exports);
26
+
27
+ // src/components/DatePicker.tsx
28
+ var import_react5 = require("react");
29
+
30
+ // src/components/Icon.tsx
31
+ var import_react = require("react");
32
+
33
+ // src/components/IconCatalog.tsx
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var extendedIconPaths = {
36
+ "notepad-file": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: [
37
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
38
+ /* @__PURE__ */ (0, import_jsx_runtime.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" })
39
+ ] }),
40
+ "notepad-folder": /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: /* @__PURE__ */ (0, import_jsx_runtime.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" }) }),
41
+ "notepad-virtual-folder": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { transform: "scale(0.0234375)", fill: "currentColor", stroke: "none", children: [
42
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
43
+ /* @__PURE__ */ (0, import_jsx_runtime.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" })
44
+ ] }),
45
+ "step-backward": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
46
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6 5v14" }),
47
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m18 6-8 6 8 6V6Z" })
48
+ ] }),
49
+ "step-forward": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
50
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M18 5v14" }),
51
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m6 6 8 6-8 6V6Z" })
52
+ ] }),
53
+ "fast-backward": /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m11 6-7 6 7 6V6ZM20 6l-7 6 7 6V6Z" }) }),
54
+ "fast-forward": /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m13 6 7 6-7 6V6ZM4 6l7 6-7 6V6Z" }) }),
55
+ "corner-up-left": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
56
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m9 5-5 5 5 5" }),
57
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 10h9a7 7 0 0 1 7 7v2" })
58
+ ] }),
59
+ "corner-up-right": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
60
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m15 5 5 5-5 5" }),
61
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M20 10h-9a7 7 0 0 0-7 7v2" })
62
+ ] }),
63
+ "swap-horizontal": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
64
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 8h15m0 0-4-4m4 4-4 4" }),
65
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M20 16H5m0 0 4-4m-4 4 4 4" })
66
+ ] }),
67
+ "swap-vertical": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
68
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 4v15m0 0-4-4m4 4 4-4" }),
69
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M16 20V5m0 0-4 4m4-4 4 4" })
70
+ ] }),
71
+ expand: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9 4H4v5M4 4l6 6M15 20h5v-5m0 5-6-6" }) }),
72
+ shrink: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M10 10H5V5m0 5 6-6M14 14h5v5m0-5-6 6" }) }),
73
+ fullscreen: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9 4H4v5M15 4h5v5M9 20H4v-5M15 20h5v-5" }),
74
+ "fullscreen-exit": /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 9h5V4M20 9h-5V4M4 15h5v5M20 15h-5v5" }),
75
+ "menu-fold": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
76
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 6h16M4 12h10M4 18h16" }),
77
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m18 9-3 3 3 3" })
78
+ ] }),
79
+ "menu-unfold": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
80
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 6h16M10 12h10M4 18h16" }),
81
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m6 9 3 3-3 3" })
82
+ ] }),
83
+ login: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M10 5H5v14h5M13 8l4 4-4 4M8 12h9" }) }),
84
+ logout: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M14 5h5v14h-5M11 8l-4 4 4 4M16 12H7" }) }),
85
+ move: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
86
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 3v18M3 12h18" }),
87
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m9 6 3-3 3 3M9 18l3 3 3-3M6 9l-3 3 3 3M18 9l3 3-3 3" })
88
+ ] }),
89
+ "vertical-align-top": /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 4h16M12 7v13M8 11l4-4 4 4" }) }),
90
+ "vertical-align-middle": /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 12h16M12 4v16M8 8l4 4 4-4M8 16l4-4 4 4" }) }),
91
+ "vertical-align-bottom": /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 20h16M12 4v13M8 13l4 4 4-4" }) }),
92
+ "square-plus": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
93
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
94
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 8v8M8 12h8" })
95
+ ] }),
96
+ "square-minus": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
97
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
98
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 12h8" })
99
+ ] }),
100
+ "square-check": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
101
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
102
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m8 12 3 3 6-7" })
103
+ ] }),
104
+ "square-close": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
105
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "3" }),
106
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m8.5 8.5 7 7m0-7-7 7" })
107
+ ] }),
108
+ "tab-plus": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
109
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2.5" }),
110
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 9h18M7 6.5h.1M10 6.5h.1M15 12v6M12 15h6" })
111
+ ] }),
112
+ "folder-plus": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
113
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 6h7l2 2h9v11H3V6Z" }),
114
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M16 11v6M13 14h6" })
115
+ ] }),
116
+ pin: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 3h8l-1.5 5 3 3v2H13v8l-2-2v-6H6.5v-2l3-3L8 3Z" }) }),
117
+ "pin-off": /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9.5 8 8 3h8l-1.5 5 3 3v2H13v4M6.5 13v-2l1-1M3 3l18 18" }) }),
118
+ stop: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
119
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
120
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6 18 18 6" })
121
+ ] }),
122
+ "help-circle": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
123
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
124
+ /* @__PURE__ */ (0, import_jsx_runtime.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" })
125
+ ] }),
126
+ save: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
127
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 3h13l3 3v15H4V3Z" }),
128
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 3v6h8V3M8 21v-7h8v7" })
129
+ ] }),
130
+ clipboard: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
131
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "5", y: "4", width: "14", height: "17", rx: "2.5" }),
132
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9 4.5V3h6v1.5M9 9h6M9 13h6M9 17h4" })
133
+ ] }),
134
+ "clipboard-check": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
135
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "5", y: "4", width: "14", height: "17", rx: "2.5" }),
136
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9 4.5V3h6v1.5m-6 9 2 2 4-5" })
137
+ ] }),
138
+ "file-plus": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
139
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
140
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M14 3v5h4M12 11v6M9 14h6" })
141
+ ] }),
142
+ "file-check": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
143
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
144
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M14 3v5h4m-8 6 2 2 4-5" })
145
+ ] }),
146
+ "file-warning": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
147
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
148
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M14 3v5h4M12 11v4m0 3v.1" })
149
+ ] }),
150
+ "file-spreadsheet": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
151
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
152
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M14 3v5h4M8.5 11h7v7h-7v-7Zm0 3.5h7M12 11v7" })
153
+ ] }),
154
+ "align-left": /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 6h16M4 10h11M4 14h16M4 18h11" }),
155
+ "align-center": /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 6h16M7 10h10M4 14h16M7 18h10" }),
156
+ "align-right": /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 6h16M9 10h11M4 14h16M9 18h11" }),
157
+ "align-justify": /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 6h16M4 10h16M4 14h16M4 18h16" }),
158
+ bold: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M7 4h6a4 4 0 0 1 0 8H7V4Zm0 8h7a4 4 0 0 1 0 8H7v-8Z" }),
159
+ italic: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M10 4h8M6 20h8M14 4 10 20" }),
160
+ underline: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M7 4v7a5 5 0 0 0 10 0V4M5 21h14" }) }),
161
+ strikethrough: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.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" }) }),
162
+ "list-ordered": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
163
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9 6h12M9 12h12M9 18h12" }),
164
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 5h1v3M4 11h2l-2 3h2M4 17h2l-2 3h2" })
165
+ ] }),
166
+ "list-unordered": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
167
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9 6h12M9 12h12M9 18h12" }),
168
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "4.5", cy: "6", r: ".5" }),
169
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "4.5", cy: "12", r: ".5" }),
170
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "4.5", cy: "18", r: ".5" })
171
+ ] }),
172
+ eraser: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
173
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m4 15 8-10 8 7-7 8H7l-3-3v-2Z" }),
174
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m9 9 8 7M13 20h8" })
175
+ ] }),
176
+ highlighter: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
177
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m7 14 7-10 5 4-8 9-4-3Z" }),
178
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m5 17 6 3H3l2-3ZM15 14l4 3" })
179
+ ] }),
180
+ table: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
181
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
182
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 9h18M3 14h18M9 4v16M15 4v16" })
183
+ ] }),
184
+ columns: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
185
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
186
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 4v16" })
187
+ ] }),
188
+ rows: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
189
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
190
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 9h18M3 15h18" })
191
+ ] }),
192
+ "bar-chart": /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 21V10h4v11M10 21V4h4v17M16 21v-8h4v8M3 21h18" }) }),
193
+ "line-chart": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
194
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 20h18M4 17l5-6 4 3 7-9" }),
195
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "9", cy: "11", r: "1" }),
196
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "13", cy: "14", r: "1" })
197
+ ] }),
198
+ "pie-chart": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
199
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M11 3a9 9 0 1 0 9 9h-9V3Z" }),
200
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M14 3.5A8.5 8.5 0 0 1 20.5 10H14V3.5Z" })
201
+ ] }),
202
+ "area-chart": /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 20h18M4 17l5-6 4 3 7-9v12H4Z" }) }),
203
+ activity: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 12h4l2-6 4 13 3-7h5" }),
204
+ "trending-up": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
205
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m4 17 6-6 4 4 6-7" }),
206
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M15 8h5v5" })
207
+ ] }),
208
+ "trending-down": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
209
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m4 7 6 6 4-4 6 7" }),
210
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M15 16h5v-5" })
211
+ ] }),
212
+ database: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
213
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ellipse", { cx: "12", cy: "5", rx: "8", ry: "3" }),
214
+ /* @__PURE__ */ (0, import_jsx_runtime.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" })
215
+ ] }),
216
+ cloud: /* @__PURE__ */ (0, import_jsx_runtime.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" }),
217
+ "cloud-download": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
218
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
219
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 11v10m-4-4 4 4 4-4" })
220
+ ] }),
221
+ "cloud-upload": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
222
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
223
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 21V11m-4 4 4-4 4 4" })
224
+ ] }),
225
+ server: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
226
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "4", width: "18", height: "7", rx: "2" }),
227
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "13", width: "18", height: "7", rx: "2" }),
228
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M7 7.5h.1M7 16.5h.1M11 7.5h6M11 16.5h6" })
229
+ ] }),
230
+ desktop: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
231
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "3", width: "18", height: "14", rx: "2" }),
232
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 21h8M12 17v4" })
233
+ ] }),
234
+ laptop: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
235
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M5 5h14v11H5V5Z" }),
236
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m3 19 2-3h14l2 3H3Z" })
237
+ ] }),
238
+ mobile: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
239
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "7", y: "2", width: "10", height: "20", rx: "2.5" }),
240
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M10 5h4M12 19v.1" })
241
+ ] }),
242
+ tablet: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
243
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2.5" }),
244
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M10 5h4M12 19v.1" })
245
+ ] }),
246
+ printer: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
247
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M7 9V3h10v6M6 18H4V9h16v9h-2" }),
248
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M7 14h10v7H7v-7ZM17 11h.1" })
249
+ ] }),
250
+ camera: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
251
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 7h4l2-3h6l2 3h4v13H3V7Z" }),
252
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "13", r: "4" })
253
+ ] }),
254
+ video: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
255
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "5", width: "13", height: "14", rx: "2" }),
256
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m16 10 5-3v10l-5-3v-4Z" })
257
+ ] }),
258
+ microphone: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
259
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "9", y: "3", width: "6", height: "12", rx: "3" }),
260
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M5 11a7 7 0 0 0 14 0M12 18v3M8 21h8" })
261
+ ] }),
262
+ "volume-up": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
263
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 10h4l5-4v12l-5-4H4v-4Z" }),
264
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11" })
265
+ ] }),
266
+ "volume-off": /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 10h4l5-4v12l-5-4H4v-4ZM17 9l5 6m0-6-5 6" }) }),
267
+ "speaker-wave": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
268
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 10h3.5l4.7-3.6v11.2L7.5 14H4v-4Z", fill: "currentColor", stroke: "none" }),
269
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M15.2 9.2a4 4 0 0 1 0 5.6" })
270
+ ] }),
271
+ "speaker-muted": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
272
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 10h3.5l4.7-3.6v11.2L7.5 14H4v-4Z", fill: "currentColor", stroke: "none" }),
273
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m15.5 9.5 5 5m0-5-5 5" })
274
+ ] }),
275
+ wifi: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.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" }) }),
276
+ power: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
277
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 3v9" }),
278
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M7 5.5a8 8 0 1 0 10 0" })
279
+ ] }),
280
+ key: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
281
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "8", cy: "15", r: "4" }),
282
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m11 12 8-8m-3 3 3 3m-6 0 3 3" })
283
+ ] }),
284
+ shield: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 3 4 6v6c0 5 3 8 8 10 5-2 8-5 8-10V6l-8-3Z" }),
285
+ "shield-check": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
286
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 3 4 6v6c0 5 3 8 8 10 5-2 8-5 8-10V6l-8-3Z" }),
287
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m8 12 2.5 2.5L16 9" })
288
+ ] }),
289
+ bug: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.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" }) }),
290
+ bulb: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
291
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
292
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9.5 21h5" })
293
+ ] }),
294
+ rocket: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
295
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
296
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M14 14c0 3-2 6-5 7 0-2 0-4-1-5M5 19l-2 2" })
297
+ ] }),
298
+ target: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
299
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
300
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "5" }),
301
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "1" })
302
+ ] }),
303
+ trophy: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
304
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 4h8v5a4 4 0 0 1-8 0V4ZM9 20h6M12 13v7" }),
305
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 6H4v2a4 4 0 0 0 5 4M16 6h4v2a4 4 0 0 1-5 4" })
306
+ ] }),
307
+ "shopping-cart": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
308
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 4h2l2 11h10l3-8H6" }),
309
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "9", cy: "20", r: "1" }),
310
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "17", cy: "20", r: "1" })
311
+ ] }),
312
+ "shopping-bag": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
313
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M5 8h14l1 13H4L5 8Z" }),
314
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9 9V6a3 3 0 0 1 6 0v3" })
315
+ ] }),
316
+ shop: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
317
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 10v11h16V10M3 4h18l-2 6H5L3 4Z" }),
318
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9 21v-6h6v6" })
319
+ ] }),
320
+ wallet: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
321
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "5", width: "18", height: "15", rx: "2.5" }),
322
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 9h18M15 13h6v4h-6a2 2 0 0 1 0-4Z" })
323
+ ] }),
324
+ bank: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m3 9 9-6 9 6M5 10h14M6 10v8M10 10v8M14 10v8M18 10v8M3 21h18M4 18h16" }) }),
325
+ calculator: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
326
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2.5" }),
327
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 5h8v4H8V5ZM8 13h.1M12 13h.1M16 13h.1M8 17h.1M12 17h.1M16 17h.1" })
328
+ ] }),
329
+ tag: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
330
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 12V4h8l10 10-7 7L3 12Z" }),
331
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "7.5", cy: "8.5", r: "1" })
332
+ ] }),
333
+ tags: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
334
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6 12V4h7l8 8-6 6-9-6Z" }),
335
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "10", cy: "8", r: "1" }),
336
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m3 8 1 9 7 4 2-2" })
337
+ ] }),
338
+ message: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 4h16v13H9l-5 4V4Z" }),
339
+ comments: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
340
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 4h13v10H8l-5 4V4Z" }),
341
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M10 17h6l5 4V8h-2" })
342
+ ] }),
343
+ send: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m3 11 18-8-8 18-2-8-8-2Zm8 2 10-10" }),
344
+ share: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
345
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "18", cy: "5", r: "3" }),
346
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6", cy: "12", r: "3" }),
347
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "18", cy: "19", r: "3" }),
348
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m8.5 10.5 7-4M8.5 13.5l7 4" })
349
+ ] }),
350
+ paperclip: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m8 12 7-7a4 4 0 0 1 6 6l-9 9a6 6 0 0 1-9-9l8-8" }),
351
+ location: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
352
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 22s7-6.2 7-13a7 7 0 1 0-14 0c0 6.8 7 13 7 13Z" }),
353
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "9", r: "2.5" })
354
+ ] }),
355
+ compass: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
356
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
357
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m15.5 8.5-2 5-5 2 2-5 5-2Z" })
358
+ ] }),
359
+ car: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
360
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 15V9l2-5h12l2 5v6M3 10h18M6 15h12" }),
361
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "7", cy: "18", r: "2" }),
362
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "17", cy: "18", r: "2" })
363
+ ] }),
364
+ truck: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
365
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 5h11v12H3V5ZM14 9h4l3 4v4h-7V9Z" }),
366
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "7", cy: "19", r: "2" }),
367
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "18", cy: "19", r: "2" })
368
+ ] }),
369
+ gift: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
370
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "9", width: "18", height: "12", rx: "2" }),
371
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 9v12M3 13h18M12 9H8a3 3 0 1 1 4-3v3Zm0 0h4a3 3 0 1 0-4-3v3Z" })
372
+ ] }),
373
+ coffee: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
374
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
375
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 4v1M12 3v2" })
376
+ ] }),
377
+ experiment: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
378
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9 3h6M10 3v6l-6 10a2 2 0 0 0 2 3h12a2 2 0 0 0 2-3L14 9V3" }),
379
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M7 16h10" })
380
+ ] }),
381
+ tool: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.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" }) }),
382
+ appstore: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
383
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "3", width: "7", height: "7", rx: "2" }),
384
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "14", y: "3", width: "7", height: "7", rx: "2" }),
385
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "14", width: "7", height: "7", rx: "2" }),
386
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "14", y: "14", width: "7", height: "7", rx: "2" })
387
+ ] }),
388
+ puzzle: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.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" }) }),
389
+ partition: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
390
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 5v5M6 14v-2h12v2M6 18v3M12 18v3M18 18v3" }),
391
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "3", r: "2" }),
392
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6", cy: "16", r: "2" }),
393
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "16", r: "2" }),
394
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "18", cy: "16", r: "2" })
395
+ ] }),
396
+ branches: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
397
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6", cy: "5", r: "2" }),
398
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "18", cy: "7", r: "2" }),
399
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "6", cy: "19", r: "2" }),
400
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6 7v10M8 10c6 0 4-3 8-3M8 14c6 0 4 3 8 3" })
401
+ ] }),
402
+ scan: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 3H3v5M16 3h5v5M8 21H3v-5M16 21h5v-5M7 12h10" }),
403
+ "qr-code": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
404
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "3", width: "7", height: "7", rx: "1" }),
405
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "14", y: "3", width: "7", height: "7", rx: "1" }),
406
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x: "3", y: "14", width: "7", height: "7", rx: "1" }),
407
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M14 14h3v3h-3v-3ZM18 18h3v3h-3v-3ZM14 20h1M20 14h1" })
408
+ ] }),
409
+ barcode: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 5v14M7 5v14M11 5v14M14 5v14M16 5v14M20 5v14" }),
410
+ "user-plus": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
411
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "10", cy: "8", r: "4" }),
412
+ /* @__PURE__ */ (0, import_jsx_runtime.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" })
413
+ ] }),
414
+ "user-minus": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
415
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "10", cy: "8", r: "4" }),
416
+ /* @__PURE__ */ (0, import_jsx_runtime.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" })
417
+ ] }),
418
+ smile: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
419
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
420
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 10h.1M16 10h.1M8 15c1 1.4 2.3 2 4 2s3-.6 4-2" })
421
+ ] }),
422
+ meh: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
423
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
424
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 10h.1M16 10h.1M8 16h8" })
425
+ ] }),
426
+ frown: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
427
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
428
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 10h.1M16 10h.1M8 17c1-1.4 2.3-2 4-2s3 .6 4 2" })
429
+ ] }),
430
+ "game-cultivator": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
431
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M7.2 7.5h9.6M9 5.2 12 2l3 3.2" }),
432
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "8.8", r: "3.6" }),
433
+ /* @__PURE__ */ (0, import_jsx_runtime.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" })
434
+ ] }),
435
+ "game-swordsman": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
436
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9.2 5.2h5.6M12 2.5v2.7" }),
437
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "8.8", r: "3.4" }),
438
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
439
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m17.7 5.1 2.2-1-.9 2.3-5.2 5.2M16.2 7.8l1.8 1.8" })
440
+ ] }),
441
+ "game-spirit-wolf": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
442
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
443
+ /* @__PURE__ */ (0, import_jsx_runtime.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" })
444
+ ] }),
445
+ "game-gem": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
446
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m4 8 3-4h10l3 4-8 13L4 8Z" }),
447
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4 8h16M8 4l-2 4 6 13 6-13-2-4M6 8h12" })
448
+ ] }),
449
+ "game-ingot": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
450
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
451
+ /* @__PURE__ */ (0, import_jsx_runtime.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" })
452
+ ] }),
453
+ "game-sword": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
454
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m14.5 4.5 5-1-1 5L9 18l-3 1 1-3 9.5-9.5M5 19l-1 1" }),
455
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m12.5 7.5 4 4M7.5 14.5l2 2" })
456
+ ] }),
457
+ "game-robe": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
458
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
459
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M9 4.5 12 9l3-4.5M12 9v12" })
460
+ ] }),
461
+ "game-pants": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
462
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M7 3h10l1 18h-5l-1-10-1 10H6L7 3Z" }),
463
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M7 7h10M12 3v8" })
464
+ ] }),
465
+ "game-pendant": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
466
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M5 4c1.7 4.4 4 6.6 7 6.6S17.3 8.4 19 4" }),
467
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
468
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "16.5", r: "1.5" })
469
+ ] }),
470
+ "game-necklace": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
471
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M5 4c.7 6.3 3 9.5 7 9.5S18.3 10.3 19 4" }),
472
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m12 13.5 3 2.4-1.2 4.1h-3.6L9 15.9l3-2.4Z" }),
473
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M7 7h.1m10 0h.1M9 10h.1m6 0h.1" })
474
+ ] }),
475
+ "game-pill": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
476
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
477
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m8 8 8 8" }),
478
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6.3 12.2c1.3.2 2.5.7 3.5 1.7s1.6 2.2 1.8 3.5" })
479
+ ] }),
480
+ "game-potion": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
481
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
482
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M7 15h10M9.5 12h5" })
483
+ ] }),
484
+ "game-elixir-jar": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
485
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
486
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8.5 7h7M5 14h14M9 17h6" })
487
+ ] }),
488
+ "game-flame": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
489
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
490
+ /* @__PURE__ */ (0, import_jsx_runtime.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" })
491
+ ] }),
492
+ "game-soul-elixir": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
493
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "4.2" }),
494
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
495
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m10 12 1.4 1.4L14.5 10" })
496
+ ] }),
497
+ "game-herb": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
498
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 21V9" }),
499
+ /* @__PURE__ */ (0, import_jsx_runtime.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" })
500
+ ] }),
501
+ "game-meditate": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
502
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "5.5", r: "2.5" }),
503
+ /* @__PURE__ */ (0, import_jsx_runtime.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" }),
504
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m9.5 14.5 2.5 3.4 2.5-3.4" })
505
+ ] }),
506
+ "game-backpack": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
507
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8 8V5.5a4 4 0 0 1 8 0V8M6 8h12l2 13H4L6 8Z" }),
508
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8.5 13h7v5h-7v-5ZM9 5.5h6" })
509
+ ] }),
510
+ "game-qi": /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
511
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
512
+ /* @__PURE__ */ (0, import_jsx_runtime.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" })
513
+ ] })
514
+ };
515
+
516
+ // src/components/Icon.tsx
517
+ var import_jsx_runtime2 = require("react/jsx-runtime");
518
+ var coreIconPaths = {
519
+ search: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
520
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
521
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m15.8 15.8 5.2 5.2" })
522
+ ] }),
523
+ plus: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 4v16M4 12h16" }),
524
+ minus: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 12h16" }),
525
+ close: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m5 5 14 14M19 5 5 19" }),
526
+ check: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m4 12.5 5.2 5L20 6.5" }),
527
+ info: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
528
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
529
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 11v6M12 7.2v.1" })
530
+ ] }),
531
+ question: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
532
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
533
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" })
534
+ ] }),
535
+ warning: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
536
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
537
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 9v4M12 17v.1" })
538
+ ] }),
539
+ "circle-check": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
540
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
541
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m8 12 2.7 2.7L16.5 9" })
542
+ ] }),
543
+ "circle-close": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
544
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
545
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m9 9 6 6M15 9l-6 6" })
546
+ ] }),
547
+ "circle-plus": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
548
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
549
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 8v8M8 12h8" })
550
+ ] }),
551
+ "circle-minus": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
552
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
553
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 12h8" })
554
+ ] }),
555
+ "chevron-left": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m15.5 5-7 7 7 7" }),
556
+ "chevron-right": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m8.5 5 7 7-7 7" }),
557
+ "chevron-up": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m5 15.5 7-7 7 7" }),
558
+ "chevron-down": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m5 8.5 7 7 7-7" }),
559
+ "double-left": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
560
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m12 5-7 7 7 7" }),
561
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m19 5-7 7 7 7" })
562
+ ] }),
563
+ "double-right": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
564
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m5 5 7 7-7 7" }),
565
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m12 5 7 7-7 7" })
566
+ ] }),
567
+ "arrow-left": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
568
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m10 5-7 7 7 7" }),
569
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 12h18" })
570
+ ] }),
571
+ "arrow-right": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
572
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m14 5 7 7-7 7" }),
573
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 12h18" })
574
+ ] }),
575
+ "arrow-up": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
576
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m5 10 7-7 7 7" }),
577
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 3v18" })
578
+ ] }),
579
+ "arrow-down": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
580
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m5 14 7 7 7-7" }),
581
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 3v18" })
582
+ ] }),
583
+ menu: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 6h16M4 12h16M4 18h16" }),
584
+ "more-horizontal": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M5 12h.1M12 12h.1M19 12h.1" }),
585
+ "more-vertical": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 5v.1M12 12v.1M12 19v.1" }),
586
+ home: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
587
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m3.5 11 8.5-7 8.5 7" }),
588
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M5.5 9.5V20h13V9.5M9.5 20v-6h5v6" })
589
+ ] }),
590
+ user: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
591
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "8", r: "4" }),
592
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4.5 21c.7-4.2 3.2-6.5 7.5-6.5s6.8 2.3 7.5 6.5" })
593
+ ] }),
594
+ users: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
595
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "9", cy: "8", r: "3.5" }),
596
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M2.8 20c.6-3.8 2.7-5.8 6.2-5.8s5.6 2 6.2 5.8" }),
597
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" })
598
+ ] }),
599
+ settings: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
600
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "3" }),
601
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" })
602
+ ] }),
603
+ edit: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
604
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 20h4l11-11a2.8 2.8 0 0 0-4-4L4 16v4Z" }),
605
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m13.5 6.5 4 4M4 20h16" })
606
+ ] }),
607
+ copy: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
608
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "8", y: "8", width: "12", height: "12", rx: "2.5" }),
609
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2" })
610
+ ] }),
611
+ trash: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 7h16M9 3h6l1 4H8l1-4ZM6 7l1 14h10l1-14M10 11v6M14 11v6" }) }),
612
+ scissors: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
613
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "6", cy: "7", r: "3" }),
614
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "6", cy: "17", r: "3" }),
615
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m8.7 8.3 11.3 6.2M8.7 15.7 20 9.5" })
616
+ ] }),
617
+ undo: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
618
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m8 7-5 5 5 5" }),
619
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 12h10a7 7 0 0 1 7 7" })
620
+ ] }),
621
+ redo: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
622
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m16 7 5 5-5 5" }),
623
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M21 12H11a7 7 0 0 0-7 7" })
624
+ ] }),
625
+ "zoom-in": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
626
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
627
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m15.8 15.8 5.2 5.2M10.8 7.8v6M7.8 10.8h6" })
628
+ ] }),
629
+ "zoom-out": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
630
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "10.8", cy: "10.8", r: "6.8" }),
631
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m15.8 15.8 5.2 5.2M7.8 10.8h6" })
632
+ ] }),
633
+ download: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 3v12M7 10l5 5 5-5M4 20h16" }) }),
634
+ upload: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 16V4M7 9l5-5 5 5M4 20h16" }) }),
635
+ refresh: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
636
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M20 7v5h-5" }),
637
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M19 12a7.5 7.5 0 1 1-2-5" })
638
+ ] }),
639
+ loader: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
640
+ calendar: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
641
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "5", width: "18", height: "16", rx: "2.5" }),
642
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 3v4M16 3v4M3 10h18M7 14h2M11 14h2M15 14h2M7 18h2M11 18h2" })
643
+ ] }),
644
+ clock: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
645
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
646
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 7v5l3.5 2" })
647
+ ] }),
648
+ mail: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
649
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2.5" }),
650
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m4 7 8 6 8-6" })
651
+ ] }),
652
+ phone: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
653
+ link: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
654
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m9.5 14.5 5-5" }),
655
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" })
656
+ ] }),
657
+ "external-link": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
658
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M14 4h6v6M20 4 11 13" }),
659
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M19 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h6" })
660
+ ] }),
661
+ eye: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
662
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
663
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "3" })
664
+ ] }),
665
+ "eye-off": /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }) }),
666
+ lock: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
667
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "4", y: "10", width: "16", height: "11", rx: "2.5" }),
668
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 10V7a4 4 0 0 1 8 0v3M12 14v3" })
669
+ ] }),
670
+ unlock: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
671
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "4", y: "10", width: "16", height: "11", rx: "2.5" }),
672
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 10V7a4 4 0 0 1 7.5-2M12 14v3" })
673
+ ] }),
674
+ bell: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
675
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M18 9a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9Z" }),
676
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M10 21h4" })
677
+ ] }),
678
+ star: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
679
+ heart: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
680
+ file: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
681
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M6 3h8l4 4v14H6V3Z" }),
682
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M14 3v5h4" })
683
+ ] }),
684
+ folder: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 6h7l2 2h9v11H3V6Z" }),
685
+ image: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
686
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2.5" }),
687
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "9", cy: "9", r: "2" }),
688
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m4 17 4.5-4.5 3.5 3 2.5-2.5 5.5 5" })
689
+ ] }),
690
+ filter: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 5h18l-7 8v6l-4 2v-8L3 5Z" }),
691
+ "sort-ascending": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
692
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 19V5M3.5 8.5 7 5l3.5 3.5" }),
693
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M13 7h8M13 12h6M13 17h4" })
694
+ ] }),
695
+ "sort-descending": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
696
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7 5v14M3.5 15.5 7 19l3.5-3.5" }),
697
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M13 7h4M13 12h6M13 17h8" })
698
+ ] }),
699
+ play: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
700
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
701
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m10 8 6 4-6 4V8Z" })
702
+ ] }),
703
+ pause: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
704
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
705
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M9.5 9v6M14.5 9v6" })
706
+ ] }),
707
+ book: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
708
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M4 5.5A2.5 2.5 0 0 1 6.5 3H11v17H6.5A2.5 2.5 0 0 0 4 22V5.5Z" }),
709
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M20 5.5A2.5 2.5 0 0 0 17.5 3H13v17h4.5A2.5 2.5 0 0 1 20 22V5.5Z" })
710
+ ] }),
711
+ component: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
712
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "4", y: "4", width: "6", height: "6", rx: "1.5" }),
713
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "14", y: "4", width: "6", height: "6", rx: "1.5" }),
714
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "4", y: "14", width: "6", height: "6", rx: "1.5" }),
715
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "14", y: "14", width: "6", height: "6", rx: "1.5" })
716
+ ] }),
717
+ token: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
718
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "4" }),
719
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" })
720
+ ] }),
721
+ sun: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
722
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "3.6" }),
723
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" })
724
+ ] }),
725
+ moon: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M20 15.2A8 8 0 0 1 8.8 4 8.5 8.5 0 1 0 20 15.2Z" }),
726
+ code: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m9 18-6-6 6-6M15 6l6 6-6 6" }),
727
+ github: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" })
728
+ };
729
+ var iconPaths = { ...coreIconPaths, ...extendedIconPaths };
730
+ var ICON_NAMES = Object.freeze(Object.keys(iconPaths));
731
+ var filledIconPaths = {
732
+ info: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
733
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
734
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 10.5v6M12 7.2v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
735
+ ] }),
736
+ question: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
737
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
738
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" })
739
+ ] }),
740
+ warning: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
741
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
742
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 9v5M12 18v.1", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
743
+ ] }),
744
+ "circle-check": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
745
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
746
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m7.5 12 3 3 6-6", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
747
+ ] }),
748
+ "circle-close": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
749
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
750
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" })
751
+ ] }),
752
+ "circle-plus": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
753
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
754
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 7.5v9M7.5 12h9", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
755
+ ] }),
756
+ "circle-minus": /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
757
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
758
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M7.5 12h9", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
759
+ ] }),
760
+ home: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
761
+ user: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
762
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "7.5", r: "4.5", fill: "currentColor", stroke: "none" }),
763
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" })
764
+ ] }),
765
+ users: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
766
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "8.5", cy: "8", r: "3.8", fill: "currentColor", stroke: "none" }),
767
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "17", cy: "8.5", r: "3", fill: "currentColor", stroke: "none", opacity: ".7" }),
768
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" })
769
+ ] }),
770
+ trash: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8 3h8l1 3h4v2H3V6h4l1-3Zm-2.5 7h13l-1 11h-11l-1-11Z", fill: "currentColor", stroke: "none" }),
771
+ bell: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
772
+ star: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
773
+ heart: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
774
+ mail: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
775
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "2.5", y: "4.5", width: "19", height: "15", rx: "2.5", fill: "currentColor", stroke: "none" }),
776
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m4.5 7 7.5 5.8L19.5 7", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.8" })
777
+ ] }),
778
+ lock: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
779
+ unlock: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
780
+ calendar: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
781
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "2.5", y: "4.5", width: "19", height: "17", rx: "2.5", fill: "currentColor", stroke: "none" }),
782
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M3 9.5h18M8 2.5v4M16 2.5v4", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "1.8" })
783
+ ] }),
784
+ clock: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
785
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
786
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 6.5V12l4 2.3", stroke: "var(--sia-icon-contrast, #fff)", strokeWidth: "2" })
787
+ ] }),
788
+ file: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M5 2.5h10l4 4V22H5V2.5Zm9 1.8V8h3.7L14 4.3Z", fill: "currentColor", stroke: "none" }),
789
+ folder: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M2.5 5h7l2.2 2.5h9.8V20H2.5V5Z", fill: "currentColor", stroke: "none" }),
790
+ image: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
791
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "2.5", y: "3.5", width: "19", height: "17", rx: "2.5", fill: "currentColor", stroke: "none" }),
792
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
793
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "8", cy: "8.5", r: "1.7", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
794
+ ] }),
795
+ filter: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M2 4h20l-7.8 9v6.2L9.8 22v-9L2 4Z", fill: "currentColor", stroke: "none" }),
796
+ play: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
797
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
798
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m10 7.8 6.5 4.2-6.5 4.2V7.8Z", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
799
+ ] }),
800
+ pause: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
801
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
802
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M8.5 7.5h2.5v9H8.5v-9Zm4.5 0h2.5v9H13v-9Z", fill: "var(--sia-icon-contrast, #fff)", stroke: "none" })
803
+ ] }),
804
+ book: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" }),
805
+ component: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
806
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "3", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
807
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "13", y: "3", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
808
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "3", y: "13", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" }),
809
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("rect", { x: "13", y: "13", width: "8", height: "8", rx: "2", fill: "currentColor", stroke: "none" })
810
+ ] }),
811
+ token: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
812
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx: "12", cy: "12", r: "5", fill: "currentColor", stroke: "none" }),
813
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("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" })
814
+ ] })
815
+ };
816
+ var FILLED_ICON_NAMES = Object.freeze(Object.keys(filledIconPaths));
817
+ var Icon = (0, import_react.forwardRef)(function Icon2({ name, size = "1em", strokeWidth = 1.8, rotate = 0, spin = false, pulse = false, label, variant = "outline", className = "", style, ...props }, ref) {
818
+ const resolvedSize = typeof size === "number" ? `${size}px` : size;
819
+ const mergedStyle = { "--sia-icon-size": resolvedSize, "--sia-icon-rotate": `${rotate}deg`, ...style };
820
+ const animationClass = spin ? " sia-icon--spin" : pulse ? " sia-icon--pulse" : "";
821
+ const filledPath = filledIconPaths[name];
822
+ const resolvedVariant = variant === "filled" && filledPath ? "filled" : "outline";
823
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
824
+ "span",
825
+ {
826
+ ref,
827
+ className: `sia-icon${animationClass} ${className}`.trim(),
828
+ "data-variant": resolvedVariant,
829
+ role: label ? "img" : void 0,
830
+ "aria-label": label,
831
+ "aria-hidden": label ? void 0 : true,
832
+ style: mergedStyle,
833
+ ...props,
834
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth, strokeLinecap: "round", strokeLinejoin: "round", focusable: "false", children: resolvedVariant === "filled" ? filledPath : iconPaths[name] })
835
+ }
836
+ );
837
+ });
838
+
839
+ // src/components/PopupPortal.tsx
840
+ var import_react2 = require("react");
841
+ var import_react_dom = require("react-dom");
842
+ var import_jsx_runtime3 = require("react/jsx-runtime");
843
+ function setForwardedRef(ref, value) {
844
+ if (typeof ref === "function") ref(value);
845
+ else if (ref) ref.current = value;
846
+ }
847
+ function clamp(value, min, max) {
848
+ return Math.min(Math.max(value, min), Math.max(min, max));
849
+ }
850
+ var PopupPortal = (0, import_react2.forwardRef)(function PopupPortal2({
851
+ anchorRef,
852
+ open = true,
853
+ placement = "bottom-start",
854
+ offset = 6,
855
+ viewportPadding = 8,
856
+ className = "",
857
+ style,
858
+ children,
859
+ ...props
860
+ }, forwardedRef) {
861
+ const popupRef = (0, import_react2.useRef)(null);
862
+ const [position, setPosition] = (0, import_react2.useState)();
863
+ (0, import_react2.useLayoutEffect)(() => {
864
+ if (!open || typeof document === "undefined") {
865
+ setPosition(void 0);
866
+ return;
867
+ }
868
+ const update = () => {
869
+ const anchor = anchorRef.current;
870
+ const popup = popupRef.current;
871
+ if (!anchor || !popup) return;
872
+ const anchorRect = anchor.getBoundingClientRect();
873
+ const popupRect = popup.getBoundingClientRect();
874
+ const viewportWidth = document.documentElement.clientWidth;
875
+ const viewportHeight = document.documentElement.clientHeight;
876
+ let resolvedPlacement = placement;
877
+ const availableBelow = Math.max(0, viewportHeight - viewportPadding - anchorRect.bottom - offset);
878
+ const availableAbove = Math.max(0, anchorRect.top - offset - viewportPadding);
879
+ const availableRight = Math.max(0, viewportWidth - viewportPadding - anchorRect.right - offset);
880
+ const availableLeft = Math.max(0, anchorRect.left - offset - viewportPadding);
881
+ const horizontalSide = placement.startsWith("right") || placement.startsWith("left");
882
+ if (horizontalSide) {
883
+ const prefersRight = placement.startsWith("right");
884
+ const fitsRight = popupRect.width <= availableRight;
885
+ const fitsLeft = popupRect.width <= availableLeft;
886
+ if (prefersRight && !fitsRight && (fitsLeft || availableLeft > availableRight)) {
887
+ resolvedPlacement = placement.replace("right", "left");
888
+ } else if (!prefersRight && !fitsLeft && (fitsRight || availableRight > availableLeft)) {
889
+ resolvedPlacement = placement.replace("left", "right");
890
+ }
891
+ } else {
892
+ const prefersBottom = placement.startsWith("bottom");
893
+ const fitsBelow = popupRect.height <= availableBelow;
894
+ const fitsAbove = popupRect.height <= availableAbove;
895
+ if (prefersBottom && !fitsBelow && (fitsAbove || availableAbove > availableBelow)) {
896
+ resolvedPlacement = placement.replace("bottom", "top");
897
+ } else if (!prefersBottom && !fitsAbove && (fitsBelow || availableBelow > availableAbove)) {
898
+ resolvedPlacement = placement.replace("top", "bottom");
899
+ }
900
+ }
901
+ const resolvedHorizontalSide = resolvedPlacement.startsWith("right") || resolvedPlacement.startsWith("left");
902
+ const top = resolvedHorizontalSide ? resolvedPlacement.endsWith("end") ? anchorRect.bottom - popupRect.height : anchorRect.top : resolvedPlacement.startsWith("bottom") ? anchorRect.bottom + offset : anchorRect.top - popupRect.height - offset;
903
+ const availableHeight = resolvedHorizontalSide ? Math.max(0, viewportHeight - viewportPadding * 2) : resolvedPlacement.startsWith("bottom") ? availableBelow : availableAbove;
904
+ const alignedLeft = resolvedHorizontalSide ? resolvedPlacement.startsWith("right") ? anchorRect.right + offset : anchorRect.left - popupRect.width - offset : resolvedPlacement.endsWith("end") ? anchorRect.right - popupRect.width : anchorRect.left;
905
+ const next = {
906
+ top: clamp(top, viewportPadding, viewportHeight - popupRect.height - viewportPadding),
907
+ left: clamp(alignedLeft, viewportPadding, viewportWidth - popupRect.width - viewportPadding),
908
+ anchorWidth: anchorRect.width,
909
+ availableHeight,
910
+ placement: resolvedPlacement
911
+ };
912
+ 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);
913
+ };
914
+ update();
915
+ window.addEventListener("resize", update);
916
+ window.addEventListener("scroll", update, true);
917
+ const observer = new ResizeObserver(update);
918
+ if (anchorRef.current) observer.observe(anchorRef.current);
919
+ if (popupRef.current) observer.observe(popupRef.current);
920
+ return () => {
921
+ window.removeEventListener("resize", update);
922
+ window.removeEventListener("scroll", update, true);
923
+ observer.disconnect();
924
+ };
925
+ }, [anchorRef, offset, open, placement, viewportPadding]);
926
+ if (!open || typeof document === "undefined") return null;
927
+ return (0, import_react_dom.createPortal)(
928
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
929
+ "div",
930
+ {
931
+ ref: (node) => {
932
+ popupRef.current = node;
933
+ setForwardedRef(forwardedRef, node);
934
+ },
935
+ className: `sia-popup-portal ${className}`.trim(),
936
+ "data-sia-popup-layer": "",
937
+ "data-placement": position?.placement ?? placement,
938
+ style: {
939
+ ...style,
940
+ "--sia-popup-anchor-width": `${position?.anchorWidth ?? anchorRef.current?.getBoundingClientRect().width ?? 0}px`,
941
+ "--sia-popup-available-height": position ? `${position.availableHeight}px` : void 0,
942
+ top: position?.top ?? 0,
943
+ left: position?.left ?? 0,
944
+ visibility: position ? "visible" : "hidden"
945
+ },
946
+ ...props,
947
+ children
948
+ }
949
+ ),
950
+ document.body
951
+ );
952
+ });
953
+
954
+ // src/components/shared.ts
955
+ var import_react3 = require("react");
956
+ function useControllableState({ value, defaultValue, onChange }) {
957
+ const [internalValue, setInternalValue] = (0, import_react3.useState)(defaultValue);
958
+ const controlled = value !== void 0;
959
+ const currentValue = controlled ? value : internalValue;
960
+ const setValue = (0, import_react3.useCallback)((nextValue) => {
961
+ if (Object.is(currentValue, nextValue)) return;
962
+ if (!controlled) setInternalValue(nextValue);
963
+ onChange?.(nextValue);
964
+ }, [controlled, currentValue, onChange]);
965
+ return [currentValue, setValue];
966
+ }
967
+
968
+ // src/components/DatePickerPanel.tsx
969
+ var import_react4 = require("react");
970
+ var import_jsx_runtime4 = require("react/jsx-runtime");
971
+ function pad(value) {
972
+ return String(value).padStart(2, "0");
973
+ }
974
+ function dateKey(date) {
975
+ return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;
976
+ }
977
+ function parseDate(value) {
978
+ const match = value?.match(/^(\d{4})-(\d{2})-(\d{2})/);
979
+ if (!match) return null;
980
+ const date = new Date(Number(match[1]), Number(match[2]) - 1, Number(match[3]));
981
+ return Number.isNaN(date.getTime()) ? null : date;
982
+ }
983
+ function startOfMonth(value) {
984
+ return new Date(value.getFullYear(), value.getMonth(), 1);
985
+ }
986
+ function addMonths(value, amount) {
987
+ return new Date(value.getFullYear(), value.getMonth() + amount, 1);
988
+ }
989
+ function addDays(value, amount) {
990
+ return new Date(value.getFullYear(), value.getMonth(), value.getDate() + amount);
991
+ }
992
+ function daysBetween(left, right) {
993
+ const leftDate = parseDate(left);
994
+ const rightDate = parseDate(right);
995
+ if (!leftDate || !rightDate) return 0;
996
+ return Math.round((rightDate.getTime() - leftDate.getTime()) / 864e5);
997
+ }
998
+ function timePart(value, fallback = "00:00:00") {
999
+ const match = value?.match(/[T ](\d{2}):(\d{2})(?::(\d{2}))?/);
1000
+ return match ? `${match[1]}:${match[2]}:${match[3] ?? "00"}` : fallback;
1001
+ }
1002
+ function withTime(date, time, showSecond = false) {
1003
+ if (!date) return "";
1004
+ const [hour = "00", minute = "00", second = "00"] = time.split(":");
1005
+ return `${date} ${hour}:${minute}${showSecond ? `:${second}` : ""}`;
1006
+ }
1007
+ function normalizeDateValue(value, showTime) {
1008
+ if (!value) return "";
1009
+ const date = parseDate(value);
1010
+ if (!date) return value;
1011
+ const day = dateKey(date);
1012
+ if (!showTime) return day;
1013
+ const config = typeof showTime === "object" ? showTime : {};
1014
+ return withTime(day, timePart(value, config.defaultValue ?? "00:00:00"), Boolean(config.showSecond));
1015
+ }
1016
+ var WEEKDAYS = ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u65E5"];
1017
+ function CalendarMonth({
1018
+ month,
1019
+ selectedDates = [],
1020
+ range = ["", ""],
1021
+ previewEnd,
1022
+ disabledDate,
1023
+ onSelect,
1024
+ onHover
1025
+ }) {
1026
+ const first = startOfMonth(month);
1027
+ const mondayIndex = (first.getDay() + 6) % 7;
1028
+ const gridStart = addDays(first, -mondayIndex);
1029
+ const today = dateKey(/* @__PURE__ */ new Date());
1030
+ const start = range[0];
1031
+ const end = range[1] || previewEnd || "";
1032
+ const low = start && end ? start <= end ? start : end : "";
1033
+ const high = start && end ? start <= end ? end : start : "";
1034
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "sia-date-panel__month", children: [
1035
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "sia-date-panel__weekdays", "aria-hidden": "true", children: WEEKDAYS.map((day) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: day }, day)) }),
1036
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "sia-date-panel__days", children: Array.from({ length: 42 }, (_, index) => {
1037
+ const date = addDays(gridStart, index);
1038
+ const key = dateKey(date);
1039
+ const outside = date.getMonth() !== month.getMonth();
1040
+ const disabled = disabledDate?.(key) ?? false;
1041
+ const selected = selectedDates.includes(key);
1042
+ const rangeStart = Boolean(start && key === start);
1043
+ const rangeEnd = Boolean(range[1] && key === range[1]);
1044
+ const inRange = Boolean(low && high && key >= low && key <= high);
1045
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1046
+ "span",
1047
+ {
1048
+ className: `sia-date-panel__cell${outside ? " is-outside" : ""}${selected ? " is-selected" : ""}${rangeStart ? " is-range-start" : ""}${rangeEnd ? " is-range-end" : ""}${inRange ? " is-in-range" : ""}${key === today ? " is-today" : ""}`,
1049
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1050
+ "button",
1051
+ {
1052
+ type: "button",
1053
+ "aria-label": key,
1054
+ "aria-pressed": selected || rangeStart || rangeEnd || void 0,
1055
+ disabled,
1056
+ onClick: () => onSelect(key),
1057
+ onMouseEnter: () => onHover?.(key),
1058
+ children: date.getDate()
1059
+ }
1060
+ )
1061
+ },
1062
+ key
1063
+ );
1064
+ }) })
1065
+ ] });
1066
+ }
1067
+ function CalendarHeader({
1068
+ month,
1069
+ label,
1070
+ range = false,
1071
+ onPreviousYear,
1072
+ onPreviousMonth,
1073
+ onNextMonth,
1074
+ onNextYear
1075
+ }) {
1076
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "sia-date-panel__header", children: [
1077
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "sia-date-panel__nav", children: [
1078
+ onPreviousYear ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("button", { type: "button", "aria-label": "\u4E0A\u4E00\u5E74", onClick: onPreviousYear, children: [
1079
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "chevron-left", size: 13 }),
1080
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "chevron-left", size: 13 })
1081
+ ] }) : null,
1082
+ onPreviousMonth ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", "aria-label": "\u4E0A\u4E2A\u6708", onClick: onPreviousMonth, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "chevron-left", size: 15 }) }) : null
1083
+ ] }),
1084
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("strong", { children: [
1085
+ label ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("small", { children: label }) : null,
1086
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { children: [
1087
+ month.getFullYear(),
1088
+ "\u5E74\xA0 ",
1089
+ month.getMonth() + 1,
1090
+ "\u6708"
1091
+ ] })
1092
+ ] }),
1093
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "sia-date-panel__nav", children: [
1094
+ onNextMonth ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", "aria-label": "\u4E0B\u4E2A\u6708", onClick: onNextMonth, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "chevron-right", size: 15 }) }) : null,
1095
+ onNextYear ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("button", { type: "button", "aria-label": "\u4E0B\u4E00\u5E74", onClick: onNextYear, children: [
1096
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "chevron-right", size: 13 }),
1097
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: "chevron-right", size: 13 })
1098
+ ] }) : null
1099
+ ] }),
1100
+ range ? null : null
1101
+ ] });
1102
+ }
1103
+ function TimePanel({
1104
+ value,
1105
+ showSecond = false,
1106
+ ariaLabel = "\u65F6\u95F4",
1107
+ disabledTime,
1108
+ use12Hours = false,
1109
+ onChange
1110
+ }) {
1111
+ const [hour = "00", minute = "00", second = "00"] = value.split(":");
1112
+ const columnsRef = (0, import_react4.useRef)(null);
1113
+ (0, import_react4.useLayoutEffect)(() => {
1114
+ for (const column of columnsRef.current?.children ?? []) {
1115
+ const selected = column.querySelector('[aria-selected="true"]');
1116
+ const first = column.firstElementChild;
1117
+ if (!selected || !first) continue;
1118
+ const top = selected.offsetTop - first.offsetTop + parseFloat(getComputedStyle(column).paddingTop || "0");
1119
+ const bottom = top + selected.offsetHeight;
1120
+ if (top < column.scrollTop || bottom > column.scrollTop + column.clientHeight) {
1121
+ column.scrollTop = Math.max(0, top - (column.clientHeight - selected.offsetHeight) / 2);
1122
+ }
1123
+ }
1124
+ }, [hour, minute, second, showSecond, ariaLabel]);
1125
+ const columns = [
1126
+ { label: "\u5C0F\u65F6", value: hour, count: 24, index: 0 },
1127
+ { label: "\u5206\u949F", value: minute, count: 60, index: 1 },
1128
+ ...showSecond ? [{ label: "\u79D2", value: second, count: 60, index: 2 }] : []
1129
+ ];
1130
+ function update(index, next) {
1131
+ const values = [hour, minute, second];
1132
+ values[index] = next;
1133
+ onChange(values.join(":"));
1134
+ }
1135
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("aside", { className: "sia-date-panel__time", "aria-label": ariaLabel, children: [
1136
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("strong", { children: [
1137
+ use12Hours ? pad(Number(hour) % 12 || 12) : hour,
1138
+ ":",
1139
+ minute,
1140
+ showSecond ? `:${second}` : "",
1141
+ use12Hours ? Number(hour) < 12 ? " AM" : " PM" : ""
1142
+ ] }),
1143
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ref: columnsRef, className: "sia-date-panel__time-columns", children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { role: "listbox", "aria-label": `${ariaLabel}${column.label}`, children: Array.from({ length: column.count }, (_, index) => {
1144
+ const next = pad(index);
1145
+ const candidate = [hour, minute, second];
1146
+ candidate[column.index] = next;
1147
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", role: "option", disabled: disabledTime?.(candidate.join(":")), "aria-selected": next === column.value, className: next === column.value ? "is-selected" : "", onKeyDown: (event) => {
1148
+ if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(event.key)) return;
1149
+ event.preventDefault();
1150
+ const buttons = Array.from(event.currentTarget.parentElement.querySelectorAll("button:not(:disabled)"));
1151
+ const position = buttons.indexOf(event.currentTarget);
1152
+ const target = event.key === "Home" ? 0 : event.key === "End" ? buttons.length - 1 : Math.max(0, Math.min(buttons.length - 1, position + (event.key === "ArrowDown" ? 1 : -1)));
1153
+ buttons[target]?.focus();
1154
+ }, onClick: () => update(column.index, next), children: use12Hours && column.index === 0 ? `${pad(index % 12 || 12)} ${index < 12 ? "AM" : "PM"}` : next }, next);
1155
+ }) }, column.label)) })
1156
+ ] });
1157
+ }
1158
+ function DatePanelFooter({
1159
+ showToday = true,
1160
+ needConfirm = false,
1161
+ disabledConfirm = false,
1162
+ confirmText = "\u786E\u5B9A",
1163
+ extra,
1164
+ onToday,
1165
+ onConfirm
1166
+ }) {
1167
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("footer", { className: "sia-date-panel__footer", children: [
1168
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { children: [
1169
+ showToday ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", onClick: onToday, children: "\u4ECA\u5929" }) : null,
1170
+ extra
1171
+ ] }),
1172
+ needConfirm ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", className: "sia-date-panel__confirm", disabled: disabledConfirm, onClick: onConfirm, children: confirmText }) : null
1173
+ ] });
1174
+ }
1175
+
1176
+ // src/components/DatePicker.tsx
1177
+ var import_jsx_runtime5 = require("react/jsx-runtime");
1178
+ function formatWeek(date) {
1179
+ const target = new Date(date);
1180
+ target.setHours(0, 0, 0, 0);
1181
+ target.setDate(target.getDate() + 3 - (target.getDay() + 6) % 7);
1182
+ const firstThursday = new Date(target.getFullYear(), 0, 4);
1183
+ const week = 1 + Math.round(((target.getTime() - firstThursday.getTime()) / 864e5 - 3 + (firstThursday.getDay() + 6) % 7) / 7);
1184
+ return `${target.getFullYear()}-W${String(week).padStart(2, "0")}`;
1185
+ }
1186
+ function formatPickerValue(day, picker) {
1187
+ const date = parseDate(day);
1188
+ if (!date) return day;
1189
+ if (picker === "month") return day.slice(0, 7);
1190
+ if (picker === "year") return day.slice(0, 4);
1191
+ if (picker === "quarter") return `${day.slice(0, 4)}-Q${Math.floor(date.getMonth() / 3) + 1}`;
1192
+ if (picker === "week") return formatWeek(date);
1193
+ return day;
1194
+ }
1195
+ function dayFromValue(value) {
1196
+ if (!value) return "";
1197
+ if (/^\d{4}-\d{2}-\d{2}/.test(value)) return value.slice(0, 10);
1198
+ if (/^\d{4}-\d{2}$/.test(value)) return `${value}-01`;
1199
+ if (/^\d{4}-Q[1-4]$/.test(value)) return `${value.slice(0, 4)}-${String((Number(value.slice(-1)) - 1) * 3 + 1).padStart(2, "0")}-01`;
1200
+ if (/^\d{4}$/.test(value)) return `${value}-01-01`;
1201
+ return "";
1202
+ }
1203
+ function placeholderFor(picker, showTime, multiple) {
1204
+ if (multiple) return "\u8BF7\u9009\u62E9\u591A\u4E2A\u65E5\u671F";
1205
+ if (picker === "month") return "\u8BF7\u9009\u62E9\u6708\u4EFD";
1206
+ if (picker === "year") return "\u8BF7\u9009\u62E9\u5E74\u4EFD";
1207
+ if (picker === "quarter") return "\u8BF7\u9009\u62E9\u5B63\u5EA6";
1208
+ if (picker === "week") return "\u8BF7\u9009\u62E9\u5468";
1209
+ return showTime ? "\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4" : "\u8BF7\u9009\u62E9\u65E5\u671F";
1210
+ }
1211
+ function showSecondFrom(showTime) {
1212
+ return Boolean(typeof showTime === "object" && showTime.showSecond);
1213
+ }
1214
+ function defaultTimeFrom(showTime) {
1215
+ return typeof showTime === "object" ? showTime.defaultValue ?? "00:00:00" : "00:00:00";
1216
+ }
1217
+ function resolvePreset(value) {
1218
+ return typeof value === "function" ? value() : value;
1219
+ }
1220
+ function resolveRangePreset(value) {
1221
+ return typeof value === "function" ? value() : value;
1222
+ }
1223
+ function DatePicker({
1224
+ value,
1225
+ defaultValue,
1226
+ picker = "date",
1227
+ size = "medium",
1228
+ status = "default",
1229
+ allowClear = true,
1230
+ multiple = false,
1231
+ needConfirm,
1232
+ showTime = false,
1233
+ showToday = true,
1234
+ open,
1235
+ defaultOpen = false,
1236
+ suffixIcon,
1237
+ minDate,
1238
+ maxDate,
1239
+ presets,
1240
+ disabledDate,
1241
+ disabled,
1242
+ className = "",
1243
+ onChange,
1244
+ onOpenChange,
1245
+ placeholder,
1246
+ ...props
1247
+ }) {
1248
+ const id = (0, import_react5.useId)();
1249
+ const rootRef = (0, import_react5.useRef)(null);
1250
+ const popupRef = (0, import_react5.useRef)(null);
1251
+ const initialValue = defaultValue ?? (multiple ? [] : "");
1252
+ const [currentValue, setCurrentValue] = useControllableState({ value, defaultValue: initialValue, onChange });
1253
+ const [visible, setVisible] = useControllableState({ value: open, defaultValue: defaultOpen, onChange: onOpenChange });
1254
+ const [draftValue, setDraftValue] = (0, import_react5.useState)(currentValue);
1255
+ const firstCurrent = Array.isArray(currentValue) ? currentValue[0] : currentValue;
1256
+ const [viewMonth, setViewMonth] = (0, import_react5.useState)(() => startOfMonth(parseDate(dayFromValue(firstCurrent)) ?? /* @__PURE__ */ new Date()));
1257
+ const [draftTime, setDraftTime] = (0, import_react5.useState)(() => timePart(firstCurrent, defaultTimeFrom(showTime)));
1258
+ const resolvedNeedConfirm = needConfirm ?? Boolean(showTime);
1259
+ const showSecond = showSecondFrom(showTime);
1260
+ const selectedDates = (0, import_react5.useMemo)(() => {
1261
+ const values = Array.isArray(draftValue) ? draftValue : draftValue ? [draftValue] : [];
1262
+ return values.map(dayFromValue).filter(Boolean);
1263
+ }, [draftValue]);
1264
+ (0, import_react5.useEffect)(() => {
1265
+ if (!visible) return void 0;
1266
+ const close = (event) => {
1267
+ const target = event.target;
1268
+ if (!rootRef.current?.contains(target) && !popupRef.current?.contains(target)) setVisible(false);
1269
+ };
1270
+ document.addEventListener("pointerdown", close);
1271
+ return () => document.removeEventListener("pointerdown", close);
1272
+ }, [setVisible, visible]);
1273
+ function changeOpen(next) {
1274
+ if (next) {
1275
+ setDraftValue(currentValue);
1276
+ const current = Array.isArray(currentValue) ? currentValue[0] : currentValue;
1277
+ setViewMonth(startOfMonth(parseDate(dayFromValue(current)) ?? /* @__PURE__ */ new Date()));
1278
+ setDraftTime(timePart(current, defaultTimeFrom(showTime)));
1279
+ }
1280
+ setVisible(next);
1281
+ }
1282
+ function isDisabled(day) {
1283
+ const minimum = minDate ?? props.min;
1284
+ const maximum = maxDate ?? props.max;
1285
+ if (minimum && day < String(minimum).slice(0, 10)) return true;
1286
+ if (maximum && day > String(maximum).slice(0, 10)) return true;
1287
+ return disabledDate?.(day, { type: "date" }) ?? false;
1288
+ }
1289
+ function buildValue(day) {
1290
+ const picked = formatPickerValue(day, picker);
1291
+ return showTime && picker === "date" ? withTime(picked, draftTime, showSecond) : picked;
1292
+ }
1293
+ function selectDate(day) {
1294
+ if (isDisabled(day)) return;
1295
+ const nextValue = buildValue(day);
1296
+ if (multiple) {
1297
+ const current = Array.isArray(draftValue) ? [...draftValue] : [];
1298
+ const exists = current.some((item) => dayFromValue(item) === day);
1299
+ const next = exists ? current.filter((item) => dayFromValue(item) !== day) : [...current, nextValue];
1300
+ setDraftValue(next);
1301
+ if (!resolvedNeedConfirm) setCurrentValue(next);
1302
+ return;
1303
+ }
1304
+ setDraftValue(nextValue);
1305
+ if (!resolvedNeedConfirm) {
1306
+ setCurrentValue(nextValue);
1307
+ changeOpen(false);
1308
+ }
1309
+ }
1310
+ function commitDraft() {
1311
+ setCurrentValue(draftValue);
1312
+ changeOpen(false);
1313
+ }
1314
+ function clearValue(event) {
1315
+ event.stopPropagation();
1316
+ const empty = multiple ? [] : "";
1317
+ setDraftValue(empty);
1318
+ setCurrentValue(empty);
1319
+ }
1320
+ const display = Array.isArray(currentValue) ? currentValue.join("\u3001") : currentValue;
1321
+ const triggerLabel = props["aria-label"] ?? (typeof placeholder === "string" ? placeholder : "\u65E5\u671F\u9009\u62E9\u5668");
1322
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { ref: rootRef, className: `sia-picker sia-picker--${size} sia-picker--${status}${visible ? " is-open" : ""}${disabled ? " is-disabled" : ""} ${className}`.trim(), children: [
1323
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1324
+ "button",
1325
+ {
1326
+ type: "button",
1327
+ id: props.id ?? id,
1328
+ className: "sia-picker__trigger",
1329
+ "aria-label": triggerLabel,
1330
+ "aria-labelledby": props["aria-labelledby"],
1331
+ "aria-haspopup": "dialog",
1332
+ "aria-expanded": visible,
1333
+ "aria-invalid": status === "error" || void 0,
1334
+ "aria-describedby": props["aria-describedby"],
1335
+ "aria-errormessage": props["aria-errormessage"],
1336
+ disabled,
1337
+ onClick: () => changeOpen(!visible),
1338
+ onKeyDown: (event) => {
1339
+ if (event.key === "ArrowDown" || event.key === "Enter" || event.key === " ") {
1340
+ event.preventDefault();
1341
+ changeOpen(true);
1342
+ } else if (event.key === "Escape") changeOpen(false);
1343
+ },
1344
+ children: [
1345
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: `sia-picker__value${display ? "" : " is-placeholder"}`, children: display || placeholder || placeholderFor(picker, showTime, multiple) }),
1346
+ allowClear && display && !disabled ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { role: "button", className: "sia-picker__clear", "aria-label": "\u6E05\u9664\u65E5\u671F", onClick: clearValue, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "circle-close", variant: "filled", size: 15 }) }) : null,
1347
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "sia-picker__icon", "aria-hidden": "true", children: suffixIcon ?? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "calendar", size: 16 }) })
1348
+ ]
1349
+ }
1350
+ ),
1351
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PopupPortal, { ref: popupRef, anchorRef: rootRef, open: visible, className: `sia-date-panel${showTime ? " sia-date-panel--with-time" : ""}${presets?.length ? " sia-date-panel--with-presets" : ""}`, role: "dialog", "aria-label": "\u65E5\u671F\u9009\u62E9\u9762\u677F", children: [
1352
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "sia-date-panel__body", children: [
1353
+ presets?.length ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("aside", { className: "sia-date-panel__presets", children: presets.map((preset, index) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { type: "button", onClick: () => {
1354
+ const next = resolvePreset(preset.value);
1355
+ setDraftValue(next);
1356
+ if (!resolvedNeedConfirm) {
1357
+ setCurrentValue(next);
1358
+ changeOpen(false);
1359
+ }
1360
+ }, children: preset.label }, index)) }) : null,
1361
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("section", { className: "sia-date-panel__calendar", children: [
1362
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1363
+ CalendarHeader,
1364
+ {
1365
+ month: viewMonth,
1366
+ onPreviousYear: () => setViewMonth(addMonths(viewMonth, -12)),
1367
+ onPreviousMonth: () => setViewMonth(addMonths(viewMonth, -1)),
1368
+ onNextMonth: () => setViewMonth(addMonths(viewMonth, 1)),
1369
+ onNextYear: () => setViewMonth(addMonths(viewMonth, 12))
1370
+ }
1371
+ ),
1372
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CalendarMonth, { month: viewMonth, selectedDates, disabledDate: isDisabled, onSelect: selectDate })
1373
+ ] }),
1374
+ showTime ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TimePanel, { value: draftTime, showSecond, onChange: (next) => {
1375
+ setDraftTime(next);
1376
+ if (typeof draftValue === "string" && draftValue) setDraftValue(withTime(dayFromValue(draftValue), next, showSecond));
1377
+ } }) : null
1378
+ ] }),
1379
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1380
+ DatePanelFooter,
1381
+ {
1382
+ showToday,
1383
+ needConfirm: resolvedNeedConfirm,
1384
+ disabledConfirm: Array.isArray(draftValue) ? draftValue.length === 0 : !draftValue,
1385
+ onToday: () => selectDate(dateKey(/* @__PURE__ */ new Date())),
1386
+ onConfirm: commitDraft
1387
+ }
1388
+ )
1389
+ ] })
1390
+ ] });
1391
+ }
1392
+ function DateRangePicker({
1393
+ value,
1394
+ defaultValue = ["", ""],
1395
+ placeholder = ["\u5F00\u59CB\u65E5\u671F", "\u7ED3\u675F\u65E5\u671F"],
1396
+ separator = "\u2192",
1397
+ presets,
1398
+ maxRangeDays,
1399
+ size = "medium",
1400
+ status = "default",
1401
+ allowClear = true,
1402
+ needConfirm,
1403
+ showTime = false,
1404
+ showToday = true,
1405
+ open,
1406
+ defaultOpen = false,
1407
+ suffixIcon,
1408
+ minDate,
1409
+ maxDate,
1410
+ disabledDate,
1411
+ disabled,
1412
+ className = "",
1413
+ onCalendarChange,
1414
+ onChange,
1415
+ onOpenChange,
1416
+ ...props
1417
+ }) {
1418
+ const id = (0, import_react5.useId)();
1419
+ const rootRef = (0, import_react5.useRef)(null);
1420
+ const popupRef = (0, import_react5.useRef)(null);
1421
+ const [currentValue, setCurrentValue] = useControllableState({ value, defaultValue, onChange });
1422
+ const [visible, setVisible] = useControllableState({ value: open, defaultValue: defaultOpen, onChange: onOpenChange });
1423
+ const [draftValue, setDraftValue] = (0, import_react5.useState)(currentValue);
1424
+ const [activeIndex, setActiveIndex] = (0, import_react5.useState)(currentValue[0] && !currentValue[1] ? 1 : 0);
1425
+ const [hoverDate, setHoverDate] = (0, import_react5.useState)("");
1426
+ const [viewMonth, setViewMonth] = (0, import_react5.useState)(() => startOfMonth(parseDate(dayFromValue(currentValue[0] || currentValue[1])) ?? /* @__PURE__ */ new Date()));
1427
+ const [endViewMonth, setEndViewMonth] = (0, import_react5.useState)(() => startOfMonth(parseDate(dayFromValue(currentValue[1])) ?? addMonths(parseDate(dayFromValue(currentValue[0])) ?? /* @__PURE__ */ new Date(), 1)));
1428
+ const [compactDateTime, setCompactDateTime] = (0, import_react5.useState)(false);
1429
+ const showSecond = showSecondFrom(showTime);
1430
+ const defaultTime = defaultTimeFrom(showTime);
1431
+ const [times, setTimes] = (0, import_react5.useState)([
1432
+ timePart(currentValue[0], defaultTime),
1433
+ timePart(currentValue[1], defaultTime)
1434
+ ]);
1435
+ const resolvedNeedConfirm = needConfirm ?? Boolean(showTime);
1436
+ const rangeDates = [dayFromValue(draftValue[0]), dayFromValue(draftValue[1])];
1437
+ const invalidDateTimeRange = Boolean(showTime && draftValue[0] && draftValue[1] && draftValue[0] > draftValue[1]);
1438
+ (0, import_react5.useEffect)(() => {
1439
+ if (!showTime || typeof document === "undefined") {
1440
+ setCompactDateTime(false);
1441
+ return void 0;
1442
+ }
1443
+ const updateLayout = () => {
1444
+ const pairedPanelWidth = 2 * (280 + (showSecond ? 144 : 96) + 1) + 3;
1445
+ setCompactDateTime(document.documentElement.clientWidth < pairedPanelWidth + 16);
1446
+ };
1447
+ updateLayout();
1448
+ window.addEventListener("resize", updateLayout);
1449
+ return () => window.removeEventListener("resize", updateLayout);
1450
+ }, [showSecond, showTime]);
1451
+ (0, import_react5.useEffect)(() => {
1452
+ if (!visible) return void 0;
1453
+ const close = (event) => {
1454
+ const target = event.target;
1455
+ if (!rootRef.current?.contains(target) && !popupRef.current?.contains(target)) setVisible(false);
1456
+ };
1457
+ document.addEventListener("pointerdown", close);
1458
+ return () => document.removeEventListener("pointerdown", close);
1459
+ }, [setVisible, visible]);
1460
+ function changeOpen(next) {
1461
+ if (next) {
1462
+ setDraftValue(currentValue);
1463
+ setTimes([timePart(currentValue[0], defaultTime), timePart(currentValue[1], defaultTime)]);
1464
+ setActiveIndex(currentValue[0] && !currentValue[1] ? 1 : 0);
1465
+ const nextStartMonth = startOfMonth(parseDate(dayFromValue(currentValue[0] || currentValue[1])) ?? /* @__PURE__ */ new Date());
1466
+ setViewMonth(nextStartMonth);
1467
+ setEndViewMonth(startOfMonth(parseDate(dayFromValue(currentValue[1])) ?? addMonths(nextStartMonth, 1)));
1468
+ }
1469
+ setVisible(next);
1470
+ }
1471
+ function isDisabled(day, index = activeIndex, pairedDateTime = false) {
1472
+ const minimum = minDate ?? props.min;
1473
+ const maximum = maxDate ?? props.max;
1474
+ if (minimum && day < String(minimum).slice(0, 10)) return true;
1475
+ if (maximum && day > String(maximum).slice(0, 10)) return true;
1476
+ const from = index === 1 ? rangeDates[0] : void 0;
1477
+ if (pairedDateTime) {
1478
+ const otherEndpoint = index === 0 ? rangeDates[1] : rangeDates[0];
1479
+ if (index === 0 && otherEndpoint && day > otherEndpoint) return true;
1480
+ if (index === 1 && otherEndpoint && day < otherEndpoint) return true;
1481
+ if (otherEndpoint && maxRangeDays && Math.abs(daysBetween(otherEndpoint, day)) >= maxRangeDays) return true;
1482
+ } else if (from && maxRangeDays && Math.abs(daysBetween(from, day)) >= maxRangeDays) return true;
1483
+ return disabledDate?.(day, { from, type: "date" }) ?? false;
1484
+ }
1485
+ function buildRangeValue(day, index) {
1486
+ return showTime ? withTime(day, times[index], showSecond) : day;
1487
+ }
1488
+ function updateDraft(next) {
1489
+ setDraftValue(next);
1490
+ onCalendarChange?.(next);
1491
+ }
1492
+ function selectDate(day) {
1493
+ if (isDisabled(day)) return;
1494
+ if (activeIndex === 0 || !rangeDates[0] || rangeDates[1]) {
1495
+ const next = [buildRangeValue(day, 0), ""];
1496
+ updateDraft(next);
1497
+ setActiveIndex(1);
1498
+ setHoverDate("");
1499
+ return;
1500
+ }
1501
+ const startDay = rangeDates[0];
1502
+ const ordered = day < startDay ? [buildRangeValue(day, 0), buildRangeValue(startDay, 1)] : [draftValue[0], buildRangeValue(day, 1)];
1503
+ updateDraft(ordered);
1504
+ setActiveIndex(0);
1505
+ setHoverDate("");
1506
+ if (!resolvedNeedConfirm) {
1507
+ setCurrentValue(ordered);
1508
+ changeOpen(false);
1509
+ }
1510
+ }
1511
+ function selectDateTime(day, index) {
1512
+ if (isDisabled(day, index, true)) return;
1513
+ const nextValue = [...draftValue];
1514
+ nextValue[index] = buildRangeValue(day, index);
1515
+ updateDraft(nextValue);
1516
+ setHoverDate("");
1517
+ if (!resolvedNeedConfirm && compactDateTime && index === 0) {
1518
+ setActiveIndex(1);
1519
+ setEndViewMonth(startOfMonth(parseDate(day) ?? /* @__PURE__ */ new Date()));
1520
+ return;
1521
+ }
1522
+ setActiveIndex(index);
1523
+ if (!resolvedNeedConfirm && nextValue[0] && nextValue[1] && nextValue[0] <= nextValue[1]) {
1524
+ setCurrentValue(nextValue);
1525
+ changeOpen(false);
1526
+ }
1527
+ }
1528
+ function changeTime(index, nextTime) {
1529
+ const nextTimes = [...times];
1530
+ nextTimes[index] = nextTime;
1531
+ setTimes(nextTimes);
1532
+ setActiveIndex(index);
1533
+ if (draftValue[index]) {
1534
+ const nextValue = [...draftValue];
1535
+ nextValue[index] = withTime(dayFromValue(draftValue[index]), nextTime, showSecond);
1536
+ updateDraft(nextValue);
1537
+ }
1538
+ }
1539
+ function confirm() {
1540
+ if (compactDateTime && showTime && activeIndex === 0) {
1541
+ if (!draftValue[0]) return;
1542
+ setActiveIndex(1);
1543
+ setEndViewMonth(startOfMonth(parseDate(dayFromValue(draftValue[1] || draftValue[0])) ?? /* @__PURE__ */ new Date()));
1544
+ setHoverDate("");
1545
+ return;
1546
+ }
1547
+ if (!draftValue[0] || !draftValue[1] || invalidDateTimeRange) return;
1548
+ setCurrentValue(draftValue);
1549
+ changeOpen(false);
1550
+ }
1551
+ function applyPreset(preset) {
1552
+ const raw = resolveRangePreset(preset.value);
1553
+ const next = [
1554
+ normalizeDateValue(raw[0], showTime),
1555
+ normalizeDateValue(raw[1], showTime)
1556
+ ];
1557
+ updateDraft(next);
1558
+ setTimes([timePart(next[0], defaultTime), timePart(next[1], defaultTime)]);
1559
+ const nextStartMonth = startOfMonth(parseDate(dayFromValue(next[0] || next[1])) ?? /* @__PURE__ */ new Date());
1560
+ setViewMonth(nextStartMonth);
1561
+ setEndViewMonth(startOfMonth(parseDate(dayFromValue(next[1])) ?? addMonths(nextStartMonth, 1)));
1562
+ if (!resolvedNeedConfirm) {
1563
+ setCurrentValue(next);
1564
+ changeOpen(false);
1565
+ }
1566
+ }
1567
+ function clearValue(event) {
1568
+ event.stopPropagation();
1569
+ const empty = ["", ""];
1570
+ updateDraft(empty);
1571
+ setCurrentValue(empty);
1572
+ setActiveIndex(0);
1573
+ }
1574
+ function renderDateTimeGroup(index) {
1575
+ const month = index === 0 ? viewMonth : endViewMonth;
1576
+ const setMonth = index === 0 ? setViewMonth : setEndViewMonth;
1577
+ const endpointLabel = index === 0 ? "\u5F00\u59CB" : "\u7ED3\u675F";
1578
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1579
+ "div",
1580
+ {
1581
+ className: `sia-date-panel__range-date-time-group${activeIndex === index ? " is-active" : ""}`,
1582
+ "aria-label": `${endpointLabel}\u65E5\u671F\u65F6\u95F4`,
1583
+ children: [
1584
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("section", { className: "sia-date-panel__calendar", children: [
1585
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1586
+ CalendarHeader,
1587
+ {
1588
+ month,
1589
+ label: endpointLabel,
1590
+ range: true,
1591
+ onPreviousYear: () => setMonth(addMonths(month, -12)),
1592
+ onPreviousMonth: () => setMonth(addMonths(month, -1)),
1593
+ onNextMonth: () => setMonth(addMonths(month, 1)),
1594
+ onNextYear: () => setMonth(addMonths(month, 12))
1595
+ }
1596
+ ),
1597
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1598
+ CalendarMonth,
1599
+ {
1600
+ month,
1601
+ range: rangeDates,
1602
+ disabledDate: (day) => isDisabled(day, index, true),
1603
+ onSelect: (day) => selectDateTime(day, index)
1604
+ }
1605
+ )
1606
+ ] }),
1607
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1608
+ TimePanel,
1609
+ {
1610
+ value: times[index],
1611
+ showSecond,
1612
+ ariaLabel: `${endpointLabel}\u65F6\u95F4`,
1613
+ onChange: (nextTime) => changeTime(index, nextTime)
1614
+ }
1615
+ )
1616
+ ]
1617
+ },
1618
+ endpointLabel
1619
+ );
1620
+ }
1621
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { ref: rootRef, className: `sia-picker sia-picker-range-control sia-picker--${size} sia-picker--${status}${visible ? " is-open" : ""}${disabled ? " is-disabled" : ""} ${className}`.trim(), children: [
1622
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1623
+ "button",
1624
+ {
1625
+ type: "button",
1626
+ id: props.id ?? id,
1627
+ className: "sia-picker__trigger",
1628
+ "aria-label": props["aria-label"] ?? "\u65E5\u671F\u8303\u56F4\u9009\u62E9\u5668",
1629
+ "aria-labelledby": props["aria-labelledby"],
1630
+ "aria-haspopup": "dialog",
1631
+ "aria-expanded": visible,
1632
+ "aria-invalid": status === "error" || void 0,
1633
+ "aria-describedby": props["aria-describedby"],
1634
+ "aria-errormessage": props["aria-errormessage"],
1635
+ disabled,
1636
+ onClick: () => changeOpen(!visible),
1637
+ children: [
1638
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: `sia-picker-range-control__value${currentValue[0] ? "" : " is-placeholder"}`, children: currentValue[0] || placeholder[0] }),
1639
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "sia-picker-range-control__separator", children: separator }),
1640
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: `sia-picker-range-control__value${currentValue[1] ? "" : " is-placeholder"}`, children: currentValue[1] || placeholder[1] }),
1641
+ allowClear && (currentValue[0] || currentValue[1]) && !disabled ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { role: "button", className: "sia-picker__clear", "aria-label": "\u6E05\u9664\u65E5\u671F\u8303\u56F4", onClick: clearValue, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "circle-close", variant: "filled", size: 15 }) }) : null,
1642
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "sia-picker__icon", "aria-hidden": "true", children: suffixIcon ?? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { name: "calendar", size: 16 }) })
1643
+ ]
1644
+ }
1645
+ ),
1646
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PopupPortal, { ref: popupRef, anchorRef: rootRef, open: visible, className: `sia-date-panel sia-date-panel--range${showTime ? ` sia-date-panel--with-time sia-date-panel--range-time-${compactDateTime ? "compact" : "paired"}` : ""}${presets?.length ? " sia-date-panel--with-presets" : ""}`, role: "dialog", "aria-label": "\u65E5\u671F\u8303\u56F4\u9009\u62E9\u9762\u677F", children: [
1647
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "sia-date-panel__body", children: showTime ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "sia-date-panel__range-date-time", children: compactDateTime ? renderDateTimeGroup(activeIndex) : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
1648
+ renderDateTimeGroup(0),
1649
+ renderDateTimeGroup(1)
1650
+ ] }) }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "sia-date-panel__range-calendars", children: [
1651
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("section", { className: "sia-date-panel__calendar", children: [
1652
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1653
+ CalendarHeader,
1654
+ {
1655
+ month: viewMonth,
1656
+ range: true,
1657
+ onPreviousYear: () => setViewMonth(addMonths(viewMonth, -12)),
1658
+ onPreviousMonth: () => setViewMonth(addMonths(viewMonth, -1))
1659
+ }
1660
+ ),
1661
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CalendarMonth, { month: viewMonth, range: rangeDates, previewEnd: activeIndex === 1 ? hoverDate : "", disabledDate: isDisabled, onSelect: selectDate, onHover: activeIndex === 1 ? setHoverDate : void 0 })
1662
+ ] }),
1663
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("section", { className: "sia-date-panel__calendar", children: [
1664
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1665
+ CalendarHeader,
1666
+ {
1667
+ month: addMonths(viewMonth, 1),
1668
+ range: true,
1669
+ onNextMonth: () => setViewMonth(addMonths(viewMonth, 1)),
1670
+ onNextYear: () => setViewMonth(addMonths(viewMonth, 12))
1671
+ }
1672
+ ),
1673
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CalendarMonth, { month: addMonths(viewMonth, 1), range: rangeDates, previewEnd: activeIndex === 1 ? hoverDate : "", disabledDate: isDisabled, onSelect: selectDate, onHover: activeIndex === 1 ? setHoverDate : void 0 })
1674
+ ] })
1675
+ ] }) }),
1676
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1677
+ DatePanelFooter,
1678
+ {
1679
+ showToday: showToday && !presets?.length,
1680
+ needConfirm: resolvedNeedConfirm,
1681
+ disabledConfirm: compactDateTime && showTime && activeIndex === 0 ? !draftValue[0] : !draftValue[0] || !draftValue[1] || invalidDateTimeRange,
1682
+ confirmText: compactDateTime && showTime && activeIndex === 0 ? "\u4E0B\u4E00\u6B65" : "\u786E\u5B9A",
1683
+ extra: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
1684
+ presets?.map((preset, index) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { type: "button", onClick: () => applyPreset(preset), children: preset.label }, index)),
1685
+ compactDateTime && showTime && activeIndex === 1 ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { type: "button", onClick: () => {
1686
+ setActiveIndex(0);
1687
+ setViewMonth(startOfMonth(parseDate(dayFromValue(draftValue[0])) ?? /* @__PURE__ */ new Date()));
1688
+ }, children: "\u4E0A\u4E00\u6B65" }) : null,
1689
+ invalidDateTimeRange ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("small", { className: "sia-date-panel__range-error", children: "\u7ED3\u675F\u65F6\u95F4\u4E0D\u80FD\u65E9\u4E8E\u5F00\u59CB\u65F6\u95F4" }) : maxRangeDays ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("small", { children: [
1690
+ "\u6700\u591A\u9009\u62E9 ",
1691
+ maxRangeDays,
1692
+ " \u5929"
1693
+ ] }) : null
1694
+ ] }),
1695
+ onToday: () => showTime ? selectDateTime(dateKey(/* @__PURE__ */ new Date()), activeIndex) : selectDate(dateKey(/* @__PURE__ */ new Date())),
1696
+ onConfirm: confirm
1697
+ }
1698
+ )
1699
+ ] })
1700
+ ] });
1701
+ }
1702
+ ((DatePicker2) => {
1703
+ DatePicker2.RangePicker = DateRangePicker;
1704
+ })(DatePicker || (DatePicker = {}));
1705
+
1706
+ // src/components/Select.tsx
1707
+ var import_react6 = require("react");
1708
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1709
+ function defaultFilterOption(query, option) {
1710
+ return String(option.label).toLowerCase().includes(query.toLowerCase());
1711
+ }
1712
+ var Select = (0, import_react6.forwardRef)(function Select2({
1713
+ options,
1714
+ mode = "single",
1715
+ value,
1716
+ defaultValue,
1717
+ onChange,
1718
+ placeholder = "\u8BF7\u9009\u62E9",
1719
+ size = "medium",
1720
+ status = "default",
1721
+ allowClear = false,
1722
+ loading = false,
1723
+ showSearch = false,
1724
+ allowInput = false,
1725
+ inputMaxLength,
1726
+ searchPlaceholder = "\u641C\u7D22\u9009\u9879",
1727
+ onSearch,
1728
+ filterOption = defaultFilterOption,
1729
+ showSelectAll = false,
1730
+ maxTagCount = 2,
1731
+ virtual = true,
1732
+ virtualThreshold = 100,
1733
+ listHeight = 256,
1734
+ optionHeight = 34,
1735
+ disabled,
1736
+ className = "",
1737
+ id,
1738
+ notFoundContent = "\u6682\u65E0\u6570\u636E",
1739
+ onKeyDown,
1740
+ ...props
1741
+ }, forwardedRef) {
1742
+ const fallbackId = (0, import_react6.useId)();
1743
+ const selectId = id ?? fallbackId;
1744
+ const listboxId = `${selectId}-listbox`;
1745
+ const rootRef = (0, import_react6.useRef)(null);
1746
+ const popupRef = (0, import_react6.useRef)(null);
1747
+ const searchRef = (0, import_react6.useRef)(null);
1748
+ const listRef = (0, import_react6.useRef)(null);
1749
+ const [open, setOpen] = (0, import_react6.useState)(false);
1750
+ const [query, setQuery] = (0, import_react6.useState)("");
1751
+ const [activeIndex, setActiveIndex] = (0, import_react6.useState)(-1);
1752
+ const [scrollTop, setScrollTop] = (0, import_react6.useState)(0);
1753
+ const deferredQuery = (0, import_react6.useDeferredValue)(query.trim());
1754
+ const initialValue = defaultValue === void 0 ? mode === "multiple" ? [] : null : defaultValue;
1755
+ const [currentValue, setCurrentValue] = useControllableState({
1756
+ value,
1757
+ defaultValue: initialValue,
1758
+ onChange: (nextValue) => {
1759
+ if (Array.isArray(nextValue)) {
1760
+ const selectedOptions2 = nextValue.map((selectedValue) => options.find((option) => option.value === selectedValue) ?? (allowInput ? { label: String(selectedValue), value: selectedValue } : void 0)).filter((option) => option !== void 0);
1761
+ onChange?.(nextValue, selectedOptions2);
1762
+ } else {
1763
+ const selectedOption = nextValue === null ? null : options.find((option) => option.value === nextValue) ?? (allowInput ? { label: String(nextValue), value: nextValue } : null);
1764
+ onChange?.(nextValue, selectedOption);
1765
+ }
1766
+ }
1767
+ });
1768
+ const selectedValues = (0, import_react6.useMemo)(() => {
1769
+ if (mode === "multiple") return Array.isArray(currentValue) ? currentValue : currentValue === null ? [] : [currentValue];
1770
+ return Array.isArray(currentValue) ? currentValue.slice(0, 1) : currentValue === null ? [] : [currentValue];
1771
+ }, [currentValue, mode]);
1772
+ const selectedValueSet = (0, import_react6.useMemo)(() => new Set(selectedValues), [selectedValues]);
1773
+ const availableOptions = (0, import_react6.useMemo)(() => {
1774
+ if (!allowInput) return options;
1775
+ const optionValueSet = new Set(options.map((option) => option.value));
1776
+ const selectedCustomOptions = selectedValues.filter((selectedValue) => !optionValueSet.has(selectedValue)).map((selectedValue) => ({ label: String(selectedValue), value: selectedValue }));
1777
+ return selectedCustomOptions.length ? [...selectedCustomOptions, ...options] : options;
1778
+ }, [allowInput, options, selectedValues]);
1779
+ const selectedOptions = (0, import_react6.useMemo)(() => selectedValues.map((selectedValue) => availableOptions.find((option) => option.value === selectedValue)).filter((option) => option !== void 0), [availableOptions, selectedValues]);
1780
+ const filteredOptions = (0, import_react6.useMemo)(() => deferredQuery ? availableOptions.filter((option) => filterOption(deferredQuery, option)) : availableOptions, [availableOptions, deferredQuery, filterOption]);
1781
+ const inputValue = query.trim();
1782
+ const exactInputOption = inputValue ? availableOptions.find((option) => String(option.value).toLowerCase() === inputValue.toLowerCase() || typeof option.label === "string" && option.label.toLowerCase() === inputValue.toLowerCase()) : void 0;
1783
+ const canSubmitInput = allowInput && Boolean(inputValue) && !exactInputOption;
1784
+ const multiple = mode === "multiple";
1785
+ const hasValue = selectedOptions.length > 0;
1786
+ const virtualEnabled = virtual && filteredOptions.length >= virtualThreshold;
1787
+ const overscan = 3;
1788
+ const visibleCount = Math.ceil(listHeight / optionHeight) + overscan * 2;
1789
+ const virtualStart = virtualEnabled ? Math.max(0, Math.floor(scrollTop / optionHeight) - overscan) : 0;
1790
+ const virtualEnd = virtualEnabled ? Math.min(filteredOptions.length, virtualStart + visibleCount) : filteredOptions.length;
1791
+ const renderedOptions = virtualEnabled ? filteredOptions.slice(virtualStart, virtualEnd) : filteredOptions;
1792
+ const enabledFilteredOptions = filteredOptions.filter((option) => !option.disabled);
1793
+ const allFilteredSelected = enabledFilteredOptions.length > 0 && enabledFilteredOptions.every((option) => selectedValueSet.has(option.value));
1794
+ (0, import_react6.useEffect)(() => {
1795
+ if (!open) return void 0;
1796
+ function closeFromOutside(event) {
1797
+ const target = event.target;
1798
+ if (!rootRef.current?.contains(target) && !popupRef.current?.contains(target)) closeDropdown();
1799
+ }
1800
+ document.addEventListener("mousedown", closeFromOutside);
1801
+ return () => document.removeEventListener("mousedown", closeFromOutside);
1802
+ }, [open]);
1803
+ (0, import_react6.useEffect)(() => {
1804
+ if (open && (showSearch || allowInput)) searchRef.current?.focus();
1805
+ }, [allowInput, open, showSearch]);
1806
+ function firstEnabledIndex() {
1807
+ return filteredOptions.findIndex((option) => !option.disabled);
1808
+ }
1809
+ function closeDropdown() {
1810
+ setOpen(false);
1811
+ setQuery("");
1812
+ setScrollTop(0);
1813
+ }
1814
+ function openDropdown() {
1815
+ if (disabled || loading) return;
1816
+ const selectedIndex = filteredOptions.findIndex((option) => selectedValueSet.has(option.value) && !option.disabled);
1817
+ setActiveIndex(selectedIndex >= 0 ? selectedIndex : firstEnabledIndex());
1818
+ setOpen(true);
1819
+ }
1820
+ function keepActiveVisible(index) {
1821
+ if (!virtualEnabled || !listRef.current) return;
1822
+ const optionTop = index * optionHeight;
1823
+ const optionBottom = optionTop + optionHeight;
1824
+ const viewportTop = listRef.current.scrollTop;
1825
+ const viewportBottom = viewportTop + listHeight;
1826
+ const nextScrollTop = optionTop < viewportTop ? optionTop : optionBottom > viewportBottom ? optionBottom - listHeight : viewportTop;
1827
+ if (nextScrollTop !== viewportTop) {
1828
+ listRef.current.scrollTop = nextScrollTop;
1829
+ setScrollTop(nextScrollTop);
1830
+ }
1831
+ }
1832
+ function moveActive(direction) {
1833
+ if (filteredOptions.length === 0) return;
1834
+ let nextIndex = activeIndex;
1835
+ for (let index = 0; index < filteredOptions.length; index += 1) {
1836
+ nextIndex = (nextIndex + direction + filteredOptions.length) % filteredOptions.length;
1837
+ if (!filteredOptions[nextIndex]?.disabled) {
1838
+ setActiveIndex(nextIndex);
1839
+ keepActiveVisible(nextIndex);
1840
+ return;
1841
+ }
1842
+ }
1843
+ }
1844
+ function selectOption(option) {
1845
+ if (option.disabled) return;
1846
+ if (multiple) {
1847
+ const nextValues = selectedValueSet.has(option.value) ? selectedValues.filter((item) => item !== option.value) : [...selectedValues, option.value];
1848
+ setCurrentValue(nextValues);
1849
+ return;
1850
+ }
1851
+ setCurrentValue(option.value);
1852
+ closeDropdown();
1853
+ }
1854
+ function selectAllFiltered() {
1855
+ if (allFilteredSelected) return;
1856
+ const nextValues = [...selectedValues];
1857
+ const nextValueSet = new Set(nextValues);
1858
+ enabledFilteredOptions.forEach((option) => {
1859
+ if (!nextValueSet.has(option.value)) nextValues.push(option.value);
1860
+ });
1861
+ setCurrentValue(nextValues);
1862
+ }
1863
+ function submitInputValue() {
1864
+ if (!allowInput || !inputValue) return;
1865
+ selectOption(exactInputOption ?? { label: inputValue, value: inputValue });
1866
+ if (multiple) {
1867
+ setQuery("");
1868
+ setActiveIndex(-1);
1869
+ setScrollTop(0);
1870
+ }
1871
+ }
1872
+ function clearSelection() {
1873
+ setCurrentValue(multiple ? [] : null);
1874
+ }
1875
+ function handleInteractionKeyDown(event, fromSearch = false) {
1876
+ if (event.key === "ArrowDown" || event.key === "ArrowUp") {
1877
+ event.preventDefault();
1878
+ if (!open) openDropdown();
1879
+ else moveActive(event.key === "ArrowDown" ? 1 : -1);
1880
+ } else if (event.key === "Enter" || event.key === " " && !fromSearch) {
1881
+ event.preventDefault();
1882
+ if (!open) openDropdown();
1883
+ else if (activeIndex >= 0 && filteredOptions[activeIndex]) selectOption(filteredOptions[activeIndex]);
1884
+ else if (fromSearch && allowInput) submitInputValue();
1885
+ } else if (event.key === "Escape") {
1886
+ closeDropdown();
1887
+ } else if (event.key === "Home" && open && !fromSearch) {
1888
+ event.preventDefault();
1889
+ const firstIndex = firstEnabledIndex();
1890
+ setActiveIndex(firstIndex);
1891
+ keepActiveVisible(firstIndex);
1892
+ } else if (event.key === "End" && open && !fromSearch) {
1893
+ event.preventDefault();
1894
+ const reversedIndex = [...filteredOptions].reverse().findIndex((option) => !option.disabled);
1895
+ const lastIndex = reversedIndex < 0 ? -1 : filteredOptions.length - 1 - reversedIndex;
1896
+ setActiveIndex(lastIndex);
1897
+ keepActiveVisible(lastIndex);
1898
+ }
1899
+ }
1900
+ function handleTriggerKeyDown(event) {
1901
+ handleInteractionKeyDown(event);
1902
+ onKeyDown?.(event);
1903
+ }
1904
+ function handleSearchChange(event) {
1905
+ const nextQuery = event.target.value;
1906
+ setQuery(nextQuery);
1907
+ setActiveIndex(-1);
1908
+ setScrollTop(0);
1909
+ if (listRef.current) listRef.current.scrollTop = 0;
1910
+ onSearch?.(nextQuery);
1911
+ }
1912
+ function clearValue(event) {
1913
+ event.stopPropagation();
1914
+ clearSelection();
1915
+ }
1916
+ function handleListScroll(event) {
1917
+ if (virtualEnabled) setScrollTop(event.currentTarget.scrollTop);
1918
+ }
1919
+ function renderOption(option, renderedIndex) {
1920
+ const optionIndex = virtualEnabled ? virtualStart + renderedIndex : renderedIndex;
1921
+ const selected = selectedValueSet.has(option.value);
1922
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1923
+ "div",
1924
+ {
1925
+ id: `${listboxId}-${optionIndex}`,
1926
+ className: `sia-select__option${selected ? " is-selected" : ""}${optionIndex === activeIndex ? " is-active" : ""}${option.disabled ? " is-disabled" : ""}`,
1927
+ role: "option",
1928
+ "aria-selected": selected,
1929
+ "aria-disabled": option.disabled || void 0,
1930
+ style: virtualEnabled ? { position: "absolute", top: optionIndex * optionHeight, right: 0, left: 0, height: optionHeight } : void 0,
1931
+ onMouseEnter: () => !option.disabled && setActiveIndex(optionIndex),
1932
+ onMouseDown: (event) => event.preventDefault(),
1933
+ onClick: () => selectOption(option),
1934
+ children: [
1935
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: option.label }),
1936
+ selected ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "check", size: 15 }) : null
1937
+ ]
1938
+ },
1939
+ `${typeof option.value}-${option.value}`
1940
+ );
1941
+ }
1942
+ const visibleTags = selectedOptions.slice(0, Math.max(0, maxTagCount));
1943
+ const hiddenTagCount = selectedOptions.length - visibleTags.length;
1944
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { ref: rootRef, className: `sia-select sia-select--${size} sia-select--${status}${open ? " is-open" : ""}${disabled ? " is-disabled" : ""}${multiple ? " sia-select--multiple" : ""} ${className}`.trim(), children: [
1945
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1946
+ "button",
1947
+ {
1948
+ ...props,
1949
+ ref: forwardedRef,
1950
+ className: "sia-select__trigger",
1951
+ id: selectId,
1952
+ type: "button",
1953
+ role: "combobox",
1954
+ "aria-controls": listboxId,
1955
+ "aria-expanded": open,
1956
+ "aria-haspopup": "listbox",
1957
+ "aria-activedescendant": open && activeIndex >= 0 ? `${listboxId}-${activeIndex}` : void 0,
1958
+ "aria-invalid": status === "error" || void 0,
1959
+ disabled,
1960
+ onClick: () => open ? closeDropdown() : openDropdown(),
1961
+ onKeyDown: handleTriggerKeyDown,
1962
+ children: [
1963
+ multiple && hasValue ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "sia-select__tags", children: [
1964
+ visibleTags.map((option) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "sia-select__tag", children: option.label }, `${typeof option.value}-${option.value}`)),
1965
+ hiddenTagCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "sia-select__tag sia-select__tag--rest", children: [
1966
+ "+",
1967
+ hiddenTagCount
1968
+ ] }) : null
1969
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: `sia-select__value${hasValue ? "" : " is-placeholder"}`, children: selectedOptions[0]?.label ?? placeholder }),
1970
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "sia-select__spinner", "aria-hidden": "true" }) : null,
1971
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { className: "sia-select__arrow", name: "chevron-down", size: 15 })
1972
+ ]
1973
+ }
1974
+ ),
1975
+ allowClear && hasValue && !disabled && !loading ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("button", { className: "sia-select__clear", type: "button", "aria-label": "\u6E05\u7A7A\u9009\u62E9", onClick: clearValue, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "circle-close", variant: "filled", size: 15 }) }) : null,
1976
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(PopupPortal, { ref: popupRef, anchorRef: rootRef, open, className: "sia-select__dropdown", children: [
1977
+ showSearch || allowInput ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("label", { className: "sia-select__search", children: [
1978
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "search", size: 15 }),
1979
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("input", { ref: searchRef, value: query, maxLength: inputMaxLength, onChange: handleSearchChange, onKeyDown: (event) => handleInteractionKeyDown(event, true), placeholder: searchPlaceholder, "aria-label": searchPlaceholder })
1980
+ ] }) : null,
1981
+ canSubmitInput ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("button", { type: "button", className: "sia-select__input-option", onMouseDown: (event) => event.preventDefault(), onClick: submitInputValue, children: [
1982
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { name: "plus", size: 14 }),
1983
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { children: [
1984
+ "\u4F7F\u7528\u201C",
1985
+ inputValue,
1986
+ "\u201D"
1987
+ ] })
1988
+ ] }) : null,
1989
+ multiple && showSelectAll ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "sia-select__actions", children: [
1990
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("button", { type: "button", disabled: allFilteredSelected || enabledFilteredOptions.length === 0, onClick: selectAllFiltered, children: "\u5168\u9009" }),
1991
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("button", { type: "button", disabled: !hasValue, onClick: clearSelection, children: "\u6E05\u9664" }),
1992
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { children: [
1993
+ selectedValues.length,
1994
+ " \u9879\u5DF2\u9009"
1995
+ ] })
1996
+ ] }) : null,
1997
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1998
+ "div",
1999
+ {
2000
+ ref: listRef,
2001
+ id: listboxId,
2002
+ className: "sia-select__list",
2003
+ role: "listbox",
2004
+ "aria-labelledby": selectId,
2005
+ "aria-multiselectable": multiple || void 0,
2006
+ style: { maxHeight: listHeight },
2007
+ onScroll: handleListScroll,
2008
+ children: filteredOptions.length > 0 ? virtualEnabled ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "sia-select__virtual-space", style: { height: filteredOptions.length * optionHeight }, children: renderedOptions.map(renderOption) }) : renderedOptions.map(renderOption) : canSubmitInput ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "sia-select__empty", children: notFoundContent })
2009
+ }
2010
+ )
2011
+ ] })
2012
+ ] });
2013
+ });
2014
+
2015
+ // src/components/SelectDateRange.tsx
2016
+ var import_jsx_runtime7 = require("react/jsx-runtime");
2017
+ function SelectDateRange({
2018
+ options,
2019
+ value,
2020
+ defaultValue,
2021
+ selectPlaceholder = "\u8BF7\u9009\u62E9\u7C7B\u578B",
2022
+ selectWidth = 180,
2023
+ rangePlaceholder = ["\u5F00\u59CB\u65E5\u671F", "\u7ED3\u675F\u65E5\u671F"],
2024
+ selectAriaLabel = "\u9009\u62E9\u7C7B\u578B",
2025
+ rangeAriaLabel = "\u65E5\u671F\u8303\u56F4",
2026
+ presets,
2027
+ size = "medium",
2028
+ status = "default",
2029
+ disabled = false,
2030
+ onChange,
2031
+ className = "",
2032
+ style,
2033
+ ...props
2034
+ }) {
2035
+ const initialValue = defaultValue ?? { select: options[0]?.value ?? "", range: ["", ""] };
2036
+ const [currentValue, setCurrentValue] = useControllableState({ value, defaultValue: initialValue, onChange });
2037
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: `sia-select-date-range sia-select-date-range--${size} ${className}`.trim(), role: "group", "aria-label": `${selectAriaLabel}\u4E0E${rangeAriaLabel}`, ...props, style: { ...style, "--sia-select-date-range-select-width": typeof selectWidth === "number" ? `${selectWidth}px` : selectWidth }, children: [
2038
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2039
+ Select,
2040
+ {
2041
+ className: "sia-select-date-range__select",
2042
+ "aria-label": selectAriaLabel,
2043
+ options,
2044
+ value: currentValue.select,
2045
+ placeholder: selectPlaceholder,
2046
+ size,
2047
+ status,
2048
+ disabled,
2049
+ onChange: (nextSelect) => {
2050
+ if (nextSelect === null || Array.isArray(nextSelect)) return;
2051
+ setCurrentValue({ ...currentValue, select: nextSelect });
2052
+ }
2053
+ }
2054
+ ),
2055
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2056
+ DatePicker.RangePicker,
2057
+ {
2058
+ className: "sia-select-date-range__picker",
2059
+ "aria-label": rangeAriaLabel,
2060
+ value: currentValue.range,
2061
+ placeholder: rangePlaceholder,
2062
+ presets,
2063
+ size,
2064
+ status,
2065
+ disabled,
2066
+ onChange: (nextRange) => setCurrentValue({ ...currentValue, range: nextRange })
2067
+ }
2068
+ )
2069
+ ] });
2070
+ }
2071
+ // Annotate the CommonJS export names for ESM import in node:
2072
+ 0 && (module.exports = {
2073
+ SelectDateRange
2074
+ });