@umbraco-ui/uui-card 0.0.3 → 0.1.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/README.md +4 -0
- package/custom-elements.json +3 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.js +4 -5
- package/lib/uui-card.element.d.ts +1 -3
- package/package.json +3 -3
package/README.md
CHANGED
package/custom-elements.json
CHANGED
|
@@ -77,14 +77,14 @@
|
|
|
77
77
|
"events": [
|
|
78
78
|
{
|
|
79
79
|
"name": "open",
|
|
80
|
-
"description": "fires when the
|
|
80
|
+
"description": "fires when the card title is clicked"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
"name": "
|
|
83
|
+
"name": "selected",
|
|
84
84
|
"description": "fires when the media card is selected"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
|
-
"name": "
|
|
87
|
+
"name": "unselected",
|
|
88
88
|
"description": "fires when the media card is unselected"
|
|
89
89
|
}
|
|
90
90
|
]
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LitElement, css } from 'lit';
|
|
1
|
+
import { SelectOnlyMixin, SelectableMixin } from '@umbraco-ui/uui-base/lib/mixins';
|
|
3
2
|
import { defineElement } from '@umbraco-ui/uui-base/lib/registration';
|
|
3
|
+
import { LitElement, css } from 'lit';
|
|
4
4
|
import { property } from 'lit/decorators.js';
|
|
5
|
-
import {
|
|
5
|
+
import { UUIEvent } from '@umbraco-ui/uui-base/lib/events';
|
|
6
6
|
|
|
7
7
|
class UUICardEvent extends UUIEvent {
|
|
8
8
|
}
|
|
@@ -49,8 +49,7 @@ UUICardElement.styles = [
|
|
|
49
49
|
width: 100%;
|
|
50
50
|
justify-content: center;
|
|
51
51
|
box-sizing: border-box;
|
|
52
|
-
|
|
53
|
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
|
|
52
|
+
box-shadow: var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,0.12) , 0 1px 2px rgba(0,0,0,0.24));
|
|
54
53
|
border-radius: var(--uui-border-radius,3px);
|
|
55
54
|
min-height: var(--uui-layout-medium);
|
|
56
55
|
background-color: var(--uui-interface-surface,#fefefe);
|
|
@@ -2,9 +2,7 @@ import { LitElement } from 'lit';
|
|
|
2
2
|
declare const UUICardElement_base: (new (...args: any[]) => import("@umbraco-ui/uui-base/lib/mixins").SelectOnlyMixinInterface) & (new (...args: any[]) => import("@umbraco-ui/uui-base/lib/mixins").SelectableMixinInterface) & typeof LitElement;
|
|
3
3
|
/**
|
|
4
4
|
* @element uui-card
|
|
5
|
-
* @fires {UUICardEvent} open - fires when the
|
|
6
|
-
* @fires {UUISelectableEvent} select - fires when the media card is selected
|
|
7
|
-
* @fires {UUISelectableEvent} unselect - fires when the media card is unselected
|
|
5
|
+
* @fires {UUICardEvent} open - fires when the card title is clicked
|
|
8
6
|
* @description - Base card component to be extended by specific cards.
|
|
9
7
|
*/
|
|
10
8
|
export declare class UUICardElement extends UUICardElement_base {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ui/uui-card",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Umbraco",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"custom-elements.json"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@umbraco-ui/uui-base": "0.
|
|
33
|
+
"@umbraco-ui/uui-base": "0.1.1"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://uui.umbraco.com/?path=/story/uui-card",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "d91d346a0659f52de2a3c4746065c554f95e6328"
|
|
45
45
|
}
|