@navikt/aksel-stylelint 6.8.0 → 6.9.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.
package/dist/index.css CHANGED
@@ -1,7 +1,7 @@
1
1
  @charset "UTF-8";
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Tue, 14 May 2024 13:31:33 GMT
4
+ * Generated on Fri, 31 May 2024 06:44:50 GMT
5
5
  */
6
6
  :root, :host {
7
7
  --a-spacing-1-alt: 0.375rem;
@@ -3975,19 +3975,40 @@ body,
3975
3975
  }
3976
3976
  }
3977
3977
  .navds-combobox__wrapper {
3978
+ --__ac-combobox-icon-size: 1.5rem;
3979
+ --__ac-combobox-wrapper-inner-padding: var(--a-spacing-2);
3980
+ --__ac-combobox-list-item-padding-block: var(--a-spacing-3);
3981
+ --__ac-combobox-list-item-padding-inline: var(--a-spacing-3);
3982
+ --__ac-combobox-border-width: 1px;
3983
+ --__ac-combobox-input-height: 2rem;
3984
+
3978
3985
  display: flex;
3979
3986
  flex-direction: column;
3980
3987
  width: 100%;
3981
3988
  position: relative;
3982
3989
  }
3983
- .navds-combobox__wrapper-inner {
3990
+ .navds-form-field--small .navds-combobox__wrapper {
3991
+ --__ac-combobox-icon-size: 1.25rem;
3992
+ --__ac-combobox-wrapper-inner-padding: var(--a-spacing-1);
3993
+ --__ac-combobox-list-item-padding-block: var(--a-spacing-1-alt);
3994
+ --__ac-combobox-list-item-padding-inline: var(--a-spacing-2);
3995
+ --__ac-combobox-input-height: 1.5rem;
3996
+ }
3997
+ .navds-combobox__button-clear svg,
3998
+ .navds-combobox__button-toggle-list svg,
3999
+ .navds-combobox__list svg {
4000
+ width: var(--__ac-combobox-icon-size);
4001
+ height: var(--__ac-combobox-icon-size);
4002
+ }
4003
+ .navds-combobox__wrapper-inner.navds-text-field__input {
3984
4004
  position: relative;
3985
4005
  display: flex;
3986
4006
  flex-direction: row;
3987
4007
  align-items: center;
3988
4008
  justify-content: space-between;
3989
4009
  width: 100%;
3990
- padding: calc(var(--a-spacing-2) - 2px) var(--a-spacing-2);
4010
+ padding-block: calc(var(--__ac-combobox-wrapper-inner-padding) - var(--__ac-combobox-border-width));
4011
+ padding-inline: var(--__ac-combobox-wrapper-inner-padding);
3991
4012
  }
3992
4013
  .navds-combobox__wrapper-inner > :first-child {
3993
4014
  flex: 2;
@@ -3996,9 +4017,6 @@ body,
3996
4017
  display: flex;
3997
4018
  flex-flow: row nowrap;
3998
4019
  }
3999
- .navds-form-field--small .navds-combobox__wrapper-inner {
4000
- padding: var(--a-spacing-1) calc(var(--a-spacing-3) / 2);
4001
- }
4002
4020
  .navds-combobox__wrapper-inner:hover {
4003
4021
  cursor: text;
4004
4022
  }
@@ -4015,7 +4033,7 @@ body,
4015
4033
  var(--a-shadow-focus);
4016
4034
  }
4017
4035
  .navds-combobox__selected-options {
4018
- gap: var(--a-spacing-2);
4036
+ gap: var(--__ac-combobox-wrapper-inner-padding);
4019
4037
  align-items: center;
4020
4038
  }
4021
4039
  .navds-combobox__selected-options > li {
@@ -4045,7 +4063,7 @@ body,
4045
4063
  margin: 0;
4046
4064
  min-width: 10ch;
4047
4065
  width: 100%;
4048
- height: 2rem;
4066
+ height: var(--__ac-combobox-input-height);
4049
4067
  }
4050
4068
  .navds-combobox__input:focus-visible {
4051
4069
  outline: none;
@@ -4103,10 +4121,6 @@ body,
4103
4121
  font-size: 1rem;
4104
4122
  padding: 0;
4105
4123
  }
4106
- .navds-combobox__button-clear svg {
4107
- width: 1.5rem;
4108
- height: 1.5rem;
4109
- }
4110
4124
  .navds-combobox__input::-webkit-search-cancel-button {
4111
4125
  display: none;
4112
4126
  }
@@ -4146,16 +4160,6 @@ body,
4146
4160
  outline: none;
4147
4161
  }
4148
4162
  }
4149
- .navds-combobox__button-toggle-list svg {
4150
- width: 1.5rem;
4151
- height: 1.5rem;
4152
- pointer-events: none;
4153
- }
4154
- .navds-form-field--small .navds-combobox__button-toggle-list svg,
4155
- .navds-form-field--small .navds-combobox__button-clear svg {
4156
- width: 1.25rem;
4157
- height: 1.25rem;
4158
- }
4159
4163
  /* dropdown & non selectable dropdown items */
4160
4164
  .navds-combobox__list {
4161
4165
  max-height: 290px;
@@ -4172,15 +4176,10 @@ body,
4172
4176
  border-radius: var(--a-border-radius-medium);
4173
4177
  background-color: var(--ac-combobox-list-bg, var(--a-surface-default));
4174
4178
  color: var(--ac-combobox-list-text, var(--a-text-default));
4175
- gap: var(--a-spacing-1) 0;
4176
4179
  }
4177
4180
  .navds-combobox__list--closed {
4178
4181
  display: none;
4179
4182
  }
