@ctlyst.id/internal-ui 2.1.16 → 2.1.18
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 +546 -547
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +71 -73
- 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();
|
@@ -1251,7 +1248,7 @@ var useDataTable = ({
|
|
1251
1248
|
id: "select",
|
1252
1249
|
size: 32,
|
1253
1250
|
header: ({ table: table2 }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1254
|
-
|
1251
|
+
import_react28.Checkbox,
|
1255
1252
|
{
|
1256
1253
|
"data-test-id": "select-header-data-table",
|
1257
1254
|
...{
|
@@ -1262,7 +1259,7 @@ var useDataTable = ({
|
|
1262
1259
|
}
|
1263
1260
|
),
|
1264
1261
|
cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1265
|
-
|
1262
|
+
import_react28.Checkbox,
|
1266
1263
|
{
|
1267
1264
|
"data-test-id": `select-data-table-${row.index}`,
|
1268
1265
|
...{
|
@@ -1329,16 +1326,16 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1329
1326
|
React5.useImperativeHandle(ref, () => ({
|
1330
1327
|
toggleAllRowsSelected
|
1331
1328
|
}));
|
1332
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
1333
|
-
isLoading && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
1334
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1335
|
-
|
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,
|
1336
1333
|
{
|
1337
1334
|
colSpan: header.colSpan,
|
1338
1335
|
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1339
1336
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
1340
1337
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1341
|
-
|
1338
|
+
import_react28.Flex,
|
1342
1339
|
{
|
1343
1340
|
"data-test-id": "CT_component_data-table_loader",
|
1344
1341
|
textTransform: "capitalize",
|
@@ -1350,20 +1347,20 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1350
1347
|
},
|
1351
1348
|
header.id
|
1352
1349
|
)) }, headerGroup.id)) }),
|
1353
|
-
/* @__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)) })
|
1354
1351
|
] }),
|
1355
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
1356
|
-
/* @__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) => {
|
1357
1354
|
var _a;
|
1358
1355
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1359
|
-
|
1356
|
+
import_react28.Th,
|
1360
1357
|
{
|
1361
1358
|
colSpan: header.colSpan,
|
1362
1359
|
sx: getCommonPinningStyles(header.column),
|
1363
1360
|
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1364
1361
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
1365
1362
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
1366
|
-
|
1363
|
+
import_react28.Flex,
|
1367
1364
|
{
|
1368
1365
|
backgroundColor: "white",
|
1369
1366
|
height: "100%",
|
@@ -1373,9 +1370,9 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1373
1370
|
align: "center",
|
1374
1371
|
gap: 2,
|
1375
1372
|
children: [
|
1376
|
-
/* @__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()) }),
|
1377
1374
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1378
|
-
|
1375
|
+
import_react28.Box,
|
1379
1376
|
{
|
1380
1377
|
as: "span",
|
1381
1378
|
cursor: header.column.getCanSort() ? "pointer" : "default",
|
@@ -1394,16 +1391,16 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1394
1391
|
header.id
|
1395
1392
|
);
|
1396
1393
|
}) }, headerGroup.id)) }),
|
1397
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1398
|
-
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)();
|
1399
1396
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1400
|
-
|
1397
|
+
import_react28.Tr,
|
1401
1398
|
{
|
1402
1399
|
"data-test-id": "-RU0hNYGRzeVM3HQ4cXHl",
|
1403
1400
|
tabindex: "0",
|
1404
1401
|
ref: trRef,
|
1405
1402
|
...styles == null ? void 0 : styles.tableRow,
|
1406
|
-
css:
|
1403
|
+
css: import_react29.css`
|
1407
1404
|
&:last-child {
|
1408
1405
|
td {
|
1409
1406
|
border-bottom: none;
|
@@ -1424,15 +1421,15 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1424
1421
|
}
|
1425
1422
|
},
|
1426
1423
|
children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1427
|
-
|
1424
|
+
import_react28.Td,
|
1428
1425
|
{
|
1429
1426
|
"data-test-id": `CT_Component_TableCell_${cell.id}`,
|
1430
1427
|
fontSize: "text.sm",
|
1431
|
-
color: (0,
|
1428
|
+
color: (0, import_react28.useColorModeValue)("dark.800", "dark.300"),
|
1432
1429
|
sx: getCommonPinningStyles(cell.column),
|
1433
1430
|
...styles == null ? void 0 : styles.tableCell,
|
1434
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1435
|
-
|
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,
|
1436
1433
|
{
|
1437
1434
|
tabIndex: 0,
|
1438
1435
|
display: "inline-block",
|
@@ -1473,19 +1470,19 @@ DataTable.defaultProps = {
|
|
1473
1470
|
var data_table_default = DataTable;
|
1474
1471
|
|
1475
1472
|
// src/components/datepicker/components/datepicker.tsx
|
1476
|
-
var
|
1473
|
+
var import_react34 = require("@chakra-ui/react");
|
1477
1474
|
var import_shared_utils8 = require("@chakra-ui/shared-utils");
|
1478
1475
|
var import_react_datepicker = __toESM(require("react-datepicker"));
|
1479
1476
|
var import_fi3 = require("react-icons/fi");
|
1480
1477
|
|
1481
1478
|
// src/components/datepicker/components/styles.tsx
|
1482
1479
|
var import_system6 = require("@chakra-ui/system");
|
1483
|
-
var
|
1480
|
+
var import_react31 = require("@emotion/react");
|
1484
1481
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
1485
1482
|
var Styles = () => {
|
1486
1483
|
const { colorMode } = (0, import_system6.useColorMode)();
|
1487
1484
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
1488
|
-
|
1485
|
+
import_react31.Global,
|
1489
1486
|
{
|
1490
1487
|
styles: `
|
1491
1488
|
@charset "UTF-8";
|
@@ -2296,21 +2293,21 @@ var Styles = () => {
|
|
2296
2293
|
var styles_default = Styles;
|
2297
2294
|
|
2298
2295
|
// src/components/datepicker/components/time-input.tsx
|
2299
|
-
var
|
2300
|
-
var
|
2296
|
+
var import_react32 = require("@chakra-ui/react");
|
2297
|
+
var import_react33 = __toESM(require("react"));
|
2301
2298
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
2302
2299
|
var TimeInput = ({ value, onChange, label, rightAddon }) => {
|
2303
|
-
const [time, setTime] =
|
2300
|
+
const [time, setTime] = import_react33.default.useState(value || "00:00");
|
2304
2301
|
const handleChange = (e) => {
|
2305
2302
|
var _a, _b;
|
2306
2303
|
setTime(((_a = e.target) == null ? void 0 : _a.value) || "00:00");
|
2307
2304
|
if (onChange) onChange(((_b = e.target) == null ? void 0 : _b.value) || "00:00");
|
2308
2305
|
};
|
2309
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
2310
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
2311
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
2312
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
2313
|
-
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 })
|
2314
2311
|
] })
|
2315
2312
|
] });
|
2316
2313
|
};
|
@@ -2343,7 +2340,6 @@ var Datepicker = ({
|
|
2343
2340
|
var _a;
|
2344
2341
|
const selected = value ? new Date(value) : void 0;
|
2345
2342
|
const dateFormat = ((_a = props.dateFormat) != null ? _a : withTime) ? "yyyy-MM-dd HH:mm" : "yyyy-MM-dd";
|
2346
|
-
const wrapperStyle = input_field_default({});
|
2347
2343
|
const getTimeProps = () => {
|
2348
2344
|
if (!withTime) return {};
|
2349
2345
|
return {
|
@@ -2360,7 +2356,7 @@ var Datepicker = ({
|
|
2360
2356
|
id,
|
2361
2357
|
name,
|
2362
2358
|
selected,
|
2363
|
-
customInput: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
2359
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(input_field_default, { autoComplete: "off" }),
|
2364
2360
|
dateFormat,
|
2365
2361
|
showPopperArrow: false,
|
2366
2362
|
calendarClassName: (0, import_shared_utils8.cx)({ inline: props.inline }),
|
@@ -2374,16 +2370,16 @@ var Datepicker = ({
|
|
2374
2370
|
if (props.inline) {
|
2375
2371
|
return component;
|
2376
2372
|
}
|
2377
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
2378
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
2379
|
-
/* @__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: [
|
2380
2376
|
component,
|
2381
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
2377
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react34.InputRightElement, { children: [
|
2382
2378
|
!value && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_fi3.FiCalendar, {}),
|
2383
2379
|
value && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_fi3.FiX, { "data-test-id": "bcpJJyCP0z_RIAGZXDU6s", onClick: onClear, cursor: "pointer" })
|
2384
2380
|
] })
|
2385
2381
|
] }),
|
2386
|
-
!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 })
|
2387
2383
|
] });
|
2388
2384
|
};
|
2389
2385
|
Datepicker.defaultProps = {
|
@@ -2401,18 +2397,18 @@ Datepicker.defaultProps = {
|
|
2401
2397
|
var datepicker_default = Datepicker;
|
2402
2398
|
|
2403
2399
|
// src/components/datepicker/components/datepicker-month/datepicker-month.tsx
|
2404
|
-
var
|
2405
|
-
var
|
2406
|
-
var
|
2400
|
+
var import_react35 = require("@chakra-ui/react");
|
2401
|
+
var import_react36 = require("@emotion/react");
|
2402
|
+
var import_react37 = __toESM(require("react"));
|
2407
2403
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
2408
2404
|
var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
2409
|
-
const [date, setDate] =
|
2405
|
+
const [date, setDate] = import_react37.default.useState(null);
|
2410
2406
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
2411
|
-
|
2407
|
+
import_react35.Box,
|
2412
2408
|
{
|
2413
2409
|
fontSize: "12px",
|
2414
2410
|
lineHeight: "18px",
|
2415
|
-
css:
|
2411
|
+
css: import_react36.css`
|
2416
2412
|
input[type='date']::-webkit-inner-spin-button,
|
2417
2413
|
input[type='date']::-webkit-calendar-picker-indicator {
|
2418
2414
|
display: none;
|
@@ -2423,7 +2419,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
2423
2419
|
}
|
2424
2420
|
`,
|
2425
2421
|
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
2426
|
-
|
2422
|
+
import_react35.Input,
|
2427
2423
|
{
|
2428
2424
|
"data-test-id": props["data-test-id"],
|
2429
2425
|
type: "date",
|
@@ -2436,7 +2432,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
|
|
2436
2432
|
min,
|
2437
2433
|
max,
|
2438
2434
|
required: true,
|
2439
|
-
css:
|
2435
|
+
css: import_react36.css`
|
2440
2436
|
border: 1px solid transparent;
|
2441
2437
|
|
2442
2438
|
&:focus,
|
@@ -2460,11 +2456,11 @@ DatePickerMonth.defaultProps = {
|
|
2460
2456
|
var datepicker_month_default = DatePickerMonth;
|
2461
2457
|
|
2462
2458
|
// src/components/datepicker/components/datepicker-month/multi-datepicker-month.tsx
|
2463
|
-
var
|
2459
|
+
var import_react38 = require("@chakra-ui/react");
|
2464
2460
|
var import_styled = __toESM(require("@emotion/styled"));
|
2465
|
-
var
|
2461
|
+
var import_react39 = __toESM(require("react"));
|
2466
2462
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
2467
|
-
var MultiDateWrapper = (0, import_styled.default)(
|
2463
|
+
var MultiDateWrapper = (0, import_styled.default)(import_react38.Box)`
|
2468
2464
|
display: flex;
|
2469
2465
|
align-items: center;
|
2470
2466
|
width: fit-content;
|
@@ -2479,7 +2475,7 @@ var MultiDatePickerMonth = ({
|
|
2479
2475
|
min = "2020-01-01",
|
2480
2476
|
max = "2020-12-31"
|
2481
2477
|
}) => {
|
2482
|
-
const [date, setDate] =
|
2478
|
+
const [date, setDate] = import_react39.default.useState([null, null]);
|
2483
2479
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(MultiDateWrapper, { isError, children: [
|
2484
2480
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
2485
2481
|
datepicker_month_default,
|
@@ -2493,7 +2489,7 @@ var MultiDatePickerMonth = ({
|
|
2493
2489
|
max
|
2494
2490
|
}
|
2495
2491
|
),
|
2496
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
2492
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react38.Box, { children: "-" }),
|
2497
2493
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
2498
2494
|
datepicker_month_default,
|
2499
2495
|
{
|
@@ -2516,7 +2512,7 @@ MultiDatePickerMonth.defaultProps = {
|
|
2516
2512
|
var multi_datepicker_month_default = MultiDatePickerMonth;
|
2517
2513
|
|
2518
2514
|
// src/components/dialog/components/dialog.tsx
|
2519
|
-
var
|
2515
|
+
var import_react40 = require("@chakra-ui/react");
|
2520
2516
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
2521
2517
|
var Dialog = ({
|
2522
2518
|
title,
|
@@ -2527,12 +2523,12 @@ var Dialog = ({
|
|
2527
2523
|
isOverlayClickable,
|
2528
2524
|
...props
|
2529
2525
|
}) => {
|
2530
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
2531
|
-
isModalOverlay && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
2532
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
2533
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
2534
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
2535
|
-
/* @__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 })
|
2536
2532
|
] })
|
2537
2533
|
] });
|
2538
2534
|
};
|
@@ -2544,15 +2540,15 @@ Dialog.defaultProps = {
|
|
2544
2540
|
var dialog_default = Dialog;
|
2545
2541
|
|
2546
2542
|
// src/components/header/components/header.tsx
|
2547
|
-
var
|
2543
|
+
var import_react45 = require("@chakra-ui/react");
|
2548
2544
|
|
2549
2545
|
// src/components/header/components/logo.tsx
|
2550
|
-
var
|
2546
|
+
var import_react41 = require("@chakra-ui/react");
|
2551
2547
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
2552
2548
|
var Logo = ({ url, imageUrl, height }) => {
|
2553
2549
|
if (url)
|
2554
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
2555
|
-
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 });
|
2556
2552
|
};
|
2557
2553
|
Logo.defaultProps = {
|
2558
2554
|
url: void 0,
|
@@ -2560,15 +2556,15 @@ Logo.defaultProps = {
|
|
2560
2556
|
};
|
2561
2557
|
|
2562
2558
|
// src/components/header/components/profile.tsx
|
2563
|
-
var
|
2559
|
+
var import_react42 = require("@chakra-ui/react");
|
2564
2560
|
var import_fi4 = require("react-icons/fi");
|
2565
2561
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
2566
2562
|
var Profile = ({ color, brandColor, data, onLogout }) => {
|
2567
2563
|
var _a;
|
2568
|
-
const { isOpen, onToggle, onClose } = (0,
|
2569
|
-
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: [
|
2570
2566
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2571
|
-
|
2567
|
+
import_react42.Box,
|
2572
2568
|
{
|
2573
2569
|
"data-test-id": "WE0UYbA93LOZy6S09IhDO",
|
2574
2570
|
as: "button",
|
@@ -2578,23 +2574,23 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
2578
2574
|
m: 0,
|
2579
2575
|
onClick: onToggle,
|
2580
2576
|
color,
|
2581
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
2582
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
2583
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2584
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
2585
|
-
(data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2586
|
-
/* @__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" }),
|
2587
2583
|
typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
2588
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2584
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react42.Text, { textStyle: "text.xs", children: data.office[0] }),
|
2589
2585
|
data.office.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(badge_default, { ml: "1", pill: true, variant: "neutral-light", children: [
|
2590
2586
|
data.office.length - 1,
|
2591
2587
|
"+"
|
2592
2588
|
] })
|
2593
|
-
] }) : /* @__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" })
|
2594
2590
|
] })
|
2595
2591
|
] }),
|
2596
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2597
|
-
|
2592
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react42.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2593
|
+
import_react42.Avatar,
|
2598
2594
|
{
|
2599
2595
|
size: "sm",
|
2600
2596
|
bg: brandColor,
|
@@ -2609,10 +2605,10 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
2609
2605
|
] })
|
2610
2606
|
}
|
2611
2607
|
),
|
2612
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
2613
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2614
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2615
|
-
|
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,
|
2616
2612
|
{
|
2617
2613
|
"data-test-id": "gA7F9pucPX_Q3_dkgXIYZ",
|
2618
2614
|
alignItems: "center",
|
@@ -2620,12 +2616,12 @@ var Profile = ({ color, brandColor, data, onLogout }) => {
|
|
2620
2616
|
py: 2,
|
2621
2617
|
borderRadius: "sm",
|
2622
2618
|
cursor: "pointer",
|
2623
|
-
_hover: { bg: (0,
|
2619
|
+
_hover: { bg: (0, import_react42.useColorModeValue)("primary.500", "mirage.900"), color: "white" },
|
2624
2620
|
onClick: onLogout,
|
2625
2621
|
textStyle: "text.xs",
|
2626
2622
|
children: [
|
2627
2623
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_fi4.FiPower, {}),
|
2628
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
2624
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react42.Text, { ml: 2, children: "Logout" })
|
2629
2625
|
]
|
2630
2626
|
}
|
2631
2627
|
) })
|
@@ -2641,17 +2637,17 @@ Profile.defaultProps = {
|
|
2641
2637
|
var profile_default = Profile;
|
2642
2638
|
|
2643
2639
|
// src/components/header/components/switch-mode.tsx
|
2644
|
-
var
|
2640
|
+
var import_react43 = require("@chakra-ui/react");
|
2645
2641
|
var import_fi5 = require("react-icons/fi");
|
2646
2642
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
2647
2643
|
var SwitchMode = () => {
|
2648
|
-
const { colorMode, toggleColorMode } = (0,
|
2649
|
-
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 }) });
|
2650
2646
|
};
|
2651
2647
|
var switch_mode_default = SwitchMode;
|
2652
2648
|
|
2653
2649
|
// src/components/header/components/version.tsx
|
2654
|
-
var
|
2650
|
+
var import_react44 = require("@chakra-ui/react");
|
2655
2651
|
|
2656
2652
|
// src/components/header/utils/formatter.ts
|
2657
2653
|
function environmentName(env) {
|
@@ -2680,7 +2676,7 @@ var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__P
|
|
2680
2676
|
}
|
2681
2677
|
),
|
2682
2678
|
!hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
2683
|
-
|
2679
|
+
import_react44.Box,
|
2684
2680
|
{
|
2685
2681
|
background: "primary.50",
|
2686
2682
|
color: "primary.500",
|
@@ -2719,12 +2715,12 @@ var Header = ({
|
|
2719
2715
|
profile,
|
2720
2716
|
bg = "white",
|
2721
2717
|
...props
|
2722
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
2723
|
-
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: [
|
2724
2720
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Logo, { url: urlLogo, imageUrl: mainLogo, height: mainLogoSize }),
|
2725
2721
|
children && children
|
2726
2722
|
] }),
|
2727
|
-
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: [
|
2728
2724
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Logo, { url: urlLogo, imageUrl: centerLogo, height: centerLogoSize }),
|
2729
2725
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
2730
2726
|
version_default,
|
@@ -2736,7 +2732,7 @@ var Header = ({
|
|
2736
2732
|
}
|
2737
2733
|
)
|
2738
2734
|
] }),
|
2739
|
-
profile || /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
2735
|
+
profile || /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react45.Flex, { alignItems: "center", children: [
|
2740
2736
|
!hideSwitchMode && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(switch_mode_default, {}),
|
2741
2737
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(profile_default, { color: props.color, brandColor, data, onLogout })
|
2742
2738
|
] })
|
@@ -2758,21 +2754,21 @@ Header.defaultProps = {
|
|
2758
2754
|
var header_default = Header;
|
2759
2755
|
|
2760
2756
|
// src/components/image/index.ts
|
2761
|
-
var
|
2757
|
+
var import_react46 = require("@chakra-ui/react");
|
2762
2758
|
|
2763
2759
|
// src/components/layouting/index.ts
|
2764
|
-
var
|
2760
|
+
var import_react47 = require("@chakra-ui/react");
|
2765
2761
|
|
2766
2762
|
// src/components/list/index.tsx
|
2767
|
-
var
|
2763
|
+
var import_react48 = require("@chakra-ui/react");
|
2768
2764
|
|
2769
2765
|
// src/components/modal/components/modal-back-button.tsx
|
2770
2766
|
var import_icons3 = require("@chakra-ui/icons");
|
2771
|
-
var
|
2767
|
+
var import_react49 = require("@chakra-ui/react");
|
2772
2768
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
2773
2769
|
var ModalBackButton = ({ onClick }) => {
|
2774
2770
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
2775
|
-
|
2771
|
+
import_react49.IconButton,
|
2776
2772
|
{
|
2777
2773
|
icon: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_icons3.ChevronLeftIcon, { w: "4.5", h: "4.5" }),
|
2778
2774
|
size: "sm",
|
@@ -2792,28 +2788,28 @@ var ModalBackButton = ({ onClick }) => {
|
|
2792
2788
|
var modal_back_button_default = ModalBackButton;
|
2793
2789
|
|
2794
2790
|
// src/components/modal/components/modal-body.tsx
|
2795
|
-
var
|
2796
|
-
var
|
2791
|
+
var import_react50 = require("@chakra-ui/react");
|
2792
|
+
var import_react51 = __toESM(require("react"));
|
2797
2793
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
2798
|
-
var ModalBody2 =
|
2799
|
-
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 });
|
2800
2796
|
});
|
2801
2797
|
var modal_body_default = ModalBody2;
|
2802
2798
|
|
2803
2799
|
// src/components/modal/components/modal-close-button.tsx
|
2804
|
-
var
|
2805
|
-
var
|
2800
|
+
var import_react52 = require("@chakra-ui/react");
|
2801
|
+
var import_react53 = require("react");
|
2806
2802
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
2807
|
-
var ModalCloseButton = (0,
|
2803
|
+
var ModalCloseButton = (0, import_react53.forwardRef)((props, ref) => {
|
2808
2804
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
2809
|
-
|
2805
|
+
import_react52.ModalCloseButton,
|
2810
2806
|
{
|
2811
2807
|
ref,
|
2812
2808
|
top: 2,
|
2813
2809
|
right: 2,
|
2814
2810
|
size: "sm",
|
2815
2811
|
"data-test-id": "modal-close-button",
|
2816
|
-
background: (0,
|
2812
|
+
background: (0, import_react52.useColorModeValue)("neutral.50", "mirage.900"),
|
2817
2813
|
...props
|
2818
2814
|
}
|
2819
2815
|
);
|
@@ -2821,15 +2817,15 @@ var ModalCloseButton = (0, import_react54.forwardRef)((props, ref) => {
|
|
2821
2817
|
var modal_close_button_default = ModalCloseButton;
|
2822
2818
|
|
2823
2819
|
// src/components/modal/components/modal-footer.tsx
|
2824
|
-
var
|
2825
|
-
var
|
2820
|
+
var import_react54 = require("@chakra-ui/react");
|
2821
|
+
var import_react55 = require("react");
|
2826
2822
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
2827
|
-
var ModalFooter2 = (0,
|
2823
|
+
var ModalFooter2 = (0, import_react55.forwardRef)(({ children, ...rest }, ref) => {
|
2828
2824
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
2829
|
-
|
2825
|
+
import_react54.ModalFooter,
|
2830
2826
|
{
|
2831
2827
|
ref,
|
2832
|
-
background: (0,
|
2828
|
+
background: (0, import_react54.useColorModeValue)("neutral.200", "mirage.900"),
|
2833
2829
|
borderBottomRadius: "sm",
|
2834
2830
|
...rest,
|
2835
2831
|
children
|
@@ -2839,15 +2835,15 @@ var ModalFooter2 = (0, import_react56.forwardRef)(({ children, ...rest }, ref) =
|
|
2839
2835
|
var modal_footer_default = ModalFooter2;
|
2840
2836
|
|
2841
2837
|
// src/components/modal/components/modal-header.tsx
|
2842
|
-
var
|
2843
|
-
var
|
2838
|
+
var import_react56 = require("@chakra-ui/react");
|
2839
|
+
var import_react57 = require("react");
|
2844
2840
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
2845
|
-
var ModalHeader2 = (0,
|
2841
|
+
var ModalHeader2 = (0, import_react57.forwardRef)(({ children, ...rest }, ref) => {
|
2846
2842
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
2847
|
-
|
2843
|
+
import_react56.ModalHeader,
|
2848
2844
|
{
|
2849
2845
|
ref,
|
2850
|
-
background: (0,
|
2846
|
+
background: (0, import_react56.useColorModeValue)("neutral.200", "mirage.900"),
|
2851
2847
|
borderTopRadius: "sm",
|
2852
2848
|
fontSize: "text.lg",
|
2853
2849
|
fontWeight: "400",
|
@@ -2861,12 +2857,12 @@ var ModalHeader2 = (0, import_react58.forwardRef)(({ children, ...rest }, ref) =
|
|
2861
2857
|
var modal_header_default = ModalHeader2;
|
2862
2858
|
|
2863
2859
|
// src/components/modal/index.ts
|
2864
|
-
var
|
2860
|
+
var import_react58 = require("@chakra-ui/react");
|
2865
2861
|
|
2866
2862
|
// src/components/navigation/components/navigation.tsx
|
2867
|
-
var
|
2863
|
+
var import_react59 = require("@chakra-ui/react");
|
2868
2864
|
var Icon3 = __toESM(require("@ctlyst.id/internal-icon"));
|
2869
|
-
var
|
2865
|
+
var import_react60 = require("@emotion/react");
|
2870
2866
|
|
2871
2867
|
// src/components/navigation/components/mapping-icon.tsx
|
2872
2868
|
var Icon2 = __toESM(require("@ctlyst.id/internal-icon"));
|
@@ -2889,8 +2885,8 @@ var mappingIcon = /* @__PURE__ */ new Map([
|
|
2889
2885
|
// src/components/navigation/components/navigation.tsx
|
2890
2886
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
2891
2887
|
var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
2892
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2893
|
-
|
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,
|
2894
2890
|
{
|
2895
2891
|
bg: "white",
|
2896
2892
|
w: "full",
|
@@ -2904,9 +2900,9 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2904
2900
|
children: navigations == null ? void 0 : navigations.map((navigation) => {
|
2905
2901
|
const isActive = activePath.startsWith(navigation.navLink || "");
|
2906
2902
|
const activeBg = isActive ? "primary.500" : void 0;
|
2907
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2908
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2909
|
-
|
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,
|
2910
2906
|
{
|
2911
2907
|
h: 7.5,
|
2912
2908
|
p: 2,
|
@@ -2923,10 +2919,10 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2923
2919
|
children: navigation.title
|
2924
2920
|
}
|
2925
2921
|
) }),
|
2926
|
-
navigation.children && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2927
|
-
|
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,
|
2928
2924
|
{
|
2929
|
-
bg: (0,
|
2925
|
+
bg: (0, import_react59.useColorModeValue)("white", "ebony-clay.800"),
|
2930
2926
|
maxW: 250,
|
2931
2927
|
border: "none",
|
2932
2928
|
borderRadius: "md",
|
@@ -2936,7 +2932,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2936
2932
|
const isLocalLink = host === navHost;
|
2937
2933
|
const isActiveSub = activePath === navLink;
|
2938
2934
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2939
|
-
|
2935
|
+
import_react59.Link,
|
2940
2936
|
{
|
2941
2937
|
as: isLocalLink ? as : void 0,
|
2942
2938
|
href: link,
|
@@ -2944,7 +2940,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2944
2940
|
textDecoration: "none"
|
2945
2941
|
},
|
2946
2942
|
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
2947
|
-
|
2943
|
+
import_react59.Box,
|
2948
2944
|
{
|
2949
2945
|
display: "flex",
|
2950
2946
|
position: "relative",
|
@@ -2952,24 +2948,24 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2952
2948
|
cursor: "pointer",
|
2953
2949
|
transition: "padding 0.35s ease 0s",
|
2954
2950
|
_hover: {
|
2955
|
-
backgroundColor: (0,
|
2956
|
-
color: (0,
|
2951
|
+
backgroundColor: (0, import_react59.useColorModeValue)("dove-gray.50", "mirage.900"),
|
2952
|
+
color: (0, import_react59.useColorModeValue)("primary.500", "dove-gray.600"),
|
2957
2953
|
px: 5,
|
2958
2954
|
py: 4,
|
2959
2955
|
_first: { borderTopRadius: "md" },
|
2960
2956
|
_last: { borderBottomRadius: "md" }
|
2961
2957
|
},
|
2962
2958
|
color: isActiveSub ? "primary.500" : "inherit",
|
2963
|
-
css:
|
2959
|
+
css: import_react60.css`
|
2964
2960
|
border-spacing: 4px;
|
2965
2961
|
`,
|
2966
2962
|
px: 6,
|
2967
2963
|
py: 4,
|
2968
2964
|
children: [
|
2969
2965
|
mappingIcon.get(navigation.title),
|
2970
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2966
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react59.Text, { fontSize: "text.sm", ml: 3, children: title }),
|
2971
2967
|
isActiveSub && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
2972
|
-
|
2968
|
+
import_react59.Box,
|
2973
2969
|
{
|
2974
2970
|
width: 0.5,
|
2975
2971
|
height: 8,
|
@@ -3002,7 +2998,7 @@ Navigation.defaultProps = {
|
|
3002
2998
|
var navigation_default = Navigation;
|
3003
2999
|
|
3004
3000
|
// src/components/navigation/components/navigation-bar.tsx
|
3005
|
-
var
|
3001
|
+
var import_react61 = require("@chakra-ui/react");
|
3006
3002
|
var Icon4 = __toESM(require("@ctlyst.id/internal-icon"));
|
3007
3003
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
3008
3004
|
var NavigationBar = ({
|
@@ -3019,8 +3015,8 @@ var NavigationBar = ({
|
|
3019
3015
|
}
|
3020
3016
|
return subMenu.navHost + subMenu.navLink;
|
3021
3017
|
};
|
3022
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3023
|
-
|
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,
|
3024
3020
|
{
|
3025
3021
|
bg: "white",
|
3026
3022
|
w: "full",
|
@@ -3036,9 +3032,9 @@ var NavigationBar = ({
|
|
3036
3032
|
const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
|
3037
3033
|
const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
|
3038
3034
|
const activeBg = isActive ? "primary.500" : void 0;
|
3039
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3040
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3041
|
-
|
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,
|
3042
3038
|
{
|
3043
3039
|
h: 7.5,
|
3044
3040
|
p: 2,
|
@@ -3055,8 +3051,8 @@ var NavigationBar = ({
|
|
3055
3051
|
children: item.title
|
3056
3052
|
}
|
3057
3053
|
) }),
|
3058
|
-
item.children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3059
|
-
|
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,
|
3060
3056
|
{
|
3061
3057
|
href: urlMenu(subMenu),
|
3062
3058
|
display: "flex",
|
@@ -3073,7 +3069,7 @@ var NavigationBar = ({
|
|
3073
3069
|
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
3074
3070
|
children: [
|
3075
3071
|
mappingIcon2.get(item.title),
|
3076
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3072
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react61.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
3077
3073
|
]
|
3078
3074
|
},
|
3079
3075
|
subMenu.id
|
@@ -3090,18 +3086,18 @@ var navigation_bar_default = NavigationBar;
|
|
3090
3086
|
|
3091
3087
|
// src/components/pagination/components/pagination.tsx
|
3092
3088
|
var import_icons4 = require("@chakra-ui/icons");
|
3093
|
-
var
|
3089
|
+
var import_react64 = require("@chakra-ui/react");
|
3094
3090
|
|
3095
3091
|
// src/components/pagination/components/pagination-button.tsx
|
3096
|
-
var
|
3092
|
+
var import_react62 = require("@chakra-ui/react");
|
3097
3093
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
3098
|
-
var PaginationButton = (0,
|
3099
|
-
const btnBg = (0,
|
3100
|
-
const btnColor = (0,
|
3101
|
-
const btnNotActiveBg = (0,
|
3102
|
-
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");
|
3103
3099
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3104
|
-
|
3100
|
+
import_react62.Button,
|
3105
3101
|
{
|
3106
3102
|
"data-test-id": "Pagination-Button",
|
3107
3103
|
ref,
|
@@ -3122,7 +3118,7 @@ var PaginationButton = (0, import_react63.forwardRef)(({ className, style, isAct
|
|
3122
3118
|
color: btnNotActiveColor
|
3123
3119
|
} : {},
|
3124
3120
|
_disabled: {
|
3125
|
-
background: (0,
|
3121
|
+
background: (0, import_react62.useColorModeValue)("neutral.300", "mirage.900"),
|
3126
3122
|
color: "neutral.600",
|
3127
3123
|
pointerEvents: "none"
|
3128
3124
|
},
|
@@ -3138,7 +3134,7 @@ PaginationButton.defaultProps = {
|
|
3138
3134
|
var pagination_button_default = PaginationButton;
|
3139
3135
|
|
3140
3136
|
// src/components/pagination/components/pagination-button-trigger.tsx
|
3141
|
-
var
|
3137
|
+
var import_react63 = require("@chakra-ui/react");
|
3142
3138
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
3143
3139
|
var PaginationButtonTrigger = ({
|
3144
3140
|
color,
|
@@ -3147,7 +3143,7 @@ var PaginationButtonTrigger = ({
|
|
3147
3143
|
visuallyHidden,
|
3148
3144
|
icon
|
3149
3145
|
}) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(pagination_button_default, { "data-test-id": "DLVCc_fBK35spHm5WxjcJ", color, isDisabled, onClick, children: [
|
3150
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
3146
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react63.VisuallyHidden, { children: visuallyHidden }),
|
3151
3147
|
icon
|
3152
3148
|
] });
|
3153
3149
|
PaginationButtonTrigger.defaultProps = {
|
@@ -3162,8 +3158,8 @@ var pagination_button_trigger_default = PaginationButtonTrigger;
|
|
3162
3158
|
// src/components/pagination/components/pagination.tsx
|
3163
3159
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
3164
3160
|
var Pagination = ({ className, current, total, onSelect }) => {
|
3165
|
-
const btnColorDisabled = (0,
|
3166
|
-
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");
|
3167
3163
|
const disabledPrevious = current === 1;
|
3168
3164
|
const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;
|
3169
3165
|
const disabledNext = current === total;
|
@@ -3190,8 +3186,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3190
3186
|
}
|
3191
3187
|
return pageButtons;
|
3192
3188
|
};
|
3193
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
3194
|
-
/* @__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)(
|
3195
3191
|
pagination_button_trigger_default,
|
3196
3192
|
{
|
3197
3193
|
"data-test-id": "Pagination-Button",
|
@@ -3202,7 +3198,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3202
3198
|
icon: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_icons4.ArrowLeftIcon, { width: 2 })
|
3203
3199
|
}
|
3204
3200
|
) }),
|
3205
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
3201
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_react64.Box, { bg: "neutral.300", borderRadius: "full", children: [
|
3206
3202
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
3207
3203
|
pagination_button_trigger_default,
|
3208
3204
|
{
|
@@ -3221,7 +3217,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3221
3217
|
"data-test-id": "Pagination-Button",
|
3222
3218
|
isActive: page === current,
|
3223
3219
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
3224
|
-
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 })
|
3225
3221
|
},
|
3226
3222
|
page
|
3227
3223
|
);
|
@@ -3238,7 +3234,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3238
3234
|
}
|
3239
3235
|
)
|
3240
3236
|
] }),
|
3241
|
-
/* @__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)(
|
3242
3238
|
pagination_button_trigger_default,
|
3243
3239
|
{
|
3244
3240
|
"data-test-id": "Pagination-Button",
|
@@ -3259,7 +3255,7 @@ Pagination.displayName = "Pagination";
|
|
3259
3255
|
var pagination_default = Pagination;
|
3260
3256
|
|
3261
3257
|
// src/components/pagination/components/pagination-detail.tsx
|
3262
|
-
var
|
3258
|
+
var import_react65 = require("@chakra-ui/react");
|
3263
3259
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
3264
3260
|
var PaginationDetail = ({
|
3265
3261
|
page,
|
@@ -3270,12 +3266,12 @@ var PaginationDetail = ({
|
|
3270
3266
|
lineHeight = 18,
|
3271
3267
|
...rest
|
3272
3268
|
}) => {
|
3273
|
-
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` });
|
3274
3270
|
};
|
3275
3271
|
var pagination_detail_default = PaginationDetail;
|
3276
3272
|
|
3277
3273
|
// src/components/pagination/components/pagination-filter.tsx
|
3278
|
-
var
|
3274
|
+
var import_react66 = require("@chakra-ui/react");
|
3279
3275
|
var React13 = __toESM(require("react"));
|
3280
3276
|
var import_fi6 = require("react-icons/fi");
|
3281
3277
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
@@ -3287,10 +3283,10 @@ var PaginationFilter = ({
|
|
3287
3283
|
...rest
|
3288
3284
|
}) => {
|
3289
3285
|
const [value, setValue] = React13.useState(limit);
|
3290
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
3291
|
-
/* @__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 }),
|
3292
3288
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
3293
|
-
|
3289
|
+
import_react66.Select,
|
3294
3290
|
{
|
3295
3291
|
textAlign: "center",
|
3296
3292
|
size: "xs",
|
@@ -3320,10 +3316,10 @@ PaginationFilter.defaultProps = {
|
|
3320
3316
|
var pagination_filter_default = PaginationFilter;
|
3321
3317
|
|
3322
3318
|
// src/components/popover/index.ts
|
3323
|
-
var
|
3319
|
+
var import_react67 = require("@chakra-ui/react");
|
3324
3320
|
|
3325
3321
|
// src/components/radio/components/radio.tsx
|
3326
|
-
var
|
3322
|
+
var import_react68 = require("@chakra-ui/react");
|
3327
3323
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
3328
3324
|
var Radio = ({
|
3329
3325
|
isError = false,
|
@@ -3334,9 +3330,9 @@ var Radio = ({
|
|
3334
3330
|
...rest
|
3335
3331
|
}) => {
|
3336
3332
|
const variant = isError ? "errors" : "unstyled";
|
3337
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
3338
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
3339
|
-
/* @__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 }) })
|
3340
3336
|
] });
|
3341
3337
|
};
|
3342
3338
|
Radio.displayName = "Radio";
|
@@ -3347,7 +3343,7 @@ Radio.defaultProps = {
|
|
3347
3343
|
};
|
3348
3344
|
|
3349
3345
|
// src/components/radio/components/radio-group.tsx
|
3350
|
-
var
|
3346
|
+
var import_react69 = require("@chakra-ui/react");
|
3351
3347
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
3352
3348
|
var RadioGroup = ({
|
3353
3349
|
children,
|
@@ -3357,7 +3353,7 @@ var RadioGroup = ({
|
|
3357
3353
|
errorMessage,
|
3358
3354
|
...props
|
3359
3355
|
}) => {
|
3360
|
-
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 }) }) }) });
|
3361
3357
|
};
|
3362
3358
|
RadioGroup.displayName = "RadioGroup";
|
3363
3359
|
RadioGroup.defaultProps = {
|
@@ -3367,14 +3363,14 @@ RadioGroup.defaultProps = {
|
|
3367
3363
|
};
|
3368
3364
|
|
3369
3365
|
// src/components/radio/index.ts
|
3370
|
-
var
|
3366
|
+
var import_react70 = require("@chakra-ui/react");
|
3371
3367
|
|
3372
3368
|
// src/components/rating/components/rating.tsx
|
3373
|
-
var
|
3369
|
+
var import_react71 = require("@chakra-ui/react");
|
3374
3370
|
var import_internal_icon6 = require("@ctlyst.id/internal-icon");
|
3375
3371
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
3376
3372
|
var Rating = ({ value }) => {
|
3377
|
-
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 })) });
|
3378
3374
|
};
|
3379
3375
|
var rating_default = Rating;
|
3380
3376
|
|
@@ -3383,16 +3379,16 @@ var import_system7 = require("@chakra-ui/system");
|
|
3383
3379
|
var import_react_select = __toESM(require("react-select"));
|
3384
3380
|
|
3385
3381
|
// src/config/theme/foundations/shadows.ts
|
3386
|
-
var
|
3382
|
+
var import_react72 = require("@chakra-ui/react");
|
3387
3383
|
var shadows = {
|
3388
|
-
...
|
3384
|
+
...import_react72.theme.shadows,
|
3389
3385
|
raised: "0px 4px 20px rgba(0, 0, 0, 0.05)"
|
3390
3386
|
};
|
3391
3387
|
|
3392
3388
|
// src/config/theme/foundations/sizes.ts
|
3393
|
-
var
|
3389
|
+
var import_react73 = require("@chakra-ui/react");
|
3394
3390
|
var sizes = {
|
3395
|
-
...
|
3391
|
+
...import_react73.theme.sizes,
|
3396
3392
|
4.5: "1.125rem",
|
3397
3393
|
9.5: "2.375rem",
|
3398
3394
|
18: "4.5rem",
|
@@ -3402,9 +3398,9 @@ var sizes = {
|
|
3402
3398
|
};
|
3403
3399
|
|
3404
3400
|
// src/config/theme/foundations/spacing.ts
|
3405
|
-
var
|
3401
|
+
var import_react74 = require("@chakra-ui/react");
|
3406
3402
|
var spacing = {
|
3407
|
-
...
|
3403
|
+
...import_react74.theme.space,
|
3408
3404
|
4.5: "1.125rem",
|
3409
3405
|
9.5: "2.375rem",
|
3410
3406
|
18: "4.5rem",
|
@@ -3782,16 +3778,16 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
3782
3778
|
}
|
3783
3779
|
|
3784
3780
|
// src/components/switch/components/switch.tsx
|
3785
|
-
var
|
3781
|
+
var import_react75 = require("@chakra-ui/react");
|
3786
3782
|
var import_shared_utils9 = require("@chakra-ui/shared-utils");
|
3787
3783
|
var import_internal_icon7 = require("@ctlyst.id/internal-icon");
|
3788
|
-
var
|
3784
|
+
var import_react76 = require("react");
|
3789
3785
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
3790
|
-
var Switch = (0,
|
3791
|
-
const styles = (0,
|
3792
|
-
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0,
|
3793
|
-
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0,
|
3794
|
-
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)(
|
3795
3791
|
() => ({
|
3796
3792
|
display: "inline-block",
|
3797
3793
|
position: "relative",
|
@@ -3801,7 +3797,7 @@ var Switch = (0, import_react76.forwardRef)(function Switch2(props, ref) {
|
|
3801
3797
|
}),
|
3802
3798
|
[styles.container]
|
3803
3799
|
);
|
3804
|
-
const trackStyles = (0,
|
3800
|
+
const trackStyles = (0, import_react76.useMemo)(
|
3805
3801
|
() => ({
|
3806
3802
|
display: "inline-flex",
|
3807
3803
|
flexShrink: 0,
|
@@ -3813,7 +3809,7 @@ var Switch = (0, import_react76.forwardRef)(function Switch2(props, ref) {
|
|
3813
3809
|
}),
|
3814
3810
|
[styles.track]
|
3815
3811
|
);
|
3816
|
-
const labelStyles = (0,
|
3812
|
+
const labelStyles = (0, import_react76.useMemo)(
|
3817
3813
|
() => ({
|
3818
3814
|
userSelect: "none",
|
3819
3815
|
marginStart: spacing2,
|
@@ -3830,7 +3826,7 @@ var Switch = (0, import_react76.forwardRef)(function Switch2(props, ref) {
|
|
3830
3826
|
return iconSize[value];
|
3831
3827
|
};
|
3832
3828
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
3833
|
-
|
3829
|
+
import_react75.chakra.label,
|
3834
3830
|
{
|
3835
3831
|
...getRootProps(),
|
3836
3832
|
display: "flex",
|
@@ -3839,13 +3835,13 @@ var Switch = (0, import_react76.forwardRef)(function Switch2(props, ref) {
|
|
3839
3835
|
__css: containerStyles,
|
3840
3836
|
children: [
|
3841
3837
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
3842
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
3843
|
-
/* @__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: [
|
3844
3840
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_internal_icon7.Check, { color: "white", size: getIconSize(props.size) }),
|
3845
3841
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_internal_icon7.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
3846
3842
|
] }),
|
3847
3843
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3848
|
-
|
3844
|
+
import_react75.chakra.span,
|
3849
3845
|
{
|
3850
3846
|
__css: styles.thumb,
|
3851
3847
|
className: "chakra-switch__thumb",
|
@@ -3855,7 +3851,7 @@ var Switch = (0, import_react76.forwardRef)(function Switch2(props, ref) {
|
|
3855
3851
|
)
|
3856
3852
|
] }),
|
3857
3853
|
children && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3858
|
-
|
3854
|
+
import_react75.chakra.span,
|
3859
3855
|
{
|
3860
3856
|
className: "chakra-switch__label",
|
3861
3857
|
color: state.isDisabled ? "black.low" : "black.high",
|
@@ -3874,18 +3870,18 @@ Switch.defaultProps = {
|
|
3874
3870
|
var switch_default = Switch;
|
3875
3871
|
|
3876
3872
|
// src/components/table/index.tsx
|
3877
|
-
var
|
3873
|
+
var import_react77 = require("@chakra-ui/react");
|
3878
3874
|
|
3879
3875
|
// src/components/tabs/components/tab.tsx
|
3880
|
-
var
|
3876
|
+
var import_react78 = require("@chakra-ui/react");
|
3881
3877
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
3882
|
-
var Tab = (0,
|
3878
|
+
var Tab = (0, import_react78.forwardRef)((props, ref) => {
|
3883
3879
|
var _a, _b;
|
3884
|
-
const tabProps = (0,
|
3880
|
+
const tabProps = (0, import_react78.useTab)({ ...props, ref });
|
3885
3881
|
const isSelected = !!tabProps["aria-selected"];
|
3886
|
-
const styles = (0,
|
3882
|
+
const styles = (0, import_react78.useMultiStyleConfig)("Tabs", tabProps);
|
3887
3883
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3888
|
-
|
3884
|
+
import_react78.Button,
|
3889
3885
|
{
|
3890
3886
|
"data-test-id": props["data-test-id"],
|
3891
3887
|
p: 4,
|
@@ -3910,7 +3906,7 @@ var Tab = (0, import_react79.forwardRef)((props, ref) => {
|
|
3910
3906
|
},
|
3911
3907
|
__css: styles.tab,
|
3912
3908
|
...tabProps,
|
3913
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
3909
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react78.Flex, { alignItems: "center", children: [
|
3914
3910
|
(_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
|
3915
3911
|
tabProps.children,
|
3916
3912
|
(_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
|
@@ -3921,16 +3917,16 @@ var Tab = (0, import_react79.forwardRef)((props, ref) => {
|
|
3921
3917
|
var tab_default = Tab;
|
3922
3918
|
|
3923
3919
|
// src/components/tabs/index.ts
|
3924
|
-
var
|
3920
|
+
var import_react79 = require("@chakra-ui/react");
|
3925
3921
|
|
3926
3922
|
// src/components/text/index.ts
|
3927
|
-
var
|
3923
|
+
var import_react80 = require("@chakra-ui/react");
|
3928
3924
|
|
3929
3925
|
// src/components/tooltip/index.ts
|
3930
|
-
var
|
3926
|
+
var import_react81 = require("@chakra-ui/react");
|
3931
3927
|
|
3932
3928
|
// src/components/uploader/components/uploader.tsx
|
3933
|
-
var
|
3929
|
+
var import_react82 = require("@chakra-ui/react");
|
3934
3930
|
var React15 = __toESM(require("react"));
|
3935
3931
|
var import_react_dropzone = require("react-dropzone");
|
3936
3932
|
|
@@ -3992,9 +3988,9 @@ var Uploader = ({
|
|
3992
3988
|
React15.useEffect(() => {
|
3993
3989
|
setIsSelected(selected != null ? selected : false);
|
3994
3990
|
}, [selected]);
|
3995
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
3991
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react82.Stack, { direction: "column", children: [
|
3996
3992
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
3997
|
-
|
3993
|
+
import_react82.Flex,
|
3998
3994
|
{
|
3999
3995
|
minH: 200,
|
4000
3996
|
border: "1px dashed",
|
@@ -4006,10 +4002,10 @@ var Uploader = ({
|
|
4006
4002
|
...getRootProps(),
|
4007
4003
|
children: [
|
4008
4004
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("input", { ...getInputProps() }),
|
4009
|
-
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4010
|
-
!multiple && isSelected && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4011
|
-
!isSelected && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4012
|
-
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 })
|
4013
4009
|
] })
|
4014
4010
|
]
|
4015
4011
|
}
|
@@ -4026,10 +4022,10 @@ Uploader.defaultProps = {
|
|
4026
4022
|
var uploader_default = Uploader;
|
4027
4023
|
|
4028
4024
|
// src/components/index.ts
|
4029
|
-
var
|
4025
|
+
var import_react83 = require("@chakra-ui/react");
|
4030
4026
|
|
4031
4027
|
// src/config/theme/themeConfiguration.ts
|
4032
|
-
var
|
4028
|
+
var import_react89 = require("@chakra-ui/react");
|
4033
4029
|
|
4034
4030
|
// src/config/theme/components/index.ts
|
4035
4031
|
var components_exports = {};
|
@@ -4571,8 +4567,8 @@ var card_default2 = CardStyle;
|
|
4571
4567
|
|
4572
4568
|
// src/config/theme/components/checkbox.ts
|
4573
4569
|
var import_anatomy3 = require("@chakra-ui/anatomy");
|
4574
|
-
var
|
4575
|
-
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);
|
4576
4572
|
var baseStyle3 = definePartsStyle3({
|
4577
4573
|
control: {
|
4578
4574
|
borderRadius: "sm",
|
@@ -4788,7 +4784,7 @@ var size = {
|
|
4788
4784
|
}),
|
4789
4785
|
sm: (0, import_styled_system7.defineStyle)({
|
4790
4786
|
fontSize: "text.sm",
|
4791
|
-
h: 9,
|
4787
|
+
h: 9.5,
|
4792
4788
|
borderRadius: "sm"
|
4793
4789
|
})
|
4794
4790
|
};
|
@@ -4812,6 +4808,9 @@ var outline = definePartsStyle4((props) => {
|
|
4812
4808
|
outline: 0,
|
4813
4809
|
bg: (0, import_theme_tools.mode)("white", "inherit")(props),
|
4814
4810
|
color: (0, import_theme_tools.mode)("inherit", "white")(props),
|
4811
|
+
_hover: {
|
4812
|
+
borderColor: (0, import_theme_tools.mode)("neutral.400", "inherit")(props)
|
4813
|
+
},
|
4815
4814
|
_invalid: {
|
4816
4815
|
boxShadow: "none"
|
4817
4816
|
},
|
@@ -4840,7 +4839,7 @@ var variants3 = {
|
|
4840
4839
|
outline,
|
4841
4840
|
unstyled: unstyled2
|
4842
4841
|
};
|
4843
|
-
var
|
4842
|
+
var Input3 = defineMultiStyleConfig4({
|
4844
4843
|
baseStyle: baseStyle5,
|
4845
4844
|
sizes: sizes2,
|
4846
4845
|
variants: variants3,
|
@@ -4849,12 +4848,12 @@ var Input4 = defineMultiStyleConfig4({
|
|
4849
4848
|
variant: "outline"
|
4850
4849
|
}
|
4851
4850
|
});
|
4852
|
-
var input_default =
|
4851
|
+
var input_default = Input3;
|
4853
4852
|
|
4854
4853
|
// src/config/theme/components/loader.ts
|
4855
4854
|
var import_styled_system8 = require("@chakra-ui/styled-system");
|
4856
|
-
var
|
4857
|
-
var rotate = (0,
|
4855
|
+
var import_react85 = require("@emotion/react");
|
4856
|
+
var rotate = (0, import_react85.keyframes)({
|
4858
4857
|
"0%": {
|
4859
4858
|
transform: "rotate(0deg)"
|
4860
4859
|
},
|
@@ -4984,8 +4983,8 @@ var modal_default = Modal3;
|
|
4984
4983
|
|
4985
4984
|
// src/config/theme/components/radio.ts
|
4986
4985
|
var import_anatomy5 = require("@chakra-ui/anatomy");
|
4987
|
-
var
|
4988
|
-
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);
|
4989
4988
|
var baseStyle6 = definePartsStyle5({
|
4990
4989
|
control: {
|
4991
4990
|
border: "1px solid",
|
@@ -5413,7 +5412,7 @@ var tabsTheme = defineMultiStyleConfig8({
|
|
5413
5412
|
var tabs_default = tabsTheme;
|
5414
5413
|
|
5415
5414
|
// src/config/theme/components/textarea.ts
|
5416
|
-
var
|
5415
|
+
var import_react87 = require("@chakra-ui/react");
|
5417
5416
|
var getProps = (props) => {
|
5418
5417
|
const { isError, isSuccess, isDisabled } = props;
|
5419
5418
|
let borderColor = "neutral.400";
|
@@ -5433,7 +5432,7 @@ var getProps = (props) => {
|
|
5433
5432
|
borderColor
|
5434
5433
|
};
|
5435
5434
|
};
|
5436
|
-
var outline2 = (0,
|
5435
|
+
var outline2 = (0, import_react87.defineStyle)((props) => {
|
5437
5436
|
const { focusBorderColor, borderColor } = getProps(props);
|
5438
5437
|
return {
|
5439
5438
|
background: "white.high",
|
@@ -5477,7 +5476,7 @@ var outline2 = (0, import_react88.defineStyle)((props) => {
|
|
5477
5476
|
}
|
5478
5477
|
};
|
5479
5478
|
});
|
5480
|
-
var Textarea = (0,
|
5479
|
+
var Textarea = (0, import_react87.defineStyleConfig)({
|
5481
5480
|
variants: { outline: outline2 },
|
5482
5481
|
defaultProps: {
|
5483
5482
|
variant: "outline"
|
@@ -5486,14 +5485,14 @@ var Textarea = (0, import_react88.defineStyleConfig)({
|
|
5486
5485
|
var textarea_default2 = Textarea;
|
5487
5486
|
|
5488
5487
|
// src/config/theme/components/tooltip.ts
|
5489
|
-
var
|
5490
|
-
var $arrowBg = (0,
|
5488
|
+
var import_react88 = require("@chakra-ui/react");
|
5489
|
+
var $arrowBg = (0, import_react88.cssVar)("popper-arrow-bg");
|
5491
5490
|
var baseStyle9 = {
|
5492
5491
|
bg: "neutral.700",
|
5493
5492
|
fontSize: "text.sm",
|
5494
5493
|
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
5495
5494
|
};
|
5496
|
-
var Tooltip2 = (0,
|
5495
|
+
var Tooltip2 = (0, import_react88.defineStyleConfig)({ baseStyle: baseStyle9 });
|
5497
5496
|
var tooltip_default = Tooltip2;
|
5498
5497
|
|
5499
5498
|
// src/config/theme/themeConfiguration.ts
|
@@ -5503,7 +5502,7 @@ var config = {
|
|
5503
5502
|
useSystemColorMode: false
|
5504
5503
|
};
|
5505
5504
|
var getTheme = (foundations) => {
|
5506
|
-
return (0,
|
5505
|
+
return (0, import_react89.extendTheme)({
|
5507
5506
|
...foundations,
|
5508
5507
|
components: {
|
5509
5508
|
...components_exports
|
@@ -5519,7 +5518,7 @@ var getTheme = (foundations) => {
|
|
5519
5518
|
config
|
5520
5519
|
});
|
5521
5520
|
};
|
5522
|
-
var theme5 = (0,
|
5521
|
+
var theme5 = (0, import_react89.extendTheme)({
|
5523
5522
|
components: {
|
5524
5523
|
...components_exports
|
5525
5524
|
},
|
@@ -5539,23 +5538,23 @@ var theme5 = (0, import_react90.extendTheme)({
|
|
5539
5538
|
|
5540
5539
|
// src/hooks/useFetcher.ts
|
5541
5540
|
var import_axios2 = __toESM(require("axios"));
|
5542
|
-
var
|
5541
|
+
var import_react92 = require("react");
|
5543
5542
|
|
5544
5543
|
// src/provider/components/provider.tsx
|
5545
5544
|
var import_axios = __toESM(require("axios"));
|
5546
|
-
var
|
5545
|
+
var import_react90 = require("react");
|
5547
5546
|
var import_react_toastify = require("react-toastify");
|
5548
5547
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
5549
|
-
var ProviderContext = (0,
|
5548
|
+
var ProviderContext = (0, import_react90.createContext)({
|
5550
5549
|
instance: void 0
|
5551
5550
|
});
|
5552
5551
|
var useInternalUI = () => {
|
5553
|
-
const { instance } = (0,
|
5552
|
+
const { instance } = (0, import_react90.useContext)(ProviderContext);
|
5554
5553
|
return { instance };
|
5555
5554
|
};
|
5556
5555
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
5557
|
-
const instanceRef = (0,
|
5558
|
-
(0,
|
5556
|
+
const instanceRef = (0, import_react90.useRef)(import_axios.default.create(config2));
|
5557
|
+
(0, import_react90.useEffect)(() => {
|
5559
5558
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
5560
5559
|
instanceRef.current.interceptors.request.use(interceptor);
|
5561
5560
|
});
|
@@ -5563,7 +5562,7 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
5563
5562
|
instanceRef.current.interceptors.response.use(interceptor);
|
5564
5563
|
});
|
5565
5564
|
}, [requestInterceptors, responseInterceptors]);
|
5566
|
-
const provider = (0,
|
5565
|
+
const provider = (0, import_react90.useMemo)(() => ({ instance: instanceRef.current }), []);
|
5567
5566
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(ProviderContext.Provider, { value: provider, children: [
|
5568
5567
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_toastify.ToastContainer, {}),
|
5569
5568
|
children
|
@@ -5573,12 +5572,12 @@ Provider.displayName = "Provider";
|
|
5573
5572
|
var provider_default = Provider;
|
5574
5573
|
|
5575
5574
|
// src/provider/index.ts
|
5576
|
-
var
|
5575
|
+
var import_react91 = require("@chakra-ui/react");
|
5577
5576
|
|
5578
5577
|
// src/hooks/useFetcher.ts
|
5579
5578
|
function useFetcher() {
|
5580
5579
|
const { instance } = useInternalUI();
|
5581
|
-
const axiosInstance = (0,
|
5580
|
+
const axiosInstance = (0, import_react92.useMemo)(() => instance || import_axios2.default, [instance]);
|
5582
5581
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
5583
5582
|
const response = await axiosInstance.request({
|
5584
5583
|
data,
|
@@ -5598,10 +5597,10 @@ function useFetcher() {
|
|
5598
5597
|
}
|
5599
5598
|
|
5600
5599
|
// src/hooks/index.ts
|
5601
|
-
var
|
5600
|
+
var import_react93 = require("@chakra-ui/react");
|
5602
5601
|
|
5603
5602
|
// src/index.ts
|
5604
|
-
var
|
5603
|
+
var import_react94 = require("@chakra-ui/react");
|
5605
5604
|
// Annotate the CommonJS export names for ESM import in node:
|
5606
5605
|
0 && (module.exports = {
|
5607
5606
|
Accordion,
|