jb-grid 0.3.2 → 0.3.3

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.
@@ -2,12 +2,12 @@ import React, { type ForwardedRef } from 'react';
2
2
  import type {JBCellAttributes} from './module-declaration.js';
3
3
  import type { JBCellWebComponent } from 'jb-grid';
4
4
 
5
- type RowProps = JBCellAttributes & {
5
+ export type CellProps = JBCellAttributes & {
6
6
  ref?:ForwardedRef<JBCellWebComponent | null>,
7
7
  name:string,
8
8
  label?:string,
9
9
  }
10
- export function JBCell(props:RowProps) {
10
+ export function JBCell(props:CellProps) {
11
11
  const { children, ...otherProps} = props;
12
12
  return (
13
13
  <jb-cell slot="cell" {...otherProps}>{children}</jb-cell>
@@ -1,10 +1,10 @@
1
1
  import React, { type HTMLAttributes, type PropsWithChildren } from 'react';
2
2
 
3
- export function ExpandRow(props:Props) {
3
+ export function ExpandRow(props:ExpandRowProps) {
4
4
  const {children,...otherProps} = props;
5
5
  return (
6
6
  <div slot="expand" {...otherProps}>{children}</div>
7
7
  );
8
8
  }
9
- type Props= PropsWithChildren<React.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>,HTMLDivElement>>
9
+ export type ExpandRowProps= PropsWithChildren<React.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>,HTMLDivElement>>
10
10
 
@@ -1,7 +1,7 @@
1
- import React, { type PropsWithChildren } from 'react';
1
+ import React from 'react';
2
2
  import type {JBExpandToggleAttributes} from './module-declaration.js';
3
3
 
4
- type ToggleProps = JBExpandToggleAttributes
4
+ export type ToggleProps = JBExpandToggleAttributes
5
5
  export function JBExpandToggle(props:ToggleProps) {
6
6
  const { children, ...otherProps} = props;
7
7
  return (
@@ -2,9 +2,9 @@ import React, { type ForwardedRef } from 'react';
2
2
  import type {JBRowAttributes} from './module-declaration.js';
3
3
  import type { JBCellWebComponent, RowTemplate } from 'jb-grid';
4
4
 
5
- type RowProps = JBRowAttributes & {
5
+ export type RowProps = JBRowAttributes & {
6
6
  ref?:ForwardedRef<JBCellWebComponent | null>,
7
- rowTemplate:RowTemplate,
7
+ rowTemplate?:RowTemplate,
8
8
  isOpen?:boolean
9
9
  }
10
10
  export function JBRow(props:RowProps) {
@@ -13,10 +13,10 @@ import { useInstance } from 'jb-core/react';
13
13
  import { injectCss } from 'jb-core';
14
14
 
15
15
  export {JBPagination, type Props as PaginationProps} from './Components/Pagination.js';
16
- export { JBRow } from './Components/Row.js';
17
- export { JBCell } from './Components/Cell.js';
18
- export { ExpandRow } from './Components/ExpandRow.js';
19
- export { JBExpandToggle } from './Components/ExpandToggle.js';
16
+ export * from './Components/Row.js';
17
+ export * from './Components/Cell.js';
18
+ export * from './Components/ExpandRow.js';
19
+ export * from './Components/ExpandToggle.js';
20
20
  export * from './types.js';
21
21
  export type Props<T extends AnyObject> = {
22
22
  searchbarConfig?: SearchbarConfig | null | undefined,