@momentum-design/components 0.98.0 → 0.99.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 +436 -276
- package/dist/browser/index.js.map +4 -4
- package/dist/components/card/card.component.d.ts +14 -6
- package/dist/components/card/card.component.js +20 -19
- package/dist/components/card/card.styles.js +23 -4
- package/dist/components/cardbutton/cardbutton.component.d.ts +18 -4
- package/dist/components/cardbutton/cardbutton.component.js +18 -4
- package/dist/components/cardcheckbox/cardcheckbox.component.d.ts +18 -0
- package/dist/components/cardcheckbox/cardcheckbox.component.js +18 -0
- package/dist/components/cardradio/cardradio.component.d.ts +18 -0
- package/dist/components/cardradio/cardradio.component.js +18 -0
- package/dist/components/toast/index.d.ts +11 -0
- package/dist/components/toast/index.js +8 -0
- package/dist/components/toast/toast.component.d.ts +101 -0
- package/dist/components/toast/toast.component.js +242 -0
- package/dist/components/toast/toast.constants.d.ts +26 -0
- package/dist/components/toast/toast.constants.js +28 -0
- package/dist/components/toast/toast.styles.d.ts +2 -0
- package/dist/components/toast/toast.styles.js +88 -0
- package/dist/components/toast/toast.types.d.ts +7 -0
- package/dist/components/toast/toast.types.js +1 -0
- package/dist/components/toast/toast.utils.d.ts +3 -0
- package/dist/components/toast/toast.utils.js +14 -0
- package/dist/custom-elements.json +702 -16
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/card/index.d.ts +14 -6
- package/dist/react/card/index.js +14 -6
- package/dist/react/cardbutton/index.d.ts +18 -4
- package/dist/react/cardbutton/index.js +18 -4
- package/dist/react/cardcheckbox/index.d.ts +18 -0
- package/dist/react/cardcheckbox/index.js +18 -0
- package/dist/react/cardradio/index.d.ts +18 -0
- package/dist/react/cardradio/index.js +18 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +1 -0
- package/dist/react/toast/index.d.ts +45 -0
- package/dist/react/toast/index.js +53 -0
- package/package.json +1 -1
@@ -4106,37 +4106,57 @@
|
|
4106
4106
|
"declarations": [
|
4107
4107
|
{
|
4108
4108
|
"kind": "class",
|
4109
|
-
"description": "The card component allows users to organize information in a structured and tangible\nformat that is visually appealing. `mdc-card` is a static component that supports\nthe following features:\n- Image\n- Header\n - Icon\n - Title\n - Subtitle\n- Body\n\nThe card can either be vertically or horizontally oriented.\n\nThere are 2 variants for the card that represent the border styling - 'border' and 'ghost'.\n\nTo make this card interactive, use the following slots:\n- `icon-button`: This slot supports action icon buttons in the header section (maximum of 3 buttons).\n- `footer-link`: This slot is for passing `mdc-link` component within the footer section.\n- `footer-button-primary`: This slot is for passing primary variant of
|
4109
|
+
"description": "The card component allows users to organize information in a structured and tangible\nformat that is visually appealing. `mdc-card` is a static component that supports\nthe following features:\n- Image\n- Header\n - Icon\n - Title\n - Subtitle\n- Body\n\nThe card can either be vertically or horizontally oriented. The vertical card has a min-width of 20rem and the horizontal card has a min-width of 40rem.\n\nThere are 2 variants for the card that represent the border styling - 'border' and 'ghost'.\n\nTo make this card interactive, use the following slots:\n- `icon-button`: This slot supports action icon buttons in the header section (maximum of 3 buttons).\n- `footer-link`: This slot is for passing `mdc-link` component within the footer section.\n- `footer-button-primary`: This slot is for passing primary variant of `mdc-button` component within the footer section.\n- `footer-button-secondary`: This slot is for passing secondary variant of `mdc-button` component\nwithin the footer section.\n\nInteractive card additionally supports 'promotional' variant that represents the border styling - 'promotional'.",
|
4110
4110
|
"name": "Card",
|
4111
|
-
"
|
4111
|
+
"cssProperties": [
|
4112
4112
|
{
|
4113
|
-
"description": "
|
4114
|
-
"name": "
|
4113
|
+
"description": "The width of the card",
|
4114
|
+
"name": "--mdc-card-width"
|
4115
|
+
}
|
4116
|
+
],
|
4117
|
+
"cssParts": [
|
4118
|
+
{
|
4119
|
+
"description": "The header part of the card",
|
4120
|
+
"name": "header"
|
4115
4121
|
},
|
4116
4122
|
{
|
4117
|
-
"description": "
|
4123
|
+
"description": "The icon part of the card header",
|
4124
|
+
"name": "icon"
|
4125
|
+
},
|
4126
|
+
{
|
4127
|
+
"description": "The body part of the card",
|
4118
4128
|
"name": "body"
|
4119
4129
|
},
|
4120
4130
|
{
|
4121
|
-
"description": "
|
4122
|
-
"name": "
|
4131
|
+
"description": "The image part of the card",
|
4132
|
+
"name": "image"
|
4123
4133
|
},
|
4124
4134
|
{
|
4125
|
-
"description": "
|
4135
|
+
"description": "The footer part of the card",
|
4136
|
+
"name": "footer"
|
4137
|
+
},
|
4138
|
+
{
|
4139
|
+
"description": "The link part of the card footer",
|
4126
4140
|
"name": "footer-link"
|
4127
4141
|
},
|
4128
4142
|
{
|
4129
|
-
"description": "
|
4143
|
+
"description": "The primary button part of the card footer",
|
4130
4144
|
"name": "footer-button-primary"
|
4131
4145
|
},
|
4132
4146
|
{
|
4133
|
-
"description": "
|
4147
|
+
"description": "The secondary button part of the card footer",
|
4134
4148
|
"name": "footer-button-secondary"
|
4135
4149
|
},
|
4136
4150
|
{
|
4137
|
-
"description": "
|
4138
|
-
"name": "
|
4151
|
+
"description": "The icon button part of the card header",
|
4152
|
+
"name": "icon-button"
|
4139
4153
|
},
|
4154
|
+
{
|
4155
|
+
"description": "The text part of the card",
|
4156
|
+
"name": "text"
|
4157
|
+
}
|
4158
|
+
],
|
4159
|
+
"slots": [
|
4140
4160
|
{
|
4141
4161
|
"description": "This slot is for passing the content before the body",
|
4142
4162
|
"name": "before-body"
|
@@ -4148,6 +4168,22 @@
|
|
4148
4168
|
{
|
4149
4169
|
"description": "This slot is for passing the content after the body",
|
4150
4170
|
"name": "after-body"
|
4171
|
+
},
|
4172
|
+
{
|
4173
|
+
"description": "This slot is for passing `mdc-link` component within the footer section.",
|
4174
|
+
"name": "footer-link"
|
4175
|
+
},
|
4176
|
+
{
|
4177
|
+
"description": "This slot is for passing primary variant of `mdc-button` component within the footer section.",
|
4178
|
+
"name": "footer-button-primary"
|
4179
|
+
},
|
4180
|
+
{
|
4181
|
+
"description": "This slot is for passing secondary variant of `mdc-button` component within the footer section.",
|
4182
|
+
"name": "footer-button-secondary"
|
4183
|
+
},
|
4184
|
+
{
|
4185
|
+
"description": " This slot is for passing custom footer content. Only use this if really needed, using the footer-link and footer-button slots is preferred.",
|
4186
|
+
"name": "footer"
|
4151
4187
|
}
|
4152
4188
|
],
|
4153
4189
|
"members": [
|
@@ -4372,7 +4408,7 @@
|
|
4372
4408
|
"module": "/src/models"
|
4373
4409
|
},
|
4374
4410
|
"tagName": "mdc-card",
|
4375
|
-
"jsDoc": "/**\n * The card component allows users to organize information in a structured and tangible\n * format that is visually appealing. `mdc-card` is a static component that supports\n * the following features:\n * - Image\n * - Header\n * - Icon\n * - Title\n * - Subtitle\n * - Body\n *\n * The card can either be vertically or horizontally oriented.\n *\n * There are 2 variants for the card that represent the border styling - 'border' and 'ghost'.\n *\n * To make this card interactive, use the following slots:\n * - `icon-button`: This slot supports action icon buttons in the header section (maximum of 3 buttons).\n * - `footer-link`: This slot is for passing `mdc-link` component within the footer section.\n * - `footer-button-primary`: This slot is for passing primary variant of
|
4411
|
+
"jsDoc": "/**\n * The card component allows users to organize information in a structured and tangible\n * format that is visually appealing. `mdc-card` is a static component that supports\n * the following features:\n * - Image\n * - Header\n * - Icon\n * - Title\n * - Subtitle\n * - Body\n *\n * The card can either be vertically or horizontally oriented. The vertical card has a min-width of 20rem and the horizontal card has a min-width of 40rem.\n *\n * There are 2 variants for the card that represent the border styling - 'border' and 'ghost'.\n *\n * To make this card interactive, use the following slots:\n * - `icon-button`: This slot supports action icon buttons in the header section (maximum of 3 buttons).\n * - `footer-link`: This slot is for passing `mdc-link` component within the footer section.\n * - `footer-button-primary`: This slot is for passing primary variant of `mdc-button` component within the footer section.\n * - `footer-button-secondary`: This slot is for passing secondary variant of `mdc-button` component\n * within the footer section.\n *\n * Interactive card additionally supports 'promotional' variant that represents the border styling - 'promotional'.\n *\n * @slot before-body - This slot is for passing the content before the body\n * @slot body - This slot is for passing the text content for the card\n * @slot after-body - This slot is for passing the content after the body\n * @slot footer-link - This slot is for passing `mdc-link` component within the footer section.\n * @slot footer-button-primary - This slot is for passing primary variant of\n * `mdc-button` component within the footer section.\n * @slot footer-button-secondary - This slot is for passing secondary variant of `mdc-button` component\n * within the footer section.\n * @slot footer - This slot is for passing custom footer content. Only use this if really needed,\n * using the footer-link and footer-button slots is preferred.\n *\n * @csspart header - The header part of the card\n * @csspart icon - The icon part of the card header\n * @csspart body - The body part of the card\n * @csspart image - The image part of the card\n * @csspart footer - The footer part of the card\n * @csspart footer-link - The link part of the card footer\n * @csspart footer-button-primary - The primary button part of the card footer\n * @csspart footer-button-secondary - The secondary button part of the card footer\n * @csspart icon-button - The icon button part of the card header\n * @csspart text - The text part of the card\n *\n * @tagname mdc-card\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @cssproperty --mdc-card-width - The width of the card\n *\n */",
|
4376
4412
|
"customElement": true,
|
4377
4413
|
"attributes": [
|
4378
4414
|
{
|
@@ -4513,6 +4549,54 @@
|
|
4513
4549
|
"kind": "class",
|
4514
4550
|
"description": "cardbutton component looks like a card and behaves as a button component.\n\n**Note**: This is a single selection card i.e. interacting anywhere on the card would trigger the click event.\nMake sure to pass only non-interactable elements within the slots.",
|
4515
4551
|
"name": "CardButton",
|
4552
|
+
"cssProperties": [
|
4553
|
+
{
|
4554
|
+
"description": "The width of the card",
|
4555
|
+
"name": "--mdc-card-width"
|
4556
|
+
}
|
4557
|
+
],
|
4558
|
+
"cssParts": [
|
4559
|
+
{
|
4560
|
+
"description": "The header part of the card",
|
4561
|
+
"name": "header"
|
4562
|
+
},
|
4563
|
+
{
|
4564
|
+
"description": "The icon part of the card header",
|
4565
|
+
"name": "icon"
|
4566
|
+
},
|
4567
|
+
{
|
4568
|
+
"description": "The body part of the card",
|
4569
|
+
"name": "body"
|
4570
|
+
},
|
4571
|
+
{
|
4572
|
+
"description": "The image part of the card",
|
4573
|
+
"name": "image"
|
4574
|
+
},
|
4575
|
+
{
|
4576
|
+
"description": "The footer part of the card",
|
4577
|
+
"name": "footer"
|
4578
|
+
},
|
4579
|
+
{
|
4580
|
+
"description": "The link part of the card footer",
|
4581
|
+
"name": "footer-link"
|
4582
|
+
},
|
4583
|
+
{
|
4584
|
+
"description": "The primary button part of the card footer",
|
4585
|
+
"name": "footer-button-primary"
|
4586
|
+
},
|
4587
|
+
{
|
4588
|
+
"description": "The secondary button part of the card footer",
|
4589
|
+
"name": "footer-button-secondary"
|
4590
|
+
},
|
4591
|
+
{
|
4592
|
+
"description": "The icon button part of the card header",
|
4593
|
+
"name": "icon-button"
|
4594
|
+
},
|
4595
|
+
{
|
4596
|
+
"description": "The text part of the card",
|
4597
|
+
"name": "text"
|
4598
|
+
}
|
4599
|
+
],
|
4516
4600
|
"slots": [
|
4517
4601
|
{
|
4518
4602
|
"description": "This slot is for passing the content before the body",
|
@@ -4525,6 +4609,14 @@
|
|
4525
4609
|
{
|
4526
4610
|
"description": "This slot is for passing the content after the body",
|
4527
4611
|
"name": "after-body"
|
4612
|
+
},
|
4613
|
+
{
|
4614
|
+
"description": "This slot is for passing `mdc-link` component within the footer section.",
|
4615
|
+
"name": "footer-link"
|
4616
|
+
},
|
4617
|
+
{
|
4618
|
+
"description": "This slot is for passing primary variant of `mdc-button` component within the footer section.",
|
4619
|
+
"name": "footer-button-primary"
|
4528
4620
|
}
|
4529
4621
|
],
|
4530
4622
|
"members": [
|
@@ -5049,7 +5141,7 @@
|
|
5049
5141
|
"module": "/src/components/buttonsimple/buttonsimple.component"
|
5050
5142
|
},
|
5051
5143
|
"tagName": "mdc-cardbutton",
|
5052
|
-
"jsDoc": "/**\n * cardbutton component looks like a card and behaves as a button component.\n *\n * **Note**: This is a single selection card i.e. interacting anywhere on the card would trigger the click event.\n * Make sure to pass only non-interactable elements within the slots.\n *\n * @tagname mdc-cardbutton\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @slot before-body - This slot is for passing the content before the body\n * @slot body - This slot is for passing the text content for the card\n * @slot after-body - This slot is for passing the content after the body\n
|
5144
|
+
"jsDoc": "/**\n * cardbutton component looks like a card and behaves as a button component.\n *\n * **Note**: This is a single selection card i.e. interacting anywhere on the card would trigger the click event.\n * Make sure to pass only non-interactable elements within the slots.\n *\n * @tagname mdc-cardbutton\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @event click - (React: onClick) Event that gets dispatched when the card is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the card.\n * It fires the click event when enter key is used.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the card.\n * It fires the click event when space key is used.\n * @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.\n *\n * @slot before-body - This slot is for passing the content before the body\n * @slot body - This slot is for passing the text content for the card\n * @slot after-body - This slot is for passing the content after the body\n * @slot footer-link - This slot is for passing `mdc-link` component within the footer section.\n * @slot footer-button-primary - This slot is for passing primary variant of `mdc-button` component within the footer section.\n *\n * @csspart header - The header part of the card\n * @csspart icon - The icon part of the card header\n * @csspart body - The body part of the card\n * @csspart image - The image part of the card\n * @csspart footer - The footer part of the card\n * @csspart footer-link - The link part of the card footer\n * @csspart footer-button-primary - The primary button part of the card footer\n * @csspart footer-button-secondary - The secondary button part of the card footer\n * @csspart icon-button - The icon button part of the card header\n * @csspart text - The text part of the card\n *\n * @cssproperty --mdc-card-width - The width of the card\n */",
|
5053
5145
|
"customElement": true,
|
5054
5146
|
"attributes": [
|
5055
5147
|
{
|
@@ -5307,6 +5399,110 @@
|
|
5307
5399
|
"kind": "class",
|
5308
5400
|
"description": "cardcheckbox component extends `mdc-card` and supports checkbox selection interaction addtionally.\n\nWhile using this component within a form or group of cards, make sure cards are in a role = \"checkbox-group\".\nThis card would have events for selected and unselected (similar to checkbox)\n\n**Note**: This is a single selection card i.e. interacting anywhere on the card would toggle the checked state.\nMake sure to pass only non-interactable elements within the slots.\n\nMake sure to pass the `card-title` mandatorily for this card.",
|
5309
5401
|
"name": "CardCheckbox",
|
5402
|
+
"cssProperties": [
|
5403
|
+
{
|
5404
|
+
"description": "The width of the card",
|
5405
|
+
"name": "--mdc-card-width",
|
5406
|
+
"inheritedFrom": {
|
5407
|
+
"name": "Card",
|
5408
|
+
"module": "src/components/card/card.component.ts"
|
5409
|
+
}
|
5410
|
+
}
|
5411
|
+
],
|
5412
|
+
"cssParts": [
|
5413
|
+
{
|
5414
|
+
"description": "The header part of the card",
|
5415
|
+
"name": "header",
|
5416
|
+
"inheritedFrom": {
|
5417
|
+
"name": "Card",
|
5418
|
+
"module": "src/components/card/card.component.ts"
|
5419
|
+
}
|
5420
|
+
},
|
5421
|
+
{
|
5422
|
+
"description": "The icon part of the card header",
|
5423
|
+
"name": "icon",
|
5424
|
+
"inheritedFrom": {
|
5425
|
+
"name": "Card",
|
5426
|
+
"module": "src/components/card/card.component.ts"
|
5427
|
+
}
|
5428
|
+
},
|
5429
|
+
{
|
5430
|
+
"description": "The body part of the card",
|
5431
|
+
"name": "body",
|
5432
|
+
"inheritedFrom": {
|
5433
|
+
"name": "Card",
|
5434
|
+
"module": "src/components/card/card.component.ts"
|
5435
|
+
}
|
5436
|
+
},
|
5437
|
+
{
|
5438
|
+
"description": "The image part of the card",
|
5439
|
+
"name": "image",
|
5440
|
+
"inheritedFrom": {
|
5441
|
+
"name": "Card",
|
5442
|
+
"module": "src/components/card/card.component.ts"
|
5443
|
+
}
|
5444
|
+
},
|
5445
|
+
{
|
5446
|
+
"description": "The footer part of the card",
|
5447
|
+
"name": "footer",
|
5448
|
+
"inheritedFrom": {
|
5449
|
+
"name": "Card",
|
5450
|
+
"module": "src/components/card/card.component.ts"
|
5451
|
+
}
|
5452
|
+
},
|
5453
|
+
{
|
5454
|
+
"description": "The link part of the card footer",
|
5455
|
+
"name": "footer-link",
|
5456
|
+
"inheritedFrom": {
|
5457
|
+
"name": "Card",
|
5458
|
+
"module": "src/components/card/card.component.ts"
|
5459
|
+
}
|
5460
|
+
},
|
5461
|
+
{
|
5462
|
+
"description": "The primary button part of the card footer",
|
5463
|
+
"name": "footer-button-primary",
|
5464
|
+
"inheritedFrom": {
|
5465
|
+
"name": "Card",
|
5466
|
+
"module": "src/components/card/card.component.ts"
|
5467
|
+
}
|
5468
|
+
},
|
5469
|
+
{
|
5470
|
+
"description": "The secondary button part of the card footer",
|
5471
|
+
"name": "footer-button-secondary",
|
5472
|
+
"inheritedFrom": {
|
5473
|
+
"name": "Card",
|
5474
|
+
"module": "src/components/card/card.component.ts"
|
5475
|
+
}
|
5476
|
+
},
|
5477
|
+
{
|
5478
|
+
"description": "The icon button part of the card header",
|
5479
|
+
"name": "icon-button",
|
5480
|
+
"inheritedFrom": {
|
5481
|
+
"name": "Card",
|
5482
|
+
"module": "src/components/card/card.component.ts"
|
5483
|
+
}
|
5484
|
+
},
|
5485
|
+
{
|
5486
|
+
"description": "The text part of the card",
|
5487
|
+
"name": "text",
|
5488
|
+
"inheritedFrom": {
|
5489
|
+
"name": "Card",
|
5490
|
+
"module": "src/components/card/card.component.ts"
|
5491
|
+
}
|
5492
|
+
},
|
5493
|
+
{
|
5494
|
+
"description": "The check part of the card",
|
5495
|
+
"name": "check"
|
5496
|
+
},
|
5497
|
+
{
|
5498
|
+
"description": "The check icon part of the card",
|
5499
|
+
"name": "check-icon"
|
5500
|
+
},
|
5501
|
+
{
|
5502
|
+
"description": "The check icon button part of the card",
|
5503
|
+
"name": "check-icon-button"
|
5504
|
+
}
|
5505
|
+
],
|
5310
5506
|
"slots": [
|
5311
5507
|
{
|
5312
5508
|
"description": "This slot is for passing the content before the body",
|
@@ -5879,7 +6075,7 @@
|
|
5879
6075
|
"module": "/src/components/card/card.component"
|
5880
6076
|
},
|
5881
6077
|
"tagName": "mdc-cardcheckbox",
|
5882
|
-
"jsDoc": "/**\n * cardcheckbox component extends `mdc-card` and supports checkbox selection interaction addtionally.\n *\n * While using this component within a form or group of cards, make sure cards are in a role = \"checkbox-group\".\n * This card would have events for selected and unselected (similar to checkbox)\n *\n * **Note**: This is a single selection card i.e. interacting anywhere on the card would toggle the checked state.\n * Make sure to pass only non-interactable elements within the slots.\n *\n * Make sure to pass the `card-title` mandatorily for this card.\n *\n * @tagname mdc-cardcheckbox\n *\n * @dependency mdc-icon\n * @dependency mdc-staticcheckbox\n * @dependency mdc-text\n *\n * @slot before-body - This slot is for passing the content before the body\n * @slot body - This slot is for passing the text content for the card\n * @slot after-body - This slot is for passing the content after the body\n *\n * @event click - (React: onClick) Event that gets dispatched when the card is clicked. It toggles the checked state.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the card.\n * It toggles the checked state when enter key is used.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the card.\n * It toggles the checked state when space key is used.\n * @event change - (React: onChange) Event that gets dispatched when the card state changes.\n * @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.\n *\n */",
|
6078
|
+
"jsDoc": "/**\n * cardcheckbox component extends `mdc-card` and supports checkbox selection interaction addtionally.\n *\n * While using this component within a form or group of cards, make sure cards are in a role = \"checkbox-group\".\n * This card would have events for selected and unselected (similar to checkbox)\n *\n * **Note**: This is a single selection card i.e. interacting anywhere on the card would toggle the checked state.\n * Make sure to pass only non-interactable elements within the slots.\n *\n * Make sure to pass the `card-title` mandatorily for this card.\n *\n * @tagname mdc-cardcheckbox\n *\n * @dependency mdc-icon\n * @dependency mdc-staticcheckbox\n * @dependency mdc-text\n *\n * @slot before-body - This slot is for passing the content before the body\n * @slot body - This slot is for passing the text content for the card\n * @slot after-body - This slot is for passing the content after the body\n * @slot footer-link - This slot is for passing `mdc-link` component within the footer section.\n * @slot footer-button-primary - This slot is for passing primary variant of `mdc-button` component within the footer section.\n *\n * @csspart header - The header part of the card\n * @csspart icon - The icon part of the card header\n * @csspart body - The body part of the card\n * @csspart image - The image part of the card\n * @csspart footer - The footer part of the card\n * @csspart footer-link - The link part of the card footer\n * @csspart footer-button-primary - The primary button part of the card footer\n * @csspart footer-button-secondary - The secondary button part of the card footer\n * @csspart icon-button - The icon button part of the card header\n * @csspart text - The text part of the card\n * @csspart check - The check part of the card\n * @csspart check-icon - The check icon part of the card\n * @csspart check-icon-button - The check icon button part of the card\n *\n * @cssproperty --mdc-card-width - The width of the card\n *\n * @event click - (React: onClick) Event that gets dispatched when the card is clicked. It toggles the checked state.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the card.\n * It toggles the checked state when enter key is used.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the card.\n * It toggles the checked state when space key is used.\n * @event change - (React: onChange) Event that gets dispatched when the card state changes.\n * @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.\n *\n */",
|
5883
6079
|
"customElement": true
|
5884
6080
|
}
|
5885
6081
|
],
|
@@ -5902,6 +6098,110 @@
|
|
5902
6098
|
"kind": "class",
|
5903
6099
|
"description": "cardradio component extends `mdc-card` and supports radio selection interaction addtionally.\n\nWhile using this component within a form or group of cards, make sure cards are in a role = \"radio-group\".\nThis card would have events for selected and unselected (similar to radio)\n\n**Note**: This is a single selection card i.e. interacting anywhere on the card would toggle the checked state.\nMake sure to pass only non-interactable elements within the slots.\n\nMake sure to pass the `card-title` mandatorily for this card.",
|
5904
6100
|
"name": "CardRadio",
|
6101
|
+
"cssProperties": [
|
6102
|
+
{
|
6103
|
+
"description": "The width of the card",
|
6104
|
+
"name": "--mdc-card-width",
|
6105
|
+
"inheritedFrom": {
|
6106
|
+
"name": "Card",
|
6107
|
+
"module": "src/components/card/card.component.ts"
|
6108
|
+
}
|
6109
|
+
}
|
6110
|
+
],
|
6111
|
+
"cssParts": [
|
6112
|
+
{
|
6113
|
+
"description": "The header part of the card",
|
6114
|
+
"name": "header",
|
6115
|
+
"inheritedFrom": {
|
6116
|
+
"name": "Card",
|
6117
|
+
"module": "src/components/card/card.component.ts"
|
6118
|
+
}
|
6119
|
+
},
|
6120
|
+
{
|
6121
|
+
"description": "The icon part of the card header",
|
6122
|
+
"name": "icon",
|
6123
|
+
"inheritedFrom": {
|
6124
|
+
"name": "Card",
|
6125
|
+
"module": "src/components/card/card.component.ts"
|
6126
|
+
}
|
6127
|
+
},
|
6128
|
+
{
|
6129
|
+
"description": "The body part of the card",
|
6130
|
+
"name": "body",
|
6131
|
+
"inheritedFrom": {
|
6132
|
+
"name": "Card",
|
6133
|
+
"module": "src/components/card/card.component.ts"
|
6134
|
+
}
|
6135
|
+
},
|
6136
|
+
{
|
6137
|
+
"description": "The image part of the card",
|
6138
|
+
"name": "image",
|
6139
|
+
"inheritedFrom": {
|
6140
|
+
"name": "Card",
|
6141
|
+
"module": "src/components/card/card.component.ts"
|
6142
|
+
}
|
6143
|
+
},
|
6144
|
+
{
|
6145
|
+
"description": "The footer part of the card",
|
6146
|
+
"name": "footer",
|
6147
|
+
"inheritedFrom": {
|
6148
|
+
"name": "Card",
|
6149
|
+
"module": "src/components/card/card.component.ts"
|
6150
|
+
}
|
6151
|
+
},
|
6152
|
+
{
|
6153
|
+
"description": "The link part of the card footer",
|
6154
|
+
"name": "footer-link",
|
6155
|
+
"inheritedFrom": {
|
6156
|
+
"name": "Card",
|
6157
|
+
"module": "src/components/card/card.component.ts"
|
6158
|
+
}
|
6159
|
+
},
|
6160
|
+
{
|
6161
|
+
"description": "The primary button part of the card footer",
|
6162
|
+
"name": "footer-button-primary",
|
6163
|
+
"inheritedFrom": {
|
6164
|
+
"name": "Card",
|
6165
|
+
"module": "src/components/card/card.component.ts"
|
6166
|
+
}
|
6167
|
+
},
|
6168
|
+
{
|
6169
|
+
"description": "The secondary button part of the card footer",
|
6170
|
+
"name": "footer-button-secondary",
|
6171
|
+
"inheritedFrom": {
|
6172
|
+
"name": "Card",
|
6173
|
+
"module": "src/components/card/card.component.ts"
|
6174
|
+
}
|
6175
|
+
},
|
6176
|
+
{
|
6177
|
+
"description": "The icon button part of the card header",
|
6178
|
+
"name": "icon-button",
|
6179
|
+
"inheritedFrom": {
|
6180
|
+
"name": "Card",
|
6181
|
+
"module": "src/components/card/card.component.ts"
|
6182
|
+
}
|
6183
|
+
},
|
6184
|
+
{
|
6185
|
+
"description": "The text part of the card",
|
6186
|
+
"name": "text",
|
6187
|
+
"inheritedFrom": {
|
6188
|
+
"name": "Card",
|
6189
|
+
"module": "src/components/card/card.component.ts"
|
6190
|
+
}
|
6191
|
+
},
|
6192
|
+
{
|
6193
|
+
"description": "The check part of the card",
|
6194
|
+
"name": "check"
|
6195
|
+
},
|
6196
|
+
{
|
6197
|
+
"description": "The check icon part of the card",
|
6198
|
+
"name": "check-icon"
|
6199
|
+
},
|
6200
|
+
{
|
6201
|
+
"description": "The check icon button part of the card",
|
6202
|
+
"name": "check-icon-button"
|
6203
|
+
}
|
6204
|
+
],
|
5905
6205
|
"slots": [
|
5906
6206
|
{
|
5907
6207
|
"description": "This slot is for passing the content before the body",
|
@@ -6519,7 +6819,7 @@
|
|
6519
6819
|
"module": "/src/components/card/card.component"
|
6520
6820
|
},
|
6521
6821
|
"tagName": "mdc-cardradio",
|
6522
|
-
"jsDoc": "/**\n * cardradio component extends `mdc-card` and supports radio selection interaction addtionally.\n *\n * While using this component within a form or group of cards, make sure cards are in a role = \"radio-group\".\n * This card would have events for selected and unselected (similar to radio)\n *\n * **Note**: This is a single selection card i.e. interacting anywhere on the card would toggle the checked state.\n * Make sure to pass only non-interactable elements within the slots.\n *\n * Make sure to pass the `card-title` mandatorily for this card.\n *\n * @tagname mdc-cardradio\n *\n * @dependency mdc-icon\n * @dependency mdc-staticradio\n * @dependency mdc-text\n *\n * @slot before-body - This slot is for passing the content before the body\n * @slot body - This slot is for passing the text content for the card\n * @slot after-body - This slot is for passing the content after the body\n *\n * @event click - (React: onClick) Event that gets dispatched when the card is clicked. It toggles the checked state.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the card.\n * It toggles the checked state when enter key is used.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the card.\n * It toggles the checked state when space key is used.\n * @event change - (React: onChange) Event that gets dispatched when the card state changes.\n * @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.\n *\n */",
|
6822
|
+
"jsDoc": "/**\n * cardradio component extends `mdc-card` and supports radio selection interaction addtionally.\n *\n * While using this component within a form or group of cards, make sure cards are in a role = \"radio-group\".\n * This card would have events for selected and unselected (similar to radio)\n *\n * **Note**: This is a single selection card i.e. interacting anywhere on the card would toggle the checked state.\n * Make sure to pass only non-interactable elements within the slots.\n *\n * Make sure to pass the `card-title` mandatorily for this card.\n *\n * @tagname mdc-cardradio\n *\n * @dependency mdc-icon\n * @dependency mdc-staticradio\n * @dependency mdc-text\n *\n * @slot before-body - This slot is for passing the content before the body\n * @slot body - This slot is for passing the text content for the card\n * @slot after-body - This slot is for passing the content after the body\n * @slot footer-link - This slot is for passing `mdc-link` component within the footer section.\n * @slot footer-button-primary - This slot is for passing primary variant of `mdc-button` component within the footer section.\n *\n * @csspart header - The header part of the card\n * @csspart icon - The icon part of the card header\n * @csspart body - The body part of the card\n * @csspart image - The image part of the card\n * @csspart footer - The footer part of the card\n * @csspart footer-link - The link part of the card footer\n * @csspart footer-button-primary - The primary button part of the card footer\n * @csspart footer-button-secondary - The secondary button part of the card footer\n * @csspart icon-button - The icon button part of the card header\n * @csspart text - The text part of the card\n * @csspart check - The check part of the card\n * @csspart check-icon - The check icon part of the card\n * @csspart check-icon-button - The check icon button part of the card\n *\n * @cssproperty --mdc-card-width - The width of the card\n *\n * @event click - (React: onClick) Event that gets dispatched when the card is clicked. It toggles the checked state.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the card.\n * It toggles the checked state when enter key is used.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the card.\n * It toggles the checked state when space key is used.\n * @event change - (React: onChange) Event that gets dispatched when the card state changes.\n * @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.\n *\n */",
|
6523
6823
|
"customElement": true
|
6524
6824
|
}
|
6525
6825
|
],
|
@@ -34480,6 +34780,392 @@
|
|
34480
34780
|
}
|
34481
34781
|
]
|
34482
34782
|
},
|
34783
|
+
{
|
34784
|
+
"kind": "javascript-module",
|
34785
|
+
"path": "components/toast/toast.component.js",
|
34786
|
+
"declarations": [
|
34787
|
+
{
|
34788
|
+
"kind": "class",
|
34789
|
+
"description": "`mdc-toast` is a lightweight, non-blocking alert used to inform users about application processes.\nIt supports success, warning, error, and custom messages, and is designed to be controlled externally.\n\n**Note**: When using `slot=\"toast-body-normal\"` and `slot=\"toast-body-detailed\"`, it's strongly recommended to wrap the content with `<mdc-text tagname=\"span\">`.\nIf not used, ensure your custom content is styled appropriately to match the design and alignment expectations of the toast component.",
|
34790
|
+
"name": "Toast",
|
34791
|
+
"cssProperties": [
|
34792
|
+
{
|
34793
|
+
"description": "Background color of the toast.",
|
34794
|
+
"name": "--mdc-toast-background-color"
|
34795
|
+
},
|
34796
|
+
{
|
34797
|
+
"description": "Border color of the toast.",
|
34798
|
+
"name": "--mdc-toast-border-color"
|
34799
|
+
},
|
34800
|
+
{
|
34801
|
+
"description": "Color of the header text in the toast.",
|
34802
|
+
"name": "--mdc-toast-header-text-color"
|
34803
|
+
},
|
34804
|
+
{
|
34805
|
+
"description": "Color of the icon in the toast.",
|
34806
|
+
"name": "--mdc-toast-icon-color"
|
34807
|
+
},
|
34808
|
+
{
|
34809
|
+
"description": "Elevation effect applied to the toast.",
|
34810
|
+
"name": "--mdc-toast-elevation-3"
|
34811
|
+
},
|
34812
|
+
{
|
34813
|
+
"description": "Width of the toast.",
|
34814
|
+
"name": "--mdc-toast-width"
|
34815
|
+
},
|
34816
|
+
{
|
34817
|
+
"description": "Padding inside the toast.",
|
34818
|
+
"name": "--mdc-toast-padding"
|
34819
|
+
}
|
34820
|
+
],
|
34821
|
+
"cssParts": [
|
34822
|
+
{
|
34823
|
+
"description": "The container for the toast's main content, including icon, text, and close button.",
|
34824
|
+
"name": "content-container"
|
34825
|
+
},
|
34826
|
+
{
|
34827
|
+
"description": "The icon shown at the start of the toast, styled by variant.",
|
34828
|
+
"name": "toast-prefix-icon"
|
34829
|
+
},
|
34830
|
+
{
|
34831
|
+
"description": "The container for the header and body content of the toast.",
|
34832
|
+
"name": "toast-content"
|
34833
|
+
},
|
34834
|
+
{
|
34835
|
+
"description": "The header text of the toast.",
|
34836
|
+
"name": "toast-header"
|
34837
|
+
},
|
34838
|
+
{
|
34839
|
+
"description": "The container for the toast's footer, including toggle and action buttons.",
|
34840
|
+
"name": "footer"
|
34841
|
+
},
|
34842
|
+
{
|
34843
|
+
"description": "The toggle button for showing/hiding detailed content.",
|
34844
|
+
"name": "footer-button-toggle"
|
34845
|
+
},
|
34846
|
+
{
|
34847
|
+
"description": "The close button for the toast.",
|
34848
|
+
"name": "toast-close-btn"
|
34849
|
+
}
|
34850
|
+
],
|
34851
|
+
"slots": [
|
34852
|
+
{
|
34853
|
+
"description": "Slot for custom content before the icon (only for custom variant).",
|
34854
|
+
"name": "content-prefix"
|
34855
|
+
},
|
34856
|
+
{
|
34857
|
+
"description": "Slot for the main body content of the toast.",
|
34858
|
+
"name": "toast-body-normal"
|
34859
|
+
},
|
34860
|
+
{
|
34861
|
+
"description": "Slot for additional detailed content, shown when expanded.",
|
34862
|
+
"name": "toast-body-detailed"
|
34863
|
+
},
|
34864
|
+
{
|
34865
|
+
"description": "Slot for custom footer content. Prefer using footer-button-primary and footer-button-secondary slots.",
|
34866
|
+
"name": "footer"
|
34867
|
+
},
|
34868
|
+
{
|
34869
|
+
"description": "Slot for passing the primary variant of `mdc-button` in the footer.",
|
34870
|
+
"name": "footer-button-primary"
|
34871
|
+
},
|
34872
|
+
{
|
34873
|
+
"description": "Slot for passing the secondary variant of `mdc-button` in the footer.",
|
34874
|
+
"name": "footer-button-secondary"
|
34875
|
+
}
|
34876
|
+
],
|
34877
|
+
"members": [
|
34878
|
+
{
|
34879
|
+
"kind": "field",
|
34880
|
+
"name": "variant",
|
34881
|
+
"type": {
|
34882
|
+
"text": "ToastVariant"
|
34883
|
+
},
|
34884
|
+
"description": "Type of toast\n- Can be `custom`, `success`, `warning` or `error`.",
|
34885
|
+
"default": "'custom'",
|
34886
|
+
"attribute": "variant",
|
34887
|
+
"reflects": true
|
34888
|
+
},
|
34889
|
+
{
|
34890
|
+
"kind": "field",
|
34891
|
+
"name": "closeButtonAriaLabel",
|
34892
|
+
"type": {
|
34893
|
+
"text": "string | undefined"
|
34894
|
+
},
|
34895
|
+
"description": "Defines aria-label attribute for close button accessibility",
|
34896
|
+
"attribute": "close-button-aria-label"
|
34897
|
+
},
|
34898
|
+
{
|
34899
|
+
"kind": "field",
|
34900
|
+
"name": "headerText",
|
34901
|
+
"type": {
|
34902
|
+
"text": "string | undefined"
|
34903
|
+
},
|
34904
|
+
"description": "Defines a string value to display as the title of the toast",
|
34905
|
+
"attribute": "header-text",
|
34906
|
+
"reflects": true
|
34907
|
+
},
|
34908
|
+
{
|
34909
|
+
"kind": "field",
|
34910
|
+
"name": "headerTagName",
|
34911
|
+
"type": {
|
34912
|
+
"text": "TagName"
|
34913
|
+
},
|
34914
|
+
"description": "The html tag to be used for the header text",
|
34915
|
+
"default": "'h2'",
|
34916
|
+
"attribute": "header-tag-name",
|
34917
|
+
"reflects": true
|
34918
|
+
},
|
34919
|
+
{
|
34920
|
+
"kind": "field",
|
34921
|
+
"name": "ariaLabel",
|
34922
|
+
"type": {
|
34923
|
+
"text": "string | null"
|
34924
|
+
},
|
34925
|
+
"default": "null",
|
34926
|
+
"description": "Defines aria-label attribute when header is not used",
|
34927
|
+
"attribute": "aria-label",
|
34928
|
+
"reflects": true
|
34929
|
+
},
|
34930
|
+
{
|
34931
|
+
"kind": "field",
|
34932
|
+
"name": "showMoreText",
|
34933
|
+
"type": {
|
34934
|
+
"text": "string | undefined"
|
34935
|
+
},
|
34936
|
+
"description": "Defines the text shown on the linkbutton when detailed content is hidden.",
|
34937
|
+
"attribute": "show-more-text",
|
34938
|
+
"reflects": true
|
34939
|
+
},
|
34940
|
+
{
|
34941
|
+
"kind": "field",
|
34942
|
+
"name": "showLessText",
|
34943
|
+
"type": {
|
34944
|
+
"text": "string | undefined"
|
34945
|
+
},
|
34946
|
+
"description": "Defines the text shown on the linkbutton when detailed content is visible.",
|
34947
|
+
"attribute": "show-less-text",
|
34948
|
+
"reflects": true
|
34949
|
+
},
|
34950
|
+
{
|
34951
|
+
"kind": "field",
|
34952
|
+
"name": "isDetailVisible",
|
34953
|
+
"type": {
|
34954
|
+
"text": "boolean"
|
34955
|
+
},
|
34956
|
+
"privacy": "private",
|
34957
|
+
"default": "false"
|
34958
|
+
},
|
34959
|
+
{
|
34960
|
+
"kind": "field",
|
34961
|
+
"name": "hasDetailedSlot",
|
34962
|
+
"type": {
|
34963
|
+
"text": "boolean"
|
34964
|
+
},
|
34965
|
+
"privacy": "private",
|
34966
|
+
"default": "false"
|
34967
|
+
},
|
34968
|
+
{
|
34969
|
+
"kind": "field",
|
34970
|
+
"name": "detailedElements",
|
34971
|
+
"type": {
|
34972
|
+
"text": "HTMLElement[]"
|
34973
|
+
},
|
34974
|
+
"privacy": "private"
|
34975
|
+
},
|
34976
|
+
{
|
34977
|
+
"kind": "field",
|
34978
|
+
"name": "hasFooterButtons",
|
34979
|
+
"type": {
|
34980
|
+
"text": "string"
|
34981
|
+
},
|
34982
|
+
"privacy": "private",
|
34983
|
+
"default": "''"
|
34984
|
+
},
|
34985
|
+
{
|
34986
|
+
"kind": "method",
|
34987
|
+
"name": "closeToast",
|
34988
|
+
"privacy": "private",
|
34989
|
+
"description": "Fired when Close Button is clicked using mouse or keyboard.\nThis method dispatches the close event.\nIt is used to notify that the toast should be closed."
|
34990
|
+
},
|
34991
|
+
{
|
34992
|
+
"kind": "method",
|
34993
|
+
"name": "toggleDetailVisibility",
|
34994
|
+
"privacy": "private"
|
34995
|
+
},
|
34996
|
+
{
|
34997
|
+
"kind": "method",
|
34998
|
+
"name": "updateDetailedSlotPresence",
|
34999
|
+
"privacy": "private"
|
35000
|
+
},
|
35001
|
+
{
|
35002
|
+
"kind": "method",
|
35003
|
+
"name": "updateFooterButtonsPresence",
|
35004
|
+
"privacy": "private"
|
35005
|
+
},
|
35006
|
+
{
|
35007
|
+
"kind": "method",
|
35008
|
+
"name": "renderIcon",
|
35009
|
+
"privacy": "protected",
|
35010
|
+
"parameters": [
|
35011
|
+
{
|
35012
|
+
"name": "iconName",
|
35013
|
+
"type": {
|
35014
|
+
"text": "string"
|
35015
|
+
}
|
35016
|
+
}
|
35017
|
+
]
|
35018
|
+
},
|
35019
|
+
{
|
35020
|
+
"kind": "method",
|
35021
|
+
"name": "shouldRenderToggleButton",
|
35022
|
+
"privacy": "private"
|
35023
|
+
},
|
35024
|
+
{
|
35025
|
+
"kind": "method",
|
35026
|
+
"name": "renderToggleDetailButton",
|
35027
|
+
"privacy": "private"
|
35028
|
+
},
|
35029
|
+
{
|
35030
|
+
"kind": "method",
|
35031
|
+
"name": "renderHeader",
|
35032
|
+
"privacy": "protected"
|
35033
|
+
},
|
35034
|
+
{
|
35035
|
+
"kind": "method",
|
35036
|
+
"name": "handleFooterSlot",
|
35037
|
+
"privacy": "protected",
|
35038
|
+
"return": {
|
35039
|
+
"type": {
|
35040
|
+
"text": "void"
|
35041
|
+
}
|
35042
|
+
},
|
35043
|
+
"parameters": [
|
35044
|
+
{
|
35045
|
+
"name": "tagname",
|
35046
|
+
"type": {
|
35047
|
+
"text": "string"
|
35048
|
+
}
|
35049
|
+
},
|
35050
|
+
{
|
35051
|
+
"name": "variant",
|
35052
|
+
"optional": true,
|
35053
|
+
"type": {
|
35054
|
+
"text": "string | undefined"
|
35055
|
+
}
|
35056
|
+
}
|
35057
|
+
]
|
35058
|
+
},
|
35059
|
+
{
|
35060
|
+
"kind": "method",
|
35061
|
+
"name": "renderFooter",
|
35062
|
+
"privacy": "protected",
|
35063
|
+
"description": "Renders the footer of the card if footer-link,\nfooter-button-primary, or footer-button-secondary slots are provided",
|
35064
|
+
"return": {
|
35065
|
+
"type": {
|
35066
|
+
"text": ""
|
35067
|
+
}
|
35068
|
+
},
|
35069
|
+
"inheritedFrom": {
|
35070
|
+
"name": "FooterMixin",
|
35071
|
+
"module": "utils/mixins/FooterMixin.js"
|
35072
|
+
}
|
35073
|
+
}
|
35074
|
+
],
|
35075
|
+
"events": [
|
35076
|
+
{
|
35077
|
+
"description": "(React: onClose) Dispatched when the Close Button is clicked using mouse or keyboard.",
|
35078
|
+
"name": "close",
|
35079
|
+
"reactName": "onClose"
|
35080
|
+
}
|
35081
|
+
],
|
35082
|
+
"attributes": [
|
35083
|
+
{
|
35084
|
+
"name": "variant",
|
35085
|
+
"type": {
|
35086
|
+
"text": "ToastVariant"
|
35087
|
+
},
|
35088
|
+
"description": "Type of toast\n- Can be `custom`, `success`, `warning` or `error`.",
|
35089
|
+
"default": "'custom'",
|
35090
|
+
"fieldName": "variant"
|
35091
|
+
},
|
35092
|
+
{
|
35093
|
+
"name": "close-button-aria-label",
|
35094
|
+
"type": {
|
35095
|
+
"text": "string | undefined"
|
35096
|
+
},
|
35097
|
+
"description": "Defines aria-label attribute for close button accessibility",
|
35098
|
+
"fieldName": "closeButtonAriaLabel"
|
35099
|
+
},
|
35100
|
+
{
|
35101
|
+
"name": "header-text",
|
35102
|
+
"type": {
|
35103
|
+
"text": "string | undefined"
|
35104
|
+
},
|
35105
|
+
"description": "Defines a string value to display as the title of the toast",
|
35106
|
+
"fieldName": "headerText"
|
35107
|
+
},
|
35108
|
+
{
|
35109
|
+
"name": "header-tag-name",
|
35110
|
+
"type": {
|
35111
|
+
"text": "TagName"
|
35112
|
+
},
|
35113
|
+
"description": "The html tag to be used for the header text",
|
35114
|
+
"default": "'h2'",
|
35115
|
+
"fieldName": "headerTagName"
|
35116
|
+
},
|
35117
|
+
{
|
35118
|
+
"name": "aria-label",
|
35119
|
+
"type": {
|
35120
|
+
"text": "string | null"
|
35121
|
+
},
|
35122
|
+
"default": "null",
|
35123
|
+
"description": "Defines aria-label attribute when header is not used",
|
35124
|
+
"fieldName": "ariaLabel"
|
35125
|
+
},
|
35126
|
+
{
|
35127
|
+
"name": "show-more-text",
|
35128
|
+
"type": {
|
35129
|
+
"text": "string | undefined"
|
35130
|
+
},
|
35131
|
+
"description": "Defines the text shown on the linkbutton when detailed content is hidden.",
|
35132
|
+
"fieldName": "showMoreText"
|
35133
|
+
},
|
35134
|
+
{
|
35135
|
+
"name": "show-less-text",
|
35136
|
+
"type": {
|
35137
|
+
"text": "string | undefined"
|
35138
|
+
},
|
35139
|
+
"description": "Defines the text shown on the linkbutton when detailed content is visible.",
|
35140
|
+
"fieldName": "showLessText"
|
35141
|
+
}
|
35142
|
+
],
|
35143
|
+
"mixins": [
|
35144
|
+
{
|
35145
|
+
"name": "FooterMixin",
|
35146
|
+
"module": "/src/utils/mixins/FooterMixin"
|
35147
|
+
}
|
35148
|
+
],
|
35149
|
+
"superclass": {
|
35150
|
+
"name": "Component",
|
35151
|
+
"module": "/src/models"
|
35152
|
+
},
|
35153
|
+
"tagName": "mdc-toast",
|
35154
|
+
"jsDoc": "/**\n * `mdc-toast` is a lightweight, non-blocking alert used to inform users about application processes.\n * It supports success, warning, error, and custom messages, and is designed to be controlled externally.\n * \n * **Note**: When using `slot=\"toast-body-normal\"` and `slot=\"toast-body-detailed\"`, it's strongly recommended to wrap the content with `<mdc-text tagname=\"span\">`.\n * If not used, ensure your custom content is styled appropriately to match the design and alignment expectations of the toast component.\n * \n * @dependency mdc-icon\n * @dependency mdc-text\n * @dependency mdc-button\n * @dependency mdc-linkbutton\n *\n * @slot content-prefix - Slot for custom content before the icon (only for custom variant).\n * @slot toast-body-normal - Slot for the main body content of the toast.\n * @slot toast-body-detailed - Slot for additional detailed content, shown when expanded.\n * @slot footer - Slot for custom footer content. Prefer using footer-button-primary and footer-button-secondary slots.\n * @slot footer-button-primary - Slot for passing the primary variant of `mdc-button` in the footer.\n * @slot footer-button-secondary - Slot for passing the secondary variant of `mdc-button` in the footer.\n *\n * @tagname mdc-toast\n * \n * @event close - (React: onClose) Dispatched when the Close Button is clicked using mouse or keyboard.\n *\n * @csspart content-container - The container for the toast's main content, including icon, text, and close button.\n * @csspart toast-prefix-icon - The icon shown at the start of the toast, styled by variant.\n * @csspart toast-content - The container for the header and body content of the toast.\n * @csspart toast-header - The header text of the toast.\n * @csspart footer - The container for the toast's footer, including toggle and action buttons.\n * @csspart footer-button-toggle - The toggle button for showing/hiding detailed content.\n * @csspart toast-close-btn - The close button for the toast.\n *\n * @cssproperty --mdc-toast-background-color - Background color of the toast.\n * @cssproperty --mdc-toast-border-color - Border color of the toast.\n * @cssproperty --mdc-toast-header-text-color - Color of the header text in the toast.\n * @cssproperty --mdc-toast-icon-color - Color of the icon in the toast.\n * @cssproperty --mdc-toast-elevation-3 - Elevation effect applied to the toast.\n * @cssproperty --mdc-toast-width - Width of the toast.\n * @cssproperty --mdc-toast-padding - Padding inside the toast.\n */",
|
35155
|
+
"customElement": true
|
35156
|
+
}
|
35157
|
+
],
|
35158
|
+
"exports": [
|
35159
|
+
{
|
35160
|
+
"kind": "js",
|
35161
|
+
"name": "default",
|
35162
|
+
"declaration": {
|
35163
|
+
"name": "Toast",
|
35164
|
+
"module": "components/toast/toast.component.js"
|
35165
|
+
}
|
35166
|
+
}
|
35167
|
+
]
|
35168
|
+
},
|
34483
35169
|
{
|
34484
35170
|
"kind": "javascript-module",
|
34485
35171
|
"path": "components/toggle/toggle.component.js",
|