@leitware/composables 1.7.1 → 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 +0 -28
- 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/index.ts +0 -2
- 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
|