@sunggang/ui-lib 0.2.0 → 0.2.2
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/index.esm.js +1005 -93
- package/package.json +1 -1
- package/src/lib/Dropdown/index.d.ts +1 -1
package/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default, { useMemo as useMemo$1, useRef, useReducer, useEffect, useCallback as useCallback$1, forwardRef, useImperativeHandle, Fragment, useLayoutEffect, useContext, useState, Component, createRef } from 'react';
|
|
3
|
+
import React__default, { useMemo as useMemo$1, useRef, useReducer, useEffect, useCallback as useCallback$1, forwardRef, useImperativeHandle, Fragment, useLayoutEffect, useContext, useState, createContext, Component, createRef } from 'react';
|
|
4
4
|
import { Icon } from '@iconify/react';
|
|
5
5
|
import ReactDOM, { unstable_batchedUpdates } from 'react-dom';
|
|
6
6
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
@@ -1118,13 +1118,13 @@ var PropTypes = propTypes$1.exports;
|
|
|
1118
1118
|
* See the {@glink features/watchdog Watchdog feature guide} to learn the rationale behind it and how to use it.
|
|
1119
1119
|
*
|
|
1120
1120
|
* @internal
|
|
1121
|
-
*/ function _array_like_to_array$
|
|
1121
|
+
*/ function _array_like_to_array$b(arr, len) {
|
|
1122
1122
|
if (len == null || len > arr.length) len = arr.length;
|
|
1123
1123
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1124
1124
|
return arr2;
|
|
1125
1125
|
}
|
|
1126
|
-
function _array_without_holes$
|
|
1127
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1126
|
+
function _array_without_holes$5(arr) {
|
|
1127
|
+
if (Array.isArray(arr)) return _array_like_to_array$b(arr);
|
|
1128
1128
|
}
|
|
1129
1129
|
function _class_call_check$2(instance, Constructor) {
|
|
1130
1130
|
if (!(instance instanceof Constructor)) {
|
|
@@ -1152,22 +1152,22 @@ function _instanceof$c(left, right) {
|
|
|
1152
1152
|
return left instanceof right;
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
|
-
function _iterable_to_array$
|
|
1155
|
+
function _iterable_to_array$5(iter) {
|
|
1156
1156
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1157
1157
|
}
|
|
1158
|
-
function _non_iterable_spread$
|
|
1158
|
+
function _non_iterable_spread$5() {
|
|
1159
1159
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1160
1160
|
}
|
|
1161
|
-
function _to_consumable_array$
|
|
1162
|
-
return _array_without_holes$
|
|
1161
|
+
function _to_consumable_array$5(arr) {
|
|
1162
|
+
return _array_without_holes$5(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$b(arr) || _non_iterable_spread$5();
|
|
1163
1163
|
}
|
|
1164
|
-
function _unsupported_iterable_to_array$
|
|
1164
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
1165
1165
|
if (!o) return;
|
|
1166
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1166
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
1167
1167
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1168
1168
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1169
1169
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1170
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1170
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
1171
1171
|
}
|
|
1172
1172
|
var Watchdog = /*#__PURE__*/ function() {
|
|
1173
1173
|
function Watchdog(config) {
|
|
@@ -1273,7 +1273,7 @@ var Watchdog = /*#__PURE__*/ function() {
|
|
|
1273
1273
|
var callback = _step.value;
|
|
1274
1274
|
callback.apply(this, [
|
|
1275
1275
|
null
|
|
1276
|
-
].concat(_to_consumable_array$
|
|
1276
|
+
].concat(_to_consumable_array$5(args)));
|
|
1277
1277
|
}
|
|
1278
1278
|
} catch (err) {
|
|
1279
1279
|
_didIteratorError = true;
|
|
@@ -3754,12 +3754,12 @@ var now$1 = now;
|
|
|
3754
3754
|
/**
|
|
3755
3755
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3756
3756
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3757
|
-
*/ function _array_like_to_array$
|
|
3757
|
+
*/ function _array_like_to_array$a(arr, len) {
|
|
3758
3758
|
if (len == null || len > arr.length) len = arr.length;
|
|
3759
3759
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3760
3760
|
return arr2;
|
|
3761
3761
|
}
|
|
3762
|
-
function _array_with_holes$
|
|
3762
|
+
function _array_with_holes$7(arr) {
|
|
3763
3763
|
if (Array.isArray(arr)) return arr;
|
|
3764
3764
|
}
|
|
3765
3765
|
function _assert_this_initialized$1(self) {
|
|
@@ -3787,7 +3787,7 @@ function _create_class$1(Constructor, protoProps, staticProps) {
|
|
|
3787
3787
|
if (staticProps) _defineProperties$2(Constructor, staticProps);
|
|
3788
3788
|
return Constructor;
|
|
3789
3789
|
}
|
|
3790
|
-
function _define_property$
|
|
3790
|
+
function _define_property$c(obj, key, value) {
|
|
3791
3791
|
if (key in obj) {
|
|
3792
3792
|
Object.defineProperty(obj, key, {
|
|
3793
3793
|
value: value,
|
|
@@ -3835,7 +3835,7 @@ function _inherits$2(subClass, superClass) {
|
|
|
3835
3835
|
});
|
|
3836
3836
|
if (superClass) _set_prototype_of$1(subClass, superClass);
|
|
3837
3837
|
}
|
|
3838
|
-
function _iterable_to_array_limit$
|
|
3838
|
+
function _iterable_to_array_limit$7(arr, i) {
|
|
3839
3839
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3840
3840
|
if (_i == null) return;
|
|
3841
3841
|
var _arr = [];
|
|
@@ -3859,10 +3859,10 @@ function _iterable_to_array_limit$6(arr, i) {
|
|
|
3859
3859
|
}
|
|
3860
3860
|
return _arr;
|
|
3861
3861
|
}
|
|
3862
|
-
function _non_iterable_rest$
|
|
3862
|
+
function _non_iterable_rest$7() {
|
|
3863
3863
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3864
3864
|
}
|
|
3865
|
-
function _object_spread$
|
|
3865
|
+
function _object_spread$c(target) {
|
|
3866
3866
|
for(var i = 1; i < arguments.length; i++){
|
|
3867
3867
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3868
3868
|
var ownKeys = Object.keys(source);
|
|
@@ -3872,12 +3872,12 @@ function _object_spread$a(target) {
|
|
|
3872
3872
|
}));
|
|
3873
3873
|
}
|
|
3874
3874
|
ownKeys.forEach(function(key) {
|
|
3875
|
-
_define_property$
|
|
3875
|
+
_define_property$c(target, key, source[key]);
|
|
3876
3876
|
});
|
|
3877
3877
|
}
|
|
3878
3878
|
return target;
|
|
3879
3879
|
}
|
|
3880
|
-
function ownKeys$
|
|
3880
|
+
function ownKeys$c(object, enumerableOnly) {
|
|
3881
3881
|
var keys = Object.keys(object);
|
|
3882
3882
|
if (Object.getOwnPropertySymbols) {
|
|
3883
3883
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3890,12 +3890,12 @@ function ownKeys$a(object, enumerableOnly) {
|
|
|
3890
3890
|
}
|
|
3891
3891
|
return keys;
|
|
3892
3892
|
}
|
|
3893
|
-
function _object_spread_props$
|
|
3893
|
+
function _object_spread_props$9(target, source) {
|
|
3894
3894
|
source = source != null ? source : {};
|
|
3895
3895
|
if (Object.getOwnPropertyDescriptors) {
|
|
3896
3896
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3897
3897
|
} else {
|
|
3898
|
-
ownKeys$
|
|
3898
|
+
ownKeys$c(Object(source)).forEach(function(key) {
|
|
3899
3899
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3900
3900
|
});
|
|
3901
3901
|
}
|
|
@@ -3941,8 +3941,8 @@ function _set_prototype_of$1(o, p) {
|
|
|
3941
3941
|
};
|
|
3942
3942
|
return _set_prototype_of$1(o, p);
|
|
3943
3943
|
}
|
|
3944
|
-
function _sliced_to_array$
|
|
3945
|
-
return _array_with_holes$
|
|
3944
|
+
function _sliced_to_array$7(arr, i) {
|
|
3945
|
+
return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$7();
|
|
3946
3946
|
}
|
|
3947
3947
|
function _super_prop_base$1(object, property) {
|
|
3948
3948
|
while(!Object.prototype.hasOwnProperty.call(object, property)){
|
|
@@ -3955,13 +3955,13 @@ function _type_of$a(obj) {
|
|
|
3955
3955
|
"@swc/helpers - typeof";
|
|
3956
3956
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
3957
3957
|
}
|
|
3958
|
-
function _unsupported_iterable_to_array$
|
|
3958
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
3959
3959
|
if (!o) return;
|
|
3960
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3960
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
3961
3961
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3962
3962
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3963
3963
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3964
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3964
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
3965
3965
|
}
|
|
3966
3966
|
function _is_native_reflect_construct$1() {
|
|
3967
3967
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
@@ -4109,7 +4109,7 @@ var EditorWatchdog = /*#__PURE__*/ function(Watchdog) {
|
|
|
4109
4109
|
try {
|
|
4110
4110
|
// Traverse through the roots saved when the editor crashed and set up the discussed values.
|
|
4111
4111
|
for(var _iterator = Object.entries(_this._data.roots)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
4112
|
-
var _step_value = _sliced_to_array$
|
|
4112
|
+
var _step_value = _sliced_to_array$7(_step.value, 2), rootName = _step_value[0], rootData = _step_value[1];
|
|
4113
4113
|
if (rootData.isLoaded) {
|
|
4114
4114
|
existingRoots[rootName] = "";
|
|
4115
4115
|
rootsAttributes[rootName] = oldRootsAttributes[rootName] || {};
|
|
@@ -4131,7 +4131,7 @@ var EditorWatchdog = /*#__PURE__*/ function(Watchdog) {
|
|
|
4131
4131
|
}
|
|
4132
4132
|
}
|
|
4133
4133
|
}
|
|
4134
|
-
var updatedConfig = _object_spread_props$
|
|
4134
|
+
var updatedConfig = _object_spread_props$9(_object_spread$c({}, _this._config), {
|
|
4135
4135
|
extraPlugins: _this._config.extraPlugins || [],
|
|
4136
4136
|
lazyRoots: lazyRoots,
|
|
4137
4137
|
rootsAttributes: rootsAttributes,
|
|
@@ -4469,14 +4469,14 @@ var EditorWatchdog = /*#__PURE__*/ function(Watchdog) {
|
|
|
4469
4469
|
var _this = this;
|
|
4470
4470
|
var editor = this.editor;
|
|
4471
4471
|
Object.entries(this._data.roots).forEach(function(param) {
|
|
4472
|
-
var _param = _sliced_to_array$
|
|
4472
|
+
var _param = _sliced_to_array$7(param, 2), rootName = _param[0], _param_ = _param[1], content = _param_.content, attributes = _param_.attributes;
|
|
4473
4473
|
var parsedNodes = JSON.parse(content);
|
|
4474
4474
|
var parsedAttributes = JSON.parse(attributes);
|
|
4475
4475
|
var rootElement = editor.model.document.getRoot(rootName);
|
|
4476
4476
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
4477
4477
|
try {
|
|
4478
4478
|
for(var _iterator = parsedAttributes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
4479
|
-
var _step_value = _sliced_to_array$
|
|
4479
|
+
var _step_value = _sliced_to_array$7(_step.value, 2), key = _step_value[0], value = _step_value[1];
|
|
4480
4480
|
writer.setAttribute(key, value, rootElement);
|
|
4481
4481
|
}
|
|
4482
4482
|
} catch (err) {
|
|
@@ -4516,7 +4516,7 @@ var EditorWatchdog = /*#__PURE__*/ function(Watchdog) {
|
|
|
4516
4516
|
}
|
|
4517
4517
|
});
|
|
4518
4518
|
Object.entries(this._data.markers).forEach(function(param) {
|
|
4519
|
-
var _param = _sliced_to_array$
|
|
4519
|
+
var _param = _sliced_to_array$7(param, 2), markerName = _param[0], markerOptions = _param[1];
|
|
4520
4520
|
var document = editor.model.document;
|
|
4521
4521
|
var _markerOptions_rangeJSON = markerOptions.rangeJSON, start = _markerOptions_rangeJSON.start, end = _markerOptions_rangeJSON.end, options = _object_without_properties$7(markerOptions, [
|
|
4522
4522
|
"rangeJSON"
|
|
@@ -4525,7 +4525,7 @@ var EditorWatchdog = /*#__PURE__*/ function(Watchdog) {
|
|
|
4525
4525
|
var startPosition = writer.createPositionFromPath(root, start.path, start.stickiness);
|
|
4526
4526
|
var endPosition = writer.createPositionFromPath(root, end.path, end.stickiness);
|
|
4527
4527
|
var range = writer.createRange(startPosition, endPosition);
|
|
4528
|
-
writer.addMarker(markerName, _object_spread$
|
|
4528
|
+
writer.addMarker(markerName, _object_spread$c({
|
|
4529
4529
|
range: range
|
|
4530
4530
|
}, options));
|
|
4531
4531
|
});
|
|
@@ -4547,7 +4547,7 @@ var EditorWatchdog = /*#__PURE__*/ function(Watchdog) {
|
|
|
4547
4547
|
var commentThread = commentsRepository.getCommentThread(commentThreadData.threadId);
|
|
4548
4548
|
commentThread.remove();
|
|
4549
4549
|
}
|
|
4550
|
-
commentsRepository.addCommentThread(_object_spread$
|
|
4550
|
+
commentsRepository.addCommentThread(_object_spread$c({
|
|
4551
4551
|
channelId: channelId
|
|
4552
4552
|
}, commentThreadData));
|
|
4553
4553
|
});
|
|
@@ -72785,30 +72785,30 @@ function setObjProp(f, key, value) {
|
|
|
72785
72785
|
});
|
|
72786
72786
|
}
|
|
72787
72787
|
|
|
72788
|
-
function _array_like_to_array$
|
|
72788
|
+
function _array_like_to_array$9(arr, len) {
|
|
72789
72789
|
if (len == null || len > arr.length) len = arr.length;
|
|
72790
72790
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
72791
72791
|
return arr2;
|
|
72792
72792
|
}
|
|
72793
|
-
function _array_without_holes$
|
|
72794
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
72793
|
+
function _array_without_holes$4(arr) {
|
|
72794
|
+
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
72795
72795
|
}
|
|
72796
|
-
function _iterable_to_array$
|
|
72796
|
+
function _iterable_to_array$4(iter) {
|
|
72797
72797
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
72798
72798
|
}
|
|
72799
|
-
function _non_iterable_spread$
|
|
72799
|
+
function _non_iterable_spread$4() {
|
|
72800
72800
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
72801
72801
|
}
|
|
72802
|
-
function _to_consumable_array$
|
|
72803
|
-
return _array_without_holes$
|
|
72802
|
+
function _to_consumable_array$4(arr) {
|
|
72803
|
+
return _array_without_holes$4(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$4();
|
|
72804
72804
|
}
|
|
72805
|
-
function _unsupported_iterable_to_array$
|
|
72805
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
72806
72806
|
if (!o) return;
|
|
72807
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
72807
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
72808
72808
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
72809
72809
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
72810
72810
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
72811
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
72811
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
72812
72812
|
}
|
|
72813
72813
|
function _ts_generator(thisArg, body) {
|
|
72814
72814
|
var f, y, t, g, _ = {
|
|
@@ -73065,7 +73065,7 @@ function toFilePromises(item) {
|
|
|
73065
73065
|
}
|
|
73066
73066
|
function flatten$2(items) {
|
|
73067
73067
|
return items.reduce(function(acc, files) {
|
|
73068
|
-
return _to_consumable_array$
|
|
73068
|
+
return _to_consumable_array$4(acc).concat(_to_consumable_array$4(Array.isArray(files) ? flatten$2(files) : [
|
|
73069
73069
|
files
|
|
73070
73070
|
]));
|
|
73071
73071
|
}, []);
|
|
@@ -73245,7 +73245,7 @@ function _iterableToArray$2(iter) {
|
|
|
73245
73245
|
function _arrayWithoutHoles$2(arr) {
|
|
73246
73246
|
if (Array.isArray(arr)) return _arrayLikeToArray$2(arr);
|
|
73247
73247
|
}
|
|
73248
|
-
function ownKeys$
|
|
73248
|
+
function ownKeys$b(object, enumerableOnly) {
|
|
73249
73249
|
var keys = Object.keys(object);
|
|
73250
73250
|
if (Object.getOwnPropertySymbols) {
|
|
73251
73251
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -73258,9 +73258,9 @@ function ownKeys$9(object, enumerableOnly) {
|
|
|
73258
73258
|
function _objectSpread$1(target) {
|
|
73259
73259
|
for(var i = 1; i < arguments.length; i++){
|
|
73260
73260
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
73261
|
-
i % 2 ? ownKeys$
|
|
73261
|
+
i % 2 ? ownKeys$b(Object(source), !0).forEach(function(key) {
|
|
73262
73262
|
_defineProperty$3(target, key, source[key]);
|
|
73263
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$
|
|
73263
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function(key) {
|
|
73264
73264
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
73265
73265
|
});
|
|
73266
73266
|
}
|
|
@@ -73667,7 +73667,7 @@ function _iterableToArrayLimit$1(arr, i) {
|
|
|
73667
73667
|
function _arrayWithHoles$1(arr) {
|
|
73668
73668
|
if (Array.isArray(arr)) return arr;
|
|
73669
73669
|
}
|
|
73670
|
-
function ownKeys$
|
|
73670
|
+
function ownKeys$a(object, enumerableOnly) {
|
|
73671
73671
|
var keys = Object.keys(object);
|
|
73672
73672
|
if (Object.getOwnPropertySymbols) {
|
|
73673
73673
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -73680,9 +73680,9 @@ function ownKeys$8(object, enumerableOnly) {
|
|
|
73680
73680
|
function _objectSpread(target) {
|
|
73681
73681
|
for(var i = 1; i < arguments.length; i++){
|
|
73682
73682
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
73683
|
-
i % 2 ? ownKeys$
|
|
73683
|
+
i % 2 ? ownKeys$a(Object(source), !0).forEach(function(key) {
|
|
73684
73684
|
_defineProperty$2(target, key, source[key]);
|
|
73685
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$
|
|
73685
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function(key) {
|
|
73686
73686
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
73687
73687
|
});
|
|
73688
73688
|
}
|
|
@@ -74684,7 +74684,7 @@ function _defineProperty$1(e, r, t) {
|
|
|
74684
74684
|
}) : e[r] = t, e;
|
|
74685
74685
|
}
|
|
74686
74686
|
|
|
74687
|
-
function ownKeys$
|
|
74687
|
+
function ownKeys$9(e, r) {
|
|
74688
74688
|
var t = Object.keys(e);
|
|
74689
74689
|
if (Object.getOwnPropertySymbols) {
|
|
74690
74690
|
var o = Object.getOwnPropertySymbols(e);
|
|
@@ -74697,9 +74697,9 @@ function ownKeys$7(e, r) {
|
|
|
74697
74697
|
function _objectSpread2$7(e) {
|
|
74698
74698
|
for(var r = 1; r < arguments.length; r++){
|
|
74699
74699
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
74700
|
-
r % 2 ? ownKeys$
|
|
74700
|
+
r % 2 ? ownKeys$9(Object(t), !0).forEach(function(r) {
|
|
74701
74701
|
_defineProperty$1(e, r, t[r]);
|
|
74702
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$
|
|
74702
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function(r) {
|
|
74703
74703
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
74704
74704
|
});
|
|
74705
74705
|
}
|
|
@@ -84065,7 +84065,7 @@ var ConnectedDroppable = connect(makeMapStateToProps$1, mapDispatchToProps$1, nu
|
|
|
84065
84065
|
})(Droppable);
|
|
84066
84066
|
ConnectedDroppable.defaultProps = defaultProps;
|
|
84067
84067
|
|
|
84068
|
-
function _define_property$
|
|
84068
|
+
function _define_property$b(obj, key, value) {
|
|
84069
84069
|
if (key in obj) {
|
|
84070
84070
|
Object.defineProperty(obj, key, {
|
|
84071
84071
|
value: value,
|
|
@@ -84078,7 +84078,7 @@ function _define_property$9(obj, key, value) {
|
|
|
84078
84078
|
}
|
|
84079
84079
|
return obj;
|
|
84080
84080
|
}
|
|
84081
|
-
function _object_spread$
|
|
84081
|
+
function _object_spread$b(target) {
|
|
84082
84082
|
for(var i = 1; i < arguments.length; i++){
|
|
84083
84083
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
84084
84084
|
var ownKeys = Object.keys(source);
|
|
@@ -84088,12 +84088,12 @@ function _object_spread$9(target) {
|
|
|
84088
84088
|
}));
|
|
84089
84089
|
}
|
|
84090
84090
|
ownKeys.forEach(function(key) {
|
|
84091
|
-
_define_property$
|
|
84091
|
+
_define_property$b(target, key, source[key]);
|
|
84092
84092
|
});
|
|
84093
84093
|
}
|
|
84094
84094
|
return target;
|
|
84095
84095
|
}
|
|
84096
|
-
function ownKeys$
|
|
84096
|
+
function ownKeys$8(object, enumerableOnly) {
|
|
84097
84097
|
var keys = Object.keys(object);
|
|
84098
84098
|
if (Object.getOwnPropertySymbols) {
|
|
84099
84099
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -84106,12 +84106,12 @@ function ownKeys$6(object, enumerableOnly) {
|
|
|
84106
84106
|
}
|
|
84107
84107
|
return keys;
|
|
84108
84108
|
}
|
|
84109
|
-
function _object_spread_props$
|
|
84109
|
+
function _object_spread_props$8(target, source) {
|
|
84110
84110
|
source = source != null ? source : {};
|
|
84111
84111
|
if (Object.getOwnPropertyDescriptors) {
|
|
84112
84112
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
84113
84113
|
} else {
|
|
84114
|
-
ownKeys$
|
|
84114
|
+
ownKeys$8(Object(source)).forEach(function(key) {
|
|
84115
84115
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
84116
84116
|
});
|
|
84117
84117
|
}
|
|
@@ -84125,7 +84125,7 @@ var DragDropImages = function(param) {
|
|
|
84125
84125
|
droppableId: "droppable-imageUrls",
|
|
84126
84126
|
direction: "horizontal",
|
|
84127
84127
|
children: function(provided) {
|
|
84128
|
-
return /*#__PURE__*/ jsxs("div", _object_spread_props$
|
|
84128
|
+
return /*#__PURE__*/ jsxs("div", _object_spread_props$8(_object_spread$b({
|
|
84129
84129
|
ref: provided.innerRef
|
|
84130
84130
|
}, provided.droppableProps), {
|
|
84131
84131
|
className: "flex gap-2 overflow-auto",
|
|
@@ -84135,7 +84135,7 @@ var DragDropImages = function(param) {
|
|
|
84135
84135
|
draggableId: item === null || item === void 0 ? void 0 : item.id,
|
|
84136
84136
|
index: index,
|
|
84137
84137
|
children: function(provided) {
|
|
84138
|
-
return /*#__PURE__*/ jsxs("div", _object_spread_props$
|
|
84138
|
+
return /*#__PURE__*/ jsxs("div", _object_spread_props$8(_object_spread$b({
|
|
84139
84139
|
ref: provided.innerRef
|
|
84140
84140
|
}, provided.draggableProps, provided.dragHandleProps), {
|
|
84141
84141
|
className: "w-24 my-2 rounded-lg bg-gray-200",
|
|
@@ -84175,18 +84175,18 @@ var DragDropImages = function(param) {
|
|
|
84175
84175
|
});
|
|
84176
84176
|
};
|
|
84177
84177
|
|
|
84178
|
-
function _array_like_to_array$
|
|
84178
|
+
function _array_like_to_array$8(arr, len) {
|
|
84179
84179
|
if (len == null || len > arr.length) len = arr.length;
|
|
84180
84180
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
84181
84181
|
return arr2;
|
|
84182
84182
|
}
|
|
84183
|
-
function _array_with_holes$
|
|
84183
|
+
function _array_with_holes$6(arr) {
|
|
84184
84184
|
if (Array.isArray(arr)) return arr;
|
|
84185
84185
|
}
|
|
84186
|
-
function _array_without_holes$
|
|
84187
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
84186
|
+
function _array_without_holes$3(arr) {
|
|
84187
|
+
if (Array.isArray(arr)) return _array_like_to_array$8(arr);
|
|
84188
84188
|
}
|
|
84189
|
-
function _define_property$
|
|
84189
|
+
function _define_property$a(obj, key, value) {
|
|
84190
84190
|
if (key in obj) {
|
|
84191
84191
|
Object.defineProperty(obj, key, {
|
|
84192
84192
|
value: value,
|
|
@@ -84199,10 +84199,10 @@ function _define_property$8(obj, key, value) {
|
|
|
84199
84199
|
}
|
|
84200
84200
|
return obj;
|
|
84201
84201
|
}
|
|
84202
|
-
function _iterable_to_array$
|
|
84202
|
+
function _iterable_to_array$3(iter) {
|
|
84203
84203
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
84204
84204
|
}
|
|
84205
|
-
function _iterable_to_array_limit$
|
|
84205
|
+
function _iterable_to_array_limit$6(arr, i) {
|
|
84206
84206
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
84207
84207
|
if (_i == null) return;
|
|
84208
84208
|
var _arr = [];
|
|
@@ -84226,13 +84226,13 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
84226
84226
|
}
|
|
84227
84227
|
return _arr;
|
|
84228
84228
|
}
|
|
84229
|
-
function _non_iterable_rest$
|
|
84229
|
+
function _non_iterable_rest$6() {
|
|
84230
84230
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
84231
84231
|
}
|
|
84232
|
-
function _non_iterable_spread$
|
|
84232
|
+
function _non_iterable_spread$3() {
|
|
84233
84233
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
84234
84234
|
}
|
|
84235
|
-
function _object_spread$
|
|
84235
|
+
function _object_spread$a(target) {
|
|
84236
84236
|
for(var i = 1; i < arguments.length; i++){
|
|
84237
84237
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
84238
84238
|
var ownKeys = Object.keys(source);
|
|
@@ -84242,12 +84242,12 @@ function _object_spread$8(target) {
|
|
|
84242
84242
|
}));
|
|
84243
84243
|
}
|
|
84244
84244
|
ownKeys.forEach(function(key) {
|
|
84245
|
-
_define_property$
|
|
84245
|
+
_define_property$a(target, key, source[key]);
|
|
84246
84246
|
});
|
|
84247
84247
|
}
|
|
84248
84248
|
return target;
|
|
84249
84249
|
}
|
|
84250
|
-
function ownKeys$
|
|
84250
|
+
function ownKeys$7(object, enumerableOnly) {
|
|
84251
84251
|
var keys = Object.keys(object);
|
|
84252
84252
|
if (Object.getOwnPropertySymbols) {
|
|
84253
84253
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -84260,34 +84260,34 @@ function ownKeys$5(object, enumerableOnly) {
|
|
|
84260
84260
|
}
|
|
84261
84261
|
return keys;
|
|
84262
84262
|
}
|
|
84263
|
-
function _object_spread_props$
|
|
84263
|
+
function _object_spread_props$7(target, source) {
|
|
84264
84264
|
source = source != null ? source : {};
|
|
84265
84265
|
if (Object.getOwnPropertyDescriptors) {
|
|
84266
84266
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
84267
84267
|
} else {
|
|
84268
|
-
ownKeys$
|
|
84268
|
+
ownKeys$7(Object(source)).forEach(function(key) {
|
|
84269
84269
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
84270
84270
|
});
|
|
84271
84271
|
}
|
|
84272
84272
|
return target;
|
|
84273
84273
|
}
|
|
84274
|
-
function _sliced_to_array$
|
|
84275
|
-
return _array_with_holes$
|
|
84274
|
+
function _sliced_to_array$6(arr, i) {
|
|
84275
|
+
return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$6();
|
|
84276
84276
|
}
|
|
84277
|
-
function _to_consumable_array$
|
|
84278
|
-
return _array_without_holes$
|
|
84277
|
+
function _to_consumable_array$3(arr) {
|
|
84278
|
+
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$8(arr) || _non_iterable_spread$3();
|
|
84279
84279
|
}
|
|
84280
|
-
function _unsupported_iterable_to_array$
|
|
84280
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
84281
84281
|
if (!o) return;
|
|
84282
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
84282
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
84283
84283
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
84284
84284
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
84285
84285
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
84286
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
84286
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
84287
84287
|
}
|
|
84288
84288
|
var DropImage = function(param) {
|
|
84289
84289
|
var _param_preview = param.preview, preview = _param_preview === void 0 ? true : _param_preview, setFiles = param.setFiles, imageUrls = param.imageUrls, setImageUrls = param.setImageUrls;
|
|
84290
|
-
var _useState = _sliced_to_array$
|
|
84290
|
+
var _useState = _sliced_to_array$6(useState([]), 2), previewFiles = _useState[0], setPreviewFiles = _useState[1];
|
|
84291
84291
|
useEffect(function() {
|
|
84292
84292
|
setPreviewFiles(imageUrls);
|
|
84293
84293
|
}, [
|
|
@@ -84307,7 +84307,9 @@ var DropImage = function(param) {
|
|
|
84307
84307
|
maxSize: 5000000,
|
|
84308
84308
|
onDrop: function(dropFiles) {
|
|
84309
84309
|
var newFiles = [];
|
|
84310
|
-
setFiles(
|
|
84310
|
+
setFiles(function(prevFiles) {
|
|
84311
|
+
return _to_consumable_array$3(prevFiles).concat(_to_consumable_array$3(dropFiles));
|
|
84312
|
+
});
|
|
84311
84313
|
dropFiles.forEach(function(dropFile, index) {
|
|
84312
84314
|
Object.assign(dropFile, {
|
|
84313
84315
|
preview: URL.createObjectURL(dropFile),
|
|
@@ -84317,17 +84319,17 @@ var DropImage = function(param) {
|
|
|
84317
84319
|
newFiles.push(dropFile);
|
|
84318
84320
|
});
|
|
84319
84321
|
setPreviewFiles(function(prev) {
|
|
84320
|
-
return _to_consumable_array$
|
|
84322
|
+
return _to_consumable_array$3(prev).concat(_to_consumable_array$3(newFiles));
|
|
84321
84323
|
});
|
|
84322
84324
|
}
|
|
84323
84325
|
}), getRootProps = _useDropzone.getRootProps, getInputProps = _useDropzone.getInputProps; _useDropzone.isDragActive; _useDropzone.isDragAccept; _useDropzone.isDragReject;
|
|
84324
84326
|
var onDragEnd = function(result) {
|
|
84325
84327
|
if (!result.destination) return;
|
|
84326
|
-
var newItems = _to_consumable_array$
|
|
84327
|
-
var _newItems_splice = _sliced_to_array$
|
|
84328
|
+
var newItems = _to_consumable_array$3(previewFiles);
|
|
84329
|
+
var _newItems_splice = _sliced_to_array$6(newItems.splice(result.source.index, 1), 1), reorderedItem = _newItems_splice[0];
|
|
84328
84330
|
newItems.splice(result.destination.index, 0, reorderedItem);
|
|
84329
84331
|
var reSortItem = newItems.map(function(item, index) {
|
|
84330
|
-
return _object_spread_props$
|
|
84332
|
+
return _object_spread_props$7(_object_spread$a({}, item), {
|
|
84331
84333
|
index: index + 1
|
|
84332
84334
|
});
|
|
84333
84335
|
});
|
|
@@ -84337,16 +84339,16 @@ var DropImage = function(param) {
|
|
|
84337
84339
|
var handleRemove = function(item) {
|
|
84338
84340
|
var currentItem = previewFiles === null || previewFiles === void 0 ? void 0 : previewFiles.indexOf(item);
|
|
84339
84341
|
previewFiles.splice(currentItem, 1);
|
|
84340
|
-
setImageUrls(_to_consumable_array$
|
|
84342
|
+
setImageUrls(_to_consumable_array$3(previewFiles));
|
|
84341
84343
|
};
|
|
84342
84344
|
return /*#__PURE__*/ jsxs("section", {
|
|
84343
84345
|
className: "w-full",
|
|
84344
84346
|
children: [
|
|
84345
|
-
/*#__PURE__*/ jsxs("div", _object_spread_props$
|
|
84347
|
+
/*#__PURE__*/ jsxs("div", _object_spread_props$7(_object_spread$a({}, getRootProps({
|
|
84346
84348
|
className: "dropzone"
|
|
84347
84349
|
})), {
|
|
84348
84350
|
children: [
|
|
84349
|
-
/*#__PURE__*/ jsx("input", _object_spread$
|
|
84351
|
+
/*#__PURE__*/ jsx("input", _object_spread$a({}, getInputProps())),
|
|
84350
84352
|
/*#__PURE__*/ jsx("div", {
|
|
84351
84353
|
className: "flex justify-between",
|
|
84352
84354
|
children: /*#__PURE__*/ jsx("div", {
|
|
@@ -84393,6 +84395,916 @@ var DropImage = function(param) {
|
|
|
84393
84395
|
});
|
|
84394
84396
|
};
|
|
84395
84397
|
|
|
84398
|
+
var COLORS = [
|
|
84399
|
+
"blue",
|
|
84400
|
+
"orange",
|
|
84401
|
+
"yellow",
|
|
84402
|
+
"red",
|
|
84403
|
+
"purple",
|
|
84404
|
+
"amber",
|
|
84405
|
+
"lime",
|
|
84406
|
+
"green",
|
|
84407
|
+
"emerald",
|
|
84408
|
+
"teal",
|
|
84409
|
+
"cyan",
|
|
84410
|
+
"sky",
|
|
84411
|
+
"violet",
|
|
84412
|
+
"indigo",
|
|
84413
|
+
"purple",
|
|
84414
|
+
"fuchsia",
|
|
84415
|
+
"pink",
|
|
84416
|
+
"rose"
|
|
84417
|
+
];
|
|
84418
|
+
var DEFAULT_THEME = "blue";
|
|
84419
|
+
var THEME_DATA = {
|
|
84420
|
+
bg: {
|
|
84421
|
+
blue: "bg-blue-500",
|
|
84422
|
+
orange: "bg-orange-500",
|
|
84423
|
+
yellow: "bg-yellow-500",
|
|
84424
|
+
red: "bg-red-500",
|
|
84425
|
+
purple: "bg-purple-500",
|
|
84426
|
+
amber: "bg-amber-500",
|
|
84427
|
+
lime: "bg-lime-500",
|
|
84428
|
+
green: "bg-green-500",
|
|
84429
|
+
emerald: "bg-emerald-500",
|
|
84430
|
+
teal: "bg-teal-500",
|
|
84431
|
+
cyan: "bg-cyan-500",
|
|
84432
|
+
sky: "bg-sky-500",
|
|
84433
|
+
indigo: "bg-indigo-500",
|
|
84434
|
+
violet: "bg-violet-500",
|
|
84435
|
+
fuchsia: "bg-fuchsia-500",
|
|
84436
|
+
pink: "bg-pink-500",
|
|
84437
|
+
rose: "bg-rose-500"
|
|
84438
|
+
},
|
|
84439
|
+
bgHover: {
|
|
84440
|
+
blue: "hover:bg-blue-100",
|
|
84441
|
+
orange: "hover:bg-orange-100",
|
|
84442
|
+
yellow: "hover:bg-yellow-100",
|
|
84443
|
+
red: "hover:bg-red-100",
|
|
84444
|
+
purple: "hover:bg-purple-100",
|
|
84445
|
+
amber: "hover:bg-amber-100",
|
|
84446
|
+
lime: "hover:bg-lime-100",
|
|
84447
|
+
green: "hover:bg-green-100",
|
|
84448
|
+
emerald: "hover:bg-emerald-100",
|
|
84449
|
+
teal: "hover:bg-teal-100",
|
|
84450
|
+
cyan: "hover:bg-cyan-100",
|
|
84451
|
+
sky: "hover:bg-sky-100",
|
|
84452
|
+
indigo: "hover:bg-indigo-100",
|
|
84453
|
+
violet: "hover:bg-violet-100",
|
|
84454
|
+
fuchsia: "hover:bg-fuchsia-100",
|
|
84455
|
+
pink: "hover:bg-pink-100",
|
|
84456
|
+
rose: "hover:bg-rose-100"
|
|
84457
|
+
},
|
|
84458
|
+
ring: {
|
|
84459
|
+
blue: "focus:ring-blue-500/20",
|
|
84460
|
+
orange: "focus:ring-orange-500/20",
|
|
84461
|
+
yellow: "focus:ring-yellow-500/20",
|
|
84462
|
+
red: "focus:ring-red-500/20",
|
|
84463
|
+
purple: "focus:ring-purple-500/20",
|
|
84464
|
+
amber: "focus:ring-amber-500/20",
|
|
84465
|
+
lime: "focus:ring-lime-500/20",
|
|
84466
|
+
green: "focus:ring-green-500/20",
|
|
84467
|
+
emerald: "focus:ring-emerald-500/20",
|
|
84468
|
+
teal: "focus:ring-teal-500/20",
|
|
84469
|
+
cyan: "focus:ring-cyan-500/20",
|
|
84470
|
+
sky: "focus:ring-sky-500/20",
|
|
84471
|
+
indigo: "focus:ring-indigo-500/20",
|
|
84472
|
+
violet: "focus:ring-violet-500/20",
|
|
84473
|
+
fuchsia: "focus:ring-fuchsia-500/20",
|
|
84474
|
+
pink: "focus:ring-pink-500/20",
|
|
84475
|
+
rose: "focus:ring-rose-500/20"
|
|
84476
|
+
},
|
|
84477
|
+
borderFocus: {
|
|
84478
|
+
blue: "focus:border-blue-500",
|
|
84479
|
+
orange: "focus:border-orange-500",
|
|
84480
|
+
yellow: "focus:border-yellow-500",
|
|
84481
|
+
red: "focus:border-red-500",
|
|
84482
|
+
purple: "focus:border-purple-500",
|
|
84483
|
+
amber: "focus:border-amber-500",
|
|
84484
|
+
lime: "focus:border-lime-500",
|
|
84485
|
+
green: "focus:border-green-500",
|
|
84486
|
+
emerald: "focus:border-emerald-500",
|
|
84487
|
+
teal: "focus:border-teal-500",
|
|
84488
|
+
cyan: "focus:border-cyan-500",
|
|
84489
|
+
sky: "focus:border-sky-500",
|
|
84490
|
+
indigo: "focus:border-indigo-500",
|
|
84491
|
+
violet: "focus:border-violet-500",
|
|
84492
|
+
fuchsia: "focus:border-fuchsia-500",
|
|
84493
|
+
pink: "focus:border-pink-500",
|
|
84494
|
+
rose: "focus:border-rose-500"
|
|
84495
|
+
},
|
|
84496
|
+
text: {
|
|
84497
|
+
blue: "text-blue-500",
|
|
84498
|
+
orange: "text-orange-500",
|
|
84499
|
+
yellow: "text-yellow-500",
|
|
84500
|
+
red: "text-red-500",
|
|
84501
|
+
purple: "text-purple-500",
|
|
84502
|
+
amber: "text-amber-500",
|
|
84503
|
+
lime: "text-lime-500",
|
|
84504
|
+
green: "text-green-500",
|
|
84505
|
+
emerald: "text-emerald-500",
|
|
84506
|
+
teal: "text-teal-500",
|
|
84507
|
+
cyan: "text-cyan-500",
|
|
84508
|
+
sky: "text-sky-500",
|
|
84509
|
+
indigo: "text-indigo-500",
|
|
84510
|
+
violet: "text-violet-500",
|
|
84511
|
+
fuchsia: "text-fuchsia-500",
|
|
84512
|
+
pink: "text-pink-500",
|
|
84513
|
+
rose: "text-rose-500"
|
|
84514
|
+
},
|
|
84515
|
+
textHover: {
|
|
84516
|
+
blue: "hover:text-blue-500",
|
|
84517
|
+
orange: "hover:text-orange-500",
|
|
84518
|
+
yellow: "hover:text-yellow-500",
|
|
84519
|
+
red: "hover:text-red-500",
|
|
84520
|
+
purple: "hover:text-purple-500",
|
|
84521
|
+
amber: "hover:text-amber-500",
|
|
84522
|
+
lime: "hover:text-lime-500",
|
|
84523
|
+
green: "hover:text-green-500",
|
|
84524
|
+
emerald: "hover:text-emerald-500",
|
|
84525
|
+
teal: "hover:text-teal-500",
|
|
84526
|
+
cyan: "hover:text-cyan-500",
|
|
84527
|
+
sky: "hover:text-sky-500",
|
|
84528
|
+
indigo: "hover:text-indigo-500",
|
|
84529
|
+
violet: "hover:text-violet-500",
|
|
84530
|
+
fuchsia: "hover:text-fuchsia-500",
|
|
84531
|
+
pink: "hover:text-pink-500",
|
|
84532
|
+
rose: "hover:text-rose-500"
|
|
84533
|
+
}
|
|
84534
|
+
};
|
|
84535
|
+
|
|
84536
|
+
function useOnClickOutside(ref, handler) {
|
|
84537
|
+
useEffect(function() {
|
|
84538
|
+
var listener = function(event) {
|
|
84539
|
+
if (!ref.current || ref.current.contains(event.target)) {
|
|
84540
|
+
return;
|
|
84541
|
+
}
|
|
84542
|
+
handler(event);
|
|
84543
|
+
};
|
|
84544
|
+
document.addEventListener("mousedown", listener);
|
|
84545
|
+
document.addEventListener("touchstart", listener);
|
|
84546
|
+
return function() {
|
|
84547
|
+
document.removeEventListener("mousedown", listener);
|
|
84548
|
+
document.removeEventListener("touchstart", listener);
|
|
84549
|
+
};
|
|
84550
|
+
}, [
|
|
84551
|
+
ref,
|
|
84552
|
+
handler
|
|
84553
|
+
]);
|
|
84554
|
+
}
|
|
84555
|
+
|
|
84556
|
+
var CloseIcon = function(param) {
|
|
84557
|
+
var _param_className = param.className, className = _param_className === void 0 ? "" : _param_className;
|
|
84558
|
+
return /*#__PURE__*/ jsx("svg", {
|
|
84559
|
+
className: className,
|
|
84560
|
+
fill: "currentColor",
|
|
84561
|
+
viewBox: "0 0 20 20",
|
|
84562
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
84563
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
84564
|
+
fillRule: "evenodd",
|
|
84565
|
+
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
84566
|
+
clipRule: "evenodd"
|
|
84567
|
+
})
|
|
84568
|
+
});
|
|
84569
|
+
};
|
|
84570
|
+
var ChevronIcon = function(param) {
|
|
84571
|
+
var _param_className = param.className, className = _param_className === void 0 ? "" : _param_className;
|
|
84572
|
+
return /*#__PURE__*/ jsx("svg", {
|
|
84573
|
+
className: className,
|
|
84574
|
+
fill: "currentColor",
|
|
84575
|
+
viewBox: "0 0 20 20",
|
|
84576
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
84577
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
84578
|
+
fillRule: "evenodd",
|
|
84579
|
+
d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",
|
|
84580
|
+
clipRule: "evenodd"
|
|
84581
|
+
})
|
|
84582
|
+
});
|
|
84583
|
+
};
|
|
84584
|
+
var SearchIcon = function(param) {
|
|
84585
|
+
var _param_className = param.className, className = _param_className === void 0 ? "" : _param_className;
|
|
84586
|
+
return /*#__PURE__*/ jsx("svg", {
|
|
84587
|
+
className: className,
|
|
84588
|
+
fill: "none",
|
|
84589
|
+
stroke: "currentColor",
|
|
84590
|
+
viewBox: "0 0 24 24",
|
|
84591
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
84592
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
84593
|
+
strokeLinecap: "round",
|
|
84594
|
+
strokeLinejoin: "round",
|
|
84595
|
+
strokeWidth: 2,
|
|
84596
|
+
d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
84597
|
+
})
|
|
84598
|
+
});
|
|
84599
|
+
};
|
|
84600
|
+
|
|
84601
|
+
var SelectContext = /*#__PURE__*/ createContext({
|
|
84602
|
+
value: null,
|
|
84603
|
+
handleValueChange: function(selected) {
|
|
84604
|
+
console.log("selected:", selected);
|
|
84605
|
+
},
|
|
84606
|
+
formatGroupLabel: null,
|
|
84607
|
+
formatOptionLabel: null,
|
|
84608
|
+
classNames: undefined
|
|
84609
|
+
});
|
|
84610
|
+
var useSelectContext = function() {
|
|
84611
|
+
return useContext(SelectContext);
|
|
84612
|
+
};
|
|
84613
|
+
var SelectProvider = function(param) {
|
|
84614
|
+
var value = param.value, handleValueChange = param.handleValueChange, otherData = param.otherData, children = param.children;
|
|
84615
|
+
var store = useMemo$1(function() {
|
|
84616
|
+
return {
|
|
84617
|
+
value: value,
|
|
84618
|
+
handleValueChange: handleValueChange,
|
|
84619
|
+
formatGroupLabel: otherData && typeof otherData.formatGroupLabel === "function" ? otherData.formatGroupLabel : null,
|
|
84620
|
+
formatOptionLabel: otherData && typeof otherData.formatOptionLabel === "function" ? otherData.formatOptionLabel : null,
|
|
84621
|
+
classNames: (otherData === null || otherData === void 0 ? void 0 : otherData.classNames) || undefined
|
|
84622
|
+
};
|
|
84623
|
+
}, [
|
|
84624
|
+
handleValueChange,
|
|
84625
|
+
otherData,
|
|
84626
|
+
value
|
|
84627
|
+
]);
|
|
84628
|
+
return /*#__PURE__*/ jsx(SelectContext.Provider, {
|
|
84629
|
+
value: store,
|
|
84630
|
+
children: children
|
|
84631
|
+
});
|
|
84632
|
+
};
|
|
84633
|
+
|
|
84634
|
+
var DisabledItem = function(param) {
|
|
84635
|
+
var children = param.children;
|
|
84636
|
+
var classNames = useContext(SelectContext).classNames;
|
|
84637
|
+
return /*#__PURE__*/ jsx("div", {
|
|
84638
|
+
className: classNames && classNames.listDisabledItem ? classNames.listDisabledItem : "px-2 py-2 cursor-not-allowed truncate text-gray-400 select-none",
|
|
84639
|
+
children: children
|
|
84640
|
+
});
|
|
84641
|
+
};
|
|
84642
|
+
|
|
84643
|
+
function _define_property$9(obj, key, value) {
|
|
84644
|
+
if (key in obj) {
|
|
84645
|
+
Object.defineProperty(obj, key, {
|
|
84646
|
+
value: value,
|
|
84647
|
+
enumerable: true,
|
|
84648
|
+
configurable: true,
|
|
84649
|
+
writable: true
|
|
84650
|
+
});
|
|
84651
|
+
} else {
|
|
84652
|
+
obj[key] = value;
|
|
84653
|
+
}
|
|
84654
|
+
return obj;
|
|
84655
|
+
}
|
|
84656
|
+
function _object_spread$9(target) {
|
|
84657
|
+
for(var i = 1; i < arguments.length; i++){
|
|
84658
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
84659
|
+
var ownKeys = Object.keys(source);
|
|
84660
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
84661
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
84662
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
84663
|
+
}));
|
|
84664
|
+
}
|
|
84665
|
+
ownKeys.forEach(function(key) {
|
|
84666
|
+
_define_property$9(target, key, source[key]);
|
|
84667
|
+
});
|
|
84668
|
+
}
|
|
84669
|
+
return target;
|
|
84670
|
+
}
|
|
84671
|
+
function ownKeys$6(object, enumerableOnly) {
|
|
84672
|
+
var keys = Object.keys(object);
|
|
84673
|
+
if (Object.getOwnPropertySymbols) {
|
|
84674
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
84675
|
+
if (enumerableOnly) {
|
|
84676
|
+
symbols = symbols.filter(function(sym) {
|
|
84677
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
84678
|
+
});
|
|
84679
|
+
}
|
|
84680
|
+
keys.push.apply(keys, symbols);
|
|
84681
|
+
}
|
|
84682
|
+
return keys;
|
|
84683
|
+
}
|
|
84684
|
+
function _object_spread_props$6(target, source) {
|
|
84685
|
+
source = source != null ? source : {};
|
|
84686
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
84687
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
84688
|
+
} else {
|
|
84689
|
+
ownKeys$6(Object(source)).forEach(function(key) {
|
|
84690
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
84691
|
+
});
|
|
84692
|
+
}
|
|
84693
|
+
return target;
|
|
84694
|
+
}
|
|
84695
|
+
var Item = function(param) {
|
|
84696
|
+
var item = param.item, primaryColor = param.primaryColor;
|
|
84697
|
+
var _useSelectContext = useSelectContext(), classNames = _useSelectContext.classNames, value = _useSelectContext.value, handleValueChange = _useSelectContext.handleValueChange, formatOptionLabel = _useSelectContext.formatOptionLabel;
|
|
84698
|
+
var isSelected = useMemo$1(function() {
|
|
84699
|
+
return value !== null && !Array.isArray(value) && value.value === item.value;
|
|
84700
|
+
}, [
|
|
84701
|
+
item.value,
|
|
84702
|
+
value
|
|
84703
|
+
]);
|
|
84704
|
+
var textHoverColor = useMemo$1(function() {
|
|
84705
|
+
if (COLORS.includes(primaryColor)) {
|
|
84706
|
+
return THEME_DATA.textHover[primaryColor];
|
|
84707
|
+
}
|
|
84708
|
+
return THEME_DATA.textHover[DEFAULT_THEME];
|
|
84709
|
+
}, [
|
|
84710
|
+
primaryColor
|
|
84711
|
+
]);
|
|
84712
|
+
var bgColor = useMemo$1(function() {
|
|
84713
|
+
if (COLORS.includes(primaryColor)) {
|
|
84714
|
+
return THEME_DATA.bg[primaryColor];
|
|
84715
|
+
}
|
|
84716
|
+
return THEME_DATA.bg[DEFAULT_THEME];
|
|
84717
|
+
}, [
|
|
84718
|
+
primaryColor
|
|
84719
|
+
]);
|
|
84720
|
+
var bgHoverColor = useMemo$1(function() {
|
|
84721
|
+
if (COLORS.includes(primaryColor)) {
|
|
84722
|
+
return THEME_DATA.bgHover[primaryColor];
|
|
84723
|
+
}
|
|
84724
|
+
return THEME_DATA.bgHover[DEFAULT_THEME];
|
|
84725
|
+
}, [
|
|
84726
|
+
primaryColor
|
|
84727
|
+
]);
|
|
84728
|
+
var getItemClass = useCallback$1(function() {
|
|
84729
|
+
var baseClass = "block transition duration-200 px-2 py-2 cursor-pointer select-none truncate rounded";
|
|
84730
|
+
var selectedClass = isSelected ? "text-white ".concat(bgColor) : "text-gray-500 ".concat(bgHoverColor, " ").concat(textHoverColor);
|
|
84731
|
+
return classNames && classNames.listItem ? classNames.listItem({
|
|
84732
|
+
isSelected: isSelected
|
|
84733
|
+
}) : "".concat(baseClass, " ").concat(selectedClass);
|
|
84734
|
+
}, [
|
|
84735
|
+
bgColor,
|
|
84736
|
+
bgHoverColor,
|
|
84737
|
+
classNames,
|
|
84738
|
+
isSelected,
|
|
84739
|
+
textHoverColor
|
|
84740
|
+
]);
|
|
84741
|
+
return /*#__PURE__*/ jsx(Fragment$1, {
|
|
84742
|
+
children: formatOptionLabel ? /*#__PURE__*/ jsx("div", {
|
|
84743
|
+
onClick: function() {
|
|
84744
|
+
return handleValueChange(item);
|
|
84745
|
+
},
|
|
84746
|
+
children: formatOptionLabel(_object_spread_props$6(_object_spread$9({}, item), {
|
|
84747
|
+
isSelected: isSelected
|
|
84748
|
+
}))
|
|
84749
|
+
}) : /*#__PURE__*/ jsx(Fragment$1, {
|
|
84750
|
+
children: item.disabled ? /*#__PURE__*/ jsx(DisabledItem, {
|
|
84751
|
+
children: item.label
|
|
84752
|
+
}) : /*#__PURE__*/ jsx("li", {
|
|
84753
|
+
tabIndex: 0,
|
|
84754
|
+
onKeyDown: function(e) {
|
|
84755
|
+
if (e.key === " " || e.key === "Enter") {
|
|
84756
|
+
handleValueChange(item);
|
|
84757
|
+
}
|
|
84758
|
+
},
|
|
84759
|
+
"aria-selected": isSelected,
|
|
84760
|
+
role: "option",
|
|
84761
|
+
onClick: function() {
|
|
84762
|
+
return handleValueChange(item);
|
|
84763
|
+
},
|
|
84764
|
+
className: getItemClass(),
|
|
84765
|
+
children: item.label
|
|
84766
|
+
})
|
|
84767
|
+
})
|
|
84768
|
+
});
|
|
84769
|
+
};
|
|
84770
|
+
|
|
84771
|
+
var GroupItem = function(param) {
|
|
84772
|
+
var item = param.item, primaryColor = param.primaryColor;
|
|
84773
|
+
var _useSelectContext = useSelectContext(), classNames = _useSelectContext.classNames, formatGroupLabel = _useSelectContext.formatGroupLabel;
|
|
84774
|
+
return /*#__PURE__*/ jsx(Fragment$1, {
|
|
84775
|
+
children: item.options.length > 0 && /*#__PURE__*/ jsxs(Fragment$1, {
|
|
84776
|
+
children: [
|
|
84777
|
+
formatGroupLabel ? /*#__PURE__*/ jsx(Fragment$1, {
|
|
84778
|
+
children: formatGroupLabel(item)
|
|
84779
|
+
}) : /*#__PURE__*/ jsx("div", {
|
|
84780
|
+
className: (classNames === null || classNames === void 0 ? void 0 : classNames.listGroupLabel) ? classNames.listGroupLabel : "pr-2 py-2 cursor-default select-none truncate font-bold text-gray-700",
|
|
84781
|
+
children: item.label
|
|
84782
|
+
}),
|
|
84783
|
+
item.options.map(function(item, index) {
|
|
84784
|
+
return /*#__PURE__*/ jsx(Item, {
|
|
84785
|
+
primaryColor: primaryColor,
|
|
84786
|
+
item: item
|
|
84787
|
+
}, index);
|
|
84788
|
+
})
|
|
84789
|
+
]
|
|
84790
|
+
})
|
|
84791
|
+
});
|
|
84792
|
+
};
|
|
84793
|
+
|
|
84794
|
+
var Options = function(param) {
|
|
84795
|
+
var list = param.list, noOptionsMessage = param.noOptionsMessage, text = param.text, isMultiple = param.isMultiple, value = param.value, _param_primaryColor = param.primaryColor, primaryColor = _param_primaryColor === void 0 ? DEFAULT_THEME : _param_primaryColor;
|
|
84796
|
+
var classNames = useContext(SelectContext).classNames;
|
|
84797
|
+
var filterByText = useCallback$1(function() {
|
|
84798
|
+
var filterItem = function(item) {
|
|
84799
|
+
return item.label.toLowerCase().indexOf(text.toLowerCase()) > -1;
|
|
84800
|
+
};
|
|
84801
|
+
var result = list.map(function(item) {
|
|
84802
|
+
if ("options" in item) {
|
|
84803
|
+
return {
|
|
84804
|
+
label: item.label,
|
|
84805
|
+
options: item.options.filter(filterItem)
|
|
84806
|
+
};
|
|
84807
|
+
}
|
|
84808
|
+
return item;
|
|
84809
|
+
});
|
|
84810
|
+
result = result.filter(function(item) {
|
|
84811
|
+
if ("options" in item) {
|
|
84812
|
+
return item.options.length > 0;
|
|
84813
|
+
}
|
|
84814
|
+
return filterItem(item);
|
|
84815
|
+
});
|
|
84816
|
+
return result;
|
|
84817
|
+
}, [
|
|
84818
|
+
text,
|
|
84819
|
+
list
|
|
84820
|
+
]);
|
|
84821
|
+
var removeValues = useCallback$1(function(array) {
|
|
84822
|
+
if (!isMultiple) {
|
|
84823
|
+
return array;
|
|
84824
|
+
}
|
|
84825
|
+
if (Array.isArray(value)) {
|
|
84826
|
+
var valueId = value.map(function(item) {
|
|
84827
|
+
return item.value;
|
|
84828
|
+
});
|
|
84829
|
+
var filterItem = function(item) {
|
|
84830
|
+
return !valueId.includes(item.value);
|
|
84831
|
+
};
|
|
84832
|
+
var newArray = array.map(function(item) {
|
|
84833
|
+
if ("options" in item) {
|
|
84834
|
+
return {
|
|
84835
|
+
label: item.label,
|
|
84836
|
+
options: item.options.filter(filterItem)
|
|
84837
|
+
};
|
|
84838
|
+
}
|
|
84839
|
+
return item;
|
|
84840
|
+
});
|
|
84841
|
+
newArray = newArray.filter(function(item) {
|
|
84842
|
+
if ("options" in item) {
|
|
84843
|
+
return item.options.length > 0;
|
|
84844
|
+
} else {
|
|
84845
|
+
return filterItem(item);
|
|
84846
|
+
}
|
|
84847
|
+
});
|
|
84848
|
+
return newArray;
|
|
84849
|
+
}
|
|
84850
|
+
return array;
|
|
84851
|
+
}, [
|
|
84852
|
+
isMultiple,
|
|
84853
|
+
value
|
|
84854
|
+
]);
|
|
84855
|
+
var filterResult = useMemo$1(function() {
|
|
84856
|
+
return removeValues(filterByText());
|
|
84857
|
+
}, [
|
|
84858
|
+
filterByText,
|
|
84859
|
+
removeValues
|
|
84860
|
+
]);
|
|
84861
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
84862
|
+
role: "options",
|
|
84863
|
+
className: classNames && classNames.list ? classNames.list : "max-h-72 overflow-y-auto",
|
|
84864
|
+
children: [
|
|
84865
|
+
filterResult.map(function(item, index) {
|
|
84866
|
+
return /*#__PURE__*/ jsx(React__default.Fragment, {
|
|
84867
|
+
children: "options" in item ? /*#__PURE__*/ jsxs(Fragment$1, {
|
|
84868
|
+
children: [
|
|
84869
|
+
/*#__PURE__*/ jsx("div", {
|
|
84870
|
+
className: "px-2.5",
|
|
84871
|
+
children: /*#__PURE__*/ jsx(GroupItem, {
|
|
84872
|
+
primaryColor: primaryColor || DEFAULT_THEME,
|
|
84873
|
+
item: item
|
|
84874
|
+
})
|
|
84875
|
+
}),
|
|
84876
|
+
index + 1 < filterResult.length && /*#__PURE__*/ jsx("hr", {
|
|
84877
|
+
className: "my-1"
|
|
84878
|
+
})
|
|
84879
|
+
]
|
|
84880
|
+
}) : /*#__PURE__*/ jsx("div", {
|
|
84881
|
+
className: "px-2.5",
|
|
84882
|
+
children: /*#__PURE__*/ jsx(Item, {
|
|
84883
|
+
primaryColor: primaryColor || DEFAULT_THEME,
|
|
84884
|
+
item: item
|
|
84885
|
+
})
|
|
84886
|
+
})
|
|
84887
|
+
}, index);
|
|
84888
|
+
}),
|
|
84889
|
+
filterResult.length === 0 && /*#__PURE__*/ jsx(DisabledItem, {
|
|
84890
|
+
children: noOptionsMessage
|
|
84891
|
+
})
|
|
84892
|
+
]
|
|
84893
|
+
});
|
|
84894
|
+
};
|
|
84895
|
+
|
|
84896
|
+
var SearchInput = /*#__PURE__*/ forwardRef(function SearchInput(param, ref) {
|
|
84897
|
+
var _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "" : _param_placeholder, _param_value = param.value, value = _param_value === void 0 ? "" : _param_value, onChange = param.onChange, _param_name = param.name, name = _param_name === void 0 ? "" : _param_name;
|
|
84898
|
+
var classNames = useContext(SelectContext).classNames;
|
|
84899
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
84900
|
+
className: classNames && classNames.searchContainer ? classNames.searchContainer : "relative py-1 px-2.5",
|
|
84901
|
+
children: [
|
|
84902
|
+
/*#__PURE__*/ jsx(SearchIcon, {
|
|
84903
|
+
className: classNames && classNames.searchIcon ? classNames.searchIcon : "absolute w-5 h-5 mt-2.5 pb-0.5 ml-2 text-gray-500"
|
|
84904
|
+
}),
|
|
84905
|
+
/*#__PURE__*/ jsx("input", {
|
|
84906
|
+
ref: ref,
|
|
84907
|
+
className: classNames && classNames.searchBox ? classNames.searchBox : "w-full py-2 pl-8 text-sm text-gray-500 bg-gray-100 border border-gray-200 rounded focus:border-gray-200 focus:ring-0 focus:outline-none",
|
|
84908
|
+
type: "text",
|
|
84909
|
+
placeholder: placeholder,
|
|
84910
|
+
value: value,
|
|
84911
|
+
onChange: onChange,
|
|
84912
|
+
name: name
|
|
84913
|
+
})
|
|
84914
|
+
]
|
|
84915
|
+
});
|
|
84916
|
+
});
|
|
84917
|
+
|
|
84918
|
+
var Spinner = function(param) {
|
|
84919
|
+
var _param_primaryColor = param.primaryColor, primaryColor = _param_primaryColor === void 0 ? DEFAULT_THEME : _param_primaryColor;
|
|
84920
|
+
var spinnerColor = useMemo$1(function() {
|
|
84921
|
+
if (COLORS.includes(primaryColor)) {
|
|
84922
|
+
return THEME_DATA.text[primaryColor];
|
|
84923
|
+
}
|
|
84924
|
+
return THEME_DATA.text[DEFAULT_THEME];
|
|
84925
|
+
}, [
|
|
84926
|
+
primaryColor
|
|
84927
|
+
]);
|
|
84928
|
+
return /*#__PURE__*/ jsxs("svg", {
|
|
84929
|
+
className: "animate-spin mr-0.5 h-5 w-5 ".concat(spinnerColor),
|
|
84930
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
84931
|
+
fill: "none",
|
|
84932
|
+
viewBox: "0 0 24 24",
|
|
84933
|
+
children: [
|
|
84934
|
+
/*#__PURE__*/ jsx("circle", {
|
|
84935
|
+
className: "opacity-25",
|
|
84936
|
+
cx: "12",
|
|
84937
|
+
cy: "12",
|
|
84938
|
+
r: "10",
|
|
84939
|
+
stroke: "currentColor",
|
|
84940
|
+
strokeWidth: "4"
|
|
84941
|
+
}),
|
|
84942
|
+
/*#__PURE__*/ jsx("path", {
|
|
84943
|
+
className: "opacity-75",
|
|
84944
|
+
fill: "currentColor",
|
|
84945
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
84946
|
+
})
|
|
84947
|
+
]
|
|
84948
|
+
});
|
|
84949
|
+
};
|
|
84950
|
+
|
|
84951
|
+
function _array_like_to_array$7(arr, len) {
|
|
84952
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
84953
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
84954
|
+
return arr2;
|
|
84955
|
+
}
|
|
84956
|
+
function _array_with_holes$5(arr) {
|
|
84957
|
+
if (Array.isArray(arr)) return arr;
|
|
84958
|
+
}
|
|
84959
|
+
function _array_without_holes$2(arr) {
|
|
84960
|
+
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
84961
|
+
}
|
|
84962
|
+
function _define_property$8(obj, key, value) {
|
|
84963
|
+
if (key in obj) {
|
|
84964
|
+
Object.defineProperty(obj, key, {
|
|
84965
|
+
value: value,
|
|
84966
|
+
enumerable: true,
|
|
84967
|
+
configurable: true,
|
|
84968
|
+
writable: true
|
|
84969
|
+
});
|
|
84970
|
+
} else {
|
|
84971
|
+
obj[key] = value;
|
|
84972
|
+
}
|
|
84973
|
+
return obj;
|
|
84974
|
+
}
|
|
84975
|
+
function _iterable_to_array$2(iter) {
|
|
84976
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
84977
|
+
}
|
|
84978
|
+
function _iterable_to_array_limit$5(arr, i) {
|
|
84979
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
84980
|
+
if (_i == null) return;
|
|
84981
|
+
var _arr = [];
|
|
84982
|
+
var _n = true;
|
|
84983
|
+
var _d = false;
|
|
84984
|
+
var _s, _e;
|
|
84985
|
+
try {
|
|
84986
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
84987
|
+
_arr.push(_s.value);
|
|
84988
|
+
if (i && _arr.length === i) break;
|
|
84989
|
+
}
|
|
84990
|
+
} catch (err) {
|
|
84991
|
+
_d = true;
|
|
84992
|
+
_e = err;
|
|
84993
|
+
} finally{
|
|
84994
|
+
try {
|
|
84995
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
84996
|
+
} finally{
|
|
84997
|
+
if (_d) throw _e;
|
|
84998
|
+
}
|
|
84999
|
+
}
|
|
85000
|
+
return _arr;
|
|
85001
|
+
}
|
|
85002
|
+
function _non_iterable_rest$5() {
|
|
85003
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
85004
|
+
}
|
|
85005
|
+
function _non_iterable_spread$2() {
|
|
85006
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
85007
|
+
}
|
|
85008
|
+
function _object_spread$8(target) {
|
|
85009
|
+
for(var i = 1; i < arguments.length; i++){
|
|
85010
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
85011
|
+
var ownKeys = Object.keys(source);
|
|
85012
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
85013
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
85014
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
85015
|
+
}));
|
|
85016
|
+
}
|
|
85017
|
+
ownKeys.forEach(function(key) {
|
|
85018
|
+
_define_property$8(target, key, source[key]);
|
|
85019
|
+
});
|
|
85020
|
+
}
|
|
85021
|
+
return target;
|
|
85022
|
+
}
|
|
85023
|
+
function ownKeys$5(object, enumerableOnly) {
|
|
85024
|
+
var keys = Object.keys(object);
|
|
85025
|
+
if (Object.getOwnPropertySymbols) {
|
|
85026
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
85027
|
+
if (enumerableOnly) {
|
|
85028
|
+
symbols = symbols.filter(function(sym) {
|
|
85029
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
85030
|
+
});
|
|
85031
|
+
}
|
|
85032
|
+
keys.push.apply(keys, symbols);
|
|
85033
|
+
}
|
|
85034
|
+
return keys;
|
|
85035
|
+
}
|
|
85036
|
+
function _object_spread_props$5(target, source) {
|
|
85037
|
+
source = source != null ? source : {};
|
|
85038
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
85039
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
85040
|
+
} else {
|
|
85041
|
+
ownKeys$5(Object(source)).forEach(function(key) {
|
|
85042
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
85043
|
+
});
|
|
85044
|
+
}
|
|
85045
|
+
return target;
|
|
85046
|
+
}
|
|
85047
|
+
function _sliced_to_array$5(arr, i) {
|
|
85048
|
+
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$5();
|
|
85049
|
+
}
|
|
85050
|
+
function _to_consumable_array$2(arr) {
|
|
85051
|
+
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread$2();
|
|
85052
|
+
}
|
|
85053
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
85054
|
+
if (!o) return;
|
|
85055
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
85056
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
85057
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
85058
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
85059
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
85060
|
+
}
|
|
85061
|
+
var DropDown = function(param) {
|
|
85062
|
+
var _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, _param_value = param.value, value = _param_value === void 0 ? null : _param_value, onChange = param.onChange, onSearchInputChange = param.onSearchInputChange, _param_placeholder = param.placeholder, placeholder = _param_placeholder === void 0 ? "Select..." : _param_placeholder, _param_searchInputPlaceholder = param.searchInputPlaceholder, searchInputPlaceholder = _param_searchInputPlaceholder === void 0 ? "Search..." : _param_searchInputPlaceholder, _param_isMultiple = param.isMultiple, isMultiple = _param_isMultiple === void 0 ? false : _param_isMultiple, _param_isClearable = param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, _param_isSearchable = param.isSearchable, isSearchable = _param_isSearchable === void 0 ? false : _param_isSearchable, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_loading = param.loading, loading = _param_loading === void 0 ? false : _param_loading, _param_menuIsOpen = param.menuIsOpen, menuIsOpen = _param_menuIsOpen === void 0 ? false : _param_menuIsOpen, _param_noOptionsMessage = param.noOptionsMessage, noOptionsMessage = _param_noOptionsMessage === void 0 ? "No options found" : _param_noOptionsMessage, _param_primaryColor = param.primaryColor, primaryColor = _param_primaryColor === void 0 ? DEFAULT_THEME : _param_primaryColor, _param_formatGroupLabel = param.formatGroupLabel, formatGroupLabel = _param_formatGroupLabel === void 0 ? null : _param_formatGroupLabel, _param_formatOptionLabel = param.formatOptionLabel, formatOptionLabel = _param_formatOptionLabel === void 0 ? null : _param_formatOptionLabel, classNames = param.classNames;
|
|
85063
|
+
var _useState = _sliced_to_array$5(useState(menuIsOpen), 2), open = _useState[0], setOpen = _useState[1];
|
|
85064
|
+
var _useState1 = _sliced_to_array$5(useState(options), 2), list = _useState1[0], setList = _useState1[1];
|
|
85065
|
+
var _useState2 = _sliced_to_array$5(useState(""), 2), inputValue = _useState2[0], setInputValue = _useState2[1];
|
|
85066
|
+
var ref = useRef(null);
|
|
85067
|
+
var searchBoxRef = useRef(null);
|
|
85068
|
+
useEffect(function() {
|
|
85069
|
+
var formatItem = function(item) {
|
|
85070
|
+
if ("disabled" in item) return item;
|
|
85071
|
+
return _object_spread_props$5(_object_spread$8({}, item), {
|
|
85072
|
+
disabled: false
|
|
85073
|
+
});
|
|
85074
|
+
};
|
|
85075
|
+
setList(options.map(function(item) {
|
|
85076
|
+
if ("options" in item) {
|
|
85077
|
+
return {
|
|
85078
|
+
label: item.label,
|
|
85079
|
+
options: item.options.map(formatItem)
|
|
85080
|
+
};
|
|
85081
|
+
} else {
|
|
85082
|
+
return formatItem(item);
|
|
85083
|
+
}
|
|
85084
|
+
}));
|
|
85085
|
+
}, [
|
|
85086
|
+
options
|
|
85087
|
+
]);
|
|
85088
|
+
useEffect(function() {
|
|
85089
|
+
if (isSearchable) {
|
|
85090
|
+
if (open) {
|
|
85091
|
+
var _searchBoxRef_current;
|
|
85092
|
+
(_searchBoxRef_current = searchBoxRef.current) === null || _searchBoxRef_current === void 0 ? void 0 : _searchBoxRef_current.select();
|
|
85093
|
+
} else {
|
|
85094
|
+
setInputValue("");
|
|
85095
|
+
}
|
|
85096
|
+
}
|
|
85097
|
+
}, [
|
|
85098
|
+
open,
|
|
85099
|
+
isSearchable
|
|
85100
|
+
]);
|
|
85101
|
+
var toggle = useCallback$1(function() {
|
|
85102
|
+
if (!isDisabled) {
|
|
85103
|
+
setOpen(!open);
|
|
85104
|
+
}
|
|
85105
|
+
}, [
|
|
85106
|
+
isDisabled,
|
|
85107
|
+
open
|
|
85108
|
+
]);
|
|
85109
|
+
var closeDropDown = useCallback$1(function() {
|
|
85110
|
+
if (open) setOpen(false);
|
|
85111
|
+
}, [
|
|
85112
|
+
open
|
|
85113
|
+
]);
|
|
85114
|
+
useOnClickOutside(ref, function() {
|
|
85115
|
+
closeDropDown();
|
|
85116
|
+
});
|
|
85117
|
+
var onPressEnterOrSpace = useCallback$1(function(e) {
|
|
85118
|
+
e.preventDefault();
|
|
85119
|
+
if ((e.code === "Enter" || e.code === "Space") && !isDisabled) {
|
|
85120
|
+
toggle();
|
|
85121
|
+
}
|
|
85122
|
+
}, [
|
|
85123
|
+
isDisabled,
|
|
85124
|
+
toggle
|
|
85125
|
+
]);
|
|
85126
|
+
var handleValueChange = useCallback$1(function(selected) {
|
|
85127
|
+
var update = function update() {
|
|
85128
|
+
if (!isMultiple && !Array.isArray(value)) {
|
|
85129
|
+
closeDropDown();
|
|
85130
|
+
onChange(selected);
|
|
85131
|
+
}
|
|
85132
|
+
if (isMultiple && (Array.isArray(value) || value === null)) {
|
|
85133
|
+
onChange(value === null ? [
|
|
85134
|
+
selected
|
|
85135
|
+
] : _to_consumable_array$2(value).concat([
|
|
85136
|
+
selected
|
|
85137
|
+
]));
|
|
85138
|
+
}
|
|
85139
|
+
};
|
|
85140
|
+
if (selected !== value) {
|
|
85141
|
+
update();
|
|
85142
|
+
}
|
|
85143
|
+
}, [
|
|
85144
|
+
closeDropDown,
|
|
85145
|
+
isMultiple,
|
|
85146
|
+
onChange,
|
|
85147
|
+
value
|
|
85148
|
+
]);
|
|
85149
|
+
var clearValue = useCallback$1(function(e) {
|
|
85150
|
+
e.stopPropagation();
|
|
85151
|
+
onChange(null);
|
|
85152
|
+
}, [
|
|
85153
|
+
onChange
|
|
85154
|
+
]);
|
|
85155
|
+
var removeItem = useCallback$1(function(e, item) {
|
|
85156
|
+
if (isMultiple && Array.isArray(value) && value.length) {
|
|
85157
|
+
e.stopPropagation();
|
|
85158
|
+
var result = value.filter(function(current) {
|
|
85159
|
+
return item.value !== current.value;
|
|
85160
|
+
});
|
|
85161
|
+
onChange(result.length ? result : null);
|
|
85162
|
+
}
|
|
85163
|
+
}, [
|
|
85164
|
+
isMultiple,
|
|
85165
|
+
onChange,
|
|
85166
|
+
value
|
|
85167
|
+
]);
|
|
85168
|
+
var getSelectClass = useCallback$1(function() {
|
|
85169
|
+
var ringColor = THEME_DATA.ring[DEFAULT_THEME];
|
|
85170
|
+
if (COLORS.includes(primaryColor)) {
|
|
85171
|
+
ringColor = THEME_DATA.ring[primaryColor];
|
|
85172
|
+
}
|
|
85173
|
+
var borderFocus = THEME_DATA.borderFocus[DEFAULT_THEME];
|
|
85174
|
+
if (COLORS.includes(primaryColor)) {
|
|
85175
|
+
borderFocus = THEME_DATA.borderFocus[primaryColor];
|
|
85176
|
+
}
|
|
85177
|
+
var baseClass = "flex text-sm text-gray-500 border border-gray-300 rounded shadow-sm transition-all duration-300 focus:outline-none";
|
|
85178
|
+
var defaultClass = "".concat(baseClass, " ").concat(isDisabled ? "bg-gray-200" : "bg-white hover:border-gray-400 ".concat(borderFocus, " focus:ring ").concat(ringColor));
|
|
85179
|
+
return classNames && classNames.menuButton ? classNames.menuButton({
|
|
85180
|
+
isDisabled: isDisabled
|
|
85181
|
+
}) : defaultClass;
|
|
85182
|
+
}, [
|
|
85183
|
+
classNames,
|
|
85184
|
+
isDisabled,
|
|
85185
|
+
primaryColor
|
|
85186
|
+
]);
|
|
85187
|
+
var getTagItemClass = useCallback$1(function(item) {
|
|
85188
|
+
var baseClasse = "bg-gray-200 border rounded-sm flex space-x-1";
|
|
85189
|
+
var disabledClass = isDisabled ? "border-gray-500 px-1" : "pl-1";
|
|
85190
|
+
return (classNames === null || classNames === void 0 ? void 0 : classNames.tagItem) ? classNames.tagItem({
|
|
85191
|
+
item: item,
|
|
85192
|
+
isDisabled: isDisabled
|
|
85193
|
+
}) : "".concat(baseClasse, " ").concat(disabledClass);
|
|
85194
|
+
}, [
|
|
85195
|
+
classNames,
|
|
85196
|
+
isDisabled
|
|
85197
|
+
]);
|
|
85198
|
+
return /*#__PURE__*/ jsx(SelectProvider, {
|
|
85199
|
+
otherData: {
|
|
85200
|
+
formatGroupLabel: formatGroupLabel,
|
|
85201
|
+
formatOptionLabel: formatOptionLabel,
|
|
85202
|
+
classNames: classNames
|
|
85203
|
+
},
|
|
85204
|
+
value: value,
|
|
85205
|
+
handleValueChange: handleValueChange,
|
|
85206
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
85207
|
+
className: "relative w-full",
|
|
85208
|
+
ref: ref,
|
|
85209
|
+
children: [
|
|
85210
|
+
/*#__PURE__*/ jsxs("div", {
|
|
85211
|
+
"aria-expanded": open,
|
|
85212
|
+
onKeyDown: onPressEnterOrSpace,
|
|
85213
|
+
onClick: toggle,
|
|
85214
|
+
className: getSelectClass(),
|
|
85215
|
+
children: [
|
|
85216
|
+
/*#__PURE__*/ jsx("div", {
|
|
85217
|
+
className: "grow pl-2.5 py-2 pr-2 flex flex-wrap gap-1",
|
|
85218
|
+
children: !isMultiple ? /*#__PURE__*/ jsx("p", {
|
|
85219
|
+
className: "truncate cursor-default select-none",
|
|
85220
|
+
children: value && !Array.isArray(value) ? value.label : placeholder
|
|
85221
|
+
}) : /*#__PURE__*/ jsxs(Fragment$1, {
|
|
85222
|
+
children: [
|
|
85223
|
+
value === null && placeholder,
|
|
85224
|
+
Array.isArray(value) && value.map(function(item, index) {
|
|
85225
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
85226
|
+
className: getTagItemClass(item),
|
|
85227
|
+
children: [
|
|
85228
|
+
/*#__PURE__*/ jsx("p", {
|
|
85229
|
+
className: (classNames === null || classNames === void 0 ? void 0 : classNames.tagItemText) ? classNames.tagItemText : "text-gray-600 truncate cursor-default select-none",
|
|
85230
|
+
children: item.label
|
|
85231
|
+
}),
|
|
85232
|
+
!isDisabled && /*#__PURE__*/ jsx("div", {
|
|
85233
|
+
role: "button",
|
|
85234
|
+
tabIndex: 0,
|
|
85235
|
+
onClick: function(e) {
|
|
85236
|
+
return removeItem(e, item);
|
|
85237
|
+
},
|
|
85238
|
+
className: (classNames === null || classNames === void 0 ? void 0 : classNames.tagItemIconContainer) ? classNames.tagItemIconContainer : "flex items-center px-1 cursor-pointer rounded-r-sm hover:bg-red-200 hover:text-red-600",
|
|
85239
|
+
children: /*#__PURE__*/ jsx(CloseIcon, {
|
|
85240
|
+
className: (classNames === null || classNames === void 0 ? void 0 : classNames.tagItemIcon) ? classNames.tagItemIcon : "w-3 h-3 mt-0.5"
|
|
85241
|
+
})
|
|
85242
|
+
})
|
|
85243
|
+
]
|
|
85244
|
+
}, index);
|
|
85245
|
+
})
|
|
85246
|
+
]
|
|
85247
|
+
})
|
|
85248
|
+
}),
|
|
85249
|
+
/*#__PURE__*/ jsxs("div", {
|
|
85250
|
+
className: "flex flex-none items-center py-1.5",
|
|
85251
|
+
children: [
|
|
85252
|
+
loading && /*#__PURE__*/ jsx("div", {
|
|
85253
|
+
className: "px-1.5",
|
|
85254
|
+
children: /*#__PURE__*/ jsx(Spinner, {
|
|
85255
|
+
primaryColor: primaryColor
|
|
85256
|
+
})
|
|
85257
|
+
}),
|
|
85258
|
+
isClearable && !isDisabled && value !== null && /*#__PURE__*/ jsx("div", {
|
|
85259
|
+
className: "px-1.5 cursor-pointer",
|
|
85260
|
+
onClick: clearValue,
|
|
85261
|
+
children: /*#__PURE__*/ jsx(CloseIcon, {
|
|
85262
|
+
className: (classNames === null || classNames === void 0 ? void 0 : classNames.closeIcon) ? classNames.closeIcon : "w-5 h-5 p-0.5"
|
|
85263
|
+
})
|
|
85264
|
+
}),
|
|
85265
|
+
/*#__PURE__*/ jsx("div", {
|
|
85266
|
+
className: "h-full",
|
|
85267
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
85268
|
+
className: "w-px h-full inline-block text-white bg-gray-300 text-opacity-0"
|
|
85269
|
+
})
|
|
85270
|
+
}),
|
|
85271
|
+
/*#__PURE__*/ jsx("div", {
|
|
85272
|
+
className: "px-1.5",
|
|
85273
|
+
children: /*#__PURE__*/ jsx(ChevronIcon, {
|
|
85274
|
+
className: "transition duration-300 w-6 h-6 p-0.5".concat(open ? " transform rotate-90 text-gray-500" : " text-gray-300")
|
|
85275
|
+
})
|
|
85276
|
+
})
|
|
85277
|
+
]
|
|
85278
|
+
})
|
|
85279
|
+
]
|
|
85280
|
+
}),
|
|
85281
|
+
open && !isDisabled && /*#__PURE__*/ jsxs("div", {
|
|
85282
|
+
className: (classNames === null || classNames === void 0 ? void 0 : classNames.menu) ? classNames.menu : "absolute z-10 w-full bg-white shadow-lg border rounded py-1 mt-1.5 text-sm text-gray-700",
|
|
85283
|
+
children: [
|
|
85284
|
+
isSearchable && /*#__PURE__*/ jsx(SearchInput, {
|
|
85285
|
+
ref: searchBoxRef,
|
|
85286
|
+
value: inputValue,
|
|
85287
|
+
placeholder: searchInputPlaceholder,
|
|
85288
|
+
onChange: function(e) {
|
|
85289
|
+
if (onSearchInputChange && typeof onSearchInputChange === "function") onSearchInputChange(e);
|
|
85290
|
+
setInputValue(e.target.value);
|
|
85291
|
+
}
|
|
85292
|
+
}),
|
|
85293
|
+
/*#__PURE__*/ jsx(Options, {
|
|
85294
|
+
list: list,
|
|
85295
|
+
noOptionsMessage: noOptionsMessage,
|
|
85296
|
+
text: inputValue,
|
|
85297
|
+
isMultiple: isMultiple,
|
|
85298
|
+
value: value,
|
|
85299
|
+
primaryColor: primaryColor || DEFAULT_THEME
|
|
85300
|
+
})
|
|
85301
|
+
]
|
|
85302
|
+
})
|
|
85303
|
+
]
|
|
85304
|
+
})
|
|
85305
|
+
});
|
|
85306
|
+
};
|
|
85307
|
+
|
|
84396
85308
|
var ModalContent = function(param) {
|
|
84397
85309
|
var title = param.title, setModal = param.setModal, children = param.children, onClick = param.onClick, _param_notice = param.notice, notice = _param_notice === void 0 ? false : _param_notice;
|
|
84398
85310
|
return /*#__PURE__*/ jsxs("form", {
|
|
@@ -106940,4 +107852,4 @@ function DnDCalendar(props) {
|
|
|
106940
107852
|
});
|
|
106941
107853
|
}
|
|
106942
107854
|
|
|
106943
|
-
export { BaseTable, BigCalender, CkEditor, CustomUpload, DataTable, DateRangePicker, DnDCalendar, DropImage, ReactDateRange, Regex, Spin, Switch, UiLibrary, decryptByEcPay, encryptByEcPay, verifyId, verifyTaxId };
|
|
107855
|
+
export { BaseTable, BigCalender, CkEditor, CustomUpload, DataTable, DateRangePicker, DnDCalendar, DropDown, DropImage, ReactDateRange, Regex, Spin, Switch, UiLibrary, decryptByEcPay, encryptByEcPay, verifyId, verifyTaxId };
|