@ctlyst.id/internal-ui 5.0.0 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +565 -554
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -45,36 +45,36 @@ __export(src_exports, {
|
|
45
45
|
AlertAction: () => AlertAction,
|
46
46
|
AlertClose: () => AlertClose,
|
47
47
|
AlertDescription: () => AlertDescription,
|
48
|
-
AlertDialog: () =>
|
49
|
-
AlertDialogBody: () =>
|
50
|
-
AlertDialogCloseButton: () =>
|
51
|
-
AlertDialogContent: () =>
|
52
|
-
AlertDialogFooter: () =>
|
53
|
-
AlertDialogHeader: () =>
|
54
|
-
AlertDialogOverlay: () =>
|
55
|
-
AlertDialogProps: () =>
|
48
|
+
AlertDialog: () => import_react56.AlertDialog,
|
49
|
+
AlertDialogBody: () => import_react56.ModalBody,
|
50
|
+
AlertDialogCloseButton: () => import_react56.ModalCloseButton,
|
51
|
+
AlertDialogContent: () => import_react56.AlertDialogContent,
|
52
|
+
AlertDialogFooter: () => import_react56.ModalFooter,
|
53
|
+
AlertDialogHeader: () => import_react56.ModalHeader,
|
54
|
+
AlertDialogOverlay: () => import_react56.ModalOverlay,
|
55
|
+
AlertDialogProps: () => import_react56.AlertDialogProps,
|
56
56
|
AlertIcon: () => AlertIcon,
|
57
57
|
AlertTitle: () => AlertTitle,
|
58
58
|
Anchor: () => Anchor,
|
59
|
-
Avatar: () =>
|
60
|
-
AvatarBadge: () =>
|
61
|
-
AvatarBadgeProps: () =>
|
62
|
-
AvatarGroup: () =>
|
63
|
-
AvatarGroupProps: () =>
|
64
|
-
AvatarProps: () =>
|
59
|
+
Avatar: () => import_react93.Avatar,
|
60
|
+
AvatarBadge: () => import_react93.AvatarBadge,
|
61
|
+
AvatarBadgeProps: () => import_react93.AvatarBadgeProps,
|
62
|
+
AvatarGroup: () => import_react93.AvatarGroup,
|
63
|
+
AvatarGroupProps: () => import_react93.AvatarGroupProps,
|
64
|
+
AvatarProps: () => import_react93.AvatarProps,
|
65
65
|
Badge: () => badge_default,
|
66
|
-
Box: () =>
|
67
|
-
BoxProps: () =>
|
66
|
+
Box: () => import_react53.Box,
|
67
|
+
BoxProps: () => import_react53.BoxProps,
|
68
68
|
BreadCrumb: () => bread_crumb_default,
|
69
69
|
Button: () => button_default,
|
70
70
|
ButtonGroup: () => import_react10.ButtonGroup,
|
71
71
|
ButtonGroupProps: () => import_react10.ButtonGroupProps,
|
72
72
|
CHECKBOX_STATE: () => CHECKBOX_STATE,
|
73
73
|
Card: () => card_default,
|
74
|
-
Center: () =>
|
75
|
-
ChakraProvider: () =>
|
76
|
-
ChakraProviderProps: () =>
|
77
|
-
ChakraTable: () =>
|
74
|
+
Center: () => import_react53.Center,
|
75
|
+
ChakraProvider: () => import_react103.ChakraProvider,
|
76
|
+
ChakraProviderProps: () => import_react103.ChakraProviderProps,
|
77
|
+
ChakraTable: () => import_react82.Table,
|
78
78
|
Checkbox: () => checkbox_default,
|
79
79
|
CheckboxGroup: () => checkbox_group_default,
|
80
80
|
CheckboxGroupContext: () => import_react16.CheckboxGroupContext,
|
@@ -86,63 +86,63 @@ __export(src_exports, {
|
|
86
86
|
ClearIndicator: () => ClearIndicator,
|
87
87
|
CloseButton: () => import_react10.CloseButton,
|
88
88
|
CloseButtonProps: () => import_react10.CloseButtonProps,
|
89
|
-
Code: () =>
|
90
|
-
CodeProps: () =>
|
91
|
-
Collapse: () =>
|
92
|
-
CollapseProps: () =>
|
93
|
-
ColorMode: () =>
|
94
|
-
ColorModeScript: () =>
|
95
|
-
ColorModeScriptProps: () =>
|
96
|
-
Container: () =>
|
97
|
-
ContainerProps: () =>
|
89
|
+
Code: () => import_react85.Code,
|
90
|
+
CodeProps: () => import_react85.CodeProps,
|
91
|
+
Collapse: () => import_react93.Collapse,
|
92
|
+
CollapseProps: () => import_react93.CollapseProps,
|
93
|
+
ColorMode: () => import_react103.ColorMode,
|
94
|
+
ColorModeScript: () => import_react103.ColorModeScript,
|
95
|
+
ColorModeScriptProps: () => import_react103.ColorModeScriptProps,
|
96
|
+
Container: () => import_react53.Container,
|
97
|
+
ContainerProps: () => import_react53.ContainerProps,
|
98
98
|
Counter: () => counter_default,
|
99
99
|
DataTable: () => data_table_default,
|
100
100
|
DatePickerMonth: () => datepicker_month_default,
|
101
101
|
Datepicker: () => datepicker_default,
|
102
102
|
Dialog: () => dialog_default,
|
103
|
-
Divider: () =>
|
104
|
-
DividerProps: () =>
|
105
|
-
Drawer: () =>
|
106
|
-
DrawerBody: () =>
|
107
|
-
DrawerCloseButton: () =>
|
108
|
-
DrawerContent: () =>
|
109
|
-
DrawerContentProps: () =>
|
110
|
-
DrawerFooter: () =>
|
111
|
-
DrawerHeader: () =>
|
112
|
-
DrawerOverlay: () =>
|
113
|
-
DrawerProps: () =>
|
103
|
+
Divider: () => import_react53.Divider,
|
104
|
+
DividerProps: () => import_react53.DividerProps,
|
105
|
+
Drawer: () => import_react56.Drawer,
|
106
|
+
DrawerBody: () => import_react56.ModalBody,
|
107
|
+
DrawerCloseButton: () => import_react56.ModalCloseButton,
|
108
|
+
DrawerContent: () => import_react56.DrawerContent,
|
109
|
+
DrawerContentProps: () => import_react56.DrawerContentProps,
|
110
|
+
DrawerFooter: () => import_react56.ModalFooter,
|
111
|
+
DrawerHeader: () => import_react56.ModalHeader,
|
112
|
+
DrawerOverlay: () => import_react56.ModalOverlay,
|
113
|
+
DrawerProps: () => import_react56.DrawerProps,
|
114
114
|
DropdownIndicator: () => DropdownIndicator,
|
115
115
|
EmptyState: () => empty_state_default,
|
116
116
|
ErrorCode: () => error_code_default,
|
117
|
-
Fade: () =>
|
118
|
-
FadeProps: () =>
|
117
|
+
Fade: () => import_react93.Fade,
|
118
|
+
FadeProps: () => import_react93.FadeProps,
|
119
119
|
Field: () => field_default,
|
120
|
-
Flex: () =>
|
121
|
-
FlexProps: () =>
|
120
|
+
Flex: () => import_react53.Flex,
|
121
|
+
FlexProps: () => import_react53.FlexProps,
|
122
122
|
FormControl: () => import_react25.FormControl,
|
123
123
|
FormControlProps: () => import_react25.FormControlProps,
|
124
124
|
FormErrorMessage: () => import_react25.FormErrorMessage,
|
125
125
|
FormHelperText: () => import_react25.FormHelperText,
|
126
126
|
FormLabel: () => import_react25.FormLabel,
|
127
127
|
FormLabelProps: () => import_react25.FormLabelProps,
|
128
|
-
Grid: () =>
|
129
|
-
GridItem: () =>
|
130
|
-
GridItemProps: () =>
|
131
|
-
GridProps: () =>
|
132
|
-
HStack: () =>
|
128
|
+
Grid: () => import_react53.Grid,
|
129
|
+
GridItem: () => import_react53.GridItem,
|
130
|
+
GridItemProps: () => import_react53.GridItemProps,
|
131
|
+
GridProps: () => import_react53.GridProps,
|
132
|
+
HStack: () => import_react53.HStack,
|
133
133
|
Header: () => Header,
|
134
|
-
Heading: () =>
|
135
|
-
HeadingProps: () =>
|
136
|
-
Hide: () =>
|
137
|
-
HideProps: () =>
|
138
|
-
Icon: () =>
|
134
|
+
Heading: () => import_react85.Heading,
|
135
|
+
HeadingProps: () => import_react85.HeadingProps,
|
136
|
+
Hide: () => import_react93.Hide,
|
137
|
+
HideProps: () => import_react93.HideProps,
|
138
|
+
Icon: () => import_react52.Icon,
|
139
139
|
IconButton: () => import_react10.IconButton,
|
140
140
|
IconButtonProps: () => import_react10.IconButtonProps,
|
141
|
-
IconProps: () =>
|
142
|
-
Image: () =>
|
143
|
-
ImageProps: () =>
|
144
|
-
Img: () =>
|
145
|
-
ImgProps: () =>
|
141
|
+
IconProps: () => import_react52.IconProps,
|
142
|
+
Image: () => import_react52.Image,
|
143
|
+
ImageProps: () => import_react52.ImageProps,
|
144
|
+
Img: () => import_react93.Img,
|
145
|
+
ImgProps: () => import_react93.ImgProps,
|
146
146
|
InputAddonLeft: () => InputAddonLeft,
|
147
147
|
InputAddonRight: () => InputAddonRight,
|
148
148
|
InputElementLeft: () => import_react19.InputLeftElement,
|
@@ -159,32 +159,32 @@ __export(src_exports, {
|
|
159
159
|
InputRightAddonProps: () => import_react25.InputRightAddonProps,
|
160
160
|
InputRightElement: () => import_react25.InputRightElement,
|
161
161
|
InputRightElementProps: () => import_react25.InputRightElementProps,
|
162
|
-
Link: () =>
|
163
|
-
LinkProps: () =>
|
164
|
-
List: () =>
|
165
|
-
ListIcon: () =>
|
166
|
-
ListItem: () =>
|
167
|
-
ListItemProps: () =>
|
168
|
-
ListProps: () =>
|
162
|
+
Link: () => import_react85.Link,
|
163
|
+
LinkProps: () => import_react85.LinkProps,
|
164
|
+
List: () => import_react54.List,
|
165
|
+
ListIcon: () => import_react54.ListIcon,
|
166
|
+
ListItem: () => import_react54.ListItem,
|
167
|
+
ListItemProps: () => import_react54.ListItemProps,
|
168
|
+
ListProps: () => import_react54.ListProps,
|
169
169
|
Loader: () => loader_default,
|
170
170
|
Logo: () => Logo,
|
171
171
|
MainMenu: () => navigation_default,
|
172
|
-
Modal: () =>
|
172
|
+
Modal: () => import_react56.Modal,
|
173
173
|
ModalBackButton: () => modal_back_button_default,
|
174
|
-
ModalBody: () =>
|
175
|
-
ModalBodyProps: () =>
|
176
|
-
ModalCloseButton: () =>
|
177
|
-
ModalContent: () =>
|
178
|
-
ModalContentProps: () =>
|
179
|
-
ModalContextProvider: () =>
|
180
|
-
ModalFocusScope: () =>
|
181
|
-
ModalFooter: () =>
|
182
|
-
ModalFooterProps: () =>
|
183
|
-
ModalHeader: () =>
|
184
|
-
ModalHeaderProps: () =>
|
185
|
-
ModalOverlay: () =>
|
186
|
-
ModalOverlayProps: () =>
|
187
|
-
ModalProps: () =>
|
174
|
+
ModalBody: () => import_react56.ModalBody,
|
175
|
+
ModalBodyProps: () => import_react56.ModalBodyProps,
|
176
|
+
ModalCloseButton: () => import_react56.ModalCloseButton,
|
177
|
+
ModalContent: () => import_react56.ModalContent,
|
178
|
+
ModalContentProps: () => import_react56.ModalContentProps,
|
179
|
+
ModalContextProvider: () => import_react56.ModalContextProvider,
|
180
|
+
ModalFocusScope: () => import_react56.ModalFocusScope,
|
181
|
+
ModalFooter: () => import_react56.ModalFooter,
|
182
|
+
ModalFooterProps: () => import_react56.ModalFooterProps,
|
183
|
+
ModalHeader: () => import_react56.ModalHeader,
|
184
|
+
ModalHeaderProps: () => import_react56.ModalHeaderProps,
|
185
|
+
ModalOverlay: () => import_react56.ModalOverlay,
|
186
|
+
ModalOverlayProps: () => import_react56.ModalOverlayProps,
|
187
|
+
ModalProps: () => import_react56.ModalProps,
|
188
188
|
MultiDatePickerMonth: () => multi_datepicker_month_default,
|
189
189
|
MultiValue: () => MultiValue,
|
190
190
|
MultiValueRemove: () => MultiValueRemove,
|
@@ -192,155 +192,155 @@ __export(src_exports, {
|
|
192
192
|
Navbar: () => Navbar,
|
193
193
|
NavigationBar: () => navigation_bar_default,
|
194
194
|
NoOptionsMessage: () => NoOptionsMessage,
|
195
|
-
OrderedList: () =>
|
195
|
+
OrderedList: () => import_react54.OrderedList,
|
196
196
|
Pagination: () => pagination_default,
|
197
197
|
PaginationDetail: () => pagination_detail_default,
|
198
198
|
PaginationFilter: () => pagination_filter_default,
|
199
|
-
PinInput: () =>
|
200
|
-
PinInputContext: () =>
|
201
|
-
PinInputDescendantsProvider: () =>
|
202
|
-
PinInputField: () =>
|
203
|
-
PinInputFieldProps: () =>
|
204
|
-
PinInputProps: () =>
|
205
|
-
PinInputProvider: () =>
|
206
|
-
Popover: () =>
|
207
|
-
PopoverAnchor: () =>
|
208
|
-
PopoverArrow: () =>
|
209
|
-
PopoverArrowProps: () =>
|
210
|
-
PopoverBody: () =>
|
211
|
-
PopoverBodyProps: () =>
|
212
|
-
PopoverCloseButton: () =>
|
213
|
-
PopoverContent: () =>
|
214
|
-
PopoverContentProps: () =>
|
215
|
-
PopoverFooter: () =>
|
216
|
-
PopoverFooterProps: () =>
|
217
|
-
PopoverHeader: () =>
|
218
|
-
PopoverHeaderProps: () =>
|
219
|
-
PopoverProps: () =>
|
220
|
-
PopoverTrigger: () =>
|
221
|
-
Portal: () =>
|
222
|
-
PortalProps: () =>
|
199
|
+
PinInput: () => import_react65.PinInput,
|
200
|
+
PinInputContext: () => import_react65.PinInputContext,
|
201
|
+
PinInputDescendantsProvider: () => import_react65.PinInputDescendantsProvider,
|
202
|
+
PinInputField: () => import_react65.PinInputField,
|
203
|
+
PinInputFieldProps: () => import_react65.PinInputFieldProps,
|
204
|
+
PinInputProps: () => import_react65.PinInputProps,
|
205
|
+
PinInputProvider: () => import_react65.PinInputProvider,
|
206
|
+
Popover: () => import_react66.Popover,
|
207
|
+
PopoverAnchor: () => import_react66.PopoverAnchor,
|
208
|
+
PopoverArrow: () => import_react66.PopoverArrow,
|
209
|
+
PopoverArrowProps: () => import_react66.PopoverArrowProps,
|
210
|
+
PopoverBody: () => import_react66.PopoverBody,
|
211
|
+
PopoverBodyProps: () => import_react66.PopoverBodyProps,
|
212
|
+
PopoverCloseButton: () => import_react66.PopoverCloseButton,
|
213
|
+
PopoverContent: () => import_react66.PopoverContent,
|
214
|
+
PopoverContentProps: () => import_react66.PopoverContentProps,
|
215
|
+
PopoverFooter: () => import_react66.PopoverFooter,
|
216
|
+
PopoverFooterProps: () => import_react66.PopoverFooterProps,
|
217
|
+
PopoverHeader: () => import_react66.PopoverHeader,
|
218
|
+
PopoverHeaderProps: () => import_react66.PopoverHeaderProps,
|
219
|
+
PopoverProps: () => import_react66.PopoverProps,
|
220
|
+
PopoverTrigger: () => import_react66.PopoverTrigger,
|
221
|
+
Portal: () => import_react66.Portal,
|
222
|
+
PortalProps: () => import_react66.PortalProps,
|
223
223
|
Profile: () => Profile,
|
224
|
-
Progress: () =>
|
225
|
-
ProgressFilledTrackProps: () =>
|
226
|
-
ProgressLabel: () =>
|
227
|
-
ProgressLabelProps: () =>
|
228
|
-
ProgressProps: () =>
|
229
|
-
ProgressTrackProps: () =>
|
224
|
+
Progress: () => import_react67.Progress,
|
225
|
+
ProgressFilledTrackProps: () => import_react67.ProgressFilledTrackProps,
|
226
|
+
ProgressLabel: () => import_react67.ProgressLabel,
|
227
|
+
ProgressLabelProps: () => import_react67.ProgressLabelProps,
|
228
|
+
ProgressProps: () => import_react67.ProgressProps,
|
229
|
+
ProgressTrackProps: () => import_react67.ProgressTrackProps,
|
230
230
|
Provider: () => provider_default,
|
231
231
|
ProviderContext: () => ProviderContext,
|
232
232
|
Radio: () => Radio,
|
233
233
|
RadioGroup: () => RadioGroup,
|
234
|
-
RadioGroupContext: () =>
|
234
|
+
RadioGroupContext: () => import_react70.RadioGroupContext,
|
235
235
|
Rating: () => rating_default,
|
236
236
|
RequiredIndicator: () => import_react25.RequiredIndicator,
|
237
237
|
RequiredIndicatorProps: () => import_react25.RequiredIndicatorProps,
|
238
|
-
ScaleFade: () =>
|
239
|
-
ScaleFadeProps: () =>
|
238
|
+
ScaleFade: () => import_react93.ScaleFade,
|
239
|
+
ScaleFadeProps: () => import_react93.ScaleFadeProps,
|
240
240
|
Select: () => select_default,
|
241
241
|
SelectAsync: () => select_async_default,
|
242
242
|
SelectAsyncCreatable: () => SelectAsyncCreatable,
|
243
243
|
SelectCheckBox: () => select_with_checkbox_default,
|
244
244
|
SelectCreatable: () => SelectCreatable,
|
245
|
-
Show: () =>
|
246
|
-
ShowProps: () =>
|
245
|
+
Show: () => import_react93.Show,
|
246
|
+
ShowProps: () => import_react93.ShowProps,
|
247
247
|
Sidebar: () => Sidebar,
|
248
248
|
SidebarHeader: () => SidebarHeader,
|
249
249
|
SidebarMenu: () => SidebarMenu,
|
250
|
-
SimpleGrid: () =>
|
250
|
+
SimpleGrid: () => import_react53.SimpleGrid,
|
251
251
|
Skeleton: () => import_react5.Skeleton,
|
252
|
-
Slide: () =>
|
253
|
-
SlideFade: () =>
|
254
|
-
SlideFadeProps: () =>
|
255
|
-
SlideProps: () =>
|
256
|
-
Spacer: () =>
|
257
|
-
Stack: () =>
|
258
|
-
StackProps: () =>
|
259
|
-
Step: () =>
|
260
|
-
StepDescription: () =>
|
261
|
-
StepIcon: () =>
|
262
|
-
StepIndicator: () =>
|
263
|
-
StepNumber: () =>
|
264
|
-
StepSeparator: () =>
|
265
|
-
StepStatus: () =>
|
266
|
-
StepTitle: () =>
|
267
|
-
Stepper: () =>
|
252
|
+
Slide: () => import_react93.Slide,
|
253
|
+
SlideFade: () => import_react93.SlideFade,
|
254
|
+
SlideFadeProps: () => import_react93.SlideFadeProps,
|
255
|
+
SlideProps: () => import_react93.SlideProps,
|
256
|
+
Spacer: () => import_react53.Spacer,
|
257
|
+
Stack: () => import_react53.Stack,
|
258
|
+
StackProps: () => import_react53.StackProps,
|
259
|
+
Step: () => import_react93.Step,
|
260
|
+
StepDescription: () => import_react93.StepDescription,
|
261
|
+
StepIcon: () => import_react93.StepIcon,
|
262
|
+
StepIndicator: () => import_react93.StepIndicator,
|
263
|
+
StepNumber: () => import_react93.StepNumber,
|
264
|
+
StepSeparator: () => import_react93.StepSeparator,
|
265
|
+
StepStatus: () => import_react93.StepStatus,
|
266
|
+
StepTitle: () => import_react93.StepTitle,
|
267
|
+
Stepper: () => import_react93.Stepper,
|
268
268
|
Switch: () => switch_default,
|
269
269
|
Tab: () => tab_default,
|
270
|
-
TabIndicator: () =>
|
271
|
-
TabIndicatorProps: () =>
|
272
|
-
TabList: () =>
|
273
|
-
TabListProps: () =>
|
274
|
-
TabPanel: () =>
|
275
|
-
TabPanelProps: () =>
|
276
|
-
TabPanels: () =>
|
277
|
-
TabPanelsProps: () =>
|
278
|
-
TabProps: () =>
|
279
|
-
TableBodyProps: () =>
|
280
|
-
TableCellProps: () =>
|
281
|
-
TableColumnHeaderProps: () =>
|
282
|
-
TableHeadProps: () =>
|
283
|
-
TableProps: () =>
|
284
|
-
TableRowProps: () =>
|
285
|
-
Tabs: () =>
|
286
|
-
TabsDescendantsProvider: () =>
|
287
|
-
TabsProps: () =>
|
288
|
-
TabsProvider: () =>
|
289
|
-
Tbody: () =>
|
290
|
-
Td: () =>
|
291
|
-
Text: () =>
|
292
|
-
TextProps: () =>
|
270
|
+
TabIndicator: () => import_react84.TabIndicator,
|
271
|
+
TabIndicatorProps: () => import_react84.TabIndicatorProps,
|
272
|
+
TabList: () => import_react84.TabList,
|
273
|
+
TabListProps: () => import_react84.TabListProps,
|
274
|
+
TabPanel: () => import_react84.TabPanel,
|
275
|
+
TabPanelProps: () => import_react84.TabPanelProps,
|
276
|
+
TabPanels: () => import_react84.TabPanels,
|
277
|
+
TabPanelsProps: () => import_react84.TabPanelsProps,
|
278
|
+
TabProps: () => import_react84.TabProps,
|
279
|
+
TableBodyProps: () => import_react82.TableBodyProps,
|
280
|
+
TableCellProps: () => import_react82.TableCellProps,
|
281
|
+
TableColumnHeaderProps: () => import_react82.TableColumnHeaderProps,
|
282
|
+
TableHeadProps: () => import_react82.TableHeadProps,
|
283
|
+
TableProps: () => import_react82.TableProps,
|
284
|
+
TableRowProps: () => import_react82.TableRowProps,
|
285
|
+
Tabs: () => import_react84.Tabs,
|
286
|
+
TabsDescendantsProvider: () => import_react84.TabsDescendantsProvider,
|
287
|
+
TabsProps: () => import_react84.TabsProps,
|
288
|
+
TabsProvider: () => import_react84.TabsProvider,
|
289
|
+
Tbody: () => import_react82.Tbody,
|
290
|
+
Td: () => import_react82.Td,
|
291
|
+
Text: () => import_react85.Text,
|
292
|
+
TextProps: () => import_react85.TextProps,
|
293
293
|
TextareaField: () => textarea_default,
|
294
|
-
Th: () =>
|
295
|
-
Thead: () =>
|
294
|
+
Th: () => import_react82.Th,
|
295
|
+
Thead: () => import_react82.Thead,
|
296
296
|
ThemeTypings: () => import_styled_system12.ThemeTypings,
|
297
297
|
Time: () => Time,
|
298
298
|
TimeInput: () => TimeInput2,
|
299
299
|
ToastContainer: () => import_react_toastify2.ToastContainer,
|
300
300
|
Tooltip: () => Tooltip,
|
301
|
-
Tr: () =>
|
302
|
-
UnorderedList: () =>
|
301
|
+
Tr: () => import_react82.Tr,
|
302
|
+
UnorderedList: () => import_react54.UnorderedList,
|
303
303
|
Uploader: () => uploader_default,
|
304
|
-
UseBreakpointOptions: () =>
|
304
|
+
UseBreakpointOptions: () => import_react93.UseBreakpointOptions,
|
305
305
|
UseCheckboxGroupProps: () => import_react16.UseCheckboxGroupProps,
|
306
306
|
UseCheckboxGroupReturn: () => import_react16.UseCheckboxGroupReturn,
|
307
307
|
UseCheckboxProps: () => import_react16.UseCheckboxProps,
|
308
308
|
UseCheckboxReturn: () => import_react16.UseCheckboxReturn,
|
309
|
-
UseDisclosureProps: () =>
|
310
|
-
UseImageProps: () =>
|
311
|
-
UseImageReturn: () =>
|
312
|
-
UseMediaQueryOptions: () =>
|
313
|
-
UseModalProps: () =>
|
314
|
-
UseModalReturn: () =>
|
315
|
-
UsePinInputFieldProps: () =>
|
316
|
-
UsePinInputProps: () =>
|
317
|
-
UsePinInputReturn: () =>
|
318
|
-
UseQueryProps: () =>
|
319
|
-
UseRadioGroupReturn: () =>
|
320
|
-
UseRadioProps: () =>
|
321
|
-
UseRadioReturn: () =>
|
322
|
-
UseTabListProps: () =>
|
323
|
-
UseTabListReturn: () =>
|
324
|
-
UseTabOptions: () =>
|
325
|
-
UseTabPanelsProps: () =>
|
326
|
-
UseTabProps: () =>
|
327
|
-
UseTabsProps: () =>
|
328
|
-
UseTabsReturn: () =>
|
329
|
-
VStack: () =>
|
309
|
+
UseDisclosureProps: () => import_react105.UseDisclosureProps,
|
310
|
+
UseImageProps: () => import_react93.UseImageProps,
|
311
|
+
UseImageReturn: () => import_react93.UseImageReturn,
|
312
|
+
UseMediaQueryOptions: () => import_react93.UseMediaQueryOptions,
|
313
|
+
UseModalProps: () => import_react56.UseModalProps,
|
314
|
+
UseModalReturn: () => import_react56.UseModalReturn,
|
315
|
+
UsePinInputFieldProps: () => import_react65.UsePinInputFieldProps,
|
316
|
+
UsePinInputProps: () => import_react65.UsePinInputProps,
|
317
|
+
UsePinInputReturn: () => import_react65.UsePinInputReturn,
|
318
|
+
UseQueryProps: () => import_react93.UseQueryProps,
|
319
|
+
UseRadioGroupReturn: () => import_react70.UseRadioGroupReturn,
|
320
|
+
UseRadioProps: () => import_react70.UseRadioProps,
|
321
|
+
UseRadioReturn: () => import_react70.UseRadioReturn,
|
322
|
+
UseTabListProps: () => import_react84.UseTabListProps,
|
323
|
+
UseTabListReturn: () => import_react84.UseTabListReturn,
|
324
|
+
UseTabOptions: () => import_react84.UseTabOptions,
|
325
|
+
UseTabPanelsProps: () => import_react84.UseTabPanelsProps,
|
326
|
+
UseTabProps: () => import_react84.UseTabProps,
|
327
|
+
UseTabsProps: () => import_react84.UseTabsProps,
|
328
|
+
UseTabsReturn: () => import_react84.UseTabsReturn,
|
329
|
+
VStack: () => import_react53.VStack,
|
330
330
|
Version: () => Version,
|
331
|
-
VisuallyHidden: () =>
|
332
|
-
VisuallyHiddenInput: () =>
|
331
|
+
VisuallyHidden: () => import_react93.VisuallyHidden,
|
332
|
+
VisuallyHiddenInput: () => import_react93.VisuallyHiddenInput,
|
333
333
|
VoilaLogo: () => VoilaLogo,
|
334
|
-
Wrap: () =>
|
335
|
-
WrapItem: () =>
|
336
|
-
WrapItemProps: () =>
|
337
|
-
WrapProps: () =>
|
334
|
+
Wrap: () => import_react53.Wrap,
|
335
|
+
WrapItem: () => import_react53.WrapItem,
|
336
|
+
WrapItemProps: () => import_react53.WrapItemProps,
|
337
|
+
WrapProps: () => import_react53.WrapProps,
|
338
338
|
XMSLogo: () => XMSLogo,
|
339
339
|
createExtendTheme: () => createExtendTheme,
|
340
340
|
defaultOnHandleRejections: () => defaultOnHandleRejections,
|
341
341
|
dimensionValidator: () => dimensionValidator,
|
342
|
-
extendTheme: () =>
|
343
|
-
forwardRef: () =>
|
342
|
+
extendTheme: () => import_react106.extendTheme,
|
343
|
+
forwardRef: () => import_react106.forwardRef,
|
344
344
|
getSelectAllCheckboxState: () => getSelectAllCheckboxState,
|
345
345
|
getTheme: () => getTheme,
|
346
346
|
id: () => id,
|
@@ -356,52 +356,53 @@ __export(src_exports, {
|
|
356
356
|
useAccordionItemState: () => import_react3.useAccordionItemState,
|
357
357
|
useAccordionStyles: () => import_react3.useAccordionStyles,
|
358
358
|
useAlertStyles: () => useAlertStyles,
|
359
|
-
useBoolean: () =>
|
360
|
-
useBreakpoint: () =>
|
359
|
+
useBoolean: () => import_react105.useBoolean,
|
360
|
+
useBreakpoint: () => import_react93.useBreakpoint,
|
361
361
|
useCheckbox: () => import_react16.useCheckbox,
|
362
362
|
useCheckboxGroup: () => import_react16.useCheckboxGroup,
|
363
|
-
useClipboard: () =>
|
364
|
-
useColorMode: () =>
|
365
|
-
useColorModePreference: () =>
|
366
|
-
useColorModeValue: () =>
|
367
|
-
useConst: () =>
|
368
|
-
useControllableProp: () =>
|
369
|
-
useControllableState: () =>
|
363
|
+
useClipboard: () => import_react105.useClipboard,
|
364
|
+
useColorMode: () => import_react105.useColorMode,
|
365
|
+
useColorModePreference: () => import_react93.useColorModePreference,
|
366
|
+
useColorModeValue: () => import_react105.useColorModeValue,
|
367
|
+
useConst: () => import_react105.useConst,
|
368
|
+
useControllableProp: () => import_react105.useControllableProp,
|
369
|
+
useControllableState: () => import_react105.useControllableState,
|
370
370
|
useDataTable: () => useDataTable,
|
371
|
-
useDimensions: () =>
|
372
|
-
useDisclosure: () =>
|
373
|
-
useDrawerContext: () =>
|
371
|
+
useDimensions: () => import_react105.useDimensions,
|
372
|
+
useDisclosure: () => import_react105.useDisclosure,
|
373
|
+
useDrawerContext: () => import_react56.useDrawerContext,
|
374
374
|
useFetcher: () => useFetcher,
|
375
|
-
useImage: () =>
|
375
|
+
useImage: () => import_react93.useImage,
|
376
376
|
useInternalUI: () => useInternalUI,
|
377
|
-
useMergeRefs: () =>
|
378
|
-
useModal: () =>
|
379
|
-
useModalContext: () =>
|
380
|
-
useModalStyles: () =>
|
381
|
-
useOutsideClick: () =>
|
382
|
-
usePinInput: () =>
|
383
|
-
usePinInputContext: () =>
|
384
|
-
usePinInputField: () =>
|
385
|
-
useProgressStyles: () =>
|
386
|
-
useQuery: () =>
|
387
|
-
useRadio: () =>
|
388
|
-
useRadioGroup: () =>
|
389
|
-
useRadioGroupContext: () =>
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
377
|
+
useMergeRefs: () => import_react105.useMergeRefs,
|
378
|
+
useModal: () => import_react56.useModal,
|
379
|
+
useModalContext: () => import_react56.useModalContext,
|
380
|
+
useModalStyles: () => import_react56.useModalStyles,
|
381
|
+
useOutsideClick: () => import_react105.useOutsideClick,
|
382
|
+
usePinInput: () => import_react65.usePinInput,
|
383
|
+
usePinInputContext: () => import_react65.usePinInputContext,
|
384
|
+
usePinInputField: () => import_react65.usePinInputField,
|
385
|
+
useProgressStyles: () => import_react67.useProgressStyles,
|
386
|
+
useQuery: () => import_react93.useQuery,
|
387
|
+
useRadio: () => import_react70.useRadio,
|
388
|
+
useRadioGroup: () => import_react70.useRadioGroup,
|
389
|
+
useRadioGroupContext: () => import_react70.useRadioGroupContext,
|
390
|
+
useSelectTable: () => useSelectTable,
|
391
|
+
useSteps: () => import_react93.useSteps,
|
392
|
+
useTab: () => import_react84.useTab,
|
393
|
+
useTabIndicator: () => import_react84.useTabIndicator,
|
394
|
+
useTabList: () => import_react84.useTabList,
|
395
|
+
useTabPanel: () => import_react84.useTabPanel,
|
396
|
+
useTabPanels: () => import_react84.useTabPanels,
|
397
|
+
useTabs: () => import_react84.useTabs,
|
398
|
+
useTabsContext: () => import_react84.useTabsContext,
|
399
|
+
useTabsDescendant: () => import_react84.useTabsDescendant,
|
400
|
+
useTabsDescendants: () => import_react84.useTabsDescendants,
|
401
|
+
useTabsDescendantsContext: () => import_react84.useTabsDescendantsContext,
|
402
|
+
useTabsStyles: () => import_react84.useTabsStyles,
|
403
|
+
useTheme: () => import_react105.useTheme,
|
403
404
|
useToast: () => useToast,
|
404
|
-
useToken: () =>
|
405
|
+
useToken: () => import_react105.useToken
|
405
406
|
});
|
406
407
|
module.exports = __toCommonJS(src_exports);
|
407
408
|
|
@@ -1271,10 +1272,10 @@ var import_react30 = require("@emotion/react");
|
|
1271
1272
|
var import_react_table = require("@tanstack/react-table");
|
1272
1273
|
var React5 = __toESM(require("react"));
|
1273
1274
|
|
1274
|
-
// src/hooks/
|
1275
|
+
// src/hooks/use-drag-threshold/use-drag-or-click.ts
|
1275
1276
|
var import_react28 = require("react");
|
1276
1277
|
|
1277
|
-
// src/
|
1278
|
+
// src/hooks/use-drag-threshold/drag-threshold.ts
|
1278
1279
|
var DragThreshold = class {
|
1279
1280
|
constructor() {
|
1280
1281
|
__publicField(this, "isDrag");
|
@@ -1313,7 +1314,7 @@ var DragThreshold = class {
|
|
1313
1314
|
}
|
1314
1315
|
};
|
1315
1316
|
|
1316
|
-
// src/hooks/
|
1317
|
+
// src/hooks/use-drag-threshold/use-drag-or-click.ts
|
1317
1318
|
var useDragOrClick = () => {
|
1318
1319
|
const clickOrDragged = (0, import_react28.useRef)(new DragThreshold());
|
1319
1320
|
const getDragOrClickProps = ({
|
@@ -1500,7 +1501,6 @@ var useDataTable = ({
|
|
1500
1501
|
const { getSelectedRowModel, toggleAllRowsSelected } = table;
|
1501
1502
|
const { flatRows } = getSelectedRowModel();
|
1502
1503
|
React5.useEffect(() => {
|
1503
|
-
console.log("changed");
|
1504
1504
|
const rowData = flatRows.map((row) => row.original);
|
1505
1505
|
if (onSelectedRow) {
|
1506
1506
|
onSelectedRow(rowData);
|
@@ -1751,11 +1751,21 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1751
1751
|
});
|
1752
1752
|
var data_table_default = DataTable;
|
1753
1753
|
|
1754
|
+
// src/components/data-table/hook/use-select-table.ts
|
1755
|
+
var import_react31 = __toESM(require("react"));
|
1756
|
+
var useSelectTable = (intialRowSelection) => {
|
1757
|
+
const [rowSelection, onRowSelectionChange] = import_react31.default.useState(intialRowSelection != null ? intialRowSelection : {});
|
1758
|
+
return {
|
1759
|
+
rowSelection,
|
1760
|
+
onRowSelectionChange
|
1761
|
+
};
|
1762
|
+
};
|
1763
|
+
|
1754
1764
|
// src/components/datepicker/components/datepicker.tsx
|
1755
|
-
var
|
1765
|
+
var import_react35 = require("@chakra-ui/react");
|
1756
1766
|
var import_shared_utils8 = require("@chakra-ui/shared-utils");
|
1757
1767
|
var import_internal_icon6 = require("@ctlyst.id/internal-icon");
|
1758
|
-
var
|
1768
|
+
var import_react36 = require("@floating-ui/react");
|
1759
1769
|
var import_react_datepicker = __toESM(require("react-datepicker"));
|
1760
1770
|
|
1761
1771
|
// ../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs
|
@@ -2293,12 +2303,12 @@ id.localize.month = buildLocalizeFn2({
|
|
2293
2303
|
|
2294
2304
|
// src/components/datepicker/components/styles.tsx
|
2295
2305
|
var import_system6 = require("@chakra-ui/system");
|
2296
|
-
var
|
2306
|
+
var import_react32 = require("@emotion/react");
|
2297
2307
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
2298
2308
|
var Styles = ({ showHeader }) => {
|
2299
2309
|
const { colorMode } = (0, import_system6.useColorMode)();
|
2300
2310
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
2301
|
-
|
2311
|
+
import_react32.Global,
|
2302
2312
|
{
|
2303
2313
|
styles: `
|
2304
2314
|
@charset "UTF-8";
|
@@ -3133,21 +3143,21 @@ var Styles = ({ showHeader }) => {
|
|
3133
3143
|
var styles_default = Styles;
|
3134
3144
|
|
3135
3145
|
// src/components/datepicker/components/time-input.tsx
|
3136
|
-
var
|
3137
|
-
var
|
3146
|
+
var import_react33 = require("@chakra-ui/react");
|
3147
|
+
var import_react34 = __toESM(require("react"));
|
3138
3148
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
3139
3149
|
var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
3140
|
-
const [time, setTime] =
|
3150
|
+
const [time, setTime] = import_react34.default.useState(value || "00:00");
|
3141
3151
|
const handleChange = (e) => {
|
3142
3152
|
var _a, _b;
|
3143
3153
|
setTime(((_a = e.target) == null ? void 0 : _a.value) || "00:00");
|
3144
3154
|
if (onChange) onChange(((_b = e.target) == null ? void 0 : _b.value) || "00:00");
|
3145
3155
|
};
|
3146
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
3147
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
3148
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
3156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react33.Flex, { flexDir: "column", p: 4, pt: 0, children: [
|
3157
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react33.Text, { mb: 2, children: label }),
|
3158
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react33.InputGroup, { alignItems: "center", borderColor: "neutral.400", children: [
|
3149
3159
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
3150
|
-
|
3160
|
+
import_react33.Input,
|
3151
3161
|
{
|
3152
3162
|
onChange: handleChange,
|
3153
3163
|
type: "time",
|
@@ -3162,7 +3172,7 @@ var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
|
3162
3172
|
}
|
3163
3173
|
}
|
3164
3174
|
),
|
3165
|
-
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
3175
|
+
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react33.InputRightAddon, { children: rightAddon })
|
3166
3176
|
] })
|
3167
3177
|
] });
|
3168
3178
|
};
|
@@ -3218,7 +3228,7 @@ var Datepicker = ({
|
|
3218
3228
|
},
|
3219
3229
|
selected,
|
3220
3230
|
popperModifiers: [
|
3221
|
-
(0,
|
3231
|
+
(0, import_react36.offset)(4),
|
3222
3232
|
{
|
3223
3233
|
name: "placement",
|
3224
3234
|
fn: (state) => {
|
@@ -3241,7 +3251,7 @@ var Datepicker = ({
|
|
3241
3251
|
addOnRight: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react20.InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
|
3242
3252
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_internal_icon6.Calendar, { size: 4, color: "neutral.400" }),
|
3243
3253
|
value && !props.disabled && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
3244
|
-
|
3254
|
+
import_react35.IconButton,
|
3245
3255
|
{
|
3246
3256
|
"data-test-id": "H0rseVCzGIaqoLho-EPbu",
|
3247
3257
|
display: "flex",
|
@@ -3275,9 +3285,9 @@ var Datepicker = ({
|
|
3275
3285
|
if (props.inline) {
|
3276
3286
|
return component;
|
3277
3287
|
}
|
3278
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
3288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react35.FormControl, { "data-test-id": "CT_Component_datepicker_wrapper", isInvalid: isError, children: [
|
3279
3289
|
component,
|
3280
|
-
!isError ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
3290
|
+
!isError ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react35.FormHelperText, { fontSize: "text.xs", mt: 1, children: helperText }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react35.FormErrorMessage, { fontSize: "text.xs", mt: 1, children: error })
|
3281
3291
|
] });
|
3282
3292
|
};
|
3283
3293
|
Datepicker.defaultProps = {
|
@@ -3295,18 +3305,18 @@ Datepicker.defaultProps = {
|
|
3295
3305
|
var datepicker_default = Datepicker;
|
3296
3306
|
|
3297
3307
|
// src/components/datepicker/components/datepicker-month/datepicker-month.tsx
|
3298
|
-
var
|
3299
|
-
var
|
3300
|
-
var
|
3308
|
+
var import_react37 = require("@chakra-ui/react");
|
3309
|
+
var import_react38 = require("@emotion/react");
|
3310
|
+
var import_react39 = __toESM(require("react"));
|
3301
3311
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
3302
3312
|
var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
3303
|
-
const [date, setDate] =
|
3313
|
+
const [date, setDate] = import_react39.default.useState(null);
|
3304
3314
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
3305
|
-
|
3315
|
+
import_react37.Box,
|
3306
3316
|
{
|
3307
3317
|
fontSize: "12px",
|
3308
3318
|
lineHeight: "18px",
|
3309
|
-
css:
|
3319
|
+
css: import_react38.css`
|
3310
3320
|
input[type='date']::-webkit-inner-spin-button,
|
3311
3321
|
input[type='date']::-webkit-calendar-picker-indicator {
|
3312
3322
|
display: none;
|
@@ -3317,7 +3327,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
3317
3327
|
}
|
3318
3328
|
`,
|
3319
3329
|
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
3320
|
-
|
3330
|
+
import_react37.Input,
|
3321
3331
|
{
|
3322
3332
|
"data-test-id": props["data-test-id"],
|
3323
3333
|
type: "date",
|
@@ -3330,7 +3340,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
3330
3340
|
min,
|
3331
3341
|
max,
|
3332
3342
|
required: true,
|
3333
|
-
css:
|
3343
|
+
css: import_react38.css`
|
3334
3344
|
border: 1px solid transparent;
|
3335
3345
|
|
3336
3346
|
&:focus,
|
@@ -3354,11 +3364,11 @@ DatePickerMonth.defaultProps = {
|
|
3354
3364
|
var datepicker_month_default = DatePickerMonth;
|
3355
3365
|
|
3356
3366
|
// src/components/datepicker/components/datepicker-month/multi-datepicker-month.tsx
|
3357
|
-
var
|
3367
|
+
var import_react40 = require("@chakra-ui/react");
|
3358
3368
|
var import_styled = __toESM(require("@emotion/styled"));
|
3359
|
-
var
|
3369
|
+
var import_react41 = __toESM(require("react"));
|
3360
3370
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
3361
|
-
var MultiDateWrapper = (0, import_styled.default)(
|
3371
|
+
var MultiDateWrapper = (0, import_styled.default)(import_react40.Box)`
|
3362
3372
|
display: flex;
|
3363
3373
|
align-items: center;
|
3364
3374
|
width: fit-content;
|
@@ -3373,7 +3383,7 @@ var MultiDatePickerMonth = ({
|
|
3373
3383
|
min = "2020-01-01",
|
3374
3384
|
max = "2020-12-31"
|
3375
3385
|
}) => {
|
3376
|
-
const [date, setDate] =
|
3386
|
+
const [date, setDate] = import_react41.default.useState([null, null]);
|
3377
3387
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(MultiDateWrapper, { isError, children: [
|
3378
3388
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
3379
3389
|
datepicker_month_default,
|
@@ -3387,7 +3397,7 @@ var MultiDatePickerMonth = ({
|
|
3387
3397
|
max
|
3388
3398
|
}
|
3389
3399
|
),
|
3390
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
3400
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react40.Box, { children: "-" }),
|
3391
3401
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
3392
3402
|
datepicker_month_default,
|
3393
3403
|
{
|
@@ -3410,7 +3420,7 @@ MultiDatePickerMonth.defaultProps = {
|
|
3410
3420
|
var multi_datepicker_month_default = MultiDatePickerMonth;
|
3411
3421
|
|
3412
3422
|
// src/components/dialog/components/dialog.tsx
|
3413
|
-
var
|
3423
|
+
var import_react42 = require("@chakra-ui/react");
|
3414
3424
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
3415
3425
|
var Dialog = ({
|
3416
3426
|
title,
|
@@ -3421,12 +3431,12 @@ var Dialog = ({
|
|
3421
3431
|
isOverlayClickable,
|
3422
3432
|
...props
|
3423
3433
|
}) => {
|
3424
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
3425
|
-
isModalOverlay && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
3426
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
3427
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
3428
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
3429
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
3434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react42.Modal, { ...props, children: [
|
3435
|
+
isModalOverlay && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react42.ModalOverlay, { pointerEvents: isOverlayClickable ? "auto" : "none" }),
|
3436
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react42.ModalContent, { bgColor: "neutral.50", fontFamily: "Poppins", width, minW: "400px", children: [
|
3437
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react42.ModalHeader, { bgColor: "neutral.200", py: 2, px: 4, borderTopRadius: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react42.Text, { textStyle: "text.lg", fontWeight: "normal", children: title }) }),
|
3438
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react42.ModalBody, { p: 4, textStyle: "text.md", children: content }),
|
3439
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react42.ModalFooter, { bgColor: "neutral.200", p: 4, borderBottomRadius: "sm", children: footer })
|
3430
3440
|
] })
|
3431
3441
|
] });
|
3432
3442
|
};
|
@@ -3441,7 +3451,7 @@ var dialog_default = Dialog;
|
|
3441
3451
|
var Icon2 = __toESM(require("@ctlyst.id/internal-icon"));
|
3442
3452
|
|
3443
3453
|
// src/components/empty-state/components/layout.tsx
|
3444
|
-
var
|
3454
|
+
var import_react43 = require("@chakra-ui/react");
|
3445
3455
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
3446
3456
|
var EmptyState = (props) => {
|
3447
3457
|
const { icon, title, description, buttonText, onClick } = props;
|
@@ -3450,13 +3460,13 @@ var EmptyState = (props) => {
|
|
3450
3460
|
onClick();
|
3451
3461
|
}
|
3452
3462
|
};
|
3453
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
3463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react43.Flex, { align: "center", justify: "center", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react43.VStack, { textAlign: "center", children: [
|
3454
3464
|
icon,
|
3455
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
3456
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
3457
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
3465
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react43.VStack, { spacing: 2, textAlign: "center", mt: 3, children: [
|
3466
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react43.Text, { textStyle: "text.lg", fontWeight: "bold", children: title }),
|
3467
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react43.Text, { textStyle: "text.md", color: "black.medium", whiteSpace: "pre-wrap", children: description })
|
3458
3468
|
] }),
|
3459
|
-
buttonText && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
3469
|
+
buttonText && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react43.Box, { mt: 3, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react43.Button, { size: "lg", "data-test-id": "CT_component-action-button", onClick: handleClick, children: buttonText }) })
|
3460
3470
|
] }) });
|
3461
3471
|
};
|
3462
3472
|
var layout_default = EmptyState;
|
@@ -3533,28 +3543,28 @@ EmptyState2.NotAuthorize = EmptyStateNotAuthorize;
|
|
3533
3543
|
var empty_state_default = EmptyState2;
|
3534
3544
|
|
3535
3545
|
// src/components/header/components/header.tsx
|
3536
|
-
var
|
3546
|
+
var import_react50 = require("@chakra-ui/react");
|
3537
3547
|
|
3538
3548
|
// src/components/header/components/logo.tsx
|
3539
|
-
var
|
3549
|
+
var import_react44 = require("@chakra-ui/react");
|
3540
3550
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
3541
3551
|
var Logo = ({ url, imageUrl, height }) => {
|
3542
3552
|
if (url)
|
3543
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
3544
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
3553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react44.Box, { as: "a", href: url, cursor: "pointer", target: "_self", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react44.Image, { w: "initial", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl, objectFit: "contain" }) });
|
3554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react44.Image, { w: "initial", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl, objectFit: "contain" });
|
3545
3555
|
};
|
3546
3556
|
var XMSLogo = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
3547
|
-
|
3557
|
+
import_react44.Image,
|
3548
3558
|
{
|
3549
3559
|
height: 8,
|
3550
|
-
src: (0,
|
3560
|
+
src: (0, import_react44.useColorModeValue)("https://assets.voila.id/xms/logo-xms.jpg", "https://assets.voila.id/xms/logo-xms-dark.png")
|
3551
3561
|
}
|
3552
3562
|
);
|
3553
3563
|
var VoilaLogo = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
3554
|
-
|
3564
|
+
import_react44.Image,
|
3555
3565
|
{
|
3556
3566
|
src: "https://assets.voila.id/xms/logo-voila-black.png?v=1",
|
3557
|
-
filter: (0,
|
3567
|
+
filter: (0, import_react44.useColorModeValue)("none", "invert(1)"),
|
3558
3568
|
maxW: 24
|
3559
3569
|
}
|
3560
3570
|
);
|
@@ -3564,16 +3574,16 @@ Logo.defaultProps = {
|
|
3564
3574
|
};
|
3565
3575
|
|
3566
3576
|
// src/components/header/components/profile.tsx
|
3567
|
-
var
|
3577
|
+
var import_react47 = require("@chakra-ui/react");
|
3568
3578
|
var import_fi2 = require("react-icons/fi");
|
3569
3579
|
|
3570
3580
|
// src/components/nav-item/components/nav-item.tsx
|
3571
|
-
var
|
3581
|
+
var import_react45 = require("@chakra-ui/react");
|
3572
3582
|
var import_shared_utils9 = require("@chakra-ui/shared-utils");
|
3573
3583
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
3574
3584
|
var NavItem = ({ children, isActive, isChild, isDisabled, ...props }) => {
|
3575
3585
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
3576
|
-
|
3586
|
+
import_react45.Link,
|
3577
3587
|
{
|
3578
3588
|
"data-test-id": props["data-test-id"],
|
3579
3589
|
opacity: isDisabled ? "0.3" : "initial",
|
@@ -3613,7 +3623,7 @@ NavItem.defaultProps = {
|
|
3613
3623
|
};
|
3614
3624
|
|
3615
3625
|
// src/components/tooltip/components/tooltip.tsx
|
3616
|
-
var
|
3626
|
+
var import_react46 = require("@chakra-ui/react");
|
3617
3627
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
3618
3628
|
var Tooltip = (props) => {
|
3619
3629
|
const {
|
@@ -3626,7 +3636,7 @@ var Tooltip = (props) => {
|
|
3626
3636
|
fontWeight = "400"
|
3627
3637
|
} = props;
|
3628
3638
|
const content = ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
3629
|
-
|
3639
|
+
import_react46.PopoverContent,
|
3630
3640
|
{
|
3631
3641
|
"data-test-id": "",
|
3632
3642
|
border: "none",
|
@@ -3640,15 +3650,15 @@ var Tooltip = (props) => {
|
|
3640
3650
|
onClose();
|
3641
3651
|
},
|
3642
3652
|
children: [
|
3643
|
-
props.hasArrow && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
3644
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
3653
|
+
props.hasArrow && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react46.PopoverArrow, { color, bg, shadow: "none" }),
|
3654
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react46.PopoverBody, { color, ...props, fontWeight, children: props.label })
|
3645
3655
|
]
|
3646
3656
|
}
|
3647
3657
|
);
|
3648
|
-
return props.isInteractive === true ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
3649
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
3650
|
-
props.portal ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
3651
|
-
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
3658
|
+
return props.isInteractive === true ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react46.Popover, { trigger: "hover", placement: props.placement, ...props.popoverProps, children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
3659
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react46.PopoverTrigger, { children }),
|
3660
|
+
props.portal ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react46.Portal, { children: content({ onClose }) }) : content({ onClose })
|
3661
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react46.Tooltip, { ...props, children });
|
3652
3662
|
};
|
3653
3663
|
|
3654
3664
|
// src/components/header/components/profile.tsx
|
@@ -3664,10 +3674,10 @@ var Profile = ({
|
|
3664
3674
|
...props
|
3665
3675
|
}) => {
|
3666
3676
|
var _a, _b;
|
3667
|
-
const { isOpen, onToggle, onClose } = (0,
|
3668
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
3677
|
+
const { isOpen, onToggle, onClose } = (0, import_react47.useDisclosure)();
|
3678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react47.Popover, { placement: "bottom-end", isOpen, onClose, children: [
|
3669
3679
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3670
|
-
|
3680
|
+
import_react47.Box,
|
3671
3681
|
{
|
3672
3682
|
"data-test-id": "CTA_Navbar_Profile_wrapper",
|
3673
3683
|
as: "button",
|
@@ -3683,14 +3693,14 @@ var Profile = ({
|
|
3683
3693
|
onClick: onToggle,
|
3684
3694
|
color,
|
3685
3695
|
...props,
|
3686
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
3687
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
3688
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3689
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
3696
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react47.HStack, { children: [
|
3697
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react47.VStack, { alignItems: "flex-end", spacing: "0", ml: "2", color, children: [
|
3698
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react47.Text, { textStyle: "text.xs", mb: "1", children: data == null ? void 0 : data.email }),
|
3699
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react47.Flex, { alignItems: "center", children: [
|
3690
3700
|
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
3691
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3701
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react47.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.userRole) || "user" }),
|
3692
3702
|
!!((_a = data.office) == null ? void 0 : _a.length) && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3693
|
-
|
3703
|
+
import_react47.Box,
|
3694
3704
|
{
|
3695
3705
|
className: "catalyst_header-profile-divider",
|
3696
3706
|
h: "3",
|
@@ -3700,17 +3710,17 @@ var Profile = ({
|
|
3700
3710
|
}
|
3701
3711
|
)
|
3702
3712
|
] }),
|
3703
|
-
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
3704
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3713
|
+
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react47.Flex, { align: "center", justify: "center", children: [
|
3714
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react47.Text, { textStyle: "text.xs", children: data.office[0] }),
|
3705
3715
|
data.office.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3706
3716
|
Tooltip,
|
3707
3717
|
{
|
3708
3718
|
isInteractive: true,
|
3709
3719
|
hasArrow: true,
|
3710
3720
|
p: "2",
|
3711
|
-
label: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
3712
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3713
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3721
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react47.Box, { children: [
|
3722
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react47.Text, { children: "Akses Office:" }),
|
3723
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react47.Text, { children: data.office.sort().join(", ") })
|
3714
3724
|
] }),
|
3715
3725
|
textAlign: "left",
|
3716
3726
|
placement: "bottom-end",
|
@@ -3721,7 +3731,7 @@ var Profile = ({
|
|
3721
3731
|
},
|
3722
3732
|
width: 300,
|
3723
3733
|
...officeContainer,
|
3724
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3734
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react47.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
3725
3735
|
badge_default,
|
3726
3736
|
{
|
3727
3737
|
rounded: "full",
|
@@ -3738,18 +3748,18 @@ var Profile = ({
|
|
3738
3748
|
) })
|
3739
3749
|
}
|
3740
3750
|
)
|
3741
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3751
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react47.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.office) || "office" })
|
3742
3752
|
] })
|
3743
3753
|
] }),
|
3744
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3754
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react47.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react47.Box, { border: "2px solid", borderColor: "transparent", className: "catalyst-header-avatar", rounded: "full", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react47.Avatar, { size: "sm", bg: brandColor, color: "white", name: (_b = data == null ? void 0 : data.name) != null ? _b : data == null ? void 0 : data.email }) }) })
|
3745
3755
|
] })
|
3746
3756
|
}
|
3747
3757
|
),
|
3748
|
-
children || /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
3749
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3750
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3758
|
+
children || /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react47.PopoverContent, { bg: "white", maxW: 200, children: [
|
3759
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react47.PopoverArrow, { bg: "white" }),
|
3760
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react47.PopoverBody, { py: "1", px: "0", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(NavItem, { "data-test-id": "CTA_Navbar_logout-button", onClick: onLogout, rounded: "none", px: "4", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react47.Box, { display: "flex", alignItems: "center", children: [
|
3751
3761
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_fi2.FiPower, {}),
|
3752
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3762
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react47.Text, { ml: "2", children: "Logout" })
|
3753
3763
|
] }) }) })
|
3754
3764
|
] })
|
3755
3765
|
] });
|
@@ -3762,17 +3772,17 @@ Profile.defaultProps = {
|
|
3762
3772
|
};
|
3763
3773
|
|
3764
3774
|
// src/components/header/components/switch-mode.tsx
|
3765
|
-
var
|
3775
|
+
var import_react48 = require("@chakra-ui/react");
|
3766
3776
|
var import_fi3 = require("react-icons/fi");
|
3767
3777
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
3768
3778
|
var SwitchMode = () => {
|
3769
|
-
const { colorMode, toggleColorMode } = (0,
|
3770
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
3779
|
+
const { colorMode, toggleColorMode } = (0, import_react48.useColorMode)();
|
3780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react48.Box, { "data-test-id": "rhYuTDCiWkFqr96upiEEh", mx: 5, onClick: toggleColorMode, cursor: "pointer", children: colorMode === "light" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_fi3.FiMoon, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_fi3.FiSun, { size: 20 }) });
|
3771
3781
|
};
|
3772
3782
|
var switch_mode_default = SwitchMode;
|
3773
3783
|
|
3774
3784
|
// src/components/header/components/version.tsx
|
3775
|
-
var
|
3785
|
+
var import_react49 = require("@chakra-ui/react");
|
3776
3786
|
|
3777
3787
|
// src/components/header/utils/formatter.ts
|
3778
3788
|
function environmentName(env) {
|
@@ -3810,7 +3820,7 @@ var Version = ({
|
|
3810
3820
|
}
|
3811
3821
|
) : version,
|
3812
3822
|
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
3813
|
-
|
3823
|
+
import_react49.Box,
|
3814
3824
|
{
|
3815
3825
|
background: "primary.50",
|
3816
3826
|
color: "primary.500",
|
@@ -3850,8 +3860,8 @@ var Header = ({
|
|
3850
3860
|
bg = "white",
|
3851
3861
|
versionStyle,
|
3852
3862
|
...props
|
3853
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
3854
|
-
|
3863
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react50.Flex, { minH: 15, bg, shadow: "raised", px: 6, py: 3, alignItems: "center", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
3864
|
+
import_react50.Flex,
|
3855
3865
|
{
|
3856
3866
|
h: "auto",
|
3857
3867
|
w: "full",
|
@@ -3859,11 +3869,11 @@ var Header = ({
|
|
3859
3869
|
justifyContent: !mainLogo ? "flex-end" : "space-between",
|
3860
3870
|
pos: "relative",
|
3861
3871
|
children: [
|
3862
|
-
mainLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
3872
|
+
mainLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react50.Flex, { alignItems: "center", children: [
|
3863
3873
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Logo, { url: urlLogo, imageUrl: mainLogo, height: mainLogoSize }),
|
3864
3874
|
children && children
|
3865
3875
|
] }),
|
3866
|
-
centerLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
3876
|
+
centerLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react50.HStack, { w: "fit-content", spacing: 2, alignItems: "center", pos: "absolute", left: "50%", transform: "translate(-50%,0)", children: [
|
3867
3877
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Logo, { url: urlLogo, imageUrl: centerLogo, height: centerLogoSize }),
|
3868
3878
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
3869
3879
|
Version,
|
@@ -3876,7 +3886,7 @@ var Header = ({
|
|
3876
3886
|
}
|
3877
3887
|
)
|
3878
3888
|
] }),
|
3879
|
-
profile || /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
3889
|
+
profile || /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react50.Flex, { alignItems: "center", children: [
|
3880
3890
|
!hideSwitchMode && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(switch_mode_default, {}),
|
3881
3891
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Profile, { color: props.color, brandColor, data, onLogout })
|
3882
3892
|
] })
|
@@ -3900,11 +3910,11 @@ Header.defaultProps = {
|
|
3900
3910
|
};
|
3901
3911
|
|
3902
3912
|
// src/components/header/components/navbar.tsx
|
3903
|
-
var
|
3913
|
+
var import_react51 = require("@chakra-ui/react");
|
3904
3914
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
3905
3915
|
var Navbar = ({ bg = "white", children, ...props }) => {
|
3906
3916
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
3907
|
-
|
3917
|
+
import_react51.Flex,
|
3908
3918
|
{
|
3909
3919
|
minH: "15",
|
3910
3920
|
h: "15",
|
@@ -3924,21 +3934,21 @@ var Navbar = ({ bg = "white", children, ...props }) => {
|
|
3924
3934
|
Navbar.displayName = "Navbar";
|
3925
3935
|
|
3926
3936
|
// src/components/image/index.ts
|
3927
|
-
var
|
3937
|
+
var import_react52 = require("@chakra-ui/react");
|
3928
3938
|
|
3929
3939
|
// src/components/layouting/index.ts
|
3930
|
-
var
|
3940
|
+
var import_react53 = require("@chakra-ui/react");
|
3931
3941
|
|
3932
3942
|
// src/components/list/index.tsx
|
3933
|
-
var
|
3943
|
+
var import_react54 = require("@chakra-ui/react");
|
3934
3944
|
|
3935
3945
|
// src/components/modal/components/modal-back-button.tsx
|
3936
3946
|
var import_icons3 = require("@chakra-ui/icons");
|
3937
|
-
var
|
3947
|
+
var import_react55 = require("@chakra-ui/react");
|
3938
3948
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
3939
3949
|
var ModalBackButton = ({ onClick }) => {
|
3940
3950
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
3941
|
-
|
3951
|
+
import_react55.IconButton,
|
3942
3952
|
{
|
3943
3953
|
icon: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons3.ChevronLeftIcon, { w: "4.5", h: "4.5" }),
|
3944
3954
|
size: "sm",
|
@@ -3958,12 +3968,12 @@ var ModalBackButton = ({ onClick }) => {
|
|
3958
3968
|
var modal_back_button_default = ModalBackButton;
|
3959
3969
|
|
3960
3970
|
// src/components/modal/index.ts
|
3961
|
-
var
|
3971
|
+
var import_react56 = require("@chakra-ui/react");
|
3962
3972
|
|
3963
3973
|
// src/components/navigation/components/navigation.tsx
|
3964
|
-
var
|
3974
|
+
var import_react57 = require("@chakra-ui/react");
|
3965
3975
|
var Icon5 = __toESM(require("@ctlyst.id/internal-icon"));
|
3966
|
-
var
|
3976
|
+
var import_react58 = require("@emotion/react");
|
3967
3977
|
|
3968
3978
|
// src/components/navigation/components/mapping-icon.tsx
|
3969
3979
|
var Icon4 = __toESM(require("@ctlyst.id/internal-icon"));
|
@@ -3986,8 +3996,8 @@ var mappingIcon = /* @__PURE__ */ new Map([
|
|
3986
3996
|
// src/components/navigation/components/navigation.tsx
|
3987
3997
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
3988
3998
|
var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
3989
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3990
|
-
|
3999
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react57.Box, { borderRadius: "md", overflowX: "auto", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
4000
|
+
import_react57.Flex,
|
3991
4001
|
{
|
3992
4002
|
bg: "white",
|
3993
4003
|
w: "full",
|
@@ -4001,9 +4011,9 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
4001
4011
|
children: navigations == null ? void 0 : navigations.map((navigation) => {
|
4002
4012
|
const isActive = activePath.startsWith(navigation.navLink || "");
|
4003
4013
|
const activeBg = isActive ? "primary.500" : void 0;
|
4004
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
4005
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
4006
|
-
|
4014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react57.Popover, { trigger: "hover", placement: "bottom-start", children: ({ isOpen }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
|
4015
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react57.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
4016
|
+
import_react57.Button,
|
4007
4017
|
{
|
4008
4018
|
h: 7.5,
|
4009
4019
|
p: 2,
|
@@ -4020,10 +4030,10 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
4020
4030
|
children: navigation.title
|
4021
4031
|
}
|
4022
4032
|
) }),
|
4023
|
-
navigation.children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
4024
|
-
|
4033
|
+
navigation.children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react57.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react57.Box, { zIndex: "popover", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
4034
|
+
import_react57.PopoverContent,
|
4025
4035
|
{
|
4026
|
-
bg: (0,
|
4036
|
+
bg: (0, import_react57.useColorModeValue)("white", "ebony-clay.800"),
|
4027
4037
|
maxW: 250,
|
4028
4038
|
border: "none",
|
4029
4039
|
borderRadius: "md",
|
@@ -4033,7 +4043,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
4033
4043
|
const isLocalLink = host === navHost;
|
4034
4044
|
const isActiveSub = activePath === navLink;
|
4035
4045
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
4036
|
-
|
4046
|
+
import_react57.Link,
|
4037
4047
|
{
|
4038
4048
|
as: isLocalLink ? as : void 0,
|
4039
4049
|
href: link,
|
@@ -4041,7 +4051,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
4041
4051
|
textDecoration: "none"
|
4042
4052
|
},
|
4043
4053
|
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
4044
|
-
|
4054
|
+
import_react57.Box,
|
4045
4055
|
{
|
4046
4056
|
display: "flex",
|
4047
4057
|
position: "relative",
|
@@ -4049,24 +4059,24 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
4049
4059
|
cursor: "pointer",
|
4050
4060
|
transition: "padding 0.35s ease 0s",
|
4051
4061
|
_hover: {
|
4052
|
-
backgroundColor: (0,
|
4053
|
-
color: (0,
|
4062
|
+
backgroundColor: (0, import_react57.useColorModeValue)("dove-gray.50", "mirage.900"),
|
4063
|
+
color: (0, import_react57.useColorModeValue)("primary.500", "dove-gray.600"),
|
4054
4064
|
px: 5,
|
4055
4065
|
py: 4,
|
4056
4066
|
_first: { borderTopRadius: "md" },
|
4057
4067
|
_last: { borderBottomRadius: "md" }
|
4058
4068
|
},
|
4059
4069
|
color: isActiveSub ? "primary.500" : "inherit",
|
4060
|
-
css:
|
4070
|
+
css: import_react58.css`
|
4061
4071
|
border-spacing: 4px;
|
4062
4072
|
`,
|
4063
4073
|
px: 6,
|
4064
4074
|
py: 4,
|
4065
4075
|
children: [
|
4066
4076
|
mappingIcon.get(navigation.title),
|
4067
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
4077
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react57.Text, { fontSize: "text.sm", ml: 3, children: title }),
|
4068
4078
|
isActiveSub && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
4069
|
-
|
4079
|
+
import_react57.Box,
|
4070
4080
|
{
|
4071
4081
|
width: 0.5,
|
4072
4082
|
height: 8,
|
@@ -4099,7 +4109,7 @@ Navigation.defaultProps = {
|
|
4099
4109
|
var navigation_default = Navigation;
|
4100
4110
|
|
4101
4111
|
// src/components/navigation/components/navigation-bar.tsx
|
4102
|
-
var
|
4112
|
+
var import_react59 = require("@chakra-ui/react");
|
4103
4113
|
var Icon6 = __toESM(require("@ctlyst.id/internal-icon"));
|
4104
4114
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
4105
4115
|
var NavigationBar = ({
|
@@ -4116,8 +4126,8 @@ var NavigationBar = ({
|
|
4116
4126
|
}
|
4117
4127
|
return subMenu.navHost + subMenu.navLink;
|
4118
4128
|
};
|
4119
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
4120
|
-
|
4129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react59.Box, { hidden: isFetched && navigations === void 0, "data-test-id": "CT_component_navigation_cms", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
4130
|
+
import_react59.Flex,
|
4121
4131
|
{
|
4122
4132
|
bg: "white",
|
4123
4133
|
w: "full",
|
@@ -4133,9 +4143,9 @@ var NavigationBar = ({
|
|
4133
4143
|
const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
|
4134
4144
|
const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
|
4135
4145
|
const activeBg = isActive ? "primary.500" : void 0;
|
4136
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
4137
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
4138
|
-
|
4146
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react59.Popover, { isLazy: true, trigger: "hover", placement: "bottom-start", openDelay: 100, closeDelay: 100, children: ({ isOpen, onClose }) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
4147
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react59.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
4148
|
+
import_react59.Button,
|
4139
4149
|
{
|
4140
4150
|
h: 7.5,
|
4141
4151
|
p: 2,
|
@@ -4152,8 +4162,8 @@ var NavigationBar = ({
|
|
4152
4162
|
children: item.title
|
4153
4163
|
}
|
4154
4164
|
) }),
|
4155
|
-
item.children && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
4156
|
-
|
4165
|
+
item.children && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react59.PopoverContent, { bg: "white", boxShadow: "raised", borderRadius: "md", py: 1, width: 240, children: item.children.map((subMenu) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
4166
|
+
import_react59.Link,
|
4157
4167
|
{
|
4158
4168
|
href: urlMenu(subMenu),
|
4159
4169
|
display: "flex",
|
@@ -4170,7 +4180,7 @@ var NavigationBar = ({
|
|
4170
4180
|
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
4171
4181
|
children: [
|
4172
4182
|
mappingIcon2.get(item.title),
|
4173
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
4183
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react59.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
4174
4184
|
]
|
4175
4185
|
},
|
4176
4186
|
subMenu.id
|
@@ -4187,18 +4197,18 @@ var navigation_bar_default = NavigationBar;
|
|
4187
4197
|
|
4188
4198
|
// src/components/pagination/components/pagination.tsx
|
4189
4199
|
var import_icons4 = require("@chakra-ui/icons");
|
4190
|
-
var
|
4200
|
+
var import_react62 = require("@chakra-ui/react");
|
4191
4201
|
|
4192
4202
|
// src/components/pagination/components/pagination-button.tsx
|
4193
|
-
var
|
4203
|
+
var import_react60 = require("@chakra-ui/react");
|
4194
4204
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
4195
|
-
var PaginationButton = (0,
|
4196
|
-
const btnBg = (0,
|
4197
|
-
const btnColor = (0,
|
4198
|
-
const btnNotActiveBg = (0,
|
4199
|
-
const btnNotActiveColor = (0,
|
4205
|
+
var PaginationButton = (0, import_react60.forwardRef)(({ className, style, isActive, children, ...rest }, ref) => {
|
4206
|
+
const btnBg = (0, import_react60.useColorModeValue)("neutral.300", "mirage.900");
|
4207
|
+
const btnColor = (0, import_react60.useColorModeValue)("black.high", "primary.300");
|
4208
|
+
const btnNotActiveBg = (0, import_react60.useColorModeValue)("secondary.50", "primary.500");
|
4209
|
+
const btnNotActiveColor = (0, import_react60.useColorModeValue)("primary.500", "white");
|
4200
4210
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
4201
|
-
|
4211
|
+
import_react60.Button,
|
4202
4212
|
{
|
4203
4213
|
"data-test-id": "Pagination-Button",
|
4204
4214
|
ref,
|
@@ -4223,7 +4233,7 @@ var PaginationButton = (0, import_react59.forwardRef)(({ className, style, isAct
|
|
4223
4233
|
color: "neutral.300"
|
4224
4234
|
},
|
4225
4235
|
_disabled: {
|
4226
|
-
background: (0,
|
4236
|
+
background: (0, import_react60.useColorModeValue)("neutral.300", "mirage.900"),
|
4227
4237
|
color: "neutral.600",
|
4228
4238
|
pointerEvents: "none"
|
4229
4239
|
},
|
@@ -4239,7 +4249,7 @@ PaginationButton.defaultProps = {
|
|
4239
4249
|
var pagination_button_default = PaginationButton;
|
4240
4250
|
|
4241
4251
|
// src/components/pagination/components/pagination-button-trigger.tsx
|
4242
|
-
var
|
4252
|
+
var import_react61 = require("@chakra-ui/react");
|
4243
4253
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
4244
4254
|
var PaginationButtonTrigger = ({
|
4245
4255
|
color,
|
@@ -4248,7 +4258,7 @@ var PaginationButtonTrigger = ({
|
|
4248
4258
|
visuallyHidden,
|
4249
4259
|
icon
|
4250
4260
|
}) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(pagination_button_default, { "data-test-id": "DLVCc_fBK35spHm5WxjcJ", color, isDisabled, onClick, children: [
|
4251
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
4261
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react61.VisuallyHidden, { children: visuallyHidden }),
|
4252
4262
|
icon
|
4253
4263
|
] });
|
4254
4264
|
PaginationButtonTrigger.defaultProps = {
|
@@ -4263,8 +4273,8 @@ var pagination_button_trigger_default = PaginationButtonTrigger;
|
|
4263
4273
|
// src/components/pagination/components/pagination.tsx
|
4264
4274
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
4265
4275
|
var Pagination = ({ className, current, total, onSelect }) => {
|
4266
|
-
const btnColorDisabled = (0,
|
4267
|
-
const btnColor = (0,
|
4276
|
+
const btnColorDisabled = (0, import_react62.useColorModeValue)("secondary.100", "primary.500");
|
4277
|
+
const btnColor = (0, import_react62.useColorModeValue)("primary.500", "secondary.100");
|
4268
4278
|
const disabledPrevious = current === 1;
|
4269
4279
|
const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;
|
4270
4280
|
const disabledNext = current === total;
|
@@ -4291,8 +4301,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
4291
4301
|
}
|
4292
4302
|
return pageButtons;
|
4293
4303
|
};
|
4294
|
-
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
4295
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
4304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react62.Box, { className, display: "inline-flex", alignItems: "center", children: [
|
4305
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react62.Box, { mr: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
4296
4306
|
pagination_button_trigger_default,
|
4297
4307
|
{
|
4298
4308
|
"data-test-id": "Pagination-Button",
|
@@ -4303,7 +4313,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
4303
4313
|
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ArrowLeftIcon, { width: 2 })
|
4304
4314
|
}
|
4305
4315
|
) }),
|
4306
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
4316
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react62.Box, { bg: "neutral.300", borderRadius: "full", children: [
|
4307
4317
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
4308
4318
|
pagination_button_trigger_default,
|
4309
4319
|
{
|
@@ -4322,7 +4332,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
4322
4332
|
"data-test-id": "Pagination-Button",
|
4323
4333
|
isActive: page === current,
|
4324
4334
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
4325
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
4335
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react62.Text, { scale: 300, fontSize: "text.sm", lineHeight: 18, fontWeight: 500, children: page })
|
4326
4336
|
},
|
4327
4337
|
page
|
4328
4338
|
);
|
@@ -4339,7 +4349,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
4339
4349
|
}
|
4340
4350
|
)
|
4341
4351
|
] }),
|
4342
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
4352
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react62.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
4343
4353
|
pagination_button_trigger_default,
|
4344
4354
|
{
|
4345
4355
|
"data-test-id": "Pagination-Button",
|
@@ -4360,7 +4370,7 @@ Pagination.displayName = "Pagination";
|
|
4360
4370
|
var pagination_default = Pagination;
|
4361
4371
|
|
4362
4372
|
// src/components/pagination/components/pagination-detail.tsx
|
4363
|
-
var
|
4373
|
+
var import_react63 = require("@chakra-ui/react");
|
4364
4374
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
4365
4375
|
var PaginationDetail = ({
|
4366
4376
|
page,
|
@@ -4371,13 +4381,13 @@ var PaginationDetail = ({
|
|
4371
4381
|
lineHeight = 18,
|
4372
4382
|
...rest
|
4373
4383
|
}) => {
|
4374
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
4384
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react63.Text, { scale, fontSize, lineHeight, ...rest, children: `${(page - 1) * limit + 1}-${limit * page < length ? limit * page : length} dari ${length} item` });
|
4375
4385
|
};
|
4376
4386
|
var pagination_detail_default = PaginationDetail;
|
4377
4387
|
|
4378
4388
|
// src/components/pagination/components/pagination-filter.tsx
|
4379
|
-
var
|
4380
|
-
var
|
4389
|
+
var import_react64 = require("@chakra-ui/react");
|
4390
|
+
var React10 = __toESM(require("react"));
|
4381
4391
|
var import_fi4 = require("react-icons/fi");
|
4382
4392
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
4383
4393
|
var PaginationFilter = ({
|
@@ -4387,11 +4397,11 @@ var PaginationFilter = ({
|
|
4387
4397
|
onChange,
|
4388
4398
|
...rest
|
4389
4399
|
}) => {
|
4390
|
-
const [value, setValue] =
|
4391
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
4392
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
4400
|
+
const [value, setValue] = React10.useState(limit);
|
4401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_react64.Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [
|
4402
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react64.Text, { fontSize: "text.sm", lineHeight: 18, color: (0, import_react64.useColorModeValue)("neutral.900", "white"), ...rest, children: label }),
|
4393
4403
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
4394
|
-
|
4404
|
+
import_react64.Select,
|
4395
4405
|
{
|
4396
4406
|
textAlign: "center",
|
4397
4407
|
size: "xs",
|
@@ -4421,22 +4431,22 @@ PaginationFilter.defaultProps = {
|
|
4421
4431
|
var pagination_filter_default = PaginationFilter;
|
4422
4432
|
|
4423
4433
|
// src/components/pin-input/index.ts
|
4424
|
-
var
|
4434
|
+
var import_react65 = require("@chakra-ui/react");
|
4425
4435
|
|
4426
4436
|
// src/components/popover/index.ts
|
4427
|
-
var
|
4437
|
+
var import_react66 = require("@chakra-ui/react");
|
4428
4438
|
|
4429
4439
|
// src/components/progress/index.ts
|
4430
|
-
var
|
4440
|
+
var import_react67 = require("@chakra-ui/react");
|
4431
4441
|
|
4432
4442
|
// src/components/radio/components/radio.tsx
|
4433
|
-
var
|
4443
|
+
var import_react68 = require("@chakra-ui/react");
|
4434
4444
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
4435
4445
|
var Radio = ({ isError = false, helpText, errorText, children, isDisabled, ...rest }) => {
|
4436
4446
|
const variant = isError ? "errors" : "unstyled";
|
4437
|
-
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
4438
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
4439
|
-
isError && errorText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
4447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_react68.Box, { children: [
|
4448
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react68.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react68.Radio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react68.Text, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
4449
|
+
isError && errorText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react68.Box, { mt: "2", ml: "6", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react68.Text, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) }) : helpText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react68.Box, { mt: "2", ml: "6", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react68.Text, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) }) : null
|
4440
4450
|
] });
|
4441
4451
|
};
|
4442
4452
|
Radio.displayName = "Radio";
|
@@ -4447,7 +4457,7 @@ Radio.defaultProps = {
|
|
4447
4457
|
};
|
4448
4458
|
|
4449
4459
|
// src/components/radio/components/radio-group.tsx
|
4450
|
-
var
|
4460
|
+
var import_react69 = require("@chakra-ui/react");
|
4451
4461
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
4452
4462
|
var RadioGroup = ({
|
4453
4463
|
children,
|
@@ -4457,7 +4467,7 @@ var RadioGroup = ({
|
|
4457
4467
|
errorMessage,
|
4458
4468
|
...props
|
4459
4469
|
}) => {
|
4460
|
-
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
4470
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react69.Box, { mt: "2", mb: "1", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react69.RadioGroup, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react69.Stack, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
|
4461
4471
|
};
|
4462
4472
|
RadioGroup.displayName = "RadioGroup";
|
4463
4473
|
RadioGroup.defaultProps = {
|
@@ -4467,34 +4477,34 @@ RadioGroup.defaultProps = {
|
|
4467
4477
|
};
|
4468
4478
|
|
4469
4479
|
// src/components/radio/index.ts
|
4470
|
-
var
|
4480
|
+
var import_react70 = require("@chakra-ui/react");
|
4471
4481
|
|
4472
4482
|
// src/components/rating/components/rating.tsx
|
4473
|
-
var
|
4483
|
+
var import_react71 = require("@chakra-ui/react");
|
4474
4484
|
var import_internal_icon7 = require("@ctlyst.id/internal-icon");
|
4475
4485
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
4476
4486
|
var Rating = ({ value }) => {
|
4477
|
-
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
4487
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react71.Grid, { gap: "4px", display: "flex", children: [...Array(5)].map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_internal_icon7.Rating, { color: i < value ? "#FFA230" : "#E0E0E0", size: 24 })) });
|
4478
4488
|
};
|
4479
4489
|
var rating_default = Rating;
|
4480
4490
|
|
4481
4491
|
// src/components/select/components/select.tsx
|
4482
|
-
var
|
4492
|
+
var import_react75 = require("@chakra-ui/react");
|
4483
4493
|
var import_system7 = require("@chakra-ui/system");
|
4484
4494
|
var Icon7 = __toESM(require("@ctlyst.id/internal-icon"));
|
4485
4495
|
var import_react_select = __toESM(require("react-select"));
|
4486
4496
|
|
4487
4497
|
// src/config/theme/foundations/shadows.ts
|
4488
|
-
var
|
4498
|
+
var import_react72 = require("@chakra-ui/react");
|
4489
4499
|
var shadows = {
|
4490
|
-
...
|
4500
|
+
...import_react72.theme.shadows,
|
4491
4501
|
raised: "0px 4px 20px rgba(0, 0, 0, 0.05)"
|
4492
4502
|
};
|
4493
4503
|
|
4494
4504
|
// src/config/theme/foundations/sizes.ts
|
4495
|
-
var
|
4505
|
+
var import_react73 = require("@chakra-ui/react");
|
4496
4506
|
var sizes = {
|
4497
|
-
...
|
4507
|
+
...import_react73.theme.sizes,
|
4498
4508
|
4.5: "1.125rem",
|
4499
4509
|
9.5: "2.375rem",
|
4500
4510
|
18: "4.5rem",
|
@@ -4504,9 +4514,9 @@ var sizes = {
|
|
4504
4514
|
};
|
4505
4515
|
|
4506
4516
|
// src/config/theme/foundations/spacing.ts
|
4507
|
-
var
|
4517
|
+
var import_react74 = require("@chakra-ui/react");
|
4508
4518
|
var spacing = {
|
4509
|
-
...
|
4519
|
+
...import_react74.theme.space,
|
4510
4520
|
4.5: "1.125rem",
|
4511
4521
|
9.5: "2.375rem",
|
4512
4522
|
18: "4.5rem",
|
@@ -4866,13 +4876,13 @@ function ClearIndicator(props) {
|
|
4866
4876
|
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" }) });
|
4867
4877
|
}
|
4868
4878
|
function MultiValue(props) {
|
4869
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
4879
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react75.Badge, { pr: 0, variant: "neutral-light", children: props == null ? void 0 : props.data.label }) });
|
4870
4880
|
}
|
4871
4881
|
function MultiValueRemove(props) {
|
4872
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
4882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react75.Flex, { align: "center", justify: "center", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon7.Close, { size: 2.5, color: "inherit" }) }) });
|
4873
4883
|
}
|
4874
4884
|
function NoOptionsMessage(props) {
|
4875
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
4885
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react75.Center, { textStyle: "text.xs", py: "1.5", color: "black.medium", children: (props == null ? void 0 : props.options.length) === 0 ? "Opsi tidak tersedia" : "Hasil tidak ditemukan" });
|
4876
4886
|
}
|
4877
4887
|
function Select2({
|
4878
4888
|
styles,
|
@@ -4980,7 +4990,7 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
4980
4990
|
}
|
4981
4991
|
|
4982
4992
|
// src/components/select/components/select-with-checkbox.tsx
|
4983
|
-
var
|
4993
|
+
var import_react76 = require("@chakra-ui/react");
|
4984
4994
|
var import_system11 = require("@chakra-ui/system");
|
4985
4995
|
var import_react_select2 = __toESM(require("react-select"));
|
4986
4996
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
@@ -5043,7 +5053,7 @@ var InputOption = ({
|
|
5043
5053
|
innerProps: props,
|
5044
5054
|
...rest,
|
5045
5055
|
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
5046
|
-
|
5056
|
+
import_react76.Flex,
|
5047
5057
|
{
|
5048
5058
|
alignItems: "center",
|
5049
5059
|
width: "100%",
|
@@ -5052,7 +5062,7 @@ var InputOption = ({
|
|
5052
5062
|
cursor: isDisabled ? "not-allowed" : "default",
|
5053
5063
|
children: [
|
5054
5064
|
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
5055
|
-
|
5065
|
+
import_react76.Checkbox,
|
5056
5066
|
{
|
5057
5067
|
isChecked: checkedState === CHECKBOX_STATE.CHECKED,
|
5058
5068
|
isIndeterminate: checkedState === CHECKBOX_STATE.INDETERMINATE,
|
@@ -5061,14 +5071,14 @@ var InputOption = ({
|
|
5061
5071
|
"data-test-id": "CT_component_select-checkbox_select-all-option"
|
5062
5072
|
}
|
5063
5073
|
) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
5064
|
-
|
5074
|
+
import_react76.Checkbox,
|
5065
5075
|
{
|
5066
5076
|
pointerEvents: "none",
|
5067
5077
|
isChecked: isSelected,
|
5068
5078
|
"data-test-id": "CT_component_select-checkbox_option-checkbox"
|
5069
5079
|
}
|
5070
5080
|
),
|
5071
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
5081
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react76.Text, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
|
5072
5082
|
]
|
5073
5083
|
}
|
5074
5084
|
)
|
@@ -5140,13 +5150,13 @@ var SelectCheckbox = (props) => {
|
|
5140
5150
|
var select_with_checkbox_default = SelectCheckbox;
|
5141
5151
|
|
5142
5152
|
// src/components/sidebar/components/sidebar.tsx
|
5143
|
-
var
|
5153
|
+
var import_react77 = require("@chakra-ui/react");
|
5144
5154
|
var import_framer_motion = require("framer-motion");
|
5145
5155
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
5146
5156
|
var Sidebar = ({ isCollapse, children, ...props }) => {
|
5147
5157
|
const { width = "220px" } = props;
|
5148
5158
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
5149
|
-
|
5159
|
+
import_react77.Flex,
|
5150
5160
|
{
|
5151
5161
|
position: "relative",
|
5152
5162
|
as: import_framer_motion.motion.div,
|
@@ -5166,13 +5176,13 @@ var Sidebar = ({ isCollapse, children, ...props }) => {
|
|
5166
5176
|
Sidebar.displayName = "Sidebar";
|
5167
5177
|
|
5168
5178
|
// src/components/sidebar/components/sidebar-header.tsx
|
5169
|
-
var
|
5179
|
+
var import_react78 = require("@chakra-ui/react");
|
5170
5180
|
var import_internal_icon8 = require("@ctlyst.id/internal-icon");
|
5171
5181
|
var import_framer_motion2 = require("framer-motion");
|
5172
5182
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
5173
5183
|
var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
5174
5184
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
5175
|
-
|
5185
|
+
import_react78.Box,
|
5176
5186
|
{
|
5177
5187
|
px: "2",
|
5178
5188
|
color: "neutral.900",
|
@@ -5182,7 +5192,7 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
5182
5192
|
color: "primary.500"
|
5183
5193
|
},
|
5184
5194
|
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
5185
|
-
|
5195
|
+
import_react78.Flex,
|
5186
5196
|
{
|
5187
5197
|
"data-test-id": "nLkz69YipW818FioeAxVI",
|
5188
5198
|
direction: "row",
|
@@ -5192,7 +5202,7 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
5192
5202
|
cursor: "pointer",
|
5193
5203
|
children: [
|
5194
5204
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
5195
|
-
|
5205
|
+
import_react78.Box,
|
5196
5206
|
{
|
5197
5207
|
as: import_framer_motion2.motion.div,
|
5198
5208
|
boxSize: "4",
|
@@ -5203,8 +5213,8 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
5203
5213
|
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_internal_icon8.ArrowRight, { size: 4, color: "inherit" })
|
5204
5214
|
}
|
5205
5215
|
),
|
5206
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_framer_motion2.AnimatePresence, { children: !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
5207
|
-
|
5216
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_framer_motion2.AnimatePresence, { children: !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react78.Box, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
5217
|
+
import_react78.Text,
|
5208
5218
|
{
|
5209
5219
|
as: import_framer_motion2.motion.div,
|
5210
5220
|
w: "max-content",
|
@@ -5230,32 +5240,32 @@ SidebarHeader.defaultProps = {
|
|
5230
5240
|
};
|
5231
5241
|
|
5232
5242
|
// src/components/sidebar/components/sidebar-menu.tsx
|
5233
|
-
var
|
5243
|
+
var import_react79 = require("@chakra-ui/react");
|
5234
5244
|
var Icon8 = __toESM(require("@ctlyst.id/internal-icon"));
|
5235
5245
|
var import_framer_motion3 = require("framer-motion");
|
5236
5246
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
5237
5247
|
var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, setActive, active }) => {
|
5238
5248
|
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5239
|
-
|
5249
|
+
import_react79.Box,
|
5240
5250
|
{
|
5241
5251
|
as: import_framer_motion3.motion.div,
|
5242
5252
|
transitionTimingFunction: "linear",
|
5243
5253
|
initial: { padding: "8px" },
|
5244
5254
|
animate: { padding: isCollapse ? "8px 16px" : "8px" },
|
5245
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5255
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.Accordion, { index: menu.findIndex((item) => item.children.some((child) => child.navLink === active)), children: menu.map((item) => {
|
5246
5256
|
const isActive = active == null ? void 0 : active.includes(item.navLink);
|
5247
|
-
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.AccordionItem, { mt: "4", children: ({ isExpanded }) => {
|
5248
5258
|
const isOpenOptions = isCollapse || !isCollapse && !isExpanded;
|
5249
5259
|
const noChild = !item.children.length;
|
5250
5260
|
const offsetStyle = isCollapse ? noChild ? [-5, 16] : [-1, 16] : [-1, 8];
|
5251
5261
|
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
5252
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5262
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.Popover, { trigger: "hover", placement: "right-start", offset: offsetStyle, children: ({ isOpen, onClose }) => {
|
5253
5263
|
const activeOption = isOpen ? "primary.50" : "white";
|
5254
5264
|
const backgroundColor = isOpen && !isActive ? "primary.50" : "primary.100";
|
5255
5265
|
const activeParent = isActive ? backgroundColor : activeOption;
|
5256
5266
|
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
5257
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5258
|
-
|
5267
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5268
|
+
import_react79.AccordionButton,
|
5259
5269
|
{
|
5260
5270
|
"data-test-id": `CTA_button-accordion-${item.title}`,
|
5261
5271
|
p: "0",
|
@@ -5273,9 +5283,9 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
5273
5283
|
position: "relative",
|
5274
5284
|
...itemStyles,
|
5275
5285
|
children: [
|
5276
|
-
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5286
|
+
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.Box, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
|
5277
5287
|
!isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
5278
|
-
|
5288
|
+
import_react79.Box,
|
5279
5289
|
{
|
5280
5290
|
display: "flex",
|
5281
5291
|
w: "full",
|
@@ -5289,9 +5299,9 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
5289
5299
|
animate: { opacity: 1, x: 0 },
|
5290
5300
|
exit: { opacity: 0, x: 16 },
|
5291
5301
|
children: [
|
5292
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5302
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.Box, { h: "3.5", position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.Text, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) }),
|
5293
5303
|
!!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5294
|
-
|
5304
|
+
import_react79.Box,
|
5295
5305
|
{
|
5296
5306
|
display: "flex",
|
5297
5307
|
boxSize: "3",
|
@@ -5311,12 +5321,12 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
5311
5321
|
},
|
5312
5322
|
item.id
|
5313
5323
|
) }, item.id),
|
5314
|
-
isOpenOptions && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5315
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5324
|
+
isOpenOptions && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.Portal, { children: item.children.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react79.PopoverContent, { w: "176px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: [
|
5325
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.PopoverHeader, { borderColor: "neutral.300", textStyle: "text.xs", p: "2", children: mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react79.Box, { display: "flex", alignItems: "center", children: [
|
5316
5326
|
mappingIcon2.get(item.icon || ""),
|
5317
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5327
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.Box, { as: "span", ml: "2", children: item.title })
|
5318
5328
|
] }) }),
|
5319
|
-
!!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5329
|
+
!!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.PopoverBody, { pb: "1", px: "0", pt: "0", children: item.children.map((submenu) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5320
5330
|
NavItem,
|
5321
5331
|
{
|
5322
5332
|
"data-test-id": `CTA_Sidebar-popover-item-${submenu.id}`,
|
@@ -5332,7 +5342,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
5332
5342
|
},
|
5333
5343
|
submenu.id
|
5334
5344
|
)) })
|
5335
|
-
] }) : isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5345
|
+
] }) : isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.PopoverContent, { w: "174px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.PopoverBody, { py: "1", px: "0", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
5336
5346
|
NavItem,
|
5337
5347
|
{
|
5338
5348
|
"data-test-id": `CTA_Sidebar-popover-item-${item.id}`,
|
@@ -5345,8 +5355,8 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
5345
5355
|
rounded: "none",
|
5346
5356
|
...itemStyles,
|
5347
5357
|
children: [
|
5348
|
-
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5349
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5358
|
+
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.Box, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
|
5359
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.Box, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.Text, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) })
|
5350
5360
|
]
|
5351
5361
|
},
|
5352
5362
|
item.id
|
@@ -5354,13 +5364,13 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
5354
5364
|
] });
|
5355
5365
|
} }, item.id),
|
5356
5366
|
!isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5357
|
-
|
5367
|
+
import_react79.Fade,
|
5358
5368
|
{
|
5359
5369
|
in: true,
|
5360
5370
|
transition: {
|
5361
5371
|
enter: { duration: 0.5 }
|
5362
5372
|
},
|
5363
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5373
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react79.AccordionPanel, { mt: "1", p: "0", children: item.children.map((submenu) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
5364
5374
|
NavItem,
|
5365
5375
|
{
|
5366
5376
|
mt: "1",
|
@@ -5388,16 +5398,16 @@ SidebarMenu.defaultProps = {
|
|
5388
5398
|
};
|
5389
5399
|
|
5390
5400
|
// src/components/switch/components/switch.tsx
|
5391
|
-
var
|
5401
|
+
var import_react80 = require("@chakra-ui/react");
|
5392
5402
|
var import_shared_utils10 = require("@chakra-ui/shared-utils");
|
5393
5403
|
var import_internal_icon9 = require("@ctlyst.id/internal-icon");
|
5394
|
-
var
|
5404
|
+
var import_react81 = require("react");
|
5395
5405
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
5396
|
-
var Switch = (0,
|
5397
|
-
const styles = (0,
|
5398
|
-
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0,
|
5399
|
-
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0,
|
5400
|
-
const containerStyles = (0,
|
5406
|
+
var Switch = (0, import_react80.forwardRef)(function Switch2(props, ref) {
|
5407
|
+
const styles = (0, import_react80.useMultiStyleConfig)("Switch", props);
|
5408
|
+
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0, import_react80.omitThemingProps)(props);
|
5409
|
+
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0, import_react80.useCheckbox)(ownProps);
|
5410
|
+
const containerStyles = (0, import_react81.useMemo)(
|
5401
5411
|
() => ({
|
5402
5412
|
display: "inline-block",
|
5403
5413
|
position: "relative",
|
@@ -5407,7 +5417,7 @@ var Switch = (0, import_react79.forwardRef)(function Switch2(props, ref) {
|
|
5407
5417
|
}),
|
5408
5418
|
[styles.container]
|
5409
5419
|
);
|
5410
|
-
const trackStyles = (0,
|
5420
|
+
const trackStyles = (0, import_react81.useMemo)(
|
5411
5421
|
() => ({
|
5412
5422
|
display: "inline-flex",
|
5413
5423
|
flexShrink: 0,
|
@@ -5419,7 +5429,7 @@ var Switch = (0, import_react79.forwardRef)(function Switch2(props, ref) {
|
|
5419
5429
|
}),
|
5420
5430
|
[styles.track]
|
5421
5431
|
);
|
5422
|
-
const labelStyles = (0,
|
5432
|
+
const labelStyles = (0, import_react81.useMemo)(
|
5423
5433
|
() => ({
|
5424
5434
|
userSelect: "none",
|
5425
5435
|
marginStart: spacing2,
|
@@ -5436,7 +5446,7 @@ var Switch = (0, import_react79.forwardRef)(function Switch2(props, ref) {
|
|
5436
5446
|
return iconSize[value];
|
5437
5447
|
};
|
5438
5448
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
5439
|
-
|
5449
|
+
import_react80.chakra.label,
|
5440
5450
|
{
|
5441
5451
|
...getRootProps(),
|
5442
5452
|
display: "flex",
|
@@ -5445,13 +5455,13 @@ var Switch = (0, import_react79.forwardRef)(function Switch2(props, ref) {
|
|
5445
5455
|
__css: containerStyles,
|
5446
5456
|
children: [
|
5447
5457
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
5448
|
-
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
5449
|
-
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
5458
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react80.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
5459
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react80.Flex, { gap: 1, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
|
5450
5460
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_internal_icon9.Check, { color: "white", size: getIconSize(props.size) }),
|
5451
5461
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_internal_icon9.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
5452
5462
|
] }),
|
5453
5463
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
5454
|
-
|
5464
|
+
import_react80.chakra.span,
|
5455
5465
|
{
|
5456
5466
|
__css: styles.thumb,
|
5457
5467
|
className: "chakra-switch__thumb",
|
@@ -5461,7 +5471,7 @@ var Switch = (0, import_react79.forwardRef)(function Switch2(props, ref) {
|
|
5461
5471
|
)
|
5462
5472
|
] }),
|
5463
5473
|
children && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
5464
|
-
|
5474
|
+
import_react80.chakra.span,
|
5465
5475
|
{
|
5466
5476
|
className: "chakra-switch__label",
|
5467
5477
|
color: state.isDisabled ? "black.low" : "black.high",
|
@@ -5481,18 +5491,18 @@ Switch.defaultProps = {
|
|
5481
5491
|
var switch_default = Switch;
|
5482
5492
|
|
5483
5493
|
// src/components/table/index.tsx
|
5484
|
-
var
|
5494
|
+
var import_react82 = require("@chakra-ui/react");
|
5485
5495
|
|
5486
5496
|
// src/components/tabs/components/tab.tsx
|
5487
|
-
var
|
5497
|
+
var import_react83 = require("@chakra-ui/react");
|
5488
5498
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
5489
|
-
var Tab = (0,
|
5499
|
+
var Tab = (0, import_react83.forwardRef)((props, ref) => {
|
5490
5500
|
var _a, _b;
|
5491
|
-
const tabProps = (0,
|
5501
|
+
const tabProps = (0, import_react83.useTab)({ ...props, ref });
|
5492
5502
|
const isSelected = !!tabProps["aria-selected"];
|
5493
|
-
const styles = (0,
|
5503
|
+
const styles = (0, import_react83.useMultiStyleConfig)("Tabs", tabProps);
|
5494
5504
|
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
5495
|
-
|
5505
|
+
import_react83.Button,
|
5496
5506
|
{
|
5497
5507
|
"data-test-id": props["data-test-id"],
|
5498
5508
|
p: 4,
|
@@ -5517,7 +5527,7 @@ var Tab = (0, import_react82.forwardRef)((props, ref) => {
|
|
5517
5527
|
},
|
5518
5528
|
__css: styles.tab,
|
5519
5529
|
...tabProps,
|
5520
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
5530
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react83.Flex, { alignItems: "center", children: [
|
5521
5531
|
(_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
|
5522
5532
|
tabProps.children,
|
5523
5533
|
(_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
|
@@ -5528,39 +5538,39 @@ var Tab = (0, import_react82.forwardRef)((props, ref) => {
|
|
5528
5538
|
var tab_default = Tab;
|
5529
5539
|
|
5530
5540
|
// src/components/tabs/index.ts
|
5531
|
-
var
|
5541
|
+
var import_react84 = require("@chakra-ui/react");
|
5532
5542
|
|
5533
5543
|
// src/components/text/index.ts
|
5534
|
-
var
|
5544
|
+
var import_react85 = require("@chakra-ui/react");
|
5535
5545
|
|
5536
5546
|
// src/components/time-input/components/index.tsx
|
5537
|
-
var
|
5547
|
+
var import_react87 = require("@chakra-ui/react");
|
5538
5548
|
var import_internal_icon10 = require("@ctlyst.id/internal-icon");
|
5539
|
-
var
|
5549
|
+
var import_react88 = require("react");
|
5540
5550
|
|
5541
5551
|
// src/components/time-input/components/integration.tsx
|
5542
5552
|
var import_timescape = require("@zamiru/timescape");
|
5543
5553
|
var import_timescape2 = require("@zamiru/timescape");
|
5544
|
-
var
|
5554
|
+
var import_react86 = require("react");
|
5545
5555
|
var useTimescape = (options = {}) => {
|
5546
5556
|
var _a;
|
5547
5557
|
const { date, onChangeDate, ...rest } = options;
|
5548
|
-
const [manager] = (0,
|
5549
|
-
const onChangeDateRef = (0,
|
5550
|
-
(0,
|
5558
|
+
const [manager] = (0, import_react86.useState)(() => new import_timescape.TimescapeManager(date, rest));
|
5559
|
+
const onChangeDateRef = (0, import_react86.useRef)(onChangeDate);
|
5560
|
+
(0, import_react86.useLayoutEffect)(() => {
|
5551
5561
|
onChangeDateRef.current = onChangeDate;
|
5552
5562
|
}, [onChangeDate]);
|
5553
|
-
const [optionsState, update] = (0,
|
5563
|
+
const [optionsState, update] = (0, import_react86.useState)(() => ({
|
5554
5564
|
date,
|
5555
5565
|
...rest
|
5556
5566
|
}));
|
5557
|
-
(0,
|
5567
|
+
(0, import_react86.useEffect)(() => {
|
5558
5568
|
manager.resync();
|
5559
5569
|
return () => {
|
5560
5570
|
manager.remove();
|
5561
5571
|
};
|
5562
5572
|
}, [manager]);
|
5563
|
-
(0,
|
5573
|
+
(0, import_react86.useEffect)(() => {
|
5564
5574
|
return manager.on("changeDate", (nextDate) => {
|
5565
5575
|
var _a2;
|
5566
5576
|
(_a2 = onChangeDateRef.current) == null ? void 0 : _a2.call(onChangeDateRef, nextDate);
|
@@ -5568,7 +5578,7 @@ var useTimescape = (options = {}) => {
|
|
5568
5578
|
});
|
5569
5579
|
}, [manager]);
|
5570
5580
|
const timestamp = (_a = optionsState.date) == null ? void 0 : _a.getTime();
|
5571
|
-
(0,
|
5581
|
+
(0, import_react86.useEffect)(() => {
|
5572
5582
|
manager.date = timestamp;
|
5573
5583
|
manager.minDate = optionsState.minDate;
|
5574
5584
|
manager.maxDate = optionsState.maxDate;
|
@@ -5634,9 +5644,9 @@ var timeFromString = (timeString) => {
|
|
5634
5644
|
const [hours, minutes, seconds] = timeString.split(":");
|
5635
5645
|
return new Time(Number(hours), Number(minutes), Number(seconds));
|
5636
5646
|
};
|
5637
|
-
var InputTimeArea = (0,
|
5647
|
+
var InputTimeArea = (0, import_react87.forwardRef)((props, ref) => {
|
5638
5648
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
5639
|
-
|
5649
|
+
import_react87.Input,
|
5640
5650
|
{
|
5641
5651
|
_focusWithin: {
|
5642
5652
|
bg: "neutral.300"
|
@@ -5654,7 +5664,7 @@ var InputTimeArea = (0, import_react86.forwardRef)((props, ref) => {
|
|
5654
5664
|
}
|
5655
5665
|
);
|
5656
5666
|
});
|
5657
|
-
var TimeInput2 = (0,
|
5667
|
+
var TimeInput2 = (0, import_react87.forwardRef)(
|
5658
5668
|
({
|
5659
5669
|
name,
|
5660
5670
|
config: config2,
|
@@ -5681,7 +5691,7 @@ var TimeInput2 = (0, import_react86.forwardRef)(
|
|
5681
5691
|
date,
|
5682
5692
|
...config2
|
5683
5693
|
});
|
5684
|
-
(0,
|
5694
|
+
(0, import_react88.useEffect)(() => {
|
5685
5695
|
var _a, _b, _c, _d, _e, _f;
|
5686
5696
|
timeValue.hours = (_b = (_a = options == null ? void 0 : options.date) == null ? void 0 : _a.getHours()) != null ? _b : 0;
|
5687
5697
|
timeValue.minutes = (_d = (_c = options == null ? void 0 : options.date) == null ? void 0 : _c.getMinutes()) != null ? _d : 0;
|
@@ -5690,7 +5700,7 @@ var TimeInput2 = (0, import_react86.forwardRef)(
|
|
5690
5700
|
onChangeTime(timeValue);
|
5691
5701
|
}
|
5692
5702
|
}, [options.date]);
|
5693
|
-
(0,
|
5703
|
+
(0, import_react88.useImperativeHandle)(ref, () => ({
|
5694
5704
|
focus() {
|
5695
5705
|
_manager.focusField("hours");
|
5696
5706
|
}
|
@@ -5711,7 +5721,7 @@ var TimeInput2 = (0, import_react86.forwardRef)(
|
|
5711
5721
|
};
|
5712
5722
|
};
|
5713
5723
|
const { outlineColor, focusColor } = getProperties();
|
5714
|
-
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
5724
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react87.Box, { ...boxProps, ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
5715
5725
|
field_default,
|
5716
5726
|
{
|
5717
5727
|
isError,
|
@@ -5721,7 +5731,7 @@ var TimeInput2 = (0, import_react86.forwardRef)(
|
|
5721
5731
|
isDisabled,
|
5722
5732
|
isSuccess,
|
5723
5733
|
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
5724
|
-
|
5734
|
+
import_react87.Box,
|
5725
5735
|
{
|
5726
5736
|
transition: "all 0.15s",
|
5727
5737
|
boxShadow: "none",
|
@@ -5732,7 +5742,7 @@ var TimeInput2 = (0, import_react86.forwardRef)(
|
|
5732
5742
|
borderColor: focusColor
|
5733
5743
|
},
|
5734
5744
|
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
5735
|
-
|
5745
|
+
import_react87.InputGroup,
|
5736
5746
|
{
|
5737
5747
|
borderRadius: "sm",
|
5738
5748
|
backgroundColor: isDisabled ? "neutral.300" : "white.high",
|
@@ -5741,7 +5751,7 @@ var TimeInput2 = (0, import_react86.forwardRef)(
|
|
5741
5751
|
gap: 3,
|
5742
5752
|
"data-test-id": `CT_Component_TimeInput${name ? `_${name}` : ""}`,
|
5743
5753
|
children: [
|
5744
|
-
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
5754
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_react87.Flex, { gap: "1px", width: "100%", alignItems: "center", pl: 2, children: [
|
5745
5755
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(InputTimeArea, { "data-test-id": "start-time", ...hoursProps }),
|
5746
5756
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: ":" }),
|
5747
5757
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(InputTimeArea, { "data-test-id": "end-time", ...getInputProps("minutes") }),
|
@@ -5749,7 +5759,7 @@ var TimeInput2 = (0, import_react86.forwardRef)(
|
|
5749
5759
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: ":" }),
|
5750
5760
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(InputTimeArea, { ...getInputProps("seconds") })
|
5751
5761
|
] }),
|
5752
|
-
options.hour12 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
5762
|
+
options.hour12 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react87.Input, { p: 0, ...getInputProps("am/pm") })
|
5753
5763
|
] }),
|
5754
5764
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_internal_icon10.Clock, { color: "neutral.400", size: 4 }),
|
5755
5765
|
addOnRight
|
@@ -5764,16 +5774,16 @@ var TimeInput2 = (0, import_react86.forwardRef)(
|
|
5764
5774
|
);
|
5765
5775
|
|
5766
5776
|
// src/components/toast/components/toast.tsx
|
5767
|
-
var
|
5777
|
+
var import_react90 = require("@chakra-ui/react");
|
5768
5778
|
var import_internal_icon11 = require("@ctlyst.id/internal-icon");
|
5769
5779
|
var import_react_toastify = require("react-toastify");
|
5770
5780
|
|
5771
5781
|
// src/components/toast/components/styles.tsx
|
5772
|
-
var
|
5782
|
+
var import_react89 = require("@emotion/react");
|
5773
5783
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
5774
5784
|
var Styles2 = () => {
|
5775
5785
|
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
5776
|
-
|
5786
|
+
import_react89.Global,
|
5777
5787
|
{
|
5778
5788
|
styles: `
|
5779
5789
|
.Toastify__toast-container {
|
@@ -5807,7 +5817,7 @@ var styles_default2 = Styles2;
|
|
5807
5817
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
5808
5818
|
var CustomCloseButton = (props) => {
|
5809
5819
|
const { closeToast } = props;
|
5810
|
-
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react90.Box, { p: 2, mb: 1, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: closeToast, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_internal_icon11.Close, { size: 4, color: "white" }) });
|
5811
5821
|
};
|
5812
5822
|
var DEFAULT_OPTIONS = {
|
5813
5823
|
position: "top-right",
|
@@ -5830,7 +5840,7 @@ var renderIcon = (icon, type) => {
|
|
5830
5840
|
return icon;
|
5831
5841
|
};
|
5832
5842
|
var useToast = () => {
|
5833
|
-
const [primary500, neutral500, info500, danger500, warning500, success500] = (0,
|
5843
|
+
const [primary500, neutral500, info500, danger500, warning500, success500] = (0, import_react90.useToken)("colors", [
|
5834
5844
|
"primary.500",
|
5835
5845
|
"neutral.500",
|
5836
5846
|
"info.500",
|
@@ -5841,13 +5851,13 @@ var useToast = () => {
|
|
5841
5851
|
const content = (icon, message, link) => {
|
5842
5852
|
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
5843
5853
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(styles_default2, {}),
|
5844
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
5845
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
5846
|
-
icon && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5847
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5854
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react90.Flex, { justifyContent: "space-between", alignItems: "center", gap: 4, mb: 1, children: [
|
5855
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react90.Flex, { alignItems: "center", children: [
|
5856
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react90.chakra.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
|
5857
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react90.chakra.span, { noOfLines: 2, children: message })
|
5848
5858
|
] }),
|
5849
5859
|
link && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5850
|
-
|
5860
|
+
import_react90.Link,
|
5851
5861
|
{
|
5852
5862
|
href: link.url,
|
5853
5863
|
textDecoration: "underline",
|
@@ -5926,9 +5936,9 @@ var useToast = () => {
|
|
5926
5936
|
var import_react_toastify2 = require("react-toastify");
|
5927
5937
|
|
5928
5938
|
// src/components/uploader/components/uploader.tsx
|
5929
|
-
var
|
5939
|
+
var import_react91 = require("@chakra-ui/react");
|
5930
5940
|
var import_internal_icon12 = require("@ctlyst.id/internal-icon");
|
5931
|
-
var
|
5941
|
+
var import_react92 = require("react");
|
5932
5942
|
var import_react_dropzone = require("react-dropzone");
|
5933
5943
|
|
5934
5944
|
// src/components/uploader/constants.ts
|
@@ -6027,9 +6037,9 @@ var Uploader = ({
|
|
6027
6037
|
validatorExt,
|
6028
6038
|
...props
|
6029
6039
|
}) => {
|
6030
|
-
const [filePreview, setFilePreview] = (0,
|
6040
|
+
const [filePreview, setFilePreview] = (0, import_react92.useState)();
|
6031
6041
|
const toast2 = useToast();
|
6032
|
-
const handleRejection = (0,
|
6042
|
+
const handleRejection = (0, import_react92.useCallback)(
|
6033
6043
|
(message, file, image) => {
|
6034
6044
|
if (onHandleRejections) {
|
6035
6045
|
onHandleRejections(file, image);
|
@@ -6039,7 +6049,7 @@ var Uploader = ({
|
|
6039
6049
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
6040
6050
|
[onHandleRejections]
|
6041
6051
|
);
|
6042
|
-
const onDropAccepted = (0,
|
6052
|
+
const onDropAccepted = (0, import_react92.useCallback)(
|
6043
6053
|
(files) => {
|
6044
6054
|
const file = files[0];
|
6045
6055
|
const imageUrl = URL.createObjectURL(file);
|
@@ -6062,10 +6072,10 @@ var Uploader = ({
|
|
6062
6072
|
},
|
6063
6073
|
[acceptFormat, customValidation, dimension, handleRejection, maxFileSize, onHandleUploadFile]
|
6064
6074
|
);
|
6065
|
-
const onDropRejected = (0,
|
6075
|
+
const onDropRejected = (0, import_react92.useCallback)((fileRejections) => {
|
6066
6076
|
defaultOnHandleRejections(fileRejections, { acceptFormat, maxFileSize }, handleRejection);
|
6067
6077
|
}, []);
|
6068
|
-
const validator = (0,
|
6078
|
+
const validator = (0, import_react92.useCallback)(
|
6069
6079
|
(file) => {
|
6070
6080
|
const result = [];
|
6071
6081
|
if (validatorExt) {
|
@@ -6095,26 +6105,26 @@ var Uploader = ({
|
|
6095
6105
|
const renderHelperText = () => {
|
6096
6106
|
if (Array.isArray(helperText)) {
|
6097
6107
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6098
|
-
|
6108
|
+
import_react91.UnorderedList,
|
6099
6109
|
{
|
6100
6110
|
pl: 2,
|
6101
6111
|
fontSize: 12,
|
6102
6112
|
color: "black.medium",
|
6103
6113
|
"data-test-id": "CT_component_base-image-uploader_helperText",
|
6104
|
-
children: helperText.map((text2) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6114
|
+
children: helperText.map((text2) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react91.ListItem, { children: text2 }, text2))
|
6105
6115
|
}
|
6106
6116
|
);
|
6107
6117
|
}
|
6108
6118
|
return helperText;
|
6109
6119
|
};
|
6110
|
-
const renderErrorText = (text2) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6120
|
+
const renderErrorText = (text2) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react91.Box, { mb: 2, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react91.Text, { textStyle: "text.xs", color: "danger.500", children: text2 }) });
|
6111
6121
|
const handleRemove = (e) => {
|
6112
6122
|
e.stopPropagation();
|
6113
6123
|
setFilePreview(void 0);
|
6114
6124
|
onHandleUploadFile == null ? void 0 : onHandleUploadFile(null, null);
|
6115
6125
|
acceptedFiles.pop();
|
6116
6126
|
};
|
6117
|
-
(0,
|
6127
|
+
(0, import_react92.useEffect)(() => {
|
6118
6128
|
if (value) {
|
6119
6129
|
if (typeof value === "string") {
|
6120
6130
|
setFilePreview(value);
|
@@ -6130,16 +6140,16 @@ var Uploader = ({
|
|
6130
6140
|
const color = isDisabled ? "neutral.500" : "primary.500";
|
6131
6141
|
const containerHeight = !isSmall ? "160px" : "120px";
|
6132
6142
|
const cursorType = filePreview ? "initial" : "pointer";
|
6133
|
-
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
6143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react91.FormControl, { isRequired, children: [
|
6134
6144
|
label && typeof label === "string" ? (
|
6135
6145
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
6136
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
6137
|
-
isRequired && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6146
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react91.FormLabel, { requiredIndicator: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, {}), fontSize: "text.sm", children: [
|
6147
|
+
isRequired && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react91.RequiredIndicator, { mr: 1, ml: 0 }),
|
6138
6148
|
label
|
6139
6149
|
] })
|
6140
6150
|
) : label,
|
6141
6151
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
6142
|
-
|
6152
|
+
import_react91.Flex,
|
6143
6153
|
{
|
6144
6154
|
minH: containerHeight,
|
6145
6155
|
maxW: !isSmall ? "full" : "120px",
|
@@ -6156,8 +6166,8 @@ var Uploader = ({
|
|
6156
6166
|
...props,
|
6157
6167
|
...getRootProps(),
|
6158
6168
|
children: [
|
6159
|
-
filePreview && isShowCloseButton && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6160
|
-
|
6169
|
+
filePreview && isShowCloseButton && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react91.Box, { position: "absolute", top: 1, right: 1, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6170
|
+
import_react91.Button,
|
6161
6171
|
{
|
6162
6172
|
"data-test-id": `CT_component_base-image-uploader_remove-image${testId ? `_${testId}` : ""}`,
|
6163
6173
|
"aria-label": "remove-image",
|
@@ -6174,15 +6184,15 @@ var Uploader = ({
|
|
6174
6184
|
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_internal_icon12.Close, { size: 3, color: "white" })
|
6175
6185
|
}
|
6176
6186
|
) }),
|
6177
|
-
filePreview && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6178
|
-
|
6187
|
+
filePreview && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react91.Box, { w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6188
|
+
import_react91.Flex,
|
6179
6189
|
{
|
6180
6190
|
position: "relative",
|
6181
6191
|
"data-test-id": `CT_component_base-image-uploader_image-preview${testId ? `_${testId}` : ""}`,
|
6182
6192
|
justify: "center",
|
6183
6193
|
align: "center",
|
6184
6194
|
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6185
|
-
|
6195
|
+
import_react91.Image,
|
6186
6196
|
{
|
6187
6197
|
h: size2 === "lg" ? "120" : "100",
|
6188
6198
|
src: filePreview,
|
@@ -6192,11 +6202,11 @@ var Uploader = ({
|
|
6192
6202
|
)
|
6193
6203
|
}
|
6194
6204
|
) }),
|
6195
|
-
!filePreview && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6205
|
+
!filePreview && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react91.Text, { children: dragActiveText != null ? dragActiveText : messages.dragActive }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react91.Flex, { gap: 2, flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : color, children: [
|
6196
6206
|
size2 === "sm" && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_internal_icon12.Plus, { size: 6, color }),
|
6197
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
6207
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react91.Box, { children: [
|
6198
6208
|
!filePreview && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6199
|
-
|
6209
|
+
import_react91.Heading,
|
6200
6210
|
{
|
6201
6211
|
fontWeight: "400",
|
6202
6212
|
fontSize: size2 === "sm" ? "text.md" : "text.xl",
|
@@ -6205,7 +6215,7 @@ var Uploader = ({
|
|
6205
6215
|
children: uploadFileText && size2 === "lg" ? uploadFileText : "Upload"
|
6206
6216
|
}
|
6207
6217
|
),
|
6208
|
-
size2 === "lg" && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6218
|
+
size2 === "lg" && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react91.Text, { fontSize: 12, children: filePreview ? dragReplaceText != null ? dragReplaceText : messages.dragReplace : dragInActiveText != null ? dragInActiveText : messages.dragInActive })
|
6209
6219
|
] })
|
6210
6220
|
] }) })
|
6211
6221
|
]
|
@@ -6218,8 +6228,8 @@ var Uploader = ({
|
|
6218
6228
|
"data-test-id": `CT_component_base-image-uploader_change-img${testId ? `_${testId}` : ""}`
|
6219
6229
|
}
|
6220
6230
|
),
|
6221
|
-
filePreview && !isSmall && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6222
|
-
|
6231
|
+
filePreview && !isSmall && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react91.Flex, { align: "center", justify: "center", my: 2, children: isShowReupload && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
6232
|
+
import_react91.Button,
|
6223
6233
|
{
|
6224
6234
|
"data-test-id": `CT_component_base-image-uploader_change-img-btn${testId ? `_${testId}` : ""}`,
|
6225
6235
|
type: "button",
|
@@ -6265,10 +6275,10 @@ var dimensionValidator = (dimension, message) => {
|
|
6265
6275
|
};
|
6266
6276
|
|
6267
6277
|
// src/components/index.ts
|
6268
|
-
var
|
6278
|
+
var import_react93 = require("@chakra-ui/react");
|
6269
6279
|
|
6270
6280
|
// src/config/theme/themeConfiguration.ts
|
6271
|
-
var
|
6281
|
+
var import_react101 = require("@chakra-ui/react");
|
6272
6282
|
|
6273
6283
|
// src/config/theme/components/index.ts
|
6274
6284
|
var components_exports = {};
|
@@ -6825,8 +6835,8 @@ var card_default2 = CardStyle;
|
|
6825
6835
|
|
6826
6836
|
// src/config/theme/components/checkbox.ts
|
6827
6837
|
var import_anatomy3 = require("@chakra-ui/anatomy");
|
6828
|
-
var
|
6829
|
-
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0,
|
6838
|
+
var import_react94 = require("@chakra-ui/react");
|
6839
|
+
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0, import_react94.createMultiStyleConfigHelpers)(import_anatomy3.checkboxAnatomy.keys);
|
6830
6840
|
var baseStyle3 = definePartsStyle3({
|
6831
6841
|
control: {
|
6832
6842
|
borderRadius: "sm",
|
@@ -6927,8 +6937,8 @@ var checkbox_default2 = Checkbox4;
|
|
6927
6937
|
|
6928
6938
|
// src/config/theme/components/chips.ts
|
6929
6939
|
var import_anatomy4 = require("@chakra-ui/anatomy");
|
6930
|
-
var
|
6931
|
-
var { definePartsStyle: definePartsStyle4, defineMultiStyleConfig: defineMultiStyleConfig4 } = (0,
|
6940
|
+
var import_react95 = require("@chakra-ui/react");
|
6941
|
+
var { definePartsStyle: definePartsStyle4, defineMultiStyleConfig: defineMultiStyleConfig4 } = (0, import_react95.createMultiStyleConfigHelpers)(import_anatomy4.tagAnatomy.keys);
|
6932
6942
|
var baseStyle4 = definePartsStyle4({
|
6933
6943
|
container: {
|
6934
6944
|
px: 3,
|
@@ -7137,8 +7147,8 @@ var input_default = Input4;
|
|
7137
7147
|
|
7138
7148
|
// src/config/theme/components/loader.ts
|
7139
7149
|
var import_styled_system7 = require("@chakra-ui/styled-system");
|
7140
|
-
var
|
7141
|
-
var rotate = (0,
|
7150
|
+
var import_react96 = require("@emotion/react");
|
7151
|
+
var rotate = (0, import_react96.keyframes)({
|
7142
7152
|
"0%": {
|
7143
7153
|
transform: "rotate(0deg)"
|
7144
7154
|
},
|
@@ -7320,8 +7330,8 @@ var modal_default = modalTheme;
|
|
7320
7330
|
|
7321
7331
|
// src/config/theme/components/popover.ts
|
7322
7332
|
var import_anatomy7 = require("@chakra-ui/anatomy");
|
7323
|
-
var
|
7324
|
-
var { definePartsStyle: definePartsStyle7, defineMultiStyleConfig: defineMultiStyleConfig7 } = (0,
|
7333
|
+
var import_react97 = require("@chakra-ui/react");
|
7334
|
+
var { definePartsStyle: definePartsStyle7, defineMultiStyleConfig: defineMultiStyleConfig7 } = (0, import_react97.createMultiStyleConfigHelpers)(import_anatomy7.popoverAnatomy.keys);
|
7325
7335
|
var baseStyle8 = definePartsStyle7({
|
7326
7336
|
content: {
|
7327
7337
|
bg: "white"
|
@@ -7332,8 +7342,8 @@ var popover_default = popoverTheme;
|
|
7332
7342
|
|
7333
7343
|
// src/config/theme/components/radio.ts
|
7334
7344
|
var import_anatomy8 = require("@chakra-ui/anatomy");
|
7335
|
-
var
|
7336
|
-
var { definePartsStyle: definePartsStyle8, defineMultiStyleConfig: defineMultiStyleConfig8 } = (0,
|
7345
|
+
var import_react98 = require("@chakra-ui/react");
|
7346
|
+
var { definePartsStyle: definePartsStyle8, defineMultiStyleConfig: defineMultiStyleConfig8 } = (0, import_react98.createMultiStyleConfigHelpers)(import_anatomy8.radioAnatomy.keys);
|
7337
7347
|
var baseStyle9 = definePartsStyle8({
|
7338
7348
|
control: {
|
7339
7349
|
border: "1px solid",
|
@@ -7755,7 +7765,7 @@ var tabsTheme = defineMultiStyleConfig11({
|
|
7755
7765
|
var tabs_default = tabsTheme;
|
7756
7766
|
|
7757
7767
|
// src/config/theme/components/textarea.ts
|
7758
|
-
var
|
7768
|
+
var import_react99 = require("@chakra-ui/react");
|
7759
7769
|
var getProps = (props) => {
|
7760
7770
|
const { isError, isSuccess, isDisabled } = props;
|
7761
7771
|
let borderColor = "neutral.400";
|
@@ -7775,7 +7785,7 @@ var getProps = (props) => {
|
|
7775
7785
|
borderColor
|
7776
7786
|
};
|
7777
7787
|
};
|
7778
|
-
var outline3 = (0,
|
7788
|
+
var outline3 = (0, import_react99.defineStyle)((props) => {
|
7779
7789
|
const { focusBorderColor, borderColor } = getProps(props);
|
7780
7790
|
return {
|
7781
7791
|
background: "white.high",
|
@@ -7819,7 +7829,7 @@ var outline3 = (0, import_react98.defineStyle)((props) => {
|
|
7819
7829
|
}
|
7820
7830
|
};
|
7821
7831
|
});
|
7822
|
-
var Textarea = (0,
|
7832
|
+
var Textarea = (0, import_react99.defineStyleConfig)({
|
7823
7833
|
variants: { outline: outline3 },
|
7824
7834
|
defaultProps: {
|
7825
7835
|
variant: "outline"
|
@@ -7828,15 +7838,15 @@ var Textarea = (0, import_react98.defineStyleConfig)({
|
|
7828
7838
|
var textarea_default2 = Textarea;
|
7829
7839
|
|
7830
7840
|
// src/config/theme/components/tooltip.ts
|
7831
|
-
var
|
7832
|
-
var $arrowBg = (0,
|
7841
|
+
var import_react100 = require("@chakra-ui/react");
|
7842
|
+
var $arrowBg = (0, import_react100.cssVar)("popper-arrow-bg");
|
7833
7843
|
var baseStyle12 = {
|
7834
7844
|
bg: "neutral.700",
|
7835
7845
|
textStyle: "text.sm",
|
7836
7846
|
fontSize: "text.sm",
|
7837
7847
|
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
7838
7848
|
};
|
7839
|
-
var Tooltip2 = (0,
|
7849
|
+
var Tooltip2 = (0, import_react100.defineStyleConfig)({ baseStyle: baseStyle12 });
|
7840
7850
|
var tooltip_default = Tooltip2;
|
7841
7851
|
|
7842
7852
|
// src/config/theme/themeConfiguration.ts
|
@@ -7855,7 +7865,7 @@ var createExtendTheme = (theme5) => {
|
|
7855
7865
|
return function extendTheme2(...extensions) {
|
7856
7866
|
let overrides = [...extensions];
|
7857
7867
|
let activeTheme = extensions[extensions.length - 1];
|
7858
|
-
if ((0,
|
7868
|
+
if ((0, import_react101.isChakraTheme)(activeTheme) && // this ensures backward compatibility
|
7859
7869
|
// previously only `extendTheme(override, activeTheme?)` was allowed
|
7860
7870
|
overrides.length > 1) {
|
7861
7871
|
overrides = overrides.slice(0, overrides.length - 1);
|
@@ -7864,13 +7874,13 @@ var createExtendTheme = (theme5) => {
|
|
7864
7874
|
}
|
7865
7875
|
return pipe(
|
7866
7876
|
...overrides.map(
|
7867
|
-
(extension) => (prevTheme) => isFunction(extension) ? extension(prevTheme) : (0,
|
7877
|
+
(extension) => (prevTheme) => isFunction(extension) ? extension(prevTheme) : (0, import_react101.mergeThemeOverride)(prevTheme, extension)
|
7868
7878
|
)
|
7869
7879
|
)(activeTheme);
|
7870
7880
|
};
|
7871
7881
|
};
|
7872
7882
|
var getTheme = (foundations) => {
|
7873
|
-
return (0,
|
7883
|
+
return (0, import_react101.extendTheme)({
|
7874
7884
|
...foundations,
|
7875
7885
|
components: {
|
7876
7886
|
...components_exports
|
@@ -7887,7 +7897,7 @@ var getTheme = (foundations) => {
|
|
7887
7897
|
config
|
7888
7898
|
});
|
7889
7899
|
};
|
7890
|
-
var theme4 = (0,
|
7900
|
+
var theme4 = (0, import_react101.extendTheme)({
|
7891
7901
|
components: {
|
7892
7902
|
...components_exports
|
7893
7903
|
},
|
@@ -7907,23 +7917,23 @@ var theme4 = (0, import_react100.extendTheme)({
|
|
7907
7917
|
|
7908
7918
|
// src/hooks/useFetcher.ts
|
7909
7919
|
var import_axios2 = __toESM(require("axios"));
|
7910
|
-
var
|
7920
|
+
var import_react104 = require("react");
|
7911
7921
|
|
7912
7922
|
// src/provider/components/provider.tsx
|
7913
7923
|
var import_axios = __toESM(require("axios"));
|
7914
|
-
var
|
7924
|
+
var import_react102 = require("react");
|
7915
7925
|
var import_react_toastify3 = require("react-toastify");
|
7916
7926
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
7917
|
-
var ProviderContext = (0,
|
7927
|
+
var ProviderContext = (0, import_react102.createContext)({
|
7918
7928
|
instance: void 0
|
7919
7929
|
});
|
7920
7930
|
var useInternalUI = () => {
|
7921
|
-
const { instance } = (0,
|
7931
|
+
const { instance } = (0, import_react102.useContext)(ProviderContext);
|
7922
7932
|
return { instance };
|
7923
7933
|
};
|
7924
7934
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
7925
|
-
const instanceRef = (0,
|
7926
|
-
(0,
|
7935
|
+
const instanceRef = (0, import_react102.useRef)(import_axios.default.create(config2));
|
7936
|
+
(0, import_react102.useEffect)(() => {
|
7927
7937
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
7928
7938
|
instanceRef.current.interceptors.request.use(interceptor);
|
7929
7939
|
});
|
@@ -7931,7 +7941,7 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
7931
7941
|
instanceRef.current.interceptors.response.use(interceptor);
|
7932
7942
|
});
|
7933
7943
|
}, [requestInterceptors, responseInterceptors]);
|
7934
|
-
const provider = (0,
|
7944
|
+
const provider = (0, import_react102.useMemo)(() => ({ instance: instanceRef.current }), []);
|
7935
7945
|
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(ProviderContext.Provider, { value: provider, children: [
|
7936
7946
|
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_toastify3.ToastContainer, {}),
|
7937
7947
|
children
|
@@ -7941,12 +7951,12 @@ Provider.displayName = "Provider";
|
|
7941
7951
|
var provider_default = Provider;
|
7942
7952
|
|
7943
7953
|
// src/provider/index.ts
|
7944
|
-
var
|
7954
|
+
var import_react103 = require("@chakra-ui/react");
|
7945
7955
|
|
7946
7956
|
// src/hooks/useFetcher.ts
|
7947
7957
|
function useFetcher() {
|
7948
7958
|
const { instance } = useInternalUI();
|
7949
|
-
const axiosInstance = (0,
|
7959
|
+
const axiosInstance = (0, import_react104.useMemo)(() => instance || import_axios2.default, [instance]);
|
7950
7960
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
7951
7961
|
const response = await axiosInstance.request({
|
7952
7962
|
data,
|
@@ -7966,10 +7976,10 @@ function useFetcher() {
|
|
7966
7976
|
}
|
7967
7977
|
|
7968
7978
|
// src/hooks/index.ts
|
7969
|
-
var
|
7979
|
+
var import_react105 = require("@chakra-ui/react");
|
7970
7980
|
|
7971
7981
|
// src/index.ts
|
7972
|
-
var
|
7982
|
+
var import_react106 = require("@chakra-ui/react");
|
7973
7983
|
// Annotate the CommonJS export names for ESM import in node:
|
7974
7984
|
0 && (module.exports = {
|
7975
7985
|
Accordion,
|
@@ -8326,6 +8336,7 @@ var import_react105 = require("@chakra-ui/react");
|
|
8326
8336
|
useRadio,
|
8327
8337
|
useRadioGroup,
|
8328
8338
|
useRadioGroupContext,
|
8339
|
+
useSelectTable,
|
8329
8340
|
useSteps,
|
8330
8341
|
useTab,
|
8331
8342
|
useTabIndicator,
|