@useloops/design-system 1.4.118 → 1.4.119
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/esm/index.js +4 -4
- package/dist/index.d.ts +21 -3
- package/dist/index.js +3 -3
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { InputFieldBaseProps as InputFieldBaseProps$1 } from 'WebCore/InputField
|
|
|
10
10
|
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
11
11
|
import * as _emotion_styled from '@emotion/styled';
|
|
12
12
|
import { SubmitHandler } from 'react-hook-form';
|
|
13
|
+
import { CustomFieldProps as CustomFieldProps$1 } from 'WebCore/CustomField';
|
|
13
14
|
|
|
14
15
|
interface ColorRange {
|
|
15
16
|
0: string;
|
|
@@ -276,6 +277,19 @@ interface ColorBackgroundContainerProps {
|
|
|
276
277
|
}
|
|
277
278
|
declare const ColorBackgroundContainer: FunctionComponent<ColorBackgroundContainerProps>;
|
|
278
279
|
|
|
280
|
+
type CustomFieldProps = {
|
|
281
|
+
inputField: react.FC<{
|
|
282
|
+
onChange: (data: unknown) => void;
|
|
283
|
+
}>;
|
|
284
|
+
onChange?: (data: unknown) => void;
|
|
285
|
+
defaultValue?: unknown;
|
|
286
|
+
value?: unknown;
|
|
287
|
+
placeholder?: string;
|
|
288
|
+
transformValue?: (value?: unknown) => void;
|
|
289
|
+
internalChange?: () => void;
|
|
290
|
+
};
|
|
291
|
+
declare const CustomField: FunctionComponent<CustomFieldProps>;
|
|
292
|
+
|
|
279
293
|
interface DifferentialProps {
|
|
280
294
|
labelLeft: string;
|
|
281
295
|
labelRight: string;
|
|
@@ -780,9 +794,13 @@ type HTMLType = {
|
|
|
780
794
|
content: HtmlProps['children'];
|
|
781
795
|
defaultValue?: never;
|
|
782
796
|
} & BaseField;
|
|
783
|
-
type
|
|
797
|
+
type CustomFieldType = {
|
|
798
|
+
fieldType: 'customfield';
|
|
799
|
+
defaultValue?: CustomFieldProps$1['value'];
|
|
800
|
+
} & BaseField & CustomFieldProps$1;
|
|
801
|
+
type DynamicFieldType = 'textfield' | 'numberfield' | 'textarea' | 'select' | 'checkbox' | 'checkboxGroup' | 'slider' | 'differential' | 'likert' | 'starRating' | 'radioGroup' | 'ranking' | 'richTextfield' | 'customfield';
|
|
784
802
|
type FieldType = DynamicFieldType | 'html';
|
|
785
|
-
type FieldTypes = CheckboxType | CheckboxGroupType | TextareaType | SelectType | TextFieldType | SliderType | DifferentialType | RichTextFieldType | LikertType | RadioGroupType | DragAndDropRankingType | NumberFieldType | StarRatingType | HTMLType;
|
|
803
|
+
type FieldTypes = CheckboxType | CheckboxGroupType | TextareaType | SelectType | TextFieldType | SliderType | DifferentialType | RichTextFieldType | LikertType | RadioGroupType | DragAndDropRankingType | NumberFieldType | StarRatingType | HTMLType | CustomFieldType;
|
|
786
804
|
interface BaseField {
|
|
787
805
|
name: string;
|
|
788
806
|
ref?: any;
|
|
@@ -1243,4 +1261,4 @@ declare module '@mui/system' {
|
|
|
1243
1261
|
}
|
|
1244
1262
|
}
|
|
1245
1263
|
|
|
1246
|
-
export { AnnualController, type AnnualControllerProps, AuthContainerSurface, type AuthContainerSurfaceProps, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, CheckboxGroup as CheckBoxGroup, Checkbox, type CheckboxGroupProps, type CheckboxProps, ColorBackgroundContainer, type ColorBackgroundContainerProps, DEFAULT_MAX_INPUT_LENGTH, Differential, type DifferentialProps, DropdownMenu, type FieldType, type FieldTypes, FormControlLabel, FormGenerator, type FormGeneratorConfig, type FormGeneratorHandler, GridOverlay, type GridOverlayProps, Html, type HtmlProps, Icon, IconButton, IconButtonGroup, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, NumberField, type NumberFieldProps, Pill, type PillProps, PlanFeatureTable, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, PlanTierCardScale, type PlanTierCardScaleProps, Portal, type PortalProps, PoweredByWatermarkLogo, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rank, type RankProps, RichTextField, type RichTextFieldProps, Select, type SelectProps, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, Textarea as TextArea, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, type TextareaProps, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, Typography, type TypographyProps, backgroundCreator, chooseArticle, defaultInputValidation, emailValidation, passwordValidation, useDropdownMenu };
|
|
1264
|
+
export { AnnualController, type AnnualControllerProps, AuthContainerSurface, type AuthContainerSurfaceProps, AuthFormHeader, type AuthFormHeaderProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Button, type ButtonProps, CheckboxGroup as CheckBoxGroup, Checkbox, type CheckboxGroupProps, type CheckboxProps, ColorBackgroundContainer, type ColorBackgroundContainerProps, CustomField, type CustomFieldProps, DEFAULT_MAX_INPUT_LENGTH, Differential, type DifferentialProps, DropdownMenu, type FieldType, type FieldTypes, FormControlLabel, FormGenerator, type FormGeneratorConfig, type FormGeneratorHandler, GridOverlay, type GridOverlayProps, Html, type HtmlProps, Icon, IconButton, IconButtonGroup, InputLabel, InputLabelHelp, type InputLabelHelpProps, type InputLabelProps, Likert, type LikertProps, Link, type LinkProps, Loader, type LoaderProps, Logo, NumberField, type NumberFieldProps, Pill, type PillProps, PlanFeatureTable, type PlanFeatureTableProps, PlanTierCard, type PlanTierCardProps, PlanTierCardScale, type PlanTierCardScaleProps, Portal, type PortalProps, PoweredByWatermarkLogo, Progress, type ProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Rank, type RankProps, RichTextField, type RichTextFieldProps, Select, type SelectProps, Slider, type SliderProps, SortableList, type SortableListProps, StarRating, type StarRatingProps, Surface, type SurfaceProps, Switch, type SwitchProps, Textarea as TextArea, TextBarDivider, type TextBarDividerProps, TextField, type TextFieldProps, type TextareaProps, ThemeProvider, TickGroup, type TickGroupProps, Toast, type ToastProps, Tooltip, type TooltipProps, Typography, type TypographyProps, backgroundCreator, chooseArticle, defaultInputValidation, emailValidation, passwordValidation, useDropdownMenu };
|