// @ts-nocheck
// This file is autogenerated by scripts/build-registry.mts
// Do not edit this file directly.
import "server-only"

import * as React from "react"

const shards: Record<
  string,
  {
    load: () => Promise<{ Components: Record<string, any> }>
    names: Set<string>
  }
> = {
  base: {
    load: () => import("./base"),
    names: new Set([
      "accordion-basic",
      "accordion-borders",
      "accordion-card",
      "accordion-demo",
      "accordion-disabled",
      "accordion-multiple",
      "accordion-rtl",
      "ai-sdk-helper-demo",
      "alert-action",
      "alert-basic",
      "alert-colors",
      "alert-demo",
      "alert-destructive",
      "alert-dialog-basic",
      "alert-dialog-demo",
      "alert-dialog-destructive",
      "alert-dialog-media",
      "alert-dialog-rtl",
      "alert-dialog-small-media",
      "alert-dialog-small",
      "alert-rtl",
      "aspect-ratio-demo",
      "aspect-ratio-portrait",
      "aspect-ratio-rtl",
      "aspect-ratio-square",
      "attachment-demo",
      "attachment-group",
      "attachment-image",
      "attachment-sizes",
      "attachment-states",
      "attachment-trigger",
      "avatar-badge-icon",
      "avatar-badge",
      "avatar-basic",
      "avatar-demo",
      "avatar-dropdown",
      "avatar-group-count-icon",
      "avatar-group-count",
      "avatar-group",
      "avatar-rtl",
      "avatar-size",
      "badge-colors",
      "badge-demo",
      "badge-icon",
      "badge-link",
      "badge-rtl",
      "badge-spinner",
      "badge-variants",
      "breadcrumb-basic",
      "breadcrumb-demo",
      "breadcrumb-dropdown",
      "breadcrumb-ellipsis",
      "breadcrumb-link",
      "breadcrumb-rtl",
      "breadcrumb-separator",
      "bubble-alignment",
      "bubble-collapsible",
      "bubble-demo",
      "bubble-group-demo",
      "bubble-link-button",
      "bubble-markdown",
      "bubble-popover",
      "bubble-reactions",
      "bubble-tooltip",
      "bubble-variants",
      "button-default",
      "button-demo",
      "button-destructive",
      "button-ghost",
      "button-group-demo",
      "button-group-dropdown",
      "button-group-input-group",
      "button-group-input",
      "button-group-nested",
      "button-group-orientation",
      "button-group-popover",
      "button-group-rtl",
      "button-group-select",
      "button-group-separator",
      "button-group-size",
      "button-group-split",
      "button-icon",
      "button-link",
      "button-outline",
      "button-render",
      "button-rounded",
      "button-rtl",
      "button-secondary",
      "button-size",
      "button-spinner",
      "button-with-icon",
      "calendar-basic",
      "calendar-booked-dates",
      "calendar-caption",
      "calendar-custom-days",
      "calendar-demo",
      "calendar-hijri",
      "calendar-multiple",
      "calendar-presets",
      "calendar-range",
      "calendar-rtl",
      "calendar-time",
      "calendar-week-numbers",
      "card-demo",
      "card-edge-to-edge",
      "card-image",
      "card-rtl",
      "card-small",
      "card-spacing",
      "carousel-api",
      "carousel-demo",
      "carousel-multiple",
      "carousel-orientation",
      "carousel-plugin",
      "carousel-rtl",
      "carousel-size",
      "carousel-spacing",
      "chart-demo",
      "chart-example-axis",
      "chart-example-grid",
      "chart-example-legend",
      "chart-example-tooltip",
      "chart-example",
      "chart-rtl",
      "chart-tooltip",
      "checkbox-basic",
      "checkbox-demo",
      "checkbox-description",
      "checkbox-disabled",
      "checkbox-group",
      "checkbox-invalid",
      "checkbox-rtl",
      "checkbox-table",
      "collapsible-basic",
      "collapsible-demo",
      "collapsible-file-tree",
      "collapsible-rtl",
      "collapsible-settings",
      "combobox-auto-highlight",
      "combobox-basic",
      "combobox-clear",
      "combobox-custom",
      "combobox-demo",
      "combobox-disabled",
      "combobox-groups",
      "combobox-input-group",
      "combobox-invalid",
      "combobox-multiple",
      "combobox-popup",
      "combobox-rtl",
      "command-basic",
      "command-demo",
      "command-dialog",
      "command-groups",
      "command-rtl",
      "command-scrollable",
      "command-shortcuts",
      "context-menu-basic",
      "context-menu-checkboxes",
      "context-menu-demo",
      "context-menu-destructive",
      "context-menu-groups",
      "context-menu-icons",
      "context-menu-radio",
      "context-menu-rtl",
      "context-menu-shortcuts",
      "context-menu-sides",
      "context-menu-submenu",
      "data-picker-with-dropdowns",
      "data-table-demo",
      "data-table-rtl",
      "date-picker-basic",
      "date-picker-demo",
      "date-picker-dob",
      "date-picker-input",
      "date-picker-natural-language",
      "date-picker-range",
      "date-picker-rtl",
      "date-picker-time",
      "dialog-close-button",
      "dialog-demo",
      "dialog-no-close-button",
      "dialog-rtl",
      "dialog-scrollable-content",
      "dialog-sticky-footer",
      "drawer-demo",
      "drawer-dialog",
      "drawer-nested",
      "drawer-non-modal",
      "drawer-rtl",
      "drawer-sides",
      "drawer-snap-points",
      "drawer-swipe-handle",
      "dropdown-menu-avatar",
      "dropdown-menu-basic",
      "dropdown-menu-checkboxes-icons",
      "dropdown-menu-checkboxes",
      "dropdown-menu-complex",
      "dropdown-menu-demo",
      "dropdown-menu-destructive",
      "dropdown-menu-icons",
      "dropdown-menu-radio-group",
      "dropdown-menu-radio-icons",
      "dropdown-menu-rtl",
      "dropdown-menu-shortcuts",
      "dropdown-menu-submenu",
      "empty-avatar-group",
      "empty-avatar",
      "empty-background",
      "empty-card",
      "empty-demo",
      "empty-input-group",
      "empty-outline",
      "empty-rtl",
      "field-checkbox",
      "field-choice-card",
      "field-demo",
      "field-fieldset",
      "field-group",
      "field-input",
      "field-radio",
      "field-responsive",
      "field-rtl",
      "field-select",
      "field-slider",
      "field-switch",
      "field-textarea",
      "file-upload-list",
      "hover-card-demo",
      "hover-card-rtl",
      "hover-card-sides",
      "input-badge",
      "input-basic",
      "input-button-group",
      "input-demo",
      "input-disabled",
      "input-field",
      "input-fieldgroup",
      "input-file",
      "input-form",
      "input-grid",
      "input-group-basic",
      "input-group-block-end",
      "input-group-block-start",
      "input-group-button-group",
      "input-group-button",
      "input-group-custom",
      "input-group-demo",
      "input-group-dropdown",
      "input-group-icon",
      "input-group-in-card",
      "input-group-inline-end",
      "input-group-inline-start",
      "input-group-kbd",
      "input-group-label",
      "input-group-rtl",
      "input-group-spinner",
      "input-group-text",
      "input-group-textarea-examples",
      "input-group-textarea",
      "input-group-tooltip",
      "input-group-with-addons",
      "input-group-with-buttons",
      "input-group-with-kbd",
      "input-group-with-tooltip",
      "input-inline",
      "input-input-group",
      "input-invalid",
      "input-otp-alphanumeric",
      "input-otp-controlled",
      "input-otp-demo",
      "input-otp-disabled",
      "input-otp-form",
      "input-otp-four-digits",
      "input-otp-invalid",
      "input-otp-pattern",
      "input-otp-rtl",
      "input-otp-separator",
      "input-required",
      "input-rtl",
      "item-avatar",
      "item-demo",
      "item-dropdown",
      "item-group",
      "item-header",
      "item-icon",
      "item-image",
      "item-link",
      "item-rtl",
      "item-size",
      "item-variant",
      "kbd-button",
      "kbd-demo",
      "kbd-group",
      "kbd-input-group",
      "kbd-rtl",
      "kbd-tooltip",
      "label-demo",
      "label-rtl",
      "markdown-demo",
      "marker-border",
      "marker-demo",
      "marker-icon",
      "marker-link-button",
      "marker-separator",
      "marker-shimmer",
      "marker-status",
      "marker-variants",
      "menubar-checkbox",
      "menubar-demo",
      "menubar-icons",
      "menubar-radio",
      "menubar-rtl",
      "menubar-submenu",
      "message-actions",
      "message-attachment",
      "message-avatar",
      "message-demo",
      "message-group",
      "message-header-footer",
      "message-markdown",
      "message-scroller-anchoring",
      "message-scroller-animation",
      "message-scroller-commands",
      "message-scroller-demo",
      "message-scroller-group-chat",
      "message-scroller-load-history",
      "message-scroller-opening-position",
      "message-scroller-previous-context",
      "message-scroller-scrollable",
      "message-scroller-state",
      "message-scroller-streaming",
      "message-scroller-visibility",
      "muted-item-group",
      "native-select-demo",
      "native-select-disabled",
      "native-select-groups",
      "native-select-invalid",
      "native-select-rtl",
      "navigation-menu-demo",
      "navigation-menu-rtl",
      "outline-item-group",
      "pagination-demo",
      "pagination-icons-only",
      "pagination-rtl",
      "pagination-simple",
      "popover-alignments",
      "popover-basic",
      "popover-demo",
      "popover-form",
      "popover-rtl",
      "progress-controlled",
      "progress-demo",
      "progress-label",
      "progress-rtl",
      "questionnaire-animated",
      "questionnaire-card",
      "questionnaire-conditional",
      "questionnaire-controlled",
      "questionnaire-demo",
      "questionnaire-dialog",
      "questionnaire-freeform",
      "questionnaire-multiple",
      "questionnaire-navigation-state",
      "questionnaire-progress",
      "questionnaire-resume",
      "questionnaire-shortcuts",
      "questionnaire-skip",
      "questionnaire-validation",
      "radio-fields",
      "radio-group-choice-card",
      "radio-group-demo",
      "radio-group-description",
      "radio-group-disabled",
      "radio-group-fieldset",
      "radio-group-invalid",
      "radio-group-rtl",
      "resizable-demo",
      "resizable-handle",
      "resizable-rtl",
      "resizable-vertical",
      "scroll-area-demo",
      "scroll-area-horizontal-demo",
      "scroll-area-rtl",
      "scroll-fade-demo",
      "scroll-fade-edge",
      "scroll-fade-horizontal",
      "scroll-fade-none",
      "scroll-fade-overflow",
      "scroll-fade-rtl",
      "scroll-fade-size",
      "select-align-item",
      "select-demo",
      "select-disabled",
      "select-groups",
      "select-invalid",
      "select-rtl",
      "select-scrollable",
      "separator-demo",
      "separator-list",
      "separator-menu",
      "separator-rtl",
      "separator-vertical",
      "sheet-demo",
      "sheet-no-close-button",
      "sheet-rtl",
      "sheet-side",
      "shimmer-angle",
      "shimmer-color",
      "shimmer-demo",
      "shimmer-duration",
      "shimmer-marker",
      "shimmer-none",
      "shimmer-once",
      "shimmer-rtl",
      "shimmer-spread",
      "sidebar-controlled",
      "sidebar-demo",
      "sidebar-footer",
      "sidebar-group-action",
      "sidebar-group-collapsible",
      "sidebar-group",
      "sidebar-header",
      "sidebar-menu-action",
      "sidebar-menu-badge",
      "sidebar-menu-collapsible",
      "sidebar-menu-sub",
      "sidebar-menu",
      "sidebar-rsc",
      "sidebar-rtl",
      "skeleton-avatar",
      "skeleton-card",
      "skeleton-demo",
      "skeleton-form",
      "skeleton-rtl",
      "skeleton-table",
      "skeleton-text",
      "slider-controlled",
      "slider-demo",
      "slider-disabled",
      "slider-multiple",
      "slider-range",
      "slider-rtl",
      "slider-vertical",
      "spinner-badge",
      "spinner-button",
      "spinner-custom",
      "spinner-demo",
      "spinner-empty",
      "spinner-input-group",
      "spinner-rtl",
      "spinner-size",
      "switch-choice-card",
      "switch-demo",
      "switch-description",
      "switch-disabled",
      "switch-invalid",
      "switch-rtl",
      "switch-sizes",
      "table-actions",
      "table-demo",
      "table-footer",
      "table-rtl",
      "tabs-demo",
      "tabs-disabled",
      "tabs-icons",
      "tabs-line",
      "tabs-rtl",
      "tabs-vertical",
      "tanstack-ai-helper-demo",
      "textarea-button",
      "textarea-demo",
      "textarea-disabled",
      "textarea-field",
      "textarea-invalid",
      "textarea-rtl",
      "toast-demo",
      "toast-promise",
      "toast-types",
      "toggle-demo",
      "toggle-disabled",
      "toggle-group-demo",
      "toggle-group-disabled",
      "toggle-group-font-weight-selector",
      "toggle-group-outline",
      "toggle-group-rtl",
      "toggle-group-sizes",
      "toggle-group-spacing",
      "toggle-group-vertical",
      "toggle-outline",
      "toggle-rtl",
      "toggle-sizes",
      "toggle-text",
      "tooltip-demo",
      "tooltip-disabled",
      "tooltip-keyboard",
      "tooltip-rtl",
      "tooltip-sides",
      "typography-blockquote",
      "typography-demo",
      "typography-h1",
      "typography-h2",
      "typography-h3",
      "typography-h4",
      "typography-inline-code",
      "typography-large",
      "typography-lead",
      "typography-list",
      "typography-muted",
      "typography-p",
      "typography-rtl",
      "typography-small",
      "typography-table",
    ]),
  },
  aria: {
    load: () => import("./aria"),
    names: new Set([
      "accordion-basic",
      "accordion-borders",
      "accordion-card",
      "accordion-demo",
      "accordion-disabled",
      "accordion-multiple",
      "accordion-rtl",
      "alert-action",
      "alert-basic",
      "alert-colors",
      "alert-demo",
      "alert-destructive",
      "alert-dialog-basic",
      "alert-dialog-demo",
      "alert-dialog-destructive",
      "alert-dialog-media",
      "alert-dialog-rtl",
      "alert-dialog-small-media",
      "alert-dialog-small",
      "alert-rtl",
      "aspect-ratio-demo",
      "aspect-ratio-portrait",
      "aspect-ratio-rtl",
      "aspect-ratio-square",
      "attachment-demo",
      "attachment-group",
      "attachment-image",
      "attachment-sizes",
      "attachment-states",
      "attachment-trigger",
      "avatar-badge-icon",
      "avatar-badge",
      "avatar-basic",
      "avatar-demo",
      "avatar-dropdown",
      "avatar-group-count-icon",
      "avatar-group-count",
      "avatar-group",
      "avatar-rtl",
      "avatar-size",
      "badge-colors",
      "badge-demo",
      "badge-icon",
      "badge-link",
      "badge-rtl",
      "badge-spinner",
      "badge-variants",
      "breadcrumb-basic",
      "breadcrumb-demo",
      "breadcrumb-dropdown",
      "breadcrumb-ellipsis",
      "breadcrumb-link",
      "breadcrumb-rtl",
      "breadcrumb-separator",
      "bubble-alignment",
      "bubble-collapsible",
      "bubble-demo",
      "bubble-group-demo",
      "bubble-link-button",
      "bubble-markdown",
      "bubble-popover",
      "bubble-reactions",
      "bubble-tooltip",
      "bubble-variants",
      "button-default",
      "button-demo",
      "button-destructive",
      "button-ghost",
      "button-group-demo",
      "button-group-dropdown",
      "button-group-input-group",
      "button-group-input",
      "button-group-nested",
      "button-group-orientation",
      "button-group-popover",
      "button-group-rtl",
      "button-group-select",
      "button-group-separator",
      "button-group-size",
      "button-group-split",
      "button-icon",
      "button-link",
      "button-outline",
      "button-render",
      "button-rounded",
      "button-rtl",
      "button-secondary",
      "button-size",
      "button-spinner",
      "button-with-icon",
      "calendar-basic",
      "calendar-booked-dates",
      "calendar-caption",
      "calendar-custom-days",
      "calendar-demo",
      "calendar-hijri",
      "calendar-multiple",
      "calendar-presets",
      "calendar-range",
      "calendar-rtl",
      "calendar-time",
      "card-demo",
      "card-edge-to-edge",
      "card-image",
      "card-rtl",
      "card-small",
      "card-spacing",
      "carousel-api",
      "carousel-demo",
      "carousel-multiple",
      "carousel-orientation",
      "carousel-plugin",
      "carousel-rtl",
      "carousel-size",
      "carousel-spacing",
      "chart-demo",
      "chart-example-axis",
      "chart-example-grid",
      "chart-example-legend",
      "chart-example-tooltip",
      "chart-example",
      "chart-rtl",
      "chart-tooltip",
      "checkbox-basic",
      "checkbox-demo",
      "checkbox-description",
      "checkbox-disabled",
      "checkbox-group",
      "checkbox-invalid",
      "checkbox-rtl",
      "checkbox-table",
      "collapsible-basic",
      "collapsible-demo",
      "collapsible-file-tree",
      "collapsible-rtl",
      "collapsible-settings",
      "combobox-basic",
      "combobox-clear",
      "combobox-custom",
      "combobox-demo",
      "combobox-disabled",
      "combobox-groups",
      "combobox-input-group",
      "combobox-invalid",
      "combobox-multiple",
      "combobox-rtl",
      "command-basic",
      "command-demo",
      "command-dialog",
      "command-groups",
      "command-rtl",
      "command-scrollable",
      "command-shortcuts",
      "context-menu-basic",
      "context-menu-checkboxes",
      "context-menu-demo",
      "context-menu-destructive",
      "context-menu-groups",
      "context-menu-icons",
      "context-menu-radio",
      "context-menu-rtl",
      "context-menu-shortcuts",
      "context-menu-sides",
      "context-menu-submenu",
      "data-picker-with-dropdowns",
      "data-table-demo",
      "data-table-rtl",
      "date-picker-basic",
      "date-picker-demo",
      "date-picker-dob",
      "date-picker-input",
      "date-picker-natural-language",
      "date-picker-range",
      "date-picker-rtl",
      "date-picker-time",
      "dialog-close-button",
      "dialog-demo",
      "dialog-no-close-button",
      "dialog-rtl",
      "dialog-scrollable-content",
      "dialog-sticky-footer",
      "drawer-demo",
      "drawer-dialog",
      "drawer-nested",
      "drawer-non-modal",
      "drawer-rtl",
      "drawer-sides",
      "drawer-snap-points",
      "drawer-swipe-handle",
      "dropdown-menu-avatar",
      "dropdown-menu-basic",
      "dropdown-menu-checkboxes-icons",
      "dropdown-menu-checkboxes",
      "dropdown-menu-complex",
      "dropdown-menu-demo",
      "dropdown-menu-destructive",
      "dropdown-menu-icons",
      "dropdown-menu-radio-group",
      "dropdown-menu-radio-icons",
      "dropdown-menu-rtl",
      "dropdown-menu-shortcuts",
      "dropdown-menu-submenu",
      "empty-avatar-group",
      "empty-avatar",
      "empty-background",
      "empty-card",
      "empty-demo",
      "empty-input-group",
      "empty-outline",
      "empty-rtl",
      "field-checkbox",
      "field-choice-card",
      "field-demo",
      "field-fieldset",
      "field-group",
      "field-input",
      "field-radio",
      "field-responsive",
      "field-rtl",
      "field-select",
      "field-slider",
      "field-switch",
      "field-textarea",
      "file-upload-list",
      "input-badge",
      "input-basic",
      "input-button-group",
      "input-demo",
      "input-disabled",
      "input-field",
      "input-fieldgroup",
      "input-file",
      "input-form",
      "input-grid",
      "input-group-basic",
      "input-group-block-end",
      "input-group-block-start",
      "input-group-button-group",
      "input-group-button",
      "input-group-custom",
      "input-group-demo",
      "input-group-dropdown",
      "input-group-icon",
      "input-group-in-card",
      "input-group-inline-end",
      "input-group-inline-start",
      "input-group-kbd",
      "input-group-label",
      "input-group-rtl",
      "input-group-spinner",
      "input-group-text",
      "input-group-textarea-examples",
      "input-group-textarea",
      "input-group-tooltip",
      "input-group-with-addons",
      "input-group-with-buttons",
      "input-group-with-kbd",
      "input-group-with-tooltip",
      "input-inline",
      "input-input-group",
      "input-invalid",
      "input-otp-alphanumeric",
      "input-otp-controlled",
      "input-otp-demo",
      "input-otp-disabled",
      "input-otp-form",
      "input-otp-four-digits",
      "input-otp-invalid",
      "input-otp-pattern",
      "input-otp-rtl",
      "input-otp-separator",
      "input-required",
      "input-rtl",
      "item-avatar",
      "item-demo",
      "item-dropdown",
      "item-group",
      "item-header",
      "item-icon",
      "item-image",
      "item-link",
      "item-rtl",
      "item-size",
      "item-variant",
      "kbd-button",
      "kbd-demo",
      "kbd-group",
      "kbd-input-group",
      "kbd-rtl",
      "kbd-tooltip",
      "label-demo",
      "label-rtl",
      "markdown-demo",
      "marker-border",
      "marker-demo",
      "marker-icon",
      "marker-link-button",
      "marker-separator",
      "marker-shimmer",
      "marker-status",
      "marker-variants",
      "message-actions",
      "message-attachment",
      "message-avatar",
      "message-demo",
      "message-group",
      "message-header-footer",
      "message-markdown",
      "message-scroller-anchoring",
      "message-scroller-animation",
      "message-scroller-commands",
      "message-scroller-demo",
      "message-scroller-group-chat",
      "message-scroller-load-history",
      "message-scroller-opening-position",
      "message-scroller-previous-context",
      "message-scroller-scrollable",
      "message-scroller-state",
      "message-scroller-streaming",
      "message-scroller-visibility",
      "muted-item-group",
      "native-select-demo",
      "native-select-disabled",
      "native-select-groups",
      "native-select-invalid",
      "native-select-rtl",
      "outline-item-group",
      "pagination-demo",
      "pagination-icons-only",
      "pagination-rtl",
      "pagination-simple",
      "popover-alignments",
      "popover-basic",
      "popover-demo",
      "popover-form",
      "popover-rtl",
      "progress-controlled",
      "progress-demo",
      "progress-label",
      "progress-rtl",
      "questionnaire-animated",
      "questionnaire-card",
      "questionnaire-conditional",
      "questionnaire-controlled",
      "questionnaire-demo",
      "questionnaire-dialog",
      "questionnaire-freeform",
      "questionnaire-multiple",
      "questionnaire-navigation-state",
      "questionnaire-progress",
      "questionnaire-resume",
      "questionnaire-shortcuts",
      "questionnaire-skip",
      "questionnaire-validation",
      "radio-fields",
      "radio-group-choice-card",
      "radio-group-demo",
      "radio-group-description",
      "radio-group-disabled",
      "radio-group-fieldset",
      "radio-group-invalid",
      "radio-group-rtl",
      "resizable-demo",
      "resizable-handle",
      "resizable-rtl",
      "resizable-vertical",
      "scroll-area-demo",
      "scroll-area-horizontal-demo",
      "scroll-area-rtl",
      "scroll-fade-demo",
      "scroll-fade-edge",
      "scroll-fade-horizontal",
      "scroll-fade-none",
      "scroll-fade-overflow",
      "scroll-fade-rtl",
      "scroll-fade-size",
      "select-autocomplete",
      "select-demo",
      "select-disabled",
      "select-groups",
      "select-invalid",
      "select-rtl",
      "select-scrollable",
      "separator-demo",
      "separator-list",
      "separator-menu",
      "separator-rtl",
      "separator-vertical",
      "sheet-demo",
      "sheet-no-close-button",
      "sheet-rtl",
      "sheet-side",
      "shimmer-angle",
      "shimmer-color",
      "shimmer-demo",
      "shimmer-duration",
      "shimmer-marker",
      "shimmer-none",
      "shimmer-once",
      "shimmer-rtl",
      "shimmer-spread",
      "sidebar-controlled",
      "sidebar-demo",
      "sidebar-footer",
      "sidebar-group-action",
      "sidebar-group-collapsible",
      "sidebar-group",
      "sidebar-header",
      "sidebar-menu-action",
      "sidebar-menu-badge",
      "sidebar-menu-collapsible",
      "sidebar-menu-sub",
      "sidebar-menu",
      "sidebar-rsc",
      "sidebar-rtl",
      "skeleton-avatar",
      "skeleton-card",
      "skeleton-demo",
      "skeleton-form",
      "skeleton-rtl",
      "skeleton-table",
      "skeleton-text",
      "slider-controlled",
      "slider-demo",
      "slider-disabled",
      "slider-multiple",
      "slider-range",
      "slider-rtl",
      "slider-vertical",
      "sonner-demo",
      "sonner-description",
      "sonner-position",
      "sonner-types",
      "spinner-badge",
      "spinner-button",
      "spinner-custom",
      "spinner-demo",
      "spinner-empty",
      "spinner-input-group",
      "spinner-rtl",
      "spinner-size",
      "switch-choice-card",
      "switch-demo",
      "switch-description",
      "switch-disabled",
      "switch-invalid",
      "switch-rtl",
      "switch-sizes",
      "table-actions",
      "table-demo",
      "table-footer",
      "table-rtl",
      "tabs-demo",
      "tabs-disabled",
      "tabs-icons",
      "tabs-line",
      "tabs-rtl",
      "tabs-vertical",
      "textarea-button",
      "textarea-demo",
      "textarea-disabled",
      "textarea-field",
      "textarea-invalid",
      "textarea-rtl",
      "toggle-demo",
      "toggle-disabled",
      "toggle-group-demo",
      "toggle-group-disabled",
      "toggle-group-font-weight-selector",
      "toggle-group-outline",
      "toggle-group-rtl",
      "toggle-group-sizes",
      "toggle-group-spacing",
      "toggle-group-vertical",
      "toggle-outline",
      "toggle-rtl",
      "toggle-sizes",
      "toggle-text",
      "tooltip-demo",
      "tooltip-disabled",
      "tooltip-keyboard",
      "tooltip-rtl",
      "tooltip-sides",
      "typography-blockquote",
      "typography-demo",
      "typography-h1",
      "typography-h2",
      "typography-h3",
      "typography-h4",
      "typography-inline-code",
      "typography-large",
      "typography-lead",
      "typography-list",
      "typography-muted",
      "typography-p",
      "typography-rtl",
      "typography-small",
      "typography-table",
    ]),
  },
  radix: {
    load: () => import("./radix"),
    names: new Set([
      "accordion-basic",
      "accordion-borders",
      "accordion-card",
      "accordion-demo",
      "accordion-disabled",
      "accordion-multiple",
      "accordion-rtl",
      "alert-action",
      "alert-basic",
      "alert-colors",
      "alert-demo",
      "alert-destructive",
      "alert-dialog-basic",
      "alert-dialog-demo",
      "alert-dialog-destructive",
      "alert-dialog-media",
      "alert-dialog-rtl",
      "alert-dialog-small-media",
      "alert-dialog-small",
      "alert-rtl",
      "aspect-ratio-demo",
      "aspect-ratio-portrait",
      "aspect-ratio-rtl",
      "aspect-ratio-square",
      "attachment-demo",
      "attachment-group",
      "attachment-image",
      "attachment-sizes",
      "attachment-states",
      "attachment-trigger",
      "avatar-badge-icon",
      "avatar-badge",
      "avatar-basic",
      "avatar-demo",
      "avatar-dropdown",
      "avatar-group-count-icon",
      "avatar-group-count",
      "avatar-group",
      "avatar-rtl",
      "avatar-size",
      "badge-colors",
      "badge-demo",
      "badge-icon",
      "badge-link",
      "badge-rtl",
      "badge-spinner",
      "badge-variants",
      "breadcrumb-basic",
      "breadcrumb-demo",
      "breadcrumb-dropdown",
      "breadcrumb-ellipsis",
      "breadcrumb-link",
      "breadcrumb-rtl",
      "breadcrumb-separator",
      "bubble-alignment",
      "bubble-collapsible",
      "bubble-demo",
      "bubble-group-demo",
      "bubble-link-button",
      "bubble-markdown",
      "bubble-popover",
      "bubble-reactions",
      "bubble-tooltip",
      "bubble-variants",
      "button-aschild",
      "button-default",
      "button-demo",
      "button-destructive",
      "button-ghost",
      "button-group-demo",
      "button-group-dropdown",
      "button-group-input-group",
      "button-group-input",
      "button-group-nested",
      "button-group-orientation",
      "button-group-popover",
      "button-group-rtl",
      "button-group-select",
      "button-group-separator",
      "button-group-size",
      "button-group-split",
      "button-icon",
      "button-link",
      "button-outline",
      "button-rounded",
      "button-rtl",
      "button-secondary",
      "button-size",
      "button-spinner",
      "button-with-icon",
      "calendar-basic",
      "calendar-booked-dates",
      "calendar-caption",
      "calendar-custom-days",
      "calendar-demo",
      "calendar-hijri",
      "calendar-multiple",
      "calendar-presets",
      "calendar-range",
      "calendar-rtl",
      "calendar-time",
      "calendar-week-numbers",
      "card-demo",
      "card-edge-to-edge",
      "card-image",
      "card-rtl",
      "card-small",
      "card-spacing",
      "carousel-api",
      "carousel-demo",
      "carousel-multiple",
      "carousel-orientation",
      "carousel-plugin",
      "carousel-rtl",
      "carousel-size",
      "carousel-spacing",
      "chart-demo",
      "chart-example-axis",
      "chart-example-grid",
      "chart-example-legend",
      "chart-example-tooltip",
      "chart-example",
      "chart-rtl",
      "chart-tooltip",
      "checkbox-basic",
      "checkbox-demo",
      "checkbox-description",
      "checkbox-disabled",
      "checkbox-group",
      "checkbox-invalid",
      "checkbox-rtl",
      "checkbox-table",
      "collapsible-basic",
      "collapsible-demo",
      "collapsible-file-tree",
      "collapsible-rtl",
      "collapsible-settings",
      "combobox-auto-highlight",
      "combobox-basic",
      "combobox-clear",
      "combobox-custom",
      "combobox-demo",
      "combobox-disabled",
      "combobox-groups",
      "combobox-input-group",
      "combobox-invalid",
      "combobox-multiple",
      "combobox-popup",
      "combobox-rtl",
      "command-basic",
      "command-demo",
      "command-dialog",
      "command-groups",
      "command-rtl",
      "command-scrollable",
      "command-shortcuts",
      "context-menu-basic",
      "context-menu-checkboxes",
      "context-menu-demo",
      "context-menu-destructive",
      "context-menu-groups",
      "context-menu-icons",
      "context-menu-radio",
      "context-menu-rtl",
      "context-menu-shortcuts",
      "context-menu-sides",
      "context-menu-submenu",
      "data-picker-with-dropdowns",
      "data-table-demo",
      "data-table-rtl",
      "date-picker-basic",
      "date-picker-demo",
      "date-picker-dob",
      "date-picker-input",
      "date-picker-natural-language",
      "date-picker-range",
      "date-picker-rtl",
      "date-picker-time",
      "dialog-close-button",
      "dialog-demo",
      "dialog-no-close-button",
      "dialog-rtl",
      "dialog-scrollable-content",
      "dialog-sticky-footer",
      "drawer-demo",
      "drawer-dialog",
      "drawer-rtl",
      "drawer-scrollable-content",
      "drawer-sides",
      "dropdown-menu-avatar",
      "dropdown-menu-basic",
      "dropdown-menu-checkboxes-icons",
      "dropdown-menu-checkboxes",
      "dropdown-menu-complex",
      "dropdown-menu-demo",
      "dropdown-menu-destructive",
      "dropdown-menu-icons",
      "dropdown-menu-radio-group",
      "dropdown-menu-radio-icons",
      "dropdown-menu-rtl",
      "dropdown-menu-shortcuts",
      "dropdown-menu-submenu",
      "empty-avatar-group",
      "empty-avatar",
      "empty-background",
      "empty-card",
      "empty-demo",
      "empty-input-group",
      "empty-outline",
      "empty-rtl",
      "field-checkbox",
      "field-choice-card",
      "field-demo",
      "field-fieldset",
      "field-group",
      "field-input",
      "field-radio",
      "field-responsive",
      "field-rtl",
      "field-select",
      "field-slider",
      "field-switch",
      "field-textarea",
      "file-upload-list",
      "hover-card-demo",
      "hover-card-rtl",
      "hover-card-sides",
      "input-badge",
      "input-basic",
      "input-button-group",
      "input-demo",
      "input-disabled",
      "input-field",
      "input-fieldgroup",
      "input-file",
      "input-form",
      "input-grid",
      "input-group-basic",
      "input-group-block-end",
      "input-group-block-start",
      "input-group-button-group",
      "input-group-button",
      "input-group-custom",
      "input-group-demo",
      "input-group-dropdown",
      "input-group-icon",
      "input-group-in-card",
      "input-group-inline-end",
      "input-group-inline-start",
      "input-group-kbd",
      "input-group-label",
      "input-group-rtl",
      "input-group-spinner",
      "input-group-text",
      "input-group-textarea-examples",
      "input-group-textarea",
      "input-group-tooltip",
      "input-group-with-addons",
      "input-group-with-buttons",
      "input-group-with-kbd",
      "input-group-with-tooltip",
      "input-inline",
      "input-input-group",
      "input-invalid",
      "input-otp-alphanumeric",
      "input-otp-controlled",
      "input-otp-demo",
      "input-otp-disabled",
      "input-otp-form",
      "input-otp-four-digits",
      "input-otp-invalid",
      "input-otp-pattern",
      "input-otp-rtl",
      "input-otp-separator",
      "input-required",
      "input-rtl",
      "item-avatar",
      "item-demo",
      "item-dropdown",
      "item-group",
      "item-header",
      "item-icon",
      "item-image",
      "item-link",
      "item-rtl",
      "item-size",
      "item-variant",
      "kbd-button",
      "kbd-demo",
      "kbd-group",
      "kbd-input-group",
      "kbd-rtl",
      "kbd-tooltip",
      "label-demo",
      "label-rtl",
      "markdown-demo",
      "marker-border",
      "marker-demo",
      "marker-icon",
      "marker-link-button",
      "marker-separator",
      "marker-shimmer",
      "marker-status",
      "marker-variants",
      "menubar-checkbox",
      "menubar-demo",
      "menubar-icons",
      "menubar-radio",
      "menubar-rtl",
      "menubar-submenu",
      "message-actions",
      "message-attachment",
      "message-avatar",
      "message-demo",
      "message-group",
      "message-header-footer",
      "message-markdown",
      "message-scroller-anchoring",
      "message-scroller-animation",
      "message-scroller-commands",
      "message-scroller-demo",
      "message-scroller-group-chat",
      "message-scroller-load-history",
      "message-scroller-opening-position",
      "message-scroller-previous-context",
      "message-scroller-scrollable",
      "message-scroller-streaming",
      "message-scroller-visibility",
      "muted-item-group",
      "native-select-demo",
      "native-select-disabled",
      "native-select-groups",
      "native-select-invalid",
      "native-select-rtl",
      "navigation-menu-demo",
      "navigation-menu-rtl",
      "outline-item-group",
      "pagination-demo",
      "pagination-icons-only",
      "pagination-rtl",
      "pagination-simple",
      "popover-alignments",
      "popover-basic",
      "popover-demo",
      "popover-form",
      "popover-rtl",
      "progress-controlled",
      "progress-demo",
      "progress-label",
      "progress-rtl",
      "questionnaire-animated",
      "questionnaire-card",
      "questionnaire-conditional",
      "questionnaire-controlled",
      "questionnaire-demo",
      "questionnaire-dialog",
      "questionnaire-freeform",
      "questionnaire-multiple",
      "questionnaire-navigation-state",
      "questionnaire-progress",
      "questionnaire-resume",
      "questionnaire-shortcuts",
      "questionnaire-skip",
      "questionnaire-validation",
      "radio-fields",
      "radio-group-choice-card",
      "radio-group-demo",
      "radio-group-description",
      "radio-group-disabled",
      "radio-group-fieldset",
      "radio-group-invalid",
      "radio-group-rtl",
      "resizable-demo",
      "resizable-handle",
      "resizable-rtl",
      "resizable-vertical",
      "scroll-area-demo",
      "scroll-area-horizontal-demo",
      "scroll-area-rtl",
      "scroll-fade-demo",
      "scroll-fade-edge",
      "scroll-fade-horizontal",
      "scroll-fade-none",
      "scroll-fade-overflow",
      "scroll-fade-rtl",
      "scroll-fade-size",
      "select-align-item",
      "select-demo",
      "select-disabled",
      "select-groups",
      "select-invalid",
      "select-rtl",
      "select-scrollable",
      "separator-demo",
      "separator-list",
      "separator-menu",
      "separator-rtl",
      "separator-vertical",
      "sheet-demo",
      "sheet-no-close-button",
      "sheet-rtl",
      "sheet-side",
      "shimmer-angle",
      "shimmer-color",
      "shimmer-demo",
      "shimmer-duration",
      "shimmer-marker",
      "shimmer-none",
      "shimmer-once",
      "shimmer-rtl",
      "shimmer-spread",
      "sidebar-controlled",
      "sidebar-demo",
      "sidebar-footer",
      "sidebar-group-action",
      "sidebar-group-collapsible",
      "sidebar-group",
      "sidebar-header",
      "sidebar-menu-action",
      "sidebar-menu-badge",
      "sidebar-menu-collapsible",
      "sidebar-menu-sub",
      "sidebar-menu",
      "sidebar-rsc",
      "sidebar-rtl",
      "skeleton-avatar",
      "skeleton-card",
      "skeleton-demo",
      "skeleton-form",
      "skeleton-rtl",
      "skeleton-table",
      "skeleton-text",
      "slider-controlled",
      "slider-demo",
      "slider-disabled",
      "slider-multiple",
      "slider-range",
      "slider-rtl",
      "slider-vertical",
      "sonner-demo",
      "sonner-description",
      "sonner-position",
      "sonner-types",
      "spinner-badge",
      "spinner-button",
      "spinner-custom",
      "spinner-demo",
      "spinner-empty",
      "spinner-input-group",
      "spinner-rtl",
      "spinner-size",
      "switch-choice-card",
      "switch-demo",
      "switch-description",
      "switch-disabled",
      "switch-invalid",
      "switch-rtl",
      "switch-sizes",
      "table-actions",
      "table-demo",
      "table-footer",
      "table-rtl",
      "tabs-demo",
      "tabs-disabled",
      "tabs-icons",
      "tabs-line",
      "tabs-rtl",
      "tabs-vertical",
      "textarea-button",
      "textarea-demo",
      "textarea-disabled",
      "textarea-field",
      "textarea-invalid",
      "textarea-rtl",
      "toggle-demo",
      "toggle-disabled",
      "toggle-group-demo",
      "toggle-group-disabled",
      "toggle-group-font-weight-selector",
      "toggle-group-outline",
      "toggle-group-rtl",
      "toggle-group-sizes",
      "toggle-group-spacing",
      "toggle-group-vertical",
      "toggle-outline",
      "toggle-rtl",
      "toggle-sizes",
      "toggle-text",
      "tooltip-demo",
      "tooltip-disabled",
      "tooltip-keyboard",
      "tooltip-rtl",
      "tooltip-sides",
      "typography-blockquote",
      "typography-demo",
      "typography-h1",
      "typography-h2",
      "typography-h3",
      "typography-h4",
      "typography-inline-code",
      "typography-large",
      "typography-lead",
      "typography-list",
      "typography-muted",
      "typography-p",
      "typography-rtl",
      "typography-small",
      "typography-table",
    ]),
  },
}

const cache = new Map<string, any>()

// Sync existence check via the names set; the shard module (and with it the
// component's dynamic-import subtree) only loads when the component renders.
export function getComponent(styleName: string, name: string) {
  const shard = shards[styleName]
  if (!shard?.names.has(name)) {
    return undefined
  }

  const cacheKey = `${styleName}:${name}`
  let component = cache.get(cacheKey)
  if (!component) {
    component = React.lazy(async () => {
      const { Components } = await shard.load()
      return { default: Components[name] }
    })
    cache.set(cacheKey, component)
  }

  return component
}
