Skip to content

Commit 4d2f063

Browse files
Version Packages (#263)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 32b7df4 commit 4d2f063

7 files changed

Lines changed: 66 additions & 76 deletions

File tree

.changeset/add-tabs-component.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

.changeset/badge-array-support.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

.changeset/brave-olives-march.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.changeset/bump-base-ui-1-5-0.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/slimy-hoops-fold.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/core/CHANGELOG.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,70 @@
11
# @tailor-platform/app-shell
22

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+
368
## 1.2.0
469

570
### Minor Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tailor-platform/app-shell",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "An opinionated React application framework for building ERP applications on Tailor Platform",
55
"keywords": [
66
"app-shell",

0 commit comments

Comments
 (0)