@synerise/ds-completed-within 1.0.38 → 1.1.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/CHANGELOG.md +19 -0
- package/dist/CompleteWithin.styles.d.ts +56 -3
- package/dist/CompletedWithin.js +12 -12
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@1.0.39...@synerise/ds-completed-within@1.1.0) (2025-11-06)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **dropdown:** dropdownMenu component ([f0ec827](https://github.com/Synerise/synerise-design/commit/f0ec82792cdcb021fa9a454912f6e7a892e53895))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [1.0.39](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@1.0.38...@synerise/ds-completed-within@1.0.39) (2025-10-31)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-completed-within
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [1.0.38](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@1.0.37...@synerise/ds-completed-within@1.0.38) (2025-10-22)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-completed-within
|
|
@@ -1,6 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const TriggerButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<Partial<{
|
|
2
|
+
href: string;
|
|
3
|
+
target?: string;
|
|
4
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
5
|
+
} & import("antd/lib/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<any>, "type" | "onClick"> & {
|
|
6
|
+
htmlType?: import("antd/lib/button/button").ButtonHTMLType;
|
|
7
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
8
|
+
} & Omit<import("react").ButtonHTMLAttributes<any>, "type" | "onClick">>, "type" | "ghost"> & {
|
|
9
|
+
type?: import("@synerise/ds-utils").LiteralStringUnion<import("@synerise/ds-button/dist/Button.types").ButtonType>;
|
|
10
|
+
mode?: import("@synerise/ds-utils").LiteralStringUnion<"single-icon" | "split" | "two-icons" | "label-icon" | "icon-label">;
|
|
11
|
+
color?: import("@synerise/ds-utils").LiteralStringUnion<"blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet">;
|
|
12
|
+
groupVariant?: import("@synerise/ds-utils").LiteralStringUnion<"left-rounded" | "squared" | "right-rounded">;
|
|
13
|
+
justifyContent?: string;
|
|
14
|
+
loading?: boolean | {
|
|
15
|
+
delay?: number;
|
|
16
|
+
};
|
|
17
|
+
onClick?: (event: import("react").MouseEvent<HTMLElement>) => void;
|
|
18
|
+
iconColor?: import("@synerise/ds-utils").LiteralStringUnion<"blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet">;
|
|
19
|
+
error?: boolean;
|
|
20
|
+
readOnly?: boolean;
|
|
21
|
+
tagProps?: import("@synerise/ds-tag").TagProps;
|
|
22
|
+
tooltipProps?: import("@synerise/ds-tooltip").TooltipProps;
|
|
23
|
+
} & import("react").RefAttributes<HTMLButtonElement>> & {
|
|
24
|
+
Creator: import("react").ForwardRefExoticComponent<Omit<import("@synerise/ds-button").CreatorProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
Expander: ({ size, expanded, disabled, onClick, className, }: import("@synerise/ds-button").ExpanderProps) => import("react").JSX.Element;
|
|
26
|
+
Star: (props: import("@synerise/ds-button").StarButtonProps) => React.ReactElement;
|
|
27
|
+
Checkbox: (props: import("@synerise/ds-button").CheckboxButtonProps) => React.ReactElement;
|
|
28
|
+
}, any, {}, never>;
|
|
29
|
+
export declare const ClearButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<Partial<{
|
|
30
|
+
href: string;
|
|
31
|
+
target?: string;
|
|
32
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
33
|
+
} & import("antd/lib/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<any>, "type" | "onClick"> & {
|
|
34
|
+
htmlType?: import("antd/lib/button/button").ButtonHTMLType;
|
|
35
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
36
|
+
} & Omit<import("react").ButtonHTMLAttributes<any>, "type" | "onClick">>, "type" | "ghost"> & {
|
|
37
|
+
type?: import("@synerise/ds-utils").LiteralStringUnion<import("@synerise/ds-button/dist/Button.types").ButtonType>;
|
|
38
|
+
mode?: import("@synerise/ds-utils").LiteralStringUnion<"single-icon" | "split" | "two-icons" | "label-icon" | "icon-label">;
|
|
39
|
+
color?: import("@synerise/ds-utils").LiteralStringUnion<"blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet">;
|
|
40
|
+
groupVariant?: import("@synerise/ds-utils").LiteralStringUnion<"left-rounded" | "squared" | "right-rounded">;
|
|
41
|
+
justifyContent?: string;
|
|
42
|
+
loading?: boolean | {
|
|
43
|
+
delay?: number;
|
|
44
|
+
};
|
|
45
|
+
onClick?: (event: import("react").MouseEvent<HTMLElement>) => void;
|
|
46
|
+
iconColor?: import("@synerise/ds-utils").LiteralStringUnion<"blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet">;
|
|
47
|
+
error?: boolean;
|
|
48
|
+
readOnly?: boolean;
|
|
49
|
+
tagProps?: import("@synerise/ds-tag").TagProps;
|
|
50
|
+
tooltipProps?: import("@synerise/ds-tooltip").TooltipProps;
|
|
51
|
+
} & import("react").RefAttributes<HTMLButtonElement>> & {
|
|
52
|
+
Creator: import("react").ForwardRefExoticComponent<Omit<import("@synerise/ds-button").CreatorProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
53
|
+
Expander: ({ size, expanded, disabled, onClick, className, }: import("@synerise/ds-button").ExpanderProps) => import("react").JSX.Element;
|
|
54
|
+
Star: (props: import("@synerise/ds-button").StarButtonProps) => React.ReactElement;
|
|
55
|
+
Checkbox: (props: import("@synerise/ds-button").CheckboxButtonProps) => React.ReactElement;
|
|
56
|
+
}, any, {}, never>;
|
|
4
57
|
export declare const CompletedWithinWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
5
58
|
withValue: boolean;
|
|
6
59
|
readOnly?: boolean;
|
package/dist/CompletedWithin.js
CHANGED
|
@@ -58,17 +58,17 @@ var CompletedWithin = function CompletedWithin(_ref) {
|
|
|
58
58
|
innerPeriod = _useState2[0],
|
|
59
59
|
setInnerPeriod = _useState2[1];
|
|
60
60
|
var _useState3 = useState(false),
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
tooltipOpen = _useState3[0],
|
|
62
|
+
setTooltipOpen = _useState3[1];
|
|
63
63
|
var _useState4 = useState(false),
|
|
64
|
-
|
|
64
|
+
settingsOpen = _useState4[0],
|
|
65
65
|
setSettingsVisible = _useState4[1];
|
|
66
66
|
var hasValue = useMemo(function () {
|
|
67
67
|
return value.value !== undefined && value.value > 0;
|
|
68
68
|
}, [value]);
|
|
69
|
-
var
|
|
69
|
+
var handleOpenChange = useCallback(function (visible) {
|
|
70
70
|
setSettingsVisible(visible);
|
|
71
|
-
|
|
71
|
+
setTooltipOpen(false);
|
|
72
72
|
if (!visible && innerValue && innerPeriod) {
|
|
73
73
|
var newValue = maxValue && maxValue < Number(innerValue) ? maxValue : innerValue;
|
|
74
74
|
onSetValue({
|
|
@@ -101,8 +101,8 @@ var CompletedWithin = function CompletedWithin(_ref) {
|
|
|
101
101
|
type: "largeSimple",
|
|
102
102
|
description: tooltip,
|
|
103
103
|
trigger: ['hover'],
|
|
104
|
-
onVisibleChange:
|
|
105
|
-
visible: !
|
|
104
|
+
onVisibleChange: setTooltipOpen,
|
|
105
|
+
visible: !settingsOpen && tooltipOpen
|
|
106
106
|
}, /*#__PURE__*/React.createElement(S.TriggerButton, {
|
|
107
107
|
"data-testid": "completed-within-trigger",
|
|
108
108
|
readOnly: readOnly,
|
|
@@ -129,12 +129,12 @@ var CompletedWithin = function CompletedWithin(_ref) {
|
|
|
129
129
|
periods: getPeriods
|
|
130
130
|
}),
|
|
131
131
|
trigger: ['click'],
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
open: settingsOpen,
|
|
133
|
+
onOpenChange: handleOpenChange,
|
|
134
134
|
placement: "topLeft",
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
size: 238,
|
|
136
|
+
popoverProps: {
|
|
137
|
+
testId: 'completed-within'
|
|
138
138
|
}
|
|
139
139
|
}, trigger), hasValue && !readOnly && /*#__PURE__*/React.createElement(Tooltip, {
|
|
140
140
|
title: texts.clear
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-completed-within",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "CompletedWithin UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-button": "^1.
|
|
39
|
-
"@synerise/ds-dropdown": "^1.0
|
|
40
|
-
"@synerise/ds-icon": "^1.
|
|
41
|
-
"@synerise/ds-input": "^1.
|
|
42
|
-
"@synerise/ds-input-number": "^1.2.
|
|
43
|
-
"@synerise/ds-select": "^1.
|
|
44
|
-
"@synerise/ds-tooltip": "^1.
|
|
38
|
+
"@synerise/ds-button": "^1.5.0",
|
|
39
|
+
"@synerise/ds-dropdown": "^1.1.0",
|
|
40
|
+
"@synerise/ds-icon": "^1.8.0",
|
|
41
|
+
"@synerise/ds-input": "^1.5.0",
|
|
42
|
+
"@synerise/ds-input-number": "^1.2.15",
|
|
43
|
+
"@synerise/ds-select": "^1.3.0",
|
|
44
|
+
"@synerise/ds-tooltip": "^1.3.0",
|
|
45
45
|
"@synerise/ds-utils": "^1.5.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
52
52
|
"styled-components": "^5.3.3"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "cbbb7d9f155735bcc4035d8fd8a7813878d6e051"
|
|
55
55
|
}
|