@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.
@@ -712,6 +712,15 @@ pkt-calendar .pkt-cal-selected .pkt-btn,
712
712
  pkt-calendar .pkt-cal-selected .pkt-btn:focus,
713
713
  pkt-calendar .pkt-cal-selected .pkt-btn:hover {
714
714
  background-color: var(--pkt-color-surface-strong-blue);
715
+ color: var(--pkt-color-brand-dark-blue-1000);
716
+ }
717
+ .pkt-calendar .pkt-cal-in-range .pkt-btn,
718
+ .pkt-calendar .pkt-cal-in-range .pkt-btn:focus,
719
+ .pkt-calendar .pkt-cal-in-range .pkt-btn:hover,
720
+ pkt-calendar .pkt-cal-in-range .pkt-btn,
721
+ pkt-calendar .pkt-cal-in-range .pkt-btn:focus,
722
+ pkt-calendar .pkt-cal-in-range .pkt-btn:hover {
723
+ color: var(--pkt-color-brand-dark-blue-1000);
715
724
  }
716
725
  .pkt-calendar .pkt-cal-in-range :before,
717
726
  .pkt-calendar .pkt-cal-in-range :after, .pkt-calendar .pkt-cal-in-range-first :after, .pkt-calendar .pkt-cal-in-range-last :before,
@@ -731,6 +740,7 @@ pkt-calendar .pkt-cal-in-range-last :after {
731
740
  pkt-calendar .pkt-cal-range-hover :before,
732
741
  pkt-calendar .pkt-cal-range-hover .pkt-btn {
733
742
  background-color: var(--pkt-color-surface-default-light-blue);
743
+ color: var(--pkt-color-brand-dark-blue-1000);
734
744
  }
735
745
  .pkt-calendar .pkt-cal-range-hover ::after,
736
746
  pkt-calendar .pkt-cal-range-hover ::after {
@@ -751,80 +761,6 @@ pkt-calendar .pkt-cal-excluded :after {
751
761
  background-color: transparent;
752
762
  }
753
763
 
754
- pkt-datepicker {
755
- display: block;
756
- position: relative;
757
- }
758
- pkt-datepicker .pkt-datepicker {
759
- position: relative;
760
- }
761
- pkt-datepicker .pkt-datepicker__tags .pkt-tag {
762
- margin: 0 0.25rem 0.5rem 0;
763
- }
764
-
765
- pkt-datepicker-single,
766
- pkt-datepicker-range,
767
- pkt-datepicker-multiple {
768
- display: block;
769
- }
770
-
771
- .pkt-datepicker__inputs {
772
- width: 100%;
773
- position: relative;
774
- }
775
- .pkt-datepicker__inputs .pkt-input__container {
776
- width: fit-content;
777
- }
778
- .pkt-datepicker__inputs button.pkt-input-icon {
779
- padding-left: 0.25rem;
780
- padding-right: 0.25rem;
781
- }
782
- .pkt-datepicker__inputs button.pkt-input-icon:hover {
783
- background-color: inherit !important;
784
- border-color: inherit !important;
785
- --fg-color: var(--pkt-color-button-text-hover);
786
- }
787
- .pkt-datepicker__inputs .pkt-datepicker__input {
788
- padding-right: 0;
789
- background-image: none;
790
- }
791
- .pkt-datepicker__inputs .pkt-input-separator ~ .pkt-datepicker--range {
792
- padding-left: 0.25rem;
793
- }
794
-
795
- .pkt-calendar-popup {
796
- top: 100%;
797
- left: 0;
798
- z-index: 2;
799
- margin: 0;
800
- padding: 0.5rem;
801
- position: absolute;
802
- width: max-content;
803
- background: var(--pkt-color-background-default);
804
- box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
805
- }
806
-
807
- .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
808
- width: 8.3rem;
809
- }
810
-
811
- .pkt-datepicker__input::-webkit-inner-spin-button,
812
- .pkt-datepicker__input::-webkit-calendar-picker-indicator {
813
- display: none;
814
- -webkit-appearance: none;
815
- }
816
-
817
- @-moz-document url-prefix() {
818
- .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
819
- width: 10.5rem;
820
- }
821
- .pkt-datepicker__inputs button.pkt-input-icon {
822
- display: none;
823
- }
824
- .pkt-datepicker__inputs input.pkt-datepicker__input:has(~ button):not(:has(~ .pkt-input-separator)):not(:has(~ .pkt-input-prefix)) {
825
- border-right-width: 2px !important;
826
- }
827
- }
828
764
  /*
829
765
  * Cardcomponent
830
766
  */
