@ctlyst.id/internal-ui 2.2.0 → 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 +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +395 -349
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +145 -100
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -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,
|
@@ -75,9 +75,9 @@ __export(src_exports, {
|
|
75
75
|
CHECKBOX_STATE: () => CHECKBOX_STATE,
|
76
76
|
Card: () => card_default,
|
77
77
|
Center: () => import_react47.Center,
|
78
|
-
ChakraProvider: () =>
|
79
|
-
ChakraProviderProps: () =>
|
80
|
-
ChakraTable: () =>
|
78
|
+
ChakraProvider: () => import_react94.ChakraProvider,
|
79
|
+
ChakraProviderProps: () => import_react94.ChakraProviderProps,
|
80
|
+
ChakraTable: () => import_react79.Table,
|
81
81
|
Checkbox: () => checkbox_default,
|
82
82
|
CheckboxGroup: () => checkbox_group_default,
|
83
83
|
CheckboxGroupContext: () => import_react16.CheckboxGroupContext,
|
@@ -88,13 +88,13 @@ __export(src_exports, {
|
|
88
88
|
Chips: () => chips_default,
|
89
89
|
CloseButton: () => import_react9.CloseButton,
|
90
90
|
CloseButtonProps: () => import_react9.CloseButtonProps,
|
91
|
-
Code: () =>
|
92
|
-
CodeProps: () =>
|
93
|
-
Collapse: () =>
|
94
|
-
CollapseProps: () =>
|
95
|
-
ColorMode: () =>
|
96
|
-
ColorModeScript: () =>
|
97
|
-
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,
|
98
98
|
Container: () => import_react47.Container,
|
99
99
|
ContainerProps: () => import_react47.ContainerProps,
|
100
100
|
Counter: () => counter_default,
|
@@ -113,8 +113,8 @@ __export(src_exports, {
|
|
113
113
|
DrawerHeader: () => import_react58.ModalHeader,
|
114
114
|
DrawerOverlay: () => import_react58.ModalOverlay,
|
115
115
|
DrawerProps: () => import_react58.DrawerProps,
|
116
|
-
Fade: () =>
|
117
|
-
FadeProps: () =>
|
116
|
+
Fade: () => import_react85.Fade,
|
117
|
+
FadeProps: () => import_react85.FadeProps,
|
118
118
|
Field: () => field_default,
|
119
119
|
Flex: () => import_react47.Flex,
|
120
120
|
FlexProps: () => import_react47.FlexProps,
|
@@ -130,18 +130,18 @@ __export(src_exports, {
|
|
130
130
|
GridProps: () => import_react47.GridProps,
|
131
131
|
HStack: () => import_react47.HStack,
|
132
132
|
Header: () => header_default,
|
133
|
-
Heading: () =>
|
134
|
-
HeadingProps: () =>
|
135
|
-
Hide: () =>
|
136
|
-
HideProps: () =>
|
133
|
+
Heading: () => import_react82.Heading,
|
134
|
+
HeadingProps: () => import_react82.HeadingProps,
|
135
|
+
Hide: () => import_react85.Hide,
|
136
|
+
HideProps: () => import_react85.HideProps,
|
137
137
|
Icon: () => import_react46.Icon,
|
138
138
|
IconButton: () => import_react9.IconButton,
|
139
139
|
IconButtonProps: () => import_react9.IconButtonProps,
|
140
140
|
IconProps: () => import_react46.IconProps,
|
141
141
|
Image: () => import_react46.Image,
|
142
142
|
ImageProps: () => import_react46.ImageProps,
|
143
|
-
Img: () =>
|
144
|
-
ImgProps: () =>
|
143
|
+
Img: () => import_react85.Img,
|
144
|
+
ImgProps: () => import_react85.ImgProps,
|
145
145
|
InputAddonLeft: () => InputAddonLeft,
|
146
146
|
InputAddonRight: () => InputAddonRight,
|
147
147
|
InputElementLeft: () => import_react20.InputLeftElement,
|
@@ -158,8 +158,8 @@ __export(src_exports, {
|
|
158
158
|
InputRightAddonProps: () => import_react26.InputRightAddonProps,
|
159
159
|
InputRightElement: () => import_react26.InputRightElement,
|
160
160
|
InputRightElementProps: () => import_react26.InputRightElementProps,
|
161
|
-
Link: () =>
|
162
|
-
LinkProps: () =>
|
161
|
+
Link: () => import_react82.Link,
|
162
|
+
LinkProps: () => import_react82.LinkProps,
|
163
163
|
List: () => import_react48.List,
|
164
164
|
ListIcon: () => import_react48.ListIcon,
|
165
165
|
ListItem: () => import_react48.ListItem,
|
@@ -184,132 +184,133 @@ __export(src_exports, {
|
|
184
184
|
ModalOverlayProps: () => import_react58.ModalOverlayProps,
|
185
185
|
ModalProps: () => import_react58.ModalProps,
|
186
186
|
MultiDatePickerMonth: () => multi_datepicker_month_default,
|
187
|
+
NavItem: () => NavItem,
|
187
188
|
NavigationBar: () => navigation_bar_default,
|
188
189
|
OrderedList: () => import_react48.OrderedList,
|
189
190
|
Pagination: () => pagination_default,
|
190
191
|
PaginationDetail: () => pagination_detail_default,
|
191
192
|
PaginationFilter: () => pagination_filter_default,
|
192
|
-
Popover: () =>
|
193
|
-
PopoverAnchor: () =>
|
194
|
-
PopoverArrow: () =>
|
195
|
-
PopoverArrowProps: () =>
|
196
|
-
PopoverBody: () =>
|
197
|
-
PopoverBodyProps: () =>
|
198
|
-
PopoverCloseButton: () =>
|
199
|
-
PopoverContent: () =>
|
200
|
-
PopoverContentProps: () =>
|
201
|
-
PopoverFooter: () =>
|
202
|
-
PopoverFooterProps: () =>
|
203
|
-
PopoverHeader: () =>
|
204
|
-
PopoverHeaderProps: () =>
|
205
|
-
PopoverProps: () =>
|
206
|
-
PopoverTrigger: () =>
|
207
|
-
Portal: () =>
|
208
|
-
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,
|
209
210
|
Provider: () => provider_default,
|
210
211
|
ProviderContext: () => ProviderContext,
|
211
212
|
Radio: () => Radio,
|
212
213
|
RadioGroup: () => RadioGroup,
|
213
|
-
RadioGroupContext: () =>
|
214
|
+
RadioGroupContext: () => import_react71.RadioGroupContext,
|
214
215
|
Rating: () => rating_default,
|
215
216
|
RequiredIndicator: () => import_react26.RequiredIndicator,
|
216
217
|
RequiredIndicatorProps: () => import_react26.RequiredIndicatorProps,
|
217
|
-
ScaleFade: () =>
|
218
|
-
ScaleFadeProps: () =>
|
218
|
+
ScaleFade: () => import_react85.ScaleFade,
|
219
|
+
ScaleFadeProps: () => import_react85.ScaleFadeProps,
|
219
220
|
Select: () => select_default,
|
220
221
|
SelectAsync: () => select_async_default,
|
221
222
|
SelectAsyncCreatable: () => SelectAsyncCreatable,
|
222
223
|
SelectCheckBox: () => select_with_checkbox_default,
|
223
224
|
SelectCreatable: () => SelectCreatable,
|
224
|
-
Show: () =>
|
225
|
-
ShowProps: () =>
|
225
|
+
Show: () => import_react85.Show,
|
226
|
+
ShowProps: () => import_react85.ShowProps,
|
226
227
|
SimpleGrid: () => import_react47.SimpleGrid,
|
227
228
|
Skeleton: () => import_react5.Skeleton,
|
228
|
-
Slide: () =>
|
229
|
-
SlideFade: () =>
|
230
|
-
SlideFadeProps: () =>
|
231
|
-
SlideProps: () =>
|
229
|
+
Slide: () => import_react85.Slide,
|
230
|
+
SlideFade: () => import_react85.SlideFade,
|
231
|
+
SlideFadeProps: () => import_react85.SlideFadeProps,
|
232
|
+
SlideProps: () => import_react85.SlideProps,
|
232
233
|
Spacer: () => import_react47.Spacer,
|
233
234
|
Stack: () => import_react47.Stack,
|
234
235
|
StackProps: () => import_react47.StackProps,
|
235
|
-
Step: () =>
|
236
|
-
StepDescription: () =>
|
237
|
-
StepIcon: () =>
|
238
|
-
StepIndicator: () =>
|
239
|
-
StepNumber: () =>
|
240
|
-
StepSeparator: () =>
|
241
|
-
StepStatus: () =>
|
242
|
-
StepTitle: () =>
|
243
|
-
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,
|
244
245
|
Switch: () => switch_default,
|
245
246
|
Tab: () => tab_default,
|
246
|
-
TabIndicator: () =>
|
247
|
-
TabIndicatorProps: () =>
|
248
|
-
TabList: () =>
|
249
|
-
TabListProps: () =>
|
250
|
-
TabPanel: () =>
|
251
|
-
TabPanelProps: () =>
|
252
|
-
TabPanels: () =>
|
253
|
-
TabPanelsProps: () =>
|
254
|
-
TabProps: () =>
|
255
|
-
TableBodyProps: () =>
|
256
|
-
TableCellProps: () =>
|
257
|
-
TableColumnHeaderProps: () =>
|
258
|
-
TableHeadProps: () =>
|
259
|
-
TableProps: () =>
|
260
|
-
TableRowProps: () =>
|
261
|
-
Tabs: () =>
|
262
|
-
TabsDescendantsProvider: () =>
|
263
|
-
TabsProps: () =>
|
264
|
-
TabsProvider: () =>
|
265
|
-
Tbody: () =>
|
266
|
-
Td: () =>
|
267
|
-
Text: () =>
|
268
|
-
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,
|
269
270
|
TextareaField: () => textarea_default,
|
270
|
-
Th: () =>
|
271
|
-
Thead: () =>
|
271
|
+
Th: () => import_react79.Th,
|
272
|
+
Thead: () => import_react79.Thead,
|
272
273
|
ThemeTypings: () => import_styled_system13.ThemeTypings,
|
273
|
-
Tooltip: () =>
|
274
|
-
TooltipProps: () =>
|
275
|
-
Tr: () =>
|
274
|
+
Tooltip: () => import_react83.Tooltip,
|
275
|
+
TooltipProps: () => import_react83.TooltipProps,
|
276
|
+
Tr: () => import_react79.Tr,
|
276
277
|
UnorderedList: () => import_react48.UnorderedList,
|
277
278
|
Uploader: () => uploader_default,
|
278
279
|
UseAccordionItemProps: () => import_react3.UseAccordionItemProps,
|
279
280
|
UseAccordionItemReturn: () => import_react3.UseAccordionItemReturn,
|
280
281
|
UseAccordionProps: () => import_react3.UseAccordionProps,
|
281
282
|
UseAccordionReturn: () => import_react3.UseAccordionReturn,
|
282
|
-
UseBreakpointOptions: () =>
|
283
|
+
UseBreakpointOptions: () => import_react85.UseBreakpointOptions,
|
283
284
|
UseCheckboxGroupProps: () => import_react16.UseCheckboxGroupProps,
|
284
285
|
UseCheckboxGroupReturn: () => import_react16.UseCheckboxGroupReturn,
|
285
286
|
UseCheckboxProps: () => import_react16.UseCheckboxProps,
|
286
287
|
UseCheckboxReturn: () => import_react16.UseCheckboxReturn,
|
287
|
-
UseDisclosureProps: () =>
|
288
|
-
UseImageProps: () =>
|
289
|
-
UseImageReturn: () =>
|
290
|
-
UseMediaQueryOptions: () =>
|
288
|
+
UseDisclosureProps: () => import_react96.UseDisclosureProps,
|
289
|
+
UseImageProps: () => import_react85.UseImageProps,
|
290
|
+
UseImageReturn: () => import_react85.UseImageReturn,
|
291
|
+
UseMediaQueryOptions: () => import_react85.UseMediaQueryOptions,
|
291
292
|
UseModalProps: () => import_react58.UseModalProps,
|
292
293
|
UseModalReturn: () => import_react58.UseModalReturn,
|
293
|
-
UseQueryProps: () =>
|
294
|
-
UseRadioGroupReturn: () =>
|
295
|
-
UseRadioProps: () =>
|
296
|
-
UseRadioReturn: () =>
|
297
|
-
UseTabListProps: () =>
|
298
|
-
UseTabListReturn: () =>
|
299
|
-
UseTabOptions: () =>
|
300
|
-
UseTabPanelsProps: () =>
|
301
|
-
UseTabProps: () =>
|
302
|
-
UseTabsProps: () =>
|
303
|
-
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,
|
304
305
|
VStack: () => import_react47.VStack,
|
305
|
-
VisuallyHidden: () =>
|
306
|
-
VisuallyHiddenInput: () =>
|
306
|
+
VisuallyHidden: () => import_react85.VisuallyHidden,
|
307
|
+
VisuallyHiddenInput: () => import_react85.VisuallyHiddenInput,
|
307
308
|
Wrap: () => import_react47.Wrap,
|
308
309
|
WrapItem: () => import_react47.WrapItem,
|
309
310
|
WrapItemProps: () => import_react47.WrapItemProps,
|
310
311
|
WrapProps: () => import_react47.WrapProps,
|
311
|
-
extendTheme: () =>
|
312
|
-
forwardRef: () =>
|
312
|
+
extendTheme: () => import_react97.extendTheme,
|
313
|
+
forwardRef: () => import_react97.forwardRef,
|
313
314
|
getSelectAllCheckboxState: () => getSelectAllCheckboxState,
|
314
315
|
getTheme: () => getTheme,
|
315
316
|
theme: () => theme5,
|
@@ -319,47 +320,47 @@ __export(src_exports, {
|
|
319
320
|
useAccordionItemState: () => import_react3.useAccordionItemState,
|
320
321
|
useAccordionStyles: () => import_react3.useAccordionStyles,
|
321
322
|
useAlertStyles: () => useAlertStyles,
|
322
|
-
useBoolean: () =>
|
323
|
-
useBreakpoint: () =>
|
323
|
+
useBoolean: () => import_react96.useBoolean,
|
324
|
+
useBreakpoint: () => import_react85.useBreakpoint,
|
324
325
|
useCheckbox: () => import_react16.useCheckbox,
|
325
326
|
useCheckboxGroup: () => import_react16.useCheckboxGroup,
|
326
|
-
useClipboard: () =>
|
327
|
-
useColorMode: () =>
|
328
|
-
useColorModePreference: () =>
|
329
|
-
useColorModeValue: () =>
|
330
|
-
useConst: () =>
|
331
|
-
useControllableProp: () =>
|
332
|
-
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,
|
333
334
|
useDataTable: () => useDataTable,
|
334
|
-
useDimensions: () =>
|
335
|
-
useDisclosure: () =>
|
335
|
+
useDimensions: () => import_react96.useDimensions,
|
336
|
+
useDisclosure: () => import_react96.useDisclosure,
|
336
337
|
useDrawerContext: () => import_react58.useDrawerContext,
|
337
338
|
useFetcher: () => useFetcher,
|
338
|
-
useImage: () =>
|
339
|
+
useImage: () => import_react85.useImage,
|
339
340
|
useInternalUI: () => useInternalUI,
|
340
|
-
useMergeRefs: () =>
|
341
|
+
useMergeRefs: () => import_react96.useMergeRefs,
|
341
342
|
useModal: () => import_react58.useModal,
|
342
343
|
useModalContext: () => import_react58.useModalContext,
|
343
344
|
useModalStyles: () => import_react58.useModalStyles,
|
344
|
-
useOutsideClick: () =>
|
345
|
-
useQuery: () =>
|
346
|
-
useRadio: () =>
|
347
|
-
useRadioGroup: () =>
|
348
|
-
useRadioGroupContext: () =>
|
349
|
-
useSteps: () =>
|
350
|
-
useTab: () =>
|
351
|
-
useTabIndicator: () =>
|
352
|
-
useTabList: () =>
|
353
|
-
useTabPanel: () =>
|
354
|
-
useTabPanels: () =>
|
355
|
-
useTabs: () =>
|
356
|
-
useTabsContext: () =>
|
357
|
-
useTabsDescendant: () =>
|
358
|
-
useTabsDescendants: () =>
|
359
|
-
useTabsDescendantsContext: () =>
|
360
|
-
useTabsStyles: () =>
|
361
|
-
useTheme: () =>
|
362
|
-
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
|
363
364
|
});
|
364
365
|
module.exports = __toCommonJS(src_exports);
|
365
366
|
|
@@ -2860,34 +2861,78 @@ var modal_header_default = ModalHeader2;
|
|
2860
2861
|
// src/components/modal/index.ts
|
2861
2862
|
var import_react58 = require("@chakra-ui/react");
|
2862
2863
|
|
2863
|
-
// src/components/
|
2864
|
+
// src/components/nav-item/components/nav-item.tsx
|
2864
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");
|
2865
2910
|
var Icon3 = __toESM(require("@ctlyst.id/internal-icon"));
|
2866
|
-
var
|
2911
|
+
var import_react61 = require("@emotion/react");
|
2867
2912
|
|
2868
2913
|
// src/components/navigation/components/mapping-icon.tsx
|
2869
2914
|
var Icon2 = __toESM(require("@ctlyst.id/internal-icon"));
|
2870
|
-
var
|
2915
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
2871
2916
|
var mappingIcon = /* @__PURE__ */ new Map([
|
2872
|
-
["Order", /* @__PURE__ */ (0,
|
2873
|
-
["Fulfillment", /* @__PURE__ */ (0,
|
2874
|
-
["Transfer Stock", /* @__PURE__ */ (0,
|
2875
|
-
["Stock", /* @__PURE__ */ (0,
|
2876
|
-
["Product Database", /* @__PURE__ */ (0,
|
2877
|
-
["Purchasing", /* @__PURE__ */ (0,
|
2878
|
-
["Reseller", /* @__PURE__ */ (0,
|
2879
|
-
["Retur", /* @__PURE__ */ (0,
|
2880
|
-
["Other", /* @__PURE__ */ (0,
|
2881
|
-
["Content", /* @__PURE__ */ (0,
|
2882
|
-
["Customer", /* @__PURE__ */ (0,
|
2883
|
-
["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")]
|
2884
2929
|
]);
|
2885
2930
|
|
2886
2931
|
// src/components/navigation/components/navigation.tsx
|
2887
|
-
var
|
2932
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
2888
2933
|
var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
2889
|
-
return /* @__PURE__ */ (0,
|
2890
|
-
|
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,
|
2891
2936
|
{
|
2892
2937
|
bg: "white",
|
2893
2938
|
w: "full",
|
@@ -2901,9 +2946,9 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2901
2946
|
children: navigations == null ? void 0 : navigations.map((navigation) => {
|
2902
2947
|
const isActive = activePath.startsWith(navigation.navLink || "");
|
2903
2948
|
const activeBg = isActive ? "primary.500" : void 0;
|
2904
|
-
return /* @__PURE__ */ (0,
|
2905
|
-
/* @__PURE__ */ (0,
|
2906
|
-
|
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,
|
2907
2952
|
{
|
2908
2953
|
h: 7.5,
|
2909
2954
|
p: 2,
|
@@ -2916,14 +2961,14 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2916
2961
|
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
2917
2962
|
color: isActive ? "primary.50" : "black.high",
|
2918
2963
|
leftIcon: mappingIcon.get(navigation.title),
|
2919
|
-
rightIcon: /* @__PURE__ */ (0,
|
2964
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon3.ChevronDown, { size: 4, color: "inherit" }),
|
2920
2965
|
children: navigation.title
|
2921
2966
|
}
|
2922
2967
|
) }),
|
2923
|
-
navigation.children && /* @__PURE__ */ (0,
|
2924
|
-
|
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,
|
2925
2970
|
{
|
2926
|
-
bg: (0,
|
2971
|
+
bg: (0, import_react60.useColorModeValue)("white", "ebony-clay.800"),
|
2927
2972
|
maxW: 250,
|
2928
2973
|
border: "none",
|
2929
2974
|
borderRadius: "md",
|
@@ -2932,16 +2977,16 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2932
2977
|
const link = navHost ? `${navHost}${navLink}` : navLink;
|
2933
2978
|
const isLocalLink = host === navHost;
|
2934
2979
|
const isActiveSub = activePath === navLink;
|
2935
|
-
return /* @__PURE__ */ (0,
|
2936
|
-
|
2980
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
2981
|
+
import_react60.Link,
|
2937
2982
|
{
|
2938
2983
|
as: isLocalLink ? as : void 0,
|
2939
2984
|
href: link,
|
2940
2985
|
_hover: {
|
2941
2986
|
textDecoration: "none"
|
2942
2987
|
},
|
2943
|
-
children: /* @__PURE__ */ (0,
|
2944
|
-
|
2988
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
2989
|
+
import_react60.Box,
|
2945
2990
|
{
|
2946
2991
|
display: "flex",
|
2947
2992
|
position: "relative",
|
@@ -2949,24 +2994,24 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2949
2994
|
cursor: "pointer",
|
2950
2995
|
transition: "padding 0.35s ease 0s",
|
2951
2996
|
_hover: {
|
2952
|
-
backgroundColor: (0,
|
2953
|
-
color: (0,
|
2997
|
+
backgroundColor: (0, import_react60.useColorModeValue)("dove-gray.50", "mirage.900"),
|
2998
|
+
color: (0, import_react60.useColorModeValue)("primary.500", "dove-gray.600"),
|
2954
2999
|
px: 5,
|
2955
3000
|
py: 4,
|
2956
3001
|
_first: { borderTopRadius: "md" },
|
2957
3002
|
_last: { borderBottomRadius: "md" }
|
2958
3003
|
},
|
2959
3004
|
color: isActiveSub ? "primary.500" : "inherit",
|
2960
|
-
css:
|
3005
|
+
css: import_react61.css`
|
2961
3006
|
border-spacing: 4px;
|
2962
3007
|
`,
|
2963
3008
|
px: 6,
|
2964
3009
|
py: 4,
|
2965
3010
|
children: [
|
2966
3011
|
mappingIcon.get(navigation.title),
|
2967
|
-
/* @__PURE__ */ (0,
|
2968
|
-
isActiveSub && /* @__PURE__ */ (0,
|
2969
|
-
|
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,
|
2970
3015
|
{
|
2971
3016
|
width: 0.5,
|
2972
3017
|
height: 8,
|
@@ -2999,9 +3044,9 @@ Navigation.defaultProps = {
|
|
2999
3044
|
var navigation_default = Navigation;
|
3000
3045
|
|
3001
3046
|
// src/components/navigation/components/navigation-bar.tsx
|
3002
|
-
var
|
3047
|
+
var import_react62 = require("@chakra-ui/react");
|
3003
3048
|
var Icon4 = __toESM(require("@ctlyst.id/internal-icon"));
|
3004
|
-
var
|
3049
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
3005
3050
|
var NavigationBar = ({
|
3006
3051
|
navigations,
|
3007
3052
|
isFetched,
|
@@ -3016,8 +3061,8 @@ var NavigationBar = ({
|
|
3016
3061
|
}
|
3017
3062
|
return subMenu.navHost + subMenu.navLink;
|
3018
3063
|
};
|
3019
|
-
return /* @__PURE__ */ (0,
|
3020
|
-
|
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,
|
3021
3066
|
{
|
3022
3067
|
bg: "white",
|
3023
3068
|
w: "full",
|
@@ -3033,9 +3078,9 @@ var NavigationBar = ({
|
|
3033
3078
|
const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
|
3034
3079
|
const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
|
3035
3080
|
const activeBg = isActive ? "primary.500" : void 0;
|
3036
|
-
return /* @__PURE__ */ (0,
|
3037
|
-
/* @__PURE__ */ (0,
|
3038
|
-
|
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,
|
3039
3084
|
{
|
3040
3085
|
h: 7.5,
|
3041
3086
|
p: 2,
|
@@ -3048,12 +3093,12 @@ var NavigationBar = ({
|
|
3048
3093
|
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
3049
3094
|
color: isActive ? "primary.50" : "black.high",
|
3050
3095
|
leftIcon: mappingIcon2.get(item.title),
|
3051
|
-
rightIcon: /* @__PURE__ */ (0,
|
3096
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon4.ChevronDown, { size: 4, color: "inherit" }),
|
3052
3097
|
children: item.title
|
3053
3098
|
}
|
3054
3099
|
) }),
|
3055
|
-
item.children && /* @__PURE__ */ (0,
|
3056
|
-
|
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,
|
3057
3102
|
{
|
3058
3103
|
href: urlMenu(subMenu),
|
3059
3104
|
display: "flex",
|
@@ -3070,7 +3115,7 @@ var NavigationBar = ({
|
|
3070
3115
|
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
3071
3116
|
children: [
|
3072
3117
|
mappingIcon2.get(item.title),
|
3073
|
-
/* @__PURE__ */ (0,
|
3118
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react62.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
3074
3119
|
]
|
3075
3120
|
},
|
3076
3121
|
subMenu.id
|
@@ -3087,18 +3132,18 @@ var navigation_bar_default = NavigationBar;
|
|
3087
3132
|
|
3088
3133
|
// src/components/pagination/components/pagination.tsx
|
3089
3134
|
var import_icons4 = require("@chakra-ui/icons");
|
3090
|
-
var
|
3135
|
+
var import_react65 = require("@chakra-ui/react");
|
3091
3136
|
|
3092
3137
|
// src/components/pagination/components/pagination-button.tsx
|
3093
|
-
var
|
3094
|
-
var
|
3095
|
-
var PaginationButton = (0,
|
3096
|
-
const btnBg = (0,
|
3097
|
-
const btnColor = (0,
|
3098
|
-
const btnNotActiveBg = (0,
|
3099
|
-
const btnNotActiveColor = (0,
|
3100
|
-
return /* @__PURE__ */ (0,
|
3101
|
-
|
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,
|
3102
3147
|
{
|
3103
3148
|
"data-test-id": "Pagination-Button",
|
3104
3149
|
ref,
|
@@ -3119,7 +3164,7 @@ var PaginationButton = (0, import_react62.forwardRef)(({ className, style, isAct
|
|
3119
3164
|
color: btnNotActiveColor
|
3120
3165
|
} : {},
|
3121
3166
|
_disabled: {
|
3122
|
-
background: (0,
|
3167
|
+
background: (0, import_react63.useColorModeValue)("neutral.300", "mirage.900"),
|
3123
3168
|
color: "neutral.600",
|
3124
3169
|
pointerEvents: "none"
|
3125
3170
|
},
|
@@ -3135,16 +3180,16 @@ PaginationButton.defaultProps = {
|
|
3135
3180
|
var pagination_button_default = PaginationButton;
|
3136
3181
|
|
3137
3182
|
// src/components/pagination/components/pagination-button-trigger.tsx
|
3138
|
-
var
|
3139
|
-
var
|
3183
|
+
var import_react64 = require("@chakra-ui/react");
|
3184
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
3140
3185
|
var PaginationButtonTrigger = ({
|
3141
3186
|
color,
|
3142
3187
|
isDisabled,
|
3143
3188
|
onClick,
|
3144
3189
|
visuallyHidden,
|
3145
3190
|
icon
|
3146
|
-
}) => /* @__PURE__ */ (0,
|
3147
|
-
/* @__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 }),
|
3148
3193
|
icon
|
3149
3194
|
] });
|
3150
3195
|
PaginationButtonTrigger.defaultProps = {
|
@@ -3157,10 +3202,10 @@ PaginationButtonTrigger.defaultProps = {
|
|
3157
3202
|
var pagination_button_trigger_default = PaginationButtonTrigger;
|
3158
3203
|
|
3159
3204
|
// src/components/pagination/components/pagination.tsx
|
3160
|
-
var
|
3205
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
3161
3206
|
var Pagination = ({ className, current, total, onSelect }) => {
|
3162
|
-
const btnColorDisabled = (0,
|
3163
|
-
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");
|
3164
3209
|
const disabledPrevious = current === 1;
|
3165
3210
|
const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;
|
3166
3211
|
const disabledNext = current === total;
|
@@ -3187,8 +3232,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3187
3232
|
}
|
3188
3233
|
return pageButtons;
|
3189
3234
|
};
|
3190
|
-
return /* @__PURE__ */ (0,
|
3191
|
-
/* @__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)(
|
3192
3237
|
pagination_button_trigger_default,
|
3193
3238
|
{
|
3194
3239
|
"data-test-id": "Pagination-Button",
|
@@ -3196,11 +3241,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3196
3241
|
isDisabled: disabledPrevious,
|
3197
3242
|
onClick: () => handleSelectPage(1),
|
3198
3243
|
visuallyHidden: "First Page",
|
3199
|
-
icon: /* @__PURE__ */ (0,
|
3244
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ArrowLeftIcon, { width: 2 })
|
3200
3245
|
}
|
3201
3246
|
) }),
|
3202
|
-
/* @__PURE__ */ (0,
|
3203
|
-
/* @__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)(
|
3204
3249
|
pagination_button_trigger_default,
|
3205
3250
|
{
|
3206
3251
|
"data-test-id": "Pagination-Button",
|
@@ -3208,22 +3253,22 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3208
3253
|
isDisabled: disabledPrevious,
|
3209
3254
|
onClick: () => handleSelectPage(current - 1),
|
3210
3255
|
visuallyHidden: "Previous Page",
|
3211
|
-
icon: /* @__PURE__ */ (0,
|
3256
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ChevronLeftIcon, {})
|
3212
3257
|
}
|
3213
3258
|
),
|
3214
3259
|
generatePages().map((page) => {
|
3215
|
-
return /* @__PURE__ */ (0,
|
3260
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3216
3261
|
pagination_button_default,
|
3217
3262
|
{
|
3218
3263
|
"data-test-id": "Pagination-Button",
|
3219
3264
|
isActive: page === current,
|
3220
3265
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
3221
|
-
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 })
|
3222
3267
|
},
|
3223
3268
|
page
|
3224
3269
|
);
|
3225
3270
|
}),
|
3226
|
-
/* @__PURE__ */ (0,
|
3271
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3227
3272
|
pagination_button_trigger_default,
|
3228
3273
|
{
|
3229
3274
|
"data-test-id": "Pagination-Button",
|
@@ -3231,11 +3276,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3231
3276
|
isDisabled: disabledNext,
|
3232
3277
|
onClick: () => handleSelectPage(current + 1),
|
3233
3278
|
visuallyHidden: "Next Page",
|
3234
|
-
icon: /* @__PURE__ */ (0,
|
3279
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ChevronRightIcon, {})
|
3235
3280
|
}
|
3236
3281
|
)
|
3237
3282
|
] }),
|
3238
|
-
/* @__PURE__ */ (0,
|
3283
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react65.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3239
3284
|
pagination_button_trigger_default,
|
3240
3285
|
{
|
3241
3286
|
"data-test-id": "Pagination-Button",
|
@@ -3243,7 +3288,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3243
3288
|
isDisabled: disabledNext,
|
3244
3289
|
onClick: () => handleSelectPage(total),
|
3245
3290
|
visuallyHidden: "Last Page",
|
3246
|
-
icon: /* @__PURE__ */ (0,
|
3291
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ArrowRightIcon, { width: 2 })
|
3247
3292
|
}
|
3248
3293
|
) })
|
3249
3294
|
] });
|
@@ -3256,8 +3301,8 @@ Pagination.displayName = "Pagination";
|
|
3256
3301
|
var pagination_default = Pagination;
|
3257
3302
|
|
3258
3303
|
// src/components/pagination/components/pagination-detail.tsx
|
3259
|
-
var
|
3260
|
-
var
|
3304
|
+
var import_react66 = require("@chakra-ui/react");
|
3305
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
3261
3306
|
var PaginationDetail = ({
|
3262
3307
|
page,
|
3263
3308
|
limit,
|
@@ -3267,15 +3312,15 @@ var PaginationDetail = ({
|
|
3267
3312
|
lineHeight = 18,
|
3268
3313
|
...rest
|
3269
3314
|
}) => {
|
3270
|
-
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` });
|
3271
3316
|
};
|
3272
3317
|
var pagination_detail_default = PaginationDetail;
|
3273
3318
|
|
3274
3319
|
// src/components/pagination/components/pagination-filter.tsx
|
3275
|
-
var
|
3320
|
+
var import_react67 = require("@chakra-ui/react");
|
3276
3321
|
var React13 = __toESM(require("react"));
|
3277
3322
|
var import_fi6 = require("react-icons/fi");
|
3278
|
-
var
|
3323
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
3279
3324
|
var PaginationFilter = ({
|
3280
3325
|
limit,
|
3281
3326
|
label = "Baris per halaman:",
|
@@ -3284,10 +3329,10 @@ var PaginationFilter = ({
|
|
3284
3329
|
...rest
|
3285
3330
|
}) => {
|
3286
3331
|
const [value, setValue] = React13.useState(limit);
|
3287
|
-
return /* @__PURE__ */ (0,
|
3288
|
-
/* @__PURE__ */ (0,
|
3289
|
-
/* @__PURE__ */ (0,
|
3290
|
-
|
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,
|
3291
3336
|
{
|
3292
3337
|
textAlign: "center",
|
3293
3338
|
size: "xs",
|
@@ -3295,7 +3340,7 @@ var PaginationFilter = ({
|
|
3295
3340
|
border: "none",
|
3296
3341
|
boxShadow: "none",
|
3297
3342
|
width: 18,
|
3298
|
-
icon: /* @__PURE__ */ (0,
|
3343
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_fi6.FiChevronDown, {}),
|
3299
3344
|
_focusVisible: { boxShadow: "none" },
|
3300
3345
|
onChange: (e) => {
|
3301
3346
|
const numberValue = Number(e.target.value);
|
@@ -3304,7 +3349,7 @@ var PaginationFilter = ({
|
|
3304
3349
|
},
|
3305
3350
|
value,
|
3306
3351
|
children: items.map((item) => {
|
3307
|
-
return /* @__PURE__ */ (0,
|
3352
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("option", { value: item, children: item }, item);
|
3308
3353
|
})
|
3309
3354
|
}
|
3310
3355
|
)
|
@@ -3317,11 +3362,11 @@ PaginationFilter.defaultProps = {
|
|
3317
3362
|
var pagination_filter_default = PaginationFilter;
|
3318
3363
|
|
3319
3364
|
// src/components/popover/index.ts
|
3320
|
-
var
|
3365
|
+
var import_react68 = require("@chakra-ui/react");
|
3321
3366
|
|
3322
3367
|
// src/components/radio/components/radio.tsx
|
3323
|
-
var
|
3324
|
-
var
|
3368
|
+
var import_react69 = require("@chakra-ui/react");
|
3369
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
3325
3370
|
var Radio = ({
|
3326
3371
|
isError = false,
|
3327
3372
|
helpText = "",
|
@@ -3331,9 +3376,9 @@ var Radio = ({
|
|
3331
3376
|
...rest
|
3332
3377
|
}) => {
|
3333
3378
|
const variant = isError ? "errors" : "unstyled";
|
3334
|
-
return /* @__PURE__ */ (0,
|
3335
|
-
/* @__PURE__ */ (0,
|
3336
|
-
/* @__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 }) })
|
3337
3382
|
] });
|
3338
3383
|
};
|
3339
3384
|
Radio.displayName = "Radio";
|
@@ -3344,8 +3389,8 @@ Radio.defaultProps = {
|
|
3344
3389
|
};
|
3345
3390
|
|
3346
3391
|
// src/components/radio/components/radio-group.tsx
|
3347
|
-
var
|
3348
|
-
var
|
3392
|
+
var import_react70 = require("@chakra-ui/react");
|
3393
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
3349
3394
|
var RadioGroup = ({
|
3350
3395
|
children,
|
3351
3396
|
label,
|
@@ -3354,7 +3399,7 @@ var RadioGroup = ({
|
|
3354
3399
|
errorMessage,
|
3355
3400
|
...props
|
3356
3401
|
}) => {
|
3357
|
-
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 }) }) }) });
|
3358
3403
|
};
|
3359
3404
|
RadioGroup.displayName = "RadioGroup";
|
3360
3405
|
RadioGroup.defaultProps = {
|
@@ -3364,14 +3409,14 @@ RadioGroup.defaultProps = {
|
|
3364
3409
|
};
|
3365
3410
|
|
3366
3411
|
// src/components/radio/index.ts
|
3367
|
-
var
|
3412
|
+
var import_react71 = require("@chakra-ui/react");
|
3368
3413
|
|
3369
3414
|
// src/components/rating/components/rating.tsx
|
3370
|
-
var
|
3415
|
+
var import_react72 = require("@chakra-ui/react");
|
3371
3416
|
var import_internal_icon6 = require("@ctlyst.id/internal-icon");
|
3372
|
-
var
|
3417
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
3373
3418
|
var Rating = ({ value }) => {
|
3374
|
-
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 })) });
|
3375
3420
|
};
|
3376
3421
|
var rating_default = Rating;
|
3377
3422
|
|
@@ -3380,16 +3425,16 @@ var import_system7 = require("@chakra-ui/system");
|
|
3380
3425
|
var import_react_select = __toESM(require("react-select"));
|
3381
3426
|
|
3382
3427
|
// src/config/theme/foundations/shadows.ts
|
3383
|
-
var
|
3428
|
+
var import_react73 = require("@chakra-ui/react");
|
3384
3429
|
var shadows = {
|
3385
|
-
...
|
3430
|
+
...import_react73.theme.shadows,
|
3386
3431
|
raised: "0px 4px 20px rgba(0, 0, 0, 0.05)"
|
3387
3432
|
};
|
3388
3433
|
|
3389
3434
|
// src/config/theme/foundations/sizes.ts
|
3390
|
-
var
|
3435
|
+
var import_react74 = require("@chakra-ui/react");
|
3391
3436
|
var sizes = {
|
3392
|
-
...
|
3437
|
+
...import_react74.theme.sizes,
|
3393
3438
|
4.5: "1.125rem",
|
3394
3439
|
9.5: "2.375rem",
|
3395
3440
|
18: "4.5rem",
|
@@ -3399,9 +3444,9 @@ var sizes = {
|
|
3399
3444
|
};
|
3400
3445
|
|
3401
3446
|
// src/config/theme/foundations/spacing.ts
|
3402
|
-
var
|
3447
|
+
var import_react75 = require("@chakra-ui/react");
|
3403
3448
|
var spacing = {
|
3404
|
-
...
|
3449
|
+
...import_react75.theme.space,
|
3405
3450
|
4.5: "1.125rem",
|
3406
3451
|
9.5: "2.375rem",
|
3407
3452
|
18: "4.5rem",
|
@@ -3727,14 +3772,14 @@ var themeSelect = (theme6) => {
|
|
3727
3772
|
};
|
3728
3773
|
|
3729
3774
|
// src/components/select/components/select.tsx
|
3730
|
-
var
|
3775
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
3731
3776
|
function Select2({
|
3732
3777
|
styles,
|
3733
3778
|
isError = false,
|
3734
3779
|
...rest
|
3735
3780
|
}) {
|
3736
3781
|
const { colorMode } = (0, import_system7.useColorMode)();
|
3737
|
-
return /* @__PURE__ */ (0,
|
3782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
3738
3783
|
import_react_select.default,
|
3739
3784
|
{
|
3740
3785
|
classNamePrefix: "react-select",
|
@@ -3749,14 +3794,14 @@ var select_default = Select2;
|
|
3749
3794
|
// src/components/select/components/select-async.tsx
|
3750
3795
|
var import_system8 = require("@chakra-ui/system");
|
3751
3796
|
var import_react_select_async_paginate = require("react-select-async-paginate");
|
3752
|
-
var
|
3797
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
3753
3798
|
function SelectAsync({
|
3754
3799
|
styles,
|
3755
3800
|
isError = false,
|
3756
3801
|
...rest
|
3757
3802
|
}) {
|
3758
3803
|
const { colorMode } = (0, import_system8.useColorMode)();
|
3759
|
-
return /* @__PURE__ */ (0,
|
3804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
3760
3805
|
import_react_select_async_paginate.AsyncPaginate,
|
3761
3806
|
{
|
3762
3807
|
classNamePrefix: "react-select",
|
@@ -3771,10 +3816,10 @@ var select_async_default = SelectAsync;
|
|
3771
3816
|
// src/components/select/components/select-async-creatable.tsx
|
3772
3817
|
var import_system9 = require("@chakra-ui/system");
|
3773
3818
|
var import_async_creatable = __toESM(require("react-select/async-creatable"));
|
3774
|
-
var
|
3819
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
3775
3820
|
function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
3776
3821
|
const { colorMode } = (0, import_system9.useColorMode)();
|
3777
|
-
return /* @__PURE__ */ (0,
|
3822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
3778
3823
|
import_async_creatable.default,
|
3779
3824
|
{
|
3780
3825
|
classNamePrefix: "react-select",
|
@@ -3788,10 +3833,10 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
3788
3833
|
// src/components/select/components/select-creatable.tsx
|
3789
3834
|
var import_system10 = require("@chakra-ui/system");
|
3790
3835
|
var import_creatable = __toESM(require("react-select/creatable"));
|
3791
|
-
var
|
3836
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
3792
3837
|
function SelectCreatable({ styles, isError = false, ...rest }) {
|
3793
3838
|
const { colorMode } = (0, import_system10.useColorMode)();
|
3794
|
-
return /* @__PURE__ */ (0,
|
3839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3795
3840
|
import_creatable.default,
|
3796
3841
|
{
|
3797
3842
|
classNamePrefix: "react-select",
|
@@ -3803,10 +3848,10 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
3803
3848
|
}
|
3804
3849
|
|
3805
3850
|
// src/components/select/components/select-with-checkbox.tsx
|
3806
|
-
var
|
3851
|
+
var import_react76 = require("@chakra-ui/react");
|
3807
3852
|
var import_system11 = require("@chakra-ui/system");
|
3808
3853
|
var import_react_select2 = __toESM(require("react-select"));
|
3809
|
-
var
|
3854
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
3810
3855
|
var CHECKBOX_STATE = {
|
3811
3856
|
UNCHECKED: 0,
|
3812
3857
|
INDETERMINATE: 1,
|
@@ -3853,8 +3898,8 @@ var InputOption = ({
|
|
3853
3898
|
onClick: isDisabled ? void 0 : innerProps.onClick,
|
3854
3899
|
style
|
3855
3900
|
};
|
3856
|
-
return /* @__PURE__ */ (0,
|
3857
|
-
/* @__PURE__ */ (0,
|
3901
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
|
3902
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3858
3903
|
import_react_select2.components.Option,
|
3859
3904
|
{
|
3860
3905
|
isMulti: true,
|
@@ -3865,8 +3910,8 @@ var InputOption = ({
|
|
3865
3910
|
getStyles,
|
3866
3911
|
innerProps: props,
|
3867
3912
|
...rest,
|
3868
|
-
children: /* @__PURE__ */ (0,
|
3869
|
-
|
3913
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
3914
|
+
import_react76.Flex,
|
3870
3915
|
{
|
3871
3916
|
alignItems: "center",
|
3872
3917
|
width: "100%",
|
@@ -3875,22 +3920,22 @@ var InputOption = ({
|
|
3875
3920
|
"data-test-id": "CT_component_select-checkbox_options",
|
3876
3921
|
cursor: isDisabled ? "not-allowed" : "default",
|
3877
3922
|
children: [
|
3878
|
-
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0,
|
3879
|
-
|
3923
|
+
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3924
|
+
import_react76.Checkbox,
|
3880
3925
|
{
|
3881
3926
|
isChecked: checkedState === CHECKBOX_STATE.CHECKED,
|
3882
3927
|
isIndeterminate: checkedState === CHECKBOX_STATE.INDETERMINATE,
|
3883
3928
|
isDisabled,
|
3884
3929
|
"data-test-id": "CT_component_select-checkbox_select-all-option"
|
3885
3930
|
}
|
3886
|
-
) : /* @__PURE__ */ (0,
|
3887
|
-
/* @__PURE__ */ (0,
|
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 })
|
3888
3933
|
]
|
3889
3934
|
}
|
3890
3935
|
)
|
3891
3936
|
}
|
3892
3937
|
),
|
3893
|
-
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0,
|
3938
|
+
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("hr", {}) : null
|
3894
3939
|
] });
|
3895
3940
|
};
|
3896
3941
|
var SelectWithCheckboxBase = ({
|
@@ -3900,7 +3945,7 @@ var SelectWithCheckboxBase = ({
|
|
3900
3945
|
...rest
|
3901
3946
|
}) => {
|
3902
3947
|
const { colorMode } = (0, import_system11.useColorMode)();
|
3903
|
-
return /* @__PURE__ */ (0,
|
3948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3904
3949
|
import_react_select2.default,
|
3905
3950
|
{
|
3906
3951
|
classNamePrefix: "react-select",
|
@@ -3919,7 +3964,7 @@ var SelectWithCheckboxBase = ({
|
|
3919
3964
|
var SelectCheckbox = (props) => {
|
3920
3965
|
const { isMulti, options, value, ...rest } = props;
|
3921
3966
|
const selectValue = value || [];
|
3922
|
-
return /* @__PURE__ */ (0,
|
3967
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3923
3968
|
SelectWithCheckboxBase,
|
3924
3969
|
{
|
3925
3970
|
isMulti,
|
@@ -3930,7 +3975,7 @@ var SelectCheckbox = (props) => {
|
|
3930
3975
|
const optionLength = (options == null ? void 0 : options.length) ? options.length - 1 : 0;
|
3931
3976
|
const selectedValue = isSelected ? CHECKBOX_STATE.CHECKED : CHECKBOX_STATE.UNCHECKED;
|
3932
3977
|
const checkedState = data.selectAllCheckbox ? getSelectAllCheckboxState(selectValue == null ? void 0 : selectValue.length, optionLength) : selectedValue;
|
3933
|
-
return /* @__PURE__ */ (0,
|
3978
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(InputOption, { ...optionProps, checkedState });
|
3934
3979
|
}
|
3935
3980
|
},
|
3936
3981
|
...rest
|
@@ -3940,16 +3985,16 @@ var SelectCheckbox = (props) => {
|
|
3940
3985
|
var select_with_checkbox_default = SelectCheckbox;
|
3941
3986
|
|
3942
3987
|
// src/components/switch/components/switch.tsx
|
3943
|
-
var
|
3944
|
-
var
|
3988
|
+
var import_react77 = require("@chakra-ui/react");
|
3989
|
+
var import_shared_utils10 = require("@chakra-ui/shared-utils");
|
3945
3990
|
var import_internal_icon7 = require("@ctlyst.id/internal-icon");
|
3946
|
-
var
|
3947
|
-
var
|
3948
|
-
var Switch = (0,
|
3949
|
-
const styles = (0,
|
3950
|
-
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0,
|
3951
|
-
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0,
|
3952
|
-
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)(
|
3953
3998
|
() => ({
|
3954
3999
|
display: "inline-block",
|
3955
4000
|
position: "relative",
|
@@ -3959,7 +4004,7 @@ var Switch = (0, import_react76.forwardRef)(function Switch2(props, ref) {
|
|
3959
4004
|
}),
|
3960
4005
|
[styles.container]
|
3961
4006
|
);
|
3962
|
-
const trackStyles = (0,
|
4007
|
+
const trackStyles = (0, import_react78.useMemo)(
|
3963
4008
|
() => ({
|
3964
4009
|
display: "inline-flex",
|
3965
4010
|
flexShrink: 0,
|
@@ -3971,7 +4016,7 @@ var Switch = (0, import_react76.forwardRef)(function Switch2(props, ref) {
|
|
3971
4016
|
}),
|
3972
4017
|
[styles.track]
|
3973
4018
|
);
|
3974
|
-
const labelStyles = (0,
|
4019
|
+
const labelStyles = (0, import_react78.useMemo)(
|
3975
4020
|
() => ({
|
3976
4021
|
userSelect: "none",
|
3977
4022
|
marginStart: spacing2,
|
@@ -3987,33 +4032,33 @@ var Switch = (0, import_react76.forwardRef)(function Switch2(props, ref) {
|
|
3987
4032
|
};
|
3988
4033
|
return iconSize[value];
|
3989
4034
|
};
|
3990
|
-
return /* @__PURE__ */ (0,
|
3991
|
-
|
4035
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
4036
|
+
import_react77.chakra.label,
|
3992
4037
|
{
|
3993
4038
|
...getRootProps(),
|
3994
4039
|
display: "flex",
|
3995
4040
|
alignItems: "center",
|
3996
|
-
className: (0,
|
4041
|
+
className: (0, import_shared_utils10.cx)("chakra-switch", props.className),
|
3997
4042
|
__css: containerStyles,
|
3998
4043
|
children: [
|
3999
|
-
/* @__PURE__ */ (0,
|
4000
|
-
/* @__PURE__ */ (0,
|
4001
|
-
/* @__PURE__ */ (0,
|
4002
|
-
/* @__PURE__ */ (0,
|
4003
|
-
/* @__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) })
|
4004
4049
|
] }),
|
4005
|
-
/* @__PURE__ */ (0,
|
4006
|
-
|
4050
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4051
|
+
import_react77.chakra.span,
|
4007
4052
|
{
|
4008
4053
|
__css: styles.thumb,
|
4009
4054
|
className: "chakra-switch__thumb",
|
4010
|
-
"data-checked": (0,
|
4011
|
-
"data-hover": (0,
|
4055
|
+
"data-checked": (0, import_shared_utils10.dataAttr)(state.isChecked),
|
4056
|
+
"data-hover": (0, import_shared_utils10.dataAttr)(state.isHovered)
|
4012
4057
|
}
|
4013
4058
|
)
|
4014
4059
|
] }),
|
4015
|
-
children && /* @__PURE__ */ (0,
|
4016
|
-
|
4060
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4061
|
+
import_react77.chakra.span,
|
4017
4062
|
{
|
4018
4063
|
className: "chakra-switch__label",
|
4019
4064
|
color: state.isDisabled ? "black.low" : "black.high",
|
@@ -4032,18 +4077,18 @@ Switch.defaultProps = {
|
|
4032
4077
|
var switch_default = Switch;
|
4033
4078
|
|
4034
4079
|
// src/components/table/index.tsx
|
4035
|
-
var
|
4080
|
+
var import_react79 = require("@chakra-ui/react");
|
4036
4081
|
|
4037
4082
|
// src/components/tabs/components/tab.tsx
|
4038
|
-
var
|
4039
|
-
var
|
4040
|
-
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) => {
|
4041
4086
|
var _a, _b;
|
4042
|
-
const tabProps = (0,
|
4087
|
+
const tabProps = (0, import_react80.useTab)({ ...props, ref });
|
4043
4088
|
const isSelected = !!tabProps["aria-selected"];
|
4044
|
-
const styles = (0,
|
4045
|
-
return /* @__PURE__ */ (0,
|
4046
|
-
|
4089
|
+
const styles = (0, import_react80.useMultiStyleConfig)("Tabs", tabProps);
|
4090
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
4091
|
+
import_react80.Button,
|
4047
4092
|
{
|
4048
4093
|
"data-test-id": props["data-test-id"],
|
4049
4094
|
p: 4,
|
@@ -4068,7 +4113,7 @@ var Tab = (0, import_react79.forwardRef)((props, ref) => {
|
|
4068
4113
|
},
|
4069
4114
|
__css: styles.tab,
|
4070
4115
|
...tabProps,
|
4071
|
-
children: /* @__PURE__ */ (0,
|
4116
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_react80.Flex, { alignItems: "center", children: [
|
4072
4117
|
(_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
|
4073
4118
|
tabProps.children,
|
4074
4119
|
(_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
|
@@ -4079,16 +4124,16 @@ var Tab = (0, import_react79.forwardRef)((props, ref) => {
|
|
4079
4124
|
var tab_default = Tab;
|
4080
4125
|
|
4081
4126
|
// src/components/tabs/index.ts
|
4082
|
-
var
|
4127
|
+
var import_react81 = require("@chakra-ui/react");
|
4083
4128
|
|
4084
4129
|
// src/components/text/index.ts
|
4085
|
-
var
|
4130
|
+
var import_react82 = require("@chakra-ui/react");
|
4086
4131
|
|
4087
4132
|
// src/components/tooltip/index.ts
|
4088
|
-
var
|
4133
|
+
var import_react83 = require("@chakra-ui/react");
|
4089
4134
|
|
4090
4135
|
// src/components/uploader/components/uploader.tsx
|
4091
|
-
var
|
4136
|
+
var import_react84 = require("@chakra-ui/react");
|
4092
4137
|
var React15 = __toESM(require("react"));
|
4093
4138
|
var import_react_dropzone = require("react-dropzone");
|
4094
4139
|
|
@@ -4102,7 +4147,7 @@ var messages = {
|
|
4102
4147
|
};
|
4103
4148
|
|
4104
4149
|
// src/components/uploader/components/uploader.tsx
|
4105
|
-
var
|
4150
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
4106
4151
|
var Uploader = ({
|
4107
4152
|
onHandleUploadFile,
|
4108
4153
|
onHandleRejections,
|
@@ -4150,9 +4195,9 @@ var Uploader = ({
|
|
4150
4195
|
React15.useEffect(() => {
|
4151
4196
|
setIsSelected(selected != null ? selected : false);
|
4152
4197
|
}, [selected]);
|
4153
|
-
return /* @__PURE__ */ (0,
|
4154
|
-
/* @__PURE__ */ (0,
|
4155
|
-
|
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,
|
4156
4201
|
{
|
4157
4202
|
minH: 200,
|
4158
4203
|
border: "1px dashed",
|
@@ -4163,11 +4208,11 @@ var Uploader = ({
|
|
4163
4208
|
...props,
|
4164
4209
|
...getRootProps(),
|
4165
4210
|
children: [
|
4166
|
-
/* @__PURE__ */ (0,
|
4167
|
-
isDragActive ? /* @__PURE__ */ (0,
|
4168
|
-
!multiple && isSelected && /* @__PURE__ */ (0,
|
4169
|
-
!isSelected && /* @__PURE__ */ (0,
|
4170
|
-
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 })
|
4171
4216
|
] })
|
4172
4217
|
]
|
4173
4218
|
}
|
@@ -4184,10 +4229,10 @@ Uploader.defaultProps = {
|
|
4184
4229
|
var uploader_default = Uploader;
|
4185
4230
|
|
4186
4231
|
// src/components/index.ts
|
4187
|
-
var
|
4232
|
+
var import_react85 = require("@chakra-ui/react");
|
4188
4233
|
|
4189
4234
|
// src/config/theme/themeConfiguration.ts
|
4190
|
-
var
|
4235
|
+
var import_react92 = require("@chakra-ui/react");
|
4191
4236
|
|
4192
4237
|
// src/config/theme/components/index.ts
|
4193
4238
|
var components_exports = {};
|
@@ -4730,8 +4775,8 @@ var card_default2 = CardStyle;
|
|
4730
4775
|
|
4731
4776
|
// src/config/theme/components/checkbox.ts
|
4732
4777
|
var import_anatomy3 = require("@chakra-ui/anatomy");
|
4733
|
-
var
|
4734
|
-
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);
|
4735
4780
|
var baseStyle3 = definePartsStyle3({
|
4736
4781
|
control: {
|
4737
4782
|
borderRadius: "sm",
|
@@ -4915,7 +4960,7 @@ var baseStyle5 = definePartsStyle4({
|
|
4915
4960
|
minWidth: 0,
|
4916
4961
|
outline: 0,
|
4917
4962
|
px: 2,
|
4918
|
-
py: 2
|
4963
|
+
py: 2,
|
4919
4964
|
paddingInlineStart: 2,
|
4920
4965
|
paddingInlineEnd: 2,
|
4921
4966
|
position: "relative",
|
@@ -5015,8 +5060,8 @@ var input_default = Input3;
|
|
5015
5060
|
|
5016
5061
|
// src/config/theme/components/loader.ts
|
5017
5062
|
var import_styled_system8 = require("@chakra-ui/styled-system");
|
5018
|
-
var
|
5019
|
-
var rotate = (0,
|
5063
|
+
var import_react87 = require("@emotion/react");
|
5064
|
+
var rotate = (0, import_react87.keyframes)({
|
5020
5065
|
"0%": {
|
5021
5066
|
transform: "rotate(0deg)"
|
5022
5067
|
},
|
@@ -5146,8 +5191,8 @@ var modal_default = Modal3;
|
|
5146
5191
|
|
5147
5192
|
// src/config/theme/components/popover.ts
|
5148
5193
|
var import_anatomy5 = require("@chakra-ui/anatomy");
|
5149
|
-
var
|
5150
|
-
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);
|
5151
5196
|
var baseStyle6 = definePartsStyle5({
|
5152
5197
|
content: {
|
5153
5198
|
bg: "white"
|
@@ -5158,8 +5203,8 @@ var popover_default = popoverTheme;
|
|
5158
5203
|
|
5159
5204
|
// src/config/theme/components/radio.ts
|
5160
5205
|
var import_anatomy6 = require("@chakra-ui/anatomy");
|
5161
|
-
var
|
5162
|
-
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);
|
5163
5208
|
var baseStyle7 = definePartsStyle6({
|
5164
5209
|
control: {
|
5165
5210
|
border: "1px solid",
|
@@ -5598,7 +5643,7 @@ var tabsTheme = defineMultiStyleConfig9({
|
|
5598
5643
|
var tabs_default = tabsTheme;
|
5599
5644
|
|
5600
5645
|
// src/config/theme/components/textarea.ts
|
5601
|
-
var
|
5646
|
+
var import_react90 = require("@chakra-ui/react");
|
5602
5647
|
var getProps = (props) => {
|
5603
5648
|
const { isError, isSuccess, isDisabled } = props;
|
5604
5649
|
let borderColor = "neutral.400";
|
@@ -5618,7 +5663,7 @@ var getProps = (props) => {
|
|
5618
5663
|
borderColor
|
5619
5664
|
};
|
5620
5665
|
};
|
5621
|
-
var outline2 = (0,
|
5666
|
+
var outline2 = (0, import_react90.defineStyle)((props) => {
|
5622
5667
|
const { focusBorderColor, borderColor } = getProps(props);
|
5623
5668
|
return {
|
5624
5669
|
background: "white.high",
|
@@ -5662,7 +5707,7 @@ var outline2 = (0, import_react89.defineStyle)((props) => {
|
|
5662
5707
|
}
|
5663
5708
|
};
|
5664
5709
|
});
|
5665
|
-
var Textarea = (0,
|
5710
|
+
var Textarea = (0, import_react90.defineStyleConfig)({
|
5666
5711
|
variants: { outline: outline2 },
|
5667
5712
|
defaultProps: {
|
5668
5713
|
variant: "outline"
|
@@ -5671,14 +5716,14 @@ var Textarea = (0, import_react89.defineStyleConfig)({
|
|
5671
5716
|
var textarea_default2 = Textarea;
|
5672
5717
|
|
5673
5718
|
// src/config/theme/components/tooltip.ts
|
5674
|
-
var
|
5675
|
-
var $arrowBg = (0,
|
5719
|
+
var import_react91 = require("@chakra-ui/react");
|
5720
|
+
var $arrowBg = (0, import_react91.cssVar)("popper-arrow-bg");
|
5676
5721
|
var baseStyle10 = {
|
5677
5722
|
bg: "neutral.700",
|
5678
5723
|
fontSize: "text.sm",
|
5679
5724
|
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
5680
5725
|
};
|
5681
|
-
var Tooltip2 = (0,
|
5726
|
+
var Tooltip2 = (0, import_react91.defineStyleConfig)({ baseStyle: baseStyle10 });
|
5682
5727
|
var tooltip_default = Tooltip2;
|
5683
5728
|
|
5684
5729
|
// src/config/theme/themeConfiguration.ts
|
@@ -5688,7 +5733,7 @@ var config = {
|
|
5688
5733
|
useSystemColorMode: false
|
5689
5734
|
};
|
5690
5735
|
var getTheme = (foundations) => {
|
5691
|
-
return (0,
|
5736
|
+
return (0, import_react92.extendTheme)({
|
5692
5737
|
...foundations,
|
5693
5738
|
components: {
|
5694
5739
|
...components_exports
|
@@ -5704,7 +5749,7 @@ var getTheme = (foundations) => {
|
|
5704
5749
|
config
|
5705
5750
|
});
|
5706
5751
|
};
|
5707
|
-
var theme5 = (0,
|
5752
|
+
var theme5 = (0, import_react92.extendTheme)({
|
5708
5753
|
components: {
|
5709
5754
|
...components_exports
|
5710
5755
|
},
|
@@ -5724,23 +5769,23 @@ var theme5 = (0, import_react91.extendTheme)({
|
|
5724
5769
|
|
5725
5770
|
// src/hooks/useFetcher.ts
|
5726
5771
|
var import_axios2 = __toESM(require("axios"));
|
5727
|
-
var
|
5772
|
+
var import_react95 = require("react");
|
5728
5773
|
|
5729
5774
|
// src/provider/components/provider.tsx
|
5730
5775
|
var import_axios = __toESM(require("axios"));
|
5731
|
-
var
|
5776
|
+
var import_react93 = require("react");
|
5732
5777
|
var import_react_toastify = require("react-toastify");
|
5733
|
-
var
|
5734
|
-
var ProviderContext = (0,
|
5778
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
5779
|
+
var ProviderContext = (0, import_react93.createContext)({
|
5735
5780
|
instance: void 0
|
5736
5781
|
});
|
5737
5782
|
var useInternalUI = () => {
|
5738
|
-
const { instance } = (0,
|
5783
|
+
const { instance } = (0, import_react93.useContext)(ProviderContext);
|
5739
5784
|
return { instance };
|
5740
5785
|
};
|
5741
5786
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
5742
|
-
const instanceRef = (0,
|
5743
|
-
(0,
|
5787
|
+
const instanceRef = (0, import_react93.useRef)(import_axios.default.create(config2));
|
5788
|
+
(0, import_react93.useEffect)(() => {
|
5744
5789
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
5745
5790
|
instanceRef.current.interceptors.request.use(interceptor);
|
5746
5791
|
});
|
@@ -5748,9 +5793,9 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
5748
5793
|
instanceRef.current.interceptors.response.use(interceptor);
|
5749
5794
|
});
|
5750
5795
|
}, [requestInterceptors, responseInterceptors]);
|
5751
|
-
const provider = (0,
|
5752
|
-
return /* @__PURE__ */ (0,
|
5753
|
-
/* @__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, {}),
|
5754
5799
|
children
|
5755
5800
|
] });
|
5756
5801
|
};
|
@@ -5758,12 +5803,12 @@ Provider.displayName = "Provider";
|
|
5758
5803
|
var provider_default = Provider;
|
5759
5804
|
|
5760
5805
|
// src/provider/index.ts
|
5761
|
-
var
|
5806
|
+
var import_react94 = require("@chakra-ui/react");
|
5762
5807
|
|
5763
5808
|
// src/hooks/useFetcher.ts
|
5764
5809
|
function useFetcher() {
|
5765
5810
|
const { instance } = useInternalUI();
|
5766
|
-
const axiosInstance = (0,
|
5811
|
+
const axiosInstance = (0, import_react95.useMemo)(() => instance || import_axios2.default, [instance]);
|
5767
5812
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
5768
5813
|
const response = await axiosInstance.request({
|
5769
5814
|
data,
|
@@ -5783,10 +5828,10 @@ function useFetcher() {
|
|
5783
5828
|
}
|
5784
5829
|
|
5785
5830
|
// src/hooks/index.ts
|
5786
|
-
var
|
5831
|
+
var import_react96 = require("@chakra-ui/react");
|
5787
5832
|
|
5788
5833
|
// src/index.ts
|
5789
|
-
var
|
5834
|
+
var import_react97 = require("@chakra-ui/react");
|
5790
5835
|
// Annotate the CommonJS export names for ESM import in node:
|
5791
5836
|
0 && (module.exports = {
|
5792
5837
|
Accordion,
|
@@ -5942,6 +5987,7 @@ var import_react96 = require("@chakra-ui/react");
|
|
5942
5987
|
ModalOverlayProps,
|
5943
5988
|
ModalProps,
|
5944
5989
|
MultiDatePickerMonth,
|
5990
|
+
NavItem,
|
5945
5991
|
NavigationBar,
|
5946
5992
|
OrderedList,
|
5947
5993
|
Pagination,
|