@ctlyst.id/internal-ui 2.1.11 → 2.1.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +819 -792
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +322 -296
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -31,347 +31,364 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
31
31
|
// src/index.ts
|
32
32
|
var src_exports = {};
|
33
33
|
__export(src_exports, {
|
34
|
-
Accordion: () =>
|
35
|
-
AccordionButton: () =>
|
36
|
-
AccordionButtonProps: () =>
|
37
|
-
|
38
|
-
|
34
|
+
Accordion: () => import_react3.Accordion,
|
35
|
+
AccordionButton: () => import_react3.AccordionButton,
|
36
|
+
AccordionButtonProps: () => import_react3.AccordionButtonProps,
|
37
|
+
AccordionEye: () => AccordionEye,
|
38
|
+
AccordionIcon: () => import_react3.AccordionIcon,
|
39
|
+
AccordionIconProps: () => import_react3.AccordionIconProps,
|
39
40
|
AccordionIndicator: () => AccordionIndicator,
|
40
|
-
AccordionItem: () =>
|
41
|
-
AccordionItemProps: () =>
|
42
|
-
AccordionPanel: () =>
|
43
|
-
AccordionPanelProps: () =>
|
44
|
-
AccordionProps: () =>
|
45
|
-
AccordionProvider: () =>
|
41
|
+
AccordionItem: () => import_react3.AccordionItem,
|
42
|
+
AccordionItemProps: () => import_react3.AccordionItemProps,
|
43
|
+
AccordionPanel: () => import_react3.AccordionPanel,
|
44
|
+
AccordionPanelProps: () => import_react3.AccordionPanelProps,
|
45
|
+
AccordionProps: () => import_react3.AccordionProps,
|
46
|
+
AccordionProvider: () => import_react3.AccordionProvider,
|
46
47
|
Alert: () => Alert,
|
47
48
|
AlertAction: () => AlertAction,
|
48
49
|
AlertClose: () => AlertClose,
|
49
50
|
AlertDescription: () => AlertDescription,
|
50
|
-
AlertDialog: () =>
|
51
|
-
AlertDialogBody: () =>
|
52
|
-
AlertDialogCloseButton: () =>
|
53
|
-
AlertDialogContent: () =>
|
54
|
-
AlertDialogFooter: () =>
|
55
|
-
AlertDialogHeader: () =>
|
56
|
-
AlertDialogOverlay: () =>
|
57
|
-
AlertDialogProps: () =>
|
51
|
+
AlertDialog: () => import_react59.AlertDialog,
|
52
|
+
AlertDialogBody: () => import_react59.ModalBody,
|
53
|
+
AlertDialogCloseButton: () => import_react59.ModalCloseButton,
|
54
|
+
AlertDialogContent: () => import_react59.AlertDialogContent,
|
55
|
+
AlertDialogFooter: () => import_react59.ModalFooter,
|
56
|
+
AlertDialogHeader: () => import_react59.ModalHeader,
|
57
|
+
AlertDialogOverlay: () => import_react59.ModalOverlay,
|
58
|
+
AlertDialogProps: () => import_react59.AlertDialogProps,
|
58
59
|
AlertIcon: () => AlertIcon,
|
59
60
|
AlertTitle: () => AlertTitle,
|
60
61
|
Anchor: () => Anchor,
|
61
|
-
Avatar: () =>
|
62
|
-
AvatarBadge: () =>
|
63
|
-
AvatarBadgeProps: () =>
|
64
|
-
AvatarGroup: () =>
|
65
|
-
AvatarGroupProps: () =>
|
66
|
-
AvatarProps: () =>
|
62
|
+
Avatar: () => import_react86.Avatar,
|
63
|
+
AvatarBadge: () => import_react86.AvatarBadge,
|
64
|
+
AvatarBadgeProps: () => import_react86.AvatarBadgeProps,
|
65
|
+
AvatarGroup: () => import_react86.AvatarGroup,
|
66
|
+
AvatarGroupProps: () => import_react86.AvatarGroupProps,
|
67
|
+
AvatarProps: () => import_react86.AvatarProps,
|
67
68
|
Badge: () => badge_default,
|
68
|
-
Box: () =>
|
69
|
-
BoxProps: () =>
|
69
|
+
Box: () => import_react48.Box,
|
70
|
+
BoxProps: () => import_react48.BoxProps,
|
70
71
|
BreadCrumb: () => bread_crumb_default,
|
71
72
|
Button: () => button_default,
|
72
|
-
ButtonGroup: () =>
|
73
|
-
ButtonGroupProps: () =>
|
73
|
+
ButtonGroup: () => import_react9.ButtonGroup,
|
74
|
+
ButtonGroupProps: () => import_react9.ButtonGroupProps,
|
74
75
|
Card: () => card_default,
|
75
|
-
Center: () =>
|
76
|
-
ChakraProvider: () =>
|
77
|
-
ChakraProviderProps: () =>
|
78
|
-
ChakraTable: () =>
|
76
|
+
Center: () => import_react48.Center,
|
77
|
+
ChakraProvider: () => import_react94.ChakraProvider,
|
78
|
+
ChakraProviderProps: () => import_react94.ChakraProviderProps,
|
79
|
+
ChakraTable: () => import_react80.Table,
|
79
80
|
Checkbox: () => checkbox_default,
|
80
81
|
CheckboxGroup: () => checkbox_group_default,
|
81
|
-
CheckboxGroupContext: () =>
|
82
|
-
CheckboxGroupProps: () =>
|
83
|
-
CheckboxIcon: () =>
|
84
|
-
CheckboxIconProps: () =>
|
85
|
-
CheckboxState: () =>
|
82
|
+
CheckboxGroupContext: () => import_react16.CheckboxGroupContext,
|
83
|
+
CheckboxGroupProps: () => import_react16.CheckboxGroupProps,
|
84
|
+
CheckboxIcon: () => import_react16.CheckboxIcon,
|
85
|
+
CheckboxIconProps: () => import_react16.CheckboxIconProps,
|
86
|
+
CheckboxState: () => import_react16.CheckboxState,
|
86
87
|
Chips: () => chips_default,
|
87
|
-
CloseButton: () =>
|
88
|
-
CloseButtonProps: () =>
|
89
|
-
Code: () =>
|
90
|
-
CodeProps: () =>
|
91
|
-
Collapse: () =>
|
92
|
-
CollapseProps: () =>
|
93
|
-
ColorMode: () =>
|
94
|
-
ColorModeScript: () =>
|
95
|
-
ColorModeScriptProps: () =>
|
96
|
-
Container: () =>
|
97
|
-
ContainerProps: () =>
|
88
|
+
CloseButton: () => import_react9.CloseButton,
|
89
|
+
CloseButtonProps: () => import_react9.CloseButtonProps,
|
90
|
+
Code: () => import_react83.Code,
|
91
|
+
CodeProps: () => import_react83.CodeProps,
|
92
|
+
Collapse: () => import_react86.Collapse,
|
93
|
+
CollapseProps: () => import_react86.CollapseProps,
|
94
|
+
ColorMode: () => import_react94.ColorMode,
|
95
|
+
ColorModeScript: () => import_react94.ColorModeScript,
|
96
|
+
ColorModeScriptProps: () => import_react94.ColorModeScriptProps,
|
97
|
+
Container: () => import_react48.Container,
|
98
|
+
ContainerProps: () => import_react48.ContainerProps,
|
98
99
|
Counter: () => counter_default,
|
99
100
|
DataTable: () => data_table_default,
|
100
101
|
DatePickerMonth: () => datepicker_month_default,
|
101
102
|
Datepicker: () => datepicker_default,
|
102
103
|
Dialog: () => dialog_default,
|
103
|
-
Divider: () =>
|
104
|
-
DividerProps: () =>
|
105
|
-
Drawer: () =>
|
106
|
-
DrawerBody: () =>
|
107
|
-
DrawerCloseButton: () =>
|
108
|
-
DrawerContent: () =>
|
109
|
-
DrawerContentProps: () =>
|
110
|
-
DrawerFooter: () =>
|
111
|
-
DrawerHeader: () =>
|
112
|
-
DrawerOverlay: () =>
|
113
|
-
DrawerProps: () =>
|
114
|
-
Fade: () =>
|
115
|
-
FadeProps: () =>
|
104
|
+
Divider: () => import_react48.Divider,
|
105
|
+
DividerProps: () => import_react48.DividerProps,
|
106
|
+
Drawer: () => import_react59.Drawer,
|
107
|
+
DrawerBody: () => import_react59.ModalBody,
|
108
|
+
DrawerCloseButton: () => import_react59.ModalCloseButton,
|
109
|
+
DrawerContent: () => import_react59.DrawerContent,
|
110
|
+
DrawerContentProps: () => import_react59.DrawerContentProps,
|
111
|
+
DrawerFooter: () => import_react59.ModalFooter,
|
112
|
+
DrawerHeader: () => import_react59.ModalHeader,
|
113
|
+
DrawerOverlay: () => import_react59.ModalOverlay,
|
114
|
+
DrawerProps: () => import_react59.DrawerProps,
|
115
|
+
Fade: () => import_react86.Fade,
|
116
|
+
FadeProps: () => import_react86.FadeProps,
|
116
117
|
Field: () => field_default,
|
117
|
-
Flex: () =>
|
118
|
-
FlexProps: () =>
|
119
|
-
FormControl: () =>
|
120
|
-
FormControlProps: () =>
|
121
|
-
FormErrorMessage: () =>
|
122
|
-
FormHelperText: () =>
|
123
|
-
FormLabel: () =>
|
124
|
-
FormLabelProps: () =>
|
125
|
-
Grid: () =>
|
126
|
-
GridItem: () =>
|
127
|
-
GridItemProps: () =>
|
128
|
-
GridProps: () =>
|
129
|
-
HStack: () =>
|
118
|
+
Flex: () => import_react48.Flex,
|
119
|
+
FlexProps: () => import_react48.FlexProps,
|
120
|
+
FormControl: () => import_react27.FormControl,
|
121
|
+
FormControlProps: () => import_react27.FormControlProps,
|
122
|
+
FormErrorMessage: () => import_react27.FormErrorMessage,
|
123
|
+
FormHelperText: () => import_react27.FormHelperText,
|
124
|
+
FormLabel: () => import_react27.FormLabel,
|
125
|
+
FormLabelProps: () => import_react27.FormLabelProps,
|
126
|
+
Grid: () => import_react48.Grid,
|
127
|
+
GridItem: () => import_react48.GridItem,
|
128
|
+
GridItemProps: () => import_react48.GridItemProps,
|
129
|
+
GridProps: () => import_react48.GridProps,
|
130
|
+
HStack: () => import_react48.HStack,
|
130
131
|
Header: () => header_default,
|
131
|
-
Heading: () =>
|
132
|
-
HeadingProps: () =>
|
133
|
-
Hide: () =>
|
134
|
-
HideProps: () =>
|
135
|
-
Icon: () =>
|
136
|
-
IconButton: () =>
|
137
|
-
IconButtonProps: () =>
|
138
|
-
IconProps: () =>
|
139
|
-
Image: () =>
|
140
|
-
ImageProps: () =>
|
141
|
-
Img: () =>
|
142
|
-
ImgProps: () =>
|
132
|
+
Heading: () => import_react83.Heading,
|
133
|
+
HeadingProps: () => import_react83.HeadingProps,
|
134
|
+
Hide: () => import_react86.Hide,
|
135
|
+
HideProps: () => import_react86.HideProps,
|
136
|
+
Icon: () => import_react47.Icon,
|
137
|
+
IconButton: () => import_react9.IconButton,
|
138
|
+
IconButtonProps: () => import_react9.IconButtonProps,
|
139
|
+
IconProps: () => import_react47.IconProps,
|
140
|
+
Image: () => import_react47.Image,
|
141
|
+
ImageProps: () => import_react47.ImageProps,
|
142
|
+
Img: () => import_react86.Img,
|
143
|
+
ImgProps: () => import_react86.ImgProps,
|
143
144
|
InputAddonLeft: () => InputAddonLeft,
|
144
145
|
InputAddonRight: () => InputAddonRight,
|
145
|
-
InputElementLeft: () =>
|
146
|
-
InputElementRight: () =>
|
146
|
+
InputElementLeft: () => import_react20.InputLeftElement,
|
147
|
+
InputElementRight: () => import_react21.InputRightElement,
|
147
148
|
InputField: () => input_field_default2,
|
148
|
-
InputGroup: () =>
|
149
|
-
InputGroupProps: () =>
|
150
|
-
InputLeftAddon: () =>
|
151
|
-
InputLeftAddonProps: () =>
|
152
|
-
InputLeftElement: () =>
|
153
|
-
InputLeftElementProps: () =>
|
154
|
-
InputProps: () =>
|
155
|
-
InputRightAddon: () =>
|
156
|
-
InputRightAddonProps: () =>
|
157
|
-
InputRightElement: () =>
|
158
|
-
InputRightElementProps: () =>
|
159
|
-
Link: () =>
|
160
|
-
LinkProps: () =>
|
161
|
-
List: () =>
|
162
|
-
ListIcon: () =>
|
163
|
-
ListItem: () =>
|
164
|
-
ListItemProps: () =>
|
165
|
-
ListProps: () =>
|
149
|
+
InputGroup: () => import_react27.InputGroup,
|
150
|
+
InputGroupProps: () => import_react27.InputGroupProps,
|
151
|
+
InputLeftAddon: () => import_react27.InputLeftAddon,
|
152
|
+
InputLeftAddonProps: () => import_react27.InputLeftAddonProps,
|
153
|
+
InputLeftElement: () => import_react27.InputLeftElement,
|
154
|
+
InputLeftElementProps: () => import_react27.InputLeftElementProps,
|
155
|
+
InputProps: () => import_react27.InputProps,
|
156
|
+
InputRightAddon: () => import_react27.InputRightAddon,
|
157
|
+
InputRightAddonProps: () => import_react27.InputRightAddonProps,
|
158
|
+
InputRightElement: () => import_react27.InputRightElement,
|
159
|
+
InputRightElementProps: () => import_react27.InputRightElementProps,
|
160
|
+
Link: () => import_react83.Link,
|
161
|
+
LinkProps: () => import_react83.LinkProps,
|
162
|
+
List: () => import_react49.List,
|
163
|
+
ListIcon: () => import_react49.ListIcon,
|
164
|
+
ListItem: () => import_react49.ListItem,
|
165
|
+
ListItemProps: () => import_react49.ListItemProps,
|
166
|
+
ListProps: () => import_react49.ListProps,
|
166
167
|
Loader: () => loader_default,
|
167
168
|
MainMenu: () => navigation_default,
|
168
|
-
Modal: () =>
|
169
|
+
Modal: () => import_react59.Modal,
|
169
170
|
ModalBackButton: () => modal_back_button_default,
|
170
171
|
ModalBody: () => modal_body_default,
|
171
|
-
ModalBodyProps: () =>
|
172
|
+
ModalBodyProps: () => import_react59.ModalBodyProps,
|
172
173
|
ModalCloseButton: () => modal_close_button_default,
|
173
|
-
ModalContent: () =>
|
174
|
-
ModalContentProps: () =>
|
175
|
-
ModalContextProvider: () =>
|
176
|
-
ModalFocusScope: () =>
|
174
|
+
ModalContent: () => import_react59.ModalContent,
|
175
|
+
ModalContentProps: () => import_react59.ModalContentProps,
|
176
|
+
ModalContextProvider: () => import_react59.ModalContextProvider,
|
177
|
+
ModalFocusScope: () => import_react59.ModalFocusScope,
|
177
178
|
ModalFooter: () => modal_footer_default,
|
178
|
-
ModalFooterProps: () =>
|
179
|
+
ModalFooterProps: () => import_react59.ModalFooterProps,
|
179
180
|
ModalHeader: () => modal_header_default,
|
180
|
-
ModalHeaderProps: () =>
|
181
|
-
ModalOverlay: () =>
|
182
|
-
ModalOverlayProps: () =>
|
183
|
-
ModalProps: () =>
|
181
|
+
ModalHeaderProps: () => import_react59.ModalHeaderProps,
|
182
|
+
ModalOverlay: () => import_react59.ModalOverlay,
|
183
|
+
ModalOverlayProps: () => import_react59.ModalOverlayProps,
|
184
|
+
ModalProps: () => import_react59.ModalProps,
|
184
185
|
MultiDatePickerMonth: () => multi_datepicker_month_default,
|
185
186
|
NavigationBar: () => navigation_bar_default,
|
186
|
-
OrderedList: () =>
|
187
|
+
OrderedList: () => import_react49.OrderedList,
|
187
188
|
Pagination: () => pagination_default,
|
188
189
|
PaginationDetail: () => pagination_detail_default,
|
189
190
|
PaginationFilter: () => pagination_filter_default,
|
190
|
-
Popover: () =>
|
191
|
-
PopoverAnchor: () =>
|
192
|
-
PopoverArrow: () =>
|
193
|
-
PopoverArrowProps: () =>
|
194
|
-
PopoverBody: () =>
|
195
|
-
PopoverBodyProps: () =>
|
196
|
-
PopoverCloseButton: () =>
|
197
|
-
PopoverContent: () =>
|
198
|
-
PopoverContentProps: () =>
|
199
|
-
PopoverFooter: () =>
|
200
|
-
PopoverFooterProps: () =>
|
201
|
-
PopoverHeader: () =>
|
202
|
-
PopoverHeaderProps: () =>
|
203
|
-
PopoverProps: () =>
|
204
|
-
PopoverTrigger: () =>
|
205
|
-
Portal: () =>
|
206
|
-
PortalProps: () =>
|
191
|
+
Popover: () => import_react69.Popover,
|
192
|
+
PopoverAnchor: () => import_react69.PopoverAnchor,
|
193
|
+
PopoverArrow: () => import_react69.PopoverArrow,
|
194
|
+
PopoverArrowProps: () => import_react69.PopoverArrowProps,
|
195
|
+
PopoverBody: () => import_react69.PopoverBody,
|
196
|
+
PopoverBodyProps: () => import_react69.PopoverBodyProps,
|
197
|
+
PopoverCloseButton: () => import_react69.PopoverCloseButton,
|
198
|
+
PopoverContent: () => import_react69.PopoverContent,
|
199
|
+
PopoverContentProps: () => import_react69.PopoverContentProps,
|
200
|
+
PopoverFooter: () => import_react69.PopoverFooter,
|
201
|
+
PopoverFooterProps: () => import_react69.PopoverFooterProps,
|
202
|
+
PopoverHeader: () => import_react69.PopoverHeader,
|
203
|
+
PopoverHeaderProps: () => import_react69.PopoverHeaderProps,
|
204
|
+
PopoverProps: () => import_react69.PopoverProps,
|
205
|
+
PopoverTrigger: () => import_react69.PopoverTrigger,
|
206
|
+
Portal: () => import_react69.Portal,
|
207
|
+
PortalProps: () => import_react69.PortalProps,
|
207
208
|
Provider: () => provider_default,
|
208
209
|
ProviderContext: () => ProviderContext,
|
209
210
|
Radio: () => Radio,
|
210
211
|
RadioGroup: () => RadioGroup,
|
211
|
-
RadioGroupContext: () =>
|
212
|
+
RadioGroupContext: () => import_react72.RadioGroupContext,
|
212
213
|
Rating: () => rating_default,
|
213
|
-
RequiredIndicator: () =>
|
214
|
-
RequiredIndicatorProps: () =>
|
215
|
-
ScaleFade: () =>
|
216
|
-
ScaleFadeProps: () =>
|
214
|
+
RequiredIndicator: () => import_react27.RequiredIndicator,
|
215
|
+
RequiredIndicatorProps: () => import_react27.RequiredIndicatorProps,
|
216
|
+
ScaleFade: () => import_react86.ScaleFade,
|
217
|
+
ScaleFadeProps: () => import_react86.ScaleFadeProps,
|
217
218
|
Select: () => select_default,
|
218
219
|
SelectAsync: () => select_async_default,
|
219
220
|
SelectAsyncCreatable: () => SelectAsyncCreatable,
|
220
221
|
SelectCreatable: () => SelectCreatable,
|
221
|
-
Show: () =>
|
222
|
-
ShowProps: () =>
|
223
|
-
SimpleGrid: () =>
|
224
|
-
Skeleton: () =>
|
225
|
-
Slide: () =>
|
226
|
-
SlideFade: () =>
|
227
|
-
SlideFadeProps: () =>
|
228
|
-
SlideProps: () =>
|
229
|
-
Spacer: () =>
|
230
|
-
Stack: () =>
|
231
|
-
StackProps: () =>
|
232
|
-
Step: () =>
|
233
|
-
StepDescription: () =>
|
234
|
-
StepIcon: () =>
|
235
|
-
StepIndicator: () =>
|
236
|
-
StepNumber: () =>
|
237
|
-
StepSeparator: () =>
|
238
|
-
StepStatus: () =>
|
239
|
-
StepTitle: () =>
|
240
|
-
Stepper: () =>
|
222
|
+
Show: () => import_react86.Show,
|
223
|
+
ShowProps: () => import_react86.ShowProps,
|
224
|
+
SimpleGrid: () => import_react48.SimpleGrid,
|
225
|
+
Skeleton: () => import_react5.Skeleton,
|
226
|
+
Slide: () => import_react86.Slide,
|
227
|
+
SlideFade: () => import_react86.SlideFade,
|
228
|
+
SlideFadeProps: () => import_react86.SlideFadeProps,
|
229
|
+
SlideProps: () => import_react86.SlideProps,
|
230
|
+
Spacer: () => import_react48.Spacer,
|
231
|
+
Stack: () => import_react48.Stack,
|
232
|
+
StackProps: () => import_react48.StackProps,
|
233
|
+
Step: () => import_react86.Step,
|
234
|
+
StepDescription: () => import_react86.StepDescription,
|
235
|
+
StepIcon: () => import_react86.StepIcon,
|
236
|
+
StepIndicator: () => import_react86.StepIndicator,
|
237
|
+
StepNumber: () => import_react86.StepNumber,
|
238
|
+
StepSeparator: () => import_react86.StepSeparator,
|
239
|
+
StepStatus: () => import_react86.StepStatus,
|
240
|
+
StepTitle: () => import_react86.StepTitle,
|
241
|
+
Stepper: () => import_react86.Stepper,
|
241
242
|
Switch: () => switch_default,
|
242
243
|
Tab: () => tab_default,
|
243
|
-
TabIndicator: () =>
|
244
|
-
TabIndicatorProps: () =>
|
245
|
-
TabList: () =>
|
246
|
-
TabListProps: () =>
|
247
|
-
TabPanel: () =>
|
248
|
-
TabPanelProps: () =>
|
249
|
-
TabPanels: () =>
|
250
|
-
TabPanelsProps: () =>
|
251
|
-
TabProps: () =>
|
252
|
-
TableBodyProps: () =>
|
253
|
-
TableCellProps: () =>
|
254
|
-
TableColumnHeaderProps: () =>
|
255
|
-
TableHeadProps: () =>
|
256
|
-
TableProps: () =>
|
257
|
-
TableRowProps: () =>
|
258
|
-
Tabs: () =>
|
259
|
-
TabsDescendantsProvider: () =>
|
260
|
-
TabsProps: () =>
|
261
|
-
TabsProvider: () =>
|
262
|
-
Tbody: () =>
|
263
|
-
Td: () =>
|
264
|
-
Text: () =>
|
265
|
-
TextProps: () =>
|
244
|
+
TabIndicator: () => import_react82.TabIndicator,
|
245
|
+
TabIndicatorProps: () => import_react82.TabIndicatorProps,
|
246
|
+
TabList: () => import_react82.TabList,
|
247
|
+
TabListProps: () => import_react82.TabListProps,
|
248
|
+
TabPanel: () => import_react82.TabPanel,
|
249
|
+
TabPanelProps: () => import_react82.TabPanelProps,
|
250
|
+
TabPanels: () => import_react82.TabPanels,
|
251
|
+
TabPanelsProps: () => import_react82.TabPanelsProps,
|
252
|
+
TabProps: () => import_react82.TabProps,
|
253
|
+
TableBodyProps: () => import_react80.TableBodyProps,
|
254
|
+
TableCellProps: () => import_react80.TableCellProps,
|
255
|
+
TableColumnHeaderProps: () => import_react80.TableColumnHeaderProps,
|
256
|
+
TableHeadProps: () => import_react80.TableHeadProps,
|
257
|
+
TableProps: () => import_react80.TableProps,
|
258
|
+
TableRowProps: () => import_react80.TableRowProps,
|
259
|
+
Tabs: () => import_react82.Tabs,
|
260
|
+
TabsDescendantsProvider: () => import_react82.TabsDescendantsProvider,
|
261
|
+
TabsProps: () => import_react82.TabsProps,
|
262
|
+
TabsProvider: () => import_react82.TabsProvider,
|
263
|
+
Tbody: () => import_react80.Tbody,
|
264
|
+
Td: () => import_react80.Td,
|
265
|
+
Text: () => import_react83.Text,
|
266
|
+
TextProps: () => import_react83.TextProps,
|
266
267
|
TextareaField: () => textarea_default,
|
267
|
-
Th: () =>
|
268
|
-
Thead: () =>
|
268
|
+
Th: () => import_react80.Th,
|
269
|
+
Thead: () => import_react80.Thead,
|
269
270
|
ThemeTypings: () => import_styled_system13.ThemeTypings,
|
270
|
-
Tooltip: () =>
|
271
|
-
TooltipProps: () =>
|
272
|
-
Tr: () =>
|
273
|
-
UnorderedList: () =>
|
271
|
+
Tooltip: () => import_react84.Tooltip,
|
272
|
+
TooltipProps: () => import_react84.TooltipProps,
|
273
|
+
Tr: () => import_react80.Tr,
|
274
|
+
UnorderedList: () => import_react49.UnorderedList,
|
274
275
|
Uploader: () => uploader_default,
|
275
|
-
UseAccordionItemProps: () =>
|
276
|
-
UseAccordionItemReturn: () =>
|
277
|
-
UseAccordionProps: () =>
|
278
|
-
UseAccordionReturn: () =>
|
279
|
-
UseBreakpointOptions: () =>
|
280
|
-
UseCheckboxGroupProps: () =>
|
281
|
-
UseCheckboxGroupReturn: () =>
|
282
|
-
UseCheckboxProps: () =>
|
283
|
-
UseCheckboxReturn: () =>
|
284
|
-
UseDisclosureProps: () =>
|
285
|
-
UseImageProps: () =>
|
286
|
-
UseImageReturn: () =>
|
287
|
-
UseMediaQueryOptions: () =>
|
288
|
-
UseModalProps: () =>
|
289
|
-
UseModalReturn: () =>
|
290
|
-
UseQueryProps: () =>
|
291
|
-
UseRadioGroupReturn: () =>
|
292
|
-
UseRadioProps: () =>
|
293
|
-
UseRadioReturn: () =>
|
294
|
-
UseTabListProps: () =>
|
295
|
-
UseTabListReturn: () =>
|
296
|
-
UseTabOptions: () =>
|
297
|
-
UseTabPanelsProps: () =>
|
298
|
-
UseTabProps: () =>
|
299
|
-
UseTabsProps: () =>
|
300
|
-
UseTabsReturn: () =>
|
301
|
-
VStack: () =>
|
302
|
-
VisuallyHidden: () =>
|
303
|
-
VisuallyHiddenInput: () =>
|
304
|
-
Wrap: () =>
|
305
|
-
WrapItem: () =>
|
306
|
-
WrapItemProps: () =>
|
307
|
-
WrapProps: () =>
|
308
|
-
extendTheme: () =>
|
309
|
-
forwardRef: () =>
|
276
|
+
UseAccordionItemProps: () => import_react3.UseAccordionItemProps,
|
277
|
+
UseAccordionItemReturn: () => import_react3.UseAccordionItemReturn,
|
278
|
+
UseAccordionProps: () => import_react3.UseAccordionProps,
|
279
|
+
UseAccordionReturn: () => import_react3.UseAccordionReturn,
|
280
|
+
UseBreakpointOptions: () => import_react86.UseBreakpointOptions,
|
281
|
+
UseCheckboxGroupProps: () => import_react16.UseCheckboxGroupProps,
|
282
|
+
UseCheckboxGroupReturn: () => import_react16.UseCheckboxGroupReturn,
|
283
|
+
UseCheckboxProps: () => import_react16.UseCheckboxProps,
|
284
|
+
UseCheckboxReturn: () => import_react16.UseCheckboxReturn,
|
285
|
+
UseDisclosureProps: () => import_react96.UseDisclosureProps,
|
286
|
+
UseImageProps: () => import_react86.UseImageProps,
|
287
|
+
UseImageReturn: () => import_react86.UseImageReturn,
|
288
|
+
UseMediaQueryOptions: () => import_react86.UseMediaQueryOptions,
|
289
|
+
UseModalProps: () => import_react59.UseModalProps,
|
290
|
+
UseModalReturn: () => import_react59.UseModalReturn,
|
291
|
+
UseQueryProps: () => import_react86.UseQueryProps,
|
292
|
+
UseRadioGroupReturn: () => import_react72.UseRadioGroupReturn,
|
293
|
+
UseRadioProps: () => import_react72.UseRadioProps,
|
294
|
+
UseRadioReturn: () => import_react72.UseRadioReturn,
|
295
|
+
UseTabListProps: () => import_react82.UseTabListProps,
|
296
|
+
UseTabListReturn: () => import_react82.UseTabListReturn,
|
297
|
+
UseTabOptions: () => import_react82.UseTabOptions,
|
298
|
+
UseTabPanelsProps: () => import_react82.UseTabPanelsProps,
|
299
|
+
UseTabProps: () => import_react82.UseTabProps,
|
300
|
+
UseTabsProps: () => import_react82.UseTabsProps,
|
301
|
+
UseTabsReturn: () => import_react82.UseTabsReturn,
|
302
|
+
VStack: () => import_react48.VStack,
|
303
|
+
VisuallyHidden: () => import_react86.VisuallyHidden,
|
304
|
+
VisuallyHiddenInput: () => import_react86.VisuallyHiddenInput,
|
305
|
+
Wrap: () => import_react48.Wrap,
|
306
|
+
WrapItem: () => import_react48.WrapItem,
|
307
|
+
WrapItemProps: () => import_react48.WrapItemProps,
|
308
|
+
WrapProps: () => import_react48.WrapProps,
|
309
|
+
extendTheme: () => import_react97.extendTheme,
|
310
|
+
forwardRef: () => import_react97.forwardRef,
|
310
311
|
getTheme: () => getTheme,
|
311
312
|
theme: () => theme5,
|
312
|
-
useAccordion: () =>
|
313
|
-
useAccordionContext: () =>
|
314
|
-
useAccordionItem: () =>
|
315
|
-
useAccordionItemState: () =>
|
316
|
-
useAccordionStyles: () =>
|
313
|
+
useAccordion: () => import_react3.useAccordion,
|
314
|
+
useAccordionContext: () => import_react3.useAccordionContext,
|
315
|
+
useAccordionItem: () => import_react3.useAccordionItem,
|
316
|
+
useAccordionItemState: () => import_react3.useAccordionItemState,
|
317
|
+
useAccordionStyles: () => import_react3.useAccordionStyles,
|
317
318
|
useAlertStyles: () => useAlertStyles,
|
318
|
-
useBoolean: () =>
|
319
|
-
useBreakpoint: () =>
|
320
|
-
useCheckbox: () =>
|
321
|
-
useCheckboxGroup: () =>
|
322
|
-
useClipboard: () =>
|
323
|
-
useColorMode: () =>
|
324
|
-
useColorModePreference: () =>
|
325
|
-
useColorModeValue: () =>
|
326
|
-
useConst: () =>
|
327
|
-
useControllableProp: () =>
|
328
|
-
useControllableState: () =>
|
319
|
+
useBoolean: () => import_react96.useBoolean,
|
320
|
+
useBreakpoint: () => import_react86.useBreakpoint,
|
321
|
+
useCheckbox: () => import_react16.useCheckbox,
|
322
|
+
useCheckboxGroup: () => import_react16.useCheckboxGroup,
|
323
|
+
useClipboard: () => import_react96.useClipboard,
|
324
|
+
useColorMode: () => import_react96.useColorMode,
|
325
|
+
useColorModePreference: () => import_react86.useColorModePreference,
|
326
|
+
useColorModeValue: () => import_react96.useColorModeValue,
|
327
|
+
useConst: () => import_react96.useConst,
|
328
|
+
useControllableProp: () => import_react96.useControllableProp,
|
329
|
+
useControllableState: () => import_react96.useControllableState,
|
329
330
|
useDataTable: () => useDataTable,
|
330
|
-
useDimensions: () =>
|
331
|
-
useDisclosure: () =>
|
332
|
-
useDrawerContext: () =>
|
331
|
+
useDimensions: () => import_react96.useDimensions,
|
332
|
+
useDisclosure: () => import_react96.useDisclosure,
|
333
|
+
useDrawerContext: () => import_react59.useDrawerContext,
|
333
334
|
useFetcher: () => useFetcher,
|
334
|
-
useImage: () =>
|
335
|
+
useImage: () => import_react86.useImage,
|
335
336
|
useInternalUI: () => useInternalUI,
|
336
|
-
useMergeRefs: () =>
|
337
|
-
useModal: () =>
|
338
|
-
useModalContext: () =>
|
339
|
-
useModalStyles: () =>
|
340
|
-
useOutsideClick: () =>
|
341
|
-
useQuery: () =>
|
342
|
-
useRadio: () =>
|
343
|
-
useRadioGroup: () =>
|
344
|
-
useRadioGroupContext: () =>
|
345
|
-
useSteps: () =>
|
346
|
-
useTab: () =>
|
347
|
-
useTabIndicator: () =>
|
348
|
-
useTabList: () =>
|
349
|
-
useTabPanel: () =>
|
350
|
-
useTabPanels: () =>
|
351
|
-
useTabs: () =>
|
352
|
-
useTabsContext: () =>
|
353
|
-
useTabsDescendant: () =>
|
354
|
-
useTabsDescendants: () =>
|
355
|
-
useTabsDescendantsContext: () =>
|
356
|
-
useTabsStyles: () =>
|
357
|
-
useTheme: () =>
|
358
|
-
useToken: () =>
|
337
|
+
useMergeRefs: () => import_react96.useMergeRefs,
|
338
|
+
useModal: () => import_react59.useModal,
|
339
|
+
useModalContext: () => import_react59.useModalContext,
|
340
|
+
useModalStyles: () => import_react59.useModalStyles,
|
341
|
+
useOutsideClick: () => import_react96.useOutsideClick,
|
342
|
+
useQuery: () => import_react86.useQuery,
|
343
|
+
useRadio: () => import_react72.useRadio,
|
344
|
+
useRadioGroup: () => import_react72.useRadioGroup,
|
345
|
+
useRadioGroupContext: () => import_react72.useRadioGroupContext,
|
346
|
+
useSteps: () => import_react86.useSteps,
|
347
|
+
useTab: () => import_react82.useTab,
|
348
|
+
useTabIndicator: () => import_react82.useTabIndicator,
|
349
|
+
useTabList: () => import_react82.useTabList,
|
350
|
+
useTabPanel: () => import_react82.useTabPanel,
|
351
|
+
useTabPanels: () => import_react82.useTabPanels,
|
352
|
+
useTabs: () => import_react82.useTabs,
|
353
|
+
useTabsContext: () => import_react82.useTabsContext,
|
354
|
+
useTabsDescendant: () => import_react82.useTabsDescendant,
|
355
|
+
useTabsDescendants: () => import_react82.useTabsDescendants,
|
356
|
+
useTabsDescendantsContext: () => import_react82.useTabsDescendantsContext,
|
357
|
+
useTabsStyles: () => import_react82.useTabsStyles,
|
358
|
+
useTheme: () => import_react96.useTheme,
|
359
|
+
useToken: () => import_react96.useToken
|
359
360
|
});
|
360
361
|
module.exports = __toCommonJS(src_exports);
|
361
362
|
|
362
|
-
// src/components/accordion/components/accordion-
|
363
|
+
// src/components/accordion/components/accordion-eye.tsx
|
363
364
|
var import_react = require("@chakra-ui/react");
|
365
|
+
var import_internal_icon = require("@ctlyst.id/internal-icon");
|
364
366
|
var import_jsx_runtime = require("react/jsx-runtime");
|
367
|
+
var AccordionEye = ({ position = "left" }) => {
|
368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
369
|
+
import_react.Box,
|
370
|
+
{
|
371
|
+
className: "eye-icon",
|
372
|
+
backgroundColor: "white",
|
373
|
+
...position === "right" ? { position: "absolute", right: 4, zIndex: 2 } : {},
|
374
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_internal_icon.Eye, { size: 4 })
|
375
|
+
}
|
376
|
+
);
|
377
|
+
};
|
378
|
+
|
379
|
+
// src/components/accordion/components/accordion-indicator.tsx
|
380
|
+
var import_react2 = require("@chakra-ui/react");
|
381
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
365
382
|
var AccordionIndicator = () => {
|
366
|
-
const { isOpen } = (0,
|
383
|
+
const { isOpen } = (0, import_react2.useAccordionItemState)();
|
367
384
|
if (isOpen) {
|
368
|
-
return /* @__PURE__ */ (0,
|
385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react2.Box, { position: "absolute", left: 0, width: "2px", height: "100%", bg: "primary.500" });
|
369
386
|
}
|
370
387
|
return null;
|
371
388
|
};
|
372
389
|
|
373
390
|
// src/components/accordion/components/index.ts
|
374
|
-
var
|
391
|
+
var import_react3 = require("@chakra-ui/react");
|
375
392
|
|
376
393
|
// src/components/alert/components/alert.tsx
|
377
394
|
var import_shared_utils = require("@chakra-ui/shared-utils");
|
@@ -381,16 +398,16 @@ var import_system = require("@chakra-ui/system");
|
|
381
398
|
var import_react_context = require("@chakra-ui/react-context");
|
382
399
|
|
383
400
|
// src/components/alert/components/icons.tsx
|
384
|
-
var
|
385
|
-
var
|
401
|
+
var import_internal_icon2 = require("@ctlyst.id/internal-icon");
|
402
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
386
403
|
function CheckIcon() {
|
387
|
-
return /* @__PURE__ */ (0,
|
404
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_internal_icon2.CheckCircle, { color: "inherit", size: 4 });
|
388
405
|
}
|
389
406
|
function InfoIcon() {
|
390
|
-
return /* @__PURE__ */ (0,
|
407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_internal_icon2.Info, { color: "inherit", size: 4 });
|
391
408
|
}
|
392
409
|
function WarningIcon() {
|
393
|
-
return /* @__PURE__ */ (0,
|
410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_internal_icon2.AlertTriangle, { color: "inherit", size: 4 });
|
394
411
|
}
|
395
412
|
|
396
413
|
// src/components/alert/components/alert-context.ts
|
@@ -419,7 +436,7 @@ function getStatusIcon(status) {
|
|
419
436
|
}
|
420
437
|
|
421
438
|
// src/components/alert/components/alert.tsx
|
422
|
-
var
|
439
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
423
440
|
var Alert = (0, import_system.forwardRef)(function Alert2(props, ref) {
|
424
441
|
var _a;
|
425
442
|
const { status = "info", addRole = true, children, ...rest } = (0, import_system.omitThemingProps)(props);
|
@@ -434,7 +451,7 @@ var Alert = (0, import_system.forwardRef)(function Alert2(props, ref) {
|
|
434
451
|
overflow: "hidden",
|
435
452
|
...styles.container
|
436
453
|
};
|
437
|
-
return /* @__PURE__ */ (0,
|
454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AlertProvider, { value: { status }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AlertStylesProvider, { value: styles, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
438
455
|
import_system.chakra.div,
|
439
456
|
{
|
440
457
|
"data-status": status,
|
@@ -453,14 +470,14 @@ Alert.displayName = "Alert";
|
|
453
470
|
var import_shared_utils2 = require("@chakra-ui/shared-utils");
|
454
471
|
|
455
472
|
// src/components/button/components/button.tsx
|
456
|
-
var
|
473
|
+
var import_react6 = require("@chakra-ui/react");
|
457
474
|
|
458
475
|
// src/components/loader/components/loader.tsx
|
459
|
-
var
|
460
|
-
var
|
461
|
-
var Loader = (0,
|
462
|
-
const styles = (0,
|
463
|
-
return /* @__PURE__ */ (0,
|
476
|
+
var import_react4 = require("@chakra-ui/react");
|
477
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
478
|
+
var Loader = (0, import_react4.forwardRef)((props, ref) => {
|
479
|
+
const styles = (0, import_react4.useStyleConfig)("LoaderStyle", props);
|
480
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react4.Box, { ref, __css: styles });
|
464
481
|
});
|
465
482
|
Loader.defaultProps = {
|
466
483
|
size: "md"
|
@@ -468,11 +485,11 @@ Loader.defaultProps = {
|
|
468
485
|
var loader_default = Loader;
|
469
486
|
|
470
487
|
// src/components/loader/index.ts
|
471
|
-
var
|
488
|
+
var import_react5 = require("@chakra-ui/react");
|
472
489
|
|
473
490
|
// src/components/button/components/button.tsx
|
474
|
-
var
|
475
|
-
var Button = (0,
|
491
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
492
|
+
var Button = (0, import_react6.forwardRef)((props, ref) => {
|
476
493
|
const { children, variant, size: size2, ...rest } = props;
|
477
494
|
const getLoaderSize = () => {
|
478
495
|
if (size2 === "lg") return "md";
|
@@ -484,12 +501,12 @@ var Button = (0, import_react5.forwardRef)((props, ref) => {
|
|
484
501
|
if (variant === "outline-danger") return "danger";
|
485
502
|
return "primary";
|
486
503
|
};
|
487
|
-
return /* @__PURE__ */ (0,
|
488
|
-
|
504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
505
|
+
import_react6.Button,
|
489
506
|
{
|
490
507
|
size: size2,
|
491
508
|
variant,
|
492
|
-
spinner: /* @__PURE__ */ (0,
|
509
|
+
spinner: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(loader_default, { size: getLoaderSize(), color: getLoaderColor2() }),
|
493
510
|
ref,
|
494
511
|
...rest,
|
495
512
|
children
|
@@ -499,11 +516,11 @@ var Button = (0, import_react5.forwardRef)((props, ref) => {
|
|
499
516
|
var button_default = Button;
|
500
517
|
|
501
518
|
// src/components/alert/components/alert-action.tsx
|
502
|
-
var
|
519
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
503
520
|
function AlertAction({ children, className }) {
|
504
521
|
const styles = useAlertStyles();
|
505
522
|
const css4 = styles.action;
|
506
|
-
return /* @__PURE__ */ (0,
|
523
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
507
524
|
button_default,
|
508
525
|
{
|
509
526
|
"data-test-id": "alert-action",
|
@@ -520,12 +537,12 @@ AlertAction.displayName = "AlertAction";
|
|
520
537
|
// src/components/alert/components/alert-close.tsx
|
521
538
|
var import_shared_utils3 = require("@chakra-ui/shared-utils");
|
522
539
|
var import_system2 = require("@chakra-ui/system");
|
523
|
-
var
|
524
|
-
var
|
540
|
+
var import_internal_icon3 = require("@ctlyst.id/internal-icon");
|
541
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
525
542
|
function AlertClose({ className, children, ...rest }) {
|
526
543
|
const styles = useAlertStyles();
|
527
544
|
const css4 = styles.close;
|
528
|
-
return /* @__PURE__ */ (0,
|
545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
529
546
|
import_system2.chakra.span,
|
530
547
|
{
|
531
548
|
display: "inherit",
|
@@ -533,7 +550,7 @@ function AlertClose({ className, children, ...rest }) {
|
|
533
550
|
...rest,
|
534
551
|
className: (0, import_shared_utils3.cx)("chakra-alert__close", className),
|
535
552
|
__css: css4,
|
536
|
-
children: children || /* @__PURE__ */ (0,
|
553
|
+
children: children || /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_internal_icon3.Close, { color: "inherit", size: 4 })
|
537
554
|
}
|
538
555
|
);
|
539
556
|
}
|
@@ -542,7 +559,7 @@ AlertClose.displayName = "AlertClose";
|
|
542
559
|
// src/components/alert/components/alert-description.tsx
|
543
560
|
var import_shared_utils4 = require("@chakra-ui/shared-utils");
|
544
561
|
var import_system3 = require("@chakra-ui/system");
|
545
|
-
var
|
562
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
546
563
|
var AlertDescription = (0, import_system3.forwardRef)(function AlertDescription2(props, ref) {
|
547
564
|
const styles = useAlertStyles();
|
548
565
|
const { status } = useAlertContext();
|
@@ -550,7 +567,7 @@ var AlertDescription = (0, import_system3.forwardRef)(function AlertDescription2
|
|
550
567
|
display: "inline",
|
551
568
|
...styles.description
|
552
569
|
};
|
553
|
-
return /* @__PURE__ */ (0,
|
570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
554
571
|
import_system3.chakra.div,
|
555
572
|
{
|
556
573
|
ref,
|
@@ -566,13 +583,13 @@ AlertDescription.displayName = "AlertDescription";
|
|
566
583
|
// src/components/alert/components/alert-icon.tsx
|
567
584
|
var import_shared_utils5 = require("@chakra-ui/shared-utils");
|
568
585
|
var import_system4 = require("@chakra-ui/system");
|
569
|
-
var
|
586
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
570
587
|
function AlertIcon({ className, children, ...rest }) {
|
571
588
|
const { status } = useAlertContext();
|
572
589
|
const BaseIcon = getStatusIcon(status);
|
573
590
|
const styles = useAlertStyles();
|
574
591
|
const css4 = styles.icon;
|
575
|
-
return /* @__PURE__ */ (0,
|
592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
576
593
|
import_system4.chakra.span,
|
577
594
|
{
|
578
595
|
display: "inherit",
|
@@ -580,7 +597,7 @@ function AlertIcon({ className, children, ...rest }) {
|
|
580
597
|
...rest,
|
581
598
|
className: (0, import_shared_utils5.cx)("chakra-alert__icon", className),
|
582
599
|
__css: css4,
|
583
|
-
children: children || /* @__PURE__ */ (0,
|
600
|
+
children: children || /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(BaseIcon, {})
|
584
601
|
}
|
585
602
|
);
|
586
603
|
}
|
@@ -589,11 +606,11 @@ AlertIcon.displayName = "AlertIcon";
|
|
589
606
|
// src/components/alert/components/alert-title.tsx
|
590
607
|
var import_shared_utils6 = require("@chakra-ui/shared-utils");
|
591
608
|
var import_system5 = require("@chakra-ui/system");
|
592
|
-
var
|
609
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
593
610
|
var AlertTitle = (0, import_system5.forwardRef)(function AlertTitle2(props, ref) {
|
594
611
|
const styles = useAlertStyles();
|
595
612
|
const { status } = useAlertContext();
|
596
|
-
return /* @__PURE__ */ (0,
|
613
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
597
614
|
import_system5.chakra.div,
|
598
615
|
{
|
599
616
|
ref,
|
@@ -607,12 +624,12 @@ var AlertTitle = (0, import_system5.forwardRef)(function AlertTitle2(props, ref)
|
|
607
624
|
AlertTitle.displayName = "AlertTitle";
|
608
625
|
|
609
626
|
// src/components/anchor/components/anchor.tsx
|
610
|
-
var
|
627
|
+
var import_react7 = require("@chakra-ui/react");
|
611
628
|
var import_shared_utils7 = require("@chakra-ui/shared-utils");
|
612
|
-
var
|
629
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
613
630
|
var Anchor = ({ children, leftIcon, rightIcon, isActive, isChild, ...props }) => {
|
614
|
-
return /* @__PURE__ */ (0,
|
615
|
-
|
631
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
632
|
+
import_react7.Link,
|
616
633
|
{
|
617
634
|
display: "inline-block",
|
618
635
|
w: "full",
|
@@ -644,12 +661,12 @@ Anchor.defaultProps = {
|
|
644
661
|
};
|
645
662
|
|
646
663
|
// src/components/badge/components/badge.tsx
|
647
|
-
var
|
648
|
-
var
|
664
|
+
var import_react8 = require("@chakra-ui/react");
|
665
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
649
666
|
var Badge = (props) => {
|
650
667
|
const { children, pill, ...rest } = props;
|
651
|
-
return /* @__PURE__ */ (0,
|
652
|
-
|
668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
669
|
+
import_react8.Badge,
|
653
670
|
{
|
654
671
|
borderRadius: pill ? "xl" : "sm",
|
655
672
|
display: "inline-flex",
|
@@ -667,19 +684,19 @@ Badge.defaultProps = {
|
|
667
684
|
var badge_default = Badge;
|
668
685
|
|
669
686
|
// src/components/breadcrumb/components/bread-crumb.tsx
|
670
|
-
var
|
687
|
+
var import_react10 = require("@chakra-ui/react");
|
671
688
|
var import_fi = require("react-icons/fi");
|
672
689
|
|
673
690
|
// src/components/button/index.ts
|
674
|
-
var
|
691
|
+
var import_react9 = require("@chakra-ui/react");
|
675
692
|
|
676
693
|
// src/components/breadcrumb/components/bread-crumb.tsx
|
677
|
-
var
|
694
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
678
695
|
var BreadCrumb = (props) => {
|
679
696
|
const { title, children, parents, className, disableHome, spacing: spacing2 = 2, backButton } = props;
|
680
|
-
const [neutral600, primary500] = (0,
|
681
|
-
return /* @__PURE__ */ (0,
|
682
|
-
|
697
|
+
const [neutral600, primary500] = (0, import_react10.useToken)("colors", ["neutral.600", "primary.500"]);
|
698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
699
|
+
import_react10.Box,
|
683
700
|
{
|
684
701
|
"data-test-id": "CT_component_breadcrumb_breadcrumb",
|
685
702
|
className,
|
@@ -688,14 +705,14 @@ var BreadCrumb = (props) => {
|
|
688
705
|
alignItems: "center",
|
689
706
|
paddingY: 2,
|
690
707
|
children: [
|
691
|
-
/* @__PURE__ */ (0,
|
692
|
-
backButton && /* @__PURE__ */ (0,
|
693
|
-
/* @__PURE__ */ (0,
|
694
|
-
/* @__PURE__ */ (0,
|
695
|
-
/* @__PURE__ */ (0,
|
696
|
-
|
708
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react10.Box, { display: "flex", alignItems: "center", children: [
|
709
|
+
backButton && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(button_default, { variant: "icon", "data-test-id": "button", size: "md", mr: "2", onClick: backButton, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_fi.FiChevronLeft, { size: import_react10.theme.sizes[5] }) }),
|
710
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.Text, { pr: "2", textStyle: "heading.6", color: "neutral.700", children: title }),
|
711
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.Box, { h: "5.5", borderLeft: "1px solid", borderColor: neutral600 }),
|
712
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
713
|
+
import_react10.Breadcrumb,
|
697
714
|
{
|
698
|
-
separator: /* @__PURE__ */ (0,
|
715
|
+
separator: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_fi.FiChevronsRight, { color: neutral600, size: import_react10.theme.sizes["3.5"] }),
|
699
716
|
pl: "2",
|
700
717
|
pr: "4",
|
701
718
|
spacing: spacing2,
|
@@ -704,9 +721,9 @@ var BreadCrumb = (props) => {
|
|
704
721
|
alignItems: "center",
|
705
722
|
className: "breadcrumb-wrapper",
|
706
723
|
children: [
|
707
|
-
/* @__PURE__ */ (0,
|
708
|
-
parents == null ? void 0 : parents.map((val) => /* @__PURE__ */ (0,
|
709
|
-
|
724
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.BreadcrumbItem, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.BreadcrumbLink, { href: !disableHome ? "/" : void 0, style: { ...disableHome && { cursor: "default" } }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_fi.FiHome, { className: "align-top", size: import_react10.theme.sizes["3.5"], color: primary500 }) }) }),
|
725
|
+
parents == null ? void 0 : parents.map((val) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.BreadcrumbItem, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
726
|
+
import_react10.BreadcrumbLink,
|
710
727
|
{
|
711
728
|
"data-test-id": "iadKcMAul3QAdvmfIQjRE",
|
712
729
|
href: !val.disable ? val.link : void 0,
|
@@ -717,15 +734,15 @@ var BreadCrumb = (props) => {
|
|
717
734
|
}
|
718
735
|
},
|
719
736
|
_hover: { textDecoration: "none" },
|
720
|
-
children: /* @__PURE__ */ (0,
|
737
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.Text, { color: val.disable ? neutral600 : primary500, textStyle: "text.sm", children: val.name })
|
721
738
|
}
|
722
739
|
) }, val.name)),
|
723
|
-
/* @__PURE__ */ (0,
|
740
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.BreadcrumbItem, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.BreadcrumbLink, { _hover: { textDecor: "none", cursor: "default" }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.Text, { color: "neutral.600", textStyle: "text.sm", children: title }) }) })
|
724
741
|
]
|
725
742
|
}
|
726
743
|
)
|
727
744
|
] }),
|
728
|
-
children && /* @__PURE__ */ (0,
|
745
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.Box, { children })
|
729
746
|
]
|
730
747
|
}
|
731
748
|
);
|
@@ -741,12 +758,12 @@ BreadCrumb.defaultProps = {
|
|
741
758
|
var bread_crumb_default = BreadCrumb;
|
742
759
|
|
743
760
|
// src/components/card/components/card.tsx
|
744
|
-
var
|
745
|
-
var
|
746
|
-
var
|
747
|
-
var CardCustom = (0,
|
748
|
-
const styles = (0,
|
749
|
-
return /* @__PURE__ */ (0,
|
761
|
+
var import_react11 = require("@chakra-ui/react");
|
762
|
+
var import_react12 = require("react");
|
763
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
764
|
+
var CardCustom = (0, import_react12.forwardRef)(({ children, ...rest }, ref) => {
|
765
|
+
const styles = (0, import_react11.useStyleConfig)("Card", rest);
|
766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react11.Card, { __css: styles, backgroundColor: "white.high", ref, ...rest, children });
|
750
767
|
});
|
751
768
|
CardCustom.defaultProps = {
|
752
769
|
withShadow: true,
|
@@ -755,14 +772,14 @@ CardCustom.defaultProps = {
|
|
755
772
|
var card_default = CardCustom;
|
756
773
|
|
757
774
|
// src/components/checkbox/components/checkbox.tsx
|
758
|
-
var
|
759
|
-
var
|
760
|
-
var CheckboxComponent = (0,
|
775
|
+
var import_react13 = require("@chakra-ui/react");
|
776
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
777
|
+
var CheckboxComponent = (0, import_react13.forwardRef)(
|
761
778
|
({ isError = false, helpText = "", errorText = "", boxProps, children, isDisabled, ...rest }, ref) => {
|
762
779
|
const variant = isError ? "errors" : "unstyled";
|
763
|
-
return /* @__PURE__ */ (0,
|
764
|
-
/* @__PURE__ */ (0,
|
765
|
-
(isError || helpText) && /* @__PURE__ */ (0,
|
780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react13.Box, { ...boxProps, children: [
|
781
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.Checkbox, { variant, ref, ...rest, isDisabled, children: children && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.Text, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
782
|
+
(isError || helpText) && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.Box, { mt: "5px", ml: "24px", children: isError ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.Text, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.Text, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) })
|
766
783
|
] });
|
767
784
|
}
|
768
785
|
);
|
@@ -775,11 +792,11 @@ CheckboxComponent.defaultProps = {
|
|
775
792
|
var checkbox_default = CheckboxComponent;
|
776
793
|
|
777
794
|
// src/components/checkbox/components/checkbox-group.tsx
|
778
|
-
var
|
795
|
+
var import_react15 = require("@chakra-ui/react");
|
779
796
|
|
780
797
|
// src/components/field/components/field.tsx
|
781
|
-
var
|
782
|
-
var
|
798
|
+
var import_react14 = require("@chakra-ui/react");
|
799
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
783
800
|
var Field = (props) => {
|
784
801
|
const {
|
785
802
|
label,
|
@@ -803,15 +820,15 @@ var Field = (props) => {
|
|
803
820
|
};
|
804
821
|
const helperColor = getHelperColor();
|
805
822
|
const justifyHelper = getJustifyContentHelper();
|
806
|
-
return /* @__PURE__ */ (0,
|
807
|
-
label && (typeof label === "string" ? /* @__PURE__ */ (0,
|
808
|
-
isRequired && /* @__PURE__ */ (0,
|
823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_react14.FormControl, { isInvalid: isError, ...boxProps, children: [
|
824
|
+
label && (typeof label === "string" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_react14.FormLabel, { mb: 1, fontSize: "text.sm", requiredIndicator: void 0, children: [
|
825
|
+
isRequired && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react14.Box, { as: "span", color: "danger.500", ml: 0, mr: 1, children: "*" }),
|
809
826
|
label
|
810
827
|
] }) : label),
|
811
828
|
children,
|
812
|
-
(isError && errorMessage || leftHelperText || rightHelperText) && /* @__PURE__ */ (0,
|
813
|
-
!isError ? leftHelperText && (typeof leftHelperText === "string" ? /* @__PURE__ */ (0,
|
814
|
-
rightHelperText && (typeof rightHelperText === "string" ? /* @__PURE__ */ (0,
|
829
|
+
(isError && errorMessage || leftHelperText || rightHelperText) && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_react14.Box, { display: "flex", width: "full", justifyContent: justifyHelper, children: [
|
830
|
+
!isError ? leftHelperText && (typeof leftHelperText === "string" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react14.FormHelperText, { fontSize: "text.xs", color: helperColor, mt: 1, children: leftHelperText }) : leftHelperText) : typeof errorMessage === "string" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react14.FormErrorMessage, { fontSize: "text.xs", color: "danger.500", mt: 1, children: errorMessage }) : errorMessage,
|
831
|
+
rightHelperText && (typeof rightHelperText === "string" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react14.FormHelperText, { fontSize: "text.xs", color: helperColor, mt: 1, children: rightHelperText }) : rightHelperText)
|
815
832
|
] })
|
816
833
|
] });
|
817
834
|
};
|
@@ -828,10 +845,10 @@ Field.defaultProps = {
|
|
828
845
|
var field_default = Field;
|
829
846
|
|
830
847
|
// src/components/checkbox/components/checkbox-group.tsx
|
831
|
-
var
|
848
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
832
849
|
function CheckboxGroupComponent(props) {
|
833
850
|
const { children, label, helpText, isError, errorMessage, ...rest } = props;
|
834
|
-
return /* @__PURE__ */ (0,
|
851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(field_default, { ...rest, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react15.Box, { mt: "12px", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react15.CheckboxGroup, { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react15.Stack, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
|
835
852
|
}
|
836
853
|
CheckboxGroupComponent.defaultProps = {
|
837
854
|
helpText: "",
|
@@ -841,25 +858,25 @@ CheckboxGroupComponent.defaultProps = {
|
|
841
858
|
var checkbox_group_default = CheckboxGroupComponent;
|
842
859
|
|
843
860
|
// src/components/checkbox/index.ts
|
844
|
-
var
|
861
|
+
var import_react16 = require("@chakra-ui/react");
|
845
862
|
|
846
863
|
// src/components/chips/components/chips.tsx
|
847
|
-
var
|
848
|
-
var
|
849
|
-
var
|
850
|
-
var
|
864
|
+
var import_react17 = require("@chakra-ui/react");
|
865
|
+
var import_internal_icon4 = require("@ctlyst.id/internal-icon");
|
866
|
+
var import_react18 = require("react");
|
867
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
851
868
|
var Chips = ({ children, ...rest }) => {
|
852
869
|
const { isActive, isDisabled, onClose } = rest;
|
853
|
-
const styles = (0,
|
854
|
-
const closeColor = (0,
|
870
|
+
const styles = (0, import_react17.useStyleConfig)("Chips", rest);
|
871
|
+
const closeColor = (0, import_react18.useMemo)(() => {
|
855
872
|
if (isActive) return "white.high";
|
856
873
|
if (isDisabled) return "black.low";
|
857
874
|
return "primary.500";
|
858
875
|
}, [isActive, isDisabled]);
|
859
|
-
return /* @__PURE__ */ (0,
|
876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_react17.Box, { __css: styles, display: "inline-flex", alignItems: "center", justifyContent: "center", ...rest, children: [
|
860
877
|
children,
|
861
|
-
onClose && /* @__PURE__ */ (0,
|
862
|
-
|
878
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
879
|
+
import_react17.Box,
|
863
880
|
{
|
864
881
|
onClick: isDisabled ? void 0 : onClose,
|
865
882
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
@@ -867,7 +884,7 @@ var Chips = ({ children, ...rest }) => {
|
|
867
884
|
display: "flex",
|
868
885
|
alignItems: "center",
|
869
886
|
justifyContent: "center",
|
870
|
-
children: /* @__PURE__ */ (0,
|
887
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_internal_icon4.Close, { color: closeColor, size: 4 })
|
871
888
|
}
|
872
889
|
)
|
873
890
|
] });
|
@@ -882,30 +899,30 @@ Chips.defaultProps = {
|
|
882
899
|
var chips_default = Chips;
|
883
900
|
|
884
901
|
// src/components/counter/components/counter.tsx
|
885
|
-
var
|
902
|
+
var import_react28 = require("@chakra-ui/react");
|
886
903
|
var import_fi2 = require("react-icons/fi");
|
887
904
|
|
888
905
|
// src/components/form/components/input-addon.tsx
|
889
|
-
var
|
890
|
-
var
|
906
|
+
var import_react19 = require("@chakra-ui/react");
|
907
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
891
908
|
var InputAddonLeft = ({ children }) => {
|
892
|
-
return /* @__PURE__ */ (0,
|
909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react19.InputLeftAddon, { backgroundColor: "neutral.200", px: 3, py: 2.5, style: { border: 0, marginInlineEnd: 0 }, children });
|
893
910
|
};
|
894
911
|
var InputAddonRight = ({ children }) => {
|
895
|
-
return /* @__PURE__ */ (0,
|
912
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react19.InputRightAddon, { backgroundColor: "neutral.200", px: 3, py: 2.5, style: { border: 0, marginInlineStart: 0 }, children });
|
896
913
|
};
|
897
914
|
|
898
915
|
// src/components/form/components/input-element.tsx
|
899
|
-
var import_react19 = require("@chakra-ui/react");
|
900
916
|
var import_react20 = require("@chakra-ui/react");
|
917
|
+
var import_react21 = require("@chakra-ui/react");
|
901
918
|
|
902
919
|
// src/components/form/components/input-field.tsx
|
903
|
-
var
|
904
|
-
var
|
905
|
-
var
|
920
|
+
var import_react23 = require("@chakra-ui/react");
|
921
|
+
var import_internal_icon5 = require("@ctlyst.id/internal-icon");
|
922
|
+
var import_react24 = __toESM(require("react"));
|
906
923
|
|
907
924
|
// src/components/form/styles/input-field.ts
|
908
|
-
var
|
925
|
+
var import_react22 = require("@chakra-ui/react");
|
909
926
|
var getProperties = (props) => {
|
910
927
|
const { isError, isDisabled, isSuccess } = props;
|
911
928
|
let outlineColor = "neutral.400";
|
@@ -932,13 +949,13 @@ var getWrapperStyle = (props) => {
|
|
932
949
|
borderColor: focusColor
|
933
950
|
}
|
934
951
|
};
|
935
|
-
return (0,
|
952
|
+
return (0, import_react22.defineStyle)(style);
|
936
953
|
};
|
937
954
|
var input_field_default = getWrapperStyle;
|
938
955
|
|
939
956
|
// src/components/form/components/input-field.tsx
|
940
|
-
var
|
941
|
-
var InputField =
|
957
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
958
|
+
var InputField = import_react24.default.forwardRef((props, ref) => {
|
942
959
|
const {
|
943
960
|
value,
|
944
961
|
type,
|
@@ -959,20 +976,20 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
959
976
|
...inputProps
|
960
977
|
} = props;
|
961
978
|
const wrapperStyle = input_field_default(props);
|
962
|
-
const [isShowPassword, setIsShowPassword] = (0,
|
963
|
-
const inputType = (0,
|
979
|
+
const [isShowPassword, setIsShowPassword] = (0, import_react24.useState)(false);
|
980
|
+
const inputType = (0, import_react24.useMemo)(() => {
|
964
981
|
return type === "password" && isShowPassword ? "text" : type;
|
965
982
|
}, [isShowPassword, type]);
|
966
|
-
const fontSize = (0,
|
983
|
+
const fontSize = (0, import_react24.useMemo)(() => {
|
967
984
|
if (type === "password") {
|
968
985
|
if (!isShowPassword && value) return "text.xl";
|
969
986
|
}
|
970
987
|
return "text.sm";
|
971
988
|
}, [isShowPassword, type, value]);
|
972
|
-
const iconColor = (0,
|
989
|
+
const iconColor = (0, import_react24.useMemo)(() => {
|
973
990
|
return isDisabled ? "black.low" : "black.medium";
|
974
991
|
}, [isDisabled]);
|
975
|
-
return /* @__PURE__ */ (0,
|
992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
976
993
|
field_default,
|
977
994
|
{
|
978
995
|
label,
|
@@ -982,8 +999,8 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
982
999
|
leftHelperText,
|
983
1000
|
rightHelperText,
|
984
1001
|
isRequired,
|
985
|
-
children: /* @__PURE__ */ (0,
|
986
|
-
|
1002
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react23.Box, { __css: wrapperStyle, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
1003
|
+
import_react23.InputGroup,
|
987
1004
|
{
|
988
1005
|
size: size2,
|
989
1006
|
borderRadius: "sm",
|
@@ -991,8 +1008,8 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
991
1008
|
cursor: isDisabled ? "not-allowed" : "default",
|
992
1009
|
children: [
|
993
1010
|
addOnLeft,
|
994
|
-
/* @__PURE__ */ (0,
|
995
|
-
|
1011
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1012
|
+
import_react23.Input,
|
996
1013
|
{
|
997
1014
|
ref,
|
998
1015
|
type: inputType,
|
@@ -1003,8 +1020,8 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
1003
1020
|
fontSize
|
1004
1021
|
}
|
1005
1022
|
),
|
1006
|
-
(withClear || isLoading || type === "password") && /* @__PURE__ */ (0,
|
1007
|
-
|
1023
|
+
(withClear || isLoading || type === "password") && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
1024
|
+
import_react23.Box,
|
1008
1025
|
{
|
1009
1026
|
"data-test-id": "CT_Component_ClearInput",
|
1010
1027
|
display: "flex",
|
@@ -1013,18 +1030,18 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
1013
1030
|
width: "16px",
|
1014
1031
|
mr: "10px",
|
1015
1032
|
children: [
|
1016
|
-
withClear && !isLoading && /* @__PURE__ */ (0,
|
1017
|
-
|
1033
|
+
withClear && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1034
|
+
import_react23.Box,
|
1018
1035
|
{
|
1019
1036
|
display: "flex",
|
1020
1037
|
justifyContent: "center",
|
1021
1038
|
onClick: !isDisabled ? onClear : void 0,
|
1022
1039
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
1023
|
-
children: /* @__PURE__ */ (0,
|
1040
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_internal_icon5.Close, { size: 4, color: iconColor })
|
1024
1041
|
}
|
1025
1042
|
),
|
1026
|
-
type === "password" && !isShowPassword && !isLoading && /* @__PURE__ */ (0,
|
1027
|
-
|
1043
|
+
type === "password" && !isShowPassword && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1044
|
+
import_react23.Box,
|
1028
1045
|
{
|
1029
1046
|
"data-test-id": "q2Bj2G4FlamXyHuRKMZ1Q",
|
1030
1047
|
onClick: () => {
|
@@ -1033,11 +1050,11 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
1033
1050
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
1034
1051
|
display: "flex",
|
1035
1052
|
justifyContent: "center",
|
1036
|
-
children: /* @__PURE__ */ (0,
|
1053
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_internal_icon5.EyeOff, { size: 4, color: iconColor })
|
1037
1054
|
}
|
1038
1055
|
),
|
1039
|
-
type === "password" && isShowPassword && !isLoading && /* @__PURE__ */ (0,
|
1040
|
-
|
1056
|
+
type === "password" && isShowPassword && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1057
|
+
import_react23.Box,
|
1041
1058
|
{
|
1042
1059
|
"data-test-id": "sfc2388bmeXBmdla45Ibk",
|
1043
1060
|
onClick: () => {
|
@@ -1046,10 +1063,10 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
1046
1063
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
1047
1064
|
display: "flex",
|
1048
1065
|
justifyContent: "center",
|
1049
|
-
children: /* @__PURE__ */ (0,
|
1066
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_internal_icon5.Eye, { size: 4, color: iconColor })
|
1050
1067
|
}
|
1051
1068
|
),
|
1052
|
-
isLoading && /* @__PURE__ */ (0,
|
1069
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(loader_default, { size: "sm" })
|
1053
1070
|
]
|
1054
1071
|
}
|
1055
1072
|
),
|
@@ -1070,14 +1087,14 @@ InputField.defaultProps = {
|
|
1070
1087
|
var input_field_default2 = InputField;
|
1071
1088
|
|
1072
1089
|
// src/components/form/components/textarea.tsx
|
1073
|
-
var
|
1074
|
-
var
|
1075
|
-
var
|
1076
|
-
var TextareaField =
|
1090
|
+
var import_react25 = require("@chakra-ui/react");
|
1091
|
+
var import_react26 = __toESM(require("react"));
|
1092
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
1093
|
+
var TextareaField = import_react26.default.forwardRef((props, ref) => {
|
1077
1094
|
const { value, isLoading, ...inputProps } = props;
|
1078
|
-
return /* @__PURE__ */ (0,
|
1079
|
-
/* @__PURE__ */ (0,
|
1080
|
-
isLoading && /* @__PURE__ */ (0,
|
1095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(field_default, { ...inputProps, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_react25.Box, { position: "relative", children: [
|
1096
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react25.Textarea, { ref, value, ...inputProps }),
|
1097
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react25.Box, { zIndex: 999, top: 2, right: 2, position: "absolute", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(loader_default, { size: "sm" }) })
|
1081
1098
|
] }) });
|
1082
1099
|
});
|
1083
1100
|
TextareaField.defaultProps = {
|
@@ -1086,10 +1103,10 @@ TextareaField.defaultProps = {
|
|
1086
1103
|
var textarea_default = TextareaField;
|
1087
1104
|
|
1088
1105
|
// src/components/form/index.ts
|
1089
|
-
var
|
1106
|
+
var import_react27 = require("@chakra-ui/react");
|
1090
1107
|
|
1091
1108
|
// src/components/counter/components/counter.tsx
|
1092
|
-
var
|
1109
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
1093
1110
|
var Counter = ({
|
1094
1111
|
value,
|
1095
1112
|
size: size2 = "xs",
|
@@ -1117,20 +1134,20 @@ var Counter = ({
|
|
1117
1134
|
const handleChange = (e) => {
|
1118
1135
|
onChange(+e.target.value);
|
1119
1136
|
};
|
1120
|
-
return /* @__PURE__ */ (0,
|
1121
|
-
/* @__PURE__ */ (0,
|
1122
|
-
/* @__PURE__ */ (0,
|
1123
|
-
|
1137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react28.Box, { children: [
|
1138
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react28.HStack, { gap: "1", children: [
|
1139
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
1140
|
+
import_react28.IconButton,
|
1124
1141
|
{
|
1125
1142
|
"aria-label": "minus",
|
1126
1143
|
"data-test-id": "CT_Component_Counter_decrement",
|
1127
1144
|
onClick: decrement,
|
1128
1145
|
isDisabled: disabled || +value <= min,
|
1129
1146
|
size: size2,
|
1130
|
-
icon: /* @__PURE__ */ (0,
|
1147
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_fi2.FiMinus, {})
|
1131
1148
|
}
|
1132
1149
|
),
|
1133
|
-
/* @__PURE__ */ (0,
|
1150
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
1134
1151
|
input_field_default2,
|
1135
1152
|
{
|
1136
1153
|
"data-test-id": "CT_Component_Counter_input",
|
@@ -1144,34 +1161,35 @@ var Counter = ({
|
|
1144
1161
|
onChange: handleChange,
|
1145
1162
|
isReadOnly,
|
1146
1163
|
width: 12,
|
1147
|
-
type: "number"
|
1164
|
+
type: "number",
|
1165
|
+
borderColor: "neutral.200"
|
1148
1166
|
}
|
1149
1167
|
),
|
1150
|
-
/* @__PURE__ */ (0,
|
1151
|
-
|
1168
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
1169
|
+
import_react28.IconButton,
|
1152
1170
|
{
|
1153
1171
|
"aria-label": "plus",
|
1154
1172
|
"data-test-id": "CT_Component_Counter_decrement",
|
1155
1173
|
onClick: increment,
|
1156
1174
|
isDisabled: disabled || +value >= max,
|
1157
1175
|
size: size2,
|
1158
|
-
icon: /* @__PURE__ */ (0,
|
1176
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_fi2.FiPlus, {})
|
1159
1177
|
}
|
1160
1178
|
)
|
1161
1179
|
] }),
|
1162
|
-
!isError ? /* @__PURE__ */ (0,
|
1180
|
+
!isError ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react28.Text, { mt: 1, color: "black.medium", textStyle: "text.xs", children: helperText }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react28.Text, { mt: 1, color: "danger.500", textStyle: "text.xs", children: error })
|
1163
1181
|
] });
|
1164
1182
|
};
|
1165
1183
|
var counter_default = Counter;
|
1166
1184
|
|
1167
1185
|
// src/components/data-table/components/data-table.tsx
|
1168
1186
|
var import_icons2 = require("@chakra-ui/icons");
|
1169
|
-
var
|
1170
|
-
var
|
1187
|
+
var import_react29 = require("@chakra-ui/react");
|
1188
|
+
var import_react30 = require("@emotion/react");
|
1171
1189
|
var import_react_table = require("@tanstack/react-table");
|
1172
1190
|
var React5 = __toESM(require("react"));
|
1173
|
-
var
|
1174
|
-
var
|
1191
|
+
var import_react31 = require("react");
|
1192
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
1175
1193
|
var getCommonPinningStyles = (column) => {
|
1176
1194
|
const isPinned = column.getIsPinned();
|
1177
1195
|
const isLastLeftPinnedColumn = isPinned === "left" && column.getIsLastColumn("left");
|
@@ -1207,8 +1225,8 @@ var useDataTable = ({
|
|
1207
1225
|
{
|
1208
1226
|
id: "select",
|
1209
1227
|
size: 32,
|
1210
|
-
header: ({ table: table2 }) => /* @__PURE__ */ (0,
|
1211
|
-
|
1228
|
+
header: ({ table: table2 }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1229
|
+
import_react29.Checkbox,
|
1212
1230
|
{
|
1213
1231
|
"data-test-id": "select-header-data-table",
|
1214
1232
|
...{
|
@@ -1218,8 +1236,8 @@ var useDataTable = ({
|
|
1218
1236
|
}
|
1219
1237
|
}
|
1220
1238
|
),
|
1221
|
-
cell: ({ row }) => /* @__PURE__ */ (0,
|
1222
|
-
|
1239
|
+
cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1240
|
+
import_react29.Checkbox,
|
1223
1241
|
{
|
1224
1242
|
"data-test-id": `select-data-table-${row.index}`,
|
1225
1243
|
...{
|
@@ -1286,16 +1304,16 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1286
1304
|
React5.useImperativeHandle(ref, () => ({
|
1287
1305
|
toggleAllRowsSelected
|
1288
1306
|
}));
|
1289
|
-
return /* @__PURE__ */ (0,
|
1290
|
-
isLoading && /* @__PURE__ */ (0,
|
1291
|
-
/* @__PURE__ */ (0,
|
1292
|
-
|
1307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react29.Box, { ...props, children: [
|
1308
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react29.Table, { ...styles == null ? void 0 : styles.table, children: [
|
1309
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Tr, { mx: "2", ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1310
|
+
import_react29.Th,
|
1293
1311
|
{
|
1294
1312
|
colSpan: header.colSpan,
|
1295
1313
|
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1296
1314
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
1297
|
-
children: /* @__PURE__ */ (0,
|
1298
|
-
|
1315
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1316
|
+
import_react29.Flex,
|
1299
1317
|
{
|
1300
1318
|
"data-test-id": "CT_component_data-table_loader",
|
1301
1319
|
textTransform: "capitalize",
|
@@ -1307,20 +1325,20 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1307
1325
|
},
|
1308
1326
|
header.id
|
1309
1327
|
)) }, headerGroup.id)) }),
|
1310
|
-
/* @__PURE__ */ (0,
|
1328
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Tbody, { children: [...Array(5)].map((num) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Tr, { mx: "2", children: [...Array(generateColumn().length)].map((i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Td, { width: 210, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Skeleton, { startColor: "gray.50", endColor: "gray.100", h: "30px", w: "100%" }, i) }, i)) }, num)) })
|
1311
1329
|
] }),
|
1312
|
-
/* @__PURE__ */ (0,
|
1313
|
-
/* @__PURE__ */ (0,
|
1330
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react29.Table, { ...styles == null ? void 0 : styles.table, children: [
|
1331
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Tr, { bg: (0, import_react29.useColorModeValue)("initial", "ebony-clay.700"), ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => {
|
1314
1332
|
var _a;
|
1315
|
-
return /* @__PURE__ */ (0,
|
1316
|
-
|
1333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1334
|
+
import_react29.Th,
|
1317
1335
|
{
|
1318
1336
|
colSpan: header.colSpan,
|
1319
1337
|
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1320
1338
|
style: { ...getCommonPinningStyles(header.column) },
|
1321
1339
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
1322
|
-
children: /* @__PURE__ */ (0,
|
1323
|
-
|
1340
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
1341
|
+
import_react29.Flex,
|
1324
1342
|
{
|
1325
1343
|
"data-test-id": `CT_Container_TableHeader_${header.id}`,
|
1326
1344
|
textTransform: "capitalize",
|
@@ -1328,18 +1346,18 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1328
1346
|
align: "center",
|
1329
1347
|
gap: 2,
|
1330
1348
|
children: [
|
1331
|
-
/* @__PURE__ */ (0,
|
1332
|
-
/* @__PURE__ */ (0,
|
1333
|
-
|
1349
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Text, { children: (0, import_react_table.flexRender)(header.column.columnDef.header, header.getContext()) }),
|
1350
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1351
|
+
import_react29.Box,
|
1334
1352
|
{
|
1335
1353
|
as: "span",
|
1336
1354
|
cursor: header.column.getCanSort() ? "pointer" : "default",
|
1337
1355
|
"data-test-id": `CT_Container_SortingIcon_${header.id}`,
|
1338
1356
|
onClick: header.column.getToggleSortingHandler(),
|
1339
1357
|
children: (_a = header.column.getCanSort() && {
|
1340
|
-
asc: /* @__PURE__ */ (0,
|
1341
|
-
desc: /* @__PURE__ */ (0,
|
1342
|
-
}[header.column.getIsSorted()]) != null ? _a : /* @__PURE__ */ (0,
|
1358
|
+
asc: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.ChevronUpIcon, {}),
|
1359
|
+
desc: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.ChevronDownIcon, {})
|
1360
|
+
}[header.column.getIsSorted()]) != null ? _a : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.UpDownIcon, { h: 2 })
|
1343
1361
|
}
|
1344
1362
|
)
|
1345
1363
|
]
|
@@ -1349,16 +1367,16 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1349
1367
|
header.id
|
1350
1368
|
);
|
1351
1369
|
}) }, headerGroup.id)) }),
|
1352
|
-
/* @__PURE__ */ (0,
|
1353
|
-
const trRef = (0,
|
1354
|
-
return /* @__PURE__ */ (0,
|
1355
|
-
|
1370
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Tbody, { ...styles == null ? void 0 : styles.tableBody, children: table.getRowModel().rows.map((row) => {
|
1371
|
+
const trRef = (0, import_react31.useRef)();
|
1372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1373
|
+
import_react29.Tr,
|
1356
1374
|
{
|
1357
1375
|
"data-test-id": "-RU0hNYGRzeVM3HQ4cXHl",
|
1358
1376
|
tabindex: "0",
|
1359
1377
|
ref: trRef,
|
1360
1378
|
...styles == null ? void 0 : styles.tableRow,
|
1361
|
-
css:
|
1379
|
+
css: import_react30.css`
|
1362
1380
|
&:last-child {
|
1363
1381
|
td {
|
1364
1382
|
border-bottom: none;
|
@@ -1378,16 +1396,16 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1378
1396
|
onRowClick(row.original);
|
1379
1397
|
}
|
1380
1398
|
},
|
1381
|
-
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0,
|
1382
|
-
|
1399
|
+
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1400
|
+
import_react29.Td,
|
1383
1401
|
{
|
1384
1402
|
"data-test-id": `CT_Component_TableCell_${cell.id}`,
|
1385
1403
|
fontSize: "text.sm",
|
1386
|
-
color: (0,
|
1404
|
+
color: (0, import_react29.useColorModeValue)("dark.800", "dark.300"),
|
1387
1405
|
style: { ...getCommonPinningStyles(cell.column) },
|
1388
1406
|
...styles == null ? void 0 : styles.tableCell,
|
1389
|
-
children: /* @__PURE__ */ (0,
|
1390
|
-
|
1407
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1408
|
+
import_react29.Box,
|
1391
1409
|
{
|
1392
1410
|
tabIndex: 0,
|
1393
1411
|
display: "inline-block",
|
@@ -1432,19 +1450,19 @@ DataTable.defaultProps = {
|
|
1432
1450
|
var data_table_default = DataTable;
|
1433
1451
|
|
1434
1452
|
// src/components/datepicker/components/datepicker.tsx
|
1435
|
-
var
|
1453
|
+
var import_react35 = require("@chakra-ui/react");
|
1436
1454
|
var import_shared_utils8 = require("@chakra-ui/shared-utils");
|
1437
1455
|
var import_react_datepicker = __toESM(require("react-datepicker"));
|
1438
1456
|
var import_fi3 = require("react-icons/fi");
|
1439
1457
|
|
1440
1458
|
// src/components/datepicker/components/styles.tsx
|
1441
1459
|
var import_system6 = require("@chakra-ui/system");
|
1442
|
-
var
|
1443
|
-
var
|
1460
|
+
var import_react32 = require("@emotion/react");
|
1461
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
1444
1462
|
var Styles = () => {
|
1445
1463
|
const { colorMode } = (0, import_system6.useColorMode)();
|
1446
|
-
return /* @__PURE__ */ (0,
|
1447
|
-
|
1464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
1465
|
+
import_react32.Global,
|
1448
1466
|
{
|
1449
1467
|
styles: `
|
1450
1468
|
@charset "UTF-8";
|
@@ -2255,21 +2273,21 @@ var Styles = () => {
|
|
2255
2273
|
var styles_default = Styles;
|
2256
2274
|
|
2257
2275
|
// src/components/datepicker/components/time-input.tsx
|
2258
|
-
var
|
2259
|
-
var
|
2260
|
-
var
|
2276
|
+
var import_react33 = require("@chakra-ui/react");
|
2277
|
+
var import_react34 = __toESM(require("react"));
|
2278
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
2261
2279
|
var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
2262
|
-
const [time, setTime] =
|
2280
|
+
const [time, setTime] = import_react34.default.useState(value || "00:00");
|
2263
2281
|
const handleChange = (e) => {
|
2264
2282
|
var _a, _b;
|
2265
2283
|
setTime(((_a = e.target) == null ? void 0 : _a.value) || "00:00");
|
2266
2284
|
if (onChange) onChange(((_b = e.target) == null ? void 0 : _b.value) || "00:00");
|
2267
2285
|
};
|
2268
|
-
return /* @__PURE__ */ (0,
|
2269
|
-
/* @__PURE__ */ (0,
|
2270
|
-
/* @__PURE__ */ (0,
|
2271
|
-
/* @__PURE__ */ (0,
|
2272
|
-
rightAddon && /* @__PURE__ */ (0,
|
2286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react33.Flex, { flexDir: "column", alignItems: "center", justifyContent: "center", p: 4, pt: 0, children: [
|
2287
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react33.Text, { mb: 2, children: label }),
|
2288
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react33.InputGroup, { alignItems: "center", justifyContent: "center", children: [
|
2289
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react33.Input, { onChange: handleChange, type: "time", value: time, "data-test-id": "CT_Component_datepicker_input_time" }),
|
2290
|
+
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react33.InputRightAddon, { children: rightAddon })
|
2273
2291
|
] })
|
2274
2292
|
] });
|
2275
2293
|
};
|
@@ -2283,7 +2301,7 @@ TimeInput.defaultProps = {
|
|
2283
2301
|
var time_input_default = TimeInput;
|
2284
2302
|
|
2285
2303
|
// src/components/datepicker/components/datepicker.tsx
|
2286
|
-
var
|
2304
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
2287
2305
|
var Datepicker = ({
|
2288
2306
|
id,
|
2289
2307
|
label,
|
@@ -2308,18 +2326,18 @@ var Datepicker = ({
|
|
2308
2326
|
return {
|
2309
2327
|
timeInputLabel: "",
|
2310
2328
|
showTimeInput: true,
|
2311
|
-
customTimeInput: /* @__PURE__ */ (0,
|
2329
|
+
customTimeInput: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(time_input_default, {})
|
2312
2330
|
};
|
2313
2331
|
};
|
2314
|
-
const component = /* @__PURE__ */ (0,
|
2315
|
-
/* @__PURE__ */ (0,
|
2316
|
-
/* @__PURE__ */ (0,
|
2332
|
+
const component = /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
|
2333
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(styles_default, {}),
|
2334
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
2317
2335
|
import_react_datepicker.default,
|
2318
2336
|
{
|
2319
2337
|
id,
|
2320
2338
|
name,
|
2321
2339
|
selected,
|
2322
|
-
customInput: /* @__PURE__ */ (0,
|
2340
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react35.Input, { autoComplete: "off", ...wrapperStyle }),
|
2323
2341
|
dateFormat,
|
2324
2342
|
showPopperArrow: false,
|
2325
2343
|
calendarClassName: (0, import_shared_utils8.cx)({ inline: props.inline }),
|
@@ -2333,16 +2351,16 @@ var Datepicker = ({
|
|
2333
2351
|
if (props.inline) {
|
2334
2352
|
return component;
|
2335
2353
|
}
|
2336
|
-
return /* @__PURE__ */ (0,
|
2337
|
-
label && /* @__PURE__ */ (0,
|
2338
|
-
/* @__PURE__ */ (0,
|
2354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react35.FormControl, { isRequired, "data-test-id": "CT_Component_datepicker_wrapper", isInvalid: isError, children: [
|
2355
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react35.FormLabel, { fontSize: "text.sm", children: label }),
|
2356
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react35.InputGroup, { children: [
|
2339
2357
|
component,
|
2340
|
-
/* @__PURE__ */ (0,
|
2341
|
-
!value && /* @__PURE__ */ (0,
|
2342
|
-
value && /* @__PURE__ */ (0,
|
2358
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react35.InputRightElement, { children: [
|
2359
|
+
!value && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_fi3.FiCalendar, {}),
|
2360
|
+
value && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_fi3.FiX, { "data-test-id": "bcpJJyCP0z_RIAGZXDU6s", onClick: onClear, cursor: "pointer" })
|
2343
2361
|
] })
|
2344
2362
|
] }),
|
2345
|
-
!isError ? /* @__PURE__ */ (0,
|
2363
|
+
!isError ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react35.FormHelperText, { fontSize: "text.xs", mt: 1, children: helperText }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react35.FormErrorMessage, { fontSize: "text.xs", mt: 1, children: error })
|
2346
2364
|
] });
|
2347
2365
|
};
|
2348
2366
|
Datepicker.defaultProps = {
|
@@ -2360,18 +2378,18 @@ Datepicker.defaultProps = {
|
|
2360
2378
|
var datepicker_default = Datepicker;
|
2361
2379
|
|
2362
2380
|
// src/components/datepicker/components/datepicker-month/datepicker-month.tsx
|
2363
|
-
var
|
2364
|
-
var
|
2365
|
-
var
|
2366
|
-
var
|
2381
|
+
var import_react36 = require("@chakra-ui/react");
|
2382
|
+
var import_react37 = require("@emotion/react");
|
2383
|
+
var import_react38 = __toESM(require("react"));
|
2384
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
2367
2385
|
var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
2368
|
-
const [date, setDate] =
|
2369
|
-
return /* @__PURE__ */ (0,
|
2370
|
-
|
2386
|
+
const [date, setDate] = import_react38.default.useState(null);
|
2387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
2388
|
+
import_react36.Box,
|
2371
2389
|
{
|
2372
2390
|
fontSize: "12px",
|
2373
2391
|
lineHeight: "18px",
|
2374
|
-
css:
|
2392
|
+
css: import_react37.css`
|
2375
2393
|
input[type='date']::-webkit-inner-spin-button,
|
2376
2394
|
input[type='date']::-webkit-calendar-picker-indicator {
|
2377
2395
|
display: none;
|
@@ -2381,8 +2399,8 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
2381
2399
|
width: 58px;
|
2382
2400
|
}
|
2383
2401
|
`,
|
2384
|
-
children: /* @__PURE__ */ (0,
|
2385
|
-
|
2402
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
2403
|
+
import_react36.Input,
|
2386
2404
|
{
|
2387
2405
|
"data-test-id": props["data-test-id"],
|
2388
2406
|
type: "date",
|
@@ -2395,7 +2413,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
2395
2413
|
min,
|
2396
2414
|
max,
|
2397
2415
|
required: true,
|
2398
|
-
css:
|
2416
|
+
css: import_react37.css`
|
2399
2417
|
border: 1px solid transparent;
|
2400
2418
|
|
2401
2419
|
&:focus,
|
@@ -2419,11 +2437,11 @@ DatePickerMonth.defaultProps = {
|
|
2419
2437
|
var datepicker_month_default = DatePickerMonth;
|
2420
2438
|
|
2421
2439
|
// src/components/datepicker/components/datepicker-month/multi-datepicker-month.tsx
|
2422
|
-
var
|
2440
|
+
var import_react39 = require("@chakra-ui/react");
|
2423
2441
|
var import_styled = __toESM(require("@emotion/styled"));
|
2424
|
-
var
|
2425
|
-
var
|
2426
|
-
var MultiDateWrapper = (0, import_styled.default)(
|
2442
|
+
var import_react40 = __toESM(require("react"));
|
2443
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
2444
|
+
var MultiDateWrapper = (0, import_styled.default)(import_react39.Box)`
|
2427
2445
|
display: flex;
|
2428
2446
|
align-items: center;
|
2429
2447
|
width: fit-content;
|
@@ -2438,9 +2456,9 @@ var MultiDatePickerMonth = ({
|
|
2438
2456
|
min = "2020-01-01",
|
2439
2457
|
max = "2020-12-31"
|
2440
2458
|
}) => {
|
2441
|
-
const [date, setDate] =
|
2442
|
-
return /* @__PURE__ */ (0,
|
2443
|
-
/* @__PURE__ */ (0,
|
2459
|
+
const [date, setDate] = import_react40.default.useState([null, null]);
|
2460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(MultiDateWrapper, { isError, children: [
|
2461
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
2444
2462
|
datepicker_month_default,
|
2445
2463
|
{
|
2446
2464
|
"data-test-id": "CT_DatePickerMonth_StartDate",
|
@@ -2452,8 +2470,8 @@ var MultiDatePickerMonth = ({
|
|
2452
2470
|
max
|
2453
2471
|
}
|
2454
2472
|
),
|
2455
|
-
/* @__PURE__ */ (0,
|
2456
|
-
/* @__PURE__ */ (0,
|
2473
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react39.Box, { children: "-" }),
|
2474
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
2457
2475
|
datepicker_month_default,
|
2458
2476
|
{
|
2459
2477
|
"data-test-id": "CT_DatePickerMonth_EndDate",
|
@@ -2475,8 +2493,8 @@ MultiDatePickerMonth.defaultProps = {
|
|
2475
2493
|
var multi_datepicker_month_default = MultiDatePickerMonth;
|
2476
2494
|
|
2477
2495
|
// src/components/dialog/components/dialog.tsx
|
2478
|
-
var
|
2479
|
-
var
|
2496
|
+
var import_react41 = require("@chakra-ui/react");
|
2497
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
2480
2498
|
var Dialog = ({
|
2481
2499
|
title,
|
2482
2500
|
content,
|
@@ -2486,12 +2504,12 @@ var Dialog = ({
|
|
2486
2504
|
isOverlayClickable,
|
2487
2505
|
...props
|
2488
2506
|
}) => {
|
2489
|
-
return /* @__PURE__ */ (0,
|
2490
|
-
isModalOverlay && /* @__PURE__ */ (0,
|
2491
|
-
/* @__PURE__ */ (0,
|
2492
|
-
/* @__PURE__ */ (0,
|
2493
|
-
/* @__PURE__ */ (0,
|
2494
|
-
/* @__PURE__ */ (0,
|
2507
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react41.Modal, { ...props, children: [
|
2508
|
+
isModalOverlay && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.ModalOverlay, { pointerEvents: isOverlayClickable ? "auto" : "none" }),
|
2509
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react41.ModalContent, { bgColor: "neutral.50", fontFamily: "Poppins", width, children: [
|
2510
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.ModalHeader, { bgColor: "neutral.200", py: 2, px: 4, borderTopRadius: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.Text, { textStyle: "text.lg", fontWeight: "normal", children: title }) }),
|
2511
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.ModalBody, { p: 4, textStyle: "text.md", children: content }),
|
2512
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.ModalFooter, { bgColor: "neutral.200", p: 4, borderBottomRadius: "sm", children: footer })
|
2495
2513
|
] })
|
2496
2514
|
] });
|
2497
2515
|
};
|
@@ -2503,15 +2521,15 @@ Dialog.defaultProps = {
|
|
2503
2521
|
var dialog_default = Dialog;
|
2504
2522
|
|
2505
2523
|
// src/components/header/components/header.tsx
|
2506
|
-
var
|
2524
|
+
var import_react46 = require("@chakra-ui/react");
|
2507
2525
|
|
2508
2526
|
// src/components/header/components/logo.tsx
|
2509
|
-
var
|
2510
|
-
var
|
2527
|
+
var import_react42 = require("@chakra-ui/react");
|
2528
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
2511
2529
|
var Logo = ({ url, imageUrl, height }) => {
|
2512
2530
|
if (url)
|
2513
|
-
return /* @__PURE__ */ (0,
|
2514
|
-
return /* @__PURE__ */ (0,
|
2531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.Box, { as: "a", href: url, cursor: "pointer", target: "_self", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.Image, { w: "100%", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl }) });
|
2532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.Image, { w: "100%", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl });
|
2515
2533
|
};
|
2516
2534
|
Logo.defaultProps = {
|
2517
2535
|
url: void 0,
|
@@ -2519,15 +2537,15 @@ Logo.defaultProps = {
|
|
2519
2537
|
};
|
2520
2538
|
|
2521
2539
|
// src/components/header/components/profile.tsx
|
2522
|
-
var
|
2540
|
+
var import_react43 = require("@chakra-ui/react");
|
2523
2541
|
var import_fi4 = require("react-icons/fi");
|
2524
|
-
var
|
2542
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
2525
2543
|
var Profile = ({ color, brandColor, data, onLogout }) => {
|
2526
2544
|
var _a;
|
2527
|
-
const { isOpen, onToggle, onClose } = (0,
|
2528
|
-
return /* @__PURE__ */ (0,
|
2529
|
-
/* @__PURE__ */ (0,
|
2530
|
-
|
2545
|
+
const { isOpen, onToggle, onClose } = (0, import_react43.useDisclosure)();
|
2546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react43.Popover, { placement: "bottom-end", isOpen, onClose, children: [
|
2547
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2548
|
+
import_react43.Box,
|
2531
2549
|
{
|
2532
2550
|
"data-test-id": "WE0UYbA93LOZy6S09IhDO",
|
2533
2551
|
as: "button",
|
@@ -2537,23 +2555,23 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
2537
2555
|
m: 0,
|
2538
2556
|
onClick: onToggle,
|
2539
2557
|
color,
|
2540
|
-
children: /* @__PURE__ */ (0,
|
2541
|
-
/* @__PURE__ */ (0,
|
2542
|
-
/* @__PURE__ */ (0,
|
2543
|
-
/* @__PURE__ */ (0,
|
2544
|
-
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0,
|
2545
|
-
/* @__PURE__ */ (0,
|
2546
|
-
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0,
|
2547
|
-
/* @__PURE__ */ (0,
|
2548
|
-
data.office.length > 1 && /* @__PURE__ */ (0,
|
2558
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react43.HStack, { children: [
|
2559
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react43.VStack, { alignItems: "flex-end", spacing: 0, ml: "2", color, children: [
|
2560
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.Text, { textStyle: "text.xs", mb: 1, children: data == null ? void 0 : data.email }),
|
2561
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react43.Flex, { alignItems: "center", children: [
|
2562
|
+
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.userRole) || "user" }),
|
2563
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.Box, { h: "3", mx: "1", borderLeft: "1px solid", borderColor: "neutral.400" }),
|
2564
|
+
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
2565
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.Text, { textStyle: "text.xs", children: data.office[0] }),
|
2566
|
+
data.office.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(badge_default, { ml: "1", pill: true, variant: "neutral-light", children: [
|
2549
2567
|
data.office.length - 1,
|
2550
2568
|
"+"
|
2551
2569
|
] })
|
2552
|
-
] }) : /* @__PURE__ */ (0,
|
2570
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.office) || "office" })
|
2553
2571
|
] })
|
2554
2572
|
] }),
|
2555
|
-
/* @__PURE__ */ (0,
|
2556
|
-
|
2573
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2574
|
+
import_react43.Avatar,
|
2557
2575
|
{
|
2558
2576
|
size: "sm",
|
2559
2577
|
bg: brandColor,
|
@@ -2568,10 +2586,10 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
2568
2586
|
] })
|
2569
2587
|
}
|
2570
2588
|
),
|
2571
|
-
/* @__PURE__ */ (0,
|
2572
|
-
/* @__PURE__ */ (0,
|
2573
|
-
/* @__PURE__ */ (0,
|
2574
|
-
|
2589
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react43.PopoverContent, { bg: "white", maxW: 200, children: [
|
2590
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.PopoverArrow, { bg: "white" }),
|
2591
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.PopoverBody, { p: 1, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
2592
|
+
import_react43.Flex,
|
2575
2593
|
{
|
2576
2594
|
"data-test-id": "gA7F9pucPX_Q3_dkgXIYZ",
|
2577
2595
|
alignItems: "center",
|
@@ -2579,12 +2597,12 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
2579
2597
|
py: 2,
|
2580
2598
|
borderRadius: "sm",
|
2581
2599
|
cursor: "pointer",
|
2582
|
-
_hover: { bg: (0,
|
2600
|
+
_hover: { bg: (0, import_react43.useColorModeValue)("primary.500", "mirage.900"), color: "white" },
|
2583
2601
|
onClick: onLogout,
|
2584
2602
|
textStyle: "text.xs",
|
2585
2603
|
children: [
|
2586
|
-
/* @__PURE__ */ (0,
|
2587
|
-
/* @__PURE__ */ (0,
|
2604
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_fi4.FiPower, {}),
|
2605
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.Text, { ml: 2, children: "Logout" })
|
2588
2606
|
]
|
2589
2607
|
}
|
2590
2608
|
) })
|
@@ -2600,17 +2618,17 @@ Profile.defaultProps = {
|
|
2600
2618
|
var profile_default = Profile;
|
2601
2619
|
|
2602
2620
|
// src/components/header/components/switch-mode.tsx
|
2603
|
-
var
|
2621
|
+
var import_react44 = require("@chakra-ui/react");
|
2604
2622
|
var import_fi5 = require("react-icons/fi");
|
2605
|
-
var
|
2623
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
2606
2624
|
var SwitchMode = () => {
|
2607
|
-
const { colorMode, toggleColorMode } = (0,
|
2608
|
-
return /* @__PURE__ */ (0,
|
2625
|
+
const { colorMode, toggleColorMode } = (0, import_react44.useColorMode)();
|
2626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react44.Box, { "data-test-id": "rhYuTDCiWkFqr96upiEEh", mx: 5, onClick: toggleColorMode, cursor: "pointer", children: colorMode === "light" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_fi5.FiMoon, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_fi5.FiSun, { size: 20 }) });
|
2609
2627
|
};
|
2610
2628
|
var switch_mode_default = SwitchMode;
|
2611
2629
|
|
2612
2630
|
// src/components/header/components/version.tsx
|
2613
|
-
var
|
2631
|
+
var import_react45 = require("@chakra-ui/react");
|
2614
2632
|
|
2615
2633
|
// src/components/header/utils/formatter.ts
|
2616
2634
|
function environmentName(env) {
|
@@ -2625,9 +2643,9 @@ function environmentName(env) {
|
|
2625
2643
|
}
|
2626
2644
|
|
2627
2645
|
// src/components/header/components/version.tsx
|
2628
|
-
var
|
2629
|
-
var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__PURE__ */ (0,
|
2630
|
-
version && /* @__PURE__ */ (0,
|
2646
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
2647
|
+
var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
2648
|
+
version && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
2631
2649
|
badge_default,
|
2632
2650
|
{
|
2633
2651
|
fontSize: "8px",
|
@@ -2638,8 +2656,8 @@ var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__P
|
|
2638
2656
|
children: version
|
2639
2657
|
}
|
2640
2658
|
),
|
2641
|
-
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ (0,
|
2642
|
-
|
2659
|
+
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
2660
|
+
import_react45.Box,
|
2643
2661
|
{
|
2644
2662
|
background: "primary.50",
|
2645
2663
|
color: "primary.500",
|
@@ -2661,7 +2679,7 @@ Version.defaultProps = {
|
|
2661
2679
|
var version_default = Version;
|
2662
2680
|
|
2663
2681
|
// src/components/header/components/header.tsx
|
2664
|
-
var
|
2682
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
2665
2683
|
var Header = ({
|
2666
2684
|
brandColor,
|
2667
2685
|
data,
|
@@ -2678,14 +2696,14 @@ var Header = ({
|
|
2678
2696
|
profile,
|
2679
2697
|
bg = "white",
|
2680
2698
|
...props
|
2681
|
-
}) => /* @__PURE__ */ (0,
|
2682
|
-
mainLogo && /* @__PURE__ */ (0,
|
2683
|
-
/* @__PURE__ */ (0,
|
2699
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react46.Flex, { minH: 15, bg, shadow: "raised", px: 6, py: 3, alignItems: "center", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react46.Flex, { h: "auto", w: "full", alignItems: "center", justifyContent: profile ? "flex-end" : "space-between", pos: "relative", children: [
|
2700
|
+
mainLogo && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react46.Flex, { alignItems: "center", children: [
|
2701
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Logo, { url: urlLogo, imageUrl: mainLogo, height: mainLogoSize }),
|
2684
2702
|
children && children
|
2685
2703
|
] }),
|
2686
|
-
centerLogo && /* @__PURE__ */ (0,
|
2687
|
-
/* @__PURE__ */ (0,
|
2688
|
-
/* @__PURE__ */ (0,
|
2704
|
+
centerLogo && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react46.HStack, { w: "fit-content", spacing: 2, alignItems: "center", pos: "absolute", left: "50%", transform: "translate(-50%,0)", children: [
|
2705
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Logo, { url: urlLogo, imageUrl: centerLogo, height: centerLogoSize }),
|
2706
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
2689
2707
|
version_default,
|
2690
2708
|
{
|
2691
2709
|
hideEnv,
|
@@ -2695,9 +2713,9 @@ var Header = ({
|
|
2695
2713
|
}
|
2696
2714
|
)
|
2697
2715
|
] }),
|
2698
|
-
profile || /* @__PURE__ */ (0,
|
2699
|
-
!hideSwitchMode && /* @__PURE__ */ (0,
|
2700
|
-
/* @__PURE__ */ (0,
|
2716
|
+
profile || /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react46.Flex, { alignItems: "center", children: [
|
2717
|
+
!hideSwitchMode && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(switch_mode_default, {}),
|
2718
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(profile_default, { color: props.color, brandColor, data, onLogout })
|
2701
2719
|
] })
|
2702
2720
|
] }) });
|
2703
2721
|
Header.defaultProps = {
|
@@ -2717,23 +2735,23 @@ Header.defaultProps = {
|
|
2717
2735
|
var header_default = Header;
|
2718
2736
|
|
2719
2737
|
// src/components/image/index.ts
|
2720
|
-
var
|
2738
|
+
var import_react47 = require("@chakra-ui/react");
|
2721
2739
|
|
2722
2740
|
// src/components/layouting/index.ts
|
2723
|
-
var
|
2741
|
+
var import_react48 = require("@chakra-ui/react");
|
2724
2742
|
|
2725
2743
|
// src/components/list/index.tsx
|
2726
|
-
var
|
2744
|
+
var import_react49 = require("@chakra-ui/react");
|
2727
2745
|
|
2728
2746
|
// src/components/modal/components/modal-back-button.tsx
|
2729
2747
|
var import_icons3 = require("@chakra-ui/icons");
|
2730
|
-
var
|
2731
|
-
var
|
2748
|
+
var import_react50 = require("@chakra-ui/react");
|
2749
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
2732
2750
|
var ModalBackButton = ({ onClick }) => {
|
2733
|
-
return /* @__PURE__ */ (0,
|
2734
|
-
|
2751
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2752
|
+
import_react50.IconButton,
|
2735
2753
|
{
|
2736
|
-
icon: /* @__PURE__ */ (0,
|
2754
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_icons3.ChevronLeftIcon, { w: "4.5", h: "4.5" }),
|
2737
2755
|
size: "sm",
|
2738
2756
|
minW: "6",
|
2739
2757
|
h: "6",
|
@@ -2751,28 +2769,28 @@ var ModalBackButton = ({ onClick }) => {
|
|
2751
2769
|
var modal_back_button_default = ModalBackButton;
|
2752
2770
|
|
2753
2771
|
// src/components/modal/components/modal-body.tsx
|
2754
|
-
var
|
2755
|
-
var
|
2756
|
-
var
|
2757
|
-
var ModalBody2 =
|
2758
|
-
return /* @__PURE__ */ (0,
|
2772
|
+
var import_react51 = require("@chakra-ui/react");
|
2773
|
+
var import_react52 = __toESM(require("react"));
|
2774
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
2775
|
+
var ModalBody2 = import_react52.default.forwardRef(({ children, ...rest }, ref) => {
|
2776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react51.ModalBody, { px: 4, py: 2, ref, background: (0, import_react51.useColorModeValue)("white", "mirage.900"), ...rest, children });
|
2759
2777
|
});
|
2760
2778
|
var modal_body_default = ModalBody2;
|
2761
2779
|
|
2762
2780
|
// src/components/modal/components/modal-close-button.tsx
|
2763
|
-
var
|
2764
|
-
var
|
2765
|
-
var
|
2766
|
-
var ModalCloseButton = (0,
|
2767
|
-
return /* @__PURE__ */ (0,
|
2768
|
-
|
2781
|
+
var import_react53 = require("@chakra-ui/react");
|
2782
|
+
var import_react54 = require("react");
|
2783
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
2784
|
+
var ModalCloseButton = (0, import_react54.forwardRef)((props, ref) => {
|
2785
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
2786
|
+
import_react53.ModalCloseButton,
|
2769
2787
|
{
|
2770
2788
|
ref,
|
2771
2789
|
top: 2,
|
2772
2790
|
right: 2,
|
2773
2791
|
size: "sm",
|
2774
2792
|
"data-test-id": "modal-close-button",
|
2775
|
-
background: (0,
|
2793
|
+
background: (0, import_react53.useColorModeValue)("neutral.50", "mirage.900"),
|
2776
2794
|
...props
|
2777
2795
|
}
|
2778
2796
|
);
|
@@ -2780,15 +2798,15 @@ var ModalCloseButton = (0, import_react53.forwardRef)((props, ref) => {
|
|
2780
2798
|
var modal_close_button_default = ModalCloseButton;
|
2781
2799
|
|
2782
2800
|
// src/components/modal/components/modal-footer.tsx
|
2783
|
-
var
|
2784
|
-
var
|
2785
|
-
var
|
2786
|
-
var ModalFooter2 = (0,
|
2787
|
-
return /* @__PURE__ */ (0,
|
2788
|
-
|
2801
|
+
var import_react55 = require("@chakra-ui/react");
|
2802
|
+
var import_react56 = require("react");
|
2803
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
2804
|
+
var ModalFooter2 = (0, import_react56.forwardRef)(({ children, ...rest }, ref) => {
|
2805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
2806
|
+
import_react55.ModalFooter,
|
2789
2807
|
{
|
2790
2808
|
ref,
|
2791
|
-
background: (0,
|
2809
|
+
background: (0, import_react55.useColorModeValue)("neutral.200", "mirage.900"),
|
2792
2810
|
borderBottomRadius: "sm",
|
2793
2811
|
...rest,
|
2794
2812
|
children
|
@@ -2798,15 +2816,15 @@ var ModalFooter2 = (0, import_react55.forwardRef)(({ children, ...rest }, ref) =
|
|
2798
2816
|
var modal_footer_default = ModalFooter2;
|
2799
2817
|
|
2800
2818
|
// src/components/modal/components/modal-header.tsx
|
2801
|
-
var
|
2802
|
-
var
|
2803
|
-
var
|
2804
|
-
var ModalHeader2 = (0,
|
2805
|
-
return /* @__PURE__ */ (0,
|
2806
|
-
|
2819
|
+
var import_react57 = require("@chakra-ui/react");
|
2820
|
+
var import_react58 = require("react");
|
2821
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
2822
|
+
var ModalHeader2 = (0, import_react58.forwardRef)(({ children, ...rest }, ref) => {
|
2823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
2824
|
+
import_react57.ModalHeader,
|
2807
2825
|
{
|
2808
2826
|
ref,
|
2809
|
-
background: (0,
|
2827
|
+
background: (0, import_react57.useColorModeValue)("neutral.200", "mirage.900"),
|
2810
2828
|
borderTopRadius: "sm",
|
2811
2829
|
fontSize: "text.lg",
|
2812
2830
|
fontWeight: "400",
|
@@ -2820,24 +2838,24 @@ var ModalHeader2 = (0, import_react57.forwardRef)(({ children, ...rest }, ref) =
|
|
2820
2838
|
var modal_header_default = ModalHeader2;
|
2821
2839
|
|
2822
2840
|
// src/components/modal/index.ts
|
2823
|
-
var
|
2841
|
+
var import_react59 = require("@chakra-ui/react");
|
2824
2842
|
|
2825
2843
|
// src/components/navigation/components/navigation.tsx
|
2826
2844
|
var import_icons4 = require("@chakra-ui/icons");
|
2827
|
-
var
|
2828
|
-
var
|
2845
|
+
var import_react61 = require("@chakra-ui/react");
|
2846
|
+
var import_react62 = require("@emotion/react");
|
2829
2847
|
|
2830
2848
|
// src/components/navigation/components/mapping-icon.ts
|
2831
2849
|
var import_fi6 = require("react-icons/fi");
|
2832
2850
|
|
2833
2851
|
// src/components/navigation/components/customer-icon.tsx
|
2834
|
-
var
|
2835
|
-
var
|
2836
|
-
var CustomerIcon = (0,
|
2852
|
+
var import_react60 = require("@chakra-ui/react");
|
2853
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
2854
|
+
var CustomerIcon = (0, import_react60.createIcon)({
|
2837
2855
|
displayName: "CustomerIcon",
|
2838
2856
|
viewBox: "0 0 16 16",
|
2839
2857
|
path: [
|
2840
|
-
/* @__PURE__ */ (0,
|
2858
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
2841
2859
|
"path",
|
2842
2860
|
{
|
2843
2861
|
fill: "currentColor",
|
@@ -2846,14 +2864,14 @@ var CustomerIcon = (0, import_react59.createIcon)({
|
|
2846
2864
|
clipRule: "inherit"
|
2847
2865
|
}
|
2848
2866
|
),
|
2849
|
-
/* @__PURE__ */ (0,
|
2867
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
2850
2868
|
"path",
|
2851
2869
|
{
|
2852
2870
|
fill: "currentColor",
|
2853
2871
|
d: "M12.416 12.698a1.997 1.997 0 0 0-1.75-1.031H5.334a2 2 0 0 0-1.864 1.277 7.722 7.722 0 0 1-.943-1.074 3.329 3.329 0 0 1 2.807-1.537h5.334a3.333 3.333 0 0 1 2.703 1.384c-.275.325-.594.66-.954.98Z"
|
2854
2872
|
}
|
2855
2873
|
),
|
2856
|
-
/* @__PURE__ */ (0,
|
2874
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
2857
2875
|
"path",
|
2858
2876
|
{
|
2859
2877
|
fill: "currentColor",
|
@@ -2883,44 +2901,44 @@ var mappingIcon = /* @__PURE__ */ new Map([
|
|
2883
2901
|
]);
|
2884
2902
|
|
2885
2903
|
// src/components/navigation/components/navigation.tsx
|
2886
|
-
var
|
2904
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
2887
2905
|
var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
2888
|
-
return /* @__PURE__ */ (0,
|
2889
|
-
|
2906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2907
|
+
import_react61.Box,
|
2890
2908
|
{
|
2891
|
-
bg: (0,
|
2909
|
+
bg: (0, import_react61.useColorModeValue)("white", "ebony-clay.800"),
|
2892
2910
|
boxShadow: "0 4px 20px 0 rgb(0 0 0 / 5%)",
|
2893
2911
|
borderRadius: "md",
|
2894
2912
|
overflowX: "auto",
|
2895
2913
|
...props,
|
2896
|
-
children: /* @__PURE__ */ (0,
|
2914
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Flex, { alignItems: "center", p: 2, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.HStack, { spacing: 2, children: navigations == null ? void 0 : navigations.map((navigation) => {
|
2897
2915
|
const isActive = activePath.startsWith(navigation.navLink || "");
|
2898
2916
|
const activeBg = isActive ? "primary.500" : void 0;
|
2899
|
-
return /* @__PURE__ */ (0,
|
2900
|
-
/* @__PURE__ */ (0,
|
2901
|
-
|
2917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Popover, { trigger: "hover", placement: "bottom-start", children: ({ isOpen }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
2918
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
2919
|
+
import_react61.Box,
|
2902
2920
|
{
|
2903
2921
|
display: "flex",
|
2904
2922
|
alignItems: "center",
|
2905
2923
|
borderRadius: "md",
|
2906
2924
|
cursor: "pointer",
|
2907
2925
|
_hover: {
|
2908
|
-
backgroundColor: !isActive ? (0,
|
2926
|
+
backgroundColor: !isActive ? (0, import_react61.useColorModeValue)("dove-gray.50", "transparent") : activeBg
|
2909
2927
|
},
|
2910
|
-
backgroundColor: isOpen && !isActive ? (0,
|
2928
|
+
backgroundColor: isOpen && !isActive ? (0, import_react61.useColorModeValue)("dove-gray.50", "transparent") : activeBg,
|
2911
2929
|
color: isActive ? "white" : "inherit",
|
2912
2930
|
p: 2,
|
2913
2931
|
children: [
|
2914
|
-
/* @__PURE__ */ (0,
|
2915
|
-
/* @__PURE__ */ (0,
|
2916
|
-
/* @__PURE__ */ (0,
|
2932
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Icon, { as: mappingIcon.get(navigation.title), mr: 2 }),
|
2933
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Text, { whiteSpace: "nowrap", fontSize: "text.sm", fontWeight: 400, children: navigation.title }),
|
2934
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_icons4.ChevronDownIcon, { ml: 2 })
|
2917
2935
|
]
|
2918
2936
|
}
|
2919
2937
|
) }),
|
2920
|
-
navigation.children && /* @__PURE__ */ (0,
|
2921
|
-
|
2938
|
+
navigation.children && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Box, { zIndex: "popover", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2939
|
+
import_react61.PopoverContent,
|
2922
2940
|
{
|
2923
|
-
bg: (0,
|
2941
|
+
bg: (0, import_react61.useColorModeValue)("white", "ebony-clay.800"),
|
2924
2942
|
maxW: 250,
|
2925
2943
|
border: "none",
|
2926
2944
|
borderRadius: "md",
|
@@ -2929,16 +2947,16 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2929
2947
|
const link = navHost ? `${navHost}${navLink}` : navLink;
|
2930
2948
|
const isLocalLink = host === navHost;
|
2931
2949
|
const isActiveSub = activePath === navLink;
|
2932
|
-
return /* @__PURE__ */ (0,
|
2933
|
-
|
2950
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2951
|
+
import_react61.Link,
|
2934
2952
|
{
|
2935
2953
|
as: isLocalLink ? as : void 0,
|
2936
2954
|
href: link,
|
2937
2955
|
_hover: {
|
2938
2956
|
textDecoration: "none"
|
2939
2957
|
},
|
2940
|
-
children: /* @__PURE__ */ (0,
|
2941
|
-
|
2958
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
2959
|
+
import_react61.Box,
|
2942
2960
|
{
|
2943
2961
|
display: "flex",
|
2944
2962
|
position: "relative",
|
@@ -2946,24 +2964,24 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2946
2964
|
cursor: "pointer",
|
2947
2965
|
transition: "padding 0.35s ease 0s",
|
2948
2966
|
_hover: {
|
2949
|
-
backgroundColor: (0,
|
2950
|
-
color: (0,
|
2967
|
+
backgroundColor: (0, import_react61.useColorModeValue)("dove-gray.50", "mirage.900"),
|
2968
|
+
color: (0, import_react61.useColorModeValue)("primary.500", "dove-gray.600"),
|
2951
2969
|
px: 5,
|
2952
2970
|
py: 4,
|
2953
2971
|
_first: { borderTopRadius: "md" },
|
2954
2972
|
_last: { borderBottomRadius: "md" }
|
2955
2973
|
},
|
2956
2974
|
color: isActiveSub ? "primary.500" : "inherit",
|
2957
|
-
css:
|
2975
|
+
css: import_react62.css`
|
2958
2976
|
border-spacing: 4px;
|
2959
2977
|
`,
|
2960
2978
|
px: 6,
|
2961
2979
|
py: 4,
|
2962
2980
|
children: [
|
2963
|
-
/* @__PURE__ */ (0,
|
2964
|
-
/* @__PURE__ */ (0,
|
2965
|
-
isActiveSub && /* @__PURE__ */ (0,
|
2966
|
-
|
2981
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Icon, { as: mappingIcon.get(navigation.title), mr: 3 }),
|
2982
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Text, { fontSize: "text.sm", children: title }),
|
2983
|
+
isActiveSub && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2984
|
+
import_react61.Box,
|
2967
2985
|
{
|
2968
2986
|
width: 0.5,
|
2969
2987
|
height: 8,
|
@@ -2996,9 +3014,9 @@ Navigation.defaultProps = {
|
|
2996
3014
|
var navigation_default = Navigation;
|
2997
3015
|
|
2998
3016
|
// src/components/navigation/components/navigation-bar.tsx
|
2999
|
-
var
|
3017
|
+
var import_react63 = require("@chakra-ui/react");
|
3000
3018
|
var Icon3 = __toESM(require("@ctlyst.id/internal-icon"));
|
3001
|
-
var
|
3019
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
3002
3020
|
var NavigationBar = ({
|
3003
3021
|
navigations,
|
3004
3022
|
isFetched,
|
@@ -3013,15 +3031,15 @@ var NavigationBar = ({
|
|
3013
3031
|
}
|
3014
3032
|
return subMenu.navHost + subMenu.navLink;
|
3015
3033
|
};
|
3016
|
-
return /* @__PURE__ */ (0,
|
3017
|
-
|
3034
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3035
|
+
import_react63.Box,
|
3018
3036
|
{
|
3019
3037
|
hidden: isFetched && navigations === void 0,
|
3020
3038
|
backgroundRepeat: "repeat-x",
|
3021
3039
|
"data-test-id": "CT_component_navigation_cms",
|
3022
3040
|
...props,
|
3023
|
-
children: /* @__PURE__ */ (0,
|
3024
|
-
|
3041
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3042
|
+
import_react63.Flex,
|
3025
3043
|
{
|
3026
3044
|
bg: "white",
|
3027
3045
|
w: "full",
|
@@ -3037,9 +3055,9 @@ var NavigationBar = ({
|
|
3037
3055
|
const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
|
3038
3056
|
const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
|
3039
3057
|
const activeBg = isActive ? "primary.500" : void 0;
|
3040
|
-
return /* @__PURE__ */ (0,
|
3041
|
-
/* @__PURE__ */ (0,
|
3042
|
-
|
3058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react63.Popover, { isLazy: true, trigger: "hover", placement: "bottom-start", openDelay: 100, closeDelay: 100, children: ({ isOpen, onClose }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
|
3059
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react63.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3060
|
+
import_react63.Button,
|
3043
3061
|
{
|
3044
3062
|
h: 7.5,
|
3045
3063
|
p: 2,
|
@@ -3052,12 +3070,12 @@ var NavigationBar = ({
|
|
3052
3070
|
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
3053
3071
|
color: isActive ? "primary.50" : "black.high",
|
3054
3072
|
leftIcon: mappingIcon2.get(item.title),
|
3055
|
-
rightIcon: /* @__PURE__ */ (0,
|
3073
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon3.ChevronDown, { size: 4, color: "inherit" }),
|
3056
3074
|
children: item.title
|
3057
3075
|
}
|
3058
3076
|
) }),
|
3059
|
-
item.children && /* @__PURE__ */ (0,
|
3060
|
-
|
3077
|
+
item.children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react63.PopoverContent, { border: "none", shadow: "raised", py: 1, width: 240, children: item.children.map((subMenu) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
3078
|
+
import_react63.Link,
|
3061
3079
|
{
|
3062
3080
|
href: urlMenu(subMenu),
|
3063
3081
|
display: "flex",
|
@@ -3076,7 +3094,7 @@ var NavigationBar = ({
|
|
3076
3094
|
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
3077
3095
|
children: [
|
3078
3096
|
mappingIcon2.get(item.title),
|
3079
|
-
/* @__PURE__ */ (0,
|
3097
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react63.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
3080
3098
|
]
|
3081
3099
|
},
|
3082
3100
|
subMenu.id
|
@@ -3095,18 +3113,18 @@ var navigation_bar_default = NavigationBar;
|
|
3095
3113
|
|
3096
3114
|
// src/components/pagination/components/pagination.tsx
|
3097
3115
|
var import_icons5 = require("@chakra-ui/icons");
|
3098
|
-
var
|
3116
|
+
var import_react66 = require("@chakra-ui/react");
|
3099
3117
|
|
3100
3118
|
// src/components/pagination/components/pagination-button.tsx
|
3101
|
-
var
|
3102
|
-
var
|
3103
|
-
var PaginationButton = (0,
|
3104
|
-
const btnBg = (0,
|
3105
|
-
const btnColor = (0,
|
3106
|
-
const btnNotActiveBg = (0,
|
3107
|
-
const btnNotActiveColor = (0,
|
3108
|
-
return /* @__PURE__ */ (0,
|
3109
|
-
|
3119
|
+
var import_react64 = require("@chakra-ui/react");
|
3120
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
3121
|
+
var PaginationButton = (0, import_react64.forwardRef)(({ className, style, isActive, children, ...rest }, ref) => {
|
3122
|
+
const btnBg = (0, import_react64.useColorModeValue)("neutral.300", "mirage.900");
|
3123
|
+
const btnColor = (0, import_react64.useColorModeValue)("black.high", "primary.300");
|
3124
|
+
const btnNotActiveBg = (0, import_react64.useColorModeValue)("secondary.50", "primary.500");
|
3125
|
+
const btnNotActiveColor = (0, import_react64.useColorModeValue)("primary.500", "white");
|
3126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3127
|
+
import_react64.Button,
|
3110
3128
|
{
|
3111
3129
|
"data-test-id": "Pagination-Button",
|
3112
3130
|
ref,
|
@@ -3127,7 +3145,7 @@ var PaginationButton = (0, import_react63.forwardRef)(({ className, style, isAct
|
|
3127
3145
|
color: btnNotActiveColor
|
3128
3146
|
} : {},
|
3129
3147
|
_disabled: {
|
3130
|
-
background: (0,
|
3148
|
+
background: (0, import_react64.useColorModeValue)("neutral.300", "mirage.900"),
|
3131
3149
|
color: "neutral.600",
|
3132
3150
|
pointerEvents: "none"
|
3133
3151
|
},
|
@@ -3143,16 +3161,16 @@ PaginationButton.defaultProps = {
|
|
3143
3161
|
var pagination_button_default = PaginationButton;
|
3144
3162
|
|
3145
3163
|
// src/components/pagination/components/pagination-button-trigger.tsx
|
3146
|
-
var
|
3147
|
-
var
|
3164
|
+
var import_react65 = require("@chakra-ui/react");
|
3165
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
3148
3166
|
var PaginationButtonTrigger = ({
|
3149
3167
|
color,
|
3150
3168
|
isDisabled,
|
3151
3169
|
onClick,
|
3152
3170
|
visuallyHidden,
|
3153
3171
|
icon
|
3154
|
-
}) => /* @__PURE__ */ (0,
|
3155
|
-
/* @__PURE__ */ (0,
|
3172
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(pagination_button_default, { "data-test-id": "DLVCc_fBK35spHm5WxjcJ", color, isDisabled, onClick, children: [
|
3173
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react65.VisuallyHidden, { children: visuallyHidden }),
|
3156
3174
|
icon
|
3157
3175
|
] });
|
3158
3176
|
PaginationButtonTrigger.defaultProps = {
|
@@ -3165,10 +3183,10 @@ PaginationButtonTrigger.defaultProps = {
|
|
3165
3183
|
var pagination_button_trigger_default = PaginationButtonTrigger;
|
3166
3184
|
|
3167
3185
|
// src/components/pagination/components/pagination.tsx
|
3168
|
-
var
|
3186
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
3169
3187
|
var Pagination = ({ className, current, total, onSelect }) => {
|
3170
|
-
const btnColorDisabled = (0,
|
3171
|
-
const btnColor = (0,
|
3188
|
+
const btnColorDisabled = (0, import_react66.useColorModeValue)("secondary.100", "primary.500");
|
3189
|
+
const btnColor = (0, import_react66.useColorModeValue)("primary.500", "secondary.100");
|
3172
3190
|
const disabledPrevious = current === 1;
|
3173
3191
|
const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;
|
3174
3192
|
const disabledNext = current === total;
|
@@ -3195,8 +3213,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3195
3213
|
}
|
3196
3214
|
return pageButtons;
|
3197
3215
|
};
|
3198
|
-
return /* @__PURE__ */ (0,
|
3199
|
-
/* @__PURE__ */ (0,
|
3216
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_react66.Box, { className, display: "inline-flex", alignItems: "center", children: [
|
3217
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react66.Box, { mr: 1, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3200
3218
|
pagination_button_trigger_default,
|
3201
3219
|
{
|
3202
3220
|
"data-test-id": "Pagination-Button",
|
@@ -3204,11 +3222,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3204
3222
|
isDisabled: disabledPrevious,
|
3205
3223
|
onClick: () => handleSelectPage(1),
|
3206
3224
|
visuallyHidden: "First Page",
|
3207
|
-
icon: /* @__PURE__ */ (0,
|
3225
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons5.ArrowLeftIcon, { width: 2 })
|
3208
3226
|
}
|
3209
3227
|
) }),
|
3210
|
-
/* @__PURE__ */ (0,
|
3211
|
-
/* @__PURE__ */ (0,
|
3228
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_react66.Box, { bg: "neutral.300", borderRadius: "full", children: [
|
3229
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3212
3230
|
pagination_button_trigger_default,
|
3213
3231
|
{
|
3214
3232
|
"data-test-id": "Pagination-Button",
|
@@ -3216,22 +3234,22 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3216
3234
|
isDisabled: disabledPrevious,
|
3217
3235
|
onClick: () => handleSelectPage(current - 1),
|
3218
3236
|
visuallyHidden: "Previous Page",
|
3219
|
-
icon: /* @__PURE__ */ (0,
|
3237
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons5.ChevronLeftIcon, {})
|
3220
3238
|
}
|
3221
3239
|
),
|
3222
3240
|
generatePages().map((page) => {
|
3223
|
-
return /* @__PURE__ */ (0,
|
3241
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3224
3242
|
pagination_button_default,
|
3225
3243
|
{
|
3226
3244
|
"data-test-id": "Pagination-Button",
|
3227
3245
|
isActive: page === current,
|
3228
3246
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
3229
|
-
children: /* @__PURE__ */ (0,
|
3247
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react66.Text, { scale: 300, fontSize: "text.sm", lineHeight: 18, fontWeight: 500, children: page })
|
3230
3248
|
},
|
3231
3249
|
page
|
3232
3250
|
);
|
3233
3251
|
}),
|
3234
|
-
/* @__PURE__ */ (0,
|
3252
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3235
3253
|
pagination_button_trigger_default,
|
3236
3254
|
{
|
3237
3255
|
"data-test-id": "Pagination-Button",
|
@@ -3239,11 +3257,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3239
3257
|
isDisabled: disabledNext,
|
3240
3258
|
onClick: () => handleSelectPage(current + 1),
|
3241
3259
|
visuallyHidden: "Next Page",
|
3242
|
-
icon: /* @__PURE__ */ (0,
|
3260
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons5.ChevronRightIcon, {})
|
3243
3261
|
}
|
3244
3262
|
)
|
3245
3263
|
] }),
|
3246
|
-
/* @__PURE__ */ (0,
|
3264
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react66.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3247
3265
|
pagination_button_trigger_default,
|
3248
3266
|
{
|
3249
3267
|
"data-test-id": "Pagination-Button",
|
@@ -3251,7 +3269,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3251
3269
|
isDisabled: disabledNext,
|
3252
3270
|
onClick: () => handleSelectPage(total),
|
3253
3271
|
visuallyHidden: "Last Page",
|
3254
|
-
icon: /* @__PURE__ */ (0,
|
3272
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons5.ArrowRightIcon, { width: 2 })
|
3255
3273
|
}
|
3256
3274
|
) })
|
3257
3275
|
] });
|
@@ -3264,8 +3282,8 @@ Pagination.displayName = "Pagination";
|
|
3264
3282
|
var pagination_default = Pagination;
|
3265
3283
|
|
3266
3284
|
// src/components/pagination/components/pagination-detail.tsx
|
3267
|
-
var
|
3268
|
-
var
|
3285
|
+
var import_react67 = require("@chakra-ui/react");
|
3286
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
3269
3287
|
var PaginationDetail = ({
|
3270
3288
|
page,
|
3271
3289
|
limit,
|
@@ -3275,15 +3293,15 @@ var PaginationDetail = ({
|
|
3275
3293
|
lineHeight = 18,
|
3276
3294
|
...rest
|
3277
3295
|
}) => {
|
3278
|
-
return /* @__PURE__ */ (0,
|
3296
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react67.Text, { scale, fontSize, lineHeight, ...rest, children: `${(page - 1) * limit + 1}-${limit * page < length ? limit * page : length} dari ${length} item` });
|
3279
3297
|
};
|
3280
3298
|
var pagination_detail_default = PaginationDetail;
|
3281
3299
|
|
3282
3300
|
// src/components/pagination/components/pagination-filter.tsx
|
3283
|
-
var
|
3301
|
+
var import_react68 = require("@chakra-ui/react");
|
3284
3302
|
var React13 = __toESM(require("react"));
|
3285
3303
|
var import_fi7 = require("react-icons/fi");
|
3286
|
-
var
|
3304
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
3287
3305
|
var PaginationFilter = ({
|
3288
3306
|
limit,
|
3289
3307
|
label = "Baris per halaman:",
|
@@ -3292,10 +3310,10 @@ var PaginationFilter = ({
|
|
3292
3310
|
...rest
|
3293
3311
|
}) => {
|
3294
3312
|
const [value, setValue] = React13.useState(limit);
|
3295
|
-
return /* @__PURE__ */ (0,
|
3296
|
-
/* @__PURE__ */ (0,
|
3297
|
-
/* @__PURE__ */ (0,
|
3298
|
-
|
3313
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_react68.Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [
|
3314
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react68.Text, { fontSize: "text.sm", lineHeight: 18, color: (0, import_react68.useColorModeValue)("neutral.900", "white"), ...rest, children: label }),
|
3315
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
3316
|
+
import_react68.Select,
|
3299
3317
|
{
|
3300
3318
|
textAlign: "center",
|
3301
3319
|
size: "xs",
|
@@ -3303,7 +3321,7 @@ var PaginationFilter = ({
|
|
3303
3321
|
border: "none",
|
3304
3322
|
boxShadow: "none",
|
3305
3323
|
width: 18,
|
3306
|
-
icon: /* @__PURE__ */ (0,
|
3324
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_fi7.FiChevronDown, {}),
|
3307
3325
|
_focusVisible: { boxShadow: "none" },
|
3308
3326
|
onChange: (e) => {
|
3309
3327
|
const numberValue = Number(e.target.value);
|
@@ -3312,7 +3330,7 @@ var PaginationFilter = ({
|
|
3312
3330
|
},
|
3313
3331
|
value,
|
3314
3332
|
children: items.map((item) => {
|
3315
|
-
return /* @__PURE__ */ (0,
|
3333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("option", { value: item, children: item }, item);
|
3316
3334
|
})
|
3317
3335
|
}
|
3318
3336
|
)
|
@@ -3325,11 +3343,11 @@ PaginationFilter.defaultProps = {
|
|
3325
3343
|
var pagination_filter_default = PaginationFilter;
|
3326
3344
|
|
3327
3345
|
// src/components/popover/index.ts
|
3328
|
-
var
|
3346
|
+
var import_react69 = require("@chakra-ui/react");
|
3329
3347
|
|
3330
3348
|
// src/components/radio/components/radio.tsx
|
3331
|
-
var
|
3332
|
-
var
|
3349
|
+
var import_react70 = require("@chakra-ui/react");
|
3350
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
3333
3351
|
var Radio = ({
|
3334
3352
|
isError = false,
|
3335
3353
|
helpText = "",
|
@@ -3339,9 +3357,9 @@ var Radio = ({
|
|
3339
3357
|
...rest
|
3340
3358
|
}) => {
|
3341
3359
|
const variant = isError ? "errors" : "unstyled";
|
3342
|
-
return /* @__PURE__ */ (0,
|
3343
|
-
/* @__PURE__ */ (0,
|
3344
|
-
/* @__PURE__ */ (0,
|
3360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_react70.Box, { children: [
|
3361
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.Radio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.Text, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
3362
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.Box, { mt: "5px", ml: "24px", children: isError ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.Text, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.Text, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) })
|
3345
3363
|
] });
|
3346
3364
|
};
|
3347
3365
|
Radio.displayName = "Radio";
|
@@ -3352,8 +3370,8 @@ Radio.defaultProps = {
|
|
3352
3370
|
};
|
3353
3371
|
|
3354
3372
|
// src/components/radio/components/radio-group.tsx
|
3355
|
-
var
|
3356
|
-
var
|
3373
|
+
var import_react71 = require("@chakra-ui/react");
|
3374
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
3357
3375
|
var RadioGroup = ({
|
3358
3376
|
children,
|
3359
3377
|
label,
|
@@ -3362,7 +3380,7 @@ var RadioGroup = ({
|
|
3362
3380
|
errorMessage,
|
3363
3381
|
...props
|
3364
3382
|
}) => {
|
3365
|
-
return /* @__PURE__ */ (0,
|
3383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react71.Box, { mt: "12px", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react71.RadioGroup, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react71.Stack, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
|
3366
3384
|
};
|
3367
3385
|
RadioGroup.displayName = "RadioGroup";
|
3368
3386
|
RadioGroup.defaultProps = {
|
@@ -3372,14 +3390,14 @@ RadioGroup.defaultProps = {
|
|
3372
3390
|
};
|
3373
3391
|
|
3374
3392
|
// src/components/radio/index.ts
|
3375
|
-
var
|
3393
|
+
var import_react72 = require("@chakra-ui/react");
|
3376
3394
|
|
3377
3395
|
// src/components/rating/components/rating.tsx
|
3378
|
-
var
|
3379
|
-
var
|
3380
|
-
var
|
3396
|
+
var import_react73 = require("@chakra-ui/react");
|
3397
|
+
var import_internal_icon6 = require("@ctlyst.id/internal-icon");
|
3398
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
3381
3399
|
var Rating = ({ value }) => {
|
3382
|
-
return /* @__PURE__ */ (0,
|
3400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react73.Grid, { gap: "4px", display: "flex", children: [...Array(5)].map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_internal_icon6.Rating, { color: i < value ? "#FFA230" : "#E0E0E0", size: 24 })) });
|
3383
3401
|
};
|
3384
3402
|
var rating_default = Rating;
|
3385
3403
|
|
@@ -3388,10 +3406,10 @@ var import_system7 = require("@chakra-ui/system");
|
|
3388
3406
|
var import_react_select = __toESM(require("react-select"));
|
3389
3407
|
|
3390
3408
|
// src/components/select/components/select-wrapper.tsx
|
3391
|
-
var
|
3392
|
-
var
|
3409
|
+
var import_react74 = require("@chakra-ui/react");
|
3410
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
3393
3411
|
var SelectWrapper = ({ children }) => {
|
3394
|
-
return /* @__PURE__ */ (0,
|
3412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react74.Box, { children });
|
3395
3413
|
};
|
3396
3414
|
SelectWrapper.defaultProps = {
|
3397
3415
|
isError: false
|
@@ -3399,16 +3417,16 @@ SelectWrapper.defaultProps = {
|
|
3399
3417
|
var select_wrapper_default = SelectWrapper;
|
3400
3418
|
|
3401
3419
|
// src/config/theme/foundations/shadows.ts
|
3402
|
-
var
|
3420
|
+
var import_react75 = require("@chakra-ui/react");
|
3403
3421
|
var shadows = {
|
3404
|
-
...
|
3422
|
+
...import_react75.theme.shadows,
|
3405
3423
|
raised: "0px 4px 20px rgba(0, 0, 0, 0.05)"
|
3406
3424
|
};
|
3407
3425
|
|
3408
3426
|
// src/config/theme/foundations/sizes.ts
|
3409
|
-
var
|
3427
|
+
var import_react76 = require("@chakra-ui/react");
|
3410
3428
|
var sizes = {
|
3411
|
-
...
|
3429
|
+
...import_react76.theme.sizes,
|
3412
3430
|
4.5: "1.125rem",
|
3413
3431
|
9.5: "2.375rem",
|
3414
3432
|
18: "4.5rem",
|
@@ -3418,9 +3436,9 @@ var sizes = {
|
|
3418
3436
|
};
|
3419
3437
|
|
3420
3438
|
// src/config/theme/foundations/spacing.ts
|
3421
|
-
var
|
3439
|
+
var import_react77 = require("@chakra-ui/react");
|
3422
3440
|
var spacing = {
|
3423
|
-
...
|
3441
|
+
...import_react77.theme.space,
|
3424
3442
|
4.5: "1.125rem",
|
3425
3443
|
9.5: "2.375rem",
|
3426
3444
|
18: "4.5rem",
|
@@ -3727,14 +3745,14 @@ var themeSelect = (theme6) => {
|
|
3727
3745
|
};
|
3728
3746
|
|
3729
3747
|
// src/components/select/components/select.tsx
|
3730
|
-
var
|
3748
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
3731
3749
|
function Select2({
|
3732
3750
|
styles,
|
3733
3751
|
isError = false,
|
3734
3752
|
...rest
|
3735
3753
|
}) {
|
3736
3754
|
const { colorMode } = (0, import_system7.useColorMode)();
|
3737
|
-
return /* @__PURE__ */ (0,
|
3755
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(select_wrapper_default, { isError, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
3738
3756
|
import_react_select.default,
|
3739
3757
|
{
|
3740
3758
|
classNamePrefix: "react-select",
|
@@ -3749,14 +3767,14 @@ var select_default = Select2;
|
|
3749
3767
|
// src/components/select/components/select-async.tsx
|
3750
3768
|
var import_system8 = require("@chakra-ui/system");
|
3751
3769
|
var import_react_select_async_paginate = require("react-select-async-paginate");
|
3752
|
-
var
|
3770
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
3753
3771
|
function SelectAsync({
|
3754
3772
|
styles,
|
3755
3773
|
isError = false,
|
3756
3774
|
...rest
|
3757
3775
|
}) {
|
3758
3776
|
const { colorMode } = (0, import_system8.useColorMode)();
|
3759
|
-
return /* @__PURE__ */ (0,
|
3777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(select_wrapper_default, { isError, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
3760
3778
|
import_react_select_async_paginate.AsyncPaginate,
|
3761
3779
|
{
|
3762
3780
|
classNamePrefix: "react-select",
|
@@ -3771,10 +3789,10 @@ var select_async_default = SelectAsync;
|
|
3771
3789
|
// src/components/select/components/select-async-creatable.tsx
|
3772
3790
|
var import_system9 = require("@chakra-ui/system");
|
3773
3791
|
var import_async_creatable = __toESM(require("react-select/async-creatable"));
|
3774
|
-
var
|
3792
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
3775
3793
|
function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
3776
3794
|
const { colorMode } = (0, import_system9.useColorMode)();
|
3777
|
-
return /* @__PURE__ */ (0,
|
3795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(select_wrapper_default, { isError, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
3778
3796
|
import_async_creatable.default,
|
3779
3797
|
{
|
3780
3798
|
classNamePrefix: "react-select",
|
@@ -3788,10 +3806,10 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
3788
3806
|
// src/components/select/components/select-creatable.tsx
|
3789
3807
|
var import_system10 = require("@chakra-ui/system");
|
3790
3808
|
var import_creatable = __toESM(require("react-select/creatable"));
|
3791
|
-
var
|
3809
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
3792
3810
|
function SelectCreatable({ styles, isError = false, ...rest }) {
|
3793
3811
|
const { colorMode } = (0, import_system10.useColorMode)();
|
3794
|
-
return /* @__PURE__ */ (0,
|
3812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(select_wrapper_default, { isError, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3795
3813
|
import_creatable.default,
|
3796
3814
|
{
|
3797
3815
|
classNamePrefix: "react-select",
|
@@ -3803,16 +3821,16 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
3803
3821
|
}
|
3804
3822
|
|
3805
3823
|
// src/components/switch/components/switch.tsx
|
3806
|
-
var
|
3824
|
+
var import_react78 = require("@chakra-ui/react");
|
3807
3825
|
var import_shared_utils9 = require("@chakra-ui/shared-utils");
|
3808
|
-
var
|
3809
|
-
var
|
3810
|
-
var
|
3811
|
-
var Switch = (0,
|
3812
|
-
const styles = (0,
|
3813
|
-
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0,
|
3814
|
-
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0,
|
3815
|
-
const containerStyles = (0,
|
3826
|
+
var import_internal_icon7 = require("@ctlyst.id/internal-icon");
|
3827
|
+
var import_react79 = require("react");
|
3828
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
3829
|
+
var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
3830
|
+
const styles = (0, import_react78.useMultiStyleConfig)("Switch", props);
|
3831
|
+
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0, import_react78.omitThemingProps)(props);
|
3832
|
+
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0, import_react78.useCheckbox)(ownProps);
|
3833
|
+
const containerStyles = (0, import_react79.useMemo)(
|
3816
3834
|
() => ({
|
3817
3835
|
display: "inline-block",
|
3818
3836
|
position: "relative",
|
@@ -3822,7 +3840,7 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
3822
3840
|
}),
|
3823
3841
|
[styles.container]
|
3824
3842
|
);
|
3825
|
-
const trackStyles = (0,
|
3843
|
+
const trackStyles = (0, import_react79.useMemo)(
|
3826
3844
|
() => ({
|
3827
3845
|
display: "inline-flex",
|
3828
3846
|
flexShrink: 0,
|
@@ -3834,7 +3852,7 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
3834
3852
|
}),
|
3835
3853
|
[styles.track]
|
3836
3854
|
);
|
3837
|
-
const labelStyles = (0,
|
3855
|
+
const labelStyles = (0, import_react79.useMemo)(
|
3838
3856
|
() => ({
|
3839
3857
|
userSelect: "none",
|
3840
3858
|
marginStart: spacing2,
|
@@ -3850,8 +3868,8 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
3850
3868
|
};
|
3851
3869
|
return iconSize[value];
|
3852
3870
|
};
|
3853
|
-
return /* @__PURE__ */ (0,
|
3854
|
-
|
3871
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
3872
|
+
import_react78.chakra.label,
|
3855
3873
|
{
|
3856
3874
|
...getRootProps(),
|
3857
3875
|
display: "flex",
|
@@ -3859,14 +3877,14 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
3859
3877
|
className: (0, import_shared_utils9.cx)("chakra-switch", props.className),
|
3860
3878
|
__css: containerStyles,
|
3861
3879
|
children: [
|
3862
|
-
/* @__PURE__ */ (0,
|
3863
|
-
/* @__PURE__ */ (0,
|
3864
|
-
/* @__PURE__ */ (0,
|
3865
|
-
/* @__PURE__ */ (0,
|
3866
|
-
/* @__PURE__ */ (0,
|
3880
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
3881
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react78.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
3882
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react78.Flex, { gap: 2, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
|
3883
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_internal_icon7.Check, { color: "white", size: getIconSize(props.size) }),
|
3884
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_internal_icon7.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
3867
3885
|
] }),
|
3868
|
-
/* @__PURE__ */ (0,
|
3869
|
-
|
3886
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3887
|
+
import_react78.chakra.span,
|
3870
3888
|
{
|
3871
3889
|
__css: styles.thumb,
|
3872
3890
|
className: "chakra-switch__thumb",
|
@@ -3875,8 +3893,8 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
3875
3893
|
}
|
3876
3894
|
)
|
3877
3895
|
] }),
|
3878
|
-
children && /* @__PURE__ */ (0,
|
3879
|
-
|
3896
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3897
|
+
import_react78.chakra.span,
|
3880
3898
|
{
|
3881
3899
|
className: "chakra-switch__label",
|
3882
3900
|
color: state.isDisabled ? "black.low" : "black.high",
|
@@ -3895,18 +3913,18 @@ Switch.defaultProps = {
|
|
3895
3913
|
var switch_default = Switch;
|
3896
3914
|
|
3897
3915
|
// src/components/table/index.tsx
|
3898
|
-
var
|
3916
|
+
var import_react80 = require("@chakra-ui/react");
|
3899
3917
|
|
3900
3918
|
// src/components/tabs/components/tab.tsx
|
3901
|
-
var
|
3902
|
-
var
|
3903
|
-
var Tab = (0,
|
3919
|
+
var import_react81 = require("@chakra-ui/react");
|
3920
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
3921
|
+
var Tab = (0, import_react81.forwardRef)((props, ref) => {
|
3904
3922
|
var _a, _b;
|
3905
|
-
const tabProps = (0,
|
3923
|
+
const tabProps = (0, import_react81.useTab)({ ...props, ref });
|
3906
3924
|
const isSelected = !!tabProps["aria-selected"];
|
3907
|
-
const styles = (0,
|
3908
|
-
return /* @__PURE__ */ (0,
|
3909
|
-
|
3925
|
+
const styles = (0, import_react81.useMultiStyleConfig)("Tabs", tabProps);
|
3926
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
3927
|
+
import_react81.Button,
|
3910
3928
|
{
|
3911
3929
|
"data-test-id": props["data-test-id"],
|
3912
3930
|
p: 4,
|
@@ -3931,7 +3949,7 @@ var Tab = (0, import_react80.forwardRef)((props, ref) => {
|
|
3931
3949
|
},
|
3932
3950
|
__css: styles.tab,
|
3933
3951
|
...tabProps,
|
3934
|
-
children: /* @__PURE__ */ (0,
|
3952
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react81.Flex, { alignItems: "center", children: [
|
3935
3953
|
(_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
|
3936
3954
|
tabProps.children,
|
3937
3955
|
(_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
|
@@ -3942,16 +3960,16 @@ var Tab = (0, import_react80.forwardRef)((props, ref) => {
|
|
3942
3960
|
var tab_default = Tab;
|
3943
3961
|
|
3944
3962
|
// src/components/tabs/index.ts
|
3945
|
-
var
|
3963
|
+
var import_react82 = require("@chakra-ui/react");
|
3946
3964
|
|
3947
3965
|
// src/components/text/index.ts
|
3948
|
-
var
|
3966
|
+
var import_react83 = require("@chakra-ui/react");
|
3949
3967
|
|
3950
3968
|
// src/components/tooltip/index.ts
|
3951
|
-
var
|
3969
|
+
var import_react84 = require("@chakra-ui/react");
|
3952
3970
|
|
3953
3971
|
// src/components/uploader/components/uploader.tsx
|
3954
|
-
var
|
3972
|
+
var import_react85 = require("@chakra-ui/react");
|
3955
3973
|
var React15 = __toESM(require("react"));
|
3956
3974
|
var import_react_dropzone = require("react-dropzone");
|
3957
3975
|
|
@@ -3965,7 +3983,7 @@ var messages = {
|
|
3965
3983
|
};
|
3966
3984
|
|
3967
3985
|
// src/components/uploader/components/uploader.tsx
|
3968
|
-
var
|
3986
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
3969
3987
|
var Uploader = ({
|
3970
3988
|
onHandleUploadFile,
|
3971
3989
|
onHandleRejections,
|
@@ -4013,9 +4031,9 @@ var Uploader = ({
|
|
4013
4031
|
React15.useEffect(() => {
|
4014
4032
|
setIsSelected(selected != null ? selected : false);
|
4015
4033
|
}, [selected]);
|
4016
|
-
return /* @__PURE__ */ (0,
|
4017
|
-
/* @__PURE__ */ (0,
|
4018
|
-
|
4034
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_react85.Stack, { direction: "column", children: [
|
4035
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
4036
|
+
import_react85.Flex,
|
4019
4037
|
{
|
4020
4038
|
minH: 200,
|
4021
4039
|
border: "1px dashed",
|
@@ -4026,11 +4044,11 @@ var Uploader = ({
|
|
4026
4044
|
...props,
|
4027
4045
|
...getRootProps(),
|
4028
4046
|
children: [
|
4029
|
-
/* @__PURE__ */ (0,
|
4030
|
-
isDragActive ? /* @__PURE__ */ (0,
|
4031
|
-
!multiple && isSelected && /* @__PURE__ */ (0,
|
4032
|
-
!isSelected && /* @__PURE__ */ (0,
|
4033
|
-
isSelected ? /* @__PURE__ */ (0,
|
4047
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("input", { ...getInputProps() }),
|
4048
|
+
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react85.Text, { children: messages.dragActive }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_react85.Flex, { flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : "primary.500", children: [
|
4049
|
+
!multiple && isSelected && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react85.Heading, { fontWeight: 400, fontSize: "18px", lineHeight: 28, color: "black.high", mb: 2, children: selectedFirstFile == null ? void 0 : selectedFirstFile.name }),
|
4050
|
+
!isSelected && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react85.Heading, { fontWeight: 400, fontSize: "18px", lineHeight: 28, mb: 2, children: messages.uploadFile }),
|
4051
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react85.Text, { children: messages.dragReplace }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react85.Text, { children: messages.dragInActive })
|
4034
4052
|
] })
|
4035
4053
|
]
|
4036
4054
|
}
|
@@ -4047,10 +4065,10 @@ Uploader.defaultProps = {
|
|
4047
4065
|
var uploader_default = Uploader;
|
4048
4066
|
|
4049
4067
|
// src/components/index.ts
|
4050
|
-
var
|
4068
|
+
var import_react86 = require("@chakra-ui/react");
|
4051
4069
|
|
4052
4070
|
// src/config/theme/themeConfiguration.ts
|
4053
|
-
var
|
4071
|
+
var import_react92 = require("@chakra-ui/react");
|
4054
4072
|
|
4055
4073
|
// src/config/theme/components/index.ts
|
4056
4074
|
var components_exports = {};
|
@@ -4092,7 +4110,12 @@ var baseStyleButton = (0, import_styled_system.defineStyle)({
|
|
4092
4110
|
bg: "neutral.100"
|
4093
4111
|
},
|
4094
4112
|
_hover: {
|
4095
|
-
bg: "neutral.100"
|
4113
|
+
bg: "neutral.100",
|
4114
|
+
".eye-icon": {
|
4115
|
+
display: "block",
|
4116
|
+
opacity: 1,
|
4117
|
+
visibility: "visible"
|
4118
|
+
}
|
4096
4119
|
},
|
4097
4120
|
_disabled: {
|
4098
4121
|
opacity: 0.4,
|
@@ -4100,7 +4123,10 @@ var baseStyleButton = (0, import_styled_system.defineStyle)({
|
|
4100
4123
|
},
|
4101
4124
|
py: 2,
|
4102
4125
|
px: 4,
|
4103
|
-
position: "relative"
|
4126
|
+
position: "relative",
|
4127
|
+
".eye-icon": {
|
4128
|
+
visibility: "hidden"
|
4129
|
+
}
|
4104
4130
|
});
|
4105
4131
|
var baseStylePanel = (0, import_styled_system.defineStyle)({
|
4106
4132
|
pt: "2",
|
@@ -4557,8 +4583,8 @@ var card_default2 = CardStyle;
|
|
4557
4583
|
|
4558
4584
|
// src/config/theme/components/checkbox.ts
|
4559
4585
|
var import_anatomy3 = require("@chakra-ui/anatomy");
|
4560
|
-
var
|
4561
|
-
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0,
|
4586
|
+
var import_react87 = require("@chakra-ui/react");
|
4587
|
+
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0, import_react87.createMultiStyleConfigHelpers)(import_anatomy3.checkboxAnatomy.keys);
|
4562
4588
|
var baseStyle3 = definePartsStyle3({
|
4563
4589
|
control: {
|
4564
4590
|
borderRadius: "sm",
|
@@ -4839,8 +4865,8 @@ var input_default = Input4;
|
|
4839
4865
|
|
4840
4866
|
// src/config/theme/components/loader.ts
|
4841
4867
|
var import_styled_system8 = require("@chakra-ui/styled-system");
|
4842
|
-
var
|
4843
|
-
var rotate = (0,
|
4868
|
+
var import_react88 = require("@emotion/react");
|
4869
|
+
var rotate = (0, import_react88.keyframes)({
|
4844
4870
|
"0%": {
|
4845
4871
|
transform: "rotate(0deg)"
|
4846
4872
|
},
|
@@ -4970,8 +4996,8 @@ var modal_default = Modal3;
|
|
4970
4996
|
|
4971
4997
|
// src/config/theme/components/radio.ts
|
4972
4998
|
var import_anatomy5 = require("@chakra-ui/anatomy");
|
4973
|
-
var
|
4974
|
-
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0,
|
4999
|
+
var import_react89 = require("@chakra-ui/react");
|
5000
|
+
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0, import_react89.createMultiStyleConfigHelpers)(import_anatomy5.radioAnatomy.keys);
|
4975
5001
|
var baseStyle6 = definePartsStyle5({
|
4976
5002
|
control: {
|
4977
5003
|
border: "1px solid",
|
@@ -5399,7 +5425,7 @@ var tabsTheme = defineMultiStyleConfig8({
|
|
5399
5425
|
var tabs_default = tabsTheme;
|
5400
5426
|
|
5401
5427
|
// src/config/theme/components/textarea.ts
|
5402
|
-
var
|
5428
|
+
var import_react90 = require("@chakra-ui/react");
|
5403
5429
|
var getProps = (props) => {
|
5404
5430
|
const { isError, isSuccess, isDisabled } = props;
|
5405
5431
|
let borderColor = "neutral.400";
|
@@ -5419,7 +5445,7 @@ var getProps = (props) => {
|
|
5419
5445
|
borderColor
|
5420
5446
|
};
|
5421
5447
|
};
|
5422
|
-
var outline2 = (0,
|
5448
|
+
var outline2 = (0, import_react90.defineStyle)((props) => {
|
5423
5449
|
const { focusBorderColor, borderColor } = getProps(props);
|
5424
5450
|
return {
|
5425
5451
|
background: "white.high",
|
@@ -5463,7 +5489,7 @@ var outline2 = (0, import_react89.defineStyle)((props) => {
|
|
5463
5489
|
}
|
5464
5490
|
};
|
5465
5491
|
});
|
5466
|
-
var Textarea = (0,
|
5492
|
+
var Textarea = (0, import_react90.defineStyleConfig)({
|
5467
5493
|
variants: { outline: outline2 },
|
5468
5494
|
defaultProps: {
|
5469
5495
|
variant: "outline"
|
@@ -5472,14 +5498,14 @@ var Textarea = (0, import_react89.defineStyleConfig)({
|
|
5472
5498
|
var textarea_default2 = Textarea;
|
5473
5499
|
|
5474
5500
|
// src/config/theme/components/tooltip.ts
|
5475
|
-
var
|
5476
|
-
var $arrowBg = (0,
|
5501
|
+
var import_react91 = require("@chakra-ui/react");
|
5502
|
+
var $arrowBg = (0, import_react91.cssVar)("popper-arrow-bg");
|
5477
5503
|
var baseStyle9 = {
|
5478
5504
|
bg: "neutral.700",
|
5479
5505
|
fontSize: "text.sm",
|
5480
5506
|
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
5481
5507
|
};
|
5482
|
-
var Tooltip2 = (0,
|
5508
|
+
var Tooltip2 = (0, import_react91.defineStyleConfig)({ baseStyle: baseStyle9 });
|
5483
5509
|
var tooltip_default = Tooltip2;
|
5484
5510
|
|
5485
5511
|
// src/config/theme/themeConfiguration.ts
|
@@ -5489,7 +5515,7 @@ var config = {
|
|
5489
5515
|
useSystemColorMode: false
|
5490
5516
|
};
|
5491
5517
|
var getTheme = (foundations) => {
|
5492
|
-
return (0,
|
5518
|
+
return (0, import_react92.extendTheme)({
|
5493
5519
|
...foundations,
|
5494
5520
|
components: {
|
5495
5521
|
...components_exports
|
@@ -5505,7 +5531,7 @@ var getTheme = (foundations) => {
|
|
5505
5531
|
config
|
5506
5532
|
});
|
5507
5533
|
};
|
5508
|
-
var theme5 = (0,
|
5534
|
+
var theme5 = (0, import_react92.extendTheme)({
|
5509
5535
|
components: {
|
5510
5536
|
...components_exports
|
5511
5537
|
},
|
@@ -5525,23 +5551,23 @@ var theme5 = (0, import_react91.extendTheme)({
|
|
5525
5551
|
|
5526
5552
|
// src/hooks/useFetcher.ts
|
5527
5553
|
var import_axios2 = __toESM(require("axios"));
|
5528
|
-
var
|
5554
|
+
var import_react95 = require("react");
|
5529
5555
|
|
5530
5556
|
// src/provider/components/provider.tsx
|
5531
5557
|
var import_axios = __toESM(require("axios"));
|
5532
|
-
var
|
5558
|
+
var import_react93 = require("react");
|
5533
5559
|
var import_react_toastify = require("react-toastify");
|
5534
|
-
var
|
5535
|
-
var ProviderContext = (0,
|
5560
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
5561
|
+
var ProviderContext = (0, import_react93.createContext)({
|
5536
5562
|
instance: void 0
|
5537
5563
|
});
|
5538
5564
|
var useInternalUI = () => {
|
5539
|
-
const { instance } = (0,
|
5565
|
+
const { instance } = (0, import_react93.useContext)(ProviderContext);
|
5540
5566
|
return { instance };
|
5541
5567
|
};
|
5542
5568
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
5543
|
-
const instanceRef = (0,
|
5544
|
-
(0,
|
5569
|
+
const instanceRef = (0, import_react93.useRef)(import_axios.default.create(config2));
|
5570
|
+
(0, import_react93.useEffect)(() => {
|
5545
5571
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
5546
5572
|
instanceRef.current.interceptors.request.use(interceptor);
|
5547
5573
|
});
|
@@ -5549,9 +5575,9 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
5549
5575
|
instanceRef.current.interceptors.response.use(interceptor);
|
5550
5576
|
});
|
5551
5577
|
}, [requestInterceptors, responseInterceptors]);
|
5552
|
-
const provider = (0,
|
5553
|
-
return /* @__PURE__ */ (0,
|
5554
|
-
/* @__PURE__ */ (0,
|
5578
|
+
const provider = (0, import_react93.useMemo)(() => ({ instance: instanceRef.current }), []);
|
5579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(ProviderContext.Provider, { value: provider, children: [
|
5580
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_toastify.ToastContainer, {}),
|
5555
5581
|
children
|
5556
5582
|
] });
|
5557
5583
|
};
|
@@ -5559,12 +5585,12 @@ Provider.displayName = "Provider";
|
|
5559
5585
|
var provider_default = Provider;
|
5560
5586
|
|
5561
5587
|
// src/provider/index.ts
|
5562
|
-
var
|
5588
|
+
var import_react94 = require("@chakra-ui/react");
|
5563
5589
|
|
5564
5590
|
// src/hooks/useFetcher.ts
|
5565
5591
|
function useFetcher() {
|
5566
5592
|
const { instance } = useInternalUI();
|
5567
|
-
const axiosInstance = (0,
|
5593
|
+
const axiosInstance = (0, import_react95.useMemo)(() => instance || import_axios2.default, [instance]);
|
5568
5594
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
5569
5595
|
const response = await axiosInstance.request({
|
5570
5596
|
data,
|
@@ -5584,15 +5610,16 @@ function useFetcher() {
|
|
5584
5610
|
}
|
5585
5611
|
|
5586
5612
|
// src/hooks/index.ts
|
5587
|
-
var
|
5613
|
+
var import_react96 = require("@chakra-ui/react");
|
5588
5614
|
|
5589
5615
|
// src/index.ts
|
5590
|
-
var
|
5616
|
+
var import_react97 = require("@chakra-ui/react");
|
5591
5617
|
// Annotate the CommonJS export names for ESM import in node:
|
5592
5618
|
0 && (module.exports = {
|
5593
5619
|
Accordion,
|
5594
5620
|
AccordionButton,
|
5595
5621
|
AccordionButtonProps,
|
5622
|
+
AccordionEye,
|
5596
5623
|
AccordionIcon,
|
5597
5624
|
AccordionIconProps,
|
5598
5625
|
AccordionIndicator,
|