@astryxdesign/cli 0.6.3-canary.e9b8aa1 → 0.6.3-canary.ea2f048

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.
@@ -0,0 +1,14 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
4
+ export const doc = {
5
+ type: 'block',
6
+ exampleFor: 'Timer',
7
+ name: 'Timer — Formats',
8
+ displayName: 'Timer — Formats',
9
+ description:
10
+ 'Elapsed compact units and stopwatch clock notation shown from the same start time.',
11
+ isReady: true,
12
+ aspectRatio: 16 / 9,
13
+ componentsUsed: ['Timer', 'Layout', 'Text'],
14
+ };
@@ -0,0 +1,34 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ 'use client';
4
+
5
+ import {useState} from 'react';
6
+ import {Timer} from '@astryxdesign/core/Timer';
7
+ import {Stack} from '@astryxdesign/core/Layout';
8
+ import {Text} from '@astryxdesign/core/Text';
9
+
10
+ export default function TimerFormats() {
11
+ const [startedAt] = useState(() => Date.now() - 3_753_000);
12
+
13
+ return (
14
+ <Stack direction="vertical" gap={3}>
15
+ <Stack direction="horizontal" gap={3} vAlign="center">
16
+ <Text type="supporting" color="secondary">
17
+ Elapsed
18
+ </Text>
19
+ <Timer startTime={startedAt} type="body" color="primary" />
20
+ </Stack>
21
+ <Stack direction="horizontal" gap={3} vAlign="center">
22
+ <Text type="supporting" color="secondary">
23
+ Clock
24
+ </Text>
25
+ <Timer
26
+ format="clock"
27
+ startTime={startedAt}
28
+ type="body"
29
+ color="primary"
30
+ />
31
+ </Stack>
32
+ </Stack>
33
+ );
34
+ }
@@ -0,0 +1,14 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
4
+ export const doc = {
5
+ type: 'block',
6
+ exampleFor: 'Timer',
7
+ name: 'Timer — Inline',
8
+ displayName: 'Timer — Inline',
9
+ description:
10
+ 'A Timer composed into status copy while inheriting the surrounding typography.',
11
+ isReady: true,
12
+ aspectRatio: 16 / 9,
13
+ componentsUsed: ['Timer', 'Text'],
14
+ };
@@ -0,0 +1,14 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ 'use client';
4
+
5
+ import {Timer} from '@astryxdesign/core/Timer';
6
+ import {Text} from '@astryxdesign/core/Text';
7
+
8
+ export default function TimerInline() {
9
+ return (
10
+ <Text type="body" color="primary">
11
+ Processing for <Timer type="inherit" color="inherit" />
12
+ </Text>
13
+ );
14
+ }
@@ -0,0 +1,13 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
4
+ export const doc = {
5
+ type: 'block',
6
+ exampleFor: 'Timer',
7
+ name: 'Timer',
8
+ displayName: 'Timer',
9
+ isReady: true,
10
+ aspectRatio: 16 / 9,
11
+ isShowcase: true,
12
+ componentsUsed: ['Timer', 'Layout', 'Text'],
13
+ };
@@ -0,0 +1,47 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ 'use client';
4
+
5
+ import {useState} from 'react';
6
+ import {Timer} from '@astryxdesign/core/Timer';
7
+ import {Stack} from '@astryxdesign/core/Layout';
8
+ import {Text} from '@astryxdesign/core/Text';
9
+
10
+ export default function TimerShowcase() {
11
+ const [startedAt] = useState(() => Date.now() - 3_753_000);
12
+
13
+ return (
14
+ <Stack direction="vertical" gap={4}>
15
+ <Text type="large" color="primary" weight="semibold">
16
+ Processing
17
+ </Text>
18
+ <Stack direction="horizontal" gap={6} vAlign="center">
19
+ <Stack direction="vertical" gap={1}>
20
+ <Text type="supporting" color="secondary">
21
+ Elapsed
22
+ </Text>
23
+ <Timer
24
+ startTime={startedAt}
25
+ type="body"
26
+ size="xl"
27
+ color="primary"
28
+ weight="semibold"
29
+ />
30
+ </Stack>
31
+ <Stack direction="vertical" gap={1}>
32
+ <Text type="supporting" color="secondary">
33
+ Clock
34
+ </Text>
35
+ <Timer
36
+ format="clock"
37
+ startTime={startedAt}
38
+ type="body"
39
+ size="xl"
40
+ color="primary"
41
+ weight="semibold"
42
+ />
43
+ </Stack>
44
+ </Stack>
45
+ </Stack>
46
+ );
47
+ }
@@ -0,0 +1,14 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
4
+ export const doc = {
5
+ type: 'block',
6
+ exampleFor: 'Timer',
7
+ name: 'Timer — Typography',
8
+ displayName: 'Timer — Typography',
9
+ description:
10
+ 'Timer using its Timestamp-matched default typography and an emphasized override.',
11
+ isReady: true,
12
+ aspectRatio: 16 / 9,
13
+ componentsUsed: ['Timer', 'Layout', 'Text'],
14
+ };
@@ -0,0 +1,31 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ 'use client';
4
+
5
+ import {useState} from 'react';
6
+ import {Timer} from '@astryxdesign/core/Timer';
7
+ import {Stack} from '@astryxdesign/core/Layout';
8
+ import {Text} from '@astryxdesign/core/Text';
9
+
10
+ export default function TimerTypography() {
11
+ const [startedAt] = useState(() => Date.now() - 128_000);
12
+
13
+ return (
14
+ <Stack direction="vertical" gap={3}>
15
+ <Text type="supporting" color="secondary">
16
+ Default
17
+ </Text>
18
+ <Timer startTime={startedAt} />
19
+ <Text type="supporting" color="secondary">
20
+ Emphasized
21
+ </Text>
22
+ <Timer
23
+ startTime={startedAt}
24
+ type="body"
25
+ size="xl"
26
+ color="primary"
27
+ weight="semibold"
28
+ />
29
+ </Stack>
30
+ );
31
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.6.3-canary.e9b8aa1",
3
+ "version": "0.6.3-canary.ea2f048",
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",
@@ -100,10 +100,10 @@
100
100
  "zod": "^4.4.3"
101
101
  },
