From abf36c62938f9b12811bd9f242548ed6362d1b7f Mon Sep 17 00:00:00 2001 From: riccardoperra Date: Sun, 29 Nov 2026 01:56:35 +0100 Subject: [PATCH] chore: rename the Solid component package --- .changeset/calm-tokens-entry.md | 4 +- .changeset/clean-kit-manifest.md | 2 +- .changeset/combobox-parts.md | 4 +- .changeset/combobox-ready.md | 2 +- .changeset/command-menu-parts.md | 4 +- .changeset/command-menu.md | 2 +- .changeset/control-aria-forwarding.md | 2 +- .changeset/control-size-scale.md | 2 +- .changeset/design-guide-from-sessions.md | 2 +- .changeset/fix-kit-component-bugs.md | 2 +- .changeset/fix-kit-high-findings.md | 2 +- .changeset/hover-card-resizable.md | 4 +- .changeset/hover-card-shared-surface.md | 2 +- .changeset/hovercard-controlled-closed.md | 2 +- .changeset/inkstone-design-spec.md | 2 +- .changeset/jsx-props-once.md | 2 +- .changeset/kit-alert-toast-parts.md | 4 +- .changeset/kit-avatar-hovercard.md | 4 +- .changeset/kit-codeimage-primary.md | 2 +- .changeset/kit-component-subpaths.md | 6 +- .changeset/kit-controls-parity.md | 2 +- .changeset/kit-dialog-layouts.md | 2 +- .changeset/kit-display-primitives.md | 4 +- .changeset/kit-overlay-parts.md | 4 +- .changeset/kit-sheet-drag.md | 4 +- .changeset/kit-sheet.md | 4 +- .changeset/kit-toaster.md | 2 +- .changeset/kit-token-contract.md | 2 +- .changeset/kobalte-0-13-14.md | 2 +- .changeset/light-palette-ramp.md | 2 +- .changeset/lowercase-style-names.md | 2 +- .changeset/native-table.md | 2 +- .changeset/one-brand-blue.md | 2 +- .changeset/option-card.md | 2 +- .changeset/overlay-pop-motion.md | 2 +- .changeset/quiet-accordion.md | 2 +- .changeset/quiet-fields-forward.md | 2 +- .changeset/quiet-sliders-progress.md | 2 +- .changeset/quiet-tooltips-focus.md | 2 +- .changeset/select-listbox-reset.md | 2 +- .changeset/settings-row.md | 4 +- .changeset/solid-2.md | 4 +- .changeset/solid-static-styles.md | 2 +- .changeset/style-appearance-props.md | 2 +- .changeset/theme-two-tokens.md | 2 +- .changeset/tidy-stack-text.md | 2 +- .changeset/tidy-switches.md | 2 +- .changeset/tooltip-empty-content.md | 2 +- .changeset/tooltip-provider-defaults.md | 4 +- .changeset/vitest-browser-bugs.md | 2 +- .claude/skills/verify-codeui/SKILL.md | 4 +- .../skills/verify-codeui/features/README.md | 4 +- .../skills/verify-codeui/features/overlays.md | 4 +- .github/workflows/package-preview.yml | 8 +- AGENTS.md | 2 +- apps/docs/README.md | 2 +- apps/docs/content/docs/(kit)/agents.mdx | 20 +-- .../docs/(kit)/components/accordion.mdx | 4 +- .../content/docs/(kit)/components/alert.mdx | 2 +- .../content/docs/(kit)/components/avatar.mdx | 2 +- .../content/docs/(kit)/components/badge.mdx | 2 +- .../content/docs/(kit)/components/button.mdx | 2 +- .../docs/(kit)/components/checkbox.mdx | 2 +- .../docs/(kit)/components/combobox.mdx | 10 +- .../docs/(kit)/components/command-menu.mdx | 8 +- .../content/docs/(kit)/components/dialog.mdx | 6 +- .../docs/(kit)/components/dropdown-menu.mdx | 10 +- .../docs/(kit)/components/hover-card.mdx | 2 +- .../content/docs/(kit)/components/kbd.mdx | 6 +- .../content/docs/(kit)/components/listbox.mdx | 2 +- .../docs/(kit)/components/number-field.mdx | 2 +- .../docs/(kit)/components/option-card.mdx | 4 +- .../docs/(kit)/components/pagination.mdx | 2 +- .../content/docs/(kit)/components/popover.mdx | 6 +- .../docs/(kit)/components/progress.mdx | 6 +- .../docs/(kit)/components/radio-list.mdx | 2 +- .../docs/(kit)/components/resizable.mdx | 2 +- .../(kit)/components/segmented-control.mdx | 2 +- .../content/docs/(kit)/components/select.mdx | 6 +- .../docs/(kit)/components/settings-row.mdx | 6 +- .../content/docs/(kit)/components/sheet.mdx | 4 +- .../docs/(kit)/components/skeleton.mdx | 2 +- .../content/docs/(kit)/components/slider.mdx | 2 +- .../content/docs/(kit)/components/spinner.mdx | 2 +- .../content/docs/(kit)/components/stack.mdx | 4 +- .../content/docs/(kit)/components/switch.mdx | 2 +- .../content/docs/(kit)/components/table.mdx | 2 +- .../content/docs/(kit)/components/tabs.mdx | 6 +- .../docs/(kit)/components/text-area.mdx | 2 +- .../docs/(kit)/components/text-field.mdx | 4 +- .../content/docs/(kit)/components/text.mdx | 6 +- .../content/docs/(kit)/components/toast.mdx | 2 +- .../content/docs/(kit)/components/tooltip.mdx | 6 +- .../(kit)/components/virtualized-listbox.mdx | 2 +- .../(kit)/contributing/add-a-component.mdx | 12 +- .../(kit)/contributing/add-docs-and-demos.mdx | 10 +- .../verify-accessibility-and-ssr.mdx | 4 +- .../docs/(kit)/foundations/accessibility.mdx | 2 +- .../content/docs/(kit)/foundations/tokens.mdx | 2 +- apps/docs/content/docs/(kit)/index.mdx | 6 +- apps/docs/content/docs/(kit)/installation.mdx | 6 +- .../content/docs/(kit)/migration/from-0-1.mdx | 34 ++-- .../(kit)/migration/from-codeimage-ui.mdx | 10 +- .../(kit)/patterns/compose-styled-parts.mdx | 14 +- .../content/docs/(kit)/ready-or-parts.mdx | 4 +- .../content/docs/(kit)/utilities/classes.mdx | 4 +- .../docs/(kit)/utilities/control-helpers.mdx | 10 +- .../docs/(kit)/utilities/field-helpers.mdx | 8 +- .../content/docs/(kit)/utilities/icons.mdx | 2 +- .../utilities/options-and-collections.mdx | 12 +- .../docs/(kit)/utilities/styles-reference.mdx | 52 +++--- .../docs/(kit)/utilities/token-exports.mdx | 28 +-- apps/docs/content/docs/css/index.mdx | 6 +- apps/docs/content/docs/design/index.mdx | 6 +- apps/docs/export-manifest.json | 170 +++++++++--------- apps/docs/src/lib/llms.ts | 12 +- apps/docs/src/routes/__root.tsx | 2 +- apps/docs/src/routes/examples.tsx | 2 +- apps/docs/src/routes/index.tsx | 2 +- apps/examples/README.md | 4 +- apps/examples/package.json | 2 +- apps/examples/src/dashboard/App.tsx | 2 +- apps/examples/src/dashboard/CustomerSheet.tsx | 2 +- apps/examples/src/dashboard/Customers.tsx | 2 +- apps/examples/src/dashboard/Overview.tsx | 2 +- apps/examples/src/dashboard/Settings.tsx | 4 +- apps/examples/src/dashboard/pulse.ts | 2 +- apps/examples/src/finance/AddTransaction.tsx | 2 +- apps/examples/src/finance/App.tsx | 2 +- apps/examples/src/finance/Overview.tsx | 2 +- apps/examples/src/finance/Planning.tsx | 2 +- apps/examples/src/finance/Transactions.tsx | 2 +- apps/examples/src/finance/ledger.ts | 2 +- apps/examples/src/gallery/main.tsx | 4 +- apps/examples/src/inspector/App.tsx | 2 +- apps/examples/src/inspector/InspectorDock.tsx | 2 +- apps/examples/src/inspector/LoadLab.tsx | 2 +- apps/examples/src/inspector/Outline.tsx | 2 +- apps/examples/src/inspector/Scenarios.tsx | 2 +- apps/examples/src/inspector/SidePanel.tsx | 2 +- apps/examples/src/inspector/Toolbar.tsx | 2 +- apps/examples/src/inspector/bench.ts | 2 +- apps/examples/src/shared/ExampleMenu.tsx | 2 +- apps/examples/src/theme-studio/App.tsx | 2 +- apps/examples/src/theme-studio/Colors.tsx | 2 +- .../src/theme-studio/ExportDialog.tsx | 4 +- apps/examples/src/theme-studio/Panel.tsx | 2 +- apps/examples/src/theme-studio/studio.ts | 2 +- docs/kit-2026/consumer.md | 2 +- docs/kit-2026/static-styles.md | 2 +- examples/consumer-ssr/App.jsx | 8 +- examples/consumer-ssr/vite.config.js | 2 +- examples/consumer-vite/App.jsx | 8 +- examples/run-consumer-check.mjs | 18 +- package.json | 4 +- packages/docs-demos/package.json | 2 +- .../demos/accessibility/accessible-names.tsx | 2 +- .../src/demos/accessibility/contrast.tsx | 2 +- .../src/demos/accessibility/focus-ring.tsx | 2 +- .../src/demos/accordion/anatomy.tsx | 2 +- .../docs-demos/src/demos/accordion/basic.tsx | 2 +- .../src/demos/accordion/controlled.tsx | 2 +- .../src/demos/accordion/density.tsx | 2 +- .../docs-demos/src/demos/accordion/motion.tsx | 2 +- .../src/demos/accordion/multiple.tsx | 2 +- .../src/demos/accordion/required.tsx | 2 +- .../src/demos/accordion/retained.tsx | 2 +- .../src/demos/agents/export-panel.tsx | 2 +- .../docs-demos/src/demos/alert/actions.tsx | 2 +- .../docs-demos/src/demos/alert/anatomy.tsx | 2 +- packages/docs-demos/src/demos/alert/basic.tsx | 2 +- packages/docs-demos/src/demos/alert/fluid.tsx | 2 +- packages/docs-demos/src/demos/alert/icons.tsx | 2 +- packages/docs-demos/src/demos/alert/tones.tsx | 2 +- .../docs-demos/src/demos/avatar/anatomy.tsx | 2 +- .../docs-demos/src/demos/avatar/basic.tsx | 2 +- packages/docs-demos/src/demos/avatar/hue.tsx | 2 +- .../docs-demos/src/demos/avatar/in-row.tsx | 2 +- .../docs-demos/src/demos/avatar/sizes.tsx | 2 +- .../docs-demos/src/demos/avatar/states.tsx | 2 +- .../docs-demos/src/demos/badge/anatomy.tsx | 2 +- packages/docs-demos/src/demos/badge/basic.tsx | 2 +- .../docs-demos/src/demos/badge/rich-label.tsx | 2 +- packages/docs-demos/src/demos/badge/sizes.tsx | 2 +- packages/docs-demos/src/demos/badge/tones.tsx | 2 +- .../docs-demos/src/demos/badge/variants.tsx | 2 +- .../src/demos/build-forms/export-form.tsx | 2 +- .../src/demos/build-settings/basic.tsx | 4 +- packages/docs-demos/src/demos/button.tsx | 2 +- .../docs-demos/src/demos/button/anatomy.tsx | 2 +- .../docs-demos/src/demos/button/as-link.tsx | 2 +- .../docs-demos/src/demos/button/basic.tsx | 2 +- .../docs-demos/src/demos/button/block.tsx | 2 +- .../src/demos/button/composition.tsx | 2 +- .../docs-demos/src/demos/button/disabled.tsx | 2 +- .../docs-demos/src/demos/button/ghost.tsx | 2 +- .../docs-demos/src/demos/button/icons.tsx | 2 +- .../docs-demos/src/demos/button/loading.tsx | 2 +- packages/docs-demos/src/demos/button/pill.tsx | 2 +- .../docs-demos/src/demos/button/sizes.tsx | 2 +- .../docs-demos/src/demos/button/themes.tsx | 2 +- .../src/demos/cascade-layers/app-override.tsx | 2 +- .../demos/cascade-layers/unlayered-reset.tsx | 2 +- packages/docs-demos/src/demos/checkbox.tsx | 2 +- .../docs-demos/src/demos/checkbox/anatomy.tsx | 2 +- .../docs-demos/src/demos/checkbox/basic.tsx | 2 +- .../src/demos/checkbox/controlled.tsx | 2 +- .../src/demos/checkbox/disabled.tsx | 2 +- .../docs-demos/src/demos/checkbox/form.tsx | 2 +- .../src/demos/checkbox/indeterminate.tsx | 2 +- .../docs-demos/src/demos/checkbox/invalid.tsx | 2 +- .../src/demos/checkbox/read-only.tsx | 2 +- .../src/demos/checkbox/required.tsx | 2 +- .../docs-demos/src/demos/checkbox/sizes.tsx | 2 +- .../docs-demos/src/demos/classes/field.tsx | 2 +- .../docs-demos/src/demos/combobox/anatomy.tsx | 4 +- .../docs-demos/src/demos/combobox/basic.tsx | 2 +- .../docs-demos/src/demos/combobox/classes.tsx | 2 +- .../src/demos/combobox/controlled-clear.tsx | 2 +- .../src/demos/combobox/controlled.tsx | 2 +- .../src/demos/combobox/description.tsx | 2 +- .../src/demos/combobox/disabled.tsx | 2 +- .../docs-demos/src/demos/combobox/empty.tsx | 2 +- .../src/demos/combobox/filtering.tsx | 2 +- .../docs-demos/src/demos/combobox/form.tsx | 2 +- .../src/demos/combobox/input-value.tsx | 2 +- .../docs-demos/src/demos/combobox/invalid.tsx | 2 +- .../src/demos/combobox/object-options.tsx | 2 +- .../docs-demos/src/demos/combobox/parts.tsx | 4 +- .../src/demos/combobox/raw-objects.tsx | 2 +- .../src/demos/combobox/read-only.tsx | 2 +- .../docs-demos/src/demos/combobox/sizes.tsx | 2 +- .../docs-demos/src/demos/combobox/styles.tsx | 2 +- .../src/demos/command-menu/anatomy.tsx | 4 +- .../src/demos/command-menu/basic.tsx | 2 +- .../src/demos/command-menu/empty.tsx | 2 +- .../src/demos/command-menu/groups.tsx | 2 +- .../src/demos/command-menu/parts.tsx | 4 +- .../compose-styled-parts/editor-toolbar.tsx | 2 +- .../demos/compose-styled-parts/override.tsx | 2 +- .../src/demos/compose-styled-parts/parts.tsx | 4 +- .../src/demos/compose-styled-parts/ready.tsx | 2 +- .../src/demos/compose-styled-parts/styles.tsx | 4 +- .../demos/control-helpers/accordion-items.tsx | 2 +- .../control-helpers/option-card-items.tsx | 2 +- .../src/demos/control-helpers/slider.tsx | 4 +- .../src/demos/control-helpers/switch.tsx | 4 +- .../docs-demos/src/demos/dialog/anatomy.tsx | 4 +- .../docs-demos/src/demos/dialog/basic.tsx | 2 +- .../docs-demos/src/demos/dialog/classes.tsx | 2 +- .../docs-demos/src/demos/dialog/export.tsx | 4 +- .../src/demos/dialog/focus-return.tsx | 2 +- .../docs-demos/src/demos/dialog/inset.tsx | 2 +- .../docs-demos/src/demos/dialog/mount.tsx | 2 +- .../docs-demos/src/demos/dialog/overflow.tsx | 2 +- .../docs-demos/src/demos/dialog/parts.tsx | 4 +- .../src/demos/dialog/settings-layout.tsx | 4 +- .../docs-demos/src/demos/dialog/sizes.tsx | 2 +- .../demos/dialog/title-and-description.tsx | 2 +- .../src/demos/dropdown-menu/anatomy.tsx | 2 +- .../src/demos/dropdown-menu/basic.tsx | 2 +- .../src/demos/dropdown-menu/controlled.tsx | 2 +- .../src/demos/dropdown-menu/disabled.tsx | 2 +- .../src/demos/dropdown-menu/groups.tsx | 2 +- .../src/demos/dropdown-menu/icon-trigger.tsx | 2 +- .../src/demos/dropdown-menu/submenu.tsx | 2 +- .../src/demos/field-helpers/base-style.tsx | 2 +- .../src/demos/field-helpers/custom-field.tsx | 2 +- .../demos/first-component/export-screen.tsx | 2 +- .../src/demos/from-0-1/dialog-title.tsx | 2 +- .../src/demos/from-0-1/select-classes.tsx | 2 +- .../docs-demos/src/demos/from-0-1/tokens.tsx | 2 +- .../src/demos/from-codeimage-ui/controls.tsx | 2 +- .../src/demos/from-codeimage-ui/layout.tsx | 2 +- .../demos/from-codeimage-ui/option-card.tsx | 2 +- .../src/demos/from-codeimage-ui/theme.tsx | 2 +- .../src/demos/from-codeimage-ui/toast.tsx | 2 +- .../src/demos/hover-card/anatomy.tsx | 2 +- .../docs-demos/src/demos/hover-card/basic.tsx | 2 +- .../src/demos/hover-card/delays.tsx | 2 +- .../docs-demos/src/demos/hover-card/group.tsx | 2 +- .../docs-demos/src/demos/hover-card/list.tsx | 2 +- .../src/demos/hover-card/placements.tsx | 2 +- .../src/demos/hover-card/shared.tsx | 2 +- packages/docs-demos/src/demos/icon-button.tsx | 2 +- .../src/demos/icon-button/anatomy.tsx | 2 +- .../src/demos/icon-button/as-link.tsx | 2 +- .../src/demos/icon-button/basic.tsx | 2 +- .../src/demos/icon-button/block.tsx | 2 +- .../src/demos/icon-button/composition.tsx | 2 +- .../src/demos/icon-button/disabled.tsx | 2 +- .../src/demos/icon-button/ghost.tsx | 2 +- .../src/demos/icon-button/loading.tsx | 2 +- .../docs-demos/src/demos/icon-button/pill.tsx | 2 +- .../src/demos/icon-button/sizes.tsx | 2 +- .../src/demos/icon-button/themes.tsx | 2 +- .../docs-demos/src/demos/icons/gallery.tsx | 2 +- .../docs-demos/src/demos/icons/labeling.tsx | 2 +- packages/docs-demos/src/demos/kbd/anatomy.tsx | 2 +- packages/docs-demos/src/demos/kbd/basic.tsx | 2 +- packages/docs-demos/src/demos/kbd/chord.tsx | 2 +- .../docs-demos/src/demos/kbd/in-button.tsx | 2 +- packages/docs-demos/src/demos/kbd/in-menu.tsx | 2 +- packages/docs-demos/src/demos/kbd/keys.tsx | 2 +- .../docs-demos/src/demos/kbd/platform.tsx | 2 +- packages/docs-demos/src/demos/kbd/size.tsx | 2 +- packages/docs-demos/src/demos/kbd/variant.tsx | 2 +- packages/docs-demos/src/demos/link.tsx | 2 +- .../docs-demos/src/demos/link/anatomy.tsx | 2 +- packages/docs-demos/src/demos/link/basic.tsx | 2 +- .../docs-demos/src/demos/link/composition.tsx | 2 +- .../docs-demos/src/demos/link/disabled.tsx | 2 +- .../docs-demos/src/demos/link/variants.tsx | 2 +- packages/docs-demos/src/demos/listbox.tsx | 2 +- .../docs-demos/src/demos/listbox/anatomy.tsx | 2 +- .../docs-demos/src/demos/listbox/basic.tsx | 2 +- .../src/demos/listbox/customization.tsx | 2 +- .../docs-demos/src/demos/listbox/empty.tsx | 2 +- .../docs-demos/src/demos/listbox/sections.tsx | 2 +- .../src/demos/listbox/selection.tsx | 2 +- .../docs-demos/src/demos/listbox/sizes.tsx | 2 +- .../docs-demos/src/demos/motion/durations.tsx | 2 +- .../docs-demos/src/demos/motion/keyboard.tsx | 2 +- .../src/demos/motion/own-transition.tsx | 2 +- .../nest-overlays/keep-open-on-escape.tsx | 2 +- .../demos/nest-overlays/menu-in-dialog.tsx | 2 +- .../nest-overlays/segmented-in-dialog.tsx | 2 +- .../src/demos/number-field/anatomy.tsx | 2 +- .../src/demos/number-field/basic.tsx | 2 +- .../src/demos/number-field/bounds.tsx | 2 +- .../src/demos/number-field/invalid.tsx | 2 +- .../src/demos/number-field/precision.tsx | 2 +- .../src/demos/number-field/prefix-postfix.tsx | 2 +- .../src/demos/number-field/sizes.tsx | 2 +- .../src/demos/number-field/states.tsx | 2 +- .../src/demos/number-field/themes.tsx | 2 +- .../src/demos/option-card/anatomy.tsx | 4 +- .../src/demos/option-card/basic.tsx | 2 +- .../src/demos/option-card/controlled.tsx | 2 +- .../src/demos/option-card/disabled.tsx | 2 +- .../src/demos/option-card/invalid.tsx | 2 +- .../src/demos/option-card/long-labels.tsx | 2 +- .../src/demos/option-card/navigation.tsx | 2 +- .../src/demos/option-card/parts.tsx | 4 +- .../src/demos/option-card/read-only.tsx | 2 +- .../src/demos/option-card/themes.tsx | 2 +- .../src/demos/option-card/vertical.tsx | 2 +- .../combobox-options.tsx | 2 +- .../filter-command-items.tsx | 2 +- .../options-and-collections/reactive.tsx | 2 +- .../select-options.tsx | 2 +- packages/docs-demos/src/demos/pagination.tsx | 2 +- .../src/demos/pagination/anatomy.tsx | 2 +- .../docs-demos/src/demos/pagination/basic.tsx | 2 +- .../src/demos/pagination/boundaries.tsx | 2 +- .../docs-demos/src/demos/pagination/sizes.tsx | 2 +- .../src/demos/pagination/window.tsx | 2 +- .../docs-demos/src/demos/popover/anatomy.tsx | 4 +- .../docs-demos/src/demos/popover/anchor.tsx | 4 +- .../docs-demos/src/demos/popover/basic.tsx | 2 +- .../docs-demos/src/demos/popover/bordered.tsx | 2 +- .../docs-demos/src/demos/popover/gutter.tsx | 2 +- .../docs-demos/src/demos/popover/parts.tsx | 4 +- .../src/demos/popover/placements.tsx | 2 +- .../src/demos/popover/rich-content.tsx | 2 +- .../docs-demos/src/demos/progress/anatomy.tsx | 2 +- .../docs-demos/src/demos/progress/basic.tsx | 2 +- .../src/demos/progress/custom-value.tsx | 2 +- .../docs-demos/src/demos/progress/sizes.tsx | 2 +- .../docs-demos/src/demos/progress/states.tsx | 4 +- packages/docs-demos/src/demos/radio-list.tsx | 2 +- .../src/demos/radio-list/anatomy.tsx | 2 +- .../docs-demos/src/demos/radio-list/basic.tsx | 2 +- .../src/demos/radio-list/controlled.tsx | 2 +- .../src/demos/radio-list/disabled.tsx | 2 +- .../docs-demos/src/demos/radio-list/form.tsx | 2 +- .../src/demos/radio-list/horizontal.tsx | 2 +- .../src/demos/radio-list/invalid.tsx | 2 +- .../src/demos/radio-list/read-only.tsx | 2 +- .../src/demos/radio-list/required.tsx | 2 +- .../docs-demos/src/demos/radio-list/sizes.tsx | 2 +- .../src/demos/radio-list/vertical.tsx | 2 +- .../src/demos/ready-or-parts/parts.tsx | 2 +- .../src/demos/ready-or-parts/ready.tsx | 2 +- .../src/demos/resizable/anatomy.tsx | 2 +- .../docs-demos/src/demos/resizable/basic.tsx | 2 +- .../src/demos/resizable/collapsible.tsx | 2 +- .../src/demos/resizable/islands.tsx | 2 +- .../src/demos/resizable/sidebar.tsx | 2 +- .../src/demos/resizable/vertical.tsx | 2 +- .../src/demos/run-commands/aliases.tsx | 2 +- .../src/demos/run-commands/async.tsx | 2 +- .../src/demos/run-commands/grouped.tsx | 2 +- .../src/demos/run-commands/shortcut.tsx | 2 +- .../src/demos/segmented-control.tsx | 2 +- .../src/demos/segmented-control/anatomy.tsx | 2 +- .../src/demos/segmented-control/basic.tsx | 2 +- .../src/demos/segmented-control/bordered.tsx | 2 +- .../demos/segmented-control/controlled.tsx | 2 +- .../src/demos/segmented-control/dialog.tsx | 2 +- .../src/demos/segmented-control/disabled.tsx | 2 +- .../segmented-control/escape-cancelled.tsx | 2 +- .../src/demos/segmented-control/fluid.tsx | 2 +- .../src/demos/segmented-control/form.tsx | 2 +- .../demos/segmented-control/pill-bordered.tsx | 2 +- .../src/demos/segmented-control/pill.tsx | 2 +- .../src/demos/segmented-control/primary.tsx | 2 +- .../src/demos/segmented-control/sizes.tsx | 2 +- .../src/demos/segmented-control/solid.tsx | 2 +- .../docs-demos/src/demos/select/anatomy.tsx | 2 +- .../docs-demos/src/demos/select/basic.tsx | 2 +- .../docs-demos/src/demos/select/classes.tsx | 2 +- .../src/demos/select/description.tsx | 2 +- .../src/demos/select/disabled-options.tsx | 2 +- .../docs-demos/src/demos/select/disabled.tsx | 2 +- .../docs-demos/src/demos/select/empty.tsx | 2 +- packages/docs-demos/src/demos/select/form.tsx | 2 +- .../docs-demos/src/demos/select/invalid.tsx | 2 +- .../docs-demos/src/demos/select/multiple.tsx | 2 +- .../src/demos/select/object-options.tsx | 2 +- .../src/demos/select/raw-objects.tsx | 2 +- .../docs-demos/src/demos/select/read-only.tsx | 2 +- .../docs-demos/src/demos/select/sizes.tsx | 2 +- .../docs-demos/src/demos/select/themes.tsx | 2 +- .../src/demos/select/uncontrolled.tsx | 2 +- .../src/demos/settings-row/anatomy.tsx | 4 +- .../src/demos/settings-row/basic.tsx | 2 +- .../demos/settings-row/compact-control.tsx | 2 +- .../src/demos/settings-row/disabled.tsx | 2 +- .../src/demos/settings-row/long-labels.tsx | 2 +- .../src/demos/settings-row/markers.tsx | 2 +- .../src/demos/settings-row/native-label.tsx | 2 +- .../src/demos/settings-row/parts.tsx | 4 +- .../src/demos/settings-row/wide.tsx | 2 +- .../docs-demos/src/demos/sheet/anatomy.tsx | 4 +- packages/docs-demos/src/demos/sheet/basic.tsx | 2 +- .../docs-demos/src/demos/sheet/docked.tsx | 4 +- .../docs-demos/src/demos/sheet/draggable.tsx | 2 +- .../docs-demos/src/demos/sheet/motion.tsx | 2 +- .../docs-demos/src/demos/sheet/nonmodal.tsx | 2 +- packages/docs-demos/src/demos/sheet/parts.tsx | 4 +- packages/docs-demos/src/demos/sheet/sides.tsx | 2 +- .../demos/show-notifications/app-setup.tsx | 2 +- .../demos/show-notifications/export-flow.tsx | 2 +- .../src/demos/showcase/accordion.tsx | 2 +- .../docs-demos/src/demos/showcase/alerts.tsx | 2 +- .../docs-demos/src/demos/showcase/badges.tsx | 2 +- .../docs-demos/src/demos/showcase/buttons.tsx | 2 +- .../src/demos/showcase/checkbox.tsx | 2 +- .../src/demos/showcase/command-menu.tsx | 2 +- .../src/demos/showcase/icon-buttons.tsx | 2 +- .../src/demos/showcase/invite-form.tsx | 2 +- .../docs-demos/src/demos/showcase/members.tsx | 2 +- .../src/demos/showcase/overlays.tsx | 2 +- .../src/demos/showcase/pagination.tsx | 2 +- .../src/demos/showcase/preferences.tsx | 2 +- .../src/demos/showcase/progress.tsx | 2 +- .../src/demos/showcase/radio-list.tsx | 2 +- .../src/demos/showcase/settings.tsx | 2 +- .../docs-demos/src/demos/showcase/tabs.tsx | 2 +- .../docs-demos/src/demos/showcase/text.tsx | 2 +- .../src/demos/showcase/window-style.tsx | 2 +- .../docs-demos/src/demos/skeleton/anatomy.tsx | 2 +- .../src/demos/skeleton/animation.tsx | 2 +- .../docs-demos/src/demos/skeleton/basic.tsx | 2 +- .../src/demos/skeleton/revealed.tsx | 2 +- .../docs-demos/src/demos/skeleton/shapes.tsx | 2 +- .../docs-demos/src/demos/slider/anatomy.tsx | 2 +- .../docs-demos/src/demos/slider/basic.tsx | 2 +- .../src/demos/slider/controlled.tsx | 2 +- .../docs-demos/src/demos/slider/disabled.tsx | 2 +- packages/docs-demos/src/demos/slider/form.tsx | 2 +- .../docs-demos/src/demos/slider/invalid.tsx | 2 +- .../docs-demos/src/demos/slider/read-only.tsx | 2 +- .../docs-demos/src/demos/slider/required.tsx | 2 +- .../src/demos/slider/value-label.tsx | 2 +- .../docs-demos/src/demos/slider/vertical.tsx | 2 +- .../docs-demos/src/demos/spinner/anatomy.tsx | 2 +- .../docs-demos/src/demos/spinner/basic.tsx | 2 +- .../src/demos/spinner/busy-button.tsx | 2 +- .../docs-demos/src/demos/spinner/sizes.tsx | 2 +- packages/docs-demos/src/demos/stack/align.tsx | 2 +- .../docs-demos/src/demos/stack/anatomy.tsx | 2 +- packages/docs-demos/src/demos/stack/as.tsx | 2 +- packages/docs-demos/src/demos/stack/basic.tsx | 2 +- .../docs-demos/src/demos/stack/direction.tsx | 2 +- packages/docs-demos/src/demos/stack/gap.tsx | 2 +- .../docs-demos/src/demos/stack/justify.tsx | 2 +- packages/docs-demos/src/demos/stack/parts.tsx | 4 +- .../src/demos/stack/settings-row.tsx | 2 +- .../docs-demos/src/demos/stack/styles.tsx | 2 +- packages/docs-demos/src/demos/stack/wrap.tsx | 2 +- .../src/demos/styles-reference/part.tsx | 2 +- .../docs-demos/src/demos/switch/anatomy.tsx | 2 +- .../docs-demos/src/demos/switch/basic.tsx | 2 +- .../src/demos/switch/controlled.tsx | 2 +- .../docs-demos/src/demos/switch/disabled.tsx | 2 +- packages/docs-demos/src/demos/switch/form.tsx | 2 +- .../docs-demos/src/demos/switch/invalid.tsx | 2 +- .../docs-demos/src/demos/switch/read-only.tsx | 2 +- .../docs-demos/src/demos/switch/required.tsx | 2 +- .../docs-demos/src/demos/switch/sizes.tsx | 2 +- packages/docs-demos/src/demos/table/basic.tsx | 2 +- packages/docs-demos/src/demos/tabs-inline.tsx | 2 +- packages/docs-demos/src/demos/tabs.tsx | 2 +- .../docs-demos/src/demos/tabs/anatomy.tsx | 2 +- packages/docs-demos/src/demos/tabs/basic.tsx | 2 +- .../docs-demos/src/demos/tabs/dynamic.tsx | 2 +- packages/docs-demos/src/demos/tabs/inline.tsx | 2 +- packages/docs-demos/src/demos/tabs/manual.tsx | 2 +- .../docs-demos/src/demos/tabs/vertical.tsx | 2 +- .../src/demos/text-area/anatomy.tsx | 2 +- .../src/demos/text-area/auto-resize.tsx | 2 +- .../docs-demos/src/demos/text-area/basic.tsx | 2 +- .../src/demos/text-area/classes.tsx | 2 +- .../src/demos/text-area/invalid.tsx | 2 +- .../docs-demos/src/demos/text-area/sizes.tsx | 2 +- .../docs-demos/src/demos/text-area/states.tsx | 2 +- .../docs-demos/src/demos/text-area/themes.tsx | 2 +- .../src/demos/text-field/anatomy.tsx | 2 +- .../docs-demos/src/demos/text-field/basic.tsx | 2 +- .../src/demos/text-field/classes.tsx | 2 +- .../src/demos/text-field/controlled.tsx | 2 +- .../src/demos/text-field/description.tsx | 2 +- .../src/demos/text-field/input-attributes.tsx | 2 +- .../src/demos/text-field/invalid.tsx | 2 +- .../docs-demos/src/demos/text-field/sizes.tsx | 2 +- .../src/demos/text-field/ssr-ids.tsx | 2 +- .../src/demos/text-field/states.tsx | 2 +- .../src/demos/text-field/themes.tsx | 2 +- .../docs-demos/src/demos/text/anatomy.tsx | 2 +- packages/docs-demos/src/demos/text/as.tsx | 2 +- packages/docs-demos/src/demos/text/basic.tsx | 2 +- packages/docs-demos/src/demos/text/size.tsx | 2 +- packages/docs-demos/src/demos/text/tone.tsx | 2 +- .../docs-demos/src/demos/text/truncate.tsx | 2 +- packages/docs-demos/src/demos/text/weight.tsx | 2 +- .../src/demos/theming/brand-override.tsx | 2 +- .../docs-demos/src/demos/theming/modes.tsx | 2 +- .../docs-demos/src/demos/theming/presets.tsx | 2 +- .../docs-demos/src/demos/toast/action.tsx | 2 +- .../docs-demos/src/demos/toast/anatomy.tsx | 4 +- packages/docs-demos/src/demos/toast/basic.tsx | 2 +- .../docs-demos/src/demos/toast/content.tsx | 2 +- .../docs-demos/src/demos/toast/controller.tsx | 2 +- .../docs-demos/src/demos/toast/duration.tsx | 2 +- .../docs-demos/src/demos/toast/isolated.tsx | 2 +- packages/docs-demos/src/demos/toast/parts.tsx | 4 +- .../docs-demos/src/demos/toast/positions.tsx | 4 +- .../docs-demos/src/demos/toast/promise.tsx | 2 +- packages/docs-demos/src/demos/toast/tones.tsx | 2 +- .../src/demos/token-exports/breakpoints.tsx | 2 +- .../src/demos/token-exports/inline-style.tsx | 2 +- .../docs-demos/src/demos/tokens/action.tsx | 2 +- .../docs-demos/src/demos/tokens/borders.tsx | 2 +- .../src/demos/tokens/control-heights.tsx | 2 +- .../docs-demos/src/demos/tokens/focus.tsx | 2 +- .../docs-demos/src/demos/tokens/motion.tsx | 2 +- .../docs-demos/src/demos/tokens/radii.tsx | 2 +- .../docs-demos/src/demos/tokens/shadows.tsx | 2 +- .../docs-demos/src/demos/tokens/spacing.tsx | 2 +- .../docs-demos/src/demos/tokens/status.tsx | 2 +- .../docs-demos/src/demos/tokens/surfaces.tsx | 2 +- packages/docs-demos/src/demos/tokens/text.tsx | 2 +- .../src/demos/tokens/type-scale.tsx | 2 +- .../docs-demos/src/demos/tokens/usage.tsx | 2 +- .../docs-demos/src/demos/tooltip/anatomy.tsx | 2 +- .../docs-demos/src/demos/tooltip/basic.tsx | 2 +- .../docs-demos/src/demos/tooltip/delays.tsx | 2 +- .../docs-demos/src/demos/tooltip/disabled.tsx | 2 +- .../src/demos/tooltip/icon-button.tsx | 2 +- .../src/demos/tooltip/placements.tsx | 2 +- .../docs-demos/src/demos/tooltip/themes.tsx | 2 +- .../typography-and-spacing/gap-scale.tsx | 2 +- .../typography-and-spacing/type-scale.tsx | 2 +- .../weights-and-tones.tsx | 2 +- .../src/demos/virtualized-listbox/anatomy.tsx | 2 +- .../src/demos/virtualized-listbox/basic.tsx | 2 +- .../src/demos/virtualized-listbox/empty.tsx | 2 +- .../src/demos/virtualized-listbox/sizes.tsx | 2 +- packages/docs-demos/src/props/accordion.ts | 4 +- packages/docs-demos/src/props/alert.ts | 4 +- packages/docs-demos/src/props/avatar.ts | 6 +- packages/docs-demos/src/props/badge.ts | 4 +- packages/docs-demos/src/props/button.ts | 2 +- packages/docs-demos/src/props/checkbox.ts | 2 +- packages/docs-demos/src/props/combobox.ts | 6 +- packages/docs-demos/src/props/command-menu.ts | 4 +- .../docs-demos/src/props/control-helpers.ts | 2 +- packages/docs-demos/src/props/dialog.ts | 4 +- .../docs-demos/src/props/dropdown-menu.ts | 2 +- .../docs-demos/src/props/field-helpers.ts | 2 +- packages/docs-demos/src/props/hover-card.ts | 2 +- packages/docs-demos/src/props/icon-button.ts | 2 +- packages/docs-demos/src/props/kbd.ts | 6 +- packages/docs-demos/src/props/link.ts | 2 +- packages/docs-demos/src/props/listbox.ts | 2 +- packages/docs-demos/src/props/number-field.ts | 2 +- packages/docs-demos/src/props/option-card.ts | 4 +- packages/docs-demos/src/props/pagination.ts | 2 +- packages/docs-demos/src/props/popover.ts | 4 +- packages/docs-demos/src/props/progress.ts | 4 +- packages/docs-demos/src/props/radio-list.ts | 2 +- packages/docs-demos/src/props/resizable.ts | 2 +- .../docs-demos/src/props/segmented-control.ts | 2 +- packages/docs-demos/src/props/select.ts | 2 +- packages/docs-demos/src/props/settings-row.ts | 4 +- packages/docs-demos/src/props/sheet.ts | 4 +- packages/docs-demos/src/props/skeleton.ts | 4 +- packages/docs-demos/src/props/slider.ts | 4 +- packages/docs-demos/src/props/spinner.ts | 4 +- packages/docs-demos/src/props/stack.ts | 2 +- packages/docs-demos/src/props/switch.ts | 4 +- packages/docs-demos/src/props/tabs.ts | 2 +- packages/docs-demos/src/props/text-area.ts | 2 +- packages/docs-demos/src/props/text-field.ts | 2 +- packages/docs-demos/src/props/text.ts | 2 +- packages/docs-demos/src/props/toast.ts | 4 +- packages/docs-demos/src/props/tooltip.ts | 2 +- .../src/props/virtualized-listbox.ts | 2 +- packages/inkstone/README.md | 2 +- packages/kit/CHANGELOG.md | 2 +- packages/kit/DESIGN.md | 4 +- packages/kit/README.md | 10 +- .../kit/fixtures/tokens-consumer/check.mjs | 4 +- .../fixtures/tokens-consumer/consumer.css.ts | 2 +- packages/kit/package.json | 2 +- .../SegmentedControlContext.tsx | 2 +- packages/kit/tsconfig.json | 2 +- packages/storybook/.storybook/main.ts | 18 +- packages/storybook/package.json | 2 +- .../src/stories/Accordion.stories.tsx | 4 +- .../storybook/src/stories/Alert.stories.tsx | 2 +- .../storybook/src/stories/Avatar.stories.tsx | 2 +- .../storybook/src/stories/Badge.stories.tsx | 2 +- .../storybook/src/stories/Button.stories.tsx | 2 +- .../src/stories/Checkbox.stories.tsx | 2 +- .../src/stories/Combobox.stories.tsx | 4 +- .../src/stories/CommandMenu.stories.tsx | 4 +- .../src/stories/ControlSizes.stories.tsx | 2 +- .../storybook/src/stories/Dialog.stories.tsx | 4 +- .../src/stories/DropdownMenu.stories.tsx | 2 +- .../src/stories/HoverCard.stories.tsx | 2 +- .../src/stories/IconButton.stories.tsx | 2 +- .../storybook/src/stories/Icons.stories.tsx | 2 +- .../storybook/src/stories/Kbd.stories.tsx | 2 +- .../storybook/src/stories/Link.stories.tsx | 2 +- .../storybook/src/stories/Listbox.stories.tsx | 2 +- .../src/stories/NumberField.stories.tsx | 2 +- .../src/stories/OptionCard.stories.tsx | 2 +- .../src/stories/Pagination.stories.tsx | 2 +- .../storybook/src/stories/Popover.stories.tsx | 4 +- .../src/stories/Progress.stories.tsx | 2 +- .../src/stories/RadioList.stories.tsx | 2 +- .../src/stories/Resizable.stories.tsx | 2 +- .../src/stories/SegmentedControl.stories.tsx | 2 +- .../storybook/src/stories/Select.stories.tsx | 2 +- .../src/stories/Settings.stories.tsx | 2 +- .../storybook/src/stories/Sheet.stories.tsx | 4 +- .../src/stories/Skeleton.stories.tsx | 2 +- .../storybook/src/stories/Slider.stories.tsx | 2 +- .../storybook/src/stories/Spinner.stories.tsx | 2 +- .../storybook/src/stories/Stack.stories.tsx | 2 +- .../storybook/src/stories/Switch.stories.tsx | 2 +- .../storybook/src/stories/Table.stories.tsx | 2 +- .../storybook/src/stories/Tabs.stories.tsx | 2 +- .../storybook/src/stories/Text.stories.tsx | 2 +- .../src/stories/TextArea.stories.tsx | 2 +- .../src/stories/TextField.stories.tsx | 2 +- .../storybook/src/stories/Toast.stories.tsx | 4 +- .../storybook/src/stories/Toaster.stories.tsx | 4 +- .../storybook/src/stories/Tooltip.stories.tsx | 2 +- .../src/stories/components/ShareIcon.tsx | 2 +- packages/storybook/tsconfig.json | 18 +- packages/storybook/vitest.config.ts | 4 +- packages/styles/README.md | 6 +- pnpm-lock.yaml | 6 +- tools/baseline/report.mjs | 2 +- tools/baseline/run.mjs | 2 +- tools/docs/check-llms.mjs | 2 +- tools/docs/coverage.mjs | 4 +- tools/docs/ia.mjs | 14 +- tools/docs/kit-exports.mjs | 4 +- tools/docs/manifest.mjs | 10 +- tools/docs/scaffold.mjs | 4 +- tools/styles/bundle-check.mjs | 8 +- tsconfig.json | 2 +- turbo.json | 4 +- 688 files changed, 1059 insertions(+), 1055 deletions(-) diff --git a/.changeset/calm-tokens-entry.md b/.changeset/calm-tokens-entry.md index bac9496b..984a18b5 100644 --- a/.changeset/calm-tokens-entry.md +++ b/.changeset/calm-tokens-entry.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- -Add a component-free `@codeui/kit/tokens` entry for vanilla-extract style files evaluated in Node. +Add a component-free `@codeui/solid/tokens` entry for vanilla-extract style files evaluated in Node. diff --git a/.changeset/clean-kit-manifest.md b/.changeset/clean-kit-manifest.md index 5921cae1..ef997336 100644 --- a/.changeset/clean-kit-manifest.md +++ b/.changeset/clean-kit-manifest.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": patch +"@codeui/solid": patch --- The published manifest no longer carries a local link and build-only dependencies, and types resolve under all module resolutions. diff --git a/.changeset/combobox-parts.md b/.changeset/combobox-parts.md index 844f8d5e..a093509a 100644 --- a/.changeset/combobox-parts.md +++ b/.changeset/combobox-parts.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- -Add styled Combobox parts at `@codeui/kit/combobox/parts`, `comboboxStyles` and the `createComboboxOptions` helper. +Add styled Combobox parts at `@codeui/solid/combobox/parts`, `comboboxStyles` and the `createComboboxOptions` helper. diff --git a/.changeset/combobox-ready.md b/.changeset/combobox-ready.md index a31606a7..7957419c 100644 --- a/.changeset/combobox-ready.md +++ b/.changeset/combobox-ready.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Add the ready `Combobox` with field content, controlled input text, rich option rendering and an empty state. diff --git a/.changeset/command-menu-parts.md b/.changeset/command-menu-parts.md index 69ab5a5c..19f90658 100644 --- a/.changeset/command-menu-parts.md +++ b/.changeset/command-menu-parts.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- -Add styled CommandMenu parts at `@codeui/kit/command-menu/parts` and `commandMenuStyles`, with a search field and an inline list that share the combobox highlight. +Add styled CommandMenu parts at `@codeui/solid/command-menu/parts` and `commandMenuStyles`, with a search field and an inline list that share the combobox highlight. diff --git a/.changeset/command-menu.md b/.changeset/command-menu.md index f6b64d50..e0549587 100644 --- a/.changeset/command-menu.md +++ b/.changeset/command-menu.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Add the `CommandMenu` component, a searchable command list in a dialog that previews on highlight and commits on Enter or click. diff --git a/.changeset/control-aria-forwarding.md b/.changeset/control-aria-forwarding.md index d692cd24..b4b5fe6f 100644 --- a/.changeset/control-aria-forwarding.md +++ b/.changeset/control-aria-forwarding.md @@ -1,4 +1,4 @@ --- -"@codeui/kit": patch +"@codeui/solid": patch --- Forward `aria-describedby` from Switch to its input, and `aria-label`, `aria-labelledby` and `aria-describedby` from SegmentedControl to its tab list. diff --git a/.changeset/control-size-scale.md b/.changeset/control-size-scale.md index a2ca0a01..2cbe0119 100644 --- a/.changeset/control-size-scale.md +++ b/.changeset/control-size-scale.md @@ -1,7 +1,7 @@ --- "@codeui/inkstone": minor "@codeui/styles": minor -"@codeui/kit": minor +"@codeui/solid": minor --- Align controls at 28px, 36px, 44px and 52px at comfortable density. Controls default to `sm` (36px). Coarse pointers use touch density. Set `data-cui-density` to `compact`, `comfortable`, or `touch` to select a density for a subtree. diff --git a/.changeset/design-guide-from-sessions.md b/.changeset/design-guide-from-sessions.md index a479c4bb..7f8c3382 100644 --- a/.changeset/design-guide-from-sessions.md +++ b/.changeset/design-guide-from-sessions.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": patch +"@codeui/solid": patch --- Extend the Inkstone guide with rules from CodeLoom reviews: a 6px gap between islands, hover cards instead of `title`, rows in a list, background work, technical values, avatars, forms, and loading without an empty flash. diff --git a/.changeset/fix-kit-component-bugs.md b/.changeset/fix-kit-component-bugs.md index 2654de32..167e723d 100644 --- a/.changeset/fix-kit-component-bugs.md +++ b/.changeset/fix-kit-component-bugs.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": patch +"@codeui/solid": patch --- Fix NumberField masking without a caller ref, Select option helper types and generated option keys, the PaginationProps export, and custom submenu gutters. diff --git a/.changeset/fix-kit-high-findings.md b/.changeset/fix-kit-high-findings.md index a4353c05..165caba7 100644 --- a/.changeset/fix-kit-high-findings.md +++ b/.changeset/fix-kit-high-findings.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": patch +"@codeui/solid": patch --- Select submits its value through `name` and no longer requires `aria-label` with a `label`, and `SelectProps` is exported. Token overrides on `:root` reach nested `[data-cui-theme]` scopes for tokens shared by both modes. NumberField is a `spinbutton`, respects `disabled` and `readOnly` in its step buttons and arrow keys, steps up to its bounds, and shows `0`. Clearing a controlled Combobox calls `onChange(null)`. A loading Button sets `aria-busy` and `aria-disabled` and ignores activation while keeping focus. diff --git a/.changeset/hover-card-resizable.md b/.changeset/hover-card-resizable.md index 9e6fef7d..81e41bba 100644 --- a/.changeset/hover-card-resizable.md +++ b/.changeset/hover-card-resizable.md @@ -1,9 +1,9 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor "@codeui/styles": minor --- -Add HoverCard (`@codeui/kit/hover-card`) and Resizable (`@codeui/kit/resizable`), with their styles in `@codeui/styles/hovercard` and `@codeui/styles/resizable`. +Add HoverCard (`@codeui/solid/hover-card`) and Resizable (`@codeui/solid/resizable`), with their styles in `@codeui/styles/hovercard` and `@codeui/styles/resizable`. - `HoverCard`, `HoverCardTrigger` and `HoverCardContent` show supplementary details on hover or keyboard focus. The card opens after 500ms, closes 150ms after the pointer leaves, closes on Escape, uses the Popover surface with a 320px max width, and does not animate when opened from the keyboard. - `Resizable`, `ResizablePanel` and `ResizableHandle` split a row or a column into panels sized by fractions or `"240px"` strings, with `minSize`, `maxSize` and `collapsible`. The handle is an 8px hit area with a 1px line that changes colour on hover, drag and focus, and it moves with the arrow keys, Home and End. diff --git a/.changeset/hover-card-shared-surface.md b/.changeset/hover-card-shared-surface.md index 11f39289..113c77f3 100644 --- a/.changeset/hover-card-shared-surface.md +++ b/.changeset/hover-card-shared-surface.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor "@codeui/styles": minor --- diff --git a/.changeset/hovercard-controlled-closed.md b/.changeset/hovercard-controlled-closed.md index f063d267..a8343c6c 100644 --- a/.changeset/hovercard-controlled-closed.md +++ b/.changeset/hovercard-controlled-closed.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": patch +"@codeui/solid": patch --- HoverCard no longer opens an empty card. With `open={false}` a second hover, focus or click left the shared surface open with nothing in it, and a card without `HoverCardContent` opened an empty surface too. Both now stay closed. diff --git a/.changeset/inkstone-design-spec.md b/.changeset/inkstone-design-spec.md index cd8650fd..49c77718 100644 --- a/.changeset/inkstone-design-spec.md +++ b/.changeset/inkstone-design-spec.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": patch +"@codeui/solid": patch --- Ship the Inkstone design specification as `DESIGN.md` in the package diff --git a/.changeset/jsx-props-once.md b/.changeset/jsx-props-once.md index f5e1267d..95de8cdb 100644 --- a/.changeset/jsx-props-once.md +++ b/.changeset/jsx-props-once.md @@ -1,4 +1,4 @@ --- -"@codeui/kit": patch +"@codeui/solid": patch --- Build each JSX content prop once, so server-rendered Alert, Badge, Button, Progress, Switch, Slider, OptionCardGroup and the form fields hydrate without a mismatch, and Select no longer writes an `errorMessage` attribute. diff --git a/.changeset/kit-alert-toast-parts.md b/.changeset/kit-alert-toast-parts.md index ec0f90af..3cde451b 100644 --- a/.changeset/kit-alert-toast-parts.md +++ b/.changeset/kit-alert-toast-parts.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- -Add `Alert` with its parts at `@codeui/kit/alert/parts`, and the styled toast parts at `@codeui/kit/toast/parts`. +Add `Alert` with its parts at `@codeui/solid/alert/parts`, and the styled toast parts at `@codeui/solid/toast/parts`. diff --git a/.changeset/kit-avatar-hovercard.md b/.changeset/kit-avatar-hovercard.md index bbe77593..adeb307a 100644 --- a/.changeset/kit-avatar-hovercard.md +++ b/.changeset/kit-avatar-hovercard.md @@ -1,9 +1,9 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor "@codeui/styles": minor --- -Add Avatar (`@codeui/kit/avatar`, styles in `@codeui/styles/avatar`) and bring HoverCard in line with the Inkstone guide. +Add Avatar (`@codeui/solid/avatar`, styles in `@codeui/styles/avatar`) and bring HoverCard in line with the Inkstone guide. - `Avatar` shows a person's picture, or one or two initials on a fill whose hue comes from a stable `identifier` (never the name). It has a full radius with a neutral 20% ring, sizes `xs` to `lg` from the shared control scale and density, the name as its accessible name and in the kit Tooltip, and a dashed `unassigned` state. `avatarHue` and `avatarInitials` are exported. - `HoverCard` opens at once on click as well as on hover and focus. On a touch screen the first tap on a link opens the card instead of following it. The default placement is `right-start` (it was `bottom`), and the card wraps long words. diff --git a/.changeset/kit-codeimage-primary.md b/.changeset/kit-codeimage-primary.md index 452bca55..f6ad016f 100644 --- a/.changeset/kit-codeimage-primary.md +++ b/.changeset/kit-codeimage-primary.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": patch +"@codeui/solid": patch --- The brand action and selection colors use the CodeImage primary (#09f, hover #08f, active #07f). diff --git a/.changeset/kit-component-subpaths.md b/.changeset/kit-component-subpaths.md index 919084ef..eff2b53e 100644 --- a/.changeset/kit-component-subpaths.md +++ b/.changeset/kit-component-subpaths.md @@ -1,9 +1,9 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- -Add direct imports for every ready component family, including `@codeui/kit/combobox`, `@codeui/kit/select`, and `@codeui/kit/button`. +Add direct imports for every ready component family, including `@codeui/solid/combobox`, `@codeui/solid/select`, and `@codeui/solid/button`. -Existing styled-parts imports must append `/parts`. For example, change `@codeui/kit/combobox` to `@codeui/kit/combobox/parts` when importing `Root`, `Input`, or other parts. The Select parts are available from `@codeui/kit/select/parts`. +Existing styled-parts imports must append `/parts`. For example, change `@codeui/solid/combobox` to `@codeui/solid/combobox/parts` when importing `Root`, `Input`, or other parts. The Select parts are available from `@codeui/solid/select/parts`. Compose custom primitives from the new parts entry points for Tabs, DropdownMenu, TextField, TextArea, NumberField, Checkbox, RadioList, Listbox, Tooltip, Pagination, and SegmentedControl. diff --git a/.changeset/kit-controls-parity.md b/.changeset/kit-controls-parity.md index a9f05703..544b73d4 100644 --- a/.changeset/kit-controls-parity.md +++ b/.changeset/kit-controls-parity.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Accordion, Switch, OptionCard, SegmentedControl, Slider, Tabs and form fields now match CodeImage's controls: the accordion opens on the first click and transitions its height, keyboard input never animates and pointer clicks show no focus ring, option cards get the inset selection ring and 68px preview well, every control sets its own line height, and part style functions honour their variants. diff --git a/.changeset/kit-dialog-layouts.md b/.changeset/kit-dialog-layouts.md index a16c3e89..bdf4a435 100644 --- a/.changeset/kit-dialog-layouts.md +++ b/.changeset/kit-dialog-layouts.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Add dialog layouts for CodeImage's settings and export dialogs: `settings` and `export` sizes, `chrome="inset"`, a split body, the `Sidebar`, `Nav`, `NavItem`, `Main` and `Section` parts, a phone gutter, and Pop motion with a fading scrim that stays still when opened from the keyboard. diff --git a/.changeset/kit-display-primitives.md b/.changeset/kit-display-primitives.md index 01dd6836..652bf7ac 100644 --- a/.changeset/kit-display-primitives.md +++ b/.changeset/kit-display-primitives.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- -Add `Kbd`, `Badge`, `Spinner` and `Skeleton`, with styled parts at `@codeui/kit/kbd/parts`, `@codeui/kit/badge/parts`, `@codeui/kit/spinner/parts` and `@codeui/kit/skeleton/parts`. +Add `Kbd`, `Badge`, `Spinner` and `Skeleton`, with styled parts at `@codeui/solid/kbd/parts`, `@codeui/solid/badge/parts`, `@codeui/solid/spinner/parts` and `@codeui/solid/skeleton/parts`. diff --git a/.changeset/kit-overlay-parts.md b/.changeset/kit-overlay-parts.md index d36c363b..4b8946e4 100644 --- a/.changeset/kit-overlay-parts.md +++ b/.changeset/kit-overlay-parts.md @@ -1,8 +1,8 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- -Add the `@codeui/kit/dialog/parts` and `@codeui/kit/popover/parts` subpaths with styled parts, part tables and part style functions. The ready `Dialog` and `Popover` are built from them and only gain options: +Add the `@codeui/solid/dialog/parts` and `@codeui/solid/popover/parts` subpaths with styled parts, part tables and part style functions. The ready `Dialog` and `Popover` are built from them and only gain options: - `Dialog`: `title` and the new `description` take JSX. New `closeLabel`, `mount`, `classes`, `aria-label` and content focus callbacks. Without a trigger, focus returns to the element that opened the dialog. - `PopoverContent`: `title` and the new `description` take JSX. New `mount` and `classes`. Children render in the content without a `

