@ctlyst.id/internal-ui 5.4.13 → 5.5.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
@@ -1463,7 +1463,19 @@ var DataTable = React5.forwardRef((props, ref) => {
1463
1463
  Box11,
1464
1464
  {
1465
1465
  onMouseUp: (e) => {
1466
- e.stopPropagation();
1466
+ var _a2, _b2;
1467
+ const stopPropagationList = ["BUTTON", "LABEL", "INPUT", "A", "BODY"];
1468
+ const targetNode = e.target;
1469
+ let currentNode = targetNode;
1470
+ while (((_a2 = currentNode.parentElement) == null ? void 0 : _a2.nodeName) && !["TD"].includes((_b2 = currentNode.parentElement) == null ? void 0 : _b2.nodeName)) {
1471
+ if (stopPropagationList.includes(currentNode.nodeName)) {
1472
+ e.stopPropagation();
1473
+ break;
1474
+ }
1475
+ if (currentNode.parentElement) {
1476
+ currentNode = currentNode.parentElement;
1477
+ }
1478
+ }
1467
1479
  },
1468
1480
  ...cellLineClamp > 0 ? {
1469
1481
  noOfLines: cellLineClamp,
@@ -4281,16 +4293,28 @@ import {
4281
4293
  UsePinInputReturn
4282
4294
  } from "@chakra-ui/react";
4283
4295
 
4296
+ // src/components/popover/PopoverContent.tsx
4297
+ import { forwardRef as forwardRef10, PopoverArrow as PopoverArrow3, PopoverContent as ChakraPopoverContent } from "@chakra-ui/react";
4298
+ import React11 from "react";
4299
+ import { jsx as jsx50 } from "react/jsx-runtime";
4300
+ var PopoverContent5 = forwardRef10((props, ref) => {
4301
+ const { children, ...rest } = props;
4302
+ const hasArrow = React11.Children.toArray(children).some((child) => {
4303
+ return React11.isValidElement(child) && child.type === PopoverArrow3;
4304
+ });
4305
+ return /* @__PURE__ */ jsx50(ChakraPopoverContent, { ...!hasArrow ? { mt: -1 } : {}, ...rest, ref, children });
4306
+ });
4307
+ var PopoverContent_default = PopoverContent5;
4308
+
4284
4309
  // src/components/popover/index.ts
4285
4310
  import {
4286
4311
  Popover as Popover5,
4287
4312
  PopoverAnchor,
4288
- PopoverArrow as PopoverArrow3,
4313
+ PopoverArrow as PopoverArrow4,
4289
4314
  PopoverArrowProps,
4290
4315
  PopoverBody as PopoverBody3,
4291
4316
  PopoverBodyProps,
4292
4317
  PopoverCloseButton,
4293
- PopoverContent as PopoverContent5,
4294
4318
  PopoverContentProps,
4295
4319
  PopoverFooter,
4296
4320
  PopoverFooterProps,
@@ -4315,12 +4339,12 @@ import {
4315
4339
 
4316
4340
  // src/components/radio/components/radio.tsx
4317
4341
  import { Box as Box25, Radio as ChakraRadio, Text as Text13 } from "@chakra-ui/react";
4318
- import { jsx as jsx50, jsxs as jsxs23 } from "react/jsx-runtime";
4342
+ import { jsx as jsx51, jsxs as jsxs23 } from "react/jsx-runtime";
4319
4343
  var Radio = ({ isError = false, helpText, errorText, children, isDisabled, ...rest }) => {
4320
4344
  const variant = isError ? "errors" : "unstyled";
4321
4345
  return /* @__PURE__ */ jsxs23(Box25, { children: [
4322
- /* @__PURE__ */ jsx50(Box25, { display: "flex", children: /* @__PURE__ */ jsx50(ChakraRadio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ jsx50(Text13, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
4323
- isError && errorText ? /* @__PURE__ */ jsx50(Box25, { mt: "2", ml: "6", children: /* @__PURE__ */ jsx50(Text13, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) }) : helpText ? /* @__PURE__ */ jsx50(Box25, { mt: "2", ml: "6", children: /* @__PURE__ */ jsx50(Text13, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) }) : null
4346
+ /* @__PURE__ */ jsx51(Box25, { display: "flex", children: /* @__PURE__ */ jsx51(ChakraRadio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ jsx51(Text13, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
4347
+ isError && errorText ? /* @__PURE__ */ jsx51(Box25, { mt: "2", ml: "6", children: /* @__PURE__ */ jsx51(Text13, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) }) : helpText ? /* @__PURE__ */ jsx51(Box25, { mt: "2", ml: "6", children: /* @__PURE__ */ jsx51(Text13, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) }) : null
4324
4348
  ] });
4325
4349
  };
4326
4350
  Radio.displayName = "Radio";
@@ -4332,7 +4356,7 @@ Radio.defaultProps = {
4332
4356
 
4333
4357
  // src/components/radio/components/radio-group.tsx
4334
4358
  import { Box as Box26, RadioGroup as ChakraRadioGroup, Stack as Stack3 } from "@chakra-ui/react";
4335
- import { jsx as jsx51 } from "react/jsx-runtime";
4359
+ import { jsx as jsx52 } from "react/jsx-runtime";
4336
4360
  var RadioGroup = ({
4337
4361
  children,
4338
4362
  label,
@@ -4341,7 +4365,7 @@ var RadioGroup = ({
4341
4365
  errorMessage,
4342
4366
  ...props
4343
4367
  }) => {
4344
- return /* @__PURE__ */ jsx51(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ jsx51(Box26, { mt: "2", mb: "1", children: /* @__PURE__ */ jsx51(ChakraRadioGroup, { ...props, children: /* @__PURE__ */ jsx51(Stack3, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
4368
+ return /* @__PURE__ */ jsx52(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ jsx52(Box26, { mt: "2", mb: "1", children: /* @__PURE__ */ jsx52(ChakraRadioGroup, { ...props, children: /* @__PURE__ */ jsx52(Stack3, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
4345
4369
  };
4346
4370
  RadioGroup.displayName = "RadioGroup";
4347
4371
  RadioGroup.defaultProps = {
@@ -4364,9 +4388,9 @@ import {
4364
4388
  // src/components/rating/components/rating.tsx
4365
4389
  import { Grid as Grid2 } from "@chakra-ui/react";
4366
4390
  import { Rating as RatingIcon } from "@ctlyst.id/internal-icon";
4367
- import { jsx as jsx52 } from "react/jsx-runtime";
4391
+ import { jsx as jsx53 } from "react/jsx-runtime";
4368
4392
  var Rating = ({ value }) => {
4369
- return /* @__PURE__ */ jsx52(Grid2, { gap: "4px", display: "flex", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsx52(RatingIcon, { color: i < value ? "#FFA230" : "#E0E0E0", size: 24 })) });
4393
+ return /* @__PURE__ */ jsx53(Grid2, { gap: "4px", display: "flex", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsx53(RatingIcon, { color: i < value ? "#FFA230" : "#E0E0E0", size: 24 })) });
4370
4394
  };
4371
4395
  var rating_default = Rating;
4372
4396
 
@@ -4748,22 +4772,22 @@ var themeSelect = (theme5) => {
4748
4772
  };
4749
4773
 
4750
4774
  // src/components/select/components/select.tsx
4751
- import { jsx as jsx53 } from "react/jsx-runtime";
4775
+ import { jsx as jsx54 } from "react/jsx-runtime";
4752
4776
  function DropdownIndicator(props) {
4753
- return /* @__PURE__ */ jsx53(componentRS.DropdownIndicator, { ...props, children: /* @__PURE__ */ jsx53(Icon7.ChevronDown, { size: 4, color: "neutral.400" }) });
4777
+ return /* @__PURE__ */ jsx54(componentRS.DropdownIndicator, { ...props, children: /* @__PURE__ */ jsx54(Icon7.ChevronDown, { size: 4, color: "neutral.400" }) });
4754
4778
  }
4755
4779
  function ClearIndicator(props) {
4756
4780
  const { hasValue } = props;
4757
- return /* @__PURE__ */ jsx53(componentRS.ClearIndicator, { ...props, children: /* @__PURE__ */ jsx53(Icon7.Close, { size: 4, color: hasValue ? "black.medium" : "neutral.400" }) });
4781
+ return /* @__PURE__ */ jsx54(componentRS.ClearIndicator, { ...props, children: /* @__PURE__ */ jsx54(Icon7.Close, { size: 4, color: hasValue ? "black.medium" : "neutral.400" }) });
4758
4782
  }
4759
4783
  function MultiValue(props) {
4760
- return /* @__PURE__ */ jsx53(componentRS.MultiValue, { ...props, children: /* @__PURE__ */ jsx53(Badge2, { pr: 0, variant: "neutral-light", children: props == null ? void 0 : props.data.label }) });
4784
+ return /* @__PURE__ */ jsx54(componentRS.MultiValue, { ...props, children: /* @__PURE__ */ jsx54(Badge2, { pr: 0, variant: "neutral-light", children: props == null ? void 0 : props.data.label }) });
4761
4785
  }
4762
4786
  function MultiValueRemove(props) {
4763
- return /* @__PURE__ */ jsx53(componentRS.MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx53(Flex11, { align: "center", justify: "center", children: /* @__PURE__ */ jsx53(Icon7.Close, { size: 2.5, color: "inherit" }) }) });
4787
+ return /* @__PURE__ */ jsx54(componentRS.MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx54(Flex11, { align: "center", justify: "center", children: /* @__PURE__ */ jsx54(Icon7.Close, { size: 2.5, color: "inherit" }) }) });
4764
4788
  }
4765
4789
  function NoOptionsMessage(props) {
4766
- return /* @__PURE__ */ jsx53(Center2, { textStyle: "text.xs", py: "1.5", color: "black.medium", children: (props == null ? void 0 : props.options.length) === 0 ? "Opsi tidak tersedia" : "Hasil tidak ditemukan" });
4790
+ return /* @__PURE__ */ jsx54(Center2, { textStyle: "text.xs", py: "1.5", color: "black.medium", children: (props == null ? void 0 : props.options.length) === 0 ? "Opsi tidak tersedia" : "Hasil tidak ditemukan" });
4767
4791
  }
4768
4792
  function Select2({
4769
4793
  styles,
@@ -4772,7 +4796,7 @@ function Select2({
4772
4796
  }) {
4773
4797
  const { colorMode } = useColorMode3();
4774
4798
  const { components, value, onChange } = rest;
4775
- return /* @__PURE__ */ jsx53(
4799
+ return /* @__PURE__ */ jsx54(
4776
4800
  ReactSelect,
4777
4801
  {
4778
4802
  "data-test-id": "",
@@ -4799,7 +4823,7 @@ var select_default = Select2;
4799
4823
  // src/components/select/components/select-async.tsx
4800
4824
  import { useColorMode as useColorMode4 } from "@chakra-ui/system";
4801
4825
  import { AsyncPaginate } from "react-select-async-paginate";
4802
- import { jsx as jsx54 } from "react/jsx-runtime";
4826
+ import { jsx as jsx55 } from "react/jsx-runtime";
4803
4827
  function SelectAsync({
4804
4828
  styles,
4805
4829
  isError = false,
@@ -4807,7 +4831,7 @@ function SelectAsync({
4807
4831
  }) {
4808
4832
  const { colorMode } = useColorMode4();
4809
4833
  const { components } = rest;
4810
- return /* @__PURE__ */ jsx54(
4834
+ return /* @__PURE__ */ jsx55(
4811
4835
  AsyncPaginate,
4812
4836
  {
4813
4837
  classNamePrefix: "react-select",
@@ -4829,10 +4853,10 @@ var select_async_default = SelectAsync;
4829
4853
  // src/components/select/components/select-async-creatable.tsx
4830
4854
  import { useColorMode as useColorMode5 } from "@chakra-ui/system";
4831
4855
  import ReactSelectAsyncCreatable from "react-select/async-creatable";
4832
- import { jsx as jsx55 } from "react/jsx-runtime";
4856
+ import { jsx as jsx56 } from "react/jsx-runtime";
4833
4857
  function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
4834
4858
  const { colorMode } = useColorMode5();
4835
- return /* @__PURE__ */ jsx55(
4859
+ return /* @__PURE__ */ jsx56(
4836
4860
  ReactSelectAsyncCreatable,
4837
4861
  {
4838
4862
  classNamePrefix: "react-select",
@@ -4852,10 +4876,10 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
4852
4876
  // src/components/select/components/select-creatable.tsx
4853
4877
  import { useColorMode as useColorMode6 } from "@chakra-ui/system";
4854
4878
  import ReactSelectCreatable from "react-select/creatable";
4855
- import { jsx as jsx56 } from "react/jsx-runtime";
4879
+ import { jsx as jsx57 } from "react/jsx-runtime";
4856
4880
  function SelectCreatable({ styles, isError = false, ...rest }) {
4857
4881
  const { colorMode } = useColorMode6();
4858
- return /* @__PURE__ */ jsx56(
4882
+ return /* @__PURE__ */ jsx57(
4859
4883
  ReactSelectCreatable,
4860
4884
  {
4861
4885
  classNamePrefix: "react-select",
@@ -4876,7 +4900,7 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
4876
4900
  import { Checkbox as Checkbox2, Flex as Flex12, Text as Text14 } from "@chakra-ui/react";
4877
4901
  import { useColorMode as useColorMode7 } from "@chakra-ui/system";
4878
4902
  import ReactSelect2, { components as ComponentRS } from "react-select";
4879
- import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs24 } from "react/jsx-runtime";
4903
+ import { Fragment as Fragment8, jsx as jsx58, jsxs as jsxs24 } from "react/jsx-runtime";
4880
4904
  var CHECKBOX_STATE = {
4881
4905
  UNCHECKED: 0,
4882
4906
  INDETERMINATE: 1,
@@ -4924,7 +4948,7 @@ var InputOption = ({
4924
4948
  style
4925
4949
  };
4926
4950
  return /* @__PURE__ */ jsxs24(Fragment8, { children: [
4927
- /* @__PURE__ */ jsx57(
4951
+ /* @__PURE__ */ jsx58(
4928
4952
  ComponentRS.Option,
4929
4953
  {
4930
4954
  isMulti: true,
@@ -4944,7 +4968,7 @@ var InputOption = ({
4944
4968
  "data-test-id": "CT_component_select-checkbox_options",
4945
4969
  cursor: isDisabled ? "not-allowed" : "default",
4946
4970
  children: [
4947
- (data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ jsx57(
4971
+ (data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ jsx58(
4948
4972
  Checkbox2,
4949
4973
  {
4950
4974
  isChecked: checkedState === CHECKBOX_STATE.CHECKED,
@@ -4953,7 +4977,7 @@ var InputOption = ({
4953
4977
  pointerEvents: "none",
4954
4978
  "data-test-id": "CT_component_select-checkbox_select-all-option"
4955
4979
  }
4956
- ) : /* @__PURE__ */ jsx57(
4980
+ ) : /* @__PURE__ */ jsx58(
4957
4981
  Checkbox2,
4958
4982
  {
4959
4983
  pointerEvents: "none",
@@ -4961,13 +4985,13 @@ var InputOption = ({
4961
4985
  "data-test-id": "CT_component_select-checkbox_option-checkbox"
4962
4986
  }
4963
4987
  ),
4964
- /* @__PURE__ */ jsx57(Text14, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
4988
+ /* @__PURE__ */ jsx58(Text14, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
4965
4989
  ]
4966
4990
  }
4967
4991
  )
4968
4992
  }
4969
4993
  ),
4970
- (data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ jsx57("hr", {}) : null
4994
+ (data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ jsx58("hr", {}) : null
4971
4995
  ] });
4972
4996
  };
4973
4997
  var SelectWithCheckboxBase = ({
@@ -4980,7 +5004,7 @@ var SelectWithCheckboxBase = ({
4980
5004
  ...rest
4981
5005
  }) => {
4982
5006
  const { colorMode } = useColorMode7();
4983
- return /* @__PURE__ */ jsx57(
5007
+ return /* @__PURE__ */ jsx58(
4984
5008
  ReactSelect2,
4985
5009
  {
4986
5010
  "data-test-id": "",
@@ -5012,10 +5036,10 @@ var SelectCheckbox = (props) => {
5012
5036
  const optionLength = (options == null ? void 0 : options.length) ? options.length - 1 : 0;
5013
5037
  const selectedValue = isSelected ? CHECKBOX_STATE.CHECKED : CHECKBOX_STATE.UNCHECKED;
5014
5038
  const checkedState = data.selectAllCheckbox ? getSelectAllCheckboxState(selectValue == null ? void 0 : selectValue.length, optionLength) : selectedValue;
5015
- return /* @__PURE__ */ jsx57(InputOption, { ...optionProps, checkedState });
5039
+ return /* @__PURE__ */ jsx58(InputOption, { ...optionProps, checkedState });
5016
5040
  }
5017
5041
  };
5018
- return /* @__PURE__ */ jsx57(
5042
+ return /* @__PURE__ */ jsx58(
5019
5043
  SelectWithCheckboxBase,
5020
5044
  {
5021
5045
  "data-test-id": "",
@@ -5035,10 +5059,10 @@ var select_with_checkbox_default = SelectCheckbox;
5035
5059
  // src/components/sidebar/components/sidebar.tsx
5036
5060
  import { Flex as Flex13 } from "@chakra-ui/react";
5037
5061
  import { motion } from "framer-motion";
5038
- import { jsx as jsx58 } from "react/jsx-runtime";
5062
+ import { jsx as jsx59 } from "react/jsx-runtime";
5039
5063
  var Sidebar = ({ isCollapse, children, ...props }) => {
5040
5064
  const { width = "220px" } = props;
5041
- return /* @__PURE__ */ jsx58(
5065
+ return /* @__PURE__ */ jsx59(
5042
5066
  Flex13,
5043
5067
  {
5044
5068
  position: "relative",
@@ -5062,9 +5086,9 @@ Sidebar.displayName = "Sidebar";
5062
5086
  import { Box as Box27, Flex as Flex14, Text as Text15 } from "@chakra-ui/react";
5063
5087
  import { ArrowRight } from "@ctlyst.id/internal-icon";
5064
5088
  import { AnimatePresence, motion as motion2 } from "framer-motion";
5065
- import { jsx as jsx59, jsxs as jsxs25 } from "react/jsx-runtime";
5089
+ import { jsx as jsx60, jsxs as jsxs25 } from "react/jsx-runtime";
5066
5090
  var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
5067
- return /* @__PURE__ */ jsx59(
5091
+ return /* @__PURE__ */ jsx60(
5068
5092
  Box27,
5069
5093
  {
5070
5094
  px: "2",
@@ -5084,7 +5108,7 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
5084
5108
  onClick: () => setCollapse(!isCollapse),
5085
5109
  cursor: "pointer",
5086
5110
  children: [
5087
- /* @__PURE__ */ jsx59(
5111
+ /* @__PURE__ */ jsx60(
5088
5112
  Box27,
5089
5113
  {
5090
5114
  as: motion2.div,
@@ -5093,10 +5117,10 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
5093
5117
  animate: { rotate: isCollapse ? 0 : -180, x: isCollapse ? 8 : 0 },
5094
5118
  transitionTimingFunction: "linear",
5095
5119
  "aria-label": "toggle sidebar",
5096
- children: /* @__PURE__ */ jsx59(ArrowRight, { size: 4, color: "inherit" })
5120
+ children: /* @__PURE__ */ jsx60(ArrowRight, { size: 4, color: "inherit" })
5097
5121
  }
5098
5122
  ),
5099
- /* @__PURE__ */ jsx59(AnimatePresence, { children: !isCollapse && /* @__PURE__ */ jsx59(Box27, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ jsx59(
5123
+ /* @__PURE__ */ jsx60(AnimatePresence, { children: !isCollapse && /* @__PURE__ */ jsx60(Box27, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ jsx60(
5100
5124
  Text15,
5101
5125
  {
5102
5126
  as: motion2.div,
@@ -5140,28 +5164,28 @@ import {
5140
5164
  } from "@chakra-ui/react";
5141
5165
  import * as Icon8 from "@ctlyst.id/internal-icon";
5142
5166
  import { motion as motion3 } from "framer-motion";
5143
- import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs26 } from "react/jsx-runtime";
5167
+ import { Fragment as Fragment9, jsx as jsx61, jsxs as jsxs26 } from "react/jsx-runtime";
5144
5168
  var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, setActive, active }) => {
5145
- return /* @__PURE__ */ jsx60(
5169
+ return /* @__PURE__ */ jsx61(
5146
5170
  Box28,
5147
5171
  {
5148
5172
  as: motion3.div,
5149
5173
  transitionTimingFunction: "linear",
5150
5174
  initial: { padding: "8px" },
5151
5175
  animate: { padding: isCollapse ? "8px 16px" : "8px" },
5152
- children: /* @__PURE__ */ jsx60(Accordion2, { index: menu.findIndex((item) => item.children.some((child) => child.navLink === active)), children: menu.map((item) => {
5176
+ children: /* @__PURE__ */ jsx61(Accordion2, { index: menu.findIndex((item) => item.children.some((child) => child.navLink === active)), children: menu.map((item) => {
5153
5177
  const isActive = active == null ? void 0 : active.includes(item.navLink);
5154
- return /* @__PURE__ */ jsx60(AccordionItem2, { mt: "4", children: ({ isExpanded }) => {
5178
+ return /* @__PURE__ */ jsx61(AccordionItem2, { mt: "4", children: ({ isExpanded }) => {
5155
5179
  const isOpenOptions = isCollapse || !isCollapse && !isExpanded;
5156
5180
  const noChild = !item.children.length;
5157
5181
  const offsetStyle = isCollapse ? noChild ? [-5, 16] : [-1, 16] : [-1, 8];
5158
5182
  return /* @__PURE__ */ jsxs26(Fragment9, { children: [
5159
- /* @__PURE__ */ jsx60(Popover6, { trigger: "hover", placement: "right-start", offset: offsetStyle, children: ({ isOpen, onClose }) => {
5183
+ /* @__PURE__ */ jsx61(Popover6, { trigger: "hover", placement: "right-start", offset: offsetStyle, children: ({ isOpen, onClose }) => {
5160
5184
  const activeOption = isOpen ? "primary.50" : "white";
5161
5185
  const backgroundColor = isOpen && !isActive ? "primary.50" : "primary.100";
5162
5186
  const activeParent = isActive ? backgroundColor : activeOption;
5163
5187
  return /* @__PURE__ */ jsxs26(Fragment9, { children: [
5164
- /* @__PURE__ */ jsx60(PopoverTrigger6, { children: /* @__PURE__ */ jsx60(
5188
+ /* @__PURE__ */ jsx61(PopoverTrigger6, { children: /* @__PURE__ */ jsx61(
5165
5189
  AccordionButton2,
5166
5190
  {
5167
5191
  "data-test-id": `CTA_button-accordion-${item.title}`,
@@ -5180,7 +5204,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5180
5204
  position: "relative",
5181
5205
  ...itemStyles,
5182
5206
  children: [
5183
- mappingIcon2 && /* @__PURE__ */ jsx60(Box28, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
5207
+ mappingIcon2 && /* @__PURE__ */ jsx61(Box28, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
5184
5208
  !isCollapse && /* @__PURE__ */ jsxs26(
5185
5209
  Box28,
5186
5210
  {
@@ -5196,8 +5220,8 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5196
5220
  animate: { opacity: 1, x: 0 },
5197
5221
  exit: { opacity: 0, x: 16 },
5198
5222
  children: [
5199
- /* @__PURE__ */ jsx60(Box28, { h: "3.5", position: "relative", children: /* @__PURE__ */ jsx60(Text16, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) }),
5200
- !!item.children.length && /* @__PURE__ */ jsx60(
5223
+ /* @__PURE__ */ jsx61(Box28, { h: "3.5", position: "relative", children: /* @__PURE__ */ jsx61(Text16, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) }),
5224
+ !!item.children.length && /* @__PURE__ */ jsx61(
5201
5225
  Box28,
5202
5226
  {
5203
5227
  display: "flex",
@@ -5205,7 +5229,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5205
5229
  as: motion3.div,
5206
5230
  transitionTimingFunction: "linear",
5207
5231
  animate: { transform: isExpanded ? "rotate(-180deg)" : "rotate(0)" },
5208
- children: /* @__PURE__ */ jsx60(Icon8.ChevronDown, { size: 3 })
5232
+ children: /* @__PURE__ */ jsx61(Icon8.ChevronDown, { size: 3 })
5209
5233
  }
5210
5234
  )
5211
5235
  ]
@@ -5218,12 +5242,12 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5218
5242
  },
5219
5243
  item.id
5220
5244
  ) }, item.id),
5221
- isOpenOptions && /* @__PURE__ */ jsx60(Portal4, { children: item.children.length > 0 ? /* @__PURE__ */ jsxs26(PopoverContent6, { w: "176px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: [
5222
- /* @__PURE__ */ jsx60(PopoverHeader2, { borderColor: "neutral.300", textStyle: "text.xs", p: "2", children: mappingIcon2 && /* @__PURE__ */ jsxs26(Box28, { display: "flex", alignItems: "center", children: [
5245
+ isOpenOptions && /* @__PURE__ */ jsx61(Portal4, { children: item.children.length > 0 ? /* @__PURE__ */ jsxs26(PopoverContent6, { w: "176px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: [
5246
+ /* @__PURE__ */ jsx61(PopoverHeader2, { borderColor: "neutral.300", textStyle: "text.xs", p: "2", children: mappingIcon2 && /* @__PURE__ */ jsxs26(Box28, { display: "flex", alignItems: "center", children: [
5223
5247
  mappingIcon2.get(item.icon || ""),
5224
- /* @__PURE__ */ jsx60(Box28, { as: "span", ml: "2", children: item.title })
5248
+ /* @__PURE__ */ jsx61(Box28, { as: "span", ml: "2", children: item.title })
5225
5249
  ] }) }),
5226
- !!item.children.length && /* @__PURE__ */ jsx60(PopoverBody4, { pb: "1", px: "0", pt: "0", children: item.children.map((submenu) => /* @__PURE__ */ jsx60(
5250
+ !!item.children.length && /* @__PURE__ */ jsx61(PopoverBody4, { pb: "1", px: "0", pt: "0", children: item.children.map((submenu) => /* @__PURE__ */ jsx61(
5227
5251
  NavItem,
5228
5252
  {
5229
5253
  "data-test-id": `CTA_Sidebar-popover-item-${submenu.id}`,
@@ -5239,7 +5263,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5239
5263
  },
5240
5264
  submenu.id
5241
5265
  )) })
5242
- ] }) : isCollapse && /* @__PURE__ */ jsx60(PopoverContent6, { w: "174px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: /* @__PURE__ */ jsx60(PopoverBody4, { py: "1", px: "0", children: /* @__PURE__ */ jsxs26(
5266
+ ] }) : isCollapse && /* @__PURE__ */ jsx61(PopoverContent6, { w: "174px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: /* @__PURE__ */ jsx61(PopoverBody4, { py: "1", px: "0", children: /* @__PURE__ */ jsxs26(
5243
5267
  NavItem,
5244
5268
  {
5245
5269
  "data-test-id": `CTA_Sidebar-popover-item-${item.id}`,
@@ -5252,22 +5276,22 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5252
5276
  rounded: "none",
5253
5277
  ...itemStyles,
5254
5278
  children: [
5255
- mappingIcon2 && /* @__PURE__ */ jsx60(Box28, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
5256
- /* @__PURE__ */ jsx60(Box28, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ jsx60(Text16, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) })
5279
+ mappingIcon2 && /* @__PURE__ */ jsx61(Box28, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
5280
+ /* @__PURE__ */ jsx61(Box28, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ jsx61(Text16, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) })
5257
5281
  ]
5258
5282
  },
5259
5283
  item.id
5260
5284
  ) }) }) })
5261
5285
  ] });
5262
5286
  } }, item.id),
5263
- !isCollapse && /* @__PURE__ */ jsx60(
5287
+ !isCollapse && /* @__PURE__ */ jsx61(
5264
5288
  Fade,
5265
5289
  {
5266
5290
  in: true,
5267
5291
  transition: {
5268
5292
  enter: { duration: 0.5 }
5269
5293
  },
5270
- children: /* @__PURE__ */ jsx60(AccordionPanel2, { mt: "1", p: "0", children: item.children.map((submenu) => /* @__PURE__ */ jsx60(
5294
+ children: /* @__PURE__ */ jsx61(AccordionPanel2, { mt: "1", p: "0", children: item.children.map((submenu) => /* @__PURE__ */ jsx61(
5271
5295
  NavItem,
5272
5296
  {
5273
5297
  mt: "1",
@@ -5295,12 +5319,12 @@ SidebarMenu.defaultProps = {
5295
5319
  };
5296
5320
 
5297
5321
  // src/components/switch/components/switch.tsx
5298
- import { chakra as chakra6, Flex as Flex15, forwardRef as forwardRef10, omitThemingProps as omitThemingProps2, useCheckbox as useCheckbox3, useMultiStyleConfig as useMultiStyleConfig2 } from "@chakra-ui/react";
5322
+ import { chakra as chakra6, Flex as Flex15, forwardRef as forwardRef11, omitThemingProps as omitThemingProps2, useCheckbox as useCheckbox3, useMultiStyleConfig as useMultiStyleConfig2 } from "@chakra-ui/react";
5299
5323
  import { cx as cx10, dataAttr } from "@chakra-ui/shared-utils";
5300
5324
  import { Check as Check2, Close as Close5 } from "@ctlyst.id/internal-icon";
5301
5325
  import { useMemo as useMemo3 } from "react";
5302
- import { jsx as jsx61, jsxs as jsxs27 } from "react/jsx-runtime";
5303
- var Switch = forwardRef10(function Switch2(props, ref) {
5326
+ import { jsx as jsx62, jsxs as jsxs27 } from "react/jsx-runtime";
5327
+ var Switch = forwardRef11(function Switch2(props, ref) {
5304
5328
  const styles = useMultiStyleConfig2("Switch", props);
5305
5329
  const { spacing: spacing2 = "0.5rem", children, ...ownProps } = omitThemingProps2(props);
5306
5330
  const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = useCheckbox3(ownProps);
@@ -5351,13 +5375,13 @@ var Switch = forwardRef10(function Switch2(props, ref) {
5351
5375
  className: cx10("chakra-switch", props.className),
5352
5376
  __css: containerStyles,
5353
5377
  children: [
5354
- /* @__PURE__ */ jsx61("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
5378
+ /* @__PURE__ */ jsx62("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
5355
5379
  /* @__PURE__ */ jsxs27(chakra6.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
5356
5380
  /* @__PURE__ */ jsxs27(Flex15, { gap: 1, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
5357
- /* @__PURE__ */ jsx61(Check2, { color: "white", size: getIconSize(props.size) }),
5358
- /* @__PURE__ */ jsx61(Close5, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
5381
+ /* @__PURE__ */ jsx62(Check2, { color: "white", size: getIconSize(props.size) }),
5382
+ /* @__PURE__ */ jsx62(Close5, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
5359
5383
  ] }),
5360
- /* @__PURE__ */ jsx61(
5384
+ /* @__PURE__ */ jsx62(
5361
5385
  chakra6.span,
5362
5386
  {
5363
5387
  __css: styles.thumb,
@@ -5367,7 +5391,7 @@ var Switch = forwardRef10(function Switch2(props, ref) {
5367
5391
  }
5368
5392
  )
5369
5393
  ] }),
5370
- children && /* @__PURE__ */ jsx61(
5394
+ children && /* @__PURE__ */ jsx62(
5371
5395
  chakra6.span,
5372
5396
  {
5373
5397
  className: "chakra-switch__label",
@@ -5404,14 +5428,14 @@ import {
5404
5428
  } from "@chakra-ui/react";
5405
5429
 
5406
5430
  // src/components/tabs/components/tab.tsx
5407
- import { Button as Button6, Flex as Flex16, forwardRef as forwardRef11, useMultiStyleConfig as useMultiStyleConfig3, useTab } from "@chakra-ui/react";
5408
- import { jsx as jsx62, jsxs as jsxs28 } from "react/jsx-runtime";
5409
- var Tab = forwardRef11((props, ref) => {
5431
+ import { Button as Button6, Flex as Flex16, forwardRef as forwardRef12, useMultiStyleConfig as useMultiStyleConfig3, useTab } from "@chakra-ui/react";
5432
+ import { jsx as jsx63, jsxs as jsxs28 } from "react/jsx-runtime";
5433
+ var Tab = forwardRef12((props, ref) => {
5410
5434
  var _a, _b;
5411
5435
  const tabProps = useTab({ ...props, ref });
5412
5436
  const isSelected = !!tabProps["aria-selected"];
5413
5437
  const styles = useMultiStyleConfig3("Tabs", tabProps);
5414
- return /* @__PURE__ */ jsx62(
5438
+ return /* @__PURE__ */ jsx63(
5415
5439
  Button6,
5416
5440
  {
5417
5441
  "data-test-id": props["data-test-id"],
@@ -5486,7 +5510,7 @@ import {
5486
5510
  import { Code, CodeProps, Heading, HeadingProps, Link as Link5, LinkProps, Text as Text17, TextProps } from "@chakra-ui/react";
5487
5511
 
5488
5512
  // src/components/time-input/components/index.tsx
5489
- import { Box as Box29, Flex as Flex17, forwardRef as forwardRef12, Input as Input3, InputGroup as InputGroup4 } from "@chakra-ui/react";
5513
+ import { Box as Box29, Flex as Flex17, forwardRef as forwardRef13, Input as Input3, InputGroup as InputGroup4 } from "@chakra-ui/react";
5490
5514
  import { Clock } from "@ctlyst.id/internal-icon";
5491
5515
  import { useEffect as useEffect3, useImperativeHandle as useImperativeHandle2 } from "react";
5492
5516
 
@@ -5567,7 +5591,7 @@ var useTimescape = (options = {}) => {
5567
5591
  };
5568
5592
 
5569
5593
  // src/components/time-input/components/index.tsx
5570
- import { Fragment as Fragment10, jsx as jsx63, jsxs as jsxs29 } from "react/jsx-runtime";
5594
+ import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs29 } from "react/jsx-runtime";
5571
5595
  var timeDigitFormat = (number) => {
5572
5596
  if (number.toString().length === 1) {
5573
5597
  return `0${number}`;
@@ -5591,8 +5615,8 @@ var timeFromString = (timeString) => {
5591
5615
  const [hours, minutes, seconds] = timeString.split(":");
5592
5616
  return new Time(Number(hours), Number(minutes), Number(seconds));
5593
5617
  };
5594
- var InputTimeArea = forwardRef12((props, ref) => {
5595
- return /* @__PURE__ */ jsx63(
5618
+ var InputTimeArea = forwardRef13((props, ref) => {
5619
+ return /* @__PURE__ */ jsx64(
5596
5620
  Input3,
5597
5621
  {
5598
5622
  _focusWithin: {
@@ -5611,7 +5635,7 @@ var InputTimeArea = forwardRef12((props, ref) => {
5611
5635
  }
5612
5636
  );
5613
5637
  });
5614
- var TimeInput2 = forwardRef12(
5638
+ var TimeInput2 = forwardRef13(
5615
5639
  ({
5616
5640
  name,
5617
5641
  config: config2,
@@ -5668,7 +5692,7 @@ var TimeInput2 = forwardRef12(
5668
5692
  };
5669
5693
  };
5670
5694
  const { outlineColor, focusColor } = getProperties();
5671
- return /* @__PURE__ */ jsx63(Box29, { ...boxProps, ...rootProps, children: /* @__PURE__ */ jsx63(
5695
+ return /* @__PURE__ */ jsx64(Box29, { ...boxProps, ...rootProps, children: /* @__PURE__ */ jsx64(
5672
5696
  field_default,
5673
5697
  {
5674
5698
  isError,
@@ -5677,7 +5701,7 @@ var TimeInput2 = forwardRef12(
5677
5701
  errorMessage,
5678
5702
  isDisabled,
5679
5703
  isSuccess,
5680
- children: /* @__PURE__ */ jsx63(
5704
+ children: /* @__PURE__ */ jsx64(
5681
5705
  Box29,
5682
5706
  {
5683
5707
  transition: "all 0.15s",
@@ -5699,16 +5723,16 @@ var TimeInput2 = forwardRef12(
5699
5723
  "data-test-id": `CT_Component_TimeInput${name ? `_${name}` : ""}`,
5700
5724
  children: [
5701
5725
  /* @__PURE__ */ jsxs29(Flex17, { gap: "1px", width: "100%", alignItems: "center", pl: 2, children: [
5702
- /* @__PURE__ */ jsx63(InputTimeArea, { "data-test-id": "start-time", ...hoursProps }),
5703
- /* @__PURE__ */ jsx63("span", { children: ":" }),
5704
- /* @__PURE__ */ jsx63(InputTimeArea, { "data-test-id": "end-time", ...getInputProps("minutes") }),
5726
+ /* @__PURE__ */ jsx64(InputTimeArea, { "data-test-id": "start-time", ...hoursProps }),
5727
+ /* @__PURE__ */ jsx64("span", { children: ":" }),
5728
+ /* @__PURE__ */ jsx64(InputTimeArea, { "data-test-id": "end-time", ...getInputProps("minutes") }),
5705
5729
  seconds && /* @__PURE__ */ jsxs29(Fragment10, { children: [
5706
- /* @__PURE__ */ jsx63("span", { children: ":" }),
5707
- /* @__PURE__ */ jsx63(InputTimeArea, { ...getInputProps("seconds") })
5730
+ /* @__PURE__ */ jsx64("span", { children: ":" }),
5731
+ /* @__PURE__ */ jsx64(InputTimeArea, { ...getInputProps("seconds") })
5708
5732
  ] }),
5709
- options.hour12 && /* @__PURE__ */ jsx63(Input3, { p: 0, ...getInputProps("am/pm") })
5733
+ options.hour12 && /* @__PURE__ */ jsx64(Input3, { p: 0, ...getInputProps("am/pm") })
5710
5734
  ] }),
5711
- /* @__PURE__ */ jsx63(Clock, { color: "neutral.400", size: 4 }),
5735
+ /* @__PURE__ */ jsx64(Clock, { color: "neutral.400", size: 4 }),
5712
5736
  addOnRight
5713
5737
  ]
5714
5738
  }
@@ -5727,9 +5751,9 @@ import { Bounce, toast } from "react-toastify";
5727
5751
 
5728
5752
  // src/components/toast/components/styles.tsx
5729
5753
  import { Global as Global2 } from "@emotion/react";
5730
- import { jsx as jsx64 } from "react/jsx-runtime";
5754
+ import { jsx as jsx65 } from "react/jsx-runtime";
5731
5755
  var Styles2 = () => {
5732
- return /* @__PURE__ */ jsx64(
5756
+ return /* @__PURE__ */ jsx65(
5733
5757
  Global2,
5734
5758
  {
5735
5759
  styles: `
@@ -5761,10 +5785,10 @@ var Styles2 = () => {
5761
5785
  var styles_default2 = Styles2;
5762
5786
 
5763
5787
  // src/components/toast/components/toast.tsx
5764
- import { Fragment as Fragment11, jsx as jsx65, jsxs as jsxs30 } from "react/jsx-runtime";
5788
+ import { Fragment as Fragment11, jsx as jsx66, jsxs as jsxs30 } from "react/jsx-runtime";
5765
5789
  var CustomCloseButton = (props) => {
5766
5790
  const { closeToast } = props;
5767
- return /* @__PURE__ */ jsx65(Box30, { p: 2, mb: 1, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: () => closeToast(), children: /* @__PURE__ */ jsx65(Close6, { size: 4, color: "white" }) });
5791
+ return /* @__PURE__ */ jsx66(Box30, { p: 2, mb: 1, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: () => closeToast(), children: /* @__PURE__ */ jsx66(Close6, { size: 4, color: "white" }) });
5768
5792
  };
5769
5793
  var DEFAULT_OPTIONS = {
5770
5794
  position: "top-right",
@@ -5797,13 +5821,13 @@ var useToast = () => {
5797
5821
  ]);
5798
5822
  const content = (icon, message, link) => {
5799
5823
  return /* @__PURE__ */ jsxs30(Fragment11, { children: [
5800
- /* @__PURE__ */ jsx65(styles_default2, {}),
5824
+ /* @__PURE__ */ jsx66(styles_default2, {}),
5801
5825
  /* @__PURE__ */ jsxs30(Flex18, { justifyContent: "space-between", alignItems: "center", gap: 4, mb: 1, flex: 1, children: [
5802
5826
  /* @__PURE__ */ jsxs30(Flex18, { alignItems: "center", children: [
5803
- icon && /* @__PURE__ */ jsx65(chakra7.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
5804
- /* @__PURE__ */ jsx65(chakra7.span, { noOfLines: 2, children: message })
5827
+ icon && /* @__PURE__ */ jsx66(chakra7.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
5828
+ /* @__PURE__ */ jsx66(chakra7.span, { noOfLines: 2, children: message })
5805
5829
  ] }),
5806
- link && /* @__PURE__ */ jsx65(
5830
+ link && /* @__PURE__ */ jsx66(
5807
5831
  Link6,
5808
5832
  {
5809
5833
  as: link.as,
@@ -5985,7 +6009,7 @@ var defaultOnHandleRejections = (fileRejection, config2, handleRejection) => {
5985
6009
  };
5986
6010
 
5987
6011
  // src/components/uploader/components/uploader.tsx
5988
- import { Fragment as Fragment12, jsx as jsx66, jsxs as jsxs31 } from "react/jsx-runtime";
6012
+ import { Fragment as Fragment12, jsx as jsx67, jsxs as jsxs31 } from "react/jsx-runtime";
5989
6013
  var Uploader = ({
5990
6014
  onHandleUploadFile,
5991
6015
  onHandleRejections,
@@ -6118,20 +6142,20 @@ var Uploader = ({
6118
6142
  });
6119
6143
  const renderHelperText = () => {
6120
6144
  if (Array.isArray(helperText)) {
6121
- return /* @__PURE__ */ jsx66(
6145
+ return /* @__PURE__ */ jsx67(
6122
6146
  UnorderedList2,
6123
6147
  {
6124
6148
  pl: 2,
6125
6149
  fontSize: 12,
6126
6150
  color: "black.medium",
6127
6151
  "data-test-id": "CT_component_base-image-uploader_helperText",
6128
- children: helperText.map((text2) => /* @__PURE__ */ jsx66(ListItem2, { children: text2 }, text2))
6152
+ children: helperText.map((text2) => /* @__PURE__ */ jsx67(ListItem2, { children: text2 }, text2))
6129
6153
  }
6130
6154
  );
6131
6155
  }
6132
6156
  return helperText;
6133
6157
  };
6134
- const renderErrorText = (text2) => /* @__PURE__ */ jsx66(Box31, { mb: 2, children: /* @__PURE__ */ jsx66(Text18, { textStyle: "text.xs", color: "danger.500", children: text2 }) });
6158
+ const renderErrorText = (text2) => /* @__PURE__ */ jsx67(Box31, { mb: 2, children: /* @__PURE__ */ jsx67(Text18, { textStyle: "text.xs", color: "danger.500", children: text2 }) });
6135
6159
  const handleRemove = (e) => {
6136
6160
  e.stopPropagation();
6137
6161
  setFilePreview(void 0);
@@ -6165,8 +6189,8 @@ var Uploader = ({
6165
6189
  return /* @__PURE__ */ jsxs31(FormControl4, { isRequired, children: [
6166
6190
  label && typeof label === "string" ? (
6167
6191
  // eslint-disable-next-line react/jsx-no-useless-fragment
6168
- /* @__PURE__ */ jsxs31(FormLabel3, { requiredIndicator: /* @__PURE__ */ jsx66(Fragment12, {}), fontSize: "text.sm", children: [
6169
- isRequired && /* @__PURE__ */ jsx66(RequiredIndicator2, { mr: 1, ml: 0 }),
6192
+ /* @__PURE__ */ jsxs31(FormLabel3, { requiredIndicator: /* @__PURE__ */ jsx67(Fragment12, {}), fontSize: "text.sm", children: [
6193
+ isRequired && /* @__PURE__ */ jsx67(RequiredIndicator2, { mr: 1, ml: 0 }),
6170
6194
  label
6171
6195
  ] })
6172
6196
  ) : label,
@@ -6188,7 +6212,7 @@ var Uploader = ({
6188
6212
  ...props,
6189
6213
  ...getRootProps(),
6190
6214
  children: [
6191
- filePreview && isShowCloseButton && /* @__PURE__ */ jsx66(Box31, { position: "absolute", top: 1, right: 1, children: /* @__PURE__ */ jsx66(
6215
+ filePreview && isShowCloseButton && /* @__PURE__ */ jsx67(Box31, { position: "absolute", top: 1, right: 1, children: /* @__PURE__ */ jsx67(
6192
6216
  Button7,
6193
6217
  {
6194
6218
  "data-test-id": `CT_component_base-image-uploader_remove-image${testId ? `_${testId}` : ""}`,
@@ -6203,17 +6227,17 @@ var Uploader = ({
6203
6227
  border: "none",
6204
6228
  zIndex: 1,
6205
6229
  onClick: handleRemove,
6206
- children: /* @__PURE__ */ jsx66(X, { size: 3, color: "white" })
6230
+ children: /* @__PURE__ */ jsx67(X, { size: 3, color: "white" })
6207
6231
  }
6208
6232
  ) }),
6209
- filePreview && /* @__PURE__ */ jsx66(Box31, { w: "full", children: /* @__PURE__ */ jsx66(
6233
+ filePreview && /* @__PURE__ */ jsx67(Box31, { w: "full", children: /* @__PURE__ */ jsx67(
6210
6234
  Flex19,
6211
6235
  {
6212
6236
  position: "relative",
6213
6237
  "data-test-id": `CT_component_base-image-uploader_image-preview${testId ? `_${testId}` : ""}`,
6214
6238
  justify: "center",
6215
6239
  align: "center",
6216
- children: filePreview.includes("blob") && !acceptFile.some(([type]) => typeof type === "string" && type.includes("image/")) ? /* @__PURE__ */ jsx66(
6240
+ children: filePreview.includes("blob") && !acceptFile.some(([type]) => typeof type === "string" && type.includes("image/")) ? /* @__PURE__ */ jsx67(
6217
6241
  ChakraImage,
6218
6242
  {
6219
6243
  h: size2 === "lg" ? "120" : "100",
@@ -6221,13 +6245,13 @@ var Uploader = ({
6221
6245
  alt: "uploader-preview",
6222
6246
  objectFit: "contain"
6223
6247
  }
6224
- ) : /* @__PURE__ */ jsx66(Text18, { noOfLines: 3, mx: 2, textAlign: "center", children: filePreview })
6248
+ ) : /* @__PURE__ */ jsx67(Text18, { noOfLines: 3, mx: 2, textAlign: "center", children: filePreview })
6225
6249
  }
6226
6250
  ) }),
6227
- !filePreview && /* @__PURE__ */ jsx66(Fragment12, { children: isDragActive ? /* @__PURE__ */ jsx66(Text18, { children: dragActiveText != null ? dragActiveText : messages.dragActive }) : /* @__PURE__ */ jsxs31(Flex19, { gap: 2, flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : color, children: [
6228
- size2 === "sm" && /* @__PURE__ */ jsx66(Plus, { size: 6, color }),
6251
+ !filePreview && /* @__PURE__ */ jsx67(Fragment12, { children: isDragActive ? /* @__PURE__ */ jsx67(Text18, { children: dragActiveText != null ? dragActiveText : messages.dragActive }) : /* @__PURE__ */ jsxs31(Flex19, { gap: 2, flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : color, children: [
6252
+ size2 === "sm" && /* @__PURE__ */ jsx67(Plus, { size: 6, color }),
6229
6253
  /* @__PURE__ */ jsxs31(Box31, { children: [
6230
- !filePreview && /* @__PURE__ */ jsx66(
6254
+ !filePreview && /* @__PURE__ */ jsx67(
6231
6255
  Heading2,
6232
6256
  {
6233
6257
  fontWeight: "400",
@@ -6237,20 +6261,20 @@ var Uploader = ({
6237
6261
  children: uploadFileText && size2 === "lg" ? uploadFileText : "Upload"
6238
6262
  }
6239
6263
  ),
6240
- size2 === "lg" && /* @__PURE__ */ jsx66(Text18, { fontSize: 12, children: filePreview ? dragReplaceText != null ? dragReplaceText : messages.dragReplace : dragInActiveText != null ? dragInActiveText : messages.dragInActive })
6264
+ size2 === "lg" && /* @__PURE__ */ jsx67(Text18, { fontSize: 12, children: filePreview ? dragReplaceText != null ? dragReplaceText : messages.dragReplace : dragInActiveText != null ? dragInActiveText : messages.dragInActive })
6241
6265
  ] })
6242
6266
  ] }) })
6243
6267
  ]
6244
6268
  }
6245
6269
  ),
6246
- /* @__PURE__ */ jsx66(
6270
+ /* @__PURE__ */ jsx67(
6247
6271
  "input",
6248
6272
  {
6249
6273
  ...getInputProps(),
6250
6274
  "data-test-id": `CT_component_base-image-uploader_change-img${testId ? `_${testId}` : ""}`
6251
6275
  }
6252
6276
  ),
6253
- filePreview && !isSmall && /* @__PURE__ */ jsx66(Flex19, { align: "center", justify: "center", my: 2, children: isShowReupload && /* @__PURE__ */ jsx66(
6277
+ filePreview && !isSmall && /* @__PURE__ */ jsx67(Flex19, { align: "center", justify: "center", my: 2, children: isShowReupload && /* @__PURE__ */ jsx67(
6254
6278
  Button7,
6255
6279
  {
6256
6280
  "data-test-id": `CT_component_base-image-uploader_change-img-btn${testId ? `_${testId}` : ""}`,
@@ -7993,7 +8017,7 @@ import { useMemo as useMemo5 } from "react";
7993
8017
  import axios from "axios";
7994
8018
  import { createContext as createContext2, useContext, useEffect as useEffect5, useMemo as useMemo4, useRef as useRef4 } from "react";
7995
8019
  import { ToastContainer as ToastContainer2 } from "react-toastify";
7996
- import { jsx as jsx67, jsxs as jsxs32 } from "react/jsx-runtime";
8020
+ import { jsx as jsx68, jsxs as jsxs32 } from "react/jsx-runtime";
7997
8021
  var ProviderContext = createContext2({
7998
8022
  instance: void 0
7999
8023
  });
@@ -8013,7 +8037,7 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
8013
8037
  }, [requestInterceptors, responseInterceptors]);
8014
8038
  const provider = useMemo4(() => ({ instance: instanceRef.current }), []);
8015
8039
  return /* @__PURE__ */ jsxs32(ProviderContext.Provider, { value: provider, children: [
8016
- /* @__PURE__ */ jsx67(ToastContainer2, {}),
8040
+ /* @__PURE__ */ jsx68(ToastContainer2, {}),
8017
8041
  children
8018
8042
  ] });
8019
8043
  };
@@ -8070,7 +8094,7 @@ import {
8070
8094
  } from "@chakra-ui/react";
8071
8095
 
8072
8096
  // src/index.ts
8073
- import { extendTheme, forwardRef as forwardRef13 } from "@chakra-ui/react";
8097
+ import { extendTheme, forwardRef as forwardRef14 } from "@chakra-ui/react";
8074
8098
  export {
8075
8099
  Accordion,
8076
8100
  AccordionButton,
@@ -8249,12 +8273,12 @@ export {
8249
8273
  PinInputProvider,
8250
8274
  Popover5 as Popover,
8251
8275
  PopoverAnchor,
8252
- PopoverArrow3 as PopoverArrow,
8276
+ PopoverArrow4 as PopoverArrow,
8253
8277
  PopoverArrowProps,
8254
8278
  PopoverBody3 as PopoverBody,
8255
8279
  PopoverBodyProps,
8256
8280
  PopoverCloseButton,
8257
- PopoverContent5 as PopoverContent,
8281
+ PopoverContent_default as PopoverContent,
8258
8282
  PopoverContentProps,
8259
8283
  PopoverFooter,
8260
8284
  PopoverFooterProps,
@@ -8386,7 +8410,7 @@ export {
8386
8410
  dimensionValidator,
8387
8411
  extendTheme,
8388
8412
  formatValidationMessage,
8389
- forwardRef13 as forwardRef,
8413
+ forwardRef14 as forwardRef,
8390
8414
  getSelectAllCheckboxState,
8391
8415
  getTheme,
8392
8416
  id,