@synerise/ds-date-range-picker 0.26.0 → 0.26.2

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,28 @@
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.26.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@0.26.1...@synerise/ds-date-range-picker@0.26.2) (2023-12-13)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **button:** creator block styles fixed ([2ecef7c](https://github.com/Synerise/synerise-design/commit/2ecef7ce5bd12b9b6d3c52b913b66852babfa15d))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.26.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@0.26.0...@synerise/ds-date-range-picker@0.26.1) (2023-12-11)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **date-range-picker:** adds translationKey for lifetime option ([3c6764c](https://github.com/Synerise/synerise-design/commit/3c6764c937c29a6e0d52ca7a78e80d6ab70e7119))
23
+
24
+
25
+
26
+
27
+
6
28
  # [0.26.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-range-picker@0.25.5...@synerise/ds-date-range-picker@0.26.0) (2023-12-06)
7
29
 
8
30
 
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import Button from '@synerise/ds-button';
3
2
  import ContentItem from '@synerise/ds-manageable-list/dist/Item/ContentItem/ContentItem';
4
3
  import Badge from '@synerise/ds-badge';
5
4
  import Icon, { CloseS, FilterM } from '@synerise/ds-icon';
@@ -16,7 +15,7 @@ var RangeFilterStatus = function RangeFilterStatus(_ref) {
16
15
  _onClick = _ref.onClick,
17
16
  texts = _ref.texts;
18
17
  var intl = useIntl();
19
- return /*#__PURE__*/React.createElement(S.Container, null, /*#__PURE__*/React.createElement(S.Title, null, texts == null ? void 0 : texts.filter), !filter ? /*#__PURE__*/React.createElement(Button.Creator, {
18
+ return /*#__PURE__*/React.createElement(S.Container, null, /*#__PURE__*/React.createElement(S.Title, null, texts == null ? void 0 : texts.filter), !filter ? /*#__PURE__*/React.createElement(S.CreatorButton, {
20
19
  label: label,
21
20
  disabled: disabled,
22
21
  onClick: _onClick,
@@ -1,4 +1,5 @@
1
1
  export declare const BadgeWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  export declare const Title: import("styled-components").StyledComponent<"h3", any, {}, never>;
3
3
  export declare const SuffixText: import("styled-components").StyledComponent<"span", any, {}, never>;
4
+ export declare const CreatorButton: import("styled-components").StyledComponent<({ onClick, disabled, label, block, status, className }: import("@synerise/ds-button/dist/Creator/Creator.types").CreatorProps) => JSX.Element, any, {}, never>;
4
5
  export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,4 +1,5 @@
1
1
  import styled from 'styled-components';
2
+ import Button from '@synerise/ds-button';
2
3
  export var BadgeWrapper = styled.div.withConfig({
3
4
  displayName: "RangeFilterStatusstyles__BadgeWrapper",
4
5
  componentId: "sc-1ei851t-0"
@@ -15,7 +16,11 @@ export var SuffixText = styled.span.withConfig({
15
16
  })(["color:", ";font-weight:500;margin-right:16px;"], function (props) {
16
17
  return props.theme.palette['blue-600'];
17
18
  });
19
+ export var CreatorButton = styled(Button.Creator).withConfig({
20
+ displayName: "RangeFilterStatusstyles__CreatorButton",
21
+ componentId: "sc-1ei851t-3"
22
+ })(["&&&{justify-content:flex-start;}"]);
18
23
  export var Container = styled.div.withConfig({
19
24
  displayName: "RangeFilterStatusstyles__Container",
20
- componentId: "sc-1ei851t-3"
25
+ componentId: "sc-1ei851t-4"
21
26
  })(["padding:16px 24px 24px;"]);
@@ -36,7 +36,8 @@ export function defaultValueTransformer(value) {
36
36
 
37
37
  if (value.key === 'ALL_TIME' || isLifetime(value)) {
38
38
  return _objectSpread({
39
- type: 'ABSOLUTE'
39
+ type: 'ABSOLUTE',
40
+ translationKey: translationKey
40
41
  }, filter ? {
41
42
  filter: filter
42
43
  } : {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-date-range-picker",
3
- "version": "0.26.0",
3
+ "version": "0.26.2",
4
4
  "description": "Date-Range-Picker UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -18,7 +18,7 @@
18
18
  "scripts": {
19
19
  "build": "npm run build:js && npm run build:css && npm run defs",
20
20
  "build:css": "node ../../../scripts/style/less.js",
21
- "build:js": "babel --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
21
+ "build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
22
22
  "build:watch": "npm run build:js -- --watch",
23
23
  "defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
24
24
  "pack:ci": "npm pack --pack-destination ../../portal/storybook-static/static",
@@ -34,25 +34,25 @@
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
36
  "@date-fns/upgrade": "^1.0.3",
37
- "@synerise/ds-badge": "^0.6.44",
38
- "@synerise/ds-button": "^0.18.7",
39
- "@synerise/ds-button-group": "^0.6.35",
40
- "@synerise/ds-data-format": "^0.4.4",
41
- "@synerise/ds-date-picker": "^0.10.27",
42
- "@synerise/ds-dropdown": "^0.17.89",
43
- "@synerise/ds-icon": "^0.58.7",
44
- "@synerise/ds-inline-edit": "^0.6.89",
45
- "@synerise/ds-input": "^0.19.10",
46
- "@synerise/ds-input-number": "^0.8.31",
47
- "@synerise/ds-manageable-list": "^0.26.19",
48
- "@synerise/ds-menu": "^0.18.6",
49
- "@synerise/ds-scrollbar": "^0.6.13",
50
- "@synerise/ds-select": "^0.15.28",
51
- "@synerise/ds-slider": "^0.13.7",
52
- "@synerise/ds-tags": "^0.8.23",
53
- "@synerise/ds-time-picker": "^0.9.6",
54
- "@synerise/ds-tooltip": "^0.14.11",
55
- "@synerise/ds-utils": "^0.24.21",
37
+ "@synerise/ds-badge": "^0.6.46",
38
+ "@synerise/ds-button": "^0.18.9",
39
+ "@synerise/ds-button-group": "^0.6.37",
40
+ "@synerise/ds-data-format": "^0.4.6",
41
+ "@synerise/ds-date-picker": "^0.10.29",
42
+ "@synerise/ds-dropdown": "^0.17.91",
43
+ "@synerise/ds-icon": "^0.58.9",
44
+ "@synerise/ds-inline-edit": "^0.6.91",
45
+ "@synerise/ds-input": "^0.19.12",
46
+ "@synerise/ds-input-number": "^0.8.33",
47
+ "@synerise/ds-manageable-list": "^0.26.21",
48
+ "@synerise/ds-menu": "^0.18.8",
49
+ "@synerise/ds-scrollbar": "^0.7.0",
50
+ "@synerise/ds-select": "^0.15.30",
51
+ "@synerise/ds-slider": "^0.13.9",
52
+ "@synerise/ds-tags": "^0.8.25",
53
+ "@synerise/ds-time-picker": "^0.9.8",
54
+ "@synerise/ds-tooltip": "^0.14.13",
55
+ "@synerise/ds-utils": "^0.24.23",
56
56
  "date-fns": "^2.16.1",
57
57
  "dayjs": "^1.8.35",
58
58
  "lodash": "^4.17.20",
@@ -73,5 +73,5 @@
73
73
  "@testing-library/user-event": "^10.3.1",
74
74
  "@types/ramda": "^0.28.23"
75
75
  },
76
- "gitHead": "b5c243a1f88351e9bc0185d35fc35ea3673dab89"
76
+ "gitHead": "76edb4723a30c59f1a54f666f66fcd814de0af70"
77
77
  }