@clayui/time-picker 3.37.0 → 3.42.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/lib/index.js +3 -3
- package/package.json +6 -6
- package/src/index.tsx +6 -5
- package/CHANGELOG.md +0 -174
package/lib/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
22
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
22
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
23
23
|
|
|
24
24
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
25
25
|
|
|
@@ -33,7 +33,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
33
33
|
|
|
34
34
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
35
35
|
|
|
36
|
-
function _iterableToArrayLimit(arr, i) {
|
|
36
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
37
37
|
|
|
38
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
39
|
|
|
@@ -289,7 +289,7 @@ var ClayTimePicker = function ClayTimePicker(_ref) {
|
|
|
289
289
|
value: values.hours
|
|
290
290
|
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
291
291
|
className: "clay-time-divider"
|
|
292
|
-
},
|
|
292
|
+
}, ":"), /*#__PURE__*/_react.default.createElement("input", {
|
|
293
293
|
"aria-label": ariaLabels.minutes,
|
|
294
294
|
className: (0, _classnames.default)('clay-time-minutes form-control-inset', {
|
|
295
295
|
focus: currentInputFocused.configName === TimeType.minutes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clayui/time-picker",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.42.0",
|
|
4
4
|
"description": "ClayTimePicker component",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"repository": "https://github.com/liferay/clay",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"react"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@clayui/button": "^3.
|
|
26
|
-
"@clayui/form": "^3.
|
|
27
|
-
"@clayui/icon": "^3.
|
|
28
|
-
"@clayui/shared": "^3.
|
|
25
|
+
"@clayui/button": "^3.40.0",
|
|
26
|
+
"@clayui/form": "^3.42.0",
|
|
27
|
+
"@clayui/icon": "^3.40.0",
|
|
28
|
+
"@clayui/shared": "^3.40.0",
|
|
29
29
|
"classnames": "^2.2.6"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"browserslist": [
|
|
37
37
|
"extends browserslist-config-clay"
|
|
38
38
|
],
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "5d343a75f2080a6c19997379cf28b8d430ca0b7e"
|
|
40
40
|
}
|
package/src/index.tsx
CHANGED
|
@@ -138,8 +138,7 @@ const DEFAULT_CONFIG = {
|
|
|
138
138
|
|
|
139
139
|
const ClayTimePicker: React.FunctionComponent<IProps> = ({
|
|
140
140
|
ariaLabels = {
|
|
141
|
-
ampm:
|
|
142
|
-
'Select time of day (AM/PM) using up (PM) and down (AM) arrow keys',
|
|
141
|
+
ampm: 'Select time of day (AM/PM) using up (PM) and down (AM) arrow keys',
|
|
143
142
|
clear: 'Delete the entered time',
|
|
144
143
|
hours: 'Enter the hour in 00:00 format',
|
|
145
144
|
minutes: 'Enter the minutes in 00:00 format',
|
|
@@ -401,7 +400,7 @@ const ClayTimePicker: React.FunctionComponent<IProps> = ({
|
|
|
401
400
|
type="text"
|
|
402
401
|
value={values.hours}
|
|
403
402
|
/>
|
|
404
|
-
<span className="clay-time-divider"
|
|
403
|
+
<span className="clay-time-divider">:</span>
|
|
405
404
|
<input
|
|
406
405
|
aria-label={ariaLabels.minutes}
|
|
407
406
|
className={classNames(
|
|
@@ -488,11 +487,13 @@ const ClayTimePicker: React.FunctionComponent<IProps> = ({
|
|
|
488
487
|
? {
|
|
489
488
|
ampm: DEFAULT_VALUE,
|
|
490
489
|
hours: DEFAULT_VALUE,
|
|
491
|
-
minutes:
|
|
490
|
+
minutes:
|
|
491
|
+
DEFAULT_VALUE,
|
|
492
492
|
}
|
|
493
493
|
: {
|
|
494
494
|
hours: DEFAULT_VALUE,
|
|
495
|
-
minutes:
|
|
495
|
+
minutes:
|
|
496
|
+
DEFAULT_VALUE,
|
|
496
497
|
}
|
|
497
498
|
)
|
|
498
499
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [3.37.0](https://github.com/liferay/clay/compare/v3.36.0...v3.37.0) (2021-10-06)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
9
|
-
|
|
10
|
-
# [3.36.0](https://github.com/liferay/clay/compare/v3.35.3...v3.36.0) (2021-09-23)
|
|
11
|
-
|
|
12
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
13
|
-
|
|
14
|
-
## [3.35.3](https://github.com/liferay/clay/compare/v3.35.2...v3.35.3) (2021-09-09)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
17
|
-
|
|
18
|
-
## [3.35.2](https://github.com/liferay/clay/compare/v3.35.1...v3.35.2) (2021-08-30)
|
|
19
|
-
|
|
20
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
21
|
-
|
|
22
|
-
## [3.35.1](https://github.com/liferay/clay/compare/v3.35.0...v3.35.1) (2021-08-30)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
25
|
-
|
|
26
|
-
# [3.35.0](https://github.com/liferay/clay/compare/v3.34.0...v3.35.0) (2021-08-30)
|
|
27
|
-
|
|
28
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
29
|
-
|
|
30
|
-
# [3.32.0](https://github.com/liferay/clay/compare/v3.31.0...v3.32.0) (2021-07-28)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
33
|
-
|
|
34
|
-
# [3.29.0](https://github.com/liferay/clay/compare/v3.28.0...v3.29.0) (2021-05-28)
|
|
35
|
-
|
|
36
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
37
|
-
|
|
38
|
-
# [3.28.0](https://github.com/liferay/clay/compare/v3.27.0...v3.28.0) (2021-05-19)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
41
|
-
|
|
42
|
-
# [3.27.0](https://github.com/liferay/clay/compare/v3.26.0...v3.27.0) (2021-05-05)
|
|
43
|
-
|
|
44
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
45
|
-
|
|
46
|
-
## [3.2.6](https://github.com/liferay/clay/compare/@clayui/time-picker@3.2.5...@clayui/time-picker@3.2.6) (2021-02-11)
|
|
47
|
-
|
|
48
|
-
### Bug Fixes
|
|
49
|
-
|
|
50
|
-
- **@clayui/time-picker:** stop propagating key events in time picker ([0e0d89b](https://github.com/liferay/clay/commit/0e0d89b))
|
|
51
|
-
|
|
52
|
-
## [3.2.5](https://github.com/liferay/clay/compare/@clayui/time-picker@3.2.4...@clayui/time-picker@3.2.5) (2021-01-27)
|
|
53
|
-
|
|
54
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
55
|
-
|
|
56
|
-
## [3.2.4](https://github.com/liferay/clay/compare/@clayui/time-picker@3.2.3...@clayui/time-picker@3.2.4) (2021-01-13)
|
|
57
|
-
|
|
58
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
59
|
-
|
|
60
|
-
## [3.2.3](https://github.com/liferay/clay/compare/@clayui/time-picker@3.2.2...@clayui/time-picker@3.2.3) (2020-12-29)
|
|
61
|
-
|
|
62
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
63
|
-
|
|
64
|
-
## [3.2.2](https://github.com/liferay/clay/compare/@clayui/time-picker@3.2.0...@clayui/time-picker@3.2.2) (2020-12-16)
|
|
65
|
-
|
|
66
|
-
### Bug Fixes
|
|
67
|
-
|
|
68
|
-
- **@clayui/time-picker:** make sure hours can't be 0 when its a 12 hour clock ([47a582c](https://github.com/liferay/clay/commit/47a582c))
|
|
69
|
-
- **@clayui/time-picker:** make sure input always has a leading 0 for single digits ([5c9f410](https://github.com/liferay/clay/commit/5c9f410))
|
|
70
|
-
- **@clayui/time-picker:** Use 12 for AM/PM mode and allow keystroke for AM/PM change ([05900cb](https://github.com/liferay/clay/commit/05900cb))
|
|
71
|
-
|
|
72
|
-
## [3.2.1](https://github.com/liferay/clay/compare/@clayui/time-picker@3.2.0...@clayui/time-picker@3.2.1) (2020-12-02)
|
|
73
|
-
|
|
74
|
-
### Bug Fixes
|
|
75
|
-
|
|
76
|
-
- **@clayui/time-picker:** make sure hours can't be 0 when its a 12 hour clock ([47a582c](https://github.com/liferay/clay/commit/47a582c))
|
|
77
|
-
- **@clayui/time-picker:** make sure input always has a leading 0 for single digits ([5c9f410](https://github.com/liferay/clay/commit/5c9f410))
|
|
78
|
-
- **@clayui/time-picker:** Use 12 for AM/PM mode and allow keystroke for AM/PM change ([05900cb](https://github.com/liferay/clay/commit/05900cb))
|
|
79
|
-
|
|
80
|
-
# [3.2.0](https://github.com/liferay/clay/compare/@clayui/time-picker@3.1.10...@clayui/time-picker@3.2.0) (2020-10-01)
|
|
81
|
-
|
|
82
|
-
### Features
|
|
83
|
-
|
|
84
|
-
- **clayui.com:** Move API tables to new files and update document tabs, rename files to use singular naming instead of plural, change mainTabURL of pagination-bar to a proper one ([d812ee9](https://github.com/liferay/clay/commit/d812ee9))
|
|
85
|
-
|
|
86
|
-
## [3.1.10](https://github.com/liferay/clay/compare/@clayui/time-picker@3.1.9...@clayui/time-picker@3.1.10) (2020-08-28)
|
|
87
|
-
|
|
88
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
89
|
-
|
|
90
|
-
## [3.1.9](https://github.com/liferay/clay/compare/@clayui/time-picker@3.1.8...@clayui/time-picker@3.1.9) (2020-08-26)
|
|
91
|
-
|
|
92
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
93
|
-
|
|
94
|
-
## [3.1.8](https://github.com/liferay/clay/compare/@clayui/time-picker@3.1.7...@clayui/time-picker@3.1.8) (2020-08-21)
|
|
95
|
-
|
|
96
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
97
|
-
|
|
98
|
-
## [3.1.7](https://github.com/liferay/clay/compare/@clayui/time-picker@3.1.6...@clayui/time-picker@3.1.7) (2020-07-28)
|
|
99
|
-
|
|
100
|
-
### Bug Fixes
|
|
101
|
-
|
|
102
|
-
- update packages to appropriate dependencies ([0026168](https://github.com/liferay/clay/commit/0026168))
|
|
103
|
-
|
|
104
|
-
## [3.1.6](https://github.com/liferay/clay/compare/@clayui/time-picker@3.1.5...@clayui/time-picker@3.1.6) (2020-07-14)
|
|
105
|
-
|
|
106
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
107
|
-
|
|
108
|
-
## [3.1.5](https://github.com/liferay/clay/compare/@clayui/time-picker@3.1.4...@clayui/time-picker@3.1.5) (2020-07-07)
|
|
109
|
-
|
|
110
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
111
|
-
|
|
112
|
-
## [3.1.4](https://github.com/liferay/clay/compare/@clayui/time-picker@3.1.3...@clayui/time-picker@3.1.4) (2020-06-18)
|
|
113
|
-
|
|
114
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
115
|
-
|
|
116
|
-
## [3.1.3](https://github.com/liferay/clay/compare/@clayui/time-picker@3.1.2...@clayui/time-picker@3.1.3) (2020-05-21)
|
|
117
|
-
|
|
118
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
119
|
-
|
|
120
|
-
## [3.1.2](https://github.com/liferay/clay/compare/@clayui/time-picker@3.1.1...@clayui/time-picker@3.1.2) (2020-04-24)
|
|
121
|
-
|
|
122
|
-
### Bug Fixes
|
|
123
|
-
|
|
124
|
-
- Fix accessibility issues ([5e09db0](https://github.com/liferay/clay/commit/5e09db0))
|
|
125
|
-
|
|
126
|
-
## [3.1.1](https://github.com/liferay/clay/tree/master/packages/clay-time-picker/compare/@clayui/time-picker@3.1.0...@clayui/time-picker@3.1.1) (2020-03-26)
|
|
127
|
-
|
|
128
|
-
### Bug Fixes
|
|
129
|
-
|
|
130
|
-
- **@clayui/time-picker:** prevent scroll when using arrow keys to cycle numbers ([7e4db38](https://github.com/liferay/clay/commit/7e4db38))
|
|
131
|
-
|
|
132
|
-
# 3.1.0 (2020-02-28)
|
|
133
|
-
|
|
134
|
-
### Bug Fixes
|
|
135
|
-
|
|
136
|
-
- update components to include 'types' and 'ts:main' package keys ([9e24b59](https://github.com/liferay/clay/commit/9e24b59))
|
|
137
|
-
- **@clayui/shared:** add focus control by left and right arrow keys ([e314419](https://github.com/liferay/clay/commit/e314419))
|
|
138
|
-
- **@clayui/time-picker:** add focus to input marked as focused for change ([6c64aaf](https://github.com/liferay/clay/commit/6c64aaf))
|
|
139
|
-
- **@clayui/time-picker:** add support for name property ([dc8af07](https://github.com/liferay/clay/commit/dc8af07))
|
|
140
|
-
- **@clayui/time-picker:** format ([ae0f9d6](https://github.com/liferay/clay/commit/ae0f9d6))
|
|
141
|
-
- **@clayui/time-picker:** use FocusScope component ([2a36f27](https://github.com/liferay/clay/commit/2a36f27))
|
|
142
|
-
|
|
143
|
-
### Features
|
|
144
|
-
|
|
145
|
-
- **@clayui/time-picker:** add the ariaLabels API to label inputs and buttons ([da0544f](https://github.com/liferay/clay/commit/da0544f))
|
|
146
|
-
- **form:** add helper components for markup ([3ce63d4](https://github.com/liferay/clay/commit/3ce63d4))
|
|
147
|
-
|
|
148
|
-
## [3.0.7](https://github.com/liferay/clay/tree/master/packages/clay-time-picker/compare/@clayui/time-picker@3.0.6...@clayui/time-picker@3.0.7) (2020-02-13)
|
|
149
|
-
|
|
150
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
151
|
-
|
|
152
|
-
## [3.0.6](https://github.com/liferay/clay/tree/master/packages/clay-time-picker/compare/@clayui/time-picker@3.0.3...@clayui/time-picker@3.0.6) (2020-01-31)
|
|
153
|
-
|
|
154
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
155
|
-
|
|
156
|
-
## [3.0.5](https://github.com/liferay/clay/tree/master/packages/clay-time-picker/compare/@clayui/time-picker@3.0.3...@clayui/time-picker@3.0.5) (2020-01-20)
|
|
157
|
-
|
|
158
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
159
|
-
|
|
160
|
-
## [3.0.4](https://github.com/liferay/clay/tree/master/packages/clay-time-picker/compare/@clayui/time-picker@3.0.3...@clayui/time-picker@3.0.4) (2019-12-05)
|
|
161
|
-
|
|
162
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
163
|
-
|
|
164
|
-
## [3.0.3](https://github.com/liferay/clay/tree/master/packages/clay-time-picker/compare/@clayui/time-picker@3.0.2...@clayui/time-picker@3.0.3) (2019-11-07)
|
|
165
|
-
|
|
166
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
167
|
-
|
|
168
|
-
## [3.0.2](https://github.com/liferay/clay/tree/master/packages/clay-time-picker/compare/@clayui/time-picker@3.0.1...@clayui/time-picker@3.0.2) (2019-11-01)
|
|
169
|
-
|
|
170
|
-
**Note:** Version bump only for package @clayui/time-picker
|
|
171
|
-
|
|
172
|
-
## [3.0.1](https://github.com/liferay/clay/tree/master/packages/clay-time-picker/compare/@clayui/time-picker@3.0.0...@clayui/time-picker@3.0.1) (2019-10-28)
|
|
173
|
-
|
|
174
|
-
**Note:** Version bump only for package @clayui/time-picker
|