@synerise/ds-time-picker 1.1.13 → 1.1.15
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 +16 -0
- package/dist/TimePicker.styles.d.ts +7 -7
- package/dist/utils/timePicker.utils.js +4 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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
|
+
## [1.1.15](https://github.com/Synerise/synerise-design/compare/@synerise/ds-time-picker@1.1.14...@synerise/ds-time-picker@1.1.15) (2025-08-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-time-picker
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.1.14](https://github.com/Synerise/synerise-design/compare/@synerise/ds-time-picker@1.1.13...@synerise/ds-time-picker@1.1.14) (2025-07-24)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-time-picker
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [1.1.13](https://github.com/Synerise/synerise-design/compare/@synerise/ds-time-picker@1.1.12...@synerise/ds-time-picker@1.1.13) (2025-07-17)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-time-picker
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
export declare const Dropdown: import("styled-components").StyledComponent<import("react").ComponentType<import("@synerise/ds-dropdown").DropdownProps> & {
|
|
3
|
-
Wrapper: import("
|
|
4
|
-
SearchInput: ({ value, className, onSearchChange, onClearInput, placeholder, iconLeft, autofocus, clearTooltip, disabled, borderRadius, handleInputRef, autofocusDelay, clearTooltipProps, valuePrefix, ...htmlAttributes }: import("@synerise/ds-search-bar").SearchBarProps) =>
|
|
5
|
-
BottomAction: ({ onClickAction, children, style, icon, ...rest }: import("@synerise/ds-dropdown/dist/elements/BottomAction/BottomAction.types").Props) =>
|
|
6
|
-
BackAction: ({ label, onClick, tooltip, tooltipProps }: import("@synerise/ds-dropdown/dist/elements/BackAction/BackAction.types").Props) =>
|
|
3
|
+
Wrapper: typeof import("@synerise/ds-dropdown/dist/Dropdown.styles").Wrapper;
|
|
4
|
+
SearchInput: ({ value, className, onSearchChange, onClearInput, placeholder, iconLeft, autofocus, clearTooltip, disabled, borderRadius, handleInputRef, autofocusDelay, clearTooltipProps, valuePrefix, ...htmlAttributes }: import("@synerise/ds-search-bar").SearchBarProps) => React.JSX.Element;
|
|
5
|
+
BottomAction: ({ onClickAction, children, style, icon, ...rest }: import("@synerise/ds-dropdown/dist/elements/BottomAction/BottomAction.types").Props) => React.JSX.Element;
|
|
6
|
+
BackAction: ({ label, onClick, tooltip, tooltipProps }: import("@synerise/ds-dropdown/dist/elements/BackAction/BackAction.types").Props) => React.JSX.Element;
|
|
7
7
|
Button: import("react").ComponentClass<import("antd/lib/dropdown").DropdownButtonProps, any> | import("react").FunctionComponent<import("antd/lib/dropdown").DropdownButtonProps>;
|
|
8
8
|
TextTrigger: import("react").FC<import("@synerise/ds-dropdown/dist/elements/TextTrigger/TextTrigger.types").TextTriggerProps>;
|
|
9
9
|
}, any, {
|
|
@@ -15,10 +15,10 @@ export declare const Unit: import("styled-components").StyledComponent<"div", an
|
|
|
15
15
|
export declare const UnitSeperator: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
16
|
export declare const CellText: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
17
17
|
export declare const Cell: import("styled-components").StyledComponent<"button", any, {
|
|
18
|
-
active?: boolean
|
|
18
|
+
active?: boolean;
|
|
19
19
|
}, never>;
|
|
20
|
-
export declare const ClearIcon: import("styled-components").StyledComponent<({ name, component, className, ...rest }: import("@synerise/ds-icon").IconProps) =>
|
|
21
|
-
export declare const TimePickerInput: import("styled-components").StyledComponent<({ className, errorText, label, description, counterLimit, tooltip, tooltipConfig, icon1, icon1Tooltip, autoResize, icon2, icon2Tooltip, resetMargin, handleInputRef, prefixel, suffixel, error, expandable, expandableTooltip, renderCustomCounter, autoResizeProps, ...antdInputProps }: import("@synerise/ds-input").InputProps) =>
|
|
20
|
+
export declare const ClearIcon: import("styled-components").StyledComponent<({ name, component, className, ...rest }: import("@synerise/ds-icon").IconProps) => React.JSX.Element, any, {}, never>;
|
|
21
|
+
export declare const TimePickerInput: import("styled-components").StyledComponent<({ className, errorText, label, description, counterLimit, tooltip, tooltipConfig, icon1, icon1Tooltip, autoResize, icon2, icon2Tooltip, resetMargin, handleInputRef, prefixel, suffixel, error, expandable, expandableTooltip, renderCustomCounter, autoResizeProps, ...antdInputProps }: import("@synerise/ds-input").InputProps) => React.JSX.Element, any, {}, never>;
|
|
22
22
|
export declare const PlaceholderWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
23
23
|
export declare const Placeholder: import("styled-components").StyledComponent<"div", any, {
|
|
24
24
|
height: number;
|
|
@@ -7,6 +7,7 @@ export var handleTimeChange = function handleTimeChange(value, unit, newValue, c
|
|
|
7
7
|
var wasUndefined = value === undefined;
|
|
8
8
|
var dateBuilder = dayjs(value);
|
|
9
9
|
if (unit) {
|
|
10
|
+
// @ts-expect-error - `unit` const maps to dayjs method
|
|
10
11
|
dateBuilder = dateBuilder[unit](newValue);
|
|
11
12
|
}
|
|
12
13
|
var hourToMap = dateBuilder.get(HOUR);
|
|
@@ -20,7 +21,9 @@ export var handleTimeChange = function handleTimeChange(value, unit, newValue, c
|
|
|
20
21
|
// set remaining time fields to 0, HH:00:00, 00:mm:00, 00:00:ss
|
|
21
22
|
unitConfig.filter(function (unitDefinition) {
|
|
22
23
|
return unitDefinition.unit !== unit;
|
|
23
|
-
}).forEach(
|
|
24
|
+
}).forEach(
|
|
25
|
+
// @ts-expect-error - `unit` const maps to dayjs method
|
|
26
|
+
function (unitDefinition) {
|
|
24
27
|
return dateBuilder = dateBuilder[unitDefinition.unit](0);
|
|
25
28
|
});
|
|
26
29
|
if (use12HourClock && clockMode === PM && unit !== HOUR) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-time-picker",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.15",
|
|
4
4
|
"description": "TimePicker UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-data-format": "^1.0
|
|
38
|
-
"@synerise/ds-dropdown": "^1.0.
|
|
39
|
-
"@synerise/ds-icon": "^1.
|
|
40
|
-
"@synerise/ds-input": "^1.3.
|
|
41
|
-
"@synerise/ds-scrollbar": "^1.1.
|
|
42
|
-
"@synerise/ds-tooltip": "^1.1.
|
|
43
|
-
"@synerise/ds-typography": "^1.0.
|
|
44
|
-
"@synerise/ds-utils": "^1.
|
|
37
|
+
"@synerise/ds-data-format": "^1.1.0",
|
|
38
|
+
"@synerise/ds-dropdown": "^1.0.20",
|
|
39
|
+
"@synerise/ds-icon": "^1.7.0",
|
|
40
|
+
"@synerise/ds-input": "^1.3.7",
|
|
41
|
+
"@synerise/ds-scrollbar": "^1.1.6",
|
|
42
|
+
"@synerise/ds-tooltip": "^1.1.16",
|
|
43
|
+
"@synerise/ds-typography": "^1.0.18",
|
|
44
|
+
"@synerise/ds-utils": "^1.4.0",
|
|
45
45
|
"dayjs": "^1.8.19",
|
|
46
46
|
"debounce": "^1.2.0",
|
|
47
47
|
"lodash": "^4.17.21"
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
54
54
|
"styled-components": "^5.3.3"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "408d73cc145b6c8c61f3e70dce05badf3ad1ffde"
|
|
57
57
|
}
|