@brycks/core-front 0.11.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/data/VirtualList/VirtualList.js +1 -1
- package/dist/components/data.cjs +1 -1
- package/dist/components/data.d.ts +387 -2
- package/dist/components/data.js +26 -26
- package/dist/components/feedback/Toast/ToastContext.js +3 -3
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.d.ts +317 -2
- package/dist/components/feedback.js +21 -21
- package/dist/components/form/DropZone/DropZone.cjs.map +1 -1
- package/dist/components/form/DropZone/DropZone.js.map +1 -1
- package/dist/components/form/FileInput/FileInput.cjs.map +1 -1
- package/dist/components/form/FileInput/FileInput.js.map +1 -1
- package/dist/components/form/FileUpload/FileUpload.cjs +2 -0
- package/dist/components/form/FileUpload/FileUpload.cjs.map +1 -0
- package/dist/components/form/FileUpload/FileUpload.js +223 -0
- package/dist/components/form/FileUpload/FileUpload.js.map +1 -0
- package/dist/components/form/FileUpload/fileUpload.utils.cjs +2 -0
- package/dist/components/form/FileUpload/fileUpload.utils.cjs.map +1 -0
- package/dist/components/form/FileUpload/fileUpload.utils.js +43 -0
- package/dist/components/form/FileUpload/fileUpload.utils.js.map +1 -0
- package/dist/components/form/FormGroup/FormGroup.cjs +1 -1
- package/dist/components/form/FormGroup/FormGroup.js +1 -1
- package/dist/components/form/Slider/Slider.cjs +1 -1
- package/dist/components/form/Slider/Slider.js +2 -2
- package/dist/components/form/TagInput/TagInput.cjs +1 -1
- package/dist/components/form/TagInput/TagInput.js +8 -8
- package/dist/components/form.cjs +1 -1
- package/dist/components/form.d.ts +889 -2
- package/dist/components/form.js +51 -45
- package/dist/components/form.js.map +1 -1
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.d.ts +587 -2
- package/dist/components/layout.js +30 -30
- package/dist/components/media/Video/Video.cjs +1 -1
- package/dist/components/media/Video/Video.cjs.map +1 -1
- package/dist/components/media/Video/Video.js +54 -54
- package/dist/components/media/Video/Video.js.map +1 -1
- package/dist/components/navigation/ContextMenu/ContextMenu.cjs +1 -1
- package/dist/components/navigation/ContextMenu/ContextMenu.js +5 -5
- package/dist/components/navigation/Stepper/Stepper.js +4 -4
- package/dist/components/navigation/Tabs/Tabs.js +4 -4
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.d.ts +436 -2
- package/dist/components/navigation.js +22 -22
- package/dist/components/typography/Text/Text.cjs +1 -1
- package/dist/components/typography/Text/Text.js +1 -1
- package/dist/components/utility.cjs +1 -1
- package/dist/components/utility.d.ts +278 -2
- package/dist/components/utility.js +28 -28
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +87 -0
- package/dist/index.js +279 -275
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +116 -115
- package/dist/data.d.ts +0 -387
- package/dist/feedback.d.ts +0 -317
- package/dist/form.d.ts +0 -772
- package/dist/layout.d.ts +0 -587
- package/dist/navigation.d.ts +0 -436
- package/dist/utility.d.ts +0 -278
|
@@ -1,2 +1,436 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
4
|
+
import { HTMLAttributes } from 'react';
|
|
5
|
+
import { ReactElement } from 'react';
|
|
6
|
+
import { ReactNode } from 'react';
|
|
7
|
+
import { RefAttributes } from 'react';
|
|
8
|
+
|
|
9
|
+
export declare const Accordion: ForwardRefExoticComponent<AccordionProps & RefAttributes<HTMLDivElement>>;
|
|
10
|
+
|
|
11
|
+
export declare const AccordionContent: ForwardRefExoticComponent<AccordionContentProps & RefAttributes<HTMLDivElement>>;
|
|
12
|
+
|
|
13
|
+
export declare interface AccordionContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
14
|
+
/** Custom class name */
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare const AccordionItem: ForwardRefExoticComponent<AccordionItemProps & RefAttributes<HTMLDivElement>>;
|
|
19
|
+
|
|
20
|
+
export declare interface AccordionItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
21
|
+
/** Item value (unique identifier) */
|
|
22
|
+
value: string;
|
|
23
|
+
/** Whether the item is disabled */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Custom class name */
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export declare interface AccordionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
30
|
+
/** Expanded items (controlled) */
|
|
31
|
+
value?: string[];
|
|
32
|
+
/** Default expanded items (uncontrolled) */
|
|
33
|
+
defaultValue?: string[];
|
|
34
|
+
/** Callback when items change */
|
|
35
|
+
onChange?: (value: string[]) => void;
|
|
36
|
+
/** Allow multiple items to be expanded */
|
|
37
|
+
allowMultiple?: boolean;
|
|
38
|
+
/** Accordion variant */
|
|
39
|
+
variant?: AccordionVariant;
|
|
40
|
+
/** Custom class name */
|
|
41
|
+
className?: string;
|
|
42
|
+
/** Test ID */
|
|
43
|
+
testId?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export declare const AccordionTrigger: ForwardRefExoticComponent<AccordionTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
47
|
+
|
|
48
|
+
export declare interface AccordionTriggerProps extends HTMLAttributes<HTMLButtonElement> {
|
|
49
|
+
/** Icon to show (replaces default chevron) */
|
|
50
|
+
icon?: ReactNode;
|
|
51
|
+
/** Custom class name */
|
|
52
|
+
className?: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export declare type AccordionVariant = 'default' | 'bordered' | 'separated';
|
|
56
|
+
|
|
57
|
+
export declare const Breadcrumb: ForwardRefExoticComponent<BreadcrumbProps & RefAttributes<HTMLElement>>;
|
|
58
|
+
|
|
59
|
+
export declare const BreadcrumbItem: ForwardRefExoticComponent<BreadcrumbItemProps & RefAttributes<HTMLElement>>;
|
|
60
|
+
|
|
61
|
+
export declare interface BreadcrumbItemProps extends HTMLAttributes<HTMLElement> {
|
|
62
|
+
/** Render as link or custom element */
|
|
63
|
+
as?: ElementType;
|
|
64
|
+
/** Link href (when as="a") */
|
|
65
|
+
href?: string;
|
|
66
|
+
/** Icon before the label */
|
|
67
|
+
icon?: ReactNode;
|
|
68
|
+
/** Whether this is the current page (auto-set by parent) */
|
|
69
|
+
isCurrentPage?: boolean;
|
|
70
|
+
/** Size (auto-set by parent) */
|
|
71
|
+
size?: BreadcrumbSize;
|
|
72
|
+
/** Custom class name */
|
|
73
|
+
className?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export declare interface BreadcrumbProps extends HTMLAttributes<HTMLElement> {
|
|
77
|
+
/** Custom separator between items */
|
|
78
|
+
separator?: ReactNode;
|
|
79
|
+
/** Breadcrumb size */
|
|
80
|
+
size?: BreadcrumbSize;
|
|
81
|
+
/** Maximum items to show (rest collapsed) */
|
|
82
|
+
maxItems?: number;
|
|
83
|
+
/** Custom class name */
|
|
84
|
+
className?: string;
|
|
85
|
+
/** Test ID */
|
|
86
|
+
testId?: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export declare type BreadcrumbSize = 'sm' | 'md' | 'lg';
|
|
90
|
+
|
|
91
|
+
export declare const ContextMenu: ForwardRefExoticComponent<ContextMenuProps & RefAttributes<HTMLDivElement>>;
|
|
92
|
+
|
|
93
|
+
declare interface ContextMenuContextValue {
|
|
94
|
+
closeMenu: () => void;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export declare interface ContextMenuItem {
|
|
98
|
+
/** Unique identifier */
|
|
99
|
+
id: string;
|
|
100
|
+
/** Display label */
|
|
101
|
+
label: string;
|
|
102
|
+
/** Optional icon */
|
|
103
|
+
icon?: ReactNode;
|
|
104
|
+
/** Keyboard shortcut display */
|
|
105
|
+
shortcut?: string;
|
|
106
|
+
/** Whether the item is disabled */
|
|
107
|
+
disabled?: boolean;
|
|
108
|
+
/** Whether this is a separator */
|
|
109
|
+
separator?: boolean;
|
|
110
|
+
/** Nested menu items */
|
|
111
|
+
children?: ContextMenuItem[];
|
|
112
|
+
/** Click handler */
|
|
113
|
+
onClick?: () => void;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export declare interface ContextMenuProps {
|
|
117
|
+
/** Menu items */
|
|
118
|
+
items: ContextMenuItem[];
|
|
119
|
+
/** Content that triggers context menu */
|
|
120
|
+
children: ReactNode;
|
|
121
|
+
/** Callback when menu opens */
|
|
122
|
+
onOpen?: () => void;
|
|
123
|
+
/** Callback when menu closes */
|
|
124
|
+
onClose?: () => void;
|
|
125
|
+
/** Whether the context menu is disabled */
|
|
126
|
+
disabled?: boolean;
|
|
127
|
+
/** Custom class name */
|
|
128
|
+
className?: string;
|
|
129
|
+
/** Test ID */
|
|
130
|
+
testId?: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export declare const Dropdown: ForwardRefExoticComponent<DropdownProps & RefAttributes<HTMLDivElement>>;
|
|
134
|
+
|
|
135
|
+
export declare const DropdownDivider: ForwardRefExoticComponent<DropdownDividerProps & RefAttributes<HTMLDivElement>>;
|
|
136
|
+
|
|
137
|
+
export declare interface DropdownDividerProps extends HTMLAttributes<HTMLDivElement> {
|
|
138
|
+
/** Custom class name */
|
|
139
|
+
className?: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export declare const DropdownItem: ForwardRefExoticComponent<DropdownItemProps & RefAttributes<HTMLDivElement>>;
|
|
143
|
+
|
|
144
|
+
export declare interface DropdownItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
145
|
+
/** Whether the item is disabled */
|
|
146
|
+
disabled?: boolean;
|
|
147
|
+
/** Icon before the label */
|
|
148
|
+
icon?: ReactNode;
|
|
149
|
+
/** Shortcut text */
|
|
150
|
+
shortcut?: string;
|
|
151
|
+
/** Whether the item is destructive */
|
|
152
|
+
destructive?: boolean;
|
|
153
|
+
/** Custom class name */
|
|
154
|
+
className?: string;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export declare const DropdownLabel: ForwardRefExoticComponent<DropdownLabelProps & RefAttributes<HTMLDivElement>>;
|
|
158
|
+
|
|
159
|
+
export declare interface DropdownLabelProps extends HTMLAttributes<HTMLDivElement> {
|
|
160
|
+
/** Custom class name */
|
|
161
|
+
className?: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export declare type DropdownPlacement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
|
|
165
|
+
|
|
166
|
+
export declare interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
167
|
+
/** Trigger element */
|
|
168
|
+
trigger: ReactElement;
|
|
169
|
+
/** Whether the dropdown is open (controlled) */
|
|
170
|
+
isOpen?: boolean;
|
|
171
|
+
/** Default open state (uncontrolled) */
|
|
172
|
+
defaultOpen?: boolean;
|
|
173
|
+
/** Callback when open state changes */
|
|
174
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
175
|
+
/** Dropdown placement */
|
|
176
|
+
placement?: DropdownPlacement;
|
|
177
|
+
/** Offset from trigger */
|
|
178
|
+
offset?: number;
|
|
179
|
+
/** Whether to close on item select */
|
|
180
|
+
closeOnSelect?: boolean;
|
|
181
|
+
/** Custom class name */
|
|
182
|
+
className?: string;
|
|
183
|
+
/** Test ID */
|
|
184
|
+
testId?: string;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export declare const Menu: ForwardRefExoticComponent<MenuProps & RefAttributes<HTMLElement>>;
|
|
188
|
+
|
|
189
|
+
export declare const MenuDivider: ForwardRefExoticComponent<MenuDividerProps & RefAttributes<HTMLDivElement>>;
|
|
190
|
+
|
|
191
|
+
export declare interface MenuDividerProps extends HTMLAttributes<HTMLDivElement> {
|
|
192
|
+
/** Custom class name */
|
|
193
|
+
className?: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export declare const MenuGroup: ForwardRefExoticComponent<MenuGroupProps & RefAttributes<HTMLDivElement>>;
|
|
197
|
+
|
|
198
|
+
export declare interface MenuGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
199
|
+
/** Group label */
|
|
200
|
+
label?: string;
|
|
201
|
+
/** Custom class name */
|
|
202
|
+
className?: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export declare const MenuItem: ForwardRefExoticComponent<MenuItemProps & RefAttributes<HTMLButtonElement>>;
|
|
206
|
+
|
|
207
|
+
export declare interface MenuItemProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'onClick'> {
|
|
208
|
+
/** Item value (unique identifier) */
|
|
209
|
+
value: string;
|
|
210
|
+
/** Icon before the label */
|
|
211
|
+
icon?: ReactNode;
|
|
212
|
+
/** Badge/count after the label */
|
|
213
|
+
badge?: ReactNode;
|
|
214
|
+
/** Whether the item is disabled */
|
|
215
|
+
disabled?: boolean;
|
|
216
|
+
/** Callback when clicked */
|
|
217
|
+
onClick?: (value: string) => void;
|
|
218
|
+
/** Custom class name */
|
|
219
|
+
className?: string;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export declare interface MenuProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange'> {
|
|
223
|
+
/** Currently active item */
|
|
224
|
+
activeItem?: string | null;
|
|
225
|
+
/** Callback when active item changes */
|
|
226
|
+
onChange?: (value: string | null) => void;
|
|
227
|
+
/** Menu size */
|
|
228
|
+
size?: MenuSize;
|
|
229
|
+
/** Whether the menu is collapsed (icons only) */
|
|
230
|
+
collapsed?: boolean;
|
|
231
|
+
/** Custom class name */
|
|
232
|
+
className?: string;
|
|
233
|
+
/** Test ID */
|
|
234
|
+
testId?: string;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export declare type MenuSize = 'sm' | 'md' | 'lg';
|
|
238
|
+
|
|
239
|
+
export declare const Pagination: ForwardRefExoticComponent<PaginationProps & RefAttributes<HTMLElement>>;
|
|
240
|
+
|
|
241
|
+
declare interface PaginationLabels {
|
|
242
|
+
/** aria-label of the nav landmark */
|
|
243
|
+
navigation?: string;
|
|
244
|
+
/** aria-label of the first-page button */
|
|
245
|
+
first?: string;
|
|
246
|
+
/** aria-label of the previous-page button */
|
|
247
|
+
previous?: string;
|
|
248
|
+
/** aria-label of the next-page button */
|
|
249
|
+
next?: string;
|
|
250
|
+
/** aria-label of the last-page button */
|
|
251
|
+
last?: string;
|
|
252
|
+
/** aria-label of a numbered page button */
|
|
253
|
+
page?: (page: number) => string;
|
|
254
|
+
/** Visible text of the `simple` variant */
|
|
255
|
+
of?: (page: number, totalPages: number) => string;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export declare interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange'> {
|
|
259
|
+
/** Current page (1-indexed) */
|
|
260
|
+
page: number;
|
|
261
|
+
/** Total number of pages */
|
|
262
|
+
totalPages: number;
|
|
263
|
+
/** Callback when page changes */
|
|
264
|
+
onChange: (page: number) => void;
|
|
265
|
+
/** Pagination size */
|
|
266
|
+
size?: PaginationSize;
|
|
267
|
+
/** Pagination variant */
|
|
268
|
+
variant?: PaginationVariant;
|
|
269
|
+
/** Number of sibling pages to show on each side */
|
|
270
|
+
siblingCount?: number;
|
|
271
|
+
/** Whether to show first/last buttons */
|
|
272
|
+
showFirstLast?: boolean;
|
|
273
|
+
/** Whether to show prev/next buttons */
|
|
274
|
+
showPrevNext?: boolean;
|
|
275
|
+
/** Whether the component is disabled */
|
|
276
|
+
disabled?: boolean;
|
|
277
|
+
/** Localizable labels (merged over English defaults) */
|
|
278
|
+
labels?: PaginationLabels;
|
|
279
|
+
/** Custom class name */
|
|
280
|
+
className?: string;
|
|
281
|
+
/** Test ID */
|
|
282
|
+
testId?: string;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export declare type PaginationSize = 'sm' | 'md' | 'lg';
|
|
286
|
+
|
|
287
|
+
export declare type PaginationVariant = 'default' | 'simple' | 'minimal';
|
|
288
|
+
|
|
289
|
+
export declare const SegmentedControl: <T extends string = string>(props: SegmentedControlProps<T> & {
|
|
290
|
+
ref?: default_2.ForwardedRef<HTMLDivElement>;
|
|
291
|
+
}) => default_2.JSX.Element;
|
|
292
|
+
|
|
293
|
+
export declare interface SegmentedControlOption<T extends string = string> {
|
|
294
|
+
/** Unique value */
|
|
295
|
+
value: T;
|
|
296
|
+
/** Display label */
|
|
297
|
+
label: ReactNode;
|
|
298
|
+
/** Optional leading icon */
|
|
299
|
+
icon?: ReactNode;
|
|
300
|
+
/** Whether the option is disabled */
|
|
301
|
+
disabled?: boolean;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export declare interface SegmentedControlProps<T extends string = string> {
|
|
305
|
+
/** Available options */
|
|
306
|
+
options: SegmentedControlOption<T>[];
|
|
307
|
+
/** Currently selected value (controlled) */
|
|
308
|
+
value: T;
|
|
309
|
+
/** Callback when the selection changes */
|
|
310
|
+
onValueChange: (value: T) => void;
|
|
311
|
+
/** Component size */
|
|
312
|
+
size?: SegmentedControlSize;
|
|
313
|
+
/** Whether the control should fill its container width */
|
|
314
|
+
fullWidth?: boolean;
|
|
315
|
+
/** Accessible label for the group */
|
|
316
|
+
'aria-label'?: string;
|
|
317
|
+
/** ID of an element that labels the group */
|
|
318
|
+
'aria-labelledby'?: string;
|
|
319
|
+
/** Custom class name */
|
|
320
|
+
className?: string;
|
|
321
|
+
/** Test ID */
|
|
322
|
+
testId?: string;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export declare type SegmentedControlSize = 'sm' | 'md' | 'lg';
|
|
326
|
+
|
|
327
|
+
export declare const Step: ForwardRefExoticComponent<StepProps & RefAttributes<HTMLDivElement>>;
|
|
328
|
+
|
|
329
|
+
export declare const Stepper: ForwardRefExoticComponent<StepperProps & RefAttributes<HTMLDivElement>>;
|
|
330
|
+
|
|
331
|
+
export declare type StepperOrientation = 'horizontal' | 'vertical';
|
|
332
|
+
|
|
333
|
+
export declare interface StepperProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
334
|
+
/** Current active step (0-indexed) */
|
|
335
|
+
currentStep: number;
|
|
336
|
+
/** Callback when step is clicked */
|
|
337
|
+
onStepChange?: (step: number) => void;
|
|
338
|
+
/** Stepper size */
|
|
339
|
+
size?: StepperSize;
|
|
340
|
+
/** Stepper orientation */
|
|
341
|
+
orientation?: StepperOrientation;
|
|
342
|
+
/** Whether steps are clickable */
|
|
343
|
+
clickable?: boolean;
|
|
344
|
+
/** Custom class name */
|
|
345
|
+
className?: string;
|
|
346
|
+
/** Test ID */
|
|
347
|
+
testId?: string;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export declare type StepperSize = 'sm' | 'md' | 'lg';
|
|
351
|
+
|
|
352
|
+
export declare interface StepProps extends HTMLAttributes<HTMLDivElement> {
|
|
353
|
+
/** Step index (auto-set by parent, or can be overridden) */
|
|
354
|
+
index?: number;
|
|
355
|
+
/** Step title */
|
|
356
|
+
title: string;
|
|
357
|
+
/** Step description */
|
|
358
|
+
description?: string;
|
|
359
|
+
/** Custom icon (replaces number/check) */
|
|
360
|
+
icon?: ReactNode;
|
|
361
|
+
/** Whether the step is disabled */
|
|
362
|
+
disabled?: boolean;
|
|
363
|
+
/** Whether this step has an error */
|
|
364
|
+
hasError?: boolean;
|
|
365
|
+
/** Custom class name */
|
|
366
|
+
className?: string;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export declare type StepStatus = 'completed' | 'current' | 'upcoming';
|
|
370
|
+
|
|
371
|
+
export declare const Tab: ForwardRefExoticComponent<TabProps & RefAttributes<HTMLButtonElement>>;
|
|
372
|
+
|
|
373
|
+
export declare const TabList: ForwardRefExoticComponent<TabListProps & RefAttributes<HTMLDivElement>>;
|
|
374
|
+
|
|
375
|
+
export declare interface TabListProps extends HTMLAttributes<HTMLDivElement> {
|
|
376
|
+
/** Custom class name */
|
|
377
|
+
className?: string;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export declare const TabPanel: ForwardRefExoticComponent<TabPanelProps & RefAttributes<HTMLDivElement>>;
|
|
381
|
+
|
|
382
|
+
export declare interface TabPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
383
|
+
/** Panel value (must match a Tab value) */
|
|
384
|
+
value: string;
|
|
385
|
+
/** Custom class name */
|
|
386
|
+
className?: string;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export declare const TabPanels: ForwardRefExoticComponent<TabPanelsProps & RefAttributes<HTMLDivElement>>;
|
|
390
|
+
|
|
391
|
+
export declare interface TabPanelsProps extends HTMLAttributes<HTMLDivElement> {
|
|
392
|
+
/** Custom class name */
|
|
393
|
+
className?: string;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export declare interface TabProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'onClick'> {
|
|
397
|
+
/** Tab value */
|
|
398
|
+
value: string;
|
|
399
|
+
/** Whether the tab is disabled */
|
|
400
|
+
disabled?: boolean;
|
|
401
|
+
/** Icon before the label */
|
|
402
|
+
icon?: ReactNode;
|
|
403
|
+
/** Custom class name */
|
|
404
|
+
className?: string;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export declare const Tabs: ForwardRefExoticComponent<TabsProps & RefAttributes<HTMLDivElement>>;
|
|
408
|
+
|
|
409
|
+
export declare type TabsOrientation = 'horizontal' | 'vertical';
|
|
410
|
+
|
|
411
|
+
export declare interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
412
|
+
/** Currently selected tab value */
|
|
413
|
+
value?: string;
|
|
414
|
+
/** Default value (uncontrolled) */
|
|
415
|
+
defaultValue?: string;
|
|
416
|
+
/** Callback when tab changes */
|
|
417
|
+
onChange?: (value: string) => void;
|
|
418
|
+
/** Tab size */
|
|
419
|
+
size?: TabsSize;
|
|
420
|
+
/** Tab variant */
|
|
421
|
+
variant?: TabsVariant;
|
|
422
|
+
/** Tab orientation */
|
|
423
|
+
orientation?: TabsOrientation;
|
|
424
|
+
/** Custom class name */
|
|
425
|
+
className?: string;
|
|
426
|
+
/** Test ID */
|
|
427
|
+
testId?: string;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export declare type TabsSize = 'sm' | 'md' | 'lg';
|
|
431
|
+
|
|
432
|
+
export declare type TabsVariant = 'line' | 'enclosed' | 'soft';
|
|
433
|
+
|
|
434
|
+
export declare function useContextMenu(): ContextMenuContextValue;
|
|
435
|
+
|
|
436
|
+
export { }
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Accordion as r, AccordionContent as t, AccordionItem as n, AccordionTrigger as p } from "./navigation/Accordion/Accordion.js";
|
|
2
|
+
import { Breadcrumb as d, BreadcrumbItem as a } from "./navigation/Breadcrumb/Breadcrumb.js";
|
|
3
|
+
import { ContextMenu as x, useContextMenu as c } from "./navigation/ContextMenu/ContextMenu.js";
|
|
3
4
|
import { Dropdown as f, DropdownDivider as b, DropdownItem as D, DropdownLabel as M } from "./navigation/Dropdown/Dropdown.js";
|
|
4
5
|
import { Menu as g, MenuDivider as l, MenuGroup as s, MenuItem as w } from "./navigation/Menu/Menu.js";
|
|
5
6
|
import { Pagination as C } from "./navigation/Pagination/Pagination.js";
|
|
6
|
-
import {
|
|
7
|
-
import { Step as
|
|
8
|
-
import {
|
|
9
|
-
import { SegmentedControl as q } from "./navigation/SegmentedControl/SegmentedControl.js";
|
|
7
|
+
import { SegmentedControl as P } from "./navigation/SegmentedControl/SegmentedControl.js";
|
|
8
|
+
import { Step as v, Stepper as B } from "./navigation/Stepper/Stepper.js";
|
|
9
|
+
import { Tab as G, TabList as h, TabPanel as j, TabPanels as k, Tabs as q } from "./navigation/Tabs/Tabs.js";
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
r as Accordion,
|
|
12
|
+
t as AccordionContent,
|
|
13
|
+
n as AccordionItem,
|
|
14
|
+
p as AccordionTrigger,
|
|
15
|
+
d as Breadcrumb,
|
|
16
|
+
a as BreadcrumbItem,
|
|
17
|
+
x as ContextMenu,
|
|
18
18
|
f as Dropdown,
|
|
19
19
|
b as DropdownDivider,
|
|
20
20
|
D as DropdownItem,
|
|
@@ -24,14 +24,14 @@ export {
|
|
|
24
24
|
s as MenuGroup,
|
|
25
25
|
w as MenuItem,
|
|
26
26
|
C as Pagination,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
P as SegmentedControl,
|
|
28
|
+
v as Step,
|
|
29
|
+
B as Stepper,
|
|
30
|
+
G as Tab,
|
|
31
|
+
h as TabList,
|
|
32
|
+
j as TabPanel,
|
|
33
|
+
k as TabPanels,
|
|
34
|
+
q as Tabs,
|
|
35
|
+
c as useContextMenu
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=navigation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),y=require("react"),v=require("../../../utils/styles.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),y=require("react"),v=require("../../../utils/styles.cjs"),o=require("../../../design-system/tokens/spacing.cjs"),s=require("../../../design-system/tokens/typography.cjs"),k={body:"var(--brycks-fs-body-md)",bodyLarge:"var(--brycks-fs-body-lg)",bodySmall:"var(--brycks-fs-body-base)",label:"var(--brycks-fs-body-sm)",caption:"var(--brycks-fs-body-xs)",overline:"var(--brycks-fs-body-xs)",code:"var(--brycks-fs-body-sm)"},u={xs:"var(--brycks-fs-body-xs)",sm:"var(--brycks-fs-body-sm)",base:"var(--brycks-fs-body-base)",md:"var(--brycks-fs-body-md)",lg:"var(--brycks-fs-body-lg)",xl:"var(--brycks-fs-h6)","2xl":"var(--brycks-fs-h5)","3xl":"var(--brycks-fs-h4)","4xl":"var(--brycks-fs-h3)","5xl":"var(--brycks-fs-h2)","6xl":"var(--brycks-fs-h1)","7xl":"var(--brycks-fs-display-sm)","8xl":"var(--brycks-fs-display-md)","9xl":"var(--brycks-fs-display-lg)"},c={body:{element:"p",styles:s.textStyles.bodyDefault},bodyLarge:{element:"p",styles:s.textStyles.bodyLarge},bodySmall:{element:"p",styles:s.textStyles.bodySmall},label:{element:"span",styles:s.textStyles.label},caption:{element:"span",styles:s.textStyles.caption},overline:{element:"span",styles:s.textStyles.overline},code:{element:"code",styles:s.textStyles.code}};function S(e){const l=e.variant??"body",a=c[l].styles,r=e.size?u[e.size]:k[l],t={fontFamily:a.fontFamily,fontSize:r,fontWeight:e.weight?s.fontWeights[e.weight]:a.fontWeight,lineHeight:e.leading?s.lineHeights[e.leading]:a.lineHeight,letterSpacing:a.letterSpacing};return"textTransform"in a&&(t.textTransform=a.textTransform),e.align&&(t.textAlign=e.align),e.color&&(t.color=e.color),e.truncate&&(t.overflow="hidden",t.textOverflow="ellipsis",t.whiteSpace="nowrap"),e.lineClamp&&(t.display="-webkit-box",t.WebkitLineClamp=e.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"),t}const h=({as:e,variant:l="body",className:a,style:r,children:t,testId:d,...n},f)=>{const x=e||c[l].element,g=S({variant:l,...n}),{size:R,weight:_,leading:j,align:p,color:q,truncate:F,lineClamp:O,...m}=n;return i.jsx(x,{ref:f,className:v.cx("brycks-text",`brycks-text--${l}`,a),style:{...g,...r},"data-testid":d,...m,children:t})},w=y.forwardRef(h),b=Object.assign(w,{displayName:"Text"}),C=(e,l)=>i.jsx(b,{...e,ref:l,variant:"code",style:{backgroundColor:"var(--brycks-background-muted)",padding:`${o.spacing[.5]}px ${o.spacing[1.5]}px`,borderRadius:"var(--brycks-radius-sm)",...e.style}}),T=y.forwardRef(C),z=Object.assign(T,{displayName:"Code"});exports.Code=z;exports.Text=b;
|
|
2
2
|
//# sourceMappingURL=Text.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y } from "react";
|
|
3
3
|
import { cx as x } from "../../../utils/styles.js";
|
|
4
|
-
import { textStyles as l, lineHeights as v, fontWeights as k } from "../../../design-system/tokens/typography.js";
|
|
5
4
|
import { spacing as o } from "../../../design-system/tokens/spacing.js";
|
|
5
|
+
import { textStyles as l, lineHeights as v, fontWeights as k } from "../../../design-system/tokens/typography.js";
|
|
6
6
|
const h = {
|
|
7
7
|
body: "var(--brycks-fs-body-md)",
|
|
8
8
|
bodyLarge: "var(--brycks-fs-body-lg)",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./utility/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./utility/Avatar/Avatar.cjs"),a=require("./utility/Badge/Badge.cjs"),i=require("./utility/Divider/Divider.cjs"),e=require("./utility/EmptyState/EmptyState.cjs"),c=require("./utility/FocusTrap/FocusTrap.cjs"),l=require("./utility/Kbd/Kbd.cjs"),r=require("./utility/Loader/Loader.cjs"),S=require("./utility/Logo/Logo.cjs"),u=require("./utility/Overlay/Overlay.cjs"),d=require("./utility/Portal/Portal.cjs"),t=require("./utility/ScreenReaderOnly/ScreenReaderOnly.cjs"),o=require("./utility/Skeleton/Skeleton.cjs");exports.Avatar=n.Avatar;exports.Badge=a.Badge;exports.Divider=i.Divider;exports.EmptyState=e.EmptyState;exports.EmptyStateIcon=e.EmptyStateIcon;exports.FocusTrap=c.FocusTrap;exports.Kbd=l.Kbd;exports.Loader=r.Loader;exports.Spinner=r.Spinner;exports.Logo=S.Logo;exports.Overlay=u.Overlay;exports.Portal=d.Portal;exports.ScreenReaderOnly=t.ScreenReaderOnly;exports.SrOnly=t.SrOnly;exports.Skeleton=o.Skeleton;exports.SkeletonText=o.SkeletonText;
|
|
2
2
|
//# sourceMappingURL=utility.cjs.map
|