@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
@@ -8,6 +8,8 @@ declare const _default: {
|
|
8
8
|
};
|
9
9
|
export default _default;
|
10
10
|
export declare const DatePickerDefault: () => JSX.Element;
|
11
|
+
export declare const DatePickerMonth: () => JSX.Element;
|
12
|
+
export declare const DatePickerWithYearMonthDropdown: () => JSX.Element;
|
11
13
|
export declare const DatePickerWithTime: () => JSX.Element;
|
12
14
|
export declare const DatePickerWithDateRange: () => JSX.Element;
|
13
15
|
export declare const DatePickerWithNumberOfMonthRange: () => JSX.Element;
|
@@ -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,
|
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
|
-
|
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)
|
@@ -448,6 +448,11 @@ const Styles = () => {
|
|
448
448
|
display: inline-block;
|
449
449
|
margin: 0 2px;
|
450
450
|
}
|
451
|
+
.react-datepicker__header__dropdown.react-datepicker__header__dropdown--select {
|
452
|
+
font-weight: 600;
|
453
|
+
line-height: 22px;
|
454
|
+
color: #111111;
|
455
|
+
}
|
451
456
|
|
452
457
|
.react-datepicker__current-month,
|
453
458
|
.react-datepicker-time__header,
|
@@ -1471,6 +1476,16 @@ Header.defaultProps = {
|
|
1471
1476
|
onOpenModalRelease: undefined
|
1472
1477
|
};
|
1473
1478
|
|
1479
|
+
const ModalBody = /*#__PURE__*/React__default.forwardRef(({
|
1480
|
+
children,
|
1481
|
+
...rest
|
1482
|
+
}, ref) => {
|
1483
|
+
return /*#__PURE__*/React__default.createElement(react.ModalBody, Object.assign({
|
1484
|
+
ref: ref,
|
1485
|
+
background: react.useColorModeValue('white', 'mirage.900')
|
1486
|
+
}, rest), children);
|
1487
|
+
});
|
1488
|
+
|
1474
1489
|
const ModalCloseButton = /*#__PURE__*/React.forwardRef((props, ref) => {
|
1475
1490
|
return /*#__PURE__*/React__default.createElement(react.ModalCloseButton, Object.assign({
|
1476
1491
|
ref: ref,
|
@@ -3101,12 +3116,6 @@ Object.defineProperty(exports, 'Modal', {
|
|
3101
3116
|
return react.Modal;
|
3102
3117
|
}
|
3103
3118
|
});
|
3104
|
-
Object.defineProperty(exports, 'ModalBody', {
|
3105
|
-
enumerable: true,
|
3106
|
-
get: function () {
|
3107
|
-
return react.ModalBody;
|
3108
|
-
}
|
3109
|
-
});
|
3110
3119
|
Object.defineProperty(exports, 'ModalContent', {
|
3111
3120
|
enumerable: true,
|
3112
3121
|
get: function () {
|
@@ -3258,6 +3267,7 @@ exports.Field = Field;
|
|
3258
3267
|
exports.Header = Header;
|
3259
3268
|
exports.InputField = InputField;
|
3260
3269
|
exports.MainMenu = Navigation;
|
3270
|
+
exports.ModalBody = ModalBody;
|
3261
3271
|
exports.ModalCloseButton = ModalCloseButton;
|
3262
3272
|
exports.ModalFooter = ModalFooter;
|
3263
3273
|
exports.ModalHeader = ModalHeader;
|