@astryxdesign/cli 0.1.2-canary.bfcbf64 → 0.1.2-canary.c11faf5

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.
Files changed (132) hide show
  1. package/docs/layout.doc.dense.mjs +90 -0
  2. package/docs/layout.doc.mjs +160 -0
  3. package/docs/principles.doc.dense.mjs +2 -2
  4. package/docs/principles.doc.mjs +4 -0
  5. package/docs/principles.doc.zh.mjs +2 -2
  6. package/package.json +7 -7
  7. package/src/api/blog.mjs +192 -0
  8. package/src/api/blog.test.mjs +144 -0
  9. package/src/api/index.mjs +1 -0
  10. package/src/commands/agent-docs.mjs +3 -0
  11. package/src/commands/blog.mjs +60 -0
  12. package/src/commands/build-theme.import-path.test.mjs +2 -12
  13. package/src/commands/build-theme.mjs +117 -0
  14. package/src/commands/build-theme.prose.test.mjs +5 -15
  15. package/src/commands/build-theme.watch.test.mjs +149 -0
  16. package/src/commands/ensure-core-built.mjs +120 -0
  17. package/src/index.mjs +1 -0
  18. package/src/lib/error-codes.mjs +8 -0
  19. package/src/lib/site.mjs +20 -0
  20. package/templates/blocks/components/AvatarStatusDot/AvatarStatusDotVariants.doc.mjs +14 -0
  21. package/templates/blocks/components/AvatarStatusDot/AvatarStatusDotVariants.tsx +28 -0
  22. package/templates/blocks/components/Blockquote/BlockquoteTestimonials.doc.mjs +14 -0
  23. package/templates/blocks/components/Blockquote/BlockquoteTestimonials.tsx +34 -0
  24. package/templates/blocks/components/Blockquote/BlockquoteWithCite.doc.mjs +14 -0
  25. package/templates/blocks/components/Blockquote/BlockquoteWithCite.tsx +21 -0
  26. package/templates/blocks/components/BreadcrumbItem/BreadcrumbItemBasic.doc.mjs +14 -0
  27. package/templates/blocks/components/BreadcrumbItem/BreadcrumbItemBasic.tsx +15 -0
  28. package/templates/blocks/components/ButtonGroup/ButtonGroupBasic.doc.mjs +14 -0
  29. package/templates/blocks/components/ButtonGroup/ButtonGroupBasic.tsx +16 -0
  30. package/templates/blocks/components/ChatDictationButton/ChatDictationButtonBasic.doc.mjs +19 -0
  31. package/templates/blocks/components/ChatDictationButton/ChatDictationButtonBasic.tsx +34 -0
  32. package/templates/blocks/components/CheckboxListItem/CheckboxListItemBasic.doc.mjs +14 -0
  33. package/templates/blocks/components/CheckboxListItem/CheckboxListItemBasic.tsx +30 -0
  34. package/templates/blocks/components/CollapsibleGroup/CollapsibleGroupAccordion.doc.mjs +14 -0
  35. package/templates/blocks/components/CollapsibleGroup/CollapsibleGroupAccordion.tsx +31 -0
  36. package/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyBasic.doc.mjs +14 -0
  37. package/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyBasic.tsx +26 -0
  38. package/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterBasic.doc.mjs +14 -0
  39. package/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterBasic.tsx +32 -0
  40. package/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.doc.mjs +18 -0
  41. package/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.tsx +32 -0
  42. package/templates/blocks/components/CommandPaletteItem/CommandPaletteItemBasic.doc.mjs +14 -0
  43. package/templates/blocks/components/CommandPaletteItem/CommandPaletteItemBasic.tsx +27 -0
  44. package/templates/blocks/components/ContextMenu/ContextMenuBasic.doc.mjs +14 -0
  45. package/templates/blocks/components/ContextMenu/ContextMenuBasic.tsx +32 -0
  46. package/templates/blocks/components/DialogHeader/DialogHeaderBasic.doc.mjs +14 -0
  47. package/templates/blocks/components/DialogHeader/DialogHeaderBasic.tsx +30 -0
  48. package/templates/blocks/components/DropdownMenu/DropdownMenuShowcase.tsx +0 -6
  49. package/templates/blocks/components/DropdownMenuItem/DropdownMenuItemBasic.doc.mjs +14 -0
  50. package/templates/blocks/components/DropdownMenuItem/DropdownMenuItemBasic.tsx +27 -0
  51. package/templates/blocks/components/DropdownMenuItem/DropdownMenuItemShowcase.tsx +1 -5
  52. package/templates/blocks/components/FieldLabel/FieldLabelBasic.doc.mjs +14 -0
  53. package/templates/blocks/components/FieldLabel/FieldLabelBasic.tsx +20 -0
  54. package/templates/blocks/components/FieldStatus/FieldStatusBasic.doc.mjs +14 -0
  55. package/templates/blocks/components/FieldStatus/FieldStatusBasic.tsx +23 -0
  56. package/templates/blocks/components/FileInput/FileInputBasic.doc.mjs +14 -0
  57. package/templates/blocks/components/FileInput/FileInputBasic.tsx +22 -0
  58. package/templates/blocks/components/GridSpan/GridSpanColumns.doc.mjs +14 -0
  59. package/templates/blocks/components/GridSpan/GridSpanColumns.tsx +38 -0
  60. package/templates/blocks/components/HStack/HStackBasic.doc.mjs +14 -0
  61. package/templates/blocks/components/HStack/HStackBasic.tsx +16 -0
  62. package/templates/blocks/components/Hooks/useKeyboardHintHookUsage.doc.mjs +14 -0
  63. package/templates/blocks/components/Hooks/useKeyboardHintHookUsage.tsx +57 -0
  64. package/templates/blocks/components/InputGroup/InputGroupBasic.doc.mjs +14 -0
  65. package/templates/blocks/components/InputGroup/InputGroupBasic.tsx +27 -0
  66. package/templates/blocks/components/LayoutContent/LayoutContentBasic.doc.mjs +23 -0
  67. package/templates/blocks/components/LayoutContent/LayoutContentBasic.tsx +40 -0
  68. package/templates/blocks/components/LayoutFooter/LayoutFooterActions.doc.mjs +22 -0
  69. package/templates/blocks/components/LayoutFooter/LayoutFooterActions.tsx +41 -0
  70. package/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.doc.mjs +23 -0
  71. package/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.tsx +40 -0
  72. package/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.doc.mjs +22 -0
  73. package/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.tsx +37 -0
  74. package/templates/blocks/components/Lightbox/LightboxGallery.doc.mjs +14 -0
  75. package/templates/blocks/components/Lightbox/LightboxGallery.tsx +53 -0
  76. package/templates/blocks/components/Lightbox/LightboxShowcase.tsx +4 -3
  77. package/templates/blocks/components/Lightbox/LightboxVideo.doc.mjs +14 -0
  78. package/templates/blocks/components/Lightbox/LightboxVideo.tsx +27 -0
  79. package/templates/blocks/components/Lightbox/LightboxZoom.doc.mjs +14 -0
  80. package/templates/blocks/components/Lightbox/LightboxZoom.tsx +33 -0
  81. package/templates/blocks/components/MetadataListItem/MetadataListItemBasic.doc.mjs +14 -0
  82. package/templates/blocks/components/MetadataListItem/MetadataListItemBasic.tsx +19 -0
  83. package/templates/blocks/components/MobileNavToggle/MobileNavToggleBasic.doc.mjs +23 -0
  84. package/templates/blocks/components/MobileNavToggle/MobileNavToggleBasic.tsx +42 -0
  85. package/templates/blocks/components/MoreMenu/MoreMenuShowcase.tsx +0 -6
  86. package/templates/blocks/components/NavIcon/NavIconBasic.doc.mjs +14 -0
  87. package/templates/blocks/components/NavIcon/NavIconBasic.tsx +16 -0
  88. package/templates/blocks/components/RadioListItem/RadioListItemBasic.doc.mjs +14 -0
  89. package/templates/blocks/components/RadioListItem/RadioListItemBasic.tsx +30 -0
  90. package/templates/blocks/components/Resizable/ResizableSidebar.doc.mjs +25 -0
  91. package/templates/blocks/components/Resizable/ResizableSidebar.tsx +67 -0
  92. package/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.doc.mjs +14 -0
  93. package/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.tsx +21 -0
  94. package/templates/blocks/components/SelectorOption/SelectorOptionBasic.doc.mjs +14 -0
  95. package/templates/blocks/components/SelectorOption/SelectorOptionBasic.tsx +39 -0
  96. package/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonBasic.doc.mjs +14 -0
  97. package/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonBasic.tsx +55 -0
  98. package/templates/blocks/components/SideNavHeading/SideNavHeadingBasic.doc.mjs +14 -0
  99. package/templates/blocks/components/SideNavHeading/SideNavHeadingBasic.tsx +38 -0
  100. package/templates/blocks/components/SideNavItem/SideNavItemBasic.doc.mjs +14 -0
  101. package/templates/blocks/components/SideNavItem/SideNavItemBasic.tsx +49 -0
  102. package/templates/blocks/components/SideNavSection/SideNavSectionBasic.doc.mjs +14 -0
  103. package/templates/blocks/components/SideNavSection/SideNavSectionBasic.tsx +71 -0
  104. package/templates/blocks/components/StackItem/StackItemFill.doc.mjs +14 -0
  105. package/templates/blocks/components/StackItem/StackItemFill.tsx +28 -0
  106. package/templates/blocks/components/TabMenu/TabMenuBasic.doc.mjs +14 -0
  107. package/templates/blocks/components/TabMenu/TabMenuBasic.tsx +23 -0
  108. package/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupVertical.doc.mjs +14 -0
  109. package/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupVertical.tsx +47 -0
  110. package/templates/blocks/components/TopNavHeading/TopNavHeadingBasic.doc.mjs +14 -0
  111. package/templates/blocks/components/TopNavHeading/TopNavHeadingBasic.tsx +22 -0
  112. package/templates/blocks/components/TopNavItem/TopNavItemBasic.doc.mjs +14 -0
  113. package/templates/blocks/components/TopNavItem/TopNavItemBasic.tsx +21 -0
  114. package/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.doc.mjs +20 -0
  115. package/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.tsx +46 -0
  116. package/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardBasic.doc.mjs +14 -0
  117. package/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardBasic.tsx +16 -0
  118. package/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.doc.mjs +14 -0
  119. package/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.tsx +26 -0
  120. package/templates/blocks/components/TopNavMenu/TopNavMenuBasic.doc.mjs +14 -0
  121. package/templates/blocks/components/TopNavMenu/TopNavMenuBasic.tsx +43 -0
  122. package/templates/blocks/components/TypeaheadItem/TypeaheadItemBasic.doc.mjs +14 -0
  123. package/templates/blocks/components/TypeaheadItem/TypeaheadItemBasic.tsx +43 -0
  124. package/templates/blocks/components/VStack/VStackBasic.doc.mjs +14 -0
  125. package/templates/blocks/components/VStack/VStackBasic.tsx +20 -0
  126. package/templates/pages/kanban-board/page.tsx +729 -0
  127. package/templates/pages/kanban-board/template.doc.mjs +12 -0
  128. package/templates/pages/shell-side-nav/page.tsx +0 -1
  129. package/templates/blocks/components/TreeListBranches/TreeListBranchesShowcase.doc.mjs +0 -14
  130. package/templates/blocks/components/TreeListBranches/TreeListBranchesShowcase.tsx +0 -64
  131. package/templates/blocks/components/TreeListItem/TreeListItemShowcase.doc.mjs +0 -14
  132. package/templates/blocks/components/TreeListItem/TreeListItemShowcase.tsx +0 -60
