@uva-glass/component-library 3.55.8 → 3.56.0
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.
- package/dist/DataTable-C46IkAmF.js +154 -0
- package/dist/DataTable-C46IkAmF.js.map +1 -0
- package/dist/assets/DataTable.css +1 -0
- package/dist/{chunk-SZQXB3JV-xjYHmnzP.js → chunk-FON5IJBZ-BBb6rYhU.js} +953 -895
- package/dist/chunk-FON5IJBZ-BBb6rYhU.js.map +1 -0
- package/dist/components/Accordion/Accordion.test.js +1 -1
- package/dist/components/AccordionCard/AccordionCard.test.js +1 -1
- package/dist/components/ActionList/ActionList.test.js +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.test.js +1 -1
- package/dist/components/Attention/Attention.test.js +1 -1
- package/dist/components/Backdrop/Backdrop.test.js +1 -1
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +1 -1
- package/dist/components/Card/Card.test.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +2 -2
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +2 -2
- package/dist/components/DataTable/DataTable.d.ts +39 -0
- package/dist/components/DataTable/DataTable.js +2 -0
- package/dist/components/DataTable/DataTable.stories.d.ts +26 -0
- package/dist/components/DataTable/DataTable.stories.js +40349 -0
- package/dist/components/DataTable/DataTable.stories.js.map +1 -0
- package/dist/components/DataTable/hooks/useVirtualScroll.d.ts +14 -0
- package/dist/components/DataTable/hooks/useVirtualScroll.js +35 -0
- package/dist/components/DataTable/hooks/useVirtualScroll.js.map +1 -0
- package/dist/components/DataTable/index.d.ts +1 -0
- package/dist/components/DataTable/index.js +2 -0
- package/dist/components/DataTable/mockDataTableData.d.ts +39 -0
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +1 -1
- package/dist/components/FormInput/FormInput.stories.js +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Icon/Icon.stories.js +1 -1
- package/dist/components/Icon/icons/index.d.ts +8 -2
- package/dist/components/Icon/icons/index.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -1
- package/dist/components/Label/Label.test.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +1 -1
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/Notification/Notification.test.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +1 -1
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.test.js +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +43 -42
- package/dist/{dist-Cxk2-lJw.js → dist-Dlg0QxSO.js} +413 -193
- package/dist/dist-Dlg0QxSO.js.map +1 -0
- package/dist/{icons-ClUPu6KU.js → icons-C80wqcF0.js} +39 -21
- package/dist/icons-C80wqcF0.js.map +1 -0
- package/dist/index.js +43 -42
- package/dist/setupTests.js +9 -5
- package/dist/setupTests.js.map +1 -1
- package/dist/storybook__react.d.js +24 -7
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/{test-CpW02epT.js → test-Bd7kXF_B.js} +3414 -3412
- package/dist/test-Bd7kXF_B.js.map +1 -0
- package/package.json +26 -26
- package/dist/chunk-SZQXB3JV-xjYHmnzP.js.map +0 -1
- package/dist/dist-Cxk2-lJw.js.map +0 -1
- package/dist/icons-ClUPu6KU.js.map +0 -1
- package/dist/test-CpW02epT.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e } from "../../test-
|
|
1
|
+
import { r as e } from "../../test-Bd7kXF_B.js";
|
|
2
2
|
import { LinkButton as t } from "./LinkButton.js";
|
|
3
3
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
import { BrowserRouter as a } from "react-router";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e } from "../../test-
|
|
1
|
+
import { r as e } from "../../test-Bd7kXF_B.js";
|
|
2
2
|
import { t } from "../../CheckboxButtonBar-DpNnwLzI.js";
|
|
3
3
|
import { t as n } from "../../Periods-C5cxLlWt.js";
|
|
4
4
|
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as e } from "../../chunk-
|
|
2
|
-
import { r as t } from "../../test-
|
|
1
|
+
import { o as e } from "../../chunk-FON5IJBZ-BBb6rYhU.js";
|
|
2
|
+
import { r as t } from "../../test-Bd7kXF_B.js";
|
|
3
3
|
import { h as n } from "../../components-D6_Sx8Hs.js";
|
|
4
4
|
import { t as r } from "../../Chip-9XnXFhoJ.js";
|
|
5
5
|
import { useState as i } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as e } from "../../test-
|
|
2
|
-
import { t } from "../../icons-
|
|
1
|
+
import { r as e } from "../../test-Bd7kXF_B.js";
|
|
2
|
+
import { t } from "../../icons-C80wqcF0.js";
|
|
3
3
|
import { t as n } from "../../ControlsButton-9uR_zW_F.js";
|
|
4
4
|
import { t as r } from "../../Periods-C5cxLlWt.js";
|
|
5
5
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type DataTablePrimitive = string | number | boolean | null | undefined;
|
|
3
|
+
type DataTableRow = Record<string, DataTablePrimitive>;
|
|
4
|
+
export type DataTableColumnContent<TRow extends object> = ReactNode | ((row: TRow) => ReactNode);
|
|
5
|
+
type DataTableColumn<TRow extends object> = {
|
|
6
|
+
key: Extract<keyof TRow, string>;
|
|
7
|
+
label?: ReactNode | ((row: TRow) => ReactNode);
|
|
8
|
+
cell?: ReactNode | ((row: TRow) => ReactNode);
|
|
9
|
+
fixedWidth?: string;
|
|
10
|
+
};
|
|
11
|
+
export type DataTableProps<TRow extends {
|
|
12
|
+
id: string | number;
|
|
13
|
+
} = DataTableRow & {
|
|
14
|
+
id: string | number;
|
|
15
|
+
}> = {
|
|
16
|
+
/** The data to be displayed in the table */
|
|
17
|
+
data: TRow[];
|
|
18
|
+
/** The columns configuration for the table */
|
|
19
|
+
columns?: DataTableColumn<TRow>[];
|
|
20
|
+
/** Whether the table header should be sticky */
|
|
21
|
+
stickyHeader?: boolean;
|
|
22
|
+
/** Virtualization settings for the table */
|
|
23
|
+
virtualize?: {
|
|
24
|
+
/** The height of each row in pixels */
|
|
25
|
+
rowHeight: number;
|
|
26
|
+
/** The number of additional rows to render above and below the visible area for smoother scrolling */
|
|
27
|
+
buffer?: number;
|
|
28
|
+
} | null;
|
|
29
|
+
/** The keys in the data objects that indicate whether a row is active (for styling purposes) */
|
|
30
|
+
activeKeys?: (string | number)[];
|
|
31
|
+
/** Message to display when there is no data */
|
|
32
|
+
noDataMessage?: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const DataTable: <TRow extends {
|
|
35
|
+
id: string | number;
|
|
36
|
+
} = DataTableRow & {
|
|
37
|
+
id: string | number;
|
|
38
|
+
}>({ data, columns, stickyHeader, virtualize, activeKeys, noDataMessage, }: DataTableProps<TRow>) => import("react").JSX.Element;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { DataTableProps } from './DataTable';
|
|
3
|
+
interface MockDataProps {
|
|
4
|
+
id: string;
|
|
5
|
+
first_name: string;
|
|
6
|
+
last_name: string;
|
|
7
|
+
email: string;
|
|
8
|
+
street: string;
|
|
9
|
+
street_number: string;
|
|
10
|
+
zipcode: string | null;
|
|
11
|
+
city: string;
|
|
12
|
+
country: string;
|
|
13
|
+
country_code: string;
|
|
14
|
+
trade: string;
|
|
15
|
+
language: string;
|
|
16
|
+
birthdate: string;
|
|
17
|
+
quote: string;
|
|
18
|
+
university: string;
|
|
19
|
+
appname: string;
|
|
20
|
+
appversion: string;
|
|
21
|
+
website: string;
|
|
22
|
+
}
|
|
23
|
+
declare const _default: Meta<DataTableProps<MockDataProps>>;
|
|
24
|
+
export default _default;
|
|
25
|
+
export declare const DataTableExample: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DataTableProps<MockDataProps>>;
|
|
26
|
+
export declare const DataTableNotVirtualizedExample: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, DataTableProps<MockDataProps>>;
|