@swisspost/design-system-styles-primeng 10.0.0-next.59 → 10.0.0-next.76
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 +19 -35
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/theme.d.ts +1 -0
- package/dist/theme.js +300 -0
- package/package.json +20 -18
- package/fesm2022/swisspost-design-system-styles-primeng.mjs +0 -27
- package/fesm2022/swisspost-design-system-styles-primeng.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/styles-primeng.module.d.ts +0 -6
- package/primeng-theme/_extensions.scss +0 -164
- package/primeng-theme/_icons.scss +0 -61
- package/primeng-theme/index.scss +0 -2
- package/public-api.d.ts +0 -1
package/README.md
CHANGED
|
@@ -1,52 +1,36 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Swiss Post Styles PrimeNG
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
-
Swiss Post
|
|
5
|
+
Swiss Post theme for the PrimeNG Datatable component.
|
|
6
6
|
|
|
7
7
|
## Documentation
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
[Styles for PrimeNG Documentation](https://design-system.post.ch/?path=/docs/d2112bed-c611-4098-a1ad-e654f7d622e7--docs)
|
|
9
|
+
- Technical docs: [Swiss Post Design System](https://design-system.post.ch/?path=/docs/d2112bed-c611-4098-a1ad-e654f7d622e7--docs)
|
|
12
10
|
|
|
13
11
|
## Installation
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
Install the Theme PrimeNG package
|
|
16
14
|
|
|
17
15
|
```bash
|
|
18
|
-
npm install
|
|
16
|
+
npm install @swisspost/design-system-styles-primeng
|
|
19
17
|
```
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
All three should be imported in the main style file of your Angular project, usually `src/styles.scss`.
|
|
23
|
-
|
|
24
|
-
Be sure to assign a layer to the Design System styles to avoid interference.
|
|
25
|
-
|
|
26
|
-
### With styles.css
|
|
19
|
+
## Usage
|
|
27
20
|
|
|
28
|
-
|
|
29
|
-
@use '@swisspost/design-system-styles-primeng/primeng-theme';
|
|
30
|
-
@use 'primeng/resources/primeng.css';
|
|
21
|
+
To use the theme, simply import it from the package and add it in the `app.config.ts` file of your project.
|
|
31
22
|
|
|
32
|
-
|
|
23
|
+
```javascript
|
|
24
|
+
import { providePrimeNG } from 'primeng/config';
|
|
25
|
+
import SwissPostPreset from '@swisspost/design-system-styles-primeng';
|
|
33
26
|
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
export const appConfig: ApplicationConfig = {
|
|
28
|
+
providers: [
|
|
29
|
+
providePrimeNG({
|
|
30
|
+
theme: {
|
|
31
|
+
preset: SwissPostPreset
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
};
|
|
36
36
|
```
|
|
37
|
-
|
|
38
|
-
## Contribute
|
|
39
|
-
|
|
40
|
-
[](CODE_OF_CONDUCT.md)
|
|
41
|
-
|
|
42
|
-
Considering supporting the Swiss Post Design System with your contribution? Whether you like to contribute new patterns, fix a bug, spotted a typo or have ideas for improvement - we'd love to hear from you. Learn how you can contribute to this project in the [header contribution guidelines](./CONTRIBUTING.md) and also take a look at the [general contribution guidelines](/CONTRIBUTING.md).
|
|
43
|
-
|
|
44
|
-
For any questions regarding the pattern library, you can reach out on the [discussions page](https://github.com/swisspost/design-system/discussions).
|
|
45
|
-
|
|
46
|
-
In order to keep our community open and inclusive, we expect you to read and follow our [Code of Conduct](/CODE_OF_CONDUCT.md).
|
|
47
|
-
|
|
48
|
-
## License
|
|
49
|
-
|
|
50
|
-
Software contained in this repository is published by the Swiss Post Ltd. under the [Apache 2.0 License](./LICENSE).
|
|
51
|
-
|
|
52
|
-
© 2024 Swiss Post, Ltd.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { swissPostPreset } from './theme';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { swissPostPreset } from './theme';
|
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const swissPostPreset: import("@primeuix/themes/types").Preset;
|
package/dist/theme.js
ADDED
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { definePreset } from '@primeuix/themes';
|
|
2
|
+
import Aura from '@primeuix/themes/aura';
|
|
3
|
+
export const swissPostPreset = definePreset(Aura, {
|
|
4
|
+
semantic: {
|
|
5
|
+
focusRing: {
|
|
6
|
+
width: 'var(--post-focus-outline-width)',
|
|
7
|
+
style: 'var(--post-focus-border-style)',
|
|
8
|
+
color: 'var(--post-focus-outline-color)',
|
|
9
|
+
offset: 'var(--post-focus-outline-offset)',
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
components: {
|
|
13
|
+
select: {
|
|
14
|
+
root: {
|
|
15
|
+
background: 'var(--post-scheme-color-interactive-input-enabled-bg)',
|
|
16
|
+
disabledBackground: 'var(--post-scheme-color-interactive-input-disabled-bg)',
|
|
17
|
+
filledBackground: 'var(--post-scheme-color-interactive-input-enabled-bg)',
|
|
18
|
+
filledHoverBackground: 'var(--post-scheme-color-interactive-input-hover-bg)',
|
|
19
|
+
filledFocusBackground: 'var(--post-scheme-color-interactive-input-enabled-bg)',
|
|
20
|
+
borderColor: 'var(--post-scheme-color-interactive-input-enabled-border)',
|
|
21
|
+
focusBorderColor: 'var(--post-scheme-color-interactive-input-enabled-border)',
|
|
22
|
+
hoverBorderColor: 'var(--post-scheme-color-interactive-input-hover-border)',
|
|
23
|
+
color: 'var(--post-scheme-color-interactive-input-enabled-fg)',
|
|
24
|
+
disabledColor: 'var(--post-scheme-color-interactive-input-disabled-fg)',
|
|
25
|
+
borderRadius: 'var(--post-core-dimension-2)',
|
|
26
|
+
},
|
|
27
|
+
dropdown: {
|
|
28
|
+
width: 'var(--post-device-sizing-notification-5)',
|
|
29
|
+
color: 'var(--post-scheme-color-interactive-input-enabled-fg)',
|
|
30
|
+
},
|
|
31
|
+
option: {
|
|
32
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
33
|
+
focusColor: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
34
|
+
focusBackground: 'var(--post-scheme-color-palette-bg-2)',
|
|
35
|
+
selectedBackground: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
36
|
+
selectedFocusBackground: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
37
|
+
selectedColor: 'var(--post-scheme-color-palette-bg-1)',
|
|
38
|
+
selectedFocusColor: 'var(--post-scheme-color-palette-bg-1)',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
button: {
|
|
42
|
+
root: {
|
|
43
|
+
borderRadius: 'var(--post-device-border-radius-round)',
|
|
44
|
+
label: {
|
|
45
|
+
fontWeight: '700',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
inputtext: {
|
|
50
|
+
root: {
|
|
51
|
+
background: 'var(--post-scheme-color-interactive-input-enabled-bg)',
|
|
52
|
+
disabledBackground: 'var(--post-scheme-color-interactive-input-disabled-bg)',
|
|
53
|
+
filledBackground: 'var(--post-scheme-color-interactive-input-enabled-bg)',
|
|
54
|
+
filledHoverBackground: 'var(--post-scheme-color-interactive-input-hover-bg)',
|
|
55
|
+
filledFocusBackground: 'var(--post-scheme-color-interactive-input-enabled-bg)',
|
|
56
|
+
borderColor: 'var(--post-scheme-color-interactive-input-enabled-border)',
|
|
57
|
+
focusBorderColor: 'var(--post-scheme-color-interactive-input-enabled-border)',
|
|
58
|
+
hoverBorderColor: 'var(--post-scheme-color-interactive-input-hover-border)',
|
|
59
|
+
color: 'var(--post-scheme-color-interactive-input-enabled-fg)',
|
|
60
|
+
disabledColor: 'var(--post-scheme-color-interactive-input-disabled-fg)',
|
|
61
|
+
borderRadius: 'var(--post-core-dimension-2)',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
checkbox: {
|
|
65
|
+
root: {
|
|
66
|
+
borderRadius: 'var(--post-core-dimension-2)',
|
|
67
|
+
borderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke)',
|
|
68
|
+
focusBorderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke)',
|
|
69
|
+
hoverBorderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke)',
|
|
70
|
+
checkedBorderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke)',
|
|
71
|
+
checkedHoverBorderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke)',
|
|
72
|
+
background: 'transparent',
|
|
73
|
+
checkedBackground: 'transparent',
|
|
74
|
+
checkedHoverBackground: 'transparent',
|
|
75
|
+
disabledBackground: 'transparent',
|
|
76
|
+
filledBackground: 'transparent',
|
|
77
|
+
checkedDisabledBorderColor: 'var(--post-scheme-color-interactive-primary-disabled-fg4)',
|
|
78
|
+
width: 'var(--post-device-sizing-interactive-icon-size4)',
|
|
79
|
+
height: 'var(--post-device-sizing-interactive-icon-size4)',
|
|
80
|
+
},
|
|
81
|
+
icon: {
|
|
82
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-stroke)',
|
|
83
|
+
checkedColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke)',
|
|
84
|
+
checkedHoverColor: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
85
|
+
disabledColor: 'var(--post-scheme-color-interactive-primary-disabled-fg4)',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
radiobutton: {
|
|
89
|
+
root: {
|
|
90
|
+
width: 'var(--post-device-sizing-interactive-icon-size4)',
|
|
91
|
+
height: 'var(--post-device-sizing-interactive-icon-size4)',
|
|
92
|
+
borderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke)',
|
|
93
|
+
focusBorderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke)',
|
|
94
|
+
hoverBorderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke)',
|
|
95
|
+
checkedBorderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke)',
|
|
96
|
+
checkedHoverBorderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke)',
|
|
97
|
+
checkedDisabledBorderColor: 'var(--post-scheme-color-interactive-primary-disabled-fg4)',
|
|
98
|
+
background: 'transparent',
|
|
99
|
+
checkedBackground: 'transparent',
|
|
100
|
+
checkedHoverBackground: 'transparent',
|
|
101
|
+
disabledBackground: 'transparent',
|
|
102
|
+
filledBackground: 'transparent',
|
|
103
|
+
},
|
|
104
|
+
icon: {
|
|
105
|
+
size: 'var(--post-device-sizing-icon-8)',
|
|
106
|
+
checkedColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke)',
|
|
107
|
+
checkedHoverColor: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
108
|
+
disabledColor: 'var(--post-scheme-color-interactive-primary-disabled-fg4)',
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
datatable: {
|
|
112
|
+
header: {
|
|
113
|
+
background: 'var(--post-scheme-color-palette-bg-2)',
|
|
114
|
+
borderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke4)',
|
|
115
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
116
|
+
},
|
|
117
|
+
columnTitle: {
|
|
118
|
+
fontWeight: '700',
|
|
119
|
+
},
|
|
120
|
+
columnFooter: {
|
|
121
|
+
fontWeight: '700',
|
|
122
|
+
},
|
|
123
|
+
headerCell: {
|
|
124
|
+
background: 'var(--post-scheme-color-palette-bg-2)',
|
|
125
|
+
hoverBackground: 'var(--post-scheme-color-palette-bg-2)',
|
|
126
|
+
selectedBackground: 'var(--post-scheme-color-palette-bg-2)',
|
|
127
|
+
borderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke4)',
|
|
128
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
129
|
+
hoverColor: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
130
|
+
selectedColor: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
131
|
+
focusRing: {
|
|
132
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
133
|
+
width: 'var(--post-focus-outline-width)',
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
row: {
|
|
137
|
+
background: 'var(--post-scheme-color-palette-bg-1)',
|
|
138
|
+
hoverBackground: 'var(--post-scheme-color-palette-bg-2)',
|
|
139
|
+
selectedBackground: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
140
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
141
|
+
hoverColor: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
142
|
+
selectedColor: 'var(--post-scheme-color-palette-bg-1)',
|
|
143
|
+
focusRing: {
|
|
144
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
145
|
+
width: 'var(--post-focus-outline-width)',
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
bodyCell: {
|
|
149
|
+
borderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke4)',
|
|
150
|
+
selectedBorderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke4)',
|
|
151
|
+
},
|
|
152
|
+
footerCell: {
|
|
153
|
+
background: 'var(--post-scheme-color-palette-bg-1)',
|
|
154
|
+
borderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke4)',
|
|
155
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
156
|
+
},
|
|
157
|
+
footer: {
|
|
158
|
+
background: 'var(--post-scheme-color-palette-bg-2)',
|
|
159
|
+
borderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke4)',
|
|
160
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
161
|
+
},
|
|
162
|
+
dropPoint: {
|
|
163
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
164
|
+
},
|
|
165
|
+
resizeIndicator: {
|
|
166
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
167
|
+
},
|
|
168
|
+
sortIcon: {
|
|
169
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
170
|
+
hoverColor: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
171
|
+
},
|
|
172
|
+
rowToggleButton: {
|
|
173
|
+
hoverBackground: 'var(--post-scheme-color-palette-bg-2)',
|
|
174
|
+
selectedHoverBackground: 'var(--post-scheme-color-palette-bg-2)',
|
|
175
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
176
|
+
hoverColor: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
177
|
+
selectedHoverColor: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
178
|
+
focusRing: {
|
|
179
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
180
|
+
width: 'var(--post-focus-outline-width)',
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
filter: {},
|
|
184
|
+
paginatorTop: {
|
|
185
|
+
borderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke4)',
|
|
186
|
+
},
|
|
187
|
+
paginatorBottom: {
|
|
188
|
+
borderColor: 'var(--post-scheme-color-interactive-primary-enabled-stroke4)',
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
paginator: {
|
|
192
|
+
root: {
|
|
193
|
+
borderRadius: 'var(--post-device-border-radius-2)',
|
|
194
|
+
background: 'var(--post-scheme-color-palette-bg-1)',
|
|
195
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
196
|
+
},
|
|
197
|
+
currentPageReport: {
|
|
198
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
199
|
+
},
|
|
200
|
+
navButton: {
|
|
201
|
+
selectedBackground: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
202
|
+
color: 'var(--post-scheme-color-interactive-primary-enabled-fg1)',
|
|
203
|
+
selectedColor: 'var(--post-scheme-color-interactive-primary-selected-fg3)',
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
// Overrides that are not doable with the components tokens
|
|
208
|
+
css: () => `
|
|
209
|
+
.p-datatable .p-datatable-tbody > tr > td,
|
|
210
|
+
.p-datatable .p-datatable-thead > tr > th,
|
|
211
|
+
.p-paginator-current {
|
|
212
|
+
font-size: var(--post-device-font-size-9);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.p-datatable.p-datatable-striped tbody.p-datatable-tbody > tr:nth-child(even) {
|
|
216
|
+
background-color: var(--post-scheme-color-palette-bg-2);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.p-datatable.p-datatable-striped tbody.p-datatable-tbody > tr:nth-child(odd) {
|
|
220
|
+
background-color: var(--post-scheme-color-palette-bg-1);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.p-datatable {
|
|
224
|
+
border: 1px solid var(--post-scheme-color-interactive-primary-enabled-stroke4);
|
|
225
|
+
border-radius: var(--post-device-border-radius-2);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.p-datatable .p-datatable-header {
|
|
229
|
+
border-start-start-radius: var(--post-device-border-radius-2);
|
|
230
|
+
border-start-end-radius: var(--post-device-border-radius-2);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.p-datatable:not(:has(.p-datatable-header)) .p-datatable-thead > tr:first-child > th:first-child {
|
|
234
|
+
border-start-start-radius: var(--post-device-border-radius-2);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.p-datatable:not(:has(.p-datatable-header)) .p-datatable-thead > tr:first-child > th:last-child {
|
|
238
|
+
border-start-end-radius: var(--post-device-border-radius-2);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.p-datatable:not(:has(p-paginator)) .p-datatable-tbody:last-child > tr:last-child > td {
|
|
242
|
+
border-color: transparent;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.p-datatable:not(:has(p-paginator)) .p-datatable-tbody:last-child > tr:last-child > td:first-child {
|
|
246
|
+
border-end-start-radius: var(--post-device-border-radius-2);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.p-datatable:not(:has(p-paginator)) .p-datatable-tbody:last-child > tr:last-child > td:last-child {
|
|
250
|
+
border-end-end-radius: var(--post-device-border-radius-2);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
p-button .p-button,
|
|
254
|
+
p-button .p-button:not(:disabled):hover,
|
|
255
|
+
p-select.p-select,
|
|
256
|
+
input.p-inputtext,
|
|
257
|
+
p-checkbox .p-checkbox-box,
|
|
258
|
+
p-radiobutton .p-radiobutton-box {
|
|
259
|
+
border-width: var(--post-device-border-width-default);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
p-button .p-button {
|
|
263
|
+
border-color: var(--post-scheme-color-interactive-button-primary-enabled-stroke);
|
|
264
|
+
background-color: var(--post-scheme-color-interactive-button-primary-enabled-bg);
|
|
265
|
+
color: var(--post-scheme-color-interactive-button-primary-enabled-fg);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
p-button .p-button:not(:disabled):hover {
|
|
269
|
+
border-color: var(--post-scheme-color-interactive-button-primary-hover-stroke);
|
|
270
|
+
background-color: var(--post-scheme-color-interactive-button-primary-hover-bg);
|
|
271
|
+
color: var(--post-scheme-color-interactive-button-primary-hover-fg);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
p-button .p-button-text.p-button-secondary,
|
|
275
|
+
p-button .p-button-text.p-button-info {
|
|
276
|
+
border-color: var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);
|
|
277
|
+
background-color: var(--post-scheme-color-interactive-button-tertiary-enabled-bg);
|
|
278
|
+
color: var(--post-scheme-color-interactive-button-tertiary-enabled-fg);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
p-button .p-button-text.p-button-secondary:not(:disabled):hover,
|
|
282
|
+
p-button .p-button-text.p-button-info:not(:disabled):hover {
|
|
283
|
+
border-color: var(--post-scheme-color-interactive-button-tertiary-hover-stroke);
|
|
284
|
+
background-color: var(--post-scheme-color-interactive-button-tertiary-hover-bg);
|
|
285
|
+
color: var(--post-scheme-color-interactive-button-tertiary-hover-fg);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
p-button .p-button-outlined {
|
|
289
|
+
border-color: var(--post-scheme-color-interactive-button-secondary-enabled-stroke);
|
|
290
|
+
background-color: var(--post-scheme-color-interactive-button-secondary-enabled-bg);
|
|
291
|
+
color: var(--post-scheme-color-interactive-button-secondary-enabled-fg);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
p-button .p-button-outlined:not(:disabled):hover {
|
|
295
|
+
border-color: var(--post-scheme-color-interactive-button-secondary-hover-stroke);
|
|
296
|
+
background-color: var(--post-scheme-color-interactive-button-secondary-hover-bg);
|
|
297
|
+
color: var(--post-scheme-color-interactive-button-secondary-hover-fg);
|
|
298
|
+
}
|
|
299
|
+
`,
|
|
300
|
+
});
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swisspost/design-system-styles-primeng",
|
|
3
|
-
"version": "10.0.0-next.
|
|
4
|
-
"description": "Swiss Post styles for PrimeNG datatable
|
|
3
|
+
"version": "10.0.0-next.76",
|
|
4
|
+
"description": "The Swiss Post styles for PrimeNG datatable",
|
|
5
5
|
"author": "Swiss Post <design-system@post.ch>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
7
9
|
"repository": {
|
|
8
10
|
"type": "git",
|
|
9
11
|
"url": "https://github.com/swisspost/design-system.git"
|
|
@@ -12,37 +14,37 @@
|
|
|
12
14
|
"bugs": {
|
|
13
15
|
"url": "https://github.com/swisspost/design-system/issues"
|
|
14
16
|
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"package.json",
|
|
20
|
+
"LICENSE",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
15
23
|
"publishConfig": {
|
|
16
|
-
"directory": "../../dist/styles-primeng",
|
|
17
24
|
"access": "public",
|
|
18
25
|
"linkDirectory": true
|
|
19
26
|
},
|
|
27
|
+
"private": false,
|
|
20
28
|
"peerDependencies": {
|
|
21
|
-
"primeng": "^
|
|
29
|
+
"primeng": "^21.0.0"
|
|
22
30
|
},
|
|
23
31
|
"dependencies": {
|
|
24
|
-
"@
|
|
32
|
+
"@primeuix/themes": "2.0.3",
|
|
33
|
+
"@swisspost/design-system-styles": "10.0.0-next.76",
|
|
25
34
|
"tslib": "2.8.1"
|
|
26
35
|
},
|
|
27
|
-
"
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"typescript": "5.9.3"
|
|
38
|
+
},
|
|
28
39
|
"keywords": [
|
|
29
|
-
"
|
|
40
|
+
"design-system",
|
|
30
41
|
"primeng",
|
|
31
42
|
"datatable",
|
|
32
43
|
"angular",
|
|
33
|
-
"design-system",
|
|
34
44
|
"ui",
|
|
35
45
|
"frontend"
|
|
36
46
|
],
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
"exports": {
|
|
40
|
-
"./package.json": {
|
|
41
|
-
"default": "./package.json"
|
|
42
|
-
},
|
|
43
|
-
".": {
|
|
44
|
-
"types": "./index.d.ts",
|
|
45
|
-
"default": "./fesm2022/swisspost-design-system-styles-primeng.mjs"
|
|
46
|
-
}
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "npx tsc"
|
|
47
49
|
}
|
|
48
50
|
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
class StylesPrimengModule {
|
|
5
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: StylesPrimengModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: StylesPrimengModule }); }
|
|
7
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: StylesPrimengModule }); }
|
|
8
|
-
}
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: StylesPrimengModule, decorators: [{
|
|
10
|
-
type: NgModule,
|
|
11
|
-
args: [{
|
|
12
|
-
declarations: [],
|
|
13
|
-
imports: [],
|
|
14
|
-
exports: [],
|
|
15
|
-
}]
|
|
16
|
-
}] });
|
|
17
|
-
|
|
18
|
-
/*
|
|
19
|
-
* Public API Surface of styles-primeng
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Generated bundle index. Do not edit.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
export { StylesPrimengModule };
|
|
27
|
-
//# sourceMappingURL=swisspost-design-system-styles-primeng.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"swisspost-design-system-styles-primeng.mjs","sources":["../../../projects/styles-primeng/src/lib/styles-primeng.module.ts","../../../projects/styles-primeng/src/public-api.ts","../../../projects/styles-primeng/src/swisspost-design-system-styles-primeng.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\n\n@NgModule({\n declarations: [],\n imports: [],\n exports: [],\n})\nexport class StylesPrimengModule {}\n","/*\n * Public API Surface of styles-primeng\n */\n\nexport * from './lib/styles-primeng.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAOa,mBAAmB,CAAA;+GAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAnB,mBAAmB,EAAA,CAAA,CAAA;gHAAnB,mBAAmB,EAAA,CAAA,CAAA;;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,EAAE;AACZ,iBAAA;;;ACND;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class StylesPrimengModule {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StylesPrimengModule, never>;
|
|
4
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StylesPrimengModule, never, never, never>;
|
|
5
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<StylesPrimengModule>;
|
|
6
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
@use '@swisspost/design-system-styles/core' as post;
|
|
2
|
-
|
|
3
|
-
@use '@swisspost/design-system-styles/tokens/utilities';
|
|
4
|
-
@use '@swisspost/design-system-styles/functions/tokens';
|
|
5
|
-
|
|
6
|
-
tokens.$default-map: utilities.$post-spacing;
|
|
7
|
-
|
|
8
|
-
.p-datatable-wrapper {
|
|
9
|
-
overflow: initial;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.p-datatable {
|
|
13
|
-
.p-datatable-thead > tr > th {
|
|
14
|
-
gap: tokens.get('utility-gap-8');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.p-sortable-column {
|
|
18
|
-
&.p-highlight:hover {
|
|
19
|
-
color: post.$black;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
p-sorticon {
|
|
23
|
-
display: inline-flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
height: 1.5rem;
|
|
26
|
-
transform: translateY(25%);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
sortalticon,
|
|
30
|
-
sortamountupalticon,
|
|
31
|
-
sortamountdownicon {
|
|
32
|
-
height: 1.5rem;
|
|
33
|
-
width: 1.5rem;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
p-columnfilter {
|
|
38
|
-
margin-inline: tokens.get('utility-gap-8');
|
|
39
|
-
height: 1.5rem;
|
|
40
|
-
|
|
41
|
-
.p-datatable-column-filter-button {
|
|
42
|
-
transform: translateY(-10px);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
filtericon {
|
|
46
|
-
height: 1.25rem;
|
|
47
|
-
width: 1.25rem;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&.p-datatable-striped .p-datatable-tbody > tr {
|
|
52
|
-
> td {
|
|
53
|
-
border-width: 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&:nth-child(2n + 1) {
|
|
57
|
-
background: post.$light;
|
|
58
|
-
color: post.$black;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.p-inputtext {
|
|
64
|
-
border-radius: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.p-dropdown {
|
|
68
|
-
&,
|
|
69
|
-
&-panel {
|
|
70
|
-
border-radius: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.p-dropdown-items {
|
|
74
|
-
margin: 0;
|
|
75
|
-
padding: 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.p-dropdown-trigger chevrondownicon {
|
|
79
|
-
height: 1.5rem;
|
|
80
|
-
width: 1.5rem;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.p-paginator {
|
|
85
|
-
justify-content: flex-end;
|
|
86
|
-
|
|
87
|
-
.p-paginator-current {
|
|
88
|
-
border: 0;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.p-dropdown .p-dropdown-label {
|
|
92
|
-
padding-block: 0.35rem;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.p-paginator-first {
|
|
96
|
-
border-start-start-radius: post.$btn-border-radius;
|
|
97
|
-
border-end-start-radius: post.$btn-border-radius;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.p-paginator-last {
|
|
101
|
-
border-start-end-radius: post.$btn-border-radius;
|
|
102
|
-
border-end-end-radius: post.$btn-border-radius;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.p-paginator-element {
|
|
106
|
-
&:not(.p-highlight) {
|
|
107
|
-
background-color: #fff;
|
|
108
|
-
|
|
109
|
-
&:hover {
|
|
110
|
-
background-color: #faf9f8;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&:not(:hover) {
|
|
114
|
-
color: post.$gray-60;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&:not(.p-paginator-last) {
|
|
119
|
-
margin-inline-end: -1 * post.$btn-border-width;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&.p-disabled {
|
|
123
|
-
display: none;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.p-button {
|
|
129
|
-
gap: tokens.get('utility-gap-8');
|
|
130
|
-
|
|
131
|
-
&.p-button-text {
|
|
132
|
-
color: post.$dark;
|
|
133
|
-
|
|
134
|
-
&:hover {
|
|
135
|
-
color: post.$black;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.p-checkbox-box {
|
|
141
|
-
border-radius: 0;
|
|
142
|
-
color: post.$black;
|
|
143
|
-
|
|
144
|
-
checkicon,
|
|
145
|
-
timesicon {
|
|
146
|
-
height: 100%;
|
|
147
|
-
width: 100%;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.p-sortable-column,
|
|
152
|
-
.p-column-filter,
|
|
153
|
-
.p-selectable-row,
|
|
154
|
-
.p-link,
|
|
155
|
-
.p-button,
|
|
156
|
-
.p-inputwrapper.p-dropdown,
|
|
157
|
-
.p-inputtext:not(.p-inputwrapper > .p-inputtext),
|
|
158
|
-
.p-checkbox,
|
|
159
|
-
.p-radiobutton {
|
|
160
|
-
@include post.focus-style {
|
|
161
|
-
box-shadow: none;
|
|
162
|
-
border-radius: post.$border-radius;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
@use '@swisspost/design-system-styles/core' as post;
|
|
2
|
-
|
|
3
|
-
@mixin custom-icon($icon) {
|
|
4
|
-
display: inline-block;
|
|
5
|
-
height: 1rem;
|
|
6
|
-
width: 1rem;
|
|
7
|
-
|
|
8
|
-
> * {
|
|
9
|
-
display: none;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@include post.mask-image($icon);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
plusicon {
|
|
16
|
-
@include custom-icon('plus');
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
trashicon {
|
|
20
|
-
@include custom-icon('trash');
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
chevrondownicon {
|
|
24
|
-
@include custom-icon('chevrondown');
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
filtericon {
|
|
28
|
-
@include custom-icon('filter');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
sortalticon {
|
|
32
|
-
@include custom-icon('updown');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
sortamountupalticon {
|
|
36
|
-
@include custom-icon('chevronup');
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
sortamountdownicon {
|
|
40
|
-
@include custom-icon('chevrondown');
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
arrowupicon {
|
|
44
|
-
@include custom-icon('arrowup');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
arrowdownicon {
|
|
48
|
-
@include custom-icon('arrowdown');
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
checkicon {
|
|
52
|
-
@include custom-icon('checkmark');
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
timesicon {
|
|
56
|
-
@include custom-icon('closex');
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.p-datatable-reorderablerow-handle {
|
|
60
|
-
@include custom-icon('burger');
|
|
61
|
-
}
|
package/primeng-theme/index.scss
DELETED
package/public-api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/styles-primeng.module';
|