@ctlyst.id/internal-ui 3.1.8 → 3.1.10
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 +580 -558
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +61 -39
- 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) {
|
@@ -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) {
|
@@ -1512,6 +1509,7 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1512
1509
|
}
|
1513
1510
|
},
|
1514
1511
|
children: row.getVisibleCells().map((cell) => {
|
1512
|
+
const meta = cell.column.columnDef.meta;
|
1515
1513
|
const isDisabled = isCellDisabled(row.original, cell.column.id);
|
1516
1514
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1517
1515
|
import_react28.Td,
|
@@ -1520,21 +1518,31 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1520
1518
|
fontSize: "text.sm",
|
1521
1519
|
sx: getCommonPinningStyles(cell.column),
|
1522
1520
|
...styles == null ? void 0 : styles.tableCell,
|
1523
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1521
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1524
1522
|
import_react28.Flex,
|
1525
1523
|
{
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
|
1524
|
+
height: "100%",
|
1525
|
+
width: "100%",
|
1526
|
+
align: "center",
|
1527
|
+
opacity: isDisabled ? 0.5 : 1,
|
1528
|
+
sx: { ...meta && meta.columnStyles ? meta.columnStyles : {} },
|
1529
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1530
|
+
import_react28.Flex,
|
1531
|
+
{
|
1532
|
+
tabIndex: 0,
|
1533
|
+
display: "inline-flex",
|
1534
|
+
cursor: "auto",
|
1535
|
+
"data-test-id": `CT_Component_TableCell_Content-${cell.id}`,
|
1536
|
+
onMouseUp: (e) => e.stopPropagation(),
|
1537
|
+
onMouseDown: (e) => e.stopPropagation(),
|
1538
|
+
onClick: (e) => {
|
1539
|
+
e.stopPropagation();
|
1540
|
+
},
|
1541
|
+
children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext())
|
1542
|
+
}
|
1543
|
+
)
|
1536
1544
|
}
|
1537
|
-
)
|
1545
|
+
)
|
1538
1546
|
},
|
1539
1547
|
cell.id
|
1540
1548
|
);
|
@@ -1548,19 +1556,19 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1548
1556
|
var data_table_default = DataTable;
|
1549
1557
|
|
1550
1558
|
// src/components/datepicker/components/datepicker.tsx
|
1551
|
-
var
|
1559
|
+
var import_react33 = require("@chakra-ui/react");
|
1552
1560
|
var import_shared_utils8 = require("@chakra-ui/shared-utils");
|
1553
1561
|
var import_internal_icon6 = require("@ctlyst.id/internal-icon");
|
1554
1562
|
var import_react_datepicker = __toESM(require("react-datepicker"));
|
1555
1563
|
|
1556
1564
|
// src/components/datepicker/components/styles.tsx
|
1557
1565
|
var import_system6 = require("@chakra-ui/system");
|
1558
|
-
var
|
1566
|
+
var import_react30 = require("@emotion/react");
|
1559
1567
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
1560
1568
|
var Styles = ({ showHeader }) => {
|
1561
1569
|
const { colorMode } = (0, import_system6.useColorMode)();
|
1562
1570
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
1563
|
-
|
1571
|
+
import_react30.Global,
|
1564
1572
|
{
|
1565
1573
|
styles: `
|
1566
1574
|
@charset "UTF-8";
|
@@ -2406,21 +2414,21 @@ var Styles = ({ showHeader }) => {
|
|
2406
2414
|
var styles_default = Styles;
|
2407
2415
|
|
2408
2416
|
// src/components/datepicker/components/time-input.tsx
|
2409
|
-
var
|
2410
|
-
var
|
2417
|
+
var import_react31 = require("@chakra-ui/react");
|
2418
|
+
var import_react32 = __toESM(require("react"));
|
2411
2419
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
2412
2420
|
var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
2413
|
-
const [time, setTime] =
|
2421
|
+
const [time, setTime] = import_react32.default.useState(value || "00:00");
|
2414
2422
|
const handleChange = (e) => {
|
2415
2423
|
var _a, _b;
|
2416
2424
|
setTime(((_a = e.target) == null ? void 0 : _a.value) || "00:00");
|
2417
2425
|
if (onChange) onChange(((_b = e.target) == null ? void 0 : _b.value) || "00:00");
|
2418
2426
|
};
|
2419
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
2420
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
2421
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
2427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react31.Flex, { flexDir: "column", p: 4, pt: 0, children: [
|
2428
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react31.Text, { mb: 2, children: label }),
|
2429
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react31.InputGroup, { alignItems: "center", borderColor: "neutral.400", children: [
|
2422
2430
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
2423
|
-
|
2431
|
+
import_react31.Input,
|
2424
2432
|
{
|
2425
2433
|
onChange: handleChange,
|
2426
2434
|
type: "time",
|
@@ -2435,7 +2443,7 @@ var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
|
2435
2443
|
}
|
2436
2444
|
}
|
2437
2445
|
),
|
2438
|
-
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
2446
|
+
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react31.InputRightAddon, { children: rightAddon })
|
2439
2447
|
] })
|
2440
2448
|
] });
|
2441
2449
|
};
|
@@ -2502,14 +2510,14 @@ var Datepicker = ({
|
|
2502
2510
|
if (props.inline) {
|
2503
2511
|
return component;
|
2504
2512
|
}
|
2505
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
2506
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
2507
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
2513
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react33.FormControl, { isRequired, "data-test-id": "CT_Component_datepicker_wrapper", isInvalid: isError, children: [
|
2514
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react33.FormLabel, { fontSize: "text.sm", children: label }),
|
2515
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react33.InputGroup, { children: [
|
2508
2516
|
component,
|
2509
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
2517
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react33.InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
|
2510
2518
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_internal_icon6.Calendar, { size: 4, color: "neutral.400" }),
|
2511
2519
|
value && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
2512
|
-
|
2520
|
+
import_react33.IconButton,
|
2513
2521
|
{
|
2514
2522
|
"data-test-id": "H0rseVCzGIaqoLho-EPbu",
|
2515
2523
|
display: "flex",
|
@@ -2525,7 +2533,7 @@ var Datepicker = ({
|
|
2525
2533
|
)
|
2526
2534
|
] })
|
2527
2535
|
] }),
|
2528
|
-
!isError ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
2536
|
+
!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
2537
|
] });
|
2530
2538
|
};
|
2531
2539
|
Datepicker.defaultProps = {
|
@@ -2543,18 +2551,18 @@ Datepicker.defaultProps = {
|
|
2543
2551
|
var datepicker_default = Datepicker;
|
2544
2552
|
|
2545
2553
|
// src/components/datepicker/components/datepicker-month/datepicker-month.tsx
|
2546
|
-
var
|
2547
|
-
var
|
2548
|
-
var
|
2554
|
+
var import_react34 = require("@chakra-ui/react");
|
2555
|
+
var import_react35 = require("@emotion/react");
|
2556
|
+
var import_react36 = __toESM(require("react"));
|
2549
2557
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
2550
2558
|
var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
2551
|
-
const [date, setDate] =
|
2559
|
+
const [date, setDate] = import_react36.default.useState(null);
|
2552
2560
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
2553
|
-
|
2561
|
+
import_react34.Box,
|
2554
2562
|
{
|
2555
2563
|
fontSize: "12px",
|
2556
2564
|
lineHeight: "18px",
|
2557
|
-
css:
|
2565
|
+
css: import_react35.css`
|
2558
2566
|
input[type='date']::-webkit-inner-spin-button,
|
2559
2567
|
input[type='date']::-webkit-calendar-picker-indicator {
|
2560
2568
|
display: none;
|
@@ -2565,7 +2573,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
2565
2573
|
}
|
2566
2574
|
`,
|
2567
2575
|
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
2568
|
-
|
2576
|
+
import_react34.Input,
|
2569
2577
|
{
|
2570
2578
|
"data-test-id": props["data-test-id"],
|
2571
2579
|
type: "date",
|
@@ -2578,7 +2586,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
2578
2586
|
min,
|
2579
2587
|
max,
|
2580
2588
|
required: true,
|
2581
|
-
css:
|
2589
|
+
css: import_react35.css`
|
2582
2590
|
border: 1px solid transparent;
|
2583
2591
|
|
2584
2592
|
&:focus,
|
@@ -2602,11 +2610,11 @@ DatePickerMonth.defaultProps = {
|
|
2602
2610
|
var datepicker_month_default = DatePickerMonth;
|
2603
2611
|
|
2604
2612
|
// src/components/datepicker/components/datepicker-month/multi-datepicker-month.tsx
|
2605
|
-
var
|
2613
|
+
var import_react37 = require("@chakra-ui/react");
|
2606
2614
|
var import_styled = __toESM(require("@emotion/styled"));
|
2607
|
-
var
|
2615
|
+
var import_react38 = __toESM(require("react"));
|
2608
2616
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
2609
|
-
var MultiDateWrapper = (0, import_styled.default)(
|
2617
|
+
var MultiDateWrapper = (0, import_styled.default)(import_react37.Box)`
|
2610
2618
|
display: flex;
|
2611
2619
|
align-items: center;
|
2612
2620
|
width: fit-content;
|
@@ -2621,7 +2629,7 @@ var MultiDatePickerMonth = ({
|
|
2621
2629
|
min = "2020-01-01",
|
2622
2630
|
max = "2020-12-31"
|
2623
2631
|
}) => {
|
2624
|
-
const [date, setDate] =
|
2632
|
+
const [date, setDate] = import_react38.default.useState([null, null]);
|
2625
2633
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(MultiDateWrapper, { isError, children: [
|
2626
2634
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
2627
2635
|
datepicker_month_default,
|
@@ -2635,7 +2643,7 @@ var MultiDatePickerMonth = ({
|
|
2635
2643
|
max
|
2636
2644
|
}
|
2637
2645
|
),
|
2638
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
2646
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react37.Box, { children: "-" }),
|
2639
2647
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
2640
2648
|
datepicker_month_default,
|
2641
2649
|
{
|
@@ -2658,7 +2666,7 @@ MultiDatePickerMonth.defaultProps = {
|
|
2658
2666
|
var multi_datepicker_month_default = MultiDatePickerMonth;
|
2659
2667
|
|
2660
2668
|
// src/components/dialog/components/dialog.tsx
|
2661
|
-
var
|
2669
|
+
var import_react39 = require("@chakra-ui/react");
|
2662
2670
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
2663
2671
|
var Dialog = ({
|
2664
2672
|
title,
|
@@ -2669,12 +2677,12 @@ var Dialog = ({
|
|
2669
2677
|
isOverlayClickable,
|
2670
2678
|
...props
|
2671
2679
|
}) => {
|
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)(
|
2680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react39.Modal, { ...props, children: [
|
2681
|
+
isModalOverlay && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react39.ModalOverlay, { pointerEvents: isOverlayClickable ? "auto" : "none" }),
|
2682
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react39.ModalContent, { bgColor: "neutral.50", fontFamily: "Poppins", width, minW: "400px", children: [
|
2683
|
+
/* @__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 }) }),
|
2684
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react39.ModalBody, { p: 4, textStyle: "text.md", children: content }),
|
2685
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react39.ModalFooter, { bgColor: "neutral.200", p: 4, borderBottomRadius: "sm", children: footer })
|
2678
2686
|
] })
|
2679
2687
|
] });
|
2680
2688
|
};
|
@@ -2689,7 +2697,7 @@ var dialog_default = Dialog;
|
|
2689
2697
|
var Icon2 = __toESM(require("@ctlyst.id/internal-icon"));
|
2690
2698
|
|
2691
2699
|
// src/components/empty-state/components/layout.tsx
|
2692
|
-
var
|
2700
|
+
var import_react40 = require("@chakra-ui/react");
|
2693
2701
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
2694
2702
|
var EmptyState = (props) => {
|
2695
2703
|
const { icon, title, description, buttonText, onClick } = props;
|
@@ -2698,13 +2706,13 @@ var EmptyState = (props) => {
|
|
2698
2706
|
onClick();
|
2699
2707
|
}
|
2700
2708
|
};
|
2701
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
2709
|
+
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
2710
|
icon,
|
2703
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
2704
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
2705
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
2711
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react40.VStack, { spacing: 2, textAlign: "center", mt: 3, children: [
|
2712
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react40.Text, { textStyle: "text.lg", fontWeight: "bold", children: title }),
|
2713
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react40.Text, { textStyle: "text.md", color: "black.medium", whiteSpace: "pre-wrap", children: description })
|
2706
2714
|
] }),
|
2707
|
-
buttonText && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
2715
|
+
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
2716
|
] }) });
|
2709
2717
|
};
|
2710
2718
|
var layout_default = EmptyState;
|
@@ -2781,28 +2789,28 @@ EmptyState2.NotAuthorize = EmptyStateNotAuthorize;
|
|
2781
2789
|
var empty_state_default = EmptyState2;
|
2782
2790
|
|
2783
2791
|
// src/components/header/components/header.tsx
|
2784
|
-
var
|
2792
|
+
var import_react47 = require("@chakra-ui/react");
|
2785
2793
|
|
2786
2794
|
// src/components/header/components/logo.tsx
|
2787
|
-
var
|
2795
|
+
var import_react41 = require("@chakra-ui/react");
|
2788
2796
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
2789
2797
|
var Logo = ({ url, imageUrl, height }) => {
|
2790
2798
|
if (url)
|
2791
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
2792
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
2799
|
+
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" }) });
|
2800
|
+
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
2801
|
};
|
2794
2802
|
var XMSLogo = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
2795
|
-
|
2803
|
+
import_react41.Image,
|
2796
2804
|
{
|
2797
2805
|
height: 8,
|
2798
|
-
src: (0,
|
2806
|
+
src: (0, import_react41.useColorModeValue)("https://assets.voila.id/xms/logo-xms.jpg", "https://assets.voila.id/xms/logo-xms-dark.png")
|
2799
2807
|
}
|
2800
2808
|
);
|
2801
2809
|
var VoilaLogo = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
2802
|
-
|
2810
|
+
import_react41.Image,
|
2803
2811
|
{
|
2804
2812
|
src: "https://assets.voila.id/xms/logo-voila-black.png?v=1",
|
2805
|
-
filter: (0,
|
2813
|
+
filter: (0, import_react41.useColorModeValue)("none", "invert(1)"),
|
2806
2814
|
maxW: 24
|
2807
2815
|
}
|
2808
2816
|
);
|
@@ -2812,16 +2820,16 @@ Logo.defaultProps = {
|
|
2812
2820
|
};
|
2813
2821
|
|
2814
2822
|
// src/components/header/components/profile.tsx
|
2815
|
-
var
|
2823
|
+
var import_react44 = require("@chakra-ui/react");
|
2816
2824
|
var import_fi2 = require("react-icons/fi");
|
2817
2825
|
|
2818
2826
|
// src/components/nav-item/components/nav-item.tsx
|
2819
|
-
var
|
2827
|
+
var import_react42 = require("@chakra-ui/react");
|
2820
2828
|
var import_shared_utils9 = require("@chakra-ui/shared-utils");
|
2821
2829
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
2822
2830
|
var NavItem = ({ children, isActive, isChild, isDisabled, ...props }) => {
|
2823
2831
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
2824
|
-
|
2832
|
+
import_react42.Link,
|
2825
2833
|
{
|
2826
2834
|
"data-test-id": props["data-test-id"],
|
2827
2835
|
opacity: isDisabled ? "0.3" : "initial",
|
@@ -2861,7 +2869,7 @@ NavItem.defaultProps = {
|
|
2861
2869
|
};
|
2862
2870
|
|
2863
2871
|
// src/components/tooltip/components/tooltip.tsx
|
2864
|
-
var
|
2872
|
+
var import_react43 = require("@chakra-ui/react");
|
2865
2873
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
2866
2874
|
var Tooltip = (props) => {
|
2867
2875
|
const {
|
@@ -2874,7 +2882,7 @@ var Tooltip = (props) => {
|
|
2874
2882
|
fontWeight = "400"
|
2875
2883
|
} = props;
|
2876
2884
|
const content = ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
2877
|
-
|
2885
|
+
import_react43.PopoverContent,
|
2878
2886
|
{
|
2879
2887
|
"data-test-id": "",
|
2880
2888
|
border: "none",
|
@@ -2888,15 +2896,15 @@ var Tooltip = (props) => {
|
|
2888
2896
|
onClose();
|
2889
2897
|
},
|
2890
2898
|
children: [
|
2891
|
-
props.hasArrow && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
2892
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
2899
|
+
props.hasArrow && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.PopoverArrow, { color, bg, shadow: "none" }),
|
2900
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.PopoverBody, { color, ...props, fontWeight, children: props.label })
|
2893
2901
|
]
|
2894
2902
|
}
|
2895
2903
|
);
|
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)(
|
2904
|
+
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: [
|
2905
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.PopoverTrigger, { children }),
|
2906
|
+
props.portal ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.Portal, { children: content({ onClose }) }) : content({ onClose })
|
2907
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.Tooltip, { ...props, children });
|
2900
2908
|
};
|
2901
2909
|
|
2902
2910
|
// src/components/header/components/profile.tsx
|
@@ -2912,10 +2920,10 @@ var Profile = ({
|
|
2912
2920
|
...props
|
2913
2921
|
}) => {
|
2914
2922
|
var _a, _b;
|
2915
|
-
const { isOpen, onToggle, onClose } = (0,
|
2916
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
2923
|
+
const { isOpen, onToggle, onClose } = (0, import_react44.useDisclosure)();
|
2924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.Popover, { placement: "bottom-end", isOpen, onClose, children: [
|
2917
2925
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2918
|
-
|
2926
|
+
import_react44.Box,
|
2919
2927
|
{
|
2920
2928
|
"data-test-id": "CTA_Navbar_Profile_wrapper",
|
2921
2929
|
as: "button",
|
@@ -2931,14 +2939,14 @@ var Profile = ({
|
|
2931
2939
|
onClick: onToggle,
|
2932
2940
|
color,
|
2933
2941
|
...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)(
|
2942
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.HStack, { children: [
|
2943
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.VStack, { alignItems: "flex-end", spacing: "0", ml: "2", color, children: [
|
2944
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { textStyle: "text.xs", mb: "1", children: data == null ? void 0 : data.email }),
|
2945
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.Flex, { alignItems: "center", children: [
|
2938
2946
|
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
2939
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2947
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.userRole) || "user" }),
|
2940
2948
|
!!((_a = data.office) == null ? void 0 : _a.length) && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2941
|
-
|
2949
|
+
import_react44.Box,
|
2942
2950
|
{
|
2943
2951
|
className: "catalyst_header-profile-divider",
|
2944
2952
|
h: "3",
|
@@ -2948,17 +2956,17 @@ var Profile = ({
|
|
2948
2956
|
}
|
2949
2957
|
)
|
2950
2958
|
] }),
|
2951
|
-
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
2952
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2959
|
+
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.Flex, { align: "center", justify: "center", children: [
|
2960
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { textStyle: "text.xs", children: data.office[0] }),
|
2953
2961
|
data.office.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2954
2962
|
Tooltip,
|
2955
2963
|
{
|
2956
2964
|
isInteractive: true,
|
2957
2965
|
hasArrow: true,
|
2958
2966
|
p: "2",
|
2959
|
-
label: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
2960
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2961
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2967
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.Box, { children: [
|
2968
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { children: "Akses Office:" }),
|
2969
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { children: data.office.sort().join(", ") })
|
2962
2970
|
] }),
|
2963
2971
|
textAlign: "left",
|
2964
2972
|
placement: "bottom-end",
|
@@ -2969,7 +2977,7 @@ var Profile = ({
|
|
2969
2977
|
},
|
2970
2978
|
width: 300,
|
2971
2979
|
...officeContainer,
|
2972
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2980
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
2973
2981
|
badge_default,
|
2974
2982
|
{
|
2975
2983
|
rounded: "full",
|
@@ -2986,18 +2994,18 @@ var Profile = ({
|
|
2986
2994
|
) })
|
2987
2995
|
}
|
2988
2996
|
)
|
2989
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2997
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.office) || "office" })
|
2990
2998
|
] })
|
2991
2999
|
] }),
|
2992
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3000
|
+
/* @__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
3001
|
] })
|
2994
3002
|
}
|
2995
3003
|
),
|
2996
|
-
children || /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
2997
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2998
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3004
|
+
children || /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.PopoverContent, { bg: "white", maxW: 200, children: [
|
3005
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.PopoverArrow, { bg: "white" }),
|
3006
|
+
/* @__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
3007
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_fi2.FiPower, {}),
|
3000
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
3008
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { ml: "2", children: "Logout" })
|
3001
3009
|
] }) }) })
|
3002
3010
|
] })
|
3003
3011
|
] });
|
@@ -3010,17 +3018,17 @@ Profile.defaultProps = {
|
|
3010
3018
|
};
|
3011
3019
|
|
3012
3020
|
// src/components/header/components/switch-mode.tsx
|
3013
|
-
var
|
3021
|
+
var import_react45 = require("@chakra-ui/react");
|
3014
3022
|
var import_fi3 = require("react-icons/fi");
|
3015
3023
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
3016
3024
|
var SwitchMode = () => {
|
3017
|
-
const { colorMode, toggleColorMode } = (0,
|
3018
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
3025
|
+
const { colorMode, toggleColorMode } = (0, import_react45.useColorMode)();
|
3026
|
+
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
3027
|
};
|
3020
3028
|
var switch_mode_default = SwitchMode;
|
3021
3029
|
|
3022
3030
|
// src/components/header/components/version.tsx
|
3023
|
-
var
|
3031
|
+
var import_react46 = require("@chakra-ui/react");
|
3024
3032
|
|
3025
3033
|
// src/components/header/utils/formatter.ts
|
3026
3034
|
function environmentName(env) {
|
@@ -3058,7 +3066,7 @@ var Version = ({
|
|
3058
3066
|
}
|
3059
3067
|
) : version,
|
3060
3068
|
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
3061
|
-
|
3069
|
+
import_react46.Box,
|
3062
3070
|
{
|
3063
3071
|
background: "primary.50",
|
3064
3072
|
color: "primary.500",
|
@@ -3098,8 +3106,8 @@ var Header = ({
|
|
3098
3106
|
bg = "white",
|
3099
3107
|
versionStyle,
|
3100
3108
|
...props
|
3101
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
3102
|
-
|
3109
|
+
}) => /* @__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)(
|
3110
|
+
import_react47.Flex,
|
3103
3111
|
{
|
3104
3112
|
h: "auto",
|
3105
3113
|
w: "full",
|
@@ -3107,11 +3115,11 @@ var Header = ({
|
|
3107
3115
|
justifyContent: !mainLogo ? "flex-end" : "space-between",
|
3108
3116
|
pos: "relative",
|
3109
3117
|
children: [
|
3110
|
-
mainLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
3118
|
+
mainLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react47.Flex, { alignItems: "center", children: [
|
3111
3119
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Logo, { url: urlLogo, imageUrl: mainLogo, height: mainLogoSize }),
|
3112
3120
|
children && children
|
3113
3121
|
] }),
|
3114
|
-
centerLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
3122
|
+
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
3123
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Logo, { url: urlLogo, imageUrl: centerLogo, height: centerLogoSize }),
|
3116
3124
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
3117
3125
|
Version,
|
@@ -3124,7 +3132,7 @@ var Header = ({
|
|
3124
3132
|
}
|
3125
3133
|
)
|
3126
3134
|
] }),
|
3127
|
-
profile || /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
3135
|
+
profile || /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react47.Flex, { alignItems: "center", children: [
|
3128
3136
|
!hideSwitchMode && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(switch_mode_default, {}),
|
3129
3137
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Profile, { color: props.color, brandColor, data, onLogout })
|
3130
3138
|
] })
|
@@ -3148,11 +3156,11 @@ Header.defaultProps = {
|
|
3148
3156
|
};
|
3149
3157
|
|
3150
3158
|
// src/components/header/components/navbar.tsx
|
3151
|
-
var
|
3159
|
+
var import_react48 = require("@chakra-ui/react");
|
3152
3160
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
3153
3161
|
var Navbar = ({ bg = "white", children, ...props }) => {
|
3154
3162
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
3155
|
-
|
3163
|
+
import_react48.Flex,
|
3156
3164
|
{
|
3157
3165
|
minH: "15",
|
3158
3166
|
h: "15",
|
@@ -3172,21 +3180,21 @@ var Navbar = ({ bg = "white", children, ...props }) => {
|
|
3172
3180
|
Navbar.displayName = "Navbar";
|
3173
3181
|
|
3174
3182
|
// src/components/image/index.ts
|
3175
|
-
var
|
3183
|
+
var import_react49 = require("@chakra-ui/react");
|
3176
3184
|
|
3177
3185
|
// src/components/layouting/index.ts
|
3178
|
-
var
|
3186
|
+
var import_react50 = require("@chakra-ui/react");
|
3179
3187
|
|
3180
3188
|
// src/components/list/index.tsx
|
3181
|
-
var
|
3189
|
+
var import_react51 = require("@chakra-ui/react");
|
3182
3190
|
|
3183
3191
|
// src/components/modal/components/modal-back-button.tsx
|
3184
3192
|
var import_icons3 = require("@chakra-ui/icons");
|
3185
|
-
var
|
3193
|
+
var import_react52 = require("@chakra-ui/react");
|
3186
3194
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
3187
3195
|
var ModalBackButton = ({ onClick }) => {
|
3188
3196
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
3189
|
-
|
3197
|
+
import_react52.IconButton,
|
3190
3198
|
{
|
3191
3199
|
icon: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons3.ChevronLeftIcon, { w: "4.5", h: "4.5" }),
|
3192
3200
|
size: "sm",
|
@@ -3206,12 +3214,12 @@ var ModalBackButton = ({ onClick }) => {
|
|
3206
3214
|
var modal_back_button_default = ModalBackButton;
|
3207
3215
|
|
3208
3216
|
// src/components/modal/index.ts
|
3209
|
-
var
|
3217
|
+
var import_react53 = require("@chakra-ui/react");
|
3210
3218
|
|
3211
3219
|
// src/components/navigation/components/navigation.tsx
|
3212
|
-
var
|
3220
|
+
var import_react54 = require("@chakra-ui/react");
|
3213
3221
|
var Icon5 = __toESM(require("@ctlyst.id/internal-icon"));
|
3214
|
-
var
|
3222
|
+
var import_react55 = require("@emotion/react");
|
3215
3223
|
|
3216
3224
|
// src/components/navigation/components/mapping-icon.tsx
|
3217
3225
|
var Icon4 = __toESM(require("@ctlyst.id/internal-icon"));
|
@@ -3234,8 +3242,8 @@ var mappingIcon = /* @__PURE__ */ new Map([
|
|
3234
3242
|
// src/components/navigation/components/navigation.tsx
|
3235
3243
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
3236
3244
|
var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
3237
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3238
|
-
|
3245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.Box, { borderRadius: "md", overflowX: "auto", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3246
|
+
import_react54.Flex,
|
3239
3247
|
{
|
3240
3248
|
bg: "white",
|
3241
3249
|
w: "full",
|
@@ -3249,9 +3257,9 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3249
3257
|
children: navigations == null ? void 0 : navigations.map((navigation) => {
|
3250
3258
|
const isActive = activePath.startsWith(navigation.navLink || "");
|
3251
3259
|
const activeBg = isActive ? "primary.500" : void 0;
|
3252
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3253
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3254
|
-
|
3260
|
+
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: [
|
3261
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3262
|
+
import_react54.Button,
|
3255
3263
|
{
|
3256
3264
|
h: 7.5,
|
3257
3265
|
p: 2,
|
@@ -3268,10 +3276,10 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3268
3276
|
children: navigation.title
|
3269
3277
|
}
|
3270
3278
|
) }),
|
3271
|
-
navigation.children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3272
|
-
|
3279
|
+
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)(
|
3280
|
+
import_react54.PopoverContent,
|
3273
3281
|
{
|
3274
|
-
bg: (0,
|
3282
|
+
bg: (0, import_react54.useColorModeValue)("white", "ebony-clay.800"),
|
3275
3283
|
maxW: 250,
|
3276
3284
|
border: "none",
|
3277
3285
|
borderRadius: "md",
|
@@ -3281,7 +3289,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3281
3289
|
const isLocalLink = host === navHost;
|
3282
3290
|
const isActiveSub = activePath === navLink;
|
3283
3291
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3284
|
-
|
3292
|
+
import_react54.Link,
|
3285
3293
|
{
|
3286
3294
|
as: isLocalLink ? as : void 0,
|
3287
3295
|
href: link,
|
@@ -3289,7 +3297,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3289
3297
|
textDecoration: "none"
|
3290
3298
|
},
|
3291
3299
|
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
3292
|
-
|
3300
|
+
import_react54.Box,
|
3293
3301
|
{
|
3294
3302
|
display: "flex",
|
3295
3303
|
position: "relative",
|
@@ -3297,24 +3305,24 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3297
3305
|
cursor: "pointer",
|
3298
3306
|
transition: "padding 0.35s ease 0s",
|
3299
3307
|
_hover: {
|
3300
|
-
backgroundColor: (0,
|
3301
|
-
color: (0,
|
3308
|
+
backgroundColor: (0, import_react54.useColorModeValue)("dove-gray.50", "mirage.900"),
|
3309
|
+
color: (0, import_react54.useColorModeValue)("primary.500", "dove-gray.600"),
|
3302
3310
|
px: 5,
|
3303
3311
|
py: 4,
|
3304
3312
|
_first: { borderTopRadius: "md" },
|
3305
3313
|
_last: { borderBottomRadius: "md" }
|
3306
3314
|
},
|
3307
3315
|
color: isActiveSub ? "primary.500" : "inherit",
|
3308
|
-
css:
|
3316
|
+
css: import_react55.css`
|
3309
3317
|
border-spacing: 4px;
|
3310
3318
|
`,
|
3311
3319
|
px: 6,
|
3312
3320
|
py: 4,
|
3313
3321
|
children: [
|
3314
3322
|
mappingIcon.get(navigation.title),
|
3315
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3323
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.Text, { fontSize: "text.sm", ml: 3, children: title }),
|
3316
3324
|
isActiveSub && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3317
|
-
|
3325
|
+
import_react54.Box,
|
3318
3326
|
{
|
3319
3327
|
width: 0.5,
|
3320
3328
|
height: 8,
|
@@ -3347,7 +3355,7 @@ Navigation.defaultProps = {
|
|
3347
3355
|
var navigation_default = Navigation;
|
3348
3356
|
|
3349
3357
|
// src/components/navigation/components/navigation-bar.tsx
|
3350
|
-
var
|
3358
|
+
var import_react56 = require("@chakra-ui/react");
|
3351
3359
|
var Icon6 = __toESM(require("@ctlyst.id/internal-icon"));
|
3352
3360
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
3353
3361
|
var NavigationBar = ({
|
@@ -3364,8 +3372,8 @@ var NavigationBar = ({
|
|
3364
3372
|
}
|
3365
3373
|
return subMenu.navHost + subMenu.navLink;
|
3366
3374
|
};
|
3367
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3368
|
-
|
3375
|
+
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)(
|
3376
|
+
import_react56.Flex,
|
3369
3377
|
{
|
3370
3378
|
bg: "white",
|
3371
3379
|
w: "full",
|
@@ -3381,9 +3389,9 @@ var NavigationBar = ({
|
|
3381
3389
|
const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
|
3382
3390
|
const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
|
3383
3391
|
const activeBg = isActive ? "primary.500" : void 0;
|
3384
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3385
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3386
|
-
|
3392
|
+
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: [
|
3393
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react56.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3394
|
+
import_react56.Button,
|
3387
3395
|
{
|
3388
3396
|
h: 7.5,
|
3389
3397
|
p: 2,
|
@@ -3400,8 +3408,8 @@ var NavigationBar = ({
|
|
3400
3408
|
children: item.title
|
3401
3409
|
}
|
3402
3410
|
) }),
|
3403
|
-
item.children && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3404
|
-
|
3411
|
+
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)(
|
3412
|
+
import_react56.Link,
|
3405
3413
|
{
|
3406
3414
|
href: urlMenu(subMenu),
|
3407
3415
|
display: "flex",
|
@@ -3418,7 +3426,7 @@ var NavigationBar = ({
|
|
3418
3426
|
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
3419
3427
|
children: [
|
3420
3428
|
mappingIcon2.get(item.title),
|
3421
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3429
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react56.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
3422
3430
|
]
|
3423
3431
|
},
|
3424
3432
|
subMenu.id
|
@@ -3435,18 +3443,18 @@ var navigation_bar_default = NavigationBar;
|
|
3435
3443
|
|
3436
3444
|
// src/components/pagination/components/pagination.tsx
|
3437
3445
|
var import_icons4 = require("@chakra-ui/icons");
|
3438
|
-
var
|
3446
|
+
var import_react59 = require("@chakra-ui/react");
|
3439
3447
|
|
3440
3448
|
// src/components/pagination/components/pagination-button.tsx
|
3441
|
-
var
|
3449
|
+
var import_react57 = require("@chakra-ui/react");
|
3442
3450
|
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,
|
3451
|
+
var PaginationButton = (0, import_react57.forwardRef)(({ className, style, isActive, children, ...rest }, ref) => {
|
3452
|
+
const btnBg = (0, import_react57.useColorModeValue)("neutral.300", "mirage.900");
|
3453
|
+
const btnColor = (0, import_react57.useColorModeValue)("black.high", "primary.300");
|
3454
|
+
const btnNotActiveBg = (0, import_react57.useColorModeValue)("secondary.50", "primary.500");
|
3455
|
+
const btnNotActiveColor = (0, import_react57.useColorModeValue)("primary.500", "white");
|
3448
3456
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
3449
|
-
|
3457
|
+
import_react57.Button,
|
3450
3458
|
{
|
3451
3459
|
"data-test-id": "Pagination-Button",
|
3452
3460
|
ref,
|
@@ -3467,7 +3475,7 @@ var PaginationButton = (0, import_react58.forwardRef)(({ className, style, isAct
|
|
3467
3475
|
color: btnNotActiveColor
|
3468
3476
|
} : {},
|
3469
3477
|
_disabled: {
|
3470
|
-
background: (0,
|
3478
|
+
background: (0, import_react57.useColorModeValue)("neutral.300", "mirage.900"),
|
3471
3479
|
color: "neutral.600",
|
3472
3480
|
pointerEvents: "none"
|
3473
3481
|
},
|
@@ -3483,7 +3491,7 @@ PaginationButton.defaultProps = {
|
|
3483
3491
|
var pagination_button_default = PaginationButton;
|
3484
3492
|
|
3485
3493
|
// src/components/pagination/components/pagination-button-trigger.tsx
|
3486
|
-
var
|
3494
|
+
var import_react58 = require("@chakra-ui/react");
|
3487
3495
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
3488
3496
|
var PaginationButtonTrigger = ({
|
3489
3497
|
color,
|
@@ -3492,7 +3500,7 @@ var PaginationButtonTrigger = ({
|
|
3492
3500
|
visuallyHidden,
|
3493
3501
|
icon
|
3494
3502
|
}) => /* @__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)(
|
3503
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react58.VisuallyHidden, { children: visuallyHidden }),
|
3496
3504
|
icon
|
3497
3505
|
] });
|
3498
3506
|
PaginationButtonTrigger.defaultProps = {
|
@@ -3507,8 +3515,8 @@ var pagination_button_trigger_default = PaginationButtonTrigger;
|
|
3507
3515
|
// src/components/pagination/components/pagination.tsx
|
3508
3516
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
3509
3517
|
var Pagination = ({ className, current, total, onSelect }) => {
|
3510
|
-
const btnColorDisabled = (0,
|
3511
|
-
const btnColor = (0,
|
3518
|
+
const btnColorDisabled = (0, import_react59.useColorModeValue)("secondary.100", "primary.500");
|
3519
|
+
const btnColor = (0, import_react59.useColorModeValue)("primary.500", "secondary.100");
|
3512
3520
|
const disabledPrevious = current === 1;
|
3513
3521
|
const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;
|
3514
3522
|
const disabledNext = current === total;
|
@@ -3535,8 +3543,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3535
3543
|
}
|
3536
3544
|
return pageButtons;
|
3537
3545
|
};
|
3538
|
-
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
3539
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react59.Box, { className, display: "inline-flex", alignItems: "center", children: [
|
3547
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react59.Box, { mr: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3540
3548
|
pagination_button_trigger_default,
|
3541
3549
|
{
|
3542
3550
|
"data-test-id": "Pagination-Button",
|
@@ -3547,7 +3555,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3547
3555
|
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ArrowLeftIcon, { width: 2 })
|
3548
3556
|
}
|
3549
3557
|
) }),
|
3550
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
3558
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react59.Box, { bg: "neutral.300", borderRadius: "full", children: [
|
3551
3559
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3552
3560
|
pagination_button_trigger_default,
|
3553
3561
|
{
|
@@ -3566,7 +3574,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3566
3574
|
"data-test-id": "Pagination-Button",
|
3567
3575
|
isActive: page === current,
|
3568
3576
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
3569
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3577
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react59.Text, { scale: 300, fontSize: "text.sm", lineHeight: 18, fontWeight: 500, children: page })
|
3570
3578
|
},
|
3571
3579
|
page
|
3572
3580
|
);
|
@@ -3583,7 +3591,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3583
3591
|
}
|
3584
3592
|
)
|
3585
3593
|
] }),
|
3586
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3594
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react59.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3587
3595
|
pagination_button_trigger_default,
|
3588
3596
|
{
|
3589
3597
|
"data-test-id": "Pagination-Button",
|
@@ -3604,7 +3612,7 @@ Pagination.displayName = "Pagination";
|
|
3604
3612
|
var pagination_default = Pagination;
|
3605
3613
|
|
3606
3614
|
// src/components/pagination/components/pagination-detail.tsx
|
3607
|
-
var
|
3615
|
+
var import_react60 = require("@chakra-ui/react");
|
3608
3616
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
3609
3617
|
var PaginationDetail = ({
|
3610
3618
|
page,
|
@@ -3615,12 +3623,12 @@ var PaginationDetail = ({
|
|
3615
3623
|
lineHeight = 18,
|
3616
3624
|
...rest
|
3617
3625
|
}) => {
|
3618
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
3626
|
+
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
3627
|
};
|
3620
3628
|
var pagination_detail_default = PaginationDetail;
|
3621
3629
|
|
3622
3630
|
// src/components/pagination/components/pagination-filter.tsx
|
3623
|
-
var
|
3631
|
+
var import_react61 = require("@chakra-ui/react");
|
3624
3632
|
var React9 = __toESM(require("react"));
|
3625
3633
|
var import_fi4 = require("react-icons/fi");
|
3626
3634
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
@@ -3632,10 +3640,10 @@ var PaginationFilter = ({
|
|
3632
3640
|
...rest
|
3633
3641
|
}) => {
|
3634
3642
|
const [value, setValue] = React9.useState(limit);
|
3635
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
3636
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
3643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_react61.Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [
|
3644
|
+
/* @__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
3645
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
3638
|
-
|
3646
|
+
import_react61.Select,
|
3639
3647
|
{
|
3640
3648
|
textAlign: "center",
|
3641
3649
|
size: "xs",
|
@@ -3665,22 +3673,22 @@ PaginationFilter.defaultProps = {
|
|
3665
3673
|
var pagination_filter_default = PaginationFilter;
|
3666
3674
|
|
3667
3675
|
// src/components/pin-input/index.ts
|
3668
|
-
var
|
3676
|
+
var import_react62 = require("@chakra-ui/react");
|
3669
3677
|
|
3670
3678
|
// src/components/popover/index.ts
|
3671
|
-
var
|
3679
|
+
var import_react63 = require("@chakra-ui/react");
|
3672
3680
|
|
3673
3681
|
// src/components/progress/index.ts
|
3674
|
-
var
|
3682
|
+
var import_react64 = require("@chakra-ui/react");
|
3675
3683
|
|
3676
3684
|
// src/components/radio/components/radio.tsx
|
3677
|
-
var
|
3685
|
+
var import_react65 = require("@chakra-ui/react");
|
3678
3686
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
3679
3687
|
var Radio = ({ isError = false, helpText, errorText, children, isDisabled, ...rest }) => {
|
3680
3688
|
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)(
|
3689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_react65.Box, { children: [
|
3690
|
+
/* @__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 }) }) }),
|
3691
|
+
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
3692
|
] });
|
3685
3693
|
};
|
3686
3694
|
Radio.displayName = "Radio";
|
@@ -3691,7 +3699,7 @@ Radio.defaultProps = {
|
|
3691
3699
|
};
|
3692
3700
|
|
3693
3701
|
// src/components/radio/components/radio-group.tsx
|
3694
|
-
var
|
3702
|
+
var import_react66 = require("@chakra-ui/react");
|
3695
3703
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
3696
3704
|
var RadioGroup = ({
|
3697
3705
|
children,
|
@@ -3701,7 +3709,7 @@ var RadioGroup = ({
|
|
3701
3709
|
errorMessage,
|
3702
3710
|
...props
|
3703
3711
|
}) => {
|
3704
|
-
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
3712
|
+
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
3713
|
};
|
3706
3714
|
RadioGroup.displayName = "RadioGroup";
|
3707
3715
|
RadioGroup.defaultProps = {
|
@@ -3711,34 +3719,34 @@ RadioGroup.defaultProps = {
|
|
3711
3719
|
};
|
3712
3720
|
|
3713
3721
|
// src/components/radio/index.ts
|
3714
|
-
var
|
3722
|
+
var import_react67 = require("@chakra-ui/react");
|
3715
3723
|
|
3716
3724
|
// src/components/rating/components/rating.tsx
|
3717
|
-
var
|
3725
|
+
var import_react68 = require("@chakra-ui/react");
|
3718
3726
|
var import_internal_icon7 = require("@ctlyst.id/internal-icon");
|
3719
3727
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
3720
3728
|
var Rating = ({ value }) => {
|
3721
|
-
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
3729
|
+
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
3730
|
};
|
3723
3731
|
var rating_default = Rating;
|
3724
3732
|
|
3725
3733
|
// src/components/select/components/select.tsx
|
3726
|
-
var
|
3734
|
+
var import_react72 = require("@chakra-ui/react");
|
3727
3735
|
var import_system7 = require("@chakra-ui/system");
|
3728
3736
|
var Icon7 = __toESM(require("@ctlyst.id/internal-icon"));
|
3729
3737
|
var import_react_select = __toESM(require("react-select"));
|
3730
3738
|
|
3731
3739
|
// src/config/theme/foundations/shadows.ts
|
3732
|
-
var
|
3740
|
+
var import_react69 = require("@chakra-ui/react");
|
3733
3741
|
var shadows = {
|
3734
|
-
...
|
3742
|
+
...import_react69.theme.shadows,
|
3735
3743
|
raised: "0px 4px 20px rgba(0, 0, 0, 0.05)"
|
3736
3744
|
};
|
3737
3745
|
|
3738
3746
|
// src/config/theme/foundations/sizes.ts
|
3739
|
-
var
|
3747
|
+
var import_react70 = require("@chakra-ui/react");
|
3740
3748
|
var sizes = {
|
3741
|
-
...
|
3749
|
+
...import_react70.theme.sizes,
|
3742
3750
|
4.5: "1.125rem",
|
3743
3751
|
9.5: "2.375rem",
|
3744
3752
|
18: "4.5rem",
|
@@ -3748,9 +3756,9 @@ var sizes = {
|
|
3748
3756
|
};
|
3749
3757
|
|
3750
3758
|
// src/config/theme/foundations/spacing.ts
|
3751
|
-
var
|
3759
|
+
var import_react71 = require("@chakra-ui/react");
|
3752
3760
|
var spacing = {
|
3753
|
-
...
|
3761
|
+
...import_react71.theme.space,
|
3754
3762
|
4.5: "1.125rem",
|
3755
3763
|
9.5: "2.375rem",
|
3756
3764
|
18: "4.5rem",
|
@@ -4041,6 +4049,9 @@ function selectStyles(colorMode, _isError) {
|
|
4041
4049
|
placeholder: (base) => {
|
4042
4050
|
return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)" };
|
4043
4051
|
},
|
4052
|
+
clearIndicator: (base) => {
|
4053
|
+
return { ...base, cursor: "pointer" };
|
4054
|
+
},
|
4044
4055
|
multiValue: (base) => {
|
4045
4056
|
return {
|
4046
4057
|
...base,
|
@@ -4087,10 +4098,10 @@ function ClearIndicator(props) {
|
|
4087
4098
|
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
4099
|
}
|
4089
4100
|
function MultiValue(props) {
|
4090
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
4101
|
+
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
4102
|
}
|
4092
4103
|
function MultiValueRemove(props) {
|
4093
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
4104
|
+
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
4105
|
}
|
4095
4106
|
function Select2({
|
4096
4107
|
styles,
|
@@ -4098,10 +4109,11 @@ function Select2({
|
|
4098
4109
|
...rest
|
4099
4110
|
}) {
|
4100
4111
|
const { colorMode } = (0, import_system7.useColorMode)();
|
4101
|
-
const { components } = rest;
|
4112
|
+
const { components, value, onChange } = rest;
|
4102
4113
|
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
4103
4114
|
import_react_select.default,
|
4104
4115
|
{
|
4116
|
+
"data-test-id": "",
|
4105
4117
|
classNamePrefix: "react-select",
|
4106
4118
|
components: {
|
4107
4119
|
DropdownIndicator,
|
@@ -4110,6 +4122,8 @@ function Select2({
|
|
4110
4122
|
MultiValueRemove,
|
4111
4123
|
...components
|
4112
4124
|
},
|
4125
|
+
value,
|
4126
|
+
onChange,
|
4113
4127
|
styles: { ...selectStyles(colorMode, isError) },
|
4114
4128
|
theme: themeSelect,
|
4115
4129
|
...rest
|
@@ -4187,7 +4201,7 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
4187
4201
|
}
|
4188
4202
|
|
4189
4203
|
// src/components/select/components/select-with-checkbox.tsx
|
4190
|
-
var
|
4204
|
+
var import_react73 = require("@chakra-ui/react");
|
4191
4205
|
var import_system11 = require("@chakra-ui/system");
|
4192
4206
|
var import_react_select2 = __toESM(require("react-select"));
|
4193
4207
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
@@ -4250,7 +4264,7 @@ var InputOption = ({
|
|
4250
4264
|
innerProps: props,
|
4251
4265
|
...rest,
|
4252
4266
|
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
4253
|
-
|
4267
|
+
import_react73.Flex,
|
4254
4268
|
{
|
4255
4269
|
alignItems: "center",
|
4256
4270
|
width: "100%",
|
@@ -4260,15 +4274,15 @@ var InputOption = ({
|
|
4260
4274
|
cursor: isDisabled ? "not-allowed" : "default",
|
4261
4275
|
children: [
|
4262
4276
|
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4263
|
-
|
4277
|
+
import_react73.Checkbox,
|
4264
4278
|
{
|
4265
4279
|
isChecked: checkedState === CHECKBOX_STATE.CHECKED,
|
4266
4280
|
isIndeterminate: checkedState === CHECKBOX_STATE.INDETERMINATE,
|
4267
4281
|
isDisabled,
|
4268
4282
|
"data-test-id": "CT_component_select-checkbox_select-all-option"
|
4269
4283
|
}
|
4270
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4271
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4284
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react73.Checkbox, { isChecked: isSelected, "data-test-id": "CT_component_select-checkbox_option-checkbox" }),
|
4285
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react73.Text, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
|
4272
4286
|
]
|
4273
4287
|
}
|
4274
4288
|
)
|
@@ -4281,21 +4295,24 @@ var SelectWithCheckboxBase = ({
|
|
4281
4295
|
isError = false,
|
4282
4296
|
components,
|
4283
4297
|
options,
|
4298
|
+
onChange,
|
4299
|
+
value,
|
4284
4300
|
...rest
|
4285
4301
|
}) => {
|
4286
4302
|
const { colorMode } = (0, import_system11.useColorMode)();
|
4287
4303
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4288
4304
|
import_react_select2.default,
|
4289
4305
|
{
|
4306
|
+
"data-test-id": "",
|
4290
4307
|
classNamePrefix: "react-select",
|
4291
4308
|
options,
|
4309
|
+
value,
|
4310
|
+
onChange,
|
4292
4311
|
styles: { ...selectStyles(colorMode, !!isError) },
|
4293
4312
|
theme: themeSelect,
|
4294
4313
|
closeMenuOnSelect: false,
|
4295
4314
|
hideSelectedOptions: false,
|
4296
|
-
components
|
4297
|
-
...components
|
4298
|
-
},
|
4315
|
+
components,
|
4299
4316
|
...rest
|
4300
4317
|
}
|
4301
4318
|
);
|
@@ -4303,24 +4320,29 @@ var SelectWithCheckboxBase = ({
|
|
4303
4320
|
var SelectCheckbox = (props) => {
|
4304
4321
|
const { isMulti, options, value, components, ...rest } = props;
|
4305
4322
|
const selectValue = value || [];
|
4323
|
+
const defaultComponents = {
|
4324
|
+
DropdownIndicator,
|
4325
|
+
ClearIndicator,
|
4326
|
+
MultiValue,
|
4327
|
+
MultiValueRemove,
|
4328
|
+
Option: (optionProps) => {
|
4329
|
+
const { isSelected, data } = optionProps;
|
4330
|
+
const optionLength = (options == null ? void 0 : options.length) ? options.length - 1 : 0;
|
4331
|
+
const selectedValue = isSelected ? CHECKBOX_STATE.CHECKED : CHECKBOX_STATE.UNCHECKED;
|
4332
|
+
const checkedState = data.selectAllCheckbox ? getSelectAllCheckboxState(selectValue == null ? void 0 : selectValue.length, optionLength) : selectedValue;
|
4333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(InputOption, { ...optionProps, checkedState });
|
4334
|
+
}
|
4335
|
+
};
|
4306
4336
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4307
4337
|
SelectWithCheckboxBase,
|
4308
4338
|
{
|
4339
|
+
"data-test-id": "",
|
4309
4340
|
isMulti,
|
4310
4341
|
options,
|
4342
|
+
value,
|
4311
4343
|
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
|
-
}
|
4344
|
+
...defaultComponents,
|
4345
|
+
...components
|
4324
4346
|
},
|
4325
4347
|
...rest
|
4326
4348
|
}
|
@@ -4329,13 +4351,13 @@ var SelectCheckbox = (props) => {
|
|
4329
4351
|
var select_with_checkbox_default = SelectCheckbox;
|
4330
4352
|
|
4331
4353
|
// src/components/sidebar/components/sidebar.tsx
|
4332
|
-
var
|
4354
|
+
var import_react74 = require("@chakra-ui/react");
|
4333
4355
|
var import_framer_motion = require("framer-motion");
|
4334
4356
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
4335
4357
|
var Sidebar = ({ isCollapse, children, ...props }) => {
|
4336
4358
|
const { width = "220px" } = props;
|
4337
4359
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4338
|
-
|
4360
|
+
import_react74.Flex,
|
4339
4361
|
{
|
4340
4362
|
position: "relative",
|
4341
4363
|
as: import_framer_motion.motion.div,
|
@@ -4355,13 +4377,13 @@ var Sidebar = ({ isCollapse, children, ...props }) => {
|
|
4355
4377
|
Sidebar.displayName = "Sidebar";
|
4356
4378
|
|
4357
4379
|
// src/components/sidebar/components/sidebar-header.tsx
|
4358
|
-
var
|
4380
|
+
var import_react75 = require("@chakra-ui/react");
|
4359
4381
|
var import_internal_icon8 = require("@ctlyst.id/internal-icon");
|
4360
4382
|
var import_framer_motion2 = require("framer-motion");
|
4361
4383
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
4362
4384
|
var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
4363
4385
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
4364
|
-
|
4386
|
+
import_react75.Box,
|
4365
4387
|
{
|
4366
4388
|
px: "2",
|
4367
4389
|
color: "neutral.900",
|
@@ -4371,7 +4393,7 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
4371
4393
|
color: "primary.500"
|
4372
4394
|
},
|
4373
4395
|
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
4374
|
-
|
4396
|
+
import_react75.Flex,
|
4375
4397
|
{
|
4376
4398
|
"data-test-id": "nLkz69YipW818FioeAxVI",
|
4377
4399
|
direction: "row",
|
@@ -4381,7 +4403,7 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
4381
4403
|
cursor: "pointer",
|
4382
4404
|
children: [
|
4383
4405
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
4384
|
-
|
4406
|
+
import_react75.Box,
|
4385
4407
|
{
|
4386
4408
|
as: import_framer_motion2.motion.div,
|
4387
4409
|
boxSize: "4",
|
@@ -4392,8 +4414,8 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
4392
4414
|
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_internal_icon8.ArrowRight, { size: 4, color: "inherit" })
|
4393
4415
|
}
|
4394
4416
|
),
|
4395
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_framer_motion2.AnimatePresence, { children: !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
4396
|
-
|
4417
|
+
/* @__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)(
|
4418
|
+
import_react75.Text,
|
4397
4419
|
{
|
4398
4420
|
as: import_framer_motion2.motion.div,
|
4399
4421
|
w: "max-content",
|
@@ -4419,25 +4441,25 @@ SidebarHeader.defaultProps = {
|
|
4419
4441
|
};
|
4420
4442
|
|
4421
4443
|
// src/components/sidebar/components/sidebar-menu.tsx
|
4422
|
-
var
|
4444
|
+
var import_react76 = require("@chakra-ui/react");
|
4423
4445
|
var Icon8 = __toESM(require("@ctlyst.id/internal-icon"));
|
4424
4446
|
var import_framer_motion3 = require("framer-motion");
|
4425
4447
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
4426
4448
|
var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, setActive, active }) => {
|
4427
|
-
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4449
|
+
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
4450
|
const isActive = active == null ? void 0 : active.includes(item.navLink);
|
4429
|
-
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.AccordionItem, { mt: "4", children: ({ isExpanded }) => {
|
4430
4452
|
const isOpenOptions = isCollapse || !isCollapse && !isExpanded;
|
4431
4453
|
const noChild = !item.children.length;
|
4432
4454
|
const offsetStyle = isCollapse ? noChild ? [-5, 16] : [-1, 16] : [-1, 8];
|
4433
4455
|
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
4434
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4456
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Popover, { trigger: "hover", placement: "right-start", offset: offsetStyle, children: ({ isOpen, onClose }) => {
|
4435
4457
|
const activeOption = isOpen ? "primary.50" : "white";
|
4436
4458
|
const backgroundColor = isOpen && !isActive ? "primary.50" : "primary.100";
|
4437
4459
|
const activeParent = isActive ? backgroundColor : activeOption;
|
4438
4460
|
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
4439
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4440
|
-
|
4461
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4462
|
+
import_react76.AccordionButton,
|
4441
4463
|
{
|
4442
4464
|
"data-test-id": `CTA_button-accordion-${item.title}`,
|
4443
4465
|
p: "0",
|
@@ -4454,9 +4476,9 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
4454
4476
|
position: "relative",
|
4455
4477
|
...itemStyles,
|
4456
4478
|
children: [
|
4457
|
-
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4479
|
+
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Box, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
|
4458
4480
|
!isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
4459
|
-
|
4481
|
+
import_react76.Box,
|
4460
4482
|
{
|
4461
4483
|
display: "flex",
|
4462
4484
|
w: "full",
|
@@ -4469,9 +4491,9 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
4469
4491
|
animate: { opacity: 1, x: 0 },
|
4470
4492
|
exit: { opacity: 0, x: 16 },
|
4471
4493
|
children: [
|
4472
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4494
|
+
/* @__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
4495
|
!!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4474
|
-
|
4496
|
+
import_react76.Box,
|
4475
4497
|
{
|
4476
4498
|
display: "flex",
|
4477
4499
|
boxSize: "3",
|
@@ -4490,12 +4512,12 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
4490
4512
|
},
|
4491
4513
|
item.id
|
4492
4514
|
) }, item.id),
|
4493
|
-
isOpenOptions && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4494
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4515
|
+
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: [
|
4516
|
+
/* @__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
4517
|
mappingIcon2.get(item.icon || ""),
|
4496
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4518
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Box, { as: "span", ml: "2", children: item.title })
|
4497
4519
|
] }) }),
|
4498
|
-
!!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4520
|
+
!!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
4521
|
NavItem,
|
4500
4522
|
{
|
4501
4523
|
"data-test-id": `CTA_Sidebar-popover-item-${submenu.id}`,
|
@@ -4511,7 +4533,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
4511
4533
|
},
|
4512
4534
|
submenu.id
|
4513
4535
|
)) })
|
4514
|
-
] }) : isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4536
|
+
] }) : 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
4537
|
NavItem,
|
4516
4538
|
{
|
4517
4539
|
"data-test-id": `CTA_Sidebar-popover-item-${item.id}`,
|
@@ -4524,15 +4546,15 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
4524
4546
|
rounded: "none",
|
4525
4547
|
...itemStyles,
|
4526
4548
|
children: [
|
4527
|
-
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4528
|
-
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4549
|
+
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Box, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
|
4550
|
+
/* @__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
4551
|
]
|
4530
4552
|
},
|
4531
4553
|
item.id
|
4532
4554
|
) }) }) })
|
4533
4555
|
] });
|
4534
4556
|
} }, item.id),
|
4535
|
-
!isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
4557
|
+
!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
4558
|
NavItem,
|
4537
4559
|
{
|
4538
4560
|
mt: "1",
|
@@ -4556,16 +4578,16 @@ SidebarMenu.defaultProps = {
|
|
4556
4578
|
};
|
4557
4579
|
|
4558
4580
|
// src/components/switch/components/switch.tsx
|
4559
|
-
var
|
4581
|
+
var import_react77 = require("@chakra-ui/react");
|
4560
4582
|
var import_shared_utils10 = require("@chakra-ui/shared-utils");
|
4561
4583
|
var import_internal_icon9 = require("@ctlyst.id/internal-icon");
|
4562
|
-
var
|
4584
|
+
var import_react78 = require("react");
|
4563
4585
|
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,
|
4586
|
+
var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
4587
|
+
const styles = (0, import_react77.useMultiStyleConfig)("Switch", props);
|
4588
|
+
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0, import_react77.omitThemingProps)(props);
|
4589
|
+
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0, import_react77.useCheckbox)(ownProps);
|
4590
|
+
const containerStyles = (0, import_react78.useMemo)(
|
4569
4591
|
() => ({
|
4570
4592
|
display: "inline-block",
|
4571
4593
|
position: "relative",
|
@@ -4575,7 +4597,7 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
4575
4597
|
}),
|
4576
4598
|
[styles.container]
|
4577
4599
|
);
|
4578
|
-
const trackStyles = (0,
|
4600
|
+
const trackStyles = (0, import_react78.useMemo)(
|
4579
4601
|
() => ({
|
4580
4602
|
display: "inline-flex",
|
4581
4603
|
flexShrink: 0,
|
@@ -4587,7 +4609,7 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
4587
4609
|
}),
|
4588
4610
|
[styles.track]
|
4589
4611
|
);
|
4590
|
-
const labelStyles = (0,
|
4612
|
+
const labelStyles = (0, import_react78.useMemo)(
|
4591
4613
|
() => ({
|
4592
4614
|
userSelect: "none",
|
4593
4615
|
marginStart: spacing2,
|
@@ -4604,7 +4626,7 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
4604
4626
|
return iconSize[value];
|
4605
4627
|
};
|
4606
4628
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
4607
|
-
|
4629
|
+
import_react77.chakra.label,
|
4608
4630
|
{
|
4609
4631
|
...getRootProps(),
|
4610
4632
|
display: "flex",
|
@@ -4613,13 +4635,13 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
4613
4635
|
__css: containerStyles,
|
4614
4636
|
children: [
|
4615
4637
|
/* @__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)(
|
4638
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react77.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
4639
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react77.Flex, { gap: 1, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
|
4618
4640
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_internal_icon9.Check, { color: "white", size: getIconSize(props.size) }),
|
4619
4641
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_internal_icon9.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
4620
4642
|
] }),
|
4621
4643
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
4622
|
-
|
4644
|
+
import_react77.chakra.span,
|
4623
4645
|
{
|
4624
4646
|
__css: styles.thumb,
|
4625
4647
|
className: "chakra-switch__thumb",
|
@@ -4629,7 +4651,7 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
4629
4651
|
)
|
4630
4652
|
] }),
|
4631
4653
|
children && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
4632
|
-
|
4654
|
+
import_react77.chakra.span,
|
4633
4655
|
{
|
4634
4656
|
className: "chakra-switch__label",
|
4635
4657
|
color: state.isDisabled ? "black.low" : "black.high",
|
@@ -4649,18 +4671,18 @@ Switch.defaultProps = {
|
|
4649
4671
|
var switch_default = Switch;
|
4650
4672
|
|
4651
4673
|
// src/components/table/index.tsx
|
4652
|
-
var
|
4674
|
+
var import_react79 = require("@chakra-ui/react");
|
4653
4675
|
|
4654
4676
|
// src/components/tabs/components/tab.tsx
|
4655
|
-
var
|
4677
|
+
var import_react80 = require("@chakra-ui/react");
|
4656
4678
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
4657
|
-
var Tab = (0,
|
4679
|
+
var Tab = (0, import_react80.forwardRef)((props, ref) => {
|
4658
4680
|
var _a, _b;
|
4659
|
-
const tabProps = (0,
|
4681
|
+
const tabProps = (0, import_react80.useTab)({ ...props, ref });
|
4660
4682
|
const isSelected = !!tabProps["aria-selected"];
|
4661
|
-
const styles = (0,
|
4683
|
+
const styles = (0, import_react80.useMultiStyleConfig)("Tabs", tabProps);
|
4662
4684
|
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
4663
|
-
|
4685
|
+
import_react80.Button,
|
4664
4686
|
{
|
4665
4687
|
"data-test-id": props["data-test-id"],
|
4666
4688
|
p: 4,
|
@@ -4685,7 +4707,7 @@ var Tab = (0, import_react81.forwardRef)((props, ref) => {
|
|
4685
4707
|
},
|
4686
4708
|
__css: styles.tab,
|
4687
4709
|
...tabProps,
|
4688
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
4710
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react80.Flex, { alignItems: "center", children: [
|
4689
4711
|
(_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
|
4690
4712
|
tabProps.children,
|
4691
4713
|
(_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
|
@@ -4696,21 +4718,21 @@ var Tab = (0, import_react81.forwardRef)((props, ref) => {
|
|
4696
4718
|
var tab_default = Tab;
|
4697
4719
|
|
4698
4720
|
// src/components/tabs/index.ts
|
4699
|
-
var
|
4721
|
+
var import_react81 = require("@chakra-ui/react");
|
4700
4722
|
|
4701
4723
|
// src/components/text/index.ts
|
4702
|
-
var
|
4724
|
+
var import_react82 = require("@chakra-ui/react");
|
4703
4725
|
|
4704
4726
|
// src/components/toast/components/toast.tsx
|
4705
|
-
var
|
4727
|
+
var import_react84 = require("@chakra-ui/react");
|
4706
4728
|
var import_react_toastify = require("react-toastify");
|
4707
4729
|
|
4708
4730
|
// src/components/toast/components/styles.tsx
|
4709
|
-
var
|
4731
|
+
var import_react83 = require("@emotion/react");
|
4710
4732
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
4711
4733
|
var Styles2 = () => {
|
4712
4734
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
4713
|
-
|
4735
|
+
import_react83.Global,
|
4714
4736
|
{
|
4715
4737
|
styles: `
|
4716
4738
|
.Toastify__toast-container {
|
@@ -4763,7 +4785,7 @@ var renderIcon = (icon, type) => {
|
|
4763
4785
|
return icon;
|
4764
4786
|
};
|
4765
4787
|
var useToast = () => {
|
4766
|
-
const [primary500, neutral500, info500, danger500, warning500, success500] = (0,
|
4788
|
+
const [primary500, neutral500, info500, danger500, warning500, success500] = (0, import_react84.useToken)("colors", [
|
4767
4789
|
"primary.500",
|
4768
4790
|
"neutral.500",
|
4769
4791
|
"info.500",
|
@@ -4774,13 +4796,13 @@ var useToast = () => {
|
|
4774
4796
|
const content = (icon, message, link) => {
|
4775
4797
|
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
|
4776
4798
|
/* @__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)(
|
4799
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react84.Flex, { justifyContent: "space-between", alignItems: "center", gap: 4, children: [
|
4800
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react84.Flex, { alignItems: "center", children: [
|
4801
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react84.chakra.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
|
4802
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react84.chakra.span, { noOfLines: 2, children: message })
|
4781
4803
|
] }),
|
4782
4804
|
link && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
4783
|
-
|
4805
|
+
import_react84.Link,
|
4784
4806
|
{
|
4785
4807
|
href: link.url,
|
4786
4808
|
textDecoration: "underline",
|
@@ -4858,9 +4880,9 @@ var useToast = () => {
|
|
4858
4880
|
var import_react_toastify2 = require("react-toastify");
|
4859
4881
|
|
4860
4882
|
// src/components/uploader/components/uploader.tsx
|
4861
|
-
var
|
4883
|
+
var import_react85 = require("@chakra-ui/react");
|
4862
4884
|
var import_internal_icon10 = require("@ctlyst.id/internal-icon");
|
4863
|
-
var
|
4885
|
+
var import_react86 = require("react");
|
4864
4886
|
var import_react_dropzone = require("react-dropzone");
|
4865
4887
|
|
4866
4888
|
// src/components/uploader/constants.ts
|
@@ -4891,7 +4913,7 @@ var formatValidationMessage = (extension) => `Foto harus dalam format ${concatLi
|
|
4891
4913
|
|
4892
4914
|
// src/components/uploader/components/uploader.tsx
|
4893
4915
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
4894
|
-
var
|
4916
|
+
var import_react87 = require("react");
|
4895
4917
|
var Uploader = ({
|
4896
4918
|
onHandleUploadFile,
|
4897
4919
|
onHandleRejections,
|
@@ -4920,10 +4942,10 @@ var Uploader = ({
|
|
4920
4942
|
size: size2 = "lg",
|
4921
4943
|
...props
|
4922
4944
|
}) => {
|
4923
|
-
const inputRef = (0,
|
4924
|
-
const [filePreview, setFilePreview] = (0,
|
4945
|
+
const inputRef = (0, import_react86.useRef)(null);
|
4946
|
+
const [filePreview, setFilePreview] = (0, import_react86.useState)();
|
4925
4947
|
const toast2 = useToast();
|
4926
|
-
const handleRejection = (0,
|
4948
|
+
const handleRejection = (0, import_react86.useCallback)(
|
4927
4949
|
(message, file, image) => {
|
4928
4950
|
if (onHandleRejections) {
|
4929
4951
|
onHandleRejections(file, image);
|
@@ -4935,7 +4957,7 @@ var Uploader = ({
|
|
4935
4957
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
4936
4958
|
[onHandleRejections]
|
4937
4959
|
);
|
4938
|
-
const onDrop = (0,
|
4960
|
+
const onDrop = (0, import_react86.useCallback)(
|
4939
4961
|
(files) => {
|
4940
4962
|
var _a;
|
4941
4963
|
const file = files[0];
|
@@ -4979,18 +5001,18 @@ var Uploader = ({
|
|
4979
5001
|
});
|
4980
5002
|
const renderHelperText = () => {
|
4981
5003
|
if (Array.isArray(helperText)) {
|
4982
|
-
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5004
|
+
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
5005
|
}
|
4984
5006
|
return helperText;
|
4985
5007
|
};
|
4986
|
-
const renderErrorText = (text2) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5008
|
+
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
5009
|
const handleRemove = (e) => {
|
4988
5010
|
e.stopPropagation();
|
4989
5011
|
setFilePreview(void 0);
|
4990
5012
|
onHandleUploadFile == null ? void 0 : onHandleUploadFile(null, null);
|
4991
5013
|
acceptedFiles.pop();
|
4992
5014
|
};
|
4993
|
-
(0,
|
5015
|
+
(0, import_react86.useEffect)(() => {
|
4994
5016
|
if (value) {
|
4995
5017
|
if (typeof value === "string") {
|
4996
5018
|
setFilePreview(value);
|
@@ -5006,16 +5028,16 @@ var Uploader = ({
|
|
5006
5028
|
const color = isDisabled ? "neutral.500" : "primary.500";
|
5007
5029
|
const containerHeight = !isSmall ? "160px" : "120px";
|
5008
5030
|
const cursorType = filePreview ? "initial" : "pointer";
|
5009
|
-
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
5031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react85.FormControl, { isRequired, children: [
|
5010
5032
|
label && typeof label === "string" ? (
|
5011
5033
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
5012
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
5013
|
-
isRequired && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5034
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react85.FormLabel, { requiredIndicator: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, {}), fontSize: "text.sm", children: [
|
5035
|
+
isRequired && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react85.RequiredIndicator, { mr: 1, ml: 0 }),
|
5014
5036
|
label
|
5015
5037
|
] })
|
5016
5038
|
) : label,
|
5017
5039
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
5018
|
-
|
5040
|
+
import_react85.Flex,
|
5019
5041
|
{
|
5020
5042
|
minH: containerHeight,
|
5021
5043
|
maxW: !isSmall ? "full" : "120px",
|
@@ -5032,8 +5054,8 @@ var Uploader = ({
|
|
5032
5054
|
...props,
|
5033
5055
|
...getRootProps(),
|
5034
5056
|
children: [
|
5035
|
-
filePreview && isShowCloseButton && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5036
|
-
|
5057
|
+
filePreview && isShowCloseButton && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react85.Box, { position: "absolute", top: 1, right: 1, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5058
|
+
import_react85.Button,
|
5037
5059
|
{
|
5038
5060
|
"data-test-id": `CT_component_base-image-uploader_remove-image${testId ? `_${testId}` : ""}`,
|
5039
5061
|
"aria-label": "remove-image",
|
@@ -5050,15 +5072,15 @@ var Uploader = ({
|
|
5050
5072
|
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_internal_icon10.Close, { size: 3, color: "white" })
|
5051
5073
|
}
|
5052
5074
|
) }),
|
5053
|
-
filePreview && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5054
|
-
|
5075
|
+
filePreview && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react85.Box, { w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5076
|
+
import_react85.Flex,
|
5055
5077
|
{
|
5056
5078
|
position: "relative",
|
5057
5079
|
"data-test-id": `CT_component_base-image-uploader_image-preview${testId ? `_${testId}` : ""}`,
|
5058
5080
|
justify: "center",
|
5059
5081
|
align: "center",
|
5060
5082
|
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5061
|
-
|
5083
|
+
import_react85.Image,
|
5062
5084
|
{
|
5063
5085
|
h: size2 === "lg" ? "120" : "100",
|
5064
5086
|
src: filePreview,
|
@@ -5076,11 +5098,11 @@ var Uploader = ({
|
|
5076
5098
|
...getInputProps()
|
5077
5099
|
}
|
5078
5100
|
),
|
5079
|
-
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5101
|
+
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
5102
|
size2 === "sm" && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_internal_icon10.Plus, { size: 6, color }),
|
5081
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
5103
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react85.Box, { children: [
|
5082
5104
|
!filePreview && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5083
|
-
|
5105
|
+
import_react85.Heading,
|
5084
5106
|
{
|
5085
5107
|
fontWeight: "400",
|
5086
5108
|
fontSize: size2 === "sm" ? "text.md" : "text.xl",
|
@@ -5089,15 +5111,15 @@ var Uploader = ({
|
|
5089
5111
|
children: uploadFileText && size2 === "lg" ? messages.uploadFile : "Upload"
|
5090
5112
|
}
|
5091
5113
|
),
|
5092
|
-
size2 === "lg" && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5114
|
+
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
5115
|
] })
|
5094
5116
|
] })
|
5095
5117
|
] })
|
5096
5118
|
]
|
5097
5119
|
}
|
5098
5120
|
),
|
5099
|
-
filePreview && !isSmall && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
5100
|
-
/* @__PURE__ */ (0,
|
5121
|
+
filePreview && !isSmall && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react85.Flex, { align: "center", justify: "center", my: 2, children: [
|
5122
|
+
/* @__PURE__ */ (0, import_react87.createElement)(
|
5101
5123
|
"input",
|
5102
5124
|
{
|
5103
5125
|
...getInputProps(),
|
@@ -5108,7 +5130,7 @@ var Uploader = ({
|
|
5108
5130
|
}
|
5109
5131
|
),
|
5110
5132
|
isShowReupload && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
5111
|
-
|
5133
|
+
import_react85.Button,
|
5112
5134
|
{
|
5113
5135
|
"data-test-id": `CT_component_base-image-uploader_change-img-btn${testId ? `_${testId}` : ""}`,
|
5114
5136
|
type: "button",
|
@@ -5129,10 +5151,10 @@ var Uploader = ({
|
|
5129
5151
|
var uploader_default = Uploader;
|
5130
5152
|
|
5131
5153
|
// src/components/index.ts
|
5132
|
-
var
|
5154
|
+
var import_react88 = require("@chakra-ui/react");
|
5133
5155
|
|
5134
5156
|
// src/config/theme/themeConfiguration.ts
|
5135
|
-
var
|
5157
|
+
var import_react96 = require("@chakra-ui/react");
|
5136
5158
|
|
5137
5159
|
// src/config/theme/components/index.ts
|
5138
5160
|
var components_exports = {};
|
@@ -5689,8 +5711,8 @@ var card_default2 = CardStyle;
|
|
5689
5711
|
|
5690
5712
|
// src/config/theme/components/checkbox.ts
|
5691
5713
|
var import_anatomy3 = require("@chakra-ui/anatomy");
|
5692
|
-
var
|
5693
|
-
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0,
|
5714
|
+
var import_react89 = require("@chakra-ui/react");
|
5715
|
+
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0, import_react89.createMultiStyleConfigHelpers)(import_anatomy3.checkboxAnatomy.keys);
|
5694
5716
|
var baseStyle3 = definePartsStyle3({
|
5695
5717
|
control: {
|
5696
5718
|
borderRadius: "sm",
|
@@ -5791,8 +5813,8 @@ var checkbox_default2 = Checkbox4;
|
|
5791
5813
|
|
5792
5814
|
// src/config/theme/components/chips.ts
|
5793
5815
|
var import_anatomy4 = require("@chakra-ui/anatomy");
|
5794
|
-
var
|
5795
|
-
var { definePartsStyle: definePartsStyle4, defineMultiStyleConfig: defineMultiStyleConfig4 } = (0,
|
5816
|
+
var import_react90 = require("@chakra-ui/react");
|
5817
|
+
var { definePartsStyle: definePartsStyle4, defineMultiStyleConfig: defineMultiStyleConfig4 } = (0, import_react90.createMultiStyleConfigHelpers)(import_anatomy4.tagAnatomy.keys);
|
5796
5818
|
var baseStyle4 = definePartsStyle4({
|
5797
5819
|
container: {
|
5798
5820
|
px: 3,
|
@@ -6001,8 +6023,8 @@ var input_default = Input3;
|
|
6001
6023
|
|
6002
6024
|
// src/config/theme/components/loader.ts
|
6003
6025
|
var import_styled_system7 = require("@chakra-ui/styled-system");
|
6004
|
-
var
|
6005
|
-
var rotate = (0,
|
6026
|
+
var import_react91 = require("@emotion/react");
|
6027
|
+
var rotate = (0, import_react91.keyframes)({
|
6006
6028
|
"0%": {
|
6007
6029
|
transform: "rotate(0deg)"
|
6008
6030
|
},
|
@@ -6184,8 +6206,8 @@ var modal_default = modalTheme;
|
|
6184
6206
|
|
6185
6207
|
// src/config/theme/components/popover.ts
|
6186
6208
|
var import_anatomy7 = require("@chakra-ui/anatomy");
|
6187
|
-
var
|
6188
|
-
var { definePartsStyle: definePartsStyle7, defineMultiStyleConfig: defineMultiStyleConfig7 } = (0,
|
6209
|
+
var import_react92 = require("@chakra-ui/react");
|
6210
|
+
var { definePartsStyle: definePartsStyle7, defineMultiStyleConfig: defineMultiStyleConfig7 } = (0, import_react92.createMultiStyleConfigHelpers)(import_anatomy7.popoverAnatomy.keys);
|
6189
6211
|
var baseStyle8 = definePartsStyle7({
|
6190
6212
|
content: {
|
6191
6213
|
bg: "white"
|
@@ -6196,8 +6218,8 @@ var popover_default = popoverTheme;
|
|
6196
6218
|
|
6197
6219
|
// src/config/theme/components/radio.ts
|
6198
6220
|
var import_anatomy8 = require("@chakra-ui/anatomy");
|
6199
|
-
var
|
6200
|
-
var { definePartsStyle: definePartsStyle8, defineMultiStyleConfig: defineMultiStyleConfig8 } = (0,
|
6221
|
+
var import_react93 = require("@chakra-ui/react");
|
6222
|
+
var { definePartsStyle: definePartsStyle8, defineMultiStyleConfig: defineMultiStyleConfig8 } = (0, import_react93.createMultiStyleConfigHelpers)(import_anatomy8.radioAnatomy.keys);
|
6201
6223
|
var baseStyle9 = definePartsStyle8({
|
6202
6224
|
control: {
|
6203
6225
|
border: "1px solid",
|
@@ -6632,7 +6654,7 @@ var tabsTheme = defineMultiStyleConfig11({
|
|
6632
6654
|
var tabs_default = tabsTheme;
|
6633
6655
|
|
6634
6656
|
// src/config/theme/components/textarea.ts
|
6635
|
-
var
|
6657
|
+
var import_react94 = require("@chakra-ui/react");
|
6636
6658
|
var getProps = (props) => {
|
6637
6659
|
const { isError, isSuccess, isDisabled } = props;
|
6638
6660
|
let borderColor = "neutral.400";
|
@@ -6652,7 +6674,7 @@ var getProps = (props) => {
|
|
6652
6674
|
borderColor
|
6653
6675
|
};
|
6654
6676
|
};
|
6655
|
-
var outline3 = (0,
|
6677
|
+
var outline3 = (0, import_react94.defineStyle)((props) => {
|
6656
6678
|
const { focusBorderColor, borderColor } = getProps(props);
|
6657
6679
|
return {
|
6658
6680
|
background: "white.high",
|
@@ -6696,7 +6718,7 @@ var outline3 = (0, import_react95.defineStyle)((props) => {
|
|
6696
6718
|
}
|
6697
6719
|
};
|
6698
6720
|
});
|
6699
|
-
var Textarea = (0,
|
6721
|
+
var Textarea = (0, import_react94.defineStyleConfig)({
|
6700
6722
|
variants: { outline: outline3 },
|
6701
6723
|
defaultProps: {
|
6702
6724
|
variant: "outline"
|
@@ -6705,15 +6727,15 @@ var Textarea = (0, import_react95.defineStyleConfig)({
|
|
6705
6727
|
var textarea_default2 = Textarea;
|
6706
6728
|
|
6707
6729
|
// src/config/theme/components/tooltip.ts
|
6708
|
-
var
|
6709
|
-
var $arrowBg = (0,
|
6730
|
+
var import_react95 = require("@chakra-ui/react");
|
6731
|
+
var $arrowBg = (0, import_react95.cssVar)("popper-arrow-bg");
|
6710
6732
|
var baseStyle12 = {
|
6711
6733
|
bg: "neutral.700",
|
6712
6734
|
textStyle: "text.sm",
|
6713
6735
|
fontSize: "text.sm",
|
6714
6736
|
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
6715
6737
|
};
|
6716
|
-
var Tooltip2 = (0,
|
6738
|
+
var Tooltip2 = (0, import_react95.defineStyleConfig)({ baseStyle: baseStyle12 });
|
6717
6739
|
var tooltip_default = Tooltip2;
|
6718
6740
|
|
6719
6741
|
// src/config/theme/themeConfiguration.ts
|
@@ -6723,7 +6745,7 @@ var config = {
|
|
6723
6745
|
useSystemColorMode: false
|
6724
6746
|
};
|
6725
6747
|
var getTheme = (foundations) => {
|
6726
|
-
return (0,
|
6748
|
+
return (0, import_react96.extendTheme)({
|
6727
6749
|
...foundations,
|
6728
6750
|
components: {
|
6729
6751
|
...components_exports
|
@@ -6740,7 +6762,7 @@ var getTheme = (foundations) => {
|
|
6740
6762
|
config
|
6741
6763
|
});
|
6742
6764
|
};
|
6743
|
-
var theme4 = (0,
|
6765
|
+
var theme4 = (0, import_react96.extendTheme)({
|
6744
6766
|
components: {
|
6745
6767
|
...components_exports
|
6746
6768
|
},
|
@@ -6760,23 +6782,23 @@ var theme4 = (0, import_react97.extendTheme)({
|
|
6760
6782
|
|
6761
6783
|
// src/hooks/useFetcher.ts
|
6762
6784
|
var import_axios2 = __toESM(require("axios"));
|
6763
|
-
var
|
6785
|
+
var import_react99 = require("react");
|
6764
6786
|
|
6765
6787
|
// src/provider/components/provider.tsx
|
6766
6788
|
var import_axios = __toESM(require("axios"));
|
6767
|
-
var
|
6789
|
+
var import_react97 = require("react");
|
6768
6790
|
var import_react_toastify3 = require("react-toastify");
|
6769
6791
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
6770
|
-
var ProviderContext = (0,
|
6792
|
+
var ProviderContext = (0, import_react97.createContext)({
|
6771
6793
|
instance: void 0
|
6772
6794
|
});
|
6773
6795
|
var useInternalUI = () => {
|
6774
|
-
const { instance } = (0,
|
6796
|
+
const { instance } = (0, import_react97.useContext)(ProviderContext);
|
6775
6797
|
return { instance };
|
6776
6798
|
};
|
6777
6799
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
6778
|
-
const instanceRef = (0,
|
6779
|
-
(0,
|
6800
|
+
const instanceRef = (0, import_react97.useRef)(import_axios.default.create(config2));
|
6801
|
+
(0, import_react97.useEffect)(() => {
|
6780
6802
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
6781
6803
|
instanceRef.current.interceptors.request.use(interceptor);
|
6782
6804
|
});
|
@@ -6784,7 +6806,7 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
6784
6806
|
instanceRef.current.interceptors.response.use(interceptor);
|
6785
6807
|
});
|
6786
6808
|
}, [requestInterceptors, responseInterceptors]);
|
6787
|
-
const provider = (0,
|
6809
|
+
const provider = (0, import_react97.useMemo)(() => ({ instance: instanceRef.current }), []);
|
6788
6810
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(ProviderContext.Provider, { value: provider, children: [
|
6789
6811
|
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react_toastify3.ToastContainer, {}),
|
6790
6812
|
children
|
@@ -6794,12 +6816,12 @@ Provider.displayName = "Provider";
|
|
6794
6816
|
var provider_default = Provider;
|
6795
6817
|
|
6796
6818
|
// src/provider/index.ts
|
6797
|
-
var
|
6819
|
+
var import_react98 = require("@chakra-ui/react");
|
6798
6820
|
|
6799
6821
|
// src/hooks/useFetcher.ts
|
6800
6822
|
function useFetcher() {
|
6801
6823
|
const { instance } = useInternalUI();
|
6802
|
-
const axiosInstance = (0,
|
6824
|
+
const axiosInstance = (0, import_react99.useMemo)(() => instance || import_axios2.default, [instance]);
|
6803
6825
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
6804
6826
|
const response = await axiosInstance.request({
|
6805
6827
|
data,
|
@@ -6819,10 +6841,10 @@ function useFetcher() {
|
|
6819
6841
|
}
|
6820
6842
|
|
6821
6843
|
// src/hooks/index.ts
|
6822
|
-
var
|
6844
|
+
var import_react100 = require("@chakra-ui/react");
|
6823
6845
|
|
6824
6846
|
// src/index.ts
|
6825
|
-
var
|
6847
|
+
var import_react101 = require("@chakra-ui/react");
|
6826
6848
|
// Annotate the CommonJS export names for ESM import in node:
|
6827
6849
|
0 && (module.exports = {
|
6828
6850
|
Accordion,
|