@astryxdesign/cli 0.1.8-canary.0db5dfd → 0.1.8-canary.2061d8b
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/docs/elevation.doc.mjs
CHANGED
|
@@ -56,7 +56,7 @@ export const docs = {
|
|
|
56
56
|
[
|
|
57
57
|
'low',
|
|
58
58
|
'The component is in the normal page flow but should read as distinct from the background. Use for emphasis or to separate the component from the surface behind it — the component still sits on the page, it is not floating over other content.',
|
|
59
|
-
'A raised Card that needs emphasis, a ChatComposer
|
|
59
|
+
'A raised Card that needs emphasis, a ChatComposer',
|
|
60
60
|
],
|
|
61
61
|
[
|
|
62
62
|
'med',
|
|
@@ -82,11 +82,11 @@ export const docs = {
|
|
|
82
82
|
content: [
|
|
83
83
|
{
|
|
84
84
|
type: 'prose',
|
|
85
|
-
text: 'Configurable surfaces expose a single `elevation` prop instead of asking consumers to hand-write a box-shadow. It takes the graded enum `none | low | med | high`, narrowed per component to the steps that surface needs: Card, ClickableCard, SelectableCard, Button, IconButton, ButtonGroup,
|
|
85
|
+
text: 'Configurable surfaces expose a single `elevation` prop instead of asking consumers to hand-write a box-shadow. It takes the graded enum `none | low | med | high`, narrowed per component to the steps that surface needs: Card, ClickableCard, SelectableCard, Button, IconButton, ButtonGroup, and Banner expose the full scale, while ChatComposer exposes only `none | low`. `none` is a flat literal (`box-shadow: none`); the other levels map to the `--shadow-*` tokens above, so a surface stays theme-agnostic.',
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
type: 'prose',
|
|
89
|
-
text: 'Prop defaults preserve current appearance: every surface defaults to `none` except ChatComposer, which defaults to `low` to keep its raised look. Set `elevation="none"` to flatten it — the flat composer draws a border with the same rest / hover / focus treatment as a text input.
|
|
89
|
+
text: 'Prop defaults preserve current appearance: every surface defaults to `none` except ChatComposer, which defaults to `low` to keep its raised look. Set `elevation="none"` to flatten it — the flat composer draws a border with the same rest / hover / focus treatment as a text input.',
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
type: 'code',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/cli",
|
|
3
|
-
"version": "0.1.8-canary.
|
|
3
|
+
"version": "0.1.8-canary.2061d8b",
|
|
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",
|
|
@@ -86,10 +86,10 @@
|
|
|
86
86
|
"zod": "^4.4.3"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@astryxdesign/charts": "0.1.8-canary.
|
|
90
|
-
"@astryxdesign/core": "0.1.8-canary.
|
|
91
|
-
"@astryxdesign/lab": "0.1.8-canary.
|
|
92
|
-
"@astryxdesign/theme-neutral": "0.1.8-canary.
|
|
89
|
+
"@astryxdesign/charts": "0.1.8-canary.2061d8b",
|
|
90
|
+
"@astryxdesign/core": "0.1.8-canary.2061d8b",
|
|
91
|
+
"@astryxdesign/lab": "0.1.8-canary.2061d8b",
|
|
92
|
+
"@astryxdesign/theme-neutral": "0.1.8-canary.2061d8b",
|
|
93
93
|
"gpt-tokenizer": "^3.4.0"
|
|
94
94
|
},
|
|
95
95
|
"peerDependenciesMeta": {
|
|
@@ -107,10 +107,10 @@
|
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
"devDependencies": {
|
|
110
|
-
"@astryxdesign/charts": "0.1.8-canary.
|
|
111
|
-
"@astryxdesign/core": "0.1.8-canary.
|
|
112
|
-
"@astryxdesign/lab": "0.1.8-canary.
|
|
113
|
-
"@astryxdesign/theme-neutral": "0.1.8-canary.
|
|
110
|
+
"@astryxdesign/charts": "0.1.8-canary.2061d8b",
|
|
111
|
+
"@astryxdesign/core": "0.1.8-canary.2061d8b",
|
|
112
|
+
"@astryxdesign/lab": "0.1.8-canary.2061d8b",
|
|
113
|
+
"@astryxdesign/theme-neutral": "0.1.8-canary.2061d8b",
|
|
114
114
|
"gpt-tokenizer": "^3.4.0"
|
|
115
115
|
},
|
|
116
116
|
"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: 'Thumbnail',
|
|
7
|
-
name: 'Thumbnail — Elevated',
|
|
8
|
-
displayName: 'Thumbnail — Elevated',
|
|
9
|
-
description:
|
|
10
|
-
'Image tiles raised at rest with `elevation`. The default keeps the existing hover-only shadow; a set level lifts the tile off the page.',
|
|
11
|
-
isReady: true,
|
|
12
|
-
aspectRatio: 16 / 9,
|
|
13
|
-
componentsUsed: ['Thumbnail', 'Layout', 'Text'],
|
|
14
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
'use client';
|
|
4
|
-
|
|
5
|
-
import {Thumbnail} from '@astryxdesign/core/Thumbnail';
|
|
6
|
-
import {Stack} from '@astryxdesign/core/Layout';
|
|
7
|
-
import {Text} from '@astryxdesign/core/Text';
|
|
8
|
-
|
|
9
|
-
// Demo imagery is inlined as same-origin data URIs so the example is
|
|
10
|
-
// self-contained. Thumbnail's remove-button overlay uses useImageMode, which
|
|
11
|
-
// FETCHES the image to sample pixels (APCA) for contrast — a cross-origin CDN
|
|
12
|
-
// URL without CORS headers cannot be sampled, so contrast detection fails
|
|
13
|
-
// silently in hosted previews.
|
|
14
|
-
const NIGHT_FOREST =
|
|
15
|
-
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAwFBMVEX18+H08uDy8d/y8N/v7t/m5NXl49Tk4tPc3NDX1cnW1cnW1cjW1MjV1MjV1MfR0cXIyLzEw7m8vL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MkAAABI0lEQVR42u3Mx3qDMBSE0Z/03nsvdhxjcnn/twsYjISR5MUkO5+V9N2ZYUPEpogtEdsidkTsitgTsS/iQMShiCMRxyJORJyKOBNxLuJCxKWIKxHXIm5E3Iq4E3Ev4kHEo4gnEc8iXkS8inhLymrJBO8J2UIiw0dc5sRDfEbVRWr1o/pbMMWox9yz6zcLIzMbBTD2VaHu7fr1gjXGA3w5baj5+H0w6x09TDpdaP7rDZhn0sd3y89Y9fcHbPnoYdroZ2w6dQNmg6OHfG4QyrsBC8gdZpVQxtqF4M1mjepFURThTLNgMYsePxaX2WqY6D8GSm2grK2slbGBciHZ9hOE2smNpTuxenhieCdeH06E7qTqvYnImWTbbUSPlKL1wHrgTwZ+AWq+3H5MpRkwAAAAAElFTkSuQmCC';
|
|
18
|
-
|
|
19
|
-
export default function ThumbnailElevated() {
|
|
20
|
-
return (
|
|
21
|
-
<Stack direction="vertical" gap={3}>
|
|
22
|
-
<Text type="supporting" color="secondary">
|
|
23
|
-
Raised tiles — `elevation` lifts an image off the page at rest
|
|
24
|
-
</Text>
|
|
25
|
-
<Stack direction="horizontal" gap={3} vAlign="center">
|
|
26
|
-
<Thumbnail src={NIGHT_FOREST} alt="Forest at night" elevation="low" />
|
|
27
|
-
<Thumbnail src={GOLDEN_SUNSET} alt="Golden sunset" elevation="high" />
|
|
28
|
-
</Stack>
|
|
29
|
-
</Stack>
|
|
30
|
-
);
|
|
31
|
-
}
|