ctc-component-library 0.1.96 → 0.1.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,3 @@
1
1
  import { TableProps } from './types';
2
+ export declare const TABLE_EXPAND_COLUMN_WIDTH = 48;
2
3
  export declare const Table: <T extends object>({ columns, data, onChange, customStyles, className, heightBodyScrollable, widthBodyScrollable, dataTestid, expandable, ...props }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export { Table } from './Table';
1
+ export { Table, TABLE_EXPAND_COLUMN_WIDTH } from './Table';
2
2
  export type { TableProps, ExpandableConfig, TableExpandableConfig } from './types';
@@ -8,6 +8,7 @@ export type { ExpandableConfig };
8
8
  export interface TableExpandableConfig<T> extends ExpandableConfig<T> {
9
9
  expandedRowData?: (record: T) => T[];
10
10
  expandedRowColumns?: ColumnsType<T>;
11
+ alignSubRowsWithParent?: boolean;
11
12
  expandedRowNestedClassName?: string;
12
13
  expandedRowNestedStyle?: React.CSSProperties;
13
14
  }
@@ -14,11 +14,14 @@ declare const Modal: {
14
14
  ({ isOpen: _isOpen, onOpenChange: _onOpenChange, children }: ModalProps): import("react/jsx-runtime").JSX.Element;
15
15
  displayName: string;
16
16
  };
17
+ export type ModalArrowPosition = 'left-top' | 'left-center' | 'left-bottom' | 'right-top' | 'right-center' | 'right-bottom' | 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
17
18
  interface ModalContentProps extends Omit<ModalAntDProps, 'isOpen'> {
18
19
  maskClosable?: boolean;
19
20
  dataTestId?: string;
20
21
  children: React.ReactNode;
21
22
  onClose?: () => void;
23
+ arrow?: boolean;
24
+ arrowPosition?: ModalArrowPosition;
22
25
  }
23
26
  declare const ModalContent: React.ForwardRefExoticComponent<ModalContentProps & React.RefAttributes<HTMLDivElement>>;
24
27
  interface ModalTitleProps extends React.HTMLAttributes<HTMLElement> {
@@ -1,3 +1,3 @@
1
1
  export { Modal } from './Modal';
2
2
  export type { ModalProps } from './types';
3
- export { Modal as ModalV2, ModalTrigger, ModalContent, ModalTitle, ModalDescription, ModalBody, ModalFooter, ModalCloseButton, ModalActionButton } from './ModalV2';
3
+ export { Modal as ModalV2, ModalTrigger, ModalContent, ModalTitle, ModalDescription, ModalBody, ModalFooter, ModalCloseButton, ModalActionButton, type ModalArrowPosition } from './ModalV2';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ctc-component-library",
3
3
  "private": false,
4
- "version": "0.1.96",
4
+ "version": "0.1.98",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",