@momentum-design/components 0.127.1 → 0.127.2

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.
@@ -4,7 +4,7 @@ import type { IconNames } from '../icon/icon.types';
4
4
  /**
5
5
  * `mdc-menusection` is a container element used to group a set of menu items.
6
6
  *
7
- * This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components.
7
+ * This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components. MenuSection can not be nested.
8
8
  *
9
9
  * - If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:
10
10
  * only one radio item can be selected at a time.
@@ -19,7 +19,7 @@ import { DEFAULTS } from './menusection.constants';
19
19
  /**
20
20
  * `mdc-menusection` is a container element used to group a set of menu items.
21
21
  *
22
- * This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components.
22
+ * This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components. MenuSection can not be nested.
23
23
  *
24
24
  * - If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:
25
25
  * only one radio item can be selected at a time.
@@ -29168,7 +29168,7 @@
29168
29168
  "declarations": [
29169
29169
  {
29170
29170
  "kind": "class",
29171
- "description": "`mdc-menusection` is a container element used to group a set of menu items.\n\nThis component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components.\n\n- If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:\n only one radio item can be selected at a time.\n- If `menuitemcheckbox` components are included, their checked state can be toggled independently.",
29171
+ "description": "`mdc-menusection` is a container element used to group a set of menu items.\n\nThis component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components. MenuSection can not be nested.\n\n- If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:\n only one radio item can be selected at a time.\n- If `menuitemcheckbox` components are included, their checked state can be toggled independently.",
29172
29172
  "name": "MenuSection",
29173
29173
  "cssProperties": [
29174
29174
  {
@@ -29329,7 +29329,7 @@
29329
29329
  "module": "/src/models"
29330
29330
  },
29331
29331
  "tagName": "mdc-menusection",
29332
- "jsDoc": "/**\n * `mdc-menusection` is a container element used to group a set of menu items.\n *\n * This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components.\n *\n * - If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:\n * only one radio item can be selected at a time.\n * - If `menuitemcheckbox` components are included, their checked state can be toggled independently.\n *\n * @tagname mdc-menusection\n *\n * @slot - Default slot for inserting `menuitem`, `menuitemcheckbox`, or `menuitemradio`\n *\n * @event change - (React: onChange) This event is dispatched when a `menuitemcheckbox`, or `menuitemradio` changes.\n * @event action - (React: onAction) This event is dispatched when a `menuitem` selected.\n *\n * @csspart header - The header of the menusection.\n * @csspart align-header - The header of the menusection when it is aligned to the start.\n * @csspart container - The container of the menusection.\n * @csspart divider - The divider of the menusection.\n *\n * @cssproperty --mdc-menusection-divider-margin-block - Sets the margin block of the divider.\n * @cssproperty --mdc-menusection-gap - Sets the gap between items in the menusection.\n * @cssproperty --mdc-menusection-divider-width - Sets the width of the divider.\n * @cssproperty --mdc-menusection-header-padding - Sets the padding of the header, if present.\n */",
29332
+ "jsDoc": "/**\n * `mdc-menusection` is a container element used to group a set of menu items.\n *\n * This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components. MenuSection can not be nested.\n *\n * - If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:\n * only one radio item can be selected at a time.\n * - If `menuitemcheckbox` components are included, their checked state can be toggled independently.\n *\n * @tagname mdc-menusection\n *\n * @slot - Default slot for inserting `menuitem`, `menuitemcheckbox`, or `menuitemradio`\n *\n * @event change - (React: onChange) This event is dispatched when a `menuitemcheckbox`, or `menuitemradio` changes.\n * @event action - (React: onAction) This event is dispatched when a `menuitem` selected.\n *\n * @csspart header - The header of the menusection.\n * @csspart align-header - The header of the menusection when it is aligned to the start.\n * @csspart container - The container of the menusection.\n * @csspart divider - The divider of the menusection.\n *\n * @cssproperty --mdc-menusection-divider-margin-block - Sets the margin block of the divider.\n * @cssproperty --mdc-menusection-gap - Sets the gap between items in the menusection.\n * @cssproperty --mdc-menusection-divider-width - Sets the width of the divider.\n * @cssproperty --mdc-menusection-header-padding - Sets the padding of the header, if present.\n */",
29333
29333
  "customElement": true
29334
29334
  }
29335
29335
  ],
