@commercetools-uikit/time-input 19.26.0 → 20.1.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.
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
6
6
|
var _objectDestructuringEmpty = require('@babel/runtime-corejs3/helpers/objectDestructuringEmpty');
|
|
7
7
|
var _extends = require('@babel/runtime-corejs3/helpers/extends');
|
|
8
|
-
var _pt = require('prop-types');
|
|
9
8
|
var _padStartInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/pad-start');
|
|
10
9
|
var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
11
10
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
@@ -31,7 +30,6 @@ var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
|
31
30
|
|
|
32
31
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
33
32
|
|
|
34
|
-
var _pt__default = /*#__PURE__*/_interopDefault(_pt);
|
|
35
33
|
var _padStartInstanceProperty__default = /*#__PURE__*/_interopDefault(_padStartInstanceProperty);
|
|
36
34
|
var _Object$getOwnPropertyDescriptor__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptor);
|
|
37
35
|
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
@@ -177,14 +175,6 @@ const ClearSection = props => {
|
|
|
177
175
|
})
|
|
178
176
|
});
|
|
179
177
|
};
|
|
180
|
-
ClearSection.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
181
|
-
isCondensed: _pt__default["default"].bool,
|
|
182
|
-
isDisabled: _pt__default["default"].bool,
|
|
183
|
-
hasError: _pt__default["default"].bool,
|
|
184
|
-
hasWarning: _pt__default["default"].bool,
|
|
185
|
-
isReadOnly: _pt__default["default"].bool,
|
|
186
|
-
onClear: _pt__default["default"].func.isRequired
|
|
187
|
-
} : {};
|
|
188
178
|
ClearSection.displayName = 'ClearSection';
|
|
189
179
|
const TimeInputBody = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
190
180
|
return jsxRuntime.jsx(Inline__default["default"], {
|
|
@@ -333,25 +323,6 @@ const TimeInput = _ref2 => {
|
|
|
333
323
|
}))
|
|
334
324
|
});
|
|
335
325
|
};
|
|
336
|
-
TimeInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
337
|
-
id: _pt__default["default"].string,
|
|
338
|
-
'aria-invalid': _pt__default["default"].bool,
|
|
339
|
-
'aria-errormessage': _pt__default["default"].string,
|
|
340
|
-
horizontalConstraint: _pt__default["default"].oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
341
|
-
name: _pt__default["default"].string,
|
|
342
|
-
autoComplete: _pt__default["default"].string,
|
|
343
|
-
value: _pt__default["default"].string,
|
|
344
|
-
onChange: _pt__default["default"].func,
|
|
345
|
-
onBlur: _pt__default["default"].func,
|
|
346
|
-
onFocus: _pt__default["default"].func,
|
|
347
|
-
isAutofocussed: _pt__default["default"].bool,
|
|
348
|
-
isDisabled: _pt__default["default"].bool,
|
|
349
|
-
placeholder: _pt__default["default"].string,
|
|
350
|
-
isCondensed: _pt__default["default"].bool,
|
|
351
|
-
hasWarning: _pt__default["default"].bool,
|
|
352
|
-
hasError: _pt__default["default"].bool,
|
|
353
|
-
isReadOnly: _pt__default["default"].bool
|
|
354
|
-
} : {};
|
|
355
326
|
TimeInput.displayName = 'TimeInput';
|
|
356
327
|
|
|
357
328
|
// Takes any input like 15:10, 3 AM, 3AM, 3:15AM, 3:5AM and turns it
|
|
@@ -389,7 +360,7 @@ TimeInput.toLocaleTime = (time, locale) => {
|
|
|
389
360
|
var TimeInput$1 = TimeInput;
|
|
390
361
|
|
|
391
362
|
// NOTE: This string will be replaced on build time with the package version.
|
|
392
|
-
var version = "
|
|
363
|
+
var version = "20.1.0";
|
|
393
364
|
|
|
394
365
|
exports["default"] = TimeInput$1;
|
|
395
366
|
exports.version = version;
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
6
6
|
var _objectDestructuringEmpty = require('@babel/runtime-corejs3/helpers/objectDestructuringEmpty');
|
|
7
7
|
var _extends = require('@babel/runtime-corejs3/helpers/extends');
|
|
8
|
-
require('prop-types');
|
|
9
8
|
var _padStartInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/pad-start');
|
|
10
9
|
var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
11
10
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
@@ -161,7 +160,6 @@ const ClearSection = props => {
|
|
|
161
160
|
})
|
|
162
161
|
});
|
|
163
162
|
};
|
|
164
|
-
ClearSection.propTypes = {};
|
|
165
163
|
ClearSection.displayName = 'ClearSection';
|
|
166
164
|
const TimeInputBody = /*#__PURE__*/react$1.forwardRef((props, ref) => {
|
|
167
165
|
return jsxRuntime.jsx(Inline__default["default"], {
|
|
@@ -308,7 +306,6 @@ const TimeInput = _ref2 => {
|
|
|
308
306
|
}))
|
|
309
307
|
});
|
|
310
308
|
};
|
|
311
|
-
TimeInput.propTypes = {};
|
|
312
309
|
TimeInput.displayName = 'TimeInput';
|
|
313
310
|
|
|
314
311
|
// Takes any input like 15:10, 3 AM, 3AM, 3:15AM, 3:5AM and turns it
|
|
@@ -346,7 +343,7 @@ TimeInput.toLocaleTime = (time, locale) => {
|
|
|
346
343
|
var TimeInput$1 = TimeInput;
|
|
347
344
|
|
|
348
345
|
// NOTE: This string will be replaced on build time with the package version.
|
|
349
|
-
var version = "
|
|
346
|
+
var version = "20.1.0";
|
|
350
347
|
|
|
351
348
|
exports["default"] = TimeInput$1;
|
|
352
349
|
exports.version = version;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
2
2
|
import _objectDestructuringEmpty from '@babel/runtime-corejs3/helpers/esm/objectDestructuringEmpty';
|
|
3
3
|
import _extends from '@babel/runtime-corejs3/helpers/esm/extends';
|
|
4
|
-
import _pt from 'prop-types';
|
|
5
4
|
import _padStartInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/pad-start';
|
|
6
5
|
import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
7
6
|
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
@@ -156,14 +155,6 @@ const ClearSection = props => {
|
|
|
156
155
|
})
|
|
157
156
|
});
|
|
158
157
|
};
|
|
159
|
-
ClearSection.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
160
|
-
isCondensed: _pt.bool,
|
|
161
|
-
isDisabled: _pt.bool,
|
|
162
|
-
hasError: _pt.bool,
|
|
163
|
-
hasWarning: _pt.bool,
|
|
164
|
-
isReadOnly: _pt.bool,
|
|
165
|
-
onClear: _pt.func.isRequired
|
|
166
|
-
} : {};
|
|
167
158
|
ClearSection.displayName = 'ClearSection';
|
|
168
159
|
const TimeInputBody = /*#__PURE__*/forwardRef((props, ref) => {
|
|
169
160
|
return jsx(Inline, {
|
|
@@ -312,25 +303,6 @@ const TimeInput = _ref2 => {
|
|
|
312
303
|
}))
|
|
313
304
|
});
|
|
314
305
|
};
|
|
315
|
-
TimeInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
316
|
-
id: _pt.string,
|
|
317
|
-
'aria-invalid': _pt.bool,
|
|
318
|
-
'aria-errormessage': _pt.string,
|
|
319
|
-
horizontalConstraint: _pt.oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
320
|
-
name: _pt.string,
|
|
321
|
-
autoComplete: _pt.string,
|
|
322
|
-
value: _pt.string,
|
|
323
|
-
onChange: _pt.func,
|
|
324
|
-
onBlur: _pt.func,
|
|
325
|
-
onFocus: _pt.func,
|
|
326
|
-
isAutofocussed: _pt.bool,
|
|
327
|
-
isDisabled: _pt.bool,
|
|
328
|
-
placeholder: _pt.string,
|
|
329
|
-
isCondensed: _pt.bool,
|
|
330
|
-
hasWarning: _pt.bool,
|
|
331
|
-
hasError: _pt.bool,
|
|
332
|
-
isReadOnly: _pt.bool
|
|
333
|
-
} : {};
|
|
334
306
|
TimeInput.displayName = 'TimeInput';
|
|
335
307
|
|
|
336
308
|
// Takes any input like 15:10, 3 AM, 3AM, 3:15AM, 3:5AM and turns it
|
|
@@ -368,6 +340,6 @@ TimeInput.toLocaleTime = (time, locale) => {
|
|
|
368
340
|
var TimeInput$1 = TimeInput;
|
|
369
341
|
|
|
370
342
|
// NOTE: This string will be replaced on build time with the package version.
|
|
371
|
-
var version = "
|
|
343
|
+
var version = "20.1.0";
|
|
372
344
|
|
|
373
345
|
export { TimeInput$1 as default, version };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/time-input",
|
|
3
3
|
"description": "The TimeInput component allows the user to select a time.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "20.1.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,25 +21,24 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "
|
|
25
|
-
"@commercetools-uikit/constraints": "
|
|
26
|
-
"@commercetools-uikit/design-system": "
|
|
27
|
-
"@commercetools-uikit/hooks": "
|
|
28
|
-
"@commercetools-uikit/icons": "
|
|
29
|
-
"@commercetools-uikit/input-utils": "
|
|
30
|
-
"@commercetools-uikit/spacings-inline": "
|
|
31
|
-
"@commercetools-uikit/utils": "
|
|
24
|
+
"@commercetools-uikit/accessible-button": "20.1.0",
|
|
25
|
+
"@commercetools-uikit/constraints": "20.1.0",
|
|
26
|
+
"@commercetools-uikit/design-system": "20.1.0",
|
|
27
|
+
"@commercetools-uikit/hooks": "20.1.0",
|
|
28
|
+
"@commercetools-uikit/icons": "20.1.0",
|
|
29
|
+
"@commercetools-uikit/input-utils": "20.1.0",
|
|
30
|
+
"@commercetools-uikit/spacings-inline": "20.1.0",
|
|
31
|
+
"@commercetools-uikit/utils": "20.1.0",
|
|
32
32
|
"@emotion/is-prop-valid": "1.3.1",
|
|
33
33
|
"@emotion/react": "^11.10.5",
|
|
34
|
-
"@emotion/styled": "^11.10.5"
|
|
35
|
-
"prop-types": "15.8.1"
|
|
34
|
+
"@emotion/styled": "^11.10.5"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
38
|
-
"react": "
|
|
39
|
-
"react-intl": "^
|
|
37
|
+
"react": "19.1.0",
|
|
38
|
+
"react-intl": "^7.1.4"
|
|
40
39
|
},
|
|
41
40
|
"peerDependencies": {
|
|
42
|
-
"react": "
|
|
43
|
-
"react-intl": "
|
|
41
|
+
"react": "19.x",
|
|
42
|
+
"react-intl": "7.x"
|
|
44
43
|
}
|
|
45
44
|
}
|