@astryxdesign/cli 0.7.16 → 0.7.17-canary.g335a172
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 +76 -86
- package/api/build/_adapter.d.mts +12 -0
- package/api/build/_adapter.mjs +51 -34
- package/api/build/blocks/blocks.d.mts +7 -5
- package/api/build/blocks/blocks.mjs +113 -26
- package/api/build/build.doc.mjs +4 -3
- package/api/build/build.type.d.mts +2 -2
- package/api/build/build.type.mjs +3 -3
- package/api/build/kit/kind.d.mts +2 -1
- package/api/build/kit/kind.mjs +199 -10
- package/api/build/kit/kit.mjs +6 -4
- package/api/build/kit/rank.mjs +69 -16
- package/api/build/kit/start.d.mts +5 -4
- package/api/build/kit/start.mjs +12 -8
- package/api/build/kit/weights.d.mts +16 -3
- package/api/build/kit/weights.json +1 -1
- package/api/build/kit/weights.mjs +251 -35
- package/api/build/kit/word-model.d.mts +23 -0
- package/api/build/kit/word-model.mjs +46 -0
- package/api/build/kit/words.d.mts +48 -0
- package/api/build/kit/words.mjs +90 -1
- package/api/component/__fixtures__/resolutions/modules.txt +4 -5
- package/api/component/list/list.d.mts +1 -1
- package/api/component/list/list.mjs +48 -6
- package/api/discover/_adapter.d.mts +1 -1
- package/api/discover/search/search.mjs +3 -2
- package/api/docs/_adapter.d.mts +26 -2
- package/api/docs/_adapter.mjs +219 -6
- package/api/docs/docs.d.mts +3 -0
- package/api/docs/docs.doc.mjs +7 -1
- package/api/docs/docs.mjs +12 -0
- package/api/docs/docs.type.d.mts +5 -0
- package/api/docs/docs.type.mjs +2 -0
- package/api/docs/node/node.mjs +1 -1
- package/api/doctor/_adapter.d.mts +27 -5
- package/api/doctor/_adapter.mjs +83 -10
- package/api/doctor/built-checks.mjs +40 -14
- package/api/doctor/doctor.d.mts +4 -3
- package/api/doctor/doctor.mjs +14 -7
- package/api/doctor/theme-checks.mjs +121 -17
- package/api/icon/_records.mjs +2 -1
- package/api/index.d.mts +2 -0
- package/api/index.mjs +2 -0
- package/api/integration/_adapter.d.mts +44 -0
- package/api/integration/_adapter.mjs +77 -1
- package/api/integration/authoring-checks.mjs +6 -6
- package/api/integration/example-scope.d.mts +14 -0
- package/api/integration/example-scope.mjs +44 -0
- package/api/integration/example-scope.type.d.mts +29 -0
- package/api/integration/example-scope.type.mjs +25 -0
- package/api/integration/integrationExampleScope.doc.d.mts +11 -0
- package/api/integration/integrationExampleScope.doc.mjs +59 -0
- package/api/integration/validate-integration.mjs +19 -1
- package/api/integration/validate-integration.type.d.mts +9 -0
- package/api/integration/validate-integration.type.mjs +1 -1
- package/api/integration/validateIntegration.doc.mjs +1 -1
- package/api/render/_adapter.mjs +591 -195
- package/api/render/render.doc.mjs +11 -3
- package/api/render/render.type.d.mts +52 -0
- package/api/render/render.type.mjs +31 -1
- package/api/search/ORDERING.md +1 -1
- package/api/search/_candidate-score.mjs +51 -32
- package/api/search/_fit-order.mjs +3 -3
- package/api/search/_gather-components.d.mts +3 -2
- package/api/search/_gather-components.mjs +12 -3
- package/api/search/_lexical.d.mts +5 -0
- package/api/search/_lexical.mjs +8 -2
- package/api/search/_result.d.mts +11 -9
- package/api/search/_result.mjs +4 -4
- package/api/search/_score.d.mts +6 -1
- package/api/search/_score.mjs +15 -3
- package/api/search/search-index.mjs +7 -1
- package/api/search/search.d.mts +1 -1
- package/api/theme/_adapter.mjs +12 -1
- package/api/theme/build/build.d.mts +60 -0
- package/api/theme/build/build.mjs +210 -54
- package/api/theme/build/font-warning.d.mts +8 -0
- package/api/theme/build/font-warning.mjs +19 -0
- package/api/theme/theme.type.d.mts +10 -0
- package/api/theme/theme.type.mjs +7 -1
- package/api/theme-edit/_adapter.d.mts +55 -0
- package/api/theme-edit/_adapter.mjs +673 -42
- package/api/theme-edit/_check.d.mts +28 -22
- package/api/theme-edit/_check.mjs +1858 -312
- package/api/theme-edit/_color.d.mts +10 -0
- package/api/theme-edit/_color.mjs +49 -1
- package/api/theme-edit/_compiler.mjs +9 -0
- package/api/theme-edit/_context.mjs +60 -3
- package/api/theme-edit/_css.mjs +21 -1
- package/api/theme-edit/_edit.d.mts +22 -0
- package/api/theme-edit/_edit.mjs +1533 -92
- package/api/theme-edit/_how-commands.d.mts +57 -0
- package/api/theme-edit/_how-commands.mjs +587 -1
- package/api/theme-edit/_how-question.d.mts +78 -0
- package/api/theme-edit/_how-question.mjs +4716 -235
- package/api/theme-edit/_how.mjs +134 -8
- package/api/theme-edit/_marks.d.mts +31 -5
- package/api/theme-edit/_marks.mjs +57 -5
- package/api/theme-edit/_normal.d.mts +219 -0
- package/api/theme-edit/_normal.mjs +1041 -0
- package/api/theme-edit/_palette.mjs +10 -4
- package/api/theme-edit/_parts.d.mts +8 -0
- package/api/theme-edit/_parts.mjs +103 -2
- package/api/theme-edit/_playwright-picture.d.mts +4 -0
- package/api/theme-edit/_playwright-picture.mjs +34 -0
- package/api/theme-edit/_preview-app.d.mts +7 -1
- package/api/theme-edit/_preview-app.mjs +394 -74
- package/api/theme-edit/_preview.d.mts +69 -8
- package/api/theme-edit/_preview.mjs +531 -108
- package/api/theme-edit/_settings.d.mts +243 -6
- package/api/theme-edit/_settings.mjs +2415 -147
- package/api/theme-edit/_tables.d.mts +6 -0
- package/api/theme-edit/_tables.mjs +44 -1
- package/api/theme-edit/_vet.d.mts +18 -0
- package/api/theme-edit/_vet.mjs +32 -0
- package/api/theme-edit/theme-edit.type.d.mts +10 -1
- package/api/theme-edit/theme-edit.type.mjs +4 -1
- package/api/theme-edit/themeEditHow.doc.mjs +1 -1
- package/api/theme-edit/themeEditNew.doc.mjs +1 -1
- package/api/theme-edit/themeEditPreviewApp.doc.mjs +3 -3
- package/api/theme-edit/themeEditPreviewRemove.doc.mjs +2 -2
- package/api/upgrade/run/run.mjs +4 -3
- package/assets/codemods/integration-discovery.mjs +2 -1
- package/assets/codemods/run-codemod.mjs +87 -7
- package/assets/codemods/transforms/next/index.mjs +11 -1
- package/assets/codemods/transforms/next/migrate-item-swipe-actions-to-swipe.mjs +394 -0
- package/assets/component-list.generated.json +1 -0
- package/assets/docs/author-a-theme.doc.mjs +1 -0
- package/assets/docs/theme.doc.dense.mjs +2 -2
- package/assets/docs/theme.doc.mjs +1 -1
- package/assets/docs/tree/check-your-docs.doc.mjs +1 -1
- package/assets/docs/tree/checks.doc.mjs +1 -1
- package/assets/docs/tree/cli-command.doc.mjs +2 -3
- package/assets/docs/tree/render-pages.doc.mjs +44 -3
- package/assets/docs/tree/single-component.doc.mjs +4 -0
- package/assets/docs/tree/template-doc-overview.doc.mjs +1 -1
- package/assets/docs/tree/test-in-an-app.doc.mjs +1 -1
- package/assets/docs/use-a-theme.doc.mjs +1 -1
- package/assets/docs.generated.json +2 -2
- package/assets/self-audit.generated.json +1 -1
- package/assets/templates/blocks/components/ChatComposerInput/useChatDictationHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/ChatComposerInput/useChatDictationHookUsage.tsx +38 -0
- package/assets/templates/blocks/components/Hooks/useContainerRevealHookUsage.tsx +2 -2
- package/assets/templates/blocks/components/SyntaxTheme/useSyntaxThemeHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/SyntaxTheme/useSyntaxThemeHookUsage.tsx +36 -0
- package/assets/templates/components.generated.json +1 -1
- package/assets/templates/pages/ai-chat/template.doc.mjs +5 -4
- package/assets/templates/pages/ai-chat-landing/template.doc.mjs +2 -1
- package/assets/templates/pages/blank/template.doc.mjs +1 -1
- package/assets/templates/pages/canvas-editor/template.doc.mjs +4 -2
- package/assets/templates/pages/centered-hero/template.doc.mjs +9 -1
- package/assets/templates/pages/classic-gallery/template.doc.mjs +1 -1
- package/assets/templates/pages/contact-form/template.doc.mjs +2 -1
- package/assets/templates/pages/dashboard/template.doc.mjs +3 -2
- package/assets/templates/pages/dashboard-alert-rail/template.doc.mjs +2 -1
- package/assets/templates/pages/dashboard-cohort-funnel/template.doc.mjs +2 -1
- package/assets/templates/pages/dashboard-composition/template.doc.mjs +2 -1
- package/assets/templates/pages/dashboard-progress/template.doc.mjs +6 -3
- package/assets/templates/pages/detail-page/template.doc.mjs +10 -3
- package/assets/templates/pages/documentation/template.doc.mjs +4 -1
- package/assets/templates/pages/documentation-design/template.doc.mjs +7 -1
- package/assets/templates/pages/documentation-technical/template.doc.mjs +7 -1
- package/assets/templates/pages/editor/template.doc.mjs +2 -8
- package/assets/templates/pages/file-explorer/template.doc.mjs +1 -1
- package/assets/templates/pages/form-two-column/template.doc.mjs +4 -3
- package/assets/templates/pages/form-wizard/template.doc.mjs +5 -3
- package/assets/templates/pages/gallery-hero/template.doc.mjs +4 -2
- package/assets/templates/pages/ide/page.tsx +24 -2
- package/assets/templates/pages/kanban-board/template.doc.mjs +1 -9
- package/assets/templates/pages/library/template.doc.mjs +4 -1
- package/assets/templates/pages/login/template.doc.mjs +2 -1
- package/assets/templates/pages/login-card/template.doc.mjs +2 -1
- package/assets/templates/pages/login-split/template.doc.mjs +2 -1
- package/assets/templates/pages/login-sso/template.doc.mjs +4 -2
- package/assets/templates/pages/mixed-gallery/template.doc.mjs +2 -1
- package/assets/templates/pages/product-detail/template.doc.mjs +4 -2
- package/assets/templates/pages/product-gallery/template.doc.mjs +2 -1
- package/assets/templates/pages/settings-dialog/template.doc.mjs +2 -1
- package/assets/templates/pages/settings-sidebar/template.doc.mjs +2 -1
- package/assets/templates/pages/shell-nav/template.doc.mjs +4 -2
- package/assets/templates/pages/shell-side-nav/template.doc.mjs +5 -3
- package/assets/templates/pages/shell-top-nav/template.doc.mjs +2 -1
- package/assets/templates/pages/side-gallery/template.doc.mjs +9 -1
- package/assets/templates/pages/table-filter/template.doc.mjs +9 -8
- package/assets/templates/pages/table-grouped/template.doc.mjs +4 -2
- package/assets/templates/pages/table-page/template.doc.mjs +5 -4
- package/assets/templates/pages/table-tree/template.doc.mjs +6 -3
- package/assets/templates/pages/theme-showcase/template.doc.mjs +2 -9
- package/assets/templates/pages/work-item-detail/template.doc.mjs +1 -0
- package/assets/theme.template.ts +6 -0
- package/authoring/debug/parse.d.mts +3 -3
- package/authoring/doctypes/_schema.d.mts +3 -3
- package/authoring/doctypes/command/command.doc.mjs +1 -1
- package/authoring/doctypes/component/categories.d.mts +37 -0
- package/authoring/doctypes/component/categories.mjs +54 -0
- package/authoring/doctypes/template/template.doc.mjs +1 -1
- package/authoring/doctypes/template/type.ts +9 -0
- package/authoring/example/example.doc.d.mts +12 -0
- package/authoring/example/example.doc.mjs +69 -0
- package/authoring/example/preview.d.mts +92 -0
- package/authoring/example/preview.mjs +994 -0
- package/authoring/example/type.ts +102 -0
- package/authoring/index.d.mts +1 -0
- package/authoring/index.d.ts +12 -0
- package/authoring/index.mjs +3 -1
- package/clients/cli/bin/astryx.mjs +6 -9
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/component.doc.mjs +1 -1
- package/clients/cli/commands/component.mjs +22 -3
- package/clients/cli/commands/docs.doc.mjs +7 -1
- package/clients/cli/commands/docs.mjs +3 -1
- package/clients/cli/commands/doctor.mjs +32 -14
- package/clients/cli/commands/experimental/render.mjs +42 -1
- package/clients/cli/commands/experimental/theme.mjs +145 -16
- package/clients/cli/commands/experimental-render.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +3 -3
- package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +87 -1
- package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-editor.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-preview-remove.doc.mjs +2 -2
- package/clients/cli/commands/search.doc.mjs +2 -1
- package/clients/cli/commands/search.mjs +6 -1
- package/clients/cli/commands/template.mjs +4 -2
- package/clients/cli/commands/theme-build.doc.mjs +5 -1
- package/clients/cli/commands/theme.doc.mjs +1 -1
- package/clients/cli/commands/theme.mjs +183 -6
- package/clients/cli/commands/upgrade.mjs +42 -7
- package/clients/cli/index.mjs +1 -1
- package/clients/cli/lib/cli-error.mjs +2 -1
- package/clients/cli/lib/component-format.mjs +205 -98
- package/clients/cli/lib/hook-format.mjs +9 -19
- package/clients/cli/lib/json-shim.mjs +77 -21
- package/clients/cli/lib/manifest.mjs +3 -2
- package/clients/cli/manifest.generated.json +1 -1
- package/foundation/agent-docs/agent-docs.mjs +1 -1
- package/foundation/config/theme-state.d.mts +13 -1
- package/foundation/config/theme-state.mjs +47 -7
- package/foundation/discovery/authoring-self-docs.mjs +1 -0
- package/foundation/discovery/component-discovery.d.mts +11 -0
- package/foundation/discovery/component-discovery.mjs +56 -8
- package/foundation/discovery/component-replacement.mjs +130 -1
- package/foundation/discovery/copied-passages.mjs +2 -1
- package/foundation/discovery/doc-types.mjs +4 -3
- package/foundation/discovery/entry-name-files.d.mts +43 -0
- package/foundation/discovery/entry-name-files.mjs +264 -0
- package/foundation/discovery/hook-discovery.d.mts +8 -2
- package/foundation/discovery/hook-discovery.mjs +22 -8
- package/foundation/discovery/icon-definition-discovery.mjs +2 -1
- package/foundation/discovery/icon-set-checks.mjs +2 -1
- package/foundation/discovery/icon-set-discovery.mjs +2 -1
- package/foundation/discovery/integration-doc-files.mjs +2 -1
- package/foundation/discovery/package-exports.d.mts +10 -0
- package/foundation/discovery/package-exports.mjs +56 -3
- package/foundation/discovery/prop-drift.mjs +9 -9
- package/foundation/discovery/runner-allowlist.d.mts +1 -0
- package/foundation/discovery/runner-allowlist.mjs +2 -0
- package/foundation/discovery/stored-component-list.d.mts +43 -0
- package/foundation/discovery/stored-component-list.mjs +90 -0
- package/foundation/discovery/stored-self-audit.d.mts +26 -10
- package/foundation/discovery/stored-self-audit.mjs +38 -18
- package/foundation/discovery/template-adapter.d.mts +52 -0
- package/foundation/discovery/template-adapter.mjs +176 -12
- package/foundation/discovery/template-icons.mjs +2 -1
- package/foundation/discovery/theme-discovery.mjs +3 -2
- package/foundation/discovery/theme-imports.d.mts +14 -0
- package/foundation/discovery/theme-imports.mjs +43 -1
- package/foundation/discovery/theming-targets.mjs +3 -2
- package/foundation/doc-compiler/import.mjs +7 -1
- package/foundation/doc-compiler/inputs.mjs +3 -2
- package/foundation/doc-compiler/parse-readable.mjs +4 -1
- package/foundation/doc-compiler/stored-docs.d.mts +22 -0
- package/foundation/doc-compiler/stored-docs.mjs +49 -0
- package/foundation/env/semver.mjs +3 -1
- package/foundation/fonts/font-stylesheet.d.mts +31 -0
- package/foundation/fonts/font-stylesheet.mjs +115 -0
- package/foundation/fs/cache-eviction.d.mts +21 -0
- package/foundation/fs/cache-eviction.mjs +73 -0
- package/foundation/fs/file-protection.mjs +4 -3
- package/foundation/fs/gather-cache.d.mts +25 -4
- package/foundation/fs/gather-cache.mjs +164 -55
- package/foundation/fs/jiti-cache.d.mts +19 -1
- package/foundation/fs/jiti-cache.mjs +130 -6
- package/foundation/fs/kept-tree.d.mts +60 -0
- package/foundation/fs/kept-tree.mjs +154 -0
- package/foundation/fs/listing-cache.d.mts +7 -0
- package/foundation/fs/listing-cache.mjs +10 -0
- package/foundation/fs/module-loader.d.mts +24 -2
- package/foundation/fs/module-loader.mjs +94 -21
- package/foundation/fs/paths.d.mts +18 -0
- package/foundation/fs/paths.mjs +15 -2
- package/foundation/identity/provider-identity.d.mts +6 -0
- package/foundation/identity/provider-identity.mjs +10 -1
- package/foundation/integrations/contribution-inventory.mjs +4 -3
- package/foundation/integrations/example-code.d.mts +63 -0
- package/foundation/integrations/example-code.mjs +416 -0
- package/foundation/integrations/public-imports.d.mts +9 -0
- package/foundation/integrations/public-imports.mjs +3 -2
- package/foundation/integrations/validate-contributions.mjs +17 -45
- package/foundation/render/embedded-files.d.mts +6 -0
- package/foundation/render/embedded-files.mjs +25 -5
- package/foundation/render/embedded-imports.d.mts +39 -7
- package/foundation/render/embedded-imports.mjs +66 -27
- package/foundation/render/file-header.d.mts +66 -0
- package/foundation/render/file-header.mjs +118 -0
- package/foundation/render/host-answer.d.mts +18 -0
- package/foundation/render/host-answer.mjs +46 -0
- package/foundation/render/host-exit.d.mts +1 -0
- package/foundation/render/host-exit.mjs +6 -1
- package/foundation/render/html-reader.d.mts +55 -2
- package/foundation/render/html-reader.mjs +145 -26
- package/foundation/render/markup-edits.d.mts +57 -0
- package/foundation/render/markup-edits.mjs +182 -0
- package/foundation/render/page-host.mjs +29 -12
- package/foundation/render/page-worker.mjs +121 -13
- package/foundation/render/rebuild.mjs +2 -1
- package/foundation/render/render-page.d.mts +35 -3
- package/foundation/render/render-page.mjs +316 -42
- package/foundation/render/source-block.d.mts +85 -6
- package/foundation/render/source-block.mjs +211 -20
- package/foundation/render/ts-paths.d.mts +69 -6
- package/foundation/render/ts-paths.mjs +326 -40
- package/foundation/response/error-codes.d.mts +3 -1
- package/foundation/response/error-codes.d.ts +1 -0
- package/foundation/response/error-codes.doc.mjs +12 -1
- package/foundation/response/error-codes.mjs +11 -1
- package/foundation/response/response-types.doc.mjs +2 -2
- package/foundation/text/compare-text.d.mts +14 -0
- package/foundation/text/compare-text.mjs +68 -0
- package/foundation/text/string-utils.d.mts +3 -2
- package/foundation/text/string-utils.mjs +18 -4
- package/foundation/text/suggest-order.d.mts +9 -0
- package/foundation/text/suggest-order.mjs +15 -1
- package/foundation/xle/expand.mjs +2 -1
- package/host/index.mjs +8 -6
- package/package.json +7 -6
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file Codemod: migrate Item and ListItem swipe actions to createSwipe
|
|
5
|
+
*
|
|
6
|
+
* `swipeActions={X}` on `Item` and `ListItem` becomes `swipe={createSwipe(X)}`
|
|
7
|
+
* when `X` is an object literal whose `leading` and `trailing` are array
|
|
8
|
+
* literals of object literals. Each entry with no `id` takes one from its side
|
|
9
|
+
* and place, `'trailing-0'`, `'trailing-1'` and so on (entryIds). `createSwipe`
|
|
10
|
+
* needs an `id` on every action, and a handler that takes nothing stays valid.
|
|
11
|
+
* A `swipeBehavior={B}` beside it joins the options as `swipeBehavior`, merged
|
|
12
|
+
* into the object in place. A static `'reveal'`, the default, is dropped. On a
|
|
13
|
+
* row that already sets `swipe`, the deprecated props are ignored at run time,
|
|
14
|
+
* so they are removed. A lone `swipeBehavior` with no `swipeActions` does
|
|
15
|
+
* nothing, so it is removed too. `createSwipe` is imported from
|
|
16
|
+
* `@astryxdesign/core/Swipe`, under a free alias when the file already binds
|
|
17
|
+
* the name to something else. The `ItemSwipe*` types stay as they are:
|
|
18
|
+
* `ItemSwipeAction` and `ItemSwipeActions` are deprecated with the props, and
|
|
19
|
+
* `ItemSwipeActionVariant` and `ItemSwipeBehavior` stay supported.
|
|
20
|
+
*
|
|
21
|
+
* Built on the shared import resolver, so it does not follow variables,
|
|
22
|
+
* helpers, wrappers, or types. Where it cannot see every entry, it keeps the
|
|
23
|
+
* old props and leaves a TODO instead of guessing, so its output compiles.
|
|
24
|
+
* That covers a name, a property, a computed value, and an object with a
|
|
25
|
+
* spread or an entry that is not an object literal. It also covers any row
|
|
26
|
+
* that spreads props, which may carry the deprecated props. The deprecated
|
|
27
|
+
* props keep working there. Comments are the codemod's only report channel.
|
|
28
|
+
* Each is added once, so a second run changes nothing.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
import {
|
|
32
|
+
importedComponents,
|
|
33
|
+
resolveImportedComponent,
|
|
34
|
+
} from '../../transform-prop.mjs';
|
|
35
|
+
|
|
36
|
+
export const meta = {
|
|
37
|
+
title: 'Migrate Item and ListItem swipe actions to createSwipe',
|
|
38
|
+
description:
|
|
39
|
+
'Replaces `swipeActions={X}` and `swipeBehavior` on Item and ListItem with ' +
|
|
40
|
+
'`swipe={createSwipe({...X, swipeBehavior})}`, giving each entry an id ' +
|
|
41
|
+
'from its side and place. Keeps the old props with a TODO where it cannot ' +
|
|
42
|
+
'see every entry and where the row also spreads props; the deprecated ' +
|
|
43
|
+
'props still work there.',
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const CORE_IMPORT_RE = /^@(astryxdesign|xds)\/core(?:\/|$)/;
|
|
47
|
+
const SWIPE_SOURCE = '@astryxdesign/core/Swipe';
|
|
48
|
+
const OLD_PROPS = new Set(['swipeActions', 'swipeBehavior']);
|
|
49
|
+
const COMPONENTS = new Map([
|
|
50
|
+
['Item', OLD_PROPS],
|
|
51
|
+
['ListItem', OLD_PROPS],
|
|
52
|
+
]);
|
|
53
|
+
const VALUE_COMMENT =
|
|
54
|
+
' TODO(astryx upgrade): swipeActions and swipeBehavior are deprecated ' +
|
|
55
|
+
'(DEP-0017). Pass swipe={createSwipe({leading, trailing, ' +
|
|
56
|
+
'swipeBehavior})} instead, with an id on each action; this swipeActions ' +
|
|
57
|
+
'value does not show every entry as an object literal, so it was left ' +
|
|
58
|
+
'unchanged. ';
|
|
59
|
+
const SPREAD_COMMENT =
|
|
60
|
+
' TODO(astryx upgrade): swipeActions and swipeBehavior are deprecated ' +
|
|
61
|
+
'(DEP-0017), and this row spreads props that may carry them, so it was ' +
|
|
62
|
+
'left unchanged. Pass swipe={createSwipe({leading, trailing, ' +
|
|
63
|
+
'swipeBehavior})} by hand. ';
|
|
64
|
+
|
|
65
|
+
const TYPE_WRAPPERS = new Set([
|
|
66
|
+
'TSAsExpression',
|
|
67
|
+
'TSSatisfiesExpression',
|
|
68
|
+
'TSTypeAssertion',
|
|
69
|
+
'TSNonNullExpression',
|
|
70
|
+
'TypeCastExpression',
|
|
71
|
+
'ParenthesizedExpression',
|
|
72
|
+
]);
|
|
73
|
+
|
|
74
|
+
/** @param {any} node */
|
|
75
|
+
function unwrap(node) {
|
|
76
|
+
let current = node;
|
|
77
|
+
while (current && TYPE_WRAPPERS.has(current.type)) {
|
|
78
|
+
current = current.expression;
|
|
79
|
+
}
|
|
80
|
+
return current;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** @param {any} attribute */
|
|
84
|
+
function attributeValue(attribute) {
|
|
85
|
+
return attribute.value?.type === 'JSXExpressionContainer'
|
|
86
|
+
? attribute.value.expression
|
|
87
|
+
: attribute.value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** The static string of a node, or null. @param {any} node */
|
|
91
|
+
function staticString(node) {
|
|
92
|
+
const value = unwrap(node);
|
|
93
|
+
if (
|
|
94
|
+
value != null &&
|
|
95
|
+
(value.type === 'StringLiteral' || value.type === 'Literal') &&
|
|
96
|
+
typeof value.value === 'string'
|
|
97
|
+
) {
|
|
98
|
+
return value.value;
|
|
99
|
+
}
|
|
100
|
+
if (
|
|
101
|
+
value?.type === 'TemplateLiteral' &&
|
|
102
|
+
value.expressions.length === 0 &&
|
|
103
|
+
value.quasis.length === 1
|
|
104
|
+
) {
|
|
105
|
+
return value.quasis[0].value.cooked;
|
|
106
|
+
}
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** @param {any} j @param {any} node @param {string} text */
|
|
111
|
+
function addComment(j, node, text) {
|
|
112
|
+
node.comments ??= [];
|
|
113
|
+
if (node.comments.some((/** @type {any} */ c) => c.value === text)) {
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
node.comments.push(j.commentBlock(text, true, false));
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* `preferred`, or `preferred` with a numeric suffix, whichever no binding or
|
|
122
|
+
* reference in the file already uses.
|
|
123
|
+
* @param {any} j @param {any} root @param {string} preferred
|
|
124
|
+
*/
|
|
125
|
+
function freeName(j, root, preferred) {
|
|
126
|
+
const used = new Set();
|
|
127
|
+
root.find(j.Identifier).forEach((/** @type {any} */ p) => {
|
|
128
|
+
used.add(p.node.name);
|
|
129
|
+
});
|
|
130
|
+
if (!used.has(preferred)) {
|
|
131
|
+
return preferred;
|
|
132
|
+
}
|
|
133
|
+
let n = 2;
|
|
134
|
+
while (used.has(`${preferred}${n}`)) {
|
|
135
|
+
n++;
|
|
136
|
+
}
|
|
137
|
+
return `${preferred}${n}`;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The value import declaration of `@astryxdesign/core/Swipe` a named
|
|
142
|
+
* specifier can join, adding one after the last import when there is none.
|
|
143
|
+
* @param {any} j @param {any} root
|
|
144
|
+
*/
|
|
145
|
+
function swipeImport(j, root) {
|
|
146
|
+
const existing = root
|
|
147
|
+
.find(j.ImportDeclaration)
|
|
148
|
+
.filter(
|
|
149
|
+
(/** @type {any} */ p) =>
|
|
150
|
+
p.node.source.value === SWIPE_SOURCE &&
|
|
151
|
+
p.node.importKind !== 'type' &&
|
|
152
|
+
!(p.node.specifiers ?? []).some(
|
|
153
|
+
(/** @type {any} */ s) => s.type === 'ImportNamespaceSpecifier',
|
|
154
|
+
),
|
|
155
|
+
);
|
|
156
|
+
if (existing.size() > 0) {
|
|
157
|
+
return existing.get().node;
|
|
158
|
+
}
|
|
159
|
+
const declaration = j.importDeclaration([], j.stringLiteral(SWIPE_SOURCE));
|
|
160
|
+
const imports = root.find(j.ImportDeclaration);
|
|
161
|
+
if (imports.size() > 0) {
|
|
162
|
+
imports.at(imports.size() - 1).insertAfter(declaration);
|
|
163
|
+
} else {
|
|
164
|
+
root.get().node.program.body.unshift(declaration);
|
|
165
|
+
}
|
|
166
|
+
return declaration;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* The local name `createSwipe` is imported under, adding the import
|
|
171
|
+
* when the file has none.
|
|
172
|
+
* @param {any} j @param {any} root
|
|
173
|
+
*/
|
|
174
|
+
function ensureCreateImport(j, root) {
|
|
175
|
+
let local = null;
|
|
176
|
+
root
|
|
177
|
+
.find(j.ImportDeclaration)
|
|
178
|
+
.filter(
|
|
179
|
+
(/** @type {any} */ p) =>
|
|
180
|
+
CORE_IMPORT_RE.test(p.node.source.value) &&
|
|
181
|
+
p.node.importKind !== 'type',
|
|
182
|
+
)
|
|
183
|
+
.forEach((/** @type {any} */ p) => {
|
|
184
|
+
for (const specifier of p.node.specifiers ?? []) {
|
|
185
|
+
if (
|
|
186
|
+
specifier.type === 'ImportSpecifier' &&
|
|
187
|
+
specifier.importKind !== 'type' &&
|
|
188
|
+
specifier.imported.name === 'createSwipe'
|
|
189
|
+
) {
|
|
190
|
+
local = specifier.local?.name ?? 'createSwipe';
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
if (local != null) {
|
|
195
|
+
return local;
|
|
196
|
+
}
|
|
197
|
+
const name = freeName(j, root, 'createSwipe');
|
|
198
|
+
swipeImport(j, root).specifiers.push(
|
|
199
|
+
name === 'createSwipe'
|
|
200
|
+
? j.importSpecifier(j.identifier('createSwipe'))
|
|
201
|
+
: j.importSpecifier(j.identifier('createSwipe'), j.identifier(name)),
|
|
202
|
+
);
|
|
203
|
+
return name;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* The options `swipeActions={value}` and `swipeBehavior` give: the value
|
|
208
|
+
* itself, or an object with the behavior merged in.
|
|
209
|
+
* @param {any} j @param {any} value @param {any} behavior
|
|
210
|
+
*/
|
|
211
|
+
function optionsOf(j, value, behavior) {
|
|
212
|
+
if (behavior == null) {
|
|
213
|
+
return value;
|
|
214
|
+
}
|
|
215
|
+
const property = j.objectProperty(j.identifier('swipeBehavior'), behavior);
|
|
216
|
+
const object = unwrap(value);
|
|
217
|
+
object.properties = object.properties.filter(
|
|
218
|
+
(/** @type {any} */ p) =>
|
|
219
|
+
!(
|
|
220
|
+
(p.type === 'ObjectProperty' || p.type === 'Property') &&
|
|
221
|
+
!p.computed &&
|
|
222
|
+
(p.key?.name ?? p.key?.value) === 'swipeBehavior'
|
|
223
|
+
),
|
|
224
|
+
);
|
|
225
|
+
object.properties.push(property);
|
|
226
|
+
return object;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/** A property's own name, or null for a computed key or a spread. */
|
|
230
|
+
function keyOf(/** @type {any} */ property) {
|
|
231
|
+
if (
|
|
232
|
+
(property.type !== 'ObjectProperty' && property.type !== 'Property') ||
|
|
233
|
+
property.computed
|
|
234
|
+
) {
|
|
235
|
+
return null;
|
|
236
|
+
}
|
|
237
|
+
return property.key?.name ?? property.key?.value ?? null;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The entries of an inline swipeActions object, by side. Null when it hides
|
|
242
|
+
* one: a spread, a side that is no array literal, or an entry that is no
|
|
243
|
+
* object literal.
|
|
244
|
+
* @param {any} object
|
|
245
|
+
*/
|
|
246
|
+
function visibleEntries(object) {
|
|
247
|
+
/** @type {Array<[string, any[]]>} */
|
|
248
|
+
const sides = [];
|
|
249
|
+
for (const property of object.properties) {
|
|
250
|
+
const key = keyOf(property);
|
|
251
|
+
if (key == null) {
|
|
252
|
+
return null;
|
|
253
|
+
}
|
|
254
|
+
if (key !== 'leading' && key !== 'trailing') {
|
|
255
|
+
continue;
|
|
256
|
+
}
|
|
257
|
+
const array = unwrap(property.value);
|
|
258
|
+
if (
|
|
259
|
+
array?.type !== 'ArrayExpression' ||
|
|
260
|
+
array.elements.some(
|
|
261
|
+
(/** @type {any} */ e) => unwrap(e)?.type !== 'ObjectExpression',
|
|
262
|
+
)
|
|
263
|
+
) {
|
|
264
|
+
return null;
|
|
265
|
+
}
|
|
266
|
+
sides.push([key, array.elements.map(unwrap)]);
|
|
267
|
+
}
|
|
268
|
+
return sides;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Gives each entry with no `id` one from its side and place: `createSwipe`
|
|
273
|
+
* needs an `id` on every action.
|
|
274
|
+
* @param {any} j @param {Array<[string, any[]]>} sides
|
|
275
|
+
*/
|
|
276
|
+
function entryIds(j, sides) {
|
|
277
|
+
for (const [side, entries] of sides) {
|
|
278
|
+
entries.forEach((entry, index) => {
|
|
279
|
+
if (!entry.properties.some((/** @type {any} */ p) => keyOf(p) === 'id')) {
|
|
280
|
+
entry.properties.unshift(
|
|
281
|
+
j.objectProperty(
|
|
282
|
+
j.identifier('id'),
|
|
283
|
+
j.stringLiteral(`${side}-${index}`),
|
|
284
|
+
),
|
|
285
|
+
);
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file
|
|
293
|
+
* @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api
|
|
294
|
+
* @returns {string | null | undefined}
|
|
295
|
+
*/
|
|
296
|
+
export default function transformer(file, api) {
|
|
297
|
+
const j = api.jscodeshift;
|
|
298
|
+
const root = j(file.source);
|
|
299
|
+
let hasChanges = false;
|
|
300
|
+
/** @type {Array<() => void>} */
|
|
301
|
+
const rewrites = [];
|
|
302
|
+
|
|
303
|
+
const imports = importedComponents(root, j, {
|
|
304
|
+
matchesImport: source => CORE_IMPORT_RE.test(source),
|
|
305
|
+
components: COMPONENTS,
|
|
306
|
+
});
|
|
307
|
+
if (imports.direct.size > 0 || imports.namespaces.size > 0) {
|
|
308
|
+
root.find(j.JSXOpeningElement).forEach((/** @type {any} */ jsxPath) => {
|
|
309
|
+
if (!resolveImportedComponent(jsxPath.node.name, jsxPath, imports)) {
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
const opening = jsxPath.node;
|
|
313
|
+
const attributes = opening.attributes ?? [];
|
|
314
|
+
const named = (/** @type {string} */ name) =>
|
|
315
|
+
attributes.find(
|
|
316
|
+
(/** @type {any} */ a) =>
|
|
317
|
+
a.type === 'JSXAttribute' && a.name?.name === name,
|
|
318
|
+
);
|
|
319
|
+
const actions = named('swipeActions');
|
|
320
|
+
const behavior = named('swipeBehavior');
|
|
321
|
+
const swipe = named('swipe');
|
|
322
|
+
const spread = attributes.find(
|
|
323
|
+
(/** @type {any} */ a) => a.type === 'JSXSpreadAttribute',
|
|
324
|
+
);
|
|
325
|
+
if (swipe != null) {
|
|
326
|
+
// `swipe` wins at run time: the deprecated props do nothing here.
|
|
327
|
+
if (actions != null || behavior != null) {
|
|
328
|
+
rewrites.push(() => {
|
|
329
|
+
opening.attributes = opening.attributes.filter(
|
|
330
|
+
(/** @type {any} */ a) => a !== actions && a !== behavior,
|
|
331
|
+
);
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
if (spread != null) {
|
|
337
|
+
hasChanges =
|
|
338
|
+
addComment(j, actions ?? behavior ?? spread, SPREAD_COMMENT) ||
|
|
339
|
+
hasChanges;
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
if (actions == null) {
|
|
343
|
+
// A lone swipeBehavior does nothing without swipe actions.
|
|
344
|
+
if (behavior != null) {
|
|
345
|
+
rewrites.push(() => {
|
|
346
|
+
opening.attributes = opening.attributes.filter(
|
|
347
|
+
(/** @type {any} */ a) => a !== behavior,
|
|
348
|
+
);
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
const value = attributeValue(actions);
|
|
354
|
+
const valueNode = unwrap(value);
|
|
355
|
+
const sides =
|
|
356
|
+
valueNode?.type === 'ObjectExpression'
|
|
357
|
+
? visibleEntries(valueNode)
|
|
358
|
+
: null;
|
|
359
|
+
if (sides == null) {
|
|
360
|
+
hasChanges = addComment(j, actions, VALUE_COMMENT) || hasChanges;
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
const behaviorValue = behavior == null ? null : attributeValue(behavior);
|
|
364
|
+
const isDefault =
|
|
365
|
+
behaviorValue != null && staticString(behaviorValue) === 'reveal';
|
|
366
|
+
rewrites.push(() => {
|
|
367
|
+
entryIds(j, sides);
|
|
368
|
+
const create = ensureCreateImport(j, root);
|
|
369
|
+
const options = optionsOf(
|
|
370
|
+
j,
|
|
371
|
+
value,
|
|
372
|
+
behaviorValue == null || isDefault
|
|
373
|
+
? null
|
|
374
|
+
: staticString(behaviorValue) != null
|
|
375
|
+
? j.stringLiteral(staticString(behaviorValue))
|
|
376
|
+
: behaviorValue,
|
|
377
|
+
);
|
|
378
|
+
const call = j.callExpression(j.identifier(create), [options]);
|
|
379
|
+
actions.name = j.jsxIdentifier('swipe');
|
|
380
|
+
actions.value = j.jsxExpressionContainer(call);
|
|
381
|
+
opening.attributes = opening.attributes.filter(
|
|
382
|
+
(/** @type {any} */ a) => a !== behavior,
|
|
383
|
+
);
|
|
384
|
+
});
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
for (const rewrite of rewrites) {
|
|
389
|
+
rewrite();
|
|
390
|
+
hasChanges = true;
|
|
391
|
+
}
|
|
392
|
+
if (!hasChanges) return undefined;
|
|
393
|
+
return root.toSource({quote: 'single'});
|
|
394
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"core":{"inputs":{".":"dir:a27d055bb3d67a0699aa239d25809636","package.json":"pkg:a506af749d6f24249e87b12be6952255","src":"dir:b56bba8531df179f2c48b6ea15981c3a","src/AlertDialog":"dir:3cf49348ce8fac8765bffc847fc32f82","src/AlertDialog/AlertDialog.doc.mjs":"29bb91e1c365103c787c917a6bde5562","src/AppShell":"dir:942a5e5cde915ca30947eef1be16ee26","src/AppShell/AppShell.doc.mjs":"65eae099012d0d1e8b6266c0eb0ba662","src/AspectRatio":"dir:4c328443658e180d8edce720fa01a109","src/AspectRatio/AspectRatio.doc.mjs":"38682f538a1e5bf8576cf32e6cf28d79","src/Avatar":"dir:e61ec106a9f3ddc030641db78835ae0c","src/Avatar/Avatar.doc.mjs":"8772ab710a3cdee227270625fe4e4227","src/Avatar/AvatarStatusDot.doc.mjs":"441ca6283b6e4759baa9d39ffc5cf7dd","src/AvatarGroup":"dir:e0244ef3e7486b5a9942237b1cf6fafd","src/AvatarGroup/AvatarGroup.doc.mjs":"1eb9d9f177877ffae4f0c1c08ba335ea","src/AvatarGroup/AvatarGroupOverflow.doc.mjs":"f60cec2c7930f9bef2e15523ea4fe004","src/Badge":"dir:8e925387c93f7172a402284745b839c4","src/Badge/Badge.doc.mjs":"c62c6a8ab396c688dbb47ad80440ebf0","src/Banner":"dir:60ac2c7e87a3880d37ef6c8fb89c4148","src/Banner/Banner.doc.mjs":"e0444b2cca77fe31d4f2dac9eff2d33b","src/Blockquote":"dir:ee008a5127fb19e9ca87bfad5b5e337f","src/Blockquote/Blockquote.doc.mjs":"b81c88eb3719f6349d71697f4814130b","src/BottomSheet":"dir:9cefe2749af83fd33d99b3f20207eb96","src/BottomSheet/BottomSheet.doc.mjs":"a228f349c5ee1fe66b76232da62951c8","src/BottomSheet/BottomSheetSwitcher.doc.mjs":"ab9bc8f9347cea14fb267953481b6eb6","src/Breadcrumbs":"dir:e2cfce0bb76a3be117438e3971ee9f78","src/Breadcrumbs/BreadcrumbItem.doc.mjs":"cbbbf19ddaaf947891c74f9e8807b2a6","src/Breadcrumbs/Breadcrumbs.doc.mjs":"265e9dd0a9281df352faf19b02365c0f","src/Button":"dir:568cb19c3a135b900c3dc65ebc0b85f1","src/Button/Button.doc.mjs":"c8ca4b7fe8747a08e0d008fb60d5c0d2","src/ButtonGroup":"dir:e750ed61311993a84da9fa7fc87d4ad0","src/ButtonGroup/ButtonGroup.doc.mjs":"888a92282256ebd64bbb60852f1a4213","src/Calendar":"dir:582bf7b5fe3f1d5d1c511bf82e6442cf","src/Calendar/Calendar.doc.mjs":"bbd5efb3ca8b05c59a8d895ef6e4a017","src/Calendar/hooks":"dir:117f62683a6ade899330e8e04e00e58a","src/Card":"dir:a67fdf70898d2e41b4fa3b46610fb66b","src/Card/Card.doc.mjs":"96665072fa7afc90b634cd812cef70a4","src/Carousel":"dir:95ef173828e8fd7b0cda6faeb63847d2","src/Carousel/Carousel.doc.mjs":"09aa7f5193218c93f5014317c06cb5b2","src/Center":"dir:da775d2c74a426e8593635ad74991bed","src/Center/Center.doc.mjs":"27417644075bc1a52c912b80631561c2","src/Chat":"dir:f06cf5b4dd9067e86ea8b74af28facc1","src/Chat/Chat.doc.mjs":"1b33214abffd2a9246c25c43647f1fde","src/Chat/ChatComposer.doc.mjs":"9417b045b00aa65bfe18827315898e91","src/Chat/ChatComposerDrawer.doc.mjs":"164a94b429c5823e5e9b84e1135a4189","src/Chat/ChatComposerInput.doc.mjs":"49923a481075f37287dea80d0b54bd27","src/Chat/ChatDictationButton.doc.mjs":"948dbe73cf193cabb295ea357aa1f32b","src/Chat/ChatLayout.doc.mjs":"3b615040073ee1e8a70fa4a369dfe5c1","src/Chat/ChatLayoutScrollButton.doc.mjs":"b5fd5eaca66e3b34d9f73bbbf1e9cec2","src/Chat/ChatMessage.doc.mjs":"12d7d2694f1f2f08073c0f58802aaca2","src/Chat/ChatMessageBubble.doc.mjs":"d1892fcc03363ab7d6de6b1f6a2d0612","src/Chat/ChatMessageList.doc.mjs":"05f997f06d4c9ded9a789563f1a6c09c","src/Chat/ChatMessageMetadata.doc.mjs":"3aac145a6c1d89786946516052735ea5","src/Chat/ChatSendButton.doc.mjs":"3dcf0265101f4bb049dc1b0f5d2b600c","src/Chat/ChatSystemMessage.doc.mjs":"96a4a168c76b5489fd3788cdd7d80ed8","src/Chat/ChatTokenizedText.doc.mjs":"9cdd6de94685a5652f4268f49a096e57","src/Chat/ChatToolCalls.doc.mjs":"b19d346cd14b221d57fbf5bdc09a1095","src/CheckboxInput":"dir:97ff2c04f0ae6a76e3e872e2aa6dedf7","src/CheckboxInput/CheckboxInput.doc.mjs":"65a2357215cc25473c74b41092825eac","src/CheckboxList":"dir:cc9a2f93576111de06a18e8175672cd6","src/CheckboxList/CheckboxList.doc.mjs":"c7fe1048c2d1dc30df33fd9268fb92aa","src/CheckboxList/CheckboxListItem.doc.mjs":"25d26d6e08eea70ad1f9d9a876ed4628","src/Citation":"dir:12aac2463f50fb14d590fa40e17b44f9","src/Citation/Citation.doc.mjs":"9b92133161a181734dd1c1b97e590f0c","src/ClickableCard":"dir:c7b0754afe3c29d8749badfe338f849d","src/ClickableCard/ClickableCard.doc.mjs":"4024a0b5159277e1d5657c9a3b878d8c","src/Code":"dir:bf2d1b4e904d13dc7d3f44c4f8a4e43f","src/Code/Code.doc.mjs":"41ad17d1135448c3b1455d3f1bd4330f","src/CodeBlock":"dir:411df29d5bd006c56d13a5a84baba3e3","src/CodeBlock/CodeBlock.doc.mjs":"5f7e3208ecbe50a1e9e29424e6ec4874","src/CodeBlock/languages":"dir:466a52f577930530fbc07dbbbdebeac2","src/Collapsible":"dir:0b101db06c0e5accb3e733ffa3e06d26","src/Collapsible/Collapsible.doc.mjs":"c65b2bb4916606c77d682994ae533e83","src/Collapsible/CollapsibleGroup.doc.mjs":"d29003b247682363037d149b339f082f","src/CommandPalette":"dir:d324b17a40a02a1330873956288f6f25","src/CommandPalette/CommandPalette.doc.mjs":"d6b2b64775b17dcd08622e9c7405c957","src/CommandPalette/CommandPaletteEmpty.doc.mjs":"76850b086e6cfc704d3b31247e92c4cf","src/CommandPalette/CommandPaletteFooter.doc.mjs":"8d373a76154c80f191a34be5408e8ef9","src/CommandPalette/CommandPaletteGroup.doc.mjs":"189f87ef5caa1a4a4929b627bd46cddc","src/CommandPalette/CommandPaletteInput.doc.mjs":"a48b347b05157c842fd2c7c28f3e208b","src/CommandPalette/CommandPaletteItem.doc.mjs":"4435796b21638556265e244efde46ab2","src/CommandPalette/CommandPaletteList.doc.mjs":"18f21721bbf31225f8ed518df73f5701","src/ComplexSelector":"dir:b8e631813454303314a06c53e24fffb1","src/ComplexSelector/ComplexSelector.doc.mjs":"dd1ea98141596a186bd39395d02e3162","src/ContextMenu":"dir:9b03b225c171073dab75a4895df3bfc8","src/ContextMenu/ContextMenu.doc.mjs":"a39c3b9f7551b23e66dd2859dbe5255d","src/DateInput":"dir:db181b61dbb6396d466d34e3193cc5ef","src/DateInput/DateInput.doc.mjs":"e32a360e6aa7781d0c93ea343ef695a8","src/DateRangeInput":"dir:84015447c380484c921d25594fd3b768","src/DateRangeInput/DateRangeInput.doc.mjs":"e75da05b26c4dfb99de17a02eb7a6be0","src/DateTimeInput":"dir:f77bf06356b6450c28fa2da41949da1a","src/DateTimeInput/DateTimeInput.doc.mjs":"ab1ec32757c1e62f8e3c5f5386d0f5f7","src/Dialog":"dir:6cc3b6abb622ccfe59024b9e4a422876","src/Dialog/Dialog.doc.mjs":"4aa3d1c530289cc0f849379c153783e2","src/Dialog/DialogHeader.doc.mjs":"548bf15ef7e22b9e7e3b0ae17518a3fa","src/Divider":"dir:7890908634f785c6d97ee72ecb0f4493","src/Divider/Divider.doc.mjs":"4a84d7de32aa602fc875fedbb8bd6634","src/Drawer":"dir:34e1b16edbd65360bc5359df41af9431","src/Drawer/Drawer.doc.mjs":"ba2cff3c3827b39eb088c73804d7231b","src/Drawer/DrawerHeader.doc.mjs":"e3fe76e8c807a8f220930077e2622238","src/DropdownMenu":"dir:bb89f1e1ee9297c10af704eef3f2b860","src/DropdownMenu/DropdownMenu.doc.mjs":"01c92c1fdfe83b535a4694ebb60c6b0f","src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs":"5442593988be40d6041b28ea161ef545","src/DropdownMenu/DropdownMenuDivider.doc.mjs":"6b9b04a310a0f290b6915e3f8a73092a","src/DropdownMenu/DropdownMenuGroup.doc.mjs":"21ff48e89fc8d5238b7019c246d2bab4","src/DropdownMenu/DropdownMenuItem.doc.mjs":"7fc8d46ce07d81947fcee64426698ad6","src/DropdownMenu/DropdownMenuRadioGroup.doc.mjs":"8eb7c9344d6186af28e0863c71e7e729","src/DropdownMenu/DropdownMenuRadioItem.doc.mjs":"f05d02dc22dd91e141c4d8359f38c317","src/DropdownMenu/DropdownMenuSubMenu.doc.mjs":"ce191b33515d1f7b52ca4689445ae8f4","src/EmptyState":"dir:f0e40988ffe257f48ced6500092143c9","src/EmptyState/EmptyState.doc.mjs":"70b2a4fdc063f21619bfd205ae99712e","src/Field":"dir:5cdea1e06359502d724626e9bb0810c5","src/Field/Field.doc.mjs":"469f6fcbad534885b297d6ecff4b3733","src/Field/FieldLabel.doc.mjs":"859c207d1bbac76ac4c8c049c402ec1f","src/FieldStatus":"dir:460e331609abc640cc70f5533eae455b","src/FieldStatus/FieldStatus.doc.mjs":"85f1570bfe8d4e7875daea64a87f2ee6","src/FileInput":"dir:5bfab3cf0cf3be71593e93d694a38a75","src/FileInput/FileInput.doc.mjs":"7303a24eb0520c4f4ab936db5dd0e7bb","src/FormLayout":"dir:2d3ebfd15fe13808b094999f40d19f1b","src/FormLayout/FormLayout.doc.mjs":"ef055a8659f6fffb98449d765b0dbd75","src/Grid":"dir:a562d3286ee62d8e585bc67609b355bf","src/Grid/Grid.doc.mjs":"2402f536835fe7ac63d49f3cd7fdfd95","src/Grid/GridSpan.doc.mjs":"86a258912b6c068d045c108b1d218893","src/HStack":"dir:15dec07948593336ba7d20c2d5f3f8e8","src/HStack/HStack.tsx":"6b2e9e8a6631e61f7f7cd20d6a7de343","src/Heading":"dir:b672cad6507e7651776b1e69cefee3b4","src/HoverCard":"dir:ec940c2e73b68c2f445eb49fffaeea45","src/HoverCard/HoverCard.doc.mjs":"109a6d4ca5cf1ce5d09f453fc70e3fcd","src/Icon":"dir:9ead04cce7ae2051220a520446a9ae49","src/Icon/Icon.doc.mjs":"705a38ee0e340816510e86a66461075c","src/IconButton":"dir:dcc2607763d4cb9935470d0c792970e0","src/IconButton/IconButton.doc.mjs":"1d463e512ef29d3b0525ab226446489a","src/Indicator":"dir:ae26e6a60aaa6ddaf7e83d8513114764","src/InfoTip":"dir:d74bbf4a3561ee6154b7a38a9498db28","src/InfoTip/InfoTip.doc.mjs":"24276681a98d1aadba5fe8edf4d0c1c4","src/InputGroup":"dir:e2d0c581df0df74a21b468b96eaa79db","src/InputGroup/InputGroup.doc.mjs":"1cb28949befb362032acd86b342d1cb2","src/InputGroup/InputGroupText.doc.mjs":"571750b69836f8838e4f9ad30705f9f5","src/InteractiveRoleContext":"dir:e3635bf1ecd60e34f9dafcb1a5d887a8","src/Item":"dir:f2d556428c557e08a3a8c16544a1eb40","src/Item/Item.doc.mjs":"aac092a8c31070a5fa07fdea4b734fa0","src/Kbd":"dir:c7d41c23e577c41f4ff81c5729dc110c","src/Kbd/Kbd.doc.mjs":"a254b315341645535cc851caf1fb30fb","src/Layer":"dir:5254132ad3664959d8a929ff3a04afbe","src/Layout":"dir:84c7b16bcab5ca94f467e86b3d2a106c","src/Layout/Layout.doc.mjs":"9369b3b98afb3c317e5a577f038b83e9","src/Layout/LayoutContent.doc.mjs":"a6fcc82abdc44db4d1c7bd6555870c3a","src/Layout/LayoutFooter.doc.mjs":"477273cf53e93d37db63b921de82704d","src/Layout/LayoutHeader.doc.mjs":"4589ae0464d2a8c122a94f08417bad1a","src/Layout/LayoutPanel.doc.mjs":"2f7d7b328be8054b0b8866ff5f6f4d88","src/Lightbox":"dir:3dcd2acb7006f414327b8516a0fb4366","src/Lightbox/Lightbox.doc.mjs":"bfce6309c6e633e3a267ca12fb3e4bf4","src/Link":"dir:811e9a881ee4f3f5d8303e3639344d79","src/Link/Link.doc.mjs":"8a21210604c6af134a7f97e2e062b67e","src/Link/LinkProvider.doc.mjs":"5483b3b891e5c226f25e21bec6810a57","src/List":"dir:a3fcdef2e2ba37af8340a9467363fa64","src/List/List.doc.mjs":"2a3d3ff2b5507bcb7ea2a65d58e96413","src/List/ListItem.doc.mjs":"ad8a634e54c797d37547821ea4ca7650","src/Markdown":"dir:aeafa494a87995d8c34c3aa4c44394f0","src/Markdown/Markdown.doc.mjs":"c1dfb26820f7a3d8f3b55be915307ab0","src/Markdown/parser":"dir:dcdc3e0b3362edb8fec2a51d3fa51f8f","src/Markdown/plugin-renderer":"dir:124b9dd70f5f31f86823e9cb3d3950e9","src/Markdown/plugins":"dir:00846c611ae64460f2d33fe62ca52c93","src/MetadataList":"dir:fc21c9fca2d75d359ed12f779ae20674","src/MetadataList/MetadataList.doc.mjs":"f21a2bb9a3e5ac79794d65e8d9295d77","src/MetadataList/MetadataListItem.doc.mjs":"b2f79041613d5108a28c45d135c945f1","src/MobileNav":"dir:c875181c70855f717ed9e84fa94b33e5","src/MobileNav/MobileNav.doc.mjs":"662f9f5e41504f23653a90de66572ed1","src/MoreMenu":"dir:2b359be8ab7b06efe324efc4e8ba312a","src/MoreMenu/MoreMenu.doc.mjs":"684abfd0827550d0e4660a399ad71151","src/MultiSelector":"dir:92ca61432c472377d596e58c8a0f8436","src/MultiSelector/MultiSelector.doc.mjs":"654c2ab19e19f9417a3d5f3a41562b10","src/NavIcon":"dir:0cfead8a79a9a4ac084aaf5880770c26","src/NavIcon/NavIcon.doc.mjs":"00c63ceebdcf37c8a59be162d0585069","src/NavItem":"dir:162c0523a88be1f61176d668d18702dc","src/NavMenu":"dir:cc240d0d9d79269a49374b1c69ddd69c","src/NumberInput":"dir:afb7447533fb54258aae39cc089d05d8","src/NumberInput/NumberInput.doc.mjs":"9da5cbe72eaaacd821527343ca75477a","src/Outline":"dir:6ad12361692c64af47602d00971c8fd6","src/Outline/Outline.doc.mjs":"3601235c5d81069e066ef2ab34ee54c8","src/OverflowList":"dir:ae97d4dada67ae7722b15d1facd472b8","src/OverflowList/OverflowList.doc.mjs":"a5ee9ef54f326dc0ff2f1c0d96a7a5c3","src/Overlay":"dir:888c5a990521383df28e8d656d261c62","src/Overlay/Overlay.doc.mjs":"48faf7d6af9a522508310973fd478e3a","src/Pagination":"dir:559e1e1a53045c2be6959ae232aa9ba9","src/Pagination/Pagination.doc.mjs":"39db907a37cb40e290053cb806c73f9e","src/Popover":"dir:17b53249ed2ef6490f36baef677dcb95","src/Popover/Popover.doc.mjs":"a00c61e898a4df7b8b79f64a328119e1","src/PowerSearch":"dir:6c7653b7e7001021216762fbc2e3fc2f","src/PowerSearch/PowerSearch.doc.mjs":"9ce737a2c845e4f98ec14ad0b586cef9","src/ProgressBar":"dir:5f3e8b6d32a062d421956e8230195370","src/ProgressBar/ProgressBar.doc.mjs":"79edb094552a107958f08779304962c8","src/RadioList":"dir:7f99ada06b9aaeae1035c54535559110","src/RadioList/RadioList.doc.mjs":"7d3e818727e94a66ba0e27bd1a0d3759","src/RadioList/RadioListItem.doc.mjs":"68a74220f45fe3072a44055c94e13796","src/Resizable":"dir:1f964d52cfc102ab47b7087d384aeb15","src/ScrollableArea":"dir:863f82abf88745d64f95ded52aee103a","src/ScrollableArea/ScrollableArea.doc.mjs":"bc6a10cfd158a36cfda5c7fda4c861b2","src/Section":"dir:0c1740adddb3836d37acc96fd10a7d19","src/Section/Section.doc.mjs":"271e50094d43495d3a184a594d90f2ac","src/SegmentedControl":"dir:30d0b19dbd495d2714924caaaf7ae852","src/SegmentedControl/SegmentedControl.doc.mjs":"27403cd6402b87687d894353ed5e89fd","src/SegmentedControl/SegmentedControlItem.doc.mjs":"8bcf352c4616afa30ddb3689260d39bc","src/SelectableCard":"dir:2d10adf6da28be02d9cd7d0d9f358a6f","src/SelectableCard/SelectableCard.doc.mjs":"a0afa4fcc5492409ed6caa818bc6d0b4","src/Selector":"dir:ea9c67e0cdf93bef795b0189ac945de6","src/Selector/Selector.doc.mjs":"fbcd79c0a25635e76155c336c68fdfe0","src/Selector/SelectorOption.doc.mjs":"18845e8689c89f11885f3a26478d2190","src/SideNav":"dir:e5a1cb01e9b88b0f0404c99817c7dcc8","src/SideNav/SideNav.doc.mjs":"f0ebc2ec4e44cab7e20637942ebf3cfa","src/SideNav/SideNavCollapseButton.doc.mjs":"ef8e0220aec4ceff9abb38f1efd06dfc","src/SideNav/SideNavHeading.doc.mjs":"f9e85f61583611d783e5436886b9a6c2","src/SideNav/SideNavItem.doc.mjs":"61e01e85dbf0e17a05ce70ec517d6b95","src/SideNav/SideNavSection.doc.mjs":"ced37440092cc816052372603db902b4","src/SizeContext":"dir:32f8279c8dac60ebe1565524d93ad783","src/Skeleton":"dir:900f69d5b60a3f23bea13787fb2d4849","src/Skeleton/Skeleton.doc.mjs":"76e6767f1e5650d2cdf6f78b0becf28c","src/Slider":"dir:6563d80a103d7180edfc926e4826f400","src/Slider/Slider.doc.mjs":"3e776295e649f650f908515e3b156ab3","src/SnapPaging":"dir:c13be54f9e39b1c6796334c45d2759a4","src/Spinner":"dir:684ad8386cfcf72d4d62e704dbf218f8","src/Spinner/Spinner.doc.mjs":"9ab824af4a4463eccb21d35f2b30c1be","src/Stack":"dir:dae293893d93520ba2d087950207c763","src/Stack/Stack.doc.mjs":"21959f1525d93ade24ec38f9c038a453","src/StatusDot":"dir:acc55e24d29b327431a8b1163550c003","src/StatusDot/StatusDot.doc.mjs":"24c6740c1662d2d77b41d8eac5d862f8","src/Stepper":"dir:69091340c998cfc447d1b40135087f9a","src/Stepper/Step.doc.mjs":"b7aa7a96c1357c526e88247e41fabf17","src/Stepper/Stepper.doc.mjs":"7280e077248df2c47ff2f5313e27cce1","src/Swipe":"dir:10d2b599679dba310e2839cf27eb5bf1","src/Switch":"dir:44bb15f57985d0e5fcdbbe439f559d09","src/Switch/Switch.doc.mjs":"0c9050d82f28e2df2da4b04be6e91548","src/TabList":"dir:0a975b7c2a169510b72c2508edd53f2a","src/TabList/Tab.doc.mjs":"f256cb042cdc0dfd9f9049b9b83d39b5","src/TabList/TabList.doc.mjs":"a8074268bed606ff90c2e20a7894b2d3","src/TabList/TabMenu.doc.mjs":"09bdc7e7c76d2e68b327f132a6175218","src/Table":"dir:51617a77e3cb823a947ff542716ebbe8","src/Table/Table.doc.mjs":"c0a2fed8e36b9a9e3858888e6d832670","src/Table/TableBody.doc.mjs":"da5aa1641061498cf964940fb3a81c12","src/Table/TableCell.doc.mjs":"0e87604a78fb8a88a9e5da416bd1dd60","src/Table/TableFooter.doc.mjs":"a340c8546140f2f9f6dd61e9f91b667c","src/Table/TableHeader.doc.mjs":"652abfeed436f7f5477e74f09ff83bd7","src/Table/TableHeaderCell.doc.mjs":"930351fcb16952a74b753881aa70cc77","src/Table/TableRow.doc.mjs":"a266cea74744cbda2fe7efb5f70d63de","src/Table/TableSelectionToolbar.doc.mjs":"2f4f569010fb4f4bcde2689795ad29a5","src/Table/plugins":"dir:6281df4fdffb484c9a7910bc7b45c54a","src/Table/plugins/columnResize":"dir:882e9c61a1bc9409c85dd81aee3a49d7","src/Table/plugins/columnSettings":"dir:384a8810b91d8289e7becc5427d097e8","src/Table/plugins/filtering":"dir:acf5b70f1e3179aed7b9fe4acc7fbad3","src/Table/plugins/groupedRows":"dir:d9042974a5856e98a857085668df616c","src/Table/plugins/infiniteScroll":"dir:468dd23b472204bf06365878c057c884","src/Table/plugins/pagination":"dir:2af4392f3817041e8aa8e32c15602a61","src/Table/plugins/rowExpansion":"dir:cb2b196656ecd29e2326b7a36b1e869f","src/Table/plugins/rowIndex":"dir:56dff6c162315f8c45181ef5f456b92c","src/Table/plugins/rowStatus":"dir:e22745ad9322d5fce4364875dc53d62e","src/Table/plugins/selection":"dir:eff9d38fdb87a1ce3f2096c193bd9c4d","src/Table/plugins/sortable":"dir:67dfe3c1c9aaea47158bb5f11167b970","src/Table/plugins/stickyColumns":"dir:260edcfebb03d8d75151bf75f1237c37","src/Table/plugins/tree":"dir:19007fd72c966b723ec2fa222b269d84","src/Table/plugins/virtualization":"dir:24d22b66572c2c1031d6f65c0168ce77","src/Text":"dir:40939322c0cdb6bc21146c163b4df3b7","src/Text/Heading.doc.mjs":"7550391761894bab725c7d6ed3b5bdba","src/Text/Text.doc.mjs":"c2aa89c61a9b2f0db1685dee0f4493be","src/TextArea":"dir:544db7de293228429d6f21516e40fe34","src/TextArea/TextArea.doc.mjs":"ca2dad732d8b15c4a7a729599aa6bb32","src/TextInput":"dir:49fd784981d89764444c04262e172494","src/TextInput/TextInput.doc.mjs":"200601dde65418d48ff29a36954dad48","src/Thumbnail":"dir:5ca525d66efe48d7eff3443f051ccec4","src/Thumbnail/Thumbnail.doc.mjs":"e9d5affc9b7876e8236f5f5c48d38a4b","src/TimeInput":"dir:25f56f363046f0c597f5286f9449e5f3","src/TimeInput/TimeInput.doc.mjs":"f4f02458f39907f6e31b3c526deec8c2","src/Timer":"dir:a4ab1409f35e0fff71cbce411c163df0","src/Timer/Timer.doc.mjs":"28a76089ba5ada99b2775ecda5e02588","src/Timestamp":"dir:a05c6047de68f189ee9e1036ecf32846","src/Timestamp/Timestamp.doc.mjs":"d6687a4afb937fdc8cf8aca9067e0285","src/Toast":"dir:0a67cace4ab1ca618fade2ed6fc66e42","src/Toast/Toast.doc.mjs":"13271b7b542393b412253ab263e3d3cb","src/ToggleButton":"dir:64dc2b204b1e00fe29cd9be0af712112","src/ToggleButton/ToggleButton.doc.mjs":"3f61f96297af247d8dbd2b2763c8d54a","src/ToggleButton/ToggleButtonGroup.doc.mjs":"9255219ea607fe5fc1c570d85a062799","src/Token":"dir:41a82f88fb56ea5b4c6b90c09ccb626b","src/Token/Token.doc.mjs":"bae5d24fd8bf827380d12304c1ef4d96","src/Tokenizer":"dir:4772d922300ef3b7287373e3a572cdeb","src/Tokenizer/Tokenizer.doc.mjs":"8b601dcb24e61a835739c93747d9a8d5","src/Toolbar":"dir:a4adf6390dd65633ebb7ae294135d7ff","src/Toolbar/Toolbar.doc.mjs":"a4a7068e9866999d6fe6d3a5d15ba9e5","src/Tooltip":"dir:2bfa98f6836e06f3e7f72f6db1e9c872","src/Tooltip/Tooltip.doc.mjs":"6bb8a91786d4e243c2ded9efbd6fc438","src/TopNav":"dir:42ce492d5d93945211b4f57054f4424c","src/TopNav/TopNav.doc.mjs":"6bc4e3a84a3c778c4e128572bf362190","src/TopNav/TopNavHeading.doc.mjs":"0cb1848baefb8cb690cca0374de5c3a2","src/TopNav/TopNavItem.doc.mjs":"0c165a8244ebd08d0ee435a78ca61110","src/TopNav/TopNavMegaMenu.doc.mjs":"79cd792e09e2236774c0c3956a9bf472","src/TopNav/TopNavMegaMenuFeaturedCard.doc.mjs":"d9e601b68e4902f2b11dadd45efb6358","src/TopNav/TopNavMegaMenuItem.doc.mjs":"5e9e8176d7ec93ec0e729f05f1ef3ae8","src/TopNav/TopNavMenu.doc.mjs":"6fab5c942a779ff0e246c8f2a2716466","src/TreeList":"dir:f288a516372b546461a6fdcedaf34e7a","src/TreeList/TreeList.doc.mjs":"7e506f201e3c10b8ad54d6a43efe1091","src/Typeahead":"dir:2db2a2c9ad686aa6bc71633349a3e7f8","src/Typeahead/BaseTypeahead.doc.mjs":"44c260d494d68835630c20c87707f5fe","src/Typeahead/Typeahead.doc.mjs":"99aa85f0a64323d0289a330bf6fc8fd2","src/Typeahead/TypeaheadItem.doc.mjs":"c06e4de8d308955b53d21cdc17cdb3da","src/VStack":"dir:9228c4f1dcc552f5fd99652c311e0ed0","src/VStack/VStack.tsx":"9ced0693b8a81822468840a324e81808","src/VisuallyHidden":"dir:58b1b5ff320c3e23fcabcad3a7b9ad69","src/VisuallyHidden/VisuallyHidden.doc.mjs":"9fdb77a73fc1be668aee69f9f5b65e86","src/animator":"dir:8333557f27eae3b4ba02ff0a77fc03a9","src/dragToSnapPoints":"dir:671ad946b478d004cf9edb48f71f6128","src/gestures":"dir:ceae616c7862854ca30af016bad4a2ab","src/hooks":"dir:41a9953878e63f506f7d5b11b2957cd2","src/i18n":"dir:a026321398909fe9af6cf0319658b974","src/i18n/InternationalizationProvider.doc.mjs":"a64ddf063883ae0f76a79bf5a5e35a21","src/i18n/generated-english":"dir:a0b450dd5548f4156f29ff352ff0b496","src/i18n/generated-english/AlertDialog":"dir:febf8ff13632867c236e798f5194fca8","src/i18n/generated-english/AppShell":"dir:e10725b866a3c8e7f7a82423a1b43d7c","src/i18n/generated-english/Avatar":"dir:633333e80538913632d2811aa3296551","src/i18n/generated-english/AvatarGroup":"dir:13c369db4d99892e39ef4a1eb85aeb49","src/i18n/generated-english/Banner":"dir:e5eb157cc8c9861d6bdc3c7f36d2d5ab","src/i18n/generated-english/Breadcrumbs":"dir:0bed97aabbe96ac01a76c3fd44a89eb8","src/i18n/generated-english/Button":"dir:c34073813db92320582e218bd69c572b","src/i18n/generated-english/Calendar":"dir:3d3d61412c8c8cd729314a38d64b79cd","src/i18n/generated-english/Carousel":"dir:e27fedb4e5b3d5abd220d963857b0f98","src/i18n/generated-english/Chat":"dir:abb0bb28354cbdc16662b0f6379c878c","src/i18n/generated-english/CheckboxInput":"dir:1715903ef891679929fb12bea2c77de1","src/i18n/generated-english/CheckboxList":"dir:1c4d6db163bd49a2ffc99bd055bc221d","src/i18n/generated-english/Citation":"dir:75df4e9388f5d4325ce8082b96b0f139","src/i18n/generated-english/CodeBlock":"dir:6d781b97cf4a0d34729d58e149c0e6cb","src/i18n/generated-english/CommandPalette":"dir:c40c516585dbf9dc66272810b77584e5","src/i18n/generated-english/ComplexSelector":"dir:0f7defd7786f1ac918b6ec7b55fbc2fc","src/i18n/generated-english/ContextMenu":"dir:7ca67b06d43d4b4273bcfac0360a37e1","src/i18n/generated-english/DateInput":"dir:1ae2134bc1db198fa5930961b81e5170","src/i18n/generated-english/DateRangeInput":"dir:1006c25b0cbc1f3dceac9156f53dce98","src/i18n/generated-english/DateTimeInput":"dir:e2a715b2efdb7edf013d36431cba6634","src/i18n/generated-english/Dialog":"dir:e1e90fa3b775d3860de32f4333454310","src/i18n/generated-english/Drawer":"dir:115ad546bf2358cd8137416b59475b7b","src/i18n/generated-english/DropdownMenu":"dir:c283d6a0a5afc8044060d7861e2f5e97","src/i18n/generated-english/Field":"dir:696277eae81f04ee9501beb7ee854317","src/i18n/generated-english/FileInput":"dir:46a9cdd9420ca364afe268519c15de4b","src/i18n/generated-english/InfoTip":"dir:47d9be1d336a9301cc475eb7955947ca","src/i18n/generated-english/Kbd":"dir:d93407740960bb171f4d00bc03e6c9c1","src/i18n/generated-english/Lightbox":"dir:9ca3a9adb8dc4347ce5fc03510e236ac","src/i18n/generated-english/Link":"dir:c43a9bb400efda2d19824147e016671d","src/i18n/generated-english/List":"dir:c6af6f87f0dccbbd983c02aaa6915951","src/i18n/generated-english/Markdown":"dir:d1dc3cf5fda7621bcb18cf8a7717e806","src/i18n/generated-english/Markdown/plugins":"dir:5450297a7243591a40401c57255a74e3","src/i18n/generated-english/MetadataList":"dir:c0ea1bbb43cbb1351b171298be6cf280","src/i18n/generated-english/MobileNav":"dir:22579fe2a82ae11f8631cd102eb70fd3","src/i18n/generated-english/MoreMenu":"dir:109193e3be60049586a288920e7fdce4","src/i18n/generated-english/MultiSelector":"dir:d0f3708c6cf5406a569909475005f3e7","src/i18n/generated-english/NumberInput":"dir:c36683eba3ddf0e9c95e0a134c4ead2d","src/i18n/generated-english/Outline":"dir:f82f97cd6eb7ee35d48628bb4010d8f9","src/i18n/generated-english/Pagination":"dir:ae5ada33d28cdbdf6f718360ac73e7c5","src/i18n/generated-english/Popover":"dir:e2480bbaf739f488673d0d9a1d238256","src/i18n/generated-english/PowerSearch":"dir:d1525d140e60756888a9bb524b47c38f","src/i18n/generated-english/Resizable":"dir:770f9c085f936b5b7ea60f32703e66b9","src/i18n/generated-english/Selector":"dir:036215245dade253bb69ac0050686e3c","src/i18n/generated-english/SideNav":"dir:86f63df2065bfe1b5bb8472c6ccc8d81","src/i18n/generated-english/Slider":"dir:23f3e54d65b212ada958e38d4bc4617e","src/i18n/generated-english/Spinner":"dir:81975a7b1683c8767e28c6b231c24bab","src/i18n/generated-english/Stepper":"dir:4a6d4aeb48d113206bf397ba46c97a21","src/i18n/generated-english/Switch":"dir:99f224109e2a6297d745edf5e1d17de9","src/i18n/generated-english/TabList":"dir:cabc51614888aacbd7d4cb9d96c41504","src/i18n/generated-english/Table":"dir:9c7a0e399171dd11a570e7636d863dfd","src/i18n/generated-english/Table/plugins":"dir:78846d635b213d3976209aa7cd5a411b","src/i18n/generated-english/Table/plugins/columnResize":"dir:89a7c7989c73dfe73ecb5ae2514afac5","src/i18n/generated-english/Table/plugins/filtering":"dir:ff4c76851e370a6ecb3688068149166a","src/i18n/generated-english/Table/plugins/groupedRows":"dir:6d7067079b8c829af44bd0ccc95d7e8c","src/i18n/generated-english/Table/plugins/infiniteScroll":"dir:7d9940ffeba285f5a11fe42750ef525c","src/i18n/generated-english/Table/plugins/pagination":"dir:41369987385e7a21812b47a8181590dc","src/i18n/generated-english/Table/plugins/rowExpansion":"dir:fef50f3ae2ff63d2c3ad3cd3815e0c9e","src/i18n/generated-english/Table/plugins/rowStatus":"dir:91d504cfe9298a22503917962728c415","src/i18n/generated-english/Table/plugins/selection":"dir:c8e97b6b60788c5fe62554a4e67b01b3","src/i18n/generated-english/Table/plugins/sortable":"dir:374c9c8345bcfc9d341d73f82bf8bc18","src/i18n/generated-english/Table/plugins/tree":"dir:27f47039a25eeaae30f89c3dcb128379","src/i18n/generated-english/TextArea":"dir:413581101348d99bb140099f67de4550","src/i18n/generated-english/TextInput":"dir:eb6491f46e41c315cf834e0eb6ac3052","src/i18n/generated-english/Thumbnail":"dir:95e5f7224bc07390327a79d021cb5c9a","src/i18n/generated-english/TimeInput":"dir:10c79b4aa1946ce36bf51f2946a81972","src/i18n/generated-english/Timestamp":"dir:e654ae84aa57cfa5db24d738a0bbf396","src/i18n/generated-english/Toast":"dir:67f2465d6965de676541f8facecc7881","src/i18n/generated-english/Token":"dir:eaa690098cc130f169416953013deccd","src/i18n/generated-english/Tokenizer":"dir:e0723b520b4a6777eac39fd4f740cd29","src/i18n/generated-english/TopNav":"dir:1ac078211121f75019160a6f58a430e5","src/i18n/generated-english/TreeList":"dir:b4631d7993872311d08617a746133792","src/i18n/generated-english/Typeahead":"dir:870406a7567c510962d18cc954efd5a9","src/i18n/generated-english/hooks":"dir:e03cd43599a3bf3c70a5ef61a81e7d58","src/i18n/generated-locales":"dir:bbdcb5e44b6c5860e86ea1bb45592438","src/internal":"dir:8a04e3ff580718b8a71fa5d13ecf1cc4","src/keyboard":"dir:71d33b1408b77b860805870906202fdd","src/motion":"dir:820fe3582177128e56a05fbf205ffb86","src/motion/android":"dir:ae8ad0099bd90656bb5b2dcb6637ac5b","src/motion/uikit":"dir:6e203af43665af970df1d3b3405dfe2f","src/privateAttributes":"dir:658539969d3870238532f56f3d281d36","src/reorderable":"dir:5b213f840966d0881e9c458102b3020a","src/theme":"dir:40237e926d287d0831a0062a8ebbd437","src/theme/MediaTheme.doc.mjs":"0bccfb8ce2ad622d6de2c7372c508192","src/theme/Theme.doc.mjs":"3c8bd15f018a5aaebe85e03574416d69","src/theme/domainTokens":"dir:aa5124c00c043755d10f8ed5b227a27c","src/theme/syntax":"dir:dc683aaef72272ce5968220f73bacdf5","src/utils":"dir:91c6ca6c5a70dcb5e322d719a3c0242b","src/virtualization":"dir:75fa151c61c9256e47d9735449166348"},"groups":{"AppShell":["AppShell"],"AspectRatio":["AspectRatio"],"Avatar":["Avatar","AvatarGroup","AvatarGroupOverflow","AvatarStatusDot"],"Badge":["Badge"],"Banner":["Banner"],"Blockquote":["Blockquote"],"BottomSheet":["BottomSheet","BottomSheetSwitcher"],"Breadcrumbs":["BreadcrumbItem","Breadcrumbs"],"Button":["Button","ButtonGroup","IconButton","ToggleButton","ToggleButtonGroup"],"Calendar":["Calendar"],"Card":["Card","ClickableCard","SelectableCard"],"Carousel":["Carousel"],"Chat":["ChatComposer","ChatComposerDrawer","ChatComposerInput","ChatDictationButton","ChatLayout","ChatLayoutScrollButton","ChatMessage","ChatMessageBubble","ChatMessageList","ChatMessageMetadata","ChatSendButton","ChatSystemMessage","ChatTokenizedText","ChatToolCalls"],"Checkbox":["CheckboxInput","CheckboxList","CheckboxListItem"],"Citation":["Citation"],"Code":["Code"],"CodeBlock":["CodeBlock"],"Collapsible":["Collapsible","CollapsibleGroup"],"CommandPalette":["CommandPalette","CommandPaletteEmpty","CommandPaletteFooter","CommandPaletteGroup","CommandPaletteInput","CommandPaletteItem","CommandPaletteList"],"ContextMenu":["ContextMenu"],"DateInput":["DateInput","DateRangeInput","DateTimeInput"],"Dialog":["AlertDialog","Dialog","DialogHeader"],"Divider":["Divider"],"Drawer":["Drawer","DrawerHeader"],"DropdownMenu":["DropdownMenu","DropdownMenuCheckboxItem","DropdownMenuDivider","DropdownMenuGroup","DropdownMenuItem","DropdownMenuRadioGroup","DropdownMenuRadioItem","DropdownMenuSubMenu"],"EmptyState":["EmptyState"],"Field":["Field","FieldLabel","FieldStatus","InputGroup","InputGroupText"],"FileInput":["FileInput"],"Heading":["Heading"],"HoverCard":["HoverCard"],"Icon":["Icon"],"InfoTip":["InfoTip"],"Item":["Item"],"Kbd":["Kbd"],"Layout":["Center","FormLayout","Grid","GridSpan","HStack","Layout","LayoutContent","LayoutFooter","LayoutHeader","LayoutPanel","Section","Stack","VStack"],"Lightbox":["Lightbox"],"Link":["Link"],"List":["List","ListItem"],"Markdown":["Markdown"],"MetadataList":["MetadataList","MetadataListItem"],"MoreMenu":["MoreMenu"],"Navigation":["MobileNav","NavIcon","SideNav","SideNavCollapseButton","SideNavHeading","SideNavItem","SideNavSection","TopNav","TopNavHeading","TopNavItem","TopNavMegaMenu","TopNavMegaMenuFeaturedCard","TopNavMegaMenuItem","TopNavMenu"],"NumberInput":["NumberInput"],"Outline":["Outline"],"OverflowList":["OverflowList"],"Overlay":["Overlay"],"Pagination":["Pagination"],"Popover":["Popover"],"PowerSearch":["PowerSearch"],"ProgressBar":["ProgressBar"],"Radio":["RadioList","RadioListItem"],"ScrollableArea":["ScrollableArea"],"SegmentedControl":["SegmentedControl","SegmentedControlItem"],"Selector":["ComplexSelector","MultiSelector","Selector","SelectorOption"],"Skeleton":["Skeleton"],"Slider":["Slider"],"Spinner":["Spinner"],"StatusDot":["StatusDot"],"Stepper":["Step","Stepper"],"Switch":["Switch"],"Table":["Table","TableBody","TableCell","TableFooter","TableHeader","TableHeaderCell","TableRow","TableSelectionToolbar"],"Tabs":["Tab","TabList","TabMenu"],"Text":["Text"],"TextArea":["TextArea"],"TextInput":["TextInput"],"Thumbnail":["Thumbnail"],"TimeInput":["TimeInput"],"Timer":["Timer"],"Timestamp":["Timestamp"],"Toast":["Toast"],"Token":["Token"],"Tokenizer":["Tokenizer"],"Toolbar":["Toolbar"],"Tooltip":["Tooltip"],"TreeList":["TreeList"],"Typeahead":["BaseTypeahead","Typeahead","TypeaheadItem"],"Utilities":["InternationalizationProvider","LinkProvider","MediaTheme","Theme"],"VisuallyHidden":["VisuallyHidden"]},"imports":{"AppShell":"@astryxdesign/core/AppShell","AspectRatio":"@astryxdesign/core/AspectRatio","Avatar":"@astryxdesign/core/Avatar","AvatarGroup":"@astryxdesign/core/AvatarGroup","AvatarGroupOverflow":"@astryxdesign/core/AvatarGroup","AvatarStatusDot":"@astryxdesign/core/Avatar","Badge":"@astryxdesign/core/Badge","Banner":"@astryxdesign/core/Banner","Blockquote":"@astryxdesign/core/Blockquote","BottomSheet":"@astryxdesign/core/BottomSheet","BottomSheetSwitcher":"@astryxdesign/core/BottomSheet","BreadcrumbItem":"@astryxdesign/core/Breadcrumbs","Breadcrumbs":"@astryxdesign/core/Breadcrumbs","Button":"@astryxdesign/core/Button","ButtonGroup":"@astryxdesign/core/ButtonGroup","IconButton":"@astryxdesign/core/IconButton","ToggleButton":"@astryxdesign/core/ToggleButton","ToggleButtonGroup":"@astryxdesign/core/ToggleButton","Calendar":"@astryxdesign/core/Calendar","Card":"@astryxdesign/core/Card","ClickableCard":"@astryxdesign/core/ClickableCard","SelectableCard":"@astryxdesign/core/SelectableCard","Carousel":"@astryxdesign/core/Carousel","ChatComposer":"@astryxdesign/core/Chat","ChatComposerDrawer":"@astryxdesign/core/Chat","ChatComposerInput":"@astryxdesign/core/Chat","ChatDictationButton":"@astryxdesign/core/Chat","ChatLayout":"@astryxdesign/core/Chat","ChatLayoutScrollButton":"@astryxdesign/core/Chat","ChatMessage":"@astryxdesign/core/Chat","ChatMessageBubble":"@astryxdesign/core/Chat","ChatMessageList":"@astryxdesign/core/Chat","ChatMessageMetadata":"@astryxdesign/core/Chat","ChatSendButton":"@astryxdesign/core/Chat","ChatSystemMessage":"@astryxdesign/core/Chat","ChatTokenizedText":"@astryxdesign/core/Chat","ChatToolCalls":"@astryxdesign/core/Chat","CheckboxInput":"@astryxdesign/core/CheckboxInput","CheckboxList":"@astryxdesign/core/CheckboxList","CheckboxListItem":"@astryxdesign/core/CheckboxList","Citation":"@astryxdesign/core/Citation","Code":"@astryxdesign/core/Code","CodeBlock":"@astryxdesign/core/CodeBlock","Collapsible":"@astryxdesign/core/Collapsible","CollapsibleGroup":"@astryxdesign/core/Collapsible","CommandPalette":"@astryxdesign/core/CommandPalette","CommandPaletteEmpty":"@astryxdesign/core/CommandPalette","CommandPaletteFooter":"@astryxdesign/core/CommandPalette","CommandPaletteGroup":"@astryxdesign/core/CommandPalette","CommandPaletteInput":"@astryxdesign/core/CommandPalette","CommandPaletteItem":"@astryxdesign/core/CommandPalette","CommandPaletteList":"@astryxdesign/core/CommandPalette","ContextMenu":"@astryxdesign/core/ContextMenu","DateInput":"@astryxdesign/core/DateInput","DateRangeInput":"@astryxdesign/core/DateRangeInput","DateTimeInput":"@astryxdesign/core/DateTimeInput","AlertDialog":"@astryxdesign/core/AlertDialog","Dialog":"@astryxdesign/core/Dialog","DialogHeader":"@astryxdesign/core/Dialog","Divider":"@astryxdesign/core/Divider","Drawer":"@astryxdesign/core/Drawer","DrawerHeader":"@astryxdesign/core/Drawer","DropdownMenu":"@astryxdesign/core/DropdownMenu","DropdownMenuCheckboxItem":"@astryxdesign/core/DropdownMenu","DropdownMenuDivider":"@astryxdesign/core/DropdownMenu","DropdownMenuGroup":"@astryxdesign/core/DropdownMenu","DropdownMenuItem":"@astryxdesign/core/DropdownMenu","DropdownMenuRadioGroup":"@astryxdesign/core/DropdownMenu","DropdownMenuRadioItem":"@astryxdesign/core/DropdownMenu","DropdownMenuSubMenu":"@astryxdesign/core/DropdownMenu","EmptyState":"@astryxdesign/core/EmptyState","Field":"@astryxdesign/core/Field","FieldLabel":"@astryxdesign/core/Field","FieldStatus":"@astryxdesign/core/FieldStatus","InputGroup":"@astryxdesign/core/InputGroup","InputGroupText":"@astryxdesign/core/InputGroup","FileInput":"@astryxdesign/core/FileInput","Heading":"@astryxdesign/core/Heading","HoverCard":"@astryxdesign/core/HoverCard","Icon":"@astryxdesign/core/Icon","InfoTip":"@astryxdesign/core/InfoTip","Item":"@astryxdesign/core/Item","Kbd":"@astryxdesign/core/Kbd","Center":"@astryxdesign/core/Center","FormLayout":"@astryxdesign/core/FormLayout","Grid":"@astryxdesign/core/Grid","GridSpan":"@astryxdesign/core/Grid","HStack":"@astryxdesign/core/HStack","Layout":"@astryxdesign/core/Layout","LayoutContent":"@astryxdesign/core/Layout","LayoutFooter":"@astryxdesign/core/Layout","LayoutHeader":"@astryxdesign/core/Layout","LayoutPanel":"@astryxdesign/core/Layout","Section":"@astryxdesign/core/Section","Stack":"@astryxdesign/core/Stack","VStack":"@astryxdesign/core/VStack","Lightbox":"@astryxdesign/core/Lightbox","Link":"@astryxdesign/core/Link","List":"@astryxdesign/core/List","ListItem":"@astryxdesign/core/List","Markdown":"@astryxdesign/core/Markdown","MetadataList":"@astryxdesign/core/MetadataList","MetadataListItem":"@astryxdesign/core/MetadataList","MoreMenu":"@astryxdesign/core/MoreMenu","MobileNav":"@astryxdesign/core/MobileNav","NavIcon":"@astryxdesign/core/NavIcon","SideNav":"@astryxdesign/core/SideNav","SideNavCollapseButton":"@astryxdesign/core/SideNav","SideNavHeading":"@astryxdesign/core/SideNav","SideNavItem":"@astryxdesign/core/SideNav","SideNavSection":"@astryxdesign/core/SideNav","TopNav":"@astryxdesign/core/TopNav","TopNavHeading":"@astryxdesign/core/TopNav","TopNavItem":"@astryxdesign/core/TopNav","TopNavMegaMenu":"@astryxdesign/core/TopNav","TopNavMegaMenuFeaturedCard":"@astryxdesign/core/TopNav","TopNavMegaMenuItem":"@astryxdesign/core/TopNav","TopNavMenu":"@astryxdesign/core/TopNav","NumberInput":"@astryxdesign/core/NumberInput","Outline":"@astryxdesign/core/Outline","OverflowList":"@astryxdesign/core/OverflowList","Overlay":"@astryxdesign/core/Overlay","Pagination":"@astryxdesign/core/Pagination","Popover":"@astryxdesign/core/Popover","PowerSearch":"@astryxdesign/core/PowerSearch","ProgressBar":"@astryxdesign/core/ProgressBar","RadioList":"@astryxdesign/core/RadioList","RadioListItem":"@astryxdesign/core/RadioList","ScrollableArea":"@astryxdesign/core/ScrollableArea","SegmentedControl":"@astryxdesign/core/SegmentedControl","SegmentedControlItem":"@astryxdesign/core/SegmentedControl","ComplexSelector":"@astryxdesign/core/ComplexSelector","MultiSelector":"@astryxdesign/core/MultiSelector","Selector":"@astryxdesign/core/Selector","SelectorOption":"@astryxdesign/core/Selector","Skeleton":"@astryxdesign/core/Skeleton","Slider":"@astryxdesign/core/Slider","Spinner":"@astryxdesign/core/Spinner","StatusDot":"@astryxdesign/core/StatusDot","Step":"@astryxdesign/core/Stepper","Stepper":"@astryxdesign/core/Stepper","Switch":"@astryxdesign/core/Switch","Table":"@astryxdesign/core/Table","TableBody":"@astryxdesign/core/Table","TableCell":"@astryxdesign/core/Table","TableFooter":"@astryxdesign/core/Table","TableHeader":"@astryxdesign/core/Table","TableHeaderCell":"@astryxdesign/core/Table","TableRow":"@astryxdesign/core/Table","TableSelectionToolbar":"@astryxdesign/core/Table","Tab":"@astryxdesign/core/TabList","TabList":"@astryxdesign/core/TabList","TabMenu":"@astryxdesign/core/TabList","Text":"@astryxdesign/core/Text","TextArea":"@astryxdesign/core/TextArea","TextInput":"@astryxdesign/core/TextInput","Thumbnail":"@astryxdesign/core/Thumbnail","TimeInput":"@astryxdesign/core/TimeInput","Timer":"@astryxdesign/core/Timer","Timestamp":"@astryxdesign/core/Timestamp","Toast":"@astryxdesign/core/Toast","Token":"@astryxdesign/core/Token","Tokenizer":"@astryxdesign/core/Tokenizer","Toolbar":"@astryxdesign/core/Toolbar","Tooltip":"@astryxdesign/core/Tooltip","TreeList":"@astryxdesign/core/TreeList","BaseTypeahead":"@astryxdesign/core/Typeahead","Typeahead":"@astryxdesign/core/Typeahead","TypeaheadItem":"@astryxdesign/core/Typeahead","InternationalizationProvider":"@astryxdesign/core/i18n","LinkProvider":"@astryxdesign/core/Link","MediaTheme":"@astryxdesign/core/theme","Theme":"@astryxdesign/core/theme","VisuallyHidden":"@astryxdesign/core/VisuallyHidden"}}}
|
|
@@ -46,6 +46,7 @@ export const docs = {
|
|
|
46
46
|
['motion', 'Every --duration-* token, --ease-entrance and --ease-move (tempo also times the touch springs)', 'tempo? (0.75–1.5), character? (crisp|standard|expressive); and/or a duration scale: fast (ms), medium (ms), ratio, slow?, easing?. The scale wins over tempo for the durations it sets, and explicit tokens win over both. Fixed whatever the knobs say: drags and momentum, rubber band, keyboard, press onset/cancel/flash, hover intent, gesture thresholds, Spinner/Skeleton loops, the 200 ms Reduce Motion cap. See {@link generic:motion}.'],
|
|
47
47
|
]},
|
|
48
48
|
{type: 'prose', text: 'For dark mode tuples in token values, see the Dark mode section of {@link generic:use-a-theme}.'},
|
|
49
|
+
{type: 'prose', text: "A theme with one color mode exports `colorModes` beside it: `export const colorModes = ['light'];` (or `['dark']`). `theme build` copies the export into the built module, and `theme add` reads it so the app wires the theme in that mode. A theme with both modes exports none. Any other value is ignored without a warning, and a `--family` build never writes the export."},
|
|
49
50
|
],
|
|
50
51
|
},
|
|
51
52
|
{
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/** @type {import('@astryxdesign/cli/authoring').ReferenceTranslationDoc} */
|
|
4
4
|
|
|
5
5
|
export const docsDense = {
|
|
6
|
-
description: 'make/change a theme (experimental theme editor): astryx experimental theme editor new <name> --like neutral; editor set|how; theme add <name>; after each change look: experimental theme editor show <name> --png (pictures
|
|
6
|
+
description: 'make/change a theme (experimental theme editor): astryx experimental theme editor new <name> --like neutral; editor set|how; theme add <name>; after each change look: experimental theme editor show <name> --png (takes pictures of real components); not done until you have looked. use + create themes: see use-a-theme and author-a-theme.',
|
|
7
7
|
sections: [
|
|
8
8
|
{
|
|
9
9
|
section: 'Wrap your app in a theme',
|
|
@@ -33,7 +33,7 @@ export const docsDense = {
|
|
|
33
33
|
section: 'Dark mode',
|
|
34
34
|
title: 'Dark mode',
|
|
35
35
|
content: [
|
|
36
|
-
{type: 'prose', text: "[light, dark] tuples, mode='system'. {@link generic:use-a-theme} for full guide."},
|
|
36
|
+
{type: 'prose', text: "[light, dark] tuples, mode='system'. A one-mode theme exports `colorModes`; wire `mode={themeModes[defaultThemeSlug] ?? 'system'}`. {@link generic:use-a-theme} for full guide."},
|
|
37
37
|
],
|
|
38
38
|
},
|
|
39
39
|
{
|
|
@@ -8,7 +8,7 @@ export const docs = {
|
|
|
8
8
|
category: 'guide',
|
|
9
9
|
keywords: ['theme', 'theming', 'theme system', 'dark mode', 'defineTheme', 'provider'],
|
|
10
10
|
description:
|
|
11
|
-
'To create or change a theme, use the experimental theme editor: `astryx experimental theme editor new <name> --like neutral`, then `editor set` / `editor how "<what you want>"`, wire it with `astryx theme add <name>`, and after each change look at it with `astryx experimental theme editor show <name> --png` (pictures of real components
|
|
11
|
+
'To create or change a theme, use the experimental theme editor: `astryx experimental theme editor new <name> --like neutral`, then `editor set` / `editor how "<what you want>"`, wire it with `astryx theme add <name>`, and after each change look at it with `astryx experimental theme editor show <name> --png` (takes pictures of real components): a theme change is not done until you have looked. How to use and create themes: see Use a theme for applying themes, and Author a theme for creating and customizing them.',
|
|
12
12
|
|
|
13
13
|
sections: [
|
|
14
14
|
{
|
|
@@ -154,7 +154,7 @@ fix: Remove \`summary\`: SingleComponentDoc has no field \`summary\`.`,
|
|
|
154
154
|
{
|
|
155
155
|
type: 'code',
|
|
156
156
|
lang: 'text',
|
|
157
|
-
code: '
|
|
157
|
+
code: '[warn] docs-progressive-disclosure - Documentation navigation and size - acme/deploying build-before-you-ship: 46 KB,\n over the 32 KB one read may return',
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
type: 'prose',
|
|
@@ -32,7 +32,7 @@ export const docs = {
|
|
|
32
32
|
'`{@command doctor integration validate}`',
|
|
33
33
|
'The manifest loads, each root holds contributions the CLI can read, and each doc matches its authoring type. Notes list a malformed `cliCommand` (`invalid_cli_command`) and, for each topic, a command written with a package runner (`runner_command`), bare (`plain_command`) or for one package manager (`package_manager_command`), and a token that does not parse (`doc_token`; see {@link generic:doc-syntax}). Two notes, which fail nothing under any flag, say what a catalog needs to list the package: no logo (`package_without_logo`) and no example block (`package_without_example`; see the section below). Notes fail nothing by default; `integration check --strict --next` fails on the ones marked `next`, and the next minor release counts them',
|
|
34
34
|
'A declared root is missing (`missing_root`), a contribution does not load (`invalid_doc`, `invalid_component`, `invalid_theme`), or two templates in the package replace one Core id (`ambiguous_template_replacement`)',
|
|
35
|
-
"The manifest has a key this CLI does not know (`unknown_manifest_key`), or a doc field does not match the doc's authoring type: a field the type does not have, a missing required field, or a value outside the field's type. It also warns on what no reader can serve: a prop listed twice (`duplicate_prop`), a `propDescriptions` key that names no documented prop (`unknown_translated_prop`), a section with no content (`empty_section`), two sections of a topic with one key (`duplicate_section_key`), or a `.doc.zh.mjs` or `.doc.dense.mjs` overlay beside no topic file (`orphan_doc_overlay`). Since 0.7.3 it also lists, from source and without failing, what the package tells apps to import that they cannot: a component's import (the doc's `import`, or the one the CLI derives) or a template's public import whose subpath package.json `exports` does not declare (`component_import_not_exported`, `template_import_not_exported`) or that names another package (`component_import_other_package`); an example that imports an undeclared subpath (`example_import_not_exported`); a template that imports a path outside the templates root (`template_import_outside_root`) or a path its package or Core does not export (`template_private_import`). It lists the same way a component's import whose module does not export the component (`component_import_missing_name`), an example or a template that imports a name its package does not export (`example_import_missing_name`, `template_import_missing_name`), and a template source with no default export (`template_no_default_export`). Each is a note, printed with its fix, that fails `--strict` from the next minor; an import it cannot judge, such as an `exports` target not built yet or a deep path into a `dist/` not built yet, is listed under `publicImports` as not checked
|
|
35
|
+
"The manifest has a key this CLI does not know (`unknown_manifest_key`), or a doc field does not match the doc's authoring type: a field the type does not have, a missing required field, or a value outside the field's type. It also warns on what no reader can serve: a prop listed twice (`duplicate_prop`), a `propDescriptions` key that names no documented prop (`unknown_translated_prop`), a section with no content (`empty_section`), two sections of a topic with one key (`duplicate_section_key`), or a `.doc.zh.mjs` or `.doc.dense.mjs` overlay beside no topic file (`orphan_doc_overlay`). Since 0.7.3 it also lists, from source and without failing, what the package tells apps to import that they cannot: a component's import (the doc's `import`, or the one the CLI derives) or a template's public import whose subpath package.json `exports` does not declare (`component_import_not_exported`, `template_import_not_exported`) or that names another package (`component_import_other_package`); an example that imports an undeclared subpath (`example_import_not_exported`); a template that imports a path outside the templates root (`template_import_outside_root`) or a path its package or Core does not export (`template_private_import`). It lists the same way a component's import whose module does not export the component (`component_import_missing_name`), an example or a template that imports a name its package does not export (`example_import_missing_name`, `template_import_missing_name`), and a template source with no default export (`template_no_default_export`). It lists the same way each component example that is not `kind: 'setup'` but cannot run on its own, as a live preview runs it: code that does not compile (`example_does_not_compile`), renders nothing (`example_renders_nothing`), uses a name it never defines or imports (`example_undefined_name`), imports or renders code that runs only on a server, or reads `process.env` (`example_server_only`), or imports a relative path or a package the package does not declare (`example_import_unresolvable`). Each is a note, printed with its fix, that fails `--strict` from the next minor; an import it cannot judge, such as an `exports` target not built yet or a deep path into a `dist/` not built yet, is listed under `publicImports` as not checked, and an example it cannot judge, such as one whose names it cannot judge without Core or React installed, under `exampleCode`. It checks docs with your installed `typescript`, or, where that is missing or has no JavaScript compiler API (TypeScript 7), with an installed `@typescript/typescript6`; without either, it prints `[skip] Docs not type-checked`. With no `astryx.integration.mjs` it prints a hint and exits 0",
|
|
36
36
|
],
|
|
37
37
|
[
|
|
38
38
|
'`{@command doctor integration components}`',
|
|
@@ -99,9 +99,8 @@ export default {
|
|
|
99
99
|
{
|
|
100
100
|
type: 'code',
|
|
101
101
|
lang: 'text',
|
|
102
|
-
code: `
|
|
103
|
-
|
|
104
|
-
message: Loaded integrations declare different CLI commands: @acme/astryx-widgets (\`acme astryx\`), @other/kit (\`other astryx\`). Neither is used, so printed commands start with \`pnpm exec astryx\`.`,
|
|
102
|
+
code: `[warn] cli-command - CLI command - Loaded integrations declare different CLI commands: @acme/astryx-widgets (\`acme
|
|
103
|
+
astryx\`), @other/kit (\`other astryx\`). Neither is used, so printed commands start with \`pnpm exec astryx\`.`,
|
|
105
104
|
},
|
|
106
105
|
{
|
|
107
106
|
type: 'prose',
|