@@ -46674,116 +46674,6 @@
46674
46674
  }
46675
46675
  ]
46676
46676
  },
46677
- {
46678
- "kind": "javascript-module",
46679
- "path": "components/themeprovider/themeprovider.component.js",
46680
- "declarations": [
46681
- {
46682
- "kind": "class",
46683
- "description": "ThemeProvider component, which sets the passed in themeclass as class.\nIf the themeclass switches, the existing themeclass will be removed as a class\nand the new themeclass will be added.\n\nCSS variables defined in the themeclass will be used for the styling of child dom nodes.\n\nAvailable Momentum theme classes:\n\n`mds-theme-stable-darkWebex`, `mds-theme-stable-lightWebex`\n\n`mds-theme-stable-darkBronzeWebex`, `mds-theme-stable-lightBronzeWebex`\n\n`mds-theme-stable-darkIndigoWebex`, `mds-theme-stable-lightIndigoWebex`\n\n`mds-theme-stable-darkJadeWebex`, `mds-theme-stable-lightJadeWebex`\n\n`mds-theme-stable-darkLavenderWebex`, `mds-theme-stable-lightLavenderWebex`\n\n`mds-theme-stable-darkRoseWebex`, `mds-theme-stable-lightRoseWebex`\n\nThemeclass context can be be consumed from Lit child components\n(see providerUtils.consume for how to consume)\n\nThemeProvider also includes basic font defaults for text.",
46684
- "name": "ThemeProvider",
46685
- "cssProperties": [
46686
- {
46687
- "description": "Option to override the default color, default: color-theme-text-primary-normal",
46688
- "name": "--mdc-themeprovider-color-default"
46689
- },
46690
- {
46691
- "description": "Option to override the font family, default: `Momentum` (from momentum-design/fonts)",
46692
- "name": "--mdc-themeprovider-font-family"
46693
- },
46694
- {
46695
- "description": "Option to override the font weight, default: `400`",
46696
- "name": "--mdc-themeprovider-font-weight"
46697
- },
46698
- {
46699
- "description": "Option to override the default letter-spacing, default: `-0.25px` (this is to match the old CiscoSans)",
46700
- "name": "--mdc-themeprovider-letter-spacing-adjustment"
46701
- },
46702
- {
46703
- "description": "Option to override the font feature settings, default: `\"ss02\" on`",
46704
- "name": "--mdc-themeprovider-font-feature-settings"
46705
- },
46706
- {
46707
- "description": "Option to override the color of the scrollbar track.",
46708
- "name": "--mdc-themeprovider-scrollbar-track-color"
46709
- },
46710
- {
46711
- "description": "Option to override the color of the scrollbar thumb.",
46712
- "name": "--mdc-themeprovider-scrollbar-thumb-color"
46713
- }
46714
- ],
46715
- "slots": [
46716
- {
46717
- "description": "children",
46718
- "name": ""
46719
- }
46720
- ],
46721
- "members": [
46722
- {
46723
- "kind": "field",
46724
- "name": "Context",
46725
- "privacy": "public",
46726
- "static": true,
46727
- "description": "Context object of the ThemeProvider, to be consumed by child components",
46728
- "readonly": true
46729
- },
46730
- {
46731
- "kind": "field",
46732
- "name": "themeclass",
46733
- "type": {
46734
- "text": "string"
46735
- },
46736
- "description": "Current theme class\n\nHas to be fully qualified, such that\nthe theme class matches the class of the respective\ntheme stylesheet\n\nDefault: 'mds-theme-stable-darkWebex'",
46737
- "attribute": "themeclass"
46738
- },
46739
- {
46740
- "kind": "method",
46741
- "name": "updateContext",
46742
- "privacy": "protected",
46743
- "return": {
46744
- "type": {
46745
- "text": "void"
46746
- }
46747
- },
46748
- "description": "Update all observing components of this\nprovider to update the themeclass\n\nIs called on every re-render, see Provider class"
46749
- },
46750
- {
46751
- "kind": "method",
46752
- "name": "setThemeInClassList",
46753
- "privacy": "private",
46754
- "description": "Function to update the active theme classnames to update the theme tokens\nas CSS variables on the web component."
46755
- }
46756
- ],
46757
- "attributes": [
46758
- {
46759
- "name": "themeclass",
46760
- "type": {
46761
- "text": "string"
46762
- },
46763
- "description": "Current theme class\n\nHas to be fully qualified, such that\nthe theme class matches the class of the respective\ntheme stylesheet\n\nDefault: 'mds-theme-stable-darkWebex'",
46764
- "fieldName": "themeclass"
46765
- }
46766
- ],
46767
- "superclass": {
46768
- "name": "Provider",
46769
- "module": "/src/models"
46770
- },
46771
- "tagName": "mdc-themeprovider",
46772
- "jsDoc": "/**\n * ThemeProvider component, which sets the passed in themeclass as class.\n * If the themeclass switches, the existing themeclass will be removed as a class\n * and the new themeclass will be added.\n *\n * CSS variables defined in the themeclass will be used for the styling of child dom nodes.\n *\n * Available Momentum theme classes:\n *\n * `mds-theme-stable-darkWebex`, `mds-theme-stable-lightWebex`\n *\n * `mds-theme-stable-darkBronzeWebex`, `mds-theme-stable-lightBronzeWebex`\n *\n * `mds-theme-stable-darkIndigoWebex`, `mds-theme-stable-lightIndigoWebex`\n *\n * `mds-theme-stable-darkJadeWebex`, `mds-theme-stable-lightJadeWebex`\n *\n * `mds-theme-stable-darkLavenderWebex`, `mds-theme-stable-lightLavenderWebex`\n *\n * `mds-theme-stable-darkRoseWebex`, `mds-theme-stable-lightRoseWebex`\n *\n * Themeclass context can be be consumed from Lit child components\n * (see providerUtils.consume for how to consume)\n *\n * ThemeProvider also includes basic font defaults for text.\n *\n * @tagname mdc-themeprovider\n *\n * @slot - children\n *\n * @cssproperty --mdc-themeprovider-color-default - Option to override the default color,\n * default: color-theme-text-primary-normal\n * @cssproperty --mdc-themeprovider-font-family - Option to override the font family,\n * default: `Momentum` (from momentum-design/fonts)\n * @cssproperty --mdc-themeprovider-font-weight - Option to override the font weight, default: `400`\n * @cssproperty --mdc-themeprovider-letter-spacing-adjustment - Option to override the default letter-spacing,\n * default: `-0.25px` (this is to match the old CiscoSans)\n * @cssproperty --mdc-themeprovider-font-feature-settings - Option to override the font feature settings,\n * default: `\"ss02\" on`\n * @cssproperty --mdc-themeprovider-scrollbar-track-color - Option to override the color of the scrollbar track.\n * @cssproperty --mdc-themeprovider-scrollbar-thumb-color - Option to override the color of the scrollbar thumb.\n */",
46773
- "customElement": true
46774
- }
46775
- ],
46776
- "exports": [
46777
- {
46778
- "kind": "js",
46779
- "name": "default",
46780
- "declaration": {
46781
- "name": "ThemeProvider",
46782
- "module": "components/themeprovider/themeprovider.component.js"
46783
- }
46784
- }
46785
- ]
46786
- },
46787
46677
  {
46788
46678
  "kind": "javascript-module",
46789
46679
  "path": "components/textarea/textarea.component.js",
@@ -48026,6 +47916,116 @@
48026
47916
  }
