@vonage/vwc-card 2.34.0 → 2.36.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.
Files changed (2) hide show
  1. package/package.json +8 -8
  2. package/readme.md +7 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/vwc-card",
3
- "version": "2.34.0",
3
+ "version": "2.36.0",
4
4
  "description": "card component",
5
5
  "homepage": "https://github.com/Vonage/vivid/tree/master/components/card#readme",
6
6
  "license": "ISC",
@@ -26,18 +26,18 @@
26
26
  "url": "https://github.com/Vonage/vivid/issues"
27
27
  },
28
28
  "dependencies": {
29
- "@vonage/vwc-button": "2.34.0",
30
- "@vonage/vwc-icon": "2.34.0",
29
+ "@vonage/vwc-button": "2.36.0",
30
+ "@vonage/vwc-icon": "2.36.0",
31
31
  "lit-element": "^2.4.0",
32
32
  "lit-html": "^1.3.0",
33
33
  "tslib": "^2.3.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@vonage/vvd-design-tokens": "2.34.0",
37
- "@vonage/vvd-foundation": "2.34.0",
38
- "@vonage/vvd-typography": "2.34.0",
39
- "@vonage/vvd-umbrella": "2.34.0",
36
+ "@vonage/vvd-design-tokens": "2.36.0",
37
+ "@vonage/vvd-foundation": "2.36.0",
38
+ "@vonage/vvd-typography": "2.36.0",
39
+ "@vonage/vvd-umbrella": "2.36.0",
40
40
  "typescript": "^4.3.2"
41
41
  },
42
- "gitHead": "e582f2efce9f76fba3cc893ffa005983c21e7d79"
42
+ "gitHead": "6390adde1ea18bbacc6f2f2c9d9b017b0746c208"
43
43
  }
package/readme.md CHANGED
@@ -5,16 +5,14 @@ Cards contain content and actions about a single subject.
5
5
  ## Usage
6
6
 
7
7
  ```
8
- <vwc-card heading="Hello Card!"
9
- icon="home">
8
+ <vwc-card heading="Hello Card!" icon="home">
10
9
  <div slot="media">Some media</div>
11
- <vwc-button slot="actions">Action Button</vwc-button>
10
+ <vwc-button slot="footer">Action Button</vwc-button>
12
11
  </vwc-card>
13
12
  ```
14
13
 
15
14
  ## API
16
15
 
17
-
18
16
  ### Properties/Attributes
19
17
 
20
18
  | name |attr/prop/reflected|type| description |
@@ -34,6 +32,7 @@ Cards contain content and actions about a single subject.
34
32
  | `media` | Slot to add anything inside the `media` area |
35
33
  | `footer` | Slot for action content placed the card footer |
36
34
  | `content` | Slot for content of the card. If exist, overrides the `heading`, `subtitle`, `card-text` and `header-icon`
35
+
37
36
  ## Styling tips
38
37
 
39
38
  ### Setting card's width
@@ -42,14 +41,15 @@ The width of the card is set via its wrapper's width. Hence, if you wrap a card
42
41
 
43
42
  ```html
44
43
  <div class="card-wrapper">
45
- <vwc-card></vwc-card>
44
+ <vwc-card></vwc-card>
46
45
  </div>
47
46
  ```
48
47
 
49
- Then your style should have:
48
+ Then your style should have:
49
+
50
50
  ```css
51
51
  .card-wrapper {
52
- width: 300px;
52
+ width: 300px;
53
53
  }
54
54
  ```
55
55