@spothero/ui 25.15.0-beta.1 → 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/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 (Partial TypeScript)
130
+ // Accordion (Phase 4c) - Converted
131
131
  // ============================================================================
132
- export const AccordionActionButton: React.ForwardRefExoticComponent<any>;
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 - not yet converted)
184
+ // Table (Phase 4c) - Converted
179
185
  export {
180
186
  Table,
181
187
  TableCaption,
@@ -333,8 +339,15 @@ export const Alert: React.ForwardRefExoticComponent<
333
339
  AlertProps & React.RefAttributes<HTMLDivElement>
334
340
  >;
335
341
 
336
- // Tabs (Phase 4c - not yet converted)
337
- export const Tabs: React.ComponentType<any>;
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
+ >;
338
351
  export {TabList, TabPanels, Tab, TabPanel} from '@chakra-ui/react';
339
352
 
340
353
  // Select (Phase 3a) - Converted
@@ -467,8 +480,28 @@ export const RefreshedButtonInput: React.ComponentType<any>;
467
480
  export const RefreshedSelectInput: React.ComponentType<any>;
468
481
  export const RefreshedAutoSuggestSelect: React.ComponentType<any>;
469
482
 
470
- // SelectionCard (Phase 4c - not yet converted)
471
- export const SelectionCard: React.ComponentType<any>;
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
+ >;
472
505
 
473
506
  // Textarea (Phase 3a) - Converted
474
507
  export type TextareaProps = import('@chakra-ui/react').TextareaProps & {
@@ -553,21 +586,38 @@ export const AutoSuggestSelect: React.ComponentType<any>;
553
586
  // FilterSelect (Phase 4d - not yet converted)
554
587
  export const FilterSelect: React.ComponentType<any>;
555
588
 
556
- // ToggleButtonGroup (Phase 4c - not yet converted)
557
- export const ToggleButtonGroup: React.ComponentType<any>;
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
+ >;
558
603
 
559
604
  // CreatableSelect (Phase 4d - not yet converted)
560
605
  export const CreatableSelect: React.ComponentType<any>;
561
606
 
562
- // Menu (Phase 4c - not yet converted)
563
- export const Menu: React.ComponentType<any>;
564
- export const MenuButton: React.ComponentType<any>;
565
- export const MenuList: React.ComponentType<any>;
566
- export const MenuItem: React.ComponentType<any>;
567
- export const MenuItemOption: React.ComponentType<any>;
568
- export const MenuGroup: React.ComponentType<any>;
569
- export const MenuOptionGroup: React.ComponentType<any>;
570
- export const MenuDivider: React.ComponentType<any>;
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';
571
621
 
572
622
  // ============================================================================
573
623
  // Generic Chakra UI Re-exports