@momentum-design/components 0.96.1 → 0.96.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.
- package/dist/browser/index.js +74 -74
- package/dist/browser/index.js.map +4 -4
- package/dist/components/button/button.component.d.ts +2 -1
- package/dist/components/button/button.component.js +3 -2
- package/dist/components/button/button.constants.d.ts +6 -6
- package/dist/components/buttongroup/buttongroup.constants.d.ts +3 -3
- package/dist/components/buttonsimple/buttonsimple.component.d.ts +2 -1
- package/dist/components/buttonsimple/buttonsimple.component.js +3 -3
- package/dist/components/buttonsimple/buttonsimple.constants.d.ts +4 -4
- package/dist/components/buttonsimple/buttonsimple.constants.js +2 -1
- package/dist/components/card/card.constants.d.ts +9 -9
- package/dist/components/cardcheckbox/cardcheckbox.constants.d.ts +3 -3
- package/dist/components/chip/chip.constants.d.ts +5 -5
- package/dist/components/chip/chip.constants.js +2 -1
- package/dist/components/coachmark/coachmark.constants.d.ts +5 -5
- package/dist/components/filterchip/filterchip.constants.d.ts +2 -2
- package/dist/components/formfieldwrapper/formfieldwrapper.constants.d.ts +3 -3
- package/dist/components/input/input.constants.d.ts +10 -10
- package/dist/components/inputchip/inputchip.constants.d.ts +3 -3
- package/dist/components/link/link.constants.d.ts +1 -1
- package/dist/components/linkbutton/linkbutton.constants.d.ts +4 -4
- package/dist/components/linksimple/linksimple.constants.d.ts +2 -2
- package/dist/components/menubar/menubar.constants.d.ts +1 -1
- package/dist/components/menupopover/menupopover.constants.d.ts +2 -2
- package/dist/components/searchfield/searchfield.constants.d.ts +4 -4
- package/dist/components/skeleton/skeleton.constants.d.ts +1 -1
- package/dist/components/spinner/spinner.component.d.ts +1 -1
- package/dist/components/spinner/spinner.constants.d.ts +3 -3
- package/dist/components/statictoggle/statictoggle.constants.d.ts +1 -1
- package/dist/components/textarea/textarea.component.d.ts +2 -2
- package/dist/components/textarea/textarea.constants.d.ts +4 -4
- package/dist/components/toggletip/toggletip.constants.d.ts +6 -6
- package/dist/components/tooltip/tooltip.constants.d.ts +6 -6
- package/dist/components/virtualizedlist/virtualizedlist.constants.d.ts +3 -3
- package/dist/custom-elements.json +166 -118
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
@@ -152,6 +152,9 @@
|
|
152
152
|
{
|
153
153
|
"kind": "field",
|
154
154
|
"name": "role",
|
155
|
+
"type": {
|
156
|
+
"text": "RoleType"
|
157
|
+
},
|
155
158
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
156
159
|
"default": "button",
|
157
160
|
"attribute": "role",
|
@@ -437,6 +440,9 @@
|
|
437
440
|
},
|
438
441
|
{
|
439
442
|
"name": "role",
|
443
|
+
"type": {
|
444
|
+
"text": "RoleType"
|
445
|
+
},
|
440
446
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
441
447
|
"default": "button",
|
442
448
|
"fieldName": "role",
|
@@ -1313,6 +1319,9 @@
|
|
1313
1319
|
{
|
1314
1320
|
"kind": "field",
|
1315
1321
|
"name": "role",
|
1322
|
+
"type": {
|
1323
|
+
"text": "RoleType"
|
1324
|
+
},
|
1316
1325
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
1317
1326
|
"default": "button",
|
1318
1327
|
"attribute": "role",
|
@@ -1700,6 +1709,9 @@
|
|
1700
1709
|
},
|
1701
1710
|
{
|
1702
1711
|
"name": "role",
|
1712
|
+
"type": {
|
1713
|
+
"text": "RoleType"
|
1714
|
+
},
|
1703
1715
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
1704
1716
|
"default": "button",
|
1705
1717
|
"fieldName": "role",
|
@@ -2305,13 +2317,13 @@
|
|
2305
2317
|
{
|
2306
2318
|
"kind": "field",
|
2307
2319
|
"name": "role",
|
2320
|
+
"type": {
|
2321
|
+
"text": "RoleType"
|
2322
|
+
},
|
2308
2323
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
2309
|
-
"default": "
|
2324
|
+
"default": "button",
|
2310
2325
|
"attribute": "role",
|
2311
2326
|
"reflects": true,
|
2312
|
-
"type": {
|
2313
|
-
"text": "string"
|
2314
|
-
},
|
2315
2327
|
"inheritedFrom": {
|
2316
2328
|
"name": "Buttonsimple",
|
2317
2329
|
"module": "components/buttonsimple/buttonsimple.component.js"
|
@@ -2739,12 +2751,12 @@
|
|
2739
2751
|
},
|
2740
2752
|
{
|
2741
2753
|
"name": "role",
|
2742
|
-
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
2743
|
-
"default": "'button'",
|
2744
|
-
"fieldName": "role",
|
2745
2754
|
"type": {
|
2746
|
-
"text": "
|
2755
|
+
"text": "RoleType"
|
2747
2756
|
},
|
2757
|
+
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
2758
|
+
"default": "button",
|
2759
|
+
"fieldName": "role",
|
2748
2760
|
"inheritedFrom": {
|
2749
2761
|
"name": "Buttonsimple",
|
2750
2762
|
"module": "src/components/buttonsimple/buttonsimple.component.ts"
|
@@ -3747,6 +3759,9 @@
|
|
3747
3759
|
{
|
3748
3760
|
"kind": "field",
|
3749
3761
|
"name": "role",
|
3762
|
+
"type": {
|
3763
|
+
"text": "RoleType"
|
3764
|
+
},
|
3750
3765
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
3751
3766
|
"default": "button",
|
3752
3767
|
"attribute": "role",
|
@@ -3986,6 +4001,9 @@
|
|
3986
4001
|
},
|
3987
4002
|
{
|
3988
4003
|
"name": "role",
|
4004
|
+
"type": {
|
4005
|
+
"text": "RoleType"
|
4006
|
+
},
|
3989
4007
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
3990
4008
|
"default": "button",
|
3991
4009
|
"fieldName": "role"
|
@@ -4793,6 +4811,9 @@
|
|
4793
4811
|
{
|
4794
4812
|
"kind": "field",
|
4795
4813
|
"name": "role",
|
4814
|
+
"type": {
|
4815
|
+
"text": "RoleType"
|
4816
|
+
},
|
4796
4817
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
4797
4818
|
"default": "button",
|
4798
4819
|
"attribute": "role",
|
@@ -5227,6 +5248,9 @@
|
|
5227
5248
|
},
|
5228
5249
|
{
|
5229
5250
|
"name": "role",
|
5251
|
+
"type": {
|
5252
|
+
"text": "RoleType"
|
5253
|
+
},
|
5230
5254
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
5231
5255
|
"default": "button",
|
5232
5256
|
"fieldName": "role",
|
@@ -7361,6 +7385,9 @@
|
|
7361
7385
|
{
|
7362
7386
|
"kind": "field",
|
7363
7387
|
"name": "role",
|
7388
|
+
"type": {
|
7389
|
+
"text": "RoleType"
|
7390
|
+
},
|
7364
7391
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
7365
7392
|
"default": "button",
|
7366
7393
|
"attribute": "role",
|
@@ -7658,6 +7685,9 @@
|
|
7658
7685
|
},
|
7659
7686
|
{
|
7660
7687
|
"name": "role",
|
7688
|
+
"type": {
|
7689
|
+
"text": "RoleType"
|
7690
|
+
},
|
7661
7691
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
7662
7692
|
"default": "button",
|
7663
7693
|
"fieldName": "role",
|
@@ -11096,6 +11126,9 @@
|
|
11096
11126
|
{
|
11097
11127
|
"kind": "field",
|
11098
11128
|
"name": "role",
|
11129
|
+
"type": {
|
11130
|
+
"text": "RoleType"
|
11131
|
+
},
|
11099
11132
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
11100
11133
|
"default": "button",
|
11101
11134
|
"attribute": "role",
|
@@ -11401,6 +11434,9 @@
|
|
11401
11434
|
},
|
11402
11435
|
{
|
11403
11436
|
"name": "role",
|
11437
|
+
"type": {
|
11438
|
+
"text": "RoleType"
|
11439
|
+
},
|
11404
11440
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
11405
11441
|
"default": "button",
|
11406
11442
|
"fieldName": "role",
|
@@ -14447,6 +14483,9 @@
|
|
14447
14483
|
{
|
14448
14484
|
"kind": "field",
|
14449
14485
|
"name": "role",
|
14486
|
+
"type": {
|
14487
|
+
"text": "RoleType"
|
14488
|
+
},
|
14450
14489
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
14451
14490
|
"default": "button",
|
14452
14491
|
"attribute": "role",
|
@@ -14782,6 +14821,9 @@
|
|
14782
14821
|
},
|
14783
14822
|
{
|
14784
14823
|
"name": "role",
|
14824
|
+
"type": {
|
14825
|
+
"text": "RoleType"
|
14826
|
+
},
|
14785
14827
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
14786
14828
|
"default": "button",
|
14787
14829
|
"fieldName": "role",
|
@@ -32760,6 +32802,9 @@
|
|
32760
32802
|
{
|
32761
32803
|
"kind": "field",
|
32762
32804
|
"name": "role",
|
32805
|
+
"type": {
|
32806
|
+
"text": "RoleType"
|
32807
|
+
},
|
32763
32808
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
32764
32809
|
"default": "button",
|
32765
32810
|
"attribute": "role",
|
@@ -33072,6 +33117,9 @@
|
|
33072
33117
|
},
|
33073
33118
|
{
|
33074
33119
|
"name": "role",
|
33120
|
+
"type": {
|
33121
|
+
"text": "RoleType"
|
33122
|
+
},
|
33075
33123
|
"description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
|
33076
33124
|
"default": "button",
|
33077
33125
|
"fieldName": "role",
|
@@ -33311,6 +33359,116 @@
|
|
33311
33359
|
}
|
33312
33360
|
]
|
33313
33361
|
},
|
33362
|
+
{
|
33363
|
+
"kind": "javascript-module",
|
33364
|
+
"path": "components/themeprovider/themeprovider.component.js",
|
33365
|
+
"declarations": [
|
33366
|
+
{
|
33367
|
+
"kind": "class",
|
33368
|
+
"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.",
|
33369
|
+
"name": "ThemeProvider",
|
33370
|
+
"cssProperties": [
|
33371
|
+
{
|
33372
|
+
"description": "Option to override the default color, default: color-theme-text-primary-normal",
|
33373
|
+
"name": "--mdc-themeprovider-color-default"
|
33374
|
+
},
|
33375
|
+
{
|
33376
|
+
"description": "Option to override the font family, default: `Momentum` (from momentum-design/fonts)",
|
33377
|
+
"name": "--mdc-themeprovider-font-family"
|
33378
|
+
},
|
33379
|
+
{
|
33380
|
+
"description": "Option to override the font weight, default: `400`",
|
33381
|
+
"name": "--mdc-themeprovider-font-weight"
|
33382
|
+
},
|
33383
|
+
{
|
33384
|
+
"description": "Option to override the default letter-spacing, default: `-0.25px` (this is to match the old CiscoSans)",
|
33385
|
+
"name": "--mdc-themeprovider-letter-spacing-adjustment"
|
33386
|
+
},
|
33387
|
+
{
|
33388
|
+
"description": "Option to override the font feature settings, default: `\"ss02\" on`",
|
33389
|
+
"name": "--mdc-themeprovider-font-feature-settings"
|
33390
|
+
},
|
33391
|
+
{
|
33392
|
+
"description": "Option to override the color of the scrollbar track.",
|
33393
|
+
"name": "--mdc-themeprovider-scrollbar-track-color"
|
33394
|
+
},
|
33395
|
+
{
|
33396
|
+
"description": "Option to override the color of the scrollbar thumb.",
|
33397
|
+
"name": "--mdc-themeprovider-scrollbar-thumb-color"
|
33398
|
+
}
|
33399
|
+
],
|
33400
|
+
"slots": [
|
33401
|
+
{
|
33402
|
+
"description": "children",
|
33403
|
+
"name": ""
|
33404
|
+
}
|
33405
|
+
],
|
33406
|
+
"members": [
|
33407
|
+
{
|
33408
|
+
"kind": "field",
|
33409
|
+
"name": "Context",
|
33410
|
+
"privacy": "public",
|
33411
|
+
"static": true,
|
33412
|
+
"description": "Context object of the ThemeProvider, to be consumed by child components",
|
33413
|
+
"readonly": true
|
33414
|
+
},
|
33415
|
+
{
|
33416
|
+
"kind": "field",
|
33417
|
+
"name": "themeclass",
|
33418
|
+
"type": {
|
33419
|
+
"text": "string"
|
33420
|
+
},
|
33421
|
+
"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'",
|
33422
|
+
"attribute": "themeclass"
|
33423
|
+
},
|
33424
|
+
{
|
33425
|
+
"kind": "method",
|
33426
|
+
"name": "updateContext",
|
33427
|
+
"privacy": "protected",
|
33428
|
+
"return": {
|
33429
|
+
"type": {
|
33430
|
+
"text": "void"
|
33431
|
+
}
|
33432
|
+
},
|
33433
|
+
"description": "Update all observing components of this\nprovider to update the themeclass\n\nIs called on every re-render, see Provider class"
|
33434
|
+
},
|
33435
|
+
{
|
33436
|
+
"kind": "method",
|
33437
|
+
"name": "setThemeInClassList",
|
33438
|
+
"privacy": "private",
|
33439
|
+
"description": "Function to update the active theme classnames to update the theme tokens\nas CSS variables on the web component."
|
33440
|
+
}
|
33441
|
+
],
|
33442
|
+
"attributes": [
|
33443
|
+
{
|
33444
|
+
"name": "themeclass",
|
33445
|
+
"type": {
|
33446
|
+
"text": "string"
|
33447
|
+
},
|
33448
|
+
"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'",
|
33449
|
+
"fieldName": "themeclass"
|
33450
|
+
}
|
33451
|
+
],
|
33452
|
+
"superclass": {
|
33453
|
+
"name": "Provider",
|
33454
|
+
"module": "/src/models"
|
33455
|
+
},
|
33456
|
+
"tagName": "mdc-themeprovider",
|
33457
|
+
"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 */",
|
33458
|
+
"customElement": true
|
33459
|
+
}
|
33460
|
+
],
|
33461
|
+
"exports": [
|
33462
|
+
{
|
33463
|
+
"kind": "js",
|
33464
|
+
"name": "default",
|
33465
|
+
"declaration": {
|
33466
|
+
"name": "ThemeProvider",
|
33467
|
+
"module": "components/themeprovider/themeprovider.component.js"
|
33468
|
+
}
|
33469
|
+
}
|
33470
|
+
]
|
33471
|
+
},
|
33314
33472
|
{
|
33315
33473
|
"kind": "javascript-module",
|
33316
33474
|
"path": "components/textarea/textarea.component.js",
|
@@ -34225,116 +34383,6 @@
|
|
34225
34383
|
}
|
34226
34384
|
]
|
34227
34385
|
},
|
34228
|
-
{
|
34229
|
-
"kind": "javascript-module",
|
34230
|
-
"path": "components/themeprovider/themeprovider.component.js",
|
34231
|
-
"declarations": [
|
34232
|
-
{
|
34233
|
-
"kind": "class",
|
34234
|
-
"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.",
|
34235
|
-
"name": "ThemeProvider",
|
34236
|
-
"cssProperties": [
|
34237
|
-
{
|
34238
|
-
"description": "Option to override the default color, default: color-theme-text-primary-normal",
|
34239
|
-
"name": "--mdc-themeprovider-color-default"
|
34240
|
-
},
|
34241
|
-
{
|
34242
|
-
"description": "Option to override the font family, default: `Momentum` (from momentum-design/fonts)",
|
34243
|
-
"name": "--mdc-themeprovider-font-family"
|
34244
|
-
},
|
34245
|
-
{
|
34246
|
-
"description": "Option to override the font weight, default: `400`",
|
34247
|
-
"name": "--mdc-themeprovider-font-weight"
|
34248
|
-
},
|
34249
|
-
{
|
34250
|
-
"description": "Option to override the default letter-spacing, default: `-0.25px` (this is to match the old CiscoSans)",
|
34251
|
-
"name": "--mdc-themeprovider-letter-spacing-adjustment"
|
34252
|
-
},
|
34253
|
-
{
|
34254
|
-
"description": "Option to override the font feature settings, default: `\"ss02\" on`",
|
34255
|
-
"name": "--mdc-themeprovider-font-feature-settings"
|
34256
|
-
},
|
34257
|
-
{
|
34258
|
-
"description": "Option to override the color of the scrollbar track.",
|
34259
|
-
"name": "--mdc-themeprovider-scrollbar-track-color"
|
34260
|
-
},
|
34261
|
-
{
|
34262
|
-
"description": "Option to override the color of the scrollbar thumb.",
|
34263
|
-
"name": "--mdc-themeprovider-scrollbar-thumb-color"
|
34264
|
-
}
|
34265
|
-
],
|
34266
|
-
"slots": [
|
34267
|
-
{
|
34268
|
-
"description": "children",
|
34269
|
-
"name": ""
|
34270
|
-
}
|
34271
|
-
],
|
34272
|
-
"members": [
|
34273
|
-
{
|
34274
|
-
"kind": "field",
|
34275
|
-
"name": "Context",
|
34276
|
-
"privacy": "public",
|
34277
|
-
"static": true,
|
34278
|
-
"description": "Context object of the ThemeProvider, to be consumed by child components",
|
34279
|
-
"readonly": true
|
34280
|
-
},
|
34281
|
-
{
|
34282
|
-
"kind": "field",
|
34283
|
-
"name": "themeclass",
|
34284
|
-
"type": {
|
34285
|
-
"text": "string"
|
34286
|
-
},
|
34287
|
-
"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'",
|
34288
|
-
"attribute": "themeclass"
|
34289
|
-
},
|
34290
|
-
{
|
34291
|
-
"kind": "method",
|
34292
|
-
"name": "updateContext",
|
34293
|
-
"privacy": "protected",
|
34294
|
-
"return": {
|
34295
|
-
"type": {
|
34296
|
-
"text": "void"
|
34297
|
-
}
|
34298
|
-
},
|
34299
|
-
"description": "Update all observing components of this\nprovider to update the themeclass\n\nIs called on every re-render, see Provider class"
|
34300
|
-
},
|
34301
|
-
{
|
34302
|
-
"kind": "method",
|
34303
|
-
"name": "setThemeInClassList",
|
34304
|
-
"privacy": "private",
|
34305
|
-
"description": "Function to update the active theme classnames to update the theme tokens\nas CSS variables on the web component."
|
34306
|
-
}
|
34307
|
-
],
|
34308
|
-
"attributes": [
|
34309
|
-
{
|
34310
|
-
"name": "themeclass",
|
34311
|
-
"type": {
|
34312
|
-
"text": "string"
|
34313
|
-
},
|
34314
|
-
"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'",
|
34315
|
-
"fieldName": "themeclass"
|
34316
|
-
}
|
34317
|
-
],
|
34318
|
-
"superclass": {
|
34319
|
-
"name": "Provider",
|
34320
|
-
"module": "/src/models"
|
34321
|
-
},
|
34322
|
-
"tagName": "mdc-themeprovider",
|
34323
|
-
"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 */",
|
34324
|
-
"customElement": true
|
34325
|
-
}
|
34326
|
-
],
|
34327
|
-
"exports": [
|
34328
|
-
{
|
34329
|
-
"kind": "js",
|
34330
|
-
"name": "default",
|
34331
|
-
"declaration": {
|
34332
|
-
"name": "ThemeProvider",
|
34333
|
-
"module": "components/themeprovider/themeprovider.component.js"
|
34334
|
-
}
|
34335
|
-
}
|
34336
|
-
]
|
34337
|
-
},
|
34338
34386
|
{
|
34339
34387
|
"kind": "javascript-module",
|
34340
34388
|
"path": "components/toggle/toggle.component.js",
|
package/dist/react/index.d.ts
CHANGED
@@ -64,8 +64,8 @@ export { default as StepperItem } from './stepperitem';
|
|
64
64
|
export { default as Tab } from './tab';
|
65
65
|
export { default as TabList } from './tablist';
|
66
66
|
export { default as Text } from './text';
|
67
|
-
export { default as Textarea } from './textarea';
|
68
67
|
export { default as ThemeProvider } from './themeprovider';
|
68
|
+
export { default as Textarea } from './textarea';
|
69
69
|
export { default as Toggle } from './toggle';
|
70
70
|
export { default as ToggleTip } from './toggletip';
|
71
71
|
export { default as Tooltip } from './tooltip';
|
package/dist/react/index.js
CHANGED
@@ -64,8 +64,8 @@ export { default as StepperItem } from './stepperitem';
|
|
64
64
|
export { default as Tab } from './tab';
|
65
65
|
export { default as TabList } from './tablist';
|
66
66
|
export { default as Text } from './text';
|
67
|
-
export { default as Textarea } from './textarea';
|
68
67
|
export { default as ThemeProvider } from './themeprovider';
|
68
|
+
export { default as Textarea } from './textarea';
|
69
69
|
export { default as Toggle } from './toggle';
|
70
70
|
export { default as ToggleTip } from './toggletip';
|
71
71
|
export { default as Tooltip } from './tooltip';
|