@valiify/dashboard-ui 0.5.0 → 0.5.1
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/CHANGELOG.md +15 -0
- package/COMPONENTS.md +14 -0
- package/class-manifest.json +3 -2
- package/dist/dashboard-ui.css +4 -0
- package/dist/index.css +4 -0
- package/package.json +3 -3
- package/src/components/tabs.css +14 -0
- package/types/components.d.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -34,6 +34,21 @@ whole point of tokens. Changing its _name_ is.
|
|
|
34
34
|
When a rename is genuinely needed, ship the new name alongside the old one, note
|
|
35
35
|
the deprecation here, and remove the old name in a later release.
|
|
36
36
|
|
|
37
|
+
## 0.5.1 — unreleased
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- **`.vd-tab-stretch` — a full-height tab.** Figma stretches a Tabs instance to
|
|
42
|
+
fill a fixed-height header row: the right-panel header on the business account
|
|
43
|
+
review page is 40px, and its underline tabs are drawn `h-full` with the 2px
|
|
44
|
+
active rule on the row's bottom edge. The control ladder pins underline sm at
|
|
45
|
+
24, so a library tab in that row centred and its rule floated 8px above the
|
|
46
|
+
edge. The modifier drops the pinned height (`height: auto; align-self:
|
|
47
|
+
stretch`); type, padding, gap and the rule are unchanged, and the consumer
|
|
48
|
+
gives the row its height. Additive: no existing class changes. The
|
|
49
|
+
`StretchInHeader` story and visual spec assert 40px height, 12px type, 6px
|
|
50
|
+
padding and the 2px rule.
|
|
51
|
+
|
|
37
52
|
## 0.5.0 — 2026-10-01
|
|
38
53
|
|
|
39
54
|
> **Upgrading from npm means upgrading from 0.3.0.** 0.4.0 was released in
|
package/COMPONENTS.md
CHANGED
|
@@ -957,6 +957,8 @@ Sidebar with title, groups, and items. Use `-collapsed` variants for a collapsed
|
|
|
957
957
|
|
|
958
958
|
Three types — `-underline` (32), `-chip` (24), `-segment` (24) — and `-sm` (24, underline only). **A type class is required.**
|
|
959
959
|
|
|
960
|
+
**`.vd-tab-stretch` (0.5.1)** fills a fixed-height header row instead of the pinned 24 / 32, so the active underline sits on the row's bottom edge, as Figma draws a tab stretched to a panel header. Give the row its height (e.g. `.vd-tabs` at `height: 100%` inside a 40px header).
|
|
961
|
+
|
|
960
962
|
**Wrap the label in `.vd-tab-label` with a matching `data-label`** on every sm-height tab (underline `-sm`, chip, segment). Those step from weight 500 to 600 when active, and without the wrapper selection widens the tab and shifts its neighbours; the wrapper reserves the active width. Underline lg keeps one weight, so it doesn't need it.
|
|
961
963
|
|
|
962
964
|
```html
|
|
@@ -978,6 +980,18 @@ Three types — `-underline` (32), `-chip` (24), `-segment` (24) — and `-sm` (
|
|
|
978
980
|
<span class="vd-tab-label" data-label="Overview">Overview</span>
|
|
979
981
|
</button>
|
|
980
982
|
|
|
983
|
+
<!-- Full-height tabs in a 40px header row (0.5.1); the row is given its height -->
|
|
984
|
+
<div style="height: 40px; display: flex; align-items: center">
|
|
985
|
+
<div class="vd-tabs" role="tablist" aria-label="Panel view" style="height: 100%">
|
|
986
|
+
<button class="vd-tab vd-tab-underline vd-tab-sm vd-tab-stretch" role="tab" aria-selected="true">
|
|
987
|
+
<span class="vd-tab-label" data-label="Summary">Summary</span>
|
|
988
|
+
</button>
|
|
989
|
+
<button class="vd-tab vd-tab-underline vd-tab-sm vd-tab-stretch" role="tab" aria-selected="false" tabindex="-1">
|
|
990
|
+
<span class="vd-tab-label" data-label="Activity">Activity</span>
|
|
991
|
+
</button>
|
|
992
|
+
</div>
|
|
993
|
+
</div>
|
|
994
|
+
|
|
981
995
|
<!-- With subtitle -->
|
|
982
996
|
<button class="vd-tab vd-tab-underline" role="tab" aria-selected="true">
|
|
983
997
|
<span>
|
package/class-manifest.json
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"componentNamespace": "vd-",
|
|
7
7
|
"utilityPrefix": "vd:",
|
|
8
8
|
"counts": {
|
|
9
|
-
"components":
|
|
10
|
-
"namespaced":
|
|
9
|
+
"components": 395,
|
|
10
|
+
"namespaced": 395,
|
|
11
11
|
"unprefixed": 0,
|
|
12
12
|
"customUtilities": 1,
|
|
13
13
|
"prefixedUtilities": 308
|
|
@@ -345,6 +345,7 @@
|
|
|
345
345
|
"vd-tab-label",
|
|
346
346
|
"vd-tab-segment",
|
|
347
347
|
"vd-tab-sm",
|
|
348
|
+
"vd-tab-stretch",
|
|
348
349
|
"vd-tab-subtitle",
|
|
349
350
|
"vd-tab-underline",
|
|
350
351
|
"vd-tabs",
|
package/dist/dashboard-ui.css
CHANGED
|
@@ -3430,6 +3430,10 @@ dialog.vd-modal::backdrop {
|
|
|
3430
3430
|
line-height: var(--tw-leading, var(--text-action-compact--line-height));
|
|
3431
3431
|
font-weight: var(--tw-font-weight, var(--text-action-compact--font-weight));
|
|
3432
3432
|
}
|
|
3433
|
+
.vd-tab-stretch {
|
|
3434
|
+
height: auto;
|
|
3435
|
+
align-self: stretch;
|
|
3436
|
+
}
|
|
3433
3437
|
.vd-tab-underline:hover:not(:disabled):not([aria-disabled="true"]) {
|
|
3434
3438
|
color: var(--color-content-primary);
|
|
3435
3439
|
}
|
package/dist/index.css
CHANGED
|
@@ -3591,6 +3591,10 @@
|
|
|
3591
3591
|
line-height: var(--tw-leading, var(--text-action-compact--line-height));
|
|
3592
3592
|
font-weight: var(--tw-font-weight, var(--text-action-compact--font-weight));
|
|
3593
3593
|
}
|
|
3594
|
+
.vd-tab-stretch {
|
|
3595
|
+
height: auto;
|
|
3596
|
+
align-self: stretch;
|
|
3597
|
+
}
|
|
3594
3598
|
.vd-tab-underline:hover:not(:disabled):not([aria-disabled="true"]) {
|
|
3595
3599
|
color: var(--color-content-primary);
|
|
3596
3600
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valiify/dashboard-ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Tailwind CSS component library for Valiify Dashboard applications",
|
|
5
5
|
"style": "dist/index.css",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"verify:codemod": "node scripts/verify-codemod.mjs",
|
|
59
59
|
"verify:registry": "node scripts/verify-registry.mjs",
|
|
60
60
|
"verify:snippets": "node scripts/verify-snippets.mjs",
|
|
61
|
-
"build:registry": "node
|
|
61
|
+
"build:registry": "node val/tools/generate-registry.mjs .",
|
|
62
62
|
"storybook": "storybook dev -p 6006",
|
|
63
63
|
"build-storybook": "node scripts/build-storybook.mjs",
|
|
64
64
|
"verify:visual": "node scripts/visual-verify.mjs",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@storybook/addon-themes": "^10.5.10",
|
|
96
96
|
"@storybook/html-vite": "^10.5.10",
|
|
97
97
|
"@tailwindcss/postcss": "^4.3.3",
|
|
98
|
-
"@valiify/val-core": "^0.
|
|
98
|
+
"@valiify/val-core": "^0.9.0",
|
|
99
99
|
"chromatic": "^18.7.2",
|
|
100
100
|
"lucide-static": "^1.33.0",
|
|
101
101
|
"pixelmatch": "^7.2.0",
|
package/src/components/tabs.css
CHANGED
|
@@ -216,6 +216,20 @@
|
|
|
216
216
|
@apply text-action-compact; /* 12 / 16 / 500 */
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
/* Full-height tab (0.5.1). Figma stretches a Tabs instance to fill a
|
|
220
|
+
fixed-height header row (a 40px panel header draws its underline tabs
|
|
221
|
+
h-full, with the 2px active rule on the row's bottom edge). The control
|
|
222
|
+
ladder pins 24 / 32, so a pinned tab inside a taller row centres and its
|
|
223
|
+
rule floats above the row's edge. This drops the pinned height and
|
|
224
|
+
stretches the tab to its flex row instead; type, padding, gap and the
|
|
225
|
+
rule are untouched. The row (`.vd-tabs`, or whatever flex parent holds
|
|
226
|
+
the tabs) must have the height to fill — the consumer sets it.
|
|
227
|
+
Must stay AFTER .vd-tab-underline and .vd-tab-sm: it ties with both on
|
|
228
|
+
specificity, so source order decides. */
|
|
229
|
+
.vd-tab-stretch {
|
|
230
|
+
@apply h-auto self-stretch;
|
|
231
|
+
}
|
|
232
|
+
|
|
219
233
|
/* --- States ------------------------------------------------------------ */
|
|
220
234
|
|
|
221
235
|
/* Underline hover reaches the ACTIVE colour but keeps rest's weight and gains
|
package/types/components.d.ts
CHANGED
|
@@ -249,9 +249,11 @@ export type TagClass = TagPart | TagSize | TagKind | TagState;
|
|
|
249
249
|
// Tabs component classes
|
|
250
250
|
export type TabsType = "vd-tab-underline" | "vd-tab-chip" | "vd-tab-segment";
|
|
251
251
|
export type TabsSize = "vd-tab-sm";
|
|
252
|
+
/** 0.5.1: drop the pinned control height and fill the flex row (a fixed-height header). */
|
|
253
|
+
export type TabsModifier = "vd-tab-stretch";
|
|
252
254
|
export type TabsPart = "vd-tabs" | "vd-tab" | "vd-tab-subtitle" | "vd-tab-label";
|
|
253
255
|
export type TabsState = "vd-with-ring";
|
|
254
|
-
export type TabsClass = TabsPart | TabsType | TabsSize | TabsState;
|
|
256
|
+
export type TabsClass = TabsPart | TabsType | TabsSize | TabsModifier | TabsState;
|
|
255
257
|
|
|
256
258
|
// SegmentSelector component classes
|
|
257
259
|
export type SegmentSelectorClass =
|