@ctlyst.id/internal-ui 2.1.11 → 2.1.14
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +684 -649
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +366 -332
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -31,30 +31,31 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
31
31
|
// src/index.ts
|
32
32
|
var src_exports = {};
|
33
33
|
__export(src_exports, {
|
34
|
-
Accordion: () =>
|
35
|
-
AccordionButton: () =>
|
36
|
-
AccordionButtonProps: () =>
|
37
|
-
|
38
|
-
|
34
|
+
Accordion: () => import_react3.Accordion,
|
35
|
+
AccordionButton: () => import_react3.AccordionButton,
|
36
|
+
AccordionButtonProps: () => import_react3.AccordionButtonProps,
|
37
|
+
AccordionEye: () => AccordionEye,
|
38
|
+
AccordionIcon: () => import_react3.AccordionIcon,
|
39
|
+
AccordionIconProps: () => import_react3.AccordionIconProps,
|
39
40
|
AccordionIndicator: () => AccordionIndicator,
|
40
|
-
AccordionItem: () =>
|
41
|
-
AccordionItemProps: () =>
|
42
|
-
AccordionPanel: () =>
|
43
|
-
AccordionPanelProps: () =>
|
44
|
-
AccordionProps: () =>
|
45
|
-
AccordionProvider: () =>
|
41
|
+
AccordionItem: () => import_react3.AccordionItem,
|
42
|
+
AccordionItemProps: () => import_react3.AccordionItemProps,
|
43
|
+
AccordionPanel: () => import_react3.AccordionPanel,
|
44
|
+
AccordionPanelProps: () => import_react3.AccordionPanelProps,
|
45
|
+
AccordionProps: () => import_react3.AccordionProps,
|
46
|
+
AccordionProvider: () => import_react3.AccordionProvider,
|
46
47
|
Alert: () => Alert,
|
47
48
|
AlertAction: () => AlertAction,
|
48
49
|
AlertClose: () => AlertClose,
|
49
50
|
AlertDescription: () => AlertDescription,
|
50
|
-
AlertDialog: () =>
|
51
|
-
AlertDialogBody: () =>
|
52
|
-
AlertDialogCloseButton: () =>
|
53
|
-
AlertDialogContent: () =>
|
54
|
-
AlertDialogFooter: () =>
|
55
|
-
AlertDialogHeader: () =>
|
56
|
-
AlertDialogOverlay: () =>
|
57
|
-
AlertDialogProps: () =>
|
51
|
+
AlertDialog: () => import_react59.AlertDialog,
|
52
|
+
AlertDialogBody: () => import_react59.ModalBody,
|
53
|
+
AlertDialogCloseButton: () => import_react59.ModalCloseButton,
|
54
|
+
AlertDialogContent: () => import_react59.AlertDialogContent,
|
55
|
+
AlertDialogFooter: () => import_react59.ModalFooter,
|
56
|
+
AlertDialogHeader: () => import_react59.ModalHeader,
|
57
|
+
AlertDialogOverlay: () => import_react59.ModalOverlay,
|
58
|
+
AlertDialogProps: () => import_react59.AlertDialogProps,
|
58
59
|
AlertIcon: () => AlertIcon,
|
59
60
|
AlertTitle: () => AlertTitle,
|
60
61
|
Anchor: () => Anchor,
|
@@ -65,27 +66,27 @@ __export(src_exports, {
|
|
65
66
|
AvatarGroupProps: () => import_react85.AvatarGroupProps,
|
66
67
|
AvatarProps: () => import_react85.AvatarProps,
|
67
68
|
Badge: () => badge_default,
|
68
|
-
Box: () =>
|
69
|
-
BoxProps: () =>
|
69
|
+
Box: () => import_react48.Box,
|
70
|
+
BoxProps: () => import_react48.BoxProps,
|
70
71
|
BreadCrumb: () => bread_crumb_default,
|
71
72
|
Button: () => button_default,
|
72
|
-
ButtonGroup: () =>
|
73
|
-
ButtonGroupProps: () =>
|
73
|
+
ButtonGroup: () => import_react9.ButtonGroup,
|
74
|
+
ButtonGroupProps: () => import_react9.ButtonGroupProps,
|
74
75
|
Card: () => card_default,
|
75
|
-
Center: () =>
|
76
|
+
Center: () => import_react48.Center,
|
76
77
|
ChakraProvider: () => import_react93.ChakraProvider,
|
77
78
|
ChakraProviderProps: () => import_react93.ChakraProviderProps,
|
78
79
|
ChakraTable: () => import_react79.Table,
|
79
80
|
Checkbox: () => checkbox_default,
|
80
81
|
CheckboxGroup: () => checkbox_group_default,
|
81
|
-
CheckboxGroupContext: () =>
|
82
|
-
CheckboxGroupProps: () =>
|
83
|
-
CheckboxIcon: () =>
|
84
|
-
CheckboxIconProps: () =>
|
85
|
-
CheckboxState: () =>
|
82
|
+
CheckboxGroupContext: () => import_react16.CheckboxGroupContext,
|
83
|
+
CheckboxGroupProps: () => import_react16.CheckboxGroupProps,
|
84
|
+
CheckboxIcon: () => import_react16.CheckboxIcon,
|
85
|
+
CheckboxIconProps: () => import_react16.CheckboxIconProps,
|
86
|
+
CheckboxState: () => import_react16.CheckboxState,
|
86
87
|
Chips: () => chips_default,
|
87
|
-
CloseButton: () =>
|
88
|
-
CloseButtonProps: () =>
|
88
|
+
CloseButton: () => import_react9.CloseButton,
|
89
|
+
CloseButtonProps: () => import_react9.CloseButtonProps,
|
89
90
|
Code: () => import_react82.Code,
|
90
91
|
CodeProps: () => import_react82.CodeProps,
|
91
92
|
Collapse: () => import_react85.Collapse,
|
@@ -93,125 +94,125 @@ __export(src_exports, {
|
|
93
94
|
ColorMode: () => import_react93.ColorMode,
|
94
95
|
ColorModeScript: () => import_react93.ColorModeScript,
|
95
96
|
ColorModeScriptProps: () => import_react93.ColorModeScriptProps,
|
96
|
-
Container: () =>
|
97
|
-
ContainerProps: () =>
|
97
|
+
Container: () => import_react48.Container,
|
98
|
+
ContainerProps: () => import_react48.ContainerProps,
|
98
99
|
Counter: () => counter_default,
|
99
100
|
DataTable: () => data_table_default,
|
100
101
|
DatePickerMonth: () => datepicker_month_default,
|
101
102
|
Datepicker: () => datepicker_default,
|
102
103
|
Dialog: () => dialog_default,
|
103
|
-
Divider: () =>
|
104
|
-
DividerProps: () =>
|
105
|
-
Drawer: () =>
|
106
|
-
DrawerBody: () =>
|
107
|
-
DrawerCloseButton: () =>
|
108
|
-
DrawerContent: () =>
|
109
|
-
DrawerContentProps: () =>
|
110
|
-
DrawerFooter: () =>
|
111
|
-
DrawerHeader: () =>
|
112
|
-
DrawerOverlay: () =>
|
113
|
-
DrawerProps: () =>
|
104
|
+
Divider: () => import_react48.Divider,
|
105
|
+
DividerProps: () => import_react48.DividerProps,
|
106
|
+
Drawer: () => import_react59.Drawer,
|
107
|
+
DrawerBody: () => import_react59.ModalBody,
|
108
|
+
DrawerCloseButton: () => import_react59.ModalCloseButton,
|
109
|
+
DrawerContent: () => import_react59.DrawerContent,
|
110
|
+
DrawerContentProps: () => import_react59.DrawerContentProps,
|
111
|
+
DrawerFooter: () => import_react59.ModalFooter,
|
112
|
+
DrawerHeader: () => import_react59.ModalHeader,
|
113
|
+
DrawerOverlay: () => import_react59.ModalOverlay,
|
114
|
+
DrawerProps: () => import_react59.DrawerProps,
|
114
115
|
Fade: () => import_react85.Fade,
|
115
116
|
FadeProps: () => import_react85.FadeProps,
|
116
117
|
Field: () => field_default,
|
117
|
-
Flex: () =>
|
118
|
-
FlexProps: () =>
|
119
|
-
FormControl: () =>
|
120
|
-
FormControlProps: () =>
|
121
|
-
FormErrorMessage: () =>
|
122
|
-
FormHelperText: () =>
|
123
|
-
FormLabel: () =>
|
124
|
-
FormLabelProps: () =>
|
125
|
-
Grid: () =>
|
126
|
-
GridItem: () =>
|
127
|
-
GridItemProps: () =>
|
128
|
-
GridProps: () =>
|
129
|
-
HStack: () =>
|
118
|
+
Flex: () => import_react48.Flex,
|
119
|
+
FlexProps: () => import_react48.FlexProps,
|
120
|
+
FormControl: () => import_react27.FormControl,
|
121
|
+
FormControlProps: () => import_react27.FormControlProps,
|
122
|
+
FormErrorMessage: () => import_react27.FormErrorMessage,
|
123
|
+
FormHelperText: () => import_react27.FormHelperText,
|
124
|
+
FormLabel: () => import_react27.FormLabel,
|
125
|
+
FormLabelProps: () => import_react27.FormLabelProps,
|
126
|
+
Grid: () => import_react48.Grid,
|
127
|
+
GridItem: () => import_react48.GridItem,
|
128
|
+
GridItemProps: () => import_react48.GridItemProps,
|
129
|
+
GridProps: () => import_react48.GridProps,
|
130
|
+
HStack: () => import_react48.HStack,
|
130
131
|
Header: () => header_default,
|
131
132
|
Heading: () => import_react82.Heading,
|
132
133
|
HeadingProps: () => import_react82.HeadingProps,
|
133
134
|
Hide: () => import_react85.Hide,
|
134
135
|
HideProps: () => import_react85.HideProps,
|
135
|
-
Icon: () =>
|
136
|
-
IconButton: () =>
|
137
|
-
IconButtonProps: () =>
|
138
|
-
IconProps: () =>
|
139
|
-
Image: () =>
|
140
|
-
ImageProps: () =>
|
136
|
+
Icon: () => import_react47.Icon,
|
137
|
+
IconButton: () => import_react9.IconButton,
|
138
|
+
IconButtonProps: () => import_react9.IconButtonProps,
|
139
|
+
IconProps: () => import_react47.IconProps,
|
140
|
+
Image: () => import_react47.Image,
|
141
|
+
ImageProps: () => import_react47.ImageProps,
|
141
142
|
Img: () => import_react85.Img,
|
142
143
|
ImgProps: () => import_react85.ImgProps,
|
143
144
|
InputAddonLeft: () => InputAddonLeft,
|
144
145
|
InputAddonRight: () => InputAddonRight,
|
145
|
-
InputElementLeft: () =>
|
146
|
-
InputElementRight: () =>
|
146
|
+
InputElementLeft: () => import_react20.InputLeftElement,
|
147
|
+
InputElementRight: () => import_react21.InputRightElement,
|
147
148
|
InputField: () => input_field_default2,
|
148
|
-
InputGroup: () =>
|
149
|
-
InputGroupProps: () =>
|
150
|
-
InputLeftAddon: () =>
|
151
|
-
InputLeftAddonProps: () =>
|
152
|
-
InputLeftElement: () =>
|
153
|
-
InputLeftElementProps: () =>
|
154
|
-
InputProps: () =>
|
155
|
-
InputRightAddon: () =>
|
156
|
-
InputRightAddonProps: () =>
|
157
|
-
InputRightElement: () =>
|
158
|
-
InputRightElementProps: () =>
|
149
|
+
InputGroup: () => import_react27.InputGroup,
|
150
|
+
InputGroupProps: () => import_react27.InputGroupProps,
|
151
|
+
InputLeftAddon: () => import_react27.InputLeftAddon,
|
152
|
+
InputLeftAddonProps: () => import_react27.InputLeftAddonProps,
|
153
|
+
InputLeftElement: () => import_react27.InputLeftElement,
|
154
|
+
InputLeftElementProps: () => import_react27.InputLeftElementProps,
|
155
|
+
InputProps: () => import_react27.InputProps,
|
156
|
+
InputRightAddon: () => import_react27.InputRightAddon,
|
157
|
+
InputRightAddonProps: () => import_react27.InputRightAddonProps,
|
158
|
+
InputRightElement: () => import_react27.InputRightElement,
|
159
|
+
InputRightElementProps: () => import_react27.InputRightElementProps,
|
159
160
|
Link: () => import_react82.Link,
|
160
161
|
LinkProps: () => import_react82.LinkProps,
|
161
|
-
List: () =>
|
162
|
-
ListIcon: () =>
|
163
|
-
ListItem: () =>
|
164
|
-
ListItemProps: () =>
|
165
|
-
ListProps: () =>
|
162
|
+
List: () => import_react49.List,
|
163
|
+
ListIcon: () => import_react49.ListIcon,
|
164
|
+
ListItem: () => import_react49.ListItem,
|
165
|
+
ListItemProps: () => import_react49.ListItemProps,
|
166
|
+
ListProps: () => import_react49.ListProps,
|
166
167
|
Loader: () => loader_default,
|
167
168
|
MainMenu: () => navigation_default,
|
168
|
-
Modal: () =>
|
169
|
+
Modal: () => import_react59.Modal,
|
169
170
|
ModalBackButton: () => modal_back_button_default,
|
170
171
|
ModalBody: () => modal_body_default,
|
171
|
-
ModalBodyProps: () =>
|
172
|
+
ModalBodyProps: () => import_react59.ModalBodyProps,
|
172
173
|
ModalCloseButton: () => modal_close_button_default,
|
173
|
-
ModalContent: () =>
|
174
|
-
ModalContentProps: () =>
|
175
|
-
ModalContextProvider: () =>
|
176
|
-
ModalFocusScope: () =>
|
174
|
+
ModalContent: () => import_react59.ModalContent,
|
175
|
+
ModalContentProps: () => import_react59.ModalContentProps,
|
176
|
+
ModalContextProvider: () => import_react59.ModalContextProvider,
|
177
|
+
ModalFocusScope: () => import_react59.ModalFocusScope,
|
177
178
|
ModalFooter: () => modal_footer_default,
|
178
|
-
ModalFooterProps: () =>
|
179
|
+
ModalFooterProps: () => import_react59.ModalFooterProps,
|
179
180
|
ModalHeader: () => modal_header_default,
|
180
|
-
ModalHeaderProps: () =>
|
181
|
-
ModalOverlay: () =>
|
182
|
-
ModalOverlayProps: () =>
|
183
|
-
ModalProps: () =>
|
181
|
+
ModalHeaderProps: () => import_react59.ModalHeaderProps,
|
182
|
+
ModalOverlay: () => import_react59.ModalOverlay,
|
183
|
+
ModalOverlayProps: () => import_react59.ModalOverlayProps,
|
184
|
+
ModalProps: () => import_react59.ModalProps,
|
184
185
|
MultiDatePickerMonth: () => multi_datepicker_month_default,
|
185
186
|
NavigationBar: () => navigation_bar_default,
|
186
|
-
OrderedList: () =>
|
187
|
+
OrderedList: () => import_react49.OrderedList,
|
187
188
|
Pagination: () => pagination_default,
|
188
189
|
PaginationDetail: () => pagination_detail_default,
|
189
190
|
PaginationFilter: () => pagination_filter_default,
|
190
|
-
Popover: () =>
|
191
|
-
PopoverAnchor: () =>
|
192
|
-
PopoverArrow: () =>
|
193
|
-
PopoverArrowProps: () =>
|
194
|
-
PopoverBody: () =>
|
195
|
-
PopoverBodyProps: () =>
|
196
|
-
PopoverCloseButton: () =>
|
197
|
-
PopoverContent: () =>
|
198
|
-
PopoverContentProps: () =>
|
199
|
-
PopoverFooter: () =>
|
200
|
-
PopoverFooterProps: () =>
|
201
|
-
PopoverHeader: () =>
|
202
|
-
PopoverHeaderProps: () =>
|
203
|
-
PopoverProps: () =>
|
204
|
-
PopoverTrigger: () =>
|
205
|
-
Portal: () =>
|
206
|
-
PortalProps: () =>
|
191
|
+
Popover: () => import_react69.Popover,
|
192
|
+
PopoverAnchor: () => import_react69.PopoverAnchor,
|
193
|
+
PopoverArrow: () => import_react69.PopoverArrow,
|
194
|
+
PopoverArrowProps: () => import_react69.PopoverArrowProps,
|
195
|
+
PopoverBody: () => import_react69.PopoverBody,
|
196
|
+
PopoverBodyProps: () => import_react69.PopoverBodyProps,
|
197
|
+
PopoverCloseButton: () => import_react69.PopoverCloseButton,
|
198
|
+
PopoverContent: () => import_react69.PopoverContent,
|
199
|
+
PopoverContentProps: () => import_react69.PopoverContentProps,
|
200
|
+
PopoverFooter: () => import_react69.PopoverFooter,
|
201
|
+
PopoverFooterProps: () => import_react69.PopoverFooterProps,
|
202
|
+
PopoverHeader: () => import_react69.PopoverHeader,
|
203
|
+
PopoverHeaderProps: () => import_react69.PopoverHeaderProps,
|
204
|
+
PopoverProps: () => import_react69.PopoverProps,
|
205
|
+
PopoverTrigger: () => import_react69.PopoverTrigger,
|
206
|
+
Portal: () => import_react69.Portal,
|
207
|
+
PortalProps: () => import_react69.PortalProps,
|
207
208
|
Provider: () => provider_default,
|
208
209
|
ProviderContext: () => ProviderContext,
|
209
210
|
Radio: () => Radio,
|
210
211
|
RadioGroup: () => RadioGroup,
|
211
|
-
RadioGroupContext: () =>
|
212
|
+
RadioGroupContext: () => import_react72.RadioGroupContext,
|
212
213
|
Rating: () => rating_default,
|
213
|
-
RequiredIndicator: () =>
|
214
|
-
RequiredIndicatorProps: () =>
|
214
|
+
RequiredIndicator: () => import_react27.RequiredIndicator,
|
215
|
+
RequiredIndicatorProps: () => import_react27.RequiredIndicatorProps,
|
215
216
|
ScaleFade: () => import_react85.ScaleFade,
|
216
217
|
ScaleFadeProps: () => import_react85.ScaleFadeProps,
|
217
218
|
Select: () => select_default,
|
@@ -220,15 +221,15 @@ __export(src_exports, {
|
|
220
221
|
SelectCreatable: () => SelectCreatable,
|
221
222
|
Show: () => import_react85.Show,
|
222
223
|
ShowProps: () => import_react85.ShowProps,
|
223
|
-
SimpleGrid: () =>
|
224
|
-
Skeleton: () =>
|
224
|
+
SimpleGrid: () => import_react48.SimpleGrid,
|
225
|
+
Skeleton: () => import_react5.Skeleton,
|
225
226
|
Slide: () => import_react85.Slide,
|
226
227
|
SlideFade: () => import_react85.SlideFade,
|
227
228
|
SlideFadeProps: () => import_react85.SlideFadeProps,
|
228
229
|
SlideProps: () => import_react85.SlideProps,
|
229
|
-
Spacer: () =>
|
230
|
-
Stack: () =>
|
231
|
-
StackProps: () =>
|
230
|
+
Spacer: () => import_react48.Spacer,
|
231
|
+
Stack: () => import_react48.Stack,
|
232
|
+
StackProps: () => import_react48.StackProps,
|
232
233
|
Step: () => import_react85.Step,
|
233
234
|
StepDescription: () => import_react85.StepDescription,
|
234
235
|
StepIcon: () => import_react85.StepIcon,
|
@@ -270,27 +271,27 @@ __export(src_exports, {
|
|
270
271
|
Tooltip: () => import_react83.Tooltip,
|
271
272
|
TooltipProps: () => import_react83.TooltipProps,
|
272
273
|
Tr: () => import_react79.Tr,
|
273
|
-
UnorderedList: () =>
|
274
|
+
UnorderedList: () => import_react49.UnorderedList,
|
274
275
|
Uploader: () => uploader_default,
|
275
|
-
UseAccordionItemProps: () =>
|
276
|
-
UseAccordionItemReturn: () =>
|
277
|
-
UseAccordionProps: () =>
|
278
|
-
UseAccordionReturn: () =>
|
276
|
+
UseAccordionItemProps: () => import_react3.UseAccordionItemProps,
|
277
|
+
UseAccordionItemReturn: () => import_react3.UseAccordionItemReturn,
|
278
|
+
UseAccordionProps: () => import_react3.UseAccordionProps,
|
279
|
+
UseAccordionReturn: () => import_react3.UseAccordionReturn,
|
279
280
|
UseBreakpointOptions: () => import_react85.UseBreakpointOptions,
|
280
|
-
UseCheckboxGroupProps: () =>
|
281
|
-
UseCheckboxGroupReturn: () =>
|
282
|
-
UseCheckboxProps: () =>
|
283
|
-
UseCheckboxReturn: () =>
|
281
|
+
UseCheckboxGroupProps: () => import_react16.UseCheckboxGroupProps,
|
282
|
+
UseCheckboxGroupReturn: () => import_react16.UseCheckboxGroupReturn,
|
283
|
+
UseCheckboxProps: () => import_react16.UseCheckboxProps,
|
284
|
+
UseCheckboxReturn: () => import_react16.UseCheckboxReturn,
|
284
285
|
UseDisclosureProps: () => import_react95.UseDisclosureProps,
|
285
286
|
UseImageProps: () => import_react85.UseImageProps,
|
286
287
|
UseImageReturn: () => import_react85.UseImageReturn,
|
287
288
|
UseMediaQueryOptions: () => import_react85.UseMediaQueryOptions,
|
288
|
-
UseModalProps: () =>
|
289
|
-
UseModalReturn: () =>
|
289
|
+
UseModalProps: () => import_react59.UseModalProps,
|
290
|
+
UseModalReturn: () => import_react59.UseModalReturn,
|
290
291
|
UseQueryProps: () => import_react85.UseQueryProps,
|
291
|
-
UseRadioGroupReturn: () =>
|
292
|
-
UseRadioProps: () =>
|
293
|
-
UseRadioReturn: () =>
|
292
|
+
UseRadioGroupReturn: () => import_react72.UseRadioGroupReturn,
|
293
|
+
UseRadioProps: () => import_react72.UseRadioProps,
|
294
|
+
UseRadioReturn: () => import_react72.UseRadioReturn,
|
294
295
|
UseTabListProps: () => import_react81.UseTabListProps,
|
295
296
|
UseTabListReturn: () => import_react81.UseTabListReturn,
|
296
297
|
UseTabOptions: () => import_react81.UseTabOptions,
|
@@ -298,27 +299,27 @@ __export(src_exports, {
|
|
298
299
|
UseTabProps: () => import_react81.UseTabProps,
|
299
300
|
UseTabsProps: () => import_react81.UseTabsProps,
|
300
301
|
UseTabsReturn: () => import_react81.UseTabsReturn,
|
301
|
-
VStack: () =>
|
302
|
+
VStack: () => import_react48.VStack,
|
302
303
|
VisuallyHidden: () => import_react85.VisuallyHidden,
|
303
304
|
VisuallyHiddenInput: () => import_react85.VisuallyHiddenInput,
|
304
|
-
Wrap: () =>
|
305
|
-
WrapItem: () =>
|
306
|
-
WrapItemProps: () =>
|
307
|
-
WrapProps: () =>
|
305
|
+
Wrap: () => import_react48.Wrap,
|
306
|
+
WrapItem: () => import_react48.WrapItem,
|
307
|
+
WrapItemProps: () => import_react48.WrapItemProps,
|
308
|
+
WrapProps: () => import_react48.WrapProps,
|
308
309
|
extendTheme: () => import_react96.extendTheme,
|
309
310
|
forwardRef: () => import_react96.forwardRef,
|
310
311
|
getTheme: () => getTheme,
|
311
312
|
theme: () => theme5,
|
312
|
-
useAccordion: () =>
|
313
|
-
useAccordionContext: () =>
|
314
|
-
useAccordionItem: () =>
|
315
|
-
useAccordionItemState: () =>
|
316
|
-
useAccordionStyles: () =>
|
313
|
+
useAccordion: () => import_react3.useAccordion,
|
314
|
+
useAccordionContext: () => import_react3.useAccordionContext,
|
315
|
+
useAccordionItem: () => import_react3.useAccordionItem,
|
316
|
+
useAccordionItemState: () => import_react3.useAccordionItemState,
|
317
|
+
useAccordionStyles: () => import_react3.useAccordionStyles,
|
317
318
|
useAlertStyles: () => useAlertStyles,
|
318
319
|
useBoolean: () => import_react95.useBoolean,
|
319
320
|
useBreakpoint: () => import_react85.useBreakpoint,
|
320
|
-
useCheckbox: () =>
|
321
|
-
useCheckboxGroup: () =>
|
321
|
+
useCheckbox: () => import_react16.useCheckbox,
|
322
|
+
useCheckboxGroup: () => import_react16.useCheckboxGroup,
|
322
323
|
useClipboard: () => import_react95.useClipboard,
|
323
324
|
useColorMode: () => import_react95.useColorMode,
|
324
325
|
useColorModePreference: () => import_react85.useColorModePreference,
|
@@ -329,19 +330,19 @@ __export(src_exports, {
|
|
329
330
|
useDataTable: () => useDataTable,
|
330
331
|
useDimensions: () => import_react95.useDimensions,
|
331
332
|
useDisclosure: () => import_react95.useDisclosure,
|
332
|
-
useDrawerContext: () =>
|
333
|
+
useDrawerContext: () => import_react59.useDrawerContext,
|
333
334
|
useFetcher: () => useFetcher,
|
334
335
|
useImage: () => import_react85.useImage,
|
335
336
|
useInternalUI: () => useInternalUI,
|
336
337
|
useMergeRefs: () => import_react95.useMergeRefs,
|
337
|
-
useModal: () =>
|
338
|
-
useModalContext: () =>
|
339
|
-
useModalStyles: () =>
|
338
|
+
useModal: () => import_react59.useModal,
|
339
|
+
useModalContext: () => import_react59.useModalContext,
|
340
|
+
useModalStyles: () => import_react59.useModalStyles,
|
340
341
|
useOutsideClick: () => import_react95.useOutsideClick,
|
341
342
|
useQuery: () => import_react85.useQuery,
|
342
|
-
useRadio: () =>
|
343
|
-
useRadioGroup: () =>
|
344
|
-
useRadioGroupContext: () =>
|
343
|
+
useRadio: () => import_react72.useRadio,
|
344
|
+
useRadioGroup: () => import_react72.useRadioGroup,
|
345
|
+
useRadioGroupContext: () => import_react72.useRadioGroupContext,
|
345
346
|
useSteps: () => import_react85.useSteps,
|
346
347
|
useTab: () => import_react81.useTab,
|
347
348
|
useTabIndicator: () => import_react81.useTabIndicator,
|
@@ -359,19 +360,35 @@ __export(src_exports, {
|
|
359
360
|
});
|
360
361
|
module.exports = __toCommonJS(src_exports);
|
361
362
|
|
362
|
-
// src/components/accordion/components/accordion-
|
363
|
+
// src/components/accordion/components/accordion-eye.tsx
|
363
364
|
var import_react = require("@chakra-ui/react");
|
365
|
+
var import_internal_icon = require("@ctlyst.id/internal-icon");
|
364
366
|
var import_jsx_runtime = require("react/jsx-runtime");
|
367
|
+
var AccordionEye = ({ position = "left" }) => {
|
368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
369
|
+
import_react.Box,
|
370
|
+
{
|
371
|
+
className: "eye-icon",
|
372
|
+
backgroundColor: "white",
|
373
|
+
...position === "right" ? { position: "absolute", right: 4, zIndex: 2 } : {},
|
374
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_internal_icon.Eye, { size: 4 })
|
375
|
+
}
|
376
|
+
);
|
377
|
+
};
|
378
|
+
|
379
|
+
// src/components/accordion/components/accordion-indicator.tsx
|
380
|
+
var import_react2 = require("@chakra-ui/react");
|
381
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
365
382
|
var AccordionIndicator = () => {
|
366
|
-
const { isOpen } = (0,
|
383
|
+
const { isOpen } = (0, import_react2.useAccordionItemState)();
|
367
384
|
if (isOpen) {
|
368
|
-
return /* @__PURE__ */ (0,
|
385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react2.Box, { position: "absolute", left: 0, width: "2px", height: "100%", bg: "primary.500" });
|
369
386
|
}
|
370
387
|
return null;
|
371
388
|
};
|
372
389
|
|
373
390
|
// src/components/accordion/components/index.ts
|
374
|
-
var
|
391
|
+
var import_react3 = require("@chakra-ui/react");
|
375
392
|
|
376
393
|
// src/components/alert/components/alert.tsx
|
377
394
|
var import_shared_utils = require("@chakra-ui/shared-utils");
|
@@ -381,16 +398,16 @@ var import_system = require("@chakra-ui/system");
|
|
381
398
|
var import_react_context = require("@chakra-ui/react-context");
|
382
399
|
|
383
400
|
// src/components/alert/components/icons.tsx
|
384
|
-
var
|
385
|
-
var
|
401
|
+
var import_internal_icon2 = require("@ctlyst.id/internal-icon");
|
402
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
386
403
|
function CheckIcon() {
|
387
|
-
return /* @__PURE__ */ (0,
|
404
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_internal_icon2.CheckCircle, { color: "inherit", size: 4 });
|
388
405
|
}
|
389
406
|
function InfoIcon() {
|
390
|
-
return /* @__PURE__ */ (0,
|
407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_internal_icon2.Info, { color: "inherit", size: 4 });
|
391
408
|
}
|
392
409
|
function WarningIcon() {
|
393
|
-
return /* @__PURE__ */ (0,
|
410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_internal_icon2.AlertTriangle, { color: "inherit", size: 4 });
|
394
411
|
}
|
395
412
|
|
396
413
|
// src/components/alert/components/alert-context.ts
|
@@ -419,7 +436,7 @@ function getStatusIcon(status) {
|
|
419
436
|
}
|
420
437
|
|
421
438
|
// src/components/alert/components/alert.tsx
|
422
|
-
var
|
439
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
423
440
|
var Alert = (0, import_system.forwardRef)(function Alert2(props, ref) {
|
424
441
|
var _a;
|
425
442
|
const { status = "info", addRole = true, children, ...rest } = (0, import_system.omitThemingProps)(props);
|
@@ -434,7 +451,7 @@ var Alert = (0, import_system.forwardRef)(function Alert2(props, ref) {
|
|
434
451
|
overflow: "hidden",
|
435
452
|
...styles.container
|
436
453
|
};
|
437
|
-
return /* @__PURE__ */ (0,
|
454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AlertProvider, { value: { status }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AlertStylesProvider, { value: styles, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
438
455
|
import_system.chakra.div,
|
439
456
|
{
|
440
457
|
"data-status": status,
|
@@ -453,14 +470,14 @@ Alert.displayName = "Alert";
|
|
453
470
|
var import_shared_utils2 = require("@chakra-ui/shared-utils");
|
454
471
|
|
455
472
|
// src/components/button/components/button.tsx
|
456
|
-
var
|
473
|
+
var import_react6 = require("@chakra-ui/react");
|
457
474
|
|
458
475
|
// src/components/loader/components/loader.tsx
|
459
|
-
var
|
460
|
-
var
|
461
|
-
var Loader = (0,
|
462
|
-
const styles = (0,
|
463
|
-
return /* @__PURE__ */ (0,
|
476
|
+
var import_react4 = require("@chakra-ui/react");
|
477
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
478
|
+
var Loader = (0, import_react4.forwardRef)((props, ref) => {
|
479
|
+
const styles = (0, import_react4.useStyleConfig)("LoaderStyle", props);
|
480
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react4.Box, { ref, __css: styles });
|
464
481
|
});
|
465
482
|
Loader.defaultProps = {
|
466
483
|
size: "md"
|
@@ -468,11 +485,11 @@ Loader.defaultProps = {
|
|
468
485
|
var loader_default = Loader;
|
469
486
|
|
470
487
|
// src/components/loader/index.ts
|
471
|
-
var
|
488
|
+
var import_react5 = require("@chakra-ui/react");
|
472
489
|
|
473
490
|
// src/components/button/components/button.tsx
|
474
|
-
var
|
475
|
-
var Button = (0,
|
491
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
492
|
+
var Button = (0, import_react6.forwardRef)((props, ref) => {
|
476
493
|
const { children, variant, size: size2, ...rest } = props;
|
477
494
|
const getLoaderSize = () => {
|
478
495
|
if (size2 === "lg") return "md";
|
@@ -484,12 +501,12 @@ var Button = (0, import_react5.forwardRef)((props, ref) => {
|
|
484
501
|
if (variant === "outline-danger") return "danger";
|
485
502
|
return "primary";
|
486
503
|
};
|
487
|
-
return /* @__PURE__ */ (0,
|
488
|
-
|
504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
505
|
+
import_react6.Button,
|
489
506
|
{
|
490
507
|
size: size2,
|
491
508
|
variant,
|
492
|
-
spinner: /* @__PURE__ */ (0,
|
509
|
+
spinner: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(loader_default, { size: getLoaderSize(), color: getLoaderColor2() }),
|
493
510
|
ref,
|
494
511
|
...rest,
|
495
512
|
children
|
@@ -499,11 +516,11 @@ var Button = (0, import_react5.forwardRef)((props, ref) => {
|
|
499
516
|
var button_default = Button;
|
500
517
|
|
501
518
|
// src/components/alert/components/alert-action.tsx
|
502
|
-
var
|
519
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
503
520
|
function AlertAction({ children, className }) {
|
504
521
|
const styles = useAlertStyles();
|
505
522
|
const css4 = styles.action;
|
506
|
-
return /* @__PURE__ */ (0,
|
523
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
507
524
|
button_default,
|
508
525
|
{
|
509
526
|
"data-test-id": "alert-action",
|
@@ -520,12 +537,12 @@ AlertAction.displayName = "AlertAction";
|
|
520
537
|
// src/components/alert/components/alert-close.tsx
|
521
538
|
var import_shared_utils3 = require("@chakra-ui/shared-utils");
|
522
539
|
var import_system2 = require("@chakra-ui/system");
|
523
|
-
var
|
524
|
-
var
|
540
|
+
var import_internal_icon3 = require("@ctlyst.id/internal-icon");
|
541
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
525
542
|
function AlertClose({ className, children, ...rest }) {
|
526
543
|
const styles = useAlertStyles();
|
527
544
|
const css4 = styles.close;
|
528
|
-
return /* @__PURE__ */ (0,
|
545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
529
546
|
import_system2.chakra.span,
|
530
547
|
{
|
531
548
|
display: "inherit",
|
@@ -533,7 +550,7 @@ function AlertClose({ className, children, ...rest }) {
|
|
533
550
|
...rest,
|
534
551
|
className: (0, import_shared_utils3.cx)("chakra-alert__close", className),
|
535
552
|
__css: css4,
|
536
|
-
children: children || /* @__PURE__ */ (0,
|
553
|
+
children: children || /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_internal_icon3.Close, { color: "inherit", size: 4 })
|
537
554
|
}
|
538
555
|
);
|
539
556
|
}
|
@@ -542,7 +559,7 @@ AlertClose.displayName = "AlertClose";
|
|
542
559
|
// src/components/alert/components/alert-description.tsx
|
543
560
|
var import_shared_utils4 = require("@chakra-ui/shared-utils");
|
544
561
|
var import_system3 = require("@chakra-ui/system");
|
545
|
-
var
|
562
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
546
563
|
var AlertDescription = (0, import_system3.forwardRef)(function AlertDescription2(props, ref) {
|
547
564
|
const styles = useAlertStyles();
|
548
565
|
const { status } = useAlertContext();
|
@@ -550,7 +567,7 @@ var AlertDescription = (0, import_system3.forwardRef)(function AlertDescription2
|
|
550
567
|
display: "inline",
|
551
568
|
...styles.description
|
552
569
|
};
|
553
|
-
return /* @__PURE__ */ (0,
|
570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
554
571
|
import_system3.chakra.div,
|
555
572
|
{
|
556
573
|
ref,
|
@@ -566,13 +583,13 @@ AlertDescription.displayName = "AlertDescription";
|
|
566
583
|
// src/components/alert/components/alert-icon.tsx
|
567
584
|
var import_shared_utils5 = require("@chakra-ui/shared-utils");
|
568
585
|
var import_system4 = require("@chakra-ui/system");
|
569
|
-
var
|
586
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
570
587
|
function AlertIcon({ className, children, ...rest }) {
|
571
588
|
const { status } = useAlertContext();
|
572
589
|
const BaseIcon = getStatusIcon(status);
|
573
590
|
const styles = useAlertStyles();
|
574
591
|
const css4 = styles.icon;
|
575
|
-
return /* @__PURE__ */ (0,
|
592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
576
593
|
import_system4.chakra.span,
|
577
594
|
{
|
578
595
|
display: "inherit",
|
@@ -580,7 +597,7 @@ function AlertIcon({ className, children, ...rest }) {
|
|
580
597
|
...rest,
|
581
598
|
className: (0, import_shared_utils5.cx)("chakra-alert__icon", className),
|
582
599
|
__css: css4,
|
583
|
-
children: children || /* @__PURE__ */ (0,
|
600
|
+
children: children || /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(BaseIcon, {})
|
584
601
|
}
|
585
602
|
);
|
586
603
|
}
|
@@ -589,11 +606,11 @@ AlertIcon.displayName = "AlertIcon";
|
|
589
606
|
// src/components/alert/components/alert-title.tsx
|
590
607
|
var import_shared_utils6 = require("@chakra-ui/shared-utils");
|
591
608
|
var import_system5 = require("@chakra-ui/system");
|
592
|
-
var
|
609
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
593
610
|
var AlertTitle = (0, import_system5.forwardRef)(function AlertTitle2(props, ref) {
|
594
611
|
const styles = useAlertStyles();
|
595
612
|
const { status } = useAlertContext();
|
596
|
-
return /* @__PURE__ */ (0,
|
613
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
597
614
|
import_system5.chakra.div,
|
598
615
|
{
|
599
616
|
ref,
|
@@ -607,12 +624,12 @@ var AlertTitle = (0, import_system5.forwardRef)(function AlertTitle2(props, ref)
|
|
607
624
|
AlertTitle.displayName = "AlertTitle";
|
608
625
|
|
609
626
|
// src/components/anchor/components/anchor.tsx
|
610
|
-
var
|
627
|
+
var import_react7 = require("@chakra-ui/react");
|
611
628
|
var import_shared_utils7 = require("@chakra-ui/shared-utils");
|
612
|
-
var
|
629
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
613
630
|
var Anchor = ({ children, leftIcon, rightIcon, isActive, isChild, ...props }) => {
|
614
|
-
return /* @__PURE__ */ (0,
|
615
|
-
|
631
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
632
|
+
import_react7.Link,
|
616
633
|
{
|
617
634
|
display: "inline-block",
|
618
635
|
w: "full",
|
@@ -644,12 +661,12 @@ Anchor.defaultProps = {
|
|
644
661
|
};
|
645
662
|
|
646
663
|
// src/components/badge/components/badge.tsx
|
647
|
-
var
|
648
|
-
var
|
664
|
+
var import_react8 = require("@chakra-ui/react");
|
665
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
649
666
|
var Badge = (props) => {
|
650
667
|
const { children, pill, ...rest } = props;
|
651
|
-
return /* @__PURE__ */ (0,
|
652
|
-
|
668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
669
|
+
import_react8.Badge,
|
653
670
|
{
|
654
671
|
borderRadius: pill ? "xl" : "sm",
|
655
672
|
display: "inline-flex",
|
@@ -667,19 +684,19 @@ Badge.defaultProps = {
|
|
667
684
|
var badge_default = Badge;
|
668
685
|
|
669
686
|
// src/components/breadcrumb/components/bread-crumb.tsx
|
670
|
-
var
|
687
|
+
var import_react10 = require("@chakra-ui/react");
|
671
688
|
var import_fi = require("react-icons/fi");
|
672
689
|
|
673
690
|
// src/components/button/index.ts
|
674
|
-
var
|
691
|
+
var import_react9 = require("@chakra-ui/react");
|
675
692
|
|
676
693
|
// src/components/breadcrumb/components/bread-crumb.tsx
|
677
|
-
var
|
694
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
678
695
|
var BreadCrumb = (props) => {
|
679
696
|
const { title, children, parents, className, disableHome, spacing: spacing2 = 2, backButton } = props;
|
680
|
-
const [neutral600, primary500] = (0,
|
681
|
-
return /* @__PURE__ */ (0,
|
682
|
-
|
697
|
+
const [neutral600, primary500] = (0, import_react10.useToken)("colors", ["neutral.600", "primary.500"]);
|
698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
699
|
+
import_react10.Box,
|
683
700
|
{
|
684
701
|
"data-test-id": "CT_component_breadcrumb_breadcrumb",
|
685
702
|
className,
|
@@ -688,14 +705,14 @@ var BreadCrumb = (props) => {
|
|
688
705
|
alignItems: "center",
|
689
706
|
paddingY: 2,
|
690
707
|
children: [
|
691
|
-
/* @__PURE__ */ (0,
|
692
|
-
backButton && /* @__PURE__ */ (0,
|
693
|
-
/* @__PURE__ */ (0,
|
694
|
-
/* @__PURE__ */ (0,
|
695
|
-
/* @__PURE__ */ (0,
|
696
|
-
|
708
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react10.Box, { display: "flex", alignItems: "center", children: [
|
709
|
+
backButton && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(button_default, { variant: "icon", "data-test-id": "button", size: "md", mr: "2", onClick: backButton, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_fi.FiChevronLeft, { size: import_react10.theme.sizes[5] }) }),
|
710
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.Text, { pr: "2", textStyle: "heading.6", color: "neutral.700", children: title }),
|
711
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.Box, { h: "5.5", borderLeft: "1px solid", borderColor: neutral600 }),
|
712
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
713
|
+
import_react10.Breadcrumb,
|
697
714
|
{
|
698
|
-
separator: /* @__PURE__ */ (0,
|
715
|
+
separator: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_fi.FiChevronsRight, { color: neutral600, size: import_react10.theme.sizes["3.5"] }),
|
699
716
|
pl: "2",
|
700
717
|
pr: "4",
|
701
718
|
spacing: spacing2,
|
@@ -704,9 +721,9 @@ var BreadCrumb = (props) => {
|
|
704
721
|
alignItems: "center",
|
705
722
|
className: "breadcrumb-wrapper",
|
706
723
|
children: [
|
707
|
-
/* @__PURE__ */ (0,
|
708
|
-
parents == null ? void 0 : parents.map((val) => /* @__PURE__ */ (0,
|
709
|
-
|
724
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.BreadcrumbItem, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.BreadcrumbLink, { href: !disableHome ? "/" : void 0, style: { ...disableHome && { cursor: "default" } }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_fi.FiHome, { className: "align-top", size: import_react10.theme.sizes["3.5"], color: primary500 }) }) }),
|
725
|
+
parents == null ? void 0 : parents.map((val) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.BreadcrumbItem, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
726
|
+
import_react10.BreadcrumbLink,
|
710
727
|
{
|
711
728
|
"data-test-id": "iadKcMAul3QAdvmfIQjRE",
|
712
729
|
href: !val.disable ? val.link : void 0,
|
@@ -717,15 +734,15 @@ var BreadCrumb = (props) => {
|
|
717
734
|
}
|
718
735
|
},
|
719
736
|
_hover: { textDecoration: "none" },
|
720
|
-
children: /* @__PURE__ */ (0,
|
737
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.Text, { color: val.disable ? neutral600 : primary500, textStyle: "text.sm", children: val.name })
|
721
738
|
}
|
722
739
|
) }, val.name)),
|
723
|
-
/* @__PURE__ */ (0,
|
740
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.BreadcrumbItem, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.BreadcrumbLink, { _hover: { textDecor: "none", cursor: "default" }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.Text, { color: "neutral.600", textStyle: "text.sm", children: title }) }) })
|
724
741
|
]
|
725
742
|
}
|
726
743
|
)
|
727
744
|
] }),
|
728
|
-
children && /* @__PURE__ */ (0,
|
745
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_react10.Box, { children })
|
729
746
|
]
|
730
747
|
}
|
731
748
|
);
|
@@ -741,12 +758,12 @@ BreadCrumb.defaultProps = {
|
|
741
758
|
var bread_crumb_default = BreadCrumb;
|
742
759
|
|
743
760
|
// src/components/card/components/card.tsx
|
744
|
-
var
|
745
|
-
var
|
746
|
-
var
|
747
|
-
var CardCustom = (0,
|
748
|
-
const styles = (0,
|
749
|
-
return /* @__PURE__ */ (0,
|
761
|
+
var import_react11 = require("@chakra-ui/react");
|
762
|
+
var import_react12 = require("react");
|
763
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
764
|
+
var CardCustom = (0, import_react12.forwardRef)(({ children, ...rest }, ref) => {
|
765
|
+
const styles = (0, import_react11.useStyleConfig)("Card", rest);
|
766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react11.Card, { __css: styles, backgroundColor: "white.high", ref, ...rest, children });
|
750
767
|
});
|
751
768
|
CardCustom.defaultProps = {
|
752
769
|
withShadow: true,
|
@@ -755,14 +772,14 @@ CardCustom.defaultProps = {
|
|
755
772
|
var card_default = CardCustom;
|
756
773
|
|
757
774
|
// src/components/checkbox/components/checkbox.tsx
|
758
|
-
var
|
759
|
-
var
|
760
|
-
var CheckboxComponent = (0,
|
775
|
+
var import_react13 = require("@chakra-ui/react");
|
776
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
777
|
+
var CheckboxComponent = (0, import_react13.forwardRef)(
|
761
778
|
({ isError = false, helpText = "", errorText = "", boxProps, children, isDisabled, ...rest }, ref) => {
|
762
779
|
const variant = isError ? "errors" : "unstyled";
|
763
|
-
return /* @__PURE__ */ (0,
|
764
|
-
/* @__PURE__ */ (0,
|
765
|
-
(isError || helpText) && /* @__PURE__ */ (0,
|
780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react13.Box, { ...boxProps, children: [
|
781
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.Checkbox, { variant, ref, ...rest, isDisabled, children: children && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.Text, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
782
|
+
(isError || helpText) && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.Box, { mt: "5px", ml: "24px", children: isError ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.Text, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react13.Text, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) })
|
766
783
|
] });
|
767
784
|
}
|
768
785
|
);
|
@@ -775,11 +792,11 @@ CheckboxComponent.defaultProps = {
|
|
775
792
|
var checkbox_default = CheckboxComponent;
|
776
793
|
|
777
794
|
// src/components/checkbox/components/checkbox-group.tsx
|
778
|
-
var
|
795
|
+
var import_react15 = require("@chakra-ui/react");
|
779
796
|
|
780
797
|
// src/components/field/components/field.tsx
|
781
|
-
var
|
782
|
-
var
|
798
|
+
var import_react14 = require("@chakra-ui/react");
|
799
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
783
800
|
var Field = (props) => {
|
784
801
|
const {
|
785
802
|
label,
|
@@ -803,15 +820,15 @@ var Field = (props) => {
|
|
803
820
|
};
|
804
821
|
const helperColor = getHelperColor();
|
805
822
|
const justifyHelper = getJustifyContentHelper();
|
806
|
-
return /* @__PURE__ */ (0,
|
807
|
-
label && (typeof label === "string" ? /* @__PURE__ */ (0,
|
808
|
-
isRequired && /* @__PURE__ */ (0,
|
823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_react14.FormControl, { isInvalid: isError, ...boxProps, children: [
|
824
|
+
label && (typeof label === "string" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_react14.FormLabel, { mb: 1, fontSize: "text.sm", requiredIndicator: void 0, children: [
|
825
|
+
isRequired && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react14.Box, { as: "span", color: "danger.500", ml: 0, mr: 1, children: "*" }),
|
809
826
|
label
|
810
827
|
] }) : label),
|
811
828
|
children,
|
812
|
-
(isError && errorMessage || leftHelperText || rightHelperText) && /* @__PURE__ */ (0,
|
813
|
-
!isError ? leftHelperText && (typeof leftHelperText === "string" ? /* @__PURE__ */ (0,
|
814
|
-
rightHelperText && (typeof rightHelperText === "string" ? /* @__PURE__ */ (0,
|
829
|
+
(isError && errorMessage || leftHelperText || rightHelperText) && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_react14.Box, { display: "flex", width: "full", justifyContent: justifyHelper, children: [
|
830
|
+
!isError ? leftHelperText && (typeof leftHelperText === "string" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react14.FormHelperText, { fontSize: "text.xs", color: helperColor, mt: 1, children: leftHelperText }) : leftHelperText) : typeof errorMessage === "string" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react14.FormErrorMessage, { fontSize: "text.xs", color: "danger.500", mt: 1, children: errorMessage }) : errorMessage,
|
831
|
+
rightHelperText && (typeof rightHelperText === "string" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react14.FormHelperText, { fontSize: "text.xs", color: helperColor, mt: 1, children: rightHelperText }) : rightHelperText)
|
815
832
|
] })
|
816
833
|
] });
|
817
834
|
};
|
@@ -828,10 +845,10 @@ Field.defaultProps = {
|
|
828
845
|
var field_default = Field;
|
829
846
|
|
830
847
|
// src/components/checkbox/components/checkbox-group.tsx
|
831
|
-
var
|
848
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
832
849
|
function CheckboxGroupComponent(props) {
|
833
850
|
const { children, label, helpText, isError, errorMessage, ...rest } = props;
|
834
|
-
return /* @__PURE__ */ (0,
|
851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(field_default, { ...rest, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react15.Box, { mt: "12px", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react15.CheckboxGroup, { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react15.Stack, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
|
835
852
|
}
|
836
853
|
CheckboxGroupComponent.defaultProps = {
|
837
854
|
helpText: "",
|
@@ -841,25 +858,25 @@ CheckboxGroupComponent.defaultProps = {
|
|
841
858
|
var checkbox_group_default = CheckboxGroupComponent;
|
842
859
|
|
843
860
|
// src/components/checkbox/index.ts
|
844
|
-
var
|
861
|
+
var import_react16 = require("@chakra-ui/react");
|
845
862
|
|
846
863
|
// src/components/chips/components/chips.tsx
|
847
|
-
var
|
848
|
-
var
|
849
|
-
var
|
850
|
-
var
|
864
|
+
var import_react17 = require("@chakra-ui/react");
|
865
|
+
var import_internal_icon4 = require("@ctlyst.id/internal-icon");
|
866
|
+
var import_react18 = require("react");
|
867
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
851
868
|
var Chips = ({ children, ...rest }) => {
|
852
869
|
const { isActive, isDisabled, onClose } = rest;
|
853
|
-
const styles = (0,
|
854
|
-
const closeColor = (0,
|
870
|
+
const styles = (0, import_react17.useStyleConfig)("Chips", rest);
|
871
|
+
const closeColor = (0, import_react18.useMemo)(() => {
|
855
872
|
if (isActive) return "white.high";
|
856
873
|
if (isDisabled) return "black.low";
|
857
874
|
return "primary.500";
|
858
875
|
}, [isActive, isDisabled]);
|
859
|
-
return /* @__PURE__ */ (0,
|
876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_react17.Box, { __css: styles, display: "inline-flex", alignItems: "center", justifyContent: "center", ...rest, children: [
|
860
877
|
children,
|
861
|
-
onClose && /* @__PURE__ */ (0,
|
862
|
-
|
878
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
879
|
+
import_react17.Box,
|
863
880
|
{
|
864
881
|
onClick: isDisabled ? void 0 : onClose,
|
865
882
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
@@ -867,7 +884,7 @@ var Chips = ({ children, ...rest }) => {
|
|
867
884
|
display: "flex",
|
868
885
|
alignItems: "center",
|
869
886
|
justifyContent: "center",
|
870
|
-
children: /* @__PURE__ */ (0,
|
887
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_internal_icon4.Close, { color: closeColor, size: 4 })
|
871
888
|
}
|
872
889
|
)
|
873
890
|
] });
|
@@ -882,30 +899,30 @@ Chips.defaultProps = {
|
|
882
899
|
var chips_default = Chips;
|
883
900
|
|
884
901
|
// src/components/counter/components/counter.tsx
|
885
|
-
var
|
902
|
+
var import_react28 = require("@chakra-ui/react");
|
886
903
|
var import_fi2 = require("react-icons/fi");
|
887
904
|
|
888
905
|
// src/components/form/components/input-addon.tsx
|
889
|
-
var
|
890
|
-
var
|
906
|
+
var import_react19 = require("@chakra-ui/react");
|
907
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
891
908
|
var InputAddonLeft = ({ children }) => {
|
892
|
-
return /* @__PURE__ */ (0,
|
909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react19.InputLeftAddon, { backgroundColor: "neutral.200", px: 3, py: 2.5, style: { border: 0, marginInlineEnd: 0 }, children });
|
893
910
|
};
|
894
911
|
var InputAddonRight = ({ children }) => {
|
895
|
-
return /* @__PURE__ */ (0,
|
912
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react19.InputRightAddon, { backgroundColor: "neutral.200", px: 3, py: 2.5, style: { border: 0, marginInlineStart: 0 }, children });
|
896
913
|
};
|
897
914
|
|
898
915
|
// src/components/form/components/input-element.tsx
|
899
|
-
var import_react19 = require("@chakra-ui/react");
|
900
916
|
var import_react20 = require("@chakra-ui/react");
|
917
|
+
var import_react21 = require("@chakra-ui/react");
|
901
918
|
|
902
919
|
// src/components/form/components/input-field.tsx
|
903
|
-
var
|
904
|
-
var
|
905
|
-
var
|
920
|
+
var import_react23 = require("@chakra-ui/react");
|
921
|
+
var import_internal_icon5 = require("@ctlyst.id/internal-icon");
|
922
|
+
var import_react24 = __toESM(require("react"));
|
906
923
|
|
907
924
|
// src/components/form/styles/input-field.ts
|
908
|
-
var
|
925
|
+
var import_react22 = require("@chakra-ui/react");
|
909
926
|
var getProperties = (props) => {
|
910
927
|
const { isError, isDisabled, isSuccess } = props;
|
911
928
|
let outlineColor = "neutral.400";
|
@@ -932,13 +949,13 @@ var getWrapperStyle = (props) => {
|
|
932
949
|
borderColor: focusColor
|
933
950
|
}
|
934
951
|
};
|
935
|
-
return (0,
|
952
|
+
return (0, import_react22.defineStyle)(style);
|
936
953
|
};
|
937
954
|
var input_field_default = getWrapperStyle;
|
938
955
|
|
939
956
|
// src/components/form/components/input-field.tsx
|
940
|
-
var
|
941
|
-
var InputField =
|
957
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
958
|
+
var InputField = import_react24.default.forwardRef((props, ref) => {
|
942
959
|
const {
|
943
960
|
value,
|
944
961
|
type,
|
@@ -959,20 +976,20 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
959
976
|
...inputProps
|
960
977
|
} = props;
|
961
978
|
const wrapperStyle = input_field_default(props);
|
962
|
-
const [isShowPassword, setIsShowPassword] = (0,
|
963
|
-
const inputType = (0,
|
979
|
+
const [isShowPassword, setIsShowPassword] = (0, import_react24.useState)(false);
|
980
|
+
const inputType = (0, import_react24.useMemo)(() => {
|
964
981
|
return type === "password" && isShowPassword ? "text" : type;
|
965
982
|
}, [isShowPassword, type]);
|
966
|
-
const fontSize = (0,
|
983
|
+
const fontSize = (0, import_react24.useMemo)(() => {
|
967
984
|
if (type === "password") {
|
968
985
|
if (!isShowPassword && value) return "text.xl";
|
969
986
|
}
|
970
987
|
return "text.sm";
|
971
988
|
}, [isShowPassword, type, value]);
|
972
|
-
const iconColor = (0,
|
989
|
+
const iconColor = (0, import_react24.useMemo)(() => {
|
973
990
|
return isDisabled ? "black.low" : "black.medium";
|
974
991
|
}, [isDisabled]);
|
975
|
-
return /* @__PURE__ */ (0,
|
992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
976
993
|
field_default,
|
977
994
|
{
|
978
995
|
label,
|
@@ -982,8 +999,8 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
982
999
|
leftHelperText,
|
983
1000
|
rightHelperText,
|
984
1001
|
isRequired,
|
985
|
-
children: /* @__PURE__ */ (0,
|
986
|
-
|
1002
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react23.Box, { __css: wrapperStyle, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
1003
|
+
import_react23.InputGroup,
|
987
1004
|
{
|
988
1005
|
size: size2,
|
989
1006
|
borderRadius: "sm",
|
@@ -991,8 +1008,8 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
991
1008
|
cursor: isDisabled ? "not-allowed" : "default",
|
992
1009
|
children: [
|
993
1010
|
addOnLeft,
|
994
|
-
/* @__PURE__ */ (0,
|
995
|
-
|
1011
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1012
|
+
import_react23.Input,
|
996
1013
|
{
|
997
1014
|
ref,
|
998
1015
|
type: inputType,
|
@@ -1003,8 +1020,8 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
1003
1020
|
fontSize
|
1004
1021
|
}
|
1005
1022
|
),
|
1006
|
-
(withClear || isLoading || type === "password") && /* @__PURE__ */ (0,
|
1007
|
-
|
1023
|
+
(withClear || isLoading || type === "password") && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
1024
|
+
import_react23.Box,
|
1008
1025
|
{
|
1009
1026
|
"data-test-id": "CT_Component_ClearInput",
|
1010
1027
|
display: "flex",
|
@@ -1013,18 +1030,18 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
1013
1030
|
width: "16px",
|
1014
1031
|
mr: "10px",
|
1015
1032
|
children: [
|
1016
|
-
withClear && !isLoading && /* @__PURE__ */ (0,
|
1017
|
-
|
1033
|
+
withClear && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1034
|
+
import_react23.Box,
|
1018
1035
|
{
|
1019
1036
|
display: "flex",
|
1020
1037
|
justifyContent: "center",
|
1021
1038
|
onClick: !isDisabled ? onClear : void 0,
|
1022
1039
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
1023
|
-
children: /* @__PURE__ */ (0,
|
1040
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_internal_icon5.Close, { size: 4, color: iconColor })
|
1024
1041
|
}
|
1025
1042
|
),
|
1026
|
-
type === "password" && !isShowPassword && !isLoading && /* @__PURE__ */ (0,
|
1027
|
-
|
1043
|
+
type === "password" && !isShowPassword && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1044
|
+
import_react23.Box,
|
1028
1045
|
{
|
1029
1046
|
"data-test-id": "q2Bj2G4FlamXyHuRKMZ1Q",
|
1030
1047
|
onClick: () => {
|
@@ -1033,11 +1050,11 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
1033
1050
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
1034
1051
|
display: "flex",
|
1035
1052
|
justifyContent: "center",
|
1036
|
-
children: /* @__PURE__ */ (0,
|
1053
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_internal_icon5.EyeOff, { size: 4, color: iconColor })
|
1037
1054
|
}
|
1038
1055
|
),
|
1039
|
-
type === "password" && isShowPassword && !isLoading && /* @__PURE__ */ (0,
|
1040
|
-
|
1056
|
+
type === "password" && isShowPassword && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1057
|
+
import_react23.Box,
|
1041
1058
|
{
|
1042
1059
|
"data-test-id": "sfc2388bmeXBmdla45Ibk",
|
1043
1060
|
onClick: () => {
|
@@ -1046,10 +1063,10 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
1046
1063
|
cursor: isDisabled ? "not-allowed" : "pointer",
|
1047
1064
|
display: "flex",
|
1048
1065
|
justifyContent: "center",
|
1049
|
-
children: /* @__PURE__ */ (0,
|
1066
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_internal_icon5.Eye, { size: 4, color: iconColor })
|
1050
1067
|
}
|
1051
1068
|
),
|
1052
|
-
isLoading && /* @__PURE__ */ (0,
|
1069
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(loader_default, { size: "sm" })
|
1053
1070
|
]
|
1054
1071
|
}
|
1055
1072
|
),
|
@@ -1070,14 +1087,14 @@ InputField.defaultProps = {
|
|
1070
1087
|
var input_field_default2 = InputField;
|
1071
1088
|
|
1072
1089
|
// src/components/form/components/textarea.tsx
|
1073
|
-
var
|
1074
|
-
var
|
1075
|
-
var
|
1076
|
-
var TextareaField =
|
1090
|
+
var import_react25 = require("@chakra-ui/react");
|
1091
|
+
var import_react26 = __toESM(require("react"));
|
1092
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
1093
|
+
var TextareaField = import_react26.default.forwardRef((props, ref) => {
|
1077
1094
|
const { value, isLoading, ...inputProps } = props;
|
1078
|
-
return /* @__PURE__ */ (0,
|
1079
|
-
/* @__PURE__ */ (0,
|
1080
|
-
isLoading && /* @__PURE__ */ (0,
|
1095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(field_default, { ...inputProps, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_react25.Box, { position: "relative", children: [
|
1096
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react25.Textarea, { ref, value, ...inputProps }),
|
1097
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react25.Box, { zIndex: 999, top: 2, right: 2, position: "absolute", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(loader_default, { size: "sm" }) })
|
1081
1098
|
] }) });
|
1082
1099
|
});
|
1083
1100
|
TextareaField.defaultProps = {
|
@@ -1086,10 +1103,10 @@ TextareaField.defaultProps = {
|
|
1086
1103
|
var textarea_default = TextareaField;
|
1087
1104
|
|
1088
1105
|
// src/components/form/index.ts
|
1089
|
-
var
|
1106
|
+
var import_react27 = require("@chakra-ui/react");
|
1090
1107
|
|
1091
1108
|
// src/components/counter/components/counter.tsx
|
1092
|
-
var
|
1109
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
1093
1110
|
var Counter = ({
|
1094
1111
|
value,
|
1095
1112
|
size: size2 = "xs",
|
@@ -1117,20 +1134,20 @@ var Counter = ({
|
|
1117
1134
|
const handleChange = (e) => {
|
1118
1135
|
onChange(+e.target.value);
|
1119
1136
|
};
|
1120
|
-
return /* @__PURE__ */ (0,
|
1121
|
-
/* @__PURE__ */ (0,
|
1122
|
-
/* @__PURE__ */ (0,
|
1123
|
-
|
1137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react28.Box, { children: [
|
1138
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react28.HStack, { gap: "1", children: [
|
1139
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
1140
|
+
import_react28.IconButton,
|
1124
1141
|
{
|
1125
1142
|
"aria-label": "minus",
|
1126
1143
|
"data-test-id": "CT_Component_Counter_decrement",
|
1127
1144
|
onClick: decrement,
|
1128
1145
|
isDisabled: disabled || +value <= min,
|
1129
1146
|
size: size2,
|
1130
|
-
icon: /* @__PURE__ */ (0,
|
1147
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_fi2.FiMinus, {})
|
1131
1148
|
}
|
1132
1149
|
),
|
1133
|
-
/* @__PURE__ */ (0,
|
1150
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
1134
1151
|
input_field_default2,
|
1135
1152
|
{
|
1136
1153
|
"data-test-id": "CT_Component_Counter_input",
|
@@ -1144,47 +1161,74 @@ var Counter = ({
|
|
1144
1161
|
onChange: handleChange,
|
1145
1162
|
isReadOnly,
|
1146
1163
|
width: 12,
|
1147
|
-
type: "number"
|
1164
|
+
type: "number",
|
1165
|
+
borderColor: "neutral.200"
|
1148
1166
|
}
|
1149
1167
|
),
|
1150
|
-
/* @__PURE__ */ (0,
|
1151
|
-
|
1168
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
1169
|
+
import_react28.IconButton,
|
1152
1170
|
{
|
1153
1171
|
"aria-label": "plus",
|
1154
1172
|
"data-test-id": "CT_Component_Counter_decrement",
|
1155
1173
|
onClick: increment,
|
1156
1174
|
isDisabled: disabled || +value >= max,
|
1157
1175
|
size: size2,
|
1158
|
-
icon: /* @__PURE__ */ (0,
|
1176
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_fi2.FiPlus, {})
|
1159
1177
|
}
|
1160
1178
|
)
|
1161
1179
|
] }),
|
1162
|
-
!isError ? /* @__PURE__ */ (0,
|
1180
|
+
!isError ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react28.Text, { mt: 1, color: "black.medium", textStyle: "text.xs", children: helperText }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react28.Text, { mt: 1, color: "danger.500", textStyle: "text.xs", children: error })
|
1163
1181
|
] });
|
1164
1182
|
};
|
1165
1183
|
var counter_default = Counter;
|
1166
1184
|
|
1167
1185
|
// src/components/data-table/components/data-table.tsx
|
1168
1186
|
var import_icons2 = require("@chakra-ui/icons");
|
1169
|
-
var
|
1170
|
-
var
|
1187
|
+
var import_react29 = require("@chakra-ui/react");
|
1188
|
+
var import_react30 = require("@emotion/react");
|
1171
1189
|
var import_react_table = require("@tanstack/react-table");
|
1172
1190
|
var React5 = __toESM(require("react"));
|
1173
|
-
var
|
1174
|
-
var
|
1191
|
+
var import_react31 = require("react");
|
1192
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
1175
1193
|
var getCommonPinningStyles = (column) => {
|
1176
1194
|
const isPinned = column.getIsPinned();
|
1177
1195
|
const isLastLeftPinnedColumn = isPinned === "left" && column.getIsLastColumn("left");
|
1178
1196
|
const isFirstRightPinnedColumn = isPinned === "right" && column.getIsFirstColumn("right");
|
1179
1197
|
return {
|
1180
|
-
// eslint-disable-next-line no-nested-ternary
|
1181
|
-
boxShadow: isLastLeftPinnedColumn ? "-4px 0 4px -4px gray inset" : isFirstRightPinnedColumn ? "4px 0 4px -4px gray inset" : void 0,
|
1182
1198
|
left: isPinned === "left" ? `${column.getStart("left")}px` : void 0,
|
1183
1199
|
right: isPinned === "right" ? `${column.getAfter("right")}px` : void 0,
|
1184
|
-
opacity: isPinned ? 0.95 : 1,
|
1185
1200
|
position: isPinned ? "sticky" : "relative",
|
1186
1201
|
width: column.getSize(),
|
1187
|
-
zIndex: isPinned ? 1 : 0
|
1202
|
+
zIndex: isPinned ? 1 : 0,
|
1203
|
+
backgroundColor: "white",
|
1204
|
+
...isLastLeftPinnedColumn ? {
|
1205
|
+
padding: 0,
|
1206
|
+
"&:after": {
|
1207
|
+
content: "''",
|
1208
|
+
position: "absolute",
|
1209
|
+
width: "20%",
|
1210
|
+
height: "100%",
|
1211
|
+
right: "0px",
|
1212
|
+
top: 0,
|
1213
|
+
zIndex: -1,
|
1214
|
+
boxShadow: "-10px 0px 20px 10px #00000010",
|
1215
|
+
clipPath: "inset(0px -38px 0px 0px)"
|
1216
|
+
}
|
1217
|
+
} : {},
|
1218
|
+
...isFirstRightPinnedColumn ? {
|
1219
|
+
padding: "0px 0px 0px 8px",
|
1220
|
+
"&:after": {
|
1221
|
+
content: "''",
|
1222
|
+
position: "absolute",
|
1223
|
+
width: "20%",
|
1224
|
+
height: "100%",
|
1225
|
+
left: "0%",
|
1226
|
+
top: 0,
|
1227
|
+
zIndex: -1,
|
1228
|
+
boxShadow: "10px 0px 20px 10px #00000010",
|
1229
|
+
clipPath: "inset(0px 0px 0px -38px )"
|
1230
|
+
}
|
1231
|
+
} : {}
|
1188
1232
|
};
|
1189
1233
|
};
|
1190
1234
|
var useDataTable = ({
|
@@ -1207,8 +1251,8 @@ var useDataTable = ({
|
|
1207
1251
|
{
|
1208
1252
|
id: "select",
|
1209
1253
|
size: 32,
|
1210
|
-
header: ({ table: table2 }) => /* @__PURE__ */ (0,
|
1211
|
-
|
1254
|
+
header: ({ table: table2 }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1255
|
+
import_react29.Checkbox,
|
1212
1256
|
{
|
1213
1257
|
"data-test-id": "select-header-data-table",
|
1214
1258
|
...{
|
@@ -1218,8 +1262,8 @@ var useDataTable = ({
|
|
1218
1262
|
}
|
1219
1263
|
}
|
1220
1264
|
),
|
1221
|
-
cell: ({ row }) => /* @__PURE__ */ (0,
|
1222
|
-
|
1265
|
+
cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1266
|
+
import_react29.Checkbox,
|
1223
1267
|
{
|
1224
1268
|
"data-test-id": `select-data-table-${row.index}`,
|
1225
1269
|
...{
|
@@ -1281,21 +1325,21 @@ var useDataTable = ({
|
|
1281
1325
|
};
|
1282
1326
|
};
|
1283
1327
|
var DataTable = React5.forwardRef((props, ref) => {
|
1284
|
-
const { isLoading, styles, headerSticky, onRowClick } = props;
|
1328
|
+
const { isLoading, styles, headerSticky, onRowClick, container } = props;
|
1285
1329
|
const { table, toggleAllRowsSelected, generateColumn } = useDataTable(props);
|
1286
1330
|
React5.useImperativeHandle(ref, () => ({
|
1287
1331
|
toggleAllRowsSelected
|
1288
1332
|
}));
|
1289
|
-
return /* @__PURE__ */ (0,
|
1290
|
-
isLoading && /* @__PURE__ */ (0,
|
1291
|
-
/* @__PURE__ */ (0,
|
1292
|
-
|
1333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react29.Box, { overflowX: "auto", position: "relative", maxW: "100%", minH: 400, w: "full", ...container, children: [
|
1334
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react29.Table, { ...styles == null ? void 0 : styles.table, children: [
|
1335
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Tr, { mx: "2", ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1336
|
+
import_react29.Th,
|
1293
1337
|
{
|
1294
1338
|
colSpan: header.colSpan,
|
1295
1339
|
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1296
1340
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
1297
|
-
children: /* @__PURE__ */ (0,
|
1298
|
-
|
1341
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1342
|
+
import_react29.Flex,
|
1299
1343
|
{
|
1300
1344
|
"data-test-id": "CT_component_data-table_loader",
|
1301
1345
|
textTransform: "capitalize",
|
@@ -1307,39 +1351,41 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1307
1351
|
},
|
1308
1352
|
header.id
|
1309
1353
|
)) }, headerGroup.id)) }),
|
1310
|
-
/* @__PURE__ */ (0,
|
1354
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Tbody, { children: [...Array(5)].map((num) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Tr, { mx: "2", children: [...Array(generateColumn().length)].map((i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Td, { width: 210, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Skeleton, { startColor: "gray.50", endColor: "gray.100", h: "30px", w: "100%" }, i) }, i)) }, num)) })
|
1311
1355
|
] }),
|
1312
|
-
/* @__PURE__ */ (0,
|
1313
|
-
/* @__PURE__ */ (0,
|
1356
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react29.Table, { ...styles == null ? void 0 : styles.table, children: [
|
1357
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Tr, { bg: (0, import_react29.useColorModeValue)("initial", "ebony-clay.700"), ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => {
|
1314
1358
|
var _a;
|
1315
|
-
return /* @__PURE__ */ (0,
|
1316
|
-
|
1359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1360
|
+
import_react29.Th,
|
1317
1361
|
{
|
1318
1362
|
colSpan: header.colSpan,
|
1319
1363
|
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1320
|
-
|
1364
|
+
sx: getCommonPinningStyles(header.column),
|
1321
1365
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
1322
|
-
children: /* @__PURE__ */ (0,
|
1323
|
-
|
1366
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
1367
|
+
import_react29.Flex,
|
1324
1368
|
{
|
1369
|
+
backgroundColor: "white",
|
1370
|
+
height: "100%",
|
1325
1371
|
"data-test-id": `CT_Container_TableHeader_${header.id}`,
|
1326
1372
|
textTransform: "capitalize",
|
1327
1373
|
userSelect: "none",
|
1328
1374
|
align: "center",
|
1329
1375
|
gap: 2,
|
1330
1376
|
children: [
|
1331
|
-
/* @__PURE__ */ (0,
|
1332
|
-
/* @__PURE__ */ (0,
|
1333
|
-
|
1377
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Text, { children: (0, import_react_table.flexRender)(header.column.columnDef.header, header.getContext()) }),
|
1378
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1379
|
+
import_react29.Box,
|
1334
1380
|
{
|
1335
1381
|
as: "span",
|
1336
1382
|
cursor: header.column.getCanSort() ? "pointer" : "default",
|
1337
1383
|
"data-test-id": `CT_Container_SortingIcon_${header.id}`,
|
1338
1384
|
onClick: header.column.getToggleSortingHandler(),
|
1339
1385
|
children: (_a = header.column.getCanSort() && {
|
1340
|
-
asc: /* @__PURE__ */ (0,
|
1341
|
-
desc: /* @__PURE__ */ (0,
|
1342
|
-
}[header.column.getIsSorted()]) != null ? _a : /* @__PURE__ */ (0,
|
1386
|
+
asc: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.ChevronUpIcon, {}),
|
1387
|
+
desc: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.ChevronDownIcon, {})
|
1388
|
+
}[header.column.getIsSorted()]) != null ? _a : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_icons2.UpDownIcon, { h: 2 })
|
1343
1389
|
}
|
1344
1390
|
)
|
1345
1391
|
]
|
@@ -1349,16 +1395,16 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1349
1395
|
header.id
|
1350
1396
|
);
|
1351
1397
|
}) }, headerGroup.id)) }),
|
1352
|
-
/* @__PURE__ */ (0,
|
1353
|
-
const trRef = (0,
|
1354
|
-
return /* @__PURE__ */ (0,
|
1355
|
-
|
1398
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Tbody, { ...styles == null ? void 0 : styles.tableBody, children: table.getRowModel().rows.map((row) => {
|
1399
|
+
const trRef = (0, import_react31.useRef)();
|
1400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1401
|
+
import_react29.Tr,
|
1356
1402
|
{
|
1357
1403
|
"data-test-id": "-RU0hNYGRzeVM3HQ4cXHl",
|
1358
1404
|
tabindex: "0",
|
1359
1405
|
ref: trRef,
|
1360
1406
|
...styles == null ? void 0 : styles.tableRow,
|
1361
|
-
css:
|
1407
|
+
css: import_react30.css`
|
1362
1408
|
&:last-child {
|
1363
1409
|
td {
|
1364
1410
|
border-bottom: none;
|
@@ -1378,16 +1424,16 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1378
1424
|
onRowClick(row.original);
|
1379
1425
|
}
|
1380
1426
|
},
|
1381
|
-
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0,
|
1382
|
-
|
1427
|
+
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1428
|
+
import_react29.Td,
|
1383
1429
|
{
|
1384
1430
|
"data-test-id": `CT_Component_TableCell_${cell.id}`,
|
1385
1431
|
fontSize: "text.sm",
|
1386
|
-
color: (0,
|
1387
|
-
|
1432
|
+
color: (0, import_react29.useColorModeValue)("dark.800", "dark.300"),
|
1433
|
+
sx: getCommonPinningStyles(cell.column),
|
1388
1434
|
...styles == null ? void 0 : styles.tableCell,
|
1389
|
-
children: /* @__PURE__ */ (0,
|
1390
|
-
|
1435
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Flex, { height: "100%", backgroundColor: "white", align: "center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1436
|
+
import_react29.Box,
|
1391
1437
|
{
|
1392
1438
|
tabIndex: 0,
|
1393
1439
|
display: "inline-block",
|
@@ -1400,7 +1446,7 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1400
1446
|
},
|
1401
1447
|
children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext())
|
1402
1448
|
}
|
1403
|
-
)
|
1449
|
+
) })
|
1404
1450
|
},
|
1405
1451
|
cell.id
|
1406
1452
|
))
|
@@ -1412,12 +1458,8 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1412
1458
|
] });
|
1413
1459
|
});
|
1414
1460
|
DataTable.defaultProps = {
|
1461
|
+
container: void 0,
|
1415
1462
|
withSelectedRow: false,
|
1416
|
-
overflowX: "scroll",
|
1417
|
-
pos: "relative",
|
1418
|
-
maxW: "100%",
|
1419
|
-
minH: 400,
|
1420
|
-
w: "full",
|
1421
1463
|
styles: void 0,
|
1422
1464
|
isLoading: void 0,
|
1423
1465
|
onSelectedRow: void 0,
|
@@ -1432,19 +1474,19 @@ DataTable.defaultProps = {
|
|
1432
1474
|
var data_table_default = DataTable;
|
1433
1475
|
|
1434
1476
|
// src/components/datepicker/components/datepicker.tsx
|
1435
|
-
var
|
1477
|
+
var import_react35 = require("@chakra-ui/react");
|
1436
1478
|
var import_shared_utils8 = require("@chakra-ui/shared-utils");
|
1437
1479
|
var import_react_datepicker = __toESM(require("react-datepicker"));
|
1438
1480
|
var import_fi3 = require("react-icons/fi");
|
1439
1481
|
|
1440
1482
|
// src/components/datepicker/components/styles.tsx
|
1441
1483
|
var import_system6 = require("@chakra-ui/system");
|
1442
|
-
var
|
1443
|
-
var
|
1484
|
+
var import_react32 = require("@emotion/react");
|
1485
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
1444
1486
|
var Styles = () => {
|
1445
1487
|
const { colorMode } = (0, import_system6.useColorMode)();
|
1446
|
-
return /* @__PURE__ */ (0,
|
1447
|
-
|
1488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
1489
|
+
import_react32.Global,
|
1448
1490
|
{
|
1449
1491
|
styles: `
|
1450
1492
|
@charset "UTF-8";
|
@@ -2255,21 +2297,21 @@ var Styles = () => {
|
|
2255
2297
|
var styles_default = Styles;
|
2256
2298
|
|
2257
2299
|
// src/components/datepicker/components/time-input.tsx
|
2258
|
-
var
|
2259
|
-
var
|
2260
|
-
var
|
2300
|
+
var import_react33 = require("@chakra-ui/react");
|
2301
|
+
var import_react34 = __toESM(require("react"));
|
2302
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
2261
2303
|
var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
2262
|
-
const [time, setTime] =
|
2304
|
+
const [time, setTime] = import_react34.default.useState(value || "00:00");
|
2263
2305
|
const handleChange = (e) => {
|
2264
2306
|
var _a, _b;
|
2265
2307
|
setTime(((_a = e.target) == null ? void 0 : _a.value) || "00:00");
|
2266
2308
|
if (onChange) onChange(((_b = e.target) == null ? void 0 : _b.value) || "00:00");
|
2267
2309
|
};
|
2268
|
-
return /* @__PURE__ */ (0,
|
2269
|
-
/* @__PURE__ */ (0,
|
2270
|
-
/* @__PURE__ */ (0,
|
2271
|
-
/* @__PURE__ */ (0,
|
2272
|
-
rightAddon && /* @__PURE__ */ (0,
|
2310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react33.Flex, { flexDir: "column", alignItems: "center", justifyContent: "center", p: 4, pt: 0, children: [
|
2311
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react33.Text, { mb: 2, children: label }),
|
2312
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react33.InputGroup, { alignItems: "center", justifyContent: "center", children: [
|
2313
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react33.Input, { onChange: handleChange, type: "time", value: time, "data-test-id": "CT_Component_datepicker_input_time" }),
|
2314
|
+
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react33.InputRightAddon, { children: rightAddon })
|
2273
2315
|
] })
|
2274
2316
|
] });
|
2275
2317
|
};
|
@@ -2283,7 +2325,7 @@ TimeInput.defaultProps = {
|
|
2283
2325
|
var time_input_default = TimeInput;
|
2284
2326
|
|
2285
2327
|
// src/components/datepicker/components/datepicker.tsx
|
2286
|
-
var
|
2328
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
2287
2329
|
var Datepicker = ({
|
2288
2330
|
id,
|
2289
2331
|
label,
|
@@ -2308,18 +2350,18 @@ var Datepicker = ({
|
|
2308
2350
|
return {
|
2309
2351
|
timeInputLabel: "",
|
2310
2352
|
showTimeInput: true,
|
2311
|
-
customTimeInput: /* @__PURE__ */ (0,
|
2353
|
+
customTimeInput: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(time_input_default, {})
|
2312
2354
|
};
|
2313
2355
|
};
|
2314
|
-
const component = /* @__PURE__ */ (0,
|
2315
|
-
/* @__PURE__ */ (0,
|
2316
|
-
/* @__PURE__ */ (0,
|
2356
|
+
const component = /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
|
2357
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(styles_default, {}),
|
2358
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
2317
2359
|
import_react_datepicker.default,
|
2318
2360
|
{
|
2319
2361
|
id,
|
2320
2362
|
name,
|
2321
2363
|
selected,
|
2322
|
-
customInput: /* @__PURE__ */ (0,
|
2364
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react35.Input, { autoComplete: "off", ...wrapperStyle }),
|
2323
2365
|
dateFormat,
|
2324
2366
|
showPopperArrow: false,
|
2325
2367
|
calendarClassName: (0, import_shared_utils8.cx)({ inline: props.inline }),
|
@@ -2333,16 +2375,16 @@ var Datepicker = ({
|
|
2333
2375
|
if (props.inline) {
|
2334
2376
|
return component;
|
2335
2377
|
}
|
2336
|
-
return /* @__PURE__ */ (0,
|
2337
|
-
label && /* @__PURE__ */ (0,
|
2338
|
-
/* @__PURE__ */ (0,
|
2378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react35.FormControl, { isRequired, "data-test-id": "CT_Component_datepicker_wrapper", isInvalid: isError, children: [
|
2379
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react35.FormLabel, { fontSize: "text.sm", children: label }),
|
2380
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react35.InputGroup, { children: [
|
2339
2381
|
component,
|
2340
|
-
/* @__PURE__ */ (0,
|
2341
|
-
!value && /* @__PURE__ */ (0,
|
2342
|
-
value && /* @__PURE__ */ (0,
|
2382
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react35.InputRightElement, { children: [
|
2383
|
+
!value && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_fi3.FiCalendar, {}),
|
2384
|
+
value && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_fi3.FiX, { "data-test-id": "bcpJJyCP0z_RIAGZXDU6s", onClick: onClear, cursor: "pointer" })
|
2343
2385
|
] })
|
2344
2386
|
] }),
|
2345
|
-
!isError ? /* @__PURE__ */ (0,
|
2387
|
+
!isError ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react35.FormHelperText, { fontSize: "text.xs", mt: 1, children: helperText }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react35.FormErrorMessage, { fontSize: "text.xs", mt: 1, children: error })
|
2346
2388
|
] });
|
2347
2389
|
};
|
2348
2390
|
Datepicker.defaultProps = {
|
@@ -2360,18 +2402,18 @@ Datepicker.defaultProps = {
|
|
2360
2402
|
var datepicker_default = Datepicker;
|
2361
2403
|
|
2362
2404
|
// src/components/datepicker/components/datepicker-month/datepicker-month.tsx
|
2363
|
-
var
|
2364
|
-
var
|
2365
|
-
var
|
2366
|
-
var
|
2405
|
+
var import_react36 = require("@chakra-ui/react");
|
2406
|
+
var import_react37 = require("@emotion/react");
|
2407
|
+
var import_react38 = __toESM(require("react"));
|
2408
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
2367
2409
|
var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
2368
|
-
const [date, setDate] =
|
2369
|
-
return /* @__PURE__ */ (0,
|
2370
|
-
|
2410
|
+
const [date, setDate] = import_react38.default.useState(null);
|
2411
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
2412
|
+
import_react36.Box,
|
2371
2413
|
{
|
2372
2414
|
fontSize: "12px",
|
2373
2415
|
lineHeight: "18px",
|
2374
|
-
css:
|
2416
|
+
css: import_react37.css`
|
2375
2417
|
input[type='date']::-webkit-inner-spin-button,
|
2376
2418
|
input[type='date']::-webkit-calendar-picker-indicator {
|
2377
2419
|
display: none;
|
@@ -2381,8 +2423,8 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
2381
2423
|
width: 58px;
|
2382
2424
|
}
|
2383
2425
|
`,
|
2384
|
-
children: /* @__PURE__ */ (0,
|
2385
|
-
|
2426
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
2427
|
+
import_react36.Input,
|
2386
2428
|
{
|
2387
2429
|
"data-test-id": props["data-test-id"],
|
2388
2430
|
type: "date",
|
@@ -2395,7 +2437,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
2395
2437
|
min,
|
2396
2438
|
max,
|
2397
2439
|
required: true,
|
2398
|
-
css:
|
2440
|
+
css: import_react37.css`
|
2399
2441
|
border: 1px solid transparent;
|
2400
2442
|
|
2401
2443
|
&:focus,
|
@@ -2419,11 +2461,11 @@ DatePickerMonth.defaultProps = {
|
|
2419
2461
|
var datepicker_month_default = DatePickerMonth;
|
2420
2462
|
|
2421
2463
|
// src/components/datepicker/components/datepicker-month/multi-datepicker-month.tsx
|
2422
|
-
var
|
2464
|
+
var import_react39 = require("@chakra-ui/react");
|
2423
2465
|
var import_styled = __toESM(require("@emotion/styled"));
|
2424
|
-
var
|
2425
|
-
var
|
2426
|
-
var MultiDateWrapper = (0, import_styled.default)(
|
2466
|
+
var import_react40 = __toESM(require("react"));
|
2467
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
2468
|
+
var MultiDateWrapper = (0, import_styled.default)(import_react39.Box)`
|
2427
2469
|
display: flex;
|
2428
2470
|
align-items: center;
|
2429
2471
|
width: fit-content;
|
@@ -2438,9 +2480,9 @@ var MultiDatePickerMonth = ({
|
|
2438
2480
|
min = "2020-01-01",
|
2439
2481
|
max = "2020-12-31"
|
2440
2482
|
}) => {
|
2441
|
-
const [date, setDate] =
|
2442
|
-
return /* @__PURE__ */ (0,
|
2443
|
-
/* @__PURE__ */ (0,
|
2483
|
+
const [date, setDate] = import_react40.default.useState([null, null]);
|
2484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(MultiDateWrapper, { isError, children: [
|
2485
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
2444
2486
|
datepicker_month_default,
|
2445
2487
|
{
|
2446
2488
|
"data-test-id": "CT_DatePickerMonth_StartDate",
|
@@ -2452,8 +2494,8 @@ var MultiDatePickerMonth = ({
|
|
2452
2494
|
max
|
2453
2495
|
}
|
2454
2496
|
),
|
2455
|
-
/* @__PURE__ */ (0,
|
2456
|
-
/* @__PURE__ */ (0,
|
2497
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react39.Box, { children: "-" }),
|
2498
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
2457
2499
|
datepicker_month_default,
|
2458
2500
|
{
|
2459
2501
|
"data-test-id": "CT_DatePickerMonth_EndDate",
|
@@ -2475,8 +2517,8 @@ MultiDatePickerMonth.defaultProps = {
|
|
2475
2517
|
var multi_datepicker_month_default = MultiDatePickerMonth;
|
2476
2518
|
|
2477
2519
|
// src/components/dialog/components/dialog.tsx
|
2478
|
-
var
|
2479
|
-
var
|
2520
|
+
var import_react41 = require("@chakra-ui/react");
|
2521
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
2480
2522
|
var Dialog = ({
|
2481
2523
|
title,
|
2482
2524
|
content,
|
@@ -2486,12 +2528,12 @@ var Dialog = ({
|
|
2486
2528
|
isOverlayClickable,
|
2487
2529
|
...props
|
2488
2530
|
}) => {
|
2489
|
-
return /* @__PURE__ */ (0,
|
2490
|
-
isModalOverlay && /* @__PURE__ */ (0,
|
2491
|
-
/* @__PURE__ */ (0,
|
2492
|
-
/* @__PURE__ */ (0,
|
2493
|
-
/* @__PURE__ */ (0,
|
2494
|
-
/* @__PURE__ */ (0,
|
2531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react41.Modal, { ...props, children: [
|
2532
|
+
isModalOverlay && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.ModalOverlay, { pointerEvents: isOverlayClickable ? "auto" : "none" }),
|
2533
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react41.ModalContent, { bgColor: "neutral.50", fontFamily: "Poppins", width, minW: "400px", children: [
|
2534
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.ModalHeader, { bgColor: "neutral.200", py: 2, px: 4, borderTopRadius: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.Text, { textStyle: "text.lg", fontWeight: "normal", children: title }) }),
|
2535
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.ModalBody, { p: 4, textStyle: "text.md", children: content }),
|
2536
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.ModalFooter, { bgColor: "neutral.200", p: 4, borderBottomRadius: "sm", children: footer })
|
2495
2537
|
] })
|
2496
2538
|
] });
|
2497
2539
|
};
|
@@ -2503,15 +2545,15 @@ Dialog.defaultProps = {
|
|
2503
2545
|
var dialog_default = Dialog;
|
2504
2546
|
|
2505
2547
|
// src/components/header/components/header.tsx
|
2506
|
-
var
|
2548
|
+
var import_react46 = require("@chakra-ui/react");
|
2507
2549
|
|
2508
2550
|
// src/components/header/components/logo.tsx
|
2509
|
-
var
|
2510
|
-
var
|
2551
|
+
var import_react42 = require("@chakra-ui/react");
|
2552
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
2511
2553
|
var Logo = ({ url, imageUrl, height }) => {
|
2512
2554
|
if (url)
|
2513
|
-
return /* @__PURE__ */ (0,
|
2514
|
-
return /* @__PURE__ */ (0,
|
2555
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.Box, { as: "a", href: url, cursor: "pointer", target: "_self", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.Image, { w: "100%", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl }) });
|
2556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react42.Image, { w: "100%", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl });
|
2515
2557
|
};
|
2516
2558
|
Logo.defaultProps = {
|
2517
2559
|
url: void 0,
|
@@ -2519,15 +2561,15 @@ Logo.defaultProps = {
|
|
2519
2561
|
};
|
2520
2562
|
|
2521
2563
|
// src/components/header/components/profile.tsx
|
2522
|
-
var
|
2564
|
+
var import_react43 = require("@chakra-ui/react");
|
2523
2565
|
var import_fi4 = require("react-icons/fi");
|
2524
|
-
var
|
2566
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
2525
2567
|
var Profile = ({ color, brandColor, data, onLogout }) => {
|
2526
2568
|
var _a;
|
2527
|
-
const { isOpen, onToggle, onClose } = (0,
|
2528
|
-
return /* @__PURE__ */ (0,
|
2529
|
-
/* @__PURE__ */ (0,
|
2530
|
-
|
2569
|
+
const { isOpen, onToggle, onClose } = (0, import_react43.useDisclosure)();
|
2570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react43.Popover, { placement: "bottom-end", isOpen, onClose, children: [
|
2571
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2572
|
+
import_react43.Box,
|
2531
2573
|
{
|
2532
2574
|
"data-test-id": "WE0UYbA93LOZy6S09IhDO",
|
2533
2575
|
as: "button",
|
@@ -2537,23 +2579,23 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
2537
2579
|
m: 0,
|
2538
2580
|
onClick: onToggle,
|
2539
2581
|
color,
|
2540
|
-
children: /* @__PURE__ */ (0,
|
2541
|
-
/* @__PURE__ */ (0,
|
2542
|
-
/* @__PURE__ */ (0,
|
2543
|
-
/* @__PURE__ */ (0,
|
2544
|
-
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0,
|
2545
|
-
/* @__PURE__ */ (0,
|
2546
|
-
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0,
|
2547
|
-
/* @__PURE__ */ (0,
|
2548
|
-
data.office.length > 1 && /* @__PURE__ */ (0,
|
2582
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react43.HStack, { children: [
|
2583
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react43.VStack, { alignItems: "flex-end", spacing: 0, ml: "2", color, children: [
|
2584
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.Text, { textStyle: "text.xs", mb: 1, children: data == null ? void 0 : data.email }),
|
2585
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react43.Flex, { alignItems: "center", children: [
|
2586
|
+
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.userRole) || "user" }),
|
2587
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.Box, { h: "3", mx: "1", borderLeft: "1px solid", borderColor: "neutral.400" }),
|
2588
|
+
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
2589
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.Text, { textStyle: "text.xs", children: data.office[0] }),
|
2590
|
+
data.office.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(badge_default, { ml: "1", pill: true, variant: "neutral-light", children: [
|
2549
2591
|
data.office.length - 1,
|
2550
2592
|
"+"
|
2551
2593
|
] })
|
2552
|
-
] }) : /* @__PURE__ */ (0,
|
2594
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.office) || "office" })
|
2553
2595
|
] })
|
2554
2596
|
] }),
|
2555
|
-
/* @__PURE__ */ (0,
|
2556
|
-
|
2597
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2598
|
+
import_react43.Avatar,
|
2557
2599
|
{
|
2558
2600
|
size: "sm",
|
2559
2601
|
bg: brandColor,
|
@@ -2568,10 +2610,10 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
2568
2610
|
] })
|
2569
2611
|
}
|
2570
2612
|
),
|
2571
|
-
/* @__PURE__ */ (0,
|
2572
|
-
/* @__PURE__ */ (0,
|
2573
|
-
/* @__PURE__ */ (0,
|
2574
|
-
|
2613
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react43.PopoverContent, { bg: "white", maxW: 200, children: [
|
2614
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.PopoverArrow, { bg: "white" }),
|
2615
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.PopoverBody, { p: 1, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
2616
|
+
import_react43.Flex,
|
2575
2617
|
{
|
2576
2618
|
"data-test-id": "gA7F9pucPX_Q3_dkgXIYZ",
|
2577
2619
|
alignItems: "center",
|
@@ -2579,12 +2621,12 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
2579
2621
|
py: 2,
|
2580
2622
|
borderRadius: "sm",
|
2581
2623
|
cursor: "pointer",
|
2582
|
-
_hover: { bg: (0,
|
2624
|
+
_hover: { bg: (0, import_react43.useColorModeValue)("primary.500", "mirage.900"), color: "white" },
|
2583
2625
|
onClick: onLogout,
|
2584
2626
|
textStyle: "text.xs",
|
2585
2627
|
children: [
|
2586
|
-
/* @__PURE__ */ (0,
|
2587
|
-
/* @__PURE__ */ (0,
|
2628
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_fi4.FiPower, {}),
|
2629
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react43.Text, { ml: 2, children: "Logout" })
|
2588
2630
|
]
|
2589
2631
|
}
|
2590
2632
|
) })
|
@@ -2600,17 +2642,17 @@ Profile.defaultProps = {
|
|
2600
2642
|
var profile_default = Profile;
|
2601
2643
|
|
2602
2644
|
// src/components/header/components/switch-mode.tsx
|
2603
|
-
var
|
2645
|
+
var import_react44 = require("@chakra-ui/react");
|
2604
2646
|
var import_fi5 = require("react-icons/fi");
|
2605
|
-
var
|
2647
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
2606
2648
|
var SwitchMode = () => {
|
2607
|
-
const { colorMode, toggleColorMode } = (0,
|
2608
|
-
return /* @__PURE__ */ (0,
|
2649
|
+
const { colorMode, toggleColorMode } = (0, import_react44.useColorMode)();
|
2650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react44.Box, { "data-test-id": "rhYuTDCiWkFqr96upiEEh", mx: 5, onClick: toggleColorMode, cursor: "pointer", children: colorMode === "light" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_fi5.FiMoon, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_fi5.FiSun, { size: 20 }) });
|
2609
2651
|
};
|
2610
2652
|
var switch_mode_default = SwitchMode;
|
2611
2653
|
|
2612
2654
|
// src/components/header/components/version.tsx
|
2613
|
-
var
|
2655
|
+
var import_react45 = require("@chakra-ui/react");
|
2614
2656
|
|
2615
2657
|
// src/components/header/utils/formatter.ts
|
2616
2658
|
function environmentName(env) {
|
@@ -2625,9 +2667,9 @@ function environmentName(env) {
|
|
2625
2667
|
}
|
2626
2668
|
|
2627
2669
|
// src/components/header/components/version.tsx
|
2628
|
-
var
|
2629
|
-
var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__PURE__ */ (0,
|
2630
|
-
version && /* @__PURE__ */ (0,
|
2670
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
2671
|
+
var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
2672
|
+
version && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
2631
2673
|
badge_default,
|
2632
2674
|
{
|
2633
2675
|
fontSize: "8px",
|
@@ -2638,8 +2680,8 @@ var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__P
|
|
2638
2680
|
children: version
|
2639
2681
|
}
|
2640
2682
|
),
|
2641
|
-
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ (0,
|
2642
|
-
|
2683
|
+
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
2684
|
+
import_react45.Box,
|
2643
2685
|
{
|
2644
2686
|
background: "primary.50",
|
2645
2687
|
color: "primary.500",
|
@@ -2661,7 +2703,7 @@ Version.defaultProps = {
|
|
2661
2703
|
var version_default = Version;
|
2662
2704
|
|
2663
2705
|
// src/components/header/components/header.tsx
|
2664
|
-
var
|
2706
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
2665
2707
|
var Header = ({
|
2666
2708
|
brandColor,
|
2667
2709
|
data,
|
@@ -2678,14 +2720,14 @@ var Header = ({
|
|
2678
2720
|
profile,
|
2679
2721
|
bg = "white",
|
2680
2722
|
...props
|
2681
|
-
}) => /* @__PURE__ */ (0,
|
2682
|
-
mainLogo && /* @__PURE__ */ (0,
|
2683
|
-
/* @__PURE__ */ (0,
|
2723
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react46.Flex, { minH: 15, bg, shadow: "raised", px: 6, py: 3, alignItems: "center", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react46.Flex, { h: "auto", w: "full", alignItems: "center", justifyContent: profile ? "flex-end" : "space-between", pos: "relative", children: [
|
2724
|
+
mainLogo && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react46.Flex, { alignItems: "center", children: [
|
2725
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Logo, { url: urlLogo, imageUrl: mainLogo, height: mainLogoSize }),
|
2684
2726
|
children && children
|
2685
2727
|
] }),
|
2686
|
-
centerLogo && /* @__PURE__ */ (0,
|
2687
|
-
/* @__PURE__ */ (0,
|
2688
|
-
/* @__PURE__ */ (0,
|
2728
|
+
centerLogo && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react46.HStack, { w: "fit-content", spacing: 2, alignItems: "center", pos: "absolute", left: "50%", transform: "translate(-50%,0)", children: [
|
2729
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Logo, { url: urlLogo, imageUrl: centerLogo, height: centerLogoSize }),
|
2730
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
2689
2731
|
version_default,
|
2690
2732
|
{
|
2691
2733
|
hideEnv,
|
@@ -2695,9 +2737,9 @@ var Header = ({
|
|
2695
2737
|
}
|
2696
2738
|
)
|
2697
2739
|
] }),
|
2698
|
-
profile || /* @__PURE__ */ (0,
|
2699
|
-
!hideSwitchMode && /* @__PURE__ */ (0,
|
2700
|
-
/* @__PURE__ */ (0,
|
2740
|
+
profile || /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react46.Flex, { alignItems: "center", children: [
|
2741
|
+
!hideSwitchMode && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(switch_mode_default, {}),
|
2742
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(profile_default, { color: props.color, brandColor, data, onLogout })
|
2701
2743
|
] })
|
2702
2744
|
] }) });
|
2703
2745
|
Header.defaultProps = {
|
@@ -2717,23 +2759,23 @@ Header.defaultProps = {
|
|
2717
2759
|
var header_default = Header;
|
2718
2760
|
|
2719
2761
|
// src/components/image/index.ts
|
2720
|
-
var
|
2762
|
+
var import_react47 = require("@chakra-ui/react");
|
2721
2763
|
|
2722
2764
|
// src/components/layouting/index.ts
|
2723
|
-
var
|
2765
|
+
var import_react48 = require("@chakra-ui/react");
|
2724
2766
|
|
2725
2767
|
// src/components/list/index.tsx
|
2726
|
-
var
|
2768
|
+
var import_react49 = require("@chakra-ui/react");
|
2727
2769
|
|
2728
2770
|
// src/components/modal/components/modal-back-button.tsx
|
2729
2771
|
var import_icons3 = require("@chakra-ui/icons");
|
2730
|
-
var
|
2731
|
-
var
|
2772
|
+
var import_react50 = require("@chakra-ui/react");
|
2773
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
2732
2774
|
var ModalBackButton = ({ onClick }) => {
|
2733
|
-
return /* @__PURE__ */ (0,
|
2734
|
-
|
2775
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2776
|
+
import_react50.IconButton,
|
2735
2777
|
{
|
2736
|
-
icon: /* @__PURE__ */ (0,
|
2778
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_icons3.ChevronLeftIcon, { w: "4.5", h: "4.5" }),
|
2737
2779
|
size: "sm",
|
2738
2780
|
minW: "6",
|
2739
2781
|
h: "6",
|
@@ -2751,28 +2793,28 @@ var ModalBackButton = ({ onClick }) => {
|
|
2751
2793
|
var modal_back_button_default = ModalBackButton;
|
2752
2794
|
|
2753
2795
|
// src/components/modal/components/modal-body.tsx
|
2754
|
-
var
|
2755
|
-
var
|
2756
|
-
var
|
2757
|
-
var ModalBody2 =
|
2758
|
-
return /* @__PURE__ */ (0,
|
2796
|
+
var import_react51 = require("@chakra-ui/react");
|
2797
|
+
var import_react52 = __toESM(require("react"));
|
2798
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
2799
|
+
var ModalBody2 = import_react52.default.forwardRef(({ children, ...rest }, ref) => {
|
2800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react51.ModalBody, { px: 4, py: 2, ref, background: (0, import_react51.useColorModeValue)("white", "mirage.900"), ...rest, children });
|
2759
2801
|
});
|
2760
2802
|
var modal_body_default = ModalBody2;
|
2761
2803
|
|
2762
2804
|
// src/components/modal/components/modal-close-button.tsx
|
2763
|
-
var
|
2764
|
-
var
|
2765
|
-
var
|
2766
|
-
var ModalCloseButton = (0,
|
2767
|
-
return /* @__PURE__ */ (0,
|
2768
|
-
|
2805
|
+
var import_react53 = require("@chakra-ui/react");
|
2806
|
+
var import_react54 = require("react");
|
2807
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
2808
|
+
var ModalCloseButton = (0, import_react54.forwardRef)((props, ref) => {
|
2809
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
2810
|
+
import_react53.ModalCloseButton,
|
2769
2811
|
{
|
2770
2812
|
ref,
|
2771
2813
|
top: 2,
|
2772
2814
|
right: 2,
|
2773
2815
|
size: "sm",
|
2774
2816
|
"data-test-id": "modal-close-button",
|
2775
|
-
background: (0,
|
2817
|
+
background: (0, import_react53.useColorModeValue)("neutral.50", "mirage.900"),
|
2776
2818
|
...props
|
2777
2819
|
}
|
2778
2820
|
);
|
@@ -2780,15 +2822,15 @@ var ModalCloseButton = (0, import_react53.forwardRef)((props, ref) => {
|
|
2780
2822
|
var modal_close_button_default = ModalCloseButton;
|
2781
2823
|
|
2782
2824
|
// src/components/modal/components/modal-footer.tsx
|
2783
|
-
var
|
2784
|
-
var
|
2785
|
-
var
|
2786
|
-
var ModalFooter2 = (0,
|
2787
|
-
return /* @__PURE__ */ (0,
|
2788
|
-
|
2825
|
+
var import_react55 = require("@chakra-ui/react");
|
2826
|
+
var import_react56 = require("react");
|
2827
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
2828
|
+
var ModalFooter2 = (0, import_react56.forwardRef)(({ children, ...rest }, ref) => {
|
2829
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
2830
|
+
import_react55.ModalFooter,
|
2789
2831
|
{
|
2790
2832
|
ref,
|
2791
|
-
background: (0,
|
2833
|
+
background: (0, import_react55.useColorModeValue)("neutral.200", "mirage.900"),
|
2792
2834
|
borderBottomRadius: "sm",
|
2793
2835
|
...rest,
|
2794
2836
|
children
|
@@ -2798,15 +2840,15 @@ var ModalFooter2 = (0, import_react55.forwardRef)(({ children, ...rest }, ref) =
|
|
2798
2840
|
var modal_footer_default = ModalFooter2;
|
2799
2841
|
|
2800
2842
|
// src/components/modal/components/modal-header.tsx
|
2801
|
-
var
|
2802
|
-
var
|
2803
|
-
var
|
2804
|
-
var ModalHeader2 = (0,
|
2805
|
-
return /* @__PURE__ */ (0,
|
2806
|
-
|
2843
|
+
var import_react57 = require("@chakra-ui/react");
|
2844
|
+
var import_react58 = require("react");
|
2845
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
2846
|
+
var ModalHeader2 = (0, import_react58.forwardRef)(({ children, ...rest }, ref) => {
|
2847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
2848
|
+
import_react57.ModalHeader,
|
2807
2849
|
{
|
2808
2850
|
ref,
|
2809
|
-
background: (0,
|
2851
|
+
background: (0, import_react57.useColorModeValue)("neutral.200", "mirage.900"),
|
2810
2852
|
borderTopRadius: "sm",
|
2811
2853
|
fontSize: "text.lg",
|
2812
2854
|
fontWeight: "400",
|
@@ -2820,24 +2862,24 @@ var ModalHeader2 = (0, import_react57.forwardRef)(({ children, ...rest }, ref) =
|
|
2820
2862
|
var modal_header_default = ModalHeader2;
|
2821
2863
|
|
2822
2864
|
// src/components/modal/index.ts
|
2823
|
-
var
|
2865
|
+
var import_react59 = require("@chakra-ui/react");
|
2824
2866
|
|
2825
2867
|
// src/components/navigation/components/navigation.tsx
|
2826
2868
|
var import_icons4 = require("@chakra-ui/icons");
|
2827
|
-
var
|
2828
|
-
var
|
2869
|
+
var import_react61 = require("@chakra-ui/react");
|
2870
|
+
var import_react62 = require("@emotion/react");
|
2829
2871
|
|
2830
2872
|
// src/components/navigation/components/mapping-icon.ts
|
2831
2873
|
var import_fi6 = require("react-icons/fi");
|
2832
2874
|
|
2833
2875
|
// src/components/navigation/components/customer-icon.tsx
|
2834
|
-
var
|
2835
|
-
var
|
2836
|
-
var CustomerIcon = (0,
|
2876
|
+
var import_react60 = require("@chakra-ui/react");
|
2877
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
2878
|
+
var CustomerIcon = (0, import_react60.createIcon)({
|
2837
2879
|
displayName: "CustomerIcon",
|
2838
2880
|
viewBox: "0 0 16 16",
|
2839
2881
|
path: [
|
2840
|
-
/* @__PURE__ */ (0,
|
2882
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
2841
2883
|
"path",
|
2842
2884
|
{
|
2843
2885
|
fill: "currentColor",
|
@@ -2846,14 +2888,14 @@ var CustomerIcon = (0, import_react59.createIcon)({
|
|
2846
2888
|
clipRule: "inherit"
|
2847
2889
|
}
|
2848
2890
|
),
|
2849
|
-
/* @__PURE__ */ (0,
|
2891
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
2850
2892
|
"path",
|
2851
2893
|
{
|
2852
2894
|
fill: "currentColor",
|
2853
2895
|
d: "M12.416 12.698a1.997 1.997 0 0 0-1.75-1.031H5.334a2 2 0 0 0-1.864 1.277 7.722 7.722 0 0 1-.943-1.074 3.329 3.329 0 0 1 2.807-1.537h5.334a3.333 3.333 0 0 1 2.703 1.384c-.275.325-.594.66-.954.98Z"
|
2854
2896
|
}
|
2855
2897
|
),
|
2856
|
-
/* @__PURE__ */ (0,
|
2898
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
2857
2899
|
"path",
|
2858
2900
|
{
|
2859
2901
|
fill: "currentColor",
|
@@ -2883,44 +2925,44 @@ var mappingIcon = /* @__PURE__ */ new Map([
|
|
2883
2925
|
]);
|
2884
2926
|
|
2885
2927
|
// src/components/navigation/components/navigation.tsx
|
2886
|
-
var
|
2928
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
2887
2929
|
var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
2888
|
-
return /* @__PURE__ */ (0,
|
2889
|
-
|
2930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2931
|
+
import_react61.Box,
|
2890
2932
|
{
|
2891
|
-
bg: (0,
|
2933
|
+
bg: (0, import_react61.useColorModeValue)("white", "ebony-clay.800"),
|
2892
2934
|
boxShadow: "0 4px 20px 0 rgb(0 0 0 / 5%)",
|
2893
2935
|
borderRadius: "md",
|
2894
2936
|
overflowX: "auto",
|
2895
2937
|
...props,
|
2896
|
-
children: /* @__PURE__ */ (0,
|
2938
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Flex, { alignItems: "center", p: 2, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.HStack, { spacing: 2, children: navigations == null ? void 0 : navigations.map((navigation) => {
|
2897
2939
|
const isActive = activePath.startsWith(navigation.navLink || "");
|
2898
2940
|
const activeBg = isActive ? "primary.500" : void 0;
|
2899
|
-
return /* @__PURE__ */ (0,
|
2900
|
-
/* @__PURE__ */ (0,
|
2901
|
-
|
2941
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Popover, { trigger: "hover", placement: "bottom-start", children: ({ isOpen }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
2942
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
2943
|
+
import_react61.Box,
|
2902
2944
|
{
|
2903
2945
|
display: "flex",
|
2904
2946
|
alignItems: "center",
|
2905
2947
|
borderRadius: "md",
|
2906
2948
|
cursor: "pointer",
|
2907
2949
|
_hover: {
|
2908
|
-
backgroundColor: !isActive ? (0,
|
2950
|
+
backgroundColor: !isActive ? (0, import_react61.useColorModeValue)("dove-gray.50", "transparent") : activeBg
|
2909
2951
|
},
|
2910
|
-
backgroundColor: isOpen && !isActive ? (0,
|
2952
|
+
backgroundColor: isOpen && !isActive ? (0, import_react61.useColorModeValue)("dove-gray.50", "transparent") : activeBg,
|
2911
2953
|
color: isActive ? "white" : "inherit",
|
2912
2954
|
p: 2,
|
2913
2955
|
children: [
|
2914
|
-
/* @__PURE__ */ (0,
|
2915
|
-
/* @__PURE__ */ (0,
|
2916
|
-
/* @__PURE__ */ (0,
|
2956
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Icon, { as: mappingIcon.get(navigation.title), mr: 2 }),
|
2957
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Text, { whiteSpace: "nowrap", fontSize: "text.sm", fontWeight: 400, children: navigation.title }),
|
2958
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_icons4.ChevronDownIcon, { ml: 2 })
|
2917
2959
|
]
|
2918
2960
|
}
|
2919
2961
|
) }),
|
2920
|
-
navigation.children && /* @__PURE__ */ (0,
|
2921
|
-
|
2962
|
+
navigation.children && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Box, { zIndex: "popover", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2963
|
+
import_react61.PopoverContent,
|
2922
2964
|
{
|
2923
|
-
bg: (0,
|
2965
|
+
bg: (0, import_react61.useColorModeValue)("white", "ebony-clay.800"),
|
2924
2966
|
maxW: 250,
|
2925
2967
|
border: "none",
|
2926
2968
|
borderRadius: "md",
|
@@ -2929,16 +2971,16 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2929
2971
|
const link = navHost ? `${navHost}${navLink}` : navLink;
|
2930
2972
|
const isLocalLink = host === navHost;
|
2931
2973
|
const isActiveSub = activePath === navLink;
|
2932
|
-
return /* @__PURE__ */ (0,
|
2933
|
-
|
2974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2975
|
+
import_react61.Link,
|
2934
2976
|
{
|
2935
2977
|
as: isLocalLink ? as : void 0,
|
2936
2978
|
href: link,
|
2937
2979
|
_hover: {
|
2938
2980
|
textDecoration: "none"
|
2939
2981
|
},
|
2940
|
-
children: /* @__PURE__ */ (0,
|
2941
|
-
|
2982
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
2983
|
+
import_react61.Box,
|
2942
2984
|
{
|
2943
2985
|
display: "flex",
|
2944
2986
|
position: "relative",
|
@@ -2946,24 +2988,24 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2946
2988
|
cursor: "pointer",
|
2947
2989
|
transition: "padding 0.35s ease 0s",
|
2948
2990
|
_hover: {
|
2949
|
-
backgroundColor: (0,
|
2950
|
-
color: (0,
|
2991
|
+
backgroundColor: (0, import_react61.useColorModeValue)("dove-gray.50", "mirage.900"),
|
2992
|
+
color: (0, import_react61.useColorModeValue)("primary.500", "dove-gray.600"),
|
2951
2993
|
px: 5,
|
2952
2994
|
py: 4,
|
2953
2995
|
_first: { borderTopRadius: "md" },
|
2954
2996
|
_last: { borderBottomRadius: "md" }
|
2955
2997
|
},
|
2956
2998
|
color: isActiveSub ? "primary.500" : "inherit",
|
2957
|
-
css:
|
2999
|
+
css: import_react62.css`
|
2958
3000
|
border-spacing: 4px;
|
2959
3001
|
`,
|
2960
3002
|
px: 6,
|
2961
3003
|
py: 4,
|
2962
3004
|
children: [
|
2963
|
-
/* @__PURE__ */ (0,
|
2964
|
-
/* @__PURE__ */ (0,
|
2965
|
-
isActiveSub && /* @__PURE__ */ (0,
|
2966
|
-
|
3005
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Icon, { as: mappingIcon.get(navigation.title), mr: 3 }),
|
3006
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Text, { fontSize: "text.sm", children: title }),
|
3007
|
+
isActiveSub && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
3008
|
+
import_react61.Box,
|
2967
3009
|
{
|
2968
3010
|
width: 0.5,
|
2969
3011
|
height: 8,
|
@@ -2996,9 +3038,9 @@ Navigation.defaultProps = {
|
|
2996
3038
|
var navigation_default = Navigation;
|
2997
3039
|
|
2998
3040
|
// src/components/navigation/components/navigation-bar.tsx
|
2999
|
-
var
|
3041
|
+
var import_react63 = require("@chakra-ui/react");
|
3000
3042
|
var Icon3 = __toESM(require("@ctlyst.id/internal-icon"));
|
3001
|
-
var
|
3043
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
3002
3044
|
var NavigationBar = ({
|
3003
3045
|
navigations,
|
3004
3046
|
isFetched,
|
@@ -3013,15 +3055,15 @@ var NavigationBar = ({
|
|
3013
3055
|
}
|
3014
3056
|
return subMenu.navHost + subMenu.navLink;
|
3015
3057
|
};
|
3016
|
-
return /* @__PURE__ */ (0,
|
3017
|
-
|
3058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3059
|
+
import_react63.Box,
|
3018
3060
|
{
|
3019
3061
|
hidden: isFetched && navigations === void 0,
|
3020
3062
|
backgroundRepeat: "repeat-x",
|
3021
3063
|
"data-test-id": "CT_component_navigation_cms",
|
3022
3064
|
...props,
|
3023
|
-
children: /* @__PURE__ */ (0,
|
3024
|
-
|
3065
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3066
|
+
import_react63.Flex,
|
3025
3067
|
{
|
3026
3068
|
bg: "white",
|
3027
3069
|
w: "full",
|
@@ -3037,9 +3079,9 @@ var NavigationBar = ({
|
|
3037
3079
|
const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
|
3038
3080
|
const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
|
3039
3081
|
const activeBg = isActive ? "primary.500" : void 0;
|
3040
|
-
return /* @__PURE__ */ (0,
|
3041
|
-
/* @__PURE__ */ (0,
|
3042
|
-
|
3082
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react63.Popover, { isLazy: true, trigger: "hover", placement: "bottom-start", openDelay: 100, closeDelay: 100, children: ({ isOpen, onClose }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
|
3083
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react63.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3084
|
+
import_react63.Button,
|
3043
3085
|
{
|
3044
3086
|
h: 7.5,
|
3045
3087
|
p: 2,
|
@@ -3052,12 +3094,12 @@ var NavigationBar = ({
|
|
3052
3094
|
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
3053
3095
|
color: isActive ? "primary.50" : "black.high",
|
3054
3096
|
leftIcon: mappingIcon2.get(item.title),
|
3055
|
-
rightIcon: /* @__PURE__ */ (0,
|
3097
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon3.ChevronDown, { size: 4, color: "inherit" }),
|
3056
3098
|
children: item.title
|
3057
3099
|
}
|
3058
3100
|
) }),
|
3059
|
-
item.children && /* @__PURE__ */ (0,
|
3060
|
-
|
3101
|
+
item.children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react63.PopoverContent, { border: "none", shadow: "raised", py: 1, width: 240, children: item.children.map((subMenu) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
3102
|
+
import_react63.Link,
|
3061
3103
|
{
|
3062
3104
|
href: urlMenu(subMenu),
|
3063
3105
|
display: "flex",
|
@@ -3076,7 +3118,7 @@ var NavigationBar = ({
|
|
3076
3118
|
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
3077
3119
|
children: [
|
3078
3120
|
mappingIcon2.get(item.title),
|
3079
|
-
/* @__PURE__ */ (0,
|
3121
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react63.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
3080
3122
|
]
|
3081
3123
|
},
|
3082
3124
|
subMenu.id
|
@@ -3095,18 +3137,18 @@ var navigation_bar_default = NavigationBar;
|
|
3095
3137
|
|
3096
3138
|
// src/components/pagination/components/pagination.tsx
|
3097
3139
|
var import_icons5 = require("@chakra-ui/icons");
|
3098
|
-
var
|
3140
|
+
var import_react66 = require("@chakra-ui/react");
|
3099
3141
|
|
3100
3142
|
// src/components/pagination/components/pagination-button.tsx
|
3101
|
-
var
|
3102
|
-
var
|
3103
|
-
var PaginationButton = (0,
|
3104
|
-
const btnBg = (0,
|
3105
|
-
const btnColor = (0,
|
3106
|
-
const btnNotActiveBg = (0,
|
3107
|
-
const btnNotActiveColor = (0,
|
3108
|
-
return /* @__PURE__ */ (0,
|
3109
|
-
|
3143
|
+
var import_react64 = require("@chakra-ui/react");
|
3144
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
3145
|
+
var PaginationButton = (0, import_react64.forwardRef)(({ className, style, isActive, children, ...rest }, ref) => {
|
3146
|
+
const btnBg = (0, import_react64.useColorModeValue)("neutral.300", "mirage.900");
|
3147
|
+
const btnColor = (0, import_react64.useColorModeValue)("black.high", "primary.300");
|
3148
|
+
const btnNotActiveBg = (0, import_react64.useColorModeValue)("secondary.50", "primary.500");
|
3149
|
+
const btnNotActiveColor = (0, import_react64.useColorModeValue)("primary.500", "white");
|
3150
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3151
|
+
import_react64.Button,
|
3110
3152
|
{
|
3111
3153
|
"data-test-id": "Pagination-Button",
|
3112
3154
|
ref,
|
@@ -3127,7 +3169,7 @@ var PaginationButton = (0, import_react63.forwardRef)(({ className, style, isAct
|
|
3127
3169
|
color: btnNotActiveColor
|
3128
3170
|
} : {},
|
3129
3171
|
_disabled: {
|
3130
|
-
background: (0,
|
3172
|
+
background: (0, import_react64.useColorModeValue)("neutral.300", "mirage.900"),
|
3131
3173
|
color: "neutral.600",
|
3132
3174
|
pointerEvents: "none"
|
3133
3175
|
},
|
@@ -3143,16 +3185,16 @@ PaginationButton.defaultProps = {
|
|
3143
3185
|
var pagination_button_default = PaginationButton;
|
3144
3186
|
|
3145
3187
|
// src/components/pagination/components/pagination-button-trigger.tsx
|
3146
|
-
var
|
3147
|
-
var
|
3188
|
+
var import_react65 = require("@chakra-ui/react");
|
3189
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
3148
3190
|
var PaginationButtonTrigger = ({
|
3149
3191
|
color,
|
3150
3192
|
isDisabled,
|
3151
3193
|
onClick,
|
3152
3194
|
visuallyHidden,
|
3153
3195
|
icon
|
3154
|
-
}) => /* @__PURE__ */ (0,
|
3155
|
-
/* @__PURE__ */ (0,
|
3196
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(pagination_button_default, { "data-test-id": "DLVCc_fBK35spHm5WxjcJ", color, isDisabled, onClick, children: [
|
3197
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react65.VisuallyHidden, { children: visuallyHidden }),
|
3156
3198
|
icon
|
3157
3199
|
] });
|
3158
3200
|
PaginationButtonTrigger.defaultProps = {
|
@@ -3165,10 +3207,10 @@ PaginationButtonTrigger.defaultProps = {
|
|
3165
3207
|
var pagination_button_trigger_default = PaginationButtonTrigger;
|
3166
3208
|
|
3167
3209
|
// src/components/pagination/components/pagination.tsx
|
3168
|
-
var
|
3210
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
3169
3211
|
var Pagination = ({ className, current, total, onSelect }) => {
|
3170
|
-
const btnColorDisabled = (0,
|
3171
|
-
const btnColor = (0,
|
3212
|
+
const btnColorDisabled = (0, import_react66.useColorModeValue)("secondary.100", "primary.500");
|
3213
|
+
const btnColor = (0, import_react66.useColorModeValue)("primary.500", "secondary.100");
|
3172
3214
|
const disabledPrevious = current === 1;
|
3173
3215
|
const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;
|
3174
3216
|
const disabledNext = current === total;
|
@@ -3195,8 +3237,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3195
3237
|
}
|
3196
3238
|
return pageButtons;
|
3197
3239
|
};
|
3198
|
-
return /* @__PURE__ */ (0,
|
3199
|
-
/* @__PURE__ */ (0,
|
3240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_react66.Box, { className, display: "inline-flex", alignItems: "center", children: [
|
3241
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react66.Box, { mr: 1, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3200
3242
|
pagination_button_trigger_default,
|
3201
3243
|
{
|
3202
3244
|
"data-test-id": "Pagination-Button",
|
@@ -3204,11 +3246,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3204
3246
|
isDisabled: disabledPrevious,
|
3205
3247
|
onClick: () => handleSelectPage(1),
|
3206
3248
|
visuallyHidden: "First Page",
|
3207
|
-
icon: /* @__PURE__ */ (0,
|
3249
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons5.ArrowLeftIcon, { width: 2 })
|
3208
3250
|
}
|
3209
3251
|
) }),
|
3210
|
-
/* @__PURE__ */ (0,
|
3211
|
-
/* @__PURE__ */ (0,
|
3252
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_react66.Box, { bg: "neutral.300", borderRadius: "full", children: [
|
3253
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3212
3254
|
pagination_button_trigger_default,
|
3213
3255
|
{
|
3214
3256
|
"data-test-id": "Pagination-Button",
|
@@ -3216,22 +3258,22 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3216
3258
|
isDisabled: disabledPrevious,
|
3217
3259
|
onClick: () => handleSelectPage(current - 1),
|
3218
3260
|
visuallyHidden: "Previous Page",
|
3219
|
-
icon: /* @__PURE__ */ (0,
|
3261
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons5.ChevronLeftIcon, {})
|
3220
3262
|
}
|
3221
3263
|
),
|
3222
3264
|
generatePages().map((page) => {
|
3223
|
-
return /* @__PURE__ */ (0,
|
3265
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3224
3266
|
pagination_button_default,
|
3225
3267
|
{
|
3226
3268
|
"data-test-id": "Pagination-Button",
|
3227
3269
|
isActive: page === current,
|
3228
3270
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
3229
|
-
children: /* @__PURE__ */ (0,
|
3271
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react66.Text, { scale: 300, fontSize: "text.sm", lineHeight: 18, fontWeight: 500, children: page })
|
3230
3272
|
},
|
3231
3273
|
page
|
3232
3274
|
);
|
3233
3275
|
}),
|
3234
|
-
/* @__PURE__ */ (0,
|
3276
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3235
3277
|
pagination_button_trigger_default,
|
3236
3278
|
{
|
3237
3279
|
"data-test-id": "Pagination-Button",
|
@@ -3239,11 +3281,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3239
3281
|
isDisabled: disabledNext,
|
3240
3282
|
onClick: () => handleSelectPage(current + 1),
|
3241
3283
|
visuallyHidden: "Next Page",
|
3242
|
-
icon: /* @__PURE__ */ (0,
|
3284
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons5.ChevronRightIcon, {})
|
3243
3285
|
}
|
3244
3286
|
)
|
3245
3287
|
] }),
|
3246
|
-
/* @__PURE__ */ (0,
|
3288
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react66.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3247
3289
|
pagination_button_trigger_default,
|
3248
3290
|
{
|
3249
3291
|
"data-test-id": "Pagination-Button",
|
@@ -3251,7 +3293,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3251
3293
|
isDisabled: disabledNext,
|
3252
3294
|
onClick: () => handleSelectPage(total),
|
3253
3295
|
visuallyHidden: "Last Page",
|
3254
|
-
icon: /* @__PURE__ */ (0,
|
3296
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons5.ArrowRightIcon, { width: 2 })
|
3255
3297
|
}
|
3256
3298
|
) })
|
3257
3299
|
] });
|
@@ -3264,8 +3306,8 @@ Pagination.displayName = "Pagination";
|
|
3264
3306
|
var pagination_default = Pagination;
|
3265
3307
|
|
3266
3308
|
// src/components/pagination/components/pagination-detail.tsx
|
3267
|
-
var
|
3268
|
-
var
|
3309
|
+
var import_react67 = require("@chakra-ui/react");
|
3310
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
3269
3311
|
var PaginationDetail = ({
|
3270
3312
|
page,
|
3271
3313
|
limit,
|
@@ -3275,15 +3317,15 @@ var PaginationDetail = ({
|
|
3275
3317
|
lineHeight = 18,
|
3276
3318
|
...rest
|
3277
3319
|
}) => {
|
3278
|
-
return /* @__PURE__ */ (0,
|
3320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react67.Text, { scale, fontSize, lineHeight, ...rest, children: `${(page - 1) * limit + 1}-${limit * page < length ? limit * page : length} dari ${length} item` });
|
3279
3321
|
};
|
3280
3322
|
var pagination_detail_default = PaginationDetail;
|
3281
3323
|
|
3282
3324
|
// src/components/pagination/components/pagination-filter.tsx
|
3283
|
-
var
|
3325
|
+
var import_react68 = require("@chakra-ui/react");
|
3284
3326
|
var React13 = __toESM(require("react"));
|
3285
3327
|
var import_fi7 = require("react-icons/fi");
|
3286
|
-
var
|
3328
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
3287
3329
|
var PaginationFilter = ({
|
3288
3330
|
limit,
|
3289
3331
|
label = "Baris per halaman:",
|
@@ -3292,10 +3334,10 @@ var PaginationFilter = ({
|
|
3292
3334
|
...rest
|
3293
3335
|
}) => {
|
3294
3336
|
const [value, setValue] = React13.useState(limit);
|
3295
|
-
return /* @__PURE__ */ (0,
|
3296
|
-
/* @__PURE__ */ (0,
|
3297
|
-
/* @__PURE__ */ (0,
|
3298
|
-
|
3337
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_react68.Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [
|
3338
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react68.Text, { fontSize: "text.sm", lineHeight: 18, color: (0, import_react68.useColorModeValue)("neutral.900", "white"), ...rest, children: label }),
|
3339
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
3340
|
+
import_react68.Select,
|
3299
3341
|
{
|
3300
3342
|
textAlign: "center",
|
3301
3343
|
size: "xs",
|
@@ -3303,7 +3345,7 @@ var PaginationFilter = ({
|
|
3303
3345
|
border: "none",
|
3304
3346
|
boxShadow: "none",
|
3305
3347
|
width: 18,
|
3306
|
-
icon: /* @__PURE__ */ (0,
|
3348
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_fi7.FiChevronDown, {}),
|
3307
3349
|
_focusVisible: { boxShadow: "none" },
|
3308
3350
|
onChange: (e) => {
|
3309
3351
|
const numberValue = Number(e.target.value);
|
@@ -3312,7 +3354,7 @@ var PaginationFilter = ({
|
|
3312
3354
|
},
|
3313
3355
|
value,
|
3314
3356
|
children: items.map((item) => {
|
3315
|
-
return /* @__PURE__ */ (0,
|
3357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("option", { value: item, children: item }, item);
|
3316
3358
|
})
|
3317
3359
|
}
|
3318
3360
|
)
|
@@ -3325,11 +3367,11 @@ PaginationFilter.defaultProps = {
|
|
3325
3367
|
var pagination_filter_default = PaginationFilter;
|
3326
3368
|
|
3327
3369
|
// src/components/popover/index.ts
|
3328
|
-
var
|
3370
|
+
var import_react69 = require("@chakra-ui/react");
|
3329
3371
|
|
3330
3372
|
// src/components/radio/components/radio.tsx
|
3331
|
-
var
|
3332
|
-
var
|
3373
|
+
var import_react70 = require("@chakra-ui/react");
|
3374
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
3333
3375
|
var Radio = ({
|
3334
3376
|
isError = false,
|
3335
3377
|
helpText = "",
|
@@ -3339,9 +3381,9 @@ var Radio = ({
|
|
3339
3381
|
...rest
|
3340
3382
|
}) => {
|
3341
3383
|
const variant = isError ? "errors" : "unstyled";
|
3342
|
-
return /* @__PURE__ */ (0,
|
3343
|
-
/* @__PURE__ */ (0,
|
3344
|
-
/* @__PURE__ */ (0,
|
3384
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_react70.Box, { children: [
|
3385
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.Radio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.Text, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
3386
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.Box, { mt: "5px", ml: "24px", children: isError ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.Text, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react70.Text, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) })
|
3345
3387
|
] });
|
3346
3388
|
};
|
3347
3389
|
Radio.displayName = "Radio";
|
@@ -3352,8 +3394,8 @@ Radio.defaultProps = {
|
|
3352
3394
|
};
|
3353
3395
|
|
3354
3396
|
// src/components/radio/components/radio-group.tsx
|
3355
|
-
var
|
3356
|
-
var
|
3397
|
+
var import_react71 = require("@chakra-ui/react");
|
3398
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
3357
3399
|
var RadioGroup = ({
|
3358
3400
|
children,
|
3359
3401
|
label,
|
@@ -3362,7 +3404,7 @@ var RadioGroup = ({
|
|
3362
3404
|
errorMessage,
|
3363
3405
|
...props
|
3364
3406
|
}) => {
|
3365
|
-
return /* @__PURE__ */ (0,
|
3407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react71.Box, { mt: "12px", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react71.RadioGroup, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react71.Stack, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
|
3366
3408
|
};
|
3367
3409
|
RadioGroup.displayName = "RadioGroup";
|
3368
3410
|
RadioGroup.defaultProps = {
|
@@ -3372,14 +3414,14 @@ RadioGroup.defaultProps = {
|
|
3372
3414
|
};
|
3373
3415
|
|
3374
3416
|
// src/components/radio/index.ts
|
3375
|
-
var
|
3417
|
+
var import_react72 = require("@chakra-ui/react");
|
3376
3418
|
|
3377
3419
|
// src/components/rating/components/rating.tsx
|
3378
|
-
var
|
3379
|
-
var
|
3380
|
-
var
|
3420
|
+
var import_react73 = require("@chakra-ui/react");
|
3421
|
+
var import_internal_icon6 = require("@ctlyst.id/internal-icon");
|
3422
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
3381
3423
|
var Rating = ({ value }) => {
|
3382
|
-
return /* @__PURE__ */ (0,
|
3424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react73.Grid, { gap: "4px", display: "flex", children: [...Array(5)].map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_internal_icon6.Rating, { color: i < value ? "#FFA230" : "#E0E0E0", size: 24 })) });
|
3383
3425
|
};
|
3384
3426
|
var rating_default = Rating;
|
3385
3427
|
|
@@ -3387,17 +3429,6 @@ var rating_default = Rating;
|
|
3387
3429
|
var import_system7 = require("@chakra-ui/system");
|
3388
3430
|
var import_react_select = __toESM(require("react-select"));
|
3389
3431
|
|
3390
|
-
// src/components/select/components/select-wrapper.tsx
|
3391
|
-
var import_react73 = require("@chakra-ui/react");
|
3392
|
-
var import_jsx_runtime51 = require("react/jsx-runtime");
|
3393
|
-
var SelectWrapper = ({ children }) => {
|
3394
|
-
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react73.Box, { children });
|
3395
|
-
};
|
3396
|
-
SelectWrapper.defaultProps = {
|
3397
|
-
isError: false
|
3398
|
-
};
|
3399
|
-
var select_wrapper_default = SelectWrapper;
|
3400
|
-
|
3401
3432
|
// src/config/theme/foundations/shadows.ts
|
3402
3433
|
var import_react74 = require("@chakra-ui/react");
|
3403
3434
|
var shadows = {
|
@@ -3663,37 +3694,32 @@ var selectStyle = {
|
|
3663
3694
|
lineHeight: styleMd.lineHeight,
|
3664
3695
|
letterSpacing: 0
|
3665
3696
|
};
|
3666
|
-
var boxShadow = (color) => `0 0 0 1px ${color}`;
|
3667
3697
|
function selectStyles(colorMode, _isError) {
|
3668
|
-
const boxShadowLight = (isFocused = false, isError = false) => {
|
3669
|
-
if (isError && isFocused || isError) {
|
3670
|
-
return boxShadow("danger.500");
|
3671
|
-
}
|
3672
|
-
if (isFocused) {
|
3673
|
-
return boxShadow("primary.500");
|
3674
|
-
}
|
3675
|
-
return boxShadow("neutral.400");
|
3676
|
-
};
|
3677
3698
|
return {
|
3678
|
-
control: (base,
|
3679
|
-
|
3680
|
-
|
3681
|
-
|
3682
|
-
|
3683
|
-
|
3684
|
-
|
3685
|
-
|
3686
|
-
|
3687
|
-
|
3688
|
-
|
3689
|
-
|
3699
|
+
control: (base, { isDisabled, isFocused }) => {
|
3700
|
+
const style = {
|
3701
|
+
...base,
|
3702
|
+
flexWrap: "nowrap",
|
3703
|
+
borderColor: isFocused ? "var(--chakra-colors-primary-500)" : "var(--chakra-colors-neutral-400)",
|
3704
|
+
boxShadow: "none",
|
3705
|
+
color: isDisabled ? "var(--chakra-colors-black-low)" : "var(--chakra-colors-black-high)",
|
3706
|
+
"&:hover": {
|
3707
|
+
borderColor: _isError ? "" : isFocused ? "var(--chakra-colors-primary-500)" : "var(--chakra-colors-neutral-500)"
|
3708
|
+
}
|
3709
|
+
};
|
3710
|
+
if (_isError) {
|
3711
|
+
return {
|
3712
|
+
...style,
|
3713
|
+
borderColor: "var(--chakra-colors-danger-500)"
|
3714
|
+
};
|
3715
|
+
}
|
3716
|
+
return style;
|
3690
3717
|
},
|
3691
|
-
option: (base
|
3718
|
+
option: (base) => ({
|
3692
3719
|
...base,
|
3693
3720
|
...selectStyle,
|
3694
|
-
|
3695
|
-
|
3696
|
-
} : { ...base, ...selectStyle },
|
3721
|
+
color: "var(--chakra-colors-neutral-900)"
|
3722
|
+
}),
|
3697
3723
|
menu: (base) => colorMode === "dark" ? {
|
3698
3724
|
...base,
|
3699
3725
|
...selectStyle,
|
@@ -3718,10 +3744,10 @@ var themeSelect = (theme6) => {
|
|
3718
3744
|
...theme6,
|
3719
3745
|
colors: {
|
3720
3746
|
...theme6.colors,
|
3721
|
-
primary: "primary
|
3722
|
-
primary25: "primary
|
3723
|
-
primary50: "primary
|
3724
|
-
primary75: "primary
|
3747
|
+
primary: "var(--chakra-colors-primary-100)",
|
3748
|
+
primary25: "var(--chakra-colors-primary-50)",
|
3749
|
+
primary50: "var(--chakra-colors-primary-100)",
|
3750
|
+
primary75: "var(--chakra-colors-primary-200)"
|
3725
3751
|
}
|
3726
3752
|
};
|
3727
3753
|
};
|
@@ -3734,7 +3760,7 @@ function Select2({
|
|
3734
3760
|
...rest
|
3735
3761
|
}) {
|
3736
3762
|
const { colorMode } = (0, import_system7.useColorMode)();
|
3737
|
-
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
3763
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
3738
3764
|
import_react_select.default,
|
3739
3765
|
{
|
3740
3766
|
classNamePrefix: "react-select",
|
@@ -3742,7 +3768,7 @@ function Select2({
|
|
3742
3768
|
styles: { ...selectStyles(colorMode, isError) },
|
3743
3769
|
theme: themeSelect
|
3744
3770
|
}
|
3745
|
-
)
|
3771
|
+
);
|
3746
3772
|
}
|
3747
3773
|
var select_default = Select2;
|
3748
3774
|
|
@@ -3756,7 +3782,7 @@ function SelectAsync({
|
|
3756
3782
|
...rest
|
3757
3783
|
}) {
|
3758
3784
|
const { colorMode } = (0, import_system8.useColorMode)();
|
3759
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
3785
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
3760
3786
|
import_react_select_async_paginate.AsyncPaginate,
|
3761
3787
|
{
|
3762
3788
|
classNamePrefix: "react-select",
|
@@ -3764,7 +3790,7 @@ function SelectAsync({
|
|
3764
3790
|
styles: { ...selectStyles(colorMode, isError), ...styles },
|
3765
3791
|
theme: themeSelect
|
3766
3792
|
}
|
3767
|
-
)
|
3793
|
+
);
|
3768
3794
|
}
|
3769
3795
|
var select_async_default = SelectAsync;
|
3770
3796
|
|
@@ -3774,7 +3800,7 @@ var import_async_creatable = __toESM(require("react-select/async-creatable"));
|
|
3774
3800
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
3775
3801
|
function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
3776
3802
|
const { colorMode } = (0, import_system9.useColorMode)();
|
3777
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
3803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
3778
3804
|
import_async_creatable.default,
|
3779
3805
|
{
|
3780
3806
|
classNamePrefix: "react-select",
|
@@ -3782,7 +3808,7 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
3782
3808
|
styles: { ...selectStyles(colorMode, isError), ...styles },
|
3783
3809
|
theme: themeSelect
|
3784
3810
|
}
|
3785
|
-
)
|
3811
|
+
);
|
3786
3812
|
}
|
3787
3813
|
|
3788
3814
|
// src/components/select/components/select-creatable.tsx
|
@@ -3791,7 +3817,7 @@ var import_creatable = __toESM(require("react-select/creatable"));
|
|
3791
3817
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
3792
3818
|
function SelectCreatable({ styles, isError = false, ...rest }) {
|
3793
3819
|
const { colorMode } = (0, import_system10.useColorMode)();
|
3794
|
-
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
3820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
3795
3821
|
import_creatable.default,
|
3796
3822
|
{
|
3797
3823
|
classNamePrefix: "react-select",
|
@@ -3799,13 +3825,13 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
3799
3825
|
styles: { ...selectStyles(colorMode, isError), ...styles },
|
3800
3826
|
theme: themeSelect
|
3801
3827
|
}
|
3802
|
-
)
|
3828
|
+
);
|
3803
3829
|
}
|
3804
3830
|
|
3805
3831
|
// src/components/switch/components/switch.tsx
|
3806
3832
|
var import_react77 = require("@chakra-ui/react");
|
3807
3833
|
var import_shared_utils9 = require("@chakra-ui/shared-utils");
|
3808
|
-
var
|
3834
|
+
var import_internal_icon7 = require("@ctlyst.id/internal-icon");
|
3809
3835
|
var import_react78 = require("react");
|
3810
3836
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
3811
3837
|
var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
@@ -3862,8 +3888,8 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
3862
3888
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
3863
3889
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_react77.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
3864
3890
|
/* @__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)(
|
3866
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3891
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_internal_icon7.Check, { color: "white", size: getIconSize(props.size) }),
|
3892
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_internal_icon7.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
3867
3893
|
] }),
|
3868
3894
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3869
3895
|
import_react77.chakra.span,
|
@@ -4092,7 +4118,12 @@ var baseStyleButton = (0, import_styled_system.defineStyle)({
|
|
4092
4118
|
bg: "neutral.100"
|
4093
4119
|
},
|
4094
4120
|
_hover: {
|
4095
|
-
bg: "neutral.100"
|
4121
|
+
bg: "neutral.100",
|
4122
|
+
".eye-icon": {
|
4123
|
+
display: "block",
|
4124
|
+
opacity: 1,
|
4125
|
+
visibility: "visible"
|
4126
|
+
}
|
4096
4127
|
},
|
4097
4128
|
_disabled: {
|
4098
4129
|
opacity: 0.4,
|
@@ -4100,7 +4131,10 @@ var baseStyleButton = (0, import_styled_system.defineStyle)({
|
|
4100
4131
|
},
|
4101
4132
|
py: 2,
|
4102
4133
|
px: 4,
|
4103
|
-
position: "relative"
|
4134
|
+
position: "relative",
|
4135
|
+
".eye-icon": {
|
4136
|
+
visibility: "hidden"
|
4137
|
+
}
|
4104
4138
|
});
|
4105
4139
|
var baseStylePanel = (0, import_styled_system.defineStyle)({
|
4106
4140
|
pt: "2",
|
@@ -5593,6 +5627,7 @@ var import_react96 = require("@chakra-ui/react");
|
|
5593
5627
|
Accordion,
|
5594
5628
|
AccordionButton,
|
5595
5629
|
AccordionButtonProps,
|
5630
|
+
AccordionEye,
|
5596
5631
|
AccordionIcon,
|
5597
5632
|
AccordionIconProps,
|
5598
5633
|
AccordionIndicator,
|