@momentum-design/components 0.134.15 → 0.134.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +1,6 @@
1
1
  import type { CSSResult, PropertyValues } from 'lit';
2
2
  import AccordionButton from '../accordionbutton/accordionbutton.component';
3
3
  /**
4
- * An accordion is a vertically stacked component with a header and expandable/collapsible body section.
5
- * The header displays a prefix icon, header text, optional control slots (leading and trailing), and a dedicated expand/collapse button.
6
- * Unlike `accordionbutton`, only the expand/collapse button is clickable and not the entire header.
7
- *
8
- * ## Header contains
9
- * - Optional prefix icon
10
- * - Header text (default H3, customizable via `data-aria-level`)
11
- * - Leading slot for controls (placed after header text)
12
- * - Trailing slot for controls (placed before expand/collapse button)
13
- * - Expand/collapse button (automatically positioned at the end)
14
- *
15
- * ## Body contains
16
- * - Default slot for any content
17
- *
18
- * The accordion supports different border styles through the `variant` attribute and different spacing through the `size` attribute.
19
- * An accordion can be disabled, which prevents all interactions including the expand/collapse button and any slotted controls.
20
- *
21
- * ## When to use
22
- * - Use `mdc-accordion` when you need additional interactive controls (chips, badges, buttons, icons) in the header.
23
- * - Use `mdc-accordionbutton` if you only need a simple clickable header without extra controls.
24
- *
25
- * ## Accessibility
26
- * - Always provide `open-button-aria-label` and `close-button-aria-label` for screen reader support
27
- * - Adjust `data-aria-level` based on heading hierarchy in your page
28
- * - Note: Screen readers may lose focus when toggling if accordion is expanded by default
29
- *
30
4
  * @tagname mdc-accordion
31
5
  *
32
6
  * @dependency mdc-button
@@ -16,32 +16,6 @@ import { TOGGLE_POSITION } from '../accordionbutton/accordionbutton.constants';
16
16
  import { BUTTON_VARIANTS, ICON_BUTTON_SIZES } from '../button/button.constants';
17
17
  import styles from './accordion.styles';
18
18
  /**
19
- * An accordion is a vertically stacked component with a header and expandable/collapsible body section.
20
- * The header displays a prefix icon, header text, optional control slots (leading and trailing), and a dedicated expand/collapse button.
21
- * Unlike `accordionbutton`, only the expand/collapse button is clickable and not the entire header.
22
- *
23
- * ## Header contains
24
- * - Optional prefix icon
25
- * - Header text (default H3, customizable via `data-aria-level`)
26
- * - Leading slot for controls (placed after header text)
27
- * - Trailing slot for controls (placed before expand/collapse button)
28
- * - Expand/collapse button (automatically positioned at the end)
29
- *
30
- * ## Body contains
31
- * - Default slot for any content
32
- *
33
- * The accordion supports different border styles through the `variant` attribute and different spacing through the `size` attribute.
34
- * An accordion can be disabled, which prevents all interactions including the expand/collapse button and any slotted controls.
35
- *
36
- * ## When to use
37
- * - Use `mdc-accordion` when you need additional interactive controls (chips, badges, buttons, icons) in the header.
38
- * - Use `mdc-accordionbutton` if you only need a simple clickable header without extra controls.
39
- *
40
- * ## Accessibility
41
- * - Always provide `open-button-aria-label` and `close-button-aria-label` for screen reader support
42
- * - Adjust `data-aria-level` based on heading hierarchy in your page
43
- * - Note: Screen readers may lose focus when toggling if accordion is expanded by default
44
- *
45
19
  * @tagname mdc-accordion
46
20
  *
47
21
  * @dependency mdc-button
@@ -8,7 +8,7 @@
8
8
  "declarations": [
9
9
  {
10
10
  "kind": "class",
11
- "description": "An accordion is a vertically stacked component with a header and expandable/collapsible body section.\nThe header displays a prefix icon, header text, optional control slots (leading and trailing), and a dedicated expand/collapse button.\nUnlike `accordionbutton`, only the expand/collapse button is clickable and not the entire header.\n\n## Header contains\n- Optional prefix icon\n- Header text (default H3, customizable via `data-aria-level`)\n- Leading slot for controls (placed after header text)\n- Trailing slot for controls (placed before expand/collapse button)\n- Expand/collapse button (automatically positioned at the end)\n\n## Body contains\n- Default slot for any content\n\nThe accordion supports different border styles through the `variant` attribute and different spacing through the `size` attribute.\nAn accordion can be disabled, which prevents all interactions including the expand/collapse button and any slotted controls.\n\n## When to use\n- Use `mdc-accordion` when you need additional interactive controls (chips, badges, buttons, icons) in the header.\n- Use `mdc-accordionbutton` if you only need a simple clickable header without extra controls.\n\n## Accessibility\n- Always provide `open-button-aria-label` and `close-button-aria-label` for screen reader support\n- Adjust `data-aria-level` based on heading hierarchy in your page\n- Note: Screen readers may lose focus when toggling if accordion is expanded by default",
11
+ "description": "",
12
12
  "name": "Accordion",
13
13
  "cssProperties": [
14
14
  {
@@ -592,7 +592,7 @@
592
592
  "module": "/src/components/accordionbutton/accordionbutton.component"
593
593
  },
594
594
  "tagName": "mdc-accordion",
595
- "jsDoc": "/**\n * An accordion is a vertically stacked component with a header and expandable/collapsible body section.\n * The header displays a prefix icon, header text, optional control slots (leading and trailing), and a dedicated expand/collapse button.\n * Unlike `accordionbutton`, only the expand/collapse button is clickable and not the entire header.\n *\n * ## Header contains\n * - Optional prefix icon\n * - Header text (default H3, customizable via `data-aria-level`)\n * - Leading slot for controls (placed after header text)\n * - Trailing slot for controls (placed before expand/collapse button)\n * - Expand/collapse button (automatically positioned at the end)\n *\n * ## Body contains\n * - Default slot for any content\n *\n * The accordion supports different border styles through the `variant` attribute and different spacing through the `size` attribute.\n * An accordion can be disabled, which prevents all interactions including the expand/collapse button and any slotted controls.\n *\n * ## When to use\n * - Use `mdc-accordion` when you need additional interactive controls (chips, badges, buttons, icons) in the header.\n * - Use `mdc-accordionbutton` if you only need a simple clickable header without extra controls.\n *\n * ## Accessibility\n * - Always provide `open-button-aria-label` and `close-button-aria-label` for screen reader support\n * - Adjust `data-aria-level` based on heading hierarchy in your page\n * - Note: Screen readers may lose focus when toggling if accordion is expanded by default\n *\n * @tagname mdc-accordion\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @slot leading-header-text - The leading header text slot of the accordion on the header section. Placed after the prefix icon.\n * @slot leading-controls - The leading controls slot of the accordion on the header section. Placed after the header text.\n * @slot trailing-controls - The trailing controls slot of the accordion on the header section. Placed before the expand/collapse button.\n * @slot default - The default slot contains the body section of the accordion. User can place anything inside this body slot.\n *\n * @event shown - (React: onShown) This event is triggered when the accordion is toggled (expanded or collapsed).\n *\n * @cssproperty --mdc-accordionbutton-border-color - The border color of the accordion.\n * @cssproperty --mdc-accordionbutton-disabled-color - The disabled text color of the accordion.\n *\n * @csspart body-section - The body section of the accordion.\n * @csspart header-section - The header section of the accordion.\n * @csspart leading-header - The leading header of the accordion.\n * @csspart leading-header-text - The leading header text of the accordion button.\n * @csspart trailing-header - The trailing header of the accordion.\n * @csspart toggle-button - The expand/collapse toggle button of the accordion.\n */",
595
+ "jsDoc": "/**\n * @tagname mdc-accordion\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @slot leading-header-text - The leading header text slot of the accordion on the header section. Placed after the prefix icon.\n * @slot leading-controls - The leading controls slot of the accordion on the header section. Placed after the header text.\n * @slot trailing-controls - The trailing controls slot of the accordion on the header section. Placed before the expand/collapse button.\n * @slot default - The default slot contains the body section of the accordion. User can place anything inside this body slot.\n *\n * @event shown - (React: onShown) This event is triggered when the accordion is toggled (expanded or collapsed).\n *\n * @cssproperty --mdc-accordionbutton-border-color - The border color of the accordion.\n * @cssproperty --mdc-accordionbutton-disabled-color - The disabled text color of the accordion.\n *\n * @csspart body-section - The body section of the accordion.\n * @csspart header-section - The header section of the accordion.\n * @csspart leading-header - The leading header of the accordion.\n * @csspart leading-header-text - The leading header text of the accordion button.\n * @csspart trailing-header - The trailing header of the accordion.\n * @csspart toggle-button - The expand/collapse toggle button of the accordion.\n */",
596
596
  "customElement": true
