@astryxdesign/cli 0.7.13 → 0.7.14-canary.108f354
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/README.md +18 -18
- package/api/component/__fixtures__/resolutions/modules.txt +1 -1
- package/api/doctor/doctor.mjs +3 -7
- package/api/experimental.d.mts +2 -0
- package/api/experimental.mjs +12 -0
- package/api/icon/_adapter.d.mts +10 -0
- package/api/icon/_adapter.mjs +31 -2
- package/api/icon/_authoring.d.mts +2 -1
- package/api/icon/_authoring.mjs +91 -6
- package/api/icon/_options.mjs +1 -0
- package/api/icon/_records.d.mts +18 -0
- package/api/icon/_records.mjs +26 -0
- package/api/icon/add/add.mjs +7 -1
- package/api/icon/definitions/definitions.d.mts +12 -0
- package/api/icon/definitions/definitions.mjs +83 -0
- package/api/icon/icon.doc.mjs +5 -4
- package/api/icon/icon.mjs +5 -16
- package/api/icon/icon.type.d.mts +29 -2
- package/api/icon/icon.type.mjs +17 -3
- package/api/icon/iconAdd.doc.mjs +1 -1
- package/api/icon/iconMap.doc.mjs +2 -2
- package/api/icon/iconNewSet.doc.mjs +8 -2
- package/api/icon/map/map.mjs +21 -2
- package/api/icon/new-set/new-set.mjs +14 -2
- package/api/icon/search/search.mjs +2 -15
- package/api/icon/use/use.mjs +4 -3
- package/api/integration/validate-integration.mjs +6 -1
- package/api/integration/validate-integration.type.d.mts +12 -0
- package/api/integration/validate-integration.type.mjs +5 -0
- package/api/theme-edit/_adapter.d.mts +116 -0
- package/api/theme-edit/_adapter.mjs +1683 -0
- package/api/theme-edit/_catalog.d.mts +59 -0
- package/api/theme-edit/_catalog.mjs +564 -0
- package/api/theme-edit/_check.d.mts +49 -0
- package/api/theme-edit/_check.mjs +845 -0
- package/api/theme-edit/_color.d.mts +29 -0
- package/api/theme-edit/_color.mjs +300 -0
- package/api/theme-edit/_compiler.d.mts +61 -0
- package/api/theme-edit/_compiler.mjs +522 -0
- package/api/theme-edit/_css-properties.d.mts +10 -0
- package/api/theme-edit/_css-properties.mjs +556 -0
- package/api/theme-edit/_parts.d.mts +111 -0
- package/api/theme-edit/_parts.mjs +409 -0
- package/api/theme-edit/_png.d.mts +40 -0
- package/api/theme-edit/_png.mjs +187 -0
- package/api/theme-edit/_preview.d.mts +121 -0
- package/api/theme-edit/_preview.mjs +720 -0
- package/api/theme-edit/_project.d.mts +83 -0
- package/api/theme-edit/_project.mjs +289 -0
- package/api/theme-edit/_settings.d.mts +222 -0
- package/api/theme-edit/_settings.mjs +861 -0
- package/api/theme-edit/_tables.d.mts +132 -0
- package/api/theme-edit/_tables.mjs +700 -0
- package/api/theme-edit/theme-edit.d.mts +93 -0
- package/api/theme-edit/theme-edit.mjs +145 -0
- package/api/theme-edit/theme-edit.type.d.mts +413 -0
- package/api/theme-edit/theme-edit.type.mjs +233 -0
- package/api/theme-edit/themeEditHow.doc.d.mts +6 -0
- package/api/theme-edit/themeEditHow.doc.mjs +88 -0
- package/api/theme-edit/themeEditNew.doc.d.mts +6 -0
- package/api/theme-edit/themeEditNew.doc.mjs +89 -0
- package/api/theme-edit/themeEditPreviewAdd.doc.d.mts +6 -0
- package/api/theme-edit/themeEditPreviewAdd.doc.mjs +100 -0
- package/api/theme-edit/themeEditPreviewApp.doc.d.mts +6 -0
- package/api/theme-edit/themeEditPreviewApp.doc.mjs +84 -0
- package/api/theme-edit/themeEditPreviewList.doc.d.mts +6 -0
- package/api/theme-edit/themeEditPreviewList.doc.mjs +53 -0
- package/api/theme-edit/themeEditPreviewRemove.doc.d.mts +6 -0
- package/api/theme-edit/themeEditPreviewRemove.doc.mjs +66 -0
- package/api/theme-edit/themeEditSet.doc.d.mts +6 -0
- package/api/theme-edit/themeEditSet.doc.mjs +165 -0
- package/api/theme-edit/themeEditShow.doc.d.mts +6 -0
- package/api/theme-edit/themeEditShow.doc.mjs +86 -0
- package/api/theme-edit/themeEditUndo.doc.d.mts +6 -0
- package/api/theme-edit/themeEditUndo.doc.mjs +124 -0
- package/assets/docs/color.doc.mjs +5 -5
- package/assets/docs/tree/icon-sets.doc.mjs +6 -2
- package/assets/docs/tree/tokens-border.doc.mjs +1 -1
- package/assets/docs/tree/tokens-color.doc.mjs +2 -2
- package/assets/docs/tree/tokens-data.doc.mjs +2 -2
- package/assets/docs/tree/tokens-duration.doc.mjs +1 -1
- package/assets/docs/tree/tokens-ease.doc.mjs +1 -1
- package/assets/docs/tree/tokens-focus.doc.mjs +1 -1
- package/assets/docs/tree/tokens-font-weight.doc.mjs +1 -1
- package/assets/docs/tree/tokens-radius.doc.mjs +1 -1
- package/assets/docs/tree/tokens-shadow.doc.mjs +1 -1
- package/assets/docs/tree/tokens-size.doc.mjs +1 -1
- package/assets/docs/tree/tokens-spacing.doc.mjs +1 -1
- package/assets/docs/tree/tokens-syntax.doc.mjs +1 -1
- package/assets/docs/tree/tokens-text-size.doc.mjs +1 -1
- package/assets/docs/tree/tokens-type-scale.doc.mjs +1 -1
- package/assets/docs/tree/tokens-typography.doc.mjs +1 -1
- package/assets/icons/definitions/bank.doc.mjs +1 -1
- package/assets/icons/definitions/save.doc.mjs +1 -1
- package/assets/preview-app/README.md +6 -0
- package/assets/preview-app/css.d.ts +5 -0
- package/assets/preview-app/gitignore +1 -0
- package/assets/preview-app/next.config.mjs +6 -0
- package/assets/preview-app/package.json +23 -0
- package/assets/preview-app/src/app/globals.css +5 -0
- package/assets/preview-app/src/app/layout.tsx +21 -0
- package/assets/preview-app/src/app/page.tsx +94 -0
- package/assets/preview-app/src/app/providers.tsx +16 -0
- package/assets/preview-app/tsconfig.json +27 -0
- package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.doc.mjs +2 -1
- package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.doc.mjs +2 -1
- package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider03RtlDirection.doc.mjs +2 -1
- package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider04Calendar.doc.mjs +2 -1
- package/assets/templates/blocks/components/Text/useTruncationHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/Text/useTruncationHookUsage.tsx +112 -0
- package/authoring/doctypes/_schema.d.mts +1 -0
- package/authoring/doctypes/_schema.mjs +1 -0
- package/authoring/doctypes/command/command.doc.mjs +7 -0
- package/authoring/doctypes/command/type.ts +3 -0
- package/authoring/doctypes/icon-set/parse.d.mts +7 -0
- package/authoring/doctypes/icon-set/parse.mjs +18 -8
- package/clients/cli/commands/doctor.mjs +33 -3
- package/clients/cli/commands/experimental/icon.mjs +67 -14
- package/clients/cli/commands/experimental/index.mjs +2 -0
- package/clients/cli/commands/experimental/theme.mjs +684 -0
- package/clients/cli/commands/experimental-icon-new-set.doc.mjs +7 -1
- package/clients/cli/commands/experimental-icon.doc.mjs +3 -2
- package/clients/cli/commands/experimental-theme-add.doc.mjs +78 -0
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +97 -0
- package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +84 -0
- package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +66 -0
- package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +121 -0
- package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +66 -0
- package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +104 -0
- package/clients/cli/commands/experimental-theme-editor.doc.mjs +49 -0
- package/clients/cli/commands/experimental-theme-eject.doc.mjs +71 -0
- package/clients/cli/commands/experimental-theme-list.doc.mjs +49 -0
- package/clients/cli/commands/experimental-theme-palette-generate.doc.mjs +73 -0
- package/clients/cli/commands/experimental-theme-palette.doc.mjs +37 -0
- package/clients/cli/commands/experimental-theme-preview-add.doc.mjs +86 -0
- package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +66 -0
- package/clients/cli/commands/experimental-theme-preview-list.doc.mjs +48 -0
- package/clients/cli/commands/experimental-theme-preview-remove.doc.mjs +59 -0
- package/clients/cli/commands/experimental-theme-preview.doc.mjs +40 -0
- package/clients/cli/commands/experimental-theme-remove.doc.mjs +55 -0
- package/clients/cli/commands/experimental-theme-targets.doc.mjs +61 -0
- package/clients/cli/commands/experimental-theme-template.doc.mjs +61 -0
- package/clients/cli/commands/experimental-theme-use.doc.mjs +55 -0
- package/clients/cli/commands/experimental-theme.doc.mjs +57 -0
- package/clients/cli/commands/experimental.doc.mjs +10 -3
- package/clients/cli/commands/theme.mjs +101 -34
- package/clients/cli/index.mjs +18 -0
- package/clients/cli/lib/define-command.mjs +3 -0
- package/foundation/discovery/icon-set-checks.d.mts +16 -1
- package/foundation/discovery/icon-set-checks.mjs +68 -7
- package/foundation/discovery/icon-set-discovery.d.mts +21 -6
- package/foundation/discovery/icon-set-discovery.mjs +17 -8
- package/foundation/discovery/template-icon-meanings.d.mts +39 -0
- package/foundation/discovery/template-icon-meanings.mjs +95 -0
- package/foundation/discovery/theming-targets.d.mts +6 -0
- package/foundation/discovery/theming-targets.mjs +33 -0
- package/foundation/response/error-codes.d.mts +12 -1
- package/foundation/response/error-codes.doc.mjs +66 -0
- package/foundation/response/error-codes.mjs +55 -0
- package/foundation/response/response-types.doc.mjs +55 -0
- package/foundation/text/template-meanings-line.d.mts +16 -0
- package/foundation/text/template-meanings-line.mjs +37 -0
- package/foundation/xle/browser.d.mts +2 -2
- package/package.json +6 -6
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
* @file The data behind `astryx experimental theme`: the dials and their
|
|
6
|
+
* rungs, the part families, the built-in themes a theme can build on, and the
|
|
7
|
+
* words `how` understands. A new dial, rung, family or word is a table entry
|
|
8
|
+
* here with a test, not new code.
|
|
9
|
+
*
|
|
10
|
+
* @position api/theme-edit — data read by the engine and the help text
|
|
11
|
+
*/
|
|
12
|
+
/** The command prefix every suggested command starts with. */
|
|
13
|
+
export const P: "astryx experimental theme editor";
|
|
14
|
+
/** The lookup command: what a part reads, a setting, a question, a picture. */
|
|
15
|
+
export const HOW: "astryx experimental theme editor how";
|
|
16
|
+
/** The built-in themes a theme can build on (`new --like`, `set base`). */
|
|
17
|
+
export const LIKE: string[];
|
|
18
|
+
/**
|
|
19
|
+
* Parts that should look alike. `--on <family>` styles every member.
|
|
20
|
+
* @type {Record<string, string[]>}
|
|
21
|
+
*/
|
|
22
|
+
export const FAMILIES: Record<string, string[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Families whose members always look alike: styling one member styles them
|
|
25
|
+
* all unless `--only` is given. Other families spread only when `--on`
|
|
26
|
+
* names the family itself.
|
|
27
|
+
*/
|
|
28
|
+
export const AUTO_SPREAD: string[];
|
|
29
|
+
export function familyOf(target: string): string | null;
|
|
30
|
+
/** @type {Array<[string, number]>} */
|
|
31
|
+
export const CORNERS: Array<[string, number]>;
|
|
32
|
+
/** @type {Array<[string, number]>} */
|
|
33
|
+
export const SPACING: Array<[string, number]>;
|
|
34
|
+
/** @type {Array<[string, number]>} */
|
|
35
|
+
export const TEXT_SIZE: Array<[string, number]>;
|
|
36
|
+
/**
|
|
37
|
+
* Font presets: the family, then its fallbacks.
|
|
38
|
+
* @type {Record<string, [string, string]>}
|
|
39
|
+
*/
|
|
40
|
+
export const FONTS: Record<string, [string, string]>;
|
|
41
|
+
/** Presets every desktop system already has, so no font file is needed. */
|
|
42
|
+
export const SYSTEM_FONTS: string[];
|
|
43
|
+
/**
|
|
44
|
+
* Open fonts with a package that loads them: preset -> family, fallbacks,
|
|
45
|
+
* and the package. When the package is installed, previews show the font;
|
|
46
|
+
* the app loads it by importing the package once.
|
|
47
|
+
* @type {Record<string, {family: string, fallbacks: string, pkg: string}>}
|
|
48
|
+
*/
|
|
49
|
+
export const OPEN_FONTS: Record<string, {
|
|
50
|
+
family: string;
|
|
51
|
+
fallbacks: string;
|
|
52
|
+
pkg: string;
|
|
53
|
+
}>;
|
|
54
|
+
/**
|
|
55
|
+
* Brand fonts no package loads, and the closest open font, for the warning
|
|
56
|
+
* a theme that names one gets.
|
|
57
|
+
* @type {Record<string, string>}
|
|
58
|
+
*/
|
|
59
|
+
export const CLOSEST_OPEN_FONT: Record<string, string>;
|
|
60
|
+
/** Heading weights (`headings` dial): rung -> font-weight. */
|
|
61
|
+
export const HEADING_WEIGHTS: Record<string, string>;
|
|
62
|
+
/** Heading letter spacing (`headings` dial): rung -> letter-spacing. */
|
|
63
|
+
export const HEADING_TRACKING: Record<string, string>;
|
|
64
|
+
/** The `surfaces` dial: how every container sits on the page. */
|
|
65
|
+
export const SURFACES: Record<string, Record<string, string>>;
|
|
66
|
+
/** The parts the `surfaces` dial moves. */
|
|
67
|
+
export const SURFACE_PARTS: string[];
|
|
68
|
+
/** The `type` dial: heading scale ratio, heading weight, heading letter spacing. */
|
|
69
|
+
export const TYPE_STYLES: Record<string, {
|
|
70
|
+
ratio: number;
|
|
71
|
+
weight: string | null;
|
|
72
|
+
tracking: string | null;
|
|
73
|
+
}>;
|
|
74
|
+
/**
|
|
75
|
+
* @typedef {object} Dial
|
|
76
|
+
* @property {string} help - What the dial does, its rungs, and where it applies.
|
|
77
|
+
* @property {string} values - The values it takes, `|`-separated.
|
|
78
|
+
* @property {string[]} examples - Commands after the prefix; `my` is the theme.
|
|
79
|
+
* @property {string} words - Words `how` matches to the dial.
|
|
80
|
+
*/
|
|
81
|
+
/** @type {Record<string, Dial>} */
|
|
82
|
+
export const DIALS: Record<string, Dial>;
|
|
83
|
+
/** CSS properties grouped by the aspect of a part they change. */
|
|
84
|
+
export const GROUPS: Record<string, string[]>;
|
|
85
|
+
/** The CSS property that sets each aspect directly, whatever token it reads. */
|
|
86
|
+
export const DIRECT: Record<string, string>;
|
|
87
|
+
/** Properties whose value is one plain color. */
|
|
88
|
+
export const COLOR_PROPS: RegExp;
|
|
89
|
+
/** Tokens `show` prints the resolved value of. */
|
|
90
|
+
export const KEY_TOKENS: string[];
|
|
91
|
+
/** The CSS properties `how --list properties` shows without a filter. */
|
|
92
|
+
export const COMMON_PROPERTIES: string[];
|
|
93
|
+
/**
|
|
94
|
+
* Words people use for a thing that is not a dial, token or property, and
|
|
95
|
+
* the commands that do what they mean.
|
|
96
|
+
* @type {Record<string, (value: string, on: string | undefined) => string[]>}
|
|
97
|
+
*/
|
|
98
|
+
export const THING_HINTS: Record<string, (value: string, on: string | undefined) => string[]>;
|
|
99
|
+
/**
|
|
100
|
+
* Words for parts, and the parts (or families, or `part:prop:value`) they
|
|
101
|
+
* mean. The first match order is the answer order.
|
|
102
|
+
* @type {Array<[RegExp, string[]]>}
|
|
103
|
+
*/
|
|
104
|
+
export const PART_WORDS: Array<[RegExp, string[]]>;
|
|
105
|
+
/**
|
|
106
|
+
* Words for aspects of a part. `background` comes last: color words mean it
|
|
107
|
+
* only when no other aspect matched them.
|
|
108
|
+
* @type {Array<[string, RegExp]>}
|
|
109
|
+
*/
|
|
110
|
+
export const INTENTS: Array<[string, RegExp]>;
|
|
111
|
+
/** Sample values for design words in a `how` question. */
|
|
112
|
+
export const DESIGN: Record<string, string>;
|
|
113
|
+
/** States every part takes, beyond the ones its doc lists. */
|
|
114
|
+
export const COMMON_STATES: string[];
|
|
115
|
+
export type Dial = {
|
|
116
|
+
/**
|
|
117
|
+
* - What the dial does, its rungs, and where it applies.
|
|
118
|
+
*/
|
|
119
|
+
help: string;
|
|
120
|
+
/**
|
|
121
|
+
* - The values it takes, `|`-separated.
|
|
122
|
+
*/
|
|
123
|
+
values: string;
|
|
124
|
+
/**
|
|
125
|
+
* - Commands after the prefix; `my` is the theme.
|
|
126
|
+
*/
|
|
127
|
+
examples: string[];
|
|
128
|
+
/**
|
|
129
|
+
* - Words `how` matches to the dial.
|
|
130
|
+
*/
|
|
131
|
+
words: string;
|
|
132
|
+
};
|