@cboxdk/cbox-ui 0.15.1 → 0.15.2

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/README.md CHANGED
@@ -105,7 +105,7 @@ Match id's existing patterns — see id/resources/js/pages/* for examples.
105
105
  |---|---|
106
106
  | `PageShell` | Outer page container with vertical rhythm. |
107
107
  | `PageHeader` | Title + description + actions slot. Tab-strip-aware (no padding mismatch when followed by `PageTabs`). |
108
- | `PageTabs` | Tabs strip on the page baseline. Pass `currentPath` + optional `LinkComponent` (Inertia's `Link`, Next's, etc.). |
108
+ | `PageTabs` | Tabs strip on the page baseline. Pass `currentPath` + optional `LinkComponent` (Inertia's `Link`, Next's, etc.). Its CSS comes with `@cboxdk/cbox-ui/tokens`; an app without that import takes `@cboxdk/cbox-ui/page-tabs.css`. |
109
109
  | `DataPanel` / `PanelBody` / `SectionHeader` | The default building block for content sections. |
110
110
  | `StatusPill` | Coloured chip for status / state. Tones: success / warning / destructive / info / muted / neutral. |
111
111
  | `EmptyState` | Centred icon + heading + description for empty lists. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cboxdk/cbox-ui",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "private": false,
5
5
  "description": "Cbox shared UI — layout primitives, design tokens, and brand assets used across every Cbox-family app (id, cortex, atlas, track, …).",
6
6
  "repository": {
@@ -43,7 +43,8 @@
43
43
  "./tailwind": "./tailwind.preset.js",
44
44
  "./assets/*": "./assets/*",
45
45
  "./shell.css": "./tokens/shell.css",
46
- "./controls.css": "./tokens/controls.css"
46
+ "./controls.css": "./tokens/controls.css",
47
+ "./page-tabs.css": "./tokens/page-tabs.css"
47
48
  },
48
49
  "scripts": {
49
50
  "build": "tsup",
package/tokens/shell.css CHANGED
@@ -449,8 +449,8 @@ textarea.cbx-input { height: auto; padding: 10px 12px; resize: vertical; min-hei
449
449
  .cbx-m-pill { display: flex; align-items: center; gap: 8px; height: 40px; min-width: 0; max-width: 220px; padding: 0 10px 0 4px; border-radius: 20px; background: var(--secondary); color: var(--foreground); }
450
450
  .cbx-m-pill .cbx-chip { width: 30px; height: 30px; border-radius: 15px; font-size: 11px; }
451
451
  .cbx-m-pill-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.15; }
452
- .cbx-m-pill-top { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--muted-foreground); }
453
- .cbx-m-pill-main { display: flex; align-items: center; gap: 5px; max-width: 150px; min-width: 0; font-size: 14px; font-weight: 600; }
452
+ .cbx-m-pill-top { max-width: min(150px, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--muted-foreground); }
453
+ .cbx-m-pill-main { display: flex; align-items: center; gap: 5px; max-width: min(150px, 100%); min-width: 0; font-size: 14px; font-weight: 600; }
454
454
  .cbx-m-pill-chevron { flex: none; color: var(--muted-foreground); }
455
455
  .cbx-m-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 10px; color: var(--foreground); }
456
456
  .cbx-m-icon.is-primary { color: var(--primary); }