@geneui/components 3.0.0-next-06dadf3-29102024 → 3.0.0-next-63cb5e7-01112024
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/Avatar.js +63 -0
- package/Divider.js +23 -0
- package/{GeneUIProvider/index.js → GeneUIProvider.js} +51 -64
- package/HelperText.js +69 -0
- package/Info.js +64 -0
- package/Label.js +38 -0
- package/Loader.js +21 -0
- package/Pill.js +64 -0
- package/TextLink.js +20 -0
- package/{index-c7646e48.js → Tooltip.js} +101 -79
- package/{lib → components}/atoms/Avatar/Avatar.d.ts +7 -6
- package/components/atoms/Avatar/index.d.ts +1 -0
- package/{lib → components}/atoms/Divider/Divider.d.ts +5 -5
- package/components/atoms/Divider/index.d.ts +1 -0
- package/{lib → components}/atoms/HelperText/HelperText.d.ts +6 -5
- package/components/atoms/HelperText/index.d.ts +1 -0
- package/{lib → components}/atoms/Info/Info.d.ts +5 -5
- package/components/atoms/Info/index.d.ts +1 -0
- package/{lib → components}/atoms/Label/Label.d.ts +3 -3
- package/components/atoms/Label/index.d.ts +1 -0
- package/{lib → components}/atoms/Loader/Loader.d.ts +5 -5
- package/components/atoms/Loader/index.d.ts +1 -0
- package/{lib → components}/atoms/Pill/Pill.d.ts +7 -6
- package/components/atoms/Pill/index.d.ts +1 -0
- package/{lib → components}/atoms/TextLink/TextLink.d.ts +5 -5
- package/components/atoms/TextLink/index.d.ts +1 -0
- package/{lib → components}/molecules/Tooltip/Tooltip.d.ts +26 -21
- package/components/molecules/Tooltip/index.d.ts +1 -0
- package/components/providers/GeneUIProvider/GeneUIProvider.d.ts +30 -0
- package/components/providers/GeneUIProvider/index.d.ts +1 -0
- package/hooks/index.d.ts +2 -20
- package/hooks/useDebounceCallback/index.d.ts +1 -0
- package/hooks/useDebounceCallback/useDebounceCallback.d.ts +2 -0
- package/hooks/useEllipsisDetection/index.d.ts +1 -1
- package/hooks/useEllipsisDetection/useEllipsisDetection.d.ts +2 -2
- package/{index-031ff73c.js → index-ce02421b.js} +4 -4
- package/index.d.ts +11 -121
- package/index.js +12 -159
- package/package.json +24 -43
- package/tokens-0abb4e1b.js +6 -0
- package/types/index.d.ts +0 -3
- package/useEllipsisDetection-46d712b6.js +34 -0
- package/ActionableList/index.js +0 -1694
- package/AdvancedSearch/index.js +0 -892
- package/Alert/index.js +0 -98
- package/Avatar/index.js +0 -58
- package/Badge/index.js +0 -29
- package/Breadcrumb/index.js +0 -130
- package/BusyLoader/index.js +0 -31
- package/Button/index.js +0 -30
- package/Card/index.js +0 -502
- package/CardList/index.js +0 -662
- package/CellMeasurerCache-26f3693c.js +0 -229
- package/Charts/index.js +0 -17662
- package/Checkbox/index.js +0 -229
- package/CheckboxGroup/index.js +0 -203
- package/CheckboxGroupWithSearch/index.js +0 -280
- package/Collapse/index.js +0 -195
- package/ColorPicker/index.js +0 -210
- package/ComboBox/index.js +0 -524
- package/Copy/index.js +0 -56
- package/Counter/index.js +0 -312
- package/DateFilter/index.js +0 -183
- package/DatePicker/index.js +0 -1229
- package/DatePickerInput/index.js +0 -883
- package/Divider/index.js +0 -23
- package/Drawer/index.js +0 -261
- package/Dropdown/index.js +0 -43
- package/Editor/index.js +0 -22975
- package/Empty/index.js +0 -76
- package/ExtendedInput/index.js +0 -590
- package/Form/index.js +0 -85
- package/FormContainer/index.js +0 -189
- package/FormableCheckbox/index.js +0 -24
- package/FormableDatePicker/index.js +0 -43
- package/FormableDropdown/index.js +0 -50
- package/FormableEditor/index.js +0 -26
- package/FormableHOC-85f89a81.js +0 -83
- package/FormableMultiSelectDropdown/index.js +0 -50
- package/FormableNumberInput/index.js +0 -34
- package/FormableRadio/index.js +0 -22
- package/FormableSwitcher/index.js +0 -22
- package/FormableTextInput/index.js +0 -34
- package/FormableUploader/index.js +0 -44
- package/Grid/index.js +0 -167
- package/HelperText/index.js +0 -86
- package/Holder/index.js +0 -261
- package/Icon/index.js +0 -62
- package/Image/index.js +0 -45
- package/ImagePreview/index.js +0 -217
- package/Info/index.js +0 -41
- package/InfoOutline-dd2e89d9.js +0 -29
- package/InteractiveWidget/index.js +0 -78
- package/KeyValue/index.js +0 -22
- package/Label/index.js +0 -48
- package/LinkButton/index.js +0 -34
- package/Loader/index.js +0 -23
- package/Menu/index.js +0 -281
- package/MobileNavigation/index.js +0 -94
- package/MobilePopup/index.js +0 -182
- package/Modal/index.js +0 -251
- package/ModuleTitle/index.js +0 -141
- package/NavigationMenu/index.js +0 -222
- package/Notification/index.js +0 -120
- package/Option/index.js +0 -184
- package/Overlay/index.js +0 -187
- package/Overspread/index.js +0 -291
- package/Pagination/index.js +0 -261
- package/Paper/index.js +0 -96
- package/Pill/index.js +0 -67
- package/Popover/index.js +0 -725
- package/PopoverV2/index.js +0 -19
- package/Portal/index.js +0 -58
- package/Products/index.js +0 -115
- package/Profile/index.js +0 -589
- package/Progress/index.js +0 -200
- package/QRCode/index.js +0 -814
- package/Radio/index.js +0 -151
- package/RadioGroup/index.js +0 -104
- package/Range/index.js +0 -191
- package/Rating/index.js +0 -174
- package/RichEditor/index.js +0 -13
- package/RichEditor-6ca8346f.js +0 -228
- package/Scrollbar/index.js +0 -1585
- package/Search/index.js +0 -75
- package/SearchWithDropdown/index.js +0 -140
- package/Section/index.js +0 -61
- package/SkeletonLoader/index.js +0 -81
- package/Slider/index.js +0 -261
- package/Status/index.js +0 -97
- package/Steps/index.js +0 -314
- package/SuggestionList/index.js +0 -385
- package/Switcher/index.js +0 -193
- package/Table/index.js +0 -57
- package/TableCompositions/index.js +0 -16995
- package/Tabs/index.js +0 -235
- package/Tag/index.js +0 -102
- package/TextLink/index.js +0 -20
- package/Textarea/index.js +0 -242
- package/Time/index.js +0 -62
- package/TimePicker/index.js +0 -575
- package/Timeline/index.js +0 -113
- package/Title/index.js +0 -65
- package/Toaster/index.js +0 -116
- package/Tooltip/index.js +0 -6
- package/TransferList/index.js +0 -493
- package/Uploader/index.js +0 -992
- package/ValidatableCheckbox/index.js +0 -123
- package/ValidatableDatePicker/index.js +0 -316
- package/ValidatableDropdown/index.js +0 -141
- package/ValidatableElements/index.js +0 -67
- package/ValidatableMultiSelectDropdown/index.js +0 -152
- package/ValidatableNumberInput/index.js +0 -204
- package/ValidatableRadio/index.js +0 -116
- package/ValidatableSwitcher/index.js +0 -93
- package/ValidatableTextInput/index.js +0 -167
- package/ValidatableTimeInput/index.js +0 -174
- package/ValidatableUploader/index.js +0 -98
- package/Widget/index.js +0 -225
- package/_commonjsHelpers-24198af3.js +0 -35
- package/_rollupPluginBabelHelpers-a83240e1.js +0 -11
- package/callAfterDelay-7272faca.js +0 -12
- package/checkTimeValidation-e56771be.js +0 -16
- package/checkboxRadioSwitcher-5b69d7bd.js +0 -4
- package/clsx.m-2bb6df4b.js +0 -3
- package/config-1053d64d.js +0 -20
- package/configs-00612ce0.js +0 -103
- package/configs.js +0 -111
- package/dateValidation-67caec66.js +0 -225
- package/debounce-4419bc2f.js +0 -17
- package/guid-8ddf77b3.js +0 -16
- package/hooks/useBodyScroll.js +0 -16
- package/hooks/useClick.js +0 -18
- package/hooks/useClickOutside.js +0 -25
- package/hooks/useDebounce.js +0 -28
- package/hooks/useDeviceType.js +0 -17
- package/hooks/useDidMount.js +0 -15
- package/hooks/useForceUpdate.js +0 -8
- package/hooks/useHover.js +0 -20
- package/hooks/useImgDownload.js +0 -18
- package/hooks/useKeyDown.js +0 -21
- package/hooks/useMount.js +0 -13
- package/hooks/useMutationObserver.js +0 -21
- package/hooks/usePrevious.js +0 -10
- package/hooks/useThrottle.js +0 -16
- package/hooks/useToggle.js +0 -11
- package/hooks/useUpdatableRef.js +0 -14
- package/hooks/useUpdate.js +0 -10
- package/hooks/useWidth.js +0 -16
- package/hooks/useWindowSize.js +0 -40
- package/index-122432cd.js +0 -270
- package/index-262edd7a.js +0 -77
- package/index-3188e46e.js +0 -1940
- package/index-45eafea6.js +0 -90
- package/index-5f37f281.js +0 -168
- package/index-ce12e4a9.js +0 -10032
- package/index-d0ecb950.js +0 -6483
- package/index-fcbae78d.js +0 -4
- package/index.mobile.d.ts +0 -14
- package/lib/atoms/Avatar/index.d.ts +0 -1
- package/lib/atoms/Badge/Badge.d.ts +0 -36
- package/lib/atoms/Badge/index.d.ts +0 -1
- package/lib/atoms/BusyLoader/BusyLoader.d.ts +0 -32
- package/lib/atoms/BusyLoader/BusyLoaderHolderHOC.d.ts +0 -8
- package/lib/atoms/BusyLoader/index.d.ts +0 -1
- package/lib/atoms/Button/Button.d.ts +0 -70
- package/lib/atoms/Button/index.d.ts +0 -1
- package/lib/atoms/Divider/index.d.ts +0 -1
- package/lib/atoms/Empty/Empty.d.ts +0 -39
- package/lib/atoms/Empty/index.d.ts +0 -1
- package/lib/atoms/Empty/utils.d.ts +0 -9
- package/lib/atoms/HelperText/index.d.ts +0 -1
- package/lib/atoms/Image/Image.d.ts +0 -51
- package/lib/atoms/Image/index.d.ts +0 -1
- package/lib/atoms/ImagePreview/ImagePreview.d.ts +0 -56
- package/lib/atoms/ImagePreview/ImagePreviewHOC.d.ts +0 -4
- package/lib/atoms/ImagePreview/Magnifier.d.ts +0 -40
- package/lib/atoms/ImagePreview/index.d.ts +0 -1
- package/lib/atoms/Info/index.d.ts +0 -1
- package/lib/atoms/KeyValue/KeyValue.d.ts +0 -29
- package/lib/atoms/KeyValue/index.d.ts +0 -1
- package/lib/atoms/Label/index.d.ts +0 -1
- package/lib/atoms/LinkButton/LinkButton.d.ts +0 -46
- package/lib/atoms/LinkButton/index.d.ts +0 -1
- package/lib/atoms/Loader/index.d.ts +0 -1
- package/lib/atoms/Pill/index.d.ts +0 -1
- package/lib/atoms/Rating/DefaultSvg.d.ts +0 -3
- package/lib/atoms/Rating/Rating.d.ts +0 -49
- package/lib/atoms/Rating/index.d.ts +0 -1
- package/lib/atoms/TextLink/index.d.ts +0 -1
- package/lib/molecules/Copy/Copy.d.ts +0 -38
- package/lib/molecules/Copy/index.d.ts +0 -1
- package/lib/molecules/InteractiveWidget/InteractiveWidget.d.ts +0 -70
- package/lib/molecules/InteractiveWidget/InteractiveWidgetIcon.d.ts +0 -8
- package/lib/molecules/InteractiveWidget/index.d.ts +0 -1
- package/lib/molecules/Tooltip/index.d.ts +0 -1
- package/lib/providers/GeneUIProvider/GeneUIProvider.d.ts +0 -30
- package/lib/providers/GeneUIProvider/index.d.ts +0 -1
- package/localization-4ba17032.js +0 -46
- package/objectWithoutPropertiesLoose-e1596bdb.js +0 -62
- package/rangeAndSlider-740a236c.js +0 -8676
- package/react-beautiful-dnd.esm-8c7b5a83.js +0 -10116
- package/react-lifecycles-compat.es-6e1f3768.js +0 -158
- package/redux-e591c1b8.js +0 -536
- package/tokens-8ab1179c.js +0 -6
- package/tslib.es6-f211516f.js +0 -35
- package/useEllipsisDetection-c1c9ad94.js +0 -38
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
|
-
|
|
3
|
-
function getDefaultExportFromCjs (x) {
|
|
4
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function getAugmentedNamespace(n) {
|
|
8
|
-
if (n.__esModule) return n;
|
|
9
|
-
var f = n.default;
|
|
10
|
-
if (typeof f == "function") {
|
|
11
|
-
var a = function a () {
|
|
12
|
-
if (this instanceof a) {
|
|
13
|
-
var args = [null];
|
|
14
|
-
args.push.apply(args, arguments);
|
|
15
|
-
var Ctor = Function.bind.apply(f, args);
|
|
16
|
-
return new Ctor();
|
|
17
|
-
}
|
|
18
|
-
return f.apply(this, arguments);
|
|
19
|
-
};
|
|
20
|
-
a.prototype = f.prototype;
|
|
21
|
-
} else a = {};
|
|
22
|
-
Object.defineProperty(a, '__esModule', {value: true});
|
|
23
|
-
Object.keys(n).forEach(function (k) {
|
|
24
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
25
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () {
|
|
28
|
-
return n[k];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
return a;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export { getAugmentedNamespace as a, commonjsGlobal as c, getDefaultExportFromCjs as g };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
function _extends() {
|
|
2
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
3
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
4
|
-
var t = arguments[e];
|
|
5
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
6
|
-
}
|
|
7
|
-
return n;
|
|
8
|
-
}, _extends.apply(null, arguments);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { _extends as _ };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import ReactDOM__default from 'react-dom';
|
|
2
|
-
|
|
3
|
-
const callAfterDelay = (callBack, time) => {
|
|
4
|
-
const timerId = setTimeout(() => {
|
|
5
|
-
clearTimeout(timerId);
|
|
6
|
-
ReactDOM__default.unstable_batchedUpdates(() => {
|
|
7
|
-
callBack();
|
|
8
|
-
});
|
|
9
|
-
}, time);
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { callAfterDelay as c };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const meridiemValues = ['am', 'pm'];
|
|
2
|
-
const checkTimeValidation = _ref => {
|
|
3
|
-
let {
|
|
4
|
-
hour,
|
|
5
|
-
minute,
|
|
6
|
-
second,
|
|
7
|
-
meridiem
|
|
8
|
-
} = _ref;
|
|
9
|
-
const isHourValid = !hour.format || (meridiem ? hour.value < 12 : hour.value < 24);
|
|
10
|
-
const isMinuteValid = !minute.format || minute.value >= 0 && minute.value < 60;
|
|
11
|
-
const isSecondValid = !second.format || second.value >= 0 && second.value < 60;
|
|
12
|
-
const isMeridiemValid = !meridiem || !meridiem.format || !meridiem.value || meridiemValues.includes(meridiem.value.toLowerCase());
|
|
13
|
-
return isHourValid && isMinuteValid && isSecondValid && isMeridiemValid;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { checkTimeValidation as c };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { s as styleInject } from './style-inject.es-746bb8ed.js';
|
|
2
|
-
|
|
3
|
-
var css_248z = ".information-message{cursor:default;font:600 1.2rem/1.42 var(--font-family);margin:.6rem 0 0;padding:0 var(--input-message-padding-side);width:100%}.information-message:empty{display:none}.input-description{cursor:default;font:600 1.4rem/2rem var(--font-family);margin:1rem 0 0;max-width:100%;opacity:.7}.input-structure~.input-description{padding:0 1rem}.crs-holder{align-items:flex-start;display:inline-flex;flex-direction:column;font:600 1.4rem/1.8rem var(--font-family);max-width:100%;transition:opacity .3s;-webkit-user-select:none;user-select:none}.crs-holder.disabled{opacity:.5;pointer-events:none}.crs-holder.read-only .label-holder div label{cursor:default}.crs-holder.read-only:active{pointer-events:none}.crs-holder .label-holder{grid-row-gap:.8rem;align-items:center;display:inline-grid;grid-template-columns:auto 1fr;max-width:100%;vertical-align:top}.crs-holder .label-holder.has-label{grid-column-gap:var(--crs-grid-column-gap,1rem)}.lp-bottom.crs-holder .label-holder,.lp-top.crs-holder .label-holder{grid-template-columns:auto;grid-template-rows:auto auto}.lp-bottom.crs-holder .label-holder .crs-component,.lp-right.crs-holder .label-holder .crs-component{order:0}.lp-bottom.crs-holder .label-holder .crs-label,.lp-right.crs-holder .label-holder .crs-label{order:1}.la-start.crs-holder .label-holder .crs-item{align-items:flex-start;justify-content:flex-start;text-align:start}.la-center.crs-holder .label-holder .crs-item{align-items:center;justify-content:center;text-align:center}.la-end.crs-holder .label-holder .crs-item{align-items:flex-end;justify-content:flex-end;text-align:end}.crs-holder.la-start{align-items:flex-start}.crs-holder.la-center{align-items:center}.crs-holder.la-end,.crs-holder.lp-left{align-items:flex-end}.popover-content .crs-holder .label-holder,.popover-positioner.mobile-view .crs-holder{width:100%}.crs-component{position:relative}.crs-component input{left:0;opacity:0;pointer-events:none;position:absolute;top:0}.crs-label{overflow:hidden}.crs-label label{cursor:pointer;display:block}.crs-item{display:flex}.cr-element{--size:1.6rem;background:var(--background);border:1px solid rgba(var(--background-sc-rgb),.45);color:var(--hero-sc);cursor:pointer;display:block;height:var(--size);position:relative;transition:color .4s,border-color .4s,background .4s,width .4s,height .4s;width:var(--size)}.cr-element:after,.cr-element:before{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;transform:scale(0);transition:transform .4s,background .4s}@media (hover:hover){.cr-element:hover,.crs-external-active:active .cr-element,.crs-external-hover:hover .cr-element,.crs-holder:focus-within .cr-element,.crs-label:hover~.crs-component .cr-element,label:hover .cr-element{border-color:var(--hero)}}.cr-element.active:before{transform:scale(1)}.cr-element.checkbox{border-radius:.3rem}.cr-element.checkbox:before{content:\"\\e911\"}.cr-element.checkbox:after{content:\"\\e913\"}.cr-element.checkbox:after,.cr-element.checkbox:before{font:calc(var(--size) - .2rem)/1 betcore}.cr-element.checkbox.active,.cr-element.checkbox.indeterminate{background:var(--hero);border-color:var(--hero)}.cr-element.checkbox.indeterminate:after{transform:scale(1)}.crs-holder.read-only .cr-element.checkbox{background:none;border-color:#0000;color:var(--hero)}.crs-holder.read-only .cr-element.checkbox.active:before{transform:scale(1.4)}.crs-holder.read-only .cr-element.checkbox:not(.active,.indeterminate){color:rgba(var(--background-sc-rgb),.38)}.crs-holder.read-only .cr-element.checkbox:not(.active,.indeterminate):after{content:\"\\e916\";transform:scale(1.3)}.cr-element.s-big{--size:2rem}.cr-element.radio{border-radius:100%}.view-normal .cr-element.radio{--size:12px}.view-normal .cr-element.radio:before{--gap:2px}.view-small .cr-element.radio{--size:10px}.view-small .cr-element.radio:before{--gap:2px}.cr-element.radio:before{--gap:0.3rem;background:var(--hero);border-radius:100%;bottom:var(--gap);content:\"\";left:var(--gap);right:var(--gap);top:var(--gap)}.cr-element.radio.active{border-color:var(--hero)}.crs-holder.read-only .cr-element.radio{background:rgba(var(--background-sc-rgb),.45);border-color:#0000}.crs-holder.read-only .cr-element.radio.active{background:var(--hero)}.crs-holder.read-only .cr-element.radio.active:before{background:var(--hero-sc)}.cr-element:not(:focus-within) .cr-element.error-color{border-color:var(--danger)!important}.cha-ra-group{display:flex;flex-wrap:wrap;width:100%}.cha-ra-group .crs-holder{padding:2rem}.cha-ra-group.t-tab{align-items:center;border-radius:2.2rem;box-shadow:inset 0 0 0 1px rgba(var(--background-sc-rgb),.1);display:inline-flex;justify-content:center;max-width:100%;width:auto}.cha-ra-group.t-tab .crs-holder{padding:0}.cha-ra-group.t-tab .crs-holder .label-holder{display:flex;position:relative}.cha-ra-group.t-tab .crs-holder .crs-label{transition:color .4s}.cha-ra-group.t-tab .crs-holder .crs-label label{font:600 1.4rem/4.2rem var(--font-family);min-width:10rem;padding:0 2rem}.cha-ra-group.t-tab .crs-holder .crs-component{border:1px solid rgba(var(--hero-rgb),0);border-radius:4.2rem;height:100%;left:0;pointer-events:none;position:absolute;top:0;transition:border-color .4s;width:100%}.cha-ra-group.t-tab .crs-holder .crs-component label{opacity:0}.cha-ra-group.t-tab .crs-holder.input-active .crs-label{color:var(--hero)}.cha-ra-group.t-tab .crs-holder.input-active .crs-component{border-color:var(--hero)}";
|
|
4
|
-
styleInject(css_248z);
|
package/clsx.m-2bb6df4b.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
2
|
-
|
|
3
|
-
export { clsx as c };
|
package/config-1053d64d.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const actionTypes = {
|
|
2
|
-
add: 'add',
|
|
3
|
-
edit: 'edit',
|
|
4
|
-
delete: 'delete'
|
|
5
|
-
};
|
|
6
|
-
const keyDownKeys = {
|
|
7
|
-
space: ' ',
|
|
8
|
-
enter: 'Enter',
|
|
9
|
-
escape: 'Escape',
|
|
10
|
-
arrowDown: 'ArrowDown',
|
|
11
|
-
arrowUp: 'ArrowUp',
|
|
12
|
-
arrowLeft: 'ArrowLeft',
|
|
13
|
-
arrowRight: 'ArrowRight',
|
|
14
|
-
backspace: 'Backspace',
|
|
15
|
-
delete: 'Delete',
|
|
16
|
-
tab: 'Tab'
|
|
17
|
-
};
|
|
18
|
-
const SPACE_HEIGHT = 8;
|
|
19
|
-
|
|
20
|
-
export { SPACE_HEIGHT as S, actionTypes as a, keyDownKeys as k };
|
package/configs-00612ce0.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
// update mechanism for this section is under consideration
|
|
2
|
-
|
|
3
|
-
const clientConfigs = {};
|
|
4
|
-
const breakPoints = {
|
|
5
|
-
// screens
|
|
6
|
-
xs: 576,
|
|
7
|
-
md: 768,
|
|
8
|
-
lg: 1024,
|
|
9
|
-
xl: 1200,
|
|
10
|
-
xxl: 1600
|
|
11
|
-
};
|
|
12
|
-
const mobileScreenSize = Number(process.env.REACT_APP_MOBILE_SIZE) || breakPoints.lg;
|
|
13
|
-
const screenTypes = ['desktop', 'mobile'];
|
|
14
|
-
const positions = ['top', 'right', 'bottom', 'left'];
|
|
15
|
-
const inputConfig = {
|
|
16
|
-
type: ['text', 'color', 'number', 'password', 'textarea', 'date', 'time', 'datetime-local'],
|
|
17
|
-
appearance: ['outline', 'minimal', 'light'],
|
|
18
|
-
size: ['small', 'default', 'big'],
|
|
19
|
-
flexibility: ['full-width', 'content-size'],
|
|
20
|
-
itemsDirection: ['start', 'end'],
|
|
21
|
-
cornerRadius: ['full-radius', 'smooth-radius'],
|
|
22
|
-
labelAppearance: ['none', 'title', 'swap']
|
|
23
|
-
};
|
|
24
|
-
const titleConfig = {
|
|
25
|
-
color: ['base', 'hero']
|
|
26
|
-
};
|
|
27
|
-
const checkboxRadioSwitcherConfig = {
|
|
28
|
-
size: ['small', 'big'],
|
|
29
|
-
labelPosition: ['right', 'left', 'top', 'bottom'],
|
|
30
|
-
labelAlignment: ['start', 'center', 'end']
|
|
31
|
-
};
|
|
32
|
-
const tagConfig = {
|
|
33
|
-
appearance: ['simple', 'minimal', 'outline', 'clean', 'light', 'colored'],
|
|
34
|
-
size: ['small', 'medium', 'big'],
|
|
35
|
-
flexibility: ['content-size', 'compact', 'full-width'],
|
|
36
|
-
cornerRadius: ['full-radius', 'smooth-radius']
|
|
37
|
-
};
|
|
38
|
-
const stepsConfig = {
|
|
39
|
-
size: ['small', 'big'],
|
|
40
|
-
direction: ['horizontal', 'vertical'],
|
|
41
|
-
appearance: ['steps', 'dots'],
|
|
42
|
-
status: ['initial', 'current', 'success', 'fail', 'activated']
|
|
43
|
-
};
|
|
44
|
-
const popoverConfig = {
|
|
45
|
-
align: ['start', 'end', 'center'],
|
|
46
|
-
position: ['bottom', 'top', 'left', 'right'],
|
|
47
|
-
cornerRadius: ['full-radius', 'smooth-radius'],
|
|
48
|
-
behave: ['toggle', 'open']
|
|
49
|
-
};
|
|
50
|
-
const popoverV2Config = {
|
|
51
|
-
onOpenClassName: 'has-popover-opened',
|
|
52
|
-
align: ['start', 'end', 'center'],
|
|
53
|
-
position: ['bottom', 'top', 'left', 'right'],
|
|
54
|
-
cornerRadius: ['full-radius', 'smooth-radius'],
|
|
55
|
-
behave: ['toggle', 'open']
|
|
56
|
-
};
|
|
57
|
-
const uploaderConfig = {
|
|
58
|
-
uploaderAppearance: ['button', 'input', 'cloud', 'box'],
|
|
59
|
-
uploadedItemsAppearance: ['light', 'minimal', 'detailed', 'box'],
|
|
60
|
-
uploadedFilessAppearance: ['light', 'minimal'],
|
|
61
|
-
gridColumnSize: {
|
|
62
|
-
xs: 1,
|
|
63
|
-
md: 2,
|
|
64
|
-
lg: 4,
|
|
65
|
-
xl: 5,
|
|
66
|
-
xxl: 6
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
const moduleTitleConfig = {
|
|
70
|
-
cornerRadius: ['position-radius', 'no-radius', 'full-radius'],
|
|
71
|
-
position: ['top', 'bottom'],
|
|
72
|
-
size: ['small', 'medium', 'big', 'extra-big']
|
|
73
|
-
};
|
|
74
|
-
const widgetConfig = {
|
|
75
|
-
type: ['default', 'compact', 'minimal', 'colorful'],
|
|
76
|
-
size: ['small', 'medium', 'big'],
|
|
77
|
-
comparisonStatus: ['initial', 'up', 'down']
|
|
78
|
-
};
|
|
79
|
-
const customScrollbarConfig = {
|
|
80
|
-
size: ['medium', 'small']
|
|
81
|
-
};
|
|
82
|
-
const noDataConfig = ['data', 'image', 'search'];
|
|
83
|
-
const timePickerConfig = {
|
|
84
|
-
appearance: ['multipleInputs', 'singleInput']
|
|
85
|
-
};
|
|
86
|
-
const optionConfig = {
|
|
87
|
-
color: ['default', 'hero'],
|
|
88
|
-
border: ['none', 'top', 'bottom'],
|
|
89
|
-
sticky: ['none', 'top', 'bottom'],
|
|
90
|
-
titlePosition: {
|
|
91
|
-
start: 'start',
|
|
92
|
-
center: 'center',
|
|
93
|
-
end: 'end'
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
const advancedSearchConfig = {
|
|
97
|
-
positions: {
|
|
98
|
-
right: 'right',
|
|
99
|
-
left: 'left'
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export { clientConfigs as a, moduleTitleConfig as b, checkboxRadioSwitcherConfig as c, tagConfig as d, positions as e, timePickerConfig as f, popoverConfig as g, advancedSearchConfig as h, inputConfig as i, customScrollbarConfig as j, breakPoints as k, stepsConfig as l, mobileScreenSize as m, noDataConfig as n, optionConfig as o, popoverV2Config as p, screenTypes as s, titleConfig as t, uploaderConfig as u, widgetConfig as w };
|
package/configs.js
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
// update mechanism for this section is under consideration
|
|
2
|
-
|
|
3
|
-
const clientConfigs = {};
|
|
4
|
-
const updateConfig = configs => {
|
|
5
|
-
for (const key in configs) {
|
|
6
|
-
clientConfigs[key] = configs[key];
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
const breakPoints = {
|
|
10
|
-
// screens
|
|
11
|
-
xs: 576,
|
|
12
|
-
md: 768,
|
|
13
|
-
lg: 1024,
|
|
14
|
-
xl: 1200,
|
|
15
|
-
xxl: 1600
|
|
16
|
-
};
|
|
17
|
-
const mobileScreenSize = Number(process.env.REACT_APP_MOBILE_SIZE) || breakPoints.lg;
|
|
18
|
-
const screenTypes = ['desktop', 'mobile'];
|
|
19
|
-
const colors = ['primary', 'confirm', 'danger'];
|
|
20
|
-
const sizes = ['small', 'medium', 'big'];
|
|
21
|
-
const positions = ['top', 'right', 'bottom', 'left'];
|
|
22
|
-
const radius = ['default-radius', 'full-radius'];
|
|
23
|
-
const inputConfig = {
|
|
24
|
-
type: ['text', 'color', 'number', 'password', 'textarea', 'date', 'time', 'datetime-local'],
|
|
25
|
-
appearance: ['outline', 'minimal', 'light'],
|
|
26
|
-
size: ['small', 'default', 'big'],
|
|
27
|
-
flexibility: ['full-width', 'content-size'],
|
|
28
|
-
itemsDirection: ['start', 'end'],
|
|
29
|
-
cornerRadius: ['full-radius', 'smooth-radius'],
|
|
30
|
-
labelAppearance: ['none', 'title', 'swap']
|
|
31
|
-
};
|
|
32
|
-
const titleConfig = {
|
|
33
|
-
color: ['base', 'hero']
|
|
34
|
-
};
|
|
35
|
-
const checkboxRadioSwitcherConfig = {
|
|
36
|
-
size: ['small', 'big'],
|
|
37
|
-
labelPosition: ['right', 'left', 'top', 'bottom'],
|
|
38
|
-
labelAlignment: ['start', 'center', 'end']
|
|
39
|
-
};
|
|
40
|
-
const tagConfig = {
|
|
41
|
-
appearance: ['simple', 'minimal', 'outline', 'clean', 'light', 'colored'],
|
|
42
|
-
size: ['small', 'medium', 'big'],
|
|
43
|
-
flexibility: ['content-size', 'compact', 'full-width'],
|
|
44
|
-
cornerRadius: ['full-radius', 'smooth-radius']
|
|
45
|
-
};
|
|
46
|
-
const stepsConfig = {
|
|
47
|
-
size: ['small', 'big'],
|
|
48
|
-
direction: ['horizontal', 'vertical'],
|
|
49
|
-
appearance: ['steps', 'dots'],
|
|
50
|
-
status: ['initial', 'current', 'success', 'fail', 'activated']
|
|
51
|
-
};
|
|
52
|
-
const popoverConfig = {
|
|
53
|
-
align: ['start', 'end', 'center'],
|
|
54
|
-
position: ['bottom', 'top', 'left', 'right'],
|
|
55
|
-
cornerRadius: ['full-radius', 'smooth-radius'],
|
|
56
|
-
behave: ['toggle', 'open']
|
|
57
|
-
};
|
|
58
|
-
const popoverV2Config = {
|
|
59
|
-
onOpenClassName: 'has-popover-opened',
|
|
60
|
-
align: ['start', 'end', 'center'],
|
|
61
|
-
position: ['bottom', 'top', 'left', 'right'],
|
|
62
|
-
cornerRadius: ['full-radius', 'smooth-radius'],
|
|
63
|
-
behave: ['toggle', 'open']
|
|
64
|
-
};
|
|
65
|
-
const uploaderConfig = {
|
|
66
|
-
uploaderAppearance: ['button', 'input', 'cloud', 'box'],
|
|
67
|
-
uploadedItemsAppearance: ['light', 'minimal', 'detailed', 'box'],
|
|
68
|
-
uploadedFilessAppearance: ['light', 'minimal'],
|
|
69
|
-
gridColumnSize: {
|
|
70
|
-
xs: 1,
|
|
71
|
-
md: 2,
|
|
72
|
-
lg: 4,
|
|
73
|
-
xl: 5,
|
|
74
|
-
xxl: 6
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
const moduleTitleConfig = {
|
|
78
|
-
cornerRadius: ['position-radius', 'no-radius', 'full-radius'],
|
|
79
|
-
position: ['top', 'bottom'],
|
|
80
|
-
size: ['small', 'medium', 'big', 'extra-big']
|
|
81
|
-
};
|
|
82
|
-
const widgetConfig = {
|
|
83
|
-
type: ['default', 'compact', 'minimal', 'colorful'],
|
|
84
|
-
size: ['small', 'medium', 'big'],
|
|
85
|
-
comparisonStatus: ['initial', 'up', 'down']
|
|
86
|
-
};
|
|
87
|
-
const customScrollbarConfig = {
|
|
88
|
-
size: ['medium', 'small']
|
|
89
|
-
};
|
|
90
|
-
const noDataConfig = ['data', 'image', 'search'];
|
|
91
|
-
const timePickerConfig = {
|
|
92
|
-
appearance: ['multipleInputs', 'singleInput']
|
|
93
|
-
};
|
|
94
|
-
const optionConfig = {
|
|
95
|
-
color: ['default', 'hero'],
|
|
96
|
-
border: ['none', 'top', 'bottom'],
|
|
97
|
-
sticky: ['none', 'top', 'bottom'],
|
|
98
|
-
titlePosition: {
|
|
99
|
-
start: 'start',
|
|
100
|
-
center: 'center',
|
|
101
|
-
end: 'end'
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
const advancedSearchConfig = {
|
|
105
|
-
positions: {
|
|
106
|
-
right: 'right',
|
|
107
|
-
left: 'left'
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
export { advancedSearchConfig, breakPoints, checkboxRadioSwitcherConfig, clientConfigs, colors, customScrollbarConfig, inputConfig, mobileScreenSize, moduleTitleConfig, noDataConfig, optionConfig, popoverConfig, popoverV2Config, positions, radius, screenTypes, sizes, stepsConfig, tagConfig, timePickerConfig, titleConfig, updateConfig, uploaderConfig, widgetConfig };
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import { c as commonjsGlobal } from './_commonjsHelpers-24198af3.js';
|
|
2
|
-
|
|
3
|
-
var dayjs_minExports = {};
|
|
4
|
-
var dayjs_min = {
|
|
5
|
-
get exports(){ return dayjs_minExports; },
|
|
6
|
-
set exports(v){ dayjs_minExports = v; },
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
(function (module, exports) {
|
|
10
|
-
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
|
|
11
|
-
} (dayjs_min));
|
|
12
|
-
|
|
13
|
-
var dayjs = dayjs_minExports;
|
|
14
|
-
|
|
15
|
-
var customParseFormatExports = {};
|
|
16
|
-
var customParseFormat$1 = {
|
|
17
|
-
get exports(){ return customParseFormatExports; },
|
|
18
|
-
set exports(v){ customParseFormatExports = v; },
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
(function (module, exports) {
|
|
22
|
-
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return (e=+e)+(e>68?1900:2e3)};var a=function(e){return function(t){this[e]=+t;}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e);}],h=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1);}],a:[i,function(e){this.afternoon=u(e,!0);}],S:[/\d/,function(e){this.milliseconds=100*+e;}],SS:[n,function(e){this.milliseconds=10*+e;}],SSS:[/\d{3}/,function(e){this.milliseconds=+e;}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r);}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=h("months"),n=(h("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n;}],MMMM:[i,function(e){var t=h("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t;}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e);}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=s.length,f=0;f<a;f+=1){var h=s[f],u=d[h],c=u&&u[0],l=u&&u[1];s[f]=l?{regex:c,parser:l}:h.replace(/^\[|\]$/g,"");}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else {var o=i.regex,f=i.parser,h=e.slice(r),u=o.exec(h)[0];f.call(t,u),e=e.replace(u,"");}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon;}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],h=!0===s[3],u=f||h,d=s[2];h&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=c(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,h=r.seconds,u=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=h||0,g=u||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(e){return new Date("")}}(t,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),o={};}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""));}else i.call(this,e);};}}));
|
|
23
|
-
} (customParseFormat$1));
|
|
24
|
-
|
|
25
|
-
var customParseFormat = customParseFormatExports;
|
|
26
|
-
|
|
27
|
-
var isSameOrBeforeExports = {};
|
|
28
|
-
var isSameOrBefore$1 = {
|
|
29
|
-
get exports(){ return isSameOrBeforeExports; },
|
|
30
|
-
set exports(v){ isSameOrBeforeExports = v; },
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
(function (module, exports) {
|
|
34
|
-
!function(e,i){module.exports=i();}(commonjsGlobal,(function(){return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i)};}}));
|
|
35
|
-
} (isSameOrBefore$1));
|
|
36
|
-
|
|
37
|
-
var isSameOrBefore = isSameOrBeforeExports;
|
|
38
|
-
|
|
39
|
-
var isSameOrAfterExports = {};
|
|
40
|
-
var isSameOrAfter$1 = {
|
|
41
|
-
get exports(){ return isSameOrAfterExports; },
|
|
42
|
-
set exports(v){ isSameOrAfterExports = v; },
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
(function (module, exports) {
|
|
46
|
-
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)};}}));
|
|
47
|
-
} (isSameOrAfter$1));
|
|
48
|
-
|
|
49
|
-
var isSameOrAfter = isSameOrAfterExports;
|
|
50
|
-
|
|
51
|
-
var isLeapYearExports = {};
|
|
52
|
-
var isLeapYear$1 = {
|
|
53
|
-
get exports(){ return isLeapYearExports; },
|
|
54
|
-
set exports(v){ isLeapYearExports = v; },
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
(function (module, exports) {
|
|
58
|
-
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0};}}));
|
|
59
|
-
} (isLeapYear$1));
|
|
60
|
-
|
|
61
|
-
var isLeapYear = isLeapYearExports;
|
|
62
|
-
|
|
63
|
-
var isBetweenExports = {};
|
|
64
|
-
var isBetween$1 = {
|
|
65
|
-
get exports(){ return isBetweenExports; },
|
|
66
|
-
set exports(v){ isBetweenExports = v; },
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
(function (module, exports) {
|
|
70
|
-
!function(e,i){module.exports=i();}(commonjsGlobal,(function(){return function(e,i,t){i.prototype.isBetween=function(e,i,s,f){var n=t(e),o=t(i),r="("===(f=f||"()")[0],u=")"===f[1];return (r?this.isAfter(n,s):!this.isBefore(n,s))&&(u?this.isBefore(o,s):!this.isAfter(o,s))||(r?this.isBefore(n,s):!this.isAfter(n,s))&&(u?this.isAfter(o,s):!this.isBefore(o,s))};}}));
|
|
71
|
-
} (isBetween$1));
|
|
72
|
-
|
|
73
|
-
var isBetween = isBetweenExports;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Setup dayjs plugin.
|
|
77
|
-
*/
|
|
78
|
-
dayjs.extend(customParseFormat);
|
|
79
|
-
dayjs.extend(isSameOrBefore);
|
|
80
|
-
dayjs.extend(isSameOrAfter);
|
|
81
|
-
dayjs.extend(isLeapYear);
|
|
82
|
-
dayjs.extend(isBetween);
|
|
83
|
-
const dayjsWithPlugins = dayjs;
|
|
84
|
-
|
|
85
|
-
const lettersRegex = /[a-zA-Z]/;
|
|
86
|
-
const nonLettersRegex = /[\W_]+/g;
|
|
87
|
-
const monthLengths = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
88
|
-
const longMonthNames = dayjsWithPlugins.Ls.en.months;
|
|
89
|
-
const shortMonthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
90
|
-
const yearFormats = ['YY', 'YYYY'];
|
|
91
|
-
const monthFormats = ['M', 'MM', 'MMM', 'MMMM'];
|
|
92
|
-
const dayFormats = ['D', 'DD'];
|
|
93
|
-
const getFormatSeparator = format => format[format.search(nonLettersRegex)];
|
|
94
|
-
function capitalizeFirstLetter(value) {
|
|
95
|
-
const lowerCaseValue = value.toLowerCase();
|
|
96
|
-
const match = lowerCaseValue.match(lettersRegex);
|
|
97
|
-
return match ? lowerCaseValue.replace(match[0], match[0].toUpperCase()) : lowerCaseValue;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/*
|
|
101
|
-
* Splitting date to { format, value } object
|
|
102
|
-
* For checking is value fit format
|
|
103
|
-
* Formats are taken from day.js date formats list
|
|
104
|
-
* */
|
|
105
|
-
function splitDateToObjects(dateParts, formatParts) {
|
|
106
|
-
const day = {};
|
|
107
|
-
const month = {};
|
|
108
|
-
const year = {};
|
|
109
|
-
formatParts.forEach((item, index) => {
|
|
110
|
-
if (dayFormats.includes(item)) {
|
|
111
|
-
day.value = dateParts[index];
|
|
112
|
-
day.format = item;
|
|
113
|
-
} else if (monthFormats.includes(item)) {
|
|
114
|
-
month.value = dateParts[index];
|
|
115
|
-
month.format = item;
|
|
116
|
-
} else if (yearFormats.includes(item)) {
|
|
117
|
-
year.value = dateParts[index];
|
|
118
|
-
year.format = item;
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
return {
|
|
122
|
-
day,
|
|
123
|
-
month,
|
|
124
|
-
year
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
function checkDateValidation(_ref) {
|
|
128
|
-
let {
|
|
129
|
-
day,
|
|
130
|
-
month,
|
|
131
|
-
year
|
|
132
|
-
} = _ref;
|
|
133
|
-
if (isNaN(Number(year.value))) {
|
|
134
|
-
return false;
|
|
135
|
-
}
|
|
136
|
-
if (dayjsWithPlugins(year.value).isLeapYear()) {
|
|
137
|
-
monthLengths[1] = 29;
|
|
138
|
-
}
|
|
139
|
-
const currentMonth = !isNaN(Number(month.value)) ? month.value - 1 : month.format === 'MMM' ? shortMonthNames.indexOf(month.value) : longMonthNames.indexOf(month.value);
|
|
140
|
-
return day.value > 0 && day.value <= monthLengths[currentMonth];
|
|
141
|
-
}
|
|
142
|
-
function validateDateField() {
|
|
143
|
-
let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
144
|
-
let required = arguments.length > 1 ? arguments[1] : undefined;
|
|
145
|
-
let isValid = arguments.length > 2 ? arguments[2] : undefined;
|
|
146
|
-
let min = arguments.length > 3 ? arguments[3] : undefined;
|
|
147
|
-
let max = arguments.length > 4 ? arguments[4] : undefined;
|
|
148
|
-
let format = arguments.length > 5 ? arguments[5] : undefined;
|
|
149
|
-
// Need to capitalize first letter of month,
|
|
150
|
-
// because day.js want month name with that format
|
|
151
|
-
const dateString = typeof value === 'string' ? value : dayjsWithPlugins(value).format(format);
|
|
152
|
-
const capitalizedValue = capitalizeFirstLetter(dateString);
|
|
153
|
-
const date = dayjsWithPlugins(capitalizedValue, format);
|
|
154
|
-
const dateWithoutTime = capitalizedValue.split(' ')[0];
|
|
155
|
-
const dateFormat = format.split(' ')[0];
|
|
156
|
-
const separator = getFormatSeparator(dateFormat);
|
|
157
|
-
const dateParts = dateWithoutTime.split(separator);
|
|
158
|
-
const formatParts = dateFormat.split(separator);
|
|
159
|
-
const dateObject = splitDateToObjects(dateParts, formatParts);
|
|
160
|
-
const isInvalidFormat = !dayjsWithPlugins(dateWithoutTime, dateFormat).isValid();
|
|
161
|
-
const isInvalidDate = !checkDateValidation(dateObject);
|
|
162
|
-
const isBefore = !max || date.isBefore(dayjsWithPlugins(capitalizeFirstLetter(max), format));
|
|
163
|
-
const isAfter = !min || date.isAfter(dayjsWithPlugins(capitalizeFirstLetter(min), format));
|
|
164
|
-
|
|
165
|
-
// TODO ::: fix for null case
|
|
166
|
-
// should be valid if value=null and required=false
|
|
167
|
-
if (!capitalizedValue.length) {
|
|
168
|
-
return required ? {
|
|
169
|
-
key: 'required',
|
|
170
|
-
isValid: false
|
|
171
|
-
} : {
|
|
172
|
-
key: null,
|
|
173
|
-
isValid: true
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
if (isInvalidFormat) return {
|
|
177
|
-
key: 'isValidFormat',
|
|
178
|
-
isValid: false
|
|
179
|
-
};
|
|
180
|
-
if (isInvalidDate) return {
|
|
181
|
-
key: 'isValidDate',
|
|
182
|
-
isValid: false
|
|
183
|
-
};
|
|
184
|
-
if (!isBefore) return {
|
|
185
|
-
key: 'isBefore',
|
|
186
|
-
isValid: false
|
|
187
|
-
};
|
|
188
|
-
if (!isAfter) return {
|
|
189
|
-
key: 'isAfter',
|
|
190
|
-
isValid: false
|
|
191
|
-
};
|
|
192
|
-
if (!isValid) return {
|
|
193
|
-
key: 'customValidation',
|
|
194
|
-
isValid: false
|
|
195
|
-
};
|
|
196
|
-
return {
|
|
197
|
-
key: null,
|
|
198
|
-
isValid: true
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
// TODO ::: rename 'receivedValue' and fix
|
|
203
|
-
function validateDatePickerField(receivedValue, required, isValid, min, max, format) {
|
|
204
|
-
const value = receivedValue || '';
|
|
205
|
-
if (!Array.isArray(value)) {
|
|
206
|
-
return validateDateField(value, required, isValid, min, max, format);
|
|
207
|
-
}
|
|
208
|
-
const [start, end] = value;
|
|
209
|
-
const startDateValidation = validateDateField(start || '', required, isValid, min, max, format);
|
|
210
|
-
const endDateValidation = validateDateField(end || '', required, isValid, min, max, format);
|
|
211
|
-
const startFormatted = dayjsWithPlugins(start);
|
|
212
|
-
const isRangeInvalid = dayjsWithPlugins(startFormatted, format).isAfter(dayjsWithPlugins(end, format));
|
|
213
|
-
if (!startDateValidation.isValid) return startDateValidation;
|
|
214
|
-
if (!endDateValidation.isValid) return endDateValidation;
|
|
215
|
-
if (isRangeInvalid) return {
|
|
216
|
-
key: 'isValidRange',
|
|
217
|
-
isValid: false
|
|
218
|
-
};
|
|
219
|
-
return {
|
|
220
|
-
key: null,
|
|
221
|
-
isValid: true
|
|
222
|
-
};
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export { dayjs as a, dayjsWithPlugins as d, isBetween as i, validateDatePickerField as v };
|
package/debounce-4419bc2f.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
function debounce(callback, wait, immediate) {
|
|
2
|
-
let timeout;
|
|
3
|
-
return function func() {
|
|
4
|
-
const context = this;
|
|
5
|
-
const args = arguments;
|
|
6
|
-
const later = function () {
|
|
7
|
-
timeout = null;
|
|
8
|
-
if (!immediate) callback.apply(context, args);
|
|
9
|
-
};
|
|
10
|
-
const callNow = immediate && !timeout;
|
|
11
|
-
clearTimeout(timeout);
|
|
12
|
-
timeout = setTimeout(later, wait);
|
|
13
|
-
if (callNow) callback.apply(context, args);
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { debounce as d };
|
package/guid-8ddf77b3.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** UUID generator
|
|
2
|
-
* Function provides "unique" id.
|
|
3
|
-
* Must be used with React iterable components.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
const hash = () => Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
|
|
7
|
-
|
|
8
|
-
/** @function guid
|
|
9
|
-
* @description
|
|
10
|
-
* The function generates uuid. It can be used as `key`-s needed for
|
|
11
|
-
* React iterated components
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
const guid = () => "".concat(hash() + hash(), "-").concat(hash(), "-").concat(hash(), "-").concat(hash(), "-").concat(hash()).concat(hash()).concat(hash());
|
|
15
|
-
|
|
16
|
-
export { guid as g };
|
package/hooks/useBodyScroll.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useCallback } from 'react';
|
|
2
|
-
|
|
3
|
-
function useBodyScroll() {
|
|
4
|
-
const lock = useCallback(() => {
|
|
5
|
-
document.body.style.overflow = 'hidden';
|
|
6
|
-
}, []);
|
|
7
|
-
const unlock = useCallback(() => {
|
|
8
|
-
document.body.style.overflow = 'auto';
|
|
9
|
-
}, []);
|
|
10
|
-
return {
|
|
11
|
-
lock,
|
|
12
|
-
unlock
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { useBodyScroll as default };
|
package/hooks/useClick.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { useRef, useCallback, useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
function useClick(callback) {
|
|
4
|
-
const ref = useRef();
|
|
5
|
-
const handleClick = useCallback(e => {
|
|
6
|
-
if (ref.current && ref.current.contains(e.target)) {
|
|
7
|
-
callback && callback(e);
|
|
8
|
-
}
|
|
9
|
-
}, [ref.current, callback]);
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
document.addEventListener('mousedown', handleClick);
|
|
12
|
-
return () => document.removeEventListener('mousedown', handleClick);
|
|
13
|
-
}, [handleClick]);
|
|
14
|
-
const setRef = node => ref.current = node;
|
|
15
|
-
return setRef;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { useClick as default };
|