@useloops/design-system 1.4.52 → 1.4.54

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
@@ -182,9 +182,10 @@ declare const AuthFormHeader: FunctionComponent<AuthFormHeaderProps>;
182
182
 
183
183
  interface AvatarProps {
184
184
  variation?: 'sm' | 'lg';
185
- src: string;
186
- alt: string;
187
- className: string;
185
+ src?: string;
186
+ alt?: string;
187
+ className?: string;
188
+ children?: ReactElement;
188
189
  }
189
190
  declare const Avatar: FunctionComponent<AvatarProps>;
190
191
 
@@ -684,15 +685,15 @@ type DifferentialType = BaseField & DifferentialProps;
684
685
  type LikertType = BaseField & LikertProps;
685
686
  type RadioGroupType = BaseField & RadioGroupProps;
686
687
  type DragAndDropRankingType = BaseField & RankProps;
687
- type FieldType = 'textfield' | 'textarea' | 'select' | 'checkbox' | 'checkboxGroup' | 'slider' | 'differential' | 'likert' | 'starRating' | 'radioGroup' | 'text' | 'ranking';
688
+ type DynamicFieldType = 'textfield' | 'textarea' | 'select' | 'checkbox' | 'checkboxGroup' | 'slider' | 'differential' | 'likert' | 'starRating' | 'radioGroup' | 'ranking';
689
+ type FieldType = DynamicFieldType | 'html';
688
690
  type FieldTypes = CheckboxType | CheckboxGroupType | SelectType | TextFieldType | SliderType | DifferentialType | LikertType | RadioGroupType | DragAndDropRankingType;
689
691
  interface BaseField {
690
692
  name: string;
691
693
  ref?: any;
692
694
  multiline?: boolean;
693
695
  fieldType: FieldType;
694
- textContent?: string;
695
- typographyProps?: TypographyProps;
696
+ content?: ReactElement;
696
697
  defaultValue?: string | number | string[] | undefined;
697
698
  label?: string;
698
699
  labelProps?: InputLabelProps;