@synerise/ds-completed-within 0.5.69 → 0.5.71
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
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
|
+
## [0.5.71](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@0.5.70...@synerise/ds-completed-within@0.5.71) (2023-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-completed-within
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.5.70](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@0.5.69...@synerise/ds-completed-within@0.5.70) (2023-10-02)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-completed-within
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.5.69](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@0.5.68...@synerise/ds-completed-within@0.5.69) (2023-09-26)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-completed-within
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type CompletedWithinTexts = {
|
|
3
3
|
clear: string | React.ReactNode;
|
|
4
4
|
header: string | React.ReactNode;
|
|
5
5
|
completedLabel: string | React.ReactNode;
|
|
6
6
|
periodPlaceholder: string | React.ReactNode;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
9
|
-
export
|
|
8
|
+
export type Period = 'SECONDS' | 'MINUTES' | 'HOURS' | 'DAYS' | 'MONTHS' | 'YEARS' | string | undefined;
|
|
9
|
+
export type CustomPeriod = {
|
|
10
10
|
value: Period;
|
|
11
11
|
label: string | React.ReactNode;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type PeriodValue = {
|
|
14
14
|
period: Period;
|
|
15
15
|
value: number | undefined;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type CompletedWithinProps = {
|
|
18
18
|
text?: CompletedWithinTexts;
|
|
19
19
|
value: PeriodValue;
|
|
20
20
|
maxValue?: PeriodValue['value'];
|
|
@@ -26,8 +26,7 @@ var Settings = function Settings(_ref) {
|
|
|
26
26
|
}), /*#__PURE__*/React.createElement(Select, {
|
|
27
27
|
size: 'default',
|
|
28
28
|
value: value.period,
|
|
29
|
-
placeholder: text.periodPlaceholder //
|
|
30
|
-
// @ts-ignore
|
|
29
|
+
placeholder: text.periodPlaceholder // @ts-ignore
|
|
31
30
|
,
|
|
32
31
|
onChange: function onChange(option) {
|
|
33
32
|
onPeriodChange(option);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import InputNumber from '@synerise/ds-input-number';
|
|
3
3
|
import { CompletedWithinProps, CompletedWithinTexts, CustomPeriod, Period, PeriodValue } from '../CompletedWithin.types';
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
type InputProps = React.ComponentProps<typeof InputNumber>;
|
|
5
|
+
export type SettingsProps = Omit<CompletedWithinProps, 'onClear' | 'onSetValue' | 'periods' | 'text'> & {
|
|
6
6
|
onValueChange: InputProps['onChange'];
|
|
7
7
|
onPeriodChange: (period: Period) => void;
|
|
8
8
|
periods: CustomPeriod[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-completed-within",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.71",
|
|
4
4
|
"description": "CompletedWithin UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-button": "^0.18.
|
|
36
|
-
"@synerise/ds-dropdown": "^0.17.
|
|
37
|
-
"@synerise/ds-icon": "^0.58.
|
|
38
|
-
"@synerise/ds-input": "^0.19.
|
|
39
|
-
"@synerise/ds-input-number": "^0.8.
|
|
40
|
-
"@synerise/ds-select": "^0.15.
|
|
41
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
35
|
+
"@synerise/ds-button": "^0.18.3",
|
|
36
|
+
"@synerise/ds-dropdown": "^0.17.82",
|
|
37
|
+
"@synerise/ds-icon": "^0.58.3",
|
|
38
|
+
"@synerise/ds-input": "^0.19.3",
|
|
39
|
+
"@synerise/ds-input-number": "^0.8.25",
|
|
40
|
+
"@synerise/ds-select": "^0.15.21",
|
|
41
|
+
"@synerise/ds-tooltip": "^0.14.5",
|
|
42
42
|
"react-intl": "3.12.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"styled-components": "5.0.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@synerise/ds-utils": "^0.24.
|
|
51
|
+
"@synerise/ds-utils": "^0.24.17",
|
|
52
52
|
"@testing-library/jest-dom": "5.1.1",
|
|
53
53
|
"@testing-library/user-event": "^10.3.1"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "d944339a738211d8f74b27360481aafd7ef51ddd"
|
|
56
56
|
}
|