@snack-uikit/fields 0.17.14 → 0.17.15-preview-86ac603c.0
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldDecoratorProps } from './FieldDecorator';
|
|
2
|
-
export declare function extractFieldDecoratorProps<T extends Partial<FieldDecoratorProps>>({ error, required, readonly, label, labelTooltip, labelTooltipPlacement, labelFor, hint, disabled, showHintIcon, size, validationState, }: T): {
|
|
2
|
+
export declare function extractFieldDecoratorProps<T extends Partial<FieldDecoratorProps>>({ error, required, readonly, label, labelTooltip, labelTooltipPlacement, labelFor, hint, disabled, showHintIcon, size, validationState, className, }: T): {
|
|
3
3
|
error: string | undefined;
|
|
4
4
|
required: boolean | undefined;
|
|
5
5
|
readonly: boolean | undefined;
|
|
@@ -12,4 +12,5 @@ export declare function extractFieldDecoratorProps<T extends Partial<FieldDecora
|
|
|
12
12
|
showHintIcon: boolean | undefined;
|
|
13
13
|
size: import("@snack-uikit/input-private").Size | undefined;
|
|
14
14
|
validationState: import("../../types").ValidationState | undefined;
|
|
15
|
+
className: string | undefined;
|
|
15
16
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function extractFieldDecoratorProps({ error, required, readonly, label, labelTooltip, labelTooltipPlacement, labelFor, hint, disabled, showHintIcon, size, validationState, }) {
|
|
1
|
+
export function extractFieldDecoratorProps({ error, required, readonly, label, labelTooltip, labelTooltipPlacement, labelFor, hint, disabled, showHintIcon, size, validationState, className, }) {
|
|
2
2
|
return {
|
|
3
3
|
error,
|
|
4
4
|
required,
|
|
@@ -12,5 +12,6 @@ export function extractFieldDecoratorProps({ error, required, readonly, label, l
|
|
|
12
12
|
showHintIcon,
|
|
13
13
|
size,
|
|
14
14
|
validationState,
|
|
15
|
+
className,
|
|
15
16
|
};
|
|
16
17
|
}
|
|
@@ -15,7 +15,7 @@ export type AccordionOptionProps = Pick<AccordionItemProps, 'type'> & BaseOption
|
|
|
15
15
|
export type GroupOptionProps = Omit<GroupItemProps, 'items' | 'id'> & {
|
|
16
16
|
options: OptionProps[];
|
|
17
17
|
};
|
|
18
|
-
export type NestListOptionProps = Pick<NextListItemProps, 'type'> & BaseOptionProps & {
|
|
18
|
+
export type NestListOptionProps = Pick<NextListItemProps, 'type' | 'onSublistOpenChanged' | 'id'> & BaseOptionProps & {
|
|
19
19
|
options: OptionProps[];
|
|
20
20
|
};
|
|
21
21
|
export type InputProps = Pick<InputPrivateProps, 'id' | 'name' | 'placeholder' | 'disabled' | 'readonly' | 'onFocus' | 'onBlur' | 'onKeyDown'>;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Fields",
|
|
7
|
-
"version": "0.17.
|
|
7
|
+
"version": "0.17.15-preview-86ac603c.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@snack-uikit/droplist": "0.13.14",
|
|
38
38
|
"@snack-uikit/icons": "0.20.1",
|
|
39
39
|
"@snack-uikit/input-private": "3.1.1",
|
|
40
|
-
"@snack-uikit/list": "0.9.
|
|
40
|
+
"@snack-uikit/list": "0.9.2-preview-86ac603c.0",
|
|
41
41
|
"@snack-uikit/scroll": "0.5.2",
|
|
42
42
|
"@snack-uikit/slider": "0.1.7",
|
|
43
43
|
"@snack-uikit/tag": "0.8.2",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@snack-uikit/locale": "*"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "c9d0aeaa41dc81139ef86b2fb44a658e8d4a6b8d"
|
|
60
60
|
}
|
|
@@ -13,6 +13,7 @@ export function extractFieldDecoratorProps<T extends Partial<FieldDecoratorProps
|
|
|
13
13
|
showHintIcon,
|
|
14
14
|
size,
|
|
15
15
|
validationState,
|
|
16
|
+
className,
|
|
16
17
|
}: T) {
|
|
17
18
|
return {
|
|
18
19
|
error,
|
|
@@ -27,5 +28,6 @@ export function extractFieldDecoratorProps<T extends Partial<FieldDecoratorProps
|
|
|
27
28
|
showHintIcon,
|
|
28
29
|
size,
|
|
29
30
|
validationState,
|
|
31
|
+
className,
|
|
30
32
|
};
|
|
31
33
|
}
|
|
@@ -26,7 +26,8 @@ export type BaseOptionProps = Pick<BaseItemProps, 'beforeContent' | 'afterConten
|
|
|
26
26
|
|
|
27
27
|
export type AccordionOptionProps = Pick<AccordionItemProps, 'type'> & BaseOptionProps & { options: OptionProps[] };
|
|
28
28
|
export type GroupOptionProps = Omit<GroupItemProps, 'items' | 'id'> & { options: OptionProps[] };
|
|
29
|
-
export type NestListOptionProps = Pick<NextListItemProps, 'type'
|
|
29
|
+
export type NestListOptionProps = Pick<NextListItemProps, 'type' | 'onSublistOpenChanged' | 'id'> &
|
|
30
|
+
BaseOptionProps & { options: OptionProps[] };
|
|
30
31
|
|
|
31
32
|
export type InputProps = Pick<
|
|
32
33
|
InputPrivateProps,
|