@kyro-cms/admin 0.8.0 → 0.9.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.
- package/dist/index.cjs +11960 -11006
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +67 -65
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +563 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +12183 -11238
- package/dist/index.js.map +1 -1
- package/package.json +15 -11
- package/src/components/ActionBar.tsx +27 -14
- package/src/components/Admin.tsx +1 -1
- package/src/components/ApiKeysManager.tsx +5 -5
- package/src/components/AutoForm.tsx +585 -369
- package/src/components/BrandingHub.tsx +7 -4
- package/src/components/CreateView.tsx +2 -0
- package/src/components/DetailView.tsx +71 -56
- package/src/components/DeveloperCenter.tsx +8 -6
- package/src/components/FieldRenderer.tsx +94 -19
- package/src/components/ListView.tsx +33 -20
- package/src/components/MediaGallery.tsx +219 -194
- package/src/components/PluginsManager.tsx +197 -70
- package/src/components/RestPlayground.tsx +7 -7
- package/src/components/SessionsManager.tsx +1 -1
- package/src/components/SettingsPage.tsx +22 -0
- package/src/components/Sidebar.astro +13 -41
- package/src/components/UserManagement.tsx +153 -15
- package/src/components/UserMenu.tsx +30 -4
- package/src/components/VersionHistoryPanel.tsx +112 -119
- package/src/components/WebhookManager.tsx +6 -4
- package/src/components/blocks/ArrayBlock.tsx +6 -23
- package/src/components/blocks/BlockEditModal.tsx +82 -309
- package/src/components/blocks/CardBlock.tsx +35 -0
- package/src/components/blocks/ChildBlocksTree.tsx +57 -31
- package/src/components/blocks/GenericBlock.tsx +44 -0
- package/src/components/blocks/HeadingSubheadingBlock.tsx +32 -0
- package/src/components/blocks/HeroBlock.tsx +5 -14
- package/src/components/blocks/RichTextBlock.tsx +5 -5
- package/src/components/blocks/index.ts +5 -3
- package/src/components/fields/AccordionField.tsx +2 -2
- package/src/components/fields/ArrayField.tsx +1 -1
- package/src/components/fields/ArrayLayout.tsx +120 -29
- package/src/components/fields/BlocksField.tsx +430 -50
- package/src/components/fields/CardField.tsx +73 -0
- package/src/components/fields/CheckboxField.tsx +7 -3
- package/src/components/fields/DateField.tsx +4 -1
- package/src/components/fields/GroupLayout.tsx +2 -2
- package/src/components/fields/HeadingSubheadingField.tsx +43 -0
- package/src/components/fields/ListField.tsx +2 -2
- package/src/components/fields/NumberField.tsx +4 -1
- package/src/components/fields/RelationshipField.tsx +153 -87
- package/src/components/fields/RichTextField.tsx +781 -0
- package/src/components/fields/SecretField.tsx +102 -0
- package/src/components/fields/SelectField.tsx +19 -6
- package/src/components/fields/TabsLayout.tsx +19 -9
- package/src/components/fields/TextField.tsx +4 -1
- package/src/components/fields/UploadField.tsx +122 -56
- package/src/components/fields/extensions/blockComponents.tsx +103 -174
- package/src/components/fields/extensions/blocksStore.ts +8 -1
- package/src/components/fields/index.ts +4 -2
- package/src/components/ui/PageHeader.tsx +5 -5
- package/src/components/ui/SlidePanel.tsx +8 -3
- package/src/components/ui/icons.tsx +109 -109
- package/src/components/users/UserDetail.tsx +79 -16
- package/src/hooks/useAutoFormState.ts +125 -62
- package/src/integration.ts +148 -46
- package/src/kyro-cms.d.ts +7 -2
- package/src/layouts/AuthLayout.astro +14 -2
- package/src/lib/autoform-store.ts +85 -52
- package/src/lib/change-source.ts +9 -0
- package/src/lib/config.ts +104 -8
- package/src/lib/globals.ts +44 -9
- package/src/lib/normalize-upload-fields.ts +41 -0
- package/src/lib/paths.ts +2 -2
- package/src/lib/resolve-field-value.ts +110 -0
- package/src/lib/shim/use-sync-external-store-with-selector.js +30 -0
- package/src/lib/shim/use-sync-external-store.js +1 -0
- package/src/lib/stores/index.ts +1 -0
- package/src/lib/useResourceManager.ts +4 -4
- package/src/lib/vite-shim-plugin.ts +100 -0
- package/src/pages/[collection]/[id].astro +1 -1
- package/src/pages/preview/[collection]/[id].astro +4 -4
- package/src/pages/settings/[slug].astro +2 -2
- package/src/styles/main.css +60 -54
- package/README.md +0 -46
- package/dist/EditorClient-Q23UXR37.cjs +0 -468
- package/dist/EditorClient-Q23UXR37.cjs.map +0 -1
- package/dist/EditorClient-T5PASFNR.js +0 -466
- package/dist/EditorClient-T5PASFNR.js.map +0 -1
- package/dist/chunk-3BGDYKTD.cjs +0 -348
- package/dist/chunk-3BGDYKTD.cjs.map +0 -1
- package/dist/chunk-EEFXLQVT.js +0 -3
- package/dist/chunk-EEFXLQVT.js.map +0 -1
- package/src/components/blocks/ButtonBlock.tsx +0 -64
- package/src/components/blocks/ColumnsBlock.tsx +0 -55
- package/src/components/blocks/DividerBlock.tsx +0 -43
- package/src/components/blocks/LinkBlock.tsx +0 -65
- package/src/components/blocks/VStackBlock.tsx +0 -29
- package/src/components/fields/EditorClient.tsx +0 -535
- package/src/components/fields/PortableTextField.tsx +0 -155
- package/src/components/fields/PortableTextRenderer.tsx +0 -68
package/dist/chunk-3BGDYKTD.cjs
DELETED
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var lu = require('react-icons/lu');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, 'LuActivity', {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return lu.LuActivity; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, 'LuAlignLeft', {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return lu.LuAlignLeft; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, 'LuArchive', {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return lu.LuArchive; }
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, 'LuArrowDown', {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return lu.LuArrowDown; }
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, 'LuArrowRight', {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return lu.LuArrowRight; }
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(exports, 'LuArrowUpRight', {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function () { return lu.LuArrowUpRight; }
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, 'LuBold', {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return lu.LuBold; }
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(exports, 'LuBox', {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function () { return lu.LuBox; }
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, 'LuCheck', {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () { return lu.LuCheck; }
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, 'LuChevronDown', {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () { return lu.LuChevronDown; }
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(exports, 'LuChevronRight', {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function () { return lu.LuChevronRight; }
|
|
50
|
-
});
|
|
51
|
-
Object.defineProperty(exports, 'LuChevronUp', {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function () { return lu.LuChevronUp; }
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(exports, 'LuCircleCheck', {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function () { return lu.LuCircleCheck; }
|
|
58
|
-
});
|
|
59
|
-
Object.defineProperty(exports, 'LuCirclePlay', {
|
|
60
|
-
enumerable: true,
|
|
61
|
-
get: function () { return lu.LuCirclePlay; }
|
|
62
|
-
});
|
|
63
|
-
Object.defineProperty(exports, 'LuClock', {
|
|
64
|
-
enumerable: true,
|
|
65
|
-
get: function () { return lu.LuClock; }
|
|
66
|
-
});
|
|
67
|
-
Object.defineProperty(exports, 'LuCode', {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
get: function () { return lu.LuCode; }
|
|
70
|
-
});
|
|
71
|
-
Object.defineProperty(exports, 'LuCodeXml', {
|
|
72
|
-
enumerable: true,
|
|
73
|
-
get: function () { return lu.LuCodeXml; }
|
|
74
|
-
});
|
|
75
|
-
Object.defineProperty(exports, 'LuColumns3', {
|
|
76
|
-
enumerable: true,
|
|
77
|
-
get: function () { return lu.LuColumns3; }
|
|
78
|
-
});
|
|
79
|
-
Object.defineProperty(exports, 'LuCopy', {
|
|
80
|
-
enumerable: true,
|
|
81
|
-
get: function () { return lu.LuCopy; }
|
|
82
|
-
});
|
|
83
|
-
Object.defineProperty(exports, 'LuCrop', {
|
|
84
|
-
enumerable: true,
|
|
85
|
-
get: function () { return lu.LuCrop; }
|
|
86
|
-
});
|
|
87
|
-
Object.defineProperty(exports, 'LuDatabase', {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: function () { return lu.LuDatabase; }
|
|
90
|
-
});
|
|
91
|
-
Object.defineProperty(exports, 'LuDownload', {
|
|
92
|
-
enumerable: true,
|
|
93
|
-
get: function () { return lu.LuDownload; }
|
|
94
|
-
});
|
|
95
|
-
Object.defineProperty(exports, 'LuEllipsisVertical', {
|
|
96
|
-
enumerable: true,
|
|
97
|
-
get: function () { return lu.LuEllipsisVertical; }
|
|
98
|
-
});
|
|
99
|
-
Object.defineProperty(exports, 'LuExternalLink', {
|
|
100
|
-
enumerable: true,
|
|
101
|
-
get: function () { return lu.LuExternalLink; }
|
|
102
|
-
});
|
|
103
|
-
Object.defineProperty(exports, 'LuEye', {
|
|
104
|
-
enumerable: true,
|
|
105
|
-
get: function () { return lu.LuEye; }
|
|
106
|
-
});
|
|
107
|
-
Object.defineProperty(exports, 'LuEyeOff', {
|
|
108
|
-
enumerable: true,
|
|
109
|
-
get: function () { return lu.LuEyeOff; }
|
|
110
|
-
});
|
|
111
|
-
Object.defineProperty(exports, 'LuFile', {
|
|
112
|
-
enumerable: true,
|
|
113
|
-
get: function () { return lu.LuFile; }
|
|
114
|
-
});
|
|
115
|
-
Object.defineProperty(exports, 'LuFile2', {
|
|
116
|
-
enumerable: true,
|
|
117
|
-
get: function () { return lu.LuFile; }
|
|
118
|
-
});
|
|
119
|
-
Object.defineProperty(exports, 'LuFileText', {
|
|
120
|
-
enumerable: true,
|
|
121
|
-
get: function () { return lu.LuFileText; }
|
|
122
|
-
});
|
|
123
|
-
Object.defineProperty(exports, 'LuFilm', {
|
|
124
|
-
enumerable: true,
|
|
125
|
-
get: function () { return lu.LuFilm; }
|
|
126
|
-
});
|
|
127
|
-
Object.defineProperty(exports, 'LuFolder', {
|
|
128
|
-
enumerable: true,
|
|
129
|
-
get: function () { return lu.LuFolder; }
|
|
130
|
-
});
|
|
131
|
-
Object.defineProperty(exports, 'LuFolderInput', {
|
|
132
|
-
enumerable: true,
|
|
133
|
-
get: function () { return lu.LuFolderInput; }
|
|
134
|
-
});
|
|
135
|
-
Object.defineProperty(exports, 'LuFolderPlus', {
|
|
136
|
-
enumerable: true,
|
|
137
|
-
get: function () { return lu.LuFolderPlus; }
|
|
138
|
-
});
|
|
139
|
-
Object.defineProperty(exports, 'LuGrid3X3', {
|
|
140
|
-
enumerable: true,
|
|
141
|
-
get: function () { return lu.LuGrid3X3; }
|
|
142
|
-
});
|
|
143
|
-
Object.defineProperty(exports, 'LuGripVertical', {
|
|
144
|
-
enumerable: true,
|
|
145
|
-
get: function () { return lu.LuGripVertical; }
|
|
146
|
-
});
|
|
147
|
-
Object.defineProperty(exports, 'LuHeading1', {
|
|
148
|
-
enumerable: true,
|
|
149
|
-
get: function () { return lu.LuHeading1; }
|
|
150
|
-
});
|
|
151
|
-
Object.defineProperty(exports, 'LuHexagon', {
|
|
152
|
-
enumerable: true,
|
|
153
|
-
get: function () { return lu.LuHexagon; }
|
|
154
|
-
});
|
|
155
|
-
Object.defineProperty(exports, 'LuImage', {
|
|
156
|
-
enumerable: true,
|
|
157
|
-
get: function () { return lu.LuImage; }
|
|
158
|
-
});
|
|
159
|
-
Object.defineProperty(exports, 'LuInfo', {
|
|
160
|
-
enumerable: true,
|
|
161
|
-
get: function () { return lu.LuInfo; }
|
|
162
|
-
});
|
|
163
|
-
Object.defineProperty(exports, 'LuItalic', {
|
|
164
|
-
enumerable: true,
|
|
165
|
-
get: function () { return lu.LuItalic; }
|
|
166
|
-
});
|
|
167
|
-
Object.defineProperty(exports, 'LuKey', {
|
|
168
|
-
enumerable: true,
|
|
169
|
-
get: function () { return lu.LuKey; }
|
|
170
|
-
});
|
|
171
|
-
Object.defineProperty(exports, 'LuLayoutDashboard', {
|
|
172
|
-
enumerable: true,
|
|
173
|
-
get: function () { return lu.LuLayoutDashboard; }
|
|
174
|
-
});
|
|
175
|
-
Object.defineProperty(exports, 'LuLink', {
|
|
176
|
-
enumerable: true,
|
|
177
|
-
get: function () { return lu.LuLink; }
|
|
178
|
-
});
|
|
179
|
-
Object.defineProperty(exports, 'LuLink2', {
|
|
180
|
-
enumerable: true,
|
|
181
|
-
get: function () { return lu.LuLink2; }
|
|
182
|
-
});
|
|
183
|
-
Object.defineProperty(exports, 'LuList', {
|
|
184
|
-
enumerable: true,
|
|
185
|
-
get: function () { return lu.LuList; }
|
|
186
|
-
});
|
|
187
|
-
Object.defineProperty(exports, 'LuListOrdered', {
|
|
188
|
-
enumerable: true,
|
|
189
|
-
get: function () { return lu.LuListOrdered; }
|
|
190
|
-
});
|
|
191
|
-
Object.defineProperty(exports, 'LuLoaderCircle', {
|
|
192
|
-
enumerable: true,
|
|
193
|
-
get: function () { return lu.LuLoaderCircle; }
|
|
194
|
-
});
|
|
195
|
-
Object.defineProperty(exports, 'LuLock', {
|
|
196
|
-
enumerable: true,
|
|
197
|
-
get: function () { return lu.LuLock; }
|
|
198
|
-
});
|
|
199
|
-
Object.defineProperty(exports, 'LuLockOpen', {
|
|
200
|
-
enumerable: true,
|
|
201
|
-
get: function () { return lu.LuLockOpen; }
|
|
202
|
-
});
|
|
203
|
-
Object.defineProperty(exports, 'LuLogOut', {
|
|
204
|
-
enumerable: true,
|
|
205
|
-
get: function () { return lu.LuLogOut; }
|
|
206
|
-
});
|
|
207
|
-
Object.defineProperty(exports, 'LuMaximize2', {
|
|
208
|
-
enumerable: true,
|
|
209
|
-
get: function () { return lu.LuMaximize2; }
|
|
210
|
-
});
|
|
211
|
-
Object.defineProperty(exports, 'LuMinus', {
|
|
212
|
-
enumerable: true,
|
|
213
|
-
get: function () { return lu.LuMinus; }
|
|
214
|
-
});
|
|
215
|
-
Object.defineProperty(exports, 'LuMoon', {
|
|
216
|
-
enumerable: true,
|
|
217
|
-
get: function () { return lu.LuMoon; }
|
|
218
|
-
});
|
|
219
|
-
Object.defineProperty(exports, 'LuMousePointerClick', {
|
|
220
|
-
enumerable: true,
|
|
221
|
-
get: function () { return lu.LuMousePointerClick; }
|
|
222
|
-
});
|
|
223
|
-
Object.defineProperty(exports, 'LuMusic', {
|
|
224
|
-
enumerable: true,
|
|
225
|
-
get: function () { return lu.LuMusic; }
|
|
226
|
-
});
|
|
227
|
-
Object.defineProperty(exports, 'LuNetwork', {
|
|
228
|
-
enumerable: true,
|
|
229
|
-
get: function () { return lu.LuNetwork; }
|
|
230
|
-
});
|
|
231
|
-
Object.defineProperty(exports, 'LuPalette', {
|
|
232
|
-
enumerable: true,
|
|
233
|
-
get: function () { return lu.LuPalette; }
|
|
234
|
-
});
|
|
235
|
-
Object.defineProperty(exports, 'LuPause', {
|
|
236
|
-
enumerable: true,
|
|
237
|
-
get: function () { return lu.LuPause; }
|
|
238
|
-
});
|
|
239
|
-
Object.defineProperty(exports, 'LuPlay', {
|
|
240
|
-
enumerable: true,
|
|
241
|
-
get: function () { return lu.LuPlay; }
|
|
242
|
-
});
|
|
243
|
-
Object.defineProperty(exports, 'LuPlus', {
|
|
244
|
-
enumerable: true,
|
|
245
|
-
get: function () { return lu.LuPlus; }
|
|
246
|
-
});
|
|
247
|
-
Object.defineProperty(exports, 'LuRedo', {
|
|
248
|
-
enumerable: true,
|
|
249
|
-
get: function () { return lu.LuRedo; }
|
|
250
|
-
});
|
|
251
|
-
Object.defineProperty(exports, 'LuRefreshCcw', {
|
|
252
|
-
enumerable: true,
|
|
253
|
-
get: function () { return lu.LuRefreshCcw; }
|
|
254
|
-
});
|
|
255
|
-
Object.defineProperty(exports, 'LuRefreshCw', {
|
|
256
|
-
enumerable: true,
|
|
257
|
-
get: function () { return lu.LuRefreshCw; }
|
|
258
|
-
});
|
|
259
|
-
Object.defineProperty(exports, 'LuSave', {
|
|
260
|
-
enumerable: true,
|
|
261
|
-
get: function () { return lu.LuSave; }
|
|
262
|
-
});
|
|
263
|
-
Object.defineProperty(exports, 'LuSearch', {
|
|
264
|
-
enumerable: true,
|
|
265
|
-
get: function () { return lu.LuSearch; }
|
|
266
|
-
});
|
|
267
|
-
Object.defineProperty(exports, 'LuSend', {
|
|
268
|
-
enumerable: true,
|
|
269
|
-
get: function () { return lu.LuSend; }
|
|
270
|
-
});
|
|
271
|
-
Object.defineProperty(exports, 'LuSettings', {
|
|
272
|
-
enumerable: true,
|
|
273
|
-
get: function () { return lu.LuSettings; }
|
|
274
|
-
});
|
|
275
|
-
Object.defineProperty(exports, 'LuShield', {
|
|
276
|
-
enumerable: true,
|
|
277
|
-
get: function () { return lu.LuShield; }
|
|
278
|
-
});
|
|
279
|
-
Object.defineProperty(exports, 'LuShieldAlert', {
|
|
280
|
-
enumerable: true,
|
|
281
|
-
get: function () { return lu.LuShieldAlert; }
|
|
282
|
-
});
|
|
283
|
-
Object.defineProperty(exports, 'LuSparkles', {
|
|
284
|
-
enumerable: true,
|
|
285
|
-
get: function () { return lu.LuSparkles; }
|
|
286
|
-
});
|
|
287
|
-
Object.defineProperty(exports, 'LuStar', {
|
|
288
|
-
enumerable: true,
|
|
289
|
-
get: function () { return lu.LuStar; }
|
|
290
|
-
});
|
|
291
|
-
Object.defineProperty(exports, 'LuStrikethrough', {
|
|
292
|
-
enumerable: true,
|
|
293
|
-
get: function () { return lu.LuStrikethrough; }
|
|
294
|
-
});
|
|
295
|
-
Object.defineProperty(exports, 'LuSun', {
|
|
296
|
-
enumerable: true,
|
|
297
|
-
get: function () { return lu.LuSun; }
|
|
298
|
-
});
|
|
299
|
-
Object.defineProperty(exports, 'LuTag', {
|
|
300
|
-
enumerable: true,
|
|
301
|
-
get: function () { return lu.LuTag; }
|
|
302
|
-
});
|
|
303
|
-
Object.defineProperty(exports, 'LuTerminal', {
|
|
304
|
-
enumerable: true,
|
|
305
|
-
get: function () { return lu.LuTerminal; }
|
|
306
|
-
});
|
|
307
|
-
Object.defineProperty(exports, 'LuTrash2', {
|
|
308
|
-
enumerable: true,
|
|
309
|
-
get: function () { return lu.LuTrash2; }
|
|
310
|
-
});
|
|
311
|
-
Object.defineProperty(exports, 'LuTriangleAlert', {
|
|
312
|
-
enumerable: true,
|
|
313
|
-
get: function () { return lu.LuTriangleAlert; }
|
|
314
|
-
});
|
|
315
|
-
Object.defineProperty(exports, 'LuUnderline', {
|
|
316
|
-
enumerable: true,
|
|
317
|
-
get: function () { return lu.LuUnderline; }
|
|
318
|
-
});
|
|
319
|
-
Object.defineProperty(exports, 'LuUndo', {
|
|
320
|
-
enumerable: true,
|
|
321
|
-
get: function () { return lu.LuUndo; }
|
|
322
|
-
});
|
|
323
|
-
Object.defineProperty(exports, 'LuUserPlus', {
|
|
324
|
-
enumerable: true,
|
|
325
|
-
get: function () { return lu.LuUserPlus; }
|
|
326
|
-
});
|
|
327
|
-
Object.defineProperty(exports, 'LuUsers', {
|
|
328
|
-
enumerable: true,
|
|
329
|
-
get: function () { return lu.LuUsers; }
|
|
330
|
-
});
|
|
331
|
-
Object.defineProperty(exports, 'LuVideo', {
|
|
332
|
-
enumerable: true,
|
|
333
|
-
get: function () { return lu.LuVideo; }
|
|
334
|
-
});
|
|
335
|
-
Object.defineProperty(exports, 'LuWebhook', {
|
|
336
|
-
enumerable: true,
|
|
337
|
-
get: function () { return lu.LuWebhook; }
|
|
338
|
-
});
|
|
339
|
-
Object.defineProperty(exports, 'LuX', {
|
|
340
|
-
enumerable: true,
|
|
341
|
-
get: function () { return lu.LuX; }
|
|
342
|
-
});
|
|
343
|
-
Object.defineProperty(exports, 'LuZap', {
|
|
344
|
-
enumerable: true,
|
|
345
|
-
get: function () { return lu.LuZap; }
|
|
346
|
-
});
|
|
347
|
-
//# sourceMappingURL=out.js.map
|
|
348
|
-
//# sourceMappingURL=chunk-3BGDYKTD.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/ui/icons.tsx"],"names":["LuPencil","LuGrid3X3","LuActivity","LuAlignLeft","LuArchive","LuArrowDown","LuArrowRight","LuArrowUpRight","LuBlocks","LuBox","LuCalendar","LuCheck","LuChevronDown","LuChevronLeft","LuChevronRight","LuChevronUp","LuClock","LuCode","LuColumns3","LuCopy","LuCrop","LuDownload","LuExternalLink","LuEye","LuEyeOff","LuFile","LuGlobe","LuFilm","LuFilter","LuFolder","LuFolderInput","LuFolderPlus","LuGripVertical","LuHeading1","LuImage","LuInfo","LuKey","LuLayoutDashboard","LuLink","LuLink2","LuList","LuListOrdered","LuLock","LuMail","LuMaximize2","LuMenu","LuMinus","LuMonitor","LuMousePointerClick","LuMusic","LuPalette","LuPause","LuPlay","LuPlus","LuRefreshCcw","LuRefreshCw","LuSave","LuSearch","LuSend","LuSettings","LuShield","LuSparkles","LuStar","LuTag","LuTerminal","LuToggleLeft","LuToggleRight","LuTrash2","LuTrendingUp","LuType","LuUser","LuUserPlus","LuUsers","LuVideo","LuWebhook","LuX","LuZap","LuCircleCheck","LuHouse","LuLayoutPanelTop","LuLoaderCircle","LuLockOpen","LuCirclePlay","LuTriangleAlert","LuCodeXml","LuCloudDownload","LuEllipsisVertical","LuShieldCheck","LuShieldAlert","LuMoon","LuSun","LuLogOut","LuDatabase","LuHexagon","LuNetwork","LuBook","LuBold","LuItalic","LuUnderline","LuStrikethrough","LuUndo","LuRedo","LuDot"],"mappings":";AAGA,SAAuB,kBAAoB;AAC3C,SAA4B,uBAAyB;AACrD,SAAwB,mBAAqB;AAC7C,SAAsB,iBAAmB;AACzC,SAAwB,mBAAqB;AAC7C,SAAy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,cAA6C,mBAAnBC,kBAA4C,UAAVC,SAA0B,UAAVC,SAAyB,SAATC,QAAc,aAAArG,YAAuB,UAAwB,oBAAkB","sourcesContent":["// Re-exported from react-icons/lu (Lucide icons via React Icons, ISC license)\n// Allows mixing packs or swapping individual icons without touching consumers.\n\nexport { LuActivity as IconActivity } from \"react-icons/lu\";\nexport { LuTriangleAlert as IconAlertTriangle } from \"react-icons/lu\";\nexport { LuAlignLeft as IconAlignLeft } from \"react-icons/lu\";\nexport { LuArchive as IconArchive } from \"react-icons/lu\";\nexport { LuArrowDown as IconArrowDown } from \"react-icons/lu\";\nexport { LuArrowRight as IconArrowRight } from \"react-icons/lu\";\nexport { LuArrowUpRight as IconArrowUpRight } from \"react-icons/lu\";\nexport { LuBlocks as IconBlocks } from \"react-icons/lu\";\nexport { LuBold as IconBold } from \"react-icons/lu\";\nexport { LuBook as IconBook } from \"react-icons/lu\";\nexport { LuBox as IconBox } from \"react-icons/lu\";\nexport { LuCircleCheck as IconCheckCircle2 } from \"react-icons/lu\";\nexport { LuCheck as IconCheck } from \"react-icons/lu\";\nexport { LuChevronDown as IconChevronDown } from \"react-icons/lu\";\nexport { LuChevronLeft as IconChevronLeft } from \"react-icons/lu\";\nexport { LuChevronRight as IconChevronRight } from \"react-icons/lu\";\nexport { LuChevronUp as IconChevronUp } from \"react-icons/lu\";\nexport { LuClock as IconClock } from \"react-icons/lu\";\nexport { LuCode as IconCode } from \"react-icons/lu\";\nexport { LuCodeXml as IconCode2 } from \"react-icons/lu\";\nexport { LuColumns3 as IconColumns3 } from \"react-icons/lu\";\nexport { LuCopy as IconCopy } from \"react-icons/lu\";\nexport { LuCrop as IconCrop } from \"react-icons/lu\";\nexport { LuDatabase as IconDatabase } from \"react-icons/lu\";\nexport { LuDownload as IconDownload } from \"react-icons/lu\";\nexport { LuCloudDownload as IconDownloadCloud } from \"react-icons/lu\";\nexport { LuExternalLink as IconExternalLink } from \"react-icons/lu\";\nexport { LuEye as IconEye } from \"react-icons/lu\";\nexport { LuEyeOff as IconEyeOff } from \"react-icons/lu\";\nexport { LuFile as IconFile } from \"react-icons/lu\";\nexport { LuGlobe as IconGlobe } from \"react-icons/lu\";\nexport { LuFilm as IconFilm } from \"react-icons/lu\";\nexport { LuFilter as IconFilter } from \"react-icons/lu\";\nexport { LuFolder as IconFolder } from \"react-icons/lu\";\nexport { LuFolderInput as IconFolderInput } from \"react-icons/lu\";\nexport { LuFolderPlus as IconFolderPlus } from \"react-icons/lu\";\nexport { LuGrid3X3 as IconGrid } from \"react-icons/lu\";\nexport { LuGripVertical as IconGripVertical } from \"react-icons/lu\";\nexport { LuHeading1 as IconHeading1 } from \"react-icons/lu\";\nexport { LuHexagon as IconHexagon } from \"react-icons/lu\";\nexport { LuHouse as IconHome } from \"react-icons/lu\";\nexport { LuImage as IconImage } from \"react-icons/lu\";\nexport { LuInfo as IconInfo } from \"react-icons/lu\";\nexport { LuItalic as IconItalic } from \"react-icons/lu\";\nexport { LuKey as IconKey } from \"react-icons/lu\";\nexport { LuLayoutPanelTop as IconLayout } from \"react-icons/lu\";\nexport { LuLayoutDashboard as IconLayoutDashboard } from \"react-icons/lu\";\nexport { LuLink as IconLink } from \"react-icons/lu\";\nexport { LuLink2 as IconLink2 } from \"react-icons/lu\";\nexport { LuList as IconList } from \"react-icons/lu\";\nexport { LuListOrdered as IconListOrdered } from \"react-icons/lu\";\nexport { LuLoaderCircle as IconLoader2 } from \"react-icons/lu\";\nexport { LuLock as IconLock } from \"react-icons/lu\";\nexport { LuLogOut as IconLogOut } from \"react-icons/lu\";\nexport { LuMail as IconMail } from \"react-icons/lu\";\nexport { LuMaximize2 as IconMaximize2 } from \"react-icons/lu\";\nexport { LuMenu as IconMenu } from \"react-icons/lu\";\nexport { LuMinus as IconMinus } from \"react-icons/lu\";\nexport { LuMonitor as IconMonitor } from \"react-icons/lu\";\nexport { LuMoon as IconMoon } from \"react-icons/lu\";\nexport { LuEllipsisVertical as IconMoreVertical } from \"react-icons/lu\";\nexport { LuMousePointerClick as IconMousePointerClick } from \"react-icons/lu\";\nexport { LuMusic as IconMusic } from \"react-icons/lu\";\nexport { LuNetwork as IconNetwork } from \"react-icons/lu\";\nexport { LuPalette as IconPalette } from \"react-icons/lu\";\nexport { LuPause as IconPause } from \"react-icons/lu\";\nexport { LuPencil as IconPencil } from \"react-icons/lu\";\nexport { LuPlay as IconPlay } from \"react-icons/lu\";\nexport { LuCirclePlay as IconPlayCircle } from \"react-icons/lu\";\nexport { LuPlus as IconPlus } from \"react-icons/lu\";\nexport { LuRedo as IconRedo } from \"react-icons/lu\";\nexport { LuRefreshCcw as IconRefreshCcw } from \"react-icons/lu\";\nexport { LuRefreshCw as IconRefreshCw } from \"react-icons/lu\";\nexport { LuSave as IconSave } from \"react-icons/lu\";\nexport { LuSearch as IconSearch } from \"react-icons/lu\";\nexport { LuSend as IconSend } from \"react-icons/lu\";\nexport { LuSettings as IconSettings } from \"react-icons/lu\";\nexport { LuShield as IconShield } from \"react-icons/lu\";\nexport { LuShieldCheck as IconShieldCheck } from \"react-icons/lu\";\nexport { LuSparkles as IconSparkles } from \"react-icons/lu\";\nexport { LuStar as IconStar } from \"react-icons/lu\";\nexport { LuStrikethrough as IconStrikethrough } from \"react-icons/lu\";\nexport { LuSun as IconSun } from \"react-icons/lu\";\nexport { LuTag as IconTag } from \"react-icons/lu\";\nexport { LuTerminal as IconTerminal } from \"react-icons/lu\";\nexport { LuToggleLeft as IconToggleLeft } from \"react-icons/lu\";\nexport { LuToggleRight as IconToggleRight } from \"react-icons/lu\";\nexport { LuTrash2 as IconTrash2 } from \"react-icons/lu\";\nexport { LuTrendingUp as IconTrendingUp } from \"react-icons/lu\";\nexport { LuType as IconType } from \"react-icons/lu\";\nexport { LuUnderline as IconUnderline } from \"react-icons/lu\";\nexport { LuUndo as IconUndo } from \"react-icons/lu\";\nexport { LuLockOpen as IconUnlock } from \"react-icons/lu\";\nexport { LuUser as IconUser } from \"react-icons/lu\";\nexport { LuUserPlus as IconUserPlus } from \"react-icons/lu\";\nexport { LuUsers as IconUsers } from \"react-icons/lu\";\nexport { LuVideo as IconVideo } from \"react-icons/lu\";\nexport { LuWebhook as IconWebhook } from \"react-icons/lu\";\nexport { LuX as IconX } from \"react-icons/lu\";\nexport { LuZap as IconZap } from \"react-icons/lu\";\nexport { LuDot as IconDot } from \"react-icons/lu\";\nexport { LuShieldAlert as IconShieldAlert } from \"react-icons/lu\";\nexport { LuPencil as IconEdit2 } from \"react-icons/lu\";\nexport { LuCalendar as IconCalendar } from \"react-icons/lu\";\nexport { LuGrid3X3 as IconGrid3X3 } from \"react-icons/lu\";\n\n// Direct re-exports for files that still use original lucide-react names\nexport { LuActivity as Activity, LuAlignLeft as AlignLeft, LuArchive as Archive, LuArrowDown as ArrowDown, LuArrowRight as ArrowRight, LuArrowUpRight as ArrowUpRight, LuBlocks as Blocks, LuBox as Box, LuCalendar as Calendar, LuCheck as Check, LuChevronDown as ChevronDown, LuChevronLeft as ChevronLeft, LuChevronRight as ChevronRight, LuChevronUp as ChevronUp, LuClock as Clock, LuCode as Code, LuColumns3 as Columns3, LuCopy as Copy, LuCrop as Crop, LuDownload as Download, LuExternalLink as ExternalLink, LuEye as Eye, LuEyeOff as EyeOff, LuFile as File, LuFile as FileIcon, LuFileText as FileText, LuGlobe as Globe, LuFilm as Film, LuFilter as Filter, LuFolder as Folder, LuFolderInput as FolderInput, LuFolderPlus as FolderPlus, LuGripVertical as GripVertical, LuHeading1 as Heading1, LuImage as Image, LuInfo as Info, LuKey as Key, LuLayoutDashboard as LayoutDashboard, LuLink as Link, LuLink2 as Link2, LuList as List, LuListOrdered as ListOrdered, LuLock as Lock, LuMail as Mail, LuMaximize2 as Maximize2, LuMenu as Menu, LuMinus as Minus, LuMonitor as Monitor, LuMousePointerClick as MousePointerClick, LuMusic as Music, LuPalette as Palette, LuPause as Pause, LuPlay as Play, LuPlus as Plus, LuRefreshCcw as RefreshCcw, LuRefreshCw as RefreshCw, LuSave as Save, LuSearch as Search, LuSend as Send, LuSettings as Settings, LuShield as Shield, LuSparkles as Sparkles, LuStar as Star, LuTag as Tag, LuTerminal as Terminal, LuToggleLeft as ToggleLeft, LuToggleRight as ToggleRight, LuTrash2 as Trash2, LuTrendingUp as TrendingUp, LuType as Type, LuUser as User, LuUserPlus as UserPlus, LuUsers as Users, LuVideo as Video, LuWebhook as Webhook, LuX as X, LuZap as Zap, LuCircleHelp as HelpCircle } from \"react-icons/lu\";\nexport { LuCircleCheck as CheckCircle2, LuGrid3X3 as Grid, LuHouse as Home, LuLayoutPanelTop as Layout, LuLoaderCircle as Loader2, LuLockOpen as Unlock, LuCirclePlay as PlayCircle, LuTriangleAlert as AlertTriangle, LuCodeXml as Code2, LuCloudDownload as DownloadCloud, LuEllipsisVertical as MoreVertical, LuShieldCheck as ShieldCheck, LuShieldAlert as ShieldAlert, LuPencil as Edit2, LuMoon as Moon, LuSun as Sun, LuLogOut as LogOut, LuDatabase as Database, LuHexagon as Hexagon, LuNetwork as Network, LuBook as Book, LuBold as Bold, LuItalic as Italic, LuUnderline as Underline, LuStrikethrough as Strikethrough, LuUndo as Undo, LuRedo as Redo, LuDot as Dot, LuGrid3X3, LuLaptop as Laptop, LuSmartphone as Smartphone } from \"react-icons/lu\";\n"]}
|
package/dist/chunk-EEFXLQVT.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { LuActivity, LuAlignLeft, LuArchive, LuArrowDown, LuArrowRight, LuArrowUpRight, LuBold, LuBox, LuCheck, LuChevronDown, LuChevronRight, LuChevronUp, LuCircleCheck, LuCirclePlay, LuClock, LuCode, LuCodeXml, LuColumns3, LuCopy, LuCrop, LuDatabase, LuDownload, LuEllipsisVertical, LuExternalLink, LuEye, LuEyeOff, LuFile, LuFile as LuFile2, LuFileText, LuFilm, LuFolder, LuFolderInput, LuFolderPlus, LuGrid3X3, LuGripVertical, LuHeading1, LuHexagon, LuImage, LuInfo, LuItalic, LuKey, LuLayoutDashboard, LuLink, LuLink2, LuList, LuListOrdered, LuLoaderCircle, LuLock, LuLockOpen, LuLogOut, LuMaximize2, LuMinus, LuMoon, LuMousePointerClick, LuMusic, LuNetwork, LuPalette, LuPause, LuPlay, LuPlus, LuRedo, LuRefreshCcw, LuRefreshCw, LuSave, LuSearch, LuSend, LuSettings, LuShield, LuShieldAlert, LuSparkles, LuStar, LuStrikethrough, LuSun, LuTag, LuTerminal, LuTrash2, LuTriangleAlert, LuUnderline, LuUndo, LuUserPlus, LuUsers, LuVideo, LuWebhook, LuX, LuZap } from 'react-icons/lu';
|
|
2
|
-
//# sourceMappingURL=out.js.map
|
|
3
|
-
//# sourceMappingURL=chunk-EEFXLQVT.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/ui/icons.tsx"],"names":["LuPencil","LuGrid3X3","LuActivity","LuAlignLeft","LuArchive","LuArrowDown","LuArrowRight","LuArrowUpRight","LuBlocks","LuBox","LuCalendar","LuCheck","LuChevronDown","LuChevronLeft","LuChevronRight","LuChevronUp","LuClock","LuCode","LuColumns3","LuCopy","LuCrop","LuDownload","LuExternalLink","LuEye","LuEyeOff","LuFile","LuGlobe","LuFilm","LuFilter","LuFolder","LuFolderInput","LuFolderPlus","LuGripVertical","LuHeading1","LuImage","LuInfo","LuKey","LuLayoutDashboard","LuLink","LuLink2","LuList","LuListOrdered","LuLock","LuMail","LuMaximize2","LuMenu","LuMinus","LuMonitor","LuMousePointerClick","LuMusic","LuPalette","LuPause","LuPlay","LuPlus","LuRefreshCcw","LuRefreshCw","LuSave","LuSearch","LuSend","LuSettings","LuShield","LuSparkles","LuStar","LuTag","LuTerminal","LuToggleLeft","LuToggleRight","LuTrash2","LuTrendingUp","LuType","LuUser","LuUserPlus","LuUsers","LuVideo","LuWebhook","LuX","LuZap","LuCircleCheck","LuHouse","LuLayoutPanelTop","LuLoaderCircle","LuLockOpen","LuCirclePlay","LuTriangleAlert","LuCodeXml","LuCloudDownload","LuEllipsisVertical","LuShieldCheck","LuShieldAlert","LuMoon","LuSun","LuLogOut","LuDatabase","LuHexagon","LuNetwork","LuBook","LuBold","LuItalic","LuUnderline","LuStrikethrough","LuUndo","LuRedo","LuDot"],"mappings":";AAGA,SAAuB,kBAAoB;AAC3C,SAA4B,uBAAyB;AACrD,SAAwB,mBAAqB;AAC7C,SAAsB,iBAAmB;AACzC,SAAwB,mBAAqB;AAC7C,SAAyB,oBAAsB;AAC/C,SAA2B,sBAAwB;AACnD,SAAqB,gBAAkB;AACvC,SAAmB,cAAgB;AACnC,SAAmB,cAAgB;AACnC,SAAkB,aAAe;AACjC,SAA0B,qBAAwB;AAClD,SAAoB,eAAiB;AACrC,SAA0B,qBAAuB;AACjD,SAA0B,qBAAuB;AACjD,SAA2B,sBAAwB;AACnD,SAAwB,mBAAqB;AAC7C,SAAoB,eAAiB;AACrC,SAAmB,cAAgB;AACnC,SAAsB,iBAAiB;AACvC,SAAuB,kBAAoB;AAC3C,SAAmB,cAAgB;AACnC,SAAmB,cAAgB;AACnC,SAAuB,kBAAoB;AAC3C,SAAuB,kBAAoB;AAC3C,SAA4B,uBAAyB;AACrD,SAA2B,sBAAwB;AACnD,SAAkB,aAAe;AACjC,SAAqB,gBAAkB;AACvC,SAAmB,cAAgB;AACnC,SAAoB,eAAiB;AACrC,SAAmB,cAAgB;AACnC,SAAqB,gBAAkB;AACvC,SAAqB,gBAAkB;AACvC,SAA0B,qBAAuB;AACjD,SAAyB,oBAAsB;AAC/C,SAAsB,iBAAgB;AACtC,SAA2B,sBAAwB;AACnD,SAAuB,kBAAoB;AAC3C,SAAsB,iBAAmB;AACzC,SAAoB,eAAgB;AACpC,SAAoB,eAAiB;AACrC,SAAmB,cAAgB;AACnC,SAAqB,gBAAkB;AACvC,SAAkB,aAAe;AACjC,SAA6B,wBAAkB;AAC/C,SAA8B,yBAA2B;AACzD,SAAmB,cAAgB;AACnC,SAAoB,eAAiB;AACrC,SAAmB,cAAgB;AACnC,SAA0B,qBAAuB;AACjD,SAA2B,sBAAmB;AAC9C,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bC,YAAuC,mBAAnBC,kBAAwD,sBAAtBC,qBAAqD,iBAAjBC,gBAA+C,iBAAjBC,gBAA0C,YAAZxF,WAA6B,UAAVyF,SAAyB,SAATC,QAA0B,YAAZC,WAAkC,cAAdC,aAAqC,aAAbC,YAAmC,aAAbC,YAAgC,UAAVC,SAA0B,UAAVC,SAA4B,YAAZC,WAAmC,eAAfC,cAA6C,mBAAnBC,kBAA4C,UAAVC,SAA0B,UAAVC,SAAyB,SAATC,QAAc,aAAArG,YAAuB,UAAwB,oBAAkB","sourcesContent":["// Re-exported from react-icons/lu (Lucide icons via React Icons, ISC license)\n// Allows mixing packs or swapping individual icons without touching consumers.\n\nexport { LuActivity as IconActivity } from \"react-icons/lu\";\nexport { LuTriangleAlert as IconAlertTriangle } from \"react-icons/lu\";\nexport { LuAlignLeft as IconAlignLeft } from \"react-icons/lu\";\nexport { LuArchive as IconArchive } from \"react-icons/lu\";\nexport { LuArrowDown as IconArrowDown } from \"react-icons/lu\";\nexport { LuArrowRight as IconArrowRight } from \"react-icons/lu\";\nexport { LuArrowUpRight as IconArrowUpRight } from \"react-icons/lu\";\nexport { LuBlocks as IconBlocks } from \"react-icons/lu\";\nexport { LuBold as IconBold } from \"react-icons/lu\";\nexport { LuBook as IconBook } from \"react-icons/lu\";\nexport { LuBox as IconBox } from \"react-icons/lu\";\nexport { LuCircleCheck as IconCheckCircle2 } from \"react-icons/lu\";\nexport { LuCheck as IconCheck } from \"react-icons/lu\";\nexport { LuChevronDown as IconChevronDown } from \"react-icons/lu\";\nexport { LuChevronLeft as IconChevronLeft } from \"react-icons/lu\";\nexport { LuChevronRight as IconChevronRight } from \"react-icons/lu\";\nexport { LuChevronUp as IconChevronUp } from \"react-icons/lu\";\nexport { LuClock as IconClock } from \"react-icons/lu\";\nexport { LuCode as IconCode } from \"react-icons/lu\";\nexport { LuCodeXml as IconCode2 } from \"react-icons/lu\";\nexport { LuColumns3 as IconColumns3 } from \"react-icons/lu\";\nexport { LuCopy as IconCopy } from \"react-icons/lu\";\nexport { LuCrop as IconCrop } from \"react-icons/lu\";\nexport { LuDatabase as IconDatabase } from \"react-icons/lu\";\nexport { LuDownload as IconDownload } from \"react-icons/lu\";\nexport { LuCloudDownload as IconDownloadCloud } from \"react-icons/lu\";\nexport { LuExternalLink as IconExternalLink } from \"react-icons/lu\";\nexport { LuEye as IconEye } from \"react-icons/lu\";\nexport { LuEyeOff as IconEyeOff } from \"react-icons/lu\";\nexport { LuFile as IconFile } from \"react-icons/lu\";\nexport { LuGlobe as IconGlobe } from \"react-icons/lu\";\nexport { LuFilm as IconFilm } from \"react-icons/lu\";\nexport { LuFilter as IconFilter } from \"react-icons/lu\";\nexport { LuFolder as IconFolder } from \"react-icons/lu\";\nexport { LuFolderInput as IconFolderInput } from \"react-icons/lu\";\nexport { LuFolderPlus as IconFolderPlus } from \"react-icons/lu\";\nexport { LuGrid3X3 as IconGrid } from \"react-icons/lu\";\nexport { LuGripVertical as IconGripVertical } from \"react-icons/lu\";\nexport { LuHeading1 as IconHeading1 } from \"react-icons/lu\";\nexport { LuHexagon as IconHexagon } from \"react-icons/lu\";\nexport { LuHouse as IconHome } from \"react-icons/lu\";\nexport { LuImage as IconImage } from \"react-icons/lu\";\nexport { LuInfo as IconInfo } from \"react-icons/lu\";\nexport { LuItalic as IconItalic } from \"react-icons/lu\";\nexport { LuKey as IconKey } from \"react-icons/lu\";\nexport { LuLayoutPanelTop as IconLayout } from \"react-icons/lu\";\nexport { LuLayoutDashboard as IconLayoutDashboard } from \"react-icons/lu\";\nexport { LuLink as IconLink } from \"react-icons/lu\";\nexport { LuLink2 as IconLink2 } from \"react-icons/lu\";\nexport { LuList as IconList } from \"react-icons/lu\";\nexport { LuListOrdered as IconListOrdered } from \"react-icons/lu\";\nexport { LuLoaderCircle as IconLoader2 } from \"react-icons/lu\";\nexport { LuLock as IconLock } from \"react-icons/lu\";\nexport { LuLogOut as IconLogOut } from \"react-icons/lu\";\nexport { LuMail as IconMail } from \"react-icons/lu\";\nexport { LuMaximize2 as IconMaximize2 } from \"react-icons/lu\";\nexport { LuMenu as IconMenu } from \"react-icons/lu\";\nexport { LuMinus as IconMinus } from \"react-icons/lu\";\nexport { LuMonitor as IconMonitor } from \"react-icons/lu\";\nexport { LuMoon as IconMoon } from \"react-icons/lu\";\nexport { LuEllipsisVertical as IconMoreVertical } from \"react-icons/lu\";\nexport { LuMousePointerClick as IconMousePointerClick } from \"react-icons/lu\";\nexport { LuMusic as IconMusic } from \"react-icons/lu\";\nexport { LuNetwork as IconNetwork } from \"react-icons/lu\";\nexport { LuPalette as IconPalette } from \"react-icons/lu\";\nexport { LuPause as IconPause } from \"react-icons/lu\";\nexport { LuPencil as IconPencil } from \"react-icons/lu\";\nexport { LuPlay as IconPlay } from \"react-icons/lu\";\nexport { LuCirclePlay as IconPlayCircle } from \"react-icons/lu\";\nexport { LuPlus as IconPlus } from \"react-icons/lu\";\nexport { LuRedo as IconRedo } from \"react-icons/lu\";\nexport { LuRefreshCcw as IconRefreshCcw } from \"react-icons/lu\";\nexport { LuRefreshCw as IconRefreshCw } from \"react-icons/lu\";\nexport { LuSave as IconSave } from \"react-icons/lu\";\nexport { LuSearch as IconSearch } from \"react-icons/lu\";\nexport { LuSend as IconSend } from \"react-icons/lu\";\nexport { LuSettings as IconSettings } from \"react-icons/lu\";\nexport { LuShield as IconShield } from \"react-icons/lu\";\nexport { LuShieldCheck as IconShieldCheck } from \"react-icons/lu\";\nexport { LuSparkles as IconSparkles } from \"react-icons/lu\";\nexport { LuStar as IconStar } from \"react-icons/lu\";\nexport { LuStrikethrough as IconStrikethrough } from \"react-icons/lu\";\nexport { LuSun as IconSun } from \"react-icons/lu\";\nexport { LuTag as IconTag } from \"react-icons/lu\";\nexport { LuTerminal as IconTerminal } from \"react-icons/lu\";\nexport { LuToggleLeft as IconToggleLeft } from \"react-icons/lu\";\nexport { LuToggleRight as IconToggleRight } from \"react-icons/lu\";\nexport { LuTrash2 as IconTrash2 } from \"react-icons/lu\";\nexport { LuTrendingUp as IconTrendingUp } from \"react-icons/lu\";\nexport { LuType as IconType } from \"react-icons/lu\";\nexport { LuUnderline as IconUnderline } from \"react-icons/lu\";\nexport { LuUndo as IconUndo } from \"react-icons/lu\";\nexport { LuLockOpen as IconUnlock } from \"react-icons/lu\";\nexport { LuUser as IconUser } from \"react-icons/lu\";\nexport { LuUserPlus as IconUserPlus } from \"react-icons/lu\";\nexport { LuUsers as IconUsers } from \"react-icons/lu\";\nexport { LuVideo as IconVideo } from \"react-icons/lu\";\nexport { LuWebhook as IconWebhook } from \"react-icons/lu\";\nexport { LuX as IconX } from \"react-icons/lu\";\nexport { LuZap as IconZap } from \"react-icons/lu\";\nexport { LuDot as IconDot } from \"react-icons/lu\";\nexport { LuShieldAlert as IconShieldAlert } from \"react-icons/lu\";\nexport { LuPencil as IconEdit2 } from \"react-icons/lu\";\nexport { LuCalendar as IconCalendar } from \"react-icons/lu\";\nexport { LuGrid3X3 as IconGrid3X3 } from \"react-icons/lu\";\n\n// Direct re-exports for files that still use original lucide-react names\nexport { LuActivity as Activity, LuAlignLeft as AlignLeft, LuArchive as Archive, LuArrowDown as ArrowDown, LuArrowRight as ArrowRight, LuArrowUpRight as ArrowUpRight, LuBlocks as Blocks, LuBox as Box, LuCalendar as Calendar, LuCheck as Check, LuChevronDown as ChevronDown, LuChevronLeft as ChevronLeft, LuChevronRight as ChevronRight, LuChevronUp as ChevronUp, LuClock as Clock, LuCode as Code, LuColumns3 as Columns3, LuCopy as Copy, LuCrop as Crop, LuDownload as Download, LuExternalLink as ExternalLink, LuEye as Eye, LuEyeOff as EyeOff, LuFile as File, LuFile as FileIcon, LuFileText as FileText, LuGlobe as Globe, LuFilm as Film, LuFilter as Filter, LuFolder as Folder, LuFolderInput as FolderInput, LuFolderPlus as FolderPlus, LuGripVertical as GripVertical, LuHeading1 as Heading1, LuImage as Image, LuInfo as Info, LuKey as Key, LuLayoutDashboard as LayoutDashboard, LuLink as Link, LuLink2 as Link2, LuList as List, LuListOrdered as ListOrdered, LuLock as Lock, LuMail as Mail, LuMaximize2 as Maximize2, LuMenu as Menu, LuMinus as Minus, LuMonitor as Monitor, LuMousePointerClick as MousePointerClick, LuMusic as Music, LuPalette as Palette, LuPause as Pause, LuPlay as Play, LuPlus as Plus, LuRefreshCcw as RefreshCcw, LuRefreshCw as RefreshCw, LuSave as Save, LuSearch as Search, LuSend as Send, LuSettings as Settings, LuShield as Shield, LuSparkles as Sparkles, LuStar as Star, LuTag as Tag, LuTerminal as Terminal, LuToggleLeft as ToggleLeft, LuToggleRight as ToggleRight, LuTrash2 as Trash2, LuTrendingUp as TrendingUp, LuType as Type, LuUser as User, LuUserPlus as UserPlus, LuUsers as Users, LuVideo as Video, LuWebhook as Webhook, LuX as X, LuZap as Zap, LuCircleHelp as HelpCircle } from \"react-icons/lu\";\nexport { LuCircleCheck as CheckCircle2, LuGrid3X3 as Grid, LuHouse as Home, LuLayoutPanelTop as Layout, LuLoaderCircle as Loader2, LuLockOpen as Unlock, LuCirclePlay as PlayCircle, LuTriangleAlert as AlertTriangle, LuCodeXml as Code2, LuCloudDownload as DownloadCloud, LuEllipsisVertical as MoreVertical, LuShieldCheck as ShieldCheck, LuShieldAlert as ShieldAlert, LuPencil as Edit2, LuMoon as Moon, LuSun as Sun, LuLogOut as LogOut, LuDatabase as Database, LuHexagon as Hexagon, LuNetwork as Network, LuBook as Book, LuBold as Bold, LuItalic as Italic, LuUnderline as Underline, LuStrikethrough as Strikethrough, LuUndo as Undo, LuRedo as Redo, LuDot as Dot, LuGrid3X3, LuLaptop as Laptop, LuSmartphone as Smartphone } from \"react-icons/lu\";\n"]}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
useBlockById,
|
|
4
|
-
useBlockActions,
|
|
5
|
-
} from "../fields/extensions/blocksStore";
|
|
6
|
-
import { ChevronRight, X } from "../ui/icons";
|
|
7
|
-
import { ButtonField } from "../fields/ButtonField";
|
|
8
|
-
|
|
9
|
-
export const ButtonBlock: React.FC<{ block: Record<string, unknown>; index: number }> = ({
|
|
10
|
-
block,
|
|
11
|
-
index,
|
|
12
|
-
}) => {
|
|
13
|
-
const blockData = useBlockById(block.id);
|
|
14
|
-
const { updateBlock, removeBlock, moveBlock } = useBlockActions();
|
|
15
|
-
|
|
16
|
-
const data = blockData?.data ?? block.data ?? {};
|
|
17
|
-
|
|
18
|
-
const handleChange = (field: string, value: unknown) => {
|
|
19
|
-
updateBlock(block.id, { data: { ...data, [field]: value } });
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<div className="block-button border border-[var(--kyro-border)] rounded-md p-3 mb-2 relative group">
|
|
24
|
-
<div className="flex items-center justify-between mb-2">
|
|
25
|
-
<span className="text-xs font-semibold text-[var(--kyro-text-muted)] ">
|
|
26
|
-
Button
|
|
27
|
-
</span>
|
|
28
|
-
<div className="flex gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity">
|
|
29
|
-
<button
|
|
30
|
-
type="button"
|
|
31
|
-
onClick={() => moveBlock(block.id, "up")}
|
|
32
|
-
className="p-1 hover:bg-[var(--kyro-surface-accent)] rounded"
|
|
33
|
-
title="Move up"
|
|
34
|
-
>
|
|
35
|
-
<ChevronRight className="w-3 h-3 rotate-90" />
|
|
36
|
-
</button>
|
|
37
|
-
<button
|
|
38
|
-
type="button"
|
|
39
|
-
onClick={() => moveBlock(block.id, "down")}
|
|
40
|
-
className="p-1 hover:bg-[var(--kyro-surface-accent)] rounded"
|
|
41
|
-
title="Move down"
|
|
42
|
-
>
|
|
43
|
-
<ChevronRight className="w-3 h-3" />
|
|
44
|
-
</button>
|
|
45
|
-
<button
|
|
46
|
-
type="button"
|
|
47
|
-
onClick={() => removeBlock(block.id)}
|
|
48
|
-
className="p-1 hover:bg-red-50 rounded text-red-500"
|
|
49
|
-
title="Remove"
|
|
50
|
-
>
|
|
51
|
-
<X className="w-3 h-3" />
|
|
52
|
-
</button>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
|
|
56
|
-
<ButtonField
|
|
57
|
-
text={data.text || "Button"}
|
|
58
|
-
url={data.url || ""}
|
|
59
|
-
onChange={handleChange}
|
|
60
|
-
compact
|
|
61
|
-
/>
|
|
62
|
-
</div>
|
|
63
|
-
);
|
|
64
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
useBlockById,
|
|
4
|
-
useBlockActions,
|
|
5
|
-
} from "../fields/extensions/blocksStore";
|
|
6
|
-
import { ColumnsField } from "../fields/ColumnsField";
|
|
7
|
-
import { BlockWrapper } from "./BlockWrapper";
|
|
8
|
-
|
|
9
|
-
export const ColumnsBlock: React.FC<{ block: Record<string, unknown>; index: number }> = ({
|
|
10
|
-
block,
|
|
11
|
-
index,
|
|
12
|
-
}) => {
|
|
13
|
-
const blockData = useBlockById(block.id);
|
|
14
|
-
const { updateBlock } = useBlockActions();
|
|
15
|
-
|
|
16
|
-
const data = blockData?.data ?? block.data ?? {};
|
|
17
|
-
const columns = data.columns || 2;
|
|
18
|
-
const columnData = data.columnData || [];
|
|
19
|
-
|
|
20
|
-
const handleColumnsChange = (newColumns: number) => {
|
|
21
|
-
if (newColumns < 1 || newColumns > 6) return;
|
|
22
|
-
const newColumnData = Array.from({ length: newColumns }, (_, i) => ({
|
|
23
|
-
id: i,
|
|
24
|
-
children: columnData[i]?.children || [],
|
|
25
|
-
}));
|
|
26
|
-
updateBlock(block.id, {
|
|
27
|
-
data: { ...data, columns: newColumns, columnData: newColumnData },
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const handleUpdateColumnChildren = (
|
|
32
|
-
columnIndex: number,
|
|
33
|
-
newChildren: Record<string, unknown>[],
|
|
34
|
-
) => {
|
|
35
|
-
const newColumnData = [...columnData];
|
|
36
|
-
newColumnData[columnIndex] = {
|
|
37
|
-
...newColumnData[columnIndex],
|
|
38
|
-
children: newChildren,
|
|
39
|
-
};
|
|
40
|
-
updateBlock(block.id, {
|
|
41
|
-
data: { ...data, columnData: newColumnData },
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<BlockWrapper id={block.id} type="columns" label="Columns">
|
|
47
|
-
<ColumnsField
|
|
48
|
-
columns={columns}
|
|
49
|
-
columnData={columnData}
|
|
50
|
-
onColumnsChange={handleColumnsChange}
|
|
51
|
-
onUpdateColumnChildren={handleUpdateColumnChildren}
|
|
52
|
-
/>
|
|
53
|
-
</BlockWrapper>
|
|
54
|
-
);
|
|
55
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
useBlockById,
|
|
4
|
-
useBlockActions,
|
|
5
|
-
} from "../fields/extensions/blocksStore";
|
|
6
|
-
import { ChevronRight, X } from "../ui/icons";
|
|
7
|
-
|
|
8
|
-
export const DividerBlock: React.FC<{ block: Record<string, unknown>; index: number }> = ({
|
|
9
|
-
block,
|
|
10
|
-
index,
|
|
11
|
-
}) => {
|
|
12
|
-
const blockData = useBlockById(block.id);
|
|
13
|
-
const { updateBlock, removeBlock, moveBlock } = useBlockActions();
|
|
14
|
-
const data = blockData?.data ?? block.data ?? {};
|
|
15
|
-
const handleChange = (field: string, value: unknown) => {
|
|
16
|
-
updateBlock(block.id, { data: { ...data, [field]: value } });
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<div className="my-4">
|
|
21
|
-
<div className="border-t border-[var(--kyro-border)]" />
|
|
22
|
-
<div className="flex justify-between text-[var(--kyro-text-muted)] text-xs mt-1">
|
|
23
|
-
<span>Divider</span>
|
|
24
|
-
<div className="flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity">
|
|
25
|
-
<button type="button"
|
|
26
|
-
onClick={() => moveBlock(block.id, "up")}
|
|
27
|
-
className="p-1 hover:bg-[var(--kyro-surface-accent)] rounded"
|
|
28
|
-
title="Move up"
|
|
29
|
-
>
|
|
30
|
-
<ChevronRight className="w-3 h-3 rotate-90" />
|
|
31
|
-
</button>
|
|
32
|
-
<button type="button"
|
|
33
|
-
onClick={() => removeBlock(block.id)}
|
|
34
|
-
className="p-1 hover:bg-[var(--kyro-surface-accent)] rounded"
|
|
35
|
-
title="Remove"
|
|
36
|
-
>
|
|
37
|
-
<X className="w-3 h-3" />
|
|
38
|
-
</button>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
);
|
|
43
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
useBlockById,
|
|
4
|
-
useBlockActions,
|
|
5
|
-
} from "../fields/extensions/blocksStore";
|
|
6
|
-
import { ChevronRight, X } from "../ui/icons";
|
|
7
|
-
import { LinkField } from "../fields/LinkField";
|
|
8
|
-
|
|
9
|
-
export const LinkBlock: React.FC<{ block: Record<string, unknown>; index: number }> = ({
|
|
10
|
-
block,
|
|
11
|
-
index,
|
|
12
|
-
}) => {
|
|
13
|
-
const blockData = useBlockById(block.id);
|
|
14
|
-
const { updateBlock, removeBlock, moveBlock } = useBlockActions();
|
|
15
|
-
|
|
16
|
-
const data = blockData?.data ?? block.data ?? {};
|
|
17
|
-
|
|
18
|
-
const handleChange = (field: string, value: unknown) => {
|
|
19
|
-
updateBlock(block.id, { data: { ...data, [field]: value } });
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<div className="block-link border border-[var(--kyro-border)] rounded-md p-2.5 mb-2 relative group">
|
|
24
|
-
<div className="flex items-center gap-2">
|
|
25
|
-
<span className="text-[10px] font-bold text-[var(--kyro-text-muted)] shrink-0 w-8">
|
|
26
|
-
Link
|
|
27
|
-
</span>
|
|
28
|
-
<div className="flex-1 min-w-0">
|
|
29
|
-
<LinkField
|
|
30
|
-
text={data.text || ""}
|
|
31
|
-
url={data.url || ""}
|
|
32
|
-
onChange={handleChange}
|
|
33
|
-
compact
|
|
34
|
-
/>
|
|
35
|
-
</div>
|
|
36
|
-
<div className="flex gap-0.5 shrink-0 opacity-0 group-hover:opacity-100 transition-opacity">
|
|
37
|
-
<button
|
|
38
|
-
type="button"
|
|
39
|
-
onClick={() => moveBlock(block.id, "up")}
|
|
40
|
-
className="p-1 hover:bg-[var(--kyro-surface-accent)] rounded"
|
|
41
|
-
title="Move up"
|
|
42
|
-
>
|
|
43
|
-
<ChevronRight className="w-3 h-3 rotate-90" />
|
|
44
|
-
</button>
|
|
45
|
-
<button
|
|
46
|
-
type="button"
|
|
47
|
-
onClick={() => moveBlock(block.id, "down")}
|
|
48
|
-
className="p-1 hover:bg-[var(--kyro-surface-accent)] rounded"
|
|
49
|
-
title="Move down"
|
|
50
|
-
>
|
|
51
|
-
<ChevronRight className="w-3 h-3" />
|
|
52
|
-
</button>
|
|
53
|
-
<button
|
|
54
|
-
type="button"
|
|
55
|
-
onClick={() => removeBlock(block.id)}
|
|
56
|
-
className="p-1 hover:bg-red-50 rounded text-red-500"
|
|
57
|
-
title="Remove"
|
|
58
|
-
>
|
|
59
|
-
<X className="w-3 h-3" />
|
|
60
|
-
</button>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
);
|
|
65
|
-
};
|