@quidgest/ui 0.31.0 → 0.31.2

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,24 @@ 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.2] - 2026-11-02
11
+
12
+ ### Fixed
13
+
14
+ - `QButton` is never narrower than its minimum height: icon-only buttons, a one-character label, or a width set from outside keep it at least as wide as `--q-button-height`. The `QCarousel` pause button is square again (it was taller than wide)
15
+ - `QField` error icon is centered on the message's capitals in any font and line height (it sat high outside Nunito Sans)
16
+
17
+ ## [0.31.1] - 2026-10-30
18
+
19
+ ### Added
20
+
21
+ - Theme `secondary` again (aubergine): light `#593b57`, dark `#a584a1`, with `*Light` / `*Dark` / `on*` tokens and `--q-theme-secondary*`. `color="secondary"` works on components again
22
+ - `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
23
+
24
+ ### Fixed
25
+
26
+ - 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
27
+
10
28
  ## [0.31.0] - 2026-10-30
11
29
 
12
30
  ### Added
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.31.0",
2
+ "version": "0.31.2",
3
3
  "components": [
4
4
  {
5
5
  "name": "QAccordion",
@@ -1235,6 +1235,11 @@
1235
1235
  "description": "Plays a ripple effect from the pointer position on click. Opt in with `effect=\"ripple\"` — the default is `'none'`.",
1236
1236
  "code": "<div style=\"display: flex; align-items: center; gap: 0.5rem\">\n\t\t\t\t<q-button label=\"Ripple\" effect=\"ripple\" />\n\t\t\t\t<q-button label=\"None\" />\n\t\t\t</div>"
1237
1237
  },
1238
+ {
1239
+ "title": "Minimum Width",
1240
+ "description": "A button is never narrower than its minimum height: icon-only buttons, a one-character label, and a width set from outside, as a component that places a button might set it.",
1241
+ "code": "<div style=\"display: flex; align-items: center; gap: 0.5rem\">\n\t\t\t\t<q-button size=\"small\" aria-label=\"Done\"><q-icon icon=\"check-circle\" /></q-button>\n\t\t\t\t<q-button aria-label=\"Done\"><q-icon icon=\"check-circle\" /></q-button>\n\t\t\t\t<q-button size=\"large\" aria-label=\"Done\"><q-icon icon=\"check-circle\" /></q-button>\n\t\t\t\t<q-button variant=\"text\" label=\"1\" />\n\t\t\t\t<q-button aria-label=\"Done\" style=\"width: 1.5rem\"><q-icon icon=\"check-circle\" /></q-button>\n\t\t\t</div>"
1242
+ },
1238
1243
  {
1239
1244
  "title": "Size",
1240
1245
  "description": "Local size overrides. Useful for slotting buttons within other components. Combines with the global density toolbar (product = global × size).",
@@ -2844,7 +2849,9 @@
2844
2849
  "values": [
2845
2850
  "wrap",
2846
2851
  "fit-content",
2847
- "truncate"
2852
+ "truncate",
2853
+ "wrap-on-focus",
2854
+ "scroll-on-focus"
2848
2855
  ]
2849
2856
  },
2850
2857
  "description": "How long option labels overflow in the dropdown.\nDefaults to `wrap`.",
@@ -3015,8 +3022,8 @@
3015
3022
  },
3016
3023
  {
3017
3024
  "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>"
3025
+ "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.",
3026
+ "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
3027
  },
3021
3028
  {
3022
3029
  "title": "Description In Items",
@@ -9778,7 +9785,9 @@
9778
9785
  "values": [
9779
9786
  "wrap",
9780
9787
  "fit-content",
9781
- "truncate"
9788
+ "truncate",
9789
+ "wrap-on-focus",
9790
+ "scroll-on-focus"
9782
9791
  ]
9783
9792
  },
9784
9793
  "description": "How long option labels overflow in the dropdown.\nDefaults to `wrap`.",
@@ -9968,8 +9977,8 @@
9968
9977
  },
9969
9978
  {
9970
9979
  "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>"
9980
+ "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.",
9981
+ "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
9982
  },
9974
9983
  {
9975
9984
  "title": "Description In Items",
@@ -13085,7 +13094,7 @@
13085
13094
  "name": "QBaseColorScheme",
13086
13095
  "kind": "type",
13087
13096
  "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};"
13097
+ "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
13098
  },
