@oslokommune/punkt-css 14.5.3 → 15.0.1

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,18 @@ button.pkt-link {
17589
17589
  display: block !important;
17590
17590
  }
17591
17591
 
17592
+ .pkt-invisible {
17593
+ visibility: hidden !important;
17594
+ }
17595
+
17596
+ .pkt-visually-hidden {
17597
+ position: absolute !important;
17598
+ width: 0 !important;
17599
+ height: 0 !important;
17600
+ overflow: hidden !important;
17601
+ opacity: 0 !important;
17602
+ }
17603
+
17592
17604
  @media screen and (min-width: 0) {
17593
17605
  .pkt-hide-mobile-up,
17594
17606
  .pkt-show.pkt-hide-mobile-up {
@@ -18429,7 +18441,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18429
18441
  outline-color: var(--pkt-color-input-border-hover);
18430
18442
  }
18431
18443
  .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);
18444
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/minus-sign.svg);
18433
18445
  position: relative;
18434
18446
  background-color: var(--pkt-color-input-border-normal);
18435
18447
  }
@@ -18455,7 +18467,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18455
18467
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(271deg) brightness(105%) contrast(101%);
18456
18468
  }
18457
18469
  .pkt-input-check__input-checkbox:checked[type=checkbox] {
18458
- --svg: url(https://punkt-cdn.oslo.kommune.no/14.5/icons/check-medium.svg);
18470
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/check-medium.svg);
18459
18471
  position: relative;
18460
18472
  background-color: var(--pkt-color-input-border-normal);
18461
18473
  }
@@ -18513,7 +18525,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18513
18525
  cursor: not-allowed;
18514
18526
  }
18515
18527
  .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);
18528
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/check-medium.svg);
18517
18529
  --pkt-color-input-check-border: var(--pkt-color-input-border-normal);
18518
18530
  filter: grayscale(100%) brightness(400%);
18519
18531
  }
@@ -18712,7 +18724,10 @@ pkt-select {
18712
18724
  .pkt-input__container:is(:has(.pkt-datepicker__input:not(.pkt-datepicker--multiple))):not(:is(:has(.pkt-input--fullwidth))) {
18713
18725
  width: fit-content;
18714
18726
  }
18715
- .pkt-input--fullwidth, .pkt-input--fullwidth + .pkt-input__counter {
18727
+ .pkt-input--fullwidth, *:has(.pkt-input--fullwidth) ~ .pkt-input__counter, .pkt-input--fullwidth + .pkt-input__counter {
18728
+ width: 100%;
18729
+ }
18730
+ [fullwidth] .pkt-input__counter {
18716
18731
  width: 100%;
18717
18732
  }
18718
18733
  .pkt-input:is(textarea), .pkt-textinput__input:is(textarea), .pkt-select select:is(textarea),
@@ -18728,7 +18743,7 @@ pkt-select {
18728
18743
  }
18729
18744
  .pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]), .pkt-select select:is(select):not([multiple]),
