@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.
Files changed (77) hide show
  1. package/dist/frameworks/preact.d.ts +44 -0
  2. package/dist/frameworks/react.d.ts +44 -0
  3. package/dist/frameworks/solidjs.d.ts +44 -0
  4. package/dist/frameworks/svelte.d.ts +2 -0
  5. package/dist/frameworks/vue.d.ts +42 -0
  6. package/dist/sds-button/sds-button.d.ts.map +1 -1
  7. package/dist/sds-button/sds-button.js +0 -29
  8. package/dist/sds-button/sds-button.js.map +1 -1
  9. package/dist/sds-checkbox/sds-checkbox.d.ts.map +1 -1
  10. package/dist/sds-checkbox/sds-checkbox.js +0 -29
  11. package/dist/sds-checkbox/sds-checkbox.js.map +1 -1
  12. package/dist/sds-checkbox-group/sds-checkbox-group.d.ts +1 -14
  13. package/dist/sds-checkbox-group/sds-checkbox-group.d.ts.map +1 -1
  14. package/dist/sds-checkbox-group/sds-checkbox-group.js +0 -21
  15. package/dist/sds-checkbox-group/sds-checkbox-group.js.map +1 -1
  16. package/dist/sds-chip/sds-chip.d.ts +1 -13
  17. package/dist/sds-chip/sds-chip.d.ts.map +1 -1
  18. package/dist/sds-chip/sds-chip.js +0 -21
  19. package/dist/sds-chip/sds-chip.js.map +1 -1
  20. package/dist/sds-detail/sds-detail.d.ts +1 -13
  21. package/dist/sds-detail/sds-detail.d.ts.map +1 -1
  22. package/dist/sds-detail/sds-detail.js +0 -21
  23. package/dist/sds-detail/sds-detail.js.map +1 -1
  24. package/dist/sds-heading/sds-heading.d.ts +1 -13
  25. package/dist/sds-heading/sds-heading.d.ts.map +1 -1
  26. package/dist/sds-heading/sds-heading.js +0 -21
  27. package/dist/sds-heading/sds-heading.js.map +1 -1
  28. package/dist/sds-icon/sds-icon.d.ts +1 -13
  29. package/dist/sds-icon/sds-icon.d.ts.map +1 -1
  30. package/dist/sds-icon/sds-icon.js +0 -21
  31. package/dist/sds-icon/sds-icon.js.map +1 -1
  32. package/dist/sds-label/sds-label.d.ts +1 -13
  33. package/dist/sds-label/sds-label.d.ts.map +1 -1
  34. package/dist/sds-label/sds-label.js +0 -21
  35. package/dist/sds-label/sds-label.js.map +1 -1
  36. package/dist/sds-link/sds-link.d.ts +1 -13
  37. package/dist/sds-link/sds-link.d.ts.map +1 -1
  38. package/dist/sds-link/sds-link.js +0 -21
  39. package/dist/sds-link/sds-link.js.map +1 -1
  40. package/dist/sds-loader/sds-loader.d.ts +1 -13
  41. package/dist/sds-loader/sds-loader.d.ts.map +1 -1
  42. package/dist/sds-loader/sds-loader.js +0 -21
  43. package/dist/sds-loader/sds-loader.js.map +1 -1
  44. package/dist/sds-nav-card/sds-nav-card.d.ts +1 -13
  45. package/dist/sds-nav-card/sds-nav-card.d.ts.map +1 -1
  46. package/dist/sds-nav-card/sds-nav-card.js +0 -21
  47. package/dist/sds-nav-card/sds-nav-card.js.map +1 -1
  48. package/dist/sds-notification/sds-notification.d.ts +1 -13
  49. package/dist/sds-notification/sds-notification.d.ts.map +1 -1
  50. package/dist/sds-notification/sds-notification.js +0 -21
  51. package/dist/sds-notification/sds-notification.js.map +1 -1
  52. package/dist/sds-paragraph/sds-paragraph.d.ts +1 -13
  53. package/dist/sds-paragraph/sds-paragraph.d.ts.map +1 -1
  54. package/dist/sds-paragraph/sds-paragraph.js +0 -21
  55. package/dist/sds-paragraph/sds-paragraph.js.map +1 -1
  56. package/dist/sds-radio/sds-radio.d.ts +1 -14
  57. package/dist/sds-radio/sds-radio.d.ts.map +1 -1
  58. package/dist/sds-radio/sds-radio.js +0 -21
  59. package/dist/sds-radio/sds-radio.js.map +1 -1
  60. package/dist/sds-radio-group/sds-radio-group.d.ts +1 -14
  61. package/dist/sds-radio-group/sds-radio-group.d.ts.map +1 -1
  62. package/dist/sds-radio-group/sds-radio-group.js +0 -21
  63. package/dist/sds-radio-group/sds-radio-group.js.map +1 -1
  64. package/dist/sds-switch/sds-switch.d.ts +1 -13
  65. package/dist/sds-switch/sds-switch.d.ts.map +1 -1
  66. package/dist/sds-switch/sds-switch.js +0 -21
  67. package/dist/sds-switch/sds-switch.js.map +1 -1
  68. package/dist/sds-text/sds-text.d.ts +1 -13
  69. package/dist/sds-text/sds-text.d.ts.map +1 -1
  70. package/dist/sds-text/sds-text.js +0 -21
  71. package/dist/sds-text/sds-text.js.map +1 -1
  72. package/dist/sds-textfield/sds-textfield.d.ts +1 -13
  73. package/dist/sds-textfield/sds-textfield.d.ts.map +1 -1
  74. package/dist/sds-textfield/sds-textfield.js +0 -21
  75. package/dist/sds-textfield/sds-textfield.js.map +1 -1
  76. package/dist/sheriff-web-components.js +13 -20
  77. 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, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, e$2 = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
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
- border: 1px solid var(--sds-color-semantic-border-focus);
2104
- background: var(
2105
- --sds-color-global-lightblue-100
2106
- ); // TODO: Global variable used, should be replaced by a more spesific one
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
- "name": "@politiet/sheriff-web-components",
3
- "version": "1.0.0-beta.0",
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
- "./react-wrappers": {
20
- "import": "./dist/react-wrappers/index.js",
21
- "require": "./dist/react-wrappers/index.js",
22
- "types": "./dist/react-wrappers/index.d.ts"
23
- },
24
- "./sds-button": {
25
- "import": "./dist/sds-button/sds-button.js",
26
- "require": "./dist/sds-button/sds-button.js",
27
- "types": "./dist/sds-button/sds-button.d.ts"
28
- },
29
- "./sds-checkbox": {
30
- "import": "./dist/sds-checkbox/sds-checkbox.js",
31
- "require": "./dist/sds-checkbox/sds-checkbox.js",
32
- "types": "./dist/sds-checkbox/sds-checkbox.d.ts"
33
- },
34
- "./sds-checkbox-group": {
35
- "import": "./dist/sds-checkbox-group/sds-checkbox-group.js",
36
- "require": "./dist/sds-checkbox-group/sds-checkbox-group.js",
37
- "types": "./dist/sds-checkbox-group/sds-checkbox-group.d.ts"
38
- },
39
- "./sds-chip": {
40
- "import": "./dist/sds-chip/sds-chip.js",
41
- "require": "./dist/sds-chip/sds-chip.js",
42
- "types": "./dist/sds-chip/sds-chip.d.ts"
43
- },
44
- "./sds-detail": {
45
- "import": "./dist/sds-detail/sds-detail.js",
46
- "require": "./dist/sds-detail/sds-detail.js",
47
- "types": "./dist/sds-detail/sds-detail.d.ts"
48
- },
49
- "./sds-heading": {
50
- "import": "./dist/sds-heading/sds-heading.js",
51
- "require": "./dist/sds-heading/sds-heading.js",
52
- "types": "./dist/sds-heading/sds-heading.d.ts"
53
- },
54
- "./sds-icon": {
55
- "import": "./dist/sds-icon/sds-icon.js",
56
- "require": "./dist/sds-icon/sds-icon.js",
57
- "types": "./dist/sds-icon/sds-icon.d.ts"
58
- },
59
- "./sds-icon/icon-loader": {
60
- "import": "./dist/sds-icon/sds-icon-loader.js",
61
- "require": "./dist/sds-icon/sds-icon-loader.js",
62
- "types": "./dist/sds-icon/sds-icon-loader.d.ts"
63
- },
64
- "./sds-label": {
65
- "import": "./dist/sds-label/sds-label.js",
66
- "require": "./dist/sds-label/sds-label.js",
67
- "types": "./dist/sds-label/sds-label.d.ts"
68
- },
69
- "./sds-link": {
70
- "import": "./dist/sds-link/sds-link.js",
71
- "require": "./dist/sds-link/sds-link.js",
72
- "types": "./dist/sds-link/sds-link.d.ts"
73
- },
74
- "./sds-loader": {
75
- "import": "./dist/sds-loader/sds-loader.js",
76
- "require": "./dist/sds-loader/sds-loader.js",
77
- "types": "./dist/sds-loader/sds-loader.d.ts"
78
- },
79
- "./sds-nav-card": {
80
- "import": "./dist/sds-nav-card/sds-nav-card.js",
81
- "require": "./dist/sds-nav-card/sds-nav-card.js",
82
- "types": "./dist/sds-nav-card/sds-nav-card.d.ts"
83
- },
84
- "./sds-notification": {
85
- "import": "./dist/sds-notification/sds-notification.js",
86
- "require": "./dist/sds-notification/sds-notification.js",
87
- "types": "./dist/sds-notification/sds-notification.d.ts"
88
- },
89
- "./sds-paragraph": {
90
- "import": "./dist/sds-paragraph/sds-paragraph.js",
91
- "require": "./dist/sds-paragraph/sds-paragraph.js",
92
- "types": "./dist/sds-paragraph/sds-paragraph.d.ts"
93
- },
94
- "./sds-radio": {
95
- "import": "./dist/sds-radio/sds-radio.js",
96
- "require": "./dist/sds-radio/sds-radio.js",
97
- "types": "./dist/sds-radio/sds-radio.d.ts"
98
- },
99
- "./sds-radio-group": {
100
- "import": "./dist/sds-radio-group/sds-radio-group.js",
101
- "require": "./dist/sds-radio-group/sds-radio-group.js",
102
- "types": "./dist/sds-radio-group/sds-radio-group.d.ts"
103
- },
104
- "./sds-switch": {
105
- "import": "./dist/sds-switch/sds-switch.js",
106
- "require": "./dist/sds-switch/sds-switch.js",
107
- "types": "./dist/sds-switch/sds-switch.d.ts"
108
- },
109
- "./sds-text": {
110
- "import": "./dist/sds-text/sds-text.js",
111
- "require": "./dist/sds-text/sds-text.js",
112
- "types": "./dist/sds-text/sds-text.d.ts"
113
- },
114
- "./sds-textfield": {
115
- "import": "./dist/sds-textfield/sds-textfield.js",
116
- "require": "./dist/sds-textfield/sds-textfield.js",
117
- "types": "./dist/sds-textfield/sds-textfield.d.ts"
118
- }
119
- },
120
- "scripts": {
121
- "build-components": "tsc",
122
- "version-bump": "node ../../../scripts/bump-version.js"
123
- },
124
- "dependencies": {
125
- "lit": "^3.2.0"
126
- },
127
- "peerDependencies": {
128
- "@politiet/sheriff-css-framework": "^1.0.0-rc.0"
129
- },
130
- "author": "Politiets IT-enhet",
131
- "license": "ISC"
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
  }