@astryxdesign/cli 0.7.17 → 0.7.18-canary.g170df15
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 +1 -1
- package/api/discover/_adapter.d.mts +7 -5
- package/api/discover/_adapter.mjs +12 -11
- package/api/docs/_adapter.d.mts +19 -2
- package/api/docs/_adapter.mjs +66 -5
- package/api/doctor/_adapter.d.mts +11 -62
- package/api/doctor/_adapter.mjs +242 -472
- package/api/doctor/doctor.d.mts +1 -1
- package/api/doctor/doctor.mjs +3 -3
- package/api/doctor/theme-checks.mjs +37 -45
- package/api/error.d.mts +21 -0
- package/api/error.mjs +89 -0
- package/api/hook/list/list.d.mts +1 -1
- package/api/icon/_adapter.d.mts +8 -0
- package/api/icon/_adapter.mjs +17 -0
- package/api/icon/_authoring.mjs +6 -6
- package/api/icon/_default-look.mjs +16 -16
- package/api/icon/add/add.mjs +3 -3
- package/api/icon/exportIconIndex.doc.mjs +2 -2
- package/api/icon/icon.doc.mjs +2 -2
- package/api/icon/icon.type.d.mts +4 -0
- package/api/icon/icon.type.mjs +2 -1
- package/api/icon/search/icon-index.mjs +16 -3
- package/api/icon/search/search.d.mts +15 -5
- package/api/icon/search/search.mjs +74 -16
- package/api/icon/use/use.mjs +4 -4
- package/api/render/_adapter.mjs +233 -40
- package/api/render/render.type.d.mts +1 -1
- package/api/render/render.type.mjs +1 -1
- package/api/search/ORDERING.md +2 -2
- package/api/search/_adapter.mjs +4 -0
- package/api/search/_candidate-score.mjs +32 -8
- package/api/search/_cards.json +1 -1
- package/api/search/_compound.d.mts +0 -1
- package/api/search/_compound.mjs +93 -2
- package/api/search/_icons.d.mts +4 -2
- package/api/search/_icons.mjs +4 -2
- package/api/search/_lexical.mjs +177 -17
- package/api/search/_order.d.mts +3 -1
- package/api/search/_order.mjs +16 -5
- package/api/search/_result.d.mts +9 -0
- package/api/search/_result.mjs +10 -0
- package/api/search/_score.mjs +21 -3
- package/api/swizzle/_moduleGraph.d.mts +8 -0
- package/api/swizzle/_moduleGraph.mjs +61 -3
- package/api/template/copy/copy.mjs +5 -3
- package/api/template/template.type.d.mts +3 -3
- package/api/template/template.type.mjs +3 -3
- package/api/theme/_adapter.mjs +48 -12
- package/api/theme/build/build.d.mts +4 -0
- package/api/theme/build/build.mjs +69 -18
- package/api/theme/build/style-keys.mjs +4 -5
- package/api/theme/build/theme-object.mjs +5 -0
- package/api/theme/palette/generate/color.d.mts +47 -0
- package/api/theme/palette/generate/color.mjs +58 -1
- package/api/theme/palette/generate/derive-look.d.mts +293 -0
- package/api/theme/palette/generate/derive-look.mjs +1362 -0
- package/api/theme/palette/generate/editor-look.d.mts +62 -0
- package/api/theme/palette/generate/editor-look.mjs +550 -0
- package/api/theme/palette/generate/mapping.d.mts +94 -9
- package/api/theme/palette/generate/mapping.mjs +94 -22
- package/api/theme-edit/_adapter.mjs +13 -2
- package/api/theme-edit/_catalog.d.mts +13 -13
- package/api/theme-edit/_catalog.mjs +66 -28
- package/api/theme-edit/_check.d.mts +82 -6
- package/api/theme-edit/_check.mjs +1270 -238
- package/api/theme-edit/_color.d.mts +74 -0
- package/api/theme-edit/_color.mjs +168 -3
- package/api/theme-edit/_compiler.d.mts +3 -5
- package/api/theme-edit/_compiler.mjs +122 -23
- package/api/theme-edit/_context.d.mts +55 -12
- package/api/theme-edit/_context.mjs +114 -60
- package/api/theme-edit/_css.d.mts +11 -0
- package/api/theme-edit/_css.mjs +40 -0
- package/api/theme-edit/_edit.d.mts +15 -2
- package/api/theme-edit/_edit.mjs +1469 -133
- package/api/theme-edit/_how-commands.d.mts +116 -0
- package/api/theme-edit/_how-commands.mjs +227 -115
- package/api/theme-edit/_how-question.d.mts +74 -29
- package/api/theme-edit/_how-question.mjs +8514 -1256
- package/api/theme-edit/_how-sides.d.mts +22 -0
- package/api/theme-edit/_how-sides.mjs +173 -0
- package/api/theme-edit/_how-steps.d.mts +42 -0
- package/api/theme-edit/_how-steps.mjs +208 -0
- package/api/theme-edit/_how-values.d.mts +29 -0
- package/api/theme-edit/_how-values.mjs +111 -0
- package/api/theme-edit/_how-words.d.mts +15 -0
- package/api/theme-edit/_how-words.mjs +239 -0
- package/api/theme-edit/_how.d.mts +1 -1
- package/api/theme-edit/_how.mjs +422 -37
- package/api/theme-edit/_missed.d.mts +2 -1
- package/api/theme-edit/_missed.mjs +125 -13
- package/api/theme-edit/_normal.d.mts +5 -3
- package/api/theme-edit/_normal.mjs +54 -14
- package/api/theme-edit/_palette.d.mts +204 -4
- package/api/theme-edit/_palette.mjs +901 -25
- package/api/theme-edit/_part-pieces.d.mts +54 -0
- package/api/theme-edit/_part-pieces.mjs +179 -0
- package/api/theme-edit/_part-words.mjs +33 -5
- package/api/theme-edit/_parts.d.mts +133 -0
- package/api/theme-edit/_parts.mjs +599 -10
- package/api/theme-edit/_picture-traits.d.mts +259 -0
- package/api/theme-edit/_picture-traits.mjs +1030 -0
- package/api/theme-edit/_preview.d.mts +95 -4
- package/api/theme-edit/_preview.mjs +284 -31
- package/api/theme-edit/_project.d.mts +14 -4
- package/api/theme-edit/_project.mjs +95 -26
- package/api/theme-edit/_resolved.d.mts +46 -0
- package/api/theme-edit/_resolved.mjs +800 -0
- package/api/theme-edit/_set-line.d.mts +29 -0
- package/api/theme-edit/_set-line.mjs +100 -0
- package/api/theme-edit/_settings.d.mts +625 -28
- package/api/theme-edit/_settings.mjs +4867 -888
- package/api/theme-edit/_tables.d.mts +25 -1
- package/api/theme-edit/_tables.mjs +115 -11
- package/api/theme-edit/_text-looks.d.mts +78 -0
- package/api/theme-edit/_text-looks.mjs +376 -0
- package/api/theme-edit/_vet.d.mts +3 -26
- package/api/theme-edit/_vet.mjs +5 -89
- package/api/theme-edit/how/how.d.mts +1 -1
- package/api/theme-edit/how/how.mjs +1 -1
- package/api/theme-edit/show/show.d.mts +4 -3
- package/api/theme-edit/show/show.mjs +3 -2
- package/api/theme-edit/theme-edit.type.d.mts +117 -1
- package/api/theme-edit/theme-edit.type.mjs +46 -3
- package/api/theme-edit/themeEditHow.doc.mjs +3 -3
- package/api/theme-edit/themeEditNew.doc.mjs +4 -0
- package/api/theme-edit/themeEditSet.doc.mjs +6 -2
- package/api/theme-edit/themeEditShow.doc.mjs +22 -3
- package/api/theme-edit/themeEditUndo.doc.mjs +4 -0
- package/assets/component-list.generated.json +1 -1
- package/assets/docs/author-a-theme.doc.mjs +7 -4
- package/assets/docs/icons.doc.mjs +7 -6
- package/assets/docs/theme.doc.dense.mjs +10 -0
- package/assets/docs/theme.doc.mjs +10 -0
- package/assets/docs/theme.doc.zh.mjs +10 -0
- package/assets/docs/tree/export-pages.doc.mjs +1 -1
- package/assets/docs/tree/icon-sets.doc.mjs +1 -1
- package/assets/docs/use-a-theme.doc.mjs +89 -17
- package/assets/docs-routes.generated.json +1 -1
- package/assets/docs.generated.json +2 -2
- package/assets/icons/definitions/article.doc.mjs +9 -0
- package/assets/icons/template-icons.json +5 -0
- package/assets/search-catalog.generated.json +2 -2
- package/assets/self-audit.generated.json +1 -1
- package/assets/templates/blocks/components/Citation/CitationInlineText.doc.mjs +1 -1
- package/assets/templates/blocks/components/Citation/CitationInlineText.tsx +3 -1
- package/assets/templates/blocks/components/Citation/CitationShowcase.doc.mjs +1 -1
- package/assets/templates/blocks/components/Citation/CitationShowcase.tsx +3 -1
- package/assets/templates/blocks/components/Citation/CitationSourceList.doc.mjs +1 -1
- package/assets/templates/blocks/components/Citation/CitationSourceList.tsx +7 -3
- package/assets/templates/blocks/components/Markdown/MarkdownCitedContent.doc.mjs +1 -1
- package/assets/templates/blocks/components/Markdown/MarkdownCitedContent.tsx +5 -2
- package/assets/templates/components.generated.json +1 -1
- package/assets/templates/pages/ide/page.tsx +5 -10
- package/assets/templates/pages/payment-form/page.tsx +16 -60
- package/assets/templates/themes/neutral/neutralTheme.ts +4 -3
- package/authoring/config/parse.mjs +1 -1
- package/authoring/debug/parse.d.mts +1 -1
- package/authoring/doctypes/_schema.d.mts +13 -13
- package/authoring/doctypes/icon-definition/parse.mjs +2 -2
- package/authoring/doctypes/icon-set/parse.mjs +1 -1
- package/authoring/doctypes/template/parse.mjs +1 -4
- package/authoring/gap-report/parse.d.mts +1 -1
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/ensure-core-built.mjs +17 -10
- package/clients/cli/commands/experimental/icon.mjs +7 -7
- package/clients/cli/commands/experimental/theme.mjs +175 -13
- package/clients/cli/commands/experimental-icon.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +11 -3
- package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +3 -3
- package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +15 -5
- package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +1 -1
- package/clients/cli/commands/hook.mjs +7 -0
- package/clients/cli/commands/template.mjs +1 -1
- package/clients/cli/commands/theme-build.doc.mjs +1 -1
- package/clients/cli/index.mjs +6 -2
- package/clients/cli/lib/hook-format.mjs +41 -1
- package/clients/cli/lib/json-shim.mjs +34 -14
- package/clients/cli/lib/other-cli-words.mjs +7 -0
- package/clients/cli/lib/unknown-command.mjs +345 -46
- package/clients/cli/manifest.generated.json +1 -1
- package/foundation/agent-docs/agent-docs.d.mts +11 -2
- package/foundation/agent-docs/agent-docs.mjs +51 -8
- package/foundation/config/project.d.mts +11 -1
- package/foundation/config/project.mjs +11 -2
- package/foundation/discovery/component-replacement.d.mts +5 -8
- package/foundation/discovery/component-replacement.mjs +12 -14
- package/foundation/discovery/core-augmentation-points.d.mts +35 -0
- package/foundation/discovery/core-augmentation-points.mjs +410 -9
- package/foundation/discovery/core-elements.d.mts +6 -0
- package/foundation/discovery/core-elements.mjs +10 -2
- package/foundation/discovery/core-prop-types.d.mts +5 -0
- package/foundation/discovery/core-prop-types.mjs +10 -3
- package/foundation/discovery/core-props.d.mts +8 -0
- package/foundation/discovery/core-props.mjs +29 -13
- package/foundation/discovery/icon-ranking.d.mts +5 -2
- package/foundation/discovery/icon-ranking.mjs +101 -18
- package/foundation/discovery/icon-set-checks.mjs +1 -1
- package/foundation/discovery/icon-set-writer.mjs +1 -1
- package/foundation/discovery/official-list.d.mts +17 -0
- package/foundation/discovery/official-list.mjs +77 -0
- package/foundation/discovery/template-icon-notes.mjs +3 -3
- package/foundation/discovery/template-icons.mjs +2 -2
- package/foundation/discovery/template-placeholders.mjs +1 -1
- package/foundation/discovery/unknown-core-props.d.mts +130 -0
- package/foundation/discovery/unknown-core-props.mjs +601 -0
- package/foundation/discovery/written-prop-values.d.mts +35 -0
- package/foundation/discovery/written-prop-values.mjs +258 -0
- package/foundation/fonts/fontsource-families.generated.d.mts +5 -0
- package/foundation/fonts/fontsource-families.generated.mjs +2110 -0
- package/foundation/fs/package-name.d.mts +10 -0
- package/foundation/fs/package-name.mjs +37 -0
- package/foundation/fs/project-source-files.d.mts +27 -0
- package/foundation/fs/project-source-files.mjs +115 -0
- package/foundation/fs/project-sources.d.mts +25 -0
- package/foundation/fs/project-sources.mjs +83 -0
- package/foundation/fs/read-record.d.mts +18 -0
- package/foundation/fs/read-record.mjs +36 -2
- package/foundation/integrations/integration-warnings.d.mts +39 -7
- package/foundation/integrations/integration-warnings.mjs +141 -19
- package/foundation/integrations/missing-dependency.d.mts +11 -0
- package/foundation/integrations/missing-dependency.mjs +20 -5
- package/foundation/release/folder-lock.d.mts +5 -2
- package/foundation/release/folder-lock.mjs +9 -3
- package/foundation/release/notices.mjs +2 -8
- package/foundation/render/cut-short.d.mts +8 -2
- package/foundation/render/cut-short.mjs +50 -5
- package/foundation/render/drawn-contrast.d.mts +40 -0
- package/foundation/render/drawn-contrast.mjs +355 -0
- package/foundation/render/file-header.mjs +4 -0
- package/foundation/render/layers.d.mts +2 -1
- package/foundation/render/layers.mjs +22 -1
- package/foundation/render/package-resolve-hooks.d.mts +38 -9
- package/foundation/render/package-resolve-hooks.mjs +124 -32
- package/foundation/render/page-worker.mjs +95 -23
- package/foundation/render/part-boxes.d.mts +27 -0
- package/foundation/render/part-boxes.mjs +45 -0
- package/foundation/render/picture-chrome.mjs +36 -4
- package/foundation/render/picture-playwright.mjs +26 -2
- package/foundation/render/picture-window.d.mts +29 -2
- package/foundation/render/picture-window.mjs +99 -1
- package/foundation/render/render-page.d.mts +39 -6
- package/foundation/render/render-page.mjs +26 -10
- package/foundation/render/ts-paths.mjs +2 -1
- package/foundation/response/error-codes.doc.mjs +1 -1
- package/foundation/response/error-codes.mjs +1 -1
- package/foundation/response/response-types.doc.mjs +9 -5
- package/foundation/suggest/other-command.mjs +25 -1
- package/foundation/text/icon-set-next.d.mts +1 -1
- package/foundation/text/icon-set-next.mjs +2 -2
- package/foundation/text/written-string.d.mts +4 -1
- package/foundation/text/written-string.mjs +4 -1
- package/package.json +8 -7
|
@@ -46,6 +46,7 @@ export function pastedFont(v: string): string | null;
|
|
|
46
46
|
* @property {string} [state]
|
|
47
47
|
* @property {string} [mode]
|
|
48
48
|
* @property {boolean} [only]
|
|
49
|
+
* @property {boolean} [sides] - set's own value: a box shorthand where one length works is written as its sides (never a saved entry, which is checked as written)
|
|
49
50
|
*/
|
|
50
51
|
/**
|
|
51
52
|
* The first exact token setting whose value the type rules refuse now (a
|
|
@@ -55,7 +56,7 @@ export function pastedFont(v: string): string | null;
|
|
|
55
56
|
* @param {string} slug
|
|
56
57
|
* @param {import('./_settings.mjs').ThemeData} data
|
|
57
58
|
* @param {string | {thing: string, on?: string, when?: string, state?: string, mode?: string}} [skip]
|
|
58
|
-
* @returns {Array<{setting: import('./_settings.mjs').Setting, why: string, scope?: boolean, fix?: string}>} every saved setting the editor no longer accepts (`fix`: the clean value to set, when one reads)
|
|
59
|
+
* @returns {Array<{setting: import('./_settings.mjs').Setting, why: string, scope?: boolean, fix?: string, noEffect?: boolean}>} every saved setting the editor no longer accepts (`fix`: the clean value to set, when one reads; `noEffect`: refused as it never shows where it is saved)
|
|
59
60
|
*/
|
|
60
61
|
export function storedProblems(ctx: import("./_settings.mjs").Ctx, slug: string, data: import("./_settings.mjs").ThemeData, skip?: string | {
|
|
61
62
|
thing: string;
|
|
@@ -68,6 +69,7 @@ export function storedProblems(ctx: import("./_settings.mjs").Ctx, slug: string,
|
|
|
68
69
|
why: string;
|
|
69
70
|
scope?: boolean;
|
|
70
71
|
fix?: string;
|
|
72
|
+
noEffect?: boolean;
|
|
71
73
|
}>;
|
|
72
74
|
/**
|
|
73
75
|
* The font list a value with a missing comma or a spaced generic means
|
|
@@ -90,14 +92,19 @@ export function exampleOf(type: string, name: string): string;
|
|
|
90
92
|
/**
|
|
91
93
|
* Whether any of the parts draws a line of that kind (a border, one side's
|
|
92
94
|
* border, an outline) with a width, at rest or in the state named: then its
|
|
93
|
-
* color alone can differ by mode.
|
|
95
|
+
* color alone can differ by mode. A width drawn with a style of none or
|
|
96
|
+
* hidden in the same rule is no line. A side cleared only on the first or
|
|
97
|
+
* last child (a list row's divider, a grouped button's join) is still
|
|
98
|
+
* drawn on the others, so it counts. With a variant (`variant:primary`), a rule for another value of that
|
|
99
|
+
* prop does not count.
|
|
94
100
|
* @param {any} C the part census
|
|
95
101
|
* @param {string[]} parts
|
|
96
102
|
* @param {string} prop border, border-<side> or outline
|
|
97
103
|
* @param {string | undefined | null} [state]
|
|
104
|
+
* @param {string | undefined | null} [when] a variant, `prop:value`
|
|
98
105
|
* @returns {boolean}
|
|
99
106
|
*/
|
|
100
|
-
export function drawsLine(C: any, parts: string[], prop: string, state?: string | undefined | null): boolean;
|
|
107
|
+
export function drawsLine(C: any, parts: string[], prop: string, state?: string | undefined | null, when?: string | undefined | null): boolean;
|
|
101
108
|
/**
|
|
102
109
|
* The radio marks (radioMark) whose circle the installed Core draws with
|
|
103
110
|
* the pill token (--radius-full), not a knob inside a pill (a switch's
|
|
@@ -163,6 +170,55 @@ export function borderlessSurfaces(C: any): string[];
|
|
|
163
170
|
* @returns {string[]}
|
|
164
171
|
*/
|
|
165
172
|
export function dividerParts(C: any): string[];
|
|
173
|
+
/**
|
|
174
|
+
* Whether Core draws a line around a part where it is asked: in the look
|
|
175
|
+
* said, else the part's default look, at rest or in the state said. A side
|
|
176
|
+
* cleared on the first child, a seam with the sibling before it, is never a
|
|
177
|
+
* line around the part: a secondary button standing alone draws none.
|
|
178
|
+
* @param {import('./_settings.mjs').Ctx} ctx
|
|
179
|
+
* @param {string} part
|
|
180
|
+
* @param {string | null | undefined} state
|
|
181
|
+
* @param {string | undefined} when
|
|
182
|
+
*/
|
|
183
|
+
export function drawsLineAround(ctx: import("./_settings.mjs").Ctx, part: string, state: string | null | undefined, when: string | undefined): boolean;
|
|
184
|
+
/**
|
|
185
|
+
* The border a border color (one color, a color per side, or one side's)
|
|
186
|
+
* brings to the part it is set on, when the part draws no border in the
|
|
187
|
+
* variant and state asked (Core sets a tab's, a primary button's and a
|
|
188
|
+
* banner's to none): a transparent one at rest, as wide as the theme's
|
|
189
|
+
* border width, so the part keeps one size in every state and the color
|
|
190
|
+
* has a line to show on. Null when the setting is no border color, its
|
|
191
|
+
* parts draw a border there, or the theme itself sets their border to none
|
|
192
|
+
* (set refuses that conflict, naming the none). Set and how both write it
|
|
193
|
+
* before the color.
|
|
194
|
+
* @param {import('./_settings.mjs').Ctx} ctx
|
|
195
|
+
* @param {string} slug
|
|
196
|
+
* @param {any} data
|
|
197
|
+
* @param {import('./_settings.mjs').Setting} s the checked border color
|
|
198
|
+
* @returns {import('./_settings.mjs').Setting | null}
|
|
199
|
+
*/
|
|
200
|
+
export function borderFor(ctx: import("./_settings.mjs").Ctx, slug: string, data: any, s: import("./_settings.mjs").Setting): import("./_settings.mjs").Setting | null;
|
|
201
|
+
/**
|
|
202
|
+
* Whether a setting turns a border side off: a border width, style or side
|
|
203
|
+
* shorthand (never a radius, spacing or image) whose value holds a none,
|
|
204
|
+
* hidden or zero.
|
|
205
|
+
* @param {{thing?: unknown, value?: unknown}} x
|
|
206
|
+
*/
|
|
207
|
+
export function turnsBorderOff(x: {
|
|
208
|
+
thing?: unknown;
|
|
209
|
+
value?: unknown;
|
|
210
|
+
}): boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Where a border a color brings goes in the theme's settings: before the
|
|
213
|
+
* part's own border widths, styles, shorthands and colors, so a side the
|
|
214
|
+
* theme turns off or sizes itself keeps its own value and a color saved
|
|
215
|
+
* earlier still draws.
|
|
216
|
+
* @param {import('./_settings.mjs').Ctx} ctx
|
|
217
|
+
* @param {any[]} settings
|
|
218
|
+
* @param {import('./_settings.mjs').Setting} edge
|
|
219
|
+
* @returns {number}
|
|
220
|
+
*/
|
|
221
|
+
export function broughtBorderAt(ctx: import("./_settings.mjs").Ctx, settings: any[], edge: import("./_settings.mjs").Setting): number;
|
|
166
222
|
/**
|
|
167
223
|
* What a text property CSS inherits, set on a part, also reaches: the parts
|
|
168
224
|
* inside it that set no such property of their own, said in one line; null
|
|
@@ -230,17 +286,29 @@ export function coveredPaints(ctx: import("./_settings.mjs").Ctx, part: string,
|
|
|
230
286
|
* @param {string | undefined} value
|
|
231
287
|
* @param {SetFlags} flags
|
|
232
288
|
* @param {boolean} [unset] an undo of one setting: only the identity of the setting is checked
|
|
233
|
-
* @param {{reads?: ReadonlySet<string>, element?: Record<string, unknown
|
|
289
|
+
* @param {{reads?: ReadonlySet<string>, element?: Record<string, unknown>, saved?: boolean}} [scope] `reads`: the custom
|
|
234
290
|
* properties the theme itself sets where the value is read, which a var()
|
|
235
291
|
* in it reads as it reads a design token; `element`: the custom properties
|
|
236
292
|
* set on the element the value is set on, when that is not the theme's
|
|
237
|
-
* root (a surface's own tokens), the only ones that can loop back to it
|
|
293
|
+
* root (a surface's own tokens), the only ones that can loop back to it;
|
|
294
|
+
* `saved`: the setting is read from the settings file, not typed in, so a
|
|
295
|
+
* rule about what a new `set` writes does not refuse it
|
|
238
296
|
* @returns {import('./_settings.mjs').Setting}
|
|
239
297
|
*/
|
|
240
|
-
export function checkSetting(ctx: import("./_settings.mjs").Ctx, slug: string, data: import("./_settings.mjs").ThemeData, thing: string, value: string | undefined, flags: SetFlags, unset?: boolean,
|
|
298
|
+
export function checkSetting(ctx: import("./_settings.mjs").Ctx, slug: string, data: import("./_settings.mjs").ThemeData, thing: string, value: string | undefined, flags: SetFlags, unset?: boolean, scope?: {
|
|
241
299
|
reads?: ReadonlySet<string>;
|
|
242
300
|
element?: Record<string, unknown>;
|
|
301
|
+
saved?: boolean;
|
|
243
302
|
}): import("./_settings.mjs").Setting;
|
|
303
|
+
/**
|
|
304
|
+
* The part or group a word names as --on reads it (a plural is its part:
|
|
305
|
+
* `cards`, `buttons`), or null. The one reader for a part named inside a
|
|
306
|
+
* value and a part typed in the setting's place.
|
|
307
|
+
* @param {any} ctx
|
|
308
|
+
* @param {string} w
|
|
309
|
+
* @returns {string | null}
|
|
310
|
+
*/
|
|
311
|
+
export function partNamed(ctx: any, w: string): string | null;
|
|
244
312
|
/**
|
|
245
313
|
* A setting's value as set reads it: one line, and tabs as spaces; in a font
|
|
246
314
|
* value every run of spaces or tabs is one space, so `'Open Sans'` and
|
|
@@ -296,6 +364,10 @@ export function setLine(slug: string, thing: string, value: string, s: {
|
|
|
296
364
|
}, unset?: boolean): string;
|
|
297
365
|
/** State words a value may be labeled with. */
|
|
298
366
|
export const STATE_WORDS: string[];
|
|
367
|
+
/** A border color: one color, one per side, or one side's. */
|
|
368
|
+
export const BORDER_COLOR_PROP: RegExp;
|
|
369
|
+
/** The border a border color brings to a part that draws none. */
|
|
370
|
+
export const BORDER_TO_COLOR: "var(--border-width) solid transparent";
|
|
299
371
|
/** The aspects `how` answers at the whole-theme level. */
|
|
300
372
|
export const ASPECTS: string[];
|
|
301
373
|
export type SetFlags = {
|
|
@@ -304,6 +376,10 @@ export type SetFlags = {
|
|
|
304
376
|
state?: string | undefined;
|
|
305
377
|
mode?: string | undefined;
|
|
306
378
|
only?: boolean | undefined;
|
|
379
|
+
/**
|
|
380
|
+
* - set's own value: a box shorthand where one length works is written as its sides (never a saved entry, which is checked as written)
|
|
381
|
+
*/
|
|
382
|
+
sides?: boolean | undefined;
|
|
307
383
|
};
|
|
308
384
|
import { familiesOf } from './_normal.mjs';
|
|
309
385
|
import { familyPieces } from './_normal.mjs';
|