@ctlyst.id/internal-ui 2.1.15 → 2.1.17
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/accordion/__stories__/accordion.stories.d.ts +9 -0
- package/dist/components/accordion/components/accordion-indicator.d.ts +1 -0
- package/dist/components/accordion/components/index.d.ts +2 -0
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/alert/__stories__/alert.stories.d.ts +11 -0
- package/dist/components/alert/components/alert-action.d.ts +6 -0
- package/dist/components/alert/components/alert-close.d.ts +6 -0
- package/dist/components/alert/components/alert-context.d.ts +33 -0
- package/dist/components/alert/components/alert-description.d.ts +3 -0
- package/dist/components/alert/components/alert-icon.d.ts +6 -0
- package/dist/components/alert/components/alert-title.d.ts +3 -0
- package/dist/components/alert/components/alert.d.ts +25 -0
- package/dist/components/alert/components/icons.d.ts +3 -0
- package/dist/components/alert/components/index.d.ts +14 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/anchor/__stories__/anchor.stories.d.ts +9 -0
- package/dist/components/anchor/components/anchor.d.ts +20 -0
- package/dist/components/anchor/components/index.d.ts +1 -0
- package/dist/components/anchor/index.d.ts +1 -0
- package/dist/components/badge/__stories__/badge.stories.d.ts +15 -0
- package/dist/components/badge/components/badge.d.ts +11 -0
- package/dist/components/badge/components/index.d.ts +1 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/breadcrumb/__stories__/breadcrumb.stories.d.ts +8 -0
- package/dist/components/breadcrumb/components/bread-crumb.d.ts +18 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/button/__stories__/button.stories.d.ts +12 -0
- package/dist/components/button/components/button.d.ts +4 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/card/__stories__/card.stories.d.ts +8 -0
- package/dist/components/card/components/card.d.ts +8 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/checkbox/__stories__/checkbox.stories.d.ts +13 -0
- package/dist/components/checkbox/components/checkbox-group.d.ts +18 -0
- package/dist/components/checkbox/components/checkbox.d.ts +10 -0
- package/dist/components/checkbox/index.d.ts +5 -0
- package/dist/components/chips/__stories__/chips.stories.d.ts +9 -0
- package/dist/components/chips/components/chips.d.ts +19 -0
- package/dist/components/chips/index.d.ts +2 -0
- package/dist/components/collapse/__stories__/collapse.stories.d.ts +7 -0
- package/dist/components/counter/__stories__/counter.stories.d.ts +10 -0
- package/dist/components/counter/components/counter.d.ts +15 -0
- package/dist/components/counter/index.d.ts +1 -0
- package/dist/components/data-table/__stories__/datatable.stories.d.ts +21 -0
- package/dist/components/data-table/components/data-table.d.ts +30 -0
- package/dist/components/data-table/index.d.ts +3 -0
- package/dist/components/data-table/types/table-core.d.ts +1 -0
- package/dist/components/datepicker/__stories__/datepicker.stories.d.ts +13 -0
- package/dist/components/datepicker/components/datepicker-month/datepicker-month.d.ts +9 -0
- package/dist/components/datepicker/components/datepicker-month/index.d.ts +4 -0
- package/dist/components/datepicker/components/datepicker-month/multi-datepicker-month.d.ts +9 -0
- package/dist/components/datepicker/components/datepicker.d.ts +17 -0
- package/dist/components/datepicker/components/styles.d.ts +2 -0
- package/dist/components/datepicker/components/time-input.d.ts +9 -0
- package/dist/components/datepicker/index.d.ts +3 -0
- package/dist/components/dialog/__stories__/dialog.stories.d.ts +7 -0
- package/dist/components/dialog/components/dialog.d.ts +12 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/empty-state/__stories__/dialog.stories.d.ts +7 -0
- package/dist/components/field/__stories__/field.stories.d.ts +7 -0
- package/dist/components/field/components/field.d.ts +15 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/form/__stories__/input.stories.d.ts +15 -0
- package/dist/components/form/__stories__/textarea.stories.d.ts +7 -0
- package/dist/components/form/components/input-addon.d.ts +7 -0
- package/dist/components/form/components/input-element.d.ts +2 -0
- package/dist/components/form/components/input-field.d.ts +13 -0
- package/dist/components/form/components/textarea.d.ts +8 -0
- package/dist/components/form/index.d.ts +7 -0
- package/dist/components/form/styles/input-field.d.ts +4 -0
- package/dist/components/header/__stories__/header.stories.d.ts +9 -0
- package/dist/components/header/components/header.d.ts +19 -0
- package/dist/components/header/components/logo.d.ts +10 -0
- package/dist/components/header/components/profile.d.ts +11 -0
- package/dist/components/header/components/switch-mode.d.ts +3 -0
- package/dist/components/header/components/version.d.ts +10 -0
- package/dist/components/header/index.d.ts +3 -0
- package/dist/components/header/types.d.ts +10 -0
- package/dist/components/header/utils/formatter.d.ts +2 -0
- package/dist/components/image/__stories__/image.stories.d.ts +9 -0
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/index.d.ts +34 -0
- package/dist/components/layouting/index.d.ts +1 -0
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/loader/__stories__/loader.stories.d.ts +9 -0
- package/dist/components/loader/components/loader.d.ts +10 -0
- package/dist/components/loader/index.d.ts +3 -0
- package/dist/components/modal/__stories__/modal.stories.d.ts +7 -0
- package/dist/components/modal/components/modal-body.d.ts +4 -0
- package/dist/components/modal/components/modal-close-button.d.ts +4 -0
- package/dist/components/modal/components/modal-footer.d.ts +4 -0
- package/dist/components/modal/components/modal-header.d.ts +4 -0
- package/dist/components/modal/index.d.ts +5 -0
- package/dist/components/navigation/__stories__/navigation.stories.d.ts +8 -0
- package/dist/components/navigation/components/customer-icon.d.ts +2 -0
- package/dist/components/navigation/components/mapping-icon.d.ts +2 -0
- package/dist/components/navigation/components/navigation-bar.d.ts +12 -0
- package/dist/components/navigation/components/navigation.d.ts +11 -0
- package/dist/components/navigation/index.d.ts +4 -0
- package/dist/components/navigation/types.d.ts +24 -0
- package/dist/components/pagination/__stories__/pagination.stories.d.ts +10 -0
- package/dist/components/pagination/components/pagination-button-trigger.d.ts +10 -0
- package/dist/components/pagination/components/pagination-button.d.ts +6 -0
- package/dist/components/pagination/components/pagination-detail.d.ts +10 -0
- package/dist/components/pagination/components/pagination-filter.d.ts +13 -0
- package/dist/components/pagination/components/pagination.d.ts +16 -0
- package/dist/components/pagination/index.d.ts +6 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/radio/__stories__/radio.stories.d.ts +13 -0
- package/dist/components/radio/components/radio-group.d.ts +18 -0
- package/dist/components/radio/components/radio.d.ts +17 -0
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/rating/__stories__/rating.stories.d.ts +7 -0
- package/dist/components/rating/components/rating.d.ts +6 -0
- package/dist/components/rating/index.d.ts +2 -0
- package/dist/components/select/__stories__/select.stories.d.ts +10 -0
- package/dist/components/select/components/select-async-creatable.d.ts +5 -0
- package/dist/components/select/components/select-async.d.ts +6 -0
- package/dist/components/select/components/select-creatable.d.ts +5 -0
- package/dist/components/select/components/select-wrapper.d.ts +6 -0
- package/dist/components/select/components/select.d.ts +5 -0
- package/dist/components/select/components/types/select.types.d.ts +3 -0
- package/dist/components/select/components/utils.d.ts +26 -0
- package/dist/components/select/index.d.ts +8 -0
- package/dist/components/switch/__stories__/switch.stories.d.ts +10 -0
- package/dist/components/switch/components/switch.d.ts +18 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/tabs/__stories__/tabs.stories.d.ts +8 -0
- package/dist/components/tabs/components/tab.d.ts +12 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/toast/__stories__/toast.stories.d.ts +12 -0
- package/dist/components/toast/components/toast.d.ts +21 -0
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/tooltip/__stories__/tooltip.stories.d.ts +7 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/uploader/__stories__/uploader.stories.d.ts +9 -0
- package/dist/components/uploader/components/uploader.d.ts +12 -0
- package/dist/components/uploader/constants.d.ts +8 -0
- package/dist/components/uploader/index.d.ts +2 -0
- package/dist/config/__stories__/foundations.stories.d.ts +15 -0
- package/dist/config/__stories__/globals.stories.d.ts +10 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/theme/components/accordion.d.ts +53 -0
- package/dist/config/theme/components/alert.d.ts +69 -0
- package/dist/config/theme/components/badge.d.ts +3 -0
- package/dist/config/theme/components/button.d.ts +3 -0
- package/dist/config/theme/components/card.d.ts +18 -0
- package/dist/config/theme/components/checkbox.d.ts +101 -0
- package/dist/config/theme/components/chips.d.ts +34 -0
- package/dist/config/theme/components/form-label.d.ts +20 -0
- package/dist/config/theme/components/index.d.ts +16 -0
- package/dist/config/theme/components/input.d.ts +101 -0
- package/dist/config/theme/components/loader.d.ts +85 -0
- package/dist/config/theme/components/popover.d.ts +3 -0
- package/dist/config/theme/components/radio.d.ts +102 -0
- package/dist/config/theme/components/switch.d.ts +75 -0
- package/dist/config/theme/components/table.d.ts +180 -0
- package/dist/config/theme/components/tabs.d.ts +30 -0
- package/dist/config/theme/components/textarea.d.ts +55 -0
- package/dist/config/theme/foundations/index.d.ts +5 -0
- package/dist/config/theme/foundations/radius.d.ts +8 -0
- package/dist/config/theme/foundations/shadows.d.ts +15 -0
- package/dist/config/theme/foundations/sizes.d.ts +66 -0
- package/dist/config/theme/foundations/spacing.d.ts +42 -0
- package/dist/config/theme/foundations/typography.d.ts +191 -0
- package/dist/config/theme/index.d.ts +1 -0
- package/dist/config/theme/themeConfiguration.d.ts +6 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useFetcher.d.ts +4 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +651 -699
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +205 -267
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/common.d.ts +17 -0
- package/dist/internal-ui.cjs.development.js +6119 -0
- package/dist/internal-ui.cjs.development.js.map +1 -0
- package/dist/internal-ui.cjs.production.min.js +38 -0
- package/dist/internal-ui.cjs.production.min.js.map +1 -0
- package/dist/internal-ui.esm.js +5082 -0
- package/dist/internal-ui.esm.js.map +1 -0
- package/dist/provider/__stories__/provider.stories.d.ts +13 -0
- package/dist/provider/components/provider.d.ts +7 -0
- package/dist/provider/index.d.ts +3 -0
- package/dist/provider/types.d.ts +14 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -48,35 +48,35 @@ __export(src_exports, {
|
|
48
48
|
AlertAction: () => AlertAction,
|
49
49
|
AlertClose: () => AlertClose,
|
50
50
|
AlertDescription: () => AlertDescription,
|
51
|
-
AlertDialog: () =>
|
52
|
-
AlertDialogBody: () =>
|
53
|
-
AlertDialogCloseButton: () =>
|
54
|
-
AlertDialogContent: () =>
|
55
|
-
AlertDialogFooter: () =>
|
56
|
-
AlertDialogHeader: () =>
|
57
|
-
AlertDialogOverlay: () =>
|
58
|
-
AlertDialogProps: () =>
|
51
|
+
AlertDialog: () => import_react58.AlertDialog,
|
52
|
+
AlertDialogBody: () => import_react58.ModalBody,
|
53
|
+
AlertDialogCloseButton: () => import_react58.ModalCloseButton,
|
54
|
+
AlertDialogContent: () => import_react58.AlertDialogContent,
|
55
|
+
AlertDialogFooter: () => import_react58.ModalFooter,
|
56
|
+
AlertDialogHeader: () => import_react58.ModalHeader,
|
57
|
+
AlertDialogOverlay: () => import_react58.ModalOverlay,
|
58
|
+
AlertDialogProps: () => import_react58.AlertDialogProps,
|
59
59
|
AlertIcon: () => AlertIcon,
|
60
60
|
AlertTitle: () => AlertTitle,
|
61
61
|
Anchor: () => Anchor,
|
62
|
-
Avatar: () =>
|
63
|
-
AvatarBadge: () =>
|
64
|
-
AvatarBadgeProps: () =>
|
65
|
-
AvatarGroup: () =>
|
66
|
-
AvatarGroupProps: () =>
|
67
|
-
AvatarProps: () =>
|
62
|
+
Avatar: () => import_react83.Avatar,
|
63
|
+
AvatarBadge: () => import_react83.AvatarBadge,
|
64
|
+
AvatarBadgeProps: () => import_react83.AvatarBadgeProps,
|
65
|
+
AvatarGroup: () => import_react83.AvatarGroup,
|
66
|
+
AvatarGroupProps: () => import_react83.AvatarGroupProps,
|
67
|
+
AvatarProps: () => import_react83.AvatarProps,
|
68
68
|
Badge: () => badge_default,
|
69
|
-
Box: () =>
|
70
|
-
BoxProps: () =>
|
69
|
+
Box: () => import_react47.Box,
|
70
|
+
BoxProps: () => import_react47.BoxProps,
|
71
71
|
BreadCrumb: () => bread_crumb_default,
|
72
72
|
Button: () => button_default,
|
73
73
|
ButtonGroup: () => import_react9.ButtonGroup,
|
74
74
|
ButtonGroupProps: () => import_react9.ButtonGroupProps,
|
75
75
|
Card: () => card_default,
|
76
|
-
Center: () =>
|
77
|
-
ChakraProvider: () =>
|
78
|
-
ChakraProviderProps: () =>
|
79
|
-
ChakraTable: () =>
|
76
|
+
Center: () => import_react47.Center,
|
77
|
+
ChakraProvider: () => import_react91.ChakraProvider,
|
78
|
+
ChakraProviderProps: () => import_react91.ChakraProviderProps,
|
79
|
+
ChakraTable: () => import_react77.Table,
|
80
80
|
Checkbox: () => checkbox_default,
|
81
81
|
CheckboxGroup: () => checkbox_group_default,
|
82
82
|
CheckboxGroupContext: () => import_react16.CheckboxGroupContext,
|
@@ -87,227 +87,227 @@ __export(src_exports, {
|
|
87
87
|
Chips: () => chips_default,
|
88
88
|
CloseButton: () => import_react9.CloseButton,
|
89
89
|
CloseButtonProps: () => import_react9.CloseButtonProps,
|
90
|
-
Code: () =>
|
91
|
-
CodeProps: () =>
|
92
|
-
Collapse: () =>
|
93
|
-
CollapseProps: () =>
|
94
|
-
ColorMode: () =>
|
95
|
-
ColorModeScript: () =>
|
96
|
-
ColorModeScriptProps: () =>
|
97
|
-
Container: () =>
|
98
|
-
ContainerProps: () =>
|
90
|
+
Code: () => import_react80.Code,
|
91
|
+
CodeProps: () => import_react80.CodeProps,
|
92
|
+
Collapse: () => import_react83.Collapse,
|
93
|
+
CollapseProps: () => import_react83.CollapseProps,
|
94
|
+
ColorMode: () => import_react91.ColorMode,
|
95
|
+
ColorModeScript: () => import_react91.ColorModeScript,
|
96
|
+
ColorModeScriptProps: () => import_react91.ColorModeScriptProps,
|
97
|
+
Container: () => import_react47.Container,
|
98
|
+
ContainerProps: () => import_react47.ContainerProps,
|
99
99
|
Counter: () => counter_default,
|
100
100
|
DataTable: () => data_table_default,
|
101
101
|
DatePickerMonth: () => datepicker_month_default,
|
102
102
|
Datepicker: () => datepicker_default,
|
103
103
|
Dialog: () => dialog_default,
|
104
|
-
Divider: () =>
|
105
|
-
DividerProps: () =>
|
106
|
-
Drawer: () =>
|
107
|
-
DrawerBody: () =>
|
108
|
-
DrawerCloseButton: () =>
|
109
|
-
DrawerContent: () =>
|
110
|
-
DrawerContentProps: () =>
|
111
|
-
DrawerFooter: () =>
|
112
|
-
DrawerHeader: () =>
|
113
|
-
DrawerOverlay: () =>
|
114
|
-
DrawerProps: () =>
|
115
|
-
Fade: () =>
|
116
|
-
FadeProps: () =>
|
104
|
+
Divider: () => import_react47.Divider,
|
105
|
+
DividerProps: () => import_react47.DividerProps,
|
106
|
+
Drawer: () => import_react58.Drawer,
|
107
|
+
DrawerBody: () => import_react58.ModalBody,
|
108
|
+
DrawerCloseButton: () => import_react58.ModalCloseButton,
|
109
|
+
DrawerContent: () => import_react58.DrawerContent,
|
110
|
+
DrawerContentProps: () => import_react58.DrawerContentProps,
|
111
|
+
DrawerFooter: () => import_react58.ModalFooter,
|
112
|
+
DrawerHeader: () => import_react58.ModalHeader,
|
113
|
+
DrawerOverlay: () => import_react58.ModalOverlay,
|
114
|
+
DrawerProps: () => import_react58.DrawerProps,
|
115
|
+
Fade: () => import_react83.Fade,
|
116
|
+
FadeProps: () => import_react83.FadeProps,
|
117
117
|
Field: () => field_default,
|
118
|
-
Flex: () =>
|
119
|
-
FlexProps: () =>
|
120
|
-
FormControl: () =>
|
121
|
-
FormControlProps: () =>
|
122
|
-
FormErrorMessage: () =>
|
123
|
-
FormHelperText: () =>
|
124
|
-
FormLabel: () =>
|
125
|
-
FormLabelProps: () =>
|
126
|
-
Grid: () =>
|
127
|
-
GridItem: () =>
|
128
|
-
GridItemProps: () =>
|
129
|
-
GridProps: () =>
|
130
|
-
HStack: () =>
|
118
|
+
Flex: () => import_react47.Flex,
|
119
|
+
FlexProps: () => import_react47.FlexProps,
|
120
|
+
FormControl: () => import_react26.FormControl,
|
121
|
+
FormControlProps: () => import_react26.FormControlProps,
|
122
|
+
FormErrorMessage: () => import_react26.FormErrorMessage,
|
123
|
+
FormHelperText: () => import_react26.FormHelperText,
|
124
|
+
FormLabel: () => import_react26.FormLabel,
|
125
|
+
FormLabelProps: () => import_react26.FormLabelProps,
|
126
|
+
Grid: () => import_react47.Grid,
|
127
|
+
GridItem: () => import_react47.GridItem,
|
128
|
+
GridItemProps: () => import_react47.GridItemProps,
|
129
|
+
GridProps: () => import_react47.GridProps,
|
130
|
+
HStack: () => import_react47.HStack,
|
131
131
|
Header: () => header_default,
|
132
|
-
Heading: () =>
|
133
|
-
HeadingProps: () =>
|
134
|
-
Hide: () =>
|
135
|
-
HideProps: () =>
|
136
|
-
Icon: () =>
|
132
|
+
Heading: () => import_react80.Heading,
|
133
|
+
HeadingProps: () => import_react80.HeadingProps,
|
134
|
+
Hide: () => import_react83.Hide,
|
135
|
+
HideProps: () => import_react83.HideProps,
|
136
|
+
Icon: () => import_react46.Icon,
|
137
137
|
IconButton: () => import_react9.IconButton,
|
138
138
|
IconButtonProps: () => import_react9.IconButtonProps,
|
139
|
-
IconProps: () =>
|
140
|
-
Image: () =>
|
141
|
-
ImageProps: () =>
|
142
|
-
Img: () =>
|
143
|
-
ImgProps: () =>
|
139
|
+
IconProps: () => import_react46.IconProps,
|
140
|
+
Image: () => import_react46.Image,
|
141
|
+
ImageProps: () => import_react46.ImageProps,
|
142
|
+
Img: () => import_react83.Img,
|
143
|
+
ImgProps: () => import_react83.ImgProps,
|
144
144
|
InputAddonLeft: () => InputAddonLeft,
|
145
145
|
InputAddonRight: () => InputAddonRight,
|
146
146
|
InputElementLeft: () => import_react20.InputLeftElement,
|
147
147
|
InputElementRight: () => import_react21.InputRightElement,
|
148
|
-
InputField: () =>
|
149
|
-
InputGroup: () =>
|
150
|
-
InputGroupProps: () =>
|
151
|
-
InputLeftAddon: () =>
|
152
|
-
InputLeftAddonProps: () =>
|
153
|
-
InputLeftElement: () =>
|
154
|
-
InputLeftElementProps: () =>
|
155
|
-
InputProps: () =>
|
156
|
-
InputRightAddon: () =>
|
157
|
-
InputRightAddonProps: () =>
|
158
|
-
InputRightElement: () =>
|
159
|
-
InputRightElementProps: () =>
|
160
|
-
Link: () =>
|
161
|
-
LinkProps: () =>
|
162
|
-
List: () =>
|
163
|
-
ListIcon: () =>
|
164
|
-
ListItem: () =>
|
165
|
-
ListItemProps: () =>
|
166
|
-
ListProps: () =>
|
148
|
+
InputField: () => input_field_default,
|
149
|
+
InputGroup: () => import_react26.InputGroup,
|
150
|
+
InputGroupProps: () => import_react26.InputGroupProps,
|
151
|
+
InputLeftAddon: () => import_react26.InputLeftAddon,
|
152
|
+
InputLeftAddonProps: () => import_react26.InputLeftAddonProps,
|
153
|
+
InputLeftElement: () => import_react26.InputLeftElement,
|
154
|
+
InputLeftElementProps: () => import_react26.InputLeftElementProps,
|
155
|
+
InputProps: () => import_react26.InputProps,
|
156
|
+
InputRightAddon: () => import_react26.InputRightAddon,
|
157
|
+
InputRightAddonProps: () => import_react26.InputRightAddonProps,
|
158
|
+
InputRightElement: () => import_react26.InputRightElement,
|
159
|
+
InputRightElementProps: () => import_react26.InputRightElementProps,
|
160
|
+
Link: () => import_react80.Link,
|
161
|
+
LinkProps: () => import_react80.LinkProps,
|
162
|
+
List: () => import_react48.List,
|
163
|
+
ListIcon: () => import_react48.ListIcon,
|
164
|
+
ListItem: () => import_react48.ListItem,
|
165
|
+
ListItemProps: () => import_react48.ListItemProps,
|
166
|
+
ListProps: () => import_react48.ListProps,
|
167
167
|
Loader: () => loader_default,
|
168
168
|
MainMenu: () => navigation_default,
|
169
|
-
Modal: () =>
|
169
|
+
Modal: () => import_react58.Modal,
|
170
170
|
ModalBackButton: () => modal_back_button_default,
|
171
171
|
ModalBody: () => modal_body_default,
|
172
|
-
ModalBodyProps: () =>
|
172
|
+
ModalBodyProps: () => import_react58.ModalBodyProps,
|
173
173
|
ModalCloseButton: () => modal_close_button_default,
|
174
|
-
ModalContent: () =>
|
175
|
-
ModalContentProps: () =>
|
176
|
-
ModalContextProvider: () =>
|
177
|
-
ModalFocusScope: () =>
|
174
|
+
ModalContent: () => import_react58.ModalContent,
|
175
|
+
ModalContentProps: () => import_react58.ModalContentProps,
|
176
|
+
ModalContextProvider: () => import_react58.ModalContextProvider,
|
177
|
+
ModalFocusScope: () => import_react58.ModalFocusScope,
|
178
178
|
ModalFooter: () => modal_footer_default,
|
179
|
-
ModalFooterProps: () =>
|
179
|
+
ModalFooterProps: () => import_react58.ModalFooterProps,
|
180
180
|
ModalHeader: () => modal_header_default,
|
181
|
-
ModalHeaderProps: () =>
|
182
|
-
ModalOverlay: () =>
|
183
|
-
ModalOverlayProps: () =>
|
184
|
-
ModalProps: () =>
|
181
|
+
ModalHeaderProps: () => import_react58.ModalHeaderProps,
|
182
|
+
ModalOverlay: () => import_react58.ModalOverlay,
|
183
|
+
ModalOverlayProps: () => import_react58.ModalOverlayProps,
|
184
|
+
ModalProps: () => import_react58.ModalProps,
|
185
185
|
MultiDatePickerMonth: () => multi_datepicker_month_default,
|
186
186
|
NavigationBar: () => navigation_bar_default,
|
187
|
-
OrderedList: () =>
|
187
|
+
OrderedList: () => import_react48.OrderedList,
|
188
188
|
Pagination: () => pagination_default,
|
189
189
|
PaginationDetail: () => pagination_detail_default,
|
190
190
|
PaginationFilter: () => pagination_filter_default,
|
191
|
-
Popover: () =>
|
192
|
-
PopoverAnchor: () =>
|
193
|
-
PopoverArrow: () =>
|
194
|
-
PopoverArrowProps: () =>
|
195
|
-
PopoverBody: () =>
|
196
|
-
PopoverBodyProps: () =>
|
197
|
-
PopoverCloseButton: () =>
|
198
|
-
PopoverContent: () =>
|
199
|
-
PopoverContentProps: () =>
|
200
|
-
PopoverFooter: () =>
|
201
|
-
PopoverFooterProps: () =>
|
202
|
-
PopoverHeader: () =>
|
203
|
-
PopoverHeaderProps: () =>
|
204
|
-
PopoverProps: () =>
|
205
|
-
PopoverTrigger: () =>
|
206
|
-
Portal: () =>
|
207
|
-
PortalProps: () =>
|
191
|
+
Popover: () => import_react67.Popover,
|
192
|
+
PopoverAnchor: () => import_react67.PopoverAnchor,
|
193
|
+
PopoverArrow: () => import_react67.PopoverArrow,
|
194
|
+
PopoverArrowProps: () => import_react67.PopoverArrowProps,
|
195
|
+
PopoverBody: () => import_react67.PopoverBody,
|
196
|
+
PopoverBodyProps: () => import_react67.PopoverBodyProps,
|
197
|
+
PopoverCloseButton: () => import_react67.PopoverCloseButton,
|
198
|
+
PopoverContent: () => import_react67.PopoverContent,
|
199
|
+
PopoverContentProps: () => import_react67.PopoverContentProps,
|
200
|
+
PopoverFooter: () => import_react67.PopoverFooter,
|
201
|
+
PopoverFooterProps: () => import_react67.PopoverFooterProps,
|
202
|
+
PopoverHeader: () => import_react67.PopoverHeader,
|
203
|
+
PopoverHeaderProps: () => import_react67.PopoverHeaderProps,
|
204
|
+
PopoverProps: () => import_react67.PopoverProps,
|
205
|
+
PopoverTrigger: () => import_react67.PopoverTrigger,
|
206
|
+
Portal: () => import_react67.Portal,
|
207
|
+
PortalProps: () => import_react67.PortalProps,
|
208
208
|
Provider: () => provider_default,
|
209
209
|
ProviderContext: () => ProviderContext,
|
210
210
|
Radio: () => Radio,
|
211
211
|
RadioGroup: () => RadioGroup,
|
212
|
-
RadioGroupContext: () =>
|
212
|
+
RadioGroupContext: () => import_react70.RadioGroupContext,
|
213
213
|
Rating: () => rating_default,
|
214
|
-
RequiredIndicator: () =>
|
215
|
-
RequiredIndicatorProps: () =>
|
216
|
-
ScaleFade: () =>
|
217
|
-
ScaleFadeProps: () =>
|
214
|
+
RequiredIndicator: () => import_react26.RequiredIndicator,
|
215
|
+
RequiredIndicatorProps: () => import_react26.RequiredIndicatorProps,
|
216
|
+
ScaleFade: () => import_react83.ScaleFade,
|
217
|
+
ScaleFadeProps: () => import_react83.ScaleFadeProps,
|
218
218
|
Select: () => select_default,
|
219
219
|
SelectAsync: () => select_async_default,
|
220
220
|
SelectAsyncCreatable: () => SelectAsyncCreatable,
|
221
221
|
SelectCreatable: () => SelectCreatable,
|
222
|
-
Show: () =>
|
223
|
-
ShowProps: () =>
|
224
|
-
SimpleGrid: () =>
|
222
|
+
Show: () => import_react83.Show,
|
223
|
+
ShowProps: () => import_react83.ShowProps,
|
224
|
+
SimpleGrid: () => import_react47.SimpleGrid,
|
225
225
|
Skeleton: () => import_react5.Skeleton,
|
226
|
-
Slide: () =>
|
227
|
-
SlideFade: () =>
|
228
|
-
SlideFadeProps: () =>
|
229
|
-
SlideProps: () =>
|
230
|
-
Spacer: () =>
|
231
|
-
Stack: () =>
|
232
|
-
StackProps: () =>
|
233
|
-
Step: () =>
|
234
|
-
StepDescription: () =>
|
235
|
-
StepIcon: () =>
|
236
|
-
StepIndicator: () =>
|
237
|
-
StepNumber: () =>
|
238
|
-
StepSeparator: () =>
|
239
|
-
StepStatus: () =>
|
240
|
-
StepTitle: () =>
|
241
|
-
Stepper: () =>
|
226
|
+
Slide: () => import_react83.Slide,
|
227
|
+
SlideFade: () => import_react83.SlideFade,
|
228
|
+
SlideFadeProps: () => import_react83.SlideFadeProps,
|
229
|
+
SlideProps: () => import_react83.SlideProps,
|
230
|
+
Spacer: () => import_react47.Spacer,
|
231
|
+
Stack: () => import_react47.Stack,
|
232
|
+
StackProps: () => import_react47.StackProps,
|
233
|
+
Step: () => import_react83.Step,
|
234
|
+
StepDescription: () => import_react83.StepDescription,
|
235
|
+
StepIcon: () => import_react83.StepIcon,
|
236
|
+
StepIndicator: () => import_react83.StepIndicator,
|
237
|
+
StepNumber: () => import_react83.StepNumber,
|
238
|
+
StepSeparator: () => import_react83.StepSeparator,
|
239
|
+
StepStatus: () => import_react83.StepStatus,
|
240
|
+
StepTitle: () => import_react83.StepTitle,
|
241
|
+
Stepper: () => import_react83.Stepper,
|
242
242
|
Switch: () => switch_default,
|
243
243
|
Tab: () => tab_default,
|
244
|
-
TabIndicator: () =>
|
245
|
-
TabIndicatorProps: () =>
|
246
|
-
TabList: () =>
|
247
|
-
TabListProps: () =>
|
248
|
-
TabPanel: () =>
|
249
|
-
TabPanelProps: () =>
|
250
|
-
TabPanels: () =>
|
251
|
-
TabPanelsProps: () =>
|
252
|
-
TabProps: () =>
|
253
|
-
TableBodyProps: () =>
|
254
|
-
TableCellProps: () =>
|
255
|
-
TableColumnHeaderProps: () =>
|
256
|
-
TableHeadProps: () =>
|
257
|
-
TableProps: () =>
|
258
|
-
TableRowProps: () =>
|
259
|
-
Tabs: () =>
|
260
|
-
TabsDescendantsProvider: () =>
|
261
|
-
TabsProps: () =>
|
262
|
-
TabsProvider: () =>
|
263
|
-
Tbody: () =>
|
264
|
-
Td: () =>
|
265
|
-
Text: () =>
|
266
|
-
TextProps: () =>
|
244
|
+
TabIndicator: () => import_react79.TabIndicator,
|
245
|
+
TabIndicatorProps: () => import_react79.TabIndicatorProps,
|
246
|
+
TabList: () => import_react79.TabList,
|
247
|
+
TabListProps: () => import_react79.TabListProps,
|
248
|
+
TabPanel: () => import_react79.TabPanel,
|
249
|
+
TabPanelProps: () => import_react79.TabPanelProps,
|
250
|
+
TabPanels: () => import_react79.TabPanels,
|
251
|
+
TabPanelsProps: () => import_react79.TabPanelsProps,
|
252
|
+
TabProps: () => import_react79.TabProps,
|
253
|
+
TableBodyProps: () => import_react77.TableBodyProps,
|
254
|
+
TableCellProps: () => import_react77.TableCellProps,
|
255
|
+
TableColumnHeaderProps: () => import_react77.TableColumnHeaderProps,
|
256
|
+
TableHeadProps: () => import_react77.TableHeadProps,
|
257
|
+
TableProps: () => import_react77.TableProps,
|
258
|
+
TableRowProps: () => import_react77.TableRowProps,
|
259
|
+
Tabs: () => import_react79.Tabs,
|
260
|
+
TabsDescendantsProvider: () => import_react79.TabsDescendantsProvider,
|
261
|
+
TabsProps: () => import_react79.TabsProps,
|
262
|
+
TabsProvider: () => import_react79.TabsProvider,
|
263
|
+
Tbody: () => import_react77.Tbody,
|
264
|
+
Td: () => import_react77.Td,
|
265
|
+
Text: () => import_react80.Text,
|
266
|
+
TextProps: () => import_react80.TextProps,
|
267
267
|
TextareaField: () => textarea_default,
|
268
|
-
Th: () =>
|
269
|
-
Thead: () =>
|
268
|
+
Th: () => import_react77.Th,
|
269
|
+
Thead: () => import_react77.Thead,
|
270
270
|
ThemeTypings: () => import_styled_system13.ThemeTypings,
|
271
|
-
Tooltip: () =>
|
272
|
-
TooltipProps: () =>
|
273
|
-
Tr: () =>
|
274
|
-
UnorderedList: () =>
|
271
|
+
Tooltip: () => import_react81.Tooltip,
|
272
|
+
TooltipProps: () => import_react81.TooltipProps,
|
273
|
+
Tr: () => import_react77.Tr,
|
274
|
+
UnorderedList: () => import_react48.UnorderedList,
|
275
275
|
Uploader: () => uploader_default,
|
276
276
|
UseAccordionItemProps: () => import_react3.UseAccordionItemProps,
|
277
277
|
UseAccordionItemReturn: () => import_react3.UseAccordionItemReturn,
|
278
278
|
UseAccordionProps: () => import_react3.UseAccordionProps,
|
279
279
|
UseAccordionReturn: () => import_react3.UseAccordionReturn,
|
280
|
-
UseBreakpointOptions: () =>
|
280
|
+
UseBreakpointOptions: () => import_react83.UseBreakpointOptions,
|
281
281
|
UseCheckboxGroupProps: () => import_react16.UseCheckboxGroupProps,
|
282
282
|
UseCheckboxGroupReturn: () => import_react16.UseCheckboxGroupReturn,
|
283
283
|
UseCheckboxProps: () => import_react16.UseCheckboxProps,
|
284
284
|
UseCheckboxReturn: () => import_react16.UseCheckboxReturn,
|
285
|
-
UseDisclosureProps: () =>
|
286
|
-
UseImageProps: () =>
|
287
|
-
UseImageReturn: () =>
|
288
|
-
UseMediaQueryOptions: () =>
|
289
|
-
UseModalProps: () =>
|
290
|
-
UseModalReturn: () =>
|
291
|
-
UseQueryProps: () =>
|
292
|
-
UseRadioGroupReturn: () =>
|
293
|
-
UseRadioProps: () =>
|
294
|
-
UseRadioReturn: () =>
|
295
|
-
UseTabListProps: () =>
|
296
|
-
UseTabListReturn: () =>
|
297
|
-
UseTabOptions: () =>
|
298
|
-
UseTabPanelsProps: () =>
|
299
|
-
UseTabProps: () =>
|
300
|
-
UseTabsProps: () =>
|
301
|
-
UseTabsReturn: () =>
|
302
|
-
VStack: () =>
|
303
|
-
VisuallyHidden: () =>
|
304
|
-
VisuallyHiddenInput: () =>
|
305
|
-
Wrap: () =>
|
306
|
-
WrapItem: () =>
|
307
|
-
WrapItemProps: () =>
|
308
|
-
WrapProps: () =>
|
309
|
-
extendTheme: () =>
|
310
|
-
forwardRef: () =>
|
285
|
+
UseDisclosureProps: () => import_react93.UseDisclosureProps,
|
286
|
+
UseImageProps: () => import_react83.UseImageProps,
|
287
|
+
UseImageReturn: () => import_react83.UseImageReturn,
|
288
|
+
UseMediaQueryOptions: () => import_react83.UseMediaQueryOptions,
|
289
|
+
UseModalProps: () => import_react58.UseModalProps,
|
290
|
+
UseModalReturn: () => import_react58.UseModalReturn,
|
291
|
+
UseQueryProps: () => import_react83.UseQueryProps,
|
292
|
+
UseRadioGroupReturn: () => import_react70.UseRadioGroupReturn,
|
293
|
+
UseRadioProps: () => import_react70.UseRadioProps,
|
294
|
+
UseRadioReturn: () => import_react70.UseRadioReturn,
|
295
|
+
UseTabListProps: () => import_react79.UseTabListProps,
|
296
|
+
UseTabListReturn: () => import_react79.UseTabListReturn,
|
297
|
+
UseTabOptions: () => import_react79.UseTabOptions,
|
298
|
+
UseTabPanelsProps: () => import_react79.UseTabPanelsProps,
|
299
|
+
UseTabProps: () => import_react79.UseTabProps,
|
300
|
+
UseTabsProps: () => import_react79.UseTabsProps,
|
301
|
+
UseTabsReturn: () => import_react79.UseTabsReturn,
|
302
|
+
VStack: () => import_react47.VStack,
|
303
|
+
VisuallyHidden: () => import_react83.VisuallyHidden,
|
304
|
+
VisuallyHiddenInput: () => import_react83.VisuallyHiddenInput,
|
305
|
+
Wrap: () => import_react47.Wrap,
|
306
|
+
WrapItem: () => import_react47.WrapItem,
|
307
|
+
WrapItemProps: () => import_react47.WrapItemProps,
|
308
|
+
WrapProps: () => import_react47.WrapProps,
|
309
|
+
extendTheme: () => import_react94.extendTheme,
|
310
|
+
forwardRef: () => import_react94.forwardRef,
|
311
311
|
getTheme: () => getTheme,
|
312
312
|
theme: () => theme5,
|
313
313
|
useAccordion: () => import_react3.useAccordion,
|
@@ -316,47 +316,47 @@ __export(src_exports, {
|
|
316
316
|
useAccordionItemState: () => import_react3.useAccordionItemState,
|
317
317
|
useAccordionStyles: () => import_react3.useAccordionStyles,
|
318
318
|
useAlertStyles: () => useAlertStyles,
|
319
|
-
useBoolean: () =>
|
320
|
-
useBreakpoint: () =>
|
319
|
+
useBoolean: () => import_react93.useBoolean,
|
320
|
+
useBreakpoint: () => import_react83.useBreakpoint,
|
321
321
|
useCheckbox: () => import_react16.useCheckbox,
|
322
322
|
useCheckboxGroup: () => import_react16.useCheckboxGroup,
|
323
|
-
useClipboard: () =>
|
324
|
-
useColorMode: () =>
|
325
|
-
useColorModePreference: () =>
|
326
|
-
useColorModeValue: () =>
|
327
|
-
useConst: () =>
|
328
|
-
useControllableProp: () =>
|
329
|
-
useControllableState: () =>
|
323
|
+
useClipboard: () => import_react93.useClipboard,
|
324
|
+
useColorMode: () => import_react93.useColorMode,
|
325
|
+
useColorModePreference: () => import_react83.useColorModePreference,
|
326
|
+
useColorModeValue: () => import_react93.useColorModeValue,
|
327
|
+
useConst: () => import_react93.useConst,
|
328
|
+
useControllableProp: () => import_react93.useControllableProp,
|
329
|
+
useControllableState: () => import_react93.useControllableState,
|
330
330
|
useDataTable: () => useDataTable,
|
331
|
-
useDimensions: () =>
|
332
|
-
useDisclosure: () =>
|
333
|
-
useDrawerContext: () =>
|
331
|
+
useDimensions: () => import_react93.useDimensions,
|
332
|
+
useDisclosure: () => import_react93.useDisclosure,
|
333
|
+
useDrawerContext: () => import_react58.useDrawerContext,
|
334
334
|
useFetcher: () => useFetcher,
|
335
|
-
useImage: () =>
|
335
|
+
useImage: () => import_react83.useImage,
|
336
336
|
useInternalUI: () => useInternalUI,
|
337
|
-
useMergeRefs: () =>
|
338
|
-
useModal: () =>
|
339
|
-
useModalContext: () =>
|
340
|
-
useModalStyles: () =>
|
341
|
-
useOutsideClick: () =>
|
342
|
-
useQuery: () =>
|
343
|
-
useRadio: () =>
|
344
|
-
useRadioGroup: () =>
|
345
|
-
useRadioGroupContext: () =>
|
346
|
-
useSteps: () =>
|
347
|
-
useTab: () =>
|
348
|
-
useTabIndicator: () =>
|
349
|
-
useTabList: () =>
|
350
|
-
useTabPanel: () =>
|
351
|
-
useTabPanels: () =>
|
352
|
-
useTabs: () =>
|
353
|
-
useTabsContext: () =>
|
354
|
-
useTabsDescendant: () =>
|
355
|
-
useTabsDescendants: () =>
|
356
|
-
useTabsDescendantsContext: () =>
|
357
|
-
useTabsStyles: () =>
|
358
|
-
useTheme: () =>
|
359
|
-
useToken: () =>
|
337
|
+
useMergeRefs: () => import_react93.useMergeRefs,
|
338
|
+
useModal: () => import_react58.useModal,
|
339
|
+
useModalContext: () => import_react58.useModalContext,
|
340
|
+
useModalStyles: () => import_react58.useModalStyles,
|
341
|
+
useOutsideClick: () => import_react93.useOutsideClick,
|
342
|
+
useQuery: () => import_react83.useQuery,
|
343
|
+
useRadio: () => import_react70.useRadio,
|
344
|
+
useRadioGroup: () => import_react70.useRadioGroup,
|
345
|
+
useRadioGroupContext: () => import_react70.useRadioGroupContext,
|
346
|
+
useSteps: () => import_react83.useSteps,
|
347
|
+
useTab: () => import_react79.useTab,
|
348
|
+
useTabIndicator: () => import_react79.useTabIndicator,
|
349
|
+
useTabList: () => import_react79.useTabList,
|
350
|
+
useTabPanel: () => import_react79.useTabPanel,
|
351
|
+
useTabPanels: () => import_react79.useTabPanels,
|
352
|
+
useTabs: () => import_react79.useTabs,
|
353
|
+
useTabsContext: () => import_react79.useTabsContext,
|
354
|
+
useTabsDescendant: () => import_react79.useTabsDescendant,
|
355
|
+
useTabsDescendants: () => import_react79.useTabsDescendants,
|
356
|
+
useTabsDescendantsContext: () => import_react79.useTabsDescendantsContext,
|
357
|
+
useTabsStyles: () => import_react79.useTabsStyles,
|
358
|
+
useTheme: () => import_react93.useTheme,
|
359
|
+
useToken: () => import_react93.useToken
|
360
360
|
});
|
361
361
|
module.exports = __toCommonJS(src_exports);
|
362
362
|
|
@@ -899,17 +899,27 @@ Chips.defaultProps = {
|
|
899
899
|
var chips_default = Chips;
|
900
900
|
|
901
901
|
// src/components/counter/components/counter.tsx
|
902
|
-
var
|
902
|
+
var import_react27 = require("@chakra-ui/react");
|
903
903
|
var import_fi2 = require("react-icons/fi");
|
904
904
|
|
905
905
|
// src/components/form/components/input-addon.tsx
|
906
906
|
var import_react19 = require("@chakra-ui/react");
|
907
907
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
908
|
-
var InputAddonLeft = ({ children }) => {
|
909
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react19.InputLeftAddon, { backgroundColor: "neutral.200", px: 3, py: 2.5, style: { border: 0, marginInlineEnd: 0 }, children });
|
908
|
+
var InputAddonLeft = ({ children, ...props }) => {
|
909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react19.InputLeftAddon, { backgroundColor: "neutral.200", px: 3, py: 2.5, style: { border: 0, marginInlineEnd: 0 }, ...props, children });
|
910
910
|
};
|
911
|
-
var InputAddonRight = ({ children }) => {
|
912
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
911
|
+
var InputAddonRight = ({ children, ...props }) => {
|
912
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
913
|
+
import_react19.InputRightAddon,
|
914
|
+
{
|
915
|
+
backgroundColor: "neutral.200",
|
916
|
+
px: 3,
|
917
|
+
py: 2.5,
|
918
|
+
style: { border: 0, marginInlineStart: 0 },
|
919
|
+
...props,
|
920
|
+
children
|
921
|
+
}
|
922
|
+
);
|
913
923
|
};
|
914
924
|
|
915
925
|
// src/components/form/components/input-element.tsx
|
@@ -917,45 +927,11 @@ var import_react20 = require("@chakra-ui/react");
|
|
917
927
|
var import_react21 = require("@chakra-ui/react");
|
918
928
|
|
919
929
|
// src/components/form/components/input-field.tsx
|
920
|
-
var import_react23 = require("@chakra-ui/react");
|
921
|
-
var import_internal_icon5 = require("@ctlyst.id/internal-icon");
|
922
|
-
var import_react24 = __toESM(require("react"));
|
923
|
-
|
924
|
-
// src/components/form/styles/input-field.ts
|
925
930
|
var import_react22 = require("@chakra-ui/react");
|
926
|
-
var
|
927
|
-
|
928
|
-
let outlineColor = "neutral.400";
|
929
|
-
let focusColor = "primary.500";
|
930
|
-
if (isError || isDisabled || isSuccess) {
|
931
|
-
if (isError) outlineColor = "danger.500";
|
932
|
-
else if (isSuccess) outlineColor = "success.500";
|
933
|
-
focusColor = outlineColor;
|
934
|
-
}
|
935
|
-
return {
|
936
|
-
outlineColor,
|
937
|
-
focusColor
|
938
|
-
};
|
939
|
-
};
|
940
|
-
var getWrapperStyle = (props) => {
|
941
|
-
const { outlineColor, focusColor } = getProperties(props);
|
942
|
-
const style = {
|
943
|
-
border: "1px solid",
|
944
|
-
borderColor: outlineColor,
|
945
|
-
borderRadius: "sm",
|
946
|
-
transition: "all 0.15s",
|
947
|
-
boxShadow: "none",
|
948
|
-
_focusWithin: {
|
949
|
-
borderColor: focusColor
|
950
|
-
}
|
951
|
-
};
|
952
|
-
return (0, import_react22.defineStyle)(style);
|
953
|
-
};
|
954
|
-
var input_field_default = getWrapperStyle;
|
955
|
-
|
956
|
-
// src/components/form/components/input-field.tsx
|
931
|
+
var import_internal_icon5 = require("@ctlyst.id/internal-icon");
|
932
|
+
var import_react23 = __toESM(require("react"));
|
957
933
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
958
|
-
var InputField =
|
934
|
+
var InputField = import_react23.default.forwardRef((props, ref) => {
|
959
935
|
const {
|
960
936
|
value,
|
961
937
|
type,
|
@@ -975,20 +951,33 @@ var InputField = import_react24.default.forwardRef((props, ref) => {
|
|
975
951
|
isLoading,
|
976
952
|
...inputProps
|
977
953
|
} = props;
|
978
|
-
const
|
979
|
-
|
980
|
-
|
954
|
+
const getProperties = () => {
|
955
|
+
let outlineColor2 = "neutral.400";
|
956
|
+
let focusColor2 = "primary.500";
|
957
|
+
if (isError || isDisabled || isSuccess) {
|
958
|
+
if (isError) outlineColor2 = "danger.500";
|
959
|
+
else if (isSuccess) outlineColor2 = "success.500";
|
960
|
+
focusColor2 = outlineColor2;
|
961
|
+
}
|
962
|
+
return {
|
963
|
+
outlineColor: outlineColor2,
|
964
|
+
focusColor: focusColor2
|
965
|
+
};
|
966
|
+
};
|
967
|
+
const [isShowPassword, setIsShowPassword] = (0, import_react23.useState)(false);
|
968
|
+
const inputType = (0, import_react23.useMemo)(() => {
|
981
969
|
return type === "password" && isShowPassword ? "text" : type;
|
982
970
|
}, [isShowPassword, type]);
|
983
|
-
const fontSize = (0,
|
971
|
+
const fontSize = (0, import_react23.useMemo)(() => {
|
984
972
|
if (type === "password") {
|
985
973
|
if (!isShowPassword && value) return "text.xl";
|
986
974
|
}
|
987
975
|
return "text.sm";
|
988
976
|
}, [isShowPassword, type, value]);
|
989
|
-
const iconColor = (0,
|
977
|
+
const iconColor = (0, import_react23.useMemo)(() => {
|
990
978
|
return isDisabled ? "black.low" : "black.medium";
|
991
979
|
}, [isDisabled]);
|
980
|
+
const { outlineColor, focusColor } = getProperties();
|
992
981
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
993
982
|
field_default,
|
994
983
|
{
|
@@ -999,8 +988,8 @@ var InputField = import_react24.default.forwardRef((props, ref) => {
|
|
999
988
|
leftHelperText,
|
1000
989
|
rightHelperText,
|
1001
990
|
isRequired,
|
1002
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1003
|
-
|
991
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react22.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
992
|
+
import_react22.InputGroup,
|
1004
993
|
{
|
1005
994
|
size: size2,
|
1006
995
|
borderRadius: "sm",
|
@@ -1009,19 +998,27 @@ var InputField = import_react24.default.forwardRef((props, ref) => {
|
|
1009
998
|
children: [
|
1010
999
|
addOnLeft,
|
1011
1000
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1012
|
-
|
1001
|
+
import_react22.Input,
|
1013
1002
|
{
|
1014
1003
|
ref,
|
1015
1004
|
type: inputType,
|
1016
1005
|
value,
|
1017
1006
|
isDisabled,
|
1018
1007
|
isSuccess,
|
1008
|
+
transition: "all 0.15s",
|
1009
|
+
boxShadow: "none",
|
1010
|
+
borderRadius: "sm",
|
1011
|
+
border: "1px solid",
|
1012
|
+
borderColor: outlineColor,
|
1013
|
+
_focusWithin: {
|
1014
|
+
borderColor: focusColor
|
1015
|
+
},
|
1019
1016
|
...inputProps,
|
1020
1017
|
fontSize
|
1021
1018
|
}
|
1022
1019
|
),
|
1023
1020
|
(withClear || isLoading || type === "password") && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
1024
|
-
|
1021
|
+
import_react22.Box,
|
1025
1022
|
{
|
1026
1023
|
"data-test-id": "CT_Component_ClearInput",
|
1027
1024
|
display: "flex",
|
@@ -1031,7 +1028,7 @@ var InputField = import_react24.default.forwardRef((props, ref) => {
|
|
1031
1028
|
mr: "10px",
|
1032
1029
|
children: [
|
1033
1030
|
withClear && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1034
|
-
|
1031
|
+
import_react22.Box,
|
1035
1032
|
{
|
1036
1033
|
display: "flex",
|
1037
1034
|
justifyContent: "center",
|
@@ -1041,7 +1038,7 @@ var InputField = import_react24.default.forwardRef((props, ref) => {
|
|
1041
1038
|
}
|
1042
1039
|
),
|
1043
1040
|
type === "password" && !isShowPassword && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1044
|
-
|
1041
|
+
import_react22.Box,
|
1045
1042
|
{
|
1046
1043
|
"data-test-id": "q2Bj2G4FlamXyHuRKMZ1Q",
|
1047
1044
|
onClick: () => {
|
@@ -1054,7 +1051,7 @@ var InputField = import_react24.default.forwardRef((props, ref) => {
|
|
1054
1051
|
}
|
1055
1052
|
),
|
1056
1053
|
type === "password" && isShowPassword && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1057
|
-
|
1054
|
+
import_react22.Box,
|
1058
1055
|
{
|
1059
1056
|
"data-test-id": "sfc2388bmeXBmdla45Ibk",
|
1060
1057
|
onClick: () => {
|
@@ -1077,6 +1074,7 @@ var InputField = import_react24.default.forwardRef((props, ref) => {
|
|
1077
1074
|
}
|
1078
1075
|
);
|
1079
1076
|
});
|
1077
|
+
InputField.displayName = "InputField";
|
1080
1078
|
InputField.defaultProps = {
|
1081
1079
|
addOnLeft: void 0,
|
1082
1080
|
addOnRight: void 0,
|
@@ -1084,17 +1082,17 @@ InputField.defaultProps = {
|
|
1084
1082
|
isLoading: void 0,
|
1085
1083
|
onClear: void 0
|
1086
1084
|
};
|
1087
|
-
var
|
1085
|
+
var input_field_default = InputField;
|
1088
1086
|
|
1089
1087
|
// src/components/form/components/textarea.tsx
|
1090
|
-
var
|
1091
|
-
var
|
1088
|
+
var import_react24 = require("@chakra-ui/react");
|
1089
|
+
var import_react25 = __toESM(require("react"));
|
1092
1090
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
1093
|
-
var TextareaField =
|
1091
|
+
var TextareaField = import_react25.default.forwardRef((props, ref) => {
|
1094
1092
|
const { value, isLoading, ...inputProps } = props;
|
1095
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(field_default, { ...inputProps, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
1096
|
-
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
1097
|
-
isLoading && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
1093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(field_default, { ...inputProps, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_react24.Box, { position: "relative", children: [
|
1094
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react24.Textarea, { ref, value, ...inputProps }),
|
1095
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react24.Box, { zIndex: 999, top: 2, right: 2, position: "absolute", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(loader_default, { size: "sm" }) })
|
1098
1096
|
] }) });
|
1099
1097
|
});
|
1100
1098
|
TextareaField.defaultProps = {
|
@@ -1103,7 +1101,7 @@ TextareaField.defaultProps = {
|
|
1103
1101
|
var textarea_default = TextareaField;
|
1104
1102
|
|
1105
1103
|
// src/components/form/index.ts
|
1106
|
-
var
|
1104
|
+
var import_react26 = require("@chakra-ui/react");
|
1107
1105
|
|
1108
1106
|
// src/components/counter/components/counter.tsx
|
1109
1107
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
@@ -1134,10 +1132,10 @@ var Counter = ({
|
|
1134
1132
|
const handleChange = (e) => {
|
1135
1133
|
onChange(+e.target.value);
|
1136
1134
|
};
|
1137
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
1138
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
1135
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react27.Box, { children: [
|
1136
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react27.HStack, { gap: "1", children: [
|
1139
1137
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
1140
|
-
|
1138
|
+
import_react27.IconButton,
|
1141
1139
|
{
|
1142
1140
|
"aria-label": "minus",
|
1143
1141
|
"data-test-id": "CT_Component_Counter_decrement",
|
@@ -1148,7 +1146,7 @@ var Counter = ({
|
|
1148
1146
|
}
|
1149
1147
|
),
|
1150
1148
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
1151
|
-
|
1149
|
+
input_field_default,
|
1152
1150
|
{
|
1153
1151
|
"data-test-id": "CT_Component_Counter_input",
|
1154
1152
|
value,
|
@@ -1161,12 +1159,11 @@ var Counter = ({
|
|
1161
1159
|
onChange: handleChange,
|
1162
1160
|
isReadOnly,
|
1163
1161
|
width: 12,
|
1164
|
-
type: "number"
|
1165
|
-
borderColor: isError ? "danger.500" : "neutral.200"
|
1162
|
+
type: "number"
|
1166
1163
|
}
|
1167
1164
|
),
|
1168
1165
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
1169
|
-
|
1166
|
+
import_react27.IconButton,
|
1170
1167
|
{
|
1171
1168
|
"aria-label": "plus",
|
1172
1169
|
"data-test-id": "CT_Component_Counter_decrement",
|
@@ -1177,18 +1174,18 @@ var Counter = ({
|
|
1177
1174
|
}
|
1178
1175
|
)
|
1179
1176
|
] }),
|
1180
|
-
!isError ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
1177
|
+
!isError ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react27.Text, { mt: 1, color: "black.medium", textStyle: "text.xs", children: helperText }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react27.Text, { mt: 1, color: "danger.500", textStyle: "text.xs", children: error })
|
1181
1178
|
] });
|
1182
1179
|
};
|
1183
1180
|
var counter_default = Counter;
|
1184
1181
|
|
1185
1182
|
// src/components/data-table/components/data-table.tsx
|
1186
1183
|
var import_icons2 = require("@chakra-ui/icons");
|
1187
|
-
var
|
1188
|
-
var
|
1184
|
+
var import_react28 = require("@chakra-ui/react");
|
1185
|
+
var import_react29 = require("@emotion/react");
|
1189
1186
|
var import_react_table = require("@tanstack/react-table");
|
1190
1187
|
var React5 = __toESM(require("react"));
|
1191
|
-
var
|
1188
|
+
var import_react30 = require("react");
|
1192
1189
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
1193
1190
|
var getCommonPinningStyles = (column) => {
|
1194
1191
|
const isPinned = column.getIsPinned();
|
@@ -1198,7 +1195,6 @@ var getCommonPinningStyles = (column) => {
|
|
1198
1195
|
left: isPinned === "left" ? `${column.getStart("left")}px` : void 0,
|
1199
1196
|
right: isPinned === "right" ? `${column.getAfter("right")}px` : void 0,
|
1200
1197
|
position: isPinned ? "sticky" : "relative",
|
1201
|
-
width: column.getSize(),
|
1202
1198
|
zIndex: isPinned ? 1 : 0,
|
1203
1199
|
backgroundColor: "white",
|
1204
1200
|
...isLastLeftPinnedColumn ? {
|
@@ -1252,7 +1248,7 @@ var useDataTable = ({
|
|
1252
1248
|
id: "select",
|
1253
1249
|
size: 32,
|
1254
1250
|
header: ({ table: table2 }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1255
|
-
|
1251
|
+
import_react28.Checkbox,
|
1256
1252
|
{
|
1257
1253
|
"data-test-id": "select-header-data-table",
|
1258
1254
|
...{
|
@@ -1263,7 +1259,7 @@ var useDataTable = ({
|
|
1263
1259
|
}
|
1264
1260
|
),
|
1265
1261
|
cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1266
|
-
|
1262
|
+
import_react28.Checkbox,
|
1267
1263
|
{
|
1268
1264
|
"data-test-id": `select-data-table-${row.index}`,
|
1269
1265
|
...{
|
@@ -1330,16 +1326,16 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1330
1326
|
React5.useImperativeHandle(ref, () => ({
|
1331
1327
|
toggleAllRowsSelected
|
1332
1328
|
}));
|
1333
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
1334
|
-
isLoading && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
1335
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1336
|
-
|
1329
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react28.Box, { overflowX: "auto", position: "relative", maxW: "100%", minH: 400, w: "full", ...container, children: [
|
1330
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react28.Table, { ...styles == null ? void 0 : styles.table, children: [
|
1331
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tr, { mx: "2", ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1332
|
+
import_react28.Th,
|
1337
1333
|
{
|
1338
1334
|
colSpan: header.colSpan,
|
1339
1335
|
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1340
1336
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
1341
1337
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1342
|
-
|
1338
|
+
import_react28.Flex,
|
1343
1339
|
{
|
1344
1340
|
"data-test-id": "CT_component_data-table_loader",
|
1345
1341
|
textTransform: "capitalize",
|
@@ -1351,20 +1347,20 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1351
1347
|
},
|
1352
1348
|
header.id
|
1353
1349
|
)) }, headerGroup.id)) }),
|
1354
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1350
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tbody, { children: [...Array(5)].map((num) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tr, { mx: "2", children: [...Array(generateColumn().length)].map((i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Td, { width: 210, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Skeleton, { startColor: "gray.50", endColor: "gray.100", h: "30px", w: "100%" }, i) }, i)) }, num)) })
|
1355
1351
|
] }),
|
1356
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
1357
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1352
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react28.Table, { ...styles == null ? void 0 : styles.table, children: [
|
1353
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tr, { bg: (0, import_react28.useColorModeValue)("initial", "ebony-clay.700"), ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => {
|
1358
1354
|
var _a;
|
1359
1355
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1360
|
-
|
1356
|
+
import_react28.Th,
|
1361
1357
|
{
|
1362
1358
|
colSpan: header.colSpan,
|
1363
|
-
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1364
1359
|
sx: getCommonPinningStyles(header.column),
|
1360
|
+
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1365
1361
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
1366
1362
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
1367
|
-
|
1363
|
+
import_react28.Flex,
|
1368
1364
|
{
|
1369
1365
|
backgroundColor: "white",
|
1370
1366
|
height: "100%",
|
@@ -1374,9 +1370,9 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1374
1370
|
align: "center",
|
1375
1371
|
gap: 2,
|
1376
1372
|
children: [
|
1377
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1373
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Text, { children: (0, import_react_table.flexRender)(header.column.columnDef.header, header.getContext()) }),
|
1378
1374
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1379
|
-
|
1375
|
+
import_react28.Box,
|
1380
1376
|
{
|
1381
1377
|
as: "span",
|
1382
1378
|
cursor: header.column.getCanSort() ? "pointer" : "default",
|
@@ -1395,16 +1391,16 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1395
1391
|
header.id
|
1396
1392
|
);
|
1397
1393
|
}) }, headerGroup.id)) }),
|
1398
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1399
|
-
const trRef = (0,
|
1394
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Tbody, { ...styles == null ? void 0 : styles.tableBody, children: table.getRowModel().rows.map((row) => {
|
1395
|
+
const trRef = (0, import_react30.useRef)();
|
1400
1396
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1401
|
-
|
1397
|
+
import_react28.Tr,
|
1402
1398
|
{
|
1403
1399
|
"data-test-id": "-RU0hNYGRzeVM3HQ4cXHl",
|
1404
1400
|
tabindex: "0",
|
1405
1401
|
ref: trRef,
|
1406
1402
|
...styles == null ? void 0 : styles.tableRow,
|
1407
|
-
css:
|
1403
|
+
css: import_react29.css`
|
1408
1404
|
&:last-child {
|
1409
1405
|
td {
|
1410
1406
|
border-bottom: none;
|
@@ -1425,15 +1421,15 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1425
1421
|
}
|
1426
1422
|
},
|
1427
1423
|
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1428
|
-
|
1424
|
+
import_react28.Td,
|
1429
1425
|
{
|
1430
1426
|
"data-test-id": `CT_Component_TableCell_${cell.id}`,
|
1431
1427
|
fontSize: "text.sm",
|
1432
|
-
color: (0,
|
1428
|
+
color: (0, import_react28.useColorModeValue)("dark.800", "dark.300"),
|
1433
1429
|
sx: getCommonPinningStyles(cell.column),
|
1434
1430
|
...styles == null ? void 0 : styles.tableCell,
|
1435
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1436
|
-
|
1431
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react28.Flex, { height: "100%", backgroundColor: "white", align: "center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1432
|
+
import_react28.Box,
|
1437
1433
|
{
|
1438
1434
|
tabIndex: 0,
|
1439
1435
|
display: "inline-block",
|
@@ -1474,19 +1470,19 @@ DataTable.defaultProps = {
|
|
1474
1470
|
var data_table_default = DataTable;
|
1475
1471
|
|
1476
1472
|
// src/components/datepicker/components/datepicker.tsx
|
1477
|
-
var
|
1473
|
+
var import_react34 = require("@chakra-ui/react");
|
1478
1474
|
var import_shared_utils8 = require("@chakra-ui/shared-utils");
|
1479
1475
|
var import_react_datepicker = __toESM(require("react-datepicker"));
|
1480
1476
|
var import_fi3 = require("react-icons/fi");
|
1481
1477
|
|
1482
1478
|
// src/components/datepicker/components/styles.tsx
|
1483
1479
|
var import_system6 = require("@chakra-ui/system");
|
1484
|
-
var
|
1480
|
+
var import_react31 = require("@emotion/react");
|
1485
1481
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
1486
1482
|
var Styles = () => {
|
1487
1483
|
const { colorMode } = (0, import_system6.useColorMode)();
|
1488
1484
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
1489
|
-
|
1485
|
+
import_react31.Global,
|
1490
1486
|
{
|
1491
1487
|
styles: `
|
1492
1488
|
@charset "UTF-8";
|
@@ -2297,21 +2293,21 @@ var Styles = () => {
|
|
2297
2293
|
var styles_default = Styles;
|
2298
2294
|
|
2299
2295
|
// src/components/datepicker/components/time-input.tsx
|
2300
|
-
var
|
2301
|
-
var
|
2296
|
+
var import_react32 = require("@chakra-ui/react");
|
2297
|
+
var import_react33 = __toESM(require("react"));
|
2302
2298
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
2303
2299
|
var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
2304
|
-
const [time, setTime] =
|
2300
|
+
const [time, setTime] = import_react33.default.useState(value || "00:00");
|
2305
2301
|
const handleChange = (e) => {
|
2306
2302
|
var _a, _b;
|
2307
2303
|
setTime(((_a = e.target) == null ? void 0 : _a.value) || "00:00");
|
2308
2304
|
if (onChange) onChange(((_b = e.target) == null ? void 0 : _b.value) || "00:00");
|
2309
2305
|
};
|
2310
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
2311
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
2312
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
2313
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
2314
|
-
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
2306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react32.Flex, { flexDir: "column", alignItems: "center", justifyContent: "center", p: 4, pt: 0, children: [
|
2307
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react32.Text, { mb: 2, children: label }),
|
2308
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_react32.InputGroup, { alignItems: "center", justifyContent: "center", children: [
|
2309
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react32.Input, { onChange: handleChange, type: "time", value: time, "data-test-id": "CT_Component_datepicker_input_time" }),
|
2310
|
+
rightAddon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react32.InputRightAddon, { children: rightAddon })
|
2315
2311
|
] })
|
2316
2312
|
] });
|
2317
2313
|
};
|
@@ -2344,7 +2340,6 @@ var Datepicker = ({
|
|
2344
2340
|
var _a;
|
2345
2341
|
const selected = value ? new Date(value) : void 0;
|
2346
2342
|
const dateFormat = ((_a = props.dateFormat) != null ? _a : withTime) ? "yyyy-MM-dd HH:mm" : "yyyy-MM-dd";
|
2347
|
-
const wrapperStyle = input_field_default({});
|
2348
2343
|
const getTimeProps = () => {
|
2349
2344
|
if (!withTime) return {};
|
2350
2345
|
return {
|
@@ -2361,7 +2356,7 @@ var Datepicker = ({
|
|
2361
2356
|
id,
|
2362
2357
|
name,
|
2363
2358
|
selected,
|
2364
|
-
customInput: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
2359
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(input_field_default, { autoComplete: "off" }),
|
2365
2360
|
dateFormat,
|
2366
2361
|
showPopperArrow: false,
|
2367
2362
|
calendarClassName: (0, import_shared_utils8.cx)({ inline: props.inline }),
|
@@ -2375,16 +2370,16 @@ var Datepicker = ({
|
|
2375
2370
|
if (props.inline) {
|
2376
2371
|
return component;
|
2377
2372
|
}
|
2378
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
2379
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
2380
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
2373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react34.FormControl, { isRequired, "data-test-id": "CT_Component_datepicker_wrapper", isInvalid: isError, children: [
|
2374
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react34.FormLabel, { fontSize: "text.sm", children: label }),
|
2375
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react34.InputGroup, { children: [
|
2381
2376
|
component,
|
2382
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
2377
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react34.InputRightElement, { children: [
|
2383
2378
|
!value && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_fi3.FiCalendar, {}),
|
2384
2379
|
value && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_fi3.FiX, { "data-test-id": "bcpJJyCP0z_RIAGZXDU6s", onClick: onClear, cursor: "pointer" })
|
2385
2380
|
] })
|
2386
2381
|
] }),
|
2387
|
-
!isError ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
2382
|
+
!isError ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react34.FormHelperText, { fontSize: "text.xs", mt: 1, children: helperText }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react34.FormErrorMessage, { fontSize: "text.xs", mt: 1, children: error })
|
2388
2383
|
] });
|
2389
2384
|
};
|
2390
2385
|
Datepicker.defaultProps = {
|
@@ -2402,18 +2397,18 @@ Datepicker.defaultProps = {
|
|
2402
2397
|
var datepicker_default = Datepicker;
|
2403
2398
|
|
2404
2399
|
// src/components/datepicker/components/datepicker-month/datepicker-month.tsx
|
2405
|
-
var
|
2406
|
-
var
|
2407
|
-
var
|
2400
|
+
var import_react35 = require("@chakra-ui/react");
|
2401
|
+
var import_react36 = require("@emotion/react");
|
2402
|
+
var import_react37 = __toESM(require("react"));
|
2408
2403
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
2409
2404
|
var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
2410
|
-
const [date, setDate] =
|
2405
|
+
const [date, setDate] = import_react37.default.useState(null);
|
2411
2406
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
2412
|
-
|
2407
|
+
import_react35.Box,
|
2413
2408
|
{
|
2414
2409
|
fontSize: "12px",
|
2415
2410
|
lineHeight: "18px",
|
2416
|
-
css:
|
2411
|
+
css: import_react36.css`
|
2417
2412
|
input[type='date']::-webkit-inner-spin-button,
|
2418
2413
|
input[type='date']::-webkit-calendar-picker-indicator {
|
2419
2414
|
display: none;
|
@@ -2424,7 +2419,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
2424
2419
|
}
|
2425
2420
|
`,
|
2426
2421
|
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
2427
|
-
|
2422
|
+
import_react35.Input,
|
2428
2423
|
{
|
2429
2424
|
"data-test-id": props["data-test-id"],
|
2430
2425
|
type: "date",
|
@@ -2437,7 +2432,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
2437
2432
|
min,
|
2438
2433
|
max,
|
2439
2434
|
required: true,
|
2440
|
-
css:
|
2435
|
+
css: import_react36.css`
|
2441
2436
|
border: 1px solid transparent;
|
2442
2437
|
|
2443
2438
|
&:focus,
|
@@ -2461,11 +2456,11 @@ DatePickerMonth.defaultProps = {
|
|
2461
2456
|
var datepicker_month_default = DatePickerMonth;
|
2462
2457
|
|
2463
2458
|
// src/components/datepicker/components/datepicker-month/multi-datepicker-month.tsx
|
2464
|
-
var
|
2459
|
+
var import_react38 = require("@chakra-ui/react");
|
2465
2460
|
var import_styled = __toESM(require("@emotion/styled"));
|
2466
|
-
var
|
2461
|
+
var import_react39 = __toESM(require("react"));
|
2467
2462
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
2468
|
-
var MultiDateWrapper = (0, import_styled.default)(
|
2463
|
+
var MultiDateWrapper = (0, import_styled.default)(import_react38.Box)`
|
2469
2464
|
display: flex;
|
2470
2465
|
align-items: center;
|
2471
2466
|
width: fit-content;
|
@@ -2480,7 +2475,7 @@ var MultiDatePickerMonth = ({
|
|
2480
2475
|
min = "2020-01-01",
|
2481
2476
|
max = "2020-12-31"
|
2482
2477
|
}) => {
|
2483
|
-
const [date, setDate] =
|
2478
|
+
const [date, setDate] = import_react39.default.useState([null, null]);
|
2484
2479
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(MultiDateWrapper, { isError, children: [
|
2485
2480
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
2486
2481
|
datepicker_month_default,
|
@@ -2494,7 +2489,7 @@ var MultiDatePickerMonth = ({
|
|
2494
2489
|
max
|
2495
2490
|
}
|
2496
2491
|
),
|
2497
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
2492
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react38.Box, { children: "-" }),
|
2498
2493
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
2499
2494
|
datepicker_month_default,
|
2500
2495
|
{
|
@@ -2517,7 +2512,7 @@ MultiDatePickerMonth.defaultProps = {
|
|
2517
2512
|
var multi_datepicker_month_default = MultiDatePickerMonth;
|
2518
2513
|
|
2519
2514
|
// src/components/dialog/components/dialog.tsx
|
2520
|
-
var
|
2515
|
+
var import_react40 = require("@chakra-ui/react");
|
2521
2516
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
2522
2517
|
var Dialog = ({
|
2523
2518
|
title,
|
@@ -2528,12 +2523,12 @@ var Dialog = ({
|
|
2528
2523
|
isOverlayClickable,
|
2529
2524
|
...props
|
2530
2525
|
}) => {
|
2531
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
2532
|
-
isModalOverlay && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
2533
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
2534
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
2535
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
2536
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
2526
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react40.Modal, { ...props, children: [
|
2527
|
+
isModalOverlay && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react40.ModalOverlay, { pointerEvents: isOverlayClickable ? "auto" : "none" }),
|
2528
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react40.ModalContent, { bgColor: "neutral.50", fontFamily: "Poppins", width, minW: "400px", children: [
|
2529
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react40.ModalHeader, { bgColor: "neutral.200", py: 2, px: 4, borderTopRadius: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react40.Text, { textStyle: "text.lg", fontWeight: "normal", children: title }) }),
|
2530
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react40.ModalBody, { p: 4, textStyle: "text.md", children: content }),
|
2531
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react40.ModalFooter, { bgColor: "neutral.200", p: 4, borderBottomRadius: "sm", children: footer })
|
2537
2532
|
] })
|
2538
2533
|
] });
|
2539
2534
|
};
|
@@ -2545,15 +2540,15 @@ Dialog.defaultProps = {
|
|
2545
2540
|
var dialog_default = Dialog;
|
2546
2541
|
|
2547
2542
|
// src/components/header/components/header.tsx
|
2548
|
-
var
|
2543
|
+
var import_react45 = require("@chakra-ui/react");
|
2549
2544
|
|
2550
2545
|
// src/components/header/components/logo.tsx
|
2551
|
-
var
|
2546
|
+
var import_react41 = require("@chakra-ui/react");
|
2552
2547
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
2553
2548
|
var Logo = ({ url, imageUrl, height }) => {
|
2554
2549
|
if (url)
|
2555
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
2556
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
2550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react41.Box, { as: "a", href: url, cursor: "pointer", target: "_self", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react41.Image, { w: "100%", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl }) });
|
2551
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react41.Image, { w: "100%", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl });
|
2557
2552
|
};
|
2558
2553
|
Logo.defaultProps = {
|
2559
2554
|
url: void 0,
|
@@ -2561,15 +2556,15 @@ Logo.defaultProps = {
|
|
2561
2556
|
};
|
2562
2557
|
|
2563
2558
|
// src/components/header/components/profile.tsx
|
2564
|
-
var
|
2559
|
+
var import_react42 = require("@chakra-ui/react");
|
2565
2560
|
var import_fi4 = require("react-icons/fi");
|
2566
2561
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
2567
2562
|
var Profile = ({ color, brandColor, data, onLogout }) => {
|
2568
2563
|
var _a;
|
2569
|
-
const { isOpen, onToggle, onClose } = (0,
|
2570
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
2564
|
+
const { isOpen, onToggle, onClose } = (0, import_react42.useDisclosure)();
|
2565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react42.Popover, { placement: "bottom-end", isOpen, onClose, children: [
|
2571
2566
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2572
|
-
|
2567
|
+
import_react42.Box,
|
2573
2568
|
{
|
2574
2569
|
"data-test-id": "WE0UYbA93LOZy6S09IhDO",
|
2575
2570
|
as: "button",
|
@@ -2579,23 +2574,23 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
2579
2574
|
m: 0,
|
2580
2575
|
onClick: onToggle,
|
2581
2576
|
color,
|
2582
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
2583
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
2584
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2585
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
2586
|
-
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2587
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2577
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react42.HStack, { children: [
|
2578
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react42.VStack, { alignItems: "flex-end", spacing: 0, ml: "2", color, children: [
|
2579
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react42.Text, { textStyle: "text.xs", mb: 1, children: data == null ? void 0 : data.email }),
|
2580
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react42.Flex, { alignItems: "center", children: [
|
2581
|
+
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react42.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.userRole) || "user" }),
|
2582
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react42.Box, { h: "3", mx: "1", borderLeft: "1px solid", borderColor: "neutral.400" }),
|
2588
2583
|
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
2589
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2584
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react42.Text, { textStyle: "text.xs", children: data.office[0] }),
|
2590
2585
|
data.office.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(badge_default, { ml: "1", pill: true, variant: "neutral-light", children: [
|
2591
2586
|
data.office.length - 1,
|
2592
2587
|
"+"
|
2593
2588
|
] })
|
2594
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2589
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react42.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.office) || "office" })
|
2595
2590
|
] })
|
2596
2591
|
] }),
|
2597
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2598
|
-
|
2592
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react42.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2593
|
+
import_react42.Avatar,
|
2599
2594
|
{
|
2600
2595
|
size: "sm",
|
2601
2596
|
bg: brandColor,
|
@@ -2610,10 +2605,10 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
2610
2605
|
] })
|
2611
2606
|
}
|
2612
2607
|
),
|
2613
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
2614
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2615
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2616
|
-
|
2608
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react42.PopoverContent, { bg: "white", maxW: 200, children: [
|
2609
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react42.PopoverArrow, { bg: "white" }),
|
2610
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react42.PopoverBody, { p: 1, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
2611
|
+
import_react42.Flex,
|
2617
2612
|
{
|
2618
2613
|
"data-test-id": "gA7F9pucPX_Q3_dkgXIYZ",
|
2619
2614
|
alignItems: "center",
|
@@ -2621,12 +2616,12 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
2621
2616
|
py: 2,
|
2622
2617
|
borderRadius: "sm",
|
2623
2618
|
cursor: "pointer",
|
2624
|
-
_hover: { bg: (0,
|
2619
|
+
_hover: { bg: (0, import_react42.useColorModeValue)("primary.500", "mirage.900"), color: "white" },
|
2625
2620
|
onClick: onLogout,
|
2626
2621
|
textStyle: "text.xs",
|
2627
2622
|
children: [
|
2628
2623
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_fi4.FiPower, {}),
|
2629
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2624
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react42.Text, { ml: 2, children: "Logout" })
|
2630
2625
|
]
|
2631
2626
|
}
|
2632
2627
|
) })
|
@@ -2642,17 +2637,17 @@ Profile.defaultProps = {
|
|
2642
2637
|
var profile_default = Profile;
|
2643
2638
|
|
2644
2639
|
// src/components/header/components/switch-mode.tsx
|
2645
|
-
var
|
2640
|
+
var import_react43 = require("@chakra-ui/react");
|
2646
2641
|
var import_fi5 = require("react-icons/fi");
|
2647
2642
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
2648
2643
|
var SwitchMode = () => {
|
2649
|
-
const { colorMode, toggleColorMode } = (0,
|
2650
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
2644
|
+
const { colorMode, toggleColorMode } = (0, import_react43.useColorMode)();
|
2645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react43.Box, { "data-test-id": "rhYuTDCiWkFqr96upiEEh", mx: 5, onClick: toggleColorMode, cursor: "pointer", children: colorMode === "light" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_fi5.FiMoon, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_fi5.FiSun, { size: 20 }) });
|
2651
2646
|
};
|
2652
2647
|
var switch_mode_default = SwitchMode;
|
2653
2648
|
|
2654
2649
|
// src/components/header/components/version.tsx
|
2655
|
-
var
|
2650
|
+
var import_react44 = require("@chakra-ui/react");
|
2656
2651
|
|
2657
2652
|
// src/components/header/utils/formatter.ts
|
2658
2653
|
function environmentName(env) {
|
@@ -2681,7 +2676,7 @@ var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__P
|
|
2681
2676
|
}
|
2682
2677
|
),
|
2683
2678
|
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
2684
|
-
|
2679
|
+
import_react44.Box,
|
2685
2680
|
{
|
2686
2681
|
background: "primary.50",
|
2687
2682
|
color: "primary.500",
|
@@ -2720,12 +2715,12 @@ var Header = ({
|
|
2720
2715
|
profile,
|
2721
2716
|
bg = "white",
|
2722
2717
|
...props
|
2723
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
2724
|
-
mainLogo && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
2718
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react45.Flex, { minH: 15, bg, shadow: "raised", px: 6, py: 3, alignItems: "center", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react45.Flex, { h: "auto", w: "full", alignItems: "center", justifyContent: profile ? "flex-end" : "space-between", pos: "relative", children: [
|
2719
|
+
mainLogo && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react45.Flex, { alignItems: "center", children: [
|
2725
2720
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Logo, { url: urlLogo, imageUrl: mainLogo, height: mainLogoSize }),
|
2726
2721
|
children && children
|
2727
2722
|
] }),
|
2728
|
-
centerLogo && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
2723
|
+
centerLogo && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react45.HStack, { w: "fit-content", spacing: 2, alignItems: "center", pos: "absolute", left: "50%", transform: "translate(-50%,0)", children: [
|
2729
2724
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Logo, { url: urlLogo, imageUrl: centerLogo, height: centerLogoSize }),
|
2730
2725
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
2731
2726
|
version_default,
|
@@ -2737,7 +2732,7 @@ var Header = ({
|
|
2737
2732
|
}
|
2738
2733
|
)
|
2739
2734
|
] }),
|
2740
|
-
profile || /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
2735
|
+
profile || /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react45.Flex, { alignItems: "center", children: [
|
2741
2736
|
!hideSwitchMode && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(switch_mode_default, {}),
|
2742
2737
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(profile_default, { color: props.color, brandColor, data, onLogout })
|
2743
2738
|
] })
|
@@ -2759,21 +2754,21 @@ Header.defaultProps = {
|
|
2759
2754
|
var header_default = Header;
|
2760
2755
|
|
2761
2756
|
// src/components/image/index.ts
|
2762
|
-
var
|
2757
|
+
var import_react46 = require("@chakra-ui/react");
|
2763
2758
|
|
2764
2759
|
// src/components/layouting/index.ts
|
2765
|
-
var
|
2760
|
+
var import_react47 = require("@chakra-ui/react");
|
2766
2761
|
|
2767
2762
|
// src/components/list/index.tsx
|
2768
|
-
var
|
2763
|
+
var import_react48 = require("@chakra-ui/react");
|
2769
2764
|
|
2770
2765
|
// src/components/modal/components/modal-back-button.tsx
|
2771
2766
|
var import_icons3 = require("@chakra-ui/icons");
|
2772
|
-
var
|
2767
|
+
var import_react49 = require("@chakra-ui/react");
|
2773
2768
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
2774
2769
|
var ModalBackButton = ({ onClick }) => {
|
2775
2770
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2776
|
-
|
2771
|
+
import_react49.IconButton,
|
2777
2772
|
{
|
2778
2773
|
icon: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_icons3.ChevronLeftIcon, { w: "4.5", h: "4.5" }),
|
2779
2774
|
size: "sm",
|
@@ -2793,28 +2788,28 @@ var ModalBackButton = ({ onClick }) => {
|
|
2793
2788
|
var modal_back_button_default = ModalBackButton;
|
2794
2789
|
|
2795
2790
|
// src/components/modal/components/modal-body.tsx
|
2796
|
-
var
|
2797
|
-
var
|
2791
|
+
var import_react50 = require("@chakra-ui/react");
|
2792
|
+
var import_react51 = __toESM(require("react"));
|
2798
2793
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
2799
|
-
var ModalBody2 =
|
2800
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
2794
|
+
var ModalBody2 = import_react51.default.forwardRef(({ children, ...rest }, ref) => {
|
2795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react50.ModalBody, { px: 4, py: 2, ref, background: (0, import_react50.useColorModeValue)("white", "mirage.900"), ...rest, children });
|
2801
2796
|
});
|
2802
2797
|
var modal_body_default = ModalBody2;
|
2803
2798
|
|
2804
2799
|
// src/components/modal/components/modal-close-button.tsx
|
2805
|
-
var
|
2806
|
-
var
|
2800
|
+
var import_react52 = require("@chakra-ui/react");
|
2801
|
+
var import_react53 = require("react");
|
2807
2802
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
2808
|
-
var ModalCloseButton = (0,
|
2803
|
+
var ModalCloseButton = (0, import_react53.forwardRef)((props, ref) => {
|
2809
2804
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
2810
|
-
|
2805
|
+
import_react52.ModalCloseButton,
|
2811
2806
|
{
|
2812
2807
|
ref,
|
2813
2808
|
top: 2,
|
2814
2809
|
right: 2,
|
2815
2810
|
size: "sm",
|
2816
2811
|
"data-test-id": "modal-close-button",
|
2817
|
-
background: (0,
|
2812
|
+
background: (0, import_react52.useColorModeValue)("neutral.50", "mirage.900"),
|
2818
2813
|
...props
|
2819
2814
|
}
|
2820
2815
|
);
|
@@ -2822,15 +2817,15 @@ var ModalCloseButton = (0, import_react54.forwardRef)((props, ref) => {
|
|
2822
2817
|
var modal_close_button_default = ModalCloseButton;
|
2823
2818
|
|
2824
2819
|
// src/components/modal/components/modal-footer.tsx
|
2825
|
-
var
|
2826
|
-
var
|
2820
|
+
var import_react54 = require("@chakra-ui/react");
|
2821
|
+
var import_react55 = require("react");
|
2827
2822
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
2828
|
-
var ModalFooter2 = (0,
|
2823
|
+
var ModalFooter2 = (0, import_react55.forwardRef)(({ children, ...rest }, ref) => {
|
2829
2824
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
2830
|
-
|
2825
|
+
import_react54.ModalFooter,
|
2831
2826
|
{
|
2832
2827
|
ref,
|
2833
|
-
background: (0,
|
2828
|
+
background: (0, import_react54.useColorModeValue)("neutral.200", "mirage.900"),
|
2834
2829
|
borderBottomRadius: "sm",
|
2835
2830
|
...rest,
|
2836
2831
|
children
|
@@ -2840,15 +2835,15 @@ var ModalFooter2 = (0, import_react56.forwardRef)(({ children, ...rest }, ref) =
|
|
2840
2835
|
var modal_footer_default = ModalFooter2;
|
2841
2836
|
|
2842
2837
|
// src/components/modal/components/modal-header.tsx
|
2843
|
-
var
|
2844
|
-
var
|
2838
|
+
var import_react56 = require("@chakra-ui/react");
|
2839
|
+
var import_react57 = require("react");
|
2845
2840
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
2846
|
-
var ModalHeader2 = (0,
|
2841
|
+
var ModalHeader2 = (0, import_react57.forwardRef)(({ children, ...rest }, ref) => {
|
2847
2842
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
2848
|
-
|
2843
|
+
import_react56.ModalHeader,
|
2849
2844
|
{
|
2850
2845
|
ref,
|
2851
|
-
background: (0,
|
2846
|
+
background: (0, import_react56.useColorModeValue)("neutral.200", "mirage.900"),
|
2852
2847
|
borderTopRadius: "sm",
|
2853
2848
|
fontSize: "text.lg",
|
2854
2849
|
fontWeight: "400",
|
@@ -2862,107 +2857,72 @@ var ModalHeader2 = (0, import_react58.forwardRef)(({ children, ...rest }, ref) =
|
|
2862
2857
|
var modal_header_default = ModalHeader2;
|
2863
2858
|
|
2864
2859
|
// src/components/modal/index.ts
|
2865
|
-
var
|
2860
|
+
var import_react58 = require("@chakra-ui/react");
|
2866
2861
|
|
2867
2862
|
// src/components/navigation/components/navigation.tsx
|
2868
|
-
var
|
2869
|
-
var
|
2870
|
-
var
|
2871
|
-
|
2872
|
-
// src/components/navigation/components/mapping-icon.ts
|
2873
|
-
var import_fi6 = require("react-icons/fi");
|
2863
|
+
var import_react59 = require("@chakra-ui/react");
|
2864
|
+
var Icon3 = __toESM(require("@ctlyst.id/internal-icon"));
|
2865
|
+
var import_react60 = require("@emotion/react");
|
2874
2866
|
|
2875
|
-
// src/components/navigation/components/
|
2876
|
-
var
|
2867
|
+
// src/components/navigation/components/mapping-icon.tsx
|
2868
|
+
var Icon2 = __toESM(require("@ctlyst.id/internal-icon"));
|
2877
2869
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
2878
|
-
var CustomerIcon = (0, import_react60.createIcon)({
|
2879
|
-
displayName: "CustomerIcon",
|
2880
|
-
viewBox: "0 0 16 16",
|
2881
|
-
path: [
|
2882
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
2883
|
-
"path",
|
2884
|
-
{
|
2885
|
-
fill: "currentColor",
|
2886
|
-
fillRule: "inherit",
|
2887
|
-
d: "M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM.667 8a7.333 7.333 0 1 1 14.666 0A7.333 7.333 0 0 1 .667 8Z",
|
2888
|
-
clipRule: "inherit"
|
2889
|
-
}
|
2890
|
-
),
|
2891
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
2892
|
-
"path",
|
2893
|
-
{
|
2894
|
-
fill: "currentColor",
|
2895
|
-
d: "M12.416 12.698a1.997 1.997 0 0 0-1.75-1.031H5.334a2 2 0 0 0-1.864 1.277 7.722 7.722 0 0 1-.943-1.074 3.329 3.329 0 0 1 2.807-1.537h5.334a3.333 3.333 0 0 1 2.703 1.384c-.275.325-.594.66-.954.98Z"
|
2896
|
-
}
|
2897
|
-
),
|
2898
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
2899
|
-
"path",
|
2900
|
-
{
|
2901
|
-
fill: "currentColor",
|
2902
|
-
fillRule: "inherit",
|
2903
|
-
d: "M8 5.333A1.333 1.333 0 1 0 8 8a1.333 1.333 0 0 0 0-2.667ZM5.333 6.667a2.667 2.667 0 1 1 5.334 0 2.667 2.667 0 0 1-5.334 0Z",
|
2904
|
-
clipRule: "inherit"
|
2905
|
-
}
|
2906
|
-
)
|
2907
|
-
]
|
2908
|
-
});
|
2909
|
-
var customer_icon_default = CustomerIcon;
|
2910
|
-
|
2911
|
-
// src/components/navigation/components/mapping-icon.ts
|
2912
2870
|
var mappingIcon = /* @__PURE__ */ new Map([
|
2913
|
-
["Order",
|
2914
|
-
["Fulfillment",
|
2915
|
-
["Transfer Stock",
|
2916
|
-
["Stock",
|
2917
|
-
["Product Database",
|
2918
|
-
["Purchasing",
|
2919
|
-
["Reseller",
|
2920
|
-
["Retur",
|
2921
|
-
["Other",
|
2922
|
-
["Content",
|
2923
|
-
["
|
2924
|
-
["
|
2871
|
+
["Order", /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2.ShoppingBag, { size: 4, color: "inherit" }, "order")],
|
2872
|
+
["Fulfillment", /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2.ShoppingCart, { size: 4, color: "inherit" }, "fullfilment")],
|
2873
|
+
["Transfer Stock", /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2.Repeat, { size: 4, color: "inherit" }, "transfer-stock")],
|
2874
|
+
["Stock", /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2.Box, { size: 4, color: "inherit" }, "stock")],
|
2875
|
+
["Product Database", /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2.Layers, { size: 4, color: "inherit" }, "product-database")],
|
2876
|
+
["Purchasing", /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2.DollarSign, { size: 4, color: "inherit" }, "purchasing")],
|
2877
|
+
["Reseller", /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2.Users, { size: 4, color: "inherit" }, "reseller")],
|
2878
|
+
["Retur", /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2.RotateCcw, { size: 4, color: "inherit" }, "retur")],
|
2879
|
+
["Other", /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2.Settings, { size: 4, color: "inherit" }, "other")],
|
2880
|
+
["Content", /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2.Layout, { size: 4, color: "inherit" }, "content")],
|
2881
|
+
["Customer", /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2.HelpCircle, { size: 4, color: "inherit" }, "content")],
|
2882
|
+
["Voucher", /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2.Gift, { size: 4, color: "inherit" }, "content")]
|
2925
2883
|
]);
|
2926
2884
|
|
2927
2885
|
// src/components/navigation/components/navigation.tsx
|
2928
2886
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
2929
2887
|
var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
2930
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2931
|
-
|
2888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react59.Box, { borderRadius: "md", overflowX: "auto", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2889
|
+
import_react59.Flex,
|
2932
2890
|
{
|
2933
|
-
bg:
|
2934
|
-
|
2935
|
-
|
2936
|
-
|
2937
|
-
|
2938
|
-
|
2891
|
+
bg: "white",
|
2892
|
+
w: "full",
|
2893
|
+
rounded: "md",
|
2894
|
+
flexWrap: "wrap",
|
2895
|
+
alignItems: "center",
|
2896
|
+
shadow: "raised",
|
2897
|
+
gap: 1,
|
2898
|
+
px: 4,
|
2899
|
+
py: 2,
|
2900
|
+
children: navigations == null ? void 0 : navigations.map((navigation) => {
|
2939
2901
|
const isActive = activePath.startsWith(navigation.navLink || "");
|
2940
2902
|
const activeBg = isActive ? "primary.500" : void 0;
|
2941
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2942
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2943
|
-
|
2903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react59.Popover, { trigger: "hover", placement: "bottom-start", children: ({ isOpen }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
2904
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react59.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2905
|
+
import_react59.Button,
|
2944
2906
|
{
|
2945
|
-
|
2946
|
-
|
2947
|
-
|
2948
|
-
|
2907
|
+
h: 7.5,
|
2908
|
+
p: 2,
|
2909
|
+
size: "sm",
|
2910
|
+
variant: "ghost",
|
2911
|
+
"data-test-id": `CT_component_navigation_button-${navigation.title}${isActive ? "-active" : ""}`,
|
2949
2912
|
_hover: {
|
2950
|
-
backgroundColor: !isActive ?
|
2913
|
+
backgroundColor: !isActive ? "neutral.400" : activeBg
|
2951
2914
|
},
|
2952
|
-
backgroundColor: isOpen && !isActive ?
|
2953
|
-
color: isActive ? "
|
2954
|
-
|
2955
|
-
|
2956
|
-
|
2957
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react61.Text, { whiteSpace: "nowrap", fontSize: "text.sm", fontWeight: 400, children: navigation.title }),
|
2958
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_icons4.ChevronDownIcon, { ml: 2 })
|
2959
|
-
]
|
2915
|
+
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
2916
|
+
color: isActive ? "primary.50" : "black.high",
|
2917
|
+
leftIcon: mappingIcon.get(navigation.title),
|
2918
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon3.ChevronDown, { size: 4, color: "inherit" }),
|
2919
|
+
children: navigation.title
|
2960
2920
|
}
|
2961
2921
|
) }),
|
2962
|
-
navigation.children && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2963
|
-
|
2922
|
+
navigation.children && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react59.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react59.Box, { zIndex: "popover", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2923
|
+
import_react59.PopoverContent,
|
2964
2924
|
{
|
2965
|
-
bg: (0,
|
2925
|
+
bg: (0, import_react59.useColorModeValue)("white", "ebony-clay.800"),
|
2966
2926
|
maxW: 250,
|
2967
2927
|
border: "none",
|
2968
2928
|
borderRadius: "md",
|
@@ -2972,7 +2932,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2972
2932
|
const isLocalLink = host === navHost;
|
2973
2933
|
const isActiveSub = activePath === navLink;
|
2974
2934
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2975
|
-
|
2935
|
+
import_react59.Link,
|
2976
2936
|
{
|
2977
2937
|
as: isLocalLink ? as : void 0,
|
2978
2938
|
href: link,
|
@@ -2980,7 +2940,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2980
2940
|
textDecoration: "none"
|
2981
2941
|
},
|
2982
2942
|
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
2983
|
-
|
2943
|
+
import_react59.Box,
|
2984
2944
|
{
|
2985
2945
|
display: "flex",
|
2986
2946
|
position: "relative",
|
@@ -2988,24 +2948,24 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2988
2948
|
cursor: "pointer",
|
2989
2949
|
transition: "padding 0.35s ease 0s",
|
2990
2950
|
_hover: {
|
2991
|
-
backgroundColor: (0,
|
2992
|
-
color: (0,
|
2951
|
+
backgroundColor: (0, import_react59.useColorModeValue)("dove-gray.50", "mirage.900"),
|
2952
|
+
color: (0, import_react59.useColorModeValue)("primary.500", "dove-gray.600"),
|
2993
2953
|
px: 5,
|
2994
2954
|
py: 4,
|
2995
2955
|
_first: { borderTopRadius: "md" },
|
2996
2956
|
_last: { borderBottomRadius: "md" }
|
2997
2957
|
},
|
2998
2958
|
color: isActiveSub ? "primary.500" : "inherit",
|
2999
|
-
css:
|
3000
|
-
|
3001
|
-
|
2959
|
+
css: import_react60.css`
|
2960
|
+
border-spacing: 4px;
|
2961
|
+
`,
|
3002
2962
|
px: 6,
|
3003
2963
|
py: 4,
|
3004
2964
|
children: [
|
3005
|
-
|
3006
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2965
|
+
mappingIcon.get(navigation.title),
|
2966
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react59.Text, { fontSize: "text.sm", ml: 3, children: title }),
|
3007
2967
|
isActiveSub && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
3008
|
-
|
2968
|
+
import_react59.Box,
|
3009
2969
|
{
|
3010
2970
|
width: 0.5,
|
3011
2971
|
height: 8,
|
@@ -3026,9 +2986,9 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
3026
2986
|
navigation.title
|
3027
2987
|
) }) })
|
3028
2988
|
] }) }, navigation.title);
|
3029
|
-
})
|
2989
|
+
})
|
3030
2990
|
}
|
3031
|
-
);
|
2991
|
+
) });
|
3032
2992
|
};
|
3033
2993
|
Navigation.defaultProps = {
|
3034
2994
|
navigations: void 0,
|
@@ -3038,8 +2998,8 @@ Navigation.defaultProps = {
|
|
3038
2998
|
var navigation_default = Navigation;
|
3039
2999
|
|
3040
3000
|
// src/components/navigation/components/navigation-bar.tsx
|
3041
|
-
var
|
3042
|
-
var
|
3001
|
+
var import_react61 = require("@chakra-ui/react");
|
3002
|
+
var Icon4 = __toESM(require("@ctlyst.id/internal-icon"));
|
3043
3003
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
3044
3004
|
var NavigationBar = ({
|
3045
3005
|
navigations,
|
@@ -3055,80 +3015,69 @@ var NavigationBar = ({
|
|
3055
3015
|
}
|
3056
3016
|
return subMenu.navHost + subMenu.navLink;
|
3057
3017
|
};
|
3058
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3059
|
-
|
3018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react61.Box, { hidden: isFetched && navigations === void 0, "data-test-id": "CT_component_navigation_cms", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3019
|
+
import_react61.Flex,
|
3060
3020
|
{
|
3061
|
-
|
3062
|
-
|
3063
|
-
|
3064
|
-
|
3065
|
-
|
3066
|
-
|
3067
|
-
|
3068
|
-
|
3069
|
-
|
3070
|
-
|
3071
|
-
|
3072
|
-
|
3073
|
-
|
3074
|
-
|
3075
|
-
|
3076
|
-
|
3077
|
-
|
3078
|
-
|
3079
|
-
|
3080
|
-
|
3081
|
-
|
3082
|
-
|
3083
|
-
|
3084
|
-
|
3085
|
-
|
3086
|
-
|
3087
|
-
|
3088
|
-
|
3089
|
-
|
3090
|
-
|
3091
|
-
|
3092
|
-
|
3093
|
-
|
3094
|
-
|
3095
|
-
|
3096
|
-
|
3097
|
-
|
3098
|
-
|
3099
|
-
|
3100
|
-
|
3101
|
-
|
3102
|
-
|
3103
|
-
|
3104
|
-
|
3105
|
-
|
3106
|
-
|
3107
|
-
|
3108
|
-
|
3109
|
-
|
3110
|
-
|
3111
|
-
|
3112
|
-
|
3113
|
-
|
3114
|
-
|
3115
|
-
|
3116
|
-
|
3117
|
-
|
3118
|
-
|
3119
|
-
children: [
|
3120
|
-
mappingIcon2.get(item.title),
|
3121
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react63.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
3122
|
-
]
|
3123
|
-
},
|
3124
|
-
subMenu.id
|
3125
|
-
)) })
|
3126
|
-
] }) }, item.id);
|
3127
|
-
})
|
3128
|
-
}
|
3129
|
-
)
|
3021
|
+
bg: "white",
|
3022
|
+
w: "full",
|
3023
|
+
rounded: "md",
|
3024
|
+
flexWrap: "wrap",
|
3025
|
+
alignItems: "center",
|
3026
|
+
shadow: "raised",
|
3027
|
+
gap: 1,
|
3028
|
+
px: 4,
|
3029
|
+
py: 2,
|
3030
|
+
children: navigations == null ? void 0 : navigations.map((item) => {
|
3031
|
+
var _a;
|
3032
|
+
const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
|
3033
|
+
const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
|
3034
|
+
const activeBg = isActive ? "primary.500" : void 0;
|
3035
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react61.Popover, { isLazy: true, trigger: "hover", placement: "bottom-start", openDelay: 100, closeDelay: 100, children: ({ isOpen, onClose }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
|
3036
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react61.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3037
|
+
import_react61.Button,
|
3038
|
+
{
|
3039
|
+
h: 7.5,
|
3040
|
+
p: 2,
|
3041
|
+
size: "sm",
|
3042
|
+
variant: "ghost",
|
3043
|
+
"data-test-id": `CT_component_navigation_button-${item.title}${isActive ? "-active" : ""}`,
|
3044
|
+
_hover: {
|
3045
|
+
backgroundColor: !isActive ? "neutral.400" : activeBg
|
3046
|
+
},
|
3047
|
+
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
3048
|
+
color: isActive ? "primary.50" : "black.high",
|
3049
|
+
leftIcon: mappingIcon2.get(item.title),
|
3050
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon4.ChevronDown, { size: 4, color: "inherit" }),
|
3051
|
+
children: item.title
|
3052
|
+
}
|
3053
|
+
) }),
|
3054
|
+
item.children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react61.PopoverContent, { bg: "white", boxShadow: "raised", borderRadius: "md", py: 1, width: 240, children: item.children.map((subMenu) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
3055
|
+
import_react61.Link,
|
3056
|
+
{
|
3057
|
+
href: urlMenu(subMenu),
|
3058
|
+
display: "flex",
|
3059
|
+
alignItems: "center",
|
3060
|
+
transition: "padding 0.35s ease 0s",
|
3061
|
+
_hover: {
|
3062
|
+
pl: 6
|
3063
|
+
},
|
3064
|
+
py: 3,
|
3065
|
+
px: 4,
|
3066
|
+
color: (pathname == null ? void 0 : pathname.startsWith(subMenu.navLink)) ? "primary.800" : "black.high",
|
3067
|
+
onClick: onClose,
|
3068
|
+
background: (pathname == null ? void 0 : pathname.startsWith(subMenu.navLink)) ? "primary.50" : "transparent",
|
3069
|
+
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
3070
|
+
children: [
|
3071
|
+
mappingIcon2.get(item.title),
|
3072
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react61.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
3073
|
+
]
|
3074
|
+
},
|
3075
|
+
subMenu.id
|
3076
|
+
)) })
|
3077
|
+
] }) }, item.id);
|
3078
|
+
})
|
3130
3079
|
}
|
3131
|
-
);
|
3080
|
+
) });
|
3132
3081
|
};
|
3133
3082
|
NavigationBar.defaultProps = {
|
3134
3083
|
navigations: void 0
|
@@ -3136,19 +3085,19 @@ NavigationBar.defaultProps = {
|
|
3136
3085
|
var navigation_bar_default = NavigationBar;
|
3137
3086
|
|
3138
3087
|
// src/components/pagination/components/pagination.tsx
|
3139
|
-
var
|
3140
|
-
var
|
3088
|
+
var import_icons4 = require("@chakra-ui/icons");
|
3089
|
+
var import_react64 = require("@chakra-ui/react");
|
3141
3090
|
|
3142
3091
|
// src/components/pagination/components/pagination-button.tsx
|
3143
|
-
var
|
3092
|
+
var import_react62 = require("@chakra-ui/react");
|
3144
3093
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
3145
|
-
var PaginationButton = (0,
|
3146
|
-
const btnBg = (0,
|
3147
|
-
const btnColor = (0,
|
3148
|
-
const btnNotActiveBg = (0,
|
3149
|
-
const btnNotActiveColor = (0,
|
3094
|
+
var PaginationButton = (0, import_react62.forwardRef)(({ className, style, isActive, children, ...rest }, ref) => {
|
3095
|
+
const btnBg = (0, import_react62.useColorModeValue)("neutral.300", "mirage.900");
|
3096
|
+
const btnColor = (0, import_react62.useColorModeValue)("black.high", "primary.300");
|
3097
|
+
const btnNotActiveBg = (0, import_react62.useColorModeValue)("secondary.50", "primary.500");
|
3098
|
+
const btnNotActiveColor = (0, import_react62.useColorModeValue)("primary.500", "white");
|
3150
3099
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3151
|
-
|
3100
|
+
import_react62.Button,
|
3152
3101
|
{
|
3153
3102
|
"data-test-id": "Pagination-Button",
|
3154
3103
|
ref,
|
@@ -3169,7 +3118,7 @@ var PaginationButton = (0, import_react64.forwardRef)(({ className, style, isAct
|
|
3169
3118
|
color: btnNotActiveColor
|
3170
3119
|
} : {},
|
3171
3120
|
_disabled: {
|
3172
|
-
background: (0,
|
3121
|
+
background: (0, import_react62.useColorModeValue)("neutral.300", "mirage.900"),
|
3173
3122
|
color: "neutral.600",
|
3174
3123
|
pointerEvents: "none"
|
3175
3124
|
},
|
@@ -3185,7 +3134,7 @@ PaginationButton.defaultProps = {
|
|
3185
3134
|
var pagination_button_default = PaginationButton;
|
3186
3135
|
|
3187
3136
|
// src/components/pagination/components/pagination-button-trigger.tsx
|
3188
|
-
var
|
3137
|
+
var import_react63 = require("@chakra-ui/react");
|
3189
3138
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
3190
3139
|
var PaginationButtonTrigger = ({
|
3191
3140
|
color,
|
@@ -3194,7 +3143,7 @@ var PaginationButtonTrigger = ({
|
|
3194
3143
|
visuallyHidden,
|
3195
3144
|
icon
|
3196
3145
|
}) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(pagination_button_default, { "data-test-id": "DLVCc_fBK35spHm5WxjcJ", color, isDisabled, onClick, children: [
|
3197
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
3146
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react63.VisuallyHidden, { children: visuallyHidden }),
|
3198
3147
|
icon
|
3199
3148
|
] });
|
3200
3149
|
PaginationButtonTrigger.defaultProps = {
|
@@ -3209,8 +3158,8 @@ var pagination_button_trigger_default = PaginationButtonTrigger;
|
|
3209
3158
|
// src/components/pagination/components/pagination.tsx
|
3210
3159
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
3211
3160
|
var Pagination = ({ className, current, total, onSelect }) => {
|
3212
|
-
const btnColorDisabled = (0,
|
3213
|
-
const btnColor = (0,
|
3161
|
+
const btnColorDisabled = (0, import_react64.useColorModeValue)("secondary.100", "primary.500");
|
3162
|
+
const btnColor = (0, import_react64.useColorModeValue)("primary.500", "secondary.100");
|
3214
3163
|
const disabledPrevious = current === 1;
|
3215
3164
|
const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;
|
3216
3165
|
const disabledNext = current === total;
|
@@ -3237,8 +3186,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3237
3186
|
}
|
3238
3187
|
return pageButtons;
|
3239
3188
|
};
|
3240
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
3241
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_react64.Box, { className, display: "inline-flex", alignItems: "center", children: [
|
3190
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react64.Box, { mr: 1, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3242
3191
|
pagination_button_trigger_default,
|
3243
3192
|
{
|
3244
3193
|
"data-test-id": "Pagination-Button",
|
@@ -3246,10 +3195,10 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3246
3195
|
isDisabled: disabledPrevious,
|
3247
3196
|
onClick: () => handleSelectPage(1),
|
3248
3197
|
visuallyHidden: "First Page",
|
3249
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3198
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons4.ArrowLeftIcon, { width: 2 })
|
3250
3199
|
}
|
3251
3200
|
) }),
|
3252
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
3201
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_react64.Box, { bg: "neutral.300", borderRadius: "full", children: [
|
3253
3202
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3254
3203
|
pagination_button_trigger_default,
|
3255
3204
|
{
|
@@ -3258,7 +3207,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3258
3207
|
isDisabled: disabledPrevious,
|
3259
3208
|
onClick: () => handleSelectPage(current - 1),
|
3260
3209
|
visuallyHidden: "Previous Page",
|
3261
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3210
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons4.ChevronLeftIcon, {})
|
3262
3211
|
}
|
3263
3212
|
),
|
3264
3213
|
generatePages().map((page) => {
|
@@ -3268,7 +3217,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3268
3217
|
"data-test-id": "Pagination-Button",
|
3269
3218
|
isActive: page === current,
|
3270
3219
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
3271
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3220
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react64.Text, { scale: 300, fontSize: "text.sm", lineHeight: 18, fontWeight: 500, children: page })
|
3272
3221
|
},
|
3273
3222
|
page
|
3274
3223
|
);
|
@@ -3281,11 +3230,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3281
3230
|
isDisabled: disabledNext,
|
3282
3231
|
onClick: () => handleSelectPage(current + 1),
|
3283
3232
|
visuallyHidden: "Next Page",
|
3284
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3233
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons4.ChevronRightIcon, {})
|
3285
3234
|
}
|
3286
3235
|
)
|
3287
3236
|
] }),
|
3288
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3237
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react64.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3289
3238
|
pagination_button_trigger_default,
|
3290
3239
|
{
|
3291
3240
|
"data-test-id": "Pagination-Button",
|
@@ -3293,7 +3242,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3293
3242
|
isDisabled: disabledNext,
|
3294
3243
|
onClick: () => handleSelectPage(total),
|
3295
3244
|
visuallyHidden: "Last Page",
|
3296
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3245
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons4.ArrowRightIcon, { width: 2 })
|
3297
3246
|
}
|
3298
3247
|
) })
|
3299
3248
|
] });
|
@@ -3306,7 +3255,7 @@ Pagination.displayName = "Pagination";
|
|
3306
3255
|
var pagination_default = Pagination;
|
3307
3256
|
|
3308
3257
|
// src/components/pagination/components/pagination-detail.tsx
|
3309
|
-
var
|
3258
|
+
var import_react65 = require("@chakra-ui/react");
|
3310
3259
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
3311
3260
|
var PaginationDetail = ({
|
3312
3261
|
page,
|
@@ -3317,14 +3266,14 @@ var PaginationDetail = ({
|
|
3317
3266
|
lineHeight = 18,
|
3318
3267
|
...rest
|
3319
3268
|
}) => {
|
3320
|
-
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3269
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react65.Text, { scale, fontSize, lineHeight, ...rest, children: `${(page - 1) * limit + 1}-${limit * page < length ? limit * page : length} dari ${length} item` });
|
3321
3270
|
};
|
3322
3271
|
var pagination_detail_default = PaginationDetail;
|
3323
3272
|
|
3324
3273
|
// src/components/pagination/components/pagination-filter.tsx
|
3325
|
-
var
|
3274
|
+
var import_react66 = require("@chakra-ui/react");
|
3326
3275
|
var React13 = __toESM(require("react"));
|
3327
|
-
var
|
3276
|
+
var import_fi6 = require("react-icons/fi");
|
3328
3277
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
3329
3278
|
var PaginationFilter = ({
|
3330
3279
|
limit,
|
@@ -3334,10 +3283,10 @@ var PaginationFilter = ({
|
|
3334
3283
|
...rest
|
3335
3284
|
}) => {
|
3336
3285
|
const [value, setValue] = React13.useState(limit);
|
3337
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
3338
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
3286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_react66.Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [
|
3287
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react66.Text, { fontSize: "text.sm", lineHeight: 18, color: (0, import_react66.useColorModeValue)("neutral.900", "white"), ...rest, children: label }),
|
3339
3288
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
3340
|
-
|
3289
|
+
import_react66.Select,
|
3341
3290
|
{
|
3342
3291
|
textAlign: "center",
|
3343
3292
|
size: "xs",
|
@@ -3345,7 +3294,7 @@ var PaginationFilter = ({
|
|
3345
3294
|
border: "none",
|
3346
3295
|
boxShadow: "none",
|
3347
3296
|
width: 18,
|
3348
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
3297
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_fi6.FiChevronDown, {}),
|
3349
3298
|
_focusVisible: { boxShadow: "none" },
|
3350
3299
|
onChange: (e) => {
|
3351
3300
|
const numberValue = Number(e.target.value);
|
@@ -3367,10 +3316,10 @@ PaginationFilter.defaultProps = {
|
|
3367
3316
|
var pagination_filter_default = PaginationFilter;
|
3368
3317
|
|
3369
3318
|
// src/components/popover/index.ts
|
3370
|
-
var
|
3319
|
+
var import_react67 = require("@chakra-ui/react");
|
3371
3320
|
|
3372
3321
|
// src/components/radio/components/radio.tsx
|
3373
|
-
var
|
3322
|
+
var import_react68 = require("@chakra-ui/react");
|
3374
3323
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
3375
3324
|
var Radio = ({
|
3376
3325
|
isError = false,
|
@@ -3381,9 +3330,9 @@ var Radio = ({
|
|
3381
3330
|
...rest
|
3382
3331
|
}) => {
|
3383
3332
|
const variant = isError ? "errors" : "unstyled";
|
3384
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
3385
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
3386
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
3333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_react68.Box, { children: [
|
3334
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react68.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react68.Radio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react68.Text, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
3335
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react68.Box, { mt: "5px", ml: "24px", children: isError ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react68.Text, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react68.Text, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) })
|
3387
3336
|
] });
|
3388
3337
|
};
|
3389
3338
|
Radio.displayName = "Radio";
|
@@ -3394,7 +3343,7 @@ Radio.defaultProps = {
|
|
3394
3343
|
};
|
3395
3344
|
|
3396
3345
|
// src/components/radio/components/radio-group.tsx
|
3397
|
-
var
|
3346
|
+
var import_react69 = require("@chakra-ui/react");
|
3398
3347
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
3399
3348
|
var RadioGroup = ({
|
3400
3349
|
children,
|
@@ -3404,7 +3353,7 @@ var RadioGroup = ({
|
|
3404
3353
|
errorMessage,
|
3405
3354
|
...props
|
3406
3355
|
}) => {
|
3407
|
-
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
3356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react69.Box, { mt: "12px", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react69.RadioGroup, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react69.Stack, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
|
3408
3357
|
};
|
3409
3358
|
RadioGroup.displayName = "RadioGroup";
|
3410
3359
|
RadioGroup.defaultProps = {
|
@@ -3414,14 +3363,14 @@ RadioGroup.defaultProps = {
|
|
3414
3363
|
};
|
3415
3364
|
|
3416
3365
|
// src/components/radio/index.ts
|
3417
|
-
var
|
3366
|
+
var import_react70 = require("@chakra-ui/react");
|
3418
3367
|
|
3419
3368
|
// src/components/rating/components/rating.tsx
|
3420
|
-
var
|
3369
|
+
var import_react71 = require("@chakra-ui/react");
|
3421
3370
|
var import_internal_icon6 = require("@ctlyst.id/internal-icon");
|
3422
3371
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
3423
3372
|
var Rating = ({ value }) => {
|
3424
|
-
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
3373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react71.Grid, { gap: "4px", display: "flex", children: [...Array(5)].map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_internal_icon6.Rating, { color: i < value ? "#FFA230" : "#E0E0E0", size: 24 })) });
|
3425
3374
|
};
|
3426
3375
|
var rating_default = Rating;
|
3427
3376
|
|
@@ -3430,16 +3379,16 @@ var import_system7 = require("@chakra-ui/system");
|
|
3430
3379
|
var import_react_select = __toESM(require("react-select"));
|
3431
3380
|
|
3432
3381
|
// src/config/theme/foundations/shadows.ts
|
3433
|
-
var
|
3382
|
+
var import_react72 = require("@chakra-ui/react");
|
3434
3383
|
var shadows = {
|
3435
|
-
...
|
3384
|
+
...import_react72.theme.shadows,
|
3436
3385
|
raised: "0px 4px 20px rgba(0, 0, 0, 0.05)"
|
3437
3386
|
};
|
3438
3387
|
|
3439
3388
|
// src/config/theme/foundations/sizes.ts
|
3440
|
-
var
|
3389
|
+
var import_react73 = require("@chakra-ui/react");
|
3441
3390
|
var sizes = {
|
3442
|
-
...
|
3391
|
+
...import_react73.theme.sizes,
|
3443
3392
|
4.5: "1.125rem",
|
3444
3393
|
9.5: "2.375rem",
|
3445
3394
|
18: "4.5rem",
|
@@ -3449,9 +3398,9 @@ var sizes = {
|
|
3449
3398
|
};
|
3450
3399
|
|
3451
3400
|
// src/config/theme/foundations/spacing.ts
|
3452
|
-
var
|
3401
|
+
var import_react74 = require("@chakra-ui/react");
|
3453
3402
|
var spacing = {
|
3454
|
-
...
|
3403
|
+
...import_react74.theme.space,
|
3455
3404
|
4.5: "1.125rem",
|
3456
3405
|
9.5: "2.375rem",
|
3457
3406
|
18: "4.5rem",
|
@@ -3829,16 +3778,16 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
3829
3778
|
}
|
3830
3779
|
|
3831
3780
|
// src/components/switch/components/switch.tsx
|
3832
|
-
var
|
3781
|
+
var import_react75 = require("@chakra-ui/react");
|
3833
3782
|
var import_shared_utils9 = require("@chakra-ui/shared-utils");
|
3834
3783
|
var import_internal_icon7 = require("@ctlyst.id/internal-icon");
|
3835
|
-
var
|
3784
|
+
var import_react76 = require("react");
|
3836
3785
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
3837
|
-
var Switch = (0,
|
3838
|
-
const styles = (0,
|
3839
|
-
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0,
|
3840
|
-
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0,
|
3841
|
-
const containerStyles = (0,
|
3786
|
+
var Switch = (0, import_react75.forwardRef)(function Switch2(props, ref) {
|
3787
|
+
const styles = (0, import_react75.useMultiStyleConfig)("Switch", props);
|
3788
|
+
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0, import_react75.omitThemingProps)(props);
|
3789
|
+
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0, import_react75.useCheckbox)(ownProps);
|
3790
|
+
const containerStyles = (0, import_react76.useMemo)(
|
3842
3791
|
() => ({
|
3843
3792
|
display: "inline-block",
|
3844
3793
|
position: "relative",
|
@@ -3848,7 +3797,7 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
3848
3797
|
}),
|
3849
3798
|
[styles.container]
|
3850
3799
|
);
|
3851
|
-
const trackStyles = (0,
|
3800
|
+
const trackStyles = (0, import_react76.useMemo)(
|
3852
3801
|
() => ({
|
3853
3802
|
display: "inline-flex",
|
3854
3803
|
flexShrink: 0,
|
@@ -3860,7 +3809,7 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
3860
3809
|
}),
|
3861
3810
|
[styles.track]
|
3862
3811
|
);
|
3863
|
-
const labelStyles = (0,
|
3812
|
+
const labelStyles = (0, import_react76.useMemo)(
|
3864
3813
|
() => ({
|
3865
3814
|
userSelect: "none",
|
3866
3815
|
marginStart: spacing2,
|
@@ -3877,7 +3826,7 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
3877
3826
|
return iconSize[value];
|
3878
3827
|
};
|
3879
3828
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
3880
|
-
|
3829
|
+
import_react75.chakra.label,
|
3881
3830
|
{
|
3882
3831
|
...getRootProps(),
|
3883
3832
|
display: "flex",
|
@@ -3886,13 +3835,13 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
3886
3835
|
__css: containerStyles,
|
3887
3836
|
children: [
|
3888
3837
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
3889
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
3890
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
3838
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_react75.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
3839
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_react75.Flex, { gap: 2, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
|
3891
3840
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_internal_icon7.Check, { color: "white", size: getIconSize(props.size) }),
|
3892
3841
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_internal_icon7.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
3893
3842
|
] }),
|
3894
3843
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3895
|
-
|
3844
|
+
import_react75.chakra.span,
|
3896
3845
|
{
|
3897
3846
|
__css: styles.thumb,
|
3898
3847
|
className: "chakra-switch__thumb",
|
@@ -3902,7 +3851,7 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
|
3902
3851
|
)
|
3903
3852
|
] }),
|
3904
3853
|
children && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3905
|
-
|
3854
|
+
import_react75.chakra.span,
|
3906
3855
|
{
|
3907
3856
|
className: "chakra-switch__label",
|
3908
3857
|
color: state.isDisabled ? "black.low" : "black.high",
|
@@ -3921,18 +3870,18 @@ Switch.defaultProps = {
|
|
3921
3870
|
var switch_default = Switch;
|
3922
3871
|
|
3923
3872
|
// src/components/table/index.tsx
|
3924
|
-
var
|
3873
|
+
var import_react77 = require("@chakra-ui/react");
|
3925
3874
|
|
3926
3875
|
// src/components/tabs/components/tab.tsx
|
3927
|
-
var
|
3876
|
+
var import_react78 = require("@chakra-ui/react");
|
3928
3877
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
3929
|
-
var Tab = (0,
|
3878
|
+
var Tab = (0, import_react78.forwardRef)((props, ref) => {
|
3930
3879
|
var _a, _b;
|
3931
|
-
const tabProps = (0,
|
3880
|
+
const tabProps = (0, import_react78.useTab)({ ...props, ref });
|
3932
3881
|
const isSelected = !!tabProps["aria-selected"];
|
3933
|
-
const styles = (0,
|
3882
|
+
const styles = (0, import_react78.useMultiStyleConfig)("Tabs", tabProps);
|
3934
3883
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3935
|
-
|
3884
|
+
import_react78.Button,
|
3936
3885
|
{
|
3937
3886
|
"data-test-id": props["data-test-id"],
|
3938
3887
|
p: 4,
|
@@ -3957,7 +3906,7 @@ var Tab = (0, import_react80.forwardRef)((props, ref) => {
|
|
3957
3906
|
},
|
3958
3907
|
__css: styles.tab,
|
3959
3908
|
...tabProps,
|
3960
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
3909
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react78.Flex, { alignItems: "center", children: [
|
3961
3910
|
(_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
|
3962
3911
|
tabProps.children,
|
3963
3912
|
(_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
|
@@ -3968,16 +3917,16 @@ var Tab = (0, import_react80.forwardRef)((props, ref) => {
|
|
3968
3917
|
var tab_default = Tab;
|
3969
3918
|
|
3970
3919
|
// src/components/tabs/index.ts
|
3971
|
-
var
|
3920
|
+
var import_react79 = require("@chakra-ui/react");
|
3972
3921
|
|
3973
3922
|
// src/components/text/index.ts
|
3974
|
-
var
|
3923
|
+
var import_react80 = require("@chakra-ui/react");
|
3975
3924
|
|
3976
3925
|
// src/components/tooltip/index.ts
|
3977
|
-
var
|
3926
|
+
var import_react81 = require("@chakra-ui/react");
|
3978
3927
|
|
3979
3928
|
// src/components/uploader/components/uploader.tsx
|
3980
|
-
var
|
3929
|
+
var import_react82 = require("@chakra-ui/react");
|
3981
3930
|
var React15 = __toESM(require("react"));
|
3982
3931
|
var import_react_dropzone = require("react-dropzone");
|
3983
3932
|
|
@@ -4039,9 +3988,9 @@ var Uploader = ({
|
|
4039
3988
|
React15.useEffect(() => {
|
4040
3989
|
setIsSelected(selected != null ? selected : false);
|
4041
3990
|
}, [selected]);
|
4042
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
3991
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react82.Stack, { direction: "column", children: [
|
4043
3992
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
4044
|
-
|
3993
|
+
import_react82.Flex,
|
4045
3994
|
{
|
4046
3995
|
minH: 200,
|
4047
3996
|
border: "1px dashed",
|
@@ -4053,10 +4002,10 @@ var Uploader = ({
|
|
4053
4002
|
...getRootProps(),
|
4054
4003
|
children: [
|
4055
4004
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("input", { ...getInputProps() }),
|
4056
|
-
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4057
|
-
!multiple && isSelected && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4058
|
-
!isSelected && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4059
|
-
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4005
|
+
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react82.Text, { children: messages.dragActive }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react82.Flex, { flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : "primary.500", children: [
|
4006
|
+
!multiple && isSelected && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react82.Heading, { fontWeight: 400, fontSize: "18px", lineHeight: 28, color: "black.high", mb: 2, children: selectedFirstFile == null ? void 0 : selectedFirstFile.name }),
|
4007
|
+
!isSelected && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react82.Heading, { fontWeight: 400, fontSize: "18px", lineHeight: 28, mb: 2, children: messages.uploadFile }),
|
4008
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react82.Text, { children: messages.dragReplace }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react82.Text, { children: messages.dragInActive })
|
4060
4009
|
] })
|
4061
4010
|
]
|
4062
4011
|
}
|
@@ -4073,10 +4022,10 @@ Uploader.defaultProps = {
|
|
4073
4022
|
var uploader_default = Uploader;
|
4074
4023
|
|
4075
4024
|
// src/components/index.ts
|
4076
|
-
var
|
4025
|
+
var import_react83 = require("@chakra-ui/react");
|
4077
4026
|
|
4078
4027
|
// src/config/theme/themeConfiguration.ts
|
4079
|
-
var
|
4028
|
+
var import_react89 = require("@chakra-ui/react");
|
4080
4029
|
|
4081
4030
|
// src/config/theme/components/index.ts
|
4082
4031
|
var components_exports = {};
|
@@ -4347,7 +4296,7 @@ var badge_default2 = Badge2;
|
|
4347
4296
|
|
4348
4297
|
// src/config/theme/components/button.ts
|
4349
4298
|
var import_styled_system3 = require("@chakra-ui/styled-system");
|
4350
|
-
var
|
4299
|
+
var Button6 = (0, import_styled_system3.defineStyleConfig)({
|
4351
4300
|
// The styles all button have in common
|
4352
4301
|
baseStyle: {
|
4353
4302
|
fontSize: "body.1",
|
@@ -4602,7 +4551,7 @@ var Button5 = (0, import_styled_system3.defineStyleConfig)({
|
|
4602
4551
|
colorScheme: "primary"
|
4603
4552
|
}
|
4604
4553
|
});
|
4605
|
-
var button_default2 =
|
4554
|
+
var button_default2 = Button6;
|
4606
4555
|
|
4607
4556
|
// src/config/theme/components/card.ts
|
4608
4557
|
var import_styled_system4 = require("@chakra-ui/styled-system");
|
@@ -4618,8 +4567,8 @@ var card_default2 = CardStyle;
|
|
4618
4567
|
|
4619
4568
|
// src/config/theme/components/checkbox.ts
|
4620
4569
|
var import_anatomy3 = require("@chakra-ui/anatomy");
|
4621
|
-
var
|
4622
|
-
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0,
|
4570
|
+
var import_react84 = require("@chakra-ui/react");
|
4571
|
+
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0, import_react84.createMultiStyleConfigHelpers)(import_anatomy3.checkboxAnatomy.keys);
|
4623
4572
|
var baseStyle3 = definePartsStyle3({
|
4624
4573
|
control: {
|
4625
4574
|
borderRadius: "sm",
|
@@ -4835,7 +4784,7 @@ var size = {
|
|
4835
4784
|
}),
|
4836
4785
|
sm: (0, import_styled_system7.defineStyle)({
|
4837
4786
|
fontSize: "text.sm",
|
4838
|
-
h: 9,
|
4787
|
+
h: 9.5,
|
4839
4788
|
borderRadius: "sm"
|
4840
4789
|
})
|
4841
4790
|
};
|
@@ -4859,6 +4808,9 @@ var outline = definePartsStyle4((props) => {
|
|
4859
4808
|
outline: 0,
|
4860
4809
|
bg: (0, import_theme_tools.mode)("white", "inherit")(props),
|
4861
4810
|
color: (0, import_theme_tools.mode)("inherit", "white")(props),
|
4811
|
+
_hover: {
|
4812
|
+
borderColor: (0, import_theme_tools.mode)("neutral.400", "inherit")(props)
|
4813
|
+
},
|
4862
4814
|
_invalid: {
|
4863
4815
|
boxShadow: "none"
|
4864
4816
|
},
|
@@ -4887,7 +4839,7 @@ var variants3 = {
|
|
4887
4839
|
outline,
|
4888
4840
|
unstyled: unstyled2
|
4889
4841
|
};
|
4890
|
-
var
|
4842
|
+
var Input3 = defineMultiStyleConfig4({
|
4891
4843
|
baseStyle: baseStyle5,
|
4892
4844
|
sizes: sizes2,
|
4893
4845
|
variants: variants3,
|
@@ -4896,12 +4848,12 @@ var Input4 = defineMultiStyleConfig4({
|
|
4896
4848
|
variant: "outline"
|
4897
4849
|
}
|
4898
4850
|
});
|
4899
|
-
var input_default =
|
4851
|
+
var input_default = Input3;
|
4900
4852
|
|
4901
4853
|
// src/config/theme/components/loader.ts
|
4902
4854
|
var import_styled_system8 = require("@chakra-ui/styled-system");
|
4903
|
-
var
|
4904
|
-
var rotate = (0,
|
4855
|
+
var import_react85 = require("@emotion/react");
|
4856
|
+
var rotate = (0, import_react85.keyframes)({
|
4905
4857
|
"0%": {
|
4906
4858
|
transform: "rotate(0deg)"
|
4907
4859
|
},
|
@@ -5031,8 +4983,8 @@ var modal_default = Modal3;
|
|
5031
4983
|
|
5032
4984
|
// src/config/theme/components/radio.ts
|
5033
4985
|
var import_anatomy5 = require("@chakra-ui/anatomy");
|
5034
|
-
var
|
5035
|
-
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0,
|
4986
|
+
var import_react86 = require("@chakra-ui/react");
|
4987
|
+
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0, import_react86.createMultiStyleConfigHelpers)(import_anatomy5.radioAnatomy.keys);
|
5036
4988
|
var baseStyle6 = definePartsStyle5({
|
5037
4989
|
control: {
|
5038
4990
|
border: "1px solid",
|
@@ -5460,7 +5412,7 @@ var tabsTheme = defineMultiStyleConfig8({
|
|
5460
5412
|
var tabs_default = tabsTheme;
|
5461
5413
|
|
5462
5414
|
// src/config/theme/components/textarea.ts
|
5463
|
-
var
|
5415
|
+
var import_react87 = require("@chakra-ui/react");
|
5464
5416
|
var getProps = (props) => {
|
5465
5417
|
const { isError, isSuccess, isDisabled } = props;
|
5466
5418
|
let borderColor = "neutral.400";
|
@@ -5480,7 +5432,7 @@ var getProps = (props) => {
|
|
5480
5432
|
borderColor
|
5481
5433
|
};
|
5482
5434
|
};
|
5483
|
-
var outline2 = (0,
|
5435
|
+
var outline2 = (0, import_react87.defineStyle)((props) => {
|
5484
5436
|
const { focusBorderColor, borderColor } = getProps(props);
|
5485
5437
|
return {
|
5486
5438
|
background: "white.high",
|
@@ -5524,7 +5476,7 @@ var outline2 = (0, import_react89.defineStyle)((props) => {
|
|
5524
5476
|
}
|
5525
5477
|
};
|
5526
5478
|
});
|
5527
|
-
var Textarea = (0,
|
5479
|
+
var Textarea = (0, import_react87.defineStyleConfig)({
|
5528
5480
|
variants: { outline: outline2 },
|
5529
5481
|
defaultProps: {
|
5530
5482
|
variant: "outline"
|
@@ -5533,14 +5485,14 @@ var Textarea = (0, import_react89.defineStyleConfig)({
|
|
5533
5485
|
var textarea_default2 = Textarea;
|
5534
5486
|
|
5535
5487
|
// src/config/theme/components/tooltip.ts
|
5536
|
-
var
|
5537
|
-
var $arrowBg = (0,
|
5488
|
+
var import_react88 = require("@chakra-ui/react");
|
5489
|
+
var $arrowBg = (0, import_react88.cssVar)("popper-arrow-bg");
|
5538
5490
|
var baseStyle9 = {
|
5539
5491
|
bg: "neutral.700",
|
5540
5492
|
fontSize: "text.sm",
|
5541
5493
|
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
5542
5494
|
};
|
5543
|
-
var Tooltip2 = (0,
|
5495
|
+
var Tooltip2 = (0, import_react88.defineStyleConfig)({ baseStyle: baseStyle9 });
|
5544
5496
|
var tooltip_default = Tooltip2;
|
5545
5497
|
|
5546
5498
|
// src/config/theme/themeConfiguration.ts
|
@@ -5550,7 +5502,7 @@ var config = {
|
|
5550
5502
|
useSystemColorMode: false
|
5551
5503
|
};
|
5552
5504
|
var getTheme = (foundations) => {
|
5553
|
-
return (0,
|
5505
|
+
return (0, import_react89.extendTheme)({
|
5554
5506
|
...foundations,
|
5555
5507
|
components: {
|
5556
5508
|
...components_exports
|
@@ -5566,7 +5518,7 @@ var getTheme = (foundations) => {
|
|
5566
5518
|
config
|
5567
5519
|
});
|
5568
5520
|
};
|
5569
|
-
var theme5 = (0,
|
5521
|
+
var theme5 = (0, import_react89.extendTheme)({
|
5570
5522
|
components: {
|
5571
5523
|
...components_exports
|
5572
5524
|
},
|
@@ -5586,23 +5538,23 @@ var theme5 = (0, import_react91.extendTheme)({
|
|
5586
5538
|
|
5587
5539
|
// src/hooks/useFetcher.ts
|
5588
5540
|
var import_axios2 = __toESM(require("axios"));
|
5589
|
-
var
|
5541
|
+
var import_react92 = require("react");
|
5590
5542
|
|
5591
5543
|
// src/provider/components/provider.tsx
|
5592
5544
|
var import_axios = __toESM(require("axios"));
|
5593
|
-
var
|
5545
|
+
var import_react90 = require("react");
|
5594
5546
|
var import_react_toastify = require("react-toastify");
|
5595
5547
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
5596
|
-
var ProviderContext = (0,
|
5548
|
+
var ProviderContext = (0, import_react90.createContext)({
|
5597
5549
|
instance: void 0
|
5598
5550
|
});
|
5599
5551
|
var useInternalUI = () => {
|
5600
|
-
const { instance } = (0,
|
5552
|
+
const { instance } = (0, import_react90.useContext)(ProviderContext);
|
5601
5553
|
return { instance };
|
5602
5554
|
};
|
5603
5555
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
5604
|
-
const instanceRef = (0,
|
5605
|
-
(0,
|
5556
|
+
const instanceRef = (0, import_react90.useRef)(import_axios.default.create(config2));
|
5557
|
+
(0, import_react90.useEffect)(() => {
|
5606
5558
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
5607
5559
|
instanceRef.current.interceptors.request.use(interceptor);
|
5608
5560
|
});
|
@@ -5610,7 +5562,7 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
5610
5562
|
instanceRef.current.interceptors.response.use(interceptor);
|
5611
5563
|
});
|
5612
5564
|
}, [requestInterceptors, responseInterceptors]);
|
5613
|
-
const provider = (0,
|
5565
|
+
const provider = (0, import_react90.useMemo)(() => ({ instance: instanceRef.current }), []);
|
5614
5566
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(ProviderContext.Provider, { value: provider, children: [
|
5615
5567
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_toastify.ToastContainer, {}),
|
5616
5568
|
children
|
@@ -5620,12 +5572,12 @@ Provider.displayName = "Provider";
|
|
5620
5572
|
var provider_default = Provider;
|
5621
5573
|
|
5622
5574
|
// src/provider/index.ts
|
5623
|
-
var
|
5575
|
+
var import_react91 = require("@chakra-ui/react");
|
5624
5576
|
|
5625
5577
|
// src/hooks/useFetcher.ts
|
5626
5578
|
function useFetcher() {
|
5627
5579
|
const { instance } = useInternalUI();
|
5628
|
-
const axiosInstance = (0,
|
5580
|
+
const axiosInstance = (0, import_react92.useMemo)(() => instance || import_axios2.default, [instance]);
|
5629
5581
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
5630
5582
|
const response = await axiosInstance.request({
|
5631
5583
|
data,
|
@@ -5645,10 +5597,10 @@ function useFetcher() {
|
|
5645
5597
|
}
|
5646
5598
|
|
5647
5599
|
// src/hooks/index.ts
|
5648
|
-
var
|
5600
|
+
var import_react93 = require("@chakra-ui/react");
|
5649
5601
|
|
5650
5602
|
// src/index.ts
|
5651
|
-
var
|
5603
|
+
var import_react94 = require("@chakra-ui/react");
|
5652
5604
|
// Annotate the CommonJS export names for ESM import in node:
|
5653
5605
|
0 && (module.exports = {
|
5654
5606
|
Accordion,
|