@nordcom/nordstar-button 0.0.51 → 0.0.52
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/button.js +1 -1
- package/dist/index.css +17 -13
- package/package.json +2 -2
package/dist/button.js
CHANGED
package/dist/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_1xvik_1 {
|
|
2
2
|
-webkit-appearance: none;
|
|
3
3
|
appearance: none;
|
|
4
4
|
display: flex;
|
|
@@ -17,39 +17,43 @@
|
|
|
17
17
|
user-select: none;
|
|
18
18
|
transition: 250ms ease-in-out background-color, 250ms ease-in-out border-color, 250ms ease-in-out color, 250ms ease-in-out filter;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
._container_1xvik_1:not(:disabled, [aria-disabled=true]) {
|
|
21
21
|
cursor: pointer;
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
._container_1xvik_1:is(:disabled, [aria-disabled=true]) {
|
|
24
|
+
cursor: not-allowed;
|
|
25
|
+
opacity: 0.5;
|
|
26
|
+
}
|
|
27
|
+
._container_1xvik_1:is([data-color=default], [data-color=foreground]) {
|
|
24
28
|
--button-accent: var(--color-foreground);
|
|
25
29
|
--button-foreground: var(--color-background);
|
|
26
30
|
}
|
|
27
|
-
.
|
|
31
|
+
._container_1xvik_1[data-color=primary] {
|
|
28
32
|
--button-accent: var(--color-accent-primary);
|
|
29
33
|
--button-foreground: var(--color-foreground);
|
|
30
34
|
}
|
|
31
|
-
.
|
|
35
|
+
._container_1xvik_1[data-color=secondary] {
|
|
32
36
|
--button-accent: var(--color-accent-secondary);
|
|
33
37
|
--button-foreground: var(--color-foreground);
|
|
34
38
|
}
|
|
35
|
-
.
|
|
39
|
+
._container_1xvik_1[data-variant=solid] {
|
|
36
40
|
background-color: var(--button-accent);
|
|
37
41
|
border-color: var(--button-accent);
|
|
38
42
|
color: var(--button-foreground);
|
|
39
43
|
}
|
|
40
|
-
.
|
|
44
|
+
._container_1xvik_1[data-variant=solid]:is(:hover, :active):not(:disabled, [aria-disabled=true]) {
|
|
41
45
|
filter: brightness(50%);
|
|
42
46
|
}
|
|
43
|
-
.
|
|
47
|
+
._container_1xvik_1[data-variant=outline] {
|
|
44
48
|
background-color: transparent;
|
|
45
49
|
border-color: var(--button-accent);
|
|
46
50
|
color: var(--button-accent);
|
|
47
51
|
}
|
|
48
|
-
.
|
|
52
|
+
._container_1xvik_1[data-variant=outline]:is(:hover, :active):not(:disabled, [aria-disabled=true]) {
|
|
49
53
|
background-color: var(--button-accent);
|
|
50
54
|
color: var(--button-foreground);
|
|
51
55
|
}
|
|
52
|
-
.
|
|
56
|
+
._container_1xvik_1 [data-content] {
|
|
53
57
|
display: block;
|
|
54
58
|
text-transform: uppercase;
|
|
55
59
|
text-decoration: none;
|
|
@@ -57,16 +61,16 @@
|
|
|
57
61
|
font-weight: 700;
|
|
58
62
|
font-family: var(--font-heading);
|
|
59
63
|
}
|
|
60
|
-
.
|
|
64
|
+
._container_1xvik_1 [data-icon] {
|
|
61
65
|
display: contents;
|
|
62
66
|
}
|
|
63
|
-
.
|
|
67
|
+
._container_1xvik_1 [data-icon] > svg, ._container_1xvik_1 [data-icon] > img {
|
|
64
68
|
display: block;
|
|
65
69
|
width: 1rem;
|
|
66
70
|
aspect-ratio: 1/1;
|
|
67
71
|
stroke-width: 1rem;
|
|
68
72
|
}
|
|
69
|
-
.
|
|
73
|
+
._container_1xvik_1 :is([data-icon], [data-icon] svg) {
|
|
70
74
|
color: inherit;
|
|
71
75
|
font-size: inherit;
|
|
72
76
|
font-weight: inherit;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@nordcom/nordstar-button",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.52",
|
|
6
6
|
"description": "Nordstar Button",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"homepage": "https://nordstar.nordcom.io/docs/components/button/",
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@nordcom/nordstar-system": "0.0.
|
|
82
|
+
"@nordcom/nordstar-system": "0.0.52"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": ">=18",
|