@ctlyst.id/internal-ui 2.1.19 → 2.2.0

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/dist/index.mjs CHANGED
@@ -920,13 +920,12 @@ var getCommonPinningStyles = (column) => {
920
920
  "&:after": {
921
921
  content: "''",
922
922
  position: "absolute",
923
- width: "20%",
924
- height: "100%",
923
+ width: "30px",
925
924
  right: "0px",
925
+ bottom: "-1px",
926
926
  top: 0,
927
- zIndex: -1,
928
- boxShadow: "-10px 0px 20px 10px #00000010",
929
- clipPath: "inset(0px -38px 0px 0px)"
927
+ transform: "translateX(100%)",
928
+ boxShadow: "inset 14px 0px 20px -10px #00000010"
930
929
  }
931
930
  } : {},
932
931
  ...isFirstRightPinnedColumn ? {
@@ -934,13 +933,12 @@ var getCommonPinningStyles = (column) => {
934
933
  "&:after": {
935
934
  content: "''",
936
935
  position: "absolute",
937
- width: "20%",
938
- height: "100%",
936
+ width: "30px",
939
937
  left: "0%",
940
938
  top: 0,
941
- zIndex: -1,
942
- boxShadow: "10px 0px 20px 10px #00000010",
943
- clipPath: "inset(0px 0px 0px -38px )"
939
+ bottom: "-1px",
940
+ transform: "translateX(-100%)",
941
+ boxShadow: "inset -14px 0px 20px -10px #00000010"
944
942
  }
945
943
  } : {}
946
944
  };
@@ -3480,13 +3478,13 @@ var selectStyle = {
3480
3478
  };
3481
3479
  function selectStyles(colorMode, _isError) {
3482
3480
  return {
3483
- control: (base, { isDisabled, isFocused }) => {
3481
+ control: (base, { isFocused }) => {
3484
3482
  const style = {
3485
3483
  ...base,
3486
3484
  flexWrap: "nowrap",
3487
3485
  borderColor: isFocused ? "var(--chakra-colors-primary-500)" : "var(--chakra-colors-neutral-400)",
3488
3486
  boxShadow: "none",
3489
- color: isDisabled ? "var(--chakra-colors-black-low)" : "var(--chakra-colors-black-high)",
3487
+ color: "var(--chakra-colors-black-low)",
3490
3488
  "&:hover": {
3491
3489
  borderColor: _isError ? "" : isFocused ? "var(--chakra-colors-primary-500)" : "var(--chakra-colors-neutral-500)"
3492
3490
  }
@@ -3504,23 +3502,47 @@ function selectStyles(colorMode, _isError) {
3504
3502
  ...selectStyle,
3505
3503
  color: "var(--chakra-colors-neutral-900)"
3506
3504
  }),
3507
- menu: (base) => colorMode === "dark" ? {
3508
- ...base,
3509
- ...selectStyle,
3510
- background: "dark.800",
3511
- zIndex: 5
3512
- } : {
3513
- ...base,
3514
- ...selectStyle,
3515
- zIndex: 5
3505
+ menu: (base) => {
3506
+ return {
3507
+ ...base,
3508
+ ...selectStyle,
3509
+ zIndex: 5
3510
+ };
3511
+ },
3512
+ singleValue: (base) => {
3513
+ return { ...base, ...selectStyle };
3514
+ },
3515
+ input: (base) => {
3516
+ return { ...base, ...selectStyle };
3517
+ },
3518
+ dropdownIndicator: (base) => {
3519
+ return { ...base, ...selectStyle };
3520
+ },
3521
+ indicatorSeparator: (base) => {
3522
+ return { ...base, ...selectStyle };
3516
3523
  },
3517
- singleValue: (base) => colorMode === "dark" ? { ...base, ...selectStyle, color: "white" } : { ...base, ...selectStyle },
3518
- input: (base) => colorMode === "dark" ? { ...base, ...selectStyle, color: "white" } : { ...base, ...selectStyle },
3519
- dropdownIndicator: (base) => colorMode === "dark" ? { ...base, ...selectStyle, color: "secondary.500" } : { ...base, ...selectStyle },
3520
- indicatorSeparator: (base) => colorMode === "dark" ? { ...base, ...selectStyle, backgroundColor: "secondary.500" } : { ...base, ...selectStyle },
3521
3524
  placeholder: (base) => {
3522
- return { ...base, ...selectStyle, color: "black.low" };
3523
- }
3525
+ return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)" };
3526
+ },
3527
+ multiValue: (base) => {
3528
+ return {
3529
+ ...base,
3530
+ borderRadius: 4,
3531
+ backgroundColor: "var(--chakra-colors-neutral-200)"
3532
+ };
3533
+ },
3534
+ multiValueLabel: (base) => ({
3535
+ ...base,
3536
+ borderRadius: 4,
3537
+ fontWeight: "bold"
3538
+ }),
3539
+ multiValueRemove: (base) => ({
3540
+ ...base,
3541
+ color: "var(--chakra-colors-neutral-900)",
3542
+ ":hover": {
3543
+ backgroundColor: "var(--chakra-colors-neutral-300)"
3544
+ }
3545
+ })
3524
3546
  };
3525
3547
  }
3526
3548
  var themeSelect = (theme6) => {
@@ -3612,12 +3634,149 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
3612
3634
  );
3613
3635
  }
