asma-core-ui 2.21.3 → 2.22.4

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.
Files changed (22) hide show
  1. package/CHANGELOG.md +0 -12
  2. package/dist/asma-core-ui.es.js +6 -182
  3. package/dist/src/components/pickers/date-picker/components/DatePickerInputIndex.d.ts +8 -0
  4. package/dist/src/components/pickers/date-picker/types.d.ts +2 -0
  5. package/dist/src/components/table/components/TableBody.d.ts +9 -0
  6. package/dist/src/components/table/components/TableFooter.d.ts +7 -5
  7. package/dist/src/components/table/components/TableHeader.d.ts +6 -4
  8. package/dist/src/components/table/components/TableNoRowsOverlay.d.ts +5 -0
  9. package/dist/src/components/table/components/TableRow.d.ts +2 -2
  10. package/dist/src/components/table/components/TableRows.d.ts +2 -2
  11. package/dist/src/components/table/components/TableSkeleton.d.ts +4 -0
  12. package/dist/src/index.d.ts +0 -1
  13. package/dist/style.css +2 -2
  14. package/package.json +1 -2
  15. package/dist/src/components/table/__deprecated-data-grid/StyledDataGrid.d.ts +0 -8
  16. package/dist/src/components/table/__deprecated-data-grid/StyledGridActionsCellItem.d.ts +0 -3
  17. package/dist/src/components/table/__deprecated-data-grid/components/ColumnFormControlItem.d.ts +0 -6
  18. package/dist/src/components/table/__deprecated-data-grid/components/ColumnsMenu.d.ts +0 -7
  19. package/dist/src/components/table/__deprecated-data-grid/components/columnActions.d.ts +0 -13
  20. package/dist/src/components/table/__deprecated-data-grid/index.d.ts +0 -3
  21. package/dist/src/components/table/__deprecated-data-grid/types.d.ts +0 -9
  22. package/dist/src/components/table/__deprecated-data-grid/x-data-grid-types.d.ts +0 -2
@@ -1,5 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import type { DatePickerProps } from '../types';
3
+ /**
4
+ *
5
+ * @remarks error and helper text will work only for Single
6
+ *
7
+ * Custom props:
8
+ * @param error - boolean
9
+ * @param helperText - ReactNode
10
+ */
3
11
  export declare const DatePickerInputIndex: React.FC<DatePickerProps & {
4
12
  onClick: (e: React.MouseEvent<HTMLDivElement>) => void;
5
13
  }>;
@@ -9,6 +9,8 @@ type CommonDatePickerProps = {
9
9
  allowClear?: boolean;
10
10
  disabledDays?: Matcher | Matcher[];
11
11
  dataTest: string;
12
+ helperText?: React.ReactNode;
13
+ error?: boolean;
12
14
  } & CalendarProps;
13
15
  type DefaultSingleProps = {
14
16
  mode: 'single';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { type Table } from '@tanstack/react-table';
3
+ import type { StyledTableProps } from '../types';
4
+ export declare function TableBody<TData extends {
5
+ id: string | number;
6
+ }, TCustomData = Record<string, unknown>>({ table, styledTableProps }: {
7
+ table: Table<TData>;
8
+ styledTableProps: StyledTableProps<TData, TCustomData>;
9
+ }): JSX.Element;
@@ -1,7 +1,9 @@
1
+ /// <reference types="react" />
1
2
  import { type Table } from '@tanstack/react-table';
2
- import type { ReactNode } from 'react';
3
- export declare function TableFooter<TData>({ table, locale, children, }: {
3
+ import type { StyledTableProps } from '../types';
4
+ export declare function TableFooter<TData extends {
5
+ id: string | number;
6
+ }, TCustomData = Record<string, unknown>>({ table, styledTableProps }: {
4
7
  table: Table<TData>;
5
- locale: 'en' | 'no';
6
- children: ReactNode;
7
- }): JSX.Element;
8
+ styledTableProps: StyledTableProps<TData, TCustomData>;
9
+ }): JSX.Element | null;
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { type Table } from '@tanstack/react-table';
3
- export declare function TableHeader<TData>({ table, stickyHeader, hideHeader, }: {
3
+ import type { StyledTableProps } from '../types';
4
+ export declare function TableHeader<TData extends {
5
+ id: string | number;
6
+ }, TCustomData = Record<string, unknown>>({ table, styledTableProps }: {
4
7
  table: Table<TData>;
5
- stickyHeader?: boolean;
6
- hideHeader?: boolean;
7
- }): JSX.Element;
8
+ styledTableProps: StyledTableProps<TData, TCustomData>;
9
+ }): JSX.Element | null;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const TableNoRowsOverlay: React.FC<{
3
+ colSpan: number;
4
+ noRowsOverlay?: React.ReactNode;
5
+ }>;
@@ -3,8 +3,8 @@ import { type Row } from '@tanstack/react-table';
3
3
  import type { StyledTableProps } from '../types';
4
4
  export declare function TableRow<TData extends {
5
5
  id: string | number;
6
- }, TCustomData = Record<string, unknown>>({ tableProps, row, index }: {
7
- tableProps: StyledTableProps<TData, TCustomData>;
6
+ }, TCustomData = Record<string, unknown>>({ styledTableProps, row, index, }: {
7
+ styledTableProps: StyledTableProps<TData, TCustomData>;
8
8
  row: Row<TData>;
9
9
  index: number;
10
10
  }): JSX.Element;
@@ -3,7 +3,7 @@ import { type Table } from '@tanstack/react-table';
3
3
  import type { StyledTableProps } from '../types';
4
4
  export declare function TableRows<TData extends {
5
5
  id: string | number;
6
- }, TCustomData = Record<string, unknown>>({ tableProps, table }: {
7
- tableProps: StyledTableProps<TData, TCustomData>;
6
+ }, TCustomData = Record<string, unknown>>({ styledTableProps, table }: {
7
+ styledTableProps: StyledTableProps<TData, TCustomData>;
8
8
  table: Table<TData>;
9
9
  }): JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const TableSkeleton: React.FC<{
3
+ colSpan: number;
4
+ }>;
@@ -5,7 +5,6 @@ export * from './components/data-display/chip';
5
5
  export * from './components/data-display/tooltip';
6
6
  export * from './components/data-display/icons';
7
7
  export * from './components/data-display/typography';
8
- export * from './components/table/__deprecated-data-grid';
9
8
  export * from './components/feedback/dialog';
10
9
  export * from './components/feedback/alert';
11
10
  export * from './components/feedback/snack-bar';