@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.esm.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { useState,
|
|
2
|
+
import React__default, { useState, createContext, useContext, useEffect, useRef, createElement as createElement$2, forwardRef, cloneElement, useLayoutEffect, useCallback, useReducer } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { createStitches, styled as styled$1 } from '@stitches/react';
|
|
5
5
|
import { foundations } from '@majoo-ui/core';
|
|
6
6
|
import { CloseOutline, UserFilled, CircleQuestionOutline, SearchOutline, CloseFilled, CircleInfoOutline, CaretDownOutline, CirclePlusOutline, MinusOutline, PlusOutline, ChevronLgLeftOutline, ChevronLgRightOutline, ChevronDownOutline, ChevronLeftOutline, ChevronRightOutline, ChevronUpOutline, TimeOutline, CalendarOutline, ArrowLeftOutline, ArrowRightOutline, EllipsisHorizontalOutline, EyeOutline, UploadOutline, ImageOutline, ChevronUpDownOutline, CheckFilled, RemoveOutline, LocationOutline } from '@majoo-ui/icons';
|
|
7
7
|
import { Transition } from 'react-transition-group';
|
|
8
|
-
import {
|
|
9
|
-
import ReactSkeleton, { SkeletonTheme } from 'react-loading-skeleton';
|
|
8
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
9
|
import { Portal } from '@majoo-ui/helpers';
|
|
11
10
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
12
11
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
@@ -44,6 +43,8 @@ import { ResponsiveContainer, LineChart as LineChart$1, XAxis, YAxis, CartesianG
|
|
|
44
43
|
import { EditorState } from 'draft-js';
|
|
45
44
|
import { Editor } from 'react-draft-wysiwyg';
|
|
46
45
|
import { ContextMenuTrigger as ContextMenuTrigger$1, ContextMenu as ContextMenu$1, MenuItem } from 'react-contextmenu';
|
|
46
|
+
import ReactSkeleton, { SkeletonTheme } from 'react-loading-skeleton';
|
|
47
|
+
import 'react-loading-skeleton/dist/skeleton.css';
|
|
47
48
|
import ReactCrop, { centerCrop, makeAspectCrop } from 'react-image-crop';
|
|
48
49
|
import imageCompressionComponent from 'browser-image-compression';
|
|
49
50
|
import { useSticky } from 'react-table-sticky';
|
|
@@ -2498,429 +2499,7 @@ GridItem.propTypes = {
|
|
|
2498
2499
|
};
|
|
2499
2500
|
GridItem.displayName = 'Grid Item';
|
|
2500
2501
|
|
|
2501
|
-
|
|
2502
|
-
const [matches, setMatches] = useState(false);
|
|
2503
|
-
useEffect(() => {
|
|
2504
|
-
const media = window.matchMedia(query);
|
|
2505
|
-
|
|
2506
|
-
if (media.matches !== matches) {
|
|
2507
|
-
setMatches(media.matches);
|
|
2508
|
-
}
|
|
2509
|
-
|
|
2510
|
-
const listener = () => {
|
|
2511
|
-
setMatches(media.matches);
|
|
2512
|
-
};
|
|
2513
|
-
|
|
2514
|
-
media.addEventListener('change', listener);
|
|
2515
|
-
return () => media.removeEventListener('change', listener);
|
|
2516
|
-
}, [matches, query]);
|
|
2517
|
-
return matches;
|
|
2518
|
-
}
|
|
2519
|
-
|
|
2520
|
-
const StyledSkeleton = props => {
|
|
2521
|
-
const {
|
|
2522
|
-
color,
|
|
2523
|
-
count,
|
|
2524
|
-
width,
|
|
2525
|
-
size,
|
|
2526
|
-
circle
|
|
2527
|
-
} = props;
|
|
2528
|
-
|
|
2529
|
-
function getBaseColor(color) {
|
|
2530
|
-
switch (color) {
|
|
2531
|
-
case 'primary':
|
|
2532
|
-
return colors$4.gray300;
|
|
2533
|
-
|
|
2534
|
-
default:
|
|
2535
|
-
return colors$4.gray150;
|
|
2536
|
-
}
|
|
2537
|
-
}
|
|
2538
|
-
|
|
2539
|
-
function getSize(size) {
|
|
2540
|
-
switch (size) {
|
|
2541
|
-
case 'md':
|
|
2542
|
-
return 16;
|
|
2543
|
-
|
|
2544
|
-
case 'lg':
|
|
2545
|
-
return 118;
|
|
2546
|
-
|
|
2547
|
-
default:
|
|
2548
|
-
return 12;
|
|
2549
|
-
}
|
|
2550
|
-
}
|
|
2551
|
-
|
|
2552
|
-
return jsx(SkeletonTheme, Object.assign({
|
|
2553
|
-
width: width,
|
|
2554
|
-
borderRadius: size === 'lg' ? 0 : 20,
|
|
2555
|
-
baseColor: getBaseColor(color),
|
|
2556
|
-
highlightColor: "#FAFAFA"
|
|
2557
|
-
}, {
|
|
2558
|
-
children: jsx(ReactSkeleton, {
|
|
2559
|
-
height: getSize(size),
|
|
2560
|
-
count: count,
|
|
2561
|
-
circle: circle
|
|
2562
|
-
}, void 0)
|
|
2563
|
-
}), void 0);
|
|
2564
|
-
};
|
|
2565
|
-
|
|
2566
|
-
const Card$1 = styled('div', {
|
|
2567
|
-
padding: 40,
|
|
2568
|
-
borderRadius: 8,
|
|
2569
|
-
background: '$bgWhite',
|
|
2570
|
-
boxShadow: '0px 7px 15px rgba(0, 0, 0, 0.07)',
|
|
2571
|
-
position: 'relative'
|
|
2572
|
-
});
|
|
2573
|
-
const Space = styled('div', {
|
|
2574
|
-
height: 8,
|
|
2575
|
-
variants: {
|
|
2576
|
-
size: {
|
|
2577
|
-
sm: {
|
|
2578
|
-
height: 8
|
|
2579
|
-
},
|
|
2580
|
-
md: {
|
|
2581
|
-
height: 18
|
|
2582
|
-
}
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
});
|
|
2586
|
-
function Skeleton() {
|
|
2587
|
-
const isDesktop = useMediaQuery('(min-width: 767px)');
|
|
2588
|
-
|
|
2589
|
-
if (isDesktop) {
|
|
2590
|
-
return jsxs(Grid, Object.assign({
|
|
2591
|
-
columns: 6,
|
|
2592
|
-
gapY: 5
|
|
2593
|
-
}, {
|
|
2594
|
-
children: [jsx(GridItem, Object.assign({
|
|
2595
|
-
colSpan: 6
|
|
2596
|
-
}, {
|
|
2597
|
-
children: jsxs(Grid, Object.assign({
|
|
2598
|
-
columns: 6,
|
|
2599
|
-
gapX: 2
|
|
2600
|
-
}, {
|
|
2601
|
-
children: [jsx(GridItem, Object.assign({
|
|
2602
|
-
colSpan: 2
|
|
2603
|
-
}, {
|
|
2604
|
-
children: jsxs(Card$1, {
|
|
2605
|
-
children: [jsx(StyledSkeleton, {
|
|
2606
|
-
size: "md",
|
|
2607
|
-
color: "primary"
|
|
2608
|
-
}, void 0), jsx(Space, {
|
|
2609
|
-
size: "md"
|
|
2610
|
-
}, void 0), jsxs(Box, {
|
|
2611
|
-
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
2612
|
-
width: "60%"
|
|
2613
|
-
}, void 0)]
|
|
2614
|
-
}, void 0), jsx(Space, {
|
|
2615
|
-
size: "md"
|
|
2616
|
-
}, void 0), jsxs(Box, {
|
|
2617
|
-
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
2618
|
-
width: "60%"
|
|
2619
|
-
}, void 0)]
|
|
2620
|
-
}, void 0)]
|
|
2621
|
-
}, void 0)
|
|
2622
|
-
}), void 0), jsx(GridItem, Object.assign({
|
|
2623
|
-
colSpan: 2
|
|
2624
|
-
}, {
|
|
2625
|
-
children: jsxs(Card$1, {
|
|
2626
|
-
children: [jsx(StyledSkeleton, {
|
|
2627
|
-
size: "md",
|
|
2628
|
-
color: "primary"
|
|
2629
|
-
}, void 0), jsx(Space, {
|
|
2630
|
-
size: "md"
|
|
2631
|
-
}, void 0), jsxs(Box, {
|
|
2632
|
-
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
2633
|
-
width: "60%"
|
|
2634
|
-
}, void 0)]
|
|
2635
|
-
}, void 0), jsx(Space, {
|
|
2636
|
-
size: "md"
|
|
2637
|
-
}, void 0), jsxs(Box, {
|
|
2638
|
-
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
2639
|
-
width: "60%"
|
|
2640
|
-
}, void 0)]
|
|
2641
|
-
}, void 0)]
|
|
2642
|
-
}, void 0)
|
|
2643
|
-
}), void 0), jsx(GridItem, Object.assign({
|
|
2644
|
-
colSpan: 2
|
|
2645
|
-
}, {
|
|
2646
|
-
children: jsxs(Card$1, {
|
|
2647
|
-
children: [jsx(StyledSkeleton, {
|
|
2648
|
-
size: "md",
|
|
2649
|
-
color: "primary"
|
|
2650
|
-
}, void 0), jsx(Space, {
|
|
2651
|
-
size: "md"
|
|
2652
|
-
}, void 0), jsxs(Box, {
|
|
2653
|
-
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
2654
|
-
width: "60%"
|
|
2655
|
-
}, void 0)]
|
|
2656
|
-
}, void 0), jsx(Space, {
|
|
2657
|
-
size: "md"
|
|
2658
|
-
}, void 0), jsxs(Box, {
|
|
2659
|
-
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
2660
|
-
width: "60%"
|
|
2661
|
-
}, void 0)]
|
|
2662
|
-
}, void 0)]
|
|
2663
|
-
}, void 0)
|
|
2664
|
-
}), void 0)]
|
|
2665
|
-
}), void 0)
|
|
2666
|
-
}), void 0), jsx(GridItem, Object.assign({
|
|
2667
|
-
colSpan: 6
|
|
2668
|
-
}, {
|
|
2669
|
-
children: jsx(Card$1, {
|
|
2670
|
-
children: jsxs(Grid, Object.assign({
|
|
2671
|
-
columns: 6,
|
|
2672
|
-
gapY: 5
|
|
2673
|
-
}, {
|
|
2674
|
-
children: [jsx(GridItem, Object.assign({
|
|
2675
|
-
colSpan: 6
|
|
2676
|
-
}, {
|
|
2677
|
-
children: jsxs(Grid, Object.assign({
|
|
2678
|
-
columns: 6,
|
|
2679
|
-
gapX: 2
|
|
2680
|
-
}, {
|
|
2681
|
-
children: [jsxs(GridItem, Object.assign({
|
|
2682
|
-
colSpan: 2
|
|
2683
|
-
}, {
|
|
2684
|
-
children: [jsx(StyledSkeleton, {
|
|
2685
|
-
size: "lg"
|
|
2686
|
-
}, void 0), jsx(Space, {
|
|
2687
|
-
size: "md"
|
|
2688
|
-
}, void 0), jsx(StyledSkeleton, {
|
|
2689
|
-
size: "md",
|
|
2690
|
-
color: "primary",
|
|
2691
|
-
width: "85%"
|
|
2692
|
-
}, void 0), jsx(Space, {
|
|
2693
|
-
size: "md"
|
|
2694
|
-
}, void 0), jsxs(Box, {
|
|
2695
|
-
children: [jsx(StyledSkeleton, {
|
|
2696
|
-
width: "85%"
|
|
2697
|
-
}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
2698
|
-
width: "60%"
|
|
2699
|
-
}, void 0)]
|
|
2700
|
-
}, void 0)]
|
|
2701
|
-
}), void 0), jsxs(GridItem, Object.assign({
|
|
2702
|
-
colSpan: 2
|
|
2703
|
-
}, {
|
|
2704
|
-
children: [jsx(StyledSkeleton, {
|
|
2705
|
-
size: "lg"
|
|
2706
|
-
}, void 0), jsx(Space, {
|
|
2707
|
-
size: "md"
|
|
2708
|
-
}, void 0), jsx(StyledSkeleton, {
|
|
2709
|
-
size: "md",
|
|
2710
|
-
color: "primary",
|
|
2711
|
-
width: "85%"
|
|
2712
|
-
}, void 0), jsx(Space, {
|
|
2713
|
-
size: "md"
|
|
2714
|
-
}, void 0), jsxs(Box, {
|
|
2715
|
-
children: [jsx(StyledSkeleton, {
|
|
2716
|
-
width: "85%"
|
|
2717
|
-
}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
2718
|
-
width: "60%"
|
|
2719
|
-
}, void 0)]
|
|
2720
|
-
}, void 0)]
|
|
2721
|
-
}), void 0), jsxs(GridItem, Object.assign({
|
|
2722
|
-
colSpan: 2
|
|
2723
|
-
}, {
|
|
2724
|
-
children: [jsx(StyledSkeleton, {
|
|
2725
|
-
size: "lg"
|
|
2726
|
-
}, void 0), jsx(Space, {
|
|
2727
|
-
size: "md"
|
|
2728
|
-
}, void 0), jsx(StyledSkeleton, {
|
|
2729
|
-
size: "md",
|
|
2730
|
-
color: "primary",
|
|
2731
|
-
width: "85%"
|
|
2732
|
-
}, void 0), jsx(Space, {
|
|
2733
|
-
size: "md"
|
|
2734
|
-
}, void 0), jsxs(Box, {
|
|
2735
|
-
children: [jsx(StyledSkeleton, {
|
|
2736
|
-
width: "85%"
|
|
2737
|
-
}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
2738
|
-
width: "60%"
|
|
2739
|
-
}, void 0)]
|
|
2740
|
-
}, void 0)]
|
|
2741
|
-
}), void 0)]
|
|
2742
|
-
}), void 0)
|
|
2743
|
-
}), void 0), jsxs(GridItem, Object.assign({
|
|
2744
|
-
colSpan: 6
|
|
2745
|
-
}, {
|
|
2746
|
-
children: [jsx(StyledSkeleton, {
|
|
2747
|
-
width: "50%"
|
|
2748
|
-
}, void 0), jsx(Space, {}, void 0), jsxs(SkeletonTheme, Object.assign({
|
|
2749
|
-
inline: true,
|
|
2750
|
-
borderRadius: 20,
|
|
2751
|
-
baseColor: colors$4.gray150,
|
|
2752
|
-
highlightColor: "#FAFAFA"
|
|
2753
|
-
}, {
|
|
2754
|
-
children: [jsx(ReactSkeleton, {
|
|
2755
|
-
style: {
|
|
2756
|
-
marginRight: 8
|
|
2757
|
-
},
|
|
2758
|
-
height: 12,
|
|
2759
|
-
width: 12,
|
|
2760
|
-
circle: true
|
|
2761
|
-
}, void 0), jsx(ReactSkeleton, {
|
|
2762
|
-
height: 12,
|
|
2763
|
-
width: "95%"
|
|
2764
|
-
}, void 0)]
|
|
2765
|
-
}), void 0), jsx(Space, {}, void 0), jsxs(SkeletonTheme, Object.assign({
|
|
2766
|
-
inline: true,
|
|
2767
|
-
borderRadius: 20,
|
|
2768
|
-
baseColor: colors$4.gray150,
|
|
2769
|
-
highlightColor: "#FAFAFA"
|
|
2770
|
-
}, {
|
|
2771
|
-
children: [jsx(ReactSkeleton, {
|
|
2772
|
-
style: {
|
|
2773
|
-
marginRight: 8
|
|
2774
|
-
},
|
|
2775
|
-
height: 12,
|
|
2776
|
-
width: 12,
|
|
2777
|
-
circle: true
|
|
2778
|
-
}, void 0), jsx(ReactSkeleton, {
|
|
2779
|
-
height: 12,
|
|
2780
|
-
width: "95%"
|
|
2781
|
-
}, void 0)]
|
|
2782
|
-
}), void 0), jsx(Space, {}, void 0), jsxs(SkeletonTheme, Object.assign({
|
|
2783
|
-
inline: true,
|
|
2784
|
-
borderRadius: 20,
|
|
2785
|
-
baseColor: colors$4.gray150,
|
|
2786
|
-
highlightColor: "#FAFAFA"
|
|
2787
|
-
}, {
|
|
2788
|
-
children: [jsx(ReactSkeleton, {
|
|
2789
|
-
style: {
|
|
2790
|
-
marginRight: 8
|
|
2791
|
-
},
|
|
2792
|
-
height: 12,
|
|
2793
|
-
width: 12,
|
|
2794
|
-
circle: true
|
|
2795
|
-
}, void 0), jsx(ReactSkeleton, {
|
|
2796
|
-
height: 12,
|
|
2797
|
-
width: "95%"
|
|
2798
|
-
}, void 0)]
|
|
2799
|
-
}), void 0)]
|
|
2800
|
-
}), void 0)]
|
|
2801
|
-
}), void 0)
|
|
2802
|
-
}, void 0)
|
|
2803
|
-
}), void 0)]
|
|
2804
|
-
}), void 0);
|
|
2805
|
-
} else {
|
|
2806
|
-
return jsxs(Grid, Object.assign({
|
|
2807
|
-
columns: 6,
|
|
2808
|
-
gapY: 4
|
|
2809
|
-
}, {
|
|
2810
|
-
children: [jsx(GridItem, Object.assign({
|
|
2811
|
-
colSpan: 6
|
|
2812
|
-
}, {
|
|
2813
|
-
children: jsxs(Card$1, {
|
|
2814
|
-
children: [jsx(StyledSkeleton, {
|
|
2815
|
-
size: "md",
|
|
2816
|
-
color: "primary"
|
|
2817
|
-
}, void 0), jsx(Space, {
|
|
2818
|
-
size: "md"
|
|
2819
|
-
}, void 0), jsxs(Box, {
|
|
2820
|
-
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
2821
|
-
width: "60%"
|
|
2822
|
-
}, void 0)]
|
|
2823
|
-
}, void 0), jsx(Space, {
|
|
2824
|
-
size: "md"
|
|
2825
|
-
}, void 0), jsxs(Box, {
|
|
2826
|
-
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
2827
|
-
width: "60%"
|
|
2828
|
-
}, void 0)]
|
|
2829
|
-
}, void 0)]
|
|
2830
|
-
}, void 0)
|
|
2831
|
-
}), void 0), jsx(GridItem, Object.assign({
|
|
2832
|
-
colSpan: 6
|
|
2833
|
-
}, {
|
|
2834
|
-
children: jsx(Card$1, {
|
|
2835
|
-
children: jsxs(Grid, {
|
|
2836
|
-
children: [jsxs(GridItem, Object.assign({
|
|
2837
|
-
colSpan: 6
|
|
2838
|
-
}, {
|
|
2839
|
-
children: [jsx(StyledSkeleton, {
|
|
2840
|
-
size: "lg"
|
|
2841
|
-
}, void 0), jsx(Space, {
|
|
2842
|
-
size: "md"
|
|
2843
|
-
}, void 0), jsx(StyledSkeleton, {
|
|
2844
|
-
size: "md",
|
|
2845
|
-
color: "primary",
|
|
2846
|
-
width: "85%"
|
|
2847
|
-
}, void 0), jsx(Space, {
|
|
2848
|
-
size: "md"
|
|
2849
|
-
}, void 0), jsxs(Box, {
|
|
2850
|
-
children: [jsx(StyledSkeleton, {
|
|
2851
|
-
width: "85%"
|
|
2852
|
-
}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
2853
|
-
width: "60%"
|
|
2854
|
-
}, void 0)]
|
|
2855
|
-
}, void 0), jsx(Space, {
|
|
2856
|
-
size: "md"
|
|
2857
|
-
}, void 0)]
|
|
2858
|
-
}), void 0), jsxs(GridItem, Object.assign({
|
|
2859
|
-
colSpan: 6
|
|
2860
|
-
}, {
|
|
2861
|
-
children: [jsx(StyledSkeleton, {
|
|
2862
|
-
width: "50%"
|
|
2863
|
-
}, void 0), jsx(Space, {}, void 0), jsxs(SkeletonTheme, Object.assign({
|
|
2864
|
-
inline: true,
|
|
2865
|
-
borderRadius: 20,
|
|
2866
|
-
baseColor: colors$4.gray150,
|
|
2867
|
-
highlightColor: "#FAFAFA"
|
|
2868
|
-
}, {
|
|
2869
|
-
children: [jsx(ReactSkeleton, {
|
|
2870
|
-
style: {
|
|
2871
|
-
marginRight: 8
|
|
2872
|
-
},
|
|
2873
|
-
height: 12,
|
|
2874
|
-
width: 12,
|
|
2875
|
-
circle: true
|
|
2876
|
-
}, void 0), jsx(ReactSkeleton, {
|
|
2877
|
-
height: 12,
|
|
2878
|
-
width: "85%"
|
|
2879
|
-
}, void 0)]
|
|
2880
|
-
}), void 0), jsx(Space, {}, void 0), jsxs(SkeletonTheme, Object.assign({
|
|
2881
|
-
inline: true,
|
|
2882
|
-
borderRadius: 20,
|
|
2883
|
-
baseColor: colors$4.gray150,
|
|
2884
|
-
highlightColor: "#FAFAFA"
|
|
2885
|
-
}, {
|
|
2886
|
-
children: [jsx(ReactSkeleton, {
|
|
2887
|
-
style: {
|
|
2888
|
-
marginRight: 8
|
|
2889
|
-
},
|
|
2890
|
-
height: 12,
|
|
2891
|
-
width: 12,
|
|
2892
|
-
circle: true
|
|
2893
|
-
}, void 0), jsx(ReactSkeleton, {
|
|
2894
|
-
height: 12,
|
|
2895
|
-
width: "85%"
|
|
2896
|
-
}, void 0)]
|
|
2897
|
-
}), void 0), jsx(Space, {}, void 0), jsxs(SkeletonTheme, Object.assign({
|
|
2898
|
-
inline: true,
|
|
2899
|
-
borderRadius: 20,
|
|
2900
|
-
baseColor: colors$4.gray150,
|
|
2901
|
-
highlightColor: "#FAFAFA"
|
|
2902
|
-
}, {
|
|
2903
|
-
children: [jsx(ReactSkeleton, {
|
|
2904
|
-
style: {
|
|
2905
|
-
marginRight: 8
|
|
2906
|
-
},
|
|
2907
|
-
height: 12,
|
|
2908
|
-
width: 12,
|
|
2909
|
-
circle: true
|
|
2910
|
-
}, void 0), jsx(ReactSkeleton, {
|
|
2911
|
-
height: 12,
|
|
2912
|
-
width: "85%"
|
|
2913
|
-
}, void 0)]
|
|
2914
|
-
}), void 0)]
|
|
2915
|
-
}), void 0)]
|
|
2916
|
-
}, void 0)
|
|
2917
|
-
}, void 0)
|
|
2918
|
-
}), void 0)]
|
|
2919
|
-
}), void 0);
|
|
2920
|
-
}
|
|
2921
|
-
}
|
|
2922
|
-
|
|
2923
|
-
const _excluded$z = ["children", "isCollapse", "css", "contentHeader", "isLoading"];
|
|
2502
|
+
const _excluded$z = ["children", "isCollapse", "css", "contentHeader"];
|
|
2924
2503
|
var _jsxFileName$_ = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\layout\\pageContainer\\PageContainer.js";
|
|
2925
2504
|
const StyledDiv$3 = styled(Flex$1, {
|
|
2926
2505
|
justifyContent: 'center',
|
|
@@ -2948,8 +2527,7 @@ const PageContainer = _ref => {
|
|
|
2948
2527
|
children,
|
|
2949
2528
|
isCollapse,
|
|
2950
2529
|
css,
|
|
2951
|
-
contentHeader
|
|
2952
|
-
isLoading
|
|
2530
|
+
contentHeader
|
|
2953
2531
|
} = _ref,
|
|
2954
2532
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
2955
2533
|
|
|
@@ -2962,17 +2540,10 @@ const PageContainer = _ref => {
|
|
|
2962
2540
|
__self: undefined,
|
|
2963
2541
|
__source: {
|
|
2964
2542
|
fileName: _jsxFileName$_,
|
|
2965
|
-
lineNumber:
|
|
2543
|
+
lineNumber: 28,
|
|
2966
2544
|
columnNumber: 5
|
|
2967
2545
|
}
|
|
2968
|
-
}),
|
|
2969
|
-
__self: undefined,
|
|
2970
|
-
__source: {
|
|
2971
|
-
fileName: _jsxFileName$_,
|
|
2972
|
-
lineNumber: 31,
|
|
2973
|
-
columnNumber: 9
|
|
2974
|
-
}
|
|
2975
|
-
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, contentHeader, children));
|
|
2546
|
+
}), contentHeader, children);
|
|
2976
2547
|
};
|
|
2977
2548
|
|
|
2978
2549
|
PageContainer.displayName = 'PageContainer';
|
|
@@ -4013,7 +3584,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
|
4013
3584
|
onClick: e => {
|
|
4014
3585
|
e.preventDefault();
|
|
4015
3586
|
e.stopPropagation();
|
|
4016
|
-
value
|
|
3587
|
+
value == null ? void 0 : value.onRemove();
|
|
4017
3588
|
},
|
|
4018
3589
|
__self: undefined,
|
|
4019
3590
|
__source: {
|
|
@@ -4090,7 +3661,7 @@ const SingleTagBanner = props => {
|
|
|
4090
3661
|
onClick: e => {
|
|
4091
3662
|
e.preventDefault();
|
|
4092
3663
|
e.stopPropagation();
|
|
4093
|
-
props
|
|
3664
|
+
props == null ? void 0 : props.onRemove();
|
|
4094
3665
|
},
|
|
4095
3666
|
closeCenter: !props.title && !props.link,
|
|
4096
3667
|
__self: undefined,
|
|
@@ -4643,7 +4214,7 @@ const StyledIcon$1 = styled('span', {
|
|
|
4643
4214
|
}
|
|
4644
4215
|
}
|
|
4645
4216
|
});
|
|
4646
|
-
const Card = _ref => {
|
|
4217
|
+
const Card$1 = _ref => {
|
|
4647
4218
|
let {
|
|
4648
4219
|
className,
|
|
4649
4220
|
children,
|
|
@@ -4706,7 +4277,7 @@ const Card = _ref => {
|
|
|
4706
4277
|
}
|
|
4707
4278
|
}, title)) : null, children);
|
|
4708
4279
|
};
|
|
4709
|
-
Card.propTypes = {
|
|
4280
|
+
Card$1.propTypes = {
|
|
4710
4281
|
className: PropTypes.string,
|
|
4711
4282
|
color: PropTypes.string,
|
|
4712
4283
|
shadow: PropTypes.bool,
|
|
@@ -4717,7 +4288,7 @@ Card.propTypes = {
|
|
|
4717
4288
|
textColor: PropTypes.string,
|
|
4718
4289
|
icon: PropTypes.element
|
|
4719
4290
|
};
|
|
4720
|
-
Card.defaultProps = {
|
|
4291
|
+
Card$1.defaultProps = {
|
|
4721
4292
|
className: '',
|
|
4722
4293
|
color: 'green',
|
|
4723
4294
|
shadow: false,
|
|
@@ -6132,7 +5703,7 @@ const Checkbox = _ref => {
|
|
|
6132
5703
|
const [isChecked, setChecked] = useState(false);
|
|
6133
5704
|
useEffect(() => {
|
|
6134
5705
|
const checkValue = context && context.checkedItems.includes(value) || checked || indeterminate;
|
|
6135
|
-
setChecked(checkValue
|
|
5706
|
+
setChecked(checkValue != null ? checkValue : false);
|
|
6136
5707
|
}, [checked, indeterminate, context]);
|
|
6137
5708
|
return /*#__PURE__*/React__default.createElement(StyledCheckbox, _extends({
|
|
6138
5709
|
id: id,
|
|
@@ -6741,7 +6312,7 @@ const InputTextArea = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
6741
6312
|
useEffect(() => {
|
|
6742
6313
|
if (textareaRef.current) {
|
|
6743
6314
|
textareaRef.current.style.height = '60px';
|
|
6744
|
-
const scrollHeight = textareaRef
|
|
6315
|
+
const scrollHeight = textareaRef == null ? void 0 : textareaRef.current.scrollHeight;
|
|
6745
6316
|
textareaRef.current.style.height = scrollHeight + 20 + 'px';
|
|
6746
6317
|
}
|
|
6747
6318
|
}, []);
|
|
@@ -6783,7 +6354,7 @@ const InputRadioContext = /*#__PURE__*/React__default.createContext();
|
|
|
6783
6354
|
var _jsxFileName$F = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\components\\form\\components\\InputRadio\\InputRadioGroup.js";
|
|
6784
6355
|
const RadioGroup = styled(RadioGroupPrimitive.Root, Flex$1);
|
|
6785
6356
|
function InputRadioGroup(props) {
|
|
6786
|
-
return (props
|
|
6357
|
+
return (props == null ? void 0 : props.children) && /*#__PURE__*/React__default.createElement(InputRadioContext.Provider, {
|
|
6787
6358
|
value: props,
|
|
6788
6359
|
__self: this,
|
|
6789
6360
|
__source: {
|
|
@@ -6798,7 +6369,7 @@ function InputRadioGroup(props) {
|
|
|
6798
6369
|
lineNumber: 14,
|
|
6799
6370
|
columnNumber: 9
|
|
6800
6371
|
}
|
|
6801
|
-
}), React__default.Children.map(props
|
|
6372
|
+
}), React__default.Children.map(props == null ? void 0 : props.children, child => /*#__PURE__*/React__default.cloneElement(child, {
|
|
6802
6373
|
style: Object.assign({}, child.props.style, {
|
|
6803
6374
|
opacity: 1
|
|
6804
6375
|
})
|
|
@@ -7012,7 +6583,7 @@ const InputRadio = _ref => {
|
|
|
7012
6583
|
value,
|
|
7013
6584
|
outlined
|
|
7014
6585
|
}) => {
|
|
7015
|
-
const checked = value
|
|
6586
|
+
const checked = value != null ? value : defaultValue;
|
|
7016
6587
|
return /*#__PURE__*/React__default.createElement(Container$8, {
|
|
7017
6588
|
direction: "column",
|
|
7018
6589
|
outlined: outlined,
|
|
@@ -7262,7 +6833,7 @@ const InputNumber = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
7262
6833
|
size: size,
|
|
7263
6834
|
isInvalid: isInvalid,
|
|
7264
6835
|
readOnly: readOnly,
|
|
7265
|
-
isReadOnly: readOnly && !(props
|
|
6836
|
+
isReadOnly: readOnly && !(props != null && props.inputGroup),
|
|
7266
6837
|
disabled: disabled
|
|
7267
6838
|
}, props, {
|
|
7268
6839
|
__self: undefined,
|
|
@@ -8078,18 +7649,18 @@ function TagsInput(_ref) {
|
|
|
8078
7649
|
const addTags = event => {
|
|
8079
7650
|
if (event.key === 'Enter' && event.target.value !== '' && max !== tags.length) {
|
|
8080
7651
|
if (tags.find(tag => tag.toLowerCase() === event.target.value.toLowerCase())) {
|
|
8081
|
-
onEnter
|
|
7652
|
+
onEnter == null ? void 0 : onEnter({
|
|
8082
7653
|
key: 'duplicate',
|
|
8083
7654
|
value: event.target.value
|
|
8084
7655
|
});
|
|
8085
7656
|
return;
|
|
8086
7657
|
}
|
|
8087
7658
|
|
|
8088
|
-
if (pattern && pattern
|
|
7659
|
+
if (pattern && pattern != null && pattern.regex) {
|
|
8089
7660
|
const regex = new RegExp(pattern.regex);
|
|
8090
7661
|
|
|
8091
7662
|
if (!regex.test(event.target.value)) {
|
|
8092
|
-
onEnter
|
|
7663
|
+
onEnter == null ? void 0 : onEnter({
|
|
8093
7664
|
key: 'error',
|
|
8094
7665
|
value: event.target.value
|
|
8095
7666
|
});
|
|
@@ -8099,7 +7670,7 @@ function TagsInput(_ref) {
|
|
|
8099
7670
|
}
|
|
8100
7671
|
|
|
8101
7672
|
setRegexError(false);
|
|
8102
|
-
onEnter
|
|
7673
|
+
onEnter == null ? void 0 : onEnter({
|
|
8103
7674
|
key: 'success',
|
|
8104
7675
|
value: event.target.value
|
|
8105
7676
|
});
|
|
@@ -8112,7 +7683,7 @@ function TagsInput(_ref) {
|
|
|
8112
7683
|
if (disabled || readOnly) {
|
|
8113
7684
|
return tags;
|
|
8114
7685
|
} else if (key === 'removeTag' || key === 'Backspace') {
|
|
8115
|
-
onRemoveItem
|
|
7686
|
+
onRemoveItem == null ? void 0 : onRemoveItem(tags[index]);
|
|
8116
7687
|
setTags([...tags.filter(tag => tags.indexOf(tag) !== index)]);
|
|
8117
7688
|
}
|
|
8118
7689
|
}; // const handleErrorMessage = () => {
|
|
@@ -8160,7 +7731,7 @@ function TagsInput(_ref) {
|
|
|
8160
7731
|
lineNumber: 180,
|
|
8161
7732
|
columnNumber: 9
|
|
8162
7733
|
}
|
|
8163
|
-
})), regexError && pattern && (pattern
|
|
7734
|
+
})), regexError && pattern && (pattern != null && pattern.errorMessage ? /*#__PURE__*/React__default.createElement(FormHelper, {
|
|
8164
7735
|
color: "red",
|
|
8165
7736
|
__self: this,
|
|
8166
7737
|
__source: {
|
|
@@ -9981,10 +9552,10 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9981
9552
|
return setItems(sortValue);
|
|
9982
9553
|
}
|
|
9983
9554
|
} else {
|
|
9984
|
-
let filterItems = option
|
|
9985
|
-
var _item$name, _item$name$toLowerCas
|
|
9555
|
+
let filterItems = option == null ? void 0 : option.filter(item => {
|
|
9556
|
+
var _item$name, _item$name$toLowerCas;
|
|
9986
9557
|
|
|
9987
|
-
return item
|
|
9558
|
+
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());
|
|
9988
9559
|
});
|
|
9989
9560
|
setItems(filterItems);
|
|
9990
9561
|
}
|
|
@@ -9994,9 +9565,9 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
9994
9565
|
if (disabled || readOnly) {
|
|
9995
9566
|
return selectedValue;
|
|
9996
9567
|
} else {
|
|
9997
|
-
if ((selected
|
|
9568
|
+
if ((selected == null ? void 0 : selected.id) === 'counter') {
|
|
9998
9569
|
setSelectedValue([]);
|
|
9999
|
-
onChange
|
|
9570
|
+
onChange == null ? void 0 : onChange([]);
|
|
10000
9571
|
|
|
10001
9572
|
for (let i = 0; i < selectedValue.length; i++) {
|
|
10002
9573
|
removeSelectedItem(selectedValue[i]);
|
|
@@ -10007,7 +9578,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
10007
9578
|
setSelectedValue(filterItems);
|
|
10008
9579
|
|
|
10009
9580
|
if (selected.id !== '!all') {
|
|
10010
|
-
onChange
|
|
9581
|
+
onChange == null ? void 0 : onChange(filterItems);
|
|
10011
9582
|
}
|
|
10012
9583
|
}
|
|
10013
9584
|
}
|
|
@@ -10052,7 +9623,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
10052
9623
|
removeSelectedItem(item);
|
|
10053
9624
|
});
|
|
10054
9625
|
setSelectedValue([]);
|
|
10055
|
-
onChange
|
|
9626
|
+
onChange == null ? void 0 : onChange([]);
|
|
10056
9627
|
} else {
|
|
10057
9628
|
removeItem(selectedItem);
|
|
10058
9629
|
}
|
|
@@ -10067,12 +9638,12 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
10067
9638
|
itemIds.push(item.id);
|
|
10068
9639
|
});
|
|
10069
9640
|
setSelectedValue(itemIds);
|
|
10070
|
-
onChange
|
|
9641
|
+
onChange == null ? void 0 : onChange(itemIds.slice(1));
|
|
10071
9642
|
} else {
|
|
10072
9643
|
addSelectedItem(selectedItem);
|
|
10073
9644
|
setSelectedValue([...selectedValue, selectedItem.id]);
|
|
10074
9645
|
const filteredSelectedValues = selectedValue.filter(val => val !== '!all');
|
|
10075
|
-
onChange
|
|
9646
|
+
onChange == null ? void 0 : onChange([...filteredSelectedValues, selectedItem.id]);
|
|
10076
9647
|
}
|
|
10077
9648
|
|
|
10078
9649
|
selectItem(null);
|
|
@@ -10224,7 +9795,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
10224
9795
|
lineNumber: 559,
|
|
10225
9796
|
columnNumber: 11
|
|
10226
9797
|
}
|
|
10227
|
-
}, selectedItems
|
|
9798
|
+
}, 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.createElement(Tag, _extends({
|
|
10228
9799
|
disabled: disabled,
|
|
10229
9800
|
isRemovable: readOnly || disabled || unremovableTags.includes(selectedItem.id) ? false : true,
|
|
10230
9801
|
size: size,
|
|
@@ -10248,7 +9819,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
10248
9819
|
lineNumber: 563,
|
|
10249
9820
|
columnNumber: 17
|
|
10250
9821
|
}
|
|
10251
|
-
}), selectedItem.name))), showSelectedTag && showCounter && Boolean(selectedItems
|
|
9822
|
+
}), selectedItem.name))), showSelectedTag && showCounter && Boolean(selectedItems == null ? void 0 : selectedItems.length) && /*#__PURE__*/React__default.createElement(TagWrapper$1, {
|
|
10252
9823
|
disabled: disabled,
|
|
10253
9824
|
__self: undefined,
|
|
10254
9825
|
__source: {
|
|
@@ -10261,7 +9832,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
10261
9832
|
maxWidth: '150px !important'
|
|
10262
9833
|
},
|
|
10263
9834
|
disabled: disabled,
|
|
10264
|
-
isRemovable: readOnly || disabled || Boolean(selectedItems
|
|
9835
|
+
isRemovable: readOnly || disabled || Boolean(selectedItems == null ? void 0 : selectedItems.length),
|
|
10265
9836
|
size: size,
|
|
10266
9837
|
readOnly: readOnly // {...getSelectedItemProps({ selectedItem, index })}
|
|
10267
9838
|
,
|
|
@@ -10283,7 +9854,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
10283
9854
|
lineNumber: 586,
|
|
10284
9855
|
columnNumber: 13
|
|
10285
9856
|
}
|
|
10286
|
-
}, `${selectedItems
|
|
9857
|
+
}, `${selectedItems == null ? void 0 : selectedItems.length} ${labelCounter}`)), /*#__PURE__*/React__default.createElement(OptionWrapper$1, {
|
|
10287
9858
|
placement: placement,
|
|
10288
9859
|
css: {
|
|
10289
9860
|
display: isOpen && disabled === false ? 'block' : 'none',
|
|
@@ -10351,7 +9922,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
10351
9922
|
lineNumber: 640,
|
|
10352
9923
|
columnNumber: 27
|
|
10353
9924
|
}
|
|
10354
|
-
}), showSelectAll && (item
|
|
9925
|
+
}), 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.createElement(IndeterminateFilled, {
|
|
10355
9926
|
__self: undefined,
|
|
10356
9927
|
__source: {
|
|
10357
9928
|
fileName: _jsxFileName$v,
|
|
@@ -11595,8 +11166,8 @@ const PopoverContent = ({
|
|
|
11595
11166
|
ref: floating,
|
|
11596
11167
|
style: Object.assign({
|
|
11597
11168
|
position: strategy,
|
|
11598
|
-
top: isMobile ? 0 : y
|
|
11599
|
-
left: isMobile ? 0 : x
|
|
11169
|
+
top: isMobile ? 0 : y != null ? y : '',
|
|
11170
|
+
left: isMobile ? 0 : x != null ? x : '',
|
|
11600
11171
|
zIndex: zIndices.popover
|
|
11601
11172
|
}, style)
|
|
11602
11173
|
}), {
|
|
@@ -12829,7 +12400,7 @@ const NotificationBadge = _ref => {
|
|
|
12829
12400
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
12830
12401
|
|
|
12831
12402
|
const getValue = () => {
|
|
12832
|
-
let value = props
|
|
12403
|
+
let value = props == null ? void 0 : props.value;
|
|
12833
12404
|
|
|
12834
12405
|
if (typeof value === 'number' || parseInt(value)) {
|
|
12835
12406
|
if (Math.sign(value) === 1 || Math.sign(value) === 0) {
|
|
@@ -14786,6 +14357,25 @@ const AccordionTrigger = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
14786
14357
|
const AccordionItem = StyledItem$1;
|
|
14787
14358
|
const AccordionContent = AccordionPrimitive.Content;
|
|
14788
14359
|
|
|
14360
|
+
function useMediaQuery(query) {
|
|
14361
|
+
const [matches, setMatches] = useState(false);
|
|
14362
|
+
useEffect(() => {
|
|
14363
|
+
const media = window.matchMedia(query);
|
|
14364
|
+
|
|
14365
|
+
if (media.matches !== matches) {
|
|
14366
|
+
setMatches(media.matches);
|
|
14367
|
+
}
|
|
14368
|
+
|
|
14369
|
+
const listener = () => {
|
|
14370
|
+
setMatches(media.matches);
|
|
14371
|
+
};
|
|
14372
|
+
|
|
14373
|
+
media.addEventListener('change', listener);
|
|
14374
|
+
return () => media.removeEventListener('change', listener);
|
|
14375
|
+
}, [matches, query]);
|
|
14376
|
+
return matches;
|
|
14377
|
+
}
|
|
14378
|
+
|
|
14789
14379
|
const ButtonGroup = styled(ToggleGroupPrimitive.Root, {});
|
|
14790
14380
|
const Item$1 = styled(ButtonGroupItem, {
|
|
14791
14381
|
fontSize: '$label',
|
|
@@ -17558,7 +17148,7 @@ function PaginationInfo(_ref) {
|
|
|
17558
17148
|
lineNumber: 40,
|
|
17559
17149
|
columnNumber: 11
|
|
17560
17150
|
}
|
|
17561
|
-
}, limits
|
|
17151
|
+
}, limits == null ? void 0 : limits.map(limit => /*#__PURE__*/React__default.createElement(PopoverClose, {
|
|
17562
17152
|
key: limit,
|
|
17563
17153
|
css: limitItemContainerStyle(selectedLimit === limit),
|
|
17564
17154
|
onClick: () => onChange(limit),
|
|
@@ -20136,7 +19726,7 @@ const TemplateAlertFunction = props => {
|
|
|
20136
19726
|
if (!props.onOpenAutoFocus) {
|
|
20137
19727
|
e.preventDefault();
|
|
20138
19728
|
} else {
|
|
20139
|
-
props
|
|
19729
|
+
props == null ? void 0 : props.onOpenAutoFocus();
|
|
20140
19730
|
}
|
|
20141
19731
|
},
|
|
20142
19732
|
__self: undefined,
|
|
@@ -20257,8 +19847,8 @@ const TemplateAlertFunction = props => {
|
|
|
20257
19847
|
size: "sm",
|
|
20258
19848
|
onClick: buttonConfirm,
|
|
20259
19849
|
buttonType: props.dialogType,
|
|
20260
|
-
disabled: props
|
|
20261
|
-
}, props
|
|
19850
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19851
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
20262
19852
|
__self: undefined,
|
|
20263
19853
|
__source: {
|
|
20264
19854
|
fileName: _jsxFileName$b,
|
|
@@ -20277,12 +19867,12 @@ const TemplateAlertFunction = props => {
|
|
|
20277
19867
|
size: "sm",
|
|
20278
19868
|
onClick: buttonCancel,
|
|
20279
19869
|
css: {
|
|
20280
|
-
color: props.dialogType === 'negative' && !(props
|
|
19870
|
+
color: props.dialogType === 'negative' && !(props != null && props.disabledButton) && '$gray900 !important',
|
|
20281
19871
|
flex: props.isMobile && 1
|
|
20282
19872
|
},
|
|
20283
19873
|
buttonType: "ghost",
|
|
20284
|
-
disabled: props
|
|
20285
|
-
}, props
|
|
19874
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19875
|
+
}, props == null ? void 0 : props.cancelButtonProps, {
|
|
20286
19876
|
__self: undefined,
|
|
20287
19877
|
__source: {
|
|
20288
19878
|
fileName: _jsxFileName$b,
|
|
@@ -20304,8 +19894,8 @@ const TemplateAlertFunction = props => {
|
|
|
20304
19894
|
css: {
|
|
20305
19895
|
flex: props.isMobile && 1
|
|
20306
19896
|
},
|
|
20307
|
-
disabled: props
|
|
20308
|
-
}, props
|
|
19897
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
19898
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
20309
19899
|
__self: undefined,
|
|
20310
19900
|
__source: {
|
|
20311
19901
|
fileName: _jsxFileName$b,
|
|
@@ -20465,8 +20055,8 @@ function AlertDialog(props) {
|
|
|
20465
20055
|
css: {
|
|
20466
20056
|
flex: props.isMobile && 1
|
|
20467
20057
|
},
|
|
20468
|
-
disabled: props
|
|
20469
|
-
}, props
|
|
20058
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
20059
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
20470
20060
|
__self: this,
|
|
20471
20061
|
__source: {
|
|
20472
20062
|
fileName: _jsxFileName$b,
|
|
@@ -20485,12 +20075,12 @@ function AlertDialog(props) {
|
|
|
20485
20075
|
size: "sm",
|
|
20486
20076
|
onClick: props.onCancel,
|
|
20487
20077
|
css: {
|
|
20488
|
-
color: props.dialogType === 'negative' && !(props
|
|
20078
|
+
color: props.dialogType === 'negative' && !(props != null && props.disabledButton) && '$gray900 !important',
|
|
20489
20079
|
flex: props.isMobile && 1
|
|
20490
20080
|
},
|
|
20491
20081
|
buttonType: "ghost",
|
|
20492
|
-
disabled: props
|
|
20493
|
-
}, props
|
|
20082
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
20083
|
+
}, props == null ? void 0 : props.cancelButtonProps, {
|
|
20494
20084
|
__self: this,
|
|
20495
20085
|
__source: {
|
|
20496
20086
|
fileName: _jsxFileName$b,
|
|
@@ -20512,8 +20102,8 @@ function AlertDialog(props) {
|
|
|
20512
20102
|
css: {
|
|
20513
20103
|
flex: props.isMobile && 1
|
|
20514
20104
|
},
|
|
20515
|
-
disabled: props
|
|
20516
|
-
}, props
|
|
20105
|
+
disabled: props == null ? void 0 : props.disabledButton
|
|
20106
|
+
}, props == null ? void 0 : props.actionButtonProps, {
|
|
20517
20107
|
__self: this,
|
|
20518
20108
|
__source: {
|
|
20519
20109
|
fileName: _jsxFileName$b,
|
|
@@ -22995,7 +22585,7 @@ const Upload = ({
|
|
|
22995
22585
|
upload({
|
|
22996
22586
|
url: action,
|
|
22997
22587
|
file: newFile,
|
|
22998
|
-
customBody: customBodyRequest
|
|
22588
|
+
customBody: customBodyRequest == null ? void 0 : customBodyRequest(newFile),
|
|
22999
22589
|
token,
|
|
23000
22590
|
tokenKey,
|
|
23001
22591
|
reqKey,
|
|
@@ -23018,12 +22608,12 @@ const Upload = ({
|
|
|
23018
22608
|
}
|
|
23019
22609
|
}
|
|
23020
22610
|
|
|
23021
|
-
onChange
|
|
22611
|
+
onChange == null ? void 0 : (_onChange = onChange({
|
|
23022
22612
|
fileList: arrProgress,
|
|
23023
22613
|
file: fileProgress,
|
|
23024
22614
|
indexReplace: indexReplace.current,
|
|
23025
22615
|
isReplace: indexReplace.current !== null
|
|
23026
|
-
}))
|
|
22616
|
+
})) == null ? void 0 : (_onChange$then = _onChange.then(() => setError(null))) == null ? void 0 : _onChange$then.catch(error => setError(error.message));
|
|
23027
22617
|
}
|
|
23028
22618
|
}).then(result => {
|
|
23029
22619
|
var _onChange2, _onChange2$then;
|
|
@@ -23040,12 +22630,12 @@ const Upload = ({
|
|
|
23040
22630
|
}
|
|
23041
22631
|
}
|
|
23042
22632
|
|
|
23043
|
-
onChange
|
|
22633
|
+
onChange == null ? void 0 : (_onChange2 = onChange({
|
|
23044
22634
|
fileList: arrSuccess,
|
|
23045
22635
|
file: fileSuccess,
|
|
23046
22636
|
indexReplace: indexReplace.current,
|
|
23047
22637
|
isReplace: indexReplace.current !== null
|
|
23048
|
-
}))
|
|
22638
|
+
})) == null ? void 0 : (_onChange2$then = _onChange2.then(() => setError(null))) == null ? void 0 : _onChange2$then.catch(error => setError(error.message));
|
|
23049
22639
|
}).catch(error => {
|
|
23050
22640
|
var _onChange3, _onChange3$then;
|
|
23051
22641
|
|
|
@@ -23061,22 +22651,22 @@ const Upload = ({
|
|
|
23061
22651
|
}
|
|
23062
22652
|
}
|
|
23063
22653
|
|
|
23064
|
-
onChange
|
|
22654
|
+
onChange == null ? void 0 : (_onChange3 = onChange({
|
|
23065
22655
|
fileList: arrError,
|
|
23066
22656
|
file: fileError,
|
|
23067
22657
|
indexReplace: indexReplace.current,
|
|
23068
22658
|
isReplace: indexReplace.current !== null
|
|
23069
|
-
}))
|
|
22659
|
+
})) == null ? void 0 : (_onChange3$then = _onChange3.then(() => setError(null))) == null ? void 0 : _onChange3$then.catch(error => setError(error.message));
|
|
23070
22660
|
});
|
|
23071
22661
|
} else {
|
|
23072
22662
|
var _onChange4, _onChange4$then;
|
|
23073
22663
|
|
|
23074
|
-
onChange
|
|
22664
|
+
onChange == null ? void 0 : (_onChange4 = onChange({
|
|
23075
22665
|
fileList: arrFile,
|
|
23076
22666
|
file: newFile,
|
|
23077
22667
|
indexReplace: indexReplace.current,
|
|
23078
22668
|
isReplace: indexReplace.current !== null
|
|
23079
|
-
}))
|
|
22669
|
+
})) == null ? void 0 : (_onChange4$then = _onChange4.then(() => setError(null))) == null ? void 0 : _onChange4$then.catch(error => setError(error.message));
|
|
23080
22670
|
}
|
|
23081
22671
|
|
|
23082
22672
|
if (indexReplace.current !== null) {
|
|
@@ -23101,24 +22691,24 @@ const Upload = ({
|
|
|
23101
22691
|
// program to get the dimensions of an image
|
|
23102
22692
|
const img = document.createElement('img');
|
|
23103
22693
|
img.src = URL.createObjectURL(files[0]);
|
|
23104
|
-
img.size = files
|
|
23105
|
-
img.type = files
|
|
22694
|
+
img.size = files == null ? void 0 : (_files$ = files[0]) == null ? void 0 : _files$.size;
|
|
22695
|
+
img.type = files == null ? void 0 : (_files$2 = files[0]) == null ? void 0 : _files$2.type;
|
|
23106
22696
|
|
|
23107
22697
|
img.onload = () => {
|
|
23108
22698
|
var _onBeforeCrop, _onBeforeCrop$then;
|
|
23109
22699
|
|
|
23110
|
-
onBeforeCrop
|
|
22700
|
+
onBeforeCrop == null ? void 0 : (_onBeforeCrop = onBeforeCrop(img)) == null ? void 0 : (_onBeforeCrop$then = _onBeforeCrop.then(() => {
|
|
23111
22701
|
setError(null);
|
|
23112
22702
|
toggleModal();
|
|
23113
22703
|
setFileState(files[0]);
|
|
23114
22704
|
setPreviewImage(URL.createObjectURL(files[0]));
|
|
23115
|
-
}))
|
|
22705
|
+
})) == null ? void 0 : _onBeforeCrop$then.catch(error => setError(error == null ? void 0 : error.message));
|
|
23116
22706
|
};
|
|
23117
22707
|
|
|
23118
22708
|
img.onerror = error => {
|
|
23119
22709
|
var _onBeforeCrop2, _onBeforeCrop2$then;
|
|
23120
22710
|
|
|
23121
|
-
onBeforeCrop
|
|
22711
|
+
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));
|
|
23122
22712
|
};
|
|
23123
22713
|
} else {
|
|
23124
22714
|
toggleModal();
|
|
@@ -23130,15 +22720,15 @@ const Upload = ({
|
|
|
23130
22720
|
}
|
|
23131
22721
|
|
|
23132
22722
|
function handleCrop() {
|
|
23133
|
-
if (completedCrop
|
|
22723
|
+
if (completedCrop != null && completedCrop.width && completedCrop != null && completedCrop.height && imgRef.current) {
|
|
23134
22724
|
imgPreview(imgRef.current, completedCrop, 1, 0, ratio).then(blob => {
|
|
23135
|
-
const sizeMB = (blob
|
|
22725
|
+
const sizeMB = (blob == null ? void 0 : blob.size) / 1024 / 1024;
|
|
23136
22726
|
|
|
23137
22727
|
if (sizeMB < maxSizeMB || sizeMB < 1 || !imageCompression) {
|
|
23138
22728
|
var _fileState$name;
|
|
23139
22729
|
|
|
23140
|
-
const file = new File([blob], (fileState
|
|
23141
|
-
type: blob
|
|
22730
|
+
const file = new File([blob], (fileState == null ? void 0 : (_fileState$name = fileState.name) == null ? void 0 : _fileState$name.replace(/\.[^/.]+$/, '')) + '.png', {
|
|
22731
|
+
type: blob == null ? void 0 : blob.type
|
|
23142
22732
|
});
|
|
23143
22733
|
handleUpload([file]);
|
|
23144
22734
|
setCrop(null);
|
|
@@ -23153,17 +22743,17 @@ const Upload = ({
|
|
|
23153
22743
|
}).then(compressedFile => {
|
|
23154
22744
|
var _fileState$name2;
|
|
23155
22745
|
|
|
23156
|
-
const file = new File([compressedFile], (fileState
|
|
23157
|
-
type: compressedFile
|
|
22746
|
+
const file = new File([compressedFile], (fileState == null ? void 0 : (_fileState$name2 = fileState.name) == null ? void 0 : _fileState$name2.replace(/\.[^/.]+$/, '')) + '.png', {
|
|
22747
|
+
type: compressedFile == null ? void 0 : compressedFile.type
|
|
23158
22748
|
});
|
|
23159
22749
|
handleUpload([file]);
|
|
23160
22750
|
setCrop(null);
|
|
23161
22751
|
setCompletedCrop(null);
|
|
23162
|
-
}).catch(error => console.error(error
|
|
22752
|
+
}).catch(error => console.error(error == null ? void 0 : error.message));
|
|
23163
22753
|
}
|
|
23164
22754
|
|
|
23165
22755
|
toggleModal();
|
|
23166
|
-
}).catch(error => console.error(error
|
|
22756
|
+
}).catch(error => console.error(error == null ? void 0 : error.message));
|
|
23167
22757
|
} else {
|
|
23168
22758
|
handleUpload([fileState]);
|
|
23169
22759
|
toggleModal();
|
|
@@ -23194,7 +22784,7 @@ const Upload = ({
|
|
|
23194
22784
|
const index = fileList.indexOf(file);
|
|
23195
22785
|
const newFileList = fileList.slice();
|
|
23196
22786
|
newFileList.splice(index, 1);
|
|
23197
|
-
onChange
|
|
22787
|
+
onChange == null ? void 0 : onChange({
|
|
23198
22788
|
fileList: newFileList,
|
|
23199
22789
|
file
|
|
23200
22790
|
});
|
|
@@ -23222,22 +22812,22 @@ const Upload = ({
|
|
|
23222
22812
|
function handleOpenFile(file) {
|
|
23223
22813
|
var _String, _file$name;
|
|
23224
22814
|
|
|
23225
|
-
let extension = (_String = String(file
|
|
22815
|
+
let extension = (_String = String(file == null ? void 0 : (_file$name = file.name) == null ? void 0 : _file$name.split('.').pop())) == null ? void 0 : _String.toLowerCase();
|
|
23226
22816
|
|
|
23227
22817
|
if (extension === 'pdf') {
|
|
23228
|
-
window.open(file
|
|
22818
|
+
window.open(file == null ? void 0 : file.url);
|
|
23229
22819
|
} else {
|
|
23230
|
-
request.get(file
|
|
22820
|
+
request.get(file == null ? void 0 : file.url).end((err, res) => {
|
|
23231
22821
|
if (err) {
|
|
23232
22822
|
console.error(err.message);
|
|
23233
22823
|
}
|
|
23234
22824
|
|
|
23235
|
-
if (res && res
|
|
23236
|
-
const response = res
|
|
22825
|
+
if (res && res != null && res.ok) {
|
|
22826
|
+
const response = res == null ? void 0 : res.text;
|
|
23237
22827
|
const url = window.URL.createObjectURL(new Blob([response]));
|
|
23238
22828
|
const link = document.createElement('a');
|
|
23239
22829
|
link.href = url;
|
|
23240
|
-
link.setAttribute('download', file
|
|
22830
|
+
link.setAttribute('download', file == null ? void 0 : file.name);
|
|
23241
22831
|
document.body.appendChild(link);
|
|
23242
22832
|
link.click();
|
|
23243
22833
|
document.body.removeChild(link);
|
|
@@ -23307,12 +22897,12 @@ const Upload = ({
|
|
|
23307
22897
|
}
|
|
23308
22898
|
|
|
23309
22899
|
const renderPicture = () => {
|
|
23310
|
-
return fileList
|
|
23311
|
-
if ((item
|
|
22900
|
+
return fileList == null ? void 0 : fileList.map((item, index) => {
|
|
22901
|
+
if ((item == null ? void 0 : item.status) === 'uploading') {
|
|
23312
22902
|
return /*#__PURE__*/React__default.createElement(UploadProgress, {
|
|
23313
22903
|
key: index,
|
|
23314
|
-
progress: item
|
|
23315
|
-
loading: item
|
|
22904
|
+
progress: item == null ? void 0 : item.percent,
|
|
22905
|
+
loading: item == null ? void 0 : item.loading,
|
|
23316
22906
|
__self: undefined,
|
|
23317
22907
|
__source: {
|
|
23318
22908
|
fileName: _jsxFileName$9,
|
|
@@ -23387,14 +22977,14 @@ const Upload = ({
|
|
|
23387
22977
|
};
|
|
23388
22978
|
|
|
23389
22979
|
const renderFile = () => {
|
|
23390
|
-
return fileList
|
|
22980
|
+
return fileList == null ? void 0 : fileList.map((item, index) => {
|
|
23391
22981
|
var _item$name;
|
|
23392
22982
|
|
|
23393
|
-
if ((item
|
|
22983
|
+
if ((item == null ? void 0 : item.status) === 'uploading') {
|
|
23394
22984
|
return /*#__PURE__*/React__default.createElement(UploadProgress, {
|
|
23395
22985
|
key: index,
|
|
23396
|
-
progress: item
|
|
23397
|
-
loading: item
|
|
22986
|
+
progress: item == null ? void 0 : item.percent,
|
|
22987
|
+
loading: item == null ? void 0 : item.loading,
|
|
23398
22988
|
__self: undefined,
|
|
23399
22989
|
__source: {
|
|
23400
22990
|
fileName: _jsxFileName$9,
|
|
@@ -23461,7 +23051,7 @@ const Upload = ({
|
|
|
23461
23051
|
lineNumber: 661,
|
|
23462
23052
|
columnNumber: 17
|
|
23463
23053
|
}
|
|
23464
|
-
}, ".", item
|
|
23054
|
+
}, ".", item == null ? void 0 : (_item$name = item.name) == null ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
23465
23055
|
label: item.name,
|
|
23466
23056
|
__self: undefined,
|
|
23467
23057
|
__source: {
|
|
@@ -23633,7 +23223,7 @@ const Upload = ({
|
|
|
23633
23223
|
lineNumber: 736,
|
|
23634
23224
|
columnNumber: 11
|
|
23635
23225
|
}
|
|
23636
|
-
}, children
|
|
23226
|
+
}, children != null ? children : /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
23637
23227
|
__self: this,
|
|
23638
23228
|
__source: {
|
|
23639
23229
|
fileName: _jsxFileName$9,
|
|
@@ -23667,7 +23257,7 @@ const Upload = ({
|
|
|
23667
23257
|
lineNumber: 742,
|
|
23668
23258
|
columnNumber: 17
|
|
23669
23259
|
}
|
|
23670
|
-
}, placeholder
|
|
23260
|
+
}, placeholder != null ? placeholder : `Pilih atau letakkan berkas di sini`)))), error && /*#__PURE__*/React__default.createElement(ErrorMessage, {
|
|
23671
23261
|
__self: this,
|
|
23672
23262
|
__source: {
|
|
23673
23263
|
fileName: _jsxFileName$9,
|
|
@@ -23827,7 +23417,7 @@ const Upload = ({
|
|
|
23827
23417
|
|
|
23828
23418
|
return /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
23829
23419
|
direction: "row",
|
|
23830
|
-
gap: (fileList
|
|
23420
|
+
gap: (fileList == null ? void 0 : fileList.length) <= 1 && max === 1 ? 0 : 3,
|
|
23831
23421
|
wrap: "wrap",
|
|
23832
23422
|
css: {
|
|
23833
23423
|
userSelect: 'none'
|
|
@@ -24653,10 +24243,10 @@ function InputColorPicker(props) {
|
|
|
24653
24243
|
const [isPopover, setIsPopover] = useState(false);
|
|
24654
24244
|
|
|
24655
24245
|
function getColor() {
|
|
24656
|
-
const color = props
|
|
24246
|
+
const color = props == null ? void 0 : props.color;
|
|
24657
24247
|
|
|
24658
24248
|
if (typeof color === 'string') {
|
|
24659
|
-
return color
|
|
24249
|
+
return color == null ? void 0 : color.toUpperCase();
|
|
24660
24250
|
}
|
|
24661
24251
|
|
|
24662
24252
|
return `rgba(${color.r},${color.g},${color.b},${color.a})`;
|
|
@@ -27628,9 +27218,9 @@ const Navigation = props => {
|
|
|
27628
27218
|
lineNumber: 120,
|
|
27629
27219
|
columnNumber: 30
|
|
27630
27220
|
}
|
|
27631
|
-
}), typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title = (_data = data[i - 1]).title)
|
|
27221
|
+
}), 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.createElement(Tooltip$1, {
|
|
27632
27222
|
align: "center",
|
|
27633
|
-
label: (_data3 = data[i - 1])
|
|
27223
|
+
label: (_data3 = data[i - 1]) == null ? void 0 : _data3.tooltipsContents,
|
|
27634
27224
|
__self: undefined,
|
|
27635
27225
|
__source: {
|
|
27636
27226
|
fileName: _jsxFileName$4,
|
|
@@ -27649,9 +27239,9 @@ const Navigation = props => {
|
|
|
27649
27239
|
lineNumber: 124,
|
|
27650
27240
|
columnNumber: 19
|
|
27651
27241
|
}
|
|
27652
|
-
})), ((_data4 = data[i - 1])
|
|
27242
|
+
})), ((_data4 = data[i - 1]) == null ? void 0 : _data4.comingSoon) && /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
27653
27243
|
css: {
|
|
27654
|
-
marginLeft: (_data5 = data[i - 1])
|
|
27244
|
+
marginLeft: (_data5 = data[i - 1]) != null && _data5.withTolltip ? 0 : '$spacing-03'
|
|
27655
27245
|
},
|
|
27656
27246
|
align: "center",
|
|
27657
27247
|
__self: undefined,
|
|
@@ -27703,7 +27293,7 @@ const Navigation = props => {
|
|
|
27703
27293
|
height: 24,
|
|
27704
27294
|
borderRadius: '$round',
|
|
27705
27295
|
border: `4px solid ${isActive ? '$bgGreen' : '$bgInactive'}`,
|
|
27706
|
-
backgroundColor: (_data6 = data[i - 1])
|
|
27296
|
+
backgroundColor: (_data6 = data[i - 1]) != null && _data6.disabled ? '$gray200' : '$white'
|
|
27707
27297
|
},
|
|
27708
27298
|
__self: undefined,
|
|
27709
27299
|
__source: {
|
|
@@ -27721,10 +27311,10 @@ const Navigation = props => {
|
|
|
27721
27311
|
lineNumber: 163,
|
|
27722
27312
|
columnNumber: 15
|
|
27723
27313
|
}
|
|
27724
|
-
}, isActive ? typeof data[i - 1].title === 'string' ? data[i - 1].title : (_data$title2 = (_data7 = data[i - 1]).title)
|
|
27314
|
+
}, 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.createElement(Tooltip$1, {
|
|
27725
27315
|
align: "center",
|
|
27726
27316
|
withClick: true,
|
|
27727
|
-
label: (_data9 = data[i - 1])
|
|
27317
|
+
label: (_data9 = data[i - 1]) == null ? void 0 : _data9.tooltipsContents,
|
|
27728
27318
|
__self: undefined,
|
|
27729
27319
|
__source: {
|
|
27730
27320
|
fileName: _jsxFileName$4,
|
|
@@ -27740,11 +27330,11 @@ const Navigation = props => {
|
|
|
27740
27330
|
lineNumber: 168,
|
|
27741
27331
|
columnNumber: 19
|
|
27742
27332
|
}
|
|
27743
|
-
})), isActive && ((_data10 = data[i - 1])
|
|
27333
|
+
})), isActive && ((_data10 = data[i - 1]) == null ? void 0 : _data10.comingSoon) && /*#__PURE__*/React__default.createElement(Flex$1, {
|
|
27744
27334
|
align: "center",
|
|
27745
27335
|
justify: "center",
|
|
27746
27336
|
css: {
|
|
27747
|
-
marginTop: (_data11 = data[i - 1])
|
|
27337
|
+
marginTop: (_data11 = data[i - 1]) != null && _data11.withTolltip ? 0 : '$spacing-03'
|
|
27748
27338
|
},
|
|
27749
27339
|
__self: undefined,
|
|
27750
27340
|
__source: {
|
|
@@ -27826,9 +27416,7 @@ const Default = props => {
|
|
|
27826
27416
|
}));
|
|
27827
27417
|
}, [props.hide]);
|
|
27828
27418
|
useEffect(() => {
|
|
27829
|
-
|
|
27830
|
-
|
|
27831
|
-
props === null || props === void 0 ? void 0 : (_props$onChangeVisibi = props.onChangeVisibility) === null || _props$onChangeVisibi === void 0 ? void 0 : _props$onChangeVisibi.call(props, state.hide);
|
|
27419
|
+
props == null ? void 0 : props.onChangeVisibility == null ? void 0 : props.onChangeVisibility(state.hide);
|
|
27832
27420
|
}, [state.hide]);
|
|
27833
27421
|
|
|
27834
27422
|
const toogleVisibility = value => {
|
|
@@ -27840,13 +27428,13 @@ const Default = props => {
|
|
|
27840
27428
|
const getIsComplete = currentStep => {
|
|
27841
27429
|
var _state$isComplete;
|
|
27842
27430
|
|
|
27843
|
-
return state
|
|
27431
|
+
return state == null ? void 0 : (_state$isComplete = state.isComplete) == null ? void 0 : _state$isComplete[currentStep - 1];
|
|
27844
27432
|
};
|
|
27845
27433
|
|
|
27846
27434
|
const getTitleStep = currentStep => {
|
|
27847
27435
|
var _props$navContents, _props$navContents2;
|
|
27848
27436
|
|
|
27849
|
-
return props
|
|
27437
|
+
return props == null ? void 0 : (_props$navContents = props.navContents) == null ? void 0 : (_props$navContents2 = _props$navContents[currentStep - 1]) == null ? void 0 : _props$navContents2.title;
|
|
27850
27438
|
};
|
|
27851
27439
|
|
|
27852
27440
|
const setState = value => {
|
|
@@ -27888,15 +27476,15 @@ const Default = props => {
|
|
|
27888
27476
|
});
|
|
27889
27477
|
props.onStepChange && props.onStepChange(e);
|
|
27890
27478
|
|
|
27891
|
-
if (props
|
|
27892
|
-
if ((e
|
|
27479
|
+
if (props != null && (_props$navContents3 = props.navContents) != null && (_props$navContents4 = _props$navContents3[(e == null ? void 0 : e.activeStep) - 1]) != null && _props$navContents4.disabled) {
|
|
27480
|
+
if ((e == null ? void 0 : e.activeStep) > (e == null ? void 0 : e.previousStep)) {
|
|
27893
27481
|
var _state$SW;
|
|
27894
27482
|
|
|
27895
|
-
state
|
|
27483
|
+
state == null ? void 0 : (_state$SW = state.SW) == null ? void 0 : _state$SW.nextStep();
|
|
27896
27484
|
} else {
|
|
27897
27485
|
var _state$SW2;
|
|
27898
27486
|
|
|
27899
|
-
state
|
|
27487
|
+
state == null ? void 0 : (_state$SW2 = state.SW) == null ? void 0 : _state$SW2.previousStep();
|
|
27900
27488
|
}
|
|
27901
27489
|
}
|
|
27902
27490
|
};
|
|
@@ -27912,11 +27500,11 @@ const Default = props => {
|
|
|
27912
27500
|
}, /*#__PURE__*/React__default.createElement(StepWizardContext.Provider, {
|
|
27913
27501
|
value: {
|
|
27914
27502
|
toogleVisibility,
|
|
27915
|
-
isHide: state
|
|
27503
|
+
isHide: state == null ? void 0 : state.hide,
|
|
27916
27504
|
setComplete,
|
|
27917
27505
|
setState,
|
|
27918
27506
|
state,
|
|
27919
|
-
SW: state
|
|
27507
|
+
SW: state == null ? void 0 : state.SW,
|
|
27920
27508
|
forbidClickNav: props.forbidClickNav,
|
|
27921
27509
|
titles: props.titles,
|
|
27922
27510
|
isMobile: props.isMobile,
|
|
@@ -28089,10 +27677,10 @@ function Content({
|
|
|
28089
27677
|
function getDatasets(content, activeId, isCollapse) {
|
|
28090
27678
|
const datasets = [];
|
|
28091
27679
|
|
|
28092
|
-
for (let i = 0; i < (content
|
|
27680
|
+
for (let i = 0; i < (content == null ? void 0 : content.length); i++) {
|
|
28093
27681
|
var _content$i;
|
|
28094
27682
|
|
|
28095
|
-
if (((_content$i = content[i])
|
|
27683
|
+
if (((_content$i = content[i]) == null ? void 0 : _content$i.id) === activeId) {
|
|
28096
27684
|
datasets.unshift(content[i]);
|
|
28097
27685
|
} else {
|
|
28098
27686
|
datasets.push(content[i]);
|
|
@@ -28132,7 +27720,7 @@ function Content({
|
|
|
28132
27720
|
lineNumber: 99,
|
|
28133
27721
|
columnNumber: 7
|
|
28134
27722
|
}
|
|
28135
|
-
}, (_getDatasets = getDatasets(content, activeId, isCollapse))
|
|
27723
|
+
}, (_getDatasets = getDatasets(content, activeId, isCollapse)) == null ? void 0 : _getDatasets.map((item, index) => {
|
|
28136
27724
|
return /*#__PURE__*/React__default.createElement(List, {
|
|
28137
27725
|
key: index,
|
|
28138
27726
|
__self: this,
|
|
@@ -28149,11 +27737,11 @@ function Content({
|
|
|
28149
27737
|
marginLeft: '-4px !important',
|
|
28150
27738
|
borderLeftWidth: '4px !important',
|
|
28151
27739
|
borderLeftStyle: 'solid !important',
|
|
28152
|
-
borderLeftColor: `${(item
|
|
27740
|
+
borderLeftColor: `${(item == null ? void 0 : item.id) === activeId ? colors$4.primary500 : 'transparent'} !important`,
|
|
28153
27741
|
paddingLeft: '16px !important',
|
|
28154
27742
|
minHeight: 25
|
|
28155
27743
|
},
|
|
28156
|
-
"data-to-scrollspy-id": item
|
|
27744
|
+
"data-to-scrollspy-id": item == null ? void 0 : item.id,
|
|
28157
27745
|
__self: this,
|
|
28158
27746
|
__source: {
|
|
28159
27747
|
fileName: _jsxFileName$2,
|
|
@@ -28162,8 +27750,8 @@ function Content({
|
|
|
28162
27750
|
}
|
|
28163
27751
|
}, /*#__PURE__*/React__default.createElement(Title$1, {
|
|
28164
27752
|
className: "link-title",
|
|
28165
|
-
active: (item
|
|
28166
|
-
href: `#${item
|
|
27753
|
+
active: (item == null ? void 0 : item.id) === activeId,
|
|
27754
|
+
href: `#${item == null ? void 0 : item.id}`,
|
|
28167
27755
|
onClick: e => {
|
|
28168
27756
|
e.preventDefault();
|
|
28169
27757
|
const target = window.document.getElementById(e.currentTarget.href.split('#')[1]);
|
|
@@ -28192,7 +27780,7 @@ function Content({
|
|
|
28192
27780
|
lineNumber: 117,
|
|
28193
27781
|
columnNumber: 17
|
|
28194
27782
|
}
|
|
28195
|
-
}, item
|
|
27783
|
+
}, item == null ? void 0 : item.title), item == null ? void 0 : item.icon));
|
|
28196
27784
|
})));
|
|
28197
27785
|
}
|
|
28198
27786
|
|
|
@@ -29256,7 +28844,7 @@ const ProgressText = styled$1('p', {
|
|
|
29256
28844
|
const StyledProgress = styled$1(ProgressPrimitive.Root, {
|
|
29257
28845
|
position: 'relative',
|
|
29258
28846
|
overflow: 'hidden',
|
|
29259
|
-
background: '$
|
|
28847
|
+
background: '$gray150',
|
|
29260
28848
|
borderRadius: '99999px',
|
|
29261
28849
|
width: '100%',
|
|
29262
28850
|
height: 8
|
|
@@ -31586,6 +31174,423 @@ function ContentEditor(props) {
|
|
|
31586
31174
|
}), void 0);
|
|
31587
31175
|
}
|
|
31588
31176
|
|
|
31177
|
+
const transform = keyframes({
|
|
31178
|
+
'100%': {
|
|
31179
|
+
transform: 'translateX(100%)'
|
|
31180
|
+
}
|
|
31181
|
+
});
|
|
31182
|
+
const SkeletonContainer = styled(Box, {
|
|
31183
|
+
'& .react-loading-skeleton::after': {
|
|
31184
|
+
animation: `1.5s infinite normal ${transform} !important`,
|
|
31185
|
+
animationTimingFunction: 'ease-in-out !important'
|
|
31186
|
+
}
|
|
31187
|
+
});
|
|
31188
|
+
|
|
31189
|
+
const StyledSkeleton = props => {
|
|
31190
|
+
const {
|
|
31191
|
+
color,
|
|
31192
|
+
count,
|
|
31193
|
+
width,
|
|
31194
|
+
size,
|
|
31195
|
+
circle
|
|
31196
|
+
} = props;
|
|
31197
|
+
|
|
31198
|
+
function getBaseColor(color) {
|
|
31199
|
+
switch (color) {
|
|
31200
|
+
case 'primary':
|
|
31201
|
+
return colors$4.gray300;
|
|
31202
|
+
|
|
31203
|
+
default:
|
|
31204
|
+
return colors$4.gray150;
|
|
31205
|
+
}
|
|
31206
|
+
}
|
|
31207
|
+
|
|
31208
|
+
function getSize(size) {
|
|
31209
|
+
switch (size) {
|
|
31210
|
+
case 'md':
|
|
31211
|
+
return 16;
|
|
31212
|
+
|
|
31213
|
+
case 'lg':
|
|
31214
|
+
return 118;
|
|
31215
|
+
|
|
31216
|
+
default:
|
|
31217
|
+
return 12;
|
|
31218
|
+
}
|
|
31219
|
+
}
|
|
31220
|
+
|
|
31221
|
+
return jsx(SkeletonTheme, Object.assign({
|
|
31222
|
+
width: width,
|
|
31223
|
+
borderRadius: size === 'lg' ? 0 : 20,
|
|
31224
|
+
baseColor: getBaseColor(color),
|
|
31225
|
+
highlightColor: "#FAFAFA"
|
|
31226
|
+
}, {
|
|
31227
|
+
children: jsx(SkeletonContainer, {
|
|
31228
|
+
children: jsx(ReactSkeleton, {
|
|
31229
|
+
height: getSize(size),
|
|
31230
|
+
count: count,
|
|
31231
|
+
circle: circle
|
|
31232
|
+
}, void 0)
|
|
31233
|
+
}, void 0)
|
|
31234
|
+
}), void 0);
|
|
31235
|
+
};
|
|
31236
|
+
|
|
31237
|
+
const Card = styled('div', {
|
|
31238
|
+
padding: 40,
|
|
31239
|
+
borderRadius: 8,
|
|
31240
|
+
background: '$bgWhite',
|
|
31241
|
+
boxShadow: '0px 7px 15px rgba(0, 0, 0, 0.07)',
|
|
31242
|
+
position: 'relative'
|
|
31243
|
+
});
|
|
31244
|
+
const Space = styled('div', {
|
|
31245
|
+
height: 8,
|
|
31246
|
+
variants: {
|
|
31247
|
+
size: {
|
|
31248
|
+
sm: {
|
|
31249
|
+
height: 8
|
|
31250
|
+
},
|
|
31251
|
+
md: {
|
|
31252
|
+
height: 18
|
|
31253
|
+
}
|
|
31254
|
+
}
|
|
31255
|
+
}
|
|
31256
|
+
});
|
|
31257
|
+
function Skeleton() {
|
|
31258
|
+
const isDesktop = useMediaQuery('(min-width: 767px)');
|
|
31259
|
+
|
|
31260
|
+
if (isDesktop) {
|
|
31261
|
+
return jsxs(Grid, Object.assign({
|
|
31262
|
+
columns: 6,
|
|
31263
|
+
gapY: 5
|
|
31264
|
+
}, {
|
|
31265
|
+
children: [jsx(GridItem, Object.assign({
|
|
31266
|
+
colSpan: 6
|
|
31267
|
+
}, {
|
|
31268
|
+
children: jsxs(Grid, Object.assign({
|
|
31269
|
+
columns: 6,
|
|
31270
|
+
gapX: 2
|
|
31271
|
+
}, {
|
|
31272
|
+
children: [jsx(GridItem, Object.assign({
|
|
31273
|
+
colSpan: 2
|
|
31274
|
+
}, {
|
|
31275
|
+
children: jsxs(Card, {
|
|
31276
|
+
children: [jsx(StyledSkeleton, {
|
|
31277
|
+
size: "md",
|
|
31278
|
+
color: "primary"
|
|
31279
|
+
}, void 0), jsx(Space, {
|
|
31280
|
+
size: "md"
|
|
31281
|
+
}, void 0), jsxs(Box, {
|
|
31282
|
+
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
31283
|
+
width: "60%"
|
|
31284
|
+
}, void 0)]
|
|
31285
|
+
}, void 0), jsx(Space, {
|
|
31286
|
+
size: "md"
|
|
31287
|
+
}, void 0), jsxs(Box, {
|
|
31288
|
+
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
31289
|
+
width: "60%"
|
|
31290
|
+
}, void 0)]
|
|
31291
|
+
}, void 0)]
|
|
31292
|
+
}, void 0)
|
|
31293
|
+
}), void 0), jsx(GridItem, Object.assign({
|
|
31294
|
+
colSpan: 2
|
|
31295
|
+
}, {
|
|
31296
|
+
children: jsxs(Card, {
|
|
31297
|
+
children: [jsx(StyledSkeleton, {
|
|
31298
|
+
size: "md",
|
|
31299
|
+
color: "primary"
|
|
31300
|
+
}, void 0), jsx(Space, {
|
|
31301
|
+
size: "md"
|
|
31302
|
+
}, void 0), jsxs(Box, {
|
|
31303
|
+
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
31304
|
+
width: "60%"
|
|
31305
|
+
}, void 0)]
|
|
31306
|
+
}, void 0), jsx(Space, {
|
|
31307
|
+
size: "md"
|
|
31308
|
+
}, void 0), jsxs(Box, {
|
|
31309
|
+
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
31310
|
+
width: "60%"
|
|
31311
|
+
}, void 0)]
|
|
31312
|
+
}, void 0)]
|
|
31313
|
+
}, void 0)
|
|
31314
|
+
}), void 0), jsx(GridItem, Object.assign({
|
|
31315
|
+
colSpan: 2
|
|
31316
|
+
}, {
|
|
31317
|
+
children: jsxs(Card, {
|
|
31318
|
+
children: [jsx(StyledSkeleton, {
|
|
31319
|
+
size: "md",
|
|
31320
|
+
color: "primary"
|
|
31321
|
+
}, void 0), jsx(Space, {
|
|
31322
|
+
size: "md"
|
|
31323
|
+
}, void 0), jsxs(Box, {
|
|
31324
|
+
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
31325
|
+
width: "60%"
|
|
31326
|
+
}, void 0)]
|
|
31327
|
+
}, void 0), jsx(Space, {
|
|
31328
|
+
size: "md"
|
|
31329
|
+
}, void 0), jsxs(Box, {
|
|
31330
|
+
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
31331
|
+
width: "60%"
|
|
31332
|
+
}, void 0)]
|
|
31333
|
+
}, void 0)]
|
|
31334
|
+
}, void 0)
|
|
31335
|
+
}), void 0)]
|
|
31336
|
+
}), void 0)
|
|
31337
|
+
}), void 0), jsx(GridItem, Object.assign({
|
|
31338
|
+
colSpan: 6
|
|
31339
|
+
}, {
|
|
31340
|
+
children: jsx(Card, {
|
|
31341
|
+
children: jsxs(Grid, Object.assign({
|
|
31342
|
+
columns: 6,
|
|
31343
|
+
gapY: 5
|
|
31344
|
+
}, {
|
|
31345
|
+
children: [jsx(GridItem, Object.assign({
|
|
31346
|
+
colSpan: 6
|
|
31347
|
+
}, {
|
|
31348
|
+
children: jsxs(Grid, Object.assign({
|
|
31349
|
+
columns: 6,
|
|
31350
|
+
gapX: 2
|
|
31351
|
+
}, {
|
|
31352
|
+
children: [jsxs(GridItem, Object.assign({
|
|
31353
|
+
colSpan: 2
|
|
31354
|
+
}, {
|
|
31355
|
+
children: [jsx(StyledSkeleton, {
|
|
31356
|
+
size: "lg"
|
|
31357
|
+
}, void 0), jsx(Space, {
|
|
31358
|
+
size: "md"
|
|
31359
|
+
}, void 0), jsx(StyledSkeleton, {
|
|
31360
|
+
size: "md",
|
|
31361
|
+
color: "primary",
|
|
31362
|
+
width: "85%"
|
|
31363
|
+
}, void 0), jsx(Space, {
|
|
31364
|
+
size: "md"
|
|
31365
|
+
}, void 0), jsxs(Box, {
|
|
31366
|
+
children: [jsx(StyledSkeleton, {
|
|
31367
|
+
width: "85%"
|
|
31368
|
+
}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
31369
|
+
width: "60%"
|
|
31370
|
+
}, void 0)]
|
|
31371
|
+
}, void 0)]
|
|
31372
|
+
}), void 0), jsxs(GridItem, Object.assign({
|
|
31373
|
+
colSpan: 2
|
|
31374
|
+
}, {
|
|
31375
|
+
children: [jsx(StyledSkeleton, {
|
|
31376
|
+
size: "lg"
|
|
31377
|
+
}, void 0), jsx(Space, {
|
|
31378
|
+
size: "md"
|
|
31379
|
+
}, void 0), jsx(StyledSkeleton, {
|
|
31380
|
+
size: "md",
|
|
31381
|
+
color: "primary",
|
|
31382
|
+
width: "85%"
|
|
31383
|
+
}, void 0), jsx(Space, {
|
|
31384
|
+
size: "md"
|
|
31385
|
+
}, void 0), jsxs(Box, {
|
|
31386
|
+
children: [jsx(StyledSkeleton, {
|
|
31387
|
+
width: "85%"
|
|
31388
|
+
}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
31389
|
+
width: "60%"
|
|
31390
|
+
}, void 0)]
|
|
31391
|
+
}, void 0)]
|
|
31392
|
+
}), void 0), jsxs(GridItem, Object.assign({
|
|
31393
|
+
colSpan: 2
|
|
31394
|
+
}, {
|
|
31395
|
+
children: [jsx(StyledSkeleton, {
|
|
31396
|
+
size: "lg"
|
|
31397
|
+
}, void 0), jsx(Space, {
|
|
31398
|
+
size: "md"
|
|
31399
|
+
}, void 0), jsx(StyledSkeleton, {
|
|
31400
|
+
size: "md",
|
|
31401
|
+
color: "primary",
|
|
31402
|
+
width: "85%"
|
|
31403
|
+
}, void 0), jsx(Space, {
|
|
31404
|
+
size: "md"
|
|
31405
|
+
}, void 0), jsxs(Box, {
|
|
31406
|
+
children: [jsx(StyledSkeleton, {
|
|
31407
|
+
width: "85%"
|
|
31408
|
+
}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
31409
|
+
width: "60%"
|
|
31410
|
+
}, void 0)]
|
|
31411
|
+
}, void 0)]
|
|
31412
|
+
}), void 0)]
|
|
31413
|
+
}), void 0)
|
|
31414
|
+
}), void 0), jsxs(GridItem, Object.assign({
|
|
31415
|
+
colSpan: 6
|
|
31416
|
+
}, {
|
|
31417
|
+
children: [jsx(StyledSkeleton, {
|
|
31418
|
+
width: "50%"
|
|
31419
|
+
}, void 0), jsx(Space, {}, void 0), jsxs(SkeletonTheme, Object.assign({
|
|
31420
|
+
inline: true,
|
|
31421
|
+
borderRadius: 20,
|
|
31422
|
+
baseColor: colors$4.gray150,
|
|
31423
|
+
highlightColor: "#FAFAFA"
|
|
31424
|
+
}, {
|
|
31425
|
+
children: [jsx(ReactSkeleton, {
|
|
31426
|
+
style: {
|
|
31427
|
+
marginRight: 8
|
|
31428
|
+
},
|
|
31429
|
+
height: 12,
|
|
31430
|
+
width: 12,
|
|
31431
|
+
circle: true
|
|
31432
|
+
}, void 0), jsx(ReactSkeleton, {
|
|
31433
|
+
height: 12,
|
|
31434
|
+
width: "95%"
|
|
31435
|
+
}, void 0)]
|
|
31436
|
+
}), void 0), jsx(Space, {}, void 0), jsxs(SkeletonTheme, Object.assign({
|
|
31437
|
+
inline: true,
|
|
31438
|
+
borderRadius: 20,
|
|
31439
|
+
baseColor: colors$4.gray150,
|
|
31440
|
+
highlightColor: "#FAFAFA"
|
|
31441
|
+
}, {
|
|
31442
|
+
children: [jsx(ReactSkeleton, {
|
|
31443
|
+
style: {
|
|
31444
|
+
marginRight: 8
|
|
31445
|
+
},
|
|
31446
|
+
height: 12,
|
|
31447
|
+
width: 12,
|
|
31448
|
+
circle: true
|
|
31449
|
+
}, void 0), jsx(ReactSkeleton, {
|
|
31450
|
+
height: 12,
|
|
31451
|
+
width: "95%"
|
|
31452
|
+
}, void 0)]
|
|
31453
|
+
}), void 0), jsx(Space, {}, void 0), jsxs(SkeletonTheme, Object.assign({
|
|
31454
|
+
inline: true,
|
|
31455
|
+
borderRadius: 20,
|
|
31456
|
+
baseColor: colors$4.gray150,
|
|
31457
|
+
highlightColor: "#FAFAFA"
|
|
31458
|
+
}, {
|
|
31459
|
+
children: [jsx(ReactSkeleton, {
|
|
31460
|
+
style: {
|
|
31461
|
+
marginRight: 8
|
|
31462
|
+
},
|
|
31463
|
+
height: 12,
|
|
31464
|
+
width: 12,
|
|
31465
|
+
circle: true
|
|
31466
|
+
}, void 0), jsx(ReactSkeleton, {
|
|
31467
|
+
height: 12,
|
|
31468
|
+
width: "95%"
|
|
31469
|
+
}, void 0)]
|
|
31470
|
+
}), void 0)]
|
|
31471
|
+
}), void 0)]
|
|
31472
|
+
}), void 0)
|
|
31473
|
+
}, void 0)
|
|
31474
|
+
}), void 0)]
|
|
31475
|
+
}), void 0);
|
|
31476
|
+
} else {
|
|
31477
|
+
return jsxs(Grid, Object.assign({
|
|
31478
|
+
columns: 6,
|
|
31479
|
+
gapY: 4
|
|
31480
|
+
}, {
|
|
31481
|
+
children: [jsx(GridItem, Object.assign({
|
|
31482
|
+
colSpan: 6
|
|
31483
|
+
}, {
|
|
31484
|
+
children: jsxs(Card, {
|
|
31485
|
+
children: [jsx(StyledSkeleton, {
|
|
31486
|
+
size: "md",
|
|
31487
|
+
color: "primary"
|
|
31488
|
+
}, void 0), jsx(Space, {
|
|
31489
|
+
size: "md"
|
|
31490
|
+
}, void 0), jsxs(Box, {
|
|
31491
|
+
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
31492
|
+
width: "60%"
|
|
31493
|
+
}, void 0)]
|
|
31494
|
+
}, void 0), jsx(Space, {
|
|
31495
|
+
size: "md"
|
|
31496
|
+
}, void 0), jsxs(Box, {
|
|
31497
|
+
children: [jsx(StyledSkeleton, {}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
31498
|
+
width: "60%"
|
|
31499
|
+
}, void 0)]
|
|
31500
|
+
}, void 0)]
|
|
31501
|
+
}, void 0)
|
|
31502
|
+
}), void 0), jsx(GridItem, Object.assign({
|
|
31503
|
+
colSpan: 6
|
|
31504
|
+
}, {
|
|
31505
|
+
children: jsx(Card, {
|
|
31506
|
+
children: jsxs(Grid, {
|
|
31507
|
+
children: [jsxs(GridItem, Object.assign({
|
|
31508
|
+
colSpan: 6
|
|
31509
|
+
}, {
|
|
31510
|
+
children: [jsx(StyledSkeleton, {
|
|
31511
|
+
size: "lg"
|
|
31512
|
+
}, void 0), jsx(Space, {
|
|
31513
|
+
size: "md"
|
|
31514
|
+
}, void 0), jsx(StyledSkeleton, {
|
|
31515
|
+
size: "md",
|
|
31516
|
+
color: "primary",
|
|
31517
|
+
width: "85%"
|
|
31518
|
+
}, void 0), jsx(Space, {
|
|
31519
|
+
size: "md"
|
|
31520
|
+
}, void 0), jsxs(Box, {
|
|
31521
|
+
children: [jsx(StyledSkeleton, {
|
|
31522
|
+
width: "85%"
|
|
31523
|
+
}, void 0), jsx(Space, {}, void 0), jsx(StyledSkeleton, {
|
|
31524
|
+
width: "60%"
|
|
31525
|
+
}, void 0)]
|
|
31526
|
+
}, void 0), jsx(Space, {
|
|
31527
|
+
size: "md"
|
|
31528
|
+
}, void 0)]
|
|
31529
|
+
}), void 0), jsxs(GridItem, Object.assign({
|
|
31530
|
+
colSpan: 6
|
|
31531
|
+
}, {
|
|
31532
|
+
children: [jsx(StyledSkeleton, {
|
|
31533
|
+
width: "50%"
|
|
31534
|
+
}, void 0), jsx(Space, {}, void 0), jsxs(SkeletonTheme, Object.assign({
|
|
31535
|
+
inline: true,
|
|
31536
|
+
borderRadius: 20,
|
|
31537
|
+
baseColor: colors$4.gray150,
|
|
31538
|
+
highlightColor: "#FAFAFA"
|
|
31539
|
+
}, {
|
|
31540
|
+
children: [jsx(ReactSkeleton, {
|
|
31541
|
+
style: {
|
|
31542
|
+
marginRight: 8
|
|
31543
|
+
},
|
|
31544
|
+
height: 12,
|
|
31545
|
+
width: 12,
|
|
31546
|
+
circle: true
|
|
31547
|
+
}, void 0), jsx(ReactSkeleton, {
|
|
31548
|
+
height: 12,
|
|
31549
|
+
width: "85%"
|
|
31550
|
+
}, void 0)]
|
|
31551
|
+
}), void 0), jsx(Space, {}, void 0), jsxs(SkeletonTheme, Object.assign({
|
|
31552
|
+
inline: true,
|
|
31553
|
+
borderRadius: 20,
|
|
31554
|
+
baseColor: colors$4.gray150,
|
|
31555
|
+
highlightColor: "#FAFAFA"
|
|
31556
|
+
}, {
|
|
31557
|
+
children: [jsx(ReactSkeleton, {
|
|
31558
|
+
style: {
|
|
31559
|
+
marginRight: 8
|
|
31560
|
+
},
|
|
31561
|
+
height: 12,
|
|
31562
|
+
width: 12,
|
|
31563
|
+
circle: true
|
|
31564
|
+
}, void 0), jsx(ReactSkeleton, {
|
|
31565
|
+
height: 12,
|
|
31566
|
+
width: "85%"
|
|
31567
|
+
}, void 0)]
|
|
31568
|
+
}), void 0), jsx(Space, {}, void 0), jsxs(SkeletonTheme, Object.assign({
|
|
31569
|
+
inline: true,
|
|
31570
|
+
borderRadius: 20,
|
|
31571
|
+
baseColor: colors$4.gray150,
|
|
31572
|
+
highlightColor: "#FAFAFA"
|
|
31573
|
+
}, {
|
|
31574
|
+
children: [jsx(ReactSkeleton, {
|
|
31575
|
+
style: {
|
|
31576
|
+
marginRight: 8
|
|
31577
|
+
},
|
|
31578
|
+
height: 12,
|
|
31579
|
+
width: 12,
|
|
31580
|
+
circle: true
|
|
31581
|
+
}, void 0), jsx(ReactSkeleton, {
|
|
31582
|
+
height: 12,
|
|
31583
|
+
width: "85%"
|
|
31584
|
+
}, void 0)]
|
|
31585
|
+
}), void 0)]
|
|
31586
|
+
}), void 0)]
|
|
31587
|
+
}, void 0)
|
|
31588
|
+
}, void 0)
|
|
31589
|
+
}), void 0)]
|
|
31590
|
+
}), void 0);
|
|
31591
|
+
}
|
|
31592
|
+
}
|
|
31593
|
+
|
|
31589
31594
|
var _jsxFileName = "C:\\Users\\Lenovo\\Documents\\code\\majoo\\majoo-ui\\packages\\react\\src\\colors\\Colors.js";
|
|
31590
31595
|
const StyledPaper = styled(Paper, {
|
|
31591
31596
|
borderRadius: '10px 10px 0 0',
|
|
@@ -33087,4 +33092,4 @@ const useToggle = initialValue => {
|
|
|
33087
33092
|
return useReducer(toggleReducer, initialValue);
|
|
33088
33093
|
};
|
|
33089
33094
|
|
|
33090
|
-
export { ADVANCE_PICKER, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedOption, AlertDialog, AlertDialogCancel, AlertDialogConfirm, AlertDialogContent, AlertDialogDescription, AlertDialogFunction, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, Avatar, BOTTOM_LEFT_POSITION, BOTTOM_RIGHT_POSITION, Badge, Banner, BannerClose, BannerDescription, BannerLink, BannerTitle, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$3 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card, CardComponent, CardLineColor, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, ContentEditor, ContextMenu, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, DateColumn, DatePicker, DecimalColumn, Device as DevicePreview, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, EditableTable, Flex$1 as Flex, FormGroup, FormHelper, FormLabel, Grid, GridItem, Heading, IconButton, IconContainer, Image, ImageDevicePreview, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, InputResourceList, InputRightAddon, InputRightElement, InputSearchbox, InputSelect, InputSelectCheck, InputSelectTag, InputSuffix, InputSwitch, TagsInput as InputTags, InputText, InputTextArea, InputTimePicker, LAST_7_DAYS, LAST_MONTH, LAST_TWO_MONTHS, LAST_WEEK, LineChart, Link, LoadingBar, MajooProvider, MapPicker, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_PICKER, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, SINGLE_PICKER, SelectBox, SelectContainer, SelectInputSearch, SelectItem, SelectOption, Separator$2 as Separator, Skeleton, Slider, StepWizard, StepWizardContext, StyledBox, StyledDropdown, StyledInput$1 as StyledInput, StyledSpan, StyledTitle$2 as StyledTitle, THIS_MONTH, THIS_WEEK, TODAY, TOP_LEFT_POSITION, TOP_RIGHT_POSITION, Table, TableBody$3 as TableBody, TableCell$3 as TableCell, TableColumn, TableContent$3 as TableContent, TableFoot$2 as TableFoot, TableFootCell$2 as TableFootCell, TableFootRow$2 as TableFootRow, TableHead$3 as TableHead, TableHeadCellContent, TableHeaderCellContainer, TableOfContent, TableOfContentPage, TableRow$3 as TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, Tag, TagStatus, Text$1 as Text, TextVariantsEnum, TimePicker, ToastContext, Tooltip$1 as Tooltip, UPDATE_PICKER, Upload, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptions, defaultFetchDataParams, pickerReducer, useListOption, useToggle };
|
|
33095
|
+
export { ADVANCE_PICKER, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedOption, AlertDialog, AlertDialogCancel, AlertDialogConfirm, AlertDialogContent, AlertDialogDescription, AlertDialogFunction, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, Avatar, BOTTOM_LEFT_POSITION, BOTTOM_RIGHT_POSITION, Badge, Banner, BannerClose, BannerDescription, BannerLink, BannerTitle, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button$3 as Button, ButtonDropdown, ButtonGroup$1 as ButtonGroup, ButtonGroupItem, ButtonPrimitive, Card$1 as Card, CardComponent, CardLineColor, CheckboxGroup, CheckboxTable, ColorPicker$1 as ColorPicker, Colors, ContentEditor, ContextMenu, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger, DateColumn, DatePicker, DecimalColumn, Device as DevicePreview, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuArrow, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, EditableTable, Flex$1 as Flex, FormGroup, FormHelper, FormLabel, Grid, GridItem, Heading, IconButton, IconContainer, Image, ImageDevicePreview, InputCheckbox, InputColorPicker, InputCombobox, InputCounter, InputCreatable, InputDatePicker, InputGroup, InputLeftAddon, InputLeftElement, InputMapPicker, InputNumber, InputOTP, InputPrefix, InputRadio, InputRadioGroup, InputResourceList, InputRightAddon, InputRightElement, InputSearchbox, InputSelect, InputSelectCheck, InputSelectTag, InputSuffix, InputSwitch, TagsInput as InputTags, InputText, InputTextArea, InputTimePicker, LAST_7_DAYS, LAST_MONTH, LAST_TWO_MONTHS, LAST_WEEK, LineChart, Link, LoadingBar, MajooProvider, MapPicker, MobileTable, ModalDialog, ModalDialogContent, ModalDialogFooter, ModalDialogTitle, ModalDialogTrigger, NativeTimePicker, NotificationBadge, OptionWrapper$2 as OptionWrapper, PageContainer, PageDialog, PageDialogContent, PageDialogFooter, PageDialogTitle, PageDialogTrigger, Pagination, Paper, PaperComponent, Paragraph, Popover, PopoverClose, PopoverContent, PopoverTrigger, PriceColumn, Progress$1 as Progress, ProgressIndicator, RANGE_PICKER, ResendOTP, RightSlot, rowExpanderColumn as RowExpanderColumn, rowMenuColumn as RowMenuColumn, rowSelectionColumn as RowSelectionColumn, SINGLE_PICKER, SelectBox, SelectContainer, SelectInputSearch, SelectItem, SelectOption, Separator$2 as Separator, Skeleton, Slider, StepWizard, StepWizardContext, StyledBox, StyledDropdown, StyledInput$1 as StyledInput, StyledSpan, StyledTitle$2 as StyledTitle, THIS_MONTH, THIS_WEEK, TODAY, TOP_LEFT_POSITION, TOP_RIGHT_POSITION, Table, TableBody$3 as TableBody, TableCell$3 as TableCell, TableColumn, TableContent$3 as TableContent, TableFoot$2 as TableFoot, TableFootCell$2 as TableFootCell, TableFootRow$2 as TableFootRow, TableHead$3 as TableHead, TableHeadCellContent, TableHeaderCellContainer, TableOfContent, TableOfContentPage, TableRow$3 as TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, Tag, TagStatus, Text$1 as Text, TextVariantsEnum, TimePicker, ToastContext, Tooltip$1 as Tooltip, UPDATE_PICKER, Upload, YESTERDAY, addOnCellStyle, advancePickerDate, advancePickerOptions, defaultFetchDataParams, pickerReducer, useListOption, useToggle };
|