{
  "generatedAt": "2026-10-21T09:38:09.893Z",
  "sourceDir": "components",
  "componentCount": 21,
  "components": [
    {
      "name": "ActivityIcon",
      "slug": "activity-icon",
      "purpose": "Activity/resource/file icon with semantic category styling.",
      "exportPath": "@moodlehq/design-system/components/activity-icon",
      "implementationPath": "components/activity-icon/ActivityIcon.tsx",
      "storyPath": "components/activity-icon/ActivityIcon.stories.tsx",
      "testPath": "components/activity-icon/ActivityIcon.test.tsx",
      "figmaPath": "components/activity-icon/ActivityIcon.figma.tsx",
      "cssPath": "components/activity-icon/activity-icon.css"
    },
    {
      "name": "Alert",
      "slug": "alert",
      "purpose": "Persistent, in-flow status message (info/success/warning/danger) that stays until dismissed or the user navigates away. Not for brief auto-dismissing confirmations (toast), single-field validation errors (use the field's invalidFeedback), or blocking messages that need confirmation (modal).",
      "exportPath": "@moodlehq/design-system/components/alert",
      "implementationPath": "components/alert/Alert.tsx",
      "storyPath": "components/alert/Alert.stories.tsx",
      "testPath": "components/alert/Alert.test.tsx",
      "figmaPath": "components/alert/Alert.figma.tsx",
      "cssPath": "components/alert/alert.css"
    },
    {
      "name": "Avatar",
      "slug": "avatar",
      "purpose": "Circular user/entity identity display — photo or initials.",
      "exportPath": "@moodlehq/design-system/components/avatar",
      "implementationPath": "components/avatar/Avatar.tsx",
      "storyPath": "components/avatar/Avatar.stories.tsx",
      "testPath": "components/avatar/Avatar.test.tsx",
      "figmaPath": "components/avatar/Avatar.figma.tsx",
      "cssPath": "components/avatar/avatar.css"
    },
    {
      "name": "Badge",
      "slug": "badge",
      "purpose": "Short status, metadata, or count labels.",
      "exportPath": "@moodlehq/design-system/components/badge",
      "implementationPath": "components/badge/Badge.tsx",
      "storyPath": "components/badge/Badge.stories.tsx",
      "testPath": "components/badge/Badge.test.tsx",
      "figmaPath": "components/badge/Badge.figma.tsx",
      "cssPath": "components/badge/badge.css"
    },
    {
      "name": "Breadcrumb",
      "slug": "breadcrumb",
      "purpose": "Hierarchical navigation path (2+ levels) with optional truncation and overflow support. Separators are CSS-only — never add separator elements or characters to item labels. The last item is always the current page (plain text, not a link). Not for unrelated top-level sections (tabs) or sequential pages (Pagination).",
      "exportPath": "@moodlehq/design-system/components/breadcrumb",
      "implementationPath": "components/breadcrumb/Breadcrumb.tsx",
      "storyPath": "components/breadcrumb/Breadcrumb.stories.tsx",
      "testPath": "components/breadcrumb/Breadcrumb.test.tsx",
      "figmaPath": "components/breadcrumb/Breadcrumb.figma.tsx",
      "cssPath": "components/breadcrumb/breadcrumb.css"
    },
    {
      "name": "Button",
      "slug": "button",
      "purpose": "Primary and secondary actions.",
      "exportPath": "@moodlehq/design-system/components/button",
      "implementationPath": "components/button/Button.tsx",
      "storyPath": "components/button/Button.stories.tsx",
      "testPath": "components/button/Button.test.tsx",
      "figmaPath": "components/button/Button.figma.tsx",
      "cssPath": "components/button/button.css"
    },
    {
      "name": "Checkbox",
      "slug": "checkbox",
      "purpose": "Independent multi-select controls. No group wrapper is provided — see the Group story for consumer-supplied layout.",
      "exportPath": "@moodlehq/design-system/components/checkbox",
      "implementationPath": "components/checkbox/Checkbox.tsx",
      "storyPath": "components/checkbox/Checkbox.stories.tsx",
      "testPath": "components/checkbox/Checkbox.test.tsx",
      "figmaPath": "components/checkbox/Checkbox.figma.tsx",
      "cssPath": "components/checkbox/checkbox.css"
    },
    {
      "name": "Choicebox",
      "slug": "choicebox",
      "purpose": "Single-select options as larger, card-style choices (icon + label + supporting text). Not interchangeable with Radio — use for options that benefit from extra visual weight or a supporting description.",
      "exportPath": "@moodlehq/design-system/components/choicebox",
      "implementationPath": "components/choicebox/Choicebox.tsx",
      "storyPath": "components/choicebox/Choicebox.stories.tsx",
      "testPath": "components/choicebox/Choicebox.test.tsx",
      "figmaPath": "components/choicebox/Choicebox.figma.tsx",
      "cssPath": "components/choicebox/choicebox.css"
    },
    {
      "name": "CloseButton",
      "slug": "close-button",
      "purpose": "Icon-only dismiss action for temporary UI surfaces.",
      "exportPath": "@moodlehq/design-system/components/close-button",
      "implementationPath": "components/close-button/CloseButton.tsx",
      "storyPath": "components/close-button/CloseButton.stories.tsx",
      "testPath": "components/close-button/CloseButton.test.tsx",
      "figmaPath": "components/close-button/CloseButton.figma.tsx",
      "cssPath": "components/close-button/close-button.css"
    },
    {
      "name": "Dropdown",
      "slug": "dropdown",
      "purpose": "Composable trigger + menu container for action, select, expandable, and multiselect dropdown items.",
      "exportPath": "@moodlehq/design-system/components/dropdown",
      "implementationPath": "components/dropdown/Dropdown.tsx",
      "storyPath": "components/dropdown/Dropdown.stories.tsx",
      "testPath": "components/dropdown/Dropdown.test.tsx",
      "figmaPath": "components/dropdown/Dropdown.figma.tsx",
      "cssPath": "components/dropdown/dropdown.css",
      "subcomponents": [
        {
          "name": "DropdownTrigger",
          "purpose": "Trigger button that opens/closes the menu panel.",
          "exportName": "DropdownTrigger",
          "implementationPath": "components/dropdown/DropdownTrigger.tsx",
          "storyPath": "components/dropdown/DropdownTrigger.stories.tsx"
        },
        {
          "name": "DropdownMenu",
          "purpose": "Menu container that hosts dropdown items.",
          "exportName": "DropdownMenu",
          "implementationPath": "components/dropdown/Dropdown.tsx"
        },
        {
          "name": "DropdownItemAction",
          "purpose": "Standard clickable action item (button or link behavior).",
          "exportName": "DropdownItemAction",
          "implementationPath": "components/dropdown/DropdownItemAction.tsx",
          "storyPath": "components/dropdown/DropdownItemAction.stories.tsx"
        },
        {
          "name": "DropdownItemSelect",
          "purpose": "Single-select item with selected state (menuitemradio semantics).",
          "exportName": "DropdownItemSelect",
          "implementationPath": "components/dropdown/DropdownItemSelect.tsx",
          "storyPath": "components/dropdown/DropdownItemSelect.stories.tsx"
        },
        {
          "name": "DropdownItemMultiselect",
          "purpose": "Multi-select item with checked state (menuitemcheckbox semantics).",
          "exportName": "DropdownItemMultiselect",
          "implementationPath": "components/dropdown/DropdownItemMultiselect.tsx",
          "storyPath": "components/dropdown/DropdownItemMultiselect.stories.tsx"
        },
        {
          "name": "DropdownItemExpandable",
          "purpose": "Item that opens a nested submenu.",
          "exportName": "DropdownItemExpandable",
          "implementationPath": "components/dropdown/DropdownItemExpandable.tsx",
          "storyPath": "components/dropdown/DropdownItemExpandable.stories.tsx"
        },
        {
          "name": "DropdownItemHeader",
          "purpose": "Non-interactive section heading within the menu.",
          "exportName": "DropdownItemHeader",
          "implementationPath": "components/dropdown/DropdownItemHeader.tsx",
          "storyPath": "components/dropdown/DropdownItemHeader.stories.tsx"
        },
        {
          "name": "DropdownItemDivider",
          "purpose": "Visual separator between groups of items.",
          "exportName": "DropdownItemDivider",
          "implementationPath": "components/dropdown/DropdownItemDivider.tsx",
          "storyPath": "components/dropdown/DropdownItemDivider.stories.tsx"
        },
        {
          "name": "DropdownItemCustom",
          "purpose": "Wrapper for custom menu content when built-in item variants are not enough.",
          "exportName": "DropdownItemCustom",
          "implementationPath": "components/dropdown/DropdownItemCustom.tsx",
          "storyPath": "components/dropdown/DropdownItemCustom.stories.tsx"
        },
        {
          "name": "DropdownItemGroup",
          "purpose": "Semantic grouping container for related menu items.",
          "exportName": "DropdownItemGroup",
          "implementationPath": "components/dropdown/DropdownItemGroup.tsx",
          "storyPath": "components/dropdown/DropdownItemGroup.stories.tsx"
        }
      ]
    },
    {
      "name": "FavouriteButton",
      "slug": "favourite-button",
      "purpose": "Icon button to mark/unmark items as favourites.",
      "exportPath": "@moodlehq/design-system/components/favourite-button",
      "implementationPath": "components/favourite-button/FavouriteButton.tsx",
      "storyPath": "components/favourite-button/FavouriteButton.stories.tsx",
      "testPath": "components/favourite-button/FavouriteButton.test.tsx",
      "figmaPath": "components/favourite-button/FavouriteButton.figma.tsx",
      "cssPath": "components/favourite-button/favourite-button.css"
    },
    {
      "name": "Input",
      "slug": "input",
      "purpose": "Single-line text input with label, supporting text, and validation feedback for non-password text-like values that are saved with a form. Not for search — use SearchInput. Multi-line text uses Textarea.",
      "exportPath": "@moodlehq/design-system/components/input",
      "implementationPath": "components/input/Input.tsx",
      "storyPath": "components/input/Input.stories.tsx",
      "testPath": "components/input/Input.test.tsx",
      "figmaPath": "components/input/Input.figma.tsx",
      "cssPath": "components/input/input.css",
      "subcomponents": [
        {
          "name": "PasswordInput",
          "purpose": "Password-specific input with a built-in visibility toggle and shared form-field states.",
          "exportName": "PasswordInput",
          "implementationPath": "components/input/PasswordInput.tsx",
          "storyPath": "components/input/PasswordInput.stories.tsx"
        },
        {
          "name": "SearchInput",
          "purpose": "Search field (<input type=\"search\">) for finding or filtering content shown elsewhere, with a fixed magnifier, clear button, and debounced onDebouncedChange. Use instead of Input with a magnifier icon. If the user picks a row from a list that is saved with the form, it is a combobox, not SearchInput. Pass landmark only for page- or site-level search.",
          "exportName": "SearchInput",
          "implementationPath": "components/input/SearchInput.tsx",
          "storyPath": "components/input/SearchInput.stories.tsx"
        }
      ]
    },
    {
      "name": "Link",
      "slug": "link",
      "purpose": "Anchor element with variant and optional icon support.",
      "exportPath": "@moodlehq/design-system/components/link",
      "implementationPath": "components/link/Link.tsx",
      "storyPath": "components/link/Link.stories.tsx",
      "testPath": "components/link/Link.test.tsx",
      "figmaPath": "components/link/Link.figma.tsx",
      "cssPath": "components/link/link.css"
    },
    {
      "name": "NavPill",
      "slug": "nav-pill",
      "purpose": "Compact pill-style navigation link for section switching.",
      "exportPath": "@moodlehq/design-system/components/nav-pill",
      "implementationPath": "components/nav-pill/NavPill.tsx",
      "storyPath": "components/nav-pill/NavPill.stories.tsx",
      "testPath": "components/nav-pill/NavPill.test.tsx",
      "figmaPath": "components/nav-pill/NavPill.figma.tsx",
      "cssPath": "components/nav-pill/nav-pill.css"
    },
    {
      "name": "Pagination",
      "slug": "pagination",
      "purpose": "Page navigation control.",
      "exportPath": "@moodlehq/design-system/components/pagination",
      "implementationPath": "components/pagination/Pagination.tsx",
      "storyPath": "components/pagination/Pagination.stories.tsx",
      "testPath": "components/pagination/Pagination.test.tsx",
      "figmaPath": "components/pagination/Pagination.figma.tsx",
      "cssPath": "components/pagination/pagination.css"
    },
    {
      "name": "ProgressBar",
      "slug": "progress-bar",
      "purpose": "Visual progress indicator with status and label variants.",
      "exportPath": "@moodlehq/design-system/components/progress-bar",
      "implementationPath": "components/progress-bar/ProgressBar.tsx",
      "storyPath": "components/progress-bar/ProgressBar.stories.tsx",
      "testPath": "components/progress-bar/ProgressBar.test.tsx",
      "figmaPath": "components/progress-bar/ProgressBar.figma.tsx",
      "cssPath": "components/progress-bar/progress-bar.css"
    },
    {
      "name": "Radio",
      "slug": "radio",
      "purpose": "Single-select options in a compact list (native radio input, label only). No group wrapper is provided — see the Group story for consumer-supplied layout.",
      "exportPath": "@moodlehq/design-system/components/radio",
      "implementationPath": "components/radio/Radio.tsx",
      "storyPath": "components/radio/Radio.stories.tsx",
      "testPath": "components/radio/Radio.test.tsx",
      "figmaPath": "components/radio/Radio.figma.tsx",
      "cssPath": "components/radio/radio.css"
    },
    {
      "name": "Switch",
      "slug": "switch",
      "purpose": "Binary toggle control for on/off settings.",
      "exportPath": "@moodlehq/design-system/components/switch",
      "implementationPath": "components/switch/Switch.tsx",
      "storyPath": "components/switch/Switch.stories.tsx",
      "testPath": "components/switch/Switch.test.tsx",
      "figmaPath": "components/switch/Switch.figma.tsx",
      "cssPath": "components/switch/switch.css"
    },
    {
      "name": "Tag",
      "slug": "tag",
      "purpose": "Compact removable or link token for labelling, categorising, or representing a selected value (person or otherwise). Nests Avatar and CloseButton rather than redrawing either.",
      "exportPath": "@moodlehq/design-system/components/tag",
      "implementationPath": "components/tag/Tag.tsx",
      "storyPath": "components/tag/Tag.stories.tsx",
      "testPath": "components/tag/Tag.test.tsx",
      "figmaPath": "components/tag/Tag.figma.tsx",
      "cssPath": "components/tag/tag.css"
    },
    {
      "name": "Textarea",
      "slug": "textarea",
      "purpose": "Multi-line plain-text input with label, placeholder, supporting text, character counter, and validation feedback. Not a rich text editor: for formatting, links, or media use Moodle's editor (not provided by MDS), and use Input for single-line values.",
      "exportPath": "@moodlehq/design-system/components/textarea",
      "implementationPath": "components/textarea/Textarea.tsx",
      "storyPath": "components/textarea/Textarea.stories.tsx",
      "testPath": "components/textarea/Textarea.test.tsx",
      "figmaPath": "components/textarea/Textarea.figma.tsx",
      "cssPath": "components/textarea/textarea.css"
    },
    {
      "name": "Tooltip",
      "slug": "tooltip",
      "purpose": "Contextual label anchored to a trigger element.",
      "exportPath": "@moodlehq/design-system/components/tooltip",
      "implementationPath": "components/tooltip/Tooltip.tsx",
      "storyPath": "components/tooltip/Tooltip.stories.tsx",
      "testPath": "components/tooltip/Tooltip.test.tsx",
      "figmaPath": "components/tooltip/Tooltip.figma.tsx",
      "cssPath": "components/tooltip/tooltip.css"
    }
  ]
}
