@quidgest/ui 0.31.0 → 0.31.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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  Entries below start at **0.16.0**. There's a section for every release (major, minor, and patch), including public API breaks with migration steps plus notable Added/Changed/Fixed entries. This file also ships in the npm package.
9
9
 
10
+ ## [0.31.1] - 2026-10-30
11
+
12
+ ### Added
13
+
14
+ - Theme `secondary` again (aubergine): light `#593b57`, dark `#a584a1`, with `*Light` / `*Dark` / `on*` tokens and `--q-theme-secondary*`. `color="secondary"` works on components again
15
+ - `QSelect` and `QCombobox` `overflow` modes `wrap-on-focus` and `scroll-on-focus` — like `truncate` until the option is focused or highlighted, then that label wraps, or scrolls to its end and back (wraps under reduced motion). Focus stays in a combobox field while its list highlights
16
+
17
+ ### Fixed
18
+
19
+ - Dark theme `info`, `success`, and `warning` — lighter bases and hovers that lighten with the theme (`info` `#18afc3` / `#64dcec`, `success` `#3caf51` / `#84d593`, `warning` `#d6ab00` / `#ffdc4e`), with black text on those hovers
20
+
10
21
  ## [0.31.0] - 2026-10-30
11
22
 
12
23
  ### Added
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.31.0",
2
+ "version": "0.31.1",
3
3
  "components": [
4
4
  {
5
5
  "name": "QAccordion",
@@ -2844,7 +2844,9 @@
2844
2844
  "values": [
2845
2845
  "wrap",
2846
2846
  "fit-content",
2847
- "truncate"
2847
+ "truncate",
2848
+ "wrap-on-focus",
2849
+ "scroll-on-focus"
2848
2850
  ]
2849
2851
  },
2850
2852
  "description": "How long option labels overflow in the dropdown.\nDefaults to `wrap`.",
@@ -3015,8 +3017,8 @@
3015
3017
  },
3016
3018
  {
3017
3019
  "title": "Overflow",
3018
- "description": "Controls how long option labels overflow relative to the field width. Defaults to `wrap`. - `wrap`: the menu matches the field and labels wrap onto more lines. - `truncate`: the menu matches the field and labels end in an ellipsis; a cut-off label shows its full text in a native `title` on hover. - `fit-content`: the menu grows with the longest option.",
3019
- "code": "<div style=\"display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem\">\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"wrap\">\n\t\t\t\t\t<q-combobox v-bind=\"args\" label=\"Wrap\" overflow=\"wrap\" />\n\t\t\t\t</div>\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"truncate\">\n\t\t\t\t\t<q-combobox v-bind=\"args\" label=\"Truncate\" overflow=\"truncate\" />\n\t\t\t\t</div>\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"fit-content\">\n\t\t\t\t\t<q-combobox v-bind=\"args\" label=\"Fit content\" overflow=\"fit-content\" />\n\t\t\t\t</div>\n\t\t\t</div>"
3020
+ "description": "Controls how long option labels overflow relative to the field width. Defaults to `wrap`. - `wrap`: the menu matches the field and labels wrap onto more lines. - `truncate`: the menu matches the field and labels end in an ellipsis; a cut-off label shows its full text in a native `title` on hover. - `fit-content`: the menu grows with the longest option. - `wrap-on-focus`: like `truncate` until the option is highlighted, then that label wraps. Focus stays in the field. - `scroll-on-focus`: like `truncate` until the option is highlighted, then that label scrolls to its end and back. With reduced motion, the highlighted label wraps instead.",
3021
+ "code": "<div style=\"display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem\">\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"wrap\">\n\t\t\t\t\t<q-combobox v-bind=\"args\" label=\"Wrap\" overflow=\"wrap\" />\n\t\t\t\t</div>\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"truncate\">\n\t\t\t\t\t<q-combobox v-bind=\"args\" label=\"Truncate\" overflow=\"truncate\" />\n\t\t\t\t</div>\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"fit-content\">\n\t\t\t\t\t<q-combobox v-bind=\"args\" label=\"Fit content\" overflow=\"fit-content\" />\n\t\t\t\t</div>\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"wrap-on-focus\">\n\t\t\t\t\t<q-combobox v-bind=\"args\" label=\"Wrap on focus\" overflow=\"wrap-on-focus\" />\n\t\t\t\t</div>\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"scroll-on-focus\">\n\t\t\t\t\t<q-combobox v-bind=\"args\" label=\"Scroll on focus\" overflow=\"scroll-on-focus\" />\n\t\t\t\t</div>\n\t\t\t</div>"
3020
3022
  },