4180
- .navds-combobox__list svg {
4181
- height: 1.5rem;
4182
- width: 1.5rem;
4183
- }
4184
4183
  .navds-combobox__list_non-selectables {
4185
4184
  position: sticky;
4186
4185
  top: 0;
@@ -4193,21 +4192,16 @@ body,
4193
4192
  .navds-combobox__list-item--no-options,
4194
4193
  .navds-combobox__list-item--new-option,
4195
4194
  .navds-combobox__list-item--max-selected {
4195
+ align-items: center;
4196
4196
  display: flex;
4197
4197
  flex-direction: row;
4198
4198
  justify-content: space-between;
4199
- padding: var(--a-spacing-3);
4199
+ padding-block: var(--__ac-combobox-list-item-padding-block);
4200
+ padding-inline: var(--__ac-combobox-list-item-padding-inline);
4200
4201
  width: 100%;
4201
4202
  background-color: var(--ac-combobox-list-item-bg, var(--a-surface-default));
4202
4203
  scroll-margin-top: 50px;
4203
4204
  }
4204
- .navds-form-field--small .navds-combobox__list-item,
4205
- .navds-form-field--small .navds-combobox__list-item--loading,
4206
- .navds-form-field--small .navds-combobox__list-item--no-options,
4207
- .navds-form-field--small .navds-combobox__list-item--new-option,
4208
- .navds-form-field--small .navds-combobox__list-item--max-selected {
4209
- padding: calc(var(--a-spacing-3) / 2) var(--a-spacing-2);
4210
- }
4211
4205
  .navds-combobox__list-item--loading {
4212
4206
  justify-content: center;
4213
4207
  background-color: var(--ac-combobox-list-item-loading-bg, var(--a-surface-default));
@@ -4217,7 +4211,6 @@ body,
4217
4211
  border-start-start-radius: calc(var(--a-border-radius-medium) - 1px);
4218
4212
  border-start-end-radius: calc(var(--a-border-radius-medium) - 1px);
4219
4213
  border: 1px solid var(--ac-combobox-list-item-max-selected-border, var(--a-border-info));
4220
- margin-bottom: calc(var(--a-spacing-1) * -1);
4221
4214
  }
4222
4215
  .navds-combobox__list_non-selectables:hover {
4223
4216
  cursor: default;
@@ -4240,11 +4233,7 @@ body,
4240
4233
  background-color: var(--ac-combobox-list-item-hover-bg, var(--a-surface-hover));
4241
4234
  cursor: pointer;
4242
4235
  border-left: 4px solid var(--ac-combobox-list-item-hover-border-left, var(--a-border-strong));
4243
- padding-left: calc(var(--a-spacing-3) - 4px);
4244
- }
4245
- .navds-form-field--small .navds-combobox__list-item--focus,
4246
- .navds-combobox__list--with-hover .navds-form-field--small .navds-combobox__list-item:hover {
4247
- padding-left: calc(var(--a-spacing-2) - 4px);
4236
+ padding-inline-start: calc(var(--__ac-combobox-list-item-padding-inline) - 4px);
4248
4237
  }
4249
4238
  .navds-combobox__list-item[data-no-focus="true"] {
4250
4239
  cursor: not-allowed;
@@ -4260,7 +4249,6 @@ body,
4260
4249
  .navds-combobox__list--with-hover .navds-combobox__list-item--selected:hover {
4261
4250
  background-color: var(--ac-combobox-list-item-selected-hover-bg, var(--a-surface-action-subtle-hover));
4262
4251
  border-left: 4px solid var(--ac-combobox-list-item-selected-hover-border-left, var(--a-border-focus));
4263
- padding-left: calc(var(--a-spacing-3) - 4px);
4264
4252
  }
4265
4253
  .navds-combobox__list-item--new-option {
4266
4254
  border-bottom: 1px solid var(--a-border-divider);
@@ -7346,7 +7334,7 @@ button.navds-stepper__step {
7346
7334
  min-height: 100lvh;
7347
7335
  }
7348
7336
  .navds-page__content--padding {
7349
- padding-block-end: var(--a-spacing-8);
7337
+ padding-block-end: var(--a-spacing-16);
7350
7338
  }
7351
7339
  .navds-pageblock--text {
7352
7340
  max-width: calc(var(--a-text-width-max) + var(--__ac-page-padding-inline) + var(--__ac-page-padding-inline));
@@ -22,7 +22,7 @@ const ruleFunction = () => {
22
22
  !deprecation.classes.includes(className.value)) {
23
23
  continue;
24
24
  }
25
- else if (deprecation.deprecatePrefix &&
25
+ if (deprecation.deprecatePrefix &&
26
26
  !deprecation.classes.some((x) => className.value.startsWith(x))) {
27
27
  return;
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/aksel-stylelint",
3
- "version": "6.8.0",
3
+ "version": "6.9.0",
4
4
  "author": "Aksel | NAV",
5
5
  "homepage": "https://aksel.nav.no/grunnleggende/kode/stylelint",
6
6
  "repository": {
@@ -35,8 +35,8 @@
35
35
  "dev": "yarn watch:lint"
36
36
  },
37
37
  "devDependencies": {
38
- "@navikt/ds-css": "^6.8.0",
39
- "@navikt/ds-tokens": "^6.8.0",
38
+ "@navikt/ds-css": "^6.9.0",
39
+ "@navikt/ds-tokens": "^6.9.0",
40
40
  "concurrently": "7.2.1",
41
41
  "postcss-selector-parser": "^6.0.13",
42
42
  "postcss-value-parser": "^4.2.0",