@hamster-note/components 0.3.0 → 0.4.0-beta.1

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 (74) hide show
  1. package/README.md +28 -0
  2. package/dist/Icon-BuZRZcjv.js +1143 -0
  3. package/dist/button-mmBNcoG1.js +45 -0
  4. package/dist/button.js +1 -1
  5. package/dist/components/button/Button.d.ts +3 -2
  6. package/dist/components/icon/icon-names.d.ts +1 -15
  7. package/dist/components/theme/theme.d.ts +1 -87
  8. package/dist/{confirm-Faavk_5T.js → confirm-DKgVMWkR.js} +2 -2
  9. package/dist/confirm.js +1 -1
  10. package/dist/{dialog-BYlEUJ_j.js → dialog-DI_yumUn.js} +1 -1
  11. package/dist/dialog.js +1 -1
  12. package/dist/{drawer-BV9RFSna.js → drawer-Cpe3Yf3K.js} +1 -1
  13. package/dist/drawer.js +1 -1
  14. package/dist/hamster-note-components.css +1 -1
  15. package/dist/{icon-BFAcjkFI.js → icon-u7jiIYal.js} +1 -1
  16. package/dist/icon.js +2 -2
  17. package/dist/index.js +7 -7
  18. package/dist/shared/icon-names.d.ts +15 -0
  19. package/dist/shared/icons.d.ts +1216 -0
  20. package/dist/shared/theme.d.ts +87 -0
  21. package/dist/shared/tokens.d.ts +67 -0
  22. package/dist/test/shared-data.test.d.ts +1 -0
  23. package/dist/{theme-CVNLJL1G.js → theme-DNK-xd31.js} +1 -1
  24. package/dist/theme.js +1 -1
  25. package/dist-native/badge.d.ts +10 -0
  26. package/dist-native/badge.js +7 -0
  27. package/dist-native/button.d.ts +16 -0
  28. package/dist-native/button.js +7 -0
  29. package/dist-native/chunk-6RD26X3W.js +78 -0
  30. package/dist-native/chunk-6SR5ZHDD.js +13 -0
  31. package/dist-native/chunk-6VYUVVCP.js +27 -0
  32. package/dist-native/chunk-7LN4VNRB.js +124 -0
  33. package/dist-native/chunk-CF76TWL4.js +85 -0
  34. package/dist-native/chunk-ENTYQ6M4.js +256 -0
  35. package/dist-native/chunk-GSG6CXIE.js +1688 -0
  36. package/dist-native/chunk-JHT74YG3.js +186 -0
  37. package/dist-native/chunk-KPDK62A5.js +106 -0
  38. package/dist-native/chunk-PLFX4RVR.js +134 -0
  39. package/dist-native/chunk-QUGLAOXA.js +49 -0
  40. package/dist-native/chunk-S2EUKEYI.js +35 -0
  41. package/dist-native/chunk-VTE5RPMO.js +38 -0
  42. package/dist-native/chunk-YJ4H3ZBQ.js +145 -0
  43. package/dist-native/chunk-ZTQATW6Y.js +127 -0
  44. package/dist-native/confirm.d.ts +24 -0
  45. package/dist-native/confirm.js +14 -0
  46. package/dist-native/dialog.d.ts +8 -0
  47. package/dist-native/dialog.js +10 -0
  48. package/dist-native/drawer.d.ts +13 -0
  49. package/dist-native/drawer.js +10 -0
  50. package/dist-native/focus-C0k0lLui.d.ts +9 -0
  51. package/dist-native/icon.d.ts +28 -0
  52. package/dist-native/icon.js +9 -0
  53. package/dist-native/index.d.ts +20 -0
  54. package/dist-native/index.js +84 -0
  55. package/dist-native/kbd.d.ts +9 -0
  56. package/dist-native/kbd.js +7 -0
  57. package/dist-native/loading.d.ts +19 -0
  58. package/dist-native/loading.js +11 -0
  59. package/dist-native/menu.d.ts +31 -0
  60. package/dist-native/menu.js +17 -0
  61. package/dist-native/modal-panel-BOpp1oRC.d.ts +23 -0
  62. package/dist-native/note-card.d.ts +13 -0
  63. package/dist-native/note-card.js +7 -0
  64. package/dist-native/popover.d.ts +34 -0
  65. package/dist-native/popover.js +8 -0
  66. package/dist-native/position-CkPoZ5AD.d.ts +3 -0
  67. package/dist-native/text-field.d.ts +13 -0
  68. package/dist-native/text-field.js +7 -0
  69. package/dist-native/theme.d.ts +120 -0
  70. package/dist-native/theme.js +16 -0
  71. package/dist-native/tokens-DHoNd-yT.d.ts +41 -0
  72. package/package.json +137 -5
  73. package/dist/Icon-BBSPOBTI.js +0 -531
  74. package/dist/button-DjMS8bKj.js +0 -20