3021
3023
  {
3022
3024
  "title": "Description In Items",
@@ -9778,7 +9780,9 @@
9778
9780
  "values": [
9779
9781
  "wrap",
9780
9782
  "fit-content",
9781
- "truncate"
9783
+ "truncate",
9784
+ "wrap-on-focus",
9785
+ "scroll-on-focus"
9782
9786
  ]
9783
9787
  },
9784
9788
  "description": "How long option labels overflow in the dropdown.\nDefaults to `wrap`.",
@@ -9968,8 +9972,8 @@
9968
9972
  },
9969
9973
  {
9970
9974
  "title": "Overflow",
9971
- "description": "Controls how long option labels overflow relative to the field width. Defaults to `wrap`. - `wrap`: the menu matches the field and labels wrap onto more lines. - `truncate`: the menu matches the field and labels end in an ellipsis; a cut-off label shows its full text in a native `title` on hover. - `fit-content`: the menu grows with the longest option.",
9972
- "code": "<div style=\"display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem\">\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"wrap\">\n\t\t\t\t\t<q-select v-bind=\"args\" label=\"Wrap\" overflow=\"wrap\" />\n\t\t\t\t</div>\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"truncate\">\n\t\t\t\t\t<q-select v-bind=\"args\" label=\"Truncate\" overflow=\"truncate\" />\n\t\t\t\t</div>\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"fit-content\">\n\t\t\t\t\t<q-select v-bind=\"args\" label=\"Fit content\" overflow=\"fit-content\" />\n\t\t\t\t</div>\n\t\t\t</div>"
9975
+ "description": "Controls how long option labels overflow relative to the field width. Defaults to `wrap`. - `wrap`: the menu matches the field and labels wrap onto more lines. - `truncate`: the menu matches the field and labels end in an ellipsis; a cut-off label shows its full text in a native `title` on hover. - `fit-content`: the menu grows with the longest option. - `wrap-on-focus`: like `truncate` until the option is focused, then that label wraps. - `scroll-on-focus`: like `truncate` until the option is focused, then that label scrolls to its end and back. With reduced motion, the focused label wraps instead.",
9976
+ "code": "<div style=\"display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem\">\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"wrap\">\n\t\t\t\t\t<q-select v-bind=\"args\" label=\"Wrap\" overflow=\"wrap\" />\n\t\t\t\t</div>\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"truncate\">\n\t\t\t\t\t<q-select v-bind=\"args\" label=\"Truncate\" overflow=\"truncate\" />\n\t\t\t\t</div>\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"fit-content\">\n\t\t\t\t\t<q-select v-bind=\"args\" label=\"Fit content\" overflow=\"fit-content\" />\n\t\t\t\t</div>\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"wrap-on-focus\">\n\t\t\t\t\t<q-select v-bind=\"args\" label=\"Wrap on focus\" overflow=\"wrap-on-focus\" />\n\t\t\t\t</div>\n\t\t\t\t<div style=\"width: 12rem\" data-overflow=\"scroll-on-focus\">\n\t\t\t\t\t<q-select v-bind=\"args\" label=\"Scroll on focus\" overflow=\"scroll-on-focus\" />\n\t\t\t\t</div>\n\t\t\t</div>"
9973
9977
  },
