@ctlyst.id/internal-ui 2.1.13 → 2.1.14
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +273 -265
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +93 -85
- 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_react48.Box,
|
70
70
|
BoxProps: () => import_react48.BoxProps,
|
@@ -74,9 +74,9 @@ __export(src_exports, {
|
|
74
74
|
ButtonGroupProps: () => import_react9.ButtonGroupProps,
|
75
75
|
Card: () => card_default,
|
76
76
|
Center: () => import_react48.Center,
|
77
|
-
ChakraProvider: () =>
|
78
|
-
ChakraProviderProps: () =>
|
79
|
-
ChakraTable: () =>
|
77
|
+
ChakraProvider: () => import_react93.ChakraProvider,
|
78
|
+
ChakraProviderProps: () => import_react93.ChakraProviderProps,
|
79
|
+
ChakraTable: () => import_react79.Table,
|
80
80
|
Checkbox: () => checkbox_default,
|
81
81
|
CheckboxGroup: () => checkbox_group_default,
|
82
82
|
CheckboxGroupContext: () => import_react16.CheckboxGroupContext,
|
@@ -87,13 +87,13 @@ __export(src_exports, {
|
|
87
87
|
Chips: () => chips_default,
|
88
88
|
CloseButton: () => import_react9.CloseButton,
|
89
89
|
CloseButtonProps: () => import_react9.CloseButtonProps,
|
90
|
-
Code: () =>
|
91
|
-
CodeProps: () =>
|
92
|
-
Collapse: () =>
|
93
|
-
CollapseProps: () =>
|
94
|
-
ColorMode: () =>
|
95
|
-
ColorModeScript: () =>
|
96
|
-
ColorModeScriptProps: () =>
|
90
|
+
Code: () => import_react82.Code,
|
91
|
+
CodeProps: () => import_react82.CodeProps,
|
92
|
+
Collapse: () => import_react85.Collapse,
|
93
|
+
CollapseProps: () => import_react85.CollapseProps,
|
94
|
+
ColorMode: () => import_react93.ColorMode,
|
95
|
+
ColorModeScript: () => import_react93.ColorModeScript,
|
96
|
+
ColorModeScriptProps: () => import_react93.ColorModeScriptProps,
|
97
97
|
Container: () => import_react48.Container,
|
98
98
|
ContainerProps: () => import_react48.ContainerProps,
|
99
99
|
Counter: () => counter_default,
|
@@ -112,8 +112,8 @@ __export(src_exports, {
|
|
112
112
|
DrawerHeader: () => import_react59.ModalHeader,
|
113
113
|
DrawerOverlay: () => import_react59.ModalOverlay,
|
114
114
|
DrawerProps: () => import_react59.DrawerProps,
|
115
|
-
Fade: () =>
|
116
|
-
FadeProps: () =>
|
115
|
+
Fade: () => import_react85.Fade,
|
116
|
+
FadeProps: () => import_react85.FadeProps,
|
117
117
|
Field: () => field_default,
|
118
118
|
Flex: () => import_react48.Flex,
|
119
119
|
FlexProps: () => import_react48.FlexProps,
|
@@ -129,18 +129,18 @@ __export(src_exports, {
|
|
129
129
|
GridProps: () => import_react48.GridProps,
|
130
130
|
HStack: () => import_react48.HStack,
|
131
131
|
Header: () => header_default,
|
132
|
-
Heading: () =>
|
133
|
-
HeadingProps: () =>
|
134
|
-
Hide: () =>
|
135
|
-
HideProps: () =>
|
132
|
+
Heading: () => import_react82.Heading,
|
133
|
+
HeadingProps: () => import_react82.HeadingProps,
|
134
|
+
Hide: () => import_react85.Hide,
|
135
|
+
HideProps: () => import_react85.HideProps,
|
136
136
|
Icon: () => import_react47.Icon,
|
137
137
|
IconButton: () => import_react9.IconButton,
|
138
138
|
IconButtonProps: () => import_react9.IconButtonProps,
|
139
139
|
IconProps: () => import_react47.IconProps,
|
140
140
|
Image: () => import_react47.Image,
|
141
141
|
ImageProps: () => import_react47.ImageProps,
|
142
|
-
Img: () =>
|
143
|
-
ImgProps: () =>
|
142
|
+
Img: () => import_react85.Img,
|
143
|
+
ImgProps: () => import_react85.ImgProps,
|
144
144
|
InputAddonLeft: () => InputAddonLeft,
|
145
145
|
InputAddonRight: () => InputAddonRight,
|
146
146
|
InputElementLeft: () => import_react20.InputLeftElement,
|
@@ -157,8 +157,8 @@ __export(src_exports, {
|
|
157
157
|
InputRightAddonProps: () => import_react27.InputRightAddonProps,
|
158
158
|
InputRightElement: () => import_react27.InputRightElement,
|
159
159
|
InputRightElementProps: () => import_react27.InputRightElementProps,
|
160
|
-
Link: () =>
|
161
|
-
LinkProps: () =>
|
160
|
+
Link: () => import_react82.Link,
|
161
|
+
LinkProps: () => import_react82.LinkProps,
|
162
162
|
List: () => import_react49.List,
|
163
163
|
ListIcon: () => import_react49.ListIcon,
|
164
164
|
ListItem: () => import_react49.ListItem,
|
@@ -213,101 +213,101 @@ __export(src_exports, {
|
|
213
213
|
Rating: () => rating_default,
|
214
214
|
RequiredIndicator: () => import_react27.RequiredIndicator,
|
215
215
|
RequiredIndicatorProps: () => import_react27.RequiredIndicatorProps,
|
216
|
-
ScaleFade: () =>
|
217
|
-
ScaleFadeProps: () =>
|
216
|
+
ScaleFade: () => import_react85.ScaleFade,
|
217
|
+
ScaleFadeProps: () => import_react85.ScaleFadeProps,
|
218
218
|
Select: () => select_default,
|
219
219
|
SelectAsync: () => select_async_default,
|
220
220
|
SelectAsyncCreatable: () => SelectAsyncCreatable,
|
221
221
|
SelectCreatable: () => SelectCreatable,
|
222
|
-
Show: () =>
|
223
|
-
ShowProps: () =>
|
222
|
+
Show: () => import_react85.Show,
|
223
|
+
ShowProps: () => import_react85.ShowProps,
|
224
224
|
SimpleGrid: () => import_react48.SimpleGrid,
|
225
225
|
Skeleton: () => import_react5.Skeleton,
|
226
|
-
Slide: () =>
|
227
|
-
SlideFade: () =>
|
228
|
-
SlideFadeProps: () =>
|
229
|
-
SlideProps: () =>
|
226
|
+
Slide: () => import_react85.Slide,
|
227
|
+
SlideFade: () => import_react85.SlideFade,
|
228
|
+
SlideFadeProps: () => import_react85.SlideFadeProps,
|
229
|
+
SlideProps: () => import_react85.SlideProps,
|
230
230
|
Spacer: () => import_react48.Spacer,
|
231
231
|
Stack: () => import_react48.Stack,
|
232
232
|
StackProps: () => import_react48.StackProps,
|
233
|
-
Step: () =>
|
234
|
-
StepDescription: () =>
|
235
|
-
StepIcon: () =>
|
236
|
-
StepIndicator: () =>
|
237
|
-
StepNumber: () =>
|
238
|
-
StepSeparator: () =>
|
239
|
-
StepStatus: () =>
|
240
|
-
StepTitle: () =>
|
241
|
-
Stepper: () =>
|
233
|
+
Step: () => import_react85.Step,
|
234
|
+
StepDescription: () => import_react85.StepDescription,
|
235
|
+
StepIcon: () => import_react85.StepIcon,
|
236
|
+
StepIndicator: () => import_react85.StepIndicator,
|
237
|
+
StepNumber: () => import_react85.StepNumber,
|
238
|
+
StepSeparator: () => import_react85.StepSeparator,
|
239
|
+
StepStatus: () => import_react85.StepStatus,
|
240
|
+
StepTitle: () => import_react85.StepTitle,
|
241
|
+
Stepper: () => import_react85.Stepper,
|
242
242
|
Switch: () => switch_default,
|
243
243
|
Tab: () => tab_default,
|
244
|
-
TabIndicator: () =>
|
245
|
-
TabIndicatorProps: () =>
|
246
|
-
TabList: () =>
|
247
|
-
TabListProps: () =>
|
248
|
-
TabPanel: () =>
|
249
|
-
TabPanelProps: () =>
|
250
|
-
TabPanels: () =>
|
251
|
-
TabPanelsProps: () =>
|
252
|
-
TabProps: () =>
|
253
|
-
TableBodyProps: () =>
|
254
|
-
TableCellProps: () =>
|
255
|
-
TableColumnHeaderProps: () =>
|
256
|
-
TableHeadProps: () =>
|
257
|
-
TableProps: () =>
|
258
|
-
TableRowProps: () =>
|
259
|
-
Tabs: () =>
|
260
|
-
TabsDescendantsProvider: () =>
|
261
|
-
TabsProps: () =>
|
262
|
-
TabsProvider: () =>
|
263
|
-
Tbody: () =>
|
264
|
-
Td: () =>
|
265
|
-
Text: () =>
|
266
|
-
TextProps: () =>
|
244
|
+
TabIndicator: () => import_react81.TabIndicator,
|
245
|
+
TabIndicatorProps: () => import_react81.TabIndicatorProps,
|
246
|
+
TabList: () => import_react81.TabList,
|
247
|
+
TabListProps: () => import_react81.TabListProps,
|
248
|
+
TabPanel: () => import_react81.TabPanel,
|
249
|
+
TabPanelProps: () => import_react81.TabPanelProps,
|
250
|
+
TabPanels: () => import_react81.TabPanels,
|
251
|
+
TabPanelsProps: () => import_react81.TabPanelsProps,
|
252
|
+
TabProps: () => import_react81.TabProps,
|
253
|
+
TableBodyProps: () => import_react79.TableBodyProps,
|
254
|
+
TableCellProps: () => import_react79.TableCellProps,
|
255
|
+
TableColumnHeaderProps: () => import_react79.TableColumnHeaderProps,
|
256
|
+
TableHeadProps: () => import_react79.TableHeadProps,
|
257
|
+
TableProps: () => import_react79.TableProps,
|
258
|
+
TableRowProps: () => import_react79.TableRowProps,
|
259
|
+
Tabs: () => import_react81.Tabs,
|
260
|
+
TabsDescendantsProvider: () => import_react81.TabsDescendantsProvider,
|
261
|
+
TabsProps: () => import_react81.TabsProps,
|
262
|
+
TabsProvider: () => import_react81.TabsProvider,
|
263
|
+
Tbody: () => import_react79.Tbody,
|
264
|
+
Td: () => import_react79.Td,
|
265
|
+
Text: () => import_react82.Text,
|
266
|
+
TextProps: () => import_react82.TextProps,
|
267
267
|
TextareaField: () => textarea_default,
|
268
|
-
Th: () =>
|
269
|
-
Thead: () =>
|
268
|
+
Th: () => import_react79.Th,
|
269
|
+
Thead: () => import_react79.Thead,
|
270
270
|
ThemeTypings: () => import_styled_system13.ThemeTypings,
|
271
|
-
Tooltip: () =>
|
272
|
-
TooltipProps: () =>
|
273
|
-
Tr: () =>
|
271
|
+
Tooltip: () => import_react83.Tooltip,
|
272
|
+
TooltipProps: () => import_react83.TooltipProps,
|
273
|
+
Tr: () => import_react79.Tr,
|
274
274
|
UnorderedList: () => import_react49.UnorderedList,
|
275
275
|
Uploader: () => uploader_default,
|
276
276
|
UseAccordionItemProps: () => import_react3.UseAccordionItemProps,
|
277
277
|
UseAccordionItemReturn: () => import_react3.UseAccordionItemReturn,
|
278
278
|
UseAccordionProps: () => import_react3.UseAccordionProps,
|
279
279
|
UseAccordionReturn: () => import_react3.UseAccordionReturn,
|
280
|
-
UseBreakpointOptions: () =>
|
280
|
+
UseBreakpointOptions: () => import_react85.UseBreakpointOptions,
|
281
281
|
UseCheckboxGroupProps: () => import_react16.UseCheckboxGroupProps,
|
282
282
|
UseCheckboxGroupReturn: () => import_react16.UseCheckboxGroupReturn,
|
283
283
|
UseCheckboxProps: () => import_react16.UseCheckboxProps,
|
284
284
|
UseCheckboxReturn: () => import_react16.UseCheckboxReturn,
|
285
|
-
UseDisclosureProps: () =>
|
286
|
-
UseImageProps: () =>
|
287
|
-
UseImageReturn: () =>
|
288
|
-
UseMediaQueryOptions: () =>
|
285
|
+
UseDisclosureProps: () => import_react95.UseDisclosureProps,
|
286
|
+
UseImageProps: () => import_react85.UseImageProps,
|
287
|
+
UseImageReturn: () => import_react85.UseImageReturn,
|
288
|
+
UseMediaQueryOptions: () => import_react85.UseMediaQueryOptions,
|
289
289
|
UseModalProps: () => import_react59.UseModalProps,
|
290
290
|
UseModalReturn: () => import_react59.UseModalReturn,
|
291
|
-
UseQueryProps: () =>
|
291
|
+
UseQueryProps: () => import_react85.UseQueryProps,
|
292
292
|
UseRadioGroupReturn: () => import_react72.UseRadioGroupReturn,
|
293
293
|
UseRadioProps: () => import_react72.UseRadioProps,
|
294
294
|
UseRadioReturn: () => import_react72.UseRadioReturn,
|
295
|
-
UseTabListProps: () =>
|
296
|
-
UseTabListReturn: () =>
|
297
|
-
UseTabOptions: () =>
|
298
|
-
UseTabPanelsProps: () =>
|
299
|
-
UseTabProps: () =>
|
300
|
-
UseTabsProps: () =>
|
301
|
-
UseTabsReturn: () =>
|
295
|
+
UseTabListProps: () => import_react81.UseTabListProps,
|
296
|
+
UseTabListReturn: () => import_react81.UseTabListReturn,
|
297
|
+
UseTabOptions: () => import_react81.UseTabOptions,
|
298
|
+
UseTabPanelsProps: () => import_react81.UseTabPanelsProps,
|
299
|
+
UseTabProps: () => import_react81.UseTabProps,
|
300
|
+
UseTabsProps: () => import_react81.UseTabsProps,
|
301
|
+
UseTabsReturn: () => import_react81.UseTabsReturn,
|
302
302
|
VStack: () => import_react48.VStack,
|
303
|
-
VisuallyHidden: () =>
|
304
|
-
VisuallyHiddenInput: () =>
|
303
|
+
VisuallyHidden: () => import_react85.VisuallyHidden,
|
304
|
+
VisuallyHiddenInput: () => import_react85.VisuallyHiddenInput,
|
305
305
|
Wrap: () => import_react48.Wrap,
|
306
306
|
WrapItem: () => import_react48.WrapItem,
|
307
307
|
WrapItemProps: () => import_react48.WrapItemProps,
|
308
308
|
WrapProps: () => import_react48.WrapProps,
|
309
|
-
extendTheme: () =>
|
310
|
-
forwardRef: () =>
|
309
|
+
extendTheme: () => import_react96.extendTheme,
|
310
|
+
forwardRef: () => import_react96.forwardRef,
|
311
311
|
getTheme: () => getTheme,
|
312
312
|
theme: () => theme5,
|
313
313
|
useAccordion: () => import_react3.useAccordion,
|
@@ -316,47 +316,47 @@ __export(src_exports, {
|
|
316
316
|
useAccordionItemState: () => import_react3.useAccordionItemState,
|
317
317
|
useAccordionStyles: () => import_react3.useAccordionStyles,
|
318
318
|
useAlertStyles: () => useAlertStyles,
|
319
|
-
useBoolean: () =>
|
320
|
-
useBreakpoint: () =>
|
319
|
+
useBoolean: () => import_react95.useBoolean,
|
320
|
+
useBreakpoint: () => import_react85.useBreakpoint,
|
321
321
|
useCheckbox: () => import_react16.useCheckbox,
|
322
322
|
useCheckboxGroup: () => import_react16.useCheckboxGroup,
|
323
|
-
useClipboard: () =>
|
324
|
-
useColorMode: () =>
|
325
|
-
useColorModePreference: () =>
|
326
|
-
useColorModeValue: () =>
|
327
|
-
useConst: () =>
|
328
|
-
useControllableProp: () =>
|
329
|
-
useControllableState: () =>
|
323
|
+
useClipboard: () => import_react95.useClipboard,
|
324
|
+
useColorMode: () => import_react95.useColorMode,
|
325
|
+
useColorModePreference: () => import_react85.useColorModePreference,
|
326
|
+
useColorModeValue: () => import_react95.useColorModeValue,
|
327
|
+
useConst: () => import_react95.useConst,
|
328
|
+
useControllableProp: () => import_react95.useControllableProp,
|
329
|
+
useControllableState: () => import_react95.useControllableState,
|
330
330
|
useDataTable: () => useDataTable,
|
331
|
-
useDimensions: () =>
|
332
|
-
useDisclosure: () =>
|
331
|
+
useDimensions: () => import_react95.useDimensions,
|
332
|
+
useDisclosure: () => import_react95.useDisclosure,
|
333
333
|
useDrawerContext: () => import_react59.useDrawerContext,
|
334
334
|
useFetcher: () => useFetcher,
|
335
|
-
useImage: () =>
|
335
|
+
useImage: () => import_react85.useImage,
|
336
336
|
useInternalUI: () => useInternalUI,
|
337
|
-
useMergeRefs: () =>
|
337
|
+
useMergeRefs: () => import_react95.useMergeRefs,
|
338
338
|
useModal: () => import_react59.useModal,
|
339
339
|
useModalContext: () => import_react59.useModalContext,
|
340
340
|
useModalStyles: () => import_react59.useModalStyles,
|
341
|
-
useOutsideClick: () =>
|
342
|
-
useQuery: () =>
|
341
|
+
useOutsideClick: () => import_react95.useOutsideClick,
|
342
|
+
useQuery: () => import_react85.useQuery,
|
343
343
|
useRadio: () => import_react72.useRadio,
|
344
344
|
useRadioGroup: () => import_react72.useRadioGroup,
|
345
345
|
useRadioGroupContext: () => import_react72.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: () =>
|
346
|
+
useSteps: () => import_react85.useSteps,
|
347
|
+
useTab: () => import_react81.useTab,
|
348
|
+
useTabIndicator: () => import_react81.useTabIndicator,
|
349
|
+
useTabList: () => import_react81.useTabList,
|
350
|
+
useTabPanel: () => import_react81.useTabPanel,
|
351
|
+
useTabPanels: () => import_react81.useTabPanels,
|
352
|
+
useTabs: () => import_react81.useTabs,
|
353
|
+
useTabsContext: () => import_react81.useTabsContext,
|
354
|
+
useTabsDescendant: () => import_react81.useTabsDescendant,
|
355
|
+
useTabsDescendants: () => import_react81.useTabsDescendants,
|
356
|
+
useTabsDescendantsContext: () => import_react81.useTabsDescendantsContext,
|
357
|
+
useTabsStyles: () => import_react81.useTabsStyles,
|
358
|
+
useTheme: () => import_react95.useTheme,
|
359
|
+
useToken: () => import_react95.useToken
|
360
360
|
});
|
361
361
|
module.exports = __toCommonJS(src_exports);
|
362
362
|
|
@@ -1195,14 +1195,40 @@ var getCommonPinningStyles = (column) => {
|
|
1195
1195
|
const isLastLeftPinnedColumn = isPinned === "left" && column.getIsLastColumn("left");
|
1196
1196
|
const isFirstRightPinnedColumn = isPinned === "right" && column.getIsFirstColumn("right");
|
1197
1197
|
return {
|
1198
|
-
// eslint-disable-next-line no-nested-ternary
|
1199
|
-
boxShadow: isLastLeftPinnedColumn ? "-4px 0 4px -4px gray inset" : isFirstRightPinnedColumn ? "4px 0 4px -4px gray inset" : void 0,
|
1200
1198
|
left: isPinned === "left" ? `${column.getStart("left")}px` : void 0,
|
1201
1199
|
right: isPinned === "right" ? `${column.getAfter("right")}px` : void 0,
|
1202
|
-
opacity: isPinned ? 0.95 : 1,
|
1203
1200
|
position: isPinned ? "sticky" : "relative",
|
1204
1201
|
width: column.getSize(),
|
1205
|
-
zIndex: isPinned ? 1 : 0
|
1202
|
+
zIndex: isPinned ? 1 : 0,
|
1203
|
+
backgroundColor: "white",
|
1204
|
+
...isLastLeftPinnedColumn ? {
|
1205
|
+
padding: 0,
|
1206
|
+
"&:after": {
|
1207
|
+
content: "''",
|
1208
|
+
position: "absolute",
|
1209
|
+
width: "20%",
|
1210
|
+
height: "100%",
|
1211
|
+
right: "0px",
|
1212
|
+
top: 0,
|
1213
|
+
zIndex: -1,
|
1214
|
+
boxShadow: "-10px 0px 20px 10px #00000010",
|
1215
|
+
clipPath: "inset(0px -38px 0px 0px)"
|
1216
|
+
}
|
1217
|
+
} : {},
|
1218
|
+
...isFirstRightPinnedColumn ? {
|
1219
|
+
padding: "0px 0px 0px 8px",
|
1220
|
+
"&:after": {
|
1221
|
+
content: "''",
|
1222
|
+
position: "absolute",
|
1223
|
+
width: "20%",
|
1224
|
+
height: "100%",
|
1225
|
+
left: "0%",
|
1226
|
+
top: 0,
|
1227
|
+
zIndex: -1,
|
1228
|
+
boxShadow: "10px 0px 20px 10px #00000010",
|
1229
|
+
clipPath: "inset(0px 0px 0px -38px )"
|
1230
|
+
}
|
1231
|
+
} : {}
|
1206
1232
|
};
|
1207
1233
|
};
|
1208
1234
|
var useDataTable = ({
|
@@ -1299,12 +1325,12 @@ var useDataTable = ({
|
|
1299
1325
|
};
|
1300
1326
|
};
|
1301
1327
|
var DataTable = React5.forwardRef((props, ref) => {
|
1302
|
-
const { isLoading, styles, headerSticky, onRowClick } = props;
|
1328
|
+
const { isLoading, styles, headerSticky, onRowClick, container } = props;
|
1303
1329
|
const { table, toggleAllRowsSelected, generateColumn } = useDataTable(props);
|
1304
1330
|
React5.useImperativeHandle(ref, () => ({
|
1305
1331
|
toggleAllRowsSelected
|
1306
1332
|
}));
|
1307
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react29.Box, { ...
|
1333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react29.Box, { overflowX: "auto", position: "relative", maxW: "100%", minH: 400, w: "full", ...container, children: [
|
1308
1334
|
isLoading && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react29.Table, { ...styles == null ? void 0 : styles.table, children: [
|
1309
1335
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Thead, { ...(styles == null ? void 0 : styles.tableHead, headerSticky ? { position: "sticky", top: 0, bg: "white", zIndex: 1 } : {}), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Tr, { mx: "2", ...styles == null ? void 0 : styles.tableRow, children: headerGroup.headers.map((header, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1310
1336
|
import_react29.Th,
|
@@ -1335,11 +1361,13 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1335
1361
|
{
|
1336
1362
|
colSpan: header.colSpan,
|
1337
1363
|
width: `${header.getSize() + (index === 0 || index === headerGroup.headers.length - 1 ? 16 : 0)}px`,
|
1338
|
-
|
1364
|
+
sx: getCommonPinningStyles(header.column),
|
1339
1365
|
...styles == null ? void 0 : styles.tableColumnHeader,
|
1340
1366
|
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
1341
1367
|
import_react29.Flex,
|
1342
1368
|
{
|
1369
|
+
backgroundColor: "white",
|
1370
|
+
height: "100%",
|
1343
1371
|
"data-test-id": `CT_Container_TableHeader_${header.id}`,
|
1344
1372
|
textTransform: "capitalize",
|
1345
1373
|
userSelect: "none",
|
@@ -1402,9 +1430,9 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1402
1430
|
"data-test-id": `CT_Component_TableCell_${cell.id}`,
|
1403
1431
|
fontSize: "text.sm",
|
1404
1432
|
color: (0, import_react29.useColorModeValue)("dark.800", "dark.300"),
|
1405
|
-
|
1433
|
+
sx: getCommonPinningStyles(cell.column),
|
1406
1434
|
...styles == null ? void 0 : styles.tableCell,
|
1407
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1435
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react29.Flex, { height: "100%", backgroundColor: "white", align: "center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
1408
1436
|
import_react29.Box,
|
1409
1437
|
{
|
1410
1438
|
tabIndex: 0,
|
@@ -1418,7 +1446,7 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1418
1446
|
},
|
1419
1447
|
children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext())
|
1420
1448
|
}
|
1421
|
-
)
|
1449
|
+
) })
|
1422
1450
|
},
|
1423
1451
|
cell.id
|
1424
1452
|
))
|
@@ -1430,12 +1458,8 @@ var DataTable = React5.forwardRef((props, ref) => {
|
|
1430
1458
|
] });
|
1431
1459
|
});
|
1432
1460
|
DataTable.defaultProps = {
|
1461
|
+
container: void 0,
|
1433
1462
|
withSelectedRow: false,
|
1434
|
-
overflowX: "scroll",
|
1435
|
-
pos: "relative",
|
1436
|
-
maxW: "100%",
|
1437
|
-
minH: 400,
|
1438
|
-
w: "full",
|
1439
1463
|
styles: void 0,
|
1440
1464
|
isLoading: void 0,
|
1441
1465
|
onSelectedRow: void 0,
|
@@ -2506,7 +2530,7 @@ var Dialog = ({
|
|
2506
2530
|
}) => {
|
2507
2531
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react41.Modal, { ...props, children: [
|
2508
2532
|
isModalOverlay && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.ModalOverlay, { pointerEvents: isOverlayClickable ? "auto" : "none" }),
|
2509
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react41.ModalContent, { bgColor: "neutral.50", fontFamily: "Poppins", width, children: [
|
2533
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react41.ModalContent, { bgColor: "neutral.50", fontFamily: "Poppins", width, minW: "400px", children: [
|
2510
2534
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.ModalHeader, { bgColor: "neutral.200", py: 2, px: 4, borderTopRadius: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.Text, { textStyle: "text.lg", fontWeight: "normal", children: title }) }),
|
2511
2535
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.ModalBody, { p: 4, textStyle: "text.md", children: content }),
|
2512
2536
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react41.ModalFooter, { bgColor: "neutral.200", p: 4, borderBottomRadius: "sm", children: footer })
|
@@ -3405,28 +3429,17 @@ var rating_default = Rating;
|
|
3405
3429
|
var import_system7 = require("@chakra-ui/system");
|
3406
3430
|
var import_react_select = __toESM(require("react-select"));
|
3407
3431
|
|
3408
|
-
// src/components/select/components/select-wrapper.tsx
|
3409
|
-
var import_react74 = require("@chakra-ui/react");
|
3410
|
-
var import_jsx_runtime52 = require("react/jsx-runtime");
|
3411
|
-
var SelectWrapper = ({ children }) => {
|
3412
|
-
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react74.Box, { children });
|
3413
|
-
};
|
3414
|
-
SelectWrapper.defaultProps = {
|
3415
|
-
isError: false
|
3416
|
-
};
|
3417
|
-
var select_wrapper_default = SelectWrapper;
|
3418
|
-
|
3419
3432
|
// src/config/theme/foundations/shadows.ts
|
3420
|
-
var
|
3433
|
+
var import_react74 = require("@chakra-ui/react");
|
3421
3434
|
var shadows = {
|
3422
|
-
...
|
3435
|
+
...import_react74.theme.shadows,
|
3423
3436
|
raised: "0px 4px 20px rgba(0, 0, 0, 0.05)"
|
3424
3437
|
};
|
3425
3438
|
|
3426
3439
|
// src/config/theme/foundations/sizes.ts
|
3427
|
-
var
|
3440
|
+
var import_react75 = require("@chakra-ui/react");
|
3428
3441
|
var sizes = {
|
3429
|
-
...
|
3442
|
+
...import_react75.theme.sizes,
|
3430
3443
|
4.5: "1.125rem",
|
3431
3444
|
9.5: "2.375rem",
|
3432
3445
|
18: "4.5rem",
|
@@ -3436,9 +3449,9 @@ var sizes = {
|
|
3436
3449
|
};
|
3437
3450
|
|
3438
3451
|
// src/config/theme/foundations/spacing.ts
|
3439
|
-
var
|
3452
|
+
var import_react76 = require("@chakra-ui/react");
|
3440
3453
|
var spacing = {
|
3441
|
-
...
|
3454
|
+
...import_react76.theme.space,
|
3442
3455
|
4.5: "1.125rem",
|
3443
3456
|
9.5: "2.375rem",
|
3444
3457
|
18: "4.5rem",
|
@@ -3681,37 +3694,32 @@ var selectStyle = {
|
|
3681
3694
|
lineHeight: styleMd.lineHeight,
|
3682
3695
|
letterSpacing: 0
|
3683
3696
|
};
|
3684
|
-
var boxShadow = (color) => `0 0 0 1px ${color}`;
|
3685
3697
|
function selectStyles(colorMode, _isError) {
|
3686
|
-
const boxShadowLight = (isFocused = false, isError = false) => {
|
3687
|
-
if (isError && isFocused || isError) {
|
3688
|
-
return boxShadow("danger.500");
|
3689
|
-
}
|
3690
|
-
if (isFocused) {
|
3691
|
-
return boxShadow("primary.500");
|
3692
|
-
}
|
3693
|
-
return boxShadow("neutral.400");
|
3694
|
-
};
|
3695
3698
|
return {
|
3696
|
-
control: (base,
|
3697
|
-
|
3698
|
-
|
3699
|
-
|
3700
|
-
|
3701
|
-
|
3702
|
-
|
3703
|
-
|
3704
|
-
|
3705
|
-
|
3706
|
-
|
3707
|
-
|
3699
|
+
control: (base, { isDisabled, isFocused }) => {
|
3700
|
+
const style = {
|
3701
|
+
...base,
|
3702
|
+
flexWrap: "nowrap",
|
3703
|
+
borderColor: isFocused ? "var(--chakra-colors-primary-500)" : "var(--chakra-colors-neutral-400)",
|
3704
|
+
boxShadow: "none",
|
3705
|
+
color: isDisabled ? "var(--chakra-colors-black-low)" : "var(--chakra-colors-black-high)",
|
3706
|
+
"&:hover": {
|
3707
|
+
borderColor: _isError ? "" : isFocused ? "var(--chakra-colors-primary-500)" : "var(--chakra-colors-neutral-500)"
|
3708
|
+
}
|
3709
|
+
};
|
3710
|
+
if (_isError) {
|
3711
|
+
return {
|
3712
|
+
...style,
|
3713
|
+
borderColor: "var(--chakra-colors-danger-500)"
|
3714
|
+
};
|
3715
|
+
}
|
3716
|
+
return style;
|
3708
3717
|
},
|
3709
|
-
option: (base
|
3718
|
+
option: (base) => ({
|
3710
3719
|
...base,
|
3711
3720
|
...selectStyle,
|
3712
|
-
|
3713
|
-
|
3714
|
-
} : { ...base, ...selectStyle },
|
3721
|
+
color: "var(--chakra-colors-neutral-900)"
|
3722
|
+
}),
|
3715
3723
|
menu: (base) => colorMode === "dark" ? {
|
3716
3724
|
...base,
|
3717
3725
|
...selectStyle,
|
@@ -3736,23 +3744,23 @@ var themeSelect = (theme6) => {
|
|
3736
3744
|
...theme6,
|
3737
3745
|
colors: {
|
3738
3746
|
...theme6.colors,
|
3739
|
-
primary: "primary
|
3740
|
-
primary25: "primary
|
3741
|
-
primary50: "primary
|
3742
|
-
primary75: "primary
|
3747
|
+
primary: "var(--chakra-colors-primary-100)",
|
3748
|
+
primary25: "var(--chakra-colors-primary-50)",
|
3749
|
+
primary50: "var(--chakra-colors-primary-100)",
|
3750
|
+
primary75: "var(--chakra-colors-primary-200)"
|
3743
3751
|
}
|
3744
3752
|
};
|
3745
3753
|
};
|
3746
3754
|
|
3747
3755
|
// src/components/select/components/select.tsx
|
3748
|
-
var
|
3756
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
3749
3757
|
function Select2({
|
3750
3758
|
styles,
|
3751
3759
|
isError = false,
|
3752
3760
|
...rest
|
3753
3761
|
}) {
|
3754
3762
|
const { colorMode } = (0, import_system7.useColorMode)();
|
3755
|
-
return /* @__PURE__ */ (0,
|
3763
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
3756
3764
|
import_react_select.default,
|
3757
3765
|
{
|
3758
3766
|
classNamePrefix: "react-select",
|
@@ -3760,21 +3768,21 @@ function Select2({
|
|
3760
3768
|
styles: { ...selectStyles(colorMode, isError) },
|
3761
3769
|
theme: themeSelect
|
3762
3770
|
}
|
3763
|
-
)
|
3771
|
+
);
|
3764
3772
|
}
|
3765
3773
|
var select_default = Select2;
|
3766
3774
|
|
3767
3775
|
// src/components/select/components/select-async.tsx
|
3768
3776
|
var import_system8 = require("@chakra-ui/system");
|
3769
3777
|
var import_react_select_async_paginate = require("react-select-async-paginate");
|
3770
|
-
var
|
3778
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
3771
3779
|
function SelectAsync({
|
3772
3780
|
styles,
|
3773
3781
|
isError = false,
|
3774
3782
|
...rest
|
3775
3783
|
}) {
|
3776
3784
|
const { colorMode } = (0, import_system8.useColorMode)();
|
3777
|
-
return /* @__PURE__ */ (0,
|
3785
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
3778
3786
|
import_react_select_async_paginate.AsyncPaginate,
|
3779
3787
|
{
|
3780
3788
|
classNamePrefix: "react-select",
|
@@ -3782,17 +3790,17 @@ function SelectAsync({
|
|
3782
3790
|
styles: { ...selectStyles(colorMode, isError), ...styles },
|
3783
3791
|
theme: themeSelect
|
3784
3792
|
}
|
3785
|
-
)
|
3793
|
+
);
|
3786
3794
|
}
|
3787
3795
|
var select_async_default = SelectAsync;
|
3788
3796
|
|
3789
3797
|
// src/components/select/components/select-async-creatable.tsx
|
3790
3798
|
var import_system9 = require("@chakra-ui/system");
|
3791
3799
|
var import_async_creatable = __toESM(require("react-select/async-creatable"));
|
3792
|
-
var
|
3800
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
3793
3801
|
function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
3794
3802
|
const { colorMode } = (0, import_system9.useColorMode)();
|
3795
|
-
return /* @__PURE__ */ (0,
|
3803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
3796
3804
|
import_async_creatable.default,
|
3797
3805
|
{
|
3798
3806
|
classNamePrefix: "react-select",
|
@@ -3800,16 +3808,16 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
|
|
3800
3808
|
styles: { ...selectStyles(colorMode, isError), ...styles },
|
3801
3809
|
theme: themeSelect
|
3802
3810
|
}
|
3803
|
-
)
|
3811
|
+
);
|
3804
3812
|
}
|
3805
3813
|
|
3806
3814
|
// src/components/select/components/select-creatable.tsx
|
3807
3815
|
var import_system10 = require("@chakra-ui/system");
|
3808
3816
|
var import_creatable = __toESM(require("react-select/creatable"));
|
3809
|
-
var
|
3817
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
3810
3818
|
function SelectCreatable({ styles, isError = false, ...rest }) {
|
3811
3819
|
const { colorMode } = (0, import_system10.useColorMode)();
|
3812
|
-
return /* @__PURE__ */ (0,
|
3820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
3813
3821
|
import_creatable.default,
|
3814
3822
|
{
|
3815
3823
|
classNamePrefix: "react-select",
|
@@ -3817,20 +3825,20 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
|
|
3817
3825
|
styles: { ...selectStyles(colorMode, isError), ...styles },
|
3818
3826
|
theme: themeSelect
|
3819
3827
|
}
|
3820
|
-
)
|
3828
|
+
);
|
3821
3829
|
}
|
3822
3830
|
|
3823
3831
|
// src/components/switch/components/switch.tsx
|
3824
|
-
var
|
3832
|
+
var import_react77 = require("@chakra-ui/react");
|
3825
3833
|
var import_shared_utils9 = require("@chakra-ui/shared-utils");
|
3826
3834
|
var import_internal_icon7 = require("@ctlyst.id/internal-icon");
|
3827
|
-
var
|
3828
|
-
var
|
3829
|
-
var Switch = (0,
|
3830
|
-
const styles = (0,
|
3831
|
-
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0,
|
3832
|
-
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0,
|
3833
|
-
const containerStyles = (0,
|
3835
|
+
var import_react78 = require("react");
|
3836
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
3837
|
+
var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
|
3838
|
+
const styles = (0, import_react77.useMultiStyleConfig)("Switch", props);
|
3839
|
+
const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0, import_react77.omitThemingProps)(props);
|
3840
|
+
const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0, import_react77.useCheckbox)(ownProps);
|
3841
|
+
const containerStyles = (0, import_react78.useMemo)(
|
3834
3842
|
() => ({
|
3835
3843
|
display: "inline-block",
|
3836
3844
|
position: "relative",
|
@@ -3840,7 +3848,7 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
3840
3848
|
}),
|
3841
3849
|
[styles.container]
|
3842
3850
|
);
|
3843
|
-
const trackStyles = (0,
|
3851
|
+
const trackStyles = (0, import_react78.useMemo)(
|
3844
3852
|
() => ({
|
3845
3853
|
display: "inline-flex",
|
3846
3854
|
flexShrink: 0,
|
@@ -3852,7 +3860,7 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
3852
3860
|
}),
|
3853
3861
|
[styles.track]
|
3854
3862
|
);
|
3855
|
-
const labelStyles = (0,
|
3863
|
+
const labelStyles = (0, import_react78.useMemo)(
|
3856
3864
|
() => ({
|
3857
3865
|
userSelect: "none",
|
3858
3866
|
marginStart: spacing2,
|
@@ -3868,8 +3876,8 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
3868
3876
|
};
|
3869
3877
|
return iconSize[value];
|
3870
3878
|
};
|
3871
|
-
return /* @__PURE__ */ (0,
|
3872
|
-
|
3879
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
3880
|
+
import_react77.chakra.label,
|
3873
3881
|
{
|
3874
3882
|
...getRootProps(),
|
3875
3883
|
display: "flex",
|
@@ -3877,14 +3885,14 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
3877
3885
|
className: (0, import_shared_utils9.cx)("chakra-switch", props.className),
|
3878
3886
|
__css: containerStyles,
|
3879
3887
|
children: [
|
3880
|
-
/* @__PURE__ */ (0,
|
3881
|
-
/* @__PURE__ */ (0,
|
3882
|
-
/* @__PURE__ */ (0,
|
3883
|
-
/* @__PURE__ */ (0,
|
3884
|
-
/* @__PURE__ */ (0,
|
3888
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
|
3889
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_react77.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
|
3890
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_react77.Flex, { gap: 2, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
|
3891
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_internal_icon7.Check, { color: "white", size: getIconSize(props.size) }),
|
3892
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_internal_icon7.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
|
3885
3893
|
] }),
|
3886
|
-
/* @__PURE__ */ (0,
|
3887
|
-
|
3894
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3895
|
+
import_react77.chakra.span,
|
3888
3896
|
{
|
3889
3897
|
__css: styles.thumb,
|
3890
3898
|
className: "chakra-switch__thumb",
|
@@ -3893,8 +3901,8 @@ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
|
|
3893
3901
|
}
|
3894
3902
|
)
|
3895
3903
|
] }),
|
3896
|
-
children && /* @__PURE__ */ (0,
|
3897
|
-
|
3904
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
3905
|
+
import_react77.chakra.span,
|
3898
3906
|
{
|
3899
3907
|
className: "chakra-switch__label",
|
3900
3908
|
color: state.isDisabled ? "black.low" : "black.high",
|
@@ -3913,18 +3921,18 @@ Switch.defaultProps = {
|
|
3913
3921
|
var switch_default = Switch;
|
3914
3922
|
|
3915
3923
|
// src/components/table/index.tsx
|
3916
|
-
var
|
3924
|
+
var import_react79 = require("@chakra-ui/react");
|
3917
3925
|
|
3918
3926
|
// src/components/tabs/components/tab.tsx
|
3919
|
-
var
|
3920
|
-
var
|
3921
|
-
var Tab = (0,
|
3927
|
+
var import_react80 = require("@chakra-ui/react");
|
3928
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
3929
|
+
var Tab = (0, import_react80.forwardRef)((props, ref) => {
|
3922
3930
|
var _a, _b;
|
3923
|
-
const tabProps = (0,
|
3931
|
+
const tabProps = (0, import_react80.useTab)({ ...props, ref });
|
3924
3932
|
const isSelected = !!tabProps["aria-selected"];
|
3925
|
-
const styles = (0,
|
3926
|
-
return /* @__PURE__ */ (0,
|
3927
|
-
|
3933
|
+
const styles = (0, import_react80.useMultiStyleConfig)("Tabs", tabProps);
|
3934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
3935
|
+
import_react80.Button,
|
3928
3936
|
{
|
3929
3937
|
"data-test-id": props["data-test-id"],
|
3930
3938
|
p: 4,
|
@@ -3949,7 +3957,7 @@ var Tab = (0, import_react81.forwardRef)((props, ref) => {
|
|
3949
3957
|
},
|
3950
3958
|
__css: styles.tab,
|
3951
3959
|
...tabProps,
|
3952
|
-
children: /* @__PURE__ */ (0,
|
3960
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react80.Flex, { alignItems: "center", children: [
|
3953
3961
|
(_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
|
3954
3962
|
tabProps.children,
|
3955
3963
|
(_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
|
@@ -3960,16 +3968,16 @@ var Tab = (0, import_react81.forwardRef)((props, ref) => {
|
|
3960
3968
|
var tab_default = Tab;
|
3961
3969
|
|
3962
3970
|
// src/components/tabs/index.ts
|
3963
|
-
var
|
3971
|
+
var import_react81 = require("@chakra-ui/react");
|
3964
3972
|
|
3965
3973
|
// src/components/text/index.ts
|
3966
|
-
var
|
3974
|
+
var import_react82 = require("@chakra-ui/react");
|
3967
3975
|
|
3968
3976
|
// src/components/tooltip/index.ts
|
3969
|
-
var
|
3977
|
+
var import_react83 = require("@chakra-ui/react");
|
3970
3978
|
|
3971
3979
|
// src/components/uploader/components/uploader.tsx
|
3972
|
-
var
|
3980
|
+
var import_react84 = require("@chakra-ui/react");
|
3973
3981
|
var React15 = __toESM(require("react"));
|
3974
3982
|
var import_react_dropzone = require("react-dropzone");
|
3975
3983
|
|
@@ -3983,7 +3991,7 @@ var messages = {
|
|
3983
3991
|
};
|
3984
3992
|
|
3985
3993
|
// src/components/uploader/components/uploader.tsx
|
3986
|
-
var
|
3994
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
3987
3995
|
var Uploader = ({
|
3988
3996
|
onHandleUploadFile,
|
3989
3997
|
onHandleRejections,
|
@@ -4031,9 +4039,9 @@ var Uploader = ({
|
|
4031
4039
|
React15.useEffect(() => {
|
4032
4040
|
setIsSelected(selected != null ? selected : false);
|
4033
4041
|
}, [selected]);
|
4034
|
-
return /* @__PURE__ */ (0,
|
4035
|
-
/* @__PURE__ */ (0,
|
4036
|
-
|
4042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react84.Stack, { direction: "column", children: [
|
4043
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
4044
|
+
import_react84.Flex,
|
4037
4045
|
{
|
4038
4046
|
minH: 200,
|
4039
4047
|
border: "1px dashed",
|
@@ -4044,11 +4052,11 @@ var Uploader = ({
|
|
4044
4052
|
...props,
|
4045
4053
|
...getRootProps(),
|
4046
4054
|
children: [
|
4047
|
-
/* @__PURE__ */ (0,
|
4048
|
-
isDragActive ? /* @__PURE__ */ (0,
|
4049
|
-
!multiple && isSelected && /* @__PURE__ */ (0,
|
4050
|
-
!isSelected && /* @__PURE__ */ (0,
|
4051
|
-
isSelected ? /* @__PURE__ */ (0,
|
4055
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("input", { ...getInputProps() }),
|
4056
|
+
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react84.Text, { children: messages.dragActive }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react84.Flex, { flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : "primary.500", children: [
|
4057
|
+
!multiple && isSelected && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react84.Heading, { fontWeight: 400, fontSize: "18px", lineHeight: 28, color: "black.high", mb: 2, children: selectedFirstFile == null ? void 0 : selectedFirstFile.name }),
|
4058
|
+
!isSelected && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react84.Heading, { fontWeight: 400, fontSize: "18px", lineHeight: 28, mb: 2, children: messages.uploadFile }),
|
4059
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react84.Text, { children: messages.dragReplace }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react84.Text, { children: messages.dragInActive })
|
4052
4060
|
] })
|
4053
4061
|
]
|
4054
4062
|
}
|
@@ -4065,10 +4073,10 @@ Uploader.defaultProps = {
|
|
4065
4073
|
var uploader_default = Uploader;
|
4066
4074
|
|
4067
4075
|
// src/components/index.ts
|
4068
|
-
var
|
4076
|
+
var import_react85 = require("@chakra-ui/react");
|
4069
4077
|
|
4070
4078
|
// src/config/theme/themeConfiguration.ts
|
4071
|
-
var
|
4079
|
+
var import_react91 = require("@chakra-ui/react");
|
4072
4080
|
|
4073
4081
|
// src/config/theme/components/index.ts
|
4074
4082
|
var components_exports = {};
|
@@ -4583,8 +4591,8 @@ var card_default2 = CardStyle;
|
|
4583
4591
|
|
4584
4592
|
// src/config/theme/components/checkbox.ts
|
4585
4593
|
var import_anatomy3 = require("@chakra-ui/anatomy");
|
4586
|
-
var
|
4587
|
-
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0,
|
4594
|
+
var import_react86 = require("@chakra-ui/react");
|
4595
|
+
var { definePartsStyle: definePartsStyle3, defineMultiStyleConfig: defineMultiStyleConfig3 } = (0, import_react86.createMultiStyleConfigHelpers)(import_anatomy3.checkboxAnatomy.keys);
|
4588
4596
|
var baseStyle3 = definePartsStyle3({
|
4589
4597
|
control: {
|
4590
4598
|
borderRadius: "sm",
|
@@ -4865,8 +4873,8 @@ var input_default = Input4;
|
|
4865
4873
|
|
4866
4874
|
// src/config/theme/components/loader.ts
|
4867
4875
|
var import_styled_system8 = require("@chakra-ui/styled-system");
|
4868
|
-
var
|
4869
|
-
var rotate = (0,
|
4876
|
+
var import_react87 = require("@emotion/react");
|
4877
|
+
var rotate = (0, import_react87.keyframes)({
|
4870
4878
|
"0%": {
|
4871
4879
|
transform: "rotate(0deg)"
|
4872
4880
|
},
|
@@ -4996,8 +5004,8 @@ var modal_default = Modal3;
|
|
4996
5004
|
|
4997
5005
|
// src/config/theme/components/radio.ts
|
4998
5006
|
var import_anatomy5 = require("@chakra-ui/anatomy");
|
4999
|
-
var
|
5000
|
-
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0,
|
5007
|
+
var import_react88 = require("@chakra-ui/react");
|
5008
|
+
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0, import_react88.createMultiStyleConfigHelpers)(import_anatomy5.radioAnatomy.keys);
|
5001
5009
|
var baseStyle6 = definePartsStyle5({
|
5002
5010
|
control: {
|
5003
5011
|
border: "1px solid",
|
@@ -5425,7 +5433,7 @@ var tabsTheme = defineMultiStyleConfig8({
|
|
5425
5433
|
var tabs_default = tabsTheme;
|
5426
5434
|
|
5427
5435
|
// src/config/theme/components/textarea.ts
|
5428
|
-
var
|
5436
|
+
var import_react89 = require("@chakra-ui/react");
|
5429
5437
|
var getProps = (props) => {
|
5430
5438
|
const { isError, isSuccess, isDisabled } = props;
|
5431
5439
|
let borderColor = "neutral.400";
|
@@ -5445,7 +5453,7 @@ var getProps = (props) => {
|
|
5445
5453
|
borderColor
|
5446
5454
|
};
|
5447
5455
|
};
|
5448
|
-
var outline2 = (0,
|
5456
|
+
var outline2 = (0, import_react89.defineStyle)((props) => {
|
5449
5457
|
const { focusBorderColor, borderColor } = getProps(props);
|
5450
5458
|
return {
|
5451
5459
|
background: "white.high",
|
@@ -5489,7 +5497,7 @@ var outline2 = (0, import_react90.defineStyle)((props) => {
|
|
5489
5497
|
}
|
5490
5498
|
};
|
5491
5499
|
});
|
5492
|
-
var Textarea = (0,
|
5500
|
+
var Textarea = (0, import_react89.defineStyleConfig)({
|
5493
5501
|
variants: { outline: outline2 },
|
5494
5502
|
defaultProps: {
|
5495
5503
|
variant: "outline"
|
@@ -5498,14 +5506,14 @@ var Textarea = (0, import_react90.defineStyleConfig)({
|
|
5498
5506
|
var textarea_default2 = Textarea;
|
5499
5507
|
|
5500
5508
|
// src/config/theme/components/tooltip.ts
|
5501
|
-
var
|
5502
|
-
var $arrowBg = (0,
|
5509
|
+
var import_react90 = require("@chakra-ui/react");
|
5510
|
+
var $arrowBg = (0, import_react90.cssVar)("popper-arrow-bg");
|
5503
5511
|
var baseStyle9 = {
|
5504
5512
|
bg: "neutral.700",
|
5505
5513
|
fontSize: "text.sm",
|
5506
5514
|
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
5507
5515
|
};
|
5508
|
-
var Tooltip2 = (0,
|
5516
|
+
var Tooltip2 = (0, import_react90.defineStyleConfig)({ baseStyle: baseStyle9 });
|
5509
5517
|
var tooltip_default = Tooltip2;
|
5510
5518
|
|
5511
5519
|
// src/config/theme/themeConfiguration.ts
|
@@ -5515,7 +5523,7 @@ var config = {
|
|
5515
5523
|
useSystemColorMode: false
|
5516
5524
|
};
|
5517
5525
|
var getTheme = (foundations) => {
|
5518
|
-
return (0,
|
5526
|
+
return (0, import_react91.extendTheme)({
|
5519
5527
|
...foundations,
|
5520
5528
|
components: {
|
5521
5529
|
...components_exports
|
@@ -5531,7 +5539,7 @@ var getTheme = (foundations) => {
|
|
5531
5539
|
config
|
5532
5540
|
});
|
5533
5541
|
};
|
5534
|
-
var theme5 = (0,
|
5542
|
+
var theme5 = (0, import_react91.extendTheme)({
|
5535
5543
|
components: {
|
5536
5544
|
...components_exports
|
5537
5545
|
},
|
@@ -5551,23 +5559,23 @@ var theme5 = (0, import_react92.extendTheme)({
|
|
5551
5559
|
|
5552
5560
|
// src/hooks/useFetcher.ts
|
5553
5561
|
var import_axios2 = __toESM(require("axios"));
|
5554
|
-
var
|
5562
|
+
var import_react94 = require("react");
|
5555
5563
|
|
5556
5564
|
// src/provider/components/provider.tsx
|
5557
5565
|
var import_axios = __toESM(require("axios"));
|
5558
|
-
var
|
5566
|
+
var import_react92 = require("react");
|
5559
5567
|
var import_react_toastify = require("react-toastify");
|
5560
|
-
var
|
5561
|
-
var ProviderContext = (0,
|
5568
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
5569
|
+
var ProviderContext = (0, import_react92.createContext)({
|
5562
5570
|
instance: void 0
|
5563
5571
|
});
|
5564
5572
|
var useInternalUI = () => {
|
5565
|
-
const { instance } = (0,
|
5573
|
+
const { instance } = (0, import_react92.useContext)(ProviderContext);
|
5566
5574
|
return { instance };
|
5567
5575
|
};
|
5568
5576
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
5569
|
-
const instanceRef = (0,
|
5570
|
-
(0,
|
5577
|
+
const instanceRef = (0, import_react92.useRef)(import_axios.default.create(config2));
|
5578
|
+
(0, import_react92.useEffect)(() => {
|
5571
5579
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
5572
5580
|
instanceRef.current.interceptors.request.use(interceptor);
|
5573
5581
|
});
|
@@ -5575,9 +5583,9 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
5575
5583
|
instanceRef.current.interceptors.response.use(interceptor);
|
5576
5584
|
});
|
5577
5585
|
}, [requestInterceptors, responseInterceptors]);
|
5578
|
-
const provider = (0,
|
5579
|
-
return /* @__PURE__ */ (0,
|
5580
|
-
/* @__PURE__ */ (0,
|
5586
|
+
const provider = (0, import_react92.useMemo)(() => ({ instance: instanceRef.current }), []);
|
5587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(ProviderContext.Provider, { value: provider, children: [
|
5588
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_toastify.ToastContainer, {}),
|
5581
5589
|
children
|
5582
5590
|
] });
|
5583
5591
|
};
|
@@ -5585,12 +5593,12 @@ Provider.displayName = "Provider";
|
|
5585
5593
|
var provider_default = Provider;
|
5586
5594
|
|
5587
5595
|
// src/provider/index.ts
|
5588
|
-
var
|
5596
|
+
var import_react93 = require("@chakra-ui/react");
|
5589
5597
|
|
5590
5598
|
// src/hooks/useFetcher.ts
|
5591
5599
|
function useFetcher() {
|
5592
5600
|
const { instance } = useInternalUI();
|
5593
|
-
const axiosInstance = (0,
|
5601
|
+
const axiosInstance = (0, import_react94.useMemo)(() => instance || import_axios2.default, [instance]);
|
5594
5602
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
5595
5603
|
const response = await axiosInstance.request({
|
5596
5604
|
data,
|
@@ -5610,10 +5618,10 @@ function useFetcher() {
|
|
5610
5618
|
}
|
5611
5619
|
|
5612
5620
|
// src/hooks/index.ts
|
5613
|
-
var
|
5621
|
+
var import_react95 = require("@chakra-ui/react");
|
5614
5622
|
|
5615
5623
|
// src/index.ts
|
5616
|
-
var
|
5624
|
+
var import_react96 = require("@chakra-ui/react");
|
5617
5625
|
// Annotate the CommonJS export names for ESM import in node:
|
5618
5626
|
0 && (module.exports = {
|
5619
5627
|
Accordion,
|