@aliens-syndicate/cli 0.0.0-stage → 0.1.1

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 (82) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +219 -2
  3. package/package.json +31 -4
  4. package/tools/build.mjs +607 -0
  5. package/tools/cli.mjs +39 -0
  6. package/tools/create.mjs +102 -0
  7. package/tools/project-layout.mjs +41 -0
  8. package/tools/runtime.mjs +294 -0
  9. package/tools/starter/app/animations/hero-enter.animation +8 -0
  10. package/tools/starter/app/apis/hero.api +9 -0
  11. package/tools/starter/app/directives/hero-highlight.directive +8 -0
  12. package/tools/starter/app/elements/atoms/kit-nav-link/kit-nav-link.markup +2 -0
  13. package/tools/starter/app/elements/molecules/hero-card/hero-card.logic +15 -0
  14. package/tools/starter/app/elements/molecules/hero-card/hero-card.markup +8 -0
  15. package/tools/starter/app/elements/molecules/hero-card/hero-card.style +12 -0
  16. package/tools/starter/app/elements/molecules/hero-card/hero-card.test +8 -0
  17. package/tools/starter/app/elements/molecules/kit-button-demo/kit-button-demo.logic +14 -0
  18. package/tools/starter/app/elements/molecules/kit-button-demo/kit-button-demo.markup +8 -0
  19. package/tools/starter/app/elements/molecules/kit-card-link/kit-card-link.markup +6 -0
  20. package/tools/starter/app/elements/organisms/kit-navigation/kit-navigation.markup +19 -0
  21. package/tools/starter/app/enums/hero-status.enum +7 -0
  22. package/tools/starter/app/errors/hero-not-found.error +7 -0
  23. package/tools/starter/app/guards/hero-editor.guard +8 -0
  24. package/tools/starter/app/interceptors/hero-request.interceptor +8 -0
  25. package/tools/starter/app/interfaces/hero.interface +8 -0
  26. package/tools/starter/app/mocks/hero.mock +8 -0
  27. package/tools/starter/app/models/hero.model +8 -0
  28. package/tools/starter/app/pages/kit-border/kit-border.markup +38 -0
  29. package/tools/starter/app/pages/kit-color/kit-color.markup +58 -0
  30. package/tools/starter/app/pages/kit-components/kit-components.markup +95 -0
  31. package/tools/starter/app/pages/kit-overview/kit-overview.markup +25 -0
  32. package/tools/starter/app/pages/kit-radius/kit-radius.markup +34 -0
  33. package/tools/starter/app/pages/kit-space/kit-space.markup +61 -0
  34. package/tools/starter/app/pages/kit-type/kit-type.markup +48 -0
  35. package/tools/starter/app/pages/style-guide/style-guide.markup +10 -0
  36. package/tools/starter/app/pages/style-guide/style-guide.style +252 -0
  37. package/tools/starter/app/pipes/hero-label.pipe +6 -0
  38. package/tools/starter/app/routes/hero-archive.route +8 -0
  39. package/tools/starter/app/routes/hero-detail.route +11 -0
  40. package/tools/starter/app/routes/hero-edit.route +14 -0
  41. package/tools/starter/app/routes/hero-filter.route +14 -0
  42. package/tools/starter/app/routes/hero-list.route +9 -0
  43. package/tools/starter/app/routes/hero-not-found.route +7 -0
  44. package/tools/starter/app/routes/hero-preview.route +11 -0
  45. package/tools/starter/app/routes/hero-redirect.route +8 -0
  46. package/tools/starter/app/routes/hero-search.route +15 -0
  47. package/tools/starter/app/routes/hero-tabs.route +17 -0
  48. package/tools/starter/app/routes/hero-team.route +11 -0
  49. package/tools/starter/app/services/hero-roster.service +8 -0
  50. package/tools/starter/app/storage/hero-favorite.storage +8 -0
  51. package/tools/starter/app/validators/hero-energy.validator +8 -0
  52. package/tools/starter/language/.en-US +73 -0
  53. package/tools/starter/language/.es-ES +73 -0
  54. package/tools/starter/language/.pt-BR +73 -0
  55. package/tools/starter/language/.zh-CN +73 -0
  56. package/tools/starter/styles/components/alerts.style +16 -0
  57. package/tools/starter/styles/components/badges.style +18 -0
  58. package/tools/starter/styles/components/borders.style +11 -0
  59. package/tools/starter/styles/components/buttons.style +34 -0
  60. package/tools/starter/styles/components/cards.style +9 -0
  61. package/tools/starter/styles/components/feedback.style +21 -0
  62. package/tools/starter/styles/components/forms.style +38 -0
  63. package/tools/starter/styles/components/spacing.style +13 -0
  64. package/tools/starter/styles/components/tables.style +17 -0
  65. package/tools/starter/styles/components/typography.style +51 -0
  66. package/tools/starter/styles/generic/ui-base.style +12 -0
  67. package/tools/starter/styles/objects/ui-layout.style +13 -0
  68. package/tools/starter/styles/settings/border-tokens.style +9 -0
  69. package/tools/starter/styles/settings/color-tokens.style +40 -0
  70. package/tools/starter/styles/settings/elevation-tokens.style +8 -0
  71. package/tools/starter/styles/settings/radius-tokens.style +8 -0
  72. package/tools/starter/styles/settings/space-tokens.style +11 -0
  73. package/tools/starter/styles/settings/theme.style +52 -0
  74. package/tools/starter/styles/settings/type-tokens.style +18 -0
  75. package/tools/vscode-space/extension.cjs +56 -0
  76. package/tools/vscode-space/language-configuration.json +9 -0
  77. package/tools/vscode-space/package.json +129 -0
  78. package/tools/vscode-space/space.tmLanguage.json +32 -0
  79. package/tools/vscode-space/style-colors.cjs +69 -0
  80. package/tools/vscode-space/syntax.cjs +122 -0
  81. package/tools/vscode-space/vendor/color-name.LICENSE +8 -0
  82. package/tools/vscode-space/vendor/color-name.cjs +152 -0