` wrapper, so block and grid children lay out as written. diff --git a/.changeset/kit-sheet-drag.md b/.changeset/kit-sheet-drag.md index 5f895ac1..92703697 100644 --- a/.changeset/kit-sheet-drag.md +++ b/.changeset/kit-sheet-drag.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- -Add drag to dismiss to `Sheet` with the new `draggable` prop and to the `Handle` part of `@codeui/kit/sheet/parts`, for bottom sheets. +Add drag to dismiss to `Sheet` with the new `draggable` prop and to the `Handle` part of `@codeui/solid/sheet/parts`, for bottom sheets. diff --git a/.changeset/kit-sheet.md b/.changeset/kit-sheet.md index 9e2bbbf2..cbaa2aee 100644 --- a/.changeset/kit-sheet.md +++ b/.changeset/kit-sheet.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- -Add the `Sheet` component and the `@codeui/kit/sheet/parts` parts, a dialog attached to the bottom, left or right edge that slides only on pointer opens and closes. +Add the `Sheet` component and the `@codeui/solid/sheet/parts` parts, a dialog attached to the bottom, left or right edge that slides only on pointer opens and closes. diff --git a/.changeset/kit-toaster.md b/.changeset/kit-toaster.md index d5fb9d05..f58bbee4 100644 --- a/.changeset/kit-toaster.md +++ b/.changeset/kit-toaster.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Add `Toaster` and `createToaster`, a scoped toast controller with tones, actions, promise states and per-app isolation. diff --git a/.changeset/kit-token-contract.md b/.changeset/kit-token-contract.md index c5121544..82732f21 100644 --- a/.changeset/kit-token-contract.md +++ b/.changeset/kit-token-contract.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Adopt one token contract as CSS custom properties, with the CodeImage look as the default theme. diff --git a/.changeset/kobalte-0-13-14.md b/.changeset/kobalte-0-13-14.md index c944a8d3..8dad5b3b 100644 --- a/.changeset/kobalte-0-13-14.md +++ b/.changeset/kobalte-0-13-14.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Upgrade `@kobalte/core` to 0.13.14 and `@kobalte/utils` to 0.9.2, which raises the `solid-js` peer dependency to `^1.9.8`. diff --git a/.changeset/light-palette-ramp.md b/.changeset/light-palette-ramp.md index a9aafa9c..48c73b11 100644 --- a/.changeset/light-palette-ramp.md +++ b/.changeset/light-palette-ramp.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Light theme greys come from one 12-step ramp (hue 255), light focus and links reach their contrast targets, and new tokens `surface.fieldHover`, `surface.track`, `text.tertiary` and `text.disabled` are added. diff --git a/.changeset/lowercase-style-names.md b/.changeset/lowercase-style-names.md index 0637e1e5..cd09cdf7 100644 --- a/.changeset/lowercase-style-names.md +++ b/.changeset/lowercase-style-names.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Rename the appearance `theme` prop to `variant`. This is a breaking change. diff --git a/.changeset/native-table.md b/.changeset/native-table.md index 9593c5cf..0595d90a 100644 --- a/.changeset/native-table.md +++ b/.changeset/native-table.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor "@codeui/styles": minor --- diff --git a/.changeset/one-brand-blue.md b/.changeset/one-brand-blue.md index 765a7364..300f3cfd 100644 --- a/.changeset/one-brand-blue.md +++ b/.changeset/one-brand-blue.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Use one brand blue, `#0083e5` in both themes, for filled buttons and every selected or checked control, including the Switch track and the Tabs indicator. diff --git a/.changeset/option-card.md b/.changeset/option-card.md index 1700ca46..06d105eb 100644 --- a/.changeset/option-card.md +++ b/.changeset/option-card.md @@ -1,4 +1,4 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Add accessible OptionCardGroup and OptionCard radio cards with previews, badges, and styled parts. diff --git a/.changeset/overlay-pop-motion.md b/.changeset/overlay-pop-motion.md index 143dc86e..6b81e79e 100644 --- a/.changeset/overlay-pop-motion.md +++ b/.changeset/overlay-pop-motion.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Popover, DropdownMenu, Select, Combobox and Tooltip now pop from their trigger and open in place from the keyboard, popovers and menus use CodeImage's floating surface and type, toasts rise in CodeImage's inverted theme 80px above the bottom, Tooltip describes its focusable child, and `TooltipProps`, `--cui-font-line-height-snug` and `--cui-motion-duration-rise` are exported. diff --git a/.changeset/quiet-accordion.md b/.changeset/quiet-accordion.md index f12f6f25..e4ea329d 100644 --- a/.changeset/quiet-accordion.md +++ b/.changeset/quiet-accordion.md @@ -1,4 +1,4 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Add accessible Accordion parts and a ready settings accordion with value summaries and input-aware motion. diff --git a/.changeset/quiet-fields-forward.md b/.changeset/quiet-fields-forward.md index 95237568..b80b1043 100644 --- a/.changeset/quiet-fields-forward.md +++ b/.changeset/quiet-fields-forward.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Forward input attributes, link SSR field labels, and accept rich descriptions and part classes. Forward RadioListItem props and preserve RadioList classes. Add Listbox and VirtualizedListbox class hooks. Keep SegmentedControl height intrinsic and release Escape to enclosing layers. diff --git a/.changeset/quiet-sliders-progress.md b/.changeset/quiet-sliders-progress.md index 2769fb78..687f1234 100644 --- a/.changeset/quiet-sliders-progress.md +++ b/.changeset/quiet-sliders-progress.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Add styled Slider and Progress parts and ready components with accessible field content and token-based styles. diff --git a/.changeset/quiet-tooltips-focus.md b/.changeset/quiet-tooltips-focus.md index dab40793..6a1db96b 100644 --- a/.changeset/quiet-tooltips-focus.md +++ b/.changeset/quiet-tooltips-focus.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": patch +"@codeui/solid": patch --- Open Tooltip when keyboard focus reaches its child trigger, and close it on Escape without moving focus. diff --git a/.changeset/select-listbox-reset.md b/.changeset/select-listbox-reset.md index 4a7268d7..cf4fb9fc 100644 --- a/.changeset/select-listbox-reset.md +++ b/.changeset/select-listbox-reset.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": patch +"@codeui/solid": patch "@codeui/styles": patch --- diff --git a/.changeset/settings-row.md b/.changeset/settings-row.md index 21afba13..5965839e 100644 --- a/.changeset/settings-row.md +++ b/.changeset/settings-row.md @@ -1,4 +1,4 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- -Add SettingsRow and SettingsGroup, with styled parts at `@codeui/kit/settings/parts`, that name and describe each row's control from its label and description. +Add SettingsRow and SettingsGroup, with styled parts at `@codeui/solid/settings/parts`, that name and describe each row's control from its label and description. diff --git a/.changeset/solid-2.md b/.changeset/solid-2.md index 70691cb9..0f4362ec 100644 --- a/.changeset/solid-2.md +++ b/.changeset/solid-2.md @@ -1,8 +1,8 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor "@codeui/styles": patch --- -Require Solid 2 and `@solidjs/web` for the component kit. Upgrade the application to Solid 2 and switch to `@solidjs/vite-plugin` before installing this release. The kit uses Kobalte 2.0.0. +Publish the component library as `@codeui/solid` for Solid 2. Upgrade the application to Solid 2, switch to `@solidjs/vite-plugin`, and update imports to the new package name. The component library requires `@solidjs/web` and uses Kobalte 2.0.0. Keep the background from receiving pointer input while a hydrated modal is open. diff --git a/.changeset/solid-static-styles.md b/.changeset/solid-static-styles.md index c807777f..ce640310 100644 --- a/.changeset/solid-static-styles.md +++ b/.changeset/solid-static-styles.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor "@codeui/styles": minor "@codeui/inkstone": minor --- diff --git a/.changeset/style-appearance-props.md b/.changeset/style-appearance-props.md index 65febb45..8a66df99 100644 --- a/.changeset/style-appearance-props.md +++ b/.changeset/style-appearance-props.md @@ -1,6 +1,6 @@ --- "@codeui/styles": minor -"@codeui/kit": patch +"@codeui/solid": patch --- Generate framework-neutral appearance props for Inkstone components and parts from the published styles contract. Add DOM application support and check CSS selectors against the contract at build time. Refresh the Kit API snapshot for the expanded styles declarations. diff --git a/.changeset/theme-two-tokens.md b/.changeset/theme-two-tokens.md index 585a516a..1f865110 100644 --- a/.changeset/theme-two-tokens.md +++ b/.changeset/theme-two-tokens.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Theme the shape and the brand with two tokens. `--cui-radius-scale` multiplies every radius except `none` and `full`. The brand hover, active, soft, focus and selection colors are now computed from `--cui-action-brand-base` with CSS relative colors, and resolve to the same Inkstone values. Danger, caution and success compute their hover and active from their base the same way. Browsers without relative colors keep the fixed values. The radii and the computed brand colors are now set again on each `[data-cui-theme]` scope, so an override of one of them written only on `:root` stops at the first nested scope. Write `:root, [data-cui-theme]` to reach every scope. diff --git a/.changeset/tidy-stack-text.md b/.changeset/tidy-stack-text.md index 154adc97..3cd31588 100644 --- a/.changeset/tidy-stack-text.md +++ b/.changeset/tidy-stack-text.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Add polymorphic Stack layout and Text typography primitives with token-based styles and public parts. diff --git a/.changeset/tidy-switches.md b/.changeset/tidy-switches.md index a4164b54..60829c62 100644 --- a/.changeset/tidy-switches.md +++ b/.changeset/tidy-switches.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- Add a Kobalte Switch with styled parts and accessible field content. diff --git a/.changeset/tooltip-empty-content.md b/.changeset/tooltip-empty-content.md index 428235fc..0ea54323 100644 --- a/.changeset/tooltip-empty-content.md +++ b/.changeset/tooltip-empty-content.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": patch +"@codeui/solid": patch --- Tooltip no longer opens an empty bubble when `content` is `undefined`, `null` or `""`. Hover and focus leave it closed, and the trigger gets no `aria-describedby`, so passing `content={undefined}` turns the tooltip off. The trigger and its children render as before. diff --git a/.changeset/tooltip-provider-defaults.md b/.changeset/tooltip-provider-defaults.md index 9e2cf40f..3ab9858b 100644 --- a/.changeset/tooltip-provider-defaults.md +++ b/.changeset/tooltip-provider-defaults.md @@ -1,7 +1,7 @@ --- -"@codeui/kit": minor +"@codeui/solid": minor --- -Add `TooltipProvider` (`Provider` in `@codeui/kit/tooltip/parts`) to set `openDelay`, `closeDelay`, `skipDelayDuration`, `gutter`, `shift` and `variant` for every tooltip below it. A prop on one tooltip still wins. +Add `TooltipProvider` (`Provider` in `@codeui/solid/tooltip/parts`) to set `openDelay`, `closeDelay`, `skipDelayDuration`, `gutter`, `shift` and `variant` for every tooltip below it. A prop on one tooltip still wins. Tooltips are calmer by default: they open 700ms after hover (was 200ms), the next one opens at once for 400ms after one closes (was 300ms), and they use the neutral `secondary` fill (was the brand `primary`). Pass `openDelay`, `skipDelayDuration` or `variant` to keep the old behaviour. diff --git a/.changeset/vitest-browser-bugs.md b/.changeset/vitest-browser-bugs.md index aa67fbb1..f059b773 100644 --- a/.changeset/vitest-browser-bugs.md +++ b/.changeset/vitest-browser-bugs.md @@ -1,5 +1,5 @@ --- -"@codeui/kit": patch +"@codeui/solid": patch --- Preserve accordion content through closing transitions, keep Escape inside an open combobox list, and let sheet handle taps tolerate movement within the tap threshold. These fixes are covered by the existing tests running in Chromium. diff --git a/.claude/skills/verify-codeui/SKILL.md b/.claude/skills/verify-codeui/SKILL.md index 717ecfad..552614f3 100644 --- a/.claude/skills/verify-codeui/SKILL.md +++ b/.claude/skills/verify-codeui/SKILL.md @@ -1,11 +1,11 @@ --- name: verify-codeui -description: Prove @codeui/kit component behavior in the browser the way a user meets it - launch Storybook (packages/storybook) on a free port, drive a story with Playwright using keyboard, roles and data-cui parts in dark and light themes, and save screenshots, a JSON transcript and axe results. Use before claiming a kit component, part, token or theme change works, when reviewing a kit PR, or when a story looks wrong. +description: Prove @codeui/solid component behavior in the browser the way a user meets it - launch Storybook (packages/storybook) on a free port, drive a story with Playwright using keyboard, roles and data-cui parts in dark and light themes, and save screenshots, a JSON transcript and axe results. Use before claiming a kit component, part, token or theme change works, when reviewing a kit PR, or when a story looks wrong. --- # verify-codeui -@codeui/kit is a Solid component library on Kobalte. Users meet it as rendered components, so proofs run in **Storybook in a real browser**: `packages/storybook` (storybook-solidjs-vite 10), one story per URL at `iframe.html?id=&viewMode=story`. Storybook imports kit **source** (`packages/kit/src`) through tsconfig paths, so a kit build is not needed to prove a component. +@codeui/solid is a Solid component library on Kobalte. Users meet it as rendered components, so proofs run in **Storybook in a real browser**: `packages/storybook` (storybook-solidjs-vite 10), one story per URL at `iframe.html?id=&viewMode=story`. Storybook imports kit **source** (`packages/kit/src`) through tsconfig paths, so a kit build is not needed to prove a component. Other surfaces, not driven by this skill: the packed kit consumed by example apps (PR #79) and the Fumadocs docs site (PR #85). Neither is on `fix/baseline-determinism`. diff --git a/.claude/skills/verify-codeui/features/README.md b/.claude/skills/verify-codeui/features/README.md index 5bb08075..6bf391e6 100644 --- a/.claude/skills/verify-codeui/features/README.md +++ b/.claude/skills/verify-codeui/features/README.md @@ -1,6 +1,6 @@ -# @codeui/kit verification map +# @codeui/solid verification map -This directory is the maintained source for verifying what a user of @codeui/kit components sees and does. Read this index, then use the matching feature file as the recipe. All recipes drive Storybook stories through `scripts/drive.mjs`. +This directory is the maintained source for verifying what a user of @codeui/solid components sees and does. Read this index, then use the matching feature file as the recipe. All recipes drive Storybook stories through `scripts/drive.mjs`. ## Baseline preconditions diff --git a/.claude/skills/verify-codeui/features/overlays.md b/.claude/skills/verify-codeui/features/overlays.md index eaf2c45d..b0ac0a51 100644 --- a/.claude/skills/verify-codeui/features/overlays.md +++ b/.claude/skills/verify-codeui/features/overlays.md @@ -9,7 +9,7 @@ Dialog and Popover open from a trigger, move focus inside, trap Tab while modal, - `dialog-dismiss` closes on Escape and on `dialog-close-button`, and returns focus to the trigger. - `dialog-sizes` renders `xs`, `sm`, `md`, `lg`, `xl`, `full` panels. - `dialog-overflow` scrolls long content inside the panel with a footer. -- `dialog-parts` composes `@codeui/kit/dialog/parts` parts (`Root`, `Trigger`, `Overlay`, `Positioner`, `Content`, `Header`, `Title`, `CloseButton`, `Description`, `Body`, `Footer`). +- `dialog-parts` composes `@codeui/solid/dialog/parts` parts (`Root`, `Trigger`, `Overlay`, `Positioner`, `Content`, `Header`, `Title`, `CloseButton`, `Description`, `Body`, `Footer`). - `dialog-settings-layout` composes `size="settings"`, `chrome="inset"`, `Sidebar`, `Nav`, `NavItem`, `Main` and `Section`: arrow keys, Home and End move focus in the nav, Enter selects, `aria-current="page"` marks the current section. - `dialog-export-layout` composes `size="export"`, `chrome="inset"`, a `layout="split"` body, an actions `Footer` and a two-column `Section` well; both stack at 768px and below. - `dialog-motion` sets `data-motion="none"` on the panel and positioner after a keyboard open or close. A journey cannot prove the animation itself (the harness disables animations). @@ -21,7 +21,7 @@ Dialog and Popover open from a trigger, move focus inside, trap Tab while modal, - `hovercard-touch` opens the card on a touch tap without following the link, places it on the right of the trigger by default, keeps the floating surface (dialog fill, shadow with the dark inset ring, radius 16, max width 320), closes on an outside press, and opens at once on a mouse click. Journey: `journeys/hovercard-touch.mjs` on `designsystem-hovercard--hover-card-story`. - `hovercard-edge` flips the card to the left when there is no room on the right. Journey: `journeys/hovercard-edge.mjs` on `designsystem-hovercard--edge-placement`. - `hovercard-list` renders `HoverCardList`: one 28px line per entry, 16px indent per depth, truncated titles, named state icons, capped at 24rem with its own scroll. Journey: `journeys/hovercard-list.mjs` on `designsystem-hovercard--task-list`. -- `popover-parts` composes `@codeui/kit/popover/parts` parts with title, description, arrow and close button. +- `popover-parts` composes `@codeui/solid/popover/parts` parts with title, description, arrow and close button. ## How to get to it (user POV) diff --git a/.github/workflows/package-preview.yml b/.github/workflows/package-preview.yml index 9fee9d0d..07f9b8fb 100644 --- a/.github/workflows/package-preview.yml +++ b/.github/workflows/package-preview.yml @@ -33,7 +33,7 @@ jobs: - run: pnpm build:kit - name: Pack the preview packages - run: pnpm --filter '@codeui/kit...' pack --recursive --pack-destination "$RUNNER_TEMP/codeui-preview" + run: pnpm --filter '@codeui/solid...' pack --recursive --pack-destination "$RUNNER_TEMP/codeui-preview" - name: Upload installable packages id: artifact @@ -61,7 +61,7 @@ jobs: const { readFileSync } = require('node:fs'); const { join } = require('node:path'); const { packages } = JSON.parse(readFileSync(join(process.env.RUNNER_TEMP, 'codeui-preview.json'), 'utf8')); - const kit = packages.find(pkg => pkg.name === '@codeui/kit'); + const solid = packages.find(pkg => pkg.name === '@codeui/solid'); const marker = ''; const body = [ marker, @@ -70,10 +70,10 @@ jobs: `Built from \`${context.payload.pull_request.head.sha.slice(0, 7)}\`.`, '', '\`\`\`sh', - `npm install ${kit.url}`, + `npm install ${solid.url}`, '\`\`\`', '', - 'The kit installs matching previews of \`@codeui/styles\` and \`@codeui/inkstone\`.', + 'Installing \`@codeui/solid\` also installs matching previews of \`@codeui/styles\` and \`@codeui/inkstone\`.', '', ...packages.map(pkg => `- [${pkg.name}](${pkg.url})`), ].join('\n'); diff --git a/AGENTS.md b/AGENTS.md index 79637b4d..fc9a1d42 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,7 +2,7 @@ ## Design -Before you build or change anything visual (a component, a story, a docs demo, a token), read [`packages/kit/DESIGN.md`](packages/kit/DESIGN.md). It is the Inkstone specification and ships with `@codeui/kit`. +Before you build or change anything visual (a component, a story, a docs demo, a token), read [`packages/kit/DESIGN.md`](packages/kit/DESIGN.md). It is the Inkstone specification and ships with `@codeui/solid`. - Follow its rules and run its review checklist (§12) on your change. - When a change alters a rule, update `packages/kit/DESIGN.md` and the matching page in `apps/docs/content/docs/design/` in the same pull request. diff --git a/apps/docs/README.md b/apps/docs/README.md index 1b403c49..10ab9cab 100644 --- a/apps/docs/README.md +++ b/apps/docs/README.md @@ -1,6 +1,6 @@ # @codeui/docs -The documentation site for `@codeui/kit`, built with [Fumadocs](https://fumadocs.dev) on TanStack Start. +The documentation site for `@codeui/solid`, built with [Fumadocs](https://fumadocs.dev) on TanStack Start. The site is React. The kit demos are Solid. They meet only through built files: diff --git a/apps/docs/content/docs/(kit)/agents.mdx b/apps/docs/content/docs/(kit)/agents.mdx index 732f60f0..f8575aa8 100644 --- a/apps/docs/content/docs/(kit)/agents.mdx +++ b/apps/docs/content/docs/(kit)/agents.mdx @@ -1,9 +1,9 @@ --- title: "API reference for agents" -description: "Imports, signatures, and limits of @codeui/kit in one page, for coding agents." +description: "Imports, signatures, and limits of @codeui/solid in one page, for coding agents." --- -This page is for coding agents that generate UI with `@codeui/kit`. It lists the import paths, the rules generated code must follow, and every component with its main props. Each component name links to its full page. +This page is for coding agents that generate UI with `@codeui/solid`. It lists the import paths, the rules generated code must follow, and every component with its main props. Each component name links to its full page. ## Read this site as Markdown @@ -16,23 +16,23 @@ This page is for coding agents that generate UI with `@codeui/kit`. It lists the Start with `/llms.txt`. Fetch the `.md` of each component you use before you write code with it. -The kit package also ships its design specification as `node_modules/@codeui/kit/DESIGN.md`. Read it before you build a new screen. +The kit package also ships its design specification as `node_modules/@codeui/solid/DESIGN.md`. Read it before you build a new screen. ## Import map | Import from | What it holds | Use it for | | --- | --- | --- | -| `@codeui/kit` | Every ready component, the option helpers, field helpers, `icons`, `SvgIcon`, `mergeClasses`, and the token objects | Almost everything | -| `@codeui/kit/` | The ready component and its public types and helpers | Import a single component | -| `@codeui/kit//parts` | The styled parts of one component, its part name map, and its style functions | A layout the ready component cannot give | -| `@codeui/kit/tokens` | `tokens`, `themeVars`, `themeTokens`, `layoutVars`, `breakpoints`, `responsiveStyle`. No component. | vanilla-extract `.css.ts` files, which run in Node | +| `@codeui/solid` | Every ready component, the option helpers, field helpers, `icons`, `SvgIcon`, `mergeClasses`, and the token objects | Almost everything | +| `@codeui/solid/` | The ready component and its public types and helpers | Import a single component | +| `@codeui/solid//parts` | The styled parts of one component, its part name map, and its style functions | A layout the ready component cannot give | +| `@codeui/solid/tokens` | `tokens`, `themeVars`, `themeTokens`, `layoutVars`, `breakpoints`, `responsiveStyle`. No component. | vanilla-extract `.css.ts` files, which run in Node | See [Ready or parts](/docs/ready-or-parts) for supported component entry points. Import parts as a namespace: ```tsx -import * as D from "@codeui/kit/dialog/parts"; +import * as D from "@codeui/solid/dialog/parts"; ``` The app needs Solid 2, `@solidjs/web`, and `@solidjs/vite-plugin`. See [Installation](/docs/installation). @@ -99,7 +99,7 @@ Portalled content renders only on the client. That covers the bodies of `Dialog` ## Components -Import each component family below from its own entry point or from `@codeui/kit`. Append `/parts` to the component path in the parts column to import its styled parts. +Import each component family below from its own entry point or from `@codeui/solid`. Append `/parts` to the component path in the parts column to import its styled parts. | Component | Parts | Main props | | --- | --- | --- | @@ -144,7 +144,7 @@ Most ready components take `class` for the root and `classes` for inner parts, k Do not generate code that uses these. Each one fails to compile or to resolve. -- `@codeui/kit/theme.css`. Solid components import their CSS and theme automatically. CSS-only consumers import `@codeui/styles/theme.css` and component CSS files, or `@codeui/styles/all.css`. +- `@codeui/solid/theme.css`. Solid components import their CSS and theme automatically. CSS-only consumers import `@codeui/styles/theme.css` and component CSS files, or `@codeui/styles/all.css`. - A theme provider, or `data-cui-theme="system"`. - `Box`, `HStack`, `VStack`, or sprinkles props such as `padding` or `marginTop`. Use `Stack` and a class. - `asChild`. Kobalte and the kit use `as` for polymorphism. diff --git a/apps/docs/content/docs/(kit)/components/accordion.mdx b/apps/docs/content/docs/(kit)/components/accordion.mdx index 45086664..661ea1cb 100644 --- a/apps/docs/content/docs/(kit)/components/accordion.mdx +++ b/apps/docs/content/docs/(kit)/components/accordion.mdx @@ -71,7 +71,7 @@ Renders single-selection sections from `AccordionEntry[]`. Each entry requires ` ## Styled parts API -Import parts from `@codeui/kit/accordion/parts`. Each export is a named function. +Import parts from `@codeui/solid/accordion/parts`. Each export is a named function. ### `Root` @@ -143,7 +143,7 @@ The remaining inherited props follow the [Kobalte Accordion contract](https://ko ### `accordionStyles` -`AccordionStyles` maps each anatomy part key to a function that returns its class string. For a custom trigger, combine `accordionStyles.trigger()` with `data-density="compact"` or `data-density="comfortable"`. Styles are exported from both `@codeui/kit` and `@codeui/kit/accordion/parts`. +`AccordionStyles` maps each anatomy part key to a function that returns its class string. For a custom trigger, combine `accordionStyles.trigger()` with `data-density="compact"` or `data-density="comfortable"`. Styles are exported from both `@codeui/solid` and `@codeui/solid/accordion/parts`. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/alert.mdx b/apps/docs/content/docs/(kit)/components/alert.mdx index 096b170e..639a793a 100644 --- a/apps/docs/content/docs/(kit)/components/alert.mdx +++ b/apps/docs/content/docs/(kit)/components/alert.mdx @@ -59,7 +59,7 @@ Native attributes pass through to the root. ## Styled parts API -Import the parts from `@codeui/kit/alert/parts`. The root wraps [Kobalte alert](https://kobalte.dev/docs/core/components/alert). +Import the parts from `@codeui/solid/alert/parts`. The root wraps [Kobalte alert](https://kobalte.dev/docs/core/components/alert). ### `Action` diff --git a/apps/docs/content/docs/(kit)/components/avatar.mdx b/apps/docs/content/docs/(kit)/components/avatar.mdx index 4bfa7369..1ff3c909 100644 --- a/apps/docs/content/docs/(kit)/components/avatar.mdx +++ b/apps/docs/content/docs/(kit)/components/avatar.mdx @@ -91,7 +91,7 @@ Every other prop goes to the root `span`. `Avatar` wraps no Kobalte primitive. W ## Styled parts API -Import the parts from `@codeui/kit/avatar/parts`. The entry also exports `avatarParts`, `avatarHue`, `avatarInitials` and the types `AvatarPart`, `AvatarClasses`, `AvatarSize` and `AvatarVariants`. +Import the parts from `@codeui/solid/avatar/parts`. The entry also exports `avatarParts`, `avatarHue`, `avatarInitials` and the types `AvatarPart`, `AvatarClasses`, `AvatarSize` and `AvatarVariants`. ### `Root` diff --git a/apps/docs/content/docs/(kit)/components/badge.mdx b/apps/docs/content/docs/(kit)/components/badge.mdx index 077c4708..4384f717 100644 --- a/apps/docs/content/docs/(kit)/components/badge.mdx +++ b/apps/docs/content/docs/(kit)/components/badge.mdx @@ -59,7 +59,7 @@ Inherited behavior from [Kobalte badge](https://kobalte.dev/docs/core/components ## Styled parts API -Import the parts from `@codeui/kit/badge/parts`. The root wraps [Kobalte badge](https://kobalte.dev/docs/core/components/badge). +Import the parts from `@codeui/solid/badge/parts`. The root wraps [Kobalte badge](https://kobalte.dev/docs/core/components/badge). ### `Icon` diff --git a/apps/docs/content/docs/(kit)/components/button.mdx b/apps/docs/content/docs/(kit)/components/button.mdx index 6015eca6..9a087f0a 100644 --- a/apps/docs/content/docs/(kit)/components/button.mdx +++ b/apps/docs/content/docs/(kit)/components/button.mdx @@ -92,7 +92,7 @@ It also sets `aria-busy="true"` and `aria-disabled="true"`, and it ignores click -`ButtonProps` and `buttonStyles` are exported from `@codeui/kit`. `buttonStyles.button()` returns the base classes. `buttonIcon` and `buttonText` are class names. `buttonVars` exposes the local variable contract. +`ButtonProps` and `buttonStyles` are exported from `@codeui/solid`. `buttonStyles.button()` returns the base classes. `buttonIcon` and `buttonText` are class names. `buttonVars` exposes the local variable contract. In CSS-only markup, combine the `cui-button` class with attributes such as `data-size="md"`, and `data-variant="primary"`. Use `data-ghost`, `data-loading`, `data-pill`, and `data-block` as presence attributes. diff --git a/apps/docs/content/docs/(kit)/components/checkbox.mdx b/apps/docs/content/docs/(kit)/components/checkbox.mdx index 3d6661e3..84c8e18e 100644 --- a/apps/docs/content/docs/(kit)/components/checkbox.mdx +++ b/apps/docs/content/docs/(kit)/components/checkbox.mdx @@ -59,7 +59,7 @@ Inherited behavior follows the [Kobalte checkbox contract](https://kobalte.dev/d ## Styled parts API -Use `@codeui/kit/checkbox/parts` to build a checkbox with a custom label or indicator. Place `Input` and `Control` inside `Root`. Place `Indicator` and its content inside `Control`. Use `Content` to arrange `Label`, `Description`, and `ErrorMessage` next to the checkbox. Keep `Input` in the composition so keyboard focus and form submission work. +Use `@codeui/solid/checkbox/parts` to build a checkbox with a custom label or indicator. Place `Input` and `Control` inside `Root`. Place `Indicator` and its content inside `Control`. Use `Content` to arrange `Label`, `Description`, and `ErrorMessage` next to the checkbox. Keep `Input` in the composition so keyboard focus and form submission work. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/combobox.mdx b/apps/docs/content/docs/(kit)/components/combobox.mdx index e5eb99ad..f010997d 100644 --- a/apps/docs/content/docs/(kit)/components/combobox.mdx +++ b/apps/docs/content/docs/(kit)/components/combobox.mdx @@ -150,11 +150,11 @@ When the text becomes empty, by a second Escape or by deleting it, a single-sele ### `Combobox` -`Combobox` renders a label, an input with a trigger button, the messages, and a portalled list, built on Kobalte's combobox. It imports from `@codeui/kit`. +`Combobox` renders a label, an input with a trigger button, the messages, and a portalled list, built on Kobalte's combobox. It imports from `@codeui/solid`. -`ComboboxProps`, `ComboboxClasses`, and `ComboboxPart` are exported from `@codeui/kit`. +`ComboboxProps`, `ComboboxClasses`, and `ComboboxPart` are exported from `@codeui/solid`. Inherited from Kobalte's [combobox root](https://kobalte.dev/docs/core/components/combobox): @@ -174,7 +174,7 @@ With `name`, the ready `Combobox` renders one hidden input for each selected val ## Styled parts API -Import the parts from `@codeui/kit/combobox/parts`. Each part wraps the Kobalte combobox part of the same name, adds the kit class and `data-cui`, and merges your `class` after the kit class. `ComboboxParts` groups all of them in one object and is also exported from `@codeui/kit`. +Import the parts from `@codeui/solid/combobox/parts`. Each part wraps the Kobalte combobox part of the same name, adds the kit class and `data-cui`, and merges your `class` after the kit class. `ComboboxParts` groups all of them in one object and is also exported from `@codeui/solid`. @@ -188,7 +188,7 @@ Renders the root `div` and holds the state. It wraps Kobalte's `Combobox.Root`, -`RootProps` is exported from `@codeui/kit/combobox/parts`. +`RootProps` is exported from `@codeui/solid/combobox/parts`. ### `Label` @@ -270,7 +270,7 @@ Kobalte's `useComboboxContext`, re-exported. Call it inside `Root` to read the c -Call it when you render your own element and want the kit look without the combobox behavior. The demo shows a detected value with the combobox frame and no list. Prefer the part when one exists, because the part also sets `data-cui` and the ARIA wiring. `comboboxStyles` and the `ComboboxStyles` and `ComboboxVariants` types are exported from both `@codeui/kit` and `@codeui/kit/combobox/parts`. +Call it when you render your own element and want the kit look without the combobox behavior. The demo shows a detected value with the combobox frame and no list. Prefer the part when one exists, because the part also sets `data-cui` and the ARIA wiring. `comboboxStyles` and the `ComboboxStyles` and `ComboboxVariants` types are exported from both `@codeui/solid` and `@codeui/solid/combobox/parts`. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/command-menu.mdx b/apps/docs/content/docs/(kit)/components/command-menu.mdx index 77c8933f..819982cf 100644 --- a/apps/docs/content/docs/(kit)/components/command-menu.mdx +++ b/apps/docs/content/docs/(kit)/components/command-menu.mdx @@ -107,13 +107,13 @@ Each entry in `items` is a `CommandItem`. -`filterCommandItems(items, query)` is the default filter, exported from `@codeui/kit`. It keeps the items whose `textValue`, `group`, `section`, or string `description` contain every word of the query, ignoring case. Call it from your own `filter` to extend it. +`filterCommandItems(items, query)` is the default filter, exported from `@codeui/solid`. It keeps the items whose `textValue`, `group`, `section`, or string `description` contain every word of the query, ignoring case. Call it from your own `filter` to extend it. `CommandMenu` passes nothing through to Kobalte. Every prop is listed above. ## Styled parts API -Import the parts from `@codeui/kit/command-menu/parts`. Use them when the ready component cannot express your layout, such as a footer row or a custom item. +Import the parts from `@codeui/solid/command-menu/parts`. Use them when the ready component cannot express your layout, such as a footer row or a custom item. @@ -121,7 +121,7 @@ The parts wrap two Kobalte primitives. The dialog parts (`Root`, `Trigger`, `Por When you compose the parts, the close lifecycle is yours. `Content` calls `onSelect` but does not close the menu, and it does not clear the query. The ready component adds `onBeforeClose`, `onCancel`, and the empty query per open. -The parts are also available as one object, `CommandMenuParts`, exported from `@codeui/kit`. +The parts are also available as one object, `CommandMenuParts`, exported from `@codeui/solid`. ### `Content` @@ -226,7 +226,7 @@ Returns the Kobalte combobox context of the nearest `Content`. It is Kobalte's ` ### `commandMenuStyles` ```ts -import { commandMenuStyles } from "@codeui/kit/command-menu/parts"; +import { commandMenuStyles } from "@codeui/solid/command-menu/parts"; const rowClass = commandMenuStyles.item(); ``` diff --git a/apps/docs/content/docs/(kit)/components/dialog.mdx b/apps/docs/content/docs/(kit)/components/dialog.mdx index 4e5fabd9..a61a007b 100644 --- a/apps/docs/content/docs/(kit)/components/dialog.mdx +++ b/apps/docs/content/docs/(kit)/components/dialog.mdx @@ -174,7 +174,7 @@ The `Footer` part. A `div` with the content padding. With `size="full"` it stick ## Styled parts API -Import the parts from `@codeui/kit/dialog/parts`. Each part carries the kit styles and a `data-cui` attribute, and wraps the matching Kobalte primitive. +Import the parts from `@codeui/solid/dialog/parts`. Each part carries the kit styles and a `data-cui` attribute, and wraps the matching Kobalte primitive. @@ -282,7 +282,7 @@ A `section` with an optional `h3` title and a content `div`. `variant="group"`, ### `dialogStyles` -`dialogStyles` from `@codeui/kit/dialog/parts` maps each part name to a function that returns its class string. +`dialogStyles` from `@codeui/solid/dialog/parts` maps each part name to a function that returns its class string. Call `dialogStyles.panel()`, `body()`, and `section()` for the corresponding part classes. The styles read `data-size` and `data-chrome` on the panel, `data-layout` on the body, and `data-variant` and `data-columns` on a section. Set them when you apply the classes to your own elements. `trigger`, `title`, and `closeButton` return an empty string, because those parts take their look from other components. @@ -352,7 +352,7 @@ IDs for the title and the description come from Solid's `createUniqueId`, so the | `--cui-font-size-lg`, `--cui-font-weight-medium` | Title type | | `--cui-motion-duration-panel`, `--cui-motion-duration-fast`, `--cui-motion-ease-out` | Open and close animation of the panel and the scrim | -`dialogThemeVars` from `@codeui/kit/dialog/parts` holds the dialog's local variables. Set them on the panel with a vanilla-extract class (`vars`) or `assignInlineVars` to tune one dialog: +`dialogThemeVars` from `@codeui/solid/dialog/parts` holds the dialog's local variables. Set them on the panel with a vanilla-extract class (`vars`) or `assignInlineVars` to tune one dialog: | Variable | Default | Used for | | --- | --- | --- | diff --git a/apps/docs/content/docs/(kit)/components/dropdown-menu.mdx b/apps/docs/content/docs/(kit)/components/dropdown-menu.mdx index ac4cd97d..f39fffdc 100644 --- a/apps/docs/content/docs/(kit)/components/dropdown-menu.mdx +++ b/apps/docs/content/docs/(kit)/components/dropdown-menu.mdx @@ -47,7 +47,7 @@ The `rightSlot` of an item and of a submenu trigger renders in a `div` without a Split related actions with `DropdownMenuSeparator`. Keep a destructive action, such as Delete, in its own group at the end. -Use `Group` and `GroupLabel` from `@codeui/kit/dropdown-menu/parts` to label a set of actions. Add your own styles to the group label or render it as a kit `Text`. +Use `Group` and `GroupLabel` from `@codeui/solid/dropdown-menu/parts` to label a set of actions. Add your own styles to the group label or render it as a kit `Text`. ### Submenu @@ -135,12 +135,12 @@ Kobalte's `DropdownMenu.Separator`. A line between groups. It also replaces any ## Styled parts API -Import from `@codeui/kit/dropdown-menu/parts` to build a menu with a reusable structure. Keep `Trigger` and `Portal` under the same `Root`. Use `GroupLabel` inside `Group` to name a set of related items. +Import from `@codeui/solid/dropdown-menu/parts` to build a menu with a reusable structure. Keep `Trigger` and `Portal` under the same `Root`. Use `GroupLabel` inside `Group` to name a set of related items. ```tsx -import { Button } from "@codeui/kit/button"; -import * as M from "@codeui/kit/dropdown-menu/parts"; -import { Text } from "@codeui/kit/text"; +import { Button } from "@codeui/solid/button"; +import * as M from "@codeui/solid/dropdown-menu/parts"; +import { Text } from "@codeui/solid/text"; Export diff --git a/apps/docs/content/docs/(kit)/components/hover-card.mdx b/apps/docs/content/docs/(kit)/components/hover-card.mdx index cc4040f0..97302dad 100644 --- a/apps/docs/content/docs/(kit)/components/hover-card.mdx +++ b/apps/docs/content/docs/(kit)/components/hover-card.mdx @@ -102,7 +102,7 @@ Without `open`, the card manages its own state. To control it, pass `open` and ` ## Ready API -Import from `@codeui/kit/hover-card` or from `@codeui/kit`. +Import from `@codeui/solid/hover-card` or from `@codeui/solid`. ### `HoverCardGroup` diff --git a/apps/docs/content/docs/(kit)/components/kbd.mdx b/apps/docs/content/docs/(kit)/components/kbd.mdx index f308fc2b..aa02ac3b 100644 --- a/apps/docs/content/docs/(kit)/components/kbd.mdx +++ b/apps/docs/content/docs/(kit)/components/kbd.mdx @@ -76,11 +76,11 @@ macOS shows ⌘ where Windows and Linux show Ctrl. `Kbd` does not detect the pla -Every other prop goes to the `kbd` element. `Kbd` wraps no Kobalte primitive, so there is no inherited table. `@codeui/kit` exports `Kbd` and `KbdProps`. +Every other prop goes to the `kbd` element. `Kbd` wraps no Kobalte primitive, so there is no inherited table. `@codeui/solid` exports `Kbd` and `KbdProps`. ## Styled parts API -Import the parts from `@codeui/kit/kbd/parts`. +Import the parts from `@codeui/solid/kbd/parts`. ### `Root` @@ -92,7 +92,7 @@ Import the parts from `@codeui/kit/kbd/parts`. ### `kbdStyles` -Call `kbdStyles.root()` for the base class. On custom markup, set `data-size` and `data-variant`, such as `data-size="sm" data-variant="keycap"`. `kbdStyles` and `KbdStyles` are exported from `@codeui/kit/kbd/parts`. +Call `kbdStyles.root()` for the base class. On custom markup, set `data-size` and `data-variant`, such as `data-size="sm" data-variant="keycap"`. `kbdStyles` and `KbdStyles` are exported from `@codeui/solid/kbd/parts`. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/listbox.mdx b/apps/docs/content/docs/(kit)/components/listbox.mdx index fe97ca95..9e20a0f2 100644 --- a/apps/docs/content/docs/(kit)/components/listbox.mdx +++ b/apps/docs/content/docs/(kit)/components/listbox.mdx @@ -79,7 +79,7 @@ The remaining collection and keyboard props follow the [Kobalte Listbox contract ## Styled parts API -Use `@codeui/kit/listbox/parts` to control option markup. Pass `options` and `renderItem` to `Root`. The callback receives a collection node. Pass it to `Item` to keep selection and keyboard navigation. Use `ItemLabel`, `ItemDescription`, and `ItemIndicator` to compose the row. Use `Section` for grouped options. +Use `@codeui/solid/listbox/parts` to control option markup. Pass `options` and `renderItem` to `Root`. The callback receives a collection node. Pass it to `Item` to keep selection and keyboard navigation. Use `ItemLabel`, `ItemDescription`, and `ItemIndicator` to compose the row. Use `Section` for grouped options. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/number-field.mdx b/apps/docs/content/docs/(kit)/components/number-field.mdx index d534f52a..bef8b3f3 100644 --- a/apps/docs/content/docs/(kit)/components/number-field.mdx +++ b/apps/docs/content/docs/(kit)/components/number-field.mdx @@ -110,7 +110,7 @@ Renders Kobalte's `TextField.Label` with the kit label style. Use it only inside ## Styled parts API -Use `@codeui/kit/number-field/parts` to customize the layout around a formatted numeric input. Set the value, limits, step, and formatting on `Root`. Put `Input` and optional `Controls` inside `Field` to keep the input and stepper buttons aligned. Keep `Label`, `Description`, and `ErrorMessage` under the same root. +Use `@codeui/solid/number-field/parts` to customize the layout around a formatted numeric input. Set the value, limits, step, and formatting on `Root`. Put `Input` and optional `Controls` inside `Field` to keep the input and stepper buttons aligned. Keep `Label`, `Description`, and `ErrorMessage` under the same root. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/option-card.mdx b/apps/docs/content/docs/(kit)/components/option-card.mdx index 6c9d53de..545171e9 100644 --- a/apps/docs/content/docs/(kit)/components/option-card.mdx +++ b/apps/docs/content/docs/(kit)/components/option-card.mdx @@ -103,7 +103,7 @@ Renders one radio item inside a styled `Root`. Its `variant` defaults to the rea ## Styled parts API -Import the parts from `@codeui/kit/option-card/parts`. These exports are direct named parts, with no namespace alias. The Kobalte parts retain their polymorphic `as` prop. Each styled radio part accepts `class` and `variant`; direct parts set their own variant rather than inheriting it from `Root`. +Import the parts from `@codeui/solid/option-card/parts`. These exports are direct named parts, with no namespace alias. The Kobalte parts retain their polymorphic `as` prop. Each styled radio part accepts `class` and `variant`; direct parts set their own variant rather than inheriting it from `Root`. ### `Badge` @@ -192,7 +192,7 @@ The inherited behavior follows the [Kobalte RadioGroup contract](https://kobalte ### `optionCardStyles` -`optionCardStyles` is exported from `@codeui/kit` and `@codeui/kit/option-card/parts`. Each anatomy key is a function that returns a class string. `OptionCardStyles` describes those functions. `OptionCardPart` is the key union, and `OptionCardClasses` is a partial map of keys to class names. +`optionCardStyles` is exported from `@codeui/solid` and `@codeui/solid/option-card/parts`. Each anatomy key is a function that returns a class string. `OptionCardStyles` describes those functions. `OptionCardPart` is the key union, and `OptionCardClasses` is a partial map of keys to class names. Call `optionCardStyles.itemLabel()` and set `data-variant="tile"` on a custom label to select its tile padding. Kobalte sets `data-orientation="vertical"` on the root for the single-column layout. diff --git a/apps/docs/content/docs/(kit)/components/pagination.mdx b/apps/docs/content/docs/(kit)/components/pagination.mdx index f2eedaf4..7929cee4 100644 --- a/apps/docs/content/docs/(kit)/components/pagination.mdx +++ b/apps/docs/content/docs/(kit)/components/pagination.mdx @@ -66,7 +66,7 @@ The component uses `createPagination` from `@solid-primitives/pagination`, rathe ## Styled parts API -Use `@codeui/kit/pagination/parts` to control the navigation layout. Call `createPaginationState` with the page count and any controlled page props. Use its `items()` to render `Item` buttons in `Root`. The state also exposes `page()` and `setPage` for other controls in the same component. Set an accessible label on the navigation and give any icon-only navigation button a label. +Use `@codeui/solid/pagination/parts` to control the navigation layout. Call `createPaginationState` with the page count and any controlled page props. Use its `items()` to render `Item` buttons in `Root`. The state also exposes `page()` and `setPage` for other controls in the same component. Set an accessible label on the navigation and give any icon-only navigation button a label. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/popover.mdx b/apps/docs/content/docs/(kit)/components/popover.mdx index 96a03e65..ff00fb75 100644 --- a/apps/docs/content/docs/(kit)/components/popover.mdx +++ b/apps/docs/content/docs/(kit)/components/popover.mdx @@ -110,7 +110,7 @@ Inherited from Kobalte's popover content: ## Styled parts API -Import the parts from `@codeui/kit/popover/parts`. Each part carries the kit styles and a `data-cui` attribute, and wraps the matching Kobalte primitive. +Import the parts from `@codeui/solid/popover/parts`. Each part carries the kit styles and a `data-cui` attribute, and wraps the matching Kobalte primitive. @@ -162,13 +162,13 @@ Kobalte's `Popover.CloseButton`, rendered as an extra-small secondary [IconButto ### `popoverStyles` -`popoverStyles` from `@codeui/kit/popover/parts` maps each part name to a function that returns its class string. +`popoverStyles` from `@codeui/solid/popover/parts` maps each part name to a function that returns its class string. Call `popoverStyles.content()` for the class and set `data-variant="bordered"` on custom content. `trigger()`, `anchor()`, `arrow()`, and `closeButton()` return empty strings. Call a style function when you render the Kobalte primitive yourself and want the kit look. Add the matching `data-cui` value from `popoverParts` too. [Compose styled parts](/docs/patterns/compose-styled-parts#kobalte-with-kit-classes) shows a full example. -The root package `@codeui/kit` also exports a `popoverStyles`, with a different shape. It is the raw style module: `content()` returns the base classes and `title` and `description` are class strings. Prefer the subpath export. +The root package `@codeui/solid` also exports a `popoverStyles`, with a different shape. It is the raw style module: `content()` returns the base classes and `title` and `description` are class strings. Prefer the subpath export. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/progress.mdx b/apps/docs/content/docs/(kit)/components/progress.mdx index 92d7eb4a..4762774d 100644 --- a/apps/docs/content/docs/(kit)/components/progress.mdx +++ b/apps/docs/content/docs/(kit)/components/progress.mdx @@ -55,7 +55,7 @@ Inherited behavior from [Kobalte progress](https://kobalte.dev/docs/core/compone ## Styled parts API -Import the parts from `@codeui/kit/progress/parts`. The root wraps [Kobalte progress](https://kobalte.dev/docs/core/components/progress). +Import the parts from `@codeui/solid/progress/parts`. The root wraps [Kobalte progress](https://kobalte.dev/docs/core/components/progress). ### `Fill` @@ -93,13 +93,13 @@ Styled Kobalte ValueLabel with tabular numbers. -`ProgressParts` groups Root, Label, Track, Fill, and ValueLabel. The same namespace is available from `@codeui/kit`. +`ProgressParts` groups Root, Label, Track, Fill, and ValueLabel. The same namespace is available from `@codeui/solid`. ## Styles export ### `progressStyles` -`progressStyles` is typed as `ProgressStyles`. Each function returns its part class. Set `data-size="md"` on a custom track for the medium size. Import the helpers from `@codeui/kit` or `@codeui/kit/progress/parts`. +`progressStyles` is typed as `ProgressStyles`. Each function returns its part class. Set `data-size="md"` on a custom track for the medium size. Import the helpers from `@codeui/solid` or `@codeui/solid/progress/parts`. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/radio-list.mdx b/apps/docs/content/docs/(kit)/components/radio-list.mdx index 8b89b061..03d043bc 100644 --- a/apps/docs/content/docs/(kit)/components/radio-list.mdx +++ b/apps/docs/content/docs/(kit)/components/radio-list.mdx @@ -77,7 +77,7 @@ Renders one selectable option. ## Styled parts API -Use `@codeui/kit/radio-list/parts` when the ready item cannot express the option layout. Put group `Label`, `Description`, and `ErrorMessage` inside `Root`. Place each `Item` in `Items`. Give each item a value, an `ItemInput`, an `ItemControl` containing its `ItemIndicator`, and an `ItemLabel`. Use `ItemDescription` for supporting text. +Use `@codeui/solid/radio-list/parts` when the ready item cannot express the option layout. Put group `Label`, `Description`, and `ErrorMessage` inside `Root`. Place each `Item` in `Items`. Give each item a value, an `ItemInput`, an `ItemControl` containing its `ItemIndicator`, and an `ItemLabel`. Use `ItemDescription` for supporting text. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/resizable.mdx b/apps/docs/content/docs/(kit)/components/resizable.mdx index 8ea6b914..0991537d 100644 --- a/apps/docs/content/docs/(kit)/components/resizable.mdx +++ b/apps/docs/content/docs/(kit)/components/resizable.mdx @@ -65,7 +65,7 @@ Without `sizes`, the root manages the sizes. To control them, pass `sizes` as fr ## Ready API -Import from `@codeui/kit/resizable` or from `@codeui/kit`. Everything not listed here passes through to Kobalte's [resizable](https://kobalte.dev/docs/core/components/resizable). +Import from `@codeui/solid/resizable` or from `@codeui/solid`. Everything not listed here passes through to Kobalte's [resizable](https://kobalte.dev/docs/core/components/resizable). ### `Resizable` diff --git a/apps/docs/content/docs/(kit)/components/segmented-control.mdx b/apps/docs/content/docs/(kit)/components/segmented-control.mdx index deb0e8e3..fef8f3cb 100644 --- a/apps/docs/content/docs/(kit)/components/segmented-control.mdx +++ b/apps/docs/content/docs/(kit)/components/segmented-control.mdx @@ -72,7 +72,7 @@ Renders one selectable option. ## Styled parts API -Use `@codeui/kit/segmented-control/parts` to place the segmented control's list and indicator yourself. Keep `List` within `Root`. Put each `Item` and the shared `Indicator` in the list so alignment and keyboard selection follow the same group. +Use `@codeui/solid/segmented-control/parts` to place the segmented control's list and indicator yourself. Keep `List` within `Root`. Put each `Item` and the shared `Indicator` in the list so alignment and keyboard selection follow the same group. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/select.mdx b/apps/docs/content/docs/(kit)/components/select.mdx index 17a5650d..eb3a5019 100644 --- a/apps/docs/content/docs/(kit)/components/select.mdx +++ b/apps/docs/content/docs/(kit)/components/select.mdx @@ -132,7 +132,7 @@ Pass `value` and `onChange` to own the value, as the [live demo](#live-demo) doe -Import `SelectProps` and `SelectClasses` from `@codeui/kit/select` or `@codeui/kit`. +Import `SelectProps` and `SelectClasses` from `@codeui/solid/select` or `@codeui/solid`. Inherited from Kobalte's [select root](https://kobalte.dev/docs/core/components/select): @@ -152,10 +152,10 @@ With `name`, `Select` renders one `input type="hidden"` for each selected value, ## Styled parts API -Import the ready `Select` and `createSelectOptions` from `@codeui/kit/select`. To change the structure, import the parts from `@codeui/kit/select/parts`. +Import the ready `Select` and `createSelectOptions` from `@codeui/solid/select`. To change the structure, import the parts from `@codeui/solid/select/parts`. ```tsx -import * as S from "@codeui/kit/select/parts"; +import * as S from "@codeui/solid/select/parts"; @@ -165,7 +165,7 @@ Renders the island. Rows touch inside it. ### `settingsRowStyles` -`settingsRowStyles` and `settingsGroupStyles` are exported from `@codeui/kit` and `@codeui/kit/settings/parts`. Each anatomy key is a function that returns a class string. `SettingsRowStyles` and `SettingsGroupStyles` describe those functions. `SettingsRowPart` and `SettingsGroupPart` are the key unions, and `SettingsRowClasses` and `SettingsGroupClasses` are partial maps of keys to class names. +`settingsRowStyles` and `settingsGroupStyles` are exported from `@codeui/solid` and `@codeui/solid/settings/parts`. Each anatomy key is a function that returns a class string. `SettingsRowStyles` and `SettingsGroupStyles` describe those functions. `SettingsRowPart` and `SettingsGroupPart` are the key unions, and `SettingsRowClasses` and `SettingsGroupClasses` are partial maps of keys to class names. Row functions accept `SettingsRowVariants`, but ignore that argument. The wide layout depends on `data-layout="wide"`, the compact control on `data-compact-control`, and the picture column on a direct `settings-row-picture` child. Use the styled parts to set those attributes. diff --git a/apps/docs/content/docs/(kit)/components/sheet.mdx b/apps/docs/content/docs/(kit)/components/sheet.mdx index b1564ffd..ff9a45c4 100644 --- a/apps/docs/content/docs/(kit)/components/sheet.mdx +++ b/apps/docs/content/docs/(kit)/components/sheet.mdx @@ -72,7 +72,7 @@ Renders a portal, optional overlay, content, and the supplied title, description ## Styled parts API -Import parts from `@codeui/kit/sheet/parts`. Each export is a named function. +Import parts from `@codeui/solid/sheet/parts`. Each export is a named function. ### `Root` @@ -164,7 +164,7 @@ The remaining inherited props follow the [Kobalte Sheet contract](https://kobalt ### `sheetStyles` -`SheetStyles` maps each anatomy part key to a function that returns its class string. Set `data-side` on custom content, for example `data-side="bottom"`. `trigger()` returns an empty string. Import these functions from `@codeui/kit/sheet/parts`. +`SheetStyles` maps each anatomy part key to a function that returns its class string. Set `data-side` on custom content, for example `data-side="bottom"`. `trigger()` returns an empty string. Import these functions from `@codeui/solid/sheet/parts`. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/skeleton.mdx b/apps/docs/content/docs/(kit)/components/skeleton.mdx index 3265f40c..e6f4df8d 100644 --- a/apps/docs/content/docs/(kit)/components/skeleton.mdx +++ b/apps/docs/content/docs/(kit)/components/skeleton.mdx @@ -57,7 +57,7 @@ Inherited behavior from [Kobalte skeleton](https://kobalte.dev/docs/core/compone ## Styled parts API -Import the parts from `@codeui/kit/skeleton/parts`. The root wraps [Kobalte skeleton](https://kobalte.dev/docs/core/components/skeleton). +Import the parts from `@codeui/solid/skeleton/parts`. The root wraps [Kobalte skeleton](https://kobalte.dev/docs/core/components/skeleton). ### `Root` diff --git a/apps/docs/content/docs/(kit)/components/slider.mdx b/apps/docs/content/docs/(kit)/components/slider.mdx index 49168d46..dced6425 100644 --- a/apps/docs/content/docs/(kit)/components/slider.mdx +++ b/apps/docs/content/docs/(kit)/components/slider.mdx @@ -65,7 +65,7 @@ Inherited behavior follows the [Kobalte slider contract](https://kobalte.dev/doc ## Styled parts API -Import the parts from `@codeui/kit/slider/parts`. +Import the parts from `@codeui/solid/slider/parts`. ### `Description` diff --git a/apps/docs/content/docs/(kit)/components/spinner.mdx b/apps/docs/content/docs/(kit)/components/spinner.mdx index 48fbd7aa..b97854a6 100644 --- a/apps/docs/content/docs/(kit)/components/spinner.mdx +++ b/apps/docs/content/docs/(kit)/components/spinner.mdx @@ -47,7 +47,7 @@ Native attributes pass through to the root. ## Styled parts API -Import the parts from `@codeui/kit/spinner/parts`. These wrappers use native SVG elements, not Kobalte primitives. +Import the parts from `@codeui/solid/spinner/parts`. These wrappers use native SVG elements, not Kobalte primitives. ### `Indicator` diff --git a/apps/docs/content/docs/(kit)/components/stack.mdx b/apps/docs/content/docs/(kit)/components/stack.mdx index fcd08216..22da0b61 100644 --- a/apps/docs/content/docs/(kit)/components/stack.mdx +++ b/apps/docs/content/docs/(kit)/components/stack.mdx @@ -99,11 +99,11 @@ This design has three results that matter in an app: ## Styled parts API -Import the parts from `@codeui/kit/stack/parts`. +Import the parts from `@codeui/solid/stack/parts`. ### `Root` -`Root` is the same component as `Stack`. `@codeui/kit` exports it as `Stack`, and `@codeui/kit/stack/parts` exports it as `Root`, with `RootProps` equal to `StackProps`. It wraps no Kobalte primitive. Use the parts entry when you compose your own layout primitives and want the namespace import. +`Root` is the same component as `Stack`. `@codeui/solid` exports it as `Stack`, and `@codeui/solid/stack/parts` exports it as `Root`, with `RootProps` equal to `StackProps`. It wraps no Kobalte primitive. Use the parts entry when you compose your own layout primitives and want the namespace import. diff --git a/apps/docs/content/docs/(kit)/components/switch.mdx b/apps/docs/content/docs/(kit)/components/switch.mdx index 1b3a20b4..ae66a861 100644 --- a/apps/docs/content/docs/(kit)/components/switch.mdx +++ b/apps/docs/content/docs/(kit)/components/switch.mdx @@ -65,7 +65,7 @@ Inherited behavior follows the [Kobalte switch contract](https://kobalte.dev/doc ## Styled parts API -Import the parts from `@codeui/kit/switch/parts`. +Import the parts from `@codeui/solid/switch/parts`. ### `Control` diff --git a/apps/docs/content/docs/(kit)/components/table.mdx b/apps/docs/content/docs/(kit)/components/table.mdx index 7c11afd0..98b0e217 100644 --- a/apps/docs/content/docs/(kit)/components/table.mdx +++ b/apps/docs/content/docs/(kit)/components/table.mdx @@ -38,7 +38,7 @@ Set `striped` to give alternating body rows a neutral fill. ## Ready API -Import `Table` and `TableScrollArea` from `@codeui/kit` or `@codeui/kit/table`. +Import `Table` and `TableScrollArea` from `@codeui/solid` or `@codeui/solid/table`. ### `Table` diff --git a/apps/docs/content/docs/(kit)/components/tabs.mdx b/apps/docs/content/docs/(kit)/components/tabs.mdx index 52fdd512..ff9d329f 100644 --- a/apps/docs/content/docs/(kit)/components/tabs.mdx +++ b/apps/docs/content/docs/(kit)/components/tabs.mdx @@ -41,7 +41,7 @@ Only the root has a kit `data-cui` attribute. Kobalte supplies state and orienta `variant="inline"` makes TabsList insert an indicator aligned with the selected header. The default variant has no indicator. The variant does not change panel behavior. -Import `Indicator` from `@codeui/kit/tabs/parts` to place it explicitly. +Import `Indicator` from `@codeui/solid/tabs/parts` to place it explicitly. ### Vertical orientation @@ -93,10 +93,10 @@ The package root exports the four components, but does not re-export their props ## Styled parts API -Import `Root`, `List`, `Trigger`, `Content`, and `Indicator` from `@codeui/kit/tabs/parts`. Put each trigger in `List` and match its `value` to a panel. Add `Indicator` inside `List` when you want the inline treatment. +Import `Root`, `List`, `Trigger`, `Content`, and `Indicator` from `@codeui/solid/tabs/parts`. Put each trigger in `List` and match its `value` to a panel. Add `Indicator` inside `List` when you want the inline treatment. ```tsx -import * as T from "@codeui/kit/tabs/parts"; +import * as T from "@codeui/solid/tabs/parts"; diff --git a/apps/docs/content/docs/(kit)/components/text-area.mdx b/apps/docs/content/docs/(kit)/components/text-area.mdx index 4c7255a1..712b54ae 100644 --- a/apps/docs/content/docs/(kit)/components/text-area.mdx +++ b/apps/docs/content/docs/(kit)/components/text-area.mdx @@ -92,7 +92,7 @@ Renders Kobalte's `TextField.Label` with the kit label style. Use it only inside ## Styled parts API -Use `@codeui/kit/text-area/parts` to arrange the label and messages around a textarea. `Input` renders a `textarea`. Use its `rows` or `autoResize` prop to size the text area, and put the field value and validation state on `Root`. Keep `Label`, `Input`, `Description`, and `ErrorMessage` under that root. +Use `@codeui/solid/text-area/parts` to arrange the label and messages around a textarea. `Input` renders a `textarea`. Use its `rows` or `autoResize` prop to size the text area, and put the field value and validation state on `Root`. Keep `Label`, `Input`, `Description`, and `ErrorMessage` under that root. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/text-field.mdx b/apps/docs/content/docs/(kit)/components/text-field.mdx index 1237eee8..efd6c888 100644 --- a/apps/docs/content/docs/(kit)/components/text-field.mdx +++ b/apps/docs/content/docs/(kit)/components/text-field.mdx @@ -110,10 +110,10 @@ Renders Kobalte's `TextField.Label` with the kit label style. Use it only inside ## Styled parts API -Use `@codeui/kit/text-field/parts` to place an input inside a custom field layout. Put `Label`, `Input`, `Description`, and `ErrorMessage` under `Root`. Put value, name, and validation state on `Root`. Put native input attributes such as autocomplete and placeholder on `Input`. +Use `@codeui/solid/text-field/parts` to place an input inside a custom field layout. Put `Label`, `Input`, `Description`, and `ErrorMessage` under `Root`. Put value, name, and validation state on `Root`. Put native input attributes such as autocomplete and placeholder on `Input`. ```tsx -import * as F from "@codeui/kit/text-field/parts"; +import * as F from "@codeui/solid/text-field/parts"; File name diff --git a/apps/docs/content/docs/(kit)/components/text.mdx b/apps/docs/content/docs/(kit)/components/text.mdx index e4756037..bb125271 100644 --- a/apps/docs/content/docs/(kit)/components/text.mdx +++ b/apps/docs/content/docs/(kit)/components/text.mdx @@ -101,11 +101,11 @@ Most interface text in Inkstone is secondary, so `muted` is the common tone for ## Styled parts API -Import the parts from `@codeui/kit/text/parts`. +Import the parts from `@codeui/solid/text/parts`. ### `Root` -`Root` is the same component as `Text`. `@codeui/kit` exports it as `Text`, and `@codeui/kit/text/parts` exports it as `Root`, with `RootProps` equal to `TextProps`. It wraps no Kobalte primitive. +`Root` is the same component as `Text`. `@codeui/solid` exports it as `Text`, and `@codeui/solid/text/parts` exports it as `Root`, with `RootProps` equal to `TextProps`. It wraps no Kobalte primitive. ## Styles export @@ -113,7 +113,7 @@ Import the parts from `@codeui/kit/text/parts`. Call `textStyles.root()` for the base class and set `data-size`, `data-weight`, and `data-tone` on custom markup. The Solid component defaults to `sm`, `normal`, and `default`. -`@codeui/kit` and `@codeui/kit/text/parts` both export `textStyles`, `TextStyles` and `textParts`. Prefer ``. Call `textStyles` only on markup you cannot render through the component. +`@codeui/solid` and `@codeui/solid/text/parts` both export `textStyles`, `TextStyles` and `textParts`. Prefer ``. Call `textStyles` only on markup you cannot render through the component. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/toast.mdx b/apps/docs/content/docs/(kit)/components/toast.mdx index 290f211e..f6164dde 100644 --- a/apps/docs/content/docs/(kit)/components/toast.mdx +++ b/apps/docs/content/docs/(kit)/components/toast.mdx @@ -150,7 +150,7 @@ The callbacks of `title`, `description`, `icon`, and `action.onClick` receive a ## Styled parts API -Import the parts from `@codeui/kit/toast/parts`. +Import the parts from `@codeui/solid/toast/parts`. diff --git a/apps/docs/content/docs/(kit)/components/tooltip.mdx b/apps/docs/content/docs/(kit)/components/tooltip.mdx index 1354fdb4..b9bf238d 100644 --- a/apps/docs/content/docs/(kit)/components/tooltip.mdx +++ b/apps/docs/content/docs/(kit)/components/tooltip.mdx @@ -60,14 +60,14 @@ Keyboard focus ignores `openDelay` and opens the tooltip at once. Wrap the app in `TooltipProvider` to set the defaults of every tooltip below it. A prop on one tooltip still wins. ```tsx -import { TooltipProvider } from "@codeui/kit"; +import { TooltipProvider } from "@codeui/solid"; ; ``` -It takes `openDelay`, `closeDelay`, `skipDelayDuration`, `gutter`, `shift` and `variant`. With parts, import it as `Provider` from `@codeui/kit/tooltip/parts`. +It takes `openDelay`, `closeDelay`, `skipDelayDuration`, `gutter`, `shift` and `variant`. With parts, import it as `Provider` from `@codeui/solid/tooltip/parts`. `skipDelayDuration` is how long after a tooltip closes the next one opens at once, without its delay or its animation. The kit default is 400ms. ### Icon button trigger @@ -102,7 +102,7 @@ Inherited from Kobalte's [tooltip](https://kobalte.dev/docs/core/components/tool ## Styled parts API -Use `@codeui/kit/tooltip/parts` to build a reusable tooltip with a specific trigger and content. Put `Trigger` and `Portal` in `Root`, and put `Content` inside `Portal`. Render the trigger as a focusable control, for example with `as={Button}`. Use `Content` for the description and keep interactive actions outside the tooltip. +Use `@codeui/solid/tooltip/parts` to build a reusable tooltip with a specific trigger and content. Put `Trigger` and `Portal` in `Root`, and put `Content` inside `Portal`. Render the trigger as a focusable control, for example with `as={Button}`. Use `Content` for the description and keep interactive actions outside the tooltip. ## Accessibility diff --git a/apps/docs/content/docs/(kit)/components/virtualized-listbox.mdx b/apps/docs/content/docs/(kit)/components/virtualized-listbox.mdx index c3b8249d..48c3ff61 100644 --- a/apps/docs/content/docs/(kit)/components/virtualized-listbox.mdx +++ b/apps/docs/content/docs/(kit)/components/virtualized-listbox.mdx @@ -19,7 +19,7 @@ This collection contains 500 snippet records across five languages, ten topics, Only the visible rows and overscan rows mount. The root class supplies a fixed height and `overflow: auto`. Without a bounded scroll container, virtualization cannot limit the visible window. -Use `@codeui/kit/virtualized-listbox` when the control needs to render only the visible options. To customize option markup in a non-virtualized list, see [Listbox parts](/docs/components/listbox#styled-parts-api). +Use `@codeui/solid/virtualized-listbox` when the control needs to render only the visible options. To customize option markup in a non-virtualized list, see [Listbox parts](/docs/components/listbox#styled-parts-api). ## Anatomy diff --git a/apps/docs/content/docs/(kit)/contributing/add-a-component.mdx b/apps/docs/content/docs/(kit)/contributing/add-a-component.mdx index 23c374cd..e2683f1f 100644 --- a/apps/docs/content/docs/(kit)/contributing/add-a-component.mdx +++ b/apps/docs/content/docs/(kit)/contributing/add-a-component.mdx @@ -14,8 +14,8 @@ Each component has three layers. Each layer builds on the one before it. | Layer | File | Exported from | Who uses it | | --- | --- | --- | --- | | Styles | `packages/styles/css/components//.css` | `@codeui/styles/.css` | The parts | -| Parts | `packages/kit/src/parts/.tsx` | `@codeui/kit/` | Apps that need a custom layout, and the ready component | -| Ready component | `packages/kit/src/components//.tsx` | `@codeui/kit` | Most apps | +| Parts | `packages/kit/src/parts/.tsx` | `@codeui/solid/` | Apps that need a custom layout, and the ready component | +| Ready component | `packages/kit/src/components//.tsx` | `@codeui/solid` | Most apps | Wrap a Kobalte primitive when one exists. Check the [Kobalte 2 components](https://github.com/kobaltedev/kobalte/tree/solid2/packages/core/src) first. Build on plain elements only when Kobalte has nothing, as `Stack` and `Text` do. @@ -140,9 +140,9 @@ it("names the badge with its text, not its icon", () => { - Add a server render test. It checks that the component renders on the server without the DOM and that labels point at their inputs. See [Verify accessibility and SSR](/docs/contributing/verify-accessibility-and-ssr). ```sh -pnpm --filter @codeui/kit test:client -pnpm --filter @codeui/kit test:ssr -pnpm --filter @codeui/kit typecheck +pnpm --filter @codeui/solid test:client +pnpm --filter @codeui/solid test:ssr +pnpm --filter @codeui/solid typecheck ``` ## Add stories @@ -169,7 +169,7 @@ Add the component page and its demos. [Add docs and demos](/docs/contributing/ad pnpm changeset ``` -Pick `@codeui/kit`. A new component is `minor`. A fix that changes no API is `patch`. While the kit is 0.x, a breaking change is also `minor`. Say what breaks in the summary, in one sentence a user can act on, such as "`Select` calls `onChange` only when the value changes." +Pick `@codeui/solid`. A new component is `minor`. A fix that changes no API is `patch`. While the kit is 0.x, a breaking change is also `minor`. Say what breaks in the summary, in one sentence a user can act on, such as "`Select` calls `onChange` only when the value changes." ## Check before you open the pull request diff --git a/apps/docs/content/docs/(kit)/contributing/add-docs-and-demos.mdx b/apps/docs/content/docs/(kit)/contributing/add-docs-and-demos.mdx index d22491c1..ff3a6a0d 100644 --- a/apps/docs/content/docs/(kit)/contributing/add-docs-and-demos.mdx +++ b/apps/docs/content/docs/(kit)/contributing/add-docs-and-demos.mdx @@ -36,7 +36,7 @@ Each section holds a TODO comment that says what goes in it. Fill the section, t ## Write a demo ```tsx title="packages/docs-demos/src/demos/toast/basic.tsx" -import { Button, createToaster, Toaster } from "@codeui/kit"; +import { Button, createToaster, Toaster } from "@codeui/solid"; export default function ToastBasic() { const notifications = createToaster(); @@ -63,7 +63,7 @@ There is no registry. The client and server bundles find demos with `import.meta - Write one demo per variant axis and one per distinct state. Add composition demos that show the component in a real screen. - Use CodeImage content, such as snippet names, export formats, and editor settings. Do not use "foo" and "bar". -- Import ready components from `@codeui/kit` and parts as a namespace from `@codeui/kit/`. Copy what an app would write. +- Import ready components from `@codeui/solid` and parts as a namespace from `@codeui/solid/`. Copy what an app would write. - Follow the same rules as kit code. Read values from `--cui-*` tokens. Give every control an accessible name. - A demo can import a plain `.css` file next to it. The page does not print imported CSS, so paste it under the demo in a `css` code block with a `title`. - Add `source="hidden"` to `SolidDemo` only for a demo whose code teaches nothing, such as a token swatch grid. @@ -78,8 +78,8 @@ pnpm --filter @codeui/docs-demos exec tsc --noEmit -p . ## Write a props table ```ts title="packages/docs-demos/src/props/badge.ts" -import type { BadgeProps } from "@codeui/kit"; -import type { RootProps, IconProps, LabelProps } from "@codeui/kit/badge/parts"; +import type { BadgeProps } from "@codeui/solid"; +import type { RootProps, IconProps, LabelProps } from "@codeui/solid/badge/parts"; import type { PropNotes } from "./notes"; export type Badge = Pick< @@ -107,7 +107,7 @@ The generator keeps each shown type short: - A kit alias name, such as `Gap` or `SelectClasses`, links to its declaration. The full type opens under the row. - The build fails when a shown type is longer than 80 characters. Set `type` in the prop's note to a shorter form. The table keeps the full type under the row. -- Import kit symbols with `import type` only. The generator loads these files in Node, and a runtime import of `@codeui/kit` crashes it. +- Import kit symbols with `import type` only. The generator loads these files in Node, and a runtime import of `@codeui/solid` crashes it. - Export one `Pick<…>` projection per ready export and one per styled part. Keep only the props the kit adds or changes. - Add a `Inherited` projection for the Kobalte props that change behavior, such as `open` or `onChange`. Link the Kobalte page for the rest. - Put the default and a one-line description of each prop in `notes`, keyed by projection name. The description from the JSDoc comment is used when the note has none. diff --git a/apps/docs/content/docs/(kit)/contributing/verify-accessibility-and-ssr.mdx b/apps/docs/content/docs/(kit)/contributing/verify-accessibility-and-ssr.mdx index 5ab9e5b1..2a23f3f4 100644 --- a/apps/docs/content/docs/(kit)/contributing/verify-accessibility-and-ssr.mdx +++ b/apps/docs/content/docs/(kit)/contributing/verify-accessibility-and-ssr.mdx @@ -9,7 +9,7 @@ Unit tests prove the logic. A user meets the component in a browser, with a keyb | --- | --- | --- | | Browser journey | Keyboard, focus, and the visible result, in dark and light | `verify-codeui` skill, on Storybook | | Automated audit | Contrast, names, and roles across every story | `node tools/baseline/run.mjs` | -| SSR test | The server renders without the DOM, and labels point at inputs | `pnpm --filter @codeui/kit test:ssr` | +| SSR test | The server renders without the DOM, and labels point at inputs | `pnpm --filter @codeui/solid test:ssr` | | Manual pass | Narrow viewport, long labels, and a screen reader | Your browser | ## Drive a story in the browser @@ -100,7 +100,7 @@ it("server renders labelled headers and expanded content without DOM measurement ``` ```sh -pnpm --filter @codeui/kit test:ssr +pnpm --filter @codeui/solid test:ssr ``` A file in `packages/kit/test` whose name ends in `.ssr.test.tsx` runs in the server config. That config compiles Solid with `generate: "ssr"` and resolves the `solid` and `node` export conditions, so no DOM exists. diff --git a/apps/docs/content/docs/(kit)/foundations/accessibility.mdx b/apps/docs/content/docs/(kit)/foundations/accessibility.mdx index ad243589..bcfdcce2 100644 --- a/apps/docs/content/docs/(kit)/foundations/accessibility.mdx +++ b/apps/docs/content/docs/(kit)/foundations/accessibility.mdx @@ -79,7 +79,7 @@ The shared brand fill is `#0076cf` in both themes. Hover uses `#0068b9` and acti The switch off track stays below 3:1 on some surfaces. The thumb position and the blue on track also indicate state. -`pnpm --filter @codeui/kit test` checks the light pairs: `packages/kit/test/light-palette.test.ts` fails when a light text, ring or edge token drops below its target. +`pnpm --filter @codeui/solid test` checks the light pairs: `packages/kit/test/light-palette.test.ts` fails when a light text, ring or edge token drops below its target. Check contrast again whenever you override a color token. The kit cannot check your values. diff --git a/apps/docs/content/docs/(kit)/foundations/tokens.mdx b/apps/docs/content/docs/(kit)/foundations/tokens.mdx index 933baa55..cca5a079 100644 --- a/apps/docs/content/docs/(kit)/foundations/tokens.mdx +++ b/apps/docs/content/docs/(kit)/foundations/tokens.mdx @@ -33,7 +33,7 @@ The design rules for each role live in Inkstone: [Colour](/docs/design/color), [ Each group has a live table and a static table. The live table reads every value from your browser with `getComputedStyle`, inside a `data-cui-theme="dark"` scope and a `data-cui-theme="light"` scope. It shows what the kit really ships. The static table lists the values in `packages/inkstone/src/theme-values.ts`, the one registry that both modes come from. Agents and the Markdown route read the static table. -`pnpm --filter @codeui/kit test` checks every name and value against `docs/kit-2026/design/k5-token-map.json`. +`pnpm --filter @codeui/solid test` checks every name and value against `docs/kit-2026/design/k5-token-map.json`. ## Colour ramp matrix diff --git a/apps/docs/content/docs/(kit)/index.mdx b/apps/docs/content/docs/(kit)/index.mdx index 3d62ed5e..ac546e00 100644 --- a/apps/docs/content/docs/(kit)/index.mdx +++ b/apps/docs/content/docs/(kit)/index.mdx @@ -5,7 +5,7 @@ description: "CodeImage’s design system for Solid apps." ## What the kit is -`@codeui/kit` is CodeImage's design system. It combines Solid components, Kobalte behavior, and the Inkstone visual specification. +`@codeui/solid` is CodeImage's design system. It combines Solid components, Kobalte behavior, and the Inkstone visual specification. It is for CodeImage contributors and other Solid app authors who want the same controls and theme contract. ## Three layers @@ -13,8 +13,8 @@ It is for CodeImage contributors and other Solid app authors who want the same c | Layer | Import | Responsibility | | --- | --- | --- | | Kobalte engine | `@kobalte/core/` | Keyboard interaction, focus, state, and ARIA without kit styles. | -| Styled parts | `@codeui/kit/` | Individual elements with kit styles and stable `data-cui` markers. | -| Ready components | `@codeui/kit` | Common compositions with labels, icons, and messages wired together. | +| Styled parts | `@codeui/solid/` | Individual elements with kit styles and stable `data-cui` markers. | +| Ready components | `@codeui/solid` | Common compositions with labels, icons, and messages wired together. | Start with ready components. Use parts when you need to change the composition. Use Kobalte directly when you need to own the styling too. [Choose ready components or parts](/docs/ready-or-parts) compares all three with live examples. diff --git a/apps/docs/content/docs/(kit)/installation.mdx b/apps/docs/content/docs/(kit)/installation.mdx index 517cec0f..42bd3fe0 100644 --- a/apps/docs/content/docs/(kit)/installation.mdx +++ b/apps/docs/content/docs/(kit)/installation.mdx @@ -10,7 +10,7 @@ The component package requires Solid 2 and `@solidjs/web`. It uses Kobalte 2.0.0 ## Install ```sh -pnpm add @codeui/kit solid-js@^2 @solidjs/web@^2 +pnpm add @codeui/solid solid-js@^2 @solidjs/web@^2 pnpm add -D vite@^8 @solidjs/vite-plugin@^3 ``` @@ -32,7 +32,7 @@ Set `jsxImportSource` to `@solidjs/web` in `tsconfig.json`. To upgrade an existi Import a Solid component normally. Its module imports the compiled component stylesheet, shared styles and theme. ```ts title="App.tsx" -import { Button } from "@codeui/kit"; +import { Button } from "@codeui/solid"; ``` No manual CSS import is required. With production tree shaking, unused component modules and their CSS can be removed. All variants and runtime states of an included component remain available. The library does not purge individual selectors. @@ -41,7 +41,7 @@ No manual CSS import is required. With production tree shaking, unused component -Import ready components from `@codeui/kit` or a component entry such as `@codeui/kit/button`. Import styled parts from the component’s `/parts` entry. See [Ready or parts](/docs/ready-or-parts). +Import ready components from `@codeui/solid` or a component entry such as `@codeui/solid/button`. Import styled parts from the component’s `/parts` entry. See [Ready or parts](/docs/ready-or-parts). ## Pick a theme diff --git a/apps/docs/content/docs/(kit)/migration/from-0-1.mdx b/apps/docs/content/docs/(kit)/migration/from-0-1.mdx index e4a94a55..a3f6cba3 100644 --- a/apps/docs/content/docs/(kit)/migration/from-0-1.mdx +++ b/apps/docs/content/docs/(kit)/migration/from-0-1.mdx @@ -1,19 +1,19 @@ --- title: "From 0.1.x" -description: "Upgrade an app from @codeui/kit 0.1.x." +description: "Move an existing CodeUI app to Solid 2 and the new component package." --- This guide covers the Solid peer update, Kobalte behavior changes, compiled CSS, package imports, and the `theme` to `variant` rename. If your app already uses styled parts from a component subpath, move those imports to the new `/parts` entry points. Work through the sections in order. -## Raise the Solid version +## Upgrade Solid and switch packages ```sh -pnpm add @codeui/kit solid-js@^2 @solidjs/web@^2 +pnpm add @codeui/solid solid-js@^2 @solidjs/web@^2 ``` -Upgrade the app to Solid 2 before installing the current kit. Follow the [Solid 2 migration guide](https://docs.solidjs.com/migration/from-solid-1/). +Upgrade the app to Solid 2 by following the [Solid 2 migration guide](https://docs.solidjs.com/migration/from-solid-1/). Replace the previous component package with `@codeui/solid`, then update the package name in your imports. Keep the component subpath and add `/parts` where you import styled parts. For Vite, replace `vite-plugin-solid` with `@solidjs/vite-plugin` and set `jsxImportSource` to `@solidjs/web`. See the [Vite setup](/docs/installation#configure-vite). @@ -73,7 +73,7 @@ Every color, radius, space, font, shadow, and duration is now a `--cui-*` custom - Font sizes follow the new scale. `xs` is 12px, `lg` is 18px, and `xl` is 20px. Check layouts that used those sizes. - Every component changes appearance. Brand, danger, and status colors meet WCAG AA text contrast. The brand color is `#0076cf` in both themes, for every filled and selected control. Motion is shorter, with one ease-out curve. - Override a token with plain CSS on `:root`, on `[data-cui-theme]`, or on any element. [Theming](/docs/foundations/theming) shows each case. -- Style files evaluated in Node, such as vanilla-extract `.css.ts` files, import `tokens` from `@codeui/kit/tokens`. That entry loads no component. See [Token exports](/docs/utilities/token-exports). +- Style files evaluated in Node, such as vanilla-extract `.css.ts` files, import `tokens` from `@codeui/solid/tokens`. That entry loads no component. See [Token exports](/docs/utilities/token-exports). ### Set the theme attribute @@ -119,30 +119,30 @@ A `PopoverContent` whose children relied on the `

