@ctlyst.id/internal-ui 2.1.19 → 2.1.20

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -74,8 +74,8 @@ __export(src_exports, {
74
74
  ButtonGroupProps: () => import_react9.ButtonGroupProps,
75
75
  Card: () => card_default,
76
76
  Center: () => import_react47.Center,
77
- ChakraProvider: () => import_react91.ChakraProvider,
78
- ChakraProviderProps: () => import_react91.ChakraProviderProps,
77
+ ChakraProvider: () => import_react92.ChakraProvider,
78
+ ChakraProviderProps: () => import_react92.ChakraProviderProps,
79
79
  ChakraTable: () => import_react77.Table,
80
80
  Checkbox: () => checkbox_default,
81
81
  CheckboxGroup: () => checkbox_group_default,
@@ -91,9 +91,9 @@ __export(src_exports, {
91
91
  CodeProps: () => import_react80.CodeProps,
92
92
  Collapse: () => import_react83.Collapse,
93
93
  CollapseProps: () => import_react83.CollapseProps,
94
- ColorMode: () => import_react91.ColorMode,
95
- ColorModeScript: () => import_react91.ColorModeScript,
96
- ColorModeScriptProps: () => import_react91.ColorModeScriptProps,
94
+ ColorMode: () => import_react92.ColorMode,
95
+ ColorModeScript: () => import_react92.ColorModeScript,
96
+ ColorModeScriptProps: () => import_react92.ColorModeScriptProps,
97
97
  Container: () => import_react47.Container,
98
98
  ContainerProps: () => import_react47.ContainerProps,
99
99
  Counter: () => counter_default,
@@ -282,7 +282,7 @@ __export(src_exports, {
282
282
  UseCheckboxGroupReturn: () => import_react16.UseCheckboxGroupReturn,
283
283
  UseCheckboxProps: () => import_react16.UseCheckboxProps,
284
284
  UseCheckboxReturn: () => import_react16.UseCheckboxReturn,
285
- UseDisclosureProps: () => import_react93.UseDisclosureProps,
285
+ UseDisclosureProps: () => import_react94.UseDisclosureProps,
286
286
  UseImageProps: () => import_react83.UseImageProps,
287
287
  UseImageReturn: () => import_react83.UseImageReturn,
288
288
  UseMediaQueryOptions: () => import_react83.UseMediaQueryOptions,
@@ -306,8 +306,8 @@ __export(src_exports, {
306
306
  WrapItem: () => import_react47.WrapItem,
307
307
  WrapItemProps: () => import_react47.WrapItemProps,
308
308
  WrapProps: () => import_react47.WrapProps,
309
- extendTheme: () => import_react94.extendTheme,
310
- forwardRef: () => import_react94.forwardRef,
309
+ extendTheme: () => import_react95.extendTheme,
310
+ forwardRef: () => import_react95.forwardRef,
311
311
  getTheme: () => getTheme,
312
312
  theme: () => theme5,
313
313
  useAccordion: () => import_react3.useAccordion,
@@ -316,29 +316,29 @@ __export(src_exports, {
316
316
  useAccordionItemState: () => import_react3.useAccordionItemState,
317
317
  useAccordionStyles: () => import_react3.useAccordionStyles,
318
318
  useAlertStyles: () => useAlertStyles,
319
- useBoolean: () => import_react93.useBoolean,
319
+ useBoolean: () => import_react94.useBoolean,
320
320
  useBreakpoint: () => import_react83.useBreakpoint,
321
321
  useCheckbox: () => import_react16.useCheckbox,
322
322
  useCheckboxGroup: () => import_react16.useCheckboxGroup,
323
- useClipboard: () => import_react93.useClipboard,
324
- useColorMode: () => import_react93.useColorMode,
323
+ useClipboard: () => import_react94.useClipboard,
324
+ useColorMode: () => import_react94.useColorMode,
325
325
  useColorModePreference: () => import_react83.useColorModePreference,
326
- useColorModeValue: () => import_react93.useColorModeValue,
327
- useConst: () => import_react93.useConst,
328
- useControllableProp: () => import_react93.useControllableProp,
329
- useControllableState: () => import_react93.useControllableState,
326
+ useColorModeValue: () => import_react94.useColorModeValue,
327
+ useConst: () => import_react94.useConst,
328
+ useControllableProp: () => import_react94.useControllableProp,
329
+ useControllableState: () => import_react94.useControllableState,
330
330
  useDataTable: () => useDataTable,
331
- useDimensions: () => import_react93.useDimensions,
332
- useDisclosure: () => import_react93.useDisclosure,
331
+ useDimensions: () => import_react94.useDimensions,
332
+ useDisclosure: () => import_react94.useDisclosure,
333
333
  useDrawerContext: () => import_react58.useDrawerContext,
334
334
  useFetcher: () => useFetcher,
335
335
  useImage: () => import_react83.useImage,
336
336
  useInternalUI: () => useInternalUI,
337
- useMergeRefs: () => import_react93.useMergeRefs,
337
+ useMergeRefs: () => import_react94.useMergeRefs,
338
338
  useModal: () => import_react58.useModal,
339
339
  useModalContext: () => import_react58.useModalContext,
340
340
  useModalStyles: () => import_react58.useModalStyles,
341
- useOutsideClick: () => import_react93.useOutsideClick,
341
+ useOutsideClick: () => import_react94.useOutsideClick,
342
342
  useQuery: () => import_react83.useQuery,
343
343
  useRadio: () => import_react70.useRadio,
344
344
  useRadioGroup: () => import_react70.useRadioGroup,
@@ -355,8 +355,8 @@ __export(src_exports, {
355
355
  useTabsDescendants: () => import_react79.useTabsDescendants,
356
356
  useTabsDescendantsContext: () => import_react79.useTabsDescendantsContext,
357
357
  useTabsStyles: () => import_react79.useTabsStyles,
358
- useTheme: () => import_react93.useTheme,
359
- useToken: () => import_react93.useToken
358
+ useTheme: () => import_react94.useTheme,
359
+ useToken: () => import_react94.useToken
360
360
  });
361
361
  module.exports = __toCommonJS(src_exports);
362
362
 
@@ -1202,13 +1202,12 @@ var getCommonPinningStyles = (column) => {
1202
1202
  "&:after": {
1203
1203
  content: "''",
1204
1204
  position: "absolute",
1205
- width: "20%",
1206
- height: "100%",
1205
+ width: "30px",
1207
1206
  right: "0px",
1207
+ bottom: "-1px",
1208
1208
  top: 0,
1209
- zIndex: -1,
1210
- boxShadow: "-10px 0px 20px 10px #00000010",
1211
- clipPath: "inset(0px -38px 0px 0px)"
1209
+ transform: "translateX(100%)",
1210
+ boxShadow: "inset 14px 0px 20px -10px #00000010"
1212
1211
  }
1213
1212
  } : {},
1214
1213
  ...isFirstRightPinnedColumn ? {
@@ -1216,13 +1215,12 @@ var getCommonPinningStyles = (column) => {
1216
1215
  "&:after": {
1217
1216
  content: "''",
1218
1217
  position: "absolute",
1219
- width: "20%",
1220
- height: "100%",
1218
+ width: "30px",
1221
1219
  left: "0%",
1222
1220
  top: 0,
1223
- zIndex: -1,
1224
- boxShadow: "10px 0px 20px 10px #00000010",
1225
- clipPath: "inset(0px 0px 0px -38px )"
1221
+ bottom: "-1px",
1222
+ transform: "translateX(-100%)",
1223
+ boxShadow: "inset -14px 0px 20px -10px #00000010"
1226
1224
  }
1227
1225
  } : {}
1228
1226
  };
@@ -4025,7 +4023,7 @@ var uploader_default = Uploader;
4025
4023
  var import_react83 = require("@chakra-ui/react");
4026
4024
 
4027
4025
  // src/config/theme/themeConfiguration.ts
4028
- var import_react89 = require("@chakra-ui/react");
4026
+ var import_react90 = require("@chakra-ui/react");
4029
4027
 
4030
4028
  // src/config/theme/components/index.ts
4031
4029
  var components_exports = {};
@@ -4041,6 +4039,7 @@ __export(components_exports, {
4041
4039
  Input: () => input_default,
4042
4040
  LoaderStyle: () => loader_default2,
4043
4041
  Modal: () => modal_default,
4042
+ Popover: () => popover_default,
4044
4043
  Radio: () => radio_default,
4045
4044
  Switch: () => switch_default2,
4046
4045
  Table: () => table_default,
@@ -4981,11 +4980,23 @@ var Modal3 = (0, import_styled_system9.defineStyleConfig)({
4981
4980
  });
4982
4981
  var modal_default = Modal3;
4983
4982
 
4984
- // src/config/theme/components/radio.ts
4983
+ // src/config/theme/components/popover.ts
4985
4984
  var import_anatomy5 = require("@chakra-ui/anatomy");
4986
4985
  var import_react86 = require("@chakra-ui/react");
4987
- var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0, import_react86.createMultiStyleConfigHelpers)(import_anatomy5.radioAnatomy.keys);
4986
+ var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0, import_react86.createMultiStyleConfigHelpers)(import_anatomy5.popoverAnatomy.keys);
4988
4987
  var baseStyle6 = definePartsStyle5({
4988
+ content: {
4989
+ bg: "white"
4990
+ }
4991
+ });
4992
+ var popoverTheme = defineMultiStyleConfig5({ baseStyle: baseStyle6 });
4993
+ var popover_default = popoverTheme;
4994
+
4995
+ // src/config/theme/components/radio.ts
4996
+ var import_anatomy6 = require("@chakra-ui/anatomy");
4997
+ var import_react87 = require("@chakra-ui/react");
4998
+ var { definePartsStyle: definePartsStyle6, defineMultiStyleConfig: defineMultiStyleConfig6 } = (0, import_react87.createMultiStyleConfigHelpers)(import_anatomy6.radioAnatomy.keys);
4999
+ var baseStyle7 = definePartsStyle6({
4989
5000
  control: {
4990
5001
  border: "1px solid",
4991
5002
  width: "16px",
@@ -5001,7 +5012,7 @@ var baseStyle6 = definePartsStyle5({
5001
5012
  }
5002
5013
  }
5003
5014
  });
5004
- var errors2 = definePartsStyle5({
5015
+ var errors2 = definePartsStyle6({
5005
5016
  control: {
5006
5017
  borderColor: "danger.500",
5007
5018
  _checked: {
@@ -5036,7 +5047,7 @@ var errors2 = definePartsStyle5({
5036
5047
  fontSize: "12px"
5037
5048
  }
5038
5049
  });
5039
- var unstyled3 = definePartsStyle5({
5050
+ var unstyled3 = definePartsStyle6({
5040
5051
  control: {
5041
5052
  borderColor: "neutral.600",
5042
5053
  _checked: {
@@ -5075,8 +5086,8 @@ var variants4 = {
5075
5086
  errors: errors2,
5076
5087
  unstyled: unstyled3
5077
5088
  };
5078
- var Radio2 = defineMultiStyleConfig5({
5079
- baseStyle: baseStyle6,
5089
+ var Radio2 = defineMultiStyleConfig6({
5090
+ baseStyle: baseStyle7,
5080
5091
  variants: variants4,
5081
5092
  defaultProps: {
5082
5093
  variant: "unstyled"
@@ -5085,10 +5096,10 @@ var Radio2 = defineMultiStyleConfig5({
5085
5096
  var radio_default = Radio2;
5086
5097
 
5087
5098
  // src/config/theme/components/switch.ts
5088
- var import_anatomy6 = require("@chakra-ui/anatomy");
5099
+ var import_anatomy7 = require("@chakra-ui/anatomy");
5089
5100
  var import_styled_system10 = require("@chakra-ui/styled-system");
5090
5101
  var import_theme_tools2 = require("@chakra-ui/theme-tools");
5091
- var { defineMultiStyleConfig: defineMultiStyleConfig6, definePartsStyle: definePartsStyle6 } = (0, import_styled_system10.createMultiStyleConfigHelpers)(import_anatomy6.switchAnatomy.keys);
5102
+ var { defineMultiStyleConfig: defineMultiStyleConfig7, definePartsStyle: definePartsStyle7 } = (0, import_styled_system10.createMultiStyleConfigHelpers)(import_anatomy7.switchAnatomy.keys);
5092
5103
  var $width = (0, import_theme_tools2.cssVar)("switch-track-width");
5093
5104
  var $height = (0, import_theme_tools2.cssVar)("switch-track-height");
5094
5105
  var $diff = (0, import_theme_tools2.cssVar)("switch-track-diff");
@@ -5105,7 +5116,7 @@ var baseStyleThumb = (0, import_styled_system10.defineStyle)({
5105
5116
  transform: `translateX(${$translateX.reference})`
5106
5117
  }
5107
5118
  });
5108
- var baseStyle7 = definePartsStyle6(() => ({
5119
+ var baseStyle8 = definePartsStyle7(() => ({
5109
5120
  container: {
5110
5121
  [$diff.variable]: diffValue,
5111
5122
  [$translateX.variable]: $diff.reference,
@@ -5130,7 +5141,7 @@ var baseStyle7 = definePartsStyle6(() => ({
5130
5141
  thumb: baseStyleThumb
5131
5142
  }));
5132
5143
  var sizes3 = {
5133
- sm: definePartsStyle6({
5144
+ sm: definePartsStyle7({
5134
5145
  container: {
5135
5146
  [$width.variable]: "1.875rem",
5136
5147
  [$height.variable]: "0.75rem"
@@ -5140,7 +5151,7 @@ var sizes3 = {
5140
5151
  [$height.variable]: "0.75rem"
5141
5152
  }
5142
5153
  }),
5143
- md: definePartsStyle6({
5154
+ md: definePartsStyle7({
5144
5155
  container: {
5145
5156
  [$width.variable]: "2.375rem",
5146
5157
  [$height.variable]: "1rem"
@@ -5150,7 +5161,7 @@ var sizes3 = {
5150
5161
  [$height.variable]: "1rem"
5151
5162
  }
5152
5163
  }),
5153
- lg: definePartsStyle6({
5164
+ lg: definePartsStyle7({
5154
5165
  container: {
5155
5166
  [$width.variable]: "3.25rem",
5156
5167
  [$height.variable]: "1.375rem"
@@ -5161,8 +5172,8 @@ var sizes3 = {
5161
5172
  }
5162
5173
  })
5163
5174
  };
5164
- var Switch3 = defineMultiStyleConfig6({
5165
- baseStyle: baseStyle7,
5175
+ var Switch3 = defineMultiStyleConfig7({
5176
+ baseStyle: baseStyle8,
5166
5177
  sizes: sizes3,
5167
5178
  defaultProps: {
5168
5179
  size: "md"
@@ -5171,14 +5182,15 @@ var Switch3 = defineMultiStyleConfig6({
5171
5182
  var switch_default2 = Switch3;
5172
5183
 
5173
5184
  // src/config/theme/components/table.ts
5174
- var import_anatomy7 = require("@chakra-ui/anatomy");
5185
+ var import_anatomy8 = require("@chakra-ui/anatomy");
5175
5186
  var import_styled_system11 = require("@chakra-ui/styled-system");
5176
5187
  var import_theme_tools3 = require("@chakra-ui/theme-tools");
5177
- var { defineMultiStyleConfig: defineMultiStyleConfig7, definePartsStyle: definePartsStyle7 } = (0, import_styled_system11.createMultiStyleConfigHelpers)(import_anatomy7.tableAnatomy.keys);
5178
- var baseStyle8 = definePartsStyle7({
5188
+ var { defineMultiStyleConfig: defineMultiStyleConfig8, definePartsStyle: definePartsStyle8 } = (0, import_styled_system11.createMultiStyleConfigHelpers)(import_anatomy8.tableAnatomy.keys);
5189
+ var baseStyle9 = definePartsStyle8({
5179
5190
  table: {
5180
5191
  fontVariantNumeric: "lining-nums tabular-nums",
5181
- borderCollapse: "collapse",
5192
+ borderCollapse: "separate",
5193
+ borderSpacing: 0,
5182
5194
  width: "full",
5183
5195
  tableLayout: "fixed"
5184
5196
  },
@@ -5204,15 +5216,25 @@ var baseStyle8 = definePartsStyle7({
5204
5216
  tr: {
5205
5217
  cursor: "pointer",
5206
5218
  _hover: {
5207
- backgroundColor: "neutral.200"
5219
+ td: {
5220
+ backgroundColor: "neutral.200",
5221
+ "&>div": {
5222
+ backgroundColor: "neutral.200"
5223
+ }
5224
+ }
5208
5225
  },
5209
5226
  '&[data-active="true"]': {
5210
- backgroundColor: "neutral.100"
5227
+ td: {
5228
+ backgroundColor: "neutral.100",
5229
+ "&>div": {
5230
+ backgroundColor: "neutral.200"
5231
+ }
5232
+ }
5211
5233
  }
5212
5234
  }
5213
5235
  },
5214
5236
  td: {
5215
- backgroundColor: "neutral.50",
5237
+ // backgroundColor: 'neutral.50',
5216
5238
  textAlign: "start",
5217
5239
  height: "56px",
5218
5240
  "&:first-of-type": {
@@ -5237,7 +5259,7 @@ var numericStyles = (0, import_styled_system11.defineStyle)({
5237
5259
  textAlign: "end"
5238
5260
  }
5239
5261
  });
5240
- var variantSimple = definePartsStyle7((props) => {
5262
+ var variantSimple = definePartsStyle8((props) => {
5241
5263
  const { colorScheme: c } = props;
5242
5264
  return {
5243
5265
  th: {
@@ -5263,7 +5285,7 @@ var variantSimple = definePartsStyle7((props) => {
5263
5285
  }
5264
5286
  };
5265
5287
  });
5266
- var variantStripe = definePartsStyle7((props) => {
5288
+ var variantStripe = definePartsStyle8((props) => {
5267
5289
  const { colorScheme: c } = props;
5268
5290
  return {
5269
5291
  th: {
@@ -5308,7 +5330,7 @@ var variants5 = {
5308
5330
  unstyled: (0, import_styled_system11.defineStyle)({})
5309
5331
  };
5310
5332
  var sizes4 = {
5311
- sm: definePartsStyle7({
5333
+ sm: definePartsStyle8({
5312
5334
  th: {
5313
5335
  px: "2",
5314
5336
  py: "4",
@@ -5327,7 +5349,7 @@ var sizes4 = {
5327
5349
  fontSize: "xs"
5328
5350
  }
5329
5351
  }),
5330
- md: definePartsStyle7({
5352
+ md: definePartsStyle8({
5331
5353
  th: {
5332
5354
  px: "2",
5333
5355
  py: "4",
@@ -5345,7 +5367,7 @@ var sizes4 = {
5345
5367
  fontSize: "sm"
5346
5368
  }
5347
5369
  }),
5348
- lg: definePartsStyle7({
5370
+ lg: definePartsStyle8({
5349
5371
  th: {
5350
5372
  px: "2",
5351
5373
  py: "4",
@@ -5364,8 +5386,8 @@ var sizes4 = {
5364
5386
  }
5365
5387
  })
5366
5388
  };
5367
- var tableTheme = defineMultiStyleConfig7({
5368
- baseStyle: baseStyle8,
5389
+ var tableTheme = defineMultiStyleConfig8({
5390
+ baseStyle: baseStyle9,
5369
5391
  variants: variants5,
5370
5392
  sizes: sizes4,
5371
5393
  defaultProps: {
@@ -5377,10 +5399,10 @@ var tableTheme = defineMultiStyleConfig7({
5377
5399
  var table_default = tableTheme;
5378
5400
 
5379
5401
  // src/config/theme/components/tabs.ts
5380
- var import_anatomy8 = require("@chakra-ui/anatomy");
5402
+ var import_anatomy9 = require("@chakra-ui/anatomy");
5381
5403
  var import_styled_system12 = require("@chakra-ui/styled-system");
5382
- var { defineMultiStyleConfig: defineMultiStyleConfig8, definePartsStyle: definePartsStyle8 } = (0, import_styled_system12.createMultiStyleConfigHelpers)(import_anatomy8.tabsAnatomy.keys);
5383
- var variantLine = definePartsStyle8((props) => {
5404
+ var { defineMultiStyleConfig: defineMultiStyleConfig9, definePartsStyle: definePartsStyle9 } = (0, import_styled_system12.createMultiStyleConfigHelpers)(import_anatomy9.tabsAnatomy.keys);
5405
+ var variantLine = definePartsStyle9((props) => {
5384
5406
  const { orientation } = props;
5385
5407
  const isVertical = orientation === "vertical";
5386
5408
  const borderProp = isVertical ? "borderStart" : "borderBottom";
@@ -5397,12 +5419,12 @@ var variantLine = definePartsStyle8((props) => {
5397
5419
  }
5398
5420
  };
5399
5421
  });
5400
- var variantUnstyled = definePartsStyle8({});
5422
+ var variantUnstyled = definePartsStyle9({});
5401
5423
  var variants6 = {
5402
5424
  line: variantLine,
5403
5425
  unstyled: variantUnstyled
5404
5426
  };
5405
- var tabsTheme = defineMultiStyleConfig8({
5427
+ var tabsTheme = defineMultiStyleConfig9({
5406
5428
  variants: variants6,
5407
5429
  defaultProps: {
5408
5430
  size: "md",
@@ -5412,7 +5434,7 @@ var tabsTheme = defineMultiStyleConfig8({
5412
5434
  var tabs_default = tabsTheme;
5413
5435
 
5414
5436
  // src/config/theme/components/textarea.ts
5415
- var import_react87 = require("@chakra-ui/react");
5437
+ var import_react88 = require("@chakra-ui/react");
5416
5438
  var getProps = (props) => {
5417
5439
  const { isError, isSuccess, isDisabled } = props;
5418
5440
  let borderColor = "neutral.400";
@@ -5432,7 +5454,7 @@ var getProps = (props) => {
5432
5454
  borderColor
5433
5455
  };
5434
5456
  };
5435
- var outline2 = (0, import_react87.defineStyle)((props) => {
5457
+ var outline2 = (0, import_react88.defineStyle)((props) => {
5436
5458
  const { focusBorderColor, borderColor } = getProps(props);
5437
5459
  return {
5438
5460
  background: "white.high",
@@ -5476,7 +5498,7 @@ var outline2 = (0, import_react87.defineStyle)((props) => {
5476
5498
  }
5477
5499
  };
5478
5500
  });
5479
- var Textarea = (0, import_react87.defineStyleConfig)({
5501
+ var Textarea = (0, import_react88.defineStyleConfig)({
5480
5502
  variants: { outline: outline2 },
5481
5503
  defaultProps: {
5482
5504
  variant: "outline"
@@ -5485,14 +5507,14 @@ var Textarea = (0, import_react87.defineStyleConfig)({
5485
5507
  var textarea_default2 = Textarea;
5486
5508
 
5487
5509
  // src/config/theme/components/tooltip.ts
5488
- var import_react88 = require("@chakra-ui/react");
5489
- var $arrowBg = (0, import_react88.cssVar)("popper-arrow-bg");
5490
- var baseStyle9 = {
5510
+ var import_react89 = require("@chakra-ui/react");
5511
+ var $arrowBg = (0, import_react89.cssVar)("popper-arrow-bg");
5512
+ var baseStyle10 = {
5491
5513
  bg: "neutral.700",
5492
5514
  fontSize: "text.sm",
5493
5515
  [$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
5494
5516
  };
5495
- var Tooltip2 = (0, import_react88.defineStyleConfig)({ baseStyle: baseStyle9 });
5517
+ var Tooltip2 = (0, import_react89.defineStyleConfig)({ baseStyle: baseStyle10 });
5496
5518
  var tooltip_default = Tooltip2;
5497
5519
 
5498
5520
  // src/config/theme/themeConfiguration.ts
@@ -5502,7 +5524,7 @@ var config = {
5502
5524
  useSystemColorMode: false
5503
5525
  };
5504
5526
  var getTheme = (foundations) => {
5505
- return (0, import_react89.extendTheme)({
5527
+ return (0, import_react90.extendTheme)({
5506
5528
  ...foundations,
5507
5529
  components: {
5508
5530
  ...components_exports
@@ -5518,7 +5540,7 @@ var getTheme = (foundations) => {
5518
5540
  config
5519
5541
  });
5520
5542
  };
5521
- var theme5 = (0, import_react89.extendTheme)({
5543
+ var theme5 = (0, import_react90.extendTheme)({
5522
5544
  components: {
5523
5545
  ...components_exports
5524
5546
  },
@@ -5538,23 +5560,23 @@ var theme5 = (0, import_react89.extendTheme)({
5538
5560
 
5539
5561
  // src/hooks/useFetcher.ts
5540
5562
  var import_axios2 = __toESM(require("axios"));
5541
- var import_react92 = require("react");
5563
+ var import_react93 = require("react");
5542
5564
 
5543
5565
  // src/provider/components/provider.tsx
5544
5566
  var import_axios = __toESM(require("axios"));
5545
- var import_react90 = require("react");
5567
+ var import_react91 = require("react");
5546
5568
  var import_react_toastify = require("react-toastify");
5547
5569
  var import_jsx_runtime59 = require("react/jsx-runtime");
5548
- var ProviderContext = (0, import_react90.createContext)({
5570
+ var ProviderContext = (0, import_react91.createContext)({
5549
5571
  instance: void 0
5550
5572
  });
5551
5573
  var useInternalUI = () => {
5552
- const { instance } = (0, import_react90.useContext)(ProviderContext);
5574
+ const { instance } = (0, import_react91.useContext)(ProviderContext);
5553
5575
  return { instance };
5554
5576
  };
5555
5577
  var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
5556
- const instanceRef = (0, import_react90.useRef)(import_axios.default.create(config2));
5557
- (0, import_react90.useEffect)(() => {
5578
+ const instanceRef = (0, import_react91.useRef)(import_axios.default.create(config2));
5579
+ (0, import_react91.useEffect)(() => {
5558
5580
  requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
5559
5581
  instanceRef.current.interceptors.request.use(interceptor);
5560
5582
  });
@@ -5562,7 +5584,7 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
5562
5584
  instanceRef.current.interceptors.response.use(interceptor);
5563
5585
  });
5564
5586
  }, [requestInterceptors, responseInterceptors]);
5565
- const provider = (0, import_react90.useMemo)(() => ({ instance: instanceRef.current }), []);
5587
+ const provider = (0, import_react91.useMemo)(() => ({ instance: instanceRef.current }), []);
5566
5588
  return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(ProviderContext.Provider, { value: provider, children: [
5567
5589
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_toastify.ToastContainer, {}),
5568
5590
  children
@@ -5572,12 +5594,12 @@ Provider.displayName = "Provider";
5572
5594
  var provider_default = Provider;
5573
5595
 
5574
5596
  // src/provider/index.ts
5575
- var import_react91 = require("@chakra-ui/react");
5597
+ var import_react92 = require("@chakra-ui/react");
5576
5598
 
5577
5599
  // src/hooks/useFetcher.ts
5578
5600
  function useFetcher() {
5579
5601
  const { instance } = useInternalUI();
5580
- const axiosInstance = (0, import_react92.useMemo)(() => instance || import_axios2.default, [instance]);
5602
+ const axiosInstance = (0, import_react93.useMemo)(() => instance || import_axios2.default, [instance]);
5581
5603
  const fetcher = async ({ url, data, method, headers, ...config2 }) => {
5582
5604
  const response = await axiosInstance.request({
5583
5605
  data,
@@ -5597,10 +5619,10 @@ function useFetcher() {
5597
5619
  }
5598
5620
 
5599
5621
  // src/hooks/index.ts
5600
- var import_react93 = require("@chakra-ui/react");
5622
+ var import_react94 = require("@chakra-ui/react");
5601
5623
 
5602
5624
  // src/index.ts
5603
- var import_react94 = require("@chakra-ui/react");
5625
+ var import_react95 = require("@chakra-ui/react");
5604
5626
  // Annotate the CommonJS export names for ESM import in node:
5605
5627
  0 && (module.exports = {
5606
5628
  Accordion,