9974
9978
  {
9975
9979
  "title": "Description In Items",
@@ -13085,7 +13089,7 @@
13085
13089
  "name": "QBaseColorScheme",
13086
13090
  "kind": "type",
13087
13091
  "description": "",
13088
- "signature": "type QBaseColorScheme = {\n primary: string;\n primaryLight: string;\n primaryDark: string;\n highlight: string;\n highlightLight: string;\n highlightDark: string;\n info: string;\n infoLight: string;\n infoDark: string;\n success: string;\n successLight: string;\n successDark: string;\n warning: string;\n warningLight: string;\n warningDark: string;\n danger: string;\n dangerLight: string;\n dangerDark: string;\n background: string;\n container: string;\n neutral: string;\n neutralLight: string;\n neutralDark: string;\n};"
13092
+ "signature": "type QBaseColorScheme = {\n primary: string;\n primaryLight: string;\n primaryDark: string;\n secondary: string;\n secondaryLight: string;\n secondaryDark: string;\n highlight: string;\n highlightLight: string;\n highlightDark: string;\n info: string;\n infoLight: string;\n infoDark: string;\n success: string;\n successLight: string;\n successDark: string;\n warning: string;\n warningLight: string;\n warningDark: string;\n danger: string;\n dangerLight: string;\n dangerDark: string;\n background: string;\n container: string;\n neutral: string;\n neutralLight: string;\n neutralDark: string;\n};"
13089
13093
  },
13090
13094
  {
13091
13095
  "name": "QColorScheme",
@@ -13163,7 +13167,7 @@
13163
13167
  "name": "THEME_COLOR_KEYS",
13164
13168
  "kind": "const",
13165
13169
  "description": "Theme utility color keys used for BEM classification via `isThemeColor` / `isUtilityColor`. Brand/semantic keys match the historical theme color set. Color CSS vars for QButton / QBadge / QToast come from bound `useColor` styles rather than Sass map loops. `background` remains a utility key so QButton can apply its hand-written `--background` modifier (and skip inline vars for that color). `container` is omitted (scheme resolve only).",
13166
- "signature": "readonly [\"primary\", \"highlight\", \"info\", \"success\", \"warning\", \"danger\", \"neutral\", \"background\"]"
13170
+ "signature": "readonly [\"primary\", \"secondary\", \"highlight\", \"info\", \"success\", \"warning\", \"danger\", \"neutral\", \"background\"]"
13167
13171
  },
