@leitware/composables 1.7.0 → 2.0.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 +6 -28
- package/dist/presets/brutalist.css +1 -1
- package/dist/presets/editorial-grid.css +1 -1
- package/dist/presets/kumo.css +8 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -2
- package/rules/composables.md +7 -8
- package/skills/use-composables/references/public-api.md +2 -7
- package/src/_internal/button.tsx +1 -1
- package/src/_internal/flow.tsx +2 -2
- package/src/_internal/tabs.tsx +34 -14
- package/src/index.ts +0 -2
- package/src/opinionated/tabs.tsx +2 -2
- package/src/styles/presets/brutalist.css +1 -1
- package/src/styles/presets/editorial-grid.css +1 -1
- package/src/styles/presets/kumo.css +8 -2
- package/src/styles/presets-data/brutalist.ts +1 -1
- package/src/styles/presets-data/editorial-grid.ts +1 -1
- package/src/styles/presets-data/kumo.ts +4 -1
- package/src/styles/tokens/components.css +10 -0
- package/src/opinionated/blocks/content.tsx +0 -247
- package/src/opinionated/blocks/features.tsx +0 -242
- package/src/opinionated/blocks/heroes.tsx +0 -711
- package/src/opinionated/blocks/index.ts +0 -4
- package/src/opinionated/blocks/shared.tsx +0 -185
package/README.md
CHANGED
|
@@ -134,34 +134,6 @@ import { AIMessage, AIPromptInput } from '@leitware/composables/ai'
|
|
|
134
134
|
|
|
135
135
|
The AI libraries remain optional peer dependencies because they are a materially larger, specialised integration surface. Applications that do not import `@leitware/composables/ai` do not need to install or configure them. If you use that entrypoint, install its optional peers; see the table below.
|
|
136
136
|
|
|
137
|
-
### Page blocks
|
|
138
|
-
|
|
139
|
-
The 26 page blocks cover heroes, content, features, calls to action, a bento grid, and a testimonial. They are available from the root entrypoint or the focused `/blocks` entrypoint:
|
|
140
|
-
|
|
141
|
-
```tsx
|
|
142
|
-
import { Hero06, Cta01 } from '@leitware/composables/blocks'
|
|
143
|
-
|
|
144
|
-
export function LandingPage() {
|
|
145
|
-
return (
|
|
146
|
-
<>
|
|
147
|
-
<Hero06
|
|
148
|
-
title="Build together,"
|
|
149
|
-
highlight="from one place."
|
|
150
|
-
description="A clear workspace for your team."
|
|
151
|
-
primaryCTA={{ text: 'Get started', link: '/start' }}
|
|
152
|
-
/>
|
|
153
|
-
<Cta01
|
|
154
|
-
title="Ready to begin?"
|
|
155
|
-
description="Make your next idea real."
|
|
156
|
-
cta={{ text: 'Start now', link: '/start' }}
|
|
157
|
-
/>
|
|
158
|
-
</>
|
|
159
|
-
)
|
|
160
|
-
}
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
Each block accepts content as typed props and supports `className`; most also accept `variant` and `animation`. Run `bun run dev` and open `/blocks` for an individual preview of every block.
|
|
164
|
-
|
|
165
137
|
The desktop-style preview chrome is also available on its own:
|
|
166
138
|
|
|
167
139
|
```tsx
|
|
@@ -539,6 +511,12 @@ All normal components import from `@leitware/composables`; AI components import
|
|
|
539
511
|
| `dropdown-menu` | Contextual menu triggered by a button |
|
|
540
512
|
| `table-of-contents` | Nested section navigation with an active rail and optional scroll tracking |
|
|
541
513
|
|
|
514
|
+
Tabs default to `variant="segmented"`, with an animated selection surface.
|
|
515
|
+
Use `variant="underline"` for the line treatment; the existing `default` and
|
|
516
|
+
`line` variant names remain supported as aliases. Labels use semantic text
|
|
517
|
+
colours in every preset. Flow uses `--flow-border-width` with a minimum of 1px,
|
|
518
|
+
so canvas and node outlines survive a zero global border width.
|
|
519
|
+
|
|
542
520
|
### Data Display
|
|
543
521
|
|
|
544
522
|
| Component | Description |
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
--transition-slow: var(--motion-duration-slow) var(--motion-ease-linear);
|
|
154
154
|
--hover-transform: none;
|
|
155
155
|
--hover-shadow: none;
|
|
156
|
-
--active-scale:
|
|
156
|
+
--active-scale: 0.98;
|
|
157
157
|
--heading-font-weight: 700;
|
|
158
158
|
--heading-letter-spacing: var(--tracking-tight);
|
|
159
159
|
--body-letter-spacing: var(--tracking-normal);
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
--transition-slow: var(--motion-duration-slow) var(--motion-ease-decelerate);
|
|
154
154
|
--hover-transform: none;
|
|
155
155
|
--hover-shadow: none;
|
|
156
|
-
--active-scale:
|
|
156
|
+
--active-scale: 0.98;
|
|
157
157
|
--heading-font-weight: 700;
|
|
158
158
|
--heading-letter-spacing: var(--tracking-tight);
|
|
159
159
|
--body-letter-spacing: var(--tracking-normal);
|
package/dist/presets/kumo.css
CHANGED
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
--transition-slow: var(--motion-duration-slow) var(--motion-ease-decelerate);
|
|
154
154
|
--hover-transform: none;
|
|
155
155
|
--hover-shadow: none;
|
|
156
|
-
--active-scale:
|
|
156
|
+
--active-scale: 0.98;
|
|
157
157
|
--heading-font-weight: 600;
|
|
158
158
|
--heading-letter-spacing: var(--tracking-tight);
|
|
159
159
|
--body-letter-spacing: var(--tracking-normal);
|
|
@@ -184,6 +184,9 @@
|
|
|
184
184
|
--button-brand-text-shadow: 0 1px 1px #00000059, 0 0 1px #00000040;
|
|
185
185
|
--layer-card-radius: var(--radius-lg);
|
|
186
186
|
--layer-card-shadow: 0 1px 2px #0000000d;
|
|
187
|
+
--tabs-tab-height: calc(var(--spacing) * 8);
|
|
188
|
+
--tabs-list-shadow: 0 0 0 1px var(--border-secondary);
|
|
189
|
+
--tabs-indicator-shadow: 0 1px 2px #0000000d;
|
|
187
190
|
--flow-node-shadow: 0 1px 2px #0000000d;
|
|
188
191
|
--flow-canvas-background-image: radial-gradient(var(--border-disabled) 1px, transparent 1px);
|
|
189
192
|
--button-secondary-border: var(--border-secondary);
|
|
@@ -501,6 +504,9 @@
|
|
|
501
504
|
--card-radius: var(--radius-xl);
|
|
502
505
|
--layer-card-radius: var(--radius-lg);
|
|
503
506
|
--layer-card-shadow: 0 1px 2px #0000000d;
|
|
507
|
+
--tabs-tab-height: calc(var(--spacing) * 8);
|
|
508
|
+
--tabs-list-shadow: 0 0 0 1px var(--border-secondary);
|
|
509
|
+
--tabs-indicator-shadow: 0 1px 2px #0000000d;
|
|
504
510
|
--flow-node-shadow: 0 1px 2px #0000000d;
|
|
505
511
|
--flow-canvas-background-image: radial-gradient(var(--border-disabled) 1px, transparent 1px);
|
|
506
512
|
--input-radius: var(--radius-lg);
|
|
@@ -526,7 +532,7 @@
|
|
|
526
532
|
--hover-ring-color: var(--border-secondary);
|
|
527
533
|
--hover-transform: none;
|
|
528
534
|
--hover-shadow: none;
|
|
529
|
-
--active-scale:
|
|
535
|
+
--active-scale: 0.98;
|
|
530
536
|
--heading-font-weight: 600;
|
|
531
537
|
--hero-font-weight: 600;
|
|
532
538
|
--section-title-font-weight: 600;
|