@vectoriox/iox-ui 5.36.0 → 5.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5519,8 +5519,10 @@ const COMPONENT_STATE_SELECTOR = {
5519
5519
  [ComponentState.Current]: '[aria-current="page"]',
5520
5520
  [ComponentState.On]: '[data-iox-on]',
5521
5521
  };
5522
- /** The composite roles that are themselves "on" when their item is open (they carry `data-iox-on`). */
5523
- const ON_STATE_ROLES = ['accordion.item', 'accordion.trigger', 'accordion.panel'];
5522
+ /** The composite roles that are themselves "on" when their item is open (they carry `data-iox-on`): an accordion's
5523
+ * item, header and panel; a disclosure (its own item), its toggle and its panel (CC2.1). The main entry does not
5524
+ * import composite-core, so the roles are spelled here — `style-compiler.spec` pins them to its enums. */
5525
+ const ON_STATE_ROLES = ['accordion.item', 'accordion.trigger', 'accordion.panel', 'disclosure', 'disclosure.trigger', 'disclosure.panel'];
5524
5526
  /**
5525
5527
  * The component states a node offers in the Style panel's "Component state" group: Current page (a link),
5526
5528
  * Open (an accordion's item, header or panel), Item open (any other part inside an item — `insideItem`).