@cashub/ui 0.48.13 → 0.48.14
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/Tab/TabList.js +38 -26
- package/Tab/TabPanel.js +13 -20
- package/Tab/TabTab.js +41 -25
- package/Tab/index.js +3 -6
- package/Tab/subComponent/TabListV2.js +11 -18
- package/Tab/subComponent/TabPanelV2.js +16 -20
- package/Tab/subComponent/TabTabV2.js +33 -21
- package/VerticalTab/TabList.js +13 -18
- package/VerticalTab/TabPanel.js +16 -20
- package/VerticalTab/TabTab.js +40 -21
- package/VerticalTab/VerticalTab.js +8 -4
- package/alert/Alert.js +12 -5
- package/animate/Collapse.js +5 -7
- package/animate/Loader.js +18 -7
- package/animate/PulseRing.js +18 -5
- package/animate/Spinner.js +8 -3
- package/backdrop/BaseBackdrop.js +9 -3
- package/backdrop/LoadingBackdrop.js +7 -3
- package/backdrop/ModalBackdrop.js +5 -3
- package/badge/Badge.js +15 -3
- package/badge/BadgeDot.js +8 -3
- package/badge/BadgeFill.js +24 -6
- package/badge/BadgeWithText.js +13 -3
- package/billing/BarChart.js +1 -1
- package/breadcrumb/Breadcrumb.js +42 -3
- package/button/Button.js +88 -20
- package/button/ButtonGroup.js +33 -9
- package/button/IconButton.js +37 -10
- package/button/ScrollToTopButton.js +12 -4
- package/callout/Callout.js +37 -8
- package/chart/BarChart.js +13 -21
- package/chart/DoughnutChart.js +34 -20
- package/chart/LineChart.js +13 -21
- package/chart/SingleBarChart.js +22 -5
- package/chart/utils/centerTextPlugin.js +2 -2
- package/chart/utils/customTooltip.js +8 -8
- package/chart/utils/htmlLegendPlugin.js +1 -1
- package/chart/utils/yAxisTopTitlePlugin.js +1 -1
- package/container/FlexContainer.js +15 -7
- package/cropper/Cropper.js +1 -2
- package/datetimePicker/DatePicker.js +80 -26
- package/datetimePicker/DatePickerV2.js +95 -36
- package/datetimePicker/DatetimePicker.js +174 -11
- package/datetimePicker/DatetimePickerV2.js +87 -33
- package/datetimePicker/DatetimePickerV3.js +174 -11
- package/datetimePicker/TimeInput.js +35 -10
- package/datetimePicker/TimePicker.js +77 -22
- package/datetimePicker/TimePickerStyle.js +53 -3
- package/datetimePicker/TimePickerV2.js +54 -21
- package/datetimePicker/accordion/Month.js +93 -16
- package/datetimePicker/accordion/Year.js +96 -18
- package/datetimePicker/hooks/useChangeNumber.js +3 -6
- package/datetimePicker/hooks/useDecrease.js +3 -6
- package/datetimePicker/hooks/useIncrease.js +3 -6
- package/datetimePicker/subComponent/Accordion.js +101 -20
- package/descriptionList/DescriptionDetail.js +15 -4
- package/descriptionList/DescriptionList.js +12 -4
- package/descriptionList/DescriptionTerm.js +5 -3
- package/divider/Divider.js +15 -6
- package/dropdown/DropdownButtonOption.js +22 -6
- package/dropdown/DropdownContent.js +29 -15
- package/dropdown/DropdownDivOption.js +17 -3
- package/dropdown/DropdownLinkOption.js +14 -3
- package/dropdown/DropdownToggle.js +7 -15
- package/dropzone/FileDropzone.js +121 -22
- package/dropzone/ImageDropzone.js +83 -14
- package/dropzone/subComponent/Message.js +11 -4
- package/figure/IconFigure.js +16 -7
- package/figure/ImageFigure.js +19 -6
- package/file/HiddenFileInput.js +3 -3
- package/form/Checkbox.js +74 -13
- package/form/Fieldset.js +9 -3
- package/form/FormItem.js +10 -5
- package/form/Input.js +40 -7
- package/form/Label.js +34 -10
- package/form/MutedText.js +8 -4
- package/form/PasswordInput.js +20 -13
- package/form/RadioButton.js +55 -8
- package/form/SearchSelect.js +64 -12
- package/form/Searchbox.js +45 -19
- package/form/Slider.js +28 -10
- package/form/SwitchButton.js +48 -14
- package/form/Textarea.js +30 -3
- package/form/TreeView.js +13 -6
- package/grid/Column.js +23 -10
- package/grid/Grid.js +14 -6
- package/heading/Heading1.js +8 -4
- package/heading/Heading2.js +11 -5
- package/heading/Heading3.js +20 -8
- package/iconbox/ApplicationIconBox.js +48 -12
- package/iconbox/IconBox.js +31 -7
- package/iconbox/IconBoxV2.js +33 -8
- package/iconbox/subComponent/IconBoxFigure.js +17 -9
- package/iconbox/subComponent/IconBoxImage.js +21 -8
- package/image/ImageFluid.js +7 -3
- package/image/UploadImage.js +66 -18
- package/jsoneditor/JsonEditor.js +121 -15
- package/keyframe/Pulse.js +13 -3
- package/keyframe/Spin.js +5 -3
- package/layout/Aside.js +30 -5
- package/layout/Backdrop.js +8 -4
- package/layout/Container.js +21 -5
- package/layout/Footer.js +26 -7
- package/link/LinkSpan.js +37 -19
- package/map/GoogleMap.js +3 -7
- package/map/GoogleReverseGeolocation.js +6 -3
- package/map/LeafletMap.js +2 -2
- package/map/subComponent/GoogleMapContainer.js +16 -4
- package/map/subComponent/GoogleMapPopup.js +7 -10
- package/map/subComponent/GoogleMapWrapper.js +8 -15
- package/map/subComponent/LeafletDrawControl.js +9 -7
- package/map/subComponent/LeafletMapContainer.js +159 -4
- package/modal/StateModal.js +56 -33
- package/modal/TitleModal.js +70 -29
- package/package.json +1 -1
- package/page/Disclaimer.js +119 -3
- package/paginate/Paginate.js +54 -12
- package/popover/Popover.js +30 -25
- package/qrcode/QRCode.js +20 -6
- package/qrcode/QRCodeContainter.js +12 -4
- package/ribbon/Ribbon.js +29 -4
- package/section/Section.js +68 -20
- package/section/SectionBody.js +29 -8
- package/section/SectionHeader.js +36 -11
- package/section/SectionToolbar.js +9 -3
- package/section/SectionToolbarItem.js +8 -3
- package/select/InputSelect.js +16 -23
- package/select/Select.js +112 -43
- package/select/subComponent/Checkbox.js +24 -5
- package/select/subComponent/Footer.js +4 -3
- package/select/subComponent/ListBox.js +12 -5
- package/select/subComponent/Option.js +27 -7
- package/select/subComponent/OptionGroup.js +13 -3
- package/select/subComponent/Options.js +18 -5
- package/select/subComponent/SearchBox.js +34 -12
- package/select/subComponent/SelectedMultipleTags.js +21 -3
- package/select/subComponent/SelectedMultipleText.js +20 -4
- package/select/subComponent/SelectedSingle.js +7 -3
- package/styles/GlobalStyle.js +156 -45
- package/styles/mixin/backgroundColor.js +16 -8
- package/styles/mixin/borderColor.js +13 -7
- package/styles/mixin/color.js +13 -7
- package/styles/mixin/colorOnBackground.js +13 -7
- package/styles/mixin/inputPlaceholder.js +20 -3
- package/styles/mixin/media.js +5 -3
- package/styles/mixin/rounded.js +10 -6
- package/styles/mixin/scrollbar.js +13 -3
- package/styles/theme/dark.theme.js +15 -14
- package/styles/theme/light.theme.js +15 -14
- package/styles/theme/white.theme.js +15 -14
- package/table/GridTable.js +71 -33
- package/table/ImageBox.js +15 -5
- package/table/InfiniteGridTable.js +92 -46
- package/table/PermissionTable.js +32 -10
- package/table/SimpleGridTable.js +52 -17
- package/table/Table.js +198 -48
- package/table/__mock__/columns.js +1 -1
- package/table/subComponent/BaseTableHeadCell.js +37 -8
- package/table/subComponent/GridTableFooter.js +10 -4
- package/table/subComponent/GridTableHeadCell.js +6 -4
- package/table/subComponent/Resizer.js +19 -4
- package/table/subComponent/TableFooter.js +15 -6
- package/table/subComponent/TableFooterInfo.js +4 -3
- package/table/subComponent/TableFooterPager.js +19 -6
- package/table/subComponent/TableHeadCell.js +9 -3
- package/table/subComponent/TableSort.js +17 -7
- package/tagify/TagifyStyle.js +49 -3
- package/tagify/Tags.js +37 -21
- package/tagify/templates/getCreateButtonTemplate.js +5 -2
- package/text/Paragraph.js +50 -12
- package/timeline/Timeline.js +94 -17
- package/toast/CustomToastContainer.js +35 -3
- package/toast/MessageContainer.js +22 -4
- package/tooltip/Tooltip.js +47 -19
- package/treeView/TreeViewV2.js +1 -1
- package/treeView/TreeflexStyle.js +38 -3
- package/wizard/Wizard.js +115 -6
|
@@ -10,14 +10,7 @@ var _reactDatepicker = _interopRequireDefault(require("react-datepicker"));
|
|
|
10
10
|
require("react-datepicker/dist/react-datepicker.css");
|
|
11
11
|
var _CustomTimeInput = _interopRequireDefault(require("./subComponent/CustomTimeInput"));
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
var _templateObject;
|
|
14
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
16
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
20
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
21
14
|
const DatetimePicker = _ref => {
|
|
22
15
|
let {
|
|
23
16
|
selected = '',
|
|
@@ -63,15 +56,185 @@ const DatetimePicker = _ref => {
|
|
|
63
56
|
}, [readOnly]);
|
|
64
57
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapper, {
|
|
65
58
|
disabled: disabled,
|
|
66
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDatepicker.default,
|
|
59
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDatepicker.default, {
|
|
60
|
+
...datePickerProps,
|
|
67
61
|
ref: datepickerRef
|
|
68
|
-
})
|
|
62
|
+
})
|
|
69
63
|
});
|
|
70
64
|
};
|
|
71
|
-
const Wrapper = _styledComponents.default.div
|
|
65
|
+
const Wrapper = _styledComponents.default.div`
|
|
66
|
+
.react-datepicker-wrapper,
|
|
67
|
+
.react-datepicker__input-container {
|
|
68
|
+
width: 100%;
|
|
69
|
+
|
|
70
|
+
> input {
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 36px;
|
|
73
|
+
color: var(--font-on-background);
|
|
74
|
+
background: transparent;
|
|
75
|
+
border-radius: var(--border-radius-l);
|
|
76
|
+
border: var(--border-width) solid var(--border-color);
|
|
77
|
+
padding: 0 var(--spacing-s);
|
|
78
|
+
outline: none;
|
|
79
|
+
|
|
80
|
+
${_ref2 => {
|
|
72
81
|
let {
|
|
73
82
|
disabled
|
|
74
83
|
} = _ref2;
|
|
75
84
|
return disabled ? 'cursor: not-allowed; opacity: 0.5;' : '';
|
|
76
|
-
}
|
|
85
|
+
}}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
> input + button {
|
|
89
|
+
padding: 0;
|
|
90
|
+
right: var(--spacing-s);
|
|
91
|
+
&::after {
|
|
92
|
+
color: var(--color-primary);
|
|
93
|
+
background-color: transparent;
|
|
94
|
+
font-size: 24px;
|
|
95
|
+
padding: 0;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.react-datepicker-popper {
|
|
101
|
+
z-index: 2;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.react-datepicker-popper[data-placement^='top'] {
|
|
105
|
+
padding-bottom: var(--spacing-xs);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.react-datepicker-popper[data-placement^='bottom'] {
|
|
109
|
+
padding-top: var(--spacing-xs);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.react-datepicker {
|
|
113
|
+
box-shadow: var(--box-shadow);
|
|
114
|
+
border-radius: var(--border-radius);
|
|
115
|
+
border: var(--border-width) solid var(--border-color);
|
|
116
|
+
padding: var(--spacing-s);
|
|
117
|
+
font-size: var(--font-body1);
|
|
118
|
+
color: var(--font-on-background);
|
|
119
|
+
background: var(--color-background1);
|
|
120
|
+
|
|
121
|
+
.react-datepicker__triangle {
|
|
122
|
+
&::before,
|
|
123
|
+
&::after {
|
|
124
|
+
display: none;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.react-datepicker__header {
|
|
129
|
+
border: none;
|
|
130
|
+
padding: 0;
|
|
131
|
+
background: var(--color-background1);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.react-datepicker__current-month {
|
|
135
|
+
line-height: 36px;
|
|
136
|
+
color: var(--font-on-background);
|
|
137
|
+
font-size: var(--font-body1);
|
|
138
|
+
font-weight: var(--font-normal);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.react-datepicker__day-names {
|
|
142
|
+
margin: 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.react-datepicker__day-name,
|
|
146
|
+
.react-datepicker__day {
|
|
147
|
+
width: 36px;
|
|
148
|
+
height: 36px;
|
|
149
|
+
line-height: 36px;
|
|
150
|
+
color: var(--font-on-background);
|
|
151
|
+
font-weight: var(--font-normal);
|
|
152
|
+
margin: 0;
|
|
153
|
+
border-radius: 4px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.react-datepicker__day:hover {
|
|
157
|
+
background: var(--color-hover);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.react-datepicker__day--disabled {
|
|
161
|
+
color: var(--font-on-mute);
|
|
162
|
+
background: none !important;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.react-datepicker__month {
|
|
167
|
+
margin: 0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.react-datepicker__navigation {
|
|
171
|
+
top: 0;
|
|
172
|
+
width: 36px;
|
|
173
|
+
height: 36px;
|
|
174
|
+
margin: var(--spacing-s) var(--spacing-s) 0 var(--spacing-s);
|
|
175
|
+
border-radius: 4px;
|
|
176
|
+
|
|
177
|
+
&.react-datepicker__navigation--previous {
|
|
178
|
+
left: 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&.react-datepicker__navigation--next {
|
|
182
|
+
right: 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&:hover {
|
|
186
|
+
background: var(--color-hover);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.react-datepicker__navigation-icon::before {
|
|
190
|
+
border-color: var(--font-on-background);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.react-datepicker__navigation-icon--previous::before {
|
|
194
|
+
right: -4px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.react-datepicker__navigation-icon--next::before {
|
|
198
|
+
left: -4px;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.react-datepicker__day--selected,
|
|
203
|
+
.react-datepicker__day--in-selecting-range,
|
|
204
|
+
.react-datepicker__day--in-range,
|
|
205
|
+
.react-datepicker__month-text--selected,
|
|
206
|
+
.react-datepicker__month-text--in-selecting-range,
|
|
207
|
+
.react-datepicker__month-text--in-range,
|
|
208
|
+
.react-datepicker__quarter-text--selected,
|
|
209
|
+
.react-datepicker__quarter-text--in-selecting-range,
|
|
210
|
+
.react-datepicker__quarter-text--in-range,
|
|
211
|
+
.react-datepicker__year-text--selected,
|
|
212
|
+
.react-datepicker__year-text--in-selecting-range,
|
|
213
|
+
.react-datepicker__year-text--in-range {
|
|
214
|
+
background: var(--color-primary) !important;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.react-datepicker__day--keyboard-selected,
|
|
218
|
+
.react-datepicker__month-text--keyboard-selected,
|
|
219
|
+
.react-datepicker__quarter-text--keyboard-selected,
|
|
220
|
+
.react-datepicker__year-text--keyboard-selected {
|
|
221
|
+
background: none;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.react-datepicker__input-time-container {
|
|
225
|
+
margin: 0;
|
|
226
|
+
margin-top: var(--spacing-s);
|
|
227
|
+
margin-left: var(--spacing-xs);
|
|
228
|
+
|
|
229
|
+
.react-datepicker-time__input input {
|
|
230
|
+
height: 36px;
|
|
231
|
+
padding: 0 var(--spacing-xs);
|
|
232
|
+
border-radius: var(--border-radius);
|
|
233
|
+
border: var(--border-width) solid var(--border-color);
|
|
234
|
+
background: transparent;
|
|
235
|
+
color: var(--font-on-background);
|
|
236
|
+
outline: none;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
`;
|
|
77
240
|
var _default = exports.default = DatetimePicker;
|
|
@@ -18,16 +18,9 @@ var _Year = _interopRequireDefault(require("./accordion/Year"));
|
|
|
18
18
|
var _TimePicker = _interopRequireDefault(require("./TimePicker"));
|
|
19
19
|
var _GMTDate = _interopRequireDefault(require("./utils/GMTDate"));
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
22
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
23
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
23
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
25
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
26
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
29
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
30
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
31
24
|
const DatetimePickerV2 = _ref => {
|
|
32
25
|
let {
|
|
33
26
|
selected,
|
|
@@ -50,7 +43,7 @@ const DatetimePickerV2 = _ref => {
|
|
|
50
43
|
const [time, setTime] = (0, _react.useState)(() => {
|
|
51
44
|
const date = new Date((0, _utils.datetimeTFormat)(selected ? selected : (0, _utils.formatDate)(new Date())));
|
|
52
45
|
if (!selected) date.setHours(0, 0, 0, 0);
|
|
53
|
-
return
|
|
46
|
+
return `${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`;
|
|
54
47
|
});
|
|
55
48
|
const [accordionCurrentDisplayType, setAccordionCurrentDisplayType] = (0, _react.useState)(null);
|
|
56
49
|
const {
|
|
@@ -142,7 +135,7 @@ const DatetimePickerV2 = _ref => {
|
|
|
142
135
|
return true;
|
|
143
136
|
}
|
|
144
137
|
let myDay = day.toString();
|
|
145
|
-
if (myDay.length === 1) myDay =
|
|
138
|
+
if (myDay.length === 1) myDay = `0${myDay}`;
|
|
146
139
|
if (fixedYear) {
|
|
147
140
|
if (month === '01' && dayIndex + 1 <= firstWeekOfMonth) {
|
|
148
141
|
// disabledDateInJan
|
|
@@ -163,12 +156,12 @@ const DatetimePickerV2 = _ref => {
|
|
|
163
156
|
} else if (month === 13) {
|
|
164
157
|
month = 1;
|
|
165
158
|
}
|
|
166
|
-
if (year.length === 1) year =
|
|
167
|
-
if (year.length === 2) year =
|
|
168
|
-
if (year.length === 3) year =
|
|
169
|
-
if (month.toString().length === 1) month =
|
|
170
|
-
const compareMinDateDate = (0, _utils.formatDate)((0, _utils.datetimeTFormat)(new Date((0, _GMTDate.default)((0, _utils.formatDate)(new Date(
|
|
171
|
-
const compareMaxDateDate = (0, _utils.formatDate)((0, _utils.datetimeTFormat)(new Date((0, _GMTDate.default)((0, _utils.formatDate)(new Date(
|
|
159
|
+
if (year.length === 1) year = `000${year}`;
|
|
160
|
+
if (year.length === 2) year = `00${year}`;
|
|
161
|
+
if (year.length === 3) year = `0${year}`;
|
|
162
|
+
if (month.toString().length === 1) month = `0${month}`;else month = month.toString();
|
|
163
|
+
const compareMinDateDate = (0, _utils.formatDate)((0, _utils.datetimeTFormat)(new Date((0, _GMTDate.default)((0, _utils.formatDate)(new Date(`${year}-${month}-${myDay}`)), 'date')).setHours(23, 59, 59, 59)));
|
|
164
|
+
const compareMaxDateDate = (0, _utils.formatDate)((0, _utils.datetimeTFormat)(new Date((0, _GMTDate.default)((0, _utils.formatDate)(new Date(`${year}-${month}-${myDay}`)), 'date')).setHours(0, 0, 0, 0)));
|
|
172
165
|
if (minDate && !maxDate && minDate > compareMinDateDate) {
|
|
173
166
|
return true;
|
|
174
167
|
}
|
|
@@ -257,7 +250,7 @@ const DatetimePickerV2 = _ref => {
|
|
|
257
250
|
(0, _react.useEffect)(() => {
|
|
258
251
|
if (!confirmDate) return;
|
|
259
252
|
const date = (0, _utils.formatDate)(confirmDate, 'date');
|
|
260
|
-
setInputValue(
|
|
253
|
+
setInputValue(`${date} ${time}`);
|
|
261
254
|
}, [confirmDate, time]);
|
|
262
255
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DateTimePickerContext.default.Provider, {
|
|
263
256
|
value: context,
|
|
@@ -269,7 +262,8 @@ const DatetimePickerV2 = _ref => {
|
|
|
269
262
|
onClick: handleToggle,
|
|
270
263
|
readOnly: true,
|
|
271
264
|
disabled: disabled
|
|
272
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Wrapper,
|
|
265
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Wrapper, {
|
|
266
|
+
...attributes.popper,
|
|
273
267
|
style: styles.popper,
|
|
274
268
|
placement: state && state.placement,
|
|
275
269
|
ref: setContentElement,
|
|
@@ -301,41 +295,101 @@ const DatetimePickerV2 = _ref => {
|
|
|
301
295
|
children: t('Confirm')
|
|
302
296
|
})
|
|
303
297
|
})]
|
|
304
|
-
})
|
|
298
|
+
})]
|
|
305
299
|
})
|
|
306
300
|
});
|
|
307
301
|
};
|
|
308
|
-
const Wrapper = _styledComponents.default.div
|
|
302
|
+
const Wrapper = _styledComponents.default.div`
|
|
303
|
+
padding-bottom: var(--spacing-s);
|
|
304
|
+
background: var(--color-background1);
|
|
305
|
+
border-radius: var(--border-radius);
|
|
306
|
+
border: var(--border-width) solid var(--border-color);
|
|
307
|
+
box-shadow: var(--box-shadow);
|
|
308
|
+
overflow: hidden;
|
|
309
|
+
width: 286px;
|
|
310
|
+
z-index: 1;
|
|
311
|
+
color: var(--font-on-background);
|
|
312
|
+
|
|
313
|
+
display: ${_ref2 => {
|
|
309
314
|
let {
|
|
310
315
|
displayPicker
|
|
311
316
|
} = _ref2;
|
|
312
317
|
return displayPicker ? 'block' : 'none';
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
const
|
|
318
|
+
}};
|
|
319
|
+
`;
|
|
320
|
+
const Week = _styledComponents.default.div`
|
|
321
|
+
height: 36px;
|
|
322
|
+
width: calc(100% / 7);
|
|
323
|
+
border-radius: var(--border-radius-s);
|
|
324
|
+
line-height: 36px;
|
|
325
|
+
text-align: center;
|
|
326
|
+
`;
|
|
327
|
+
const Body = _styledComponents.default.div`
|
|
328
|
+
${_ref3 => {
|
|
316
329
|
let {
|
|
317
330
|
accordionCurrentDisplayType
|
|
318
331
|
} = _ref3;
|
|
319
|
-
return accordionCurrentDisplayType && (0, _styledComponents.css)
|
|
320
|
-
|
|
332
|
+
return accordionCurrentDisplayType && (0, _styledComponents.css)`
|
|
333
|
+
height: 216px;
|
|
334
|
+
`;
|
|
335
|
+
}}
|
|
336
|
+
|
|
337
|
+
overflow: hidden;
|
|
338
|
+
padding: ${_ref4 => {
|
|
321
339
|
let {
|
|
322
340
|
accordionCurrentDisplayType
|
|
323
341
|
} = _ref4;
|
|
324
342
|
return accordionCurrentDisplayType === 'year' ? ' 0 4px var(--spacing-s) var(--spacing-s)' : '0 var(--spacing-s) 0 var(--spacing-s)';
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
const
|
|
328
|
-
|
|
343
|
+
}};
|
|
344
|
+
`;
|
|
345
|
+
const Footer = _styledComponents.default.div`
|
|
346
|
+
padding: 0 var(--spacing-s);
|
|
347
|
+
`;
|
|
348
|
+
const PickerInput = (0, _styledComponents.default)(_Input.default)`
|
|
349
|
+
&:disabled {
|
|
350
|
+
cursor: not-allowed;
|
|
351
|
+
opacity: 0.5;
|
|
352
|
+
}
|
|
353
|
+
`;
|
|
354
|
+
const Day = _styledComponents.default.button`
|
|
355
|
+
width: calc(100% / 7);
|
|
356
|
+
height: 36px;
|
|
357
|
+
border-radius: var(--border-radius-s);
|
|
358
|
+
line-height: 36px;
|
|
359
|
+
text-align: center;
|
|
360
|
+
padding: 0;
|
|
361
|
+
border: 0;
|
|
362
|
+
background: var(--color-background1);
|
|
363
|
+
color: var(--font-on-background);
|
|
364
|
+
&:hover {
|
|
365
|
+
background: var(--color-primary);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
${_ref5 => {
|
|
329
369
|
let {
|
|
330
370
|
selected
|
|
331
371
|
} = _ref5;
|
|
332
372
|
return selected && 'background: var(--color-hover);';
|
|
333
|
-
}
|
|
373
|
+
}}
|
|
374
|
+
|
|
375
|
+
${_ref6 => {
|
|
334
376
|
let {
|
|
335
377
|
disabled
|
|
336
378
|
} = _ref6;
|
|
337
|
-
return disabled && (0, _styledComponents.css)
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
379
|
+
return disabled && (0, _styledComponents.css)`
|
|
380
|
+
color: var(--font-on-mute);
|
|
381
|
+
background: none;
|
|
382
|
+
&:hover {
|
|
383
|
+
background: none;
|
|
384
|
+
}
|
|
385
|
+
`;
|
|
386
|
+
}}
|
|
387
|
+
`;
|
|
388
|
+
const ConfirmButton = (0, _styledComponents.default)(_Button.default)`
|
|
389
|
+
margin: 16px auto 0;
|
|
390
|
+
`;
|
|
391
|
+
const DateContent = _styledComponents.default.div`
|
|
392
|
+
display: flex;
|
|
393
|
+
flex-wrap: wrap;
|
|
394
|
+
`;
|
|
341
395
|
var _default = exports.default = DatetimePickerV2;
|
|
@@ -10,14 +10,7 @@ var _reactDatepicker = _interopRequireDefault(require("react-datepicker"));
|
|
|
10
10
|
require("react-datepicker/dist/react-datepicker.css");
|
|
11
11
|
var _TimePickerV = _interopRequireDefault(require("./TimePickerV2"));
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
var _templateObject;
|
|
14
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
16
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
20
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
21
14
|
const setDateTime = (date, value) => {
|
|
22
15
|
const [hh, mm, ss] = value.split(':');
|
|
23
16
|
date.setHours(Number(hh) || 0, Number(mm) || 0, Number(ss) || 0, 0);
|
|
@@ -102,15 +95,185 @@ const DatetimePickerV3 = _ref => {
|
|
|
102
95
|
}, [readOnly]);
|
|
103
96
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapper, {
|
|
104
97
|
disabled: disabled,
|
|
105
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDatepicker.default,
|
|
98
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactDatepicker.default, {
|
|
99
|
+
...datePickerProps,
|
|
106
100
|
ref: datepickerRef
|
|
107
|
-
})
|
|
101
|
+
})
|
|
108
102
|
});
|
|
109
103
|
};
|
|
110
|
-
const Wrapper = _styledComponents.default.div
|
|
104
|
+
const Wrapper = _styledComponents.default.div`
|
|
105
|
+
.react-datepicker-wrapper,
|
|
106
|
+
.react-datepicker__input-container {
|
|
107
|
+
width: 100%;
|
|
108
|
+
|
|
109
|
+
> input {
|
|
110
|
+
width: 100%;
|
|
111
|
+
height: 36px;
|
|
112
|
+
color: var(--font-on-background);
|
|
113
|
+
background: transparent;
|
|
114
|
+
border-radius: var(--border-radius-l);
|
|
115
|
+
border: var(--border-width) solid var(--border-color);
|
|
116
|
+
padding: 0 var(--spacing-s);
|
|
117
|
+
outline: none;
|
|
118
|
+
|
|
119
|
+
${_ref2 => {
|
|
111
120
|
let {
|
|
112
121
|
disabled
|
|
113
122
|
} = _ref2;
|
|
114
123
|
return disabled ? 'cursor: not-allowed; opacity: 0.5;' : '';
|
|
115
|
-
}
|
|
124
|
+
}}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
> input + button {
|
|
128
|
+
padding: 0;
|
|
129
|
+
right: var(--spacing-s);
|
|
130
|
+
&::after {
|
|
131
|
+
color: var(--color-primary);
|
|
132
|
+
background-color: transparent;
|
|
133
|
+
font-size: 24px;
|
|
134
|
+
padding: 0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.react-datepicker-popper {
|
|
140
|
+
z-index: 2;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.react-datepicker-popper[data-placement^='top'] {
|
|
144
|
+
padding-bottom: var(--spacing-xs);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.react-datepicker-popper[data-placement^='bottom'] {
|
|
148
|
+
padding-top: var(--spacing-xs);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.react-datepicker {
|
|
152
|
+
box-shadow: var(--box-shadow);
|
|
153
|
+
border-radius: var(--border-radius);
|
|
154
|
+
border: var(--border-width) solid var(--border-color);
|
|
155
|
+
padding: var(--spacing-s);
|
|
156
|
+
font-size: var(--font-body1);
|
|
157
|
+
color: var(--font-on-background);
|
|
158
|
+
background: var(--color-background1);
|
|
159
|
+
|
|
160
|
+
.react-datepicker__triangle {
|
|
161
|
+
&::before,
|
|
162
|
+
&::after {
|
|
163
|
+
display: none;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.react-datepicker__header {
|
|
168
|
+
border: none;
|
|
169
|
+
padding: 0;
|
|
170
|
+
background: var(--color-background1);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.react-datepicker__current-month {
|
|
174
|
+
line-height: 36px;
|
|
175
|
+
color: var(--font-on-background);
|
|
176
|
+
font-size: var(--font-body1);
|
|
177
|
+
font-weight: var(--font-normal);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.react-datepicker__day-names {
|
|
181
|
+
margin: 0;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.react-datepicker__day-name,
|
|
185
|
+
.react-datepicker__day {
|
|
186
|
+
width: 36px;
|
|
187
|
+
height: 36px;
|
|
188
|
+
line-height: 36px;
|
|
189
|
+
color: var(--font-on-background);
|
|
190
|
+
font-weight: var(--font-normal);
|
|
191
|
+
margin: 0;
|
|
192
|
+
border-radius: 4px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.react-datepicker__day:hover {
|
|
196
|
+
background: var(--color-hover);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.react-datepicker__day--disabled {
|
|
200
|
+
color: var(--font-on-mute);
|
|
201
|
+
background: none !important;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.react-datepicker__month {
|
|
206
|
+
margin: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.react-datepicker__navigation {
|
|
210
|
+
top: 0;
|
|
211
|
+
width: 36px;
|
|
212
|
+
height: 36px;
|
|
213
|
+
margin: var(--spacing-s) var(--spacing-s) 0 var(--spacing-s);
|
|
214
|
+
border-radius: 4px;
|
|
215
|
+
|
|
216
|
+
&.react-datepicker__navigation--previous {
|
|
217
|
+
left: 0;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&.react-datepicker__navigation--next {
|
|
221
|
+
right: 0;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&:hover {
|
|
225
|
+
background: var(--color-hover);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.react-datepicker__navigation-icon::before {
|
|
229
|
+
border-color: var(--font-on-background);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.react-datepicker__navigation-icon--previous::before {
|
|
233
|
+
right: -4px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.react-datepicker__navigation-icon--next::before {
|
|
237
|
+
left: -4px;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.react-datepicker__day--selected,
|
|
242
|
+
.react-datepicker__day--in-selecting-range,
|
|
243
|
+
.react-datepicker__day--in-range,
|
|
244
|
+
.react-datepicker__month-text--selected,
|
|
245
|
+
.react-datepicker__month-text--in-selecting-range,
|
|
246
|
+
.react-datepicker__month-text--in-range,
|
|
247
|
+
.react-datepicker__quarter-text--selected,
|
|
248
|
+
.react-datepicker__quarter-text--in-selecting-range,
|
|
249
|
+
.react-datepicker__quarter-text--in-range,
|
|
250
|
+
.react-datepicker__year-text--selected,
|
|
251
|
+
.react-datepicker__year-text--in-selecting-range,
|
|
252
|
+
.react-datepicker__year-text--in-range {
|
|
253
|
+
background: var(--color-primary) !important;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.react-datepicker__day--keyboard-selected,
|
|
257
|
+
.react-datepicker__month-text--keyboard-selected,
|
|
258
|
+
.react-datepicker__quarter-text--keyboard-selected,
|
|
259
|
+
.react-datepicker__year-text--keyboard-selected {
|
|
260
|
+
background: none;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.react-datepicker__input-time-container {
|
|
264
|
+
margin: 0;
|
|
265
|
+
margin-top: var(--spacing-s);
|
|
266
|
+
margin-left: var(--spacing-xs);
|
|
267
|
+
|
|
268
|
+
.react-datepicker-time__input input {
|
|
269
|
+
height: 36px;
|
|
270
|
+
padding: 0 var(--spacing-xs);
|
|
271
|
+
border-radius: var(--border-radius);
|
|
272
|
+
border: var(--border-width) solid var(--border-color);
|
|
273
|
+
background: transparent;
|
|
274
|
+
color: var(--font-on-background);
|
|
275
|
+
outline: none;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
`;
|
|
116
279
|
var _default = exports.default = DatetimePickerV3;
|
|
@@ -8,24 +8,49 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
8
8
|
var _rcTimePicker = _interopRequireDefault(require("rc-time-picker"));
|
|
9
9
|
require("rc-time-picker/assets/index.css");
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
var _templateObject;
|
|
12
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
14
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
17
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
18
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
12
|
const TimeInput = props => {
|
|
20
13
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapper, {
|
|
21
14
|
disabled: props.disabled,
|
|
22
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_rcTimePicker.default,
|
|
15
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_rcTimePicker.default, {
|
|
16
|
+
...props
|
|
17
|
+
})
|
|
23
18
|
});
|
|
24
19
|
};
|
|
25
|
-
const Wrapper = _styledComponents.default.div
|
|
20
|
+
const Wrapper = _styledComponents.default.div`
|
|
21
|
+
.rc-time-picker {
|
|
22
|
+
width: 100%;
|
|
23
|
+
|
|
24
|
+
.rc-time-picker-input {
|
|
25
|
+
height: 36px;
|
|
26
|
+
border-radius: var(--border-radius);
|
|
27
|
+
border: var(--border-width) solid var(--border-color);
|
|
28
|
+
padding: 10px var(--spacing-s);
|
|
29
|
+
color: var(--font-on-background);
|
|
30
|
+
background: transparent;
|
|
31
|
+
font-size: var(--font-body1);
|
|
32
|
+
|
|
33
|
+
${_ref => {
|
|
26
34
|
let {
|
|
27
35
|
disabled
|
|
28
36
|
} = _ref;
|
|
29
37
|
return disabled && 'opacity: 0.5;';
|
|
30
|
-
}
|
|
38
|
+
}}
|
|
39
|
+
|
|
40
|
+
&:focus {
|
|
41
|
+
border: var(--border-width) solid var(--color-primary);
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.rc-time-picker-clear {
|
|
47
|
+
top: 6px;
|
|
48
|
+
right: 8px;
|
|
49
|
+
|
|
50
|
+
i:after {
|
|
51
|
+
font-size: var(--font-body1);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
31
56
|
var _default = exports.default = TimeInput;
|