@ctlyst.id/internal-ui 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +595 -565
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +268 -238
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -88,14 +88,14 @@ __export(src_exports, {
|
|
88
88
|
AlertAction: () => AlertAction,
|
89
89
|
AlertClose: () => AlertClose,
|
90
90
|
AlertDescription: () => AlertDescription,
|
91
|
-
AlertDialog: () =>
|
92
|
-
AlertDialogBody: () =>
|
93
|
-
AlertDialogCloseButton: () =>
|
94
|
-
AlertDialogContent: () =>
|
95
|
-
AlertDialogFooter: () =>
|
96
|
-
AlertDialogHeader: () =>
|
97
|
-
AlertDialogOverlay: () =>
|
98
|
-
AlertDialogProps: () =>
|
91
|
+
AlertDialog: () => import_react54.AlertDialog,
|
92
|
+
AlertDialogBody: () => import_react54.ModalBody,
|
93
|
+
AlertDialogCloseButton: () => import_react54.ModalCloseButton,
|
94
|
+
AlertDialogContent: () => import_react54.AlertDialogContent,
|
95
|
+
AlertDialogFooter: () => import_react54.ModalFooter,
|
96
|
+
AlertDialogHeader: () => import_react54.ModalHeader,
|
97
|
+
AlertDialogOverlay: () => import_react54.ModalOverlay,
|
98
|
+
AlertDialogProps: () => import_react54.AlertDialogProps,
|
99
99
|
AlertIcon: () => AlertIcon,
|
100
100
|
AlertTitle: () => AlertTitle,
|
101
101
|
Anchor: () => Anchor,
|
@@ -106,18 +106,18 @@ __export(src_exports, {
|
|
106
106
|
AvatarGroupProps: () => import_react121.AvatarGroupProps,
|
107
107
|
AvatarProps: () => import_react121.AvatarProps,
|
108
108
|
Badge: () => badge_default,
|
109
|
-
Box: () =>
|
110
|
-
BoxProps: () =>
|
109
|
+
Box: () => import_react51.Box,
|
110
|
+
BoxProps: () => import_react51.BoxProps,
|
111
111
|
BreadCrumb: () => bread_crumb_default,
|
112
112
|
Button: () => button_default,
|
113
113
|
ButtonGroup: () => import_react10.ButtonGroup,
|
114
114
|
ButtonGroupProps: () => import_react10.ButtonGroupProps,
|
115
115
|
CHECKBOX_STATE: () => CHECKBOX_STATE,
|
116
116
|
Card: () => card_default,
|
117
|
-
Center: () =>
|
117
|
+
Center: () => import_react51.Center,
|
118
118
|
ChakraProvider: () => import_react131.ChakraProvider,
|
119
119
|
ChakraProviderProps: () => import_react131.ChakraProviderProps,
|
120
|
-
ChakraTable: () =>
|
120
|
+
ChakraTable: () => import_react112.Table,
|
121
121
|
Checkbox: () => checkbox_default,
|
122
122
|
CheckboxGroup: () => checkbox_group_default,
|
123
123
|
CheckboxGroupContext: () => import_react16.CheckboxGroupContext,
|
@@ -128,59 +128,59 @@ __export(src_exports, {
|
|
128
128
|
Chips: () => chips_default,
|
129
129
|
CloseButton: () => import_react10.CloseButton,
|
130
130
|
CloseButtonProps: () => import_react10.CloseButtonProps,
|
131
|
-
Code: () =>
|
132
|
-
CodeProps: () =>
|
131
|
+
Code: () => import_react115.Code,
|
132
|
+
CodeProps: () => import_react115.CodeProps,
|
133
133
|
Collapse: () => import_react121.Collapse,
|
134
134
|
CollapseProps: () => import_react121.CollapseProps,
|
135
135
|
ColorMode: () => import_react131.ColorMode,
|
136
136
|
ColorModeScript: () => import_react131.ColorModeScript,
|
137
137
|
ColorModeScriptProps: () => import_react131.ColorModeScriptProps,
|
138
|
-
Container: () =>
|
139
|
-
ContainerProps: () =>
|
138
|
+
Container: () => import_react51.Container,
|
139
|
+
ContainerProps: () => import_react51.ContainerProps,
|
140
140
|
Counter: () => counter_default,
|
141
141
|
DataTable: () => data_table_default,
|
142
142
|
DatePickerMonth: () => datepicker_month_default,
|
143
143
|
Datepicker: () => datepicker_default,
|
144
144
|
Dialog: () => dialog_default,
|
145
|
-
Divider: () =>
|
146
|
-
DividerProps: () =>
|
147
|
-
Drawer: () =>
|
148
|
-
DrawerBody: () =>
|
149
|
-
DrawerCloseButton: () =>
|
150
|
-
DrawerContent: () =>
|
151
|
-
DrawerContentProps: () =>
|
152
|
-
DrawerFooter: () =>
|
153
|
-
DrawerHeader: () =>
|
154
|
-
DrawerOverlay: () =>
|
155
|
-
DrawerProps: () =>
|
145
|
+
Divider: () => import_react51.Divider,
|
146
|
+
DividerProps: () => import_react51.DividerProps,
|
147
|
+
Drawer: () => import_react54.Drawer,
|
148
|
+
DrawerBody: () => import_react54.ModalBody,
|
149
|
+
DrawerCloseButton: () => import_react54.ModalCloseButton,
|
150
|
+
DrawerContent: () => import_react54.DrawerContent,
|
151
|
+
DrawerContentProps: () => import_react54.DrawerContentProps,
|
152
|
+
DrawerFooter: () => import_react54.ModalFooter,
|
153
|
+
DrawerHeader: () => import_react54.ModalHeader,
|
154
|
+
DrawerOverlay: () => import_react54.ModalOverlay,
|
155
|
+
DrawerProps: () => import_react54.DrawerProps,
|
156
156
|
EmptyState: () => empty_state_default,
|
157
157
|
Fade: () => import_react121.Fade,
|
158
158
|
FadeProps: () => import_react121.FadeProps,
|
159
159
|
Field: () => field_default,
|
160
|
-
Flex: () =>
|
161
|
-
FlexProps: () =>
|
160
|
+
Flex: () => import_react51.Flex,
|
161
|
+
FlexProps: () => import_react51.FlexProps,
|
162
162
|
FormControl: () => import_react25.FormControl,
|
163
163
|
FormControlProps: () => import_react25.FormControlProps,
|
164
164
|
FormErrorMessage: () => import_react25.FormErrorMessage,
|
165
165
|
FormHelperText: () => import_react25.FormHelperText,
|
166
166
|
FormLabel: () => import_react25.FormLabel,
|
167
167
|
FormLabelProps: () => import_react25.FormLabelProps,
|
168
|
-
Grid: () =>
|
169
|
-
GridItem: () =>
|
170
|
-
GridItemProps: () =>
|
171
|
-
GridProps: () =>
|
172
|
-
HStack: () =>
|
168
|
+
Grid: () => import_react51.Grid,
|
169
|
+
GridItem: () => import_react51.GridItem,
|
170
|
+
GridItemProps: () => import_react51.GridItemProps,
|
171
|
+
GridProps: () => import_react51.GridProps,
|
172
|
+
HStack: () => import_react51.HStack,
|
173
173
|
Header: () => Header,
|
174
|
-
Heading: () =>
|
175
|
-
HeadingProps: () =>
|
174
|
+
Heading: () => import_react115.Heading,
|
175
|
+
HeadingProps: () => import_react115.HeadingProps,
|
176
176
|
Hide: () => import_react121.Hide,
|
177
177
|
HideProps: () => import_react121.HideProps,
|
178
|
-
Icon: () =>
|
178
|
+
Icon: () => import_react50.Icon,
|
179
179
|
IconButton: () => import_react10.IconButton,
|
180
180
|
IconButtonProps: () => import_react10.IconButtonProps,
|
181
|
-
IconProps: () =>
|
182
|
-
Image: () =>
|
183
|
-
ImageProps: () =>
|
181
|
+
IconProps: () => import_react50.IconProps,
|
182
|
+
Image: () => import_react50.Image,
|
183
|
+
ImageProps: () => import_react50.ImageProps,
|
184
184
|
Img: () => import_react121.Img,
|
185
185
|
ImgProps: () => import_react121.ImgProps,
|
186
186
|
InputAddonLeft: () => InputAddonLeft,
|
@@ -199,76 +199,76 @@ __export(src_exports, {
|
|
199
199
|
InputRightAddonProps: () => import_react25.InputRightAddonProps,
|
200
200
|
InputRightElement: () => import_react25.InputRightElement,
|
201
201
|
InputRightElementProps: () => import_react25.InputRightElementProps,
|
202
|
-
Link: () =>
|
203
|
-
LinkProps: () =>
|
204
|
-
List: () =>
|
205
|
-
ListIcon: () =>
|
206
|
-
ListItem: () =>
|
207
|
-
ListItemProps: () =>
|
208
|
-
ListProps: () =>
|
202
|
+
Link: () => import_react115.Link,
|
203
|
+
LinkProps: () => import_react115.LinkProps,
|
204
|
+
List: () => import_react52.List,
|
205
|
+
ListIcon: () => import_react52.ListIcon,
|
206
|
+
ListItem: () => import_react52.ListItem,
|
207
|
+
ListItemProps: () => import_react52.ListItemProps,
|
208
|
+
ListProps: () => import_react52.ListProps,
|
209
209
|
Loader: () => loader_default,
|
210
210
|
Logo: () => Logo,
|
211
211
|
MainMenu: () => navigation_default,
|
212
|
-
Modal: () =>
|
212
|
+
Modal: () => import_react54.Modal,
|
213
213
|
ModalBackButton: () => modal_back_button_default,
|
214
|
-
ModalBody: () =>
|
215
|
-
ModalBodyProps: () =>
|
216
|
-
ModalCloseButton: () =>
|
217
|
-
ModalContent: () =>
|
218
|
-
ModalContentProps: () =>
|
219
|
-
ModalContextProvider: () =>
|
220
|
-
ModalFocusScope: () =>
|
221
|
-
ModalFooter: () =>
|
222
|
-
ModalFooterProps: () =>
|
223
|
-
ModalHeader: () =>
|
224
|
-
ModalHeaderProps: () =>
|
225
|
-
ModalOverlay: () =>
|
226
|
-
ModalOverlayProps: () =>
|
227
|
-
ModalProps: () =>
|
214
|
+
ModalBody: () => import_react54.ModalBody,
|
215
|
+
ModalBodyProps: () => import_react54.ModalBodyProps,
|
216
|
+
ModalCloseButton: () => import_react54.ModalCloseButton,
|
217
|
+
ModalContent: () => import_react54.ModalContent,
|
218
|
+
ModalContentProps: () => import_react54.ModalContentProps,
|
219
|
+
ModalContextProvider: () => import_react54.ModalContextProvider,
|
220
|
+
ModalFocusScope: () => import_react54.ModalFocusScope,
|
221
|
+
ModalFooter: () => import_react54.ModalFooter,
|
222
|
+
ModalFooterProps: () => import_react54.ModalFooterProps,
|
223
|
+
ModalHeader: () => import_react54.ModalHeader,
|
224
|
+
ModalHeaderProps: () => import_react54.ModalHeaderProps,
|
225
|
+
ModalOverlay: () => import_react54.ModalOverlay,
|
226
|
+
ModalOverlayProps: () => import_react54.ModalOverlayProps,
|
227
|
+
ModalProps: () => import_react54.ModalProps,
|
228
228
|
MultiDatePickerMonth: () => multi_datepicker_month_default,
|
229
229
|
NavItem: () => NavItem,
|
230
230
|
Navbar: () => Navbar,
|
231
231
|
NavigationBar: () => navigation_bar_default,
|
232
|
-
OrderedList: () =>
|
232
|
+
OrderedList: () => import_react52.OrderedList,
|
233
233
|
Pagination: () => pagination_default,
|
234
234
|
PaginationDetail: () => pagination_detail_default,
|
235
235
|
PaginationFilter: () => pagination_filter_default,
|
236
|
-
PinInput: () =>
|
237
|
-
PinInputContext: () =>
|
238
|
-
PinInputDescendantsProvider: () =>
|
239
|
-
PinInputField: () =>
|
240
|
-
PinInputFieldProps: () =>
|
241
|
-
PinInputProps: () =>
|
242
|
-
PinInputProvider: () =>
|
243
|
-
Popover: () =>
|
244
|
-
PopoverAnchor: () =>
|
245
|
-
PopoverArrow: () =>
|
246
|
-
PopoverArrowProps: () =>
|
247
|
-
PopoverBody: () =>
|
248
|
-
PopoverBodyProps: () =>
|
249
|
-
PopoverCloseButton: () =>
|
250
|
-
PopoverContent: () =>
|
251
|
-
PopoverContentProps: () =>
|
252
|
-
PopoverFooter: () =>
|
253
|
-
PopoverFooterProps: () =>
|
254
|
-
PopoverHeader: () =>
|
255
|
-
PopoverHeaderProps: () =>
|
256
|
-
PopoverProps: () =>
|
257
|
-
PopoverTrigger: () =>
|
258
|
-
Portal: () =>
|
259
|
-
PortalProps: () =>
|
236
|
+
PinInput: () => import_react63.PinInput,
|
237
|
+
PinInputContext: () => import_react63.PinInputContext,
|
238
|
+
PinInputDescendantsProvider: () => import_react63.PinInputDescendantsProvider,
|
239
|
+
PinInputField: () => import_react63.PinInputField,
|
240
|
+
PinInputFieldProps: () => import_react63.PinInputFieldProps,
|
241
|
+
PinInputProps: () => import_react63.PinInputProps,
|
242
|
+
PinInputProvider: () => import_react63.PinInputProvider,
|
243
|
+
Popover: () => import_react64.Popover,
|
244
|
+
PopoverAnchor: () => import_react64.PopoverAnchor,
|
245
|
+
PopoverArrow: () => import_react64.PopoverArrow,
|
246
|
+
PopoverArrowProps: () => import_react64.PopoverArrowProps,
|
247
|
+
PopoverBody: () => import_react64.PopoverBody,
|
248
|
+
PopoverBodyProps: () => import_react64.PopoverBodyProps,
|
249
|
+
PopoverCloseButton: () => import_react64.PopoverCloseButton,
|
250
|
+
PopoverContent: () => import_react64.PopoverContent,
|
251
|
+
PopoverContentProps: () => import_react64.PopoverContentProps,
|
252
|
+
PopoverFooter: () => import_react64.PopoverFooter,
|
253
|
+
PopoverFooterProps: () => import_react64.PopoverFooterProps,
|
254
|
+
PopoverHeader: () => import_react64.PopoverHeader,
|
255
|
+
PopoverHeaderProps: () => import_react64.PopoverHeaderProps,
|
256
|
+
PopoverProps: () => import_react64.PopoverProps,
|
257
|
+
PopoverTrigger: () => import_react64.PopoverTrigger,
|
258
|
+
Portal: () => import_react64.Portal,
|
259
|
+
PortalProps: () => import_react64.PortalProps,
|
260
260
|
Profile: () => Profile,
|
261
|
-
Progress: () =>
|
262
|
-
ProgressFilledTrackProps: () =>
|
263
|
-
ProgressLabel: () =>
|
264
|
-
ProgressLabelProps: () =>
|
265
|
-
ProgressProps: () =>
|
266
|
-
ProgressTrackProps: () =>
|
261
|
+
Progress: () => import_react65.Progress,
|
262
|
+
ProgressFilledTrackProps: () => import_react65.ProgressFilledTrackProps,
|
263
|
+
ProgressLabel: () => import_react65.ProgressLabel,
|
264
|
+
ProgressLabelProps: () => import_react65.ProgressLabelProps,
|
265
|
+
ProgressProps: () => import_react65.ProgressProps,
|
266
|
+
ProgressTrackProps: () => import_react65.ProgressTrackProps,
|
267
267
|
Provider: () => provider_default,
|
268
268
|
ProviderContext: () => ProviderContext,
|
269
269
|
Radio: () => Radio,
|
270
270
|
RadioGroup: () => RadioGroup,
|
271
|
-
RadioGroupContext: () =>
|
271
|
+
RadioGroupContext: () => import_react68.RadioGroupContext,
|
272
272
|
Rating: () => rating_default,
|
273
273
|
RequiredIndicator: () => import_react25.RequiredIndicator,
|
274
274
|
RequiredIndicatorProps: () => import_react25.RequiredIndicatorProps,
|
@@ -284,15 +284,15 @@ __export(src_exports, {
|
|
284
284
|
Sidebar: () => Sidebar,
|
285
285
|
SidebarHeader: () => SidebarHeader,
|
286
286
|
SidebarMenu: () => SidebarMenu,
|
287
|
-
SimpleGrid: () =>
|
287
|
+
SimpleGrid: () => import_react51.SimpleGrid,
|
288
288
|
Skeleton: () => import_react5.Skeleton,
|
289
289
|
Slide: () => import_react121.Slide,
|
290
290
|
SlideFade: () => import_react121.SlideFade,
|
291
291
|
SlideFadeProps: () => import_react121.SlideFadeProps,
|
292
292
|
SlideProps: () => import_react121.SlideProps,
|
293
|
-
Spacer: () =>
|
294
|
-
Stack: () =>
|
295
|
-
StackProps: () =>
|
293
|
+
Spacer: () => import_react51.Spacer,
|
294
|
+
Stack: () => import_react51.Stack,
|
295
|
+
StackProps: () => import_react51.StackProps,
|
296
296
|
Step: () => import_react121.Step,
|
297
297
|
StepDescription: () => import_react121.StepDescription,
|
298
298
|
StepIcon: () => import_react121.StepIcon,
|
@@ -304,37 +304,37 @@ __export(src_exports, {
|
|
304
304
|
Stepper: () => import_react121.Stepper,
|
305
305
|
Switch: () => switch_default,
|
306
306
|
Tab: () => tab_default,
|
307
|
-
TabIndicator: () =>
|
308
|
-
TabIndicatorProps: () =>
|
309
|
-
TabList: () =>
|
310
|
-
TabListProps: () =>
|
311
|
-
TabPanel: () =>
|
312
|
-
TabPanelProps: () =>
|
313
|
-
TabPanels: () =>
|
314
|
-
TabPanelsProps: () =>
|
315
|
-
TabProps: () =>
|
316
|
-
TableBodyProps: () =>
|
317
|
-
TableCellProps: () =>
|
318
|
-
TableColumnHeaderProps: () =>
|
319
|
-
TableHeadProps: () =>
|
320
|
-
TableProps: () =>
|
321
|
-
TableRowProps: () =>
|
322
|
-
Tabs: () =>
|
323
|
-
TabsDescendantsProvider: () =>
|
324
|
-
TabsProps: () =>
|
325
|
-
TabsProvider: () =>
|
326
|
-
Tbody: () =>
|
327
|
-
Td: () =>
|
328
|
-
Text: () =>
|
329
|
-
TextProps: () =>
|
307
|
+
TabIndicator: () => import_react114.TabIndicator,
|
308
|
+
TabIndicatorProps: () => import_react114.TabIndicatorProps,
|
309
|
+
TabList: () => import_react114.TabList,
|
310
|
+
TabListProps: () => import_react114.TabListProps,
|
311
|
+
TabPanel: () => import_react114.TabPanel,
|
312
|
+
TabPanelProps: () => import_react114.TabPanelProps,
|
313
|
+
TabPanels: () => import_react114.TabPanels,
|
314
|
+
TabPanelsProps: () => import_react114.TabPanelsProps,
|
315
|
+
TabProps: () => import_react114.TabProps,
|
316
|
+
TableBodyProps: () => import_react112.TableBodyProps,
|
317
|
+
TableCellProps: () => import_react112.TableCellProps,
|
318
|
+
TableColumnHeaderProps: () => import_react112.TableColumnHeaderProps,
|
319
|
+
TableHeadProps: () => import_react112.TableHeadProps,
|
320
|
+
TableProps: () => import_react112.TableProps,
|
321
|
+
TableRowProps: () => import_react112.TableRowProps,
|
322
|
+
Tabs: () => import_react114.Tabs,
|
323
|
+
TabsDescendantsProvider: () => import_react114.TabsDescendantsProvider,
|
324
|
+
TabsProps: () => import_react114.TabsProps,
|
325
|
+
TabsProvider: () => import_react114.TabsProvider,
|
326
|
+
Tbody: () => import_react112.Tbody,
|
327
|
+
Td: () => import_react112.Td,
|
328
|
+
Text: () => import_react115.Text,
|
329
|
+
TextProps: () => import_react115.TextProps,
|
330
330
|
TextareaField: () => textarea_default,
|
331
|
-
Th: () =>
|
332
|
-
Thead: () =>
|
331
|
+
Th: () => import_react112.Th,
|
332
|
+
Thead: () => import_react112.Thead,
|
333
333
|
ThemeTypings: () => import_styled_system12.ThemeTypings,
|
334
334
|
ToastContainer: () => import_react_toastify2.ToastContainer,
|
335
335
|
Tooltip: () => Tooltip,
|
336
|
-
Tr: () =>
|
337
|
-
UnorderedList: () =>
|
336
|
+
Tr: () => import_react112.Tr,
|
337
|
+
UnorderedList: () => import_react52.UnorderedList,
|
338
338
|
Uploader: () => uploader_default,
|
339
339
|
UseAccordionItemProps: () => import_react3.UseAccordionItemProps,
|
340
340
|
UseAccordionItemReturn: () => import_react3.UseAccordionItemReturn,
|
@@ -349,31 +349,31 @@ __export(src_exports, {
|
|
349
349
|
UseImageProps: () => import_react121.UseImageProps,
|
350
350
|
UseImageReturn: () => import_react121.UseImageReturn,
|
351
351
|
UseMediaQueryOptions: () => import_react121.UseMediaQueryOptions,
|
352
|
-
UseModalProps: () =>
|
353
|
-
UseModalReturn: () =>
|
354
|
-
UsePinInputFieldProps: () =>
|
355
|
-
UsePinInputProps: () =>
|
356
|
-
UsePinInputReturn: () =>
|
352
|
+
UseModalProps: () => import_react54.UseModalProps,
|
353
|
+
UseModalReturn: () => import_react54.UseModalReturn,
|
354
|
+
UsePinInputFieldProps: () => import_react63.UsePinInputFieldProps,
|
355
|
+
UsePinInputProps: () => import_react63.UsePinInputProps,
|
356
|
+
UsePinInputReturn: () => import_react63.UsePinInputReturn,
|
357
357
|
UseQueryProps: () => import_react121.UseQueryProps,
|
358
|
-
UseRadioGroupReturn: () =>
|
359
|
-
UseRadioProps: () =>
|
360
|
-
UseRadioReturn: () =>
|
361
|
-
UseTabListProps: () =>
|
362
|
-
UseTabListReturn: () =>
|
363
|
-
UseTabOptions: () =>
|
364
|
-
UseTabPanelsProps: () =>
|
365
|
-
UseTabProps: () =>
|
366
|
-
UseTabsProps: () =>
|
367
|
-
UseTabsReturn: () =>
|
368
|
-
VStack: () =>
|
358
|
+
UseRadioGroupReturn: () => import_react68.UseRadioGroupReturn,
|
359
|
+
UseRadioProps: () => import_react68.UseRadioProps,
|
360
|
+
UseRadioReturn: () => import_react68.UseRadioReturn,
|
361
|
+
UseTabListProps: () => import_react114.UseTabListProps,
|
362
|
+
UseTabListReturn: () => import_react114.UseTabListReturn,
|
363
|
+
UseTabOptions: () => import_react114.UseTabOptions,
|
364
|
+
UseTabPanelsProps: () => import_react114.UseTabPanelsProps,
|
365
|
+
UseTabProps: () => import_react114.UseTabProps,
|
366
|
+
UseTabsProps: () => import_react114.UseTabsProps,
|
367
|
+
UseTabsReturn: () => import_react114.UseTabsReturn,
|
368
|
+
VStack: () => import_react51.VStack,
|
369
369
|
Version: () => Version,
|
370
370
|
VisuallyHidden: () => import_react121.VisuallyHidden,
|
371
371
|
VisuallyHiddenInput: () => import_react121.VisuallyHiddenInput,
|
372
372
|
VoilaLogo: () => VoilaLogo,
|
373
|
-
Wrap: () =>
|
374
|
-
WrapItem: () =>
|
375
|
-
WrapItemProps: () =>
|
376
|
-
WrapProps: () =>
|
373
|
+
Wrap: () => import_react51.Wrap,
|
374
|
+
WrapItem: () => import_react51.WrapItem,
|
375
|
+
WrapItemProps: () => import_react51.WrapItemProps,
|
376
|
+
WrapProps: () => import_react51.WrapProps,
|
377
377
|
XMSLogo: () => XMSLogo,
|
378
378
|
extendTheme: () => import_react134.extendTheme,
|
379
379
|
forwardRef: () => import_react134.forwardRef,
|
@@ -400,35 +400,35 @@ __export(src_exports, {
|
|
400
400
|
useDataTable: () => useDataTable,
|
401
401
|
useDimensions: () => import_react133.useDimensions,
|
402
402
|
useDisclosure: () => import_react133.useDisclosure,
|
403
|
-
useDrawerContext: () =>
|
403
|
+
useDrawerContext: () => import_react54.useDrawerContext,
|
404
404
|
useFetcher: () => useFetcher,
|
405
405
|
useImage: () => import_react121.useImage,
|
406
406
|
useInternalUI: () => useInternalUI,
|
407
407
|
useMergeRefs: () => import_react133.useMergeRefs,
|
408
|
-
useModal: () =>
|
409
|
-
useModalContext: () =>
|
410
|
-
useModalStyles: () =>
|
408
|
+
useModal: () => import_react54.useModal,
|
409
|
+
useModalContext: () => import_react54.useModalContext,
|
410
|
+
useModalStyles: () => import_react54.useModalStyles,
|
411
411
|
useOutsideClick: () => import_react133.useOutsideClick,
|
412
|
-
usePinInput: () =>
|
413
|
-
usePinInputContext: () =>
|
414
|
-
usePinInputField: () =>
|
415
|
-
useProgressStyles: () =>
|
412
|
+
usePinInput: () => import_react63.usePinInput,
|
413
|
+
usePinInputContext: () => import_react63.usePinInputContext,
|
414
|
+
usePinInputField: () => import_react63.usePinInputField,
|
415
|
+
useProgressStyles: () => import_react65.useProgressStyles,
|
416
416
|
useQuery: () => import_react121.useQuery,
|
417
|
-
useRadio: () =>
|
418
|
-
useRadioGroup: () =>
|
419
|
-
useRadioGroupContext: () =>
|
417
|
+
useRadio: () => import_react68.useRadio,
|
418
|
+
useRadioGroup: () => import_react68.useRadioGroup,
|
419
|
+
useRadioGroupContext: () => import_react68.useRadioGroupContext,
|
420
420
|
useSteps: () => import_react121.useSteps,
|
421
|
-
useTab: () =>
|
422
|
-
useTabIndicator: () =>
|
423
|
-
useTabList: () =>
|
424
|
-
useTabPanel: () =>
|
425
|
-
useTabPanels: () =>
|
426
|
-
useTabs: () =>
|
427
|
-
useTabsContext: () =>
|
428
|
-
useTabsDescendant: () =>
|
429
|
-
useTabsDescendants: () =>
|
430
|
-
useTabsDescendantsContext: () =>
|
431
|
-
useTabsStyles: () =>
|
421
|
+
useTab: () => import_react114.useTab,
|
422
|
+
useTabIndicator: () => import_react114.useTabIndicator,
|
423
|
+
useTabList: () => import_react114.useTabList,
|
424
|
+
useTabPanel: () => import_react114.useTabPanel,
|
425
|
+
useTabPanels: () => import_react114.useTabPanels,
|
426
|
+
useTabs: () => import_react114.useTabs,
|
427
|
+
useTabsContext: () => import_react114.useTabsContext,
|
428
|
+
useTabsDescendant: () => import_react114.useTabsDescendant,
|
429
|
+
useTabsDescendants: () => import_react114.useTabsDescendants,
|
430
|
+
useTabsDescendantsContext: () => import_react114.useTabsDescendantsContext,
|
431
|
+
useTabsStyles: () => import_react114.useTabsStyles,
|
432
432
|
useTheme: () => import_react133.useTheme,
|
433
433
|
useToast: () => useToast,
|
434
434
|
useToken: () => import_react133.useToken
|
@@ -2803,7 +2803,7 @@ EmptyState2.NotAuthorize = EmptyStateNotAuthorize;
|
|
2803
2803
|
var empty_state_default = EmptyState2;
|
2804
2804
|
|
2805
2805
|
// src/components/header/components/header.tsx
|
2806
|
-
var
|
2806
|
+
var import_react48 = require("@chakra-ui/react");
|
2807
2807
|
|
2808
2808
|
// src/components/header/components/logo.tsx
|
2809
2809
|
var import_react42 = require("@chakra-ui/react");
|
@@ -2834,7 +2834,7 @@ Logo.defaultProps = {
|
|
2834
2834
|
};
|
2835
2835
|
|
2836
2836
|
// src/components/header/components/profile.tsx
|
2837
|
-
var
|
2837
|
+
var import_react45 = require("@chakra-ui/react");
|
2838
2838
|
var import_fi2 = require("react-icons/fi");
|
2839
2839
|
|
2840
2840
|
// src/components/nav-item/components/nav-item.tsx
|
@@ -2882,14 +2882,41 @@ NavItem.defaultProps = {
|
|
2882
2882
|
"data-test-id": void 0
|
2883
2883
|
};
|
2884
2884
|
|
2885
|
-
// src/components/
|
2885
|
+
// src/components/tooltip/components/tooltip.tsx
|
2886
|
+
var import_react44 = require("@chakra-ui/react");
|
2886
2887
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
2888
|
+
var Tooltip = (props) => {
|
2889
|
+
const { children, bg = "neutral.700", textStyle = "text.sm", color: color2 = "white", width } = props;
|
2890
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
2891
|
+
import_react44.PopoverContent,
|
2892
|
+
{
|
2893
|
+
border: "none",
|
2894
|
+
bg,
|
2895
|
+
textStyle,
|
2896
|
+
width,
|
2897
|
+
ml: 1,
|
2898
|
+
placeItems: "center",
|
2899
|
+
borderRadius: props.borderRadius,
|
2900
|
+
children: [
|
2901
|
+
props.hasArrow && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.PopoverArrow, { color: color2, bg, shadow: "none" }),
|
2902
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.PopoverBody, { color: color2, ...props, children: props.label })
|
2903
|
+
]
|
2904
|
+
}
|
2905
|
+
);
|
2906
|
+
return props.isInteractive === true ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react44.Popover, { trigger: "hover", placement: props.placement, ...props.popoverProps, children: [
|
2907
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.PopoverTrigger, { children }),
|
2908
|
+
props.portal ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.Portal, { children: content }) : content
|
2909
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.Tooltip, { ...props, children });
|
2910
|
+
};
|
2911
|
+
|
2912
|
+
// src/components/header/components/profile.tsx
|
2913
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
2887
2914
|
var Profile = ({ color: color2, brandColor, data, badgeStyle, children, onLogout, ...props }) => {
|
2888
2915
|
var _a;
|
2889
|
-
const { isOpen, onToggle, onClose } = (0,
|
2890
|
-
return /* @__PURE__ */ (0,
|
2891
|
-
/* @__PURE__ */ (0,
|
2892
|
-
|
2916
|
+
const { isOpen, onToggle, onClose } = (0, import_react45.useDisclosure)();
|
2917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.Popover, { placement: "bottom-end", isOpen, onClose, children: [
|
2918
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2919
|
+
import_react45.Box,
|
2893
2920
|
{
|
2894
2921
|
"data-test-id": "CTA_Navbar_Profile_wrapper",
|
2895
2922
|
as: "button",
|
@@ -2905,14 +2932,14 @@ var Profile = ({ color: color2, brandColor, data, badgeStyle, children, onLogout
|
|
2905
2932
|
onClick: onToggle,
|
2906
2933
|
color: color2,
|
2907
2934
|
...props,
|
2908
|
-
children: /* @__PURE__ */ (0,
|
2909
|
-
/* @__PURE__ */ (0,
|
2910
|
-
/* @__PURE__ */ (0,
|
2911
|
-
/* @__PURE__ */ (0,
|
2912
|
-
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0,
|
2913
|
-
/* @__PURE__ */ (0,
|
2914
|
-
/* @__PURE__ */ (0,
|
2915
|
-
|
2935
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.HStack, { children: [
|
2936
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.VStack, { alignItems: "flex-end", spacing: "0", ml: "2", color: color2, children: [
|
2937
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Text, { textStyle: "text.xs", mb: "1", children: data == null ? void 0 : data.email }),
|
2938
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.Flex, { alignItems: "center", children: [
|
2939
|
+
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
2940
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.userRole) || "user" }),
|
2941
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2942
|
+
import_react45.Box,
|
2916
2943
|
{
|
2917
2944
|
className: "catalyst_header-profile-divider",
|
2918
2945
|
h: "3",
|
@@ -2922,36 +2949,54 @@ var Profile = ({ color: color2, brandColor, data, badgeStyle, children, onLogout
|
|
2922
2949
|
}
|
2923
2950
|
)
|
2924
2951
|
] }),
|
2925
|
-
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0,
|
2926
|
-
/* @__PURE__ */ (0,
|
2927
|
-
data.office.length > 1 && /* @__PURE__ */ (0,
|
2928
|
-
|
2952
|
+
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.Flex, { align: "center", justify: "center", children: [
|
2953
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Text, { textStyle: "text.xs", children: data.office[0] }),
|
2954
|
+
data.office.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2955
|
+
Tooltip,
|
2929
2956
|
{
|
2930
|
-
|
2931
|
-
|
2932
|
-
|
2933
|
-
|
2934
|
-
|
2935
|
-
|
2936
|
-
|
2937
|
-
|
2938
|
-
|
2939
|
-
|
2940
|
-
|
2957
|
+
isInteractive: true,
|
2958
|
+
hasArrow: true,
|
2959
|
+
p: "2",
|
2960
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.Box, { children: [
|
2961
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Text, { children: "Akses Office:" }),
|
2962
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Text, { children: data.office.sort().join(", ") })
|
2963
|
+
] }),
|
2964
|
+
textAlign: "left",
|
2965
|
+
placement: "bottom-end",
|
2966
|
+
popoverProps: {
|
2967
|
+
offset: [10, 8]
|
2968
|
+
},
|
2969
|
+
width: 186,
|
2970
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
2971
|
+
badge_default,
|
2972
|
+
{
|
2973
|
+
ml: "1",
|
2974
|
+
pill: true,
|
2975
|
+
variant: "neutral-light",
|
2976
|
+
boxSize: "4.5",
|
2977
|
+
justifyContent: "center",
|
2978
|
+
p: "0.5",
|
2979
|
+
...badgeStyle,
|
2980
|
+
children: [
|
2981
|
+
data.office.length - 1,
|
2982
|
+
"+"
|
2983
|
+
]
|
2984
|
+
}
|
2985
|
+
) })
|
2941
2986
|
}
|
2942
2987
|
)
|
2943
|
-
] }) : /* @__PURE__ */ (0,
|
2988
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.office) || "office" })
|
2944
2989
|
] })
|
2945
2990
|
] }),
|
2946
|
-
/* @__PURE__ */ (0,
|
2991
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Box, { border: "2px solid", borderColor: "transparent", className: "catalyst-header-avatar", rounded: "full", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Avatar, { size: "sm", bg: brandColor, color: "white", name: (_a = data == null ? void 0 : data.name) != null ? _a : data == null ? void 0 : data.email }) }) })
|
2947
2992
|
] })
|
2948
2993
|
}
|
2949
2994
|
),
|
2950
|
-
children || /* @__PURE__ */ (0,
|
2951
|
-
/* @__PURE__ */ (0,
|
2952
|
-
/* @__PURE__ */ (0,
|
2953
|
-
/* @__PURE__ */ (0,
|
2954
|
-
/* @__PURE__ */ (0,
|
2995
|
+
children || /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.PopoverContent, { bg: "white", maxW: 200, children: [
|
2996
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.PopoverArrow, { bg: "white" }),
|
2997
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.PopoverBody, { py: "1", px: "0", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(NavItem, { "data-test-id": "CTA_Navbar_logout-button", onClick: onLogout, rounded: "none", px: "4", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.Box, { display: "flex", alignItems: "center", children: [
|
2998
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_fi2.FiPower, {}),
|
2999
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Text, { ml: "2", children: "Logout" })
|
2955
3000
|
] }) }) })
|
2956
3001
|
] })
|
2957
3002
|
] });
|
@@ -2964,17 +3009,17 @@ Profile.defaultProps = {
|
|
2964
3009
|
};
|
2965
3010
|
|
2966
3011
|
// src/components/header/components/switch-mode.tsx
|
2967
|
-
var
|
3012
|
+
var import_react46 = require("@chakra-ui/react");
|
2968
3013
|
var import_fi3 = require("react-icons/fi");
|
2969
|
-
var
|
3014
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
2970
3015
|
var SwitchMode = () => {
|
2971
|
-
const { colorMode, toggleColorMode } = (0,
|
2972
|
-
return /* @__PURE__ */ (0,
|
3016
|
+
const { colorMode, toggleColorMode } = (0, import_react46.useColorMode)();
|
3017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react46.Box, { "data-test-id": "rhYuTDCiWkFqr96upiEEh", mx: 5, onClick: toggleColorMode, cursor: "pointer", children: colorMode === "light" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_fi3.FiMoon, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_fi3.FiSun, { size: 20 }) });
|
2973
3018
|
};
|
2974
3019
|
var switch_mode_default = SwitchMode;
|
2975
3020
|
|
2976
3021
|
// src/components/header/components/version.tsx
|
2977
|
-
var
|
3022
|
+
var import_react47 = require("@chakra-ui/react");
|
2978
3023
|
|
2979
3024
|
// src/components/header/utils/formatter.ts
|
2980
3025
|
function environmentName(env2) {
|
@@ -2989,15 +3034,15 @@ function environmentName(env2) {
|
|
2989
3034
|
}
|
2990
3035
|
|
2991
3036
|
// src/components/header/components/version.tsx
|
2992
|
-
var
|
3037
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
2993
3038
|
var Version = ({
|
2994
3039
|
hideEnv,
|
2995
3040
|
version,
|
2996
3041
|
environment,
|
2997
3042
|
onOpenModalRelease,
|
2998
3043
|
versionStyle
|
2999
|
-
}) => /* @__PURE__ */ (0,
|
3000
|
-
typeof version === "string" ? /* @__PURE__ */ (0,
|
3044
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
|
3045
|
+
typeof version === "string" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
3001
3046
|
badge_default,
|
3002
3047
|
{
|
3003
3048
|
"data-test-id": "CTA_header-version-badge",
|
@@ -3011,8 +3056,8 @@ var Version = ({
|
|
3011
3056
|
children: version
|
3012
3057
|
}
|
3013
3058
|
) : version,
|
3014
|
-
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ (0,
|
3015
|
-
|
3059
|
+
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
3060
|
+
import_react47.Box,
|
3016
3061
|
{
|
3017
3062
|
background: "primary.50",
|
3018
3063
|
color: "primary.500",
|
@@ -3034,7 +3079,7 @@ Version.defaultProps = {
|
|
3034
3079
|
};
|
3035
3080
|
|
3036
3081
|
// src/components/header/components/header.tsx
|
3037
|
-
var
|
3082
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
3038
3083
|
var Header = ({
|
3039
3084
|
brandColor,
|
3040
3085
|
data,
|
@@ -3052,8 +3097,8 @@ var Header = ({
|
|
3052
3097
|
bg = "white",
|
3053
3098
|
versionStyle,
|
3054
3099
|
...props
|
3055
|
-
}) => /* @__PURE__ */ (0,
|
3056
|
-
|
3100
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react48.Flex, { minH: 15, bg, shadow: "raised", px: 6, py: 3, alignItems: "center", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
3101
|
+
import_react48.Flex,
|
3057
3102
|
{
|
3058
3103
|
h: "auto",
|
3059
3104
|
w: "full",
|
@@ -3061,13 +3106,13 @@ var Header = ({
|
|
3061
3106
|
justifyContent: !mainLogo ? "flex-end" : "space-between",
|
3062
3107
|
pos: "relative",
|
3063
3108
|
children: [
|
3064
|
-
mainLogo && /* @__PURE__ */ (0,
|
3065
|
-
/* @__PURE__ */ (0,
|
3109
|
+
mainLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react48.Flex, { alignItems: "center", children: [
|
3110
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Logo, { url: urlLogo, imageUrl: mainLogo, height: mainLogoSize }),
|
3066
3111
|
children && children
|
3067
3112
|
] }),
|
3068
|
-
centerLogo && /* @__PURE__ */ (0,
|
3069
|
-
/* @__PURE__ */ (0,
|
3070
|
-
/* @__PURE__ */ (0,
|
3113
|
+
centerLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react48.HStack, { w: "fit-content", spacing: 2, alignItems: "center", pos: "absolute", left: "50%", transform: "translate(-50%,0)", children: [
|
3114
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Logo, { url: urlLogo, imageUrl: centerLogo, height: centerLogoSize }),
|
3115
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
3071
3116
|
Version,
|
3072
3117
|
{
|
3073
3118
|
hideEnv,
|
@@ -3078,9 +3123,9 @@ var Header = ({
|
|
3078
3123
|
}
|
3079
3124
|
)
|
3080
3125
|
] }),
|
3081
|
-
profile || /* @__PURE__ */ (0,
|
3082
|
-
!hideSwitchMode && /* @__PURE__ */ (0,
|
3083
|
-
/* @__PURE__ */ (0,
|
3126
|
+
profile || /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react48.Flex, { alignItems: "center", children: [
|
3127
|
+
!hideSwitchMode && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(switch_mode_default, {}),
|
3128
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Profile, { color: props.color, brandColor, data, onLogout })
|
3084
3129
|
] })
|
3085
3130
|
]
|
3086
3131
|
}
|
@@ -3102,11 +3147,11 @@ Header.defaultProps = {
|
|
3102
3147
|
};
|
3103
3148
|
|
3104
3149
|
// src/components/header/components/navbar.tsx
|
3105
|
-
var
|
3106
|
-
var
|
3150
|
+
var import_react49 = require("@chakra-ui/react");
|
3151
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
3107
3152
|
var Navbar = ({ bg = "white", children, ...props }) => {
|
3108
|
-
return /* @__PURE__ */ (0,
|
3109
|
-
|
3153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
3154
|
+
import_react49.Flex,
|
3110
3155
|
{
|
3111
3156
|
minH: "15",
|
3112
3157
|
h: "15",
|
@@ -3126,23 +3171,23 @@ var Navbar = ({ bg = "white", children, ...props }) => {
|
|
3126
3171
|
Navbar.displayName = "Navbar";
|
3127
3172
|
|
3128
3173
|
// src/components/image/index.ts
|
3129
|
-
var
|
3174
|
+
var import_react50 = require("@chakra-ui/react");
|
3130
3175
|
|
3131
3176
|
// src/components/layouting/index.ts
|
3132
|
-
var
|
3177
|
+
var import_react51 = require("@chakra-ui/react");
|
3133
3178
|
|
3134
3179
|
// src/components/list/index.tsx
|
3135
|
-
var
|
3180
|
+
var import_react52 = require("@chakra-ui/react");
|
3136
3181
|
|
3137
3182
|
// src/components/modal/components/modal-back-button.tsx
|
3138
3183
|
var import_icons3 = require("@chakra-ui/icons");
|
3139
|
-
var
|
3140
|
-
var
|
3184
|
+
var import_react53 = require("@chakra-ui/react");
|
3185
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
3141
3186
|
var ModalBackButton = ({ onClick }) => {
|
3142
|
-
return /* @__PURE__ */ (0,
|
3143
|
-
|
3187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
3188
|
+
import_react53.IconButton,
|
3144
3189
|
{
|
3145
|
-
icon: /* @__PURE__ */ (0,
|
3190
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons3.ChevronLeftIcon, { w: "4.5", h: "4.5" }),
|
3146
3191
|
size: "sm",
|
3147
3192
|
minW: "6",
|
3148
3193
|
h: "6",
|
@@ -3160,36 +3205,36 @@ var ModalBackButton = ({ onClick }) => {
|
|
3160
3205
|
var modal_back_button_default = ModalBackButton;
|
3161
3206
|
|
3162
3207
|
// src/components/modal/index.ts
|
3163
|
-
var
|
3208
|
+
var import_react54 = require("@chakra-ui/react");
|
3164
3209
|
|
3165
3210
|
// src/components/navigation/components/navigation.tsx
|
3166
|
-
var
|
3211
|
+
var import_react55 = require("@chakra-ui/react");
|
3167
3212
|
var Icon5 = __toESM(require("@ctlyst.id/internal-icon"));
|
3168
|
-
var
|
3213
|
+
var import_react56 = require("@emotion/react");
|
3169
3214
|
|
3170
3215
|
// src/components/navigation/components/mapping-icon.tsx
|
3171
3216
|
var Icon4 = __toESM(require("@ctlyst.id/internal-icon"));
|
3172
|
-
var
|
3217
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
3173
3218
|
var mappingIcon = /* @__PURE__ */ new Map([
|
3174
|
-
["Order", /* @__PURE__ */ (0,
|
3175
|
-
["Fulfillment", /* @__PURE__ */ (0,
|
3176
|
-
["Transfer Stock", /* @__PURE__ */ (0,
|
3177
|
-
["Stock", /* @__PURE__ */ (0,
|
3178
|
-
["Product Database", /* @__PURE__ */ (0,
|
3179
|
-
["Purchasing", /* @__PURE__ */ (0,
|
3180
|
-
["Reseller", /* @__PURE__ */ (0,
|
3181
|
-
["Retur", /* @__PURE__ */ (0,
|
3182
|
-
["Other", /* @__PURE__ */ (0,
|
3183
|
-
["Content", /* @__PURE__ */ (0,
|
3184
|
-
["Customer", /* @__PURE__ */ (0,
|
3185
|
-
["Voucher", /* @__PURE__ */ (0,
|
3219
|
+
["Order", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon4.ShoppingBag, { size: 4, color: "inherit" }, "order")],
|
3220
|
+
["Fulfillment", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon4.ShoppingCart, { size: 4, color: "inherit" }, "fullfilment")],
|
3221
|
+
["Transfer Stock", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon4.Repeat, { size: 4, color: "inherit" }, "transfer-stock")],
|
3222
|
+
["Stock", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon4.Box, { size: 4, color: "inherit" }, "stock")],
|
3223
|
+
["Product Database", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon4.Layers, { size: 4, color: "inherit" }, "product-database")],
|
3224
|
+
["Purchasing", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon4.DollarSign, { size: 4, color: "inherit" }, "purchasing")],
|
3225
|
+
["Reseller", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon4.Users, { size: 4, color: "inherit" }, "reseller")],
|
3226
|
+
["Retur", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon4.RotateCcw, { size: 4, color: "inherit" }, "retur")],
|
3227
|
+
["Other", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon4.Settings, { size: 4, color: "inherit" }, "other")],
|
3228
|
+
["Content", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon4.Layout, { size: 4, color: "inherit" }, "content")],
|
3229
|
+
["Customer", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon4.HelpCircle, { size: 4, color: "inherit" }, "content")],
|
3230
|
+
["Voucher", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon4.Gift, { size: 4, color: "inherit" }, "content")]
|
3186
3231
|
]);
|
3187
3232
|
|
3188
3233
|
// src/components/navigation/components/navigation.tsx
|
3189
|
-
var
|
3234
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
3190
3235
|
var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
3191
|
-
return /* @__PURE__ */ (0,
|
3192
|
-
|
3236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react55.Box, { borderRadius: "md", overflowX: "auto", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3237
|
+
import_react55.Flex,
|
3193
3238
|
{
|
3194
3239
|
bg: "white",
|
3195
3240
|
w: "full",
|
@@ -3203,9 +3248,9 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3203
3248
|
children: navigations == null ? void 0 : navigations.map((navigation) => {
|
3204
3249
|
const isActive = activePath.startsWith(navigation.navLink || "");
|
3205
3250
|
const activeBg = isActive ? "primary.500" : void 0;
|
3206
|
-
return /* @__PURE__ */ (0,
|
3207
|
-
/* @__PURE__ */ (0,
|
3208
|
-
|
3251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react55.Popover, { trigger: "hover", placement: "bottom-start", children: ({ isOpen }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
|
3252
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react55.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3253
|
+
import_react55.Button,
|
3209
3254
|
{
|
3210
3255
|
h: 7.5,
|
3211
3256
|
p: 2,
|
@@ -3218,14 +3263,14 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3218
3263
|
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
3219
3264
|
color: isActive ? "primary.50" : "black.high",
|
3220
3265
|
leftIcon: mappingIcon.get(navigation.title),
|
3221
|
-
rightIcon: /* @__PURE__ */ (0,
|
3266
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon5.ChevronDown, { size: 4, color: "inherit" }),
|
3222
3267
|
children: navigation.title
|
3223
3268
|
}
|
3224
3269
|
) }),
|
3225
|
-
navigation.children && /* @__PURE__ */ (0,
|
3226
|
-
|
3270
|
+
navigation.children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react55.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react55.Box, { zIndex: "popover", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3271
|
+
import_react55.PopoverContent,
|
3227
3272
|
{
|
3228
|
-
bg: (0,
|
3273
|
+
bg: (0, import_react55.useColorModeValue)("white", "ebony-clay.800"),
|
3229
3274
|
maxW: 250,
|
3230
3275
|
border: "none",
|
3231
3276
|
borderRadius: "md",
|
@@ -3234,16 +3279,16 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3234
3279
|
const link = navHost ? `${navHost}${navLink}` : navLink;
|
3235
3280
|
const isLocalLink = host === navHost;
|
3236
3281
|
const isActiveSub = activePath === navLink;
|
3237
|
-
return /* @__PURE__ */ (0,
|
3238
|
-
|
3282
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3283
|
+
import_react55.Link,
|
3239
3284
|
{
|
3240
3285
|
as: isLocalLink ? as : void 0,
|
3241
3286
|
href: link,
|
3242
3287
|
_hover: {
|
3243
3288
|
textDecoration: "none"
|
3244
3289
|
},
|
3245
|
-
children: /* @__PURE__ */ (0,
|
3246
|
-
|
3290
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
3291
|
+
import_react55.Box,
|
3247
3292
|
{
|
3248
3293
|
display: "flex",
|
3249
3294
|
position: "relative",
|
@@ -3251,24 +3296,24 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3251
3296
|
cursor: "pointer",
|
3252
3297
|
transition: "padding 0.35s ease 0s",
|
3253
3298
|
_hover: {
|
3254
|
-
backgroundColor: (0,
|
3255
|
-
color: (0,
|
3299
|
+
backgroundColor: (0, import_react55.useColorModeValue)("dove-gray.50", "mirage.900"),
|
3300
|
+
color: (0, import_react55.useColorModeValue)("primary.500", "dove-gray.600"),
|
3256
3301
|
px: 5,
|
3257
3302
|
py: 4,
|
3258
3303
|
_first: { borderTopRadius: "md" },
|
3259
3304
|
_last: { borderBottomRadius: "md" }
|
3260
3305
|
},
|
3261
3306
|
color: isActiveSub ? "primary.500" : "inherit",
|
3262
|
-
css:
|
3307
|
+
css: import_react56.css`
|
3263
3308
|
border-spacing: 4px;
|
3264
3309
|
`,
|
3265
3310
|
px: 6,
|
3266
3311
|
py: 4,
|
3267
3312
|
children: [
|
3268
3313
|
mappingIcon.get(navigation.title),
|
3269
|
-
/* @__PURE__ */ (0,
|
3270
|
-
isActiveSub && /* @__PURE__ */ (0,
|
3271
|
-
|
3314
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react55.Text, { fontSize: "text.sm", ml: 3, children: title }),
|
3315
|
+
isActiveSub && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3316
|
+
import_react55.Box,
|
3272
3317
|
{
|
3273
3318
|
width: 0.5,
|
3274
3319
|
height: 8,
|
@@ -3301,9 +3346,9 @@ Navigation.defaultProps = {
|
|
3301
3346
|
var navigation_default = Navigation;
|
3302
3347
|
|
3303
3348
|
// src/components/navigation/components/navigation-bar.tsx
|
3304
|
-
var
|
3349
|
+
var import_react57 = require("@chakra-ui/react");
|
3305
3350
|
var Icon6 = __toESM(require("@ctlyst.id/internal-icon"));
|
3306
|
-
var
|
3351
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
3307
3352
|
var NavigationBar = ({
|
3308
3353
|
navigations,
|
3309
3354
|
isFetched,
|
@@ -3318,8 +3363,8 @@ var NavigationBar = ({
|
|
3318
3363
|
}
|
3319
3364
|
return subMenu.navHost + subMenu.navLink;
|
3320
3365
|
};
|
3321
|
-
return /* @__PURE__ */ (0,
|
3322
|
-
|
3366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react57.Box, { hidden: isFetched && navigations === void 0, "data-test-id": "CT_component_navigation_cms", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3367
|
+
import_react57.Flex,
|
3323
3368
|
{
|
3324
3369
|
bg: "white",
|
3325
3370
|
w: "full",
|
@@ -3335,9 +3380,9 @@ var NavigationBar = ({
|
|
3335
3380
|
const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
|
3336
3381
|
const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
|
3337
3382
|
const activeBg = isActive ? "primary.500" : void 0;
|
3338
|
-
return /* @__PURE__ */ (0,
|
3339
|
-
/* @__PURE__ */ (0,
|
3340
|
-
|
3383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react57.Popover, { isLazy: true, trigger: "hover", placement: "bottom-start", openDelay: 100, closeDelay: 100, children: ({ isOpen, onClose }) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
3384
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react57.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3385
|
+
import_react57.Button,
|
3341
3386
|
{
|
3342
3387
|
h: 7.5,
|
3343
3388
|
p: 2,
|
@@ -3350,12 +3395,12 @@ var NavigationBar = ({
|
|
3350
3395
|
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
3351
3396
|
color: isActive ? "primary.50" : "black.high",
|
3352
3397
|
leftIcon: mappingIcon2.get(item.title),
|
3353
|
-
rightIcon: /* @__PURE__ */ (0,
|
3398
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon6.ChevronDown, { size: 4, color: "inherit" }),
|
3354
3399
|
children: item.title
|
3355
3400
|
}
|
3356
3401
|
) }),
|
3357
|
-
item.children && /* @__PURE__ */ (0,
|
3358
|
-
|
3402
|
+
item.children && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react57.PopoverContent, { bg: "white", boxShadow: "raised", borderRadius: "md", py: 1, width: 240, children: item.children.map((subMenu) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
3403
|
+
import_react57.Link,
|
3359
3404
|
{
|
3360
3405
|
href: urlMenu(subMenu),
|
3361
3406
|
display: "flex",
|
@@ -3372,7 +3417,7 @@ var NavigationBar = ({
|
|
3372
3417
|
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
3373
3418
|
children: [
|
3374
3419
|
mappingIcon2.get(item.title),
|
3375
|
-
/* @__PURE__ */ (0,
|
3420
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react57.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
3376
3421
|
]
|
3377
3422
|
},
|
3378
3423
|
subMenu.id
|
@@ -3389,18 +3434,18 @@ var navigation_bar_default = NavigationBar;
|
|
3389
3434
|
|
3390
3435
|
// src/components/pagination/components/pagination.tsx
|
3391
3436
|
var import_icons4 = require("@chakra-ui/icons");
|
3392
|
-
var
|
3437
|
+
var import_react60 = require("@chakra-ui/react");
|
3393
3438
|
|
3394
3439
|
// src/components/pagination/components/pagination-button.tsx
|
3395
|
-
var
|
3396
|
-
var
|
3397
|
-
var PaginationButton = (0,
|
3398
|
-
const btnBg = (0,
|
3399
|
-
const btnColor = (0,
|
3400
|
-
const btnNotActiveBg = (0,
|
3401
|
-
const btnNotActiveColor = (0,
|
3402
|
-
return /* @__PURE__ */ (0,
|
3403
|
-
|
3440
|
+
var import_react58 = require("@chakra-ui/react");
|
3441
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
3442
|
+
var PaginationButton = (0, import_react58.forwardRef)(({ className, style, isActive, children, ...rest }, ref) => {
|
3443
|
+
const btnBg = (0, import_react58.useColorModeValue)("neutral.300", "mirage.900");
|
3444
|
+
const btnColor = (0, import_react58.useColorModeValue)("black.high", "primary.300");
|
3445
|
+
const btnNotActiveBg = (0, import_react58.useColorModeValue)("secondary.50", "primary.500");
|
3446
|
+
const btnNotActiveColor = (0, import_react58.useColorModeValue)("primary.500", "white");
|
3447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
3448
|
+
import_react58.Button,
|
3404
3449
|
{
|
3405
3450
|
"data-test-id": "Pagination-Button",
|
3406
3451
|
ref,
|
@@ -3421,7 +3466,7 @@ var PaginationButton = (0, import_react57.forwardRef)(({ className, style, isAct
|
|
3421
3466
|
color: btnNotActiveColor
|
3422
3467
|
} : {},
|
3423
3468
|
_disabled: {
|
3424
|
-
background: (0,
|
3469
|
+
background: (0, import_react58.useColorModeValue)("neutral.300", "mirage.900"),
|
3425
3470
|
color: "neutral.600",
|
3426
3471
|
pointerEvents: "none"
|
3427
3472
|
},
|
@@ -3437,16 +3482,16 @@ PaginationButton.defaultProps = {
|
|
3437
3482
|
var pagination_button_default = PaginationButton;
|
3438
3483
|
|
3439
3484
|
// src/components/pagination/components/pagination-button-trigger.tsx
|
3440
|
-
var
|
3441
|
-
var
|
3485
|
+
var import_react59 = require("@chakra-ui/react");
|
3486
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
3442
3487
|
var PaginationButtonTrigger = ({
|
3443
3488
|
color: color2,
|
3444
3489
|
isDisabled,
|
3445
3490
|
onClick,
|
3446
3491
|
visuallyHidden,
|
3447
3492
|
icon
|
3448
|
-
}) => /* @__PURE__ */ (0,
|
3449
|
-
/* @__PURE__ */ (0,
|
3493
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(pagination_button_default, { "data-test-id": "DLVCc_fBK35spHm5WxjcJ", color: color2, isDisabled, onClick, children: [
|
3494
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react59.VisuallyHidden, { children: visuallyHidden }),
|
3450
3495
|
icon
|
3451
3496
|
] });
|
3452
3497
|
PaginationButtonTrigger.defaultProps = {
|
@@ -3459,10 +3504,10 @@ PaginationButtonTrigger.defaultProps = {
|
|
3459
3504
|
var pagination_button_trigger_default = PaginationButtonTrigger;
|
3460
3505
|
|
3461
3506
|
// src/components/pagination/components/pagination.tsx
|
3462
|
-
var
|
3507
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
3463
3508
|
var Pagination = ({ className, current, total, onSelect }) => {
|
3464
|
-
const btnColorDisabled = (0,
|
3465
|
-
const btnColor = (0,
|
3509
|
+
const btnColorDisabled = (0, import_react60.useColorModeValue)("secondary.100", "primary.500");
|
3510
|
+
const btnColor = (0, import_react60.useColorModeValue)("primary.500", "secondary.100");
|
3466
3511
|
const disabledPrevious = current === 1;
|
3467
3512
|
const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;
|
3468
3513
|
const disabledNext = current === total;
|
@@ -3489,8 +3534,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3489
3534
|
}
|
3490
3535
|
return pageButtons;
|
3491
3536
|
};
|
3492
|
-
return /* @__PURE__ */ (0,
|
3493
|
-
/* @__PURE__ */ (0,
|
3537
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react60.Box, { className, display: "inline-flex", alignItems: "center", children: [
|
3538
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react60.Box, { mr: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3494
3539
|
pagination_button_trigger_default,
|
3495
3540
|
{
|
3496
3541
|
"data-test-id": "Pagination-Button",
|
@@ -3498,11 +3543,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3498
3543
|
isDisabled: disabledPrevious,
|
3499
3544
|
onClick: () => handleSelectPage(1),
|
3500
3545
|
visuallyHidden: "First Page",
|
3501
|
-
icon: /* @__PURE__ */ (0,
|
3546
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ArrowLeftIcon, { width: 2 })
|
3502
3547
|
}
|
3503
3548
|
) }),
|
3504
|
-
/* @__PURE__ */ (0,
|
3505
|
-
/* @__PURE__ */ (0,
|
3549
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react60.Box, { bg: "neutral.300", borderRadius: "full", children: [
|
3550
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3506
3551
|
pagination_button_trigger_default,
|
3507
3552
|
{
|
3508
3553
|
"data-test-id": "Pagination-Button",
|
@@ -3510,22 +3555,22 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3510
3555
|
isDisabled: disabledPrevious,
|
3511
3556
|
onClick: () => handleSelectPage(current - 1),
|
3512
3557
|
visuallyHidden: "Previous Page",
|
3513
|
-
icon: /* @__PURE__ */ (0,
|
3558
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ChevronLeftIcon, {})
|
3514
3559
|
}
|
3515
3560
|
),
|
3516
3561
|
generatePages().map((page) => {
|
3517
|
-
return /* @__PURE__ */ (0,
|
3562
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3518
3563
|
pagination_button_default,
|
3519
3564
|
{
|
3520
3565
|
"data-test-id": "Pagination-Button",
|
3521
3566
|
isActive: page === current,
|
3522
3567
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
3523
|
-
children: /* @__PURE__ */ (0,
|
3568
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react60.Text, { scale: 300, fontSize: "text.sm", lineHeight: 18, fontWeight: 500, children: page })
|
3524
3569
|
},
|
3525
3570
|
page
|
3526
3571
|
);
|
3527
3572
|
}),
|
3528
|
-
/* @__PURE__ */ (0,
|
3573
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3529
3574
|
pagination_button_trigger_default,
|
3530
3575
|
{
|
3531
3576
|
"data-test-id": "Pagination-Button",
|
@@ -3533,11 +3578,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3533
3578
|
isDisabled: disabledNext,
|
3534
3579
|
onClick: () => handleSelectPage(current + 1),
|
3535
3580
|
visuallyHidden: "Next Page",
|
3536
|
-
icon: /* @__PURE__ */ (0,
|
3581
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ChevronRightIcon, {})
|
3537
3582
|
}
|
3538
3583
|
)
|
3539
3584
|
] }),
|
3540
|
-
/* @__PURE__ */ (0,
|
3585
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react60.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3541
3586
|
pagination_button_trigger_default,
|
3542
3587
|
{
|
3543
3588
|
"data-test-id": "Pagination-Button",
|
@@ -3545,7 +3590,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3545
3590
|
isDisabled: disabledNext,
|
3546
3591
|
onClick: () => handleSelectPage(total),
|
3547
3592
|
visuallyHidden: "Last Page",
|
3548
|
-
icon: /* @__PURE__ */ (0,
|
3593
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ArrowRightIcon, { width: 2 })
|
3549
3594
|
}
|
3550
3595
|
) })
|
3551
3596
|
] });
|
@@ -3558,8 +3603,8 @@ Pagination.displayName = "Pagination";
|
|
3558
3603
|
var pagination_default = Pagination;
|
3559
3604
|
|
3560
3605
|
// src/components/pagination/components/pagination-detail.tsx
|
3561
|
-
var
|
3562
|
-
var
|
3606
|
+
var import_react61 = require("@chakra-ui/react");
|
3607
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
3563
3608
|
var PaginationDetail = ({
|
3564
3609
|
page,
|
3565
3610
|
limit,
|
@@ -3569,15 +3614,15 @@ var PaginationDetail = ({
|
|
3569
3614
|
lineHeight = 18,
|
3570
3615
|
...rest
|
3571
3616
|
}) => {
|
3572
|
-
return /* @__PURE__ */ (0,
|
3617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react61.Text, { scale: scale2, fontSize, lineHeight, ...rest, children: `${(page - 1) * limit + 1}-${limit * page < length ? limit * page : length} dari ${length} item` });
|
3573
3618
|
};
|
3574
3619
|
var pagination_detail_default = PaginationDetail;
|
3575
3620
|
|
3576
3621
|
// src/components/pagination/components/pagination-filter.tsx
|
3577
|
-
var
|
3622
|
+
var import_react62 = require("@chakra-ui/react");
|
3578
3623
|
var React9 = __toESM(require("react"));
|
3579
3624
|
var import_fi4 = require("react-icons/fi");
|
3580
|
-
var
|
3625
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
3581
3626
|
var PaginationFilter = ({
|
3582
3627
|
limit,
|
3583
3628
|
label = "Baris per halaman:",
|
@@ -3586,10 +3631,10 @@ var PaginationFilter = ({
|
|
3586
3631
|
...rest
|
3587
3632
|
}) => {
|
3588
3633
|
const [value, setValue] = React9.useState(limit);
|
3589
|
-
return /* @__PURE__ */ (0,
|
3590
|
-
/* @__PURE__ */ (0,
|
3591
|
-
/* @__PURE__ */ (0,
|
3592
|
-
|
3634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_react62.Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [
|
3635
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react62.Text, { fontSize: "text.sm", lineHeight: 18, color: (0, import_react62.useColorModeValue)("neutral.900", "white"), ...rest, children: label }),
|
3636
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
3637
|
+
import_react62.Select,
|
3593
3638
|
{
|
3594
3639
|
textAlign: "center",
|
3595
3640
|
size: "xs",
|
@@ -3597,7 +3642,7 @@ var PaginationFilter = ({
|
|
3597
3642
|
border: "none",
|
3598
3643
|
boxShadow: "none",
|
3599
3644
|
width: 18,
|
3600
|
-
icon: /* @__PURE__ */ (0,
|
3645
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_fi4.FiChevronDown, {}),
|
3601
3646
|
_focusVisible: { boxShadow: "none" },
|
3602
3647
|
onChange: (e) => {
|
3603
3648
|
const numberValue = Number(e.target.value);
|
@@ -3606,7 +3651,7 @@ var PaginationFilter = ({
|
|
3606
3651
|
},
|
3607
3652
|
value,
|
3608
3653
|
children: items.map((item) => {
|
3609
|
-
return /* @__PURE__ */ (0,
|
3654
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("option", { value: item, children: item }, item);
|
3610
3655
|
})
|
3611
3656
|
}
|
3612
3657
|
)
|
@@ -3619,22 +3664,22 @@ PaginationFilter.defaultProps = {
|
|
3619
3664
|
var pagination_filter_default = PaginationFilter;
|
3620
3665
|
|
3621
3666
|
// src/components/pin-input/index.ts
|
3622
|
-
var
|
3667
|
+
var import_react63 = require("@chakra-ui/react");
|
3623
3668
|
|
3624
3669
|
// src/components/popover/index.ts
|
3625
|
-
var
|
3670
|
+
var import_react64 = require("@chakra-ui/react");
|
3626
3671
|
|
3627
3672
|
// src/components/progress/index.ts
|
3628
|
-
var
|
3673
|
+
var import_react65 = require("@chakra-ui/react");
|
3629
3674
|
|
3630
3675
|
// src/components/radio/components/radio.tsx
|
3631
|
-
var
|
3632
|
-
var
|
3676
|
+
var import_react66 = require("@chakra-ui/react");
|
3677
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
3633
3678
|
var Radio = ({ isError = false, helpText, errorText, children, isDisabled, ...rest }) => {
|
3634
3679
|
const variant = isError ? "errors" : "unstyled";
|
3635
|
-
return /* @__PURE__ */ (0,
|
3636
|
-
/* @__PURE__ */ (0,
|
3637
|
-
isError && errorText ? /* @__PURE__ */ (0,
|
3680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_react66.Box, { children: [
|
3681
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react66.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react66.Radio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react66.Text, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
3682
|
+
isError && errorText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react66.Box, { mt: "2", ml: "6", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react66.Text, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) }) : helpText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react66.Box, { mt: "2", ml: "6", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react66.Text, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) }) : null
|
3638
3683
|
] });
|
3639
3684
|
};
|
3640
3685
|
Radio.displayName = "Radio";
|
@@ -3645,8 +3690,8 @@ Radio.defaultProps = {
|
|
3645
3690
|
};
|
3646
3691
|
|
3647
3692
|
// src/components/radio/components/radio-group.tsx
|
3648
|
-
var
|
3649
|
-
var
|
3693
|
+
var import_react67 = require("@chakra-ui/react");
|
3694
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
3650
3695
|
var RadioGroup = ({
|
3651
3696
|
children,
|
3652
3697
|
label,
|
@@ -3655,7 +3700,7 @@ var RadioGroup = ({
|
|
3655
3700
|
errorMessage,
|
3656
3701
|
...props
|
3657
3702
|
}) => {
|
3658
|
-
return /* @__PURE__ */ (0,
|
3703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react67.Box, { mt: "2", mb: "1", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react67.RadioGroup, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react67.Stack, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
|
3659
3704
|
};
|
3660
3705
|
RadioGroup.displayName = "RadioGroup";
|
3661
3706
|
RadioGroup.defaultProps = {
|
@@ -3665,14 +3710,14 @@ RadioGroup.defaultProps = {
|
|
3665
3710
|
};
|
3666
3711
|
|
3667
3712
|
// src/components/radio/index.ts
|
3668
|
-
var
|
3713
|
+
var import_react68 = require("@chakra-ui/react");
|
3669
3714
|
|
3670
3715
|
// src/components/rating/components/rating.tsx
|
3671
|
-
var
|
3716
|
+
var import_react69 = require("@chakra-ui/react");
|
3672
3717
|
var import_internal_icon7 = require("@ctlyst.id/internal-icon");
|
3673
|
-
var
|
3718
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
3674
3719
|
var Rating = ({ value }) => {
|
3675
|
-
return /* @__PURE__ */ (0,
|
3720
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react69.Grid, { gap: "4px", display: "flex", children: [...Array(5)].map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_internal_icon7.Rating, { color: i < value ? "#FFA230" : "#E0E0E0", size: 24 })) });
|
3676
3721
|
};
|
3677
3722
|
var rating_default = Rating;
|
3678
3723
|
|
@@ -3681,16 +3726,16 @@ var import_system7 = require("@chakra-ui/system");
|
|
3681
3726
|
var import_react_select = __toESM(require("react-select"));
|
3682
3727
|
|
3683
3728
|
// src/config/theme/foundations/shadows.ts
|
3684
|
-
var
|
3729
|
+
var import_react70 = require("@chakra-ui/react");
|
3685
3730
|
var shadows = {
|
3686
|
-
...
|
3731
|
+
...import_react70.theme.shadows,
|
3687
3732
|
raised: "0px 4px 20px rgba(0, 0, 0, 0.05)"
|
3688
3733
|
};
|
3689
3734
|
|
3690
3735
|
// src/config/theme/foundations/sizes.ts
|
3691
|
-
var
|
3736
|
+
var import_react71 = require("@chakra-ui/react");
|
3692
3737
|
var sizes = {
|
3693
|
-
...
|
3738
|
+
...import_react71.theme.sizes,
|
3694
3739
|
4.5: "1.125rem",
|
3695
3740
|
9.5: "2.375rem",
|
3696
3741
|
18: "4.5rem",
|
@@ -3700,9 +3745,9 @@ var sizes = {
|
|
3700
3745
|
};
|
3701
3746
|
|
3702
3747
|
// src/config/theme/foundations/spacing.ts
|
3703
|
-
var
|
3748
|
+
var import_react72 = require("@chakra-ui/react");
|
3704
3749
|
var spacing = {
|
3705
|
-
...
|
3750
|
+
...import_react72.theme.space,
|
3706
3751
|
4.5: "1.125rem",
|
3707
3752
|
9.5: "2.375rem",
|
3708
3753
|
18: "4.5rem",
|
@@ -4028,14 +4073,14 @@ var themeSelect = (theme5) => {
|
|
4028
4073
|
};
|
4029
4074
|
|
4030
4075
|
// src/components/select/components/select.tsx
|
4031
|
-
var
|
4076
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
4032
4077
|
function Select2({
|
4033
4078
|
styles,
|
4034
4079
|
isError = false,
|
4035
4080
|
...rest
|
4036
4081
|
}) {
|
4037
4082
|
const { colorMode } = (0, import_system7.useColorMode)();
|
4038
|
-
return /* @__PURE__ */ (0,
|
4083
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
4039
4084
|
import_react_select.default,
|
4040
4085
|
{
|
4041
4086
|
classNamePrefix: "react-select",
|
@@ -4050,14 +4095,14 @@ var select_default = Select2;
|
|
4050
4095
|
// src/components/select/components/select-async.tsx
|
4051
4096
|
var import_system8 = require("@chakra-ui/system");
|
4052
4097
|
var import_react_select_async_paginate = require("react-select-async-paginate");
|
4053
|
-
var
|
4098
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
4054
4099
|
function SelectAsync({
|
4055
4100
|
styles,
|
4056
4101
|
isError = false,
|
4057
4102
|
...rest
|
4058
4103
|
}) {
|
4059
4104
|
const { colorMode } = (0, import_system8.useColorMode)();
|
4060
|
-
return /* @__PURE__ */ (0,
|
4105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
4061
4106
|
import_react_select_async_paginate.AsyncPaginate,
|
4062
4107
|
{
|
4063
4108
|
classNamePrefix: "react-select",
|
@@ -4072,10 +4117,10 @@ var select_async_default = SelectAsync;
|
|
4072
4117
|
// src/components/select/components/select-async-creatable.tsx
|
4073
4118
|
var import_system9 = require("@chakra-ui/system");
|
4074
4119
|
var import_async_creatable = __toESM(require("react-select/async-creatable"));
|
4075
|
-
var
|
4120
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
4076
4121
|
function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
4077
4122
|
const { colorMode } = (0, import_system9.useColorMode)();
|
4078
|
-
return /* @__PURE__ */ (0,
|
4123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
4079
4124
|
import_async_creatable.default,
|
4080
4125
|
{
|
4081
4126
|
classNamePrefix: "react-select",
|
@@ -4089,10 +4134,10 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
4089
4134
|
// src/components/select/components/select-creatable.tsx
|
4090
4135
|
var import_system10 = require("@chakra-ui/system");
|
4091
4136
|
var import_creatable = __toESM(require("react-select/creatable"));
|
4092
|
-
var
|
4137
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
4093
4138
|
function SelectCreatable({ styles, isError = false, ...rest }) {
|
4094
4139
|
const { colorMode } = (0, import_system10.useColorMode)();
|
4095
|
-
return /* @__PURE__ */ (0,
|
4140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
4096
4141
|
import_creatable.default,
|
4097
4142
|
{
|
4098
4143
|
classNamePrefix: "react-select",
|
@@ -4104,10 +4149,10 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
4104
4149
|
}
|
4105
4150
|
|
4106
4151
|
// src/components/select/components/select-with-checkbox.tsx
|
4107
|
-
var
|
4152
|
+
var import_react73 = require("@chakra-ui/react");
|
4108
4153
|
var import_system11 = require("@chakra-ui/system");
|
4109
4154
|
var import_react_select2 = __toESM(require("react-select"));
|
4110
|
-
var
|
4155
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
4111
4156
|
var CHECKBOX_STATE = {
|
4112
4157
|
UNCHECKED: 0,
|
4113
4158
|
INDETERMINATE: 1,
|
@@ -4154,8 +4199,8 @@ var InputOption = ({
|
|
4154
4199
|
onClick: isDisabled ? void 0 : innerProps.onClick,
|
4155
4200
|
style
|
4156
4201
|
};
|
4157
|
-
return /* @__PURE__ */ (0,
|
4158
|
-
/* @__PURE__ */ (0,
|
4202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
|
4203
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4159
4204
|
import_react_select2.components.Option,
|
4160
4205
|
{
|
4161
4206
|
isMulti: true,
|
@@ -4166,8 +4211,8 @@ var InputOption = ({
|
|
4166
4211
|
getStyles,
|
4167
4212
|
innerProps: props,
|
4168
4213
|
...rest,
|
4169
|
-
children: /* @__PURE__ */ (0,
|
4170
|
-
|
4214
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
4215
|
+
import_react73.Flex,
|
4171
4216
|
{
|
4172
4217
|
alignItems: "center",
|
4173
4218
|
width: "100%",
|
@@ -4176,22 +4221,22 @@ var InputOption = ({
|
|
4176
4221
|
"data-test-id": "CT_component_select-checkbox_options",
|
4177
4222
|
cursor: isDisabled ? "not-allowed" : "default",
|
4178
4223
|
children: [
|
4179
|
-
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0,
|
4180
|
-
|
4224
|
+
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4225
|
+
import_react73.Checkbox,
|
4181
4226
|
{
|
4182
4227
|
isChecked: checkedState === CHECKBOX_STATE.CHECKED,
|
4183
4228
|
isIndeterminate: checkedState === CHECKBOX_STATE.INDETERMINATE,
|
4184
4229
|
isDisabled,
|
4185
4230
|
"data-test-id": "CT_component_select-checkbox_select-all-option"
|
4186
4231
|
}
|
4187
|
-
) : /* @__PURE__ */ (0,
|
4188
|
-
/* @__PURE__ */ (0,
|
4232
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react73.Checkbox, { isChecked: isSelected, "data-test-id": "CT_component_select-checkbox_option-checkbox" }),
|
4233
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react73.Text, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
|
4189
4234
|
]
|
4190
4235
|
}
|
4191
4236
|
)
|
4192
4237
|
}
|
4193
4238
|
),
|
4194
|
-
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0,
|
4239
|
+
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("hr", {}) : null
|
4195
4240
|
] });
|
4196
4241
|
};
|
4197
4242
|
var SelectWithCheckboxBase = ({
|
@@ -4201,7 +4246,7 @@ var SelectWithCheckboxBase = ({
|
|
4201
4246
|
...rest
|
4202
4247
|
}) => {
|
4203
4248
|
const { colorMode } = (0, import_system11.useColorMode)();
|
4204
|
-
return /* @__PURE__ */ (0,
|
4249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4205
4250
|
import_react_select2.default,
|
4206
4251
|
{
|
4207
4252
|
classNamePrefix: "react-select",
|
@@ -4220,7 +4265,7 @@ var SelectWithCheckboxBase = ({
|
|
4220
4265
|
var SelectCheckbox = (props) => {
|
4221
4266
|
const { isMulti, options, value, ...rest } = props;
|
4222
4267
|
const selectValue = value || [];
|
4223
|
-
return /* @__PURE__ */ (0,
|
4268
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4224
4269
|
SelectWithCheckboxBase,
|
4225
4270
|
{
|
4226
4271
|
isMulti,
|
@@ -4231,7 +4276,7 @@ var SelectCheckbox = (props) => {
|
|
4231
4276
|
const optionLength = (options == null ? void 0 : options.length) ? options.length - 1 : 0;
|
4232
4277
|
const selectedValue = isSelected ? CHECKBOX_STATE.CHECKED : CHECKBOX_STATE.UNCHECKED;
|
4233
4278
|
const checkedState = data.selectAllCheckbox ? getSelectAllCheckboxState(selectValue == null ? void 0 : selectValue.length, optionLength) : selectedValue;
|
4234
|
-
return /* @__PURE__ */ (0,
|
4279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(InputOption, { ...optionProps, checkedState });
|
4235
4280
|
}
|
4236
4281
|
},
|
4237
4282
|
...rest
|
@@ -4241,7 +4286,7 @@ var SelectCheckbox = (props) => {
|
|
4241
4286
|
var select_with_checkbox_default = SelectCheckbox;
|
4242
4287
|
|
4243
4288
|
// src/components/sidebar/components/sidebar.tsx
|
4244
|
-
var
|
4289
|
+
var import_react107 = require("@chakra-ui/react");
|
4245
4290
|
|
4246
4291
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/motion.mjs
|
4247
4292
|
var import_tslib39 = require("tslib");
|
@@ -4249,12 +4294,12 @@ var import_tslib39 = require("tslib");
|
|
4249
4294
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/index.mjs
|
4250
4295
|
var import_tslib4 = require("tslib");
|
4251
4296
|
var React11 = __toESM(require("react"), 1);
|
4252
|
-
var
|
4297
|
+
var import_react89 = require("react");
|
4253
4298
|
|
4254
4299
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/use-features.mjs
|
4255
4300
|
var import_tslib = require("tslib");
|
4256
4301
|
var React10 = __toESM(require("react"), 1);
|
4257
|
-
var
|
4302
|
+
var import_react75 = require("react");
|
4258
4303
|
|
4259
4304
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/process.mjs
|
4260
4305
|
var defaultEnvironment = "production";
|
@@ -4330,15 +4375,15 @@ if (process.env.NODE_ENV !== "production") {
|
|
4330
4375
|
}
|
4331
4376
|
|
4332
4377
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/LazyContext.mjs
|
4333
|
-
var
|
4334
|
-
var LazyContext = (0,
|
4378
|
+
var import_react74 = require("react");
|
4379
|
+
var LazyContext = (0, import_react74.createContext)({ strict: false });
|
4335
4380
|
|
4336
4381
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/use-features.mjs
|
4337
4382
|
var featureNames = Object.keys(featureDefinitions);
|
4338
4383
|
var numFeatures = featureNames.length;
|
4339
4384
|
function useFeatures(props, visualElement2, preloadedFeatures) {
|
4340
4385
|
var features = [];
|
4341
|
-
var lazyContext = (0,
|
4386
|
+
var lazyContext = (0, import_react75.useContext)(LazyContext);
|
4342
4387
|
if (!visualElement2)
|
4343
4388
|
return null;
|
4344
4389
|
if (env !== "production" && preloadedFeatures && lazyContext.strict) {
|
@@ -4355,8 +4400,8 @@ function useFeatures(props, visualElement2, preloadedFeatures) {
|
|
4355
4400
|
}
|
4356
4401
|
|
4357
4402
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
|
4358
|
-
var
|
4359
|
-
var MotionConfigContext = (0,
|
4403
|
+
var import_react76 = require("react");
|
4404
|
+
var MotionConfigContext = (0, import_react76.createContext)({
|
4360
4405
|
transformPagePoint: function(p) {
|
4361
4406
|
return p;
|
4362
4407
|
},
|
@@ -4365,31 +4410,31 @@ var MotionConfigContext = (0, import_react75.createContext)({
|
|
4365
4410
|
});
|
4366
4411
|
|
4367
4412
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
|
4368
|
-
var
|
4369
|
-
var MotionContext = (0,
|
4413
|
+
var import_react77 = require("react");
|
4414
|
+
var MotionContext = (0, import_react77.createContext)({});
|
4370
4415
|
function useVisualElementContext() {
|
4371
|
-
return (0,
|
4416
|
+
return (0, import_react77.useContext)(MotionContext).visualElement;
|
4372
4417
|
}
|
4373
4418
|
|
4374
4419
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
|
4375
|
-
var
|
4420
|
+
var import_react81 = require("react");
|
4376
4421
|
|
4377
4422
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/PresenceContext.mjs
|
4378
|
-
var
|
4379
|
-
var PresenceContext = (0,
|
4423
|
+
var import_react78 = require("react");
|
4424
|
+
var PresenceContext = (0, import_react78.createContext)(null);
|
4380
4425
|
|
4381
4426
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
|
4382
|
-
var
|
4427
|
+
var import_react79 = require("react");
|
4383
4428
|
|
4384
4429
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/is-browser.mjs
|
4385
4430
|
var isBrowser = typeof document !== "undefined";
|
4386
4431
|
|
4387
4432
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
|
4388
|
-
var useIsomorphicLayoutEffect = isBrowser ?
|
4433
|
+
var useIsomorphicLayoutEffect = isBrowser ? import_react79.useLayoutEffect : import_react79.useEffect;
|
4389
4434
|
|
4390
4435
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-reduced-motion.mjs
|
4391
4436
|
var import_tslib2 = require("tslib");
|
4392
|
-
var
|
4437
|
+
var import_react80 = require("react");
|
4393
4438
|
var prefersReducedMotion = { current: null };
|
4394
4439
|
var hasDetected = false;
|
4395
4440
|
function initPrefersReducedMotion() {
|
@@ -4409,12 +4454,12 @@ function initPrefersReducedMotion() {
|
|
4409
4454
|
}
|
4410
4455
|
function useReducedMotion() {
|
4411
4456
|
!hasDetected && initPrefersReducedMotion();
|
4412
|
-
var _a = (0, import_tslib2.__read)((0,
|
4457
|
+
var _a = (0, import_tslib2.__read)((0, import_react80.useState)(prefersReducedMotion.current), 1), shouldReduceMotion = _a[0];
|
4413
4458
|
return shouldReduceMotion;
|
4414
4459
|
}
|
4415
4460
|
function useReducedMotionConfig() {
|
4416
4461
|
var reducedMotionPreference = useReducedMotion();
|
4417
|
-
var reducedMotion = (0,
|
4462
|
+
var reducedMotion = (0, import_react80.useContext)(MotionConfigContext).reducedMotion;
|
4418
4463
|
if (reducedMotion === "never") {
|
4419
4464
|
return false;
|
4420
4465
|
} else if (reducedMotion === "always") {
|
@@ -4426,11 +4471,11 @@ function useReducedMotionConfig() {
|
|
4426
4471
|
|
4427
4472
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
|
4428
4473
|
function useVisualElement(Component, visualState, props, createVisualElement) {
|
4429
|
-
var lazyContext = (0,
|
4474
|
+
var lazyContext = (0, import_react81.useContext)(LazyContext);
|
4430
4475
|
var parent = useVisualElementContext();
|
4431
|
-
var presenceContext = (0,
|
4476
|
+
var presenceContext = (0, import_react81.useContext)(PresenceContext);
|
4432
4477
|
var shouldReduceMotion = useReducedMotionConfig();
|
4433
|
-
var visualElementRef = (0,
|
4478
|
+
var visualElementRef = (0, import_react81.useRef)(void 0);
|
4434
4479
|
if (!createVisualElement)
|
4435
4480
|
createVisualElement = lazyContext.renderer;
|
4436
4481
|
if (!visualElementRef.current && createVisualElement) {
|
@@ -4447,7 +4492,7 @@ function useVisualElement(Component, visualState, props, createVisualElement) {
|
|
4447
4492
|
useIsomorphicLayoutEffect(function() {
|
4448
4493
|
visualElement2 === null || visualElement2 === void 0 ? void 0 : visualElement2.syncRender();
|
4449
4494
|
});
|
4450
|
-
(0,
|
4495
|
+
(0, import_react81.useEffect)(function() {
|
4451
4496
|
var _a;
|
4452
4497
|
(_a = visualElement2 === null || visualElement2 === void 0 ? void 0 : visualElement2.animationState) === null || _a === void 0 ? void 0 : _a.animateChanges();
|
4453
4498
|
});
|
@@ -4460,7 +4505,7 @@ function useVisualElement(Component, visualState, props, createVisualElement) {
|
|
4460
4505
|
}
|
4461
4506
|
|
4462
4507
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
|
4463
|
-
var
|
4508
|
+
var import_react82 = require("react");
|
4464
4509
|
|
4465
4510
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
|
4466
4511
|
function isRefObject(ref) {
|
@@ -4469,7 +4514,7 @@ function isRefObject(ref) {
|
|
4469
4514
|
|
4470
4515
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
|
4471
4516
|
function useMotionRef(visualState, visualElement2, externalRef) {
|
4472
|
-
return (0,
|
4517
|
+
return (0, import_react82.useCallback)(
|
4473
4518
|
function(instance) {
|
4474
4519
|
var _a;
|
4475
4520
|
instance && ((_a = visualState.mount) === null || _a === void 0 ? void 0 : _a.call(visualState, instance));
|
@@ -4494,7 +4539,7 @@ function useMotionRef(visualState, visualElement2, externalRef) {
|
|
4494
4539
|
}
|
4495
4540
|
|
4496
4541
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
|
4497
|
-
var
|
4542
|
+
var import_react83 = require("react");
|
4498
4543
|
|
4499
4544
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/utils/variants.mjs
|
4500
4545
|
function isVariantLabels(v) {
|
@@ -4562,8 +4607,8 @@ function getCurrentTreeVariants(props, context) {
|
|
4562
4607
|
|
4563
4608
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
|
4564
4609
|
function useCreateMotionContext(props) {
|
4565
|
-
var _a = getCurrentTreeVariants(props, (0,
|
4566
|
-
return (0,
|
4610
|
+
var _a = getCurrentTreeVariants(props, (0, import_react83.useContext)(MotionContext)), initial = _a.initial, animate3 = _a.animate;
|
4611
|
+
return (0, import_react83.useMemo)(function() {
|
4567
4612
|
return { initial, animate: animate3 };
|
4568
4613
|
}, [variantLabelsAsDependency(initial), variantLabelsAsDependency(animate3)]);
|
4569
4614
|
}
|
@@ -4572,9 +4617,9 @@ function variantLabelsAsDependency(prop) {
|
|
4572
4617
|
}
|
4573
4618
|
|
4574
4619
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-constant.mjs
|
4575
|
-
var
|
4620
|
+
var import_react84 = require("react");
|
4576
4621
|
function useConstant(init) {
|
4577
|
-
var ref = (0,
|
4622
|
+
var ref = (0, import_react84.useRef)(null);
|
4578
4623
|
if (ref.current === null) {
|
4579
4624
|
ref.current = init();
|
4580
4625
|
}
|
@@ -4606,21 +4651,21 @@ function useProjectionId() {
|
|
4606
4651
|
}
|
4607
4652
|
|
4608
4653
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
|
4609
|
-
var
|
4610
|
-
var LayoutGroupContext = (0,
|
4654
|
+
var import_react85 = require("react");
|
4655
|
+
var LayoutGroupContext = (0, import_react85.createContext)({});
|
4611
4656
|
|
4612
4657
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/use-projection.mjs
|
4613
|
-
var
|
4658
|
+
var import_react87 = require("react");
|
4614
4659
|
|
4615
4660
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
|
4616
|
-
var
|
4617
|
-
var SwitchLayoutGroupContext = (0,
|
4661
|
+
var import_react86 = require("react");
|
4662
|
+
var SwitchLayoutGroupContext = (0, import_react86.createContext)({});
|
4618
4663
|
|
4619
4664
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/use-projection.mjs
|
4620
4665
|
function useProjection(projectionId, _a, visualElement2, ProjectionNodeConstructor) {
|
4621
4666
|
var _b;
|
4622
4667
|
var layoutId = _a.layoutId, layout = _a.layout, drag2 = _a.drag, dragConstraints = _a.dragConstraints, layoutScroll = _a.layoutScroll;
|
4623
|
-
var initialPromotionConfig = (0,
|
4668
|
+
var initialPromotionConfig = (0, import_react87.useContext)(SwitchLayoutGroupContext);
|
4624
4669
|
if (!ProjectionNodeConstructor || !visualElement2 || (visualElement2 === null || visualElement2 === void 0 ? void 0 : visualElement2.projection)) {
|
4625
4670
|
return;
|
4626
4671
|
}
|
@@ -4648,7 +4693,7 @@ function useProjection(projectionId, _a, visualElement2, ProjectionNodeConstruct
|
|
4648
4693
|
|
4649
4694
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/VisualElementHandler.mjs
|
4650
4695
|
var import_tslib3 = require("tslib");
|
4651
|
-
var
|
4696
|
+
var import_react88 = __toESM(require("react"), 1);
|
4652
4697
|
var VisualElementHandler = (
|
4653
4698
|
/** @class */
|
4654
4699
|
function(_super) {
|
@@ -4671,7 +4716,7 @@ var VisualElementHandler = (
|
|
4671
4716
|
return this.props.children;
|
4672
4717
|
};
|
4673
4718
|
return VisualElementHandler2;
|
4674
|
-
}(
|
4719
|
+
}(import_react88.default.Component)
|
4675
4720
|
);
|
4676
4721
|
|
4677
4722
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/index.mjs
|
@@ -4681,7 +4726,7 @@ function createMotionComponent(_a) {
|
|
4681
4726
|
function MotionComponent(props, externalRef) {
|
4682
4727
|
var layoutId = useLayoutId(props);
|
4683
4728
|
props = (0, import_tslib4.__assign)((0, import_tslib4.__assign)({}, props), { layoutId });
|
4684
|
-
var config2 = (0,
|
4729
|
+
var config2 = (0, import_react89.useContext)(MotionConfigContext);
|
4685
4730
|
var features = null;
|
4686
4731
|
var context = useCreateMotionContext(props);
|
4687
4732
|
var projectionId = config2.isStatic ? void 0 : useProjectionId();
|
@@ -4698,12 +4743,12 @@ function createMotionComponent(_a) {
|
|
4698
4743
|
React11.createElement(MotionContext.Provider, { value: context }, useRender(Component, props, projectionId, useMotionRef(visualState, context.visualElement, externalRef), visualState, config2.isStatic, context.visualElement))
|
4699
4744
|
);
|
4700
4745
|
}
|
4701
|
-
return (0,
|
4746
|
+
return (0, import_react89.forwardRef)(MotionComponent);
|
4702
4747
|
}
|
4703
4748
|
function useLayoutId(_a) {
|
4704
4749
|
var _b;
|
4705
4750
|
var layoutId = _a.layoutId;
|
4706
|
-
var layoutGroupId = (_b = (0,
|
4751
|
+
var layoutGroupId = (_b = (0, import_react89.useContext)(LayoutGroupContext)) === null || _b === void 0 ? void 0 : _b.id;
|
4707
4752
|
return layoutGroupId && layoutId !== void 0 ? layoutGroupId + "-" + layoutId : layoutId;
|
4708
4753
|
}
|
4709
4754
|
|
@@ -4795,11 +4840,11 @@ function isSVGComponent(Component) {
|
|
4795
4840
|
|
4796
4841
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/dom/use-render.mjs
|
4797
4842
|
var import_tslib10 = require("tslib");
|
4798
|
-
var
|
4843
|
+
var import_react92 = require("react");
|
4799
4844
|
|
4800
4845
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/html/use-props.mjs
|
4801
4846
|
var import_tslib6 = require("tslib");
|
4802
|
-
var
|
4847
|
+
var import_react90 = require("react");
|
4803
4848
|
|
4804
4849
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs
|
4805
4850
|
var scaleCorrectors = {};
|
@@ -5207,7 +5252,7 @@ function copyRawValuesOnly(target, source, props) {
|
|
5207
5252
|
}
|
5208
5253
|
function useInitialMotionValues(_a, visualState, isStatic) {
|
5209
5254
|
var transformTemplate = _a.transformTemplate;
|
5210
|
-
return (0,
|
5255
|
+
return (0, import_react90.useMemo)(function() {
|
5211
5256
|
var state = createHtmlRenderState();
|
5212
5257
|
buildHTMLStyles(state, visualState, { enableHardwareAcceleration: !isStatic }, transformTemplate);
|
5213
5258
|
var vars = state.vars, style = state.style;
|
@@ -5327,7 +5372,7 @@ function filterProps(props, isDom, forwardMotionProps) {
|
|
5327
5372
|
|
5328
5373
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/use-props.mjs
|
5329
5374
|
var import_tslib9 = require("tslib");
|
5330
|
-
var
|
5375
|
+
var import_react91 = require("react");
|
5331
5376
|
|
5332
5377
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs
|
5333
5378
|
var import_tslib7 = require("tslib");
|
@@ -5401,7 +5446,7 @@ var createSvgRenderState = function() {
|
|
5401
5446
|
|
5402
5447
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/svg/use-props.mjs
|
5403
5448
|
function useSVGProps(props, visualState) {
|
5404
|
-
var visualProps = (0,
|
5449
|
+
var visualProps = (0, import_react91.useMemo)(function() {
|
5405
5450
|
var state = createSvgRenderState();
|
5406
5451
|
buildSVGAttrs(state, visualState, { enableHardwareAcceleration: false }, props.transformTemplate);
|
5407
5452
|
return (0, import_tslib9.__assign)((0, import_tslib9.__assign)({}, state.attrs), { style: (0, import_tslib9.__assign)({}, state.style) });
|
@@ -5428,7 +5473,7 @@ function createUseRender(forwardMotionProps) {
|
|
5428
5473
|
if (projectionId) {
|
5429
5474
|
elementProps["data-projection-id"] = projectionId;
|
5430
5475
|
}
|
5431
|
-
return (0,
|
5476
|
+
return (0, import_react92.createElement)(Component, elementProps);
|
5432
5477
|
};
|
5433
5478
|
return useRender;
|
5434
5479
|
}
|
@@ -5507,7 +5552,7 @@ function scrapeMotionValuesFromProps2(props) {
|
|
5507
5552
|
|
5508
5553
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
|
5509
5554
|
var import_tslib11 = require("tslib");
|
5510
|
-
var
|
5555
|
+
var import_react93 = require("react");
|
5511
5556
|
|
5512
5557
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs
|
5513
5558
|
function isAnimationControls(v) {
|
@@ -5549,8 +5594,8 @@ function makeState(_a, props, context, presenceContext) {
|
|
5549
5594
|
}
|
5550
5595
|
var makeUseVisualState = function(config2) {
|
5551
5596
|
return function(props, isStatic) {
|
5552
|
-
var context = (0,
|
5553
|
-
var presenceContext = (0,
|
5597
|
+
var context = (0, import_react93.useContext)(MotionContext);
|
5598
|
+
var presenceContext = (0, import_react93.useContext)(PresenceContext);
|
5554
5599
|
return isStatic ? makeState(config2, props, context, presenceContext) : useConstant(function() {
|
5555
5600
|
return makeState(config2, props, context, presenceContext);
|
5556
5601
|
});
|
@@ -5649,7 +5694,7 @@ var AnimationType;
|
|
5649
5694
|
})(AnimationType || (AnimationType = {}));
|
5650
5695
|
|
5651
5696
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/events/use-dom-event.mjs
|
5652
|
-
var
|
5697
|
+
var import_react94 = require("react");
|
5653
5698
|
function addDomEvent(target, eventName, handler, options) {
|
5654
5699
|
if (options === void 0) {
|
5655
5700
|
options = { passive: true };
|
@@ -5660,7 +5705,7 @@ function addDomEvent(target, eventName, handler, options) {
|
|
5660
5705
|
};
|
5661
5706
|
}
|
5662
5707
|
function useDomEvent(ref, eventName, handler, options) {
|
5663
|
-
(0,
|
5708
|
+
(0, import_react94.useEffect)(function() {
|
5664
5709
|
var element = ref.current;
|
5665
5710
|
if (handler && element) {
|
5666
5711
|
return addDomEvent(element, eventName, handler, options);
|
@@ -5853,7 +5898,7 @@ function useHoverGesture(_a) {
|
|
5853
5898
|
}
|
5854
5899
|
|
5855
5900
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/use-tap-gesture.mjs
|
5856
|
-
var
|
5901
|
+
var import_react96 = require("react");
|
5857
5902
|
|
5858
5903
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.mjs
|
5859
5904
|
var isNodeOrChild = function(parent, child) {
|
@@ -5867,9 +5912,9 @@ var isNodeOrChild = function(parent, child) {
|
|
5867
5912
|
};
|
5868
5913
|
|
5869
5914
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-unmount-effect.mjs
|
5870
|
-
var
|
5915
|
+
var import_react95 = require("react");
|
5871
5916
|
function useUnmountEffect(callback) {
|
5872
|
-
return (0,
|
5917
|
+
return (0, import_react95.useEffect)(function() {
|
5873
5918
|
return function() {
|
5874
5919
|
return callback();
|
5875
5920
|
};
|
@@ -6745,8 +6790,8 @@ function cubicBezier(mX1, mY1, mX2, mY2) {
|
|
6745
6790
|
function useTapGesture(_a) {
|
6746
6791
|
var onTap = _a.onTap, onTapStart = _a.onTapStart, onTapCancel = _a.onTapCancel, whileTap = _a.whileTap, visualElement2 = _a.visualElement;
|
6747
6792
|
var hasPressListeners = onTap || onTapStart || onTapCancel || whileTap;
|
6748
|
-
var isPressing = (0,
|
6749
|
-
var cancelPointerEndListeners = (0,
|
6793
|
+
var isPressing = (0, import_react96.useRef)(false);
|
6794
|
+
var cancelPointerEndListeners = (0, import_react96.useRef)(null);
|
6750
6795
|
var eventOptions = {
|
6751
6796
|
passive: !(onTapStart || onTap || onTapCancel || onPointerDown)
|
6752
6797
|
};
|
@@ -6787,7 +6832,7 @@ function useTapGesture(_a) {
|
|
6787
6832
|
}
|
6788
6833
|
|
6789
6834
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/viewport/use-viewport.mjs
|
6790
|
-
var
|
6835
|
+
var import_react97 = require("react");
|
6791
6836
|
|
6792
6837
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/warn-once.mjs
|
6793
6838
|
var warned = /* @__PURE__ */ new Set();
|
@@ -6837,7 +6882,7 @@ function observeIntersection(element, options, callback) {
|
|
6837
6882
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/viewport/use-viewport.mjs
|
6838
6883
|
function useViewport(_a) {
|
6839
6884
|
var visualElement2 = _a.visualElement, whileInView = _a.whileInView, onViewportEnter = _a.onViewportEnter, onViewportLeave = _a.onViewportLeave, _b = _a.viewport, viewport = _b === void 0 ? {} : _b;
|
6840
|
-
var state = (0,
|
6885
|
+
var state = (0, import_react97.useRef)({
|
6841
6886
|
hasEnteredView: false,
|
6842
6887
|
isInView: false
|
6843
6888
|
});
|
@@ -6853,7 +6898,7 @@ var thresholdNames = {
|
|
6853
6898
|
};
|
6854
6899
|
function useIntersectionObserver(shouldObserve, state, visualElement2, _a) {
|
6855
6900
|
var root = _a.root, rootMargin = _a.margin, _b = _a.amount, amount = _b === void 0 ? "some" : _b, once = _a.once;
|
6856
|
-
(0,
|
6901
|
+
(0, import_react97.useEffect)(function() {
|
6857
6902
|
if (!shouldObserve)
|
6858
6903
|
return;
|
6859
6904
|
var options = {
|
@@ -6882,7 +6927,7 @@ function useIntersectionObserver(shouldObserve, state, visualElement2, _a) {
|
|
6882
6927
|
}
|
6883
6928
|
function useMissingIntersectionObserver(shouldObserve, state, visualElement2, _a) {
|
6884
6929
|
var _b = _a.fallback, fallback = _b === void 0 ? true : _b;
|
6885
|
-
(0,
|
6930
|
+
(0, import_react97.useEffect)(function() {
|
6886
6931
|
if (!shouldObserve || !fallback)
|
6887
6932
|
return;
|
6888
6933
|
if (env !== "production") {
|
@@ -6916,10 +6961,10 @@ var gestureAnimations = {
|
|
6916
6961
|
|
6917
6962
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/animations.mjs
|
6918
6963
|
var import_tslib25 = require("tslib");
|
6919
|
-
var
|
6964
|
+
var import_react99 = require("react");
|
6920
6965
|
|
6921
6966
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
|
6922
|
-
var
|
6967
|
+
var import_react98 = require("react");
|
6923
6968
|
|
6924
6969
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-id.mjs
|
6925
6970
|
var counter = 0;
|
@@ -6932,12 +6977,12 @@ var useId = function() {
|
|
6932
6977
|
|
6933
6978
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
|
6934
6979
|
function usePresence() {
|
6935
|
-
var context = (0,
|
6980
|
+
var context = (0, import_react98.useContext)(PresenceContext);
|
6936
6981
|
if (context === null)
|
6937
6982
|
return [true, null];
|
6938
6983
|
var isPresent = context.isPresent, onExitComplete = context.onExitComplete, register = context.register;
|
6939
6984
|
var id2 = useId();
|
6940
|
-
(0,
|
6985
|
+
(0, import_react98.useEffect)(function() {
|
6941
6986
|
return register(id2);
|
6942
6987
|
}, []);
|
6943
6988
|
var safeToRemove = function() {
|
@@ -7861,7 +7906,7 @@ var animations = {
|
|
7861
7906
|
var visualElement2 = _a.visualElement, animate3 = _a.animate;
|
7862
7907
|
visualElement2.animationState || (visualElement2.animationState = createAnimationState(visualElement2));
|
7863
7908
|
if (isAnimationControls(animate3)) {
|
7864
|
-
(0,
|
7909
|
+
(0, import_react99.useEffect)(function() {
|
7865
7910
|
return animate3.subscribe(visualElement2);
|
7866
7911
|
}, [animate3]);
|
7867
7912
|
}
|
@@ -7869,8 +7914,8 @@ var animations = {
|
|
7869
7914
|
exit: makeRenderlessComponent(function(props) {
|
7870
7915
|
var custom = props.custom, visualElement2 = props.visualElement;
|
7871
7916
|
var _a = (0, import_tslib25.__read)(usePresence(), 2), isPresent = _a[0], safeToRemove = _a[1];
|
7872
|
-
var presenceContext = (0,
|
7873
|
-
(0,
|
7917
|
+
var presenceContext = (0, import_react99.useContext)(PresenceContext);
|
7918
|
+
(0, import_react99.useEffect)(function() {
|
7874
7919
|
var _a2, _b;
|
7875
7920
|
visualElement2.isPresent = isPresent;
|
7876
7921
|
var animation = (_a2 = visualElement2.animationState) === null || _a2 === void 0 ? void 0 : _a2.setActive(AnimationType.Exit, !isPresent, { custom: (_b = presenceContext === null || presenceContext === void 0 ? void 0 : presenceContext.custom) !== null && _b !== void 0 ? _b : custom });
|
@@ -7880,7 +7925,7 @@ var animations = {
|
|
7880
7925
|
};
|
7881
7926
|
|
7882
7927
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/drag/use-drag.mjs
|
7883
|
-
var
|
7928
|
+
var import_react100 = require("react");
|
7884
7929
|
|
7885
7930
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
|
7886
7931
|
var import_tslib29 = require("tslib");
|
@@ -8624,21 +8669,21 @@ function useDrag(props) {
|
|
8624
8669
|
var dragControls = useConstant(function() {
|
8625
8670
|
return new VisualElementDragControls(visualElement2);
|
8626
8671
|
});
|
8627
|
-
(0,
|
8672
|
+
(0, import_react100.useEffect)(function() {
|
8628
8673
|
return groupDragControls && groupDragControls.subscribe(dragControls);
|
8629
8674
|
}, [dragControls, groupDragControls]);
|
8630
|
-
(0,
|
8675
|
+
(0, import_react100.useEffect)(function() {
|
8631
8676
|
return dragControls.addListeners();
|
8632
8677
|
}, [dragControls]);
|
8633
8678
|
}
|
8634
8679
|
|
8635
8680
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/gestures/use-pan-gesture.mjs
|
8636
|
-
var
|
8681
|
+
var import_react101 = require("react");
|
8637
8682
|
function usePanGesture(_a) {
|
8638
8683
|
var onPan = _a.onPan, onPanStart = _a.onPanStart, onPanEnd = _a.onPanEnd, onPanSessionStart = _a.onPanSessionStart, visualElement2 = _a.visualElement;
|
8639
8684
|
var hasPanEvents = onPan || onPanStart || onPanEnd || onPanSessionStart;
|
8640
|
-
var panSession = (0,
|
8641
|
-
var transformPagePoint = (0,
|
8685
|
+
var panSession = (0, import_react101.useRef)(null);
|
8686
|
+
var transformPagePoint = (0, import_react101.useContext)(MotionConfigContext).transformPagePoint;
|
8642
8687
|
var handlers = {
|
8643
8688
|
onSessionStart: onPanSessionStart,
|
8644
8689
|
onStart: onPanStart,
|
@@ -8648,7 +8693,7 @@ function usePanGesture(_a) {
|
|
8648
8693
|
onPanEnd && onPanEnd(event, info);
|
8649
8694
|
}
|
8650
8695
|
};
|
8651
|
-
(0,
|
8696
|
+
(0, import_react101.useEffect)(function() {
|
8652
8697
|
if (panSession.current !== null) {
|
8653
8698
|
panSession.current.updateHandlers(handlers);
|
8654
8699
|
}
|
@@ -9527,7 +9572,7 @@ var createDomVisualElement = function(Component, options) {
|
|
9527
9572
|
|
9528
9573
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs
|
9529
9574
|
var import_tslib36 = require("tslib");
|
9530
|
-
var
|
9575
|
+
var import_react102 = __toESM(require("react"), 1);
|
9531
9576
|
|
9532
9577
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs
|
9533
9578
|
function pixelsToPercent(pixels, axis) {
|
@@ -9676,12 +9721,12 @@ var MeasureLayoutWithContext = (
|
|
9676
9721
|
return null;
|
9677
9722
|
};
|
9678
9723
|
return MeasureLayoutWithContext2;
|
9679
|
-
}(
|
9724
|
+
}(import_react102.default.Component)
|
9680
9725
|
);
|
9681
9726
|
function MeasureLayout(props) {
|
9682
9727
|
var _a = (0, import_tslib36.__read)(usePresence(), 2), isPresent = _a[0], safeToRemove = _a[1];
|
9683
|
-
var layoutGroup = (0,
|
9684
|
-
return
|
9728
|
+
var layoutGroup = (0, import_react102.useContext)(LayoutGroupContext);
|
9729
|
+
return import_react102.default.createElement(MeasureLayoutWithContext, (0, import_tslib36.__assign)({}, props, { layoutGroup, switchLayoutGroup: (0, import_react102.useContext)(SwitchLayoutGroupContext), isPresent, safeToRemove }));
|
9685
9730
|
}
|
9686
9731
|
var defaultScaleCorrectors = {
|
9687
9732
|
borderRadius: (0, import_tslib36.__assign)((0, import_tslib36.__assign)({}, correctBorderRadius), { applyTo: [
|
@@ -10930,16 +10975,16 @@ var motion = /* @__PURE__ */ createMotionProxy(function(Component, config2) {
|
|
10930
10975
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
|
10931
10976
|
var import_tslib42 = require("tslib");
|
10932
10977
|
var React13 = __toESM(require("react"), 1);
|
10933
|
-
var
|
10978
|
+
var import_react106 = require("react");
|
10934
10979
|
|
10935
10980
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-force-update.mjs
|
10936
10981
|
var import_tslib40 = require("tslib");
|
10937
|
-
var
|
10982
|
+
var import_react104 = require("react");
|
10938
10983
|
|
10939
10984
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs
|
10940
|
-
var
|
10985
|
+
var import_react103 = require("react");
|
10941
10986
|
function useIsMounted() {
|
10942
|
-
var isMounted = (0,
|
10987
|
+
var isMounted = (0, import_react103.useRef)(false);
|
10943
10988
|
useIsomorphicLayoutEffect(function() {
|
10944
10989
|
isMounted.current = true;
|
10945
10990
|
return function() {
|
@@ -10952,11 +10997,11 @@ function useIsMounted() {
|
|
10952
10997
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/utils/use-force-update.mjs
|
10953
10998
|
function useForceUpdate() {
|
10954
10999
|
var isMounted = useIsMounted();
|
10955
|
-
var _a = (0, import_tslib40.__read)((0,
|
10956
|
-
var forceRender = (0,
|
11000
|
+
var _a = (0, import_tslib40.__read)((0, import_react104.useState)(0), 2), forcedRenderCount = _a[0], setForcedRenderCount = _a[1];
|
11001
|
+
var forceRender = (0, import_react104.useCallback)(function() {
|
10957
11002
|
isMounted.current && setForcedRenderCount(forcedRenderCount + 1);
|
10958
11003
|
}, [forcedRenderCount]);
|
10959
|
-
var deferredForceRender = (0,
|
11004
|
+
var deferredForceRender = (0, import_react104.useCallback)(function() {
|
10960
11005
|
return es_default.postRender(forceRender);
|
10961
11006
|
}, [forceRender]);
|
10962
11007
|
return [deferredForceRender, forcedRenderCount];
|
@@ -10965,12 +11010,12 @@ function useForceUpdate() {
|
|
10965
11010
|
// ../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
|
10966
11011
|
var import_tslib41 = require("tslib");
|
10967
11012
|
var React12 = __toESM(require("react"), 1);
|
10968
|
-
var
|
11013
|
+
var import_react105 = require("react");
|
10969
11014
|
var PresenceChild = function(_a) {
|
10970
11015
|
var children = _a.children, initial = _a.initial, isPresent = _a.isPresent, onExitComplete = _a.onExitComplete, custom = _a.custom, presenceAffectsLayout = _a.presenceAffectsLayout;
|
10971
11016
|
var presenceChildren = useConstant(newChildrenMap);
|
10972
11017
|
var id2 = useId();
|
10973
|
-
var context = (0,
|
11018
|
+
var context = (0, import_react105.useMemo)(
|
10974
11019
|
function() {
|
10975
11020
|
return {
|
10976
11021
|
id: id2,
|
@@ -11012,7 +11057,7 @@ var PresenceChild = function(_a) {
|
|
11012
11057
|
*/
|
11013
11058
|
presenceAffectsLayout ? void 0 : [isPresent]
|
11014
11059
|
);
|
11015
|
-
(0,
|
11060
|
+
(0, import_react105.useMemo)(function() {
|
11016
11061
|
presenceChildren.forEach(function(_, key) {
|
11017
11062
|
return presenceChildren.set(key, false);
|
11018
11063
|
});
|
@@ -11038,8 +11083,8 @@ function updateChildLookup(children, allChildren) {
|
|
11038
11083
|
}
|
11039
11084
|
function onlyElements(children) {
|
11040
11085
|
var filtered = [];
|
11041
|
-
|
11042
|
-
if ((0,
|
11086
|
+
import_react106.Children.forEach(children, function(child) {
|
11087
|
+
if ((0, import_react106.isValidElement)(child))
|
11043
11088
|
filtered.push(child);
|
11044
11089
|
});
|
11045
11090
|
return filtered;
|
@@ -11047,16 +11092,16 @@ function onlyElements(children) {
|
|
11047
11092
|
var AnimatePresence = function(_a) {
|
11048
11093
|
var children = _a.children, custom = _a.custom, _b = _a.initial, initial = _b === void 0 ? true : _b, onExitComplete = _a.onExitComplete, exitBeforeEnter = _a.exitBeforeEnter, _c = _a.presenceAffectsLayout, presenceAffectsLayout = _c === void 0 ? true : _c;
|
11049
11094
|
var _d = (0, import_tslib42.__read)(useForceUpdate(), 1), forceRender = _d[0];
|
11050
|
-
var forceRenderLayoutGroup = (0,
|
11095
|
+
var forceRenderLayoutGroup = (0, import_react106.useContext)(LayoutGroupContext).forceRender;
|
11051
11096
|
if (forceRenderLayoutGroup)
|
11052
11097
|
forceRender = forceRenderLayoutGroup;
|
11053
11098
|
var isMounted = useIsMounted();
|
11054
11099
|
var filteredChildren = onlyElements(children);
|
11055
11100
|
var childrenToRender = filteredChildren;
|
11056
11101
|
var exiting = /* @__PURE__ */ new Set();
|
11057
|
-
var presentChildren = (0,
|
11058
|
-
var allChildren = (0,
|
11059
|
-
var isInitialRender = (0,
|
11102
|
+
var presentChildren = (0, import_react106.useRef)(childrenToRender);
|
11103
|
+
var allChildren = (0, import_react106.useRef)(/* @__PURE__ */ new Map()).current;
|
11104
|
+
var isInitialRender = (0, import_react106.useRef)(true);
|
11060
11105
|
useIsomorphicLayoutEffect(function() {
|
11061
11106
|
isInitialRender.current = false;
|
11062
11107
|
updateChildLookup(filteredChildren, allChildren);
|
@@ -11117,16 +11162,16 @@ var AnimatePresence = function(_a) {
|
|
11117
11162
|
console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour.");
|
11118
11163
|
}
|
11119
11164
|
return React13.createElement(React13.Fragment, null, exiting.size ? childrenToRender : childrenToRender.map(function(child) {
|
11120
|
-
return (0,
|
11165
|
+
return (0, import_react106.cloneElement)(child);
|
11121
11166
|
}));
|
11122
11167
|
};
|
11123
11168
|
|
11124
11169
|
// src/components/sidebar/components/sidebar.tsx
|
11125
|
-
var
|
11170
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
11126
11171
|
var Sidebar = ({ isCollapse, children, ...props }) => {
|
11127
11172
|
const { width = "220px" } = props;
|
11128
|
-
return /* @__PURE__ */ (0,
|
11129
|
-
|
11173
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
11174
|
+
import_react107.Flex,
|
11130
11175
|
{
|
11131
11176
|
position: "relative",
|
11132
11177
|
as: motion.div,
|
@@ -11146,12 +11191,12 @@ var Sidebar = ({ isCollapse, children, ...props }) => {
|
|
11146
11191
|
Sidebar.displayName = "Sidebar";
|
11147
11192
|
|
11148
11193
|
// src/components/sidebar/components/sidebar-header.tsx
|
11149
|
-
var
|
11194
|
+
var import_react108 = require("@chakra-ui/react");
|
11150
11195
|
var import_internal_icon8 = require("@ctlyst.id/internal-icon");
|
11151
|
-
var
|
11196
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
11152
11197
|
var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
11153
|
-
return /* @__PURE__ */ (0,
|
11154
|
-
|
11198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
11199
|
+
import_react108.Box,
|
11155
11200
|
{
|
11156
11201
|
px: "2",
|
11157
11202
|
color: "neutral.900",
|
@@ -11160,8 +11205,8 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
11160
11205
|
_hover: {
|
11161
11206
|
color: "primary.500"
|
11162
11207
|
},
|
11163
|
-
children: /* @__PURE__ */ (0,
|
11164
|
-
|
11208
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
11209
|
+
import_react108.Flex,
|
11165
11210
|
{
|
11166
11211
|
"data-test-id": "nLkz69YipW818FioeAxVI",
|
11167
11212
|
direction: "row",
|
@@ -11170,8 +11215,8 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
11170
11215
|
onClick: () => setCollapse(!isCollapse),
|
11171
11216
|
cursor: "pointer",
|
11172
11217
|
children: [
|
11173
|
-
/* @__PURE__ */ (0,
|
11174
|
-
|
11218
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
11219
|
+
import_react108.Box,
|
11175
11220
|
{
|
11176
11221
|
as: motion.div,
|
11177
11222
|
boxSize: "4",
|
@@ -11179,11 +11224,11 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
|
|
11179
11224
|
transition: "ease-in-out",
|
11180
11225
|
transitionDuration: "1ms",
|
11181
11226
|
"aria-label": "toggle sidebar",
|
11182
|
-
children: /* @__PURE__ */ (0,
|
11227
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_internal_icon8.ArrowRight, { size: 4, color: "inherit" })
|
11183
11228
|
}
|
11184
11229
|
),
|
11185
|
-
/* @__PURE__ */ (0,
|
11186
|
-
|
11230
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(AnimatePresence, { children: !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react108.Box, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
11231
|
+
import_react108.Text,
|
11187
11232
|
{
|
11188
11233
|
as: motion.div,
|
11189
11234
|
w: "max-content",
|
@@ -11209,29 +11254,29 @@ SidebarHeader.defaultProps = {
|
|
11209
11254
|
};
|
11210
11255
|
|
11211
11256
|
// src/components/sidebar/components/sidebar-menu.tsx
|
11212
|
-
var
|
11257
|
+
var import_react109 = require("@chakra-ui/react");
|
11213
11258
|
var Icon7 = __toESM(require("@ctlyst.id/internal-icon"));
|
11214
|
-
var
|
11259
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
11215
11260
|
var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, setActive, active }) => {
|
11216
|
-
return /* @__PURE__ */ (0,
|
11261
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.Box, { as: motion.div, animate: { padding: isCollapse ? "8px 16px" : "8px" }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.Accordion, { index: menu.findIndex((item) => item.children.some((child) => child.navLink === active)), children: menu.map((item) => {
|
11217
11262
|
const isActive = active == null ? void 0 : active.includes(item.navLink);
|
11218
|
-
return /* @__PURE__ */ (0,
|
11263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.AccordionItem, { mt: "4", children: ({ isExpanded }) => {
|
11219
11264
|
const isOpenOptions = isCollapse || !isCollapse && !isExpanded;
|
11220
11265
|
const noChild = !item.children.length;
|
11221
11266
|
const offsetStyle = isCollapse ? noChild ? [-5, 16] : [-1, 16] : [-1, 8];
|
11222
|
-
return /* @__PURE__ */ (0,
|
11223
|
-
/* @__PURE__ */ (0,
|
11267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
11268
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.Popover, { trigger: "hover", placement: "right-start", offset: offsetStyle, children: ({ isOpen, onClose }) => {
|
11224
11269
|
const activeOption = isOpen ? "primary.50" : "white";
|
11225
11270
|
const backgroundColor = isOpen && !isActive ? "primary.50" : "primary.100";
|
11226
11271
|
const activeParent = isActive ? backgroundColor : activeOption;
|
11227
|
-
return /* @__PURE__ */ (0,
|
11228
|
-
/* @__PURE__ */ (0,
|
11229
|
-
|
11272
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
|
11273
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
11274
|
+
import_react109.AccordionButton,
|
11230
11275
|
{
|
11231
11276
|
"data-test-id": `CTA_button-accordion-${item.title}`,
|
11232
11277
|
p: "0",
|
11233
11278
|
h: "fit-content",
|
11234
|
-
children: /* @__PURE__ */ (0,
|
11279
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
11235
11280
|
NavItem,
|
11236
11281
|
{
|
11237
11282
|
as: motion.div,
|
@@ -11243,9 +11288,9 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
11243
11288
|
position: "relative",
|
11244
11289
|
...itemStyles,
|
11245
11290
|
children: [
|
11246
|
-
mappingIcon2 && /* @__PURE__ */ (0,
|
11247
|
-
!isCollapse && /* @__PURE__ */ (0,
|
11248
|
-
|
11291
|
+
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.Box, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
|
11292
|
+
!isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
11293
|
+
import_react109.Box,
|
11249
11294
|
{
|
11250
11295
|
display: "flex",
|
11251
11296
|
w: "full",
|
@@ -11258,15 +11303,15 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
11258
11303
|
animate: { opacity: 1, x: 0 },
|
11259
11304
|
exit: { opacity: 0, x: 16 },
|
11260
11305
|
children: [
|
11261
|
-
/* @__PURE__ */ (0,
|
11262
|
-
!!item.children.length && /* @__PURE__ */ (0,
|
11263
|
-
|
11306
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.Box, { h: "3.5", position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.Text, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) }),
|
11307
|
+
!!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
11308
|
+
import_react109.Box,
|
11264
11309
|
{
|
11265
11310
|
display: "flex",
|
11266
11311
|
boxSize: "3",
|
11267
11312
|
as: motion.div,
|
11268
11313
|
animate: { transform: isExpanded ? "rotate(-180deg)" : "rotate(0)" },
|
11269
|
-
children: /* @__PURE__ */ (0,
|
11314
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Icon7.ChevronDown, { size: 3 })
|
11270
11315
|
}
|
11271
11316
|
)
|
11272
11317
|
]
|
@@ -11279,12 +11324,12 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
11279
11324
|
},
|
11280
11325
|
item.id
|
11281
11326
|
) }, item.id),
|
11282
|
-
isOpenOptions && /* @__PURE__ */ (0,
|
11283
|
-
/* @__PURE__ */ (0,
|
11327
|
+
isOpenOptions && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.Portal, { children: item.children.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react109.PopoverContent, { w: "176px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: [
|
11328
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.PopoverHeader, { borderColor: "neutral.300", textStyle: "text.xs", p: "2", children: mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react109.Box, { display: "flex", alignItems: "center", children: [
|
11284
11329
|
mappingIcon2.get(item.icon || ""),
|
11285
|
-
/* @__PURE__ */ (0,
|
11330
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.Box, { as: "span", ml: "2", children: item.title })
|
11286
11331
|
] }) }),
|
11287
|
-
!!item.children.length && /* @__PURE__ */ (0,
|
11332
|
+
!!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.PopoverBody, { pb: "1", px: "0", pt: "0", children: item.children.map((submenu) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
11288
11333
|
NavItem,
|
11289
11334
|
{
|
11290
11335
|
"data-test-id": `CTA_Sidebar-popover-item-${submenu.id}`,
|
@@ -11300,7 +11345,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
11300
11345
|
},
|
11301
11346
|
submenu.id
|
11302
11347
|
)) })
|
11303
|
-
] }) : isCollapse && /* @__PURE__ */ (0,
|
11348
|
+
] }) : isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.PopoverContent, { w: "174px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.PopoverBody, { py: "1", px: "0", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
11304
11349
|
NavItem,
|
11305
11350
|
{
|
11306
11351
|
"data-test-id": `CTA_Sidebar-popover-item-${item.id}`,
|
@@ -11313,15 +11358,15 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
|
|
11313
11358
|
rounded: "none",
|
11314
11359
|
...itemStyles,
|
11315
11360
|
children: [
|
11316
|
-
mappingIcon2 && /* @__PURE__ */ (0,
|
11317
|
-
/* @__PURE__ */ (0,
|
11361
|
+
mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.Box, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
|
11362
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.Box, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.Text, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) })
|
11318
11363
|
]
|
11319
11364
|
},
|
11320
11365
|
item.id
|
11321
11366
|
) }) }) })
|
11322
11367
|
] });
|
11323
11368
|
} }, item.id),
|
11324
|
-
!isCollapse && /* @__PURE__ */ (0,
|
11369
|
+
!isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react109.AccordionPanel, { mt: "1", p: "0", children: item.children.map((submenu) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
11325
11370
|
NavItem,
|
11326
11371
|
{
|
11327
11372
|
mt: "1",
|
@@ -11345,16 +11390,16 @@ SidebarMenu.defaultProps = {
|
|
11345
11390
|
};
|
11346
11391
|
|
11347
11392
|
// src/components/switch/components/switch.tsx
|
11348
|
-
var
|
11393
|
+
var import_react110 = require("@chakra-ui/react");
|
11349
11394
|
var import_shared_utils10 = require("@chakra-ui/shared-utils");
|
11350
11395
|
var import_internal_icon9 = require("@ctlyst.id/internal-icon");
|
11351
|
-
var
|
11352
|
-
var
|
11353
|
-
var Switch = (0,
|
11354
|
-
const styles = (0,
|
11355
|
-
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0,
|
11356
|
-
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0,
|
11357
|
-
const containerStyles = (0,
|
11396
|
+
var import_react111 = require("react");
|
11397
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
11398
|
+
var Switch = (0, import_react110.forwardRef)(function Switch2(props, ref) {
|
11399
|
+
const styles = (0, import_react110.useMultiStyleConfig)("Switch", props);
|
11400
|
+
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0, import_react110.omitThemingProps)(props);
|
11401
|
+
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0, import_react110.useCheckbox)(ownProps);
|
11402
|
+
const containerStyles = (0, import_react111.useMemo)(
|
11358
11403
|
() => ({
|
11359
11404
|
display: "inline-block",
|
11360
11405
|
position: "relative",
|
@@ -11364,7 +11409,7 @@ var Switch = (0, import_react109.forwardRef)(function Switch2(props, ref) {
|
|
11364
11409
|
}),
|
11365
11410
|
[styles.container]
|
11366
11411
|
);
|
11367
|
-
const trackStyles = (0,
|
11412
|
+
const trackStyles = (0, import_react111.useMemo)(
|
11368
11413
|
() => ({
|
11369
11414
|
display: "inline-flex",
|
11370
11415
|
flexShrink: 0,
|
@@ -11376,7 +11421,7 @@ var Switch = (0, import_react109.forwardRef)(function Switch2(props, ref) {
|
|
11376
11421
|
}),
|
11377
11422
|
[styles.track]
|
11378
11423
|
);
|
11379
|
-
const labelStyles = (0,
|
11424
|
+
const labelStyles = (0, import_react111.useMemo)(
|
11380
11425
|
() => ({
|
11381
11426
|
userSelect: "none",
|
11382
11427
|
marginStart: spacing2,
|
@@ -11392,8 +11437,8 @@ var Switch = (0, import_react109.forwardRef)(function Switch2(props, ref) {
|
|
11392
11437
|
};
|
11393
11438
|
return iconSize[value];
|
11394
11439
|
};
|
11395
|
-
return /* @__PURE__ */ (0,
|
11396
|
-
|
11440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
11441
|
+
import_react110.chakra.label,
|
11397
11442
|
{
|
11398
11443
|
...getRootProps(),
|
11399
11444
|
display: "flex",
|
@@ -11401,14 +11446,14 @@ var Switch = (0, import_react109.forwardRef)(function Switch2(props, ref) {
|
|
11401
11446
|
className: (0, import_shared_utils10.cx)("chakra-switch", props.className),
|
11402
11447
|
__css: containerStyles,
|
11403
11448
|
children: [
|
11404
|
-
/* @__PURE__ */ (0,
|
11405
|
-
/* @__PURE__ */ (0,
|
11406
|
-
/* @__PURE__ */ (0,
|
11407
|
-
/* @__PURE__ */ (0,
|
11408
|
-
/* @__PURE__ */ (0,
|
11449
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
11450
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react110.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
11451
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react110.Flex, { gap: 1, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
|
11452
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_internal_icon9.Check, { color: "white", size: getIconSize(props.size) }),
|
11453
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_internal_icon9.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
11409
11454
|
] }),
|
11410
|
-
/* @__PURE__ */ (0,
|
11411
|
-
|
11455
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
11456
|
+
import_react110.chakra.span,
|
11412
11457
|
{
|
11413
11458
|
__css: styles.thumb,
|
11414
11459
|
className: "chakra-switch__thumb",
|
@@ -11417,8 +11462,8 @@ var Switch = (0, import_react109.forwardRef)(function Switch2(props, ref) {
|
|
11417
11462
|
}
|
11418
11463
|
)
|
11419
11464
|
] }),
|
11420
|
-
children && /* @__PURE__ */ (0,
|
11421
|
-
|
11465
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
11466
|
+
import_react110.chakra.span,
|
11422
11467
|
{
|
11423
11468
|
className: "chakra-switch__label",
|
11424
11469
|
color: state.isDisabled ? "black.low" : "black.high",
|
@@ -11438,18 +11483,18 @@ Switch.defaultProps = {
|
|
11438
11483
|
var switch_default = Switch;
|
11439
11484
|
|
11440
11485
|
// src/components/table/index.tsx
|
11441
|
-
var
|
11486
|
+
var import_react112 = require("@chakra-ui/react");
|
11442
11487
|
|
11443
11488
|
// src/components/tabs/components/tab.tsx
|
11444
|
-
var
|
11445
|
-
var
|
11446
|
-
var Tab = (0,
|
11489
|
+
var import_react113 = require("@chakra-ui/react");
|
11490
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
11491
|
+
var Tab = (0, import_react113.forwardRef)((props, ref) => {
|
11447
11492
|
var _a, _b;
|
11448
|
-
const tabProps = (0,
|
11493
|
+
const tabProps = (0, import_react113.useTab)({ ...props, ref });
|
11449
11494
|
const isSelected = !!tabProps["aria-selected"];
|
11450
|
-
const styles = (0,
|
11451
|
-
return /* @__PURE__ */ (0,
|
11452
|
-
|
11495
|
+
const styles = (0, import_react113.useMultiStyleConfig)("Tabs", tabProps);
|
11496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
11497
|
+
import_react113.Button,
|
11453
11498
|
{
|
11454
11499
|
"data-test-id": props["data-test-id"],
|
11455
11500
|
p: 4,
|
@@ -11474,7 +11519,7 @@ var Tab = (0, import_react112.forwardRef)((props, ref) => {
|
|
11474
11519
|
},
|
11475
11520
|
__css: styles.tab,
|
11476
11521
|
...tabProps,
|
11477
|
-
children: /* @__PURE__ */ (0,
|
11522
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react113.Flex, { alignItems: "center", children: [
|
11478
11523
|
(_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
|
11479
11524
|
tabProps.children,
|
11480
11525
|
(_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
|
@@ -11485,21 +11530,21 @@ var Tab = (0, import_react112.forwardRef)((props, ref) => {
|
|
11485
11530
|
var tab_default = Tab;
|
11486
11531
|
|
11487
11532
|
// src/components/tabs/index.ts
|
11488
|
-
var
|
11533
|
+
var import_react114 = require("@chakra-ui/react");
|
11489
11534
|
|
11490
11535
|
// src/components/text/index.ts
|
11491
|
-
var
|
11536
|
+
var import_react115 = require("@chakra-ui/react");
|
11492
11537
|
|
11493
11538
|
// src/components/toast/components/toast.tsx
|
11494
|
-
var
|
11539
|
+
var import_react117 = require("@chakra-ui/react");
|
11495
11540
|
var import_react_toastify = require("react-toastify");
|
11496
11541
|
|
11497
11542
|
// src/components/toast/components/styles.tsx
|
11498
|
-
var
|
11499
|
-
var
|
11543
|
+
var import_react116 = require("@emotion/react");
|
11544
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
11500
11545
|
var Styles2 = () => {
|
11501
|
-
return /* @__PURE__ */ (0,
|
11502
|
-
|
11546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
11547
|
+
import_react116.Global,
|
11503
11548
|
{
|
11504
11549
|
styles: `
|
11505
11550
|
.Toastify__toast-container {
|
@@ -11530,7 +11575,7 @@ var Styles2 = () => {
|
|
11530
11575
|
var styles_default2 = Styles2;
|
11531
11576
|
|
11532
11577
|
// src/components/toast/components/toast.tsx
|
11533
|
-
var
|
11578
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
11534
11579
|
var DEFAULT_OPTIONS = {
|
11535
11580
|
position: "top-right",
|
11536
11581
|
autoClose: 5e3,
|
@@ -11552,7 +11597,7 @@ var renderIcon = (icon, type) => {
|
|
11552
11597
|
return icon;
|
11553
11598
|
};
|
11554
11599
|
var useToast = () => {
|
11555
|
-
const [primary500, neutral500, info500, danger500, warning500, success500] = (0,
|
11600
|
+
const [primary500, neutral500, info500, danger500, warning500, success500] = (0, import_react117.useToken)("colors", [
|
11556
11601
|
"primary.500",
|
11557
11602
|
"neutral.500",
|
11558
11603
|
"info.500",
|
@@ -11561,15 +11606,15 @@ var useToast = () => {
|
|
11561
11606
|
"success.500"
|
11562
11607
|
]);
|
11563
11608
|
const content = (icon, message, link) => {
|
11564
|
-
return /* @__PURE__ */ (0,
|
11565
|
-
/* @__PURE__ */ (0,
|
11566
|
-
/* @__PURE__ */ (0,
|
11567
|
-
/* @__PURE__ */ (0,
|
11568
|
-
icon && /* @__PURE__ */ (0,
|
11569
|
-
/* @__PURE__ */ (0,
|
11609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
|
11610
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(styles_default2, {}),
|
11611
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react117.Flex, { justifyContent: "space-between", alignItems: "center", gap: 4, children: [
|
11612
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react117.Flex, { alignItems: "center", children: [
|
11613
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react117.chakra.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
|
11614
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react117.chakra.span, { noOfLines: 2, children: message })
|
11570
11615
|
] }),
|
11571
|
-
link && /* @__PURE__ */ (0,
|
11572
|
-
|
11616
|
+
link && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
11617
|
+
import_react117.Link,
|
11573
11618
|
{
|
11574
11619
|
href: link.url,
|
11575
11620
|
textDecoration: "underline",
|
@@ -11646,21 +11691,6 @@ var useToast = () => {
|
|
11646
11691
|
// src/components/toast/index.ts
|
11647
11692
|
var import_react_toastify2 = require("react-toastify");
|
11648
11693
|
|
11649
|
-
// src/components/tooltip/components/tooltip.tsx
|
11650
|
-
var import_react117 = require("@chakra-ui/react");
|
11651
|
-
var import_jsx_runtime64 = require("react/jsx-runtime");
|
11652
|
-
var Tooltip = (props) => {
|
11653
|
-
const { children, bg = "neutral.700", textStyle = "text.sm", color: color2 = "white" } = props;
|
11654
|
-
const content = /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react117.PopoverContent, { border: "none", bg, textStyle, borderRadius: props.borderRadius, children: [
|
11655
|
-
props.hasArrow && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react117.PopoverArrow, { color: color2, bg }),
|
11656
|
-
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react117.PopoverBody, { color: color2, ...props, children: props.label })
|
11657
|
-
] });
|
11658
|
-
return props.isInteractive === true ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_react117.Popover, { trigger: "hover", placement: props.placement, children: [
|
11659
|
-
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react117.PopoverTrigger, { children }),
|
11660
|
-
props.portal ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react117.Portal, { children: content }) : content
|
11661
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react117.Tooltip, { ...props, children });
|
11662
|
-
};
|
11663
|
-
|
11664
11694
|
// src/components/uploader/components/uploader.tsx
|
11665
11695
|
var import_react118 = require("@chakra-ui/react");
|
11666
11696
|
var import_internal_icon10 = require("@ctlyst.id/internal-icon");
|