@sunggang/ui-lib 0.4.26 → 0.4.27
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/BaseSwitch.cjs.d.ts +1 -0
- package/BaseSwitch.cjs.default.js +1 -0
- package/BaseSwitch.cjs.js +18 -0
- package/BaseSwitch.cjs.mjs +2 -0
- package/BaseSwitch.esm.d.ts +1 -0
- package/BaseSwitch.esm.js +10 -0
- package/Form.cjs.js +109 -289
- package/Form.esm.js +72 -251
- package/ReactDateRange.cjs.d.ts +1 -0
- package/ReactDateRange.cjs.default.js +1 -0
- package/ReactDateRange.cjs.js +181 -0
- package/ReactDateRange.cjs.mjs +2 -0
- package/ReactDateRange.esm.d.ts +1 -0
- package/ReactDateRange.esm.js +157 -0
- package/ReactDateRangeCSS.cjs.d.ts +1 -0
- package/ReactDateRangeCSS.cjs.default.js +1 -0
- package/ReactDateRangeCSS.cjs.js +9 -0
- package/ReactDateRangeCSS.cjs.mjs +2 -0
- package/ReactDateRangeCSS.esm.d.ts +1 -0
- package/ReactDateRangeCSS.esm.js +1 -0
- package/baseSwitch.cjs2.js +169 -0
- package/baseSwitch.esm2.js +146 -0
- package/package.json +10 -10
- package/react-date-range-css.cjs.js +14 -0
- package/react-date-range-css.esm.js +11 -0
- package/useInjectCSS.cjs.js +48 -0
- package/useInjectCSS.esm.js +46 -0
package/Form.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx as jsx$1, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { useState, useCallback, useLayoutEffect, useContext, useRef, createContext, useMemo, Component, Fragment, useEffect, forwardRef, useImperativeHandle, createElement } from 'react';
|
|
4
4
|
import dynamic from 'next/dynamic';
|
|
5
|
-
import { b as _objectSpread2, d as _typeof, c as _defineProperty, _ as _extends
|
|
5
|
+
import { b as _objectSpread2, d as _typeof, c as _defineProperty, _ as _extends } from './extends.esm.js';
|
|
6
6
|
import { i as _objectWithoutProperties, j as _slicedToArray, b as _isNativeReflectConstruct, _ as _getPrototypeOf, a as _possibleConstructorReturn, m as memoizeOne, g as _inherits, k as _classCallCheck, l as _toConsumableArray, h as _createClass } from './memoize-one.esm.esm.js';
|
|
7
7
|
import { keyframes, jsx, css as css$2 } from '@emotion/react';
|
|
8
8
|
import { createPortal } from 'react-dom';
|
|
@@ -13,18 +13,20 @@ import { d as dt } from './styled-components.esm.esm.js';
|
|
|
13
13
|
import { _, v as validateMsg } from './common.esm.js';
|
|
14
14
|
import { F as FieldLabel } from './FieldLabel.esm.js';
|
|
15
15
|
import { v as v4, M as Modal, E as ErrorContent } from './Modal.esm.js';
|
|
16
|
-
import
|
|
17
|
-
import { c as cn } from './utils.esm.js';
|
|
16
|
+
import { B as BaseSwitch } from './baseSwitch.esm2.js';
|
|
18
17
|
import { S as Select$1, c as SelectTrigger, b as SelectValue, d as SelectContent, a as SelectGroup, e as SelectLabel, f as SelectItem } from './CustomSelect.esm.js';
|
|
19
18
|
export { C as CustomSelect } from './CustomSelect.esm.js';
|
|
19
|
+
import { c as cn } from './utils.esm.js';
|
|
20
20
|
import flatpickr from 'flatpickr';
|
|
21
21
|
import Mandarin from 'flatpickr/dist/l10n/zh-tw.js';
|
|
22
|
+
import { u as useInjectGlobalCSS } from './useInjectCSS.esm.js';
|
|
22
23
|
import './_tslib.esm.js';
|
|
23
24
|
import './_commonjsHelpers.esm.js';
|
|
24
|
-
import '
|
|
25
|
-
import 'tailwind-merge';
|
|
25
|
+
import '@radix-ui/react-switch';
|
|
26
26
|
import '@radix-ui/react-select';
|
|
27
27
|
import '@radix-ui/react-icons';
|
|
28
|
+
import 'clsx';
|
|
29
|
+
import 'tailwind-merge';
|
|
28
30
|
|
|
29
31
|
var _excluded$6 = [
|
|
30
32
|
"defaultInputValue",
|
|
@@ -261,7 +263,7 @@ function _array_with_holes$7(arr) {
|
|
|
261
263
|
function _array_without_holes(arr) {
|
|
262
264
|
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
263
265
|
}
|
|
264
|
-
function _define_property$
|
|
266
|
+
function _define_property$3(obj, key, value) {
|
|
265
267
|
if (key in obj) {
|
|
266
268
|
Object.defineProperty(obj, key, {
|
|
267
269
|
value: value,
|
|
@@ -307,7 +309,7 @@ function _non_iterable_rest$7() {
|
|
|
307
309
|
function _non_iterable_spread() {
|
|
308
310
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
309
311
|
}
|
|
310
|
-
function _object_spread$
|
|
312
|
+
function _object_spread$3(target) {
|
|
311
313
|
for(var i = 1; i < arguments.length; i++){
|
|
312
314
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
313
315
|
var ownKeys = Object.keys(source);
|
|
@@ -317,12 +319,12 @@ function _object_spread$4(target) {
|
|
|
317
319
|
}));
|
|
318
320
|
}
|
|
319
321
|
ownKeys.forEach(function(key) {
|
|
320
|
-
_define_property$
|
|
322
|
+
_define_property$3(target, key, source[key]);
|
|
321
323
|
});
|
|
322
324
|
}
|
|
323
325
|
return target;
|
|
324
326
|
}
|
|
325
|
-
function ownKeys$
|
|
327
|
+
function ownKeys$3(object, enumerableOnly) {
|
|
326
328
|
var keys = Object.keys(object);
|
|
327
329
|
if (Object.getOwnPropertySymbols) {
|
|
328
330
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -335,12 +337,12 @@ function ownKeys$4(object, enumerableOnly) {
|
|
|
335
337
|
}
|
|
336
338
|
return keys;
|
|
337
339
|
}
|
|
338
|
-
function _object_spread_props$
|
|
340
|
+
function _object_spread_props$3(target, source) {
|
|
339
341
|
source = source != null ? source : {};
|
|
340
342
|
if (Object.getOwnPropertyDescriptors) {
|
|
341
343
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
342
344
|
} else {
|
|
343
|
-
ownKeys$
|
|
345
|
+
ownKeys$3(Object(source)).forEach(function(key) {
|
|
344
346
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
345
347
|
});
|
|
346
348
|
}
|
|
@@ -547,7 +549,7 @@ function observeMove(element, onMove) {
|
|
|
547
549
|
// Older browsers don't support a `document` as the root and will throw an
|
|
548
550
|
// error.
|
|
549
551
|
try {
|
|
550
|
-
io = new IntersectionObserver(handleObserve, _object_spread_props$
|
|
552
|
+
io = new IntersectionObserver(handleObserve, _object_spread_props$3(_object_spread$3({}, options), {
|
|
551
553
|
// Handle <iframe>s
|
|
552
554
|
root: root.ownerDocument
|
|
553
555
|
}));
|
|
@@ -1117,7 +1119,7 @@ var MenuPlacer = function MenuPlacer(props) {
|
|
|
1117
1119
|
};
|
|
1118
1120
|
var Menu = function Menu(props) {
|
|
1119
1121
|
var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
1120
|
-
return jsx("div", _extends
|
|
1122
|
+
return jsx("div", _extends({}, getStyleProps(props, "menu", {
|
|
1121
1123
|
menu: true
|
|
1122
1124
|
}), {
|
|
1123
1125
|
ref: innerRef
|
|
@@ -1142,7 +1144,7 @@ var menuListCSS = function menuListCSS(_ref4, unstyled) {
|
|
|
1142
1144
|
};
|
|
1143
1145
|
var MenuList = function MenuList(props) {
|
|
1144
1146
|
var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
|
|
1145
|
-
return jsx("div", _extends
|
|
1147
|
+
return jsx("div", _extends({}, getStyleProps(props, "menuList", {
|
|
1146
1148
|
"menu-list": true,
|
|
1147
1149
|
"menu-list--is-multi": isMulti
|
|
1148
1150
|
}), {
|
|
@@ -1165,7 +1167,7 @@ var noOptionsMessageCSS = noticeCSS;
|
|
|
1165
1167
|
var loadingMessageCSS = noticeCSS;
|
|
1166
1168
|
var NoOptionsMessage = function NoOptionsMessage(_ref6) {
|
|
1167
1169
|
var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
|
|
1168
|
-
return jsx("div", _extends
|
|
1170
|
+
return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
1169
1171
|
children: children,
|
|
1170
1172
|
innerProps: innerProps
|
|
1171
1173
|
}), "noOptionsMessage", {
|
|
@@ -1175,7 +1177,7 @@ var NoOptionsMessage = function NoOptionsMessage(_ref6) {
|
|
|
1175
1177
|
};
|
|
1176
1178
|
var LoadingMessage = function LoadingMessage(_ref7) {
|
|
1177
1179
|
var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
|
|
1178
|
-
return jsx("div", _extends
|
|
1180
|
+
return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
1179
1181
|
children: children,
|
|
1180
1182
|
innerProps: innerProps
|
|
1181
1183
|
}), "loadingMessage", {
|
|
@@ -1259,7 +1261,7 @@ var MenuPortal = function MenuPortal(props) {
|
|
|
1259
1261
|
// bail early if required elements aren't present
|
|
1260
1262
|
if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
|
|
1261
1263
|
// same wrapper element whether fixed or portalled
|
|
1262
|
-
var menuWrapper = jsx("div", _extends
|
|
1264
|
+
var menuWrapper = jsx("div", _extends({
|
|
1263
1265
|
ref: setMenuPortalElement
|
|
1264
1266
|
}, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
1265
1267
|
offset: computedPosition.offset,
|
|
@@ -1287,7 +1289,7 @@ var containerCSS = function containerCSS(_ref) {
|
|
|
1287
1289
|
};
|
|
1288
1290
|
var SelectContainer = function SelectContainer(props) {
|
|
1289
1291
|
var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
|
|
1290
|
-
return jsx("div", _extends
|
|
1292
|
+
return jsx("div", _extends({}, getStyleProps(props, "container", {
|
|
1291
1293
|
"--is-disabled": isDisabled,
|
|
1292
1294
|
"--is-rtl": isRtl
|
|
1293
1295
|
}), innerProps), children);
|
|
@@ -1311,7 +1313,7 @@ var valueContainerCSS = function valueContainerCSS(_ref2, unstyled) {
|
|
|
1311
1313
|
};
|
|
1312
1314
|
var ValueContainer = function ValueContainer(props) {
|
|
1313
1315
|
var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
|
|
1314
|
-
return jsx("div", _extends
|
|
1316
|
+
return jsx("div", _extends({}, getStyleProps(props, "valueContainer", {
|
|
1315
1317
|
"value-container": true,
|
|
1316
1318
|
"value-container--is-multi": isMulti,
|
|
1317
1319
|
"value-container--has-value": hasValue
|
|
@@ -1330,7 +1332,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS() {
|
|
|
1330
1332
|
};
|
|
1331
1333
|
var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
1332
1334
|
var children = props.children, innerProps = props.innerProps;
|
|
1333
|
-
return jsx("div", _extends
|
|
1335
|
+
return jsx("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
|
|
1334
1336
|
indicators: true
|
|
1335
1337
|
}), innerProps), children);
|
|
1336
1338
|
};
|
|
@@ -1359,7 +1361,7 @@ var _ref2$2 = process.env.NODE_ENV === "production" ? {
|
|
|
1359
1361
|
};
|
|
1360
1362
|
var Svg = function Svg(_ref) {
|
|
1361
1363
|
var size = _ref.size, props = _objectWithoutProperties(_ref, _excluded$2);
|
|
1362
|
-
return jsx("svg", _extends
|
|
1364
|
+
return jsx("svg", _extends({
|
|
1363
1365
|
height: size,
|
|
1364
1366
|
width: size,
|
|
1365
1367
|
viewBox: "0 0 20 20",
|
|
@@ -1369,14 +1371,14 @@ var Svg = function Svg(_ref) {
|
|
|
1369
1371
|
}, props));
|
|
1370
1372
|
};
|
|
1371
1373
|
var CrossIcon = function CrossIcon(props) {
|
|
1372
|
-
return jsx(Svg, _extends
|
|
1374
|
+
return jsx(Svg, _extends({
|
|
1373
1375
|
size: 20
|
|
1374
1376
|
}, props), jsx("path", {
|
|
1375
1377
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
1376
1378
|
}));
|
|
1377
1379
|
};
|
|
1378
1380
|
var DownChevron = function DownChevron(props) {
|
|
1379
|
-
return jsx(Svg, _extends
|
|
1381
|
+
return jsx(Svg, _extends({
|
|
1380
1382
|
size: 20
|
|
1381
1383
|
}, props), jsx("path", {
|
|
1382
1384
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
@@ -1402,7 +1404,7 @@ var baseCSS = function baseCSS(_ref3, unstyled) {
|
|
|
1402
1404
|
var dropdownIndicatorCSS = baseCSS;
|
|
1403
1405
|
var DropdownIndicator = function DropdownIndicator(props) {
|
|
1404
1406
|
var children = props.children, innerProps = props.innerProps;
|
|
1405
|
-
return jsx("div", _extends
|
|
1407
|
+
return jsx("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
|
|
1406
1408
|
indicator: true,
|
|
1407
1409
|
"dropdown-indicator": true
|
|
1408
1410
|
}), innerProps), children || jsx(DownChevron, null));
|
|
@@ -1410,7 +1412,7 @@ var DropdownIndicator = function DropdownIndicator(props) {
|
|
|
1410
1412
|
var clearIndicatorCSS = baseCSS;
|
|
1411
1413
|
var ClearIndicator = function ClearIndicator(props) {
|
|
1412
1414
|
var children = props.children, innerProps = props.innerProps;
|
|
1413
|
-
return jsx("div", _extends
|
|
1415
|
+
return jsx("div", _extends({}, getStyleProps(props, "clearIndicator", {
|
|
1414
1416
|
indicator: true,
|
|
1415
1417
|
"clear-indicator": true
|
|
1416
1418
|
}), innerProps), children || jsx(CrossIcon, null));
|
|
@@ -1432,7 +1434,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref4, unstyled) {
|
|
|
1432
1434
|
};
|
|
1433
1435
|
var IndicatorSeparator = function IndicatorSeparator(props) {
|
|
1434
1436
|
var innerProps = props.innerProps;
|
|
1435
|
-
return jsx("span", _extends
|
|
1437
|
+
return jsx("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
|
|
1436
1438
|
"indicator-separator": true
|
|
1437
1439
|
})));
|
|
1438
1440
|
};
|
|
@@ -1476,7 +1478,7 @@ var LoadingDot = function LoadingDot(_ref6) {
|
|
|
1476
1478
|
};
|
|
1477
1479
|
var LoadingIndicator = function LoadingIndicator(_ref7) {
|
|
1478
1480
|
var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
1479
|
-
return jsx("div", _extends
|
|
1481
|
+
return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
1480
1482
|
innerProps: innerProps,
|
|
1481
1483
|
isRtl: isRtl,
|
|
1482
1484
|
size: size
|
|
@@ -1521,7 +1523,7 @@ var css$1 = function css(_ref, unstyled) {
|
|
|
1521
1523
|
};
|
|
1522
1524
|
var Control = function Control(props) {
|
|
1523
1525
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
|
|
1524
|
-
return jsx("div", _extends
|
|
1526
|
+
return jsx("div", _extends({
|
|
1525
1527
|
ref: innerRef
|
|
1526
1528
|
}, getStyleProps(props, "control", {
|
|
1527
1529
|
control: true,
|
|
@@ -1545,9 +1547,9 @@ var groupCSS = function groupCSS(_ref, unstyled) {
|
|
|
1545
1547
|
};
|
|
1546
1548
|
var Group = function Group(props) {
|
|
1547
1549
|
var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames = props.getClassNames, Heading = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
|
|
1548
|
-
return jsx("div", _extends
|
|
1550
|
+
return jsx("div", _extends({}, getStyleProps(props, "group", {
|
|
1549
1551
|
group: true
|
|
1550
|
-
}), innerProps), jsx(Heading, _extends
|
|
1552
|
+
}), innerProps), jsx(Heading, _extends({}, headingProps, {
|
|
1551
1553
|
selectProps: selectProps,
|
|
1552
1554
|
theme: theme,
|
|
1553
1555
|
getStyles: getStyles,
|
|
@@ -1575,7 +1577,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
1575
1577
|
var _cleanCommonProps = cleanCommonProps(props);
|
|
1576
1578
|
_cleanCommonProps.data;
|
|
1577
1579
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
|
|
1578
|
-
return jsx("div", _extends
|
|
1580
|
+
return jsx("div", _extends({}, getStyleProps(props, "groupHeading", {
|
|
1579
1581
|
"group-heading": true
|
|
1580
1582
|
}), innerProps));
|
|
1581
1583
|
};
|
|
@@ -1632,11 +1634,11 @@ var inputStyle = function inputStyle(isHidden) {
|
|
|
1632
1634
|
var Input = function Input(props) {
|
|
1633
1635
|
var cx = props.cx, value = props.value;
|
|
1634
1636
|
var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$5);
|
|
1635
|
-
return jsx("div", _extends
|
|
1637
|
+
return jsx("div", _extends({}, getStyleProps(props, "input", {
|
|
1636
1638
|
"input-container": true
|
|
1637
1639
|
}), {
|
|
1638
1640
|
"data-value": value || ""
|
|
1639
|
-
}), jsx("input", _extends
|
|
1641
|
+
}), jsx("input", _extends({
|
|
1640
1642
|
className: cx({
|
|
1641
1643
|
input: true
|
|
1642
1644
|
}, inputClassName),
|
|
@@ -1696,7 +1698,7 @@ var MultiValueContainer = MultiValueGeneric;
|
|
|
1696
1698
|
var MultiValueLabel = MultiValueGeneric;
|
|
1697
1699
|
function MultiValueRemove(_ref5) {
|
|
1698
1700
|
var children = _ref5.children, innerProps = _ref5.innerProps;
|
|
1699
|
-
return jsx("div", _extends
|
|
1701
|
+
return jsx("div", _extends({
|
|
1700
1702
|
role: "button"
|
|
1701
1703
|
}, innerProps), children || jsx(CrossIcon, {
|
|
1702
1704
|
size: 14
|
|
@@ -1751,7 +1753,7 @@ var optionCSS = function optionCSS(_ref, unstyled) {
|
|
|
1751
1753
|
};
|
|
1752
1754
|
var Option = function Option(props) {
|
|
1753
1755
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
1754
|
-
return jsx("div", _extends
|
|
1756
|
+
return jsx("div", _extends({}, getStyleProps(props, "option", {
|
|
1755
1757
|
option: true,
|
|
1756
1758
|
"option--is-disabled": isDisabled,
|
|
1757
1759
|
"option--is-focused": isFocused,
|
|
@@ -1775,7 +1777,7 @@ var placeholderCSS = function placeholderCSS(_ref, unstyled) {
|
|
|
1775
1777
|
};
|
|
1776
1778
|
var Placeholder = function Placeholder(props) {
|
|
1777
1779
|
var children = props.children, innerProps = props.innerProps;
|
|
1778
|
-
return jsx("div", _extends
|
|
1780
|
+
return jsx("div", _extends({}, getStyleProps(props, "placeholder", {
|
|
1779
1781
|
placeholder: true
|
|
1780
1782
|
}), innerProps), children);
|
|
1781
1783
|
};
|
|
@@ -1797,7 +1799,7 @@ var css = function css(_ref, unstyled) {
|
|
|
1797
1799
|
};
|
|
1798
1800
|
var SingleValue = function SingleValue(props) {
|
|
1799
1801
|
var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
|
|
1800
|
-
return jsx("div", _extends
|
|
1802
|
+
return jsx("div", _extends({}, getStyleProps(props, "singleValue", {
|
|
1801
1803
|
"single-value": true,
|
|
1802
1804
|
"single-value--is-disabled": isDisabled
|
|
1803
1805
|
}), innerProps), children);
|
|
@@ -1855,7 +1857,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
1855
1857
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
1856
1858
|
};
|
|
1857
1859
|
var A11yText = function A11yText(props) {
|
|
1858
|
-
return jsx("span", _extends
|
|
1860
|
+
return jsx("span", _extends({
|
|
1859
1861
|
css: _ref
|
|
1860
1862
|
}, props));
|
|
1861
1863
|
};
|
|
@@ -2442,7 +2444,7 @@ function DummyInput(_ref) {
|
|
|
2442
2444
|
var innerRef = _ref.innerRef, props = _objectWithoutProperties(_ref, _excluded);
|
|
2443
2445
|
// Remove animation props not meant for HTML elements
|
|
2444
2446
|
var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
|
|
2445
|
-
return jsx("input", _extends
|
|
2447
|
+
return jsx("input", _extends({
|
|
2446
2448
|
ref: innerRef
|
|
2447
2449
|
}, filteredProps, {
|
|
2448
2450
|
css: /*#__PURE__*/ css$2({
|
|
@@ -3955,7 +3957,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
3955
3957
|
});
|
|
3956
3958
|
if (!isSearchable) {
|
|
3957
3959
|
// use a dummy input to maintain focus/blur functionality
|
|
3958
|
-
return /*#__PURE__*/ React.createElement(DummyInput, _extends
|
|
3960
|
+
return /*#__PURE__*/ React.createElement(DummyInput, _extends({
|
|
3959
3961
|
id: id,
|
|
3960
3962
|
innerRef: this.getInputRef,
|
|
3961
3963
|
onBlur: this.onInputBlur,
|
|
@@ -3968,7 +3970,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
3968
3970
|
value: ""
|
|
3969
3971
|
}, ariaAttributes));
|
|
3970
3972
|
}
|
|
3971
|
-
return /*#__PURE__*/ React.createElement(Input, _extends
|
|
3973
|
+
return /*#__PURE__*/ React.createElement(Input, _extends({}, commonProps, {
|
|
3972
3974
|
autoCapitalize: "none",
|
|
3973
3975
|
autoComplete: "off",
|
|
3974
3976
|
autoCorrect: "off",
|
|
@@ -3996,7 +3998,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
3996
3998
|
var _this$props9 = this.props, controlShouldRenderValue = _this$props9.controlShouldRenderValue, isDisabled = _this$props9.isDisabled, isMulti = _this$props9.isMulti, inputValue = _this$props9.inputValue, placeholder = _this$props9.placeholder;
|
|
3997
3999
|
var _this$state5 = this.state, selectValue = _this$state5.selectValue, focusedValue = _this$state5.focusedValue, isFocused = _this$state5.isFocused;
|
|
3998
4000
|
if (!this.hasValue() || !controlShouldRenderValue) {
|
|
3999
|
-
return inputValue ? null : /*#__PURE__*/ React.createElement(Placeholder, _extends
|
|
4001
|
+
return inputValue ? null : /*#__PURE__*/ React.createElement(Placeholder, _extends({}, commonProps, {
|
|
4000
4002
|
key: "placeholder",
|
|
4001
4003
|
isDisabled: isDisabled,
|
|
4002
4004
|
isFocused: isFocused,
|
|
@@ -4009,7 +4011,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4009
4011
|
return selectValue.map(function(opt, index) {
|
|
4010
4012
|
var isOptionFocused = opt === focusedValue;
|
|
4011
4013
|
var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
|
|
4012
|
-
return /*#__PURE__*/ React.createElement(MultiValue, _extends
|
|
4014
|
+
return /*#__PURE__*/ React.createElement(MultiValue, _extends({}, commonProps, {
|
|
4013
4015
|
components: {
|
|
4014
4016
|
Container: MultiValueContainer,
|
|
4015
4017
|
Label: MultiValueLabel,
|
|
@@ -4038,7 +4040,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4038
4040
|
return null;
|
|
4039
4041
|
}
|
|
4040
4042
|
var singleValue = selectValue[0];
|
|
4041
|
-
return /*#__PURE__*/ React.createElement(SingleValue, _extends
|
|
4043
|
+
return /*#__PURE__*/ React.createElement(SingleValue, _extends({}, commonProps, {
|
|
4042
4044
|
data: singleValue,
|
|
4043
4045
|
isDisabled: isDisabled
|
|
4044
4046
|
}), this.formatOptionLabel(singleValue, "value"));
|
|
@@ -4059,7 +4061,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4059
4061
|
onTouchEnd: this.onClearIndicatorTouchEnd,
|
|
4060
4062
|
"aria-hidden": "true"
|
|
4061
4063
|
};
|
|
4062
|
-
return /*#__PURE__*/ React.createElement(ClearIndicator, _extends
|
|
4064
|
+
return /*#__PURE__*/ React.createElement(ClearIndicator, _extends({}, commonProps, {
|
|
4063
4065
|
innerProps: innerProps,
|
|
4064
4066
|
isFocused: isFocused
|
|
4065
4067
|
}));
|
|
@@ -4076,7 +4078,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4076
4078
|
var innerProps = {
|
|
4077
4079
|
"aria-hidden": "true"
|
|
4078
4080
|
};
|
|
4079
|
-
return /*#__PURE__*/ React.createElement(LoadingIndicator, _extends
|
|
4081
|
+
return /*#__PURE__*/ React.createElement(LoadingIndicator, _extends({}, commonProps, {
|
|
4080
4082
|
innerProps: innerProps,
|
|
4081
4083
|
isDisabled: isDisabled,
|
|
4082
4084
|
isFocused: isFocused
|
|
@@ -4092,7 +4094,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4092
4094
|
var commonProps = this.commonProps;
|
|
4093
4095
|
var isDisabled = this.props.isDisabled;
|
|
4094
4096
|
var isFocused = this.state.isFocused;
|
|
4095
|
-
return /*#__PURE__*/ React.createElement(IndicatorSeparator, _extends
|
|
4097
|
+
return /*#__PURE__*/ React.createElement(IndicatorSeparator, _extends({}, commonProps, {
|
|
4096
4098
|
isDisabled: isDisabled,
|
|
4097
4099
|
isFocused: isFocused
|
|
4098
4100
|
}));
|
|
@@ -4111,7 +4113,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4111
4113
|
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
|
4112
4114
|
"aria-hidden": "true"
|
|
4113
4115
|
};
|
|
4114
|
-
return /*#__PURE__*/ React.createElement(DropdownIndicator, _extends
|
|
4116
|
+
return /*#__PURE__*/ React.createElement(DropdownIndicator, _extends({}, commonProps, {
|
|
4115
4117
|
innerProps: innerProps,
|
|
4116
4118
|
isDisabled: isDisabled,
|
|
4117
4119
|
isFocused: isFocused
|
|
@@ -4147,7 +4149,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4147
4149
|
role: "option",
|
|
4148
4150
|
"aria-selected": _this4.state.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
|
|
4149
4151
|
};
|
|
4150
|
-
return /*#__PURE__*/ React.createElement(Option, _extends
|
|
4152
|
+
return /*#__PURE__*/ React.createElement(Option, _extends({}, commonProps, {
|
|
4151
4153
|
innerProps: innerProps,
|
|
4152
4154
|
data: data,
|
|
4153
4155
|
isDisabled: isDisabled,
|
|
@@ -4167,7 +4169,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4167
4169
|
var _data = item.data, options = item.options, groupIndex = item.index;
|
|
4168
4170
|
var groupId = "".concat(_this4.getElementId("group"), "-").concat(groupIndex);
|
|
4169
4171
|
var headingId = "".concat(groupId, "-heading");
|
|
4170
|
-
return /*#__PURE__*/ React.createElement(Group, _extends
|
|
4172
|
+
return /*#__PURE__*/ React.createElement(Group, _extends({}, commonProps, {
|
|
4171
4173
|
key: groupId,
|
|
4172
4174
|
data: _data,
|
|
4173
4175
|
options: options,
|
|
@@ -4204,9 +4206,9 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4204
4206
|
menuPosition: menuPosition,
|
|
4205
4207
|
menuShouldScrollIntoView: menuShouldScrollIntoView
|
|
4206
4208
|
};
|
|
4207
|
-
var menuElement = /*#__PURE__*/ React.createElement(MenuPlacer, _extends
|
|
4209
|
+
var menuElement = /*#__PURE__*/ React.createElement(MenuPlacer, _extends({}, commonProps, menuPlacementProps), function(_ref4) {
|
|
4208
4210
|
var ref = _ref4.ref, _ref4$placerProps = _ref4.placerProps, placement = _ref4$placerProps.placement, maxHeight = _ref4$placerProps.maxHeight;
|
|
4209
|
-
return /*#__PURE__*/ React.createElement(Menu, _extends
|
|
4211
|
+
return /*#__PURE__*/ React.createElement(Menu, _extends({}, commonProps, menuPlacementProps, {
|
|
4210
4212
|
innerRef: ref,
|
|
4211
4213
|
innerProps: {
|
|
4212
4214
|
onMouseDown: _this4.onMenuMouseDown,
|
|
@@ -4220,7 +4222,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4220
4222
|
onBottomArrive: onMenuScrollToBottom,
|
|
4221
4223
|
lockEnabled: menuShouldBlockScroll
|
|
4222
4224
|
}, function(scrollTargetRef) {
|
|
4223
|
-
return /*#__PURE__*/ React.createElement(MenuList, _extends
|
|
4225
|
+
return /*#__PURE__*/ React.createElement(MenuList, _extends({}, commonProps, {
|
|
4224
4226
|
innerRef: function innerRef(instance) {
|
|
4225
4227
|
_this4.getMenuListRef(instance);
|
|
4226
4228
|
scrollTargetRef(instance);
|
|
@@ -4239,7 +4241,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4239
4241
|
// positioning behaviour is almost identical for portalled and fixed,
|
|
4240
4242
|
// so we use the same component. the actual portalling logic is forked
|
|
4241
4243
|
// within the component based on `menuPosition`
|
|
4242
|
-
return menuPortalTarget || menuPosition === "fixed" ? /*#__PURE__*/ React.createElement(MenuPortal, _extends
|
|
4244
|
+
return menuPortalTarget || menuPosition === "fixed" ? /*#__PURE__*/ React.createElement(MenuPortal, _extends({}, commonProps, {
|
|
4243
4245
|
appendTo: menuPortalTarget,
|
|
4244
4246
|
controlElement: this.controlRef,
|
|
4245
4247
|
menuPlacement: menuPlacement,
|
|
@@ -4301,7 +4303,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4301
4303
|
var commonProps = this.commonProps;
|
|
4302
4304
|
var _this$state6 = this.state, ariaSelection = _this$state6.ariaSelection, focusedOption = _this$state6.focusedOption, focusedValue = _this$state6.focusedValue, isFocused = _this$state6.isFocused, selectValue = _this$state6.selectValue;
|
|
4303
4305
|
var focusableOptions = this.getFocusableOptions();
|
|
4304
|
-
return /*#__PURE__*/ React.createElement(LiveRegion$1, _extends
|
|
4306
|
+
return /*#__PURE__*/ React.createElement(LiveRegion$1, _extends({}, commonProps, {
|
|
4305
4307
|
id: this.getElementId("live-region"),
|
|
4306
4308
|
ariaSelection: ariaSelection,
|
|
4307
4309
|
focusedOption: focusedOption,
|
|
@@ -4320,7 +4322,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4320
4322
|
var _this$props14 = this.props, className = _this$props14.className, id = _this$props14.id, isDisabled = _this$props14.isDisabled, menuIsOpen = _this$props14.menuIsOpen;
|
|
4321
4323
|
var isFocused = this.state.isFocused;
|
|
4322
4324
|
var commonProps = this.commonProps = this.getCommonProps();
|
|
4323
|
-
return /*#__PURE__*/ React.createElement(SelectContainer, _extends
|
|
4325
|
+
return /*#__PURE__*/ React.createElement(SelectContainer, _extends({}, commonProps, {
|
|
4324
4326
|
className: className,
|
|
4325
4327
|
innerProps: {
|
|
4326
4328
|
id: id,
|
|
@@ -4328,7 +4330,7 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4328
4330
|
},
|
|
4329
4331
|
isDisabled: isDisabled,
|
|
4330
4332
|
isFocused: isFocused
|
|
4331
|
-
}), this.renderLiveRegion(), /*#__PURE__*/ React.createElement(Control, _extends
|
|
4333
|
+
}), this.renderLiveRegion(), /*#__PURE__*/ React.createElement(Control, _extends({}, commonProps, {
|
|
4332
4334
|
innerRef: this.getControlRef,
|
|
4333
4335
|
innerProps: {
|
|
4334
4336
|
onMouseDown: this.onControlMouseDown,
|
|
@@ -4337,9 +4339,9 @@ var Select = /*#__PURE__*/ function(_Component) {
|
|
|
4337
4339
|
isDisabled: isDisabled,
|
|
4338
4340
|
isFocused: isFocused,
|
|
4339
4341
|
menuIsOpen: menuIsOpen
|
|
4340
|
-
}), /*#__PURE__*/ React.createElement(ValueContainer, _extends
|
|
4342
|
+
}), /*#__PURE__*/ React.createElement(ValueContainer, _extends({}, commonProps, {
|
|
4341
4343
|
isDisabled: isDisabled
|
|
4342
|
-
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/ React.createElement(IndicatorsContainer, _extends
|
|
4344
|
+
}), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/ React.createElement(IndicatorsContainer, _extends({}, commonProps, {
|
|
4343
4345
|
isDisabled: isDisabled
|
|
4344
4346
|
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
|
4345
4347
|
}
|
|
@@ -4403,7 +4405,7 @@ Select.defaultProps = defaultProps;
|
|
|
4403
4405
|
|
|
4404
4406
|
var StateManagedSelect = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
4405
4407
|
var baseSelectProps = useStateManager(props);
|
|
4406
|
-
return /*#__PURE__*/ React.createElement(Select, _extends
|
|
4408
|
+
return /*#__PURE__*/ React.createElement(Select, _extends({
|
|
4407
4409
|
ref: ref
|
|
4408
4410
|
}, baseSelectProps));
|
|
4409
4411
|
});
|
|
@@ -6110,7 +6112,7 @@ var StyleText = dt.div(_templateObject5());
|
|
|
6110
6112
|
function _array_with_holes$6(arr) {
|
|
6111
6113
|
if (Array.isArray(arr)) return arr;
|
|
6112
6114
|
}
|
|
6113
|
-
function _define_property$
|
|
6115
|
+
function _define_property$2(obj, key, value) {
|
|
6114
6116
|
if (key in obj) {
|
|
6115
6117
|
Object.defineProperty(obj, key, {
|
|
6116
6118
|
value: value,
|
|
@@ -6150,7 +6152,7 @@ function _iterable_to_array_limit$6(arr, i) {
|
|
|
6150
6152
|
function _non_iterable_rest$6() {
|
|
6151
6153
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6152
6154
|
}
|
|
6153
|
-
function _object_spread$
|
|
6155
|
+
function _object_spread$2(target) {
|
|
6154
6156
|
for(var i = 1; i < arguments.length; i++){
|
|
6155
6157
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6156
6158
|
var ownKeys = Object.keys(source);
|
|
@@ -6160,12 +6162,12 @@ function _object_spread$3(target) {
|
|
|
6160
6162
|
}));
|
|
6161
6163
|
}
|
|
6162
6164
|
ownKeys.forEach(function(key) {
|
|
6163
|
-
_define_property$
|
|
6165
|
+
_define_property$2(target, key, source[key]);
|
|
6164
6166
|
});
|
|
6165
6167
|
}
|
|
6166
6168
|
return target;
|
|
6167
6169
|
}
|
|
6168
|
-
function ownKeys$
|
|
6170
|
+
function ownKeys$2(object, enumerableOnly) {
|
|
6169
6171
|
var keys = Object.keys(object);
|
|
6170
6172
|
if (Object.getOwnPropertySymbols) {
|
|
6171
6173
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -6178,12 +6180,12 @@ function ownKeys$3(object, enumerableOnly) {
|
|
|
6178
6180
|
}
|
|
6179
6181
|
return keys;
|
|
6180
6182
|
}
|
|
6181
|
-
function _object_spread_props$
|
|
6183
|
+
function _object_spread_props$2(target, source) {
|
|
6182
6184
|
source = source != null ? source : {};
|
|
6183
6185
|
if (Object.getOwnPropertyDescriptors) {
|
|
6184
6186
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6185
6187
|
} else {
|
|
6186
|
-
ownKeys$
|
|
6188
|
+
ownKeys$2(Object(source)).forEach(function(key) {
|
|
6187
6189
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6188
6190
|
});
|
|
6189
6191
|
}
|
|
@@ -6288,14 +6290,14 @@ var CityDistrict = function(param) {
|
|
|
6288
6290
|
color: "6f6f6f"
|
|
6289
6291
|
})
|
|
6290
6292
|
}),
|
|
6291
|
-
/*#__PURE__*/ jsxs("select", _object_spread_props$
|
|
6293
|
+
/*#__PURE__*/ jsxs("select", _object_spread_props$2(_object_spread$2({
|
|
6292
6294
|
className: [
|
|
6293
6295
|
isDisabled ? "text-[#B0B0B0] bg-[#e5e7eb] cursor-not-allowed" : "bg-white text-[#6f6f6f]",
|
|
6294
6296
|
"customSelect w-full h-11 text-[15px] py-2 pr-4 rounded-2xl border border-solid border-[#B4B4B4]",
|
|
6295
6297
|
(item === null || item === void 0 ? void 0 : item.icon) ? "pl-14" : "pl-4"
|
|
6296
6298
|
].join(" "),
|
|
6297
6299
|
style: item === null || item === void 0 ? void 0 : item.style
|
|
6298
|
-
}, register((item === null || item === void 0 ? void 0 : item.cityName) || "", _object_spread$
|
|
6300
|
+
}, register((item === null || item === void 0 ? void 0 : item.cityName) || "", _object_spread$2({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
|
|
6299
6301
|
onChange: function(e) {
|
|
6300
6302
|
return handleCity(e, (item === null || item === void 0 ? void 0 : item.cityName) || "");
|
|
6301
6303
|
},
|
|
@@ -6326,14 +6328,14 @@ var CityDistrict = function(param) {
|
|
|
6326
6328
|
color: "6f6f6f"
|
|
6327
6329
|
})
|
|
6328
6330
|
}),
|
|
6329
|
-
/*#__PURE__*/ jsxs("select", _object_spread_props$
|
|
6331
|
+
/*#__PURE__*/ jsxs("select", _object_spread_props$2(_object_spread$2({
|
|
6330
6332
|
className: [
|
|
6331
6333
|
isDisabled ? "text-[#B0B0B0] bg-[#e5e7eb] cursor-not-allowed" : "bg-white text-[#6f6f6f]",
|
|
6332
6334
|
"customSelect w-full h-11 text-[15px] py-2 pr-4 rounded-2xl border border-solid border-[#B4B4B4]",
|
|
6333
6335
|
(item === null || item === void 0 ? void 0 : item.subIcon) ? "pl-14" : "pl-4"
|
|
6334
6336
|
].join(" "),
|
|
6335
6337
|
style: item === null || item === void 0 ? void 0 : item.style
|
|
6336
|
-
}, register((item === null || item === void 0 ? void 0 : item.districtName) || "", _object_spread$
|
|
6338
|
+
}, register((item === null || item === void 0 ? void 0 : item.districtName) || "", _object_spread$2({}, item === null || item === void 0 ? void 0 : item.validateOption))), {
|
|
6337
6339
|
onChange: function(e) {
|
|
6338
6340
|
return handleCity(e, (item === null || item === void 0 ? void 0 : item.districtName) || "");
|
|
6339
6341
|
},
|
|
@@ -6706,144 +6708,6 @@ var CustomUpload$1 = function(param) {
|
|
|
6706
6708
|
});
|
|
6707
6709
|
};
|
|
6708
6710
|
|
|
6709
|
-
function _define_property$2(obj, key, value) {
|
|
6710
|
-
if (key in obj) {
|
|
6711
|
-
Object.defineProperty(obj, key, {
|
|
6712
|
-
value: value,
|
|
6713
|
-
enumerable: true,
|
|
6714
|
-
configurable: true,
|
|
6715
|
-
writable: true
|
|
6716
|
-
});
|
|
6717
|
-
} else {
|
|
6718
|
-
obj[key] = value;
|
|
6719
|
-
}
|
|
6720
|
-
return obj;
|
|
6721
|
-
}
|
|
6722
|
-
function _extends() {
|
|
6723
|
-
_extends = Object.assign || function(target) {
|
|
6724
|
-
for(var i = 1; i < arguments.length; i++){
|
|
6725
|
-
var source = arguments[i];
|
|
6726
|
-
for(var key in source){
|
|
6727
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
6728
|
-
target[key] = source[key];
|
|
6729
|
-
}
|
|
6730
|
-
}
|
|
6731
|
-
}
|
|
6732
|
-
return target;
|
|
6733
|
-
};
|
|
6734
|
-
return _extends.apply(this, arguments);
|
|
6735
|
-
}
|
|
6736
|
-
function _object_destructuring_empty(o) {
|
|
6737
|
-
if (o === null || o === void 0) throw new TypeError("Cannot destructure " + o);
|
|
6738
|
-
return o;
|
|
6739
|
-
}
|
|
6740
|
-
function _object_spread$2(target) {
|
|
6741
|
-
for(var i = 1; i < arguments.length; i++){
|
|
6742
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
6743
|
-
var ownKeys = Object.keys(source);
|
|
6744
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
6745
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
6746
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
6747
|
-
}));
|
|
6748
|
-
}
|
|
6749
|
-
ownKeys.forEach(function(key) {
|
|
6750
|
-
_define_property$2(target, key, source[key]);
|
|
6751
|
-
});
|
|
6752
|
-
}
|
|
6753
|
-
return target;
|
|
6754
|
-
}
|
|
6755
|
-
function ownKeys$2(object, enumerableOnly) {
|
|
6756
|
-
var keys = Object.keys(object);
|
|
6757
|
-
if (Object.getOwnPropertySymbols) {
|
|
6758
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
6759
|
-
if (enumerableOnly) {
|
|
6760
|
-
symbols = symbols.filter(function(sym) {
|
|
6761
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
6762
|
-
});
|
|
6763
|
-
}
|
|
6764
|
-
keys.push.apply(keys, symbols);
|
|
6765
|
-
}
|
|
6766
|
-
return keys;
|
|
6767
|
-
}
|
|
6768
|
-
function _object_spread_props$2(target, source) {
|
|
6769
|
-
source = source != null ? source : {};
|
|
6770
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
6771
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6772
|
-
} else {
|
|
6773
|
-
ownKeys$2(Object(source)).forEach(function(key) {
|
|
6774
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6775
|
-
});
|
|
6776
|
-
}
|
|
6777
|
-
return target;
|
|
6778
|
-
}
|
|
6779
|
-
var BaseSwitch = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
|
|
6780
|
-
var props = _extends({}, _object_destructuring_empty(_param));
|
|
6781
|
-
var control = useFormContext().control;
|
|
6782
|
-
var item = props.item;
|
|
6783
|
-
var size = (item === null || item === void 0 ? void 0 : item.size) || "large";
|
|
6784
|
-
var bgColor = (item === null || item === void 0 ? void 0 : item.color) === "blue" ? "data-[state=checked]:bg-blue-500" : (item === null || item === void 0 ? void 0 : item.color) === "red" ? "data-[state=checked]:bg-red-500" : (item === null || item === void 0 ? void 0 : item.color) === "green" ? "data-[state=checked]:bg-green-500" : (item === null || item === void 0 ? void 0 : item.color) === "yellow" ? "data-[state=checked]:bg-yellow-500" : "data-[state=checked]:bg-blue-500";
|
|
6785
|
-
var sizeClass = {
|
|
6786
|
-
small: {
|
|
6787
|
-
root: "h-4 w-7",
|
|
6788
|
-
thumb: "h-3 w-3 data-[state=checked]:translate-x-3 data-[state=unchecked]:translate-x-0"
|
|
6789
|
-
},
|
|
6790
|
-
medium: {
|
|
6791
|
-
root: "h-5 w-9",
|
|
6792
|
-
thumb: "h-4 w-4 data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
|
|
6793
|
-
},
|
|
6794
|
-
large: {
|
|
6795
|
-
root: "h-6 w-11",
|
|
6796
|
-
thumb: "h-5 w-5 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
6797
|
-
},
|
|
6798
|
-
xl: {
|
|
6799
|
-
root: "h-7 w-12",
|
|
6800
|
-
thumb: "h-5 w-5 data-[state=checked]:translate-x-5"
|
|
6801
|
-
},
|
|
6802
|
-
xxl: {
|
|
6803
|
-
root: "h-9 w-16",
|
|
6804
|
-
thumb: "h-7 w-7 data-[state=checked]:translate-x-7"
|
|
6805
|
-
}
|
|
6806
|
-
};
|
|
6807
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
6808
|
-
className: [
|
|
6809
|
-
(item === null || item === void 0 ? void 0 : item.className) || "h-24 w-full"
|
|
6810
|
-
].join(" "),
|
|
6811
|
-
children: [
|
|
6812
|
-
(item === null || item === void 0 ? void 0 : item.closeLabel) ? null : /*#__PURE__*/ jsx$1(FieldLabel, {
|
|
6813
|
-
item: item
|
|
6814
|
-
}),
|
|
6815
|
-
/*#__PURE__*/ jsx$1(Controller, {
|
|
6816
|
-
name: (item === null || item === void 0 ? void 0 : item.name) || "",
|
|
6817
|
-
control: control,
|
|
6818
|
-
render: function(param) {
|
|
6819
|
-
var field = param.field;
|
|
6820
|
-
return /*#__PURE__*/ jsxs("div", {
|
|
6821
|
-
className: "inline-flex items-center gap-2",
|
|
6822
|
-
children: [
|
|
6823
|
-
/*#__PURE__*/ jsx$1(SwitchPrimitives.Root, _object_spread_props$2(_object_spread$2({
|
|
6824
|
-
className: cn("ui-switch-root", "peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2", "disabled:cursor-not-allowed disabled:opacity-50", "data-[state=unchecked]:bg-gray-200", bgColor, sizeClass[size].root)
|
|
6825
|
-
}, props), {
|
|
6826
|
-
ref: ref,
|
|
6827
|
-
checked: field.value,
|
|
6828
|
-
onCheckedChange: field.onChange,
|
|
6829
|
-
id: item === null || item === void 0 ? void 0 : item.id,
|
|
6830
|
-
disabled: item === null || item === void 0 ? void 0 : item.disable,
|
|
6831
|
-
children: /*#__PURE__*/ jsx$1(SwitchPrimitives.Thumb, {
|
|
6832
|
-
className: cn("ui-switch-thumb", "pointer-events-none block rounded-full bg-white shadow-lg ring-0 transition-transform", "data-[state=unchecked]:translate-x-1", sizeClass[size].thumb)
|
|
6833
|
-
})
|
|
6834
|
-
})),
|
|
6835
|
-
(item === null || item === void 0 ? void 0 : item.labelRight) && /*#__PURE__*/ jsx$1("span", {
|
|
6836
|
-
className: cn("text-sm text-gray-700", item === null || item === void 0 ? void 0 : item.labelRightClassName),
|
|
6837
|
-
children: item === null || item === void 0 ? void 0 : item.labelRight
|
|
6838
|
-
})
|
|
6839
|
-
]
|
|
6840
|
-
});
|
|
6841
|
-
}
|
|
6842
|
-
})
|
|
6843
|
-
]
|
|
6844
|
-
});
|
|
6845
|
-
});
|
|
6846
|
-
|
|
6847
6711
|
var sizeClassMap = {
|
|
6848
6712
|
sm: "h-8 px-2 text-xs",
|
|
6849
6713
|
md: "h-[44px] px-3 text-base",
|
|
@@ -7125,49 +6989,6 @@ var DropdownList = function(param) {
|
|
|
7125
6989
|
* This allows the component to inject styles dynamically without requiring external CSS imports
|
|
7126
6990
|
*/ var FLATPICKR_CSS = '.flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,0.08);box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,0.08)}.flatpickr-calendar.open,.flatpickr-calendar.inline{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown 300ms cubic-bezier(.23,1,.32,1);animation:fpFadeInDown 300ms cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none !important;box-shadow:none !important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{position:absolute;display:block;pointer-events:none;border:solid transparent;content:\'\';height:0;width:0;left:22px}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9);height:34px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;cursor:pointer;position:absolute;top:0;height:34px;padding:10px;z-index:3;color:rgba(0,0,0,0.9);fill:rgba(0,0,0,0.9)}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{/*\n /*rtl:begin:ignore*/left:0/*\n /*rtl:end:ignore*/}/*\n /*rtl:begin:ignore*/\n/*\n /*rtl:end:ignore*/\n.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{/*\n /*rtl:begin:ignore*/right:0/*\n /*rtl:end:ignore*/}/*\n /*rtl:begin:ignore*/\n/*\n /*rtl:end:ignore*/\n.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:#959ea9}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,0.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,0.1)}.numInputWrapper span:active{background:rgba(0,0,0,0.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,0.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,0.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,0.5)}.numInputWrapper:hover{background:rgba(0,0,0,0.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:7.48px 0 0 0;line-height:1;height:34px;display:inline-block;text-align:center;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\0;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,0.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,0.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,0.5);background:transparent;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;color:inherit;cursor:pointer;font-size:inherit;font-family:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:initial;-webkit-box-sizing:border-box;-webkit-appearance:menulist;-moz-appearance:menulist;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,0.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,0.54);line-height:1;margin:0;text-align:center;display:block;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);opacity:1}.dayContainer + .dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:hover,.flatpickr-day.today:focus{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{color:rgba(57,57,57,0.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;color:rgba(57,57,57,0.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,0.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.flatpickr-rContainer{display:inline-block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.flatpickr-time input.flatpickr-hour{font-weight:bold}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{height:inherit;float:left;line-height:inherit;color:#393939;font-weight:bold;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes fpFadeInDown{from{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}';
|
|
7127
6991
|
|
|
7128
|
-
/**
|
|
7129
|
-
* Custom hook for dynamically injecting CSS into the document head
|
|
7130
|
-
* This allows components to include their required styles without external CSS imports
|
|
7131
|
-
*
|
|
7132
|
-
* @param css - The CSS string to inject
|
|
7133
|
-
* @param id - Unique identifier for the style element (to prevent duplicates)
|
|
7134
|
-
* @param cleanup - Whether to remove the style element when component unmounts (default: false)
|
|
7135
|
-
*/ var useInjectCSS = function(css, id) {
|
|
7136
|
-
var cleanup = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
7137
|
-
useEffect(function() {
|
|
7138
|
-
// Check if the style is already injected
|
|
7139
|
-
if (document.getElementById(id)) {
|
|
7140
|
-
return;
|
|
7141
|
-
}
|
|
7142
|
-
// Create a new style element
|
|
7143
|
-
var styleElement = document.createElement("style");
|
|
7144
|
-
styleElement.id = id;
|
|
7145
|
-
styleElement.type = "text/css";
|
|
7146
|
-
styleElement.innerHTML = css;
|
|
7147
|
-
// Append to document head
|
|
7148
|
-
document.head.appendChild(styleElement);
|
|
7149
|
-
// Cleanup function (only if cleanup is true)
|
|
7150
|
-
return function() {
|
|
7151
|
-
if (cleanup) {
|
|
7152
|
-
var existingStyle = document.getElementById(id);
|
|
7153
|
-
if (existingStyle) {
|
|
7154
|
-
document.head.removeChild(existingStyle);
|
|
7155
|
-
}
|
|
7156
|
-
}
|
|
7157
|
-
};
|
|
7158
|
-
}, [
|
|
7159
|
-
css,
|
|
7160
|
-
id,
|
|
7161
|
-
cleanup
|
|
7162
|
-
]);
|
|
7163
|
-
};
|
|
7164
|
-
/**
|
|
7165
|
-
* Hook specifically for injecting global styles that should persist
|
|
7166
|
-
* across component mounts/unmounts
|
|
7167
|
-
*/ var useInjectGlobalCSS = function(css, id) {
|
|
7168
|
-
return useInjectCSS(css, id, false);
|
|
7169
|
-
};
|
|
7170
|
-
|
|
7171
6992
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
7172
6993
|
// @ts-nocheck
|
|
7173
6994
|
function _define_property$1(obj, key, value) {
|