@astryxdesign/cli 0.1.4-canary.e67f422 → 0.1.4-canary.e830adc

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.1.4-canary.e67f422",
3
+ "version": "0.1.4-canary.e830adc",
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,16 +75,12 @@
75
75
  "zod": "^4.4.3"
76
76
  },
77
77
  "peerDependencies": {
78
- "@astryxdesign/charts": "0.1.4-canary.e67f422",
79
- "@astryxdesign/core": "0.1.4-canary.e67f422",
80
- "@astryxdesign/lab": "0.1.4-canary.e67f422",
81
- "@astryxdesign/theme-neutral": "0.1.4-canary.e67f422",
78
+ "@astryxdesign/core": "0.1.4-canary.e830adc",
79
+ "@astryxdesign/lab": "0.1.4-canary.e830adc",
80
+ "@astryxdesign/theme-neutral": "0.1.4-canary.e830adc",
82
81
  "gpt-tokenizer": "^3.4.0"
83
82
  },
84
83
  "peerDependenciesMeta": {
85
- "@astryxdesign/charts": {
86
- "optional": true
87
- },
88
84
  "@astryxdesign/core": {
89
85
  "optional": true
90
86
  },
@@ -96,10 +92,9 @@
96
92
  }
97
93
  },
98
94
  "devDependencies": {
99
- "@astryxdesign/charts": "0.1.4-canary.e67f422",
100
- "@astryxdesign/core": "0.1.4-canary.e67f422",
101
- "@astryxdesign/lab": "0.1.4-canary.e67f422",
102
- "@astryxdesign/theme-neutral": "0.1.4-canary.e67f422",
95
+ "@astryxdesign/core": "0.1.4-canary.e830adc",
96
+ "@astryxdesign/lab": "0.1.4-canary.e830adc",
97
+ "@astryxdesign/theme-neutral": "0.1.4-canary.e830adc",
103
98
  "gpt-tokenizer": "^3.4.0"
104
99
  },
