@ctlyst.id/internal-ui 1.0.2-canary.5 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/datepicker/components/datepicker.stories.d.ts +2 -0
- 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 +20 -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 +22 -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)
|
@@ -442,6 +442,11 @@ const Styles = () => {
|
|
442
442
|
display: inline-block;
|
443
443
|
margin: 0 2px;
|
444
444
|
}
|
445
|
+
.react-datepicker__header__dropdown.react-datepicker__header__dropdown--select {
|
446
|
+
font-weight: 600;
|
447
|
+
line-height: 22px;
|
448
|
+
color: #111111;
|
449
|
+
}
|
445
450
|
|
446
451
|
.react-datepicker__current-month,
|
447
452
|
.react-datepicker-time__header,
|
@@ -1465,6 +1470,16 @@ Header.defaultProps = {
|
|
1465
1470
|
onOpenModalRelease: undefined
|
1466
1471
|
};
|
1467
1472
|
|
1473
|
+
const ModalBody = /*#__PURE__*/React__default.forwardRef(({
|
1474
|
+
children,
|
1475
|
+
...rest
|
1476
|
+
}, ref) => {
|
1477
|
+
return /*#__PURE__*/React__default.createElement(ModalBody$1, Object.assign({
|
1478
|
+
ref: ref,
|
1479
|
+
background: useColorModeValue('white', 'mirage.900')
|
1480
|
+
}, rest), children);
|
1481
|
+
});
|
1482
|
+
|
1468
1483
|
const ModalCloseButton = /*#__PURE__*/forwardRef((props, ref) => {
|
1469
1484
|
return /*#__PURE__*/React__default.createElement(ModalCloseButton$1, Object.assign({
|
1470
1485
|
ref: ref,
|
@@ -3005,5 +3020,5 @@ const Provider = ({
|
|
3005
3020
|
};
|
3006
3021
|
Provider.displayName = 'Provider';
|
3007
3022
|
|
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 };
|
3023
|
+
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
3024
|
//# sourceMappingURL=internal-ui.esm.js.map
|