@majoo-ui/react 1.54.0 → 1.54.1-rc.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/components/skeleton/Skeleton.d.ts +1 -1
- package/index.esm.css +0 -56
- package/index.esm.js +565 -560
- package/index.umd.css +0 -56
- package/index.umd.js +564 -560
- package/package.json +1 -1
package/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('prop-types'), require('@stitches/react'), require('@majoo-ui/core'), require('@majoo-ui/icons'), require('react-transition-group'), require('react/jsx-runtime'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react', 'prop-types', '@stitches/react', '@majoo-ui/core', '@majoo-ui/icons', 'react-transition-group', 'react/jsx-runtime', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.React = {}, global.React, global.PropTypes, global.react, global.core, global.icons, global.reactTransitionGroup, global.jsxRuntime, global.
|
|
5
|
-
})(this, (function (exports, React, PropTypes, react, core, icons, reactTransitionGroup, jsxRuntime,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('prop-types'), require('@stitches/react'), require('@majoo-ui/core'), require('@majoo-ui/icons'), require('react-transition-group'), require('react/jsx-runtime'), require('@majoo-ui/helpers'), require('@radix-ui/react-avatar'), require('@radix-ui/react-tooltip'), require('@radix-ui/react-progress'), require('@radix-ui/react-label'), require('@radix-ui/react-checkbox'), require('@radix-ui/react-radio-group'), require('react-number-format'), require('@radix-ui/react-switch'), require('downshift'), require('react-infinite-scroller'), require('lodash.debounce'), require('otp-input-react'), require('@floating-ui/react-dom-interactions'), require('@radix-ui/react-slider'), require('@radix-ui/react-tabs'), require('@radix-ui/react-separator'), require('@radix-ui/react-toggle-group'), require('@radix-ui/react-dialog'), require('@radix-ui/react-accordion'), require('dayzed'), require('moment'), require('react-table'), require('react-dom'), require('@radix-ui/react-alert-dialog'), require('@radix-ui/react-dropdown-menu'), require('@radix-ui/react-aspect-ratio'), require('react-color/lib/components/common'), require('react-color/lib/helpers/color'), require('react-step-wizard'), require('react-ui-scrollspy'), require('@react-google-maps/api'), require('superagent'), require('recharts'), require('draft-js'), require('react-draft-wysiwyg'), require('react-contextmenu'), require('react-loading-skeleton'), require('react-loading-skeleton/dist/skeleton.css'), require('react-image-crop'), require('browser-image-compression'), require('react-table-sticky')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react', 'prop-types', '@stitches/react', '@majoo-ui/core', '@majoo-ui/icons', 'react-transition-group', 'react/jsx-runtime', '@majoo-ui/helpers', '@radix-ui/react-avatar', '@radix-ui/react-tooltip', '@radix-ui/react-progress', '@radix-ui/react-label', '@radix-ui/react-checkbox', '@radix-ui/react-radio-group', 'react-number-format', '@radix-ui/react-switch', 'downshift', 'react-infinite-scroller', 'lodash.debounce', 'otp-input-react', '@floating-ui/react-dom-interactions', '@radix-ui/react-slider', '@radix-ui/react-tabs', '@radix-ui/react-separator', '@radix-ui/react-toggle-group', '@radix-ui/react-dialog', '@radix-ui/react-accordion', 'dayzed', 'moment', 'react-table', 'react-dom', '@radix-ui/react-alert-dialog', '@radix-ui/react-dropdown-menu', '@radix-ui/react-aspect-ratio', 'react-color/lib/components/common', 'react-color/lib/helpers/color', 'react-step-wizard', 'react-ui-scrollspy', '@react-google-maps/api', 'superagent', 'recharts', 'draft-js', 'react-draft-wysiwyg', 'react-contextmenu', 'react-loading-skeleton', 'react-loading-skeleton/dist/skeleton.css', 'react-image-crop', 'browser-image-compression', 'react-table-sticky'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.React = {}, global.React, global.PropTypes, global.react, global.core, global.icons, global.reactTransitionGroup, global.jsxRuntime, global.helpers, global.AvatarPrimitive, global.TooltipPrimitive, global.ProgressPrimitive, global.LabelPrimitive, global.CheckboxPrimitive, global.RadioGroupPrimitive, global.NumberFormat, global.SwitchPrimitive, global.Downshift, global.InfiniteScroll, global.debounce, global.OTPInput, global.reactDomInteractions, global.SliderPrimitive, global.TabsPrimitive, global.SeparatorPrimitive, global.ToggleGroupPrimitive, global.DialogPrimitive, global.AccordionPrimitive, global.dayzed, global.moment, global.reactTable, global.ReactDOM, global.ADialog, global.DropdownMenuPrimitive, global.AspectRatioPrimitive, global.common, global.color, global.StepWizard$1, global.ScrollSpy, global.api, global.request, global.recharts, global.draftJs, global.reactDraftWysiwyg, global.reactContextmenu, global.ReactSkeleton, null, global.ReactCrop, global.imageCompressionComponent, global.reactTableSticky));
|
|
5
|
+
})(this, (function (exports, React, PropTypes, react, core, icons, reactTransitionGroup, jsxRuntime, helpers, AvatarPrimitive, TooltipPrimitive, ProgressPrimitive, LabelPrimitive, CheckboxPrimitive, RadioGroupPrimitive, NumberFormat, SwitchPrimitive, Downshift, InfiniteScroll, debounce, OTPInput, reactDomInteractions, SliderPrimitive, TabsPrimitive, SeparatorPrimitive, ToggleGroupPrimitive, DialogPrimitive, AccordionPrimitive, dayzed, moment, reactTable, ReactDOM, ADialog, DropdownMenuPrimitive, AspectRatioPrimitive, common, color, StepWizard$1, ScrollSpy, api, request, recharts, draftJs, reactDraftWysiwyg, reactContextmenu, ReactSkeleton, skeleton_css, ReactCrop, imageCompressionComponent, reactTableSticky) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
28
28
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
29
29
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
30
|
-
var ReactSkeleton__default = /*#__PURE__*/_interopDefaultLegacy(ReactSkeleton);
|
|
31
30
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
32
31
|
var TooltipPrimitive__namespace = /*#__PURE__*/_interopNamespace(TooltipPrimitive);
|
|
33
32
|
var ProgressPrimitive__namespace = /*#__PURE__*/_interopNamespace(ProgressPrimitive);
|
|
@@ -55,6 +54,7 @@
|
|
|
55
54
|
var StepWizard__default = /*#__PURE__*/_interopDefaultLegacy(StepWizard$1);
|
|
56
55
|
var ScrollSpy__default = /*#__PURE__*/_interopDefaultLegacy(ScrollSpy);
|
|
57
56
|
var request__default = /*#__PURE__*/_interopDefaultLegacy(request);
|
|
57
|
+
var ReactSkeleton__default = /*#__PURE__*/_interopDefaultLegacy(ReactSkeleton);
|
|
58
58
|
var ReactCrop__default = /*#__PURE__*/_interopDefaultLegacy(ReactCrop);
|
|
59
59
|
var imageCompressionComponent__default = /*#__PURE__*/_interopDefaultLegacy(imageCompressionComponent);
|
|
60
60
|
|
|
@@ -2611,427 +2611,7 @@
|
|
|
2611
2611
|
};
|
|
2612
2612
|
GridItem.displayName = 'Grid Item';
|
|
2613
2613
|
|
|
2614
|
-
|
|
2615
|
-
const [matches, setMatches] = React.useState(false);
|
|
2616
|
-
React.useEffect(() => {
|
|
2617
|
-
const media = window.matchMedia(query);
|
|
2618
|
-
|
|
2619
|
-
if (media.matches !== matches) {
|
|
2620
|
-
setMatches(media.matches);
|
|
2621
|
-
}
|
|
2622
|
-
|
|
2623
|
-
const listener = () => {
|
|
2624
|
-
setMatches(media.matches);
|
|
2625
|
-
};
|
|
2626
|
-
|
|
2627
|
-
media.addEventListener('change', listener);
|
|
2628
|
-
return () => media.removeEventListener('change', listener);
|
|
2629
|
-
}, [matches, query]);
|
|
2630
|
-
return matches;
|
|
2631
|
-
}
|
|
2632
|
-
|
|
2633
|
-
var StyledSkeleton = function StyledSkeleton(props) {
|
|
2634
|
-
var color = props.color,
|
|
2635
|
-
count = props.count,
|
|
2636
|
-
width = props.width,
|
|
2637
|
-
size = props.size,
|
|
2638
|
-
circle = props.circle;
|
|
2639
|
-
|
|
2640
|
-
function getBaseColor(color) {
|
|
2641
|
-
switch (color) {
|
|
2642
|
-
case 'primary':
|
|
2643
|
-
return colors$4.gray300;
|
|
2644
|
-
|
|
2645
|
-
default:
|
|
2646
|
-
return colors$4.gray150;
|
|
2647
|
-
}
|
|
2648
|
-
}
|
|
2649
|
-
|
|
2650
|
-
function getSize(size) {
|
|
2651
|
-
switch (size) {
|
|
2652
|
-
case 'md':
|
|
2653
|
-
return 16;
|
|
2654
|
-
|
|
2655
|
-
case 'lg':
|
|
2656
|
-
return 118;
|
|
2657
|
-
|
|
2658
|
-
default:
|
|
2659
|
-
return 12;
|
|
2660
|
-
}
|
|
2661
|
-
}
|
|
2662
|
-
|
|
2663
|
-
return jsxRuntime.jsx(ReactSkeleton.SkeletonTheme, __assign({
|
|
2664
|
-
width: width,
|
|
2665
|
-
borderRadius: size === 'lg' ? 0 : 20,
|
|
2666
|
-
baseColor: getBaseColor(color),
|
|
2667
|
-
highlightColor: "#FAFAFA"
|
|
2668
|
-
}, {
|
|
2669
|
-
children: jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
2670
|
-
height: getSize(size),
|
|
2671
|
-
count: count,
|
|
2672
|
-
circle: circle
|
|
2673
|
-
}, void 0)
|
|
2674
|
-
}), void 0);
|
|
2675
|
-
};
|
|
2676
|
-
|
|
2677
|
-
var Card$1 = styled('div', {
|
|
2678
|
-
padding: 40,
|
|
2679
|
-
borderRadius: 8,
|
|
2680
|
-
background: '$bgWhite',
|
|
2681
|
-
boxShadow: '0px 7px 15px rgba(0, 0, 0, 0.07)',
|
|
2682
|
-
position: 'relative'
|
|
2683
|
-
});
|
|
2684
|
-
var Space = styled('div', {
|
|
2685
|
-
height: 8,
|
|
2686
|
-
variants: {
|
|
2687
|
-
size: {
|
|
2688
|
-
sm: {
|
|
2689
|
-
height: 8
|
|
2690
|
-
},
|
|
2691
|
-
md: {
|
|
2692
|
-
height: 18
|
|
2693
|
-
}
|
|
2694
|
-
}
|
|
2695
|
-
}
|
|
2696
|
-
});
|
|
2697
|
-
function Skeleton() {
|
|
2698
|
-
var isDesktop = useMediaQuery('(min-width: 767px)');
|
|
2699
|
-
|
|
2700
|
-
if (isDesktop) {
|
|
2701
|
-
return jsxRuntime.jsxs(Grid, __assign({
|
|
2702
|
-
columns: 6,
|
|
2703
|
-
gapY: 5
|
|
2704
|
-
}, {
|
|
2705
|
-
children: [jsxRuntime.jsx(GridItem, __assign({
|
|
2706
|
-
colSpan: 6
|
|
2707
|
-
}, {
|
|
2708
|
-
children: jsxRuntime.jsxs(Grid, __assign({
|
|
2709
|
-
columns: 6,
|
|
2710
|
-
gapX: 2
|
|
2711
|
-
}, {
|
|
2712
|
-
children: [jsxRuntime.jsx(GridItem, __assign({
|
|
2713
|
-
colSpan: 2
|
|
2714
|
-
}, {
|
|
2715
|
-
children: jsxRuntime.jsxs(Card$1, {
|
|
2716
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
2717
|
-
size: "md",
|
|
2718
|
-
color: "primary"
|
|
2719
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2720
|
-
size: "md"
|
|
2721
|
-
}, void 0), jsxRuntime.jsxs(Box, {
|
|
2722
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2723
|
-
width: "60%"
|
|
2724
|
-
}, void 0)]
|
|
2725
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2726
|
-
size: "md"
|
|
2727
|
-
}, void 0), jsxRuntime.jsxs(Box, {
|
|
2728
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2729
|
-
width: "60%"
|
|
2730
|
-
}, void 0)]
|
|
2731
|
-
}, void 0)]
|
|
2732
|
-
}, void 0)
|
|
2733
|
-
}), void 0), jsxRuntime.jsx(GridItem, __assign({
|
|
2734
|
-
colSpan: 2
|
|
2735
|
-
}, {
|
|
2736
|
-
children: jsxRuntime.jsxs(Card$1, {
|
|
2737
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
2738
|
-
size: "md",
|
|
2739
|
-
color: "primary"
|
|
2740
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2741
|
-
size: "md"
|
|
2742
|
-
}, void 0), jsxRuntime.jsxs(Box, {
|
|
2743
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2744
|
-
width: "60%"
|
|
2745
|
-
}, void 0)]
|
|
2746
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2747
|
-
size: "md"
|
|
2748
|
-
}, void 0), jsxRuntime.jsxs(Box, {
|
|
2749
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2750
|
-
width: "60%"
|
|
2751
|
-
}, void 0)]
|
|
2752
|
-
}, void 0)]
|
|
2753
|
-
}, void 0)
|
|
2754
|
-
}), void 0), jsxRuntime.jsx(GridItem, __assign({
|
|
2755
|
-
colSpan: 2
|
|
2756
|
-
}, {
|
|
2757
|
-
children: jsxRuntime.jsxs(Card$1, {
|
|
2758
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
2759
|
-
size: "md",
|
|
2760
|
-
color: "primary"
|
|
2761
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2762
|
-
size: "md"
|
|
2763
|
-
}, void 0), jsxRuntime.jsxs(Box, {
|
|
2764
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2765
|
-
width: "60%"
|
|
2766
|
-
}, void 0)]
|
|
2767
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2768
|
-
size: "md"
|
|
2769
|
-
}, void 0), jsxRuntime.jsxs(Box, {
|
|
2770
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2771
|
-
width: "60%"
|
|
2772
|
-
}, void 0)]
|
|
2773
|
-
}, void 0)]
|
|
2774
|
-
}, void 0)
|
|
2775
|
-
}), void 0)]
|
|
2776
|
-
}), void 0)
|
|
2777
|
-
}), void 0), jsxRuntime.jsx(GridItem, __assign({
|
|
2778
|
-
colSpan: 6
|
|
2779
|
-
}, {
|
|
2780
|
-
children: jsxRuntime.jsx(Card$1, {
|
|
2781
|
-
children: jsxRuntime.jsxs(Grid, __assign({
|
|
2782
|
-
columns: 6,
|
|
2783
|
-
gapY: 5
|
|
2784
|
-
}, {
|
|
2785
|
-
children: [jsxRuntime.jsx(GridItem, __assign({
|
|
2786
|
-
colSpan: 6
|
|
2787
|
-
}, {
|
|
2788
|
-
children: jsxRuntime.jsxs(Grid, __assign({
|
|
2789
|
-
columns: 6,
|
|
2790
|
-
gapX: 2
|
|
2791
|
-
}, {
|
|
2792
|
-
children: [jsxRuntime.jsxs(GridItem, __assign({
|
|
2793
|
-
colSpan: 2
|
|
2794
|
-
}, {
|
|
2795
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
2796
|
-
size: "lg"
|
|
2797
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2798
|
-
size: "md"
|
|
2799
|
-
}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2800
|
-
size: "md",
|
|
2801
|
-
color: "primary",
|
|
2802
|
-
width: "85%"
|
|
2803
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2804
|
-
size: "md"
|
|
2805
|
-
}, void 0), jsxRuntime.jsxs(Box, {
|
|
2806
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
2807
|
-
width: "85%"
|
|
2808
|
-
}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2809
|
-
width: "60%"
|
|
2810
|
-
}, void 0)]
|
|
2811
|
-
}, void 0)]
|
|
2812
|
-
}), void 0), jsxRuntime.jsxs(GridItem, __assign({
|
|
2813
|
-
colSpan: 2
|
|
2814
|
-
}, {
|
|
2815
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
2816
|
-
size: "lg"
|
|
2817
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2818
|
-
size: "md"
|
|
2819
|
-
}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2820
|
-
size: "md",
|
|
2821
|
-
color: "primary",
|
|
2822
|
-
width: "85%"
|
|
2823
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2824
|
-
size: "md"
|
|
2825
|
-
}, void 0), jsxRuntime.jsxs(Box, {
|
|
2826
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
2827
|
-
width: "85%"
|
|
2828
|
-
}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2829
|
-
width: "60%"
|
|
2830
|
-
}, void 0)]
|
|
2831
|
-
}, void 0)]
|
|
2832
|
-
}), void 0), jsxRuntime.jsxs(GridItem, __assign({
|
|
2833
|
-
colSpan: 2
|
|
2834
|
-
}, {
|
|
2835
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
2836
|
-
size: "lg"
|
|
2837
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2838
|
-
size: "md"
|
|
2839
|
-
}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2840
|
-
size: "md",
|
|
2841
|
-
color: "primary",
|
|
2842
|
-
width: "85%"
|
|
2843
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2844
|
-
size: "md"
|
|
2845
|
-
}, void 0), jsxRuntime.jsxs(Box, {
|
|
2846
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
2847
|
-
width: "85%"
|
|
2848
|
-
}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2849
|
-
width: "60%"
|
|
2850
|
-
}, void 0)]
|
|
2851
|
-
}, void 0)]
|
|
2852
|
-
}), void 0)]
|
|
2853
|
-
}), void 0)
|
|
2854
|
-
}), void 0), jsxRuntime.jsxs(GridItem, __assign({
|
|
2855
|
-
colSpan: 6
|
|
2856
|
-
}, {
|
|
2857
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
2858
|
-
width: "50%"
|
|
2859
|
-
}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsxs(ReactSkeleton.SkeletonTheme, __assign({
|
|
2860
|
-
inline: true,
|
|
2861
|
-
borderRadius: 20,
|
|
2862
|
-
baseColor: colors$4.gray150,
|
|
2863
|
-
highlightColor: "#FAFAFA"
|
|
2864
|
-
}, {
|
|
2865
|
-
children: [jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
2866
|
-
style: {
|
|
2867
|
-
marginRight: 8
|
|
2868
|
-
},
|
|
2869
|
-
height: 12,
|
|
2870
|
-
width: 12,
|
|
2871
|
-
circle: true
|
|
2872
|
-
}, void 0), jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
2873
|
-
height: 12,
|
|
2874
|
-
width: "95%"
|
|
2875
|
-
}, void 0)]
|
|
2876
|
-
}), void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsxs(ReactSkeleton.SkeletonTheme, __assign({
|
|
2877
|
-
inline: true,
|
|
2878
|
-
borderRadius: 20,
|
|
2879
|
-
baseColor: colors$4.gray150,
|
|
2880
|
-
highlightColor: "#FAFAFA"
|
|
2881
|
-
}, {
|
|
2882
|
-
children: [jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
2883
|
-
style: {
|
|
2884
|
-
marginRight: 8
|
|
2885
|
-
},
|
|
2886
|
-
height: 12,
|
|
2887
|
-
width: 12,
|
|
2888
|
-
circle: true
|
|
2889
|
-
}, void 0), jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
2890
|
-
height: 12,
|
|
2891
|
-
width: "95%"
|
|
2892
|
-
}, void 0)]
|
|
2893
|
-
}), void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsxs(ReactSkeleton.SkeletonTheme, __assign({
|
|
2894
|
-
inline: true,
|
|
2895
|
-
borderRadius: 20,
|
|
2896
|
-
baseColor: colors$4.gray150,
|
|
2897
|
-
highlightColor: "#FAFAFA"
|
|
2898
|
-
}, {
|
|
2899
|
-
children: [jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
2900
|
-
style: {
|
|
2901
|
-
marginRight: 8
|
|
2902
|
-
},
|
|
2903
|
-
height: 12,
|
|
2904
|
-
width: 12,
|
|
2905
|
-
circle: true
|
|
2906
|
-
}, void 0), jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
2907
|
-
height: 12,
|
|
2908
|
-
width: "95%"
|
|
2909
|
-
}, void 0)]
|
|
2910
|
-
}), void 0)]
|
|
2911
|
-
}), void 0)]
|
|
2912
|
-
}), void 0)
|
|
2913
|
-
}, void 0)
|
|
2914
|
-
}), void 0)]
|
|
2915
|
-
}), void 0);
|
|
2916
|
-
} else {
|
|
2917
|
-
return jsxRuntime.jsxs(Grid, __assign({
|
|
2918
|
-
columns: 6,
|
|
2919
|
-
gapY: 4
|
|
2920
|
-
}, {
|
|
2921
|
-
children: [jsxRuntime.jsx(GridItem, __assign({
|
|
2922
|
-
colSpan: 6
|
|
2923
|
-
}, {
|
|
2924
|
-
children: jsxRuntime.jsxs(Card$1, {
|
|
2925
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
2926
|
-
size: "md",
|
|
2927
|
-
color: "primary"
|
|
2928
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2929
|
-
size: "md"
|
|
2930
|
-
}, void 0), jsxRuntime.jsxs(Box, {
|
|
2931
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2932
|
-
width: "60%"
|
|
2933
|
-
}, void 0)]
|
|
2934
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2935
|
-
size: "md"
|
|
2936
|
-
}, void 0), jsxRuntime.jsxs(Box, {
|
|
2937
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2938
|
-
width: "60%"
|
|
2939
|
-
}, void 0)]
|
|
2940
|
-
}, void 0)]
|
|
2941
|
-
}, void 0)
|
|
2942
|
-
}), void 0), jsxRuntime.jsx(GridItem, __assign({
|
|
2943
|
-
colSpan: 6
|
|
2944
|
-
}, {
|
|
2945
|
-
children: jsxRuntime.jsx(Card$1, {
|
|
2946
|
-
children: jsxRuntime.jsxs(Grid, {
|
|
2947
|
-
children: [jsxRuntime.jsxs(GridItem, __assign({
|
|
2948
|
-
colSpan: 6
|
|
2949
|
-
}, {
|
|
2950
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
2951
|
-
size: "lg"
|
|
2952
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2953
|
-
size: "md"
|
|
2954
|
-
}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2955
|
-
size: "md",
|
|
2956
|
-
color: "primary",
|
|
2957
|
-
width: "85%"
|
|
2958
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2959
|
-
size: "md"
|
|
2960
|
-
}, void 0), jsxRuntime.jsxs(Box, {
|
|
2961
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
2962
|
-
width: "85%"
|
|
2963
|
-
}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
2964
|
-
width: "60%"
|
|
2965
|
-
}, void 0)]
|
|
2966
|
-
}, void 0), jsxRuntime.jsx(Space, {
|
|
2967
|
-
size: "md"
|
|
2968
|
-
}, void 0)]
|
|
2969
|
-
}), void 0), jsxRuntime.jsxs(GridItem, __assign({
|
|
2970
|
-
colSpan: 6
|
|
2971
|
-
}, {
|
|
2972
|
-
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
2973
|
-
width: "50%"
|
|
2974
|
-
}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsxs(ReactSkeleton.SkeletonTheme, __assign({
|
|
2975
|
-
inline: true,
|
|
2976
|
-
borderRadius: 20,
|
|
2977
|
-
baseColor: colors$4.gray150,
|
|
2978
|
-
highlightColor: "#FAFAFA"
|
|
2979
|
-
}, {
|
|
2980
|
-
children: [jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
2981
|
-
style: {
|
|
2982
|
-
marginRight: 8
|
|
2983
|
-
},
|
|
2984
|
-
height: 12,
|
|
2985
|
-
width: 12,
|
|
2986
|
-
circle: true
|
|
2987
|
-
}, void 0), jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
2988
|
-
height: 12,
|
|
2989
|
-
width: "85%"
|
|
2990
|
-
}, void 0)]
|
|
2991
|
-
}), void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsxs(ReactSkeleton.SkeletonTheme, __assign({
|
|
2992
|
-
inline: true,
|
|
2993
|
-
borderRadius: 20,
|
|
2994
|
-
baseColor: colors$4.gray150,
|
|
2995
|
-
highlightColor: "#FAFAFA"
|
|
2996
|
-
}, {
|
|
2997
|
-
children: [jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
2998
|
-
style: {
|
|
2999
|
-
marginRight: 8
|
|
3000
|
-
},
|
|
3001
|
-
height: 12,
|
|
3002
|
-
width: 12,
|
|
3003
|
-
circle: true
|
|
3004
|
-
}, void 0), jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
3005
|
-
height: 12,
|
|
3006
|
-
width: "85%"
|
|
3007
|
-
}, void 0)]
|
|
3008
|
-
}), void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsxs(ReactSkeleton.SkeletonTheme, __assign({
|
|
3009
|
-
inline: true,
|
|
3010
|
-
borderRadius: 20,
|
|
3011
|
-
baseColor: colors$4.gray150,
|
|
3012
|
-
highlightColor: "#FAFAFA"
|
|
3013
|
-
}, {
|
|
3014
|
-
children: [jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
3015
|
-
style: {
|
|
3016
|
-
marginRight: 8
|
|
3017
|
-
},
|
|
3018
|
-
height: 12,
|
|
3019
|
-
width: 12,
|
|
3020
|
-
circle: true
|
|
3021
|
-
}, void 0), jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
3022
|
-
height: 12,
|
|
3023
|
-
width: "85%"
|
|
3024
|
-
}, void 0)]
|
|
3025
|
-
}), void 0)]
|
|
3026
|
-
}), void 0)]
|
|
3027
|
-
}, void 0)
|
|
3028
|
-
}, void 0)
|
|
3029
|
-
}), void 0)]
|
|
3030
|
-
}), void 0);
|
|
3031
|
-
}
|
|
3032
|
-
}
|
|
3033
|
-
|
|
3034
|
-
const _excluded$z = ["children", "isCollapse", "css", "contentHeader", "isLoading"];
|
|
2614
|
+
const _excluded$z = ["children", "isCollapse", "css", "contentHeader"];
|
|
3035
2615
|
var _jsxFileName$_ = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\layout\\pageContainer\\PageContainer.js";
|
|
3036
2616
|
const StyledDiv$3 = styled(Flex$1, {
|
|
3037
2617
|
justifyContent: 'center',
|
|
@@ -3059,8 +2639,7 @@
|
|
|
3059
2639
|
children,
|
|
3060
2640
|
isCollapse,
|
|
3061
2641
|
css,
|
|
3062
|
-
contentHeader
|
|
3063
|
-
isLoading
|
|
2642
|
+
contentHeader
|
|
3064
2643
|
} = _ref,
|
|
3065
2644
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
3066
2645
|
|
|
@@ -3073,17 +2652,10 @@
|
|
|
3073
2652
|
__self: undefined,
|
|
3074
2653
|
__source: {
|
|
3075
2654
|
fileName: _jsxFileName$_,
|
|
3076
|
-
lineNumber:
|
|
2655
|
+
lineNumber: 28,
|
|
3077
2656
|
columnNumber: 5
|
|
3078
2657
|
}
|
|
3079
|
-
}),
|
|
3080
|
-
__self: undefined,
|
|
3081
|
-
__source: {
|
|
3082
|
-
fileName: _jsxFileName$_,
|
|
3083
|
-
lineNumber: 31,
|
|
3084
|
-
columnNumber: 9
|
|
3085
|
-
}
|
|
3086
|
-
}) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, contentHeader, children));
|
|
2658
|
+
}), contentHeader, children);
|
|
3087
2659
|
};
|
|
3088
2660
|
|
|
3089
2661
|
PageContainer.displayName = 'PageContainer';
|
|
@@ -4089,7 +3661,7 @@
|
|
|
4089
3661
|
onClick: e => {
|
|
4090
3662
|
e.preventDefault();
|
|
4091
3663
|
e.stopPropagation();
|
|
4092
|
-
value
|
|
3664
|
+
value == null ? void 0 : value.onRemove();
|
|
4093
3665
|
},
|
|
4094
3666
|
__self: undefined,
|
|
4095
3667
|
__source: {
|
|
@@ -4166,7 +3738,7 @@
|
|
|
4166
3738
|
onClick: e => {
|
|
4167
3739
|
e.preventDefault();
|
|
4168
3740
|
e.stopPropagation();
|
|
4169
|
-
props
|
|
3741
|
+
props == null ? void 0 : props.onRemove();
|
|
4170
3742
|
},
|
|
4171
3743
|
closeCenter: !props.title && !props.link,
|
|
4172
3744
|
__self: undefined,
|
|
@@ -4722,7 +4294,7 @@
|
|
|
4722
4294
|
}
|
|
4723
4295
|
}
|
|
4724
4296
|
});
|
|
4725
|
-
const Card = _ref => {
|
|
4297
|
+
const Card$1 = _ref => {
|
|
4726
4298
|
let {
|
|
4727
4299
|
className,
|
|
4728
4300
|
children,
|
|
@@ -4785,7 +4357,7 @@
|
|
|
4785
4357
|
}
|
|
4786
4358
|
}, title)) : null, children);
|
|
4787
4359
|
};
|
|
4788
|
-
Card.propTypes = {
|
|
4360
|
+
Card$1.propTypes = {
|
|
4789
4361
|
className: PropTypes__default["default"].string,
|
|
4790
4362
|
color: PropTypes__default["default"].string,
|
|
4791
4363
|
shadow: PropTypes__default["default"].bool,
|
|
@@ -4796,7 +4368,7 @@
|
|
|
4796
4368
|
textColor: PropTypes__default["default"].string,
|
|
4797
4369
|
icon: PropTypes__default["default"].element
|
|
4798
4370
|
};
|
|
4799
|
-
Card.defaultProps = {
|
|
4371
|
+
Card$1.defaultProps = {
|
|
4800
4372
|
className: '',
|
|
4801
4373
|
color: 'green',
|
|
4802
4374
|
shadow: false,
|
|
@@ -6209,7 +5781,7 @@
|
|
|
6209
5781
|
const [isChecked, setChecked] = React.useState(false);
|
|
6210
5782
|
React.useEffect(() => {
|
|
6211
5783
|
const checkValue = context && context.checkedItems.includes(value) || checked || indeterminate;
|
|
6212
|
-
setChecked(checkValue
|
|
5784
|
+
setChecked(checkValue != null ? checkValue : false);
|
|
6213
5785
|
}, [checked, indeterminate, context]);
|
|
6214
5786
|
return /*#__PURE__*/React__default["default"].createElement(StyledCheckbox, _extends({
|
|
6215
5787
|
id: id,
|
|
@@ -6818,7 +6390,7 @@
|
|
|
6818
6390
|
React.useEffect(() => {
|
|
6819
6391
|
if (textareaRef.current) {
|
|
6820
6392
|
textareaRef.current.style.height = '60px';
|
|
6821
|
-
const scrollHeight = textareaRef
|
|
6393
|
+
const scrollHeight = textareaRef == null ? void 0 : textareaRef.current.scrollHeight;
|
|
6822
6394
|
textareaRef.current.style.height = scrollHeight + 20 + 'px';
|
|
6823
6395
|
}
|
|
6824
6396
|
}, []);
|
|
@@ -6860,7 +6432,7 @@
|
|
|
6860
6432
|
var _jsxFileName$F = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputRadio\\InputRadioGroup.js";
|
|
6861
6433
|
const RadioGroup = styled(RadioGroupPrimitive__namespace.Root, Flex$1);
|
|
6862
6434
|
function InputRadioGroup(props) {
|
|
6863
|
-
return (props
|
|
6435
|
+
return (props == null ? void 0 : props.children) && /*#__PURE__*/React__default["default"].createElement(InputRadioContext.Provider, {
|
|
6864
6436
|
value: props,
|
|
6865
6437
|
__self: this,
|
|
6866
6438
|
__source: {
|
|
@@ -6875,7 +6447,7 @@
|
|
|
6875
6447
|
lineNumber: 14,
|
|
6876
6448
|
columnNumber: 9
|
|
6877
6449
|
}
|
|
6878
|
-
}), React__default["default"].Children.map(props
|
|
6450
|
+
}), React__default["default"].Children.map(props == null ? void 0 : props.children, child => /*#__PURE__*/React__default["default"].cloneElement(child, {
|
|
6879
6451
|
style: Object.assign({}, child.props.style, {
|
|
6880
6452
|
opacity: 1
|
|
6881
6453
|
})
|
|
@@ -7089,7 +6661,7 @@
|
|
|
7089
6661
|
value,
|
|
7090
6662
|
outlined
|
|
7091
6663
|
}) => {
|
|
7092
|
-
const checked = value
|
|
6664
|
+
const checked = value != null ? value : defaultValue;
|
|
7093
6665
|
return /*#__PURE__*/React__default["default"].createElement(Container$8, {
|
|
7094
6666
|
direction: "column",
|
|
7095
6667
|
outlined: outlined,
|
|
@@ -7339,7 +6911,7 @@
|
|
|
7339
6911
|
size: size,
|
|
7340
6912
|
isInvalid: isInvalid,
|
|
7341
6913
|
readOnly: readOnly,
|
|
7342
|
-
isReadOnly: readOnly && !(props
|
|
6914
|
+
isReadOnly: readOnly && !(props != null && props.inputGroup),
|
|
7343
6915
|
disabled: disabled
|
|
7344
6916
|
}, props, {
|
|
7345
6917
|
__self: undefined,
|
|
@@ -8155,18 +7727,18 @@
|
|
|
8155
7727
|
const addTags = event => {
|
|
8156
7728
|
if (event.key === 'Enter' && event.target.value !== '' && max !== tags.length) {
|
|
8157
7729
|
if (tags.find(tag => tag.toLowerCase() === event.target.value.toLowerCase())) {
|
|
8158
|
-
onEnter
|
|
7730
|
+
onEnter == null ? void 0 : onEnter({
|
|
8159
7731
|
key: 'duplicate',
|
|
8160
7732
|
value: event.target.value
|
|
8161
7733
|
});
|
|
8162
7734
|
return;
|
|
8163
7735
|
}
|
|
8164
7736
|
|
|
8165
|
-
if (pattern && pattern
|
|
7737
|
+
if (pattern && pattern != null && pattern.regex) {
|
|
8166
7738
|
const regex = new RegExp(pattern.regex);
|
|
8167
7739
|
|
|
8168
7740
|
if (!regex.test(event.target.value)) {
|
|
8169
|
-
onEnter
|
|
7741
|
+
onEnter == null ? void 0 : onEnter({
|
|
8170
7742
|
key: 'error',
|
|
8171
7743
|
value: event.target.value
|
|
8172
7744
|
});
|
|
@@ -8176,7 +7748,7 @@
|
|
|
8176
7748
|
}
|
|
8177
7749
|
|
|
8178
7750
|
setRegexError(false);
|
|
8179
|
-
onEnter
|
|
7751
|
+
onEnter == null ? void 0 : onEnter({
|
|
8180
7752
|
key: 'success',
|
|
8181
7753
|
value: event.target.value
|
|
8182
7754
|
});
|
|
@@ -8189,7 +7761,7 @@
|
|
|
8189
7761
|
if (disabled || readOnly) {
|
|
8190
7762
|
return tags;
|
|
8191
7763
|
} else if (key === 'removeTag' || key === 'Backspace') {
|
|
8192
|
-
onRemoveItem
|
|
7764
|
+
onRemoveItem == null ? void 0 : onRemoveItem(tags[index]);
|
|
8193
7765
|
setTags([...tags.filter(tag => tags.indexOf(tag) !== index)]);
|
|
8194
7766
|
}
|
|
8195
7767
|
}; // const handleErrorMessage = () => {
|
|
@@ -8237,7 +7809,7 @@
|
|
|
8237
7809
|
lineNumber: 180,
|
|
8238
7810
|
columnNumber: 9
|
|
8239
7811
|
}
|
|
8240
|
-
})), regexError && pattern && (pattern
|
|
7812
|
+
})), regexError && pattern && (pattern != null && pattern.errorMessage ? /*#__PURE__*/React__default["default"].createElement(FormHelper, {
|
|
8241
7813
|
color: "red",
|
|
8242
7814
|
__self: this,
|
|
8243
7815
|
__source: {
|
|
@@ -10115,10 +9687,10 @@
|
|
|
10115
9687
|
return setItems(sortValue);
|
|
10116
9688
|
}
|
|
10117
9689
|
} else {
|
|
10118
|
-
let filterItems = option
|
|
10119
|
-
var _item$name, _item$name$toLowerCas
|
|
9690
|
+
let filterItems = option == null ? void 0 : option.filter(item => {
|
|
9691
|
+
var _item$name, _item$name$toLowerCas;
|
|
10120
9692
|
|
|
10121
|
-
return item
|
|
9693
|
+
return item == null ? void 0 : (_item$name = item.name) == null ? void 0 : (_item$name$toLowerCas = _item$name.toLowerCase()) == null ? void 0 : _item$name$toLowerCas.includes == null ? void 0 : _item$name$toLowerCas.includes(input == null ? void 0 : input.toLocaleLowerCase == null ? void 0 : input.toLocaleLowerCase());
|
|
10122
9694
|
});
|
|
10123
9695
|
setItems(filterItems);
|
|
10124
9696
|
}
|
|
@@ -10128,9 +9700,9 @@
|
|
|
10128
9700
|
if (disabled || readOnly) {
|
|
10129
9701
|
return selectedValue;
|
|
10130
9702
|
} else {
|
|
10131
|
-
if ((selected
|
|
9703
|
+
if ((selected == null ? void 0 : selected.id) === 'counter') {
|
|
10132
9704
|
setSelectedValue([]);
|
|
10133
|
-
onChange
|
|
9705
|
+
onChange == null ? void 0 : onChange([]);
|
|
10134
9706
|
|
|
10135
9707
|
for (let i = 0; i < selectedValue.length; i++) {
|
|
10136
9708
|
removeSelectedItem(selectedValue[i]);
|
|
@@ -10141,7 +9713,7 @@
|
|
|
10141
9713
|
setSelectedValue(filterItems);
|
|
10142
9714
|
|
|
10143
9715
|
if (selected.id !== '!all') {
|
|
10144
|
-
onChange
|
|
9716
|
+
onChange == null ? void 0 : onChange(filterItems);
|
|
10145
9717
|
}
|
|
10146
9718
|
}
|
|
10147
9719
|
}
|
|
@@ -10186,7 +9758,7 @@
|
|
|
10186
9758
|
removeSelectedItem(item);
|
|
10187
9759
|
});
|
|
10188
9760
|
setSelectedValue([]);
|
|
10189
|
-
onChange
|
|
9761
|
+
onChange == null ? void 0 : onChange([]);
|
|
10190
9762
|
} else {
|
|
10191
9763
|
removeItem(selectedItem);
|
|
10192
9764
|
}
|
|
@@ -10201,12 +9773,12 @@
|
|
|
10201
9773
|
itemIds.push(item.id);
|
|
10202
9774
|
});
|
|
10203
9775
|
setSelectedValue(itemIds);
|
|
10204
|
-
onChange
|
|
9776
|
+
onChange == null ? void 0 : onChange(itemIds.slice(1));
|
|
10205
9777
|
} else {
|
|
10206
9778
|
addSelectedItem(selectedItem);
|
|
10207
9779
|
setSelectedValue([...selectedValue, selectedItem.id]);
|
|
10208
9780
|
const filteredSelectedValues = selectedValue.filter(val => val !== '!all');
|
|
10209
|
-
onChange
|
|
9781
|
+
onChange == null ? void 0 : onChange([...filteredSelectedValues, selectedItem.id]);
|
|
10210
9782
|
}
|
|
10211
9783
|
|
|
10212
9784
|
selectItem(null);
|
|
@@ -10358,7 +9930,7 @@
|
|
|
10358
9930
|
lineNumber: 559,
|
|
10359
9931
|
columnNumber: 11
|
|
10360
9932
|
}
|
|
10361
|
-
}, selectedItems
|
|
9933
|
+
}, selectedItems == null ? void 0 : (_selectedItems$filter = selectedItems.filter(item => (item == null ? void 0 : item.id) !== '!all')) == null ? void 0 : _selectedItems$filter.map((selectedItem, index) => /*#__PURE__*/React__default["default"].createElement(Tag, _extends({
|
|
10362
9934
|
disabled: disabled,
|
|
10363
9935
|
isRemovable: readOnly || disabled || unremovableTags.includes(selectedItem.id) ? false : true,
|
|
10364
9936
|
size: size,
|
|
@@ -10382,7 +9954,7 @@
|
|
|
10382
9954
|
lineNumber: 563,
|
|
10383
9955
|
columnNumber: 17
|
|
10384
9956
|
}
|
|
10385
|
-
}), selectedItem.name))), showSelectedTag && showCounter && Boolean(selectedItems
|
|
9957
|
+
}), selectedItem.name))), showSelectedTag && showCounter && Boolean(selectedItems == null ? void 0 : selectedItems.length) && /*#__PURE__*/React__default["default"].createElement(TagWrapper$1, {
|
|
10386
9958
|
disabled: disabled,
|
|
10387
9959
|
__self: undefined,
|
|
10388
9960
|
__source: {
|
|
@@ -10395,7 +9967,7 @@
|
|
|
10395
9967
|
maxWidth: '150px !important'
|
|
10396
9968
|
},
|
|
10397
9969
|
disabled: disabled,
|
|
10398
|
-
isRemovable: readOnly || disabled || Boolean(selectedItems
|
|
9970
|
+
isRemovable: readOnly || disabled || Boolean(selectedItems == null ? void 0 : selectedItems.length),
|
|
10399
9971
|
size: size,
|
|
10400
9972
|
readOnly: readOnly // {...getSelectedItemProps({ selectedItem, index })}
|
|
10401
9973
|
,
|
|
@@ -10417,7 +9989,7 @@
|
|
|
10417
9989
|
lineNumber: 586,
|
|
10418
9990
|
columnNumber: 13
|
|
10419
9991
|
}
|
|
10420
|
-
}, `${selectedItems
|
|
9992
|
+
}, `${selectedItems == null ? void 0 : selectedItems.length} ${labelCounter}`)), /*#__PURE__*/React__default["default"].createElement(OptionWrapper$1, {
|
|
10421
9993
|
placement: placement,
|
|
10422
9994
|
css: {
|
|
10423
9995
|
display: isOpen && disabled === false ? 'block' : 'none',
|
|
@@ -10485,7 +10057,7 @@
|
|
|
10485
10057
|
lineNumber: 640,
|
|
10486
10058
|
columnNumber: 27
|
|
10487
10059
|
}
|
|
10488
|
-
}), showSelectAll && (item
|
|
10060
|
+
}), showSelectAll && (item == null ? void 0 : item.id) === '!all' && selectedValue != null && selectedValue.length && (selectedValue == null ? void 0 : selectedValue.length) < (items == null ? void 0 : items.length) ? /*#__PURE__*/React__default["default"].createElement(IndeterminateFilled, {
|
|
10489
10061
|
__self: undefined,
|
|
10490
10062
|
__source: {
|
|
10491
10063
|
fileName: _jsxFileName$v,
|
|
@@ -11768,8 +11340,8 @@
|
|
|
11768
11340
|
ref: floating,
|
|
11769
11341
|
style: Object.assign({
|
|
11770
11342
|
position: strategy,
|
|
11771
|
-
top: isMobile ? 0 : y
|
|
11772
|
-
left: isMobile ? 0 : x
|
|
11343
|
+
top: isMobile ? 0 : y != null ? y : '',
|
|
11344
|
+
left: isMobile ? 0 : x != null ? x : '',
|
|
11773
11345
|
zIndex: zIndices.popover
|
|
11774
11346
|
}, style)
|
|
11775
11347
|
}), {
|
|
@@ -13002,7 +12574,7 @@
|
|
|
13002
12574
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
13003
12575
|
|
|
13004
12576
|
const getValue = () => {
|
|
13005
|
-
let value = props
|
|
12577
|
+
let value = props == null ? void 0 : props.value;
|
|
13006
12578
|
|
|
13007
12579
|
if (typeof value === 'number' || parseInt(value)) {
|
|
13008
12580
|
if (Math.sign(value) === 1 || Math.sign(value) === 0) {
|
|
@@ -14956,6 +14528,25 @@
|
|
|
14956
14528
|
var AccordionItem = StyledItem$1;
|
|
14957
14529
|
var AccordionContent = AccordionPrimitive__namespace.Content;
|
|
14958
14530
|
|
|
14531
|
+
function useMediaQuery(query) {
|
|
14532
|
+
const [matches, setMatches] = React.useState(false);
|
|
14533
|
+
React.useEffect(() => {
|
|
14534
|
+
const media = window.matchMedia(query);
|
|
14535
|
+
|
|
14536
|
+
if (media.matches !== matches) {
|
|
14537
|
+
setMatches(media.matches);
|
|
14538
|
+
}
|
|
14539
|
+
|
|
14540
|
+
const listener = () => {
|
|
14541
|
+
setMatches(media.matches);
|
|
14542
|
+
};
|
|
14543
|
+
|
|
14544
|
+
media.addEventListener('change', listener);
|
|
14545
|
+
return () => media.removeEventListener('change', listener);
|
|
14546
|
+
}, [matches, query]);
|
|
14547
|
+
return matches;
|
|
14548
|
+
}
|
|
14549
|
+
|
|
14959
14550
|
var ButtonGroup = styled(ToggleGroupPrimitive__namespace.Root, {});
|
|
14960
14551
|
var Item$1 = styled(ButtonGroupItem, {
|
|
14961
14552
|
fontSize: '$label',
|
|
@@ -17839,7 +17430,7 @@
|
|
|
17839
17430
|
lineNumber: 40,
|
|
17840
17431
|
columnNumber: 11
|
|
17841
17432
|
}
|
|
17842
|
-
}, limits
|
|
17433
|
+
}, limits == null ? void 0 : limits.map(limit => /*#__PURE__*/React__default["default"].createElement(PopoverClose, {
|
|
17843
17434
|
key: limit,
|
|
17844
17435
|
css: limitItemContainerStyle(selectedLimit === limit),
|
|
17845
17436
|
onClick: () => onChange(limit),
|
|
@@ -20488,7 +20079,7 @@
|
|
|
20488
20079
|
if (!props.onOpenAutoFocus) {
|
|
20489
20080
|
e.preventDefault();
|
|
20490
20081
|
} else {
|
|
20491
|
-
props
|
|
20082
|
+
props == null ? void 0 : props.onOpenAutoFocus();
|
|
20492
20083
|
}
|
|
20493
20084
|
},
|
|
20494
20085
|
__self: undefined,
|
|
@@ -20609,8 +20200,8 @@
|
|
|
20609
20200
|
size: "sm",
|
|
20610
20201
|
onClick: buttonConfirm,
|
|
20611
20202
|
buttonType: props.dialogType,
|
|
20612
|
-
disabled: props
|
|
20613
|
-
}, props
|
|
20203
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
20204
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
20614
20205
|
__self: undefined,
|
|
20615
20206
|
__source: {
|
|
20616
20207
|
fileName: _jsxFileName$b,
|
|
@@ -20629,12 +20220,12 @@
|
|
|
20629
20220
|
size: "sm",
|
|
20630
20221
|
onClick: buttonCancel,
|
|
20631
20222
|
css: {
|
|
20632
|
-
color: props.dialogType === 'negative' && !(props
|
|
20223
|
+
color: props.dialogType === 'negative' && !(props != null && props.disabledButton) && '$gray900 !important',
|
|
20633
20224
|
flex: props.isMobile && 1
|
|
20634
20225
|
},
|
|
20635
20226
|
buttonType: "ghost",
|
|
20636
|
-
disabled: props
|
|
20637
|
-
}, props
|
|
20227
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
20228
|
+
}, props == null ? void 0 : props.cancelButtonProps, {
|
|
20638
20229
|
__self: undefined,
|
|
20639
20230
|
__source: {
|
|
20640
20231
|
fileName: _jsxFileName$b,
|
|
@@ -20656,8 +20247,8 @@
|
|
|
20656
20247
|
css: {
|
|
20657
20248
|
flex: props.isMobile && 1
|
|
20658
20249
|
},
|
|
20659
|
-
disabled: props
|
|
20660
|
-
}, props
|
|
20250
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
20251
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
20661
20252
|
__self: undefined,
|
|
20662
20253
|
__source: {
|
|
20663
20254
|
fileName: _jsxFileName$b,
|
|
@@ -20817,8 +20408,8 @@
|
|
|
20817
20408
|
css: {
|
|
20818
20409
|
flex: props.isMobile && 1
|
|
20819
20410
|
},
|
|
20820
|
-
disabled: props
|
|
20821
|
-
}, props
|
|
20411
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
20412
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
20822
20413
|
__self: this,
|
|
20823
20414
|
__source: {
|
|
20824
20415
|
fileName: _jsxFileName$b,
|
|
@@ -20837,12 +20428,12 @@
|
|
|
20837
20428
|
size: "sm",
|
|
20838
20429
|
onClick: props.onCancel,
|
|
20839
20430
|
css: {
|
|
20840
|
-
color: props.dialogType === 'negative' && !(props
|
|
20431
|
+
color: props.dialogType === 'negative' && !(props != null && props.disabledButton) && '$gray900 !important',
|
|
20841
20432
|
flex: props.isMobile && 1
|
|
20842
20433
|
},
|
|
20843
20434
|
buttonType: "ghost",
|
|
20844
|
-
disabled: props
|
|
20845
|
-
}, props
|
|
20435
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
20436
|
+
}, props == null ? void 0 : props.cancelButtonProps, {
|
|
20846
20437
|
__self: this,
|
|
20847
20438
|
__source: {
|
|
20848
20439
|
fileName: _jsxFileName$b,
|
|
@@ -20864,8 +20455,8 @@
|
|
|
20864
20455
|
css: {
|
|
20865
20456
|
flex: props.isMobile && 1
|
|
20866
20457
|
},
|
|
20867
|
-
disabled: props
|
|
20868
|
-
}, props
|
|
20458
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
20459
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
20869
20460
|
__self: this,
|
|
20870
20461
|
__source: {
|
|
20871
20462
|
fileName: _jsxFileName$b,
|
|
@@ -23381,7 +22972,7 @@
|
|
|
23381
22972
|
upload({
|
|
23382
22973
|
url: action,
|
|
23383
22974
|
file: newFile,
|
|
23384
|
-
customBody: customBodyRequest
|
|
22975
|
+
customBody: customBodyRequest == null ? void 0 : customBodyRequest(newFile),
|
|
23385
22976
|
token,
|
|
23386
22977
|
tokenKey,
|
|
23387
22978
|
reqKey,
|
|
@@ -23404,12 +22995,12 @@
|
|
|
23404
22995
|
}
|
|
23405
22996
|
}
|
|
23406
22997
|
|
|
23407
|
-
onChange
|
|
22998
|
+
onChange == null ? void 0 : (_onChange = onChange({
|
|
23408
22999
|
fileList: arrProgress,
|
|
23409
23000
|
file: fileProgress,
|
|
23410
23001
|
indexReplace: indexReplace.current,
|
|
23411
23002
|
isReplace: indexReplace.current !== null
|
|
23412
|
-
}))
|
|
23003
|
+
})) == null ? void 0 : (_onChange$then = _onChange.then(() => setError(null))) == null ? void 0 : _onChange$then.catch(error => setError(error.message));
|
|
23413
23004
|
}
|
|
23414
23005
|
}).then(result => {
|
|
23415
23006
|
var _onChange2, _onChange2$then;
|
|
@@ -23426,12 +23017,12 @@
|
|
|
23426
23017
|
}
|
|
23427
23018
|
}
|
|
23428
23019
|
|
|
23429
|
-
onChange
|
|
23020
|
+
onChange == null ? void 0 : (_onChange2 = onChange({
|
|
23430
23021
|
fileList: arrSuccess,
|
|
23431
23022
|
file: fileSuccess,
|
|
23432
23023
|
indexReplace: indexReplace.current,
|
|
23433
23024
|
isReplace: indexReplace.current !== null
|
|
23434
|
-
}))
|
|
23025
|
+
})) == null ? void 0 : (_onChange2$then = _onChange2.then(() => setError(null))) == null ? void 0 : _onChange2$then.catch(error => setError(error.message));
|
|
23435
23026
|
}).catch(error => {
|
|
23436
23027
|
var _onChange3, _onChange3$then;
|
|
23437
23028
|
|
|
@@ -23447,22 +23038,22 @@
|
|
|
23447
23038
|
}
|
|
23448
23039
|
}
|
|
23449
23040
|
|
|
23450
|
-
onChange
|
|
23041
|
+
onChange == null ? void 0 : (_onChange3 = onChange({
|
|
23451
23042
|
fileList: arrError,
|
|
23452
23043
|
file: fileError,
|
|
23453
23044
|
indexReplace: indexReplace.current,
|
|
23454
23045
|
isReplace: indexReplace.current !== null
|
|
23455
|
-
}))
|
|
23046
|
+
})) == null ? void 0 : (_onChange3$then = _onChange3.then(() => setError(null))) == null ? void 0 : _onChange3$then.catch(error => setError(error.message));
|
|
23456
23047
|
});
|
|
23457
23048
|
} else {
|
|
23458
23049
|
var _onChange4, _onChange4$then;
|
|
23459
23050
|
|
|
23460
|
-
onChange
|
|
23051
|
+
onChange == null ? void 0 : (_onChange4 = onChange({
|
|
23461
23052
|
fileList: arrFile,
|
|
23462
23053
|
file: newFile,
|
|
23463
23054
|
indexReplace: indexReplace.current,
|
|
23464
23055
|
isReplace: indexReplace.current !== null
|
|
23465
|
-
}))
|
|
23056
|
+
})) == null ? void 0 : (_onChange4$then = _onChange4.then(() => setError(null))) == null ? void 0 : _onChange4$then.catch(error => setError(error.message));
|
|
23466
23057
|
}
|
|
23467
23058
|
|
|
23468
23059
|
if (indexReplace.current !== null) {
|
|
@@ -23487,24 +23078,24 @@
|
|
|
23487
23078
|
// program to get the dimensions of an image
|
|
23488
23079
|
const img = document.createElement('img');
|
|
23489
23080
|
img.src = URL.createObjectURL(files[0]);
|
|
23490
|
-
img.size = files
|
|
23491
|
-
img.type = files
|
|
23081
|
+
img.size = files == null ? void 0 : (_files$ = files[0]) == null ? void 0 : _files$.size;
|
|
23082
|
+
img.type = files == null ? void 0 : (_files$2 = files[0]) == null ? void 0 : _files$2.type;
|
|
23492
23083
|
|
|
23493
23084
|
img.onload = () => {
|
|
23494
23085
|
var _onBeforeCrop, _onBeforeCrop$then;
|
|
23495
23086
|
|
|
23496
|
-
onBeforeCrop
|
|
23087
|
+
onBeforeCrop == null ? void 0 : (_onBeforeCrop = onBeforeCrop(img)) == null ? void 0 : (_onBeforeCrop$then = _onBeforeCrop.then(() => {
|
|
23497
23088
|
setError(null);
|
|
23498
23089
|
toggleModal();
|
|
23499
23090
|
setFileState(files[0]);
|
|
23500
23091
|
setPreviewImage(URL.createObjectURL(files[0]));
|
|
23501
|
-
}))
|
|
23092
|
+
})) == null ? void 0 : _onBeforeCrop$then.catch(error => setError(error == null ? void 0 : error.message));
|
|
23502
23093
|
};
|
|
23503
23094
|
|
|
23504
23095
|
img.onerror = error => {
|
|
23505
23096
|
var _onBeforeCrop2, _onBeforeCrop2$then;
|
|
23506
23097
|
|
|
23507
|
-
onBeforeCrop
|
|
23098
|
+
onBeforeCrop == null ? void 0 : (_onBeforeCrop2 = onBeforeCrop(img, error)) == null ? void 0 : (_onBeforeCrop2$then = _onBeforeCrop2.then(() => setError(null))) == null ? void 0 : _onBeforeCrop2$then.catch(error => setError(error == null ? void 0 : error.message));
|
|
23508
23099
|
};
|
|
23509
23100
|
} else {
|
|
23510
23101
|
toggleModal();
|
|
@@ -23516,15 +23107,15 @@
|
|
|
23516
23107
|
}
|
|
23517
23108
|
|
|
23518
23109
|
function handleCrop() {
|
|
23519
|
-
if (completedCrop
|
|
23110
|
+
if (completedCrop != null && completedCrop.width && completedCrop != null && completedCrop.height && imgRef.current) {
|
|
23520
23111
|
imgPreview(imgRef.current, completedCrop, 1, 0, ratio).then(blob => {
|
|
23521
|
-
const sizeMB = (blob
|
|
23112
|
+
const sizeMB = (blob == null ? void 0 : blob.size) / 1024 / 1024;
|
|
23522
23113
|
|
|
23523
23114
|
if (sizeMB < maxSizeMB || sizeMB < 1 || !imageCompression) {
|
|
23524
23115
|
var _fileState$name;
|
|
23525
23116
|
|
|
23526
|
-
const file = new File([blob], (fileState
|
|
23527
|
-
type: blob
|
|
23117
|
+
const file = new File([blob], (fileState == null ? void 0 : (_fileState$name = fileState.name) == null ? void 0 : _fileState$name.replace(/\.[^/.]+$/, '')) + '.png', {
|
|
23118
|
+
type: blob == null ? void 0 : blob.type
|
|
23528
23119
|
});
|
|
23529
23120
|
handleUpload([file]);
|
|
23530
23121
|
setCrop(null);
|
|
@@ -23539,17 +23130,17 @@
|
|
|
23539
23130
|
}).then(compressedFile => {
|
|
23540
23131
|
var _fileState$name2;
|
|
23541
23132
|
|
|
23542
|
-
const file = new File([compressedFile], (fileState
|
|
23543
|
-
type: compressedFile
|
|
23133
|
+
const file = new File([compressedFile], (fileState == null ? void 0 : (_fileState$name2 = fileState.name) == null ? void 0 : _fileState$name2.replace(/\.[^/.]+$/, '')) + '.png', {
|
|
23134
|
+
type: compressedFile == null ? void 0 : compressedFile.type
|
|
23544
23135
|
});
|
|
23545
23136
|
handleUpload([file]);
|
|
23546
23137
|
setCrop(null);
|
|
23547
23138
|
setCompletedCrop(null);
|
|
23548
|
-
}).catch(error => console.error(error
|
|
23139
|
+
}).catch(error => console.error(error == null ? void 0 : error.message));
|
|
23549
23140
|
}
|
|
23550
23141
|
|
|
23551
23142
|
toggleModal();
|
|
23552
|
-
}).catch(error => console.error(error
|
|
23143
|
+
}).catch(error => console.error(error == null ? void 0 : error.message));
|
|
23553
23144
|
} else {
|
|
23554
23145
|
handleUpload([fileState]);
|
|
23555
23146
|
toggleModal();
|
|
@@ -23580,7 +23171,7 @@
|
|
|
23580
23171
|
const index = fileList.indexOf(file);
|
|
23581
23172
|
const newFileList = fileList.slice();
|
|
23582
23173
|
newFileList.splice(index, 1);
|
|
23583
|
-
onChange
|
|
23174
|
+
onChange == null ? void 0 : onChange({
|
|
23584
23175
|
fileList: newFileList,
|
|
23585
23176
|
file
|
|
23586
23177
|
});
|
|
@@ -23608,22 +23199,22 @@
|
|
|
23608
23199
|
function handleOpenFile(file) {
|
|
23609
23200
|
var _String, _file$name;
|
|
23610
23201
|
|
|
23611
|
-
let extension = (_String = String(file
|
|
23202
|
+
let extension = (_String = String(file == null ? void 0 : (_file$name = file.name) == null ? void 0 : _file$name.split('.').pop())) == null ? void 0 : _String.toLowerCase();
|
|
23612
23203
|
|
|
23613
23204
|
if (extension === 'pdf') {
|
|
23614
|
-
window.open(file
|
|
23205
|
+
window.open(file == null ? void 0 : file.url);
|
|
23615
23206
|
} else {
|
|
23616
|
-
request__default["default"].get(file
|
|
23207
|
+
request__default["default"].get(file == null ? void 0 : file.url).end((err, res) => {
|
|
23617
23208
|
if (err) {
|
|
23618
23209
|
console.error(err.message);
|
|
23619
23210
|
}
|
|
23620
23211
|
|
|
23621
|
-
if (res && res
|
|
23622
|
-
const response = res
|
|
23212
|
+
if (res && res != null && res.ok) {
|
|
23213
|
+
const response = res == null ? void 0 : res.text;
|
|
23623
23214
|
const url = window.URL.createObjectURL(new Blob([response]));
|
|
23624
23215
|
const link = document.createElement('a');
|
|
23625
23216
|
link.href = url;
|
|
23626
|
-
link.setAttribute('download', file
|
|
23217
|
+
link.setAttribute('download', file == null ? void 0 : file.name);
|
|
23627
23218
|
document.body.appendChild(link);
|
|
23628
23219
|
link.click();
|
|
23629
23220
|
document.body.removeChild(link);
|
|
@@ -23693,12 +23284,12 @@
|
|
|
23693
23284
|
}
|
|
23694
23285
|
|
|
23695
23286
|
const renderPicture = () => {
|
|
23696
|
-
return fileList
|
|
23697
|
-
if ((item
|
|
23287
|
+
return fileList == null ? void 0 : fileList.map((item, index) => {
|
|
23288
|
+
if ((item == null ? void 0 : item.status) === 'uploading') {
|
|
23698
23289
|
return /*#__PURE__*/React__default["default"].createElement(UploadProgress, {
|
|
23699
23290
|
key: index,
|
|
23700
|
-
progress: item
|
|
23701
|
-
loading: item
|
|
23291
|
+
progress: item == null ? void 0 : item.percent,
|
|
23292
|
+
loading: item == null ? void 0 : item.loading,
|
|
23702
23293
|
__self: undefined,
|
|
23703
23294
|
__source: {
|
|
23704
23295
|
fileName: _jsxFileName$9,
|
|
@@ -23773,14 +23364,14 @@
|
|
|
23773
23364
|
};
|
|
23774
23365
|
|
|
23775
23366
|
const renderFile = () => {
|
|
23776
|
-
return fileList
|
|
23367
|
+
return fileList == null ? void 0 : fileList.map((item, index) => {
|
|
23777
23368
|
var _item$name;
|
|
23778
23369
|
|
|
23779
|
-
if ((item
|
|
23370
|
+
if ((item == null ? void 0 : item.status) === 'uploading') {
|
|
23780
23371
|
return /*#__PURE__*/React__default["default"].createElement(UploadProgress, {
|
|
23781
23372
|
key: index,
|
|
23782
|
-
progress: item
|
|
23783
|
-
loading: item
|
|
23373
|
+
progress: item == null ? void 0 : item.percent,
|
|
23374
|
+
loading: item == null ? void 0 : item.loading,
|
|
23784
23375
|
__self: undefined,
|
|
23785
23376
|
__source: {
|
|
23786
23377
|
fileName: _jsxFileName$9,
|
|
@@ -23847,7 +23438,7 @@
|
|
|
23847
23438
|
lineNumber: 661,
|
|
23848
23439
|
columnNumber: 17
|
|
23849
23440
|
}
|
|
23850
|
-
}, ".", item
|
|
23441
|
+
}, ".", item == null ? void 0 : (_item$name = item.name) == null ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default["default"].createElement(Tooltip$1, {
|
|
23851
23442
|
label: item.name,
|
|
23852
23443
|
__self: undefined,
|
|
23853
23444
|
__source: {
|
|
@@ -24019,7 +23610,7 @@
|
|
|
24019
23610
|
lineNumber: 736,
|
|
24020
23611
|
columnNumber: 11
|
|
24021
23612
|
}
|
|
24022
|
-
}, children
|
|
23613
|
+
}, children != null ? children : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
24023
23614
|
__self: this,
|
|
24024
23615
|
__source: {
|
|
24025
23616
|
fileName: _jsxFileName$9,
|
|
@@ -24053,7 +23644,7 @@
|
|
|
24053
23644
|
lineNumber: 742,
|
|
24054
23645
|
columnNumber: 17
|
|
24055
23646
|
}
|
|
24056
|
-
}, placeholder
|
|
23647
|
+
}, placeholder != null ? placeholder : `Pilih atau letakkan berkas di sini`)))), error && /*#__PURE__*/React__default["default"].createElement(ErrorMessage, {
|
|
24057
23648
|
__self: this,
|
|
24058
23649
|
__source: {
|
|
24059
23650
|
fileName: _jsxFileName$9,
|
|
@@ -24213,7 +23804,7 @@
|
|
|
24213
23804
|
|
|
24214
23805
|
return /*#__PURE__*/React__default["default"].createElement(Flex$1, {
|
|
24215
23806
|
direction: "row",
|
|
24216
|
-
gap: (fileList
|
|
23807
|
+
gap: (fileList == null ? void 0 : fileList.length) <= 1 && max === 1 ? 0 : 3,
|
|
24217
23808
|
wrap: "wrap",
|
|
24218
23809
|
css: {
|
|
24219
23810
|
userSelect: 'none'
|
|
@@ -25052,10 +24643,10 @@
|
|
|
25052
24643
|
const [isPopover, setIsPopover] = React.useState(false);
|
|
25053
24644
|
|
|
25054
24645
|
function getColor() {
|
|
25055
|
-
const color = props
|
|
24646
|
+
const color = props == null ? void 0 : props.color;
|
|
25056
24647
|
|
|
25057
24648
|
if (typeof color === 'string') {
|
|
25058
|
-
return color
|
|
24649
|
+
return color == null ? void 0 : color.toUpperCase();
|
|
25059
24650
|
}
|
|
25060
24651
|
|
|
25061
24652
|
return `rgba(${color.r},${color.g},${color.b},${color.a})`;
|
|
@@ -28027,9 +27618,9 @@
|
|
|
28027
27618
|
lineNumber: 120,
|
|
28028
27619
|
columnNumber: 30
|
|
28029
27620
|
}
|
|
28030
|
-
}), typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title = (_data = data[i - 1]).title)
|
|
27621
|
+
}), typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title = (_data = data[i - 1]).title) == null ? void 0 : _data$title.call(_data), ((_data2 = data[i - 1]) == null ? void 0 : _data2.withTolltip) && /*#__PURE__*/React__default["default"].createElement(Tooltip$1, {
|
|
28031
27622
|
align: "center",
|
|
28032
|
-
label: (_data3 = data[i - 1])
|
|
27623
|
+
label: (_data3 = data[i - 1]) == null ? void 0 : _data3.tooltipsContents,
|
|
28033
27624
|
__self: undefined,
|
|
28034
27625
|
__source: {
|
|
28035
27626
|
fileName: _jsxFileName$4,
|
|
@@ -28048,9 +27639,9 @@
|
|
|
28048
27639
|
lineNumber: 124,
|
|
28049
27640
|
columnNumber: 19
|
|
28050
27641
|
}
|
|
28051
|
-
})), ((_data4 = data[i - 1])
|
|
27642
|
+
})), ((_data4 = data[i - 1]) == null ? void 0 : _data4.comingSoon) && /*#__PURE__*/React__default["default"].createElement(Flex$1, {
|
|
28052
27643
|
css: {
|
|
28053
|
-
marginLeft: (_data5 = data[i - 1])
|
|
27644
|
+
marginLeft: (_data5 = data[i - 1]) != null && _data5.withTolltip ? 0 : '$spacing-03'
|
|
28054
27645
|
},
|
|
28055
27646
|
align: "center",
|
|
28056
27647
|
__self: undefined,
|
|
@@ -28102,7 +27693,7 @@
|
|
|
28102
27693
|
height: 24,
|
|
28103
27694
|
borderRadius: '$round',
|
|
28104
27695
|
border: `4px solid ${isActive ? '$bgGreen' : '$bgInactive'}`,
|
|
28105
|
-
backgroundColor: (_data6 = data[i - 1])
|
|
27696
|
+
backgroundColor: (_data6 = data[i - 1]) != null && _data6.disabled ? '$gray200' : '$white'
|
|
28106
27697
|
},
|
|
28107
27698
|
__self: undefined,
|
|
28108
27699
|
__source: {
|
|
@@ -28120,10 +27711,10 @@
|
|
|
28120
27711
|
lineNumber: 163,
|
|
28121
27712
|
columnNumber: 15
|
|
28122
27713
|
}
|
|
28123
|
-
}, isActive ? typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title2 = (_data7 = data[i - 1]).title)
|
|
27714
|
+
}, isActive ? typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title2 = (_data7 = data[i - 1]).title) == null ? void 0 : _data$title2.call(_data7) : ''), isActive && ((_data8 = data[i - 1]) == null ? void 0 : _data8.withTolltip) && /*#__PURE__*/React__default["default"].createElement(Tooltip$1, {
|
|
28124
27715
|
align: "center",
|
|
28125
27716
|
withClick: true,
|
|
28126
|
-
label: (_data9 = data[i - 1])
|
|
27717
|
+
label: (_data9 = data[i - 1]) == null ? void 0 : _data9.tooltipsContents,
|
|
28127
27718
|
__self: undefined,
|
|
28128
27719
|
__source: {
|
|
28129
27720
|
fileName: _jsxFileName$4,
|
|
@@ -28139,11 +27730,11 @@
|
|
|
28139
27730
|
lineNumber: 168,
|
|
28140
27731
|
columnNumber: 19
|
|
28141
27732
|
}
|
|
28142
|
-
})), isActive && ((_data10 = data[i - 1])
|
|
27733
|
+
})), isActive && ((_data10 = data[i - 1]) == null ? void 0 : _data10.comingSoon) && /*#__PURE__*/React__default["default"].createElement(Flex$1, {
|
|
28143
27734
|
align: "center",
|
|
28144
27735
|
justify: "center",
|
|
28145
27736
|
css: {
|
|
28146
|
-
marginTop: (_data11 = data[i - 1])
|
|
27737
|
+
marginTop: (_data11 = data[i - 1]) != null && _data11.withTolltip ? 0 : '$spacing-03'
|
|
28147
27738
|
},
|
|
28148
27739
|
__self: undefined,
|
|
28149
27740
|
__source: {
|
|
@@ -28225,9 +27816,7 @@
|
|
|
28225
27816
|
}));
|
|
28226
27817
|
}, [props.hide]);
|
|
28227
27818
|
React.useEffect(() => {
|
|
28228
|
-
|
|
28229
|
-
|
|
28230
|
-
props === null || props === void 0 ? void 0 : (_props$onChangeVisibi = props.onChangeVisibility) === null || _props$onChangeVisibi === void 0 ? void 0 : _props$onChangeVisibi.call(props, state.hide);
|
|
27819
|
+
props == null ? void 0 : props.onChangeVisibility == null ? void 0 : props.onChangeVisibility(state.hide);
|
|
28231
27820
|
}, [state.hide]);
|
|
28232
27821
|
|
|
28233
27822
|
const toogleVisibility = value => {
|
|
@@ -28239,13 +27828,13 @@
|
|
|
28239
27828
|
const getIsComplete = currentStep => {
|
|
28240
27829
|
var _state$isComplete;
|
|
28241
27830
|
|
|
28242
|
-
return state
|
|
27831
|
+
return state == null ? void 0 : (_state$isComplete = state.isComplete) == null ? void 0 : _state$isComplete[currentStep - 1];
|
|
28243
27832
|
};
|
|
28244
27833
|
|
|
28245
27834
|
const getTitleStep = currentStep => {
|
|
28246
27835
|
var _props$navContents, _props$navContents2;
|
|
28247
27836
|
|
|
28248
|
-
return props
|
|
27837
|
+
return props == null ? void 0 : (_props$navContents = props.navContents) == null ? void 0 : (_props$navContents2 = _props$navContents[currentStep - 1]) == null ? void 0 : _props$navContents2.title;
|
|
28249
27838
|
};
|
|
28250
27839
|
|
|
28251
27840
|
const setState = value => {
|
|
@@ -28287,15 +27876,15 @@
|
|
|
28287
27876
|
});
|
|
28288
27877
|
props.onStepChange && props.onStepChange(e);
|
|
28289
27878
|
|
|
28290
|
-
if (props
|
|
28291
|
-
if ((e
|
|
27879
|
+
if (props != null && (_props$navContents3 = props.navContents) != null && (_props$navContents4 = _props$navContents3[(e == null ? void 0 : e.activeStep) - 1]) != null && _props$navContents4.disabled) {
|
|
27880
|
+
if ((e == null ? void 0 : e.activeStep) > (e == null ? void 0 : e.previousStep)) {
|
|
28292
27881
|
var _state$SW;
|
|
28293
27882
|
|
|
28294
|
-
state
|
|
27883
|
+
state == null ? void 0 : (_state$SW = state.SW) == null ? void 0 : _state$SW.nextStep();
|
|
28295
27884
|
} else {
|
|
28296
27885
|
var _state$SW2;
|
|
28297
27886
|
|
|
28298
|
-
state
|
|
27887
|
+
state == null ? void 0 : (_state$SW2 = state.SW) == null ? void 0 : _state$SW2.previousStep();
|
|
28299
27888
|
}
|
|
28300
27889
|
}
|
|
28301
27890
|
};
|
|
@@ -28311,11 +27900,11 @@
|
|
|
28311
27900
|
}, /*#__PURE__*/React__default["default"].createElement(StepWizardContext.Provider, {
|
|
28312
27901
|
value: {
|
|
28313
27902
|
toogleVisibility,
|
|
28314
|
-
isHide: state
|
|
27903
|
+
isHide: state == null ? void 0 : state.hide,
|
|
28315
27904
|
setComplete,
|
|
28316
27905
|
setState,
|
|
28317
27906
|
state,
|
|
28318
|
-
SW: state
|
|
27907
|
+
SW: state == null ? void 0 : state.SW,
|
|
28319
27908
|
forbidClickNav: props.forbidClickNav,
|
|
28320
27909
|
titles: props.titles,
|
|
28321
27910
|
isMobile: props.isMobile,
|
|
@@ -28488,10 +28077,10 @@
|
|
|
28488
28077
|
function getDatasets(content, activeId, isCollapse) {
|
|
28489
28078
|
const datasets = [];
|
|
28490
28079
|
|
|
28491
|
-
for (let i = 0; i < (content
|
|
28080
|
+
for (let i = 0; i < (content == null ? void 0 : content.length); i++) {
|
|
28492
28081
|
var _content$i;
|
|
28493
28082
|
|
|
28494
|
-
if (((_content$i = content[i])
|
|
28083
|
+
if (((_content$i = content[i]) == null ? void 0 : _content$i.id) === activeId) {
|
|
28495
28084
|
datasets.unshift(content[i]);
|
|
28496
28085
|
} else {
|
|
28497
28086
|
datasets.push(content[i]);
|
|
@@ -28531,7 +28120,7 @@
|
|
|
28531
28120
|
lineNumber: 99,
|
|
28532
28121
|
columnNumber: 7
|
|
28533
28122
|
}
|
|
28534
|
-
}, (_getDatasets = getDatasets(content, activeId, isCollapse))
|
|
28123
|
+
}, (_getDatasets = getDatasets(content, activeId, isCollapse)) == null ? void 0 : _getDatasets.map((item, index) => {
|
|
28535
28124
|
return /*#__PURE__*/React__default["default"].createElement(List, {
|
|
28536
28125
|
key: index,
|
|
28537
28126
|
__self: this,
|
|
@@ -28548,11 +28137,11 @@
|
|
|
28548
28137
|
marginLeft: '-4px !important',
|
|
28549
28138
|
borderLeftWidth: '4px !important',
|
|
28550
28139
|
borderLeftStyle: 'solid !important',
|
|
28551
|
-
borderLeftColor: `${(item
|
|
28140
|
+
borderLeftColor: `${(item == null ? void 0 : item.id) === activeId ? colors$4.primary500 : 'transparent'} !important`,
|
|
28552
28141
|
paddingLeft: '16px !important',
|
|
28553
28142
|
minHeight: 25
|
|
28554
28143
|
},
|
|
28555
|
-
"data-to-scrollspy-id": item
|
|
28144
|
+
"data-to-scrollspy-id": item == null ? void 0 : item.id,
|
|
28556
28145
|
__self: this,
|
|
28557
28146
|
__source: {
|
|
28558
28147
|
fileName: _jsxFileName$2,
|
|
@@ -28561,8 +28150,8 @@
|
|
|
28561
28150
|
}
|
|
28562
28151
|
}, /*#__PURE__*/React__default["default"].createElement(Title$1, {
|
|
28563
28152
|
className: "link-title",
|
|
28564
|
-
active: (item
|
|
28565
|
-
href: `#${item
|
|
28153
|
+
active: (item == null ? void 0 : item.id) === activeId,
|
|
28154
|
+
href: `#${item == null ? void 0 : item.id}`,
|
|
28566
28155
|
onClick: e => {
|
|
28567
28156
|
e.preventDefault();
|
|
28568
28157
|
const target = window.document.getElementById(e.currentTarget.href.split('#')[1]);
|
|
@@ -28591,7 +28180,7 @@
|
|
|
28591
28180
|
lineNumber: 117,
|
|
28592
28181
|
columnNumber: 17
|
|
28593
28182
|
}
|
|
28594
|
-
}, item
|
|
28183
|
+
}, item == null ? void 0 : item.title), item == null ? void 0 : item.icon));
|
|
28595
28184
|
})));
|
|
28596
28185
|
}
|
|
28597
28186
|
|
|
@@ -29668,7 +29257,7 @@
|
|
|
29668
29257
|
var StyledProgress = react.styled(ProgressPrimitive__namespace.Root, {
|
|
29669
29258
|
position: 'relative',
|
|
29670
29259
|
overflow: 'hidden',
|
|
29671
|
-
background: '$
|
|
29260
|
+
background: '$gray150',
|
|
29672
29261
|
borderRadius: '99999px',
|
|
29673
29262
|
width: '100%',
|
|
29674
29263
|
height: 8
|
|
@@ -32124,6 +31713,421 @@
|
|
|
32124
31713
|
}), void 0);
|
|
32125
31714
|
}
|
|
32126
31715
|
|
|
31716
|
+
var transform = keyframes({
|
|
31717
|
+
'100%': {
|
|
31718
|
+
transform: 'translateX(100%)'
|
|
31719
|
+
}
|
|
31720
|
+
});
|
|
31721
|
+
var SkeletonContainer = styled(Box, {
|
|
31722
|
+
'& .react-loading-skeleton::after': {
|
|
31723
|
+
animation: "1.5s infinite normal ".concat(transform, " !important"),
|
|
31724
|
+
animationTimingFunction: 'ease-in-out !important'
|
|
31725
|
+
}
|
|
31726
|
+
});
|
|
31727
|
+
|
|
31728
|
+
var StyledSkeleton = function StyledSkeleton(props) {
|
|
31729
|
+
var color = props.color,
|
|
31730
|
+
count = props.count,
|
|
31731
|
+
width = props.width,
|
|
31732
|
+
size = props.size,
|
|
31733
|
+
circle = props.circle;
|
|
31734
|
+
|
|
31735
|
+
function getBaseColor(color) {
|
|
31736
|
+
switch (color) {
|
|
31737
|
+
case 'primary':
|
|
31738
|
+
return colors$4.gray300;
|
|
31739
|
+
|
|
31740
|
+
default:
|
|
31741
|
+
return colors$4.gray150;
|
|
31742
|
+
}
|
|
31743
|
+
}
|
|
31744
|
+
|
|
31745
|
+
function getSize(size) {
|
|
31746
|
+
switch (size) {
|
|
31747
|
+
case 'md':
|
|
31748
|
+
return 16;
|
|
31749
|
+
|
|
31750
|
+
case 'lg':
|
|
31751
|
+
return 118;
|
|
31752
|
+
|
|
31753
|
+
default:
|
|
31754
|
+
return 12;
|
|
31755
|
+
}
|
|
31756
|
+
}
|
|
31757
|
+
|
|
31758
|
+
return jsxRuntime.jsx(ReactSkeleton.SkeletonTheme, __assign({
|
|
31759
|
+
width: width,
|
|
31760
|
+
borderRadius: size === 'lg' ? 0 : 20,
|
|
31761
|
+
baseColor: getBaseColor(color),
|
|
31762
|
+
highlightColor: "#FAFAFA"
|
|
31763
|
+
}, {
|
|
31764
|
+
children: jsxRuntime.jsx(SkeletonContainer, {
|
|
31765
|
+
children: jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
31766
|
+
height: getSize(size),
|
|
31767
|
+
count: count,
|
|
31768
|
+
circle: circle
|
|
31769
|
+
}, void 0)
|
|
31770
|
+
}, void 0)
|
|
31771
|
+
}), void 0);
|
|
31772
|
+
};
|
|
31773
|
+
|
|
31774
|
+
var Card = styled('div', {
|
|
31775
|
+
padding: 40,
|
|
31776
|
+
borderRadius: 8,
|
|
31777
|
+
background: '$bgWhite',
|
|
31778
|
+
boxShadow: '0px 7px 15px rgba(0, 0, 0, 0.07)',
|
|
31779
|
+
position: 'relative'
|
|
31780
|
+
});
|
|
31781
|
+
var Space = styled('div', {
|
|
31782
|
+
height: 8,
|
|
31783
|
+
variants: {
|
|
31784
|
+
size: {
|
|
31785
|
+
sm: {
|
|
31786
|
+
height: 8
|
|
31787
|
+
},
|
|
31788
|
+
md: {
|
|
31789
|
+
height: 18
|
|
31790
|
+
}
|
|
31791
|
+
}
|
|
31792
|
+
}
|
|
31793
|
+
});
|
|
31794
|
+
function Skeleton() {
|
|
31795
|
+
var isDesktop = useMediaQuery('(min-width: 767px)');
|
|
31796
|
+
|
|
31797
|
+
if (isDesktop) {
|
|
31798
|
+
return jsxRuntime.jsxs(Grid, __assign({
|
|
31799
|
+
columns: 6,
|
|
31800
|
+
gapY: 5
|
|
31801
|
+
}, {
|
|
31802
|
+
children: [jsxRuntime.jsx(GridItem, __assign({
|
|
31803
|
+
colSpan: 6
|
|
31804
|
+
}, {
|
|
31805
|
+
children: jsxRuntime.jsxs(Grid, __assign({
|
|
31806
|
+
columns: 6,
|
|
31807
|
+
gapX: 2
|
|
31808
|
+
}, {
|
|
31809
|
+
children: [jsxRuntime.jsx(GridItem, __assign({
|
|
31810
|
+
colSpan: 2
|
|
31811
|
+
}, {
|
|
31812
|
+
children: jsxRuntime.jsxs(Card, {
|
|
31813
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
31814
|
+
size: "md",
|
|
31815
|
+
color: "primary"
|
|
31816
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
31817
|
+
size: "md"
|
|
31818
|
+
}, void 0), jsxRuntime.jsxs(Box, {
|
|
31819
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
31820
|
+
width: "60%"
|
|
31821
|
+
}, void 0)]
|
|
31822
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
31823
|
+
size: "md"
|
|
31824
|
+
}, void 0), jsxRuntime.jsxs(Box, {
|
|
31825
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
31826
|
+
width: "60%"
|
|
31827
|
+
}, void 0)]
|
|
31828
|
+
}, void 0)]
|
|
31829
|
+
}, void 0)
|
|
31830
|
+
}), void 0), jsxRuntime.jsx(GridItem, __assign({
|
|
31831
|
+
colSpan: 2
|
|
31832
|
+
}, {
|
|
31833
|
+
children: jsxRuntime.jsxs(Card, {
|
|
31834
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
31835
|
+
size: "md",
|
|
31836
|
+
color: "primary"
|
|
31837
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
31838
|
+
size: "md"
|
|
31839
|
+
}, void 0), jsxRuntime.jsxs(Box, {
|
|
31840
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
31841
|
+
width: "60%"
|
|
31842
|
+
}, void 0)]
|
|
31843
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
31844
|
+
size: "md"
|
|
31845
|
+
}, void 0), jsxRuntime.jsxs(Box, {
|
|
31846
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
31847
|
+
width: "60%"
|
|
31848
|
+
}, void 0)]
|
|
31849
|
+
}, void 0)]
|
|
31850
|
+
}, void 0)
|
|
31851
|
+
}), void 0), jsxRuntime.jsx(GridItem, __assign({
|
|
31852
|
+
colSpan: 2
|
|
31853
|
+
}, {
|
|
31854
|
+
children: jsxRuntime.jsxs(Card, {
|
|
31855
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
31856
|
+
size: "md",
|
|
31857
|
+
color: "primary"
|
|
31858
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
31859
|
+
size: "md"
|
|
31860
|
+
}, void 0), jsxRuntime.jsxs(Box, {
|
|
31861
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
31862
|
+
width: "60%"
|
|
31863
|
+
}, void 0)]
|
|
31864
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
31865
|
+
size: "md"
|
|
31866
|
+
}, void 0), jsxRuntime.jsxs(Box, {
|
|
31867
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
31868
|
+
width: "60%"
|
|
31869
|
+
}, void 0)]
|
|
31870
|
+
}, void 0)]
|
|
31871
|
+
}, void 0)
|
|
31872
|
+
}), void 0)]
|
|
31873
|
+
}), void 0)
|
|
31874
|
+
}), void 0), jsxRuntime.jsx(GridItem, __assign({
|
|
31875
|
+
colSpan: 6
|
|
31876
|
+
}, {
|
|
31877
|
+
children: jsxRuntime.jsx(Card, {
|
|
31878
|
+
children: jsxRuntime.jsxs(Grid, __assign({
|
|
31879
|
+
columns: 6,
|
|
31880
|
+
gapY: 5
|
|
31881
|
+
}, {
|
|
31882
|
+
children: [jsxRuntime.jsx(GridItem, __assign({
|
|
31883
|
+
colSpan: 6
|
|
31884
|
+
}, {
|
|
31885
|
+
children: jsxRuntime.jsxs(Grid, __assign({
|
|
31886
|
+
columns: 6,
|
|
31887
|
+
gapX: 2
|
|
31888
|
+
}, {
|
|
31889
|
+
children: [jsxRuntime.jsxs(GridItem, __assign({
|
|
31890
|
+
colSpan: 2
|
|
31891
|
+
}, {
|
|
31892
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
31893
|
+
size: "lg"
|
|
31894
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
31895
|
+
size: "md"
|
|
31896
|
+
}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
31897
|
+
size: "md",
|
|
31898
|
+
color: "primary",
|
|
31899
|
+
width: "85%"
|
|
31900
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
31901
|
+
size: "md"
|
|
31902
|
+
}, void 0), jsxRuntime.jsxs(Box, {
|
|
31903
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
31904
|
+
width: "85%"
|
|
31905
|
+
}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
31906
|
+
width: "60%"
|
|
31907
|
+
}, void 0)]
|
|
31908
|
+
}, void 0)]
|
|
31909
|
+
}), void 0), jsxRuntime.jsxs(GridItem, __assign({
|
|
31910
|
+
colSpan: 2
|
|
31911
|
+
}, {
|
|
31912
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
31913
|
+
size: "lg"
|
|
31914
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
31915
|
+
size: "md"
|
|
31916
|
+
}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
31917
|
+
size: "md",
|
|
31918
|
+
color: "primary",
|
|
31919
|
+
width: "85%"
|
|
31920
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
31921
|
+
size: "md"
|
|
31922
|
+
}, void 0), jsxRuntime.jsxs(Box, {
|
|
31923
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
31924
|
+
width: "85%"
|
|
31925
|
+
}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
31926
|
+
width: "60%"
|
|
31927
|
+
}, void 0)]
|
|
31928
|
+
}, void 0)]
|
|
31929
|
+
}), void 0), jsxRuntime.jsxs(GridItem, __assign({
|
|
31930
|
+
colSpan: 2
|
|
31931
|
+
}, {
|
|
31932
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
31933
|
+
size: "lg"
|
|
31934
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
31935
|
+
size: "md"
|
|
31936
|
+
}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
31937
|
+
size: "md",
|
|
31938
|
+
color: "primary",
|
|
31939
|
+
width: "85%"
|
|
31940
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
31941
|
+
size: "md"
|
|
31942
|
+
}, void 0), jsxRuntime.jsxs(Box, {
|
|
31943
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
31944
|
+
width: "85%"
|
|
31945
|
+
}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
31946
|
+
width: "60%"
|
|
31947
|
+
}, void 0)]
|
|
31948
|
+
}, void 0)]
|
|
31949
|
+
}), void 0)]
|
|
31950
|
+
}), void 0)
|
|
31951
|
+
}), void 0), jsxRuntime.jsxs(GridItem, __assign({
|
|
31952
|
+
colSpan: 6
|
|
31953
|
+
}, {
|
|
31954
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
31955
|
+
width: "50%"
|
|
31956
|
+
}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsxs(ReactSkeleton.SkeletonTheme, __assign({
|
|
31957
|
+
inline: true,
|
|
31958
|
+
borderRadius: 20,
|
|
31959
|
+
baseColor: colors$4.gray150,
|
|
31960
|
+
highlightColor: "#FAFAFA"
|
|
31961
|
+
}, {
|
|
31962
|
+
children: [jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
31963
|
+
style: {
|
|
31964
|
+
marginRight: 8
|
|
31965
|
+
},
|
|
31966
|
+
height: 12,
|
|
31967
|
+
width: 12,
|
|
31968
|
+
circle: true
|
|
31969
|
+
}, void 0), jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
31970
|
+
height: 12,
|
|
31971
|
+
width: "95%"
|
|
31972
|
+
}, void 0)]
|
|
31973
|
+
}), void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsxs(ReactSkeleton.SkeletonTheme, __assign({
|
|
31974
|
+
inline: true,
|
|
31975
|
+
borderRadius: 20,
|
|
31976
|
+
baseColor: colors$4.gray150,
|
|
31977
|
+
highlightColor: "#FAFAFA"
|
|
31978
|
+
}, {
|
|
31979
|
+
children: [jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
31980
|
+
style: {
|
|
31981
|
+
marginRight: 8
|
|
31982
|
+
},
|
|
31983
|
+
height: 12,
|
|
31984
|
+
width: 12,
|
|
31985
|
+
circle: true
|
|
31986
|
+
}, void 0), jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
31987
|
+
height: 12,
|
|
31988
|
+
width: "95%"
|
|
31989
|
+
}, void 0)]
|
|
31990
|
+
}), void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsxs(ReactSkeleton.SkeletonTheme, __assign({
|
|
31991
|
+
inline: true,
|
|
31992
|
+
borderRadius: 20,
|
|
31993
|
+
baseColor: colors$4.gray150,
|
|
31994
|
+
highlightColor: "#FAFAFA"
|
|
31995
|
+
}, {
|
|
31996
|
+
children: [jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
31997
|
+
style: {
|
|
31998
|
+
marginRight: 8
|
|
31999
|
+
},
|
|
32000
|
+
height: 12,
|
|
32001
|
+
width: 12,
|
|
32002
|
+
circle: true
|
|
32003
|
+
}, void 0), jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
32004
|
+
height: 12,
|
|
32005
|
+
width: "95%"
|
|
32006
|
+
}, void 0)]
|
|
32007
|
+
}), void 0)]
|
|
32008
|
+
}), void 0)]
|
|
32009
|
+
}), void 0)
|
|
32010
|
+
}, void 0)
|
|
32011
|
+
}), void 0)]
|
|
32012
|
+
}), void 0);
|
|
32013
|
+
} else {
|
|
32014
|
+
return jsxRuntime.jsxs(Grid, __assign({
|
|
32015
|
+
columns: 6,
|
|
32016
|
+
gapY: 4
|
|
32017
|
+
}, {
|
|
32018
|
+
children: [jsxRuntime.jsx(GridItem, __assign({
|
|
32019
|
+
colSpan: 6
|
|
32020
|
+
}, {
|
|
32021
|
+
children: jsxRuntime.jsxs(Card, {
|
|
32022
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
32023
|
+
size: "md",
|
|
32024
|
+
color: "primary"
|
|
32025
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
32026
|
+
size: "md"
|
|
32027
|
+
}, void 0), jsxRuntime.jsxs(Box, {
|
|
32028
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
32029
|
+
width: "60%"
|
|
32030
|
+
}, void 0)]
|
|
32031
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
32032
|
+
size: "md"
|
|
32033
|
+
}, void 0), jsxRuntime.jsxs(Box, {
|
|
32034
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
32035
|
+
width: "60%"
|
|
32036
|
+
}, void 0)]
|
|
32037
|
+
}, void 0)]
|
|
32038
|
+
}, void 0)
|
|
32039
|
+
}), void 0), jsxRuntime.jsx(GridItem, __assign({
|
|
32040
|
+
colSpan: 6
|
|
32041
|
+
}, {
|
|
32042
|
+
children: jsxRuntime.jsx(Card, {
|
|
32043
|
+
children: jsxRuntime.jsxs(Grid, {
|
|
32044
|
+
children: [jsxRuntime.jsxs(GridItem, __assign({
|
|
32045
|
+
colSpan: 6
|
|
32046
|
+
}, {
|
|
32047
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
32048
|
+
size: "lg"
|
|
32049
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
32050
|
+
size: "md"
|
|
32051
|
+
}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
32052
|
+
size: "md",
|
|
32053
|
+
color: "primary",
|
|
32054
|
+
width: "85%"
|
|
32055
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
32056
|
+
size: "md"
|
|
32057
|
+
}, void 0), jsxRuntime.jsxs(Box, {
|
|
32058
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
32059
|
+
width: "85%"
|
|
32060
|
+
}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsx(StyledSkeleton, {
|
|
32061
|
+
width: "60%"
|
|
32062
|
+
}, void 0)]
|
|
32063
|
+
}, void 0), jsxRuntime.jsx(Space, {
|
|
32064
|
+
size: "md"
|
|
32065
|
+
}, void 0)]
|
|
32066
|
+
}), void 0), jsxRuntime.jsxs(GridItem, __assign({
|
|
32067
|
+
colSpan: 6
|
|
32068
|
+
}, {
|
|
32069
|
+
children: [jsxRuntime.jsx(StyledSkeleton, {
|
|
32070
|
+
width: "50%"
|
|
32071
|
+
}, void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsxs(ReactSkeleton.SkeletonTheme, __assign({
|
|
32072
|
+
inline: true,
|
|
32073
|
+
borderRadius: 20,
|
|
32074
|
+
baseColor: colors$4.gray150,
|
|
32075
|
+
highlightColor: "#FAFAFA"
|
|
32076
|
+
}, {
|
|
32077
|
+
children: [jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
32078
|
+
style: {
|
|
32079
|
+
marginRight: 8
|
|
32080
|
+
},
|
|
32081
|
+
height: 12,
|
|
32082
|
+
width: 12,
|
|
32083
|
+
circle: true
|
|
32084
|
+
}, void 0), jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
32085
|
+
height: 12,
|
|
32086
|
+
width: "85%"
|
|
32087
|
+
}, void 0)]
|
|
32088
|
+
}), void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsxs(ReactSkeleton.SkeletonTheme, __assign({
|
|
32089
|
+
inline: true,
|
|
32090
|
+
borderRadius: 20,
|
|
32091
|
+
baseColor: colors$4.gray150,
|
|
32092
|
+
highlightColor: "#FAFAFA"
|
|
32093
|
+
}, {
|
|
32094
|
+
children: [jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
32095
|
+
style: {
|
|
32096
|
+
marginRight: 8
|
|
32097
|
+
},
|
|
32098
|
+
height: 12,
|
|
32099
|
+
width: 12,
|
|
32100
|
+
circle: true
|
|
32101
|
+
}, void 0), jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
32102
|
+
height: 12,
|
|
32103
|
+
width: "85%"
|
|
32104
|
+
}, void 0)]
|
|
32105
|
+
}), void 0), jsxRuntime.jsx(Space, {}, void 0), jsxRuntime.jsxs(ReactSkeleton.SkeletonTheme, __assign({
|
|
32106
|
+
inline: true,
|
|
32107
|
+
borderRadius: 20,
|
|
32108
|
+
baseColor: colors$4.gray150,
|
|
32109
|
+
highlightColor: "#FAFAFA"
|
|
32110
|
+
}, {
|
|
32111
|
+
children: [jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
32112
|
+
style: {
|
|
32113
|
+
marginRight: 8
|
|
32114
|
+
},
|
|
32115
|
+
height: 12,
|
|
32116
|
+
width: 12,
|
|
32117
|
+
circle: true
|
|
32118
|
+
}, void 0), jsxRuntime.jsx(ReactSkeleton__default["default"], {
|
|
32119
|
+
height: 12,
|
|
32120
|
+
width: "85%"
|
|
32121
|
+
}, void 0)]
|
|
32122
|
+
}), void 0)]
|
|
32123
|
+
}), void 0)]
|
|
32124
|
+
}, void 0)
|
|
32125
|
+
}, void 0)
|
|
32126
|
+
}), void 0)]
|
|
32127
|
+
}), void 0);
|
|
32128
|
+
}
|
|
32129
|
+
}
|
|
32130
|
+
|
|
32127
32131
|
var _jsxFileName = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\colors\\Colors.js";
|
|
32128
32132
|
const StyledPaper = styled(Paper, {
|
|
32129
32133
|
borderRadius: '10px 10px 0 0',
|
|
@@ -33660,7 +33664,7 @@
|
|
|
33660
33664
|
exports.ButtonGroup = ButtonGroup$1;
|
|
33661
33665
|
exports.ButtonGroupItem = ButtonGroupItem;
|
|
33662
33666
|
exports.ButtonPrimitive = ButtonPrimitive;
|
|
33663
|
-
exports.Card = Card;
|
|
33667
|
+
exports.Card = Card$1;
|
|
33664
33668
|
exports.CardComponent = CardComponent;
|
|
33665
33669
|
exports.CardLineColor = CardLineColor;
|
|
33666
33670
|
exports.CheckboxGroup = CheckboxGroup;
|