@oslokommune/punkt-css 15.4.2 → 15.4.4
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/CHANGELOG.md +36 -0
- package/dist/css/components/datepicker.css +18 -16
- package/dist/css/components/datepicker.min.css +1 -1
- package/dist/css/components/fileupload.css +3 -2
- package/dist/css/components/fileupload.min.css +1 -1
- package/dist/css/components/textinput.css +17 -9
- package/dist/css/components/textinput.min.css +1 -1
- package/dist/css/elements/input.css +17 -9
- package/dist/css/elements/input.min.css +1 -1
- package/dist/css/elements/select.css +19 -11
- package/dist/css/elements/select.min.css +1 -1
- package/dist/css/pkt-components.css +38 -27
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-docs.css +40 -29
- package/dist/css/pkt-docs.min.css +1 -1
- package/dist/css/pkt-elements.css +19 -11
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +40 -29
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/components/_datepicker.scss +5 -3
- package/dist/scss/components/_fileupload.scss +2 -1
- package/dist/scss/elements/_input.scss +20 -8
- package/package.json +2 -2
|
@@ -29,8 +29,9 @@ pkt-datepicker-multiple {
|
|
|
29
29
|
.pkt-input__container:not(:has(.pkt-input--fullwidth)) {
|
|
30
30
|
width: fit-content;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
.pkt-input__container {
|
|
33
33
|
border: 2px solid var(--pkt-color-input-border-normal);
|
|
34
|
+
background-color: var(--pkt-color-input-background-normal);
|
|
34
35
|
.pkt-input,
|
|
35
36
|
.pkt-input-prefix,
|
|
36
37
|
.pkt-input-suffix,
|
|
@@ -52,6 +53,7 @@ pkt-datepicker-multiple {
|
|
|
52
53
|
&:has(input:disabled),
|
|
53
54
|
&:has(input[readonly]:not(.ios-readonly-hack)) {
|
|
54
55
|
border-color: var(--pkt-color-input-border-disabled);
|
|
56
|
+
--fg-color: var(--pkt-color-input-text-disabled);
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
&:has(.pkt-input--counter-error) {
|
|
@@ -108,11 +110,11 @@ pkt-datepicker-multiple {
|
|
|
108
110
|
0px 2px 4px -2px rgba(0, 0, 0, 0.1),
|
|
109
111
|
0px 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
110
112
|
}
|
|
111
|
-
.pkt-datepicker__input:not(.pkt-datepicker--multiple) {
|
|
113
|
+
.pkt-datepicker__input:not(.pkt-datepicker--multiple):not(.pkt-datepicker--range) {
|
|
112
114
|
width: 8.3rem;
|
|
115
|
+
max-width: calc(100% - 3rem);
|
|
113
116
|
}
|
|
114
117
|
.pkt-datepicker__input.pkt-input--fullwidth:not(.pkt-datepicker--multiple) {
|
|
115
|
-
width: auto;
|
|
116
118
|
flex: 1;
|
|
117
119
|
}
|
|
118
120
|
.pkt-datepicker__input::-webkit-inner-spin-button,
|
|
@@ -240,6 +240,7 @@ pkt-fileupload,
|
|
|
240
240
|
padding: map.get(variables.$spacing, 'size-8');
|
|
241
241
|
min-width: 0;
|
|
242
242
|
overflow: hidden;
|
|
243
|
+
justify-content: end;
|
|
243
244
|
}
|
|
244
245
|
|
|
245
246
|
// In-progress items span full width
|
|
@@ -553,7 +554,7 @@ pkt-fileupload,
|
|
|
553
554
|
|
|
554
555
|
&--fallback {
|
|
555
556
|
.pkt-fileupload__queue-display__item__thumbnail__title {
|
|
556
|
-
@include typography.get-text('pkt-txt-
|
|
557
|
+
@include typography.get-text('pkt-txt-14');
|
|
557
558
|
}
|
|
558
559
|
}
|
|
559
560
|
}
|
|
@@ -103,6 +103,8 @@ pkt-select {
|
|
|
103
103
|
&.pkt-input__textinput--focus {
|
|
104
104
|
box-shadow: 0 0 0 2px var(--pkt-color-input-border-active);
|
|
105
105
|
border-color: var(--pkt-color-input-border-active);
|
|
106
|
+
//outline: 4px solid var(--pkt-color-border-states-focus);
|
|
107
|
+
// TODO: Hva skal vi gjøre her egentlig? Denne fjernet vi for årevis siden men kanskje vi skal ha den tilbake?
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
&:focus {
|
|
@@ -117,6 +119,7 @@ pkt-select {
|
|
|
117
119
|
opacity: 1;
|
|
118
120
|
background-color: var(--pkt-color-surface-default-gray);
|
|
119
121
|
border-color: var(--pkt-color-input-border-disabled);
|
|
122
|
+
color: var(--pkt-color-input-text-disabled);
|
|
120
123
|
cursor: inherit;
|
|
121
124
|
}
|
|
122
125
|
|
|
@@ -236,9 +239,10 @@ pkt-select {
|
|
|
236
239
|
&:hover .pkt-input-prefix,
|
|
237
240
|
&:hover .pkt-input-suffix,
|
|
238
241
|
&:hover .pkt-input-icon {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
+
&:not(:disabled) {
|
|
243
|
+
border-color: var(--pkt-color-input-border-active);
|
|
244
|
+
color: var(--pkt-color-input-text-hover);
|
|
245
|
+
--fg-color: var(--pkt-color-input-text-hover);
|
|
242
246
|
}
|
|
243
247
|
}
|
|
244
248
|
|
|
@@ -272,7 +276,6 @@ pkt-select {
|
|
|
272
276
|
}
|
|
273
277
|
|
|
274
278
|
&__range-inputs {
|
|
275
|
-
min-width: 17rem;
|
|
276
279
|
container: range / inline-size;
|
|
277
280
|
}
|
|
278
281
|
}
|
|
@@ -281,16 +284,25 @@ pkt-select {
|
|
|
281
284
|
border: 2px solid var(--pkt-color-input-border-normal);
|
|
282
285
|
display: grid;
|
|
283
286
|
grid-template-rows: auto auto;
|
|
284
|
-
grid-template-columns:
|
|
287
|
+
grid-template-columns: auto 3rem;
|
|
285
288
|
gap: 0;
|
|
286
|
-
> :nth-child(2) {
|
|
287
|
-
grid-column-start: span 2;
|
|
288
|
-
}
|
|
289
289
|
.pkt-input-prefix,
|
|
290
290
|
.pkt-input-suffix,
|
|
291
291
|
.pkt-input-icon,
|
|
292
292
|
.pkt-input {
|
|
293
293
|
border: 0;
|
|
294
294
|
}
|
|
295
|
+
.pkt-input-separator {
|
|
296
|
+
margin: 0 auto;
|
|
297
|
+
}
|
|
298
|
+
.pkt-input.pkt-datepicker__input.pkt-datepicker--range {
|
|
299
|
+
padding-left: 1rem;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
.pkt-input__container:has(> :first-child.pkt-input-prefix) {
|
|
303
|
+
> :nth-child(2) {
|
|
304
|
+
grid-column-start: span 2;
|
|
305
|
+
}
|
|
306
|
+
grid-template-columns: min-content auto 3rem;
|
|
295
307
|
}
|
|
296
308
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "15.4.
|
|
3
|
+
"version": "15.4.4",
|
|
4
4
|
"description": "CSS-rammeverket til Punkt, et designsystem laget av Oslo Origo",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo Origo",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
56
56
|
},
|
|
57
57
|
"license": "MIT",
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "f311283f212b9c79eab7c4a73e8bfc90751b1f61"
|
|
59
59
|
}
|