@synerise/ds-completed-within 0.6.32 → 0.7.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 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
+ ## [0.7.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@0.7.0...@synerise/ds-completed-within@0.7.1) (2024-09-11)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-completed-within
9
+
10
+
11
+
12
+
13
+
14
+ # [0.7.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@0.6.32...@synerise/ds-completed-within@0.7.0) (2024-09-03)
15
+
16
+
17
+ ### Features
18
+
19
+ * **storybook7:** added filter stories ([eb4f165](https://github.com/Synerise/synerise-design/commit/eb4f165077eac361d4c4e4deab48842edd191825))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.6.32](https://github.com/Synerise/synerise-design/compare/@synerise/ds-completed-within@0.6.31...@synerise/ds-completed-within@0.6.32) (2024-08-30)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-completed-within
@@ -1,18 +1,19 @@
1
- import * as React from 'react';
1
+ import type { ReactNode } from 'react';
2
+ import type { LiteralStringUnion } from '@synerise/ds-utils';
2
3
  export type CompletedWithinTexts = {
3
- clear: string | React.ReactNode;
4
- header: string | React.ReactNode;
5
- completedLabel: string | React.ReactNode;
6
- periodPlaceholder: string | React.ReactNode;
4
+ clear: ReactNode;
5
+ header: ReactNode;
6
+ completedLabel: ReactNode;
7
+ periodPlaceholder: ReactNode;
7
8
  };
8
- export type Period = 'SECONDS' | 'MINUTES' | 'HOURS' | 'DAYS' | 'MONTHS' | 'YEARS' | string | undefined;
9
+ export type Period = LiteralStringUnion<'SECONDS' | 'MINUTES' | 'HOURS' | 'DAYS' | 'MONTHS' | 'YEARS'> | undefined;
9
10
  export type CustomPeriod = {
10
11
  value: Period;
11
- label: string | React.ReactNode;
12
+ label: ReactNode;
12
13
  };
13
14
  export type PeriodValue = {
14
15
  period: Period;
15
- value: number | undefined;
16
+ value?: number;
16
17
  };
17
18
  export type CompletedWithinProps = {
18
19
  text?: CompletedWithinTexts;
@@ -20,7 +21,7 @@ export type CompletedWithinProps = {
20
21
  maxValue?: PeriodValue['value'];
21
22
  onSetValue: (value: PeriodValue) => void;
22
23
  periods?: CustomPeriod[];
23
- placeholder?: string | undefined;
24
+ placeholder?: string;
24
25
  tooltip?: string;
25
26
  readOnly?: boolean;
26
27
  };
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export { default } from './CompletedWithin';
2
+ export type { Period, PeriodValue, CustomPeriod, CompletedWithinProps, CompletedWithinTexts, } from './CompletedWithin.types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-completed-within",
3
- "version": "0.6.32",
3
+ "version": "0.7.1",
4
4
  "description": "CompletedWithin UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -33,14 +33,14 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-button": "^0.21.7",
37
- "@synerise/ds-dropdown": "^0.18.11",
38
- "@synerise/ds-icon": "^0.65.2",
39
- "@synerise/ds-input": "^0.24.1",
40
- "@synerise/ds-input-number": "^0.10.2",
41
- "@synerise/ds-select": "^0.16.13",
42
- "@synerise/ds-tooltip": "^0.14.37",
43
- "@synerise/ds-utils": "^0.28.2",
36
+ "@synerise/ds-button": "^0.21.9",
37
+ "@synerise/ds-dropdown": "^0.18.13",
38
+ "@synerise/ds-icon": "^0.65.4",
39
+ "@synerise/ds-input": "^0.24.3",
40
+ "@synerise/ds-input-number": "^0.10.4",
41
+ "@synerise/ds-select": "^0.16.15",
42
+ "@synerise/ds-tooltip": "^0.14.39",
43
+ "@synerise/ds-utils": "^0.29.1",
44
44
  "react-intl": "3.12.0"
45
45
  },
46
46
  "peerDependencies": {
@@ -49,5 +49,5 @@
49
49
  "react": ">=16.9.0 <= 17.0.2",
50
50
  "styled-components": "5.0.1"
51
51
  },
52
- "gitHead": "d5df67eecdc1cbcb56def8c17d04b7d883876fbf"
52
+ "gitHead": "fcf3fa64e906cf9fefb37a61ee28218c8eed9b73"
53
53
  }