@astryxdesign/cli 0.7.18-canary.gfacee17 → 0.7.18
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/CHANGELOG.md +185 -19
- package/README.md +19 -19
- package/api/component/_adapter.d.mts +2 -1
- package/api/component/_adapter.mjs +2 -1
- package/api/docs/_adapter.d.mts +6 -5
- package/api/docs/_adapter.mjs +36 -5
- package/api/doctor/_adapter.d.mts +6 -3
- package/api/doctor/_adapter.mjs +13 -5
- package/api/doctor/doctor.mjs +5 -5
- package/api/doctor/font-packages.d.mts +36 -0
- package/api/doctor/font-packages.mjs +124 -0
- package/api/doctor/theme-checks.mjs +110 -49
- package/api/experimental.d.mts +0 -2
- package/api/experimental.mjs +0 -12
- package/api/icon/_adapter.d.mts +2 -2
- package/api/icon/_adapter.mjs +6 -2
- package/api/icon/_authoring.mjs +22 -13
- package/api/icon/_default-look.mjs +15 -15
- package/api/icon/add/add.mjs +14 -9
- package/api/icon/icon.doc.mjs +7 -7
- package/api/icon/icon.type.d.mts +33 -33
- package/api/icon/icon.type.mjs +45 -45
- package/api/icon/iconAdd.doc.mjs +9 -10
- package/api/icon/iconMap.doc.mjs +11 -12
- package/api/icon/iconNewDefinition.doc.mjs +8 -8
- package/api/icon/iconNewSet.doc.mjs +5 -5
- package/api/icon/map/map.mjs +7 -7
- package/api/icon/use/use.mjs +4 -4
- package/api/init/run/run.mjs +0 -1
- package/api/integration/add-helpers.mjs +1 -1
- package/api/integration/validate-integration.type.d.mts +6 -6
- package/api/integration/validate-integration.type.mjs +6 -6
- package/api/render/_adapter.d.mts +5 -3
- package/api/render/_adapter.mjs +64 -4
- package/api/render/render.doc.mjs +9 -2
- package/api/render/render.mjs +5 -2
- package/api/render/render.type.d.mts +17 -0
- package/api/render/render.type.mjs +10 -0
- package/api/search/ORDERING.md +1 -1
- package/api/search/_candidate-score.mjs +20 -0
- package/api/search/_words.d.mts +8 -0
- package/api/search/_words.mjs +15 -0
- package/api/template/template.type.d.mts +2 -2
- package/api/template/template.type.mjs +2 -2
- package/api/theme/_adapter.mjs +19 -11
- package/api/theme/build/build.d.mts +19 -51
- package/api/theme/build/build.mjs +195 -189
- package/api/theme/build/font-warning.d.mts +19 -2
- package/api/theme/build/font-warning.mjs +46 -5
- package/api/theme/generateTonalPalette.doc.mjs +1 -1
- package/api/theme/palette/generate/derive-look.mjs +108 -37
- package/api/theme/palette/generate/mapping.mjs +2 -0
- package/api/theme/template/template.d.mts +0 -17
- package/api/theme/template/template.mjs +1 -42
- package/api/theme/theme.type.d.mts +5 -4
- package/api/theme/theme.type.mjs +5 -4
- package/api/theme/themePaletteGenerate.doc.mjs +1 -1
- package/api/theme/themeRemove.doc.mjs +1 -1
- package/assets/codemods/transforms/v0.7.0/preserve-bottom-sheet-content-padding.mjs +3 -1
- package/assets/component-list.generated.json +1 -1
- package/assets/discover/official-packages.json +26 -2
- package/assets/docs/author-a-theme.doc.mjs +6 -5
- package/assets/docs/browser-support.doc.mjs +1 -0
- package/assets/docs/icons.doc.mjs +8 -7
- package/assets/docs/motion.doc.mjs +46 -0
- package/assets/docs/theme.doc.dense.mjs +6 -17
- package/assets/docs/theme.doc.mjs +6 -16
- package/assets/docs/theme.doc.zh.mjs +6 -16
- package/assets/docs/tree/ci-and-containers.doc.mjs +1 -1
- package/assets/docs/tree/data-colors-in-renderers.doc.mjs +400 -0
- package/assets/docs/tree/font-setup.doc.mjs +30 -0
- package/assets/docs/tree/icon-sets.doc.mjs +2 -2
- package/assets/docs/tree/share-a-page.doc.mjs +1 -1
- package/assets/docs/tree/template-icons.doc.mjs +3 -3
- package/assets/docs/tree/tokens-color.doc.mjs +5 -0
- package/assets/docs/tree/tokens.doc.mjs +4 -3
- package/assets/docs/tree/updates.doc.mjs +1 -1
- package/assets/docs/tree/visualization.doc.mjs +30 -0
- package/assets/docs-routes.generated.json +1 -1
- package/assets/docs.generated.json +2 -2
- package/assets/icons/definitions/drag.doc.mjs +1 -0
- package/assets/search-catalog.generated.json +2 -2
- package/assets/self-audit.generated.json +1 -1
- package/assets/templates/blocks/components/Card/SelectableCardElevated.doc.mjs +1 -1
- package/assets/templates/blocks/components/Card/SelectableCardElevated.tsx +20 -10
- package/assets/templates/blocks/components/Card/SelectableCardShowcase.doc.mjs +1 -1
- package/assets/templates/blocks/components/Card/SelectableCardShowcase.tsx +36 -16
- package/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.tsx +6 -0
- package/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.tsx +6 -0
- package/assets/templates/blocks/components/Hooks/useIndicatorFocusRingHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/Hooks/useIndicatorFocusRingHookUsage.tsx +63 -0
- package/assets/templates/blocks/components/Hooks/useLongPressHookUsage.doc.mjs +29 -0
- package/assets/templates/blocks/components/Hooks/useLongPressHookUsage.tsx +237 -0
- package/assets/templates/blocks/components/SideNav/SideNavShowcase.tsx +10 -72
- package/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.doc.mjs +1 -1
- package/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.tsx +7 -7
- package/assets/templates/blocks/components/Table/TableCustomRowTable.doc.mjs +14 -0
- package/assets/templates/blocks/components/Table/TableCustomRowTable.tsx +96 -0
- package/assets/templates/components.generated.json +1 -1
- package/assets/templates/pages/ai-chat-landing/page.tsx +4 -0
- package/assets/templates/pages/dashboard-scorecard/page.tsx +26 -7
- package/assets/templates/pages/editor/page.tsx +13 -3
- package/assets/templates/themes/butter/butterPaletteRefs.generated.ts +2 -2
- package/assets/templates/themes/butter/butterTheme.ts +12 -10
- package/assets/templates/themes/butter/icons.tsx +2 -0
- package/assets/templates/themes/chocolate/chocolateTheme.ts +1 -0
- package/assets/templates/themes/chocolate/icons.tsx +2 -0
- package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +1 -1
- package/assets/templates/themes/gothic/gothicTheme.ts +1 -0
- package/assets/templates/themes/gothic/icons.tsx +2 -0
- package/assets/templates/themes/matcha/icons.tsx +2 -0
- package/assets/templates/themes/matcha/matchaPaletteRefs.generated.ts +2 -2
- package/assets/templates/themes/matcha/matchaTheme.ts +1 -0
- package/assets/templates/themes/neutral/icons.tsx +2 -0
- package/assets/templates/themes/neutral/neutralPaletteRefs.generated.ts +2 -2
- package/assets/templates/themes/neutral/neutralTheme.ts +1 -0
- package/assets/templates/themes/stone/icons.tsx +2 -0
- package/assets/templates/themes/stone/stonePaletteRefs.generated.ts +1 -1
- package/assets/templates/themes/stone/stoneTheme.ts +1 -0
- package/assets/templates/themes/y2k/icons.tsx +2 -0
- package/assets/templates/themes/y2k/y2kTheme.ts +1 -0
- package/assets/theme.template.ts +9 -5
- package/authoring/config/parse.mjs +1 -1
- package/authoring/doctypes/base/type.ts +2 -3
- package/authoring/doctypes/component/component.doc.mjs +1 -1
- package/authoring/doctypes/icon-set/icon-names.mjs +1 -0
- package/authoring/integration/integration.doc.mjs +1 -1
- package/authoring/integration/type.ts +1 -1
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/doctor.mjs +2 -2
- package/clients/cli/commands/experimental/export.mjs +2 -1
- package/clients/cli/commands/experimental/icon.mjs +17 -17
- package/clients/cli/commands/experimental/index.mjs +0 -5
- package/clients/cli/commands/experimental/render-output.mjs +9 -0
- package/clients/cli/commands/experimental-export.doc.mjs +6 -0
- package/clients/cli/commands/experimental-icon-add.doc.mjs +8 -8
- package/clients/cli/commands/experimental-icon-map.doc.mjs +6 -6
- package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +6 -6
- package/clients/cli/commands/experimental-icon-new-set.doc.mjs +3 -3
- package/clients/cli/commands/experimental-icon-use.doc.mjs +1 -1
- package/clients/cli/commands/experimental-icon.doc.mjs +6 -6
- package/clients/cli/commands/experimental.doc.mjs +2 -6
- package/clients/cli/commands/template.mjs +1 -1
- package/clients/cli/commands/theme-build.doc.mjs +8 -1
- package/clients/cli/commands/theme-palette-generate.doc.mjs +1 -1
- package/clients/cli/commands/theme-remove.doc.mjs +1 -1
- package/clients/cli/commands/theme.doc.mjs +1 -11
- package/clients/cli/commands/theme.mjs +110 -475
- package/clients/cli/commands.generated.json +1 -1
- package/clients/cli/index.mjs +4 -34
- package/clients/cli/lib/base-gate.mjs +2 -3
- package/clients/cli/lib/cli-error.mjs +8 -72
- package/clients/cli/lib/define-command.mjs +0 -19
- package/clients/cli/lib/json-shim.mjs +11 -633
- package/clients/cli/lib/manifest.mjs +0 -4
- package/clients/cli/lib/stray-option.mjs +1 -2
- package/clients/cli/manifest.generated.json +1 -1
- package/foundation/agent-docs/agent-docs.mjs +1 -1
- package/foundation/color/css-color.mjs +2 -3
- package/foundation/discovery/app-layout.d.mts +13 -0
- package/foundation/discovery/app-layout.mjs +35 -0
- package/foundation/discovery/cli-self-docs.mjs +4 -4
- package/foundation/discovery/fixture-refs.d.mts +51 -0
- package/foundation/discovery/fixture-refs.mjs +351 -0
- package/foundation/discovery/icon-definition-discovery.mjs +7 -7
- package/foundation/discovery/icon-ranking.mjs +2 -2
- package/foundation/discovery/icon-set-checks.mjs +6 -6
- package/foundation/discovery/icon-set-discovery.mjs +2 -2
- package/foundation/discovery/icon-set-writer.d.mts +24 -7
- package/foundation/discovery/icon-set-writer.mjs +75 -31
- package/foundation/discovery/static-descriptor.d.mts +49 -0
- package/foundation/discovery/static-descriptor.mjs +548 -0
- package/foundation/discovery/template-adapter.d.mts +0 -47
- package/foundation/discovery/template-adapter.mjs +1 -333
- package/foundation/discovery/theme-discovery.d.mts +6 -47
- package/foundation/discovery/theme-discovery.mjs +15 -537
- package/foundation/doc-compiler/bundle.mjs +2 -2
- package/foundation/doc-compiler/import.mjs +1 -1
- package/foundation/env/user-dirs.d.mts +5 -2
- package/foundation/env/user-dirs.mjs +12 -5
- package/foundation/fonts/next-font.d.mts +26 -0
- package/foundation/fonts/next-font.mjs +149 -0
- package/foundation/fs/empty-folder.mjs +2 -2
- package/foundation/fs/read-record.mjs +11 -4
- package/foundation/pictures/pictures.d.mts +152 -0
- package/foundation/pictures/pictures.mjs +565 -0
- package/foundation/release/folder-lock.mjs +3 -2
- package/foundation/render/cut-short.d.mts +2 -2
- package/foundation/render/cut-short.mjs +2 -2
- package/foundation/render/drawn-contrast.d.mts +2 -2
- package/foundation/render/drawn-contrast.mjs +2 -2
- package/foundation/render/font-probe.d.mts +2 -2
- package/foundation/render/font-probe.mjs +2 -2
- package/foundation/render/layers.mjs +1 -2
- package/foundation/render/package-resolve-hooks.d.mts +25 -5
- package/foundation/render/package-resolve-hooks.mjs +77 -14
- package/foundation/render/page-worker.mjs +24 -12
- package/foundation/render/part-boxes.d.mts +2 -3
- package/foundation/render/part-boxes.mjs +2 -3
- package/foundation/render/picture-chrome.mjs +18 -15
- package/foundation/render/picture-playwright.mjs +10 -7
- package/foundation/render/picture-window.d.mts +13 -0
- package/foundation/render/picture-window.mjs +31 -0
- package/foundation/render/render-page.d.mts +1 -1
- package/foundation/render/render-page.mjs +4 -5
- package/foundation/render/single-copy-hooks.d.mts +2 -0
- package/foundation/render/single-copy-hooks.mjs +2 -0
- package/foundation/response/error-codes.doc.mjs +14 -14
- package/foundation/response/error-codes.mjs +13 -13
- package/foundation/response/response-types.doc.mjs +8 -69
- package/foundation/runtime/css-tree.mjs +2 -2
- package/foundation/runtime/word-table.d.mts +1 -1
- package/foundation/runtime/word-table.mjs +1 -1
- package/foundation/suggest/other-command.d.mts +52 -15
- package/foundation/suggest/other-command.mjs +168 -45
- package/foundation/text/suggest-order.d.mts +7 -0
- package/foundation/text/suggest-order.mjs +1 -1
- package/package.json +7 -8
- package/api/theme-edit/_adapter.d.mts +0 -228
- package/api/theme-edit/_adapter.mjs +0 -2025
- package/api/theme-edit/_catalog.d.mts +0 -172
- package/api/theme-edit/_catalog.mjs +0 -806
- package/api/theme-edit/_check.d.mts +0 -391
- package/api/theme-edit/_check.mjs +0 -9370
- package/api/theme-edit/_color.d.mts +0 -135
- package/api/theme-edit/_color.mjs +0 -480
- package/api/theme-edit/_compiler.d.mts +0 -77
- package/api/theme-edit/_compiler.mjs +0 -1053
- package/api/theme-edit/_context.d.mts +0 -399
- package/api/theme-edit/_context.mjs +0 -1778
- package/api/theme-edit/_css.d.mts +0 -169
- package/api/theme-edit/_css.mjs +0 -1167
- package/api/theme-edit/_edit.d.mts +0 -167
- package/api/theme-edit/_edit.mjs +0 -11220
- package/api/theme-edit/_how-commands.d.mts +0 -315
- package/api/theme-edit/_how-commands.mjs +0 -1664
- package/api/theme-edit/_how-question.d.mts +0 -341
- package/api/theme-edit/_how-question.mjs +0 -33291
- package/api/theme-edit/_how-sides.d.mts +0 -22
- package/api/theme-edit/_how-sides.mjs +0 -173
- package/api/theme-edit/_how-steps.d.mts +0 -42
- package/api/theme-edit/_how-steps.mjs +0 -208
- package/api/theme-edit/_how-values.d.mts +0 -29
- package/api/theme-edit/_how-values.mjs +0 -111
- package/api/theme-edit/_how-words.d.mts +0 -15
- package/api/theme-edit/_how-words.mjs +0 -239
- package/api/theme-edit/_how.d.mts +0 -55
- package/api/theme-edit/_how.mjs +0 -2388
- package/api/theme-edit/_importers.d.mts +0 -38
- package/api/theme-edit/_importers.mjs +0 -188
- package/api/theme-edit/_marks.d.mts +0 -39
- package/api/theme-edit/_marks.mjs +0 -67
- package/api/theme-edit/_missed.d.mts +0 -56
- package/api/theme-edit/_missed.mjs +0 -1128
- package/api/theme-edit/_name-rule.d.mts +0 -11
- package/api/theme-edit/_name-rule.mjs +0 -12
- package/api/theme-edit/_normal.d.mts +0 -365
- package/api/theme-edit/_normal.mjs +0 -1978
- package/api/theme-edit/_overview.d.mts +0 -9
- package/api/theme-edit/_overview.mjs +0 -293
- package/api/theme-edit/_palette.d.mts +0 -616
- package/api/theme-edit/_palette.mjs +0 -2776
- package/api/theme-edit/_part-pieces.d.mts +0 -54
- package/api/theme-edit/_part-pieces.mjs +0 -179
- package/api/theme-edit/_part-words.d.mts +0 -39
- package/api/theme-edit/_part-words.mjs +0 -242
- package/api/theme-edit/_parts.d.mts +0 -402
- package/api/theme-edit/_parts.mjs +0 -2294
- package/api/theme-edit/_picture-traits.d.mts +0 -259
- package/api/theme-edit/_picture-traits.mjs +0 -1030
- package/api/theme-edit/_png.d.mts +0 -94
- package/api/theme-edit/_png.mjs +0 -479
- package/api/theme-edit/_preview-app.d.mts +0 -172
- package/api/theme-edit/_preview-app.mjs +0 -6430
- package/api/theme-edit/_preview.d.mts +0 -549
- package/api/theme-edit/_preview.mjs +0 -3264
- package/api/theme-edit/_project.d.mts +0 -207
- package/api/theme-edit/_project.mjs +0 -643
- package/api/theme-edit/_resolved.d.mts +0 -46
- package/api/theme-edit/_resolved.mjs +0 -800
- package/api/theme-edit/_set-line.d.mts +0 -29
- package/api/theme-edit/_set-line.mjs +0 -100
- package/api/theme-edit/_settings.d.mts +0 -2426
- package/api/theme-edit/_settings.mjs +0 -18435
- package/api/theme-edit/_tables.d.mts +0 -227
- package/api/theme-edit/_tables.mjs +0 -1128
- package/api/theme-edit/_text-looks.d.mts +0 -78
- package/api/theme-edit/_text-looks.mjs +0 -376
- package/api/theme-edit/_vet.d.mts +0 -50
- package/api/theme-edit/_vet.mjs +0 -166
- package/api/theme-edit/how/how.d.mts +0 -17
- package/api/theme-edit/how/how.mjs +0 -28
- package/api/theme-edit/new/new.d.mts +0 -11
- package/api/theme-edit/new/new.mjs +0 -22
- package/api/theme-edit/preview-add/preview-add.d.mts +0 -14
- package/api/theme-edit/preview-add/preview-add.mjs +0 -25
- package/api/theme-edit/preview-app/preview-app.d.mts +0 -13
- package/api/theme-edit/preview-app/preview-app.mjs +0 -24
- package/api/theme-edit/preview-list/preview-list.d.mts +0 -10
- package/api/theme-edit/preview-list/preview-list.mjs +0 -21
- package/api/theme-edit/preview-remove/preview-remove.d.mts +0 -12
- package/api/theme-edit/preview-remove/preview-remove.mjs +0 -23
- package/api/theme-edit/set/set.d.mts +0 -13
- package/api/theme-edit/set/set.mjs +0 -24
- package/api/theme-edit/show/show.d.mts +0 -13
- package/api/theme-edit/show/show.mjs +0 -24
- package/api/theme-edit/theme-edit.d.mts +0 -12
- package/api/theme-edit/theme-edit.mjs +0 -36
- package/api/theme-edit/theme-edit.type.d.mts +0 -730
- package/api/theme-edit/theme-edit.type.mjs +0 -342
- package/api/theme-edit/themeEditHow.doc.d.mts +0 -6
- package/api/theme-edit/themeEditHow.doc.mjs +0 -105
- package/api/theme-edit/themeEditNew.doc.d.mts +0 -5
- package/api/theme-edit/themeEditNew.doc.mjs +0 -112
- package/api/theme-edit/themeEditPreviewAdd.doc.d.mts +0 -6
- package/api/theme-edit/themeEditPreviewAdd.doc.mjs +0 -121
- package/api/theme-edit/themeEditPreviewApp.doc.d.mts +0 -6
- package/api/theme-edit/themeEditPreviewApp.doc.mjs +0 -87
- package/api/theme-edit/themeEditPreviewList.doc.d.mts +0 -6
- package/api/theme-edit/themeEditPreviewList.doc.mjs +0 -62
- package/api/theme-edit/themeEditPreviewRemove.doc.d.mts +0 -6
- package/api/theme-edit/themeEditPreviewRemove.doc.mjs +0 -96
- package/api/theme-edit/themeEditSet.doc.d.mts +0 -6
- package/api/theme-edit/themeEditSet.doc.mjs +0 -175
- package/api/theme-edit/themeEditShow.doc.d.mts +0 -6
- package/api/theme-edit/themeEditShow.doc.mjs +0 -118
- package/api/theme-edit/themeEditUndo.doc.d.mts +0 -6
- package/api/theme-edit/themeEditUndo.doc.mjs +0 -133
- package/api/theme-edit/undo/undo.d.mts +0 -13
- package/api/theme-edit/undo/undo.mjs +0 -24
- package/assets/preview-app/README.md +0 -6
- package/assets/preview-app/css.d.ts +0 -5
- package/assets/preview-app/gitignore +0 -4
- package/assets/preview-app/next.config.mjs +0 -12
- package/assets/preview-app/package.json +0 -24
- package/assets/preview-app/src/app/globals.css +0 -6
- package/assets/preview-app/src/app/layout.tsx +0 -21
- package/assets/preview-app/src/app/page.tsx +0 -94
- package/assets/preview-app/src/app/providers.tsx +0 -16
- package/assets/preview-app/tsconfig.json +0 -27
- package/clients/cli/commands/experimental/theme.mjs +0 -2990
- package/clients/cli/commands/experimental-theme-add.doc.mjs +0 -80
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +0 -98
- package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +0 -196
- package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +0 -174
- package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +0 -139
- package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +0 -77
- package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +0 -105
- package/clients/cli/commands/experimental-theme-editor.doc.mjs +0 -49
- package/clients/cli/commands/experimental-theme-eject.doc.mjs +0 -72
- package/clients/cli/commands/experimental-theme-list.doc.mjs +0 -49
- package/clients/cli/commands/experimental-theme-preview-add.doc.mjs +0 -88
- package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +0 -61
- package/clients/cli/commands/experimental-theme-preview-list.doc.mjs +0 -48
- package/clients/cli/commands/experimental-theme-preview-remove.doc.mjs +0 -59
- package/clients/cli/commands/experimental-theme-preview.doc.mjs +0 -41
- package/clients/cli/commands/experimental-theme-remove.doc.mjs +0 -57
- package/clients/cli/commands/experimental-theme-targets.doc.mjs +0 -62
- package/clients/cli/commands/experimental-theme-template.doc.mjs +0 -63
- package/clients/cli/commands/experimental-theme-use.doc.mjs +0 -57
- package/clients/cli/commands/experimental-theme.doc.mjs +0 -60
- package/foundation/fonts/fontsource-families.generated.d.mts +0 -5
- package/foundation/fonts/fontsource-families.generated.mjs +0 -2110
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @file The word tables the how reader reads: hues people name, states a
|
|
5
|
-
* word names, words of the languages the docs ship, and the design words
|
|
6
|
-
* a near miss is corrected to.
|
|
7
|
-
* @position api/theme-edit — a leaf read by _how-question.mjs
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import {wordTable} from './_tables.mjs';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Words of other languages the docs ship, and the English word each means.
|
|
14
|
-
* Matched as whole words, or anywhere for scripts without spaces.
|
|
15
|
-
* @type {Array<[RegExp, string]>}
|
|
16
|
-
*/
|
|
17
|
-
export const TRANSLATE = /** @type {Array<[RegExp, string]>} */ (
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
'botones?|boutons?|knöpfe|knopf|кнопк[аиу]|botões|botão|botao|pulsanti|bottoni|الأزرار|أزرار|زر|बटन',
|
|
21
|
-
'按钮|ボタン|버튼',
|
|
22
|
-
'buttons',
|
|
23
|
-
],
|
|
24
|
-
[
|
|
25
|
-
'tarjetas?|cartes|karten?|карточк[аи]|schede|carte',
|
|
26
|
-
'卡片|カード|카드',
|
|
27
|
-
'cards',
|
|
28
|
-
],
|
|
29
|
-
[
|
|
30
|
-
'redondead[oa]s?|redond[oa]s|arrondi[es]*|abgerundet\\p{L}*|скругл\\p{L}*|arredondad\\p{L}*|arrotondat\\p{L}*|مستدير\\p{L}*|गोल',
|
|
31
|
-
'圆|丸く|丸い|둥글게|둥근',
|
|
32
|
-
'rounded',
|
|
33
|
-
],
|
|
34
|
-
// ("eckiger": more angular, a step, never all the way square.)
|
|
35
|
-
['eckiger(?:e[nrs]?)?', '(?!)', 'sharper'],
|
|
36
|
-
['cuadrad[oa]s|carrés|eckig(?:e\\p{L}*)?', '四角|方形|네모', 'square'],
|
|
37
|
-
['esquinas?|coins|ecken|углы', '角', 'corners'],
|
|
38
|
-
[
|
|
39
|
-
'sombras?|ombres?|ombra|ombre|schatten|тен[ьи]|ظل',
|
|
40
|
-
'阴影|影|그림자',
|
|
41
|
-
'shadow',
|
|
42
|
-
],
|
|
43
|
-
[
|
|
44
|
-
'entfernen|quitar|enlever|supprimer|убрать|togliere|rimuovere|remover|हटाओ',
|
|
45
|
-
'去掉|删除|消して|없애',
|
|
46
|
-
'remove',
|
|
47
|
-
],
|
|
48
|
-
['цвет\\p{L}*|colore|farbe', '颜色|色', 'color'],
|
|
49
|
-
['акцент\\p{L}*', '强调', 'accent'],
|
|
50
|
-
['más|mais|mehr|più|более', '更', 'more'],
|
|
51
|
-
// "sans" is a typeface word before serif or font, or after a kind of
|
|
52
|
-
// typeface ("humanist sans", "geometric sans").
|
|
53
|
-
[
|
|
54
|
-
'sin|(?<!(?<!\\p{L})(?:humanist|geometric|grotesque|grotesk)[\\s-]+)sans(?![\\s-]*(serif|fonts?|typefaces?))|ohne|без|sem|senza',
|
|
55
|
-
'没有|无',
|
|
56
|
-
'without',
|
|
57
|
-
],
|
|
58
|
-
[
|
|
59
|
-
'bordes?|bordures?|rand|rahmen|границ\\p{L}*|bordas?|bordi',
|
|
60
|
-
'边框|枠線',
|
|
61
|
-
'border',
|
|
62
|
-
],
|
|
63
|
-
['azul(es)?|bleus?|blaue?n?|син\\p{L}*|blu', '蓝色?|青い|青く|青', 'blue'],
|
|
64
|
-
['rojos?|rouges?|rote?n?|красн\\p{L}*', '红色?|赤い', 'red'],
|
|
65
|
-
['verdes?|verts?|grüne?n?|зелён\\p{L}*', '绿色?|緑', 'green'],
|
|
66
|
-
].map(([words, cjk, en]) => [
|
|
67
|
-
new RegExp(`(?<!\\p{L})(?:${words})(?!\\p{L})|${cjk}`, 'gu'),
|
|
68
|
-
` ${en} `,
|
|
69
|
-
])
|
|
70
|
-
);
|
|
71
|
-
|
|
72
|
-
/** Design words a near miss is corrected to, beside the one-word part names. */
|
|
73
|
-
export const DESIGN_WORDS = [
|
|
74
|
-
'leading',
|
|
75
|
-
// A part's name, never a near miss of "radius".
|
|
76
|
-
'radio',
|
|
77
|
-
'radios',
|
|
78
|
-
'header',
|
|
79
|
-
'headers',
|
|
80
|
-
'input',
|
|
81
|
-
'inputs',
|
|
82
|
-
'checkbox',
|
|
83
|
-
'toggle',
|
|
84
|
-
'sidebar',
|
|
85
|
-
'progress',
|
|
86
|
-
'shadow',
|
|
87
|
-
'shadows',
|
|
88
|
-
'border',
|
|
89
|
-
'borders',
|
|
90
|
-
'background',
|
|
91
|
-
'rounded',
|
|
92
|
-
'rounder',
|
|
93
|
-
'corners',
|
|
94
|
-
'radius',
|
|
95
|
-
'padding',
|
|
96
|
-
'spacing',
|
|
97
|
-
'gradient',
|
|
98
|
-
'color',
|
|
99
|
-
'colour',
|
|
100
|
-
'bigger',
|
|
101
|
-
'smaller',
|
|
102
|
-
'darker',
|
|
103
|
-
'lighter',
|
|
104
|
-
'thicker',
|
|
105
|
-
'italic',
|
|
106
|
-
'uppercase',
|
|
107
|
-
'compact',
|
|
108
|
-
'accent',
|
|
109
|
-
'remove',
|
|
110
|
-
'outline',
|
|
111
|
-
];
|
|
112
|
-
|
|
113
|
-
/** Hues people name, as fills a part can take. */
|
|
114
|
-
export const HUES = wordTable(
|
|
115
|
-
/** @type {Record<string, string>} */ ({
|
|
116
|
-
red: '#dc2626',
|
|
117
|
-
orange: '#f97316',
|
|
118
|
-
amber: '#f59e0b',
|
|
119
|
-
yellow: '#eab308',
|
|
120
|
-
lime: '#65a30d',
|
|
121
|
-
green: '#16a34a',
|
|
122
|
-
mint: '#34d399',
|
|
123
|
-
minty: '#34d399',
|
|
124
|
-
teal: '#0d9488',
|
|
125
|
-
cyan: '#0891b2',
|
|
126
|
-
blue: '#2563eb',
|
|
127
|
-
navy: '#1e3a8a',
|
|
128
|
-
indigo: '#4f46e5',
|
|
129
|
-
purple: '#7c3aed',
|
|
130
|
-
charcoal: '#333333',
|
|
131
|
-
violet: '#7c3aed',
|
|
132
|
-
pink: '#db2777',
|
|
133
|
-
magenta: '#c026d3',
|
|
134
|
-
brown: '#92400e',
|
|
135
|
-
gray: '#9ca3af',
|
|
136
|
-
grey: '#9ca3af',
|
|
137
|
-
black: '#000000',
|
|
138
|
-
white: '#ffffff',
|
|
139
|
-
cream: '#fef3c7',
|
|
140
|
-
beige: '#f5f5dc',
|
|
141
|
-
silver: '#c0c0c0',
|
|
142
|
-
// (The color names designers use for a palette, beside the hues.)
|
|
143
|
-
terracotta: '#c2603d',
|
|
144
|
-
sage: '#87a96b',
|
|
145
|
-
rust: '#b7410e',
|
|
146
|
-
mustard: '#d4a017',
|
|
147
|
-
olive: '#6b8e23',
|
|
148
|
-
burgundy: '#800020',
|
|
149
|
-
maroon: '#7f1d1d',
|
|
150
|
-
coral: '#f87171',
|
|
151
|
-
salmon: '#fa8072',
|
|
152
|
-
sand: '#d6c6a5',
|
|
153
|
-
sky: '#38bdf8',
|
|
154
|
-
taupe: '#8b7d6b',
|
|
155
|
-
slate: '#64748b',
|
|
156
|
-
emerald: '#059669',
|
|
157
|
-
forest: '#166534',
|
|
158
|
-
ruby: '#be123c',
|
|
159
|
-
plum: '#7e22ce',
|
|
160
|
-
lavender: '#c4b5fd',
|
|
161
|
-
peach: '#fdba74',
|
|
162
|
-
ivory: '#fffff0',
|
|
163
|
-
khaki: '#c3b091',
|
|
164
|
-
ochre: '#cc7722',
|
|
165
|
-
copper: '#b87333',
|
|
166
|
-
gold: '#ca8a04',
|
|
167
|
-
bronze: '#a16207',
|
|
168
|
-
mauve: '#b784a7',
|
|
169
|
-
tan: '#d2b48c',
|
|
170
|
-
paper: '#f7f3e9',
|
|
171
|
-
// (Names said in two words, joined by the reader into one: "off-white",
|
|
172
|
-
// "ink blue", "grass green", "safety orange", "blue-gray".)
|
|
173
|
-
offwhite: '#faf8f3',
|
|
174
|
-
inkblue: '#1e3a5f',
|
|
175
|
-
grassgreen: '#4caf50',
|
|
176
|
-
safetyorange: '#ff6700',
|
|
177
|
-
bluegray: '#64748b',
|
|
178
|
-
}),
|
|
179
|
-
);
|
|
180
|
-
|
|
181
|
-
/** States a word names. */
|
|
182
|
-
export const STATE_WORDS = /** @type {Array<[RegExp, string]>} */ ([
|
|
183
|
-
[/\b(hover(ed|ing)?|mouse ?over)\b/, 'hover'],
|
|
184
|
-
[/\b(focus(ed|ing)?|on focus)\b/, 'focus'],
|
|
185
|
-
[/\b(disabled|inactive)\b/, 'disabled'],
|
|
186
|
-
// (A switch's "on color", "on state": its checked look.)
|
|
187
|
-
[
|
|
188
|
-
/\b(checked|ticked|when on|turned on|toggled on|is on|on[- ](?:colou?r|state|look))\b/,
|
|
189
|
-
'checked',
|
|
190
|
-
],
|
|
191
|
-
[
|
|
192
|
-
/\b(selected|active (tab|nav|item|link|page))\b|\bactive\b(?=.*\b(nav|tab|item)\b)/,
|
|
193
|
-
'selected',
|
|
194
|
-
],
|
|
195
|
-
// ("Pressed" is its own word: a toggle's pressed state, else active.)
|
|
196
|
-
[/\b(press(ed|es)?|on press)\b/, 'pressed'],
|
|
197
|
-
[
|
|
198
|
-
/\b(click(ed|s)?|tap(ped|s)?(?! targets?)|on click|when i click|active)\b/,
|
|
199
|
-
'active',
|
|
200
|
-
],
|
|
201
|
-
[/\b(typing|type in|tab to|tabbing|keyboard focus)\b/, 'focus'],
|
|
202
|
-
[/\b(after i check|once checked|i check)\b/, 'checked'],
|
|
203
|
-
// ("Blue selection" said of a part: its selected items. The text
|
|
204
|
-
// highlight, said with no part, is read before states are.)
|
|
205
|
-
[/\b(picked|chosen|choose|pick|selections?)\b/, 'selected'],
|
|
206
|
-
[
|
|
207
|
-
/\b(invalid|errors? state|has an error|with an error|with errors|in (?:an )?error(?: state)?|erroring|errored)\b/,
|
|
208
|
-
'invalid',
|
|
209
|
-
],
|
|
210
|
-
// ("valid inputs", "fields in a success state": the success status.)
|
|
211
|
-
[/\b(valid|validated|in (?:a )?success(?: state)?)\b/, 'valid'],
|
|
212
|
-
// ("after visiting", "once you've been there": the visited look.)
|
|
213
|
-
[
|
|
214
|
-
/\b(visited|(?:after|once|when) (?:i'?ve |you'?ve |they'?ve )?(?:visiting|visited|been (?:there|clicked)))\b/,
|
|
215
|
-
'visited',
|
|
216
|
-
],
|
|
217
|
-
// ("The open select", "when open": a part shown open.)
|
|
218
|
-
[
|
|
219
|
-
/\bopened\b|\b(?:when|while|once|if) (?:it'?s |they'?re |it is |they are )?open\b|\bthe open\b/,
|
|
220
|
-
'open',
|
|
221
|
-
],
|
|
222
|
-
[/\bexpanded\b/, 'expanded'],
|
|
223
|
-
// (The option a list points at, by keyboard or pointer.)
|
|
224
|
-
[/\b(highlighted|keyboard[- ]highlighted)\b/, 'highlighted'],
|
|
225
|
-
// (A page or step shown as the one you are on: aria-current.)
|
|
226
|
-
[/\bcurrent\b/, 'current'],
|
|
227
|
-
// Words for states a part may not have: the answer says so.
|
|
228
|
-
[/\bread-?only\b/, 'readonly'],
|
|
229
|
-
[/\bindeterminate\b/, 'indeterminate'],
|
|
230
|
-
[
|
|
231
|
-
/\bloading\b(?! (bars?|placeholders?|skeletons?|spinners?|states?|indicators?))/,
|
|
232
|
-
'loading',
|
|
233
|
-
],
|
|
234
|
-
[
|
|
235
|
-
/\b(unchecked|not checked|unticked|when off|turned off|toggled off|switched off|is off)\b/,
|
|
236
|
-
'unchecked',
|
|
237
|
-
],
|
|
238
|
-
[/\b(unselected|not selected|non-selected)\b/, 'unselected'],
|
|
239
|
-
]);
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
// @generated by scripts/sync-api-types.mjs from the JSDoc in api/**/*.mjs.
|
|
2
|
-
// DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Whether a subject names a picture: a picture file name, or a file that
|
|
6
|
-
* exists.
|
|
7
|
-
* @param {string} subject
|
|
8
|
-
* @param {string} cwd
|
|
9
|
-
*/
|
|
10
|
-
export function isPicture(subject: string, cwd: string): boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Explain anything a theme change can name, or answer a question about one:
|
|
13
|
-
* a part (what it reads for each aspect, under which `--when` or `--state`,
|
|
14
|
-
* its variants, states and the parts inside it), a group (its members), a
|
|
15
|
-
* setting (a dial's rungs, a token's type and readers, a CSS property), an
|
|
16
|
-
* aspect (text, corners...: the whole-theme tokens and dial), `colors` (how
|
|
17
|
-
* the theme's colors are made), a plain-words question (exact commands), a
|
|
18
|
-
* PNG picture (its main colors and the look's traits measured from it, or the color at points), or with `list` a
|
|
19
|
-
* list of dials, tokens, parts, groups or CSS properties.
|
|
20
|
-
* @experimental
|
|
21
|
-
* @param {string} subject a part, group, setting, aspect, question, or PNG file; with `list`, a filter
|
|
22
|
-
* @param {import('./theme-edit.type.mjs').ThemeEditHowOptions} [options]
|
|
23
|
-
* @returns {Promise<import('./theme-edit.type.mjs').ThemeEditHowResponse>}
|
|
24
|
-
*/
|
|
25
|
-
export function themeEditHow(subject: string, options?: import("./theme-edit.type.mjs").ThemeEditHowOptions): Promise<import("./theme-edit.type.mjs").ThemeEditHowResponse>;
|
|
26
|
-
/**
|
|
27
|
-
* Whether a question only asks (how, what, which, is, does …) and has no
|
|
28
|
-
* clause that asks for a change: "how heavy is the text" asks; "how heavy
|
|
29
|
-
* are headings - set them bold", "what color is the page? make it white"
|
|
30
|
-
* and "can you make cards rounder?" ask for a change.
|
|
31
|
-
* @param {string} q
|
|
32
|
-
*/
|
|
33
|
-
export function questionOnly(q: string): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* One condition a part reads a token under, written as the flags `set`
|
|
36
|
-
* takes (`always` for none), or the condition and why no flag reaches it.
|
|
37
|
-
* @param {import('./_settings.mjs').Ctx} ctx
|
|
38
|
-
* @param {string} target
|
|
39
|
-
* @param {string} cond
|
|
40
|
-
* @param {string[]} [settable] the states set takes on the part (the one
|
|
41
|
-
* list its refusals and how name too), when known
|
|
42
|
-
* @returns {string}
|
|
43
|
-
*/
|
|
44
|
-
export function condition(ctx: import("./_settings.mjs").Ctx, target: string, cond: string, settable?: string[]): string;
|
|
45
|
-
/**
|
|
46
|
-
* Read `--at` points: "x,y;x,y", "x,y x,y", repeated, or a flat "a,b,c,d".
|
|
47
|
-
* Each number is a whole pixel; anything else is refused by name.
|
|
48
|
-
* @param {string[]} at
|
|
49
|
-
* @param {string | null} [file] the picture the points are on
|
|
50
|
-
* @returns {Array<{x: number, y: number}>}
|
|
51
|
-
*/
|
|
52
|
-
export function parsePoints(at: string[], file?: string | null): Array<{
|
|
53
|
-
x: number;
|
|
54
|
-
y: number;
|
|
55
|
-
}>;
|