48027
47917
  ]
48028
47918
  },
47919
+ {
47920
+ "kind": "javascript-module",
47921
+ "path": "components/themeprovider/themeprovider.component.js",
47922
+ "declarations": [
47923
+ {
47924
+ "kind": "class",
47925
+ "description": "ThemeProvider component, which sets the passed in themeclass as class.\nIf the themeclass switches, the existing themeclass will be removed as a class\nand the new themeclass will be added.\n\nCSS variables defined in the themeclass will be used for the styling of child dom nodes.\n\nAvailable Momentum theme classes:\n\n`mds-theme-stable-darkWebex`, `mds-theme-stable-lightWebex`\n\n`mds-theme-stable-darkBronzeWebex`, `mds-theme-stable-lightBronzeWebex`\n\n`mds-theme-stable-darkIndigoWebex`, `mds-theme-stable-lightIndigoWebex`\n\n`mds-theme-stable-darkJadeWebex`, `mds-theme-stable-lightJadeWebex`\n\n`mds-theme-stable-darkLavenderWebex`, `mds-theme-stable-lightLavenderWebex`\n\n`mds-theme-stable-darkRoseWebex`, `mds-theme-stable-lightRoseWebex`\n\nThemeclass context can be be consumed from Lit child components\n(see providerUtils.consume for how to consume)\n\nThemeProvider also includes basic font defaults for text.",
47926
+ "name": "ThemeProvider",
47927
+ "cssProperties": [
47928
+ {
47929
+ "description": "Option to override the default color, default: color-theme-text-primary-normal",
47930
+ "name": "--mdc-themeprovider-color-default"
47931
+ },
47932
+ {
47933
+ "description": "Option to override the font family, default: `Momentum` (from momentum-design/fonts)",
47934
+ "name": "--mdc-themeprovider-font-family"
47935
+ },
47936
+ {
47937
+ "description": "Option to override the font weight, default: `400`",
47938
+ "name": "--mdc-themeprovider-font-weight"
47939
+ },
47940
+ {
47941
+ "description": "Option to override the default letter-spacing, default: `-0.25px` (this is to match the old CiscoSans)",
47942
+ "name": "--mdc-themeprovider-letter-spacing-adjustment"
47943
+ },
47944
+ {
47945
+ "description": "Option to override the font feature settings, default: `\"ss02\" on`",
47946
+ "name": "--mdc-themeprovider-font-feature-settings"
47947
+ },
47948
+ {
47949
+ "description": "Option to override the color of the scrollbar track.",
47950
+ "name": "--mdc-themeprovider-scrollbar-track-color"
47951
+ },
47952
+ {
47953
+ "description": "Option to override the color of the scrollbar thumb.",
47954
+ "name": "--mdc-themeprovider-scrollbar-thumb-color"
47955
+ }
47956
+ ],
47957
+ "slots": [
47958
+ {
47959
+ "description": "children",
47960
+ "name": ""
47961
+ }
47962
+ ],
47963
+ "members": [
47964
+ {
47965
+ "kind": "field",
47966
+ "name": "Context",
47967
+ "privacy": "public",
47968
+ "static": true,
47969
+ "description": "Context object of the ThemeProvider, to be consumed by child components",
47970
+ "readonly": true
47971
+ },
47972
+ {
47973
+ "kind": "field",
47974
+ "name": "themeclass",
47975
+ "type": {
47976
+ "text": "string"
47977
+ },
47978
+ "description": "Current theme class\n\nHas to be fully qualified, such that\nthe theme class matches the class of the respective\ntheme stylesheet\n\nDefault: 'mds-theme-stable-darkWebex'",
47979
+ "attribute": "themeclass"
47980
+ },
47981
+ {
47982
+ "kind": "method",
47983
+ "name": "updateContext",
47984
+ "privacy": "protected",
47985
+ "return": {
47986
+ "type": {
47987
+ "text": "void"
47988
+ }
47989
+ },
47990
+ "description": "Update all observing components of this\nprovider to update the themeclass\n\nIs called on every re-render, see Provider class"
47991
+ },
47992
+ {
47993
+ "kind": "method",
47994
+ "name": "setThemeInClassList",
47995
+ "privacy": "private",
47996
+ "description": "Function to update the active theme classnames to update the theme tokens\nas CSS variables on the web component."
47997
+ }
47998
+ ],
47999
+ "attributes": [
48000
+ {
48001
+ "name": "themeclass",
48002
+ "type": {
48003
+ "text": "string"
48004
+ },
48005
+ "description": "Current theme class\n\nHas to be fully qualified, such that\nthe theme class matches the class of the respective\ntheme stylesheet\n\nDefault: 'mds-theme-stable-darkWebex'",
48006
+ "fieldName": "themeclass"
48007
+ }
48008
+ ],
48009
+ "superclass": {
48010
+ "name": "Provider",
48011
+ "module": "/src/models"
48012
+ },
48013
+ "tagName": "mdc-themeprovider",
48014
+ "jsDoc": "/**\n * ThemeProvider component, which sets the passed in themeclass as class.\n * If the themeclass switches, the existing themeclass will be removed as a class\n * and the new themeclass will be added.\n *\n * CSS variables defined in the themeclass will be used for the styling of child dom nodes.\n *\n * Available Momentum theme classes:\n *\n * `mds-theme-stable-darkWebex`, `mds-theme-stable-lightWebex`\n *\n * `mds-theme-stable-darkBronzeWebex`, `mds-theme-stable-lightBronzeWebex`\n *\n * `mds-theme-stable-darkIndigoWebex`, `mds-theme-stable-lightIndigoWebex`\n *\n * `mds-theme-stable-darkJadeWebex`, `mds-theme-stable-lightJadeWebex`\n *\n * `mds-theme-stable-darkLavenderWebex`, `mds-theme-stable-lightLavenderWebex`\n *\n * `mds-theme-stable-darkRoseWebex`, `mds-theme-stable-lightRoseWebex`\n *\n * Themeclass context can be be consumed from Lit child components\n * (see providerUtils.consume for how to consume)\n *\n * ThemeProvider also includes basic font defaults for text.\n *\n * @tagname mdc-themeprovider\n *\n * @slot - children\n *\n * @cssproperty --mdc-themeprovider-color-default - Option to override the default color,\n * default: color-theme-text-primary-normal\n * @cssproperty --mdc-themeprovider-font-family - Option to override the font family,\n * default: `Momentum` (from momentum-design/fonts)\n * @cssproperty --mdc-themeprovider-font-weight - Option to override the font weight, default: `400`\n * @cssproperty --mdc-themeprovider-letter-spacing-adjustment - Option to override the default letter-spacing,\n * default: `-0.25px` (this is to match the old CiscoSans)\n * @cssproperty --mdc-themeprovider-font-feature-settings - Option to override the font feature settings,\n * default: `\"ss02\" on`\n * @cssproperty --mdc-themeprovider-scrollbar-track-color - Option to override the color of the scrollbar track.\n * @cssproperty --mdc-themeprovider-scrollbar-thumb-color - Option to override the color of the scrollbar thumb.\n */",
48015
+ "customElement": true
48016
+ }
48017
+ ],
48018
+ "exports": [
48019
+ {
48020
+ "kind": "js",
48021
+ "name": "default",
48022
+ "declaration": {
48023
+ "name": "ThemeProvider",
48024
+ "module": "components/themeprovider/themeprovider.component.js"
48025
+ }
48026
+ }
48027
+ ]
48028
+ },
48029
48029
  {
48030
48030
  "kind": "javascript-module",
48031
48031
  "path": "components/toast/toast.component.js",
@@ -79,8 +79,8 @@ export { default as StepperItem } from './stepperitem';
79
79
  export { default as Tab } from './tab';
80
80
  export { default as TabList } from './tablist';
81
81
  export { default as Text } from './text';
82
- export { default as ThemeProvider } from './themeprovider';
83
82
  export { default as Textarea } from './textarea';
83
+ export { default as ThemeProvider } from './themeprovider';
84
84
  export { default as Toast } from './toast';
85
85
  export { default as Toggle } from './toggle';
86
86
  export { default as ToggleTip } from './toggletip';
@@ -79,8 +79,8 @@ export { default as StepperItem } from './stepperitem';
79
79
  export { default as Tab } from './tab';
80
80
  export { default as TabList } from './tablist';
81
81
  export { default as Text } from './text';
82
- export { default as ThemeProvider } from './themeprovider';
83
82
  export { default as Textarea } from './textarea';
83
+ export { default as ThemeProvider } from './themeprovider';
84
84
  export { default as Toast } from './toast';
85
85
  export { default as Toggle } from './toggle';
86
86
  export { default as ToggleTip } from './toggletip';
@@ -4,7 +4,7 @@ import type { Events } from '../../components/menusection/menusection.types';
4
4
  /**
5
5
  * `mdc-menusection` is a container element used to group a set of menu items.
6
6
  *
7
- * This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components.
7
+ * This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components. MenuSection can not be nested.
8
8
  *
9
9
  * - If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:
10
10
  * only one radio item can be selected at a time.
@@ -5,7 +5,7 @@ import { TAG_NAME } from '../../components/menusection/menusection.constants';
5
5
  /**
6
6
  * `mdc-menusection` is a container element used to group a set of menu items.
7
7
  *
8
- * This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components.
8
+ * This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components. MenuSection can not be nested.
9
9
  *
10
10
  * - If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:
11
11
  * only one radio item can be selected at a time.
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.127.1",
4
+ "version": "0.127.2",
5
5
  "engines": {
6
6
  "node": ">=20.0.0",
7
7
  "npm": ">=8.0.0"