@ctlyst.id/internal-ui 1.0.2-canary.5 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/modal/components/modal-body.d.ts +4 -0
- package/dist/components/modal/index.d.ts +2 -1
- package/dist/internal-ui.cjs.development.js +15 -10
- package/dist/internal-ui.cjs.development.js.map +1 -1
- package/dist/internal-ui.cjs.production.min.js +3 -3
- package/dist/internal-ui.cjs.production.min.js.map +1 -1
- package/dist/internal-ui.esm.js +17 -7
- package/dist/internal-ui.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/internal-ui.esm.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { useToken, Box, Text, useColorModeValue, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Flex, Spinner, Table, Thead, Tr, Th, Tbody, Td, InputGroup, Input as Input$1, InputRightAddon, FormControl, FormLabel as FormLabel$1, InputRightElement, FormHelperText, FormErrorMessage, InputLeftAddon, InputLeftElement, Textarea as Textarea$1, Image, useDisclosure, Popover as Popover$1, HStack, VStack, PopoverTrigger, Avatar, PopoverContent, PopoverArrow, PopoverBody, useColorMode as useColorMode$1, Badge, ModalCloseButton as ModalCloseButton$1, ModalFooter as ModalFooter$1, ModalHeader as ModalHeader$1, Icon, Portal, Link, forwardRef as forwardRef$1, Button as Button$1, VisuallyHidden, Select as Select$1, theme as theme$1, useTab, useMultiStyleConfig, TabList as TabList$1, TabPanel as TabPanel$1, Stack, Heading, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, extendTheme } from '@chakra-ui/react';
|
2
|
-
export { AlertDialog, ModalBody as AlertDialogBody, ModalCloseButton as AlertDialogCloseButton, AlertDialogContent, ModalFooter as AlertDialogFooter, ModalHeader as AlertDialogHeader, ModalOverlay as AlertDialogOverlay, Drawer, ModalBody as DrawerBody, ModalCloseButton as DrawerCloseButton, DrawerContent, ModalFooter as DrawerFooter, ModalHeader as DrawerHeader, ModalOverlay as DrawerOverlay, Modal,
|
1
|
+
import { useToken, Box, Text, useColorModeValue, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Flex, Spinner, Table, Thead, Tr, Th, Tbody, Td, InputGroup, Input as Input$1, InputRightAddon, FormControl, FormLabel as FormLabel$1, InputRightElement, FormHelperText, FormErrorMessage, InputLeftAddon, InputLeftElement, Textarea as Textarea$1, Image, useDisclosure, Popover as Popover$1, HStack, VStack, PopoverTrigger, Avatar, PopoverContent, PopoverArrow, PopoverBody, useColorMode as useColorMode$1, Badge, ModalBody as ModalBody$1, ModalCloseButton as ModalCloseButton$1, ModalFooter as ModalFooter$1, ModalHeader as ModalHeader$1, Icon, Portal, Link, forwardRef as forwardRef$1, Button as Button$1, VisuallyHidden, Select as Select$1, theme as theme$1, useTab, useMultiStyleConfig, TabList as TabList$1, TabPanel as TabPanel$1, Stack, Heading, createMultiStyleConfigHelpers as createMultiStyleConfigHelpers$1, extendTheme } from '@chakra-ui/react';
|
2
|
+
export { AlertDialog, ModalBody as AlertDialogBody, ModalCloseButton as AlertDialogCloseButton, AlertDialogContent, ModalFooter as AlertDialogFooter, ModalHeader as AlertDialogHeader, ModalOverlay as AlertDialogOverlay, Drawer, ModalBody as DrawerBody, ModalCloseButton as DrawerCloseButton, DrawerContent, ModalFooter as DrawerFooter, ModalHeader as DrawerHeader, ModalOverlay as DrawerOverlay, Modal, ModalContent, ModalContextProvider, ModalFocusScope, ModalOverlay, TabIndicator, TabPanels, Tabs, TabsDescendantsProvider, TabsProvider, useDrawerContext, useModal, useModalContext, useModalStyles, useTab, useTabIndicator, useTabList, useTabPanel, useTabPanels, useTabs, useTabsContext, useTabsDescendant, useTabsDescendants, useTabsDescendantsContext, useTabsStyles } from '@chakra-ui/react';
|
3
3
|
import React__default, { createElement, useRef, useEffect, useState, useMemo, Fragment, forwardRef, useCallback, createContext, useContext } from 'react';
|
4
4
|
import { FiChevronsRight, FiHome, FiCalendar, FiX, FiPower, FiMoon, FiSun, FiChevronDown } from 'react-icons/fi';
|
5
5
|
import { ChevronUpIcon, ChevronDownIcon, UpDownIcon, ArrowLeftIcon, ChevronLeftIcon, ChevronRightIcon, ArrowRightIcon } from '@chakra-ui/icons';
|
@@ -225,9 +225,7 @@ const DataTable = ({
|
|
225
225
|
textTransform: "capitalize",
|
226
226
|
userSelect: "none",
|
227
227
|
align: "center",
|
228
|
-
justifyContent: "space-between"
|
229
|
-
onClick: header.column.getToggleSortingHandler(),
|
230
|
-
cursor: header.column.getCanSort() ? 'pointer' : 'default'
|
228
|
+
justifyContent: "space-between"
|
231
229
|
}, /*#__PURE__*/createElement(Text, {
|
232
230
|
fontSize: "text.sm",
|
233
231
|
fontWeight: 400,
|
@@ -236,7 +234,9 @@ const DataTable = ({
|
|
236
234
|
}, flexRender(header.column.columnDef.header, header.getContext())), /*#__PURE__*/createElement(Box, {
|
237
235
|
as: "span",
|
238
236
|
pl: "2",
|
239
|
-
|
237
|
+
cursor: header.column.getCanSort() ? 'pointer' : 'default',
|
238
|
+
"data-test-id": `CT_Container_SortingIcon_${header.id}`,
|
239
|
+
onClick: header.column.getToggleSortingHandler()
|
240
240
|
}, (_ref = header.column.getCanSort() && {
|
241
241
|
asc: /*#__PURE__*/createElement(ChevronUpIcon, null),
|
242
242
|
desc: /*#__PURE__*/createElement(ChevronDownIcon, null)
|
@@ -1465,6 +1465,16 @@ Header.defaultProps = {
|
|
1465
1465
|
onOpenModalRelease: undefined
|
1466
1466
|
};
|
1467
1467
|
|
1468
|
+
const ModalBody = /*#__PURE__*/React__default.forwardRef(({
|
1469
|
+
children,
|
1470
|
+
...rest
|
1471
|
+
}, ref) => {
|
1472
|
+
return /*#__PURE__*/React__default.createElement(ModalBody$1, Object.assign({
|
1473
|
+
ref: ref,
|
1474
|
+
background: useColorModeValue('white', 'mirage.900')
|
1475
|
+
}, rest), children);
|
1476
|
+
});
|
1477
|
+
|
1468
1478
|
const ModalCloseButton = /*#__PURE__*/forwardRef((props, ref) => {
|
1469
1479
|
return /*#__PURE__*/React__default.createElement(ModalCloseButton$1, Object.assign({
|
1470
1480
|
ref: ref,
|
@@ -3005,5 +3015,5 @@ const Provider = ({
|
|
3005
3015
|
};
|
3006
3016
|
Provider.displayName = 'Provider';
|
3007
3017
|
|
3008
|
-
export { BreadCrumb, DataTable, Datepicker, Field, Header, InputField, Navigation as MainMenu, ModalCloseButton, ModalFooter, ModalHeader, Pagination, PaginationDetail, PaginationFilter, Provider, ProviderContext, Select, SelectAsync, SelectAsyncCreatable, SelectCreatable, Tab, TabList, TabPanel, TextareaField, Uploader, theme, useInternalUI };
|
3018
|
+
export { BreadCrumb, DataTable, Datepicker, Field, Header, InputField, Navigation as MainMenu, ModalBody, ModalCloseButton, ModalFooter, ModalHeader, Pagination, PaginationDetail, PaginationFilter, Provider, ProviderContext, Select, SelectAsync, SelectAsyncCreatable, SelectCreatable, Tab, TabList, TabPanel, TextareaField, Uploader, theme, useInternalUI };
|
3009
3019
|
//# sourceMappingURL=internal-ui.esm.js.map
|