@spothero/ui 25.12.0 → 25.16.0-beta.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/components/Accordion/AccordionActionButton.d.ts +6 -2
- package/dist/components/Button/Button.styles.d.ts +46 -0
- package/dist/components/Menu/Menu.d.ts +6 -0
- package/dist/components/Menu/Menu.styles.d.ts +4 -258
- package/dist/components/Menu/index.d.ts +2 -0
- package/dist/components/Modal/AlwaysMountedModal.d.ts +7 -0
- package/dist/components/Modal/Modal.d.ts +17 -0
- package/dist/components/Modal/index.d.ts +3 -0
- package/dist/components/Modal/styles/body.d.ts +3 -6
- package/dist/components/Modal/styles/closeButton.d.ts +3 -4
- package/dist/components/Modal/styles/dialog.d.ts +3 -4
- package/dist/components/Modal/styles/dialogContainer.d.ts +12 -12
- package/dist/components/Modal/styles/footer.d.ts +13 -12
- package/dist/components/Modal/styles/header.d.ts +4 -6
- package/dist/components/Modal/styles/index.d.ts +4 -240
- package/dist/components/Modal/styles/overlay.d.ts +5 -5
- package/dist/components/Modal/types.d.ts +6 -0
- package/dist/components/Popover/Popover.d.ts +10 -0
- package/dist/components/Popover/PopoverArrow.d.ts +7 -0
- package/dist/components/Popover/PopoverCloseButton.d.ts +7 -0
- package/dist/components/Popover/PopoverContent.d.ts +15 -0
- package/dist/components/Popover/index.d.ts +4 -0
- package/dist/components/Popover/styles/index.d.ts +4 -100
- package/dist/components/Popover/styles/popover-arrow.d.ts +5 -0
- package/dist/components/Popover/styles/popover-body.d.ts +3 -2
- package/dist/components/Popover/styles/popover-close-button.d.ts +18 -0
- package/dist/components/Popover/styles/popover-content.d.ts +8 -5
- package/dist/components/Popover/styles/popover-header.d.ts +4 -4
- package/dist/components/Popover/styles/popper.d.ts +3 -3
- package/dist/components/Popover/types.d.ts +4 -0
- package/dist/components/SelectionCard/SelectionCard.d.ts +20 -0
- package/dist/components/SelectionCard/index.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +1 -0
- package/dist/components/Table/Table.styles.d.ts +73 -65
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/combineSizeWithVariant.d.ts +120 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/styles/index.d.ts +52 -298
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +17 -0
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +27 -0
- package/dist/components/ToggleButtonGroup/index.d.ts +1 -0
- package/dist/components/ToggleButtonGroup/styles/index.d.ts +5 -0
- package/dist/index.cjs.js +743 -1039
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +143 -29
- package/dist/index.esm.js +743 -1039
- package/dist/index.esm.js.map +1 -1
- package/dist/utils/Spaces.d.ts +8 -0
- package/package.json +7 -5
package/dist/index.d.ts
CHANGED
|
@@ -127,9 +127,15 @@ export const Spinner: React.ForwardRefExoticComponent<
|
|
|
127
127
|
export const FormControl: React.ComponentType<any>;
|
|
128
128
|
|
|
129
129
|
// ============================================================================
|
|
130
|
-
// Accordion (
|
|
130
|
+
// Accordion (Phase 4c) - Converted
|
|
131
131
|
// ============================================================================
|
|
132
|
-
export
|
|
132
|
+
export type AccordionActionButtonProps = {
|
|
133
|
+
onClick?: () => void;
|
|
134
|
+
children: React.ReactNode;
|
|
135
|
+
};
|
|
136
|
+
export const AccordionActionButton: React.ForwardRefExoticComponent<
|
|
137
|
+
AccordionActionButtonProps & React.RefAttributes<HTMLDivElement>
|
|
138
|
+
>;
|
|
133
139
|
export {
|
|
134
140
|
Accordion,
|
|
135
141
|
AccordionIcon,
|
|
@@ -175,7 +181,7 @@ export const Button: React.ForwardRefExoticComponent<
|
|
|
175
181
|
>;
|
|
176
182
|
export {ButtonGroup} from '@chakra-ui/react';
|
|
177
183
|
|
|
178
|
-
// Table (Phase 4c -
|
|
184
|
+
// Table (Phase 4c) - Converted
|
|
179
185
|
export {
|
|
180
186
|
Table,
|
|
181
187
|
TableCaption,
|
|
@@ -188,9 +194,35 @@ export {
|
|
|
188
194
|
Tr,
|
|
189
195
|
} from '@chakra-ui/react';
|
|
190
196
|
|
|
191
|
-
// Modal (Phase 4b -
|
|
192
|
-
export
|
|
193
|
-
export
|
|
197
|
+
// Modal (Phase 4b) - Converted
|
|
198
|
+
export type ModalSize = 'sm' | 'sm-md' | 'md' | 'lg' | 'full';
|
|
199
|
+
export type ModalProps = Omit<
|
|
200
|
+
React.ComponentProps<typeof import('@chakra-ui/react').Modal>,
|
|
201
|
+
'children' | 'size'
|
|
202
|
+
> & {
|
|
203
|
+
children: React.ReactNode;
|
|
204
|
+
isOpen: boolean;
|
|
205
|
+
size?: ModalSize;
|
|
206
|
+
isMobile?: boolean;
|
|
207
|
+
hasHeader?: boolean;
|
|
208
|
+
hasFooter?: boolean;
|
|
209
|
+
hideCloseButton?: boolean;
|
|
210
|
+
contentStyling?: React.ComponentProps<
|
|
211
|
+
typeof import('@chakra-ui/react').ModalContent
|
|
212
|
+
>;
|
|
213
|
+
overlayProps?: React.ComponentProps<
|
|
214
|
+
typeof import('@chakra-ui/react').ModalOverlay
|
|
215
|
+
>;
|
|
216
|
+
};
|
|
217
|
+
export type AlwaysMountedModalProps = ModalProps & {
|
|
218
|
+
onCloseComplete?: () => void;
|
|
219
|
+
};
|
|
220
|
+
export const Modal: React.ForwardRefExoticComponent<
|
|
221
|
+
ModalProps & React.RefAttributes<HTMLDivElement>
|
|
222
|
+
>;
|
|
223
|
+
export const AlwaysMountedModal: React.ForwardRefExoticComponent<
|
|
224
|
+
AlwaysMountedModalProps & React.RefAttributes<HTMLDivElement>
|
|
225
|
+
>;
|
|
194
226
|
export {ModalBody, ModalFooter, ModalHeader} from '@chakra-ui/react';
|
|
195
227
|
|
|
196
228
|
// Drawer (Phase 3b) - Converted
|
|
@@ -307,8 +339,15 @@ export const Alert: React.ForwardRefExoticComponent<
|
|
|
307
339
|
AlertProps & React.RefAttributes<HTMLDivElement>
|
|
308
340
|
>;
|
|
309
341
|
|
|
310
|
-
// Tabs (Phase 4c -
|
|
311
|
-
export
|
|
342
|
+
// Tabs (Phase 4c) - Converted
|
|
343
|
+
export type TabsSize = 'small' | 'body' | 'heading';
|
|
344
|
+
export type TabsProps = Omit<import('@chakra-ui/react').TabsProps, 'size'> & {
|
|
345
|
+
/** Controls the size of Tabs */
|
|
346
|
+
size?: TabsSize;
|
|
347
|
+
};
|
|
348
|
+
export const Tabs: React.ForwardRefExoticComponent<
|
|
349
|
+
TabsProps & React.RefAttributes<HTMLDivElement>
|
|
350
|
+
>;
|
|
312
351
|
export {TabList, TabPanels, Tab, TabPanel} from '@chakra-ui/react';
|
|
313
352
|
|
|
314
353
|
// Select (Phase 3a) - Converted
|
|
@@ -373,8 +412,17 @@ export const Heading: React.ForwardRefExoticComponent<
|
|
|
373
412
|
HeadingProps & React.RefAttributes<HTMLHeadingElement>
|
|
374
413
|
>;
|
|
375
414
|
|
|
376
|
-
// ThemeProvider (Phase 4a -
|
|
377
|
-
export
|
|
415
|
+
// ThemeProvider (Phase 4a) - Converted
|
|
416
|
+
export type ThemeProviderProps = Omit<
|
|
417
|
+
import('@chakra-ui/react').ChakraProviderProps,
|
|
418
|
+
'theme'
|
|
419
|
+
> & {
|
|
420
|
+
theme?: import('@chakra-ui/react').ChakraProviderProps['theme'];
|
|
421
|
+
useLegacyOverrides?: boolean;
|
|
422
|
+
disableExternalFonts?: boolean;
|
|
423
|
+
children?: React.ReactNode;
|
|
424
|
+
};
|
|
425
|
+
export const ThemeProvider: React.ComponentType<ThemeProviderProps>;
|
|
378
426
|
|
|
379
427
|
// Image (Phase 3b) - Converted
|
|
380
428
|
export type ImageProps = React.ComponentProps<
|
|
@@ -432,8 +480,28 @@ export const RefreshedButtonInput: React.ComponentType<any>;
|
|
|
432
480
|
export const RefreshedSelectInput: React.ComponentType<any>;
|
|
433
481
|
export const RefreshedAutoSuggestSelect: React.ComponentType<any>;
|
|
434
482
|
|
|
435
|
-
// SelectionCard (Phase 4c -
|
|
436
|
-
export
|
|
483
|
+
// SelectionCard (Phase 4c) - Converted
|
|
484
|
+
export type SelectionCardProps = Omit<
|
|
485
|
+
CheckboxProps,
|
|
486
|
+
'children' | 'value' | 'size'
|
|
487
|
+
> & {
|
|
488
|
+
label: React.ReactNode;
|
|
489
|
+
expandableChildren?: React.ReactNode;
|
|
490
|
+
defaultChecked?: boolean;
|
|
491
|
+
isChecked?: boolean;
|
|
492
|
+
isDisabled?: boolean;
|
|
493
|
+
value: string;
|
|
494
|
+
helperText?: string;
|
|
495
|
+
isRadio?: boolean;
|
|
496
|
+
isExpandable?: boolean;
|
|
497
|
+
expandableChildrenStyles?: import('@chakra-ui/react').BoxProps;
|
|
498
|
+
size?: 'sm' | 'md' | 'lg';
|
|
499
|
+
topChild?: React.ReactElement;
|
|
500
|
+
expandableContentKey?: string;
|
|
501
|
+
};
|
|
502
|
+
export const SelectionCard: React.ForwardRefExoticComponent<
|
|
503
|
+
SelectionCardProps & React.RefAttributes<HTMLInputElement>
|
|
504
|
+
>;
|
|
437
505
|
|
|
438
506
|
// Textarea (Phase 3a) - Converted
|
|
439
507
|
export type TextareaProps = import('@chakra-ui/react').TextareaProps & {
|
|
@@ -448,12 +516,41 @@ export const Textarea: React.ForwardRefExoticComponent<
|
|
|
448
516
|
TextareaProps & React.RefAttributes<HTMLTextAreaElement>
|
|
449
517
|
>;
|
|
450
518
|
|
|
451
|
-
// Popover (Phase 4b -
|
|
452
|
-
export
|
|
453
|
-
export
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
519
|
+
// Popover (Phase 4b) - Converted
|
|
520
|
+
export type PopoverVariant = 'light' | 'dark';
|
|
521
|
+
export type PopoverProps = React.ComponentProps<
|
|
522
|
+
typeof import('@chakra-ui/react').Popover
|
|
523
|
+
> & {
|
|
524
|
+
children?: React.ReactNode;
|
|
525
|
+
variant?: PopoverVariant;
|
|
526
|
+
};
|
|
527
|
+
export type PopoverArrowProps = React.ComponentProps<
|
|
528
|
+
typeof import('@chakra-ui/react').PopoverArrow
|
|
529
|
+
> & {
|
|
530
|
+
variant?: PopoverVariant;
|
|
531
|
+
};
|
|
532
|
+
export type PopoverContentProps = React.ComponentProps<
|
|
533
|
+
typeof import('@chakra-ui/react').PopoverContent
|
|
534
|
+
> & {
|
|
535
|
+
children?: React.ReactNode;
|
|
536
|
+
hideCloseButton?: boolean;
|
|
537
|
+
hideArrow?: boolean;
|
|
538
|
+
variant?: PopoverVariant;
|
|
539
|
+
header?: React.ReactNode;
|
|
540
|
+
popoverBodyProps?: React.ComponentProps<
|
|
541
|
+
typeof import('@chakra-ui/react').PopoverBody
|
|
542
|
+
>;
|
|
543
|
+
};
|
|
544
|
+
export const Popover: React.ForwardRefExoticComponent<
|
|
545
|
+
PopoverProps & React.RefAttributes<HTMLDivElement>
|
|
546
|
+
>;
|
|
547
|
+
export const PopoverArrow: React.ForwardRefExoticComponent<
|
|
548
|
+
PopoverArrowProps & React.RefAttributes<HTMLDivElement>
|
|
549
|
+
>;
|
|
550
|
+
export const PopoverContent: React.ForwardRefExoticComponent<
|
|
551
|
+
PopoverContentProps & React.RefAttributes<HTMLDivElement>
|
|
552
|
+
>;
|
|
553
|
+
export {PopoverAnchor, PopoverTrigger} from '@chakra-ui/react';
|
|
457
554
|
|
|
458
555
|
// Radio (Phase 3a) - Converted
|
|
459
556
|
export type RadioProps = Omit<import('@chakra-ui/react').RadioProps, 'size'> & {
|
|
@@ -489,21 +586,38 @@ export const AutoSuggestSelect: React.ComponentType<any>;
|
|
|
489
586
|
// FilterSelect (Phase 4d - not yet converted)
|
|
490
587
|
export const FilterSelect: React.ComponentType<any>;
|
|
491
588
|
|
|
492
|
-
// ToggleButtonGroup (Phase 4c -
|
|
493
|
-
export
|
|
589
|
+
// ToggleButtonGroup (Phase 4c) - Converted
|
|
590
|
+
export type ToggleButtonGroupProps = {
|
|
591
|
+
onChange: (value: string) => void;
|
|
592
|
+
value: string;
|
|
593
|
+
children:
|
|
594
|
+
| React.ReactElement<{value: string}>
|
|
595
|
+
| Array<React.ReactElement<{value: string}>>;
|
|
596
|
+
groupProps?: import('@chakra-ui/react').ButtonGroupProps;
|
|
597
|
+
buttonGroupStyles?: import('@chakra-ui/react').SystemStyleObject;
|
|
598
|
+
childrenStyles?: import('@chakra-ui/react').SystemStyleObject;
|
|
599
|
+
};
|
|
600
|
+
export const ToggleButtonGroup: React.ForwardRefExoticComponent<
|
|
601
|
+
ToggleButtonGroupProps & React.RefAttributes<HTMLDivElement>
|
|
602
|
+
>;
|
|
494
603
|
|
|
495
604
|
// CreatableSelect (Phase 4d - not yet converted)
|
|
496
605
|
export const CreatableSelect: React.ComponentType<any>;
|
|
497
606
|
|
|
498
|
-
// Menu (Phase 4c -
|
|
499
|
-
export
|
|
500
|
-
export const
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
export
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
607
|
+
// Menu (Phase 4c) - Converted
|
|
608
|
+
export type MenuProps = import('@chakra-ui/react').MenuProps;
|
|
609
|
+
export const Menu: React.ForwardRefExoticComponent<
|
|
610
|
+
MenuProps & React.RefAttributes<HTMLDivElement>
|
|
611
|
+
>;
|
|
612
|
+
export {
|
|
613
|
+
MenuButton,
|
|
614
|
+
MenuDivider,
|
|
615
|
+
MenuGroup,
|
|
616
|
+
MenuItem,
|
|
617
|
+
MenuItemOption,
|
|
618
|
+
MenuList,
|
|
619
|
+
MenuOptionGroup,
|
|
620
|
+
} from '@chakra-ui/react';
|
|
507
621
|
|
|
508
622
|
// ============================================================================
|
|
509
623
|
// Generic Chakra UI Re-exports
|