tcce-design-system-test 0.3.4 → 0.3.5

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.
Binary file
Binary file
@@ -15,6 +15,7 @@ import { RemixiconComponentType } from '@remixicon/react';
15
15
  import { RuleSet } from 'styled-components';
16
16
  import { Substitute } from 'styled-components/dist/types';
17
17
  import { toast } from 'sonner';
18
+ import { ToasterProps } from 'sonner';
18
19
 
19
20
  /**
20
21
  * Valid input types supported by the FormField component
@@ -139,6 +140,8 @@ export declare interface CheckboxSpecificProps {
139
140
 
140
141
  declare type ColorKey = 'primary' | 'orange' | 'white' | 'gray';
141
142
 
143
+ declare type ColorKey_2 = 'primary' | 'orange' | 'white' | 'gray';
144
+
142
145
  /**
143
146
  * Helper to create field configurations for common patterns
144
147
  */
@@ -516,7 +519,7 @@ declare interface IconProps {
516
519
  iconProps?: Record<string, unknown>;
517
520
  }
518
521
 
519
- declare type IconSizes = 'tn' | 'sm' | 'md' | 'lg';
522
+ export declare type IconSizes = 'tn' | 'sm' | 'md' | 'lg';
520
523
 
521
524
  export declare const IconWrapperStyles: RuleSet<object>;
522
525
 
@@ -564,6 +567,11 @@ export declare interface InputWithIconsProps extends WithIconsProps {
564
567
  hasRightIcon?: boolean;
565
568
  }
566
569
 
570
+ /**
571
+ * Type guard to check if a string is a valid AllowedInputType
572
+ */
573
+ export declare const isAllowedInputType: (t: string) => t is AllowedInputType;
574
+
567
575
  export declare const Label: default_2.FC<BaseLabelProps>;
568
576
 
569
577
  export declare type LabelSize = 'sm' | 'md' | 'lg';
@@ -668,7 +676,9 @@ export declare interface NavigationItem {
668
676
  * @param fields - Array of field configurations
669
677
  * @returns Normalized field configurations with valid types
670
678
  */
671
- export declare const normalizeFieldTypes: (fields: Partial<FieldConfig>[]) => FieldConfig[];
679
+ export declare const normalizeFieldTypes: (fields: Array<Partial<FieldConfig> & {
680
+ type?: string;
681
+ }>) => FieldConfig[];
672
682
 
673
683
  /**
674
684
  * Transforms select options to the expected format
@@ -1033,7 +1043,11 @@ export { toast }
1033
1043
  *
1034
1044
  * @returns The rendered ToastProvider component.
1035
1045
  */
1036
- export declare const ToastProvider: () => JSX.Element;
1046
+ export declare const ToastProvider: ({ spinnerColor, ...props }: ToastProviderProps) => JSX.Element;
1047
+
1048
+ declare type ToastProviderProps = ToasterProps & {
1049
+ spinnerColor?: ColorKey_2;
1050
+ };
1037
1051
 
1038
1052
  /**
1039
1053
  * Validates if a complete code meets certain criteria