bonprix-design-system 0.44.0 → 0.45.0

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
@@ -347,24 +347,40 @@ declare const Content_2: FC<{
347
347
  children: ReactNode;
348
348
  }>;
349
349
 
350
- declare interface ControlledInputProps extends BaseProps_4 {
350
+ declare interface ControlGroupProps {
351
+ children: React.ReactNode;
352
+ label: string;
353
+ name?: string;
354
+ error?: boolean;
355
+ errorText?: string;
356
+ disabled?: boolean;
357
+ helperText?: string;
358
+ required?: boolean;
359
+ }
360
+
361
+ declare interface ControlledInputProps extends ControlGroupProps {
362
+ value: string;
363
+ onChange: (value: string) => void;
364
+ }
365
+
366
+ declare interface ControlledInputProps_2 extends BaseProps_4 {
351
367
  checked: boolean;
352
368
  onChange: (checked: boolean) => void;
353
369
  }
354
370
 
355
- declare type ControlledInputProps_2 = BaseProps_7 & {
371
+ declare type ControlledInputProps_3 = BaseProps_7 & {
356
372
  value: string;
357
373
  defaultValue?: never;
358
374
  onChange: (value: string) => void;
359
375
  };
360
376
 
361
- declare interface ControlledInputProps_3 extends BaseProps_8 {
377
+ declare interface ControlledInputProps_4 extends BaseProps_8 {
362
378
  value: string;
363
379
  defaultValue?: never;
364
380
  onChange: (value: string) => void;
365
381
  }
366
382
 
367
- declare interface ControlledInputProps_4 extends BaseProps_9 {
383
+ declare interface ControlledInputProps_5 extends BaseProps_9 {
368
384
  value: string;
369
385
  defaultValue?: never;
370
386
  onChange: (value: string) => void;
@@ -518,7 +534,7 @@ export declare interface PaginationProps {
518
534
 
519
535
  export declare const PasswordField: FC<PasswordFieldProps>;
520
536
 
521
- export declare type PasswordFieldProps = ControlledInputProps_2 | UncontrolledInputProps_2;
537
+ export declare type PasswordFieldProps = ControlledInputProps_3 | UncontrolledInputProps_3;
522
538
 
523
539
  export declare const Price: FC<PriceProps>;
524
540
 
@@ -604,10 +620,7 @@ export declare const RadioGroup: FC<RadioGroupProps> & Subcomponents_5;
604
620
 
605
621
  declare const RadioGroupItem: FC<Props_6>;
606
622
 
607
- export declare interface RadioGroupProps extends Omit<Props_2, "error" | "errorText"> {
608
- value: string;
609
- onChange: (value: string) => void;
610
- }
623
+ export declare type RadioGroupProps = ControlledInputProps | UncontrolledInputProps;
611
624
 
612
625
  export declare const Rating: FC<RatingProps>;
613
626
 
@@ -634,7 +647,7 @@ export declare interface ScrollAreaProps {
634
647
 
635
648
  export declare const SearchField: FC<SearchFieldProps>;
636
649
 
637
- export declare type SearchFieldProps = ControlledInputProps_4 | UncontrolledInputProps_4;
650
+ export declare type SearchFieldProps = ControlledInputProps_5 | UncontrolledInputProps_5;
638
651
 
639
652
  declare const SecondaryButton: FC<Props_4>;
640
653
 
@@ -643,6 +656,7 @@ export declare const Select: FC<SelectProps> & Subcomponents_6;
643
656
  declare const SelectItem: FC<Props_7>;
644
657
 
645
658
  export declare interface SelectProps {
659
+ id?: string;
646
660
  label: string;
647
661
  value: string;
648
662
  onValueChange: (value: string) => void;
@@ -745,7 +759,7 @@ declare type SubmitResetVariantProps = FinalBaseProps & {
745
759
 
746
760
  export declare const Switch: FC<SwitchProps>;
747
761
 
748
- export declare type SwitchProps = ControlledInputProps | UncontrolledInputProps;
762
+ export declare type SwitchProps = ControlledInputProps_2 | UncontrolledInputProps_2;
749
763
 
750
764
  declare const TabContent: FC<TabsContentProps>;
751
765
 
@@ -793,7 +807,7 @@ export declare type TextareaProps = ControlledProps | UncontrolledProps;
793
807
 
794
808
  export declare const TextField: FC<TextFieldProps>;
795
809
 
796
- export declare type TextFieldProps = ControlledInputProps_3 | UncontrolledInputProps_3;
810
+ export declare type TextFieldProps = ControlledInputProps_4 | UncontrolledInputProps_4;
797
811
 
798
812
  export declare const ThemeForcer: FC<ThemeForcerProps>;
799
813
 
@@ -839,25 +853,31 @@ declare type TypographyVariant = (typeof typographyVariants)[number];
839
853
 
840
854
  declare const typographyVariants: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "bonprix-h1", "bonprix-h2", "bonprix-h3", "bonprix-h4", "bonprix-h5", "bonprix-h6", "body1", "body1-bold", "body2", "body2-bold", "subtitle1", "subtitle2", "caption", "overline"];
841
855
 
842
- declare interface UncontrolledInputProps extends BaseProps_4 {
856
+ declare interface UncontrolledInputProps extends ControlGroupProps {
857
+ value?: never;
858
+ defaultValue: string;
859
+ onChange?: (value: string) => void;
860
+ }
861
+
862
+ declare interface UncontrolledInputProps_2 extends BaseProps_4 {
843
863
  checked?: never;
844
864
  defaultChecked: boolean;
845
865
  onChange?: (checked: boolean) => void;
846
866
  }
847
867
 
848
- declare type UncontrolledInputProps_2 = BaseProps_7 & {
868
+ declare type UncontrolledInputProps_3 = BaseProps_7 & {
849
869
  value?: never;
850
870
  defaultValue: string;
851
871
  onChange?: (value: string) => void;
852
872
  };
853
873
 
854
- declare interface UncontrolledInputProps_3 extends BaseProps_8 {
874
+ declare interface UncontrolledInputProps_4 extends BaseProps_8 {
855
875
  value?: never;
856
876
  defaultValue: string;
857
877
  onChange?: (value: string) => void;
858
878
  }
859
879
 
860
- declare interface UncontrolledInputProps_4 extends BaseProps_9 {
880
+ declare interface UncontrolledInputProps_5 extends BaseProps_9 {
861
881
  value?: never;
862
882
  defaultValue: string;
863
883
  onChange?: (value: string) => void;