@@ -1158,6 +1094,127 @@ pkt-combobox[fullwidth] {
1158
1094
  margin-top: 0.5rem;
1159
1095
  }
1160
1096
 
1097
+ .pkt-datepicker,
1098
+ pkt-datepicker {
1099
+ display: block;
1100
+ position: relative;
1101
+ }
1102
+
1103
+ .pkt-datepicker__tags button.pkt-tag {
1104
+ margin: 0 0.25rem 0.5rem 0;
1105
+ }
1106
+
1107
+ .pkt-datepicker-single,
1108
+ .pkt-datepicker-range,
1109
+ .pkt-datepicker-multiple,
1110
+ pkt-datepicker-single,
1111
+ pkt-datepicker-range,
1112
+ pkt-datepicker-multiple {
1113
+ display: block;
1114
+ }
1115
+
1116
+ .pkt-datepicker__inputs {
1117
+ width: 100%;
1118
+ position: relative;
1119
+ }
1120
+ .pkt-datepicker__inputs .pkt-input__container:not(:has(.pkt-input--fullwidth)) {
1121
+ width: fit-content;
1122
+ }
1123
+ .pkt-datepicker__inputs > .pkt-input__container {
1124
+ border: 2px solid var(--pkt-color-input-border-normal);
1125
+ }
1126
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input,
1127
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-prefix,
1128
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-suffix,
1129
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-icon,
1130
+ .pkt-datepicker__inputs > .pkt-input__container .pkt-input-separator {
1131
+ border: 0;
1132
+ }
1133
+ .pkt-datepicker__inputs > .pkt-input__container:hover {
1134
+ border-color: var(--pkt-color-input-border-active);
1135
+ }
1136
+ .pkt-datepicker__inputs > .pkt-input__container:focus-within {
1137
+ border-color: var(--pkt-color-input-border-active);
1138
+ }
1139
+ .pkt-datepicker__inputs > .pkt-input__container:has(input:disabled), .pkt-datepicker__inputs > .pkt-input__container:has(input[readonly]) {
1140
+ border-color: var(--pkt-color-input-border-disabled);
1141
+ }
1142
+ .pkt-datepicker__inputs > .pkt-input__container:has(.pkt-input--counter-error) {
1143
+ border-color: var(--pkt-color-input-border-error);
1144
+ }
1145
+ .pkt-inputwrapper--error .pkt-datepicker__inputs > .pkt-input__container {
1146
+ border-color: var(--pkt-color-brand-red-1000);
1147
+ }
1148
+ .pkt-inputwrapper--error .pkt-datepicker__inputs > .pkt-input__container:hover, .pkt-inputwrapper--error .pkt-datepicker__inputs > .pkt-input__container:focus-within {
1149
+ border-color: var(--pkt-color-brand-red-1000);
1150
+ }
1151
+ .pkt-inputwrapper--disabled .pkt-datepicker__inputs > .pkt-input__container {
1152
+ border-color: var(--pkt-color-border-states-disabled);
1153
+ }
1154
+ .pkt-inputwrapper--disabled .pkt-datepicker__inputs > .pkt-input__container:hover, .pkt-inputwrapper--disabled .pkt-datepicker__inputs > .pkt-input__container:focus-within {
1155
+ border-color: var(--pkt-color-border-states-disabled);
1156
+ box-shadow: none;
1157
+ outline: none;
1158
+ }
1159
+ .pkt-datepicker__inputs button.pkt-input-icon {
1160
+ padding-left: 0.75rem;
1161
+ padding-right: 0.75rem;
1162
+ }
1163
+ .pkt-datepicker__inputs button.pkt-input-icon:hover {
1164
+ background-color: inherit !important;
1165
+ border-color: inherit !important;
1166
+ --fg-color: var(--pkt-color-button-text-hover);
1167
+ }
1168
+ .pkt-datepicker__inputs .pkt-datepicker__input {
1169
+ padding-right: 0;
1170
+ background-image: none;
1171
+ }
1172
+ .pkt-datepicker__inputs .pkt-input-separator ~ .pkt-datepicker--range {
1173
+ padding-left: 0.25rem;
1174
+ }
1175
+
1176
+ .pkt-calendar-popup {
1177
+ top: 100%;
1178
+ left: 0;
1179
+ z-index: 2;
1180
+ margin: 0;
1181
+ padding: 0.5rem;
1182
+ position: absolute;
1183
+ width: max-content;
1184
+ background: var(--pkt-color-background-default);
1185
+ box-shadow: 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1);
1186
+ }
1187
+
1188
+ .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
1189
+ width: 8.3rem;
1190
+ }
1191
+
1192
+ .pkt-datepicker__input.pkt-input--fullwidth:not(.pkt-datepicker--multiple) {
1193
+ width: auto;
1194
+ flex: 1;
1195
+ }
1196
+
1197
+ .pkt-datepicker__input::-webkit-inner-spin-button,
1198
+ .pkt-datepicker__input::-webkit-calendar-picker-indicator {
1199
+ display: none;
1200
+ -webkit-appearance: none;
1201
+ }
1202
+
1203
+ @-moz-document url-prefix() {
1204
+ .pkt-datepicker__input:not(.pkt-datepicker--multiple) {
1205
+ width: 10.5rem;
1206
+ }
1207
+ .pkt-datepicker__input.pkt-input--fullwidth:not(.pkt-datepicker--multiple) {
1208
+ width: auto;
1209
+ flex: 1;
1210
+ }
1211
+ .pkt-datepicker__inputs button.pkt-input-icon {
1212
+ display: none;
1213
+ }
1214
+ .pkt-datepicker__inputs input.pkt-datepicker__input:has(~ button):not(:has(~ .pkt-input-separator)):not(:has(~ .pkt-input-prefix)) {
1215
+ border-right-width: 2px !important;
1216
+ }
1217
+ }
1161
1218
  /*
1162
1219
  * Footer element
1163
1220
  */
