@matthiaskrijgsman/mat-ui 0.0.42 → 0.0.43
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 +6 -0
- package/dist/components/TabButtons.d.ts +3 -0
- package/dist/index.js +470 -464
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -142,6 +142,7 @@ Font weights resolve through a three-step base scale; the semantic tokens below
|
|
|
142
142
|
| `--font-weight-button` | `Button`, `ButtonIconSquare`, `ButtonIconRound`, file-input action text | `--font-weight-strong` |
|
|
143
143
|
| `--font-weight-badge` | `Badge` | `--font-weight-strong` |
|
|
144
144
|
| `--font-weight-tab` | `TabButtons` | `--font-weight-strong` |
|
|
145
|
+
| `--font-weight-tab-count` | `TabButtons` count chip | `--font-weight-strong` |
|
|
145
146
|
| `--font-weight-input-label` | `InputLabel` (label above inputs) | `--font-weight-medium` |
|
|
146
147
|
| `--font-weight-input-description` | `InputDescription` | `--font-weight-medium` |
|
|
147
148
|
| `--font-weight-input-error` | `InputError` | `--font-weight-medium` |
|
|
@@ -159,6 +160,7 @@ Font weights resolve through a three-step base scale; the semantic tokens below
|
|
|
159
160
|
| `--font-size-label` | Dropdown / select group label size | `var(--text-sm)` |
|
|
160
161
|
| `--font-size-description` | `InputDescription` and `PanelField` label size | `var(--text-sm)` |
|
|
161
162
|
| `--font-size-error` | `InputError` size | `var(--text-sm)` |
|
|
163
|
+
| `--font-size-tab-count` | `TabButtons` count chip size | `var(--text-xs)` |
|
|
162
164
|
|
|
163
165
|
> The text size of the input/button itself comes from the **control sizing** scale below (`--control-size-{size}-font-size`), not from these tokens.
|
|
164
166
|
|
|
@@ -342,6 +344,10 @@ All three components also rely on the shared `--color-status-success` / `--color
|
|
|
342
344
|
| `--color-tab-bg-active` | Tab background on press | `rgb(209 213 219 / 0.8)` |
|
|
343
345
|
| `--color-tab-active-bg` | Active tab background | `#ffffff` |
|
|
344
346
|
| `--color-tab-active-border` | Active tab border | `#e5e7eb` |
|
|
347
|
+
| `--color-tab-count-bg` | Count chip background (inactive tab) | `#e5e7eb` |
|
|
348
|
+
| `--color-tab-count-text` | Count chip text (inactive tab) | `#374151` |
|
|
349
|
+
| `--color-tab-active-count-bg` | Count chip background (active tab) | `#111827` |
|
|
350
|
+
| `--color-tab-active-count-text` | Count chip text (active tab) | `#ffffff` |
|
|
345
351
|
|
|
346
352
|
### Color — panel
|
|
347
353
|
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { TablerIcon } from "@tabler/icons-react";
|
|
3
|
+
export type Size = 'sm' | 'md' | 'lg';
|
|
3
4
|
export type TabButton = {
|
|
4
5
|
label: string | React.ReactNode;
|
|
5
6
|
active?: boolean;
|
|
6
7
|
onClick?: () => void;
|
|
7
8
|
href?: string;
|
|
8
9
|
Icon?: TablerIcon;
|
|
10
|
+
count?: React.ReactNode;
|
|
9
11
|
};
|
|
10
12
|
export type TabButtonsProps = {
|
|
11
13
|
className?: string;
|
|
12
14
|
tabs: TabButton[];
|
|
15
|
+
size?: Size;
|
|
13
16
|
};
|
|
14
17
|
export declare const TabButtons: (props: TabButtonsProps) => import("react/jsx-runtime").JSX.Element;
|