@ctlyst.id/internal-ui 3.1.7 → 3.1.9
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.js +558 -547
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +81 -83
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,36 +48,36 @@ __export(src_exports, {
|
|
|
48
48
|
AlertAction: () => AlertAction,
|
|
49
49
|
AlertClose: () => AlertClose,
|
|
50
50
|
AlertDescription: () => AlertDescription,
|
|
51
|
-
AlertDialog: () =>
|
|
52
|
-
AlertDialogBody: () =>
|
|
53
|
-
AlertDialogCloseButton: () =>
|
|
54
|
-
AlertDialogContent: () =>
|
|
55
|
-
AlertDialogFooter: () =>
|
|
56
|
-
AlertDialogHeader: () =>
|
|
57
|
-
AlertDialogOverlay: () =>
|
|
58
|
-
AlertDialogProps: () =>
|
|
51
|
+
AlertDialog: () => import_react53.AlertDialog,
|
|
52
|
+
AlertDialogBody: () => import_react53.ModalBody,
|
|
53
|
+
AlertDialogCloseButton: () => import_react53.ModalCloseButton,
|
|
54
|
+
AlertDialogContent: () => import_react53.AlertDialogContent,
|
|
55
|
+
AlertDialogFooter: () => import_react53.ModalFooter,
|
|
56
|
+
AlertDialogHeader: () => import_react53.ModalHeader,
|
|
57
|
+
AlertDialogOverlay: () => import_react53.ModalOverlay,
|
|
58
|
+
AlertDialogProps: () => import_react53.AlertDialogProps,
|
|
59
59
|
AlertIcon: () => AlertIcon,
|
|
60
60
|
AlertTitle: () => AlertTitle,
|
|
61
61
|
Anchor: () => Anchor,
|
|
62
|
-
Avatar: () =>
|
|
63
|
-
AvatarBadge: () =>
|
|
64
|
-
AvatarBadgeProps: () =>
|
|
65
|
-
AvatarGroup: () =>
|
|
66
|
-
AvatarGroupProps: () =>
|
|
67
|
-
AvatarProps: () =>
|
|
62
|
+
Avatar: () => import_react88.Avatar,
|
|
63
|
+
AvatarBadge: () => import_react88.AvatarBadge,
|
|
64
|
+
AvatarBadgeProps: () => import_react88.AvatarBadgeProps,
|
|
65
|
+
AvatarGroup: () => import_react88.AvatarGroup,
|
|
66
|
+
AvatarGroupProps: () => import_react88.AvatarGroupProps,
|
|
67
|
+
AvatarProps: () => import_react88.AvatarProps,
|
|
68
68
|
Badge: () => badge_default,
|
|
69
|
-
Box: () =>
|
|
70
|
-
BoxProps: () =>
|
|
69
|
+
Box: () => import_react50.Box,
|
|
70
|
+
BoxProps: () => import_react50.BoxProps,
|
|
71
71
|
BreadCrumb: () => bread_crumb_default,
|
|
72
72
|
Button: () => button_default,
|
|
73
73
|
ButtonGroup: () => import_react10.ButtonGroup,
|
|
74
74
|
ButtonGroupProps: () => import_react10.ButtonGroupProps,
|
|
75
75
|
CHECKBOX_STATE: () => CHECKBOX_STATE,
|
|
76
76
|
Card: () => card_default,
|
|
77
|
-
Center: () =>
|
|
78
|
-
ChakraProvider: () =>
|
|
79
|
-
ChakraProviderProps: () =>
|
|
80
|
-
ChakraTable: () =>
|
|
77
|
+
Center: () => import_react50.Center,
|
|
78
|
+
ChakraProvider: () => import_react98.ChakraProvider,
|
|
79
|
+
ChakraProviderProps: () => import_react98.ChakraProviderProps,
|
|
80
|
+
ChakraTable: () => import_react79.Table,
|
|
81
81
|
Checkbox: () => checkbox_default,
|
|
82
82
|
CheckboxGroup: () => checkbox_group_default,
|
|
83
83
|
CheckboxGroupContext: () => import_react16.CheckboxGroupContext,
|
|
@@ -89,62 +89,62 @@ __export(src_exports, {
|
|
|
89
89
|
ClearIndicator: () => ClearIndicator,
|
|
90
90
|
CloseButton: () => import_react10.CloseButton,
|
|
91
91
|
CloseButtonProps: () => import_react10.CloseButtonProps,
|
|
92
|
-
Code: () =>
|
|
93
|
-
CodeProps: () =>
|
|
94
|
-
Collapse: () =>
|
|
95
|
-
CollapseProps: () =>
|
|
96
|
-
ColorMode: () =>
|
|
97
|
-
ColorModeScript: () =>
|
|
98
|
-
ColorModeScriptProps: () =>
|
|
99
|
-
Container: () =>
|
|
100
|
-
ContainerProps: () =>
|
|
92
|
+
Code: () => import_react82.Code,
|
|
93
|
+
CodeProps: () => import_react82.CodeProps,
|
|
94
|
+
Collapse: () => import_react88.Collapse,
|
|
95
|
+
CollapseProps: () => import_react88.CollapseProps,
|
|
96
|
+
ColorMode: () => import_react98.ColorMode,
|
|
97
|
+
ColorModeScript: () => import_react98.ColorModeScript,
|
|
98
|
+
ColorModeScriptProps: () => import_react98.ColorModeScriptProps,
|
|
99
|
+
Container: () => import_react50.Container,
|
|
100
|
+
ContainerProps: () => import_react50.ContainerProps,
|
|
101
101
|
Counter: () => counter_default,
|
|
102
102
|
DataTable: () => data_table_default,
|
|
103
103
|
DatePickerMonth: () => datepicker_month_default,
|
|
104
104
|
Datepicker: () => datepicker_default,
|
|
105
105
|
Dialog: () => dialog_default,
|
|
106
|
-
Divider: () =>
|
|
107
|
-
DividerProps: () =>
|
|
108
|
-
Drawer: () =>
|
|
109
|
-
DrawerBody: () =>
|
|
110
|
-
DrawerCloseButton: () =>
|
|
111
|
-
DrawerContent: () =>
|
|
112
|
-
DrawerContentProps: () =>
|
|
113
|
-
DrawerFooter: () =>
|
|
114
|
-
DrawerHeader: () =>
|
|
115
|
-
DrawerOverlay: () =>
|
|
116
|
-
DrawerProps: () =>
|
|
106
|
+
Divider: () => import_react50.Divider,
|
|
107
|
+
DividerProps: () => import_react50.DividerProps,
|
|
108
|
+
Drawer: () => import_react53.Drawer,
|
|
109
|
+
DrawerBody: () => import_react53.ModalBody,
|
|
110
|
+
DrawerCloseButton: () => import_react53.ModalCloseButton,
|
|
111
|
+
DrawerContent: () => import_react53.DrawerContent,
|
|
112
|
+
DrawerContentProps: () => import_react53.DrawerContentProps,
|
|
113
|
+
DrawerFooter: () => import_react53.ModalFooter,
|
|
114
|
+
DrawerHeader: () => import_react53.ModalHeader,
|
|
115
|
+
DrawerOverlay: () => import_react53.ModalOverlay,
|
|
116
|
+
DrawerProps: () => import_react53.DrawerProps,
|
|
117
117
|
DropdownIndicator: () => DropdownIndicator,
|
|
118
118
|
EmptyState: () => empty_state_default,
|
|
119
|
-
Fade: () =>
|
|
120
|
-
FadeProps: () =>
|
|
119
|
+
Fade: () => import_react88.Fade,
|
|
120
|
+
FadeProps: () => import_react88.FadeProps,
|
|
121
121
|
Field: () => field_default,
|
|
122
|
-
Flex: () =>
|
|
123
|
-
FlexProps: () =>
|
|
122
|
+
Flex: () => import_react50.Flex,
|
|
123
|
+
FlexProps: () => import_react50.FlexProps,
|
|
124
124
|
FormControl: () => import_react25.FormControl,
|
|
125
125
|
FormControlProps: () => import_react25.FormControlProps,
|
|
126
126
|
FormErrorMessage: () => import_react25.FormErrorMessage,
|
|
127
127
|
FormHelperText: () => import_react25.FormHelperText,
|
|
128
128
|
FormLabel: () => import_react25.FormLabel,
|
|
129
129
|
FormLabelProps: () => import_react25.FormLabelProps,
|
|
130
|
-
Grid: () =>
|
|
131
|
-
GridItem: () =>
|
|
132
|
-
GridItemProps: () =>
|
|
133
|
-
GridProps: () =>
|
|
134
|
-
HStack: () =>
|
|
130
|
+
Grid: () => import_react50.Grid,
|
|
131
|
+
GridItem: () => import_react50.GridItem,
|
|
132
|
+
GridItemProps: () => import_react50.GridItemProps,
|
|
133
|
+
GridProps: () => import_react50.GridProps,
|
|
134
|
+
HStack: () => import_react50.HStack,
|
|
135
135
|
Header: () => Header,
|
|
136
|
-
Heading: () =>
|
|
137
|
-
HeadingProps: () =>
|
|
138
|
-
Hide: () =>
|
|
139
|
-
HideProps: () =>
|
|
140
|
-
Icon: () =>
|
|
136
|
+
Heading: () => import_react82.Heading,
|
|
137
|
+
HeadingProps: () => import_react82.HeadingProps,
|
|
138
|
+
Hide: () => import_react88.Hide,
|
|
139
|
+
HideProps: () => import_react88.HideProps,
|
|
140
|
+
Icon: () => import_react49.Icon,
|
|
141
141
|
IconButton: () => import_react10.IconButton,
|
|
142
142
|
IconButtonProps: () => import_react10.IconButtonProps,
|
|
143
|
-
IconProps: () =>
|
|
144
|
-
Image: () =>
|
|
145
|
-
ImageProps: () =>
|
|
146
|
-
Img: () =>
|
|
147
|
-
ImgProps: () =>
|
|
143
|
+
IconProps: () => import_react49.IconProps,
|
|
144
|
+
Image: () => import_react49.Image,
|
|
145
|
+
ImageProps: () => import_react49.ImageProps,
|
|
146
|
+
Img: () => import_react88.Img,
|
|
147
|
+
ImgProps: () => import_react88.ImgProps,
|
|
148
148
|
InputAddonLeft: () => InputAddonLeft,
|
|
149
149
|
InputAddonRight: () => InputAddonRight,
|
|
150
150
|
InputElementLeft: () => import_react19.InputLeftElement,
|
|
@@ -161,186 +161,186 @@ __export(src_exports, {
|
|
|
161
161
|
InputRightAddonProps: () => import_react25.InputRightAddonProps,
|
|
162
162
|
InputRightElement: () => import_react25.InputRightElement,
|
|
163
163
|
InputRightElementProps: () => import_react25.InputRightElementProps,
|
|
164
|
-
Link: () =>
|
|
165
|
-
LinkProps: () =>
|
|
166
|
-
List: () =>
|
|
167
|
-
ListIcon: () =>
|
|
168
|
-
ListItem: () =>
|
|
169
|
-
ListItemProps: () =>
|
|
170
|
-
ListProps: () =>
|
|
164
|
+
Link: () => import_react82.Link,
|
|
165
|
+
LinkProps: () => import_react82.LinkProps,
|
|
166
|
+
List: () => import_react51.List,
|
|
167
|
+
ListIcon: () => import_react51.ListIcon,
|
|
168
|
+
ListItem: () => import_react51.ListItem,
|
|
169
|
+
ListItemProps: () => import_react51.ListItemProps,
|
|
170
|
+
ListProps: () => import_react51.ListProps,
|
|
171
171
|
Loader: () => loader_default,
|
|
172
172
|
Logo: () => Logo,
|
|
173
173
|
MainMenu: () => navigation_default,
|
|
174
|
-
Modal: () =>
|
|
174
|
+
Modal: () => import_react53.Modal,
|
|
175
175
|
ModalBackButton: () => modal_back_button_default,
|
|
176
|
-
ModalBody: () =>
|
|
177
|
-
ModalBodyProps: () =>
|
|
178
|
-
ModalCloseButton: () =>
|
|
179
|
-
ModalContent: () =>
|
|
180
|
-
ModalContentProps: () =>
|
|
181
|
-
ModalContextProvider: () =>
|
|
182
|
-
ModalFocusScope: () =>
|
|
183
|
-
ModalFooter: () =>
|
|
184
|
-
ModalFooterProps: () =>
|
|
185
|
-
ModalHeader: () =>
|
|
186
|
-
ModalHeaderProps: () =>
|
|
187
|
-
ModalOverlay: () =>
|
|
188
|
-
ModalOverlayProps: () =>
|
|
189
|
-
ModalProps: () =>
|
|
176
|
+
ModalBody: () => import_react53.ModalBody,
|
|
177
|
+
ModalBodyProps: () => import_react53.ModalBodyProps,
|
|
178
|
+
ModalCloseButton: () => import_react53.ModalCloseButton,
|
|
179
|
+
ModalContent: () => import_react53.ModalContent,
|
|
180
|
+
ModalContentProps: () => import_react53.ModalContentProps,
|
|
181
|
+
ModalContextProvider: () => import_react53.ModalContextProvider,
|
|
182
|
+
ModalFocusScope: () => import_react53.ModalFocusScope,
|
|
183
|
+
ModalFooter: () => import_react53.ModalFooter,
|
|
184
|
+
ModalFooterProps: () => import_react53.ModalFooterProps,
|
|
185
|
+
ModalHeader: () => import_react53.ModalHeader,
|
|
186
|
+
ModalHeaderProps: () => import_react53.ModalHeaderProps,
|
|
187
|
+
ModalOverlay: () => import_react53.ModalOverlay,
|
|
188
|
+
ModalOverlayProps: () => import_react53.ModalOverlayProps,
|
|
189
|
+
ModalProps: () => import_react53.ModalProps,
|
|
190
190
|
MultiDatePickerMonth: () => multi_datepicker_month_default,
|
|
191
191
|
MultiValue: () => MultiValue,
|
|
192
192
|
MultiValueRemove: () => MultiValueRemove,
|
|
193
193
|
NavItem: () => NavItem,
|
|
194
194
|
Navbar: () => Navbar,
|
|
195
195
|
NavigationBar: () => navigation_bar_default,
|
|
196
|
-
OrderedList: () =>
|
|
196
|
+
OrderedList: () => import_react51.OrderedList,
|
|
197
197
|
Pagination: () => pagination_default,
|
|
198
198
|
PaginationDetail: () => pagination_detail_default,
|
|
199
199
|
PaginationFilter: () => pagination_filter_default,
|
|
200
|
-
PinInput: () =>
|
|
201
|
-
PinInputContext: () =>
|
|
202
|
-
PinInputDescendantsProvider: () =>
|
|
203
|
-
PinInputField: () =>
|
|
204
|
-
PinInputFieldProps: () =>
|
|
205
|
-
PinInputProps: () =>
|
|
206
|
-
PinInputProvider: () =>
|
|
207
|
-
Popover: () =>
|
|
208
|
-
PopoverAnchor: () =>
|
|
209
|
-
PopoverArrow: () =>
|
|
210
|
-
PopoverArrowProps: () =>
|
|
211
|
-
PopoverBody: () =>
|
|
212
|
-
PopoverBodyProps: () =>
|
|
213
|
-
PopoverCloseButton: () =>
|
|
214
|
-
PopoverContent: () =>
|
|
215
|
-
PopoverContentProps: () =>
|
|
216
|
-
PopoverFooter: () =>
|
|
217
|
-
PopoverFooterProps: () =>
|
|
218
|
-
PopoverHeader: () =>
|
|
219
|
-
PopoverHeaderProps: () =>
|
|
220
|
-
PopoverProps: () =>
|
|
221
|
-
PopoverTrigger: () =>
|
|
222
|
-
Portal: () =>
|
|
223
|
-
PortalProps: () =>
|
|
200
|
+
PinInput: () => import_react62.PinInput,
|
|
201
|
+
PinInputContext: () => import_react62.PinInputContext,
|
|
202
|
+
PinInputDescendantsProvider: () => import_react62.PinInputDescendantsProvider,
|
|
203
|
+
PinInputField: () => import_react62.PinInputField,
|
|
204
|
+
PinInputFieldProps: () => import_react62.PinInputFieldProps,
|
|
205
|
+
PinInputProps: () => import_react62.PinInputProps,
|
|
206
|
+
PinInputProvider: () => import_react62.PinInputProvider,
|
|
207
|
+
Popover: () => import_react63.Popover,
|
|
208
|
+
PopoverAnchor: () => import_react63.PopoverAnchor,
|
|
209
|
+
PopoverArrow: () => import_react63.PopoverArrow,
|
|
210
|
+
PopoverArrowProps: () => import_react63.PopoverArrowProps,
|
|
211
|
+
PopoverBody: () => import_react63.PopoverBody,
|
|
212
|
+
PopoverBodyProps: () => import_react63.PopoverBodyProps,
|
|
213
|
+
PopoverCloseButton: () => import_react63.PopoverCloseButton,
|
|
214
|
+
PopoverContent: () => import_react63.PopoverContent,
|
|
215
|
+
PopoverContentProps: () => import_react63.PopoverContentProps,
|
|
216
|
+
PopoverFooter: () => import_react63.PopoverFooter,
|
|
217
|
+
PopoverFooterProps: () => import_react63.PopoverFooterProps,
|
|
218
|
+
PopoverHeader: () => import_react63.PopoverHeader,
|
|
219
|
+
PopoverHeaderProps: () => import_react63.PopoverHeaderProps,
|
|
220
|
+
PopoverProps: () => import_react63.PopoverProps,
|
|
221
|
+
PopoverTrigger: () => import_react63.PopoverTrigger,
|
|
222
|
+
Portal: () => import_react63.Portal,
|
|
223
|
+
PortalProps: () => import_react63.PortalProps,
|
|
224
224
|
Profile: () => Profile,
|
|
225
|
-
Progress: () =>
|
|
226
|
-
ProgressFilledTrackProps: () =>
|
|
227
|
-
ProgressLabel: () =>
|
|
228
|
-
ProgressLabelProps: () =>
|
|
229
|
-
ProgressProps: () =>
|
|
230
|
-
ProgressTrackProps: () =>
|
|
225
|
+
Progress: () => import_react64.Progress,
|
|
226
|
+
ProgressFilledTrackProps: () => import_react64.ProgressFilledTrackProps,
|
|
227
|
+
ProgressLabel: () => import_react64.ProgressLabel,
|
|
228
|
+
ProgressLabelProps: () => import_react64.ProgressLabelProps,
|
|
229
|
+
ProgressProps: () => import_react64.ProgressProps,
|
|
230
|
+
ProgressTrackProps: () => import_react64.ProgressTrackProps,
|
|
231
231
|
Provider: () => provider_default,
|
|
232
232
|
ProviderContext: () => ProviderContext,
|
|
233
233
|
Radio: () => Radio,
|
|
234
234
|
RadioGroup: () => RadioGroup,
|
|
235
|
-
RadioGroupContext: () =>
|
|
235
|
+
RadioGroupContext: () => import_react67.RadioGroupContext,
|
|
236
236
|
Rating: () => rating_default,
|
|
237
237
|
RequiredIndicator: () => import_react25.RequiredIndicator,
|
|
238
238
|
RequiredIndicatorProps: () => import_react25.RequiredIndicatorProps,
|
|
239
|
-
ScaleFade: () =>
|
|
240
|
-
ScaleFadeProps: () =>
|
|
239
|
+
ScaleFade: () => import_react88.ScaleFade,
|
|
240
|
+
ScaleFadeProps: () => import_react88.ScaleFadeProps,
|
|
241
241
|
Select: () => select_default,
|
|
242
242
|
SelectAsync: () => select_async_default,
|
|
243
243
|
SelectAsyncCreatable: () => SelectAsyncCreatable,
|
|
244
244
|
SelectCheckBox: () => select_with_checkbox_default,
|
|
245
245
|
SelectCreatable: () => SelectCreatable,
|
|
246
|
-
Show: () =>
|
|
247
|
-
ShowProps: () =>
|
|
246
|
+
Show: () => import_react88.Show,
|
|
247
|
+
ShowProps: () => import_react88.ShowProps,
|
|
248
248
|
Sidebar: () => Sidebar,
|
|
249
249
|
SidebarHeader: () => SidebarHeader,
|
|
250
250
|
SidebarMenu: () => SidebarMenu,
|
|
251
|
-
SimpleGrid: () =>
|
|
251
|
+
SimpleGrid: () => import_react50.SimpleGrid,
|
|
252
252
|
Skeleton: () => import_react5.Skeleton,
|
|
253
|
-
Slide: () =>
|
|
254
|
-
SlideFade: () =>
|
|
255
|
-
SlideFadeProps: () =>
|
|
256
|
-
SlideProps: () =>
|
|
257
|
-
Spacer: () =>
|
|
258
|
-
Stack: () =>
|
|
259
|
-
StackProps: () =>
|
|
260
|
-
Step: () =>
|
|
261
|
-
StepDescription: () =>
|
|
262
|
-
StepIcon: () =>
|
|
263
|
-
StepIndicator: () =>
|
|
264
|
-
StepNumber: () =>
|
|
265
|
-
StepSeparator: () =>
|
|
266
|
-
StepStatus: () =>
|
|
267
|
-
StepTitle: () =>
|
|
268
|
-
Stepper: () =>
|
|
253
|
+
Slide: () => import_react88.Slide,
|
|
254
|
+
SlideFade: () => import_react88.SlideFade,
|
|
255
|
+
SlideFadeProps: () => import_react88.SlideFadeProps,
|
|
256
|
+
SlideProps: () => import_react88.SlideProps,
|
|
257
|
+
Spacer: () => import_react50.Spacer,
|
|
258
|
+
Stack: () => import_react50.Stack,
|
|
259
|
+
StackProps: () => import_react50.StackProps,
|
|
260
|
+
Step: () => import_react88.Step,
|
|
261
|
+
StepDescription: () => import_react88.StepDescription,
|
|
262
|
+
StepIcon: () => import_react88.StepIcon,
|
|
263
|
+
StepIndicator: () => import_react88.StepIndicator,
|
|
264
|
+
StepNumber: () => import_react88.StepNumber,
|
|
265
|
+
StepSeparator: () => import_react88.StepSeparator,
|
|
266
|
+
StepStatus: () => import_react88.StepStatus,
|
|
267
|
+
StepTitle: () => import_react88.StepTitle,
|
|
268
|
+
Stepper: () => import_react88.Stepper,
|
|
269
269
|
Switch: () => switch_default,
|
|
270
270
|
Tab: () => tab_default,
|
|
271
|
-
TabIndicator: () =>
|
|
272
|
-
TabIndicatorProps: () =>
|
|
273
|
-
TabList: () =>
|
|
274
|
-
TabListProps: () =>
|
|
275
|
-
TabPanel: () =>
|
|
276
|
-
TabPanelProps: () =>
|
|
277
|
-
TabPanels: () =>
|
|
278
|
-
TabPanelsProps: () =>
|
|
279
|
-
TabProps: () =>
|
|
280
|
-
TableBodyProps: () =>
|
|
281
|
-
TableCellProps: () =>
|
|
282
|
-
TableColumnHeaderProps: () =>
|
|
283
|
-
TableHeadProps: () =>
|
|
284
|
-
TableProps: () =>
|
|
285
|
-
TableRowProps: () =>
|
|
286
|
-
Tabs: () =>
|
|
287
|
-
TabsDescendantsProvider: () =>
|
|
288
|
-
TabsProps: () =>
|
|
289
|
-
TabsProvider: () =>
|
|
290
|
-
Tbody: () =>
|
|
291
|
-
Td: () =>
|
|
292
|
-
Text: () =>
|
|
293
|
-
TextProps: () =>
|
|
271
|
+
TabIndicator: () => import_react81.TabIndicator,
|
|
272
|
+
TabIndicatorProps: () => import_react81.TabIndicatorProps,
|
|
273
|
+
TabList: () => import_react81.TabList,
|
|
274
|
+
TabListProps: () => import_react81.TabListProps,
|
|
275
|
+
TabPanel: () => import_react81.TabPanel,
|
|
276
|
+
TabPanelProps: () => import_react81.TabPanelProps,
|
|
277
|
+
TabPanels: () => import_react81.TabPanels,
|
|
278
|
+
TabPanelsProps: () => import_react81.TabPanelsProps,
|
|
279
|
+
TabProps: () => import_react81.TabProps,
|
|
280
|
+
TableBodyProps: () => import_react79.TableBodyProps,
|
|
281
|
+
TableCellProps: () => import_react79.TableCellProps,
|
|
282
|
+
TableColumnHeaderProps: () => import_react79.TableColumnHeaderProps,
|
|
283
|
+
TableHeadProps: () => import_react79.TableHeadProps,
|
|
284
|
+
TableProps: () => import_react79.TableProps,
|
|
285
|
+
TableRowProps: () => import_react79.TableRowProps,
|
|
286
|
+
Tabs: () => import_react81.Tabs,
|
|
287
|
+
TabsDescendantsProvider: () => import_react81.TabsDescendantsProvider,
|
|
288
|
+
TabsProps: () => import_react81.TabsProps,
|
|
289
|
+
TabsProvider: () => import_react81.TabsProvider,
|
|
290
|
+
Tbody: () => import_react79.Tbody,
|
|
291
|
+
Td: () => import_react79.Td,
|
|
292
|
+
Text: () => import_react82.Text,
|
|
293
|
+
TextProps: () => import_react82.TextProps,
|
|
294
294
|
TextareaField: () => textarea_default,
|
|
295
|
-
Th: () =>
|
|
296
|
-
Thead: () =>
|
|
295
|
+
Th: () => import_react79.Th,
|
|
296
|
+
Thead: () => import_react79.Thead,
|
|
297
297
|
ThemeTypings: () => import_styled_system12.ThemeTypings,
|
|
298
298
|
ToastContainer: () => import_react_toastify2.ToastContainer,
|
|
299
299
|
Tooltip: () => Tooltip,
|
|
300
|
-
Tr: () =>
|
|
301
|
-
UnorderedList: () =>
|
|
300
|
+
Tr: () => import_react79.Tr,
|
|
301
|
+
UnorderedList: () => import_react51.UnorderedList,
|
|
302
302
|
Uploader: () => uploader_default,
|
|
303
303
|
UseAccordionItemProps: () => import_react3.UseAccordionItemProps,
|
|
304
304
|
UseAccordionItemReturn: () => import_react3.UseAccordionItemReturn,
|
|
305
305
|
UseAccordionProps: () => import_react3.UseAccordionProps,
|
|
306
306
|
UseAccordionReturn: () => import_react3.UseAccordionReturn,
|
|
307
|
-
UseBreakpointOptions: () =>
|
|
307
|
+
UseBreakpointOptions: () => import_react88.UseBreakpointOptions,
|
|
308
308
|
UseCheckboxGroupProps: () => import_react16.UseCheckboxGroupProps,
|
|
309
309
|
UseCheckboxGroupReturn: () => import_react16.UseCheckboxGroupReturn,
|
|
310
310
|
UseCheckboxProps: () => import_react16.UseCheckboxProps,
|
|
311
311
|
UseCheckboxReturn: () => import_react16.UseCheckboxReturn,
|
|
312
|
-
UseDisclosureProps: () =>
|
|
313
|
-
UseImageProps: () =>
|
|
314
|
-
UseImageReturn: () =>
|
|
315
|
-
UseMediaQueryOptions: () =>
|
|
316
|
-
UseModalProps: () =>
|
|
317
|
-
UseModalReturn: () =>
|
|
318
|
-
UsePinInputFieldProps: () =>
|
|
319
|
-
UsePinInputProps: () =>
|
|
320
|
-
UsePinInputReturn: () =>
|
|
321
|
-
UseQueryProps: () =>
|
|
322
|
-
UseRadioGroupReturn: () =>
|
|
323
|
-
UseRadioProps: () =>
|
|
324
|
-
UseRadioReturn: () =>
|
|
325
|
-
UseTabListProps: () =>
|
|
326
|
-
UseTabListReturn: () =>
|
|
327
|
-
UseTabOptions: () =>
|
|
328
|
-
UseTabPanelsProps: () =>
|
|
329
|
-
UseTabProps: () =>
|
|
330
|
-
UseTabsProps: () =>
|
|
331
|
-
UseTabsReturn: () =>
|
|
332
|
-
VStack: () =>
|
|
312
|
+
UseDisclosureProps: () => import_react100.UseDisclosureProps,
|
|
313
|
+
UseImageProps: () => import_react88.UseImageProps,
|
|
314
|
+
UseImageReturn: () => import_react88.UseImageReturn,
|
|
315
|
+
UseMediaQueryOptions: () => import_react88.UseMediaQueryOptions,
|
|
316
|
+
UseModalProps: () => import_react53.UseModalProps,
|
|
317
|
+
UseModalReturn: () => import_react53.UseModalReturn,
|
|
318
|
+
UsePinInputFieldProps: () => import_react62.UsePinInputFieldProps,
|
|
319
|
+
UsePinInputProps: () => import_react62.UsePinInputProps,
|
|
320
|
+
UsePinInputReturn: () => import_react62.UsePinInputReturn,
|
|
321
|
+
UseQueryProps: () => import_react88.UseQueryProps,
|
|
322
|
+
UseRadioGroupReturn: () => import_react67.UseRadioGroupReturn,
|
|
323
|
+
UseRadioProps: () => import_react67.UseRadioProps,
|
|
324
|
+
UseRadioReturn: () => import_react67.UseRadioReturn,
|
|
325
|
+
UseTabListProps: () => import_react81.UseTabListProps,
|
|
326
|
+
UseTabListReturn: () => import_react81.UseTabListReturn,
|
|
327
|
+
UseTabOptions: () => import_react81.UseTabOptions,
|
|
328
|
+
UseTabPanelsProps: () => import_react81.UseTabPanelsProps,
|
|
329
|
+
UseTabProps: () => import_react81.UseTabProps,
|
|
330
|
+
UseTabsProps: () => import_react81.UseTabsProps,
|
|
331
|
+
UseTabsReturn: () => import_react81.UseTabsReturn,
|
|
332
|
+
VStack: () => import_react50.VStack,
|
|
333
333
|
Version: () => Version,
|
|
334
|
-
VisuallyHidden: () =>
|
|
335
|
-
VisuallyHiddenInput: () =>
|
|
334
|
+
VisuallyHidden: () => import_react88.VisuallyHidden,
|
|
335
|
+
VisuallyHiddenInput: () => import_react88.VisuallyHiddenInput,
|
|
336
336
|
VoilaLogo: () => VoilaLogo,
|
|
337
|
-
Wrap: () =>
|
|
338
|
-
WrapItem: () =>
|
|
339
|
-
WrapItemProps: () =>
|
|
340
|
-
WrapProps: () =>
|
|
337
|
+
Wrap: () => import_react50.Wrap,
|
|
338
|
+
WrapItem: () => import_react50.WrapItem,
|
|
339
|
+
WrapItemProps: () => import_react50.WrapItemProps,
|
|
340
|
+
WrapProps: () => import_react50.WrapProps,
|
|
341
341
|
XMSLogo: () => XMSLogo,
|
|
342
|
-
extendTheme: () =>
|
|
343
|
-
forwardRef: () =>
|
|
342
|
+
extendTheme: () => import_react101.extendTheme,
|
|
343
|
+
forwardRef: () => import_react101.forwardRef,
|
|
344
344
|
getSelectAllCheckboxState: () => getSelectAllCheckboxState,
|
|
345
345
|
getTheme: () => getTheme,
|
|
346
346
|
isCellDisabled: () => isCellDisabled,
|
|
@@ -353,52 +353,52 @@ __export(src_exports, {
|
|
|
353
353
|
useAccordionItemState: () => import_react3.useAccordionItemState,
|
|
354
354
|
useAccordionStyles: () => import_react3.useAccordionStyles,
|
|
355
355
|
useAlertStyles: () => useAlertStyles,
|
|
356
|
-
useBoolean: () =>
|
|
357
|
-
useBreakpoint: () =>
|
|
356
|
+
useBoolean: () => import_react100.useBoolean,
|
|
357
|
+
useBreakpoint: () => import_react88.useBreakpoint,
|
|
358
358
|
useCheckbox: () => import_react16.useCheckbox,
|
|
359
359
|
useCheckboxGroup: () => import_react16.useCheckboxGroup,
|
|
360
|
-
useClipboard: () =>
|
|
361
|
-
useColorMode: () =>
|
|
362
|
-
useColorModePreference: () =>
|
|
363
|
-
useColorModeValue: () =>
|
|
364
|
-
useConst: () =>
|
|
365
|
-
useControllableProp: () =>
|
|
366
|
-
useControllableState: () =>
|
|
360
|
+
useClipboard: () => import_react100.useClipboard,
|
|
361
|
+
useColorMode: () => import_react100.useColorMode,
|
|
362
|
+
useColorModePreference: () => import_react88.useColorModePreference,
|
|
363
|
+
useColorModeValue: () => import_react100.useColorModeValue,
|
|
364
|
+
useConst: () => import_react100.useConst,
|
|
365
|
+
useControllableProp: () => import_react100.useControllableProp,
|
|
366
|
+
useControllableState: () => import_react100.useControllableState,
|
|
367
367
|
useDataTable: () => useDataTable,
|
|
368
|
-
useDimensions: () =>
|
|
369
|
-
useDisclosure: () =>
|
|
370
|
-
useDrawerContext: () =>
|
|
368
|
+
useDimensions: () => import_react100.useDimensions,
|
|
369
|
+
useDisclosure: () => import_react100.useDisclosure,
|
|
370
|
+
useDrawerContext: () => import_react53.useDrawerContext,
|
|
371
371
|
useFetcher: () => useFetcher,
|
|
372
|
-
useImage: () =>
|
|
372
|
+
useImage: () => import_react88.useImage,
|
|
373
373
|
useInternalUI: () => useInternalUI,
|
|
374
|
-
useMergeRefs: () =>
|
|
375
|
-
useModal: () =>
|
|
376
|
-
useModalContext: () =>
|
|
377
|
-
useModalStyles: () =>
|
|
378
|
-
useOutsideClick: () =>
|
|
379
|
-
usePinInput: () =>
|
|
380
|
-
usePinInputContext: () =>
|
|
381
|
-
usePinInputField: () =>
|
|
382
|
-
useProgressStyles: () =>
|
|
383
|
-
useQuery: () =>
|
|
384
|
-
useRadio: () =>
|
|
385
|
-
useRadioGroup: () =>
|
|
386
|
-
useRadioGroupContext: () =>
|
|
387
|
-
useSteps: () =>
|
|
388
|
-
useTab: () =>
|
|
389
|
-
useTabIndicator: () =>
|
|
390
|
-
useTabList: () =>
|
|
391
|
-
useTabPanel: () =>
|
|
392
|
-
useTabPanels: () =>
|
|
393
|
-
useTabs: () =>
|
|
394
|
-
useTabsContext: () =>
|
|
395
|
-
useTabsDescendant: () =>
|
|
396
|
-
useTabsDescendants: () =>
|
|
397
|
-
useTabsDescendantsContext: () =>
|
|
398
|
-
useTabsStyles: () =>
|
|
399
|
-
useTheme: () =>
|
|
374
|
+
useMergeRefs: () => import_react100.useMergeRefs,
|
|
375
|
+
useModal: () => import_react53.useModal,
|
|
376
|
+
useModalContext: () => import_react53.useModalContext,
|
|
377
|
+
useModalStyles: () => import_react53.useModalStyles,
|
|
378
|
+
useOutsideClick: () => import_react100.useOutsideClick,
|
|
379
|
+
usePinInput: () => import_react62.usePinInput,
|
|
380
|
+
usePinInputContext: () => import_react62.usePinInputContext,
|
|
381
|
+
usePinInputField: () => import_react62.usePinInputField,
|
|
382
|
+
useProgressStyles: () => import_react64.useProgressStyles,
|
|
383
|
+
useQuery: () => import_react88.useQuery,
|
|
384
|
+
useRadio: () => import_react67.useRadio,
|
|
385
|
+
useRadioGroup: () => import_react67.useRadioGroup,
|
|
386
|
+
useRadioGroupContext: () => import_react67.useRadioGroupContext,
|
|
387
|
+
useSteps: () => import_react88.useSteps,
|
|
388
|
+
useTab: () => import_react81.useTab,
|
|
389
|
+
useTabIndicator: () => import_react81.useTabIndicator,
|
|
390
|
+
useTabList: () => import_react81.useTabList,
|
|
391
|
+
useTabPanel: () => import_react81.useTabPanel,
|
|
392
|
+
useTabPanels: () => import_react81.useTabPanels,
|
|
393
|
+
useTabs: () => import_react81.useTabs,
|
|
394
|
+
useTabsContext: () => import_react81.useTabsContext,
|
|
395
|
+
useTabsDescendant: () => import_react81.useTabsDescendant,
|
|
396
|
+
useTabsDescendants: () => import_react81.useTabsDescendants,
|
|
397
|
+
useTabsDescendantsContext: () => import_react81.useTabsDescendantsContext,
|
|
398
|
+
useTabsStyles: () => import_react81.useTabsStyles,
|
|
399
|
+
useTheme: () => import_react100.useTheme,
|
|
400
400
|
useToast: () => useToast,
|
|
401
|
-
useToken: () =>
|
|
401
|
+
useToken: () => import_react100.useToken
|
|
402
402
|
});
|
|
403
403
|
module.exports = __toCommonJS(src_exports);
|
|
404
404
|
|
|
@@ -1267,7 +1267,6 @@ var import_react28 = require("@chakra-ui/react");
|
|
|
1267
1267
|
var import_react29 = require("@emotion/react");
|
|
1268
1268
|
var import_react_table = require("@tanstack/react-table");
|
|
1269
1269
|
var React5 = __toESM(require("react"));
|
|
1270
|
-
var import_react30 = require("react");
|
|
1271
1270
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1272
1271
|
var isCellDisabled = (row, cellId) => {
|
|
1273
1272
|
if (row.disabled) {
|
|
@@ -1459,7 +1458,7 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
|
1459
1458
|
align: "center",
|
|
1460
1459
|
gap: 2,
|
|
1461
1460
|
children: [
|
|
1462
|
-
|
|
1461
|
+
(0, import_react_table.flexRender)(header.column.columnDef.header, header.getContext()),
|
|
1463
1462
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1464
1463
|
import_react28.Box,
|
|
1465
1464
|
{
|
|
@@ -1483,13 +1482,11 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
|
1483
1482
|
}
|
|
1484
1483
|
),
|
|
1485
1484
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tbody, { ...styles == null ? void 0 : styles.tableBody, children: table.getRowModel().rows.map((row) => {
|
|
1486
|
-
const trRef = (0, import_react30.useRef)();
|
|
1487
1485
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1488
1486
|
import_react28.Tr,
|
|
1489
1487
|
{
|
|
1490
1488
|
"data-test-id": "-RU0hNYGRzeVM3HQ4cXHl",
|
|
1491
1489
|
tabindex: "0",
|
|
1492
|
-
ref: trRef,
|
|
1493
1490
|
...styles == null ? void 0 : styles.tableRow,
|
|
1494
1491
|
css: import_react29.css`
|
|
1495
1492
|
&:last-child {
|
|
@@ -1498,13 +1495,13 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
|
1498
1495
|
}
|
|
1499
1496
|
}
|
|
1500
1497
|
`,
|
|
1501
|
-
onMouseDown: () => {
|
|
1498
|
+
onMouseDown: (e) => {
|
|
1502
1499
|
var _a;
|
|
1503
|
-
(_a =
|
|
1500
|
+
(_a = e.currentTarget) == null ? void 0 : _a.setAttribute("data-active", "true");
|
|
1504
1501
|
},
|
|
1505
|
-
onMouseUp: () => {
|
|
1502
|
+
onMouseUp: (e) => {
|
|
1506
1503
|
var _a;
|
|
1507
|
-
(_a =
|
|
1504
|
+
(_a = e.currentTarget) == null ? void 0 : _a.removeAttribute("data-active");
|
|
1508
1505
|
},
|
|
1509
1506
|
onClick: () => {
|
|
1510
1507
|
if (onRowClick) {
|
|
@@ -1548,19 +1545,19 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
|
1548
1545
|
var data_table_default = DataTable;
|
|
1549
1546
|
|
|
1550
1547
|
// src/components/datepicker/components/datepicker.tsx
|
|
1551
|
-
var
|
|
1548
|
+
var import_react33 = require("@chakra-ui/react");
|
|
1552
1549
|
var import_shared_utils8 = require("@chakra-ui/shared-utils");
|
|
1553
1550
|
var import_internal_icon6 = require("@ctlyst.id/internal-icon");
|
|
1554
1551
|
var import_react_datepicker = __toESM(require("react-datepicker"));
|
|
1555
1552
|
|
|
1556
1553
|
// src/components/datepicker/components/styles.tsx
|
|
1557
1554
|
var import_system6 = require("@chakra-ui/system");
|
|
1558
|
-
var
|
|
1555
|
+
var import_react30 = require("@emotion/react");
|
|
1559
1556
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1560
1557
|
var Styles = ({ showHeader }) => {
|
|
1561
1558
|
const { colorMode } = (0, import_system6.useColorMode)();
|
|
1562
1559
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1563
|
-
|
|
1560
|
+
import_react30.Global,
|
|
1564
1561
|
{
|
|
1565
1562
|
styles: `
|
|
1566
1563
|
@charset "UTF-8";
|
|
@@ -2406,21 +2403,21 @@ var Styles = ({ showHeader }) => {
|
|
|
2406
2403
|
var styles_default = Styles;
|
|
2407
2404
|
|
|
2408
2405
|
// src/components/datepicker/components/time-input.tsx
|
|
2409
|
-
var
|
|
2410
|
-
var
|
|
2406
|
+
var import_react31 = require("@chakra-ui/react");
|
|
2407
|
+
var import_react32 = __toESM(require("react"));
|
|
2411
2408
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
2412
2409
|
var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
|
2413
|
-
const [time, setTime] =
|
|
2410
|
+
const [time, setTime] = import_react32.default.useState(value || "00:00");
|
|
2414
2411
|
const handleChange = (e) => {
|
|
2415
2412
|
var _a, _b;
|
|
2416
2413
|
setTime(((_a = e.target) == null ? void 0 : _a.value) || "00:00");
|
|
2417
2414
|
if (onChange) onChange(((_b = e.target) == null ? void 0 : _b.value) || "00:00");
|
|
2418
2415
|
};
|
|
2419
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
2420
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2421
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
2416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react31.Flex, { flexDir: "column", p: 4, pt: 0, children: [
|
|
2417
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react31.Text, { mb: 2, children: label }),
|
|
2418
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react31.InputGroup, { alignItems: "center", borderColor: "neutral.400", children: [
|
|
2422
2419
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2423
|
-
|
|
2420
|
+
import_react31.Input,
|
|
2424
2421
|
{
|
|
2425
2422
|
onChange: handleChange,
|
|
2426
2423
|
type: "time",
|
|
@@ -2435,7 +2432,7 @@ var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
|
|
2435
2432
|
}
|
|
2436
2433
|
}
|
|
2437
2434
|
),
|
|
2438
|
-
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2435
|
+
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react31.InputRightAddon, { children: rightAddon })
|
|
2439
2436
|
] })
|
|
2440
2437
|
] });
|
|
2441
2438
|
};
|
|
@@ -2502,14 +2499,14 @@ var Datepicker = ({
|
|
|
2502
2499
|
if (props.inline) {
|
|
2503
2500
|
return component;
|
|
2504
2501
|
}
|
|
2505
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2506
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2507
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react33.FormControl, { isRequired, "data-test-id": "CT_Component_datepicker_wrapper", isInvalid: isError, children: [
|
|
2503
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react33.FormLabel, { fontSize: "text.sm", children: label }),
|
|
2504
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react33.InputGroup, { children: [
|
|
2508
2505
|
component,
|
|
2509
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
2506
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react33.InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
|
|
2510
2507
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_internal_icon6.Calendar, { size: 4, color: "neutral.400" }),
|
|
2511
2508
|
value && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2512
|
-
|
|
2509
|
+
import_react33.IconButton,
|
|
2513
2510
|
{
|
|
2514
2511
|
"data-test-id": "H0rseVCzGIaqoLho-EPbu",
|
|
2515
2512
|
display: "flex",
|
|
@@ -2525,7 +2522,7 @@ var Datepicker = ({
|
|
|
2525
2522
|
)
|
|
2526
2523
|
] })
|
|
2527
2524
|
] }),
|
|
2528
|
-
!isError ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2525
|
+
!isError ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react33.FormHelperText, { fontSize: "text.xs", mt: 1, children: helperText }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react33.FormErrorMessage, { fontSize: "text.xs", mt: 1, children: error })
|
|
2529
2526
|
] });
|
|
2530
2527
|
};
|
|
2531
2528
|
Datepicker.defaultProps = {
|
|
@@ -2543,18 +2540,18 @@ Datepicker.defaultProps = {
|
|
|
2543
2540
|
var datepicker_default = Datepicker;
|
|
2544
2541
|
|
|
2545
2542
|
// src/components/datepicker/components/datepicker-month/datepicker-month.tsx
|
|
2546
|
-
var
|
|
2547
|
-
var
|
|
2548
|
-
var
|
|
2543
|
+
var import_react34 = require("@chakra-ui/react");
|
|
2544
|
+
var import_react35 = require("@emotion/react");
|
|
2545
|
+
var import_react36 = __toESM(require("react"));
|
|
2549
2546
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2550
2547
|
var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
2551
|
-
const [date, setDate] =
|
|
2548
|
+
const [date, setDate] = import_react36.default.useState(null);
|
|
2552
2549
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2553
|
-
|
|
2550
|
+
import_react34.Box,
|
|
2554
2551
|
{
|
|
2555
2552
|
fontSize: "12px",
|
|
2556
2553
|
lineHeight: "18px",
|
|
2557
|
-
css:
|
|
2554
|
+
css: import_react35.css`
|
|
2558
2555
|
input[type='date']::-webkit-inner-spin-button,
|
|
2559
2556
|
input[type='date']::-webkit-calendar-picker-indicator {
|
|
2560
2557
|
display: none;
|
|
@@ -2565,7 +2562,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
|
2565
2562
|
}
|
|
2566
2563
|
`,
|
|
2567
2564
|
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
2568
|
-
|
|
2565
|
+
import_react34.Input,
|
|
2569
2566
|
{
|
|
2570
2567
|
"data-test-id": props["data-test-id"],
|
|
2571
2568
|
type: "date",
|
|
@@ -2578,7 +2575,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
|
2578
2575
|
min,
|
|
2579
2576
|
max,
|
|
2580
2577
|
required: true,
|
|
2581
|
-
css:
|
|
2578
|
+
css: import_react35.css`
|
|
2582
2579
|
border: 1px solid transparent;
|
|
2583
2580
|
|
|
2584
2581
|
&:focus,
|
|
@@ -2602,11 +2599,11 @@ DatePickerMonth.defaultProps = {
|
|
|
2602
2599
|
var datepicker_month_default = DatePickerMonth;
|
|
2603
2600
|
|
|
2604
2601
|
// src/components/datepicker/components/datepicker-month/multi-datepicker-month.tsx
|
|
2605
|
-
var
|
|
2602
|
+
var import_react37 = require("@chakra-ui/react");
|
|
2606
2603
|
var import_styled = __toESM(require("@emotion/styled"));
|
|
2607
|
-
var
|
|
2604
|
+
var import_react38 = __toESM(require("react"));
|
|
2608
2605
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2609
|
-
var MultiDateWrapper = (0, import_styled.default)(
|
|
2606
|
+
var MultiDateWrapper = (0, import_styled.default)(import_react37.Box)`
|
|
2610
2607
|
display: flex;
|
|
2611
2608
|
align-items: center;
|
|
2612
2609
|
width: fit-content;
|
|
@@ -2621,7 +2618,7 @@ var MultiDatePickerMonth = ({
|
|
|
2621
2618
|
min = "2020-01-01",
|
|
2622
2619
|
max = "2020-12-31"
|
|
2623
2620
|
}) => {
|
|
2624
|
-
const [date, setDate] =
|
|
2621
|
+
const [date, setDate] = import_react38.default.useState([null, null]);
|
|
2625
2622
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(MultiDateWrapper, { isError, children: [
|
|
2626
2623
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2627
2624
|
datepicker_month_default,
|
|
@@ -2635,7 +2632,7 @@ var MultiDatePickerMonth = ({
|
|
|
2635
2632
|
max
|
|
2636
2633
|
}
|
|
2637
2634
|
),
|
|
2638
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2635
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react37.Box, { children: "-" }),
|
|
2639
2636
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2640
2637
|
datepicker_month_default,
|
|
2641
2638
|
{
|
|
@@ -2658,7 +2655,7 @@ MultiDatePickerMonth.defaultProps = {
|
|
|
2658
2655
|
var multi_datepicker_month_default = MultiDatePickerMonth;
|
|
2659
2656
|
|
|
2660
2657
|
// src/components/dialog/components/dialog.tsx
|
|
2661
|
-
var
|
|
2658
|
+
var import_react39 = require("@chakra-ui/react");
|
|
2662
2659
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2663
2660
|
var Dialog = ({
|
|
2664
2661
|
title,
|
|
@@ -2669,12 +2666,12 @@ var Dialog = ({
|
|
|
2669
2666
|
isOverlayClickable,
|
|
2670
2667
|
...props
|
|
2671
2668
|
}) => {
|
|
2672
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
2673
|
-
isModalOverlay && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2674
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
2675
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2676
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2677
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react39.Modal, { ...props, children: [
|
|
2670
|
+
isModalOverlay && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react39.ModalOverlay, { pointerEvents: isOverlayClickable ? "auto" : "none" }),
|
|
2671
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react39.ModalContent, { bgColor: "neutral.50", fontFamily: "Poppins", width, minW: "400px", children: [
|
|
2672
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react39.ModalHeader, { bgColor: "neutral.200", py: 2, px: 4, borderTopRadius: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react39.Text, { textStyle: "text.lg", fontWeight: "normal", children: title }) }),
|
|
2673
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react39.ModalBody, { p: 4, textStyle: "text.md", children: content }),
|
|
2674
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react39.ModalFooter, { bgColor: "neutral.200", p: 4, borderBottomRadius: "sm", children: footer })
|
|
2678
2675
|
] })
|
|
2679
2676
|
] });
|
|
2680
2677
|
};
|
|
@@ -2689,7 +2686,7 @@ var dialog_default = Dialog;
|
|
|
2689
2686
|
var Icon2 = __toESM(require("@ctlyst.id/internal-icon"));
|
|
2690
2687
|
|
|
2691
2688
|
// src/components/empty-state/components/layout.tsx
|
|
2692
|
-
var
|
|
2689
|
+
var import_react40 = require("@chakra-ui/react");
|
|
2693
2690
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2694
2691
|
var EmptyState = (props) => {
|
|
2695
2692
|
const { icon, title, description, buttonText, onClick } = props;
|
|
@@ -2698,13 +2695,13 @@ var EmptyState = (props) => {
|
|
|
2698
2695
|
onClick();
|
|
2699
2696
|
}
|
|
2700
2697
|
};
|
|
2701
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react40.Flex, { align: "center", justify: "center", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react40.VStack, { textAlign: "center", children: [
|
|
2702
2699
|
icon,
|
|
2703
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2704
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2705
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2700
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react40.VStack, { spacing: 2, textAlign: "center", mt: 3, children: [
|
|
2701
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react40.Text, { textStyle: "text.lg", fontWeight: "bold", children: title }),
|
|
2702
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react40.Text, { textStyle: "text.md", color: "black.medium", whiteSpace: "pre-wrap", children: description })
|
|
2706
2703
|
] }),
|
|
2707
|
-
buttonText && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2704
|
+
buttonText && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react40.Box, { mt: 3, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react40.Button, { size: "lg", "data-test-id": "CT_component-action-button", onClick: handleClick, children: buttonText }) })
|
|
2708
2705
|
] }) });
|
|
2709
2706
|
};
|
|
2710
2707
|
var layout_default = EmptyState;
|
|
@@ -2781,28 +2778,28 @@ EmptyState2.NotAuthorize = EmptyStateNotAuthorize;
|
|
|
2781
2778
|
var empty_state_default = EmptyState2;
|
|
2782
2779
|
|
|
2783
2780
|
// src/components/header/components/header.tsx
|
|
2784
|
-
var
|
|
2781
|
+
var import_react47 = require("@chakra-ui/react");
|
|
2785
2782
|
|
|
2786
2783
|
// src/components/header/components/logo.tsx
|
|
2787
|
-
var
|
|
2784
|
+
var import_react41 = require("@chakra-ui/react");
|
|
2788
2785
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2789
2786
|
var Logo = ({ url, imageUrl, height }) => {
|
|
2790
2787
|
if (url)
|
|
2791
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2792
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2788
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react41.Box, { as: "a", href: url, cursor: "pointer", target: "_self", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react41.Image, { w: "initial", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl, objectFit: "contain" }) });
|
|
2789
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react41.Image, { w: "initial", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl, objectFit: "contain" });
|
|
2793
2790
|
};
|
|
2794
2791
|
var XMSLogo = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2795
|
-
|
|
2792
|
+
import_react41.Image,
|
|
2796
2793
|
{
|
|
2797
2794
|
height: 8,
|
|
2798
|
-
src: (0,
|
|
2795
|
+
src: (0, import_react41.useColorModeValue)("https://assets.voila.id/xms/logo-xms.jpg", "https://assets.voila.id/xms/logo-xms-dark.png")
|
|
2799
2796
|
}
|
|
2800
2797
|
);
|
|
2801
2798
|
var VoilaLogo = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2802
|
-
|
|
2799
|
+
import_react41.Image,
|
|
2803
2800
|
{
|
|
2804
2801
|
src: "https://assets.voila.id/xms/logo-voila-black.png?v=1",
|
|
2805
|
-
filter: (0,
|
|
2802
|
+
filter: (0, import_react41.useColorModeValue)("none", "invert(1)"),
|
|
2806
2803
|
maxW: 24
|
|
2807
2804
|
}
|
|
2808
2805
|
);
|
|
@@ -2812,16 +2809,16 @@ Logo.defaultProps = {
|
|
|
2812
2809
|
};
|
|
2813
2810
|
|
|
2814
2811
|
// src/components/header/components/profile.tsx
|
|
2815
|
-
var
|
|
2812
|
+
var import_react44 = require("@chakra-ui/react");
|
|
2816
2813
|
var import_fi2 = require("react-icons/fi");
|
|
2817
2814
|
|
|
2818
2815
|
// src/components/nav-item/components/nav-item.tsx
|
|
2819
|
-
var
|
|
2816
|
+
var import_react42 = require("@chakra-ui/react");
|
|
2820
2817
|
var import_shared_utils9 = require("@chakra-ui/shared-utils");
|
|
2821
2818
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2822
2819
|
var NavItem = ({ children, isActive, isChild, isDisabled, ...props }) => {
|
|
2823
2820
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2824
|
-
|
|
2821
|
+
import_react42.Link,
|
|
2825
2822
|
{
|
|
2826
2823
|
"data-test-id": props["data-test-id"],
|
|
2827
2824
|
opacity: isDisabled ? "0.3" : "initial",
|
|
@@ -2861,7 +2858,7 @@ NavItem.defaultProps = {
|
|
|
2861
2858
|
};
|
|
2862
2859
|
|
|
2863
2860
|
// src/components/tooltip/components/tooltip.tsx
|
|
2864
|
-
var
|
|
2861
|
+
var import_react43 = require("@chakra-ui/react");
|
|
2865
2862
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2866
2863
|
var Tooltip = (props) => {
|
|
2867
2864
|
const {
|
|
@@ -2874,7 +2871,7 @@ var Tooltip = (props) => {
|
|
|
2874
2871
|
fontWeight = "400"
|
|
2875
2872
|
} = props;
|
|
2876
2873
|
const content = ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2877
|
-
|
|
2874
|
+
import_react43.PopoverContent,
|
|
2878
2875
|
{
|
|
2879
2876
|
"data-test-id": "",
|
|
2880
2877
|
border: "none",
|
|
@@ -2888,15 +2885,15 @@ var Tooltip = (props) => {
|
|
|
2888
2885
|
onClose();
|
|
2889
2886
|
},
|
|
2890
2887
|
children: [
|
|
2891
|
-
props.hasArrow && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2892
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2888
|
+
props.hasArrow && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.PopoverArrow, { color, bg, shadow: "none" }),
|
|
2889
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.PopoverBody, { color, ...props, fontWeight, children: props.label })
|
|
2893
2890
|
]
|
|
2894
2891
|
}
|
|
2895
2892
|
);
|
|
2896
|
-
return props.isInteractive === true ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2897
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2898
|
-
props.portal ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2899
|
-
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2893
|
+
return props.isInteractive === true ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.Popover, { trigger: "hover", placement: props.placement, ...props.popoverProps, children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
2894
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.PopoverTrigger, { children }),
|
|
2895
|
+
props.portal ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.Portal, { children: content({ onClose }) }) : content({ onClose })
|
|
2896
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.Tooltip, { ...props, children });
|
|
2900
2897
|
};
|
|
2901
2898
|
|
|
2902
2899
|
// src/components/header/components/profile.tsx
|
|
@@ -2912,10 +2909,10 @@ var Profile = ({
|
|
|
2912
2909
|
...props
|
|
2913
2910
|
}) => {
|
|
2914
2911
|
var _a, _b;
|
|
2915
|
-
const { isOpen, onToggle, onClose } = (0,
|
|
2916
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2912
|
+
const { isOpen, onToggle, onClose } = (0, import_react44.useDisclosure)();
|
|
2913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.Popover, { placement: "bottom-end", isOpen, onClose, children: [
|
|
2917
2914
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2918
|
-
|
|
2915
|
+
import_react44.Box,
|
|
2919
2916
|
{
|
|
2920
2917
|
"data-test-id": "CTA_Navbar_Profile_wrapper",
|
|
2921
2918
|
as: "button",
|
|
@@ -2931,14 +2928,14 @@ var Profile = ({
|
|
|
2931
2928
|
onClick: onToggle,
|
|
2932
2929
|
color,
|
|
2933
2930
|
...props,
|
|
2934
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2935
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2936
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2937
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2931
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.HStack, { children: [
|
|
2932
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.VStack, { alignItems: "flex-end", spacing: "0", ml: "2", color, children: [
|
|
2933
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { textStyle: "text.xs", mb: "1", children: data == null ? void 0 : data.email }),
|
|
2934
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.Flex, { alignItems: "center", children: [
|
|
2938
2935
|
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
|
2939
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2936
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.userRole) || "user" }),
|
|
2940
2937
|
!!((_a = data.office) == null ? void 0 : _a.length) && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2941
|
-
|
|
2938
|
+
import_react44.Box,
|
|
2942
2939
|
{
|
|
2943
2940
|
className: "catalyst_header-profile-divider",
|
|
2944
2941
|
h: "3",
|
|
@@ -2948,17 +2945,17 @@ var Profile = ({
|
|
|
2948
2945
|
}
|
|
2949
2946
|
)
|
|
2950
2947
|
] }),
|
|
2951
|
-
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2952
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2948
|
+
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.Flex, { align: "center", justify: "center", children: [
|
|
2949
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { textStyle: "text.xs", children: data.office[0] }),
|
|
2953
2950
|
data.office.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2954
2951
|
Tooltip,
|
|
2955
2952
|
{
|
|
2956
2953
|
isInteractive: true,
|
|
2957
2954
|
hasArrow: true,
|
|
2958
2955
|
p: "2",
|
|
2959
|
-
label: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2960
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2961
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2956
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.Box, { children: [
|
|
2957
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { children: "Akses Office:" }),
|
|
2958
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { children: data.office.sort().join(", ") })
|
|
2962
2959
|
] }),
|
|
2963
2960
|
textAlign: "left",
|
|
2964
2961
|
placement: "bottom-end",
|
|
@@ -2969,7 +2966,7 @@ var Profile = ({
|
|
|
2969
2966
|
},
|
|
2970
2967
|
width: 300,
|
|
2971
2968
|
...officeContainer,
|
|
2972
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2969
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2973
2970
|
badge_default,
|
|
2974
2971
|
{
|
|
2975
2972
|
rounded: "full",
|
|
@@ -2986,18 +2983,18 @@ var Profile = ({
|
|
|
2986
2983
|
) })
|
|
2987
2984
|
}
|
|
2988
2985
|
)
|
|
2989
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2986
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.office) || "office" })
|
|
2990
2987
|
] })
|
|
2991
2988
|
] }),
|
|
2992
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2989
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Box, { border: "2px solid", borderColor: "transparent", className: "catalyst-header-avatar", rounded: "full", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Avatar, { size: "sm", bg: brandColor, color: "white", name: (_b = data == null ? void 0 : data.name) != null ? _b : data == null ? void 0 : data.email }) }) })
|
|
2993
2990
|
] })
|
|
2994
2991
|
}
|
|
2995
2992
|
),
|
|
2996
|
-
children || /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2997
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2998
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2993
|
+
children || /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.PopoverContent, { bg: "white", maxW: 200, children: [
|
|
2994
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.PopoverArrow, { bg: "white" }),
|
|
2995
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.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_react44.Box, { display: "flex", alignItems: "center", children: [
|
|
2999
2996
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_fi2.FiPower, {}),
|
|
3000
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2997
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { ml: "2", children: "Logout" })
|
|
3001
2998
|
] }) }) })
|
|
3002
2999
|
] })
|
|
3003
3000
|
] });
|
|
@@ -3010,17 +3007,17 @@ Profile.defaultProps = {
|
|
|
3010
3007
|
};
|
|
3011
3008
|
|
|
3012
3009
|
// src/components/header/components/switch-mode.tsx
|
|
3013
|
-
var
|
|
3010
|
+
var import_react45 = require("@chakra-ui/react");
|
|
3014
3011
|
var import_fi3 = require("react-icons/fi");
|
|
3015
3012
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3016
3013
|
var SwitchMode = () => {
|
|
3017
|
-
const { colorMode, toggleColorMode } = (0,
|
|
3018
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3014
|
+
const { colorMode, toggleColorMode } = (0, import_react45.useColorMode)();
|
|
3015
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react45.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 }) });
|
|
3019
3016
|
};
|
|
3020
3017
|
var switch_mode_default = SwitchMode;
|
|
3021
3018
|
|
|
3022
3019
|
// src/components/header/components/version.tsx
|
|
3023
|
-
var
|
|
3020
|
+
var import_react46 = require("@chakra-ui/react");
|
|
3024
3021
|
|
|
3025
3022
|
// src/components/header/utils/formatter.ts
|
|
3026
3023
|
function environmentName(env) {
|
|
@@ -3058,7 +3055,7 @@ var Version = ({
|
|
|
3058
3055
|
}
|
|
3059
3056
|
) : version,
|
|
3060
3057
|
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3061
|
-
|
|
3058
|
+
import_react46.Box,
|
|
3062
3059
|
{
|
|
3063
3060
|
background: "primary.50",
|
|
3064
3061
|
color: "primary.500",
|
|
@@ -3098,8 +3095,8 @@ var Header = ({
|
|
|
3098
3095
|
bg = "white",
|
|
3099
3096
|
versionStyle,
|
|
3100
3097
|
...props
|
|
3101
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3102
|
-
|
|
3098
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react47.Flex, { minH: 15, bg, shadow: "raised", px: 6, py: 3, alignItems: "center", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
3099
|
+
import_react47.Flex,
|
|
3103
3100
|
{
|
|
3104
3101
|
h: "auto",
|
|
3105
3102
|
w: "full",
|
|
@@ -3107,11 +3104,11 @@ var Header = ({
|
|
|
3107
3104
|
justifyContent: !mainLogo ? "flex-end" : "space-between",
|
|
3108
3105
|
pos: "relative",
|
|
3109
3106
|
children: [
|
|
3110
|
-
mainLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
3107
|
+
mainLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react47.Flex, { alignItems: "center", children: [
|
|
3111
3108
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Logo, { url: urlLogo, imageUrl: mainLogo, height: mainLogoSize }),
|
|
3112
3109
|
children && children
|
|
3113
3110
|
] }),
|
|
3114
|
-
centerLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
3111
|
+
centerLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react47.HStack, { w: "fit-content", spacing: 2, alignItems: "center", pos: "absolute", left: "50%", transform: "translate(-50%,0)", children: [
|
|
3115
3112
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Logo, { url: urlLogo, imageUrl: centerLogo, height: centerLogoSize }),
|
|
3116
3113
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3117
3114
|
Version,
|
|
@@ -3124,7 +3121,7 @@ var Header = ({
|
|
|
3124
3121
|
}
|
|
3125
3122
|
)
|
|
3126
3123
|
] }),
|
|
3127
|
-
profile || /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
3124
|
+
profile || /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react47.Flex, { alignItems: "center", children: [
|
|
3128
3125
|
!hideSwitchMode && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(switch_mode_default, {}),
|
|
3129
3126
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Profile, { color: props.color, brandColor, data, onLogout })
|
|
3130
3127
|
] })
|
|
@@ -3148,11 +3145,11 @@ Header.defaultProps = {
|
|
|
3148
3145
|
};
|
|
3149
3146
|
|
|
3150
3147
|
// src/components/header/components/navbar.tsx
|
|
3151
|
-
var
|
|
3148
|
+
var import_react48 = require("@chakra-ui/react");
|
|
3152
3149
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3153
3150
|
var Navbar = ({ bg = "white", children, ...props }) => {
|
|
3154
3151
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3155
|
-
|
|
3152
|
+
import_react48.Flex,
|
|
3156
3153
|
{
|
|
3157
3154
|
minH: "15",
|
|
3158
3155
|
h: "15",
|
|
@@ -3172,21 +3169,21 @@ var Navbar = ({ bg = "white", children, ...props }) => {
|
|
|
3172
3169
|
Navbar.displayName = "Navbar";
|
|
3173
3170
|
|
|
3174
3171
|
// src/components/image/index.ts
|
|
3175
|
-
var
|
|
3172
|
+
var import_react49 = require("@chakra-ui/react");
|
|
3176
3173
|
|
|
3177
3174
|
// src/components/layouting/index.ts
|
|
3178
|
-
var
|
|
3175
|
+
var import_react50 = require("@chakra-ui/react");
|
|
3179
3176
|
|
|
3180
3177
|
// src/components/list/index.tsx
|
|
3181
|
-
var
|
|
3178
|
+
var import_react51 = require("@chakra-ui/react");
|
|
3182
3179
|
|
|
3183
3180
|
// src/components/modal/components/modal-back-button.tsx
|
|
3184
3181
|
var import_icons3 = require("@chakra-ui/icons");
|
|
3185
|
-
var
|
|
3182
|
+
var import_react52 = require("@chakra-ui/react");
|
|
3186
3183
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3187
3184
|
var ModalBackButton = ({ onClick }) => {
|
|
3188
3185
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3189
|
-
|
|
3186
|
+
import_react52.IconButton,
|
|
3190
3187
|
{
|
|
3191
3188
|
icon: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons3.ChevronLeftIcon, { w: "4.5", h: "4.5" }),
|
|
3192
3189
|
size: "sm",
|
|
@@ -3206,12 +3203,12 @@ var ModalBackButton = ({ onClick }) => {
|
|
|
3206
3203
|
var modal_back_button_default = ModalBackButton;
|
|
3207
3204
|
|
|
3208
3205
|
// src/components/modal/index.ts
|
|
3209
|
-
var
|
|
3206
|
+
var import_react53 = require("@chakra-ui/react");
|
|
3210
3207
|
|
|
3211
3208
|
// src/components/navigation/components/navigation.tsx
|
|
3212
|
-
var
|
|
3209
|
+
var import_react54 = require("@chakra-ui/react");
|
|
3213
3210
|
var Icon5 = __toESM(require("@ctlyst.id/internal-icon"));
|
|
3214
|
-
var
|
|
3211
|
+
var import_react55 = require("@emotion/react");
|
|
3215
3212
|
|
|
3216
3213
|
// src/components/navigation/components/mapping-icon.tsx
|
|
3217
3214
|
var Icon4 = __toESM(require("@ctlyst.id/internal-icon"));
|
|
@@ -3234,8 +3231,8 @@ var mappingIcon = /* @__PURE__ */ new Map([
|
|
|
3234
3231
|
// src/components/navigation/components/navigation.tsx
|
|
3235
3232
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3236
3233
|
var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3237
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3238
|
-
|
|
3234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.Box, { borderRadius: "md", overflowX: "auto", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3235
|
+
import_react54.Flex,
|
|
3239
3236
|
{
|
|
3240
3237
|
bg: "white",
|
|
3241
3238
|
w: "full",
|
|
@@ -3249,9 +3246,9 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
|
3249
3246
|
children: navigations == null ? void 0 : navigations.map((navigation) => {
|
|
3250
3247
|
const isActive = activePath.startsWith(navigation.navLink || "");
|
|
3251
3248
|
const activeBg = isActive ? "primary.500" : void 0;
|
|
3252
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3253
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3254
|
-
|
|
3249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.Popover, { trigger: "hover", placement: "bottom-start", children: ({ isOpen }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
|
|
3250
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3251
|
+
import_react54.Button,
|
|
3255
3252
|
{
|
|
3256
3253
|
h: 7.5,
|
|
3257
3254
|
p: 2,
|
|
@@ -3268,10 +3265,10 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
|
3268
3265
|
children: navigation.title
|
|
3269
3266
|
}
|
|
3270
3267
|
) }),
|
|
3271
|
-
navigation.children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3272
|
-
|
|
3268
|
+
navigation.children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.Box, { zIndex: "popover", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3269
|
+
import_react54.PopoverContent,
|
|
3273
3270
|
{
|
|
3274
|
-
bg: (0,
|
|
3271
|
+
bg: (0, import_react54.useColorModeValue)("white", "ebony-clay.800"),
|
|
3275
3272
|
maxW: 250,
|
|
3276
3273
|
border: "none",
|
|
3277
3274
|
borderRadius: "md",
|
|
@@ -3281,7 +3278,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
|
3281
3278
|
const isLocalLink = host === navHost;
|
|
3282
3279
|
const isActiveSub = activePath === navLink;
|
|
3283
3280
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3284
|
-
|
|
3281
|
+
import_react54.Link,
|
|
3285
3282
|
{
|
|
3286
3283
|
as: isLocalLink ? as : void 0,
|
|
3287
3284
|
href: link,
|
|
@@ -3289,7 +3286,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
|
3289
3286
|
textDecoration: "none"
|
|
3290
3287
|
},
|
|
3291
3288
|
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
3292
|
-
|
|
3289
|
+
import_react54.Box,
|
|
3293
3290
|
{
|
|
3294
3291
|
display: "flex",
|
|
3295
3292
|
position: "relative",
|
|
@@ -3297,24 +3294,24 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
|
3297
3294
|
cursor: "pointer",
|
|
3298
3295
|
transition: "padding 0.35s ease 0s",
|
|
3299
3296
|
_hover: {
|
|
3300
|
-
backgroundColor: (0,
|
|
3301
|
-
color: (0,
|
|
3297
|
+
backgroundColor: (0, import_react54.useColorModeValue)("dove-gray.50", "mirage.900"),
|
|
3298
|
+
color: (0, import_react54.useColorModeValue)("primary.500", "dove-gray.600"),
|
|
3302
3299
|
px: 5,
|
|
3303
3300
|
py: 4,
|
|
3304
3301
|
_first: { borderTopRadius: "md" },
|
|
3305
3302
|
_last: { borderBottomRadius: "md" }
|
|
3306
3303
|
},
|
|
3307
3304
|
color: isActiveSub ? "primary.500" : "inherit",
|
|
3308
|
-
css:
|
|
3305
|
+
css: import_react55.css`
|
|
3309
3306
|
border-spacing: 4px;
|
|
3310
3307
|
`,
|
|
3311
3308
|
px: 6,
|
|
3312
3309
|
py: 4,
|
|
3313
3310
|
children: [
|
|
3314
3311
|
mappingIcon.get(navigation.title),
|
|
3315
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3312
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.Text, { fontSize: "text.sm", ml: 3, children: title }),
|
|
3316
3313
|
isActiveSub && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3317
|
-
|
|
3314
|
+
import_react54.Box,
|
|
3318
3315
|
{
|
|
3319
3316
|
width: 0.5,
|
|
3320
3317
|
height: 8,
|
|
@@ -3347,7 +3344,7 @@ Navigation.defaultProps = {
|
|
|
3347
3344
|
var navigation_default = Navigation;
|
|
3348
3345
|
|
|
3349
3346
|
// src/components/navigation/components/navigation-bar.tsx
|
|
3350
|
-
var
|
|
3347
|
+
var import_react56 = require("@chakra-ui/react");
|
|
3351
3348
|
var Icon6 = __toESM(require("@ctlyst.id/internal-icon"));
|
|
3352
3349
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3353
3350
|
var NavigationBar = ({
|
|
@@ -3364,8 +3361,8 @@ var NavigationBar = ({
|
|
|
3364
3361
|
}
|
|
3365
3362
|
return subMenu.navHost + subMenu.navLink;
|
|
3366
3363
|
};
|
|
3367
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3368
|
-
|
|
3364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react56.Box, { hidden: isFetched && navigations === void 0, "data-test-id": "CT_component_navigation_cms", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3365
|
+
import_react56.Flex,
|
|
3369
3366
|
{
|
|
3370
3367
|
bg: "white",
|
|
3371
3368
|
w: "full",
|
|
@@ -3381,9 +3378,9 @@ var NavigationBar = ({
|
|
|
3381
3378
|
const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
|
|
3382
3379
|
const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
|
|
3383
3380
|
const activeBg = isActive ? "primary.500" : void 0;
|
|
3384
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3385
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3386
|
-
|
|
3381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react56.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: [
|
|
3382
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react56.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3383
|
+
import_react56.Button,
|
|
3387
3384
|
{
|
|
3388
3385
|
h: 7.5,
|
|
3389
3386
|
p: 2,
|
|
@@ -3400,8 +3397,8 @@ var NavigationBar = ({
|
|
|
3400
3397
|
children: item.title
|
|
3401
3398
|
}
|
|
3402
3399
|
) }),
|
|
3403
|
-
item.children && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3404
|
-
|
|
3400
|
+
item.children && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react56.PopoverContent, { bg: "white", boxShadow: "raised", borderRadius: "md", py: 1, width: 240, children: item.children.map((subMenu) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
3401
|
+
import_react56.Link,
|
|
3405
3402
|
{
|
|
3406
3403
|
href: urlMenu(subMenu),
|
|
3407
3404
|
display: "flex",
|
|
@@ -3418,7 +3415,7 @@ var NavigationBar = ({
|
|
|
3418
3415
|
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
|
3419
3416
|
children: [
|
|
3420
3417
|
mappingIcon2.get(item.title),
|
|
3421
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3418
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react56.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
|
3422
3419
|
]
|
|
3423
3420
|
},
|
|
3424
3421
|
subMenu.id
|
|
@@ -3435,18 +3432,18 @@ var navigation_bar_default = NavigationBar;
|
|
|
3435
3432
|
|
|
3436
3433
|
// src/components/pagination/components/pagination.tsx
|
|
3437
3434
|
var import_icons4 = require("@chakra-ui/icons");
|
|
3438
|
-
var
|
|
3435
|
+
var import_react59 = require("@chakra-ui/react");
|
|
3439
3436
|
|
|
3440
3437
|
// src/components/pagination/components/pagination-button.tsx
|
|
3441
|
-
var
|
|
3438
|
+
var import_react57 = require("@chakra-ui/react");
|
|
3442
3439
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3443
|
-
var PaginationButton = (0,
|
|
3444
|
-
const btnBg = (0,
|
|
3445
|
-
const btnColor = (0,
|
|
3446
|
-
const btnNotActiveBg = (0,
|
|
3447
|
-
const btnNotActiveColor = (0,
|
|
3440
|
+
var PaginationButton = (0, import_react57.forwardRef)(({ className, style, isActive, children, ...rest }, ref) => {
|
|
3441
|
+
const btnBg = (0, import_react57.useColorModeValue)("neutral.300", "mirage.900");
|
|
3442
|
+
const btnColor = (0, import_react57.useColorModeValue)("black.high", "primary.300");
|
|
3443
|
+
const btnNotActiveBg = (0, import_react57.useColorModeValue)("secondary.50", "primary.500");
|
|
3444
|
+
const btnNotActiveColor = (0, import_react57.useColorModeValue)("primary.500", "white");
|
|
3448
3445
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3449
|
-
|
|
3446
|
+
import_react57.Button,
|
|
3450
3447
|
{
|
|
3451
3448
|
"data-test-id": "Pagination-Button",
|
|
3452
3449
|
ref,
|
|
@@ -3467,7 +3464,7 @@ var PaginationButton = (0, import_react58.forwardRef)(({ className, style, isAct
|
|
|
3467
3464
|
color: btnNotActiveColor
|
|
3468
3465
|
} : {},
|
|
3469
3466
|
_disabled: {
|
|
3470
|
-
background: (0,
|
|
3467
|
+
background: (0, import_react57.useColorModeValue)("neutral.300", "mirage.900"),
|
|
3471
3468
|
color: "neutral.600",
|
|
3472
3469
|
pointerEvents: "none"
|
|
3473
3470
|
},
|
|
@@ -3483,7 +3480,7 @@ PaginationButton.defaultProps = {
|
|
|
3483
3480
|
var pagination_button_default = PaginationButton;
|
|
3484
3481
|
|
|
3485
3482
|
// src/components/pagination/components/pagination-button-trigger.tsx
|
|
3486
|
-
var
|
|
3483
|
+
var import_react58 = require("@chakra-ui/react");
|
|
3487
3484
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3488
3485
|
var PaginationButtonTrigger = ({
|
|
3489
3486
|
color,
|
|
@@ -3492,7 +3489,7 @@ var PaginationButtonTrigger = ({
|
|
|
3492
3489
|
visuallyHidden,
|
|
3493
3490
|
icon
|
|
3494
3491
|
}) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(pagination_button_default, { "data-test-id": "DLVCc_fBK35spHm5WxjcJ", color, isDisabled, onClick, children: [
|
|
3495
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3492
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react58.VisuallyHidden, { children: visuallyHidden }),
|
|
3496
3493
|
icon
|
|
3497
3494
|
] });
|
|
3498
3495
|
PaginationButtonTrigger.defaultProps = {
|
|
@@ -3507,8 +3504,8 @@ var pagination_button_trigger_default = PaginationButtonTrigger;
|
|
|
3507
3504
|
// src/components/pagination/components/pagination.tsx
|
|
3508
3505
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
3509
3506
|
var Pagination = ({ className, current, total, onSelect }) => {
|
|
3510
|
-
const btnColorDisabled = (0,
|
|
3511
|
-
const btnColor = (0,
|
|
3507
|
+
const btnColorDisabled = (0, import_react59.useColorModeValue)("secondary.100", "primary.500");
|
|
3508
|
+
const btnColor = (0, import_react59.useColorModeValue)("primary.500", "secondary.100");
|
|
3512
3509
|
const disabledPrevious = current === 1;
|
|
3513
3510
|
const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;
|
|
3514
3511
|
const disabledNext = current === total;
|
|
@@ -3535,8 +3532,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
|
3535
3532
|
}
|
|
3536
3533
|
return pageButtons;
|
|
3537
3534
|
};
|
|
3538
|
-
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3539
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react59.Box, { className, display: "inline-flex", alignItems: "center", children: [
|
|
3536
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react59.Box, { mr: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3540
3537
|
pagination_button_trigger_default,
|
|
3541
3538
|
{
|
|
3542
3539
|
"data-test-id": "Pagination-Button",
|
|
@@ -3547,7 +3544,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
|
3547
3544
|
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ArrowLeftIcon, { width: 2 })
|
|
3548
3545
|
}
|
|
3549
3546
|
) }),
|
|
3550
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3547
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react59.Box, { bg: "neutral.300", borderRadius: "full", children: [
|
|
3551
3548
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3552
3549
|
pagination_button_trigger_default,
|
|
3553
3550
|
{
|
|
@@ -3566,7 +3563,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
|
3566
3563
|
"data-test-id": "Pagination-Button",
|
|
3567
3564
|
isActive: page === current,
|
|
3568
3565
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
|
3569
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3566
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react59.Text, { scale: 300, fontSize: "text.sm", lineHeight: 18, fontWeight: 500, children: page })
|
|
3570
3567
|
},
|
|
3571
3568
|
page
|
|
3572
3569
|
);
|
|
@@ -3583,7 +3580,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
|
3583
3580
|
}
|
|
3584
3581
|
)
|
|
3585
3582
|
] }),
|
|
3586
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3583
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react59.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3587
3584
|
pagination_button_trigger_default,
|
|
3588
3585
|
{
|
|
3589
3586
|
"data-test-id": "Pagination-Button",
|
|
@@ -3604,7 +3601,7 @@ Pagination.displayName = "Pagination";
|
|
|
3604
3601
|
var pagination_default = Pagination;
|
|
3605
3602
|
|
|
3606
3603
|
// src/components/pagination/components/pagination-detail.tsx
|
|
3607
|
-
var
|
|
3604
|
+
var import_react60 = require("@chakra-ui/react");
|
|
3608
3605
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
3609
3606
|
var PaginationDetail = ({
|
|
3610
3607
|
page,
|
|
@@ -3615,12 +3612,12 @@ var PaginationDetail = ({
|
|
|
3615
3612
|
lineHeight = 18,
|
|
3616
3613
|
...rest
|
|
3617
3614
|
}) => {
|
|
3618
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react60.Text, { scale, fontSize, lineHeight, ...rest, children: `${(page - 1) * limit + 1}-${limit * page < length ? limit * page : length} dari ${length} item` });
|
|
3619
3616
|
};
|
|
3620
3617
|
var pagination_detail_default = PaginationDetail;
|
|
3621
3618
|
|
|
3622
3619
|
// src/components/pagination/components/pagination-filter.tsx
|
|
3623
|
-
var
|
|
3620
|
+
var import_react61 = require("@chakra-ui/react");
|
|
3624
3621
|
var React9 = __toESM(require("react"));
|
|
3625
3622
|
var import_fi4 = require("react-icons/fi");
|
|
3626
3623
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
@@ -3632,10 +3629,10 @@ var PaginationFilter = ({
|
|
|
3632
3629
|
...rest
|
|
3633
3630
|
}) => {
|
|
3634
3631
|
const [value, setValue] = React9.useState(limit);
|
|
3635
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3636
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_react61.Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [
|
|
3633
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react61.Text, { fontSize: "text.sm", lineHeight: 18, color: (0, import_react61.useColorModeValue)("neutral.900", "white"), ...rest, children: label }),
|
|
3637
3634
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3638
|
-
|
|
3635
|
+
import_react61.Select,
|
|
3639
3636
|
{
|
|
3640
3637
|
textAlign: "center",
|
|
3641
3638
|
size: "xs",
|
|
@@ -3665,22 +3662,22 @@ PaginationFilter.defaultProps = {
|
|
|
3665
3662
|
var pagination_filter_default = PaginationFilter;
|
|
3666
3663
|
|
|
3667
3664
|
// src/components/pin-input/index.ts
|
|
3668
|
-
var
|
|
3665
|
+
var import_react62 = require("@chakra-ui/react");
|
|
3669
3666
|
|
|
3670
3667
|
// src/components/popover/index.ts
|
|
3671
|
-
var
|
|
3668
|
+
var import_react63 = require("@chakra-ui/react");
|
|
3672
3669
|
|
|
3673
3670
|
// src/components/progress/index.ts
|
|
3674
|
-
var
|
|
3671
|
+
var import_react64 = require("@chakra-ui/react");
|
|
3675
3672
|
|
|
3676
3673
|
// src/components/radio/components/radio.tsx
|
|
3677
|
-
var
|
|
3674
|
+
var import_react65 = require("@chakra-ui/react");
|
|
3678
3675
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
3679
3676
|
var Radio = ({ isError = false, helpText, errorText, children, isDisabled, ...rest }) => {
|
|
3680
3677
|
const variant = isError ? "errors" : "unstyled";
|
|
3681
|
-
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
3682
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3683
|
-
isError && errorText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_react65.Box, { children: [
|
|
3679
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react65.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react65.Radio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react65.Text, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
|
3680
|
+
isError && errorText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react65.Box, { mt: "2", ml: "6", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react65.Text, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) }) : helpText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react65.Box, { mt: "2", ml: "6", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react65.Text, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) }) : null
|
|
3684
3681
|
] });
|
|
3685
3682
|
};
|
|
3686
3683
|
Radio.displayName = "Radio";
|
|
@@ -3691,7 +3688,7 @@ Radio.defaultProps = {
|
|
|
3691
3688
|
};
|
|
3692
3689
|
|
|
3693
3690
|
// src/components/radio/components/radio-group.tsx
|
|
3694
|
-
var
|
|
3691
|
+
var import_react66 = require("@chakra-ui/react");
|
|
3695
3692
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
3696
3693
|
var RadioGroup = ({
|
|
3697
3694
|
children,
|
|
@@ -3701,7 +3698,7 @@ var RadioGroup = ({
|
|
|
3701
3698
|
errorMessage,
|
|
3702
3699
|
...props
|
|
3703
3700
|
}) => {
|
|
3704
|
-
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3701
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react66.Box, { mt: "2", mb: "1", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react66.RadioGroup, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react66.Stack, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
|
|
3705
3702
|
};
|
|
3706
3703
|
RadioGroup.displayName = "RadioGroup";
|
|
3707
3704
|
RadioGroup.defaultProps = {
|
|
@@ -3711,34 +3708,34 @@ RadioGroup.defaultProps = {
|
|
|
3711
3708
|
};
|
|
3712
3709
|
|
|
3713
3710
|
// src/components/radio/index.ts
|
|
3714
|
-
var
|
|
3711
|
+
var import_react67 = require("@chakra-ui/react");
|
|
3715
3712
|
|
|
3716
3713
|
// src/components/rating/components/rating.tsx
|
|
3717
|
-
var
|
|
3714
|
+
var import_react68 = require("@chakra-ui/react");
|
|
3718
3715
|
var import_internal_icon7 = require("@ctlyst.id/internal-icon");
|
|
3719
3716
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3720
3717
|
var Rating = ({ value }) => {
|
|
3721
|
-
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3718
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react68.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 })) });
|
|
3722
3719
|
};
|
|
3723
3720
|
var rating_default = Rating;
|
|
3724
3721
|
|
|
3725
3722
|
// src/components/select/components/select.tsx
|
|
3726
|
-
var
|
|
3723
|
+
var import_react72 = require("@chakra-ui/react");
|
|
3727
3724
|
var import_system7 = require("@chakra-ui/system");
|
|
3728
3725
|
var Icon7 = __toESM(require("@ctlyst.id/internal-icon"));
|
|
3729
3726
|
var import_react_select = __toESM(require("react-select"));
|
|
3730
3727
|
|
|
3731
3728
|
// src/config/theme/foundations/shadows.ts
|
|
3732
|
-
var
|
|
3729
|
+
var import_react69 = require("@chakra-ui/react");
|
|
3733
3730
|
var shadows = {
|
|
3734
|
-
...
|
|
3731
|
+
...import_react69.theme.shadows,
|
|
3735
3732
|
raised: "0px 4px 20px rgba(0, 0, 0, 0.05)"
|
|
3736
3733
|
};
|
|
3737
3734
|
|
|
3738
3735
|
// src/config/theme/foundations/sizes.ts
|
|
3739
|
-
var
|
|
3736
|
+
var import_react70 = require("@chakra-ui/react");
|
|
3740
3737
|
var sizes = {
|
|
3741
|
-
...
|
|
3738
|
+
...import_react70.theme.sizes,
|
|
3742
3739
|
4.5: "1.125rem",
|
|
3743
3740
|
9.5: "2.375rem",
|
|
3744
3741
|
18: "4.5rem",
|
|
@@ -3748,9 +3745,9 @@ var sizes = {
|
|
|
3748
3745
|
};
|
|
3749
3746
|
|
|
3750
3747
|
// src/config/theme/foundations/spacing.ts
|
|
3751
|
-
var
|
|
3748
|
+
var import_react71 = require("@chakra-ui/react");
|
|
3752
3749
|
var spacing = {
|
|
3753
|
-
...
|
|
3750
|
+
...import_react71.theme.space,
|
|
3754
3751
|
4.5: "1.125rem",
|
|
3755
3752
|
9.5: "2.375rem",
|
|
3756
3753
|
18: "4.5rem",
|
|
@@ -4041,6 +4038,9 @@ function selectStyles(colorMode, _isError) {
|
|
|
4041
4038
|
placeholder: (base) => {
|
|
4042
4039
|
return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)" };
|
|
4043
4040
|
},
|
|
4041
|
+
clearIndicator: (base) => {
|
|
4042
|
+
return { ...base, cursor: "pointer" };
|
|
4043
|
+
},
|
|
4044
4044
|
multiValue: (base) => {
|
|
4045
4045
|
return {
|
|
4046
4046
|
...base,
|
|
@@ -4087,10 +4087,10 @@ function ClearIndicator(props) {
|
|
|
4087
4087
|
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon7.Close, { size: 4, color: hasValue ? "black.medium" : "neutral.400" }) });
|
|
4088
4088
|
}
|
|
4089
4089
|
function MultiValue(props) {
|
|
4090
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4090
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react72.Badge, { pr: 0, variant: "neutral-light", children: props == null ? void 0 : props.data.label }) });
|
|
4091
4091
|
}
|
|
4092
4092
|
function MultiValueRemove(props) {
|
|
4093
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react72.Flex, { align: "center", justify: "center", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon7.Close, { size: 2.5, color: "inherit" }) }) });
|
|
4094
4094
|
}
|
|
4095
4095
|
function Select2({
|
|
4096
4096
|
styles,
|
|
@@ -4098,10 +4098,11 @@ function Select2({
|
|
|
4098
4098
|
...rest
|
|
4099
4099
|
}) {
|
|
4100
4100
|
const { colorMode } = (0, import_system7.useColorMode)();
|
|
4101
|
-
const { components } = rest;
|
|
4101
|
+
const { components, value, onChange } = rest;
|
|
4102
4102
|
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4103
4103
|
import_react_select.default,
|
|
4104
4104
|
{
|
|
4105
|
+
"data-test-id": "",
|
|
4105
4106
|
classNamePrefix: "react-select",
|
|
4106
4107
|
components: {
|
|
4107
4108
|
DropdownIndicator,
|
|
@@ -4110,6 +4111,8 @@ function Select2({
|
|
|
4110
4111
|
MultiValueRemove,
|
|
4111
4112
|
...components
|
|
4112
4113
|
},
|
|
4114
|
+
value,
|
|
4115
|
+
onChange,
|
|
4113
4116
|
styles: { ...selectStyles(colorMode, isError) },
|
|
4114
4117
|
theme: themeSelect,
|
|
4115
4118
|
...rest
|
|
@@ -4187,7 +4190,7 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
|
4187
4190
|
}
|
|
4188
4191
|
|
|
4189
4192
|
// src/components/select/components/select-with-checkbox.tsx
|
|
4190
|
-
var
|
|
4193
|
+
var import_react73 = require("@chakra-ui/react");
|
|
4191
4194
|
var import_system11 = require("@chakra-ui/system");
|
|
4192
4195
|
var import_react_select2 = __toESM(require("react-select"));
|
|
4193
4196
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
@@ -4250,7 +4253,7 @@ var InputOption = ({
|
|
|
4250
4253
|
innerProps: props,
|
|
4251
4254
|
...rest,
|
|
4252
4255
|
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
4253
|
-
|
|
4256
|
+
import_react73.Flex,
|
|
4254
4257
|
{
|
|
4255
4258
|
alignItems: "center",
|
|
4256
4259
|
width: "100%",
|
|
@@ -4260,15 +4263,15 @@ var InputOption = ({
|
|
|
4260
4263
|
cursor: isDisabled ? "not-allowed" : "default",
|
|
4261
4264
|
children: [
|
|
4262
4265
|
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4263
|
-
|
|
4266
|
+
import_react73.Checkbox,
|
|
4264
4267
|
{
|
|
4265
4268
|
isChecked: checkedState === CHECKBOX_STATE.CHECKED,
|
|
4266
4269
|
isIndeterminate: checkedState === CHECKBOX_STATE.INDETERMINATE,
|
|
4267
4270
|
isDisabled,
|
|
4268
4271
|
"data-test-id": "CT_component_select-checkbox_select-all-option"
|
|
4269
4272
|
}
|
|
4270
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4271
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4273
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react73.Checkbox, { isChecked: isSelected, "data-test-id": "CT_component_select-checkbox_option-checkbox" }),
|
|
4274
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react73.Text, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
|
|
4272
4275
|
]
|
|
4273
4276
|
}
|
|
4274
4277
|
)
|
|
@@ -4281,21 +4284,24 @@ var SelectWithCheckboxBase = ({
|
|
|
4281
4284
|
isError = false,
|
|
4282
4285
|
components,
|
|
4283
4286
|
options,
|
|
4287
|
+
onChange,
|
|
4288
|
+
value,
|
|
4284
4289
|
...rest
|
|
4285
4290
|
}) => {
|
|
4286
4291
|
const { colorMode } = (0, import_system11.useColorMode)();
|
|
4287
4292
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4288
4293
|
import_react_select2.default,
|
|
4289
4294
|
{
|
|
4295
|
+
"data-test-id": "",
|
|
4290
4296
|
classNamePrefix: "react-select",
|
|
4291
4297
|
options,
|
|
4298
|
+
value,
|
|
4299
|
+
onChange,
|
|
4292
4300
|
styles: { ...selectStyles(colorMode, !!isError) },
|
|
4293
4301
|
theme: themeSelect,
|
|
4294
4302
|
closeMenuOnSelect: false,
|
|
4295
4303
|
hideSelectedOptions: false,
|
|
4296
|
-
components
|
|
4297
|
-
...components
|
|
4298
|
-
},
|
|
4304
|
+
components,
|
|
4299
4305
|
...rest
|
|
4300
4306
|
}
|
|
4301
4307
|
);
|
|
@@ -4303,24 +4309,29 @@ var SelectWithCheckboxBase = ({
|
|
|
4303
4309
|
var SelectCheckbox = (props) => {
|
|
4304
4310
|
const { isMulti, options, value, components, ...rest } = props;
|
|
4305
4311
|
const selectValue = value || [];
|
|
4312
|
+
const defaultComponents = {
|
|
4313
|
+
DropdownIndicator,
|
|
4314
|
+
ClearIndicator,
|
|
4315
|
+
MultiValue,
|
|
4316
|
+
MultiValueRemove,
|
|
4317
|
+
Option: (optionProps) => {
|
|
4318
|
+
const { isSelected, data } = optionProps;
|
|
4319
|
+
const optionLength = (options == null ? void 0 : options.length) ? options.length - 1 : 0;
|
|
4320
|
+
const selectedValue = isSelected ? CHECKBOX_STATE.CHECKED : CHECKBOX_STATE.UNCHECKED;
|
|
4321
|
+
const checkedState = data.selectAllCheckbox ? getSelectAllCheckboxState(selectValue == null ? void 0 : selectValue.length, optionLength) : selectedValue;
|
|
4322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(InputOption, { ...optionProps, checkedState });
|
|
4323
|
+
}
|
|
4324
|
+
};
|
|
4306
4325
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4307
4326
|
SelectWithCheckboxBase,
|
|
4308
4327
|
{
|
|
4328
|
+
"data-test-id": "",
|
|
4309
4329
|
isMulti,
|
|
4310
4330
|
options,
|
|
4331
|
+
value,
|
|
4311
4332
|
components: {
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
MultiValue,
|
|
4315
|
-
MultiValueRemove,
|
|
4316
|
-
...components,
|
|
4317
|
-
Option: (optionProps) => {
|
|
4318
|
-
const { isSelected, data } = optionProps;
|
|
4319
|
-
const optionLength = (options == null ? void 0 : options.length) ? options.length - 1 : 0;
|
|
4320
|
-
const selectedValue = isSelected ? CHECKBOX_STATE.CHECKED : CHECKBOX_STATE.UNCHECKED;
|
|
4321
|
-
const checkedState = data.selectAllCheckbox ? getSelectAllCheckboxState(selectValue == null ? void 0 : selectValue.length, optionLength) : selectedValue;
|
|
4322
|
-
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(InputOption, { ...optionProps, checkedState });
|
|
4323
|
-
}
|
|
4333
|
+
...defaultComponents,
|
|
4334
|
+
...components
|
|
4324
4335
|
},
|
|
4325
4336
|
...rest
|
|
4326
4337
|
}
|
|
@@ -4329,13 +4340,13 @@ var SelectCheckbox = (props) => {
|
|
|
4329
4340
|
var select_with_checkbox_default = SelectCheckbox;
|
|
4330
4341
|
|
|
4331
4342
|
// src/components/sidebar/components/sidebar.tsx
|
|
4332
|
-
var
|
|
4343
|
+
var import_react74 = require("@chakra-ui/react");
|
|
4333
4344
|
var import_framer_motion = require("framer-motion");
|
|
4334
4345
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4335
4346
|
var Sidebar = ({ isCollapse, children, ...props }) => {
|
|
4336
4347
|
const { width = "220px" } = props;
|
|
4337
4348
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4338
|
-
|
|
4349
|
+
import_react74.Flex,
|
|
4339
4350
|
{
|
|
4340
4351
|
position: "relative",
|
|
4341
4352
|
as: import_framer_motion.motion.div,
|
|
@@ -4355,13 +4366,13 @@ var Sidebar = ({ isCollapse, children, ...props }) => {
|
|
|
4355
4366
|
Sidebar.displayName = "Sidebar";
|
|
4356
4367
|
|
|
4357
4368
|
// src/components/sidebar/components/sidebar-header.tsx
|
|
4358
|
-
var
|
|
4369
|
+
var import_react75 = require("@chakra-ui/react");
|
|
4359
4370
|
var import_internal_icon8 = require("@ctlyst.id/internal-icon");
|
|
4360
4371
|
var import_framer_motion2 = require("framer-motion");
|
|
4361
4372
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4362
4373
|
var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
4363
4374
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4364
|
-
|
|
4375
|
+
import_react75.Box,
|
|
4365
4376
|
{
|
|
4366
4377
|
px: "2",
|
|
4367
4378
|
color: "neutral.900",
|
|
@@ -4371,7 +4382,7 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
|
4371
4382
|
color: "primary.500"
|
|
4372
4383
|
},
|
|
4373
4384
|
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
4374
|
-
|
|
4385
|
+
import_react75.Flex,
|
|
4375
4386
|
{
|
|
4376
4387
|
"data-test-id": "nLkz69YipW818FioeAxVI",
|
|
4377
4388
|
direction: "row",
|
|
@@ -4381,7 +4392,7 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
|
4381
4392
|
cursor: "pointer",
|
|
4382
4393
|
children: [
|
|
4383
4394
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4384
|
-
|
|
4395
|
+
import_react75.Box,
|
|
4385
4396
|
{
|
|
4386
4397
|
as: import_framer_motion2.motion.div,
|
|
4387
4398
|
boxSize: "4",
|
|
@@ -4392,8 +4403,8 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
|
4392
4403
|
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_internal_icon8.ArrowRight, { size: 4, color: "inherit" })
|
|
4393
4404
|
}
|
|
4394
4405
|
),
|
|
4395
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_framer_motion2.AnimatePresence, { children: !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4396
|
-
|
|
4406
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_framer_motion2.AnimatePresence, { children: !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react75.Box, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4407
|
+
import_react75.Text,
|
|
4397
4408
|
{
|
|
4398
4409
|
as: import_framer_motion2.motion.div,
|
|
4399
4410
|
w: "max-content",
|
|
@@ -4419,25 +4430,25 @@ SidebarHeader.defaultProps = {
|
|
|
4419
4430
|
};
|
|
4420
4431
|
|
|
4421
4432
|
// src/components/sidebar/components/sidebar-menu.tsx
|
|
4422
|
-
var
|
|
4433
|
+
var import_react76 = require("@chakra-ui/react");
|
|
4423
4434
|
var Icon8 = __toESM(require("@ctlyst.id/internal-icon"));
|
|
4424
4435
|
var import_framer_motion3 = require("framer-motion");
|
|
4425
4436
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4426
4437
|
var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, setActive, active }) => {
|
|
4427
|
-
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Box, { as: import_framer_motion3.motion.div, animate: { padding: isCollapse ? "8px 16px" : "8px" }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Accordion, { index: menu.findIndex((item) => item.children.some((child) => child.navLink === active)), children: menu.map((item) => {
|
|
4428
4439
|
const isActive = active == null ? void 0 : active.includes(item.navLink);
|
|
4429
|
-
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.AccordionItem, { mt: "4", children: ({ isExpanded }) => {
|
|
4430
4441
|
const isOpenOptions = isCollapse || !isCollapse && !isExpanded;
|
|
4431
4442
|
const noChild = !item.children.length;
|
|
4432
4443
|
const offsetStyle = isCollapse ? noChild ? [-5, 16] : [-1, 16] : [-1, 8];
|
|
4433
4444
|
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
|
4434
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4445
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Popover, { trigger: "hover", placement: "right-start", offset: offsetStyle, children: ({ isOpen, onClose }) => {
|
|
4435
4446
|
const activeOption = isOpen ? "primary.50" : "white";
|
|
4436
4447
|
const backgroundColor = isOpen && !isActive ? "primary.50" : "primary.100";
|
|
4437
4448
|
const activeParent = isActive ? backgroundColor : activeOption;
|
|
4438
4449
|
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
|
4439
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4440
|
-
|
|
4450
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4451
|
+
import_react76.AccordionButton,
|
|
4441
4452
|
{
|
|
4442
4453
|
"data-test-id": `CTA_button-accordion-${item.title}`,
|
|
4443
4454
|
p: "0",
|
|
@@ -4454,9 +4465,9 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
|
4454
4465
|
position: "relative",
|
|
4455
4466
|
...itemStyles,
|
|
4456
4467
|
children: [
|
|
4457
|
-
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4468
|
+
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Box, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
|
|
4458
4469
|
!isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
4459
|
-
|
|
4470
|
+
import_react76.Box,
|
|
4460
4471
|
{
|
|
4461
4472
|
display: "flex",
|
|
4462
4473
|
w: "full",
|
|
@@ -4469,9 +4480,9 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
|
4469
4480
|
animate: { opacity: 1, x: 0 },
|
|
4470
4481
|
exit: { opacity: 0, x: 16 },
|
|
4471
4482
|
children: [
|
|
4472
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4483
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Box, { h: "3.5", position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Text, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) }),
|
|
4473
4484
|
!!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4474
|
-
|
|
4485
|
+
import_react76.Box,
|
|
4475
4486
|
{
|
|
4476
4487
|
display: "flex",
|
|
4477
4488
|
boxSize: "3",
|
|
@@ -4490,12 +4501,12 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
|
4490
4501
|
},
|
|
4491
4502
|
item.id
|
|
4492
4503
|
) }, item.id),
|
|
4493
|
-
isOpenOptions && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4494
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4504
|
+
isOpenOptions && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Portal, { children: item.children.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react76.PopoverContent, { w: "176px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: [
|
|
4505
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.PopoverHeader, { borderColor: "neutral.300", textStyle: "text.xs", p: "2", children: mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react76.Box, { display: "flex", alignItems: "center", children: [
|
|
4495
4506
|
mappingIcon2.get(item.icon || ""),
|
|
4496
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4507
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Box, { as: "span", ml: "2", children: item.title })
|
|
4497
4508
|
] }) }),
|
|
4498
|
-
!!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4509
|
+
!!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.PopoverBody, { pb: "1", px: "0", pt: "0", children: item.children.map((submenu) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4499
4510
|
NavItem,
|
|
4500
4511
|
{
|
|
4501
4512
|
"data-test-id": `CTA_Sidebar-popover-item-${submenu.id}`,
|
|
@@ -4511,7 +4522,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
|
4511
4522
|
},
|
|
4512
4523
|
submenu.id
|
|
4513
4524
|
)) })
|
|
4514
|
-
] }) : isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4525
|
+
] }) : isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.PopoverContent, { w: "174px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.PopoverBody, { py: "1", px: "0", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
4515
4526
|
NavItem,
|
|
4516
4527
|
{
|
|
4517
4528
|
"data-test-id": `CTA_Sidebar-popover-item-${item.id}`,
|
|
@@ -4524,15 +4535,15 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
|
4524
4535
|
rounded: "none",
|
|
4525
4536
|
...itemStyles,
|
|
4526
4537
|
children: [
|
|
4527
|
-
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4528
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4538
|
+
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Box, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
|
|
4539
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Box, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Text, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) })
|
|
4529
4540
|
]
|
|
4530
4541
|
},
|
|
4531
4542
|
item.id
|
|
4532
4543
|
) }) }) })
|
|
4533
4544
|
] });
|
|
4534
4545
|
} }, item.id),
|
|
4535
|
-
!isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4546
|
+
!isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.AccordionPanel, { mt: "1", p: "0", children: item.children.map((submenu) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4536
4547
|
NavItem,
|
|
4537
4548
|
{
|
|
4538
4549
|
mt: "1",
|
|
@@ -4556,16 +4567,16 @@ SidebarMenu.defaultProps = {
|
|
|
4556
4567
|
};
|
|
4557
4568
|
|
|
4558
4569
|
// src/components/switch/components/switch.tsx
|
|
4559
|
-
var
|
|
4570
|
+
var import_react77 = require("@chakra-ui/react");
|
|
4560
4571
|
var import_shared_utils10 = require("@chakra-ui/shared-utils");
|
|
4561
4572
|
var import_internal_icon9 = require("@ctlyst.id/internal-icon");
|
|
4562
|
-
var
|
|
4573
|
+
var import_react78 = require("react");
|
|
4563
4574
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4564
|
-
var Switch = (0,
|
|
4565
|
-
const styles = (0,
|
|
4566
|
-
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0,
|
|
4567
|
-
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0,
|
|
4568
|
-
const containerStyles = (0,
|
|
4575
|
+
var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
4576
|
+
const styles = (0, import_react77.useMultiStyleConfig)("Switch", props);
|
|
4577
|
+
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0, import_react77.omitThemingProps)(props);
|
|
4578
|
+
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0, import_react77.useCheckbox)(ownProps);
|
|
4579
|
+
const containerStyles = (0, import_react78.useMemo)(
|
|
4569
4580
|
() => ({
|
|
4570
4581
|
display: "inline-block",
|
|
4571
4582
|
position: "relative",
|
|
@@ -4575,7 +4586,7 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
|
4575
4586
|
}),
|
|
4576
4587
|
[styles.container]
|
|
4577
4588
|
);
|
|
4578
|
-
const trackStyles = (0,
|
|
4589
|
+
const trackStyles = (0, import_react78.useMemo)(
|
|
4579
4590
|
() => ({
|
|
4580
4591
|
display: "inline-flex",
|
|
4581
4592
|
flexShrink: 0,
|
|
@@ -4587,7 +4598,7 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
|
4587
4598
|
}),
|
|
4588
4599
|
[styles.track]
|
|
4589
4600
|
);
|
|
4590
|
-
const labelStyles = (0,
|
|
4601
|
+
const labelStyles = (0, import_react78.useMemo)(
|
|
4591
4602
|
() => ({
|
|
4592
4603
|
userSelect: "none",
|
|
4593
4604
|
marginStart: spacing2,
|
|
@@ -4604,7 +4615,7 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
|
4604
4615
|
return iconSize[value];
|
|
4605
4616
|
};
|
|
4606
4617
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
4607
|
-
|
|
4618
|
+
import_react77.chakra.label,
|
|
4608
4619
|
{
|
|
4609
4620
|
...getRootProps(),
|
|
4610
4621
|
display: "flex",
|
|
@@ -4613,13 +4624,13 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
|
4613
4624
|
__css: containerStyles,
|
|
4614
4625
|
children: [
|
|
4615
4626
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
|
4616
|
-
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
4617
|
-
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
4627
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react77.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
|
4628
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react77.Flex, { gap: 1, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
|
|
4618
4629
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_internal_icon9.Check, { color: "white", size: getIconSize(props.size) }),
|
|
4619
4630
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_internal_icon9.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
|
4620
4631
|
] }),
|
|
4621
4632
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4622
|
-
|
|
4633
|
+
import_react77.chakra.span,
|
|
4623
4634
|
{
|
|
4624
4635
|
__css: styles.thumb,
|
|
4625
4636
|
className: "chakra-switch__thumb",
|
|
@@ -4629,7 +4640,7 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
|
4629
4640
|
)
|
|
4630
4641
|
] }),
|
|
4631
4642
|
children && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4632
|
-
|
|
4643
|
+
import_react77.chakra.span,
|
|
4633
4644
|
{
|
|
4634
4645
|
className: "chakra-switch__label",
|
|
4635
4646
|
color: state.isDisabled ? "black.low" : "black.high",
|
|
@@ -4649,18 +4660,18 @@ Switch.defaultProps = {
|
|
|
4649
4660
|
var switch_default = Switch;
|
|
4650
4661
|
|
|
4651
4662
|
// src/components/table/index.tsx
|
|
4652
|
-
var
|
|
4663
|
+
var import_react79 = require("@chakra-ui/react");
|
|
4653
4664
|
|
|
4654
4665
|
// src/components/tabs/components/tab.tsx
|
|
4655
|
-
var
|
|
4666
|
+
var import_react80 = require("@chakra-ui/react");
|
|
4656
4667
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4657
|
-
var Tab = (0,
|
|
4668
|
+
var Tab = (0, import_react80.forwardRef)((props, ref) => {
|
|
4658
4669
|
var _a, _b;
|
|
4659
|
-
const tabProps = (0,
|
|
4670
|
+
const tabProps = (0, import_react80.useTab)({ ...props, ref });
|
|
4660
4671
|
const isSelected = !!tabProps["aria-selected"];
|
|
4661
|
-
const styles = (0,
|
|
4672
|
+
const styles = (0, import_react80.useMultiStyleConfig)("Tabs", tabProps);
|
|
4662
4673
|
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4663
|
-
|
|
4674
|
+
import_react80.Button,
|
|
4664
4675
|
{
|
|
4665
4676
|
"data-test-id": props["data-test-id"],
|
|
4666
4677
|
p: 4,
|
|
@@ -4685,7 +4696,7 @@ var Tab = (0, import_react81.forwardRef)((props, ref) => {
|
|
|
4685
4696
|
},
|
|
4686
4697
|
__css: styles.tab,
|
|
4687
4698
|
...tabProps,
|
|
4688
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
4699
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react80.Flex, { alignItems: "center", children: [
|
|
4689
4700
|
(_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
|
|
4690
4701
|
tabProps.children,
|
|
4691
4702
|
(_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
|
|
@@ -4696,21 +4707,21 @@ var Tab = (0, import_react81.forwardRef)((props, ref) => {
|
|
|
4696
4707
|
var tab_default = Tab;
|
|
4697
4708
|
|
|
4698
4709
|
// src/components/tabs/index.ts
|
|
4699
|
-
var
|
|
4710
|
+
var import_react81 = require("@chakra-ui/react");
|
|
4700
4711
|
|
|
4701
4712
|
// src/components/text/index.ts
|
|
4702
|
-
var
|
|
4713
|
+
var import_react82 = require("@chakra-ui/react");
|
|
4703
4714
|
|
|
4704
4715
|
// src/components/toast/components/toast.tsx
|
|
4705
|
-
var
|
|
4716
|
+
var import_react84 = require("@chakra-ui/react");
|
|
4706
4717
|
var import_react_toastify = require("react-toastify");
|
|
4707
4718
|
|
|
4708
4719
|
// src/components/toast/components/styles.tsx
|
|
4709
|
-
var
|
|
4720
|
+
var import_react83 = require("@emotion/react");
|
|
4710
4721
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
4711
4722
|
var Styles2 = () => {
|
|
4712
4723
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4713
|
-
|
|
4724
|
+
import_react83.Global,
|
|
4714
4725
|
{
|
|
4715
4726
|
styles: `
|
|
4716
4727
|
.Toastify__toast-container {
|
|
@@ -4763,7 +4774,7 @@ var renderIcon = (icon, type) => {
|
|
|
4763
4774
|
return icon;
|
|
4764
4775
|
};
|
|
4765
4776
|
var useToast = () => {
|
|
4766
|
-
const [primary500, neutral500, info500, danger500, warning500, success500] = (0,
|
|
4777
|
+
const [primary500, neutral500, info500, danger500, warning500, success500] = (0, import_react84.useToken)("colors", [
|
|
4767
4778
|
"primary.500",
|
|
4768
4779
|
"neutral.500",
|
|
4769
4780
|
"info.500",
|
|
@@ -4774,13 +4785,13 @@ var useToast = () => {
|
|
|
4774
4785
|
const content = (icon, message, link) => {
|
|
4775
4786
|
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
|
|
4776
4787
|
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(styles_default2, {}),
|
|
4777
|
-
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
4778
|
-
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
4779
|
-
icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4780
|
-
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4788
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react84.Flex, { justifyContent: "space-between", alignItems: "center", gap: 4, children: [
|
|
4789
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react84.Flex, { alignItems: "center", children: [
|
|
4790
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react84.chakra.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
|
|
4791
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react84.chakra.span, { noOfLines: 2, children: message })
|
|
4781
4792
|
] }),
|
|
4782
4793
|
link && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4783
|
-
|
|
4794
|
+
import_react84.Link,
|
|
4784
4795
|
{
|
|
4785
4796
|
href: link.url,
|
|
4786
4797
|
textDecoration: "underline",
|
|
@@ -4858,9 +4869,9 @@ var useToast = () => {
|
|
|
4858
4869
|
var import_react_toastify2 = require("react-toastify");
|
|
4859
4870
|
|
|
4860
4871
|
// src/components/uploader/components/uploader.tsx
|
|
4861
|
-
var
|
|
4872
|
+
var import_react85 = require("@chakra-ui/react");
|
|
4862
4873
|
var import_internal_icon10 = require("@ctlyst.id/internal-icon");
|
|
4863
|
-
var
|
|
4874
|
+
var import_react86 = require("react");
|
|
4864
4875
|
var import_react_dropzone = require("react-dropzone");
|
|
4865
4876
|
|
|
4866
4877
|
// src/components/uploader/constants.ts
|
|
@@ -4891,7 +4902,7 @@ var formatValidationMessage = (extension) => `Foto harus dalam format ${concatLi
|
|
|
4891
4902
|
|
|
4892
4903
|
// src/components/uploader/components/uploader.tsx
|
|
4893
4904
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4894
|
-
var
|
|
4905
|
+
var import_react87 = require("react");
|
|
4895
4906
|
var Uploader = ({
|
|
4896
4907
|
onHandleUploadFile,
|
|
4897
4908
|
onHandleRejections,
|
|
@@ -4920,10 +4931,10 @@ var Uploader = ({
|
|
|
4920
4931
|
size: size2 = "lg",
|
|
4921
4932
|
...props
|
|
4922
4933
|
}) => {
|
|
4923
|
-
const inputRef = (0,
|
|
4924
|
-
const [filePreview, setFilePreview] = (0,
|
|
4934
|
+
const inputRef = (0, import_react86.useRef)(null);
|
|
4935
|
+
const [filePreview, setFilePreview] = (0, import_react86.useState)();
|
|
4925
4936
|
const toast2 = useToast();
|
|
4926
|
-
const handleRejection = (0,
|
|
4937
|
+
const handleRejection = (0, import_react86.useCallback)(
|
|
4927
4938
|
(message, file, image) => {
|
|
4928
4939
|
if (onHandleRejections) {
|
|
4929
4940
|
onHandleRejections(file, image);
|
|
@@ -4935,7 +4946,7 @@ var Uploader = ({
|
|
|
4935
4946
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
4936
4947
|
[onHandleRejections]
|
|
4937
4948
|
);
|
|
4938
|
-
const onDrop = (0,
|
|
4949
|
+
const onDrop = (0, import_react86.useCallback)(
|
|
4939
4950
|
(files) => {
|
|
4940
4951
|
var _a;
|
|
4941
4952
|
const file = files[0];
|
|
@@ -4979,18 +4990,18 @@ var Uploader = ({
|
|
|
4979
4990
|
});
|
|
4980
4991
|
const renderHelperText = () => {
|
|
4981
4992
|
if (Array.isArray(helperText)) {
|
|
4982
|
-
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4993
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react85.UnorderedList, { pl: 2, fontSize: 12, color: "gray.600", "data-test-id": "CT_component_base-image-uploader_helperText", children: helperText.map((text2) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react85.ListItem, { children: text2 }, text2)) });
|
|
4983
4994
|
}
|
|
4984
4995
|
return helperText;
|
|
4985
4996
|
};
|
|
4986
|
-
const renderErrorText = (text2) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4997
|
+
const renderErrorText = (text2) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react85.Box, { mb: 2, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react85.Text, { textStyle: "text.xs", color: "danger.500", children: text2 }) });
|
|
4987
4998
|
const handleRemove = (e) => {
|
|
4988
4999
|
e.stopPropagation();
|
|
4989
5000
|
setFilePreview(void 0);
|
|
4990
5001
|
onHandleUploadFile == null ? void 0 : onHandleUploadFile(null, null);
|
|
4991
5002
|
acceptedFiles.pop();
|
|
4992
5003
|
};
|
|
4993
|
-
(0,
|
|
5004
|
+
(0, import_react86.useEffect)(() => {
|
|
4994
5005
|
if (value) {
|
|
4995
5006
|
if (typeof value === "string") {
|
|
4996
5007
|
setFilePreview(value);
|
|
@@ -5006,16 +5017,16 @@ var Uploader = ({
|
|
|
5006
5017
|
const color = isDisabled ? "neutral.500" : "primary.500";
|
|
5007
5018
|
const containerHeight = !isSmall ? "160px" : "120px";
|
|
5008
5019
|
const cursorType = filePreview ? "initial" : "pointer";
|
|
5009
|
-
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
5020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react85.FormControl, { isRequired, children: [
|
|
5010
5021
|
label && typeof label === "string" ? (
|
|
5011
5022
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
5012
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
5013
|
-
isRequired && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5023
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react85.FormLabel, { requiredIndicator: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, {}), fontSize: "text.sm", children: [
|
|
5024
|
+
isRequired && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react85.RequiredIndicator, { mr: 1, ml: 0 }),
|
|
5014
5025
|
label
|
|
5015
5026
|
] })
|
|
5016
5027
|
) : label,
|
|
5017
5028
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
5018
|
-
|
|
5029
|
+
import_react85.Flex,
|
|
5019
5030
|
{
|
|
5020
5031
|
minH: containerHeight,
|
|
5021
5032
|
maxW: !isSmall ? "full" : "120px",
|
|
@@ -5032,8 +5043,8 @@ var Uploader = ({
|
|
|
5032
5043
|
...props,
|
|
5033
5044
|
...getRootProps(),
|
|
5034
5045
|
children: [
|
|
5035
|
-
filePreview && isShowCloseButton && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5036
|
-
|
|
5046
|
+
filePreview && isShowCloseButton && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react85.Box, { position: "absolute", top: 1, right: 1, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5047
|
+
import_react85.Button,
|
|
5037
5048
|
{
|
|
5038
5049
|
"data-test-id": `CT_component_base-image-uploader_remove-image${testId ? `_${testId}` : ""}`,
|
|
5039
5050
|
"aria-label": "remove-image",
|
|
@@ -5050,15 +5061,15 @@ var Uploader = ({
|
|
|
5050
5061
|
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_internal_icon10.Close, { size: 3, color: "white" })
|
|
5051
5062
|
}
|
|
5052
5063
|
) }),
|
|
5053
|
-
filePreview && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5054
|
-
|
|
5064
|
+
filePreview && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react85.Box, { w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5065
|
+
import_react85.Flex,
|
|
5055
5066
|
{
|
|
5056
5067
|
position: "relative",
|
|
5057
5068
|
"data-test-id": `CT_component_base-image-uploader_image-preview${testId ? `_${testId}` : ""}`,
|
|
5058
5069
|
justify: "center",
|
|
5059
5070
|
align: "center",
|
|
5060
5071
|
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5061
|
-
|
|
5072
|
+
import_react85.Image,
|
|
5062
5073
|
{
|
|
5063
5074
|
h: size2 === "lg" ? "120" : "100",
|
|
5064
5075
|
src: filePreview,
|
|
@@ -5076,11 +5087,11 @@ var Uploader = ({
|
|
|
5076
5087
|
...getInputProps()
|
|
5077
5088
|
}
|
|
5078
5089
|
),
|
|
5079
|
-
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5090
|
+
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react85.Text, { children: dragActiveText != null ? dragActiveText : messages.dragActive }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react85.Flex, { gap: 2, flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : color, children: [
|
|
5080
5091
|
size2 === "sm" && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_internal_icon10.Plus, { size: 6, color }),
|
|
5081
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
5092
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react85.Box, { children: [
|
|
5082
5093
|
!filePreview && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5083
|
-
|
|
5094
|
+
import_react85.Heading,
|
|
5084
5095
|
{
|
|
5085
5096
|
fontWeight: "400",
|
|
5086
5097
|
fontSize: size2 === "sm" ? "text.md" : "text.xl",
|
|
@@ -5089,15 +5100,15 @@ var Uploader = ({
|
|
|
5089
5100
|
children: uploadFileText && size2 === "lg" ? messages.uploadFile : "Upload"
|
|
5090
5101
|
}
|
|
5091
5102
|
),
|
|
5092
|
-
size2 === "lg" && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5103
|
+
size2 === "lg" && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react85.Text, { fontSize: 12, children: filePreview ? dragReplaceText != null ? dragReplaceText : messages.dragReplace : dragInActiveText != null ? dragInActiveText : messages.dragInActive })
|
|
5093
5104
|
] })
|
|
5094
5105
|
] })
|
|
5095
5106
|
] })
|
|
5096
5107
|
]
|
|
5097
5108
|
}
|
|
5098
5109
|
),
|
|
5099
|
-
filePreview && !isSmall && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
5100
|
-
/* @__PURE__ */ (0,
|
|
5110
|
+
filePreview && !isSmall && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react85.Flex, { align: "center", justify: "center", my: 2, children: [
|
|
5111
|
+
/* @__PURE__ */ (0, import_react87.createElement)(
|
|
5101
5112
|
"input",
|
|
5102
5113
|
{
|
|
5103
5114
|
...getInputProps(),
|
|
@@ -5108,7 +5119,7 @@ var Uploader = ({
|
|
|
5108
5119
|
}
|
|
5109
5120
|
),
|
|
5110
5121
|
isShowReupload && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5111
|
-
|
|
5122
|
+
import_react85.Button,
|
|
5112
5123
|
{
|
|
5113
5124
|
"data-test-id": `CT_component_base-image-uploader_change-img-btn${testId ? `_${testId}` : ""}`,
|
|
5114
5125
|
type: "button",
|
|
@@ -5129,10 +5140,10 @@ var Uploader = ({
|
|
|
5129
5140
|
var uploader_default = Uploader;
|
|
5130
5141
|
|
|
5131
5142
|
// src/components/index.ts
|
|
5132
|
-
var
|
|
5143
|
+
var import_react88 = require("@chakra-ui/react");
|
|
5133
5144
|
|
|
5134
5145
|
// src/config/theme/themeConfiguration.ts
|
|
5135
|
-
var
|
|
5146
|
+
var import_react96 = require("@chakra-ui/react");
|
|
5136
5147
|
|
|
5137
5148
|
// src/config/theme/components/index.ts
|
|
5138
5149
|
var components_exports = {};
|
|
@@ -5689,8 +5700,8 @@ var card_default2 = CardStyle;
|
|
|
5689
5700
|
|
|
5690
5701
|
// src/config/theme/components/checkbox.ts
|
|
5691
5702
|
var import_anatomy3 = require("@chakra-ui/anatomy");
|
|
5692
|
-
var
|
|
5693
|
-
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0,
|
|
5703
|
+
var import_react89 = require("@chakra-ui/react");
|
|
5704
|
+
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0, import_react89.createMultiStyleConfigHelpers)(import_anatomy3.checkboxAnatomy.keys);
|
|
5694
5705
|
var baseStyle3 = definePartsStyle3({
|
|
5695
5706
|
control: {
|
|
5696
5707
|
borderRadius: "sm",
|
|
@@ -5791,8 +5802,8 @@ var checkbox_default2 = Checkbox4;
|
|
|
5791
5802
|
|
|
5792
5803
|
// src/config/theme/components/chips.ts
|
|
5793
5804
|
var import_anatomy4 = require("@chakra-ui/anatomy");
|
|
5794
|
-
var
|
|
5795
|
-
var { definePartsStyle: definePartsStyle4, defineMultiStyleConfig: defineMultiStyleConfig4 } = (0,
|
|
5805
|
+
var import_react90 = require("@chakra-ui/react");
|
|
5806
|
+
var { definePartsStyle: definePartsStyle4, defineMultiStyleConfig: defineMultiStyleConfig4 } = (0, import_react90.createMultiStyleConfigHelpers)(import_anatomy4.tagAnatomy.keys);
|
|
5796
5807
|
var baseStyle4 = definePartsStyle4({
|
|
5797
5808
|
container: {
|
|
5798
5809
|
px: 3,
|
|
@@ -6001,8 +6012,8 @@ var input_default = Input3;
|
|
|
6001
6012
|
|
|
6002
6013
|
// src/config/theme/components/loader.ts
|
|
6003
6014
|
var import_styled_system7 = require("@chakra-ui/styled-system");
|
|
6004
|
-
var
|
|
6005
|
-
var rotate = (0,
|
|
6015
|
+
var import_react91 = require("@emotion/react");
|
|
6016
|
+
var rotate = (0, import_react91.keyframes)({
|
|
6006
6017
|
"0%": {
|
|
6007
6018
|
transform: "rotate(0deg)"
|
|
6008
6019
|
},
|
|
@@ -6184,8 +6195,8 @@ var modal_default = modalTheme;
|
|
|
6184
6195
|
|
|
6185
6196
|
// src/config/theme/components/popover.ts
|
|
6186
6197
|
var import_anatomy7 = require("@chakra-ui/anatomy");
|
|
6187
|
-
var
|
|
6188
|
-
var { definePartsStyle: definePartsStyle7, defineMultiStyleConfig: defineMultiStyleConfig7 } = (0,
|
|
6198
|
+
var import_react92 = require("@chakra-ui/react");
|
|
6199
|
+
var { definePartsStyle: definePartsStyle7, defineMultiStyleConfig: defineMultiStyleConfig7 } = (0, import_react92.createMultiStyleConfigHelpers)(import_anatomy7.popoverAnatomy.keys);
|
|
6189
6200
|
var baseStyle8 = definePartsStyle7({
|
|
6190
6201
|
content: {
|
|
6191
6202
|
bg: "white"
|
|
@@ -6196,8 +6207,8 @@ var popover_default = popoverTheme;
|
|
|
6196
6207
|
|
|
6197
6208
|
// src/config/theme/components/radio.ts
|
|
6198
6209
|
var import_anatomy8 = require("@chakra-ui/anatomy");
|
|
6199
|
-
var
|
|
6200
|
-
var { definePartsStyle: definePartsStyle8, defineMultiStyleConfig: defineMultiStyleConfig8 } = (0,
|
|
6210
|
+
var import_react93 = require("@chakra-ui/react");
|
|
6211
|
+
var { definePartsStyle: definePartsStyle8, defineMultiStyleConfig: defineMultiStyleConfig8 } = (0, import_react93.createMultiStyleConfigHelpers)(import_anatomy8.radioAnatomy.keys);
|
|
6201
6212
|
var baseStyle9 = definePartsStyle8({
|
|
6202
6213
|
control: {
|
|
6203
6214
|
border: "1px solid",
|
|
@@ -6632,7 +6643,7 @@ var tabsTheme = defineMultiStyleConfig11({
|
|
|
6632
6643
|
var tabs_default = tabsTheme;
|
|
6633
6644
|
|
|
6634
6645
|
// src/config/theme/components/textarea.ts
|
|
6635
|
-
var
|
|
6646
|
+
var import_react94 = require("@chakra-ui/react");
|
|
6636
6647
|
var getProps = (props) => {
|
|
6637
6648
|
const { isError, isSuccess, isDisabled } = props;
|
|
6638
6649
|
let borderColor = "neutral.400";
|
|
@@ -6652,7 +6663,7 @@ var getProps = (props) => {
|
|
|
6652
6663
|
borderColor
|
|
6653
6664
|
};
|
|
6654
6665
|
};
|
|
6655
|
-
var outline3 = (0,
|
|
6666
|
+
var outline3 = (0, import_react94.defineStyle)((props) => {
|
|
6656
6667
|
const { focusBorderColor, borderColor } = getProps(props);
|
|
6657
6668
|
return {
|
|
6658
6669
|
background: "white.high",
|
|
@@ -6696,7 +6707,7 @@ var outline3 = (0, import_react95.defineStyle)((props) => {
|
|
|
6696
6707
|
}
|
|
6697
6708
|
};
|
|
6698
6709
|
});
|
|
6699
|
-
var Textarea = (0,
|
|
6710
|
+
var Textarea = (0, import_react94.defineStyleConfig)({
|
|
6700
6711
|
variants: { outline: outline3 },
|
|
6701
6712
|
defaultProps: {
|
|
6702
6713
|
variant: "outline"
|
|
@@ -6705,15 +6716,15 @@ var Textarea = (0, import_react95.defineStyleConfig)({
|
|
|
6705
6716
|
var textarea_default2 = Textarea;
|
|
6706
6717
|
|
|
6707
6718
|
// src/config/theme/components/tooltip.ts
|
|
6708
|
-
var
|
|
6709
|
-
var $arrowBg = (0,
|
|
6719
|
+
var import_react95 = require("@chakra-ui/react");
|
|
6720
|
+
var $arrowBg = (0, import_react95.cssVar)("popper-arrow-bg");
|
|
6710
6721
|
var baseStyle12 = {
|
|
6711
6722
|
bg: "neutral.700",
|
|
6712
6723
|
textStyle: "text.sm",
|
|
6713
6724
|
fontSize: "text.sm",
|
|
6714
6725
|
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
|
6715
6726
|
};
|
|
6716
|
-
var Tooltip2 = (0,
|
|
6727
|
+
var Tooltip2 = (0, import_react95.defineStyleConfig)({ baseStyle: baseStyle12 });
|
|
6717
6728
|
var tooltip_default = Tooltip2;
|
|
6718
6729
|
|
|
6719
6730
|
// src/config/theme/themeConfiguration.ts
|
|
@@ -6723,7 +6734,7 @@ var config = {
|
|
|
6723
6734
|
useSystemColorMode: false
|
|
6724
6735
|
};
|
|
6725
6736
|
var getTheme = (foundations) => {
|
|
6726
|
-
return (0,
|
|
6737
|
+
return (0, import_react96.extendTheme)({
|
|
6727
6738
|
...foundations,
|
|
6728
6739
|
components: {
|
|
6729
6740
|
...components_exports
|
|
@@ -6740,7 +6751,7 @@ var getTheme = (foundations) => {
|
|
|
6740
6751
|
config
|
|
6741
6752
|
});
|
|
6742
6753
|
};
|
|
6743
|
-
var theme4 = (0,
|
|
6754
|
+
var theme4 = (0, import_react96.extendTheme)({
|
|
6744
6755
|
components: {
|
|
6745
6756
|
...components_exports
|
|
6746
6757
|
},
|
|
@@ -6760,23 +6771,23 @@ var theme4 = (0, import_react97.extendTheme)({
|
|
|
6760
6771
|
|
|
6761
6772
|
// src/hooks/useFetcher.ts
|
|
6762
6773
|
var import_axios2 = __toESM(require("axios"));
|
|
6763
|
-
var
|
|
6774
|
+
var import_react99 = require("react");
|
|
6764
6775
|
|
|
6765
6776
|
// src/provider/components/provider.tsx
|
|
6766
6777
|
var import_axios = __toESM(require("axios"));
|
|
6767
|
-
var
|
|
6778
|
+
var import_react97 = require("react");
|
|
6768
6779
|
var import_react_toastify3 = require("react-toastify");
|
|
6769
6780
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
6770
|
-
var ProviderContext = (0,
|
|
6781
|
+
var ProviderContext = (0, import_react97.createContext)({
|
|
6771
6782
|
instance: void 0
|
|
6772
6783
|
});
|
|
6773
6784
|
var useInternalUI = () => {
|
|
6774
|
-
const { instance } = (0,
|
|
6785
|
+
const { instance } = (0, import_react97.useContext)(ProviderContext);
|
|
6775
6786
|
return { instance };
|
|
6776
6787
|
};
|
|
6777
6788
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
|
6778
|
-
const instanceRef = (0,
|
|
6779
|
-
(0,
|
|
6789
|
+
const instanceRef = (0, import_react97.useRef)(import_axios.default.create(config2));
|
|
6790
|
+
(0, import_react97.useEffect)(() => {
|
|
6780
6791
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
|
6781
6792
|
instanceRef.current.interceptors.request.use(interceptor);
|
|
6782
6793
|
});
|
|
@@ -6784,7 +6795,7 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
|
6784
6795
|
instanceRef.current.interceptors.response.use(interceptor);
|
|
6785
6796
|
});
|
|
6786
6797
|
}, [requestInterceptors, responseInterceptors]);
|
|
6787
|
-
const provider = (0,
|
|
6798
|
+
const provider = (0, import_react97.useMemo)(() => ({ instance: instanceRef.current }), []);
|
|
6788
6799
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(ProviderContext.Provider, { value: provider, children: [
|
|
6789
6800
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_toastify3.ToastContainer, {}),
|
|
6790
6801
|
children
|
|
@@ -6794,12 +6805,12 @@ Provider.displayName = "Provider";
|
|
|
6794
6805
|
var provider_default = Provider;
|
|
6795
6806
|
|
|
6796
6807
|
// src/provider/index.ts
|
|
6797
|
-
var
|
|
6808
|
+
var import_react98 = require("@chakra-ui/react");
|
|
6798
6809
|
|
|
6799
6810
|
// src/hooks/useFetcher.ts
|
|
6800
6811
|
function useFetcher() {
|
|
6801
6812
|
const { instance } = useInternalUI();
|
|
6802
|
-
const axiosInstance = (0,
|
|
6813
|
+
const axiosInstance = (0, import_react99.useMemo)(() => instance || import_axios2.default, [instance]);
|
|
6803
6814
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
|
6804
6815
|
const response = await axiosInstance.request({
|
|
6805
6816
|
data,
|
|
@@ -6819,10 +6830,10 @@ function useFetcher() {
|
|
|
6819
6830
|
}
|
|
6820
6831
|
|
|
6821
6832
|
// src/hooks/index.ts
|
|
6822
|
-
var
|
|
6833
|
+
var import_react100 = require("@chakra-ui/react");
|
|
6823
6834
|
|
|
6824
6835
|
// src/index.ts
|
|
6825
|
-
var
|
|
6836
|
+
var import_react101 = require("@chakra-ui/react");
|
|
6826
6837
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6827
6838
|
0 && (module.exports = {
|
|
6828
6839
|
Accordion,
|