@ckc-net/puck-extended 0.2.2 → 0.4.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.
- package/LICENSE +1 -1
- package/README.md +200 -0
- package/dist/index.d.ts +293 -222
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1248 -489
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as react0 from "react";
|
|
2
2
|
import React$1, { ComponentProps, ReactNode, SyntheticEvent } from "react";
|
|
3
|
-
import
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
import { VariantProps } from "class-variance-authority";
|
|
5
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
6
|
+
import { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
|
|
4
7
|
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
5
8
|
import { Input as Input$1 } from "@base-ui/react/input";
|
|
6
9
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
7
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
8
|
-
import { VariantProps } from "class-variance-authority";
|
|
9
10
|
import { Radio } from "@base-ui/react/radio";
|
|
10
11
|
import { RadioGroup as RadioGroup$1 } from "@base-ui/react/radio-group";
|
|
11
12
|
import * as _puckeditor_core0 from "@puckeditor/core";
|
|
12
|
-
import { Field, FieldProps, Fields } from "@puckeditor/core";
|
|
13
|
+
import { ComponentConfig, Field, FieldProps, Fields, Slot } from "@puckeditor/core";
|
|
13
14
|
import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
14
|
-
import { Accordion as
|
|
15
|
-
import { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
|
|
15
|
+
import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
|
|
16
16
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
17
17
|
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
18
18
|
import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
19
19
|
import { ColumnDef, PaginationState, SortingState } from "@tanstack/react-table";
|
|
20
20
|
import * as _tiptap_extension_text_style0 from "@tiptap/extension-text-style";
|
|
21
|
-
import { Menu as
|
|
21
|
+
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
22
22
|
import { Separator as Separator$1 } from "@base-ui/react/separator";
|
|
23
23
|
import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
24
24
|
import { Toast } from "@base-ui/react/toast";
|
|
@@ -44,7 +44,7 @@ declare const FieldNumberUnit: ({
|
|
|
44
44
|
label: string;
|
|
45
45
|
field: any;
|
|
46
46
|
readOnly?: boolean;
|
|
47
|
-
}) =>
|
|
47
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
//#region src/overrides/plugin.d.ts
|
|
50
50
|
declare const createPuckOverridesPlugin: () => {
|
|
@@ -58,7 +58,7 @@ declare const createPuckOverridesPlugin: () => {
|
|
|
58
58
|
label?: string;
|
|
59
59
|
parentAction?: react0.ReactNode;
|
|
60
60
|
children?: react0.ReactNode;
|
|
61
|
-
}):
|
|
61
|
+
}): react_jsx_runtime17.JSX.Element;
|
|
62
62
|
Action: ({
|
|
63
63
|
children,
|
|
64
64
|
label,
|
|
@@ -66,32 +66,32 @@ declare const createPuckOverridesPlugin: () => {
|
|
|
66
66
|
}: {
|
|
67
67
|
children: react0.ReactNode;
|
|
68
68
|
label?: string;
|
|
69
|
-
onClick
|
|
70
|
-
}) =>
|
|
69
|
+
onClick?: (e: react0.SyntheticEvent) => void;
|
|
70
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
71
71
|
Label: ({
|
|
72
72
|
label
|
|
73
73
|
}: {
|
|
74
74
|
label: string;
|
|
75
|
-
}) =>
|
|
75
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
76
76
|
Group: ({
|
|
77
77
|
children
|
|
78
78
|
}: {
|
|
79
79
|
children: react0.ReactNode;
|
|
80
|
-
}) =>
|
|
81
|
-
Separator: () =>
|
|
80
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
81
|
+
Separator: () => react_jsx_runtime17.JSX.Element;
|
|
82
82
|
};
|
|
83
83
|
drawer: ({
|
|
84
84
|
children
|
|
85
85
|
}: {
|
|
86
86
|
children: React.ReactNode;
|
|
87
|
-
}) =>
|
|
87
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
88
88
|
drawerItem: ({
|
|
89
89
|
name,
|
|
90
90
|
icon
|
|
91
91
|
}: {
|
|
92
92
|
name: string;
|
|
93
93
|
icon?: React.ReactNode;
|
|
94
|
-
}) =>
|
|
94
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
95
95
|
fields: ({
|
|
96
96
|
children
|
|
97
97
|
}: {
|
|
@@ -101,14 +101,18 @@ declare const createPuckOverridesPlugin: () => {
|
|
|
101
101
|
path?: string;
|
|
102
102
|
index?: number;
|
|
103
103
|
} | null;
|
|
104
|
-
}) =>
|
|
104
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
105
105
|
fieldLabel: ({
|
|
106
106
|
children,
|
|
107
|
-
label
|
|
107
|
+
label,
|
|
108
|
+
field,
|
|
109
|
+
tooltip
|
|
108
110
|
}: {
|
|
109
111
|
children: React.ReactNode;
|
|
110
|
-
label
|
|
111
|
-
|
|
112
|
+
label?: string;
|
|
113
|
+
field?: any;
|
|
114
|
+
tooltip?: string;
|
|
115
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
112
116
|
fieldTypes: {
|
|
113
117
|
checkbox: ({
|
|
114
118
|
onChange,
|
|
@@ -124,10 +128,12 @@ declare const createPuckOverridesPlugin: () => {
|
|
|
124
128
|
value: any;
|
|
125
129
|
}>;
|
|
126
130
|
layout?: CheckboxLayout;
|
|
131
|
+
readOnly?: boolean;
|
|
132
|
+
tooltip?: string;
|
|
127
133
|
};
|
|
128
134
|
}) & {
|
|
129
135
|
label: string;
|
|
130
|
-
}) =>
|
|
136
|
+
}) => react_jsx_runtime17.JSX.Element | null;
|
|
131
137
|
numberUnit: ({
|
|
132
138
|
onChange,
|
|
133
139
|
value,
|
|
@@ -140,7 +146,7 @@ declare const createPuckOverridesPlugin: () => {
|
|
|
140
146
|
label: string;
|
|
141
147
|
field: any;
|
|
142
148
|
readOnly?: boolean;
|
|
143
|
-
}) =>
|
|
149
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
144
150
|
radio: ({
|
|
145
151
|
onChange,
|
|
146
152
|
value,
|
|
@@ -158,7 +164,7 @@ declare const createPuckOverridesPlugin: () => {
|
|
|
158
164
|
};
|
|
159
165
|
}) & {
|
|
160
166
|
label: string;
|
|
161
|
-
}) =>
|
|
167
|
+
}) => react_jsx_runtime17.JSX.Element | null;
|
|
162
168
|
select: ({
|
|
163
169
|
onChange,
|
|
164
170
|
value,
|
|
@@ -171,7 +177,7 @@ declare const createPuckOverridesPlugin: () => {
|
|
|
171
177
|
label: string;
|
|
172
178
|
field: any;
|
|
173
179
|
readOnly?: boolean;
|
|
174
|
-
}) =>
|
|
180
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
175
181
|
text: ({
|
|
176
182
|
onChange,
|
|
177
183
|
value,
|
|
@@ -184,7 +190,7 @@ declare const createPuckOverridesPlugin: () => {
|
|
|
184
190
|
label?: string;
|
|
185
191
|
field: any;
|
|
186
192
|
readOnly?: boolean;
|
|
187
|
-
}) =>
|
|
193
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
188
194
|
textarea: ({
|
|
189
195
|
onChange,
|
|
190
196
|
value,
|
|
@@ -197,7 +203,7 @@ declare const createPuckOverridesPlugin: () => {
|
|
|
197
203
|
label: string;
|
|
198
204
|
field: any;
|
|
199
205
|
readOnly?: boolean;
|
|
200
|
-
}) =>
|
|
206
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
201
207
|
};
|
|
202
208
|
};
|
|
203
209
|
};
|
|
@@ -205,11 +211,15 @@ declare const createPuckOverridesPlugin: () => {
|
|
|
205
211
|
//#region src/components/Fields/Label/index.d.ts
|
|
206
212
|
declare const Label: ({
|
|
207
213
|
label,
|
|
208
|
-
readOnly
|
|
214
|
+
readOnly,
|
|
215
|
+
tooltip,
|
|
216
|
+
action
|
|
209
217
|
}: {
|
|
210
218
|
label?: string;
|
|
211
219
|
readOnly?: boolean;
|
|
212
|
-
|
|
220
|
+
tooltip?: string;
|
|
221
|
+
action?: React$1.ReactNode;
|
|
222
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
213
223
|
//#endregion
|
|
214
224
|
//#region src/components/Fields/Input/index.d.ts
|
|
215
225
|
declare const FieldInput: ({
|
|
@@ -224,7 +234,7 @@ declare const FieldInput: ({
|
|
|
224
234
|
label?: string;
|
|
225
235
|
field: any;
|
|
226
236
|
readOnly?: boolean;
|
|
227
|
-
}) =>
|
|
237
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
228
238
|
//#endregion
|
|
229
239
|
//#region src/components/Fields/Textarea/index.d.ts
|
|
230
240
|
declare const FieldTextarea: ({
|
|
@@ -239,7 +249,7 @@ declare const FieldTextarea: ({
|
|
|
239
249
|
label: string;
|
|
240
250
|
field: any;
|
|
241
251
|
readOnly?: boolean;
|
|
242
|
-
}) =>
|
|
252
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
243
253
|
//#endregion
|
|
244
254
|
//#region src/components/Fields/Select/index.d.ts
|
|
245
255
|
declare const FieldSelect: ({
|
|
@@ -254,7 +264,7 @@ declare const FieldSelect: ({
|
|
|
254
264
|
label: string;
|
|
255
265
|
field: any;
|
|
256
266
|
readOnly?: boolean;
|
|
257
|
-
}) =>
|
|
267
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
258
268
|
//#endregion
|
|
259
269
|
//#region src/components/ui/radio.d.ts
|
|
260
270
|
type RadioLayout = "horizontal" | "inline";
|
|
@@ -268,12 +278,12 @@ declare function RadioGroup({
|
|
|
268
278
|
className,
|
|
269
279
|
layout,
|
|
270
280
|
...props
|
|
271
|
-
}: RadioGroupProps):
|
|
281
|
+
}: RadioGroupProps): react_jsx_runtime17.JSX.Element;
|
|
272
282
|
declare function RadioGroupItem({
|
|
273
283
|
className,
|
|
274
284
|
layout,
|
|
275
285
|
...props
|
|
276
|
-
}: RadioGroupItemProps):
|
|
286
|
+
}: RadioGroupItemProps): react_jsx_runtime17.JSX.Element;
|
|
277
287
|
//#endregion
|
|
278
288
|
//#region src/components/Fields/Radio/index.d.ts
|
|
279
289
|
type RadioProps = FieldProps<Field<any>> & {
|
|
@@ -294,7 +304,7 @@ declare const FieldRadio: ({
|
|
|
294
304
|
label
|
|
295
305
|
}: RadioProps & {
|
|
296
306
|
label: string;
|
|
297
|
-
}) =>
|
|
307
|
+
}) => react_jsx_runtime17.JSX.Element | null;
|
|
298
308
|
//#endregion
|
|
299
309
|
//#region src/components/ui/checkbox.d.ts
|
|
300
310
|
type CheckboxLayout = "horizontal" | "inline";
|
|
@@ -305,7 +315,7 @@ declare function Checkbox({
|
|
|
305
315
|
className,
|
|
306
316
|
layout,
|
|
307
317
|
...props
|
|
308
|
-
}: CheckboxProps$1):
|
|
318
|
+
}: CheckboxProps$1): react_jsx_runtime17.JSX.Element;
|
|
309
319
|
//#endregion
|
|
310
320
|
//#region src/components/Fields/Checkbox/index.d.ts
|
|
311
321
|
type CheckboxProps = FieldProps<Field<any>> & {
|
|
@@ -316,6 +326,8 @@ type CheckboxProps = FieldProps<Field<any>> & {
|
|
|
316
326
|
value: any;
|
|
317
327
|
}>;
|
|
318
328
|
layout?: CheckboxLayout;
|
|
329
|
+
readOnly?: boolean;
|
|
330
|
+
tooltip?: string;
|
|
319
331
|
};
|
|
320
332
|
};
|
|
321
333
|
declare const FieldCheckbox: ({
|
|
@@ -326,7 +338,7 @@ declare const FieldCheckbox: ({
|
|
|
326
338
|
label
|
|
327
339
|
}: CheckboxProps & {
|
|
328
340
|
label: string;
|
|
329
|
-
}) =>
|
|
341
|
+
}) => react_jsx_runtime17.JSX.Element | null;
|
|
330
342
|
//#endregion
|
|
331
343
|
//#region src/components/RichTextMenuLink/index.d.ts
|
|
332
344
|
type RichTextMenuLinkProps = {
|
|
@@ -335,7 +347,7 @@ type RichTextMenuLinkProps = {
|
|
|
335
347
|
declare function RichTextMenuLink({
|
|
336
348
|
editor,
|
|
337
349
|
...props
|
|
338
|
-
}: RichTextMenuLinkProps & Omit<ComponentProps<"div">, keyof RichTextMenuLinkProps>):
|
|
350
|
+
}: RichTextMenuLinkProps & Omit<ComponentProps<"div">, keyof RichTextMenuLinkProps>): react_jsx_runtime17.JSX.Element;
|
|
339
351
|
//#endregion
|
|
340
352
|
//#region src/components/RichTextMenuColorPicker/index.d.ts
|
|
341
353
|
type RichTextMenuColorPickerProps = {
|
|
@@ -350,7 +362,7 @@ declare const richTextMenuColorPickerExtension: (_tiptap_core0.Mark<_tiptap_exte
|
|
|
350
362
|
declare function RichTextMenuColorPicker({
|
|
351
363
|
editor,
|
|
352
364
|
...props
|
|
353
|
-
}: RichTextMenuColorPickerProps & Omit<ComponentProps<"div">, keyof RichTextMenuColorPickerProps>):
|
|
365
|
+
}: RichTextMenuColorPickerProps & Omit<ComponentProps<"div">, keyof RichTextMenuColorPickerProps>): react_jsx_runtime17.JSX.Element;
|
|
354
366
|
//#endregion
|
|
355
367
|
//#region src/components/MediaPicker/index.d.ts
|
|
356
368
|
type MediaItem = {
|
|
@@ -360,10 +372,19 @@ type MediaItem = {
|
|
|
360
372
|
thumbnail: string;
|
|
361
373
|
type: string;
|
|
362
374
|
};
|
|
375
|
+
/**
|
|
376
|
+
* Référence stable vers un média — ne contient jamais l'URL,
|
|
377
|
+
* qui peut changer. Utiliser `useMediaUrl` pour la résolution dynamique.
|
|
378
|
+
*/
|
|
379
|
+
type MediaReference = {
|
|
380
|
+
id: number;
|
|
381
|
+
name: string;
|
|
382
|
+
thumbnail?: string;
|
|
383
|
+
};
|
|
363
384
|
type MediaPickerValue = {
|
|
364
385
|
type?: "url" | "media";
|
|
365
386
|
url?: string;
|
|
366
|
-
media?:
|
|
387
|
+
media?: MediaReference | null;
|
|
367
388
|
};
|
|
368
389
|
type MediaPickerProps = {
|
|
369
390
|
value?: MediaPickerValue;
|
|
@@ -378,8 +399,27 @@ declare const MediaPicker: ({
|
|
|
378
399
|
mediaType,
|
|
379
400
|
acceptedTypes,
|
|
380
401
|
maxSize
|
|
381
|
-
}: MediaPickerProps) =>
|
|
402
|
+
}: MediaPickerProps) => react_jsx_runtime17.JSX.Element;
|
|
403
|
+
/**
|
|
404
|
+
* Retourne l'URL directe si le type est "url".
|
|
405
|
+
* Pour les références média (`type: "media"`), utiliser `useMediaUrl` à la place.
|
|
406
|
+
*/
|
|
382
407
|
declare const getMediaUrl: (value?: MediaPickerValue) => string | undefined;
|
|
408
|
+
/**
|
|
409
|
+
* Hook React qui résout dynamiquement l'URL courante d'un `MediaPickerValue`.
|
|
410
|
+
*
|
|
411
|
+
* Pour les références média (`type: "media"`), l'URL est récupérée depuis
|
|
412
|
+
* l'API à partir de l'`id` du média — ce qui garantit que le lien reste
|
|
413
|
+
* valide même si l'URL du fichier a été modifiée après la sélection.
|
|
414
|
+
*
|
|
415
|
+
* @example
|
|
416
|
+
* const { url, loading } = useMediaUrl(value)
|
|
417
|
+
* return loading ? <Spinner /> : <img src={url} />
|
|
418
|
+
*/
|
|
419
|
+
declare const useMediaUrl: (value?: MediaPickerValue) => {
|
|
420
|
+
url: string | undefined;
|
|
421
|
+
loading: boolean;
|
|
422
|
+
};
|
|
383
423
|
//#endregion
|
|
384
424
|
//#region src/components/PagePicker/index.d.ts
|
|
385
425
|
type PageItem = {
|
|
@@ -410,7 +450,7 @@ type PagePickerProps = {
|
|
|
410
450
|
declare const PagePicker: ({
|
|
411
451
|
value,
|
|
412
452
|
onChange
|
|
413
|
-
}: PagePickerProps) =>
|
|
453
|
+
}: PagePickerProps) => react_jsx_runtime17.JSX.Element;
|
|
414
454
|
/**
|
|
415
455
|
* Hook React qui résout dynamiquement l'URL courante d'un `PagePickerValue`.
|
|
416
456
|
*
|
|
@@ -437,7 +477,7 @@ declare const ActionBar: {
|
|
|
437
477
|
label?: string;
|
|
438
478
|
parentAction?: ReactNode;
|
|
439
479
|
children?: ReactNode;
|
|
440
|
-
}):
|
|
480
|
+
}): react_jsx_runtime17.JSX.Element;
|
|
441
481
|
Action: ({
|
|
442
482
|
children,
|
|
443
483
|
label,
|
|
@@ -445,19 +485,19 @@ declare const ActionBar: {
|
|
|
445
485
|
}: {
|
|
446
486
|
children: ReactNode;
|
|
447
487
|
label?: string;
|
|
448
|
-
onClick
|
|
449
|
-
}) =>
|
|
488
|
+
onClick?: (e: SyntheticEvent) => void;
|
|
489
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
450
490
|
Label: ({
|
|
451
491
|
label
|
|
452
492
|
}: {
|
|
453
493
|
label: string;
|
|
454
|
-
}) =>
|
|
494
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
455
495
|
Group: ({
|
|
456
496
|
children
|
|
457
497
|
}: {
|
|
458
498
|
children: ReactNode;
|
|
459
|
-
}) =>
|
|
460
|
-
Separator: () =>
|
|
499
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
500
|
+
Separator: () => react_jsx_runtime17.JSX.Element;
|
|
461
501
|
};
|
|
462
502
|
//#endregion
|
|
463
503
|
//#region src/components/DrawerItem/index.d.ts
|
|
@@ -467,7 +507,7 @@ declare const DrawerItem: ({
|
|
|
467
507
|
}: {
|
|
468
508
|
name: string;
|
|
469
509
|
icon?: React.ReactNode;
|
|
470
|
-
}) =>
|
|
510
|
+
}) => react_jsx_runtime17.JSX.Element;
|
|
471
511
|
//#endregion
|
|
472
512
|
//#region src/components/FieldGroups/index.d.ts
|
|
473
513
|
type ItemSelector = {
|
|
@@ -481,7 +521,7 @@ type FieldGroupsProps = {
|
|
|
481
521
|
};
|
|
482
522
|
declare const FieldGroups: ({
|
|
483
523
|
children
|
|
484
|
-
}: FieldGroupsProps) =>
|
|
524
|
+
}: FieldGroupsProps) => react_jsx_runtime17.JSX.Element;
|
|
485
525
|
//#endregion
|
|
486
526
|
//#region src/components/PickerModal/index.d.ts
|
|
487
527
|
type PickerModalProps<T extends {
|
|
@@ -535,7 +575,7 @@ declare function PickerModal<T extends {
|
|
|
535
575
|
emptyIcon,
|
|
536
576
|
emptyMessage,
|
|
537
577
|
footer
|
|
538
|
-
}: PickerModalProps<T>):
|
|
578
|
+
}: PickerModalProps<T>): react_jsx_runtime17.JSX.Element;
|
|
539
579
|
//#endregion
|
|
540
580
|
//#region src/components/ColorPicker/index.d.ts
|
|
541
581
|
type ColorPickerProps = {
|
|
@@ -559,95 +599,21 @@ declare const ColorPickerContent: React$1.FC<ColorPickerContentProps>;
|
|
|
559
599
|
declare const ColorPicker: React$1.FC<ColorPickerProps>;
|
|
560
600
|
//#endregion
|
|
561
601
|
//#region src/components/ui/accordion.d.ts
|
|
562
|
-
declare
|
|
563
|
-
none: string;
|
|
564
|
-
fade: string[];
|
|
565
|
-
scale: string[];
|
|
566
|
-
slide: string[];
|
|
567
|
-
perspective: string[];
|
|
568
|
-
perspectiveBlur: string[];
|
|
569
|
-
};
|
|
570
|
-
declare const cssTransitionPresets$1: {
|
|
571
|
-
inExpo: string;
|
|
572
|
-
outExpo: string;
|
|
573
|
-
inOutExpo: string;
|
|
574
|
-
anticipate: string;
|
|
575
|
-
quickOut: string;
|
|
576
|
-
overshootOut: string;
|
|
577
|
-
swiftOut: string;
|
|
578
|
-
snappyOut: string;
|
|
579
|
-
in: string;
|
|
580
|
-
out: string;
|
|
581
|
-
inOut: string;
|
|
582
|
-
outIn: string;
|
|
583
|
-
inQuad: string;
|
|
584
|
-
outQuad: string;
|
|
585
|
-
inOutQuad: string;
|
|
586
|
-
inCubic: string;
|
|
587
|
-
outCubic: string;
|
|
588
|
-
inOutCubic: string;
|
|
589
|
-
inQuart: string;
|
|
590
|
-
outQuart: string;
|
|
591
|
-
inOutQuart: string;
|
|
592
|
-
inQuint: string;
|
|
593
|
-
outQuint: string;
|
|
594
|
-
inOutQuint: string;
|
|
595
|
-
inCirc: string;
|
|
596
|
-
outCirc: string;
|
|
597
|
-
inOutCirc: string;
|
|
598
|
-
inOutBase: string;
|
|
599
|
-
};
|
|
600
|
-
type CSSAnimationPreset = keyof typeof cssAnimationPresets$1;
|
|
601
|
-
type CSSTransitionPreset = keyof typeof cssTransitionPresets$1;
|
|
602
|
-
type AccordionVariant = "default" | "card" | "swiss";
|
|
603
|
-
interface AccordionProps extends Accordion$1.Root.Props {
|
|
604
|
-
animationPreset?: CSSAnimationPreset;
|
|
605
|
-
transitionPreset?: CSSTransitionPreset;
|
|
606
|
-
reduceMotion?: boolean;
|
|
607
|
-
variant?: AccordionVariant;
|
|
608
|
-
}
|
|
609
|
-
declare function Accordion({
|
|
610
|
-
value,
|
|
611
|
-
defaultValue,
|
|
612
|
-
onValueChange,
|
|
613
|
-
animationPreset,
|
|
614
|
-
transitionPreset,
|
|
615
|
-
reduceMotion,
|
|
616
|
-
variant,
|
|
617
|
-
className,
|
|
618
|
-
multiple,
|
|
619
|
-
...props
|
|
620
|
-
}: AccordionProps): react_jsx_runtime3.JSX.Element;
|
|
621
|
-
interface AccordionItemProps extends Accordion$1.Item.Props {}
|
|
602
|
+
declare function Accordion(props: AccordionPrimitive.Root.Props): React$1.ReactElement;
|
|
622
603
|
declare function AccordionItem({
|
|
623
|
-
value: itemValue,
|
|
624
|
-
onOpenChange,
|
|
625
|
-
className,
|
|
626
|
-
...rest
|
|
627
|
-
}: AccordionItemProps): react_jsx_runtime3.JSX.Element;
|
|
628
|
-
interface AccordionHeaderProps extends Accordion$1.Header.Props {}
|
|
629
|
-
declare function AccordionHeader({
|
|
630
604
|
className,
|
|
631
605
|
...props
|
|
632
|
-
}:
|
|
633
|
-
interface AccordionTriggerProps extends Accordion$1.Trigger.Props {
|
|
634
|
-
icon?: (props: {
|
|
635
|
-
open: boolean;
|
|
636
|
-
}) => React$1.ReactNode;
|
|
637
|
-
}
|
|
606
|
+
}: AccordionPrimitive.Item.Props): React$1.ReactElement;
|
|
638
607
|
declare function AccordionTrigger({
|
|
639
608
|
className,
|
|
640
|
-
icon,
|
|
641
609
|
children,
|
|
642
610
|
...props
|
|
643
|
-
}:
|
|
644
|
-
interface AccordionPanelProps extends Accordion$1.Panel.Props {}
|
|
611
|
+
}: AccordionPrimitive.Trigger.Props): React$1.ReactElement;
|
|
645
612
|
declare function AccordionPanel({
|
|
646
613
|
className,
|
|
647
614
|
children,
|
|
648
|
-
style,
|
|
649
615
|
...props
|
|
650
|
-
}:
|
|
616
|
+
}: AccordionPrimitive.Panel.Props): React$1.ReactElement;
|
|
651
617
|
//#endregion
|
|
652
618
|
//#region src/components/ui/badge.d.ts
|
|
653
619
|
declare const badgeVariants: (props?: ({
|
|
@@ -685,7 +651,7 @@ declare function Button({
|
|
|
685
651
|
//#endregion
|
|
686
652
|
//#region src/components/ui/dialog.d.ts
|
|
687
653
|
declare const Dialog: typeof Dialog$1.Root;
|
|
688
|
-
declare function DialogTrigger(props: Dialog$1.Trigger.Props):
|
|
654
|
+
declare function DialogTrigger(props: Dialog$1.Trigger.Props): react_jsx_runtime17.JSX.Element;
|
|
689
655
|
declare function DialogPopup({
|
|
690
656
|
className,
|
|
691
657
|
children,
|
|
@@ -695,59 +661,59 @@ declare function DialogPopup({
|
|
|
695
661
|
}: Dialog$1.Popup.Props & {
|
|
696
662
|
showCloseButton?: boolean;
|
|
697
663
|
bottomStickOnMobile?: boolean;
|
|
698
|
-
}):
|
|
664
|
+
}): react_jsx_runtime17.JSX.Element;
|
|
699
665
|
declare function DialogHeader({
|
|
700
666
|
className,
|
|
701
667
|
...props
|
|
702
|
-
}: React.ComponentProps<"div">):
|
|
668
|
+
}: React.ComponentProps<"div">): react_jsx_runtime17.JSX.Element;
|
|
703
669
|
declare function DialogFooter({
|
|
704
670
|
className,
|
|
705
671
|
variant,
|
|
706
672
|
...props
|
|
707
673
|
}: React.ComponentProps<"div"> & {
|
|
708
674
|
variant?: "default" | "bare";
|
|
709
|
-
}):
|
|
675
|
+
}): react_jsx_runtime17.JSX.Element;
|
|
710
676
|
declare function DialogTitle({
|
|
711
677
|
className,
|
|
712
678
|
...props
|
|
713
|
-
}: Dialog$1.Title.Props):
|
|
679
|
+
}: Dialog$1.Title.Props): react_jsx_runtime17.JSX.Element;
|
|
714
680
|
declare function DialogDescription({
|
|
715
681
|
className,
|
|
716
682
|
...props
|
|
717
|
-
}: Dialog$1.Description.Props):
|
|
683
|
+
}: Dialog$1.Description.Props): react_jsx_runtime17.JSX.Element;
|
|
718
684
|
declare function DialogPanel({
|
|
719
685
|
className,
|
|
720
686
|
scrollFade,
|
|
721
687
|
...props
|
|
722
688
|
}: React.ComponentProps<"div"> & {
|
|
723
689
|
scrollFade?: boolean;
|
|
724
|
-
}):
|
|
690
|
+
}): react_jsx_runtime17.JSX.Element;
|
|
725
691
|
//#endregion
|
|
726
692
|
//#region src/components/ui/frame.d.ts
|
|
727
693
|
declare function Frame({
|
|
728
694
|
className,
|
|
729
695
|
...props
|
|
730
|
-
}: react0.ComponentProps<"div">):
|
|
696
|
+
}: react0.ComponentProps<"div">): react_jsx_runtime17.JSX.Element;
|
|
731
697
|
declare function FramePanel({
|
|
732
698
|
className,
|
|
733
699
|
...props
|
|
734
|
-
}: react0.ComponentProps<"div">):
|
|
700
|
+
}: react0.ComponentProps<"div">): react_jsx_runtime17.JSX.Element;
|
|
735
701
|
declare function FrameHeader({
|
|
736
702
|
className,
|
|
737
703
|
...props
|
|
738
|
-
}: react0.ComponentProps<"header">):
|
|
704
|
+
}: react0.ComponentProps<"header">): react_jsx_runtime17.JSX.Element;
|
|
739
705
|
declare function FrameTitle({
|
|
740
706
|
className,
|
|
741
707
|
...props
|
|
742
|
-
}: react0.ComponentProps<"div">):
|
|
708
|
+
}: react0.ComponentProps<"div">): react_jsx_runtime17.JSX.Element;
|
|
743
709
|
declare function FrameDescription({
|
|
744
710
|
className,
|
|
745
711
|
...props
|
|
746
|
-
}: react0.ComponentProps<"div">):
|
|
712
|
+
}: react0.ComponentProps<"div">): react_jsx_runtime17.JSX.Element;
|
|
747
713
|
declare function FrameFooter({
|
|
748
714
|
className,
|
|
749
715
|
...props
|
|
750
|
-
}: react0.ComponentProps<"footer">):
|
|
716
|
+
}: react0.ComponentProps<"footer">): react_jsx_runtime17.JSX.Element;
|
|
751
717
|
//#endregion
|
|
752
718
|
//#region src/components/ui/input.d.ts
|
|
753
719
|
type InputProps = Omit<Input$1.Props & react0.RefAttributes<HTMLInputElement>, "size"> & {
|
|
@@ -761,7 +727,7 @@ declare function Input({
|
|
|
761
727
|
unstyled,
|
|
762
728
|
nativeInput,
|
|
763
729
|
...props
|
|
764
|
-
}: InputProps):
|
|
730
|
+
}: InputProps): react_jsx_runtime17.JSX.Element;
|
|
765
731
|
//#endregion
|
|
766
732
|
//#region src/components/ui/textarea.d.ts
|
|
767
733
|
type TextareaProps = react0.ComponentProps<"textarea"> & {
|
|
@@ -773,13 +739,13 @@ declare function Textarea({
|
|
|
773
739
|
size,
|
|
774
740
|
unstyled,
|
|
775
741
|
...props
|
|
776
|
-
}: TextareaProps):
|
|
742
|
+
}: TextareaProps): react_jsx_runtime17.JSX.Element;
|
|
777
743
|
//#endregion
|
|
778
744
|
//#region src/components/ui/input-group.d.ts
|
|
779
745
|
declare function InputGroup({
|
|
780
746
|
className,
|
|
781
747
|
...props
|
|
782
|
-
}: react0.ComponentProps<"div">):
|
|
748
|
+
}: react0.ComponentProps<"div">): react_jsx_runtime17.JSX.Element;
|
|
783
749
|
declare const inputGroupAddonVariants: (props?: ({
|
|
784
750
|
align?: "inline-start" | "block-end" | "block-start" | "inline-end" | null | undefined;
|
|
785
751
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
@@ -787,25 +753,27 @@ declare function InputGroupAddon({
|
|
|
787
753
|
className,
|
|
788
754
|
align,
|
|
789
755
|
...props
|
|
790
|
-
}: react0.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>):
|
|
756
|
+
}: react0.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime17.JSX.Element;
|
|
791
757
|
declare function InputGroupText({
|
|
792
758
|
className,
|
|
793
759
|
...props
|
|
794
|
-
}: react0.ComponentProps<"span">):
|
|
760
|
+
}: react0.ComponentProps<"span">): react_jsx_runtime17.JSX.Element;
|
|
795
761
|
declare function InputGroupInput({
|
|
796
762
|
className,
|
|
797
763
|
...props
|
|
798
|
-
}: InputProps):
|
|
764
|
+
}: InputProps): react_jsx_runtime17.JSX.Element;
|
|
799
765
|
declare function InputGroupTextarea({
|
|
800
766
|
className,
|
|
801
767
|
...props
|
|
802
|
-
}: TextareaProps):
|
|
768
|
+
}: TextareaProps): react_jsx_runtime17.JSX.Element;
|
|
803
769
|
//#endregion
|
|
804
770
|
//#region src/components/ui/menu.d.ts
|
|
805
|
-
declare const
|
|
806
|
-
declare
|
|
807
|
-
|
|
808
|
-
|
|
771
|
+
declare const Menu: typeof MenuPrimitive.Root;
|
|
772
|
+
declare function MenuTrigger({
|
|
773
|
+
className,
|
|
774
|
+
children,
|
|
775
|
+
...props
|
|
776
|
+
}: MenuPrimitive.Trigger.Props): react0.ReactElement;
|
|
809
777
|
declare function MenuPopup({
|
|
810
778
|
children,
|
|
811
779
|
className,
|
|
@@ -813,86 +781,86 @@ declare function MenuPopup({
|
|
|
813
781
|
align,
|
|
814
782
|
alignOffset,
|
|
815
783
|
side,
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
784
|
+
anchor,
|
|
785
|
+
portalProps,
|
|
786
|
+
...props
|
|
787
|
+
}: MenuPrimitive.Popup.Props & {
|
|
788
|
+
align?: MenuPrimitive.Positioner.Props["align"];
|
|
789
|
+
sideOffset?: MenuPrimitive.Positioner.Props["sideOffset"];
|
|
790
|
+
alignOffset?: MenuPrimitive.Positioner.Props["alignOffset"];
|
|
791
|
+
side?: MenuPrimitive.Positioner.Props["side"];
|
|
792
|
+
anchor?: MenuPrimitive.Positioner.Props["anchor"];
|
|
793
|
+
portalProps?: MenuPrimitive.Portal.Props;
|
|
794
|
+
}): react0.ReactElement;
|
|
795
|
+
declare function MenuGroup(props: MenuPrimitive.Group.Props): react0.ReactElement;
|
|
824
796
|
declare function MenuItem({
|
|
825
797
|
className,
|
|
826
798
|
inset,
|
|
827
799
|
variant,
|
|
828
800
|
...props
|
|
829
|
-
}:
|
|
801
|
+
}: MenuPrimitive.Item.Props & {
|
|
830
802
|
inset?: boolean;
|
|
831
803
|
variant?: "default" | "destructive";
|
|
832
|
-
}):
|
|
804
|
+
}): react0.ReactElement;
|
|
833
805
|
declare function MenuCheckboxItem({
|
|
834
806
|
className,
|
|
835
807
|
children,
|
|
836
808
|
checked,
|
|
837
809
|
variant,
|
|
838
810
|
...props
|
|
839
|
-
}:
|
|
811
|
+
}: MenuPrimitive.CheckboxItem.Props & {
|
|
840
812
|
variant?: "default" | "switch";
|
|
841
|
-
}):
|
|
842
|
-
declare function MenuRadioGroup(props:
|
|
813
|
+
}): react0.ReactElement;
|
|
814
|
+
declare function MenuRadioGroup(props: MenuPrimitive.RadioGroup.Props): react0.ReactElement;
|
|
843
815
|
declare function MenuRadioItem({
|
|
844
816
|
className,
|
|
845
817
|
children,
|
|
846
818
|
...props
|
|
847
|
-
}:
|
|
819
|
+
}: MenuPrimitive.RadioItem.Props): react0.ReactElement;
|
|
848
820
|
declare function MenuGroupLabel({
|
|
849
821
|
className,
|
|
850
822
|
inset,
|
|
851
823
|
...props
|
|
852
|
-
}:
|
|
824
|
+
}: MenuPrimitive.GroupLabel.Props & {
|
|
853
825
|
inset?: boolean;
|
|
854
|
-
}):
|
|
826
|
+
}): react0.ReactElement;
|
|
855
827
|
declare function MenuSeparator({
|
|
856
828
|
className,
|
|
857
829
|
...props
|
|
858
|
-
}:
|
|
859
|
-
declare function
|
|
860
|
-
className,
|
|
861
|
-
...props
|
|
862
|
-
}: react0.ComponentProps<"kbd">): react_jsx_runtime3.JSX.Element;
|
|
863
|
-
declare function MenuSub(props: Menu$1.SubmenuRoot.Props): react_jsx_runtime3.JSX.Element;
|
|
830
|
+
}: MenuPrimitive.Separator.Props): react0.ReactElement;
|
|
831
|
+
declare function MenuSub(props: MenuPrimitive.SubmenuRoot.Props): react0.ReactElement;
|
|
864
832
|
declare function MenuSubTrigger({
|
|
865
833
|
className,
|
|
866
834
|
inset,
|
|
867
835
|
children,
|
|
868
836
|
...props
|
|
869
|
-
}:
|
|
837
|
+
}: MenuPrimitive.SubmenuTrigger.Props & {
|
|
870
838
|
inset?: boolean;
|
|
871
|
-
}):
|
|
839
|
+
}): react0.ReactElement;
|
|
872
840
|
declare function MenuSubPopup({
|
|
873
841
|
className,
|
|
874
842
|
sideOffset,
|
|
875
843
|
alignOffset,
|
|
876
844
|
align,
|
|
877
845
|
...props
|
|
878
|
-
}:
|
|
879
|
-
align?:
|
|
880
|
-
sideOffset?:
|
|
881
|
-
alignOffset?:
|
|
882
|
-
}):
|
|
846
|
+
}: MenuPrimitive.Popup.Props & {
|
|
847
|
+
align?: MenuPrimitive.Positioner.Props["align"];
|
|
848
|
+
sideOffset?: MenuPrimitive.Positioner.Props["sideOffset"];
|
|
849
|
+
alignOffset?: MenuPrimitive.Positioner.Props["alignOffset"];
|
|
850
|
+
}): react0.ReactElement;
|
|
883
851
|
//#endregion
|
|
884
852
|
//#region src/components/ui/pagination.d.ts
|
|
885
853
|
declare function Pagination({
|
|
886
854
|
className,
|
|
887
855
|
...props
|
|
888
|
-
}: react0.ComponentProps<"nav">):
|
|
856
|
+
}: react0.ComponentProps<"nav">): react_jsx_runtime17.JSX.Element;
|
|
889
857
|
declare function PaginationContent({
|
|
890
858
|
className,
|
|
891
859
|
...props
|
|
892
|
-
}: react0.ComponentProps<"ul">):
|
|
860
|
+
}: react0.ComponentProps<"ul">): react_jsx_runtime17.JSX.Element;
|
|
893
861
|
declare function PaginationItem({
|
|
894
862
|
...props
|
|
895
|
-
}: react0.ComponentProps<"li">):
|
|
863
|
+
}: react0.ComponentProps<"li">): react_jsx_runtime17.JSX.Element;
|
|
896
864
|
type PaginationLinkProps = {
|
|
897
865
|
isActive?: boolean;
|
|
898
866
|
size?: react0.ComponentProps<typeof Button>["size"];
|
|
@@ -907,20 +875,20 @@ declare function PaginationLink({
|
|
|
907
875
|
declare function PaginationPrevious({
|
|
908
876
|
className,
|
|
909
877
|
...props
|
|
910
|
-
}: react0.ComponentProps<typeof PaginationLink>):
|
|
878
|
+
}: react0.ComponentProps<typeof PaginationLink>): react_jsx_runtime17.JSX.Element;
|
|
911
879
|
declare function PaginationNext({
|
|
912
880
|
className,
|
|
913
881
|
...props
|
|
914
|
-
}: react0.ComponentProps<typeof PaginationLink>):
|
|
882
|
+
}: react0.ComponentProps<typeof PaginationLink>): react_jsx_runtime17.JSX.Element;
|
|
915
883
|
declare function PaginationEllipsis({
|
|
916
884
|
className,
|
|
917
885
|
...props
|
|
918
|
-
}: react0.ComponentProps<"span">):
|
|
886
|
+
}: react0.ComponentProps<"span">): react_jsx_runtime17.JSX.Element;
|
|
919
887
|
//#endregion
|
|
920
888
|
//#region src/components/ui/popover.d.ts
|
|
921
889
|
declare const PopoverCreateHandle: typeof Popover$1.createHandle;
|
|
922
890
|
declare const Popover: typeof Popover$1.Root;
|
|
923
|
-
declare function PopoverTrigger(props: Popover$1.Trigger.Props):
|
|
891
|
+
declare function PopoverTrigger(props: Popover$1.Trigger.Props): react_jsx_runtime17.JSX.Element;
|
|
924
892
|
declare function PopoverPopup({
|
|
925
893
|
children,
|
|
926
894
|
className,
|
|
@@ -936,18 +904,18 @@ declare function PopoverPopup({
|
|
|
936
904
|
sideOffset?: Popover$1.Positioner.Props["sideOffset"];
|
|
937
905
|
alignOffset?: Popover$1.Positioner.Props["alignOffset"];
|
|
938
906
|
tooltipStyle?: boolean;
|
|
939
|
-
}):
|
|
907
|
+
}): react_jsx_runtime17.JSX.Element;
|
|
940
908
|
declare function PopoverClose({
|
|
941
909
|
...props
|
|
942
|
-
}: Popover$1.Close.Props):
|
|
910
|
+
}: Popover$1.Close.Props): react_jsx_runtime17.JSX.Element;
|
|
943
911
|
declare function PopoverTitle({
|
|
944
912
|
className,
|
|
945
913
|
...props
|
|
946
|
-
}: Popover$1.Title.Props):
|
|
914
|
+
}: Popover$1.Title.Props): react_jsx_runtime17.JSX.Element;
|
|
947
915
|
declare function PopoverDescription({
|
|
948
916
|
className,
|
|
949
917
|
...props
|
|
950
|
-
}: Popover$1.Description.Props):
|
|
918
|
+
}: Popover$1.Description.Props): react_jsx_runtime17.JSX.Element;
|
|
951
919
|
//#endregion
|
|
952
920
|
//#region src/components/ui/scroll-area.d.ts
|
|
953
921
|
declare function ScrollArea({
|
|
@@ -959,12 +927,12 @@ declare function ScrollArea({
|
|
|
959
927
|
}: ScrollArea$1.Root.Props & {
|
|
960
928
|
scrollFade?: boolean;
|
|
961
929
|
scrollbarGutter?: boolean;
|
|
962
|
-
}):
|
|
930
|
+
}): react_jsx_runtime17.JSX.Element;
|
|
963
931
|
declare function ScrollBar({
|
|
964
932
|
className,
|
|
965
933
|
orientation,
|
|
966
934
|
...props
|
|
967
|
-
}: ScrollArea$1.Scrollbar.Props):
|
|
935
|
+
}: ScrollArea$1.Scrollbar.Props): react_jsx_runtime17.JSX.Element;
|
|
968
936
|
//#endregion
|
|
969
937
|
//#region src/components/ui/select.d.ts
|
|
970
938
|
declare const Select: typeof Select$1.Root;
|
|
@@ -976,11 +944,11 @@ declare function SelectTrigger({
|
|
|
976
944
|
size,
|
|
977
945
|
children,
|
|
978
946
|
...props
|
|
979
|
-
}: Select$1.Trigger.Props & VariantProps<typeof selectTriggerVariants>):
|
|
947
|
+
}: Select$1.Trigger.Props & VariantProps<typeof selectTriggerVariants>): react_jsx_runtime17.JSX.Element;
|
|
980
948
|
declare function SelectValue({
|
|
981
949
|
className,
|
|
982
950
|
...props
|
|
983
|
-
}: Select$1.Value.Props):
|
|
951
|
+
}: Select$1.Value.Props): react_jsx_runtime17.JSX.Element;
|
|
984
952
|
declare function SelectPopup({
|
|
985
953
|
className,
|
|
986
954
|
children,
|
|
@@ -998,72 +966,72 @@ declare function SelectPopup({
|
|
|
998
966
|
alignOffset?: Select$1.Positioner.Props["alignOffset"];
|
|
999
967
|
alignItemWithTrigger?: Select$1.Positioner.Props["alignItemWithTrigger"];
|
|
1000
968
|
anchor?: Select$1.Positioner.Props["anchor"];
|
|
1001
|
-
}):
|
|
969
|
+
}): react_jsx_runtime17.JSX.Element;
|
|
1002
970
|
declare function SelectItem({
|
|
1003
971
|
className,
|
|
1004
972
|
children,
|
|
1005
973
|
...props
|
|
1006
|
-
}: Select$1.Item.Props):
|
|
974
|
+
}: Select$1.Item.Props): react_jsx_runtime17.JSX.Element;
|
|
1007
975
|
declare function SelectSeparator({
|
|
1008
976
|
className,
|
|
1009
977
|
...props
|
|
1010
|
-
}: Select$1.Separator.Props):
|
|
1011
|
-
declare function SelectGroup(props: Select$1.Group.Props):
|
|
1012
|
-
declare function SelectGroupLabel(props: Select$1.GroupLabel.Props):
|
|
978
|
+
}: Select$1.Separator.Props): react_jsx_runtime17.JSX.Element;
|
|
979
|
+
declare function SelectGroup(props: Select$1.Group.Props): react_jsx_runtime17.JSX.Element;
|
|
980
|
+
declare function SelectGroupLabel(props: Select$1.GroupLabel.Props): react_jsx_runtime17.JSX.Element;
|
|
1013
981
|
//#endregion
|
|
1014
982
|
//#region src/components/ui/separator.d.ts
|
|
1015
983
|
declare function Separator({
|
|
1016
984
|
className,
|
|
1017
985
|
orientation,
|
|
1018
986
|
...props
|
|
1019
|
-
}: Separator$1.Props):
|
|
987
|
+
}: Separator$1.Props): react_jsx_runtime17.JSX.Element;
|
|
1020
988
|
//#endregion
|
|
1021
989
|
//#region src/components/ui/switch.d.ts
|
|
1022
990
|
declare function Switch({
|
|
1023
991
|
className,
|
|
1024
992
|
...props
|
|
1025
|
-
}: Switch$1.Root.Props):
|
|
993
|
+
}: Switch$1.Root.Props): react_jsx_runtime17.JSX.Element;
|
|
1026
994
|
//#endregion
|
|
1027
995
|
//#region src/components/ui/table.d.ts
|
|
1028
996
|
declare function Table({
|
|
1029
997
|
className,
|
|
1030
998
|
...props
|
|
1031
|
-
}: react0.ComponentProps<"table">):
|
|
999
|
+
}: react0.ComponentProps<"table">): react_jsx_runtime17.JSX.Element;
|
|
1032
1000
|
declare function TableHeader({
|
|
1033
1001
|
className,
|
|
1034
1002
|
...props
|
|
1035
|
-
}: react0.ComponentProps<"thead">):
|
|
1003
|
+
}: react0.ComponentProps<"thead">): react_jsx_runtime17.JSX.Element;
|
|
1036
1004
|
declare function TableBody({
|
|
1037
1005
|
className,
|
|
1038
1006
|
...props
|
|
1039
|
-
}: react0.ComponentProps<"tbody">):
|
|
1007
|
+
}: react0.ComponentProps<"tbody">): react_jsx_runtime17.JSX.Element;
|
|
1040
1008
|
declare function TableFooter({
|
|
1041
1009
|
className,
|
|
1042
1010
|
...props
|
|
1043
|
-
}: react0.ComponentProps<"tfoot">):
|
|
1011
|
+
}: react0.ComponentProps<"tfoot">): react_jsx_runtime17.JSX.Element;
|
|
1044
1012
|
declare function TableRow({
|
|
1045
1013
|
className,
|
|
1046
1014
|
...props
|
|
1047
|
-
}: react0.ComponentProps<"tr">):
|
|
1015
|
+
}: react0.ComponentProps<"tr">): react_jsx_runtime17.JSX.Element;
|
|
1048
1016
|
declare function TableHead({
|
|
1049
1017
|
className,
|
|
1050
1018
|
...props
|
|
1051
|
-
}: react0.ComponentProps<"th">):
|
|
1019
|
+
}: react0.ComponentProps<"th">): react_jsx_runtime17.JSX.Element;
|
|
1052
1020
|
declare function TableCell({
|
|
1053
1021
|
className,
|
|
1054
1022
|
...props
|
|
1055
|
-
}: react0.ComponentProps<"td">):
|
|
1023
|
+
}: react0.ComponentProps<"td">): react_jsx_runtime17.JSX.Element;
|
|
1056
1024
|
declare function TableCaption({
|
|
1057
1025
|
className,
|
|
1058
1026
|
...props
|
|
1059
|
-
}: react0.ComponentProps<"caption">):
|
|
1027
|
+
}: react0.ComponentProps<"caption">): react_jsx_runtime17.JSX.Element;
|
|
1060
1028
|
//#endregion
|
|
1061
1029
|
//#region src/components/ui/tabs.d.ts
|
|
1062
1030
|
type TabsVariant = "default" | "underline";
|
|
1063
1031
|
declare function Tabs({
|
|
1064
1032
|
className,
|
|
1065
1033
|
...props
|
|
1066
|
-
}: Tabs$1.Root.Props):
|
|
1034
|
+
}: Tabs$1.Root.Props): react_jsx_runtime17.JSX.Element;
|
|
1067
1035
|
declare function TabsList({
|
|
1068
1036
|
variant,
|
|
1069
1037
|
className,
|
|
@@ -1071,15 +1039,15 @@ declare function TabsList({
|
|
|
1071
1039
|
...props
|
|
1072
1040
|
}: Tabs$1.List.Props & {
|
|
1073
1041
|
variant?: TabsVariant;
|
|
1074
|
-
}):
|
|
1042
|
+
}): react_jsx_runtime17.JSX.Element;
|
|
1075
1043
|
declare function TabsTab({
|
|
1076
1044
|
className,
|
|
1077
1045
|
...props
|
|
1078
|
-
}: Tabs$1.Tab.Props):
|
|
1046
|
+
}: Tabs$1.Tab.Props): react_jsx_runtime17.JSX.Element;
|
|
1079
1047
|
declare function TabsPanel({
|
|
1080
1048
|
className,
|
|
1081
1049
|
...props
|
|
1082
|
-
}: Tabs$1.Panel.Props):
|
|
1050
|
+
}: Tabs$1.Panel.Props): react_jsx_runtime17.JSX.Element;
|
|
1083
1051
|
//#endregion
|
|
1084
1052
|
//#region src/components/ui/toast.d.ts
|
|
1085
1053
|
declare const toastManager: _base_ui_react0.ToastManager;
|
|
@@ -1092,11 +1060,11 @@ declare function ToastProvider({
|
|
|
1092
1060
|
children,
|
|
1093
1061
|
position,
|
|
1094
1062
|
...props
|
|
1095
|
-
}: ToastProviderProps):
|
|
1063
|
+
}: ToastProviderProps): react_jsx_runtime17.JSX.Element;
|
|
1096
1064
|
declare function AnchoredToastProvider({
|
|
1097
1065
|
children,
|
|
1098
1066
|
...props
|
|
1099
|
-
}: Toast.Provider.Props):
|
|
1067
|
+
}: Toast.Provider.Props): react_jsx_runtime17.JSX.Element;
|
|
1100
1068
|
//#endregion
|
|
1101
1069
|
//#region src/components/ui/tooltip.d.ts
|
|
1102
1070
|
declare const cssAnimationPresets: {
|
|
@@ -1147,13 +1115,13 @@ interface TooltipProviderProps extends Tooltip$1.Provider.Props {}
|
|
|
1147
1115
|
declare function TooltipProvider({
|
|
1148
1116
|
delay,
|
|
1149
1117
|
...props
|
|
1150
|
-
}: TooltipProviderProps):
|
|
1118
|
+
}: TooltipProviderProps): react_jsx_runtime17.JSX.Element;
|
|
1151
1119
|
interface TooltipProps extends Tooltip$1.Root.Props {}
|
|
1152
1120
|
declare function Tooltip({
|
|
1153
1121
|
...props
|
|
1154
|
-
}: TooltipProps):
|
|
1122
|
+
}: TooltipProps): react_jsx_runtime17.JSX.Element;
|
|
1155
1123
|
interface TooltipTriggerProps extends Tooltip$1.Trigger.Props {}
|
|
1156
|
-
declare function TooltipTrigger(props: TooltipTriggerProps):
|
|
1124
|
+
declare function TooltipTrigger(props: TooltipTriggerProps): react_jsx_runtime17.JSX.Element;
|
|
1157
1125
|
interface TooltipPositionerProps extends Tooltip$1.Positioner.Props {}
|
|
1158
1126
|
interface TooltipPopupProps extends Tooltip$1.Popup.Props, Pick<TooltipPositionerProps, "side" | "sideOffset" | "align" | "alignOffset"> {
|
|
1159
1127
|
animationPreset?: CSSAnimationPresets;
|
|
@@ -1172,7 +1140,74 @@ declare function TooltipPopup({
|
|
|
1172
1140
|
align,
|
|
1173
1141
|
alignOffset,
|
|
1174
1142
|
...rest
|
|
1175
|
-
}: TooltipPopupProps):
|
|
1143
|
+
}: TooltipPopupProps): react_jsx_runtime17.JSX.Element;
|
|
1144
|
+
//#endregion
|
|
1145
|
+
//#region src/blocks/Template/index.d.ts
|
|
1146
|
+
type TemplateProps = {
|
|
1147
|
+
template: string;
|
|
1148
|
+
children: Slot;
|
|
1149
|
+
};
|
|
1150
|
+
type TemplateData = Record<string, {
|
|
1151
|
+
label: string;
|
|
1152
|
+
data: Slot;
|
|
1153
|
+
}>;
|
|
1154
|
+
type CreateTemplateBlockOptions = {
|
|
1155
|
+
/**
|
|
1156
|
+
* Namespace key — used as the localStorage key prefix (without API) or as
|
|
1157
|
+
* the `key` column value in the database (with API).
|
|
1158
|
+
* Must be unique per project.
|
|
1159
|
+
* @default "puck-template"
|
|
1160
|
+
*/
|
|
1161
|
+
storageKey?: string;
|
|
1162
|
+
/**
|
|
1163
|
+
* Static template presets always shown in the select (in addition to
|
|
1164
|
+
* "Blank"). Applied regardless of storage mode.
|
|
1165
|
+
*/
|
|
1166
|
+
defaultTemplates?: TemplateData;
|
|
1167
|
+
/**
|
|
1168
|
+
* Base URL for the templates REST API.
|
|
1169
|
+
* When provided, templates are stored in the database instead of
|
|
1170
|
+
* localStorage, making them shared across all users.
|
|
1171
|
+
*
|
|
1172
|
+
* Accepts a lazy function so the URL can be resolved from the DOM
|
|
1173
|
+
* (e.g. from a data-* attribute) without breaking SSR or module init.
|
|
1174
|
+
*
|
|
1175
|
+
* Expected contract:
|
|
1176
|
+
* GET {apiUrl}?key={storageKey} → { templates: ApiTemplate[] }
|
|
1177
|
+
* POST {apiUrl} → { template: ApiTemplate }
|
|
1178
|
+
* body: { key, name, data }
|
|
1179
|
+
* DELETE {apiUrl}/{id} → { success: true }
|
|
1180
|
+
*/
|
|
1181
|
+
apiUrl?: string | (() => string);
|
|
1182
|
+
/**
|
|
1183
|
+
* Returns headers merged into every API request.
|
|
1184
|
+
* Use this to inject CSRF tokens or custom auth headers.
|
|
1185
|
+
*
|
|
1186
|
+
* @example
|
|
1187
|
+
* getHeaders: () => ({ 'X-CSRF-TOKEN': getCsrfToken() })
|
|
1188
|
+
*/
|
|
1189
|
+
getHeaders?: () => Record<string, string>;
|
|
1190
|
+
};
|
|
1191
|
+
/**
|
|
1192
|
+
* Factory that returns a ready-to-use Puck `ComponentConfig` for a Template
|
|
1193
|
+
* block.
|
|
1194
|
+
*
|
|
1195
|
+
* Without `apiUrl` — templates are saved in `localStorage` (per-browser).
|
|
1196
|
+
* With `apiUrl` — templates are saved in a database and shared across all
|
|
1197
|
+
* users and devices.
|
|
1198
|
+
*
|
|
1199
|
+
* @example
|
|
1200
|
+
* // Basic (localStorage)
|
|
1201
|
+
* Template: createTemplateBlock({ storageKey: 'my-project' })
|
|
1202
|
+
*
|
|
1203
|
+
* // Database-backed (shared)
|
|
1204
|
+
* Template: createTemplateBlock({
|
|
1205
|
+
* storageKey: 'my-project',
|
|
1206
|
+
* apiUrl: () => document.getElementById('editor')?.dataset.templatesUrl,
|
|
1207
|
+
* getHeaders: () => ({ 'X-CSRF-TOKEN': getCsrfToken() }),
|
|
1208
|
+
* })
|
|
1209
|
+
*/
|
|
1210
|
+
declare function createTemplateBlock(options?: CreateTemplateBlockOptions): ComponentConfig<TemplateProps>;
|
|
1176
1211
|
//#endregion
|
|
1177
1212
|
//#region src/utils/animation.d.ts
|
|
1178
1213
|
type AnimationTraitProps = {
|
|
@@ -1182,6 +1217,17 @@ declare const animationField: Fields;
|
|
|
1182
1217
|
declare function animationToAttributes(animation?: AnimationTraitProps["animation"]): Record<string, string>;
|
|
1183
1218
|
declare const animationDefaultProps: AnimationTraitProps;
|
|
1184
1219
|
//#endregion
|
|
1220
|
+
//#region src/utils/customClasses.d.ts
|
|
1221
|
+
type CustomClassesTraitProps = {
|
|
1222
|
+
customClasses?: string[];
|
|
1223
|
+
};
|
|
1224
|
+
declare const customClassesField: Fields;
|
|
1225
|
+
declare function customClassesToClasses(customClasses?: string[]): string;
|
|
1226
|
+
declare const customClassesDefaultProps: CustomClassesTraitProps;
|
|
1227
|
+
//#endregion
|
|
1228
|
+
//#region src/utils/pagePicker.d.ts
|
|
1229
|
+
declare const pageField: Field<PagePickerValue>;
|
|
1230
|
+
//#endregion
|
|
1185
1231
|
//#region src/utils/display.d.ts
|
|
1186
1232
|
type DisplayTraitProps = {
|
|
1187
1233
|
display?: "hidden" | "inline" | "inline-block" | "block" | "flex" | "inline-flex";
|
|
@@ -1336,6 +1382,15 @@ declare const typographyDefaultProps: TypographyTraitProps;
|
|
|
1336
1382
|
declare function typographyToClasses(props: Partial<TypographyTraitProps>): string;
|
|
1337
1383
|
declare const typographyFieldNames: readonly ["textAlign", "textTransform", "textDecoration", "textSize", "textColor", "lineHeight", "fontWeight"];
|
|
1338
1384
|
//#endregion
|
|
1385
|
+
//#region src/utils/csrf.d.ts
|
|
1386
|
+
/**
|
|
1387
|
+
* Récupère le jeton CSRF à partir d'une balise meta dans le DOM.
|
|
1388
|
+
* Standard Laravel : <meta name="csrf-token" content="...">
|
|
1389
|
+
*
|
|
1390
|
+
* @returns Le jeton CSRF sous forme de chaîne, ou null s'il n'est pas trouvé ou si l'exécution n'est pas côté client.
|
|
1391
|
+
*/
|
|
1392
|
+
declare function getCsrfToken(): string | null;
|
|
1393
|
+
//#endregion
|
|
1339
1394
|
//#region src/hooks/useOptimizedImage.d.ts
|
|
1340
1395
|
type OptimizedImageAttrs = {
|
|
1341
1396
|
srcset?: string;
|
|
@@ -1347,5 +1402,21 @@ type OptimizedImageAttrs = {
|
|
|
1347
1402
|
*/
|
|
1348
1403
|
declare function useOptimizedImage(src: string | undefined): OptimizedImageAttrs | null;
|
|
1349
1404
|
//#endregion
|
|
1350
|
-
|
|
1405
|
+
//#region src/plugins/redactor-assistant/index.d.ts
|
|
1406
|
+
declare function createRedactorPlugin(): {
|
|
1407
|
+
name: string;
|
|
1408
|
+
overrides: {
|
|
1409
|
+
fieldTypes: {
|
|
1410
|
+
richtext: ({
|
|
1411
|
+
children,
|
|
1412
|
+
onChange,
|
|
1413
|
+
value,
|
|
1414
|
+
field,
|
|
1415
|
+
label
|
|
1416
|
+
}: any) => react_jsx_runtime17.JSX.Element;
|
|
1417
|
+
};
|
|
1418
|
+
};
|
|
1419
|
+
};
|
|
1420
|
+
//#endregion
|
|
1421
|
+
export { Accordion, AccordionItem, AccordionPanel, AccordionTrigger, ActionBar, AnchoredToastProvider, AnimationTraitProps, Badge, Button, Checkbox, type CheckboxLayout, ColorPicker, ColorPickerContent, type ColorPickerContentProps, type ColorPickerProps, type CreateTemplateBlockOptions, CustomClassesTraitProps, Dialog, DialogDescription, DialogFooter, DialogHeader, DialogPanel, DialogPopup, DialogTitle, DialogTrigger, DisplayTraitProps, DrawerItem, FieldCheckbox, FieldGroups, FieldInput, FieldNumberUnit, FieldRadio, FieldSelect, FieldTextarea, FontWeightTraitProps, Frame, FrameDescription, FrameFooter, FrameHeader, FramePanel, FrameTitle, GRAY_COLORS, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, Label, LineHeightTraitProps, MarginItem, MarginTraitProps, MarginValue, type MediaItem, MediaPicker, type MediaPickerProps, type MediaPickerValue, type MediaReference, Menu, MenuCheckboxItem, MenuGroup, MenuGroupLabel, MenuItem, MenuPopup, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSub, MenuSubPopup, MenuSubTrigger, MenuTrigger, OptimizedImageAttrs, PREDEFINED_COLORS, PaddingItem, PaddingTraitProps, PaddingValue, type PageItem, PagePicker, type PagePickerProps, type PagePickerValue, type PageReference, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PickerModal, type PickerModalProps, Popover, PopoverClose, PopoverPopup as PopoverContent, PopoverPopup, PopoverCreateHandle, PopoverDescription, PopoverTitle, PopoverTrigger, PositionTraitProps, RadioGroup, RadioGroupItem, type RadioLayout, RichTextMenuColorPicker, RichTextMenuLink, ScrollArea, ScrollBar, Select, SelectGroup, SelectGroupLabel, SelectItem, SelectPopup, SelectSeparator, SelectTrigger, SelectValue, Separator, SizeTraitProps, SizeValue, SpacingTraitProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsPanel as TabsContent, TabsPanel, TabsList, TabsTab, TabsTab as TabsTrigger, type TemplateProps, TextAlignTraitProps, TextColorTraitProps, TextDecorationTraitProps, TextSizeTraitProps, TextTransformTraitProps, Textarea, type TextareaProps, type ToastPosition, ToastProvider, Tooltip, TooltipPopup, TooltipProvider, TooltipTrigger, TypographyTraitProps, anchoredToastManager, animationDefaultProps, animationField, animationToAttributes, badgeVariants, buttonVariants, createPuckOverridesPlugin, createRedactorPlugin, createTemplateBlock, customClassesDefaultProps, customClassesField, customClassesToClasses, displayDefaultProps, displayField, displayToClasses, fontWeightDefaultProps, fontWeightField, fontWeightToClasses, getCsrfToken, getMediaUrl, lineHeightDefaultProps, lineHeightField, lineHeightToClasses, marginDefaultProps, marginField, marginToClasses, paddingDefaultProps, paddingField, paddingToClasses, pageField, positionDefaultProps, positionField, positionToClasses, richTextMenuColorPickerExtension, sizeDefaultProps, sizeField, sizeToClasses, spacingDefaultProps, spacingFieldNames, spacingFields, spacingOptions, spacingToClasses, textAlignDefaultProps, textAlignField, textAlignToClasses, textColorDefaultProps, textColorField, textColorToClasses, textDecorationDefaultProps, textDecorationField, textDecorationToClasses, textSizeDefaultProps, textSizeField, textSizeToClasses, textTransformDefaultProps, textTransformField, textTransformToClasses, toastManager, typographyDefaultProps, typographyFieldNames, typographyFields, typographyToClasses, useMediaUrl, useOptimizedImage, usePageUrl };
|
|
1351
1422
|
//# sourceMappingURL=index.d.ts.map
|