@ctlyst.id/internal-ui 2.1.11-canary.2 → 2.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +908 -2261
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +433 -1795
- package/dist/index.mjs.map +1 -1
- package/package.json +31 -28
package/dist/index.js
CHANGED
|
@@ -31,689 +31,355 @@ 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
|
-
AccordionIcon: () =>
|
|
38
|
-
AccordionIconProps: () =>
|
|
34
|
+
Accordion: () => import_react2.Accordion,
|
|
35
|
+
AccordionButton: () => import_react2.AccordionButton,
|
|
36
|
+
AccordionButtonProps: () => import_react2.AccordionButtonProps,
|
|
37
|
+
AccordionIcon: () => import_react2.AccordionIcon,
|
|
38
|
+
AccordionIconProps: () => import_react2.AccordionIconProps,
|
|
39
39
|
AccordionIndicator: () => AccordionIndicator,
|
|
40
|
-
AccordionItem: () =>
|
|
41
|
-
AccordionItemProps: () =>
|
|
42
|
-
AccordionPanel: () =>
|
|
43
|
-
AccordionPanelProps: () =>
|
|
44
|
-
AccordionProps: () =>
|
|
45
|
-
AccordionProvider: () =>
|
|
40
|
+
AccordionItem: () => import_react2.AccordionItem,
|
|
41
|
+
AccordionItemProps: () => import_react2.AccordionItemProps,
|
|
42
|
+
AccordionPanel: () => import_react2.AccordionPanel,
|
|
43
|
+
AccordionPanelProps: () => import_react2.AccordionPanelProps,
|
|
44
|
+
AccordionProps: () => import_react2.AccordionProps,
|
|
45
|
+
AccordionProvider: () => import_react2.AccordionProvider,
|
|
46
46
|
Alert: () => Alert,
|
|
47
47
|
AlertAction: () => AlertAction,
|
|
48
48
|
AlertClose: () => AlertClose,
|
|
49
49
|
AlertDescription: () => AlertDescription,
|
|
50
|
-
AlertDialog: () =>
|
|
51
|
-
AlertDialogBody: () =>
|
|
52
|
-
AlertDialogCloseButton: () =>
|
|
53
|
-
AlertDialogContent: () =>
|
|
54
|
-
AlertDialogFooter: () =>
|
|
55
|
-
AlertDialogHeader: () =>
|
|
56
|
-
AlertDialogOverlay: () =>
|
|
57
|
-
AlertDialogProps: () =>
|
|
50
|
+
AlertDialog: () => import_react58.AlertDialog,
|
|
51
|
+
AlertDialogBody: () => import_react58.ModalBody,
|
|
52
|
+
AlertDialogCloseButton: () => import_react58.ModalCloseButton,
|
|
53
|
+
AlertDialogContent: () => import_react58.AlertDialogContent,
|
|
54
|
+
AlertDialogFooter: () => import_react58.ModalFooter,
|
|
55
|
+
AlertDialogHeader: () => import_react58.ModalHeader,
|
|
56
|
+
AlertDialogOverlay: () => import_react58.ModalOverlay,
|
|
57
|
+
AlertDialogProps: () => import_react58.AlertDialogProps,
|
|
58
58
|
AlertIcon: () => AlertIcon,
|
|
59
59
|
AlertTitle: () => AlertTitle,
|
|
60
60
|
Anchor: () => Anchor,
|
|
61
|
-
Avatar: () =>
|
|
62
|
-
AvatarBadge: () =>
|
|
63
|
-
AvatarBadgeProps: () =>
|
|
64
|
-
AvatarGroup: () =>
|
|
65
|
-
AvatarGroupProps: () =>
|
|
66
|
-
AvatarProps: () =>
|
|
61
|
+
Avatar: () => import_react85.Avatar,
|
|
62
|
+
AvatarBadge: () => import_react85.AvatarBadge,
|
|
63
|
+
AvatarBadgeProps: () => import_react85.AvatarBadgeProps,
|
|
64
|
+
AvatarGroup: () => import_react85.AvatarGroup,
|
|
65
|
+
AvatarGroupProps: () => import_react85.AvatarGroupProps,
|
|
66
|
+
AvatarProps: () => import_react85.AvatarProps,
|
|
67
67
|
Badge: () => badge_default,
|
|
68
|
-
Box: () =>
|
|
69
|
-
BoxProps: () =>
|
|
68
|
+
Box: () => import_react47.Box,
|
|
69
|
+
BoxProps: () => import_react47.BoxProps,
|
|
70
70
|
BreadCrumb: () => bread_crumb_default,
|
|
71
71
|
Button: () => button_default,
|
|
72
|
-
ButtonGroup: () =>
|
|
73
|
-
ButtonGroupProps: () =>
|
|
72
|
+
ButtonGroup: () => import_react8.ButtonGroup,
|
|
73
|
+
ButtonGroupProps: () => import_react8.ButtonGroupProps,
|
|
74
74
|
Card: () => card_default,
|
|
75
|
-
Center: () =>
|
|
76
|
-
ChakraProvider: () =>
|
|
77
|
-
ChakraProviderProps: () =>
|
|
78
|
-
ChakraTable: () =>
|
|
75
|
+
Center: () => import_react47.Center,
|
|
76
|
+
ChakraProvider: () => import_react93.ChakraProvider,
|
|
77
|
+
ChakraProviderProps: () => import_react93.ChakraProviderProps,
|
|
78
|
+
ChakraTable: () => import_react79.Table,
|
|
79
79
|
Checkbox: () => checkbox_default,
|
|
80
80
|
CheckboxGroup: () => checkbox_group_default,
|
|
81
|
-
|
|
81
|
+
CheckboxGroupContext: () => import_react15.CheckboxGroupContext,
|
|
82
|
+
CheckboxGroupProps: () => import_react15.CheckboxGroupProps,
|
|
83
|
+
CheckboxIcon: () => import_react15.CheckboxIcon,
|
|
84
|
+
CheckboxIconProps: () => import_react15.CheckboxIconProps,
|
|
85
|
+
CheckboxState: () => import_react15.CheckboxState,
|
|
82
86
|
Chips: () => chips_default,
|
|
83
|
-
CloseButton: () =>
|
|
84
|
-
CloseButtonProps: () =>
|
|
85
|
-
Code: () =>
|
|
86
|
-
CodeProps: () =>
|
|
87
|
-
Collapse: () =>
|
|
88
|
-
CollapseProps: () =>
|
|
89
|
-
ColorMode: () =>
|
|
90
|
-
ColorModeScript: () =>
|
|
91
|
-
ColorModeScriptProps: () =>
|
|
92
|
-
Container: () =>
|
|
93
|
-
ContainerProps: () =>
|
|
87
|
+
CloseButton: () => import_react8.CloseButton,
|
|
88
|
+
CloseButtonProps: () => import_react8.CloseButtonProps,
|
|
89
|
+
Code: () => import_react82.Code,
|
|
90
|
+
CodeProps: () => import_react82.CodeProps,
|
|
91
|
+
Collapse: () => import_react85.Collapse,
|
|
92
|
+
CollapseProps: () => import_react85.CollapseProps,
|
|
93
|
+
ColorMode: () => import_react93.ColorMode,
|
|
94
|
+
ColorModeScript: () => import_react93.ColorModeScript,
|
|
95
|
+
ColorModeScriptProps: () => import_react93.ColorModeScriptProps,
|
|
96
|
+
Container: () => import_react47.Container,
|
|
97
|
+
ContainerProps: () => import_react47.ContainerProps,
|
|
94
98
|
Counter: () => counter_default,
|
|
95
99
|
DataTable: () => data_table_default,
|
|
96
100
|
DatePickerMonth: () => datepicker_month_default,
|
|
97
101
|
Datepicker: () => datepicker_default,
|
|
98
102
|
Dialog: () => dialog_default,
|
|
99
|
-
Divider: () =>
|
|
100
|
-
DividerProps: () =>
|
|
101
|
-
Drawer: () =>
|
|
102
|
-
DrawerBody: () =>
|
|
103
|
-
DrawerCloseButton: () =>
|
|
104
|
-
DrawerContent: () =>
|
|
105
|
-
DrawerContentProps: () =>
|
|
106
|
-
DrawerFooter: () =>
|
|
107
|
-
DrawerHeader: () =>
|
|
108
|
-
DrawerOverlay: () =>
|
|
109
|
-
DrawerProps: () =>
|
|
110
|
-
Fade: () =>
|
|
111
|
-
FadeProps: () =>
|
|
103
|
+
Divider: () => import_react47.Divider,
|
|
104
|
+
DividerProps: () => import_react47.DividerProps,
|
|
105
|
+
Drawer: () => import_react58.Drawer,
|
|
106
|
+
DrawerBody: () => import_react58.ModalBody,
|
|
107
|
+
DrawerCloseButton: () => import_react58.ModalCloseButton,
|
|
108
|
+
DrawerContent: () => import_react58.DrawerContent,
|
|
109
|
+
DrawerContentProps: () => import_react58.DrawerContentProps,
|
|
110
|
+
DrawerFooter: () => import_react58.ModalFooter,
|
|
111
|
+
DrawerHeader: () => import_react58.ModalHeader,
|
|
112
|
+
DrawerOverlay: () => import_react58.ModalOverlay,
|
|
113
|
+
DrawerProps: () => import_react58.DrawerProps,
|
|
114
|
+
Fade: () => import_react85.Fade,
|
|
115
|
+
FadeProps: () => import_react85.FadeProps,
|
|
112
116
|
Field: () => field_default,
|
|
113
|
-
Flex: () =>
|
|
114
|
-
FlexProps: () =>
|
|
115
|
-
FormControl: () =>
|
|
116
|
-
FormControlProps: () =>
|
|
117
|
-
FormErrorMessage: () =>
|
|
118
|
-
FormHelperText: () =>
|
|
119
|
-
FormLabel: () =>
|
|
120
|
-
FormLabelProps: () =>
|
|
121
|
-
Grid: () =>
|
|
122
|
-
GridItem: () =>
|
|
123
|
-
GridItemProps: () =>
|
|
124
|
-
GridProps: () =>
|
|
125
|
-
HStack: () =>
|
|
117
|
+
Flex: () => import_react47.Flex,
|
|
118
|
+
FlexProps: () => import_react47.FlexProps,
|
|
119
|
+
FormControl: () => import_react26.FormControl,
|
|
120
|
+
FormControlProps: () => import_react26.FormControlProps,
|
|
121
|
+
FormErrorMessage: () => import_react26.FormErrorMessage,
|
|
122
|
+
FormHelperText: () => import_react26.FormHelperText,
|
|
123
|
+
FormLabel: () => import_react26.FormLabel,
|
|
124
|
+
FormLabelProps: () => import_react26.FormLabelProps,
|
|
125
|
+
Grid: () => import_react47.Grid,
|
|
126
|
+
GridItem: () => import_react47.GridItem,
|
|
127
|
+
GridItemProps: () => import_react47.GridItemProps,
|
|
128
|
+
GridProps: () => import_react47.GridProps,
|
|
129
|
+
HStack: () => import_react47.HStack,
|
|
126
130
|
Header: () => header_default,
|
|
127
|
-
Heading: () =>
|
|
128
|
-
HeadingProps: () =>
|
|
129
|
-
Hide: () =>
|
|
130
|
-
HideProps: () =>
|
|
131
|
-
Icon: () =>
|
|
132
|
-
IconButton: () =>
|
|
133
|
-
IconButtonProps: () =>
|
|
134
|
-
IconProps: () =>
|
|
135
|
-
Image: () =>
|
|
136
|
-
ImageProps: () =>
|
|
137
|
-
Img: () =>
|
|
138
|
-
ImgProps: () =>
|
|
131
|
+
Heading: () => import_react82.Heading,
|
|
132
|
+
HeadingProps: () => import_react82.HeadingProps,
|
|
133
|
+
Hide: () => import_react85.Hide,
|
|
134
|
+
HideProps: () => import_react85.HideProps,
|
|
135
|
+
Icon: () => import_react46.Icon,
|
|
136
|
+
IconButton: () => import_react8.IconButton,
|
|
137
|
+
IconButtonProps: () => import_react8.IconButtonProps,
|
|
138
|
+
IconProps: () => import_react46.IconProps,
|
|
139
|
+
Image: () => import_react46.Image,
|
|
140
|
+
ImageProps: () => import_react46.ImageProps,
|
|
141
|
+
Img: () => import_react85.Img,
|
|
142
|
+
ImgProps: () => import_react85.ImgProps,
|
|
139
143
|
InputAddonLeft: () => InputAddonLeft,
|
|
140
144
|
InputAddonRight: () => InputAddonRight,
|
|
141
|
-
InputElementLeft: () =>
|
|
142
|
-
InputElementRight: () =>
|
|
145
|
+
InputElementLeft: () => import_react19.InputLeftElement,
|
|
146
|
+
InputElementRight: () => import_react20.InputRightElement,
|
|
143
147
|
InputField: () => input_field_default2,
|
|
144
|
-
InputGroup: () =>
|
|
145
|
-
InputGroupProps: () =>
|
|
146
|
-
InputLeftAddon: () =>
|
|
147
|
-
InputLeftAddonProps: () =>
|
|
148
|
-
InputLeftElement: () =>
|
|
149
|
-
InputLeftElementProps: () =>
|
|
150
|
-
InputProps: () =>
|
|
151
|
-
InputRightAddon: () =>
|
|
152
|
-
InputRightAddonProps: () =>
|
|
153
|
-
InputRightElement: () =>
|
|
154
|
-
InputRightElementProps: () =>
|
|
155
|
-
Link: () =>
|
|
156
|
-
LinkProps: () =>
|
|
157
|
-
List: () =>
|
|
158
|
-
ListIcon: () =>
|
|
159
|
-
ListItem: () =>
|
|
160
|
-
ListItemProps: () =>
|
|
161
|
-
ListProps: () =>
|
|
148
|
+
InputGroup: () => import_react26.InputGroup,
|
|
149
|
+
InputGroupProps: () => import_react26.InputGroupProps,
|
|
150
|
+
InputLeftAddon: () => import_react26.InputLeftAddon,
|
|
151
|
+
InputLeftAddonProps: () => import_react26.InputLeftAddonProps,
|
|
152
|
+
InputLeftElement: () => import_react26.InputLeftElement,
|
|
153
|
+
InputLeftElementProps: () => import_react26.InputLeftElementProps,
|
|
154
|
+
InputProps: () => import_react26.InputProps,
|
|
155
|
+
InputRightAddon: () => import_react26.InputRightAddon,
|
|
156
|
+
InputRightAddonProps: () => import_react26.InputRightAddonProps,
|
|
157
|
+
InputRightElement: () => import_react26.InputRightElement,
|
|
158
|
+
InputRightElementProps: () => import_react26.InputRightElementProps,
|
|
159
|
+
Link: () => import_react82.Link,
|
|
160
|
+
LinkProps: () => import_react82.LinkProps,
|
|
161
|
+
List: () => import_react48.List,
|
|
162
|
+
ListIcon: () => import_react48.ListIcon,
|
|
163
|
+
ListItem: () => import_react48.ListItem,
|
|
164
|
+
ListItemProps: () => import_react48.ListItemProps,
|
|
165
|
+
ListProps: () => import_react48.ListProps,
|
|
162
166
|
Loader: () => loader_default,
|
|
163
167
|
MainMenu: () => navigation_default,
|
|
164
|
-
Modal: () =>
|
|
168
|
+
Modal: () => import_react58.Modal,
|
|
169
|
+
ModalBackButton: () => modal_back_button_default,
|
|
165
170
|
ModalBody: () => modal_body_default,
|
|
166
|
-
ModalBodyProps: () =>
|
|
171
|
+
ModalBodyProps: () => import_react58.ModalBodyProps,
|
|
167
172
|
ModalCloseButton: () => modal_close_button_default,
|
|
168
|
-
ModalContent: () =>
|
|
169
|
-
ModalContentProps: () =>
|
|
170
|
-
ModalContextProvider: () =>
|
|
171
|
-
ModalFocusScope: () =>
|
|
173
|
+
ModalContent: () => import_react58.ModalContent,
|
|
174
|
+
ModalContentProps: () => import_react58.ModalContentProps,
|
|
175
|
+
ModalContextProvider: () => import_react58.ModalContextProvider,
|
|
176
|
+
ModalFocusScope: () => import_react58.ModalFocusScope,
|
|
172
177
|
ModalFooter: () => modal_footer_default,
|
|
173
|
-
ModalFooterProps: () =>
|
|
178
|
+
ModalFooterProps: () => import_react58.ModalFooterProps,
|
|
174
179
|
ModalHeader: () => modal_header_default,
|
|
175
|
-
ModalHeaderProps: () =>
|
|
176
|
-
ModalOverlay: () =>
|
|
177
|
-
ModalOverlayProps: () =>
|
|
178
|
-
ModalProps: () =>
|
|
180
|
+
ModalHeaderProps: () => import_react58.ModalHeaderProps,
|
|
181
|
+
ModalOverlay: () => import_react58.ModalOverlay,
|
|
182
|
+
ModalOverlayProps: () => import_react58.ModalOverlayProps,
|
|
183
|
+
ModalProps: () => import_react58.ModalProps,
|
|
179
184
|
MultiDatePickerMonth: () => multi_datepicker_month_default,
|
|
180
185
|
NavigationBar: () => navigation_bar_default,
|
|
181
|
-
OrderedList: () =>
|
|
186
|
+
OrderedList: () => import_react48.OrderedList,
|
|
182
187
|
Pagination: () => pagination_default,
|
|
183
188
|
PaginationDetail: () => pagination_detail_default,
|
|
184
189
|
PaginationFilter: () => pagination_filter_default,
|
|
185
|
-
Popover: () =>
|
|
186
|
-
PopoverAnchor: () =>
|
|
187
|
-
PopoverArrow: () =>
|
|
188
|
-
PopoverArrowProps: () =>
|
|
189
|
-
PopoverBody: () =>
|
|
190
|
-
PopoverBodyProps: () =>
|
|
191
|
-
PopoverCloseButton: () =>
|
|
192
|
-
PopoverContent: () =>
|
|
193
|
-
PopoverContentProps: () =>
|
|
194
|
-
PopoverFooter: () =>
|
|
195
|
-
PopoverFooterProps: () =>
|
|
196
|
-
PopoverHeader: () =>
|
|
197
|
-
PopoverHeaderProps: () =>
|
|
198
|
-
PopoverProps: () =>
|
|
199
|
-
PopoverTrigger: () =>
|
|
200
|
-
Portal: () =>
|
|
201
|
-
PortalProps: () =>
|
|
190
|
+
Popover: () => import_react68.Popover,
|
|
191
|
+
PopoverAnchor: () => import_react68.PopoverAnchor,
|
|
192
|
+
PopoverArrow: () => import_react68.PopoverArrow,
|
|
193
|
+
PopoverArrowProps: () => import_react68.PopoverArrowProps,
|
|
194
|
+
PopoverBody: () => import_react68.PopoverBody,
|
|
195
|
+
PopoverBodyProps: () => import_react68.PopoverBodyProps,
|
|
196
|
+
PopoverCloseButton: () => import_react68.PopoverCloseButton,
|
|
197
|
+
PopoverContent: () => import_react68.PopoverContent,
|
|
198
|
+
PopoverContentProps: () => import_react68.PopoverContentProps,
|
|
199
|
+
PopoverFooter: () => import_react68.PopoverFooter,
|
|
200
|
+
PopoverFooterProps: () => import_react68.PopoverFooterProps,
|
|
201
|
+
PopoverHeader: () => import_react68.PopoverHeader,
|
|
202
|
+
PopoverHeaderProps: () => import_react68.PopoverHeaderProps,
|
|
203
|
+
PopoverProps: () => import_react68.PopoverProps,
|
|
204
|
+
PopoverTrigger: () => import_react68.PopoverTrigger,
|
|
205
|
+
Portal: () => import_react68.Portal,
|
|
206
|
+
PortalProps: () => import_react68.PortalProps,
|
|
202
207
|
Provider: () => provider_default,
|
|
203
208
|
ProviderContext: () => ProviderContext,
|
|
204
209
|
Radio: () => Radio,
|
|
205
210
|
RadioGroup: () => RadioGroup,
|
|
211
|
+
RadioGroupContext: () => import_react71.RadioGroupContext,
|
|
206
212
|
Rating: () => rating_default,
|
|
207
|
-
RequiredIndicator: () =>
|
|
208
|
-
RequiredIndicatorProps: () =>
|
|
209
|
-
ScaleFade: () =>
|
|
210
|
-
ScaleFadeProps: () =>
|
|
213
|
+
RequiredIndicator: () => import_react26.RequiredIndicator,
|
|
214
|
+
RequiredIndicatorProps: () => import_react26.RequiredIndicatorProps,
|
|
215
|
+
ScaleFade: () => import_react85.ScaleFade,
|
|
216
|
+
ScaleFadeProps: () => import_react85.ScaleFadeProps,
|
|
211
217
|
Select: () => select_default,
|
|
212
218
|
SelectAsync: () => select_async_default,
|
|
213
219
|
SelectAsyncCreatable: () => SelectAsyncCreatable,
|
|
214
220
|
SelectCreatable: () => SelectCreatable,
|
|
215
|
-
Show: () =>
|
|
216
|
-
ShowProps: () =>
|
|
217
|
-
SimpleGrid: () =>
|
|
218
|
-
Skeleton: () =>
|
|
219
|
-
Slide: () =>
|
|
220
|
-
SlideFade: () =>
|
|
221
|
-
SlideFadeProps: () =>
|
|
222
|
-
SlideProps: () =>
|
|
223
|
-
Spacer: () =>
|
|
224
|
-
Stack: () =>
|
|
225
|
-
StackProps: () =>
|
|
226
|
-
Step: () =>
|
|
227
|
-
StepDescription: () =>
|
|
228
|
-
StepIcon: () =>
|
|
229
|
-
StepIndicator: () =>
|
|
230
|
-
StepNumber: () =>
|
|
231
|
-
StepSeparator: () =>
|
|
232
|
-
StepStatus: () =>
|
|
233
|
-
StepTitle: () =>
|
|
234
|
-
Stepper: () =>
|
|
221
|
+
Show: () => import_react85.Show,
|
|
222
|
+
ShowProps: () => import_react85.ShowProps,
|
|
223
|
+
SimpleGrid: () => import_react47.SimpleGrid,
|
|
224
|
+
Skeleton: () => import_react4.Skeleton,
|
|
225
|
+
Slide: () => import_react85.Slide,
|
|
226
|
+
SlideFade: () => import_react85.SlideFade,
|
|
227
|
+
SlideFadeProps: () => import_react85.SlideFadeProps,
|
|
228
|
+
SlideProps: () => import_react85.SlideProps,
|
|
229
|
+
Spacer: () => import_react47.Spacer,
|
|
230
|
+
Stack: () => import_react47.Stack,
|
|
231
|
+
StackProps: () => import_react47.StackProps,
|
|
232
|
+
Step: () => import_react85.Step,
|
|
233
|
+
StepDescription: () => import_react85.StepDescription,
|
|
234
|
+
StepIcon: () => import_react85.StepIcon,
|
|
235
|
+
StepIndicator: () => import_react85.StepIndicator,
|
|
236
|
+
StepNumber: () => import_react85.StepNumber,
|
|
237
|
+
StepSeparator: () => import_react85.StepSeparator,
|
|
238
|
+
StepStatus: () => import_react85.StepStatus,
|
|
239
|
+
StepTitle: () => import_react85.StepTitle,
|
|
240
|
+
Stepper: () => import_react85.Stepper,
|
|
235
241
|
Switch: () => switch_default,
|
|
236
242
|
Tab: () => tab_default,
|
|
237
|
-
TabIndicator: () =>
|
|
238
|
-
TabIndicatorProps: () =>
|
|
239
|
-
TabList: () =>
|
|
240
|
-
TabListProps: () =>
|
|
241
|
-
TabPanel: () =>
|
|
242
|
-
TabPanelProps: () =>
|
|
243
|
-
TabPanels: () =>
|
|
244
|
-
TabPanelsProps: () =>
|
|
245
|
-
TabProps: () =>
|
|
246
|
-
TableBodyProps: () =>
|
|
247
|
-
TableCellProps: () =>
|
|
248
|
-
TableColumnHeaderProps: () =>
|
|
249
|
-
TableHeadProps: () =>
|
|
250
|
-
TableProps: () =>
|
|
251
|
-
TableRowProps: () =>
|
|
252
|
-
Tabs: () =>
|
|
253
|
-
TabsDescendantsProvider: () =>
|
|
254
|
-
TabsProps: () =>
|
|
255
|
-
TabsProvider: () =>
|
|
256
|
-
Tbody: () =>
|
|
257
|
-
Td: () =>
|
|
258
|
-
Text: () =>
|
|
259
|
-
TextProps: () =>
|
|
243
|
+
TabIndicator: () => import_react81.TabIndicator,
|
|
244
|
+
TabIndicatorProps: () => import_react81.TabIndicatorProps,
|
|
245
|
+
TabList: () => import_react81.TabList,
|
|
246
|
+
TabListProps: () => import_react81.TabListProps,
|
|
247
|
+
TabPanel: () => import_react81.TabPanel,
|
|
248
|
+
TabPanelProps: () => import_react81.TabPanelProps,
|
|
249
|
+
TabPanels: () => import_react81.TabPanels,
|
|
250
|
+
TabPanelsProps: () => import_react81.TabPanelsProps,
|
|
251
|
+
TabProps: () => import_react81.TabProps,
|
|
252
|
+
TableBodyProps: () => import_react79.TableBodyProps,
|
|
253
|
+
TableCellProps: () => import_react79.TableCellProps,
|
|
254
|
+
TableColumnHeaderProps: () => import_react79.TableColumnHeaderProps,
|
|
255
|
+
TableHeadProps: () => import_react79.TableHeadProps,
|
|
256
|
+
TableProps: () => import_react79.TableProps,
|
|
257
|
+
TableRowProps: () => import_react79.TableRowProps,
|
|
258
|
+
Tabs: () => import_react81.Tabs,
|
|
259
|
+
TabsDescendantsProvider: () => import_react81.TabsDescendantsProvider,
|
|
260
|
+
TabsProps: () => import_react81.TabsProps,
|
|
261
|
+
TabsProvider: () => import_react81.TabsProvider,
|
|
262
|
+
Tbody: () => import_react79.Tbody,
|
|
263
|
+
Td: () => import_react79.Td,
|
|
264
|
+
Text: () => import_react82.Text,
|
|
265
|
+
TextProps: () => import_react82.TextProps,
|
|
260
266
|
TextareaField: () => textarea_default,
|
|
261
|
-
Th: () =>
|
|
262
|
-
Thead: () =>
|
|
267
|
+
Th: () => import_react79.Th,
|
|
268
|
+
Thead: () => import_react79.Thead,
|
|
263
269
|
ThemeTypings: () => import_styled_system13.ThemeTypings,
|
|
264
|
-
Tooltip: () =>
|
|
265
|
-
TooltipProps: () =>
|
|
266
|
-
Tr: () =>
|
|
267
|
-
UnorderedList: () =>
|
|
270
|
+
Tooltip: () => import_react83.Tooltip,
|
|
271
|
+
TooltipProps: () => import_react83.TooltipProps,
|
|
272
|
+
Tr: () => import_react79.Tr,
|
|
273
|
+
UnorderedList: () => import_react48.UnorderedList,
|
|
268
274
|
Uploader: () => uploader_default,
|
|
269
|
-
UseAccordionItemProps: () =>
|
|
270
|
-
UseAccordionItemReturn: () =>
|
|
271
|
-
UseAccordionProps: () =>
|
|
272
|
-
UseAccordionReturn: () =>
|
|
273
|
-
UseBreakpointOptions: () =>
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
275
|
+
UseAccordionItemProps: () => import_react2.UseAccordionItemProps,
|
|
276
|
+
UseAccordionItemReturn: () => import_react2.UseAccordionItemReturn,
|
|
277
|
+
UseAccordionProps: () => import_react2.UseAccordionProps,
|
|
278
|
+
UseAccordionReturn: () => import_react2.UseAccordionReturn,
|
|
279
|
+
UseBreakpointOptions: () => import_react85.UseBreakpointOptions,
|
|
280
|
+
UseCheckboxGroupProps: () => import_react15.UseCheckboxGroupProps,
|
|
281
|
+
UseCheckboxGroupReturn: () => import_react15.UseCheckboxGroupReturn,
|
|
282
|
+
UseCheckboxProps: () => import_react15.UseCheckboxProps,
|
|
283
|
+
UseCheckboxReturn: () => import_react15.UseCheckboxReturn,
|
|
284
|
+
UseDisclosureProps: () => import_react95.UseDisclosureProps,
|
|
285
|
+
UseImageProps: () => import_react85.UseImageProps,
|
|
286
|
+
UseImageReturn: () => import_react85.UseImageReturn,
|
|
287
|
+
UseMediaQueryOptions: () => import_react85.UseMediaQueryOptions,
|
|
288
|
+
UseModalProps: () => import_react58.UseModalProps,
|
|
289
|
+
UseModalReturn: () => import_react58.UseModalReturn,
|
|
290
|
+
UseQueryProps: () => import_react85.UseQueryProps,
|
|
291
|
+
UseRadioGroupReturn: () => import_react71.UseRadioGroupReturn,
|
|
292
|
+
UseRadioProps: () => import_react71.UseRadioProps,
|
|
293
|
+
UseRadioReturn: () => import_react71.UseRadioReturn,
|
|
294
|
+
UseTabListProps: () => import_react81.UseTabListProps,
|
|
295
|
+
UseTabListReturn: () => import_react81.UseTabListReturn,
|
|
296
|
+
UseTabOptions: () => import_react81.UseTabOptions,
|
|
297
|
+
UseTabPanelsProps: () => import_react81.UseTabPanelsProps,
|
|
298
|
+
UseTabProps: () => import_react81.UseTabProps,
|
|
299
|
+
UseTabsProps: () => import_react81.UseTabsProps,
|
|
300
|
+
UseTabsReturn: () => import_react81.UseTabsReturn,
|
|
301
|
+
VStack: () => import_react47.VStack,
|
|
302
|
+
VisuallyHidden: () => import_react85.VisuallyHidden,
|
|
303
|
+
VisuallyHiddenInput: () => import_react85.VisuallyHiddenInput,
|
|
304
|
+
Wrap: () => import_react47.Wrap,
|
|
305
|
+
WrapItem: () => import_react47.WrapItem,
|
|
306
|
+
WrapItemProps: () => import_react47.WrapItemProps,
|
|
307
|
+
WrapProps: () => import_react47.WrapProps,
|
|
308
|
+
extendTheme: () => import_react96.extendTheme,
|
|
309
|
+
forwardRef: () => import_react96.forwardRef,
|
|
297
310
|
getTheme: () => getTheme,
|
|
298
311
|
theme: () => theme5,
|
|
299
|
-
useAccordion: () =>
|
|
300
|
-
useAccordionContext: () =>
|
|
301
|
-
useAccordionItem: () =>
|
|
302
|
-
useAccordionItemState: () =>
|
|
303
|
-
useAccordionStyles: () =>
|
|
312
|
+
useAccordion: () => import_react2.useAccordion,
|
|
313
|
+
useAccordionContext: () => import_react2.useAccordionContext,
|
|
314
|
+
useAccordionItem: () => import_react2.useAccordionItem,
|
|
315
|
+
useAccordionItemState: () => import_react2.useAccordionItemState,
|
|
316
|
+
useAccordionStyles: () => import_react2.useAccordionStyles,
|
|
304
317
|
useAlertStyles: () => useAlertStyles,
|
|
305
|
-
useBoolean: () =>
|
|
306
|
-
useBreakpoint: () =>
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
useControllableState: () => import_react104.useControllableState,
|
|
318
|
+
useBoolean: () => import_react95.useBoolean,
|
|
319
|
+
useBreakpoint: () => import_react85.useBreakpoint,
|
|
320
|
+
useCheckbox: () => import_react15.useCheckbox,
|
|
321
|
+
useCheckboxGroup: () => import_react15.useCheckboxGroup,
|
|
322
|
+
useClipboard: () => import_react95.useClipboard,
|
|
323
|
+
useColorMode: () => import_react95.useColorMode,
|
|
324
|
+
useColorModePreference: () => import_react85.useColorModePreference,
|
|
325
|
+
useColorModeValue: () => import_react95.useColorModeValue,
|
|
326
|
+
useConst: () => import_react95.useConst,
|
|
327
|
+
useControllableProp: () => import_react95.useControllableProp,
|
|
328
|
+
useControllableState: () => import_react95.useControllableState,
|
|
317
329
|
useDataTable: () => useDataTable,
|
|
318
|
-
useDimensions: () =>
|
|
319
|
-
useDisclosure: () =>
|
|
320
|
-
useDrawerContext: () =>
|
|
330
|
+
useDimensions: () => import_react95.useDimensions,
|
|
331
|
+
useDisclosure: () => import_react95.useDisclosure,
|
|
332
|
+
useDrawerContext: () => import_react58.useDrawerContext,
|
|
321
333
|
useFetcher: () => useFetcher,
|
|
322
|
-
useImage: () =>
|
|
334
|
+
useImage: () => import_react85.useImage,
|
|
323
335
|
useInternalUI: () => useInternalUI,
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
useTheme: () => import_react104.useTheme,
|
|
348
|
-
useToken: () => import_react104.useToken
|
|
336
|
+
useMergeRefs: () => import_react95.useMergeRefs,
|
|
337
|
+
useModal: () => import_react58.useModal,
|
|
338
|
+
useModalContext: () => import_react58.useModalContext,
|
|
339
|
+
useModalStyles: () => import_react58.useModalStyles,
|
|
340
|
+
useOutsideClick: () => import_react95.useOutsideClick,
|
|
341
|
+
useQuery: () => import_react85.useQuery,
|
|
342
|
+
useRadio: () => import_react71.useRadio,
|
|
343
|
+
useRadioGroup: () => import_react71.useRadioGroup,
|
|
344
|
+
useRadioGroupContext: () => import_react71.useRadioGroupContext,
|
|
345
|
+
useSteps: () => import_react85.useSteps,
|
|
346
|
+
useTab: () => import_react81.useTab,
|
|
347
|
+
useTabIndicator: () => import_react81.useTabIndicator,
|
|
348
|
+
useTabList: () => import_react81.useTabList,
|
|
349
|
+
useTabPanel: () => import_react81.useTabPanel,
|
|
350
|
+
useTabPanels: () => import_react81.useTabPanels,
|
|
351
|
+
useTabs: () => import_react81.useTabs,
|
|
352
|
+
useTabsContext: () => import_react81.useTabsContext,
|
|
353
|
+
useTabsDescendant: () => import_react81.useTabsDescendant,
|
|
354
|
+
useTabsDescendants: () => import_react81.useTabsDescendants,
|
|
355
|
+
useTabsDescendantsContext: () => import_react81.useTabsDescendantsContext,
|
|
356
|
+
useTabsStyles: () => import_react81.useTabsStyles,
|
|
357
|
+
useTheme: () => import_react95.useTheme,
|
|
358
|
+
useToken: () => import_react95.useToken
|
|
349
359
|
});
|
|
350
360
|
module.exports = __toCommonJS(src_exports);
|
|
351
361
|
|
|
352
|
-
// ../../node_modules/@chakra-ui/descendant/dist/chunk-N7WDF4QK.mjs
|
|
353
|
-
var import_react = require("react");
|
|
354
|
-
var __defProp2 = Object.defineProperty;
|
|
355
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
356
|
-
var __publicField = (obj, key, value) => {
|
|
357
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
358
|
-
return value;
|
|
359
|
-
};
|
|
360
|
-
function sortNodes(nodes) {
|
|
361
|
-
return nodes.sort((a, b) => {
|
|
362
|
-
const compare = a.compareDocumentPosition(b);
|
|
363
|
-
if (compare & Node.DOCUMENT_POSITION_FOLLOWING || compare & Node.DOCUMENT_POSITION_CONTAINED_BY) {
|
|
364
|
-
return -1;
|
|
365
|
-
}
|
|
366
|
-
if (compare & Node.DOCUMENT_POSITION_PRECEDING || compare & Node.DOCUMENT_POSITION_CONTAINS) {
|
|
367
|
-
return 1;
|
|
368
|
-
}
|
|
369
|
-
if (compare & Node.DOCUMENT_POSITION_DISCONNECTED || compare & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC) {
|
|
370
|
-
throw Error("Cannot sort the given nodes.");
|
|
371
|
-
} else {
|
|
372
|
-
return 0;
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
}
|
|
376
|
-
var isElement = (el) => typeof el == "object" && "nodeType" in el && el.nodeType === Node.ELEMENT_NODE;
|
|
377
|
-
function getNextIndex(current, max, loop) {
|
|
378
|
-
let next = current + 1;
|
|
379
|
-
if (loop && next >= max)
|
|
380
|
-
next = 0;
|
|
381
|
-
return next;
|
|
382
|
-
}
|
|
383
|
-
function getPrevIndex(current, max, loop) {
|
|
384
|
-
let next = current - 1;
|
|
385
|
-
if (loop && next < 0)
|
|
386
|
-
next = max;
|
|
387
|
-
return next;
|
|
388
|
-
}
|
|
389
|
-
var useSafeLayoutEffect = typeof window !== "undefined" ? import_react.useLayoutEffect : import_react.useEffect;
|
|
390
|
-
var cast = (value) => value;
|
|
391
|
-
|
|
392
|
-
// ../../node_modules/@chakra-ui/descendant/dist/chunk-P6SLLHUK.mjs
|
|
393
|
-
var DescendantsManager = class {
|
|
394
|
-
constructor() {
|
|
395
|
-
__publicField(this, "descendants", /* @__PURE__ */ new Map());
|
|
396
|
-
__publicField(this, "register", (nodeOrOptions) => {
|
|
397
|
-
if (nodeOrOptions == null)
|
|
398
|
-
return;
|
|
399
|
-
if (isElement(nodeOrOptions)) {
|
|
400
|
-
return this.registerNode(nodeOrOptions);
|
|
401
|
-
}
|
|
402
|
-
return (node) => {
|
|
403
|
-
this.registerNode(node, nodeOrOptions);
|
|
404
|
-
};
|
|
405
|
-
});
|
|
406
|
-
__publicField(this, "unregister", (node) => {
|
|
407
|
-
this.descendants.delete(node);
|
|
408
|
-
const sorted = sortNodes(Array.from(this.descendants.keys()));
|
|
409
|
-
this.assignIndex(sorted);
|
|
410
|
-
});
|
|
411
|
-
__publicField(this, "destroy", () => {
|
|
412
|
-
this.descendants.clear();
|
|
413
|
-
});
|
|
414
|
-
__publicField(this, "assignIndex", (descendants) => {
|
|
415
|
-
this.descendants.forEach((descendant) => {
|
|
416
|
-
const index = descendants.indexOf(descendant.node);
|
|
417
|
-
descendant.index = index;
|
|
418
|
-
descendant.node.dataset["index"] = descendant.index.toString();
|
|
419
|
-
});
|
|
420
|
-
});
|
|
421
|
-
__publicField(this, "count", () => this.descendants.size);
|
|
422
|
-
__publicField(this, "enabledCount", () => this.enabledValues().length);
|
|
423
|
-
__publicField(this, "values", () => {
|
|
424
|
-
const values = Array.from(this.descendants.values());
|
|
425
|
-
return values.sort((a, b) => a.index - b.index);
|
|
426
|
-
});
|
|
427
|
-
__publicField(this, "enabledValues", () => {
|
|
428
|
-
return this.values().filter((descendant) => !descendant.disabled);
|
|
429
|
-
});
|
|
430
|
-
__publicField(this, "item", (index) => {
|
|
431
|
-
if (this.count() === 0)
|
|
432
|
-
return void 0;
|
|
433
|
-
return this.values()[index];
|
|
434
|
-
});
|
|
435
|
-
__publicField(this, "enabledItem", (index) => {
|
|
436
|
-
if (this.enabledCount() === 0)
|
|
437
|
-
return void 0;
|
|
438
|
-
return this.enabledValues()[index];
|
|
439
|
-
});
|
|
440
|
-
__publicField(this, "first", () => this.item(0));
|
|
441
|
-
__publicField(this, "firstEnabled", () => this.enabledItem(0));
|
|
442
|
-
__publicField(this, "last", () => this.item(this.descendants.size - 1));
|
|
443
|
-
__publicField(this, "lastEnabled", () => {
|
|
444
|
-
const lastIndex = this.enabledValues().length - 1;
|
|
445
|
-
return this.enabledItem(lastIndex);
|
|
446
|
-
});
|
|
447
|
-
__publicField(this, "indexOf", (node) => {
|
|
448
|
-
var _a, _b;
|
|
449
|
-
if (!node)
|
|
450
|
-
return -1;
|
|
451
|
-
return (_b = (_a = this.descendants.get(node)) == null ? void 0 : _a.index) != null ? _b : -1;
|
|
452
|
-
});
|
|
453
|
-
__publicField(this, "enabledIndexOf", (node) => {
|
|
454
|
-
if (node == null)
|
|
455
|
-
return -1;
|
|
456
|
-
return this.enabledValues().findIndex((i) => i.node.isSameNode(node));
|
|
457
|
-
});
|
|
458
|
-
__publicField(this, "next", (index, loop = true) => {
|
|
459
|
-
const next = getNextIndex(index, this.count(), loop);
|
|
460
|
-
return this.item(next);
|
|
461
|
-
});
|
|
462
|
-
__publicField(this, "nextEnabled", (index, loop = true) => {
|
|
463
|
-
const item = this.item(index);
|
|
464
|
-
if (!item)
|
|
465
|
-
return;
|
|
466
|
-
const enabledIndex = this.enabledIndexOf(item.node);
|
|
467
|
-
const nextEnabledIndex = getNextIndex(
|
|
468
|
-
enabledIndex,
|
|
469
|
-
this.enabledCount(),
|
|
470
|
-
loop
|
|
471
|
-
);
|
|
472
|
-
return this.enabledItem(nextEnabledIndex);
|
|
473
|
-
});
|
|
474
|
-
__publicField(this, "prev", (index, loop = true) => {
|
|
475
|
-
const prev = getPrevIndex(index, this.count() - 1, loop);
|
|
476
|
-
return this.item(prev);
|
|
477
|
-
});
|
|
478
|
-
__publicField(this, "prevEnabled", (index, loop = true) => {
|
|
479
|
-
const item = this.item(index);
|
|
480
|
-
if (!item)
|
|
481
|
-
return;
|
|
482
|
-
const enabledIndex = this.enabledIndexOf(item.node);
|
|
483
|
-
const prevEnabledIndex = getPrevIndex(
|
|
484
|
-
enabledIndex,
|
|
485
|
-
this.enabledCount() - 1,
|
|
486
|
-
loop
|
|
487
|
-
);
|
|
488
|
-
return this.enabledItem(prevEnabledIndex);
|
|
489
|
-
});
|
|
490
|
-
__publicField(this, "registerNode", (node, options) => {
|
|
491
|
-
if (!node || this.descendants.has(node))
|
|
492
|
-
return;
|
|
493
|
-
const keys = Array.from(this.descendants.keys()).concat(node);
|
|
494
|
-
const sorted = sortNodes(keys);
|
|
495
|
-
if (options == null ? void 0 : options.disabled) {
|
|
496
|
-
options.disabled = !!options.disabled;
|
|
497
|
-
}
|
|
498
|
-
const descendant = { node, index: -1, ...options };
|
|
499
|
-
this.descendants.set(node, descendant);
|
|
500
|
-
this.assignIndex(sorted);
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
// ../../node_modules/@chakra-ui/react-context/dist/index.mjs
|
|
506
|
-
var import_react2 = require("react");
|
|
507
|
-
function getErrorMessage(hook, provider) {
|
|
508
|
-
return `${hook} returned \`undefined\`. Seems you forgot to wrap component within ${provider}`;
|
|
509
|
-
}
|
|
510
|
-
function createContext(options = {}) {
|
|
511
|
-
const {
|
|
512
|
-
name,
|
|
513
|
-
strict = true,
|
|
514
|
-
hookName = "useContext",
|
|
515
|
-
providerName = "Provider",
|
|
516
|
-
errorMessage,
|
|
517
|
-
defaultValue
|
|
518
|
-
} = options;
|
|
519
|
-
const Context = (0, import_react2.createContext)(defaultValue);
|
|
520
|
-
Context.displayName = name;
|
|
521
|
-
function useContext2() {
|
|
522
|
-
var _a;
|
|
523
|
-
const context = (0, import_react2.useContext)(Context);
|
|
524
|
-
if (!context && strict) {
|
|
525
|
-
const error = new Error(
|
|
526
|
-
errorMessage != null ? errorMessage : getErrorMessage(hookName, providerName)
|
|
527
|
-
);
|
|
528
|
-
error.name = "ContextError";
|
|
529
|
-
(_a = Error.captureStackTrace) == null ? void 0 : _a.call(Error, error, useContext2);
|
|
530
|
-
throw error;
|
|
531
|
-
}
|
|
532
|
-
return context;
|
|
533
|
-
}
|
|
534
|
-
return [Context.Provider, useContext2, Context];
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
// ../../node_modules/@chakra-ui/react-use-merge-refs/dist/index.mjs
|
|
538
|
-
var import_react3 = require("react");
|
|
539
|
-
function assignRef(ref, value) {
|
|
540
|
-
if (ref == null)
|
|
541
|
-
return;
|
|
542
|
-
if (typeof ref === "function") {
|
|
543
|
-
ref(value);
|
|
544
|
-
return;
|
|
545
|
-
}
|
|
546
|
-
try {
|
|
547
|
-
ref.current = value;
|
|
548
|
-
} catch (error) {
|
|
549
|
-
throw new Error(`Cannot assign value '${value}' to ref '${ref}'`);
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
function mergeRefs(...refs) {
|
|
553
|
-
return (node) => {
|
|
554
|
-
refs.forEach((ref) => {
|
|
555
|
-
assignRef(ref, node);
|
|
556
|
-
});
|
|
557
|
-
};
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
// ../../node_modules/@chakra-ui/descendant/dist/chunk-D5UZ3RNN.mjs
|
|
561
|
-
var import_react4 = require("react");
|
|
562
|
-
function useDescendants() {
|
|
563
|
-
const descendants = (0, import_react4.useRef)(new DescendantsManager());
|
|
564
|
-
useSafeLayoutEffect(() => {
|
|
565
|
-
return () => descendants.current.destroy();
|
|
566
|
-
});
|
|
567
|
-
return descendants.current;
|
|
568
|
-
}
|
|
569
|
-
var [DescendantsContextProvider, useDescendantsContext] = createContext({
|
|
570
|
-
name: "DescendantsProvider",
|
|
571
|
-
errorMessage: "useDescendantsContext must be used within DescendantsProvider"
|
|
572
|
-
});
|
|
573
|
-
function useDescendant(options) {
|
|
574
|
-
const descendants = useDescendantsContext();
|
|
575
|
-
const [index, setIndex] = (0, import_react4.useState)(-1);
|
|
576
|
-
const ref = (0, import_react4.useRef)(null);
|
|
577
|
-
useSafeLayoutEffect(() => {
|
|
578
|
-
return () => {
|
|
579
|
-
if (!ref.current)
|
|
580
|
-
return;
|
|
581
|
-
descendants.unregister(ref.current);
|
|
582
|
-
};
|
|
583
|
-
}, []);
|
|
584
|
-
useSafeLayoutEffect(() => {
|
|
585
|
-
if (!ref.current)
|
|
586
|
-
return;
|
|
587
|
-
const dataIndex = Number(ref.current.dataset["index"]);
|
|
588
|
-
if (index != dataIndex && !Number.isNaN(dataIndex)) {
|
|
589
|
-
setIndex(dataIndex);
|
|
590
|
-
}
|
|
591
|
-
});
|
|
592
|
-
const refCallback = options ? cast(descendants.register(options)) : cast(descendants.register);
|
|
593
|
-
return {
|
|
594
|
-
descendants,
|
|
595
|
-
index,
|
|
596
|
-
enabledIndex: descendants.enabledIndexOf(ref.current),
|
|
597
|
-
register: mergeRefs(refCallback, ref)
|
|
598
|
-
};
|
|
599
|
-
}
|
|
600
|
-
function createDescendantContext() {
|
|
601
|
-
const ContextProvider = cast(DescendantsContextProvider);
|
|
602
|
-
const _useDescendantsContext = () => cast(useDescendantsContext());
|
|
603
|
-
const _useDescendant = (options) => useDescendant(options);
|
|
604
|
-
const _useDescendants = () => useDescendants();
|
|
605
|
-
return [
|
|
606
|
-
ContextProvider,
|
|
607
|
-
_useDescendantsContext,
|
|
608
|
-
_useDescendants,
|
|
609
|
-
_useDescendant
|
|
610
|
-
];
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
// ../../node_modules/@chakra-ui/accordion/dist/chunk-JST25EWU.mjs
|
|
614
|
-
var [AccordionStylesProvider, useAccordionStyles] = createContext({
|
|
615
|
-
name: "AccordionStylesContext",
|
|
616
|
-
hookName: "useAccordionStyles",
|
|
617
|
-
providerName: "<Accordion />"
|
|
618
|
-
});
|
|
619
|
-
var [AccordionItemProvider, useAccordionItemContext] = createContext({
|
|
620
|
-
name: "AccordionItemContext",
|
|
621
|
-
hookName: "useAccordionItemContext",
|
|
622
|
-
providerName: "<AccordionItem />"
|
|
623
|
-
});
|
|
624
|
-
var [
|
|
625
|
-
AccordionDescendantsProvider,
|
|
626
|
-
useAccordionDescendantsContext,
|
|
627
|
-
useAccordionDescendants,
|
|
628
|
-
useAccordionDescendant
|
|
629
|
-
] = createDescendantContext();
|
|
630
|
-
|
|
631
|
-
// ../../node_modules/@chakra-ui/shared-utils/dist/index.mjs
|
|
632
|
-
var cx = (...classNames) => classNames.filter(Boolean).join(" ");
|
|
633
|
-
function isObject(value) {
|
|
634
|
-
const type = typeof value;
|
|
635
|
-
return value != null && (type === "object" || type === "function") && !Array.isArray(value);
|
|
636
|
-
}
|
|
637
|
-
var dataAttr = (condition) => condition ? "" : void 0;
|
|
638
|
-
var ariaAttr = (condition) => condition ? true : void 0;
|
|
639
|
-
function callAllHandlers(...fns) {
|
|
640
|
-
return function func(event) {
|
|
641
|
-
fns.some((fn) => {
|
|
642
|
-
fn == null ? void 0 : fn(event);
|
|
643
|
-
return event == null ? void 0 : event.defaultPrevented;
|
|
644
|
-
});
|
|
645
|
-
};
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
// ../../node_modules/@chakra-ui/react-use-controllable-state/dist/index.mjs
|
|
649
|
-
var import_react6 = require("react");
|
|
650
|
-
|
|
651
|
-
// ../../node_modules/@chakra-ui/react-use-callback-ref/dist/index.mjs
|
|
652
|
-
var import_react5 = require("react");
|
|
653
|
-
function useCallbackRef(callback, deps = []) {
|
|
654
|
-
const callbackRef = (0, import_react5.useRef)(callback);
|
|
655
|
-
(0, import_react5.useEffect)(() => {
|
|
656
|
-
callbackRef.current = callback;
|
|
657
|
-
});
|
|
658
|
-
return (0, import_react5.useCallback)((...args) => {
|
|
659
|
-
var _a;
|
|
660
|
-
return (_a = callbackRef.current) == null ? void 0 : _a.call(callbackRef, ...args);
|
|
661
|
-
}, deps);
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
// ../../node_modules/@chakra-ui/react-use-controllable-state/dist/index.mjs
|
|
665
|
-
function useControllableState(props) {
|
|
666
|
-
const {
|
|
667
|
-
value: valueProp,
|
|
668
|
-
defaultValue,
|
|
669
|
-
onChange,
|
|
670
|
-
shouldUpdate = (prev, next) => prev !== next
|
|
671
|
-
} = props;
|
|
672
|
-
const onChangeProp = useCallbackRef(onChange);
|
|
673
|
-
const shouldUpdateProp = useCallbackRef(shouldUpdate);
|
|
674
|
-
const [uncontrolledState, setUncontrolledState] = (0, import_react6.useState)(defaultValue);
|
|
675
|
-
const controlled = valueProp !== void 0;
|
|
676
|
-
const value = controlled ? valueProp : uncontrolledState;
|
|
677
|
-
const setValue = useCallbackRef(
|
|
678
|
-
(next) => {
|
|
679
|
-
const setter = next;
|
|
680
|
-
const nextValue = typeof next === "function" ? setter(value) : next;
|
|
681
|
-
if (!shouldUpdateProp(value, nextValue)) {
|
|
682
|
-
return;
|
|
683
|
-
}
|
|
684
|
-
if (!controlled) {
|
|
685
|
-
setUncontrolledState(nextValue);
|
|
686
|
-
}
|
|
687
|
-
onChangeProp(nextValue);
|
|
688
|
-
},
|
|
689
|
-
[controlled, onChangeProp, value, shouldUpdateProp]
|
|
690
|
-
);
|
|
691
|
-
return [value, setValue];
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
// ../../node_modules/@chakra-ui/accordion/dist/chunk-UN5JZMTF.mjs
|
|
695
|
-
function useAccordionItemState() {
|
|
696
|
-
const { isOpen, isDisabled, onClose, onOpen } = useAccordionItemContext();
|
|
697
|
-
return { isOpen, onClose, isDisabled, onOpen };
|
|
698
|
-
}
|
|
699
|
-
|
|
700
362
|
// src/components/accordion/components/accordion-indicator.tsx
|
|
701
|
-
var
|
|
363
|
+
var import_react = require("@chakra-ui/react");
|
|
702
364
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
703
365
|
var AccordionIndicator = () => {
|
|
704
|
-
const { isOpen } = useAccordionItemState();
|
|
366
|
+
const { isOpen } = (0, import_react.useAccordionItemState)();
|
|
705
367
|
if (isOpen) {
|
|
706
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Box, { position: "absolute", left: 0, width: "2px", height: "100%", bg: "primary.500" });
|
|
707
369
|
}
|
|
708
370
|
return null;
|
|
709
371
|
};
|
|
710
372
|
|
|
711
373
|
// src/components/accordion/components/index.ts
|
|
712
|
-
var
|
|
374
|
+
var import_react2 = require("@chakra-ui/react");
|
|
713
375
|
|
|
714
376
|
// src/components/alert/components/alert.tsx
|
|
377
|
+
var import_shared_utils = require("@chakra-ui/shared-utils");
|
|
715
378
|
var import_system = require("@chakra-ui/system");
|
|
716
379
|
|
|
380
|
+
// src/components/alert/components/alert-context.ts
|
|
381
|
+
var import_react_context = require("@chakra-ui/react-context");
|
|
382
|
+
|
|
717
383
|
// src/components/alert/components/icons.tsx
|
|
718
384
|
var import_internal_icon = require("@ctlyst.id/internal-icon");
|
|
719
385
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -728,12 +394,12 @@ function WarningIcon() {
|
|
|
728
394
|
}
|
|
729
395
|
|
|
730
396
|
// src/components/alert/components/alert-context.ts
|
|
731
|
-
var [AlertProvider, useAlertContext] = createContext({
|
|
397
|
+
var [AlertProvider, useAlertContext] = (0, import_react_context.createContext)({
|
|
732
398
|
name: "AlertContext",
|
|
733
399
|
hookName: "useAlertContext",
|
|
734
400
|
providerName: "<Alert />"
|
|
735
401
|
});
|
|
736
|
-
var [AlertStylesProvider, useAlertStyles] = createContext({
|
|
402
|
+
var [AlertStylesProvider, useAlertStyles] = (0, import_react_context.createContext)({
|
|
737
403
|
name: `AlertStylesContext`,
|
|
738
404
|
hookName: `useAlertStyles`,
|
|
739
405
|
providerName: "<Alert />"
|
|
@@ -775,7 +441,7 @@ var Alert = (0, import_system.forwardRef)(function Alert2(props, ref) {
|
|
|
775
441
|
role: addRole ? "alert" : void 0,
|
|
776
442
|
ref,
|
|
777
443
|
...rest,
|
|
778
|
-
className: cx("chakra-alert", props.className),
|
|
444
|
+
className: (0, import_shared_utils.cx)("chakra-alert", props.className),
|
|
779
445
|
__css: alertStyles,
|
|
780
446
|
children
|
|
781
447
|
}
|
|
@@ -784,17 +450,17 @@ var Alert = (0, import_system.forwardRef)(function Alert2(props, ref) {
|
|
|
784
450
|
Alert.displayName = "Alert";
|
|
785
451
|
|
|
786
452
|
// src/components/alert/components/alert-action.tsx
|
|
787
|
-
var
|
|
453
|
+
var import_shared_utils2 = require("@chakra-ui/shared-utils");
|
|
788
454
|
|
|
789
455
|
// src/components/button/components/button.tsx
|
|
790
|
-
var
|
|
456
|
+
var import_react5 = require("@chakra-ui/react");
|
|
791
457
|
|
|
792
458
|
// src/components/loader/components/loader.tsx
|
|
793
|
-
var
|
|
459
|
+
var import_react3 = require("@chakra-ui/react");
|
|
794
460
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
795
|
-
var Loader = (0,
|
|
796
|
-
const styles = (0,
|
|
797
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
461
|
+
var Loader = (0, import_react3.forwardRef)((props, ref) => {
|
|
462
|
+
const styles = (0, import_react3.useStyleConfig)("LoaderStyle", props);
|
|
463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react3.Box, { ref, __css: styles });
|
|
798
464
|
});
|
|
799
465
|
Loader.defaultProps = {
|
|
800
466
|
size: "md"
|
|
@@ -802,11 +468,11 @@ Loader.defaultProps = {
|
|
|
802
468
|
var loader_default = Loader;
|
|
803
469
|
|
|
804
470
|
// src/components/loader/index.ts
|
|
805
|
-
var
|
|
471
|
+
var import_react4 = require("@chakra-ui/react");
|
|
806
472
|
|
|
807
473
|
// src/components/button/components/button.tsx
|
|
808
474
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
809
|
-
var Button = (0,
|
|
475
|
+
var Button = (0, import_react5.forwardRef)((props, ref) => {
|
|
810
476
|
const { children, variant, size: size2, ...rest } = props;
|
|
811
477
|
const getLoaderSize = () => {
|
|
812
478
|
if (size2 === "lg") return "md";
|
|
@@ -819,7 +485,7 @@ var Button = (0, import_react11.forwardRef)((props, ref) => {
|
|
|
819
485
|
return "primary";
|
|
820
486
|
};
|
|
821
487
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
822
|
-
|
|
488
|
+
import_react5.Button,
|
|
823
489
|
{
|
|
824
490
|
size: size2,
|
|
825
491
|
variant,
|
|
@@ -841,7 +507,7 @@ function AlertAction({ children, className }) {
|
|
|
841
507
|
button_default,
|
|
842
508
|
{
|
|
843
509
|
"data-test-id": "alert-action",
|
|
844
|
-
className: (0,
|
|
510
|
+
className: (0, import_shared_utils2.cx)("chakra-alert__action", className),
|
|
845
511
|
variant: "link",
|
|
846
512
|
fontWeight: "semibold",
|
|
847
513
|
__css: css4,
|
|
@@ -852,6 +518,7 @@ function AlertAction({ children, className }) {
|
|
|
852
518
|
AlertAction.displayName = "AlertAction";
|
|
853
519
|
|
|
854
520
|
// src/components/alert/components/alert-close.tsx
|
|
521
|
+
var import_shared_utils3 = require("@chakra-ui/shared-utils");
|
|
855
522
|
var import_system2 = require("@chakra-ui/system");
|
|
856
523
|
var import_internal_icon2 = require("@ctlyst.id/internal-icon");
|
|
857
524
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
@@ -864,7 +531,7 @@ function AlertClose({ className, children, ...rest }) {
|
|
|
864
531
|
display: "inherit",
|
|
865
532
|
"data-status": "alert-close",
|
|
866
533
|
...rest,
|
|
867
|
-
className: cx("chakra-alert__close", className),
|
|
534
|
+
className: (0, import_shared_utils3.cx)("chakra-alert__close", className),
|
|
868
535
|
__css: css4,
|
|
869
536
|
children: children || /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_internal_icon2.Close, { color: "inherit", size: 4 })
|
|
870
537
|
}
|
|
@@ -873,6 +540,7 @@ function AlertClose({ className, children, ...rest }) {
|
|
|
873
540
|
AlertClose.displayName = "AlertClose";
|
|
874
541
|
|
|
875
542
|
// src/components/alert/components/alert-description.tsx
|
|
543
|
+
var import_shared_utils4 = require("@chakra-ui/shared-utils");
|
|
876
544
|
var import_system3 = require("@chakra-ui/system");
|
|
877
545
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
878
546
|
var AlertDescription = (0, import_system3.forwardRef)(function AlertDescription2(props, ref) {
|
|
@@ -888,7 +556,7 @@ var AlertDescription = (0, import_system3.forwardRef)(function AlertDescription2
|
|
|
888
556
|
ref,
|
|
889
557
|
"data-status": status,
|
|
890
558
|
...props,
|
|
891
|
-
className: cx("chakra-alert__desc", props.className),
|
|
559
|
+
className: (0, import_shared_utils4.cx)("chakra-alert__desc", props.className),
|
|
892
560
|
__css: descriptionStyles
|
|
893
561
|
}
|
|
894
562
|
);
|
|
@@ -896,6 +564,7 @@ var AlertDescription = (0, import_system3.forwardRef)(function AlertDescription2
|
|
|
896
564
|
AlertDescription.displayName = "AlertDescription";
|
|
897
565
|
|
|
898
566
|
// src/components/alert/components/alert-icon.tsx
|
|
567
|
+
var import_shared_utils5 = require("@chakra-ui/shared-utils");
|
|
899
568
|
var import_system4 = require("@chakra-ui/system");
|
|
900
569
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
901
570
|
function AlertIcon({ className, children, ...rest }) {
|
|
@@ -909,7 +578,7 @@ function AlertIcon({ className, children, ...rest }) {
|
|
|
909
578
|
display: "inherit",
|
|
910
579
|
"data-status": status,
|
|
911
580
|
...rest,
|
|
912
|
-
className: cx("chakra-alert__icon", className),
|
|
581
|
+
className: (0, import_shared_utils5.cx)("chakra-alert__icon", className),
|
|
913
582
|
__css: css4,
|
|
914
583
|
children: children || /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(BaseIcon, {})
|
|
915
584
|
}
|
|
@@ -918,6 +587,7 @@ function AlertIcon({ className, children, ...rest }) {
|
|
|
918
587
|
AlertIcon.displayName = "AlertIcon";
|
|
919
588
|
|
|
920
589
|
// src/components/alert/components/alert-title.tsx
|
|
590
|
+
var import_shared_utils6 = require("@chakra-ui/shared-utils");
|
|
921
591
|
var import_system5 = require("@chakra-ui/system");
|
|
922
592
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
923
593
|
var AlertTitle = (0, import_system5.forwardRef)(function AlertTitle2(props, ref) {
|
|
@@ -929,38 +599,20 @@ var AlertTitle = (0, import_system5.forwardRef)(function AlertTitle2(props, ref)
|
|
|
929
599
|
ref,
|
|
930
600
|
"data-status": status,
|
|
931
601
|
...props,
|
|
932
|
-
className: cx("chakra-alert__title", props.className),
|
|
602
|
+
className: (0, import_shared_utils6.cx)("chakra-alert__title", props.className),
|
|
933
603
|
__css: styles.title
|
|
934
604
|
}
|
|
935
605
|
);
|
|
936
606
|
});
|
|
937
607
|
AlertTitle.displayName = "AlertTitle";
|
|
938
608
|
|
|
939
|
-
// ../../node_modules/@chakra-ui/layout/dist/chunk-YTV6DHKL.mjs
|
|
940
|
-
var import_system6 = require("@chakra-ui/system");
|
|
941
|
-
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
942
|
-
var Link = (0, import_system6.forwardRef)(function Link2(props, ref) {
|
|
943
|
-
const styles = (0, import_system6.useStyleConfig)("Link", props);
|
|
944
|
-
const { className, isExternal, ...rest } = (0, import_system6.omitThemingProps)(props);
|
|
945
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
946
|
-
import_system6.chakra.a,
|
|
947
|
-
{
|
|
948
|
-
target: isExternal ? "_blank" : void 0,
|
|
949
|
-
rel: isExternal ? "noopener" : void 0,
|
|
950
|
-
ref,
|
|
951
|
-
className: cx("chakra-link", className),
|
|
952
|
-
...rest,
|
|
953
|
-
__css: styles
|
|
954
|
-
}
|
|
955
|
-
);
|
|
956
|
-
});
|
|
957
|
-
Link.displayName = "Link";
|
|
958
|
-
|
|
959
609
|
// src/components/anchor/components/anchor.tsx
|
|
960
|
-
var
|
|
610
|
+
var import_react6 = require("@chakra-ui/react");
|
|
611
|
+
var import_shared_utils7 = require("@chakra-ui/shared-utils");
|
|
612
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
961
613
|
var Anchor = ({ children, leftIcon, rightIcon, isActive, isChild, ...props }) => {
|
|
962
|
-
return /* @__PURE__ */ (0,
|
|
963
|
-
Link,
|
|
614
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
615
|
+
import_react6.Link,
|
|
964
616
|
{
|
|
965
617
|
display: "inline-block",
|
|
966
618
|
w: "full",
|
|
@@ -970,7 +622,7 @@ var Anchor = ({ children, leftIcon, rightIcon, isActive, isChild, ...props }) =>
|
|
|
970
622
|
borderLeftColor: isActive ? "primary.500" : "neutral.400",
|
|
971
623
|
color: isActive ? "primary.500" : "black.high",
|
|
972
624
|
bg: isActive ? "neutral.100" : "white",
|
|
973
|
-
className: cx("catalyst-anchor", props.className),
|
|
625
|
+
className: (0, import_shared_utils7.cx)("catalyst-anchor", props.className),
|
|
974
626
|
_hover: {
|
|
975
627
|
textDecoration: "none"
|
|
976
628
|
},
|
|
@@ -992,12 +644,12 @@ Anchor.defaultProps = {
|
|
|
992
644
|
};
|
|
993
645
|
|
|
994
646
|
// src/components/badge/components/badge.tsx
|
|
995
|
-
var
|
|
996
|
-
var
|
|
647
|
+
var import_react7 = require("@chakra-ui/react");
|
|
648
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
997
649
|
var Badge = (props) => {
|
|
998
650
|
const { children, pill, ...rest } = props;
|
|
999
|
-
return /* @__PURE__ */ (0,
|
|
1000
|
-
|
|
651
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
652
|
+
import_react7.Badge,
|
|
1001
653
|
{
|
|
1002
654
|
borderRadius: pill ? "xl" : "sm",
|
|
1003
655
|
display: "inline-flex",
|
|
@@ -1015,19 +667,19 @@ Badge.defaultProps = {
|
|
|
1015
667
|
var badge_default = Badge;
|
|
1016
668
|
|
|
1017
669
|
// src/components/breadcrumb/components/bread-crumb.tsx
|
|
1018
|
-
var
|
|
670
|
+
var import_react9 = require("@chakra-ui/react");
|
|
1019
671
|
var import_fi = require("react-icons/fi");
|
|
1020
672
|
|
|
1021
673
|
// src/components/button/index.ts
|
|
1022
|
-
var
|
|
674
|
+
var import_react8 = require("@chakra-ui/react");
|
|
1023
675
|
|
|
1024
676
|
// src/components/breadcrumb/components/bread-crumb.tsx
|
|
1025
|
-
var
|
|
677
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1026
678
|
var BreadCrumb = (props) => {
|
|
1027
679
|
const { title, children, parents, className, disableHome, spacing: spacing2 = 2, backButton } = props;
|
|
1028
|
-
const [neutral600, primary500] = (0,
|
|
1029
|
-
return /* @__PURE__ */ (0,
|
|
1030
|
-
|
|
680
|
+
const [neutral600, primary500] = (0, import_react9.useToken)("colors", ["neutral.600", "primary.500"]);
|
|
681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
682
|
+
import_react9.Box,
|
|
1031
683
|
{
|
|
1032
684
|
"data-test-id": "CT_component_breadcrumb_breadcrumb",
|
|
1033
685
|
className,
|
|
@@ -1036,14 +688,14 @@ var BreadCrumb = (props) => {
|
|
|
1036
688
|
alignItems: "center",
|
|
1037
689
|
paddingY: 2,
|
|
1038
690
|
children: [
|
|
1039
|
-
/* @__PURE__ */ (0,
|
|
1040
|
-
backButton && /* @__PURE__ */ (0,
|
|
1041
|
-
/* @__PURE__ */ (0,
|
|
1042
|
-
/* @__PURE__ */ (0,
|
|
1043
|
-
/* @__PURE__ */ (0,
|
|
1044
|
-
|
|
691
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_react9.Box, { display: "flex", alignItems: "center", children: [
|
|
692
|
+
backButton && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(button_default, { variant: "icon", "data-test-id": "button", size: "md", mr: "2", onClick: backButton, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_fi.FiChevronLeft, { size: import_react9.theme.sizes[5] }) }),
|
|
693
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react9.Text, { pr: "2", textStyle: "heading.6", color: "neutral.700", children: title }),
|
|
694
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react9.Box, { h: "5.5", borderLeft: "1px solid", borderColor: neutral600 }),
|
|
695
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
696
|
+
import_react9.Breadcrumb,
|
|
1045
697
|
{
|
|
1046
|
-
separator: /* @__PURE__ */ (0,
|
|
698
|
+
separator: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_fi.FiChevronsRight, { color: neutral600, size: import_react9.theme.sizes["3.5"] }),
|
|
1047
699
|
pl: "2",
|
|
1048
700
|
pr: "4",
|
|
1049
701
|
spacing: spacing2,
|
|
@@ -1052,9 +704,9 @@ var BreadCrumb = (props) => {
|
|
|
1052
704
|
alignItems: "center",
|
|
1053
705
|
className: "breadcrumb-wrapper",
|
|
1054
706
|
children: [
|
|
1055
|
-
/* @__PURE__ */ (0,
|
|
1056
|
-
parents == null ? void 0 : parents.map((val) => /* @__PURE__ */ (0,
|
|
1057
|
-
|
|
707
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react9.BreadcrumbItem, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react9.BreadcrumbLink, { href: !disableHome ? "/" : void 0, style: { ...disableHome && { cursor: "default" } }, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_fi.FiHome, { className: "align-top", size: import_react9.theme.sizes["3.5"], color: primary500 }) }) }),
|
|
708
|
+
parents == null ? void 0 : parents.map((val) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react9.BreadcrumbItem, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
709
|
+
import_react9.BreadcrumbLink,
|
|
1058
710
|
{
|
|
1059
711
|
"data-test-id": "iadKcMAul3QAdvmfIQjRE",
|
|
1060
712
|
href: !val.disable ? val.link : void 0,
|
|
@@ -1065,15 +717,15 @@ var BreadCrumb = (props) => {
|
|
|
1065
717
|
}
|
|
1066
718
|
},
|
|
1067
719
|
_hover: { textDecoration: "none" },
|
|
1068
|
-
children: /* @__PURE__ */ (0,
|
|
720
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react9.Text, { color: val.disable ? neutral600 : primary500, textStyle: "text.sm", children: val.name })
|
|
1069
721
|
}
|
|
1070
722
|
) }, val.name)),
|
|
1071
|
-
/* @__PURE__ */ (0,
|
|
723
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react9.BreadcrumbItem, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react9.BreadcrumbLink, { _hover: { textDecor: "none", cursor: "default" }, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react9.Text, { color: "neutral.600", textStyle: "text.sm", children: title }) }) })
|
|
1072
724
|
]
|
|
1073
725
|
}
|
|
1074
726
|
)
|
|
1075
727
|
] }),
|
|
1076
|
-
children && /* @__PURE__ */ (0,
|
|
728
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react9.Box, { children })
|
|
1077
729
|
]
|
|
1078
730
|
}
|
|
1079
731
|
);
|
|
@@ -1089,12 +741,12 @@ BreadCrumb.defaultProps = {
|
|
|
1089
741
|
var bread_crumb_default = BreadCrumb;
|
|
1090
742
|
|
|
1091
743
|
// src/components/card/components/card.tsx
|
|
1092
|
-
var
|
|
1093
|
-
var
|
|
1094
|
-
var
|
|
1095
|
-
var CardCustom = (0,
|
|
1096
|
-
const styles = (0,
|
|
1097
|
-
return /* @__PURE__ */ (0,
|
|
744
|
+
var import_react10 = require("@chakra-ui/react");
|
|
745
|
+
var import_react11 = require("react");
|
|
746
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
747
|
+
var CardCustom = (0, import_react11.forwardRef)(({ children, ...rest }, ref) => {
|
|
748
|
+
const styles = (0, import_react10.useStyleConfig)("Card", rest);
|
|
749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.Card, { __css: styles, backgroundColor: "white.high", ref, ...rest, children });
|
|
1098
750
|
});
|
|
1099
751
|
CardCustom.defaultProps = {
|
|
1100
752
|
withShadow: true,
|
|
@@ -1103,14 +755,14 @@ CardCustom.defaultProps = {
|
|
|
1103
755
|
var card_default = CardCustom;
|
|
1104
756
|
|
|
1105
757
|
// src/components/checkbox/components/checkbox.tsx
|
|
1106
|
-
var
|
|
1107
|
-
var
|
|
1108
|
-
var CheckboxComponent = (0,
|
|
758
|
+
var import_react12 = require("@chakra-ui/react");
|
|
759
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
760
|
+
var CheckboxComponent = (0, import_react12.forwardRef)(
|
|
1109
761
|
({ isError = false, helpText = "", errorText = "", boxProps, children, isDisabled, ...rest }, ref) => {
|
|
1110
762
|
const variant = isError ? "errors" : "unstyled";
|
|
1111
|
-
return /* @__PURE__ */ (0,
|
|
1112
|
-
/* @__PURE__ */ (0,
|
|
1113
|
-
(isError || helpText) && /* @__PURE__ */ (0,
|
|
763
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_react12.Box, { ...boxProps, children: [
|
|
764
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react12.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react12.Checkbox, { variant, ref, ...rest, isDisabled, children: children && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react12.Text, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
|
765
|
+
(isError || helpText) && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react12.Box, { mt: "5px", ml: "24px", children: isError ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react12.Text, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react12.Text, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) })
|
|
1114
766
|
] });
|
|
1115
767
|
}
|
|
1116
768
|
);
|
|
@@ -1123,11 +775,11 @@ CheckboxComponent.defaultProps = {
|
|
|
1123
775
|
var checkbox_default = CheckboxComponent;
|
|
1124
776
|
|
|
1125
777
|
// src/components/checkbox/components/checkbox-group.tsx
|
|
1126
|
-
var
|
|
778
|
+
var import_react14 = require("@chakra-ui/react");
|
|
1127
779
|
|
|
1128
780
|
// src/components/field/components/field.tsx
|
|
1129
|
-
var
|
|
1130
|
-
var
|
|
781
|
+
var import_react13 = require("@chakra-ui/react");
|
|
782
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1131
783
|
var Field = (props) => {
|
|
1132
784
|
const {
|
|
1133
785
|
label,
|
|
@@ -1151,15 +803,15 @@ var Field = (props) => {
|
|
|
1151
803
|
};
|
|
1152
804
|
const helperColor = getHelperColor();
|
|
1153
805
|
const justifyHelper = getJustifyContentHelper();
|
|
1154
|
-
return /* @__PURE__ */ (0,
|
|
1155
|
-
label && (typeof label === "string" ? /* @__PURE__ */ (0,
|
|
1156
|
-
isRequired && /* @__PURE__ */ (0,
|
|
806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react13.FormControl, { isInvalid: isError, ...boxProps, children: [
|
|
807
|
+
label && (typeof label === "string" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react13.FormLabel, { mb: 1, fontSize: "text.sm", requiredIndicator: void 0, children: [
|
|
808
|
+
isRequired && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.Box, { as: "span", color: "danger.500", ml: 0, mr: 1, children: "*" }),
|
|
1157
809
|
label
|
|
1158
810
|
] }) : label),
|
|
1159
811
|
children,
|
|
1160
|
-
(isError && errorMessage || leftHelperText || rightHelperText) && /* @__PURE__ */ (0,
|
|
1161
|
-
!isError ? leftHelperText && (typeof leftHelperText === "string" ? /* @__PURE__ */ (0,
|
|
1162
|
-
rightHelperText && (typeof rightHelperText === "string" ? /* @__PURE__ */ (0,
|
|
812
|
+
(isError && errorMessage || leftHelperText || rightHelperText) && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react13.Box, { display: "flex", width: "full", justifyContent: justifyHelper, children: [
|
|
813
|
+
!isError ? leftHelperText && (typeof leftHelperText === "string" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.FormHelperText, { fontSize: "text.xs", color: helperColor, mt: 1, children: leftHelperText }) : leftHelperText) : typeof errorMessage === "string" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.FormErrorMessage, { fontSize: "text.xs", color: "danger.500", mt: 1, children: errorMessage }) : errorMessage,
|
|
814
|
+
rightHelperText && (typeof rightHelperText === "string" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.FormHelperText, { fontSize: "text.xs", color: helperColor, mt: 1, children: rightHelperText }) : rightHelperText)
|
|
1163
815
|
] })
|
|
1164
816
|
] });
|
|
1165
817
|
};
|
|
@@ -1176,10 +828,10 @@ Field.defaultProps = {
|
|
|
1176
828
|
var field_default = Field;
|
|
1177
829
|
|
|
1178
830
|
// src/components/checkbox/components/checkbox-group.tsx
|
|
1179
|
-
var
|
|
831
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1180
832
|
function CheckboxGroupComponent(props) {
|
|
1181
833
|
const { children, label, helpText, isError, errorMessage, ...rest } = props;
|
|
1182
|
-
return /* @__PURE__ */ (0,
|
|
834
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(field_default, { ...rest, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react14.Box, { mt: "12px", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react14.CheckboxGroup, { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react14.Stack, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
|
|
1183
835
|
}
|
|
1184
836
|
CheckboxGroupComponent.defaultProps = {
|
|
1185
837
|
helpText: "",
|
|
@@ -1188,736 +840,26 @@ CheckboxGroupComponent.defaultProps = {
|
|
|
1188
840
|
};
|
|
1189
841
|
var checkbox_group_default = CheckboxGroupComponent;
|
|
1190
842
|
|
|
1191
|
-
//
|
|
1192
|
-
var
|
|
1193
|
-
function isInputEvent(value) {
|
|
1194
|
-
return value && isObject(value) && isObject(value.target);
|
|
1195
|
-
}
|
|
1196
|
-
function useCheckboxGroup(props = {}) {
|
|
1197
|
-
const {
|
|
1198
|
-
defaultValue,
|
|
1199
|
-
value: valueProp,
|
|
1200
|
-
onChange,
|
|
1201
|
-
isDisabled,
|
|
1202
|
-
isNative
|
|
1203
|
-
} = props;
|
|
1204
|
-
const onChangeProp = useCallbackRef(onChange);
|
|
1205
|
-
const [value, setValue] = useControllableState({
|
|
1206
|
-
value: valueProp,
|
|
1207
|
-
defaultValue: defaultValue || [],
|
|
1208
|
-
onChange: onChangeProp
|
|
1209
|
-
});
|
|
1210
|
-
const handleChange = (0, import_react20.useCallback)(
|
|
1211
|
-
(eventOrValue) => {
|
|
1212
|
-
if (!value)
|
|
1213
|
-
return;
|
|
1214
|
-
const isChecked = isInputEvent(eventOrValue) ? eventOrValue.target.checked : !value.includes(eventOrValue);
|
|
1215
|
-
const selectedValue = isInputEvent(eventOrValue) ? eventOrValue.target.value : eventOrValue;
|
|
1216
|
-
const nextValue = isChecked ? [...value, selectedValue] : value.filter((v) => String(v) !== String(selectedValue));
|
|
1217
|
-
setValue(nextValue);
|
|
1218
|
-
},
|
|
1219
|
-
[setValue, value]
|
|
1220
|
-
);
|
|
1221
|
-
const getCheckboxProps = (0, import_react20.useCallback)(
|
|
1222
|
-
(props2 = {}) => {
|
|
1223
|
-
const checkedKey = isNative ? "checked" : "isChecked";
|
|
1224
|
-
return {
|
|
1225
|
-
...props2,
|
|
1226
|
-
[checkedKey]: value.some((val) => String(props2.value) === String(val)),
|
|
1227
|
-
onChange: handleChange
|
|
1228
|
-
};
|
|
1229
|
-
},
|
|
1230
|
-
[handleChange, isNative, value]
|
|
1231
|
-
);
|
|
1232
|
-
return {
|
|
1233
|
-
value,
|
|
1234
|
-
isDisabled,
|
|
1235
|
-
onChange: handleChange,
|
|
1236
|
-
setValue,
|
|
1237
|
-
getCheckboxProps
|
|
1238
|
-
};
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
// ../../node_modules/@chakra-ui/checkbox/dist/chunk-DFEUIRKX.mjs
|
|
1242
|
-
var import_system7 = require("@chakra-ui/system");
|
|
1243
|
-
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1244
|
-
function CheckIcon2(props) {
|
|
1245
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1246
|
-
import_system7.chakra.svg,
|
|
1247
|
-
{
|
|
1248
|
-
width: "1.2em",
|
|
1249
|
-
viewBox: "0 0 12 10",
|
|
1250
|
-
style: {
|
|
1251
|
-
fill: "none",
|
|
1252
|
-
strokeWidth: 2,
|
|
1253
|
-
stroke: "currentColor",
|
|
1254
|
-
strokeDasharray: 16
|
|
1255
|
-
},
|
|
1256
|
-
...props,
|
|
1257
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("polyline", { points: "1.5 6 4.5 9 10.5 1" })
|
|
1258
|
-
}
|
|
1259
|
-
);
|
|
1260
|
-
}
|
|
1261
|
-
function IndeterminateIcon(props) {
|
|
1262
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1263
|
-
import_system7.chakra.svg,
|
|
1264
|
-
{
|
|
1265
|
-
width: "1.2em",
|
|
1266
|
-
viewBox: "0 0 24 24",
|
|
1267
|
-
style: { stroke: "currentColor", strokeWidth: 4 },
|
|
1268
|
-
...props,
|
|
1269
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("line", { x1: "21", x2: "3", y1: "12", y2: "12" })
|
|
1270
|
-
}
|
|
1271
|
-
);
|
|
1272
|
-
}
|
|
1273
|
-
function CheckboxIcon(props) {
|
|
1274
|
-
const { isIndeterminate, isChecked, ...rest } = props;
|
|
1275
|
-
const BaseIcon = isIndeterminate ? IndeterminateIcon : CheckIcon2;
|
|
1276
|
-
return isChecked || isIndeterminate ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1277
|
-
import_system7.chakra.div,
|
|
1278
|
-
{
|
|
1279
|
-
style: {
|
|
1280
|
-
display: "flex",
|
|
1281
|
-
alignItems: "center",
|
|
1282
|
-
justifyContent: "center",
|
|
1283
|
-
height: "100%"
|
|
1284
|
-
},
|
|
1285
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(BaseIcon, { ...rest })
|
|
1286
|
-
}
|
|
1287
|
-
) : null;
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
// ../../node_modules/@chakra-ui/form-control/dist/chunk-6ZNYZUDD.mjs
|
|
1291
|
-
var import_system8 = require("@chakra-ui/system");
|
|
1292
|
-
var import_react21 = require("react");
|
|
1293
|
-
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1294
|
-
var [FormControlStylesProvider, useFormControlStyles] = createContext({
|
|
1295
|
-
name: `FormControlStylesContext`,
|
|
1296
|
-
errorMessage: `useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `
|
|
1297
|
-
});
|
|
1298
|
-
var [FormControlProvider, useFormControlContext] = createContext({
|
|
1299
|
-
strict: false,
|
|
1300
|
-
name: "FormControlContext"
|
|
1301
|
-
});
|
|
1302
|
-
function useFormControlProvider(props) {
|
|
1303
|
-
const {
|
|
1304
|
-
id: idProp,
|
|
1305
|
-
isRequired,
|
|
1306
|
-
isInvalid,
|
|
1307
|
-
isDisabled,
|
|
1308
|
-
isReadOnly,
|
|
1309
|
-
...htmlProps
|
|
1310
|
-
} = props;
|
|
1311
|
-
const uuid = (0, import_react21.useId)();
|
|
1312
|
-
const id = idProp || `field-${uuid}`;
|
|
1313
|
-
const labelId = `${id}-label`;
|
|
1314
|
-
const feedbackId = `${id}-feedback`;
|
|
1315
|
-
const helpTextId = `${id}-helptext`;
|
|
1316
|
-
const [hasFeedbackText, setHasFeedbackText] = (0, import_react21.useState)(false);
|
|
1317
|
-
const [hasHelpText, setHasHelpText] = (0, import_react21.useState)(false);
|
|
1318
|
-
const [isFocused, setFocus] = (0, import_react21.useState)(false);
|
|
1319
|
-
const getHelpTextProps = (0, import_react21.useCallback)(
|
|
1320
|
-
(props2 = {}, forwardedRef = null) => ({
|
|
1321
|
-
id: helpTextId,
|
|
1322
|
-
...props2,
|
|
1323
|
-
ref: mergeRefs(forwardedRef, (node) => {
|
|
1324
|
-
if (!node)
|
|
1325
|
-
return;
|
|
1326
|
-
setHasHelpText(true);
|
|
1327
|
-
})
|
|
1328
|
-
}),
|
|
1329
|
-
[helpTextId]
|
|
1330
|
-
);
|
|
1331
|
-
const getLabelProps = (0, import_react21.useCallback)(
|
|
1332
|
-
(props2 = {}, forwardedRef = null) => ({
|
|
1333
|
-
...props2,
|
|
1334
|
-
ref: forwardedRef,
|
|
1335
|
-
"data-focus": dataAttr(isFocused),
|
|
1336
|
-
"data-disabled": dataAttr(isDisabled),
|
|
1337
|
-
"data-invalid": dataAttr(isInvalid),
|
|
1338
|
-
"data-readonly": dataAttr(isReadOnly),
|
|
1339
|
-
id: props2.id !== void 0 ? props2.id : labelId,
|
|
1340
|
-
htmlFor: props2.htmlFor !== void 0 ? props2.htmlFor : id
|
|
1341
|
-
}),
|
|
1342
|
-
[id, isDisabled, isFocused, isInvalid, isReadOnly, labelId]
|
|
1343
|
-
);
|
|
1344
|
-
const getErrorMessageProps = (0, import_react21.useCallback)(
|
|
1345
|
-
(props2 = {}, forwardedRef = null) => ({
|
|
1346
|
-
id: feedbackId,
|
|
1347
|
-
...props2,
|
|
1348
|
-
ref: mergeRefs(forwardedRef, (node) => {
|
|
1349
|
-
if (!node)
|
|
1350
|
-
return;
|
|
1351
|
-
setHasFeedbackText(true);
|
|
1352
|
-
}),
|
|
1353
|
-
"aria-live": "polite"
|
|
1354
|
-
}),
|
|
1355
|
-
[feedbackId]
|
|
1356
|
-
);
|
|
1357
|
-
const getRootProps = (0, import_react21.useCallback)(
|
|
1358
|
-
(props2 = {}, forwardedRef = null) => ({
|
|
1359
|
-
...props2,
|
|
1360
|
-
...htmlProps,
|
|
1361
|
-
ref: forwardedRef,
|
|
1362
|
-
role: "group"
|
|
1363
|
-
}),
|
|
1364
|
-
[htmlProps]
|
|
1365
|
-
);
|
|
1366
|
-
const getRequiredIndicatorProps = (0, import_react21.useCallback)(
|
|
1367
|
-
(props2 = {}, forwardedRef = null) => ({
|
|
1368
|
-
...props2,
|
|
1369
|
-
ref: forwardedRef,
|
|
1370
|
-
role: "presentation",
|
|
1371
|
-
"aria-hidden": true,
|
|
1372
|
-
children: props2.children || "*"
|
|
1373
|
-
}),
|
|
1374
|
-
[]
|
|
1375
|
-
);
|
|
1376
|
-
return {
|
|
1377
|
-
isRequired: !!isRequired,
|
|
1378
|
-
isInvalid: !!isInvalid,
|
|
1379
|
-
isReadOnly: !!isReadOnly,
|
|
1380
|
-
isDisabled: !!isDisabled,
|
|
1381
|
-
isFocused: !!isFocused,
|
|
1382
|
-
onFocus: () => setFocus(true),
|
|
1383
|
-
onBlur: () => setFocus(false),
|
|
1384
|
-
hasFeedbackText,
|
|
1385
|
-
setHasFeedbackText,
|
|
1386
|
-
hasHelpText,
|
|
1387
|
-
setHasHelpText,
|
|
1388
|
-
id,
|
|
1389
|
-
labelId,
|
|
1390
|
-
feedbackId,
|
|
1391
|
-
helpTextId,
|
|
1392
|
-
htmlProps,
|
|
1393
|
-
getHelpTextProps,
|
|
1394
|
-
getErrorMessageProps,
|
|
1395
|
-
getRootProps,
|
|
1396
|
-
getLabelProps,
|
|
1397
|
-
getRequiredIndicatorProps
|
|
1398
|
-
};
|
|
1399
|
-
}
|
|
1400
|
-
var FormControl2 = (0, import_system8.forwardRef)(
|
|
1401
|
-
function FormControl22(props, ref) {
|
|
1402
|
-
const styles = (0, import_system8.useMultiStyleConfig)("Form", props);
|
|
1403
|
-
const ownProps = (0, import_system8.omitThemingProps)(props);
|
|
1404
|
-
const {
|
|
1405
|
-
getRootProps,
|
|
1406
|
-
htmlProps: _,
|
|
1407
|
-
...context
|
|
1408
|
-
} = useFormControlProvider(ownProps);
|
|
1409
|
-
const className = cx("chakra-form-control", props.className);
|
|
1410
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FormControlProvider, { value: context, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FormControlStylesProvider, { value: styles, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1411
|
-
import_system8.chakra.div,
|
|
1412
|
-
{
|
|
1413
|
-
...getRootProps({}, ref),
|
|
1414
|
-
className,
|
|
1415
|
-
__css: styles["container"]
|
|
1416
|
-
}
|
|
1417
|
-
) }) });
|
|
1418
|
-
}
|
|
1419
|
-
);
|
|
1420
|
-
FormControl2.displayName = "FormControl";
|
|
1421
|
-
var FormHelperText2 = (0, import_system8.forwardRef)(
|
|
1422
|
-
function FormHelperText22(props, ref) {
|
|
1423
|
-
const field2 = useFormControlContext();
|
|
1424
|
-
const styles = useFormControlStyles();
|
|
1425
|
-
const className = cx("chakra-form__helper-text", props.className);
|
|
1426
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1427
|
-
import_system8.chakra.div,
|
|
1428
|
-
{
|
|
1429
|
-
...field2 == null ? void 0 : field2.getHelpTextProps(props, ref),
|
|
1430
|
-
__css: styles.helperText,
|
|
1431
|
-
className
|
|
1432
|
-
}
|
|
1433
|
-
);
|
|
1434
|
-
}
|
|
1435
|
-
);
|
|
1436
|
-
FormHelperText2.displayName = "FormHelperText";
|
|
1437
|
-
|
|
1438
|
-
// ../../node_modules/@chakra-ui/form-control/dist/chunk-IJBC3YLI.mjs
|
|
1439
|
-
function useFormControlProps(props) {
|
|
1440
|
-
var _a, _b, _c;
|
|
1441
|
-
const field2 = useFormControlContext();
|
|
1442
|
-
const {
|
|
1443
|
-
id,
|
|
1444
|
-
disabled,
|
|
1445
|
-
readOnly,
|
|
1446
|
-
required,
|
|
1447
|
-
isRequired,
|
|
1448
|
-
isInvalid,
|
|
1449
|
-
isReadOnly,
|
|
1450
|
-
isDisabled,
|
|
1451
|
-
onFocus,
|
|
1452
|
-
onBlur,
|
|
1453
|
-
...rest
|
|
1454
|
-
} = props;
|
|
1455
|
-
const labelIds = props["aria-describedby"] ? [props["aria-describedby"]] : [];
|
|
1456
|
-
if ((field2 == null ? void 0 : field2.hasFeedbackText) && (field2 == null ? void 0 : field2.isInvalid)) {
|
|
1457
|
-
labelIds.push(field2.feedbackId);
|
|
1458
|
-
}
|
|
1459
|
-
if (field2 == null ? void 0 : field2.hasHelpText) {
|
|
1460
|
-
labelIds.push(field2.helpTextId);
|
|
1461
|
-
}
|
|
1462
|
-
return {
|
|
1463
|
-
...rest,
|
|
1464
|
-
"aria-describedby": labelIds.join(" ") || void 0,
|
|
1465
|
-
id: id != null ? id : field2 == null ? void 0 : field2.id,
|
|
1466
|
-
isDisabled: (_a = disabled != null ? disabled : isDisabled) != null ? _a : field2 == null ? void 0 : field2.isDisabled,
|
|
1467
|
-
isReadOnly: (_b = readOnly != null ? readOnly : isReadOnly) != null ? _b : field2 == null ? void 0 : field2.isReadOnly,
|
|
1468
|
-
isRequired: (_c = required != null ? required : isRequired) != null ? _c : field2 == null ? void 0 : field2.isRequired,
|
|
1469
|
-
isInvalid: isInvalid != null ? isInvalid : field2 == null ? void 0 : field2.isInvalid,
|
|
1470
|
-
onFocus: callAllHandlers(field2 == null ? void 0 : field2.onFocus, onFocus),
|
|
1471
|
-
onBlur: callAllHandlers(field2 == null ? void 0 : field2.onBlur, onBlur)
|
|
1472
|
-
};
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
// ../../node_modules/@chakra-ui/react-use-safe-layout-effect/dist/index.mjs
|
|
1476
|
-
var import_react22 = require("react");
|
|
1477
|
-
var useSafeLayoutEffect2 = Boolean(globalThis == null ? void 0 : globalThis.document) ? import_react22.useLayoutEffect : import_react22.useEffect;
|
|
1478
|
-
|
|
1479
|
-
// ../../node_modules/@chakra-ui/react-use-update-effect/dist/index.mjs
|
|
1480
|
-
var import_react23 = require("react");
|
|
1481
|
-
function useUpdateEffect(callback, deps) {
|
|
1482
|
-
const renderCycleRef = (0, import_react23.useRef)(false);
|
|
1483
|
-
const effectCycleRef = (0, import_react23.useRef)(false);
|
|
1484
|
-
(0, import_react23.useEffect)(() => {
|
|
1485
|
-
const mounted = renderCycleRef.current;
|
|
1486
|
-
const run = mounted && effectCycleRef.current;
|
|
1487
|
-
if (run) {
|
|
1488
|
-
return callback();
|
|
1489
|
-
}
|
|
1490
|
-
effectCycleRef.current = true;
|
|
1491
|
-
}, deps);
|
|
1492
|
-
(0, import_react23.useEffect)(() => {
|
|
1493
|
-
renderCycleRef.current = true;
|
|
1494
|
-
return () => {
|
|
1495
|
-
renderCycleRef.current = false;
|
|
1496
|
-
};
|
|
1497
|
-
}, []);
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
// ../../node_modules/@chakra-ui/visually-hidden/dist/chunk-RSUMUOHR.mjs
|
|
1501
|
-
var visuallyHiddenStyle = {
|
|
1502
|
-
border: "0",
|
|
1503
|
-
clip: "rect(0, 0, 0, 0)",
|
|
1504
|
-
height: "1px",
|
|
1505
|
-
width: "1px",
|
|
1506
|
-
margin: "-1px",
|
|
1507
|
-
padding: "0",
|
|
1508
|
-
overflow: "hidden",
|
|
1509
|
-
whiteSpace: "nowrap",
|
|
1510
|
-
position: "absolute"
|
|
1511
|
-
};
|
|
1512
|
-
|
|
1513
|
-
// ../../node_modules/@zag-js/focus-visible/dist/index.mjs
|
|
1514
|
-
var hasSetup = false;
|
|
1515
|
-
var modality = null;
|
|
1516
|
-
var hasEventBeforeFocus = false;
|
|
1517
|
-
var hasBlurredWindowRecently = false;
|
|
1518
|
-
var handlers = /* @__PURE__ */ new Set();
|
|
1519
|
-
function trigger(modality2, event) {
|
|
1520
|
-
handlers.forEach((handler) => handler(modality2, event));
|
|
1521
|
-
}
|
|
1522
|
-
var isMac = typeof window !== "undefined" && window.navigator != null ? /^Mac/.test(window.navigator.platform) : false;
|
|
1523
|
-
function isValidKey(e) {
|
|
1524
|
-
return !(e.metaKey || !isMac && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
1525
|
-
}
|
|
1526
|
-
function onKeyboardEvent(event) {
|
|
1527
|
-
hasEventBeforeFocus = true;
|
|
1528
|
-
if (isValidKey(event)) {
|
|
1529
|
-
modality = "keyboard";
|
|
1530
|
-
trigger("keyboard", event);
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
function onPointerEvent(event) {
|
|
1534
|
-
modality = "pointer";
|
|
1535
|
-
if (event.type === "mousedown" || event.type === "pointerdown") {
|
|
1536
|
-
hasEventBeforeFocus = true;
|
|
1537
|
-
const target = event.composedPath ? event.composedPath()[0] : event.target;
|
|
1538
|
-
let matches = false;
|
|
1539
|
-
try {
|
|
1540
|
-
matches = target.matches(":focus-visible");
|
|
1541
|
-
} catch {
|
|
1542
|
-
}
|
|
1543
|
-
if (matches)
|
|
1544
|
-
return;
|
|
1545
|
-
trigger("pointer", event);
|
|
1546
|
-
}
|
|
1547
|
-
}
|
|
1548
|
-
function isVirtualClick(event) {
|
|
1549
|
-
if (event.mozInputSource === 0 && event.isTrusted)
|
|
1550
|
-
return true;
|
|
1551
|
-
return event.detail === 0 && !event.pointerType;
|
|
1552
|
-
}
|
|
1553
|
-
function onClickEvent(e) {
|
|
1554
|
-
if (isVirtualClick(e)) {
|
|
1555
|
-
hasEventBeforeFocus = true;
|
|
1556
|
-
modality = "virtual";
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
|
-
function onWindowFocus(event) {
|
|
1560
|
-
if (event.target === window || event.target === document) {
|
|
1561
|
-
return;
|
|
1562
|
-
}
|
|
1563
|
-
if (!hasEventBeforeFocus && !hasBlurredWindowRecently) {
|
|
1564
|
-
modality = "virtual";
|
|
1565
|
-
trigger("virtual", event);
|
|
1566
|
-
}
|
|
1567
|
-
hasEventBeforeFocus = false;
|
|
1568
|
-
hasBlurredWindowRecently = false;
|
|
1569
|
-
}
|
|
1570
|
-
function onWindowBlur() {
|
|
1571
|
-
hasEventBeforeFocus = false;
|
|
1572
|
-
hasBlurredWindowRecently = true;
|
|
1573
|
-
}
|
|
1574
|
-
function isFocusVisible() {
|
|
1575
|
-
return modality !== "pointer";
|
|
1576
|
-
}
|
|
1577
|
-
function setupGlobalFocusEvents() {
|
|
1578
|
-
if (typeof window === "undefined" || hasSetup) {
|
|
1579
|
-
return;
|
|
1580
|
-
}
|
|
1581
|
-
const { focus } = HTMLElement.prototype;
|
|
1582
|
-
HTMLElement.prototype.focus = function focusElement(...args) {
|
|
1583
|
-
hasEventBeforeFocus = true;
|
|
1584
|
-
focus.apply(this, args);
|
|
1585
|
-
};
|
|
1586
|
-
document.addEventListener("keydown", onKeyboardEvent, true);
|
|
1587
|
-
document.addEventListener("keyup", onKeyboardEvent, true);
|
|
1588
|
-
document.addEventListener("click", onClickEvent, true);
|
|
1589
|
-
window.addEventListener("focus", onWindowFocus, true);
|
|
1590
|
-
window.addEventListener("blur", onWindowBlur, false);
|
|
1591
|
-
if (typeof PointerEvent !== "undefined") {
|
|
1592
|
-
document.addEventListener("pointerdown", onPointerEvent, true);
|
|
1593
|
-
document.addEventListener("pointermove", onPointerEvent, true);
|
|
1594
|
-
document.addEventListener("pointerup", onPointerEvent, true);
|
|
1595
|
-
} else {
|
|
1596
|
-
document.addEventListener("mousedown", onPointerEvent, true);
|
|
1597
|
-
document.addEventListener("mousemove", onPointerEvent, true);
|
|
1598
|
-
document.addEventListener("mouseup", onPointerEvent, true);
|
|
1599
|
-
}
|
|
1600
|
-
hasSetup = true;
|
|
1601
|
-
}
|
|
1602
|
-
function trackFocusVisible(fn) {
|
|
1603
|
-
setupGlobalFocusEvents();
|
|
1604
|
-
fn(isFocusVisible());
|
|
1605
|
-
const handler = () => fn(isFocusVisible());
|
|
1606
|
-
handlers.add(handler);
|
|
1607
|
-
return () => {
|
|
1608
|
-
handlers.delete(handler);
|
|
1609
|
-
};
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
// ../../node_modules/@chakra-ui/checkbox/dist/chunk-HPA3SDH4.mjs
|
|
1613
|
-
var import_react24 = require("react");
|
|
1614
|
-
function omit(object, keysToOmit = []) {
|
|
1615
|
-
const clone = Object.assign({}, object);
|
|
1616
|
-
for (const key of keysToOmit) {
|
|
1617
|
-
if (key in clone) {
|
|
1618
|
-
delete clone[key];
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
return clone;
|
|
1622
|
-
}
|
|
1623
|
-
function useCheckbox(props = {}) {
|
|
1624
|
-
const formControlProps = useFormControlProps(props);
|
|
1625
|
-
const {
|
|
1626
|
-
isDisabled,
|
|
1627
|
-
isReadOnly,
|
|
1628
|
-
isRequired,
|
|
1629
|
-
isInvalid,
|
|
1630
|
-
id,
|
|
1631
|
-
onBlur,
|
|
1632
|
-
onFocus,
|
|
1633
|
-
"aria-describedby": ariaDescribedBy
|
|
1634
|
-
} = formControlProps;
|
|
1635
|
-
const {
|
|
1636
|
-
defaultChecked,
|
|
1637
|
-
isChecked: checkedProp,
|
|
1638
|
-
isFocusable,
|
|
1639
|
-
onChange,
|
|
1640
|
-
isIndeterminate,
|
|
1641
|
-
name,
|
|
1642
|
-
value,
|
|
1643
|
-
tabIndex = void 0,
|
|
1644
|
-
"aria-label": ariaLabel,
|
|
1645
|
-
"aria-labelledby": ariaLabelledBy,
|
|
1646
|
-
"aria-invalid": ariaInvalid,
|
|
1647
|
-
...rest
|
|
1648
|
-
} = props;
|
|
1649
|
-
const htmlProps = omit(rest, [
|
|
1650
|
-
"isDisabled",
|
|
1651
|
-
"isReadOnly",
|
|
1652
|
-
"isRequired",
|
|
1653
|
-
"isInvalid",
|
|
1654
|
-
"id",
|
|
1655
|
-
"onBlur",
|
|
1656
|
-
"onFocus",
|
|
1657
|
-
"aria-describedby"
|
|
1658
|
-
]);
|
|
1659
|
-
const onChangeProp = useCallbackRef(onChange);
|
|
1660
|
-
const onBlurProp = useCallbackRef(onBlur);
|
|
1661
|
-
const onFocusProp = useCallbackRef(onFocus);
|
|
1662
|
-
const [isFocusVisible2, setIsFocusVisible] = (0, import_react24.useState)(false);
|
|
1663
|
-
const [isFocused, setFocused] = (0, import_react24.useState)(false);
|
|
1664
|
-
const [isHovered, setHovered] = (0, import_react24.useState)(false);
|
|
1665
|
-
const [isActive, setActive] = (0, import_react24.useState)(false);
|
|
1666
|
-
(0, import_react24.useEffect)(() => {
|
|
1667
|
-
return trackFocusVisible(setIsFocusVisible);
|
|
1668
|
-
}, []);
|
|
1669
|
-
const inputRef = (0, import_react24.useRef)(null);
|
|
1670
|
-
const [rootIsLabelElement, setRootIsLabelElement] = (0, import_react24.useState)(true);
|
|
1671
|
-
const [checkedState, setCheckedState] = (0, import_react24.useState)(!!defaultChecked);
|
|
1672
|
-
const isControlled = checkedProp !== void 0;
|
|
1673
|
-
const isChecked = isControlled ? checkedProp : checkedState;
|
|
1674
|
-
const handleChange = (0, import_react24.useCallback)(
|
|
1675
|
-
(event) => {
|
|
1676
|
-
if (isReadOnly || isDisabled) {
|
|
1677
|
-
event.preventDefault();
|
|
1678
|
-
return;
|
|
1679
|
-
}
|
|
1680
|
-
if (!isControlled) {
|
|
1681
|
-
if (isChecked) {
|
|
1682
|
-
setCheckedState(event.target.checked);
|
|
1683
|
-
} else {
|
|
1684
|
-
setCheckedState(isIndeterminate ? true : event.target.checked);
|
|
1685
|
-
}
|
|
1686
|
-
}
|
|
1687
|
-
onChangeProp == null ? void 0 : onChangeProp(event);
|
|
1688
|
-
},
|
|
1689
|
-
[
|
|
1690
|
-
isReadOnly,
|
|
1691
|
-
isDisabled,
|
|
1692
|
-
isChecked,
|
|
1693
|
-
isControlled,
|
|
1694
|
-
isIndeterminate,
|
|
1695
|
-
onChangeProp
|
|
1696
|
-
]
|
|
1697
|
-
);
|
|
1698
|
-
useSafeLayoutEffect2(() => {
|
|
1699
|
-
if (inputRef.current) {
|
|
1700
|
-
inputRef.current.indeterminate = Boolean(isIndeterminate);
|
|
1701
|
-
}
|
|
1702
|
-
}, [isIndeterminate]);
|
|
1703
|
-
useUpdateEffect(() => {
|
|
1704
|
-
if (isDisabled) {
|
|
1705
|
-
setFocused(false);
|
|
1706
|
-
}
|
|
1707
|
-
}, [isDisabled, setFocused]);
|
|
1708
|
-
useSafeLayoutEffect2(() => {
|
|
1709
|
-
const el = inputRef.current;
|
|
1710
|
-
if (!(el == null ? void 0 : el.form))
|
|
1711
|
-
return;
|
|
1712
|
-
el.form.onreset = () => {
|
|
1713
|
-
setCheckedState(!!defaultChecked);
|
|
1714
|
-
};
|
|
1715
|
-
}, []);
|
|
1716
|
-
const trulyDisabled = isDisabled && !isFocusable;
|
|
1717
|
-
const onKeyDown = (0, import_react24.useCallback)(
|
|
1718
|
-
(event) => {
|
|
1719
|
-
if (event.key === " ") {
|
|
1720
|
-
setActive(true);
|
|
1721
|
-
}
|
|
1722
|
-
},
|
|
1723
|
-
[setActive]
|
|
1724
|
-
);
|
|
1725
|
-
const onKeyUp = (0, import_react24.useCallback)(
|
|
1726
|
-
(event) => {
|
|
1727
|
-
if (event.key === " ") {
|
|
1728
|
-
setActive(false);
|
|
1729
|
-
}
|
|
1730
|
-
},
|
|
1731
|
-
[setActive]
|
|
1732
|
-
);
|
|
1733
|
-
useSafeLayoutEffect2(() => {
|
|
1734
|
-
if (!inputRef.current)
|
|
1735
|
-
return;
|
|
1736
|
-
const notInSync = inputRef.current.checked !== isChecked;
|
|
1737
|
-
if (notInSync) {
|
|
1738
|
-
setCheckedState(inputRef.current.checked);
|
|
1739
|
-
}
|
|
1740
|
-
}, [inputRef.current]);
|
|
1741
|
-
const getCheckboxProps = (0, import_react24.useCallback)(
|
|
1742
|
-
(props2 = {}, forwardedRef = null) => {
|
|
1743
|
-
const onPressDown = (event) => {
|
|
1744
|
-
if (isFocused) {
|
|
1745
|
-
event.preventDefault();
|
|
1746
|
-
}
|
|
1747
|
-
setActive(true);
|
|
1748
|
-
};
|
|
1749
|
-
return {
|
|
1750
|
-
...props2,
|
|
1751
|
-
ref: forwardedRef,
|
|
1752
|
-
"data-active": dataAttr(isActive),
|
|
1753
|
-
"data-hover": dataAttr(isHovered),
|
|
1754
|
-
"data-checked": dataAttr(isChecked),
|
|
1755
|
-
"data-focus": dataAttr(isFocused),
|
|
1756
|
-
"data-focus-visible": dataAttr(isFocused && isFocusVisible2),
|
|
1757
|
-
"data-indeterminate": dataAttr(isIndeterminate),
|
|
1758
|
-
"data-disabled": dataAttr(isDisabled),
|
|
1759
|
-
"data-invalid": dataAttr(isInvalid),
|
|
1760
|
-
"data-readonly": dataAttr(isReadOnly),
|
|
1761
|
-
"aria-hidden": true,
|
|
1762
|
-
onMouseDown: callAllHandlers(props2.onMouseDown, onPressDown),
|
|
1763
|
-
onMouseUp: callAllHandlers(props2.onMouseUp, () => setActive(false)),
|
|
1764
|
-
onMouseEnter: callAllHandlers(
|
|
1765
|
-
props2.onMouseEnter,
|
|
1766
|
-
() => setHovered(true)
|
|
1767
|
-
),
|
|
1768
|
-
onMouseLeave: callAllHandlers(
|
|
1769
|
-
props2.onMouseLeave,
|
|
1770
|
-
() => setHovered(false)
|
|
1771
|
-
)
|
|
1772
|
-
};
|
|
1773
|
-
},
|
|
1774
|
-
[
|
|
1775
|
-
isActive,
|
|
1776
|
-
isChecked,
|
|
1777
|
-
isDisabled,
|
|
1778
|
-
isFocused,
|
|
1779
|
-
isFocusVisible2,
|
|
1780
|
-
isHovered,
|
|
1781
|
-
isIndeterminate,
|
|
1782
|
-
isInvalid,
|
|
1783
|
-
isReadOnly
|
|
1784
|
-
]
|
|
1785
|
-
);
|
|
1786
|
-
const getRootProps = (0, import_react24.useCallback)(
|
|
1787
|
-
(props2 = {}, forwardedRef = null) => ({
|
|
1788
|
-
...htmlProps,
|
|
1789
|
-
...props2,
|
|
1790
|
-
ref: mergeRefs(forwardedRef, (node) => {
|
|
1791
|
-
if (!node)
|
|
1792
|
-
return;
|
|
1793
|
-
setRootIsLabelElement(node.tagName === "LABEL");
|
|
1794
|
-
}),
|
|
1795
|
-
onClick: callAllHandlers(props2.onClick, () => {
|
|
1796
|
-
var _a;
|
|
1797
|
-
if (!rootIsLabelElement) {
|
|
1798
|
-
(_a = inputRef.current) == null ? void 0 : _a.click();
|
|
1799
|
-
requestAnimationFrame(() => {
|
|
1800
|
-
var _a2;
|
|
1801
|
-
(_a2 = inputRef.current) == null ? void 0 : _a2.focus({ preventScroll: true });
|
|
1802
|
-
});
|
|
1803
|
-
}
|
|
1804
|
-
}),
|
|
1805
|
-
"data-disabled": dataAttr(isDisabled),
|
|
1806
|
-
"data-checked": dataAttr(isChecked),
|
|
1807
|
-
"data-invalid": dataAttr(isInvalid)
|
|
1808
|
-
}),
|
|
1809
|
-
[htmlProps, isDisabled, isChecked, isInvalid, rootIsLabelElement]
|
|
1810
|
-
);
|
|
1811
|
-
const getInputProps = (0, import_react24.useCallback)(
|
|
1812
|
-
(props2 = {}, forwardedRef = null) => {
|
|
1813
|
-
return {
|
|
1814
|
-
...props2,
|
|
1815
|
-
ref: mergeRefs(inputRef, forwardedRef),
|
|
1816
|
-
type: "checkbox",
|
|
1817
|
-
name,
|
|
1818
|
-
value,
|
|
1819
|
-
id,
|
|
1820
|
-
tabIndex,
|
|
1821
|
-
onChange: callAllHandlers(props2.onChange, handleChange),
|
|
1822
|
-
onBlur: callAllHandlers(
|
|
1823
|
-
props2.onBlur,
|
|
1824
|
-
onBlurProp,
|
|
1825
|
-
() => setFocused(false)
|
|
1826
|
-
),
|
|
1827
|
-
onFocus: callAllHandlers(
|
|
1828
|
-
props2.onFocus,
|
|
1829
|
-
onFocusProp,
|
|
1830
|
-
() => setFocused(true)
|
|
1831
|
-
),
|
|
1832
|
-
onKeyDown: callAllHandlers(props2.onKeyDown, onKeyDown),
|
|
1833
|
-
onKeyUp: callAllHandlers(props2.onKeyUp, onKeyUp),
|
|
1834
|
-
required: isRequired,
|
|
1835
|
-
checked: isChecked,
|
|
1836
|
-
disabled: trulyDisabled,
|
|
1837
|
-
readOnly: isReadOnly,
|
|
1838
|
-
"aria-label": ariaLabel,
|
|
1839
|
-
"aria-labelledby": ariaLabelledBy,
|
|
1840
|
-
"aria-invalid": ariaInvalid ? Boolean(ariaInvalid) : isInvalid,
|
|
1841
|
-
"aria-describedby": ariaDescribedBy,
|
|
1842
|
-
"aria-disabled": isDisabled,
|
|
1843
|
-
style: visuallyHiddenStyle
|
|
1844
|
-
};
|
|
1845
|
-
},
|
|
1846
|
-
[
|
|
1847
|
-
name,
|
|
1848
|
-
value,
|
|
1849
|
-
id,
|
|
1850
|
-
handleChange,
|
|
1851
|
-
onBlurProp,
|
|
1852
|
-
onFocusProp,
|
|
1853
|
-
onKeyDown,
|
|
1854
|
-
onKeyUp,
|
|
1855
|
-
isRequired,
|
|
1856
|
-
isChecked,
|
|
1857
|
-
trulyDisabled,
|
|
1858
|
-
isReadOnly,
|
|
1859
|
-
ariaLabel,
|
|
1860
|
-
ariaLabelledBy,
|
|
1861
|
-
ariaInvalid,
|
|
1862
|
-
isInvalid,
|
|
1863
|
-
ariaDescribedBy,
|
|
1864
|
-
isDisabled,
|
|
1865
|
-
tabIndex
|
|
1866
|
-
]
|
|
1867
|
-
);
|
|
1868
|
-
const getLabelProps = (0, import_react24.useCallback)(
|
|
1869
|
-
(props2 = {}, forwardedRef = null) => ({
|
|
1870
|
-
...props2,
|
|
1871
|
-
ref: forwardedRef,
|
|
1872
|
-
onMouseDown: callAllHandlers(props2.onMouseDown, stopEvent),
|
|
1873
|
-
"data-disabled": dataAttr(isDisabled),
|
|
1874
|
-
"data-checked": dataAttr(isChecked),
|
|
1875
|
-
"data-invalid": dataAttr(isInvalid)
|
|
1876
|
-
}),
|
|
1877
|
-
[isChecked, isDisabled, isInvalid]
|
|
1878
|
-
);
|
|
1879
|
-
const state = {
|
|
1880
|
-
isInvalid,
|
|
1881
|
-
isFocused,
|
|
1882
|
-
isChecked,
|
|
1883
|
-
isActive,
|
|
1884
|
-
isHovered,
|
|
1885
|
-
isIndeterminate,
|
|
1886
|
-
isDisabled,
|
|
1887
|
-
isReadOnly,
|
|
1888
|
-
isRequired
|
|
1889
|
-
};
|
|
1890
|
-
return {
|
|
1891
|
-
state,
|
|
1892
|
-
getRootProps,
|
|
1893
|
-
getCheckboxProps,
|
|
1894
|
-
getInputProps,
|
|
1895
|
-
getLabelProps,
|
|
1896
|
-
htmlProps
|
|
1897
|
-
};
|
|
1898
|
-
}
|
|
1899
|
-
function stopEvent(event) {
|
|
1900
|
-
event.preventDefault();
|
|
1901
|
-
event.stopPropagation();
|
|
1902
|
-
}
|
|
843
|
+
// src/components/checkbox/index.ts
|
|
844
|
+
var import_react15 = require("@chakra-ui/react");
|
|
1903
845
|
|
|
1904
846
|
// src/components/chips/components/chips.tsx
|
|
1905
|
-
var
|
|
847
|
+
var import_react16 = require("@chakra-ui/react");
|
|
1906
848
|
var import_internal_icon3 = require("@ctlyst.id/internal-icon");
|
|
1907
|
-
var
|
|
1908
|
-
var
|
|
849
|
+
var import_react17 = require("react");
|
|
850
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1909
851
|
var Chips = ({ children, ...rest }) => {
|
|
1910
852
|
const { isActive, isDisabled, onClose } = rest;
|
|
1911
|
-
const styles = (0,
|
|
1912
|
-
const closeColor = (0,
|
|
853
|
+
const styles = (0, import_react16.useStyleConfig)("Chips", rest);
|
|
854
|
+
const closeColor = (0, import_react17.useMemo)(() => {
|
|
1913
855
|
if (isActive) return "white.high";
|
|
1914
856
|
if (isDisabled) return "black.low";
|
|
1915
857
|
return "primary.500";
|
|
1916
858
|
}, [isActive, isDisabled]);
|
|
1917
|
-
return /* @__PURE__ */ (0,
|
|
859
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_react16.Box, { __css: styles, display: "inline-flex", alignItems: "center", justifyContent: "center", ...rest, children: [
|
|
1918
860
|
children,
|
|
1919
|
-
onClose && /* @__PURE__ */ (0,
|
|
1920
|
-
|
|
861
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
862
|
+
import_react16.Box,
|
|
1921
863
|
{
|
|
1922
864
|
onClick: isDisabled ? void 0 : onClose,
|
|
1923
865
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
|
@@ -1925,7 +867,7 @@ var Chips = ({ children, ...rest }) => {
|
|
|
1925
867
|
display: "flex",
|
|
1926
868
|
alignItems: "center",
|
|
1927
869
|
justifyContent: "center",
|
|
1928
|
-
children: /* @__PURE__ */ (0,
|
|
870
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_internal_icon3.Close, { color: closeColor, size: 4 })
|
|
1929
871
|
}
|
|
1930
872
|
)
|
|
1931
873
|
] });
|
|
@@ -1940,30 +882,30 @@ Chips.defaultProps = {
|
|
|
1940
882
|
var chips_default = Chips;
|
|
1941
883
|
|
|
1942
884
|
// src/components/counter/components/counter.tsx
|
|
1943
|
-
var
|
|
885
|
+
var import_react27 = require("@chakra-ui/react");
|
|
1944
886
|
var import_fi2 = require("react-icons/fi");
|
|
1945
887
|
|
|
1946
888
|
// src/components/form/components/input-addon.tsx
|
|
1947
|
-
var
|
|
1948
|
-
var
|
|
889
|
+
var import_react18 = require("@chakra-ui/react");
|
|
890
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1949
891
|
var InputAddonLeft = ({ children }) => {
|
|
1950
|
-
return /* @__PURE__ */ (0,
|
|
892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react18.InputLeftAddon, { backgroundColor: "neutral.200", px: 3, py: 2.5, style: { border: 0, marginInlineEnd: 0 }, children });
|
|
1951
893
|
};
|
|
1952
894
|
var InputAddonRight = ({ children }) => {
|
|
1953
|
-
return /* @__PURE__ */ (0,
|
|
895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react18.InputRightAddon, { backgroundColor: "neutral.200", px: 3, py: 2.5, style: { border: 0, marginInlineStart: 0 }, children });
|
|
1954
896
|
};
|
|
1955
897
|
|
|
1956
898
|
// src/components/form/components/input-element.tsx
|
|
1957
|
-
var
|
|
1958
|
-
var
|
|
899
|
+
var import_react19 = require("@chakra-ui/react");
|
|
900
|
+
var import_react20 = require("@chakra-ui/react");
|
|
1959
901
|
|
|
1960
902
|
// src/components/form/components/input-field.tsx
|
|
1961
|
-
var
|
|
903
|
+
var import_react22 = require("@chakra-ui/react");
|
|
1962
904
|
var import_internal_icon4 = require("@ctlyst.id/internal-icon");
|
|
1963
|
-
var
|
|
905
|
+
var import_react23 = __toESM(require("react"));
|
|
1964
906
|
|
|
1965
907
|
// src/components/form/styles/input-field.ts
|
|
1966
|
-
var
|
|
908
|
+
var import_react21 = require("@chakra-ui/react");
|
|
1967
909
|
var getProperties = (props) => {
|
|
1968
910
|
const { isError, isDisabled, isSuccess } = props;
|
|
1969
911
|
let outlineColor = "neutral.400";
|
|
@@ -1990,13 +932,13 @@ var getWrapperStyle = (props) => {
|
|
|
1990
932
|
borderColor: focusColor
|
|
1991
933
|
}
|
|
1992
934
|
};
|
|
1993
|
-
return (0,
|
|
935
|
+
return (0, import_react21.defineStyle)(style);
|
|
1994
936
|
};
|
|
1995
937
|
var input_field_default = getWrapperStyle;
|
|
1996
938
|
|
|
1997
939
|
// src/components/form/components/input-field.tsx
|
|
1998
|
-
var
|
|
1999
|
-
var InputField =
|
|
940
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
941
|
+
var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
2000
942
|
const {
|
|
2001
943
|
value,
|
|
2002
944
|
type,
|
|
@@ -2017,20 +959,20 @@ var InputField = import_react32.default.forwardRef((props, ref) => {
|
|
|
2017
959
|
...inputProps
|
|
2018
960
|
} = props;
|
|
2019
961
|
const wrapperStyle = input_field_default(props);
|
|
2020
|
-
const [isShowPassword, setIsShowPassword] = (0,
|
|
2021
|
-
const inputType = (0,
|
|
962
|
+
const [isShowPassword, setIsShowPassword] = (0, import_react23.useState)(false);
|
|
963
|
+
const inputType = (0, import_react23.useMemo)(() => {
|
|
2022
964
|
return type === "password" && isShowPassword ? "text" : type;
|
|
2023
965
|
}, [isShowPassword, type]);
|
|
2024
|
-
const fontSize = (0,
|
|
966
|
+
const fontSize = (0, import_react23.useMemo)(() => {
|
|
2025
967
|
if (type === "password") {
|
|
2026
968
|
if (!isShowPassword && value) return "text.xl";
|
|
2027
969
|
}
|
|
2028
970
|
return "text.sm";
|
|
2029
971
|
}, [isShowPassword, type, value]);
|
|
2030
|
-
const iconColor = (0,
|
|
972
|
+
const iconColor = (0, import_react23.useMemo)(() => {
|
|
2031
973
|
return isDisabled ? "black.low" : "black.medium";
|
|
2032
974
|
}, [isDisabled]);
|
|
2033
|
-
return /* @__PURE__ */ (0,
|
|
975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2034
976
|
field_default,
|
|
2035
977
|
{
|
|
2036
978
|
label,
|
|
@@ -2040,8 +982,8 @@ var InputField = import_react32.default.forwardRef((props, ref) => {
|
|
|
2040
982
|
leftHelperText,
|
|
2041
983
|
rightHelperText,
|
|
2042
984
|
isRequired,
|
|
2043
|
-
children: /* @__PURE__ */ (0,
|
|
2044
|
-
|
|
985
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react22.Box, { __css: wrapperStyle, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
986
|
+
import_react22.InputGroup,
|
|
2045
987
|
{
|
|
2046
988
|
size: size2,
|
|
2047
989
|
borderRadius: "sm",
|
|
@@ -2049,8 +991,8 @@ var InputField = import_react32.default.forwardRef((props, ref) => {
|
|
|
2049
991
|
cursor: isDisabled ? "not-allowed" : "default",
|
|
2050
992
|
children: [
|
|
2051
993
|
addOnLeft,
|
|
2052
|
-
/* @__PURE__ */ (0,
|
|
2053
|
-
|
|
994
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
995
|
+
import_react22.Input,
|
|
2054
996
|
{
|
|
2055
997
|
ref,
|
|
2056
998
|
type: inputType,
|
|
@@ -2061,8 +1003,8 @@ var InputField = import_react32.default.forwardRef((props, ref) => {
|
|
|
2061
1003
|
fontSize
|
|
2062
1004
|
}
|
|
2063
1005
|
),
|
|
2064
|
-
(withClear || isLoading || type === "password") && /* @__PURE__ */ (0,
|
|
2065
|
-
|
|
1006
|
+
(withClear || isLoading || type === "password") && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1007
|
+
import_react22.Box,
|
|
2066
1008
|
{
|
|
2067
1009
|
"data-test-id": "CT_Component_ClearInput",
|
|
2068
1010
|
display: "flex",
|
|
@@ -2071,18 +1013,18 @@ var InputField = import_react32.default.forwardRef((props, ref) => {
|
|
|
2071
1013
|
width: "16px",
|
|
2072
1014
|
mr: "10px",
|
|
2073
1015
|
children: [
|
|
2074
|
-
withClear && !isLoading && /* @__PURE__ */ (0,
|
|
2075
|
-
|
|
1016
|
+
withClear && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1017
|
+
import_react22.Box,
|
|
2076
1018
|
{
|
|
2077
1019
|
display: "flex",
|
|
2078
1020
|
justifyContent: "center",
|
|
2079
1021
|
onClick: !isDisabled ? onClear : void 0,
|
|
2080
1022
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
|
2081
|
-
children: /* @__PURE__ */ (0,
|
|
1023
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_internal_icon4.Close, { size: 4, color: iconColor })
|
|
2082
1024
|
}
|
|
2083
1025
|
),
|
|
2084
|
-
type === "password" && !isShowPassword && !isLoading && /* @__PURE__ */ (0,
|
|
2085
|
-
|
|
1026
|
+
type === "password" && !isShowPassword && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1027
|
+
import_react22.Box,
|
|
2086
1028
|
{
|
|
2087
1029
|
"data-test-id": "q2Bj2G4FlamXyHuRKMZ1Q",
|
|
2088
1030
|
onClick: () => {
|
|
@@ -2091,11 +1033,11 @@ var InputField = import_react32.default.forwardRef((props, ref) => {
|
|
|
2091
1033
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
|
2092
1034
|
display: "flex",
|
|
2093
1035
|
justifyContent: "center",
|
|
2094
|
-
children: /* @__PURE__ */ (0,
|
|
1036
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_internal_icon4.EyeOff, { size: 4, color: iconColor })
|
|
2095
1037
|
}
|
|
2096
1038
|
),
|
|
2097
|
-
type === "password" && isShowPassword && !isLoading && /* @__PURE__ */ (0,
|
|
2098
|
-
|
|
1039
|
+
type === "password" && isShowPassword && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1040
|
+
import_react22.Box,
|
|
2099
1041
|
{
|
|
2100
1042
|
"data-test-id": "sfc2388bmeXBmdla45Ibk",
|
|
2101
1043
|
onClick: () => {
|
|
@@ -2104,10 +1046,10 @@ var InputField = import_react32.default.forwardRef((props, ref) => {
|
|
|
2104
1046
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
|
2105
1047
|
display: "flex",
|
|
2106
1048
|
justifyContent: "center",
|
|
2107
|
-
children: /* @__PURE__ */ (0,
|
|
1049
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_internal_icon4.Eye, { size: 4, color: iconColor })
|
|
2108
1050
|
}
|
|
2109
1051
|
),
|
|
2110
|
-
isLoading && /* @__PURE__ */ (0,
|
|
1052
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(loader_default, { size: "sm" })
|
|
2111
1053
|
]
|
|
2112
1054
|
}
|
|
2113
1055
|
),
|
|
@@ -2128,14 +1070,14 @@ InputField.defaultProps = {
|
|
|
2128
1070
|
var input_field_default2 = InputField;
|
|
2129
1071
|
|
|
2130
1072
|
// src/components/form/components/textarea.tsx
|
|
2131
|
-
var
|
|
2132
|
-
var
|
|
2133
|
-
var
|
|
2134
|
-
var TextareaField =
|
|
1073
|
+
var import_react24 = require("@chakra-ui/react");
|
|
1074
|
+
var import_react25 = __toESM(require("react"));
|
|
1075
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1076
|
+
var TextareaField = import_react25.default.forwardRef((props, ref) => {
|
|
2135
1077
|
const { value, isLoading, ...inputProps } = props;
|
|
2136
|
-
return /* @__PURE__ */ (0,
|
|
2137
|
-
/* @__PURE__ */ (0,
|
|
2138
|
-
isLoading && /* @__PURE__ */ (0,
|
|
1078
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(field_default, { ...inputProps, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_react24.Box, { position: "relative", children: [
|
|
1079
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react24.Textarea, { ref, value, ...inputProps }),
|
|
1080
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react24.Box, { zIndex: 999, top: 2, right: 2, position: "absolute", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(loader_default, { size: "sm" }) })
|
|
2139
1081
|
] }) });
|
|
2140
1082
|
});
|
|
2141
1083
|
TextareaField.defaultProps = {
|
|
@@ -2144,10 +1086,10 @@ TextareaField.defaultProps = {
|
|
|
2144
1086
|
var textarea_default = TextareaField;
|
|
2145
1087
|
|
|
2146
1088
|
// src/components/form/index.ts
|
|
2147
|
-
var
|
|
1089
|
+
var import_react26 = require("@chakra-ui/react");
|
|
2148
1090
|
|
|
2149
1091
|
// src/components/counter/components/counter.tsx
|
|
2150
|
-
var
|
|
1092
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2151
1093
|
var Counter = ({
|
|
2152
1094
|
value,
|
|
2153
1095
|
size: size2 = "xs",
|
|
@@ -2175,20 +1117,20 @@ var Counter = ({
|
|
|
2175
1117
|
const handleChange = (e) => {
|
|
2176
1118
|
onChange(+e.target.value);
|
|
2177
1119
|
};
|
|
2178
|
-
return /* @__PURE__ */ (0,
|
|
2179
|
-
/* @__PURE__ */ (0,
|
|
2180
|
-
/* @__PURE__ */ (0,
|
|
2181
|
-
|
|
1120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_react27.Box, { children: [
|
|
1121
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_react27.HStack, { children: [
|
|
1122
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1123
|
+
import_react27.IconButton,
|
|
2182
1124
|
{
|
|
2183
1125
|
"aria-label": "minus",
|
|
2184
1126
|
"data-test-id": "CT_Component_Counter_decrement",
|
|
2185
1127
|
onClick: decrement,
|
|
2186
1128
|
isDisabled: disabled || +value <= min,
|
|
2187
1129
|
size: size2,
|
|
2188
|
-
icon: /* @__PURE__ */ (0,
|
|
1130
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_fi2.FiMinus, {})
|
|
2189
1131
|
}
|
|
2190
1132
|
),
|
|
2191
|
-
/* @__PURE__ */ (0,
|
|
1133
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2192
1134
|
input_field_default2,
|
|
2193
1135
|
{
|
|
2194
1136
|
"data-test-id": "CT_Component_Counter_input",
|
|
@@ -2205,31 +1147,31 @@ var Counter = ({
|
|
|
2205
1147
|
type: "number"
|
|
2206
1148
|
}
|
|
2207
1149
|
),
|
|
2208
|
-
/* @__PURE__ */ (0,
|
|
2209
|
-
|
|
1150
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1151
|
+
import_react27.IconButton,
|
|
2210
1152
|
{
|
|
2211
1153
|
"aria-label": "plus",
|
|
2212
1154
|
"data-test-id": "CT_Component_Counter_decrement",
|
|
2213
1155
|
onClick: increment,
|
|
2214
1156
|
isDisabled: disabled || +value >= max,
|
|
2215
1157
|
size: size2,
|
|
2216
|
-
icon: /* @__PURE__ */ (0,
|
|
1158
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_fi2.FiPlus, {})
|
|
2217
1159
|
}
|
|
2218
1160
|
)
|
|
2219
1161
|
] }),
|
|
2220
|
-
!isError ? /* @__PURE__ */ (0,
|
|
1162
|
+
!isError ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react27.Text, { mt: 1, color: "black.medium", children: helperText }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react27.Text, { mt: 1, color: "danger.500", children: error })
|
|
2221
1163
|
] });
|
|
2222
1164
|
};
|
|
2223
1165
|
var counter_default = Counter;
|
|
2224
1166
|
|
|
2225
1167
|
// src/components/data-table/components/data-table.tsx
|
|
2226
1168
|
var import_icons2 = require("@chakra-ui/icons");
|
|
2227
|
-
var
|
|
2228
|
-
var
|
|
1169
|
+
var import_react28 = require("@chakra-ui/react");
|
|
1170
|
+
var import_react29 = require("@emotion/react");
|
|
2229
1171
|
var import_react_table = require("@tanstack/react-table");
|
|
2230
1172
|
var React5 = __toESM(require("react"));
|
|
2231
|
-
var
|
|
2232
|
-
var
|
|
1173
|
+
var import_react30 = require("react");
|
|
1174
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2233
1175
|
var getCommonPinningStyles = (column) => {
|
|
2234
1176
|
const isPinned = column.getIsPinned();
|
|
2235
1177
|
const isLastLeftPinnedColumn = isPinned === "left" && column.getIsLastColumn("left");
|
|
@@ -2265,8 +1207,8 @@ var useDataTable = ({
|
|
|
2265
1207
|
{
|
|
2266
1208
|
id: "select",
|
|
2267
1209
|
size: 32,
|
|
2268
|
-
header: ({ table: table2 }) => /* @__PURE__ */ (0,
|
|
2269
|
-
|
|
1210
|
+
header: ({ table: table2 }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1211
|
+
import_react28.Checkbox,
|
|
2270
1212
|
{
|
|
2271
1213
|
"data-test-id": "select-header-data-table",
|
|
2272
1214
|
...{
|
|
@@ -2276,8 +1218,8 @@ var useDataTable = ({
|
|
|
2276
1218
|
}
|
|
2277
1219
|
}
|
|
2278
1220
|
),
|
|
2279
|
-
cell: ({ row }) => /* @__PURE__ */ (0,
|
|
2280
|
-
|
|
1221
|
+
cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1222
|
+
import_react28.Checkbox,
|
|
2281
1223
|
{
|
|
2282
1224
|
"data-test-id": `select-data-table-${row.index}`,
|
|
2283
1225
|
...{
|
|
@@ -2309,9 +1251,9 @@ var useDataTable = ({
|
|
|
2309
1251
|
manualSorting,
|
|
2310
1252
|
sortDescFirst,
|
|
2311
1253
|
state: {
|
|
2312
|
-
columnPinning,
|
|
2313
1254
|
sorting,
|
|
2314
|
-
rowSelection
|
|
1255
|
+
rowSelection,
|
|
1256
|
+
...columnPinning ? { columnPinning } : {}
|
|
2315
1257
|
},
|
|
2316
1258
|
onRowSelectionChange,
|
|
2317
1259
|
onSortingChange
|
|
@@ -2344,16 +1286,16 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
|
2344
1286
|
React5.useImperativeHandle(ref, () => ({
|
|
2345
1287
|
toggleAllRowsSelected
|
|
2346
1288
|
}));
|
|
2347
|
-
return /* @__PURE__ */ (0,
|
|
2348
|
-
isLoading && /* @__PURE__ */ (0,
|
|
2349
|
-
/* @__PURE__ */ (0,
|
|
2350
|
-
|
|
1289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react28.Box, { ...props, children: [
|
|
1290
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react28.Table, { ...styles == null ? void 0 : styles.table, children: [
|
|
1291
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react28.Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react28.Tr, { mx: "2", ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1292
|
+
import_react28.Th,
|
|
2351
1293
|
{
|
|
2352
1294
|
colSpan: header.colSpan,
|
|
2353
1295
|
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
|
2354
1296
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
|
2355
|
-
children: /* @__PURE__ */ (0,
|
|
2356
|
-
|
|
1297
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1298
|
+
import_react28.Flex,
|
|
2357
1299
|
{
|
|
2358
1300
|
"data-test-id": "CT_component_data-table_loader",
|
|
2359
1301
|
textTransform: "capitalize",
|
|
@@ -2365,20 +1307,20 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
|
2365
1307
|
},
|
|
2366
1308
|
header.id
|
|
2367
1309
|
)) }, headerGroup.id)) }),
|
|
2368
|
-
/* @__PURE__ */ (0,
|
|
1310
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react28.Tbody, { children: [...Array(5)].map((num) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react28.Tr, { mx: "2", children: [...Array(generateColumn().length)].map((i) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react28.Td, { width: 210, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react28.Skeleton, { startColor: "gray.50", endColor: "gray.100", h: "30px", w: "100%" }, i) }, i)) }, num)) })
|
|
2369
1311
|
] }),
|
|
2370
|
-
/* @__PURE__ */ (0,
|
|
2371
|
-
/* @__PURE__ */ (0,
|
|
1312
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react28.Table, { ...styles == null ? void 0 : styles.table, children: [
|
|
1313
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react28.Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react28.Tr, { bg: (0, import_react28.useColorModeValue)("initial", "ebony-clay.700"), ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => {
|
|
2372
1314
|
var _a;
|
|
2373
|
-
return /* @__PURE__ */ (0,
|
|
2374
|
-
|
|
1315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1316
|
+
import_react28.Th,
|
|
2375
1317
|
{
|
|
2376
1318
|
colSpan: header.colSpan,
|
|
2377
1319
|
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
|
2378
1320
|
style: { ...getCommonPinningStyles(header.column) },
|
|
2379
1321
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
|
2380
|
-
children: /* @__PURE__ */ (0,
|
|
2381
|
-
|
|
1322
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1323
|
+
import_react28.Flex,
|
|
2382
1324
|
{
|
|
2383
1325
|
"data-test-id": `CT_Container_TableHeader_${header.id}`,
|
|
2384
1326
|
textTransform: "capitalize",
|
|
@@ -2386,18 +1328,18 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
|
2386
1328
|
align: "center",
|
|
2387
1329
|
gap: 2,
|
|
2388
1330
|
children: [
|
|
2389
|
-
/* @__PURE__ */ (0,
|
|
2390
|
-
/* @__PURE__ */ (0,
|
|
2391
|
-
|
|
1331
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react28.Text, { children: (0, import_react_table.flexRender)(header.column.columnDef.header, header.getContext()) }),
|
|
1332
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1333
|
+
import_react28.Box,
|
|
2392
1334
|
{
|
|
2393
1335
|
as: "span",
|
|
2394
1336
|
cursor: header.column.getCanSort() ? "pointer" : "default",
|
|
2395
1337
|
"data-test-id": `CT_Container_SortingIcon_${header.id}`,
|
|
2396
1338
|
onClick: header.column.getToggleSortingHandler(),
|
|
2397
1339
|
children: (_a = header.column.getCanSort() && {
|
|
2398
|
-
asc: /* @__PURE__ */ (0,
|
|
2399
|
-
desc: /* @__PURE__ */ (0,
|
|
2400
|
-
}[header.column.getIsSorted()]) != null ? _a : /* @__PURE__ */ (0,
|
|
1340
|
+
asc: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_icons2.ChevronUpIcon, {}),
|
|
1341
|
+
desc: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_icons2.ChevronDownIcon, {})
|
|
1342
|
+
}[header.column.getIsSorted()]) != null ? _a : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_icons2.UpDownIcon, { h: 2 })
|
|
2401
1343
|
}
|
|
2402
1344
|
)
|
|
2403
1345
|
]
|
|
@@ -2407,16 +1349,16 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
|
2407
1349
|
header.id
|
|
2408
1350
|
);
|
|
2409
1351
|
}) }, headerGroup.id)) }),
|
|
2410
|
-
/* @__PURE__ */ (0,
|
|
2411
|
-
const trRef = (0,
|
|
2412
|
-
return /* @__PURE__ */ (0,
|
|
2413
|
-
|
|
1352
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react28.Tbody, { ...styles == null ? void 0 : styles.tableBody, children: table.getRowModel().rows.map((row) => {
|
|
1353
|
+
const trRef = (0, import_react30.useRef)();
|
|
1354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1355
|
+
import_react28.Tr,
|
|
2414
1356
|
{
|
|
2415
1357
|
"data-test-id": "-RU0hNYGRzeVM3HQ4cXHl",
|
|
2416
1358
|
tabindex: "0",
|
|
2417
1359
|
ref: trRef,
|
|
2418
1360
|
...styles == null ? void 0 : styles.tableRow,
|
|
2419
|
-
css:
|
|
1361
|
+
css: import_react29.css`
|
|
2420
1362
|
&:last-child {
|
|
2421
1363
|
td {
|
|
2422
1364
|
border-bottom: none;
|
|
@@ -2436,16 +1378,16 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
|
2436
1378
|
onRowClick(row.original);
|
|
2437
1379
|
}
|
|
2438
1380
|
},
|
|
2439
|
-
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0,
|
|
2440
|
-
|
|
1381
|
+
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1382
|
+
import_react28.Td,
|
|
2441
1383
|
{
|
|
2442
1384
|
"data-test-id": `CT_Component_TableCell_${cell.id}`,
|
|
2443
1385
|
fontSize: "text.sm",
|
|
2444
|
-
color: (0,
|
|
1386
|
+
color: (0, import_react28.useColorModeValue)("dark.800", "dark.300"),
|
|
2445
1387
|
style: { ...getCommonPinningStyles(cell.column) },
|
|
2446
1388
|
...styles == null ? void 0 : styles.tableCell,
|
|
2447
|
-
children: /* @__PURE__ */ (0,
|
|
2448
|
-
|
|
1389
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1390
|
+
import_react28.Box,
|
|
2449
1391
|
{
|
|
2450
1392
|
tabIndex: 0,
|
|
2451
1393
|
display: "inline-block",
|
|
@@ -2490,19 +1432,19 @@ DataTable.defaultProps = {
|
|
|
2490
1432
|
var data_table_default = DataTable;
|
|
2491
1433
|
|
|
2492
1434
|
// src/components/datepicker/components/datepicker.tsx
|
|
2493
|
-
var
|
|
2494
|
-
var
|
|
1435
|
+
var import_react34 = require("@chakra-ui/react");
|
|
1436
|
+
var import_shared_utils8 = require("@chakra-ui/shared-utils");
|
|
2495
1437
|
var import_react_datepicker = __toESM(require("react-datepicker"));
|
|
2496
1438
|
var import_fi3 = require("react-icons/fi");
|
|
2497
1439
|
|
|
2498
1440
|
// src/components/datepicker/components/styles.tsx
|
|
2499
|
-
var
|
|
2500
|
-
var
|
|
2501
|
-
var
|
|
1441
|
+
var import_system6 = require("@chakra-ui/system");
|
|
1442
|
+
var import_react31 = require("@emotion/react");
|
|
1443
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
2502
1444
|
var Styles = () => {
|
|
2503
|
-
const { colorMode } = (0,
|
|
2504
|
-
return /* @__PURE__ */ (0,
|
|
2505
|
-
|
|
1445
|
+
const { colorMode } = (0, import_system6.useColorMode)();
|
|
1446
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1447
|
+
import_react31.Global,
|
|
2506
1448
|
{
|
|
2507
1449
|
styles: `
|
|
2508
1450
|
@charset "UTF-8";
|
|
@@ -3313,21 +2255,21 @@ var Styles = () => {
|
|
|
3313
2255
|
var styles_default = Styles;
|
|
3314
2256
|
|
|
3315
2257
|
// src/components/datepicker/components/time-input.tsx
|
|
3316
|
-
var
|
|
3317
|
-
var
|
|
3318
|
-
var
|
|
2258
|
+
var import_react32 = require("@chakra-ui/react");
|
|
2259
|
+
var import_react33 = __toESM(require("react"));
|
|
2260
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
3319
2261
|
var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
|
3320
|
-
const [time, setTime] =
|
|
2262
|
+
const [time, setTime] = import_react33.default.useState(value || "00:00");
|
|
3321
2263
|
const handleChange = (e) => {
|
|
3322
2264
|
var _a, _b;
|
|
3323
2265
|
setTime(((_a = e.target) == null ? void 0 : _a.value) || "00:00");
|
|
3324
2266
|
if (onChange) onChange(((_b = e.target) == null ? void 0 : _b.value) || "00:00");
|
|
3325
2267
|
};
|
|
3326
|
-
return /* @__PURE__ */ (0,
|
|
3327
|
-
/* @__PURE__ */ (0,
|
|
3328
|
-
/* @__PURE__ */ (0,
|
|
3329
|
-
/* @__PURE__ */ (0,
|
|
3330
|
-
rightAddon && /* @__PURE__ */ (0,
|
|
2268
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_react32.Flex, { flexDir: "column", alignItems: "center", justifyContent: "center", p: 4, pt: 0, children: [
|
|
2269
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react32.Text, { mb: 2, children: label }),
|
|
2270
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_react32.InputGroup, { alignItems: "center", justifyContent: "center", children: [
|
|
2271
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react32.Input, { onChange: handleChange, type: "time", value: time, "data-test-id": "CT_Component_datepicker_input_time" }),
|
|
2272
|
+
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react32.InputRightAddon, { children: rightAddon })
|
|
3331
2273
|
] })
|
|
3332
2274
|
] });
|
|
3333
2275
|
};
|
|
@@ -3341,7 +2283,7 @@ TimeInput.defaultProps = {
|
|
|
3341
2283
|
var time_input_default = TimeInput;
|
|
3342
2284
|
|
|
3343
2285
|
// src/components/datepicker/components/datepicker.tsx
|
|
3344
|
-
var
|
|
2286
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3345
2287
|
var Datepicker = ({
|
|
3346
2288
|
id,
|
|
3347
2289
|
label,
|
|
@@ -3366,21 +2308,21 @@ var Datepicker = ({
|
|
|
3366
2308
|
return {
|
|
3367
2309
|
timeInputLabel: "",
|
|
3368
2310
|
showTimeInput: true,
|
|
3369
|
-
customTimeInput: /* @__PURE__ */ (0,
|
|
2311
|
+
customTimeInput: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(time_input_default, {})
|
|
3370
2312
|
};
|
|
3371
2313
|
};
|
|
3372
|
-
const component = /* @__PURE__ */ (0,
|
|
3373
|
-
/* @__PURE__ */ (0,
|
|
3374
|
-
/* @__PURE__ */ (0,
|
|
2314
|
+
const component = /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
|
|
2315
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(styles_default, {}),
|
|
2316
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3375
2317
|
import_react_datepicker.default,
|
|
3376
2318
|
{
|
|
3377
2319
|
id,
|
|
3378
2320
|
name,
|
|
3379
2321
|
selected,
|
|
3380
|
-
customInput: /* @__PURE__ */ (0,
|
|
2322
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react34.Input, { autoComplete: "off", ...wrapperStyle }),
|
|
3381
2323
|
dateFormat,
|
|
3382
2324
|
showPopperArrow: false,
|
|
3383
|
-
calendarClassName: (0,
|
|
2325
|
+
calendarClassName: (0, import_shared_utils8.cx)({ inline: props.inline }),
|
|
3384
2326
|
showMonthDropdown: showMonth,
|
|
3385
2327
|
useShortMonthInDropdown: showMonth ? shortMonth : false,
|
|
3386
2328
|
...getTimeProps(),
|
|
@@ -3391,16 +2333,16 @@ var Datepicker = ({
|
|
|
3391
2333
|
if (props.inline) {
|
|
3392
2334
|
return component;
|
|
3393
2335
|
}
|
|
3394
|
-
return /* @__PURE__ */ (0,
|
|
3395
|
-
label && /* @__PURE__ */ (0,
|
|
3396
|
-
/* @__PURE__ */ (0,
|
|
2336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react34.FormControl, { isRequired, "data-test-id": "CT_Component_datepicker_wrapper", isInvalid: isError, children: [
|
|
2337
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react34.FormLabel, { fontSize: "text.sm", children: label }),
|
|
2338
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react34.InputGroup, { children: [
|
|
3397
2339
|
component,
|
|
3398
|
-
/* @__PURE__ */ (0,
|
|
3399
|
-
!value && /* @__PURE__ */ (0,
|
|
3400
|
-
value && /* @__PURE__ */ (0,
|
|
2340
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react34.InputRightElement, { children: [
|
|
2341
|
+
!value && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_fi3.FiCalendar, {}),
|
|
2342
|
+
value && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_fi3.FiX, { "data-test-id": "bcpJJyCP0z_RIAGZXDU6s", onClick: onClear, cursor: "pointer" })
|
|
3401
2343
|
] })
|
|
3402
2344
|
] }),
|
|
3403
|
-
!isError ? /* @__PURE__ */ (0,
|
|
2345
|
+
!isError ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react34.FormHelperText, { fontSize: "text.xs", mt: 1, children: helperText }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react34.FormErrorMessage, { fontSize: "text.xs", mt: 1, children: error })
|
|
3404
2346
|
] });
|
|
3405
2347
|
};
|
|
3406
2348
|
Datepicker.defaultProps = {
|
|
@@ -3418,18 +2360,18 @@ Datepicker.defaultProps = {
|
|
|
3418
2360
|
var datepicker_default = Datepicker;
|
|
3419
2361
|
|
|
3420
2362
|
// src/components/datepicker/components/datepicker-month/datepicker-month.tsx
|
|
3421
|
-
var
|
|
3422
|
-
var
|
|
3423
|
-
var
|
|
3424
|
-
var
|
|
2363
|
+
var import_react35 = require("@chakra-ui/react");
|
|
2364
|
+
var import_react36 = require("@emotion/react");
|
|
2365
|
+
var import_react37 = __toESM(require("react"));
|
|
2366
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3425
2367
|
var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
3426
|
-
const [date, setDate] =
|
|
3427
|
-
return /* @__PURE__ */ (0,
|
|
3428
|
-
|
|
2368
|
+
const [date, setDate] = import_react37.default.useState(null);
|
|
2369
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2370
|
+
import_react35.Box,
|
|
3429
2371
|
{
|
|
3430
2372
|
fontSize: "12px",
|
|
3431
2373
|
lineHeight: "18px",
|
|
3432
|
-
css:
|
|
2374
|
+
css: import_react36.css`
|
|
3433
2375
|
input[type='date']::-webkit-inner-spin-button,
|
|
3434
2376
|
input[type='date']::-webkit-calendar-picker-indicator {
|
|
3435
2377
|
display: none;
|
|
@@ -3439,8 +2381,8 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
|
3439
2381
|
width: 58px;
|
|
3440
2382
|
}
|
|
3441
2383
|
`,
|
|
3442
|
-
children: /* @__PURE__ */ (0,
|
|
3443
|
-
|
|
2384
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2385
|
+
import_react35.Input,
|
|
3444
2386
|
{
|
|
3445
2387
|
"data-test-id": props["data-test-id"],
|
|
3446
2388
|
type: "date",
|
|
@@ -3453,7 +2395,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
|
3453
2395
|
min,
|
|
3454
2396
|
max,
|
|
3455
2397
|
required: true,
|
|
3456
|
-
css:
|
|
2398
|
+
css: import_react36.css`
|
|
3457
2399
|
border: 1px solid transparent;
|
|
3458
2400
|
|
|
3459
2401
|
&:focus,
|
|
@@ -3477,11 +2419,11 @@ DatePickerMonth.defaultProps = {
|
|
|
3477
2419
|
var datepicker_month_default = DatePickerMonth;
|
|
3478
2420
|
|
|
3479
2421
|
// src/components/datepicker/components/datepicker-month/multi-datepicker-month.tsx
|
|
3480
|
-
var
|
|
2422
|
+
var import_react38 = require("@chakra-ui/react");
|
|
3481
2423
|
var import_styled = __toESM(require("@emotion/styled"));
|
|
3482
|
-
var
|
|
3483
|
-
var
|
|
3484
|
-
var MultiDateWrapper = (0, import_styled.default)(
|
|
2424
|
+
var import_react39 = __toESM(require("react"));
|
|
2425
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2426
|
+
var MultiDateWrapper = (0, import_styled.default)(import_react38.Box)`
|
|
3485
2427
|
display: flex;
|
|
3486
2428
|
align-items: center;
|
|
3487
2429
|
width: fit-content;
|
|
@@ -3496,9 +2438,9 @@ var MultiDatePickerMonth = ({
|
|
|
3496
2438
|
min = "2020-01-01",
|
|
3497
2439
|
max = "2020-12-31"
|
|
3498
2440
|
}) => {
|
|
3499
|
-
const [date, setDate] =
|
|
3500
|
-
return /* @__PURE__ */ (0,
|
|
3501
|
-
/* @__PURE__ */ (0,
|
|
2441
|
+
const [date, setDate] = import_react39.default.useState([null, null]);
|
|
2442
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(MultiDateWrapper, { isError, children: [
|
|
2443
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3502
2444
|
datepicker_month_default,
|
|
3503
2445
|
{
|
|
3504
2446
|
"data-test-id": "CT_DatePickerMonth_StartDate",
|
|
@@ -3510,8 +2452,8 @@ var MultiDatePickerMonth = ({
|
|
|
3510
2452
|
max
|
|
3511
2453
|
}
|
|
3512
2454
|
),
|
|
3513
|
-
/* @__PURE__ */ (0,
|
|
3514
|
-
/* @__PURE__ */ (0,
|
|
2455
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react38.Box, { children: "-" }),
|
|
2456
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3515
2457
|
datepicker_month_default,
|
|
3516
2458
|
{
|
|
3517
2459
|
"data-test-id": "CT_DatePickerMonth_EndDate",
|
|
@@ -3533,8 +2475,8 @@ MultiDatePickerMonth.defaultProps = {
|
|
|
3533
2475
|
var multi_datepicker_month_default = MultiDatePickerMonth;
|
|
3534
2476
|
|
|
3535
2477
|
// src/components/dialog/components/dialog.tsx
|
|
3536
|
-
var
|
|
3537
|
-
var
|
|
2478
|
+
var import_react40 = require("@chakra-ui/react");
|
|
2479
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3538
2480
|
var Dialog = ({
|
|
3539
2481
|
title,
|
|
3540
2482
|
content,
|
|
@@ -3544,12 +2486,12 @@ var Dialog = ({
|
|
|
3544
2486
|
isOverlayClickable,
|
|
3545
2487
|
...props
|
|
3546
2488
|
}) => {
|
|
3547
|
-
return /* @__PURE__ */ (0,
|
|
3548
|
-
isModalOverlay && /* @__PURE__ */ (0,
|
|
3549
|
-
/* @__PURE__ */ (0,
|
|
3550
|
-
/* @__PURE__ */ (0,
|
|
3551
|
-
/* @__PURE__ */ (0,
|
|
3552
|
-
/* @__PURE__ */ (0,
|
|
2489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_react40.Modal, { ...props, children: [
|
|
2490
|
+
isModalOverlay && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react40.ModalOverlay, { pointerEvents: isOverlayClickable ? "auto" : "none" }),
|
|
2491
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_react40.ModalContent, { bgColor: "neutral.50", fontFamily: "Poppins", width, children: [
|
|
2492
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react40.ModalHeader, { bgColor: "neutral.200", py: 2, px: 4, borderTopRadius: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react40.Text, { textStyle: "text.lg", fontWeight: "normal", children: title }) }),
|
|
2493
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react40.ModalBody, { p: 4, textStyle: "text.md", children: content }),
|
|
2494
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react40.ModalFooter, { bgColor: "neutral.200", p: 4, borderBottomRadius: "sm", children: footer })
|
|
3553
2495
|
] })
|
|
3554
2496
|
] });
|
|
3555
2497
|
};
|
|
@@ -3561,15 +2503,15 @@ Dialog.defaultProps = {
|
|
|
3561
2503
|
var dialog_default = Dialog;
|
|
3562
2504
|
|
|
3563
2505
|
// src/components/header/components/header.tsx
|
|
3564
|
-
var
|
|
2506
|
+
var import_react45 = require("@chakra-ui/react");
|
|
3565
2507
|
|
|
3566
2508
|
// src/components/header/components/logo.tsx
|
|
3567
|
-
var
|
|
3568
|
-
var
|
|
2509
|
+
var import_react41 = require("@chakra-ui/react");
|
|
2510
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3569
2511
|
var Logo = ({ url, imageUrl, height }) => {
|
|
3570
2512
|
if (url)
|
|
3571
|
-
return /* @__PURE__ */ (0,
|
|
3572
|
-
return /* @__PURE__ */ (0,
|
|
2513
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.Box, { as: "a", href: url, cursor: "pointer", target: "_self", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.Image, { w: "100%", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl }) });
|
|
2514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.Image, { w: "100%", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl });
|
|
3573
2515
|
};
|
|
3574
2516
|
Logo.defaultProps = {
|
|
3575
2517
|
url: void 0,
|
|
@@ -3577,15 +2519,15 @@ Logo.defaultProps = {
|
|
|
3577
2519
|
};
|
|
3578
2520
|
|
|
3579
2521
|
// src/components/header/components/profile.tsx
|
|
3580
|
-
var
|
|
2522
|
+
var import_react42 = require("@chakra-ui/react");
|
|
3581
2523
|
var import_fi4 = require("react-icons/fi");
|
|
3582
|
-
var
|
|
2524
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3583
2525
|
var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
3584
2526
|
var _a;
|
|
3585
|
-
const { isOpen, onToggle, onClose } = (0,
|
|
3586
|
-
return /* @__PURE__ */ (0,
|
|
3587
|
-
/* @__PURE__ */ (0,
|
|
3588
|
-
|
|
2527
|
+
const { isOpen, onToggle, onClose } = (0, import_react42.useDisclosure)();
|
|
2528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react42.Popover, { placement: "bottom-end", isOpen, onClose, children: [
|
|
2529
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2530
|
+
import_react42.Box,
|
|
3589
2531
|
{
|
|
3590
2532
|
"data-test-id": "WE0UYbA93LOZy6S09IhDO",
|
|
3591
2533
|
as: "button",
|
|
@@ -3595,23 +2537,23 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
|
3595
2537
|
m: 0,
|
|
3596
2538
|
onClick: onToggle,
|
|
3597
2539
|
color,
|
|
3598
|
-
children: /* @__PURE__ */ (0,
|
|
3599
|
-
/* @__PURE__ */ (0,
|
|
3600
|
-
/* @__PURE__ */ (0,
|
|
3601
|
-
/* @__PURE__ */ (0,
|
|
3602
|
-
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0,
|
|
3603
|
-
/* @__PURE__ */ (0,
|
|
3604
|
-
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0,
|
|
3605
|
-
/* @__PURE__ */ (0,
|
|
3606
|
-
data.office.length > 1 && /* @__PURE__ */ (0,
|
|
2540
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react42.HStack, { children: [
|
|
2541
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react42.VStack, { alignItems: "flex-end", spacing: 0, ml: "2", color, children: [
|
|
2542
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.Text, { textStyle: "text.xs", mb: 1, children: data == null ? void 0 : data.email }),
|
|
2543
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react42.Flex, { alignItems: "center", children: [
|
|
2544
|
+
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.userRole) || "user" }),
|
|
2545
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.Box, { h: "3", mx: "1", borderLeft: "1px solid", borderColor: "neutral.400" }),
|
|
2546
|
+
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
2547
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.Text, { textStyle: "text.xs", children: data.office[0] }),
|
|
2548
|
+
data.office.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(badge_default, { ml: "1", pill: true, variant: "neutral-light", children: [
|
|
3607
2549
|
data.office.length - 1,
|
|
3608
2550
|
"+"
|
|
3609
2551
|
] })
|
|
3610
|
-
] }) : /* @__PURE__ */ (0,
|
|
2552
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.office) || "office" })
|
|
3611
2553
|
] })
|
|
3612
2554
|
] }),
|
|
3613
|
-
/* @__PURE__ */ (0,
|
|
3614
|
-
|
|
2555
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2556
|
+
import_react42.Avatar,
|
|
3615
2557
|
{
|
|
3616
2558
|
size: "sm",
|
|
3617
2559
|
bg: brandColor,
|
|
@@ -3626,10 +2568,10 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
|
3626
2568
|
] })
|
|
3627
2569
|
}
|
|
3628
2570
|
),
|
|
3629
|
-
/* @__PURE__ */ (0,
|
|
3630
|
-
/* @__PURE__ */ (0,
|
|
3631
|
-
/* @__PURE__ */ (0,
|
|
3632
|
-
|
|
2571
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react42.PopoverContent, { bg: "white", maxW: 200, children: [
|
|
2572
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.PopoverArrow, { bg: "white" }),
|
|
2573
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.PopoverBody, { p: 1, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2574
|
+
import_react42.Flex,
|
|
3633
2575
|
{
|
|
3634
2576
|
"data-test-id": "gA7F9pucPX_Q3_dkgXIYZ",
|
|
3635
2577
|
alignItems: "center",
|
|
@@ -3637,12 +2579,12 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
|
3637
2579
|
py: 2,
|
|
3638
2580
|
borderRadius: "sm",
|
|
3639
2581
|
cursor: "pointer",
|
|
3640
|
-
_hover: { bg: (0,
|
|
2582
|
+
_hover: { bg: (0, import_react42.useColorModeValue)("primary.500", "mirage.900"), color: "white" },
|
|
3641
2583
|
onClick: onLogout,
|
|
3642
2584
|
textStyle: "text.xs",
|
|
3643
2585
|
children: [
|
|
3644
|
-
/* @__PURE__ */ (0,
|
|
3645
|
-
/* @__PURE__ */ (0,
|
|
2586
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_fi4.FiPower, {}),
|
|
2587
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.Text, { ml: 2, children: "Logout" })
|
|
3646
2588
|
]
|
|
3647
2589
|
}
|
|
3648
2590
|
) })
|
|
@@ -3658,17 +2600,17 @@ Profile.defaultProps = {
|
|
|
3658
2600
|
var profile_default = Profile;
|
|
3659
2601
|
|
|
3660
2602
|
// src/components/header/components/switch-mode.tsx
|
|
3661
|
-
var
|
|
2603
|
+
var import_react43 = require("@chakra-ui/react");
|
|
3662
2604
|
var import_fi5 = require("react-icons/fi");
|
|
3663
|
-
var
|
|
2605
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3664
2606
|
var SwitchMode = () => {
|
|
3665
|
-
const { colorMode, toggleColorMode } = (0,
|
|
3666
|
-
return /* @__PURE__ */ (0,
|
|
2607
|
+
const { colorMode, toggleColorMode } = (0, import_react43.useColorMode)();
|
|
2608
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.Box, { "data-test-id": "rhYuTDCiWkFqr96upiEEh", mx: 5, onClick: toggleColorMode, cursor: "pointer", children: colorMode === "light" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_fi5.FiMoon, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_fi5.FiSun, { size: 20 }) });
|
|
3667
2609
|
};
|
|
3668
2610
|
var switch_mode_default = SwitchMode;
|
|
3669
2611
|
|
|
3670
2612
|
// src/components/header/components/version.tsx
|
|
3671
|
-
var
|
|
2613
|
+
var import_react44 = require("@chakra-ui/react");
|
|
3672
2614
|
|
|
3673
2615
|
// src/components/header/utils/formatter.ts
|
|
3674
2616
|
function environmentName(env) {
|
|
@@ -3683,9 +2625,9 @@ function environmentName(env) {
|
|
|
3683
2625
|
}
|
|
3684
2626
|
|
|
3685
2627
|
// src/components/header/components/version.tsx
|
|
3686
|
-
var
|
|
3687
|
-
var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__PURE__ */ (0,
|
|
3688
|
-
version && /* @__PURE__ */ (0,
|
|
2628
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2629
|
+
var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
|
|
2630
|
+
version && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3689
2631
|
badge_default,
|
|
3690
2632
|
{
|
|
3691
2633
|
fontSize: "8px",
|
|
@@ -3696,8 +2638,8 @@ var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__P
|
|
|
3696
2638
|
children: version
|
|
3697
2639
|
}
|
|
3698
2640
|
),
|
|
3699
|
-
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ (0,
|
|
3700
|
-
|
|
2641
|
+
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2642
|
+
import_react44.Box,
|
|
3701
2643
|
{
|
|
3702
2644
|
background: "primary.50",
|
|
3703
2645
|
color: "primary.500",
|
|
@@ -3719,7 +2661,7 @@ Version.defaultProps = {
|
|
|
3719
2661
|
var version_default = Version;
|
|
3720
2662
|
|
|
3721
2663
|
// src/components/header/components/header.tsx
|
|
3722
|
-
var
|
|
2664
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3723
2665
|
var Header = ({
|
|
3724
2666
|
brandColor,
|
|
3725
2667
|
data,
|
|
@@ -3736,14 +2678,14 @@ var Header = ({
|
|
|
3736
2678
|
profile,
|
|
3737
2679
|
bg = "white",
|
|
3738
2680
|
...props
|
|
3739
|
-
}) => /* @__PURE__ */ (0,
|
|
3740
|
-
mainLogo && /* @__PURE__ */ (0,
|
|
3741
|
-
/* @__PURE__ */ (0,
|
|
2681
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react45.Flex, { minH: 15, bg, shadow: "raised", px: 6, py: 3, alignItems: "center", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react45.Flex, { h: "auto", w: "full", alignItems: "center", justifyContent: profile ? "flex-end" : "space-between", pos: "relative", children: [
|
|
2682
|
+
mainLogo && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react45.Flex, { alignItems: "center", children: [
|
|
2683
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Logo, { url: urlLogo, imageUrl: mainLogo, height: mainLogoSize }),
|
|
3742
2684
|
children && children
|
|
3743
2685
|
] }),
|
|
3744
|
-
centerLogo && /* @__PURE__ */ (0,
|
|
3745
|
-
/* @__PURE__ */ (0,
|
|
3746
|
-
/* @__PURE__ */ (0,
|
|
2686
|
+
centerLogo && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react45.HStack, { w: "fit-content", spacing: 2, alignItems: "center", pos: "absolute", left: "50%", transform: "translate(-50%,0)", children: [
|
|
2687
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Logo, { url: urlLogo, imageUrl: centerLogo, height: centerLogoSize }),
|
|
2688
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3747
2689
|
version_default,
|
|
3748
2690
|
{
|
|
3749
2691
|
hideEnv,
|
|
@@ -3753,9 +2695,9 @@ var Header = ({
|
|
|
3753
2695
|
}
|
|
3754
2696
|
)
|
|
3755
2697
|
] }),
|
|
3756
|
-
profile || /* @__PURE__ */ (0,
|
|
3757
|
-
!hideSwitchMode && /* @__PURE__ */ (0,
|
|
3758
|
-
/* @__PURE__ */ (0,
|
|
2698
|
+
profile || /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react45.Flex, { alignItems: "center", children: [
|
|
2699
|
+
!hideSwitchMode && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(switch_mode_default, {}),
|
|
2700
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(profile_default, { color: props.color, brandColor, data, onLogout })
|
|
3759
2701
|
] })
|
|
3760
2702
|
] }) });
|
|
3761
2703
|
Header.defaultProps = {
|
|
@@ -3775,36 +2717,62 @@ Header.defaultProps = {
|
|
|
3775
2717
|
var header_default = Header;
|
|
3776
2718
|
|
|
3777
2719
|
// src/components/image/index.ts
|
|
3778
|
-
var
|
|
2720
|
+
var import_react46 = require("@chakra-ui/react");
|
|
3779
2721
|
|
|
3780
2722
|
// src/components/layouting/index.ts
|
|
3781
|
-
var
|
|
2723
|
+
var import_react47 = require("@chakra-ui/react");
|
|
3782
2724
|
|
|
3783
2725
|
// src/components/list/index.tsx
|
|
3784
|
-
var
|
|
2726
|
+
var import_react48 = require("@chakra-ui/react");
|
|
2727
|
+
|
|
2728
|
+
// src/components/modal/components/modal-back-button.tsx
|
|
2729
|
+
var import_icons3 = require("@chakra-ui/icons");
|
|
2730
|
+
var import_react49 = require("@chakra-ui/react");
|
|
2731
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2732
|
+
var ModalBackButton = ({ onClick }) => {
|
|
2733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2734
|
+
import_react49.IconButton,
|
|
2735
|
+
{
|
|
2736
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_icons3.ChevronLeftIcon, { w: "4.5", h: "4.5" }),
|
|
2737
|
+
size: "sm",
|
|
2738
|
+
minW: "6",
|
|
2739
|
+
h: "6",
|
|
2740
|
+
rounded: "sm",
|
|
2741
|
+
variant: "solid",
|
|
2742
|
+
bg: "white",
|
|
2743
|
+
onClick,
|
|
2744
|
+
_hover: { bg: "white" },
|
|
2745
|
+
color: "black",
|
|
2746
|
+
"aria-label": "Back",
|
|
2747
|
+
"data-test-id": "modal-back-button"
|
|
2748
|
+
}
|
|
2749
|
+
);
|
|
2750
|
+
};
|
|
2751
|
+
var modal_back_button_default = ModalBackButton;
|
|
3785
2752
|
|
|
3786
2753
|
// src/components/modal/components/modal-body.tsx
|
|
3787
|
-
var
|
|
3788
|
-
var
|
|
3789
|
-
var
|
|
3790
|
-
var ModalBody2 =
|
|
3791
|
-
return /* @__PURE__ */ (0,
|
|
2754
|
+
var import_react50 = require("@chakra-ui/react");
|
|
2755
|
+
var import_react51 = __toESM(require("react"));
|
|
2756
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2757
|
+
var ModalBody2 = import_react51.default.forwardRef(({ children, ...rest }, ref) => {
|
|
2758
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react50.ModalBody, { px: 4, py: 2, ref, background: (0, import_react50.useColorModeValue)("white", "mirage.900"), ...rest, children });
|
|
3792
2759
|
});
|
|
3793
2760
|
var modal_body_default = ModalBody2;
|
|
3794
2761
|
|
|
3795
2762
|
// src/components/modal/components/modal-close-button.tsx
|
|
3796
|
-
var
|
|
3797
|
-
var
|
|
3798
|
-
var
|
|
3799
|
-
var ModalCloseButton = (0,
|
|
3800
|
-
return /* @__PURE__ */ (0,
|
|
3801
|
-
|
|
2763
|
+
var import_react52 = require("@chakra-ui/react");
|
|
2764
|
+
var import_react53 = require("react");
|
|
2765
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2766
|
+
var ModalCloseButton = (0, import_react53.forwardRef)((props, ref) => {
|
|
2767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2768
|
+
import_react52.ModalCloseButton,
|
|
3802
2769
|
{
|
|
3803
2770
|
ref,
|
|
3804
|
-
top:
|
|
3805
|
-
right:
|
|
2771
|
+
top: 2,
|
|
2772
|
+
right: 2,
|
|
3806
2773
|
size: "sm",
|
|
3807
|
-
|
|
2774
|
+
"data-test-id": "modal-close-button",
|
|
2775
|
+
background: (0, import_react52.useColorModeValue)("neutral.50", "mirage.900"),
|
|
3808
2776
|
...props
|
|
3809
2777
|
}
|
|
3810
2778
|
);
|
|
@@ -3812,15 +2780,15 @@ var ModalCloseButton = (0, import_react61.forwardRef)((props, ref) => {
|
|
|
3812
2780
|
var modal_close_button_default = ModalCloseButton;
|
|
3813
2781
|
|
|
3814
2782
|
// src/components/modal/components/modal-footer.tsx
|
|
3815
|
-
var
|
|
3816
|
-
var
|
|
3817
|
-
var
|
|
3818
|
-
var ModalFooter2 = (0,
|
|
3819
|
-
return /* @__PURE__ */ (0,
|
|
3820
|
-
|
|
2783
|
+
var import_react54 = require("@chakra-ui/react");
|
|
2784
|
+
var import_react55 = require("react");
|
|
2785
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2786
|
+
var ModalFooter2 = (0, import_react55.forwardRef)(({ children, ...rest }, ref) => {
|
|
2787
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2788
|
+
import_react54.ModalFooter,
|
|
3821
2789
|
{
|
|
3822
2790
|
ref,
|
|
3823
|
-
background: (0,
|
|
2791
|
+
background: (0, import_react54.useColorModeValue)("neutral.200", "mirage.900"),
|
|
3824
2792
|
borderBottomRadius: "sm",
|
|
3825
2793
|
...rest,
|
|
3826
2794
|
children
|
|
@@ -3830,17 +2798,20 @@ var ModalFooter2 = (0, import_react63.forwardRef)(({ children, ...rest }, ref) =
|
|
|
3830
2798
|
var modal_footer_default = ModalFooter2;
|
|
3831
2799
|
|
|
3832
2800
|
// src/components/modal/components/modal-header.tsx
|
|
3833
|
-
var
|
|
3834
|
-
var
|
|
3835
|
-
var
|
|
3836
|
-
var ModalHeader2 = (0,
|
|
3837
|
-
return /* @__PURE__ */ (0,
|
|
3838
|
-
|
|
2801
|
+
var import_react56 = require("@chakra-ui/react");
|
|
2802
|
+
var import_react57 = require("react");
|
|
2803
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2804
|
+
var ModalHeader2 = (0, import_react57.forwardRef)(({ children, ...rest }, ref) => {
|
|
2805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2806
|
+
import_react56.ModalHeader,
|
|
3839
2807
|
{
|
|
3840
2808
|
ref,
|
|
3841
|
-
background: (0,
|
|
2809
|
+
background: (0, import_react56.useColorModeValue)("neutral.200", "mirage.900"),
|
|
3842
2810
|
borderTopRadius: "sm",
|
|
3843
|
-
|
|
2811
|
+
fontSize: "text.lg",
|
|
2812
|
+
fontWeight: "400",
|
|
2813
|
+
px: 4,
|
|
2814
|
+
py: 2,
|
|
3844
2815
|
...rest,
|
|
3845
2816
|
children
|
|
3846
2817
|
}
|
|
@@ -3849,24 +2820,24 @@ var ModalHeader2 = (0, import_react65.forwardRef)(({ children, ...rest }, ref) =
|
|
|
3849
2820
|
var modal_header_default = ModalHeader2;
|
|
3850
2821
|
|
|
3851
2822
|
// src/components/modal/index.ts
|
|
3852
|
-
var
|
|
2823
|
+
var import_react58 = require("@chakra-ui/react");
|
|
3853
2824
|
|
|
3854
2825
|
// src/components/navigation/components/navigation.tsx
|
|
3855
|
-
var
|
|
3856
|
-
var
|
|
3857
|
-
var
|
|
2826
|
+
var import_icons4 = require("@chakra-ui/icons");
|
|
2827
|
+
var import_react60 = require("@chakra-ui/react");
|
|
2828
|
+
var import_react61 = require("@emotion/react");
|
|
3858
2829
|
|
|
3859
2830
|
// src/components/navigation/components/mapping-icon.ts
|
|
3860
2831
|
var import_fi6 = require("react-icons/fi");
|
|
3861
2832
|
|
|
3862
2833
|
// src/components/navigation/components/customer-icon.tsx
|
|
3863
|
-
var
|
|
3864
|
-
var
|
|
3865
|
-
var CustomerIcon = (0,
|
|
2834
|
+
var import_react59 = require("@chakra-ui/react");
|
|
2835
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2836
|
+
var CustomerIcon = (0, import_react59.createIcon)({
|
|
3866
2837
|
displayName: "CustomerIcon",
|
|
3867
2838
|
viewBox: "0 0 16 16",
|
|
3868
2839
|
path: [
|
|
3869
|
-
/* @__PURE__ */ (0,
|
|
2840
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3870
2841
|
"path",
|
|
3871
2842
|
{
|
|
3872
2843
|
fill: "currentColor",
|
|
@@ -3875,14 +2846,14 @@ var CustomerIcon = (0, import_react67.createIcon)({
|
|
|
3875
2846
|
clipRule: "inherit"
|
|
3876
2847
|
}
|
|
3877
2848
|
),
|
|
3878
|
-
/* @__PURE__ */ (0,
|
|
2849
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3879
2850
|
"path",
|
|
3880
2851
|
{
|
|
3881
2852
|
fill: "currentColor",
|
|
3882
2853
|
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"
|
|
3883
2854
|
}
|
|
3884
2855
|
),
|
|
3885
|
-
/* @__PURE__ */ (0,
|
|
2856
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3886
2857
|
"path",
|
|
3887
2858
|
{
|
|
3888
2859
|
fill: "currentColor",
|
|
@@ -3912,44 +2883,44 @@ var mappingIcon = /* @__PURE__ */ new Map([
|
|
|
3912
2883
|
]);
|
|
3913
2884
|
|
|
3914
2885
|
// src/components/navigation/components/navigation.tsx
|
|
3915
|
-
var
|
|
2886
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3916
2887
|
var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3917
|
-
return /* @__PURE__ */ (0,
|
|
3918
|
-
|
|
2888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2889
|
+
import_react60.Box,
|
|
3919
2890
|
{
|
|
3920
|
-
bg: (0,
|
|
2891
|
+
bg: (0, import_react60.useColorModeValue)("white", "ebony-clay.800"),
|
|
3921
2892
|
boxShadow: "0 4px 20px 0 rgb(0 0 0 / 5%)",
|
|
3922
2893
|
borderRadius: "md",
|
|
3923
2894
|
overflowX: "auto",
|
|
3924
2895
|
...props,
|
|
3925
|
-
children: /* @__PURE__ */ (0,
|
|
2896
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react60.Flex, { alignItems: "center", p: 2, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react60.HStack, { spacing: 2, children: navigations == null ? void 0 : navigations.map((navigation) => {
|
|
3926
2897
|
const isActive = activePath.startsWith(navigation.navLink || "");
|
|
3927
2898
|
const activeBg = isActive ? "primary.500" : void 0;
|
|
3928
|
-
return /* @__PURE__ */ (0,
|
|
3929
|
-
/* @__PURE__ */ (0,
|
|
3930
|
-
|
|
2899
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react60.Popover, { trigger: "hover", placement: "bottom-start", children: ({ isOpen }) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
|
|
2900
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react60.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2901
|
+
import_react60.Box,
|
|
3931
2902
|
{
|
|
3932
2903
|
display: "flex",
|
|
3933
2904
|
alignItems: "center",
|
|
3934
2905
|
borderRadius: "md",
|
|
3935
2906
|
cursor: "pointer",
|
|
3936
2907
|
_hover: {
|
|
3937
|
-
backgroundColor: !isActive ? (0,
|
|
2908
|
+
backgroundColor: !isActive ? (0, import_react60.useColorModeValue)("dove-gray.50", "transparent") : activeBg
|
|
3938
2909
|
},
|
|
3939
|
-
backgroundColor: isOpen && !isActive ? (0,
|
|
2910
|
+
backgroundColor: isOpen && !isActive ? (0, import_react60.useColorModeValue)("dove-gray.50", "transparent") : activeBg,
|
|
3940
2911
|
color: isActive ? "white" : "inherit",
|
|
3941
2912
|
p: 2,
|
|
3942
2913
|
children: [
|
|
3943
|
-
/* @__PURE__ */ (0,
|
|
3944
|
-
/* @__PURE__ */ (0,
|
|
3945
|
-
/* @__PURE__ */ (0,
|
|
2914
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react60.Icon, { as: mappingIcon.get(navigation.title), mr: 2 }),
|
|
2915
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react60.Text, { whiteSpace: "nowrap", fontSize: "text.sm", fontWeight: 400, children: navigation.title }),
|
|
2916
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons4.ChevronDownIcon, { ml: 2 })
|
|
3946
2917
|
]
|
|
3947
2918
|
}
|
|
3948
2919
|
) }),
|
|
3949
|
-
navigation.children && /* @__PURE__ */ (0,
|
|
3950
|
-
|
|
2920
|
+
navigation.children && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react60.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react60.Box, { zIndex: "popover", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2921
|
+
import_react60.PopoverContent,
|
|
3951
2922
|
{
|
|
3952
|
-
bg: (0,
|
|
2923
|
+
bg: (0, import_react60.useColorModeValue)("white", "ebony-clay.800"),
|
|
3953
2924
|
maxW: 250,
|
|
3954
2925
|
border: "none",
|
|
3955
2926
|
borderRadius: "md",
|
|
@@ -3958,16 +2929,16 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
|
3958
2929
|
const link = navHost ? `${navHost}${navLink}` : navLink;
|
|
3959
2930
|
const isLocalLink = host === navHost;
|
|
3960
2931
|
const isActiveSub = activePath === navLink;
|
|
3961
|
-
return /* @__PURE__ */ (0,
|
|
3962
|
-
|
|
2932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2933
|
+
import_react60.Link,
|
|
3963
2934
|
{
|
|
3964
2935
|
as: isLocalLink ? as : void 0,
|
|
3965
2936
|
href: link,
|
|
3966
2937
|
_hover: {
|
|
3967
2938
|
textDecoration: "none"
|
|
3968
2939
|
},
|
|
3969
|
-
children: /* @__PURE__ */ (0,
|
|
3970
|
-
|
|
2940
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2941
|
+
import_react60.Box,
|
|
3971
2942
|
{
|
|
3972
2943
|
display: "flex",
|
|
3973
2944
|
position: "relative",
|
|
@@ -3975,24 +2946,24 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
|
3975
2946
|
cursor: "pointer",
|
|
3976
2947
|
transition: "padding 0.35s ease 0s",
|
|
3977
2948
|
_hover: {
|
|
3978
|
-
backgroundColor: (0,
|
|
3979
|
-
color: (0,
|
|
2949
|
+
backgroundColor: (0, import_react60.useColorModeValue)("dove-gray.50", "mirage.900"),
|
|
2950
|
+
color: (0, import_react60.useColorModeValue)("primary.500", "dove-gray.600"),
|
|
3980
2951
|
px: 5,
|
|
3981
2952
|
py: 4,
|
|
3982
2953
|
_first: { borderTopRadius: "md" },
|
|
3983
2954
|
_last: { borderBottomRadius: "md" }
|
|
3984
2955
|
},
|
|
3985
2956
|
color: isActiveSub ? "primary.500" : "inherit",
|
|
3986
|
-
css:
|
|
2957
|
+
css: import_react61.css`
|
|
3987
2958
|
border-spacing: 4px;
|
|
3988
2959
|
`,
|
|
3989
2960
|
px: 6,
|
|
3990
2961
|
py: 4,
|
|
3991
2962
|
children: [
|
|
3992
|
-
/* @__PURE__ */ (0,
|
|
3993
|
-
/* @__PURE__ */ (0,
|
|
3994
|
-
isActiveSub && /* @__PURE__ */ (0,
|
|
3995
|
-
|
|
2963
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react60.Icon, { as: mappingIcon.get(navigation.title), mr: 3 }),
|
|
2964
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react60.Text, { fontSize: "text.sm", children: title }),
|
|
2965
|
+
isActiveSub && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2966
|
+
import_react60.Box,
|
|
3996
2967
|
{
|
|
3997
2968
|
width: 0.5,
|
|
3998
2969
|
height: 8,
|
|
@@ -4025,9 +2996,9 @@ Navigation.defaultProps = {
|
|
|
4025
2996
|
var navigation_default = Navigation;
|
|
4026
2997
|
|
|
4027
2998
|
// src/components/navigation/components/navigation-bar.tsx
|
|
4028
|
-
var
|
|
2999
|
+
var import_react62 = require("@chakra-ui/react");
|
|
4029
3000
|
var Icon3 = __toESM(require("@ctlyst.id/internal-icon"));
|
|
4030
|
-
var
|
|
3001
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4031
3002
|
var NavigationBar = ({
|
|
4032
3003
|
navigations,
|
|
4033
3004
|
isFetched,
|
|
@@ -4042,15 +3013,15 @@ var NavigationBar = ({
|
|
|
4042
3013
|
}
|
|
4043
3014
|
return subMenu.navHost + subMenu.navLink;
|
|
4044
3015
|
};
|
|
4045
|
-
return /* @__PURE__ */ (0,
|
|
4046
|
-
|
|
3016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3017
|
+
import_react62.Box,
|
|
4047
3018
|
{
|
|
4048
3019
|
hidden: isFetched && navigations === void 0,
|
|
4049
3020
|
backgroundRepeat: "repeat-x",
|
|
4050
3021
|
"data-test-id": "CT_component_navigation_cms",
|
|
4051
3022
|
...props,
|
|
4052
|
-
children: /* @__PURE__ */ (0,
|
|
4053
|
-
|
|
3023
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3024
|
+
import_react62.Flex,
|
|
4054
3025
|
{
|
|
4055
3026
|
bg: "white",
|
|
4056
3027
|
w: "full",
|
|
@@ -4066,9 +3037,9 @@ var NavigationBar = ({
|
|
|
4066
3037
|
const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
|
|
4067
3038
|
const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
|
|
4068
3039
|
const activeBg = isActive ? "primary.500" : void 0;
|
|
4069
|
-
return /* @__PURE__ */ (0,
|
|
4070
|
-
/* @__PURE__ */ (0,
|
|
4071
|
-
|
|
3040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react62.Popover, { isLazy: true, trigger: "hover", placement: "bottom-start", openDelay: 100, closeDelay: 100, children: ({ isOpen, onClose }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
3041
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react62.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3042
|
+
import_react62.Button,
|
|
4072
3043
|
{
|
|
4073
3044
|
h: 7.5,
|
|
4074
3045
|
p: 2,
|
|
@@ -4081,12 +3052,12 @@ var NavigationBar = ({
|
|
|
4081
3052
|
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
|
4082
3053
|
color: isActive ? "primary.50" : "black.high",
|
|
4083
3054
|
leftIcon: mappingIcon2.get(item.title),
|
|
4084
|
-
rightIcon: /* @__PURE__ */ (0,
|
|
3055
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon3.ChevronDown, { size: 4, color: "inherit" }),
|
|
4085
3056
|
children: item.title
|
|
4086
3057
|
}
|
|
4087
3058
|
) }),
|
|
4088
|
-
item.children && /* @__PURE__ */ (0,
|
|
4089
|
-
|
|
3059
|
+
item.children && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react62.PopoverContent, { border: "none", shadow: "raised", py: 1, width: 240, children: item.children.map((subMenu) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
3060
|
+
import_react62.Link,
|
|
4090
3061
|
{
|
|
4091
3062
|
href: urlMenu(subMenu),
|
|
4092
3063
|
display: "flex",
|
|
@@ -4105,7 +3076,7 @@ var NavigationBar = ({
|
|
|
4105
3076
|
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
|
4106
3077
|
children: [
|
|
4107
3078
|
mappingIcon2.get(item.title),
|
|
4108
|
-
/* @__PURE__ */ (0,
|
|
3079
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react62.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
|
4109
3080
|
]
|
|
4110
3081
|
},
|
|
4111
3082
|
subMenu.id
|
|
@@ -4123,19 +3094,19 @@ NavigationBar.defaultProps = {
|
|
|
4123
3094
|
var navigation_bar_default = NavigationBar;
|
|
4124
3095
|
|
|
4125
3096
|
// src/components/pagination/components/pagination.tsx
|
|
4126
|
-
var
|
|
4127
|
-
var
|
|
3097
|
+
var import_icons5 = require("@chakra-ui/icons");
|
|
3098
|
+
var import_react65 = require("@chakra-ui/react");
|
|
4128
3099
|
|
|
4129
3100
|
// src/components/pagination/components/pagination-button.tsx
|
|
4130
|
-
var
|
|
4131
|
-
var
|
|
4132
|
-
var PaginationButton = (0,
|
|
4133
|
-
const btnBg = (0,
|
|
4134
|
-
const btnColor = (0,
|
|
4135
|
-
const btnNotActiveBg = (0,
|
|
4136
|
-
const btnNotActiveColor = (0,
|
|
4137
|
-
return /* @__PURE__ */ (0,
|
|
4138
|
-
|
|
3101
|
+
var import_react63 = require("@chakra-ui/react");
|
|
3102
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3103
|
+
var PaginationButton = (0, import_react63.forwardRef)(({ className, style, isActive, children, ...rest }, ref) => {
|
|
3104
|
+
const btnBg = (0, import_react63.useColorModeValue)("neutral.300", "mirage.900");
|
|
3105
|
+
const btnColor = (0, import_react63.useColorModeValue)("black.high", "primary.300");
|
|
3106
|
+
const btnNotActiveBg = (0, import_react63.useColorModeValue)("secondary.50", "primary.500");
|
|
3107
|
+
const btnNotActiveColor = (0, import_react63.useColorModeValue)("primary.500", "white");
|
|
3108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3109
|
+
import_react63.Button,
|
|
4139
3110
|
{
|
|
4140
3111
|
"data-test-id": "Pagination-Button",
|
|
4141
3112
|
ref,
|
|
@@ -4156,7 +3127,7 @@ var PaginationButton = (0, import_react71.forwardRef)(({ className, style, isAct
|
|
|
4156
3127
|
color: btnNotActiveColor
|
|
4157
3128
|
} : {},
|
|
4158
3129
|
_disabled: {
|
|
4159
|
-
background: (0,
|
|
3130
|
+
background: (0, import_react63.useColorModeValue)("neutral.300", "mirage.900"),
|
|
4160
3131
|
color: "neutral.600",
|
|
4161
3132
|
pointerEvents: "none"
|
|
4162
3133
|
},
|
|
@@ -4172,16 +3143,16 @@ PaginationButton.defaultProps = {
|
|
|
4172
3143
|
var pagination_button_default = PaginationButton;
|
|
4173
3144
|
|
|
4174
3145
|
// src/components/pagination/components/pagination-button-trigger.tsx
|
|
4175
|
-
var
|
|
4176
|
-
var
|
|
3146
|
+
var import_react64 = require("@chakra-ui/react");
|
|
3147
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4177
3148
|
var PaginationButtonTrigger = ({
|
|
4178
3149
|
color,
|
|
4179
3150
|
isDisabled,
|
|
4180
3151
|
onClick,
|
|
4181
3152
|
visuallyHidden,
|
|
4182
3153
|
icon
|
|
4183
|
-
}) => /* @__PURE__ */ (0,
|
|
4184
|
-
/* @__PURE__ */ (0,
|
|
3154
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(pagination_button_default, { "data-test-id": "DLVCc_fBK35spHm5WxjcJ", color, isDisabled, onClick, children: [
|
|
3155
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react64.VisuallyHidden, { children: visuallyHidden }),
|
|
4185
3156
|
icon
|
|
4186
3157
|
] });
|
|
4187
3158
|
PaginationButtonTrigger.defaultProps = {
|
|
@@ -4194,10 +3165,10 @@ PaginationButtonTrigger.defaultProps = {
|
|
|
4194
3165
|
var pagination_button_trigger_default = PaginationButtonTrigger;
|
|
4195
3166
|
|
|
4196
3167
|
// src/components/pagination/components/pagination.tsx
|
|
4197
|
-
var
|
|
3168
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4198
3169
|
var Pagination = ({ className, current, total, onSelect }) => {
|
|
4199
|
-
const btnColorDisabled = (0,
|
|
4200
|
-
const btnColor = (0,
|
|
3170
|
+
const btnColorDisabled = (0, import_react65.useColorModeValue)("secondary.100", "primary.500");
|
|
3171
|
+
const btnColor = (0, import_react65.useColorModeValue)("primary.500", "secondary.100");
|
|
4201
3172
|
const disabledPrevious = current === 1;
|
|
4202
3173
|
const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;
|
|
4203
3174
|
const disabledNext = current === total;
|
|
@@ -4224,8 +3195,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
|
4224
3195
|
}
|
|
4225
3196
|
return pageButtons;
|
|
4226
3197
|
};
|
|
4227
|
-
return /* @__PURE__ */ (0,
|
|
4228
|
-
/* @__PURE__ */ (0,
|
|
3198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_react65.Box, { className, display: "inline-flex", alignItems: "center", children: [
|
|
3199
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react65.Box, { mr: 1, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4229
3200
|
pagination_button_trigger_default,
|
|
4230
3201
|
{
|
|
4231
3202
|
"data-test-id": "Pagination-Button",
|
|
@@ -4233,11 +3204,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
|
4233
3204
|
isDisabled: disabledPrevious,
|
|
4234
3205
|
onClick: () => handleSelectPage(1),
|
|
4235
3206
|
visuallyHidden: "First Page",
|
|
4236
|
-
icon: /* @__PURE__ */ (0,
|
|
3207
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_icons5.ArrowLeftIcon, { width: 2 })
|
|
4237
3208
|
}
|
|
4238
3209
|
) }),
|
|
4239
|
-
/* @__PURE__ */ (0,
|
|
4240
|
-
/* @__PURE__ */ (0,
|
|
3210
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_react65.Box, { bg: "neutral.300", borderRadius: "full", children: [
|
|
3211
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4241
3212
|
pagination_button_trigger_default,
|
|
4242
3213
|
{
|
|
4243
3214
|
"data-test-id": "Pagination-Button",
|
|
@@ -4245,22 +3216,22 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
|
4245
3216
|
isDisabled: disabledPrevious,
|
|
4246
3217
|
onClick: () => handleSelectPage(current - 1),
|
|
4247
3218
|
visuallyHidden: "Previous Page",
|
|
4248
|
-
icon: /* @__PURE__ */ (0,
|
|
3219
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_icons5.ChevronLeftIcon, {})
|
|
4249
3220
|
}
|
|
4250
3221
|
),
|
|
4251
3222
|
generatePages().map((page) => {
|
|
4252
|
-
return /* @__PURE__ */ (0,
|
|
3223
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4253
3224
|
pagination_button_default,
|
|
4254
3225
|
{
|
|
4255
3226
|
"data-test-id": "Pagination-Button",
|
|
4256
3227
|
isActive: page === current,
|
|
4257
3228
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
|
4258
|
-
children: /* @__PURE__ */ (0,
|
|
3229
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react65.Text, { scale: 300, fontSize: "text.sm", lineHeight: 18, fontWeight: 500, children: page })
|
|
4259
3230
|
},
|
|
4260
3231
|
page
|
|
4261
3232
|
);
|
|
4262
3233
|
}),
|
|
4263
|
-
/* @__PURE__ */ (0,
|
|
3234
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4264
3235
|
pagination_button_trigger_default,
|
|
4265
3236
|
{
|
|
4266
3237
|
"data-test-id": "Pagination-Button",
|
|
@@ -4268,11 +3239,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
|
4268
3239
|
isDisabled: disabledNext,
|
|
4269
3240
|
onClick: () => handleSelectPage(current + 1),
|
|
4270
3241
|
visuallyHidden: "Next Page",
|
|
4271
|
-
icon: /* @__PURE__ */ (0,
|
|
3242
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_icons5.ChevronRightIcon, {})
|
|
4272
3243
|
}
|
|
4273
3244
|
)
|
|
4274
3245
|
] }),
|
|
4275
|
-
/* @__PURE__ */ (0,
|
|
3246
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react65.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4276
3247
|
pagination_button_trigger_default,
|
|
4277
3248
|
{
|
|
4278
3249
|
"data-test-id": "Pagination-Button",
|
|
@@ -4280,7 +3251,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
|
4280
3251
|
isDisabled: disabledNext,
|
|
4281
3252
|
onClick: () => handleSelectPage(total),
|
|
4282
3253
|
visuallyHidden: "Last Page",
|
|
4283
|
-
icon: /* @__PURE__ */ (0,
|
|
3254
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_icons5.ArrowRightIcon, { width: 2 })
|
|
4284
3255
|
}
|
|
4285
3256
|
) })
|
|
4286
3257
|
] });
|
|
@@ -4293,8 +3264,8 @@ Pagination.displayName = "Pagination";
|
|
|
4293
3264
|
var pagination_default = Pagination;
|
|
4294
3265
|
|
|
4295
3266
|
// src/components/pagination/components/pagination-detail.tsx
|
|
4296
|
-
var
|
|
4297
|
-
var
|
|
3267
|
+
var import_react66 = require("@chakra-ui/react");
|
|
3268
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4298
3269
|
var PaginationDetail = ({
|
|
4299
3270
|
page,
|
|
4300
3271
|
limit,
|
|
@@ -4304,15 +3275,15 @@ var PaginationDetail = ({
|
|
|
4304
3275
|
lineHeight = 18,
|
|
4305
3276
|
...rest
|
|
4306
3277
|
}) => {
|
|
4307
|
-
return /* @__PURE__ */ (0,
|
|
3278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react66.Text, { scale, fontSize, lineHeight, ...rest, children: `${(page - 1) * limit + 1}-${limit * page < length ? limit * page : length} dari ${length} item` });
|
|
4308
3279
|
};
|
|
4309
3280
|
var pagination_detail_default = PaginationDetail;
|
|
4310
3281
|
|
|
4311
3282
|
// src/components/pagination/components/pagination-filter.tsx
|
|
4312
|
-
var
|
|
3283
|
+
var import_react67 = require("@chakra-ui/react");
|
|
4313
3284
|
var React13 = __toESM(require("react"));
|
|
4314
3285
|
var import_fi7 = require("react-icons/fi");
|
|
4315
|
-
var
|
|
3286
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4316
3287
|
var PaginationFilter = ({
|
|
4317
3288
|
limit,
|
|
4318
3289
|
label = "Baris per halaman:",
|
|
@@ -4321,10 +3292,10 @@ var PaginationFilter = ({
|
|
|
4321
3292
|
...rest
|
|
4322
3293
|
}) => {
|
|
4323
3294
|
const [value, setValue] = React13.useState(limit);
|
|
4324
|
-
return /* @__PURE__ */ (0,
|
|
4325
|
-
/* @__PURE__ */ (0,
|
|
4326
|
-
/* @__PURE__ */ (0,
|
|
4327
|
-
|
|
3295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react67.Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [
|
|
3296
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react67.Text, { fontSize: "text.sm", lineHeight: 18, color: (0, import_react67.useColorModeValue)("neutral.900", "white"), ...rest, children: label }),
|
|
3297
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3298
|
+
import_react67.Select,
|
|
4328
3299
|
{
|
|
4329
3300
|
textAlign: "center",
|
|
4330
3301
|
size: "xs",
|
|
@@ -4332,7 +3303,7 @@ var PaginationFilter = ({
|
|
|
4332
3303
|
border: "none",
|
|
4333
3304
|
boxShadow: "none",
|
|
4334
3305
|
width: 18,
|
|
4335
|
-
icon: /* @__PURE__ */ (0,
|
|
3306
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_fi7.FiChevronDown, {}),
|
|
4336
3307
|
_focusVisible: { boxShadow: "none" },
|
|
4337
3308
|
onChange: (e) => {
|
|
4338
3309
|
const numberValue = Number(e.target.value);
|
|
@@ -4341,7 +3312,7 @@ var PaginationFilter = ({
|
|
|
4341
3312
|
},
|
|
4342
3313
|
value,
|
|
4343
3314
|
children: items.map((item) => {
|
|
4344
|
-
return /* @__PURE__ */ (0,
|
|
3315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("option", { value: item, children: item }, item);
|
|
4345
3316
|
})
|
|
4346
3317
|
}
|
|
4347
3318
|
)
|
|
@@ -4354,11 +3325,11 @@ PaginationFilter.defaultProps = {
|
|
|
4354
3325
|
var pagination_filter_default = PaginationFilter;
|
|
4355
3326
|
|
|
4356
3327
|
// src/components/popover/index.ts
|
|
4357
|
-
var
|
|
3328
|
+
var import_react68 = require("@chakra-ui/react");
|
|
4358
3329
|
|
|
4359
3330
|
// src/components/radio/components/radio.tsx
|
|
4360
|
-
var
|
|
4361
|
-
var
|
|
3331
|
+
var import_react69 = require("@chakra-ui/react");
|
|
3332
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4362
3333
|
var Radio = ({
|
|
4363
3334
|
isError = false,
|
|
4364
3335
|
helpText = "",
|
|
@@ -4368,9 +3339,9 @@ var Radio = ({
|
|
|
4368
3339
|
...rest
|
|
4369
3340
|
}) => {
|
|
4370
3341
|
const variant = isError ? "errors" : "unstyled";
|
|
4371
|
-
return /* @__PURE__ */ (0,
|
|
4372
|
-
/* @__PURE__ */ (0,
|
|
4373
|
-
/* @__PURE__ */ (0,
|
|
3342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_react69.Box, { children: [
|
|
3343
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react69.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react69.Radio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react69.Text, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
|
3344
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react69.Box, { mt: "5px", ml: "24px", children: isError ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react69.Text, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react69.Text, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) })
|
|
4374
3345
|
] });
|
|
4375
3346
|
};
|
|
4376
3347
|
Radio.displayName = "Radio";
|
|
@@ -4381,8 +3352,8 @@ Radio.defaultProps = {
|
|
|
4381
3352
|
};
|
|
4382
3353
|
|
|
4383
3354
|
// src/components/radio/components/radio-group.tsx
|
|
4384
|
-
var
|
|
4385
|
-
var
|
|
3355
|
+
var import_react70 = require("@chakra-ui/react");
|
|
3356
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4386
3357
|
var RadioGroup = ({
|
|
4387
3358
|
children,
|
|
4388
3359
|
label,
|
|
@@ -4391,7 +3362,7 @@ var RadioGroup = ({
|
|
|
4391
3362
|
errorMessage,
|
|
4392
3363
|
...props
|
|
4393
3364
|
}) => {
|
|
4394
|
-
return /* @__PURE__ */ (0,
|
|
3365
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.Box, { mt: "12px", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.RadioGroup, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.Stack, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
|
|
4395
3366
|
};
|
|
4396
3367
|
RadioGroup.displayName = "RadioGroup";
|
|
4397
3368
|
RadioGroup.defaultProps = {
|
|
@@ -4400,374 +3371,27 @@ RadioGroup.defaultProps = {
|
|
|
4400
3371
|
errorMessage: ""
|
|
4401
3372
|
};
|
|
4402
3373
|
|
|
4403
|
-
//
|
|
4404
|
-
var
|
|
4405
|
-
function isInputEvent2(value) {
|
|
4406
|
-
return value && isObject(value) && isObject(value.target);
|
|
4407
|
-
}
|
|
4408
|
-
function useRadioGroup(props = {}) {
|
|
4409
|
-
const {
|
|
4410
|
-
onChange: onChangeProp,
|
|
4411
|
-
value: valueProp,
|
|
4412
|
-
defaultValue,
|
|
4413
|
-
name: nameProp,
|
|
4414
|
-
isDisabled,
|
|
4415
|
-
isFocusable,
|
|
4416
|
-
isNative,
|
|
4417
|
-
...htmlProps
|
|
4418
|
-
} = props;
|
|
4419
|
-
const [valueState, setValue] = (0, import_react79.useState)(defaultValue || "");
|
|
4420
|
-
const isControlled = typeof valueProp !== "undefined";
|
|
4421
|
-
const value = isControlled ? valueProp : valueState;
|
|
4422
|
-
const ref = (0, import_react79.useRef)(null);
|
|
4423
|
-
const focus = (0, import_react79.useCallback)(() => {
|
|
4424
|
-
const rootNode = ref.current;
|
|
4425
|
-
if (!rootNode)
|
|
4426
|
-
return;
|
|
4427
|
-
let query = `input:not(:disabled):checked`;
|
|
4428
|
-
const firstEnabledAndCheckedInput = rootNode.querySelector(
|
|
4429
|
-
query
|
|
4430
|
-
);
|
|
4431
|
-
if (firstEnabledAndCheckedInput) {
|
|
4432
|
-
firstEnabledAndCheckedInput.focus();
|
|
4433
|
-
return;
|
|
4434
|
-
}
|
|
4435
|
-
query = `input:not(:disabled)`;
|
|
4436
|
-
const firstEnabledInput = rootNode.querySelector(query);
|
|
4437
|
-
firstEnabledInput == null ? void 0 : firstEnabledInput.focus();
|
|
4438
|
-
}, []);
|
|
4439
|
-
const uuid = (0, import_react79.useId)();
|
|
4440
|
-
const fallbackName = `radio-${uuid}`;
|
|
4441
|
-
const name = nameProp || fallbackName;
|
|
4442
|
-
const onChange = (0, import_react79.useCallback)(
|
|
4443
|
-
(eventOrValue) => {
|
|
4444
|
-
const nextValue = isInputEvent2(eventOrValue) ? eventOrValue.target.value : eventOrValue;
|
|
4445
|
-
if (!isControlled) {
|
|
4446
|
-
setValue(nextValue);
|
|
4447
|
-
}
|
|
4448
|
-
onChangeProp == null ? void 0 : onChangeProp(String(nextValue));
|
|
4449
|
-
},
|
|
4450
|
-
[onChangeProp, isControlled]
|
|
4451
|
-
);
|
|
4452
|
-
const getRootProps = (0, import_react79.useCallback)(
|
|
4453
|
-
(props2 = {}, forwardedRef = null) => ({
|
|
4454
|
-
...props2,
|
|
4455
|
-
ref: mergeRefs(forwardedRef, ref),
|
|
4456
|
-
role: "radiogroup"
|
|
4457
|
-
}),
|
|
4458
|
-
[]
|
|
4459
|
-
);
|
|
4460
|
-
const getRadioProps = (0, import_react79.useCallback)(
|
|
4461
|
-
(props2 = {}, ref2 = null) => {
|
|
4462
|
-
const checkedKey = isNative ? "checked" : "isChecked";
|
|
4463
|
-
return {
|
|
4464
|
-
...props2,
|
|
4465
|
-
ref: ref2,
|
|
4466
|
-
name,
|
|
4467
|
-
[checkedKey]: value != null ? props2.value === value : void 0,
|
|
4468
|
-
onChange(event) {
|
|
4469
|
-
onChange(event);
|
|
4470
|
-
},
|
|
4471
|
-
"data-radiogroup": true
|
|
4472
|
-
};
|
|
4473
|
-
},
|
|
4474
|
-
[isNative, name, onChange, value]
|
|
4475
|
-
);
|
|
4476
|
-
return {
|
|
4477
|
-
getRootProps,
|
|
4478
|
-
getRadioProps,
|
|
4479
|
-
name,
|
|
4480
|
-
ref,
|
|
4481
|
-
focus,
|
|
4482
|
-
setValue,
|
|
4483
|
-
value,
|
|
4484
|
-
onChange,
|
|
4485
|
-
isDisabled,
|
|
4486
|
-
isFocusable,
|
|
4487
|
-
htmlProps
|
|
4488
|
-
};
|
|
4489
|
-
}
|
|
4490
|
-
|
|
4491
|
-
// ../../node_modules/@chakra-ui/radio/dist/chunk-QUJ23J4G.mjs
|
|
4492
|
-
var import_system10 = require("@chakra-ui/system");
|
|
4493
|
-
var import_react80 = require("react");
|
|
4494
|
-
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4495
|
-
var [RadioGroupProvider, useRadioGroupContext] = createContext({
|
|
4496
|
-
name: "RadioGroupContext",
|
|
4497
|
-
strict: false
|
|
4498
|
-
});
|
|
4499
|
-
var RadioGroup2 = (0, import_system10.forwardRef)((props, ref) => {
|
|
4500
|
-
const {
|
|
4501
|
-
colorScheme,
|
|
4502
|
-
size: size2,
|
|
4503
|
-
variant,
|
|
4504
|
-
children,
|
|
4505
|
-
className,
|
|
4506
|
-
isDisabled,
|
|
4507
|
-
isFocusable,
|
|
4508
|
-
...rest
|
|
4509
|
-
} = props;
|
|
4510
|
-
const { value, onChange, getRootProps, name, htmlProps } = useRadioGroup(rest);
|
|
4511
|
-
const group = (0, import_react80.useMemo)(
|
|
4512
|
-
() => ({
|
|
4513
|
-
name,
|
|
4514
|
-
size: size2,
|
|
4515
|
-
onChange,
|
|
4516
|
-
colorScheme,
|
|
4517
|
-
value,
|
|
4518
|
-
variant,
|
|
4519
|
-
isDisabled,
|
|
4520
|
-
isFocusable
|
|
4521
|
-
}),
|
|
4522
|
-
[
|
|
4523
|
-
name,
|
|
4524
|
-
size2,
|
|
4525
|
-
onChange,
|
|
4526
|
-
colorScheme,
|
|
4527
|
-
value,
|
|
4528
|
-
variant,
|
|
4529
|
-
isDisabled,
|
|
4530
|
-
isFocusable
|
|
4531
|
-
]
|
|
4532
|
-
);
|
|
4533
|
-
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(RadioGroupProvider, { value: group, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
4534
|
-
import_system10.chakra.div,
|
|
4535
|
-
{
|
|
4536
|
-
...getRootProps(htmlProps, ref),
|
|
4537
|
-
className: cx("chakra-radio-group", className),
|
|
4538
|
-
children
|
|
4539
|
-
}
|
|
4540
|
-
) });
|
|
4541
|
-
});
|
|
4542
|
-
RadioGroup2.displayName = "RadioGroup";
|
|
4543
|
-
|
|
4544
|
-
// ../../node_modules/@chakra-ui/radio/dist/chunk-5XCGGO7V.mjs
|
|
4545
|
-
var import_react81 = require("react");
|
|
4546
|
-
var visuallyHiddenStyle2 = {
|
|
4547
|
-
border: "0",
|
|
4548
|
-
clip: "rect(0, 0, 0, 0)",
|
|
4549
|
-
height: "1px",
|
|
4550
|
-
width: "1px",
|
|
4551
|
-
margin: "-1px",
|
|
4552
|
-
padding: "0",
|
|
4553
|
-
overflow: "hidden",
|
|
4554
|
-
whiteSpace: "nowrap",
|
|
4555
|
-
position: "absolute"
|
|
4556
|
-
};
|
|
4557
|
-
function useRadio(props = {}) {
|
|
4558
|
-
const {
|
|
4559
|
-
defaultChecked,
|
|
4560
|
-
isChecked: isCheckedProp,
|
|
4561
|
-
isFocusable,
|
|
4562
|
-
isDisabled: isDisabledProp,
|
|
4563
|
-
isReadOnly: isReadOnlyProp,
|
|
4564
|
-
isRequired: isRequiredProp,
|
|
4565
|
-
onChange,
|
|
4566
|
-
isInvalid: isInvalidProp,
|
|
4567
|
-
name,
|
|
4568
|
-
value,
|
|
4569
|
-
id: idProp,
|
|
4570
|
-
"data-radiogroup": dataRadioGroup,
|
|
4571
|
-
"aria-describedby": ariaDescribedBy,
|
|
4572
|
-
...htmlProps
|
|
4573
|
-
} = props;
|
|
4574
|
-
const uuid = `radio-${(0, import_react81.useId)()}`;
|
|
4575
|
-
const formControl = useFormControlContext();
|
|
4576
|
-
const group = useRadioGroupContext();
|
|
4577
|
-
const isWithinRadioGroup = !!group || !!dataRadioGroup;
|
|
4578
|
-
const isWithinFormControl = !!formControl;
|
|
4579
|
-
let id = isWithinFormControl && !isWithinRadioGroup ? formControl.id : uuid;
|
|
4580
|
-
id = idProp != null ? idProp : id;
|
|
4581
|
-
const isDisabled = isDisabledProp != null ? isDisabledProp : formControl == null ? void 0 : formControl.isDisabled;
|
|
4582
|
-
const isReadOnly = isReadOnlyProp != null ? isReadOnlyProp : formControl == null ? void 0 : formControl.isReadOnly;
|
|
4583
|
-
const isRequired = isRequiredProp != null ? isRequiredProp : formControl == null ? void 0 : formControl.isRequired;
|
|
4584
|
-
const isInvalid = isInvalidProp != null ? isInvalidProp : formControl == null ? void 0 : formControl.isInvalid;
|
|
4585
|
-
const [isFocusVisible2, setIsFocusVisible] = (0, import_react81.useState)(false);
|
|
4586
|
-
const [isFocused, setFocused] = (0, import_react81.useState)(false);
|
|
4587
|
-
const [isHovered, setHovering] = (0, import_react81.useState)(false);
|
|
4588
|
-
const [isActive, setActive] = (0, import_react81.useState)(false);
|
|
4589
|
-
const [isCheckedState, setChecked] = (0, import_react81.useState)(Boolean(defaultChecked));
|
|
4590
|
-
const isControlled = typeof isCheckedProp !== "undefined";
|
|
4591
|
-
const isChecked = isControlled ? isCheckedProp : isCheckedState;
|
|
4592
|
-
(0, import_react81.useEffect)(() => {
|
|
4593
|
-
return trackFocusVisible(setIsFocusVisible);
|
|
4594
|
-
}, []);
|
|
4595
|
-
const handleChange = (0, import_react81.useCallback)(
|
|
4596
|
-
(event) => {
|
|
4597
|
-
if (isReadOnly || isDisabled) {
|
|
4598
|
-
event.preventDefault();
|
|
4599
|
-
return;
|
|
4600
|
-
}
|
|
4601
|
-
if (!isControlled) {
|
|
4602
|
-
setChecked(event.target.checked);
|
|
4603
|
-
}
|
|
4604
|
-
onChange == null ? void 0 : onChange(event);
|
|
4605
|
-
},
|
|
4606
|
-
[isControlled, isDisabled, isReadOnly, onChange]
|
|
4607
|
-
);
|
|
4608
|
-
const onKeyDown = (0, import_react81.useCallback)(
|
|
4609
|
-
(event) => {
|
|
4610
|
-
if (event.key === " ") {
|
|
4611
|
-
setActive(true);
|
|
4612
|
-
}
|
|
4613
|
-
},
|
|
4614
|
-
[setActive]
|
|
4615
|
-
);
|
|
4616
|
-
const onKeyUp = (0, import_react81.useCallback)(
|
|
4617
|
-
(event) => {
|
|
4618
|
-
if (event.key === " ") {
|
|
4619
|
-
setActive(false);
|
|
4620
|
-
}
|
|
4621
|
-
},
|
|
4622
|
-
[setActive]
|
|
4623
|
-
);
|
|
4624
|
-
const getRadioProps = (0, import_react81.useCallback)(
|
|
4625
|
-
(props2 = {}, ref = null) => ({
|
|
4626
|
-
...props2,
|
|
4627
|
-
ref,
|
|
4628
|
-
"data-active": dataAttr(isActive),
|
|
4629
|
-
"data-hover": dataAttr(isHovered),
|
|
4630
|
-
"data-disabled": dataAttr(isDisabled),
|
|
4631
|
-
"data-invalid": dataAttr(isInvalid),
|
|
4632
|
-
"data-checked": dataAttr(isChecked),
|
|
4633
|
-
"data-focus": dataAttr(isFocused),
|
|
4634
|
-
"data-focus-visible": dataAttr(isFocused && isFocusVisible2),
|
|
4635
|
-
"data-readonly": dataAttr(isReadOnly),
|
|
4636
|
-
"aria-hidden": true,
|
|
4637
|
-
onMouseDown: callAllHandlers(props2.onMouseDown, () => setActive(true)),
|
|
4638
|
-
onMouseUp: callAllHandlers(props2.onMouseUp, () => setActive(false)),
|
|
4639
|
-
onMouseEnter: callAllHandlers(
|
|
4640
|
-
props2.onMouseEnter,
|
|
4641
|
-
() => setHovering(true)
|
|
4642
|
-
),
|
|
4643
|
-
onMouseLeave: callAllHandlers(
|
|
4644
|
-
props2.onMouseLeave,
|
|
4645
|
-
() => setHovering(false)
|
|
4646
|
-
)
|
|
4647
|
-
}),
|
|
4648
|
-
[
|
|
4649
|
-
isActive,
|
|
4650
|
-
isHovered,
|
|
4651
|
-
isDisabled,
|
|
4652
|
-
isInvalid,
|
|
4653
|
-
isChecked,
|
|
4654
|
-
isFocused,
|
|
4655
|
-
isReadOnly,
|
|
4656
|
-
isFocusVisible2
|
|
4657
|
-
]
|
|
4658
|
-
);
|
|
4659
|
-
const { onFocus, onBlur } = formControl != null ? formControl : {};
|
|
4660
|
-
const getInputProps = (0, import_react81.useCallback)(
|
|
4661
|
-
(props2 = {}, ref = null) => {
|
|
4662
|
-
const trulyDisabled = isDisabled && !isFocusable;
|
|
4663
|
-
return {
|
|
4664
|
-
...props2,
|
|
4665
|
-
id,
|
|
4666
|
-
ref,
|
|
4667
|
-
type: "radio",
|
|
4668
|
-
name,
|
|
4669
|
-
value,
|
|
4670
|
-
onChange: callAllHandlers(props2.onChange, handleChange),
|
|
4671
|
-
onBlur: callAllHandlers(
|
|
4672
|
-
onBlur,
|
|
4673
|
-
props2.onBlur,
|
|
4674
|
-
() => setFocused(false)
|
|
4675
|
-
),
|
|
4676
|
-
onFocus: callAllHandlers(
|
|
4677
|
-
onFocus,
|
|
4678
|
-
props2.onFocus,
|
|
4679
|
-
() => setFocused(true)
|
|
4680
|
-
),
|
|
4681
|
-
onKeyDown: callAllHandlers(props2.onKeyDown, onKeyDown),
|
|
4682
|
-
onKeyUp: callAllHandlers(props2.onKeyUp, onKeyUp),
|
|
4683
|
-
checked: isChecked,
|
|
4684
|
-
disabled: trulyDisabled,
|
|
4685
|
-
readOnly: isReadOnly,
|
|
4686
|
-
required: isRequired,
|
|
4687
|
-
"aria-invalid": ariaAttr(isInvalid),
|
|
4688
|
-
"aria-disabled": ariaAttr(trulyDisabled),
|
|
4689
|
-
"aria-required": ariaAttr(isRequired),
|
|
4690
|
-
"data-readonly": dataAttr(isReadOnly),
|
|
4691
|
-
"aria-describedby": ariaDescribedBy,
|
|
4692
|
-
style: visuallyHiddenStyle2
|
|
4693
|
-
};
|
|
4694
|
-
},
|
|
4695
|
-
[
|
|
4696
|
-
isDisabled,
|
|
4697
|
-
isFocusable,
|
|
4698
|
-
id,
|
|
4699
|
-
name,
|
|
4700
|
-
value,
|
|
4701
|
-
handleChange,
|
|
4702
|
-
onBlur,
|
|
4703
|
-
onFocus,
|
|
4704
|
-
onKeyDown,
|
|
4705
|
-
onKeyUp,
|
|
4706
|
-
isChecked,
|
|
4707
|
-
isReadOnly,
|
|
4708
|
-
isRequired,
|
|
4709
|
-
isInvalid,
|
|
4710
|
-
ariaDescribedBy
|
|
4711
|
-
]
|
|
4712
|
-
);
|
|
4713
|
-
const getLabelProps = (props2 = {}, ref = null) => ({
|
|
4714
|
-
...props2,
|
|
4715
|
-
ref,
|
|
4716
|
-
onMouseDown: callAllHandlers(props2.onMouseDown, stopEvent2),
|
|
4717
|
-
"data-disabled": dataAttr(isDisabled),
|
|
4718
|
-
"data-checked": dataAttr(isChecked),
|
|
4719
|
-
"data-invalid": dataAttr(isInvalid)
|
|
4720
|
-
});
|
|
4721
|
-
const getRootProps = (props2, ref = null) => ({
|
|
4722
|
-
...props2,
|
|
4723
|
-
ref,
|
|
4724
|
-
"data-disabled": dataAttr(isDisabled),
|
|
4725
|
-
"data-checked": dataAttr(isChecked),
|
|
4726
|
-
"data-invalid": dataAttr(isInvalid)
|
|
4727
|
-
});
|
|
4728
|
-
const state = {
|
|
4729
|
-
isInvalid,
|
|
4730
|
-
isFocused,
|
|
4731
|
-
isChecked,
|
|
4732
|
-
isActive,
|
|
4733
|
-
isHovered,
|
|
4734
|
-
isDisabled,
|
|
4735
|
-
isReadOnly,
|
|
4736
|
-
isRequired
|
|
4737
|
-
};
|
|
4738
|
-
return {
|
|
4739
|
-
state,
|
|
4740
|
-
getCheckboxProps: getRadioProps,
|
|
4741
|
-
getRadioProps,
|
|
4742
|
-
getInputProps,
|
|
4743
|
-
getLabelProps,
|
|
4744
|
-
getRootProps,
|
|
4745
|
-
htmlProps
|
|
4746
|
-
};
|
|
4747
|
-
}
|
|
4748
|
-
function stopEvent2(event) {
|
|
4749
|
-
event.preventDefault();
|
|
4750
|
-
event.stopPropagation();
|
|
4751
|
-
}
|
|
3374
|
+
// src/components/radio/index.ts
|
|
3375
|
+
var import_react71 = require("@chakra-ui/react");
|
|
4752
3376
|
|
|
4753
3377
|
// src/components/rating/components/rating.tsx
|
|
4754
|
-
var
|
|
3378
|
+
var import_react72 = require("@chakra-ui/react");
|
|
4755
3379
|
var import_internal_icon5 = require("@ctlyst.id/internal-icon");
|
|
4756
|
-
var
|
|
3380
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4757
3381
|
var Rating = ({ value }) => {
|
|
4758
|
-
return /* @__PURE__ */ (0,
|
|
3382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react72.Grid, { gap: "4px", display: "flex", children: [...Array(5)].map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_internal_icon5.Rating, { color: i < value ? "#FFA230" : "#E0E0E0", size: 24 })) });
|
|
4759
3383
|
};
|
|
4760
3384
|
var rating_default = Rating;
|
|
4761
3385
|
|
|
4762
3386
|
// src/components/select/components/select.tsx
|
|
4763
|
-
var
|
|
3387
|
+
var import_system7 = require("@chakra-ui/system");
|
|
4764
3388
|
var import_react_select = __toESM(require("react-select"));
|
|
4765
3389
|
|
|
4766
3390
|
// src/components/select/components/select-wrapper.tsx
|
|
4767
|
-
var
|
|
4768
|
-
var
|
|
3391
|
+
var import_react73 = require("@chakra-ui/react");
|
|
3392
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4769
3393
|
var SelectWrapper = ({ children }) => {
|
|
4770
|
-
return /* @__PURE__ */ (0,
|
|
3394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react73.Box, { children });
|
|
4771
3395
|
};
|
|
4772
3396
|
SelectWrapper.defaultProps = {
|
|
4773
3397
|
isError: false
|
|
@@ -4775,16 +3399,16 @@ SelectWrapper.defaultProps = {
|
|
|
4775
3399
|
var select_wrapper_default = SelectWrapper;
|
|
4776
3400
|
|
|
4777
3401
|
// src/config/theme/foundations/shadows.ts
|
|
4778
|
-
var
|
|
3402
|
+
var import_react74 = require("@chakra-ui/react");
|
|
4779
3403
|
var shadows = {
|
|
4780
|
-
...
|
|
3404
|
+
...import_react74.theme.shadows,
|
|
4781
3405
|
raised: "0px 4px 20px rgba(0, 0, 0, 0.05)"
|
|
4782
3406
|
};
|
|
4783
3407
|
|
|
4784
3408
|
// src/config/theme/foundations/sizes.ts
|
|
4785
|
-
var
|
|
3409
|
+
var import_react75 = require("@chakra-ui/react");
|
|
4786
3410
|
var sizes = {
|
|
4787
|
-
...
|
|
3411
|
+
...import_react75.theme.sizes,
|
|
4788
3412
|
4.5: "1.125rem",
|
|
4789
3413
|
9.5: "2.375rem",
|
|
4790
3414
|
18: "4.5rem",
|
|
@@ -4794,9 +3418,9 @@ var sizes = {
|
|
|
4794
3418
|
};
|
|
4795
3419
|
|
|
4796
3420
|
// src/config/theme/foundations/spacing.ts
|
|
4797
|
-
var
|
|
3421
|
+
var import_react76 = require("@chakra-ui/react");
|
|
4798
3422
|
var spacing = {
|
|
4799
|
-
...
|
|
3423
|
+
...import_react76.theme.space,
|
|
4800
3424
|
4.5: "1.125rem",
|
|
4801
3425
|
9.5: "2.375rem",
|
|
4802
3426
|
18: "4.5rem",
|
|
@@ -5103,14 +3727,14 @@ var themeSelect = (theme6) => {
|
|
|
5103
3727
|
};
|
|
5104
3728
|
|
|
5105
3729
|
// src/components/select/components/select.tsx
|
|
5106
|
-
var
|
|
3730
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
5107
3731
|
function Select2({
|
|
5108
3732
|
styles,
|
|
5109
3733
|
isError = false,
|
|
5110
3734
|
...rest
|
|
5111
3735
|
}) {
|
|
5112
|
-
const { colorMode } = (0,
|
|
5113
|
-
return /* @__PURE__ */ (0,
|
|
3736
|
+
const { colorMode } = (0, import_system7.useColorMode)();
|
|
3737
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(select_wrapper_default, { isError, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5114
3738
|
import_react_select.default,
|
|
5115
3739
|
{
|
|
5116
3740
|
classNamePrefix: "react-select",
|
|
@@ -5123,16 +3747,16 @@ function Select2({
|
|
|
5123
3747
|
var select_default = Select2;
|
|
5124
3748
|
|
|
5125
3749
|
// src/components/select/components/select-async.tsx
|
|
5126
|
-
var
|
|
3750
|
+
var import_system8 = require("@chakra-ui/system");
|
|
5127
3751
|
var import_react_select_async_paginate = require("react-select-async-paginate");
|
|
5128
|
-
var
|
|
3752
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
5129
3753
|
function SelectAsync({
|
|
5130
3754
|
styles,
|
|
5131
3755
|
isError = false,
|
|
5132
3756
|
...rest
|
|
5133
3757
|
}) {
|
|
5134
|
-
const { colorMode } = (0,
|
|
5135
|
-
return /* @__PURE__ */ (0,
|
|
3758
|
+
const { colorMode } = (0, import_system8.useColorMode)();
|
|
3759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(select_wrapper_default, { isError, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5136
3760
|
import_react_select_async_paginate.AsyncPaginate,
|
|
5137
3761
|
{
|
|
5138
3762
|
classNamePrefix: "react-select",
|
|
@@ -5145,12 +3769,12 @@ function SelectAsync({
|
|
|
5145
3769
|
var select_async_default = SelectAsync;
|
|
5146
3770
|
|
|
5147
3771
|
// src/components/select/components/select-async-creatable.tsx
|
|
5148
|
-
var
|
|
3772
|
+
var import_system9 = require("@chakra-ui/system");
|
|
5149
3773
|
var import_async_creatable = __toESM(require("react-select/async-creatable"));
|
|
5150
|
-
var
|
|
3774
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5151
3775
|
function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
5152
|
-
const { colorMode } = (0,
|
|
5153
|
-
return /* @__PURE__ */ (0,
|
|
3776
|
+
const { colorMode } = (0, import_system9.useColorMode)();
|
|
3777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(select_wrapper_default, { isError, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5154
3778
|
import_async_creatable.default,
|
|
5155
3779
|
{
|
|
5156
3780
|
classNamePrefix: "react-select",
|
|
@@ -5162,12 +3786,12 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
|
5162
3786
|
}
|
|
5163
3787
|
|
|
5164
3788
|
// src/components/select/components/select-creatable.tsx
|
|
5165
|
-
var
|
|
3789
|
+
var import_system10 = require("@chakra-ui/system");
|
|
5166
3790
|
var import_creatable = __toESM(require("react-select/creatable"));
|
|
5167
|
-
var
|
|
3791
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5168
3792
|
function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
5169
|
-
const { colorMode } = (0,
|
|
5170
|
-
return /* @__PURE__ */ (0,
|
|
3793
|
+
const { colorMode } = (0, import_system10.useColorMode)();
|
|
3794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(select_wrapper_default, { isError, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5171
3795
|
import_creatable.default,
|
|
5172
3796
|
{
|
|
5173
3797
|
classNamePrefix: "react-select",
|
|
@@ -5179,15 +3803,16 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
|
5179
3803
|
}
|
|
5180
3804
|
|
|
5181
3805
|
// src/components/switch/components/switch.tsx
|
|
5182
|
-
var
|
|
3806
|
+
var import_react77 = require("@chakra-ui/react");
|
|
3807
|
+
var import_shared_utils9 = require("@chakra-ui/shared-utils");
|
|
5183
3808
|
var import_internal_icon6 = require("@ctlyst.id/internal-icon");
|
|
5184
|
-
var
|
|
5185
|
-
var
|
|
5186
|
-
var Switch = (0,
|
|
5187
|
-
const styles = (0,
|
|
5188
|
-
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0,
|
|
5189
|
-
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0,
|
|
5190
|
-
const containerStyles = (0,
|
|
3809
|
+
var import_react78 = require("react");
|
|
3810
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
3811
|
+
var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
3812
|
+
const styles = (0, import_react77.useMultiStyleConfig)("Switch", props);
|
|
3813
|
+
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0, import_react77.omitThemingProps)(props);
|
|
3814
|
+
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0, import_react77.useCheckbox)(ownProps);
|
|
3815
|
+
const containerStyles = (0, import_react78.useMemo)(
|
|
5191
3816
|
() => ({
|
|
5192
3817
|
display: "inline-block",
|
|
5193
3818
|
position: "relative",
|
|
@@ -5197,7 +3822,7 @@ var Switch = (0, import_react87.forwardRef)(function Switch2(props, ref) {
|
|
|
5197
3822
|
}),
|
|
5198
3823
|
[styles.container]
|
|
5199
3824
|
);
|
|
5200
|
-
const trackStyles = (0,
|
|
3825
|
+
const trackStyles = (0, import_react78.useMemo)(
|
|
5201
3826
|
() => ({
|
|
5202
3827
|
display: "inline-flex",
|
|
5203
3828
|
flexShrink: 0,
|
|
@@ -5209,7 +3834,7 @@ var Switch = (0, import_react87.forwardRef)(function Switch2(props, ref) {
|
|
|
5209
3834
|
}),
|
|
5210
3835
|
[styles.track]
|
|
5211
3836
|
);
|
|
5212
|
-
const labelStyles = (0,
|
|
3837
|
+
const labelStyles = (0, import_react78.useMemo)(
|
|
5213
3838
|
() => ({
|
|
5214
3839
|
userSelect: "none",
|
|
5215
3840
|
marginStart: spacing2,
|
|
@@ -5225,33 +3850,33 @@ var Switch = (0, import_react87.forwardRef)(function Switch2(props, ref) {
|
|
|
5225
3850
|
};
|
|
5226
3851
|
return iconSize[value];
|
|
5227
3852
|
};
|
|
5228
|
-
return /* @__PURE__ */ (0,
|
|
5229
|
-
|
|
3853
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3854
|
+
import_react77.chakra.label,
|
|
5230
3855
|
{
|
|
5231
3856
|
...getRootProps(),
|
|
5232
3857
|
display: "flex",
|
|
5233
3858
|
alignItems: "center",
|
|
5234
|
-
className: cx("chakra-switch", props.className),
|
|
3859
|
+
className: (0, import_shared_utils9.cx)("chakra-switch", props.className),
|
|
5235
3860
|
__css: containerStyles,
|
|
5236
3861
|
children: [
|
|
5237
|
-
/* @__PURE__ */ (0,
|
|
5238
|
-
/* @__PURE__ */ (0,
|
|
5239
|
-
/* @__PURE__ */ (0,
|
|
5240
|
-
/* @__PURE__ */ (0,
|
|
5241
|
-
/* @__PURE__ */ (0,
|
|
3862
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
|
3863
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_react77.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
|
3864
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_react77.Flex, { gap: 2, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
|
|
3865
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_internal_icon6.Check, { color: "white", size: getIconSize(props.size) }),
|
|
3866
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_internal_icon6.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
|
5242
3867
|
] }),
|
|
5243
|
-
/* @__PURE__ */ (0,
|
|
5244
|
-
|
|
3868
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3869
|
+
import_react77.chakra.span,
|
|
5245
3870
|
{
|
|
5246
3871
|
__css: styles.thumb,
|
|
5247
3872
|
className: "chakra-switch__thumb",
|
|
5248
|
-
"data-checked": dataAttr(state.isChecked),
|
|
5249
|
-
"data-hover": dataAttr(state.isHovered)
|
|
3873
|
+
"data-checked": (0, import_shared_utils9.dataAttr)(state.isChecked),
|
|
3874
|
+
"data-hover": (0, import_shared_utils9.dataAttr)(state.isHovered)
|
|
5250
3875
|
}
|
|
5251
3876
|
)
|
|
5252
3877
|
] }),
|
|
5253
|
-
children && /* @__PURE__ */ (0,
|
|
5254
|
-
|
|
3878
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3879
|
+
import_react77.chakra.span,
|
|
5255
3880
|
{
|
|
5256
3881
|
className: "chakra-switch__label",
|
|
5257
3882
|
color: state.isDisabled ? "black.low" : "black.high",
|
|
@@ -5270,18 +3895,18 @@ Switch.defaultProps = {
|
|
|
5270
3895
|
var switch_default = Switch;
|
|
5271
3896
|
|
|
5272
3897
|
// src/components/table/index.tsx
|
|
5273
|
-
var
|
|
3898
|
+
var import_react79 = require("@chakra-ui/react");
|
|
5274
3899
|
|
|
5275
3900
|
// src/components/tabs/components/tab.tsx
|
|
5276
|
-
var
|
|
5277
|
-
var
|
|
5278
|
-
var Tab = (0,
|
|
3901
|
+
var import_react80 = require("@chakra-ui/react");
|
|
3902
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
3903
|
+
var Tab = (0, import_react80.forwardRef)((props, ref) => {
|
|
5279
3904
|
var _a, _b;
|
|
5280
|
-
const tabProps = (0,
|
|
3905
|
+
const tabProps = (0, import_react80.useTab)({ ...props, ref });
|
|
5281
3906
|
const isSelected = !!tabProps["aria-selected"];
|
|
5282
|
-
const styles = (0,
|
|
5283
|
-
return /* @__PURE__ */ (0,
|
|
5284
|
-
|
|
3907
|
+
const styles = (0, import_react80.useMultiStyleConfig)("Tabs", tabProps);
|
|
3908
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
3909
|
+
import_react80.Button,
|
|
5285
3910
|
{
|
|
5286
3911
|
"data-test-id": props["data-test-id"],
|
|
5287
3912
|
p: 4,
|
|
@@ -5306,7 +3931,7 @@ var Tab = (0, import_react90.forwardRef)((props, ref) => {
|
|
|
5306
3931
|
},
|
|
5307
3932
|
__css: styles.tab,
|
|
5308
3933
|
...tabProps,
|
|
5309
|
-
children: /* @__PURE__ */ (0,
|
|
3934
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react80.Flex, { alignItems: "center", children: [
|
|
5310
3935
|
(_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
|
|
5311
3936
|
tabProps.children,
|
|
5312
3937
|
(_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
|
|
@@ -5317,16 +3942,16 @@ var Tab = (0, import_react90.forwardRef)((props, ref) => {
|
|
|
5317
3942
|
var tab_default = Tab;
|
|
5318
3943
|
|
|
5319
3944
|
// src/components/tabs/index.ts
|
|
5320
|
-
var
|
|
3945
|
+
var import_react81 = require("@chakra-ui/react");
|
|
5321
3946
|
|
|
5322
3947
|
// src/components/text/index.ts
|
|
5323
|
-
var
|
|
3948
|
+
var import_react82 = require("@chakra-ui/react");
|
|
5324
3949
|
|
|
5325
3950
|
// src/components/tooltip/index.ts
|
|
5326
|
-
var
|
|
3951
|
+
var import_react83 = require("@chakra-ui/react");
|
|
5327
3952
|
|
|
5328
3953
|
// src/components/uploader/components/uploader.tsx
|
|
5329
|
-
var
|
|
3954
|
+
var import_react84 = require("@chakra-ui/react");
|
|
5330
3955
|
var React15 = __toESM(require("react"));
|
|
5331
3956
|
var import_react_dropzone = require("react-dropzone");
|
|
5332
3957
|
|
|
@@ -5340,7 +3965,7 @@ var messages = {
|
|
|
5340
3965
|
};
|
|
5341
3966
|
|
|
5342
3967
|
// src/components/uploader/components/uploader.tsx
|
|
5343
|
-
var
|
|
3968
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
5344
3969
|
var Uploader = ({
|
|
5345
3970
|
onHandleUploadFile,
|
|
5346
3971
|
onHandleRejections,
|
|
@@ -5388,9 +4013,9 @@ var Uploader = ({
|
|
|
5388
4013
|
React15.useEffect(() => {
|
|
5389
4014
|
setIsSelected(selected != null ? selected : false);
|
|
5390
4015
|
}, [selected]);
|
|
5391
|
-
return /* @__PURE__ */ (0,
|
|
5392
|
-
/* @__PURE__ */ (0,
|
|
5393
|
-
|
|
4016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react84.Stack, { direction: "column", children: [
|
|
4017
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
4018
|
+
import_react84.Flex,
|
|
5394
4019
|
{
|
|
5395
4020
|
minH: 200,
|
|
5396
4021
|
border: "1px dashed",
|
|
@@ -5401,11 +4026,11 @@ var Uploader = ({
|
|
|
5401
4026
|
...props,
|
|
5402
4027
|
...getRootProps(),
|
|
5403
4028
|
children: [
|
|
5404
|
-
/* @__PURE__ */ (0,
|
|
5405
|
-
isDragActive ? /* @__PURE__ */ (0,
|
|
5406
|
-
!multiple && isSelected && /* @__PURE__ */ (0,
|
|
5407
|
-
!isSelected && /* @__PURE__ */ (0,
|
|
5408
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
4029
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("input", { ...getInputProps() }),
|
|
4030
|
+
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react84.Text, { children: messages.dragActive }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react84.Flex, { flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : "primary.500", children: [
|
|
4031
|
+
!multiple && isSelected && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react84.Heading, { fontWeight: 400, fontSize: "18px", lineHeight: 28, color: "black.high", mb: 2, children: selectedFirstFile == null ? void 0 : selectedFirstFile.name }),
|
|
4032
|
+
!isSelected && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react84.Heading, { fontWeight: 400, fontSize: "18px", lineHeight: 28, mb: 2, children: messages.uploadFile }),
|
|
4033
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react84.Text, { children: messages.dragReplace }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react84.Text, { children: messages.dragInActive })
|
|
5409
4034
|
] })
|
|
5410
4035
|
]
|
|
5411
4036
|
}
|
|
@@ -5422,10 +4047,10 @@ Uploader.defaultProps = {
|
|
|
5422
4047
|
var uploader_default = Uploader;
|
|
5423
4048
|
|
|
5424
4049
|
// src/components/index.ts
|
|
5425
|
-
var
|
|
4050
|
+
var import_react85 = require("@chakra-ui/react");
|
|
5426
4051
|
|
|
5427
4052
|
// src/config/theme/themeConfiguration.ts
|
|
5428
|
-
var
|
|
4053
|
+
var import_react91 = require("@chakra-ui/react");
|
|
5429
4054
|
|
|
5430
4055
|
// src/config/theme/components/index.ts
|
|
5431
4056
|
var components_exports = {};
|
|
@@ -5440,12 +4065,13 @@ __export(components_exports, {
|
|
|
5440
4065
|
FormLabel: () => form_label_default,
|
|
5441
4066
|
Input: () => input_default,
|
|
5442
4067
|
LoaderStyle: () => loader_default2,
|
|
5443
|
-
|
|
4068
|
+
Modal: () => modal_default,
|
|
5444
4069
|
Radio: () => radio_default,
|
|
5445
4070
|
Switch: () => switch_default2,
|
|
5446
4071
|
Table: () => table_default,
|
|
5447
4072
|
Tabs: () => tabs_default,
|
|
5448
|
-
Textarea: () => textarea_default2
|
|
4073
|
+
Textarea: () => textarea_default2,
|
|
4074
|
+
Tooltip: () => tooltip_default
|
|
5449
4075
|
});
|
|
5450
4076
|
|
|
5451
4077
|
// src/config/theme/components/accordion.ts
|
|
@@ -5931,8 +4557,8 @@ var card_default2 = CardStyle;
|
|
|
5931
4557
|
|
|
5932
4558
|
// src/config/theme/components/checkbox.ts
|
|
5933
4559
|
var import_anatomy3 = require("@chakra-ui/anatomy");
|
|
5934
|
-
var
|
|
5935
|
-
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0,
|
|
4560
|
+
var import_react86 = require("@chakra-ui/react");
|
|
4561
|
+
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0, import_react86.createMultiStyleConfigHelpers)(import_anatomy3.checkboxAnatomy.keys);
|
|
5936
4562
|
var baseStyle3 = definePartsStyle3({
|
|
5937
4563
|
control: {
|
|
5938
4564
|
borderRadius: "sm",
|
|
@@ -6213,8 +4839,8 @@ var input_default = Input4;
|
|
|
6213
4839
|
|
|
6214
4840
|
// src/config/theme/components/loader.ts
|
|
6215
4841
|
var import_styled_system8 = require("@chakra-ui/styled-system");
|
|
6216
|
-
var
|
|
6217
|
-
var rotate = (0,
|
|
4842
|
+
var import_react87 = require("@emotion/react");
|
|
4843
|
+
var rotate = (0, import_react87.keyframes)({
|
|
6218
4844
|
"0%": {
|
|
6219
4845
|
transform: "rotate(0deg)"
|
|
6220
4846
|
},
|
|
@@ -6328,25 +4954,25 @@ var LoaderStyle = (0, import_styled_system8.defineStyleConfig)({
|
|
|
6328
4954
|
});
|
|
6329
4955
|
var loader_default2 = LoaderStyle;
|
|
6330
4956
|
|
|
6331
|
-
// src/config/theme/components/
|
|
6332
|
-
var import_anatomy5 = require("@chakra-ui/anatomy");
|
|
4957
|
+
// src/config/theme/components/modal.ts
|
|
6333
4958
|
var import_styled_system9 = require("@chakra-ui/styled-system");
|
|
6334
|
-
var
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
}
|
|
6343
|
-
|
|
4959
|
+
var Modal3 = (0, import_styled_system9.defineStyleConfig)({
|
|
4960
|
+
sizes: {
|
|
4961
|
+
sm: { dialog: { minW: 400 } },
|
|
4962
|
+
md: { dialog: { minW: 600 } },
|
|
4963
|
+
lg: { dialog: { minW: 800 } }
|
|
4964
|
+
},
|
|
4965
|
+
defaultProps: {
|
|
4966
|
+
size: "md"
|
|
4967
|
+
}
|
|
4968
|
+
});
|
|
4969
|
+
var modal_default = Modal3;
|
|
6344
4970
|
|
|
6345
4971
|
// src/config/theme/components/radio.ts
|
|
6346
|
-
var
|
|
6347
|
-
var
|
|
6348
|
-
var { definePartsStyle:
|
|
6349
|
-
var baseStyle6 =
|
|
4972
|
+
var import_anatomy5 = require("@chakra-ui/anatomy");
|
|
4973
|
+
var import_react88 = require("@chakra-ui/react");
|
|
4974
|
+
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0, import_react88.createMultiStyleConfigHelpers)(import_anatomy5.radioAnatomy.keys);
|
|
4975
|
+
var baseStyle6 = definePartsStyle5({
|
|
6350
4976
|
control: {
|
|
6351
4977
|
border: "1px solid",
|
|
6352
4978
|
width: "16px",
|
|
@@ -6362,7 +4988,7 @@ var baseStyle6 = definePartsStyle6({
|
|
|
6362
4988
|
}
|
|
6363
4989
|
}
|
|
6364
4990
|
});
|
|
6365
|
-
var errors2 =
|
|
4991
|
+
var errors2 = definePartsStyle5({
|
|
6366
4992
|
control: {
|
|
6367
4993
|
borderColor: "danger.500",
|
|
6368
4994
|
_checked: {
|
|
@@ -6397,7 +5023,7 @@ var errors2 = definePartsStyle6({
|
|
|
6397
5023
|
fontSize: "12px"
|
|
6398
5024
|
}
|
|
6399
5025
|
});
|
|
6400
|
-
var unstyled3 =
|
|
5026
|
+
var unstyled3 = definePartsStyle5({
|
|
6401
5027
|
control: {
|
|
6402
5028
|
borderColor: "neutral.600",
|
|
6403
5029
|
_checked: {
|
|
@@ -6446,15 +5072,15 @@ var Radio2 = defineMultiStyleConfig5({
|
|
|
6446
5072
|
var radio_default = Radio2;
|
|
6447
5073
|
|
|
6448
5074
|
// src/config/theme/components/switch.ts
|
|
6449
|
-
var
|
|
5075
|
+
var import_anatomy6 = require("@chakra-ui/anatomy");
|
|
6450
5076
|
var import_styled_system10 = require("@chakra-ui/styled-system");
|
|
6451
|
-
var
|
|
6452
|
-
var { defineMultiStyleConfig: defineMultiStyleConfig6, definePartsStyle:
|
|
6453
|
-
var $width = (0,
|
|
6454
|
-
var $height = (0,
|
|
6455
|
-
var $diff = (0,
|
|
6456
|
-
var diffValue =
|
|
6457
|
-
var $translateX = (0,
|
|
5077
|
+
var import_theme_tools2 = require("@chakra-ui/theme-tools");
|
|
5078
|
+
var { defineMultiStyleConfig: defineMultiStyleConfig6, definePartsStyle: definePartsStyle6 } = (0, import_styled_system10.createMultiStyleConfigHelpers)(import_anatomy6.switchAnatomy.keys);
|
|
5079
|
+
var $width = (0, import_theme_tools2.cssVar)("switch-track-width");
|
|
5080
|
+
var $height = (0, import_theme_tools2.cssVar)("switch-track-height");
|
|
5081
|
+
var $diff = (0, import_theme_tools2.cssVar)("switch-track-diff");
|
|
5082
|
+
var diffValue = import_theme_tools2.calc.subtract($width, $height);
|
|
5083
|
+
var $translateX = (0, import_theme_tools2.cssVar)("switch-thumb-x");
|
|
6458
5084
|
var baseStyleThumb = (0, import_styled_system10.defineStyle)({
|
|
6459
5085
|
bg: "white",
|
|
6460
5086
|
transitionProperty: "transform",
|
|
@@ -6466,12 +5092,12 @@ var baseStyleThumb = (0, import_styled_system10.defineStyle)({
|
|
|
6466
5092
|
transform: `translateX(${$translateX.reference})`
|
|
6467
5093
|
}
|
|
6468
5094
|
});
|
|
6469
|
-
var baseStyle7 =
|
|
5095
|
+
var baseStyle7 = definePartsStyle6(() => ({
|
|
6470
5096
|
container: {
|
|
6471
5097
|
[$diff.variable]: diffValue,
|
|
6472
5098
|
[$translateX.variable]: $diff.reference,
|
|
6473
5099
|
_rtl: {
|
|
6474
|
-
[$translateX.variable]: (0,
|
|
5100
|
+
[$translateX.variable]: (0, import_theme_tools2.calc)($diff).negate().toString()
|
|
6475
5101
|
}
|
|
6476
5102
|
},
|
|
6477
5103
|
track: {
|
|
@@ -6491,7 +5117,7 @@ var baseStyle7 = definePartsStyle7(() => ({
|
|
|
6491
5117
|
thumb: baseStyleThumb
|
|
6492
5118
|
}));
|
|
6493
5119
|
var sizes3 = {
|
|
6494
|
-
sm:
|
|
5120
|
+
sm: definePartsStyle6({
|
|
6495
5121
|
container: {
|
|
6496
5122
|
[$width.variable]: "1.875rem",
|
|
6497
5123
|
[$height.variable]: "0.75rem"
|
|
@@ -6501,7 +5127,7 @@ var sizes3 = {
|
|
|
6501
5127
|
[$height.variable]: "0.75rem"
|
|
6502
5128
|
}
|
|
6503
5129
|
}),
|
|
6504
|
-
md:
|
|
5130
|
+
md: definePartsStyle6({
|
|
6505
5131
|
container: {
|
|
6506
5132
|
[$width.variable]: "2.375rem",
|
|
6507
5133
|
[$height.variable]: "1rem"
|
|
@@ -6511,7 +5137,7 @@ var sizes3 = {
|
|
|
6511
5137
|
[$height.variable]: "1rem"
|
|
6512
5138
|
}
|
|
6513
5139
|
}),
|
|
6514
|
-
lg:
|
|
5140
|
+
lg: definePartsStyle6({
|
|
6515
5141
|
container: {
|
|
6516
5142
|
[$width.variable]: "3.25rem",
|
|
6517
5143
|
[$height.variable]: "1.375rem"
|
|
@@ -6532,11 +5158,11 @@ var Switch3 = defineMultiStyleConfig6({
|
|
|
6532
5158
|
var switch_default2 = Switch3;
|
|
6533
5159
|
|
|
6534
5160
|
// src/config/theme/components/table.ts
|
|
6535
|
-
var
|
|
5161
|
+
var import_anatomy7 = require("@chakra-ui/anatomy");
|
|
6536
5162
|
var import_styled_system11 = require("@chakra-ui/styled-system");
|
|
6537
|
-
var
|
|
6538
|
-
var { defineMultiStyleConfig: defineMultiStyleConfig7, definePartsStyle:
|
|
6539
|
-
var baseStyle8 =
|
|
5163
|
+
var import_theme_tools3 = require("@chakra-ui/theme-tools");
|
|
5164
|
+
var { defineMultiStyleConfig: defineMultiStyleConfig7, definePartsStyle: definePartsStyle7 } = (0, import_styled_system11.createMultiStyleConfigHelpers)(import_anatomy7.tableAnatomy.keys);
|
|
5165
|
+
var baseStyle8 = definePartsStyle7({
|
|
6540
5166
|
table: {
|
|
6541
5167
|
fontVariantNumeric: "lining-nums tabular-nums",
|
|
6542
5168
|
borderCollapse: "collapse",
|
|
@@ -6550,7 +5176,7 @@ var baseStyle8 = definePartsStyle8({
|
|
|
6550
5176
|
letterSpacing: "normal",
|
|
6551
5177
|
textAlign: "start",
|
|
6552
5178
|
height: "50px",
|
|
6553
|
-
color: (0,
|
|
5179
|
+
color: (0, import_theme_tools3.mode)("neutral.900", "white"),
|
|
6554
5180
|
fontSize: "text.sm",
|
|
6555
5181
|
lineHeight: "18px",
|
|
6556
5182
|
backgroundColor: "neutral.50",
|
|
@@ -6598,22 +5224,22 @@ var numericStyles = (0, import_styled_system11.defineStyle)({
|
|
|
6598
5224
|
textAlign: "end"
|
|
6599
5225
|
}
|
|
6600
5226
|
});
|
|
6601
|
-
var variantSimple =
|
|
5227
|
+
var variantSimple = definePartsStyle7((props) => {
|
|
6602
5228
|
const { colorScheme: c } = props;
|
|
6603
5229
|
return {
|
|
6604
5230
|
th: {
|
|
6605
|
-
color: (0,
|
|
5231
|
+
color: (0, import_theme_tools3.mode)("gray.600", "gray.400")(props),
|
|
6606
5232
|
borderBottom: "1px",
|
|
6607
|
-
borderColor: (0,
|
|
5233
|
+
borderColor: (0, import_theme_tools3.mode)(`${c}.100`, `${c}.700`)(props),
|
|
6608
5234
|
...numericStyles
|
|
6609
5235
|
},
|
|
6610
5236
|
td: {
|
|
6611
5237
|
borderBottom: "1px",
|
|
6612
|
-
borderColor: (0,
|
|
5238
|
+
borderColor: (0, import_theme_tools3.mode)(`${c}.100`, `${c}.700`)(props),
|
|
6613
5239
|
...numericStyles
|
|
6614
5240
|
},
|
|
6615
5241
|
caption: {
|
|
6616
|
-
color: (0,
|
|
5242
|
+
color: (0, import_theme_tools3.mode)("gray.600", "gray.100")(props)
|
|
6617
5243
|
},
|
|
6618
5244
|
tfoot: {
|
|
6619
5245
|
tr: {
|
|
@@ -6624,32 +5250,32 @@ var variantSimple = definePartsStyle8((props) => {
|
|
|
6624
5250
|
}
|
|
6625
5251
|
};
|
|
6626
5252
|
});
|
|
6627
|
-
var variantStripe =
|
|
5253
|
+
var variantStripe = definePartsStyle7((props) => {
|
|
6628
5254
|
const { colorScheme: c } = props;
|
|
6629
5255
|
return {
|
|
6630
5256
|
th: {
|
|
6631
|
-
color: (0,
|
|
5257
|
+
color: (0, import_theme_tools3.mode)("gray.600", "gray.400")(props),
|
|
6632
5258
|
borderBottom: "1px",
|
|
6633
|
-
borderColor: (0,
|
|
5259
|
+
borderColor: (0, import_theme_tools3.mode)(`${c}.100`, `${c}.700`)(props),
|
|
6634
5260
|
...numericStyles
|
|
6635
5261
|
},
|
|
6636
5262
|
td: {
|
|
6637
5263
|
borderBottom: "1px",
|
|
6638
|
-
borderColor: (0,
|
|
5264
|
+
borderColor: (0, import_theme_tools3.mode)(`${c}.100`, `${c}.700`)(props),
|
|
6639
5265
|
...numericStyles
|
|
6640
5266
|
},
|
|
6641
5267
|
caption: {
|
|
6642
|
-
color: (0,
|
|
5268
|
+
color: (0, import_theme_tools3.mode)("gray.600", "gray.100")(props)
|
|
6643
5269
|
},
|
|
6644
5270
|
tbody: {
|
|
6645
5271
|
tr: {
|
|
6646
5272
|
"&:nth-of-type(odd)": {
|
|
6647
5273
|
"th, td": {
|
|
6648
5274
|
borderBottomWidth: "1px",
|
|
6649
|
-
borderColor: (0,
|
|
5275
|
+
borderColor: (0, import_theme_tools3.mode)(`${c}.100`, `${c}.700`)(props)
|
|
6650
5276
|
},
|
|
6651
5277
|
td: {
|
|
6652
|
-
background: (0,
|
|
5278
|
+
background: (0, import_theme_tools3.mode)(`${c}.100`, `${c}.700`)(props)
|
|
6653
5279
|
}
|
|
6654
5280
|
}
|
|
6655
5281
|
}
|
|
@@ -6669,7 +5295,7 @@ var variants5 = {
|
|
|
6669
5295
|
unstyled: (0, import_styled_system11.defineStyle)({})
|
|
6670
5296
|
};
|
|
6671
5297
|
var sizes4 = {
|
|
6672
|
-
sm:
|
|
5298
|
+
sm: definePartsStyle7({
|
|
6673
5299
|
th: {
|
|
6674
5300
|
px: "2",
|
|
6675
5301
|
py: "4",
|
|
@@ -6688,7 +5314,7 @@ var sizes4 = {
|
|
|
6688
5314
|
fontSize: "xs"
|
|
6689
5315
|
}
|
|
6690
5316
|
}),
|
|
6691
|
-
md:
|
|
5317
|
+
md: definePartsStyle7({
|
|
6692
5318
|
th: {
|
|
6693
5319
|
px: "2",
|
|
6694
5320
|
py: "4",
|
|
@@ -6706,7 +5332,7 @@ var sizes4 = {
|
|
|
6706
5332
|
fontSize: "sm"
|
|
6707
5333
|
}
|
|
6708
5334
|
}),
|
|
6709
|
-
lg:
|
|
5335
|
+
lg: definePartsStyle7({
|
|
6710
5336
|
th: {
|
|
6711
5337
|
px: "2",
|
|
6712
5338
|
py: "4",
|
|
@@ -6738,10 +5364,10 @@ var tableTheme = defineMultiStyleConfig7({
|
|
|
6738
5364
|
var table_default = tableTheme;
|
|
6739
5365
|
|
|
6740
5366
|
// src/config/theme/components/tabs.ts
|
|
6741
|
-
var
|
|
5367
|
+
var import_anatomy8 = require("@chakra-ui/anatomy");
|
|
6742
5368
|
var import_styled_system12 = require("@chakra-ui/styled-system");
|
|
6743
|
-
var { defineMultiStyleConfig: defineMultiStyleConfig8, definePartsStyle:
|
|
6744
|
-
var variantLine =
|
|
5369
|
+
var { defineMultiStyleConfig: defineMultiStyleConfig8, definePartsStyle: definePartsStyle8 } = (0, import_styled_system12.createMultiStyleConfigHelpers)(import_anatomy8.tabsAnatomy.keys);
|
|
5370
|
+
var variantLine = definePartsStyle8((props) => {
|
|
6745
5371
|
const { orientation } = props;
|
|
6746
5372
|
const isVertical = orientation === "vertical";
|
|
6747
5373
|
const borderProp = isVertical ? "borderStart" : "borderBottom";
|
|
@@ -6758,7 +5384,7 @@ var variantLine = definePartsStyle9((props) => {
|
|
|
6758
5384
|
}
|
|
6759
5385
|
};
|
|
6760
5386
|
});
|
|
6761
|
-
var variantUnstyled =
|
|
5387
|
+
var variantUnstyled = definePartsStyle8({});
|
|
6762
5388
|
var variants6 = {
|
|
6763
5389
|
line: variantLine,
|
|
6764
5390
|
unstyled: variantUnstyled
|
|
@@ -6773,7 +5399,7 @@ var tabsTheme = defineMultiStyleConfig8({
|
|
|
6773
5399
|
var tabs_default = tabsTheme;
|
|
6774
5400
|
|
|
6775
5401
|
// src/config/theme/components/textarea.ts
|
|
6776
|
-
var
|
|
5402
|
+
var import_react89 = require("@chakra-ui/react");
|
|
6777
5403
|
var getProps = (props) => {
|
|
6778
5404
|
const { isError, isSuccess, isDisabled } = props;
|
|
6779
5405
|
let borderColor = "neutral.400";
|
|
@@ -6793,7 +5419,7 @@ var getProps = (props) => {
|
|
|
6793
5419
|
borderColor
|
|
6794
5420
|
};
|
|
6795
5421
|
};
|
|
6796
|
-
var outline2 = (0,
|
|
5422
|
+
var outline2 = (0, import_react89.defineStyle)((props) => {
|
|
6797
5423
|
const { focusBorderColor, borderColor } = getProps(props);
|
|
6798
5424
|
return {
|
|
6799
5425
|
background: "white.high",
|
|
@@ -6837,7 +5463,7 @@ var outline2 = (0, import_react99.defineStyle)((props) => {
|
|
|
6837
5463
|
}
|
|
6838
5464
|
};
|
|
6839
5465
|
});
|
|
6840
|
-
var Textarea = (0,
|
|
5466
|
+
var Textarea = (0, import_react89.defineStyleConfig)({
|
|
6841
5467
|
variants: { outline: outline2 },
|
|
6842
5468
|
defaultProps: {
|
|
6843
5469
|
variant: "outline"
|
|
@@ -6845,6 +5471,17 @@ var Textarea = (0, import_react99.defineStyleConfig)({
|
|
|
6845
5471
|
});
|
|
6846
5472
|
var textarea_default2 = Textarea;
|
|
6847
5473
|
|
|
5474
|
+
// src/config/theme/components/tooltip.ts
|
|
5475
|
+
var import_react90 = require("@chakra-ui/react");
|
|
5476
|
+
var $arrowBg = (0, import_react90.cssVar)("popper-arrow-bg");
|
|
5477
|
+
var baseStyle9 = {
|
|
5478
|
+
bg: "neutral.700",
|
|
5479
|
+
fontSize: "text.sm",
|
|
5480
|
+
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
|
5481
|
+
};
|
|
5482
|
+
var Tooltip2 = (0, import_react90.defineStyleConfig)({ baseStyle: baseStyle9 });
|
|
5483
|
+
var tooltip_default = Tooltip2;
|
|
5484
|
+
|
|
6848
5485
|
// src/config/theme/themeConfiguration.ts
|
|
6849
5486
|
var import_styled_system13 = require("@chakra-ui/styled-system");
|
|
6850
5487
|
var config = {
|
|
@@ -6852,7 +5489,7 @@ var config = {
|
|
|
6852
5489
|
useSystemColorMode: false
|
|
6853
5490
|
};
|
|
6854
5491
|
var getTheme = (foundations) => {
|
|
6855
|
-
return (0,
|
|
5492
|
+
return (0, import_react91.extendTheme)({
|
|
6856
5493
|
...foundations,
|
|
6857
5494
|
components: {
|
|
6858
5495
|
...components_exports
|
|
@@ -6868,7 +5505,7 @@ var getTheme = (foundations) => {
|
|
|
6868
5505
|
config
|
|
6869
5506
|
});
|
|
6870
5507
|
};
|
|
6871
|
-
var theme5 = (0,
|
|
5508
|
+
var theme5 = (0, import_react91.extendTheme)({
|
|
6872
5509
|
components: {
|
|
6873
5510
|
...components_exports
|
|
6874
5511
|
},
|
|
@@ -6888,23 +5525,23 @@ var theme5 = (0, import_react100.extendTheme)({
|
|
|
6888
5525
|
|
|
6889
5526
|
// src/hooks/useFetcher.ts
|
|
6890
5527
|
var import_axios2 = __toESM(require("axios"));
|
|
6891
|
-
var
|
|
5528
|
+
var import_react94 = require("react");
|
|
6892
5529
|
|
|
6893
5530
|
// src/provider/components/provider.tsx
|
|
6894
5531
|
var import_axios = __toESM(require("axios"));
|
|
6895
|
-
var
|
|
5532
|
+
var import_react92 = require("react");
|
|
6896
5533
|
var import_react_toastify = require("react-toastify");
|
|
6897
|
-
var
|
|
6898
|
-
var ProviderContext = (0,
|
|
5534
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5535
|
+
var ProviderContext = (0, import_react92.createContext)({
|
|
6899
5536
|
instance: void 0
|
|
6900
5537
|
});
|
|
6901
5538
|
var useInternalUI = () => {
|
|
6902
|
-
const { instance } = (0,
|
|
5539
|
+
const { instance } = (0, import_react92.useContext)(ProviderContext);
|
|
6903
5540
|
return { instance };
|
|
6904
5541
|
};
|
|
6905
5542
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
|
6906
|
-
const instanceRef = (0,
|
|
6907
|
-
(0,
|
|
5543
|
+
const instanceRef = (0, import_react92.useRef)(import_axios.default.create(config2));
|
|
5544
|
+
(0, import_react92.useEffect)(() => {
|
|
6908
5545
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
|
6909
5546
|
instanceRef.current.interceptors.request.use(interceptor);
|
|
6910
5547
|
});
|
|
@@ -6912,9 +5549,9 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
|
6912
5549
|
instanceRef.current.interceptors.response.use(interceptor);
|
|
6913
5550
|
});
|
|
6914
5551
|
}, [requestInterceptors, responseInterceptors]);
|
|
6915
|
-
const provider = (0,
|
|
6916
|
-
return /* @__PURE__ */ (0,
|
|
6917
|
-
/* @__PURE__ */ (0,
|
|
5552
|
+
const provider = (0, import_react92.useMemo)(() => ({ instance: instanceRef.current }), []);
|
|
5553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(ProviderContext.Provider, { value: provider, children: [
|
|
5554
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_toastify.ToastContainer, {}),
|
|
6918
5555
|
children
|
|
6919
5556
|
] });
|
|
6920
5557
|
};
|
|
@@ -6922,12 +5559,12 @@ Provider.displayName = "Provider";
|
|
|
6922
5559
|
var provider_default = Provider;
|
|
6923
5560
|
|
|
6924
5561
|
// src/provider/index.ts
|
|
6925
|
-
var
|
|
5562
|
+
var import_react93 = require("@chakra-ui/react");
|
|
6926
5563
|
|
|
6927
5564
|
// src/hooks/useFetcher.ts
|
|
6928
5565
|
function useFetcher() {
|
|
6929
5566
|
const { instance } = useInternalUI();
|
|
6930
|
-
const axiosInstance = (0,
|
|
5567
|
+
const axiosInstance = (0, import_react94.useMemo)(() => instance || import_axios2.default, [instance]);
|
|
6931
5568
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
|
6932
5569
|
const response = await axiosInstance.request({
|
|
6933
5570
|
data,
|
|
@@ -6947,10 +5584,10 @@ function useFetcher() {
|
|
|
6947
5584
|
}
|
|
6948
5585
|
|
|
6949
5586
|
// src/hooks/index.ts
|
|
6950
|
-
var
|
|
5587
|
+
var import_react95 = require("@chakra-ui/react");
|
|
6951
5588
|
|
|
6952
5589
|
// src/index.ts
|
|
6953
|
-
var
|
|
5590
|
+
var import_react96 = require("@chakra-ui/react");
|
|
6954
5591
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6955
5592
|
0 && (module.exports = {
|
|
6956
5593
|
Accordion,
|
|
@@ -7000,7 +5637,11 @@ var import_react105 = require("@chakra-ui/react");
|
|
|
7000
5637
|
ChakraTable,
|
|
7001
5638
|
Checkbox,
|
|
7002
5639
|
CheckboxGroup,
|
|
5640
|
+
CheckboxGroupContext,
|
|
5641
|
+
CheckboxGroupProps,
|
|
7003
5642
|
CheckboxIcon,
|
|
5643
|
+
CheckboxIconProps,
|
|
5644
|
+
CheckboxState,
|
|
7004
5645
|
Chips,
|
|
7005
5646
|
CloseButton,
|
|
7006
5647
|
CloseButtonProps,
|
|
@@ -7084,6 +5725,7 @@ var import_react105 = require("@chakra-ui/react");
|
|
|
7084
5725
|
Loader,
|
|
7085
5726
|
MainMenu,
|
|
7086
5727
|
Modal,
|
|
5728
|
+
ModalBackButton,
|
|
7087
5729
|
ModalBody,
|
|
7088
5730
|
ModalBodyProps,
|
|
7089
5731
|
ModalCloseButton,
|
|
@@ -7125,6 +5767,7 @@ var import_react105 = require("@chakra-ui/react");
|
|
|
7125
5767
|
ProviderContext,
|
|
7126
5768
|
Radio,
|
|
7127
5769
|
RadioGroup,
|
|
5770
|
+
RadioGroupContext,
|
|
7128
5771
|
Rating,
|
|
7129
5772
|
RequiredIndicator,
|
|
7130
5773
|
RequiredIndicatorProps,
|
|
@@ -7193,6 +5836,10 @@ var import_react105 = require("@chakra-ui/react");
|
|
|
7193
5836
|
UseAccordionProps,
|
|
7194
5837
|
UseAccordionReturn,
|
|
7195
5838
|
UseBreakpointOptions,
|
|
5839
|
+
UseCheckboxGroupProps,
|
|
5840
|
+
UseCheckboxGroupReturn,
|
|
5841
|
+
UseCheckboxProps,
|
|
5842
|
+
UseCheckboxReturn,
|
|
7196
5843
|
UseDisclosureProps,
|
|
7197
5844
|
UseImageProps,
|
|
7198
5845
|
UseImageReturn,
|
|
@@ -7200,6 +5847,9 @@ var import_react105 = require("@chakra-ui/react");
|
|
|
7200
5847
|
UseModalProps,
|
|
7201
5848
|
UseModalReturn,
|
|
7202
5849
|
UseQueryProps,
|
|
5850
|
+
UseRadioGroupReturn,
|
|
5851
|
+
UseRadioProps,
|
|
5852
|
+
UseRadioReturn,
|
|
7203
5853
|
UseTabListProps,
|
|
7204
5854
|
UseTabListReturn,
|
|
7205
5855
|
UseTabOptions,
|
|
@@ -7226,7 +5876,6 @@ var import_react105 = require("@chakra-ui/react");
|
|
|
7226
5876
|
useAlertStyles,
|
|
7227
5877
|
useBoolean,
|
|
7228
5878
|
useBreakpoint,
|
|
7229
|
-
useBreakpointValue,
|
|
7230
5879
|
useCheckbox,
|
|
7231
5880
|
useCheckboxGroup,
|
|
7232
5881
|
useClipboard,
|
|
@@ -7243,13 +5892,11 @@ var import_react105 = require("@chakra-ui/react");
|
|
|
7243
5892
|
useFetcher,
|
|
7244
5893
|
useImage,
|
|
7245
5894
|
useInternalUI,
|
|
7246
|
-
useMediaQuery,
|
|
7247
5895
|
useMergeRefs,
|
|
7248
5896
|
useModal,
|
|
7249
5897
|
useModalContext,
|
|
7250
5898
|
useModalStyles,
|
|
7251
5899
|
useOutsideClick,
|
|
7252
|
-
usePrefersReducedMotion,
|
|
7253
5900
|
useQuery,
|
|
7254
5901
|
useRadio,
|
|
7255
5902
|
useRadioGroup,
|