@useloops/design-system 1.4.118 → 1.4.120
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 +22 -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;
|
|
@@ -639,6 +653,7 @@ interface SurfaceProps extends PropsWithChildren {
|
|
|
639
653
|
borderradius?: BorderRadius;
|
|
640
654
|
sx?: SxProps<Theme>;
|
|
641
655
|
ref?: PaperProps['ref'];
|
|
656
|
+
component?: PaperProps['component'];
|
|
642
657
|
}
|
|
643
658
|
declare const Surface: FC<SurfaceProps>;
|
|
644
659
|
|
|
@@ -780,9 +795,13 @@ type HTMLType = {
|
|
|
780
795
|
content: HtmlProps['children'];
|
|
781
796
|
defaultValue?: never;
|
|
782
797
|
} & BaseField;
|
|
783
|
-
type
|
|
798
|
+
type CustomFieldType = {
|
|
799
|
+
fieldType: 'customfield';
|
|
800
|
+
defaultValue?: CustomFieldProps$1['value'];
|
|
801
|
+
} & BaseField & CustomFieldProps$1;
|
|
802
|
+
type DynamicFieldType = 'textfield' | 'numberfield' | 'textarea' | 'select' | 'checkbox' | 'checkboxGroup' | 'slider' | 'differential' | 'likert' | 'starRating' | 'radioGroup' | 'ranking' | 'richTextfield' | 'customfield';
|
|
784
803
|
type FieldType = DynamicFieldType | 'html';
|
|
785
|
-
type FieldTypes = CheckboxType | CheckboxGroupType | TextareaType | SelectType | TextFieldType | SliderType | DifferentialType | RichTextFieldType | LikertType | RadioGroupType | DragAndDropRankingType | NumberFieldType | StarRatingType | HTMLType;
|
|
804
|
+
type FieldTypes = CheckboxType | CheckboxGroupType | TextareaType | SelectType | TextFieldType | SliderType | DifferentialType | RichTextFieldType | LikertType | RadioGroupType | DragAndDropRankingType | NumberFieldType | StarRatingType | HTMLType | CustomFieldType;
|
|
786
805
|
interface BaseField {
|
|
787
806
|
name: string;
|
|
788
807
|
ref?: any;
|
|
@@ -1243,4 +1262,4 @@ declare module '@mui/system' {
|
|
|
1243
1262
|
}
|
|
1244
1263
|
}
|
|
1245
1264
|
|
|
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 };
|
|
1265
|
+
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 };
|