@slipstream-ui/core 0.11.8 → 0.11.9
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/index.d.mts +61 -9
- package/dist/index.d.ts +61 -9
- package/dist/index.js +604 -469
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +603 -469
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +1 -1
- package/dist/manifests/alert.manifest.json +1 -1
- package/dist/manifests/announcement-bar.manifest.json +1 -1
- package/dist/manifests/app-shell.manifest.json +1 -1
- package/dist/manifests/applied-filters.manifest.json +1 -1
- package/dist/manifests/article-card.manifest.json +1 -1
- package/dist/manifests/auth-layout.manifest.json +1 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +1 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +1 -1
- package/dist/manifests/breadcrumb.manifest.json +1 -1
- package/dist/manifests/button-group.manifest.json +1 -1
- package/dist/manifests/button.manifest.json +4 -2
- package/dist/manifests/calendar.manifest.json +1 -1
- package/dist/manifests/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +1 -1
- package/dist/manifests/comparison-table.manifest.json +1 -1
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cover-image.manifest.json +1 -1
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.manifest.json +22 -1
- package/dist/manifests/date-picker-popover.manifest.json +1 -1
- package/dist/manifests/date-picker.manifest.json +1 -1
- package/dist/manifests/date-range-picker.manifest.json +1 -1
- package/dist/manifests/deal-card.manifest.json +1 -1
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +1 -1
- package/dist/manifests/drawer.manifest.json +1 -1
- package/dist/manifests/empty-state.manifest.json +1 -1
- package/dist/manifests/entity-card.manifest.json +1 -1
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/image.manifest.json +1 -1
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list-toolbar.manifest.json +120 -0
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +1 -1
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +1 -1
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +4 -4
- package/dist/manifests/select-menu.manifest.json +1 -1
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +1 -1
- package/dist/manifests/site-header.manifest.json +1 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +1 -1
- package/dist/manifests/stepper.manifest.json +1 -1
- package/dist/manifests/switch.manifest.json +1 -1
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +1 -1
- package/dist/manifests/table.manifest.json +1 -1
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +1 -1
- package/dist/manifests/text.manifest.json +1 -1
- package/dist/manifests/textarea.manifest.json +1 -1
- package/dist/manifests/theme-toggle.manifest.json +1 -1
- package/dist/manifests/time-picker.manifest.json +1 -1
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +1 -1
- package/dist/manifests/tombstone-card.manifest.json +1 -1
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/button/Button.d.ts +2 -2
- package/dist/src/components/button/Button.js +1 -0
- package/dist/src/components/button/Button.js.map +1 -1
- package/dist/src/components/button/Button.mjs +1 -0
- package/dist/src/components/button/Button.mjs.map +1 -1
- package/dist/src/components/data-table/DataTable.d.ts +12 -1
- package/dist/src/components/data-table/DataTable.js +189 -112
- package/dist/src/components/data-table/DataTable.js.map +1 -1
- package/dist/src/components/data-table/DataTable.mjs +189 -112
- package/dist/src/components/data-table/DataTable.mjs.map +1 -1
- package/dist/src/components/list-toolbar/ListToolbar.d.ts +25 -0
- package/dist/src/components/list-toolbar/ListToolbar.js +68 -0
- package/dist/src/components/list-toolbar/ListToolbar.js.map +1 -0
- package/dist/src/components/list-toolbar/ListToolbar.mjs +44 -0
- package/dist/src/components/list-toolbar/ListToolbar.mjs.map +1 -0
- package/dist/src/components/list-toolbar/index.d.ts +1 -0
- package/dist/src/components/list-toolbar/index.js +23 -0
- package/dist/src/components/list-toolbar/index.js.map +1 -0
- package/dist/src/components/list-toolbar/index.mjs +2 -0
- package/dist/src/components/list-toolbar/index.mjs.map +1 -0
- package/dist/src/components/segmented-control/SegmentedControl.d.ts +20 -4
- package/dist/src/components/segmented-control/SegmentedControl.js +17 -3
- package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.mjs +17 -3
- package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/src/components/button/Button.ssr.test.tsx +1 -1
- package/src/components/button/Button.test.tsx +6 -0
- package/src/components/button/Button.tsx +1 -0
- package/src/components/data-table/DataTable.test.tsx +99 -0
- package/src/components/data-table/DataTable.tsx +115 -1
- package/src/components/list-toolbar/ListToolbar.test.tsx +50 -0
- package/src/components/list-toolbar/ListToolbar.tsx +64 -0
- package/src/components/list-toolbar/index.ts +1 -0
- package/src/components/segmented-control/SegmentedControl.test.tsx +51 -0
- package/src/components/segmented-control/SegmentedControl.tsx +36 -4
- package/src/index.ts +1 -0
- package/src/manifests/accordion.manifest.json +1 -1
- package/src/manifests/alert.manifest.json +1 -1
- package/src/manifests/announcement-bar.manifest.json +1 -1
- package/src/manifests/app-shell.manifest.json +1 -1
- package/src/manifests/applied-filters.manifest.json +1 -1
- package/src/manifests/article-card.manifest.json +1 -1
- package/src/manifests/auth-layout.manifest.json +1 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +1 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +1 -1
- package/src/manifests/breadcrumb.manifest.json +1 -1
- package/src/manifests/button-group.manifest.json +1 -1
- package/src/manifests/button.manifest.json +4 -2
- package/src/manifests/calendar.manifest.json +1 -1
- package/src/manifests/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +1 -1
- package/src/manifests/comparison-table.manifest.json +1 -1
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cover-image.manifest.json +1 -1
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.manifest.json +22 -1
- package/src/manifests/date-picker-popover.manifest.json +1 -1
- package/src/manifests/date-picker.manifest.json +1 -1
- package/src/manifests/date-range-picker.manifest.json +1 -1
- package/src/manifests/deal-card.manifest.json +1 -1
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +1 -1
- package/src/manifests/drawer.manifest.json +1 -1
- package/src/manifests/empty-state.manifest.json +1 -1
- package/src/manifests/entity-card.manifest.json +1 -1
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/image.manifest.json +1 -1
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list-toolbar.manifest.json +120 -0
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +1 -1
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +1 -1
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +4 -4
- package/src/manifests/select-menu.manifest.json +1 -1
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +1 -1
- package/src/manifests/site-header.manifest.json +1 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +1 -1
- package/src/manifests/stepper.manifest.json +1 -1
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +1 -1
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +1 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +1 -1
- package/src/manifests/tooltip.manifest.json +1 -1
|
@@ -231,6 +231,105 @@ describe('DataTable selection', () => {
|
|
|
231
231
|
});
|
|
232
232
|
});
|
|
233
233
|
|
|
234
|
+
describe('DataTable cardLayout', () => {
|
|
235
|
+
const cardColumns: DataTableColumn<Row>[] = [
|
|
236
|
+
{ key: 'name', header: 'Name' },
|
|
237
|
+
{ key: 'messages', header: 'Messages', align: 'right' },
|
|
238
|
+
];
|
|
239
|
+
const cardRows: Row[] = [
|
|
240
|
+
{ id: '1', name: 'Alpha', messages: 3 },
|
|
241
|
+
{ id: '2', name: 'Beta', messages: 12 },
|
|
242
|
+
];
|
|
243
|
+
|
|
244
|
+
it('renders each row as a definition-list card using column headers as labels', () => {
|
|
245
|
+
render(
|
|
246
|
+
<DataTable columns={cardColumns} data={cardRows} rowId={(row) => row.id} cardLayout caption="People" />
|
|
247
|
+
);
|
|
248
|
+
const list = screen.getByRole('list', { name: 'People' });
|
|
249
|
+
expect(within(list).getAllByRole('listitem')).toHaveLength(2);
|
|
250
|
+
const first = within(list).getAllByRole('listitem')[0];
|
|
251
|
+
// Column header becomes the field label; cell value renders beside it.
|
|
252
|
+
expect(within(first).getByText('Name')).toBeInTheDocument();
|
|
253
|
+
expect(within(first).getByText('Alpha')).toBeInTheDocument();
|
|
254
|
+
expect(within(first).getByText('Messages')).toBeInTheDocument();
|
|
255
|
+
expect(within(first).getByText('3')).toBeInTheDocument();
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
it('swaps layouts with CSS breakpoint classes (true defaults to md)', () => {
|
|
259
|
+
const { container } = render(
|
|
260
|
+
<DataTable columns={cardColumns} data={cardRows} rowId={(row) => row.id} cardLayout />
|
|
261
|
+
);
|
|
262
|
+
const tableWrapper = container.querySelector('.overflow-x-auto')!;
|
|
263
|
+
const cards = screen.getByRole('list');
|
|
264
|
+
expect(tableWrapper.className).toContain('max-md:hidden');
|
|
265
|
+
expect(cards.className).toContain('md:hidden');
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
it('honours an explicit breakpoint string', () => {
|
|
269
|
+
const { container } = render(
|
|
270
|
+
<DataTable columns={cardColumns} data={cardRows} rowId={(row) => row.id} cardLayout="lg" />
|
|
271
|
+
);
|
|
272
|
+
expect(container.querySelector('.overflow-x-auto')!.className).toContain('max-lg:hidden');
|
|
273
|
+
expect(screen.getByRole('list').className).toContain('lg:hidden');
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
it('does not render cards when cardLayout is unset', () => {
|
|
277
|
+
render(<DataTable columns={cardColumns} data={cardRows} rowId={(row) => row.id} />);
|
|
278
|
+
expect(screen.queryByRole('list')).not.toBeInTheDocument();
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
it('keeps row interaction and selection working in card layout', async () => {
|
|
282
|
+
const user = userEvent.setup();
|
|
283
|
+
const onRowClick = vi.fn();
|
|
284
|
+
const onSelectedRowIdsChange = vi.fn();
|
|
285
|
+
render(
|
|
286
|
+
<DataTable
|
|
287
|
+
columns={cardColumns}
|
|
288
|
+
data={cardRows}
|
|
289
|
+
rowId={(row) => row.id}
|
|
290
|
+
cardLayout
|
|
291
|
+
onRowClick={onRowClick}
|
|
292
|
+
selectedRowIds={[]}
|
|
293
|
+
onSelectedRowIdsChange={onSelectedRowIdsChange}
|
|
294
|
+
/>
|
|
295
|
+
);
|
|
296
|
+
const list = screen.getByRole('list');
|
|
297
|
+
const firstCard = within(list).getAllByRole('listitem')[0];
|
|
298
|
+
const cardBody = within(firstCard).getByText('Alpha').closest('[tabindex="0"]')!;
|
|
299
|
+
expect(cardBody).toHaveAttribute('tabindex', '0');
|
|
300
|
+
fireEvent.keyDown(cardBody, { key: 'Enter' });
|
|
301
|
+
expect(onRowClick).toHaveBeenCalledWith(cardRows[0]);
|
|
302
|
+
|
|
303
|
+
// Card checkbox toggles selection without triggering the row click.
|
|
304
|
+
await user.click(within(firstCard).getByRole('checkbox', { name: 'Select row 1' }));
|
|
305
|
+
expect(onSelectedRowIdsChange).toHaveBeenCalledWith(['1']);
|
|
306
|
+
expect(onRowClick).toHaveBeenCalledTimes(1);
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
it('shows the empty message in card layout', () => {
|
|
310
|
+
render(
|
|
311
|
+
<DataTable columns={cardColumns} data={[]} rowId={(row) => row.id} cardLayout emptyMessage="Nothing here" />
|
|
312
|
+
);
|
|
313
|
+
expect(within(screen.getByRole('list')).getByText('Nothing here')).toBeInTheDocument();
|
|
314
|
+
});
|
|
315
|
+
|
|
316
|
+
it('has no accessibility violations in card layout', async () => {
|
|
317
|
+
const { container } = render(
|
|
318
|
+
<DataTable
|
|
319
|
+
columns={cardColumns}
|
|
320
|
+
data={cardRows}
|
|
321
|
+
rowId={(row) => row.id}
|
|
322
|
+
cardLayout
|
|
323
|
+
caption="People"
|
|
324
|
+
selectedRowIds={[]}
|
|
325
|
+
onSelectedRowIdsChange={() => undefined}
|
|
326
|
+
pageSize={2}
|
|
327
|
+
/>
|
|
328
|
+
);
|
|
329
|
+
expect(await axe(container)).toHaveNoViolations();
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
|
|
234
333
|
describe('DataTable manual pagination', () => {
|
|
235
334
|
const rows: Row[] = [
|
|
236
335
|
{ id: '1', name: 'Alpha', messages: 1 },
|
|
@@ -27,6 +27,9 @@ export type DataTableColumn<T> = {
|
|
|
27
27
|
|
|
28
28
|
export type SortIconState = 'none' | 'asc' | 'desc';
|
|
29
29
|
|
|
30
|
+
/** Viewport breakpoint below which card layout takes over. */
|
|
31
|
+
export type DataTableCardBreakpoint = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
32
|
+
|
|
30
33
|
export type DataTableProps<T> = {
|
|
31
34
|
/** Column configuration — everything about the table's shape. */
|
|
32
35
|
columns: DataTableColumn<T>[];
|
|
@@ -82,6 +85,15 @@ export type DataTableProps<T> = {
|
|
|
82
85
|
density?: 'default' | 'compact';
|
|
83
86
|
/** Zebra-striped rows. */
|
|
84
87
|
zebra?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Responsive card fallback: below the given breakpoint each row renders as
|
|
90
|
+
* a definition-list card (column headers become field labels) instead of a
|
|
91
|
+
* table row — the fix for unreadable horizontal scroll on narrow viewports.
|
|
92
|
+
* `true` enables it below `md` (768px); a string picks the breakpoint.
|
|
93
|
+
* Both layouts are rendered and swapped with CSS only, so sorting,
|
|
94
|
+
* selection, pagination, and row callbacks behave identically in each.
|
|
95
|
+
*/
|
|
96
|
+
cardLayout?: boolean | DataTableCardBreakpoint;
|
|
85
97
|
/** Render skeleton placeholder rows (announced via aria-busy). */
|
|
86
98
|
loading?: boolean;
|
|
87
99
|
/**
|
|
@@ -95,6 +107,14 @@ export type DataTableProps<T> = {
|
|
|
95
107
|
|
|
96
108
|
type SortState = { key: string; dir: 'asc' | 'desc' } | null;
|
|
97
109
|
|
|
110
|
+
const cardBreakpointClasses: Record<DataTableCardBreakpoint, { table: string; cards: string }> = {
|
|
111
|
+
sm: { table: 'max-sm:hidden', cards: 'sm:hidden' },
|
|
112
|
+
md: { table: 'max-md:hidden', cards: 'md:hidden' },
|
|
113
|
+
lg: { table: 'max-lg:hidden', cards: 'lg:hidden' },
|
|
114
|
+
xl: { table: 'max-xl:hidden', cards: 'xl:hidden' },
|
|
115
|
+
'2xl': { table: 'max-2xl:hidden', cards: '2xl:hidden' },
|
|
116
|
+
};
|
|
117
|
+
|
|
98
118
|
function compareValues(a: unknown, b: unknown): number {
|
|
99
119
|
if (typeof a === 'number' && typeof b === 'number') return a - b;
|
|
100
120
|
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
@@ -136,6 +156,7 @@ export function DataTable<T>({
|
|
|
136
156
|
stickyHeader,
|
|
137
157
|
density = 'default',
|
|
138
158
|
zebra,
|
|
159
|
+
cardLayout,
|
|
139
160
|
loading,
|
|
140
161
|
loadingRows,
|
|
141
162
|
className,
|
|
@@ -226,9 +247,30 @@ export function DataTable<T>({
|
|
|
226
247
|
return String(raw);
|
|
227
248
|
};
|
|
228
249
|
|
|
250
|
+
const cardBreakpoint = typeof cardLayout === 'string' ? cardLayout : cardLayout ? 'md' : null;
|
|
251
|
+
const cardClasses = cardBreakpoint ? cardBreakpointClasses[cardBreakpoint] : null;
|
|
252
|
+
|
|
229
253
|
const alignClass = (align?: DataTableColumn<T>['align']) =>
|
|
230
254
|
align === 'right' ? 'text-right' : align === 'center' ? 'text-center' : 'text-left';
|
|
231
255
|
|
|
256
|
+
// Card cells reuse the table's cellValue/cell-button logic; the only
|
|
257
|
+
// difference is presentation (dt/dd definition list instead of td).
|
|
258
|
+
const cardCell = (row: T, column: DataTableColumn<T>, index: number): React.ReactNode => {
|
|
259
|
+
const value = cellValue(row, column, index);
|
|
260
|
+
if (column.onClick) {
|
|
261
|
+
return (
|
|
262
|
+
<button
|
|
263
|
+
type="button"
|
|
264
|
+
onClick={() => column.onClick!(row)}
|
|
265
|
+
className="block w-full rounded px-1.5 py-0.5 text-left transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
266
|
+
>
|
|
267
|
+
{value}
|
|
268
|
+
</button>
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
return value;
|
|
272
|
+
};
|
|
273
|
+
|
|
232
274
|
return (
|
|
233
275
|
<div className={cn('w-full space-y-3', className)}>
|
|
234
276
|
{selectionEnabled && selectedIds.length > 0 && bulkActions && (
|
|
@@ -237,7 +279,9 @@ export function DataTable<T>({
|
|
|
237
279
|
<div className="flex flex-wrap items-center gap-2">{bulkActions}</div>
|
|
238
280
|
</div>
|
|
239
281
|
)}
|
|
240
|
-
<div
|
|
282
|
+
<div
|
|
283
|
+
className={cn('w-full overflow-x-auto rounded-lg border border-border', cardClasses?.table)}
|
|
284
|
+
>
|
|
241
285
|
<table
|
|
242
286
|
className={cn('w-full caption-bottom', density === 'compact' ? 'text-xs' : 'text-sm')}
|
|
243
287
|
>
|
|
@@ -396,6 +440,76 @@ export function DataTable<T>({
|
|
|
396
440
|
</tbody>
|
|
397
441
|
</table>
|
|
398
442
|
</div>
|
|
443
|
+
{cardClasses && (
|
|
444
|
+
<ul aria-label={caption} aria-busy={loading || undefined} className={cn('space-y-3', cardClasses.cards)}>
|
|
445
|
+
{loading ? (
|
|
446
|
+
Array.from(
|
|
447
|
+
{ length: (loadingRows ?? pageSize ?? Math.min(visible.length, 5)) || 5 },
|
|
448
|
+
(_, skeletonRow) => (
|
|
449
|
+
<li key={`skeleton-${skeletonRow}`} className="rounded-lg border border-border p-3">
|
|
450
|
+
<div className="space-y-2">
|
|
451
|
+
<Skeleton className="h-4 w-1/3" />
|
|
452
|
+
<Skeleton className="h-4 w-full" />
|
|
453
|
+
<Skeleton className="h-4 w-2/3" />
|
|
454
|
+
</div>
|
|
455
|
+
</li>
|
|
456
|
+
)
|
|
457
|
+
)
|
|
458
|
+
) : visible.length === 0 ? (
|
|
459
|
+
<li className="rounded-lg border border-border px-3 py-8 text-center text-sm text-muted-foreground">
|
|
460
|
+
{emptyMessage}
|
|
461
|
+
</li>
|
|
462
|
+
) : (
|
|
463
|
+
visible.map((row, index) => (
|
|
464
|
+
<li key={rowId(row)}>
|
|
465
|
+
<div
|
|
466
|
+
tabIndex={onRowClick ? 0 : undefined}
|
|
467
|
+
onClick={onRowClick ? () => onRowClick(row) : undefined}
|
|
468
|
+
onKeyDown={
|
|
469
|
+
onRowClick
|
|
470
|
+
? (event) => {
|
|
471
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
472
|
+
event.preventDefault();
|
|
473
|
+
onRowClick(row);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
: undefined
|
|
477
|
+
}
|
|
478
|
+
className={cn(
|
|
479
|
+
'rounded-lg border border-border',
|
|
480
|
+
onRowClick &&
|
|
481
|
+
'cursor-pointer transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring'
|
|
482
|
+
)}
|
|
483
|
+
>
|
|
484
|
+
{selectionEnabled && (
|
|
485
|
+
<div
|
|
486
|
+
className="flex items-center justify-end px-3 pt-2"
|
|
487
|
+
onClick={(event) => event.stopPropagation()}
|
|
488
|
+
>
|
|
489
|
+
<Checkbox
|
|
490
|
+
aria-label={`Select row ${rowId(row)}`}
|
|
491
|
+
checked={selectedSet.has(rowId(row))}
|
|
492
|
+
disabled={isRowSelectable ? !isRowSelectable(row) : undefined}
|
|
493
|
+
onCheckedChange={() => toggleRow(rowId(row))}
|
|
494
|
+
/>
|
|
495
|
+
</div>
|
|
496
|
+
)}
|
|
497
|
+
<dl className="divide-y divide-border">
|
|
498
|
+
{columns.map((column) => (
|
|
499
|
+
<div key={column.key} className="px-3 py-2">
|
|
500
|
+
<dt className="text-xs font-medium text-muted-foreground">{column.header}</dt>
|
|
501
|
+
<dd className={cn('mt-0.5 text-sm', alignClass(column.align))}>
|
|
502
|
+
{cardCell(row, column, index)}
|
|
503
|
+
</dd>
|
|
504
|
+
</div>
|
|
505
|
+
))}
|
|
506
|
+
</dl>
|
|
507
|
+
</div>
|
|
508
|
+
</li>
|
|
509
|
+
))
|
|
510
|
+
)}
|
|
511
|
+
</ul>
|
|
512
|
+
)}
|
|
399
513
|
{pageSize && pageCount > 1 && (
|
|
400
514
|
<div className="flex flex-wrap items-center justify-between gap-x-4 gap-y-2">
|
|
401
515
|
<p
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
import { axe } from 'jest-axe';
|
|
3
|
+
import { describe, expect, it } from 'vitest';
|
|
4
|
+
import { ListToolbar } from './ListToolbar';
|
|
5
|
+
|
|
6
|
+
describe('ListToolbar', () => {
|
|
7
|
+
it('renders count, position and note', () => {
|
|
8
|
+
render(
|
|
9
|
+
<ListToolbar
|
|
10
|
+
count={42}
|
|
11
|
+
countLabel="events"
|
|
12
|
+
position="Page 2 of 5"
|
|
13
|
+
note="Sorted by date, soonest first"
|
|
14
|
+
/>
|
|
15
|
+
);
|
|
16
|
+
expect(screen.getByText('42 events')).toBeInTheDocument();
|
|
17
|
+
expect(screen.getByText('Page 2 of 5')).toBeInTheDocument();
|
|
18
|
+
expect(screen.getByText('Sorted by date, soonest first')).toBeInTheDocument();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('defaults the count label to "results"', () => {
|
|
22
|
+
render(<ListToolbar count={7} />);
|
|
23
|
+
expect(screen.getByText('7 results')).toBeInTheDocument();
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
it('renders children controls and applies align', () => {
|
|
27
|
+
const { container } = render(
|
|
28
|
+
<ListToolbar count={3} align="end">
|
|
29
|
+
<button type="button">Grid</button>
|
|
30
|
+
</ListToolbar>
|
|
31
|
+
);
|
|
32
|
+
expect(screen.getByRole('button', { name: 'Grid' })).toBeInTheDocument();
|
|
33
|
+
expect(container.firstChild).toHaveClass('justify-end');
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
it('renders children alone when no summary props are given', () => {
|
|
37
|
+
render(<ListToolbar><span>controls</span></ListToolbar>);
|
|
38
|
+
expect(screen.getByText('controls')).toBeInTheDocument();
|
|
39
|
+
expect(screen.queryByText(/results/)).not.toBeInTheDocument();
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it('has no accessibility violations', async () => {
|
|
43
|
+
const { container } = render(
|
|
44
|
+
<ListToolbar count={12} position="Showing 1–12" note="Sorted by name">
|
|
45
|
+
<button type="button">List</button>
|
|
46
|
+
</ListToolbar>
|
|
47
|
+
);
|
|
48
|
+
expect(await axe(container)).toHaveNoViolations();
|
|
49
|
+
});
|
|
50
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { cn } from '../../utils/cn';
|
|
3
|
+
|
|
4
|
+
export type ListToolbarProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
/** Number of matching results; renders "{count} {countLabel}". */
|
|
6
|
+
count?: number;
|
|
7
|
+
/** Noun for the result count. Default "results". */
|
|
8
|
+
countLabel?: string;
|
|
9
|
+
/** Page/range position text, e.g. "Page 2 of 5" or "Showing 21–40 of 137". */
|
|
10
|
+
position?: React.ReactNode;
|
|
11
|
+
/** Muted note at the end of the summary line, e.g. "Sorted by date, soonest first". */
|
|
12
|
+
note?: React.ReactNode;
|
|
13
|
+
/** Controls rendered at the far end: SegmentedControl view switch, sort Select. */
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
/** Distribution of the bar. Default 'between' (summary left, controls right). */
|
|
16
|
+
align?: 'between' | 'start' | 'center' | 'end';
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const alignClasses = {
|
|
20
|
+
between: 'justify-between',
|
|
21
|
+
start: 'justify-start',
|
|
22
|
+
center: 'justify-center',
|
|
23
|
+
end: 'justify-end',
|
|
24
|
+
} as const;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Slim result bar for filtered lists and directories: result count, optional
|
|
28
|
+
* page position and a "sorted by" note on the left; a view switch (e.g.
|
|
29
|
+
* SegmentedControl in link mode) and sort control on the right. Pair with
|
|
30
|
+
* FilterBar for the input row above and Pagination below.
|
|
31
|
+
*/
|
|
32
|
+
export function ListToolbar({
|
|
33
|
+
count,
|
|
34
|
+
countLabel = 'results',
|
|
35
|
+
position,
|
|
36
|
+
note,
|
|
37
|
+
align = 'between',
|
|
38
|
+
className,
|
|
39
|
+
children,
|
|
40
|
+
...props
|
|
41
|
+
}: ListToolbarProps) {
|
|
42
|
+
const hasSummary = count !== undefined || position !== undefined || note !== undefined;
|
|
43
|
+
return (
|
|
44
|
+
<div
|
|
45
|
+
className={cn('flex flex-wrap items-center gap-x-4 gap-y-2 text-sm', alignClasses[align], className)}
|
|
46
|
+
{...props}
|
|
47
|
+
>
|
|
48
|
+
{hasSummary && (
|
|
49
|
+
<p className="flex flex-wrap items-baseline gap-x-2 text-muted-foreground" aria-live="polite">
|
|
50
|
+
{count !== undefined && (
|
|
51
|
+
<span className="font-medium text-foreground">
|
|
52
|
+
{count} {countLabel}
|
|
53
|
+
</span>
|
|
54
|
+
)}
|
|
55
|
+
{position && <span>{position}</span>}
|
|
56
|
+
{note && <span className="text-xs">{note}</span>}
|
|
57
|
+
</p>
|
|
58
|
+
)}
|
|
59
|
+
{children && <div className="flex flex-wrap items-center gap-2">{children}</div>}
|
|
60
|
+
</div>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
ListToolbar.displayName = 'ListToolbar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListToolbar';
|
|
@@ -29,6 +29,57 @@ describe('SegmentedControl', () => {
|
|
|
29
29
|
expect(screen.getByRole('radio', { name: 'Investors' })).toHaveAttribute('aria-checked', 'false');
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
+
it('renders option hints as aria-hidden markers with aria-description', () => {
|
|
33
|
+
render(
|
|
34
|
+
<SegmentedControl
|
|
35
|
+
aria-label="Discipline"
|
|
36
|
+
options={[
|
|
37
|
+
{ value: 'amateur', label: 'Amateur' },
|
|
38
|
+
{ value: 'proam', label: 'Pro-Am', hint: 'no Pro-Am ladder published' },
|
|
39
|
+
]}
|
|
40
|
+
/>
|
|
41
|
+
);
|
|
42
|
+
const proam = screen.getByRole('radio', { name: 'Pro-Am' });
|
|
43
|
+
expect(proam).toHaveAttribute('aria-description', 'no Pro-Am ladder published');
|
|
44
|
+
expect(proam.querySelector('[aria-hidden="true"]')).toHaveTextContent(
|
|
45
|
+
'no Pro-Am ladder published'
|
|
46
|
+
);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
it('applies full width at every viewport when fullWidth is true', () => {
|
|
50
|
+
render(
|
|
51
|
+
<SegmentedControl
|
|
52
|
+
aria-label="Layout"
|
|
53
|
+
fullWidth
|
|
54
|
+
options={[
|
|
55
|
+
{ value: 'grid', label: 'Grid' },
|
|
56
|
+
{ value: 'list', label: 'List' },
|
|
57
|
+
]}
|
|
58
|
+
/>
|
|
59
|
+
);
|
|
60
|
+
const group = screen.getByRole('radiogroup');
|
|
61
|
+
expect(group).toHaveClass('flex', 'w-full');
|
|
62
|
+
expect(screen.getByRole('radio', { name: 'Grid' })).toHaveClass('flex-1');
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it('scopes full width below the breakpoint when fullWidth is a breakpoint', () => {
|
|
66
|
+
render(
|
|
67
|
+
<SegmentedControl
|
|
68
|
+
aria-label="Layout"
|
|
69
|
+
fullWidth="md"
|
|
70
|
+
options={[
|
|
71
|
+
{ value: 'grid', label: 'Grid' },
|
|
72
|
+
{ value: 'list', label: 'List' },
|
|
73
|
+
]}
|
|
74
|
+
/>
|
|
75
|
+
);
|
|
76
|
+
const group = screen.getByRole('radiogroup');
|
|
77
|
+
expect(group).toHaveClass('max-md:flex', 'max-md:w-full');
|
|
78
|
+
expect(group).not.toHaveClass('w-full');
|
|
79
|
+
expect(screen.getByRole('radio', { name: 'Grid' })).toHaveClass('max-md:flex-1');
|
|
80
|
+
expect(screen.getByRole('radio', { name: 'Grid' })).not.toHaveClass('flex-1');
|
|
81
|
+
});
|
|
82
|
+
|
|
32
83
|
it('moves selection with arrow keys', () => {
|
|
33
84
|
render(<ControlledExample />);
|
|
34
85
|
const investors = screen.getByRole('radio', { name: 'Investors' });
|
|
@@ -8,6 +8,12 @@ export type SegmentedOption = {
|
|
|
8
8
|
label: React.ReactNode;
|
|
9
9
|
/** Optional leading icon. */
|
|
10
10
|
icon?: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Optional trailing note (e.g. "no Pro-Am ladder"). Rendered as a small
|
|
13
|
+
* muted marker after the label and exposed to assistive tech via
|
|
14
|
+
* `aria-description`, so it does not change the accessible name.
|
|
15
|
+
*/
|
|
16
|
+
hint?: string;
|
|
11
17
|
disabled?: boolean;
|
|
12
18
|
/**
|
|
13
19
|
* Destination URL. When set the segment renders as a link instead of a
|
|
@@ -31,8 +37,13 @@ export type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, '
|
|
|
31
37
|
multiple?: boolean;
|
|
32
38
|
/** Control density. Default 'md'. */
|
|
33
39
|
size?: 'sm' | 'md' | 'lg';
|
|
34
|
-
/**
|
|
35
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Stretch segments to fill the container width. `true` fills at every
|
|
42
|
+
* viewport; a breakpoint string ('sm' | 'md' | 'lg' | 'xl' | '2xl') fills
|
|
43
|
+
* only *below* that breakpoint and hugs content at and above it — the
|
|
44
|
+
* responsive pattern for "full-width on mobile, compact on desktop".
|
|
45
|
+
*/
|
|
46
|
+
fullWidth?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
36
47
|
/** Custom link element for routers (Next Link, react-router Link). */
|
|
37
48
|
linkComponent?: React.ElementType;
|
|
38
49
|
/** Prop used to pass the destination to `linkComponent`. */
|
|
@@ -45,6 +56,14 @@ const sizeClasses = {
|
|
|
45
56
|
lg: 'h-10 px-4 text-sm',
|
|
46
57
|
} as const;
|
|
47
58
|
|
|
59
|
+
const fullWidthBreakpoints = {
|
|
60
|
+
sm: 'max-sm',
|
|
61
|
+
md: 'max-md',
|
|
62
|
+
lg: 'max-lg',
|
|
63
|
+
xl: 'max-xl',
|
|
64
|
+
'2xl': 'max-2xl',
|
|
65
|
+
} as const;
|
|
66
|
+
|
|
48
67
|
/**
|
|
49
68
|
* Segmented control for switching a view or filter. Single-select uses radio
|
|
50
69
|
* semantics and arrow-key navigation; multiple-select uses pressed buttons.
|
|
@@ -94,6 +113,9 @@ export const SegmentedControl = React.forwardRef<HTMLDivElement, SegmentedContro
|
|
|
94
113
|
? current
|
|
95
114
|
: '';
|
|
96
115
|
|
|
116
|
+
const fullWidthBelow =
|
|
117
|
+
typeof fullWidth === 'string' ? fullWidthBreakpoints[fullWidth] : null;
|
|
118
|
+
|
|
97
119
|
const linkMode = options.some((option) => option.href !== undefined);
|
|
98
120
|
const LinkEl = linkComponent ?? 'a';
|
|
99
121
|
const destination = (href: string) => (linkHrefProp === 'to' ? { to: href } : { href });
|
|
@@ -164,7 +186,8 @@ export const SegmentedControl = React.forwardRef<HTMLDivElement, SegmentedContro
|
|
|
164
186
|
aria-label={ariaLabel}
|
|
165
187
|
className={cn(
|
|
166
188
|
'inline-flex items-center gap-1 rounded-lg border border-border bg-muted p-1',
|
|
167
|
-
fullWidth && 'flex w-full',
|
|
189
|
+
fullWidth === true && 'flex w-full',
|
|
190
|
+
fullWidthBelow && `${fullWidthBelow}:flex ${fullWidthBelow}:w-full`,
|
|
168
191
|
className
|
|
169
192
|
)}
|
|
170
193
|
{...props}
|
|
@@ -180,7 +203,8 @@ export const SegmentedControl = React.forwardRef<HTMLDivElement, SegmentedContro
|
|
|
180
203
|
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background',
|
|
181
204
|
'disabled:pointer-events-none disabled:opacity-50',
|
|
182
205
|
sizeClasses[size],
|
|
183
|
-
fullWidth && 'flex-1',
|
|
206
|
+
fullWidth === true && 'flex-1',
|
|
207
|
+
fullWidthBelow && `${fullWidthBelow}:flex-1`,
|
|
184
208
|
active
|
|
185
209
|
? 'bg-background text-foreground shadow-sm'
|
|
186
210
|
: 'text-muted-foreground hover:text-foreground'
|
|
@@ -189,6 +213,11 @@ export const SegmentedControl = React.forwardRef<HTMLDivElement, SegmentedContro
|
|
|
189
213
|
<>
|
|
190
214
|
{option.icon && <span className="shrink-0 [&_svg]:size-4">{option.icon}</span>}
|
|
191
215
|
<span className="truncate">{option.label}</span>
|
|
216
|
+
{option.hint && (
|
|
217
|
+
<span aria-hidden="true" className="shrink-0 text-[10px] font-normal text-muted-foreground/70">
|
|
218
|
+
{option.hint}
|
|
219
|
+
</span>
|
|
220
|
+
)}
|
|
192
221
|
</>
|
|
193
222
|
);
|
|
194
223
|
|
|
@@ -199,6 +228,7 @@ export const SegmentedControl = React.forwardRef<HTMLDivElement, SegmentedContro
|
|
|
199
228
|
key={option.value}
|
|
200
229
|
aria-current={active ? 'page' : undefined}
|
|
201
230
|
aria-disabled={option.disabled || undefined}
|
|
231
|
+
aria-description={option.hint}
|
|
202
232
|
className={cn(segmentClass, option.disabled && 'opacity-50')}
|
|
203
233
|
>
|
|
204
234
|
{segmentContent}
|
|
@@ -209,6 +239,7 @@ export const SegmentedControl = React.forwardRef<HTMLDivElement, SegmentedContro
|
|
|
209
239
|
<LinkEl
|
|
210
240
|
key={option.value}
|
|
211
241
|
{...destination(option.href)}
|
|
242
|
+
aria-description={option.hint}
|
|
212
243
|
className={segmentClass}
|
|
213
244
|
>
|
|
214
245
|
{segmentContent}
|
|
@@ -227,6 +258,7 @@ export const SegmentedControl = React.forwardRef<HTMLDivElement, SegmentedContro
|
|
|
227
258
|
aria-checked={multiple || linkMode ? undefined : active}
|
|
228
259
|
aria-pressed={multiple ? active : undefined}
|
|
229
260
|
aria-current={linkMode && active ? 'page' : undefined}
|
|
261
|
+
aria-description={option.hint}
|
|
230
262
|
disabled={option.disabled}
|
|
231
263
|
tabIndex={focusable ? 0 : -1}
|
|
232
264
|
onClick={() => select(option)}
|
package/src/index.ts
CHANGED
|
@@ -58,6 +58,7 @@ export * from './components/metric-card';
|
|
|
58
58
|
export * from './components/password-input';
|
|
59
59
|
export * from './components/auth-layout';
|
|
60
60
|
export * from './components/filter-bar';
|
|
61
|
+
export * from './components/list-toolbar';
|
|
61
62
|
export * from './components/date-picker';
|
|
62
63
|
export * from './components/date-picker-popover';
|
|
63
64
|
export * from './components/time-picker';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.11.
|
|
7
|
+
"version": "0.11.9",
|
|
8
8
|
"sourceDir": "announcement-bar",
|
|
9
9
|
"exportName": "AnnouncementBar",
|
|
10
10
|
"description": "Dismissible announcement bar with optional action, tone and sticky positioning.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.11.
|
|
7
|
+
"version": "0.11.9",
|
|
8
8
|
"sourceDir": "applied-filters",
|
|
9
9
|
"exportName": "AppliedFilters",
|
|
10
10
|
"description": "Applied-filter summary with a live count, removable chips and an edit action.",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"tier": "molecule",
|
|
5
5
|
"package": "@slipstream-ui/core",
|
|
6
6
|
"importPath": "@slipstream-ui/core",
|
|
7
|
-
"version": "0.11.
|
|
7
|
+
"version": "0.11.9",
|
|
8
8
|
"sourceDir": "article-card",
|
|
9
9
|
"exportName": "ArticleCard",
|
|
10
10
|
"description": "Linked article or resource card with media, eyebrow, title, summary and metadata.",
|