@@ -0,0 +1,14 @@
1
+ # Aliens example: Hero
2
+ # Aplica hero-editor.guard antes de entrar na edição.
3
+ #
4
+ # Route HeroEdit
5
+ # routes:
6
+ # heroEdit:
7
+ # path: /heroes/:heroId/edit
8
+ # element: hero-edit
9
+ # params:
10
+ # heroId:
11
+ # type: integer
12
+ # guards:
13
+ # enter:
14
+ # hero-editor
@@ -0,0 +1,14 @@
1
+ # Aliens example: Hero
2
+ # Query com um objeto JSON codificado em um link compartilhável.
3
+ #
4
+ # Route HeroFilter
5
+ # routes:
6
+ # heroFilter:
7
+ # path: /hero-filters
8
+ # element: hero-filter
9
+ # query:
10
+ # filter:
11
+ # type: json
12
+ # properties:
13
+ # team: string
14
+ # featured: boolean
@@ -0,0 +1,9 @@
1
+ # Aliens example: Hero
2
+ # Rota fixa da lista. A página heroes deve existir em app/pages/.
3
+ #
4
+ # Route HeroList
5
+ # routes:
6
+ # heroes:
7
+ # path: /heroes
8
+ # element: heroes
9
+ # title: Heroes
@@ -0,0 +1,7 @@
1
+ # Aliens example: Hero
2
+ # Fallback para URLs sem correspondência.
3
+ #
4
+ # Route HeroNotFound
5
+ # fallback:
6
+ # element: not-found
7
+ # title: Page not found
@@ -0,0 +1,11 @@
1
+ # Aliens example: Hero
2
+ # Estado de navegação fora da URL. Trate também a abertura direta do link.
3
+ #
4
+ # Route HeroPreview
5
+ # routes:
6
+ # heroPreview:
7
+ # path: /hero-preview
8
+ # element: hero-preview
9
+ # state:
10
+ # heroId: integer
11
+ # fromRoster: boolean
@@ -0,0 +1,8 @@
1
+ # Aliens example: Hero
2
+ # Redireciona uma URL antiga para heroes, definido em hero-list.route.
3
+ #
4
+ # Route HeroRedirect
5
+ # routes:
6
+ # legacyChampions:
7
+ # path: /champions
8
+ # redirectTo: heroes
@@ -0,0 +1,15 @@
1
+ # Aliens example: Hero
2
+ # Query com termo obrigatório e página padrão. Exemplo /hero-search?q=nova&page=2.
3
+ #
4
+ # Route HeroSearch
5
+ # routes:
6
+ # heroSearch:
7
+ # path: /hero-search
8
+ # element: hero-search
9
+ # query:
10
+ # q:
11
+ # type: string
12
+ # required: true
13
+ # page:
14
+ # type: integer
15
+ # default: 1
@@ -0,0 +1,17 @@
1
+ # Aliens example: Hero
2
+ # Rotas filhas usam caminhos relativos e herdam heroId. Exemplo /heroes/42/missions.
3
+ #
4
+ # Route HeroTabs
5
+ # routes:
6
+ # heroTabs:
7
+ # path: /heroes/:heroId
8
+ # params:
9
+ # heroId:
10
+ # type: integer
11
+ # children:
12
+ # profile:
13
+ # path: profile
14
+ # element: hero-profile
15
+ # missions:
16
+ # path: missions
17
+ # element: hero-missions
@@ -0,0 +1,11 @@
1
+ # Aliens example: Hero
2
+ # Parâmetro opcional. Aceita /hero-teams e /hero-teams/orbit.
3
+ #
4
+ # Route HeroTeam
5
+ # routes:
6
+ # heroTeam:
7
+ # path: /hero-teams/:team?
8
+ # element: hero-team
9
+ # params:
10
+ # team:
11
+ # type: string
@@ -0,0 +1,8 @@
1
+ # Aliens example: Hero
2
+ # Centraliza uma regra de negócio do catálogo. Interface e Element podem usá-la em conjunto.
3
+ #
4
+ # Service HeroRoster
5
+ # function canJoinMission(active: boolean, energy: number): boolean
6
+ # if active
7
+ # return energy >= 50
8
+ # return false
@@ -0,0 +1,8 @@
1
+ # Aliens example: Hero
2
+ # Ilustra uma chave por herói para gravar preferências locais sem colisões.
3
+ #
4
+ # Storage HeroFavorite
5
+ # prefix: string = "heroes.favorite."
6
+ #
7
+ # function key(heroId: number): string
8
+ # return prefix + heroId
@@ -0,0 +1,8 @@
1
+ # Aliens example: Hero
2
+ # Valida a energia digitada para o herói dentro do intervalo de 0 a 100.
3
+ #
4
+ # Validator HeroEnergy
5
+ # function validate(energy: number): boolean
6
+ # if energy < 0
7
+ # return false
8
+ # return energy <= 100
@@ -0,0 +1,73 @@
1
+ kit:
2
+ title: Style library
3
+ intro: A foundation for your next idea. Explore tokens, compose elements, and make it yours.
4
+ theme: Theme
5
+ light: Light
6
+ dark: Dark
7
+ nav: Style library navigation
8
+ overview: Overview
9
+ color: Colors
10
+ spacing: Spacing
11
+ radius: Radius
12
+ borders: Borders
13
+ typography: Typography
14
+ components: Components
15
+ tokens: Explore tokens
16
+ explore: Start with the essentials
17
+ colorDesc: Semantic colors that adapt to your theme. Edit the palette and map each role in theme.style.
18
+ spacingDesc: One spacing scale for padding, gaps, and balanced layouts.
19
+ radiusDesc: From straight edges to pill shapes. Choose a consistent rounding for your elements.
20
+ borderDesc: Outlines, dividers, focus rings, and shadows to define structure and depth.
21
+ typeDesc: Six heading levels and a complete set of everyday text styles.
22
+ componentDesc: Working examples built with the same tokens. Change your theme and see every component respond.
23
+ buttons: Buttons
24
+ tryButton: Toggle selection
25
+ disabled: Disabled
26
+ buttonFeedback: Selected. Click again to clear.
27
+ focusSample: Focus with Tab
28
+ divider: Divider
29
+ elevation: Elevation
30
+ scale: Type scale
31
+ heading1: Build your next idea
32
+ heading2: A clear starting point
33
+ heading3: Make room for content
34
+ heading4: Every detail matters
35
+ heading5: Small, useful sections
36
+ heading6: One more detail
37
+ bodyType: Body text
38
+ bodySample: Good typography makes content easy to read. This paragraph uses the body size, comfortable line height, and the theme text color.
39
+ smallSample: Small text for supporting information.
40
+ captionSample: Caption · additional context
41
+ sampleLink: Explore the color palette
42
+ editorial: Editorial elements
43
+ quote: Consistency begins with shared decisions.
44
+ listOne: Reuse tokens across your pages.
45
+ listTwo: Keep related files together.
46
+ forms: Form controls
47
+ nameLabel: Name
48
+ namePlaceholder: Enter a name
49
+ email: Email
50
+ emailError: Example error. Enter a complete email address.
51
+ remember: Remember my choice
52
+ cards: Cards and badges
53
+ cardSample: Use a card to group related content. Badges communicate a short status.
54
+ info: Information
55
+ success: Ready
56
+ warning: In progress
57
+ error: Needs review
58
+ alerts: Alerts
59
+ alertInfo: Your changes are saved locally.
60
+ alertSuccess: The project is ready to preview.
61
+ alertWarning: Review the details before continuing.
62
+ alertError: An example error message with a clear next step.
63
+ data: Tables and progress
64
+ sampleTable: Example team
65
+ tableName: Hero
66
+ tableStatus: Status
67
+ progress: Progress · 64%
68
+ feedback: Feedback and disclosure
69
+ emptyTitle: Nothing here yet
70
+ emptySample: Add an item to get started.
71
+ disclosure: Show details
72
+ disclosureSample: This disclosure uses native HTML behavior and works with the keyboard.
73
+ notes: Notes
@@ -0,0 +1,73 @@
1
+ kit:
2
+ title: Biblioteca de estilos
3
+ intro: Una base para tu próxima idea. Explora tokens, combina Elements y personaliza.
4
+ theme: Tema
5
+ light: Claro
6
+ dark: Oscuro
7
+ nav: Navegación de la biblioteca de estilos
8
+ overview: Vista general
9
+ color: Colores
10
+ spacing: Espaciado
11
+ radius: Radios
12
+ borders: Bordes
13
+ typography: Tipografía
14
+ components: Componentes
15
+ tokens: Explorar tokens
16
+ explore: Empieza por lo esencial
17
+ colorDesc: Colores semánticos que se adaptan al tema. Edita la paleta y define cada función en theme.style.
18
+ spacingDesc: Una escala de espaciado para rellenos, separaciones y diseños equilibrados.
19
+ radiusDesc: De esquinas rectas a formas redondeadas. Elige radios consistentes para tus Elements.
20
+ borderDesc: Contornos, divisores, indicadores de foco y sombras para definir estructura y profundidad.
21
+ typeDesc: Seis niveles de títulos y un conjunto de estilos de texto para el día a día.
22
+ componentDesc: Ejemplos funcionales con los mismos tokens. Cambia el tema y observa cómo se adaptan los componentes.
23
+ buttons: Botones
24
+ tryButton: Alternar selección
25
+ disabled: Desactivado
26
+ buttonFeedback: Seleccionado. Haz clic otra vez para borrar.
27
+ focusSample: Enfoca con Tab
28
+ divider: Divisor
29
+ elevation: Elevación
30
+ scale: Escala tipográfica
31
+ heading1: Crea tu próxima idea
32
+ heading2: Un punto de partida claro
33
+ heading3: Da espacio al contenido
34
+ heading4: Cada detalle importa
35
+ heading5: Secciones pequeñas y útiles
36
+ heading6: Un detalle más
37
+ bodyType: Texto de cuerpo
38
+ bodySample: Una buena tipografía facilita la lectura. Este párrafo usa el tamaño de cuerpo, un interlineado cómodo y el color de texto del tema.
39
+ smallSample: Texto pequeño para información complementaria.
40
+ captionSample: Leyenda · contexto adicional
41
+ sampleLink: Explorar la paleta de colores
42
+ editorial: Elementos editoriales
43
+ quote: La coherencia empieza con decisiones compartidas.
44
+ listOne: Reutiliza tokens en tus páginas.
45
+ listTwo: Mantén juntos los archivos relacionados.
46
+ forms: Controles de formulario
47
+ nameLabel: Nombre
48
+ namePlaceholder: Escribe un nombre
49
+ email: Correo electrónico
50
+ emailError: Error de ejemplo. Escribe un correo electrónico completo.
51
+ remember: Recordar mi elección
52
+ cards: Tarjetas y etiquetas
53
+ cardSample: Usa una tarjeta para agrupar contenido relacionado. Las etiquetas comunican un estado breve.
54
+ info: Información
55
+ success: Listo
56
+ warning: En curso
57
+ error: Requiere revisión
58
+ alerts: Avisos
59
+ alertInfo: Tus cambios están guardados localmente.
60
+ alertSuccess: El proyecto está listo para visualizar.
61
+ alertWarning: Revisa los detalles antes de continuar.
62
+ alertError: Un mensaje de error de ejemplo con un siguiente paso claro.
63
+ data: Tablas y progreso
64
+ sampleTable: Equipo de ejemplo
65
+ tableName: Héroe
66
+ tableStatus: Estado
67
+ progress: Progreso · 64%
68
+ feedback: Comentarios y detalles
69
+ emptyTitle: Todavía no hay nada
70
+ emptySample: Añade un elemento para empezar.
71
+ disclosure: Mostrar detalles
72
+ disclosureSample: Este panel usa el comportamiento nativo de HTML y funciona con el teclado.
73
+ notes: Notas
@@ -0,0 +1,73 @@
1
+ kit:
2
+ title: Biblioteca de estilos
3
+ intro: Uma base para sua próxima ideia. Explore tokens, combine Elements e personalize.
4
+ theme: Tema
5
+ light: Claro
6
+ dark: Escuro
7
+ nav: Navegação da biblioteca de estilos
8
+ overview: Visão geral
9
+ color: Cores
10
+ spacing: Espaçamento
11
+ radius: Raios
12
+ borders: Bordas
13
+ typography: Tipografia
14
+ components: Componentes
15
+ tokens: Explorar tokens
16
+ explore: Comece pelo essencial
17
+ colorDesc: Cores semânticas que acompanham seu tema. Edite a paleta e defina cada função em theme.style.
18
+ spacingDesc: Uma escala de espaçamento para preenchimentos, intervalos e layouts equilibrados.
19
+ radiusDesc: De cantos retos a formas arredondadas. Escolha raios consistentes para seus Elements.
20
+ borderDesc: Contornos, divisores, indicadores de foco e sombras para definir estrutura e profundidade.
21
+ typeDesc: Seis níveis de títulos e um conjunto de estilos de texto para o dia a dia.
22
+ componentDesc: Exemplos funcionais usando os mesmos tokens. Mude o tema e veja os componentes acompanharem.
23
+ buttons: Botões
24
+ tryButton: Alternar seleção
25
+ disabled: Desativado
26
+ buttonFeedback: Selecionado. Clique novamente para limpar.
27
+ focusSample: Foque com Tab
28
+ divider: Divisor
29
+ elevation: Elevação
30
+ scale: Escala tipográfica
31
+ heading1: Crie sua próxima ideia
32
+ heading2: Um ponto de partida claro
33
+ heading3: Dê espaço ao conteúdo
34
+ heading4: Cada detalhe importa
35
+ heading5: Seções pequenas e úteis
36
+ heading6: Mais um detalhe
37
+ bodyType: Texto de corpo
38
+ bodySample: Uma boa tipografia facilita a leitura. Este parágrafo usa o tamanho de corpo, entrelinha confortável e a cor de texto do tema.
39
+ smallSample: Texto menor para informações complementares.
40
+ captionSample: Legenda · contexto adicional
41
+ sampleLink: Explorar a paleta de cores
42
+ editorial: Elementos editoriais
43
+ quote: Consistência começa com decisões compartilhadas.
44
+ listOne: Reutilize tokens nas suas páginas.
45
+ listTwo: Mantenha arquivos relacionados juntos.
46
+ forms: Controles de formulário
47
+ nameLabel: Nome
48
+ namePlaceholder: Digite um nome
49
+ email: E-mail
50
+ emailError: Erro de exemplo. Digite um endereço de e-mail completo.
51
+ remember: Lembrar minha escolha
52
+ cards: Cartões e etiquetas
53
+ cardSample: Use um cartão para reunir conteúdos relacionados. Etiquetas comunicam um status curto.
54
+ info: Informação
55
+ success: Pronto
56
+ warning: Em andamento
57
+ error: Requer revisão
58
+ alerts: Avisos
59
+ alertInfo: Suas alterações estão salvas localmente.
60
+ alertSuccess: O projeto está pronto para visualizar.
61
+ alertWarning: Revise os detalhes antes de continuar.
62
+ alertError: Uma mensagem de erro de exemplo com um próximo passo claro.
63
+ data: Tabelas e progresso
64
+ sampleTable: Equipe de exemplo
65
+ tableName: Herói
66
+ tableStatus: Status
67
+ progress: Progresso · 64%
68
+ feedback: Feedback e detalhes
69
+ emptyTitle: Nada aqui ainda
70
+ emptySample: Adicione um item para começar.
71
+ disclosure: Mostrar detalhes
72
+ disclosureSample: Este painel usa o comportamento nativo do HTML e funciona pelo teclado.
73
+ notes: Observações
@@ -0,0 +1,73 @@
1
+ kit:
2
+ title: 样式库
3
+ intro: 为你的下一个创意打好基础。探索设计变量、组合元素,打造自己的风格。
4
+ theme: 主题
5
+ light: 浅色
6
+ dark: 深色
7
+ nav: 样式库导航
8
+ overview: 概览
9
+ color: 颜色
10
+ spacing: 间距
11
+ radius: 圆角
12
+ borders: 边框
13
+ typography: 排版
14
+ components: 组件
15
+ tokens: 探索设计变量
16
+ explore: 从基础开始
17
+ colorDesc: 随主题变化的语义颜色。编辑调色板,在 theme.style 中定义各个角色。
18
+ spacingDesc: 统一的间距尺度,用于内边距、元素间距和均衡布局。
19
+ radiusDesc: 从直角到胶囊形状,为元素选择一致的圆角。
20
+ borderDesc: 通过轮廓、分隔线、焦点环和阴影定义结构与层次。
21
+ typeDesc: 六级标题及日常所需的文字样式。
22
+ componentDesc: 使用相同设计变量的可交互示例。切换主题,查看每个组件的变化。
23
+ buttons: 按钮
24
+ tryButton: 切换选择
25
+ disabled: 已禁用
26
+ buttonFeedback: 已选择。再次点击以取消。
27
+ focusSample: 按 Tab 聚焦
28
+ divider: 分隔线
29
+ elevation: 阴影层次
30
+ scale: 字号尺度
31
+ heading1: 构建你的下一个创意
32
+ heading2: 清晰的起点
33
+ heading3: 给内容留出空间
34
+ heading4: 每个细节都重要
35
+ heading5: 简洁实用的章节
36
+ heading6: 更多细节
37
+ bodyType: 正文
38
+ bodySample: 良好的排版让内容易于阅读。此段落使用正文字号、舒适行高和主题文字颜色。
39
+ smallSample: 用于补充信息的小号文字。
40
+ captionSample: 说明 · 更多背景
41
+ sampleLink: 探索调色板
42
+ editorial: 编辑元素
43
+ quote: 一致性始于共同的决策。
44
+ listOne: 在各个页面复用设计变量。
45
+ listTwo: 将相关文件放在一起。
46
+ forms: 表单控件
47
+ nameLabel: 姓名
48
+ namePlaceholder: 请输入姓名
49
+ email: 电子邮件
50
+ emailError: 错误示例。请输入完整的电子邮件地址。
51
+ remember: 记住我的选择
52
+ cards: 卡片和标签
53
+ cardSample: 使用卡片整理相关内容,使用标签显示简短状态。
54
+ info: 信息
55
+ success: 就绪
56
+ warning: 进行中
57
+ error: 待审核
58
+ alerts: 提示
59
+ alertInfo: 你的更改已保存在本地。
60
+ alertSuccess: 项目已可预览。
61
+ alertWarning: 继续之前请检查详情。
62
+ alertError: 带有明确后续步骤的错误消息示例。
63
+ data: 表格与进度
64
+ sampleTable: 示例团队
65
+ tableName: 英雄
66
+ tableStatus: 状态
67
+ progress: 进度 · 64%
68
+ feedback: 反馈和详情
69
+ emptyTitle: 暂无内容
70
+ emptySample: 添加一个条目以开始。
71
+ disclosure: 显示详情
72
+ disclosureSample: 此面板使用原生 HTML 行为,支持键盘操作。
73
+ notes: 备注
@@ -0,0 +1,16 @@
1
+ Style Alerts
2
+ space-alert
3
+ padding: var(--space-3) var(--space-4)
4
+ border-inline-start: var(--border-width-lg) solid currentColor
5
+ border-radius: var(--radius-md)
6
+ background: var(--color-info-bg)
7
+ color: var(--color-info)
8
+ space-alert_success
9
+ background: var(--color-success-bg)
10
+ color: var(--color-success)
11
+ space-alert_warning
12
+ background: var(--color-warning-bg)
13
+ color: var(--color-warning)
14
+ space-alert_danger
15
+ background: var(--color-danger-bg)
16
+ color: var(--color-danger)
@@ -0,0 +1,18 @@
1
+ Style Badges
2
+ space-badge
3
+ display: inline-flex
4
+ width: fit-content
5
+ padding: var(--space-1) var(--space-3)
6
+ border-radius: var(--radius-pill)
7
+ background: var(--color-accent)
8
+ color: var(--color-on-accent)
9
+ font: var(--weight-bold) var(--text-caption)/1.35 var(--font-sans)
10
+ space-badge_success
11
+ background: var(--color-success-bg)
12
+ color: var(--color-success)
13
+ space-badge_warning
14
+ background: var(--color-warning-bg)
15
+ color: var(--color-warning)
16
+ space-badge_danger
17
+ background: var(--color-danger-bg)
18
+ color: var(--color-danger)
@@ -0,0 +1,11 @@
1
+ Style Borders
2
+ space-border, space-card:is(space-border)
3
+ border: var(--border-subtle)
4
+ space-border_strong, space-card:is(space-border_strong)
5
+ border: var(--border-strong)
6
+ space-border_dashed, space-card:is(space-border_dashed)
7
+ border: var(--border-dashed)
8
+ space-divider
9
+ margin: 0
10
+ border: 0
11
+ border-block-start: var(--border-subtle)
@@ -0,0 +1,34 @@
1
+ Style Buttons
2
+ space-button
3
+ display: inline-flex
4
+ align-items: center
5
+ justify-content: center
6
+ gap: var(--space-2)
7
+ min-height: 44px
8
+ max-width: 100%
9
+ padding: var(--space-2) var(--space-4)
10
+ border: var(--border-subtle)
11
+ border-radius: var(--radius-md)
12
+ background: var(--color-canvas)
13
+ color: var(--color-text)
14
+ font: var(--weight-bold) var(--text-small)/1.3 var(--font-sans)
15
+ text-align: center
16
+ text-decoration: none
17
+ cursor: pointer
18
+ space-button:hover
19
+ background: var(--color-surface)
20
+ space-button_primary
21
+ border-color: transparent
22
+ background: var(--color-brand)
23
+ color: var(--color-on-brand)
24
+ space-button_primary:hover
25
+ background: var(--color-brand-hover)
26
+ space-button_quiet
27
+ border-color: transparent
28
+ background: transparent
29
+ space-button:disabled
30
+ opacity: .55
31
+ cursor: default
32
+ space-focus:focus-visible, space-button:focus-visible, space-input:focus-visible, space-link:focus-visible
33
+ outline: var(--border-focus)
34
+ outline-offset: 3px
@@ -0,0 +1,9 @@
1
+ Style Cards
2
+ space-card
3
+ min-width: 0
4
+ padding: var(--space-5)
5
+ border: var(--border-subtle)
6
+ border-radius: var(--radius-lg)
7
+ background: var(--color-canvas)
8
+ space-card_raised
9
+ box-shadow: var(--shadow-md)
@@ -0,0 +1,21 @@
1
+ Style Feedback
2
+ space-progress
3
+ width: 100%
4
+ accent-color: var(--color-brand)
5
+ space-disclosure
6
+ padding: var(--space-3) var(--space-4)
7
+ border: var(--border-subtle)
8
+ border-radius: var(--radius-md)
9
+ space-disclosure summary
10
+ cursor: pointer
11
+ font-weight: var(--weight-bold)
12
+ space-disclosure[open] summary
13
+ margin-block-end: var(--space-2)
14
+ space-empty
15
+ display: grid
16
+ gap: var(--space-2)
17
+ justify-items: center
18
+ padding: var(--space-6)
19
+ border: var(--border-dashed)
20
+ border-radius: var(--radius-lg)
21
+ text-align: center
@@ -0,0 +1,38 @@
1
+ Style Forms
2
+ space-field
3
+ display: grid
4
+ gap: var(--space-1)
5
+ space-label
6
+ font-size: var(--text-small)
7
+ font-weight: var(--weight-bold)
8
+ space-input
9
+ display: block
10
+ width: 100%
11
+ min-height: 44px
12
+ padding: var(--space-2) var(--space-3)
13
+ border: var(--border-subtle)
14
+ border-color: var(--color-outline-strong)
15
+ border-radius: var(--radius-md)
16
+ background: var(--color-canvas)
17
+ color: var(--color-text)
18
+ font: inherit
19
+ textarea:is(space-input)
20
+ min-height: 5rem
21
+ resize: vertical
22
+ space-input[aria-invalid="true"]
23
+ border-color: var(--color-danger)
24
+ space-help, space-error
25
+ margin: 0
26
+ font-size: var(--text-small)
27
+ color: var(--color-muted)
28
+ space-error
29
+ color: var(--color-danger)
30
+ space-check
31
+ display: flex
32
+ align-items: center
33
+ gap: var(--space-2)
34
+ min-height: 44px
35
+ space-check input
36
+ width: 1rem
37
+ height: 1rem
38
+ accent-color: var(--color-brand)
@@ -0,0 +1,13 @@
1
+ Style Spacing
2
+ space-pad-sm
3
+ padding: var(--space-2)
4
+ space-pad-md
5
+ padding: var(--space-4)
6
+ space-pad-lg
7
+ padding: var(--space-6)
8
+ space-gap-sm
9
+ gap: var(--space-2)
10
+ space-gap-md
11
+ gap: var(--space-4)
12
+ space-gap-lg
13
+ gap: var(--space-6)
@@ -0,0 +1,17 @@
1
+ Style Tables
2
+ space-table-scroll
3
+ overflow-x: auto
4
+ space-table
5
+ width: 100%
6
+ border-collapse: collapse
7
+ text-align: start
8
+ space-table caption
9
+ padding-block-end: var(--space-2)
10
+ text-align: start
11
+ font-weight: var(--weight-bold)
12
+ space-table th, space-table td
13
+ padding: var(--space-2) var(--space-3)
14
+ border-block-end: var(--border-subtle)
15
+ text-align: start
16
+ space-table th
17
+ background: var(--color-surface)