|
1 | 1 | # @tailor-platform/app-shell |
2 | 2 |
|
| 3 | +## 1.3.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- 902fad2: Add `Tabs` compound component for tab-based navigation, backed by Base UI's Tabs primitive. |
| 8 | + |
| 9 | + ```tsx |
| 10 | + import { Tabs } from "@tailor-platform/app-shell"; |
| 11 | + |
| 12 | + <Tabs.Root defaultValue="overview"> |
| 13 | + <Tabs.List> |
| 14 | + <Tabs.Tab value="overview">Overview</Tabs.Tab> |
| 15 | + <Tabs.Tab value="projects">Projects</Tabs.Tab> |
| 16 | + </Tabs.List> |
| 17 | + <Tabs.Panel value="overview">Overview content</Tabs.Panel> |
| 18 | + <Tabs.Panel value="projects">Projects content</Tabs.Panel> |
| 19 | + </Tabs.Root>; |
| 20 | + ``` |
| 21 | + |
| 22 | +- 2197c3f: Add array badge support to DataTable and DescriptionCard with shared `BadgeList` rendering and overflow popover. |
| 23 | + |
| 24 | + ```tsx |
| 25 | + // DataTable — badge column with array accessor |
| 26 | + column({ |
| 27 | + ...infer("tags"), |
| 28 | + type: "badge", |
| 29 | + typeOptions: { |
| 30 | + badgeVariantMap: { Premium: "warning", Office: "outline-info" }, |
| 31 | + maxVisible: 2, |
| 32 | + }, |
| 33 | + }) |
| 34 | + |
| 35 | + // DescriptionCard — array badges with maxVisible |
| 36 | + <DescriptionCard |
| 37 | + data={{ tags: ["urgent", "fragile", "international"] }} |
| 38 | + fields={[{ |
| 39 | + key: "tags", |
| 40 | + label: "Tags", |
| 41 | + type: "badge", |
| 42 | + meta: { |
| 43 | + badgeVariantMap: { urgent: "error", fragile: "warning", international: "outline-info" }, |
| 44 | + maxVisible: 2, |
| 45 | + }, |
| 46 | + }]} |
| 47 | + /> |
| 48 | + ``` |
| 49 | + |
| 50 | + Additional changes: |
| 51 | + |
| 52 | + - Unify badge variant resolution into shared `resolveBadgeVariant()` utility with `"outline-neutral"` as the default variant (previously `"neutral"` in DataTable) |
| 53 | + - Export `BadgeVariant` and `BadgeOptions` types from the public API |
| 54 | + - `inferColumns()` no longer sets a default `render` function — columns without an explicit `type` or `render` now display `—` for null/empty values (aligns with typed-column behavior) |
| 55 | + - Deprecate `BadgeVariantType` in favor of `BadgeVariant` |
| 56 | + |
| 57 | +### Patch Changes |
| 58 | + |
| 59 | +- 4998df4: Fix and improve `DescriptionCard` component: |
| 60 | + |
| 61 | + - Fix relative date formatting producing incorrect output for future dates (negative time diff) |
| 62 | + - Add i18n label support for relative date strings |
| 63 | + - Use react-router `<Link>` for internal navigation in link and reference fields instead of plain `<a>` tags |
| 64 | + |
| 65 | +- b70e3d5: Updated [@base-ui/react](https://www.npmjs.com/package/@base-ui/react) (1.4.1 -> 1.5.0) |
| 66 | +- 99f6b6d: Updated [graphql](https://www.npmjs.com/package/graphql) (^16.13.2 -> ^16.14.0) |
| 67 | + |
3 | 68 | ## 1.2.0 |
4 | 69 |
|
5 | 70 | ### Minor Changes |
|
0 commit comments