@ctlyst.id/internal-ui 2.1.15 → 2.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (189) hide show
  1. package/dist/components/accordion/__stories__/accordion.stories.d.ts +9 -0
  2. package/dist/components/accordion/components/accordion-indicator.d.ts +1 -0
  3. package/dist/components/accordion/components/index.d.ts +2 -0
  4. package/dist/components/accordion/index.d.ts +1 -0
  5. package/dist/components/alert/__stories__/alert.stories.d.ts +11 -0
  6. package/dist/components/alert/components/alert-action.d.ts +6 -0
  7. package/dist/components/alert/components/alert-close.d.ts +6 -0
  8. package/dist/components/alert/components/alert-context.d.ts +33 -0
  9. package/dist/components/alert/components/alert-description.d.ts +3 -0
  10. package/dist/components/alert/components/alert-icon.d.ts +6 -0
  11. package/dist/components/alert/components/alert-title.d.ts +3 -0
  12. package/dist/components/alert/components/alert.d.ts +25 -0
  13. package/dist/components/alert/components/icons.d.ts +3 -0
  14. package/dist/components/alert/components/index.d.ts +14 -0
  15. package/dist/components/alert/index.d.ts +1 -0
  16. package/dist/components/anchor/__stories__/anchor.stories.d.ts +9 -0
  17. package/dist/components/anchor/components/anchor.d.ts +20 -0
  18. package/dist/components/anchor/components/index.d.ts +1 -0
  19. package/dist/components/anchor/index.d.ts +1 -0
  20. package/dist/components/badge/__stories__/badge.stories.d.ts +15 -0
  21. package/dist/components/badge/components/badge.d.ts +11 -0
  22. package/dist/components/badge/components/index.d.ts +1 -0
  23. package/dist/components/badge/index.d.ts +1 -0
  24. package/dist/components/breadcrumb/__stories__/breadcrumb.stories.d.ts +8 -0
  25. package/dist/components/breadcrumb/components/bread-crumb.d.ts +18 -0
  26. package/dist/components/breadcrumb/index.d.ts +2 -0
  27. package/dist/components/button/__stories__/button.stories.d.ts +12 -0
  28. package/dist/components/button/components/button.d.ts +4 -0
  29. package/dist/components/button/index.d.ts +3 -0
  30. package/dist/components/card/__stories__/card.stories.d.ts +8 -0
  31. package/dist/components/card/components/card.d.ts +8 -0
  32. package/dist/components/card/index.d.ts +2 -0
  33. package/dist/components/checkbox/__stories__/checkbox.stories.d.ts +13 -0
  34. package/dist/components/checkbox/components/checkbox-group.d.ts +18 -0
  35. package/dist/components/checkbox/components/checkbox.d.ts +10 -0
  36. package/dist/components/checkbox/index.d.ts +5 -0
  37. package/dist/components/chips/__stories__/chips.stories.d.ts +9 -0
  38. package/dist/components/chips/components/chips.d.ts +19 -0
  39. package/dist/components/chips/index.d.ts +2 -0
  40. package/dist/components/collapse/__stories__/collapse.stories.d.ts +7 -0
  41. package/dist/components/counter/__stories__/counter.stories.d.ts +10 -0
  42. package/dist/components/counter/components/counter.d.ts +15 -0
  43. package/dist/components/counter/index.d.ts +1 -0
  44. package/dist/components/data-table/__stories__/datatable.stories.d.ts +21 -0
  45. package/dist/components/data-table/components/data-table.d.ts +30 -0
  46. package/dist/components/data-table/index.d.ts +3 -0
  47. package/dist/components/data-table/types/table-core.d.ts +1 -0
  48. package/dist/components/datepicker/__stories__/datepicker.stories.d.ts +13 -0
  49. package/dist/components/datepicker/components/datepicker-month/datepicker-month.d.ts +9 -0
  50. package/dist/components/datepicker/components/datepicker-month/index.d.ts +4 -0
  51. package/dist/components/datepicker/components/datepicker-month/multi-datepicker-month.d.ts +9 -0
  52. package/dist/components/datepicker/components/datepicker.d.ts +17 -0
  53. package/dist/components/datepicker/components/styles.d.ts +2 -0
  54. package/dist/components/datepicker/components/time-input.d.ts +9 -0
  55. package/dist/components/datepicker/index.d.ts +3 -0
  56. package/dist/components/dialog/__stories__/dialog.stories.d.ts +7 -0
  57. package/dist/components/dialog/components/dialog.d.ts +12 -0
  58. package/dist/components/dialog/index.d.ts +1 -0
  59. package/dist/components/empty-state/__stories__/dialog.stories.d.ts +7 -0
  60. package/dist/components/field/__stories__/field.stories.d.ts +7 -0
  61. package/dist/components/field/components/field.d.ts +15 -0
  62. package/dist/components/field/index.d.ts +2 -0
  63. package/dist/components/form/__stories__/input.stories.d.ts +15 -0
  64. package/dist/components/form/__stories__/textarea.stories.d.ts +7 -0
  65. package/dist/components/form/components/input-addon.d.ts +7 -0
  66. package/dist/components/form/components/input-element.d.ts +2 -0
  67. package/dist/components/form/components/input-field.d.ts +13 -0
  68. package/dist/components/form/components/textarea.d.ts +8 -0
  69. package/dist/components/form/index.d.ts +7 -0
  70. package/dist/components/form/styles/input-field.d.ts +4 -0
  71. package/dist/components/header/__stories__/header.stories.d.ts +9 -0
  72. package/dist/components/header/components/header.d.ts +19 -0
  73. package/dist/components/header/components/logo.d.ts +10 -0
  74. package/dist/components/header/components/profile.d.ts +11 -0
  75. package/dist/components/header/components/switch-mode.d.ts +3 -0
  76. package/dist/components/header/components/version.d.ts +10 -0
  77. package/dist/components/header/index.d.ts +3 -0
  78. package/dist/components/header/types.d.ts +10 -0
  79. package/dist/components/header/utils/formatter.d.ts +2 -0
  80. package/dist/components/image/__stories__/image.stories.d.ts +9 -0
  81. package/dist/components/image/index.d.ts +1 -0
  82. package/dist/components/index.d.ts +34 -0
  83. package/dist/components/layouting/index.d.ts +1 -0
  84. package/dist/components/list/index.d.ts +1 -0
  85. package/dist/components/loader/__stories__/loader.stories.d.ts +9 -0
  86. package/dist/components/loader/components/loader.d.ts +10 -0
  87. package/dist/components/loader/index.d.ts +3 -0
  88. package/dist/components/modal/__stories__/modal.stories.d.ts +7 -0
  89. package/dist/components/modal/components/modal-body.d.ts +4 -0
  90. package/dist/components/modal/components/modal-close-button.d.ts +4 -0
  91. package/dist/components/modal/components/modal-footer.d.ts +4 -0
  92. package/dist/components/modal/components/modal-header.d.ts +4 -0
  93. package/dist/components/modal/index.d.ts +5 -0
  94. package/dist/components/navigation/__stories__/navigation.stories.d.ts +8 -0
  95. package/dist/components/navigation/components/customer-icon.d.ts +2 -0
  96. package/dist/components/navigation/components/mapping-icon.d.ts +2 -0
  97. package/dist/components/navigation/components/navigation-bar.d.ts +12 -0
  98. package/dist/components/navigation/components/navigation.d.ts +11 -0
  99. package/dist/components/navigation/index.d.ts +4 -0
  100. package/dist/components/navigation/types.d.ts +24 -0
  101. package/dist/components/pagination/__stories__/pagination.stories.d.ts +10 -0
  102. package/dist/components/pagination/components/pagination-button-trigger.d.ts +10 -0
  103. package/dist/components/pagination/components/pagination-button.d.ts +6 -0
  104. package/dist/components/pagination/components/pagination-detail.d.ts +10 -0
  105. package/dist/components/pagination/components/pagination-filter.d.ts +13 -0
  106. package/dist/components/pagination/components/pagination.d.ts +16 -0
  107. package/dist/components/pagination/index.d.ts +6 -0
  108. package/dist/components/popover/index.d.ts +1 -0
  109. package/dist/components/radio/__stories__/radio.stories.d.ts +13 -0
  110. package/dist/components/radio/components/radio-group.d.ts +18 -0
  111. package/dist/components/radio/components/radio.d.ts +17 -0
  112. package/dist/components/radio/index.d.ts +3 -0
  113. package/dist/components/rating/__stories__/rating.stories.d.ts +7 -0
  114. package/dist/components/rating/components/rating.d.ts +6 -0
  115. package/dist/components/rating/index.d.ts +2 -0
  116. package/dist/components/select/__stories__/select.stories.d.ts +10 -0
  117. package/dist/components/select/components/select-async-creatable.d.ts +5 -0
  118. package/dist/components/select/components/select-async.d.ts +6 -0
  119. package/dist/components/select/components/select-creatable.d.ts +5 -0
  120. package/dist/components/select/components/select-wrapper.d.ts +6 -0
  121. package/dist/components/select/components/select.d.ts +5 -0
  122. package/dist/components/select/components/types/select.types.d.ts +3 -0
  123. package/dist/components/select/components/utils.d.ts +26 -0
  124. package/dist/components/select/index.d.ts +8 -0
  125. package/dist/components/switch/__stories__/switch.stories.d.ts +10 -0
  126. package/dist/components/switch/components/switch.d.ts +18 -0
  127. package/dist/components/switch/index.d.ts +2 -0
  128. package/dist/components/table/index.d.ts +1 -0
  129. package/dist/components/tabs/__stories__/tabs.stories.d.ts +8 -0
  130. package/dist/components/tabs/components/tab.d.ts +12 -0
  131. package/dist/components/tabs/index.d.ts +2 -0
  132. package/dist/components/text/index.d.ts +1 -0
  133. package/dist/components/toast/__stories__/toast.stories.d.ts +12 -0
  134. package/dist/components/toast/components/toast.d.ts +21 -0
  135. package/dist/components/toast/index.d.ts +1 -0
  136. package/dist/components/tooltip/__stories__/tooltip.stories.d.ts +7 -0
  137. package/dist/components/tooltip/index.d.ts +1 -0
  138. package/dist/components/uploader/__stories__/uploader.stories.d.ts +9 -0
  139. package/dist/components/uploader/components/uploader.d.ts +12 -0
  140. package/dist/components/uploader/constants.d.ts +8 -0
  141. package/dist/components/uploader/index.d.ts +2 -0
  142. package/dist/config/__stories__/foundations.stories.d.ts +15 -0
  143. package/dist/config/__stories__/globals.stories.d.ts +10 -0
  144. package/dist/config/index.d.ts +1 -0
  145. package/dist/config/theme/components/accordion.d.ts +53 -0
  146. package/dist/config/theme/components/alert.d.ts +69 -0
  147. package/dist/config/theme/components/badge.d.ts +3 -0
  148. package/dist/config/theme/components/button.d.ts +3 -0
  149. package/dist/config/theme/components/card.d.ts +18 -0
  150. package/dist/config/theme/components/checkbox.d.ts +101 -0
  151. package/dist/config/theme/components/chips.d.ts +34 -0
  152. package/dist/config/theme/components/form-label.d.ts +20 -0
  153. package/dist/config/theme/components/index.d.ts +16 -0
  154. package/dist/config/theme/components/input.d.ts +101 -0
  155. package/dist/config/theme/components/loader.d.ts +85 -0
  156. package/dist/config/theme/components/popover.d.ts +3 -0
  157. package/dist/config/theme/components/radio.d.ts +102 -0
  158. package/dist/config/theme/components/switch.d.ts +75 -0
  159. package/dist/config/theme/components/table.d.ts +180 -0
  160. package/dist/config/theme/components/tabs.d.ts +30 -0
  161. package/dist/config/theme/components/textarea.d.ts +55 -0
  162. package/dist/config/theme/foundations/index.d.ts +5 -0
  163. package/dist/config/theme/foundations/radius.d.ts +8 -0
  164. package/dist/config/theme/foundations/shadows.d.ts +15 -0
  165. package/dist/config/theme/foundations/sizes.d.ts +66 -0
  166. package/dist/config/theme/foundations/spacing.d.ts +42 -0
  167. package/dist/config/theme/foundations/typography.d.ts +191 -0
  168. package/dist/config/theme/index.d.ts +1 -0
  169. package/dist/config/theme/themeConfiguration.d.ts +6 -0
  170. package/dist/hooks/index.d.ts +2 -0
  171. package/dist/hooks/useFetcher.d.ts +4 -0
  172. package/dist/index.d.mts +2 -2
  173. package/dist/index.d.ts +2 -2
  174. package/dist/index.js +651 -699
  175. package/dist/index.js.map +1 -1
  176. package/dist/index.mjs +205 -267
  177. package/dist/index.mjs.map +1 -1
  178. package/dist/interfaces/common.d.ts +17 -0
  179. package/dist/internal-ui.cjs.development.js +6119 -0
  180. package/dist/internal-ui.cjs.development.js.map +1 -0
  181. package/dist/internal-ui.cjs.production.min.js +38 -0
  182. package/dist/internal-ui.cjs.production.min.js.map +1 -0
  183. package/dist/internal-ui.esm.js +5082 -0
  184. package/dist/internal-ui.esm.js.map +1 -0
  185. package/dist/provider/__stories__/provider.stories.d.ts +13 -0
  186. package/dist/provider/components/provider.d.ts +7 -0
  187. package/dist/provider/index.d.ts +3 -0
  188. package/dist/provider/types.d.ts +14 -0
  189. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -590,11 +590,21 @@ import { FiMinus, FiPlus } from "react-icons/fi";