13168
13172
  {
13169
13173
  "name": "tryParseColor",
package/dist/ui.css CHANGED
@@ -7011,6 +7011,9 @@ body *::-webkit-scrollbar-track {
7011
7011
  -moz-user-select: none;
7012
7012
  user-select: none;
7013
7013
  }
7014
+ .q-list-item__label-text {
7015
+ display: contents;
7016
+ }
7014
7017
  .q-list-item__check-container {
7015
7018
  display: flex;
7016
7019
  align-items: center;
@@ -8249,6 +8252,22 @@ body *::-webkit-scrollbar-track {
8249
8252
  width: 100%;
8250
8253
  }
8251
8254
 
8255
+ @keyframes q-option-label-scroll {
8256
+ 0% {
8257
+ transform: translateX(0);
8258
+ }
8259
+ 85%, 100% {
8260
+ transform: translateX(calc(var(--q-option-label-overflow, 0) * -1));
8261
+ }
8262
+ }
8263
+ @keyframes q-option-label-scroll-rtl {
8264
+ 0% {
8265
+ transform: translateX(0);
8266
+ }
8267
+ 85%, 100% {
8268
+ transform: translateX(var(--q-option-label-overflow, 0));
8269
+ }
8270
+ }
8252
8271
  .q-select:not(.q-select--readonly):not(.q-select--disabled) {
8253
8272
  cursor: pointer;
8254
8273
  }
@@ -8350,7 +8369,7 @@ body *::-webkit-scrollbar-track {
8350
8369
  max-height: calc(var(--q-space-1) * 60);
8351
8370
  align-items: start;
8352
8371
  }
8353
- .q-select__items--wrap, .q-select__items--truncate {
8372
+ .q-select__items--wrap, .q-select__items--truncate, .q-select__items--wrap-on-focus, .q-select__items--scroll-on-focus {
8354
8373
  min-width: 0;
8355
8374
  }
8356
8375
  .q-select__items--fit-content {
@@ -8361,11 +8380,13 @@ body *::-webkit-scrollbar-track {
8361
8380
  white-space: nowrap;
8362
8381
  }
8363
8382
  .q-select__items--truncate .q-list-item__container,
8364
- .q-select__items--truncate .q-list-item__content {
8383
+ .q-select__items--truncate .q-list-item__content, .q-select__items--wrap-on-focus .q-list-item__container,
8384
+ .q-select__items--wrap-on-focus .q-list-item__content, .q-select__items--scroll-on-focus .q-list-item__container,
8385
+ .q-select__items--scroll-on-focus .q-list-item__content {
8365
8386
  min-width: 0;
8366
8387
  max-width: 100%;
8367
8388
  }
8368
- .q-select__items--truncate .q-list-item__label {
8389
+ .q-select__items--truncate .q-list-item__label, .q-select__items--wrap-on-focus .q-list-item__label, .q-select__items--scroll-on-focus .q-list-item__label {
8369
8390
  min-width: 0;
8370
8391
  overflow: hidden;
8371
8392
  white-space: nowrap;
@@ -8375,6 +8396,37 @@ body *::-webkit-scrollbar-track {
8375
8396
  white-space: normal;
8376
8397
  overflow-wrap: anywhere;
8377
8398
  }
8399
+ .q-select__items--wrap-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__content {
8400
+ white-space: normal;
8401
+ overflow-wrap: anywhere;
8402
+ }
8403
+ .q-select__items--wrap-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__label {
8404
+ flex: initial;
8405
+ width: auto;
8406
+ overflow: visible;
8407
+ white-space: normal;
8408
+ text-overflow: unset;
8409
+ overflow-wrap: anywhere;
8410
+ }
8411
+ .q-select__items--wrap-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__label-text {
8412
+ display: contents;
8413
+ width: auto;
8414
+ animation: none;
8415
+ }
8416
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__label {
8417
+ flex: 1;
8418
+ min-width: 0;
8419
+ text-overflow: clip;
8420
+ }
8421
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__label-text {
8422
+ display: inline-block;
8423
+ width: -moz-max-content;
8424
+ width: max-content;
8425
+ animation: q-option-label-scroll 2s ease-in-out 2 alternate;
8426
+ }
8427
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted):dir(rtl) .q-list-item__label-text {
8428
+ animation-name: q-option-label-scroll-rtl;
8429
+ }
8378
8430
  .q-select__loader {
8379
8431
  display: flex;
8380
8432
  justify-content: center;
@@ -8387,6 +8439,28 @@ body *::-webkit-scrollbar-track {
8387
8439
  padding-inline: var(--q-space-2);
8388
8440
  }
8389
8441
 
8442
+ @media (prefers-reduced-motion: reduce) {
8443
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__content,
8444
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted):dir(rtl) .q-list-item__content {
8445
+ white-space: normal;
8446
+ overflow-wrap: anywhere;
8447
+ }
8448
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__label,
8449
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted):dir(rtl) .q-list-item__label {
8450
+ flex: initial;
8451
+ width: auto;
8452
+ overflow: visible;
8453
+ white-space: normal;
8454
+ text-overflow: unset;
8455
+ overflow-wrap: anywhere;
8456
+ }
8457
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__label-text,
8458
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted):dir(rtl) .q-list-item__label-text {
8459
+ display: contents;
8460
+ width: auto;
8461
+ animation: none;
8462
+ }
8463
+ }
8390
8464
  .q-sidebar {
8391
8465
  --q-sidebar-border-color: rgb(var(--q-theme-neutral-rgb) / 25%);
8392
8466
  --q-sidebar-indicator-color: var(--q-theme-primary-dark);