102
102
  "peerDependencies": {
103
- "@astryxdesign/charts": "0.6.3-canary.e9b8aa1",
104
- "@astryxdesign/core": "0.6.3-canary.e9b8aa1",
105
- "@astryxdesign/lab": "0.6.3-canary.e9b8aa1",
106
- "@astryxdesign/theme-neutral": "0.6.3-canary.e9b8aa1",
103
+ "@astryxdesign/charts": "0.6.3-canary.ea2f048",
104
+ "@astryxdesign/core": "0.6.3-canary.ea2f048",
105
+ "@astryxdesign/lab": "0.6.3-canary.ea2f048",
106
+ "@astryxdesign/theme-neutral": "0.6.3-canary.ea2f048",
107
107
  "gpt-tokenizer": "^3.4.0"
108
108
  },
109
109
  "peerDependenciesMeta": {
@@ -121,10 +121,10 @@
121
121
  }
122
122
  },
123
123
  "devDependencies": {
124
- "@astryxdesign/charts": "0.6.3-canary.e9b8aa1",
125
- "@astryxdesign/core": "0.6.3-canary.e9b8aa1",
126
- "@astryxdesign/lab": "0.6.3-canary.e9b8aa1",
127
- "@astryxdesign/theme-neutral": "0.6.3-canary.e9b8aa1",
124
+ "@astryxdesign/charts": "0.6.3-canary.ea2f048",
125
+ "@astryxdesign/core": "0.6.3-canary.ea2f048",
126
+ "@astryxdesign/lab": "0.6.3-canary.ea2f048",
127
+ "@astryxdesign/theme-neutral": "0.6.3-canary.ea2f048",
128
128
  "@heroicons/react": "^2.2.0",
129
129
  "@stylexjs/stylex": "^0.19.0",
130
130
  "@types/babel__core": "^7.20.5",