@politiet/sheriff-web-components 1.0.0-beta.0 → 1.0.0-beta.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/dist/frameworks/preact.d.ts +44 -0
- package/dist/frameworks/react.d.ts +44 -0
- package/dist/frameworks/solidjs.d.ts +44 -0
- package/dist/frameworks/svelte.d.ts +2 -0
- package/dist/frameworks/vue.d.ts +42 -0
- package/dist/sds-button/sds-button.d.ts.map +1 -1
- package/dist/sds-button/sds-button.js +0 -29
- package/dist/sds-button/sds-button.js.map +1 -1
- package/dist/sds-checkbox/sds-checkbox.d.ts.map +1 -1
- package/dist/sds-checkbox/sds-checkbox.js +0 -29
- package/dist/sds-checkbox/sds-checkbox.js.map +1 -1
- package/dist/sds-checkbox-group/sds-checkbox-group.d.ts +1 -14
- package/dist/sds-checkbox-group/sds-checkbox-group.d.ts.map +1 -1
- package/dist/sds-checkbox-group/sds-checkbox-group.js +0 -21
- package/dist/sds-checkbox-group/sds-checkbox-group.js.map +1 -1
- package/dist/sds-chip/sds-chip.d.ts +1 -13
- package/dist/sds-chip/sds-chip.d.ts.map +1 -1
- package/dist/sds-chip/sds-chip.js +0 -21
- package/dist/sds-chip/sds-chip.js.map +1 -1
- package/dist/sds-detail/sds-detail.d.ts +1 -13
- package/dist/sds-detail/sds-detail.d.ts.map +1 -1
- package/dist/sds-detail/sds-detail.js +0 -21
- package/dist/sds-detail/sds-detail.js.map +1 -1
- package/dist/sds-heading/sds-heading.d.ts +1 -13
- package/dist/sds-heading/sds-heading.d.ts.map +1 -1
- package/dist/sds-heading/sds-heading.js +0 -21
- package/dist/sds-heading/sds-heading.js.map +1 -1
- package/dist/sds-icon/sds-icon.d.ts +1 -13
- package/dist/sds-icon/sds-icon.d.ts.map +1 -1
- package/dist/sds-icon/sds-icon.js +0 -21
- package/dist/sds-icon/sds-icon.js.map +1 -1
- package/dist/sds-label/sds-label.d.ts +1 -13
- package/dist/sds-label/sds-label.d.ts.map +1 -1
- package/dist/sds-label/sds-label.js +0 -21
- package/dist/sds-label/sds-label.js.map +1 -1
- package/dist/sds-link/sds-link.d.ts +1 -13
- package/dist/sds-link/sds-link.d.ts.map +1 -1
- package/dist/sds-link/sds-link.js +0 -21
- package/dist/sds-link/sds-link.js.map +1 -1
- package/dist/sds-loader/sds-loader.d.ts +1 -13
- package/dist/sds-loader/sds-loader.d.ts.map +1 -1
- package/dist/sds-loader/sds-loader.js +0 -21
- package/dist/sds-loader/sds-loader.js.map +1 -1
- package/dist/sds-nav-card/sds-nav-card.d.ts +1 -13
- package/dist/sds-nav-card/sds-nav-card.d.ts.map +1 -1
- package/dist/sds-nav-card/sds-nav-card.js +0 -21
- package/dist/sds-nav-card/sds-nav-card.js.map +1 -1
- package/dist/sds-notification/sds-notification.d.ts +1 -13
- package/dist/sds-notification/sds-notification.d.ts.map +1 -1
- package/dist/sds-notification/sds-notification.js +0 -21
- package/dist/sds-notification/sds-notification.js.map +1 -1
- package/dist/sds-paragraph/sds-paragraph.d.ts +1 -13
- package/dist/sds-paragraph/sds-paragraph.d.ts.map +1 -1
- package/dist/sds-paragraph/sds-paragraph.js +0 -21
- package/dist/sds-paragraph/sds-paragraph.js.map +1 -1
- package/dist/sds-radio/sds-radio.d.ts +1 -14
- package/dist/sds-radio/sds-radio.d.ts.map +1 -1
- package/dist/sds-radio/sds-radio.js +0 -21
- package/dist/sds-radio/sds-radio.js.map +1 -1
- package/dist/sds-radio-group/sds-radio-group.d.ts +1 -14
- package/dist/sds-radio-group/sds-radio-group.d.ts.map +1 -1
- package/dist/sds-radio-group/sds-radio-group.js +0 -21
- package/dist/sds-radio-group/sds-radio-group.js.map +1 -1
- package/dist/sds-switch/sds-switch.d.ts +1 -13
- package/dist/sds-switch/sds-switch.d.ts.map +1 -1
- package/dist/sds-switch/sds-switch.js +0 -21
- package/dist/sds-switch/sds-switch.js.map +1 -1
- package/dist/sds-text/sds-text.d.ts +1 -13
- package/dist/sds-text/sds-text.d.ts.map +1 -1
- package/dist/sds-text/sds-text.js +0 -21
- package/dist/sds-text/sds-text.js.map +1 -1
- package/dist/sds-textfield/sds-textfield.d.ts +1 -13
- package/dist/sds-textfield/sds-textfield.d.ts.map +1 -1
- package/dist/sds-textfield/sds-textfield.js +0 -21
- package/dist/sds-textfield/sds-textfield.js.map +1 -1
- package/dist/sheriff-web-components.js +13 -20
- package/package.json +146 -130
|
@@ -587,7 +587,7 @@ function e$3(e2, r3) {
|
|
|
587
587
|
* Copyright 2017 Google LLC
|
|
588
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
589
589
|
*/
|
|
590
|
-
const t = { ATTRIBUTE: 1, CHILD: 2
|
|
590
|
+
const t = { ATTRIBUTE: 1, CHILD: 2 }, e$2 = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
|
|
591
591
|
class i {
|
|
592
592
|
constructor(t2) {
|
|
593
593
|
}
|
|
@@ -2037,6 +2037,11 @@ SDSLoader = __decorateClass$8([
|
|
|
2037
2037
|
t$1("sds-loader")
|
|
2038
2038
|
], SDSLoader);
|
|
2039
2039
|
const styles$7 = i$4`
|
|
2040
|
+
:host {
|
|
2041
|
+
display: block;
|
|
2042
|
+
box-sizing: border-box;
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2040
2045
|
.sds-nav-card {
|
|
2041
2046
|
color: var(--sds-color-semantic-text-default);
|
|
2042
2047
|
background-color: var(
|
|
@@ -2059,9 +2064,6 @@ const styles$7 = i$4`
|
|
|
2059
2064
|
gap: var(--sds-spacing-5);
|
|
2060
2065
|
text-align: left;
|
|
2061
2066
|
|
|
2062
|
-
border-radius: var(--sds-radius-card);
|
|
2063
|
-
border: 1px solid transparent;
|
|
2064
|
-
|
|
2065
2067
|
cursor: pointer;
|
|
2066
2068
|
|
|
2067
2069
|
& p {
|
|
@@ -2078,10 +2080,6 @@ const styles$7 = i$4`
|
|
|
2078
2080
|
background-color: var(
|
|
2079
2081
|
--sds-color-global-lightblue-300
|
|
2080
2082
|
); // TODO: Global variable used, should be replaced by a more spesific one
|
|
2081
|
-
|
|
2082
|
-
.sds-nav-card__heading {
|
|
2083
|
-
text-decoration: none;
|
|
2084
|
-
}
|
|
2085
2083
|
}
|
|
2086
2084
|
|
|
2087
2085
|
&:active,
|
|
@@ -2089,21 +2087,19 @@ const styles$7 = i$4`
|
|
|
2089
2087
|
background-color: var(--sds-color-semantic-surface-action-selected);
|
|
2090
2088
|
color: var(--sds-color-semantic-text-on-action);
|
|
2091
2089
|
|
|
2092
|
-
.sds-nav-card__heading {
|
|
2093
|
-
text-decoration: underline;
|
|
2094
|
-
text-decoration-thickness: 0.075rem;
|
|
2095
|
-
}
|
|
2096
|
-
|
|
2097
2090
|
::slotted(*) {
|
|
2098
2091
|
stroke: var(--sds-color-semantic-icon-on-action);
|
|
2099
2092
|
}
|
|
2100
2093
|
}
|
|
2101
2094
|
|
|
2102
2095
|
&:focus {
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2096
|
+
background: var(--sds-color-global-lightblue-100);
|
|
2097
|
+
outline: 2px solid var(--sds-color-semantic-surface-action-default);
|
|
2098
|
+
outline-offset: 1px;
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
&:active {
|
|
2102
|
+
outline: 0;
|
|
2107
2103
|
}
|
|
2108
2104
|
|
|
2109
2105
|
&:disabled {
|
|
@@ -2144,9 +2140,6 @@ const styles$7 = i$4`
|
|
|
2144
2140
|
font-weight: 700;
|
|
2145
2141
|
font-size: 1.5rem;
|
|
2146
2142
|
margin: 0;
|
|
2147
|
-
text-decoration: underline;
|
|
2148
|
-
text-decoration-thickness: 0.075rem;
|
|
2149
|
-
text-underline-offset: 0.146rem;
|
|
2150
2143
|
}
|
|
2151
2144
|
|
|
2152
2145
|
.sds-nav-card--medium {
|
package/package.json
CHANGED
|
@@ -1,132 +1,148 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
2
|
+
"name": "@politiet/sheriff-web-components",
|
|
3
|
+
"version": "1.0.0-beta.2",
|
|
4
|
+
"description": "Sheriff Design System Web Components Library",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"./dist/",
|
|
11
|
+
"./README.md"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"require": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./framework/preact": {
|
|
20
|
+
"types": "./dist/frameworks/preact.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"./framework/react": {
|
|
23
|
+
"types": "./dist/frameworks/react.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./framework/solidjs": {
|
|
26
|
+
"types": "./dist/frameworks/solidjs.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"./framework/svelte": {
|
|
29
|
+
"types": "./dist/frameworks/svelte.d.ts"
|
|
30
|
+
},
|
|
31
|
+
"./framework/vue": {
|
|
32
|
+
"types": "./dist/frameworks/vue.d.ts"
|
|
33
|
+
},
|
|
34
|
+
"./react-wrappers": {
|
|
35
|
+
"import": "./dist/react-wrappers/index.js",
|
|
36
|
+
"require": "./dist/react-wrappers/index.js",
|
|
37
|
+
"types": "./dist/react-wrappers/index.d.ts"
|
|
38
|
+
},
|
|
39
|
+
"./sds-button": {
|
|
40
|
+
"import": "./dist/sds-button/sds-button.js",
|
|
41
|
+
"require": "./dist/sds-button/sds-button.js",
|
|
42
|
+
"types": "./dist/sds-button/sds-button.d.ts"
|
|
43
|
+
},
|
|
44
|
+
"./sds-checkbox": {
|
|
45
|
+
"import": "./dist/sds-checkbox/sds-checkbox.js",
|
|
46
|
+
"require": "./dist/sds-checkbox/sds-checkbox.js",
|
|
47
|
+
"types": "./dist/sds-checkbox/sds-checkbox.d.ts"
|
|
48
|
+
},
|
|
49
|
+
"./sds-checkbox-group": {
|
|
50
|
+
"import": "./dist/sds-checkbox-group/sds-checkbox-group.js",
|
|
51
|
+
"require": "./dist/sds-checkbox-group/sds-checkbox-group.js",
|
|
52
|
+
"types": "./dist/sds-checkbox-group/sds-checkbox-group.d.ts"
|
|
53
|
+
},
|
|
54
|
+
"./sds-chip": {
|
|
55
|
+
"import": "./dist/sds-chip/sds-chip.js",
|
|
56
|
+
"require": "./dist/sds-chip/sds-chip.js",
|
|
57
|
+
"types": "./dist/sds-chip/sds-chip.d.ts"
|
|
58
|
+
},
|
|
59
|
+
"./sds-detail": {
|
|
60
|
+
"import": "./dist/sds-detail/sds-detail.js",
|
|
61
|
+
"require": "./dist/sds-detail/sds-detail.js",
|
|
62
|
+
"types": "./dist/sds-detail/sds-detail.d.ts"
|
|
63
|
+
},
|
|
64
|
+
"./sds-heading": {
|
|
65
|
+
"import": "./dist/sds-heading/sds-heading.js",
|
|
66
|
+
"require": "./dist/sds-heading/sds-heading.js",
|
|
67
|
+
"types": "./dist/sds-heading/sds-heading.d.ts"
|
|
68
|
+
},
|
|
69
|
+
"./sds-icon": {
|
|
70
|
+
"import": "./dist/sds-icon/sds-icon.js",
|
|
71
|
+
"require": "./dist/sds-icon/sds-icon.js",
|
|
72
|
+
"types": "./dist/sds-icon/sds-icon.d.ts"
|
|
73
|
+
},
|
|
74
|
+
"./sds-icon/icon-loader": {
|
|
75
|
+
"import": "./dist/sds-icon/sds-icon-loader.js",
|
|
76
|
+
"require": "./dist/sds-icon/sds-icon-loader.js",
|
|
77
|
+
"types": "./dist/sds-icon/sds-icon-loader.d.ts"
|
|
78
|
+
},
|
|
79
|
+
"./sds-label": {
|
|
80
|
+
"import": "./dist/sds-label/sds-label.js",
|
|
81
|
+
"require": "./dist/sds-label/sds-label.js",
|
|
82
|
+
"types": "./dist/sds-label/sds-label.d.ts"
|
|
83
|
+
},
|
|
84
|
+
"./sds-link": {
|
|
85
|
+
"import": "./dist/sds-link/sds-link.js",
|
|
86
|
+
"require": "./dist/sds-link/sds-link.js",
|
|
87
|
+
"types": "./dist/sds-link/sds-link.d.ts"
|
|
88
|
+
},
|
|
89
|
+
"./sds-loader": {
|
|
90
|
+
"import": "./dist/sds-loader/sds-loader.js",
|
|
91
|
+
"require": "./dist/sds-loader/sds-loader.js",
|
|
92
|
+
"types": "./dist/sds-loader/sds-loader.d.ts"
|
|
93
|
+
},
|
|
94
|
+
"./sds-nav-card": {
|
|
95
|
+
"import": "./dist/sds-nav-card/sds-nav-card.js",
|
|
96
|
+
"require": "./dist/sds-nav-card/sds-nav-card.js",
|
|
97
|
+
"types": "./dist/sds-nav-card/sds-nav-card.d.ts"
|
|
98
|
+
},
|
|
99
|
+
"./sds-notification": {
|
|
100
|
+
"import": "./dist/sds-notification/sds-notification.js",
|
|
101
|
+
"require": "./dist/sds-notification/sds-notification.js",
|
|
102
|
+
"types": "./dist/sds-notification/sds-notification.d.ts"
|
|
103
|
+
},
|
|
104
|
+
"./sds-paragraph": {
|
|
105
|
+
"import": "./dist/sds-paragraph/sds-paragraph.js",
|
|
106
|
+
"require": "./dist/sds-paragraph/sds-paragraph.js",
|
|
107
|
+
"types": "./dist/sds-paragraph/sds-paragraph.d.ts"
|
|
108
|
+
},
|
|
109
|
+
"./sds-radio": {
|
|
110
|
+
"import": "./dist/sds-radio/sds-radio.js",
|
|
111
|
+
"require": "./dist/sds-radio/sds-radio.js",
|
|
112
|
+
"types": "./dist/sds-radio/sds-radio.d.ts"
|
|
113
|
+
},
|
|
114
|
+
"./sds-radio-group": {
|
|
115
|
+
"import": "./dist/sds-radio-group/sds-radio-group.js",
|
|
116
|
+
"require": "./dist/sds-radio-group/sds-radio-group.js",
|
|
117
|
+
"types": "./dist/sds-radio-group/sds-radio-group.d.ts"
|
|
118
|
+
},
|
|
119
|
+
"./sds-switch": {
|
|
120
|
+
"import": "./dist/sds-switch/sds-switch.js",
|
|
121
|
+
"require": "./dist/sds-switch/sds-switch.js",
|
|
122
|
+
"types": "./dist/sds-switch/sds-switch.d.ts"
|
|
123
|
+
},
|
|
124
|
+
"./sds-text": {
|
|
125
|
+
"import": "./dist/sds-text/sds-text.js",
|
|
126
|
+
"require": "./dist/sds-text/sds-text.js",
|
|
127
|
+
"types": "./dist/sds-text/sds-text.d.ts"
|
|
128
|
+
},
|
|
129
|
+
"./sds-textfield": {
|
|
130
|
+
"import": "./dist/sds-textfield/sds-textfield.js",
|
|
131
|
+
"require": "./dist/sds-textfield/sds-textfield.js",
|
|
132
|
+
"types": "./dist/sds-textfield/sds-textfield.d.ts"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"scripts": {
|
|
136
|
+
"tidy-frameworks": "node ../../../scripts/delete-filetypes-from-folder.js --folder ./dist/frameworks --filetypes js,map",
|
|
137
|
+
"build-components": "tsc && npm run tidy-frameworks",
|
|
138
|
+
"version-bump": "node ../../../scripts/bump-version.js"
|
|
139
|
+
},
|
|
140
|
+
"dependencies": {
|
|
141
|
+
"lit": "^3.2.0"
|
|
142
|
+
},
|
|
143
|
+
"peerDependencies": {
|
|
144
|
+
"@politiet/sheriff-css-framework": "^1.0.0-rc.0"
|
|
145
|
+
},
|
|
146
|
+
"author": "Politiets IT-enhet",
|
|
147
|
+
"license": "ISC"
|
|
132
148
|
}
|