` wrapper for spacing or tex ## Update component imports -Ready components can still be imported from `@codeui/kit`. Each component family also has a direct entry point. +Ready components can still be imported from `@codeui/solid`. Each component family also has a direct entry point. ```tsx -import { Combobox, createComboboxOptions } from "@codeui/kit/combobox"; -import { Select, createSelectOptions } from "@codeui/kit/select"; +import { Combobox, createComboboxOptions } from "@codeui/solid/combobox"; +import { Select, createSelectOptions } from "@codeui/solid/select"; ``` If you used a component subpath for styled parts, append `/parts`. Move named and type imports from that entry along with namespace imports. ```tsx title="Before" -import * as C from "@codeui/kit/combobox"; -import type { RootProps } from "@codeui/kit/combobox"; -import { Root as DialogRoot } from "@codeui/kit/dialog"; +import * as C from "@codeui/solid/combobox"; +import type { RootProps } from "@codeui/solid/combobox"; +import { Root as DialogRoot } from "@codeui/solid/dialog"; ``` ```tsx title="After" -import * as C from "@codeui/kit/combobox/parts"; -import type { RootProps } from "@codeui/kit/combobox/parts"; -import { Root as DialogRoot } from "@codeui/kit/dialog/parts"; +import * as C from "@codeui/solid/combobox/parts"; +import type { RootProps } from "@codeui/solid/combobox/parts"; +import { Root as DialogRoot } from "@codeui/solid/dialog/parts"; ``` Apply the same change to existing parts imports for `accordion`, `alert`, `badge`, `command-menu`, `kbd`, `option-card`, `popover`, `progress`, `settings`, `sheet`, `skeleton`, `slider`, `spinner`, `stack`, `switch`, `text`, and `toast`. -New parts entry points include Select, Tabs, DropdownMenu, the field and selection controls, Tooltip, Pagination, and SegmentedControl. Add the `/parts` import when you build a custom primitive from them. For token values in build-time stylesheets, keep using `@codeui/kit/tokens`. See [Ready or parts](/docs/ready-or-parts) for the import conventions. +New parts entry points include Select, Tabs, DropdownMenu, the field and selection controls, Tooltip, Pagination, and SegmentedControl. Add the `/parts` import when you build a custom primitive from them. For token values in build-time stylesheets, keep using `@codeui/solid/tokens`. See [Ready or parts](/docs/ready-or-parts) for the import conventions. ## Rename `theme` to `variant` @@ -177,7 +177,7 @@ A compound component name in a `data-cui` marker is now one lowercase word. If y | `dropdown-menu-content`, `dropdown-menu-item` | `dropdownmenu-content`, `dropdownmenu-item` | | `segmentedControl`, `segmentedControlList`, `segmentedControlItem`, `segmentedControlIndicator` | `segmentedcontrol`, `segmentedcontrol-list`, `segmentedcontrol-item`, `segmentedcontrol-indicator` | -The other 0.1.x markers keep their names. Class names in 0.1.x were generated, so do not select them. The new classes follow `cui--`, as described in [CSS markup](/docs/css/markup). Kit `/parts` subpaths, such as `@codeui/kit/text-field/parts`, keep their hyphens. +The other 0.1.x markers keep their names. Class names in 0.1.x were generated, so do not select them. The new classes follow `cui--`, as described in [CSS markup](/docs/css/markup). Kit `/parts` subpaths, such as `@codeui/solid/text-field/parts`, keep their hyphens. ## New components @@ -194,5 +194,5 @@ Remove a workaround for one of these: - `NumberField` masked input only when the caller passed a `ref`. It masks without one now. - The `createSelectOptions` types were too loose, and generated option keys could collide. -- `PaginationProps` was not exported. Import it from `@codeui/kit`. +- `PaginationProps` was not exported. Import it from `@codeui/solid`. - A custom `gutter` on a dropdown submenu was ignored. diff --git a/apps/docs/content/docs/(kit)/migration/from-codeimage-ui.mdx b/apps/docs/content/docs/(kit)/migration/from-codeimage-ui.mdx index 93aaed5d..61d919ba 100644 --- a/apps/docs/content/docs/(kit)/migration/from-codeimage-ui.mdx +++ b/apps/docs/content/docs/(kit)/migration/from-codeimage-ui.mdx @@ -1,9 +1,9 @@ --- title: "From @codeimage/ui" -description: "Move a CodeImage screen from @codeimage/ui to @codeui/kit." +description: "Move a CodeImage screen from @codeimage/ui to @codeui/solid." --- -`@codeimage/ui` is the 2022 component package inside the CodeImage repository, at `packages/ui`. `@codeui/kit` replaces all of it. The kit has one token system, one theme attribute, and components with keyboard support that `@codeimage/ui` lacks. The end state is an app with no `packages/ui`. +`@codeimage/ui` is the 2022 component package inside the CodeImage repository, at `packages/ui`. `@codeui/solid` replaces all of it. The kit has one token system, one theme attribute, and components with keyboard support that `@codeimage/ui` lacks. The end state is an app with no `packages/ui`. This page maps every export of `@codeimage/ui` that CodeImage still imports. Move one screen at a time. Both packages can stay installed in the same app while you migrate. @@ -15,14 +15,14 @@ This page maps every export of `@codeimage/ui` that CodeImage still imports. Mov ## Export map -| `@codeimage/ui` | `@codeui/kit` | Notes | +| `@codeimage/ui` | `@codeui/solid` | Notes | | --- | --- | --- | | `Box` | `Stack`, or a plain element with a class | `Box` exposes the sprinkles API. The kit does not port it. | | `HStack`, `VStack` | `Stack` with `direction="row"` or `direction="column"` | `spacing` becomes `gap`. `alignItems` becomes `align`. | | `FlexField`, `Group` | `Stack` | Use the field's own `label` and `description` for field layout. | | `Text` | `Text` | Same polymorphic `as`. Sizes and weights map to the `--cui-font-*` scale. | | `textStyles` | `Text`, or `textStyles.root()` | `textStyles.root()` returns one class. Set `data-size`, `data-weight`, and `data-tone` on the element yourself. | -| `themeVars`, `backgroundColorVar`, `colorVar` | `--cui-*` custom properties, or `tokens` from `@codeui/kit/tokens` | See [Map the theme variables](#map-the-theme-variables). | +| `themeVars`, `backgroundColorVar`, `colorVar` | `--cui-*` custom properties, or `tokens` from `@codeui/solid/tokens` | See [Map the theme variables](#map-the-theme-variables). | | `withThemeMode`, `CodeImageThemeProvider` | `data-cui-theme` on `` or on a subtree | The kit ships no provider. | | `darkGrayScale` | Stays in the app | It is a fixed palette, not a theme role. | | `toast`, `SnackbarHost` | `createToaster`, `Toaster` | See [Move toasts to createToaster](#move-toasts-to-createtoaster). | @@ -158,7 +158,7 @@ The frame mode comes from the image settings, not from the appearance settings. ## Map the theme variables -Each semantic role of `themeVars` has a kit token. In a `.css.ts` file, import `tokens` from `@codeui/kit/tokens`. In plain CSS, write the `--cui-*` name. Common roles: +Each semantic role of `themeVars` has a kit token. In a `.css.ts` file, import `tokens` from `@codeui/solid/tokens`. In plain CSS, write the `--cui-*` name. Common roles: | `themeVars` path | Kit token | | --- | --- | diff --git a/apps/docs/content/docs/(kit)/patterns/compose-styled-parts.mdx b/apps/docs/content/docs/(kit)/patterns/compose-styled-parts.mdx index 77bf7e31..b4ad1837 100644 --- a/apps/docs/content/docs/(kit)/patterns/compose-styled-parts.mdx +++ b/apps/docs/content/docs/(kit)/patterns/compose-styled-parts.mdx @@ -11,9 +11,9 @@ Build an app-level primitive from styled parts when you need a layout that you c This `PickerPopover` sets a shared layout for compact pickers. Its close button sits beside the title. Callers supply the trigger label, panel title, and content. ```tsx title="PickerPopover.tsx" -import { Button } from "@codeui/kit/button"; -import * as P from "@codeui/kit/popover/parts"; -import { Stack } from "@codeui/kit/stack"; +import { Button } from "@codeui/solid/button"; +import * as P from "@codeui/solid/popover/parts"; +import { Stack } from "@codeui/solid/stack"; import type { ParentProps } from "solid-js"; type PickerPopoverProps = ParentProps<{ @@ -45,7 +45,7 @@ export function PickerPopover(props: PickerPopoverProps) { Use the primitive anywhere that needs this layout. Supply the picker itself as children. ```tsx -import { RadioList, RadioListItem } from "@codeui/kit/radio-list"; +import { RadioList, RadioListItem } from "@codeui/solid/radio-list"; import { PickerPopover } from "./PickerPopover"; @@ -69,14 +69,14 @@ The examples below build a Line height popover. Start with the ready component a -Import `Popover`, `PopoverTrigger`, and `PopoverContent` from `@codeui/kit/popover` or the kit root. `PopoverContent` portals the panel and renders the title and the description for you. +Import `Popover`, `PopoverTrigger`, and `PopoverContent` from `@codeui/solid/popover` or the kit root. `PopoverContent` portals the panel and renders the title and the description for you. Pick this layer first. You own the content and the state. The kit owns the arrangement, the IDs, and the ARIA links. ### Compose the styled parts -The parts come from `@codeui/kit/popover/parts`, or `@codeui/kit/dialog/parts` for a dialog. Each part wraps one Kobalte primitive, adds the kit class, and sets a `data-cui` attribute. +The parts come from `@codeui/solid/popover/parts`, or `@codeui/solid/dialog/parts` for a dialog. Each part wraps one Kobalte primitive, adds the kit class, and sets a `data-cui` attribute. Pick this layer when the ready component fixes something you need to change. Here the close button sits next to the title, which `PopoverContent` does not render. You own the arrangement. Keep every part inside its `Root` in the Solid tree, including when you use `Portal`. Keep `Title` inside `Content` so the panel has an accessible name. Use `Trigger as={Button}` when the trigger should use the kit’s Button styling. @@ -86,7 +86,7 @@ You own the arrangement. Keep every part inside its `Root` in the Solid tree, in -Here Kobalte's `Popover` renders every element, and `popoverStyles` from `@codeui/kit/popover/parts` supplies the classes. The trigger takes its class from `buttonStyles.button`. +Here Kobalte's `Popover` renders every element, and `popoverStyles` from `@codeui/solid/popover/parts` supplies the classes. The trigger takes its class from `buttonStyles.button`. Pick this layer when you need a Kobalte option or element that no kit part exposes, but still want the kit look. You own the composition and the `data-cui` attributes. Copy them from `popoverParts` or `dialogParts`, so CSS and tests that target a part still match. diff --git a/apps/docs/content/docs/(kit)/ready-or-parts.mdx b/apps/docs/content/docs/(kit)/ready-or-parts.mdx index 15496257..75d93233 100644 --- a/apps/docs/content/docs/(kit)/ready-or-parts.mdx +++ b/apps/docs/content/docs/(kit)/ready-or-parts.mdx @@ -7,7 +7,7 @@ description: "Choose how much composition and styling you own." -Use a ready component for standard controls. Every component family has a direct entry point alongside the root, such as `import { Switch } from "@codeui/kit/switch"`. The ready Switch composes the input, control, thumb, and label for you. +Use a ready component for standard controls. Every component family has a direct entry point alongside the root, such as `import { Switch } from "@codeui/solid/switch"`. The ready Switch composes the input, control, thumb, and label for you. You own the label and state. The kit owns the arrangement. ## Styled parts @@ -20,7 +20,7 @@ You own the composition, including the hidden input and accessible label. Keep a Append `/parts` to the component path to import its styled parts. ```tsx -import * as S from "@codeui/kit/switch/parts"; +import * as S from "@codeui/solid/switch/parts"; ``` These component entry points have a `/parts` subpath. diff --git a/apps/docs/content/docs/(kit)/utilities/classes.mdx b/apps/docs/content/docs/(kit)/utilities/classes.mdx index dce60aee..a2b120c0 100644 --- a/apps/docs/content/docs/(kit)/utilities/classes.mdx +++ b/apps/docs/content/docs/(kit)/utilities/classes.mdx @@ -7,7 +7,7 @@ description: "Add classes to individual kit parts." -`mergeClasses` is a public root export from `@codeui/kit`. +`mergeClasses` is a public root export from `@codeui/solid`. Its signature is `(...classNames: Array) => string`. It removes falsy entries and joins the remaining strings with one space. Empty input returns an empty string. Duplicate classes and whitespace inside a string remain unchanged. @@ -15,7 +15,7 @@ It does not resolve Tailwind conflicts. Booleans, arrays, and objects are not ac ## `FieldClasses` -`FieldClasses` is a public type from `@codeui/kit`. Every key is optional and accepts a string. +`FieldClasses` is a public type from `@codeui/solid`. Every key is optional and accepts a string. The keys identify named parts. They are not literal `data-cui` attribute values. | Key | TextField `data-cui` | diff --git a/apps/docs/content/docs/(kit)/utilities/control-helpers.mdx b/apps/docs/content/docs/(kit)/utilities/control-helpers.mdx index 1af3ef47..70321277 100644 --- a/apps/docs/content/docs/(kit)/utilities/control-helpers.mdx +++ b/apps/docs/content/docs/(kit)/utilities/control-helpers.mdx @@ -7,9 +7,9 @@ description: "Reactive mappings for custom control compositions and entry metada -Import `createSwitchProps` from `@codeui/kit`. Its signature is `createSwitchProps(props: Accessor)`. Call it once in your component and pass an accessor so later signal changes remain visible. +Import `createSwitchProps` from `@codeui/solid`. Its signature is `createSwitchProps(props: Accessor)`. Call it once in your component and pass an accessor so later signal changes remain visible. -The result contains `root`, `input`, `label`, `description`, and `errorMessage` accessors. Spread each accessor result onto its matching styled part from `@codeui/kit/switch/parts`. Root retains checked state, callbacks, and form props. Input receives the derived ID, accessible name, and input class. Label receives its ID and `for` association. Message accessors supply IDs and classes. +The result contains `root`, `input`, `label`, `description`, and `errorMessage` accessors. Spread each accessor result onto its matching styled part from `@codeui/solid/switch/parts`. Root retains checked state, callbacks, and form props. Input receives the derived ID, accessible name, and input class. Label receives its ID and `for` association. Message accessors supply IDs and classes. @@ -19,7 +19,7 @@ The helper renders no DOM and does not insert the control, thumb, or messages. ` -Import `createSliderProps` from `@codeui/kit`. Its signature is `createSliderProps(props: Accessor)`. The return value contains `root`, `input`, `label`, `description`, and `errorMessage` accessors. +Import `createSliderProps` from `@codeui/solid`. Its signature is `createSliderProps(props: Accessor)`. The return value contains `root`, `input`, `label`, `description`, and `errorMessage` accessors. Root converts scalar `value` and `defaultValue` to one-element arrays. An undefined scalar stays undefined so Kobalte can manage uncontrolled state. The root callbacks forward the first array value to scalar `onChange` and `onChangeEnd` callbacks. Input receives a derived ID and `type="hidden"`. Place Input inside Thumb so Kobalte can read its index and submit the value under the root name. @@ -31,7 +31,7 @@ The helper supplies props, not the ready Slider behavior. A custom composition o -Import `createOptionCardItems` and `OptionCardEntry` from `@codeui/kit`. The signature is `createOptionCardItems(items: Accessor[]>)`. +Import `createOptionCardItems` and `OptionCardEntry` from `@codeui/solid`. The signature is `createOptionCardItems(items: Accessor[]>)`. The helper returns `{ items }` with the original accessor. It does not copy, filter, or memoize entries. Read `result.items()` in JSX to preserve reactive updates. The string generic keeps selection values tied to your entry type. An empty array is valid and renders no choices. @@ -43,7 +43,7 @@ The helper returns `{ items }` with the original accessor. It does not copy, fil -Import `createAccordionItems` and `AccordionEntry` from `@codeui/kit`. Its signature is `createAccordionItems(accessor: Accessor)`. +Import `createAccordionItems` and `AccordionEntry` from `@codeui/solid`. Its signature is `createAccordionItems(accessor: Accessor)`. The result is a memoized accessor that removes `content` from each entry. It retains `value`, `title`, `icon`, `summary`, and `disabled`. Use the result for navigation or summaries. Pass the original entries to Accordion to render panels. Empty input produces an empty metadata array. diff --git a/apps/docs/content/docs/(kit)/utilities/field-helpers.mdx b/apps/docs/content/docs/(kit)/utilities/field-helpers.mdx index 2af68a4f..15ad9993 100644 --- a/apps/docs/content/docs/(kit)/utilities/field-helpers.mdx +++ b/apps/docs/content/docs/(kit)/utilities/field-helpers.mdx @@ -42,7 +42,7 @@ The invalid and disabled styles key on the `data-invalid` and `data-disabled` at ## `createFieldLabelProps` ```ts -import { createFieldLabelProps } from "@codeui/kit"; +import { createFieldLabelProps } from "@codeui/solid"; function createFieldLabelProps( props: PolymorphicProps, @@ -67,7 +67,7 @@ The label font size follows the nearest `data-field-size` attribute, from 12px a ## `createFieldErrorMessageProps` ```ts -import { createFieldErrorMessageProps, type FieldWithErrorMessageSupport } from "@codeui/kit"; +import { createFieldErrorMessageProps, type FieldWithErrorMessageSupport } from "@codeui/solid"; function createFieldErrorMessageProps( props: T, @@ -83,7 +83,7 @@ The helper renders nothing and sets no id or role. Render the message only while ## `styleFieldMessage` ```ts -import { styleFieldMessage } from "@codeui/kit"; +import { styleFieldMessage } from "@codeui/solid"; function styleFieldMessage( sizesMap: Record<"xs" | "sm" | "md" | "lg", "xs" | "sm" | "md" | "lg" | "xl">, @@ -113,7 +113,7 @@ Use it when you add a text part to a custom field, such as a character counter, ## Field style exports -These namespaces hold the classes and variables that the helpers and the ready fields use. Import them from `@codeui/kit`. +These namespaces hold the classes and variables that the helpers and the ready fields use. Import them from `@codeui/solid`. | Export | Holds | | ------------------------------------- | ----------------------------------------------------------------------------------- | diff --git a/apps/docs/content/docs/(kit)/utilities/icons.mdx b/apps/docs/content/docs/(kit)/utilities/icons.mdx index ef426c7d..d947238b 100644 --- a/apps/docs/content/docs/(kit)/utilities/icons.mdx +++ b/apps/docs/content/docs/(kit)/utilities/icons.mdx @@ -7,7 +7,7 @@ description: "Every exported icon and its accessible usage." -Import the `icons` namespace from `@codeui/kit`. It exports `CheckIcon`, `ChevronDownIcon`, `ChevronUpIcon`, `CloseIcon`, `NextIcon`, `PreviousIcon`, and `SelectorIcon`. +Import the `icons` namespace from `@codeui/solid`. It exports `CheckIcon`, `ChevronDownIcon`, `ChevronUpIcon`, `CloseIcon`, `NextIcon`, `PreviousIcon`, and `SelectorIcon`. Each component accepts SVG attributes and a `size` string. The default size is `1.1em`. Set `size="16px"` for an icon inside a control. The drawings use `currentColor`, so they inherit the surrounding text color. diff --git a/apps/docs/content/docs/(kit)/utilities/options-and-collections.mdx b/apps/docs/content/docs/(kit)/utilities/options-and-collections.mdx index c2b64450..767f4864 100644 --- a/apps/docs/content/docs/(kit)/utilities/options-and-collections.mdx +++ b/apps/docs/content/docs/(kit)/utilities/options-and-collections.mdx @@ -17,7 +17,7 @@ The two option helpers solve the same problem. You keep a plain value in your st ## `createSelectOptions` ```ts -import { createSelectOptions } from "@codeui/kit"; +import { createSelectOptions } from "@codeui/solid"; function createSelectOptions( values: readonly T[] | Accessor, @@ -58,8 +58,8 @@ The value type follows `valueKey`. With `{ valueKey: "id" }` on `Theme[]`, the v ## `createComboboxOptions` ```ts -import { createComboboxOptions } from "@codeui/kit"; -// also exported from "@codeui/kit/combobox/parts" +import { createComboboxOptions } from "@codeui/solid"; +// also exported from "@codeui/solid/combobox/parts" function createComboboxOptions( values: readonly T[] | Accessor, @@ -91,12 +91,12 @@ TypeScript checks each key against the field types, so a `labelKey` that points | Member | Description | | --- | --- | | `options()` | The normalized options. | -| `props()` | `options`, plus `optionValue: "value"`, `optionTextValue: "label"`, `optionLabel: "label"`, and `optionDisabled: "disabled"`. Spread it on `Combobox` or on `Root` from `@codeui/kit/combobox/parts`. | +| `props()` | `options`, plus `optionValue: "value"`, `optionTextValue: "label"`, `optionLabel: "label"`, and `optionDisabled: "disabled"`. Spread it on `Combobox` or on `Root` from `@codeui/solid/combobox/parts`. | | `optionFromValue(value)` | The option whose `value` equals `value` with `===`. It returns `undefined` for `null`, `undefined`, or no match. | | `optionToValue(option)` | The `value` of the option, or `undefined`. | | `controlled(value, onChange)` | `{ value, onChange }` to spread on `Combobox`. `value` is the matching option or `null`. `onChange` receives the plain value and the option. | -`ComboboxOption`, `ComboboxOptionsConfig`, and `CreateComboboxOptionsReturn` are exported from `@codeui/kit` and `@codeui/kit/combobox/parts`. +`ComboboxOption`, `ComboboxOptionsConfig`, and `CreateComboboxOptionsReturn` are exported from `@codeui/solid` and `@codeui/solid/combobox/parts`. ### Edge cases @@ -114,7 +114,7 @@ Pass a signal accessor as `values`. Each new array rebuilds the options, and the ## `filterCommandItems` ```ts -import { filterCommandItems, type CommandItem } from "@codeui/kit"; +import { filterCommandItems, type CommandItem } from "@codeui/solid"; function filterCommandItems(items: readonly T[], query: string): readonly T[]; ``` diff --git a/apps/docs/content/docs/(kit)/utilities/styles-reference.mdx b/apps/docs/content/docs/(kit)/utilities/styles-reference.mdx index af08f498..a1ad8755 100644 --- a/apps/docs/content/docs/(kit)/utilities/styles-reference.mdx +++ b/apps/docs/content/docs/(kit)/utilities/styles-reference.mdx @@ -20,49 +20,49 @@ The published `@codeui/styles/contract.json` includes the options, allowed value ## `buttonStyles` -Advanced raw namespace from `@codeui/kit`. These exports expose class names, variant helpers and CSS variable references. +Advanced raw namespace from `@codeui/solid`. These exports expose class names, variant helpers and CSS variable references. `button()` returns the base class string. Set `data-size`, `data-variant`, or the `data-ghost` presence attribute on custom markup. `buttonIcon` and `buttonText` are class strings. `buttonVars` exposes the local CSS variables. ## `fieldStyles` -Advanced raw namespace from `@codeui/kit`. These exports expose class names, variant helpers and CSS variable references. +Advanced raw namespace from `@codeui/solid`. These exports expose class names, variant helpers and CSS variable references. `baseFieldVariants()` returns the base class. Set `data-size` and `data-variant` on the input. `FieldSizes` contains size names, `baseFieldTheme` is a class string, and `baseFieldVars`, `inputHeight`, and `fontSize` provide CSS variable references. ## `fieldErrorStyles` -Advanced raw namespace from `@codeui/kit`. These exports expose class names, variant helpers and CSS variable references. +Advanced raw namespace from `@codeui/solid`. These exports expose class names, variant helpers and CSS variable references. `errorMessage` is a class string for a field error. There are no callable recipes or variants. ## `fieldLabelStyles` -Advanced raw namespace from `@codeui/kit`. These exports expose class names, variant helpers and CSS variable references. +Advanced raw namespace from `@codeui/solid`. These exports expose class names, variant helpers and CSS variable references. `label` is a class string for a field label. There are no callable recipes or variants. ## `textFieldStyles` -Advanced raw namespace from `@codeui/kit`. These exports expose class names, variant helpers and CSS variable references. +Advanced raw namespace from `@codeui/solid`. These exports expose class names, variant helpers and CSS variable references. `baseFieldContainer` and `textField` are class strings. There are no callable recipes or variants. ## `dropdownMenuStyles` -Advanced raw namespace from `@codeui/kit`. These exports expose class names, variant helpers and CSS variable references. +Advanced raw namespace from `@codeui/solid`. These exports expose class names, variant helpers and CSS variable references. `content`, `subMenuContent`, `separator`, `item`, and `rightSlot` are class strings. `dropdownMenuThemeVars` is a variable contract. There are no callable recipes or variants. ## `popoverStyles` -Advanced raw namespace from `@codeui/kit`. These exports expose class names, variant helpers and CSS variable references. +Advanced raw namespace from `@codeui/solid`. These exports expose class names, variant helpers and CSS variable references. The root namespace exports `content()` for the base classes. Use `data-variant="bordered"` for the bordered variant. The namespace also exposes the title and description classes and the `popoverThemeVars` variable contract. ## `styleFieldMessage` -Advanced helper from `@codeui/kit` for use inside a vanilla-extract style definition. +Advanced helper from `@codeui/solid` for use inside a vanilla-extract style definition. It accepts a complete map from each control size (`xs`, `sm`, `md`, `lg`) to a font size from `xs` through `xl`. It returns a style object with `selectors`, not a class string or a component. The selectors match ancestor `data-field-size` values and set the mapped font size. @@ -74,7 +74,7 @@ Each helper returns a stable class string. Set the variant attributes described ### `accordionStyles` -Import from `@codeui/kit/accordion/parts`. Also exported from `@codeui/kit`. +Import from `@codeui/solid/accordion/parts`. Also exported from `@codeui/solid`. | Function | Returns | | --- | --- | @@ -96,7 +96,7 @@ See [Accordion](/docs/components/accordion) for composition and state attributes ### `alertStyles` -Import from `@codeui/kit/alert/parts`. +Import from `@codeui/solid/alert/parts`. | Function | Returns | | --- | --- | @@ -114,7 +114,7 @@ See [Alert](/docs/components/alert) for composition and state attributes. ### `badgeStyles` -Import from `@codeui/kit/badge/parts`. +Import from `@codeui/solid/badge/parts`. | Function | Returns | | --- | --- | @@ -130,7 +130,7 @@ See [Badge](/docs/components/badge) for composition and state attributes. ### `comboboxStyles` -Import from `@codeui/kit/combobox/parts`. Also exported from `@codeui/kit`. +Import from `@codeui/solid/combobox/parts`. Also exported from `@codeui/solid`. | Function | Returns | | --- | --- | @@ -158,7 +158,7 @@ See [Combobox](/docs/components/combobox) for composition and state attributes. ### `commandMenuStyles` -Import from `@codeui/kit/command-menu/parts`. Also exported from `@codeui/kit`. +Import from `@codeui/solid/command-menu/parts`. Also exported from `@codeui/solid`. | Function | Returns | | --- | --- | @@ -186,7 +186,7 @@ See [Command menu](/docs/components/command-menu) for composition and state attr ### `dialogStyles` -Import from `@codeui/kit/dialog/parts`. +Import from `@codeui/solid/dialog/parts`. | Function | Returns | | --- | --- | @@ -209,7 +209,7 @@ See [Dialog](/docs/components/dialog) for composition and state attributes. ### `kbdStyles` -Import from `@codeui/kit/kbd/parts`. +Import from `@codeui/solid/kbd/parts`. | Function | Returns | | --- | --- | @@ -223,7 +223,7 @@ See [Kbd](/docs/components/kbd) for composition and state attributes. ### `optionCardStyles` -Import from `@codeui/kit/option-card/parts`. Also exported from `@codeui/kit`. +Import from `@codeui/solid/option-card/parts`. Also exported from `@codeui/solid`. | Function | Returns | | --- | --- | @@ -248,7 +248,7 @@ See [Option card](/docs/components/option-card) for composition and state attrib ### `popoverStyles` -Import from `@codeui/kit/popover/parts`. +Import from `@codeui/solid/popover/parts`. | Function | Returns | | --- | --- | @@ -268,7 +268,7 @@ See [Popover](/docs/components/popover) for composition and state attributes. ### `progressStyles` -Import from `@codeui/kit/progress/parts`. Also exported from `@codeui/kit`. +Import from `@codeui/solid/progress/parts`. Also exported from `@codeui/solid`. | Function | Returns | | --- | --- | @@ -286,7 +286,7 @@ See [Progress](/docs/components/progress) for composition and state attributes. ### `sheetStyles` -Import from `@codeui/kit/sheet/parts`. +Import from `@codeui/solid/sheet/parts`. | Function | Returns | | --- | --- | @@ -309,7 +309,7 @@ See [Sheet](/docs/components/sheet) for composition and state attributes. ### `skeletonStyles` -Import from `@codeui/kit/skeleton/parts`. +Import from `@codeui/solid/skeleton/parts`. | Function | Returns | | --- | --- | @@ -323,7 +323,7 @@ See [Skeleton](/docs/components/skeleton) for composition and state attributes. ### `sliderStyles` -Import from `@codeui/kit/slider/parts`. Also exported from `@codeui/kit`. +Import from `@codeui/solid/slider/parts`. Also exported from `@codeui/solid`. | Function | Returns | | --- | --- | @@ -345,7 +345,7 @@ See [Slider](/docs/components/slider) for composition and state attributes. ### `spinnerStyles` -Import from `@codeui/kit/spinner/parts`. +Import from `@codeui/solid/spinner/parts`. | Function | Returns | | --- | --- | @@ -361,7 +361,7 @@ See [Spinner](/docs/components/spinner) for composition and state attributes. ### `stackStyles` -Import from `@codeui/kit/stack/parts`. +Import from `@codeui/solid/stack/parts`. | Function | Returns | | --- | --- | @@ -377,7 +377,7 @@ See [Stack](/docs/components/stack) for composition and state attributes. ### `switchStyles` -Import from `@codeui/kit/switch/parts`. Also exported from `@codeui/kit`. +Import from `@codeui/solid/switch/parts`. Also exported from `@codeui/solid`. | Function | Returns | | --- | --- | @@ -397,7 +397,7 @@ See [Switch](/docs/components/switch) for composition and state attributes. ### `textStyles` -Import from `@codeui/kit/text/parts`. +Import from `@codeui/solid/text/parts`. | Function | Returns | | --- | --- | @@ -411,7 +411,7 @@ See [Text](/docs/components/text) for composition and state attributes. ### `toastStyles` -Import from `@codeui/kit/toast/parts`. +Import from `@codeui/solid/toast/parts`. | Function | Returns | | --- | --- | diff --git a/apps/docs/content/docs/(kit)/utilities/token-exports.mdx b/apps/docs/content/docs/(kit)/utilities/token-exports.mdx index 1794bd01..5209f217 100644 --- a/apps/docs/content/docs/(kit)/utilities/token-exports.mdx +++ b/apps/docs/content/docs/(kit)/utilities/token-exports.mdx @@ -1,6 +1,6 @@ --- title: "Token exports" -description: "The JavaScript token objects and the @codeui/kit/tokens entry." +description: "The JavaScript token objects and the @codeui/solid/tokens entry." --- The kit exports its tokens as JavaScript objects, so TypeScript and vanilla-extract code can reference them by path. Every leaf is a `var(--cui-…)` string. The values themselves are listed on [Tokens](/docs/foundations/tokens). @@ -14,7 +14,7 @@ The kit exports its tokens as JavaScript objects, so TypeScript and vanilla-extr | [`layoutVars`](#layoutvars) | Current | One layout variable, `layoutBackgroundColor`. | | [`responsiveStyle`](#responsivestyle) | Current | A helper that writes min-width media queries. | -## The `@codeui/kit/tokens` entry +## The `@codeui/solid/tokens` entry ```ts title="consumer.css.ts" import { style } from "@vanilla-extract/css"; @@ -25,7 +25,7 @@ import { layoutVars, breakpoints, responsiveStyle, -} from "@codeui/kit/tokens"; +} from "@codeui/solid/tokens"; export const consumer = style({ color: tokens.text.default, @@ -40,24 +40,24 @@ export const consumer = style({ }); ``` -This file is `packages/kit/fixtures/tokens-consumer/consumer.css.ts`. `pnpm --filter @codeui/kit test:tokens-consumer` builds it against the packed `dist` output, once with the `import` export condition and once with `solid`. +This file is `packages/kit/fixtures/tokens-consumer/consumer.css.ts`. `pnpm --filter @codeui/solid test:tokens-consumer` builds it against the packed `dist` output, once with the `import` export condition and once with `solid`. -Import from `@codeui/kit/tokens` in every vanilla-extract `.css.ts` file. Import from `@codeui/kit` everywhere else. +Import from `@codeui/solid/tokens` in every vanilla-extract `.css.ts` file. Import from `@codeui/solid` everywhere else. - **Named exports.** `tokens`, `themeTokens`, `themeVars`, `breakpoints`, `layoutVars` and `responsiveStyle`. Nothing else. -- **Parity with the root.** `@codeui/kit` re-exports the same six objects from the same modules. A value from one entry is identical to the value from the other. +- **Parity with the root.** `@codeui/solid` re-exports the same six objects from the same modules. A value from one entry is identical to the value from the other. - **No component code.** The entry imports nothing from `solid-js` or `@kobalte/*`. The fixture check fails the test if any file it reaches does. - **Side effects.** The token entry is a pure JavaScript object module. It does not load CSS or run vanilla-extract. Load `@codeui/styles/theme.css` for token values, or `all.css` for the theme and components. Applications that author their own `.css.ts` files still configure a compiler for those files. ### Why the root entry fails in a style file -vanilla-extract evaluates every `.css.ts` file in Node during the build. The root entry imports every component, and with them Solid, Kobalte and JSX. That component code does not evaluate in the style build, so a `.css.ts` file that imports from `@codeui/kit` breaks the build. The kit's fixture reproduced this failure before the `tokens` entry existed. The entry gives style files the token objects without the components. +vanilla-extract evaluates every `.css.ts` file in Node during the build. The root entry imports every component, and with them Solid, Kobalte and JSX. That component code does not evaluate in the style build, so a `.css.ts` file that imports from `@codeui/solid` breaks the build. The kit's fixture reproduced this failure before the `tokens` entry existed. The entry gives style files the token objects without the components. ## `tokens` ```ts -import { tokens } from "@codeui/kit"; // in components -import { tokens } from "@codeui/kit/tokens"; // in .css.ts files +import { tokens } from "@codeui/solid"; // in components +import { tokens } from "@codeui/solid/tokens"; // in .css.ts files ``` @@ -78,7 +78,7 @@ import { tokens } from "@codeui/kit/tokens"; // in .css.ts files ## `themeTokens` ```ts -import { themeTokens } from "@codeui/kit"; +import { themeTokens } from "@codeui/solid"; ``` **Deprecated.** Use `tokens`. `themeTokens` keeps the scale names from before the `--cui-*` contract, so old style files keep compiling. @@ -98,7 +98,7 @@ The groups that keep their old values retain separate legacy variables. Their re ## `themeVars` ```ts -import { themeVars } from "@codeui/kit"; +import { themeVars } from "@codeui/solid"; ``` **Deprecated.** Use `tokens`. `themeVars` keeps the color names from before the `--cui-*` contract. Each name points at the closest `--cui-*` role, so it follows the theme. @@ -121,7 +121,7 @@ The table shows 10 of the 43 names. `packages/kit/src/foundation/contract.css.ts ## `breakpoints` ```ts -import { breakpoints } from "@codeui/kit"; +import { breakpoints } from "@codeui/solid"; ``` @@ -133,7 +133,7 @@ import { breakpoints } from "@codeui/kit"; ## `layoutVars` ```ts -import { layoutVars } from "@codeui/kit"; +import { layoutVars } from "@codeui/solid"; layoutVars.layoutBackgroundColor; // "var(--…)" ``` @@ -151,7 +151,7 @@ The exported value gives the custom-property name as a `var(--…)` reference. S ## `responsiveStyle` ```ts -import { responsiveStyle } from "@codeui/kit/tokens"; +import { responsiveStyle } from "@codeui/solid/tokens"; responsiveStyle(style: { xs?: CSSProps; diff --git a/apps/docs/content/docs/css/index.mdx b/apps/docs/content/docs/css/index.mdx index ee5287f4..d46fffbc 100644 --- a/apps/docs/content/docs/css/index.mdx +++ b/apps/docs/content/docs/css/index.mdx @@ -3,7 +3,7 @@ title: Overview description: Inkstone styles as plain CSS, for HTML pages and any framework. --- -`@codeui/styles` is the stylesheet behind `@codeui/kit`, published on its own. It ships standard CSS files, `cui-` class names, `data-*` variant attributes, and small class helpers. It has no framework peer and no runtime that injects styles. +`@codeui/styles` is the stylesheet behind `@codeui/solid`, published on its own. It ships standard CSS files, `cui-` class names, `data-*` variant attributes, and small class helpers. It has no framework peer and no runtime that injects styles. @@ -25,13 +25,13 @@ CSS styles state. It does not create it. A static page shows a menu open or a ta - Toggles the `data-*` state attributes the CSS reads. - Positions overlays and writes geometry variables such as `--cui-progress-fill-width`. -Native controls carry much of this for free: a `button`, an `input type="checkbox"`, or a `table` needs no script. Composite widgets such as Select, Tabs, Dialog, or Command menu need behavior. Write it yourself, use a headless library, or use the Solid components in [`@codeui/kit`](/docs). +Native controls carry much of this for free: a `button`, an `input type="checkbox"`, or a `table` needs no script. Composite widgets such as Select, Tabs, Dialog, or Command menu need behavior. Write it yourself, use a headless library, or use the Solid components in [`@codeui/solid`](/docs). ## When to use it | You build with | Use | | --- | --- | -| Solid | [`@codeui/kit`](/docs). It loads this CSS and supplies the behavior. | +| Solid | [`@codeui/solid`](/docs). It loads this CSS and supplies the behavior. | | Static HTML, a server template, or a CMS | `@codeui/styles` and the markup on these pages. | | React, Vue, Svelte, Angular, or Web Components | `@codeui/styles` plus your own or a headless behavior layer. The `StyleProps` helpers return the attributes to spread. | diff --git a/apps/docs/content/docs/design/index.mdx b/apps/docs/content/docs/design/index.mdx index 79fe5c8f..01122dea 100644 --- a/apps/docs/content/docs/design/index.mdx +++ b/apps/docs/content/docs/design/index.mdx @@ -5,7 +5,7 @@ description: The design language of CodeUI and CodeImage. A dark, matte interfac An inkstone is the stone used in East Asian calligraphy to grind ink. It is dark and matte, and its surface is carved into a well where the ink collects. The stone never draws attention to itself. The ink is the only thing on it that shines. -Inkstone, the design language of `@codeui/kit`, follows the same idea. **The interface is the stone and the user's work is the ink.** The interface stays dark, matte and steady, so the user's work is the most vivid thing on the screen. In CodeImage the work is a code screenshot. In another app it can be a chart, a document or a canvas. +Inkstone, the design language of `@codeui/solid`, follows the same idea. **The interface is the stone and the user's work is the ink.** The interface stays dark, matte and steady, so the user's work is the most vivid thing on the screen. In CodeImage the work is a code screenshot. In another app it can be a chart, a document or a canvas. The work is the only thing that shines. Everything around it is a few steps of grey, and blue appears once. Point at a number or a line of the legend to find the part.} /> @@ -44,14 +44,14 @@ Radii are concentric, numbers use tabular figures, and labels reserve the width The rules are kept in one file, [`packages/kit/DESIGN.md`](https://github.com/riccardoperra/codeui/blob/main/packages/kit/DESIGN.md). It is short and says what to do, so people and coding agents can read it before any change. It ships inside the package, so an app always reads the version that matches its kit: ``` -node_modules/@codeui/kit/DESIGN.md +node_modules/@codeui/solid/DESIGN.md ``` These pages explain why each rule exists, which builds were tried, what was learned from them, and where the kit still disagrees with its own rules. When the two disagree, `DESIGN.md` wins, and the page should be fixed. ## Using Inkstone in an app -1. Point your agents and your own `DESIGN.md` at `node_modules/@codeui/kit/DESIGN.md`. Your file records only your product's decisions. CodeImage's file, for example, keeps the frame, the theme picker and the export flow. +1. Point your agents and your own `DESIGN.md` at `node_modules/@codeui/solid/DESIGN.md`. Your file records only your product's decisions. CodeImage's file, for example, keeps the frame, the theme picker and the export flow. 2. Use the `--cui-*` tokens. If you need a value the kit does not have, define it in your app on top of the kit tokens. 3. Run the review checklist in `DESIGN.md` §12 on every visual change. 4. When your app finds a better rule, change it in the kit, so every app gets it. diff --git a/apps/docs/export-manifest.json b/apps/docs/export-manifest.json index 1a83b9e0..10993080 100644 --- a/apps/docs/export-manifest.json +++ b/apps/docs/export-manifest.json @@ -1,21 +1,21 @@ { - "$comment": "Docs anchor for every public @codeui/kit export, as page#anchor under apps/docs/content/docs/(kit). Checked by node tools/docs/coverage.mjs. Coordinator-owned: lanes do not edit it.", + "$comment": "Docs anchor for every public @codeui/solid export, as page#anchor under apps/docs/content/docs/(kit). Checked by node tools/docs/coverage.mjs. Coordinator-owned: lanes do not edit it.", "ignore": { - "@codeui/kit/package.json": "Package metadata, not a user utility." + "@codeui/solid/package.json": "Package metadata, not a user utility." }, "review": { - "@codeui/kit/accordion/parts:useAccordionContext": "Exported through the public accordion entry. Document its provider scope or hide it in a breaking release.", - "@codeui/kit/combobox/parts:useComboboxContext": "Context hook on a public entry. Document its provider scope or hide it in a breaking release.", - "@codeui/kit/command-menu/parts:useCommandMenuContext": "Context hook on a public entry. Document its provider scope or hide it in a breaking release.", - "@codeui/kit/option-card/parts:useRadioGroupContext": "Kobalte radio group context re-exported under a generic name. Document its provider scope or hide it in a breaking release.", - "@codeui/kit/progress/parts:useProgressContext": "Context hook on a public entry. Document its provider scope or hide it in a breaking release.", - "@codeui/kit/slider/parts:useSliderContext": "Context hook on a public entry. Document its provider scope or hide it in a breaking release.", - "@codeui/kit/switch/parts:useSwitchContext": "Context hook on a public entry. Document its provider scope or hide it in a breaking release.", - "@codeui/kit:styleFieldMessage": "Requires vanilla-extract at build time. Document the requirement. Candidate for deprecation in a breaking release.", - "@codeui/kit/command-menu/parts:EngineProps": "Exposes engine internals. Confirm it is meant to be public." + "@codeui/solid/accordion/parts:useAccordionContext": "Exported through the public accordion entry. Document its provider scope or hide it in a breaking release.", + "@codeui/solid/combobox/parts:useComboboxContext": "Context hook on a public entry. Document its provider scope or hide it in a breaking release.", + "@codeui/solid/command-menu/parts:useCommandMenuContext": "Context hook on a public entry. Document its provider scope or hide it in a breaking release.", + "@codeui/solid/option-card/parts:useRadioGroupContext": "Kobalte radio group context re-exported under a generic name. Document its provider scope or hide it in a breaking release.", + "@codeui/solid/progress/parts:useProgressContext": "Context hook on a public entry. Document its provider scope or hide it in a breaking release.", + "@codeui/solid/slider/parts:useSliderContext": "Context hook on a public entry. Document its provider scope or hide it in a breaking release.", + "@codeui/solid/switch/parts:useSwitchContext": "Context hook on a public entry. Document its provider scope or hide it in a breaking release.", + "@codeui/solid:styleFieldMessage": "Requires vanilla-extract at build time. Document the requirement. Candidate for deprecation in a breaking release.", + "@codeui/solid/command-menu/parts:EngineProps": "Exposes engine internals. Confirm it is meant to be public." }, "exports": { - "@codeui/kit": { + "@codeui/solid": { "Accordion": "components/accordion#accordion", "AccordionClasses": "components/accordion#anatomy", "AccordionEntry": "utilities/control-helpers#createaccordionitems", @@ -280,7 +280,7 @@ "HoverCardGroup": "components/hover-card#hovercardgroup", "HoverCardGroupProps": "components/hover-card#hovercardgroup" }, - "@codeui/kit/accordion/parts": { + "@codeui/solid/accordion/parts": { "AccordionClasses": "components/accordion#anatomy", "AccordionPart": "components/accordion#anatomy", "accordionParts": "components/accordion#anatomy", @@ -307,7 +307,7 @@ "TriggerProps": "components/accordion#trigger", "useAccordionContext": "components/accordion#useaccordioncontext" }, - "@codeui/kit/alert/parts": { + "@codeui/solid/alert/parts": { "Action": "components/alert#action", "ActionProps": "components/alert#action", "AlertClasses": "components/alert#anatomy", @@ -326,7 +326,7 @@ "Title": "components/alert#title", "TitleProps": "components/alert#title" }, - "@codeui/kit/badge/parts": { + "@codeui/solid/badge/parts": { "BadgeClasses": "components/badge#anatomy", "BadgePart": "components/badge#anatomy", "badgeParts": "components/badge#anatomy", @@ -343,7 +343,7 @@ "Root": "components/badge#root", "RootProps": "components/badge#root" }, - "@codeui/kit/combobox/parts": { + "@codeui/solid/combobox/parts": { "Arrow": "components/combobox#arrow", "ArrowProps": "components/combobox#arrow", "ComboboxClasses": "components/combobox#anatomy", @@ -393,7 +393,7 @@ "TriggerProps": "components/combobox#trigger", "useComboboxContext": "components/combobox#usecomboboxcontext" }, - "@codeui/kit/command-menu/parts": { + "@codeui/solid/command-menu/parts": { "CommandMenuClasses": "components/command-menu#anatomy", "CommandMenuPart": "components/command-menu#anatomy", "commandMenuParts": "components/command-menu#anatomy", @@ -441,7 +441,7 @@ "TriggerProps": "components/command-menu#trigger", "useCommandMenuContext": "components/command-menu#usecommandmenucontext" }, - "@codeui/kit/dialog/parts": { + "@codeui/solid/dialog/parts": { "Body": "components/dialog#body", "CloseButton": "components/dialog#closebutton", "CloseButtonProps": "components/dialog#closebutton", @@ -481,7 +481,7 @@ "Sidebar": "components/dialog#sidebar", "SidebarProps": "components/dialog#sidebar" }, - "@codeui/kit/kbd/parts": { + "@codeui/solid/kbd/parts": { "KbdClasses": "components/kbd#anatomy", "KbdPart": "components/kbd#anatomy", "kbdParts": "components/kbd#anatomy", @@ -493,7 +493,7 @@ "Root": "components/kbd#root", "RootProps": "components/kbd#root" }, - "@codeui/kit/option-card/parts": { + "@codeui/solid/option-card/parts": { "Badge": "components/option-card#badge", "BadgeProps": "components/option-card#badge", "Description": "components/option-card#description", @@ -527,7 +527,7 @@ "RootProps": "components/option-card#root", "useRadioGroupContext": "components/option-card#useradiogroupcontext" }, - "@codeui/kit/popover/parts": { + "@codeui/solid/popover/parts": { "Anchor": "components/popover#anchor", "Arrow": "components/popover#arrow", "CloseButton": "components/popover#closebutton", @@ -547,7 +547,7 @@ "Title": "components/popover#title", "Trigger": "components/popover#trigger" }, - "@codeui/kit/progress/parts": { + "@codeui/solid/progress/parts": { "Fill": "components/progress#fill", "FillProps": "components/progress#fill", "Label": "components/progress#label", @@ -567,7 +567,7 @@ "ValueLabel": "components/progress#valuelabel", "ValueLabelProps": "components/progress#valuelabel" }, - "@codeui/kit/sheet/parts": { + "@codeui/solid/sheet/parts": { "Body": "components/sheet#body", "CloseButton": "components/sheet#closebutton", "CloseButtonProps": "components/sheet#closebutton", @@ -592,7 +592,7 @@ "Title": "components/sheet#title", "Trigger": "components/sheet#trigger" }, - "@codeui/kit/skeleton/parts": { + "@codeui/solid/skeleton/parts": { "Root": "components/skeleton#root", "RootProps": "components/skeleton#root", "SkeletonClasses": "components/skeleton#anatomy", @@ -602,7 +602,7 @@ "SkeletonStyles": "components/skeleton#skeletonstyles", "SkeletonVariants": "components/skeleton#variants" }, - "@codeui/kit/slider/parts": { + "@codeui/solid/slider/parts": { "Description": "components/slider#description", "DescriptionProps": "components/slider#description", "ErrorMessage": "components/slider#errormessage", @@ -630,7 +630,7 @@ "ValueLabel": "components/slider#valuelabel", "ValueLabelProps": "components/slider#valuelabel" }, - "@codeui/kit/spinner/parts": { + "@codeui/solid/spinner/parts": { "Indicator": "components/spinner#indicator", "IndicatorProps": "components/spinner#indicator", "Root": "components/spinner#root", @@ -645,7 +645,7 @@ "Track": "components/spinner#track", "TrackProps": "components/spinner#track" }, - "@codeui/kit/stack/parts": { + "@codeui/solid/stack/parts": { "Gap": "components/stack#stack", "Root": "components/stack#root", "RootProps": "components/stack#root", @@ -657,7 +657,7 @@ "StackStyles": "components/stack#stackstyles", "StackVariants": "components/stack#variants" }, - "@codeui/kit/switch/parts": { + "@codeui/solid/switch/parts": { "Control": "components/switch#control", "ControlProps": "components/switch#control", "Description": "components/switch#description", @@ -681,7 +681,7 @@ "ThumbProps": "components/switch#thumb", "useSwitchContext": "components/switch#useswitchcontext" }, - "@codeui/kit/text/parts": { + "@codeui/solid/text/parts": { "Root": "components/text#root", "RootProps": "components/text#root", "TextClasses": "components/text#anatomy", @@ -692,7 +692,7 @@ "TextStyles": "components/text#textstyles", "TextVariants": "components/text#variants" }, - "@codeui/kit/toast/parts": { + "@codeui/solid/toast/parts": { "Action": "components/toast#action", "ActionProps": "components/toast#action", "CloseButton": "components/toast#closebutton", @@ -716,7 +716,7 @@ "ToastTone": "components/toast#variants", "ToastVariants": "components/toast#variants" }, - "@codeui/kit/tokens": { + "@codeui/solid/tokens": { "breakpoints": "utilities/token-exports#breakpoints", "layoutVars": "utilities/token-exports#layoutvars", "responsiveStyle": "utilities/token-exports#responsivestyle", @@ -724,7 +724,7 @@ "themeVars": "utilities/token-exports#themevars", "tokens": "utilities/token-exports#tokens" }, - "@codeui/kit/settings/parts": { + "@codeui/solid/settings/parts": { "Control": "components/settings-row#control", "ControlProps": "components/settings-row#control", "createSettingsRowProps": "components/settings-row#createsettingsrowprops", @@ -763,7 +763,7 @@ "SettingsRowStyles": "components/settings-row#settingsrowstyles", "SettingsRowVariants": "components/settings-row#inline-and-wide" }, - "@codeui/kit/accordion": { + "@codeui/solid/accordion": { "Accordion": "components/accordion#accordion", "AccordionClasses": "components/accordion#anatomy", "AccordionEntry": "utilities/control-helpers#createaccordionitems", @@ -775,20 +775,20 @@ "AccordionVariants": "components/accordion#variants", "createAccordionItems": "utilities/control-helpers#createaccordionitems" }, - "@codeui/kit/alert": { + "@codeui/solid/alert": { "Alert": "components/alert#alert", "AlertProps": "components/alert#alert" }, - "@codeui/kit/badge": { + "@codeui/solid/badge": { "Badge": "components/badge#badge", "BadgeProps": "components/badge#badge" }, - "@codeui/kit/button": { + "@codeui/solid/button": { "Button": "components/button#button", "ButtonProps": "components/button#button", "buttonStyles": "utilities/styles-reference#buttonstyles" }, - "@codeui/kit/combobox": { + "@codeui/solid/combobox": { "Combobox": "components/combobox#combobox", "ComboboxClasses": "components/combobox#anatomy", "ComboboxOption": "utilities/options-and-collections#createcomboboxoptions", @@ -802,7 +802,7 @@ "createComboboxOptions": "utilities/options-and-collections#createcomboboxoptions", "CreateComboboxOptionsReturn": "utilities/options-and-collections#createcomboboxoptions" }, - "@codeui/kit/command-menu": { + "@codeui/solid/command-menu": { "CommandItem": "utilities/options-and-collections#filtercommanditems", "CommandMenu": "components/command-menu#commandmenu", "CommandMenuClasses": "components/command-menu#anatomy", @@ -813,18 +813,18 @@ "CommandMenuStyles": "components/command-menu#commandmenustyles", "filterCommandItems": "utilities/options-and-collections#filtercommanditems" }, - "@codeui/kit/dialog": { + "@codeui/solid/dialog": { "Dialog": "components/dialog#dialog", "DialogPanel": "components/dialog#dialogpanel", "DialogPanelContent": "components/dialog#dialogpanelcontent", "DialogPanelFooter": "components/dialog#dialogpanelfooter", "DialogProps": "components/dialog#dialog" }, - "@codeui/kit/kbd": { + "@codeui/solid/kbd": { "Kbd": "components/kbd#kbd", "KbdProps": "components/kbd#kbd" }, - "@codeui/kit/option-card": { + "@codeui/solid/option-card": { "createOptionCardItems": "utilities/control-helpers#createoptioncarditems", "OptionCard": "components/option-card#optioncard", "OptionCardClasses": "components/option-card#anatomy", @@ -839,7 +839,7 @@ "OptionCardVariant": "components/option-card#variants", "OptionCardVariants": "components/option-card#variants" }, - "@codeui/kit/popover": { + "@codeui/solid/popover": { "Popover": "components/popover#popover", "PopoverContent": "components/popover#popovercontent", "PopoverContentProps": "components/popover#popovercontent", @@ -847,7 +847,7 @@ "popoverStyles": "components/popover#popoverstyles", "PopoverTrigger": "components/popover#popovertrigger" }, - "@codeui/kit/progress": { + "@codeui/solid/progress": { "Progress": "components/progress#progress", "ProgressClasses": "components/progress#anatomy", "ProgressPart": "components/progress#anatomy", @@ -857,13 +857,13 @@ "ProgressStyles": "components/progress#progressstyles", "ProgressVariants": "components/progress#variants" }, - "@codeui/kit/select": { + "@codeui/solid/select": { "createSelectOptions": "utilities/options-and-collections#createselectoptions", "Select": "components/select#select", "SelectClasses": "components/select#anatomy", "SelectProps": "components/select#select" }, - "@codeui/kit/select/parts": { + "@codeui/solid/select/parts": { "Content": "components/select#styled-parts-api", "ContentProps": "components/select#styled-parts-api", "Description": "components/select#styled-parts-api", @@ -898,7 +898,7 @@ "Value": "components/select#styled-parts-api", "ValueProps": "components/select#styled-parts-api" }, - "@codeui/kit/settings": { + "@codeui/solid/settings": { "createSettingsRowProps": "components/settings-row#createsettingsrowprops", "SettingsGroup": "components/settings-row#settingsgroup", "SettingsGroupClasses": "components/settings-row#anatomy", @@ -919,15 +919,15 @@ "SettingsRowStyles": "components/settings-row#settingsrow", "SettingsRowVariants": "components/settings-row#variants" }, - "@codeui/kit/sheet": { + "@codeui/solid/sheet": { "Sheet": "components/sheet#sheet", "SheetProps": "components/sheet#sheet" }, - "@codeui/kit/skeleton": { + "@codeui/solid/skeleton": { "Skeleton": "components/skeleton#skeleton", "SkeletonProps": "components/skeleton#skeleton" }, - "@codeui/kit/slider": { + "@codeui/solid/slider": { "createSliderProps": "utilities/control-helpers#createsliderprops", "Slider": "components/slider#slider", "SliderClasses": "components/slider#anatomy", @@ -938,11 +938,11 @@ "SliderStyles": "components/slider#sliderstyles", "SliderVariants": "components/slider#variants" }, - "@codeui/kit/spinner": { + "@codeui/solid/spinner": { "Spinner": "components/spinner#spinner", "SpinnerProps": "components/spinner#spinner" }, - "@codeui/kit/stack": { + "@codeui/solid/stack": { "Gap": "components/stack#stack", "Stack": "components/stack#stack", "StackClasses": "components/stack#anatomy", @@ -953,7 +953,7 @@ "StackStyles": "components/stack#stackstyles", "StackVariants": "components/stack#variants" }, - "@codeui/kit/switch": { + "@codeui/solid/switch": { "createSwitchProps": "utilities/control-helpers#createswitchprops", "Switch": "components/switch#switch", "SwitchClasses": "components/switch#anatomy", @@ -964,7 +964,7 @@ "SwitchStyles": "components/switch#switchstyles", "SwitchVariants": "components/switch#variants" }, - "@codeui/kit/text": { + "@codeui/solid/text": { "Text": "components/text#text", "TextClasses": "components/text#anatomy", "TextPart": "components/text#anatomy", @@ -974,7 +974,7 @@ "TextStyles": "components/text#textstyles", "TextVariants": "components/text#variants" }, - "@codeui/kit/toast": { + "@codeui/solid/toast": { "createToaster": "components/toast#createtoaster", "CreateToasterOptions": "components/toast#createtoaster", "ToastAction": "components/toast#createtoaster", @@ -987,11 +987,11 @@ "ToastOptions": "components/toast#createtoaster", "ToastPromiseOptions": "components/toast#createtoaster" }, - "@codeui/kit/checkbox": { + "@codeui/solid/checkbox": { "Checkbox": "components/checkbox#checkbox", "CheckBoxProps": "components/checkbox#checkbox" }, - "@codeui/kit/dropdown-menu": { + "@codeui/solid/dropdown-menu": { "DropdownMenu": "components/dropdown-menu#dropdownmenu", "DropdownMenuContent": "components/dropdown-menu#dropdownmenucontent", "DropdownMenuItem": "components/dropdown-menu#dropdownmenuitem", @@ -1003,72 +1003,72 @@ "DropdownSubMenuContent": "components/dropdown-menu#dropdownsubmenucontent", "DropdownSubMenuTrigger": "components/dropdown-menu#dropdownsubmenutrigger" }, - "@codeui/kit/icon-button": { + "@codeui/solid/icon-button": { "IconButton": "components/icon-button#iconbutton" }, - "@codeui/kit/link": { + "@codeui/solid/link": { "Link": "components/link#link" }, - "@codeui/kit/listbox": { + "@codeui/solid/listbox": { "Listbox": "components/listbox#listbox", "ListboxClasses": "components/listbox#listbox", "ListboxItem": "components/listbox#listboxitem", "ListboxProps": "components/listbox#listbox" }, - "@codeui/kit/number-field": { + "@codeui/solid/number-field": { "NumberField": "components/number-field#numberfield", "NumberFieldLabel": "components/number-field#numberfieldlabel", "NumberFieldProps": "components/number-field#numberfield" }, - "@codeui/kit/pagination": { + "@codeui/solid/pagination": { "Pagination": "components/pagination#pagination", "PaginationProps": "components/pagination#pagination" }, - "@codeui/kit/radio-list": { + "@codeui/solid/radio-list": { "RadioList": "components/radio-list#radiolist", "RadioListClasses": "components/radio-list#radiolist", "RadioListItem": "components/radio-list#radiolistitem", "RadioListItemProps": "components/radio-list#radiolistitem", "RadioListProps": "components/radio-list#radiolist" }, - "@codeui/kit/segmented-control": { + "@codeui/solid/segmented-control": { "SegmentedControl": "components/segmented-control#segmentedcontrol", "SegmentedControlClasses": "components/segmented-control#segmentedcontrol", "SegmentedControlItem": "components/segmented-control#segmentedcontrolitem", "SegmentedControlItemProps": "components/segmented-control#segmentedcontrolitem", "SegmentedControlProps": "components/segmented-control#segmentedcontrol" }, - "@codeui/kit/svg-icon": { + "@codeui/solid/svg-icon": { "SvgIcon": "utilities/icons#svgicon" }, - "@codeui/kit/tabs": { + "@codeui/solid/tabs": { "Tabs": "components/tabs#tabs", "TabsContent": "components/tabs#tabscontent", "TabsHeader": "components/tabs#tabsheader", "TabsList": "components/tabs#tabslist" }, - "@codeui/kit/text-area": { + "@codeui/solid/text-area": { "TextArea": "components/text-area#textarea", "TextAreaLabel": "components/text-area#textarealabel", "TextAreaProps": "components/text-area#textarea" }, - "@codeui/kit/text-field": { + "@codeui/solid/text-field": { "TextField": "components/text-field#textfield", "TextFieldLabel": "components/text-field#textfieldlabel", "TextFieldProps": "components/text-field#textfield", "textFieldStyles": "utilities/styles-reference#textfieldstyles" }, - "@codeui/kit/tooltip": { + "@codeui/solid/tooltip": { "Tooltip": "components/tooltip#tooltip", "TooltipProps": "components/tooltip#tooltip", "TooltipDefaults": "components/tooltip#defaults-for-a-whole-app", "TooltipProvider": "components/tooltip#defaults-for-a-whole-app" }, - "@codeui/kit/virtualized-listbox": { + "@codeui/solid/virtualized-listbox": { "VirtualizedListbox": "components/virtualized-listbox#virtualizedlistbox", "VirtualizedListboxProps": "components/virtualized-listbox#virtualizedlistbox" }, - "@codeui/kit/checkbox/parts": { + "@codeui/solid/checkbox/parts": { "Content": "components/checkbox#styled-parts-api", "ContentProps": "components/checkbox#styled-parts-api", "Control": "components/checkbox#styled-parts-api", @@ -1086,7 +1086,7 @@ "Root": "components/checkbox#styled-parts-api", "RootProps": "components/checkbox#styled-parts-api" }, - "@codeui/kit/dropdown-menu/parts": { + "@codeui/solid/dropdown-menu/parts": { "Content": "components/dropdown-menu#styled-parts-api", "ContentProps": "components/dropdown-menu#styled-parts-api", "Group": "components/dropdown-menu#styled-parts-api", @@ -1114,7 +1114,7 @@ "Trigger": "components/dropdown-menu#styled-parts-api", "TriggerProps": "components/dropdown-menu#styled-parts-api" }, - "@codeui/kit/listbox/parts": { + "@codeui/solid/listbox/parts": { "Item": "components/listbox#styled-parts-api", "ItemDescription": "components/listbox#styled-parts-api", "ItemDescriptionProps": "components/listbox#styled-parts-api", @@ -1128,7 +1128,7 @@ "Section": "components/listbox#styled-parts-api", "SectionProps": "components/listbox#styled-parts-api" }, - "@codeui/kit/number-field/parts": { + "@codeui/solid/number-field/parts": { "Controls": "components/number-field#styled-parts-api", "ControlsProps": "components/number-field#styled-parts-api", "Description": "components/number-field#styled-parts-api", @@ -1144,7 +1144,7 @@ "Root": "components/number-field#styled-parts-api", "RootProps": "components/number-field#styled-parts-api" }, - "@codeui/kit/pagination/parts": { + "@codeui/solid/pagination/parts": { "createPaginationState": "components/pagination#styled-parts-api", "Item": "components/pagination#styled-parts-api", "ItemProps": "components/pagination#styled-parts-api", @@ -1152,7 +1152,7 @@ "Root": "components/pagination#styled-parts-api", "RootProps": "components/pagination#styled-parts-api" }, - "@codeui/kit/radio-list/parts": { + "@codeui/solid/radio-list/parts": { "Description": "components/radio-list#styled-parts-api", "DescriptionProps": "components/radio-list#styled-parts-api", "ErrorMessage": "components/radio-list#styled-parts-api", @@ -1176,7 +1176,7 @@ "Root": "components/radio-list#styled-parts-api", "RootProps": "components/radio-list#styled-parts-api" }, - "@codeui/kit/segmented-control/parts": { + "@codeui/solid/segmented-control/parts": { "Indicator": "components/segmented-control#styled-parts-api", "IndicatorProps": "components/segmented-control#styled-parts-api", "Item": "components/segmented-control#styled-parts-api", @@ -1186,7 +1186,7 @@ "Root": "components/segmented-control#styled-parts-api", "RootProps": "components/segmented-control#styled-parts-api" }, - "@codeui/kit/tabs/parts": { + "@codeui/solid/tabs/parts": { "Content": "components/tabs#styled-parts-api", "ContentProps": "components/tabs#styled-parts-api", "Indicator": "components/tabs#styled-parts-api", @@ -1198,7 +1198,7 @@ "Trigger": "components/tabs#styled-parts-api", "TriggerProps": "components/tabs#styled-parts-api" }, - "@codeui/kit/text-area/parts": { + "@codeui/solid/text-area/parts": { "Description": "components/text-area#styled-parts-api", "DescriptionProps": "components/text-area#styled-parts-api", "ErrorMessage": "components/text-area#styled-parts-api", @@ -1210,7 +1210,7 @@ "Root": "components/text-area#styled-parts-api", "RootProps": "components/text-area#styled-parts-api" }, - "@codeui/kit/text-field/parts": { + "@codeui/solid/text-field/parts": { "Description": "components/text-field#styled-parts-api", "DescriptionProps": "components/text-field#styled-parts-api", "ErrorMessage": "components/text-field#styled-parts-api", @@ -1222,7 +1222,7 @@ "Root": "components/text-field#styled-parts-api", "RootProps": "components/text-field#styled-parts-api" }, - "@codeui/kit/tooltip/parts": { + "@codeui/solid/tooltip/parts": { "Content": "components/tooltip#styled-parts-api", "ContentProps": "components/tooltip#styled-parts-api", "Portal": "components/tooltip#styled-parts-api", @@ -1234,7 +1234,7 @@ "Provider": "components/tooltip#defaults-for-a-whole-app", "TooltipDefaults": "components/tooltip#defaults-for-a-whole-app" }, - "@codeui/kit/table": { + "@codeui/solid/table": { "Table": "components/table#table", "TableClasses": "components/table#anatomy", "TablePart": "components/table#anatomy", @@ -1247,7 +1247,7 @@ "TableStyles": "components/table#tablestyles", "TableVariants": "components/table#variants" }, - "@codeui/kit/hover-card": { + "@codeui/solid/hover-card": { "HoverCard": "components/hover-card#hovercard", "HoverCardClasses": "components/hover-card#anatomy", "HoverCardContent": "components/hover-card#hovercardcontent", @@ -1266,7 +1266,7 @@ "HoverCardGroup": "components/hover-card#hovercardgroup", "HoverCardGroupProps": "components/hover-card#hovercardgroup" }, - "@codeui/kit/resizable": { + "@codeui/solid/resizable": { "Resizable": "components/resizable#resizable", "ResizableClasses": "components/resizable#anatomy", "ResizableHandle": "components/resizable#resizablehandle", @@ -1282,14 +1282,14 @@ "ResizableStyles": "components/resizable#resizablestyles", "ResizeStrategy": "components/resizable#resizablestyles" }, - "@codeui/kit/avatar": { + "@codeui/solid/avatar": { "Avatar": "components/avatar#avatar", "avatarHue": "components/avatar#avatarhue", "avatarInitials": "components/avatar#avatarinitials", "AvatarProps": "components/avatar#avatar", "avatarVars": "components/avatar#avatar" }, - "@codeui/kit/avatar/parts": { + "@codeui/solid/avatar/parts": { "AvatarClasses": "components/avatar#anatomy", "avatarHue": "components/avatar#avatarhue", "avatarInitials": "components/avatar#avatarinitials", diff --git a/apps/docs/src/lib/llms.ts b/apps/docs/src/lib/llms.ts index bbf6455d..57900dd9 100644 --- a/apps/docs/src/lib/llms.ts +++ b/apps/docs/src/lib/llms.ts @@ -2,12 +2,12 @@ import type { Item, Node, Root } from 'fumadocs-core/page-tree'; import kit from '../../../../packages/kit/package.json'; import { docsLlms, source } from './source'; -// The curated /llms.txt index and the /llms-full.txt bundle for @codeui/kit. +// The curated /llms.txt index and the /llms-full.txt bundle for @codeui/solid. // Both walk the kit sidebar. The full bundle also includes the Inkstone colour rules. const subpaths = Object.keys(kit.exports) .filter(key => key !== '.' && key !== './package.json' && key !== './tokens') - .map(key => `@codeui/kit/${key.slice(2)}`); + .map(key => `@codeui/solid/${key.slice(2)}`); const markdownUrl = (url: string) => `${url.replace(/\/$/, '')}.md`; const colourGuide = source.getPage(['design', 'color']); @@ -40,14 +40,14 @@ function roots(tree: Root) { export function kitIndex() { const { kitRoot, designRoot } = roots(source.getPageTree()); return [ - `# CodeUI kit (@codeui/kit ${kit.version})`, + `# CodeUI kit (@codeui/solid ${kit.version})`, '', '> Accessible Solid components with the CodeImage look, built on Kobalte. Every color, radius, and spacing value is a --cui-* CSS custom property.', '', - `- Install: \`pnpm add @codeui/kit solid-js\`. Peer dependency: solid-js ${kit.peerDependencies['solid-js']}. Solid components automatically import their CSS and theme. CSS-only consumers load theme.css and component files, or all.css. No vanilla-extract plugin is required. See Installation.`, - '- Ready components import from `@codeui/kit` or a component entry such as `@codeui/kit/combobox`.', + `- Install: \`pnpm add @codeui/solid solid-js\`. Peer dependency: solid-js ${kit.peerDependencies['solid-js']}. Solid components automatically import their CSS and theme. CSS-only consumers load theme.css and component files, or all.css. No vanilla-extract plugin is required. See Installation.`, + '- Ready components import from `@codeui/solid` or a component entry such as `@codeui/solid/combobox`.', `- Styled parts for custom layouts: ${subpaths.filter(s => s.endsWith('/parts')).map(s => `\`${s}\``).join(', ')}.`, - '- Token objects import from `@codeui/kit` or `@codeui/kit/tokens`.', + '- Token objects import from `@codeui/solid` or `@codeui/solid/tokens`.', ...(colourGuide ? [`- Use the [Inkstone colour rules](${markdownUrl(colourGuide.url)}) when styling an interface.`] : []), '- Each link below is the Markdown of one page. [All kit pages in one file](/llms-full.txt).', ...(kitRoot?.type === 'folder' ? section(kitRoot.children, 2) : []), diff --git a/apps/docs/src/routes/__root.tsx b/apps/docs/src/routes/__root.tsx index 9da13c48..ba12c1ea 100644 --- a/apps/docs/src/routes/__root.tsx +++ b/apps/docs/src/routes/__root.tsx @@ -10,7 +10,7 @@ export const Route = createRootRoute({ { charSet: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { title: 'CodeUI' }, - { name: 'description', content: 'Documentation for @codeui/kit, the Solid UI kit behind CodeImage.' }, + { name: 'description', content: 'Documentation for @codeui/solid, the Solid UI kit behind CodeImage.' }, ], links: [{ rel: 'stylesheet', href: appCss }], }), diff --git a/apps/docs/src/routes/examples.tsx b/apps/docs/src/routes/examples.tsx index a0b04799..e2193da0 100644 --- a/apps/docs/src/routes/examples.tsx +++ b/apps/docs/src/routes/examples.tsx @@ -8,7 +8,7 @@ export const Route = createFileRoute('/examples')({ head: () => ({ meta: [ { title: 'Made with CodeUI' }, - { name: 'description', content: 'Full-screen Solid apps built with @codeui/kit and the Inkstone design language.' }, + { name: 'description', content: 'Full-screen Solid apps built with @codeui/solid and the Inkstone design language.' }, ], }), component: Examples, diff --git a/apps/docs/src/routes/index.tsx b/apps/docs/src/routes/index.tsx index 7de7737e..7b47cbc8 100644 --- a/apps/docs/src/routes/index.tsx +++ b/apps/docs/src/routes/index.tsx @@ -11,7 +11,7 @@ export const Route = createFileRoute('/')({ component: Home, }); -const installCommand = 'pnpm add @codeui/kit'; +const installCommand = 'pnpm add @codeui/solid'; function Home() { return ( diff --git a/apps/examples/README.md b/apps/examples/README.md index 1cb1a5d1..aa532123 100644 --- a/apps/examples/README.md +++ b/apps/examples/README.md @@ -1,6 +1,6 @@ # @codeui/examples -Solid apps made with `@codeui/kit`. The docs site lists them at `/examples` and serves each one full screen at `/examples//`. +Solid apps made with `@codeui/solid`. The docs site lists them at `/examples` and serves each one full screen at `/examples//`. | Slug | App | What it is | | --- | --- | --- | @@ -14,7 +14,7 @@ Each app is a real consumer of the kit: Vite and `@solidjs/vite-plugin`, as [Ins ## Develop ```bash -pnpm turbo run build --filter=@codeui/kit +pnpm turbo run build --filter=@codeui/solid pnpm --filter @codeui/examples dev # http://localhost:6160 ``` diff --git a/apps/examples/package.json b/apps/examples/package.json index 9d9925d3..8a7e0f32 100644 --- a/apps/examples/package.json +++ b/apps/examples/package.json @@ -13,7 +13,7 @@ "screenshots": "node scripts/screenshots.mjs" }, "dependencies": { - "@codeui/kit": "workspace:*", + "@codeui/solid": "workspace:*", "@fontsource-variable/inter": "^5.2.8", "@fontsource-variable/jetbrains-mono": "^5.2.8", "@kobalte/core": "2.0.0", diff --git a/apps/examples/src/dashboard/App.tsx b/apps/examples/src/dashboard/App.tsx index 489ac5c2..5be70fb0 100644 --- a/apps/examples/src/dashboard/App.tsx +++ b/apps/examples/src/dashboard/App.tsx @@ -1,4 +1,4 @@ -import { Button, type CommandItem, CommandMenu, createToaster, DropdownMenuItem, IconButton, Kbd, Sheet, Text, Toaster, Tooltip } from "@codeui/kit"; +import { Button, type CommandItem, CommandMenu, createToaster, DropdownMenuItem, IconButton, Kbd, Sheet, Text, Toaster, Tooltip } from "@codeui/solid"; import Activity from "@lucide/solid/icons/activity"; import ChartNoAxesColumn from "@lucide/solid/icons/chart-no-axes-column"; import Menu from "@lucide/solid/icons/menu"; diff --git a/apps/examples/src/dashboard/CustomerSheet.tsx b/apps/examples/src/dashboard/CustomerSheet.tsx index 4aab9bf3..824b837c 100644 --- a/apps/examples/src/dashboard/CustomerSheet.tsx +++ b/apps/examples/src/dashboard/CustomerSheet.tsx @@ -1,4 +1,4 @@ -import { Badge, Button, SegmentedControl, SegmentedControlItem, Sheet, type SheetProps, Text } from "@codeui/kit"; +import { Badge, Button, SegmentedControl, SegmentedControlItem, Sheet, type SheetProps, Text } from "@codeui/solid"; import { createMemo, For, Show } from "solid-js"; import { formatMoneyWhole, formatNumber } from "../shared/format"; import { createIsPhone } from "../shared/media"; diff --git a/apps/examples/src/dashboard/Customers.tsx b/apps/examples/src/dashboard/Customers.tsx index 95b9591d..2e6f51e2 100644 --- a/apps/examples/src/dashboard/Customers.tsx +++ b/apps/examples/src/dashboard/Customers.tsx @@ -21,7 +21,7 @@ import { Text, TextField, Tooltip, -} from "@codeui/kit"; +} from "@codeui/solid"; import Ellipsis from "@lucide/solid/icons/ellipsis"; import { createEffect, createMemo, createSignal, For, onSettled, Show } from "solid-js"; import { formatMoneyWhole, formatNumber } from "../shared/format"; diff --git a/apps/examples/src/dashboard/Overview.tsx b/apps/examples/src/dashboard/Overview.tsx index 53818462..be80003f 100644 --- a/apps/examples/src/dashboard/Overview.tsx +++ b/apps/examples/src/dashboard/Overview.tsx @@ -1,4 +1,4 @@ -import { SegmentedControl, SegmentedControlItem, Text } from "@codeui/kit"; +import { SegmentedControl, SegmentedControlItem, Text } from "@codeui/solid"; import { For } from "solid-js"; import { type JSX } from "@solidjs/web"; import { BarChart, BarList, ChartLegend, LineChart, type Series, Sparkline } from "../shared/charts"; diff --git a/apps/examples/src/dashboard/Settings.tsx b/apps/examples/src/dashboard/Settings.tsx index 87bc2ae9..9843bdfd 100644 --- a/apps/examples/src/dashboard/Settings.tsx +++ b/apps/examples/src/dashboard/Settings.tsx @@ -15,8 +15,8 @@ import { Switch, Text, TextField, -} from "@codeui/kit"; -import * as D from "@codeui/kit/dialog/parts"; +} from "@codeui/solid"; +import * as D from "@codeui/solid/dialog/parts"; import Bell from "@lucide/solid/icons/bell"; import ChevronDown from "@lucide/solid/icons/chevron-down"; import Palette from "@lucide/solid/icons/palette"; diff --git a/apps/examples/src/dashboard/pulse.ts b/apps/examples/src/dashboard/pulse.ts index 4698354a..7446cb18 100644 --- a/apps/examples/src/dashboard/pulse.ts +++ b/apps/examples/src/dashboard/pulse.ts @@ -1,4 +1,4 @@ -import type { ToastController } from "@codeui/kit"; +import type { ToastController } from "@codeui/solid"; import { createContext, createMemo, createSignal, useContext } from "solid-js"; import { createStore } from "solid-js"; import { diff --git a/apps/examples/src/finance/AddTransaction.tsx b/apps/examples/src/finance/AddTransaction.tsx index 4c011b10..f4cd68bf 100644 --- a/apps/examples/src/finance/AddTransaction.tsx +++ b/apps/examples/src/finance/AddTransaction.tsx @@ -1,4 +1,4 @@ -import { Button, Dialog, DialogPanelContent, DialogPanelFooter, NumberField, OptionCardGroup, SegmentedControl, SegmentedControlItem, Stack, TextField } from "@codeui/kit"; +import { Button, Dialog, DialogPanelContent, DialogPanelFooter, NumberField, OptionCardGroup, SegmentedControl, SegmentedControlItem, Stack, TextField } from "@codeui/solid"; import { createSignal, Show } from "solid-js"; import { type AccountId, accounts, categories, type Category } from "./data"; import { useLedger } from "./ledger"; diff --git a/apps/examples/src/finance/App.tsx b/apps/examples/src/finance/App.tsx index 6af1e8e0..d2cb5b44 100644 --- a/apps/examples/src/finance/App.tsx +++ b/apps/examples/src/finance/App.tsx @@ -1,4 +1,4 @@ -import { Button, type CommandItem, CommandMenu, createSelectOptions, createToaster, IconButton, Kbd, SegmentedControl, SegmentedControlItem, Select, Sheet, Text, Toaster } from "@codeui/kit"; +import { Button, type CommandItem, CommandMenu, createSelectOptions, createToaster, IconButton, Kbd, SegmentedControl, SegmentedControlItem, Select, Sheet, Text, Toaster } from "@codeui/solid"; import PanelRight from "@lucide/solid/icons/panel-right"; import Plus from "@lucide/solid/icons/plus"; import Search from "@lucide/solid/icons/search"; diff --git a/apps/examples/src/finance/Overview.tsx b/apps/examples/src/finance/Overview.tsx index 4d3881d7..b92e0bb1 100644 --- a/apps/examples/src/finance/Overview.tsx +++ b/apps/examples/src/finance/Overview.tsx @@ -1,4 +1,4 @@ -import { Text } from "@codeui/kit"; +import { Text } from "@codeui/solid"; import { For } from "solid-js"; import { BarList, ChartLegend, LineChart, type Series } from "../shared/charts"; import { formatChange, formatMoney, formatMoneyWhole, formatPercent } from "../shared/format"; diff --git a/apps/examples/src/finance/Planning.tsx b/apps/examples/src/finance/Planning.tsx index 17a1c474..b42432e2 100644 --- a/apps/examples/src/finance/Planning.tsx +++ b/apps/examples/src/finance/Planning.tsx @@ -1,4 +1,4 @@ -import { Accordion, type AccordionEntry, Badge, Button, Progress, Slider, Text } from "@codeui/kit"; +import { Accordion, type AccordionEntry, Badge, Button, Progress, Slider, Text } from "@codeui/solid"; import CalendarClock from "@lucide/solid/icons/calendar-clock"; import PiggyBank from "@lucide/solid/icons/piggy-bank"; import Target from "@lucide/solid/icons/target"; diff --git a/apps/examples/src/finance/Transactions.tsx b/apps/examples/src/finance/Transactions.tsx index 6199e3ec..32f9040a 100644 --- a/apps/examples/src/finance/Transactions.tsx +++ b/apps/examples/src/finance/Transactions.tsx @@ -15,7 +15,7 @@ import { Select, Text, TextField, -} from "@codeui/kit"; +} from "@codeui/solid"; import Ellipsis from "@lucide/solid/icons/ellipsis"; import { createEffect, createMemo, createSignal, For, Show } from "solid-js"; import { formatDay, formatMoney } from "../shared/format"; diff --git a/apps/examples/src/finance/ledger.ts b/apps/examples/src/finance/ledger.ts index 45a9cee0..edc6c9bd 100644 --- a/apps/examples/src/finance/ledger.ts +++ b/apps/examples/src/finance/ledger.ts @@ -1,5 +1,5 @@ import { createContext, createMemo, createSignal, useContext } from "solid-js"; -import type { ToastController } from "@codeui/kit"; +import type { ToastController } from "@codeui/solid"; import { type Account, balance, diff --git a/apps/examples/src/gallery/main.tsx b/apps/examples/src/gallery/main.tsx index d87ae19b..c094f64e 100644 --- a/apps/examples/src/gallery/main.tsx +++ b/apps/examples/src/gallery/main.tsx @@ -1,5 +1,5 @@ import "../shared/base.css"; -import { Badge, Link, Text } from "@codeui/kit"; +import { Badge, Link, Text } from "@codeui/solid"; import { For } from "solid-js"; import { render } from "@solidjs/web"; import { docsUrl, examples } from "../shared/examples"; @@ -14,7 +14,7 @@ function Gallery() { Made with CodeUI - Solid apps built with @codeui/kit and the Inkstone design language. + Solid apps built with @codeui/solid and the Inkstone design language.