bianic-ui 2.14.0-beta.8 → 2.14.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/cjs/index.js +958 -93
- package/dist/cjs/lib.css +1 -1
- package/dist/cjs/types/components/Button/PropInterfaceButton.d.ts +1 -0
- package/dist/cjs/types/components/Button/buttonConfigs.d.ts +6 -0
- package/dist/cjs/types/components/Forms/LiveSearch/hooks/useLiveSearch.d.ts +2 -0
- package/dist/cjs/types/components/Forms/LiveSearch/index.d.ts +1 -1
- package/dist/cjs/types/components/Forms/LiveSearch/types/index.d.ts +1 -0
- package/dist/cjs/types/components/Forms/TagLabelInput/index.d.ts +1 -0
- package/dist/cjs/types/components/InfoPanel/config.d.ts +2 -5
- package/dist/cjs/types/components/InfoPanel/index.d.ts +7 -3
- package/dist/cjs/types/components/Table/DataTable/DataTable.d.ts +4 -0
- package/dist/cjs/types/components/Table/DataTable/SortableHeadCell.d.ts +11 -0
- package/dist/cjs/types/components/Table/DataTable/configs.d.ts +5 -0
- package/dist/cjs/types/components/Table/DataTable/index.d.ts +5 -0
- package/dist/cjs/types/components/Table/DataTable/types.d.ts +100 -0
- package/dist/cjs/types/components/Table/DataTable/useDataTable.d.ts +4 -0
- package/dist/cjs/types/components/Table/DataTable/utils.d.ts +7 -0
- package/dist/cjs/types/components/Table/index.d.ts +2 -0
- package/dist/cjs/types/components/TagLabel/configs.d.ts +8 -1
- package/dist/cjs/types/components/index.d.ts +5 -1
- package/dist/cjs/types/stories/Button/Button.stories.d.ts +19 -0
- package/dist/cjs/types/stories/Form/LiveSearch/Livesearch.stories.d.ts +1 -0
- package/dist/cjs/types/stories/Form/LiveSearch/Livesearch.test.stories.d.ts +3 -0
- package/dist/cjs/types/stories/Form/TagLabelInput/TagLabelInput.stories.d.ts +13 -0
- package/dist/cjs/types/stories/InfoPanel/InfoPanel.stories.d.ts +95 -1
- package/dist/cjs/types/stories/InfoPanel/InfoPanel.test.stories.d.ts +33 -0
- package/dist/cjs/types/stories/PaginationBar/PaginationBar.test.stories.d.ts +27 -0
- package/dist/cjs/types/stories/Table/DataTable.stories.d.ts +245 -0
- package/dist/cjs/types/stories/Table/DataTable.test.stories.d.ts +76 -0
- package/dist/cjs/types/stories/Table/useTableDataHandler.test.stories.d.ts +19 -0
- package/dist/cjs/types/stories/TagLabel/TagLabel.stories.d.ts +4 -0
- package/dist/cjs/types/stories/TagLabel/TagLabel.test.stories.d.ts +38 -0
- package/dist/cjs/types/stories/Tooltip/Tooltip.stories.d.ts +19 -0
- package/dist/cjs/types/stories/Tooltip/Tooltip.test.stories.d.ts +33 -0
- package/dist/cjs/types/stories/Utility/Formatters.stories.d.ts +18 -0
- package/dist/cjs/types/stories/Utility/Formatters.test.stories.d.ts +21 -0
- package/dist/cjs/types/stories/Utility/cleanParams.stories.d.ts +33 -0
- package/dist/cjs/types/stories/Utility/filterSamples.d.ts +62 -0
- package/dist/cjs/types/stories/Utility/useAppliedFilter.stories.d.ts +46 -0
- package/dist/cjs/types/stories/Utility/useDebounce.stories.d.ts +31 -0
- package/dist/cjs/types/stories/Utility/useDebounce.test.stories.d.ts +19 -0
- package/dist/cjs/types/stories/Utility/usePersistentState.stories.d.ts +44 -0
- package/dist/cjs/types/stories/Utility/usePersistentState.test.stories.d.ts +21 -0
- package/dist/cjs/types/utility/hooks/useAppliedFilter.d.ts +19 -0
- package/dist/cjs/types/utility/hooks/useDebounce.d.ts +3 -0
- package/dist/cjs/types/utility/hooks/usePersistentState.d.ts +8 -0
- package/dist/cjs/types/utility/hooks/useTableDataHandler.d.ts +1 -1
- package/dist/cjs/types/utility/index.d.ts +8 -0
- package/dist/cjs/types/utility/public/filterParams.d.ts +4 -0
- package/dist/cjs/types/utility/public/formatters.d.ts +2 -0
- package/dist/cjs/types/utility/public/highlightMatch.d.ts +3 -0
- package/dist/esm/index.js +948 -95
- package/dist/esm/lib.css +1 -1
- package/dist/esm/types/components/Button/PropInterfaceButton.d.ts +1 -0
- package/dist/esm/types/components/Button/buttonConfigs.d.ts +6 -0
- package/dist/esm/types/components/Forms/LiveSearch/hooks/useLiveSearch.d.ts +2 -0
- package/dist/esm/types/components/Forms/LiveSearch/index.d.ts +1 -1
- package/dist/esm/types/components/Forms/LiveSearch/types/index.d.ts +1 -0
- package/dist/esm/types/components/Forms/TagLabelInput/index.d.ts +1 -0
- package/dist/esm/types/components/InfoPanel/config.d.ts +2 -5
- package/dist/esm/types/components/InfoPanel/index.d.ts +7 -3
- package/dist/esm/types/components/Table/DataTable/DataTable.d.ts +4 -0
- package/dist/esm/types/components/Table/DataTable/SortableHeadCell.d.ts +11 -0
- package/dist/esm/types/components/Table/DataTable/configs.d.ts +5 -0
- package/dist/esm/types/components/Table/DataTable/index.d.ts +5 -0
- package/dist/esm/types/components/Table/DataTable/types.d.ts +100 -0
- package/dist/esm/types/components/Table/DataTable/useDataTable.d.ts +4 -0
- package/dist/esm/types/components/Table/DataTable/utils.d.ts +7 -0
- package/dist/esm/types/components/Table/index.d.ts +2 -0
- package/dist/esm/types/components/TagLabel/configs.d.ts +8 -1
- package/dist/esm/types/components/index.d.ts +5 -1
- package/dist/esm/types/stories/Button/Button.stories.d.ts +19 -0
- package/dist/esm/types/stories/Form/LiveSearch/Livesearch.stories.d.ts +1 -0
- package/dist/esm/types/stories/Form/LiveSearch/Livesearch.test.stories.d.ts +3 -0
- package/dist/esm/types/stories/Form/TagLabelInput/TagLabelInput.stories.d.ts +13 -0
- package/dist/esm/types/stories/InfoPanel/InfoPanel.stories.d.ts +95 -1
- package/dist/esm/types/stories/InfoPanel/InfoPanel.test.stories.d.ts +33 -0
- package/dist/esm/types/stories/PaginationBar/PaginationBar.test.stories.d.ts +27 -0
- package/dist/esm/types/stories/Table/DataTable.stories.d.ts +245 -0
- package/dist/esm/types/stories/Table/DataTable.test.stories.d.ts +76 -0
- package/dist/esm/types/stories/Table/useTableDataHandler.test.stories.d.ts +19 -0
- package/dist/esm/types/stories/TagLabel/TagLabel.stories.d.ts +4 -0
- package/dist/esm/types/stories/TagLabel/TagLabel.test.stories.d.ts +38 -0
- package/dist/esm/types/stories/Tooltip/Tooltip.stories.d.ts +19 -0
- package/dist/esm/types/stories/Tooltip/Tooltip.test.stories.d.ts +33 -0
- package/dist/esm/types/stories/Utility/Formatters.stories.d.ts +18 -0
- package/dist/esm/types/stories/Utility/Formatters.test.stories.d.ts +21 -0
- package/dist/esm/types/stories/Utility/cleanParams.stories.d.ts +33 -0
- package/dist/esm/types/stories/Utility/filterSamples.d.ts +62 -0
- package/dist/esm/types/stories/Utility/useAppliedFilter.stories.d.ts +46 -0
- package/dist/esm/types/stories/Utility/useDebounce.stories.d.ts +31 -0
- package/dist/esm/types/stories/Utility/useDebounce.test.stories.d.ts +19 -0
- package/dist/esm/types/stories/Utility/usePersistentState.stories.d.ts +44 -0
- package/dist/esm/types/stories/Utility/usePersistentState.test.stories.d.ts +21 -0
- package/dist/esm/types/utility/hooks/useAppliedFilter.d.ts +19 -0
- package/dist/esm/types/utility/hooks/useDebounce.d.ts +3 -0
- package/dist/esm/types/utility/hooks/usePersistentState.d.ts +8 -0
- package/dist/esm/types/utility/hooks/useTableDataHandler.d.ts +1 -1
- package/dist/esm/types/utility/index.d.ts +8 -0
- package/dist/esm/types/utility/public/filterParams.d.ts +4 -0
- package/dist/esm/types/utility/public/formatters.d.ts +2 -0
- package/dist/esm/types/utility/public/highlightMatch.d.ts +3 -0
- package/dist/index.d.ts +160 -7
- package/package.json +1 -1
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { DataTableColumn, DataTableProps } from '../../components';
|
|
4
|
+
interface Well {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
field: string;
|
|
8
|
+
status: string;
|
|
9
|
+
code: number;
|
|
10
|
+
depth: number;
|
|
11
|
+
}
|
|
12
|
+
declare function shortenSource(code: string): string;
|
|
13
|
+
declare const meta: {
|
|
14
|
+
title: string;
|
|
15
|
+
component: (props: DataTableProps<Well>) => React.JSX.Element;
|
|
16
|
+
parameters: {
|
|
17
|
+
layout: string;
|
|
18
|
+
docs: {
|
|
19
|
+
source: {
|
|
20
|
+
transform: typeof shortenSource;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
a11y: {
|
|
24
|
+
test: string;
|
|
25
|
+
config: {
|
|
26
|
+
rules: {
|
|
27
|
+
id: string;
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
argTypes: {
|
|
34
|
+
columns: {
|
|
35
|
+
control: "object";
|
|
36
|
+
description: string;
|
|
37
|
+
table: {
|
|
38
|
+
type: {
|
|
39
|
+
summary: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
data: {
|
|
44
|
+
control: "object";
|
|
45
|
+
description: string;
|
|
46
|
+
table: {
|
|
47
|
+
type: {
|
|
48
|
+
summary: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
rowKey: {
|
|
53
|
+
control: false;
|
|
54
|
+
description: string;
|
|
55
|
+
table: {
|
|
56
|
+
type: {
|
|
57
|
+
summary: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
pagination: {
|
|
62
|
+
control: "object";
|
|
63
|
+
description: string;
|
|
64
|
+
table: {
|
|
65
|
+
defaultValue: {
|
|
66
|
+
summary: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
search: {
|
|
71
|
+
control: "object";
|
|
72
|
+
description: string;
|
|
73
|
+
table: {
|
|
74
|
+
defaultValue: {
|
|
75
|
+
summary: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
sort: {
|
|
80
|
+
control: "object";
|
|
81
|
+
description: string;
|
|
82
|
+
table: {
|
|
83
|
+
defaultValue: {
|
|
84
|
+
summary: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
isLoading: {
|
|
89
|
+
control: "boolean";
|
|
90
|
+
description: string;
|
|
91
|
+
table: {
|
|
92
|
+
defaultValue: {
|
|
93
|
+
summary: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
buttonActions: {
|
|
98
|
+
control: false;
|
|
99
|
+
description: string;
|
|
100
|
+
table: {
|
|
101
|
+
defaultValue: {
|
|
102
|
+
summary: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
middleSection: {
|
|
107
|
+
control: false;
|
|
108
|
+
description: string;
|
|
109
|
+
table: {
|
|
110
|
+
defaultValue: {
|
|
111
|
+
summary: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
rowClassName: {
|
|
116
|
+
control: false;
|
|
117
|
+
description: string;
|
|
118
|
+
table: {
|
|
119
|
+
type: {
|
|
120
|
+
summary: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
rowProps: {
|
|
125
|
+
control: false;
|
|
126
|
+
description: string;
|
|
127
|
+
table: {
|
|
128
|
+
type: {
|
|
129
|
+
summary: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
renderRow: {
|
|
134
|
+
control: false;
|
|
135
|
+
description: string;
|
|
136
|
+
table: {
|
|
137
|
+
type: {
|
|
138
|
+
summary: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
emptyValue: {
|
|
143
|
+
control: "text";
|
|
144
|
+
description: string;
|
|
145
|
+
table: {
|
|
146
|
+
defaultValue: {
|
|
147
|
+
summary: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
emptyContent: {
|
|
152
|
+
control: "text";
|
|
153
|
+
description: string;
|
|
154
|
+
table: {
|
|
155
|
+
defaultValue: {
|
|
156
|
+
summary: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
emptySubContent: {
|
|
161
|
+
control: "text";
|
|
162
|
+
description: string;
|
|
163
|
+
table: {
|
|
164
|
+
defaultValue: {
|
|
165
|
+
summary: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
noResultsContent: {
|
|
170
|
+
control: "text";
|
|
171
|
+
description: string;
|
|
172
|
+
table: {
|
|
173
|
+
defaultValue: {
|
|
174
|
+
summary: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
noResultsSubContent: {
|
|
179
|
+
control: "text";
|
|
180
|
+
description: string;
|
|
181
|
+
table: {
|
|
182
|
+
defaultValue: {
|
|
183
|
+
summary: string;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
customEmptyContent: {
|
|
188
|
+
control: false;
|
|
189
|
+
description: string;
|
|
190
|
+
table: {
|
|
191
|
+
defaultValue: {
|
|
192
|
+
summary: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
tableClassName: {
|
|
197
|
+
control: "text";
|
|
198
|
+
description: string;
|
|
199
|
+
table: {
|
|
200
|
+
defaultValue: {
|
|
201
|
+
summary: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
className: {
|
|
206
|
+
control: "text";
|
|
207
|
+
description: string;
|
|
208
|
+
table: {
|
|
209
|
+
defaultValue: {
|
|
210
|
+
summary: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
args: {
|
|
216
|
+
columns: DataTableColumn<Well>[];
|
|
217
|
+
data: Well[];
|
|
218
|
+
rowKey: "id";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
export default meta;
|
|
222
|
+
type Story = StoryObj<typeof meta>;
|
|
223
|
+
export declare const Default: Story;
|
|
224
|
+
export declare const Basic: Story;
|
|
225
|
+
export declare const ClientPagination: Story;
|
|
226
|
+
export declare const ServerPaginationSimulation: Story;
|
|
227
|
+
export declare const DefaultPage: Story;
|
|
228
|
+
export declare const LastPage: Story;
|
|
229
|
+
export declare const ControlledPageSimulation: Story;
|
|
230
|
+
export declare const ClientSearch: Story;
|
|
231
|
+
export declare const ServerSearchSimulation: Story;
|
|
232
|
+
export declare const Sorting: Story;
|
|
233
|
+
export declare const ServerSortSimulation: Story;
|
|
234
|
+
export declare const CustomColumns: Story;
|
|
235
|
+
export declare const CustomRows: Story;
|
|
236
|
+
export declare const Loading: Story;
|
|
237
|
+
export declare const Empty: Story;
|
|
238
|
+
export declare const NoResults: Story;
|
|
239
|
+
export declare const CustomEmpty: Story;
|
|
240
|
+
export declare const WithMiddleSection: Story;
|
|
241
|
+
export declare const LargeDataset: Story;
|
|
242
|
+
export declare const WithHeaderActions: Story;
|
|
243
|
+
export declare const WithStatusTags: Story;
|
|
244
|
+
export declare const UseDataTableSimulation: Story;
|
|
245
|
+
export declare const AllStates: Story;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { DataTableColumn, DataTableProps } from '../../components';
|
|
4
|
+
interface Well {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
field: string;
|
|
8
|
+
status: string;
|
|
9
|
+
code: number;
|
|
10
|
+
depth: number;
|
|
11
|
+
}
|
|
12
|
+
declare const meta: {
|
|
13
|
+
title: string;
|
|
14
|
+
component: (props: DataTableProps<Well>) => React.JSX.Element;
|
|
15
|
+
tags: string[];
|
|
16
|
+
parameters: {
|
|
17
|
+
layout: string;
|
|
18
|
+
a11y: {
|
|
19
|
+
test: string;
|
|
20
|
+
config: {
|
|
21
|
+
rules: {
|
|
22
|
+
id: string;
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
chromatic: {
|
|
28
|
+
disableSnapshot: boolean;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
args: {
|
|
32
|
+
columns: DataTableColumn<Well>[];
|
|
33
|
+
data: Well[];
|
|
34
|
+
rowKey: "id";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export default meta;
|
|
38
|
+
type Story = StoryObj<typeof meta>;
|
|
39
|
+
export declare const FirstPageShowsTenRows: Story;
|
|
40
|
+
export declare const NextPageShowsRowsEleventoTwenty: Story;
|
|
41
|
+
export declare const PageSizeChangeCallsOnChangeOnce: Story;
|
|
42
|
+
export declare const ServerNextPageCallsOnChangeOnce: Story;
|
|
43
|
+
export declare const ServerPageTwoShowsTotal: Story;
|
|
44
|
+
export declare const DefaultPageThreeShowsLastRows: Story;
|
|
45
|
+
export declare const DefaultPageLastOpensLastPage: Story;
|
|
46
|
+
export declare const ServerLastPageReportsOnce: Story;
|
|
47
|
+
export declare const ShrinkingDataMovesToLastPage: Story;
|
|
48
|
+
export declare const ServerShrinkingTotalReportsLastPage: Story;
|
|
49
|
+
export declare const AllPageSizeShowsEveryRow: Story;
|
|
50
|
+
export declare const SortAscendingShowsDownChevron: Story;
|
|
51
|
+
export declare const SortDescendingShowsUpChevron: Story;
|
|
52
|
+
export declare const ThirdClickClearsSortAndResetsPage: Story;
|
|
53
|
+
export declare const ServerSortOnlyReports: Story;
|
|
54
|
+
export declare const ServerSortSendsSortKey: Story;
|
|
55
|
+
export declare const SortNumericAndEmptyLast: Story;
|
|
56
|
+
export declare const OnlySortableColumnsHaveButtons: Story;
|
|
57
|
+
export declare const ClientSearchFiltersAndResetsPage: Story;
|
|
58
|
+
export declare const ClientSearchFindsNumbers: Story;
|
|
59
|
+
export declare const ServerSearchWaitsFiveHundredMs: Story;
|
|
60
|
+
export declare const LoadingKeepsHeaderAndFooter: Story;
|
|
61
|
+
export declare const ServerSearchEnterSendsAtOnce: Story;
|
|
62
|
+
export declare const ServerSearchCloseSendsEmpty: Story;
|
|
63
|
+
export declare const EmptyKeepsHeaderAndFooter: Story;
|
|
64
|
+
export declare const NoResultsShowsNoResultsMessage: Story;
|
|
65
|
+
export declare const CustomEmptyReplacesEmptyBlock: Story;
|
|
66
|
+
export declare const CustomColumnsRenderValues: Story;
|
|
67
|
+
export declare const SearchOnLaterPageShowsPageOne: Story;
|
|
68
|
+
export declare const RowClassPropsAndRenderRow: Story;
|
|
69
|
+
export declare const SearchButtonWorksWithKeyboard: Story;
|
|
70
|
+
export declare const SortButtonWorksWithKeyboard: Story;
|
|
71
|
+
export declare const HeaderActionsComeBeforeSearch: Story;
|
|
72
|
+
export declare const NoSearchPropHasNoSearchButton: Story;
|
|
73
|
+
export declare const HeadlessHookPagesSearchesAndSorts: Story;
|
|
74
|
+
export declare const HeadlessHookEmptyData: Story;
|
|
75
|
+
export declare const AllStatesRenderEachState: Story;
|
|
76
|
+
export declare const SortSearchAndPagesWorkTogether: Story;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare function HandlerDemo(): React.JSX.Element;
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof HandlerDemo;
|
|
7
|
+
tags: string[];
|
|
8
|
+
parameters: {
|
|
9
|
+
a11y: {
|
|
10
|
+
test: string;
|
|
11
|
+
};
|
|
12
|
+
chromatic: {
|
|
13
|
+
disableSnapshot: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
export declare const SearchFindsNumberFields: Story;
|
|
@@ -22,3 +22,7 @@ export declare const White: Story;
|
|
|
22
22
|
export declare const CustomColor: Story;
|
|
23
23
|
export declare const DemoIcon: Story;
|
|
24
24
|
export declare const DemoIconText: Story;
|
|
25
|
+
export declare const Medium: Story;
|
|
26
|
+
export declare const Small: Story;
|
|
27
|
+
export declare const Tiny: Story;
|
|
28
|
+
export declare const AllStates: Story;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { TagLabel } from '../../components';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof TagLabel;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
a11y: {
|
|
10
|
+
test: string;
|
|
11
|
+
};
|
|
12
|
+
chromatic: {
|
|
13
|
+
disableSnapshot: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
args: {
|
|
17
|
+
color: "default";
|
|
18
|
+
text: string;
|
|
19
|
+
role: "group";
|
|
20
|
+
'aria-label': string;
|
|
21
|
+
closeHandler: import("storybook/test").Mock<(...args: any[]) => any>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default meta;
|
|
25
|
+
type Story = StoryObj<typeof meta>;
|
|
26
|
+
export declare const MdLabelIs24pxTall: Story;
|
|
27
|
+
export declare const DefaultSizeLabelIs24pxWith7pxPadding: Story;
|
|
28
|
+
export declare const MdLabelPaddingAndGap: Story;
|
|
29
|
+
export declare const MdIconsAre16px: Story;
|
|
30
|
+
export declare const MdCloseableSizesAndClick: Story;
|
|
31
|
+
export declare const MdIconOnlyIs24x24: Story;
|
|
32
|
+
export declare const MdMonospaceSpacing: Story;
|
|
33
|
+
export declare const MdIconWithOwnSizeKeepsIt: Story;
|
|
34
|
+
export declare const MdWhiteBorderStill24px: Story;
|
|
35
|
+
export declare const MdLongTextTruncates: Story;
|
|
36
|
+
export declare const AllStatesCellsAreLabeledAndMdIs24px: Story;
|
|
37
|
+
export declare const MdCustomIconOnlyIs24x24: Story;
|
|
38
|
+
export declare const MdWhiteIconOnlyIs24x24: Story;
|
|
@@ -14,9 +14,28 @@ declare const meta: {
|
|
|
14
14
|
type: "radio";
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
+
delay: {
|
|
18
|
+
control: "number";
|
|
19
|
+
description: string;
|
|
20
|
+
table: {
|
|
21
|
+
defaultValue: {
|
|
22
|
+
summary: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
zIndex: {
|
|
27
|
+
control: "number";
|
|
28
|
+
description: string;
|
|
29
|
+
table: {
|
|
30
|
+
defaultValue: {
|
|
31
|
+
summary: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
17
35
|
};
|
|
18
36
|
};
|
|
19
37
|
export default meta;
|
|
20
38
|
type Story = StoryObj<typeof meta>;
|
|
21
39
|
export declare const Demo: Story;
|
|
22
40
|
export declare const TextTooltip: Story;
|
|
41
|
+
export declare const TableRowHoverSimulation: Story;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Tooltip } from '../../components';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof Tooltip;
|
|
7
|
+
tags: string[];
|
|
8
|
+
parameters: {
|
|
9
|
+
a11y: {
|
|
10
|
+
test: string;
|
|
11
|
+
};
|
|
12
|
+
chromatic: {
|
|
13
|
+
disableSnapshot: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
args: {
|
|
17
|
+
content: string;
|
|
18
|
+
delay: number;
|
|
19
|
+
children: React.JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
type Story = StoryObj<typeof meta>;
|
|
24
|
+
export declare const HoverShowsThenHides: Story;
|
|
25
|
+
export declare const FastLeaveNoTooltip: Story;
|
|
26
|
+
export declare const RowRerenderFastLeaveNoTooltip: Story;
|
|
27
|
+
export declare const RapidHoverOpensOnce: Story;
|
|
28
|
+
export declare const ZIndexZeroKept: Story;
|
|
29
|
+
export declare const ZIndexDefault150: Story;
|
|
30
|
+
export declare const ZIndexCustom: Story;
|
|
31
|
+
export declare const DelayZeroUsesDefault: Story;
|
|
32
|
+
export declare const DelayDefault400: Story;
|
|
33
|
+
export declare const ZIndexZeroCombined: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare function FormattersDemo(): React.JSX.Element;
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof FormattersDemo;
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
a11y: {
|
|
10
|
+
test: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof meta>;
|
|
16
|
+
export declare const FileSizes: Story;
|
|
17
|
+
export declare const TruncatedText: Story;
|
|
18
|
+
export declare const HighlightedMatch: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare function Formatters(): React.JSX.Element;
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof Formatters;
|
|
7
|
+
tags: string[];
|
|
8
|
+
parameters: {
|
|
9
|
+
a11y: {
|
|
10
|
+
test: string;
|
|
11
|
+
};
|
|
12
|
+
chromatic: {
|
|
13
|
+
disableSnapshot: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
export declare const FileSizesAreFormatted: Story;
|
|
20
|
+
export declare const TextIsTruncated: Story;
|
|
21
|
+
export declare const MatchesAreHighlighted: Story;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface CleanParamsDemoProps {
|
|
4
|
+
filter?: object;
|
|
5
|
+
}
|
|
6
|
+
declare function CleanParamsDemo({ filter, }: CleanParamsDemoProps): React.JSX.Element;
|
|
7
|
+
declare const meta: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: typeof CleanParamsDemo;
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: string;
|
|
12
|
+
a11y: {
|
|
13
|
+
test: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
argTypes: {
|
|
17
|
+
filter: {
|
|
18
|
+
control: "object";
|
|
19
|
+
description: string;
|
|
20
|
+
table: {
|
|
21
|
+
defaultValue: {
|
|
22
|
+
summary: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default meta;
|
|
29
|
+
type Story = StoryObj<typeof meta>;
|
|
30
|
+
export declare const Default: Story;
|
|
31
|
+
export declare const ModelerUserActivity: Story;
|
|
32
|
+
export declare const QaamsDetection: Story;
|
|
33
|
+
export declare const AllStates: Story;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export interface SelectOption {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string | null;
|
|
4
|
+
}
|
|
5
|
+
export interface UserActivityFilter {
|
|
6
|
+
dateRange: string[] | null;
|
|
7
|
+
user: string;
|
|
8
|
+
action: string;
|
|
9
|
+
location: string;
|
|
10
|
+
object: string;
|
|
11
|
+
search: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const INITIAL_USER_ACTIVITY_FILTER: UserActivityFilter;
|
|
14
|
+
export declare const MODELER_SAMPLE_FILTER: UserActivityFilter;
|
|
15
|
+
export declare const USER_OPTIONS: SelectOption[];
|
|
16
|
+
export declare const ACTION_OPTIONS: SelectOption[];
|
|
17
|
+
export declare const LOCATION_OPTIONS: SelectOption[];
|
|
18
|
+
export declare const OBJECT_OPTIONS: SelectOption[];
|
|
19
|
+
export interface UserActivityRow {
|
|
20
|
+
id: number;
|
|
21
|
+
time: string;
|
|
22
|
+
user: string;
|
|
23
|
+
userId: string;
|
|
24
|
+
action: string;
|
|
25
|
+
location: string;
|
|
26
|
+
object: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const USER_ACTIVITY_ROWS: UserActivityRow[];
|
|
29
|
+
export interface FindingsFilter {
|
|
30
|
+
search: string;
|
|
31
|
+
auditeeName: string;
|
|
32
|
+
assessmentName: string;
|
|
33
|
+
priority: string | null;
|
|
34
|
+
sectorId: string | null;
|
|
35
|
+
assessmentYearName: string;
|
|
36
|
+
status: string | null;
|
|
37
|
+
}
|
|
38
|
+
export declare const INITIAL_FINDINGS_FILTER: FindingsFilter;
|
|
39
|
+
export declare const AUDITEE_OPTIONS: SelectOption[];
|
|
40
|
+
export declare const ASSESSMENT_OPTIONS: SelectOption[];
|
|
41
|
+
export declare const YEAR_OPTIONS: SelectOption[];
|
|
42
|
+
export declare const PRIORITY_OPTIONS: SelectOption[];
|
|
43
|
+
export declare const SECTOR_OPTIONS: SelectOption[];
|
|
44
|
+
export declare const STATUS_OPTIONS: SelectOption[];
|
|
45
|
+
export interface ControlInstrumentOption {
|
|
46
|
+
id: string;
|
|
47
|
+
code: string;
|
|
48
|
+
name: string;
|
|
49
|
+
}
|
|
50
|
+
export interface DetectionFilter {
|
|
51
|
+
integrityAttributeId: string;
|
|
52
|
+
controlObjectiveId: string;
|
|
53
|
+
controlInstruments: ControlInstrumentOption[] | 'all';
|
|
54
|
+
questionType: string;
|
|
55
|
+
}
|
|
56
|
+
export declare const INITIAL_DETECTION_FILTER: DetectionFilter;
|
|
57
|
+
export declare const INTEGRITY_ATTRIBUTE_OPTIONS: SelectOption[];
|
|
58
|
+
export declare const CONTROL_OBJECTIVE_OPTIONS: SelectOption[];
|
|
59
|
+
export declare const QUESTION_TYPE_OPTIONS: SelectOption[];
|
|
60
|
+
export declare const CONTROL_INSTRUMENTS: ControlInstrumentOption[];
|
|
61
|
+
export declare const DETECTION_SAMPLE_WITH_INSTRUMENTS: DetectionFilter;
|
|
62
|
+
export declare const DETECTION_SAMPLE_EMPTY_LIST: DetectionFilter;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { PersistentStorageType } from '../../components';
|
|
4
|
+
interface DemoProps {
|
|
5
|
+
storageKey?: string;
|
|
6
|
+
storage?: PersistentStorageType;
|
|
7
|
+
}
|
|
8
|
+
declare function UserActivityFilterDemo({ storageKey, storage, }: DemoProps): React.JSX.Element;
|
|
9
|
+
declare const meta: {
|
|
10
|
+
title: string;
|
|
11
|
+
component: typeof UserActivityFilterDemo;
|
|
12
|
+
parameters: {
|
|
13
|
+
layout: string;
|
|
14
|
+
a11y: {
|
|
15
|
+
test: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
argTypes: {
|
|
19
|
+
storageKey: {
|
|
20
|
+
control: "text";
|
|
21
|
+
description: string;
|
|
22
|
+
table: {
|
|
23
|
+
defaultValue: {
|
|
24
|
+
summary: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
storage: {
|
|
29
|
+
control: "inline-radio";
|
|
30
|
+
options: string[];
|
|
31
|
+
description: string;
|
|
32
|
+
table: {
|
|
33
|
+
defaultValue: {
|
|
34
|
+
summary: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default meta;
|
|
41
|
+
type Story = StoryObj<typeof meta>;
|
|
42
|
+
export declare const Default: Story;
|
|
43
|
+
export declare const QaamsFindings: Story;
|
|
44
|
+
export declare const QaamsDetection: Story;
|
|
45
|
+
export declare const NoStorage: Story;
|
|
46
|
+
export declare const ServerTableSimulation: Story;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface DebounceDemoProps {
|
|
4
|
+
delay?: number;
|
|
5
|
+
}
|
|
6
|
+
declare function DebounceDemo({ delay }: DebounceDemoProps): React.JSX.Element;
|
|
7
|
+
declare const meta: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: typeof DebounceDemo;
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: string;
|
|
12
|
+
a11y: {
|
|
13
|
+
test: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
argTypes: {
|
|
17
|
+
delay: {
|
|
18
|
+
control: "number";
|
|
19
|
+
description: string;
|
|
20
|
+
table: {
|
|
21
|
+
defaultValue: {
|
|
22
|
+
summary: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default meta;
|
|
29
|
+
type Story = StoryObj<typeof meta>;
|
|
30
|
+
export declare const Default: Story;
|
|
31
|
+
export declare const CustomDelay: Story;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare function DebounceDemo(): React.JSX.Element;
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof DebounceDemo;
|
|
7
|
+
tags: string[];
|
|
8
|
+
parameters: {
|
|
9
|
+
a11y: {
|
|
10
|
+
test: string;
|
|
11
|
+
};
|
|
12
|
+
chromatic: {
|
|
13
|
+
disableSnapshot: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
export declare const ValueArrivesAfterDelay: Story;
|