@momentum-design/components 0.115.0 → 0.116.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.
- package/dist/browser/index.js +386 -275
- package/dist/browser/index.js.map +4 -4
- package/dist/components/banner/banner.component.d.ts +79 -0
- package/dist/components/banner/banner.component.js +142 -0
- package/dist/components/banner/banner.constants.d.ts +28 -0
- package/dist/components/banner/banner.constants.js +29 -0
- package/dist/components/banner/banner.styles.d.ts +2 -0
- package/dist/components/banner/banner.styles.js +86 -0
- package/dist/components/banner/banner.types.d.ts +4 -0
- package/dist/components/banner/banner.types.js +1 -0
- package/dist/components/banner/banner.utils.d.ts +3 -0
- package/dist/components/banner/banner.utils.js +16 -0
- package/dist/components/banner/index.d.ts +9 -0
- package/dist/components/banner/index.js +6 -0
- package/dist/custom-elements.json +244 -84
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/banner/index.d.ts +40 -0
- package/dist/react/banner/index.js +49 -0
- package/dist/react/index.d.ts +2 -1
- package/dist/react/index.js +2 -1
- package/package.json +1 -1
@@ -3168,6 +3168,166 @@
|
|
3168
3168
|
}
|
3169
3169
|
]
|
3170
3170
|
},
|
3171
|
+
{
|
3172
|
+
"kind": "javascript-module",
|
3173
|
+
"path": "components/banner/banner.component.js",
|
3174
|
+
"declarations": [
|
3175
|
+
{
|
3176
|
+
"kind": "class",
|
3177
|
+
"description": "`mdc-banner` is a component that allows applications to communicate important messages to users \nand requires user action to dismiss them. It supports different message types with appropriate styling \nand icons, and provides flexibility for customization through label, secondary label, icons, and actions.\n\nThey are designed to be noticeable yet non-intrusive, helping users stay informed without interrupting their workflow.\n\nThis component supports both structured content via properties and flexible customization via slots:\n- Use the properties (`label`, `secondaryLabel`, `variant`) for standard banner layouts with automatic icon selection.\n- Use slots for custom content and complete layout control.\n- Combine both approaches for maximum flexibility.\n- Create custom orientations and actions using CSS parts and slots.",
|
3178
|
+
"name": "Banner",
|
3179
|
+
"cssProperties": [
|
3180
|
+
{
|
3181
|
+
"description": "Background color of the banner.",
|
3182
|
+
"name": "--mdc-banner-background-color"
|
3183
|
+
},
|
3184
|
+
{
|
3185
|
+
"description": "Border color of the banner.",
|
3186
|
+
"name": "--mdc-banner-border-color"
|
3187
|
+
},
|
3188
|
+
{
|
3189
|
+
"description": "Color of the icon in the banner.",
|
3190
|
+
"name": "--mdc-banner-icon-color"
|
3191
|
+
},
|
3192
|
+
{
|
3193
|
+
"description": "Elevation/shadow of the banner.",
|
3194
|
+
"name": "--mdc-banner-elevation"
|
3195
|
+
},
|
3196
|
+
{
|
3197
|
+
"description": "Padding inside the banner.",
|
3198
|
+
"name": "--mdc-banner-padding"
|
3199
|
+
},
|
3200
|
+
{
|
3201
|
+
"description": "Gap between banner elements.",
|
3202
|
+
"name": "--mdc-banner-gap"
|
3203
|
+
}
|
3204
|
+
],
|
3205
|
+
"cssParts": [
|
3206
|
+
{
|
3207
|
+
"description": "The leading section containing the icon and text.",
|
3208
|
+
"name": "leading"
|
3209
|
+
},
|
3210
|
+
{
|
3211
|
+
"description": "The icon displayed for variants or custom icon slot.",
|
3212
|
+
"name": "leading-icon"
|
3213
|
+
},
|
3214
|
+
{
|
3215
|
+
"description": "The leading section containing label and secondary label text.",
|
3216
|
+
"name": "leading-text"
|
3217
|
+
},
|
3218
|
+
{
|
3219
|
+
"description": "The trailing section containing action buttons and controls.",
|
3220
|
+
"name": "trailing"
|
3221
|
+
},
|
3222
|
+
{
|
3223
|
+
"description": "The label text of the banner.",
|
3224
|
+
"name": "leading-label"
|
3225
|
+
},
|
3226
|
+
{
|
3227
|
+
"description": "The secondary label text of the banner.",
|
3228
|
+
"name": "leading-secondary-label"
|
3229
|
+
}
|
3230
|
+
],
|
3231
|
+
"slots": [
|
3232
|
+
{
|
3233
|
+
"description": "Complete content override. When used, it replaces all default banner content including icon, label, secondary label, and actions.",
|
3234
|
+
"name": "content"
|
3235
|
+
},
|
3236
|
+
{
|
3237
|
+
"description": "Custom icon content. Overrides the default variant-based icon.",
|
3238
|
+
"name": "leading-icon"
|
3239
|
+
},
|
3240
|
+
{
|
3241
|
+
"description": "Custom text content. Overrides the label and secondaryLabel properties.",
|
3242
|
+
"name": "leading-text"
|
3243
|
+
},
|
3244
|
+
{
|
3245
|
+
"description": "Custom action buttons and controls. Use this for dismiss buttons, reset buttons, or any other actions.",
|
3246
|
+
"name": "trailing-actions"
|
3247
|
+
}
|
3248
|
+
],
|
3249
|
+
"members": [
|
3250
|
+
{
|
3251
|
+
"kind": "field",
|
3252
|
+
"name": "variant",
|
3253
|
+
"type": {
|
3254
|
+
"text": "BannerVariant"
|
3255
|
+
},
|
3256
|
+
"description": "The type of banner variant.\n- Can be `custom`, `informational`, `warning`, `error`, or `success`.\n\nNote: When using the `custom` variant, provide your own icon via the `leading-icon` slot; otherwise, no icon will be shown.",
|
3257
|
+
"default": "'custom'",
|
3258
|
+
"attribute": "variant",
|
3259
|
+
"reflects": true
|
3260
|
+
},
|
3261
|
+
{
|
3262
|
+
"kind": "field",
|
3263
|
+
"name": "label",
|
3264
|
+
"type": {
|
3265
|
+
"text": "string"
|
3266
|
+
},
|
3267
|
+
"default": "''",
|
3268
|
+
"description": "Banner label text",
|
3269
|
+
"attribute": "label",
|
3270
|
+
"reflects": true
|
3271
|
+
},
|
3272
|
+
{
|
3273
|
+
"kind": "field",
|
3274
|
+
"name": "secondaryLabel",
|
3275
|
+
"type": {
|
3276
|
+
"text": "string | undefined"
|
3277
|
+
},
|
3278
|
+
"description": "Banner secondary label text\n\nNote: Optional supporting text that appears below the label. Only rendered when label is also provided.",
|
3279
|
+
"attribute": "secondary-label",
|
3280
|
+
"reflects": true
|
3281
|
+
}
|
3282
|
+
],
|
3283
|
+
"attributes": [
|
3284
|
+
{
|
3285
|
+
"name": "variant",
|
3286
|
+
"type": {
|
3287
|
+
"text": "BannerVariant"
|
3288
|
+
},
|
3289
|
+
"description": "The type of banner variant.\n- Can be `custom`, `informational`, `warning`, `error`, or `success`.\n\nNote: When using the `custom` variant, provide your own icon via the `leading-icon` slot; otherwise, no icon will be shown.",
|
3290
|
+
"default": "'custom'",
|
3291
|
+
"fieldName": "variant"
|
3292
|
+
},
|
3293
|
+
{
|
3294
|
+
"name": "label",
|
3295
|
+
"type": {
|
3296
|
+
"text": "string"
|
3297
|
+
},
|
3298
|
+
"default": "''",
|
3299
|
+
"description": "Banner label text",
|
3300
|
+
"fieldName": "label"
|
3301
|
+
},
|
3302
|
+
{
|
3303
|
+
"name": "secondary-label",
|
3304
|
+
"type": {
|
3305
|
+
"text": "string | undefined"
|
3306
|
+
},
|
3307
|
+
"description": "Banner secondary label text\n\nNote: Optional supporting text that appears below the label. Only rendered when label is also provided.",
|
3308
|
+
"fieldName": "secondaryLabel"
|
3309
|
+
}
|
3310
|
+
],
|
3311
|
+
"superclass": {
|
3312
|
+
"name": "Component",
|
3313
|
+
"module": "/src/models"
|
3314
|
+
},
|
3315
|
+
"tagName": "mdc-banner",
|
3316
|
+
"jsDoc": "/**\n * `mdc-banner` is a component that allows applications to communicate important messages to users \n * and requires user action to dismiss them. It supports different message types with appropriate styling \n * and icons, and provides flexibility for customization through label, secondary label, icons, and actions.\n * \n * They are designed to be noticeable yet non-intrusive, helping users stay informed without interrupting their workflow.\n *\n * This component supports both structured content via properties and flexible customization via slots:\n * - Use the properties (`label`, `secondaryLabel`, `variant`) for standard banner layouts with automatic icon selection.\n * - Use slots for custom content and complete layout control.\n * - Combine both approaches for maximum flexibility.\n * - Create custom orientations and actions using CSS parts and slots.\n * \n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @slot content - Complete content override. When used, it replaces all default banner content including icon, label, secondary label, and actions.\n * @slot leading-icon - Custom icon content. Overrides the default variant-based icon.\n * @slot leading-text - Custom text content. Overrides the label and secondaryLabel properties.\n * @slot trailing-actions - Custom action buttons and controls. Use this for dismiss buttons, reset buttons, or any other actions.\n *\n * @tagname mdc-banner\n *\n * @csspart leading - The leading section containing the icon and text.\n * @csspart leading-icon - The icon displayed for variants or custom icon slot.\n * @csspart leading-text - The leading section containing label and secondary label text.\n * @csspart trailing - The trailing section containing action buttons and controls.\n * @csspart leading-label - The label text of the banner.\n * @csspart leading-secondary-label - The secondary label text of the banner.\n *\n * @cssproperty --mdc-banner-background-color - Background color of the banner.\n * @cssproperty --mdc-banner-border-color - Border color of the banner.\n * @cssproperty --mdc-banner-icon-color - Color of the icon in the banner.\n * @cssproperty --mdc-banner-elevation - Elevation/shadow of the banner.\n * @cssproperty --mdc-banner-padding - Padding inside the banner.\n * @cssproperty --mdc-banner-gap - Gap between banner elements.\n */",
|
3317
|
+
"customElement": true
|
3318
|
+
}
|
3319
|
+
],
|
3320
|
+
"exports": [
|
3321
|
+
{
|
3322
|
+
"kind": "js",
|
3323
|
+
"name": "default",
|
3324
|
+
"declaration": {
|
3325
|
+
"name": "Banner",
|
3326
|
+
"module": "components/banner/banner.component.js"
|
3327
|
+
}
|
3328
|
+
}
|
3329
|
+
]
|
3330
|
+
},
|
3171
3331
|
{
|
3172
3332
|
"kind": "javascript-module",
|
3173
3333
|
"path": "components/brandvisual/brandvisual.component.js",
|
@@ -38239,6 +38399,90 @@
|
|
38239
38399
|
}
|
38240
38400
|
]
|
38241
38401
|
},
|
38402
|
+
{
|
38403
|
+
"kind": "javascript-module",
|
38404
|
+
"path": "components/text/text.component.js",
|
38405
|
+
"declarations": [
|
38406
|
+
{
|
38407
|
+
"kind": "class",
|
38408
|
+
"description": "Text component for creating styled text elements.\nIt has to be mounted within the ThemeProvider to access color and font tokens.\n\nThe `type` attribute allows changing the text style.\nThe `tagname` attribute allows changing the tag name of the text element.\nThe default tag name is `p`.\n\nThe `tagname` attribute should be a valid HTML tag name.\nIf the `tagname` attribute is not a valid HTML tag name, the default tag name will be used.\n\nThe styling is applied based on the `type` attribute.",
|
38409
|
+
"name": "Text",
|
38410
|
+
"cssParts": [
|
38411
|
+
{
|
38412
|
+
"description": "The text element",
|
38413
|
+
"name": "text"
|
38414
|
+
}
|
38415
|
+
],
|
38416
|
+
"slots": [
|
38417
|
+
{
|
38418
|
+
"description": "Default slot for text content",
|
38419
|
+
"name": ""
|
38420
|
+
}
|
38421
|
+
],
|
38422
|
+
"members": [
|
38423
|
+
{
|
38424
|
+
"kind": "field",
|
38425
|
+
"name": "type",
|
38426
|
+
"type": {
|
38427
|
+
"text": "TextType"
|
38428
|
+
},
|
38429
|
+
"privacy": "public",
|
38430
|
+
"description": "Specifies the text style to be applied.\n\nAcceptable values include:\n\n- 'body-small-regular'\n- 'body-small-medium'\n- 'body-small-bold'\n- 'body-midsize-regular'\n- 'body-midsize-medium'\n- 'body-midsize-bold'\n- 'body-large-regular'\n- 'body-large-medium'\n- 'body-large-bold'\n- 'body-small-regular-underline'\n- 'body-small-medium-underline'\n- 'body-midsize-regular-underline'\n- 'body-midsize-medium-underline'\n- 'body-large-regular-underline'\n- 'body-large-medium-underline'\n- 'heading-small-regular'\n- 'heading-small-medium'\n- 'heading-small-bold'\n- 'heading-midsize-regular'\n- 'heading-midsize-medium'\n- 'heading-midsize-bold'\n- 'heading-large-regular'\n- 'heading-large-medium'\n- 'heading-large-bold'\n- 'heading-xlarge-regular'\n- 'heading-xlarge-medium'\n- 'heading-xlarge-bold'\n- 'headline-small-light'\n- 'headline-small-regular'",
|
38431
|
+
"default": "body-midsize-medium",
|
38432
|
+
"attribute": "type",
|
38433
|
+
"reflects": true
|
38434
|
+
},
|
38435
|
+
{
|
38436
|
+
"kind": "field",
|
38437
|
+
"name": "tagname",
|
38438
|
+
"type": {
|
38439
|
+
"text": "TagName | undefined"
|
38440
|
+
},
|
38441
|
+
"privacy": "public",
|
38442
|
+
"description": "Specifies the HTML tag name for the text element. The default tag name is `p`.\nThis attribute is optional. When set, it changes the tag name of the text element.\n\nAcceptable values include:\n\n- 'h1'\n- 'h2'\n- 'h3'\n- 'h4'\n- 'h5'\n- 'h6'\n- 'p'\n- 'small'\n- 'span'\n- 'div'\n\nFor instance, setting this attribute to `h2` will render the text element as an `h2` element.\nNote that the styling is determined by the `type` attribute.",
|
38443
|
+
"attribute": "tagname",
|
38444
|
+
"reflects": true
|
38445
|
+
}
|
38446
|
+
],
|
38447
|
+
"attributes": [
|
38448
|
+
{
|
38449
|
+
"name": "type",
|
38450
|
+
"type": {
|
38451
|
+
"text": "TextType"
|
38452
|
+
},
|
38453
|
+
"description": "Specifies the text style to be applied.\n\nAcceptable values include:\n\n- 'body-small-regular'\n- 'body-small-medium'\n- 'body-small-bold'\n- 'body-midsize-regular'\n- 'body-midsize-medium'\n- 'body-midsize-bold'\n- 'body-large-regular'\n- 'body-large-medium'\n- 'body-large-bold'\n- 'body-small-regular-underline'\n- 'body-small-medium-underline'\n- 'body-midsize-regular-underline'\n- 'body-midsize-medium-underline'\n- 'body-large-regular-underline'\n- 'body-large-medium-underline'\n- 'heading-small-regular'\n- 'heading-small-medium'\n- 'heading-small-bold'\n- 'heading-midsize-regular'\n- 'heading-midsize-medium'\n- 'heading-midsize-bold'\n- 'heading-large-regular'\n- 'heading-large-medium'\n- 'heading-large-bold'\n- 'heading-xlarge-regular'\n- 'heading-xlarge-medium'\n- 'heading-xlarge-bold'\n- 'headline-small-light'\n- 'headline-small-regular'",
|
38454
|
+
"default": "body-midsize-medium",
|
38455
|
+
"fieldName": "type"
|
38456
|
+
},
|
38457
|
+
{
|
38458
|
+
"name": "tagname",
|
38459
|
+
"type": {
|
38460
|
+
"text": "TagName | undefined"
|
38461
|
+
},
|
38462
|
+
"description": "Specifies the HTML tag name for the text element. The default tag name is `p`.\nThis attribute is optional. When set, it changes the tag name of the text element.\n\nAcceptable values include:\n\n- 'h1'\n- 'h2'\n- 'h3'\n- 'h4'\n- 'h5'\n- 'h6'\n- 'p'\n- 'small'\n- 'span'\n- 'div'\n\nFor instance, setting this attribute to `h2` will render the text element as an `h2` element.\nNote that the styling is determined by the `type` attribute.",
|
38463
|
+
"fieldName": "tagname"
|
38464
|
+
}
|
38465
|
+
],
|
38466
|
+
"superclass": {
|
38467
|
+
"name": "Component",
|
38468
|
+
"module": "/src/models"
|
38469
|
+
},
|
38470
|
+
"tagName": "mdc-text",
|
38471
|
+
"jsDoc": "/**\n * Text component for creating styled text elements.\n * It has to be mounted within the ThemeProvider to access color and font tokens.\n *\n * The `type` attribute allows changing the text style.\n * The `tagname` attribute allows changing the tag name of the text element.\n * The default tag name is `p`.\n *\n * The `tagname` attribute should be a valid HTML tag name.\n * If the `tagname` attribute is not a valid HTML tag name, the default tag name will be used.\n *\n * The styling is applied based on the `type` attribute.\n *\n * @tagname mdc-text\n * @slot - Default slot for text content\n *\n * @csspart text - The text element\n */",
|
38472
|
+
"customElement": true
|
38473
|
+
}
|
38474
|
+
],
|
38475
|
+
"exports": [
|
38476
|
+
{
|
38477
|
+
"kind": "js",
|
38478
|
+
"name": "default",
|
38479
|
+
"declaration": {
|
38480
|
+
"name": "Text",
|
38481
|
+
"module": "components/text/text.component.js"
|
38482
|
+
}
|
38483
|
+
}
|
38484
|
+
]
|
38485
|
+
},
|
38242
38486
|
{
|
38243
38487
|
"kind": "javascript-module",
|
38244
38488
|
"path": "components/textarea/textarea.component.js",
|
@@ -40359,90 +40603,6 @@
|
|
40359
40603
|
}
|
40360
40604
|
]
|
40361
40605
|
},
|
40362
|
-
{
|
40363
|
-
"kind": "javascript-module",
|
40364
|
-
"path": "components/text/text.component.js",
|
40365
|
-
"declarations": [
|
40366
|
-
{
|
40367
|
-
"kind": "class",
|
40368
|
-
"description": "Text component for creating styled text elements.\nIt has to be mounted within the ThemeProvider to access color and font tokens.\n\nThe `type` attribute allows changing the text style.\nThe `tagname` attribute allows changing the tag name of the text element.\nThe default tag name is `p`.\n\nThe `tagname` attribute should be a valid HTML tag name.\nIf the `tagname` attribute is not a valid HTML tag name, the default tag name will be used.\n\nThe styling is applied based on the `type` attribute.",
|
40369
|
-
"name": "Text",
|
40370
|
-
"cssParts": [
|
40371
|
-
{
|
40372
|
-
"description": "The text element",
|
40373
|
-
"name": "text"
|
40374
|
-
}
|
40375
|
-
],
|
40376
|
-
"slots": [
|
40377
|
-
{
|
40378
|
-
"description": "Default slot for text content",
|
40379
|
-
"name": ""
|
40380
|
-
}
|
40381
|
-
],
|
40382
|
-
"members": [
|
40383
|
-
{
|
40384
|
-
"kind": "field",
|
40385
|
-
"name": "type",
|
40386
|
-
"type": {
|
40387
|
-
"text": "TextType"
|
40388
|
-
},
|
40389
|
-
"privacy": "public",
|
40390
|
-
"description": "Specifies the text style to be applied.\n\nAcceptable values include:\n\n- 'body-small-regular'\n- 'body-small-medium'\n- 'body-small-bold'\n- 'body-midsize-regular'\n- 'body-midsize-medium'\n- 'body-midsize-bold'\n- 'body-large-regular'\n- 'body-large-medium'\n- 'body-large-bold'\n- 'body-small-regular-underline'\n- 'body-small-medium-underline'\n- 'body-midsize-regular-underline'\n- 'body-midsize-medium-underline'\n- 'body-large-regular-underline'\n- 'body-large-medium-underline'\n- 'heading-small-regular'\n- 'heading-small-medium'\n- 'heading-small-bold'\n- 'heading-midsize-regular'\n- 'heading-midsize-medium'\n- 'heading-midsize-bold'\n- 'heading-large-regular'\n- 'heading-large-medium'\n- 'heading-large-bold'\n- 'heading-xlarge-regular'\n- 'heading-xlarge-medium'\n- 'heading-xlarge-bold'\n- 'headline-small-light'\n- 'headline-small-regular'",
|
40391
|
-
"default": "body-midsize-medium",
|
40392
|
-
"attribute": "type",
|
40393
|
-
"reflects": true
|
40394
|
-
},
|
40395
|
-
{
|
40396
|
-
"kind": "field",
|
40397
|
-
"name": "tagname",
|
40398
|
-
"type": {
|
40399
|
-
"text": "TagName | undefined"
|
40400
|
-
},
|
40401
|
-
"privacy": "public",
|
40402
|
-
"description": "Specifies the HTML tag name for the text element. The default tag name is `p`.\nThis attribute is optional. When set, it changes the tag name of the text element.\n\nAcceptable values include:\n\n- 'h1'\n- 'h2'\n- 'h3'\n- 'h4'\n- 'h5'\n- 'h6'\n- 'p'\n- 'small'\n- 'span'\n- 'div'\n\nFor instance, setting this attribute to `h2` will render the text element as an `h2` element.\nNote that the styling is determined by the `type` attribute.",
|
40403
|
-
"attribute": "tagname",
|
40404
|
-
"reflects": true
|
40405
|
-
}
|
40406
|
-
],
|
40407
|
-
"attributes": [
|
40408
|
-
{
|
40409
|
-
"name": "type",
|
40410
|
-
"type": {
|
40411
|
-
"text": "TextType"
|
40412
|
-
},
|
40413
|
-
"description": "Specifies the text style to be applied.\n\nAcceptable values include:\n\n- 'body-small-regular'\n- 'body-small-medium'\n- 'body-small-bold'\n- 'body-midsize-regular'\n- 'body-midsize-medium'\n- 'body-midsize-bold'\n- 'body-large-regular'\n- 'body-large-medium'\n- 'body-large-bold'\n- 'body-small-regular-underline'\n- 'body-small-medium-underline'\n- 'body-midsize-regular-underline'\n- 'body-midsize-medium-underline'\n- 'body-large-regular-underline'\n- 'body-large-medium-underline'\n- 'heading-small-regular'\n- 'heading-small-medium'\n- 'heading-small-bold'\n- 'heading-midsize-regular'\n- 'heading-midsize-medium'\n- 'heading-midsize-bold'\n- 'heading-large-regular'\n- 'heading-large-medium'\n- 'heading-large-bold'\n- 'heading-xlarge-regular'\n- 'heading-xlarge-medium'\n- 'heading-xlarge-bold'\n- 'headline-small-light'\n- 'headline-small-regular'",
|
40414
|
-
"default": "body-midsize-medium",
|
40415
|
-
"fieldName": "type"
|
40416
|
-
},
|
40417
|
-
{
|
40418
|
-
"name": "tagname",
|
40419
|
-
"type": {
|
40420
|
-
"text": "TagName | undefined"
|
40421
|
-
},
|
40422
|
-
"description": "Specifies the HTML tag name for the text element. The default tag name is `p`.\nThis attribute is optional. When set, it changes the tag name of the text element.\n\nAcceptable values include:\n\n- 'h1'\n- 'h2'\n- 'h3'\n- 'h4'\n- 'h5'\n- 'h6'\n- 'p'\n- 'small'\n- 'span'\n- 'div'\n\nFor instance, setting this attribute to `h2` will render the text element as an `h2` element.\nNote that the styling is determined by the `type` attribute.",
|
40423
|
-
"fieldName": "tagname"
|
40424
|
-
}
|
40425
|
-
],
|
40426
|
-
"superclass": {
|
40427
|
-
"name": "Component",
|
40428
|
-
"module": "/src/models"
|
40429
|
-
},
|
40430
|
-
"tagName": "mdc-text",
|
40431
|
-
"jsDoc": "/**\n * Text component for creating styled text elements.\n * It has to be mounted within the ThemeProvider to access color and font tokens.\n *\n * The `type` attribute allows changing the text style.\n * The `tagname` attribute allows changing the tag name of the text element.\n * The default tag name is `p`.\n *\n * The `tagname` attribute should be a valid HTML tag name.\n * If the `tagname` attribute is not a valid HTML tag name, the default tag name will be used.\n *\n * The styling is applied based on the `type` attribute.\n *\n * @tagname mdc-text\n * @slot - Default slot for text content\n *\n * @csspart text - The text element\n */",
|
40432
|
-
"customElement": true
|
40433
|
-
}
|
40434
|
-
],
|
40435
|
-
"exports": [
|
40436
|
-
{
|
40437
|
-
"kind": "js",
|
40438
|
-
"name": "default",
|
40439
|
-
"declaration": {
|
40440
|
-
"name": "Text",
|
40441
|
-
"module": "components/text/text.component.js"
|
40442
|
-
}
|
40443
|
-
}
|
40444
|
-
]
|
40445
|
-
},
|
40446
40606
|
{
|
40447
40607
|
"kind": "javascript-module",
|
40448
40608
|
"path": "components/toggletip/toggletip.component.js",
|
package/dist/index.d.ts
CHANGED
@@ -78,6 +78,7 @@ import VirtualizedList from './components/virtualizedlist';
|
|
78
78
|
import Combobox from './components/combobox';
|
79
79
|
import Slider from './components/slider';
|
80
80
|
import ListBox from './components/listbox';
|
81
|
+
import Banner from './components/banner';
|
81
82
|
import type { BadgeType } from './components/badge/badge.types';
|
82
83
|
import type { ButtonColor, ButtonVariant, IconButtonSize, PillButtonSize } from './components/button/button.types';
|
83
84
|
import type { PopoverPlacement } from './components/popover/popover.types';
|
@@ -93,6 +94,6 @@ import type { VirtualizedListScrollEvent } from './components/virtualizedlist/vi
|
|
93
94
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES } from './components/button/button.constants';
|
94
95
|
import { SKELETON_VARIANTS } from './components/skeleton/skeleton.constants';
|
95
96
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
96
|
-
export { Accordion, AccordionButton, AccordionGroup, AlertChip, Animation, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonGroup, ButtonLink, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, LinkButton, Linksimple, List, Listheader, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SelectListbox, SideNavigation, Skeleton, Spinner, StaticChip, StaticCheckbox, StaticRadio, StaticToggle, Stepper, StepperConnector, StepperItem, Tab, TabList, Text, Textarea, ThemeProvider, Toast, Toggle, Typewriter, ToggleTip, Tooltip, VirtualizedList, Combobox, Slider, ListBox, };
|
97
|
+
export { Accordion, AccordionButton, AccordionGroup, AlertChip, Animation, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonGroup, ButtonLink, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, LinkButton, Linksimple, List, Listheader, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SelectListbox, SideNavigation, Skeleton, Spinner, StaticChip, StaticCheckbox, StaticRadio, StaticToggle, Stepper, StepperConnector, StepperItem, Tab, TabList, Text, Textarea, ThemeProvider, Toast, Toggle, Typewriter, ToggleTip, Tooltip, VirtualizedList, Combobox, Slider, ListBox, Banner };
|
97
98
|
export type { BadgeType, ButtonColor, ButtonVariant, IconButtonSize, MenuPopoverActionEvent, MenuPopoverChangeEvent, MenuSectionChangeEvent, PillButtonSize, PopoverPlacement, SkeletonVariant, SelectChangeEvent, SelectInputEvent, SpinnerSize, SpinnerVariant, TextType, TypewriterType, InputInputEvent, InputChangeEvent, InputFocusEvent, InputBlurEvent, InputClearEvent, VirtualizedListScrollEvent, };
|
98
99
|
export { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, inMemoryCache, PILL_BUTTON_SIZES, SKELETON_VARIANTS, webAPIIconsCache, };
|
package/dist/index.js
CHANGED
@@ -80,11 +80,12 @@ import VirtualizedList from './components/virtualizedlist';
|
|
80
80
|
import Combobox from './components/combobox';
|
81
81
|
import Slider from './components/slider';
|
82
82
|
import ListBox from './components/listbox';
|
83
|
+
import Banner from './components/banner';
|
83
84
|
// Constants / Utils Imports
|
84
85
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, } from './components/button/button.constants';
|
85
86
|
import { SKELETON_VARIANTS } from './components/skeleton/skeleton.constants';
|
86
87
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
87
88
|
// Components Exports
|
88
|
-
export { Accordion, AccordionButton, AccordionGroup, AlertChip, Animation, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonGroup, ButtonLink, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, LinkButton, Linksimple, List, Listheader, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SelectListbox, SideNavigation, Skeleton, Spinner, StaticChip, StaticCheckbox, StaticRadio, StaticToggle, Stepper, StepperConnector, StepperItem, Tab, TabList, Text, Textarea, ThemeProvider, Toast, Toggle, Typewriter, ToggleTip, Tooltip, VirtualizedList, Combobox, Slider, ListBox, };
|
89
|
+
export { Accordion, AccordionButton, AccordionGroup, AlertChip, Animation, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonGroup, ButtonLink, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, LinkButton, Linksimple, List, Listheader, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SelectListbox, SideNavigation, Skeleton, Spinner, StaticChip, StaticCheckbox, StaticRadio, StaticToggle, Stepper, StepperConnector, StepperItem, Tab, TabList, Text, Textarea, ThemeProvider, Toast, Toggle, Typewriter, ToggleTip, Tooltip, VirtualizedList, Combobox, Slider, ListBox, Banner };
|
89
90
|
// Constants / Utils Exports
|
90
91
|
export { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, inMemoryCache, PILL_BUTTON_SIZES, SKELETON_VARIANTS, webAPIIconsCache, };
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import Component from '../../components/banner';
|
2
|
+
/**
|
3
|
+
* `mdc-banner` is a component that allows applications to communicate important messages to users
|
4
|
+
* and requires user action to dismiss them. It supports different message types with appropriate styling
|
5
|
+
* and icons, and provides flexibility for customization through label, secondary label, icons, and actions.
|
6
|
+
*
|
7
|
+
* They are designed to be noticeable yet non-intrusive, helping users stay informed without interrupting their workflow.
|
8
|
+
*
|
9
|
+
* This component supports both structured content via properties and flexible customization via slots:
|
10
|
+
* - Use the properties (`label`, `secondaryLabel`, `variant`) for standard banner layouts with automatic icon selection.
|
11
|
+
* - Use slots for custom content and complete layout control.
|
12
|
+
* - Combine both approaches for maximum flexibility.
|
13
|
+
* - Create custom orientations and actions using CSS parts and slots.
|
14
|
+
*
|
15
|
+
* @dependency mdc-icon
|
16
|
+
* @dependency mdc-text
|
17
|
+
*
|
18
|
+
* @slot content - Complete content override. When used, it replaces all default banner content including icon, label, secondary label, and actions.
|
19
|
+
* @slot leading-icon - Custom icon content. Overrides the default variant-based icon.
|
20
|
+
* @slot leading-text - Custom text content. Overrides the label and secondaryLabel properties.
|
21
|
+
* @slot trailing-actions - Custom action buttons and controls. Use this for dismiss buttons, reset buttons, or any other actions.
|
22
|
+
*
|
23
|
+
* @tagname mdc-banner
|
24
|
+
*
|
25
|
+
* @csspart leading - The leading section containing the icon and text.
|
26
|
+
* @csspart leading-icon - The icon displayed for variants or custom icon slot.
|
27
|
+
* @csspart leading-text - The leading section containing label and secondary label text.
|
28
|
+
* @csspart trailing - The trailing section containing action buttons and controls.
|
29
|
+
* @csspart leading-label - The label text of the banner.
|
30
|
+
* @csspart leading-secondary-label - The secondary label text of the banner.
|
31
|
+
*
|
32
|
+
* @cssproperty --mdc-banner-background-color - Background color of the banner.
|
33
|
+
* @cssproperty --mdc-banner-border-color - Border color of the banner.
|
34
|
+
* @cssproperty --mdc-banner-icon-color - Color of the icon in the banner.
|
35
|
+
* @cssproperty --mdc-banner-elevation - Elevation/shadow of the banner.
|
36
|
+
* @cssproperty --mdc-banner-padding - Padding inside the banner.
|
37
|
+
* @cssproperty --mdc-banner-gap - Gap between banner elements.
|
38
|
+
*/
|
39
|
+
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
40
|
+
export default reactWrapper;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { createComponent } from '@lit/react';
|
3
|
+
import Component from '../../components/banner';
|
4
|
+
import { TAG_NAME } from '../../components/banner/banner.constants';
|
5
|
+
/**
|
6
|
+
* `mdc-banner` is a component that allows applications to communicate important messages to users
|
7
|
+
* and requires user action to dismiss them. It supports different message types with appropriate styling
|
8
|
+
* and icons, and provides flexibility for customization through label, secondary label, icons, and actions.
|
9
|
+
*
|
10
|
+
* They are designed to be noticeable yet non-intrusive, helping users stay informed without interrupting their workflow.
|
11
|
+
*
|
12
|
+
* This component supports both structured content via properties and flexible customization via slots:
|
13
|
+
* - Use the properties (`label`, `secondaryLabel`, `variant`) for standard banner layouts with automatic icon selection.
|
14
|
+
* - Use slots for custom content and complete layout control.
|
15
|
+
* - Combine both approaches for maximum flexibility.
|
16
|
+
* - Create custom orientations and actions using CSS parts and slots.
|
17
|
+
*
|
18
|
+
* @dependency mdc-icon
|
19
|
+
* @dependency mdc-text
|
20
|
+
*
|
21
|
+
* @slot content - Complete content override. When used, it replaces all default banner content including icon, label, secondary label, and actions.
|
22
|
+
* @slot leading-icon - Custom icon content. Overrides the default variant-based icon.
|
23
|
+
* @slot leading-text - Custom text content. Overrides the label and secondaryLabel properties.
|
24
|
+
* @slot trailing-actions - Custom action buttons and controls. Use this for dismiss buttons, reset buttons, or any other actions.
|
25
|
+
*
|
26
|
+
* @tagname mdc-banner
|
27
|
+
*
|
28
|
+
* @csspart leading - The leading section containing the icon and text.
|
29
|
+
* @csspart leading-icon - The icon displayed for variants or custom icon slot.
|
30
|
+
* @csspart leading-text - The leading section containing label and secondary label text.
|
31
|
+
* @csspart trailing - The trailing section containing action buttons and controls.
|
32
|
+
* @csspart leading-label - The label text of the banner.
|
33
|
+
* @csspart leading-secondary-label - The secondary label text of the banner.
|
34
|
+
*
|
35
|
+
* @cssproperty --mdc-banner-background-color - Background color of the banner.
|
36
|
+
* @cssproperty --mdc-banner-border-color - Border color of the banner.
|
37
|
+
* @cssproperty --mdc-banner-icon-color - Color of the icon in the banner.
|
38
|
+
* @cssproperty --mdc-banner-elevation - Elevation/shadow of the banner.
|
39
|
+
* @cssproperty --mdc-banner-padding - Padding inside the banner.
|
40
|
+
* @cssproperty --mdc-banner-gap - Gap between banner elements.
|
41
|
+
*/
|
42
|
+
const reactWrapper = createComponent({
|
43
|
+
tagName: TAG_NAME,
|
44
|
+
elementClass: Component,
|
45
|
+
react: React,
|
46
|
+
events: {},
|
47
|
+
displayName: 'Banner',
|
48
|
+
});
|
49
|
+
export default reactWrapper;
|
package/dist/react/index.d.ts
CHANGED
@@ -7,6 +7,7 @@ export { default as Appheader } from './appheader';
|
|
7
7
|
export { default as Avatar } from './avatar';
|
8
8
|
export { default as AvatarButton } from './avatarbutton';
|
9
9
|
export { default as Badge } from './badge';
|
10
|
+
export { default as Banner } from './banner';
|
10
11
|
export { default as Brandvisual } from './brandvisual';
|
11
12
|
export { default as Bullet } from './bullet';
|
12
13
|
export { default as Button } from './button';
|
@@ -71,11 +72,11 @@ export { default as StepperConnector } from './stepperconnector';
|
|
71
72
|
export { default as StepperItem } from './stepperitem';
|
72
73
|
export { default as Tab } from './tab';
|
73
74
|
export { default as TabList } from './tablist';
|
75
|
+
export { default as Text } from './text';
|
74
76
|
export { default as Textarea } from './textarea';
|
75
77
|
export { default as ThemeProvider } from './themeprovider';
|
76
78
|
export { default as Toast } from './toast';
|
77
79
|
export { default as Toggle } from './toggle';
|
78
|
-
export { default as Text } from './text';
|
79
80
|
export { default as ToggleTip } from './toggletip';
|
80
81
|
export { default as Tooltip } from './tooltip';
|
81
82
|
export { default as Typewriter } from './typewriter';
|
package/dist/react/index.js
CHANGED
@@ -7,6 +7,7 @@ export { default as Appheader } from './appheader';
|
|
7
7
|
export { default as Avatar } from './avatar';
|
8
8
|
export { default as AvatarButton } from './avatarbutton';
|
9
9
|
export { default as Badge } from './badge';
|
10
|
+
export { default as Banner } from './banner';
|
10
11
|
export { default as Brandvisual } from './brandvisual';
|
11
12
|
export { default as Bullet } from './bullet';
|
12
13
|
export { default as Button } from './button';
|
@@ -71,11 +72,11 @@ export { default as StepperConnector } from './stepperconnector';
|
|
71
72
|
export { default as StepperItem } from './stepperitem';
|
72
73
|
export { default as Tab } from './tab';
|
73
74
|
export { default as TabList } from './tablist';
|
75
|
+
export { default as Text } from './text';
|
74
76
|
export { default as Textarea } from './textarea';
|
75
77
|
export { default as ThemeProvider } from './themeprovider';
|
76
78
|
export { default as Toast } from './toast';
|
77
79
|
export { default as Toggle } from './toggle';
|
78
|
-
export { default as Text } from './text';
|
79
80
|
export { default as ToggleTip } from './toggletip';
|
80
81
|
export { default as Tooltip } from './tooltip';
|
81
82
|
export { default as Typewriter } from './typewriter';
|