@oslokommune/punkt-css 14.5.3 → 15.0.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.
@@ -14399,7 +14399,7 @@ a:active, a.pkt-link--active,
14399
14399
  .pkt-link--external::after {
14400
14400
  display: inline-block;
14401
14401
  content: " ";
14402
- --svg: url(https://punkt-cdn.oslo.kommune.no/14.5/icons/new-window-small.svg);
14402
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/new-window-small.svg);
14403
14403
  background-image: var(--svg);
14404
14404
  background-repeat: no-repeat;
14405
14405
  background-size: 18px 18px;
@@ -17589,6 +17589,10 @@ button.pkt-link {
17589
17589
  display: block !important;
17590
17590
  }
17591
17591
 
17592
+ .pkt-invisible {
17593
+ visibility: hidden !important;
17594
+ }
17595
+
17592
17596
  @media screen and (min-width: 0) {
17593
17597
  .pkt-hide-mobile-up,
17594
17598
  .pkt-show.pkt-hide-mobile-up {
@@ -18429,7 +18433,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18429
18433
  outline-color: var(--pkt-color-input-border-hover);
18430
18434
  }
18431
18435
  .pkt-input-check__input-checkbox:indeterminate[type=checkbox]:not([role=switch]) {
18432
- --svg: url(https://punkt-cdn.oslo.kommune.no/14.5/icons/minus-sign.svg);
18436
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/minus-sign.svg);
18433
18437
  position: relative;
18434
18438
  background-color: var(--pkt-color-input-border-normal);
18435
18439
  }
@@ -18455,7 +18459,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18455
18459
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(271deg) brightness(105%) contrast(101%);
18456
18460
  }
18457
18461
  .pkt-input-check__input-checkbox:checked[type=checkbox] {
18458
- --svg: url(https://punkt-cdn.oslo.kommune.no/14.5/icons/check-medium.svg);
18462
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/check-medium.svg);
18459
18463
  position: relative;
18460
18464
  background-color: var(--pkt-color-input-border-normal);
18461
18465
  }
@@ -18513,7 +18517,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18513
18517
  cursor: not-allowed;
18514
18518
  }
18515
18519
  .pkt-input-check__input-checkbox:disabled[type=checkbox][role=switch]:checked:after {
18516
- --svg: url(https://punkt-cdn.oslo.kommune.no/14.5/icons/check-medium.svg);
18520
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/check-medium.svg);
18517
18521
  --pkt-color-input-check-border: var(--pkt-color-input-border-normal);
18518
18522
  filter: grayscale(100%) brightness(400%);
18519
18523
  }
@@ -18712,7 +18716,10 @@ pkt-select {
18712
18716
  .pkt-input__container:is(:has(.pkt-datepicker__input:not(.pkt-datepicker--multiple))):not(:is(:has(.pkt-input--fullwidth))) {
18713
18717
  width: fit-content;
18714
18718
  }
18715
- .pkt-input--fullwidth, .pkt-input--fullwidth + .pkt-input__counter {
18719
+ .pkt-input--fullwidth, *:has(.pkt-input--fullwidth) ~ .pkt-input__counter, .pkt-input--fullwidth + .pkt-input__counter {
18720
+ width: 100%;
18721
+ }
18722
+ [fullwidth] .pkt-input__counter {
18716
18723
  width: 100%;
18717
18724
  }
18718
18725
  .pkt-input:is(textarea), .pkt-textinput__input:is(textarea), .pkt-select select:is(textarea),
@@ -18728,7 +18735,7 @@ pkt-select {
18728
18735
  }
18729
18736
  .pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]), .pkt-select select:is(select):not([multiple]),
