@snack-uikit/fields 0.23.4 → 0.23.5-preview-8898cdde.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.
- package/README.md +1 -1
- package/dist/components/FieldDate/FieldDate.d.ts +5 -6
- package/dist/components/FieldDecorator/styles.module.css +12 -12
- package/dist/components/FieldDecorator/utils.d.ts +0 -1
- package/dist/components/FieldSecure/FieldSecure.d.ts +1 -1
- package/dist/components/FieldSelect/FieldSelect.d.ts +0 -1
- package/dist/components/FieldSelect/FieldSelectMultiple.d.ts +17 -18
- package/dist/components/FieldSelect/FieldSelectSingle.d.ts +16 -17
- package/dist/components/FieldSelect/hooks.d.ts +2 -2
- package/dist/components/FieldSelect/utils/getArrowIcon.d.ts +0 -1
- package/dist/components/FieldSelect/utils/updateItems.d.ts +1 -1
- package/dist/components/FieldSlider/FieldSlider.d.ts +1 -1
- package/dist/components/FieldStepper/FieldStepper.d.ts +1 -1
- package/dist/components/FieldText/FieldText.d.ts +1 -1
- package/dist/components/FieldTextArea/FieldTextArea.d.ts +1 -1
- package/dist/helperComponents/ButtonCopyValue/styles.module.css +1 -1
- package/dist/helperComponents/ButtonHideValue/styles.module.css +1 -1
- package/dist/helperComponents/FieldContainerPrivate/styles.module.css +6 -6
- package/dist/helperComponents/TextArea/styles.module.css +1 -1
- package/dist/hooks/useValueControl.d.ts +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -317,7 +317,7 @@ FieldStepper в основном предназначен для работы с
|
|
|
317
317
|
| showCopyButton | `boolean` | - | Отображение кнопки копирования |
|
|
318
318
|
| showClearButton | `boolean` | true | Отображение кнопки Очистки поля |
|
|
319
319
|
| locale | `Locale` | new Intl.Locale('ru-RU') | Текущая локаль календаря |
|
|
320
|
-
| buildCellProps | `(date: Date, viewMode: ViewMode) => { isDisabled?: boolean; isHoliday?: boolean };` | - | Колбек установки свойств ячеек календаря. Вызывается на построение каждой ячейки. Принимает два параметра: <br> `Date` - дата ячейки <br> `ViewMode`: <br> - `month` отображение месяца, каждая ячейка - 1 день <br> - `year` отображение года, каждая ячейка - 1 месяц <br> - `decade` отображение декады, каждая ячейка - 1 год <br><br> Колбек должен возвращать объект с полями, отвечающими за отключение и подкраску ячейки. |
|
|
320
|
+
| buildCellProps | `(date: Date, viewMode: ViewMode) => { isDisabled?: boolean; isHoliday?: boolean } ;` | - | Колбек установки свойств ячеек календаря. Вызывается на построение каждой ячейки. Принимает два параметра: <br> `Date` - дата ячейки <br> `ViewMode`: <br> - `month` отображение месяца, каждая ячейка - 1 день <br> - `year` отображение года, каждая ячейка - 1 месяц <br> - `decade` отображение декады, каждая ячейка - 1 год <br><br> Колбек должен возвращать объект с полями, отвечающими за отключение и подкраску ячейки. |
|
|
321
321
|
| disabled | `boolean` | - | Является ли поле деактивированным |
|
|
322
322
|
| readonly | `boolean` | - | Является ли поле доступным только для чтения |
|
|
323
323
|
| id | `string` | - | Значение html-атрибута id |
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CalendarProps } from '@snack-uikit/calendar';
|
|
3
2
|
import { InputPrivateProps } from '@snack-uikit/input-private';
|
|
4
3
|
import { WithSupportProps } from '@snack-uikit/utils';
|
|
@@ -24,22 +23,22 @@ type FieldDateOwnProps = {
|
|
|
24
23
|
} & Pick<CalendarProps, 'buildCellProps'>;
|
|
25
24
|
export type FieldDateProps = WithSupportProps<FieldDateOwnProps & InputProps & WrapperProps>;
|
|
26
25
|
export declare const FieldDate: import("react").ForwardRefExoticComponent<{
|
|
27
|
-
'data-test-id'?: string
|
|
26
|
+
'data-test-id'?: string;
|
|
28
27
|
} & import("react").AriaAttributes & {
|
|
29
28
|
/** Открыт date-picker */
|
|
30
|
-
open?: boolean
|
|
29
|
+
open?: boolean;
|
|
31
30
|
/** Колбек открытия пикера */
|
|
32
31
|
onOpenChange?(value: boolean): void;
|
|
33
32
|
/** Колбек смены значения */
|
|
34
33
|
onChange?(value: string): void;
|
|
35
34
|
/** Отображение кнопки копирования */
|
|
36
|
-
showCopyButton?: boolean
|
|
35
|
+
showCopyButton?: boolean;
|
|
37
36
|
/**
|
|
38
37
|
* Отображение кнопки Очистки поля
|
|
39
38
|
* @default true
|
|
40
39
|
*/
|
|
41
|
-
showClearButton?: boolean
|
|
40
|
+
showClearButton?: boolean;
|
|
42
41
|
/** Текущая локаль календаря */
|
|
43
|
-
locale?: Intl.Locale
|
|
42
|
+
locale?: Intl.Locale;
|
|
44
43
|
} & Pick<CalendarProps, "buildCellProps"> & InputProps & WrapperProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
45
44
|
export {};
|
|
@@ -160,13 +160,13 @@
|
|
|
160
160
|
color:var(--sys-neutral-text-light, #8b8e9b);
|
|
161
161
|
}
|
|
162
162
|
.hint[data-validation=error]{
|
|
163
|
-
color:var(--sys-red-text-main, #
|
|
163
|
+
color:var(--sys-red-text-main, #7a2d2d);
|
|
164
164
|
}
|
|
165
165
|
.hint[data-validation=warning]{
|
|
166
|
-
color:var(--sys-yellow-text-main, #
|
|
166
|
+
color:var(--sys-yellow-text-main, #815f19);
|
|
167
167
|
}
|
|
168
168
|
.hint[data-validation=success]{
|
|
169
|
-
color:var(--sys-green-text-main, #
|
|
169
|
+
color:var(--sys-green-text-main, #3d6035);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
.icon{
|
|
@@ -183,10 +183,10 @@
|
|
|
183
183
|
color:var(--sys-neutral-accent-default, #787b8a);
|
|
184
184
|
}
|
|
185
185
|
.hintIcon[data-validation=error]{
|
|
186
|
-
color:var(--sys-red-accent-default, #
|
|
186
|
+
color:var(--sys-red-accent-default, #cb3f3e);
|
|
187
187
|
}
|
|
188
188
|
.hintIcon[data-validation=warning]{
|
|
189
|
-
color:var(--sys-yellow-accent-default, #
|
|
189
|
+
color:var(--sys-yellow-accent-default, #e2b134);
|
|
190
190
|
}
|
|
191
191
|
.hintIcon[data-validation=success]{
|
|
192
192
|
color:var(--sys-green-accent-default, #57b762);
|
|
@@ -196,26 +196,26 @@
|
|
|
196
196
|
color:var(--sys-neutral-text-light, #8b8e9b);
|
|
197
197
|
}
|
|
198
198
|
.counterLimit > span[data-limit-exceeded], .counterLimit > span[data-validation=error]{
|
|
199
|
-
color:var(--sys-red-text-light, #
|
|
199
|
+
color:var(--sys-red-text-light, #e7756a);
|
|
200
200
|
}
|
|
201
201
|
.counterLimit > span[data-validation=warning]{
|
|
202
|
-
color:var(--sys-yellow-text-light, #
|
|
202
|
+
color:var(--sys-yellow-text-light, #d3a736);
|
|
203
203
|
}
|
|
204
204
|
.counterLimit > span[data-validation=success]{
|
|
205
|
-
color:var(--sys-green-text-light, #
|
|
205
|
+
color:var(--sys-green-text-light, #69b56f);
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
.counterCurrentValue[data-limit-exceeded][data-validation=default]{
|
|
209
|
-
color:var(--sys-neutral-text-main, #
|
|
209
|
+
color:var(--sys-neutral-text-main, #41424e);
|
|
210
210
|
}
|
|
211
211
|
.counterCurrentValue[data-limit-exceeded][data-validation=error]{
|
|
212
|
-
color:var(--sys-red-text-main, #
|
|
212
|
+
color:var(--sys-red-text-main, #7a2d2d);
|
|
213
213
|
}
|
|
214
214
|
.counterCurrentValue[data-limit-exceeded][data-validation=warning]{
|
|
215
|
-
color:var(--sys-yellow-text-main, #
|
|
215
|
+
color:var(--sys-yellow-text-main, #815f19);
|
|
216
216
|
}
|
|
217
217
|
.counterCurrentValue[data-limit-exceeded][data-validation=success]{
|
|
218
|
-
color:var(--sys-green-text-light, #
|
|
218
|
+
color:var(--sys-green-text-light, #69b56f);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.labelTooltipTrigger{
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FieldDecoratorProps } from './FieldDecorator';
|
|
3
2
|
export declare function extractFieldDecoratorProps<T extends Partial<FieldDecoratorProps>>({ error, required, readonly, label, labelTooltip, labelTooltipPlacement, labelFor, caption, hint, disabled, showHintIcon, size, validationState, className, }: T): {
|
|
4
3
|
error: string | undefined;
|
|
@@ -20,6 +20,6 @@ type FieldSecureOwnProps = {
|
|
|
20
20
|
};
|
|
21
21
|
export type FieldSecureProps = WithSupportProps<FieldSecureOwnProps & InputProps & WrapperProps>;
|
|
22
22
|
export declare const FieldSecure: import("react").ForwardRefExoticComponent<{
|
|
23
|
-
'data-test-id'?: string
|
|
23
|
+
'data-test-id'?: string;
|
|
24
24
|
} & import("react").AriaAttributes & FieldSecureOwnProps & Pick<Partial<InputPrivateProps>, "onChange" | "value"> & Pick<InputPrivateProps, "disabled" | "readonly" | "id" | "name" | "onFocus" | "onBlur" | "placeholder" | "maxLength"> & WrapperProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
25
25
|
export {};
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SelectedOptionFormatter } from './types';
|
|
3
2
|
export declare const FieldSelectMultiple: import("react").ForwardRefExoticComponent<import("./types").InputProps & import("./types").WrapperProps & {
|
|
4
3
|
options: import("./types").OptionProps[];
|
|
5
|
-
loading?: boolean
|
|
4
|
+
loading?: boolean;
|
|
6
5
|
} & {
|
|
7
|
-
removeByBackspace?: boolean
|
|
6
|
+
removeByBackspace?: boolean;
|
|
8
7
|
} & Omit<import("@snack-uikit/list").SelectionMultipleState, "mode"> & Omit<{
|
|
9
|
-
'data-test-id'?: string
|
|
8
|
+
'data-test-id'?: string;
|
|
10
9
|
} & import("react").AriaAttributes & {
|
|
11
10
|
options: import("./types").OptionProps[];
|
|
12
|
-
pinTop?: import("./types").OptionProps[]
|
|
13
|
-
pinBottom?: import("./types").OptionProps[]
|
|
14
|
-
searchable?: boolean
|
|
15
|
-
showCopyButton?: boolean
|
|
16
|
-
showClearButton?: boolean
|
|
17
|
-
readonly?: boolean
|
|
18
|
-
prefixIcon?: import("react").ReactElement
|
|
19
|
-
footer?: import("
|
|
20
|
-
widthStrategy?: import("@snack-uikit/
|
|
21
|
-
search?: import("./types").SearchState
|
|
22
|
-
autocomplete?: boolean
|
|
23
|
-
addOptionByEnter?: boolean
|
|
24
|
-
open?: boolean
|
|
11
|
+
pinTop?: import("./types").OptionProps[];
|
|
12
|
+
pinBottom?: import("./types").OptionProps[];
|
|
13
|
+
searchable?: boolean;
|
|
14
|
+
showCopyButton?: boolean;
|
|
15
|
+
showClearButton?: boolean;
|
|
16
|
+
readonly?: boolean;
|
|
17
|
+
prefixIcon?: import("react").ReactElement;
|
|
18
|
+
footer?: import("@snack-uikit/list").DroplistProps["footer"];
|
|
19
|
+
widthStrategy?: import("@snack-uikit/list").DroplistProps["widthStrategy"];
|
|
20
|
+
search?: import("./types").SearchState;
|
|
21
|
+
autocomplete?: boolean;
|
|
22
|
+
addOptionByEnter?: boolean;
|
|
23
|
+
open?: boolean;
|
|
25
24
|
onOpenChange?(open: boolean): void;
|
|
26
|
-
selectedOptionFormatter?: SelectedOptionFormatter
|
|
25
|
+
selectedOptionFormatter?: SelectedOptionFormatter;
|
|
27
26
|
} & Pick<import("@snack-uikit/list").DroplistProps, "dataError" | "dataFiltered" | "noDataState" | "noResultsState" | "errorDataState">, "showCopyButton"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SelectedOptionFormatter } from './types';
|
|
3
2
|
export declare const FieldSelectSingle: import("react").ForwardRefExoticComponent<import("./types").InputProps & import("./types").WrapperProps & {
|
|
4
3
|
options: import("./types").OptionProps[];
|
|
5
|
-
loading?: boolean
|
|
4
|
+
loading?: boolean;
|
|
6
5
|
} & Omit<import("@snack-uikit/list").SelectionSingleState, "mode"> & {
|
|
7
|
-
'data-test-id'?: string
|
|
6
|
+
'data-test-id'?: string;
|
|
8
7
|
} & import("react").AriaAttributes & {
|
|
9
8
|
options: import("./types").OptionProps[];
|
|
10
|
-
pinTop?: import("./types").OptionProps[]
|
|
11
|
-
pinBottom?: import("./types").OptionProps[]
|
|
12
|
-
searchable?: boolean
|
|
13
|
-
showCopyButton?: boolean
|
|
14
|
-
showClearButton?: boolean
|
|
15
|
-
readonly?: boolean
|
|
16
|
-
prefixIcon?: import("react").ReactElement
|
|
17
|
-
footer?: import("
|
|
18
|
-
widthStrategy?: import("@snack-uikit/
|
|
19
|
-
search?: import("./types").SearchState
|
|
20
|
-
autocomplete?: boolean
|
|
21
|
-
addOptionByEnter?: boolean
|
|
22
|
-
open?: boolean
|
|
9
|
+
pinTop?: import("./types").OptionProps[];
|
|
10
|
+
pinBottom?: import("./types").OptionProps[];
|
|
11
|
+
searchable?: boolean;
|
|
12
|
+
showCopyButton?: boolean;
|
|
13
|
+
showClearButton?: boolean;
|
|
14
|
+
readonly?: boolean;
|
|
15
|
+
prefixIcon?: import("react").ReactElement;
|
|
16
|
+
footer?: import("@snack-uikit/list").DroplistProps["footer"];
|
|
17
|
+
widthStrategy?: import("@snack-uikit/list").DroplistProps["widthStrategy"];
|
|
18
|
+
search?: import("./types").SearchState;
|
|
19
|
+
autocomplete?: boolean;
|
|
20
|
+
addOptionByEnter?: boolean;
|
|
21
|
+
open?: boolean;
|
|
23
22
|
onOpenChange?(open: boolean): void;
|
|
24
|
-
selectedOptionFormatter?: SelectedOptionFormatter
|
|
23
|
+
selectedOptionFormatter?: SelectedOptionFormatter;
|
|
25
24
|
} & Pick<import("@snack-uikit/list").DroplistProps, "dataError" | "dataFiltered" | "noDataState" | "noResultsState" | "errorDataState"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -25,9 +25,9 @@ export declare function useSearchInput({ value, onChange, defaultValue, selected
|
|
|
25
25
|
selectedOptionFormatter: SelectedOptionFormatter;
|
|
26
26
|
}): {
|
|
27
27
|
inputValue: string;
|
|
28
|
-
setInputValue: (value: any, ...args: any[]) =>
|
|
28
|
+
setInputValue: (value: any, ...args: any[]) => ReturnType<Handler> | void;
|
|
29
29
|
prevInputValue: import("react").MutableRefObject<string>;
|
|
30
|
-
onInputValueChange: (value: any, ...args: any[]) =>
|
|
30
|
+
onInputValueChange: (value: any, ...args: any[]) => ReturnType<Handler> | void;
|
|
31
31
|
updateInputValue: (selectedItem?: ItemWithId) => void;
|
|
32
32
|
};
|
|
33
33
|
export declare function useHandleDeleteItem(setValue: Handler): (item?: ItemWithId) => (e?: MouseEvent<HTMLButtonElement>) => void;
|
|
@@ -24,7 +24,7 @@ export declare function updateMultipleItems({ options, value, selectedItems, }:
|
|
|
24
24
|
}): {
|
|
25
25
|
selectedItems: undefined;
|
|
26
26
|
items: (import("@snack-uikit/list/dist/components/Items").Item & {
|
|
27
|
-
appearance?: import("@snack-uikit/tag
|
|
27
|
+
appearance?: import("@snack-uikit/tag").TagProps["appearance"];
|
|
28
28
|
})[];
|
|
29
29
|
} | {
|
|
30
30
|
selectedItems: ItemWithId[];
|
|
@@ -16,6 +16,6 @@ type FieldSliderOwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type FieldSliderProps = WithSupportProps<FieldSliderOwnProps & SliderProps & WrapperProps>;
|
|
18
18
|
export declare const FieldSlider: import("react").ForwardRefExoticComponent<{
|
|
19
|
-
'data-test-id'?: string
|
|
19
|
+
'data-test-id'?: string;
|
|
20
20
|
} & import("react").AriaAttributes & FieldSliderOwnProps & Pick<InputPrivateProps, "disabled" | "readonly" | "id" | "name" | "onFocus" | "onBlur"> & Pick<SliderComponentProps, "onChange" | "value" | "range" | "tipFormatter"> & Required<Pick<SliderComponentProps, "max" | "min" | "step" | "marks">> & WrapperProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
21
21
|
export {};
|
|
@@ -16,6 +16,6 @@ type FieldStepperOwnProps = {
|
|
|
16
16
|
};
|
|
17
17
|
export type FieldStepperProps = WithSupportProps<FieldStepperOwnProps & InputProps & WrapperProps>;
|
|
18
18
|
export declare const FieldStepper: import("react").ForwardRefExoticComponent<{
|
|
19
|
-
'data-test-id'?: string
|
|
19
|
+
'data-test-id'?: string;
|
|
20
20
|
} & import("react").AriaAttributes & FieldStepperOwnProps & InputProps & WrapperProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
21
21
|
export {};
|
|
@@ -19,6 +19,6 @@ type FieldTextOwnProps = {
|
|
|
19
19
|
};
|
|
20
20
|
export type FieldTextProps = WithSupportProps<FieldTextOwnProps & InputProps & WrapperProps>;
|
|
21
21
|
export declare const FieldText: import("react").ForwardRefExoticComponent<{
|
|
22
|
-
'data-test-id'?: string
|
|
22
|
+
'data-test-id'?: string;
|
|
23
23
|
} & import("react").AriaAttributes & FieldTextOwnProps & Pick<Partial<InputPrivateProps>, "onChange" | "value"> & Pick<InputPrivateProps, "disabled" | "readonly" | "id" | "name" | "onFocus" | "onBlur" | "placeholder" | "maxLength"> & WrapperProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
24
24
|
export {};
|
|
@@ -25,6 +25,6 @@ type FieldTextAreaOwnProps = {
|
|
|
25
25
|
};
|
|
26
26
|
export type FieldTextAreaProps = WithSupportProps<FieldTextAreaOwnProps & InputProps & WrapperProps>;
|
|
27
27
|
export declare const FieldTextArea: import("react").ForwardRefExoticComponent<{
|
|
28
|
-
'data-test-id'?: string
|
|
28
|
+
'data-test-id'?: string;
|
|
29
29
|
} & import("react").AriaAttributes & FieldTextAreaOwnProps & Pick<Partial<TextAreaProps>, "value"> & Pick<TextAreaProps, "disabled" | "readonly" | "id" | "name" | "onFocus" | "onBlur" | "placeholder" | "maxLength"> & WrapperProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
30
30
|
export {};
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
outline-color:var(--sys-primary-decor-activated, #c5b2f1);
|
|
24
24
|
}
|
|
25
25
|
.container[data-validation=error]{
|
|
26
|
-
background-color:var(--sys-red-background1-level, #
|
|
26
|
+
background-color:var(--sys-red-background1-level, #fef6f3);
|
|
27
27
|
border-color:var(--sys-red-decor-default, #fdd6cd);
|
|
28
28
|
}
|
|
29
29
|
.container[data-validation=error]:hover{
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
outline-style:var(--border-state-focus-m-border-style, solid);
|
|
36
36
|
outline-color:var(--border-state-focus-m-border-color, );
|
|
37
37
|
background-color:var(--sys-neutral-background2-level, #ffffff);
|
|
38
|
-
border-color:var(--sys-red-accent-default, #
|
|
38
|
+
border-color:var(--sys-red-accent-default, #cb3f3e);
|
|
39
39
|
outline-color:var(--sys-red-decor-activated, #fbab99);
|
|
40
40
|
}
|
|
41
41
|
.container[data-validation=warning]{
|
|
42
|
-
background-color:var(--sys-yellow-background1-level, #
|
|
42
|
+
background-color:var(--sys-yellow-background1-level, #fcfbef);
|
|
43
43
|
border-color:var(--sys-yellow-decor-default, #f0dfb1);
|
|
44
44
|
}
|
|
45
45
|
.container[data-validation=warning]:hover{
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
outline-style:var(--border-state-focus-m-border-style, solid);
|
|
52
52
|
outline-color:var(--border-state-focus-m-border-color, );
|
|
53
53
|
background-color:var(--sys-neutral-background2-level, #ffffff);
|
|
54
|
-
border-color:var(--sys-yellow-accent-default, #
|
|
55
|
-
outline-color:var(--sys-yellow-decor-activated, #
|
|
54
|
+
border-color:var(--sys-yellow-accent-default, #e2b134);
|
|
55
|
+
outline-color:var(--sys-yellow-decor-activated, #e6c878);
|
|
56
56
|
}
|
|
57
57
|
.container[data-validation=success]{
|
|
58
|
-
background-color:var(--sys-green-background1-level, #
|
|
58
|
+
background-color:var(--sys-green-background1-level, #f6fdf3);
|
|
59
59
|
border-color:var(--sys-green-decor-default, #d2ead0);
|
|
60
60
|
}
|
|
61
61
|
.container[data-validation=success]:hover{
|
|
@@ -3,5 +3,5 @@ type UseValueControl<TValue> = {
|
|
|
3
3
|
onChange?(value: TValue): void;
|
|
4
4
|
defaultValue?: TValue;
|
|
5
5
|
};
|
|
6
|
-
export declare function useValueControl<TValue>({ value, onChange, defaultValue }: UseValueControl<TValue>): readonly [TValue | undefined, (value: any, ...args: any[]) =>
|
|
6
|
+
export declare function useValueControl<TValue>({ value, onChange, defaultValue }: UseValueControl<TValue>): readonly [TValue | undefined, (value: any, ...args: any[]) => ReturnType<import("uncontrollable").Handler> | void];
|
|
7
7
|
export {};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Fields",
|
|
7
|
-
"version": "0.23.
|
|
7
|
+
"version": "0.23.5-preview-8898cdde.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"scripts": {},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@snack-uikit/button": "0.17.
|
|
35
|
+
"@snack-uikit/button": "0.17.3-preview-8898cdde.0",
|
|
36
36
|
"@snack-uikit/calendar": "0.7.10",
|
|
37
37
|
"@snack-uikit/dropdown": "0.2.4",
|
|
38
38
|
"@snack-uikit/icons": "0.22.0",
|
|
39
39
|
"@snack-uikit/input-private": "3.1.4",
|
|
40
|
-
"@snack-uikit/list": "0.14.
|
|
40
|
+
"@snack-uikit/list": "0.14.3-preview-8898cdde.0",
|
|
41
41
|
"@snack-uikit/scroll": "0.6.0",
|
|
42
42
|
"@snack-uikit/skeleton": "0.3.4",
|
|
43
43
|
"@snack-uikit/slider": "0.1.15",
|
|
44
44
|
"@snack-uikit/tag": "0.9.7",
|
|
45
45
|
"@snack-uikit/tooltip": "0.13.7",
|
|
46
|
-
"@snack-uikit/truncate-string": "0.4.
|
|
46
|
+
"@snack-uikit/truncate-string": "0.4.21-preview-8898cdde.0",
|
|
47
47
|
"@snack-uikit/utils": "3.3.0",
|
|
48
48
|
"classnames": "2.3.2",
|
|
49
49
|
"copy-to-clipboard": "3.3.3",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@snack-uikit/locale": "*"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "a0351f376ac28462b847d1bf99ad3f7ba7a1d0cd"
|
|
63
63
|
}
|