18730
18745
  .pkt-select:is(select):not([multiple]) {
18731
- --svg: url(https://punkt-cdn.oslo.kommune.no/14.5/icons/chevron-thin-down.svg);
18746
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/chevron-thin-down.svg);
18732
18747
  background-image: var(--svg);
18733
18748
  background-repeat: no-repeat;
18734
18749
  background-position: right 0.7rem top 50%;
@@ -20120,6 +20135,15 @@ pkt-calendar .pkt-cal-selected .pkt-btn,
20120
20135
  pkt-calendar .pkt-cal-selected .pkt-btn:focus,
20121
20136
  pkt-calendar .pkt-cal-selected .pkt-btn:hover {
20122
20137
  background-color: var(--pkt-color-surface-strong-blue);
20138
+ color: var(--pkt-color-brand-dark-blue-1000);
20139
+ }
20140
+ .pkt-calendar .pkt-cal-in-range .pkt-btn,
20141
+ .pkt-calendar .pkt-cal-in-range .pkt-btn:focus,
20142
+ .pkt-calendar .pkt-cal-in-range .pkt-btn:hover,
20143
+ pkt-calendar .pkt-cal-in-range .pkt-btn,
20144
+ pkt-calendar .pkt-cal-in-range .pkt-btn:focus,
20145
+ pkt-calendar .pkt-cal-in-range .pkt-btn:hover {
20146
+ color: var(--pkt-color-brand-dark-blue-1000);
20123
20147
  }
20124
20148
  .pkt-calendar .pkt-cal-in-range :before,
20125
20149
  .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 +20163,7 @@ pkt-calendar .pkt-cal-in-range-last :after {
20139
20163
  pkt-calendar .pkt-cal-range-hover :before,
20140
20164
  pkt-calendar .pkt-cal-range-hover .pkt-btn {
20141
20165
  background-color: var(--pkt-color-surface-default-light-blue);
20166
+ color: var(--pkt-color-brand-dark-blue-1000);
20142
20167
  }
20143
20168
  .pkt-calendar .pkt-cal-range-hover ::after,
20144
20169
  pkt-calendar .pkt-cal-range-hover ::after {
@@ -20159,80 +20184,6 @@ pkt-calendar .pkt-cal-excluded :after {
20159
20184
  background-color: transparent;
20160
20185
  }
20161
20186
 
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
20187
  /*
20237
20188
  * Cardcomponent
20238
20189
  */
@@ -20566,6 +20517,127 @@ pkt-combobox[fullwidth] {
20566
20517
  margin-top: 0.5rem;
20567
20518
  }
20568
20519
 
20520
+ .pkt-datepicker,
20521
+ pkt-datepicker {
20522
+ display: block;
20523
+ position: relative;
20524
+ }
20525
+
20526
+ .pkt-datepicker__tags button.pkt-tag {
20527
+ margin: 0 0.25rem 0.5rem 0;
20528
+ }
20529
+
20530
+ .pkt-datepicker-single,
20531
+ .pkt-datepicker-range,
20532
+ .pkt-datepicker-multiple,
20533
+ pkt-datepicker-single,
20534
+ pkt-datepicker-range,
20535
+ pkt-datepicker-multiple {
20536
+ display: block;
20537
+ }
20538
+
20539
+ .pkt-datepicker__inputs {
20540
+ width: 100%;
20541
+ position: relative;
20542
+ }
20543
+ .pkt-datepicker__inputs .pkt-input__container:not(:has(.pkt-input--fullwidth)) {
20544
+ width: fit-content;
20545
+ }
20546
+ .pkt-datepicker__inputs > .pkt-input__container {
20547
+ border: 2px solid var(--pkt-color-input-border-normal);
20548
+ }
20549
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input,
20550
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-prefix,
20551
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-suffix,
20552
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-icon,
20553
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-separator {
20554
+ border: 0;
20555
+ }
20556
+ .pkt-datepicker__inputs > .pkt-input__container:hover {
20557
+ border-color: var(--pkt-color-input-border-active);
20558
+ }
20559
+ .pkt-datepicker__inputs > .pkt-input__container:focus-within {
20560
+ border-color: var(--pkt-color-input-border-active);
20561
+ }
20562
+ .pkt-datepicker__inputs > .pkt-input__container:has(input:disabled), .pkt-datepicker__inputs > .pkt-input__container:has(input[readonly]) {
20563
+ border-color: var(--pkt-color-input-border-disabled);
20564
+ }
20565
+ .pkt-datepicker__inputs > .pkt-input__container:has(.pkt-input--counter-error) {
20566
+ border-color: var(--pkt-color-input-border-error);
20567
+ }
20568
+ .pkt-inputwrapper--error .pkt-datepicker__inputs > .pkt-input__container {
20569
+ border-color: var(--pkt-color-brand-red-1000);
20570
+ }
20571
+ .pkt-inputwrapper--error .pkt-datepicker__inputs > .pkt-input__container:hover, .pkt-inputwrapper--error .pkt-datepicker__inputs > .pkt-input__container:focus-within {
20572
+ border-color: var(--pkt-color-brand-red-1000);
20573
+ }
20574
+ .pkt-inputwrapper--disabled .pkt-datepicker__inputs > .pkt-input__container {
20575
+ border-color: var(--pkt-color-border-states-disabled);
20576
+ }
20577
+ .pkt-inputwrapper--disabled .pkt-datepicker__inputs > .pkt-input__container:hover, .pkt-inputwrapper--disabled .pkt-datepicker__inputs > .pkt-input__container:focus-within {
20578
+ border-color: var(--pkt-color-border-states-disabled);
20579
+ box-shadow: none;
20580
+ outline: none;
20581
+ }
20582
+ .pkt-datepicker__inputs button.pkt-input-icon {
20583
+ padding-left: 0.75rem;
20584
+ padding-right: 0.75rem;
20585
+ }
20586
+ .pkt-datepicker__inputs button.pkt-input-icon:hover {
20587
+ background-color: inherit !important;
20588
+ border-color: inherit !important;
20589
+ --fg-color: var(--pkt-color-button-text-hover);
20590
+ }
20591
+ .pkt-datepicker__inputs .pkt-datepicker__input {
20592
+ padding-right: 0;
20593
+ background-image: none;
20594
+ }
20595
+ .pkt-datepicker__inputs .pkt-input-separator ~ .pkt-datepicker--range {
20596
+ padding-left: 0.25rem;
20597
+ }
20598
+
20599
+ .pkt-calendar-popup {
20600
+ top: 100%;
20601
+ left: 0;
20602
+ z-index: 2;
20603
+ margin: 0;
20604
+ padding: 0.5rem;
20605
+ position: absolute;
20606
+ width: max-content;
20607
+ background: var(--pkt-color-background-default);
20608
+ box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
20609
+ }
20610
+
20611
+ .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
20612
+ width: 8.3rem;
20613
+ }
20614
+
20615
+ .pkt-datepicker__input.pkt-input--fullwidth:not(.pkt-datepicker--multiple) {
20616
+ width: auto;
20617
+ flex: 1;
20618
+ }
20619
+
20620
+ .pkt-datepicker__input::-webkit-inner-spin-button,
20621
+ .pkt-datepicker__input::-webkit-calendar-picker-indicator {
20622
+ display: none;
20623
+ -webkit-appearance: none;
20624
+ }
20625
+
20626
+ @-moz-document url-prefix() {
20627
+ .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
20628
+ width: 10.5rem;
20629
+ }
20630
+ .pkt-datepicker__input.pkt-input--fullwidth:not(.pkt-datepicker--multiple) {
20631
+ width: auto;
20632
+ flex: 1;
20633
+ }
20634
+ .pkt-datepicker__inputs button.pkt-input-icon {
20635
+ display: none;
20636
+ }
20637
+ .pkt-datepicker__inputs input.pkt-datepicker__input:has(~ button):not(:has(~ .pkt-input-separator)):not(:has(~ .pkt-input-prefix)) {
20638
+ border-right-width: 2px !important;
20639
+ }
20640
+ }
20569
20641
  /*
20570
20642
  * Footer element
20571
20643
  */