105
100
  "scripts": {
@@ -25,23 +25,21 @@ function AppIcon() {
25
25
 
26
26
  export default function NavHeadingMenuShowcase() {
27
27
  return (
28
- <div style={{height: 100}}>
29
- <SideNav
30
- header={
31
- <SideNavHeading
32
- heading="Acme Platform"
33
- icon={<AppIcon />}
34
- menu={
35
- <NavHeadingMenu size="lg">
36
- <NavHeadingMenuItem label="Dashboard" href="/dashboard" />
37
- <NavHeadingMenuItem label="Analytics" href="/analytics" />
38
- <NavHeadingMenuItem label="Settings" href="/settings" />
39
- </NavHeadingMenu>
40
- }
41
- />
42
- }>
43
- {null}
44
- </SideNav>
45
- </div>
28
+ <SideNav
29
+ header={
30
+ <SideNavHeading
31
+ heading="Acme Platform"
32
+ icon={<AppIcon />}
33
+ menu={
34
+ <NavHeadingMenu size="lg">
35
+ <NavHeadingMenuItem label="Dashboard" href="/dashboard" />
36
+ <NavHeadingMenuItem label="Analytics" href="/analytics" />
37
+ <NavHeadingMenuItem label="Settings" href="/settings" />
38
+ </NavHeadingMenu>
39
+ }
40
+ />
41
+ }>
42
+ {null}
43
+ </SideNav>
46
44
  );
47
45
  }
@@ -19,7 +19,13 @@ import {Link} from '@astryxdesign/core/Link';
19
19
  import {Thumbnail} from '@astryxdesign/core/Thumbnail';
20
20
  import {Table, proportional, pixel} from '@astryxdesign/core/Table';
21
21
  import type {TableColumn} from '@astryxdesign/core/Table';
22
- import {Chart, ChartGrid, ChartAxis, area, line} from '@astryxdesign/charts';
22
+ import {
23
+ ChartV2 as Chart,
24
+ ChartGrid,
25
+ ChartAxis,
26
+ area,
27
+ line,
28
+ } from '@astryxdesign/lab';
23
29
  import {
24
30
  FunnelIcon,
25
31
  ArrowDownTrayIcon,
@@ -475,13 +481,17 @@ const columns: TableColumn<OrderRow>[] = [
475
481
  key: 'amount',
476
482
  header: 'Amount',
477
483
  width: pixel(90),
478
- renderCell: (item: OrderRow) => <Text type="body">${item.amount}</Text>,
484
+ renderCell: (item: OrderRow) => (
485
+ <Text type="body">${item.amount}</Text>
486
+ ),
479
487
  },
480
488
  {
481
489
  key: 'customer',
482
490
  header: 'Customer',
483
491
  width: proportional(2),
484
- renderCell: (item: OrderRow) => <Text type="body">{item.customer}</Text>,
492
+ renderCell: (item: OrderRow) => (
493
+ <Text type="body">{item.customer}</Text>
494
+ ),
485
495
  },
486
496
  {
487
497
  key: 'email',
@@ -19,7 +19,13 @@ import {Link} from '@astryxdesign/core/Link';
19
19
  import {Thumbnail} from '@astryxdesign/core/Thumbnail';
20
20
  import {Table, proportional, pixel} from '@astryxdesign/core/Table';
21
21
  import type {TableColumn} from '@astryxdesign/core/Table';
22
- import {Chart, ChartGrid, ChartAxis, area, line} from '@astryxdesign/charts';
22
+ import {
23
+ ChartV2 as Chart,
24
+ ChartGrid,
25
+ ChartAxis,
26
+ area,
27
+ line,
28
+ } from '@astryxdesign/lab';
23
29
  import {
24
30
  FunnelIcon,
25
31
  ArrowDownTrayIcon,
@@ -29,7 +35,11 @@ import {
29
35
  // ============= DATA =============
30
36
 
31
37
  type ProductCategory =
32
- 'Running' | 'Lifestyle' | 'Basketball' | 'Training' | 'Skateboarding';
38
+ | 'Running'
39
+ | 'Lifestyle'
40
+ | 'Basketball'
41
+ | 'Training'
42
+ | 'Skateboarding';
33
43
 
34
44
  function shoeSvg(bg: string, accent: string) {
35
45
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" rx="12" fill="${bg}"/><g transform="translate(22.5, 22.5) scale(2.29)" fill="none" stroke="${accent}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m15 10.42 4.8-5.07"/><path d="M19 18h3"/><path d="M9.5 22 21.414 9.415A2 2 0 0 0 21.2 6.4l-5.61-4.208A1 1 0 0 0 14 3v2a2 2 0 0 1-1.394 1.906L8.677 8.053A1 1 0 0 0 8 9c-.155 6.393-2.082 9-4 9a2 2 0 0 0 0 4h14"/></g></svg>`;
@@ -829,13 +839,17 @@ const columns: TableColumn<OrderRow>[] = [
829
839
  key: 'amount',
830
840
  header: 'Amount',
831
841
  width: pixel(90),
832
- renderCell: (item: OrderRow) => <Text type="body">${item.amount}</Text>,
842
+ renderCell: (item: OrderRow) => (
843
+ <Text type="body">${item.amount}</Text>
844
+ ),
833
845
  },
834
846
  {
835
847
  key: 'customer',
836
848
  header: 'Customer',
837
849
  width: proportional(2),
838
- renderCell: (item: OrderRow) => <Text type="body">{item.customer}</Text>,
850
+ renderCell: (item: OrderRow) => (
851
+ <Text type="body">{item.customer}</Text>
852
+ ),
839
853
  },
840
854
  {
841
855
  key: 'email',
@@ -1,13 +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: 'Collapsible',
7
- name: 'Collapsible — Divided Accordion',
8
- displayName: 'Collapsible — Divided Accordion',
9
- description: 'FAQ-style accordion using the dividers prop on CollapsibleGroup: built-in row hairlines and density padding with zero custom CSS. Use for FAQs, settings lists, and nav sections.',
10
- isReady: true,
11
- aspectRatio: 4 / 3,
12
- componentsUsed: ['Collapsible', 'CollapsibleGroup', 'Text'],
13
- };
@@ -1,33 +0,0 @@
1
- // Copyright (c) Meta Platforms, Inc. and affiliates.
2
-
3
- 'use client';
4
-
5
- import {Collapsible, CollapsibleGroup} from '@astryxdesign/core/Collapsible';
6
- import {Text} from '@astryxdesign/core/Text';
7
-
8
- export default function CollapsibleDividedAccordion() {
9
- return (
10
- <div style={{width: '100%', maxWidth: 400}}>
11
- <CollapsibleGroup type="single" dividers="between" defaultValue="reset">
12
- <Collapsible trigger="How do I reset my password?" value="reset">
13
- <Text type="body">
14
- Go to Settings → Security → Change Password. You'll receive a
15
- confirmation email within a few minutes.
16
- </Text>
17
- </Collapsible>
18
- <Collapsible trigger="Can I change my username?" value="username">
19
- <Text type="body">
20
- Usernames can be changed once every 30 days from your profile
21
- settings.
22
- </Text>
23
- </Collapsible>
24
- <Collapsible trigger="How do I delete my account?" value="delete">
25
- <Text type="body">
26
- Account deletion is permanent. Your data will be removed within 30
27
- days.
28
- </Text>
29
- </Collapsible>
30
- </CollapsibleGroup>
31
- </div>
32
- );
33
- }