@ctlyst.id/internal-ui 2.1.20 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +378 -211
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +214 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
@@ -59,12 +59,12 @@ __export(src_exports, {
|
|
59
59
|
AlertIcon: () => AlertIcon,
|
60
60
|
AlertTitle: () => AlertTitle,
|
61
61
|
Anchor: () => Anchor,
|
62
|
-
Avatar: () =>
|
63
|
-
AvatarBadge: () =>
|
64
|
-
AvatarBadgeProps: () =>
|
65
|
-
AvatarGroup: () =>
|
66
|
-
AvatarGroupProps: () =>
|
67
|
-
AvatarProps: () =>
|
62
|
+
Avatar: () => import_react84.Avatar,
|
63
|
+
AvatarBadge: () => import_react84.AvatarBadge,
|
64
|
+
AvatarBadgeProps: () => import_react84.AvatarBadgeProps,
|
65
|
+
AvatarGroup: () => import_react84.AvatarGroup,
|
66
|
+
AvatarGroupProps: () => import_react84.AvatarGroupProps,
|
67
|
+
AvatarProps: () => import_react84.AvatarProps,
|
68
68
|
Badge: () => badge_default,
|
69
69
|
Box: () => import_react47.Box,
|
70
70
|
BoxProps: () => import_react47.BoxProps,
|
@@ -72,11 +72,12 @@ __export(src_exports, {
|
|
72
72
|
Button: () => button_default,
|
73
73
|
ButtonGroup: () => import_react9.ButtonGroup,
|
74
74
|
ButtonGroupProps: () => import_react9.ButtonGroupProps,
|
75
|
+
CHECKBOX_STATE: () => CHECKBOX_STATE,
|
75
76
|
Card: () => card_default,
|
76
77
|
Center: () => import_react47.Center,
|
77
|
-
ChakraProvider: () =>
|
78
|
-
ChakraProviderProps: () =>
|
79
|
-
ChakraTable: () =>
|
78
|
+
ChakraProvider: () => import_react93.ChakraProvider,
|
79
|
+
ChakraProviderProps: () => import_react93.ChakraProviderProps,
|
80
|
+
ChakraTable: () => import_react78.Table,
|
80
81
|
Checkbox: () => checkbox_default,
|
81
82
|
CheckboxGroup: () => checkbox_group_default,
|
82
83
|
CheckboxGroupContext: () => import_react16.CheckboxGroupContext,
|
@@ -87,13 +88,13 @@ __export(src_exports, {
|
|
87
88
|
Chips: () => chips_default,
|
88
89
|
CloseButton: () => import_react9.CloseButton,
|
89
90
|
CloseButtonProps: () => import_react9.CloseButtonProps,
|
90
|
-
Code: () =>
|
91
|
-
CodeProps: () =>
|
92
|
-
Collapse: () =>
|
93
|
-
CollapseProps: () =>
|
94
|
-
ColorMode: () =>
|
95
|
-
ColorModeScript: () =>
|
96
|
-
ColorModeScriptProps: () =>
|
91
|
+
Code: () => import_react81.Code,
|
92
|
+
CodeProps: () => import_react81.CodeProps,
|
93
|
+
Collapse: () => import_react84.Collapse,
|
94
|
+
CollapseProps: () => import_react84.CollapseProps,
|
95
|
+
ColorMode: () => import_react93.ColorMode,
|
96
|
+
ColorModeScript: () => import_react93.ColorModeScript,
|
97
|
+
ColorModeScriptProps: () => import_react93.ColorModeScriptProps,
|
97
98
|
Container: () => import_react47.Container,
|
98
99
|
ContainerProps: () => import_react47.ContainerProps,
|
99
100
|
Counter: () => counter_default,
|
@@ -112,8 +113,8 @@ __export(src_exports, {
|
|
112
113
|
DrawerHeader: () => import_react58.ModalHeader,
|
113
114
|
DrawerOverlay: () => import_react58.ModalOverlay,
|
114
115
|
DrawerProps: () => import_react58.DrawerProps,
|
115
|
-
Fade: () =>
|
116
|
-
FadeProps: () =>
|
116
|
+
Fade: () => import_react84.Fade,
|
117
|
+
FadeProps: () => import_react84.FadeProps,
|
117
118
|
Field: () => field_default,
|
118
119
|
Flex: () => import_react47.Flex,
|
119
120
|
FlexProps: () => import_react47.FlexProps,
|
@@ -129,18 +130,18 @@ __export(src_exports, {
|
|
129
130
|
GridProps: () => import_react47.GridProps,
|
130
131
|
HStack: () => import_react47.HStack,
|
131
132
|
Header: () => header_default,
|
132
|
-
Heading: () =>
|
133
|
-
HeadingProps: () =>
|
134
|
-
Hide: () =>
|
135
|
-
HideProps: () =>
|
133
|
+
Heading: () => import_react81.Heading,
|
134
|
+
HeadingProps: () => import_react81.HeadingProps,
|
135
|
+
Hide: () => import_react84.Hide,
|
136
|
+
HideProps: () => import_react84.HideProps,
|
136
137
|
Icon: () => import_react46.Icon,
|
137
138
|
IconButton: () => import_react9.IconButton,
|
138
139
|
IconButtonProps: () => import_react9.IconButtonProps,
|
139
140
|
IconProps: () => import_react46.IconProps,
|
140
141
|
Image: () => import_react46.Image,
|
141
142
|
ImageProps: () => import_react46.ImageProps,
|
142
|
-
Img: () =>
|
143
|
-
ImgProps: () =>
|
143
|
+
Img: () => import_react84.Img,
|
144
|
+
ImgProps: () => import_react84.ImgProps,
|
144
145
|
InputAddonLeft: () => InputAddonLeft,
|
145
146
|
InputAddonRight: () => InputAddonRight,
|
146
147
|
InputElementLeft: () => import_react20.InputLeftElement,
|
@@ -157,8 +158,8 @@ __export(src_exports, {
|
|
157
158
|
InputRightAddonProps: () => import_react26.InputRightAddonProps,
|
158
159
|
InputRightElement: () => import_react26.InputRightElement,
|
159
160
|
InputRightElementProps: () => import_react26.InputRightElementProps,
|
160
|
-
Link: () =>
|
161
|
-
LinkProps: () =>
|
161
|
+
Link: () => import_react81.Link,
|
162
|
+
LinkProps: () => import_react81.LinkProps,
|
162
163
|
List: () => import_react48.List,
|
163
164
|
ListIcon: () => import_react48.ListIcon,
|
164
165
|
ListItem: () => import_react48.ListItem,
|
@@ -213,101 +214,103 @@ __export(src_exports, {
|
|
213
214
|
Rating: () => rating_default,
|
214
215
|
RequiredIndicator: () => import_react26.RequiredIndicator,
|
215
216
|
RequiredIndicatorProps: () => import_react26.RequiredIndicatorProps,
|
216
|
-
ScaleFade: () =>
|
217
|
-
ScaleFadeProps: () =>
|
217
|
+
ScaleFade: () => import_react84.ScaleFade,
|
218
|
+
ScaleFadeProps: () => import_react84.ScaleFadeProps,
|
218
219
|
Select: () => select_default,
|
219
220
|
SelectAsync: () => select_async_default,
|
220
221
|
SelectAsyncCreatable: () => SelectAsyncCreatable,
|
222
|
+
SelectCheckBox: () => select_with_checkbox_default,
|
221
223
|
SelectCreatable: () => SelectCreatable,
|
222
|
-
Show: () =>
|
223
|
-
ShowProps: () =>
|
224
|
+
Show: () => import_react84.Show,
|
225
|
+
ShowProps: () => import_react84.ShowProps,
|
224
226
|
SimpleGrid: () => import_react47.SimpleGrid,
|
225
227
|
Skeleton: () => import_react5.Skeleton,
|
226
|
-
Slide: () =>
|
227
|
-
SlideFade: () =>
|
228
|
-
SlideFadeProps: () =>
|
229
|
-
SlideProps: () =>
|
228
|
+
Slide: () => import_react84.Slide,
|
229
|
+
SlideFade: () => import_react84.SlideFade,
|
230
|
+
SlideFadeProps: () => import_react84.SlideFadeProps,
|
231
|
+
SlideProps: () => import_react84.SlideProps,
|
230
232
|
Spacer: () => import_react47.Spacer,
|
231
233
|
Stack: () => import_react47.Stack,
|
232
234
|
StackProps: () => import_react47.StackProps,
|
233
|
-
Step: () =>
|
234
|
-
StepDescription: () =>
|
235
|
-
StepIcon: () =>
|
236
|
-
StepIndicator: () =>
|
237
|
-
StepNumber: () =>
|
238
|
-
StepSeparator: () =>
|
239
|
-
StepStatus: () =>
|
240
|
-
StepTitle: () =>
|
241
|
-
Stepper: () =>
|
235
|
+
Step: () => import_react84.Step,
|
236
|
+
StepDescription: () => import_react84.StepDescription,
|
237
|
+
StepIcon: () => import_react84.StepIcon,
|
238
|
+
StepIndicator: () => import_react84.StepIndicator,
|
239
|
+
StepNumber: () => import_react84.StepNumber,
|
240
|
+
StepSeparator: () => import_react84.StepSeparator,
|
241
|
+
StepStatus: () => import_react84.StepStatus,
|
242
|
+
StepTitle: () => import_react84.StepTitle,
|
243
|
+
Stepper: () => import_react84.Stepper,
|
242
244
|
Switch: () => switch_default,
|
243
245
|
Tab: () => tab_default,
|
244
|
-
TabIndicator: () =>
|
245
|
-
TabIndicatorProps: () =>
|
246
|
-
TabList: () =>
|
247
|
-
TabListProps: () =>
|
248
|
-
TabPanel: () =>
|
249
|
-
TabPanelProps: () =>
|
250
|
-
TabPanels: () =>
|
251
|
-
TabPanelsProps: () =>
|
252
|
-
TabProps: () =>
|
253
|
-
TableBodyProps: () =>
|
254
|
-
TableCellProps: () =>
|
255
|
-
TableColumnHeaderProps: () =>
|
256
|
-
TableHeadProps: () =>
|
257
|
-
TableProps: () =>
|
258
|
-
TableRowProps: () =>
|
259
|
-
Tabs: () =>
|
260
|
-
TabsDescendantsProvider: () =>
|
261
|
-
TabsProps: () =>
|
262
|
-
TabsProvider: () =>
|
263
|
-
Tbody: () =>
|
264
|
-
Td: () =>
|
265
|
-
Text: () =>
|
266
|
-
TextProps: () =>
|
246
|
+
TabIndicator: () => import_react80.TabIndicator,
|
247
|
+
TabIndicatorProps: () => import_react80.TabIndicatorProps,
|
248
|
+
TabList: () => import_react80.TabList,
|
249
|
+
TabListProps: () => import_react80.TabListProps,
|
250
|
+
TabPanel: () => import_react80.TabPanel,
|
251
|
+
TabPanelProps: () => import_react80.TabPanelProps,
|
252
|
+
TabPanels: () => import_react80.TabPanels,
|
253
|
+
TabPanelsProps: () => import_react80.TabPanelsProps,
|
254
|
+
TabProps: () => import_react80.TabProps,
|
255
|
+
TableBodyProps: () => import_react78.TableBodyProps,
|
256
|
+
TableCellProps: () => import_react78.TableCellProps,
|
257
|
+
TableColumnHeaderProps: () => import_react78.TableColumnHeaderProps,
|
258
|
+
TableHeadProps: () => import_react78.TableHeadProps,
|
259
|
+
TableProps: () => import_react78.TableProps,
|
260
|
+
TableRowProps: () => import_react78.TableRowProps,
|
261
|
+
Tabs: () => import_react80.Tabs,
|
262
|
+
TabsDescendantsProvider: () => import_react80.TabsDescendantsProvider,
|
263
|
+
TabsProps: () => import_react80.TabsProps,
|
264
|
+
TabsProvider: () => import_react80.TabsProvider,
|
265
|
+
Tbody: () => import_react78.Tbody,
|
266
|
+
Td: () => import_react78.Td,
|
267
|
+
Text: () => import_react81.Text,
|
268
|
+
TextProps: () => import_react81.TextProps,
|
267
269
|
TextareaField: () => textarea_default,
|
268
|
-
Th: () =>
|
269
|
-
Thead: () =>
|
270
|
+
Th: () => import_react78.Th,
|
271
|
+
Thead: () => import_react78.Thead,
|
270
272
|
ThemeTypings: () => import_styled_system13.ThemeTypings,
|
271
|
-
Tooltip: () =>
|
272
|
-
TooltipProps: () =>
|
273
|
-
Tr: () =>
|
273
|
+
Tooltip: () => import_react82.Tooltip,
|
274
|
+
TooltipProps: () => import_react82.TooltipProps,
|
275
|
+
Tr: () => import_react78.Tr,
|
274
276
|
UnorderedList: () => import_react48.UnorderedList,
|
275
277
|
Uploader: () => uploader_default,
|
276
278
|
UseAccordionItemProps: () => import_react3.UseAccordionItemProps,
|
277
279
|
UseAccordionItemReturn: () => import_react3.UseAccordionItemReturn,
|
278
280
|
UseAccordionProps: () => import_react3.UseAccordionProps,
|
279
281
|
UseAccordionReturn: () => import_react3.UseAccordionReturn,
|
280
|
-
UseBreakpointOptions: () =>
|
282
|
+
UseBreakpointOptions: () => import_react84.UseBreakpointOptions,
|
281
283
|
UseCheckboxGroupProps: () => import_react16.UseCheckboxGroupProps,
|
282
284
|
UseCheckboxGroupReturn: () => import_react16.UseCheckboxGroupReturn,
|
283
285
|
UseCheckboxProps: () => import_react16.UseCheckboxProps,
|
284
286
|
UseCheckboxReturn: () => import_react16.UseCheckboxReturn,
|
285
|
-
UseDisclosureProps: () =>
|
286
|
-
UseImageProps: () =>
|
287
|
-
UseImageReturn: () =>
|
288
|
-
UseMediaQueryOptions: () =>
|
287
|
+
UseDisclosureProps: () => import_react95.UseDisclosureProps,
|
288
|
+
UseImageProps: () => import_react84.UseImageProps,
|
289
|
+
UseImageReturn: () => import_react84.UseImageReturn,
|
290
|
+
UseMediaQueryOptions: () => import_react84.UseMediaQueryOptions,
|
289
291
|
UseModalProps: () => import_react58.UseModalProps,
|
290
292
|
UseModalReturn: () => import_react58.UseModalReturn,
|
291
|
-
UseQueryProps: () =>
|
293
|
+
UseQueryProps: () => import_react84.UseQueryProps,
|
292
294
|
UseRadioGroupReturn: () => import_react70.UseRadioGroupReturn,
|
293
295
|
UseRadioProps: () => import_react70.UseRadioProps,
|
294
296
|
UseRadioReturn: () => import_react70.UseRadioReturn,
|
295
|
-
UseTabListProps: () =>
|
296
|
-
UseTabListReturn: () =>
|
297
|
-
UseTabOptions: () =>
|
298
|
-
UseTabPanelsProps: () =>
|
299
|
-
UseTabProps: () =>
|
300
|
-
UseTabsProps: () =>
|
301
|
-
UseTabsReturn: () =>
|
297
|
+
UseTabListProps: () => import_react80.UseTabListProps,
|
298
|
+
UseTabListReturn: () => import_react80.UseTabListReturn,
|
299
|
+
UseTabOptions: () => import_react80.UseTabOptions,
|
300
|
+
UseTabPanelsProps: () => import_react80.UseTabPanelsProps,
|
301
|
+
UseTabProps: () => import_react80.UseTabProps,
|
302
|
+
UseTabsProps: () => import_react80.UseTabsProps,
|
303
|
+
UseTabsReturn: () => import_react80.UseTabsReturn,
|
302
304
|
VStack: () => import_react47.VStack,
|
303
|
-
VisuallyHidden: () =>
|
304
|
-
VisuallyHiddenInput: () =>
|
305
|
+
VisuallyHidden: () => import_react84.VisuallyHidden,
|
306
|
+
VisuallyHiddenInput: () => import_react84.VisuallyHiddenInput,
|
305
307
|
Wrap: () => import_react47.Wrap,
|
306
308
|
WrapItem: () => import_react47.WrapItem,
|
307
309
|
WrapItemProps: () => import_react47.WrapItemProps,
|
308
310
|
WrapProps: () => import_react47.WrapProps,
|
309
|
-
extendTheme: () =>
|
310
|
-
forwardRef: () =>
|
311
|
+
extendTheme: () => import_react96.extendTheme,
|
312
|
+
forwardRef: () => import_react96.forwardRef,
|
313
|
+
getSelectAllCheckboxState: () => getSelectAllCheckboxState,
|
311
314
|
getTheme: () => getTheme,
|
312
315
|
theme: () => theme5,
|
313
316
|
useAccordion: () => import_react3.useAccordion,
|
@@ -316,47 +319,47 @@ __export(src_exports, {
|
|
316
319
|
useAccordionItemState: () => import_react3.useAccordionItemState,
|
317
320
|
useAccordionStyles: () => import_react3.useAccordionStyles,
|
318
321
|
useAlertStyles: () => useAlertStyles,
|
319
|
-
useBoolean: () =>
|
320
|
-
useBreakpoint: () =>
|
322
|
+
useBoolean: () => import_react95.useBoolean,
|
323
|
+
useBreakpoint: () => import_react84.useBreakpoint,
|
321
324
|
useCheckbox: () => import_react16.useCheckbox,
|
322
325
|
useCheckboxGroup: () => import_react16.useCheckboxGroup,
|
323
|
-
useClipboard: () =>
|
324
|
-
useColorMode: () =>
|
325
|
-
useColorModePreference: () =>
|
326
|
-
useColorModeValue: () =>
|
327
|
-
useConst: () =>
|
328
|
-
useControllableProp: () =>
|
329
|
-
useControllableState: () =>
|
326
|
+
useClipboard: () => import_react95.useClipboard,
|
327
|
+
useColorMode: () => import_react95.useColorMode,
|
328
|
+
useColorModePreference: () => import_react84.useColorModePreference,
|
329
|
+
useColorModeValue: () => import_react95.useColorModeValue,
|
330
|
+
useConst: () => import_react95.useConst,
|
331
|
+
useControllableProp: () => import_react95.useControllableProp,
|
332
|
+
useControllableState: () => import_react95.useControllableState,
|
330
333
|
useDataTable: () => useDataTable,
|
331
|
-
useDimensions: () =>
|
332
|
-
useDisclosure: () =>
|
334
|
+
useDimensions: () => import_react95.useDimensions,
|
335
|
+
useDisclosure: () => import_react95.useDisclosure,
|
333
336
|
useDrawerContext: () => import_react58.useDrawerContext,
|
334
337
|
useFetcher: () => useFetcher,
|
335
|
-
useImage: () =>
|
338
|
+
useImage: () => import_react84.useImage,
|
336
339
|
useInternalUI: () => useInternalUI,
|
337
|
-
useMergeRefs: () =>
|
340
|
+
useMergeRefs: () => import_react95.useMergeRefs,
|
338
341
|
useModal: () => import_react58.useModal,
|
339
342
|
useModalContext: () => import_react58.useModalContext,
|
340
343
|
useModalStyles: () => import_react58.useModalStyles,
|
341
|
-
useOutsideClick: () =>
|
342
|
-
useQuery: () =>
|
344
|
+
useOutsideClick: () => import_react95.useOutsideClick,
|
345
|
+
useQuery: () => import_react84.useQuery,
|
343
346
|
useRadio: () => import_react70.useRadio,
|
344
347
|
useRadioGroup: () => import_react70.useRadioGroup,
|
345
348
|
useRadioGroupContext: () => import_react70.useRadioGroupContext,
|
346
|
-
useSteps: () =>
|
347
|
-
useTab: () =>
|
348
|
-
useTabIndicator: () =>
|
349
|
-
useTabList: () =>
|
350
|
-
useTabPanel: () =>
|
351
|
-
useTabPanels: () =>
|
352
|
-
useTabs: () =>
|
353
|
-
useTabsContext: () =>
|
354
|
-
useTabsDescendant: () =>
|
355
|
-
useTabsDescendants: () =>
|
356
|
-
useTabsDescendantsContext: () =>
|
357
|
-
useTabsStyles: () =>
|
358
|
-
useTheme: () =>
|
359
|
-
useToken: () =>
|
349
|
+
useSteps: () => import_react84.useSteps,
|
350
|
+
useTab: () => import_react80.useTab,
|
351
|
+
useTabIndicator: () => import_react80.useTabIndicator,
|
352
|
+
useTabList: () => import_react80.useTabList,
|
353
|
+
useTabPanel: () => import_react80.useTabPanel,
|
354
|
+
useTabPanels: () => import_react80.useTabPanels,
|
355
|
+
useTabs: () => import_react80.useTabs,
|
356
|
+
useTabsContext: () => import_react80.useTabsContext,
|
357
|
+
useTabsDescendant: () => import_react80.useTabsDescendant,
|
358
|
+
useTabsDescendants: () => import_react80.useTabsDescendants,
|
359
|
+
useTabsDescendantsContext: () => import_react80.useTabsDescendantsContext,
|
360
|
+
useTabsStyles: () => import_react80.useTabsStyles,
|
361
|
+
useTheme: () => import_react95.useTheme,
|
362
|
+
useToken: () => import_react95.useToken
|
360
363
|
});
|
361
364
|
module.exports = __toCommonJS(src_exports);
|
362
365
|
|
@@ -3643,13 +3646,13 @@ var selectStyle = {
|
|
3643
3646
|
};
|
3644
3647
|
function selectStyles(colorMode, _isError) {
|
3645
3648
|
return {
|
3646
|
-
control: (base, {
|
3649
|
+
control: (base, { isFocused }) => {
|
3647
3650
|
const style = {
|
3648
3651
|
...base,
|
3649
3652
|
flexWrap: "nowrap",
|
3650
3653
|
borderColor: isFocused ? "var(--chakra-colors-primary-500)" : "var(--chakra-colors-neutral-400)",
|
3651
3654
|
boxShadow: "none",
|
3652
|
-
color:
|
3655
|
+
color: "var(--chakra-colors-black-low)",
|
3653
3656
|
"&:hover": {
|
3654
3657
|
borderColor: _isError ? "" : isFocused ? "var(--chakra-colors-primary-500)" : "var(--chakra-colors-neutral-500)"
|
3655
3658
|
}
|
@@ -3667,23 +3670,47 @@ function selectStyles(colorMode, _isError) {
|
|
3667
3670
|
...selectStyle,
|
3668
3671
|
color: "var(--chakra-colors-neutral-900)"
|
3669
3672
|
}),
|
3670
|
-
menu: (base) =>
|
3671
|
-
|
3672
|
-
|
3673
|
-
|
3674
|
-
|
3675
|
-
|
3676
|
-
|
3677
|
-
|
3678
|
-
|
3673
|
+
menu: (base) => {
|
3674
|
+
return {
|
3675
|
+
...base,
|
3676
|
+
...selectStyle,
|
3677
|
+
zIndex: 5
|
3678
|
+
};
|
3679
|
+
},
|
3680
|
+
singleValue: (base) => {
|
3681
|
+
return { ...base, ...selectStyle };
|
3682
|
+
},
|
3683
|
+
input: (base) => {
|
3684
|
+
return { ...base, ...selectStyle };
|
3685
|
+
},
|
3686
|
+
dropdownIndicator: (base) => {
|
3687
|
+
return { ...base, ...selectStyle };
|
3688
|
+
},
|
3689
|
+
indicatorSeparator: (base) => {
|
3690
|
+
return { ...base, ...selectStyle };
|
3679
3691
|
},
|
3680
|
-
singleValue: (base) => colorMode === "dark" ? { ...base, ...selectStyle, color: "white" } : { ...base, ...selectStyle },
|
3681
|
-
input: (base) => colorMode === "dark" ? { ...base, ...selectStyle, color: "white" } : { ...base, ...selectStyle },
|
3682
|
-
dropdownIndicator: (base) => colorMode === "dark" ? { ...base, ...selectStyle, color: "secondary.500" } : { ...base, ...selectStyle },
|
3683
|
-
indicatorSeparator: (base) => colorMode === "dark" ? { ...base, ...selectStyle, backgroundColor: "secondary.500" } : { ...base, ...selectStyle },
|
3684
3692
|
placeholder: (base) => {
|
3685
|
-
return { ...base, ...selectStyle, color: "black
|
3686
|
-
}
|
3693
|
+
return { ...base, ...selectStyle, color: "var(--chakra-colors-black-low)" };
|
3694
|
+
},
|
3695
|
+
multiValue: (base) => {
|
3696
|
+
return {
|
3697
|
+
...base,
|
3698
|
+
borderRadius: 4,
|
3699
|
+
backgroundColor: "var(--chakra-colors-neutral-200)"
|
3700
|
+
};
|
3701
|
+
},
|
3702
|
+
multiValueLabel: (base) => ({
|
3703
|
+
...base,
|
3704
|
+
borderRadius: 4,
|
3705
|
+
fontWeight: "bold"
|
3706
|
+
}),
|
3707
|
+
multiValueRemove: (base) => ({
|
3708
|
+
...base,
|
3709
|
+
color: "var(--chakra-colors-neutral-900)",
|
3710
|
+
":hover": {
|
3711
|
+
backgroundColor: "var(--chakra-colors-neutral-300)"
|
3712
|
+
}
|
3713
|
+
})
|
3687
3714
|
};
|
3688
3715
|
}
|
3689
3716
|
var themeSelect = (theme6) => {
|
@@ -3775,17 +3802,154 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
3775
3802
|
);
|
3776
3803
|
}
|
3777
3804
|
|
3778
|
-
// src/components/
|
3805
|
+
// src/components/select/components/select-with-checkbox.tsx
|
3779
3806
|
var import_react75 = require("@chakra-ui/react");
|
3807
|
+
var import_system11 = require("@chakra-ui/system");
|
3808
|
+
var import_react_select2 = __toESM(require("react-select"));
|
3809
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
3810
|
+
var CHECKBOX_STATE = {
|
3811
|
+
UNCHECKED: 0,
|
3812
|
+
INDETERMINATE: 1,
|
3813
|
+
CHECKED: 2
|
3814
|
+
};
|
3815
|
+
var getSelectAllCheckboxState = (totalSelected, totalOption) => {
|
3816
|
+
if (totalSelected < 0 || totalOption < 0) {
|
3817
|
+
throw new Error("value less than 0");
|
3818
|
+
}
|
3819
|
+
if (totalSelected > totalOption) {
|
3820
|
+
throw new Error("totalSelected couldn't be more than totalOption");
|
3821
|
+
}
|
3822
|
+
if (totalSelected === 0) {
|
3823
|
+
return CHECKBOX_STATE.UNCHECKED;
|
3824
|
+
}
|
3825
|
+
if (totalSelected < totalOption) {
|
3826
|
+
return CHECKBOX_STATE.INDETERMINATE;
|
3827
|
+
}
|
3828
|
+
if (totalSelected === totalOption) {
|
3829
|
+
return CHECKBOX_STATE.CHECKED;
|
3830
|
+
}
|
3831
|
+
return CHECKBOX_STATE.UNCHECKED;
|
3832
|
+
};
|
3833
|
+
var InputOption = ({
|
3834
|
+
getStyles,
|
3835
|
+
isDisabled,
|
3836
|
+
isFocused,
|
3837
|
+
isSelected,
|
3838
|
+
children,
|
3839
|
+
innerProps,
|
3840
|
+
data,
|
3841
|
+
checkedState,
|
3842
|
+
isMulti,
|
3843
|
+
...rest
|
3844
|
+
}) => {
|
3845
|
+
const style = {
|
3846
|
+
alignItems: "center",
|
3847
|
+
color: "inherit",
|
3848
|
+
display: "flex "
|
3849
|
+
};
|
3850
|
+
const props = {
|
3851
|
+
...innerProps,
|
3852
|
+
"aria-disabled": isDisabled,
|
3853
|
+
onClick: isDisabled ? void 0 : innerProps.onClick,
|
3854
|
+
style
|
3855
|
+
};
|
3856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
3857
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3858
|
+
import_react_select2.components.Option,
|
3859
|
+
{
|
3860
|
+
isMulti: true,
|
3861
|
+
data,
|
3862
|
+
isDisabled,
|
3863
|
+
isFocused,
|
3864
|
+
isSelected,
|
3865
|
+
getStyles,
|
3866
|
+
innerProps: props,
|
3867
|
+
...rest,
|
3868
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
3869
|
+
import_react75.Flex,
|
3870
|
+
{
|
3871
|
+
alignItems: "center",
|
3872
|
+
width: "100%",
|
3873
|
+
mb: "3px",
|
3874
|
+
gap: 2,
|
3875
|
+
"data-test-id": "CT_component_select-checkbox_options",
|
3876
|
+
cursor: isDisabled ? "not-allowed" : "default",
|
3877
|
+
children: [
|
3878
|
+
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3879
|
+
import_react75.Checkbox,
|
3880
|
+
{
|
3881
|
+
isChecked: checkedState === CHECKBOX_STATE.CHECKED,
|
3882
|
+
isIndeterminate: checkedState === CHECKBOX_STATE.INDETERMINATE,
|
3883
|
+
isDisabled,
|
3884
|
+
"data-test-id": "CT_component_select-checkbox_select-all-option"
|
3885
|
+
}
|
3886
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react75.Checkbox, { isChecked: isSelected, "data-test-id": "CT_component_select-checkbox_option-checkbox" }),
|
3887
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react75.Text, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
|
3888
|
+
]
|
3889
|
+
}
|
3890
|
+
)
|
3891
|
+
}
|
3892
|
+
),
|
3893
|
+
(data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("hr", {}) : null
|
3894
|
+
] });
|
3895
|
+
};
|
3896
|
+
var SelectWithCheckboxBase = ({
|
3897
|
+
isError = false,
|
3898
|
+
components,
|
3899
|
+
options,
|
3900
|
+
...rest
|
3901
|
+
}) => {
|
3902
|
+
const { colorMode } = (0, import_system11.useColorMode)();
|
3903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3904
|
+
import_react_select2.default,
|
3905
|
+
{
|
3906
|
+
classNamePrefix: "react-select",
|
3907
|
+
options,
|
3908
|
+
styles: { ...selectStyles(colorMode, !!isError) },
|
3909
|
+
theme: themeSelect,
|
3910
|
+
closeMenuOnSelect: false,
|
3911
|
+
hideSelectedOptions: false,
|
3912
|
+
components: {
|
3913
|
+
...components
|
3914
|
+
},
|
3915
|
+
...rest
|
3916
|
+
}
|
3917
|
+
);
|
3918
|
+
};
|
3919
|
+
var SelectCheckbox = (props) => {
|
3920
|
+
const { isMulti, options, value, ...rest } = props;
|
3921
|
+
const selectValue = value || [];
|
3922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3923
|
+
SelectWithCheckboxBase,
|
3924
|
+
{
|
3925
|
+
isMulti,
|
3926
|
+
options,
|
3927
|
+
components: {
|
3928
|
+
Option: (optionProps) => {
|
3929
|
+
const { isSelected, data } = optionProps;
|
3930
|
+
const optionLength = (options == null ? void 0 : options.length) ? options.length - 1 : 0;
|
3931
|
+
const selectedValue = isSelected ? CHECKBOX_STATE.CHECKED : CHECKBOX_STATE.UNCHECKED;
|
3932
|
+
const checkedState = data.selectAllCheckbox ? getSelectAllCheckboxState(selectValue == null ? void 0 : selectValue.length, optionLength) : selectedValue;
|
3933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(InputOption, { ...optionProps, checkedState });
|
3934
|
+
}
|
3935
|
+
},
|
3936
|
+
...rest
|
3937
|
+
}
|
3938
|
+
);
|
3939
|
+
};
|
3940
|
+
var select_with_checkbox_default = SelectCheckbox;
|
3941
|
+
|
3942
|
+
// src/components/switch/components/switch.tsx
|
3943
|
+
var import_react76 = require("@chakra-ui/react");
|
3780
3944
|
var import_shared_utils9 = require("@chakra-ui/shared-utils");
|
3781
3945
|
var import_internal_icon7 = require("@ctlyst.id/internal-icon");
|
3782
|
-
var
|
3783
|
-
var
|
3784
|
-
var Switch = (0,
|
3785
|
-
const styles = (0,
|
3786
|
-
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0,
|
3787
|
-
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0,
|
3788
|
-
const containerStyles = (0,
|
3946
|
+
var import_react77 = require("react");
|
3947
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
3948
|
+
var Switch = (0, import_react76.forwardRef)(function Switch2(props, ref) {
|
3949
|
+
const styles = (0, import_react76.useMultiStyleConfig)("Switch", props);
|
3950
|
+
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0, import_react76.omitThemingProps)(props);
|
3951
|
+
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0, import_react76.useCheckbox)(ownProps);
|
3952
|
+
const containerStyles = (0, import_react77.useMemo)(
|
3789
3953
|
() => ({
|
3790
3954
|
display: "inline-block",
|
3791
3955
|
position: "relative",
|
@@ -3795,7 +3959,7 @@ var Switch = (0, import_react75.forwardRef)(function Switch2(props, ref) {
|
|
3795
3959
|
}),
|
3796
3960
|
[styles.container]
|
3797
3961
|
);
|
3798
|
-
const trackStyles = (0,
|
3962
|
+
const trackStyles = (0, import_react77.useMemo)(
|
3799
3963
|
() => ({
|
3800
3964
|
display: "inline-flex",
|
3801
3965
|
flexShrink: 0,
|
@@ -3807,7 +3971,7 @@ var Switch = (0, import_react75.forwardRef)(function Switch2(props, ref) {
|
|
3807
3971
|
}),
|
3808
3972
|
[styles.track]
|
3809
3973
|
);
|
3810
|
-
const labelStyles = (0,
|
3974
|
+
const labelStyles = (0, import_react77.useMemo)(
|
3811
3975
|
() => ({
|
3812
3976
|
userSelect: "none",
|
3813
3977
|
marginStart: spacing2,
|
@@ -3823,8 +3987,8 @@ var Switch = (0, import_react75.forwardRef)(function Switch2(props, ref) {
|
|
3823
3987
|
};
|
3824
3988
|
return iconSize[value];
|
3825
3989
|
};
|
3826
|
-
return /* @__PURE__ */ (0,
|
3827
|
-
|
3990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
3991
|
+
import_react76.chakra.label,
|
3828
3992
|
{
|
3829
3993
|
...getRootProps(),
|
3830
3994
|
display: "flex",
|
@@ -3832,14 +3996,14 @@ var Switch = (0, import_react75.forwardRef)(function Switch2(props, ref) {
|
|
3832
3996
|
className: (0, import_shared_utils9.cx)("chakra-switch", props.className),
|
3833
3997
|
__css: containerStyles,
|
3834
3998
|
children: [
|
3835
|
-
/* @__PURE__ */ (0,
|
3836
|
-
/* @__PURE__ */ (0,
|
3837
|
-
/* @__PURE__ */ (0,
|
3838
|
-
/* @__PURE__ */ (0,
|
3839
|
-
/* @__PURE__ */ (0,
|
3999
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
4000
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react76.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
4001
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react76.Flex, { gap: 2, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
|
4002
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_internal_icon7.Check, { color: "white", size: getIconSize(props.size) }),
|
4003
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_internal_icon7.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
3840
4004
|
] }),
|
3841
|
-
/* @__PURE__ */ (0,
|
3842
|
-
|
4005
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4006
|
+
import_react76.chakra.span,
|
3843
4007
|
{
|
3844
4008
|
__css: styles.thumb,
|
3845
4009
|
className: "chakra-switch__thumb",
|
@@ -3848,8 +4012,8 @@ var Switch = (0, import_react75.forwardRef)(function Switch2(props, ref) {
|
|
3848
4012
|
}
|
3849
4013
|
)
|
3850
4014
|
] }),
|
3851
|
-
children && /* @__PURE__ */ (0,
|
3852
|
-
|
4015
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
4016
|
+
import_react76.chakra.span,
|
3853
4017
|
{
|
3854
4018
|
className: "chakra-switch__label",
|
3855
4019
|
color: state.isDisabled ? "black.low" : "black.high",
|
@@ -3868,18 +4032,18 @@ Switch.defaultProps = {
|
|
3868
4032
|
var switch_default = Switch;
|
3869
4033
|
|
3870
4034
|
// src/components/table/index.tsx
|
3871
|
-
var
|
4035
|
+
var import_react78 = require("@chakra-ui/react");
|
3872
4036
|
|
3873
4037
|
// src/components/tabs/components/tab.tsx
|
3874
|
-
var
|
3875
|
-
var
|
3876
|
-
var Tab = (0,
|
4038
|
+
var import_react79 = require("@chakra-ui/react");
|
4039
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
4040
|
+
var Tab = (0, import_react79.forwardRef)((props, ref) => {
|
3877
4041
|
var _a, _b;
|
3878
|
-
const tabProps = (0,
|
4042
|
+
const tabProps = (0, import_react79.useTab)({ ...props, ref });
|
3879
4043
|
const isSelected = !!tabProps["aria-selected"];
|
3880
|
-
const styles = (0,
|
3881
|
-
return /* @__PURE__ */ (0,
|
3882
|
-
|
4044
|
+
const styles = (0, import_react79.useMultiStyleConfig)("Tabs", tabProps);
|
4045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
4046
|
+
import_react79.Button,
|
3883
4047
|
{
|
3884
4048
|
"data-test-id": props["data-test-id"],
|
3885
4049
|
p: 4,
|
@@ -3904,7 +4068,7 @@ var Tab = (0, import_react78.forwardRef)((props, ref) => {
|
|
3904
4068
|
},
|
3905
4069
|
__css: styles.tab,
|
3906
4070
|
...tabProps,
|
3907
|
-
children: /* @__PURE__ */ (0,
|
4071
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react79.Flex, { alignItems: "center", children: [
|
3908
4072
|
(_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
|
3909
4073
|
tabProps.children,
|
3910
4074
|
(_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
|
@@ -3915,16 +4079,16 @@ var Tab = (0, import_react78.forwardRef)((props, ref) => {
|
|
3915
4079
|
var tab_default = Tab;
|
3916
4080
|
|
3917
4081
|
// src/components/tabs/index.ts
|
3918
|
-
var
|
4082
|
+
var import_react80 = require("@chakra-ui/react");
|
3919
4083
|
|
3920
4084
|
// src/components/text/index.ts
|
3921
|
-
var
|
4085
|
+
var import_react81 = require("@chakra-ui/react");
|
3922
4086
|
|
3923
4087
|
// src/components/tooltip/index.ts
|
3924
|
-
var
|
4088
|
+
var import_react82 = require("@chakra-ui/react");
|
3925
4089
|
|
3926
4090
|
// src/components/uploader/components/uploader.tsx
|
3927
|
-
var
|
4091
|
+
var import_react83 = require("@chakra-ui/react");
|
3928
4092
|
var React15 = __toESM(require("react"));
|
3929
4093
|
var import_react_dropzone = require("react-dropzone");
|
3930
4094
|
|
@@ -3938,7 +4102,7 @@ var messages = {
|
|
3938
4102
|
};
|
3939
4103
|
|
3940
4104
|
// src/components/uploader/components/uploader.tsx
|
3941
|
-
var
|
4105
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
3942
4106
|
var Uploader = ({
|
3943
4107
|
onHandleUploadFile,
|
3944
4108
|
onHandleRejections,
|
@@ -3986,9 +4150,9 @@ var Uploader = ({
|
|
3986
4150
|
React15.useEffect(() => {
|
3987
4151
|
setIsSelected(selected != null ? selected : false);
|
3988
4152
|
}, [selected]);
|
3989
|
-
return /* @__PURE__ */ (0,
|
3990
|
-
/* @__PURE__ */ (0,
|
3991
|
-
|
4153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_react83.Stack, { direction: "column", children: [
|
4154
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
4155
|
+
import_react83.Flex,
|
3992
4156
|
{
|
3993
4157
|
minH: 200,
|
3994
4158
|
border: "1px dashed",
|
@@ -3999,11 +4163,11 @@ var Uploader = ({
|
|
3999
4163
|
...props,
|
4000
4164
|
...getRootProps(),
|
4001
4165
|
children: [
|
4002
|
-
/* @__PURE__ */ (0,
|
4003
|
-
isDragActive ? /* @__PURE__ */ (0,
|
4004
|
-
!multiple && isSelected && /* @__PURE__ */ (0,
|
4005
|
-
!isSelected && /* @__PURE__ */ (0,
|
4006
|
-
isSelected ? /* @__PURE__ */ (0,
|
4166
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("input", { ...getInputProps() }),
|
4167
|
+
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react83.Text, { children: messages.dragActive }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_react83.Flex, { flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : "primary.500", children: [
|
4168
|
+
!multiple && isSelected && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react83.Heading, { fontWeight: 400, fontSize: "18px", lineHeight: 28, color: "black.high", mb: 2, children: selectedFirstFile == null ? void 0 : selectedFirstFile.name }),
|
4169
|
+
!isSelected && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react83.Heading, { fontWeight: 400, fontSize: "18px", lineHeight: 28, mb: 2, children: messages.uploadFile }),
|
4170
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react83.Text, { children: messages.dragReplace }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react83.Text, { children: messages.dragInActive })
|
4007
4171
|
] })
|
4008
4172
|
]
|
4009
4173
|
}
|
@@ -4020,10 +4184,10 @@ Uploader.defaultProps = {
|
|
4020
4184
|
var uploader_default = Uploader;
|
4021
4185
|
|
4022
4186
|
// src/components/index.ts
|
4023
|
-
var
|
4187
|
+
var import_react84 = require("@chakra-ui/react");
|
4024
4188
|
|
4025
4189
|
// src/config/theme/themeConfiguration.ts
|
4026
|
-
var
|
4190
|
+
var import_react91 = require("@chakra-ui/react");
|
4027
4191
|
|
4028
4192
|
// src/config/theme/components/index.ts
|
4029
4193
|
var components_exports = {};
|
@@ -4566,8 +4730,8 @@ var card_default2 = CardStyle;
|
|
4566
4730
|
|
4567
4731
|
// src/config/theme/components/checkbox.ts
|
4568
4732
|
var import_anatomy3 = require("@chakra-ui/anatomy");
|
4569
|
-
var
|
4570
|
-
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0,
|
4733
|
+
var import_react85 = require("@chakra-ui/react");
|
4734
|
+
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0, import_react85.createMultiStyleConfigHelpers)(import_anatomy3.checkboxAnatomy.keys);
|
4571
4735
|
var baseStyle3 = definePartsStyle3({
|
4572
4736
|
control: {
|
4573
4737
|
borderRadius: "sm",
|
@@ -4657,14 +4821,14 @@ var variants2 = {
|
|
4657
4821
|
errors,
|
4658
4822
|
unstyled
|
4659
4823
|
};
|
4660
|
-
var
|
4824
|
+
var Checkbox4 = defineMultiStyleConfig3({
|
4661
4825
|
baseStyle: baseStyle3,
|
4662
4826
|
variants: variants2,
|
4663
4827
|
defaultProps: {
|
4664
4828
|
variant: "unstyled"
|
4665
4829
|
}
|
4666
4830
|
});
|
4667
|
-
var checkbox_default2 =
|
4831
|
+
var checkbox_default2 = Checkbox4;
|
4668
4832
|
|
4669
4833
|
// src/config/theme/components/chips.ts
|
4670
4834
|
var import_styled_system5 = require("@chakra-ui/styled-system");
|
@@ -4851,8 +5015,8 @@ var input_default = Input3;
|
|
4851
5015
|
|
4852
5016
|
// src/config/theme/components/loader.ts
|
4853
5017
|
var import_styled_system8 = require("@chakra-ui/styled-system");
|
4854
|
-
var
|
4855
|
-
var rotate = (0,
|
5018
|
+
var import_react86 = require("@emotion/react");
|
5019
|
+
var rotate = (0, import_react86.keyframes)({
|
4856
5020
|
"0%": {
|
4857
5021
|
transform: "rotate(0deg)"
|
4858
5022
|
},
|
@@ -4982,8 +5146,8 @@ var modal_default = Modal3;
|
|
4982
5146
|
|
4983
5147
|
// src/config/theme/components/popover.ts
|
4984
5148
|
var import_anatomy5 = require("@chakra-ui/anatomy");
|
4985
|
-
var
|
4986
|
-
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0,
|
5149
|
+
var import_react87 = require("@chakra-ui/react");
|
5150
|
+
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0, import_react87.createMultiStyleConfigHelpers)(import_anatomy5.popoverAnatomy.keys);
|
4987
5151
|
var baseStyle6 = definePartsStyle5({
|
4988
5152
|
content: {
|
4989
5153
|
bg: "white"
|
@@ -4994,8 +5158,8 @@ var popover_default = popoverTheme;
|
|
4994
5158
|
|
4995
5159
|
// src/config/theme/components/radio.ts
|
4996
5160
|
var import_anatomy6 = require("@chakra-ui/anatomy");
|
4997
|
-
var
|
4998
|
-
var { definePartsStyle: definePartsStyle6, defineMultiStyleConfig: defineMultiStyleConfig6 } = (0,
|
5161
|
+
var import_react88 = require("@chakra-ui/react");
|
5162
|
+
var { definePartsStyle: definePartsStyle6, defineMultiStyleConfig: defineMultiStyleConfig6 } = (0, import_react88.createMultiStyleConfigHelpers)(import_anatomy6.radioAnatomy.keys);
|
4999
5163
|
var baseStyle7 = definePartsStyle6({
|
5000
5164
|
control: {
|
5001
5165
|
border: "1px solid",
|
@@ -5434,7 +5598,7 @@ var tabsTheme = defineMultiStyleConfig9({
|
|
5434
5598
|
var tabs_default = tabsTheme;
|
5435
5599
|
|
5436
5600
|
// src/config/theme/components/textarea.ts
|
5437
|
-
var
|
5601
|
+
var import_react89 = require("@chakra-ui/react");
|
5438
5602
|
var getProps = (props) => {
|
5439
5603
|
const { isError, isSuccess, isDisabled } = props;
|
5440
5604
|
let borderColor = "neutral.400";
|
@@ -5454,7 +5618,7 @@ var getProps = (props) => {
|
|
5454
5618
|
borderColor
|
5455
5619
|
};
|
5456
5620
|
};
|
5457
|
-
var outline2 = (0,
|
5621
|
+
var outline2 = (0, import_react89.defineStyle)((props) => {
|
5458
5622
|
const { focusBorderColor, borderColor } = getProps(props);
|
5459
5623
|
return {
|
5460
5624
|
background: "white.high",
|
@@ -5498,7 +5662,7 @@ var outline2 = (0, import_react88.defineStyle)((props) => {
|
|
5498
5662
|
}
|
5499
5663
|
};
|
5500
5664
|
});
|
5501
|
-
var Textarea = (0,
|
5665
|
+
var Textarea = (0, import_react89.defineStyleConfig)({
|
5502
5666
|
variants: { outline: outline2 },
|
5503
5667
|
defaultProps: {
|
5504
5668
|
variant: "outline"
|
@@ -5507,14 +5671,14 @@ var Textarea = (0, import_react88.defineStyleConfig)({
|
|
5507
5671
|
var textarea_default2 = Textarea;
|
5508
5672
|
|
5509
5673
|
// src/config/theme/components/tooltip.ts
|
5510
|
-
var
|
5511
|
-
var $arrowBg = (0,
|
5674
|
+
var import_react90 = require("@chakra-ui/react");
|
5675
|
+
var $arrowBg = (0, import_react90.cssVar)("popper-arrow-bg");
|
5512
5676
|
var baseStyle10 = {
|
5513
5677
|
bg: "neutral.700",
|
5514
5678
|
fontSize: "text.sm",
|
5515
5679
|
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
5516
5680
|
};
|
5517
|
-
var Tooltip2 = (0,
|
5681
|
+
var Tooltip2 = (0, import_react90.defineStyleConfig)({ baseStyle: baseStyle10 });
|
5518
5682
|
var tooltip_default = Tooltip2;
|
5519
5683
|
|
5520
5684
|
// src/config/theme/themeConfiguration.ts
|
@@ -5524,7 +5688,7 @@ var config = {
|
|
5524
5688
|
useSystemColorMode: false
|
5525
5689
|
};
|
5526
5690
|
var getTheme = (foundations) => {
|
5527
|
-
return (0,
|
5691
|
+
return (0, import_react91.extendTheme)({
|
5528
5692
|
...foundations,
|
5529
5693
|
components: {
|
5530
5694
|
...components_exports
|
@@ -5540,7 +5704,7 @@ var getTheme = (foundations) => {
|
|
5540
5704
|
config
|
5541
5705
|
});
|
5542
5706
|
};
|
5543
|
-
var theme5 = (0,
|
5707
|
+
var theme5 = (0, import_react91.extendTheme)({
|
5544
5708
|
components: {
|
5545
5709
|
...components_exports
|
5546
5710
|
},
|
@@ -5560,23 +5724,23 @@ var theme5 = (0, import_react90.extendTheme)({
|
|
5560
5724
|
|
5561
5725
|
// src/hooks/useFetcher.ts
|
5562
5726
|
var import_axios2 = __toESM(require("axios"));
|
5563
|
-
var
|
5727
|
+
var import_react94 = require("react");
|
5564
5728
|
|
5565
5729
|
// src/provider/components/provider.tsx
|
5566
5730
|
var import_axios = __toESM(require("axios"));
|
5567
|
-
var
|
5731
|
+
var import_react92 = require("react");
|
5568
5732
|
var import_react_toastify = require("react-toastify");
|
5569
|
-
var
|
5570
|
-
var ProviderContext = (0,
|
5733
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
5734
|
+
var ProviderContext = (0, import_react92.createContext)({
|
5571
5735
|
instance: void 0
|
5572
5736
|
});
|
5573
5737
|
var useInternalUI = () => {
|
5574
|
-
const { instance } = (0,
|
5738
|
+
const { instance } = (0, import_react92.useContext)(ProviderContext);
|
5575
5739
|
return { instance };
|
5576
5740
|
};
|
5577
5741
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
5578
|
-
const instanceRef = (0,
|
5579
|
-
(0,
|
5742
|
+
const instanceRef = (0, import_react92.useRef)(import_axios.default.create(config2));
|
5743
|
+
(0, import_react92.useEffect)(() => {
|
5580
5744
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
5581
5745
|
instanceRef.current.interceptors.request.use(interceptor);
|
5582
5746
|
});
|
@@ -5584,9 +5748,9 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
5584
5748
|
instanceRef.current.interceptors.response.use(interceptor);
|
5585
5749
|
});
|
5586
5750
|
}, [requestInterceptors, responseInterceptors]);
|
5587
|
-
const provider = (0,
|
5588
|
-
return /* @__PURE__ */ (0,
|
5589
|
-
/* @__PURE__ */ (0,
|
5751
|
+
const provider = (0, import_react92.useMemo)(() => ({ instance: instanceRef.current }), []);
|
5752
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(ProviderContext.Provider, { value: provider, children: [
|
5753
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_toastify.ToastContainer, {}),
|
5590
5754
|
children
|
5591
5755
|
] });
|
5592
5756
|
};
|
@@ -5594,12 +5758,12 @@ Provider.displayName = "Provider";
|
|
5594
5758
|
var provider_default = Provider;
|
5595
5759
|
|
5596
5760
|
// src/provider/index.ts
|
5597
|
-
var
|
5761
|
+
var import_react93 = require("@chakra-ui/react");
|
5598
5762
|
|
5599
5763
|
// src/hooks/useFetcher.ts
|
5600
5764
|
function useFetcher() {
|
5601
5765
|
const { instance } = useInternalUI();
|
5602
|
-
const axiosInstance = (0,
|
5766
|
+
const axiosInstance = (0, import_react94.useMemo)(() => instance || import_axios2.default, [instance]);
|
5603
5767
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
5604
5768
|
const response = await axiosInstance.request({
|
5605
5769
|
data,
|
@@ -5619,10 +5783,10 @@ function useFetcher() {
|
|
5619
5783
|
}
|
5620
5784
|
|
5621
5785
|
// src/hooks/index.ts
|
5622
|
-
var
|
5786
|
+
var import_react95 = require("@chakra-ui/react");
|
5623
5787
|
|
5624
5788
|
// src/index.ts
|
5625
|
-
var
|
5789
|
+
var import_react96 = require("@chakra-ui/react");
|
5626
5790
|
// Annotate the CommonJS export names for ESM import in node:
|
5627
5791
|
0 && (module.exports = {
|
5628
5792
|
Accordion,
|
@@ -5666,6 +5830,7 @@ var import_react95 = require("@chakra-ui/react");
|
|
5666
5830
|
Button,
|
5667
5831
|
ButtonGroup,
|
5668
5832
|
ButtonGroupProps,
|
5833
|
+
CHECKBOX_STATE,
|
5669
5834
|
Card,
|
5670
5835
|
Center,
|
5671
5836
|
ChakraProvider,
|
@@ -5812,6 +5977,7 @@ var import_react95 = require("@chakra-ui/react");
|
|
5812
5977
|
Select,
|
5813
5978
|
SelectAsync,
|
5814
5979
|
SelectAsyncCreatable,
|
5980
|
+
SelectCheckBox,
|
5815
5981
|
SelectCreatable,
|
5816
5982
|
Show,
|
5817
5983
|
ShowProps,
|
@@ -5902,6 +6068,7 @@ var import_react95 = require("@chakra-ui/react");
|
|
5902
6068
|
WrapProps,
|
5903
6069
|
extendTheme,
|
5904
6070
|
forwardRef,
|
6071
|
+
getSelectAllCheckboxState,
|
5905
6072
|
getTheme,
|
5906
6073
|
theme,
|
5907
6074
|
useAccordion,
|