@fpkit/acss 0.4.19 → 0.5.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/libs/chunk-TBM2QIVT.js +8 -0
- package/libs/chunk-TBM2QIVT.js.map +1 -0
- package/libs/chunk-VAH6X2DZ.cjs +31 -0
- package/libs/chunk-VAH6X2DZ.cjs.map +1 -0
- package/libs/components/badge/badge.css +1 -1
- package/libs/components/badge/badge.css.map +1 -1
- package/libs/components/badge/badge.min.css +2 -2
- package/libs/components/buttons/button.css +1 -1
- package/libs/components/buttons/button.css.map +1 -1
- package/libs/components/buttons/button.min.css +2 -2
- package/libs/components/cards/card.css +1 -1
- package/libs/components/cards/card.css.map +1 -1
- package/libs/components/cards/card.min.css +2 -2
- package/libs/components/details/details.css +1 -1
- package/libs/components/details/details.css.map +1 -1
- package/libs/components/details/details.min.css +2 -2
- package/libs/components/icons/icon.css +1 -1
- package/libs/components/icons/icon.css.map +1 -1
- package/libs/components/icons/icon.min.css +2 -2
- package/libs/{icons-1f5afc0c.d.ts → icons-2f29127c.d.ts} +32 -1
- package/libs/icons.cjs +2 -2
- package/libs/icons.d.cts +1 -1
- package/libs/icons.d.ts +1 -1
- package/libs/icons.js +1 -1
- package/libs/index.cjs +37 -37
- package/libs/index.cjs.map +1 -1
- package/libs/index.css +1 -1
- package/libs/index.css.map +1 -1
- package/libs/index.d.cts +8 -5
- package/libs/index.d.ts +8 -5
- package/libs/index.js +6 -6
- package/libs/index.js.map +1 -1
- package/package.json +3 -2
- package/src/components/badge/badge.scss +1 -0
- package/src/components/badge/badge.stories.tsx +3 -3
- package/src/components/breadcrumbs/breadcrumb.stories.tsx +26 -10
- package/src/components/breadcrumbs/breadcrumb.tsx +48 -40
- package/src/components/buttons/button.scss +3 -4
- package/src/components/buttons/button.stories.tsx +50 -28
- package/src/components/buttons/button.test.tsx +1 -1
- package/src/components/buttons/button.tsx +31 -4
- package/src/components/cards/card.scss +5 -3
- package/src/components/cards/card.stories.tsx +4 -4
- package/src/components/cards/card.tsx +0 -1
- package/src/components/details/details.scss +12 -3
- package/src/components/details/details.stories.tsx +20 -4
- package/src/components/details/details.tsx +2 -1
- package/src/components/form/form.stories.tsx +2 -2
- package/src/components/form/input.stories.tsx +2 -2
- package/src/components/form/select.stories.tsx +2 -2
- package/src/components/form/select.tsx +23 -33
- package/src/components/fp.test.tsx +1 -1
- package/src/components/heading/heading.stories.tsx +2 -2
- package/src/components/heading/heading.tsx +2 -2
- package/src/components/icons/components/svg.tsx +1 -0
- package/src/components/icons/icon.scss +2 -0
- package/src/components/icons/icon.stories.tsx +23 -3
- package/src/components/icons/icon.tsx +11 -0
- package/src/components/icons/types.ts +1 -1
- package/src/components/images/figure.stories.tsx +3 -6
- package/src/components/images/img.stories.tsx +3 -3
- package/src/components/layout/footer.stories.tsx +2 -2
- package/src/components/layout/landmarks.stories.tsx +2 -2
- package/src/components/layout/main.stories.tsx +2 -2
- package/src/components/link/link.stories.tsx +2 -2
- package/src/components/list/list.stories.tsx +7 -2
- package/src/components/nav/nav.stories.tsx +4 -3
- package/src/components/popover/popover.stories.tsx +2 -2
- package/src/components/progress/progress.stories.tsx +2 -2
- package/src/components/tag/tag.stories.tsx +3 -3
- package/src/components/text/text.stories.tsx +6 -6
- package/src/patterns/page/page-header.stories.tsx +2 -2
- package/src/sass/_globals.scss +9 -7
- package/src/styles/badge/badge.css +1 -0
- package/src/styles/badge/badge.css.map +1 -1
- package/src/styles/buttons/button.css +3 -3
- package/src/styles/buttons/button.css.map +1 -1
- package/src/styles/cards/card.css +2 -3
- package/src/styles/cards/card.css.map +1 -1
- package/src/styles/details/details.css +11 -3
- package/src/styles/details/details.css.map +1 -1
- package/src/styles/icons/icon.css +2 -0
- package/src/styles/icons/icon.css.map +1 -1
- package/src/styles/index.css +26 -16
- package/src/styles/index.css.map +1 -1
- package/LICENSE +0 -21
- package/dist/chunk-77CZU5XZ.cjs +0 -9
- package/dist/chunk-77CZU5XZ.cjs.map +0 -1
- package/dist/chunk-D43FJIRQ.cjs +0 -31
- package/dist/chunk-D43FJIRQ.cjs.map +0 -1
- package/dist/chunk-GJWMCDFS.js +0 -9
- package/dist/chunk-GJWMCDFS.js.map +0 -1
- package/dist/chunk-PCDUGD3C.js +0 -5
- package/dist/chunk-PCDUGD3C.js.map +0 -1
- package/dist/hooks.cjs +0 -10
- package/dist/hooks.cjs.map +0 -1
- package/dist/hooks.d.cts +0 -32
- package/dist/hooks.d.ts +0 -32
- package/dist/hooks.js +0 -8
- package/dist/hooks.js.map +0 -1
- package/dist/icon-e6044c73.d.ts +0 -227
- package/dist/icons.cjs +0 -73
- package/dist/icons.cjs.map +0 -1
- package/dist/icons.d.cts +0 -252
- package/dist/icons.d.ts +0 -252
- package/dist/icons.js +0 -4
- package/dist/icons.js.map +0 -1
- package/dist/index.cjs +0 -59
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -566
- package/dist/index.d.ts +0 -566
- package/dist/index.js +0 -11
- package/dist/index.js.map +0 -1
- package/libs/chunk-QHIABQNQ.js +0 -8
- package/libs/chunk-QHIABQNQ.js.map +0 -1
- package/libs/chunk-ZOHIKF6I.cjs +0 -31
- package/libs/chunk-ZOHIKF6I.cjs.map +0 -1
- package/src/components/popover/node_modules/.vitest/results.json +0 -1
- package/src/hooks/popover/node_modules/.vitest/results.json +0 -1
package/dist/index.d.cts
DELETED
|
@@ -1,566 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React$1 from 'react';
|
|
3
|
-
import React__default from 'react';
|
|
4
|
-
import { C as ComponentProps$1 } from './icon-e6044c73.js';
|
|
5
|
-
export { I as Icon } from './icon-e6044c73.js';
|
|
6
|
-
|
|
7
|
-
interface FpBadgeProps {
|
|
8
|
-
elm?: 'span' | 'p';
|
|
9
|
-
children: React__default.ReactNode;
|
|
10
|
-
role: 'note' | 'alert' | 'status';
|
|
11
|
-
renderStyles?: boolean;
|
|
12
|
-
styles?: {};
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @description Creates a Badge component that wraps a child element with a badge.
|
|
16
|
-
* @param {string} elm - element type to render
|
|
17
|
-
* @param {string} role - aria role
|
|
18
|
-
* @param {any} children - child element to render
|
|
19
|
-
* @param {boolean} renderStyles - whether or not to render the default styles
|
|
20
|
-
* @param {object} styles - styles to pass to the FP component
|
|
21
|
-
* @param {object} props - additional props to pass to the FP component
|
|
22
|
-
* @returns {any} - returns the Badge component
|
|
23
|
-
*/
|
|
24
|
-
declare const Badge: {
|
|
25
|
-
({ elm, role, children, renderStyles, styles, ...props }: FpBadgeProps): react_jsx_runtime.JSX.Element;
|
|
26
|
-
styles: {
|
|
27
|
-
paddingInline: string;
|
|
28
|
-
paddingBlock: string;
|
|
29
|
-
color: string;
|
|
30
|
-
fontSize: string;
|
|
31
|
-
fontWeight: string;
|
|
32
|
-
fontFamily: string;
|
|
33
|
-
border: string;
|
|
34
|
-
borderRadius: string;
|
|
35
|
-
backgroundColor: string;
|
|
36
|
-
textDecoration: string;
|
|
37
|
-
textTransform: string;
|
|
38
|
-
};
|
|
39
|
-
displayName: string;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
43
|
-
/**
|
|
44
|
-
* The type of the button.
|
|
45
|
-
*/
|
|
46
|
-
type: 'button' | 'submit' | 'reset';
|
|
47
|
-
/**
|
|
48
|
-
* Button label/content
|
|
49
|
-
*/
|
|
50
|
-
children: React.ReactNode;
|
|
51
|
-
/**
|
|
52
|
-
* Button styles and props
|
|
53
|
-
*/
|
|
54
|
-
styles?: object;
|
|
55
|
-
/**
|
|
56
|
-
* button classes
|
|
57
|
-
*/
|
|
58
|
-
classes?: string;
|
|
59
|
-
/**
|
|
60
|
-
* @deprecated import styles Button.styles
|
|
61
|
-
* default button styles
|
|
62
|
-
*/
|
|
63
|
-
defaultStyles?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Button pointer-down event (pointerOver, pointerLeave)
|
|
66
|
-
*/
|
|
67
|
-
pointerDown?: (e: React.PointerEvent) => void;
|
|
68
|
-
/**
|
|
69
|
-
* Button pointer-down event (pointerOver, pointerLeave)
|
|
70
|
-
*/
|
|
71
|
-
pointerOver?: (e: React.PointerEvent) => void;
|
|
72
|
-
/**
|
|
73
|
-
* Pointer leave event handler for the Button component.
|
|
74
|
-
*
|
|
75
|
-
* @param {React.PointerEvent} e - The pointer event
|
|
76
|
-
*/
|
|
77
|
-
pointerLeave?: (e: React.PointerEvent) => void;
|
|
78
|
-
}
|
|
79
|
-
declare const Button: {
|
|
80
|
-
({ type, children, styles, disabled, classes, pointerDown, pointerOver, pointerLeave, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
81
|
-
styles: {
|
|
82
|
-
paddingInline: string;
|
|
83
|
-
paddingBlock: string;
|
|
84
|
-
display: string;
|
|
85
|
-
placeItems: string;
|
|
86
|
-
justifyContent: string;
|
|
87
|
-
cursor: string;
|
|
88
|
-
border: string;
|
|
89
|
-
color: string;
|
|
90
|
-
backgroundColor: string;
|
|
91
|
-
borderRadius: string;
|
|
92
|
-
};
|
|
93
|
-
displayName: string;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
interface ComponentProps {
|
|
97
|
-
/**
|
|
98
|
-
* The default child content/component to render.
|
|
99
|
-
*/
|
|
100
|
-
children?: React.ReactNode;
|
|
101
|
-
/**
|
|
102
|
-
* Use defaylt component styles
|
|
103
|
-
*/
|
|
104
|
-
renderStyles?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Component id attribute
|
|
107
|
-
*/
|
|
108
|
-
id?: string;
|
|
109
|
-
/**
|
|
110
|
-
* Styles object
|
|
111
|
-
*/
|
|
112
|
-
styles?: {};
|
|
113
|
-
/**
|
|
114
|
-
* Component class attribute
|
|
115
|
-
*/
|
|
116
|
-
classes?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Style value for [data-style] attribute
|
|
119
|
-
*/
|
|
120
|
-
dataStyle?: string;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
interface SharedInputProps extends ComponentProps {
|
|
124
|
-
/**
|
|
125
|
-
* The input name
|
|
126
|
-
*/
|
|
127
|
-
name?: string;
|
|
128
|
-
/**
|
|
129
|
-
* The input value
|
|
130
|
-
*/
|
|
131
|
-
value?: string;
|
|
132
|
-
/**
|
|
133
|
-
* The input placeholder
|
|
134
|
-
*/
|
|
135
|
-
placeholder?: string;
|
|
136
|
-
/**
|
|
137
|
-
* Input is required or not
|
|
138
|
-
*/
|
|
139
|
-
required?: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* Input id attribute
|
|
142
|
-
*/
|
|
143
|
-
id: string;
|
|
144
|
-
/**
|
|
145
|
-
* Set the element as disabled
|
|
146
|
-
*/
|
|
147
|
-
disabled?: boolean;
|
|
148
|
-
/**
|
|
149
|
-
* Set the element as readonly
|
|
150
|
-
*/
|
|
151
|
-
readonly?: boolean;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
interface CardProps extends ComponentProps$1 {
|
|
155
|
-
elm?: 'div' | 'aside' | 'section' | 'article';
|
|
156
|
-
}
|
|
157
|
-
declare const Card: {
|
|
158
|
-
({ elm, styles, children, renderStyles, dataStyle, id, ...props }: CardProps): react_jsx_runtime.JSX.Element;
|
|
159
|
-
styles: {
|
|
160
|
-
padding: string;
|
|
161
|
-
backgroundColor: string;
|
|
162
|
-
boxShadow: string;
|
|
163
|
-
borderRadius: string;
|
|
164
|
-
border: string;
|
|
165
|
-
color: string;
|
|
166
|
-
};
|
|
167
|
-
displayName: string;
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
interface DialogProps extends ComponentProps$1 {
|
|
171
|
-
/**
|
|
172
|
-
* React ref for dialog element
|
|
173
|
-
*/
|
|
174
|
-
modalRef: React__default.RefObject<HTMLDialogElement>;
|
|
175
|
-
/**
|
|
176
|
-
* Handle close modal event
|
|
177
|
-
*/
|
|
178
|
-
closeModal?: (e: React__default.SyntheticEvent<HTMLDialogElement>) => void;
|
|
179
|
-
/**
|
|
180
|
-
* open modal on mount
|
|
181
|
-
*/
|
|
182
|
-
openOnMount?: boolean;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Dialog component
|
|
186
|
-
*/
|
|
187
|
-
declare const Dialog: {
|
|
188
|
-
({ id, children, modalRef, openOnMount, ...props }: DialogProps): react_jsx_runtime.JSX.Element;
|
|
189
|
-
displayName: string;
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
interface DropdownProps$1 extends ComponentProps$1 {
|
|
193
|
-
elm?: 'div' | 'aside';
|
|
194
|
-
title: string;
|
|
195
|
-
children: React.ReactNode;
|
|
196
|
-
onToggle?: (e: React.SyntheticEvent) => void;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
interface SummaryPros {
|
|
200
|
-
children: React.ReactNode;
|
|
201
|
-
styles?: {};
|
|
202
|
-
renderStyles?: boolean;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
interface DropdownProps extends ComponentProps$1 {
|
|
206
|
-
title: string;
|
|
207
|
-
summary: React.ReactNode;
|
|
208
|
-
toggle?: (e: React.SyntheticEvent) => void;
|
|
209
|
-
}
|
|
210
|
-
declare const Dropdown: {
|
|
211
|
-
({ styles, children, summary, toggle, renderStyles, ...props }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
212
|
-
styles: {
|
|
213
|
-
display: string;
|
|
214
|
-
placeContent: string;
|
|
215
|
-
placeItems: string;
|
|
216
|
-
gap: string;
|
|
217
|
-
border: string;
|
|
218
|
-
transition: string;
|
|
219
|
-
backgroundColor: string;
|
|
220
|
-
padding: string;
|
|
221
|
-
minWidth: string;
|
|
222
|
-
maxWidth: string;
|
|
223
|
-
};
|
|
224
|
-
Summary: {
|
|
225
|
-
({ children, styles, renderStyles, ...props }: SummaryPros): react_jsx_runtime.JSX.Element;
|
|
226
|
-
styles: {
|
|
227
|
-
listStyle: string;
|
|
228
|
-
justifyContent: string;
|
|
229
|
-
color: string;
|
|
230
|
-
cursor: string;
|
|
231
|
-
};
|
|
232
|
-
displayName: string;
|
|
233
|
-
};
|
|
234
|
-
Details: {
|
|
235
|
-
({ title, children, styles, renderStyles, onToggle, ...props }: DropdownProps$1): react_jsx_runtime.JSX.Element;
|
|
236
|
-
styles: {
|
|
237
|
-
padding: string;
|
|
238
|
-
backgroundColor: string;
|
|
239
|
-
};
|
|
240
|
-
displayName: string;
|
|
241
|
-
};
|
|
242
|
-
displayName: string;
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
interface FieldProps extends ComponentProps$1 {
|
|
246
|
-
/**
|
|
247
|
-
* Defines the for attribute of the label element
|
|
248
|
-
*/
|
|
249
|
-
labelFor: string;
|
|
250
|
-
/**
|
|
251
|
-
* The label content
|
|
252
|
-
*/
|
|
253
|
-
label: React.ReactNode;
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* Field component that renders a label and children wrapped in a div element.
|
|
257
|
-
* @param labelFor Defines the for attribute of the label element
|
|
258
|
-
* @param styles Custom styles to be applied to the component
|
|
259
|
-
* @param label The label content
|
|
260
|
-
* @param children The children to be rendered inside the component
|
|
261
|
-
* @param props Additional props to be spread to the component
|
|
262
|
-
*/
|
|
263
|
-
declare const Field: {
|
|
264
|
-
({ labelFor, styles, label, children, ...props }: FieldProps): react_jsx_runtime.JSX.Element;
|
|
265
|
-
styles: {};
|
|
266
|
-
displayName: string;
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
declare const Header: {
|
|
270
|
-
({ children, styles, ...props }: ComponentProps$1): react_jsx_runtime.JSX.Element;
|
|
271
|
-
displayName: string;
|
|
272
|
-
};
|
|
273
|
-
declare const Main: {
|
|
274
|
-
({ children, styles, ...props }: ComponentProps$1): react_jsx_runtime.JSX.Element;
|
|
275
|
-
displayName: string;
|
|
276
|
-
};
|
|
277
|
-
declare const Footer: {
|
|
278
|
-
({ children, styles, ...props }: ComponentProps$1): react_jsx_runtime.JSX.Element;
|
|
279
|
-
displayName: string;
|
|
280
|
-
};
|
|
281
|
-
declare const Aside: {
|
|
282
|
-
({ children, styles, ...props }: ComponentProps$1): react_jsx_runtime.JSX.Element;
|
|
283
|
-
displayName: string;
|
|
284
|
-
};
|
|
285
|
-
declare const Section: {
|
|
286
|
-
({ children, styles, ...props }: ComponentProps$1): react_jsx_runtime.JSX.Element;
|
|
287
|
-
displayName: string;
|
|
288
|
-
};
|
|
289
|
-
declare const Article: {
|
|
290
|
-
({ children, styles, ...props }: ComponentProps$1): react_jsx_runtime.JSX.Element;
|
|
291
|
-
displayName: string;
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
interface ImageProps extends ComponentProps$1 {
|
|
295
|
-
alt: string;
|
|
296
|
-
src?: string;
|
|
297
|
-
width?: number;
|
|
298
|
-
height?: number;
|
|
299
|
-
loading?: 'eager' | 'lazy';
|
|
300
|
-
placeholder?: string;
|
|
301
|
-
fetchpriority?: 'high' | 'low';
|
|
302
|
-
decoding?: 'sync' | 'async' | 'auto';
|
|
303
|
-
imgError?: (e: React.SyntheticEvent<HTMLImageElement, Event>) => void;
|
|
304
|
-
imgLoaded?: (e: React.SyntheticEvent<HTMLImageElement, Event>) => void;
|
|
305
|
-
}
|
|
306
|
-
declare const Img: {
|
|
307
|
-
({ src, alt, width, height, styles, loading, placeholder, fetchpriority, decoding, imgLoaded, imgError, ...props }: ImageProps): react_jsx_runtime.JSX.Element;
|
|
308
|
-
styles: {
|
|
309
|
-
maxWidth: string;
|
|
310
|
-
height: string;
|
|
311
|
-
objectFit: string;
|
|
312
|
-
objectPosition: string;
|
|
313
|
-
aspectRatio: string;
|
|
314
|
-
display: string;
|
|
315
|
-
};
|
|
316
|
-
displayName: string;
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
interface InputProps extends Omit<ComponentProps$1, 'children'> {
|
|
320
|
-
/**
|
|
321
|
-
* The type of the input.
|
|
322
|
-
*/
|
|
323
|
-
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search';
|
|
324
|
-
/**
|
|
325
|
-
* The input name
|
|
326
|
-
*/
|
|
327
|
-
name?: string;
|
|
328
|
-
/**
|
|
329
|
-
* The input value
|
|
330
|
-
*/
|
|
331
|
-
value?: string;
|
|
332
|
-
/**
|
|
333
|
-
* The input placeholder
|
|
334
|
-
*/
|
|
335
|
-
placeholder?: string;
|
|
336
|
-
/**
|
|
337
|
-
* Pass a function to handle input change events
|
|
338
|
-
*/
|
|
339
|
-
inputChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
340
|
-
/**
|
|
341
|
-
* Pass a function to handle input focus events
|
|
342
|
-
*/
|
|
343
|
-
inputBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
344
|
-
/**
|
|
345
|
-
* Function prop to handle input keydown events
|
|
346
|
-
*/
|
|
347
|
-
inputDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
348
|
-
/**
|
|
349
|
-
* Input is required or not
|
|
350
|
-
*/
|
|
351
|
-
required?: boolean;
|
|
352
|
-
/**
|
|
353
|
-
* Input id attribute
|
|
354
|
-
*/
|
|
355
|
-
id: string;
|
|
356
|
-
/**
|
|
357
|
-
* Set the element as disabled
|
|
358
|
-
*/
|
|
359
|
-
isDisabled?: boolean;
|
|
360
|
-
/**
|
|
361
|
-
* Set the element as readonly
|
|
362
|
-
*/
|
|
363
|
-
readonly?: boolean;
|
|
364
|
-
/**
|
|
365
|
-
* ref to the input element
|
|
366
|
-
*/
|
|
367
|
-
inputRef?: React.RefObject<HTMLInputElement>;
|
|
368
|
-
/**
|
|
369
|
-
* Input styles
|
|
370
|
-
*/
|
|
371
|
-
styles?: {};
|
|
372
|
-
/**
|
|
373
|
-
* input classes
|
|
374
|
-
*/
|
|
375
|
-
classes?: string;
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* Input component that renders an HTML input element.
|
|
379
|
-
* @param {InputProps} props - The input component props.
|
|
380
|
-
* @returns {JSX.Element} - The input component.
|
|
381
|
-
*/
|
|
382
|
-
declare const Input: {
|
|
383
|
-
({ type, name, value, placeholder, id, styles, classes, isDisabled, readonly, required, inputRef, inputChange, inputBlur, inputDown, ...props }: InputProps): JSX.Element;
|
|
384
|
-
styles: {
|
|
385
|
-
minWidth: string;
|
|
386
|
-
};
|
|
387
|
-
displayName: string;
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
type LinkProps = Partial<ComponentProps$1> & {
|
|
391
|
-
href: string;
|
|
392
|
-
target?: string;
|
|
393
|
-
rel?: string;
|
|
394
|
-
children: React.ReactNode;
|
|
395
|
-
prefetch?: boolean;
|
|
396
|
-
onPointerDown?: (e: React.PointerEvent<HTMLAnchorElement>) => void;
|
|
397
|
-
};
|
|
398
|
-
declare const Link: {
|
|
399
|
-
({ href, target, rel, children, styles, prefetch, onPointerDown, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
|
|
400
|
-
displayName: string;
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
interface ListProps {
|
|
404
|
-
styles?: {};
|
|
405
|
-
classes?: string;
|
|
406
|
-
children: React$1.ReactNode;
|
|
407
|
-
type: 'ul' | 'ol' | 'dl';
|
|
408
|
-
variant: string;
|
|
409
|
-
}
|
|
410
|
-
declare const List: ({ children, classes, type, variant, styles, ...props }: ListProps) => react_jsx_runtime.JSX.Element;
|
|
411
|
-
|
|
412
|
-
interface ModalProps extends ComponentProps$1 {
|
|
413
|
-
/**
|
|
414
|
-
* The child component/content for open button
|
|
415
|
-
*/
|
|
416
|
-
openChild?: React__default.ReactNode;
|
|
417
|
-
/**
|
|
418
|
-
* The child component/content for close button
|
|
419
|
-
*/
|
|
420
|
-
closeChild?: React__default.ReactNode;
|
|
421
|
-
/**
|
|
422
|
-
* The child component/content for modal header
|
|
423
|
-
*/
|
|
424
|
-
modalHeader?: React__default.ReactNode;
|
|
425
|
-
/**
|
|
426
|
-
* The child component/content for modal footer
|
|
427
|
-
*/
|
|
428
|
-
modalFooter?: React__default.ReactNode;
|
|
429
|
-
/**
|
|
430
|
-
* The child component/content for modal body
|
|
431
|
-
*/
|
|
432
|
-
children: React__default.ReactNode;
|
|
433
|
-
/**
|
|
434
|
-
* Open modal on mount when set to true
|
|
435
|
-
*/
|
|
436
|
-
showOpen?: boolean;
|
|
437
|
-
}
|
|
438
|
-
declare const Modal: {
|
|
439
|
-
({ openChild, closeChild, modalHeader, modalFooter, children, showOpen, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
440
|
-
displayName: string;
|
|
441
|
-
};
|
|
442
|
-
|
|
443
|
-
interface TableProps extends ComponentProps$1 {
|
|
444
|
-
tblHead: React.ReactNode;
|
|
445
|
-
tblBody: React.ReactNode;
|
|
446
|
-
tblCaption?: React.ReactNode;
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Render the table placing `caption`, `thead` and `tbody` in the correct order
|
|
450
|
-
* caption is optional
|
|
451
|
-
*/
|
|
452
|
-
declare const RenderTable: {
|
|
453
|
-
({ tblBody, tblCaption, tblHead }: TableProps): react_jsx_runtime.JSX.Element;
|
|
454
|
-
displayName: string;
|
|
455
|
-
};
|
|
456
|
-
|
|
457
|
-
declare const Caption: {
|
|
458
|
-
({ children, ...props }: ComponentProps$1): react_jsx_runtime.JSX.Element;
|
|
459
|
-
displayName: string;
|
|
460
|
-
};
|
|
461
|
-
declare const Thead: {
|
|
462
|
-
({ children, ...props }: ComponentProps$1): react_jsx_runtime.JSX.Element;
|
|
463
|
-
displayName: string;
|
|
464
|
-
};
|
|
465
|
-
declare const Tbody: {
|
|
466
|
-
({ children, ...props }: ComponentProps$1): react_jsx_runtime.JSX.Element;
|
|
467
|
-
displayName: string;
|
|
468
|
-
};
|
|
469
|
-
declare const Tr: {
|
|
470
|
-
({ children, ...props }: ComponentProps$1): react_jsx_runtime.JSX.Element;
|
|
471
|
-
displayName: string;
|
|
472
|
-
};
|
|
473
|
-
declare const Td: {
|
|
474
|
-
({ children, ...props }: ComponentProps$1): react_jsx_runtime.JSX.Element;
|
|
475
|
-
displayName: string;
|
|
476
|
-
};
|
|
477
|
-
declare const Table: {
|
|
478
|
-
({ id, dataStyle, children, ...props }: ComponentProps$1): react_jsx_runtime.JSX.Element;
|
|
479
|
-
displayName: string;
|
|
480
|
-
};
|
|
481
|
-
|
|
482
|
-
type TextElements = 'p' | 'span' | 'a' | 'strong' | 'em' | 'small' | 's' | 'cite' | 'time' | 'code' | 'kbd' | 'sub' | 'sup' | 'i' | 'b' | 'u' | 'mark' | 'span' | 'blockquote';
|
|
483
|
-
interface TextProps {
|
|
484
|
-
/**
|
|
485
|
-
* HTML element
|
|
486
|
-
*/
|
|
487
|
-
elm?: TextElements;
|
|
488
|
-
children?: React__default.ReactNode;
|
|
489
|
-
text?: string;
|
|
490
|
-
styles?: {};
|
|
491
|
-
}
|
|
492
|
-
declare const Text: {
|
|
493
|
-
({ elm, text, styles, children, ...props }: TextProps): react_jsx_runtime.JSX.Element;
|
|
494
|
-
displayName: string;
|
|
495
|
-
};
|
|
496
|
-
interface TitleProps {
|
|
497
|
-
/**
|
|
498
|
-
* HTML headings
|
|
499
|
-
*/
|
|
500
|
-
elm?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
501
|
-
children?: React__default.ReactNode;
|
|
502
|
-
styles?: {};
|
|
503
|
-
}
|
|
504
|
-
declare const Title: {
|
|
505
|
-
({ elm, children, styles, ...props }: TitleProps): react_jsx_runtime.JSX.Element;
|
|
506
|
-
displayName: string;
|
|
507
|
-
};
|
|
508
|
-
|
|
509
|
-
interface TextareaProps extends SharedInputProps {
|
|
510
|
-
/**
|
|
511
|
-
* The number of lines in textarea
|
|
512
|
-
*/
|
|
513
|
-
rows?: number;
|
|
514
|
-
/**
|
|
515
|
-
* The number of columns in textarea
|
|
516
|
-
*/
|
|
517
|
-
cols?: number;
|
|
518
|
-
/**
|
|
519
|
-
* Textarea react ref
|
|
520
|
-
*/
|
|
521
|
-
textareaRef?: React.RefObject<HTMLTextAreaElement>;
|
|
522
|
-
/**
|
|
523
|
-
* Textarea change event handler
|
|
524
|
-
*/
|
|
525
|
-
textareaChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
526
|
-
/**
|
|
527
|
-
* Textarea area blur event handler
|
|
528
|
-
*/
|
|
529
|
-
textareaBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
530
|
-
/**
|
|
531
|
-
* Textarea keydown event handler
|
|
532
|
-
*/
|
|
533
|
-
textareaDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
534
|
-
}
|
|
535
|
-
declare const Textarea: {
|
|
536
|
-
({ value, rows, cols, id, required, disabled, readonly, textareaBlur, textareaChange, textareaDown, textareaRef, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
537
|
-
displayName: string;
|
|
538
|
-
};
|
|
539
|
-
|
|
540
|
-
type PolymorphicRef<C extends React__default.ElementType> = React__default.ComponentPropsWithRef<C>['ref'];
|
|
541
|
-
type AsProp<C extends React__default.ElementType> = {
|
|
542
|
-
as?: C;
|
|
543
|
-
};
|
|
544
|
-
type PropsToOmit<C extends React__default.ElementType, P> = keyof (AsProp<C> & P);
|
|
545
|
-
type PolymorphicComponentProp<C extends React__default.ElementType, Props = {}> = React__default.PropsWithChildren<Props & AsProp<C>> & Omit<React__default.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
|
|
546
|
-
type PolymorphicComponentPropWithRef<C extends React__default.ElementType, Props = {}> = PolymorphicComponentProp<C, Props> & {
|
|
547
|
-
ref?: PolymorphicRef<C>;
|
|
548
|
-
};
|
|
549
|
-
type FPProps<C extends React__default.ElementType> = PolymorphicComponentPropWithRef<C, {
|
|
550
|
-
renderStyles?: boolean;
|
|
551
|
-
styles?: {};
|
|
552
|
-
}>;
|
|
553
|
-
type FPComponent = <C extends React__default.ElementType = 'span'>(props: FPProps<C>) => React__default.ReactElement | any;
|
|
554
|
-
/**
|
|
555
|
-
* FP component is a polymorphic component that renders an HTML element with optional styles.
|
|
556
|
-
* @param {Object} props - Component props
|
|
557
|
-
* @param {React.ElementType} props.as - The HTML element to render. Defaults to 'div'.
|
|
558
|
-
* @param {boolean} props.renderStyles - Whether to render styles or not. Defaults to true.
|
|
559
|
-
* @param {Object} props.styles - The styles to apply to the component.
|
|
560
|
-
* @param {Object} props.defaultStyles - The default styles to apply to the component.
|
|
561
|
-
* @param {React.ReactNode} props.children - The children to render inside the component.
|
|
562
|
-
* @returns {React.ReactElement} - A React component that renders an HTML element with optional styles.
|
|
563
|
-
*/
|
|
564
|
-
declare const FP: FPComponent;
|
|
565
|
-
|
|
566
|
-
export { Article, Aside, Badge, FP as Box, Button, Caption, Card, Dialog, Dropdown, FP, Field, Footer, Header, Img, Input, Link, List, Main, Modal, Section, RenderTable as TBL, Table, FP as Tag, Tbody, Td, Text, Textarea, Thead, Title, Link as To, Tr };
|