@ctlyst.id/internal-ui 2.1.20 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +42 -1
- package/dist/index.d.ts +42 -1
- package/dist/index.js +567 -354
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +333 -124
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
@@ -59,12 +59,12 @@ __export(src_exports, {
|
|
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_react85.Avatar,
|
63
|
+
AvatarBadge: () => import_react85.AvatarBadge,
|
64
|
+
AvatarBadgeProps: () => import_react85.AvatarBadgeProps,
|
65
|
+
AvatarGroup: () => import_react85.AvatarGroup,
|
66
|
+
AvatarGroupProps: () => import_react85.AvatarGroupProps,
|
67
|
+
AvatarProps: () => import_react85.AvatarProps,
|
68
68
|
Badge: () => badge_default,
|
69
69
|
Box: () => import_react47.Box,
|
70
70
|
BoxProps: () => import_react47.BoxProps,
|
@@ -72,11 +72,12 @@ __export(src_exports, {
|
|
72
72
|
Button: () => button_default,
|
73
73
|
ButtonGroup: () => import_react9.ButtonGroup,
|
74
74
|
ButtonGroupProps: () => import_react9.ButtonGroupProps,
|
75
|
+
CHECKBOX_STATE: () => CHECKBOX_STATE,
|
75
76
|
Card: () => card_default,
|
76
77
|
Center: () => import_react47.Center,
|
77
|
-
ChakraProvider: () =>
|
78
|
-
ChakraProviderProps: () =>
|
79
|
-
ChakraTable: () =>
|
78
|
+
ChakraProvider: () => import_react94.ChakraProvider,
|
79
|
+
ChakraProviderProps: () => import_react94.ChakraProviderProps,
|
80
|
+
ChakraTable: () => import_react79.Table,
|
80
81
|
Checkbox: () => checkbox_default,
|
81
82
|
CheckboxGroup: () => checkbox_group_default,
|
82
83
|
CheckboxGroupContext: () => import_react16.CheckboxGroupContext,
|
@@ -87,13 +88,13 @@ __export(src_exports, {
|
|
87
88
|
Chips: () => chips_default,
|
88
89
|
CloseButton: () => import_react9.CloseButton,
|
89
90
|
CloseButtonProps: () => import_react9.CloseButtonProps,
|
90
|
-
Code: () =>
|
91
|
-
CodeProps: () =>
|
92
|
-
Collapse: () =>
|
93
|
-
CollapseProps: () =>
|
94
|
-
ColorMode: () =>
|
95
|
-
ColorModeScript: () =>
|
96
|
-
ColorModeScriptProps: () =>
|
91
|
+
Code: () => import_react82.Code,
|
92
|
+
CodeProps: () => import_react82.CodeProps,
|
93
|
+
Collapse: () => import_react85.Collapse,
|
94
|
+
CollapseProps: () => import_react85.CollapseProps,
|
95
|
+
ColorMode: () => import_react94.ColorMode,
|
96
|
+
ColorModeScript: () => import_react94.ColorModeScript,
|
97
|
+
ColorModeScriptProps: () => import_react94.ColorModeScriptProps,
|
97
98
|
Container: () => import_react47.Container,
|
98
99
|
ContainerProps: () => import_react47.ContainerProps,
|
99
100
|
Counter: () => counter_default,
|
@@ -112,8 +113,8 @@ __export(src_exports, {
|
|
112
113
|
DrawerHeader: () => import_react58.ModalHeader,
|
113
114
|
DrawerOverlay: () => import_react58.ModalOverlay,
|
114
115
|
DrawerProps: () => import_react58.DrawerProps,
|
115
|
-
Fade: () =>
|
116
|
-
FadeProps: () =>
|
116
|
+
Fade: () => import_react85.Fade,
|
117
|
+
FadeProps: () => import_react85.FadeProps,
|
117
118
|
Field: () => field_default,
|
118
119
|
Flex: () => import_react47.Flex,
|
119
120
|
FlexProps: () => import_react47.FlexProps,
|
@@ -129,18 +130,18 @@ __export(src_exports, {
|
|
129
130
|
GridProps: () => import_react47.GridProps,
|
130
131
|
HStack: () => import_react47.HStack,
|
131
132
|
Header: () => header_default,
|
132
|
-
Heading: () =>
|
133
|
-
HeadingProps: () =>
|
134
|
-
Hide: () =>
|
135
|
-
HideProps: () =>
|
133
|
+
Heading: () => import_react82.Heading,
|
134
|
+
HeadingProps: () => import_react82.HeadingProps,
|
135
|
+
Hide: () => import_react85.Hide,
|
136
|
+
HideProps: () => import_react85.HideProps,
|
136
137
|
Icon: () => import_react46.Icon,
|
137
138
|
IconButton: () => import_react9.IconButton,
|
138
139
|
IconButtonProps: () => import_react9.IconButtonProps,
|
139
140
|
IconProps: () => import_react46.IconProps,
|
140
141
|
Image: () => import_react46.Image,
|
141
142
|
ImageProps: () => import_react46.ImageProps,
|
142
|
-
Img: () =>
|
143
|
-
ImgProps: () =>
|
143
|
+
Img: () => import_react85.Img,
|
144
|
+
ImgProps: () => import_react85.ImgProps,
|
144
145
|
InputAddonLeft: () => InputAddonLeft,
|
145
146
|
InputAddonRight: () => InputAddonRight,
|
146
147
|
InputElementLeft: () => import_react20.InputLeftElement,
|
@@ -157,8 +158,8 @@ __export(src_exports, {
|
|
157
158
|
InputRightAddonProps: () => import_react26.InputRightAddonProps,
|
158
159
|
InputRightElement: () => import_react26.InputRightElement,
|
159
160
|
InputRightElementProps: () => import_react26.InputRightElementProps,
|
160
|
-
Link: () =>
|
161
|
-
LinkProps: () =>
|
161
|
+
Link: () => import_react82.Link,
|
162
|
+
LinkProps: () => import_react82.LinkProps,
|
162
163
|
List: () => import_react48.List,
|
163
164
|
ListIcon: () => import_react48.ListIcon,
|
164
165
|
ListItem: () => import_react48.ListItem,
|
@@ -183,131 +184,134 @@ __export(src_exports, {
|
|
183
184
|
ModalOverlayProps: () => import_react58.ModalOverlayProps,
|
184
185
|
ModalProps: () => import_react58.ModalProps,
|
185
186
|
MultiDatePickerMonth: () => multi_datepicker_month_default,
|
187
|
+
NavItem: () => NavItem,
|
186
188
|
NavigationBar: () => navigation_bar_default,
|
187
189
|
OrderedList: () => import_react48.OrderedList,
|
188
190
|
Pagination: () => pagination_default,
|
189
191
|
PaginationDetail: () => pagination_detail_default,
|
190
192
|
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: () =>
|
193
|
+
Popover: () => import_react68.Popover,
|
194
|
+
PopoverAnchor: () => import_react68.PopoverAnchor,
|
195
|
+
PopoverArrow: () => import_react68.PopoverArrow,
|
196
|
+
PopoverArrowProps: () => import_react68.PopoverArrowProps,
|
197
|
+
PopoverBody: () => import_react68.PopoverBody,
|
198
|
+
PopoverBodyProps: () => import_react68.PopoverBodyProps,
|
199
|
+
PopoverCloseButton: () => import_react68.PopoverCloseButton,
|
200
|
+
PopoverContent: () => import_react68.PopoverContent,
|
201
|
+
PopoverContentProps: () => import_react68.PopoverContentProps,
|
202
|
+
PopoverFooter: () => import_react68.PopoverFooter,
|
203
|
+
PopoverFooterProps: () => import_react68.PopoverFooterProps,
|
204
|
+
PopoverHeader: () => import_react68.PopoverHeader,
|
205
|
+
PopoverHeaderProps: () => import_react68.PopoverHeaderProps,
|
206
|
+
PopoverProps: () => import_react68.PopoverProps,
|
207
|
+
PopoverTrigger: () => import_react68.PopoverTrigger,
|
208
|
+
Portal: () => import_react68.Portal,
|
209
|
+
PortalProps: () => import_react68.PortalProps,
|
208
210
|
Provider: () => provider_default,
|
209
211
|
ProviderContext: () => ProviderContext,
|
210
212
|
Radio: () => Radio,
|
211
213
|
RadioGroup: () => RadioGroup,
|
212
|
-
RadioGroupContext: () =>
|
214
|
+
RadioGroupContext: () => import_react71.RadioGroupContext,
|
213
215
|
Rating: () => rating_default,
|
214
216
|
RequiredIndicator: () => import_react26.RequiredIndicator,
|
215
217
|
RequiredIndicatorProps: () => import_react26.RequiredIndicatorProps,
|
216
|
-
ScaleFade: () =>
|
217
|
-
ScaleFadeProps: () =>
|
218
|
+
ScaleFade: () => import_react85.ScaleFade,
|
219
|
+
ScaleFadeProps: () => import_react85.ScaleFadeProps,
|
218
220
|
Select: () => select_default,
|
219
221
|
SelectAsync: () => select_async_default,
|
220
222
|
SelectAsyncCreatable: () => SelectAsyncCreatable,
|
223
|
+
SelectCheckBox: () => select_with_checkbox_default,
|
221
224
|
SelectCreatable: () => SelectCreatable,
|
222
|
-
Show: () =>
|
223
|
-
ShowProps: () =>
|
225
|
+
Show: () => import_react85.Show,
|
226
|
+
ShowProps: () => import_react85.ShowProps,
|
224
227
|
SimpleGrid: () => import_react47.SimpleGrid,
|
225
228
|
Skeleton: () => import_react5.Skeleton,
|
226
|
-
Slide: () =>
|
227
|
-
SlideFade: () =>
|
228
|
-
SlideFadeProps: () =>
|
229
|
-
SlideProps: () =>
|
229
|
+
Slide: () => import_react85.Slide,
|
230
|
+
SlideFade: () => import_react85.SlideFade,
|
231
|
+
SlideFadeProps: () => import_react85.SlideFadeProps,
|
232
|
+
SlideProps: () => import_react85.SlideProps,
|
230
233
|
Spacer: () => import_react47.Spacer,
|
231
234
|
Stack: () => import_react47.Stack,
|
232
235
|
StackProps: () => import_react47.StackProps,
|
233
|
-
Step: () =>
|
234
|
-
StepDescription: () =>
|
235
|
-
StepIcon: () =>
|
236
|
-
StepIndicator: () =>
|
237
|
-
StepNumber: () =>
|
238
|
-
StepSeparator: () =>
|
239
|
-
StepStatus: () =>
|
240
|
-
StepTitle: () =>
|
241
|
-
Stepper: () =>
|
236
|
+
Step: () => import_react85.Step,
|
237
|
+
StepDescription: () => import_react85.StepDescription,
|
238
|
+
StepIcon: () => import_react85.StepIcon,
|
239
|
+
StepIndicator: () => import_react85.StepIndicator,
|
240
|
+
StepNumber: () => import_react85.StepNumber,
|
241
|
+
StepSeparator: () => import_react85.StepSeparator,
|
242
|
+
StepStatus: () => import_react85.StepStatus,
|
243
|
+
StepTitle: () => import_react85.StepTitle,
|
244
|
+
Stepper: () => import_react85.Stepper,
|
242
245
|
Switch: () => switch_default,
|
243
246
|
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: () =>
|
247
|
+
TabIndicator: () => import_react81.TabIndicator,
|
248
|
+
TabIndicatorProps: () => import_react81.TabIndicatorProps,
|
249
|
+
TabList: () => import_react81.TabList,
|
250
|
+
TabListProps: () => import_react81.TabListProps,
|
251
|
+
TabPanel: () => import_react81.TabPanel,
|
252
|
+
TabPanelProps: () => import_react81.TabPanelProps,
|
253
|
+
TabPanels: () => import_react81.TabPanels,
|
254
|
+
TabPanelsProps: () => import_react81.TabPanelsProps,
|
255
|
+
TabProps: () => import_react81.TabProps,
|
256
|
+
TableBodyProps: () => import_react79.TableBodyProps,
|
257
|
+
TableCellProps: () => import_react79.TableCellProps,
|
258
|
+
TableColumnHeaderProps: () => import_react79.TableColumnHeaderProps,
|
259
|
+
TableHeadProps: () => import_react79.TableHeadProps,
|
260
|
+
TableProps: () => import_react79.TableProps,
|
261
|
+
TableRowProps: () => import_react79.TableRowProps,
|
262
|
+
Tabs: () => import_react81.Tabs,
|
263
|
+
TabsDescendantsProvider: () => import_react81.TabsDescendantsProvider,
|
264
|
+
TabsProps: () => import_react81.TabsProps,
|
265
|
+
TabsProvider: () => import_react81.TabsProvider,
|
266
|
+
Tbody: () => import_react79.Tbody,
|
267
|
+
Td: () => import_react79.Td,
|
268
|
+
Text: () => import_react82.Text,
|
269
|
+
TextProps: () => import_react82.TextProps,
|
267
270
|
TextareaField: () => textarea_default,
|
268
|
-
Th: () =>
|
269
|
-
Thead: () =>
|
271
|
+
Th: () => import_react79.Th,
|
272
|
+
Thead: () => import_react79.Thead,
|
270
273
|
ThemeTypings: () => import_styled_system13.ThemeTypings,
|
271
|
-
Tooltip: () =>
|
272
|
-
TooltipProps: () =>
|
273
|
-
Tr: () =>
|
274
|
+
Tooltip: () => import_react83.Tooltip,
|
275
|
+
TooltipProps: () => import_react83.TooltipProps,
|
276
|
+
Tr: () => import_react79.Tr,
|
274
277
|
UnorderedList: () => import_react48.UnorderedList,
|
275
278
|
Uploader: () => uploader_default,
|
276
279
|
UseAccordionItemProps: () => import_react3.UseAccordionItemProps,
|
277
280
|
UseAccordionItemReturn: () => import_react3.UseAccordionItemReturn,
|
278
281
|
UseAccordionProps: () => import_react3.UseAccordionProps,
|
279
282
|
UseAccordionReturn: () => import_react3.UseAccordionReturn,
|
280
|
-
UseBreakpointOptions: () =>
|
283
|
+
UseBreakpointOptions: () => import_react85.UseBreakpointOptions,
|
281
284
|
UseCheckboxGroupProps: () => import_react16.UseCheckboxGroupProps,
|
282
285
|
UseCheckboxGroupReturn: () => import_react16.UseCheckboxGroupReturn,
|
283
286
|
UseCheckboxProps: () => import_react16.UseCheckboxProps,
|
284
287
|
UseCheckboxReturn: () => import_react16.UseCheckboxReturn,
|
285
|
-
UseDisclosureProps: () =>
|
286
|
-
UseImageProps: () =>
|
287
|
-
UseImageReturn: () =>
|
288
|
-
UseMediaQueryOptions: () =>
|
288
|
+
UseDisclosureProps: () => import_react96.UseDisclosureProps,
|
289
|
+
UseImageProps: () => import_react85.UseImageProps,
|
290
|
+
UseImageReturn: () => import_react85.UseImageReturn,
|
291
|
+
UseMediaQueryOptions: () => import_react85.UseMediaQueryOptions,
|
289
292
|
UseModalProps: () => import_react58.UseModalProps,
|
290
293
|
UseModalReturn: () => import_react58.UseModalReturn,
|
291
|
-
UseQueryProps: () =>
|
292
|
-
UseRadioGroupReturn: () =>
|
293
|
-
UseRadioProps: () =>
|
294
|
-
UseRadioReturn: () =>
|
295
|
-
UseTabListProps: () =>
|
296
|
-
UseTabListReturn: () =>
|
297
|
-
UseTabOptions: () =>
|
298
|
-
UseTabPanelsProps: () =>
|
299
|
-
UseTabProps: () =>
|
300
|
-
UseTabsProps: () =>
|
301
|
-
UseTabsReturn: () =>
|
294
|
+
UseQueryProps: () => import_react85.UseQueryProps,
|
295
|
+
UseRadioGroupReturn: () => import_react71.UseRadioGroupReturn,
|
296
|
+
UseRadioProps: () => import_react71.UseRadioProps,
|
297
|
+
UseRadioReturn: () => import_react71.UseRadioReturn,
|
298
|
+
UseTabListProps: () => import_react81.UseTabListProps,
|
299
|
+
UseTabListReturn: () => import_react81.UseTabListReturn,
|
300
|
+
UseTabOptions: () => import_react81.UseTabOptions,
|
301
|
+
UseTabPanelsProps: () => import_react81.UseTabPanelsProps,
|
302
|
+
UseTabProps: () => import_react81.UseTabProps,
|
303
|
+
UseTabsProps: () => import_react81.UseTabsProps,
|
304
|
+
UseTabsReturn: () => import_react81.UseTabsReturn,
|
302
305
|
VStack: () => import_react47.VStack,
|
303
|
-
VisuallyHidden: () =>
|
304
|
-
VisuallyHiddenInput: () =>
|
306
|
+
VisuallyHidden: () => import_react85.VisuallyHidden,
|
307
|
+
VisuallyHiddenInput: () => import_react85.VisuallyHiddenInput,
|
305
308
|
Wrap: () => import_react47.Wrap,
|
306
309
|
WrapItem: () => import_react47.WrapItem,
|
307
310
|
WrapItemProps: () => import_react47.WrapItemProps,
|
308
311
|
WrapProps: () => import_react47.WrapProps,
|
309
|
-
extendTheme: () =>
|
310
|
-
forwardRef: () =>
|
312
|
+
extendTheme: () => import_react97.extendTheme,
|
313
|
+
forwardRef: () => import_react97.forwardRef,
|
314
|
+
getSelectAllCheckboxState: () => getSelectAllCheckboxState,
|
311
315
|
getTheme: () => getTheme,
|
312
316
|
theme: () => theme5,
|
313
317
|
useAccordion: () => import_react3.useAccordion,
|
@@ -316,47 +320,47 @@ __export(src_exports, {
|
|
316
320
|
useAccordionItemState: () => import_react3.useAccordionItemState,
|
317
321
|
useAccordionStyles: () => import_react3.useAccordionStyles,
|
318
322
|
useAlertStyles: () => useAlertStyles,
|
319
|
-
useBoolean: () =>
|
320
|
-
useBreakpoint: () =>
|
323
|
+
useBoolean: () => import_react96.useBoolean,
|
324
|
+
useBreakpoint: () => import_react85.useBreakpoint,
|
321
325
|
useCheckbox: () => import_react16.useCheckbox,
|
322
326
|
useCheckboxGroup: () => import_react16.useCheckboxGroup,
|
323
|
-
useClipboard: () =>
|
324
|
-
useColorMode: () =>
|
325
|
-
useColorModePreference: () =>
|
326
|
-
useColorModeValue: () =>
|
327
|
-
useConst: () =>
|
328
|
-
useControllableProp: () =>
|
329
|
-
useControllableState: () =>
|
327
|
+
useClipboard: () => import_react96.useClipboard,
|
328
|
+
useColorMode: () => import_react96.useColorMode,
|
329
|
+
useColorModePreference: () => import_react85.useColorModePreference,
|
330
|
+
useColorModeValue: () => import_react96.useColorModeValue,
|
331
|
+
useConst: () => import_react96.useConst,
|
332
|
+
useControllableProp: () => import_react96.useControllableProp,
|
333
|
+
useControllableState: () => import_react96.useControllableState,
|
330
334
|
useDataTable: () => useDataTable,
|
331
|
-
useDimensions: () =>
|
332
|
-
useDisclosure: () =>
|
335
|
+
useDimensions: () => import_react96.useDimensions,
|
336
|
+
useDisclosure: () => import_react96.useDisclosure,
|
333
337
|
useDrawerContext: () => import_react58.useDrawerContext,
|
334
338
|
useFetcher: () => useFetcher,
|
335
|
-
useImage: () =>
|
339
|
+
useImage: () => import_react85.useImage,
|
336
340
|
useInternalUI: () => useInternalUI,
|
337
|
-
useMergeRefs: () =>
|
341
|
+
useMergeRefs: () => import_react96.useMergeRefs,
|
338
342
|
useModal: () => import_react58.useModal,
|
339
343
|
useModalContext: () => import_react58.useModalContext,
|
340
344
|
useModalStyles: () => import_react58.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: () =>
|
345
|
+
useOutsideClick: () => import_react96.useOutsideClick,
|
346
|
+
useQuery: () => import_react85.useQuery,
|
347
|
+
useRadio: () => import_react71.useRadio,
|
348
|
+
useRadioGroup: () => import_react71.useRadioGroup,
|
349
|
+
useRadioGroupContext: () => import_react71.useRadioGroupContext,
|
350
|
+
useSteps: () => import_react85.useSteps,
|
351
|
+
useTab: () => import_react81.useTab,
|
352
|
+
useTabIndicator: () => import_react81.useTabIndicator,
|
353
|
+
useTabList: () => import_react81.useTabList,
|
354
|
+
useTabPanel: () => import_react81.useTabPanel,
|
355
|
+
useTabPanels: () => import_react81.useTabPanels,
|
356
|
+
useTabs: () => import_react81.useTabs,
|
357
|
+
useTabsContext: () => import_react81.useTabsContext,
|
358
|
+
useTabsDescendant: () => import_react81.useTabsDescendant,
|
359
|
+
useTabsDescendants: () => import_react81.useTabsDescendants,
|
360
|
+
useTabsDescendantsContext: () => import_react81.useTabsDescendantsContext,
|
361
|
+
useTabsStyles: () => import_react81.useTabsStyles,
|
362
|
+
useTheme: () => import_react96.useTheme,
|
363
|
+
useToken: () => import_react96.useToken
|
360
364
|
});
|
361
365
|
module.exports = __toCommonJS(src_exports);
|
362
366
|
|
@@ -2857,34 +2861,78 @@ var modal_header_default = ModalHeader2;
|
|
2857
2861
|
// src/components/modal/index.ts
|
2858
2862
|
var import_react58 = require("@chakra-ui/react");
|
2859
2863
|
|
2860
|
-
// src/components/
|
2864
|
+
// src/components/nav-item/components/nav-item.tsx
|
2861
2865
|
var import_react59 = require("@chakra-ui/react");
|
2866
|
+
var import_shared_utils9 = require("@chakra-ui/shared-utils");
|
2867
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
2868
|
+
var NavItem = ({ children, isActive, isChild, isDisabled, ...props }) => {
|
2869
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
2870
|
+
import_react59.Link,
|
2871
|
+
{
|
2872
|
+
"data-test-id": "7quRuVrffI7_tnCF4jUSV",
|
2873
|
+
opacity: isDisabled ? "0.3" : "initial",
|
2874
|
+
cursor: isDisabled ? "not-allowed" : "pointer",
|
2875
|
+
h: "7.5",
|
2876
|
+
display: "flex",
|
2877
|
+
justifyContent: "space-between",
|
2878
|
+
alignItems: "center",
|
2879
|
+
w: "full",
|
2880
|
+
p: "2",
|
2881
|
+
pl: isChild ? "7" : "2",
|
2882
|
+
color: isActive ? "primary.500" : "black.high",
|
2883
|
+
bg: isActive ? "primary.100" : "white",
|
2884
|
+
className: (0, import_shared_utils9.cx)("catalyst-nav-item", props.className),
|
2885
|
+
textStyle: "text.xs",
|
2886
|
+
fontWeight: isActive ? "semibold" : "regular",
|
2887
|
+
rounded: "sm",
|
2888
|
+
_active: isDisabled ? {} : {
|
2889
|
+
bg: "primary.100"
|
2890
|
+
},
|
2891
|
+
_hover: isDisabled ? {} : {
|
2892
|
+
textDecoration: "none",
|
2893
|
+
bg: isActive ? "primary.100" : "primary.50"
|
2894
|
+
},
|
2895
|
+
...props,
|
2896
|
+
onClick: isDisabled ? void 0 : props.onClick,
|
2897
|
+
children
|
2898
|
+
}
|
2899
|
+
);
|
2900
|
+
};
|
2901
|
+
NavItem.displayName = "NavItem";
|
2902
|
+
NavItem.defaultProps = {
|
2903
|
+
isActive: false,
|
2904
|
+
isChild: false,
|
2905
|
+
isDisabled: false
|
2906
|
+
};
|
2907
|
+
|
2908
|
+
// src/components/navigation/components/navigation.tsx
|
2909
|
+
var import_react60 = require("@chakra-ui/react");
|
2862
2910
|
var Icon3 = __toESM(require("@ctlyst.id/internal-icon"));
|
2863
|
-
var
|
2911
|
+
var import_react61 = require("@emotion/react");
|
2864
2912
|
|
2865
2913
|
// src/components/navigation/components/mapping-icon.tsx
|
2866
2914
|
var Icon2 = __toESM(require("@ctlyst.id/internal-icon"));
|
2867
|
-
var
|
2915
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
2868
2916
|
var mappingIcon = /* @__PURE__ */ new Map([
|
2869
|
-
["Order", /* @__PURE__ */ (0,
|
2870
|
-
["Fulfillment", /* @__PURE__ */ (0,
|
2871
|
-
["Transfer Stock", /* @__PURE__ */ (0,
|
2872
|
-
["Stock", /* @__PURE__ */ (0,
|
2873
|
-
["Product Database", /* @__PURE__ */ (0,
|
2874
|
-
["Purchasing", /* @__PURE__ */ (0,
|
2875
|
-
["Reseller", /* @__PURE__ */ (0,
|
2876
|
-
["Retur", /* @__PURE__ */ (0,
|
2877
|
-
["Other", /* @__PURE__ */ (0,
|
2878
|
-
["Content", /* @__PURE__ */ (0,
|
2879
|
-
["Customer", /* @__PURE__ */ (0,
|
2880
|
-
["Voucher", /* @__PURE__ */ (0,
|
2917
|
+
["Order", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.ShoppingBag, { size: 4, color: "inherit" }, "order")],
|
2918
|
+
["Fulfillment", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.ShoppingCart, { size: 4, color: "inherit" }, "fullfilment")],
|
2919
|
+
["Transfer Stock", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.Repeat, { size: 4, color: "inherit" }, "transfer-stock")],
|
2920
|
+
["Stock", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.Box, { size: 4, color: "inherit" }, "stock")],
|
2921
|
+
["Product Database", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.Layers, { size: 4, color: "inherit" }, "product-database")],
|
2922
|
+
["Purchasing", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.DollarSign, { size: 4, color: "inherit" }, "purchasing")],
|
2923
|
+
["Reseller", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.Users, { size: 4, color: "inherit" }, "reseller")],
|
2924
|
+
["Retur", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.RotateCcw, { size: 4, color: "inherit" }, "retur")],
|
2925
|
+
["Other", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.Settings, { size: 4, color: "inherit" }, "other")],
|
2926
|
+
["Content", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.Layout, { size: 4, color: "inherit" }, "content")],
|
2927
|
+
["Customer", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.HelpCircle, { size: 4, color: "inherit" }, "content")],
|
2928
|
+
["Voucher", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.Gift, { size: 4, color: "inherit" }, "content")]
|
2881
2929
|
]);
|
2882
2930
|
|
2883
2931
|
// src/components/navigation/components/navigation.tsx
|
2884
|
-
var
|
2932
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
2885
2933
|
var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
2886
|
-
return /* @__PURE__ */ (0,
|
2887
|
-
|
2934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react60.Box, { borderRadius: "md", overflowX: "auto", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
2935
|
+
import_react60.Flex,
|
2888
2936
|
{
|
2889
2937
|
bg: "white",
|
2890
2938
|
w: "full",
|
@@ -2898,9 +2946,9 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2898
2946
|
children: navigations == null ? void 0 : navigations.map((navigation) => {
|
2899
2947
|
const isActive = activePath.startsWith(navigation.navLink || "");
|
2900
2948
|
const activeBg = isActive ? "primary.500" : void 0;
|
2901
|
-
return /* @__PURE__ */ (0,
|
2902
|
-
/* @__PURE__ */ (0,
|
2903
|
-
|
2949
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react60.Popover, { trigger: "hover", placement: "bottom-start", children: ({ isOpen }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
|
2950
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react60.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
2951
|
+
import_react60.Button,
|
2904
2952
|
{
|
2905
2953
|
h: 7.5,
|
2906
2954
|
p: 2,
|
@@ -2913,14 +2961,14 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2913
2961
|
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
2914
2962
|
color: isActive ? "primary.50" : "black.high",
|
2915
2963
|
leftIcon: mappingIcon.get(navigation.title),
|
2916
|
-
rightIcon: /* @__PURE__ */ (0,
|
2964
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon3.ChevronDown, { size: 4, color: "inherit" }),
|
2917
2965
|
children: navigation.title
|
2918
2966
|
}
|
2919
2967
|
) }),
|
2920
|
-
navigation.children && /* @__PURE__ */ (0,
|
2921
|
-
|
2968
|
+
navigation.children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react60.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react60.Box, { zIndex: "popover", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
2969
|
+
import_react60.PopoverContent,
|
2922
2970
|
{
|
2923
|
-
bg: (0,
|
2971
|
+
bg: (0, import_react60.useColorModeValue)("white", "ebony-clay.800"),
|
2924
2972
|
maxW: 250,
|
2925
2973
|
border: "none",
|
2926
2974
|
borderRadius: "md",
|
@@ -2929,16 +2977,16 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2929
2977
|
const link = navHost ? `${navHost}${navLink}` : navLink;
|
2930
2978
|
const isLocalLink = host === navHost;
|
2931
2979
|
const isActiveSub = activePath === navLink;
|
2932
|
-
return /* @__PURE__ */ (0,
|
2933
|
-
|
2980
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
2981
|
+
import_react60.Link,
|
2934
2982
|
{
|
2935
2983
|
as: isLocalLink ? as : void 0,
|
2936
2984
|
href: link,
|
2937
2985
|
_hover: {
|
2938
2986
|
textDecoration: "none"
|
2939
2987
|
},
|
2940
|
-
children: /* @__PURE__ */ (0,
|
2941
|
-
|
2988
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
2989
|
+
import_react60.Box,
|
2942
2990
|
{
|
2943
2991
|
display: "flex",
|
2944
2992
|
position: "relative",
|
@@ -2946,24 +2994,24 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2946
2994
|
cursor: "pointer",
|
2947
2995
|
transition: "padding 0.35s ease 0s",
|
2948
2996
|
_hover: {
|
2949
|
-
backgroundColor: (0,
|
2950
|
-
color: (0,
|
2997
|
+
backgroundColor: (0, import_react60.useColorModeValue)("dove-gray.50", "mirage.900"),
|
2998
|
+
color: (0, import_react60.useColorModeValue)("primary.500", "dove-gray.600"),
|
2951
2999
|
px: 5,
|
2952
3000
|
py: 4,
|
2953
3001
|
_first: { borderTopRadius: "md" },
|
2954
3002
|
_last: { borderBottomRadius: "md" }
|
2955
3003
|
},
|
2956
3004
|
color: isActiveSub ? "primary.500" : "inherit",
|
2957
|
-
css:
|
3005
|
+
css: import_react61.css`
|
2958
3006
|
border-spacing: 4px;
|
2959
3007
|
`,
|
2960
3008
|
px: 6,
|
2961
3009
|
py: 4,
|
2962
3010
|
children: [
|
2963
3011
|
mappingIcon.get(navigation.title),
|
2964
|
-
/* @__PURE__ */ (0,
|
2965
|
-
isActiveSub && /* @__PURE__ */ (0,
|
2966
|
-
|
3012
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react60.Text, { fontSize: "text.sm", ml: 3, children: title }),
|
3013
|
+
isActiveSub && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3014
|
+
import_react60.Box,
|
2967
3015
|
{
|
2968
3016
|
width: 0.5,
|
2969
3017
|
height: 8,
|
@@ -2996,9 +3044,9 @@ Navigation.defaultProps = {
|
|
2996
3044
|
var navigation_default = Navigation;
|
2997
3045
|
|
2998
3046
|
// src/components/navigation/components/navigation-bar.tsx
|
2999
|
-
var
|
3047
|
+
var import_react62 = require("@chakra-ui/react");
|
3000
3048
|
var Icon4 = __toESM(require("@ctlyst.id/internal-icon"));
|
3001
|
-
var
|
3049
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
3002
3050
|
var NavigationBar = ({
|
3003
3051
|
navigations,
|
3004
3052
|
isFetched,
|
@@ -3013,8 +3061,8 @@ var NavigationBar = ({
|
|
3013
3061
|
}
|
3014
3062
|
return subMenu.navHost + subMenu.navLink;
|
3015
3063
|
};
|
3016
|
-
return /* @__PURE__ */ (0,
|
3017
|
-
|
3064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react62.Box, { hidden: isFetched && navigations === void 0, "data-test-id": "CT_component_navigation_cms", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3065
|
+
import_react62.Flex,
|
3018
3066
|
{
|
3019
3067
|
bg: "white",
|
3020
3068
|
w: "full",
|
@@ -3030,9 +3078,9 @@ var NavigationBar = ({
|
|
3030
3078
|
const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
|
3031
3079
|
const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
|
3032
3080
|
const activeBg = isActive ? "primary.500" : void 0;
|
3033
|
-
return /* @__PURE__ */ (0,
|
3034
|
-
/* @__PURE__ */ (0,
|
3035
|
-
|
3081
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react62.Popover, { isLazy: true, trigger: "hover", placement: "bottom-start", openDelay: 100, closeDelay: 100, children: ({ isOpen, onClose }) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
3082
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react62.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3083
|
+
import_react62.Button,
|
3036
3084
|
{
|
3037
3085
|
h: 7.5,
|
3038
3086
|
p: 2,
|
@@ -3045,12 +3093,12 @@ var NavigationBar = ({
|
|
3045
3093
|
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
3046
3094
|
color: isActive ? "primary.50" : "black.high",
|
3047
3095
|
leftIcon: mappingIcon2.get(item.title),
|
3048
|
-
rightIcon: /* @__PURE__ */ (0,
|
3096
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon4.ChevronDown, { size: 4, color: "inherit" }),
|
3049
3097
|
children: item.title
|
3050
3098
|
}
|
3051
3099
|
) }),
|
3052
|
-
item.children && /* @__PURE__ */ (0,
|
3053
|
-
|
3100
|
+
item.children && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react62.PopoverContent, { bg: "white", boxShadow: "raised", borderRadius: "md", py: 1, width: 240, children: item.children.map((subMenu) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
3101
|
+
import_react62.Link,
|
3054
3102
|
{
|
3055
3103
|
href: urlMenu(subMenu),
|
3056
3104
|
display: "flex",
|
@@ -3067,7 +3115,7 @@ var NavigationBar = ({
|
|
3067
3115
|
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
3068
3116
|
children: [
|
3069
3117
|
mappingIcon2.get(item.title),
|
3070
|
-
/* @__PURE__ */ (0,
|
3118
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react62.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
3071
3119
|
]
|
3072
3120
|
},
|
3073
3121
|
subMenu.id
|
@@ -3084,18 +3132,18 @@ var navigation_bar_default = NavigationBar;
|
|
3084
3132
|
|
3085
3133
|
// src/components/pagination/components/pagination.tsx
|
3086
3134
|
var import_icons4 = require("@chakra-ui/icons");
|
3087
|
-
var
|
3135
|
+
var import_react65 = require("@chakra-ui/react");
|
3088
3136
|
|
3089
3137
|
// src/components/pagination/components/pagination-button.tsx
|
3090
|
-
var
|
3091
|
-
var
|
3092
|
-
var PaginationButton = (0,
|
3093
|
-
const btnBg = (0,
|
3094
|
-
const btnColor = (0,
|
3095
|
-
const btnNotActiveBg = (0,
|
3096
|
-
const btnNotActiveColor = (0,
|
3097
|
-
return /* @__PURE__ */ (0,
|
3098
|
-
|
3138
|
+
var import_react63 = require("@chakra-ui/react");
|
3139
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
3140
|
+
var PaginationButton = (0, import_react63.forwardRef)(({ className, style, isActive, children, ...rest }, ref) => {
|
3141
|
+
const btnBg = (0, import_react63.useColorModeValue)("neutral.300", "mirage.900");
|
3142
|
+
const btnColor = (0, import_react63.useColorModeValue)("black.high", "primary.300");
|
3143
|
+
const btnNotActiveBg = (0, import_react63.useColorModeValue)("secondary.50", "primary.500");
|
3144
|
+
const btnNotActiveColor = (0, import_react63.useColorModeValue)("primary.500", "white");
|
3145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
3146
|
+
import_react63.Button,
|
3099
3147
|
{
|
3100
3148
|
"data-test-id": "Pagination-Button",
|
3101
3149
|
ref,
|
@@ -3116,7 +3164,7 @@ var PaginationButton = (0, import_react62.forwardRef)(({ className, style, isAct
|
|
3116
3164
|
color: btnNotActiveColor
|
3117
3165
|
} : {},
|
3118
3166
|
_disabled: {
|
3119
|
-
background: (0,
|
3167
|
+
background: (0, import_react63.useColorModeValue)("neutral.300", "mirage.900"),
|
3120
3168
|
color: "neutral.600",
|
3121
3169
|
pointerEvents: "none"
|
3122
3170
|
},
|
@@ -3132,16 +3180,16 @@ PaginationButton.defaultProps = {
|
|
3132
3180
|
var pagination_button_default = PaginationButton;
|
3133
3181
|
|
3134
3182
|
// src/components/pagination/components/pagination-button-trigger.tsx
|
3135
|
-
var
|
3136
|
-
var
|
3183
|
+
var import_react64 = require("@chakra-ui/react");
|
3184
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
3137
3185
|
var PaginationButtonTrigger = ({
|
3138
3186
|
color,
|
3139
3187
|
isDisabled,
|
3140
3188
|
onClick,
|
3141
3189
|
visuallyHidden,
|
3142
3190
|
icon
|
3143
|
-
}) => /* @__PURE__ */ (0,
|
3144
|
-
/* @__PURE__ */ (0,
|
3191
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(pagination_button_default, { "data-test-id": "DLVCc_fBK35spHm5WxjcJ", color, isDisabled, onClick, children: [
|
3192
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react64.VisuallyHidden, { children: visuallyHidden }),
|
3145
3193
|
icon
|
3146
3194
|
] });
|
3147
3195
|
PaginationButtonTrigger.defaultProps = {
|
@@ -3154,10 +3202,10 @@ PaginationButtonTrigger.defaultProps = {
|
|
3154
3202
|
var pagination_button_trigger_default = PaginationButtonTrigger;
|
3155
3203
|
|
3156
3204
|
// src/components/pagination/components/pagination.tsx
|
3157
|
-
var
|
3205
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
3158
3206
|
var Pagination = ({ className, current, total, onSelect }) => {
|
3159
|
-
const btnColorDisabled = (0,
|
3160
|
-
const btnColor = (0,
|
3207
|
+
const btnColorDisabled = (0, import_react65.useColorModeValue)("secondary.100", "primary.500");
|
3208
|
+
const btnColor = (0, import_react65.useColorModeValue)("primary.500", "secondary.100");
|
3161
3209
|
const disabledPrevious = current === 1;
|
3162
3210
|
const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;
|
3163
3211
|
const disabledNext = current === total;
|
@@ -3184,8 +3232,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3184
3232
|
}
|
3185
3233
|
return pageButtons;
|
3186
3234
|
};
|
3187
|
-
return /* @__PURE__ */ (0,
|
3188
|
-
/* @__PURE__ */ (0,
|
3235
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react65.Box, { className, display: "inline-flex", alignItems: "center", children: [
|
3236
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react65.Box, { mr: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3189
3237
|
pagination_button_trigger_default,
|
3190
3238
|
{
|
3191
3239
|
"data-test-id": "Pagination-Button",
|
@@ -3193,11 +3241,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3193
3241
|
isDisabled: disabledPrevious,
|
3194
3242
|
onClick: () => handleSelectPage(1),
|
3195
3243
|
visuallyHidden: "First Page",
|
3196
|
-
icon: /* @__PURE__ */ (0,
|
3244
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ArrowLeftIcon, { width: 2 })
|
3197
3245
|
}
|
3198
3246
|
) }),
|
3199
|
-
/* @__PURE__ */ (0,
|
3200
|
-
/* @__PURE__ */ (0,
|
3247
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react65.Box, { bg: "neutral.300", borderRadius: "full", children: [
|
3248
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3201
3249
|
pagination_button_trigger_default,
|
3202
3250
|
{
|
3203
3251
|
"data-test-id": "Pagination-Button",
|
@@ -3205,22 +3253,22 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3205
3253
|
isDisabled: disabledPrevious,
|
3206
3254
|
onClick: () => handleSelectPage(current - 1),
|
3207
3255
|
visuallyHidden: "Previous Page",
|
3208
|
-
icon: /* @__PURE__ */ (0,
|
3256
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ChevronLeftIcon, {})
|
3209
3257
|
}
|
3210
3258
|
),
|
3211
3259
|
generatePages().map((page) => {
|
3212
|
-
return /* @__PURE__ */ (0,
|
3260
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3213
3261
|
pagination_button_default,
|
3214
3262
|
{
|
3215
3263
|
"data-test-id": "Pagination-Button",
|
3216
3264
|
isActive: page === current,
|
3217
3265
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
3218
|
-
children: /* @__PURE__ */ (0,
|
3266
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react65.Text, { scale: 300, fontSize: "text.sm", lineHeight: 18, fontWeight: 500, children: page })
|
3219
3267
|
},
|
3220
3268
|
page
|
3221
3269
|
);
|
3222
3270
|
}),
|
3223
|
-
/* @__PURE__ */ (0,
|
3271
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3224
3272
|
pagination_button_trigger_default,
|
3225
3273
|
{
|
3226
3274
|
"data-test-id": "Pagination-Button",
|
@@ -3228,11 +3276,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3228
3276
|
isDisabled: disabledNext,
|
3229
3277
|
onClick: () => handleSelectPage(current + 1),
|
3230
3278
|
visuallyHidden: "Next Page",
|
3231
|
-
icon: /* @__PURE__ */ (0,
|
3279
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ChevronRightIcon, {})
|
3232
3280
|
}
|
3233
3281
|
)
|
3234
3282
|
] }),
|
3235
|
-
/* @__PURE__ */ (0,
|
3283
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react65.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3236
3284
|
pagination_button_trigger_default,
|
3237
3285
|
{
|
3238
3286
|
"data-test-id": "Pagination-Button",
|
@@ -3240,7 +3288,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3240
3288
|
isDisabled: disabledNext,
|
3241
3289
|
onClick: () => handleSelectPage(total),
|
3242
3290
|
visuallyHidden: "Last Page",
|
3243
|
-
icon: /* @__PURE__ */ (0,
|
3291
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ArrowRightIcon, { width: 2 })
|
3244
3292
|
}
|
3245
3293
|
) })
|
3246
3294
|
] });
|
@@ -3253,8 +3301,8 @@ Pagination.displayName = "Pagination";
|
|
3253
3301
|
var pagination_default = Pagination;
|
3254
3302
|
|
3255
3303
|
// src/components/pagination/components/pagination-detail.tsx
|
3256
|
-
var
|
3257
|
-
var
|
3304
|
+
var import_react66 = require("@chakra-ui/react");
|
3305
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
3258
3306
|
var PaginationDetail = ({
|
3259
3307
|
page,
|
3260
3308
|
limit,
|
@@ -3264,15 +3312,15 @@ var PaginationDetail = ({
|
|
3264
3312
|
lineHeight = 18,
|
3265
3313
|
...rest
|
3266
3314
|
}) => {
|
3267
|
-
return /* @__PURE__ */ (0,
|
3315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react66.Text, { scale, fontSize, lineHeight, ...rest, children: `${(page - 1) * limit + 1}-${limit * page < length ? limit * page : length} dari ${length} item` });
|
3268
3316
|
};
|
3269
3317
|
var pagination_detail_default = PaginationDetail;
|
3270
3318
|
|
3271
3319
|
// src/components/pagination/components/pagination-filter.tsx
|
3272
|
-
var
|
3320
|
+
var import_react67 = require("@chakra-ui/react");
|
3273
3321
|
var React13 = __toESM(require("react"));
|
3274
3322
|
var import_fi6 = require("react-icons/fi");
|
3275
|
-
var
|
3323
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
3276
3324
|
var PaginationFilter = ({
|
3277
3325
|
limit,
|
3278
3326
|
label = "Baris per halaman:",
|
@@ -3281,10 +3329,10 @@ var PaginationFilter = ({
|
|
3281
3329
|
...rest
|
3282
3330
|
}) => {
|
3283
3331
|
const [value, setValue] = React13.useState(limit);
|
3284
|
-
return /* @__PURE__ */ (0,
|
3285
|
-
/* @__PURE__ */ (0,
|
3286
|
-
/* @__PURE__ */ (0,
|
3287
|
-
|
3332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_react67.Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [
|
3333
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react67.Text, { fontSize: "text.sm", lineHeight: 18, color: (0, import_react67.useColorModeValue)("neutral.900", "white"), ...rest, children: label }),
|
3334
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
3335
|
+
import_react67.Select,
|
3288
3336
|
{
|
3289
3337
|
textAlign: "center",
|
3290
3338
|
size: "xs",
|
@@ -3292,7 +3340,7 @@ var PaginationFilter = ({
|
|
3292
3340
|
border: "none",
|
3293
3341
|
boxShadow: "none",
|
3294
3342
|
width: 18,
|
3295
|
-
icon: /* @__PURE__ */ (0,
|
3343
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_fi6.FiChevronDown, {}),
|
3296
3344
|
_focusVisible: { boxShadow: "none" },
|
3297
3345
|
onChange: (e) => {
|
3298
3346
|
const numberValue = Number(e.target.value);
|
@@ -3301,7 +3349,7 @@ var PaginationFilter = ({
|
|
3301
3349
|
},
|
3302
3350
|
value,
|
3303
3351
|
children: items.map((item) => {
|
3304
|
-
return /* @__PURE__ */ (0,
|
3352
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("option", { value: item, children: item }, item);
|
3305
3353
|
})
|
3306
3354
|
}
|
3307
3355
|
)
|
@@ -3314,11 +3362,11 @@ PaginationFilter.defaultProps = {
|
|
3314
3362
|
var pagination_filter_default = PaginationFilter;
|
3315
3363
|
|
3316
3364
|
// src/components/popover/index.ts
|
3317
|
-
var
|
3365
|
+
var import_react68 = require("@chakra-ui/react");
|
3318
3366
|
|
3319
3367
|
// src/components/radio/components/radio.tsx
|
3320
|
-
var
|
3321
|
-
var
|
3368
|
+
var import_react69 = require("@chakra-ui/react");
|
3369
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
3322
3370
|
var Radio = ({
|
3323
3371
|
isError = false,
|
3324
3372
|
helpText = "",
|
@@ -3328,9 +3376,9 @@ var Radio = ({
|
|
3328
3376
|
...rest
|
3329
3377
|
}) => {
|
3330
3378
|
const variant = isError ? "errors" : "unstyled";
|
3331
|
-
return /* @__PURE__ */ (0,
|
3332
|
-
/* @__PURE__ */ (0,
|
3333
|
-
/* @__PURE__ */ (0,
|
3379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_react69.Box, { children: [
|
3380
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react69.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react69.Radio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react69.Text, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
|
3381
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react69.Box, { mt: "5px", ml: "24px", children: isError ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react69.Text, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react69.Text, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) })
|
3334
3382
|
] });
|
3335
3383
|
};
|
3336
3384
|
Radio.displayName = "Radio";
|
@@ -3341,8 +3389,8 @@ Radio.defaultProps = {
|
|
3341
3389
|
};
|
3342
3390
|
|
3343
3391
|
// src/components/radio/components/radio-group.tsx
|
3344
|
-
var
|
3345
|
-
var
|
3392
|
+
var import_react70 = require("@chakra-ui/react");
|
3393
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
3346
3394
|
var RadioGroup = ({
|
3347
3395
|
children,
|
3348
3396
|
label,
|
@@ -3351,7 +3399,7 @@ var RadioGroup = ({
|
|
3351
3399
|
errorMessage,
|
3352
3400
|
...props
|
3353
3401
|
}) => {
|
3354
|
-
return /* @__PURE__ */ (0,
|
3402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react70.Box, { mt: "12px", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react70.RadioGroup, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react70.Stack, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
|
3355
3403
|
};
|
3356
3404
|
RadioGroup.displayName = "RadioGroup";
|
3357
3405
|
RadioGroup.defaultProps = {
|
@@ -3361,14 +3409,14 @@ RadioGroup.defaultProps = {
|
|
3361
3409
|
};
|
3362
3410
|
|
3363
3411
|
// src/components/radio/index.ts
|
3364
|
-
var
|
3412
|
+
var import_react71 = require("@chakra-ui/react");
|
3365
3413
|
|
3366
3414
|
// src/components/rating/components/rating.tsx
|
3367
|
-
var
|
3415
|
+
var import_react72 = require("@chakra-ui/react");
|
3368
3416
|
var import_internal_icon6 = require("@ctlyst.id/internal-icon");
|
3369
|
-
var
|
3417
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
3370
3418
|
var Rating = ({ value }) => {
|
3371
|
-
return /* @__PURE__ */ (0,
|
3419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react72.Grid, { gap: "4px", display: "flex", children: [...Array(5)].map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_internal_icon6.Rating, { color: i < value ? "#FFA230" : "#E0E0E0", size: 24 })) });
|
3372
3420
|
};
|
3373
3421
|
var rating_default = Rating;
|
3374
3422
|
|
@@ -3377,16 +3425,16 @@ var import_system7 = require("@chakra-ui/system");
|
|
3377
3425
|
var import_react_select = __toESM(require("react-select"));
|
3378
3426
|
|
3379
3427
|
// src/config/theme/foundations/shadows.ts
|
3380
|
-
var
|
3428
|
+
var import_react73 = require("@chakra-ui/react");
|
3381
3429
|
var shadows = {
|
3382
|
-
...
|
3430
|
+
...import_react73.theme.shadows,
|
3383
3431
|
raised: "0px 4px 20px rgba(0, 0, 0, 0.05)"
|
3384
3432
|
};
|
3385
3433
|
|
3386
3434
|
// src/config/theme/foundations/sizes.ts
|
3387
|
-
var
|
3435
|
+
var import_react74 = require("@chakra-ui/react");
|
3388
3436
|
var sizes = {
|
3389
|
-
...
|
3437
|
+
...import_react74.theme.sizes,
|
3390
3438
|
4.5: "1.125rem",
|
3391
3439
|
9.5: "2.375rem",
|
3392
3440
|
18: "4.5rem",
|
@@ -3396,9 +3444,9 @@ var sizes = {
|
|
3396
3444
|
};
|
3397
3445
|
|
3398
3446
|
// src/config/theme/foundations/spacing.ts
|
3399
|
-
var
|
3447
|
+
var import_react75 = require("@chakra-ui/react");
|
3400
3448
|
var spacing = {
|
3401
|
-
...
|
3449
|
+
...import_react75.theme.space,
|
3402
3450
|
4.5: "1.125rem",
|
3403
3451
|
9.5: "2.375rem",
|
3404
3452
|
18: "4.5rem",
|
@@ -3643,13 +3691,13 @@ var selectStyle = {
|
|
3643
3691
|
};
|
3644
3692
|
function selectStyles(colorMode, _isError) {
|
3645
3693
|
return {
|
3646
|
-
control: (base, {
|
3694
|
+
control: (base, { isFocused }) => {
|
3647
3695
|
const style = {
|
3648
3696
|
...base,
|
3649
3697
|
flexWrap: "nowrap",
|
3650
3698
|
borderColor: isFocused ? "var(--chakra-colors-primary-500)" : "var(--chakra-colors-neutral-400)",
|
3651
3699
|
boxShadow: "none",
|
3652
|
-
color:
|
3700
|
+
color: "var(--chakra-colors-black-low)",
|
3653
3701
|
"&:hover": {
|
3654
3702
|
borderColor: _isError ? "" : isFocused ? "var(--chakra-colors-primary-500)" : "var(--chakra-colors-neutral-500)"
|
3655
3703
|
}
|
@@ -3667,23 +3715,47 @@ function selectStyles(colorMode, _isError) {
|
|
3667
3715
|
...selectStyle,
|
3668
3716
|
color: "var(--chakra-colors-neutral-900)"
|
3669
3717
|
}),
|
3670
|
-
menu: (base) =>
|
3671
|
-
|
3672
|
-
|
3673
|
-
|
3674
|
-
|
3675
|
-
|
3676
|
-
|
3677
|
-
|
3678
|
-
|
3718
|
+
menu: (base) => {
|
3719
|
+
return {
|
3720
|
+
...base,
|
3721
|
+
...selectStyle,
|
3722
|
+
zIndex: 5
|
3723
|
+
};
|
3724
|
+
},
|
3725
|
+
singleValue: (base) => {
|
3726
|
+
return { ...base, ...selectStyle };
|
3727
|
+
},
|
3728
|
+
input: (base) => {
|
3729
|
+
return { ...base, ...selectStyle };
|
3730
|
+
},
|
3731
|
+
dropdownIndicator: (base) => {
|
3732
|
+
return { ...base, ...selectStyle };
|
3733
|
+
},
|
3734
|
+
indicatorSeparator: (base) => {
|
3735
|
+
return { ...base, ...selectStyle };
|
3679
3736
|
},
|
3680
|
-
singleValue: (base) => colorMode === "dark" ? { ...base, ...selectStyle, color: "white" } : { ...base, ...selectStyle },
|
3681
|
-
input: (base) => colorMode === "dark" ? { ...base, ...selectStyle, color: "white" } : { ...base, ...selectStyle },
|
3682
|
-
dropdownIndicator: (base) => colorMode === "dark" ? { ...base, ...selectStyle, color: "secondary.500" } : { ...base, ...selectStyle },
|
3683
|
-
indicatorSeparator: (base) => colorMode === "dark" ? { ...base, ...selectStyle, backgroundColor: "secondary.500" } : { ...base, ...selectStyle },
|
3684
3737
|
placeholder: (base) => {
|
3685
|
-
return { ...base, ...selectStyle, color: "black
|
3686
|
-
}
|
3738
|
+
return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)" };
|
3739
|
+
},
|
3740
|
+
multiValue: (base) => {
|
3741
|
+
return {
|
3742
|
+
...base,
|
3743
|
+
borderRadius: 4,
|
3744
|
+
backgroundColor: "var(--chakra-colors-neutral-200)"
|
3745
|
+
};
|
3746
|
+
},
|
3747
|
+
multiValueLabel: (base) => ({
|
3748
|
+
...base,
|
3749
|
+
borderRadius: 4,
|
3750
|
+
fontWeight: "bold"
|
3751
|
+
}),
|
3752
|
+
multiValueRemove: (base) => ({
|
3753
|
+
...base,
|
3754
|
+
color: "var(--chakra-colors-neutral-900)",
|
3755
|
+
":hover": {
|
3756
|
+
backgroundColor: "var(--chakra-colors-neutral-300)"
|
3757
|
+
}
|
3758
|
+
})
|
3687
3759
|
};
|
3688
3760
|
}
|
3689
3761
|
var themeSelect = (theme6) => {
|
@@ -3700,14 +3772,14 @@ var themeSelect = (theme6) => {
|
|
3700
3772
|
};
|
3701
3773
|
|
3702
3774
|
// src/components/select/components/select.tsx
|
3703
|
-
var
|
3775
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
3704
3776
|
function Select2({
|
3705
3777
|
styles,
|
3706
3778
|
isError = false,
|
3707
3779
|
...rest
|
3708
3780
|
}) {
|
3709
3781
|
const { colorMode } = (0, import_system7.useColorMode)();
|
3710
|
-
return /* @__PURE__ */ (0,
|
3782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
3711
3783
|
import_react_select.default,
|
3712
3784
|
{
|
3713
3785
|
classNamePrefix: "react-select",
|
@@ -3722,14 +3794,14 @@ var select_default = Select2;
|
|
3722
3794
|
// src/components/select/components/select-async.tsx
|
3723
3795
|
var import_system8 = require("@chakra-ui/system");
|
3724
3796
|
var import_react_select_async_paginate = require("react-select-async-paginate");
|
3725
|
-
var
|
3797
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
3726
3798
|
function SelectAsync({
|
3727
3799
|
styles,
|
3728
3800
|
isError = false,
|
3729
3801
|
...rest
|
3730
3802
|
}) {
|
3731
3803
|
const { colorMode } = (0, import_system8.useColorMode)();
|
3732
|
-
return /* @__PURE__ */ (0,
|
3804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
3733
3805
|
import_react_select_async_paginate.AsyncPaginate,
|
3734
3806
|
{
|
3735
3807
|
classNamePrefix: "react-select",
|
@@ -3744,10 +3816,10 @@ var select_async_default = SelectAsync;
|
|
3744
3816
|
// src/components/select/components/select-async-creatable.tsx
|
3745
3817
|
var import_system9 = require("@chakra-ui/system");
|
3746
3818
|
var import_async_creatable = __toESM(require("react-select/async-creatable"));
|
3747
|
-
var
|
3819
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
3748
3820
|
function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
3749
3821
|
const { colorMode } = (0, import_system9.useColorMode)();
|
3750
|
-
return /* @__PURE__ */ (0,
|
3822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
3751
3823
|
import_async_creatable.default,
|
3752
3824
|
{
|
3753
3825
|
classNamePrefix: "react-select",
|
@@ -3761,10 +3833,10 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
3761
3833
|
// src/components/select/components/select-creatable.tsx
|
3762
3834
|
var import_system10 = require("@chakra-ui/system");
|
3763
3835
|
var import_creatable = __toESM(require("react-select/creatable"));
|
3764
|
-
var
|
3836
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
3765
3837
|
function SelectCreatable({ styles, isError = false, ...rest }) {
|
3766
3838
|
const { colorMode } = (0, import_system10.useColorMode)();
|
3767
|
-
return /* @__PURE__ */ (0,
|
3839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3768
3840
|
import_creatable.default,
|
3769
3841
|
{
|
3770
3842
|
classNamePrefix: "react-select",
|
@@ -3775,17 +3847,154 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
3775
3847
|
);
|
3776
3848
|
}
|
3777
3849
|
|
3850
|
+
// src/components/select/components/select-with-checkbox.tsx
|
3851
|
+
var import_react76 = require("@chakra-ui/react");
|
3852
|
+
var import_system11 = require("@chakra-ui/system");
|
3853
|
+
var import_react_select2 = __toESM(require("react-select"));
|
3854
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
3855
|
+
var CHECKBOX_STATE = {
|
3856
|
+
UNCHECKED: 0,
|
3857
|
+
INDETERMINATE: 1,
|
3858
|
+
CHECKED: 2
|
3859
|
+
};
|
3860
|
+
var getSelectAllCheckboxState = (totalSelected, totalOption) => {
|
3861
|
+
if (totalSelected < 0 || totalOption < 0) {
|
3862
|
+
throw new Error("value less than 0");
|
3863
|
+
}
|
3864
|
+
if (totalSelected > totalOption) {
|
3865
|
+
throw new Error("totalSelected couldn't be more than totalOption");
|
3866
|
+
}
|
3867
|
+
if (totalSelected === 0) {
|
3868
|
+
return CHECKBOX_STATE.UNCHECKED;
|
3869
|
+
}
|
3870
|
+
if (totalSelected < totalOption) {
|
3871
|
+
return CHECKBOX_STATE.INDETERMINATE;
|
3872
|
+
}
|
3873
|
+
if (totalSelected === totalOption) {
|
3874
|
+
return CHECKBOX_STATE.CHECKED;
|
3875
|
+
}
|
3876
|
+
return CHECKBOX_STATE.UNCHECKED;
|
3877
|
+
};
|
3878
|
+
var InputOption = ({
|
3879
|
+
getStyles,
|
3880
|
+
isDisabled,
|
3881
|
+
isFocused,
|
3882
|
+
isSelected,
|
3883
|
+
children,
|
3884
|
+
innerProps,
|
3885
|
+
data,
|
3886
|
+
checkedState,
|
3887
|
+
isMulti,
|
3888
|
+
...rest
|
3889
|
+
}) => {
|
3890
|
+
const style = {
|
3891
|
+
alignItems: "center",
|
3892
|
+
color: "inherit",
|
3893
|
+
display: "flex "
|
3894
|
+
};
|
3895
|
+
const props = {
|
3896
|
+
...innerProps,
|
3897
|
+
"aria-disabled": isDisabled,
|
3898
|
+
onClick: isDisabled ? void 0 : innerProps.onClick,
|
3899
|
+
style
|
3900
|
+
};
|
3901
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
|
3902
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3903
|
+
import_react_select2.components.Option,
|
3904
|
+
{
|
3905
|
+
isMulti: true,
|
3906
|
+
data,
|
3907
|
+
isDisabled,
|
3908
|
+
isFocused,
|
3909
|
+
isSelected,
|
3910
|
+
getStyles,
|
3911
|
+
innerProps: props,
|
3912
|
+
...rest,
|
3913
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
3914
|
+
import_react76.Flex,
|
3915
|
+
{
|
3916
|
+
alignItems: "center",
|
3917
|
+
width: "100%",
|
3918
|
+
mb: "3px",
|
3919
|
+
gap: 2,
|
3920
|
+
"data-test-id": "CT_component_select-checkbox_options",
|
3921
|
+
cursor: isDisabled ? "not-allowed" : "default",
|
3922
|
+
children: [
|
3923
|
+
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3924
|
+
import_react76.Checkbox,
|
3925
|
+
{
|
3926
|
+
isChecked: checkedState === CHECKBOX_STATE.CHECKED,
|
3927
|
+
isIndeterminate: checkedState === CHECKBOX_STATE.INDETERMINATE,
|
3928
|
+
isDisabled,
|
3929
|
+
"data-test-id": "CT_component_select-checkbox_select-all-option"
|
3930
|
+
}
|
3931
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react76.Checkbox, { isChecked: isSelected, "data-test-id": "CT_component_select-checkbox_option-checkbox" }),
|
3932
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react76.Text, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
|
3933
|
+
]
|
3934
|
+
}
|
3935
|
+
)
|
3936
|
+
}
|
3937
|
+
),
|
3938
|
+
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("hr", {}) : null
|
3939
|
+
] });
|
3940
|
+
};
|
3941
|
+
var SelectWithCheckboxBase = ({
|
3942
|
+
isError = false,
|
3943
|
+
components,
|
3944
|
+
options,
|
3945
|
+
...rest
|
3946
|
+
}) => {
|
3947
|
+
const { colorMode } = (0, import_system11.useColorMode)();
|
3948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3949
|
+
import_react_select2.default,
|
3950
|
+
{
|
3951
|
+
classNamePrefix: "react-select",
|
3952
|
+
options,
|
3953
|
+
styles: { ...selectStyles(colorMode, !!isError) },
|
3954
|
+
theme: themeSelect,
|
3955
|
+
closeMenuOnSelect: false,
|
3956
|
+
hideSelectedOptions: false,
|
3957
|
+
components: {
|
3958
|
+
...components
|
3959
|
+
},
|
3960
|
+
...rest
|
3961
|
+
}
|
3962
|
+
);
|
3963
|
+
};
|
3964
|
+
var SelectCheckbox = (props) => {
|
3965
|
+
const { isMulti, options, value, ...rest } = props;
|
3966
|
+
const selectValue = value || [];
|
3967
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3968
|
+
SelectWithCheckboxBase,
|
3969
|
+
{
|
3970
|
+
isMulti,
|
3971
|
+
options,
|
3972
|
+
components: {
|
3973
|
+
Option: (optionProps) => {
|
3974
|
+
const { isSelected, data } = optionProps;
|
3975
|
+
const optionLength = (options == null ? void 0 : options.length) ? options.length - 1 : 0;
|
3976
|
+
const selectedValue = isSelected ? CHECKBOX_STATE.CHECKED : CHECKBOX_STATE.UNCHECKED;
|
3977
|
+
const checkedState = data.selectAllCheckbox ? getSelectAllCheckboxState(selectValue == null ? void 0 : selectValue.length, optionLength) : selectedValue;
|
3978
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(InputOption, { ...optionProps, checkedState });
|
3979
|
+
}
|
3980
|
+
},
|
3981
|
+
...rest
|
3982
|
+
}
|
3983
|
+
);
|
3984
|
+
};
|
3985
|
+
var select_with_checkbox_default = SelectCheckbox;
|
3986
|
+
|
3778
3987
|
// src/components/switch/components/switch.tsx
|
3779
|
-
var
|
3780
|
-
var
|
3988
|
+
var import_react77 = require("@chakra-ui/react");
|
3989
|
+
var import_shared_utils10 = require("@chakra-ui/shared-utils");
|
3781
3990
|
var import_internal_icon7 = require("@ctlyst.id/internal-icon");
|
3782
|
-
var
|
3783
|
-
var
|
3784
|
-
var Switch = (0,
|
3785
|
-
const styles = (0,
|
3786
|
-
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0,
|
3787
|
-
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0,
|
3788
|
-
const containerStyles = (0,
|
3991
|
+
var import_react78 = require("react");
|
3992
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
3993
|
+
var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
3994
|
+
const styles = (0, import_react77.useMultiStyleConfig)("Switch", props);
|
3995
|
+
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0, import_react77.omitThemingProps)(props);
|
3996
|
+
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0, import_react77.useCheckbox)(ownProps);
|
3997
|
+
const containerStyles = (0, import_react78.useMemo)(
|
3789
3998
|
() => ({
|
3790
3999
|
display: "inline-block",
|
3791
4000
|
position: "relative",
|
@@ -3795,7 +4004,7 @@ var Switch = (0, import_react75.forwardRef)(function Switch2(props, ref) {
|
|
3795
4004
|
}),
|
3796
4005
|
[styles.container]
|
3797
4006
|
);
|
3798
|
-
const trackStyles = (0,
|
4007
|
+
const trackStyles = (0, import_react78.useMemo)(
|
3799
4008
|
() => ({
|
3800
4009
|
display: "inline-flex",
|
3801
4010
|
flexShrink: 0,
|
@@ -3807,7 +4016,7 @@ var Switch = (0, import_react75.forwardRef)(function Switch2(props, ref) {
|
|
3807
4016
|
}),
|
3808
4017
|
[styles.track]
|
3809
4018
|
);
|
3810
|
-
const labelStyles = (0,
|
4019
|
+
const labelStyles = (0, import_react78.useMemo)(
|
3811
4020
|
() => ({
|
3812
4021
|
userSelect: "none",
|
3813
4022
|
marginStart: spacing2,
|
@@ -3823,33 +4032,33 @@ var Switch = (0, import_react75.forwardRef)(function Switch2(props, ref) {
|
|
3823
4032
|
};
|
3824
4033
|
return iconSize[value];
|
3825
4034
|
};
|
3826
|
-
return /* @__PURE__ */ (0,
|
3827
|
-
|
4035
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
4036
|
+
import_react77.chakra.label,
|
3828
4037
|
{
|
3829
4038
|
...getRootProps(),
|
3830
4039
|
display: "flex",
|
3831
4040
|
alignItems: "center",
|
3832
|
-
className: (0,
|
4041
|
+
className: (0, import_shared_utils10.cx)("chakra-switch", props.className),
|
3833
4042
|
__css: containerStyles,
|
3834
4043
|
children: [
|
3835
|
-
/* @__PURE__ */ (0,
|
3836
|
-
/* @__PURE__ */ (0,
|
3837
|
-
/* @__PURE__ */ (0,
|
3838
|
-
/* @__PURE__ */ (0,
|
3839
|
-
/* @__PURE__ */ (0,
|
4044
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
4045
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react77.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
4046
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react77.Flex, { gap: 2, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
|
4047
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_internal_icon7.Check, { color: "white", size: getIconSize(props.size) }),
|
4048
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_internal_icon7.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
3840
4049
|
] }),
|
3841
|
-
/* @__PURE__ */ (0,
|
3842
|
-
|
4050
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4051
|
+
import_react77.chakra.span,
|
3843
4052
|
{
|
3844
4053
|
__css: styles.thumb,
|
3845
4054
|
className: "chakra-switch__thumb",
|
3846
|
-
"data-checked": (0,
|
3847
|
-
"data-hover": (0,
|
4055
|
+
"data-checked": (0, import_shared_utils10.dataAttr)(state.isChecked),
|
4056
|
+
"data-hover": (0, import_shared_utils10.dataAttr)(state.isHovered)
|
3848
4057
|
}
|
3849
4058
|
)
|
3850
4059
|
] }),
|
3851
|
-
children && /* @__PURE__ */ (0,
|
3852
|
-
|
4060
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4061
|
+
import_react77.chakra.span,
|
3853
4062
|
{
|
3854
4063
|
className: "chakra-switch__label",
|
3855
4064
|
color: state.isDisabled ? "black.low" : "black.high",
|
@@ -3868,18 +4077,18 @@ Switch.defaultProps = {
|
|
3868
4077
|
var switch_default = Switch;
|
3869
4078
|
|
3870
4079
|
// src/components/table/index.tsx
|
3871
|
-
var
|
4080
|
+
var import_react79 = require("@chakra-ui/react");
|
3872
4081
|
|
3873
4082
|
// src/components/tabs/components/tab.tsx
|
3874
|
-
var
|
3875
|
-
var
|
3876
|
-
var Tab = (0,
|
4083
|
+
var import_react80 = require("@chakra-ui/react");
|
4084
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
4085
|
+
var Tab = (0, import_react80.forwardRef)((props, ref) => {
|
3877
4086
|
var _a, _b;
|
3878
|
-
const tabProps = (0,
|
4087
|
+
const tabProps = (0, import_react80.useTab)({ ...props, ref });
|
3879
4088
|
const isSelected = !!tabProps["aria-selected"];
|
3880
|
-
const styles = (0,
|
3881
|
-
return /* @__PURE__ */ (0,
|
3882
|
-
|
4089
|
+
const styles = (0, import_react80.useMultiStyleConfig)("Tabs", tabProps);
|
4090
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
4091
|
+
import_react80.Button,
|
3883
4092
|
{
|
3884
4093
|
"data-test-id": props["data-test-id"],
|
3885
4094
|
p: 4,
|
@@ -3904,7 +4113,7 @@ var Tab = (0, import_react78.forwardRef)((props, ref) => {
|
|
3904
4113
|
},
|
3905
4114
|
__css: styles.tab,
|
3906
4115
|
...tabProps,
|
3907
|
-
children: /* @__PURE__ */ (0,
|
4116
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_react80.Flex, { alignItems: "center", children: [
|
3908
4117
|
(_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
|
3909
4118
|
tabProps.children,
|
3910
4119
|
(_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
|
@@ -3915,16 +4124,16 @@ var Tab = (0, import_react78.forwardRef)((props, ref) => {
|
|
3915
4124
|
var tab_default = Tab;
|
3916
4125
|
|
3917
4126
|
// src/components/tabs/index.ts
|
3918
|
-
var
|
4127
|
+
var import_react81 = require("@chakra-ui/react");
|
3919
4128
|
|
3920
4129
|
// src/components/text/index.ts
|
3921
|
-
var
|
4130
|
+
var import_react82 = require("@chakra-ui/react");
|
3922
4131
|
|
3923
4132
|
// src/components/tooltip/index.ts
|
3924
|
-
var
|
4133
|
+
var import_react83 = require("@chakra-ui/react");
|
3925
4134
|
|
3926
4135
|
// src/components/uploader/components/uploader.tsx
|
3927
|
-
var
|
4136
|
+
var import_react84 = require("@chakra-ui/react");
|
3928
4137
|
var React15 = __toESM(require("react"));
|
3929
4138
|
var import_react_dropzone = require("react-dropzone");
|
3930
4139
|
|
@@ -3938,7 +4147,7 @@ var messages = {
|
|
3938
4147
|
};
|
3939
4148
|
|
3940
4149
|
// src/components/uploader/components/uploader.tsx
|
3941
|
-
var
|
4150
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
3942
4151
|
var Uploader = ({
|
3943
4152
|
onHandleUploadFile,
|
3944
4153
|
onHandleRejections,
|
@@ -3986,9 +4195,9 @@ var Uploader = ({
|
|
3986
4195
|
React15.useEffect(() => {
|
3987
4196
|
setIsSelected(selected != null ? selected : false);
|
3988
4197
|
}, [selected]);
|
3989
|
-
return /* @__PURE__ */ (0,
|
3990
|
-
/* @__PURE__ */ (0,
|
3991
|
-
|
4198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react84.Stack, { direction: "column", children: [
|
4199
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
4200
|
+
import_react84.Flex,
|
3992
4201
|
{
|
3993
4202
|
minH: 200,
|
3994
4203
|
border: "1px dashed",
|
@@ -3999,11 +4208,11 @@ var Uploader = ({
|
|
3999
4208
|
...props,
|
4000
4209
|
...getRootProps(),
|
4001
4210
|
children: [
|
4002
|
-
/* @__PURE__ */ (0,
|
4003
|
-
isDragActive ? /* @__PURE__ */ (0,
|
4004
|
-
!multiple && isSelected && /* @__PURE__ */ (0,
|
4005
|
-
!isSelected && /* @__PURE__ */ (0,
|
4006
|
-
isSelected ? /* @__PURE__ */ (0,
|
4211
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("input", { ...getInputProps() }),
|
4212
|
+
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react84.Text, { children: messages.dragActive }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react84.Flex, { flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : "primary.500", children: [
|
4213
|
+
!multiple && isSelected && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react84.Heading, { fontWeight: 400, fontSize: "18px", lineHeight: 28, color: "black.high", mb: 2, children: selectedFirstFile == null ? void 0 : selectedFirstFile.name }),
|
4214
|
+
!isSelected && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react84.Heading, { fontWeight: 400, fontSize: "18px", lineHeight: 28, mb: 2, children: messages.uploadFile }),
|
4215
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react84.Text, { children: messages.dragReplace }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react84.Text, { children: messages.dragInActive })
|
4007
4216
|
] })
|
4008
4217
|
]
|
4009
4218
|
}
|
@@ -4020,10 +4229,10 @@ Uploader.defaultProps = {
|
|
4020
4229
|
var uploader_default = Uploader;
|
4021
4230
|
|
4022
4231
|
// src/components/index.ts
|
4023
|
-
var
|
4232
|
+
var import_react85 = require("@chakra-ui/react");
|
4024
4233
|
|
4025
4234
|
// src/config/theme/themeConfiguration.ts
|
4026
|
-
var
|
4235
|
+
var import_react92 = require("@chakra-ui/react");
|
4027
4236
|
|
4028
4237
|
// src/config/theme/components/index.ts
|
4029
4238
|
var components_exports = {};
|
@@ -4566,8 +4775,8 @@ var card_default2 = CardStyle;
|
|
4566
4775
|
|
4567
4776
|
// src/config/theme/components/checkbox.ts
|
4568
4777
|
var import_anatomy3 = require("@chakra-ui/anatomy");
|
4569
|
-
var
|
4570
|
-
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0,
|
4778
|
+
var import_react86 = require("@chakra-ui/react");
|
4779
|
+
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0, import_react86.createMultiStyleConfigHelpers)(import_anatomy3.checkboxAnatomy.keys);
|
4571
4780
|
var baseStyle3 = definePartsStyle3({
|
4572
4781
|
control: {
|
4573
4782
|
borderRadius: "sm",
|
@@ -4657,14 +4866,14 @@ var variants2 = {
|
|
4657
4866
|
errors,
|
4658
4867
|
unstyled
|
4659
4868
|
};
|
4660
|
-
var
|
4869
|
+
var Checkbox4 = defineMultiStyleConfig3({
|
4661
4870
|
baseStyle: baseStyle3,
|
4662
4871
|
variants: variants2,
|
4663
4872
|
defaultProps: {
|
4664
4873
|
variant: "unstyled"
|
4665
4874
|
}
|
4666
4875
|
});
|
4667
|
-
var checkbox_default2 =
|
4876
|
+
var checkbox_default2 = Checkbox4;
|
4668
4877
|
|
4669
4878
|
// src/config/theme/components/chips.ts
|
4670
4879
|
var import_styled_system5 = require("@chakra-ui/styled-system");
|
@@ -4751,7 +4960,7 @@ var baseStyle5 = definePartsStyle4({
|
|
4751
4960
|
minWidth: 0,
|
4752
4961
|
outline: 0,
|
4753
4962
|
px: 2,
|
4754
|
-
py: 2
|
4963
|
+
py: 2,
|
4755
4964
|
paddingInlineStart: 2,
|
4756
4965
|
paddingInlineEnd: 2,
|
4757
4966
|
position: "relative",
|
@@ -4851,8 +5060,8 @@ var input_default = Input3;
|
|
4851
5060
|
|
4852
5061
|
// src/config/theme/components/loader.ts
|
4853
5062
|
var import_styled_system8 = require("@chakra-ui/styled-system");
|
4854
|
-
var
|
4855
|
-
var rotate = (0,
|
5063
|
+
var import_react87 = require("@emotion/react");
|
5064
|
+
var rotate = (0, import_react87.keyframes)({
|
4856
5065
|
"0%": {
|
4857
5066
|
transform: "rotate(0deg)"
|
4858
5067
|
},
|
@@ -4982,8 +5191,8 @@ var modal_default = Modal3;
|
|
4982
5191
|
|
4983
5192
|
// src/config/theme/components/popover.ts
|
4984
5193
|
var import_anatomy5 = require("@chakra-ui/anatomy");
|
4985
|
-
var
|
4986
|
-
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0,
|
5194
|
+
var import_react88 = require("@chakra-ui/react");
|
5195
|
+
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0, import_react88.createMultiStyleConfigHelpers)(import_anatomy5.popoverAnatomy.keys);
|
4987
5196
|
var baseStyle6 = definePartsStyle5({
|
4988
5197
|
content: {
|
4989
5198
|
bg: "white"
|
@@ -4994,8 +5203,8 @@ var popover_default = popoverTheme;
|
|
4994
5203
|
|
4995
5204
|
// src/config/theme/components/radio.ts
|
4996
5205
|
var import_anatomy6 = require("@chakra-ui/anatomy");
|
4997
|
-
var
|
4998
|
-
var { definePartsStyle: definePartsStyle6, defineMultiStyleConfig: defineMultiStyleConfig6 } = (0,
|
5206
|
+
var import_react89 = require("@chakra-ui/react");
|
5207
|
+
var { definePartsStyle: definePartsStyle6, defineMultiStyleConfig: defineMultiStyleConfig6 } = (0, import_react89.createMultiStyleConfigHelpers)(import_anatomy6.radioAnatomy.keys);
|
4999
5208
|
var baseStyle7 = definePartsStyle6({
|
5000
5209
|
control: {
|
5001
5210
|
border: "1px solid",
|
@@ -5434,7 +5643,7 @@ var tabsTheme = defineMultiStyleConfig9({
|
|
5434
5643
|
var tabs_default = tabsTheme;
|
5435
5644
|
|
5436
5645
|
// src/config/theme/components/textarea.ts
|
5437
|
-
var
|
5646
|
+
var import_react90 = require("@chakra-ui/react");
|
5438
5647
|
var getProps = (props) => {
|
5439
5648
|
const { isError, isSuccess, isDisabled } = props;
|
5440
5649
|
let borderColor = "neutral.400";
|
@@ -5454,7 +5663,7 @@ var getProps = (props) => {
|
|
5454
5663
|
borderColor
|
5455
5664
|
};
|
5456
5665
|
};
|
5457
|
-
var outline2 = (0,
|
5666
|
+
var outline2 = (0, import_react90.defineStyle)((props) => {
|
5458
5667
|
const { focusBorderColor, borderColor } = getProps(props);
|
5459
5668
|
return {
|
5460
5669
|
background: "white.high",
|
@@ -5498,7 +5707,7 @@ var outline2 = (0, import_react88.defineStyle)((props) => {
|
|
5498
5707
|
}
|
5499
5708
|
};
|
5500
5709
|
});
|
5501
|
-
var Textarea = (0,
|
5710
|
+
var Textarea = (0, import_react90.defineStyleConfig)({
|
5502
5711
|
variants: { outline: outline2 },
|
5503
5712
|
defaultProps: {
|
5504
5713
|
variant: "outline"
|
@@ -5507,14 +5716,14 @@ var Textarea = (0, import_react88.defineStyleConfig)({
|
|
5507
5716
|
var textarea_default2 = Textarea;
|
5508
5717
|
|
5509
5718
|
// src/config/theme/components/tooltip.ts
|
5510
|
-
var
|
5511
|
-
var $arrowBg = (0,
|
5719
|
+
var import_react91 = require("@chakra-ui/react");
|
5720
|
+
var $arrowBg = (0, import_react91.cssVar)("popper-arrow-bg");
|
5512
5721
|
var baseStyle10 = {
|
5513
5722
|
bg: "neutral.700",
|
5514
5723
|
fontSize: "text.sm",
|
5515
5724
|
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
5516
5725
|
};
|
5517
|
-
var Tooltip2 = (0,
|
5726
|
+
var Tooltip2 = (0, import_react91.defineStyleConfig)({ baseStyle: baseStyle10 });
|
5518
5727
|
var tooltip_default = Tooltip2;
|
5519
5728
|
|
5520
5729
|
// src/config/theme/themeConfiguration.ts
|
@@ -5524,7 +5733,7 @@ var config = {
|
|
5524
5733
|
useSystemColorMode: false
|
5525
5734
|
};
|
5526
5735
|
var getTheme = (foundations) => {
|
5527
|
-
return (0,
|
5736
|
+
return (0, import_react92.extendTheme)({
|
5528
5737
|
...foundations,
|
5529
5738
|
components: {
|
5530
5739
|
...components_exports
|
@@ -5540,7 +5749,7 @@ var getTheme = (foundations) => {
|
|
5540
5749
|
config
|
5541
5750
|
});
|
5542
5751
|
};
|
5543
|
-
var theme5 = (0,
|
5752
|
+
var theme5 = (0, import_react92.extendTheme)({
|
5544
5753
|
components: {
|
5545
5754
|
...components_exports
|
5546
5755
|
},
|
@@ -5560,23 +5769,23 @@ var theme5 = (0, import_react90.extendTheme)({
|
|
5560
5769
|
|
5561
5770
|
// src/hooks/useFetcher.ts
|
5562
5771
|
var import_axios2 = __toESM(require("axios"));
|
5563
|
-
var
|
5772
|
+
var import_react95 = require("react");
|
5564
5773
|
|
5565
5774
|
// src/provider/components/provider.tsx
|
5566
5775
|
var import_axios = __toESM(require("axios"));
|
5567
|
-
var
|
5776
|
+
var import_react93 = require("react");
|
5568
5777
|
var import_react_toastify = require("react-toastify");
|
5569
|
-
var
|
5570
|
-
var ProviderContext = (0,
|
5778
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
5779
|
+
var ProviderContext = (0, import_react93.createContext)({
|
5571
5780
|
instance: void 0
|
5572
5781
|
});
|
5573
5782
|
var useInternalUI = () => {
|
5574
|
-
const { instance } = (0,
|
5783
|
+
const { instance } = (0, import_react93.useContext)(ProviderContext);
|
5575
5784
|
return { instance };
|
5576
5785
|
};
|
5577
5786
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
5578
|
-
const instanceRef = (0,
|
5579
|
-
(0,
|
5787
|
+
const instanceRef = (0, import_react93.useRef)(import_axios.default.create(config2));
|
5788
|
+
(0, import_react93.useEffect)(() => {
|
5580
5789
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
5581
5790
|
instanceRef.current.interceptors.request.use(interceptor);
|
5582
5791
|
});
|
@@ -5584,9 +5793,9 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
5584
5793
|
instanceRef.current.interceptors.response.use(interceptor);
|
5585
5794
|
});
|
5586
5795
|
}, [requestInterceptors, responseInterceptors]);
|
5587
|
-
const provider = (0,
|
5588
|
-
return /* @__PURE__ */ (0,
|
5589
|
-
/* @__PURE__ */ (0,
|
5796
|
+
const provider = (0, import_react93.useMemo)(() => ({ instance: instanceRef.current }), []);
|
5797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(ProviderContext.Provider, { value: provider, children: [
|
5798
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_toastify.ToastContainer, {}),
|
5590
5799
|
children
|
5591
5800
|
] });
|
5592
5801
|
};
|
@@ -5594,12 +5803,12 @@ Provider.displayName = "Provider";
|
|
5594
5803
|
var provider_default = Provider;
|
5595
5804
|
|
5596
5805
|
// src/provider/index.ts
|
5597
|
-
var
|
5806
|
+
var import_react94 = require("@chakra-ui/react");
|
5598
5807
|
|
5599
5808
|
// src/hooks/useFetcher.ts
|
5600
5809
|
function useFetcher() {
|
5601
5810
|
const { instance } = useInternalUI();
|
5602
|
-
const axiosInstance = (0,
|
5811
|
+
const axiosInstance = (0, import_react95.useMemo)(() => instance || import_axios2.default, [instance]);
|
5603
5812
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
5604
5813
|
const response = await axiosInstance.request({
|
5605
5814
|
data,
|
@@ -5619,10 +5828,10 @@ function useFetcher() {
|
|
5619
5828
|
}
|
5620
5829
|
|
5621
5830
|
// src/hooks/index.ts
|
5622
|
-
var
|
5831
|
+
var import_react96 = require("@chakra-ui/react");
|
5623
5832
|
|
5624
5833
|
// src/index.ts
|
5625
|
-
var
|
5834
|
+
var import_react97 = require("@chakra-ui/react");
|
5626
5835
|
// Annotate the CommonJS export names for ESM import in node:
|
5627
5836
|
0 && (module.exports = {
|
5628
5837
|
Accordion,
|
@@ -5666,6 +5875,7 @@ var import_react95 = require("@chakra-ui/react");
|
|
5666
5875
|
Button,
|
5667
5876
|
ButtonGroup,
|
5668
5877
|
ButtonGroupProps,
|
5878
|
+
CHECKBOX_STATE,
|
5669
5879
|
Card,
|
5670
5880
|
Center,
|
5671
5881
|
ChakraProvider,
|
@@ -5777,6 +5987,7 @@ var import_react95 = require("@chakra-ui/react");
|
|
5777
5987
|
ModalOverlayProps,
|
5778
5988
|
ModalProps,
|
5779
5989
|
MultiDatePickerMonth,
|
5990
|
+
NavItem,
|
5780
5991
|
NavigationBar,
|
5781
5992
|
OrderedList,
|
5782
5993
|
Pagination,
|
@@ -5812,6 +6023,7 @@ var import_react95 = require("@chakra-ui/react");
|
|
5812
6023
|
Select,
|
5813
6024
|
SelectAsync,
|
5814
6025
|
SelectAsyncCreatable,
|
6026
|
+
SelectCheckBox,
|
5815
6027
|
SelectCreatable,
|
5816
6028
|
Show,
|
5817
6029
|
ShowProps,
|
@@ -5902,6 +6114,7 @@ var import_react95 = require("@chakra-ui/react");
|
|
5902
6114
|
WrapProps,
|
5903
6115
|
extendTheme,
|
5904
6116
|
forwardRef,
|
6117
|
+
getSelectAllCheckboxState,
|
5905
6118
|
getTheme,
|
5906
6119
|
theme,
|
5907
6120
|
useAccordion,
|