@ctlyst.id/internal-ui 2.1.18 → 2.1.20
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +107 -85
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +71 -49
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/components/accordion/__stories__/accordion.stories.d.ts +0 -9
- package/dist/components/accordion/components/accordion-indicator.d.ts +0 -1
- package/dist/components/accordion/components/index.d.ts +0 -2
- package/dist/components/accordion/index.d.ts +0 -1
- package/dist/components/alert/__stories__/alert.stories.d.ts +0 -11
- package/dist/components/alert/components/alert-action.d.ts +0 -6
- package/dist/components/alert/components/alert-close.d.ts +0 -6
- package/dist/components/alert/components/alert-context.d.ts +0 -33
- package/dist/components/alert/components/alert-description.d.ts +0 -3
- package/dist/components/alert/components/alert-icon.d.ts +0 -6
- package/dist/components/alert/components/alert-title.d.ts +0 -3
- package/dist/components/alert/components/alert.d.ts +0 -25
- package/dist/components/alert/components/icons.d.ts +0 -3
- package/dist/components/alert/components/index.d.ts +0 -14
- package/dist/components/alert/index.d.ts +0 -1
- package/dist/components/anchor/__stories__/anchor.stories.d.ts +0 -9
- package/dist/components/anchor/components/anchor.d.ts +0 -20
- package/dist/components/anchor/components/index.d.ts +0 -1
- package/dist/components/anchor/index.d.ts +0 -1
- package/dist/components/badge/__stories__/badge.stories.d.ts +0 -15
- package/dist/components/badge/components/badge.d.ts +0 -11
- package/dist/components/badge/components/index.d.ts +0 -1
- package/dist/components/badge/index.d.ts +0 -1
- package/dist/components/breadcrumb/__stories__/breadcrumb.stories.d.ts +0 -8
- package/dist/components/breadcrumb/components/bread-crumb.d.ts +0 -18
- package/dist/components/breadcrumb/index.d.ts +0 -2
- package/dist/components/button/__stories__/button.stories.d.ts +0 -12
- package/dist/components/button/components/button.d.ts +0 -4
- package/dist/components/button/index.d.ts +0 -3
- package/dist/components/card/__stories__/card.stories.d.ts +0 -8
- package/dist/components/card/components/card.d.ts +0 -8
- package/dist/components/card/index.d.ts +0 -2
- package/dist/components/checkbox/__stories__/checkbox.stories.d.ts +0 -13
- package/dist/components/checkbox/components/checkbox-group.d.ts +0 -18
- package/dist/components/checkbox/components/checkbox.d.ts +0 -10
- package/dist/components/checkbox/index.d.ts +0 -5
- package/dist/components/chips/__stories__/chips.stories.d.ts +0 -9
- package/dist/components/chips/components/chips.d.ts +0 -19
- package/dist/components/chips/index.d.ts +0 -2
- package/dist/components/collapse/__stories__/collapse.stories.d.ts +0 -7
- package/dist/components/counter/__stories__/counter.stories.d.ts +0 -10
- package/dist/components/counter/components/counter.d.ts +0 -15
- package/dist/components/counter/index.d.ts +0 -1
- package/dist/components/data-table/__stories__/datatable.stories.d.ts +0 -21
- package/dist/components/data-table/components/data-table.d.ts +0 -30
- package/dist/components/data-table/index.d.ts +0 -3
- package/dist/components/data-table/types/table-core.d.ts +0 -1
- package/dist/components/datepicker/__stories__/datepicker.stories.d.ts +0 -13
- package/dist/components/datepicker/components/datepicker-month/datepicker-month.d.ts +0 -9
- package/dist/components/datepicker/components/datepicker-month/index.d.ts +0 -4
- package/dist/components/datepicker/components/datepicker-month/multi-datepicker-month.d.ts +0 -9
- package/dist/components/datepicker/components/datepicker.d.ts +0 -17
- package/dist/components/datepicker/components/styles.d.ts +0 -2
- package/dist/components/datepicker/components/time-input.d.ts +0 -9
- package/dist/components/datepicker/index.d.ts +0 -3
- package/dist/components/dialog/__stories__/dialog.stories.d.ts +0 -7
- package/dist/components/dialog/components/dialog.d.ts +0 -12
- package/dist/components/dialog/index.d.ts +0 -1
- package/dist/components/empty-state/__stories__/dialog.stories.d.ts +0 -7
- package/dist/components/field/__stories__/field.stories.d.ts +0 -7
- package/dist/components/field/components/field.d.ts +0 -15
- package/dist/components/field/index.d.ts +0 -2
- package/dist/components/form/__stories__/input.stories.d.ts +0 -15
- package/dist/components/form/__stories__/textarea.stories.d.ts +0 -7
- package/dist/components/form/components/input-addon.d.ts +0 -7
- package/dist/components/form/components/input-element.d.ts +0 -2
- package/dist/components/form/components/input-field.d.ts +0 -13
- package/dist/components/form/components/textarea.d.ts +0 -8
- package/dist/components/form/index.d.ts +0 -7
- package/dist/components/form/styles/input-field.d.ts +0 -4
- package/dist/components/header/__stories__/header.stories.d.ts +0 -9
- package/dist/components/header/components/header.d.ts +0 -19
- package/dist/components/header/components/logo.d.ts +0 -10
- package/dist/components/header/components/profile.d.ts +0 -11
- package/dist/components/header/components/switch-mode.d.ts +0 -3
- package/dist/components/header/components/version.d.ts +0 -10
- package/dist/components/header/index.d.ts +0 -3
- package/dist/components/header/types.d.ts +0 -10
- package/dist/components/header/utils/formatter.d.ts +0 -2
- package/dist/components/image/__stories__/image.stories.d.ts +0 -9
- package/dist/components/image/index.d.ts +0 -1
- package/dist/components/index.d.ts +0 -34
- package/dist/components/layouting/index.d.ts +0 -1
- package/dist/components/list/index.d.ts +0 -1
- package/dist/components/loader/__stories__/loader.stories.d.ts +0 -9
- package/dist/components/loader/components/loader.d.ts +0 -10
- package/dist/components/loader/index.d.ts +0 -3
- package/dist/components/modal/__stories__/modal.stories.d.ts +0 -7
- package/dist/components/modal/components/modal-body.d.ts +0 -4
- package/dist/components/modal/components/modal-close-button.d.ts +0 -4
- package/dist/components/modal/components/modal-footer.d.ts +0 -4
- package/dist/components/modal/components/modal-header.d.ts +0 -4
- package/dist/components/modal/index.d.ts +0 -5
- package/dist/components/navigation/__stories__/navigation.stories.d.ts +0 -8
- package/dist/components/navigation/components/customer-icon.d.ts +0 -2
- package/dist/components/navigation/components/mapping-icon.d.ts +0 -2
- package/dist/components/navigation/components/navigation-bar.d.ts +0 -12
- package/dist/components/navigation/components/navigation.d.ts +0 -11
- package/dist/components/navigation/index.d.ts +0 -4
- package/dist/components/navigation/types.d.ts +0 -24
- package/dist/components/pagination/__stories__/pagination.stories.d.ts +0 -10
- package/dist/components/pagination/components/pagination-button-trigger.d.ts +0 -10
- package/dist/components/pagination/components/pagination-button.d.ts +0 -6
- package/dist/components/pagination/components/pagination-detail.d.ts +0 -10
- package/dist/components/pagination/components/pagination-filter.d.ts +0 -13
- package/dist/components/pagination/components/pagination.d.ts +0 -16
- package/dist/components/pagination/index.d.ts +0 -6
- package/dist/components/popover/index.d.ts +0 -1
- package/dist/components/radio/__stories__/radio.stories.d.ts +0 -13
- package/dist/components/radio/components/radio-group.d.ts +0 -18
- package/dist/components/radio/components/radio.d.ts +0 -17
- package/dist/components/radio/index.d.ts +0 -3
- package/dist/components/rating/__stories__/rating.stories.d.ts +0 -7
- package/dist/components/rating/components/rating.d.ts +0 -6
- package/dist/components/rating/index.d.ts +0 -2
- package/dist/components/select/__stories__/select.stories.d.ts +0 -10
- package/dist/components/select/components/select-async-creatable.d.ts +0 -5
- package/dist/components/select/components/select-async.d.ts +0 -6
- package/dist/components/select/components/select-creatable.d.ts +0 -5
- package/dist/components/select/components/select-wrapper.d.ts +0 -6
- package/dist/components/select/components/select.d.ts +0 -5
- package/dist/components/select/components/types/select.types.d.ts +0 -3
- package/dist/components/select/components/utils.d.ts +0 -26
- package/dist/components/select/index.d.ts +0 -8
- package/dist/components/switch/__stories__/switch.stories.d.ts +0 -10
- package/dist/components/switch/components/switch.d.ts +0 -18
- package/dist/components/switch/index.d.ts +0 -2
- package/dist/components/table/index.d.ts +0 -1
- package/dist/components/tabs/__stories__/tabs.stories.d.ts +0 -8
- package/dist/components/tabs/components/tab.d.ts +0 -12
- package/dist/components/tabs/index.d.ts +0 -2
- package/dist/components/text/index.d.ts +0 -1
- package/dist/components/toast/__stories__/toast.stories.d.ts +0 -12
- package/dist/components/toast/components/toast.d.ts +0 -21
- package/dist/components/toast/index.d.ts +0 -1
- package/dist/components/tooltip/__stories__/tooltip.stories.d.ts +0 -7
- package/dist/components/tooltip/index.d.ts +0 -1
- package/dist/components/uploader/__stories__/uploader.stories.d.ts +0 -9
- package/dist/components/uploader/components/uploader.d.ts +0 -12
- package/dist/components/uploader/constants.d.ts +0 -8
- package/dist/components/uploader/index.d.ts +0 -2
- package/dist/config/__stories__/foundations.stories.d.ts +0 -15
- package/dist/config/__stories__/globals.stories.d.ts +0 -10
- package/dist/config/index.d.ts +0 -1
- package/dist/config/theme/components/accordion.d.ts +0 -53
- package/dist/config/theme/components/alert.d.ts +0 -69
- package/dist/config/theme/components/badge.d.ts +0 -3
- package/dist/config/theme/components/button.d.ts +0 -3
- package/dist/config/theme/components/card.d.ts +0 -18
- package/dist/config/theme/components/checkbox.d.ts +0 -101
- package/dist/config/theme/components/chips.d.ts +0 -34
- package/dist/config/theme/components/form-label.d.ts +0 -20
- package/dist/config/theme/components/index.d.ts +0 -16
- package/dist/config/theme/components/input.d.ts +0 -101
- package/dist/config/theme/components/loader.d.ts +0 -85
- package/dist/config/theme/components/popover.d.ts +0 -3
- package/dist/config/theme/components/radio.d.ts +0 -102
- package/dist/config/theme/components/switch.d.ts +0 -75
- package/dist/config/theme/components/table.d.ts +0 -180
- package/dist/config/theme/components/tabs.d.ts +0 -30
- package/dist/config/theme/components/textarea.d.ts +0 -55
- package/dist/config/theme/foundations/index.d.ts +0 -5
- package/dist/config/theme/foundations/radius.d.ts +0 -8
- package/dist/config/theme/foundations/shadows.d.ts +0 -15
- package/dist/config/theme/foundations/sizes.d.ts +0 -66
- package/dist/config/theme/foundations/spacing.d.ts +0 -42
- package/dist/config/theme/foundations/typography.d.ts +0 -191
- package/dist/config/theme/index.d.ts +0 -1
- package/dist/config/theme/themeConfiguration.d.ts +0 -6
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/useFetcher.d.ts +0 -4
- package/dist/interfaces/common.d.ts +0 -17
- package/dist/internal-ui.cjs.development.js +0 -6119
- package/dist/internal-ui.cjs.development.js.map +0 -1
- package/dist/internal-ui.cjs.production.min.js +0 -38
- package/dist/internal-ui.cjs.production.min.js.map +0 -1
- package/dist/internal-ui.esm.js +0 -5082
- package/dist/internal-ui.esm.js.map +0 -1
- package/dist/provider/__stories__/provider.stories.d.ts +0 -13
- package/dist/provider/components/provider.d.ts +0 -7
- package/dist/provider/index.d.ts +0 -3
- package/dist/provider/types.d.ts +0 -14
package/dist/index.js
CHANGED
@@ -74,8 +74,8 @@ __export(src_exports, {
|
|
74
74
|
ButtonGroupProps: () => import_react9.ButtonGroupProps,
|
75
75
|
Card: () => card_default,
|
76
76
|
Center: () => import_react47.Center,
|
77
|
-
ChakraProvider: () =>
|
78
|
-
ChakraProviderProps: () =>
|
77
|
+
ChakraProvider: () => import_react92.ChakraProvider,
|
78
|
+
ChakraProviderProps: () => import_react92.ChakraProviderProps,
|
79
79
|
ChakraTable: () => import_react77.Table,
|
80
80
|
Checkbox: () => checkbox_default,
|
81
81
|
CheckboxGroup: () => checkbox_group_default,
|
@@ -91,9 +91,9 @@ __export(src_exports, {
|
|
91
91
|
CodeProps: () => import_react80.CodeProps,
|
92
92
|
Collapse: () => import_react83.Collapse,
|
93
93
|
CollapseProps: () => import_react83.CollapseProps,
|
94
|
-
ColorMode: () =>
|
95
|
-
ColorModeScript: () =>
|
96
|
-
ColorModeScriptProps: () =>
|
94
|
+
ColorMode: () => import_react92.ColorMode,
|
95
|
+
ColorModeScript: () => import_react92.ColorModeScript,
|
96
|
+
ColorModeScriptProps: () => import_react92.ColorModeScriptProps,
|
97
97
|
Container: () => import_react47.Container,
|
98
98
|
ContainerProps: () => import_react47.ContainerProps,
|
99
99
|
Counter: () => counter_default,
|
@@ -282,7 +282,7 @@ __export(src_exports, {
|
|
282
282
|
UseCheckboxGroupReturn: () => import_react16.UseCheckboxGroupReturn,
|
283
283
|
UseCheckboxProps: () => import_react16.UseCheckboxProps,
|
284
284
|
UseCheckboxReturn: () => import_react16.UseCheckboxReturn,
|
285
|
-
UseDisclosureProps: () =>
|
285
|
+
UseDisclosureProps: () => import_react94.UseDisclosureProps,
|
286
286
|
UseImageProps: () => import_react83.UseImageProps,
|
287
287
|
UseImageReturn: () => import_react83.UseImageReturn,
|
288
288
|
UseMediaQueryOptions: () => import_react83.UseMediaQueryOptions,
|
@@ -306,8 +306,8 @@ __export(src_exports, {
|
|
306
306
|
WrapItem: () => import_react47.WrapItem,
|
307
307
|
WrapItemProps: () => import_react47.WrapItemProps,
|
308
308
|
WrapProps: () => import_react47.WrapProps,
|
309
|
-
extendTheme: () =>
|
310
|
-
forwardRef: () =>
|
309
|
+
extendTheme: () => import_react95.extendTheme,
|
310
|
+
forwardRef: () => import_react95.forwardRef,
|
311
311
|
getTheme: () => getTheme,
|
312
312
|
theme: () => theme5,
|
313
313
|
useAccordion: () => import_react3.useAccordion,
|
@@ -316,29 +316,29 @@ __export(src_exports, {
|
|
316
316
|
useAccordionItemState: () => import_react3.useAccordionItemState,
|
317
317
|
useAccordionStyles: () => import_react3.useAccordionStyles,
|
318
318
|
useAlertStyles: () => useAlertStyles,
|
319
|
-
useBoolean: () =>
|
319
|
+
useBoolean: () => import_react94.useBoolean,
|
320
320
|
useBreakpoint: () => import_react83.useBreakpoint,
|
321
321
|
useCheckbox: () => import_react16.useCheckbox,
|
322
322
|
useCheckboxGroup: () => import_react16.useCheckboxGroup,
|
323
|
-
useClipboard: () =>
|
324
|
-
useColorMode: () =>
|
323
|
+
useClipboard: () => import_react94.useClipboard,
|
324
|
+
useColorMode: () => import_react94.useColorMode,
|
325
325
|
useColorModePreference: () => import_react83.useColorModePreference,
|
326
|
-
useColorModeValue: () =>
|
327
|
-
useConst: () =>
|
328
|
-
useControllableProp: () =>
|
329
|
-
useControllableState: () =>
|
326
|
+
useColorModeValue: () => import_react94.useColorModeValue,
|
327
|
+
useConst: () => import_react94.useConst,
|
328
|
+
useControllableProp: () => import_react94.useControllableProp,
|
329
|
+
useControllableState: () => import_react94.useControllableState,
|
330
330
|
useDataTable: () => useDataTable,
|
331
|
-
useDimensions: () =>
|
332
|
-
useDisclosure: () =>
|
331
|
+
useDimensions: () => import_react94.useDimensions,
|
332
|
+
useDisclosure: () => import_react94.useDisclosure,
|
333
333
|
useDrawerContext: () => import_react58.useDrawerContext,
|
334
334
|
useFetcher: () => useFetcher,
|
335
335
|
useImage: () => import_react83.useImage,
|
336
336
|
useInternalUI: () => useInternalUI,
|
337
|
-
useMergeRefs: () =>
|
337
|
+
useMergeRefs: () => import_react94.useMergeRefs,
|
338
338
|
useModal: () => import_react58.useModal,
|
339
339
|
useModalContext: () => import_react58.useModalContext,
|
340
340
|
useModalStyles: () => import_react58.useModalStyles,
|
341
|
-
useOutsideClick: () =>
|
341
|
+
useOutsideClick: () => import_react94.useOutsideClick,
|
342
342
|
useQuery: () => import_react83.useQuery,
|
343
343
|
useRadio: () => import_react70.useRadio,
|
344
344
|
useRadioGroup: () => import_react70.useRadioGroup,
|
@@ -355,8 +355,8 @@ __export(src_exports, {
|
|
355
355
|
useTabsDescendants: () => import_react79.useTabsDescendants,
|
356
356
|
useTabsDescendantsContext: () => import_react79.useTabsDescendantsContext,
|
357
357
|
useTabsStyles: () => import_react79.useTabsStyles,
|
358
|
-
useTheme: () =>
|
359
|
-
useToken: () =>
|
358
|
+
useTheme: () => import_react94.useTheme,
|
359
|
+
useToken: () => import_react94.useToken
|
360
360
|
});
|
361
361
|
module.exports = __toCommonJS(src_exports);
|
362
362
|
|
@@ -1202,13 +1202,12 @@ var getCommonPinningStyles = (column) => {
|
|
1202
1202
|
"&:after": {
|
1203
1203
|
content: "''",
|
1204
1204
|
position: "absolute",
|
1205
|
-
width: "
|
1206
|
-
height: "100%",
|
1205
|
+
width: "30px",
|
1207
1206
|
right: "0px",
|
1207
|
+
bottom: "-1px",
|
1208
1208
|
top: 0,
|
1209
|
-
|
1210
|
-
boxShadow: "
|
1211
|
-
clipPath: "inset(0px -38px 0px 0px)"
|
1209
|
+
transform: "translateX(100%)",
|
1210
|
+
boxShadow: "inset 14px 0px 20px -10px #00000010"
|
1212
1211
|
}
|
1213
1212
|
} : {},
|
1214
1213
|
...isFirstRightPinnedColumn ? {
|
@@ -1216,13 +1215,12 @@ var getCommonPinningStyles = (column) => {
|
|
1216
1215
|
"&:after": {
|
1217
1216
|
content: "''",
|
1218
1217
|
position: "absolute",
|
1219
|
-
width: "
|
1220
|
-
height: "100%",
|
1218
|
+
width: "30px",
|
1221
1219
|
left: "0%",
|
1222
1220
|
top: 0,
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1221
|
+
bottom: "-1px",
|
1222
|
+
transform: "translateX(-100%)",
|
1223
|
+
boxShadow: "inset -14px 0px 20px -10px #00000010"
|
1226
1224
|
}
|
1227
1225
|
} : {}
|
1228
1226
|
};
|
@@ -4025,7 +4023,7 @@ var uploader_default = Uploader;
|
|
4025
4023
|
var import_react83 = require("@chakra-ui/react");
|
4026
4024
|
|
4027
4025
|
// src/config/theme/themeConfiguration.ts
|
4028
|
-
var
|
4026
|
+
var import_react90 = require("@chakra-ui/react");
|
4029
4027
|
|
4030
4028
|
// src/config/theme/components/index.ts
|
4031
4029
|
var components_exports = {};
|
@@ -4041,6 +4039,7 @@ __export(components_exports, {
|
|
4041
4039
|
Input: () => input_default,
|
4042
4040
|
LoaderStyle: () => loader_default2,
|
4043
4041
|
Modal: () => modal_default,
|
4042
|
+
Popover: () => popover_default,
|
4044
4043
|
Radio: () => radio_default,
|
4045
4044
|
Switch: () => switch_default2,
|
4046
4045
|
Table: () => table_default,
|
@@ -4981,11 +4980,23 @@ var Modal3 = (0, import_styled_system9.defineStyleConfig)({
|
|
4981
4980
|
});
|
4982
4981
|
var modal_default = Modal3;
|
4983
4982
|
|
4984
|
-
// src/config/theme/components/
|
4983
|
+
// src/config/theme/components/popover.ts
|
4985
4984
|
var import_anatomy5 = require("@chakra-ui/anatomy");
|
4986
4985
|
var import_react86 = require("@chakra-ui/react");
|
4987
|
-
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0, import_react86.createMultiStyleConfigHelpers)(import_anatomy5.
|
4986
|
+
var { definePartsStyle: definePartsStyle5, defineMultiStyleConfig: defineMultiStyleConfig5 } = (0, import_react86.createMultiStyleConfigHelpers)(import_anatomy5.popoverAnatomy.keys);
|
4988
4987
|
var baseStyle6 = definePartsStyle5({
|
4988
|
+
content: {
|
4989
|
+
bg: "white"
|
4990
|
+
}
|
4991
|
+
});
|
4992
|
+
var popoverTheme = defineMultiStyleConfig5({ baseStyle: baseStyle6 });
|
4993
|
+
var popover_default = popoverTheme;
|
4994
|
+
|
4995
|
+
// src/config/theme/components/radio.ts
|
4996
|
+
var import_anatomy6 = require("@chakra-ui/anatomy");
|
4997
|
+
var import_react87 = require("@chakra-ui/react");
|
4998
|
+
var { definePartsStyle: definePartsStyle6, defineMultiStyleConfig: defineMultiStyleConfig6 } = (0, import_react87.createMultiStyleConfigHelpers)(import_anatomy6.radioAnatomy.keys);
|
4999
|
+
var baseStyle7 = definePartsStyle6({
|
4989
5000
|
control: {
|
4990
5001
|
border: "1px solid",
|
4991
5002
|
width: "16px",
|
@@ -5001,7 +5012,7 @@ var baseStyle6 = definePartsStyle5({
|
|
5001
5012
|
}
|
5002
5013
|
}
|
5003
5014
|
});
|
5004
|
-
var errors2 =
|
5015
|
+
var errors2 = definePartsStyle6({
|
5005
5016
|
control: {
|
5006
5017
|
borderColor: "danger.500",
|
5007
5018
|
_checked: {
|
@@ -5036,7 +5047,7 @@ var errors2 = definePartsStyle5({
|
|
5036
5047
|
fontSize: "12px"
|
5037
5048
|
}
|
5038
5049
|
});
|
5039
|
-
var unstyled3 =
|
5050
|
+
var unstyled3 = definePartsStyle6({
|
5040
5051
|
control: {
|
5041
5052
|
borderColor: "neutral.600",
|
5042
5053
|
_checked: {
|
@@ -5075,8 +5086,8 @@ var variants4 = {
|
|
5075
5086
|
errors: errors2,
|
5076
5087
|
unstyled: unstyled3
|
5077
5088
|
};
|
5078
|
-
var Radio2 =
|
5079
|
-
baseStyle:
|
5089
|
+
var Radio2 = defineMultiStyleConfig6({
|
5090
|
+
baseStyle: baseStyle7,
|
5080
5091
|
variants: variants4,
|
5081
5092
|
defaultProps: {
|
5082
5093
|
variant: "unstyled"
|
@@ -5085,10 +5096,10 @@ var Radio2 = defineMultiStyleConfig5({
|
|
5085
5096
|
var radio_default = Radio2;
|
5086
5097
|
|
5087
5098
|
// src/config/theme/components/switch.ts
|
5088
|
-
var
|
5099
|
+
var import_anatomy7 = require("@chakra-ui/anatomy");
|
5089
5100
|
var import_styled_system10 = require("@chakra-ui/styled-system");
|
5090
5101
|
var import_theme_tools2 = require("@chakra-ui/theme-tools");
|
5091
|
-
var { defineMultiStyleConfig:
|
5102
|
+
var { defineMultiStyleConfig: defineMultiStyleConfig7, definePartsStyle: definePartsStyle7 } = (0, import_styled_system10.createMultiStyleConfigHelpers)(import_anatomy7.switchAnatomy.keys);
|
5092
5103
|
var $width = (0, import_theme_tools2.cssVar)("switch-track-width");
|
5093
5104
|
var $height = (0, import_theme_tools2.cssVar)("switch-track-height");
|
5094
5105
|
var $diff = (0, import_theme_tools2.cssVar)("switch-track-diff");
|
@@ -5105,7 +5116,7 @@ var baseStyleThumb = (0, import_styled_system10.defineStyle)({
|
|
5105
5116
|
transform: `translateX(${$translateX.reference})`
|
5106
5117
|
}
|
5107
5118
|
});
|
5108
|
-
var
|
5119
|
+
var baseStyle8 = definePartsStyle7(() => ({
|
5109
5120
|
container: {
|
5110
5121
|
[$diff.variable]: diffValue,
|
5111
5122
|
[$translateX.variable]: $diff.reference,
|
@@ -5130,7 +5141,7 @@ var baseStyle7 = definePartsStyle6(() => ({
|
|
5130
5141
|
thumb: baseStyleThumb
|
5131
5142
|
}));
|
5132
5143
|
var sizes3 = {
|
5133
|
-
sm:
|
5144
|
+
sm: definePartsStyle7({
|
5134
5145
|
container: {
|
5135
5146
|
[$width.variable]: "1.875rem",
|
5136
5147
|
[$height.variable]: "0.75rem"
|
@@ -5140,7 +5151,7 @@ var sizes3 = {
|
|
5140
5151
|
[$height.variable]: "0.75rem"
|
5141
5152
|
}
|
5142
5153
|
}),
|
5143
|
-
md:
|
5154
|
+
md: definePartsStyle7({
|
5144
5155
|
container: {
|
5145
5156
|
[$width.variable]: "2.375rem",
|
5146
5157
|
[$height.variable]: "1rem"
|
@@ -5150,7 +5161,7 @@ var sizes3 = {
|
|
5150
5161
|
[$height.variable]: "1rem"
|
5151
5162
|
}
|
5152
5163
|
}),
|
5153
|
-
lg:
|
5164
|
+
lg: definePartsStyle7({
|
5154
5165
|
container: {
|
5155
5166
|
[$width.variable]: "3.25rem",
|
5156
5167
|
[$height.variable]: "1.375rem"
|
@@ -5161,8 +5172,8 @@ var sizes3 = {
|
|
5161
5172
|
}
|
5162
5173
|
})
|
5163
5174
|
};
|
5164
|
-
var Switch3 =
|
5165
|
-
baseStyle:
|
5175
|
+
var Switch3 = defineMultiStyleConfig7({
|
5176
|
+
baseStyle: baseStyle8,
|
5166
5177
|
sizes: sizes3,
|
5167
5178
|
defaultProps: {
|
5168
5179
|
size: "md"
|
@@ -5171,14 +5182,15 @@ var Switch3 = defineMultiStyleConfig6({
|
|
5171
5182
|
var switch_default2 = Switch3;
|
5172
5183
|
|
5173
5184
|
// src/config/theme/components/table.ts
|
5174
|
-
var
|
5185
|
+
var import_anatomy8 = require("@chakra-ui/anatomy");
|
5175
5186
|
var import_styled_system11 = require("@chakra-ui/styled-system");
|
5176
5187
|
var import_theme_tools3 = require("@chakra-ui/theme-tools");
|
5177
|
-
var { defineMultiStyleConfig:
|
5178
|
-
var
|
5188
|
+
var { defineMultiStyleConfig: defineMultiStyleConfig8, definePartsStyle: definePartsStyle8 } = (0, import_styled_system11.createMultiStyleConfigHelpers)(import_anatomy8.tableAnatomy.keys);
|
5189
|
+
var baseStyle9 = definePartsStyle8({
|
5179
5190
|
table: {
|
5180
5191
|
fontVariantNumeric: "lining-nums tabular-nums",
|
5181
|
-
borderCollapse: "
|
5192
|
+
borderCollapse: "separate",
|
5193
|
+
borderSpacing: 0,
|
5182
5194
|
width: "full",
|
5183
5195
|
tableLayout: "fixed"
|
5184
5196
|
},
|
@@ -5204,15 +5216,25 @@ var baseStyle8 = definePartsStyle7({
|
|
5204
5216
|
tr: {
|
5205
5217
|
cursor: "pointer",
|
5206
5218
|
_hover: {
|
5207
|
-
|
5219
|
+
td: {
|
5220
|
+
backgroundColor: "neutral.200",
|
5221
|
+
"&>div": {
|
5222
|
+
backgroundColor: "neutral.200"
|
5223
|
+
}
|
5224
|
+
}
|
5208
5225
|
},
|
5209
5226
|
'&[data-active="true"]': {
|
5210
|
-
|
5227
|
+
td: {
|
5228
|
+
backgroundColor: "neutral.100",
|
5229
|
+
"&>div": {
|
5230
|
+
backgroundColor: "neutral.200"
|
5231
|
+
}
|
5232
|
+
}
|
5211
5233
|
}
|
5212
5234
|
}
|
5213
5235
|
},
|
5214
5236
|
td: {
|
5215
|
-
backgroundColor:
|
5237
|
+
// backgroundColor: 'neutral.50',
|
5216
5238
|
textAlign: "start",
|
5217
5239
|
height: "56px",
|
5218
5240
|
"&:first-of-type": {
|
@@ -5237,7 +5259,7 @@ var numericStyles = (0, import_styled_system11.defineStyle)({
|
|
5237
5259
|
textAlign: "end"
|
5238
5260
|
}
|
5239
5261
|
});
|
5240
|
-
var variantSimple =
|
5262
|
+
var variantSimple = definePartsStyle8((props) => {
|
5241
5263
|
const { colorScheme: c } = props;
|
5242
5264
|
return {
|
5243
5265
|
th: {
|
@@ -5263,7 +5285,7 @@ var variantSimple = definePartsStyle7((props) => {
|
|
5263
5285
|
}
|
5264
5286
|
};
|
5265
5287
|
});
|
5266
|
-
var variantStripe =
|
5288
|
+
var variantStripe = definePartsStyle8((props) => {
|
5267
5289
|
const { colorScheme: c } = props;
|
5268
5290
|
return {
|
5269
5291
|
th: {
|
@@ -5308,7 +5330,7 @@ var variants5 = {
|
|
5308
5330
|
unstyled: (0, import_styled_system11.defineStyle)({})
|
5309
5331
|
};
|
5310
5332
|
var sizes4 = {
|
5311
|
-
sm:
|
5333
|
+
sm: definePartsStyle8({
|
5312
5334
|
th: {
|
5313
5335
|
px: "2",
|
5314
5336
|
py: "4",
|
@@ -5327,7 +5349,7 @@ var sizes4 = {
|
|
5327
5349
|
fontSize: "xs"
|
5328
5350
|
}
|
5329
5351
|
}),
|
5330
|
-
md:
|
5352
|
+
md: definePartsStyle8({
|
5331
5353
|
th: {
|
5332
5354
|
px: "2",
|
5333
5355
|
py: "4",
|
@@ -5345,7 +5367,7 @@ var sizes4 = {
|
|
5345
5367
|
fontSize: "sm"
|
5346
5368
|
}
|
5347
5369
|
}),
|
5348
|
-
lg:
|
5370
|
+
lg: definePartsStyle8({
|
5349
5371
|
th: {
|
5350
5372
|
px: "2",
|
5351
5373
|
py: "4",
|
@@ -5364,8 +5386,8 @@ var sizes4 = {
|
|
5364
5386
|
}
|
5365
5387
|
})
|
5366
5388
|
};
|
5367
|
-
var tableTheme =
|
5368
|
-
baseStyle:
|
5389
|
+
var tableTheme = defineMultiStyleConfig8({
|
5390
|
+
baseStyle: baseStyle9,
|
5369
5391
|
variants: variants5,
|
5370
5392
|
sizes: sizes4,
|
5371
5393
|
defaultProps: {
|
@@ -5377,10 +5399,10 @@ var tableTheme = defineMultiStyleConfig7({
|
|
5377
5399
|
var table_default = tableTheme;
|
5378
5400
|
|
5379
5401
|
// src/config/theme/components/tabs.ts
|
5380
|
-
var
|
5402
|
+
var import_anatomy9 = require("@chakra-ui/anatomy");
|
5381
5403
|
var import_styled_system12 = require("@chakra-ui/styled-system");
|
5382
|
-
var { defineMultiStyleConfig:
|
5383
|
-
var variantLine =
|
5404
|
+
var { defineMultiStyleConfig: defineMultiStyleConfig9, definePartsStyle: definePartsStyle9 } = (0, import_styled_system12.createMultiStyleConfigHelpers)(import_anatomy9.tabsAnatomy.keys);
|
5405
|
+
var variantLine = definePartsStyle9((props) => {
|
5384
5406
|
const { orientation } = props;
|
5385
5407
|
const isVertical = orientation === "vertical";
|
5386
5408
|
const borderProp = isVertical ? "borderStart" : "borderBottom";
|
@@ -5397,12 +5419,12 @@ var variantLine = definePartsStyle8((props) => {
|
|
5397
5419
|
}
|
5398
5420
|
};
|
5399
5421
|
});
|
5400
|
-
var variantUnstyled =
|
5422
|
+
var variantUnstyled = definePartsStyle9({});
|
5401
5423
|
var variants6 = {
|
5402
5424
|
line: variantLine,
|
5403
5425
|
unstyled: variantUnstyled
|
5404
5426
|
};
|
5405
|
-
var tabsTheme =
|
5427
|
+
var tabsTheme = defineMultiStyleConfig9({
|
5406
5428
|
variants: variants6,
|
5407
5429
|
defaultProps: {
|
5408
5430
|
size: "md",
|
@@ -5412,7 +5434,7 @@ var tabsTheme = defineMultiStyleConfig8({
|
|
5412
5434
|
var tabs_default = tabsTheme;
|
5413
5435
|
|
5414
5436
|
// src/config/theme/components/textarea.ts
|
5415
|
-
var
|
5437
|
+
var import_react88 = require("@chakra-ui/react");
|
5416
5438
|
var getProps = (props) => {
|
5417
5439
|
const { isError, isSuccess, isDisabled } = props;
|
5418
5440
|
let borderColor = "neutral.400";
|
@@ -5432,7 +5454,7 @@ var getProps = (props) => {
|
|
5432
5454
|
borderColor
|
5433
5455
|
};
|
5434
5456
|
};
|
5435
|
-
var outline2 = (0,
|
5457
|
+
var outline2 = (0, import_react88.defineStyle)((props) => {
|
5436
5458
|
const { focusBorderColor, borderColor } = getProps(props);
|
5437
5459
|
return {
|
5438
5460
|
background: "white.high",
|
@@ -5476,7 +5498,7 @@ var outline2 = (0, import_react87.defineStyle)((props) => {
|
|
5476
5498
|
}
|
5477
5499
|
};
|
5478
5500
|
});
|
5479
|
-
var Textarea = (0,
|
5501
|
+
var Textarea = (0, import_react88.defineStyleConfig)({
|
5480
5502
|
variants: { outline: outline2 },
|
5481
5503
|
defaultProps: {
|
5482
5504
|
variant: "outline"
|
@@ -5485,14 +5507,14 @@ var Textarea = (0, import_react87.defineStyleConfig)({
|
|
5485
5507
|
var textarea_default2 = Textarea;
|
5486
5508
|
|
5487
5509
|
// src/config/theme/components/tooltip.ts
|
5488
|
-
var
|
5489
|
-
var $arrowBg = (0,
|
5490
|
-
var
|
5510
|
+
var import_react89 = require("@chakra-ui/react");
|
5511
|
+
var $arrowBg = (0, import_react89.cssVar)("popper-arrow-bg");
|
5512
|
+
var baseStyle10 = {
|
5491
5513
|
bg: "neutral.700",
|
5492
5514
|
fontSize: "text.sm",
|
5493
5515
|
[$arrowBg.variable]: "var(--chakra-colors-neutral-700)"
|
5494
5516
|
};
|
5495
|
-
var Tooltip2 = (0,
|
5517
|
+
var Tooltip2 = (0, import_react89.defineStyleConfig)({ baseStyle: baseStyle10 });
|
5496
5518
|
var tooltip_default = Tooltip2;
|
5497
5519
|
|
5498
5520
|
// src/config/theme/themeConfiguration.ts
|
@@ -5502,7 +5524,7 @@ var config = {
|
|
5502
5524
|
useSystemColorMode: false
|
5503
5525
|
};
|
5504
5526
|
var getTheme = (foundations) => {
|
5505
|
-
return (0,
|
5527
|
+
return (0, import_react90.extendTheme)({
|
5506
5528
|
...foundations,
|
5507
5529
|
components: {
|
5508
5530
|
...components_exports
|
@@ -5518,7 +5540,7 @@ var getTheme = (foundations) => {
|
|
5518
5540
|
config
|
5519
5541
|
});
|
5520
5542
|
};
|
5521
|
-
var theme5 = (0,
|
5543
|
+
var theme5 = (0, import_react90.extendTheme)({
|
5522
5544
|
components: {
|
5523
5545
|
...components_exports
|
5524
5546
|
},
|
@@ -5538,23 +5560,23 @@ var theme5 = (0, import_react89.extendTheme)({
|
|
5538
5560
|
|
5539
5561
|
// src/hooks/useFetcher.ts
|
5540
5562
|
var import_axios2 = __toESM(require("axios"));
|
5541
|
-
var
|
5563
|
+
var import_react93 = require("react");
|
5542
5564
|
|
5543
5565
|
// src/provider/components/provider.tsx
|
5544
5566
|
var import_axios = __toESM(require("axios"));
|
5545
|
-
var
|
5567
|
+
var import_react91 = require("react");
|
5546
5568
|
var import_react_toastify = require("react-toastify");
|
5547
5569
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
5548
|
-
var ProviderContext = (0,
|
5570
|
+
var ProviderContext = (0, import_react91.createContext)({
|
5549
5571
|
instance: void 0
|
5550
5572
|
});
|
5551
5573
|
var useInternalUI = () => {
|
5552
|
-
const { instance } = (0,
|
5574
|
+
const { instance } = (0, import_react91.useContext)(ProviderContext);
|
5553
5575
|
return { instance };
|
5554
5576
|
};
|
5555
5577
|
var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
|
5556
|
-
const instanceRef = (0,
|
5557
|
-
(0,
|
5578
|
+
const instanceRef = (0, import_react91.useRef)(import_axios.default.create(config2));
|
5579
|
+
(0, import_react91.useEffect)(() => {
|
5558
5580
|
requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
|
5559
5581
|
instanceRef.current.interceptors.request.use(interceptor);
|
5560
5582
|
});
|
@@ -5562,7 +5584,7 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
|
|
5562
5584
|
instanceRef.current.interceptors.response.use(interceptor);
|
5563
5585
|
});
|
5564
5586
|
}, [requestInterceptors, responseInterceptors]);
|
5565
|
-
const provider = (0,
|
5587
|
+
const provider = (0, import_react91.useMemo)(() => ({ instance: instanceRef.current }), []);
|
5566
5588
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(ProviderContext.Provider, { value: provider, children: [
|
5567
5589
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react_toastify.ToastContainer, {}),
|
5568
5590
|
children
|
@@ -5572,12 +5594,12 @@ Provider.displayName = "Provider";
|
|
5572
5594
|
var provider_default = Provider;
|
5573
5595
|
|
5574
5596
|
// src/provider/index.ts
|
5575
|
-
var
|
5597
|
+
var import_react92 = require("@chakra-ui/react");
|
5576
5598
|
|
5577
5599
|
// src/hooks/useFetcher.ts
|
5578
5600
|
function useFetcher() {
|
5579
5601
|
const { instance } = useInternalUI();
|
5580
|
-
const axiosInstance = (0,
|
5602
|
+
const axiosInstance = (0, import_react93.useMemo)(() => instance || import_axios2.default, [instance]);
|
5581
5603
|
const fetcher = async ({ url, data, method, headers, ...config2 }) => {
|
5582
5604
|
const response = await axiosInstance.request({
|
5583
5605
|
data,
|
@@ -5597,10 +5619,10 @@ function useFetcher() {
|
|
5597
5619
|
}
|
5598
5620
|
|
5599
5621
|
// src/hooks/index.ts
|
5600
|
-
var
|
5622
|
+
var import_react94 = require("@chakra-ui/react");
|
5601
5623
|
|
5602
5624
|
// src/index.ts
|
5603
|
-
var
|
5625
|
+
var import_react95 = require("@chakra-ui/react");
|
5604
5626
|
// Annotate the CommonJS export names for ESM import in node:
|
5605
5627
|
0 && (module.exports = {
|
5606
5628
|
Accordion,
|