jsl-ui 10.0.0 → 10.0.2
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/docs/ButtonComponent.md +8 -0
- package/examples/showcase/grids.ts +71 -5
- package/examples/showcase/package.json +10 -0
- package/examples/showcase/showcase.css +37 -2
- package/examples/showcase/showcase.ts +7 -1
- package/lib/grid/slick-default-theme.css +32 -3
- package/lib/grid/slick.grid.css +3 -3
- package/lib/grid/slick.grid.js +1 -1
- package/lib/grid.css +748 -3306
- package/lib/index.css +42 -9
- package/lib/index.css.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/ui/button.css +18 -5
- package/package.json +3 -2
package/lib/ui/button.css
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
@import "./theme.css";
|
|
2
2
|
|
|
3
|
-
/* Shared by ButtonComponent and
|
|
3
|
+
/* Shared by ButtonComponent and manual buttons/links using .jsl-button.
|
|
4
|
+
Include link states so generic a:hover/a:visited rules cannot replace the text styling.
|
|
4
5
|
Override --jsl-button-* variables on a container or individual button. */
|
|
5
|
-
.jsl-button
|
|
6
|
+
.jsl-button,
|
|
7
|
+
.jsl-button:any-link {
|
|
6
8
|
--jsl-button-height: 2rem;
|
|
7
9
|
--jsl-button-padding: 0.875rem;
|
|
8
10
|
display: inline-flex;
|
|
@@ -12,6 +14,7 @@
|
|
|
12
14
|
position: relative;
|
|
13
15
|
box-sizing: border-box;
|
|
14
16
|
height: var(--jsl-button-height);
|
|
17
|
+
margin: 0;
|
|
15
18
|
padding: 0 var(--jsl-button-padding);
|
|
16
19
|
vertical-align: middle;
|
|
17
20
|
border: 1px solid transparent;
|
|
@@ -25,16 +28,25 @@
|
|
|
25
28
|
letter-spacing: normal;
|
|
26
29
|
text-align: center;
|
|
27
30
|
text-decoration: none;
|
|
31
|
+
text-transform: none;
|
|
28
32
|
white-space: nowrap;
|
|
29
33
|
cursor: pointer;
|
|
30
34
|
transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
|
|
31
35
|
}
|
|
32
36
|
|
|
33
|
-
.jsl-button
|
|
37
|
+
.jsl-button,
|
|
38
|
+
button.jsl-button[type] {
|
|
39
|
+
-webkit-appearance: none;
|
|
40
|
+
appearance: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.jsl-button:where(:hover),
|
|
44
|
+
.jsl-button:any-link:where(:hover) {
|
|
34
45
|
background: var(--jsl-button-primary-hover, var(--jsl-color-accent-hover));
|
|
35
46
|
}
|
|
36
47
|
|
|
37
|
-
.jsl-button:where(:active, .active, [aria-pressed="true"])
|
|
48
|
+
.jsl-button:where(:active, .active, [aria-pressed="true"]),
|
|
49
|
+
.jsl-button:any-link:where(:active, .active, [aria-pressed="true"]) {
|
|
38
50
|
background: var(--jsl-button-primary-active, var(--jsl-color-accent-active));
|
|
39
51
|
box-shadow: inset 0 0 0 1px currentColor;
|
|
40
52
|
}
|
|
@@ -120,7 +132,8 @@
|
|
|
120
132
|
}
|
|
121
133
|
|
|
122
134
|
.jsl-button:disabled,
|
|
123
|
-
.jsl-button.disabled
|
|
135
|
+
.jsl-button.disabled,
|
|
136
|
+
.jsl-button[aria-disabled="true"] {
|
|
124
137
|
background: var(--jsl-button-disabled-surface, var(--jsl-color-disabled-surface));
|
|
125
138
|
border-color: var(--jsl-button-disabled-border, var(--jsl-color-border-subtle));
|
|
126
139
|
color: var(--jsl-button-disabled-text, var(--jsl-color-disabled-text));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsl-ui",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.2",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"description": "javascript UI library",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"buildcss": "parcel build .\\grid.ts --no-scope-hoist && powershell Move-Item -LiteralPath \"lib\\index.css\" -Destination \"lib\\grid.css\" -Force && parcel build .\\index.ts --no-scope-hoist",
|
|
15
15
|
"build": "npm run buildcss && npm run copycss && npm run copyscss && tsc",
|
|
16
16
|
"test": "parcel examples/components/jsl-render.html",
|
|
17
|
-
"showcase": "parcel examples/showcase
|
|
17
|
+
"showcase": "parcel examples/showcase --port 1235",
|
|
18
|
+
"build:showcase": "parcel build examples/showcase --target showcase"
|
|
18
19
|
},
|
|
19
20
|
"author": "Philipp P.",
|
|
20
21
|
"devDependencies": {
|