13090
13099
  {
13091
13100
  "name": "QColorScheme",
@@ -13163,7 +13172,7 @@
13163
13172
  "name": "THEME_COLOR_KEYS",
13164
13173
  "kind": "const",
13165
13174
  "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\"]"
13175
+ "signature": "readonly [\"primary\", \"secondary\", \"highlight\", \"info\", \"success\", \"warning\", \"danger\", \"neutral\", \"background\"]"
13167
13176
  },
13168
13177
  {
13169
13178
  "name": "tryParseColor",
package/dist/ui.css CHANGED
@@ -1903,8 +1903,6 @@ body *::-webkit-scrollbar-track {
1903
1903
  }
1904
1904
  .q-badge__remove.q-button {
1905
1905
  padding: var(--q-control-padding-y-sm);
1906
- min-width: -moz-fit-content;
1907
- min-width: fit-content;
1908
1906
  }
1909
1907
  .q-badge:not(:has(button.q-badge__content)) .q-badge__remove.q-button {
1910
1908
  --q-button-height: calc(var(--q-interactive-height) - (var(--q-border-width, 1px) * 2));
@@ -2275,6 +2273,7 @@ body *::-webkit-scrollbar-track {
2275
2273
  justify-content: center;
2276
2274
  height: var(--q-button-height);
2277
2275
  min-height: var(--q-button-height);
2276
+ min-width: var(--q-button-height);
2278
2277
  overflow: hidden;
2279
2278
  position: relative;
2280
2279
  border-width: var(--q-border-width, 1px);
@@ -2911,16 +2910,19 @@ body *::-webkit-scrollbar-track {
2911
2910
  height: var(--q-carousel-control-icon-size);
2912
2911
  }
2913
2912
 
2914
- /* The pause button, in the bottom corner, below the caption */
2915
- .q-carousel__rotation {
2913
+ /* The pause button, in the bottom corner, below the caption. Sized through QButton's own height,
2914
+ which sets its minimum height and width too: a height set alone left QButton's minimum
2915
+ height, and the button was narrower than tall */
2916
+ .q-carousel__rotation.q-button {
2917
+ --q-button-height: var(--q-carousel-rotation-size);
2916
2918
  top: auto;
2917
2919
  bottom: var(--q-carousel-indicators-bottom);
2918
2920
  left: var(--q-carousel-control-inset);
2919
2921
  transform: none;
2920
- width: var(--q-carousel-rotation-size);
2921
- height: var(--q-carousel-rotation-size);
2922
+ width: var(--q-button-height);
2923
+ height: var(--q-button-height);
2922
2924
  }
2923
- .q-carousel__rotation .q-carousel__control-icon.q-icon {
2925
+ .q-carousel__rotation.q-button .q-carousel__control-icon.q-icon {
2924
2926
  width: var(--q-icon-size-md);
2925
2927
  height: var(--q-icon-size-md);
2926
2928
  }
@@ -3960,7 +3962,7 @@ body *::-webkit-scrollbar-track {
3960
3962
  .q-field__error {
3961
3963
  display: flex;
3962
3964
  gap: var(--q-space-1);
3963
- align-items: flex-start;
3965
+ align-items: baseline;
3964
3966
  margin-top: var(--q-space-1);
3965
3967
  font-size: var(--q-font-size-sm);
3966
3968
  color: var(--q-text-color);
@@ -3971,7 +3973,7 @@ body *::-webkit-scrollbar-track {
3971
3973
  .q-field__error-icon.q-icon {
3972
3974
  flex-shrink: 0;
3973
3975
  color: var(--q-theme-danger);
3974
- translate: 0 -0.05em;
3976
+ translate: 0 calc((var(--q-icon-size-md) - 1cap) / 2);
3975
3977
  }
3976
3978
  .q-field__error-text {
3977
3979
  min-width: 0;
@@ -7011,6 +7013,9 @@ body *::-webkit-scrollbar-track {
7011
7013
  -moz-user-select: none;
7012
7014
  user-select: none;
7013
7015
  }
7016
+ .q-list-item__label-text {
7017
+ display: contents;
7018
+ }
7014
7019
  .q-list-item__check-container {
7015
7020
  display: flex;
7016
7021
  align-items: center;
@@ -8249,6 +8254,22 @@ body *::-webkit-scrollbar-track {
8249
8254
  width: 100%;
8250
8255
  }
8251
8256
 
8257
+ @keyframes q-option-label-scroll {
8258
+ 0% {
8259
+ transform: translateX(0);
8260
+ }
8261
+ 85%, 100% {
8262
+ transform: translateX(calc(var(--q-option-label-overflow, 0) * -1));
8263
+ }
8264
+ }
8265
+ @keyframes q-option-label-scroll-rtl {
8266
+ 0% {
8267
+ transform: translateX(0);
8268
+ }
8269
+ 85%, 100% {
8270
+ transform: translateX(var(--q-option-label-overflow, 0));
8271
+ }
8272
+ }
8252
8273
  .q-select:not(.q-select--readonly):not(.q-select--disabled) {
8253
8274
  cursor: pointer;
8254
8275
  }
@@ -8350,7 +8371,7 @@ body *::-webkit-scrollbar-track {
8350
8371
  max-height: calc(var(--q-space-1) * 60);
8351
8372
  align-items: start;
8352
8373
  }
8353
- .q-select__items--wrap, .q-select__items--truncate {
8374
+ .q-select__items--wrap, .q-select__items--truncate, .q-select__items--wrap-on-focus, .q-select__items--scroll-on-focus {
8354
8375
  min-width: 0;
8355
8376
  }
8356
8377
  .q-select__items--fit-content {
@@ -8361,11 +8382,13 @@ body *::-webkit-scrollbar-track {
8361
8382
  white-space: nowrap;
8362
8383
  }
8363
8384
  .q-select__items--truncate .q-list-item__container,
8364
- .q-select__items--truncate .q-list-item__content {
8385
+ .q-select__items--truncate .q-list-item__content, .q-select__items--wrap-on-focus .q-list-item__container,
8386
+ .q-select__items--wrap-on-focus .q-list-item__content, .q-select__items--scroll-on-focus .q-list-item__container,
8387
+ .q-select__items--scroll-on-focus .q-list-item__content {
8365
8388
  min-width: 0;
8366
8389
  max-width: 100%;
8367
8390
  }
8368
- .q-select__items--truncate .q-list-item__label {
8391
+ .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
8392
  min-width: 0;
8370
8393
  overflow: hidden;
8371
8394
  white-space: nowrap;
@@ -8375,6 +8398,37 @@ body *::-webkit-scrollbar-track {
8375
8398
  white-space: normal;
8376
8399
  overflow-wrap: anywhere;
8377
8400
  }
8401
+ .q-select__items--wrap-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__content {
8402
+ white-space: normal;
8403
+ overflow-wrap: anywhere;
8404
+ }
8405
+ .q-select__items--wrap-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__label {
8406
+ flex: initial;
8407
+ width: auto;
8408
+ overflow: visible;
8409
+ white-space: normal;
8410
+ text-overflow: unset;
8411
+ overflow-wrap: anywhere;
8412
+ }
8413
+ .q-select__items--wrap-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__label-text {
8414
+ display: contents;
8415
+ width: auto;
8416
+ animation: none;
8417
+ }
8418
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__label {
8419
+ flex: 1;
8420
+ min-width: 0;
8421
+ text-overflow: clip;
8422
+ }
8423
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__label-text {
8424
+ display: inline-block;
8425
+ width: -moz-max-content;
8426
+ width: max-content;
8427
+ animation: q-option-label-scroll 2s ease-in-out 2 alternate;
8428
+ }
8429
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted):dir(rtl) .q-list-item__label-text {
8430
+ animation-name: q-option-label-scroll-rtl;
8431
+ }
8378
8432
  .q-select__loader {
8379
8433
  display: flex;
8380
8434
  justify-content: center;
@@ -8387,6 +8441,28 @@ body *::-webkit-scrollbar-track {
8387
8441
  padding-inline: var(--q-space-2);
8388
8442
  }
8389
8443
 
8444
+ @media (prefers-reduced-motion: reduce) {
8445
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__content,
8446
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted):dir(rtl) .q-list-item__content {
8447
+ white-space: normal;
8448
+ overflow-wrap: anywhere;
8449
+ }
8450
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__label,
8451
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted):dir(rtl) .q-list-item__label {
8452
+ flex: initial;
8453
+ width: auto;
8454
+ overflow: visible;
8455
+ white-space: normal;
8456
+ text-overflow: unset;
8457
+ overflow-wrap: anywhere;
8458
+ }
8459
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted) .q-list-item__label-text,
8460
+ .q-select__items--scroll-on-focus .q-list-item:is(:focus, .q-list-item--highlighted):dir(rtl) .q-list-item__label-text {
8461
+ display: contents;
8462
+ width: auto;
8463
+ animation: none;
8464
+ }
8465
+ }
8390
8466
  .q-sidebar {
8391
8467
  --q-sidebar-border-color: rgb(var(--q-theme-neutral-rgb) / 25%);
8392
8468
  --q-sidebar-indicator-color: var(--q-theme-primary-dark);