@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.
@@ -0,0 +1,4 @@
1
+ import type { ModalBodyProps } from '@chakra-ui/react';
2
+ import React from 'react';
3
+ declare const ModalBody: React.ForwardRefExoticComponent<ModalBodyProps & React.RefAttributes<HTMLDivElement>>;
4
+ export default ModalBody;
@@ -1,4 +1,5 @@
1
+ export { default as ModalBody } from './components/modal-body';
1
2
  export { default as ModalCloseButton } from './components/modal-close-button';
2
3
  export { default as ModalFooter } from './components/modal-footer';
3
4
  export { default as ModalHeader } from './components/modal-header';
4
- export { AlertDialog, ModalBody as AlertDialogBody, ModalCloseButton as AlertDialogCloseButton, AlertDialogContent, ModalFooter as AlertDialogFooter, ModalHeader as AlertDialogHeader, ModalOverlay as AlertDialogOverlay, AlertDialogProps, Drawer, ModalBody as DrawerBody, ModalCloseButton as DrawerCloseButton, DrawerContent, DrawerContentProps, ModalFooter as DrawerFooter, ModalHeader as DrawerHeader, ModalOverlay as DrawerOverlay, DrawerProps, Modal, ModalBody, ModalBodyProps, ModalContent, ModalContentProps, ModalContextProvider, ModalFocusScope, ModalFooterProps, ModalHeaderProps, ModalOverlay, ModalOverlayProps, ModalProps, useDrawerContext, useModal, useModalContext, UseModalProps, UseModalReturn, useModalStyles, } from '@chakra-ui/react';
5
+ export { AlertDialog, ModalBody as AlertDialogBody, ModalCloseButton as AlertDialogCloseButton, AlertDialogContent, ModalFooter as AlertDialogFooter, ModalHeader as AlertDialogHeader, ModalOverlay as AlertDialogOverlay, AlertDialogProps, Drawer, ModalBody as DrawerBody, ModalCloseButton as DrawerCloseButton, DrawerContent, DrawerContentProps, ModalFooter as DrawerFooter, ModalHeader as DrawerHeader, ModalOverlay as DrawerOverlay, DrawerProps, Modal, ModalBodyProps, ModalContent, ModalContentProps, ModalContextProvider, ModalFocusScope, ModalFooterProps, ModalHeaderProps, ModalOverlay, ModalOverlayProps, ModalProps, useDrawerContext, useModal, useModalContext, UseModalProps, UseModalReturn, useModalStyles, } from '@chakra-ui/react';
@@ -231,9 +231,7 @@ const DataTable = ({
231
231
  textTransform: "capitalize",
232
232
  userSelect: "none",
233
233
  align: "center",
234
- justifyContent: "space-between",
235
- onClick: header.column.getToggleSortingHandler(),
236
- cursor: header.column.getCanSort() ? 'pointer' : 'default'
234
+ justifyContent: "space-between"
237
235
  }, /*#__PURE__*/React.createElement(react.Text, {
238
236
  fontSize: "text.sm",
239
237
  fontWeight: 400,
@@ -242,7 +240,9 @@ const DataTable = ({
242
240
  }, reactTable.flexRender(header.column.columnDef.header, header.getContext())), /*#__PURE__*/React.createElement(react.Box, {
243
241
  as: "span",
244
242
  pl: "2",
245
- "data-test-id": `CT_Container_SortingIcon_${header.id}`
243
+ cursor: header.column.getCanSort() ? 'pointer' : 'default',
244
+ "data-test-id": `CT_Container_SortingIcon_${header.id}`,
245
+ onClick: header.column.getToggleSortingHandler()
246
246
  }, (_ref = header.column.getCanSort() && {
247
247
  asc: /*#__PURE__*/React.createElement(icons.ChevronUpIcon, null),
248
248
  desc: /*#__PURE__*/React.createElement(icons.ChevronDownIcon, null)
@@ -1471,6 +1471,16 @@ Header.defaultProps = {
1471
1471
  onOpenModalRelease: undefined
1472
1472
  };
1473
1473
 
1474
+ const ModalBody = /*#__PURE__*/React__default.forwardRef(({
1475
+ children,
1476
+ ...rest
1477
+ }, ref) => {
1478
+ return /*#__PURE__*/React__default.createElement(react.ModalBody, Object.assign({
1479
+ ref: ref,
1480
+ background: react.useColorModeValue('white', 'mirage.900')
1481
+ }, rest), children);
1482
+ });
1483
+
1474
1484
  const ModalCloseButton = /*#__PURE__*/React.forwardRef((props, ref) => {
1475
1485
  return /*#__PURE__*/React__default.createElement(react.ModalCloseButton, Object.assign({
1476
1486
  ref: ref,
@@ -3101,12 +3111,6 @@ Object.defineProperty(exports, 'Modal', {
3101
3111
  return react.Modal;
3102
3112
  }
3103
3113
  });
3104
- Object.defineProperty(exports, 'ModalBody', {
3105
- enumerable: true,
3106
- get: function () {
3107
- return react.ModalBody;
3108
- }
3109
- });
3110
3114
  Object.defineProperty(exports, 'ModalContent', {
3111
3115
  enumerable: true,
3112
3116
  get: function () {
@@ -3258,6 +3262,7 @@ exports.Field = Field;
3258
3262
  exports.Header = Header;
3259
3263
  exports.InputField = InputField;
3260
3264
  exports.MainMenu = Navigation;
3265
+ exports.ModalBody = ModalBody;
3261
3266
  exports.ModalCloseButton = ModalCloseButton;
3262
3267
  exports.ModalFooter = ModalFooter;
3263
3268
  exports.ModalHeader = ModalHeader;