597
597
  }
598
598
  ],
@@ -2,32 +2,6 @@ import { type EventName } from '@lit/react';
2
2
  import Component from '../../components/accordion';
3
3
  import type { Events as EventsInherited } from '../../components/accordionbutton/accordionbutton.types';
4
4
  /**
5
- * An accordion is a vertically stacked component with a header and expandable/collapsible body section.
6
- * The header displays a prefix icon, header text, optional control slots (leading and trailing), and a dedicated expand/collapse button.
7
- * Unlike `accordionbutton`, only the expand/collapse button is clickable and not the entire header.
8
- *
9
- * ## Header contains
10
- * - Optional prefix icon
11
- * - Header text (default H3, customizable via `data-aria-level`)
12
- * - Leading slot for controls (placed after header text)
13
- * - Trailing slot for controls (placed before expand/collapse button)
14
- * - Expand/collapse button (automatically positioned at the end)
15
- *
16
- * ## Body contains
17
- * - Default slot for any content
18
- *
19
- * The accordion supports different border styles through the `variant` attribute and different spacing through the `size` attribute.
20
- * An accordion can be disabled, which prevents all interactions including the expand/collapse button and any slotted controls.
21
- *
22
- * ## When to use
23
- * - Use `mdc-accordion` when you need additional interactive controls (chips, badges, buttons, icons) in the header.
24
- * - Use `mdc-accordionbutton` if you only need a simple clickable header without extra controls.
25
- *
26
- * ## Accessibility
27
- * - Always provide `open-button-aria-label` and `close-button-aria-label` for screen reader support
28
- * - Adjust `data-aria-level` based on heading hierarchy in your page
29
- * - Note: Screen readers may lose focus when toggling if accordion is expanded by default
30
- *
31
5
  * @tagname mdc-accordion
32
6
  *
33
7
  * @dependency mdc-button
@@ -3,32 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/accordion';
4
4
  import { TAG_NAME } from '../../components/accordion/accordion.constants';
5
5
  /**
6
- * An accordion is a vertically stacked component with a header and expandable/collapsible body section.
7
- * The header displays a prefix icon, header text, optional control slots (leading and trailing), and a dedicated expand/collapse button.
8
- * Unlike `accordionbutton`, only the expand/collapse button is clickable and not the entire header.
9
- *
10
- * ## Header contains
11
- * - Optional prefix icon
12
- * - Header text (default H3, customizable via `data-aria-level`)
13
- * - Leading slot for controls (placed after header text)
14
- * - Trailing slot for controls (placed before expand/collapse button)
15
- * - Expand/collapse button (automatically positioned at the end)
16
- *
17
- * ## Body contains
18
- * - Default slot for any content
19
- *
20
- * The accordion supports different border styles through the `variant` attribute and different spacing through the `size` attribute.
21
- * An accordion can be disabled, which prevents all interactions including the expand/collapse button and any slotted controls.
22
- *
23
- * ## When to use
24
- * - Use `mdc-accordion` when you need additional interactive controls (chips, badges, buttons, icons) in the header.
25
- * - Use `mdc-accordionbutton` if you only need a simple clickable header without extra controls.
26
- *
27
- * ## Accessibility
28
- * - Always provide `open-button-aria-label` and `close-button-aria-label` for screen reader support
29
- * - Adjust `data-aria-level` based on heading hierarchy in your page
30
- * - Note: Screen readers may lose focus when toggling if accordion is expanded by default
31
- *
32
6
  * @tagname mdc-accordion
33
7
  *
34
8
  * @dependency mdc-button
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@momentum-design/components",
3
3
  "packageManager": "yarn@3.2.4",
4
- "version": "0.134.15",
4
+ "version": "0.134.16",
5
5
  "engines": {
6
6
  "node": ">=20.0.0",
7
7
  "npm": ">=8.0.0"