@@ -4498,7 +4555,10 @@ pkt-select {
4498
4555
  .pkt-input__container:is(:has(.pkt-datepicker__input:not(.pkt-datepicker--multiple))):not(:is(:has(.pkt-input--fullwidth))) {
4499
4556
  width: fit-content;
4500
4557
  }
4501
- .pkt-input--fullwidth, .pkt-input--fullwidth + .pkt-input__counter {
4558
+ .pkt-input--fullwidth, *:has(.pkt-input--fullwidth) ~ .pkt-input__counter, .pkt-input--fullwidth + .pkt-input__counter {
4559
+ width: 100%;
4560
+ }
4561
+ [fullwidth] .pkt-input__counter {
4502
4562
  width: 100%;
4503
4563
  }
4504
4564
  .pkt-input:is(textarea), .pkt-textinput__input:is(textarea) {
@@ -4511,7 +4571,7 @@ pkt-select {
4511
4571
  padding-right: 3rem;
4512
4572
  }
4513
4573
  .pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]) {
4514
- --svg: url(https://punkt-cdn.oslo.kommune.no/14.5/icons/chevron-thin-down.svg);
4574
+ --svg: url(https://punkt-cdn.oslo.kommune.no/15.0/icons/chevron-thin-down.svg);
4515
4575
  background-image: var(--svg);
4516
4576
  background-repeat: no-repeat;
4517
4577
  background-position: right 0.7rem top 50%;