@leitware/composables 1.7.1 → 3.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 +16 -28
- package/dist/presets/brutalist.css +16 -17
- package/dist/presets/default.css +11 -13
- package/dist/presets/editorial-grid.css +12 -13
- package/dist/presets/kumo.css +14 -20
- package/dist/presets/signal-pop.css +14 -26
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +20 -0
- package/package.json +7 -8
- package/rules/composables.md +17 -17
- package/skills/use-composables/references/public-api.md +2 -7
- package/skills/use-composables/references/semantic-utilities.md +5 -0
- package/src/_internal/accordion.tsx +10 -10
- package/src/_internal/alert-dialog.tsx +3 -3
- package/src/_internal/alert.tsx +9 -7
- package/src/_internal/avatar.tsx +25 -14
- package/src/_internal/badge.tsx +2 -1
- package/src/_internal/bubble.tsx +2 -2
- package/src/_internal/button.tsx +16 -8
- package/src/_internal/calendar.tsx +3 -3
- package/src/_internal/card.tsx +53 -17
- package/src/_internal/checkbox.tsx +2 -2
- package/src/_internal/combobox.tsx +2 -2
- package/src/_internal/dialog.tsx +29 -9
- package/src/_internal/divider.tsx +14 -16
- package/src/_internal/dropdown-menu.tsx +4 -4
- package/src/_internal/empty.tsx +6 -3
- package/src/_internal/field.tsx +11 -7
- package/src/_internal/hover-card.tsx +1 -1
- package/src/_internal/input-group.tsx +17 -12
- package/src/_internal/input.tsx +33 -4
- package/src/_internal/item.tsx +2 -2
- package/src/_internal/label.tsx +1 -1
- package/src/_internal/message.tsx +1 -1
- package/src/_internal/native-select.tsx +1 -1
- package/src/_internal/popover.tsx +9 -3
- package/src/_internal/progress.tsx +37 -7
- package/src/_internal/radio-group.tsx +39 -4
- package/src/_internal/select.tsx +2 -2
- package/src/_internal/separator.tsx +1 -1
- package/src/_internal/sheet.tsx +9 -3
- package/src/_internal/sidebar.tsx +0 -35
- package/src/_internal/skeleton.tsx +26 -3
- package/src/_internal/slider.tsx +9 -7
- package/src/_internal/sonner.tsx +4 -4
- package/src/_internal/spinner.tsx +43 -3
- package/src/_internal/switch.tsx +2 -2
- package/src/_internal/table.tsx +20 -5
- package/src/_internal/tabs.tsx +4 -1
- package/src/_internal/textarea.tsx +1 -1
- package/src/_internal/toggle.tsx +1 -1
- package/src/_internal/tooltip.tsx +53 -8
- package/src/_internal/typography.tsx +4 -2
- package/src/index.ts +2 -3
- package/src/lib/utils.ts +2 -2
- package/src/opinionated/alert.tsx +8 -10
- package/src/opinionated/avatar.tsx +2 -2
- package/src/opinionated/button.tsx +13 -3
- package/src/opinionated/dialog.tsx +10 -1
- package/src/opinionated/form-calendar-popover.tsx +5 -10
- package/src/opinionated/form-checkbox.tsx +2 -2
- package/src/opinionated/form-date-of-birth.tsx +12 -8
- package/src/opinionated/form-input-group.tsx +1 -1
- package/src/opinionated/form-radiogroup.tsx +24 -7
- package/src/opinionated/form-switch.tsx +7 -6
- package/src/opinionated/progress.tsx +7 -2
- package/src/opinionated/select.tsx +4 -1
- package/src/opinionated/sidebar.tsx +0 -1
- package/src/opinionated/skeleton.tsx +3 -13
- package/src/opinionated/spinner.tsx +2 -0
- package/src/opinionated/token-config-panel/spacing-editor.tsx +21 -3
- package/src/opinionated/tooltip.tsx +20 -2
- package/src/styles/presets/brutalist.css +16 -17
- package/src/styles/presets/default.css +11 -13
- package/src/styles/presets/editorial-grid.css +12 -13
- package/src/styles/presets/kumo.css +14 -20
- package/src/styles/presets/signal-pop.css +14 -26
- package/src/styles/presets-data/brutalist.ts +16 -19
- package/src/styles/presets-data/default.ts +11 -15
- package/src/styles/presets-data/editorial-grid.ts +12 -6
- package/src/styles/presets-data/kumo.ts +12 -6
- package/src/styles/presets-data/signal-pop.ts +14 -30
- package/src/styles/tokens/components.css +64 -20
- package/src/styles/tokens/registry.ts +33 -0
- package/src/styles/tokens/semantic-utilities.css +20 -0
- package/src/styles/tokens/semantic.css +10 -0
- package/src/styles/tokens/tailwind-color-adapter.css +3 -0
- package/src/styles/tokens/tailwind-public-utilities.css +20 -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
|
@@ -125,6 +125,12 @@ export const semanticColorTokens: SemanticColorToken[] = [
|
|
|
125
125
|
category: 'bg',
|
|
126
126
|
label: 'surface-hover',
|
|
127
127
|
},
|
|
128
|
+
{
|
|
129
|
+
cssVar: '--bg-surface-input',
|
|
130
|
+
reference: '{neutral.200}',
|
|
131
|
+
category: 'bg',
|
|
132
|
+
label: 'surface-input',
|
|
133
|
+
},
|
|
128
134
|
{
|
|
129
135
|
cssVar: '--bg-fill-default',
|
|
130
136
|
reference: '{neutral.100}',
|
|
@@ -137,6 +143,12 @@ export const semanticColorTokens: SemanticColorToken[] = [
|
|
|
137
143
|
category: 'bg',
|
|
138
144
|
label: 'fill-primary',
|
|
139
145
|
},
|
|
146
|
+
{
|
|
147
|
+
cssVar: '--bg-fill-primary-hover',
|
|
148
|
+
reference: '{neutral.900}',
|
|
149
|
+
category: 'bg',
|
|
150
|
+
label: 'fill-primary-hover',
|
|
151
|
+
},
|
|
140
152
|
{ cssVar: '--bg-fill-brand', reference: '{pink.800}', category: 'bg', label: 'fill-brand' },
|
|
141
153
|
{
|
|
142
154
|
cssVar: '--bg-fill-brand-2',
|
|
@@ -179,6 +191,18 @@ export const semanticColorTokens: SemanticColorToken[] = [
|
|
|
179
191
|
category: 'bg',
|
|
180
192
|
label: 'fill-secondary',
|
|
181
193
|
},
|
|
194
|
+
{
|
|
195
|
+
cssVar: '--bg-fill-secondary-hover',
|
|
196
|
+
reference: '{neutral.900}',
|
|
197
|
+
category: 'bg',
|
|
198
|
+
label: 'fill-secondary-hover',
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
cssVar: '--bg-fill-selected',
|
|
202
|
+
reference: '{neutral.1000}',
|
|
203
|
+
category: 'bg',
|
|
204
|
+
label: 'fill-selected',
|
|
205
|
+
},
|
|
182
206
|
{
|
|
183
207
|
cssVar: '--bg-fill-secondary-inverse',
|
|
184
208
|
reference: '{base.white}',
|
|
@@ -220,6 +244,12 @@ export const semanticColorTokens: SemanticColorToken[] = [
|
|
|
220
244
|
category: 'text',
|
|
221
245
|
label: 'on-fill-secondary',
|
|
222
246
|
},
|
|
247
|
+
{
|
|
248
|
+
cssVar: '--text-on-fill-selected',
|
|
249
|
+
reference: '{neutral.0}',
|
|
250
|
+
category: 'text',
|
|
251
|
+
label: 'on-fill-selected',
|
|
252
|
+
},
|
|
223
253
|
{
|
|
224
254
|
cssVar: '--text-on-surface-accent',
|
|
225
255
|
reference: '{neutral.1000}',
|
|
@@ -345,6 +375,8 @@ export const tailwindColorAliases: TailwindColorAlias[] = [
|
|
|
345
375
|
{ cssVar: '--color-field', target: '--border-secondary' },
|
|
346
376
|
{ cssVar: '--color-focus', target: '--border-focus' },
|
|
347
377
|
{ cssVar: '--color-fill-critical', target: '--bg-fill-critical' },
|
|
378
|
+
{ cssVar: '--color-selected', target: '--bg-fill-selected' },
|
|
379
|
+
{ cssVar: '--color-selected-foreground', target: '--text-on-fill-selected' },
|
|
348
380
|
{ cssVar: '--color-sidebar-stroke', target: '--border-default' },
|
|
349
381
|
{ cssVar: '--color-chart-1', target: '--chart-1' },
|
|
350
382
|
{ cssVar: '--color-chart-2', target: '--chart-2' },
|
|
@@ -367,6 +399,7 @@ export const tailwindColorAliases: TailwindColorAlias[] = [
|
|
|
367
399
|
{ cssVar: '--color-surface-critical', target: '--bg-surface-critical' },
|
|
368
400
|
{ cssVar: '--color-surface-info', target: '--bg-surface-info' },
|
|
369
401
|
{ cssVar: '--color-surface-emphasis', target: '--bg-surface-emphasis' },
|
|
402
|
+
{ cssVar: '--color-surface-input', target: '--bg-surface-input' },
|
|
370
403
|
{ cssVar: '--color-surface-brand', target: '--bg-surface-brand' },
|
|
371
404
|
{ cssVar: '--color-surface-brand-2', target: '--bg-surface-brand-2' },
|
|
372
405
|
{ cssVar: '--color-surface-brand-3', target: '--bg-surface-brand-3' },
|
|
@@ -93,6 +93,10 @@
|
|
|
93
93
|
background-color: var(--bg-surface-hover);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
.bg-surface-input {
|
|
97
|
+
background-color: var(--bg-surface-input);
|
|
98
|
+
}
|
|
99
|
+
|
|
96
100
|
.bg-fill-default {
|
|
97
101
|
background-color: var(--bg-fill-default);
|
|
98
102
|
}
|
|
@@ -101,6 +105,10 @@
|
|
|
101
105
|
background-color: var(--bg-fill-primary);
|
|
102
106
|
}
|
|
103
107
|
|
|
108
|
+
.bg-fill-primary-hover {
|
|
109
|
+
background-color: var(--bg-fill-primary-hover);
|
|
110
|
+
}
|
|
111
|
+
|
|
104
112
|
.bg-fill-brand {
|
|
105
113
|
background-color: var(--bg-fill-brand);
|
|
106
114
|
}
|
|
@@ -149,6 +157,14 @@
|
|
|
149
157
|
background-color: var(--bg-fill-secondary);
|
|
150
158
|
}
|
|
151
159
|
|
|
160
|
+
.bg-fill-secondary-hover {
|
|
161
|
+
background-color: var(--bg-fill-secondary-hover);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.bg-fill-selected {
|
|
165
|
+
background-color: var(--bg-fill-selected);
|
|
166
|
+
}
|
|
167
|
+
|
|
152
168
|
.bg-fill-secondary-inverse {
|
|
153
169
|
background-color: var(--bg-fill-secondary-inverse);
|
|
154
170
|
}
|
|
@@ -185,6 +201,10 @@
|
|
|
185
201
|
color: var(--text-on-fill-secondary);
|
|
186
202
|
}
|
|
187
203
|
|
|
204
|
+
.text-on-fill-selected {
|
|
205
|
+
color: var(--text-on-fill-selected);
|
|
206
|
+
}
|
|
207
|
+
|
|
188
208
|
.text-on-surface-accent {
|
|
189
209
|
color: var(--text-on-surface-accent);
|
|
190
210
|
}
|
|
@@ -41,8 +41,10 @@
|
|
|
41
41
|
--bg-surface-brand-4: #e0e8f8ff;
|
|
42
42
|
--bg-surface-brand-5: #e8f0e8ff;
|
|
43
43
|
--bg-surface-hover: #efefefff;
|
|
44
|
+
--bg-surface-input: #2e2e2e33;
|
|
44
45
|
--bg-fill-default: #f8f8f8ff;
|
|
45
46
|
--bg-fill-primary: #0a0a0aff;
|
|
47
|
+
--bg-fill-primary-hover: #0a0a0aff;
|
|
46
48
|
--bg-fill-brand: #e87000ff;
|
|
47
49
|
--bg-fill-brand-2: #0a8080ff;
|
|
48
50
|
--bg-fill-brand-3: #c89030ff;
|
|
@@ -55,6 +57,8 @@
|
|
|
55
57
|
--bg-fill-emphasis: #0a0a0aff;
|
|
56
58
|
--bg-fill-transparent: #00000010;
|
|
57
59
|
--bg-fill-secondary: #efefefff;
|
|
60
|
+
--bg-fill-secondary-hover: #efefefff;
|
|
61
|
+
--bg-fill-selected: #0a0a0aff;
|
|
58
62
|
--bg-fill-secondary-inverse: #f8f8f8ff;
|
|
59
63
|
|
|
60
64
|
/* ── Text ──────────────────────────────────────────────────────────── */
|
|
@@ -66,6 +70,7 @@
|
|
|
66
70
|
--text-on-fill-primary: #f8f8f8ff;
|
|
67
71
|
--text-on-fill-brand: #0a0a0aff;
|
|
68
72
|
--text-on-fill-secondary: #0a0a0aff;
|
|
73
|
+
--text-on-fill-selected: #f8f8f8ff;
|
|
69
74
|
--text-on-surface-accent: #0a0a0aff;
|
|
70
75
|
--text-info: #001e5eff;
|
|
71
76
|
--text-success: #003a00ff;
|
|
@@ -174,8 +179,10 @@
|
|
|
174
179
|
--bg-surface-brand-4: #0a101eff;
|
|
175
180
|
--bg-surface-brand-5: #0a1a10ff;
|
|
176
181
|
--bg-surface-hover: #1a1a1aff;
|
|
182
|
+
--bg-surface-input: #8888884d;
|
|
177
183
|
--bg-fill-default: #0a0a0aff;
|
|
178
184
|
--bg-fill-primary: #f0f0f0ff;
|
|
185
|
+
--bg-fill-primary-hover: #f0f0f0ff;
|
|
179
186
|
--bg-fill-brand: #88cc00ff;
|
|
180
187
|
--bg-fill-brand-2: #22aaaaff;
|
|
181
188
|
--bg-fill-brand-3: #d09830ff;
|
|
@@ -188,6 +195,8 @@
|
|
|
188
195
|
--bg-fill-emphasis: #f0f0f0ff;
|
|
189
196
|
--bg-fill-transparent: #ffffff10;
|
|
190
197
|
--bg-fill-secondary: #141414ff;
|
|
198
|
+
--bg-fill-secondary-hover: #141414ff;
|
|
199
|
+
--bg-fill-selected: #f0f0f0ff;
|
|
191
200
|
--bg-fill-secondary-inverse: #0a0a0aff;
|
|
192
201
|
|
|
193
202
|
/* ── Text ──────────────────────────────────────────────────────────── */
|
|
@@ -199,6 +208,7 @@
|
|
|
199
208
|
--text-on-fill-primary: #0a0a0aff;
|
|
200
209
|
--text-on-fill-brand: #0a0a0aff;
|
|
201
210
|
--text-on-fill-secondary: #f0f0f0ff;
|
|
211
|
+
--text-on-fill-selected: #0a0a0aff;
|
|
202
212
|
--text-on-surface-accent: #f0f0f0ff;
|
|
203
213
|
--text-info: #99bbffff;
|
|
204
214
|
--text-success: #77dd77ff;
|
|
@@ -42,6 +42,8 @@
|
|
|
42
42
|
--color-field: var(--border-secondary);
|
|
43
43
|
--color-focus: var(--border-focus);
|
|
44
44
|
--color-fill-critical: var(--bg-fill-critical);
|
|
45
|
+
--color-selected: var(--bg-fill-selected);
|
|
46
|
+
--color-selected-foreground: var(--text-on-fill-selected);
|
|
45
47
|
--color-sidebar-stroke: var(--border-default);
|
|
46
48
|
--color-chart-1: var(--chart-1);
|
|
47
49
|
--color-chart-2: var(--chart-2);
|
|
@@ -64,6 +66,7 @@
|
|
|
64
66
|
--color-surface-critical: var(--bg-surface-critical);
|
|
65
67
|
--color-surface-info: var(--bg-surface-info);
|
|
66
68
|
--color-surface-emphasis: var(--bg-surface-emphasis);
|
|
69
|
+
--color-surface-input: var(--bg-surface-input);
|
|
67
70
|
--color-surface-brand: var(--bg-surface-brand);
|
|
68
71
|
--color-surface-brand-2: var(--bg-surface-brand-2);
|
|
69
72
|
--color-surface-brand-3: var(--bg-surface-brand-3);
|
|
@@ -91,6 +91,10 @@
|
|
|
91
91
|
background-color: var(--bg-surface-hover);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
@utility bg-surface-input {
|
|
95
|
+
background-color: var(--bg-surface-input);
|
|
96
|
+
}
|
|
97
|
+
|
|
94
98
|
@utility bg-fill-default {
|
|
95
99
|
background-color: var(--bg-fill-default);
|
|
96
100
|
}
|
|
@@ -99,6 +103,10 @@
|
|
|
99
103
|
background-color: var(--bg-fill-primary);
|
|
100
104
|
}
|
|
101
105
|
|
|
106
|
+
@utility bg-fill-primary-hover {
|
|
107
|
+
background-color: var(--bg-fill-primary-hover);
|
|
108
|
+
}
|
|
109
|
+
|
|
102
110
|
@utility bg-fill-brand {
|
|
103
111
|
background-color: var(--bg-fill-brand);
|
|
104
112
|
}
|
|
@@ -147,6 +155,14 @@
|
|
|
147
155
|
background-color: var(--bg-fill-secondary);
|
|
148
156
|
}
|
|
149
157
|
|
|
158
|
+
@utility bg-fill-secondary-hover {
|
|
159
|
+
background-color: var(--bg-fill-secondary-hover);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@utility bg-fill-selected {
|
|
163
|
+
background-color: var(--bg-fill-selected);
|
|
164
|
+
}
|
|
165
|
+
|
|
150
166
|
@utility bg-fill-secondary-inverse {
|
|
151
167
|
background-color: var(--bg-fill-secondary-inverse);
|
|
152
168
|
}
|
|
@@ -183,6 +199,10 @@
|
|
|
183
199
|
color: var(--text-on-fill-secondary);
|
|
184
200
|
}
|
|
185
201
|
|
|
202
|
+
@utility text-on-fill-selected {
|
|
203
|
+
color: var(--text-on-fill-selected);
|
|
204
|
+
}
|
|
205
|
+
|
|
186
206
|
@utility text-on-surface-accent {
|
|
187
207
|
color: var(--text-on-surface-accent);
|
|
188
208
|
}
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Code2Icon,
|
|
3
|
-
LayoutDashboardIcon,
|
|
4
|
-
Layers3Icon,
|
|
5
|
-
PaletteIcon,
|
|
6
|
-
SparklesIcon,
|
|
7
|
-
UsersIcon,
|
|
8
|
-
ZapIcon,
|
|
9
|
-
type LucideIcon,
|
|
10
|
-
} from 'lucide-react'
|
|
11
|
-
import { Card } from '../card'
|
|
12
|
-
import { cn } from '../../lib/utils'
|
|
13
|
-
import {
|
|
14
|
-
BlockAction,
|
|
15
|
-
BlockDashboard,
|
|
16
|
-
BlockHeading,
|
|
17
|
-
BlockImage,
|
|
18
|
-
BlockSection,
|
|
19
|
-
type BlockBaseProps,
|
|
20
|
-
type BlockCTA,
|
|
21
|
-
type BlockMedia,
|
|
22
|
-
} from './shared'
|
|
23
|
-
|
|
24
|
-
type IconName = 'Palette' | 'Layers' | 'Code' | 'Users' | 'Zap' | 'LayoutDashboard' | 'Sparkles'
|
|
25
|
-
const icons: Record<IconName, LucideIcon> = {
|
|
26
|
-
Palette: PaletteIcon,
|
|
27
|
-
Layers: Layers3Icon,
|
|
28
|
-
Code: Code2Icon,
|
|
29
|
-
Users: UsersIcon,
|
|
30
|
-
Zap: ZapIcon,
|
|
31
|
-
LayoutDashboard: LayoutDashboardIcon,
|
|
32
|
-
Sparkles: SparklesIcon,
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function ItemIcon({ name }: { name?: IconName }) {
|
|
36
|
-
const Icon = name ? icons[name] : SparklesIcon
|
|
37
|
-
return <Icon aria-hidden="true" className="size-5 text-icon-brand" />
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
type ContentHead = BlockBaseProps & { title: string; description: string }
|
|
41
|
-
type ContentItem = { title: string; description: string; media: BlockMedia; icon?: IconName }
|
|
42
|
-
|
|
43
|
-
export interface Content02Props extends ContentHead {
|
|
44
|
-
items: ContentItem[]
|
|
45
|
-
}
|
|
46
|
-
export function Content02({
|
|
47
|
-
title,
|
|
48
|
-
description,
|
|
49
|
-
items,
|
|
50
|
-
variant,
|
|
51
|
-
animation,
|
|
52
|
-
className,
|
|
53
|
-
}: Content02Props) {
|
|
54
|
-
return (
|
|
55
|
-
<BlockSection variant={variant} animation={animation} className={className}>
|
|
56
|
-
<BlockHeading title={title} description={description} />
|
|
57
|
-
<div className="mt-12 grid gap-8 md:grid-cols-3">
|
|
58
|
-
{items.map((item) => (
|
|
59
|
-
<article key={item.title}>
|
|
60
|
-
<div className="aspect-[4/3] overflow-hidden rounded-xl bg-surface-accent">
|
|
61
|
-
<BlockImage media={item.media} />
|
|
62
|
-
</div>
|
|
63
|
-
<div className="mt-5 flex items-start gap-3">
|
|
64
|
-
<span className="rounded-lg bg-surface-brand p-2">
|
|
65
|
-
<ItemIcon name={item.icon} />
|
|
66
|
-
</span>
|
|
67
|
-
<div>
|
|
68
|
-
<h3 className="text-lg font-semibold">{item.title}</h3>
|
|
69
|
-
<p className="mt-2 text-sm leading-relaxed text-[var(--text-secondary)]">
|
|
70
|
-
{item.description}
|
|
71
|
-
</p>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
</article>
|
|
75
|
-
))}
|
|
76
|
-
</div>
|
|
77
|
-
</BlockSection>
|
|
78
|
-
)
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface Content04Props extends ContentHead {
|
|
82
|
-
items: ContentItem[]
|
|
83
|
-
}
|
|
84
|
-
export function Content04({
|
|
85
|
-
title,
|
|
86
|
-
description,
|
|
87
|
-
items,
|
|
88
|
-
variant,
|
|
89
|
-
animation,
|
|
90
|
-
className,
|
|
91
|
-
}: Content04Props) {
|
|
92
|
-
return (
|
|
93
|
-
<BlockSection variant={variant} animation={animation} className={className}>
|
|
94
|
-
<BlockHeading title={title} description={description} />
|
|
95
|
-
<div className="mt-12 grid gap-8 md:grid-cols-2">
|
|
96
|
-
{items.map((item) => (
|
|
97
|
-
<article key={item.title} className="border-t border-stroke-default pt-5">
|
|
98
|
-
<h3 className="text-xl font-semibold">{item.title}</h3>
|
|
99
|
-
<p className="mt-3 max-w-lg text-sm leading-relaxed text-[var(--text-secondary)]">
|
|
100
|
-
{item.description}
|
|
101
|
-
</p>
|
|
102
|
-
<div className="mt-7 aspect-[4/3] overflow-hidden rounded-xl bg-surface-accent">
|
|
103
|
-
<BlockImage media={item.media} />
|
|
104
|
-
</div>
|
|
105
|
-
</article>
|
|
106
|
-
))}
|
|
107
|
-
</div>
|
|
108
|
-
</BlockSection>
|
|
109
|
-
)
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export interface Content06Props extends ContentHead {
|
|
113
|
-
media: BlockMedia
|
|
114
|
-
cta?: BlockCTA
|
|
115
|
-
}
|
|
116
|
-
export function Content06({
|
|
117
|
-
title,
|
|
118
|
-
description,
|
|
119
|
-
media,
|
|
120
|
-
cta,
|
|
121
|
-
variant,
|
|
122
|
-
animation,
|
|
123
|
-
className,
|
|
124
|
-
}: Content06Props) {
|
|
125
|
-
return (
|
|
126
|
-
<BlockSection variant={variant} animation={animation} className={className}>
|
|
127
|
-
<div className="grid items-center gap-10 md:grid-cols-2">
|
|
128
|
-
<div>
|
|
129
|
-
<BlockHeading title={title} description={description} />
|
|
130
|
-
<BlockAction action={cta} className="mt-8" />
|
|
131
|
-
</div>
|
|
132
|
-
<div className="aspect-[4/3] overflow-hidden rounded-xl bg-surface-accent">
|
|
133
|
-
<BlockImage media={media} />
|
|
134
|
-
</div>
|
|
135
|
-
</div>
|
|
136
|
-
</BlockSection>
|
|
137
|
-
)
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface Content07Props extends ContentHead {
|
|
141
|
-
items: { title: string; content: string; media: BlockMedia; cta?: BlockCTA }[]
|
|
142
|
-
}
|
|
143
|
-
export function Content07({
|
|
144
|
-
title,
|
|
145
|
-
description,
|
|
146
|
-
items,
|
|
147
|
-
variant,
|
|
148
|
-
animation,
|
|
149
|
-
className,
|
|
150
|
-
}: Content07Props) {
|
|
151
|
-
return (
|
|
152
|
-
<BlockSection variant={variant} animation={animation} className={className}>
|
|
153
|
-
<BlockHeading title={title} description={description} />
|
|
154
|
-
<div className="mt-12 grid gap-10 md:grid-cols-2">
|
|
155
|
-
{items.map((item) => (
|
|
156
|
-
<article key={item.title}>
|
|
157
|
-
<div className="aspect-[4/3] overflow-hidden rounded-xl bg-surface-accent">
|
|
158
|
-
<BlockImage media={item.media} />
|
|
159
|
-
</div>
|
|
160
|
-
<h3 className="mt-6 text-xl font-semibold">{item.title}</h3>
|
|
161
|
-
<p className="mt-3 max-w-lg text-sm leading-relaxed text-[var(--text-secondary)]">
|
|
162
|
-
{item.content}
|
|
163
|
-
</p>
|
|
164
|
-
<BlockAction action={item.cta} className="mt-6" arrow />
|
|
165
|
-
</article>
|
|
166
|
-
))}
|
|
167
|
-
</div>
|
|
168
|
-
</BlockSection>
|
|
169
|
-
)
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export interface Content09Props extends ContentHead {
|
|
173
|
-
items: { title: string; description: string; icon?: IconName }[]
|
|
174
|
-
}
|
|
175
|
-
export function Content09({
|
|
176
|
-
title,
|
|
177
|
-
description,
|
|
178
|
-
items,
|
|
179
|
-
variant,
|
|
180
|
-
animation,
|
|
181
|
-
className,
|
|
182
|
-
}: Content09Props) {
|
|
183
|
-
return (
|
|
184
|
-
<BlockSection variant={variant} animation={animation} className={className}>
|
|
185
|
-
<BlockHeading title={title} description={description} />
|
|
186
|
-
<div className="mt-12 grid gap-4 md:grid-cols-2">
|
|
187
|
-
{items.map((item) => (
|
|
188
|
-
<Card key={item.title} className="min-h-48 border-stroke-default bg-surface-default">
|
|
189
|
-
<div className="flex items-start gap-4">
|
|
190
|
-
<span className="rounded-lg bg-surface-brand p-3">
|
|
191
|
-
<ItemIcon name={item.icon} />
|
|
192
|
-
</span>
|
|
193
|
-
<div>
|
|
194
|
-
<h3 className="text-lg font-semibold">{item.title}</h3>
|
|
195
|
-
<p className="mt-3 text-sm leading-relaxed text-[var(--text-secondary)]">
|
|
196
|
-
{item.description}
|
|
197
|
-
</p>
|
|
198
|
-
</div>
|
|
199
|
-
</div>
|
|
200
|
-
</Card>
|
|
201
|
-
))}
|
|
202
|
-
</div>
|
|
203
|
-
</BlockSection>
|
|
204
|
-
)
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
export interface Content11Props extends ContentHead {
|
|
208
|
-
feature1: { icon?: IconName; title: string; description: string }
|
|
209
|
-
feature2: { icon?: IconName; title: string; description: string }
|
|
210
|
-
}
|
|
211
|
-
export function Content11({
|
|
212
|
-
title,
|
|
213
|
-
description,
|
|
214
|
-
feature1,
|
|
215
|
-
feature2,
|
|
216
|
-
variant,
|
|
217
|
-
animation,
|
|
218
|
-
className,
|
|
219
|
-
}: Content11Props) {
|
|
220
|
-
return (
|
|
221
|
-
<BlockSection variant={variant} animation={animation} className={className}>
|
|
222
|
-
<div className="grid items-center gap-12 lg:grid-cols-2">
|
|
223
|
-
<div>
|
|
224
|
-
<BlockHeading title={title} description={description} />
|
|
225
|
-
<div className="mt-10 space-y-8">
|
|
226
|
-
{[feature1, feature2].map((feature) => (
|
|
227
|
-
<div key={feature.title} className="flex gap-4 border-t border-stroke-default pt-5">
|
|
228
|
-
<span className="rounded-lg bg-surface-brand p-3">
|
|
229
|
-
<ItemIcon name={feature.icon} />
|
|
230
|
-
</span>
|
|
231
|
-
<div>
|
|
232
|
-
<h3 className="font-semibold">{feature.title}</h3>
|
|
233
|
-
<p className="mt-2 text-sm leading-relaxed text-[var(--text-secondary)]">
|
|
234
|
-
{feature.description}
|
|
235
|
-
</p>
|
|
236
|
-
</div>
|
|
237
|
-
</div>
|
|
238
|
-
))}
|
|
239
|
-
</div>
|
|
240
|
-
</div>
|
|
241
|
-
<div className={cn('rounded-2xl bg-surface-accent p-5 md:p-8')}>
|
|
242
|
-
<BlockDashboard />
|
|
243
|
-
</div>
|
|
244
|
-
</div>
|
|
245
|
-
</BlockSection>
|
|
246
|
-
)
|
|
247
|
-
}
|