590
590
  // src/components/form/components/input-addon.tsx
591
591
  import { InputLeftAddon, InputRightAddon } from "@chakra-ui/react";
592
592
  import { jsx as jsx19 } from "react/jsx-runtime";
593
- var InputAddonLeft = ({ children }) => {
594
- return /* @__PURE__ */ jsx19(InputLeftAddon, { backgroundColor: "neutral.200", px: 3, py: 2.5, style: { border: 0, marginInlineEnd: 0 }, children });
593
+ var InputAddonLeft = ({ children, ...props }) => {
594
+ return /* @__PURE__ */ jsx19(InputLeftAddon, { backgroundColor: "neutral.200", px: 3, py: 2.5, style: { border: 0, marginInlineEnd: 0 }, ...props, children });
595
595
  };
596
- var InputAddonRight = ({ children }) => {
597
- return /* @__PURE__ */ jsx19(InputRightAddon, { backgroundColor: "neutral.200", px: 3, py: 2.5, style: { border: 0, marginInlineStart: 0 }, children });
596
+ var InputAddonRight = ({ children, ...props }) => {
597
+ return /* @__PURE__ */ jsx19(
598
+ InputRightAddon,
599
+ {
600
+ backgroundColor: "neutral.200",
601
+ px: 3,
602
+ py: 2.5,
603
+ style: { border: 0, marginInlineStart: 0 },
604
+ ...props,
605
+ children
606
+ }
607
+ );
598
608
  };
599
609
 
600
610
  // src/components/form/components/input-element.tsx
@@ -605,40 +615,6 @@ import { InputRightElement } from "@chakra-ui/react";
605
615
  import { Box as Box9, Input as ChakraInput, InputGroup } from "@chakra-ui/react";
606
616
  import { Close as Close3, Eye as Eye2, EyeOff } from "@ctlyst.id/internal-icon";
607
617
  import React3, { useMemo as useMemo2, useState } from "react";
608
-
609
- // src/components/form/styles/input-field.ts
610
- import { defineStyle } from "@chakra-ui/react";
611
- var getProperties = (props) => {
612
- const { isError, isDisabled, isSuccess } = props;
613
- let outlineColor = "neutral.400";
614
- let focusColor = "primary.500";
615
- if (isError || isDisabled || isSuccess) {
616
- if (isError) outlineColor = "danger.500";
617
- else if (isSuccess) outlineColor = "success.500";
618
- focusColor = outlineColor;
619
- }
620
- return {
621
- outlineColor,
622
- focusColor
623
- };
624
- };
625
- var getWrapperStyle = (props) => {
626
- const { outlineColor, focusColor } = getProperties(props);
627
- const style = {
628
- border: "1px solid",
629
- borderColor: outlineColor,
630
- borderRadius: "sm",
631
- transition: "all 0.15s",
632
- boxShadow: "none",
633
- _focusWithin: {
634
- borderColor: focusColor
635
- }
636
- };
637
- return defineStyle(style);
638
- };
639
- var input_field_default = getWrapperStyle;
640
-
641
- // src/components/form/components/input-field.tsx
642
618
  import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
643
619
  var InputField = React3.forwardRef((props, ref) => {
644
620
  const {
@@ -660,7 +636,19 @@ var InputField = React3.forwardRef((props, ref) => {
660
636
  isLoading,
661
637
  ...inputProps
662
638
  } = props;
663
- const wrapperStyle = input_field_default(props);
639
+ const getProperties = () => {
640
+ let outlineColor2 = "neutral.400";
641
+ let focusColor2 = "primary.500";
642
+ if (isError || isDisabled || isSuccess) {
643
+ if (isError) outlineColor2 = "danger.500";
644
+ else if (isSuccess) outlineColor2 = "success.500";
645
+ focusColor2 = outlineColor2;
646
+ }
647
+ return {
648
+ outlineColor: outlineColor2,
649
+ focusColor: focusColor2
650
+ };
651
+ };
664
652
  const [isShowPassword, setIsShowPassword] = useState(false);
665
653
  const inputType = useMemo2(() => {
666
654
  return type === "password" && isShowPassword ? "text" : type;
@@ -674,6 +662,7 @@ var InputField = React3.forwardRef((props, ref) => {
674
662
  const iconColor = useMemo2(() => {
675
663
  return isDisabled ? "black.low" : "black.medium";
676
664
  }, [isDisabled]);
665
+ const { outlineColor, focusColor } = getProperties();
677
666
  return /* @__PURE__ */ jsx20(
678
667
  field_default,
679
668
  {
@@ -684,7 +673,7 @@ var InputField = React3.forwardRef((props, ref) => {
684
673
  leftHelperText,
685
674
  rightHelperText,
686
675
  isRequired,
687
- children: /* @__PURE__ */ jsx20(Box9, { __css: wrapperStyle, children: /* @__PURE__ */ jsxs6(
676
+ children: /* @__PURE__ */ jsx20(Box9, { children: /* @__PURE__ */ jsxs6(
688
677
  InputGroup,
689
678
  {
690
679
  size: size2,
@@ -701,6 +690,14 @@ var InputField = React3.forwardRef((props, ref) => {
701
690
  value,
702
691
  isDisabled,
703
692
  isSuccess,
693
+ transition: "all 0.15s",
694
+ boxShadow: "none",
695
+ borderRadius: "sm",
696
+ border: "1px solid",
697
+ borderColor: outlineColor,
698
+ _focusWithin: {
699
+ borderColor: focusColor
700
+ },
704
701
  ...inputProps,
705
702
  fontSize
706
703
  }
@@ -762,6 +759,7 @@ var InputField = React3.forwardRef((props, ref) => {
762
759
  }
763
760
  );
764
761
  });
762
+ InputField.displayName = "InputField";
765
763
  InputField.defaultProps = {
766
764
  addOnLeft: void 0,
767
765
  addOnRight: void 0,
@@ -769,7 +767,7 @@ InputField.defaultProps = {
769
767
  isLoading: void 0,
770
768
  onClear: void 0
771
769
  };
772
- var input_field_default2 = InputField;
770
+ var input_field_default = InputField;
773
771
 
774
772
  // src/components/form/components/textarea.tsx
775
773
  import { Box as Box10, Textarea as ChakraTextarea } from "@chakra-ui/react";
@@ -853,7 +851,7 @@ var Counter = ({
853
851
  }
854
852
  ),
855
853
  /* @__PURE__ */ jsx22(
856
- input_field_default2,
854
+ input_field_default,
857
855
  {
858
856
  "data-test-id": "CT_Component_Counter_input",
859
857
  value,
@@ -866,8 +864,7 @@ var Counter = ({
866
864
  onChange: handleChange,
867
865
  isReadOnly,
868
866
  width: 12,
869
- type: "number",
870
- borderColor: isError ? "danger.500" : "neutral.200"
867
+ type: "number"
871
868
  }
872
869
  ),
873
870
  /* @__PURE__ */ jsx22(
@@ -916,7 +913,6 @@ var getCommonPinningStyles = (column) => {
916
913
  left: isPinned === "left" ? `${column.getStart("left")}px` : void 0,
917
914
  right: isPinned === "right" ? `${column.getAfter("right")}px` : void 0,
918
915
  position: isPinned ? "sticky" : "relative",
919
- width: column.getSize(),
920
916
  zIndex: isPinned ? 1 : 0,
921
917
  backgroundColor: "white",
922
918
  ...isLastLeftPinnedColumn ? {
@@ -1078,8 +1074,8 @@ var DataTable = React5.forwardRef((props, ref) => {
1078
1074
  Th,
1079
1075
  {
1080
1076
  colSpan: header.colSpan,
1081
- width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
1082
1077
  sx: getCommonPinningStyles(header.column),
1078
+ width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
1083
1079
  ...styles == null ? void 0 : styles.tableColumnHeader,
1084
1080
  children: /* @__PURE__ */ jsxs9(
1085
1081
  Flex,
@@ -1197,7 +1193,6 @@ import {
1197
1193
  FormErrorMessage as FormErrorMessage3,
1198
1194
  FormHelperText as FormHelperText3,
1199
1195
  FormLabel as FormLabel3,
1200
- Input as Input2,
1201
1196
  InputGroup as InputGroup4,
1202
1197
  InputRightElement as InputRightElement3
1203
1198
  } from "@chakra-ui/react";
@@ -2070,7 +2065,6 @@ var Datepicker = ({
2070
2065
  var _a;
2071
2066
  const selected = value ? new Date(value) : void 0;
2072
2067
  const dateFormat = ((_a = props.dateFormat) != null ? _a : withTime) ? "yyyy-MM-dd HH:mm" : "yyyy-MM-dd";
2073
- const wrapperStyle = input_field_default({});
2074
2068
  const getTimeProps = () => {
2075
2069
  if (!withTime) return {};
2076
2070
  return {
@@ -2087,7 +2081,7 @@ var Datepicker = ({
2087
2081
  id,
2088
2082
  name,
2089
2083
  selected,
2090
- customInput: /* @__PURE__ */ jsx26(Input2, { autoComplete: "off", ...wrapperStyle }),
2084
+ customInput: /* @__PURE__ */ jsx26(input_field_default, { autoComplete: "off" }),
2091
2085
  dateFormat,
2092
2086
  showPopperArrow: false,
2093
2087
  calendarClassName: cx8({ inline: props.inline }),
@@ -2128,7 +2122,7 @@ Datepicker.defaultProps = {
2128
2122
  var datepicker_default = Datepicker;
2129
2123
 
2130
2124
  // src/components/datepicker/components/datepicker-month/datepicker-month.tsx
2131
- import { Box as Box13, Input as Input3 } from "@chakra-ui/react";
2125
+ import { Box as Box13, Input as Input2 } from "@chakra-ui/react";
2132
2126
  import { css as css2 } from "@emotion/react";
2133
2127
  import React7 from "react";
2134
2128
  import { jsx as jsx27 } from "react/jsx-runtime";
@@ -2150,7 +2144,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
2150
2144
  }
2151
2145
  `,
2152
2146
  children: /* @__PURE__ */ jsx27(
2153
- Input3,
2147
+ Input2,
2154
2148
  {
2155
2149
  "data-test-id": props["data-test-id"],
2156
2150
  type: "date",
@@ -2664,12 +2658,10 @@ import {
2664
2658
  } from "@chakra-ui/react";
2665
2659
 
2666
2660
  // src/components/navigation/components/navigation.tsx
2667
- import { ChevronDownIcon as ChevronDownIcon2 } from "@chakra-ui/icons";
2668
2661
  import {
2669
- Box as Box20,
2662
+ Box as Box21,
2663
+ Button as Button2,
2670
2664
  Flex as Flex6,
2671
- HStack as HStack5,
2672
- Icon as Icon2,
2673
2665
  Link as Link2,
2674
2666
  Popover as Popover2,
2675
2667
  PopoverContent as PopoverContent2,
@@ -2678,111 +2670,65 @@ import {
2678
2670
  Text as Text8,
2679
2671
  useColorModeValue as useColorModeValue8
2680
2672
  } from "@chakra-ui/react";
2673
+ import * as Icon3 from "@ctlyst.id/internal-icon";
2681
2674
  import { css as css3 } from "@emotion/react";
2682
2675
 
2683
- // src/components/navigation/components/mapping-icon.ts
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";
2676
+ // src/components/navigation/components/mapping-icon.tsx
2677
+ import * as Icon2 from "@ctlyst.id/internal-icon";
2700
2678
  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
2679
  var mappingIcon = /* @__PURE__ */ new Map([
2736
- ["Order", FiShoppingBag],
2737
- ["Fulfillment", FiShoppingCart],
2738
- ["Transfer Stock", FiRepeat],
2739
- ["Stock", FiBox],
2740
- ["Product Database", FiLayers],
2741
- ["Purchasing", FiDollarSign],
2742
- ["Reseller", FiUsers],
2743
- ["Retur", FiRotateCcw],
2744
- ["Other", FiSettings],
2745
- ["Content", FiLayout],
2746
- ["Voucher", FiGift],
2747
- ["Customer", customer_icon_default]
2680
+ ["Order", /* @__PURE__ */ jsx40(Icon2.ShoppingBag, { size: 4, color: "inherit" }, "order")],
2681
+ ["Fulfillment", /* @__PURE__ */ jsx40(Icon2.ShoppingCart, { size: 4, color: "inherit" }, "fullfilment")],
2682
+ ["Transfer Stock", /* @__PURE__ */ jsx40(Icon2.Repeat, { size: 4, color: "inherit" }, "transfer-stock")],
2683
+ ["Stock", /* @__PURE__ */ jsx40(Icon2.Box, { size: 4, color: "inherit" }, "stock")],
2684
+ ["Product Database", /* @__PURE__ */ jsx40(Icon2.Layers, { size: 4, color: "inherit" }, "product-database")],
2685
+ ["Purchasing", /* @__PURE__ */ jsx40(Icon2.DollarSign, { size: 4, color: "inherit" }, "purchasing")],
2686
+ ["Reseller", /* @__PURE__ */ jsx40(Icon2.Users, { size: 4, color: "inherit" }, "reseller")],
2687
+ ["Retur", /* @__PURE__ */ jsx40(Icon2.RotateCcw, { size: 4, color: "inherit" }, "retur")],
2688
+ ["Other", /* @__PURE__ */ jsx40(Icon2.Settings, { size: 4, color: "inherit" }, "other")],
2689
+ ["Content", /* @__PURE__ */ jsx40(Icon2.Layout, { size: 4, color: "inherit" }, "content")],
2690
+ ["Customer", /* @__PURE__ */ jsx40(Icon2.HelpCircle, { size: 4, color: "inherit" }, "content")],
2691
+ ["Voucher", /* @__PURE__ */ jsx40(Icon2.Gift, { size: 4, color: "inherit" }, "content")]
2748
2692
  ]);
2749
2693
 
2750
2694
  // src/components/navigation/components/navigation.tsx
2751
2695
  import { Fragment as Fragment4, jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
2752
2696
  var Navigation = ({ navigations, activePath, as, host, ...props }) => {
2753
- return /* @__PURE__ */ jsx41(
2754
- Box20,
2697
+ return /* @__PURE__ */ jsx41(Box21, { borderRadius: "md", overflowX: "auto", ...props, children: /* @__PURE__ */ jsx41(
2698
+ Flex6,
2755
2699
  {
2756
- bg: useColorModeValue8("white", "ebony-clay.800"),
2757
- boxShadow: "0 4px 20px 0 rgb(0 0 0 / 5%)",
2758
- borderRadius: "md",
2759
- overflowX: "auto",
2760
- ...props,
2761
- children: /* @__PURE__ */ jsx41(Flex6, { alignItems: "center", p: 2, children: /* @__PURE__ */ jsx41(HStack5, { spacing: 2, children: navigations == null ? void 0 : navigations.map((navigation) => {
2700
+ bg: "white",
2701
+ w: "full",
2702
+ rounded: "md",
2703
+ flexWrap: "wrap",
2704
+ alignItems: "center",
2705
+ shadow: "raised",
2706
+ gap: 1,
2707
+ px: 4,
2708
+ py: 2,
2709
+ children: navigations == null ? void 0 : navigations.map((navigation) => {
2762
2710
  const isActive = activePath.startsWith(navigation.navLink || "");
2763
2711
  const activeBg = isActive ? "primary.500" : void 0;
2764
2712
  return /* @__PURE__ */ jsx41(Popover2, { trigger: "hover", placement: "bottom-start", children: ({ isOpen }) => /* @__PURE__ */ jsxs17(Fragment4, { children: [
2765
- /* @__PURE__ */ jsx41(PopoverTrigger2, { children: /* @__PURE__ */ jsxs17(
2766
- Box20,
2713
+ /* @__PURE__ */ jsx41(PopoverTrigger2, { children: /* @__PURE__ */ jsx41(
2714
+ Button2,
2767
2715
  {
2768
- display: "flex",
2769
- alignItems: "center",
2770
- borderRadius: "md",
2771
- cursor: "pointer",
2716
+ h: 7.5,
2717
+ p: 2,
2718
+ size: "sm",
2719
+ variant: "ghost",
2720
+ "data-test-id": `CT_component_navigation_button-${navigation.title}${isActive ? "-active" : ""}`,
2772
2721
  _hover: {
2773
- backgroundColor: !isActive ? useColorModeValue8("dove-gray.50", "transparent") : activeBg
2722
+ backgroundColor: !isActive ? "neutral.400" : activeBg
2774
2723
  },
2775
- backgroundColor: isOpen && !isActive ? useColorModeValue8("dove-gray.50", "transparent") : activeBg,
2776
- color: isActive ? "white" : "inherit",
2777
- p: 2,
2778
- children: [
2779
- /* @__PURE__ */ jsx41(Icon2, { as: mappingIcon.get(navigation.title), mr: 2 }),
2780
- /* @__PURE__ */ jsx41(Text8, { whiteSpace: "nowrap", fontSize: "text.sm", fontWeight: 400, children: navigation.title }),
2781
- /* @__PURE__ */ jsx41(ChevronDownIcon2, { ml: 2 })
2782
- ]
2724
+ backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
2725
+ color: isActive ? "primary.50" : "black.high",
2726
+ leftIcon: mappingIcon.get(navigation.title),
2727
+ rightIcon: /* @__PURE__ */ jsx41(Icon3.ChevronDown, { size: 4, color: "inherit" }),
2728
+ children: navigation.title
2783
2729
  }
2784
2730
  ) }),
2785
- navigation.children && /* @__PURE__ */ jsx41(Portal, { children: /* @__PURE__ */ jsx41(Box20, { zIndex: "popover", children: /* @__PURE__ */ jsx41(
2731
+ navigation.children && /* @__PURE__ */ jsx41(Portal, { children: /* @__PURE__ */ jsx41(Box21, { zIndex: "popover", children: /* @__PURE__ */ jsx41(
2786
2732
  PopoverContent2,
2787
2733
  {
2788
2734
  bg: useColorModeValue8("white", "ebony-clay.800"),
@@ -2803,7 +2749,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
2803
2749
  textDecoration: "none"
2804
2750
  },
2805
2751
  children: /* @__PURE__ */ jsxs17(
2806
- Box20,
2752
+ Box21,
2807
2753
  {
2808
2754
  display: "flex",
2809
2755
  position: "relative",
@@ -2820,15 +2766,15 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
2820
2766
  },
2821
2767
  color: isActiveSub ? "primary.500" : "inherit",
2822
2768
  css: css3`
2823
- border-spacing: 4px;
2824
- `,
2769
+ border-spacing: 4px;
2770
+ `,
2825
2771
  px: 6,
2826
2772
  py: 4,
2827
2773
  children: [
2828
- /* @__PURE__ */ jsx41(Icon2, { as: mappingIcon.get(navigation.title), mr: 3 }),
2829
- /* @__PURE__ */ jsx41(Text8, { fontSize: "text.sm", children: title }),
2774
+ mappingIcon.get(navigation.title),
2775
+ /* @__PURE__ */ jsx41(Text8, { fontSize: "text.sm", ml: 3, children: title }),
2830
2776
  isActiveSub && /* @__PURE__ */ jsx41(
2831
- Box20,
2777
+ Box21,
2832
2778
  {
2833
2779
  width: 0.5,
2834
2780
  height: 8,
@@ -2849,9 +2795,9 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
2849
2795
  navigation.title
2850
2796
  ) }) })
2851
2797
  ] }) }, navigation.title);
2852
- }) }) })
2798
+ })
2853
2799
  }
2854
- );
2800
+ ) });
2855
2801
  };
2856
2802
  Navigation.defaultProps = {
2857
2803
  navigations: void 0,
@@ -2861,8 +2807,8 @@ Navigation.defaultProps = {
2861
2807
  var navigation_default = Navigation;
2862
2808
 
2863
2809
  // src/components/navigation/components/navigation-bar.tsx
2864
- import { Box as Box21, Button as Button2, Flex as Flex7, Link as Link3, Popover as Popover3, PopoverContent as PopoverContent3, PopoverTrigger as PopoverTrigger3, Text as Text9 } from "@chakra-ui/react";
2865
- import * as Icon3 from "@ctlyst.id/internal-icon";
2810
+ 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";
2811
+ import * as Icon4 from "@ctlyst.id/internal-icon";
2866
2812
  import { Fragment as Fragment5, jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
2867
2813
  var NavigationBar = ({
2868
2814
  navigations,
@@ -2878,80 +2824,69 @@ var NavigationBar = ({
2878
2824
  }
2879
2825
  return subMenu.navHost + subMenu.navLink;
2880
2826
  };
2881
- return /* @__PURE__ */ jsx42(
2882
- Box21,
2827
+ return /* @__PURE__ */ jsx42(Box22, { hidden: isFetched && navigations === void 0, "data-test-id": "CT_component_navigation_cms", ...props, children: /* @__PURE__ */ jsx42(
2828
+ Flex7,
2883
2829
  {
2884
- hidden: isFetched && navigations === void 0,
2885
- backgroundRepeat: "repeat-x",
2886
- "data-test-id": "CT_component_navigation_cms",
2887
- ...props,
2888
- children: /* @__PURE__ */ jsx42(
2889
- Flex7,
2890
- {
2891
- bg: "white",
2892
- w: "full",
2893
- rounded: "md",
2894
- flexWrap: "wrap",
2895
- alignItems: "center",
2896
- shadow: "raised",
2897
- gap: 1,
2898
- px: 4,
2899
- py: 2,
2900
- children: navigations == null ? void 0 : navigations.map((item) => {
2901
- var _a;
2902
- const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
2903
- const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
2904
- const activeBg = isActive ? "primary.500" : void 0;
2905
- return /* @__PURE__ */ jsx42(Popover3, { isLazy: true, trigger: "hover", placement: "bottom-start", openDelay: 100, closeDelay: 100, children: ({ isOpen, onClose }) => /* @__PURE__ */ jsxs18(Fragment5, { children: [
2906
- /* @__PURE__ */ jsx42(PopoverTrigger3, { children: /* @__PURE__ */ jsx42(
2907
- Button2,
2908
- {
2909
- h: 7.5,
2910
- p: 2,
2911
- size: "sm",
2912
- variant: "ghost",
2913
- "data-test-id": `CT_component_navigation_button-${item.title}${isActive ? "-active" : ""}`,
2914
- _hover: {
2915
- backgroundColor: !isActive ? "neutral.400" : activeBg
2916
- },
2917
- backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
2918
- color: isActive ? "primary.50" : "black.high",
2919
- leftIcon: mappingIcon2.get(item.title),
2920
- rightIcon: /* @__PURE__ */ jsx42(Icon3.ChevronDown, { size: 4, color: "inherit" }),
2921
- children: item.title
2922
- }
2923
- ) }),
2924
- item.children && /* @__PURE__ */ jsx42(PopoverContent3, { border: "none", shadow: "raised", py: 1, width: 240, children: item.children.map((subMenu) => /* @__PURE__ */ jsxs18(
2925
- Link3,
2926
- {
2927
- href: urlMenu(subMenu),
2928
- display: "flex",
2929
- alignItems: "center",
2930
- transition: "padding 0.35s ease 0s",
2931
- _hover: {
2932
- pl: 6
2933
- },
2934
- _first: { borderTopRadius: "md" },
2935
- _last: { borderBottomRadius: "md" },
2936
- py: 3,
2937
- px: 4,
2938
- color: (pathname == null ? void 0 : pathname.startsWith(subMenu.navLink)) ? "primary.800" : "black.high",
2939
- onClick: onClose,
2940
- background: (pathname == null ? void 0 : pathname.startsWith(subMenu.navLink)) ? "primary.50" : "transparent",
2941
- "data-test-id": `CT_component_navigation_link-${item.id}`,
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
- )
2830
+ bg: "white",
2831
+ w: "full",
2832
+ rounded: "md",
2833
+ flexWrap: "wrap",
2834
+ alignItems: "center",
2835
+ shadow: "raised",
2836
+ gap: 1,
2837
+ px: 4,
2838
+ py: 2,
2839
+ children: navigations == null ? void 0 : navigations.map((item) => {
2840
+ var _a;
2841
+ const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
2842
+ const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
2843
+ const activeBg = isActive ? "primary.500" : void 0;
2844
+ return /* @__PURE__ */ jsx42(Popover3, { isLazy: true, trigger: "hover", placement: "bottom-start", openDelay: 100, closeDelay: 100, children: ({ isOpen, onClose }) => /* @__PURE__ */ jsxs18(Fragment5, { children: [
2845
+ /* @__PURE__ */ jsx42(PopoverTrigger3, { children: /* @__PURE__ */ jsx42(
2846
+ Button3,
2847
+ {
2848
+ h: 7.5,
2849
+ p: 2,
2850
+ size: "sm",
2851
+ variant: "ghost",
2852
+ "data-test-id": `CT_component_navigation_button-${item.title}${isActive ? "-active" : ""}`,
2853
+ _hover: {
2854
+ backgroundColor: !isActive ? "neutral.400" : activeBg
2855
+ },
2856
+ backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
2857
+ color: isActive ? "primary.50" : "black.high",
2858
+ leftIcon: mappingIcon2.get(item.title),
2859
+ rightIcon: /* @__PURE__ */ jsx42(Icon4.ChevronDown, { size: 4, color: "inherit" }),
2860
+ children: item.title
2861
+ }
2862
+ ) }),
2863
+ item.children && /* @__PURE__ */ jsx42(PopoverContent3, { bg: "white", boxShadow: "raised", borderRadius: "md", py: 1, width: 240, children: item.children.map((subMenu) => /* @__PURE__ */ jsxs18(
2864
+ Link3,
2865
+ {
2866
+ href: urlMenu(subMenu),
2867
+ display: "flex",
2868
+ alignItems: "center",
2869
+ transition: "padding 0.35s ease 0s",
2870
+ _hover: {
2871
+ pl: 6
2872
+ },
2873
+ py: 3,
2874
+ px: 4,
2875
+ color: (pathname == null ? void 0 : pathname.startsWith(subMenu.navLink)) ? "primary.800" : "black.high",
2876
+ onClick: onClose,
2877
+ background: (pathname == null ? void 0 : pathname.startsWith(subMenu.navLink)) ? "primary.50" : "transparent",
2878
+ "data-test-id": `CT_component_navigation_link-${item.id}`,
2879
+ children: [
2880
+ mappingIcon2.get(item.title),
2881
+ /* @__PURE__ */ jsx42(Text9, { textStyle: "text-sm", ml: 3, children: subMenu.title })
2882
+ ]
2883
+ },
2884
+ subMenu.id
2885
+ )) })
2886
+ ] }) }, item.id);
2887
+ })
2953
2888
  }
2954
- );
2889
+ ) });
2955
2890
  };
2956
2891
  NavigationBar.defaultProps = {
2957
2892
  navigations: void 0
@@ -2960,10 +2895,10 @@ var navigation_bar_default = NavigationBar;
2960
2895
 
2961
2896
  // src/components/pagination/components/pagination.tsx
2962
2897
  import { ArrowLeftIcon, ArrowRightIcon, ChevronLeftIcon as ChevronLeftIcon2, ChevronRightIcon } from "@chakra-ui/icons";
2963
- import { Box as Box22, Text as Text10, useColorModeValue as useColorModeValue10 } from "@chakra-ui/react";
2898
+ import { Box as Box23, Text as Text10, useColorModeValue as useColorModeValue10 } from "@chakra-ui/react";
2964
2899
 
2965
2900
  // src/components/pagination/components/pagination-button.tsx
2966
- import { Button as Button3, forwardRef as forwardRef12, useColorModeValue as useColorModeValue9 } from "@chakra-ui/react";
2901
+ import { Button as Button4, forwardRef as forwardRef12, useColorModeValue as useColorModeValue9 } from "@chakra-ui/react";
2967
2902
  import { jsx as jsx43 } from "react/jsx-runtime";
2968
2903
  var PaginationButton = forwardRef12(({ className, style, isActive, children, ...rest }, ref) => {
2969
2904
  const btnBg = useColorModeValue9("neutral.300", "mirage.900");
@@ -2971,7 +2906,7 @@ var PaginationButton = forwardRef12(({ className, style, isActive, children, ...
2971
2906
  const btnNotActiveBg = useColorModeValue9("secondary.50", "primary.500");
2972
2907
  const btnNotActiveColor = useColorModeValue9("primary.500", "white");
2973
2908
  return /* @__PURE__ */ jsx43(
2974
- Button3,
2909
+ Button4,
2975
2910
  {
2976
2911
  "data-test-id": "Pagination-Button",
2977
2912
  ref,
@@ -3060,8 +2995,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
3060
2995
  }
3061
2996
  return pageButtons;
3062
2997
  };
3063
- return /* @__PURE__ */ jsxs20(Box22, { className, display: "inline-flex", alignItems: "center", children: [
3064
- /* @__PURE__ */ jsx45(Box22, { mr: 1, children: /* @__PURE__ */ jsx45(
2998
+ return /* @__PURE__ */ jsxs20(Box23, { className, display: "inline-flex", alignItems: "center", children: [
2999
+ /* @__PURE__ */ jsx45(Box23, { mr: 1, children: /* @__PURE__ */ jsx45(
3065
3000
  pagination_button_trigger_default,
3066
3001
  {
3067
3002
  "data-test-id": "Pagination-Button",
@@ -3072,7 +3007,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
3072
3007
  icon: /* @__PURE__ */ jsx45(ArrowLeftIcon, { width: 2 })
3073
3008
  }
3074
3009
  ) }),
3075
- /* @__PURE__ */ jsxs20(Box22, { bg: "neutral.300", borderRadius: "full", children: [
3010
+ /* @__PURE__ */ jsxs20(Box23, { bg: "neutral.300", borderRadius: "full", children: [
3076
3011
  /* @__PURE__ */ jsx45(
3077
3012
  pagination_button_trigger_default,
3078
3013
  {
@@ -3108,7 +3043,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
3108
3043
  }
3109
3044
  )
3110
3045
  ] }),
3111
- /* @__PURE__ */ jsx45(Box22, { ml: 1, children: /* @__PURE__ */ jsx45(
3046
+ /* @__PURE__ */ jsx45(Box23, { ml: 1, children: /* @__PURE__ */ jsx45(
3112
3047
  pagination_button_trigger_default,
3113
3048
  {
3114
3049
  "data-test-id": "Pagination-Button",
@@ -3145,7 +3080,7 @@ var PaginationDetail = ({
3145
3080
  var pagination_detail_default = PaginationDetail;
3146
3081
 
3147
3082
  // src/components/pagination/components/pagination-filter.tsx
3148
- import { Box as Box23, Select, Text as Text12, useColorModeValue as useColorModeValue11 } from "@chakra-ui/react";
3083
+ import { Box as Box24, Select, Text as Text12, useColorModeValue as useColorModeValue11 } from "@chakra-ui/react";
3149
3084
  import * as React13 from "react";
3150
3085
  import { FiChevronDown } from "react-icons/fi";
3151
3086
  import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
@@ -3157,7 +3092,7 @@ var PaginationFilter = ({
3157
3092
  ...rest
3158
3093
  }) => {
3159
3094
  const [value, setValue] = React13.useState(limit);
3160
- return /* @__PURE__ */ jsxs21(Box23, { display: "flex", flexDirection: "row", alignItems: "center", children: [
3095
+ return /* @__PURE__ */ jsxs21(Box24, { display: "flex", flexDirection: "row", alignItems: "center", children: [
3161
3096
  /* @__PURE__ */ jsx47(Text12, { fontSize: "text.sm", lineHeight: 18, color: useColorModeValue11("neutral.900", "white"), ...rest, children: label }),
3162
3097
  /* @__PURE__ */ jsx47(
3163
3098
  Select,
@@ -3211,7 +3146,7 @@ import {
3211
3146
  } from "@chakra-ui/react";
3212
3147
 
3213
3148
  // src/components/radio/components/radio.tsx
3214
- import { Box as Box24, Radio as ChakraRadio, Text as Text13 } from "@chakra-ui/react";
3149
+ import { Box as Box25, Radio as ChakraRadio, Text as Text13 } from "@chakra-ui/react";
3215
3150
  import { jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
3216
3151
  var Radio = ({
3217
3152
  isError = false,
@@ -3222,9 +3157,9 @@ var Radio = ({
3222
3157
  ...rest
3223
3158
  }) => {
3224
3159
  const variant = isError ? "errors" : "unstyled";
3225
- return /* @__PURE__ */ jsxs22(Box24, { children: [
3226
- /* @__PURE__ */ jsx48(Box24, { 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 }) }) }),
3227
- /* @__PURE__ */ jsx48(Box24, { 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 }) })
3160
+ return /* @__PURE__ */ jsxs22(Box25, { children: [
3161
+ /* @__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 }) }) }),
3162
+ /* @__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
3163
  ] });
3229
3164
  };
3230
3165
  Radio.displayName = "Radio";
@@ -3235,7 +3170,7 @@ Radio.defaultProps = {
3235
3170
  };
3236
3171
 
3237
3172
  // src/components/radio/components/radio-group.tsx
3238
- import { Box as Box25, RadioGroup as ChakraRadioGroup, Stack as Stack3 } from "@chakra-ui/react";
3173
+ import { Box as Box26, RadioGroup as ChakraRadioGroup, Stack as Stack3 } from "@chakra-ui/react";
3239
3174
  import { jsx as jsx49 } from "react/jsx-runtime";
3240
3175
  var RadioGroup = ({
3241
3176
  children,
@@ -3245,7 +3180,7 @@ var RadioGroup = ({
3245
3180
  errorMessage,
3246
3181
  ...props
3247
3182
  }) => {
3248
- return /* @__PURE__ */ jsx49(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ jsx49(Box25, { mt: "12px", children: /* @__PURE__ */ jsx49(ChakraRadioGroup, { ...props, children: /* @__PURE__ */ jsx49(Stack3, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
3183
+ 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
3184
  };
3250
3185
  RadioGroup.displayName = "RadioGroup";
3251
3186
  RadioGroup.defaultProps = {
@@ -3786,7 +3721,7 @@ import {
3786
3721
  } from "@chakra-ui/react";
3787
3722
 
3788
3723
  // src/components/tabs/components/tab.tsx
3789
- import { Button as Button4, Flex as Flex9, forwardRef as forwardRef14, useMultiStyleConfig as useMultiStyleConfig3, useTab } from "@chakra-ui/react";
3724
+ import { Button as Button5, Flex as Flex9, forwardRef as forwardRef14, useMultiStyleConfig as useMultiStyleConfig3, useTab } from "@chakra-ui/react";
3790
3725
  import { jsx as jsx56, jsxs as jsxs24 } from "react/jsx-runtime";
3791
3726
  var Tab = forwardRef14((props, ref) => {
3792
3727
  var _a, _b;
@@ -3794,7 +3729,7 @@ var Tab = forwardRef14((props, ref) => {
3794
3729
  const isSelected = !!tabProps["aria-selected"];
3795
3730
  const styles = useMultiStyleConfig3("Tabs", tabProps);
3796
3731
  return /* @__PURE__ */ jsx56(
3797
- Button4,
3732
+ Button5,
3798
3733
  {
3799
3734
  "data-test-id": props["data-test-id"],
3800
3735
  p: 4,
@@ -4040,12 +3975,12 @@ __export(components_exports, {
4040
3975
 
4041
3976
  // src/config/theme/components/accordion.ts
4042
3977
  import { accordionAnatomy as parts } from "@chakra-ui/anatomy";
4043
- import { createMultiStyleConfigHelpers, defineStyle as defineStyle2 } from "@chakra-ui/styled-system";
3978
+ import { createMultiStyleConfigHelpers, defineStyle } from "@chakra-ui/styled-system";
4044
3979
  var { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(parts.keys);
4045
- var baseStyleContainer = defineStyle2({
3980
+ var baseStyleContainer = defineStyle({
4046
3981
  border: "none"
4047
3982
  });
4048
- var baseStyleButton = defineStyle2({
3983
+ var baseStyleButton = defineStyle({
4049
3984
  height: 14,
4050
3985
  transitionProperty: "common",
4051
3986
  transitionDuration: "normal",
@@ -4074,12 +4009,12 @@ var baseStyleButton = defineStyle2({
4074
4009
  visibility: "hidden"
4075
4010
  }
4076
4011
  });
4077
- var baseStylePanel = defineStyle2({
4012
+ var baseStylePanel = defineStyle({
4078
4013
  pt: "2",
4079
4014
  px: "4",
4080
4015
  pb: "5"
4081
4016
  });
4082
- var baseStyleIcon = defineStyle2({
4017
+ var baseStyleIcon = defineStyle({
4083
4018
  fontSize: "1.25em"
4084
4019
  });
4085
4020
  var baseStyle = definePartsStyle({
@@ -4088,14 +4023,14 @@ var baseStyle = definePartsStyle({
4088
4023
  panel: baseStylePanel,
4089
4024
  icon: baseStyleIcon
4090
4025
  });
4091
- var collapseStyleButton = defineStyle2({
4026
+ var collapseStyleButton = defineStyle({
4092
4027
  height: 13,
4093
4028
  borderRadius: "sm",
4094
4029
  borderWidth: "1px",
4095
4030
  borderStyle: "solid",
4096
4031
  borderColor: "neutral.300"
4097
4032
  });
4098
- var collapseStylePanel = defineStyle2({
4033
+ var collapseStylePanel = defineStyle({
4099
4034
  py: 0,
4100
4035
  pr: 0,
4101
4036
  pl: 12,
@@ -4285,7 +4220,7 @@ var badge_default2 = Badge2;
4285
4220
 
4286
4221
  // src/config/theme/components/button.ts
4287
4222
  import { defineStyleConfig } from "@chakra-ui/styled-system";
4288
- var Button5 = defineStyleConfig({
4223
+ var Button6 = defineStyleConfig({
4289
4224
  // The styles all button have in common
4290
4225
  baseStyle: {
4291
4226
  fontSize: "body.1",
@@ -4540,7 +4475,7 @@ var Button5 = defineStyleConfig({
4540
4475
  colorScheme: "primary"
4541
4476
  }
4542
4477
  });
4543
- var button_default2 = Button5;
4478
+ var button_default2 = Button6;
4544
4479
 
4545
4480
  // src/config/theme/components/card.ts
4546
4481
  import { defineStyleConfig as defineStyleConfig2 } from "@chakra-ui/styled-system";
@@ -4718,8 +4653,8 @@ var Chips2 = defineStyleConfig3({
4718
4653
  var chips_default2 = Chips2;
4719
4654
 
4720
4655
  // src/config/theme/components/form-label.ts
4721
- import { defineStyle as defineStyle3, defineStyleConfig as defineStyleConfig4 } from "@chakra-ui/styled-system";
4722
- var baseStyle4 = defineStyle3({
4656
+ import { defineStyle as defineStyle2, defineStyleConfig as defineStyleConfig4 } from "@chakra-ui/styled-system";
4657
+ var baseStyle4 = defineStyle2({
4723
4658
  fontSize: "field.sm",
4724
4659
  fontWeight: "normal",
4725
4660
  marginEnd: 1,
@@ -4732,7 +4667,7 @@ var form_label_default = FormLabel4;
4732
4667
 
4733
4668
  // src/config/theme/components/input.ts
4734
4669
  import { inputAnatomy as parts3 } from "@chakra-ui/anatomy";
4735
- import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers4, defineStyle as defineStyle4 } from "@chakra-ui/styled-system";
4670
+ import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers4, defineStyle as defineStyle3 } from "@chakra-ui/styled-system";
4736
4671
  import { mode } from "@chakra-ui/theme-tools";
4737
4672
  var { definePartsStyle: definePartsStyle4, defineMultiStyleConfig: defineMultiStyleConfig4 } = createMultiStyleConfigHelpers4(parts3.keys);
4738
4673
  var baseStyle5 = definePartsStyle4({
@@ -4761,19 +4696,19 @@ var baseStyle5 = definePartsStyle4({
4761
4696
  }
4762
4697
  });
4763
4698
  var size = {
4764
- lg: defineStyle4({
4699
+ lg: defineStyle3({
4765
4700
  fontSize: "text.lg",
4766
4701
  h: 12,
4767
4702
  borderRadius: "sm"
4768
4703
  }),
4769
- md: defineStyle4({
4704
+ md: defineStyle3({
4770
4705
  fontSize: "text.md",
4771
4706
  h: 10,
4772
4707
  borderRadius: "sm"
4773
4708
  }),
4774
- sm: defineStyle4({
4709
+ sm: defineStyle3({
4775
4710
  fontSize: "text.sm",
4776
- h: 9,
4711
+ h: 9.5,
4777
4712
  borderRadius: "sm"
4778
4713
  })
4779
4714
  };
@@ -4797,6 +4732,9 @@ var outline = definePartsStyle4((props) => {
4797
4732
  outline: 0,
4798
4733
  bg: mode("white", "inherit")(props),
4799
4734
  color: mode("inherit", "white")(props),
4735
+ _hover: {
4736
+ borderColor: mode("neutral.400", "inherit")(props)
4737
+ },
4800
4738
  _invalid: {
4801
4739
  boxShadow: "none"
4802
4740
  },
@@ -4825,7 +4763,7 @@ var variants3 = {
4825
4763
  outline,
4826
4764
  unstyled: unstyled2
4827
4765
  };
4828
- var Input4 = defineMultiStyleConfig4({
4766
+ var Input3 = defineMultiStyleConfig4({
4829
4767
  baseStyle: baseStyle5,
4830
4768
  sizes: sizes2,
4831
4769
  variants: variants3,
@@ -4834,7 +4772,7 @@ var Input4 = defineMultiStyleConfig4({
4834
4772
  variant: "outline"
4835
4773
  }
4836
4774
  });
4837
- var input_default = Input4;
4775
+ var input_default = Input3;
4838
4776
 
4839
4777
  // src/config/theme/components/loader.ts
4840
4778
  import { defineStyleConfig as defineStyleConfig5 } from "@chakra-ui/styled-system";
@@ -5072,7 +5010,7 @@ var radio_default = Radio2;
5072
5010
 
5073
5011
  // src/config/theme/components/switch.ts
5074
5012
  import { switchAnatomy as parts4 } from "@chakra-ui/anatomy";
5075
- import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers6, defineStyle as defineStyle5 } from "@chakra-ui/styled-system";
5013
+ import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers6, defineStyle as defineStyle4 } from "@chakra-ui/styled-system";
5076
5014
  import { calc, cssVar as cssVar2 } from "@chakra-ui/theme-tools";
5077
5015
  var { defineMultiStyleConfig: defineMultiStyleConfig6, definePartsStyle: definePartsStyle6 } = createMultiStyleConfigHelpers6(parts4.keys);
5078
5016
  var $width = cssVar2("switch-track-width");
@@ -5080,7 +5018,7 @@ var $height = cssVar2("switch-track-height");
5080
5018
  var $diff = cssVar2("switch-track-diff");
5081
5019
  var diffValue = calc.subtract($width, $height);
5082
5020
  var $translateX = cssVar2("switch-thumb-x");
5083
- var baseStyleThumb = defineStyle5({
5021
+ var baseStyleThumb = defineStyle4({
5084
5022
  bg: "white",
5085
5023
  transitionProperty: "transform",
5086
5024
  transitionDuration: "normal",
@@ -5158,7 +5096,7 @@ var switch_default2 = Switch3;
5158
5096
 
5159
5097
  // src/config/theme/components/table.ts
5160
5098
  import { tableAnatomy as parts5 } from "@chakra-ui/anatomy";
5161
- import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers7, defineStyle as defineStyle6 } from "@chakra-ui/styled-system";
5099
+ import { createMultiStyleConfigHelpers as createMultiStyleConfigHelpers7, defineStyle as defineStyle5 } from "@chakra-ui/styled-system";
5162
5100
  import { mode as mode2 } from "@chakra-ui/theme-tools";
5163
5101
  var { defineMultiStyleConfig: defineMultiStyleConfig7, definePartsStyle: definePartsStyle7 } = createMultiStyleConfigHelpers7(parts5.keys);
5164
5102
  var baseStyle8 = definePartsStyle7({
@@ -5218,7 +5156,7 @@ var baseStyle8 = definePartsStyle7({
5218
5156
  fontWeight: "medium"
5219
5157
  }
5220
5158
  });
5221
- var numericStyles = defineStyle6({
5159
+ var numericStyles = defineStyle5({
5222
5160
  "&[data-is-numeric=true]": {
5223
5161
  textAlign: "end"
5224
5162
  }
@@ -5291,7 +5229,7 @@ var variantStripe = definePartsStyle7((props) => {
5291
5229
  var variants5 = {
5292
5230
  simple: variantSimple,
5293
5231
  striped: variantStripe,
5294
- unstyled: defineStyle6({})
5232
+ unstyled: defineStyle5({})
5295
5233
  };
5296
5234
  var sizes4 = {
5297
5235
  sm: definePartsStyle7({
@@ -5398,7 +5336,7 @@ var tabsTheme = defineMultiStyleConfig8({
5398
5336
  var tabs_default = tabsTheme;
5399
5337
 
5400
5338
  // src/config/theme/components/textarea.ts
5401
- import { defineStyle as defineStyle7, defineStyleConfig as defineStyleConfig7 } from "@chakra-ui/react";
5339
+ import { defineStyle as defineStyle6, defineStyleConfig as defineStyleConfig7 } from "@chakra-ui/react";
5402
5340
  var getProps = (props) => {
5403
5341
  const { isError, isSuccess, isDisabled } = props;
5404
5342
  let borderColor = "neutral.400";
@@ -5418,7 +5356,7 @@ var getProps = (props) => {
5418
5356
  borderColor
5419
5357
  };
5420
5358
  };
5421
- var outline2 = defineStyle7((props) => {
5359
+ var outline2 = defineStyle6((props) => {
5422
5360
  const { focusBorderColor, borderColor } = getProps(props);
5423
5361
  return {
5424
5362
  background: "white.high",
@@ -5723,7 +5661,7 @@ export {
5723
5661
  InputAddonRight,
5724
5662
  InputLeftElement as InputElementLeft,
5725
5663
  InputRightElement as InputElementRight,
5726
- input_field_default2 as InputField,
5664
+ input_field_default as InputField,
5727
5665
  InputGroup2 as InputGroup,
5728
5666
  InputGroupProps,
5729
5667
  InputLeftAddon2 as InputLeftAddon,