@sunggang/ui-lib 0.3.26 → 0.3.28
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/BaseCkeditor.esm.js +0 -2
- package/index.esm.css +0 -3
- package/index.esm.js +0 -2
- package/index.esm2.js +115 -98
- package/index.esm3.js +0 -2
- package/index.esm4.js +369 -228
- package/package.json +1 -1
package/BaseCkeditor.esm.js
CHANGED
|
@@ -14,8 +14,6 @@ import 'date-fns/locale/index.js';
|
|
|
14
14
|
import '@radix-ui/react-popover';
|
|
15
15
|
import 'react-date-range';
|
|
16
16
|
import 'react-date-range/dist/locale/index.js';
|
|
17
|
-
import 'date-fns/addDays/index.js';
|
|
18
|
-
import 'date-fns/format/index.js';
|
|
19
17
|
import '@emotion/react';
|
|
20
18
|
import 'react-dom';
|
|
21
19
|
import '@mui/material';
|
package/index.esm.css
CHANGED
package/index.esm.js
CHANGED
|
@@ -14,8 +14,6 @@ import 'date-fns/locale/index.js';
|
|
|
14
14
|
import '@radix-ui/react-popover';
|
|
15
15
|
import 'react-date-range';
|
|
16
16
|
import 'react-date-range/dist/locale/index.js';
|
|
17
|
-
import 'date-fns/addDays/index.js';
|
|
18
|
-
import 'date-fns/format/index.js';
|
|
19
17
|
import '@emotion/react';
|
|
20
18
|
import 'react-dom';
|
|
21
19
|
import '@mui/material';
|
package/index.esm2.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Icon } from '@iconify/react';
|
|
|
5
5
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
6
6
|
import clsx$1, { clsx } from 'clsx';
|
|
7
7
|
import { twMerge } from 'tailwind-merge';
|
|
8
|
-
import { format } from 'date-fns';
|
|
8
|
+
import { format, addDays } from 'date-fns';
|
|
9
9
|
import { Calendar as Calendar$3, ChevronDown } from 'lucide-react';
|
|
10
10
|
import { Slot } from '@radix-ui/react-slot';
|
|
11
11
|
import { cva } from 'class-variance-authority';
|
|
@@ -14,8 +14,6 @@ import { zhTW } from 'date-fns/locale/index.js';
|
|
|
14
14
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
15
15
|
import { Calendar as Calendar$4, DateRange } from 'react-date-range';
|
|
16
16
|
import * as locales from 'react-date-range/dist/locale/index.js';
|
|
17
|
-
import addDays from 'date-fns/addDays/index.js';
|
|
18
|
-
import format$1 from 'date-fns/format/index.js';
|
|
19
17
|
import { keyframes, jsx as jsx$1, css as css$2 } from '@emotion/react';
|
|
20
18
|
import ReactDOM, { createPortal, unstable_batchedUpdates } from 'react-dom';
|
|
21
19
|
import { Checkbox, RadioGroup, FormControlLabel, Radio } from '@mui/material';
|
|
@@ -2378,6 +2376,7 @@ var getProxyFormState = function(formState, control, localProxyFormState) {
|
|
|
2378
2376
|
for(var key in formState)_loop(key);
|
|
2379
2377
|
return result;
|
|
2380
2378
|
};
|
|
2379
|
+
var useIsomorphicLayoutEffect$1 = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
2381
2380
|
/**
|
|
2382
2381
|
* This custom hook allows you to subscribe to each form state, and isolate the re-render at the custom hook level. It has its scope in terms of form state subscription, so it would not affect other useFormState and useForm. Using this hook can reduce the re-render impact on large and complex form application.
|
|
2383
2382
|
*
|
|
@@ -2410,7 +2409,7 @@ var getProxyFormState = function(formState, control, localProxyFormState) {
|
|
|
2410
2409
|
*/ function useFormState(props) {
|
|
2411
2410
|
var methods = useFormContext();
|
|
2412
2411
|
var _ref = props || {}, _ref_control = _ref.control, control = _ref_control === void 0 ? methods.control : _ref_control, disabled = _ref.disabled, name = _ref.name, exact = _ref.exact;
|
|
2413
|
-
var
|
|
2412
|
+
var _React__default_useState = _sliced_to_array$g(React__default.useState(control._formState), 2), formState = _React__default_useState[0], updateFormState = _React__default_useState[1];
|
|
2414
2413
|
var _localProxyFormState = React__default.useRef({
|
|
2415
2414
|
isDirty: false,
|
|
2416
2415
|
isLoading: false,
|
|
@@ -2421,11 +2420,9 @@ var getProxyFormState = function(formState, control, localProxyFormState) {
|
|
|
2421
2420
|
isValid: false,
|
|
2422
2421
|
errors: false
|
|
2423
2422
|
});
|
|
2424
|
-
|
|
2425
|
-
_name.current = name;
|
|
2426
|
-
React__default.useEffect(function() {
|
|
2423
|
+
useIsomorphicLayoutEffect$1(function() {
|
|
2427
2424
|
return control._subscribe({
|
|
2428
|
-
name:
|
|
2425
|
+
name: name,
|
|
2429
2426
|
formState: _localProxyFormState.current,
|
|
2430
2427
|
exact: exact,
|
|
2431
2428
|
callback: function(formState) {
|
|
@@ -2433,7 +2430,7 @@ var getProxyFormState = function(formState, control, localProxyFormState) {
|
|
|
2433
2430
|
}
|
|
2434
2431
|
});
|
|
2435
2432
|
}, [
|
|
2436
|
-
|
|
2433
|
+
name,
|
|
2437
2434
|
disabled,
|
|
2438
2435
|
exact
|
|
2439
2436
|
]);
|
|
@@ -2483,26 +2480,25 @@ var generateWatchOutput = function(names, _names, formValues, isGlobal, defaultV
|
|
|
2483
2480
|
*/ function useWatch(props) {
|
|
2484
2481
|
var methods = useFormContext();
|
|
2485
2482
|
var _ref = props || {}, _ref_control = _ref.control, control = _ref_control === void 0 ? methods.control : _ref_control, name = _ref.name, defaultValue = _ref.defaultValue, disabled = _ref.disabled, exact = _ref.exact;
|
|
2486
|
-
var _name = React__default.useRef(name);
|
|
2487
2483
|
var _defaultValue = React__default.useRef(defaultValue);
|
|
2488
|
-
|
|
2489
|
-
|
|
2484
|
+
var _React__default_useState = _sliced_to_array$g(React__default.useState(control._getWatch(name, _defaultValue.current)), 2), value1 = _React__default_useState[0], updateValue = _React__default_useState[1];
|
|
2485
|
+
useIsomorphicLayoutEffect$1(function() {
|
|
2490
2486
|
return control._subscribe({
|
|
2491
|
-
name:
|
|
2487
|
+
name: name,
|
|
2492
2488
|
formState: {
|
|
2493
2489
|
values: true
|
|
2494
2490
|
},
|
|
2495
2491
|
exact: exact,
|
|
2496
2492
|
callback: function(formState) {
|
|
2497
|
-
return !disabled && updateValue(generateWatchOutput(
|
|
2493
|
+
return !disabled && updateValue(generateWatchOutput(name, control._names, formState.values || control._formValues, false, _defaultValue.current));
|
|
2498
2494
|
}
|
|
2499
2495
|
});
|
|
2500
2496
|
}, [
|
|
2497
|
+
name,
|
|
2501
2498
|
control,
|
|
2502
2499
|
disabled,
|
|
2503
2500
|
exact
|
|
2504
2501
|
]);
|
|
2505
|
-
var _React_useState = _sliced_to_array$g(React__default.useState(control._getWatch(name, defaultValue)), 2), value1 = _React_useState[0], updateValue = _React_useState[1];
|
|
2506
2502
|
React__default.useEffect(function() {
|
|
2507
2503
|
return control._removeUnmounted();
|
|
2508
2504
|
});
|
|
@@ -3440,6 +3436,7 @@ function createFormControl() {
|
|
|
3440
3436
|
var _formState = {
|
|
3441
3437
|
submitCount: 0,
|
|
3442
3438
|
isDirty: false,
|
|
3439
|
+
isReady: false,
|
|
3443
3440
|
isLoading: isFunction$5(_options.defaultValues),
|
|
3444
3441
|
isValidating: false,
|
|
3445
3442
|
isSubmitted: false,
|
|
@@ -3453,7 +3450,7 @@ function createFormControl() {
|
|
|
3453
3450
|
disabled: _options.disabled || false
|
|
3454
3451
|
};
|
|
3455
3452
|
var _fields = {};
|
|
3456
|
-
var _defaultValues = isObject$a(_options.defaultValues) || isObject$a(_options.values) ? cloneObject(_options.
|
|
3453
|
+
var _defaultValues = isObject$a(_options.defaultValues) || isObject$a(_options.values) ? cloneObject(_options.defaultValues || _options.values) || {} : {};
|
|
3457
3454
|
var _formValues = _options.shouldUnregister ? {} : cloneObject(_defaultValues);
|
|
3458
3455
|
var _state = {
|
|
3459
3456
|
action: false,
|
|
@@ -3483,8 +3480,6 @@ function createFormControl() {
|
|
|
3483
3480
|
array: createSubject(),
|
|
3484
3481
|
state: createSubject()
|
|
3485
3482
|
};
|
|
3486
|
-
var validationModeBeforeSubmit = getValidationModes(_options.mode);
|
|
3487
|
-
var validationModeAfterSubmit = getValidationModes(_options.reValidateMode);
|
|
3488
3483
|
var shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;
|
|
3489
3484
|
var debounce = function(callback) {
|
|
3490
3485
|
return function(wait) {
|
|
@@ -3883,11 +3878,17 @@ function createFormControl() {
|
|
|
3883
3878
|
});
|
|
3884
3879
|
} else if (fieldReference.refs) {
|
|
3885
3880
|
if (isCheckBoxInput(fieldReference.ref)) {
|
|
3886
|
-
fieldReference.refs.
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3881
|
+
fieldReference.refs.forEach(function(checkboxRef) {
|
|
3882
|
+
if (!checkboxRef.defaultChecked || !checkboxRef.disabled) {
|
|
3883
|
+
if (Array.isArray(fieldValue)) {
|
|
3884
|
+
checkboxRef.checked = !!fieldValue.find(function(data) {
|
|
3885
|
+
return data === checkboxRef.value;
|
|
3886
|
+
});
|
|
3887
|
+
} else {
|
|
3888
|
+
checkboxRef.checked = fieldValue === checkboxRef.value || !!fieldValue;
|
|
3889
|
+
}
|
|
3890
|
+
}
|
|
3891
|
+
});
|
|
3891
3892
|
} else {
|
|
3892
3893
|
fieldReference.refs.forEach(function(radioRef) {
|
|
3893
3894
|
return radioRef.checked = radioRef.value === fieldValue;
|
|
@@ -3911,6 +3912,9 @@ function createFormControl() {
|
|
|
3911
3912
|
};
|
|
3912
3913
|
var setValues = function(name, value1, options) {
|
|
3913
3914
|
for(var fieldKey in value1){
|
|
3915
|
+
if (!value1.hasOwnProperty(fieldKey)) {
|
|
3916
|
+
return;
|
|
3917
|
+
}
|
|
3914
3918
|
var fieldValue = value1[fieldKey];
|
|
3915
3919
|
var fieldName = "".concat(name, ".").concat(fieldKey);
|
|
3916
3920
|
var field = get$2(_fields, fieldName);
|
|
@@ -3946,7 +3950,7 @@ function createFormControl() {
|
|
|
3946
3950
|
};
|
|
3947
3951
|
var onChange = function() {
|
|
3948
3952
|
var _ref = _async_to_generator$3(function(event) {
|
|
3949
|
-
var target, name, isFieldValueUpdated, field, _updateIsFieldValueUpdated, error, isValid, fieldValue, isBlurEvent, shouldSkipValidation, watched, fieldState, shouldRender, errors, previousErrorLookupResult, errorLookupResult;
|
|
3953
|
+
var target, name, isFieldValueUpdated, field, _updateIsFieldValueUpdated, validationModeBeforeSubmit, validationModeAfterSubmit, error, isValid, fieldValue, isBlurEvent, shouldSkipValidation, watched, fieldState, shouldRender, errors, previousErrorLookupResult, errorLookupResult;
|
|
3950
3954
|
return _ts_generator$3(this, function(_state1) {
|
|
3951
3955
|
switch(_state1.label){
|
|
3952
3956
|
case 0:
|
|
@@ -3958,6 +3962,8 @@ function createFormControl() {
|
|
|
3958
3962
|
_updateIsFieldValueUpdated = function(fieldValue) {
|
|
3959
3963
|
isFieldValueUpdated = Number.isNaN(fieldValue) || isDateObject(fieldValue) && isNaN(fieldValue.getTime()) || deepEqual(fieldValue, get$2(_formValues, name, fieldValue));
|
|
3960
3964
|
};
|
|
3965
|
+
validationModeBeforeSubmit = getValidationModes(_options.mode);
|
|
3966
|
+
validationModeAfterSubmit = getValidationModes(_options.reValidateMode);
|
|
3961
3967
|
if (!field) return [
|
|
3962
3968
|
3,
|
|
3963
3969
|
7
|
|
@@ -4880,7 +4886,7 @@ var updateAt = function(fieldValues, index, value1) {
|
|
|
4880
4886
|
*/ function useFieldArray(props) {
|
|
4881
4887
|
var methods = useFormContext();
|
|
4882
4888
|
var _props_control = props.control, control = _props_control === void 0 ? methods.control : _props_control, name = props.name, _props_keyName = props.keyName, keyName = _props_keyName === void 0 ? "id" : _props_keyName, shouldUnregister = props.shouldUnregister, rules = props.rules;
|
|
4883
|
-
var
|
|
4889
|
+
var _React__default_useState = _sliced_to_array$g(React__default.useState(control._getFieldArray(name)), 2), fields = _React__default_useState[0], setFields = _React__default_useState[1];
|
|
4884
4890
|
var ids = React__default.useRef(control._getFieldArray(name).map(generateId));
|
|
4885
4891
|
var _fieldIds = React__default.useRef(fields);
|
|
4886
4892
|
var _name = React__default.useRef(name);
|
|
@@ -5147,7 +5153,7 @@ var updateAt = function(fieldValues, index, value1) {
|
|
|
5147
5153
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5148
5154
|
var _formControl = React__default.useRef(undefined);
|
|
5149
5155
|
var _values = React__default.useRef(undefined);
|
|
5150
|
-
var
|
|
5156
|
+
var _React__default_useState = _sliced_to_array$g(React__default.useState({
|
|
5151
5157
|
isDirty: false,
|
|
5152
5158
|
isValidating: false,
|
|
5153
5159
|
isLoading: isFunction$5(props.defaultValues),
|
|
@@ -5161,8 +5167,9 @@ var updateAt = function(fieldValues, index, value1) {
|
|
|
5161
5167
|
validatingFields: {},
|
|
5162
5168
|
errors: props.errors || {},
|
|
5163
5169
|
disabled: props.disabled || false,
|
|
5170
|
+
isReady: false,
|
|
5164
5171
|
defaultValues: isFunction$5(props.defaultValues) ? undefined : props.defaultValues
|
|
5165
|
-
}), 2), formState =
|
|
5172
|
+
}), 2), formState = _React__default_useState[0], updateFormState = _React__default_useState[1];
|
|
5166
5173
|
if (!_formControl.current) {
|
|
5167
5174
|
_formControl.current = _object_spread_props$g(_object_spread$k({}, props.formControl ? props.formControl : createFormControl(props)), {
|
|
5168
5175
|
formState: formState
|
|
@@ -5173,14 +5180,21 @@ var updateAt = function(fieldValues, index, value1) {
|
|
|
5173
5180
|
}
|
|
5174
5181
|
var control = _formControl.current.control;
|
|
5175
5182
|
control._options = props;
|
|
5176
|
-
|
|
5177
|
-
|
|
5183
|
+
useIsomorphicLayoutEffect$1(function() {
|
|
5184
|
+
var sub = control._subscribe({
|
|
5178
5185
|
formState: control._proxyFormState,
|
|
5179
5186
|
callback: function() {
|
|
5180
5187
|
return updateFormState(_object_spread$k({}, control._formState));
|
|
5181
5188
|
},
|
|
5182
5189
|
reRenderRoot: true
|
|
5183
5190
|
});
|
|
5191
|
+
updateFormState(function(data) {
|
|
5192
|
+
return _object_spread_props$g(_object_spread$k({}, data), {
|
|
5193
|
+
isReady: true
|
|
5194
|
+
});
|
|
5195
|
+
});
|
|
5196
|
+
control._formState.isReady = true;
|
|
5197
|
+
return sub;
|
|
5184
5198
|
}, [
|
|
5185
5199
|
control
|
|
5186
5200
|
]);
|
|
@@ -5190,6 +5204,30 @@ var updateAt = function(fieldValues, index, value1) {
|
|
|
5190
5204
|
control,
|
|
5191
5205
|
props.disabled
|
|
5192
5206
|
]);
|
|
5207
|
+
React__default.useEffect(function() {
|
|
5208
|
+
if (props.mode) {
|
|
5209
|
+
control._options.mode = props.mode;
|
|
5210
|
+
}
|
|
5211
|
+
if (props.reValidateMode) {
|
|
5212
|
+
control._options.reValidateMode = props.reValidateMode;
|
|
5213
|
+
}
|
|
5214
|
+
if (props.errors && !isEmptyObject(props.errors)) {
|
|
5215
|
+
control._setErrors(props.errors);
|
|
5216
|
+
}
|
|
5217
|
+
}, [
|
|
5218
|
+
control,
|
|
5219
|
+
props.errors,
|
|
5220
|
+
props.mode,
|
|
5221
|
+
props.reValidateMode
|
|
5222
|
+
]);
|
|
5223
|
+
React__default.useEffect(function() {
|
|
5224
|
+
props.shouldUnregister && control._subjects.state.next({
|
|
5225
|
+
values: control._getWatch()
|
|
5226
|
+
});
|
|
5227
|
+
}, [
|
|
5228
|
+
control,
|
|
5229
|
+
props.shouldUnregister
|
|
5230
|
+
]);
|
|
5193
5231
|
React__default.useEffect(function() {
|
|
5194
5232
|
if (control._proxyFormState.isDirty) {
|
|
5195
5233
|
var isDirty = control._getDirty();
|
|
@@ -5214,16 +5252,8 @@ var updateAt = function(fieldValues, index, value1) {
|
|
|
5214
5252
|
control._resetDefaultValues();
|
|
5215
5253
|
}
|
|
5216
5254
|
}, [
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
]);
|
|
5220
|
-
React__default.useEffect(function() {
|
|
5221
|
-
if (props.errors && !isEmptyObject(props.errors)) {
|
|
5222
|
-
control._setErrors(props.errors);
|
|
5223
|
-
}
|
|
5224
|
-
}, [
|
|
5225
|
-
props.errors,
|
|
5226
|
-
control
|
|
5255
|
+
control,
|
|
5256
|
+
props.values
|
|
5227
5257
|
]);
|
|
5228
5258
|
React__default.useEffect(function() {
|
|
5229
5259
|
if (!control._state.mount) {
|
|
@@ -5236,14 +5266,6 @@ var updateAt = function(fieldValues, index, value1) {
|
|
|
5236
5266
|
}
|
|
5237
5267
|
control._removeUnmounted();
|
|
5238
5268
|
});
|
|
5239
|
-
React__default.useEffect(function() {
|
|
5240
|
-
props.shouldUnregister && control._subjects.state.next({
|
|
5241
|
-
values: control._getWatch()
|
|
5242
|
-
});
|
|
5243
|
-
}, [
|
|
5244
|
-
props.shouldUnregister,
|
|
5245
|
-
control
|
|
5246
|
-
]);
|
|
5247
5269
|
_formControl.current.formState = getProxyFormState(formState, control);
|
|
5248
5270
|
return _formControl.current;
|
|
5249
5271
|
}
|
|
@@ -6056,9 +6078,9 @@ var ReactDateRange = function(param) {
|
|
|
6056
6078
|
var formatDates = function() {
|
|
6057
6079
|
if (!range) return;
|
|
6058
6080
|
var startDate = range.startDate, endDate = range.endDate;
|
|
6059
|
-
return "".concat(format
|
|
6081
|
+
return "".concat(format(startDate, "yyyy-MM-dd"), " ~ ").concat(format(endDate, "yyyy-MM-dd"));
|
|
6060
6082
|
};
|
|
6061
|
-
var formatDate = calendarData ? format
|
|
6083
|
+
var formatDate = calendarData ? format(calendarData, (item === null || item === void 0 ? void 0 : item.dateDisplayFormat) || "yyyy-MM-dd") : "";
|
|
6062
6084
|
return /*#__PURE__*/ jsxs("div", {
|
|
6063
6085
|
className: [
|
|
6064
6086
|
className,
|
|
@@ -6854,7 +6876,7 @@ function observeMove(element, onMove) {
|
|
|
6854
6876
|
// Handle <iframe>s
|
|
6855
6877
|
root: root.ownerDocument
|
|
6856
6878
|
}));
|
|
6857
|
-
} catch (
|
|
6879
|
+
} catch (_e) {
|
|
6858
6880
|
io = new IntersectionObserver(handleObserve, options);
|
|
6859
6881
|
}
|
|
6860
6882
|
io.observe(element);
|
|
@@ -6935,7 +6957,8 @@ function observeMove(element, onMove) {
|
|
|
6935
6957
|
}
|
|
6936
6958
|
|
|
6937
6959
|
var isClient = typeof document !== "undefined";
|
|
6938
|
-
var
|
|
6960
|
+
var noop$5 = function noop() {};
|
|
6961
|
+
var index$1 = isClient ? useLayoutEffect : noop$5;
|
|
6939
6962
|
|
|
6940
6963
|
var _excluded$4$1 = [
|
|
6941
6964
|
"className",
|
|
@@ -13478,7 +13501,7 @@ function _instanceof$9(left, right) {
|
|
|
13478
13501
|
return left instanceof right;
|
|
13479
13502
|
}
|
|
13480
13503
|
}
|
|
13481
|
-
var f$1 = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", m$1 = "active", y$1 = "data-styled-version", v$1 = "6.1.
|
|
13504
|
+
var f$1 = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", m$1 = "active", y$1 = "data-styled-version", v$1 = "6.1.18", g$1 = "/*!sc*/\n", S = "undefined" != typeof window && "undefined" != typeof document, w$1 = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV), E = /invalid hook call/i, N = new Set, P = function P(t, n) {
|
|
13482
13505
|
if ("production" !== process.env.NODE_ENV) {
|
|
13483
13506
|
var _$o = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t).concat(_$o, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
|
|
13484
13507
|
try {
|
|
@@ -13645,22 +13668,22 @@ function x$1(e) {
|
|
|
13645
13668
|
for(t = Math.abs(e); t > k$1; t = t / k$1 | 0)n = j(t % k$1) + n;
|
|
13646
13669
|
return (j(t % k$1) + n).replace(T, "$1-$2");
|
|
13647
13670
|
}
|
|
13648
|
-
var V, F = 5381,
|
|
13671
|
+
var V, F = 5381, z$1 = function z(e, t) {
|
|
13649
13672
|
for(var n = t.length; n;)e = 33 * e ^ t.charCodeAt(--n);
|
|
13650
13673
|
return e;
|
|
13651
|
-
},
|
|
13652
|
-
return
|
|
13674
|
+
}, M = function M(e) {
|
|
13675
|
+
return z$1(F, e);
|
|
13653
13676
|
};
|
|
13654
13677
|
function $(e) {
|
|
13655
|
-
return x$1(
|
|
13678
|
+
return x$1(M(e) >>> 0);
|
|
13656
13679
|
}
|
|
13657
13680
|
function B(e) {
|
|
13658
13681
|
return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
|
|
13659
13682
|
}
|
|
13660
|
-
function
|
|
13683
|
+
function G(e) {
|
|
13661
13684
|
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
13662
13685
|
}
|
|
13663
|
-
var
|
|
13686
|
+
var L = "function" == typeof Symbol && Symbol.for, Y = L ? Symbol.for("react.memo") : 60115, q$1 = L ? Symbol.for("react.forward_ref") : 60112, W = {
|
|
13664
13687
|
childContextTypes: !0,
|
|
13665
13688
|
contextType: !0,
|
|
13666
13689
|
contextTypes: !0,
|
|
@@ -13974,22 +13997,22 @@ function Fe(e) {
|
|
|
13974
13997
|
})))), p;
|
|
13975
13998
|
};
|
|
13976
13999
|
return p.hash = c.length ? c.reduce(function(e, t) {
|
|
13977
|
-
return t.name || he(15),
|
|
14000
|
+
return t.name || he(15), z$1(e, t.name);
|
|
13978
14001
|
}, F).toString() : "", p;
|
|
13979
14002
|
}
|
|
13980
|
-
var
|
|
14003
|
+
var ze = new ke, Me = Fe(), $e = React__default.createContext({
|
|
13981
14004
|
shouldForwardProp: void 0,
|
|
13982
|
-
styleSheet:
|
|
13983
|
-
stylis:
|
|
14005
|
+
styleSheet: ze,
|
|
14006
|
+
stylis: Me
|
|
13984
14007
|
}); $e.Consumer; React__default.createContext(void 0);
|
|
13985
|
-
function
|
|
14008
|
+
function Le() {
|
|
13986
14009
|
return useContext($e);
|
|
13987
14010
|
}
|
|
13988
14011
|
var qe = function() {
|
|
13989
14012
|
function e(e, t) {
|
|
13990
14013
|
var n = this;
|
|
13991
14014
|
this.inject = function(e, t) {
|
|
13992
|
-
void 0 === t && (t =
|
|
14015
|
+
void 0 === t && (t = Me);
|
|
13993
14016
|
var _$o = n.name + t.hash;
|
|
13994
14017
|
e.hasNameForId(n.id, _$o) || e.insertRules(n.id, _$o, t(n.rules, _$o, "@keyframes"));
|
|
13995
14018
|
}, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = t, ue(this, function() {
|
|
@@ -13997,7 +14020,7 @@ var qe = function() {
|
|
|
13997
14020
|
});
|
|
13998
14021
|
}
|
|
13999
14022
|
return e.prototype.getName = function(e) {
|
|
14000
|
-
return void 0 === e && (e =
|
|
14023
|
+
return void 0 === e && (e = Me), this.name + e.hash;
|
|
14001
14024
|
}, e;
|
|
14002
14025
|
}(), We = function We(e) {
|
|
14003
14026
|
return e >= "A" && e <= "Z";
|
|
@@ -14054,15 +14077,15 @@ function Ze(e) {
|
|
|
14054
14077
|
}
|
|
14055
14078
|
return !0;
|
|
14056
14079
|
}
|
|
14057
|
-
var Ke =
|
|
14080
|
+
var Ke = M(v$1), Qe = function() {
|
|
14058
14081
|
function e(e, t, n) {
|
|
14059
|
-
this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Ze(e), this.componentId = t, this.baseHash =
|
|
14082
|
+
this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Ze(e), this.componentId = t, this.baseHash = z$1(Ke, t), this.baseStyle = n, ke.registerId(t);
|
|
14060
14083
|
}
|
|
14061
14084
|
return e.prototype.generateAndInjectStyles = function(e, t, n) {
|
|
14062
14085
|
var _$o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, t, n) : "";
|
|
14063
14086
|
if (this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) _$o = ie(_$o, this.staticRulesId);
|
|
14064
14087
|
else {
|
|
14065
|
-
var r = ae(Xe(this.rules, e, t, n)), s = x$1(
|
|
14088
|
+
var r = ae(Xe(this.rules, e, t, n)), s = x$1(z$1(this.baseHash, r) >>> 0);
|
|
14066
14089
|
if (!t.hasNameForId(this.componentId, s)) {
|
|
14067
14090
|
var i = n(r, ".".concat(s), void 0, this.componentId);
|
|
14068
14091
|
t.insertRules(this.componentId, s, i);
|
|
@@ -14070,12 +14093,12 @@ var Ke = z$1(v$1), Qe = function() {
|
|
|
14070
14093
|
_$o = ie(_$o, s), this.staticRulesId = s;
|
|
14071
14094
|
}
|
|
14072
14095
|
else {
|
|
14073
|
-
for(var a =
|
|
14096
|
+
for(var a = z$1(this.baseHash, n.hash), c = "", l = 0; l < this.rules.length; l++){
|
|
14074
14097
|
var u = this.rules[l];
|
|
14075
|
-
if ("string" == typeof u) c += u, "production" !== process.env.NODE_ENV && (a =
|
|
14098
|
+
if ("string" == typeof u) c += u, "production" !== process.env.NODE_ENV && (a = z$1(a, u));
|
|
14076
14099
|
else if (u) {
|
|
14077
14100
|
var p = ae(Xe(u, e, t, n));
|
|
14078
|
-
a =
|
|
14101
|
+
a = z$1(a, p + l), c += p;
|
|
14079
14102
|
}
|
|
14080
14103
|
}
|
|
14081
14104
|
if (c) {
|
|
@@ -14088,13 +14111,13 @@ var Ke = z$1(v$1), Qe = function() {
|
|
|
14088
14111
|
}(), et = React__default.createContext(void 0); et.Consumer;
|
|
14089
14112
|
var rt = {}, st = new Set;
|
|
14090
14113
|
function it(e, r, s) {
|
|
14091
|
-
var i = se(e), a = e, c = !
|
|
14114
|
+
var i = se(e), a = e, c = !G(e), p = r.attrs, d = void 0 === p ? _$1 : p, h = r.componentId, f = void 0 === h ? function(e, t) {
|
|
14092
14115
|
var n = "string" != typeof e ? "sc" : R(e);
|
|
14093
14116
|
rt[n] = (rt[n] || 0) + 1;
|
|
14094
14117
|
var _$o = "".concat(n, "-").concat($(v$1 + n + rt[n]));
|
|
14095
14118
|
return t ? "".concat(t, "-").concat(_$o) : _$o;
|
|
14096
14119
|
}(r.displayName, r.parentComponentId) : h, m = r.displayName, y = void 0 === m ? function(e) {
|
|
14097
|
-
return
|
|
14120
|
+
return G(e) ? "styled.".concat(e) : "Styled(".concat(B(e), ")");
|
|
14098
14121
|
}(e) : m, g = r.displayName && r.componentId ? "".concat(R(r.displayName), "-").concat(r.componentId) : r.componentId || f, S = i && a.attrs ? a.attrs.concat(d).filter(Boolean) : d, w = r.shouldForwardProp;
|
|
14099
14122
|
if (i && a.shouldForwardProp) {
|
|
14100
14123
|
var b = a.shouldForwardProp;
|
|
@@ -14108,7 +14131,7 @@ function it(e, r, s) {
|
|
|
14108
14131
|
var N = new Qe(s, g, i ? a.componentStyle : void 0);
|
|
14109
14132
|
function O(e, r) {
|
|
14110
14133
|
return function(e, r, s) {
|
|
14111
|
-
var i = e.attrs, a = e.componentStyle, c = e.defaultProps, p = e.foldedComponentIds, d = e.styledComponentId, h = e.target, f = React__default.useContext(et), m =
|
|
14134
|
+
var i = e.attrs, a = e.componentStyle, c = e.defaultProps, p = e.foldedComponentIds, d = e.styledComponentId, h = e.target, f = React__default.useContext(et), m = Le(), y = e.shouldForwardProp || m.shouldForwardProp;
|
|
14112
14135
|
"production" !== process.env.NODE_ENV && useDebugValue(d);
|
|
14113
14136
|
var v = I(r, f, c) || C, g = function(e, n, o) {
|
|
14114
14137
|
for(var _$r, _$s = __assign(__assign({}, n), {
|
|
@@ -14122,12 +14145,12 @@ function it(e, r, s) {
|
|
|
14122
14145
|
}(i, r, v), S = g.as || h, w = {};
|
|
14123
14146
|
for(var b in g)void 0 === g[b] || "$" === b[0] || "as" === b || "theme" === b && g.theme === v || ("forwardedAs" === b ? w.as = g.forwardedAs : y && !y(b, S) || (w[b] = g[b], y || "development" !== process.env.NODE_ENV || isPropValid(b) || st.has(b) || !A$1.has(S) || (st.add(b), console.warn('styled-components: it looks like an unknown prop "'.concat(b, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
14124
14147
|
var E = function(e, t) {
|
|
14125
|
-
var _$n =
|
|
14148
|
+
var _$n = Le(), _$o = e.generateAndInjectStyles(t, _$n.styleSheet, _$n.stylis);
|
|
14126
14149
|
return "production" !== process.env.NODE_ENV && useDebugValue(_$o), _$o;
|
|
14127
14150
|
}(a, g);
|
|
14128
14151
|
"production" !== process.env.NODE_ENV && e.warnTooManyClasses && e.warnTooManyClasses(E);
|
|
14129
14152
|
var N = ie(p, d);
|
|
14130
|
-
return E && (N += " " + E), g.className && (N += " " + g.className), w[
|
|
14153
|
+
return E && (N += " " + E), g.className && (N += " " + g.className), w[G(S) && !A$1.has(S) ? "class" : "className"] = N, s && (w.ref = s), createElement(S, w);
|
|
14131
14154
|
}(D, e, r);
|
|
14132
14155
|
}
|
|
14133
14156
|
O.displayName = y;
|
|
@@ -58636,28 +58659,22 @@ var interopRequireWildcard = {
|
|
|
58636
58659
|
|
|
58637
58660
|
(function (module) {
|
|
58638
58661
|
var _typeof$1 = _typeof.exports["default"];
|
|
58639
|
-
function
|
|
58640
|
-
if ("function"
|
|
58641
|
-
|
|
58642
|
-
|
|
58643
|
-
|
|
58644
|
-
|
|
58645
|
-
|
|
58646
|
-
|
|
58647
|
-
|
|
58648
|
-
|
|
58649
|
-
|
|
58650
|
-
|
|
58651
|
-
|
|
58652
|
-
|
|
58653
|
-
|
|
58654
|
-
|
|
58655
|
-
}, a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
58656
|
-
for(var u in e)if ("default" !== u && ({}).hasOwnProperty.call(e, u)) {
|
|
58657
|
-
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
58658
|
-
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
58659
|
-
}
|
|
58660
|
-
return n["default"] = e, t && t.set(e, n), n;
|
|
58662
|
+
function _interopRequireWildcard(e, t) {
|
|
58663
|
+
if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap();
|
|
58664
|
+
return (module.exports = _interopRequireWildcard = function _interopRequireWildcard(e, t) {
|
|
58665
|
+
if (!t && e && e.__esModule) return e;
|
|
58666
|
+
var o, i, f = {
|
|
58667
|
+
__proto__: null,
|
|
58668
|
+
"default": e
|
|
58669
|
+
};
|
|
58670
|
+
if (null === e || "object" != _typeof$1(e) && "function" != typeof e) return f;
|
|
58671
|
+
if (o = t ? n : r) {
|
|
58672
|
+
if (o.has(e)) return o.get(e);
|
|
58673
|
+
o.set(e, f);
|
|
58674
|
+
}
|
|
58675
|
+
for(var _t in e)"default" !== _t && ({}).hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]);
|
|
58676
|
+
return f;
|
|
58677
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports)(e, t);
|
|
58661
58678
|
}
|
|
58662
58679
|
module.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
58663
58680
|
}(interopRequireWildcard));
|
package/index.esm3.js
CHANGED
|
@@ -15,8 +15,6 @@ import 'date-fns/locale/index.js';
|
|
|
15
15
|
import '@radix-ui/react-popover';
|
|
16
16
|
import 'react-date-range';
|
|
17
17
|
import 'react-date-range/dist/locale/index.js';
|
|
18
|
-
import 'date-fns/addDays/index.js';
|
|
19
|
-
import 'date-fns/format/index.js';
|
|
20
18
|
import '@emotion/react';
|
|
21
19
|
import '@mui/material';
|
|
22
20
|
import '@radix-ui/react-select';
|