@ctlyst.id/internal-ui 2.1.15 → 2.1.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +370 -417
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +134 -194
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -916,7 +916,6 @@ var getCommonPinningStyles = (column) => {
|
|
916
916
|
left: isPinned === "left" ? `${column.getStart("left")}px` : void 0,
|
917
917
|
right: isPinned === "right" ? `${column.getAfter("right")}px` : void 0,
|
918
918
|
position: isPinned ? "sticky" : "relative",
|
919
|
-
width: column.getSize(),
|
920
919
|
zIndex: isPinned ? 1 : 0,
|
921
920
|
backgroundColor: "white",
|
922
921
|
...isLastLeftPinnedColumn ? {
|
@@ -1078,8 +1077,8 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1078
1077
|
Th,
|
1079
1078
|
{
|
1080
1079
|
colSpan: header.colSpan,
|
1081
|
-
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1082
1080
|
sx: getCommonPinningStyles(header.column),
|
1081
|
+
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1083
1082
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
1084
1083
|
children: /* @__PURE__ */ jsxs9(
|
1085
1084
|
Flex,
|
@@ -2664,12 +2663,10 @@ import {
|
|
2664
2663
|
} from "@chakra-ui/react";
|
2665
2664
|
|
2666
2665
|
// src/components/navigation/components/navigation.tsx
|
2667
|
-
import { ChevronDownIcon as ChevronDownIcon2 } from "@chakra-ui/icons";
|
2668
2666
|
import {
|
2669
|
-
Box as
|
2667
|
+
Box as Box21,
|
2668
|
+
Button as Button2,
|
2670
2669
|
Flex as Flex6,
|
2671
|
-
HStack as HStack5,
|
2672
|
-
Icon as Icon2,
|
2673
2670
|
Link as Link2,
|
2674
2671
|
Popover as Popover2,
|
2675
2672
|
PopoverContent as PopoverContent2,
|
@@ -2678,111 +2675,65 @@ import {
|
|
2678
2675
|
Text as Text8,
|
2679
2676
|
useColorModeValue as useColorModeValue8
|
2680
2677
|
} from "@chakra-ui/react";
|
2678
|
+
import * as Icon3 from "@ctlyst.id/internal-icon";
|
2681
2679
|
import { css as css3 } from "@emotion/react";
|
2682
2680
|
|
2683
|
-
// src/components/navigation/components/mapping-icon.
|
2684
|
-
import
|
2685
|
-
FiBox,
|
2686
|
-
FiDollarSign,
|
2687
|
-
FiGift,
|
2688
|
-
FiLayers,
|
2689
|
-
FiLayout,
|
2690
|
-
FiRepeat,
|
2691
|
-
FiRotateCcw,
|
2692
|
-
FiSettings,
|
2693
|
-
FiShoppingBag,
|
2694
|
-
FiShoppingCart,
|
2695
|
-
FiUsers
|
2696
|
-
} from "react-icons/fi";
|
2697
|
-
|
2698
|
-
// src/components/navigation/components/customer-icon.tsx
|
2699
|
-
import { createIcon } from "@chakra-ui/react";
|
2681
|
+
// src/components/navigation/components/mapping-icon.tsx
|
2682
|
+
import * as Icon2 from "@ctlyst.id/internal-icon";
|
2700
2683
|
import { jsx as jsx40 } from "react/jsx-runtime";
|
2701
|
-
var CustomerIcon = createIcon({
|
2702
|
-
displayName: "CustomerIcon",
|
2703
|
-
viewBox: "0 0 16 16",
|
2704
|
-
path: [
|
2705
|
-
/* @__PURE__ */ jsx40(
|
2706
|
-
"path",
|
2707
|
-
{
|
2708
|
-
fill: "currentColor",
|
2709
|
-
fillRule: "inherit",
|
2710
|
-
d: "M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM.667 8a7.333 7.333 0 1 1 14.666 0A7.333 7.333 0 0 1 .667 8Z",
|
2711
|
-
clipRule: "inherit"
|
2712
|
-
}
|
2713
|
-
),
|
2714
|
-
/* @__PURE__ */ jsx40(
|
2715
|
-
"path",
|
2716
|
-
{
|
2717
|
-
fill: "currentColor",
|
2718
|
-
d: "M12.416 12.698a1.997 1.997 0 0 0-1.75-1.031H5.334a2 2 0 0 0-1.864 1.277 7.722 7.722 0 0 1-.943-1.074 3.329 3.329 0 0 1 2.807-1.537h5.334a3.333 3.333 0 0 1 2.703 1.384c-.275.325-.594.66-.954.98Z"
|
2719
|
-
}
|
2720
|
-
),
|
2721
|
-
/* @__PURE__ */ jsx40(
|
2722
|
-
"path",
|
2723
|
-
{
|
2724
|
-
fill: "currentColor",
|
2725
|
-
fillRule: "inherit",
|
2726
|
-
d: "M8 5.333A1.333 1.333 0 1 0 8 8a1.333 1.333 0 0 0 0-2.667ZM5.333 6.667a2.667 2.667 0 1 1 5.334 0 2.667 2.667 0 0 1-5.334 0Z",
|
2727
|
-
clipRule: "inherit"
|
2728
|
-
}
|
2729
|
-
)
|
2730
|
-
]
|
2731
|
-
});
|
2732
|
-
var customer_icon_default = CustomerIcon;
|
2733
|
-
|
2734
|
-
// src/components/navigation/components/mapping-icon.ts
|
2735
2684
|
var mappingIcon = /* @__PURE__ */ new Map([
|
2736
|
-
["Order",
|
2737
|
-
["Fulfillment",
|
2738
|
-
["Transfer Stock",
|
2739
|
-
["Stock",
|
2740
|
-
["Product Database",
|
2741
|
-
["Purchasing",
|
2742
|
-
["Reseller",
|
2743
|
-
["Retur",
|
2744
|
-
["Other",
|
2745
|
-
["Content",
|
2746
|
-
["
|
2747
|
-
["
|
2685
|
+
["Order", /* @__PURE__ */ jsx40(Icon2.ShoppingBag, { size: 4, color: "inherit" }, "order")],
|
2686
|
+
["Fulfillment", /* @__PURE__ */ jsx40(Icon2.ShoppingCart, { size: 4, color: "inherit" }, "fullfilment")],
|
2687
|
+
["Transfer Stock", /* @__PURE__ */ jsx40(Icon2.Repeat, { size: 4, color: "inherit" }, "transfer-stock")],
|
2688
|
+
["Stock", /* @__PURE__ */ jsx40(Icon2.Box, { size: 4, color: "inherit" }, "stock")],
|
2689
|
+
["Product Database", /* @__PURE__ */ jsx40(Icon2.Layers, { size: 4, color: "inherit" }, "product-database")],
|
2690
|
+
["Purchasing", /* @__PURE__ */ jsx40(Icon2.DollarSign, { size: 4, color: "inherit" }, "purchasing")],
|
2691
|
+
["Reseller", /* @__PURE__ */ jsx40(Icon2.Users, { size: 4, color: "inherit" }, "reseller")],
|
2692
|
+
["Retur", /* @__PURE__ */ jsx40(Icon2.RotateCcw, { size: 4, color: "inherit" }, "retur")],
|
2693
|
+
["Other", /* @__PURE__ */ jsx40(Icon2.Settings, { size: 4, color: "inherit" }, "other")],
|
2694
|
+
["Content", /* @__PURE__ */ jsx40(Icon2.Layout, { size: 4, color: "inherit" }, "content")],
|
2695
|
+
["Customer", /* @__PURE__ */ jsx40(Icon2.HelpCircle, { size: 4, color: "inherit" }, "content")],
|
2696
|
+
["Voucher", /* @__PURE__ */ jsx40(Icon2.Gift, { size: 4, color: "inherit" }, "content")]
|
2748
2697
|
]);
|
2749
2698
|
|
2750
2699
|
// src/components/navigation/components/navigation.tsx
|
2751
2700
|
import { Fragment as Fragment4, jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
|
2752
2701
|
var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
2753
|
-
return /* @__PURE__ */ jsx41(
|
2754
|
-
|
2702
|
+
return /* @__PURE__ */ jsx41(Box21, { borderRadius: "md", overflowX: "auto", ...props, children: /* @__PURE__ */ jsx41(
|
2703
|
+
Flex6,
|
2755
2704
|
{
|
2756
|
-
bg:
|
2757
|
-
|
2758
|
-
|
2759
|
-
|
2760
|
-
|
2761
|
-
|
2705
|
+
bg: "white",
|
2706
|
+
w: "full",
|
2707
|
+
rounded: "md",
|
2708
|
+
flexWrap: "wrap",
|
2709
|
+
alignItems: "center",
|
2710
|
+
shadow: "raised",
|
2711
|
+
gap: 1,
|
2712
|
+
px: 4,
|
2713
|
+
py: 2,
|
2714
|
+
children: navigations == null ? void 0 : navigations.map((navigation) => {
|
2762
2715
|
const isActive = activePath.startsWith(navigation.navLink || "");
|
2763
2716
|
const activeBg = isActive ? "primary.500" : void 0;
|
2764
2717
|
return /* @__PURE__ */ jsx41(Popover2, { trigger: "hover", placement: "bottom-start", children: ({ isOpen }) => /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
2765
|
-
/* @__PURE__ */ jsx41(PopoverTrigger2, { children: /* @__PURE__ */
|
2766
|
-
|
2718
|
+
/* @__PURE__ */ jsx41(PopoverTrigger2, { children: /* @__PURE__ */ jsx41(
|
2719
|
+
Button2,
|
2767
2720
|
{
|
2768
|
-
|
2769
|
-
|
2770
|
-
|
2771
|
-
|
2721
|
+
h: 7.5,
|
2722
|
+
p: 2,
|
2723
|
+
size: "sm",
|
2724
|
+
variant: "ghost",
|
2725
|
+
"data-test-id": `CT_component_navigation_button-${navigation.title}${isActive ? "-active" : ""}`,
|
2772
2726
|
_hover: {
|
2773
|
-
backgroundColor: !isActive ?
|
2727
|
+
backgroundColor: !isActive ? "neutral.400" : activeBg
|
2774
2728
|
},
|
2775
|
-
backgroundColor: isOpen && !isActive ?
|
2776
|
-
color: isActive ? "
|
2777
|
-
|
2778
|
-
|
2779
|
-
|
2780
|
-
/* @__PURE__ */ jsx41(Text8, { whiteSpace: "nowrap", fontSize: "text.sm", fontWeight: 400, children: navigation.title }),
|
2781
|
-
/* @__PURE__ */ jsx41(ChevronDownIcon2, { ml: 2 })
|
2782
|
-
]
|
2729
|
+
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
2730
|
+
color: isActive ? "primary.50" : "black.high",
|
2731
|
+
leftIcon: mappingIcon.get(navigation.title),
|
2732
|
+
rightIcon: /* @__PURE__ */ jsx41(Icon3.ChevronDown, { size: 4, color: "inherit" }),
|
2733
|
+
children: navigation.title
|
2783
2734
|
}
|
2784
2735
|
) }),
|
2785
|
-
navigation.children && /* @__PURE__ */ jsx41(Portal, { children: /* @__PURE__ */ jsx41(
|
2736
|
+
navigation.children && /* @__PURE__ */ jsx41(Portal, { children: /* @__PURE__ */ jsx41(Box21, { zIndex: "popover", children: /* @__PURE__ */ jsx41(
|
2786
2737
|
PopoverContent2,
|
2787
2738
|
{
|
2788
2739
|
bg: useColorModeValue8("white", "ebony-clay.800"),
|
@@ -2803,7 +2754,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2803
2754
|
textDecoration: "none"
|
2804
2755
|
},
|
2805
2756
|
children: /* @__PURE__ */ jsxs17(
|
2806
|
-
|
2757
|
+
Box21,
|
2807
2758
|
{
|
2808
2759
|
display: "flex",
|
2809
2760
|
position: "relative",
|
@@ -2820,15 +2771,15 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2820
2771
|
},
|
2821
2772
|
color: isActiveSub ? "primary.500" : "inherit",
|
2822
2773
|
css: css3`
|
2823
|
-
|
2824
|
-
|
2774
|
+
border-spacing: 4px;
|
2775
|
+
`,
|
2825
2776
|
px: 6,
|
2826
2777
|
py: 4,
|
2827
2778
|
children: [
|
2828
|
-
|
2829
|
-
/* @__PURE__ */ jsx41(Text8, { fontSize: "text.sm", children: title }),
|
2779
|
+
mappingIcon.get(navigation.title),
|
2780
|
+
/* @__PURE__ */ jsx41(Text8, { fontSize: "text.sm", ml: 3, children: title }),
|
2830
2781
|
isActiveSub && /* @__PURE__ */ jsx41(
|
2831
|
-
|
2782
|
+
Box21,
|
2832
2783
|
{
|
2833
2784
|
width: 0.5,
|
2834
2785
|
height: 8,
|
@@ -2849,9 +2800,9 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2849
2800
|
navigation.title
|
2850
2801
|
) }) })
|
2851
2802
|
] }) }, navigation.title);
|
2852
|
-
})
|
2803
|
+
})
|
2853
2804
|
}
|
2854
|
-
);
|
2805
|
+
) });
|
2855
2806
|
};
|
2856
2807
|
Navigation.defaultProps = {
|
2857
2808
|
navigations: void 0,
|
@@ -2861,8 +2812,8 @@ Navigation.defaultProps = {
|
|
2861
2812
|
var navigation_default = Navigation;
|
2862
2813
|
|
2863
2814
|
// src/components/navigation/components/navigation-bar.tsx
|
2864
|
-
import { Box as
|
2865
|
-
import * as
|
2815
|
+
import { Box as Box22, Button as Button3, Flex as Flex7, Link as Link3, Popover as Popover3, PopoverContent as PopoverContent3, PopoverTrigger as PopoverTrigger3, Text as Text9 } from "@chakra-ui/react";
|
2816
|
+
import * as Icon4 from "@ctlyst.id/internal-icon";
|
2866
2817
|
import { Fragment as Fragment5, jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
|
2867
2818
|
var NavigationBar = ({
|
2868
2819
|
navigations,
|
@@ -2878,80 +2829,69 @@ var NavigationBar = ({
|
|
2878
2829
|
}
|
2879
2830
|
return subMenu.navHost + subMenu.navLink;
|
2880
2831
|
};
|
2881
|
-
return /* @__PURE__ */ jsx42(
|
2882
|
-
|
2832
|
+
return /* @__PURE__ */ jsx42(Box22, { hidden: isFetched && navigations === void 0, "data-test-id": "CT_component_navigation_cms", ...props, children: /* @__PURE__ */ jsx42(
|
2833
|
+
Flex7,
|
2883
2834
|
{
|
2884
|
-
|
2885
|
-
|
2886
|
-
|
2887
|
-
|
2888
|
-
|
2889
|
-
|
2890
|
-
|
2891
|
-
|
2892
|
-
|
2893
|
-
|
2894
|
-
|
2895
|
-
|
2896
|
-
|
2897
|
-
|
2898
|
-
|
2899
|
-
|
2900
|
-
|
2901
|
-
|
2902
|
-
|
2903
|
-
|
2904
|
-
|
2905
|
-
|
2906
|
-
|
2907
|
-
|
2908
|
-
|
2909
|
-
|
2910
|
-
|
2911
|
-
|
2912
|
-
|
2913
|
-
|
2914
|
-
|
2915
|
-
|
2916
|
-
|
2917
|
-
|
2918
|
-
|
2919
|
-
|
2920
|
-
|
2921
|
-
|
2922
|
-
|
2923
|
-
|
2924
|
-
|
2925
|
-
|
2926
|
-
|
2927
|
-
|
2928
|
-
|
2929
|
-
|
2930
|
-
|
2931
|
-
|
2932
|
-
|
2933
|
-
|
2934
|
-
|
2935
|
-
|
2936
|
-
|
2937
|
-
|
2938
|
-
|
2939
|
-
|
2940
|
-
|
2941
|
-
|
2942
|
-
children: [
|
2943
|
-
mappingIcon2.get(item.title),
|
2944
|
-
/* @__PURE__ */ jsx42(Text9, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
2945
|
-
]
|
2946
|
-
},
|
2947
|
-
subMenu.id
|
2948
|
-
)) })
|
2949
|
-
] }) }, item.id);
|
2950
|
-
})
|
2951
|
-
}
|
2952
|
-
)
|
2835
|
+
bg: "white",
|
2836
|
+
w: "full",
|
2837
|
+
rounded: "md",
|
2838
|
+
flexWrap: "wrap",
|
2839
|
+
alignItems: "center",
|
2840
|
+
shadow: "raised",
|
2841
|
+
gap: 1,
|
2842
|
+
px: 4,
|
2843
|
+
py: 2,
|
2844
|
+
children: navigations == null ? void 0 : navigations.map((item) => {
|
2845
|
+
var _a;
|
2846
|
+
const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
|
2847
|
+
const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
|
2848
|
+
const activeBg = isActive ? "primary.500" : void 0;
|
2849
|
+
return /* @__PURE__ */ jsx42(Popover3, { isLazy: true, trigger: "hover", placement: "bottom-start", openDelay: 100, closeDelay: 100, children: ({ isOpen, onClose }) => /* @__PURE__ */ jsxs18(Fragment5, { children: [
|
2850
|
+
/* @__PURE__ */ jsx42(PopoverTrigger3, { children: /* @__PURE__ */ jsx42(
|
2851
|
+
Button3,
|
2852
|
+
{
|
2853
|
+
h: 7.5,
|
2854
|
+
p: 2,
|
2855
|
+
size: "sm",
|
2856
|
+
variant: "ghost",
|
2857
|
+
"data-test-id": `CT_component_navigation_button-${item.title}${isActive ? "-active" : ""}`,
|
2858
|
+
_hover: {
|
2859
|
+
backgroundColor: !isActive ? "neutral.400" : activeBg
|
2860
|
+
},
|
2861
|
+
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
2862
|
+
color: isActive ? "primary.50" : "black.high",
|
2863
|
+
leftIcon: mappingIcon2.get(item.title),
|
2864
|
+
rightIcon: /* @__PURE__ */ jsx42(Icon4.ChevronDown, { size: 4, color: "inherit" }),
|
2865
|
+
children: item.title
|
2866
|
+
}
|
2867
|
+
) }),
|
2868
|
+
item.children && /* @__PURE__ */ jsx42(PopoverContent3, { bg: "white", boxShadow: "raised", borderRadius: "md", py: 1, width: 240, children: item.children.map((subMenu) => /* @__PURE__ */ jsxs18(
|
2869
|
+
Link3,
|
2870
|
+
{
|
2871
|
+
href: urlMenu(subMenu),
|
2872
|
+
display: "flex",
|
2873
|
+
alignItems: "center",
|
2874
|
+
transition: "padding 0.35s ease 0s",
|
2875
|
+
_hover: {
|
2876
|
+
pl: 6
|
2877
|
+
},
|
2878
|
+
py: 3,
|
2879
|
+
px: 4,
|
2880
|
+
color: (pathname == null ? void 0 : pathname.startsWith(subMenu.navLink)) ? "primary.800" : "black.high",
|
2881
|
+
onClick: onClose,
|
2882
|
+
background: (pathname == null ? void 0 : pathname.startsWith(subMenu.navLink)) ? "primary.50" : "transparent",
|
2883
|
+
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
2884
|
+
children: [
|
2885
|
+
mappingIcon2.get(item.title),
|
2886
|
+
/* @__PURE__ */ jsx42(Text9, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
2887
|
+
]
|
2888
|
+
},
|
2889
|
+
subMenu.id
|
2890
|
+
)) })
|
2891
|
+
] }) }, item.id);
|
2892
|
+
})
|
2953
2893
|
}
|
2954
|
-
);
|
2894
|
+
) });
|
2955
2895
|
};
|
2956
2896
|
NavigationBar.defaultProps = {
|
2957
2897
|
navigations: void 0
|
@@ -2960,10 +2900,10 @@ var navigation_bar_default = NavigationBar;
|
|
2960
2900
|
|
2961
2901
|
// src/components/pagination/components/pagination.tsx
|
2962
2902
|
import { ArrowLeftIcon, ArrowRightIcon, ChevronLeftIcon as ChevronLeftIcon2, ChevronRightIcon } from "@chakra-ui/icons";
|
2963
|
-
import { Box as
|
2903
|
+
import { Box as Box23, Text as Text10, useColorModeValue as useColorModeValue10 } from "@chakra-ui/react";
|
2964
2904
|
|
2965
2905
|
// src/components/pagination/components/pagination-button.tsx
|
2966
|
-
import { Button as
|
2906
|
+
import { Button as Button4, forwardRef as forwardRef12, useColorModeValue as useColorModeValue9 } from "@chakra-ui/react";
|
2967
2907
|
import { jsx as jsx43 } from "react/jsx-runtime";
|
2968
2908
|
var PaginationButton = forwardRef12(({ className, style, isActive, children, ...rest }, ref) => {
|
2969
2909
|
const btnBg = useColorModeValue9("neutral.300", "mirage.900");
|
@@ -2971,7 +2911,7 @@ var PaginationButton = forwardRef12(({ className, style, isActive, children, ...
|
|
2971
2911
|
const btnNotActiveBg = useColorModeValue9("secondary.50", "primary.500");
|
2972
2912
|
const btnNotActiveColor = useColorModeValue9("primary.500", "white");
|
2973
2913
|
return /* @__PURE__ */ jsx43(
|
2974
|
-
|
2914
|
+
Button4,
|
2975
2915
|
{
|
2976
2916
|
"data-test-id": "Pagination-Button",
|
2977
2917
|
ref,
|
@@ -3060,8 +3000,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3060
3000
|
}
|
3061
3001
|
return pageButtons;
|
3062
3002
|
};
|
3063
|
-
return /* @__PURE__ */ jsxs20(
|
3064
|
-
/* @__PURE__ */ jsx45(
|
3003
|
+
return /* @__PURE__ */ jsxs20(Box23, { className, display: "inline-flex", alignItems: "center", children: [
|
3004
|
+
/* @__PURE__ */ jsx45(Box23, { mr: 1, children: /* @__PURE__ */ jsx45(
|
3065
3005
|
pagination_button_trigger_default,
|
3066
3006
|
{
|
3067
3007
|
"data-test-id": "Pagination-Button",
|
@@ -3072,7 +3012,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3072
3012
|
icon: /* @__PURE__ */ jsx45(ArrowLeftIcon, { width: 2 })
|
3073
3013
|
}
|
3074
3014
|
) }),
|
3075
|
-
/* @__PURE__ */ jsxs20(
|
3015
|
+
/* @__PURE__ */ jsxs20(Box23, { bg: "neutral.300", borderRadius: "full", children: [
|
3076
3016
|
/* @__PURE__ */ jsx45(
|
3077
3017
|
pagination_button_trigger_default,
|
3078
3018
|
{
|
@@ -3108,7 +3048,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3108
3048
|
}
|
3109
3049
|
)
|
3110
3050
|
] }),
|
3111
|
-
/* @__PURE__ */ jsx45(
|
3051
|
+
/* @__PURE__ */ jsx45(Box23, { ml: 1, children: /* @__PURE__ */ jsx45(
|
3112
3052
|
pagination_button_trigger_default,
|
3113
3053
|
{
|
3114
3054
|
"data-test-id": "Pagination-Button",
|
@@ -3145,7 +3085,7 @@ var PaginationDetail = ({
|
|
3145
3085
|
var pagination_detail_default = PaginationDetail;
|
3146
3086
|
|
3147
3087
|
// src/components/pagination/components/pagination-filter.tsx
|
3148
|
-
import { Box as
|
3088
|
+
import { Box as Box24, Select, Text as Text12, useColorModeValue as useColorModeValue11 } from "@chakra-ui/react";
|
3149
3089
|
import * as React13 from "react";
|
3150
3090
|
import { FiChevronDown } from "react-icons/fi";
|
3151
3091
|
import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
|
@@ -3157,7 +3097,7 @@ var PaginationFilter = ({
|
|
3157
3097
|
...rest
|
3158
3098
|
}) => {
|
3159
3099
|
const [value, setValue] = React13.useState(limit);
|
3160
|
-
return /* @__PURE__ */ jsxs21(
|
3100
|
+
return /* @__PURE__ */ jsxs21(Box24, { display: "flex", flexDirection: "row", alignItems: "center", children: [
|
3161
3101
|
/* @__PURE__ */ jsx47(Text12, { fontSize: "text.sm", lineHeight: 18, color: useColorModeValue11("neutral.900", "white"), ...rest, children: label }),
|
3162
3102
|
/* @__PURE__ */ jsx47(
|
3163
3103
|
Select,
|
@@ -3211,7 +3151,7 @@ import {
|
|
3211
3151
|
} from "@chakra-ui/react";
|
3212
3152
|
|
3213
3153
|
// src/components/radio/components/radio.tsx
|
3214
|
-
import { Box as
|
3154
|
+
import { Box as Box25, Radio as ChakraRadio, Text as Text13 } from "@chakra-ui/react";
|
3215
3155
|
import { jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
|
3216
3156
|
var Radio = ({
|
3217
3157
|
isError = false,
|
@@ -3222,9 +3162,9 @@ var Radio = ({
|
|
3222
3162
|
...rest
|
3223
3163
|
}) => {
|
3224
3164
|
const variant = isError ? "errors" : "unstyled";
|
3225
|
-
return /* @__PURE__ */ jsxs22(
|
3226
|
-
/* @__PURE__ */ jsx48(
|
3227
|
-
/* @__PURE__ */ jsx48(
|
3165
|
+
return /* @__PURE__ */ jsxs22(Box25, { children: [
|
3166
|
+
/* @__PURE__ */ jsx48(Box25, { display: "flex", children: /* @__PURE__ */ jsx48(ChakraRadio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ jsx48(Text13, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
3167
|
+
/* @__PURE__ */ jsx48(Box25, { mt: "5px", ml: "24px", children: isError ? /* @__PURE__ */ jsx48(Text13, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) : /* @__PURE__ */ jsx48(Text13, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) })
|
3228
3168
|
] });
|
3229
3169
|
};
|
3230
3170
|
Radio.displayName = "Radio";
|
@@ -3235,7 +3175,7 @@ Radio.defaultProps = {
|
|
3235
3175
|
};
|
3236
3176
|
|
3237
3177
|
// src/components/radio/components/radio-group.tsx
|
3238
|
-
import { Box as
|
3178
|
+
import { Box as Box26, RadioGroup as ChakraRadioGroup, Stack as Stack3 } from "@chakra-ui/react";
|
3239
3179
|
import { jsx as jsx49 } from "react/jsx-runtime";
|
3240
3180
|
var RadioGroup = ({
|
3241
3181
|
children,
|
@@ -3245,7 +3185,7 @@ var RadioGroup = ({
|
|
3245
3185
|
errorMessage,
|
3246
3186
|
...props
|
3247
3187
|
}) => {
|
3248
|
-
return /* @__PURE__ */ jsx49(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ jsx49(
|
3188
|
+
return /* @__PURE__ */ jsx49(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ jsx49(Box26, { mt: "12px", children: /* @__PURE__ */ jsx49(ChakraRadioGroup, { ...props, children: /* @__PURE__ */ jsx49(Stack3, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
|
3249
3189
|
};
|
3250
3190
|
RadioGroup.displayName = "RadioGroup";
|
3251
3191
|
RadioGroup.defaultProps = {
|
@@ -3786,7 +3726,7 @@ import {
|
|
3786
3726
|
} from "@chakra-ui/react";
|
3787
3727
|
|
3788
3728
|
// src/components/tabs/components/tab.tsx
|
3789
|
-
import { Button as
|
3729
|
+
import { Button as Button5, Flex as Flex9, forwardRef as forwardRef14, useMultiStyleConfig as useMultiStyleConfig3, useTab } from "@chakra-ui/react";
|
3790
3730
|
import { jsx as jsx56, jsxs as jsxs24 } from "react/jsx-runtime";
|
3791
3731
|
var Tab = forwardRef14((props, ref) => {
|
3792
3732
|
var _a, _b;
|
@@ -3794,7 +3734,7 @@ var Tab = forwardRef14((props, ref) => {
|
|
3794
3734
|
const isSelected = !!tabProps["aria-selected"];
|
3795
3735
|
const styles = useMultiStyleConfig3("Tabs", tabProps);
|
3796
3736
|
return /* @__PURE__ */ jsx56(
|
3797
|
-
|
3737
|
+
Button5,
|
3798
3738
|
{
|
3799
3739
|
"data-test-id": props["data-test-id"],
|
3800
3740
|
p: 4,
|
@@ -4285,7 +4225,7 @@ var badge_default2 = Badge2;
|
|
4285
4225
|
|
4286
4226
|
// src/config/theme/components/button.ts
|
4287
4227
|
import { defineStyleConfig } from "@chakra-ui/styled-system";
|
4288
|
-
var
|
4228
|
+
var Button6 = defineStyleConfig({
|
4289
4229
|
// The styles all button have in common
|
4290
4230
|
baseStyle: {
|
4291
4231
|
fontSize: "body.1",
|
@@ -4540,7 +4480,7 @@ var Button5 = defineStyleConfig({
|
|
4540
4480
|
colorScheme: "primary"
|
4541
4481
|
}
|
4542
4482
|
});
|
4543
|
-
var button_default2 =
|
4483
|
+
var button_default2 = Button6;
|
4544
4484
|
|
4545
4485
|
// src/config/theme/components/card.ts
|
4546
4486
|
import { defineStyleConfig as defineStyleConfig2 } from "@chakra-ui/styled-system";
|