@useloops/design-system 1.4.97 → 1.4.99
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 +3 -3
- package/dist/index.d.ts +13 -13
- package/dist/index.js +3 -3
- package/package.json +21 -21
package/dist/index.d.ts
CHANGED
|
@@ -8,12 +8,9 @@ import * as _mui_system from '@mui/system';
|
|
|
8
8
|
import { SxProps as SxProps$1, Theme as Theme$2 } from '@mui/system';
|
|
9
9
|
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
10
10
|
import { Content } from '@tiptap/core/src/types';
|
|
11
|
-
import { InputFieldBaseProps as InputFieldBaseProps$1 } from 'WebCore/InputFieldBase';
|
|
12
11
|
import * as _emotion_styled from '@emotion/styled';
|
|
13
12
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
14
|
-
import { NumberFieldProps as NumberFieldProps$1 } from 'WebCore/NumberField/NumberField';
|
|
15
13
|
import { SubmitHandler } from 'react-hook-form';
|
|
16
|
-
import { RichTextFieldProps as RichTextFieldProps$1 } from 'systems/WebCore/RichTextField';
|
|
17
14
|
|
|
18
15
|
interface ColorRange {
|
|
19
16
|
0: string;
|
|
@@ -592,7 +589,7 @@ interface RankProps extends Omit<SortableListProps<any>, 'renderItem' | 'items'>
|
|
|
592
589
|
}
|
|
593
590
|
declare const Rank: FunctionComponent<RankProps>;
|
|
594
591
|
|
|
595
|
-
type RichTextFieldProps = Omit<InputFieldBaseProps
|
|
592
|
+
type RichTextFieldProps = Omit<InputFieldBaseProps, 'value'> & {
|
|
596
593
|
internalChange?: () => void;
|
|
597
594
|
minHeight?: number;
|
|
598
595
|
minWidth?: number;
|
|
@@ -726,7 +723,10 @@ type TextFieldType = {
|
|
|
726
723
|
} & BaseField & Omit<TextFieldProps, 'value' | 'onChange' | 'name'>;
|
|
727
724
|
type NumberFieldType = {
|
|
728
725
|
fieldType: 'numberfield';
|
|
729
|
-
} & BaseField & Omit<NumberFieldProps
|
|
726
|
+
} & BaseField & Omit<NumberFieldProps, 'value' | 'onChange' | 'name'>;
|
|
727
|
+
type TextareaType = {
|
|
728
|
+
fieldType: 'textarea';
|
|
729
|
+
} & BaseField & Omit<TextareaProps, 'value' | 'onChange' | 'name'>;
|
|
730
730
|
type SelectType = {
|
|
731
731
|
fieldType: 'select';
|
|
732
732
|
defaultValue?: SelectProps['value'];
|
|
@@ -761,8 +761,8 @@ type DragAndDropRankingType = {
|
|
|
761
761
|
} & BaseField & Omit<RankProps, 'value' | 'onChange' | 'name'>;
|
|
762
762
|
type RichTextFieldType = {
|
|
763
763
|
fieldType: 'richTextfield';
|
|
764
|
-
defaultValue?: RichTextFieldProps
|
|
765
|
-
} & BaseField & Omit<RichTextFieldProps
|
|
764
|
+
defaultValue?: RichTextFieldProps['value'];
|
|
765
|
+
} & BaseField & Omit<RichTextFieldProps, 'value' | 'onChange' | 'name'>;
|
|
766
766
|
type StarRatingType = {
|
|
767
767
|
fieldType: 'starRating';
|
|
768
768
|
defaultValue?: StarRatingProps['value'];
|
|
@@ -774,7 +774,7 @@ type HTMLType = {
|
|
|
774
774
|
} & BaseField;
|
|
775
775
|
type DynamicFieldType = 'textfield' | 'numberfield' | 'textarea' | 'select' | 'checkbox' | 'checkboxGroup' | 'slider' | 'differential' | 'likert' | 'starRating' | 'radioGroup' | 'ranking' | 'richTextfield';
|
|
776
776
|
type FieldType = DynamicFieldType | 'html';
|
|
777
|
-
type FieldTypes = CheckboxType | CheckboxGroupType | SelectType | TextFieldType | SliderType | DifferentialType | RichTextFieldType | LikertType | RadioGroupType | DragAndDropRankingType | NumberFieldType | StarRatingType | HTMLType;
|
|
777
|
+
type FieldTypes = CheckboxType | CheckboxGroupType | TextareaType | SelectType | TextFieldType | SliderType | DifferentialType | RichTextFieldType | LikertType | RadioGroupType | DragAndDropRankingType | NumberFieldType | StarRatingType | HTMLType;
|
|
778
778
|
interface BaseField {
|
|
779
779
|
name: string;
|
|
780
780
|
ref?: any;
|
|
@@ -1044,7 +1044,7 @@ declare module '@mui/material/styles' {
|
|
|
1044
1044
|
xl: true;
|
|
1045
1045
|
xxl: true;
|
|
1046
1046
|
}
|
|
1047
|
-
interface TypographyVariants
|
|
1047
|
+
interface TypographyVariants {
|
|
1048
1048
|
xxxl: React.CSSProperties;
|
|
1049
1049
|
xxl: React.CSSProperties;
|
|
1050
1050
|
xl: React.CSSProperties;
|
|
@@ -1053,7 +1053,7 @@ declare module '@mui/material/styles' {
|
|
|
1053
1053
|
sm: React.CSSProperties;
|
|
1054
1054
|
xs: React.CSSProperties;
|
|
1055
1055
|
}
|
|
1056
|
-
interface TypographyVariantsOptions
|
|
1056
|
+
interface TypographyVariantsOptions {
|
|
1057
1057
|
xxxl?: React.CSSProperties;
|
|
1058
1058
|
xxl?: React.CSSProperties;
|
|
1059
1059
|
xl?: React.CSSProperties;
|
|
@@ -1062,7 +1062,7 @@ declare module '@mui/material/styles' {
|
|
|
1062
1062
|
sm?: React.CSSProperties;
|
|
1063
1063
|
xs?: React.CSSProperties;
|
|
1064
1064
|
}
|
|
1065
|
-
interface ThemeOptions
|
|
1065
|
+
interface ThemeOptions {
|
|
1066
1066
|
custom?: {
|
|
1067
1067
|
palette?: {
|
|
1068
1068
|
black?: string;
|
|
@@ -1183,7 +1183,7 @@ declare module '@mui/material/styles' {
|
|
|
1183
1183
|
};
|
|
1184
1184
|
};
|
|
1185
1185
|
}
|
|
1186
|
-
interface Theme
|
|
1186
|
+
interface Theme {
|
|
1187
1187
|
custom: CustomTheme;
|
|
1188
1188
|
margin: {
|
|
1189
1189
|
0: number;
|
|
@@ -1215,7 +1215,7 @@ declare module '@mui/material/styles' {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
1217
|
declare module '@mui/material/Typography' {
|
|
1218
|
-
interface TypographyPropsVariantOverrides
|
|
1218
|
+
interface TypographyPropsVariantOverrides {
|
|
1219
1219
|
xxxl: true;
|
|
1220
1220
|
xxl: true;
|
|
1221
1221
|
xl: true;
|