@leitware/composables 1.0.1 → 1.2.0

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
@@ -265,10 +265,13 @@ Key token groups:
265
265
  | Typography | `--font-size-base`, `--leading-base`, `--font-heading` |
266
266
  | Spacing | `--spacing` (base unit, used in `calc()`) |
267
267
  | Shape | `--radius`, `--radius-sm`, `--radius-lg` |
268
+ | Control shape | `--button-radius`, `--badge-radius`, `--input-radius`, `--card-radius` |
268
269
  | Motion | `--motion-duration-overlay`, `--motion-duration-disclosure`, `--motion-ease-standard` |
269
270
 
270
271
  The entire type scale derives from `--font-size-base` and `--leading-base` — adjust those two tokens to scale all text globally.
271
272
 
273
+ Control rounding is deliberately two-level. `--radius` drives the shared scale (`--radius-sm` … `--radius-4xl`) used by surfaces such as cards, dialogs, and alerts, while the component tokens `--button-radius` and `--badge-radius` decide button and badge corners independently — set `--button-radius: 9999px` for a pill-button theme without distorting anything else. For one-off exceptions, `Button` and `Badge` also accept `shape="pill"` (fully rounded; icon-size buttons become circles).
274
+
272
275
  ### Motion Modes
273
276
 
274
277
  Set a motion mode on `html`, `body`, or any subtree:
@@ -130,13 +130,8 @@
130
130
  --font-heading: 'Space Grotesk Variable', 'Arial', sans-serif;
131
131
  --font-brand: 'Space Grotesk Variable', 'Arial', sans-serif;
132
132
  --button-radius: 0px;
133
- --button-padding-x: calc(var(--spacing) * 5);
134
- --button-padding-y: calc(var(--spacing) * 2);
135
133
  --card-radius: 0px;
136
134
  --card-padding: calc(var(--spacing) * 6);
137
- --nav-height: calc(var(--spacing) * 14);
138
- --section-padding-y: calc(var(--spacing) * 20);
139
- --hero-padding-y: calc(var(--spacing) * 32);
140
135
  --input-radius: 0px;
141
136
  --input-height: calc(var(--spacing) * 10);
142
137
  --badge-radius: 0px;
@@ -130,15 +130,10 @@
130
130
  --font-heading: 'Inter Variable', sans-serif;
131
131
  --font-brand: 'Bricolage Grotesque Variable', sans-serif;
132
132
  --button-radius: var(--radius-md);
133
- --button-padding-x: calc(var(--spacing) * 4);
134
- --button-padding-y: calc(var(--spacing) * 2);
135
133
  --card-radius: var(--radius-lg);
136
- --card-padding: calc(var(--spacing) * 6);
137
- --nav-height: calc(var(--spacing) * 16);
138
- --section-padding-y: calc(var(--spacing) * 24);
139
- --hero-padding-y: calc(var(--spacing) * 40);
134
+ --card-padding: calc(var(--spacing) * 4);
140
135
  --input-radius: var(--radius-md);
141
- --input-height: calc(var(--spacing) * 10);
136
+ --input-height: calc(var(--spacing) * 7);
142
137
  --badge-radius: var(--radius-4xl);
143
138
  --motion-duration-fast: 100ms;
144
139
  --motion-duration-normal: 200ms;
@@ -130,13 +130,8 @@
130
130
  --font-heading: 'Space Grotesk Variable', 'IBM Plex Sans', sans-serif;
131
131
  --font-brand: 'JetBrains Mono Variable', 'IBM Plex Mono', monospace;
132
132
  --button-radius: var(--radius-4xl);
133
- --button-padding-x: calc(var(--spacing) * 6);
134
- --button-padding-y: calc(var(--spacing) * 2.5);
135
133
  --card-radius: var(--radius-2xl);
136
134
  --card-padding: calc(var(--spacing) * 7);
137
- --nav-height: calc(var(--spacing) * 16);
138
- --section-padding-y: calc(var(--spacing) * 28);
139
- --hero-padding-y: calc(var(--spacing) * 40);
140
135
  --input-radius: var(--radius-xl);
141
136
  --input-height: calc(var(--spacing) * 12);
142
137
  --badge-radius: var(--radius-4xl);
@@ -315,13 +310,8 @@
315
310
  --dropdown-offset: 8;
316
311
  --overlay-offset: 8;
317
312
  --button-radius: var(--radius-4xl);
318
- --button-padding-x: calc(var(--spacing) * 6);
319
- --button-padding-y: calc(var(--spacing) * 2.5);
320
313
  --card-radius: var(--radius-2xl);
321
314
  --card-padding: calc(var(--spacing) * 7);
322
- --nav-height: calc(var(--spacing) * 16);
323
- --section-padding-y: calc(var(--spacing) * 28);
324
- --hero-padding-y: calc(var(--spacing) * 40);
325
315
  --input-radius: var(--radius-xl);
326
316
  --input-height: calc(var(--spacing) * 12);
327
317
  --badge-radius: var(--radius-4xl);