@oslokommune/punkt-css 15.2.0 → 15.4.0

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.
@@ -6,7 +6,7 @@
6
6
  @forward 'spacing';
7
7
 
8
8
  // Default icon path
9
- $icon-path: 'https://punkt-cdn.oslo.kommune.no/15.2/icons' !default;
9
+ $icon-path: 'https://punkt-cdn.oslo.kommune.no/15.4/icons' !default;
10
10
 
11
11
  // Borders
12
12
  $border-width: (
@@ -230,6 +230,7 @@ pkt-fileupload,
230
230
  display: grid;
231
231
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
232
232
  gap: 1rem;
233
+ max-width: 100%;
233
234
 
234
235
  // Successfully uploaded thumbnails become grid items
235
236
  .pkt-fileupload__queue-display__item:has(.pkt-fileupload__queue-display__item__thumbnail) {
@@ -272,15 +273,16 @@ pkt-fileupload,
272
273
 
273
274
  &__item {
274
275
  display: grid;
275
- grid-template-columns: auto 1fr;
276
+ grid-template-columns: auto minmax(0, 1fr);
276
277
  align-items: center;
277
278
  gap: 0.5rem;
278
279
  padding: map.get(variables.$spacing, 'size-16');
279
280
  border: 2px solid var(--pkt-color-border-subtle);
280
281
 
282
+ container-type: inline-size;
283
+
281
284
  @include bp('tablet-big-up') {
282
- grid-template-columns: auto 1fr auto auto;
283
- align-items: end;
285
+ grid-template-columns: auto minmax(0, 1fr) auto auto;
284
286
  }
285
287
 
286
288
  // ----------------------------------------
@@ -303,6 +305,8 @@ pkt-fileupload,
303
305
  max-width: 100%;
304
306
  overflow: hidden; // Truncate component clamps internally; this prevents layout overflow
305
307
  white-space: normal;
308
+ overflow-wrap: anywhere;
309
+ word-break: break-word;
306
310
  align-self: center;
307
311
  margin: 0;
308
312
  }
@@ -672,11 +676,38 @@ pkt-fileupload,
672
676
  }
673
677
  }
674
678
 
679
+ .pkt-fileupload__queue-display__item {
680
+ container-type: inline-size;
681
+ }
682
+
683
+ @container (max-width: 560px) {
684
+ .pkt-fileupload__queue-display__item__actions {
685
+ flex-direction: column;
686
+ gap: 0.5rem;
687
+ }
688
+
689
+ .pkt-fileupload__queue-display__item__title {
690
+ -webkit-line-clamp: 2;
691
+ display: -webkit-box;
692
+ -webkit-box-orient: vertical;
693
+ overflow: hidden;
694
+ }
695
+ }
696
+
675
697
  // ============================================
676
698
  // WRAPPER INTEGRATION (InputWrapper)
677
699
  // ============================================
678
700
 
679
701
  .pkt-fileupload-wrapper {
702
+ &--full-width {
703
+ width: 100%;
704
+
705
+ .pkt-inputwrapper__fieldset {
706
+ width: 100%;
707
+ align-items: stretch;
708
+ }
709
+ }
710
+
680
711
  .pkt-inputwrapper__fieldset {
681
712
  margin-bottom: 0;
682
713
  }
@@ -771,7 +802,7 @@ pkt-fileupload,
771
802
  gap: 1rem;
772
803
 
773
804
  &__content {
774
- height: 75vh;
805
+ min-height: 75vh;
775
806
  grid-area: prev-start / prev-start / next-end / next-end;
776
807
  display: flex;
777
808
  align-items: center;
@@ -306,11 +306,14 @@ body.pkt-modal--open {
306
306
  &-wrapper {
307
307
  display: grid;
308
308
  grid-template-columns: 1fr;
309
- justify-content: center;
309
+ justify-items: center;
310
310
  align-items: center;
311
+ gap: map.get(variables.$spacing, 'size-8');
311
312
 
312
- .pkt-btn {
313
- justify-content: center;
313
+ &--buttonsFullWidthOnMobile {
314
+ .pkt-btn {
315
+ width: 100%;
316
+ }
314
317
  }
315
318
  }
316
319
  }
@@ -22,6 +22,10 @@
22
22
  &--fullwidth > div {
23
23
  width: 100%;
24
24
  }
25
+ &--fullwidth > div > .pkt-fileupload,
26
+ &--fullwidth > div > .pkt-fileupload-wrapper {
27
+ width: 100%;
28
+ }
25
29
  &-container {
26
30
  position: relative;
27
31
  border: 2px solid var(--pkt-color-border-gray);
@@ -33,9 +37,6 @@
33
37
  .pkt-preview__component {
34
38
  flex: 1 1 0;
35
39
  min-width: 0;
36
- div {
37
- justify-self: center;
38
- }
39
40
  }
40
41
  .pkt-preview__panel {
41
42
  flex: 0 0 auto;
@@ -45,6 +46,11 @@
45
46
  }
46
47
  }
47
48
  }
49
+ &__inner-container {
50
+ display: flex;
51
+ justify-content: center;
52
+ width: 100%;
53
+ }
48
54
  }
49
55
  &__panel {
50
56
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-css",
3
- "version": "15.2.0",
3
+ "version": "15.4.0",
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": "67c9a3c4ede793c0e6bf1e4611ae29d00cf072ee"
58
+ "gitHead": "0323bc56dc8636595ea48dd88dd966d363aac371"
59
59
  }