@synerise/ds-time-picker 0.6.3 → 0.6.7

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,42 @@
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.6.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-time-picker@0.6.6...@synerise/ds-time-picker@0.6.7) (2022-01-17)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-time-picker
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.6.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-time-picker@0.6.5...@synerise/ds-time-picker@0.6.6) (2021-12-29)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-time-picker
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.6.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-time-picker@0.6.4...@synerise/ds-time-picker@0.6.5) (2021-12-22)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **time-picker:** _.range, because [...array] transpiles to [].concat ([c475433](https://github.com/Synerise/synerise-design/commit/c475433cfcac69b54c0ce2fa3c812cab3f947c9c))
28
+ * **time-picker:** update component ([2fb6363](https://github.com/Synerise/synerise-design/commit/2fb6363641f149135118b7b656c5e548925aeae0))
29
+
30
+
31
+
32
+
33
+
34
+ ## [0.6.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-time-picker@0.6.3...@synerise/ds-time-picker@0.6.4) (2021-11-23)
35
+
36
+ **Note:** Version bump only for package @synerise/ds-time-picker
37
+
38
+
39
+
40
+
41
+
6
42
  ## [0.6.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-time-picker@0.6.2...@synerise/ds-time-picker@0.6.3) (2021-11-22)
7
43
 
8
44
  **Note:** Version bump only for package @synerise/ds-time-picker
@@ -2,6 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import * as React from 'react';
4
4
  import dayjs from 'dayjs';
5
+ import { range } from 'lodash';
5
6
  import Icon, { ClockM, Close3S } from '@synerise/ds-icon';
6
7
  import Dropdown from '@synerise/ds-dropdown';
7
8
  import Tooltip from '@synerise/ds-tooltip/dist/Tooltip';
@@ -64,17 +65,17 @@ var TimePicker = function TimePicker(_ref) {
64
65
  }, [value]);
65
66
  var unitConfig = [{
66
67
  unit: 'hour',
67
- options: use12HourClock ? [].concat(Array(13).keys()) : [].concat(Array(24).keys()),
68
+ options: use12HourClock ? range(12 + 1) : range(24),
68
69
  disabled: disabledHours,
69
70
  insertSeperator: true
70
71
  }, {
71
72
  unit: 'minute',
72
- options: [].concat(Array(60).keys()),
73
+ options: range(60),
73
74
  disabled: disabledMinutes,
74
75
  insertSeperator: true
75
76
  }, {
76
77
  unit: 'second',
77
- options: [].concat(Array(60).keys()),
78
+ options: range(60),
78
79
  disabled: disabledSeconds,
79
80
  insertSeperator: !!use12HourClock
80
81
  }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-time-picker",
3
- "version": "0.6.3",
3
+ "version": "0.6.7",
4
4
  "description": "TimePicker UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -32,10 +32,10 @@
32
32
  ],
33
33
  "types": "dist/index.d.ts",
34
34
  "dependencies": {
35
- "@synerise/ds-dropdown": "^0.17.3",
36
- "@synerise/ds-icon": "^0.46.2",
37
- "@synerise/ds-input": "^0.18.2",
38
- "@synerise/ds-search-bar": "^0.5.2",
35
+ "@synerise/ds-dropdown": "^0.17.7",
36
+ "@synerise/ds-icon": "^0.47.0",
37
+ "@synerise/ds-input": "^0.18.4",
38
+ "@synerise/ds-search-bar": "^0.5.5",
39
39
  "@synerise/ds-typography": "^0.12.2",
40
40
  "dayjs": "^1.8.19",
41
41
  "debounce": "^1.2.0"
@@ -47,5 +47,5 @@
47
47
  "devDependencies": {
48
48
  "@types/debounce": "^1.2.0"
49
49
  },
50
- "gitHead": "2468359677783819939fb9f1ef5acc36667ecd1a"
50
+ "gitHead": "56c08eca6e2a1e41b8a39e28a9ec657ac1bdec83"
51
51
  }