@momentum-design/components 0.98.0 → 0.98.1
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 +27 -6
- package/dist/browser/index.js.map +3 -3
- 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 +21 -2
- 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/custom-elements.json +316 -16
- 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/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
|
],
|
@@ -10,15 +10,14 @@ import Component from '../../components/card';
|
|
10
10
|
* - Subtitle
|
11
11
|
* - Body
|
12
12
|
*
|
13
|
-
* The card can either be vertically or horizontally oriented.
|
13
|
+
* 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.
|
14
14
|
*
|
15
15
|
* There are 2 variants for the card that represent the border styling - 'border' and 'ghost'.
|
16
16
|
*
|
17
17
|
* To make this card interactive, use the following slots:
|
18
18
|
* - `icon-button`: This slot supports action icon buttons in the header section (maximum of 3 buttons).
|
19
19
|
* - `footer-link`: This slot is for passing `mdc-link` component within the footer section.
|
20
|
-
* - `footer-button-primary`: This slot is for passing primary variant of
|
21
|
-
* `mdc-button` component within the footer section.
|
20
|
+
* - `footer-button-primary`: This slot is for passing primary variant of `mdc-button` component within the footer section.
|
22
21
|
* - `footer-button-secondary`: This slot is for passing secondary variant of `mdc-button` component
|
23
22
|
* within the footer section.
|
24
23
|
*
|
@@ -35,14 +34,23 @@ import Component from '../../components/card';
|
|
35
34
|
* @slot footer - This slot is for passing custom footer content. Only use this if really needed,
|
36
35
|
* using the footer-link and footer-button slots is preferred.
|
37
36
|
*
|
37
|
+
* @csspart header - The header part of the card
|
38
|
+
* @csspart icon - The icon part of the card header
|
39
|
+
* @csspart body - The body part of the card
|
40
|
+
* @csspart image - The image part of the card
|
41
|
+
* @csspart footer - The footer part of the card
|
42
|
+
* @csspart footer-link - The link part of the card footer
|
43
|
+
* @csspart footer-button-primary - The primary button part of the card footer
|
44
|
+
* @csspart footer-button-secondary - The secondary button part of the card footer
|
45
|
+
* @csspart icon-button - The icon button part of the card header
|
46
|
+
* @csspart text - The text part of the card
|
47
|
+
*
|
38
48
|
* @tagname mdc-card
|
39
49
|
*
|
40
50
|
* @dependency mdc-icon
|
41
51
|
* @dependency mdc-text
|
42
52
|
*
|
43
|
-
* @
|
44
|
-
* @slot body - This slot is for passing the text content for the card
|
45
|
-
* @slot after-body - This slot is for passing the content after the body
|
53
|
+
* @cssproperty --mdc-card-width - The width of the card
|
46
54
|
*
|
47
55
|
*/
|
48
56
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
package/dist/react/card/index.js
CHANGED
@@ -13,15 +13,14 @@ import { TAG_NAME } from '../../components/card/card.constants';
|
|
13
13
|
* - Subtitle
|
14
14
|
* - Body
|
15
15
|
*
|
16
|
-
* The card can either be vertically or horizontally oriented.
|
16
|
+
* 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.
|
17
17
|
*
|
18
18
|
* There are 2 variants for the card that represent the border styling - 'border' and 'ghost'.
|
19
19
|
*
|
20
20
|
* To make this card interactive, use the following slots:
|
21
21
|
* - `icon-button`: This slot supports action icon buttons in the header section (maximum of 3 buttons).
|
22
22
|
* - `footer-link`: This slot is for passing `mdc-link` component within the footer section.
|
23
|
-
* - `footer-button-primary`: This slot is for passing primary variant of
|
24
|
-
* `mdc-button` component within the footer section.
|
23
|
+
* - `footer-button-primary`: This slot is for passing primary variant of `mdc-button` component within the footer section.
|
25
24
|
* - `footer-button-secondary`: This slot is for passing secondary variant of `mdc-button` component
|
26
25
|
* within the footer section.
|
27
26
|
*
|
@@ -38,14 +37,23 @@ import { TAG_NAME } from '../../components/card/card.constants';
|
|
38
37
|
* @slot footer - This slot is for passing custom footer content. Only use this if really needed,
|
39
38
|
* using the footer-link and footer-button slots is preferred.
|
40
39
|
*
|
40
|
+
* @csspart header - The header part of the card
|
41
|
+
* @csspart icon - The icon part of the card header
|
42
|
+
* @csspart body - The body part of the card
|
43
|
+
* @csspart image - The image part of the card
|
44
|
+
* @csspart footer - The footer part of the card
|
45
|
+
* @csspart footer-link - The link part of the card footer
|
46
|
+
* @csspart footer-button-primary - The primary button part of the card footer
|
47
|
+
* @csspart footer-button-secondary - The secondary button part of the card footer
|
48
|
+
* @csspart icon-button - The icon button part of the card header
|
49
|
+
* @csspart text - The text part of the card
|
50
|
+
*
|
41
51
|
* @tagname mdc-card
|
42
52
|
*
|
43
53
|
* @dependency mdc-icon
|
44
54
|
* @dependency mdc-text
|
45
55
|
*
|
46
|
-
* @
|
47
|
-
* @slot body - This slot is for passing the text content for the card
|
48
|
-
* @slot after-body - This slot is for passing the content after the body
|
56
|
+
* @cssproperty --mdc-card-width - The width of the card
|
49
57
|
*
|
50
58
|
*/
|
51
59
|
const reactWrapper = createComponent({
|
@@ -11,10 +11,6 @@ import Component from '../../components/cardbutton';
|
|
11
11
|
* @dependency mdc-icon
|
12
12
|
* @dependency mdc-text
|
13
13
|
*
|
14
|
-
* @slot before-body - This slot is for passing the content before the body
|
15
|
-
* @slot body - This slot is for passing the text content for the card
|
16
|
-
* @slot after-body - This slot is for passing the content after the body
|
17
|
-
*
|
18
14
|
* @event click - (React: onClick) Event that gets dispatched when the card is clicked.
|
19
15
|
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the card.
|
20
16
|
* It fires the click event when enter key is used.
|
@@ -22,6 +18,24 @@ import Component from '../../components/cardbutton';
|
|
22
18
|
* It fires the click event when space key is used.
|
23
19
|
* @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.
|
24
20
|
*
|
21
|
+
* @slot before-body - This slot is for passing the content before the body
|
22
|
+
* @slot body - This slot is for passing the text content for the card
|
23
|
+
* @slot after-body - This slot is for passing the content after the body
|
24
|
+
* @slot footer-link - This slot is for passing `mdc-link` component within the footer section.
|
25
|
+
* @slot footer-button-primary - This slot is for passing primary variant of `mdc-button` component within the footer section.
|
26
|
+
*
|
27
|
+
* @csspart header - The header part of the card
|
28
|
+
* @csspart icon - The icon part of the card header
|
29
|
+
* @csspart body - The body part of the card
|
30
|
+
* @csspart image - The image part of the card
|
31
|
+
* @csspart footer - The footer part of the card
|
32
|
+
* @csspart footer-link - The link part of the card footer
|
33
|
+
* @csspart footer-button-primary - The primary button part of the card footer
|
34
|
+
* @csspart footer-button-secondary - The secondary button part of the card footer
|
35
|
+
* @csspart icon-button - The icon button part of the card header
|
36
|
+
* @csspart text - The text part of the card
|
37
|
+
*
|
38
|
+
* @cssproperty --mdc-card-width - The width of the card
|
25
39
|
*/
|
26
40
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
27
41
|
onClick: EventName<MouseEvent>;
|
@@ -13,10 +13,6 @@ import { TAG_NAME } from '../../components/cardbutton/cardbutton.constants';
|
|
13
13
|
* @dependency mdc-icon
|
14
14
|
* @dependency mdc-text
|
15
15
|
*
|
16
|
-
* @slot before-body - This slot is for passing the content before the body
|
17
|
-
* @slot body - This slot is for passing the text content for the card
|
18
|
-
* @slot after-body - This slot is for passing the content after the body
|
19
|
-
*
|
20
16
|
* @event click - (React: onClick) Event that gets dispatched when the card is clicked.
|
21
17
|
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the card.
|
22
18
|
* It fires the click event when enter key is used.
|
@@ -24,6 +20,24 @@ import { TAG_NAME } from '../../components/cardbutton/cardbutton.constants';
|
|
24
20
|
* It fires the click event when space key is used.
|
25
21
|
* @event focus - (React: onFocus) Event that gets dispatched when the card receives focus.
|
26
22
|
*
|
23
|
+
* @slot before-body - This slot is for passing the content before the body
|
24
|
+
* @slot body - This slot is for passing the text content for the card
|
25
|
+
* @slot after-body - This slot is for passing the content after the body
|
26
|
+
* @slot footer-link - This slot is for passing `mdc-link` component within the footer section.
|
27
|
+
* @slot footer-button-primary - This slot is for passing primary variant of `mdc-button` component within the footer section.
|
28
|
+
*
|
29
|
+
* @csspart header - The header part of the card
|
30
|
+
* @csspart icon - The icon part of the card header
|
31
|
+
* @csspart body - The body part of the card
|
32
|
+
* @csspart image - The image part of the card
|
33
|
+
* @csspart footer - The footer part of the card
|
34
|
+
* @csspart footer-link - The link part of the card footer
|
35
|
+
* @csspart footer-button-primary - The primary button part of the card footer
|
36
|
+
* @csspart footer-button-secondary - The secondary button part of the card footer
|
37
|
+
* @csspart icon-button - The icon button part of the card header
|
38
|
+
* @csspart text - The text part of the card
|
39
|
+
*
|
40
|
+
* @cssproperty --mdc-card-width - The width of the card
|
27
41
|
*/
|
28
42
|
const reactWrapper = createComponent({
|
29
43
|
tagName: TAG_NAME,
|
@@ -20,6 +20,24 @@ import Component from '../../components/cardcheckbox';
|
|
20
20
|
* @slot before-body - This slot is for passing the content before the body
|
21
21
|
* @slot body - This slot is for passing the text content for the card
|
22
22
|
* @slot after-body - This slot is for passing the content after the body
|
23
|
+
* @slot footer-link - This slot is for passing `mdc-link` component within the footer section.
|
24
|
+
* @slot footer-button-primary - This slot is for passing primary variant of `mdc-button` component within the footer section.
|
25
|
+
*
|
26
|
+
* @csspart header - The header part of the card
|
27
|
+
* @csspart icon - The icon part of the card header
|
28
|
+
* @csspart body - The body part of the card
|
29
|
+
* @csspart image - The image part of the card
|
30
|
+
* @csspart footer - The footer part of the card
|
31
|
+
* @csspart footer-link - The link part of the card footer
|
32
|
+
* @csspart footer-button-primary - The primary button part of the card footer
|
33
|
+
* @csspart footer-button-secondary - The secondary button part of the card footer
|
34
|
+
* @csspart icon-button - The icon button part of the card header
|
35
|
+
* @csspart text - The text part of the card
|
36
|
+
* @csspart check - The check part of the card
|
37
|
+
* @csspart check-icon - The check icon part of the card
|
38
|
+
* @csspart check-icon-button - The check icon button part of the card
|
39
|
+
*
|
40
|
+
* @cssproperty --mdc-card-width - The width of the card
|
23
41
|
*
|
24
42
|
* @event click - (React: onClick) Event that gets dispatched when the card is clicked. It toggles the checked state.
|
25
43
|
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the card.
|