tcce-design-system-test 0.3.5 → 0.3.7

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.
@@ -146,36 +146,15 @@ declare type ColorKey_2 = 'primary' | 'orange' | 'white' | 'gray';
146
146
  * Helper to create field configurations for common patterns
147
147
  */
148
148
  export declare const createFieldConfig: {
149
- /**
150
- * Creates a text input field configuration
151
- */
152
149
  text: (name: string, label: string, options?: Partial<FieldConfig>) => FieldConfig;
153
- /**
154
- * Creates an email input field configuration
155
- */
156
150
  email: (name: string, label: string, options?: Partial<FieldConfig>) => FieldConfig;
157
- /**
158
- * Creates a password input field configuration
159
- */
160
151
  password: (name: string, label: string, options?: Partial<FieldConfig>) => FieldConfig;
161
- /**
162
- * Creates a select input field configuration
163
- */
164
- select: (name: string, label: string, options: SelectOption[], config?: Partial<FieldConfig>) => FieldConfig;
165
- /**
166
- * Creates a checkbox input field configuration
167
- */
152
+ select: (name: string, label: string, optionsArr: SelectOption[], config?: Partial<FieldConfig>) => FieldConfig;
168
153
  checkbox: (name: string, label: string, options?: Partial<FieldConfig>) => FieldConfig;
169
- /**
170
- * Creates a radio group field configuration
171
- */
172
- radio: (name: string, label: string, options: Array<{
154
+ radio: (name: string, label: string, optionsArr: Array<{
173
155
  value: string | number;
174
156
  label: string;
175
157
  }>, config?: Partial<FieldConfig>) => FieldConfig;
176
- /**
177
- * Creates a PIN input field configuration
178
- */
179
158
  pin: (name: string, label: string, length?: number, options?: Partial<FieldConfig>) => FieldConfig;
180
159
  };
181
160
 
@@ -248,6 +227,7 @@ export declare interface FieldConfig {
248
227
  name: string;
249
228
  label: string;
250
229
  type: AllowedInputType;
230
+ size?: FormFieldSize;
251
231
  placeholder?: string;
252
232
  required?: boolean;
253
233
  disabled?: boolean;
@@ -676,9 +656,7 @@ export declare interface NavigationItem {
676
656
  * @param fields - Array of field configurations
677
657
  * @returns Normalized field configurations with valid types
678
658
  */
679
- export declare const normalizeFieldTypes: (fields: Array<Partial<FieldConfig> & {
680
- type?: string;
681
- }>) => FieldConfig[];
659
+ export declare const normalizeFieldTypes: (fields: Partial<FieldConfig>[]) => FieldConfig[];
682
660
 
683
661
  /**
684
662
  * Transforms select options to the expected format