@astryxdesign/cli 0.1.2-canary.e3831d6 → 0.1.2-canary.eb7243a
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/package.json +7 -7
- package/templates/blocks/components/Blockquote/BlockquoteTestimonials.doc.mjs +0 -14
- package/templates/blocks/components/Blockquote/BlockquoteTestimonials.tsx +0 -34
- package/templates/blocks/components/Blockquote/BlockquoteWithCite.doc.mjs +0 -14
- package/templates/blocks/components/Blockquote/BlockquoteWithCite.tsx +0 -21
- package/templates/blocks/components/Hooks/useKeyboardHintHookUsage.doc.mjs +0 -14
- package/templates/blocks/components/Hooks/useKeyboardHintHookUsage.tsx +0 -57
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/cli",
|
|
3
|
-
"version": "0.1.2-canary.
|
|
3
|
+
"version": "0.1.2-canary.eb7243a",
|
|
4
4
|
"displayName": "CLI",
|
|
5
5
|
"description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
|
|
6
6
|
"author": "Meta Open Source",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"zod": "^4.4.3"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@astryxdesign/core": "0.1.2-canary.
|
|
79
|
-
"@astryxdesign/lab": "0.1.2-canary.
|
|
80
|
-
"@astryxdesign/theme-neutral": "0.1.2-canary.
|
|
78
|
+
"@astryxdesign/core": "0.1.2-canary.eb7243a",
|
|
79
|
+
"@astryxdesign/lab": "0.1.2-canary.eb7243a",
|
|
80
|
+
"@astryxdesign/theme-neutral": "0.1.2-canary.eb7243a",
|
|
81
81
|
"gpt-tokenizer": "^2.0.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependenciesMeta": {
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@astryxdesign/core": "0.1.2-canary.
|
|
96
|
-
"@astryxdesign/lab": "0.1.2-canary.
|
|
97
|
-
"@astryxdesign/theme-neutral": "0.1.2-canary.
|
|
95
|
+
"@astryxdesign/core": "0.1.2-canary.eb7243a",
|
|
96
|
+
"@astryxdesign/lab": "0.1.2-canary.eb7243a",
|
|
97
|
+
"@astryxdesign/theme-neutral": "0.1.2-canary.eb7243a",
|
|
98
98
|
"gpt-tokenizer": "^2.0.0"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */
|
|
4
|
-
export const doc = {
|
|
5
|
-
type: 'block',
|
|
6
|
-
exampleFor: 'Blockquote',
|
|
7
|
-
name: 'Blockquote — Testimonials',
|
|
8
|
-
displayName: 'Blockquote — Testimonials',
|
|
9
|
-
description:
|
|
10
|
-
'Multiple quotes arranged in a card grid for a testimonials section. Combine with Card and Grid to create social-proof layouts.',
|
|
11
|
-
isReady: true,
|
|
12
|
-
aspectRatio: 4 / 3,
|
|
13
|
-
componentsUsed: ['Blockquote', 'Card', 'Grid', 'GridSpan'],
|
|
14
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
'use client';
|
|
4
|
-
|
|
5
|
-
import {Blockquote} from '@astryxdesign/core/Blockquote';
|
|
6
|
-
import {Grid, GridSpan} from '@astryxdesign/core/Grid';
|
|
7
|
-
import {Card} from '@astryxdesign/core/Card';
|
|
8
|
-
|
|
9
|
-
export default function BlockquoteTestimonials() {
|
|
10
|
-
return (
|
|
11
|
-
<Grid columns={2} gap={3} style={{maxWidth: 600}}>
|
|
12
|
-
<Card padding={4}>
|
|
13
|
-
<Blockquote cite="Sarah K., Lead Engineer">
|
|
14
|
-
Shipping UI has never been this fast. Our team went from design to
|
|
15
|
-
production in a single afternoon.
|
|
16
|
-
</Blockquote>
|
|
17
|
-
</Card>
|
|
18
|
-
<Card padding={4}>
|
|
19
|
-
<Blockquote cite="Marcus T., Product Designer">
|
|
20
|
-
The token system means every new screen just looks right — no manual
|
|
21
|
-
color or spacing decisions.
|
|
22
|
-
</Blockquote>
|
|
23
|
-
</Card>
|
|
24
|
-
<GridSpan columns={2}>
|
|
25
|
-
<Card padding={4}>
|
|
26
|
-
<Blockquote cite="Priya L., Engineering Manager">
|
|
27
|
-
Onboarding a new engineer used to take a week of design review. Now
|
|
28
|
-
they're shipping accessible, polished components on day one.
|
|
29
|
-
</Blockquote>
|
|
30
|
-
</Card>
|
|
31
|
-
</GridSpan>
|
|
32
|
-
</Grid>
|
|
33
|
-
);
|
|
34
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */
|
|
4
|
-
export const doc = {
|
|
5
|
-
type: 'block',
|
|
6
|
-
exampleFor: 'Blockquote',
|
|
7
|
-
name: 'Blockquote — With Attribution',
|
|
8
|
-
displayName: 'Blockquote — With Attribution',
|
|
9
|
-
description:
|
|
10
|
-
'A plain quote and a quote with a cite attribution. Use cite to credit the original author or source.',
|
|
11
|
-
isReady: true,
|
|
12
|
-
aspectRatio: 4 / 3,
|
|
13
|
-
componentsUsed: ['Blockquote', 'Layout'],
|
|
14
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
'use client';
|
|
4
|
-
|
|
5
|
-
import {Blockquote} from '@astryxdesign/core/Blockquote';
|
|
6
|
-
import {VStack} from '@astryxdesign/core/Layout';
|
|
7
|
-
|
|
8
|
-
export default function BlockquoteWithCite() {
|
|
9
|
-
return (
|
|
10
|
-
<VStack gap={4} style={{maxWidth: 500}}>
|
|
11
|
-
<Blockquote>
|
|
12
|
-
Design is not just what it looks like and feels like. Design is how it
|
|
13
|
-
works.
|
|
14
|
-
</Blockquote>
|
|
15
|
-
<Blockquote cite="Steve Jobs">
|
|
16
|
-
The people who are crazy enough to think they can change the world are
|
|
17
|
-
the ones who do.
|
|
18
|
-
</Blockquote>
|
|
19
|
-
</VStack>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */
|
|
4
|
-
export const doc = {
|
|
5
|
-
type: 'block',
|
|
6
|
-
exampleFor: 'useKeyboardHint',
|
|
7
|
-
name: 'useKeyboardHint — Arrow-key Hint',
|
|
8
|
-
displayName: 'useKeyboardHint — Arrow-key Hint',
|
|
9
|
-
description:
|
|
10
|
-
'Toolbar shows an ephemeral "← → to navigate" hint on first keyboard focus via useKeyboardHint, teaching sighted keyboard users that arrows move within the group.',
|
|
11
|
-
isReady: true,
|
|
12
|
-
aspectRatio: 16 / 9,
|
|
13
|
-
componentsUsed: ['Toolbar', 'Button', 'Icon', 'Card', 'Section', 'Text', 'Layout'],
|
|
14
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
'use client';
|
|
4
|
-
|
|
5
|
-
import {Toolbar} from '@astryxdesign/core/Toolbar';
|
|
6
|
-
import {Button} from '@astryxdesign/core/Button';
|
|
7
|
-
import {Icon} from '@astryxdesign/core/Icon';
|
|
8
|
-
import {Card} from '@astryxdesign/core/Card';
|
|
9
|
-
import {Section} from '@astryxdesign/core/Section';
|
|
10
|
-
import {Text} from '@astryxdesign/core/Text';
|
|
11
|
-
import {VStack} from '@astryxdesign/core/Layout';
|
|
12
|
-
import {BoldIcon, ItalicIcon, UnderlineIcon} from '@heroicons/react/24/outline';
|
|
13
|
-
|
|
14
|
-
export default function UseKeyboardHintHookUsage() {
|
|
15
|
-
return (
|
|
16
|
-
<Card style={{width: 420}}>
|
|
17
|
-
<Toolbar
|
|
18
|
-
label="Text formatting"
|
|
19
|
-
dividers={['bottom']}
|
|
20
|
-
startContent={
|
|
21
|
-
<>
|
|
22
|
-
<Button
|
|
23
|
-
label="Bold"
|
|
24
|
-
variant="ghost"
|
|
25
|
-
icon={<Icon icon={BoldIcon} />}
|
|
26
|
-
isIconOnly
|
|
27
|
-
/>
|
|
28
|
-
<Button
|
|
29
|
-
label="Italic"
|
|
30
|
-
variant="ghost"
|
|
31
|
-
icon={<Icon icon={ItalicIcon} />}
|
|
32
|
-
isIconOnly
|
|
33
|
-
/>
|
|
34
|
-
<Button
|
|
35
|
-
label="Underline"
|
|
36
|
-
variant="ghost"
|
|
37
|
-
icon={<Icon icon={UnderlineIcon} />}
|
|
38
|
-
isIconOnly
|
|
39
|
-
/>
|
|
40
|
-
</>
|
|
41
|
-
}
|
|
42
|
-
/>
|
|
43
|
-
<Section>
|
|
44
|
-
<VStack gap={1}>
|
|
45
|
-
<Text type="body" weight="bold">
|
|
46
|
-
Keyboard-friendly by default
|
|
47
|
-
</Text>
|
|
48
|
-
<Text type="supporting" color="secondary">
|
|
49
|
-
Tab into the toolbar with your keyboard and Toolbar shows an
|
|
50
|
-
ephemeral "← → to navigate" hint — powered by useKeyboardHint — so
|
|
51
|
-
sighted keyboard users learn that arrows move within the group.
|
|
52
|
-
</Text>
|
|
53
|
-
</VStack>
|
|
54
|
-
</Section>
|
|
55
|
-
</Card>
|
|
56
|
-
);
|
|
57
|
-
}
|