qstd 0.1.0 → 0.1.2
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/react/index.cjs +582 -126
- package/dist/react/index.d.cts +541 -541
- package/dist/react/index.d.ts +541 -541
- package/dist/react/index.js +474 -18
- package/package.json +5 -5
package/dist/react/index.d.ts
CHANGED
|
@@ -9,505 +9,9 @@ import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
|
9
9
|
import { TargetAndTransition } from 'motion-dom';
|
|
10
10
|
import { Placement as Placement$1 } from '@floating-ui/react';
|
|
11
11
|
import { IconType } from 'react-icons/lib';
|
|
12
|
-
import * as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { BeatLoader } from 'react-spinners';
|
|
16
|
-
import * as Panda from '@pandacss/dev';
|
|
17
|
-
|
|
18
|
-
declare const base: panda_jsx.StyledComponent<"div", {}>;
|
|
19
|
-
declare const tags: {
|
|
20
|
-
readonly div: panda_jsx.StyledComponent<"div", {}>;
|
|
21
|
-
readonly a: panda_jsx.StyledComponent<"a", {}>;
|
|
22
|
-
readonly br: panda_jsx.StyledComponent<"br", {}>;
|
|
23
|
-
readonly button: panda_jsx.StyledComponent<"button", {}>;
|
|
24
|
-
readonly canvas: panda_jsx.StyledComponent<"canvas", {}>;
|
|
25
|
-
readonly form: panda_jsx.StyledComponent<"form", {}>;
|
|
26
|
-
readonly h1: panda_jsx.StyledComponent<"h1", {}>;
|
|
27
|
-
readonly h2: panda_jsx.StyledComponent<"h2", {}>;
|
|
28
|
-
readonly h3: panda_jsx.StyledComponent<"h3", {}>;
|
|
29
|
-
readonly hr: panda_jsx.StyledComponent<"hr", {}>;
|
|
30
|
-
readonly nav: panda_jsx.StyledComponent<"nav", {}>;
|
|
31
|
-
readonly main: panda_jsx.StyledComponent<"main", {}>;
|
|
32
|
-
readonly aside: panda_jsx.StyledComponent<"aside", {}>;
|
|
33
|
-
readonly article: panda_jsx.StyledComponent<"article", {}>;
|
|
34
|
-
readonly section: panda_jsx.StyledComponent<"section", {}>;
|
|
35
|
-
readonly details: panda_jsx.StyledComponent<"details", {}>;
|
|
36
|
-
readonly header: panda_jsx.StyledComponent<"header", {}>;
|
|
37
|
-
readonly footer: panda_jsx.StyledComponent<"footer", {}>;
|
|
38
|
-
readonly strong: panda_jsx.StyledComponent<"strong", {}>;
|
|
39
|
-
readonly em: panda_jsx.StyledComponent<"em", {}>;
|
|
40
|
-
readonly img: panda_jsx.StyledComponent<"img", {}>;
|
|
41
|
-
readonly del: panda_jsx.StyledComponent<"del", {}>;
|
|
42
|
-
readonly ins: panda_jsx.StyledComponent<"ins", {}>;
|
|
43
|
-
readonly kbd: panda_jsx.StyledComponent<"kbd", {}>;
|
|
44
|
-
readonly code: panda_jsx.StyledComponent<"code", {}>;
|
|
45
|
-
readonly mark: panda_jsx.StyledComponent<"mark", {}>;
|
|
46
|
-
readonly samp: panda_jsx.StyledComponent<"samp", {}>;
|
|
47
|
-
readonly small: panda_jsx.StyledComponent<"small", {}>;
|
|
48
|
-
readonly sub: panda_jsx.StyledComponent<"sub", {}>;
|
|
49
|
-
readonly sup: panda_jsx.StyledComponent<"sup", {}>;
|
|
50
|
-
readonly u: panda_jsx.StyledComponent<"u", {}>;
|
|
51
|
-
readonly var: panda_jsx.StyledComponent<"var", {}>;
|
|
52
|
-
readonly input: panda_jsx.StyledComponent<"input", {}>;
|
|
53
|
-
readonly label: panda_jsx.StyledComponent<"label", {}>;
|
|
54
|
-
readonly legend: panda_jsx.StyledComponent<"legend", {}>;
|
|
55
|
-
readonly p: panda_jsx.StyledComponent<"p", {}>;
|
|
56
|
-
readonly select: panda_jsx.StyledComponent<"select", {}>;
|
|
57
|
-
readonly span: panda_jsx.StyledComponent<"span", {}>;
|
|
58
|
-
readonly svg: panda_jsx.StyledComponent<"svg", {}>;
|
|
59
|
-
readonly textarea: panda_jsx.StyledComponent<"textarea", {}>;
|
|
60
|
-
readonly table: panda_jsx.StyledComponent<"table", {}>;
|
|
61
|
-
readonly tr: panda_jsx.StyledComponent<"tr", {}>;
|
|
62
|
-
readonly th: panda_jsx.StyledComponent<"th", {}>;
|
|
63
|
-
readonly td: panda_jsx.StyledComponent<"td", {}>;
|
|
64
|
-
readonly tbody: panda_jsx.StyledComponent<"tbody", {}>;
|
|
65
|
-
readonly thead: panda_jsx.StyledComponent<"thead", {}>;
|
|
66
|
-
readonly tfoot: panda_jsx.StyledComponent<"tfoot", {}>;
|
|
67
|
-
readonly progress: panda_jsx.StyledComponent<"progress", {}>;
|
|
68
|
-
readonly ol: panda_jsx.StyledComponent<"ol", {}>;
|
|
69
|
-
readonly ul: panda_jsx.StyledComponent<"ul", {}>;
|
|
70
|
-
readonly li: panda_jsx.StyledComponent<"li", {}>;
|
|
71
|
-
readonly blockquote: panda_jsx.StyledComponent<"blockquote", {}>;
|
|
72
|
-
readonly pre: panda_jsx.StyledComponent<"pre", {}>;
|
|
73
|
-
};
|
|
74
|
-
declare const motionTags: {
|
|
75
|
-
readonly div: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLDivElement, framer_motion.HTMLMotionProps<"div">>, {}>;
|
|
76
|
-
readonly a: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLAnchorElement, framer_motion.HTMLMotionProps<"a">>, {}>;
|
|
77
|
-
readonly br: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLBRElement, framer_motion.HTMLMotionProps<"br">>, {}>;
|
|
78
|
-
readonly button: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLButtonElement, framer_motion.HTMLMotionProps<"button">>, {}>;
|
|
79
|
-
readonly canvas: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLCanvasElement, framer_motion.HTMLMotionProps<"canvas">>, {}>;
|
|
80
|
-
readonly form: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLFormElement, framer_motion.HTMLMotionProps<"form">>, {}>;
|
|
81
|
-
readonly h1: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLHeadingElement, framer_motion.HTMLMotionProps<"h1">>, {}>;
|
|
82
|
-
readonly h2: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLHeadingElement, framer_motion.HTMLMotionProps<"h2">>, {}>;
|
|
83
|
-
readonly h3: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLHeadingElement, framer_motion.HTMLMotionProps<"h3">>, {}>;
|
|
84
|
-
readonly hr: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLHRElement, framer_motion.HTMLMotionProps<"hr">>, {}>;
|
|
85
|
-
readonly nav: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"nav">>, {}>;
|
|
86
|
-
readonly main: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"main">>, {}>;
|
|
87
|
-
readonly aside: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"aside">>, {}>;
|
|
88
|
-
readonly article: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"article">>, {}>;
|
|
89
|
-
readonly section: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"section">>, {}>;
|
|
90
|
-
readonly details: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLDetailsElement, framer_motion.HTMLMotionProps<"details">>, {}>;
|
|
91
|
-
readonly header: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"header">>, {}>;
|
|
92
|
-
readonly footer: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"footer">>, {}>;
|
|
93
|
-
readonly strong: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"strong">>, {}>;
|
|
94
|
-
readonly em: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"em">>, {}>;
|
|
95
|
-
readonly img: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLImageElement, framer_motion.HTMLMotionProps<"img">>, {}>;
|
|
96
|
-
readonly del: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLModElement, framer_motion.HTMLMotionProps<"del">>, {}>;
|
|
97
|
-
readonly ins: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLModElement, framer_motion.HTMLMotionProps<"ins">>, {}>;
|
|
98
|
-
readonly kbd: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"kbd">>, {}>;
|
|
99
|
-
readonly code: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"code">>, {}>;
|
|
100
|
-
readonly mark: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"mark">>, {}>;
|
|
101
|
-
readonly samp: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"samp">>, {}>;
|
|
102
|
-
readonly small: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"small">>, {}>;
|
|
103
|
-
readonly sub: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"sub">>, {}>;
|
|
104
|
-
readonly sup: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"sup">>, {}>;
|
|
105
|
-
readonly u: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"u">>, {}>;
|
|
106
|
-
readonly var: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"var">>, {}>;
|
|
107
|
-
readonly input: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLInputElement, framer_motion.HTMLMotionProps<"input">>, {}>;
|
|
108
|
-
readonly label: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLLabelElement, framer_motion.HTMLMotionProps<"label">>, {}>;
|
|
109
|
-
readonly legend: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLLegendElement, framer_motion.HTMLMotionProps<"legend">>, {}>;
|
|
110
|
-
readonly p: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLParagraphElement, framer_motion.HTMLMotionProps<"p">>, {}>;
|
|
111
|
-
readonly select: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLSelectElement, framer_motion.HTMLMotionProps<"select">>, {}>;
|
|
112
|
-
readonly span: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLSpanElement, framer_motion.HTMLMotionProps<"span">>, {}>;
|
|
113
|
-
readonly svg: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<SVGSVGElement, framer_motion.SVGMotionProps<SVGSVGElement>>, {}>;
|
|
114
|
-
readonly textarea: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLTextAreaElement, framer_motion.HTMLMotionProps<"textarea">>, {}>;
|
|
115
|
-
readonly table: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLTableElement, framer_motion.HTMLMotionProps<"table">>, {}>;
|
|
116
|
-
readonly tr: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLTableRowElement, framer_motion.HTMLMotionProps<"tr">>, {}>;
|
|
117
|
-
readonly th: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLTableHeaderCellElement, framer_motion.HTMLMotionProps<"th">>, {}>;
|
|
118
|
-
readonly td: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLTableDataCellElement, framer_motion.HTMLMotionProps<"td">>, {}>;
|
|
119
|
-
readonly tbody: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLTableSectionElement, framer_motion.HTMLMotionProps<"tbody">>, {}>;
|
|
120
|
-
readonly thead: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLTableSectionElement, framer_motion.HTMLMotionProps<"thead">>, {}>;
|
|
121
|
-
readonly tfoot: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLTableSectionElement, framer_motion.HTMLMotionProps<"tfoot">>, {}>;
|
|
122
|
-
readonly progress: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLProgressElement, framer_motion.HTMLMotionProps<"progress">>, {}>;
|
|
123
|
-
readonly ol: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLOListElement, framer_motion.HTMLMotionProps<"ol">>, {}>;
|
|
124
|
-
readonly ul: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLUListElement, framer_motion.HTMLMotionProps<"ul">>, {}>;
|
|
125
|
-
readonly li: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLLIElement, framer_motion.HTMLMotionProps<"li">>, {}>;
|
|
126
|
-
readonly blockquote: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLQuoteElement, framer_motion.HTMLMotionProps<"blockquote">>, {}>;
|
|
127
|
-
readonly pre: panda_jsx.StyledComponent<framer_motion.ForwardRefComponent<HTMLPreElement, framer_motion.HTMLMotionProps<"pre">>, {}>;
|
|
128
|
-
};
|
|
129
|
-
declare const loadingIconsMap: {
|
|
130
|
-
readonly rotatingLines: React$1.FunctionComponent<react_loader_spinner._Props3>;
|
|
131
|
-
readonly spinner: React$1.FunctionComponent<react_loader_spinner.TailSpinProps>;
|
|
132
|
-
readonly beat: typeof BeatLoader;
|
|
133
|
-
readonly dots: React$1.FunctionComponent<react_loader_spinner.ThreeDotsProps>;
|
|
134
|
-
readonly oval: React$1.FunctionComponent<react_loader_spinner.OvalProps>;
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Export file types for consumers
|
|
139
|
-
* Import these in your project if you need ImageFile, AudioFile, VideoFile types
|
|
140
|
-
*/
|
|
141
|
-
|
|
142
|
-
declare global {
|
|
143
|
-
interface File {
|
|
144
|
-
preview?: string;
|
|
145
|
-
id?: string;
|
|
146
|
-
}
|
|
147
|
-
interface ImageFile extends File {
|
|
148
|
-
id: string;
|
|
149
|
-
preview: string;
|
|
150
|
-
orientation: "landscape" | "portrait" | "square";
|
|
151
|
-
height: number;
|
|
152
|
-
width: number;
|
|
153
|
-
}
|
|
154
|
-
interface VideoFile extends File {
|
|
155
|
-
id: string;
|
|
156
|
-
orientation: "landscape" | "portrait" | "square";
|
|
157
|
-
duration: number;
|
|
158
|
-
height: number;
|
|
159
|
-
width: number;
|
|
160
|
-
}
|
|
161
|
-
interface AudioFile extends File {
|
|
162
|
-
id: string;
|
|
163
|
-
preview: string;
|
|
164
|
-
source: IAudioMetadata["common"] & IAudioMetadata["format"];
|
|
165
|
-
}
|
|
166
|
-
type MediaFile = File | ImageFile | AudioFile;
|
|
167
|
-
}
|
|
168
|
-
type PropsFor<K extends keyof typeof tags> = React.ComponentProps<(typeof tags)[K]>;
|
|
169
|
-
type Icon = null | IconName | IconType | IconDefinition | React.ReactElement | (() => React.ReactElement);
|
|
170
|
-
type IconProps = {
|
|
171
|
-
iconPrefix?: "solid" | "regular" | "brands";
|
|
172
|
-
className?: string;
|
|
173
|
-
startIcon?: Icon;
|
|
174
|
-
endIcon?: Icon;
|
|
175
|
-
icon?: Icon;
|
|
176
|
-
iconSize?: SizeProp;
|
|
177
|
-
pulse?: boolean;
|
|
178
|
-
spin?: boolean;
|
|
179
|
-
};
|
|
180
|
-
type LoadingIcon = keyof typeof loadingIconsMap;
|
|
181
|
-
type Icons = Icon | LoadingIcon;
|
|
182
|
-
type LoadingProps = {
|
|
183
|
-
loadingPosition?: "start" | "end";
|
|
184
|
-
loadingIconSize?: number | string;
|
|
185
|
-
loadingIcon?: Icons;
|
|
186
|
-
isLoading?: boolean;
|
|
187
|
-
};
|
|
188
|
-
type BlockMotionProps = {
|
|
189
|
-
initial?: boolean | TargetAndTransition | VariantLabels;
|
|
190
|
-
animate?: TargetAndTransition | VariantLabels;
|
|
191
|
-
exit?: TargetAndTransition | VariantLabels;
|
|
192
|
-
variants?: {
|
|
193
|
-
[key: string]: TargetAndTransition;
|
|
194
|
-
};
|
|
195
|
-
whileHover?: TargetAndTransition | VariantLabels;
|
|
196
|
-
whileTap?: TargetAndTransition | VariantLabels;
|
|
197
|
-
whileFocus?: TargetAndTransition | VariantLabels;
|
|
198
|
-
layout?: boolean | "position" | "size" | "preserve-aspect";
|
|
199
|
-
_motion?: Transition;
|
|
200
|
-
};
|
|
201
|
-
type BaseBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & IconProps & {
|
|
202
|
-
is?: undefined;
|
|
203
|
-
as?: keyof typeof tags;
|
|
204
|
-
tooltip?: boolean | React.ReactNode | string;
|
|
205
|
-
portalContainer?: Element | DocumentFragment;
|
|
206
|
-
filepicker?: boolean;
|
|
207
|
-
portal?: boolean;
|
|
208
|
-
};
|
|
209
|
-
type TxtBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
210
|
-
is: "txt";
|
|
211
|
-
as?: "p" | "span" | "h1" | "h2" | "h3" | "em" | "strong";
|
|
212
|
-
};
|
|
213
|
-
type HrBlockProps = HTMLStyledProps<typeof motionTags.hr> & BlockMotionProps & {
|
|
214
|
-
is: "hr";
|
|
215
|
-
} & PropsFor<"hr">;
|
|
216
|
-
type SkeletonBlockProps = Pick<HTMLStyledProps<typeof tags.div>, "height" | "h" | "width" | "w" | "size" | "borderRadius" | "br"> & {
|
|
217
|
-
is: "skeleton";
|
|
218
|
-
as: "block";
|
|
219
|
-
};
|
|
220
|
-
type SkeletonCircleProps = Pick<HTMLStyledProps<typeof tags.div>, "height" | "h" | "width" | "w" | "size" | "borderRadius" | "br"> & {
|
|
221
|
-
is: "skeleton";
|
|
222
|
-
as: "circle";
|
|
223
|
-
};
|
|
224
|
-
type BtnBlockPropsBase = Omit<HTMLStyledProps<typeof motionTags.button>, "onChange"> & BlockMotionProps & IconProps & LoadingProps & {
|
|
225
|
-
is: "btn";
|
|
226
|
-
disabled?: boolean;
|
|
227
|
-
type?: "button" | "submit" | "reset";
|
|
228
|
-
onClick?: React.MouseEventHandler;
|
|
229
|
-
tooltip?: boolean | React.ReactNode | string;
|
|
230
|
-
};
|
|
231
|
-
type BtnFilepickerProps = BtnBlockPropsBase & {
|
|
232
|
-
filepicker: true;
|
|
233
|
-
onChange?: (files: File[]) => void;
|
|
234
|
-
multiple?: boolean;
|
|
235
|
-
accept?: string;
|
|
236
|
-
};
|
|
237
|
-
type BtnStandardProps = BtnBlockPropsBase & {
|
|
238
|
-
filepicker?: false | undefined;
|
|
239
|
-
onChange?: React.FormEventHandler<HTMLButtonElement>;
|
|
240
|
-
};
|
|
241
|
-
type BtnBlockProps = BtnBlockPropsBase & {
|
|
242
|
-
filepicker?: boolean;
|
|
243
|
-
multiple?: boolean;
|
|
244
|
-
accept?: string;
|
|
245
|
-
onChange?: any;
|
|
246
|
-
};
|
|
247
|
-
type InputBlockProps = HTMLStyledProps<typeof tags.input> & BlockMotionProps & {
|
|
248
|
-
is: "input";
|
|
249
|
-
error?: string;
|
|
250
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "children">;
|
|
251
|
-
type TextareaBlockProps = HTMLStyledProps<typeof tags.textarea> & BlockMotionProps & {
|
|
252
|
-
is: "textarea";
|
|
253
|
-
error?: string;
|
|
254
|
-
/** Maximum number of rows the textarea can expand to */
|
|
255
|
-
maxRows?: number;
|
|
256
|
-
/** Minimum number of rows the textarea will display */
|
|
257
|
-
minRows?: number;
|
|
258
|
-
/** Callback fired when the textarea height changes */
|
|
259
|
-
onHeightChange?: (height: number, meta: {
|
|
260
|
-
rowHeight: number;
|
|
261
|
-
}) => void;
|
|
262
|
-
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "children">;
|
|
263
|
-
type CheckboxBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
264
|
-
is: "checkbox";
|
|
265
|
-
onChecked?: (value: boolean) => void;
|
|
266
|
-
indeterminate?: boolean;
|
|
267
|
-
checked?: boolean;
|
|
268
|
-
};
|
|
269
|
-
type ProgressBlockProps = HTMLStyledProps<typeof motionTags.div> & BlockMotionProps & {
|
|
270
|
-
is: "progress";
|
|
271
|
-
value: number;
|
|
272
|
-
max?: number;
|
|
273
|
-
steps?: number;
|
|
274
|
-
} & PropsFor<"progress">;
|
|
275
|
-
type SwitchBlockProps = Omit<HTMLStyledProps<typeof tags.input>, "onChange"> & BlockMotionProps & {
|
|
276
|
-
is: "switch";
|
|
277
|
-
thumbSize?: number;
|
|
278
|
-
onChange?: (checked: boolean) => void;
|
|
279
|
-
} & Omit<PropsFor<"button">, "onChange">;
|
|
280
|
-
type AccordionBlockProps = {
|
|
281
|
-
is: "accordion";
|
|
282
|
-
allowToggle?: boolean;
|
|
283
|
-
allowMultiple?: boolean;
|
|
284
|
-
defaultOpenIdx?: number[];
|
|
285
|
-
children: React.ReactElement | React.ReactElement[];
|
|
286
|
-
};
|
|
287
|
-
type DrawerBlockProps = HTMLStyledProps<typeof motionTags.div> & BlockMotionProps & {
|
|
288
|
-
is: "drawer";
|
|
289
|
-
open: boolean;
|
|
290
|
-
hideHandle?: boolean;
|
|
291
|
-
/** @default true */
|
|
292
|
-
drag?: boolean;
|
|
293
|
-
/** @default true */
|
|
294
|
-
outsideClickClose?: boolean;
|
|
295
|
-
closeOnEsc?: boolean;
|
|
296
|
-
onClose?: () => void;
|
|
297
|
-
};
|
|
298
|
-
type RadioOption = {
|
|
299
|
-
label: React.ReactNode;
|
|
300
|
-
value: string;
|
|
301
|
-
disabled?: boolean;
|
|
302
|
-
};
|
|
303
|
-
type RadioBlockProps = Omit<HTMLStyledProps<typeof base>, "onChange" | "children"> & BlockMotionProps & {
|
|
304
|
-
is: "radio";
|
|
305
|
-
/** Controlled value for single-select radio group */
|
|
306
|
-
value?: string | null;
|
|
307
|
-
/** Uncontrolled initial value */
|
|
308
|
-
defaultValue?: string | null;
|
|
309
|
-
/** Change handler. Returns the selected value */
|
|
310
|
-
onChange?: (value: string) => void;
|
|
311
|
-
/** Disable the entire group */
|
|
312
|
-
disabled?: boolean;
|
|
313
|
-
/** Optional form field name. If provided, a hidden input will be emitted. */
|
|
314
|
-
name?: string;
|
|
315
|
-
/** Options to render (children are not accepted for radio) */
|
|
316
|
-
options?: RadioOption[];
|
|
317
|
-
/** Optional renderer for custom per-option content */
|
|
318
|
-
renderOption?: (option: RadioOption) => React.ReactNode;
|
|
319
|
-
/** Disallow children for the radio container */
|
|
320
|
-
children?: never;
|
|
321
|
-
};
|
|
322
|
-
type MenuBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
323
|
-
is: "menu";
|
|
324
|
-
trigger?: React.ReactNode;
|
|
325
|
-
variant: "click" | "hover";
|
|
326
|
-
placement?: Placement$1;
|
|
327
|
-
hoverDelay?: number;
|
|
328
|
-
zIndex?: number;
|
|
329
|
-
onOpenOrClose?: (isOpen: boolean) => void;
|
|
330
|
-
offset?: {
|
|
331
|
-
x: number;
|
|
332
|
-
y: number;
|
|
333
|
-
};
|
|
334
|
-
isOpen?: boolean;
|
|
335
|
-
width?: string | number;
|
|
336
|
-
};
|
|
337
|
-
type LinkBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
338
|
-
is: "link";
|
|
339
|
-
href?: string;
|
|
340
|
-
to?: string;
|
|
341
|
-
target?: "_self" | "_blank";
|
|
342
|
-
rel?: string;
|
|
343
|
-
};
|
|
344
|
-
type ImgBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
345
|
-
is: "img";
|
|
346
|
-
src: string;
|
|
347
|
-
alt: string;
|
|
348
|
-
};
|
|
349
|
-
type SelectBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
350
|
-
is: "select";
|
|
351
|
-
} & Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "children">;
|
|
352
|
-
type BlockquoteBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
353
|
-
is: "blockquote";
|
|
354
|
-
} & PropsFor<"blockquote">;
|
|
355
|
-
type PreBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
356
|
-
is: "pre";
|
|
357
|
-
} & PropsFor<"pre">;
|
|
358
|
-
type FormBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & (({
|
|
359
|
-
is: "form";
|
|
360
|
-
as?: undefined;
|
|
361
|
-
} & PropsFor<"form">) | ({
|
|
362
|
-
is: "form";
|
|
363
|
-
as: "label";
|
|
364
|
-
} & PropsFor<"label">) | ({
|
|
365
|
-
is: "form";
|
|
366
|
-
as: "legend";
|
|
367
|
-
} & PropsFor<"legend">));
|
|
368
|
-
type TableBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & (({
|
|
369
|
-
is: "table";
|
|
370
|
-
as?: undefined;
|
|
371
|
-
} & PropsFor<"table">) | ({
|
|
372
|
-
is: "table";
|
|
373
|
-
as: "tr";
|
|
374
|
-
} & PropsFor<"tr">) | ({
|
|
375
|
-
is: "table";
|
|
376
|
-
as: "td";
|
|
377
|
-
} & PropsFor<"td">) | ({
|
|
378
|
-
is: "table";
|
|
379
|
-
as: "th";
|
|
380
|
-
} & PropsFor<"th">) | ({
|
|
381
|
-
is: "table";
|
|
382
|
-
as: "tbody";
|
|
383
|
-
} & PropsFor<"tbody">) | ({
|
|
384
|
-
is: "table";
|
|
385
|
-
as: "thead";
|
|
386
|
-
} & PropsFor<"thead">) | ({
|
|
387
|
-
is: "table";
|
|
388
|
-
as: "tfoot";
|
|
389
|
-
} & PropsFor<"tfoot">));
|
|
390
|
-
type ListBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & (({
|
|
391
|
-
is: "list";
|
|
392
|
-
as: "ul";
|
|
393
|
-
} & PropsFor<"ul">) | ({
|
|
394
|
-
is: "list";
|
|
395
|
-
as: "ol";
|
|
396
|
-
} & PropsFor<"ol">) | ({
|
|
397
|
-
is: "list";
|
|
398
|
-
as: "li";
|
|
399
|
-
} & PropsFor<"li">));
|
|
400
|
-
type SeoBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & (({
|
|
401
|
-
is: "seo";
|
|
402
|
-
as: "nav";
|
|
403
|
-
} & PropsFor<"nav">) | ({
|
|
404
|
-
is: "seo";
|
|
405
|
-
as: "main";
|
|
406
|
-
} & PropsFor<"main">) | ({
|
|
407
|
-
is: "seo";
|
|
408
|
-
as: "aside";
|
|
409
|
-
} & PropsFor<"aside">) | ({
|
|
410
|
-
is: "seo";
|
|
411
|
-
as: "article";
|
|
412
|
-
} & PropsFor<"article">) | ({
|
|
413
|
-
is: "seo";
|
|
414
|
-
as: "section";
|
|
415
|
-
} & PropsFor<"section">) | ({
|
|
416
|
-
is: "seo";
|
|
417
|
-
as: "details";
|
|
418
|
-
} & PropsFor<"details">) | ({
|
|
419
|
-
is: "seo";
|
|
420
|
-
as: "header";
|
|
421
|
-
} & PropsFor<"header">) | ({
|
|
422
|
-
is: "seo";
|
|
423
|
-
as: "footer";
|
|
424
|
-
} & PropsFor<"footer">));
|
|
425
|
-
type AllBlockProps = BaseBlockProps | TxtBlockProps | HrBlockProps | BtnBlockProps | InputBlockProps | TextareaBlockProps | CheckboxBlockProps | ProgressBlockProps | AccordionBlockProps | SwitchBlockProps | DrawerBlockProps | RadioBlockProps | MenuBlockProps | LinkBlockProps | ImgBlockProps | SelectBlockProps | SkeletonCircleProps | SkeletonBlockProps | BlockquoteBlockProps | PreBlockProps | FormBlockProps | TableBlockProps | ListBlockProps | SeoBlockProps;
|
|
426
|
-
type BlockProps = AllBlockProps;
|
|
427
|
-
|
|
428
|
-
declare function MenuContainer(props: BaseBlockProps): react_jsx_runtime.JSX.Element;
|
|
429
|
-
|
|
430
|
-
type SharedProps = {
|
|
431
|
-
_motion?: Transition;
|
|
432
|
-
};
|
|
433
|
-
type HtmlAnimationHandlers = Pick<React__default.HTMLAttributes<HTMLDivElement>, "onAnimationStart" | "onAnimationEnd" | "onAnimationIteration" | "onTransitionEnd" | "onDrag" | "onDragStart" | "onDragEnd">;
|
|
434
|
-
type StripConflictingHandlers<T> = Omit<T, keyof HtmlAnimationHandlers>;
|
|
435
|
-
type TrackProps = StripConflictingHandlers<BaseBlockProps> & SharedProps;
|
|
436
|
-
type ThumbProps = StripConflictingHandlers<BaseBlockProps> & SharedProps;
|
|
437
|
-
declare function Track(props: TrackProps): react_jsx_runtime.JSX.Element;
|
|
438
|
-
declare namespace Track {
|
|
439
|
-
var displayName: string;
|
|
440
|
-
}
|
|
441
|
-
declare function Thumb(props: ThumbProps): react_jsx_runtime.JSX.Element;
|
|
442
|
-
declare namespace Thumb {
|
|
443
|
-
var displayName: string;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
type RadioItemProps = Omit<BaseBlockProps, "is"> & {
|
|
447
|
-
value: string;
|
|
448
|
-
disabled?: boolean;
|
|
449
|
-
children?: React__default.ReactNode;
|
|
450
|
-
};
|
|
451
|
-
declare function Item$1(props: RadioItemProps): react_jsx_runtime.JSX.Element;
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* Textarea (PandaCSS + autosize)
|
|
455
|
-
*
|
|
456
|
-
* Story:
|
|
457
|
-
* - Renders a PandaCSS-styled `<textarea>` that grows/shrinks to fit content.
|
|
458
|
-
* - To compute the required height we copy the textarea's text-related styles
|
|
459
|
-
* to a single hidden textarea, write the same content, read its scrollHeight,
|
|
460
|
-
* and apply the resulting height via inline style with `!important` so theme
|
|
461
|
-
* overrides can't break sizing.
|
|
462
|
-
* - We recalc height when value/placeholder/minRows/maxRows change, and also
|
|
463
|
-
* on window resize and when fonts finish loading (font metrics change line
|
|
464
|
-
* heights). Uncontrolled form resets are handled by waiting a frame so the
|
|
465
|
-
* browser can update the value first, then we measure.
|
|
466
|
-
* - minRows/maxRows are respected in both content-box and border-box models.
|
|
467
|
-
*/
|
|
468
|
-
type LabelProps$1 = {
|
|
469
|
-
value?: TextareaBlockProps["value"];
|
|
470
|
-
required?: boolean;
|
|
471
|
-
error?: string;
|
|
472
|
-
};
|
|
473
|
-
declare function Label$1(props: BaseBlockProps & LabelProps$1): react_jsx_runtime.JSX.Element;
|
|
474
|
-
declare namespace Label$1 {
|
|
475
|
-
var displayName: string;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
type LabelProps = {
|
|
479
|
-
value?: InputBlockProps["value"];
|
|
480
|
-
hasLeftIcon?: boolean;
|
|
481
|
-
};
|
|
482
|
-
declare function LeftIcon(props: BaseBlockProps): react_jsx_runtime.JSX.Element;
|
|
483
|
-
declare namespace LeftIcon {
|
|
484
|
-
var displayName: string;
|
|
485
|
-
}
|
|
486
|
-
declare function RightSide(props: BaseBlockProps & {
|
|
487
|
-
value?: string;
|
|
488
|
-
clearable?: boolean;
|
|
489
|
-
}): react_jsx_runtime.JSX.Element | null;
|
|
490
|
-
declare namespace RightSide {
|
|
491
|
-
var displayName: string;
|
|
492
|
-
}
|
|
493
|
-
declare function Label(props: InputBlockProps & LabelProps): react_jsx_runtime.JSX.Element;
|
|
494
|
-
declare namespace Label {
|
|
495
|
-
var displayName: string;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
type AccordionItemProps = Omit<BtnBlockProps, "is" | "title"> & {
|
|
499
|
-
title: React__default.ReactNode;
|
|
500
|
-
children: React__default.ReactNode;
|
|
501
|
-
/** icon to indicate if open or closed */
|
|
502
|
-
rightIndicator?: (open: boolean) => React__default.ReactNode;
|
|
503
|
-
rightStatusIcon?: React__default.ReactNode;
|
|
504
|
-
onClick?: (e: React__default.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
505
|
-
className?: string;
|
|
506
|
-
};
|
|
507
|
-
declare function Item(props: AccordionItemProps): react_jsx_runtime.JSX.Element;
|
|
508
|
-
declare namespace Item {
|
|
509
|
-
var displayName: string;
|
|
510
|
-
}
|
|
12
|
+
import * as Panda from '@pandacss/dev';
|
|
13
|
+
import * as react_loader_spinner from 'react-loader-spinner';
|
|
14
|
+
import { BeatLoader } from 'react-spinners';
|
|
511
15
|
|
|
512
16
|
/* eslint-disable */
|
|
513
17
|
interface ConditionOptions {
|
|
@@ -20617,6 +20121,38 @@ type SlotRecipeConfig<
|
|
|
20617
20121
|
T extends SlotRecipeVariantRecord<S> = SlotRecipeVariantRecord<S>,
|
|
20618
20122
|
> = SlotRecipeDefinition<S, T> & RecipeConfigMeta
|
|
20619
20123
|
|
|
20124
|
+
/* eslint-disable */
|
|
20125
|
+
|
|
20126
|
+
|
|
20127
|
+
interface Dict {
|
|
20128
|
+
[k: string]: unknown
|
|
20129
|
+
}
|
|
20130
|
+
|
|
20131
|
+
interface UnstyledProps {
|
|
20132
|
+
/**
|
|
20133
|
+
* Whether to remove recipe styles
|
|
20134
|
+
*/
|
|
20135
|
+
unstyled?: boolean | undefined
|
|
20136
|
+
}
|
|
20137
|
+
|
|
20138
|
+
interface AsProps {
|
|
20139
|
+
/**
|
|
20140
|
+
* The element to render as
|
|
20141
|
+
*/
|
|
20142
|
+
as?: ElementType | undefined
|
|
20143
|
+
}
|
|
20144
|
+
|
|
20145
|
+
type ComponentProps<T extends ElementType> = T extends ComponentType<infer P> | Component<infer P>
|
|
20146
|
+
? JSX.LibraryManagedAttributes<T, P>
|
|
20147
|
+
: ComponentPropsWithRef<T>
|
|
20148
|
+
|
|
20149
|
+
interface StyledComponent<T extends ElementType, P extends Dict = {}> {
|
|
20150
|
+
(props: JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>): JSX.Element
|
|
20151
|
+
displayName?: string | undefined
|
|
20152
|
+
}
|
|
20153
|
+
|
|
20154
|
+
type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
|
|
20155
|
+
|
|
20620
20156
|
/* eslint-disable */
|
|
20621
20157
|
interface Part {
|
|
20622
20158
|
selector: string
|
|
@@ -20921,58 +20457,522 @@ type AnimationStyleProperty =
|
|
|
20921
20457
|
|
|
20922
20458
|
type AnimationStyle = CompositionStyleObject<AnimationStyleProperty>
|
|
20923
20459
|
|
|
20924
|
-
type AnimationStyles = Recursive<Token<AnimationStyle>>
|
|
20460
|
+
type AnimationStyles = Recursive<Token<AnimationStyle>>
|
|
20461
|
+
|
|
20462
|
+
interface CompositionStyles {
|
|
20463
|
+
textStyles: TextStyles
|
|
20464
|
+
layerStyles: LayerStyles
|
|
20465
|
+
animationStyles: AnimationStyles
|
|
20466
|
+
}
|
|
20467
|
+
|
|
20468
|
+
/* eslint-disable */
|
|
20469
|
+
// @ts-nocheck
|
|
20470
|
+
|
|
20471
|
+
|
|
20472
|
+
declare module '@pandacss/dev' {
|
|
20473
|
+
export function defineRecipe<V extends RecipeVariantRecord>(config: RecipeConfig<V>): Panda.RecipeConfig
|
|
20474
|
+
export function defineSlotRecipe<S extends string, V extends SlotRecipeVariantRecord<S>>(config: SlotRecipeConfig<S, V>): Panda.SlotRecipeConfig
|
|
20475
|
+
export function defineStyles(definition: SystemStyleObject): SystemStyleObject
|
|
20476
|
+
export function defineGlobalStyles(definition: GlobalStyleObject): Panda.GlobalStyleObject
|
|
20477
|
+
export function defineTextStyles(definition: CompositionStyles['textStyles']): Panda.TextStyles
|
|
20478
|
+
export function defineAnimationStyles(definition: CompositionStyles['animationStyles']): Panda.AnimationStyles
|
|
20479
|
+
export function defineLayerStyles(definition: CompositionStyles['layerStyles']): Panda.LayerStyles
|
|
20480
|
+
export function definePattern<T extends PatternProperties>(config: PatternConfig<T>): Panda.PatternConfig
|
|
20481
|
+
export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>
|
|
20482
|
+
}
|
|
20483
|
+
|
|
20484
|
+
declare const base: StyledComponent<"div", {}>;
|
|
20485
|
+
declare const tags: {
|
|
20486
|
+
readonly div: StyledComponent<"div", {}>;
|
|
20487
|
+
readonly a: StyledComponent<"a", {}>;
|
|
20488
|
+
readonly br: StyledComponent<"br", {}>;
|
|
20489
|
+
readonly button: StyledComponent<"button", {}>;
|
|
20490
|
+
readonly canvas: StyledComponent<"canvas", {}>;
|
|
20491
|
+
readonly form: StyledComponent<"form", {}>;
|
|
20492
|
+
readonly h1: StyledComponent<"h1", {}>;
|
|
20493
|
+
readonly h2: StyledComponent<"h2", {}>;
|
|
20494
|
+
readonly h3: StyledComponent<"h3", {}>;
|
|
20495
|
+
readonly hr: StyledComponent<"hr", {}>;
|
|
20496
|
+
readonly nav: StyledComponent<"nav", {}>;
|
|
20497
|
+
readonly main: StyledComponent<"main", {}>;
|
|
20498
|
+
readonly aside: StyledComponent<"aside", {}>;
|
|
20499
|
+
readonly article: StyledComponent<"article", {}>;
|
|
20500
|
+
readonly section: StyledComponent<"section", {}>;
|
|
20501
|
+
readonly details: StyledComponent<"details", {}>;
|
|
20502
|
+
readonly header: StyledComponent<"header", {}>;
|
|
20503
|
+
readonly footer: StyledComponent<"footer", {}>;
|
|
20504
|
+
readonly strong: StyledComponent<"strong", {}>;
|
|
20505
|
+
readonly em: StyledComponent<"em", {}>;
|
|
20506
|
+
readonly img: StyledComponent<"img", {}>;
|
|
20507
|
+
readonly del: StyledComponent<"del", {}>;
|
|
20508
|
+
readonly ins: StyledComponent<"ins", {}>;
|
|
20509
|
+
readonly kbd: StyledComponent<"kbd", {}>;
|
|
20510
|
+
readonly code: StyledComponent<"code", {}>;
|
|
20511
|
+
readonly mark: StyledComponent<"mark", {}>;
|
|
20512
|
+
readonly samp: StyledComponent<"samp", {}>;
|
|
20513
|
+
readonly small: StyledComponent<"small", {}>;
|
|
20514
|
+
readonly sub: StyledComponent<"sub", {}>;
|
|
20515
|
+
readonly sup: StyledComponent<"sup", {}>;
|
|
20516
|
+
readonly u: StyledComponent<"u", {}>;
|
|
20517
|
+
readonly var: StyledComponent<"var", {}>;
|
|
20518
|
+
readonly input: StyledComponent<"input", {}>;
|
|
20519
|
+
readonly label: StyledComponent<"label", {}>;
|
|
20520
|
+
readonly legend: StyledComponent<"legend", {}>;
|
|
20521
|
+
readonly p: StyledComponent<"p", {}>;
|
|
20522
|
+
readonly select: StyledComponent<"select", {}>;
|
|
20523
|
+
readonly span: StyledComponent<"span", {}>;
|
|
20524
|
+
readonly svg: StyledComponent<"svg", {}>;
|
|
20525
|
+
readonly textarea: StyledComponent<"textarea", {}>;
|
|
20526
|
+
readonly table: StyledComponent<"table", {}>;
|
|
20527
|
+
readonly tr: StyledComponent<"tr", {}>;
|
|
20528
|
+
readonly th: StyledComponent<"th", {}>;
|
|
20529
|
+
readonly td: StyledComponent<"td", {}>;
|
|
20530
|
+
readonly tbody: StyledComponent<"tbody", {}>;
|
|
20531
|
+
readonly thead: StyledComponent<"thead", {}>;
|
|
20532
|
+
readonly tfoot: StyledComponent<"tfoot", {}>;
|
|
20533
|
+
readonly progress: StyledComponent<"progress", {}>;
|
|
20534
|
+
readonly ol: StyledComponent<"ol", {}>;
|
|
20535
|
+
readonly ul: StyledComponent<"ul", {}>;
|
|
20536
|
+
readonly li: StyledComponent<"li", {}>;
|
|
20537
|
+
readonly blockquote: StyledComponent<"blockquote", {}>;
|
|
20538
|
+
readonly pre: StyledComponent<"pre", {}>;
|
|
20539
|
+
};
|
|
20540
|
+
declare const motionTags: {
|
|
20541
|
+
readonly div: StyledComponent<framer_motion.ForwardRefComponent<HTMLDivElement, framer_motion.HTMLMotionProps<"div">>, {}>;
|
|
20542
|
+
readonly a: StyledComponent<framer_motion.ForwardRefComponent<HTMLAnchorElement, framer_motion.HTMLMotionProps<"a">>, {}>;
|
|
20543
|
+
readonly br: StyledComponent<framer_motion.ForwardRefComponent<HTMLBRElement, framer_motion.HTMLMotionProps<"br">>, {}>;
|
|
20544
|
+
readonly button: StyledComponent<framer_motion.ForwardRefComponent<HTMLButtonElement, framer_motion.HTMLMotionProps<"button">>, {}>;
|
|
20545
|
+
readonly canvas: StyledComponent<framer_motion.ForwardRefComponent<HTMLCanvasElement, framer_motion.HTMLMotionProps<"canvas">>, {}>;
|
|
20546
|
+
readonly form: StyledComponent<framer_motion.ForwardRefComponent<HTMLFormElement, framer_motion.HTMLMotionProps<"form">>, {}>;
|
|
20547
|
+
readonly h1: StyledComponent<framer_motion.ForwardRefComponent<HTMLHeadingElement, framer_motion.HTMLMotionProps<"h1">>, {}>;
|
|
20548
|
+
readonly h2: StyledComponent<framer_motion.ForwardRefComponent<HTMLHeadingElement, framer_motion.HTMLMotionProps<"h2">>, {}>;
|
|
20549
|
+
readonly h3: StyledComponent<framer_motion.ForwardRefComponent<HTMLHeadingElement, framer_motion.HTMLMotionProps<"h3">>, {}>;
|
|
20550
|
+
readonly hr: StyledComponent<framer_motion.ForwardRefComponent<HTMLHRElement, framer_motion.HTMLMotionProps<"hr">>, {}>;
|
|
20551
|
+
readonly nav: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"nav">>, {}>;
|
|
20552
|
+
readonly main: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"main">>, {}>;
|
|
20553
|
+
readonly aside: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"aside">>, {}>;
|
|
20554
|
+
readonly article: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"article">>, {}>;
|
|
20555
|
+
readonly section: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"section">>, {}>;
|
|
20556
|
+
readonly details: StyledComponent<framer_motion.ForwardRefComponent<HTMLDetailsElement, framer_motion.HTMLMotionProps<"details">>, {}>;
|
|
20557
|
+
readonly header: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"header">>, {}>;
|
|
20558
|
+
readonly footer: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"footer">>, {}>;
|
|
20559
|
+
readonly strong: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"strong">>, {}>;
|
|
20560
|
+
readonly em: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"em">>, {}>;
|
|
20561
|
+
readonly img: StyledComponent<framer_motion.ForwardRefComponent<HTMLImageElement, framer_motion.HTMLMotionProps<"img">>, {}>;
|
|
20562
|
+
readonly del: StyledComponent<framer_motion.ForwardRefComponent<HTMLModElement, framer_motion.HTMLMotionProps<"del">>, {}>;
|
|
20563
|
+
readonly ins: StyledComponent<framer_motion.ForwardRefComponent<HTMLModElement, framer_motion.HTMLMotionProps<"ins">>, {}>;
|
|
20564
|
+
readonly kbd: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"kbd">>, {}>;
|
|
20565
|
+
readonly code: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"code">>, {}>;
|
|
20566
|
+
readonly mark: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"mark">>, {}>;
|
|
20567
|
+
readonly samp: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"samp">>, {}>;
|
|
20568
|
+
readonly small: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"small">>, {}>;
|
|
20569
|
+
readonly sub: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"sub">>, {}>;
|
|
20570
|
+
readonly sup: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"sup">>, {}>;
|
|
20571
|
+
readonly u: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"u">>, {}>;
|
|
20572
|
+
readonly var: StyledComponent<framer_motion.ForwardRefComponent<HTMLElement, framer_motion.HTMLMotionProps<"var">>, {}>;
|
|
20573
|
+
readonly input: StyledComponent<framer_motion.ForwardRefComponent<HTMLInputElement, framer_motion.HTMLMotionProps<"input">>, {}>;
|
|
20574
|
+
readonly label: StyledComponent<framer_motion.ForwardRefComponent<HTMLLabelElement, framer_motion.HTMLMotionProps<"label">>, {}>;
|
|
20575
|
+
readonly legend: StyledComponent<framer_motion.ForwardRefComponent<HTMLLegendElement, framer_motion.HTMLMotionProps<"legend">>, {}>;
|
|
20576
|
+
readonly p: StyledComponent<framer_motion.ForwardRefComponent<HTMLParagraphElement, framer_motion.HTMLMotionProps<"p">>, {}>;
|
|
20577
|
+
readonly select: StyledComponent<framer_motion.ForwardRefComponent<HTMLSelectElement, framer_motion.HTMLMotionProps<"select">>, {}>;
|
|
20578
|
+
readonly span: StyledComponent<framer_motion.ForwardRefComponent<HTMLSpanElement, framer_motion.HTMLMotionProps<"span">>, {}>;
|
|
20579
|
+
readonly svg: StyledComponent<framer_motion.ForwardRefComponent<SVGSVGElement, framer_motion.SVGMotionProps<SVGSVGElement>>, {}>;
|
|
20580
|
+
readonly textarea: StyledComponent<framer_motion.ForwardRefComponent<HTMLTextAreaElement, framer_motion.HTMLMotionProps<"textarea">>, {}>;
|
|
20581
|
+
readonly table: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableElement, framer_motion.HTMLMotionProps<"table">>, {}>;
|
|
20582
|
+
readonly tr: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableRowElement, framer_motion.HTMLMotionProps<"tr">>, {}>;
|
|
20583
|
+
readonly th: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableHeaderCellElement, framer_motion.HTMLMotionProps<"th">>, {}>;
|
|
20584
|
+
readonly td: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableDataCellElement, framer_motion.HTMLMotionProps<"td">>, {}>;
|
|
20585
|
+
readonly tbody: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableSectionElement, framer_motion.HTMLMotionProps<"tbody">>, {}>;
|
|
20586
|
+
readonly thead: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableSectionElement, framer_motion.HTMLMotionProps<"thead">>, {}>;
|
|
20587
|
+
readonly tfoot: StyledComponent<framer_motion.ForwardRefComponent<HTMLTableSectionElement, framer_motion.HTMLMotionProps<"tfoot">>, {}>;
|
|
20588
|
+
readonly progress: StyledComponent<framer_motion.ForwardRefComponent<HTMLProgressElement, framer_motion.HTMLMotionProps<"progress">>, {}>;
|
|
20589
|
+
readonly ol: StyledComponent<framer_motion.ForwardRefComponent<HTMLOListElement, framer_motion.HTMLMotionProps<"ol">>, {}>;
|
|
20590
|
+
readonly ul: StyledComponent<framer_motion.ForwardRefComponent<HTMLUListElement, framer_motion.HTMLMotionProps<"ul">>, {}>;
|
|
20591
|
+
readonly li: StyledComponent<framer_motion.ForwardRefComponent<HTMLLIElement, framer_motion.HTMLMotionProps<"li">>, {}>;
|
|
20592
|
+
readonly blockquote: StyledComponent<framer_motion.ForwardRefComponent<HTMLQuoteElement, framer_motion.HTMLMotionProps<"blockquote">>, {}>;
|
|
20593
|
+
readonly pre: StyledComponent<framer_motion.ForwardRefComponent<HTMLPreElement, framer_motion.HTMLMotionProps<"pre">>, {}>;
|
|
20594
|
+
};
|
|
20595
|
+
declare const loadingIconsMap: {
|
|
20596
|
+
readonly rotatingLines: React$1.FunctionComponent<react_loader_spinner._Props3>;
|
|
20597
|
+
readonly spinner: React$1.FunctionComponent<react_loader_spinner.TailSpinProps>;
|
|
20598
|
+
readonly beat: typeof BeatLoader;
|
|
20599
|
+
readonly dots: React$1.FunctionComponent<react_loader_spinner.ThreeDotsProps>;
|
|
20600
|
+
readonly oval: React$1.FunctionComponent<react_loader_spinner.OvalProps>;
|
|
20601
|
+
};
|
|
20602
|
+
|
|
20603
|
+
/**
|
|
20604
|
+
* Export file types for consumers
|
|
20605
|
+
* Import these in your project if you need ImageFile, AudioFile, VideoFile types
|
|
20606
|
+
*/
|
|
20607
|
+
|
|
20608
|
+
declare global {
|
|
20609
|
+
interface File {
|
|
20610
|
+
preview?: string;
|
|
20611
|
+
id?: string;
|
|
20612
|
+
}
|
|
20613
|
+
interface ImageFile extends File {
|
|
20614
|
+
id: string;
|
|
20615
|
+
preview: string;
|
|
20616
|
+
orientation: "landscape" | "portrait" | "square";
|
|
20617
|
+
height: number;
|
|
20618
|
+
width: number;
|
|
20619
|
+
}
|
|
20620
|
+
interface VideoFile extends File {
|
|
20621
|
+
id: string;
|
|
20622
|
+
orientation: "landscape" | "portrait" | "square";
|
|
20623
|
+
duration: number;
|
|
20624
|
+
height: number;
|
|
20625
|
+
width: number;
|
|
20626
|
+
}
|
|
20627
|
+
interface AudioFile extends File {
|
|
20628
|
+
id: string;
|
|
20629
|
+
preview: string;
|
|
20630
|
+
source: IAudioMetadata["common"] & IAudioMetadata["format"];
|
|
20631
|
+
}
|
|
20632
|
+
type MediaFile = File | ImageFile | AudioFile;
|
|
20633
|
+
}
|
|
20634
|
+
type PropsFor<K extends keyof typeof tags> = React.ComponentProps<(typeof tags)[K]>;
|
|
20635
|
+
type Icon = null | IconName | IconType | IconDefinition | React.ReactElement | (() => React.ReactElement);
|
|
20636
|
+
type IconProps = {
|
|
20637
|
+
iconPrefix?: "solid" | "regular" | "brands";
|
|
20638
|
+
className?: string;
|
|
20639
|
+
startIcon?: Icon;
|
|
20640
|
+
endIcon?: Icon;
|
|
20641
|
+
icon?: Icon;
|
|
20642
|
+
iconSize?: SizeProp;
|
|
20643
|
+
pulse?: boolean;
|
|
20644
|
+
spin?: boolean;
|
|
20645
|
+
};
|
|
20646
|
+
type LoadingIcon = keyof typeof loadingIconsMap;
|
|
20647
|
+
type Icons = Icon | LoadingIcon;
|
|
20648
|
+
type LoadingProps = {
|
|
20649
|
+
loadingPosition?: "start" | "end";
|
|
20650
|
+
loadingIconSize?: number | string;
|
|
20651
|
+
loadingIcon?: Icons;
|
|
20652
|
+
isLoading?: boolean;
|
|
20653
|
+
};
|
|
20654
|
+
type BlockMotionProps = {
|
|
20655
|
+
initial?: boolean | TargetAndTransition | VariantLabels;
|
|
20656
|
+
animate?: TargetAndTransition | VariantLabels;
|
|
20657
|
+
exit?: TargetAndTransition | VariantLabels;
|
|
20658
|
+
variants?: {
|
|
20659
|
+
[key: string]: TargetAndTransition;
|
|
20660
|
+
};
|
|
20661
|
+
whileHover?: TargetAndTransition | VariantLabels;
|
|
20662
|
+
whileTap?: TargetAndTransition | VariantLabels;
|
|
20663
|
+
whileFocus?: TargetAndTransition | VariantLabels;
|
|
20664
|
+
layout?: boolean | "position" | "size" | "preserve-aspect";
|
|
20665
|
+
_motion?: Transition;
|
|
20666
|
+
};
|
|
20667
|
+
type BaseBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & IconProps & {
|
|
20668
|
+
is?: undefined;
|
|
20669
|
+
as?: keyof typeof tags;
|
|
20670
|
+
tooltip?: boolean | React.ReactNode | string;
|
|
20671
|
+
portalContainer?: Element | DocumentFragment;
|
|
20672
|
+
filepicker?: boolean;
|
|
20673
|
+
portal?: boolean;
|
|
20674
|
+
};
|
|
20675
|
+
type TxtBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
20676
|
+
is: "txt";
|
|
20677
|
+
as?: "p" | "span" | "h1" | "h2" | "h3" | "em" | "strong";
|
|
20678
|
+
};
|
|
20679
|
+
type HrBlockProps = HTMLStyledProps<typeof motionTags.hr> & BlockMotionProps & {
|
|
20680
|
+
is: "hr";
|
|
20681
|
+
} & PropsFor<"hr">;
|
|
20682
|
+
type SkeletonBlockProps = Pick<HTMLStyledProps<typeof tags.div>, "height" | "h" | "width" | "w" | "size" | "borderRadius" | "br"> & {
|
|
20683
|
+
is: "skeleton";
|
|
20684
|
+
as: "block";
|
|
20685
|
+
};
|
|
20686
|
+
type SkeletonCircleProps = Pick<HTMLStyledProps<typeof tags.div>, "height" | "h" | "width" | "w" | "size" | "borderRadius" | "br"> & {
|
|
20687
|
+
is: "skeleton";
|
|
20688
|
+
as: "circle";
|
|
20689
|
+
};
|
|
20690
|
+
type BtnBlockPropsBase = Omit<HTMLStyledProps<typeof motionTags.button>, "onChange"> & BlockMotionProps & IconProps & LoadingProps & {
|
|
20691
|
+
is: "btn";
|
|
20692
|
+
disabled?: boolean;
|
|
20693
|
+
type?: "button" | "submit" | "reset";
|
|
20694
|
+
onClick?: React.MouseEventHandler;
|
|
20695
|
+
tooltip?: boolean | React.ReactNode | string;
|
|
20696
|
+
};
|
|
20697
|
+
type BtnFilepickerProps = BtnBlockPropsBase & {
|
|
20698
|
+
filepicker: true;
|
|
20699
|
+
onChange?: (files: File[]) => void;
|
|
20700
|
+
multiple?: boolean;
|
|
20701
|
+
accept?: string;
|
|
20702
|
+
};
|
|
20703
|
+
type BtnStandardProps = BtnBlockPropsBase & {
|
|
20704
|
+
filepicker?: false | undefined;
|
|
20705
|
+
onChange?: React.FormEventHandler<HTMLButtonElement>;
|
|
20706
|
+
};
|
|
20707
|
+
type BtnBlockProps = BtnBlockPropsBase & {
|
|
20708
|
+
filepicker?: boolean;
|
|
20709
|
+
multiple?: boolean;
|
|
20710
|
+
accept?: string;
|
|
20711
|
+
onChange?: any;
|
|
20712
|
+
};
|
|
20713
|
+
type InputBlockProps = HTMLStyledProps<typeof tags.input> & BlockMotionProps & {
|
|
20714
|
+
is: "input";
|
|
20715
|
+
error?: string;
|
|
20716
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "children">;
|
|
20717
|
+
type TextareaBlockProps = HTMLStyledProps<typeof tags.textarea> & BlockMotionProps & {
|
|
20718
|
+
is: "textarea";
|
|
20719
|
+
error?: string;
|
|
20720
|
+
/** Maximum number of rows the textarea can expand to */
|
|
20721
|
+
maxRows?: number;
|
|
20722
|
+
/** Minimum number of rows the textarea will display */
|
|
20723
|
+
minRows?: number;
|
|
20724
|
+
/** Callback fired when the textarea height changes */
|
|
20725
|
+
onHeightChange?: (height: number, meta: {
|
|
20726
|
+
rowHeight: number;
|
|
20727
|
+
}) => void;
|
|
20728
|
+
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "children">;
|
|
20729
|
+
type CheckboxBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
20730
|
+
is: "checkbox";
|
|
20731
|
+
onChecked?: (value: boolean) => void;
|
|
20732
|
+
indeterminate?: boolean;
|
|
20733
|
+
checked?: boolean;
|
|
20734
|
+
};
|
|
20735
|
+
type ProgressBlockProps = HTMLStyledProps<typeof motionTags.div> & BlockMotionProps & {
|
|
20736
|
+
is: "progress";
|
|
20737
|
+
value: number;
|
|
20738
|
+
max?: number;
|
|
20739
|
+
steps?: number;
|
|
20740
|
+
} & PropsFor<"progress">;
|
|
20741
|
+
type SwitchBlockProps = Omit<HTMLStyledProps<typeof tags.input>, "onChange"> & BlockMotionProps & {
|
|
20742
|
+
is: "switch";
|
|
20743
|
+
thumbSize?: number;
|
|
20744
|
+
onChange?: (checked: boolean) => void;
|
|
20745
|
+
} & Omit<PropsFor<"button">, "onChange">;
|
|
20746
|
+
type AccordionBlockProps = {
|
|
20747
|
+
is: "accordion";
|
|
20748
|
+
allowToggle?: boolean;
|
|
20749
|
+
allowMultiple?: boolean;
|
|
20750
|
+
defaultOpenIdx?: number[];
|
|
20751
|
+
children: React.ReactElement | React.ReactElement[];
|
|
20752
|
+
};
|
|
20753
|
+
type DrawerBlockProps = HTMLStyledProps<typeof motionTags.div> & BlockMotionProps & {
|
|
20754
|
+
is: "drawer";
|
|
20755
|
+
open: boolean;
|
|
20756
|
+
hideHandle?: boolean;
|
|
20757
|
+
/** @default true */
|
|
20758
|
+
drag?: boolean;
|
|
20759
|
+
/** @default true */
|
|
20760
|
+
outsideClickClose?: boolean;
|
|
20761
|
+
closeOnEsc?: boolean;
|
|
20762
|
+
onClose?: () => void;
|
|
20763
|
+
};
|
|
20764
|
+
type RadioOption = {
|
|
20765
|
+
label: React.ReactNode;
|
|
20766
|
+
value: string;
|
|
20767
|
+
disabled?: boolean;
|
|
20768
|
+
};
|
|
20769
|
+
type RadioBlockProps = Omit<HTMLStyledProps<typeof base>, "onChange" | "children"> & BlockMotionProps & {
|
|
20770
|
+
is: "radio";
|
|
20771
|
+
/** Controlled value for single-select radio group */
|
|
20772
|
+
value?: string | null;
|
|
20773
|
+
/** Uncontrolled initial value */
|
|
20774
|
+
defaultValue?: string | null;
|
|
20775
|
+
/** Change handler. Returns the selected value */
|
|
20776
|
+
onChange?: (value: string) => void;
|
|
20777
|
+
/** Disable the entire group */
|
|
20778
|
+
disabled?: boolean;
|
|
20779
|
+
/** Optional form field name. If provided, a hidden input will be emitted. */
|
|
20780
|
+
name?: string;
|
|
20781
|
+
/** Options to render (children are not accepted for radio) */
|
|
20782
|
+
options?: RadioOption[];
|
|
20783
|
+
/** Optional renderer for custom per-option content */
|
|
20784
|
+
renderOption?: (option: RadioOption) => React.ReactNode;
|
|
20785
|
+
/** Disallow children for the radio container */
|
|
20786
|
+
children?: never;
|
|
20787
|
+
};
|
|
20788
|
+
type MenuBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
20789
|
+
is: "menu";
|
|
20790
|
+
trigger?: React.ReactNode;
|
|
20791
|
+
variant: "click" | "hover";
|
|
20792
|
+
placement?: Placement$1;
|
|
20793
|
+
hoverDelay?: number;
|
|
20794
|
+
zIndex?: number;
|
|
20795
|
+
onOpenOrClose?: (isOpen: boolean) => void;
|
|
20796
|
+
offset?: {
|
|
20797
|
+
x: number;
|
|
20798
|
+
y: number;
|
|
20799
|
+
};
|
|
20800
|
+
isOpen?: boolean;
|
|
20801
|
+
width?: string | number;
|
|
20802
|
+
};
|
|
20803
|
+
type LinkBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
20804
|
+
is: "link";
|
|
20805
|
+
href?: string;
|
|
20806
|
+
to?: string;
|
|
20807
|
+
target?: "_self" | "_blank";
|
|
20808
|
+
rel?: string;
|
|
20809
|
+
};
|
|
20810
|
+
type ImgBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
20811
|
+
is: "img";
|
|
20812
|
+
src: string;
|
|
20813
|
+
alt: string;
|
|
20814
|
+
};
|
|
20815
|
+
type SelectBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
20816
|
+
is: "select";
|
|
20817
|
+
} & Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "children">;
|
|
20818
|
+
type BlockquoteBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
20819
|
+
is: "blockquote";
|
|
20820
|
+
} & PropsFor<"blockquote">;
|
|
20821
|
+
type PreBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & {
|
|
20822
|
+
is: "pre";
|
|
20823
|
+
} & PropsFor<"pre">;
|
|
20824
|
+
type FormBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & (({
|
|
20825
|
+
is: "form";
|
|
20826
|
+
as?: undefined;
|
|
20827
|
+
} & PropsFor<"form">) | ({
|
|
20828
|
+
is: "form";
|
|
20829
|
+
as: "label";
|
|
20830
|
+
} & PropsFor<"label">) | ({
|
|
20831
|
+
is: "form";
|
|
20832
|
+
as: "legend";
|
|
20833
|
+
} & PropsFor<"legend">));
|
|
20834
|
+
type TableBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & (({
|
|
20835
|
+
is: "table";
|
|
20836
|
+
as?: undefined;
|
|
20837
|
+
} & PropsFor<"table">) | ({
|
|
20838
|
+
is: "table";
|
|
20839
|
+
as: "tr";
|
|
20840
|
+
} & PropsFor<"tr">) | ({
|
|
20841
|
+
is: "table";
|
|
20842
|
+
as: "td";
|
|
20843
|
+
} & PropsFor<"td">) | ({
|
|
20844
|
+
is: "table";
|
|
20845
|
+
as: "th";
|
|
20846
|
+
} & PropsFor<"th">) | ({
|
|
20847
|
+
is: "table";
|
|
20848
|
+
as: "tbody";
|
|
20849
|
+
} & PropsFor<"tbody">) | ({
|
|
20850
|
+
is: "table";
|
|
20851
|
+
as: "thead";
|
|
20852
|
+
} & PropsFor<"thead">) | ({
|
|
20853
|
+
is: "table";
|
|
20854
|
+
as: "tfoot";
|
|
20855
|
+
} & PropsFor<"tfoot">));
|
|
20856
|
+
type ListBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & (({
|
|
20857
|
+
is: "list";
|
|
20858
|
+
as: "ul";
|
|
20859
|
+
} & PropsFor<"ul">) | ({
|
|
20860
|
+
is: "list";
|
|
20861
|
+
as: "ol";
|
|
20862
|
+
} & PropsFor<"ol">) | ({
|
|
20863
|
+
is: "list";
|
|
20864
|
+
as: "li";
|
|
20865
|
+
} & PropsFor<"li">));
|
|
20866
|
+
type SeoBlockProps = HTMLStyledProps<typeof base> & BlockMotionProps & (({
|
|
20867
|
+
is: "seo";
|
|
20868
|
+
as: "nav";
|
|
20869
|
+
} & PropsFor<"nav">) | ({
|
|
20870
|
+
is: "seo";
|
|
20871
|
+
as: "main";
|
|
20872
|
+
} & PropsFor<"main">) | ({
|
|
20873
|
+
is: "seo";
|
|
20874
|
+
as: "aside";
|
|
20875
|
+
} & PropsFor<"aside">) | ({
|
|
20876
|
+
is: "seo";
|
|
20877
|
+
as: "article";
|
|
20878
|
+
} & PropsFor<"article">) | ({
|
|
20879
|
+
is: "seo";
|
|
20880
|
+
as: "section";
|
|
20881
|
+
} & PropsFor<"section">) | ({
|
|
20882
|
+
is: "seo";
|
|
20883
|
+
as: "details";
|
|
20884
|
+
} & PropsFor<"details">) | ({
|
|
20885
|
+
is: "seo";
|
|
20886
|
+
as: "header";
|
|
20887
|
+
} & PropsFor<"header">) | ({
|
|
20888
|
+
is: "seo";
|
|
20889
|
+
as: "footer";
|
|
20890
|
+
} & PropsFor<"footer">));
|
|
20891
|
+
type AllBlockProps = BaseBlockProps | TxtBlockProps | HrBlockProps | BtnBlockProps | InputBlockProps | TextareaBlockProps | CheckboxBlockProps | ProgressBlockProps | AccordionBlockProps | SwitchBlockProps | DrawerBlockProps | RadioBlockProps | MenuBlockProps | LinkBlockProps | ImgBlockProps | SelectBlockProps | SkeletonCircleProps | SkeletonBlockProps | BlockquoteBlockProps | PreBlockProps | FormBlockProps | TableBlockProps | ListBlockProps | SeoBlockProps;
|
|
20892
|
+
type BlockProps = AllBlockProps;
|
|
20893
|
+
|
|
20894
|
+
declare function MenuContainer(props: BaseBlockProps): react_jsx_runtime.JSX.Element;
|
|
20925
20895
|
|
|
20926
|
-
|
|
20927
|
-
|
|
20928
|
-
|
|
20929
|
-
|
|
20896
|
+
type SharedProps = {
|
|
20897
|
+
_motion?: Transition;
|
|
20898
|
+
};
|
|
20899
|
+
type HtmlAnimationHandlers = Pick<React__default.HTMLAttributes<HTMLDivElement>, "onAnimationStart" | "onAnimationEnd" | "onAnimationIteration" | "onTransitionEnd" | "onDrag" | "onDragStart" | "onDragEnd">;
|
|
20900
|
+
type StripConflictingHandlers<T> = Omit<T, keyof HtmlAnimationHandlers>;
|
|
20901
|
+
type TrackProps = StripConflictingHandlers<BaseBlockProps> & SharedProps;
|
|
20902
|
+
type ThumbProps = StripConflictingHandlers<BaseBlockProps> & SharedProps;
|
|
20903
|
+
declare function Track(props: TrackProps): react_jsx_runtime.JSX.Element;
|
|
20904
|
+
declare namespace Track {
|
|
20905
|
+
var displayName: string;
|
|
20930
20906
|
}
|
|
20931
|
-
|
|
20932
|
-
|
|
20933
|
-
|
|
20934
|
-
|
|
20935
|
-
|
|
20936
|
-
declare module '@pandacss/dev' {
|
|
20937
|
-
export function defineRecipe<V extends RecipeVariantRecord>(config: RecipeConfig<V>): Panda.RecipeConfig
|
|
20938
|
-
export function defineSlotRecipe<S extends string, V extends SlotRecipeVariantRecord<S>>(config: SlotRecipeConfig<S, V>): Panda.SlotRecipeConfig
|
|
20939
|
-
export function defineStyles(definition: SystemStyleObject): SystemStyleObject
|
|
20940
|
-
export function defineGlobalStyles(definition: GlobalStyleObject): Panda.GlobalStyleObject
|
|
20941
|
-
export function defineTextStyles(definition: CompositionStyles['textStyles']): Panda.TextStyles
|
|
20942
|
-
export function defineAnimationStyles(definition: CompositionStyles['animationStyles']): Panda.AnimationStyles
|
|
20943
|
-
export function defineLayerStyles(definition: CompositionStyles['layerStyles']): Panda.LayerStyles
|
|
20944
|
-
export function definePattern<T extends PatternProperties>(config: PatternConfig<T>): Panda.PatternConfig
|
|
20945
|
-
export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>
|
|
20907
|
+
declare function Thumb(props: ThumbProps): react_jsx_runtime.JSX.Element;
|
|
20908
|
+
declare namespace Thumb {
|
|
20909
|
+
var displayName: string;
|
|
20946
20910
|
}
|
|
20947
20911
|
|
|
20948
|
-
|
|
20949
|
-
|
|
20912
|
+
type RadioItemProps = Omit<BaseBlockProps, "is"> & {
|
|
20913
|
+
value: string;
|
|
20914
|
+
disabled?: boolean;
|
|
20915
|
+
children?: React__default.ReactNode;
|
|
20916
|
+
};
|
|
20917
|
+
declare function Item$1(props: RadioItemProps): react_jsx_runtime.JSX.Element;
|
|
20950
20918
|
|
|
20951
|
-
|
|
20952
|
-
|
|
20919
|
+
/**
|
|
20920
|
+
* Textarea (PandaCSS + autosize)
|
|
20921
|
+
*
|
|
20922
|
+
* Story:
|
|
20923
|
+
* - Renders a PandaCSS-styled `<textarea>` that grows/shrinks to fit content.
|
|
20924
|
+
* - To compute the required height we copy the textarea's text-related styles
|
|
20925
|
+
* to a single hidden textarea, write the same content, read its scrollHeight,
|
|
20926
|
+
* and apply the resulting height via inline style with `!important` so theme
|
|
20927
|
+
* overrides can't break sizing.
|
|
20928
|
+
* - We recalc height when value/placeholder/minRows/maxRows change, and also
|
|
20929
|
+
* on window resize and when fonts finish loading (font metrics change line
|
|
20930
|
+
* heights). Uncontrolled form resets are handled by waiting a frame so the
|
|
20931
|
+
* browser can update the value first, then we measure.
|
|
20932
|
+
* - minRows/maxRows are respected in both content-box and border-box models.
|
|
20933
|
+
*/
|
|
20934
|
+
type LabelProps$1 = {
|
|
20935
|
+
value?: TextareaBlockProps["value"];
|
|
20936
|
+
required?: boolean;
|
|
20937
|
+
error?: string;
|
|
20938
|
+
};
|
|
20939
|
+
declare function Label$1(props: BaseBlockProps & LabelProps$1): react_jsx_runtime.JSX.Element;
|
|
20940
|
+
declare namespace Label$1 {
|
|
20941
|
+
var displayName: string;
|
|
20953
20942
|
}
|
|
20954
20943
|
|
|
20955
|
-
|
|
20956
|
-
|
|
20957
|
-
|
|
20958
|
-
|
|
20959
|
-
|
|
20944
|
+
type LabelProps = {
|
|
20945
|
+
value?: InputBlockProps["value"];
|
|
20946
|
+
hasLeftIcon?: boolean;
|
|
20947
|
+
};
|
|
20948
|
+
declare function LeftIcon(props: BaseBlockProps): react_jsx_runtime.JSX.Element;
|
|
20949
|
+
declare namespace LeftIcon {
|
|
20950
|
+
var displayName: string;
|
|
20960
20951
|
}
|
|
20961
|
-
|
|
20962
|
-
|
|
20963
|
-
|
|
20964
|
-
|
|
20965
|
-
|
|
20966
|
-
|
|
20952
|
+
declare function RightSide(props: BaseBlockProps & {
|
|
20953
|
+
value?: string;
|
|
20954
|
+
clearable?: boolean;
|
|
20955
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
20956
|
+
declare namespace RightSide {
|
|
20957
|
+
var displayName: string;
|
|
20958
|
+
}
|
|
20959
|
+
declare function Label(props: InputBlockProps & LabelProps): react_jsx_runtime.JSX.Element;
|
|
20960
|
+
declare namespace Label {
|
|
20961
|
+
var displayName: string;
|
|
20967
20962
|
}
|
|
20968
20963
|
|
|
20969
|
-
type
|
|
20970
|
-
|
|
20971
|
-
|
|
20972
|
-
|
|
20973
|
-
|
|
20974
|
-
|
|
20975
|
-
|
|
20964
|
+
type AccordionItemProps = Omit<BtnBlockProps, "is" | "title"> & {
|
|
20965
|
+
title: React__default.ReactNode;
|
|
20966
|
+
children: React__default.ReactNode;
|
|
20967
|
+
/** icon to indicate if open or closed */
|
|
20968
|
+
rightIndicator?: (open: boolean) => React__default.ReactNode;
|
|
20969
|
+
rightStatusIcon?: React__default.ReactNode;
|
|
20970
|
+
onClick?: (e: React__default.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
20971
|
+
className?: string;
|
|
20972
|
+
};
|
|
20973
|
+
declare function Item(props: AccordionItemProps): react_jsx_runtime.JSX.Element;
|
|
20974
|
+
declare namespace Item {
|
|
20975
|
+
var displayName: string;
|
|
20976
20976
|
}
|
|
20977
20977
|
|
|
20978
20978
|
declare const MotionDiv: StyledComponent<framer_motion.ForwardRefComponent<HTMLDivElement, framer_motion.HTMLMotionProps<"div">>, {}>;
|