@ctlyst.id/internal-ui 2.2.0 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +503 -443
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +253 -194
- 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
|
|
@@ -991,89 +992,94 @@ var InputField = import_react23.default.forwardRef((props, ref) => {
|
|
991
992
|
leftHelperText,
|
992
993
|
rightHelperText,
|
993
994
|
isRequired,
|
994
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
995
|
-
import_react22.
|
995
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
996
|
+
import_react22.Box,
|
996
997
|
{
|
997
|
-
|
998
|
+
transition: "all 0.15s",
|
999
|
+
boxShadow: "none",
|
998
1000
|
borderRadius: "sm",
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1001
|
+
border: "1px solid",
|
1002
|
+
borderColor: outlineColor,
|
1003
|
+
_focusWithin: {
|
1004
|
+
borderColor: focusColor
|
1005
|
+
},
|
1006
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
1007
|
+
import_react22.InputGroup,
|
1008
|
+
{
|
1009
|
+
size: size2,
|
1010
|
+
borderRadius: "sm",
|
1011
|
+
backgroundColor: isDisabled ? "neutral.300" : "white.high",
|
1012
|
+
cursor: isDisabled ? "not-allowed" : "default",
|
1013
|
+
children: [
|
1014
|
+
addOnLeft,
|
1015
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1016
|
+
import_react22.Input,
|
1017
|
+
{
|
1018
|
+
ref,
|
1019
|
+
type: inputType,
|
1020
|
+
value,
|
1021
|
+
isDisabled,
|
1022
|
+
isSuccess,
|
1023
|
+
...inputProps,
|
1024
|
+
fontSize
|
1025
|
+
}
|
1026
|
+
),
|
1027
|
+
(withClear || isLoading || type === "password") && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
1028
|
+
import_react22.Box,
|
1029
|
+
{
|
1030
|
+
"data-test-id": "CT_Component_ClearInput",
|
1031
|
+
display: "flex",
|
1032
|
+
alignItems: "center",
|
1033
|
+
justifyContent: "center",
|
1034
|
+
width: "16px",
|
1035
|
+
mr: "10px",
|
1036
|
+
children: [
|
1037
|
+
withClear && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1038
|
+
import_react22.Box,
|
1039
|
+
{
|
1040
|
+
display: "flex",
|
1041
|
+
justifyContent: "center",
|
1042
|
+
onClick: !isDisabled ? onClear : void 0,
|
1043
|
+
cursor: isDisabled ? "not-allowed" : "pointer",
|
1044
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_internal_icon5.Close, { size: 4, color: iconColor })
|
1045
|
+
}
|
1046
|
+
),
|
1047
|
+
type === "password" && !isShowPassword && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1048
|
+
import_react22.Box,
|
1049
|
+
{
|
1050
|
+
"data-test-id": "q2Bj2G4FlamXyHuRKMZ1Q",
|
1051
|
+
onClick: () => {
|
1052
|
+
if (!isDisabled) setIsShowPassword(true);
|
1053
|
+
},
|
1054
|
+
cursor: isDisabled ? "not-allowed" : "pointer",
|
1055
|
+
display: "flex",
|
1056
|
+
justifyContent: "center",
|
1057
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_internal_icon5.EyeOff, { size: 4, color: iconColor })
|
1058
|
+
}
|
1059
|
+
),
|
1060
|
+
type === "password" && isShowPassword && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
1061
|
+
import_react22.Box,
|
1062
|
+
{
|
1063
|
+
"data-test-id": "sfc2388bmeXBmdla45Ibk",
|
1064
|
+
onClick: () => {
|
1065
|
+
if (!isDisabled) setIsShowPassword(false);
|
1066
|
+
},
|
1067
|
+
cursor: isDisabled ? "not-allowed" : "pointer",
|
1068
|
+
display: "flex",
|
1069
|
+
justifyContent: "center",
|
1070
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_internal_icon5.Eye, { size: 4, color: iconColor })
|
1071
|
+
}
|
1072
|
+
),
|
1073
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(loader_default, { size: "sm" })
|
1074
|
+
]
|
1075
|
+
}
|
1076
|
+
),
|
1077
|
+
addOnRight
|
1078
|
+
]
|
1079
|
+
}
|
1080
|
+
)
|
1075
1081
|
}
|
1076
|
-
)
|
1082
|
+
)
|
1077
1083
|
}
|
1078
1084
|
);
|
1079
1085
|
});
|
@@ -1120,12 +1126,6 @@ var Counter = ({
|
|
1120
1126
|
helperText = "",
|
1121
1127
|
isReadOnly = false
|
1122
1128
|
}) => {
|
1123
|
-
const getFieldSize = () => {
|
1124
|
-
if (size2 === "xl") return "lg";
|
1125
|
-
if (size2 === "lg") return "md";
|
1126
|
-
if (size2 === "md") return "sm";
|
1127
|
-
return "xs";
|
1128
|
-
};
|
1129
1129
|
const decrement = () => {
|
1130
1130
|
onChange(value - 1);
|
1131
1131
|
};
|
@@ -1156,7 +1156,7 @@ var Counter = ({
|
|
1156
1156
|
isError,
|
1157
1157
|
isDisabled: disabled || max === 0,
|
1158
1158
|
textAlign: "center",
|
1159
|
-
size:
|
1159
|
+
size: size2,
|
1160
1160
|
min,
|
1161
1161
|
max,
|
1162
1162
|
onChange: handleChange,
|
@@ -2664,7 +2664,7 @@ function environmentName(env) {
|
|
2664
2664
|
|
2665
2665
|
// src/components/header/components/version.tsx
|
2666
2666
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
2667
|
-
var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
2667
|
+
var Version = ({ hideEnv, version, environment, onOpenModalRelease, versionStyle }) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
2668
2668
|
version && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
2669
2669
|
badge_default,
|
2670
2670
|
{
|
@@ -2673,6 +2673,7 @@ var Version = ({ hideEnv, version, environment, onOpenModalRelease }) => /* @__P
|
|
2673
2673
|
variant: "neutral-light",
|
2674
2674
|
onClick: onOpenModalRelease,
|
2675
2675
|
cursor: onOpenModalRelease ? "pointer" : "auto",
|
2676
|
+
...versionStyle,
|
2676
2677
|
children: version
|
2677
2678
|
}
|
2678
2679
|
),
|
@@ -2694,7 +2695,8 @@ Version.defaultProps = {
|
|
2694
2695
|
hideEnv: false,
|
2695
2696
|
environment: void 0,
|
2696
2697
|
version: void 0,
|
2697
|
-
onOpenModalRelease: void 0
|
2698
|
+
onOpenModalRelease: void 0,
|
2699
|
+
versionStyle: void 0
|
2698
2700
|
};
|
2699
2701
|
var version_default = Version;
|
2700
2702
|
|
@@ -2715,6 +2717,7 @@ var Header = ({
|
|
2715
2717
|
children,
|
2716
2718
|
profile,
|
2717
2719
|
bg = "white",
|
2720
|
+
versionStyle,
|
2718
2721
|
...props
|
2719
2722
|
}) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react45.Flex, { minH: 15, bg, shadow: "raised", px: 6, py: 3, alignItems: "center", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react45.Flex, { h: "auto", w: "full", alignItems: "center", justifyContent: profile ? "flex-end" : "space-between", pos: "relative", children: [
|
2720
2723
|
mainLogo && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react45.Flex, { alignItems: "center", children: [
|
@@ -2729,7 +2732,8 @@ var Header = ({
|
|
2729
2732
|
hideEnv,
|
2730
2733
|
version: data == null ? void 0 : data.version,
|
2731
2734
|
environment: data == null ? void 0 : data.environment,
|
2732
|
-
onOpenModalRelease
|
2735
|
+
onOpenModalRelease,
|
2736
|
+
versionStyle
|
2733
2737
|
}
|
2734
2738
|
)
|
2735
2739
|
] }),
|
@@ -2750,7 +2754,8 @@ Header.defaultProps = {
|
|
2750
2754
|
centerLogoSize: void 0,
|
2751
2755
|
hideEnv: false,
|
2752
2756
|
urlLogo: void 0,
|
2753
|
-
profile: void 0
|
2757
|
+
profile: void 0,
|
2758
|
+
versionStyle: void 0
|
2754
2759
|
};
|
2755
2760
|
var header_default = Header;
|
2756
2761
|
|
@@ -2860,34 +2865,78 @@ var modal_header_default = ModalHeader2;
|
|
2860
2865
|
// src/components/modal/index.ts
|
2861
2866
|
var import_react58 = require("@chakra-ui/react");
|
2862
2867
|
|
2863
|
-
// src/components/
|
2868
|
+
// src/components/nav-item/components/nav-item.tsx
|
2864
2869
|
var import_react59 = require("@chakra-ui/react");
|
2870
|
+
var import_shared_utils9 = require("@chakra-ui/shared-utils");
|
2871
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
2872
|
+
var NavItem = ({ children, isActive, isChild, isDisabled, ...props }) => {
|
2873
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
2874
|
+
import_react59.Link,
|
2875
|
+
{
|
2876
|
+
"data-test-id": "7quRuVrffI7_tnCF4jUSV",
|
2877
|
+
opacity: isDisabled ? "0.3" : "initial",
|
2878
|
+
cursor: isDisabled ? "not-allowed" : "pointer",
|
2879
|
+
h: "7.5",
|
2880
|
+
display: "flex",
|
2881
|
+
justifyContent: "space-between",
|
2882
|
+
alignItems: "center",
|
2883
|
+
w: "full",
|
2884
|
+
p: "2",
|
2885
|
+
pl: isChild ? "7" : "2",
|
2886
|
+
color: isActive ? "primary.500" : "black.high",
|
2887
|
+
bg: isActive ? "primary.100" : "white",
|
2888
|
+
className: (0, import_shared_utils9.cx)("catalyst-nav-item", props.className),
|
2889
|
+
textStyle: "text.xs",
|
2890
|
+
fontWeight: isActive ? "semibold" : "regular",
|
2891
|
+
rounded: "sm",
|
2892
|
+
_active: isDisabled ? {} : {
|
2893
|
+
bg: "primary.100"
|
2894
|
+
},
|
2895
|
+
_hover: isDisabled ? {} : {
|
2896
|
+
textDecoration: "none",
|
2897
|
+
bg: isActive ? "primary.100" : "primary.50"
|
2898
|
+
},
|
2899
|
+
...props,
|
2900
|
+
onClick: isDisabled ? void 0 : props.onClick,
|
2901
|
+
children
|
2902
|
+
}
|
2903
|
+
);
|
2904
|
+
};
|
2905
|
+
NavItem.displayName = "NavItem";
|
2906
|
+
NavItem.defaultProps = {
|
2907
|
+
isActive: false,
|
2908
|
+
isChild: false,
|
2909
|
+
isDisabled: false
|
2910
|
+
};
|
2911
|
+
|
2912
|
+
// src/components/navigation/components/navigation.tsx
|
2913
|
+
var import_react60 = require("@chakra-ui/react");
|
2865
2914
|
var Icon3 = __toESM(require("@ctlyst.id/internal-icon"));
|
2866
|
-
var
|
2915
|
+
var import_react61 = require("@emotion/react");
|
2867
2916
|
|
2868
2917
|
// src/components/navigation/components/mapping-icon.tsx
|
2869
2918
|
var Icon2 = __toESM(require("@ctlyst.id/internal-icon"));
|
2870
|
-
var
|
2919
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
2871
2920
|
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,
|
2921
|
+
["Order", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.ShoppingBag, { size: 4, color: "inherit" }, "order")],
|
2922
|
+
["Fulfillment", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.ShoppingCart, { size: 4, color: "inherit" }, "fullfilment")],
|
2923
|
+
["Transfer Stock", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.Repeat, { size: 4, color: "inherit" }, "transfer-stock")],
|
2924
|
+
["Stock", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.Box, { size: 4, color: "inherit" }, "stock")],
|
2925
|
+
["Product Database", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.Layers, { size: 4, color: "inherit" }, "product-database")],
|
2926
|
+
["Purchasing", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.DollarSign, { size: 4, color: "inherit" }, "purchasing")],
|
2927
|
+
["Reseller", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.Users, { size: 4, color: "inherit" }, "reseller")],
|
2928
|
+
["Retur", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.RotateCcw, { size: 4, color: "inherit" }, "retur")],
|
2929
|
+
["Other", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.Settings, { size: 4, color: "inherit" }, "other")],
|
2930
|
+
["Content", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.Layout, { size: 4, color: "inherit" }, "content")],
|
2931
|
+
["Customer", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.HelpCircle, { size: 4, color: "inherit" }, "content")],
|
2932
|
+
["Voucher", /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon2.Gift, { size: 4, color: "inherit" }, "content")]
|
2884
2933
|
]);
|
2885
2934
|
|
2886
2935
|
// src/components/navigation/components/navigation.tsx
|
2887
|
-
var
|
2936
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
2888
2937
|
var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
2889
|
-
return /* @__PURE__ */ (0,
|
2890
|
-
|
2938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react60.Box, { borderRadius: "md", overflowX: "auto", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
2939
|
+
import_react60.Flex,
|
2891
2940
|
{
|
2892
2941
|
bg: "white",
|
2893
2942
|
w: "full",
|
@@ -2901,9 +2950,9 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2901
2950
|
children: navigations == null ? void 0 : navigations.map((navigation) => {
|
2902
2951
|
const isActive = activePath.startsWith(navigation.navLink || "");
|
2903
2952
|
const activeBg = isActive ? "primary.500" : void 0;
|
2904
|
-
return /* @__PURE__ */ (0,
|
2905
|
-
/* @__PURE__ */ (0,
|
2906
|
-
|
2953
|
+
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: [
|
2954
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react60.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
2955
|
+
import_react60.Button,
|
2907
2956
|
{
|
2908
2957
|
h: 7.5,
|
2909
2958
|
p: 2,
|
@@ -2916,14 +2965,14 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2916
2965
|
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
2917
2966
|
color: isActive ? "primary.50" : "black.high",
|
2918
2967
|
leftIcon: mappingIcon.get(navigation.title),
|
2919
|
-
rightIcon: /* @__PURE__ */ (0,
|
2968
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Icon3.ChevronDown, { size: 4, color: "inherit" }),
|
2920
2969
|
children: navigation.title
|
2921
2970
|
}
|
2922
2971
|
) }),
|
2923
|
-
navigation.children && /* @__PURE__ */ (0,
|
2924
|
-
|
2972
|
+
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)(
|
2973
|
+
import_react60.PopoverContent,
|
2925
2974
|
{
|
2926
|
-
bg: (0,
|
2975
|
+
bg: (0, import_react60.useColorModeValue)("white", "ebony-clay.800"),
|
2927
2976
|
maxW: 250,
|
2928
2977
|
border: "none",
|
2929
2978
|
borderRadius: "md",
|
@@ -2932,16 +2981,16 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2932
2981
|
const link = navHost ? `${navHost}${navLink}` : navLink;
|
2933
2982
|
const isLocalLink = host === navHost;
|
2934
2983
|
const isActiveSub = activePath === navLink;
|
2935
|
-
return /* @__PURE__ */ (0,
|
2936
|
-
|
2984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
2985
|
+
import_react60.Link,
|
2937
2986
|
{
|
2938
2987
|
as: isLocalLink ? as : void 0,
|
2939
2988
|
href: link,
|
2940
2989
|
_hover: {
|
2941
2990
|
textDecoration: "none"
|
2942
2991
|
},
|
2943
|
-
children: /* @__PURE__ */ (0,
|
2944
|
-
|
2992
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
2993
|
+
import_react60.Box,
|
2945
2994
|
{
|
2946
2995
|
display: "flex",
|
2947
2996
|
position: "relative",
|
@@ -2949,24 +2998,24 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
|
|
2949
2998
|
cursor: "pointer",
|
2950
2999
|
transition: "padding 0.35s ease 0s",
|
2951
3000
|
_hover: {
|
2952
|
-
backgroundColor: (0,
|
2953
|
-
color: (0,
|
3001
|
+
backgroundColor: (0, import_react60.useColorModeValue)("dove-gray.50", "mirage.900"),
|
3002
|
+
color: (0, import_react60.useColorModeValue)("primary.500", "dove-gray.600"),
|
2954
3003
|
px: 5,
|
2955
3004
|
py: 4,
|
2956
3005
|
_first: { borderTopRadius: "md" },
|
2957
3006
|
_last: { borderBottomRadius: "md" }
|
2958
3007
|
},
|
2959
3008
|
color: isActiveSub ? "primary.500" : "inherit",
|
2960
|
-
css:
|
3009
|
+
css: import_react61.css`
|
2961
3010
|
border-spacing: 4px;
|
2962
3011
|
`,
|
2963
3012
|
px: 6,
|
2964
3013
|
py: 4,
|
2965
3014
|
children: [
|
2966
3015
|
mappingIcon.get(navigation.title),
|
2967
|
-
/* @__PURE__ */ (0,
|
2968
|
-
isActiveSub && /* @__PURE__ */ (0,
|
2969
|
-
|
3016
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react60.Text, { fontSize: "text.sm", ml: 3, children: title }),
|
3017
|
+
isActiveSub && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
3018
|
+
import_react60.Box,
|
2970
3019
|
{
|
2971
3020
|
width: 0.5,
|
2972
3021
|
height: 8,
|
@@ -2999,9 +3048,9 @@ Navigation.defaultProps = {
|
|
2999
3048
|
var navigation_default = Navigation;
|
3000
3049
|
|
3001
3050
|
// src/components/navigation/components/navigation-bar.tsx
|
3002
|
-
var
|
3051
|
+
var import_react62 = require("@chakra-ui/react");
|
3003
3052
|
var Icon4 = __toESM(require("@ctlyst.id/internal-icon"));
|
3004
|
-
var
|
3053
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
3005
3054
|
var NavigationBar = ({
|
3006
3055
|
navigations,
|
3007
3056
|
isFetched,
|
@@ -3016,8 +3065,8 @@ var NavigationBar = ({
|
|
3016
3065
|
}
|
3017
3066
|
return subMenu.navHost + subMenu.navLink;
|
3018
3067
|
};
|
3019
|
-
return /* @__PURE__ */ (0,
|
3020
|
-
|
3068
|
+
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)(
|
3069
|
+
import_react62.Flex,
|
3021
3070
|
{
|
3022
3071
|
bg: "white",
|
3023
3072
|
w: "full",
|
@@ -3033,9 +3082,9 @@ var NavigationBar = ({
|
|
3033
3082
|
const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
|
3034
3083
|
const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
|
3035
3084
|
const activeBg = isActive ? "primary.500" : void 0;
|
3036
|
-
return /* @__PURE__ */ (0,
|
3037
|
-
/* @__PURE__ */ (0,
|
3038
|
-
|
3085
|
+
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: [
|
3086
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react62.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
3087
|
+
import_react62.Button,
|
3039
3088
|
{
|
3040
3089
|
h: 7.5,
|
3041
3090
|
p: 2,
|
@@ -3048,12 +3097,12 @@ var NavigationBar = ({
|
|
3048
3097
|
backgroundColor: isOpen && !isActive ? "neutral.400" : activeBg,
|
3049
3098
|
color: isActive ? "primary.50" : "black.high",
|
3050
3099
|
leftIcon: mappingIcon2.get(item.title),
|
3051
|
-
rightIcon: /* @__PURE__ */ (0,
|
3100
|
+
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon4.ChevronDown, { size: 4, color: "inherit" }),
|
3052
3101
|
children: item.title
|
3053
3102
|
}
|
3054
3103
|
) }),
|
3055
|
-
item.children && /* @__PURE__ */ (0,
|
3056
|
-
|
3104
|
+
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)(
|
3105
|
+
import_react62.Link,
|
3057
3106
|
{
|
3058
3107
|
href: urlMenu(subMenu),
|
3059
3108
|
display: "flex",
|
@@ -3070,7 +3119,7 @@ var NavigationBar = ({
|
|
3070
3119
|
"data-test-id": `CT_component_navigation_link-${item.id}`,
|
3071
3120
|
children: [
|
3072
3121
|
mappingIcon2.get(item.title),
|
3073
|
-
/* @__PURE__ */ (0,
|
3122
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react62.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
|
3074
3123
|
]
|
3075
3124
|
},
|
3076
3125
|
subMenu.id
|
@@ -3087,18 +3136,18 @@ var navigation_bar_default = NavigationBar;
|
|
3087
3136
|
|
3088
3137
|
// src/components/pagination/components/pagination.tsx
|
3089
3138
|
var import_icons4 = require("@chakra-ui/icons");
|
3090
|
-
var
|
3139
|
+
var import_react65 = require("@chakra-ui/react");
|
3091
3140
|
|
3092
3141
|
// 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
|
-
|
3142
|
+
var import_react63 = require("@chakra-ui/react");
|
3143
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
3144
|
+
var PaginationButton = (0, import_react63.forwardRef)(({ className, style, isActive, children, ...rest }, ref) => {
|
3145
|
+
const btnBg = (0, import_react63.useColorModeValue)("neutral.300", "mirage.900");
|
3146
|
+
const btnColor = (0, import_react63.useColorModeValue)("black.high", "primary.300");
|
3147
|
+
const btnNotActiveBg = (0, import_react63.useColorModeValue)("secondary.50", "primary.500");
|
3148
|
+
const btnNotActiveColor = (0, import_react63.useColorModeValue)("primary.500", "white");
|
3149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
3150
|
+
import_react63.Button,
|
3102
3151
|
{
|
3103
3152
|
"data-test-id": "Pagination-Button",
|
3104
3153
|
ref,
|
@@ -3119,7 +3168,7 @@ var PaginationButton = (0, import_react62.forwardRef)(({ className, style, isAct
|
|
3119
3168
|
color: btnNotActiveColor
|
3120
3169
|
} : {},
|
3121
3170
|
_disabled: {
|
3122
|
-
background: (0,
|
3171
|
+
background: (0, import_react63.useColorModeValue)("neutral.300", "mirage.900"),
|
3123
3172
|
color: "neutral.600",
|
3124
3173
|
pointerEvents: "none"
|
3125
3174
|
},
|
@@ -3135,16 +3184,16 @@ PaginationButton.defaultProps = {
|
|
3135
3184
|
var pagination_button_default = PaginationButton;
|
3136
3185
|
|
3137
3186
|
// src/components/pagination/components/pagination-button-trigger.tsx
|
3138
|
-
var
|
3139
|
-
var
|
3187
|
+
var import_react64 = require("@chakra-ui/react");
|
3188
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
3140
3189
|
var PaginationButtonTrigger = ({
|
3141
3190
|
color,
|
3142
3191
|
isDisabled,
|
3143
3192
|
onClick,
|
3144
3193
|
visuallyHidden,
|
3145
3194
|
icon
|
3146
|
-
}) => /* @__PURE__ */ (0,
|
3147
|
-
/* @__PURE__ */ (0,
|
3195
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(pagination_button_default, { "data-test-id": "DLVCc_fBK35spHm5WxjcJ", color, isDisabled, onClick, children: [
|
3196
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react64.VisuallyHidden, { children: visuallyHidden }),
|
3148
3197
|
icon
|
3149
3198
|
] });
|
3150
3199
|
PaginationButtonTrigger.defaultProps = {
|
@@ -3157,10 +3206,10 @@ PaginationButtonTrigger.defaultProps = {
|
|
3157
3206
|
var pagination_button_trigger_default = PaginationButtonTrigger;
|
3158
3207
|
|
3159
3208
|
// src/components/pagination/components/pagination.tsx
|
3160
|
-
var
|
3209
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
3161
3210
|
var Pagination = ({ className, current, total, onSelect }) => {
|
3162
|
-
const btnColorDisabled = (0,
|
3163
|
-
const btnColor = (0,
|
3211
|
+
const btnColorDisabled = (0, import_react65.useColorModeValue)("secondary.100", "primary.500");
|
3212
|
+
const btnColor = (0, import_react65.useColorModeValue)("primary.500", "secondary.100");
|
3164
3213
|
const disabledPrevious = current === 1;
|
3165
3214
|
const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;
|
3166
3215
|
const disabledNext = current === total;
|
@@ -3187,8 +3236,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3187
3236
|
}
|
3188
3237
|
return pageButtons;
|
3189
3238
|
};
|
3190
|
-
return /* @__PURE__ */ (0,
|
3191
|
-
/* @__PURE__ */ (0,
|
3239
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react65.Box, { className, display: "inline-flex", alignItems: "center", children: [
|
3240
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react65.Box, { mr: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3192
3241
|
pagination_button_trigger_default,
|
3193
3242
|
{
|
3194
3243
|
"data-test-id": "Pagination-Button",
|
@@ -3196,11 +3245,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3196
3245
|
isDisabled: disabledPrevious,
|
3197
3246
|
onClick: () => handleSelectPage(1),
|
3198
3247
|
visuallyHidden: "First Page",
|
3199
|
-
icon: /* @__PURE__ */ (0,
|
3248
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ArrowLeftIcon, { width: 2 })
|
3200
3249
|
}
|
3201
3250
|
) }),
|
3202
|
-
/* @__PURE__ */ (0,
|
3203
|
-
/* @__PURE__ */ (0,
|
3251
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react65.Box, { bg: "neutral.300", borderRadius: "full", children: [
|
3252
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3204
3253
|
pagination_button_trigger_default,
|
3205
3254
|
{
|
3206
3255
|
"data-test-id": "Pagination-Button",
|
@@ -3208,22 +3257,22 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3208
3257
|
isDisabled: disabledPrevious,
|
3209
3258
|
onClick: () => handleSelectPage(current - 1),
|
3210
3259
|
visuallyHidden: "Previous Page",
|
3211
|
-
icon: /* @__PURE__ */ (0,
|
3260
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ChevronLeftIcon, {})
|
3212
3261
|
}
|
3213
3262
|
),
|
3214
3263
|
generatePages().map((page) => {
|
3215
|
-
return /* @__PURE__ */ (0,
|
3264
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3216
3265
|
pagination_button_default,
|
3217
3266
|
{
|
3218
3267
|
"data-test-id": "Pagination-Button",
|
3219
3268
|
isActive: page === current,
|
3220
3269
|
onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
|
3221
|
-
children: /* @__PURE__ */ (0,
|
3270
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react65.Text, { scale: 300, fontSize: "text.sm", lineHeight: 18, fontWeight: 500, children: page })
|
3222
3271
|
},
|
3223
3272
|
page
|
3224
3273
|
);
|
3225
3274
|
}),
|
3226
|
-
/* @__PURE__ */ (0,
|
3275
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3227
3276
|
pagination_button_trigger_default,
|
3228
3277
|
{
|
3229
3278
|
"data-test-id": "Pagination-Button",
|
@@ -3231,11 +3280,11 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3231
3280
|
isDisabled: disabledNext,
|
3232
3281
|
onClick: () => handleSelectPage(current + 1),
|
3233
3282
|
visuallyHidden: "Next Page",
|
3234
|
-
icon: /* @__PURE__ */ (0,
|
3283
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ChevronRightIcon, {})
|
3235
3284
|
}
|
3236
3285
|
)
|
3237
3286
|
] }),
|
3238
|
-
/* @__PURE__ */ (0,
|
3287
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react65.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
3239
3288
|
pagination_button_trigger_default,
|
3240
3289
|
{
|
3241
3290
|
"data-test-id": "Pagination-Button",
|
@@ -3243,7 +3292,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
|
|
3243
3292
|
isDisabled: disabledNext,
|
3244
3293
|
onClick: () => handleSelectPage(total),
|
3245
3294
|
visuallyHidden: "Last Page",
|
3246
|
-
icon: /* @__PURE__ */ (0,
|
3295
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ArrowRightIcon, { width: 2 })
|
3247
3296
|
}
|
3248
3297
|
) })
|
3249
3298
|
] });
|
@@ -3256,8 +3305,8 @@ Pagination.displayName = "Pagination";
|
|
3256
3305
|
var pagination_default = Pagination;
|
3257
3306
|
|
3258
3307
|
// src/components/pagination/components/pagination-detail.tsx
|
3259
|
-
var
|
3260
|
-
var
|
3308
|
+
var import_react66 = require("@chakra-ui/react");
|
3309
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
3261
3310
|
var PaginationDetail = ({
|
3262
3311
|
page,
|
3263
3312
|
limit,
|
@@ -3267,15 +3316,15 @@ var PaginationDetail = ({
|
|
3267
3316
|
lineHeight = 18,
|
3268
3317
|
...rest
|
3269
3318
|
}) => {
|
3270
|
-
return /* @__PURE__ */ (0,
|
3319
|
+
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
3320
|
};
|
3272
3321
|
var pagination_detail_default = PaginationDetail;
|
3273
3322
|
|
3274
3323
|
// src/components/pagination/components/pagination-filter.tsx
|
3275
|
-
var
|
3324
|
+
var import_react67 = require("@chakra-ui/react");
|
3276
3325
|
var React13 = __toESM(require("react"));
|
3277
3326
|
var import_fi6 = require("react-icons/fi");
|
3278
|
-
var
|
3327
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
3279
3328
|
var PaginationFilter = ({
|
3280
3329
|
limit,
|
3281
3330
|
label = "Baris per halaman:",
|
@@ -3284,10 +3333,10 @@ var PaginationFilter = ({
|
|
3284
3333
|
...rest
|
3285
3334
|
}) => {
|
3286
3335
|
const [value, setValue] = React13.useState(limit);
|
3287
|
-
return /* @__PURE__ */ (0,
|
3288
|
-
/* @__PURE__ */ (0,
|
3289
|
-
/* @__PURE__ */ (0,
|
3290
|
-
|
3336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_react67.Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [
|
3337
|
+
/* @__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 }),
|
3338
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
3339
|
+
import_react67.Select,
|
3291
3340
|
{
|
3292
3341
|
textAlign: "center",
|
3293
3342
|
size: "xs",
|
@@ -3295,7 +3344,7 @@ var PaginationFilter = ({
|
|
3295
3344
|
border: "none",
|
3296
3345
|
boxShadow: "none",
|
3297
3346
|
width: 18,
|
3298
|
-
icon: /* @__PURE__ */ (0,
|
3347
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_fi6.FiChevronDown, {}),
|
3299
3348
|
_focusVisible: { boxShadow: "none" },
|
3300
3349
|
onChange: (e) => {
|
3301
3350
|
const numberValue = Number(e.target.value);
|
@@ -3304,7 +3353,7 @@ var PaginationFilter = ({
|
|
3304
3353
|
},
|
3305
3354
|
value,
|
3306
3355
|
children: items.map((item) => {
|
3307
|
-
return /* @__PURE__ */ (0,
|
3356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("option", { value: item, children: item }, item);
|
3308
3357
|
})
|
3309
3358
|
}
|
3310
3359
|
)
|
@@ -3317,11 +3366,11 @@ PaginationFilter.defaultProps = {
|
|
3317
3366
|
var pagination_filter_default = PaginationFilter;
|
3318
3367
|
|
3319
3368
|
// src/components/popover/index.ts
|
3320
|
-
var
|
3369
|
+
var import_react68 = require("@chakra-ui/react");
|
3321
3370
|
|
3322
3371
|
// src/components/radio/components/radio.tsx
|
3323
|
-
var
|
3324
|
-
var
|
3372
|
+
var import_react69 = require("@chakra-ui/react");
|
3373
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
3325
3374
|
var Radio = ({
|
3326
3375
|
isError = false,
|
3327
3376
|
helpText = "",
|
@@ -3331,9 +3380,9 @@ var Radio = ({
|
|
3331
3380
|
...rest
|
3332
3381
|
}) => {
|
3333
3382
|
const variant = isError ? "errors" : "unstyled";
|
3334
|
-
return /* @__PURE__ */ (0,
|
3335
|
-
/* @__PURE__ */ (0,
|
3336
|
-
/* @__PURE__ */ (0,
|
3383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_react69.Box, { children: [
|
3384
|
+
/* @__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 }) }) }),
|
3385
|
+
/* @__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
3386
|
] });
|
3338
3387
|
};
|
3339
3388
|
Radio.displayName = "Radio";
|
@@ -3344,8 +3393,8 @@ Radio.defaultProps = {
|
|
3344
3393
|
};
|
3345
3394
|
|
3346
3395
|
// src/components/radio/components/radio-group.tsx
|
3347
|
-
var
|
3348
|
-
var
|
3396
|
+
var import_react70 = require("@chakra-ui/react");
|
3397
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
3349
3398
|
var RadioGroup = ({
|
3350
3399
|
children,
|
3351
3400
|
label,
|
@@ -3354,7 +3403,7 @@ var RadioGroup = ({
|
|
3354
3403
|
errorMessage,
|
3355
3404
|
...props
|
3356
3405
|
}) => {
|
3357
|
-
return /* @__PURE__ */ (0,
|
3406
|
+
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
3407
|
};
|
3359
3408
|
RadioGroup.displayName = "RadioGroup";
|
3360
3409
|
RadioGroup.defaultProps = {
|
@@ -3364,14 +3413,14 @@ RadioGroup.defaultProps = {
|
|
3364
3413
|
};
|
3365
3414
|
|
3366
3415
|
// src/components/radio/index.ts
|
3367
|
-
var
|
3416
|
+
var import_react71 = require("@chakra-ui/react");
|
3368
3417
|
|
3369
3418
|
// src/components/rating/components/rating.tsx
|
3370
|
-
var
|
3419
|
+
var import_react72 = require("@chakra-ui/react");
|
3371
3420
|
var import_internal_icon6 = require("@ctlyst.id/internal-icon");
|
3372
|
-
var
|
3421
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
3373
3422
|
var Rating = ({ value }) => {
|
3374
|
-
return /* @__PURE__ */ (0,
|
3423
|
+
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
3424
|
};
|
3376
3425
|
var rating_default = Rating;
|
3377
3426
|
|
@@ -3380,16 +3429,16 @@ var import_system7 = require("@chakra-ui/system");
|
|
3380
3429
|
var import_react_select = __toESM(require("react-select"));
|
3381
3430
|
|
3382
3431
|
// src/config/theme/foundations/shadows.ts
|
3383
|
-
var
|
3432
|
+
var import_react73 = require("@chakra-ui/react");
|
3384
3433
|
var shadows = {
|
3385
|
-
...
|
3434
|
+
...import_react73.theme.shadows,
|
3386
3435
|
raised: "0px 4px 20px rgba(0, 0, 0, 0.05)"
|
3387
3436
|
};
|
3388
3437
|
|
3389
3438
|
// src/config/theme/foundations/sizes.ts
|
3390
|
-
var
|
3439
|
+
var import_react74 = require("@chakra-ui/react");
|
3391
3440
|
var sizes = {
|
3392
|
-
...
|
3441
|
+
...import_react74.theme.sizes,
|
3393
3442
|
4.5: "1.125rem",
|
3394
3443
|
9.5: "2.375rem",
|
3395
3444
|
18: "4.5rem",
|
@@ -3399,9 +3448,9 @@ var sizes = {
|
|
3399
3448
|
};
|
3400
3449
|
|
3401
3450
|
// src/config/theme/foundations/spacing.ts
|
3402
|
-
var
|
3451
|
+
var import_react75 = require("@chakra-ui/react");
|
3403
3452
|
var spacing = {
|
3404
|
-
...
|
3453
|
+
...import_react75.theme.space,
|
3405
3454
|
4.5: "1.125rem",
|
3406
3455
|
9.5: "2.375rem",
|
3407
3456
|
18: "4.5rem",
|
@@ -3727,14 +3776,14 @@ var themeSelect = (theme6) => {
|
|
3727
3776
|
};
|
3728
3777
|
|
3729
3778
|
// src/components/select/components/select.tsx
|
3730
|
-
var
|
3779
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
3731
3780
|
function Select2({
|
3732
3781
|
styles,
|
3733
3782
|
isError = false,
|
3734
3783
|
...rest
|
3735
3784
|
}) {
|
3736
3785
|
const { colorMode } = (0, import_system7.useColorMode)();
|
3737
|
-
return /* @__PURE__ */ (0,
|
3786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
3738
3787
|
import_react_select.default,
|
3739
3788
|
{
|
3740
3789
|
classNamePrefix: "react-select",
|
@@ -3749,14 +3798,14 @@ var select_default = Select2;
|
|
3749
3798
|
// src/components/select/components/select-async.tsx
|
3750
3799
|
var import_system8 = require("@chakra-ui/system");
|
3751
3800
|
var import_react_select_async_paginate = require("react-select-async-paginate");
|
3752
|
-
var
|
3801
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
3753
3802
|
function SelectAsync({
|
3754
3803
|
styles,
|
3755
3804
|
isError = false,
|
3756
3805
|
...rest
|
3757
3806
|
}) {
|
3758
3807
|
const { colorMode } = (0, import_system8.useColorMode)();
|
3759
|
-
return /* @__PURE__ */ (0,
|
3808
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
3760
3809
|
import_react_select_async_paginate.AsyncPaginate,
|
3761
3810
|
{
|
3762
3811
|
classNamePrefix: "react-select",
|
@@ -3771,10 +3820,10 @@ var select_async_default = SelectAsync;
|
|
3771
3820
|
// src/components/select/components/select-async-creatable.tsx
|
3772
3821
|
var import_system9 = require("@chakra-ui/system");
|
3773
3822
|
var import_async_creatable = __toESM(require("react-select/async-creatable"));
|
3774
|
-
var
|
3823
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
3775
3824
|
function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
3776
3825
|
const { colorMode } = (0, import_system9.useColorMode)();
|
3777
|
-
return /* @__PURE__ */ (0,
|
3826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
3778
3827
|
import_async_creatable.default,
|
3779
3828
|
{
|
3780
3829
|
classNamePrefix: "react-select",
|
@@ -3788,10 +3837,10 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
3788
3837
|
// src/components/select/components/select-creatable.tsx
|
3789
3838
|
var import_system10 = require("@chakra-ui/system");
|
3790
3839
|
var import_creatable = __toESM(require("react-select/creatable"));
|
3791
|
-
var
|
3840
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
3792
3841
|
function SelectCreatable({ styles, isError = false, ...rest }) {
|
3793
3842
|
const { colorMode } = (0, import_system10.useColorMode)();
|
3794
|
-
return /* @__PURE__ */ (0,
|
3843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3795
3844
|
import_creatable.default,
|
3796
3845
|
{
|
3797
3846
|
classNamePrefix: "react-select",
|
@@ -3803,10 +3852,10 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
3803
3852
|
}
|
3804
3853
|
|
3805
3854
|
// src/components/select/components/select-with-checkbox.tsx
|
3806
|
-
var
|
3855
|
+
var import_react76 = require("@chakra-ui/react");
|
3807
3856
|
var import_system11 = require("@chakra-ui/system");
|
3808
3857
|
var import_react_select2 = __toESM(require("react-select"));
|
3809
|
-
var
|
3858
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
3810
3859
|
var CHECKBOX_STATE = {
|
3811
3860
|
UNCHECKED: 0,
|
3812
3861
|
INDETERMINATE: 1,
|
@@ -3853,8 +3902,8 @@ var InputOption = ({
|
|
3853
3902
|
onClick: isDisabled ? void 0 : innerProps.onClick,
|
3854
3903
|
style
|
3855
3904
|
};
|
3856
|
-
return /* @__PURE__ */ (0,
|
3857
|
-
/* @__PURE__ */ (0,
|
3905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
|
3906
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3858
3907
|
import_react_select2.components.Option,
|
3859
3908
|
{
|
3860
3909
|
isMulti: true,
|
@@ -3865,8 +3914,8 @@ var InputOption = ({
|
|
3865
3914
|
getStyles,
|
3866
3915
|
innerProps: props,
|
3867
3916
|
...rest,
|
3868
|
-
children: /* @__PURE__ */ (0,
|
3869
|
-
|
3917
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
3918
|
+
import_react76.Flex,
|
3870
3919
|
{
|
3871
3920
|
alignItems: "center",
|
3872
3921
|
width: "100%",
|
@@ -3875,22 +3924,22 @@ var InputOption = ({
|
|
3875
3924
|
"data-test-id": "CT_component_select-checkbox_options",
|
3876
3925
|
cursor: isDisabled ? "not-allowed" : "default",
|
3877
3926
|
children: [
|
3878
|
-
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0,
|
3879
|
-
|
3927
|
+
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3928
|
+
import_react76.Checkbox,
|
3880
3929
|
{
|
3881
3930
|
isChecked: checkedState === CHECKBOX_STATE.CHECKED,
|
3882
3931
|
isIndeterminate: checkedState === CHECKBOX_STATE.INDETERMINATE,
|
3883
3932
|
isDisabled,
|
3884
3933
|
"data-test-id": "CT_component_select-checkbox_select-all-option"
|
3885
3934
|
}
|
3886
|
-
) : /* @__PURE__ */ (0,
|
3887
|
-
/* @__PURE__ */ (0,
|
3935
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react76.Checkbox, { isChecked: isSelected, "data-test-id": "CT_component_select-checkbox_option-checkbox" }),
|
3936
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react76.Text, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
|
3888
3937
|
]
|
3889
3938
|
}
|
3890
3939
|
)
|
3891
3940
|
}
|
3892
3941
|
),
|
3893
|
-
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0,
|
3942
|
+
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("hr", {}) : null
|
3894
3943
|
] });
|
3895
3944
|
};
|
3896
3945
|
var SelectWithCheckboxBase = ({
|
@@ -3900,7 +3949,7 @@ var SelectWithCheckboxBase = ({
|
|
3900
3949
|
...rest
|
3901
3950
|
}) => {
|
3902
3951
|
const { colorMode } = (0, import_system11.useColorMode)();
|
3903
|
-
return /* @__PURE__ */ (0,
|
3952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3904
3953
|
import_react_select2.default,
|
3905
3954
|
{
|
3906
3955
|
classNamePrefix: "react-select",
|
@@ -3919,7 +3968,7 @@ var SelectWithCheckboxBase = ({
|
|
3919
3968
|
var SelectCheckbox = (props) => {
|
3920
3969
|
const { isMulti, options, value, ...rest } = props;
|
3921
3970
|
const selectValue = value || [];
|
3922
|
-
return /* @__PURE__ */ (0,
|
3971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3923
3972
|
SelectWithCheckboxBase,
|
3924
3973
|
{
|
3925
3974
|
isMulti,
|
@@ -3930,7 +3979,7 @@ var SelectCheckbox = (props) => {
|
|
3930
3979
|
const optionLength = (options == null ? void 0 : options.length) ? options.length - 1 : 0;
|
3931
3980
|
const selectedValue = isSelected ? CHECKBOX_STATE.CHECKED : CHECKBOX_STATE.UNCHECKED;
|
3932
3981
|
const checkedState = data.selectAllCheckbox ? getSelectAllCheckboxState(selectValue == null ? void 0 : selectValue.length, optionLength) : selectedValue;
|
3933
|
-
return /* @__PURE__ */ (0,
|
3982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(InputOption, { ...optionProps, checkedState });
|
3934
3983
|
}
|
3935
3984
|
},
|
3936
3985
|
...rest
|
@@ -3940,16 +3989,16 @@ var SelectCheckbox = (props) => {
|
|
3940
3989
|
var select_with_checkbox_default = SelectCheckbox;
|
3941
3990
|
|
3942
3991
|
// src/components/switch/components/switch.tsx
|
3943
|
-
var
|
3944
|
-
var
|
3992
|
+
var import_react77 = require("@chakra-ui/react");
|
3993
|
+
var import_shared_utils10 = require("@chakra-ui/shared-utils");
|
3945
3994
|
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,
|
3995
|
+
var import_react78 = require("react");
|
3996
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
3997
|
+
var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
3998
|
+
const styles = (0, import_react77.useMultiStyleConfig)("Switch", props);
|
3999
|
+
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0, import_react77.omitThemingProps)(props);
|
4000
|
+
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0, import_react77.useCheckbox)(ownProps);
|
4001
|
+
const containerStyles = (0, import_react78.useMemo)(
|
3953
4002
|
() => ({
|
3954
4003
|
display: "inline-block",
|
3955
4004
|
position: "relative",
|
@@ -3959,7 +4008,7 @@ var Switch = (0, import_react76.forwardRef)(function Switch2(props, ref) {
|
|
3959
4008
|
}),
|
3960
4009
|
[styles.container]
|
3961
4010
|
);
|
3962
|
-
const trackStyles = (0,
|
4011
|
+
const trackStyles = (0, import_react78.useMemo)(
|
3963
4012
|
() => ({
|
3964
4013
|
display: "inline-flex",
|
3965
4014
|
flexShrink: 0,
|
@@ -3971,7 +4020,7 @@ var Switch = (0, import_react76.forwardRef)(function Switch2(props, ref) {
|
|
3971
4020
|
}),
|
3972
4021
|
[styles.track]
|
3973
4022
|
);
|
3974
|
-
const labelStyles = (0,
|
4023
|
+
const labelStyles = (0, import_react78.useMemo)(
|
3975
4024
|
() => ({
|
3976
4025
|
userSelect: "none",
|
3977
4026
|
marginStart: spacing2,
|
@@ -3987,33 +4036,33 @@ var Switch = (0, import_react76.forwardRef)(function Switch2(props, ref) {
|
|
3987
4036
|
};
|
3988
4037
|
return iconSize[value];
|
3989
4038
|
};
|
3990
|
-
return /* @__PURE__ */ (0,
|
3991
|
-
|
4039
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
4040
|
+
import_react77.chakra.label,
|
3992
4041
|
{
|
3993
4042
|
...getRootProps(),
|
3994
4043
|
display: "flex",
|
3995
4044
|
alignItems: "center",
|
3996
|
-
className: (0,
|
4045
|
+
className: (0, import_shared_utils10.cx)("chakra-switch", props.className),
|
3997
4046
|
__css: containerStyles,
|
3998
4047
|
children: [
|
3999
|
-
/* @__PURE__ */ (0,
|
4000
|
-
/* @__PURE__ */ (0,
|
4001
|
-
/* @__PURE__ */ (0,
|
4002
|
-
/* @__PURE__ */ (0,
|
4003
|
-
/* @__PURE__ */ (0,
|
4048
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
4049
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react77.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
4050
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react77.Flex, { gap: 2, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
|
4051
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_internal_icon7.Check, { color: "white", size: getIconSize(props.size) }),
|
4052
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_internal_icon7.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
4004
4053
|
] }),
|
4005
|
-
/* @__PURE__ */ (0,
|
4006
|
-
|
4054
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4055
|
+
import_react77.chakra.span,
|
4007
4056
|
{
|
4008
4057
|
__css: styles.thumb,
|
4009
4058
|
className: "chakra-switch__thumb",
|
4010
|
-
"data-checked": (0,
|
4011
|
-
"data-hover": (0,
|
4059
|
+
"data-checked": (0, import_shared_utils10.dataAttr)(state.isChecked),
|
4060
|
+
"data-hover": (0, import_shared_utils10.dataAttr)(state.isHovered)
|
4012
4061
|
}
|
4013
4062
|
)
|
4014
4063
|
] }),
|
4015
|
-
children && /* @__PURE__ */ (0,
|
4016
|
-
|
4064
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4065
|
+
import_react77.chakra.span,
|
4017
4066
|
{
|
4018
4067
|
className: "chakra-switch__label",
|
4019
4068
|
color: state.isDisabled ? "black.low" : "black.high",
|
@@ -4032,18 +4081,18 @@ Switch.defaultProps = {
|
|
4032
4081
|
var switch_default = Switch;
|
4033
4082
|
|
4034
4083
|
// src/components/table/index.tsx
|
4035
|
-
var
|
4084
|
+
var import_react79 = require("@chakra-ui/react");
|
4036
4085
|
|
4037
4086
|
// src/components/tabs/components/tab.tsx
|
4038
|
-
var
|
4039
|
-
var
|
4040
|
-
var Tab = (0,
|
4087
|
+
var import_react80 = require("@chakra-ui/react");
|
4088
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
4089
|
+
var Tab = (0, import_react80.forwardRef)((props, ref) => {
|
4041
4090
|
var _a, _b;
|
4042
|
-
const tabProps = (0,
|
4091
|
+
const tabProps = (0, import_react80.useTab)({ ...props, ref });
|
4043
4092
|
const isSelected = !!tabProps["aria-selected"];
|
4044
|
-
const styles = (0,
|
4045
|
-
return /* @__PURE__ */ (0,
|
4046
|
-
|
4093
|
+
const styles = (0, import_react80.useMultiStyleConfig)("Tabs", tabProps);
|
4094
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
4095
|
+
import_react80.Button,
|
4047
4096
|
{
|
4048
4097
|
"data-test-id": props["data-test-id"],
|
4049
4098
|
p: 4,
|
@@ -4068,7 +4117,7 @@ var Tab = (0, import_react79.forwardRef)((props, ref) => {
|
|
4068
4117
|
},
|
4069
4118
|
__css: styles.tab,
|
4070
4119
|
...tabProps,
|
4071
|
-
children: /* @__PURE__ */ (0,
|
4120
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_react80.Flex, { alignItems: "center", children: [
|
4072
4121
|
(_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
|
4073
4122
|
tabProps.children,
|
4074
4123
|
(_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
|
@@ -4079,16 +4128,16 @@ var Tab = (0, import_react79.forwardRef)((props, ref) => {
|
|
4079
4128
|
var tab_default = Tab;
|
4080
4129
|
|
4081
4130
|
// src/components/tabs/index.ts
|
4082
|
-
var
|
4131
|
+
var import_react81 = require("@chakra-ui/react");
|
4083
4132
|
|
4084
4133
|
// src/components/text/index.ts
|
4085
|
-
var
|
4134
|
+
var import_react82 = require("@chakra-ui/react");
|
4086
4135
|
|
4087
4136
|
// src/components/tooltip/index.ts
|
4088
|
-
var
|
4137
|
+
var import_react83 = require("@chakra-ui/react");
|
4089
4138
|
|
4090
4139
|
// src/components/uploader/components/uploader.tsx
|
4091
|
-
var
|
4140
|
+
var import_react84 = require("@chakra-ui/react");
|
4092
4141
|
var React15 = __toESM(require("react"));
|
4093
4142
|
var import_react_dropzone = require("react-dropzone");
|
4094
4143
|
|
@@ -4102,7 +4151,7 @@ var messages = {
|
|
4102
4151
|
};
|
4103
4152
|
|
4104
4153
|
// src/components/uploader/components/uploader.tsx
|
4105
|
-
var
|
4154
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
4106
4155
|
var Uploader = ({
|
4107
4156
|
onHandleUploadFile,
|
4108
4157
|
onHandleRejections,
|
@@ -4150,9 +4199,9 @@ var Uploader = ({
|
|
4150
4199
|
React15.useEffect(() => {
|
4151
4200
|
setIsSelected(selected != null ? selected : false);
|
4152
4201
|
}, [selected]);
|
4153
|
-
return /* @__PURE__ */ (0,
|
4154
|
-
/* @__PURE__ */ (0,
|
4155
|
-
|
4202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react84.Stack, { direction: "column", children: [
|
4203
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
4204
|
+
import_react84.Flex,
|
4156
4205
|
{
|
4157
4206
|
minH: 200,
|
4158
4207
|
border: "1px dashed",
|
@@ -4163,11 +4212,11 @@ var Uploader = ({
|
|
4163
4212
|
...props,
|
4164
4213
|
...getRootProps(),
|
4165
4214
|
children: [
|
4166
|
-
/* @__PURE__ */ (0,
|
4167
|
-
isDragActive ? /* @__PURE__ */ (0,
|
4168
|
-
!multiple && isSelected && /* @__PURE__ */ (0,
|
4169
|
-
!isSelected && /* @__PURE__ */ (0,
|
4170
|
-
isSelected ? /* @__PURE__ */ (0,
|
4215
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("input", { ...getInputProps() }),
|
4216
|
+
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: [
|
4217
|
+
!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 }),
|
4218
|
+
!isSelected && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react84.Heading, { fontWeight: 400, fontSize: "18px", lineHeight: 28, mb: 2, children: messages.uploadFile }),
|
4219
|
+
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
4220
|
] })
|
4172
4221
|
]
|
4173
4222
|
}
|
@@ -4184,10 +4233,10 @@ Uploader.defaultProps = {
|
|
4184
4233
|
var uploader_default = Uploader;
|
4185
4234
|
|
4186
4235
|
// src/components/index.ts
|
4187
|
-
var
|
4236
|
+
var import_react85 = require("@chakra-ui/react");
|
4188
4237
|
|
4189
4238
|
// src/config/theme/themeConfiguration.ts
|
4190
|
-
var
|
4239
|
+
var import_react92 = require("@chakra-ui/react");
|
4191
4240
|
|
4192
4241
|
// src/config/theme/components/index.ts
|
4193
4242
|
var components_exports = {};
|
@@ -4730,8 +4779,8 @@ var card_default2 = CardStyle;
|
|
4730
4779
|
|
4731
4780
|
// src/config/theme/components/checkbox.ts
|
4732
4781
|
var import_anatomy3 = require("@chakra-ui/anatomy");
|
4733
|
-
var
|
4734
|
-
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0,
|
4782
|
+
var import_react86 = require("@chakra-ui/react");
|
4783
|
+
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0, import_react86.createMultiStyleConfigHelpers)(import_anatomy3.checkboxAnatomy.keys);
|
4735
4784
|
var baseStyle3 = definePartsStyle3({
|
4736
4785
|
control: {
|
4737
4786
|
borderRadius: "sm",
|
@@ -4915,7 +4964,7 @@ var baseStyle5 = definePartsStyle4({
|
|
4915
4964
|
minWidth: 0,
|
4916
4965
|
outline: 0,
|
4917
4966
|
px: 2,
|
4918
|
-
py: 2
|
4967
|
+
py: 2,
|
4919
4968
|
paddingInlineStart: 2,
|
4920
4969
|
paddingInlineEnd: 2,
|
4921
4970
|
position: "relative",
|
@@ -4936,19 +4985,25 @@ var baseStyle5 = definePartsStyle4({
|
|
4936
4985
|
});
|
4937
4986
|
var size = {
|
4938
4987
|
lg: (0, import_styled_system7.defineStyle)({
|
4939
|
-
|
4988
|
+
textStyle: "text.lg",
|
4940
4989
|
h: 12,
|
4941
4990
|
borderRadius: "sm"
|
4942
4991
|
}),
|
4943
4992
|
md: (0, import_styled_system7.defineStyle)({
|
4944
|
-
|
4993
|
+
textStyle: "text.md",
|
4945
4994
|
h: 10,
|
4946
4995
|
borderRadius: "sm"
|
4947
4996
|
}),
|
4948
4997
|
sm: (0, import_styled_system7.defineStyle)({
|
4949
|
-
|
4998
|
+
textStyle: "text.sm",
|
4950
4999
|
h: 9.5,
|
4951
5000
|
borderRadius: "sm"
|
5001
|
+
}),
|
5002
|
+
xs: (0, import_styled_system7.defineStyle)({
|
5003
|
+
textStyle: "text.sm",
|
5004
|
+
p: 1,
|
5005
|
+
h: 5.5,
|
5006
|
+
borderRadius: "sm"
|
4952
5007
|
})
|
4953
5008
|
};
|
4954
5009
|
var sizes2 = {
|
@@ -4963,6 +5018,10 @@ var sizes2 = {
|
|
4963
5018
|
sm: definePartsStyle4({
|
4964
5019
|
field: size.sm,
|
4965
5020
|
addon: size.sm
|
5021
|
+
}),
|
5022
|
+
xs: definePartsStyle4({
|
5023
|
+
field: size.xs,
|
5024
|
+
addon: size.xs
|
4966
5025
|
})
|
4967
5026
|
};
|
4968
5027
|
var outline = definePartsStyle4((props) => {
|
@@ -5015,8 +5074,8 @@ var input_default = Input3;
|
|
5015
5074
|
|
5016
5075
|
// src/config/theme/components/loader.ts
|
5017
5076
|
var import_styled_system8 = require("@chakra-ui/styled-system");
|
5018
|
-
var
|
5019
|
-
var rotate = (0,
|
5077
|
+
var import_react87 = require("@emotion/react");
|
5078
|
+
var rotate = (0, import_react87.keyframes)({
|
5020
5079
|
"0%": {
|
5021
5080
|
transform: "rotate(0deg)"
|
5022
5081
|
},
|
@@ -5146,8 +5205,8 @@ var modal_default = Modal3;
|
|
5146
5205
|
|
5147
5206
|
// src/config/theme/components/popover.ts
|
5148
5207
|
var import_anatomy5 = require("@chakra-ui/anatomy");
|
5149
|
-
var
|
5150
|
-
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0,
|
5208
|
+
var import_react88 = require("@chakra-ui/react");
|
5209
|
+
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0, import_react88.createMultiStyleConfigHelpers)(import_anatomy5.popoverAnatomy.keys);
|
5151
5210
|
var baseStyle6 = definePartsStyle5({
|
5152
5211
|
content: {
|
5153
5212
|
bg: "white"
|
@@ -5158,8 +5217,8 @@ var popover_default = popoverTheme;
|
|
5158
5217
|
|
5159
5218
|
// src/config/theme/components/radio.ts
|
5160
5219
|
var import_anatomy6 = require("@chakra-ui/anatomy");
|
5161
|
-
var
|
5162
|
-
var { definePartsStyle: definePartsStyle6, defineMultiStyleConfig: defineMultiStyleConfig6 } = (0,
|
5220
|
+
var import_react89 = require("@chakra-ui/react");
|
5221
|
+
var { definePartsStyle: definePartsStyle6, defineMultiStyleConfig: defineMultiStyleConfig6 } = (0, import_react89.createMultiStyleConfigHelpers)(import_anatomy6.radioAnatomy.keys);
|
5163
5222
|
var baseStyle7 = definePartsStyle6({
|
5164
5223
|
control: {
|
5165
5224
|
border: "1px solid",
|
@@ -5598,7 +5657,7 @@ var tabsTheme = defineMultiStyleConfig9({
|
|
5598
5657
|
var tabs_default = tabsTheme;
|
5599
5658
|
|
5600
5659
|
// src/config/theme/components/textarea.ts
|
5601
|
-
var
|
5660
|
+
var import_react90 = require("@chakra-ui/react");
|
5602
5661
|
var getProps = (props) => {
|
5603
5662
|
const { isError, isSuccess, isDisabled } = props;
|
5604
5663
|
let borderColor = "neutral.400";
|
@@ -5618,7 +5677,7 @@ var getProps = (props) => {
|
|
5618
5677
|
borderColor
|
5619
5678
|
};
|
5620
5679
|
};
|
5621
|
-
var outline2 = (0,
|
5680
|
+
var outline2 = (0, import_react90.defineStyle)((props) => {
|
5622
5681
|
const { focusBorderColor, borderColor } = getProps(props);
|
5623
5682
|
return {
|
5624
5683
|
background: "white.high",
|
@@ -5662,7 +5721,7 @@ var outline2 = (0, import_react89.defineStyle)((props) => {
|
|
5662
5721
|
}
|
5663
5722
|
};
|
5664
5723
|
});
|
5665
|
-
var Textarea = (0,
|
5724
|
+
var Textarea = (0, import_react90.defineStyleConfig)({
|
5666
5725
|
variants: { outline: outline2 },
|
5667
5726
|
defaultProps: {
|
5668
5727
|
variant: "outline"
|
@@ -5671,14 +5730,14 @@ var Textarea = (0, import_react89.defineStyleConfig)({
|
|
5671
5730
|
var textarea_default2 = Textarea;
|
5672
5731
|
|
5673
5732
|
// src/config/theme/components/tooltip.ts
|
5674
|
-
var
|
5675
|
-
var $arrowBg = (0,
|
5733
|
+
var import_react91 = require("@chakra-ui/react");
|
5734
|
+
var $arrowBg = (0, import_react91.cssVar)("popper-arrow-bg");
|
5676
5735
|
var baseStyle10 = {
|
5677
5736
|
bg: "neutral.700",
|
5678
5737
|
fontSize: "text.sm",
|
5679
5738
|
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
5680
5739
|
};
|
5681
|
-
var Tooltip2 = (0,
|
5740
|
+
var Tooltip2 = (0, import_react91.defineStyleConfig)({ baseStyle: baseStyle10 });
|
5682
5741
|
var tooltip_default = Tooltip2;
|
5683
5742
|
|
5684
5743
|
// src/config/theme/themeConfiguration.ts
|
@@ -5688,7 +5747,7 @@ var config = {
|
|
5688
5747
|
useSystemColorMode: false
|
5689
5748
|
};
|
5690
5749
|
var getTheme = (foundations) => {
|
5691
|
-
return (0,
|
5750
|
+
return (0, import_react92.extendTheme)({
|
5692
5751
|
...foundations,
|
5693
5752
|
components: {
|
5694
5753
|
...components_exports
|
@@ -5704,7 +5763,7 @@ var getTheme = (foundations) => {
|
|
5704
5763
|
config
|
5705
5764
|
});
|
5706
5765
|
};
|
5707
|
-
var theme5 = (0,
|
5766
|
+
var theme5 = (0, import_react92.extendTheme)({
|
5708
5767
|
components: {
|
5709
5768
|
...components_exports
|
5710
5769
|
},
|
@@ -5724,23 +5783,23 @@ var theme5 = (0, import_react91.extendTheme)({
|
|
5724
5783
|
|
5725
5784
|
// src/hooks/useFetcher.ts
|
5726
5785
|
var import_axios2 = __toESM(require("axios"));
|
5727
|
-
var
|
5786
|
+
var import_react95 = require("react");
|
5728
5787
|
|
5729
5788
|
// src/provider/components/provider.tsx
|
5730
5789
|
var import_axios = __toESM(require("axios"));
|
5731
|
-
var
|
5790
|
+
var import_react93 = require("react");
|
5732
5791
|
var import_react_toastify = require("react-toastify");
|
5733
|
-
var
|
5734
|
-
var ProviderContext = (0,
|
5792
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
5793
|
+
var ProviderContext = (0, import_react93.createContext)({
|
5735
5794
|
instance: void 0
|
5736
5795
|
});
|
5737
5796
|
var useInternalUI = () => {
|
5738
|
-
const { instance } = (0,
|
5797
|
+
const { instance } = (0, import_react93.useContext)(ProviderContext);
|
5739
5798
|
return { instance };
|
5740
5799
|
};
|
5741
5800
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
5742
|
-
const instanceRef = (0,
|
5743
|
-
(0,
|
5801
|
+
const instanceRef = (0, import_react93.useRef)(import_axios.default.create(config2));
|
5802
|
+
(0, import_react93.useEffect)(() => {
|
5744
5803
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
5745
5804
|
instanceRef.current.interceptors.request.use(interceptor);
|
5746
5805
|
});
|
@@ -5748,9 +5807,9 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
5748
5807
|
instanceRef.current.interceptors.response.use(interceptor);
|
5749
5808
|
});
|
5750
5809
|
}, [requestInterceptors, responseInterceptors]);
|
5751
|
-
const provider = (0,
|
5752
|
-
return /* @__PURE__ */ (0,
|
5753
|
-
/* @__PURE__ */ (0,
|
5810
|
+
const provider = (0, import_react93.useMemo)(() => ({ instance: instanceRef.current }), []);
|
5811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(ProviderContext.Provider, { value: provider, children: [
|
5812
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_toastify.ToastContainer, {}),
|
5754
5813
|
children
|
5755
5814
|
] });
|
5756
5815
|
};
|
@@ -5758,12 +5817,12 @@ Provider.displayName = "Provider";
|
|
5758
5817
|
var provider_default = Provider;
|
5759
5818
|
|
5760
5819
|
// src/provider/index.ts
|
5761
|
-
var
|
5820
|
+
var import_react94 = require("@chakra-ui/react");
|
5762
5821
|
|
5763
5822
|
// src/hooks/useFetcher.ts
|
5764
5823
|
function useFetcher() {
|
5765
5824
|
const { instance } = useInternalUI();
|
5766
|
-
const axiosInstance = (0,
|
5825
|
+
const axiosInstance = (0, import_react95.useMemo)(() => instance || import_axios2.default, [instance]);
|
5767
5826
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
5768
5827
|
const response = await axiosInstance.request({
|
5769
5828
|
data,
|
@@ -5783,10 +5842,10 @@ function useFetcher() {
|
|
5783
5842
|
}
|
5784
5843
|
|
5785
5844
|
// src/hooks/index.ts
|
5786
|
-
var
|
5845
|
+
var import_react96 = require("@chakra-ui/react");
|
5787
5846
|
|
5788
5847
|
// src/index.ts
|
5789
|
-
var
|
5848
|
+
var import_react97 = require("@chakra-ui/react");
|
5790
5849
|
// Annotate the CommonJS export names for ESM import in node:
|
5791
5850
|
0 && (module.exports = {
|
5792
5851
|
Accordion,
|
@@ -5942,6 +6001,7 @@ var import_react96 = require("@chakra-ui/react");
|
|
5942
6001
|
ModalOverlayProps,
|
5943
6002
|
ModalProps,
|
5944
6003
|
MultiDatePickerMonth,
|
6004
|
+
NavItem,
|
5945
6005
|
NavigationBar,
|
5946
6006
|
OrderedList,
|
5947
6007
|
Pagination,
|