@@ -0,0 +1,12 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('../../../../core/src/docs-types').TemplateDoc} */
4
+ export const doc = {
5
+ type: 'page',
6
+ name: 'Kanban Board',
7
+ displayName: 'Kanban Board',
8
+ description:
9
+ 'Task board with color-coded status columns, draggable task cards, priority tags, and metadata',
10
+ isReady: true,
11
+ category: 'Tools - Kanban Board',
12
+ };
@@ -142,7 +142,6 @@ function ConversationItem({
142
142
  <MoreMenu
143
143
  size="sm"
144
144
  label="Conversation options"
145
- hasAutoFocus={false}
146
145
  onOpenChange={setIsMenuOpen}
147
146
  items={[
148
147
  {label: 'Pin', onClick: () => {}},
@@ -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: 'TreeListBranches',
7
- name: 'TreeListBranches',
8
- displayName: 'Tree List Branches',
9
- description: 'Tree with expandable branches at multiple nesting levels.',
10
- isReady: true,
11
- isShowcase: true,
12
- aspectRatio: 4 / 3,
13
- componentsUsed: ['TreeList'],
14
- };
@@ -1,64 +0,0 @@
1
- // Copyright (c) Meta Platforms, Inc. and affiliates.
2
-
3
- 'use client';
4
-
5
- import {TreeList} from '@astryxdesign/core/TreeList';
6
-
7
- const noop = () => {};
8
-
9
- export default function TreeListBranchesShowcase() {
10
- return (
11
- <TreeList
12
- items={[
13
- {
14
- id: 'design-system',
15
- label: 'Design System',
16
- isExpanded: true,
17
- children: [
18
- {
19
- id: 'components',
20
- label: 'Components',
21
- isExpanded: true,
22
- children: [
23
- {
24
- id: 'inputs',
25
- label: 'Inputs',
26
- children: [
27
- {id: 'text-input', label: 'TextInput', onClick: noop},
28
- {id: 'checkbox', label: 'Checkbox', onClick: noop},
29
- {id: 'selector', label: 'Selector', onClick: noop},
30
- ],
31
- },
32
- {
33
- id: 'layout',
34
- label: 'Layout',
35
- children: [
36
- {id: 'stack', label: 'Stack', onClick: noop},
37
- {id: 'grid', label: 'Grid', onClick: noop},
38
- ],
39
- },
40
- ],
41
- },
42
- {
43
- id: 'tokens',
44
- label: 'Tokens',
45
- children: [
46
- {id: 'colors', label: 'Colors', onClick: noop},
47
- {id: 'spacing', label: 'Spacing', onClick: noop},
48
- {id: 'typography', label: 'Typography', onClick: noop},
49
- ],
50
- },
51
- ],
52
- },
53
- {
54
- id: 'utilities',
55
- label: 'Utilities',
56
- children: [
57
- {id: 'hooks', label: 'Hooks', onClick: noop},
58
- {id: 'helpers', label: 'Helpers', onClick: noop},
59
- ],
60
- },
61
- ]}
62
- />
63
- );
64
- }
@@ -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: 'TreeListItem',
7
- name: 'TreeListItem',
8
- displayName: 'Tree List Item',
9
- description: 'Tree items with descriptions, icons, badges, selection, disabled state, and nested expand/collapse. TreeList is data-driven: no composed children API.',
10
- isReady: true,
11
- isShowcase: true,
12
- aspectRatio: 4 / 3,
13
- componentsUsed: ['TreeList', 'Badge', 'Icon', 'Layout', 'Text'],
14
- };
@@ -1,60 +0,0 @@
1
- // Copyright (c) Meta Platforms, Inc. and affiliates.
2
-
3
- 'use client';
4
-
5
- import {TreeList} from '@astryxdesign/core/TreeList';
6
- import {Badge} from '@astryxdesign/core/Badge';
7
- import {Icon} from '@astryxdesign/core/Icon';
8
-
9
- const noop = () => {};
10
-
11
- export default function TreeListItemShowcase() {
12
- return (
13
- <TreeList
14
- style={{width: 400}}
15
- items={[
16
- {
17
- id: 'inbox',
18
- label: 'Inbox',
19
- description: '12 unread messages',
20
- isExpanded: true,
21
- startContent: <Icon icon="info" size="sm" />,
22
- endContent: <Badge label="12" variant="info" />,
23
- children: [
24
- {
25
- id: 'primary',
26
- label: 'Primary',
27
- isSelected: true,
28
- startContent: <Icon icon="check" size="sm" />,
29
- onClick: noop,
30
- },
31
- {
32
- id: 'updates',
33
- label: 'Updates',
34
- endContent: <Badge label="4" variant="info" />,
35
- onClick: noop,
36
- },
37
- ],
38
- },
39
- {
40
- id: 'drafts',
41
- label: 'Drafts',
42
- description: '3 draft messages',
43
- startContent: <Icon icon="clock" size="sm" />,
44
- onClick: noop,
45
- },
46
- {
47
- id: 'archive',
48
- label: 'Archive',
49
- onClick: noop,
50
- },
51
- {
52
- id: 'spam',
53
- label: 'Spam',
54
- isDisabled: true,
55
- startContent: <Icon icon="warning" size="sm" />,
56
- },
57
- ]}
58
- />
59
- );
60
- }