18730
18737
  .pkt-select:is(select):not([multiple]) {
18731
- --svg: url(https://punkt-cdn.oslo.kommune.no/14.5/icons/chevron-thin-down.svg);
18738
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/chevron-thin-down.svg);
18732
18739
  background-image: var(--svg);
18733
18740
  background-repeat: no-repeat;
18734
18741
  background-position: right 0.7rem top 50%;
@@ -20120,6 +20127,15 @@ pkt-calendar .pkt-cal-selected .pkt-btn,
20120
20127
  pkt-calendar .pkt-cal-selected .pkt-btn:focus,
20121
20128
  pkt-calendar .pkt-cal-selected .pkt-btn:hover {
20122
20129
  background-color: var(--pkt-color-surface-strong-blue);
20130
+ color: var(--pkt-color-brand-dark-blue-1000);
20131
+ }
20132
+ .pkt-calendar .pkt-cal-in-range .pkt-btn,
20133
+ .pkt-calendar .pkt-cal-in-range .pkt-btn:focus,
20134
+ .pkt-calendar .pkt-cal-in-range .pkt-btn:hover,
20135
+ pkt-calendar .pkt-cal-in-range .pkt-btn,
20136
+ pkt-calendar .pkt-cal-in-range .pkt-btn:focus,
20137
+ pkt-calendar .pkt-cal-in-range .pkt-btn:hover {
20138
+ color: var(--pkt-color-brand-dark-blue-1000);
20123
20139
  }
20124
20140
  .pkt-calendar .pkt-cal-in-range :before,
20125
20141
  .pkt-calendar .pkt-cal-in-range :after, .pkt-calendar .pkt-cal-in-range-first :after, .pkt-calendar .pkt-cal-in-range-last :before,
@@ -20139,6 +20155,7 @@ pkt-calendar .pkt-cal-in-range-last :after {
20139
20155
  pkt-calendar .pkt-cal-range-hover :before,
20140
20156
  pkt-calendar .pkt-cal-range-hover .pkt-btn {
20141
20157
  background-color: var(--pkt-color-surface-default-light-blue);
20158
+ color: var(--pkt-color-brand-dark-blue-1000);
20142
20159
  }
20143
20160
  .pkt-calendar .pkt-cal-range-hover ::after,
20144
20161
  pkt-calendar .pkt-cal-range-hover ::after {
@@ -20159,80 +20176,6 @@ pkt-calendar .pkt-cal-excluded :after {
20159
20176
  background-color: transparent;
20160
20177
  }
20161
20178
 
20162
- pkt-datepicker {
20163
- display: block;
20164
- position: relative;
20165
- }
20166
- pkt-datepicker .pkt-datepicker {
20167
- position: relative;
20168
- }
20169
- pkt-datepicker .pkt-datepicker__tags .pkt-tag {
20170
- margin: 0 0.25rem 0.5rem 0;
20171
- }
20172
-
20173
- pkt-datepicker-single,
20174
- pkt-datepicker-range,
20175
- pkt-datepicker-multiple {
20176
- display: block;
20177
- }
20178
-
20179
- .pkt-datepicker__inputs {
20180
- width: 100%;
20181
- position: relative;
20182
- }
20183
- .pkt-datepicker__inputs .pkt-input__container {
20184
- width: fit-content;
20185
- }
20186
- .pkt-datepicker__inputs button.pkt-input-icon {
20187
- padding-left: 0.25rem;
20188
- padding-right: 0.25rem;
20189
- }
20190
- .pkt-datepicker__inputs button.pkt-input-icon:hover {
20191
- background-color: inherit !important;
20192
- border-color: inherit !important;
20193
- --fg-color: var(--pkt-color-button-text-hover);
20194
- }
20195
- .pkt-datepicker__inputs .pkt-datepicker__input {
20196
- padding-right: 0;
20197
- background-image: none;
20198
- }
20199
- .pkt-datepicker__inputs .pkt-input-separator ~ .pkt-datepicker--range {
20200
- padding-left: 0.25rem;
20201
- }
20202
-
20203
- .pkt-calendar-popup {
20204
- top: 100%;
20205
- left: 0;
20206
- z-index: 2;
20207
- margin: 0;
20208
- padding: 0.5rem;
20209
- position: absolute;
20210
- width: max-content;
20211
- background: var(--pkt-color-background-default);
20212
- box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
20213
- }
20214
-
20215
- .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
20216
- width: 8.3rem;
20217
- }
20218
-
20219
- .pkt-datepicker__input::-webkit-inner-spin-button,
20220
- .pkt-datepicker__input::-webkit-calendar-picker-indicator {
20221
- display: none;
20222
- -webkit-appearance: none;
20223
- }
20224
-
20225
- @-moz-document url-prefix() {
20226
- .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
20227
- width: 10.5rem;
20228
- }
20229
- .pkt-datepicker__inputs button.pkt-input-icon {
20230
- display: none;
20231
- }
20232
- .pkt-datepicker__inputs input.pkt-datepicker__input:has(~ button):not(:has(~ .pkt-input-separator)):not(:has(~ .pkt-input-prefix)) {
20233
- border-right-width: 2px !important;
20234
- }
20235
- }
20236
20179
  /*
20237
20180
  * Cardcomponent
20238
20181
  */
@@ -20566,6 +20509,127 @@ pkt-combobox[fullwidth] {
20566
20509
  margin-top: 0.5rem;
20567
20510
  }
20568
20511
 
20512
+ .pkt-datepicker,
20513
+ pkt-datepicker {
20514
+ display: block;
20515
+ position: relative;
20516
+ }
20517
+
20518
+ .pkt-datepicker__tags button.pkt-tag {
20519
+ margin: 0 0.25rem 0.5rem 0;
20520
+ }
20521
+
20522
+ .pkt-datepicker-single,
20523
+ .pkt-datepicker-range,
20524
+ .pkt-datepicker-multiple,
20525
+ pkt-datepicker-single,
20526
+ pkt-datepicker-range,
20527
+ pkt-datepicker-multiple {
20528
+ display: block;
20529
+ }
20530
+
20531
+ .pkt-datepicker__inputs {
20532
+ width: 100%;
20533
+ position: relative;
20534
+ }
20535
+ .pkt-datepicker__inputs .pkt-input__container:not(:has(.pkt-input--fullwidth)) {
20536
+ width: fit-content;
20537
+ }
20538
+ .pkt-datepicker__inputs > .pkt-input__container {
20539
+ border: 2px solid var(--pkt-color-input-border-normal);
20540
+ }
20541
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input,
20542
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-prefix,
20543
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-suffix,
20544
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-icon,
20545
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-separator {
20546
+ border: 0;
20547
+ }
20548
+ .pkt-datepicker__inputs > .pkt-input__container:hover {
20549
+ border-color: var(--pkt-color-input-border-active);
20550
+ }
20551
+ .pkt-datepicker__inputs > .pkt-input__container:focus-within {
20552
+ border-color: var(--pkt-color-input-border-active);
20553
+ }
20554
+ .pkt-datepicker__inputs > .pkt-input__container:has(input:disabled), .pkt-datepicker__inputs > .pkt-input__container:has(input[readonly]) {
20555
+ border-color: var(--pkt-color-input-border-disabled);
20556
+ }
20557
+ .pkt-datepicker__inputs > .pkt-input__container:has(.pkt-input--counter-error) {
20558
+ border-color: var(--pkt-color-input-border-error);
20559
+ }
20560
+ .pkt-inputwrapper--error .pkt-datepicker__inputs > .pkt-input__container {
20561
+ border-color: var(--pkt-color-brand-red-1000);
20562
+ }
20563
+ .pkt-inputwrapper--error .pkt-datepicker__inputs > .pkt-input__container:hover, .pkt-inputwrapper--error .pkt-datepicker__inputs > .pkt-input__container:focus-within {
20564
+ border-color: var(--pkt-color-brand-red-1000);
20565
+ }
20566
+ .pkt-inputwrapper--disabled .pkt-datepicker__inputs > .pkt-input__container {
20567
+ border-color: var(--pkt-color-border-states-disabled);
20568
+ }
20569
+ .pkt-inputwrapper--disabled .pkt-datepicker__inputs > .pkt-input__container:hover, .pkt-inputwrapper--disabled .pkt-datepicker__inputs > .pkt-input__container:focus-within {
20570
+ border-color: var(--pkt-color-border-states-disabled);
20571
+ box-shadow: none;
20572
+ outline: none;
20573
+ }
20574
+ .pkt-datepicker__inputs button.pkt-input-icon {
20575
+ padding-left: 0.75rem;
20576
+ padding-right: 0.75rem;
20577
+ }
20578
+ .pkt-datepicker__inputs button.pkt-input-icon:hover {
20579
+ background-color: inherit !important;
20580
+ border-color: inherit !important;
20581
+ --fg-color: var(--pkt-color-button-text-hover);
20582
+ }
20583
+ .pkt-datepicker__inputs .pkt-datepicker__input {
20584
+ padding-right: 0;
20585
+ background-image: none;
20586
+ }
20587
+ .pkt-datepicker__inputs .pkt-input-separator ~ .pkt-datepicker--range {
20588
+ padding-left: 0.25rem;
20589
+ }
20590
+
20591
+ .pkt-calendar-popup {
20592
+ top: 100%;
20593
+ left: 0;
20594
+ z-index: 2;
20595
+ margin: 0;
20596
+ padding: 0.5rem;
20597
+ position: absolute;
20598
+ width: max-content;
20599
+ background: var(--pkt-color-background-default);
20600
+ box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
20601
+ }
20602
+
20603
+ .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
20604
+ width: 8.3rem;
20605
+ }
20606
+
20607
+ .pkt-datepicker__input.pkt-input--fullwidth:not(.pkt-datepicker--multiple) {
20608
+ width: auto;
20609
+ flex: 1;
20610
+ }
20611
+
20612
+ .pkt-datepicker__input::-webkit-inner-spin-button,
20613
+ .pkt-datepicker__input::-webkit-calendar-picker-indicator {
20614
+ display: none;
20615
+ -webkit-appearance: none;
20616
+ }
20617
+
20618
+ @-moz-document url-prefix() {
20619
+ .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
20620
+ width: 10.5rem;
20621
+ }
20622
+ .pkt-datepicker__input.pkt-input--fullwidth:not(.pkt-datepicker--multiple) {
20623
+ width: auto;
20624
+ flex: 1;
20625
+ }
20626
+ .pkt-datepicker__inputs button.pkt-input-icon {
20627
+ display: none;
20628
+ }
20629
+ .pkt-datepicker__inputs input.pkt-datepicker__input:has(~ button):not(:has(~ .pkt-input-separator)):not(:has(~ .pkt-input-prefix)) {
20630
+ border-right-width: 2px !important;
20631
+ }
20632
+ }
20569
20633
  /*
20570
20634
  * Footer element
20571
20635
  */