@semcore/time-picker 3.0.22 → 3.0.25
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 +18 -0
- package/lib/cjs/TimePicker.js +13 -13
- package/lib/cjs/index.d.ts +2 -0
- package/lib/es6/TimePicker.js +13 -13
- package/lib/es6/index.d.ts +2 -0
- package/lib/types/index.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [3.0.25] - 2022-08-23
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Added missing type `defaultValue` in `index.d.ts`.
|
|
10
|
+
|
|
11
|
+
## [3.0.24] - 2022-08-19
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Version patch update due to children dependencies update (`@semcore/button` [4.0.12 ~> 4.0.13]).
|
|
16
|
+
|
|
17
|
+
## [3.0.23] - 2022-08-18
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Version patch update due to children dependencies update (`@semcore/select` [3.0.21 ~> 3.0.22]).
|
|
22
|
+
|
|
5
23
|
## [3.0.22] - 2022-08-18
|
|
6
24
|
|
|
7
25
|
### Changed
|
package/lib/cjs/TimePicker.js
CHANGED
|
@@ -61,22 +61,22 @@ var style = (
|
|
|
61
61
|
/*__reshadow_css_start__*/
|
|
62
62
|
_core.sstyled.insert(
|
|
63
63
|
/*__inner_css_start__*/
|
|
64
|
-
".
|
|
64
|
+
".___STimePicker_1334v_gg_{position:relative;width:auto}.___STimePicker_1334v_gg_.__disabled_1334v_gg_{color:rgba(25,27,35,.3);cursor:default}.___SPickerInput_1334v_gg_{box-sizing:content-box;text-align:center;z-index:1}.___SPickerInput_1334v_gg_.__placeholder_1334v_gg_{text-overflow:clip}.___SPickerInput_1334v_gg_._size_m_1334v_gg_{width:19px}.___SPickerInput_1334v_gg_._size_l_1334v_gg_{width:21px}.___SPickerFormat_1334v_gg_{flex-shrink:0;position:relative;display:inline-flex;padding:0;white-space:nowrap;font-family:inherit;font-weight:500;line-height:normal;text-decoration:none;align-items:center;border:1px solid #c4c7cf;border-radius:0 6px 6px 0;outline:0;box-shadow:none;cursor:pointer;box-sizing:border-box;overflow:visible;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:#6c6e79;background-color:rgba(138,142,155,.1)}.___SPickerFormat_1334v_gg_:hover{color:#6c6e79;background-color:rgba(138,142,155,.2)}.___SPickerFormat_1334v_gg_:active,.___SPickerFormat_1334v_gg_.__active_1334v_gg_{color:#6c6e79;background-color:rgba(138,142,155,.3)}.___SPickerFormat_1334v_gg_._size_m_1334v_gg_{height:28px;font-size:14px;margin:0 -1px 0 0}.___SPickerFormat_1334v_gg_._size_m_1334v_gg_ .___SPickerFormatText_1334v_gg_{margin:0 8px}.___SPickerFormat_1334v_gg_._size_l_1334v_gg_{height:40px;font-size:16px;margin:0 -4px 0 0}.___SPickerFormat_1334v_gg_._size_l_1334v_gg_ .___SPickerFormatText_1334v_gg_{margin:0 12px}.___SPickerFormat_1334v_gg_.__disabled_1334v_gg_{opacity:0.3;cursor:default;pointer-events:none;border-color:transparent transparent transparent #c4c7cf}.___SPickerFormat_1334v_gg_.__keyboardFocused_1334v_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___STimePickerSeparator_1334v_gg_.__disabled_1334v_gg_{opacity:0.3;pointer-events:none}"
|
|
65
65
|
/*__inner_css_end__*/
|
|
66
|
-
, "
|
|
66
|
+
, "1334v_gg_")
|
|
67
67
|
/*__reshadow_css_end__*/
|
|
68
68
|
, {
|
|
69
|
-
"__STimePicker": "
|
|
70
|
-
"_disabled": "
|
|
71
|
-
"__SPickerInput": "
|
|
72
|
-
"_placeholder": "
|
|
73
|
-
"_size_m": "
|
|
74
|
-
"_size_l": "
|
|
75
|
-
"__SPickerFormat": "
|
|
76
|
-
"_active": "
|
|
77
|
-
"__SPickerFormatText": "
|
|
78
|
-
"_keyboardFocused": "
|
|
79
|
-
"__STimePickerSeparator": "
|
|
69
|
+
"__STimePicker": "___STimePicker_1334v_gg_",
|
|
70
|
+
"_disabled": "__disabled_1334v_gg_",
|
|
71
|
+
"__SPickerInput": "___SPickerInput_1334v_gg_",
|
|
72
|
+
"_placeholder": "__placeholder_1334v_gg_",
|
|
73
|
+
"_size_m": "_size_m_1334v_gg_",
|
|
74
|
+
"_size_l": "_size_l_1334v_gg_",
|
|
75
|
+
"__SPickerFormat": "___SPickerFormat_1334v_gg_",
|
|
76
|
+
"_active": "__active_1334v_gg_",
|
|
77
|
+
"__SPickerFormatText": "___SPickerFormatText_1334v_gg_",
|
|
78
|
+
"_keyboardFocused": "__keyboardFocused_1334v_gg_",
|
|
79
|
+
"__STimePickerSeparator": "___STimePickerSeparator_1334v_gg_"
|
|
80
80
|
});
|
|
81
81
|
var MAP_MERIDIEM = {
|
|
82
82
|
AM: 'PM',
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ import { IKeyboardFocusProps } from '@semcore/utils/lib/enhances/keyboardFocusEn
|
|
|
7
7
|
export interface ITimePickerProps extends Omit<IInputProps, 'size'> {
|
|
8
8
|
/** Time in the hh:mm format */
|
|
9
9
|
value?: string;
|
|
10
|
+
/** Default value if `value` property is not provided */
|
|
11
|
+
defaultValue?: string;
|
|
10
12
|
/** The event responses upon time changing */
|
|
11
13
|
onChange?: (time: string, event?: React.SyntheticEvent) => void;
|
|
12
14
|
/** In charge of the component blocking */
|
package/lib/es6/TimePicker.js
CHANGED
|
@@ -30,22 +30,22 @@ var style = (
|
|
|
30
30
|
/*__reshadow_css_start__*/
|
|
31
31
|
_sstyled.insert(
|
|
32
32
|
/*__inner_css_start__*/
|
|
33
|
-
".
|
|
33
|
+
".___STimePicker_1334v_gg_{position:relative;width:auto}.___STimePicker_1334v_gg_.__disabled_1334v_gg_{color:rgba(25,27,35,.3);cursor:default}.___SPickerInput_1334v_gg_{box-sizing:content-box;text-align:center;z-index:1}.___SPickerInput_1334v_gg_.__placeholder_1334v_gg_{text-overflow:clip}.___SPickerInput_1334v_gg_._size_m_1334v_gg_{width:19px}.___SPickerInput_1334v_gg_._size_l_1334v_gg_{width:21px}.___SPickerFormat_1334v_gg_{flex-shrink:0;position:relative;display:inline-flex;padding:0;white-space:nowrap;font-family:inherit;font-weight:500;line-height:normal;text-decoration:none;align-items:center;border:1px solid #c4c7cf;border-radius:0 6px 6px 0;outline:0;box-shadow:none;cursor:pointer;box-sizing:border-box;overflow:visible;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;color:#6c6e79;background-color:rgba(138,142,155,.1)}.___SPickerFormat_1334v_gg_:hover{color:#6c6e79;background-color:rgba(138,142,155,.2)}.___SPickerFormat_1334v_gg_:active,.___SPickerFormat_1334v_gg_.__active_1334v_gg_{color:#6c6e79;background-color:rgba(138,142,155,.3)}.___SPickerFormat_1334v_gg_._size_m_1334v_gg_{height:28px;font-size:14px;margin:0 -1px 0 0}.___SPickerFormat_1334v_gg_._size_m_1334v_gg_ .___SPickerFormatText_1334v_gg_{margin:0 8px}.___SPickerFormat_1334v_gg_._size_l_1334v_gg_{height:40px;font-size:16px;margin:0 -4px 0 0}.___SPickerFormat_1334v_gg_._size_l_1334v_gg_ .___SPickerFormatText_1334v_gg_{margin:0 12px}.___SPickerFormat_1334v_gg_.__disabled_1334v_gg_{opacity:0.3;cursor:default;pointer-events:none;border-color:transparent transparent transparent #c4c7cf}.___SPickerFormat_1334v_gg_.__keyboardFocused_1334v_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___STimePickerSeparator_1334v_gg_.__disabled_1334v_gg_{opacity:0.3;pointer-events:none}"
|
|
34
34
|
/*__inner_css_end__*/
|
|
35
|
-
, "
|
|
35
|
+
, "1334v_gg_")
|
|
36
36
|
/*__reshadow_css_end__*/
|
|
37
37
|
, {
|
|
38
|
-
"__STimePicker": "
|
|
39
|
-
"_disabled": "
|
|
40
|
-
"__SPickerInput": "
|
|
41
|
-
"_placeholder": "
|
|
42
|
-
"_size_m": "
|
|
43
|
-
"_size_l": "
|
|
44
|
-
"__SPickerFormat": "
|
|
45
|
-
"_active": "
|
|
46
|
-
"__SPickerFormatText": "
|
|
47
|
-
"_keyboardFocused": "
|
|
48
|
-
"__STimePickerSeparator": "
|
|
38
|
+
"__STimePicker": "___STimePicker_1334v_gg_",
|
|
39
|
+
"_disabled": "__disabled_1334v_gg_",
|
|
40
|
+
"__SPickerInput": "___SPickerInput_1334v_gg_",
|
|
41
|
+
"_placeholder": "__placeholder_1334v_gg_",
|
|
42
|
+
"_size_m": "_size_m_1334v_gg_",
|
|
43
|
+
"_size_l": "_size_l_1334v_gg_",
|
|
44
|
+
"__SPickerFormat": "___SPickerFormat_1334v_gg_",
|
|
45
|
+
"_active": "__active_1334v_gg_",
|
|
46
|
+
"__SPickerFormatText": "___SPickerFormatText_1334v_gg_",
|
|
47
|
+
"_keyboardFocused": "__keyboardFocused_1334v_gg_",
|
|
48
|
+
"__STimePickerSeparator": "___STimePickerSeparator_1334v_gg_"
|
|
49
49
|
});
|
|
50
50
|
var MAP_MERIDIEM = {
|
|
51
51
|
AM: 'PM',
|
package/lib/es6/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ import { IKeyboardFocusProps } from '@semcore/utils/lib/enhances/keyboardFocusEn
|
|
|
7
7
|
export interface ITimePickerProps extends Omit<IInputProps, 'size'> {
|
|
8
8
|
/** Time in the hh:mm format */
|
|
9
9
|
value?: string;
|
|
10
|
+
/** Default value if `value` property is not provided */
|
|
11
|
+
defaultValue?: string;
|
|
10
12
|
/** The event responses upon time changing */
|
|
11
13
|
onChange?: (time: string, event?: React.SyntheticEvent) => void;
|
|
12
14
|
/** In charge of the component blocking */
|
package/lib/types/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ import { IKeyboardFocusProps } from '@semcore/utils/lib/enhances/keyboardFocusEn
|
|
|
7
7
|
export interface ITimePickerProps extends Omit<IInputProps, 'size'> {
|
|
8
8
|
/** Time in the hh:mm format */
|
|
9
9
|
value?: string;
|
|
10
|
+
/** Default value if `value` property is not provided */
|
|
11
|
+
defaultValue?: string;
|
|
10
12
|
/** The event responses upon time changing */
|
|
11
13
|
onChange?: (time: string, event?: React.SyntheticEvent) => void;
|
|
12
14
|
/** In charge of the component blocking */
|