@@ -1,531 +0,0 @@
1
- import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
2
- //#region src/components/icon/Icon.tsx
3
- var r = {
4
- file: /* @__PURE__ */ n(e, { children: [
5
- /* @__PURE__ */ t("path", { d: "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z" }),
6
- /* @__PURE__ */ t("path", { d: "M14 3v5h5" }),
7
- /* @__PURE__ */ t("path", { d: "M9 13h6" }),
8
- /* @__PURE__ */ t("path", { d: "M9 17h6" })
9
- ] }),
10
- save: /* @__PURE__ */ n(e, { children: [
11
- /* @__PURE__ */ t("path", { d: "M5 4h11l3 3v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z" }),
12
- /* @__PURE__ */ t("path", { d: "M8 4v5h7V4" }),
13
- /* @__PURE__ */ t("path", { d: "M8 14h8v7H8z" })
14
- ] }),
15
- study: /* @__PURE__ */ n(e, { children: [
16
- /* @__PURE__ */ t("path", { d: "M12 6c-1.5-1.2-3.5-2-6-2H3v13h3c2.5 0 4.5.8 6 2 1.5-1.2 3.5-2 6-2h3V4h-3c-2.5 0-4.5.8-6 2z" }),
17
- /* @__PURE__ */ t("path", { d: "M12 6v13" }),
18
- /* @__PURE__ */ t("path", { d: "M5.5 8.5h3" }),
19
- /* @__PURE__ */ t("path", { d: "M5.5 11.5h3" }),
20
- /* @__PURE__ */ t("path", { d: "M15.5 8.5h3" }),
21
- /* @__PURE__ */ t("path", { d: "M15.5 11.5h3" })
22
- ] }),
23
- switch: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("rect", {
24
- height: "12",
25
- rx: "6",
26
- width: "18",
27
- x: "3",
28
- y: "6"
29
- }), /* @__PURE__ */ t("circle", {
30
- cx: "15",
31
- cy: "12",
32
- r: "3.2"
33
- })] }),
34
- mouse: /* @__PURE__ */ n(e, { children: [
35
- /* @__PURE__ */ t("rect", {
36
- height: "16",
37
- rx: "8",
38
- width: "11",
39
- x: "6.5",
40
- y: "4"
41
- }),
42
- /* @__PURE__ */ t("path", { d: "M12 7v4" }),
43
- /* @__PURE__ */ t("path", { d: "M12 7a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0V8a1 1 0 0 1 1-1z" })
44
- ] }),
45
- line: /* @__PURE__ */ n(e, { children: [
46
- /* @__PURE__ */ t("path", { d: "M5 19L19 5" }),
47
- /* @__PURE__ */ t("circle", {
48
- cx: "5",
49
- cy: "19",
50
- r: "1.2"
51
- }),
52
- /* @__PURE__ */ t("circle", {
53
- cx: "19",
54
- cy: "5",
55
- r: "1.2"
56
- })
57
- ] }),
58
- curve: /* @__PURE__ */ n(e, { children: [
59
- /* @__PURE__ */ t("path", { d: "M4 18C4 12 9 12 12 12S20 12 20 6" }),
60
- /* @__PURE__ */ t("circle", {
61
- cx: "4",
62
- cy: "18",
63
- r: "1.2"
64
- }),
65
- /* @__PURE__ */ t("circle", {
66
- cx: "20",
67
- cy: "6",
68
- r: "1.2"
69
- })
70
- ] }),
71
- polygon: /* @__PURE__ */ n(e, { children: [
72
- /* @__PURE__ */ t("path", { d: "M12 4l7 5-2.5 9h-9L5 9z" }),
73
- /* @__PURE__ */ t("circle", {
74
- cx: "12",
75
- cy: "4",
76
- r: "1.1"
77
- }),
78
- /* @__PURE__ */ t("circle", {
79
- cx: "19",
80
- cy: "9",
81
- r: "1.1"
82
- }),
83
- /* @__PURE__ */ t("circle", {
84
- cx: "16.5",
85
- cy: "18",
86
- r: "1.1"
87
- }),
88
- /* @__PURE__ */ t("circle", {
89
- cx: "7.5",
90
- cy: "18",
91
- r: "1.1"
92
- }),
93
- /* @__PURE__ */ t("circle", {
94
- cx: "5",
95
- cy: "9",
96
- r: "1.1"
97
- })
98
- ] }),
99
- lasso: /* @__PURE__ */ n(e, { children: [
100
- /* @__PURE__ */ t("path", { d: "M9 6.5c3.5-2 8.5-.5 9 2.5s-2 6.5-6 6.5-7.5-2-7-5.5 2-3 4-3.5z" }),
101
- /* @__PURE__ */ t("path", { d: "M8 15.5c.5 2.5-.5 4.5-3.5 4.5" }),
102
- /* @__PURE__ */ t("circle", {
103
- cx: "4.5",
104
- cy: "20",
105
- r: "1.2"
106
- })
107
- ] }),
108
- rectangle: /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("rect", {
109
- height: "12",
110
- rx: "1.5",
111
- width: "16",
112
- x: "4",
113
- y: "6"
114
- }) }),
115
- ellipse: /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("ellipse", {
116
- cx: "12",
117
- cy: "12",
118
- rx: "8",
119
- ry: "6"
120
- }) }),
121
- pen: /* @__PURE__ */ n(e, { children: [
122
- /* @__PURE__ */ t("path", { d: "M4 20l3.5-1 11-11-2.5-2.5-11 11-1 3.5z" }),
123
- /* @__PURE__ */ t("path", { d: "M14.5 6.5l3 3" }),
124
- /* @__PURE__ */ t("path", { d: "M4 20l1-3.5" })
125
- ] }),
126
- eraser: /* @__PURE__ */ n(e, { children: [
127
- /* @__PURE__ */ t("path", { d: "M15 4l5 5-9 9H6l-2-2 9-9z" }),
128
- /* @__PURE__ */ t("path", { d: "M9 10l5 5" }),
129
- /* @__PURE__ */ t("path", { d: "M13 20h7" })
130
- ] }),
131
- magnet: /* @__PURE__ */ n(e, { children: [
132
- /* @__PURE__ */ t("path", { d: "M4 10v3a6 6 0 0 0 12 0V5a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v8a1 1 0 0 1-2 0V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1z" }),
133
- /* @__PURE__ */ t("path", { d: "M11 4h4" }),
134
- /* @__PURE__ */ t("path", { d: "M4 10h4" })
135
- ] }),
136
- locate: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z" }), /* @__PURE__ */ t("circle", {
137
- cx: "12",
138
- cy: "10",
139
- r: "2.5"
140
- })] }),
141
- delete: /* @__PURE__ */ n(e, { children: [
142
- /* @__PURE__ */ t("path", { d: "M4 7h16" }),
143
- /* @__PURE__ */ t("path", { d: "M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2" }),
144
- /* @__PURE__ */ t("path", { d: "M6 7l1 13a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1l1-13" }),
145
- /* @__PURE__ */ t("path", { d: "M10 11v6" }),
146
- /* @__PURE__ */ t("path", { d: "M14 11v6" })
147
- ] }),
148
- add: /* @__PURE__ */ n(e, { children: [
149
- /* @__PURE__ */ t("circle", {
150
- cx: "12",
151
- cy: "12",
152
- r: "9"
153
- }),
154
- /* @__PURE__ */ t("path", { d: "M12 8v8" }),
155
- /* @__PURE__ */ t("path", { d: "M8 12h8" })
156
- ] }),
157
- copy: /* @__PURE__ */ n(e, { children: [
158
- /* @__PURE__ */ t("rect", {
159
- height: "13",
160
- rx: "1.5",
161
- width: "10",
162
- x: "8",
163
- y: "8"
164
- }),
165
- /* @__PURE__ */ t("path", { d: "M11 8V5a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1h-3" }),
166
- /* @__PURE__ */ t("path", { d: "M11 12h4" }),
167
- /* @__PURE__ */ t("path", { d: "M11 15h4" })
168
- ] }),
169
- paste: /* @__PURE__ */ n(e, { children: [
170
- /* @__PURE__ */ t("rect", {
171
- height: "15",
172
- rx: "1.5",
173
- width: "12",
174
- x: "6",
175
- y: "5"
176
- }),
177
- /* @__PURE__ */ t("path", { d: "M9 5V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1" }),
178
- /* @__PURE__ */ t("path", { d: "M11 11h2" }),
179
- /* @__PURE__ */ t("path", { d: "M11 14h2" })
180
- ] }),
181
- info: /* @__PURE__ */ n(e, { children: [
182
- /* @__PURE__ */ t("circle", {
183
- cx: "12",
184
- cy: "12",
185
- r: "9"
186
- }),
187
- /* @__PURE__ */ t("path", { d: "M12 11v5" }),
188
- /* @__PURE__ */ t("circle", {
189
- cx: "12",
190
- cy: "8",
191
- r: "0.5",
192
- fill: "currentColor",
193
- stroke: "none"
194
- })
195
- ] }),
196
- touch: /* @__PURE__ */ n(e, { children: [
197
- /* @__PURE__ */ t("path", { d: "M9 11V5.5a1.5 1.5 0 0 1 3 0V11" }),
198
- /* @__PURE__ */ t("path", { d: "M12 11v-.5a1.5 1.5 0 0 1 3 0V12" }),
199
- /* @__PURE__ */ t("path", { d: "M15 12v-.5a1.5 1.5 0 0 1 3 0v5.5a5 5 0 0 1-5 5h-2a5 5 0 0 1-4-2l-3-4a1.5 1.5 0 0 1 2.4-1.8L9 16V9a1.5 1.5 0 0 1 0 0v2" }),
200
- /* @__PURE__ */ t("path", { d: "M6 4.5a3 3 0 0 1 1-3" })
201
- ] }),
202
- edit: /* @__PURE__ */ n(e, { children: [
203
- /* @__PURE__ */ t("path", { d: "M14 5l5 5L8 21H3v-5z" }),
204
- /* @__PURE__ */ t("path", { d: "M12 7l5 5" }),
205
- /* @__PURE__ */ t("path", { d: "M3 21h18" })
206
- ] }),
207
- comment: /* @__PURE__ */ n(e, { children: [
208
- /* @__PURE__ */ t("path", { d: "M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z" }),
209
- /* @__PURE__ */ t("path", { d: "M8 9h8" }),
210
- /* @__PURE__ */ t("path", { d: "M8 13h5" })
211
- ] }),
212
- keyboard: /* @__PURE__ */ n(e, { children: [
213
- /* @__PURE__ */ t("rect", {
214
- height: "12",
215
- rx: "1.5",
216
- width: "20",
217
- x: "2",
218
- y: "6"
219
- }),
220
- /* @__PURE__ */ t("path", { d: "M6 10h0" }),
221
- /* @__PURE__ */ t("path", { d: "M10 10h0" }),
222
- /* @__PURE__ */ t("path", { d: "M14 10h0" }),
223
- /* @__PURE__ */ t("path", { d: "M18 10h0" }),
224
- /* @__PURE__ */ t("path", { d: "M6 14h12" })
225
- ] }),
226
- type: /* @__PURE__ */ n(e, { children: [
227
- /* @__PURE__ */ t("path", { d: "M5 6h14" }),
228
- /* @__PURE__ */ t("path", { d: "M12 6v13" }),
229
- /* @__PURE__ */ t("path", { d: "M9 19h6" }),
230
- /* @__PURE__ */ t("path", { d: "M16 13l1.5 4 .3.8a2 2 0 0 0 1.7 1.2c1.2 0 2-1 2-2.2 0-.8-.4-1.6-1-2.4L18 12" })
231
- ] }),
232
- handle: /* @__PURE__ */ n(e, { children: [
233
- /* @__PURE__ */ t("circle", {
234
- cx: "9",
235
- cy: "6",
236
- r: "1.4",
237
- fill: "currentColor",
238
- stroke: "none"
239
- }),
240
- /* @__PURE__ */ t("circle", {
241
- cx: "15",
242
- cy: "6",
243
- r: "1.4",
244
- fill: "currentColor",
245
- stroke: "none"
246
- }),
247
- /* @__PURE__ */ t("circle", {
248
- cx: "9",
249
- cy: "12",
250
- r: "1.4",
251
- fill: "currentColor",
252
- stroke: "none"
253
- }),
254
- /* @__PURE__ */ t("circle", {
255
- cx: "15",
256
- cy: "12",
257
- r: "1.4",
258
- fill: "currentColor",
259
- stroke: "none"
260
- }),
261
- /* @__PURE__ */ t("circle", {
262
- cx: "9",
263
- cy: "18",
264
- r: "1.4",
265
- fill: "currentColor",
266
- stroke: "none"
267
- }),
268
- /* @__PURE__ */ t("circle", {
269
- cx: "15",
270
- cy: "18",
271
- r: "1.4",
272
- fill: "currentColor",
273
- stroke: "none"
274
- })
275
- ] }),
276
- card: /* @__PURE__ */ n(e, { children: [
277
- /* @__PURE__ */ t("rect", {
278
- height: "14",
279
- rx: "2",
280
- width: "18",
281
- x: "3",
282
- y: "5"
283
- }),
284
- /* @__PURE__ */ t("path", { d: "M3 10h18" }),
285
- /* @__PURE__ */ t("path", { d: "M7 14h6" }),
286
- /* @__PURE__ */ t("path", { d: "M7 17h4" })
287
- ] }),
288
- minimap: /* @__PURE__ */ n(e, { children: [
289
- /* @__PURE__ */ t("rect", {
290
- height: "18",
291
- rx: "2",
292
- width: "18",
293
- x: "3",
294
- y: "3"
295
- }),
296
- /* @__PURE__ */ t("rect", {
297
- height: "7",
298
- rx: "1",
299
- width: "9",
300
- x: "7",
301
- y: "7"
302
- }),
303
- /* @__PURE__ */ t("path", { d: "M7 17h6" })
304
- ] }),
305
- "font-size": /* @__PURE__ */ n(e, { children: [
306
- /* @__PURE__ */ t("path", { d: "M5 16L9 7l4 9" }),
307
- /* @__PURE__ */ t("path", { d: "M6.5 13h5" }),
308
- /* @__PURE__ */ t("path", { d: "M15 18l2.5-5 2.5 5" }),
309
- /* @__PURE__ */ t("path", { d: "M16 16.5h3" })
310
- ] }),
311
- drag: /* @__PURE__ */ n(e, { children: [
312
- /* @__PURE__ */ t("path", { d: "M18 11V6a2 2 0 0 0-4 0v5" }),
313
- /* @__PURE__ */ t("path", { d: "M14 10V4a2 2 0 0 0-4 0v6" }),
314
- /* @__PURE__ */ t("path", { d: "M10 10.5V6a2 2 0 0 0-4 0v8" }),
315
- /* @__PURE__ */ t("path", { d: "M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15" })
316
- ] }),
317
- crop: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M6 2v14a2 2 0 0 0 2 2h14" }), /* @__PURE__ */ t("path", { d: "M18 22V8a2 2 0 0 0-2-2H2" })] }),
318
- search: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("circle", {
319
- cx: "11",
320
- cy: "11",
321
- r: "7"
322
- }), /* @__PURE__ */ t("path", { d: "M21 21l-4.3-4.3" })] }),
323
- close: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M6 6l12 12" }), /* @__PURE__ */ t("path", { d: "M18 6L6 18" })] }),
324
- check: /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M5 12.5l4.5 4.5L19 7.5" }) }),
325
- "chevron-down": /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M6 9l6 6 6-6" }) }),
326
- "chevron-up": /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M6 15l6-6 6 6" }) }),
327
- "chevron-left": /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M15 6l-6 6 6 6" }) }),
328
- "chevron-right": /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M9 6l6 6-6 6" }) }),
329
- "arrow-up": /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M12 19V5" }), /* @__PURE__ */ t("path", { d: "M6 11l6-6 6 6" })] }),
330
- "arrow-down": /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M12 5v14" }), /* @__PURE__ */ t("path", { d: "M6 13l6 6 6-6" })] }),
331
- "arrow-left": /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M19 12H5" }), /* @__PURE__ */ t("path", { d: "M11 6l-6 6 6 6" })] }),
332
- "arrow-right": /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M5 12h14" }), /* @__PURE__ */ t("path", { d: "M13 6l6 6-6 6" })] }),
333
- settings: /* @__PURE__ */ n(e, { children: [
334
- /* @__PURE__ */ t("circle", {
335
- cx: "12",
336
- cy: "12",
337
- r: "3"
338
- }),
339
- /* @__PURE__ */ t("path", { d: "M12 2.5v3" }),
340
- /* @__PURE__ */ t("path", { d: "M12 18.5v3" }),
341
- /* @__PURE__ */ t("path", { d: "M21.5 12h-3" }),
342
- /* @__PURE__ */ t("path", { d: "M5.5 12h-3" }),
343
- /* @__PURE__ */ t("path", { d: "M18.7 5.3l-2.1 2.1" }),
344
- /* @__PURE__ */ t("path", { d: "M7.4 16.6l-2.1 2.1" }),
345
- /* @__PURE__ */ t("path", { d: "M18.7 18.7l-2.1-2.1" }),
346
- /* @__PURE__ */ t("path", { d: "M7.4 7.4L5.3 5.3" })
347
- ] }),
348
- user: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("circle", {
349
- cx: "12",
350
- cy: "8",
351
- r: "4"
352
- }), /* @__PURE__ */ t("path", { d: "M4 20c0-4 4-6 8-6s8 2 8 6" })] }),
353
- home: /* @__PURE__ */ n(e, { children: [
354
- /* @__PURE__ */ t("path", { d: "M4 11l8-7 8 7" }),
355
- /* @__PURE__ */ t("path", { d: "M6 10v9a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-9" }),
356
- /* @__PURE__ */ t("path", { d: "M10 20v-5h4v5" })
357
- ] }),
358
- star: /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 17.9l-5.2 2.6 1-5.8L3.5 9.7l5.9-.9z" }) }),
359
- bookmark: /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M6 4h12a1 1 0 0 1 1 1v15l-7-4-7 4V5a1 1 0 0 1 1-1z" }) }),
360
- link: /* @__PURE__ */ n(e, { children: [
361
- /* @__PURE__ */ t("path", { d: "M9 15l6-6" }),
362
- /* @__PURE__ */ t("path", { d: "M10.5 6.5l1-1a3.5 3.5 0 0 1 5 5l-1 1" }),
363
- /* @__PURE__ */ t("path", { d: "M13.5 17.5l-1 1a3.5 3.5 0 0 1-5-5l1-1" })
364
- ] }),
365
- image: /* @__PURE__ */ n(e, { children: [
366
- /* @__PURE__ */ t("rect", {
367
- height: "16",
368
- rx: "1.5",
369
- width: "18",
370
- x: "3",
371
- y: "4"
372
- }),
373
- /* @__PURE__ */ t("circle", {
374
- cx: "8.5",
375
- cy: "9.5",
376
- r: "1.5"
377
- }),
378
- /* @__PURE__ */ t("path", { d: "M4 17l5-5 4 4 3-3 4 4" })
379
- ] }),
380
- calendar: /* @__PURE__ */ n(e, { children: [
381
- /* @__PURE__ */ t("rect", {
382
- height: "16",
383
- rx: "1.5",
384
- width: "18",
385
- x: "3",
386
- y: "5"
387
- }),
388
- /* @__PURE__ */ t("path", { d: "M3 9h18" }),
389
- /* @__PURE__ */ t("path", { d: "M8 3v4" }),
390
- /* @__PURE__ */ t("path", { d: "M16 3v4" }),
391
- /* @__PURE__ */ t("path", { d: "M7 13h2" }),
392
- /* @__PURE__ */ t("path", { d: "M11 13h2" }),
393
- /* @__PURE__ */ t("path", { d: "M15 13h2" })
394
- ] }),
395
- clock: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("circle", {
396
- cx: "12",
397
- cy: "12",
398
- r: "9"
399
- }), /* @__PURE__ */ t("path", { d: "M12 7v5l3.5 2" })] }),
400
- bell: /* @__PURE__ */ n(e, { children: [
401
- /* @__PURE__ */ t("path", { d: "M6 17h12l-1.2-2V11a4.8 4.8 0 0 0-9.6 0v4z" }),
402
- /* @__PURE__ */ t("path", { d: "M10 17a2 2 0 0 0 4 0" }),
403
- /* @__PURE__ */ t("path", { d: "M12 5v1.5" })
404
- ] }),
405
- download: /* @__PURE__ */ n(e, { children: [
406
- /* @__PURE__ */ t("path", { d: "M12 4v10" }),
407
- /* @__PURE__ */ t("path", { d: "M8 10l4 4 4-4" }),
408
- /* @__PURE__ */ t("path", { d: "M4 19h16" })
409
- ] }),
410
- upload: /* @__PURE__ */ n(e, { children: [
411
- /* @__PURE__ */ t("path", { d: "M12 16V6" }),
412
- /* @__PURE__ */ t("path", { d: "M8 10l4-4 4 4" }),
413
- /* @__PURE__ */ t("path", { d: "M4 19h16" })
414
- ] }),
415
- share: /* @__PURE__ */ n(e, { children: [
416
- /* @__PURE__ */ t("circle", {
417
- cx: "6",
418
- cy: "12",
419
- r: "2.5"
420
- }),
421
- /* @__PURE__ */ t("circle", {
422
- cx: "18",
423
- cy: "6",
424
- r: "2.5"
425
- }),
426
- /* @__PURE__ */ t("circle", {
427
- cx: "18",
428
- cy: "18",
429
- r: "2.5"
430
- }),
431
- /* @__PURE__ */ t("path", { d: "M8.2 10.8l7.6-3.6" }),
432
- /* @__PURE__ */ t("path", { d: "M8.2 13.2l7.6 3.6" })
433
- ] }),
434
- undo: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M9 7L4 12l5 5" }), /* @__PURE__ */ t("path", { d: "M4 12h11a5 5 0 0 1 0 10h-3" })] }),
435
- redo: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M15 7l5 5-5 5" }), /* @__PURE__ */ t("path", { d: "M20 12H9a5 5 0 0 0 0 10h3" })] }),
436
- "zoom-in": /* @__PURE__ */ n(e, { children: [
437
- /* @__PURE__ */ t("circle", {
438
- cx: "11",
439
- cy: "11",
440
- r: "7"
441
- }),
442
- /* @__PURE__ */ t("path", { d: "M21 21l-4.3-4.3" }),
443
- /* @__PURE__ */ t("path", { d: "M11 8v6" }),
444
- /* @__PURE__ */ t("path", { d: "M8 11h6" })
445
- ] }),
446
- "zoom-out": /* @__PURE__ */ n(e, { children: [
447
- /* @__PURE__ */ t("circle", {
448
- cx: "11",
449
- cy: "11",
450
- r: "7"
451
- }),
452
- /* @__PURE__ */ t("path", { d: "M21 21l-4.3-4.3" }),
453
- /* @__PURE__ */ t("path", { d: "M8 11h6" })
454
- ] }),
455
- fullscreen: /* @__PURE__ */ n(e, { children: [
456
- /* @__PURE__ */ t("path", { d: "M9 4H4v5" }),
457
- /* @__PURE__ */ t("path", { d: "M15 4h5v5" }),
458
- /* @__PURE__ */ t("path", { d: "M20 15v5h-5" }),
459
- /* @__PURE__ */ t("path", { d: "M9 20H4v-5" })
460
- ] }),
461
- "fullscreen-exit": /* @__PURE__ */ n(e, { children: [
462
- /* @__PURE__ */ t("path", { d: "M4 9h5V4" }),
463
- /* @__PURE__ */ t("path", { d: "M20 9h-5V4" }),
464
- /* @__PURE__ */ t("path", { d: "M15 20v-5h5" }),
465
- /* @__PURE__ */ t("path", { d: "M9 20v-5H4" })
466
- ] }),
467
- menu: /* @__PURE__ */ n(e, { children: [
468
- /* @__PURE__ */ t("path", { d: "M4 7h16" }),
469
- /* @__PURE__ */ t("path", { d: "M4 12h16" }),
470
- /* @__PURE__ */ t("path", { d: "M4 17h16" })
471
- ] }),
472
- more: /* @__PURE__ */ n(e, { children: [
473
- /* @__PURE__ */ t("circle", {
474
- cx: "12",
475
- cy: "5",
476
- r: "1.4",
477
- fill: "currentColor",
478
- stroke: "none"
479
- }),
480
- /* @__PURE__ */ t("circle", {
481
- cx: "12",
482
- cy: "12",
483
- r: "1.4",
484
- fill: "currentColor",
485
- stroke: "none"
486
- }),
487
- /* @__PURE__ */ t("circle", {
488
- cx: "12",
489
- cy: "19",
490
- r: "1.4",
491
- fill: "currentColor",
492
- stroke: "none"
493
- })
494
- ] }),
495
- filter: /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M4 5h16l-6 8v6l-4-2v-4z" }) }),
496
- sort: /* @__PURE__ */ n(e, { children: [
497
- /* @__PURE__ */ t("path", { d: "M8 4v16" }),
498
- /* @__PURE__ */ t("path", { d: "M5 7l3-3 3 3" }),
499
- /* @__PURE__ */ t("path", { d: "M11 17l-3 3-3-3" }),
500
- /* @__PURE__ */ t("path", { d: "M14 8h6" }),
501
- /* @__PURE__ */ t("path", { d: "M14 12h6" }),
502
- /* @__PURE__ */ t("path", { d: "M14 16h6" })
503
- ] })
504
- };
505
- function i({ label: e, name: i, className: a, ...o }) {
506
- return /* @__PURE__ */ n("svg", {
507
- className: [
508
- "hn-icon",
509
- `hn-icon--${i}`,
510
- a
511
- ].filter(Boolean).join(" "),
512
- fill: "none",
513
- focusable: "false",
514
- height: "1em",
515
- stroke: "currentColor",
516
- strokeLinecap: "round",
517
- strokeLinejoin: "round",
518
- strokeWidth: 1.5,
519
- viewBox: "0 0 24 24",
520
- width: "1em",
521
- xmlns: "http://www.w3.org/2000/svg",
522
- ...e === void 0 ? { "aria-hidden": !0 } : {
523
- "aria-label": e,
524
- role: "img"
525
- },
526
- ...o,
527
- children: [/* @__PURE__ */ t("title", { children: e ?? i }), r[i]]
528
- });
529
- }
530
- //#endregion
531
- export { i as t };
@@ -1,20 +0,0 @@
1
- /* empty css */
2
- import { jsx as e } from "react/jsx-runtime";
3
- //#region src/components/button/Button.tsx
4
- function t({ children: t, className: n, ghost: r = !1, size: i = "medium", type: a = "button", variant: o = "secondary", ...s }) {
5
- let c = o === "ghost" ? "secondary" : o, l = r || o === "ghost";
6
- return /* @__PURE__ */ e("button", {
7
- className: [
8
- "hn-button",
9
- `hn-button--${c}`,
10
- l && "hn-button--ghost",
11
- `hn-button--${i}`,
12
- n
13
- ].filter(Boolean).join(" "),
14
- type: a,
15
- ...s,
16
- children: t
17
- });
18
- }
19
- //#endregion
20
- export { t };