@snack-uikit/fields 0.52.1-preview-0aba136f.0 → 0.52.1
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/CHANGELOG.md +13 -0
- package/README.md +2 -3
- package/dist/cjs/components/FieldTime/FieldTime.d.ts +0 -2
- package/dist/cjs/components/FieldTime/FieldTime.js +3 -5
- package/dist/esm/components/FieldTime/FieldTime.d.ts +0 -2
- package/dist/esm/components/FieldTime/FieldTime.js +2 -2
- package/package.json +7 -7
- package/src/components/FieldTime/FieldTime.tsx +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 0.52.1 (2026-03-11)
|
|
7
|
+
|
|
8
|
+
### Only dependencies have been changed
|
|
9
|
+
* [@snack-uikit/calendar@0.13.16]($PUBLIC_PROJECT_URL/blob/master/packages/calendar/CHANGELOG.md)
|
|
10
|
+
* [@snack-uikit/list@0.32.15]($PUBLIC_PROJECT_URL/blob/master/packages/list/CHANGELOG.md)
|
|
11
|
+
* [@snack-uikit/scroll@0.10.8]($PUBLIC_PROJECT_URL/blob/master/packages/scroll/CHANGELOG.md)
|
|
12
|
+
* [@snack-uikit/slider@0.3.34]($PUBLIC_PROJECT_URL/blob/master/packages/slider/CHANGELOG.md)
|
|
13
|
+
* [@snack-uikit/tag@0.15.16]($PUBLIC_PROJECT_URL/blob/master/packages/tag/CHANGELOG.md)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
# 0.52.0 (2026-03-04)
|
|
7
20
|
|
|
8
21
|
|
package/README.md
CHANGED
|
@@ -907,7 +907,6 @@ FieldStepper в основном предназначен для работы с
|
|
|
907
907
|
| onCopyButtonClick | `() => void` | - | Колбек клика по кнопке Копировать для поля |
|
|
908
908
|
| showSeconds | `boolean` | true | Показывать ли секунды |
|
|
909
909
|
| showClearButton | `boolean` | true | Отображение кнопки Очистки поля |
|
|
910
|
-
| showCurrentButton | `boolean` | - | Показывать ли кнопку выбора текущего времени в таймпикере |
|
|
911
910
|
| id | `string` | - | Значение html-атрибута id |
|
|
912
911
|
| name | `string` | - | Значение html-атрибута name |
|
|
913
912
|
| disabled | `boolean` | - | Является ли поле деактивированным |
|
|
@@ -932,8 +931,8 @@ FieldStepper в основном предназначен для работы с
|
|
|
932
931
|
### Props
|
|
933
932
|
| name | type | default value | description |
|
|
934
933
|
|------|------|---------------|-------------|
|
|
935
|
-
| __@metadata@
|
|
936
|
-
| __@hasInstance@
|
|
934
|
+
| __@metadata@877* | `DecoratorMetadataObject` | - | |
|
|
935
|
+
| __@hasInstance@875* | `(value: any) => boolean` | - | Determines whether the given value inherits from this function if this function was used as a constructor function. A constructor function can control which objects are recognized as its instances by 'instanceof' by overriding this method. |
|
|
937
936
|
| name* | `string` | - | Returns the name of the function. Function names are read-only and can not be changed. |
|
|
938
937
|
| caller* | `Function` | - | |
|
|
939
938
|
| arguments* | `any` | - | |
|
|
@@ -24,8 +24,6 @@ type FieldTimeOwnProps = {
|
|
|
24
24
|
* @default true
|
|
25
25
|
*/
|
|
26
26
|
showClearButton?: boolean;
|
|
27
|
-
/** Показывать ли кнопку выбора текущего времени в таймпикере */
|
|
28
|
-
showCurrentButton?: boolean;
|
|
29
27
|
};
|
|
30
28
|
export type FieldTimeProps = WithSupportProps<FieldTimeOwnProps & InputProps & WrapperProps>;
|
|
31
29
|
export declare const FieldTime: import("react").ForwardRefExoticComponent<{
|
|
@@ -78,10 +78,9 @@ exports.FieldTime = (0, react_1.forwardRef)((_a, ref) => {
|
|
|
78
78
|
validationState = constants_1.VALIDATION_STATE.Default,
|
|
79
79
|
error,
|
|
80
80
|
onCopyButtonClick,
|
|
81
|
-
autoFocus
|
|
82
|
-
showCurrentButton
|
|
81
|
+
autoFocus
|
|
83
82
|
} = _a,
|
|
84
|
-
rest = __rest(_a, ["id", "name", "value", "disabled", "readonly", "showCopyButton", "showClearButton", "open", "onOpenChange", "onChange", "onFocus", "onBlur", "className", "label", "labelTooltip", "labelTooltipPlacement", "required", "caption", "hint", "showHintIcon", "showSeconds", "size", "validationState", "error", "onCopyButtonClick", "autoFocus"
|
|
83
|
+
rest = __rest(_a, ["id", "name", "value", "disabled", "readonly", "showCopyButton", "showClearButton", "open", "onOpenChange", "onChange", "onFocus", "onBlur", "className", "label", "labelTooltip", "labelTooltipPlacement", "required", "caption", "hint", "showHintIcon", "showSeconds", "size", "validationState", "error", "onCopyButtonClick", "autoFocus"]);
|
|
85
84
|
const [isOpen, setIsOpen] = (0, uncontrollable_1.useUncontrolledProp)(open, false, onOpenChange);
|
|
86
85
|
const localRef = (0, react_1.useRef)(null);
|
|
87
86
|
const clearButtonRef = (0, react_1.useRef)(null);
|
|
@@ -265,8 +264,7 @@ exports.FieldTime = (0, react_1.forwardRef)((_a, ref) => {
|
|
|
265
264
|
onFocusLeave: handleCalendarFocusLeave,
|
|
266
265
|
"data-test-id": 'field-time__timepicker',
|
|
267
266
|
fitToContainer: false,
|
|
268
|
-
showSeconds: showSeconds
|
|
269
|
-
showCurrentButton: showCurrentButton
|
|
267
|
+
showSeconds: showSeconds
|
|
270
268
|
}),
|
|
271
269
|
children: (0, jsx_runtime_1.jsx)(helperComponents_1.FieldContainerPrivate, {
|
|
272
270
|
className: styles_module_scss_1.default.container,
|
|
@@ -24,8 +24,6 @@ type FieldTimeOwnProps = {
|
|
|
24
24
|
* @default true
|
|
25
25
|
*/
|
|
26
26
|
showClearButton?: boolean;
|
|
27
|
-
/** Показывать ли кнопку выбора текущего времени в таймпикере */
|
|
28
|
-
showCurrentButton?: boolean;
|
|
29
27
|
};
|
|
30
28
|
export type FieldTimeProps = WithSupportProps<FieldTimeOwnProps & InputProps & WrapperProps>;
|
|
31
29
|
export declare const FieldTime: import("react").ForwardRefExoticComponent<{
|
|
@@ -40,7 +40,7 @@ const getStringTimeValue = (time, { showSeconds, locale }) => {
|
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
42
|
export const FieldTime = forwardRef((_a, ref) => {
|
|
43
|
-
var { id, name, value: valueProp, disabled = false, readonly = false, showCopyButton: showCopyButtonProp = true, showClearButton: showClearButtonProp = true, open, onOpenChange, onChange, onFocus, onBlur: onBlurProp, className, label, labelTooltip, labelTooltipPlacement, required = false, caption, hint, showHintIcon, showSeconds = true, size = SIZE.S, validationState = VALIDATION_STATE.Default, error, onCopyButtonClick, autoFocus
|
|
43
|
+
var { id, name, value: valueProp, disabled = false, readonly = false, showCopyButton: showCopyButtonProp = true, showClearButton: showClearButtonProp = true, open, onOpenChange, onChange, onFocus, onBlur: onBlurProp, className, label, labelTooltip, labelTooltipPlacement, required = false, caption, hint, showHintIcon, showSeconds = true, size = SIZE.S, validationState = VALIDATION_STATE.Default, error, onCopyButtonClick, autoFocus } = _a, rest = __rest(_a, ["id", "name", "value", "disabled", "readonly", "showCopyButton", "showClearButton", "open", "onOpenChange", "onChange", "onFocus", "onBlur", "className", "label", "labelTooltip", "labelTooltipPlacement", "required", "caption", "hint", "showHintIcon", "showSeconds", "size", "validationState", "error", "onCopyButtonClick", "autoFocus"]);
|
|
44
44
|
const [isOpen, setIsOpen] = useUncontrolledProp(open, false, onOpenChange);
|
|
45
45
|
const localRef = useRef(null);
|
|
46
46
|
const clearButtonRef = useRef(null);
|
|
@@ -157,5 +157,5 @@ export const FieldTime = forwardRef((_a, ref) => {
|
|
|
157
157
|
: {
|
|
158
158
|
open: showDropList,
|
|
159
159
|
onOpenChange: setIsOpen,
|
|
160
|
-
}), { content: _jsx(TimePicker, { size: size, value: valueProp, onChangeValue: handleSelectTime, navigationStartRef: navigationStartRef, onFocusLeave: handleCalendarFocusLeave, "data-test-id": 'field-time__timepicker', fitToContainer: false, showSeconds: showSeconds
|
|
160
|
+
}), { content: _jsx(TimePicker, { size: size, value: valueProp, onChangeValue: handleSelectTime, navigationStartRef: navigationStartRef, onFocusLeave: handleCalendarFocusLeave, "data-test-id": 'field-time__timepicker', fitToContainer: false, showSeconds: showSeconds }), children: _jsx(FieldContainerPrivate, { className: styles.container, size: size, validationState: fieldValidationState, disabled: disabled, readonly: readonly, variant: CONTAINER_VARIANT.SingleLine, focused: showDropList, inputRef: localRef, postfix: postfixButtons, children: _jsx(InputPrivate, { ref: mergeRefs(ref, localRef), "data-size": size, value: value || '', placeholder: mask, onChange: handleChange, onFocus: inputHandlers.onFocus, onMouseDown: inputHandlers.onMouseDown, onBlur: onBlur, onKeyDown: handleInputKeyDown, onClick: onClick, disabled: disabled, readonly: readonly, tabIndex: inputTabIndex, type: 'text', inputMode: 'numeric', id: id, name: name, autoFocus: autoFocus, "data-test-id": 'field-time__input' }) }) })) })));
|
|
161
161
|
});
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Fields",
|
|
7
|
-
"version": "0.52.1
|
|
7
|
+
"version": "0.52.1",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@snack-uikit/button": "0.19.17",
|
|
40
|
-
"@snack-uikit/calendar": "0.13.16
|
|
40
|
+
"@snack-uikit/calendar": "0.13.16",
|
|
41
41
|
"@snack-uikit/color-picker": "0.3.53",
|
|
42
42
|
"@snack-uikit/divider": "3.2.11",
|
|
43
43
|
"@snack-uikit/dropdown": "0.5.4",
|
|
44
44
|
"@snack-uikit/icons": "0.27.7",
|
|
45
45
|
"@snack-uikit/input-private": "4.8.8",
|
|
46
|
-
"@snack-uikit/list": "0.32.15
|
|
47
|
-
"@snack-uikit/scroll": "0.10.8
|
|
46
|
+
"@snack-uikit/list": "0.32.15",
|
|
47
|
+
"@snack-uikit/scroll": "0.10.8",
|
|
48
48
|
"@snack-uikit/skeleton": "0.6.10",
|
|
49
|
-
"@snack-uikit/slider": "0.3.34
|
|
50
|
-
"@snack-uikit/tag": "0.15.16
|
|
49
|
+
"@snack-uikit/slider": "0.3.34",
|
|
50
|
+
"@snack-uikit/tag": "0.15.16",
|
|
51
51
|
"@snack-uikit/tooltip": "0.18.10",
|
|
52
52
|
"@snack-uikit/truncate-string": "0.7.9",
|
|
53
53
|
"@snack-uikit/utils": "4.0.1",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@snack-uikit/locale": "*"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "08bc11a562baec889f73cfb3af56946ab5e668fb"
|
|
70
70
|
}
|
|
@@ -61,8 +61,6 @@ type FieldTimeOwnProps = {
|
|
|
61
61
|
* @default true
|
|
62
62
|
*/
|
|
63
63
|
showClearButton?: boolean;
|
|
64
|
-
/** Показывать ли кнопку выбора текущего времени в таймпикере */
|
|
65
|
-
showCurrentButton?: boolean;
|
|
66
64
|
};
|
|
67
65
|
|
|
68
66
|
export type FieldTimeProps = WithSupportProps<FieldTimeOwnProps & InputProps & WrapperProps>;
|
|
@@ -116,7 +114,6 @@ export const FieldTime = forwardRef<HTMLInputElement, FieldTimeProps>(
|
|
|
116
114
|
error,
|
|
117
115
|
onCopyButtonClick,
|
|
118
116
|
autoFocus,
|
|
119
|
-
showCurrentButton,
|
|
120
117
|
...rest
|
|
121
118
|
},
|
|
122
119
|
ref,
|
|
@@ -316,7 +313,6 @@ export const FieldTime = forwardRef<HTMLInputElement, FieldTimeProps>(
|
|
|
316
313
|
data-test-id='field-time__timepicker'
|
|
317
314
|
fitToContainer={false}
|
|
318
315
|
showSeconds={showSeconds}
|
|
319
|
-
showCurrentButton={showCurrentButton}
|
|
320
316
|
/>
|
|
321
317
|
}
|
|
322
318
|
>
|