@still-void/ui 3.5.0 → 3.5.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
@@ -1,5 +1,11 @@
1
1
  # @still-void/ui
2
2
 
3
+ ## 3.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#33](https://github.com/KalleoPinheiro/still-void/pull/33) [`11a7302`](https://github.com/KalleoPinheiro/still-void/commit/11a7302233529b6349653329295ddf7250c49834) Thanks [@KalleoPinheiro](https://github.com/KalleoPinheiro)! - Alvos de toque de 44×44px agora valem em todo viewport abaixo de 64rem (tablet) ou com ponteiro primário grosso, não só abaixo de 40rem. O botão de fechar do `Dialog`, o do `Toast` e o gatilho do `AppSidebar` ganham uma área de toque invisível de 44×44px sem mudar o tamanho do ícone, e os rótulos de `Radio` e `.sv-choice` ganham a mesma altura mínima que o rótulo do `Checkbox`. Desktop com mouse e janela larga não muda.
8
+
3
9
  ## 3.5.0
4
10
 
5
11
  ### Minor Changes
package/dist/style.css CHANGED
@@ -1024,9 +1024,10 @@ body.sv-body {
1024
1024
  }
1025
1025
 
1026
1026
  /* ---------- Touch targets ---------- */
1027
- /* On a narrow or touch viewport every button and field reaches
1028
- 44x44px (WCAG 2.5.5). Pointer-fine desktop keeps the heights above. */
1029
- @media (width < 40rem), (pointer: coarse) {
1027
+ /* Below 64rem (tablet) or on a coarse primary pointer every button and field
1028
+ reaches 44x44px (WCAG 2.5.5). A fine pointer on a wide window keeps the
1029
+ heights above. */
1030
+ @media (width < 64rem), (pointer: coarse) {
1030
1031
  .sv-btn,
1031
1032
  .sv-field {
1032
1033
  min-height: calc(var(--sv-space-10) + var(--sv-space-1));
@@ -1036,9 +1037,27 @@ body.sv-body {
1036
1037
  }
1037
1038
  /* A checkbox stays its drawn size; the label wrapping it is the target, since
1038
1039
  tapping the label toggles the input. */
1039
- label:has(> .sv-check) {
1040
+ label:has(> .sv-check),
1041
+ label:has(> .sv-radio),
1042
+ .sv-choice {
1040
1043
  min-height: calc(var(--sv-space-10) + var(--sv-space-1));
1041
1044
  }
1045
+ /* Bare icon controls keep their drawn size; an invisible 44x44px pseudo-element
1046
+ centred on the control extends the hit area without moving the icon. */
1047
+ .sv-dialog__close::after,
1048
+ .sv-toast__close::after,
1049
+ .sv-app-sidebar-trigger::after {
1050
+ content: '';
1051
+ position: absolute;
1052
+ top: 50%;
1053
+ left: 50%;
1054
+ width: calc(var(--sv-space-10) + var(--sv-space-1));
1055
+ height: calc(var(--sv-space-10) + var(--sv-space-1));
1056
+ transform: translate(-50%, -50%);
1057
+ }
1058
+ .sv-toast__close {
1059
+ position: relative;
1060
+ }
1042
1061
  }
1043
1062
 
1044
1063
  /* ---------- Card ---------- */
@@ -1676,7 +1695,7 @@ body.sv-body {
1676
1695
  /* Triggers reach 44px and a strip wider than the viewport scrolls inside
1677
1696
  itself instead of widening the page. Declared after the base rules above so
1678
1697
  the list's height override wins at equal specificity. */
1679
- @media (width < 40rem), (pointer: coarse) {
1698
+ @media (width < 64rem), (pointer: coarse) {
1680
1699
  .sv-tabs__list {
1681
1700
  height: auto;
1682
1701
  max-width: 100%;
@@ -1804,7 +1823,7 @@ body.sv-body {
1804
1823
 
1805
1824
  /* ---------- Pagination touch ---------- */
1806
1825
  /* Page links and "load more" reach 44x44px on narrow or touch viewports. */
1807
- @media (width < 40rem), (pointer: coarse) {
1826
+ @media (width < 64rem), (pointer: coarse) {
1808
1827
  .sv-pagination__link {
1809
1828
  min-height: calc(var(--sv-space-10) + var(--sv-space-1));
1810
1829
  min-width: calc(var(--sv-space-10) + var(--sv-space-1));
@@ -1912,6 +1931,7 @@ body.sv-body {
1912
1931
  }
1913
1932
 
1914
1933
  .sv-app-sidebar-trigger {
1934
+ position: relative;
1915
1935
  display: inline-flex;
1916
1936
  align-items: center;
1917
1937
  justify-content: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@still-void/ui",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "Still Void design system — React/Next.js design system with a server-safe entry and a client-only entry, built on shadcn/ui.",
5
5
  "license": "MIT",
6
6
  "author": "Kalleo Pinheiro",