@ctlyst.id/internal-ui 3.1.5 → 3.1.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +39 -11
- package/dist/index.d.ts +39 -11
- package/dist/index.js +466 -390
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +264 -195
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -59,12 +59,12 @@ __export(src_exports, {
|
|
59
59
|
AlertIcon: () => AlertIcon,
|
60
60
|
AlertTitle: () => AlertTitle,
|
61
61
|
Anchor: () => Anchor,
|
62
|
-
Avatar: () =>
|
63
|
-
AvatarBadge: () =>
|
64
|
-
AvatarBadgeProps: () =>
|
65
|
-
AvatarGroup: () =>
|
66
|
-
AvatarGroupProps: () =>
|
67
|
-
AvatarProps: () =>
|
62
|
+
Avatar: () => import_react89.Avatar,
|
63
|
+
AvatarBadge: () => import_react89.AvatarBadge,
|
64
|
+
AvatarBadgeProps: () => import_react89.AvatarBadgeProps,
|
65
|
+
AvatarGroup: () => import_react89.AvatarGroup,
|
66
|
+
AvatarGroupProps: () => import_react89.AvatarGroupProps,
|
67
|
+
AvatarProps: () => import_react89.AvatarProps,
|
68
68
|
Badge: () => badge_default,
|
69
69
|
Box: () => import_react51.Box,
|
70
70
|
BoxProps: () => import_react51.BoxProps,
|
@@ -75,9 +75,9 @@ __export(src_exports, {
|
|
75
75
|
CHECKBOX_STATE: () => CHECKBOX_STATE,
|
76
76
|
Card: () => card_default,
|
77
77
|
Center: () => import_react51.Center,
|
78
|
-
ChakraProvider: () =>
|
79
|
-
ChakraProviderProps: () =>
|
80
|
-
ChakraTable: () =>
|
78
|
+
ChakraProvider: () => import_react99.ChakraProvider,
|
79
|
+
ChakraProviderProps: () => import_react99.ChakraProviderProps,
|
80
|
+
ChakraTable: () => import_react80.Table,
|
81
81
|
Checkbox: () => checkbox_default,
|
82
82
|
CheckboxGroup: () => checkbox_group_default,
|
83
83
|
CheckboxGroupContext: () => import_react16.CheckboxGroupContext,
|
@@ -86,15 +86,16 @@ __export(src_exports, {
|
|
86
86
|
CheckboxIconProps: () => import_react16.CheckboxIconProps,
|
87
87
|
CheckboxState: () => import_react16.CheckboxState,
|
88
88
|
Chips: () => chips_default,
|
89
|
+
ClearIndicator: () => ClearIndicator,
|
89
90
|
CloseButton: () => import_react10.CloseButton,
|
90
91
|
CloseButtonProps: () => import_react10.CloseButtonProps,
|
91
|
-
Code: () =>
|
92
|
-
CodeProps: () =>
|
93
|
-
Collapse: () =>
|
94
|
-
CollapseProps: () =>
|
95
|
-
ColorMode: () =>
|
96
|
-
ColorModeScript: () =>
|
97
|
-
ColorModeScriptProps: () =>
|
92
|
+
Code: () => import_react83.Code,
|
93
|
+
CodeProps: () => import_react83.CodeProps,
|
94
|
+
Collapse: () => import_react89.Collapse,
|
95
|
+
CollapseProps: () => import_react89.CollapseProps,
|
96
|
+
ColorMode: () => import_react99.ColorMode,
|
97
|
+
ColorModeScript: () => import_react99.ColorModeScript,
|
98
|
+
ColorModeScriptProps: () => import_react99.ColorModeScriptProps,
|
98
99
|
Container: () => import_react51.Container,
|
99
100
|
ContainerProps: () => import_react51.ContainerProps,
|
100
101
|
Counter: () => counter_default,
|
@@ -113,9 +114,10 @@ __export(src_exports, {
|
|
113
114
|
DrawerHeader: () => import_react54.ModalHeader,
|
114
115
|
DrawerOverlay: () => import_react54.ModalOverlay,
|
115
116
|
DrawerProps: () => import_react54.DrawerProps,
|
117
|
+
DropdownIndicator: () => DropdownIndicator,
|
116
118
|
EmptyState: () => empty_state_default,
|
117
|
-
Fade: () =>
|
118
|
-
FadeProps: () =>
|
119
|
+
Fade: () => import_react89.Fade,
|
120
|
+
FadeProps: () => import_react89.FadeProps,
|
119
121
|
Field: () => field_default,
|
120
122
|
Flex: () => import_react51.Flex,
|
121
123
|
FlexProps: () => import_react51.FlexProps,
|
@@ -131,18 +133,18 @@ __export(src_exports, {
|
|
131
133
|
GridProps: () => import_react51.GridProps,
|
132
134
|
HStack: () => import_react51.HStack,
|
133
135
|
Header: () => Header,
|
134
|
-
Heading: () =>
|
135
|
-
HeadingProps: () =>
|
136
|
-
Hide: () =>
|
137
|
-
HideProps: () =>
|
136
|
+
Heading: () => import_react83.Heading,
|
137
|
+
HeadingProps: () => import_react83.HeadingProps,
|
138
|
+
Hide: () => import_react89.Hide,
|
139
|
+
HideProps: () => import_react89.HideProps,
|
138
140
|
Icon: () => import_react50.Icon,
|
139
141
|
IconButton: () => import_react10.IconButton,
|
140
142
|
IconButtonProps: () => import_react10.IconButtonProps,
|
141
143
|
IconProps: () => import_react50.IconProps,
|
142
144
|
Image: () => import_react50.Image,
|
143
145
|
ImageProps: () => import_react50.ImageProps,
|
144
|
-
Img: () =>
|
145
|
-
ImgProps: () =>
|
146
|
+
Img: () => import_react89.Img,
|
147
|
+
ImgProps: () => import_react89.ImgProps,
|
146
148
|
InputAddonLeft: () => InputAddonLeft,
|
147
149
|
InputAddonRight: () => InputAddonRight,
|
148
150
|
InputElementLeft: () => import_react19.InputLeftElement,
|
@@ -159,8 +161,8 @@ __export(src_exports, {
|
|
159
161
|
InputRightAddonProps: () => import_react25.InputRightAddonProps,
|
160
162
|
InputRightElement: () => import_react25.InputRightElement,
|
161
163
|
InputRightElementProps: () => import_react25.InputRightElementProps,
|
162
|
-
Link: () =>
|
163
|
-
LinkProps: () =>
|
164
|
+
Link: () => import_react83.Link,
|
165
|
+
LinkProps: () => import_react83.LinkProps,
|
164
166
|
List: () => import_react52.List,
|
165
167
|
ListIcon: () => import_react52.ListIcon,
|
166
168
|
ListItem: () => import_react52.ListItem,
|
@@ -186,6 +188,8 @@ __export(src_exports, {
|
|
186
188
|
ModalOverlayProps: () => import_react54.ModalOverlayProps,
|
187
189
|
ModalProps: () => import_react54.ModalProps,
|
188
190
|
MultiDatePickerMonth: () => multi_datepicker_month_default,
|
191
|
+
MultiValue: () => MultiValue,
|
192
|
+
MultiValueRemove: () => MultiValueRemove,
|
189
193
|
NavItem: () => NavItem,
|
190
194
|
Navbar: () => Navbar,
|
191
195
|
NavigationBar: () => navigation_bar_default,
|
@@ -232,166 +236,169 @@ __export(src_exports, {
|
|
232
236
|
Rating: () => rating_default,
|
233
237
|
RequiredIndicator: () => import_react25.RequiredIndicator,
|
234
238
|
RequiredIndicatorProps: () => import_react25.RequiredIndicatorProps,
|
235
|
-
ScaleFade: () =>
|
236
|
-
ScaleFadeProps: () =>
|
239
|
+
ScaleFade: () => import_react89.ScaleFade,
|
240
|
+
ScaleFadeProps: () => import_react89.ScaleFadeProps,
|
237
241
|
Select: () => select_default,
|
238
242
|
SelectAsync: () => select_async_default,
|
239
243
|
SelectAsyncCreatable: () => SelectAsyncCreatable,
|
240
244
|
SelectCheckBox: () => select_with_checkbox_default,
|
241
245
|
SelectCreatable: () => SelectCreatable,
|
242
|
-
Show: () =>
|
243
|
-
ShowProps: () =>
|
246
|
+
Show: () => import_react89.Show,
|
247
|
+
ShowProps: () => import_react89.ShowProps,
|
244
248
|
Sidebar: () => Sidebar,
|
245
249
|
SidebarHeader: () => SidebarHeader,
|
246
250
|
SidebarMenu: () => SidebarMenu,
|
247
251
|
SimpleGrid: () => import_react51.SimpleGrid,
|
248
252
|
Skeleton: () => import_react5.Skeleton,
|
249
|
-
Slide: () =>
|
250
|
-
SlideFade: () =>
|
251
|
-
SlideFadeProps: () =>
|
252
|
-
SlideProps: () =>
|
253
|
+
Slide: () => import_react89.Slide,
|
254
|
+
SlideFade: () => import_react89.SlideFade,
|
255
|
+
SlideFadeProps: () => import_react89.SlideFadeProps,
|
256
|
+
SlideProps: () => import_react89.SlideProps,
|
253
257
|
Spacer: () => import_react51.Spacer,
|
254
258
|
Stack: () => import_react51.Stack,
|
255
259
|
StackProps: () => import_react51.StackProps,
|
256
|
-
Step: () =>
|
257
|
-
StepDescription: () =>
|
258
|
-
StepIcon: () =>
|
259
|
-
StepIndicator: () =>
|
260
|
-
StepNumber: () =>
|
261
|
-
StepSeparator: () =>
|
262
|
-
StepStatus: () =>
|
263
|
-
StepTitle: () =>
|
264
|
-
Stepper: () =>
|
260
|
+
Step: () => import_react89.Step,
|
261
|
+
StepDescription: () => import_react89.StepDescription,
|
262
|
+
StepIcon: () => import_react89.StepIcon,
|
263
|
+
StepIndicator: () => import_react89.StepIndicator,
|
264
|
+
StepNumber: () => import_react89.StepNumber,
|
265
|
+
StepSeparator: () => import_react89.StepSeparator,
|
266
|
+
StepStatus: () => import_react89.StepStatus,
|
267
|
+
StepTitle: () => import_react89.StepTitle,
|
268
|
+
Stepper: () => import_react89.Stepper,
|
265
269
|
Switch: () => switch_default,
|
266
270
|
Tab: () => tab_default,
|
267
|
-
TabIndicator: () =>
|
268
|
-
TabIndicatorProps: () =>
|
269
|
-
TabList: () =>
|
270
|
-
TabListProps: () =>
|
271
|
-
TabPanel: () =>
|
272
|
-
TabPanelProps: () =>
|
273
|
-
TabPanels: () =>
|
274
|
-
TabPanelsProps: () =>
|
275
|
-
TabProps: () =>
|
276
|
-
TableBodyProps: () =>
|
277
|
-
TableCellProps: () =>
|
278
|
-
TableColumnHeaderProps: () =>
|
279
|
-
TableHeadProps: () =>
|
280
|
-
TableProps: () =>
|
281
|
-
TableRowProps: () =>
|
282
|
-
Tabs: () =>
|
283
|
-
TabsDescendantsProvider: () =>
|
284
|
-
TabsProps: () =>
|
285
|
-
TabsProvider: () =>
|
286
|
-
Tbody: () =>
|
287
|
-
Td: () =>
|
288
|
-
Text: () =>
|
289
|
-
TextProps: () =>
|
271
|
+
TabIndicator: () => import_react82.TabIndicator,
|
272
|
+
TabIndicatorProps: () => import_react82.TabIndicatorProps,
|
273
|
+
TabList: () => import_react82.TabList,
|
274
|
+
TabListProps: () => import_react82.TabListProps,
|
275
|
+
TabPanel: () => import_react82.TabPanel,
|
276
|
+
TabPanelProps: () => import_react82.TabPanelProps,
|
277
|
+
TabPanels: () => import_react82.TabPanels,
|
278
|
+
TabPanelsProps: () => import_react82.TabPanelsProps,
|
279
|
+
TabProps: () => import_react82.TabProps,
|
280
|
+
TableBodyProps: () => import_react80.TableBodyProps,
|
281
|
+
TableCellProps: () => import_react80.TableCellProps,
|
282
|
+
TableColumnHeaderProps: () => import_react80.TableColumnHeaderProps,
|
283
|
+
TableHeadProps: () => import_react80.TableHeadProps,
|
284
|
+
TableProps: () => import_react80.TableProps,
|
285
|
+
TableRowProps: () => import_react80.TableRowProps,
|
286
|
+
Tabs: () => import_react82.Tabs,
|
287
|
+
TabsDescendantsProvider: () => import_react82.TabsDescendantsProvider,
|
288
|
+
TabsProps: () => import_react82.TabsProps,
|
289
|
+
TabsProvider: () => import_react82.TabsProvider,
|
290
|
+
Tbody: () => import_react80.Tbody,
|
291
|
+
Td: () => import_react80.Td,
|
292
|
+
Text: () => import_react83.Text,
|
293
|
+
TextProps: () => import_react83.TextProps,
|
290
294
|
TextareaField: () => textarea_default,
|
291
|
-
Th: () =>
|
292
|
-
Thead: () =>
|
295
|
+
Th: () => import_react80.Th,
|
296
|
+
Thead: () => import_react80.Thead,
|
293
297
|
ThemeTypings: () => import_styled_system12.ThemeTypings,
|
294
298
|
ToastContainer: () => import_react_toastify2.ToastContainer,
|
295
299
|
Tooltip: () => Tooltip,
|
296
|
-
Tr: () =>
|
300
|
+
Tr: () => import_react80.Tr,
|
297
301
|
UnorderedList: () => import_react52.UnorderedList,
|
298
302
|
Uploader: () => uploader_default,
|
299
303
|
UseAccordionItemProps: () => import_react3.UseAccordionItemProps,
|
300
304
|
UseAccordionItemReturn: () => import_react3.UseAccordionItemReturn,
|
301
305
|
UseAccordionProps: () => import_react3.UseAccordionProps,
|
302
306
|
UseAccordionReturn: () => import_react3.UseAccordionReturn,
|
303
|
-
UseBreakpointOptions: () =>
|
307
|
+
UseBreakpointOptions: () => import_react89.UseBreakpointOptions,
|
304
308
|
UseCheckboxGroupProps: () => import_react16.UseCheckboxGroupProps,
|
305
309
|
UseCheckboxGroupReturn: () => import_react16.UseCheckboxGroupReturn,
|
306
310
|
UseCheckboxProps: () => import_react16.UseCheckboxProps,
|
307
311
|
UseCheckboxReturn: () => import_react16.UseCheckboxReturn,
|
308
|
-
UseDisclosureProps: () =>
|
309
|
-
UseImageProps: () =>
|
310
|
-
UseImageReturn: () =>
|
311
|
-
UseMediaQueryOptions: () =>
|
312
|
+
UseDisclosureProps: () => import_react101.UseDisclosureProps,
|
313
|
+
UseImageProps: () => import_react89.UseImageProps,
|
314
|
+
UseImageReturn: () => import_react89.UseImageReturn,
|
315
|
+
UseMediaQueryOptions: () => import_react89.UseMediaQueryOptions,
|
312
316
|
UseModalProps: () => import_react54.UseModalProps,
|
313
317
|
UseModalReturn: () => import_react54.UseModalReturn,
|
314
318
|
UsePinInputFieldProps: () => import_react63.UsePinInputFieldProps,
|
315
319
|
UsePinInputProps: () => import_react63.UsePinInputProps,
|
316
320
|
UsePinInputReturn: () => import_react63.UsePinInputReturn,
|
317
|
-
UseQueryProps: () =>
|
321
|
+
UseQueryProps: () => import_react89.UseQueryProps,
|
318
322
|
UseRadioGroupReturn: () => import_react68.UseRadioGroupReturn,
|
319
323
|
UseRadioProps: () => import_react68.UseRadioProps,
|
320
324
|
UseRadioReturn: () => import_react68.UseRadioReturn,
|
321
|
-
UseTabListProps: () =>
|
322
|
-
UseTabListReturn: () =>
|
323
|
-
UseTabOptions: () =>
|
324
|
-
UseTabPanelsProps: () =>
|
325
|
-
UseTabProps: () =>
|
326
|
-
UseTabsProps: () =>
|
327
|
-
UseTabsReturn: () =>
|
325
|
+
UseTabListProps: () => import_react82.UseTabListProps,
|
326
|
+
UseTabListReturn: () => import_react82.UseTabListReturn,
|
327
|
+
UseTabOptions: () => import_react82.UseTabOptions,
|
328
|
+
UseTabPanelsProps: () => import_react82.UseTabPanelsProps,
|
329
|
+
UseTabProps: () => import_react82.UseTabProps,
|
330
|
+
UseTabsProps: () => import_react82.UseTabsProps,
|
331
|
+
UseTabsReturn: () => import_react82.UseTabsReturn,
|
328
332
|
VStack: () => import_react51.VStack,
|
329
333
|
Version: () => Version,
|
330
|
-
VisuallyHidden: () =>
|
331
|
-
VisuallyHiddenInput: () =>
|
334
|
+
VisuallyHidden: () => import_react89.VisuallyHidden,
|
335
|
+
VisuallyHiddenInput: () => import_react89.VisuallyHiddenInput,
|
332
336
|
VoilaLogo: () => VoilaLogo,
|
333
337
|
Wrap: () => import_react51.Wrap,
|
334
338
|
WrapItem: () => import_react51.WrapItem,
|
335
339
|
WrapItemProps: () => import_react51.WrapItemProps,
|
336
340
|
WrapProps: () => import_react51.WrapProps,
|
337
341
|
XMSLogo: () => XMSLogo,
|
338
|
-
extendTheme: () =>
|
339
|
-
forwardRef: () =>
|
342
|
+
extendTheme: () => import_react102.extendTheme,
|
343
|
+
forwardRef: () => import_react102.forwardRef,
|
340
344
|
getSelectAllCheckboxState: () => getSelectAllCheckboxState,
|
341
345
|
getTheme: () => getTheme,
|
346
|
+
isCellDisabled: () => isCellDisabled,
|
347
|
+
selectStyles: () => selectStyles,
|
342
348
|
theme: () => theme4,
|
349
|
+
themeSelect: () => themeSelect,
|
343
350
|
useAccordion: () => import_react3.useAccordion,
|
344
351
|
useAccordionContext: () => import_react3.useAccordionContext,
|
345
352
|
useAccordionItem: () => import_react3.useAccordionItem,
|
346
353
|
useAccordionItemState: () => import_react3.useAccordionItemState,
|
347
354
|
useAccordionStyles: () => import_react3.useAccordionStyles,
|
348
355
|
useAlertStyles: () => useAlertStyles,
|
349
|
-
useBoolean: () =>
|
350
|
-
useBreakpoint: () =>
|
356
|
+
useBoolean: () => import_react101.useBoolean,
|
357
|
+
useBreakpoint: () => import_react89.useBreakpoint,
|
351
358
|
useCheckbox: () => import_react16.useCheckbox,
|
352
359
|
useCheckboxGroup: () => import_react16.useCheckboxGroup,
|
353
|
-
useClipboard: () =>
|
354
|
-
useColorMode: () =>
|
355
|
-
useColorModePreference: () =>
|
356
|
-
useColorModeValue: () =>
|
357
|
-
useConst: () =>
|
358
|
-
useControllableProp: () =>
|
359
|
-
useControllableState: () =>
|
360
|
+
useClipboard: () => import_react101.useClipboard,
|
361
|
+
useColorMode: () => import_react101.useColorMode,
|
362
|
+
useColorModePreference: () => import_react89.useColorModePreference,
|
363
|
+
useColorModeValue: () => import_react101.useColorModeValue,
|
364
|
+
useConst: () => import_react101.useConst,
|
365
|
+
useControllableProp: () => import_react101.useControllableProp,
|
366
|
+
useControllableState: () => import_react101.useControllableState,
|
360
367
|
useDataTable: () => useDataTable,
|
361
|
-
useDimensions: () =>
|
362
|
-
useDisclosure: () =>
|
368
|
+
useDimensions: () => import_react101.useDimensions,
|
369
|
+
useDisclosure: () => import_react101.useDisclosure,
|
363
370
|
useDrawerContext: () => import_react54.useDrawerContext,
|
364
371
|
useFetcher: () => useFetcher,
|
365
|
-
useImage: () =>
|
372
|
+
useImage: () => import_react89.useImage,
|
366
373
|
useInternalUI: () => useInternalUI,
|
367
|
-
useMergeRefs: () =>
|
374
|
+
useMergeRefs: () => import_react101.useMergeRefs,
|
368
375
|
useModal: () => import_react54.useModal,
|
369
376
|
useModalContext: () => import_react54.useModalContext,
|
370
377
|
useModalStyles: () => import_react54.useModalStyles,
|
371
|
-
useOutsideClick: () =>
|
378
|
+
useOutsideClick: () => import_react101.useOutsideClick,
|
372
379
|
usePinInput: () => import_react63.usePinInput,
|
373
380
|
usePinInputContext: () => import_react63.usePinInputContext,
|
374
381
|
usePinInputField: () => import_react63.usePinInputField,
|
375
382
|
useProgressStyles: () => import_react65.useProgressStyles,
|
376
|
-
useQuery: () =>
|
383
|
+
useQuery: () => import_react89.useQuery,
|
377
384
|
useRadio: () => import_react68.useRadio,
|
378
385
|
useRadioGroup: () => import_react68.useRadioGroup,
|
379
386
|
useRadioGroupContext: () => import_react68.useRadioGroupContext,
|
380
|
-
useSteps: () =>
|
381
|
-
useTab: () =>
|
382
|
-
useTabIndicator: () =>
|
383
|
-
useTabList: () =>
|
384
|
-
useTabPanel: () =>
|
385
|
-
useTabPanels: () =>
|
386
|
-
useTabs: () =>
|
387
|
-
useTabsContext: () =>
|
388
|
-
useTabsDescendant: () =>
|
389
|
-
useTabsDescendants: () =>
|
390
|
-
useTabsDescendantsContext: () =>
|
391
|
-
useTabsStyles: () =>
|
392
|
-
useTheme: () =>
|
387
|
+
useSteps: () => import_react89.useSteps,
|
388
|
+
useTab: () => import_react82.useTab,
|
389
|
+
useTabIndicator: () => import_react82.useTabIndicator,
|
390
|
+
useTabList: () => import_react82.useTabList,
|
391
|
+
useTabPanel: () => import_react82.useTabPanel,
|
392
|
+
useTabPanels: () => import_react82.useTabPanels,
|
393
|
+
useTabs: () => import_react82.useTabs,
|
394
|
+
useTabsContext: () => import_react82.useTabsContext,
|
395
|
+
useTabsDescendant: () => import_react82.useTabsDescendant,
|
396
|
+
useTabsDescendants: () => import_react82.useTabsDescendants,
|
397
|
+
useTabsDescendantsContext: () => import_react82.useTabsDescendantsContext,
|
398
|
+
useTabsStyles: () => import_react82.useTabsStyles,
|
399
|
+
useTheme: () => import_react101.useTheme,
|
393
400
|
useToast: () => useToast,
|
394
|
-
useToken: () =>
|
401
|
+
useToken: () => import_react101.useToken
|
395
402
|
});
|
396
403
|
module.exports = __toCommonJS(src_exports);
|
397
404
|
|
@@ -1262,6 +1269,12 @@ var import_react_table = require("@tanstack/react-table");
|
|
1262
1269
|
var React5 = __toESM(require("react"));
|
1263
1270
|
var import_react30 = require("react");
|
1264
1271
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
1272
|
+
var isCellDisabled = (row, cellId) => {
|
1273
|
+
if (row.disabled) {
|
1274
|
+
return row.disabled[cellId];
|
1275
|
+
}
|
1276
|
+
return false;
|
1277
|
+
};
|
1265
1278
|
var getCommonPinningStyles = (column) => {
|
1266
1279
|
const isPinned = column.getIsPinned();
|
1267
1280
|
const isLastLeftPinnedColumn = isPinned === "left" && column.getIsLastColumn("left");
|
@@ -1393,141 +1406,145 @@ var useDataTable = ({
|
|
1393
1406
|
generateColumn
|
1394
1407
|
};
|
1395
1408
|
};
|
1396
|
-
var DataTable = React5.forwardRef(
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
import_react28.Flex,
|
1412
|
-
{
|
1413
|
-
"data-test-id": "CT_component_data-table_loader",
|
1414
|
-
textTransform: "capitalize",
|
1415
|
-
align: "center",
|
1416
|
-
gap: 2,
|
1417
|
-
children: (0, import_react_table.flexRender)(header.column.columnDef.header, header.getContext())
|
1418
|
-
}
|
1419
|
-
)
|
1420
|
-
},
|
1421
|
-
header.id
|
1422
|
-
)) }, headerGroup.id)) }),
|
1423
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tbody, { children: [...Array(5)].map((num) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tr, { mx: "2", children: [...Array(generateColumn().length)].map((i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Td, { width: 210, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Skeleton, { startColor: "gray.50", endColor: "gray.100", h: "30px", w: "100%" }, i) }, i)) }, num)) })
|
1424
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react28.Table, { ...styles == null ? void 0 : styles.table, children: [
|
1425
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tr, { bg: (0, import_react28.useColorModeValue)("initial", "ebony-clay.700"), ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => {
|
1426
|
-
var _a;
|
1427
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1428
|
-
import_react28.Th,
|
1429
|
-
{
|
1430
|
-
colSpan: header.colSpan,
|
1431
|
-
sx: getCommonPinningStyles(header.column),
|
1432
|
-
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1433
|
-
...styles == null ? void 0 : styles.tableColumnHeader,
|
1434
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
1435
|
-
import_react28.Flex,
|
1436
|
-
{
|
1437
|
-
backgroundColor: "white",
|
1438
|
-
height: "100%",
|
1439
|
-
"data-test-id": `CT_Container_TableHeader_${header.id}`,
|
1440
|
-
textTransform: "capitalize",
|
1441
|
-
userSelect: "none",
|
1442
|
-
align: "center",
|
1443
|
-
gap: 2,
|
1444
|
-
children: [
|
1445
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Text, { children: (0, import_react_table.flexRender)(header.column.columnDef.header, header.getContext()) }),
|
1446
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1447
|
-
import_react28.Box,
|
1448
|
-
{
|
1449
|
-
as: "span",
|
1450
|
-
cursor: header.column.getCanSort() ? "pointer" : "default",
|
1451
|
-
"data-test-id": `CT_Container_SortingIcon_${header.id}`,
|
1452
|
-
onClick: header.column.getToggleSortingHandler(),
|
1453
|
-
children: (_a = header.column.getCanSort() && {
|
1454
|
-
asc: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.ChevronUpIcon, { h: 4, w: 4, color: "neutral.500" }),
|
1455
|
-
desc: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.ChevronDownIcon, { h: 4, w: 4, color: "neutral.500" })
|
1456
|
-
}[header.column.getIsSorted()]) != null ? _a : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.UpDownIcon, { h: 4, w: 4, color: "neutral.500" })
|
1457
|
-
}
|
1458
|
-
)
|
1459
|
-
]
|
1460
|
-
}
|
1461
|
-
)
|
1462
|
-
},
|
1463
|
-
header.id
|
1464
|
-
);
|
1465
|
-
}) }, headerGroup.id)) }),
|
1466
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tbody, { ...styles == null ? void 0 : styles.tableBody, children: table.getRowModel().rows.map((row) => {
|
1467
|
-
const trRef = (0, import_react30.useRef)();
|
1468
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1469
|
-
import_react28.Tr,
|
1409
|
+
var DataTable = React5.forwardRef((props, ref) => {
|
1410
|
+
const { isLoading, styles, headerSticky, onRowClick, container } = props;
|
1411
|
+
const { table, toggleAllRowsSelected, generateColumn } = useDataTable(props);
|
1412
|
+
React5.useImperativeHandle(ref, () => ({
|
1413
|
+
toggleAllRowsSelected
|
1414
|
+
}));
|
1415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Box, { overflowX: "auto", position: "relative", maxW: "100%", w: "full", ...container, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react28.Table, { ...styles == null ? void 0 : styles.table, "data-loading": "true", children: [
|
1416
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tr, { mx: "2", ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1417
|
+
import_react28.Th,
|
1418
|
+
{
|
1419
|
+
colSpan: header.colSpan,
|
1420
|
+
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1421
|
+
...styles == null ? void 0 : styles.tableColumnHeader,
|
1422
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1423
|
+
import_react28.Flex,
|
1470
1424
|
{
|
1471
|
-
"data-test-id": "-
|
1472
|
-
|
1473
|
-
|
1474
|
-
|
1475
|
-
|
1476
|
-
|
1477
|
-
|
1478
|
-
|
1479
|
-
|
1425
|
+
"data-test-id": "CT_component_data-table_loader",
|
1426
|
+
textTransform: "capitalize",
|
1427
|
+
align: "center",
|
1428
|
+
gap: 2,
|
1429
|
+
children: (0, import_react_table.flexRender)(header.column.columnDef.header, header.getContext())
|
1430
|
+
}
|
1431
|
+
)
|
1432
|
+
},
|
1433
|
+
header.id
|
1434
|
+
)) }, headerGroup.id)) }),
|
1435
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tbody, { children: [...Array(5)].map((num) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tr, { mx: "2", children: [...Array(generateColumn().length)].map((i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Td, { width: 210, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Skeleton, { startColor: "neutral.100", endColor: "neutral.200", h: "20px", w: "70%" }, i) }, i)) }, num)) })
|
1436
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react28.Table, { ...styles == null ? void 0 : styles.table, children: [
|
1437
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1438
|
+
import_react28.Thead,
|
1439
|
+
{
|
1440
|
+
maxH: "50px",
|
1441
|
+
...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}),
|
1442
|
+
children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tr, { bg: (0, import_react28.useColorModeValue)("initial", "ebony-clay.700"), ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => {
|
1443
|
+
var _a;
|
1444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1445
|
+
import_react28.Th,
|
1446
|
+
{
|
1447
|
+
colSpan: header.colSpan,
|
1448
|
+
sx: getCommonPinningStyles(header.column),
|
1449
|
+
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1450
|
+
...styles == null ? void 0 : styles.tableColumnHeader,
|
1451
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
1452
|
+
import_react28.Flex,
|
1453
|
+
{
|
1454
|
+
backgroundColor: "white",
|
1455
|
+
height: "100%",
|
1456
|
+
"data-test-id": `CT_Container_TableHeader_${header.id}`,
|
1457
|
+
textTransform: "capitalize",
|
1458
|
+
userSelect: "none",
|
1459
|
+
align: "center",
|
1460
|
+
gap: 2,
|
1461
|
+
children: [
|
1462
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Text, { children: (0, import_react_table.flexRender)(header.column.columnDef.header, header.getContext()) }),
|
1463
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1464
|
+
import_react28.Box,
|
1465
|
+
{
|
1466
|
+
as: "span",
|
1467
|
+
cursor: header.column.getCanSort() ? "pointer" : "default",
|
1468
|
+
"data-test-id": `CT_Container_SortingIcon_${header.id}`,
|
1469
|
+
onClick: header.column.getToggleSortingHandler(),
|
1470
|
+
children: (_a = header.column.getCanSort() && {
|
1471
|
+
asc: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.ChevronUpIcon, { h: 4, w: 4, color: "neutral.500" }),
|
1472
|
+
desc: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.ChevronDownIcon, { h: 4, w: 4, color: "neutral.500" })
|
1473
|
+
}[header.column.getIsSorted()]) != null ? _a : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Box, { display: "flex", justifyContent: "center", alignItems: "center", boxSize: 4, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.UpDownIcon, { color: "neutral.500" }) })
|
1480
1474
|
}
|
1481
|
-
|
1482
|
-
|
1483
|
-
|
1484
|
-
|
1485
|
-
},
|
1486
|
-
onMouseUp: () => {
|
1487
|
-
var _a;
|
1488
|
-
(_a = trRef.current) == null ? void 0 : _a.removeAttribute("data-active");
|
1489
|
-
},
|
1490
|
-
onClick: () => {
|
1491
|
-
if (onRowClick) {
|
1492
|
-
onRowClick(row.original);
|
1493
|
-
}
|
1475
|
+
)
|
1476
|
+
]
|
1477
|
+
}
|
1478
|
+
)
|
1494
1479
|
},
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
onClick: (e) => {
|
1515
|
-
e.stopPropagation();
|
1516
|
-
},
|
1517
|
-
children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext())
|
1480
|
+
header.id
|
1481
|
+
);
|
1482
|
+
}) }, headerGroup.id))
|
1483
|
+
}
|
1484
|
+
),
|
1485
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tbody, { ...styles == null ? void 0 : styles.tableBody, children: table.getRowModel().rows.map((row) => {
|
1486
|
+
const trRef = (0, import_react30.useRef)();
|
1487
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1488
|
+
import_react28.Tr,
|
1489
|
+
{
|
1490
|
+
"data-test-id": "-RU0hNYGRzeVM3HQ4cXHl",
|
1491
|
+
tabindex: "0",
|
1492
|
+
ref: trRef,
|
1493
|
+
...styles == null ? void 0 : styles.tableRow,
|
1494
|
+
css: import_react29.css`
|
1495
|
+
&:last-child {
|
1496
|
+
td {
|
1497
|
+
border-bottom: none;
|
1498
|
+
}
|
1518
1499
|
}
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
})
|
1500
|
+
`,
|
1501
|
+
onMouseDown: () => {
|
1502
|
+
var _a;
|
1503
|
+
(_a = trRef.current) == null ? void 0 : _a.setAttribute("data-active", "true");
|
1524
1504
|
},
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
)
|
1505
|
+
onMouseUp: () => {
|
1506
|
+
var _a;
|
1507
|
+
(_a = trRef.current) == null ? void 0 : _a.removeAttribute("data-active");
|
1508
|
+
},
|
1509
|
+
onClick: () => {
|
1510
|
+
if (onRowClick) {
|
1511
|
+
onRowClick(row.original);
|
1512
|
+
}
|
1513
|
+
},
|
1514
|
+
children: row.getVisibleCells().map((cell) => {
|
1515
|
+
const isDisabled = isCellDisabled(row.original, cell.column.id);
|
1516
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1517
|
+
import_react28.Td,
|
1518
|
+
{
|
1519
|
+
"data-test-id": `CT_Component_TableCell_${cell.id}`,
|
1520
|
+
fontSize: "text.sm",
|
1521
|
+
sx: getCommonPinningStyles(cell.column),
|
1522
|
+
...styles == null ? void 0 : styles.tableCell,
|
1523
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Flex, { height: "100%", align: "center", opacity: isDisabled ? 0.5 : 1, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1524
|
+
import_react28.Flex,
|
1525
|
+
{
|
1526
|
+
tabIndex: 0,
|
1527
|
+
display: "inline-flex",
|
1528
|
+
cursor: "auto",
|
1529
|
+
"data-test-id": `CT_Component_TableCell_Content-${cell.id}`,
|
1530
|
+
onMouseUp: (e) => e.stopPropagation(),
|
1531
|
+
onMouseDown: (e) => e.stopPropagation(),
|
1532
|
+
onClick: (e) => {
|
1533
|
+
e.stopPropagation();
|
1534
|
+
},
|
1535
|
+
children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext())
|
1536
|
+
}
|
1537
|
+
) })
|
1538
|
+
},
|
1539
|
+
cell.id
|
1540
|
+
);
|
1541
|
+
})
|
1542
|
+
},
|
1543
|
+
row.id
|
1544
|
+
);
|
1545
|
+
}) })
|
1546
|
+
] }) });
|
1547
|
+
});
|
1531
1548
|
var data_table_default = DataTable;
|
1532
1549
|
|
1533
1550
|
// src/components/datepicker/components/datepicker.tsx
|
@@ -2847,30 +2864,39 @@ NavItem.defaultProps = {
|
|
2847
2864
|
var import_react44 = require("@chakra-ui/react");
|
2848
2865
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
2849
2866
|
var Tooltip = (props) => {
|
2850
|
-
const {
|
2851
|
-
|
2867
|
+
const {
|
2868
|
+
children,
|
2869
|
+
bg = "neutral.700",
|
2870
|
+
textStyle = "text.sm",
|
2871
|
+
color = "white",
|
2872
|
+
width,
|
2873
|
+
borderRadius = 4,
|
2874
|
+
fontWeight = "400"
|
2875
|
+
} = props;
|
2876
|
+
const content = ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
2852
2877
|
import_react44.PopoverContent,
|
2853
2878
|
{
|
2854
2879
|
"data-test-id": "",
|
2855
2880
|
border: "none",
|
2856
2881
|
bg,
|
2857
|
-
rounded,
|
2858
|
-
ml: 1,
|
2859
2882
|
textStyle,
|
2860
2883
|
width,
|
2861
2884
|
placeItems: "center",
|
2862
|
-
borderRadius
|
2863
|
-
onClick: (e) =>
|
2885
|
+
borderRadius,
|
2886
|
+
onClick: (e) => {
|
2887
|
+
e.stopPropagation();
|
2888
|
+
onClose();
|
2889
|
+
},
|
2864
2890
|
children: [
|
2865
2891
|
props.hasArrow && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.PopoverArrow, { color, bg, shadow: "none" }),
|
2866
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.PopoverBody, { color, ...props, children: props.label })
|
2892
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.PopoverBody, { color, ...props, fontWeight, children: props.label })
|
2867
2893
|
]
|
2868
2894
|
}
|
2869
2895
|
);
|
2870
|
-
return props.isInteractive === true ? /* @__PURE__ */ (0, import_jsx_runtime35.
|
2896
|
+
return props.isInteractive === true ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.Popover, { trigger: "hover", placement: props.placement, ...props.popoverProps, children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
2871
2897
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.PopoverTrigger, { children }),
|
2872
|
-
props.portal ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.Portal, { children: content }) : content
|
2873
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.Tooltip, { ...props, children });
|
2898
|
+
props.portal ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.Portal, { children: content({ onClose }) }) : content({ onClose })
|
2899
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.Tooltip, { ...props, children });
|
2874
2900
|
};
|
2875
2901
|
|
2876
2902
|
// src/components/header/components/profile.tsx
|
@@ -2936,18 +2962,19 @@ var Profile = ({
|
|
2936
2962
|
] }),
|
2937
2963
|
textAlign: "left",
|
2938
2964
|
placement: "bottom-end",
|
2965
|
+
cursor: "text",
|
2966
|
+
portal: true,
|
2939
2967
|
popoverProps: {
|
2940
2968
|
offset: [10, 8]
|
2941
2969
|
},
|
2942
2970
|
width: 300,
|
2943
2971
|
...officeContainer,
|
2944
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Box, {
|
2972
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
2945
2973
|
badge_default,
|
2946
2974
|
{
|
2947
|
-
|
2948
|
-
pill: true,
|
2975
|
+
rounded: "full",
|
2949
2976
|
variant: "neutral-light",
|
2950
|
-
boxSize: "
|
2977
|
+
boxSize: "5",
|
2951
2978
|
justifyContent: "center",
|
2952
2979
|
p: "0.5",
|
2953
2980
|
...badgeStyle,
|
@@ -3696,7 +3723,9 @@ var Rating = ({ value }) => {
|
|
3696
3723
|
var rating_default = Rating;
|
3697
3724
|
|
3698
3725
|
// src/components/select/components/select.tsx
|
3726
|
+
var import_react73 = require("@chakra-ui/react");
|
3699
3727
|
var import_system7 = require("@chakra-ui/system");
|
3728
|
+
var Icon7 = __toESM(require("@ctlyst.id/internal-icon"));
|
3700
3729
|
var import_react_select = __toESM(require("react-select"));
|
3701
3730
|
|
3702
3731
|
// src/config/theme/foundations/shadows.ts
|
@@ -4004,10 +4033,10 @@ function selectStyles(colorMode, _isError) {
|
|
4004
4033
|
return { ...base, ...selectStyle };
|
4005
4034
|
},
|
4006
4035
|
dropdownIndicator: (base) => {
|
4007
|
-
return { ...base, ...selectStyle };
|
4036
|
+
return { ...base, ...selectStyle, color: "var(--chakra-colors-neutral-400)" };
|
4008
4037
|
},
|
4009
4038
|
indicatorSeparator: (base) => {
|
4010
|
-
return { ...base,
|
4039
|
+
return { ...base, background: "var(--chakra-colors-neutral-400)", borderRadius: 10 };
|
4011
4040
|
},
|
4012
4041
|
placeholder: (base) => {
|
4013
4042
|
return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)" };
|
@@ -4022,13 +4051,15 @@ function selectStyles(colorMode, _isError) {
|
|
4022
4051
|
multiValueLabel: (base) => ({
|
4023
4052
|
...base,
|
4024
4053
|
borderRadius: 4,
|
4025
|
-
fontWeight: "bold"
|
4054
|
+
fontWeight: "bold",
|
4055
|
+
padding: 0,
|
4056
|
+
paddingLeft: 0
|
4026
4057
|
}),
|
4027
4058
|
multiValueRemove: (base) => ({
|
4028
4059
|
...base,
|
4029
4060
|
color: "var(--chakra-colors-neutral-900)",
|
4030
4061
|
":hover": {
|
4031
|
-
backgroundColor: "
|
4062
|
+
backgroundColor: "transparent"
|
4032
4063
|
}
|
4033
4064
|
})
|
4034
4065
|
};
|
@@ -4048,19 +4079,40 @@ var themeSelect = (theme5) => {
|
|
4048
4079
|
|
4049
4080
|
// src/components/select/components/select.tsx
|
4050
4081
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
4082
|
+
function DropdownIndicator(props) {
|
4083
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.DropdownIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon7.ChevronDown, { size: 4, color: "neutral.400" }) });
|
4084
|
+
}
|
4085
|
+
function ClearIndicator(props) {
|
4086
|
+
const { hasValue } = props;
|
4087
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon7.Close, { size: 4, color: hasValue ? "black.medium" : "neutral.400" }) });
|
4088
|
+
}
|
4089
|
+
function MultiValue(props) {
|
4090
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react73.Badge, { pr: 0, variant: "neutral-light", children: props == null ? void 0 : props.data.label }) });
|
4091
|
+
}
|
4092
|
+
function MultiValueRemove(props) {
|
4093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react73.Flex, { align: "center", justify: "center", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon7.Close, { size: 2.5, color: "inherit" }) }) });
|
4094
|
+
}
|
4051
4095
|
function Select2({
|
4052
4096
|
styles,
|
4053
4097
|
isError = false,
|
4054
4098
|
...rest
|
4055
4099
|
}) {
|
4056
4100
|
const { colorMode } = (0, import_system7.useColorMode)();
|
4101
|
+
const { components } = rest;
|
4057
4102
|
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
4058
4103
|
import_react_select.default,
|
4059
4104
|
{
|
4060
4105
|
classNamePrefix: "react-select",
|
4061
|
-
|
4106
|
+
components: {
|
4107
|
+
DropdownIndicator,
|
4108
|
+
ClearIndicator,
|
4109
|
+
MultiValue,
|
4110
|
+
MultiValueRemove,
|
4111
|
+
...components
|
4112
|
+
},
|
4062
4113
|
styles: { ...selectStyles(colorMode, isError) },
|
4063
|
-
theme: themeSelect
|
4114
|
+
theme: themeSelect,
|
4115
|
+
...rest
|
4064
4116
|
}
|
4065
4117
|
);
|
4066
4118
|
}
|
@@ -4080,6 +4132,10 @@ function SelectAsync({
|
|
4080
4132
|
import_react_select_async_paginate.AsyncPaginate,
|
4081
4133
|
{
|
4082
4134
|
classNamePrefix: "react-select",
|
4135
|
+
components: {
|
4136
|
+
DropdownIndicator,
|
4137
|
+
ClearIndicator
|
4138
|
+
},
|
4083
4139
|
...rest,
|
4084
4140
|
styles: { ...selectStyles(colorMode, isError), ...styles },
|
4085
4141
|
theme: themeSelect
|
@@ -4098,6 +4154,10 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
4098
4154
|
import_async_creatable.default,
|
4099
4155
|
{
|
4100
4156
|
classNamePrefix: "react-select",
|
4157
|
+
components: {
|
4158
|
+
DropdownIndicator,
|
4159
|
+
ClearIndicator
|
4160
|
+
},
|
4101
4161
|
...rest,
|
4102
4162
|
styles: { ...selectStyles(colorMode, isError), ...styles },
|
4103
4163
|
theme: themeSelect
|
@@ -4115,6 +4175,10 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
4115
4175
|
import_creatable.default,
|
4116
4176
|
{
|
4117
4177
|
classNamePrefix: "react-select",
|
4178
|
+
components: {
|
4179
|
+
DropdownIndicator,
|
4180
|
+
ClearIndicator
|
4181
|
+
},
|
4118
4182
|
...rest,
|
4119
4183
|
styles: { ...selectStyles(colorMode, isError), ...styles },
|
4120
4184
|
theme: themeSelect
|
@@ -4123,7 +4187,7 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
4123
4187
|
}
|
4124
4188
|
|
4125
4189
|
// src/components/select/components/select-with-checkbox.tsx
|
4126
|
-
var
|
4190
|
+
var import_react74 = require("@chakra-ui/react");
|
4127
4191
|
var import_system11 = require("@chakra-ui/system");
|
4128
4192
|
var import_react_select2 = __toESM(require("react-select"));
|
4129
4193
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
@@ -4186,7 +4250,7 @@ var InputOption = ({
|
|
4186
4250
|
innerProps: props,
|
4187
4251
|
...rest,
|
4188
4252
|
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
4189
|
-
|
4253
|
+
import_react74.Flex,
|
4190
4254
|
{
|
4191
4255
|
alignItems: "center",
|
4192
4256
|
width: "100%",
|
@@ -4196,15 +4260,15 @@ var InputOption = ({
|
|
4196
4260
|
cursor: isDisabled ? "not-allowed" : "default",
|
4197
4261
|
children: [
|
4198
4262
|
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4199
|
-
|
4263
|
+
import_react74.Checkbox,
|
4200
4264
|
{
|
4201
4265
|
isChecked: checkedState === CHECKBOX_STATE.CHECKED,
|
4202
4266
|
isIndeterminate: checkedState === CHECKBOX_STATE.INDETERMINATE,
|
4203
4267
|
isDisabled,
|
4204
4268
|
"data-test-id": "CT_component_select-checkbox_select-all-option"
|
4205
4269
|
}
|
4206
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4207
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4270
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react74.Checkbox, { isChecked: isSelected, "data-test-id": "CT_component_select-checkbox_option-checkbox" }),
|
4271
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react74.Text, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
|
4208
4272
|
]
|
4209
4273
|
}
|
4210
4274
|
)
|
@@ -4237,7 +4301,7 @@ var SelectWithCheckboxBase = ({
|
|
4237
4301
|
);
|
4238
4302
|
};
|
4239
4303
|
var SelectCheckbox = (props) => {
|
4240
|
-
const { isMulti, options, value, ...rest } = props;
|
4304
|
+
const { isMulti, options, value, components, ...rest } = props;
|
4241
4305
|
const selectValue = value || [];
|
4242
4306
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4243
4307
|
SelectWithCheckboxBase,
|
@@ -4245,6 +4309,11 @@ var SelectCheckbox = (props) => {
|
|
4245
4309
|
isMulti,
|
4246
4310
|
options,
|
4247
4311
|
components: {
|
4312
|
+
DropdownIndicator,
|
4313
|
+
ClearIndicator,
|
4314
|
+
MultiValue,
|
4315
|
+
MultiValueRemove,
|
4316
|
+
...components,
|
4248
4317
|
Option: (optionProps) => {
|
4249
4318
|
const { isSelected, data } = optionProps;
|
4250
4319
|
const optionLength = (options == null ? void 0 : options.length) ? options.length - 1 : 0;
|
@@ -4260,13 +4329,13 @@ var SelectCheckbox = (props) => {
|
|
4260
4329
|
var select_with_checkbox_default = SelectCheckbox;
|
4261
4330
|
|
4262
4331
|
// src/components/sidebar/components/sidebar.tsx
|
4263
|
-
var
|
4332
|
+
var import_react75 = require("@chakra-ui/react");
|
4264
4333
|
var import_framer_motion = require("framer-motion");
|
4265
4334
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
4266
4335
|
var Sidebar = ({ isCollapse, children, ...props }) => {
|
4267
4336
|
const { width = "220px" } = props;
|
4268
4337
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4269
|
-
|
4338
|
+
import_react75.Flex,
|
4270
4339
|
{
|
4271
4340
|
position: "relative",
|
4272
4341
|
as: import_framer_motion.motion.div,
|
@@ -4286,13 +4355,13 @@ var Sidebar = ({ isCollapse, children, ...props }) => {
|
|
4286
4355
|
Sidebar.displayName = "Sidebar";
|
4287
4356
|
|
4288
4357
|
// src/components/sidebar/components/sidebar-header.tsx
|
4289
|
-
var
|
4358
|
+
var import_react76 = require("@chakra-ui/react");
|
4290
4359
|
var import_internal_icon8 = require("@ctlyst.id/internal-icon");
|
4291
4360
|
var import_framer_motion2 = require("framer-motion");
|
4292
4361
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
4293
4362
|
var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
4294
4363
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
4295
|
-
|
4364
|
+
import_react76.Box,
|
4296
4365
|
{
|
4297
4366
|
px: "2",
|
4298
4367
|
color: "neutral.900",
|
@@ -4302,7 +4371,7 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
4302
4371
|
color: "primary.500"
|
4303
4372
|
},
|
4304
4373
|
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
4305
|
-
|
4374
|
+
import_react76.Flex,
|
4306
4375
|
{
|
4307
4376
|
"data-test-id": "nLkz69YipW818FioeAxVI",
|
4308
4377
|
direction: "row",
|
@@ -4312,7 +4381,7 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
4312
4381
|
cursor: "pointer",
|
4313
4382
|
children: [
|
4314
4383
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
4315
|
-
|
4384
|
+
import_react76.Box,
|
4316
4385
|
{
|
4317
4386
|
as: import_framer_motion2.motion.div,
|
4318
4387
|
boxSize: "4",
|
@@ -4323,8 +4392,8 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
4323
4392
|
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_internal_icon8.ArrowRight, { size: 4, color: "inherit" })
|
4324
4393
|
}
|
4325
4394
|
),
|
4326
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_framer_motion2.AnimatePresence, { children: !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
4327
|
-
|
4395
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_framer_motion2.AnimatePresence, { children: !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react76.Box, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
4396
|
+
import_react76.Text,
|
4328
4397
|
{
|
4329
4398
|
as: import_framer_motion2.motion.div,
|
4330
4399
|
w: "max-content",
|
@@ -4350,25 +4419,25 @@ SidebarHeader.defaultProps = {
|
|
4350
4419
|
};
|
4351
4420
|
|
4352
4421
|
// src/components/sidebar/components/sidebar-menu.tsx
|
4353
|
-
var
|
4354
|
-
var
|
4422
|
+
var import_react77 = require("@chakra-ui/react");
|
4423
|
+
var Icon8 = __toESM(require("@ctlyst.id/internal-icon"));
|
4355
4424
|
var import_framer_motion3 = require("framer-motion");
|
4356
4425
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
4357
4426
|
var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, setActive, active }) => {
|
4358
|
-
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Box, { as: import_framer_motion3.motion.div, animate: { padding: isCollapse ? "8px 16px" : "8px" }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Accordion, { index: menu.findIndex((item) => item.children.some((child) => child.navLink === active)), children: menu.map((item) => {
|
4359
4428
|
const isActive = active == null ? void 0 : active.includes(item.navLink);
|
4360
|
-
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4429
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.AccordionItem, { mt: "4", children: ({ isExpanded }) => {
|
4361
4430
|
const isOpenOptions = isCollapse || !isCollapse && !isExpanded;
|
4362
4431
|
const noChild = !item.children.length;
|
4363
4432
|
const offsetStyle = isCollapse ? noChild ? [-5, 16] : [-1, 16] : [-1, 8];
|
4364
4433
|
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
4365
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4434
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Popover, { trigger: "hover", placement: "right-start", offset: offsetStyle, children: ({ isOpen, onClose }) => {
|
4366
4435
|
const activeOption = isOpen ? "primary.50" : "white";
|
4367
4436
|
const backgroundColor = isOpen && !isActive ? "primary.50" : "primary.100";
|
4368
4437
|
const activeParent = isActive ? backgroundColor : activeOption;
|
4369
4438
|
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
4370
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4371
|
-
|
4439
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4440
|
+
import_react77.AccordionButton,
|
4372
4441
|
{
|
4373
4442
|
"data-test-id": `CTA_button-accordion-${item.title}`,
|
4374
4443
|
p: "0",
|
@@ -4385,9 +4454,9 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
4385
4454
|
position: "relative",
|
4386
4455
|
...itemStyles,
|
4387
4456
|
children: [
|
4388
|
-
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4457
|
+
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Box, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
|
4389
4458
|
!isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
4390
|
-
|
4459
|
+
import_react77.Box,
|
4391
4460
|
{
|
4392
4461
|
display: "flex",
|
4393
4462
|
w: "full",
|
@@ -4400,15 +4469,15 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
4400
4469
|
animate: { opacity: 1, x: 0 },
|
4401
4470
|
exit: { opacity: 0, x: 16 },
|
4402
4471
|
children: [
|
4403
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4472
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Box, { h: "3.5", position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Text, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) }),
|
4404
4473
|
!!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4405
|
-
|
4474
|
+
import_react77.Box,
|
4406
4475
|
{
|
4407
4476
|
display: "flex",
|
4408
4477
|
boxSize: "3",
|
4409
4478
|
as: import_framer_motion3.motion.div,
|
4410
4479
|
animate: { transform: isExpanded ? "rotate(-180deg)" : "rotate(0)" },
|
4411
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4480
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon8.ChevronDown, { size: 3 })
|
4412
4481
|
}
|
4413
4482
|
)
|
4414
4483
|
]
|
@@ -4421,12 +4490,12 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
4421
4490
|
},
|
4422
4491
|
item.id
|
4423
4492
|
) }, item.id),
|
4424
|
-
isOpenOptions && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4425
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4493
|
+
isOpenOptions && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Portal, { children: item.children.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react77.PopoverContent, { w: "176px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: [
|
4494
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.PopoverHeader, { borderColor: "neutral.300", textStyle: "text.xs", p: "2", children: mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react77.Box, { display: "flex", alignItems: "center", children: [
|
4426
4495
|
mappingIcon2.get(item.icon || ""),
|
4427
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4496
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Box, { as: "span", ml: "2", children: item.title })
|
4428
4497
|
] }) }),
|
4429
|
-
!!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4498
|
+
!!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.PopoverBody, { pb: "1", px: "0", pt: "0", children: item.children.map((submenu) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4430
4499
|
NavItem,
|
4431
4500
|
{
|
4432
4501
|
"data-test-id": `CTA_Sidebar-popover-item-${submenu.id}`,
|
@@ -4442,7 +4511,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
4442
4511
|
},
|
4443
4512
|
submenu.id
|
4444
4513
|
)) })
|
4445
|
-
] }) : isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4514
|
+
] }) : isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.PopoverContent, { w: "174px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.PopoverBody, { py: "1", px: "0", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
4446
4515
|
NavItem,
|
4447
4516
|
{
|
4448
4517
|
"data-test-id": `CTA_Sidebar-popover-item-${item.id}`,
|
@@ -4455,15 +4524,15 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
4455
4524
|
rounded: "none",
|
4456
4525
|
...itemStyles,
|
4457
4526
|
children: [
|
4458
|
-
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4459
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4527
|
+
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Box, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
|
4528
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Box, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Text, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) })
|
4460
4529
|
]
|
4461
4530
|
},
|
4462
4531
|
item.id
|
4463
4532
|
) }) }) })
|
4464
4533
|
] });
|
4465
4534
|
} }, item.id),
|
4466
|
-
!isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4535
|
+
!isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.AccordionPanel, { mt: "1", p: "0", children: item.children.map((submenu) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4467
4536
|
NavItem,
|
4468
4537
|
{
|
4469
4538
|
mt: "1",
|
@@ -4487,16 +4556,16 @@ SidebarMenu.defaultProps = {
|
|
4487
4556
|
};
|
4488
4557
|
|
4489
4558
|
// src/components/switch/components/switch.tsx
|
4490
|
-
var
|
4559
|
+
var import_react78 = require("@chakra-ui/react");
|
4491
4560
|
var import_shared_utils10 = require("@chakra-ui/shared-utils");
|
4492
4561
|
var import_internal_icon9 = require("@ctlyst.id/internal-icon");
|
4493
|
-
var
|
4562
|
+
var import_react79 = require("react");
|
4494
4563
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
4495
|
-
var Switch = (0,
|
4496
|
-
const styles = (0,
|
4497
|
-
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0,
|
4498
|
-
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0,
|
4499
|
-
const containerStyles = (0,
|
4564
|
+
var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
4565
|
+
const styles = (0, import_react78.useMultiStyleConfig)("Switch", props);
|
4566
|
+
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0, import_react78.omitThemingProps)(props);
|
4567
|
+
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0, import_react78.useCheckbox)(ownProps);
|
4568
|
+
const containerStyles = (0, import_react79.useMemo)(
|
4500
4569
|
() => ({
|
4501
4570
|
display: "inline-block",
|
4502
4571
|
position: "relative",
|
@@ -4506,7 +4575,7 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
4506
4575
|
}),
|
4507
4576
|
[styles.container]
|
4508
4577
|
);
|
4509
|
-
const trackStyles = (0,
|
4578
|
+
const trackStyles = (0, import_react79.useMemo)(
|
4510
4579
|
() => ({
|
4511
4580
|
display: "inline-flex",
|
4512
4581
|
flexShrink: 0,
|
@@ -4518,7 +4587,7 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
4518
4587
|
}),
|
4519
4588
|
[styles.track]
|
4520
4589
|
);
|
4521
|
-
const labelStyles = (0,
|
4590
|
+
const labelStyles = (0, import_react79.useMemo)(
|
4522
4591
|
() => ({
|
4523
4592
|
userSelect: "none",
|
4524
4593
|
marginStart: spacing2,
|
@@ -4535,7 +4604,7 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
4535
4604
|
return iconSize[value];
|
4536
4605
|
};
|
4537
4606
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
4538
|
-
|
4607
|
+
import_react78.chakra.label,
|
4539
4608
|
{
|
4540
4609
|
...getRootProps(),
|
4541
4610
|
display: "flex",
|
@@ -4544,13 +4613,13 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
4544
4613
|
__css: containerStyles,
|
4545
4614
|
children: [
|
4546
4615
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
4547
|
-
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
4548
|
-
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
4616
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react78.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
4617
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react78.Flex, { gap: 1, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
|
4549
4618
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_internal_icon9.Check, { color: "white", size: getIconSize(props.size) }),
|
4550
4619
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_internal_icon9.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
4551
4620
|
] }),
|
4552
4621
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
4553
|
-
|
4622
|
+
import_react78.chakra.span,
|
4554
4623
|
{
|
4555
4624
|
__css: styles.thumb,
|
4556
4625
|
className: "chakra-switch__thumb",
|
@@ -4560,7 +4629,7 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
4560
4629
|
)
|
4561
4630
|
] }),
|
4562
4631
|
children && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
4563
|
-
|
4632
|
+
import_react78.chakra.span,
|
4564
4633
|
{
|
4565
4634
|
className: "chakra-switch__label",
|
4566
4635
|
color: state.isDisabled ? "black.low" : "black.high",
|
@@ -4580,18 +4649,18 @@ Switch.defaultProps = {
|
|
4580
4649
|
var switch_default = Switch;
|
4581
4650
|
|
4582
4651
|
// src/components/table/index.tsx
|
4583
|
-
var
|
4652
|
+
var import_react80 = require("@chakra-ui/react");
|
4584
4653
|
|
4585
4654
|
// src/components/tabs/components/tab.tsx
|
4586
|
-
var
|
4655
|
+
var import_react81 = require("@chakra-ui/react");
|
4587
4656
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
4588
|
-
var Tab = (0,
|
4657
|
+
var Tab = (0, import_react81.forwardRef)((props, ref) => {
|
4589
4658
|
var _a, _b;
|
4590
|
-
const tabProps = (0,
|
4659
|
+
const tabProps = (0, import_react81.useTab)({ ...props, ref });
|
4591
4660
|
const isSelected = !!tabProps["aria-selected"];
|
4592
|
-
const styles = (0,
|
4661
|
+
const styles = (0, import_react81.useMultiStyleConfig)("Tabs", tabProps);
|
4593
4662
|
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
4594
|
-
|
4663
|
+
import_react81.Button,
|
4595
4664
|
{
|
4596
4665
|
"data-test-id": props["data-test-id"],
|
4597
4666
|
p: 4,
|
@@ -4616,7 +4685,7 @@ var Tab = (0, import_react80.forwardRef)((props, ref) => {
|
|
4616
4685
|
},
|
4617
4686
|
__css: styles.tab,
|
4618
4687
|
...tabProps,
|
4619
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
4688
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react81.Flex, { alignItems: "center", children: [
|
4620
4689
|
(_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
|
4621
4690
|
tabProps.children,
|
4622
4691
|
(_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
|
@@ -4627,21 +4696,21 @@ var Tab = (0, import_react80.forwardRef)((props, ref) => {
|
|
4627
4696
|
var tab_default = Tab;
|
4628
4697
|
|
4629
4698
|
// src/components/tabs/index.ts
|
4630
|
-
var
|
4699
|
+
var import_react82 = require("@chakra-ui/react");
|
4631
4700
|
|
4632
4701
|
// src/components/text/index.ts
|
4633
|
-
var
|
4702
|
+
var import_react83 = require("@chakra-ui/react");
|
4634
4703
|
|
4635
4704
|
// src/components/toast/components/toast.tsx
|
4636
|
-
var
|
4705
|
+
var import_react85 = require("@chakra-ui/react");
|
4637
4706
|
var import_react_toastify = require("react-toastify");
|
4638
4707
|
|
4639
4708
|
// src/components/toast/components/styles.tsx
|
4640
|
-
var
|
4709
|
+
var import_react84 = require("@emotion/react");
|
4641
4710
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
4642
4711
|
var Styles2 = () => {
|
4643
4712
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
4644
|
-
|
4713
|
+
import_react84.Global,
|
4645
4714
|
{
|
4646
4715
|
styles: `
|
4647
4716
|
.Toastify__toast-container {
|
@@ -4694,7 +4763,7 @@ var renderIcon = (icon, type) => {
|
|
4694
4763
|
return icon;
|
4695
4764
|
};
|
4696
4765
|
var useToast = () => {
|
4697
|
-
const [primary500, neutral500, info500, danger500, warning500, success500] = (0,
|
4766
|
+
const [primary500, neutral500, info500, danger500, warning500, success500] = (0, import_react85.useToken)("colors", [
|
4698
4767
|
"primary.500",
|
4699
4768
|
"neutral.500",
|
4700
4769
|
"info.500",
|
@@ -4705,13 +4774,13 @@ var useToast = () => {
|
|
4705
4774
|
const content = (icon, message, link) => {
|
4706
4775
|
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
|
4707
4776
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(styles_default2, {}),
|
4708
|
-
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
4709
|
-
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
4710
|
-
icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
4711
|
-
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
4777
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react85.Flex, { justifyContent: "space-between", alignItems: "center", gap: 4, children: [
|
4778
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react85.Flex, { alignItems: "center", children: [
|
4779
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react85.chakra.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
|
4780
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react85.chakra.span, { noOfLines: 2, children: message })
|
4712
4781
|
] }),
|
4713
4782
|
link && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
4714
|
-
|
4783
|
+
import_react85.Link,
|
4715
4784
|
{
|
4716
4785
|
href: link.url,
|
4717
4786
|
textDecoration: "underline",
|
@@ -4789,9 +4858,9 @@ var useToast = () => {
|
|
4789
4858
|
var import_react_toastify2 = require("react-toastify");
|
4790
4859
|
|
4791
4860
|
// src/components/uploader/components/uploader.tsx
|
4792
|
-
var
|
4861
|
+
var import_react86 = require("@chakra-ui/react");
|
4793
4862
|
var import_internal_icon10 = require("@ctlyst.id/internal-icon");
|
4794
|
-
var
|
4863
|
+
var import_react87 = require("react");
|
4795
4864
|
var import_react_dropzone = require("react-dropzone");
|
4796
4865
|
|
4797
4866
|
// src/components/uploader/constants.ts
|
@@ -4822,7 +4891,7 @@ var formatValidationMessage = (extension) => `Foto harus dalam format ${concatLi
|
|
4822
4891
|
|
4823
4892
|
// src/components/uploader/components/uploader.tsx
|
4824
4893
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
4825
|
-
var
|
4894
|
+
var import_react88 = require("react");
|
4826
4895
|
var Uploader = ({
|
4827
4896
|
onHandleUploadFile,
|
4828
4897
|
onHandleRejections,
|
@@ -4851,10 +4920,10 @@ var Uploader = ({
|
|
4851
4920
|
size: size2 = "lg",
|
4852
4921
|
...props
|
4853
4922
|
}) => {
|
4854
|
-
const inputRef = (0,
|
4855
|
-
const [filePreview, setFilePreview] = (0,
|
4923
|
+
const inputRef = (0, import_react87.useRef)(null);
|
4924
|
+
const [filePreview, setFilePreview] = (0, import_react87.useState)();
|
4856
4925
|
const toast2 = useToast();
|
4857
|
-
const handleRejection = (0,
|
4926
|
+
const handleRejection = (0, import_react87.useCallback)(
|
4858
4927
|
(message, file, image) => {
|
4859
4928
|
if (onHandleRejections) {
|
4860
4929
|
onHandleRejections(file, image);
|
@@ -4866,7 +4935,7 @@ var Uploader = ({
|
|
4866
4935
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
4867
4936
|
[onHandleRejections]
|
4868
4937
|
);
|
4869
|
-
const onDrop = (0,
|
4938
|
+
const onDrop = (0, import_react87.useCallback)(
|
4870
4939
|
(files) => {
|
4871
4940
|
var _a;
|
4872
4941
|
const file = files[0];
|
@@ -4910,18 +4979,18 @@ var Uploader = ({
|
|
4910
4979
|
});
|
4911
4980
|
const renderHelperText = () => {
|
4912
4981
|
if (Array.isArray(helperText)) {
|
4913
|
-
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
4982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react86.UnorderedList, { pl: 2, fontSize: 12, color: "gray.600", "data-test-id": "CT_component_base-image-uploader_helperText", children: helperText.map((text2) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react86.ListItem, { children: text2 }, text2)) });
|
4914
4983
|
}
|
4915
4984
|
return helperText;
|
4916
4985
|
};
|
4917
|
-
const renderErrorText = (text2) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
4986
|
+
const renderErrorText = (text2) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react86.Box, { mb: 2, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react86.Text, { textStyle: "text.xs", color: "danger.500", children: text2 }) });
|
4918
4987
|
const handleRemove = (e) => {
|
4919
4988
|
e.stopPropagation();
|
4920
4989
|
setFilePreview(void 0);
|
4921
4990
|
onHandleUploadFile == null ? void 0 : onHandleUploadFile(null, null);
|
4922
4991
|
acceptedFiles.pop();
|
4923
4992
|
};
|
4924
|
-
(0,
|
4993
|
+
(0, import_react87.useEffect)(() => {
|
4925
4994
|
if (value) {
|
4926
4995
|
if (typeof value === "string") {
|
4927
4996
|
setFilePreview(value);
|
@@ -4937,16 +5006,16 @@ var Uploader = ({
|
|
4937
5006
|
const color = isDisabled ? "neutral.500" : "primary.500";
|
4938
5007
|
const containerHeight = !isSmall ? "160px" : "120px";
|
4939
5008
|
const cursorType = filePreview ? "initial" : "pointer";
|
4940
|
-
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
5009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react86.FormControl, { isRequired, children: [
|
4941
5010
|
label && typeof label === "string" ? (
|
4942
5011
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
4943
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
4944
|
-
isRequired && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5012
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react86.FormLabel, { requiredIndicator: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, {}), fontSize: "text.sm", children: [
|
5013
|
+
isRequired && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react86.RequiredIndicator, { mr: 1, ml: 0 }),
|
4945
5014
|
label
|
4946
5015
|
] })
|
4947
5016
|
) : label,
|
4948
5017
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
4949
|
-
|
5018
|
+
import_react86.Flex,
|
4950
5019
|
{
|
4951
5020
|
minH: containerHeight,
|
4952
5021
|
maxW: !isSmall ? "full" : "120px",
|
@@ -4963,8 +5032,8 @@ var Uploader = ({
|
|
4963
5032
|
...props,
|
4964
5033
|
...getRootProps(),
|
4965
5034
|
children: [
|
4966
|
-
filePreview && isShowCloseButton && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
4967
|
-
|
5035
|
+
filePreview && isShowCloseButton && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react86.Box, { position: "absolute", top: 1, right: 1, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5036
|
+
import_react86.Button,
|
4968
5037
|
{
|
4969
5038
|
"data-test-id": `CT_component_base-image-uploader_remove-image${testId ? `_${testId}` : ""}`,
|
4970
5039
|
"aria-label": "remove-image",
|
@@ -4981,15 +5050,15 @@ var Uploader = ({
|
|
4981
5050
|
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_internal_icon10.Close, { size: 3, color: "white" })
|
4982
5051
|
}
|
4983
5052
|
) }),
|
4984
|
-
filePreview && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
4985
|
-
|
5053
|
+
filePreview && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react86.Box, { w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5054
|
+
import_react86.Flex,
|
4986
5055
|
{
|
4987
5056
|
position: "relative",
|
4988
5057
|
"data-test-id": `CT_component_base-image-uploader_image-preview${testId ? `_${testId}` : ""}`,
|
4989
5058
|
justify: "center",
|
4990
5059
|
align: "center",
|
4991
5060
|
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
4992
|
-
|
5061
|
+
import_react86.Image,
|
4993
5062
|
{
|
4994
5063
|
h: size2 === "lg" ? "120" : "100",
|
4995
5064
|
src: filePreview,
|
@@ -5007,11 +5076,11 @@ var Uploader = ({
|
|
5007
5076
|
...getInputProps()
|
5008
5077
|
}
|
5009
5078
|
),
|
5010
|
-
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5079
|
+
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react86.Text, { children: dragActiveText != null ? dragActiveText : messages.dragActive }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react86.Flex, { gap: 2, flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : color, children: [
|
5011
5080
|
size2 === "sm" && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_internal_icon10.Plus, { size: 6, color }),
|
5012
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
5081
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react86.Box, { children: [
|
5013
5082
|
!filePreview && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5014
|
-
|
5083
|
+
import_react86.Heading,
|
5015
5084
|
{
|
5016
5085
|
fontWeight: "400",
|
5017
5086
|
fontSize: size2 === "sm" ? "text.md" : "text.xl",
|
@@ -5020,15 +5089,15 @@ var Uploader = ({
|
|
5020
5089
|
children: uploadFileText && size2 === "lg" ? messages.uploadFile : "Upload"
|
5021
5090
|
}
|
5022
5091
|
),
|
5023
|
-
size2 === "lg" && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5092
|
+
size2 === "lg" && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react86.Text, { fontSize: 12, children: filePreview ? dragReplaceText != null ? dragReplaceText : messages.dragReplace : dragInActiveText != null ? dragInActiveText : messages.dragInActive })
|
5024
5093
|
] })
|
5025
5094
|
] })
|
5026
5095
|
] })
|
5027
5096
|
]
|
5028
5097
|
}
|
5029
5098
|
),
|
5030
|
-
filePreview && !isSmall && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
5031
|
-
/* @__PURE__ */ (0,
|
5099
|
+
filePreview && !isSmall && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react86.Flex, { align: "center", justify: "center", my: 2, children: [
|
5100
|
+
/* @__PURE__ */ (0, import_react88.createElement)(
|
5032
5101
|
"input",
|
5033
5102
|
{
|
5034
5103
|
...getInputProps(),
|
@@ -5039,7 +5108,7 @@ var Uploader = ({
|
|
5039
5108
|
}
|
5040
5109
|
),
|
5041
5110
|
isShowReupload && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5042
|
-
|
5111
|
+
import_react86.Button,
|
5043
5112
|
{
|
5044
5113
|
"data-test-id": `CT_component_base-image-uploader_change-img-btn${testId ? `_${testId}` : ""}`,
|
5045
5114
|
type: "button",
|
@@ -5060,10 +5129,10 @@ var Uploader = ({
|
|
5060
5129
|
var uploader_default = Uploader;
|
5061
5130
|
|
5062
5131
|
// src/components/index.ts
|
5063
|
-
var
|
5132
|
+
var import_react89 = require("@chakra-ui/react");
|
5064
5133
|
|
5065
5134
|
// src/config/theme/themeConfiguration.ts
|
5066
|
-
var
|
5135
|
+
var import_react97 = require("@chakra-ui/react");
|
5067
5136
|
|
5068
5137
|
// src/config/theme/components/index.ts
|
5069
5138
|
var components_exports = {};
|
@@ -5267,7 +5336,7 @@ var alertTheme = defineMultiStyleConfig2({
|
|
5267
5336
|
var alert_default = alertTheme;
|
5268
5337
|
|
5269
5338
|
// src/config/theme/components/badge.ts
|
5270
|
-
var
|
5339
|
+
var Badge3 = {
|
5271
5340
|
baseStyle: {
|
5272
5341
|
h: "fit-content",
|
5273
5342
|
display: "inline-block",
|
@@ -5341,7 +5410,7 @@ var Badge2 = {
|
|
5341
5410
|
variant: "primary-solid"
|
5342
5411
|
}
|
5343
5412
|
};
|
5344
|
-
var badge_default2 =
|
5413
|
+
var badge_default2 = Badge3;
|
5345
5414
|
|
5346
5415
|
// src/config/theme/components/button.ts
|
5347
5416
|
var import_styled_system3 = require("@chakra-ui/styled-system");
|
@@ -5620,8 +5689,8 @@ var card_default2 = CardStyle;
|
|
5620
5689
|
|
5621
5690
|
// src/config/theme/components/checkbox.ts
|
5622
5691
|
var import_anatomy3 = require("@chakra-ui/anatomy");
|
5623
|
-
var
|
5624
|
-
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0,
|
5692
|
+
var import_react90 = require("@chakra-ui/react");
|
5693
|
+
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0, import_react90.createMultiStyleConfigHelpers)(import_anatomy3.checkboxAnatomy.keys);
|
5625
5694
|
var baseStyle3 = definePartsStyle3({
|
5626
5695
|
control: {
|
5627
5696
|
borderRadius: "sm",
|
@@ -5722,8 +5791,8 @@ var checkbox_default2 = Checkbox4;
|
|
5722
5791
|
|
5723
5792
|
// src/config/theme/components/chips.ts
|
5724
5793
|
var import_anatomy4 = require("@chakra-ui/anatomy");
|
5725
|
-
var
|
5726
|
-
var { definePartsStyle: definePartsStyle4, defineMultiStyleConfig: defineMultiStyleConfig4 } = (0,
|
5794
|
+
var import_react91 = require("@chakra-ui/react");
|
5795
|
+
var { definePartsStyle: definePartsStyle4, defineMultiStyleConfig: defineMultiStyleConfig4 } = (0, import_react91.createMultiStyleConfigHelpers)(import_anatomy4.tagAnatomy.keys);
|
5727
5796
|
var baseStyle4 = definePartsStyle4({
|
5728
5797
|
container: {
|
5729
5798
|
px: 3,
|
@@ -5932,8 +6001,8 @@ var input_default = Input3;
|
|
5932
6001
|
|
5933
6002
|
// src/config/theme/components/loader.ts
|
5934
6003
|
var import_styled_system7 = require("@chakra-ui/styled-system");
|
5935
|
-
var
|
5936
|
-
var rotate = (0,
|
6004
|
+
var import_react92 = require("@emotion/react");
|
6005
|
+
var rotate = (0, import_react92.keyframes)({
|
5937
6006
|
"0%": {
|
5938
6007
|
transform: "rotate(0deg)"
|
5939
6008
|
},
|
@@ -6115,8 +6184,8 @@ var modal_default = modalTheme;
|
|
6115
6184
|
|
6116
6185
|
// src/config/theme/components/popover.ts
|
6117
6186
|
var import_anatomy7 = require("@chakra-ui/anatomy");
|
6118
|
-
var
|
6119
|
-
var { definePartsStyle: definePartsStyle7, defineMultiStyleConfig: defineMultiStyleConfig7 } = (0,
|
6187
|
+
var import_react93 = require("@chakra-ui/react");
|
6188
|
+
var { definePartsStyle: definePartsStyle7, defineMultiStyleConfig: defineMultiStyleConfig7 } = (0, import_react93.createMultiStyleConfigHelpers)(import_anatomy7.popoverAnatomy.keys);
|
6120
6189
|
var baseStyle8 = definePartsStyle7({
|
6121
6190
|
content: {
|
6122
6191
|
bg: "white"
|
@@ -6127,8 +6196,8 @@ var popover_default = popoverTheme;
|
|
6127
6196
|
|
6128
6197
|
// src/config/theme/components/radio.ts
|
6129
6198
|
var import_anatomy8 = require("@chakra-ui/anatomy");
|
6130
|
-
var
|
6131
|
-
var { definePartsStyle: definePartsStyle8, defineMultiStyleConfig: defineMultiStyleConfig8 } = (0,
|
6199
|
+
var import_react94 = require("@chakra-ui/react");
|
6200
|
+
var { definePartsStyle: definePartsStyle8, defineMultiStyleConfig: defineMultiStyleConfig8 } = (0, import_react94.createMultiStyleConfigHelpers)(import_anatomy8.radioAnatomy.keys);
|
6132
6201
|
var baseStyle9 = definePartsStyle8({
|
6133
6202
|
control: {
|
6134
6203
|
border: "1px solid",
|
@@ -6563,7 +6632,7 @@ var tabsTheme = defineMultiStyleConfig11({
|
|
6563
6632
|
var tabs_default = tabsTheme;
|
6564
6633
|
|
6565
6634
|
// src/config/theme/components/textarea.ts
|
6566
|
-
var
|
6635
|
+
var import_react95 = require("@chakra-ui/react");
|
6567
6636
|
var getProps = (props) => {
|
6568
6637
|
const { isError, isSuccess, isDisabled } = props;
|
6569
6638
|
let borderColor = "neutral.400";
|
@@ -6583,7 +6652,7 @@ var getProps = (props) => {
|
|
6583
6652
|
borderColor
|
6584
6653
|
};
|
6585
6654
|
};
|
6586
|
-
var outline3 = (0,
|
6655
|
+
var outline3 = (0, import_react95.defineStyle)((props) => {
|
6587
6656
|
const { focusBorderColor, borderColor } = getProps(props);
|
6588
6657
|
return {
|
6589
6658
|
background: "white.high",
|
@@ -6627,7 +6696,7 @@ var outline3 = (0, import_react94.defineStyle)((props) => {
|
|
6627
6696
|
}
|
6628
6697
|
};
|
6629
6698
|
});
|
6630
|
-
var Textarea = (0,
|
6699
|
+
var Textarea = (0, import_react95.defineStyleConfig)({
|
6631
6700
|
variants: { outline: outline3 },
|
6632
6701
|
defaultProps: {
|
6633
6702
|
variant: "outline"
|
@@ -6636,15 +6705,15 @@ var Textarea = (0, import_react94.defineStyleConfig)({
|
|
6636
6705
|
var textarea_default2 = Textarea;
|
6637
6706
|
|
6638
6707
|
// src/config/theme/components/tooltip.ts
|
6639
|
-
var
|
6640
|
-
var $arrowBg = (0,
|
6708
|
+
var import_react96 = require("@chakra-ui/react");
|
6709
|
+
var $arrowBg = (0, import_react96.cssVar)("popper-arrow-bg");
|
6641
6710
|
var baseStyle12 = {
|
6642
6711
|
bg: "neutral.700",
|
6643
6712
|
textStyle: "text.sm",
|
6644
6713
|
fontSize: "text.sm",
|
6645
6714
|
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
6646
6715
|
};
|
6647
|
-
var Tooltip2 = (0,
|
6716
|
+
var Tooltip2 = (0, import_react96.defineStyleConfig)({ baseStyle: baseStyle12 });
|
6648
6717
|
var tooltip_default = Tooltip2;
|
6649
6718
|
|
6650
6719
|
// src/config/theme/themeConfiguration.ts
|
@@ -6654,7 +6723,7 @@ var config = {
|
|
6654
6723
|
useSystemColorMode: false
|
6655
6724
|
};
|
6656
6725
|
var getTheme = (foundations) => {
|
6657
|
-
return (0,
|
6726
|
+
return (0, import_react97.extendTheme)({
|
6658
6727
|
...foundations,
|
6659
6728
|
components: {
|
6660
6729
|
...components_exports
|
@@ -6671,7 +6740,7 @@ var getTheme = (foundations) => {
|
|
6671
6740
|
config
|
6672
6741
|
});
|
6673
6742
|
};
|
6674
|
-
var theme4 = (0,
|
6743
|
+
var theme4 = (0, import_react97.extendTheme)({
|
6675
6744
|
components: {
|
6676
6745
|
...components_exports
|
6677
6746
|
},
|
@@ -6691,23 +6760,23 @@ var theme4 = (0, import_react96.extendTheme)({
|
|
6691
6760
|
|
6692
6761
|
// src/hooks/useFetcher.ts
|
6693
6762
|
var import_axios2 = __toESM(require("axios"));
|
6694
|
-
var
|
6763
|
+
var import_react100 = require("react");
|
6695
6764
|
|
6696
6765
|
// src/provider/components/provider.tsx
|
6697
6766
|
var import_axios = __toESM(require("axios"));
|
6698
|
-
var
|
6767
|
+
var import_react98 = require("react");
|
6699
6768
|
var import_react_toastify3 = require("react-toastify");
|
6700
6769
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
6701
|
-
var ProviderContext = (0,
|
6770
|
+
var ProviderContext = (0, import_react98.createContext)({
|
6702
6771
|
instance: void 0
|
6703
6772
|
});
|
6704
6773
|
var useInternalUI = () => {
|
6705
|
-
const { instance } = (0,
|
6774
|
+
const { instance } = (0, import_react98.useContext)(ProviderContext);
|
6706
6775
|
return { instance };
|
6707
6776
|
};
|
6708
6777
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
6709
|
-
const instanceRef = (0,
|
6710
|
-
(0,
|
6778
|
+
const instanceRef = (0, import_react98.useRef)(import_axios.default.create(config2));
|
6779
|
+
(0, import_react98.useEffect)(() => {
|
6711
6780
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
6712
6781
|
instanceRef.current.interceptors.request.use(interceptor);
|
6713
6782
|
});
|
@@ -6715,7 +6784,7 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
6715
6784
|
instanceRef.current.interceptors.response.use(interceptor);
|
6716
6785
|
});
|
6717
6786
|
}, [requestInterceptors, responseInterceptors]);
|
6718
|
-
const provider = (0,
|
6787
|
+
const provider = (0, import_react98.useMemo)(() => ({ instance: instanceRef.current }), []);
|
6719
6788
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(ProviderContext.Provider, { value: provider, children: [
|
6720
6789
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_toastify3.ToastContainer, {}),
|
6721
6790
|
children
|
@@ -6725,12 +6794,12 @@ Provider.displayName = "Provider";
|
|
6725
6794
|
var provider_default = Provider;
|
6726
6795
|
|
6727
6796
|
// src/provider/index.ts
|
6728
|
-
var
|
6797
|
+
var import_react99 = require("@chakra-ui/react");
|
6729
6798
|
|
6730
6799
|
// src/hooks/useFetcher.ts
|
6731
6800
|
function useFetcher() {
|
6732
6801
|
const { instance } = useInternalUI();
|
6733
|
-
const axiosInstance = (0,
|
6802
|
+
const axiosInstance = (0, import_react100.useMemo)(() => instance || import_axios2.default, [instance]);
|
6734
6803
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
6735
6804
|
const response = await axiosInstance.request({
|
6736
6805
|
data,
|
@@ -6750,10 +6819,10 @@ function useFetcher() {
|
|
6750
6819
|
}
|
6751
6820
|
|
6752
6821
|
// src/hooks/index.ts
|
6753
|
-
var
|
6822
|
+
var import_react101 = require("@chakra-ui/react");
|
6754
6823
|
|
6755
6824
|
// src/index.ts
|
6756
|
-
var
|
6825
|
+
var import_react102 = require("@chakra-ui/react");
|
6757
6826
|
// Annotate the CommonJS export names for ESM import in node:
|
6758
6827
|
0 && (module.exports = {
|
6759
6828
|
Accordion,
|
@@ -6811,6 +6880,7 @@ var import_react101 = require("@chakra-ui/react");
|
|
6811
6880
|
CheckboxIconProps,
|
6812
6881
|
CheckboxState,
|
6813
6882
|
Chips,
|
6883
|
+
ClearIndicator,
|
6814
6884
|
CloseButton,
|
6815
6885
|
CloseButtonProps,
|
6816
6886
|
Code,
|
@@ -6838,6 +6908,7 @@ var import_react101 = require("@chakra-ui/react");
|
|
6838
6908
|
DrawerHeader,
|
6839
6909
|
DrawerOverlay,
|
6840
6910
|
DrawerProps,
|
6911
|
+
DropdownIndicator,
|
6841
6912
|
EmptyState,
|
6842
6913
|
Fade,
|
6843
6914
|
FadeProps,
|
@@ -6911,6 +6982,8 @@ var import_react101 = require("@chakra-ui/react");
|
|
6911
6982
|
ModalOverlayProps,
|
6912
6983
|
ModalProps,
|
6913
6984
|
MultiDatePickerMonth,
|
6985
|
+
MultiValue,
|
6986
|
+
MultiValueRemove,
|
6914
6987
|
NavItem,
|
6915
6988
|
Navbar,
|
6916
6989
|
NavigationBar,
|
@@ -7064,7 +7137,10 @@ var import_react101 = require("@chakra-ui/react");
|
|
7064
7137
|
forwardRef,
|
7065
7138
|
getSelectAllCheckboxState,
|
7066
7139
|
getTheme,
|
7140
|
+
isCellDisabled,
|
7141
|
+
selectStyles,
|
7067
7142
|
theme,
|
7143
|
+
themeSelect,
|
7068
7144
|
useAccordion,
|
7069
7145
|
useAccordionContext,
|
7070
7146
|
useAccordionItem,
|