@astryxdesign/cli 0.1.1-canary.1ebdb95 → 0.1.1-canary.2b52cdc
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/DateInput/DateInputDateRange.doc.mjs +2 -2
- package/templates/blocks/components/ToggleButton/ToggleButtonGroup.doc.mjs +1 -1
- package/templates/blocks/components/MoreMenu/MoreMenuInToolbar.doc.mjs +0 -14
- package/templates/blocks/components/MoreMenu/MoreMenuInToolbar.tsx +0 -57
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/cli",
|
|
3
|
-
"version": "0.1.1-canary.
|
|
3
|
+
"version": "0.1.1-canary.2b52cdc",
|
|
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",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"zod": "^4.4.3"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@astryxdesign/core": "0.1.1-canary.
|
|
67
|
-
"@astryxdesign/lab": "0.1.1-canary.
|
|
68
|
-
"@astryxdesign/theme-neutral": "0.1.1-canary.
|
|
66
|
+
"@astryxdesign/core": "0.1.1-canary.2b52cdc",
|
|
67
|
+
"@astryxdesign/lab": "0.1.1-canary.2b52cdc",
|
|
68
|
+
"@astryxdesign/theme-neutral": "0.1.1-canary.2b52cdc",
|
|
69
69
|
"gpt-tokenizer": "^2.0.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependenciesMeta": {
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@astryxdesign/core": "0.1.1-canary.
|
|
84
|
-
"@astryxdesign/lab": "0.1.1-canary.
|
|
85
|
-
"@astryxdesign/theme-neutral": "0.1.1-canary.
|
|
83
|
+
"@astryxdesign/core": "0.1.1-canary.2b52cdc",
|
|
84
|
+
"@astryxdesign/lab": "0.1.1-canary.2b52cdc",
|
|
85
|
+
"@astryxdesign/theme-neutral": "0.1.1-canary.2b52cdc",
|
|
86
86
|
"gpt-tokenizer": "^2.0.0"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
export const doc = {
|
|
5
5
|
type: 'block',
|
|
6
6
|
exampleFor: 'DateInput',
|
|
7
|
-
name: 'DateInput —
|
|
8
|
-
displayName: 'DateInput —
|
|
7
|
+
name: 'DateInput — Min/Max Constraints',
|
|
8
|
+
displayName: 'DateInput — Min/Max Constraints',
|
|
9
9
|
description:
|
|
10
10
|
'Date input constrained to a min/max window. Use when only certain dates are valid, like booking availability or a fiscal quarter.',
|
|
11
11
|
isReady: true,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */
|
|
4
4
|
export const doc = {
|
|
5
5
|
type: 'block',
|
|
6
|
-
exampleFor: '
|
|
6
|
+
exampleFor: 'ToggleButtonGroup',
|
|
7
7
|
name: 'ToggleButton — Group',
|
|
8
8
|
displayName: 'ToggleButton — Group',
|
|
9
9
|
description: 'Toggle button groups in single-select and multi-select modes. Single selection acts as a view mode switcher; multiple selection forms a formatting toolbar.',
|
|
@@ -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: 'MoreMenu',
|
|
7
|
-
name: 'MoreMenu — In Toolbar',
|
|
8
|
-
displayName: 'MoreMenu — In Toolbar',
|
|
9
|
-
description:
|
|
10
|
-
'A three-dot menu alongside icon buttons in a card header toolbar.',
|
|
11
|
-
isReady: true,
|
|
12
|
-
aspectRatio: 16 / 9,
|
|
13
|
-
componentsUsed: ['MoreMenu', 'Button', 'Icon', 'Toolbar', 'Text', 'Card', 'Section'],
|
|
14
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
'use client';
|
|
4
|
-
|
|
5
|
-
import {MoreMenu} from '@astryxdesign/core/MoreMenu';
|
|
6
|
-
import {Button} from '@astryxdesign/core/Button';
|
|
7
|
-
import {Icon} from '@astryxdesign/core/Icon';
|
|
8
|
-
import {Toolbar} from '@astryxdesign/core/Toolbar';
|
|
9
|
-
import {Heading} from '@astryxdesign/core/Text';
|
|
10
|
-
import {Card} from '@astryxdesign/core/Card';
|
|
11
|
-
import {Section} from '@astryxdesign/core/Section';
|
|
12
|
-
import {
|
|
13
|
-
ArrowLeftIcon,
|
|
14
|
-
ArrowDownTrayIcon,
|
|
15
|
-
ShareIcon,
|
|
16
|
-
TrashIcon,
|
|
17
|
-
} from '@heroicons/react/24/outline';
|
|
18
|
-
|
|
19
|
-
export default function MoreMenuInToolbar() {
|
|
20
|
-
return (
|
|
21
|
-
<Card width="100%" height="100%" style={{marginTop: 100}}>
|
|
22
|
-
<Toolbar
|
|
23
|
-
label="Project actions"
|
|
24
|
-
size="sm"
|
|
25
|
-
dividers={['bottom']}
|
|
26
|
-
startContent={
|
|
27
|
-
<Button
|
|
28
|
-
label="Back"
|
|
29
|
-
variant="ghost"
|
|
30
|
-
icon={<Icon icon={ArrowLeftIcon} />}
|
|
31
|
-
isIconOnly
|
|
32
|
-
/>
|
|
33
|
-
}
|
|
34
|
-
centerContent={<Heading level={5}>Title</Heading>}
|
|
35
|
-
endContent={
|
|
36
|
-
<>
|
|
37
|
-
<div style={{marginInlineEnd: 8}}>
|
|
38
|
-
<MoreMenu
|
|
39
|
-
label="More actions"
|
|
40
|
-
size="sm"
|
|
41
|
-
items={[
|
|
42
|
-
{label: 'Export', icon: ArrowDownTrayIcon, onClick: () => {}},
|
|
43
|
-
{label: 'Share', icon: ShareIcon, onClick: () => {}},
|
|
44
|
-
{type: 'divider'},
|
|
45
|
-
{label: 'Delete', icon: TrashIcon, onClick: () => {}},
|
|
46
|
-
]}
|
|
47
|
-
/>
|
|
48
|
-
</div>
|
|
49
|
-
<Button label="Discard" variant="secondary" size="sm" />
|
|
50
|
-
<Button label="Save" variant="primary" size="sm" />
|
|
51
|
-
</>
|
|
52
|
-
}
|
|
53
|
-
/>
|
|
54
|
-
<Section />
|
|
55
|
-
</Card>
|
|
56
|
-
);
|
|
57
|
-
}
|