3614
3636
 
3637
+ // src/components/select/components/select-with-checkbox.tsx
3638
+ import { Checkbox as Checkbox3, Flex as Flex8, Text as Text14 } from "@chakra-ui/react";
3639
+ import { useColorMode as useColorMode7 } from "@chakra-ui/system";
3640
+ import ReactSelect2, { components as ComponentRS } from "react-select";
3641
+ import { Fragment as Fragment6, jsx as jsx55, jsxs as jsxs23 } from "react/jsx-runtime";
3642
+ var CHECKBOX_STATE = {
3643
+ UNCHECKED: 0,
3644
+ INDETERMINATE: 1,
3645
+ CHECKED: 2
3646
+ };
3647
+ var getSelectAllCheckboxState = (totalSelected, totalOption) => {
3648
+ if (totalSelected < 0 || totalOption < 0) {
3649
+ throw new Error("value less than 0");
3650
+ }
3651
+ if (totalSelected > totalOption) {
3652
+ throw new Error("totalSelected couldn't be more than totalOption");
3653
+ }
3654
+ if (totalSelected === 0) {
3655
+ return CHECKBOX_STATE.UNCHECKED;
3656
+ }
3657
+ if (totalSelected < totalOption) {
3658
+ return CHECKBOX_STATE.INDETERMINATE;
3659
+ }
3660
+ if (totalSelected === totalOption) {
3661
+ return CHECKBOX_STATE.CHECKED;
3662
+ }
3663
+ return CHECKBOX_STATE.UNCHECKED;
3664
+ };
3665
+ var InputOption = ({
3666
+ getStyles,
3667
+ isDisabled,
3668
+ isFocused,
3669
+ isSelected,
3670
+ children,
3671
+ innerProps,
3672
+ data,
3673
+ checkedState,
3674
+ isMulti,
3675
+ ...rest
3676
+ }) => {
3677
+ const style = {
3678
+ alignItems: "center",
3679
+ color: "inherit",
3680
+ display: "flex "
3681
+ };
3682
+ const props = {
3683
+ ...innerProps,
3684
+ "aria-disabled": isDisabled,
3685
+ onClick: isDisabled ? void 0 : innerProps.onClick,
3686
+ style
3687
+ };
3688
+ return /* @__PURE__ */ jsxs23(Fragment6, { children: [
3689
+ /* @__PURE__ */ jsx55(
3690
+ ComponentRS.Option,
3691
+ {
3692
+ isMulti: true,
3693
+ data,
3694
+ isDisabled,
3695
+ isFocused,
3696
+ isSelected,
3697
+ getStyles,
3698
+ innerProps: props,
3699
+ ...rest,
3700
+ children: /* @__PURE__ */ jsxs23(
3701
+ Flex8,
3702
+ {
3703
+ alignItems: "center",
3704
+ width: "100%",
3705
+ mb: "3px",
3706
+ gap: 2,
3707
+ "data-test-id": "CT_component_select-checkbox_options",
3708
+ cursor: isDisabled ? "not-allowed" : "default",
3709
+ children: [
3710
+ (data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ jsx55(
3711
+ Checkbox3,
3712
+ {
3713
+ isChecked: checkedState === CHECKBOX_STATE.CHECKED,
3714
+ isIndeterminate: checkedState === CHECKBOX_STATE.INDETERMINATE,
3715
+ isDisabled,
3716
+ "data-test-id": "CT_component_select-checkbox_select-all-option"
3717
+ }
3718
+ ) : /* @__PURE__ */ jsx55(Checkbox3, { isChecked: isSelected, "data-test-id": "CT_component_select-checkbox_option-checkbox" }),
3719
+ /* @__PURE__ */ jsx55(Text14, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
3720
+ ]
3721
+ }
3722
+ )
3723
+ }
3724
+ ),
3725
+ (data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ jsx55("hr", {}) : null
3726
+ ] });
3727
+ };
3728
+ var SelectWithCheckboxBase = ({
3729
+ isError = false,
3730
+ components,
3731
+ options,
3732
+ ...rest
3733
+ }) => {
3734
+ const { colorMode } = useColorMode7();
3735
+ return /* @__PURE__ */ jsx55(
3736
+ ReactSelect2,
3737
+ {
3738
+ classNamePrefix: "react-select",
3739
+ options,
3740
+ styles: { ...selectStyles(colorMode, !!isError) },
3741
+ theme: themeSelect,
3742
+ closeMenuOnSelect: false,
3743
+ hideSelectedOptions: false,
3744
+ components: {
3745
+ ...components
3746
+ },
3747
+ ...rest
3748
+ }
3749
+ );
3750
+ };
3751
+ var SelectCheckbox = (props) => {
3752
+ const { isMulti, options, value, ...rest } = props;
3753
+ const selectValue = value || [];
3754
+ return /* @__PURE__ */ jsx55(
3755
+ SelectWithCheckboxBase,
3756
+ {
3757
+ isMulti,
3758
+ options,
3759
+ components: {
3760
+ Option: (optionProps) => {
3761
+ const { isSelected, data } = optionProps;
3762
+ const optionLength = (options == null ? void 0 : options.length) ? options.length - 1 : 0;
3763
+ const selectedValue = isSelected ? CHECKBOX_STATE.CHECKED : CHECKBOX_STATE.UNCHECKED;
3764
+ const checkedState = data.selectAllCheckbox ? getSelectAllCheckboxState(selectValue == null ? void 0 : selectValue.length, optionLength) : selectedValue;
3765
+ return /* @__PURE__ */ jsx55(InputOption, { ...optionProps, checkedState });
3766
+ }
3767
+ },
3768
+ ...rest
3769
+ }
3770
+ );
3771
+ };
3772
+ var select_with_checkbox_default = SelectCheckbox;
3773
+
3615
3774
  // src/components/switch/components/switch.tsx
3616
- import { chakra as chakra6, Flex as Flex8, forwardRef as forwardRef13, omitThemingProps as omitThemingProps2, useCheckbox as useCheckbox2, useMultiStyleConfig as useMultiStyleConfig2 } from "@chakra-ui/react";
3775
+ import { chakra as chakra6, Flex as Flex9, forwardRef as forwardRef13, omitThemingProps as omitThemingProps2, useCheckbox as useCheckbox2, useMultiStyleConfig as useMultiStyleConfig2 } from "@chakra-ui/react";
3617
3776
  import { cx as cx9, dataAttr } from "@chakra-ui/shared-utils";
3618
3777
  import { Check, Close as Close4 } from "@ctlyst.id/internal-icon";
3619
3778
  import { useMemo as useMemo4 } from "react";
3620
- import { jsx as jsx55, jsxs as jsxs23 } from "react/jsx-runtime";
3779
+ import { jsx as jsx56, jsxs as jsxs24 } from "react/jsx-runtime";
3621
3780
  var Switch = forwardRef13(function Switch2(props, ref) {
3622
3781
  const styles = useMultiStyleConfig2("Switch", props);
3623
3782
  const { spacing: spacing2 = "0.5rem", children, ...ownProps } = omitThemingProps2(props);
@@ -3660,7 +3819,7 @@ var Switch = forwardRef13(function Switch2(props, ref) {
3660
3819
  };
3661
3820
  return iconSize[value];
3662
3821
  };
3663
- return /* @__PURE__ */ jsxs23(
3822
+ return /* @__PURE__ */ jsxs24(
3664
3823
  chakra6.label,
3665
3824
  {
3666
3825
  ...getRootProps(),
@@ -3669,13 +3828,13 @@ var Switch = forwardRef13(function Switch2(props, ref) {
3669
3828
  className: cx9("chakra-switch", props.className),
3670
3829
  __css: containerStyles,
3671
3830
  children: [
3672
- /* @__PURE__ */ jsx55("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
3673
- /* @__PURE__ */ jsxs23(chakra6.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
3674
- /* @__PURE__ */ jsxs23(Flex8, { gap: 2, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
3675
- /* @__PURE__ */ jsx55(Check, { color: "white", size: getIconSize(props.size) }),
3676
- /* @__PURE__ */ jsx55(Close4, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
3831
+ /* @__PURE__ */ jsx56("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
3832
+ /* @__PURE__ */ jsxs24(chakra6.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
3833
+ /* @__PURE__ */ jsxs24(Flex9, { gap: 2, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
3834
+ /* @__PURE__ */ jsx56(Check, { color: "white", size: getIconSize(props.size) }),
3835
+ /* @__PURE__ */ jsx56(Close4, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
3677
3836
  ] }),
3678
- /* @__PURE__ */ jsx55(
3837
+ /* @__PURE__ */ jsx56(
3679
3838
  chakra6.span,
3680
3839
  {
3681
3840
  __css: styles.thumb,
@@ -3685,7 +3844,7 @@ var Switch = forwardRef13(function Switch2(props, ref) {
3685
3844
  }
3686
3845
  )
3687
3846
  ] }),
3688
- children && /* @__PURE__ */ jsx55(
3847
+ children && /* @__PURE__ */ jsx56(
3689
3848
  chakra6.span,
3690
3849
  {
3691
3850
  className: "chakra-switch__label",
@@ -3721,14 +3880,14 @@ import {
3721
3880
  } from "@chakra-ui/react";
3722
3881
 
3723
3882
  // src/components/tabs/components/tab.tsx
3724
- import { Button as Button5, Flex as Flex9, forwardRef as forwardRef14, useMultiStyleConfig as useMultiStyleConfig3, useTab } from "@chakra-ui/react";
3725
- import { jsx as jsx56, jsxs as jsxs24 } from "react/jsx-runtime";
3883
+ import { Button as Button5, Flex as Flex10, forwardRef as forwardRef14, useMultiStyleConfig as useMultiStyleConfig3, useTab } from "@chakra-ui/react";
3884
+ import { jsx as jsx57, jsxs as jsxs25 } from "react/jsx-runtime";
3726
3885
  var Tab = forwardRef14((props, ref) => {
3727
3886
  var _a, _b;
3728
3887
  const tabProps = useTab({ ...props, ref });
3729
3888
  const isSelected = !!tabProps["aria-selected"];
3730
3889
  const styles = useMultiStyleConfig3("Tabs", tabProps);
3731
- return /* @__PURE__ */ jsx56(
3890
+ return /* @__PURE__ */ jsx57(
3732
3891
  Button5,
3733
3892
  {
3734
3893
  "data-test-id": props["data-test-id"],
@@ -3754,7 +3913,7 @@ var Tab = forwardRef14((props, ref) => {
3754
3913
  },
3755
3914
  __css: styles.tab,
3756
3915
  ...tabProps,
3757
- children: /* @__PURE__ */ jsxs24(Flex9, { alignItems: "center", children: [
3916
+ children: /* @__PURE__ */ jsxs25(Flex10, { alignItems: "center", children: [
3758
3917
  (_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
3759
3918
  tabProps.children,
3760
3919
  (_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
@@ -3800,13 +3959,13 @@ import {
3800
3959
  } from "@chakra-ui/react";
3801
3960
 
3802
3961
  // src/components/text/index.ts
3803
- import { Code, CodeProps, Heading, HeadingProps, Link as Link4, LinkProps, Text as Text14, TextProps } from "@chakra-ui/react";
3962
+ import { Code, CodeProps, Heading, HeadingProps, Link as Link4, LinkProps, Text as Text15, TextProps } from "@chakra-ui/react";
3804
3963
 
3805
3964
  // src/components/tooltip/index.ts
3806
3965
  import { Tooltip, TooltipProps } from "@chakra-ui/react";
3807
3966
 
3808
3967
  // src/components/uploader/components/uploader.tsx
3809
- import { Flex as Flex10, Heading as Heading2, Stack as Stack4, Text as Text15 } from "@chakra-ui/react";
3968
+ import { Flex as Flex11, Heading as Heading2, Stack as Stack4, Text as Text16 } from "@chakra-ui/react";
3810
3969
  import * as React15 from "react";
3811
3970
  import { useDropzone } from "react-dropzone";
3812
3971
 
@@ -3820,7 +3979,7 @@ var messages = {
3820
3979
  };
3821
3980
 
3822
3981
  // src/components/uploader/components/uploader.tsx
3823
- import { jsx as jsx57, jsxs as jsxs25 } from "react/jsx-runtime";
3982
+ import { jsx as jsx58, jsxs as jsxs26 } from "react/jsx-runtime";
3824
3983
  var Uploader = ({
3825
3984
  onHandleUploadFile,
3826
3985
  onHandleRejections,
@@ -3868,9 +4027,9 @@ var Uploader = ({
3868
4027
  React15.useEffect(() => {
3869
4028
  setIsSelected(selected != null ? selected : false);
3870
4029
  }, [selected]);
3871
- return /* @__PURE__ */ jsxs25(Stack4, { direction: "column", children: [
3872
- /* @__PURE__ */ jsxs25(
3873
- Flex10,
4030
+ return /* @__PURE__ */ jsxs26(Stack4, { direction: "column", children: [
4031
+ /* @__PURE__ */ jsxs26(
4032
+ Flex11,
3874
4033
  {
3875
4034
  minH: 200,
3876
4035
  border: "1px dashed",
@@ -3881,11 +4040,11 @@ var Uploader = ({
3881
4040
  ...props,
3882
4041
  ...getRootProps(),
3883
4042
  children: [
3884
- /* @__PURE__ */ jsx57("input", { ...getInputProps() }),
3885
- isDragActive ? /* @__PURE__ */ jsx57(Text15, { children: messages.dragActive }) : /* @__PURE__ */ jsxs25(Flex10, { flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : "primary.500", children: [
3886
- !multiple && isSelected && /* @__PURE__ */ jsx57(Heading2, { fontWeight: 400, fontSize: "18px", lineHeight: 28, color: "black.high", mb: 2, children: selectedFirstFile == null ? void 0 : selectedFirstFile.name }),
3887
- !isSelected && /* @__PURE__ */ jsx57(Heading2, { fontWeight: 400, fontSize: "18px", lineHeight: 28, mb: 2, children: messages.uploadFile }),
3888
- isSelected ? /* @__PURE__ */ jsx57(Text15, { children: messages.dragReplace }) : /* @__PURE__ */ jsx57(Text15, { children: messages.dragInActive })
4043
+ /* @__PURE__ */ jsx58("input", { ...getInputProps() }),
4044
+ isDragActive ? /* @__PURE__ */ jsx58(Text16, { children: messages.dragActive }) : /* @__PURE__ */ jsxs26(Flex11, { flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : "primary.500", children: [
4045
+ !multiple && isSelected && /* @__PURE__ */ jsx58(Heading2, { fontWeight: 400, fontSize: "18px", lineHeight: 28, color: "black.high", mb: 2, children: selectedFirstFile == null ? void 0 : selectedFirstFile.name }),
4046
+ !isSelected && /* @__PURE__ */ jsx58(Heading2, { fontWeight: 400, fontSize: "18px", lineHeight: 28, mb: 2, children: messages.uploadFile }),
4047
+ isSelected ? /* @__PURE__ */ jsx58(Text16, { children: messages.dragReplace }) : /* @__PURE__ */ jsx58(Text16, { children: messages.dragInActive })
3889
4048
  ] })
3890
4049
  ]
3891
4050
  }
@@ -3965,6 +4124,7 @@ __export(components_exports, {
3965
4124
  Input: () => input_default,
3966
4125
  LoaderStyle: () => loader_default2,
3967
4126
  Modal: () => modal_default,
4127
+ Popover: () => popover_default,
3968
4128
  Radio: () => radio_default,
3969
4129
  Switch: () => switch_default2,
3970
4130
  Table: () => table_default,
@@ -4582,14 +4742,14 @@ var variants2 = {
4582
4742
  errors,
4583
4743
  unstyled
4584
4744
  };
4585
- var Checkbox3 = defineMultiStyleConfig3({
4745
+ var Checkbox4 = defineMultiStyleConfig3({
4586
4746
  baseStyle: baseStyle3,
4587
4747
  variants: variants2,
4588
4748
  defaultProps: {
4589
4749
  variant: "unstyled"
4590
4750
  }
4591
4751
  });
4592
- var checkbox_default2 = Checkbox3;
4752
+ var checkbox_default2 = Checkbox4;
4593
4753
 
4594
4754
  // src/config/theme/components/chips.ts
4595
4755
  import { defineStyleConfig as defineStyleConfig3 } from "@chakra-ui/styled-system";
@@ -4905,11 +5065,23 @@ var Modal3 = defineStyleConfig6({
4905
5065
  });
4906
5066
  var modal_default = Modal3;
4907
5067
 
4908
- // src/config/theme/components/radio.ts
4909
- import { radioAnatomy } from "@chakra-ui/anatomy";
5068
+ // src/config/theme/components/popover.ts
5069
+ import { popoverAnatomy as parts4 } from "@chakra-ui/anatomy";
4910
5070
  import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers5 } from "@chakra-ui/react";
4911
- var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = createMultiStyleConfigHelpers5(radioAnatomy.keys);
5071
+ var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = createMultiStyleConfigHelpers5(parts4.keys);
4912
5072
  var baseStyle6 = definePartsStyle5({
5073
+ content: {
5074
+ bg: "white"
5075
+ }
5076
+ });
5077
+ var popoverTheme = defineMultiStyleConfig5({ baseStyle: baseStyle6 });
5078
+ var popover_default = popoverTheme;
5079
+
5080
+ // src/config/theme/components/radio.ts
5081
+ import { radioAnatomy } from "@chakra-ui/anatomy";
5082
+ import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers6 } from "@chakra-ui/react";
5083
+ var { definePartsStyle: definePartsStyle6, defineMultiStyleConfig: defineMultiStyleConfig6 } = createMultiStyleConfigHelpers6(radioAnatomy.keys);
5084
+ var baseStyle7 = definePartsStyle6({
4913
5085
  control: {
4914
5086
  border: "1px solid",
4915
5087
  width: "16px",
@@ -4925,7 +5097,7 @@ var baseStyle6 = definePartsStyle5({
4925
5097
  }
4926
5098
  }
4927
5099
  });
4928
- var errors2 = definePartsStyle5({
5100
+ var errors2 = definePartsStyle6({
4929
5101
  control: {
4930
5102
  borderColor: "danger.500",
4931
5103
  _checked: {
@@ -4960,7 +5132,7 @@ var errors2 = definePartsStyle5({
4960
5132
  fontSize: "12px"
4961
5133
  }
4962
5134
  });
4963
- var unstyled3 = definePartsStyle5({
5135
+ var unstyled3 = definePartsStyle6({
4964
5136
  control: {
4965
5137
  borderColor: "neutral.600",
4966
5138
  _checked: {
@@ -4999,8 +5171,8 @@ var variants4 = {
4999
5171
  errors: errors2,
5000
5172
  unstyled: unstyled3
5001
5173
  };
5002
- var Radio2 = defineMultiStyleConfig5({
5003
- baseStyle: baseStyle6,
5174
+ var Radio2 = defineMultiStyleConfig6({
5175
+ baseStyle: baseStyle7,
5004
5176
  variants: variants4,
5005
5177
  defaultProps: {
5006
5178
  variant: "unstyled"
@@ -5009,10 +5181,10 @@ var Radio2 = defineMultiStyleConfig5({
5009
5181
  var radio_default = Radio2;
5010
5182
 
5011
5183
  // src/config/theme/components/switch.ts
5012
- import { switchAnatomy as parts4 } from "@chakra-ui/anatomy";
5013
- import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers6, defineStyle as defineStyle4 } from "@chakra-ui/styled-system";
5184
+ import { switchAnatomy as parts5 } from "@chakra-ui/anatomy";
5185
+ import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers7, defineStyle as defineStyle4 } from "@chakra-ui/styled-system";
5014
5186
  import { calc, cssVar as cssVar2 } from "@chakra-ui/theme-tools";
5015
- var { defineMultiStyleConfig: defineMultiStyleConfig6, definePartsStyle: definePartsStyle6 } = createMultiStyleConfigHelpers6(parts4.keys);
5187
+ var { defineMultiStyleConfig: defineMultiStyleConfig7, definePartsStyle: definePartsStyle7 } = createMultiStyleConfigHelpers7(parts5.keys);
5016
5188
  var $width = cssVar2("switch-track-width");
5017
5189
  var $height = cssVar2("switch-track-height");
5018
5190
  var $diff = cssVar2("switch-track-diff");
@@ -5029,7 +5201,7 @@ var baseStyleThumb = defineStyle4({
5029
5201
  transform: `translateX(${$translateX.reference})`
5030
5202
  }
5031
5203
  });
5032
- var baseStyle7 = definePartsStyle6(() => ({
5204
+ var baseStyle8 = definePartsStyle7(() => ({
5033
5205
  container: {
5034
5206
  [$diff.variable]: diffValue,
5035
5207
  [$translateX.variable]: $diff.reference,
@@ -5054,7 +5226,7 @@ var baseStyle7 = definePartsStyle6(() => ({
5054
5226
  thumb: baseStyleThumb
5055
5227
  }));
5056
5228
  var sizes3 = {
5057
- sm: definePartsStyle6({
5229
+ sm: definePartsStyle7({
5058
5230
  container: {
5059
5231
  [$width.variable]: "1.875rem",
5060
5232
  [$height.variable]: "0.75rem"
@@ -5064,7 +5236,7 @@ var sizes3 = {
5064
5236
  [$height.variable]: "0.75rem"
5065
5237
  }
5066
5238
  }),
5067
- md: definePartsStyle6({
5239
+ md: definePartsStyle7({
5068
5240
  container: {
5069
5241
  [$width.variable]: "2.375rem",
5070
5242
  [$height.variable]: "1rem"
@@ -5074,7 +5246,7 @@ var sizes3 = {
5074
5246
  [$height.variable]: "1rem"
5075
5247
  }
5076
5248
  }),
5077
- lg: definePartsStyle6({
5249
+ lg: definePartsStyle7({
5078
5250
  container: {
5079
5251
  [$width.variable]: "3.25rem",
5080
5252
  [$height.variable]: "1.375rem"
@@ -5085,8 +5257,8 @@ var sizes3 = {
5085
5257
  }
5086
5258
  })
5087
5259
  };
5088
- var Switch3 = defineMultiStyleConfig6({
5089
- baseStyle: baseStyle7,
5260
+ var Switch3 = defineMultiStyleConfig7({
5261
+ baseStyle: baseStyle8,
5090
5262
  sizes: sizes3,
5091
5263
  defaultProps: {
5092
5264
  size: "md"
@@ -5095,14 +5267,15 @@ var Switch3 = defineMultiStyleConfig6({
5095
5267
  var switch_default2 = Switch3;
5096
5268
 
5097
5269
  // src/config/theme/components/table.ts
5098
- import { tableAnatomy as parts5 } from "@chakra-ui/anatomy";
5099
- import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers7, defineStyle as defineStyle5 } from "@chakra-ui/styled-system";
5270
+ import { tableAnatomy as parts6 } from "@chakra-ui/anatomy";
5271
+ import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers8, defineStyle as defineStyle5 } from "@chakra-ui/styled-system";
5100
5272
  import { mode as mode2 } from "@chakra-ui/theme-tools";
5101
- var { defineMultiStyleConfig: defineMultiStyleConfig7, definePartsStyle: definePartsStyle7 } = createMultiStyleConfigHelpers7(parts5.keys);
5102
- var baseStyle8 = definePartsStyle7({
5273
+ var { defineMultiStyleConfig: defineMultiStyleConfig8, definePartsStyle: definePartsStyle8 } = createMultiStyleConfigHelpers8(parts6.keys);
5274
+ var baseStyle9 = definePartsStyle8({
5103
5275
  table: {
5104
5276
  fontVariantNumeric: "lining-nums tabular-nums",
5105
- borderCollapse: "collapse",
5277
+ borderCollapse: "separate",
5278
+ borderSpacing: 0,
5106
5279
  width: "full",
5107
5280
  tableLayout: "fixed"
5108
5281
  },
@@ -5128,15 +5301,25 @@ var baseStyle8 = definePartsStyle7({
5128
5301
  tr: {
5129
5302
  cursor: "pointer",
5130
5303
  _hover: {
5131
- backgroundColor: "neutral.200"
5304
+ td: {
5305
+ backgroundColor: "neutral.200",
5306
+ "&>div": {
5307
+ backgroundColor: "neutral.200"
5308
+ }
5309
+ }
5132
5310
  },
5133
5311
  '&[data-active="true"]': {
5134
- backgroundColor: "neutral.100"
5312
+ td: {
5313
+ backgroundColor: "neutral.100",
5314
+ "&>div": {
5315
+ backgroundColor: "neutral.200"
5316
+ }
5317
+ }
5135
5318
  }
5136
5319
  }
5137
5320
  },
5138
5321
  td: {
5139
- backgroundColor: "neutral.50",
5322
+ // backgroundColor: 'neutral.50',
5140
5323
  textAlign: "start",
5141
5324
  height: "56px",
5142
5325
  "&:first-of-type": {
@@ -5161,7 +5344,7 @@ var numericStyles = defineStyle5({
5161
5344
  textAlign: "end"
5162
5345
  }
5163
5346
  });
5164
- var variantSimple = definePartsStyle7((props) => {
5347
+ var variantSimple = definePartsStyle8((props) => {
5165
5348
  const { colorScheme: c } = props;
5166
5349
  return {
5167
5350
  th: {
@@ -5187,7 +5370,7 @@ var variantSimple = definePartsStyle7((props) => {
5187
5370
  }
5188
5371
  };
5189
5372
  });
5190
- var variantStripe = definePartsStyle7((props) => {
5373
+ var variantStripe = definePartsStyle8((props) => {
5191
5374
  const { colorScheme: c } = props;
5192
5375
  return {
5193
5376
  th: {
@@ -5232,7 +5415,7 @@ var variants5 = {
5232
5415
  unstyled: defineStyle5({})
5233
5416
  };
5234
5417
  var sizes4 = {
5235
- sm: definePartsStyle7({
5418
+ sm: definePartsStyle8({
5236
5419
  th: {
5237
5420
  px: "2",
5238
5421
  py: "4",
@@ -5251,7 +5434,7 @@ var sizes4 = {
5251
5434
  fontSize: "xs"
5252
5435
  }
5253
5436
  }),
5254
- md: definePartsStyle7({
5437
+ md: definePartsStyle8({
5255
5438
  th: {
5256
5439
  px: "2",
5257
5440
  py: "4",
@@ -5269,7 +5452,7 @@ var sizes4 = {
5269
5452
  fontSize: "sm"
5270
5453
  }
5271
5454
  }),
5272
- lg: definePartsStyle7({
5455
+ lg: definePartsStyle8({
5273
5456
  th: {
5274
5457
  px: "2",
5275
5458
  py: "4",
@@ -5288,8 +5471,8 @@ var sizes4 = {
5288
5471
  }
5289
5472
  })
5290
5473
  };
5291
- var tableTheme = defineMultiStyleConfig7({
5292
- baseStyle: baseStyle8,
5474
+ var tableTheme = defineMultiStyleConfig8({
5475
+ baseStyle: baseStyle9,
5293
5476
  variants: variants5,
5294
5477
  sizes: sizes4,
5295
5478
  defaultProps: {
@@ -5301,10 +5484,10 @@ var tableTheme = defineMultiStyleConfig7({
5301
5484
  var table_default = tableTheme;
5302
5485
 
5303
5486
  // src/config/theme/components/tabs.ts
5304
- import { tabsAnatomy as parts6 } from "@chakra-ui/anatomy";
5305
- import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers8 } from "@chakra-ui/styled-system";
5306
- var { defineMultiStyleConfig: defineMultiStyleConfig8, definePartsStyle: definePartsStyle8 } = createMultiStyleConfigHelpers8(parts6.keys);
5307
- var variantLine = definePartsStyle8((props) => {
5487
+ import { tabsAnatomy as parts7 } from "@chakra-ui/anatomy";
5488
+ import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers9 } from "@chakra-ui/styled-system";
5489
+ var { defineMultiStyleConfig: defineMultiStyleConfig9, definePartsStyle: definePartsStyle9 } = createMultiStyleConfigHelpers9(parts7.keys);
5490
+ var variantLine = definePartsStyle9((props) => {
5308
5491
  const { orientation } = props;
5309
5492
  const isVertical = orientation === "vertical";
5310
5493
  const borderProp = isVertical ? "borderStart" : "borderBottom";
@@ -5321,12 +5504,12 @@ var variantLine = definePartsStyle8((props) => {
5321
5504
  }
5322
5505
  };
5323
5506
  });
5324
- var variantUnstyled = definePartsStyle8({});
5507
+ var variantUnstyled = definePartsStyle9({});
5325
5508
  var variants6 = {
5326
5509
  line: variantLine,
5327
5510
  unstyled: variantUnstyled
5328
5511
  };
5329
- var tabsTheme = defineMultiStyleConfig8({
5512
+ var tabsTheme = defineMultiStyleConfig9({
5330
5513
  variants: variants6,
5331
5514
  defaultProps: {
5332
5515
  size: "md",
@@ -5411,12 +5594,12 @@ var textarea_default2 = Textarea;
5411
5594
  // src/config/theme/components/tooltip.ts
5412
5595
  import { cssVar as cssVar3, defineStyleConfig as defineStyleConfig8 } from "@chakra-ui/react";
5413
5596
  var $arrowBg = cssVar3("popper-arrow-bg");
5414
- var baseStyle9 = {
5597
+ var baseStyle10 = {
5415
5598
  bg: "neutral.700",
5416
5599
  fontSize: "text.sm",
5417
5600
  [$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
5418
5601
  };
5419
- var Tooltip2 = defineStyleConfig8({ baseStyle: baseStyle9 });
5602
+ var Tooltip2 = defineStyleConfig8({ baseStyle: baseStyle10 });
5420
5603
  var tooltip_default = Tooltip2;
5421
5604
 
5422
5605
  // src/config/theme/themeConfiguration.ts
@@ -5468,7 +5651,7 @@ import { useMemo as useMemo7 } from "react";
5468
5651
  import axios from "axios";
5469
5652
  import { createContext as createContext2, useContext, useEffect as useEffect3, useMemo as useMemo6, useRef as useRef2 } from "react";
5470
5653
  import { ToastContainer } from "react-toastify";
5471
- import { jsx as jsx58, jsxs as jsxs26 } from "react/jsx-runtime";
5654
+ import { jsx as jsx59, jsxs as jsxs27 } from "react/jsx-runtime";
5472
5655
  var ProviderContext = createContext2({
5473
5656
  instance: void 0
5474
5657
  });
@@ -5487,8 +5670,8 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
5487
5670
  });
5488
5671
  }, [requestInterceptors, responseInterceptors]);
5489
5672
  const provider = useMemo6(() => ({ instance: instanceRef.current }), []);
5490
- return /* @__PURE__ */ jsxs26(ProviderContext.Provider, { value: provider, children: [
5491
- /* @__PURE__ */ jsx58(ToastContainer, {}),
5673
+ return /* @__PURE__ */ jsxs27(ProviderContext.Provider, { value: provider, children: [
5674
+ /* @__PURE__ */ jsx59(ToastContainer, {}),
5492
5675
  children
5493
5676
  ] });
5494
5677
  };
@@ -5530,7 +5713,7 @@ function useFetcher() {
5530
5713
  import {
5531
5714
  useBoolean,
5532
5715
  useClipboard,
5533
- useColorMode as useColorMode7,
5716
+ useColorMode as useColorMode8,
5534
5717
  useColorModeValue as useColorModeValue12,
5535
5718
  useConst,
5536
5719
  useControllableProp,
@@ -5588,6 +5771,7 @@ export {
5588
5771
  button_default as Button,
5589
5772
  ButtonGroup,
5590
5773
  ButtonGroupProps,
5774
+ CHECKBOX_STATE,
5591
5775
  card_default as Card,
5592
5776
  Center,
5593
5777
  ChakraProvider,
@@ -5734,6 +5918,7 @@ export {
5734
5918
  select_default as Select,
5735
5919
  select_async_default as SelectAsync,
5736
5920
  SelectAsyncCreatable,
5921
+ select_with_checkbox_default as SelectCheckBox,
5737
5922
  SelectCreatable,
5738
5923
  Show,
5739
5924
  ShowProps,
@@ -5778,7 +5963,7 @@ export {
5778
5963
  TabsProvider,
5779
5964
  Tbody2 as Tbody,
5780
5965
  Td2 as Td,
5781
- Text14 as Text,
5966
+ Text15 as Text,
5782
5967
  TextProps,
5783
5968
  textarea_default as TextareaField,
5784
5969
  Th2 as Th,
@@ -5824,6 +6009,7 @@ export {
5824
6009
  WrapProps,
5825
6010
  extendTheme2 as extendTheme,
5826
6011
  forwardRef15 as forwardRef,
6012
+ getSelectAllCheckboxState,
5827
6013
  getTheme,
5828
6014
  theme5 as theme,
5829
6015
  useAccordion,
@@ -5837,7 +6023,7 @@ export {
5837
6023
  useCheckbox,
5838
6024
  useCheckboxGroup,
5839
6025
  useClipboard,
5840
- useColorMode7 as useColorMode,
6026
+ useColorMode8 as useColorMode,
5841
6027
  useColorModePreference,
5842
6028
  useColorModeValue12 as useColorModeValue,
5843
6029
  useConst,