@luci-dev/skills 0.0.0-stage → 0.5.0
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/dist/benchmark.d.ts +48 -0
- package/dist/benchmark.d.ts.map +1 -0
- package/dist/benchmark.js +84 -0
- package/dist/benchmark.js.map +1 -0
- package/dist/discovery.d.ts +105 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +271 -0
- package/dist/discovery.js.map +1 -0
- package/dist/drafts.d.ts +20 -0
- package/dist/drafts.d.ts.map +1 -0
- package/dist/drafts.js +57 -0
- package/dist/drafts.js.map +1 -0
- package/dist/github.d.ts +49 -0
- package/dist/github.d.ts.map +1 -0
- package/dist/github.js +93 -0
- package/dist/github.js.map +1 -0
- package/dist/import.d.ts +80 -0
- package/dist/import.d.ts.map +1 -0
- package/dist/import.js +286 -0
- package/dist/import.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/licenses.d.ts +30 -0
- package/dist/licenses.d.ts.map +1 -0
- package/dist/licenses.js +116 -0
- package/dist/licenses.js.map +1 -0
- package/dist/linter.d.ts +35 -0
- package/dist/linter.d.ts.map +1 -0
- package/dist/linter.js +262 -0
- package/dist/linter.js.map +1 -0
- package/dist/lss.d.ts +74 -0
- package/dist/lss.d.ts.map +1 -0
- package/dist/lss.js +273 -0
- package/dist/lss.js.map +1 -0
- package/dist/orchestrator.d.ts +164 -0
- package/dist/orchestrator.d.ts.map +1 -0
- package/dist/orchestrator.js +370 -0
- package/dist/orchestrator.js.map +1 -0
- package/dist/packs.d.ts +50 -0
- package/dist/packs.d.ts.map +1 -0
- package/dist/packs.js +166 -0
- package/dist/packs.js.map +1 -0
- package/dist/preferences.d.ts +18 -0
- package/dist/preferences.d.ts.map +1 -0
- package/dist/preferences.js +57 -0
- package/dist/preferences.js.map +1 -0
- package/dist/project.d.ts +45 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/project.js +183 -0
- package/dist/project.js.map +1 -0
- package/dist/rankability.d.ts +51 -0
- package/dist/rankability.d.ts.map +1 -0
- package/dist/rankability.js +217 -0
- package/dist/rankability.js.map +1 -0
- package/dist/registry.d.ts +82 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +300 -0
- package/dist/registry.js.map +1 -0
- package/dist/trust.d.ts +13 -0
- package/dist/trust.d.ts.map +1 -0
- package/dist/trust.js +41 -0
- package/dist/trust.js.map +1 -0
- package/dist/types.d.ts +44 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/library/3d/threejs/LICENSE.txt +21 -0
- package/library/3d/threejs/NOTICE.md +7 -0
- package/library/3d/threejs/SKILL.md +102 -0
- package/library/3d/threejs/luci.json +39 -0
- package/library/accessibility/accessibility-baseline/SKILL.md +51 -0
- package/library/accessibility/accessibility-baseline/luci.json +33 -0
- package/library/accessibility/fixing-accessibility/NOTICE.md +6 -0
- package/library/accessibility/fixing-accessibility/SKILL.md +141 -0
- package/library/accessibility/fixing-accessibility/luci.json +36 -0
- package/library/animation-motion/animation-systems/LICENSE.txt +21 -0
- package/library/animation-motion/animation-systems/NOTICE.md +7 -0
- package/library/animation-motion/animation-systems/SKILL.md +192 -0
- package/library/animation-motion/animation-systems/luci.json +32 -0
- package/library/animation-motion/animejs/SKILL.md +64 -0
- package/library/animation-motion/animejs/luci.json +12 -0
- package/library/animation-motion/motion-dev/SKILL.md +69 -0
- package/library/animation-motion/motion-dev/luci.json +13 -0
- package/library/animation-motion/react-view-transitions/AGENTS.md +1380 -0
- package/library/animation-motion/react-view-transitions/NOTICE.md +6 -0
- package/library/animation-motion/react-view-transitions/README.md +44 -0
- package/library/animation-motion/react-view-transitions/SKILL.md +334 -0
- package/library/animation-motion/react-view-transitions/luci.json +40 -0
- package/library/animation-motion/react-view-transitions/metadata.json +12 -0
- package/library/animation-motion/react-view-transitions/references/css-recipes.md +312 -0
- package/library/animation-motion/react-view-transitions/references/implementation.md +170 -0
- package/library/animation-motion/react-view-transitions/references/nextjs.md +233 -0
- package/library/animation-motion/react-view-transitions/references/patterns.md +274 -0
- package/library/animation-motion/react-view-transitions/references/troubleshooting.md +47 -0
- package/library/code-quality/code-review/NOTICE.md +6 -0
- package/library/code-quality/code-review/SKILL.md +94 -0
- package/library/code-quality/code-review/agents/openai.yaml +3 -0
- package/library/code-quality/code-review/luci.json +33 -0
- package/library/components/company-logos/LICENSE.txt +21 -0
- package/library/components/company-logos/NOTICE.md +7 -0
- package/library/components/company-logos/SKILL.md +27 -0
- package/library/components/company-logos/luci.json +38 -0
- package/library/components/container-lines/LICENSE.txt +21 -0
- package/library/components/container-lines/NOTICE.md +7 -0
- package/library/components/container-lines/SKILL.md +124 -0
- package/library/components/container-lines/luci.json +48 -0
- package/library/design-systems/build-design-system/NOTICE.md +6 -0
- package/library/design-systems/build-design-system/SKILL.md +78 -0
- package/library/design-systems/build-design-system/luci.json +29 -0
- package/library/design-systems/build-design-system/references/components.md +46 -0
- package/library/design-systems/build-design-system/references/glossary.md +77 -0
- package/library/design-systems/build-design-system/references/taste.md +37 -0
- package/library/design-systems/build-design-system/references/tokens.md +59 -0
- package/library/design-systems/build-design-system/references/traps.md +128 -0
- package/library/design-systems/build-design-system/scripts/capture-guard.mjs +470 -0
- package/library/design-systems/build-design-system/scripts/capture.mjs +355 -0
- package/library/design-systems/build-design-system/scripts/check-system.mjs +1883 -0
- package/library/design-systems/build-design-system/scripts/find-chromium.mjs +137 -0
- package/library/design-systems/build-design-system/scripts/oklch.mjs +221 -0
- package/library/design-systems/build-design-system/scripts/pixdiff.mjs +186 -0
- package/library/design-systems/component-docs/NOTICE.md +6 -0
- package/library/design-systems/component-docs/SKILL.md +50 -0
- package/library/design-systems/component-docs/luci.json +30 -0
- package/library/design-systems/component-docs/references/doc-format.md +85 -0
- package/library/design-systems/create-design-md/NOTICE.md +6 -0
- package/library/design-systems/create-design-md/SKILL.md +259 -0
- package/library/design-systems/create-design-md/luci.json +38 -0
- package/library/design-systems/design-system-boss/NOTICE.md +6 -0
- package/library/design-systems/design-system-boss/SKILL.md +58 -0
- package/library/design-systems/design-system-boss/luci.json +29 -0
- package/library/design-systems/design-system-boss/playbooks/build.md +10 -0
- package/library/design-systems/design-system-boss/playbooks/component.md +9 -0
- package/library/design-systems/design-system-boss/playbooks/migrate.md +11 -0
- package/library/design-systems/design-system-boss/playbooks/review.md +9 -0
- package/library/design-systems/migrate-design-system/NOTICE.md +6 -0
- package/library/design-systems/migrate-design-system/SKILL.md +62 -0
- package/library/design-systems/migrate-design-system/luci.json +33 -0
- package/library/design-systems/migrate-design-system/references/correct.md +37 -0
- package/library/design-systems/migrate-design-system/references/lessons.md +69 -0
- package/library/design-systems/migrate-design-system/references/parity.md +44 -0
- package/library/design-systems/migrate-design-system/references/running-many-agents.md +52 -0
- package/library/design-systems/migrate-design-system/scripts/bodies-check.mjs +215 -0
- package/library/design-systems/migrate-design-system/scripts/land.mjs +433 -0
- package/library/design-systems/migrate-design-system/scripts/legacy.mjs +283 -0
- package/library/design-systems/migrate-design-system/scripts/parity.mjs +173 -0
- package/library/design-systems/token-mapping/NOTICE.md +6 -0
- package/library/design-systems/token-mapping/SKILL.md +46 -0
- package/library/design-systems/token-mapping/luci.json +25 -0
- package/library/design-systems/token-mapping/references/mapping-rules.md +54 -0
- package/library/design-systems/ui-review/NOTICE.md +6 -0
- package/library/design-systems/ui-review/SKILL.md +53 -0
- package/library/design-systems/ui-review/luci.json +29 -0
- package/library/design-systems/ui-review/references/criteria.md +49 -0
- package/library/frontend/composition-patterns/AGENTS.md +946 -0
- package/library/frontend/composition-patterns/NOTICE.md +6 -0
- package/library/frontend/composition-patterns/README.md +60 -0
- package/library/frontend/composition-patterns/SKILL.md +86 -0
- package/library/frontend/composition-patterns/luci.json +33 -0
- package/library/frontend/composition-patterns/metadata.json +11 -0
- package/library/frontend/composition-patterns/rules/_sections.md +29 -0
- package/library/frontend/composition-patterns/rules/_template.md +24 -0
- package/library/frontend/composition-patterns/rules/architecture-avoid-boolean-props.md +100 -0
- package/library/frontend/composition-patterns/rules/architecture-compound-components.md +112 -0
- package/library/frontend/composition-patterns/rules/patterns-children-over-render-props.md +87 -0
- package/library/frontend/composition-patterns/rules/patterns-explicit-variants.md +100 -0
- package/library/frontend/composition-patterns/rules/react19-no-forwardref.md +42 -0
- package/library/frontend/composition-patterns/rules/state-context-interface.md +191 -0
- package/library/frontend/composition-patterns/rules/state-decouple-implementation.md +113 -0
- package/library/frontend/composition-patterns/rules/state-lift-state.md +125 -0
- package/library/frontend/design-mobile-apps/NOTICE.md +6 -0
- package/library/frontend/design-mobile-apps/SKILL.md +121 -0
- package/library/frontend/design-mobile-apps/designing.md +56 -0
- package/library/frontend/design-mobile-apps/endpoints.md +362 -0
- package/library/frontend/design-mobile-apps/implementing.md +213 -0
- package/library/frontend/design-mobile-apps/luci.json +31 -0
- package/library/frontend/design-mobile-apps/styling/nativewind.md +57 -0
- package/library/frontend/design-mobile-apps/styling/stylesheet.md +28 -0
- package/library/frontend/design-mobile-apps/styling/uniwind.md +38 -0
- package/library/frontend/frontend-design/LICENSE.txt +202 -0
- package/library/frontend/frontend-design/NOTICE.md +6 -0
- package/library/frontend/frontend-design/SKILL.md +81 -0
- package/library/frontend/frontend-design/luci.json +43 -0
- package/library/frontend/react-native-skills/AGENTS.md +2897 -0
- package/library/frontend/react-native-skills/NOTICE.md +6 -0
- package/library/frontend/react-native-skills/README.md +165 -0
- package/library/frontend/react-native-skills/SKILL.md +119 -0
- package/library/frontend/react-native-skills/luci.json +33 -0
- package/library/frontend/react-native-skills/metadata.json +16 -0
- package/library/frontend/react-native-skills/rules/_sections.md +86 -0
- package/library/frontend/react-native-skills/rules/_template.md +28 -0
- package/library/frontend/react-native-skills/rules/animation-derived-value.md +53 -0
- package/library/frontend/react-native-skills/rules/animation-gesture-detector-press.md +95 -0
- package/library/frontend/react-native-skills/rules/animation-gpu-properties.md +65 -0
- package/library/frontend/react-native-skills/rules/design-system-compound-components.md +66 -0
- package/library/frontend/react-native-skills/rules/fonts-config-plugin.md +71 -0
- package/library/frontend/react-native-skills/rules/imports-design-system-folder.md +68 -0
- package/library/frontend/react-native-skills/rules/js-hoist-intl.md +61 -0
- package/library/frontend/react-native-skills/rules/list-performance-callbacks.md +44 -0
- package/library/frontend/react-native-skills/rules/list-performance-function-references.md +132 -0
- package/library/frontend/react-native-skills/rules/list-performance-images.md +53 -0
- package/library/frontend/react-native-skills/rules/list-performance-inline-objects.md +97 -0
- package/library/frontend/react-native-skills/rules/list-performance-item-expensive.md +94 -0
- package/library/frontend/react-native-skills/rules/list-performance-item-memo.md +82 -0
- package/library/frontend/react-native-skills/rules/list-performance-item-types.md +104 -0
- package/library/frontend/react-native-skills/rules/list-performance-virtualize.md +67 -0
- package/library/frontend/react-native-skills/rules/monorepo-native-deps-in-app.md +46 -0
- package/library/frontend/react-native-skills/rules/monorepo-single-dependency-versions.md +63 -0
- package/library/frontend/react-native-skills/rules/navigation-native-navigators.md +188 -0
- package/library/frontend/react-native-skills/rules/react-compiler-destructure-functions.md +50 -0
- package/library/frontend/react-native-skills/rules/react-compiler-reanimated-shared-values.md +48 -0
- package/library/frontend/react-native-skills/rules/react-state-dispatcher.md +91 -0
- package/library/frontend/react-native-skills/rules/react-state-fallback.md +56 -0
- package/library/frontend/react-native-skills/rules/react-state-minimize.md +65 -0
- package/library/frontend/react-native-skills/rules/rendering-no-falsy-and.md +74 -0
- package/library/frontend/react-native-skills/rules/rendering-text-in-text-component.md +36 -0
- package/library/frontend/react-native-skills/rules/scroll-position-no-state.md +82 -0
- package/library/frontend/react-native-skills/rules/state-ground-truth.md +80 -0
- package/library/frontend/react-native-skills/rules/ui-expo-image.md +66 -0
- package/library/frontend/react-native-skills/rules/ui-image-gallery.md +104 -0
- package/library/frontend/react-native-skills/rules/ui-measure-views.md +78 -0
- package/library/frontend/react-native-skills/rules/ui-menus.md +174 -0
- package/library/frontend/react-native-skills/rules/ui-native-modals.md +77 -0
- package/library/frontend/react-native-skills/rules/ui-pressable.md +61 -0
- package/library/frontend/react-native-skills/rules/ui-safe-area-scroll.md +65 -0
- package/library/frontend/react-native-skills/rules/ui-scrollview-content-inset.md +45 -0
- package/library/frontend/react-native-skills/rules/ui-styling.md +87 -0
- package/library/frontend/tailwindcss/LICENSE.txt +21 -0
- package/library/frontend/tailwindcss/NOTICE.md +7 -0
- package/library/frontend/tailwindcss/SKILL.md +83 -0
- package/library/frontend/tailwindcss/luci.json +39 -0
- package/library/frontend-frameworks/react-best-practices/NOTICE.md +6 -0
- package/library/frontend-frameworks/react-best-practices/SKILL.md +151 -0
- package/library/frontend-frameworks/react-best-practices/luci.json +39 -0
- package/library/general/algorithmic-art/LICENSE.txt +202 -0
- package/library/general/algorithmic-art/NOTICE.md +6 -0
- package/library/general/algorithmic-art/SKILL.md +409 -0
- package/library/general/algorithmic-art/luci.json +27 -0
- package/library/general/algorithmic-art/templates/generator_template.js +223 -0
- package/library/general/algorithmic-art/templates/viewer.html +599 -0
- package/library/general/canvas-design/LICENSE.txt +202 -0
- package/library/general/canvas-design/NOTICE.md +6 -0
- package/library/general/canvas-design/SKILL.md +134 -0
- package/library/general/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/library/general/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/library/general/canvas-design/luci.json +29 -0
- package/library/index.json +2507 -0
- package/library/interaction/animation-on-scroll/LICENSE.txt +21 -0
- package/library/interaction/animation-on-scroll/NOTICE.md +7 -0
- package/library/interaction/animation-on-scroll/SKILL.md +115 -0
- package/library/interaction/animation-on-scroll/luci.json +38 -0
- package/library/micro-interactions/masked-reveal/LICENSE.txt +21 -0
- package/library/micro-interactions/masked-reveal/NOTICE.md +7 -0
- package/library/micro-interactions/masked-reveal/SKILL.md +187 -0
- package/library/micro-interactions/masked-reveal/luci.json +63 -0
- package/library/micro-interactions/micro-interaction/NOTICE.md +6 -0
- package/library/micro-interactions/micro-interaction/SKILL.md +177 -0
- package/library/micro-interactions/micro-interaction/luci.json +52 -0
- package/library/micro-interactions/micro-interaction/references/css-recipes.md +142 -0
- package/library/micro-interactions/micro-interaction/references/framer-motion-recipes.md +187 -0
- package/library/micro-interactions/micro-interaction/scripts/README.md +42 -0
- package/library/micro-interactions/micro-interaction/scripts/contact-sheet.sh +17 -0
- package/library/micro-interactions/micro-interaction/scripts/seek-shot.sh +21 -0
- package/library/performance/fixing-motion-performance/NOTICE.md +6 -0
- package/library/performance/fixing-motion-performance/SKILL.md +156 -0
- package/library/performance/fixing-motion-performance/luci.json +30 -0
- package/library/seo/fixing-metadata/NOTICE.md +6 -0
- package/library/seo/fixing-metadata/SKILL.md +111 -0
- package/library/seo/fixing-metadata/luci.json +36 -0
- package/library/shadcn-ui/migrate-radix-to-base/NOTICE.md +6 -0
- package/library/shadcn-ui/migrate-radix-to-base/SKILL.md +178 -0
- package/library/shadcn-ui/migrate-radix-to-base/class-mapping.md +62 -0
- package/library/shadcn-ui/migrate-radix-to-base/consumer-props.md +58 -0
- package/library/shadcn-ui/migrate-radix-to-base/disclosure.md +353 -0
- package/library/shadcn-ui/migrate-radix-to-base/display-misc.md +410 -0
- package/library/shadcn-ui/migrate-radix-to-base/form-controls.md +390 -0
- package/library/shadcn-ui/migrate-radix-to-base/luci.json +33 -0
- package/library/shadcn-ui/migrate-radix-to-base/menus.md +409 -0
- package/library/shadcn-ui/migrate-radix-to-base/overlays.md +459 -0
- package/library/shadcn-ui/migrate-radix-to-base/universal-patterns.md +286 -0
- package/library/shadcn-ui/migrate-radix-to-base/wrapper-shapes.md +110 -0
- package/library/shadcn-ui/shadcn/NOTICE.md +6 -0
- package/library/shadcn-ui/shadcn/SKILL.md +187 -0
- package/library/shadcn-ui/shadcn/agents/openai.yml +5 -0
- package/library/shadcn-ui/shadcn/assets/shadcn-small.png +0 -0
- package/library/shadcn-ui/shadcn/assets/shadcn.png +0 -0
- package/library/shadcn-ui/shadcn/assets/showcase/color-pair.tsx +126 -0
- package/library/shadcn-ui/shadcn/assets/showcase/preview-states.css +14 -0
- package/library/shadcn-ui/shadcn/assets/showcase/state-matrix.tsx +72 -0
- package/library/shadcn-ui/shadcn/cli.md +290 -0
- package/library/shadcn-ui/shadcn/customization.md +211 -0
- package/library/shadcn-ui/shadcn/design-system-page.md +268 -0
- package/library/shadcn-ui/shadcn/design-system.md +386 -0
- package/library/shadcn-ui/shadcn/evals/evals.json +126 -0
- package/library/shadcn-ui/shadcn/luci.json +34 -0
- package/library/shadcn-ui/shadcn/mcp.md +105 -0
- package/library/shadcn-ui/shadcn/references/updating-components.md +91 -0
- package/library/shadcn-ui/shadcn/references/workflow.md +31 -0
- package/library/shadcn-ui/shadcn/registry.md +277 -0
- package/library/shadcn-ui/shadcn/rules/base-vs-radix.md +306 -0
- package/library/shadcn-ui/shadcn/rules/chat.md +507 -0
- package/library/shadcn-ui/shadcn/rules/composition.md +213 -0
- package/library/shadcn-ui/shadcn/rules/forms.md +192 -0
- package/library/shadcn-ui/shadcn/rules/icons.md +101 -0
- package/library/shadcn-ui/shadcn/rules/styling.md +185 -0
- package/library/shadcn-ui/shadcn/scripts/showcase-coverage.mjs +53 -0
- package/library/systems/baseline-ui/NOTICE.md +6 -0
- package/library/systems/baseline-ui/SKILL.md +90 -0
- package/library/systems/baseline-ui/luci.json +35 -0
- package/library/testing/tdd/NOTICE.md +6 -0
- package/library/testing/tdd/SKILL.md +43 -0
- package/library/testing/tdd/agents/openai.yaml +3 -0
- package/library/testing/tdd/luci.json +29 -0
- package/library/testing/tdd/mocking.md +59 -0
- package/library/testing/tdd/tests.md +77 -0
- package/library/testing/webapp-testing/LICENSE.txt +202 -0
- package/library/testing/webapp-testing/NOTICE.md +6 -0
- package/library/testing/webapp-testing/SKILL.md +100 -0
- package/library/testing/webapp-testing/examples/console_logging.py +35 -0
- package/library/testing/webapp-testing/examples/element_discovery.py +40 -0
- package/library/testing/webapp-testing/examples/static_html_automation.py +33 -0
- package/library/testing/webapp-testing/luci.json +33 -0
- package/library/testing/webapp-testing/scripts/with_server.py +106 -0
- package/library/ui-ux/improve-ui/NOTICE.md +6 -0
- package/library/ui-ux/improve-ui/SKILL.md +127 -0
- package/library/ui-ux/improve-ui/agents/openai.yaml +13 -0
- package/library/ui-ux/improve-ui/luci.json +47 -0
- package/library/ui-ux/improve-ui/references/plan-template.md +55 -0
- package/library/ui-ux/landing-page/LICENSE.txt +21 -0
- package/library/ui-ux/landing-page/NOTICE.md +7 -0
- package/library/ui-ux/landing-page/SKILL.md +213 -0
- package/library/ui-ux/landing-page/luci.json +47 -0
- package/library/ui-ux/pricing-page/LICENSE.txt +21 -0
- package/library/ui-ux/pricing-page/NOTICE.md +7 -0
- package/library/ui-ux/pricing-page/SKILL.md +217 -0
- package/library/ui-ux/pricing-page/luci.json +47 -0
- package/library/ui-ux/prototype/LOGIC.md +67 -0
- package/library/ui-ux/prototype/NOTICE.md +6 -0
- package/library/ui-ux/prototype/SKILL.md +31 -0
- package/library/ui-ux/prototype/UI.md +112 -0
- package/library/ui-ux/prototype/agents/openai.yaml +3 -0
- package/library/ui-ux/prototype/luci.json +33 -0
- package/library/ui-ux/theme-factory/LICENSE.txt +202 -0
- package/library/ui-ux/theme-factory/NOTICE.md +6 -0
- package/library/ui-ux/theme-factory/SKILL.md +62 -0
- package/library/ui-ux/theme-factory/luci.json +35 -0
- package/library/ui-ux/theme-factory/themes/arctic-frost.md +19 -0
- package/library/ui-ux/theme-factory/themes/botanical-garden.md +19 -0
- package/library/ui-ux/theme-factory/themes/desert-rose.md +19 -0
- package/library/ui-ux/theme-factory/themes/forest-canopy.md +19 -0
- package/library/ui-ux/theme-factory/themes/golden-hour.md +19 -0
- package/library/ui-ux/theme-factory/themes/midnight-galaxy.md +19 -0
- package/library/ui-ux/theme-factory/themes/modern-minimalist.md +19 -0
- package/library/ui-ux/theme-factory/themes/ocean-depths.md +19 -0
- package/library/ui-ux/theme-factory/themes/sunset-boulevard.md +19 -0
- package/library/ui-ux/theme-factory/themes/tech-innovation.md +19 -0
- package/package.json +21 -3
- package/packs/design-system-build.json +10 -0
- package/packs/design-system.json +16 -0
- package/packs/marketing.json +11 -0
- package/packs/motion.json +12 -0
- package/packs/ui.json +13 -0
- package/README.md +0 -3
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "fixing-metadata"
|
|
3
|
+
description: "Audit and fix HTML metadata including page titles, meta descriptions, canonical URLs, Open Graph tags, Twitter cards, favicons, JSON-LD structured data, and robots directives. Use when adding SEO metadata, fixing social share previews, reviewing Open Graph tags, setting up canonical URLs, or shipping new pages that need correct meta tags."
|
|
4
|
+
license: "MIT"
|
|
5
|
+
metadata:
|
|
6
|
+
luci-category: "seo"
|
|
7
|
+
luci-author: "ui-skills"
|
|
8
|
+
luci-version: "1.0.0"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Workflow
|
|
12
|
+
|
|
13
|
+
1. Identify pages with missing or incorrect metadata (titles, descriptions, canonical, OG tags)
|
|
14
|
+
2. Audit against the priority rules below — fix critical issues (duplicates, indexing) first
|
|
15
|
+
3. Ensure title, description, canonical, and og:url all agree with each other
|
|
16
|
+
4. Verify social cards render correctly on a real URL, not localhost
|
|
17
|
+
5. Keep diffs minimal and scoped to metadata only — do not refactor unrelated code
|
|
18
|
+
## when to apply
|
|
19
|
+
|
|
20
|
+
Reference these guidelines when:
|
|
21
|
+
- adding or changing page titles, descriptions, canonical, robots
|
|
22
|
+
- implementing Open Graph or Twitter card metadata
|
|
23
|
+
- setting favicons, app icons, manifest, theme-color
|
|
24
|
+
- building shared SEO components or layout metadata defaults
|
|
25
|
+
- adding structured data (JSON-LD)
|
|
26
|
+
- changing locale, alternate languages, or canonical routing
|
|
27
|
+
- shipping new pages, marketing pages, or shareable links
|
|
28
|
+
|
|
29
|
+
## rule categories by priority
|
|
30
|
+
|
|
31
|
+
| priority | category | impact |
|
|
32
|
+
|----------|----------|--------|
|
|
33
|
+
| 1 | correctness and duplication | critical |
|
|
34
|
+
| 2 | title and description | high |
|
|
35
|
+
| 3 | canonical and indexing | high |
|
|
36
|
+
| 4 | social cards | high |
|
|
37
|
+
| 5 | icons and manifest | medium |
|
|
38
|
+
| 6 | structured data | medium |
|
|
39
|
+
| 7 | locale and alternates | low-medium |
|
|
40
|
+
| 8 | tool boundaries | critical |
|
|
41
|
+
|
|
42
|
+
## quick reference
|
|
43
|
+
|
|
44
|
+
### 1. correctness and duplication (critical)
|
|
45
|
+
|
|
46
|
+
- define metadata in one place per page, avoid competing systems
|
|
47
|
+
- do not emit duplicate title, description, canonical, or robots tags
|
|
48
|
+
- metadata must be deterministic, no random or unstable values
|
|
49
|
+
- escape and sanitize any user-generated or dynamic strings
|
|
50
|
+
- every page must have safe defaults for title and description
|
|
51
|
+
|
|
52
|
+
### 2. title and description (high)
|
|
53
|
+
|
|
54
|
+
- every page must have a title
|
|
55
|
+
- use a consistent title format across the site
|
|
56
|
+
- keep titles short and readable, avoid stuffing
|
|
57
|
+
- shareable or searchable pages should have a meta description
|
|
58
|
+
- descriptions must be plain text, no markdown or quote spam
|
|
59
|
+
|
|
60
|
+
### 3. canonical and indexing (high)
|
|
61
|
+
|
|
62
|
+
- canonical must point to the preferred URL for the page
|
|
63
|
+
- use noindex only for private, duplicate, or non-public pages
|
|
64
|
+
- robots meta must match actual access intent
|
|
65
|
+
- previews or staging pages should be noindex by default when possible
|
|
66
|
+
- paginated pages must have correct canonical behavior
|
|
67
|
+
|
|
68
|
+
### 4. social cards (high)
|
|
69
|
+
|
|
70
|
+
- shareable pages must set Open Graph title, description, and image
|
|
71
|
+
- Open Graph and Twitter images must use absolute URLs
|
|
72
|
+
- prefer correct image dimensions and stable aspect ratios
|
|
73
|
+
- og:url must match the canonical URL
|
|
74
|
+
- use a sensible og:type, usually website or article
|
|
75
|
+
- set twitter:card appropriately, summary_large_image by default
|
|
76
|
+
|
|
77
|
+
### 5. icons and manifest (medium)
|
|
78
|
+
|
|
79
|
+
- include at least one favicon that works across browsers
|
|
80
|
+
- include apple-touch-icon when relevant
|
|
81
|
+
- manifest must be valid and referenced when used
|
|
82
|
+
- set theme-color intentionally to avoid mismatched UI chrome
|
|
83
|
+
- icon paths should be stable and cacheable
|
|
84
|
+
|
|
85
|
+
### 6. structured data (medium)
|
|
86
|
+
|
|
87
|
+
- do not add JSON-LD unless it clearly maps to real page content
|
|
88
|
+
- JSON-LD must be valid and reflect what is actually rendered
|
|
89
|
+
- do not invent ratings, reviews, prices, or organization details
|
|
90
|
+
- prefer one structured data block per page unless required
|
|
91
|
+
|
|
92
|
+
### 7. locale and alternates (low-medium)
|
|
93
|
+
|
|
94
|
+
- set the html lang attribute correctly
|
|
95
|
+
- set og:locale when localization exists
|
|
96
|
+
- add hreflang alternates only when pages truly exist
|
|
97
|
+
- localized pages must canonicalize correctly per locale
|
|
98
|
+
|
|
99
|
+
### 8. tool boundaries (critical)
|
|
100
|
+
|
|
101
|
+
- prefer minimal changes, do not refactor unrelated code
|
|
102
|
+
- do not migrate frameworks or SEO libraries unless requested
|
|
103
|
+
- follow the project's existing metadata pattern (Next.js metadata API, react-helmet, manual head, etc.)
|
|
104
|
+
|
|
105
|
+
## review guidance
|
|
106
|
+
|
|
107
|
+
- fix critical issues first (duplicates, canonical, indexing)
|
|
108
|
+
- ensure title, description, canonical, and og:url agree
|
|
109
|
+
- verify social cards on a real URL, not localhost
|
|
110
|
+
- prefer stable, boring metadata over clever or dynamic
|
|
111
|
+
- keep diffs minimal and scoped to metadata only
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lss": 1,
|
|
3
|
+
"keywords": [
|
|
4
|
+
"seo",
|
|
5
|
+
"open graph",
|
|
6
|
+
"meta tags"
|
|
7
|
+
],
|
|
8
|
+
"frameworks": [
|
|
9
|
+
"nextjs",
|
|
10
|
+
"html",
|
|
11
|
+
"react"
|
|
12
|
+
],
|
|
13
|
+
"lastVerified": "2026-11-06",
|
|
14
|
+
"source": {
|
|
15
|
+
"repo": "ibelick/ui-skills",
|
|
16
|
+
"path": "skills/fixing-metadata/SKILL.md",
|
|
17
|
+
"licenseVerified": true,
|
|
18
|
+
"licenseStatus": "open",
|
|
19
|
+
"licenseEvidence": "declared in original SKILL.md",
|
|
20
|
+
"licenseUrl": "https://github.com/ibelick/ui-skills/blob/main/skills/fixing-metadata/SKILL.md",
|
|
21
|
+
"licenseCheckedAt": "2026-11-08"
|
|
22
|
+
},
|
|
23
|
+
"summary": "Audit and fix HTML metadata including page titles, meta descriptions, canonical URLs, Open Graph tags, Twitter cards, favicons, JSON-LD structured data, and robots directives. Use when adding SEO metadata, fixing social share previews, reviewing Open Graph tags, setting up canonical URLs, or…",
|
|
24
|
+
"whenToUse": [
|
|
25
|
+
"Use when adding SEO metadata, fixing social share previews, reviewing Open Graph tags, setting up canonical URLs, or shipping new pages that need correct meta tags."
|
|
26
|
+
],
|
|
27
|
+
"domains": [
|
|
28
|
+
"web",
|
|
29
|
+
"data"
|
|
30
|
+
],
|
|
31
|
+
"derived": [
|
|
32
|
+
"domains",
|
|
33
|
+
"summary",
|
|
34
|
+
"whenToUse"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Notice
|
|
2
|
+
|
|
3
|
+
This skill comes from https://github.com/shadcn-ui/ui (`skills/migrate-radix-to-base/SKILL.md`).
|
|
4
|
+
Licence: MIT (evidence: repository license, https://github.com/shadcn-ui/ui/blob/main/LICENSE.md, checked 2026-11-09).
|
|
5
|
+
|
|
6
|
+
Luci converted it to the Luci Skill Standard: SKILL.md metadata keys and luci.json. The instructions are unchanged.
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "migrate-radix-to-base"
|
|
3
|
+
description: "Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components (\"migrate accordion\") and whole projects."
|
|
4
|
+
license: "MIT"
|
|
5
|
+
metadata:
|
|
6
|
+
luci-category: "shadcn-ui"
|
|
7
|
+
luci-author: "unknown"
|
|
8
|
+
luci-version: "1.0.0"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Radix UI -> Base UI migration
|
|
12
|
+
|
|
13
|
+
You migrate shadcn wrappers, hand-rolled radix compositions, and their
|
|
14
|
+
consumers to `@base-ui/react`, keeping the project buildable at every step.
|
|
15
|
+
Be precise; never guess a mapping. When a prop or part is not in these
|
|
16
|
+
reference files, check `node_modules/@base-ui/react/**/*.d.ts` before
|
|
17
|
+
transforming, and record gaps in the report.
|
|
18
|
+
|
|
19
|
+
## Preflight (always)
|
|
20
|
+
|
|
21
|
+
1. `npx shadcn@latest info --json` (or the project's runner): gives the
|
|
22
|
+
current base, STYLE (e.g. `radix-lyra`), tailwind version, aliases,
|
|
23
|
+
installed components, and package manager. Trust it over inference.
|
|
24
|
+
2. Detect the package manager (packageManager field / lockfile:
|
|
25
|
+
pnpm-lock.yaml, bun.lock, yarn.lock, package-lock.json) and use IT for
|
|
26
|
+
every install. Never leave a stale lockfile.
|
|
27
|
+
3. Require a clean git tree; work on a branch; one commit per component.
|
|
28
|
+
4. Baseline check BEFORE touching dependencies: run the project's
|
|
29
|
+
typecheck/build so pre-existing failures are never attributed to you.
|
|
30
|
+
5. Install `@base-ui/react` alongside radix. Radix packages are removed only
|
|
31
|
+
after the LAST component is migrated (both coexist fine).
|
|
32
|
+
|
|
33
|
+
## Strategy: golden pair first, transformation engine second
|
|
34
|
+
|
|
35
|
+
- **Golden pair via the CLI (preferred).** If the project is shadcn with a
|
|
36
|
+
known style (`radix-<style>`), the shadcn CLI itself is the golden-pair
|
|
37
|
+
executor:
|
|
38
|
+
1. Classify each ui wrapper FIRST: diff the user's file against its stock
|
|
39
|
+
origin, using the components.json style VERBATIM in the URL
|
|
40
|
+
(`https://ui.shadcn.com/r/styles/<style>/<component>.json`,
|
|
41
|
+
files[0].content). This works for prefixed styles (radix-nova) AND
|
|
42
|
+
legacy unprefixed ones (new-york, new-york-v4, default), which are all
|
|
43
|
+
still served.
|
|
44
|
+
2. WHOLE-PROJECT mode: flip `components.json` style `radix-<style>` ->
|
|
45
|
+
`base-<style>` now. PROGRESSIVE mode: do NOT flip yet (the project is
|
|
46
|
+
still mostly radix; the flip happens once, after the last component);
|
|
47
|
+
fetch base variants directly by URL instead
|
|
48
|
+
(`https://ui.shadcn.com/r/styles/base-<style>/<component>.json`).
|
|
49
|
+
3. PRISTINE wrappers, whole-project mode: `shadcn add <component>
|
|
50
|
+
--overwrite` delivers the base variant with the project's exact
|
|
51
|
+
icon/font/preset resolution. Never bulk `--all --overwrite`; go
|
|
52
|
+
component by component, or you drown in unrelated registry version
|
|
53
|
+
drift. PROGRESSIVE mode: never use `--overwrite` (it destroys the
|
|
54
|
+
original that consumers still import); write the fetched base variant
|
|
55
|
+
content to `<component>-base.tsx` instead.
|
|
56
|
+
4. CUSTOMIZED wrappers: fetch the base variant and replay the user's diff
|
|
57
|
+
onto it (their customizations must SURVIVE; `--overwrite` would destroy
|
|
58
|
+
them). Mechanical implementation that works at scale:
|
|
59
|
+
`git merge-file user.tsx radix-golden.tsx base-golden.tsx` (three-way
|
|
60
|
+
merge, radix golden as ancestor) auto-resolves most files; hand-resolve
|
|
61
|
+
conflicts with the reference tables.
|
|
62
|
+
5. MANDATORY leftover sweep on EVERY golden-pair file, including ones that
|
|
63
|
+
merged "clean": `grep -n "radix-ui\|@radix-ui\|IconPlaceholder"` per
|
|
64
|
+
file. The registry sometimes reorders functions between variants, which
|
|
65
|
+
makes three-way merges report zero conflicts while leaving stale radix
|
|
66
|
+
hunks in place. A clean merge is NOT proof of a clean file.
|
|
67
|
+
This is more reliable than reconstructing transforms; use it whenever the
|
|
68
|
+
pair exists. Consumer/app code has no CLI mechanism: always hand-migrate it
|
|
69
|
+
against `consumer-props.md`.
|
|
70
|
+
- **Legacy styles (new-york, new-york-v4, default): classification only, no
|
|
71
|
+
replay.** These have no base counterpart (there is no base-new-york), and
|
|
72
|
+
retargeting onto a base-<style> variant would restyle the user's app. Use
|
|
73
|
+
the radix golden ONLY to detect customizations, then run the transformation
|
|
74
|
+
engine on the user's OWN file: rewire primitives, keep their exact classes,
|
|
75
|
+
apply class-mapping renames. Their look stays theirs. At the end of a
|
|
76
|
+
legacy whole-project migration, FLAG (do not fix): the style name still
|
|
77
|
+
reads as radix to the CLI, so future `shadcn add` will deliver radix
|
|
78
|
+
variants; the user decides whether to switch style or add manually.
|
|
79
|
+
- **Transformation engine (fallback).** Hand-rolled radix code, non-shadcn
|
|
80
|
+
projects, unknown styles: transform using `universal-patterns.md` (imports
|
|
81
|
+
in BOTH forms: `radix-ui` and `@radix-ui/react-*`; asChild->render with the
|
|
82
|
+
worked example; Portal>Positioner>Popup; the positioner FORWARD rule; part
|
|
83
|
+
renames), the per-family props tables (`overlays.md`, `menus.md`,
|
|
84
|
+
`form-controls.md`, `disclosure.md`, `display-misc.md`), `class-mapping.md`
|
|
85
|
+
for data-attribute/CSS-var rewrites, and `wrapper-shapes.md` for exact
|
|
86
|
+
target shapes (tooltip arrow, SubContent defaults, select anatomy).
|
|
87
|
+
|
|
88
|
+
## Modes
|
|
89
|
+
|
|
90
|
+
**Progressive (default).** "Migrate accordion" = one component, strangler-fig:
|
|
91
|
+
1. Detect in-progress state first: an existing `<component>-base.tsx`,
|
|
92
|
+
consumers split between old/new imports. The files ARE the state; resume,
|
|
93
|
+
never restart.
|
|
94
|
+
2. If the component imports other ui wrappers still on radix (select ->
|
|
95
|
+
button), STOP and recommend migrating those first, bottom-up.
|
|
96
|
+
3. Write the migrated version to `<component>-base.tsx` (original untouched;
|
|
97
|
+
golden-pair content fetched by URL, or transformed by hand, per the
|
|
98
|
+
strategy above); typecheck. Repoint consumers ONE AT A TIME (imports + the
|
|
99
|
+
call-site props in `consumer-props.md`); typecheck each. When no consumer
|
|
100
|
+
imports the original: delete it, rename `-base` -> original, flip imports
|
|
101
|
+
back, final check, commit. When the LAST radix wrapper in the project is
|
|
102
|
+
finalized, flip `components.json` to `base-<style>` and remove radix deps.
|
|
103
|
+
|
|
104
|
+
**Whole project** (only when explicitly asked): same per-component work in
|
|
105
|
+
dependency order (leaf/shared wrappers like button and label first). After
|
|
106
|
+
wrappers, sweep ALL app code against `consumer-props.md` — the call-site
|
|
107
|
+
break surface is much larger than asChild. Then remove radix deps, install,
|
|
108
|
+
full build.
|
|
109
|
+
|
|
110
|
+
## Hard rules
|
|
111
|
+
|
|
112
|
+
- NEVER touch non-radix libraries or their wrappers: cmdk (command), vaul
|
|
113
|
+
(drawer), sonner, input-otp, react-day-picker (calendar), recharts (chart).
|
|
114
|
+
Report them as intentionally untouched.
|
|
115
|
+
- No Base UI counterpart: AspectRatio -> CSS aspect-ratio div; Label ->
|
|
116
|
+
native `<label>`; VisuallyHidden -> `sr-only`; Direction -> Direction
|
|
117
|
+
Provider (`direction` prop, not `dir`). Popover Anchor and NavigationMenu
|
|
118
|
+
Indicator have no equivalent: inert passthrough + flag.
|
|
119
|
+
- `button.tsx` migrates to the REAL `@base-ui/react/button` primitive, never
|
|
120
|
+
a hand-rolled useRender wrapper.
|
|
121
|
+
- Behavior deltas are FLAGGED, never silently patched (tabs manual
|
|
122
|
+
activation, menu items not closing on click, nav-menu 50ms delay). The
|
|
123
|
+
target is idiomatic Base UI matching the shadcn base registry.
|
|
124
|
+
- Honest reporting: skipped/reverted files are listed as flagged, never as
|
|
125
|
+
migrated. Pre-existing failures are named as pre-existing.
|
|
126
|
+
|
|
127
|
+
## Verify and report
|
|
128
|
+
|
|
129
|
+
Typecheck per file, build per batch, full build at the end vs the baseline.
|
|
130
|
+
|
|
131
|
+
Reports live in a `.migration/` directory at the project root, ONE FILE PER
|
|
132
|
+
COMPONENT: `.migration/<component>.md` (e.g. `.migration/accordion.md`).
|
|
133
|
+
Rules:
|
|
134
|
+
- Each run writes (or fully overwrites) the file for each component it
|
|
135
|
+
migrated. Re-running a component replaces its report; never touch other
|
|
136
|
+
components' files.
|
|
137
|
+
- A multi-component run ("migrate alert-dialog and dropdown-menu") writes one
|
|
138
|
+
file per component, each self-contained; shared consumer-sweep notes are
|
|
139
|
+
repeated in every affected file.
|
|
140
|
+
- Whole-project mode writes the per-component files plus
|
|
141
|
+
`.migration/project.md` (dependency swap, app-code sweep summary, final
|
|
142
|
+
build result).
|
|
143
|
+
- There is NO index file. Migration status is derived from disk, not
|
|
144
|
+
maintained: scan the project's ui directory (the `ui` alias from shadcn
|
|
145
|
+
info, e.g. components/ui or src/components/ui) for remaining radix imports
|
|
146
|
+
when asked "what's left". End every run's summary with that derived count
|
|
147
|
+
("N wrappers remain on Radix").
|
|
148
|
+
|
|
149
|
+
Each `.migration/<component>.md` uses EXACTLY this structure (it is
|
|
150
|
+
documented publicly; reports must match it):
|
|
151
|
+
|
|
152
|
+
```md
|
|
153
|
+
# <component>
|
|
154
|
+
|
|
155
|
+
<date, strategy used (golden pair via CLI / merge / engine), one-line verdict>
|
|
156
|
+
|
|
157
|
+
## Changed
|
|
158
|
+
|
|
159
|
+
<every file touched, with what changed and why; include file:line for
|
|
160
|
+
anything notable. Confirm the leftover scan is clean:
|
|
161
|
+
grep -n "radix-ui\|@radix-ui" on this component's files>
|
|
162
|
+
|
|
163
|
+
## Left alone
|
|
164
|
+
|
|
165
|
+
<files that look related but were intentionally not touched, with the reason
|
|
166
|
+
(cmdk/vaul/sonner are not radix; unrelated drift; etc.)>
|
|
167
|
+
|
|
168
|
+
## Behavior changes
|
|
169
|
+
|
|
170
|
+
<differences that compile fine but act differently; flagged, never patched
|
|
171
|
+
(tabs activation, menu close-on-click, delays...). Empty section if none>
|
|
172
|
+
|
|
173
|
+
## Verify by hand
|
|
174
|
+
|
|
175
|
+
<short manual QA checklist for this primitive family: focus return on
|
|
176
|
+
dialogs, keyboard nav + typeahead on menus/select, tooltip delay feel,
|
|
177
|
+
slider commit events. Concrete steps, one minute of clicking>
|
|
178
|
+
```
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Class-string rewrites (layer 2)
|
|
2
|
+
|
|
3
|
+
Apply these across ALL class strings (className, cva definitions, cn calls),
|
|
4
|
+
including app code. They are safe, mechanical rewrites.
|
|
5
|
+
|
|
6
|
+
## Data-attribute selectors
|
|
7
|
+
|
|
8
|
+
| Radix pattern | Base UI pattern |
|
|
9
|
+
|---|---|
|
|
10
|
+
| `data-[state=open]:` | `data-open:` |
|
|
11
|
+
| `data-[state=closed]:` | `data-closed:` |
|
|
12
|
+
| `data-[state=checked]:` | `data-checked:` |
|
|
13
|
+
| `data-[state=unchecked]:` | `data-unchecked:` |
|
|
14
|
+
| `data-[state=active]:` (tabs) | `data-active:` |
|
|
15
|
+
| `data-[state=on]:` (toggle) | `data-pressed:` |
|
|
16
|
+
| `data-[highlighted]:` | `data-highlighted:` (unchanged) |
|
|
17
|
+
| `data-[disabled]:` | `data-disabled:` (unchanged) |
|
|
18
|
+
| `data-[side=...]:` | `data-[side=...]:` (unchanged, still parameterized) |
|
|
19
|
+
| `group-data-[state=open]` / `peer-data-[state=open]` | `group-data-open` / `peer-data-open` |
|
|
20
|
+
| submenu trigger open marker `data-[state=open]:` | `data-popup-open:` |
|
|
21
|
+
|
|
22
|
+
## Animation idiom
|
|
23
|
+
|
|
24
|
+
Radix (tw-animate/keyframes):
|
|
25
|
+
`data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=closed]:fade-out-0`
|
|
26
|
+
|
|
27
|
+
Base UI (transition + starting/ending styles):
|
|
28
|
+
`transition-[opacity,transform] data-starting-style:opacity-0 data-ending-style:opacity-0` (plus translate/scale equivalents).
|
|
29
|
+
|
|
30
|
+
Do not translate animate-in/out utilities 1:1; restate the intent with
|
|
31
|
+
`data-starting-style:` / `data-ending-style:` transitions. When the original
|
|
32
|
+
uses per-side slide classes, keep the `data-[side=...]` or
|
|
33
|
+
`data-[swipe-direction=...]` parameterization.
|
|
34
|
+
|
|
35
|
+
## CSS variables
|
|
36
|
+
|
|
37
|
+
| Radix var | Base UI var |
|
|
38
|
+
|---|---|
|
|
39
|
+
| `--radix-<comp>-content-transform-origin` | `--transform-origin` |
|
|
40
|
+
| `--radix-<comp>-content-available-height` | `--available-height` |
|
|
41
|
+
| `--radix-<comp>-content-available-width` | `--available-width` |
|
|
42
|
+
| `--radix-<comp>-trigger-width` | `--anchor-width` |
|
|
43
|
+
| `--radix-<comp>-trigger-height` | `--anchor-height` |
|
|
44
|
+
| `--radix-accordion-content-height` | `--accordion-panel-height` |
|
|
45
|
+
| `--radix-collapsible-content-height` | `--collapsible-panel-height` |
|
|
46
|
+
| `--radix-navigation-menu-viewport-height/width` | `--positioner-height` / `--positioner-width` |
|
|
47
|
+
|
|
48
|
+
## Element changes kill pseudo-class variants
|
|
49
|
+
|
|
50
|
+
When a part's rendered element changes from a form control to a generic
|
|
51
|
+
element (checkbox/switch/radio Roots render `<span>` in Base UI), `disabled:`
|
|
52
|
+
and `:disabled` Tailwind variants become dead code. Replace them with
|
|
53
|
+
`data-disabled:` equivalents. (Note: the shadcn base registry's checkbox
|
|
54
|
+
still carries the dead `disabled:*` classes; treat that as an upstream quirk,
|
|
55
|
+
not a pattern to copy.)
|
|
56
|
+
|
|
57
|
+
## Disabled-state hooks
|
|
58
|
+
|
|
59
|
+
Some Base UI triggers surface disabled state as `aria-disabled` rather than
|
|
60
|
+
the `disabled` attribute (accordion trigger, tabs tab). Where the radix code
|
|
61
|
+
used `disabled:opacity-50`, add or substitute `aria-disabled:opacity-50`
|
|
62
|
+
according to the wrapper's reference file.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Consumer-side prop changes (call sites, not wrappers)
|
|
2
|
+
|
|
3
|
+
The shadcn wrapper NAMES survive a radix -> base-ui migration, but these props
|
|
4
|
+
change or disappear at CALL SITES in app code. Sweep every consumer for this
|
|
5
|
+
list after migrating the wrappers. All entries verified against
|
|
6
|
+
@base-ui/react@1.6.0 type definitions during real migrations; when in doubt,
|
|
7
|
+
check node_modules/@base-ui/react/**/*.d.ts, never guess.
|
|
8
|
+
|
|
9
|
+
## Universal
|
|
10
|
+
|
|
11
|
+
| Radix | Base UI | Call-site action |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `asChild` (any wrapper) | `render` prop | `<Trigger asChild><Button/></Trigger>` -> `<Trigger render={<Button/>}>...` |
|
|
14
|
+
|
|
15
|
+
## Per component
|
|
16
|
+
|
|
17
|
+
| Component | Radix prop | Base UI fate | Call-site action |
|
|
18
|
+
|---|---|---|---|
|
|
19
|
+
| Accordion | `type="single"\|"multiple"` + `collapsible` | dropped; `value`/`defaultValue` are ALWAYS arrays; multiple-open via `multiple` | `type="single" collapsible` -> remove both; wrap values in arrays; `type="multiple"` -> `multiple` |
|
|
20
|
+
| Tabs | `activationMode="manual"` | dropped; Base UI defaults to MANUAL activation | remove prop; near-equivalent opt-in is `Tabs.List activateOnFocus` (behavior delta: flag, do not auto-add) |
|
|
21
|
+
| Select | `position="popper"\|"item-aligned"` | `alignItemWithTrigger` boolean (on Positioner; wrappers expose it) | `position="popper"` -> `alignItemWithTrigger={false}`; `item-aligned` -> `alignItemWithTrigger` (default) |
|
|
22
|
+
| TooltipProvider | `delayDuration`, `skipDelayDuration` | `delay`; skip-delay concept dropped | rename / remove |
|
|
23
|
+
| Tooltip | `disableHoverableContent` | NO equivalent | remove; FLAG the behavior change in the report |
|
|
24
|
+
| Avatar.Image | `delayMs` | `delay` | rename |
|
|
25
|
+
| ScrollArea | `type="always"\|"scroll"\|...` | dropped | remove |
|
|
26
|
+
| Separator | `decorative` | dropped | remove |
|
|
27
|
+
| Checkbox | `checked="indeterminate"` | `indeterminate` is a SEPARATE boolean prop | `checked="indeterminate"` -> `indeterminate` + boolean `checked` |
|
|
28
|
+
| Slider | `onValueChange(value)` | signature gains event details; also `inverted` REMOVED | check handler arity; remove `inverted` (flag vertical-inverted usage) |
|
|
29
|
+
| Select | `onValueChange(value: string)` | widens to `(value: Value \| null, eventDetails)` | `useState<string>` + `onValueChange={setState}` breaks: widen state to `string \| null` or wrap the setter |
|
|
30
|
+
| Slider | `onValueCommit` | `onValueCommitted` | rename |
|
|
31
|
+
| ToggleGroup | `type="single"\|"multiple"` | `multiple` boolean; value shape arrays | same treatment as Accordion |
|
|
32
|
+
| ToggleGroup / Toolbar | `rovingFocus={false}` | dropped (roving focus always on); `loop` -> `loopFocus` | remove / rename |
|
|
33
|
+
| Menubar | `value`/`onValueChange` (active menu) | dropped; control per Menu.Root `open` | restructure if used; usually unused |
|
|
34
|
+
| Menubar | `loop` | `loopFocus` | rename |
|
|
35
|
+
| ContextMenu.Root | `modal` | REMOVED | remove |
|
|
36
|
+
| ContextMenu.Trigger | `disabled` | REMOVED | remove; gate the trigger yourself |
|
|
37
|
+
| DropdownMenu/ContextMenu items | (Radix closed menu on select) | `closeOnClick` defaults FALSE on CheckboxItem/RadioItem | behavior delta: flag; add `closeOnClick` only if the user asks |
|
|
38
|
+
| NavigationMenu | `delayDuration`(200), `skipDelayDuration`, `viewport` | `delay`(50) + `closeDelay`; viewport prop gone (Positioner handles it) | rename/remove; flag the 200->50 hover-delay feel change |
|
|
39
|
+
| Popover / HoverCard | `openDelay`/`closeDelay` on Root | move to TRIGGER as `delay`/`closeDelay` | relocate props Root -> Trigger |
|
|
40
|
+
| Dialog / AlertDialog | `onOpenAutoFocus` | `initialFocus` (element/ref-based, not event-based) | restructure: pass target instead of preventDefault handler |
|
|
41
|
+
| Dialog / AlertDialog | `onCloseAutoFocus` | `finalFocus` | same restructure |
|
|
42
|
+
| Dialog family | `onEscapeKeyDown`, `onPointerDownOutside`, `onInteractOutside` | consolidated; see the overlays reference for exact per-part signatures | consult overlays.md; do not guess |
|
|
43
|
+
| DirectionProvider | `dir` | `direction` | rename |
|
|
44
|
+
|
|
45
|
+
## Callback signature rule
|
|
46
|
+
|
|
47
|
+
Base UI callbacks commonly gain an event-details argument:
|
|
48
|
+
`onOpenChange(open, eventDetails)`, `onValueChange(value, eventDetails)`.
|
|
49
|
+
Passing an existing single-arg handler stays type-safe; handlers that USED
|
|
50
|
+
Radix's event parameter need review against the family reference file.
|
|
51
|
+
|
|
52
|
+
## Sweep procedure
|
|
53
|
+
|
|
54
|
+
1. grep app code (outside components/ui) for each LHS token above plus
|
|
55
|
+
`asChild`.
|
|
56
|
+
2. Fix call sites file by file; typecheck after each file.
|
|
57
|
+
3. Anything on this list marked FLAG goes into the migration report as a
|
|
58
|
+
behavior delta, never silently patched.
|