@donotdev/components 0.2.2 → 0.3.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.
Files changed (193) hide show
  1. package/dist/CarouselContent-5W2E2F2I.js +1 -0
  2. package/dist/CarouselContent-EELYAALW.js +1 -0
  3. package/dist/{CarouselContent-F4JSFIQD.js → CarouselContent-MQPZBYOS.js} +1 -1
  4. package/dist/CodeContent-64D4U3NM.js +2 -0
  5. package/dist/CodeContent-7FWYPAB3.js +2 -0
  6. package/dist/CodeContent-E3HLW6BW.js +2 -0
  7. package/dist/{CrawlContent-6LR66N57.js → CrawlContent-5Z6AVDDW.js} +1 -1
  8. package/dist/{MarqueeContent-NBXB2YLR.js → MarqueeContent-KAYCOUNM.js} +1 -1
  9. package/dist/advanced/Bento/Bento.d.ts.map +1 -1
  10. package/dist/advanced/Carousel/Carousel.d.ts +6 -4
  11. package/dist/advanced/Carousel/Carousel.d.ts.map +1 -1
  12. package/dist/advanced/Carousel/Carousel.js +10 -8
  13. package/dist/advanced/Carousel/CarouselContent.d.ts +35 -3
  14. package/dist/advanced/Carousel/CarouselContent.d.ts.map +1 -1
  15. package/dist/advanced/Carousel/CarouselContent.js +109 -70
  16. package/dist/advanced/Carousel/CarouselSkeleton.d.ts +3 -1
  17. package/dist/advanced/Carousel/CarouselSkeleton.d.ts.map +1 -1
  18. package/dist/advanced/Carousel/CarouselSkeleton.js +2 -2
  19. package/dist/advanced/Code/CodeContent.js +3 -5
  20. package/dist/advanced/Crawl/utils/parseHtml.d.ts.map +1 -1
  21. package/dist/advanced/Crawl/utils/parseHtml.js +9 -2
  22. package/dist/advanced/ImageGallery/GalleryArrows.d.ts +24 -0
  23. package/dist/advanced/ImageGallery/GalleryArrows.d.ts.map +1 -0
  24. package/dist/advanced/ImageGallery/GalleryArrows.js +13 -0
  25. package/dist/advanced/ImageGallery/ImageGallery.d.ts +6 -4
  26. package/dist/advanced/ImageGallery/ImageGallery.d.ts.map +1 -1
  27. package/dist/advanced/ImageGallery/ImageGallery.js +116 -147
  28. package/dist/advanced/ImageGallery/LightboxViewer.d.ts +39 -0
  29. package/dist/advanced/ImageGallery/LightboxViewer.d.ts.map +1 -0
  30. package/dist/advanced/ImageGallery/LightboxViewer.js +138 -0
  31. package/dist/advanced/ImageGallery/lightboxGestures.d.ts +28 -0
  32. package/dist/advanced/ImageGallery/lightboxGestures.d.ts.map +1 -0
  33. package/dist/advanced/ImageGallery/lightboxGestures.js +425 -0
  34. package/dist/advanced/ImageGallery/protectImages.d.ts +19 -0
  35. package/dist/advanced/ImageGallery/protectImages.d.ts.map +1 -0
  36. package/dist/advanced/ImageGallery/protectImages.js +10 -0
  37. package/dist/advanced/ImageGallery/snapStrip.d.ts +29 -0
  38. package/dist/advanced/ImageGallery/snapStrip.d.ts.map +1 -0
  39. package/dist/advanced/ImageGallery/snapStrip.js +74 -0
  40. package/dist/advanced/Marquee/MarqueeContent.d.ts.map +1 -1
  41. package/dist/advanced/Marquee/MarqueeContent.js +7 -6
  42. package/dist/advanced/Reveal/Reveal.d.ts.map +1 -1
  43. package/dist/advanced/Reveal/Reveal.js +3 -2
  44. package/dist/advanced/Roadmap/RoadmapContent.d.ts.map +1 -1
  45. package/dist/advanced/Roadmap/RoadmapContent.js +2 -1
  46. package/dist/atomic/ActionButton/index.d.ts +8 -4
  47. package/dist/atomic/ActionButton/index.d.ts.map +1 -1
  48. package/dist/atomic/ActionButton/index.js +3 -3
  49. package/dist/atomic/Alert/index.d.ts +1 -1
  50. package/dist/atomic/Button/index.d.ts +30 -1
  51. package/dist/atomic/Button/index.d.ts.map +1 -1
  52. package/dist/atomic/Button/index.js +38 -1
  53. package/dist/atomic/Calendar/index.d.ts.map +1 -1
  54. package/dist/atomic/Calendar/index.js +1 -0
  55. package/dist/atomic/Card/cover.d.ts +13 -8
  56. package/dist/atomic/Card/cover.d.ts.map +1 -1
  57. package/dist/atomic/Card/cover.js +13 -6
  58. package/dist/atomic/Card/index.d.ts +23 -8
  59. package/dist/atomic/Card/index.d.ts.map +1 -1
  60. package/dist/atomic/Card/index.js +25 -5
  61. package/dist/atomic/Collapsible/index.d.ts +7 -1
  62. package/dist/atomic/Collapsible/index.d.ts.map +1 -1
  63. package/dist/atomic/Collapsible/index.js +8 -3
  64. package/dist/atomic/ColorPicker/index.d.ts.map +1 -1
  65. package/dist/atomic/ColorPicker/index.js +3 -2
  66. package/dist/atomic/Combobox/index.d.ts +11 -1
  67. package/dist/atomic/Combobox/index.d.ts.map +1 -1
  68. package/dist/atomic/Combobox/index.js +26 -9
  69. package/dist/atomic/DatePicker/index.d.ts +3 -1
  70. package/dist/atomic/DatePicker/index.d.ts.map +1 -1
  71. package/dist/atomic/DatePicker/index.js +2 -2
  72. package/dist/atomic/DateTimePicker/index.d.ts +3 -1
  73. package/dist/atomic/DateTimePicker/index.d.ts.map +1 -1
  74. package/dist/atomic/DateTimePicker/index.js +2 -2
  75. package/dist/atomic/Grid/index.d.ts.map +1 -1
  76. package/dist/atomic/Grid/index.js +11 -6
  77. package/dist/atomic/Icons/Partner/providerIcons.d.ts.map +1 -1
  78. package/dist/atomic/Icons/Partner/providerIcons.js +6 -1
  79. package/dist/atomic/Input/index.d.ts +3 -1
  80. package/dist/atomic/Input/index.d.ts.map +1 -1
  81. package/dist/atomic/Input/index.js +3 -3
  82. package/dist/atomic/Label/FieldInfo.d.ts +18 -0
  83. package/dist/atomic/Label/FieldInfo.d.ts.map +1 -0
  84. package/dist/atomic/Label/FieldInfo.js +34 -0
  85. package/dist/atomic/Label/FloatingLabel.d.ts +6 -1
  86. package/dist/atomic/Label/FloatingLabel.d.ts.map +1 -1
  87. package/dist/atomic/Label/FloatingLabel.js +6 -2
  88. package/dist/atomic/Label/index.d.ts +1 -0
  89. package/dist/atomic/Label/index.d.ts.map +1 -1
  90. package/dist/atomic/Label/index.js +1 -0
  91. package/dist/atomic/NavigationMenu/index.d.ts.map +1 -1
  92. package/dist/atomic/NavigationMenu/index.js +2 -2
  93. package/dist/atomic/PasswordInput/index.d.ts +3 -1
  94. package/dist/atomic/PasswordInput/index.d.ts.map +1 -1
  95. package/dist/atomic/PasswordInput/index.js +5 -3
  96. package/dist/atomic/PinInput/index.d.ts +3 -1
  97. package/dist/atomic/PinInput/index.d.ts.map +1 -1
  98. package/dist/atomic/PinInput/index.js +2 -2
  99. package/dist/atomic/QuantityStepper/index.d.ts +19 -4
  100. package/dist/atomic/QuantityStepper/index.d.ts.map +1 -1
  101. package/dist/atomic/QuantityStepper/index.js +208 -5
  102. package/dist/atomic/QuantityStepper/quantity.d.ts +14 -0
  103. package/dist/atomic/QuantityStepper/quantity.d.ts.map +1 -0
  104. package/dist/atomic/QuantityStepper/quantity.js +35 -0
  105. package/dist/atomic/RangeInput/index.d.ts +3 -1
  106. package/dist/atomic/RangeInput/index.d.ts.map +1 -1
  107. package/dist/atomic/RangeInput/index.js +2 -2
  108. package/dist/atomic/Select/index.d.ts +3 -1
  109. package/dist/atomic/Select/index.d.ts.map +1 -1
  110. package/dist/atomic/Select/index.js +2 -2
  111. package/dist/atomic/SwipeAction/gesture.d.ts +5 -0
  112. package/dist/atomic/SwipeAction/gesture.d.ts.map +1 -0
  113. package/dist/atomic/SwipeAction/gesture.js +10 -0
  114. package/dist/atomic/SwipeAction/index.d.ts +14 -0
  115. package/dist/atomic/SwipeAction/index.d.ts.map +1 -0
  116. package/dist/atomic/SwipeAction/index.js +67 -0
  117. package/dist/atomic/Switch/index.d.ts +14 -11
  118. package/dist/atomic/Switch/index.d.ts.map +1 -1
  119. package/dist/atomic/Switch/index.js +21 -10
  120. package/dist/atomic/Table/editing.d.ts +111 -0
  121. package/dist/atomic/Table/editing.d.ts.map +1 -0
  122. package/dist/atomic/Table/editing.js +173 -0
  123. package/dist/atomic/Table/index.d.ts +50 -1
  124. package/dist/atomic/Table/index.d.ts.map +1 -1
  125. package/dist/atomic/Table/index.js +179 -58
  126. package/dist/atomic/Tag/index.d.ts +3 -1
  127. package/dist/atomic/Tag/index.d.ts.map +1 -1
  128. package/dist/atomic/Tag/index.js +2 -2
  129. package/dist/atomic/Text/index.d.ts +0 -4
  130. package/dist/atomic/Text/index.d.ts.map +1 -1
  131. package/dist/atomic/Text/index.js +12 -5
  132. package/dist/atomic/Toaster/ToastPrimitive.d.ts +2 -2
  133. package/dist/atomic/Toaster/ToastPrimitive.d.ts.map +1 -1
  134. package/dist/atomic/index.d.ts +9 -5
  135. package/dist/atomic/index.d.ts.map +1 -1
  136. package/dist/atomic/index.js +4 -1
  137. package/dist/chunk-3WHSDDVJ.js +1 -0
  138. package/dist/chunk-CIBFOOWV.js +1 -0
  139. package/dist/chunk-JAV36ZQC.js +3 -0
  140. package/dist/chunk-SZNEXFUZ.js +3 -0
  141. package/dist/chunk-XK52GUFA.js +3 -0
  142. package/dist/hooks/useIntersectionObserver.d.ts +2 -1
  143. package/dist/hooks/useIntersectionObserver.d.ts.map +1 -1
  144. package/dist/hooks/useIntersectionObserver.js +6 -7
  145. package/dist/hooks/useSwipeToClose.d.ts.map +1 -1
  146. package/dist/hooks/useSwipeToClose.js +9 -2
  147. package/dist/index.js +12 -9
  148. package/dist/styles/index.css +705 -161
  149. package/dist/symbol-index.json +1 -1
  150. package/dist/types.d.ts.map +1 -1
  151. package/dist/utils/cssVars.d.ts +22 -0
  152. package/dist/utils/cssVars.d.ts.map +1 -0
  153. package/dist/utils/cssVars.js +10 -0
  154. package/dist/utils/index.d.ts +2 -0
  155. package/dist/utils/index.d.ts.map +1 -1
  156. package/dist/utils/index.js +2 -0
  157. package/dist/utils/intersectionObserver.d.ts.map +1 -1
  158. package/dist/utils/intersectionObserver.js +4 -1
  159. package/dist/utils/linkComponent.d.ts +26 -0
  160. package/dist/utils/linkComponent.d.ts.map +1 -0
  161. package/dist/utils/linkComponent.js +37 -0
  162. package/dist/utils/responsiveImage.d.ts +55 -0
  163. package/dist/utils/responsiveImage.d.ts.map +1 -0
  164. package/dist/utils/responsiveImage.js +45 -0
  165. package/dist/utils/sanitizeDom.browser.d.ts +8 -0
  166. package/dist/utils/sanitizeDom.browser.d.ts.map +1 -0
  167. package/dist/utils/sanitizeDom.browser.js +1 -0
  168. package/dist/utils/sanitizeDom.server.d.ts +9 -0
  169. package/dist/utils/sanitizeDom.server.d.ts.map +1 -0
  170. package/dist/utils/sanitizeDom.server.js +1 -0
  171. package/dist/utils/sanitizeHtml.d.ts.map +1 -1
  172. package/dist/utils/sanitizeHtml.js +7 -6
  173. package/guidelines/API_REFERENCE.md +3 -2
  174. package/guidelines/COMPONENTS.md +10 -4
  175. package/guidelines/QUANTITY_STEPPER.md +78 -0
  176. package/guidelines/SWIPE_ACTION.md +111 -0
  177. package/package.json +8 -2
  178. package/dist/CarouselContent-OQEW3MTR.css +0 -1
  179. package/dist/CarouselContent-UJARFDSE.js +0 -1
  180. package/dist/CodeContent-7KN6DQT2.js +0 -2
  181. package/dist/CodeContent-ENVN76NP.css +0 -1
  182. package/dist/CodeContent-JLL6BLG2.js +0 -2
  183. package/dist/CodeContent-NMM2R33O.js +0 -2
  184. package/dist/CodeContent-S3BDX46F.js +0 -2
  185. package/dist/MarqueeContent-AL2RBZAP.css +0 -1
  186. package/dist/MarqueeContent-EKASHCRG.js +0 -1
  187. package/dist/chunk-2CNNVCFI.js +0 -1
  188. package/dist/chunk-3IECHFZB.js +0 -3
  189. package/dist/chunk-6UB4NXNR.js +0 -3
  190. package/dist/chunk-E7SJFHOC.js +0 -3
  191. package/dist/chunk-EOCKFSHC.js +0 -1
  192. package/dist/chunk-FA4BDD6N.js +0 -1
  193. package/dist/chunk-RIB7YURO.js +0 -3
@@ -51,9 +51,7 @@
51
51
  * applies regardless of density tier.
52
52
  */
53
53
  --gap-none: 0;
54
- --gap-sm: min(0.5rem, 2vw); /* 8px or 2vw, whichever is smaller */
55
- --gap-md: min(1rem, 2vw); /* 16px or 2vw */
56
- --gap-lg: min(2rem, 2vw); /* 32px or 2vw */
54
+ /* --gap-sm / --gap-md / --gap-lg: see DENSITY SYSTEM below */
57
55
 
58
56
  /* ===========================
59
57
  DIALOG SIZE VARIANTS
@@ -180,14 +178,7 @@
180
178
  /* Typography Scale - Musical Scale System (STANDARD density defaults - Major Third 1.25×) */
181
179
  --font-size-xs: 0.75rem; /* 12px - captions, shortcuts, meta */
182
180
  --font-size-sm: 0.875rem; /* 14px - small text, captions */
183
- --font-size-base: 1rem; /* 16px - body text, DEFAULT */
184
- --font-size-lg: 1.25rem; /* 20px - base × 1.25¹ - emphasized text */
185
- --font-size-xl: 1.563rem; /* 25px - base × 1.25² - headings */
186
- --font-size-2xl: 1.953rem; /* 31px - base × 1.25³ - large headings */
187
- --font-size-3xl: 2.441rem; /* 39px - base × 1.25⁴ - hero text */
188
-
189
- /* Line Height - Musical Scale System (matches font scale ratio) */
190
- --line-height: 1.25; /* Major Third - Standard density default */
181
+ /* --font-size-base…3xl and --line-height: see DENSITY SYSTEM below */
191
182
 
192
183
  /* Font Weight - Semantic weights */
193
184
  --font-weight-normal: 400;
@@ -319,12 +310,36 @@
319
310
 
320
311
  /* ===========================
321
312
  DENSITY SYSTEM
322
- Semantic spacing and typography presets based on context
323
- Applied via [data-density] attribute on root or container
313
+ Semantic spacing and typography presets based on context.
314
+
315
+ App density: the layout wrapper (.dndev-layout) carries data-density in the
316
+ server HTML, and the tokens are declared on <html> from it (:has), so they
317
+ resolve on the first paint, before and without hydration.
318
+ Nested density: PageContainer / List set data-density on their own element.
319
+
320
+ The tokens are never declared on .dndev-layout itself: every element of the
321
+ app sits under it, so a declaration there would shadow the app's :root
322
+ overrides (themes.css). The <html> rules carry zero specificity (:where), so
323
+ an app :root override wins whatever the stylesheet order.
324
324
  =========================== */
325
325
 
326
+ /* Base values (standard density), used until a density applies */
327
+ :where(:root) {
328
+ --gap-sm: min(0.5rem, 2vw); /* 8px or 2vw, whichever is smaller */
329
+ --gap-md: min(1rem, 2vw); /* 16px or 2vw */
330
+ --gap-lg: min(2rem, 2vw); /* 32px or 2vw */
331
+ --font-size-base: 1rem; /* 16px - body text, DEFAULT */
332
+ --font-size-lg: 1.25rem; /* 20px - base × 1.25¹ - emphasized text */
333
+ --font-size-xl: 1.563rem; /* 25px - base × 1.25² - headings */
334
+ --font-size-2xl: 1.953rem; /* 31px - base × 1.25³ - large headings */
335
+ --font-size-3xl: 2.441rem; /* 39px - base × 1.25⁴ - hero text */
336
+ /* Line Height - Musical Scale System (matches font scale ratio) */
337
+ --line-height: 1.25; /* Major Third - Standard density default */
338
+ }
339
+
326
340
  /* Compact (Admin/Data) - Dense, information-dense layouts - Minor Third (1.2×) */
327
- [data-density='compact'] {
341
+ :where(:root:has(.dndev-layout[data-density='compact'])),
342
+ [data-density='compact']:where(:not(.dndev-layout)) {
328
343
  /* Base sizes: Fluid responsiveness for all text, zoom-safe */
329
344
  --font-size-base: clamp(
330
345
  0.875rem,
@@ -364,7 +379,8 @@
364
379
  }
365
380
 
366
381
  /* Standard (Docs/SaaS) - DEFAULT, balanced for readability */
367
- [data-density='standard'] {
382
+ :where(:root:has(.dndev-layout[data-density='standard'])),
383
+ [data-density='standard']:where(:not(.dndev-layout)) {
368
384
  /* Base sizes: Fluid responsiveness for all text, zoom-safe */
369
385
  --font-size-base: clamp(
370
386
  1rem,
@@ -404,7 +420,8 @@
404
420
  }
405
421
 
406
422
  /* Expressive (Marketing) - Perfect Fourth (1.333×) + Fluid typography (2025 best practice) */
407
- [data-density='expressive'] {
423
+ :where(:root:has(.dndev-layout[data-density='expressive'])),
424
+ [data-density='expressive']:where(:not(.dndev-layout)) {
408
425
  /* Base sizes: Fluid responsiveness for all text, zoom-safe */
409
426
  --font-size-base: clamp(1rem, 0.875rem + 0.5vw, 1.125rem); /* 16-18px fluid */
410
427
  --font-size-lg: clamp(1.25rem, 1rem + 0.75vw, 1.5rem); /* 20-24px fluid */
@@ -436,9 +453,9 @@
436
453
  }
437
454
 
438
455
  /* Form field text: follows density, never below 16px (iOS focus zoom).
439
- Declared on [data-density] too, so nested densities resolve their own base. */
440
- :root,
441
- [data-density] {
456
+ Declared on nested [data-density] too, so they resolve their own base. */
457
+ :where(:root),
458
+ [data-density]:where(:not(.dndev-layout)) {
442
459
  --font-size-input: max(16px, var(--font-size-base));
443
460
  }
444
461
  /* 2. Theme system - color palette definitions */
@@ -3321,7 +3338,7 @@ em {
3321
3338
  display: inline-flex;
3322
3339
  align-items: center;
3323
3340
  justify-content: center;
3324
- padding: var(--gap-tight) 1px;
3341
+ padding: var(--gap-sm) 1px;
3325
3342
  border-radius: 2px;
3326
3343
  font-variant-numeric: tabular-nums;
3327
3344
  caret-color: transparent;
@@ -3702,6 +3719,50 @@ em {
3702
3719
  background: var(--card);
3703
3720
  }
3704
3721
 
3722
+ /* href: stretched link. The title is the <a href>; its ::after covers the whole
3723
+ card so the tile is clickable, while controls inside stay above it. The body
3724
+ must not be the containing block, or the hit area would stop at the cover. */
3725
+ .dndev-card[data-has-link='true'] > .dndev-card-body {
3726
+ position: static;
3727
+ }
3728
+
3729
+ .dndev-card-link {
3730
+ color: inherit;
3731
+ text-decoration: none;
3732
+ }
3733
+
3734
+ .dndev-card-link::after {
3735
+ content: '';
3736
+ position: absolute;
3737
+ inset: 0;
3738
+ z-index: 1;
3739
+ border-radius: inherit;
3740
+ }
3741
+
3742
+ .dndev-card-link:focus-visible {
3743
+ outline: none;
3744
+ }
3745
+
3746
+ .dndev-card[data-has-link='true']:has(.dndev-card-link:focus-visible) {
3747
+ outline: 2px solid var(--ring);
3748
+ outline-offset: 2px;
3749
+ }
3750
+
3751
+ .dndev-card[data-has-link='true']
3752
+ :is(
3753
+ a,
3754
+ button,
3755
+ input,
3756
+ select,
3757
+ textarea,
3758
+ label,
3759
+ [role='button'],
3760
+ [tabindex]
3761
+ ):not(.dndev-card-link) {
3762
+ position: relative;
3763
+ z-index: 2;
3764
+ }
3765
+
3705
3766
  /* Card body children spacing */
3706
3767
  .dndev-card-header {
3707
3768
  display: flex;
@@ -3766,7 +3827,8 @@ em {
3766
3827
 
3767
3828
  /* Contain: whole image visible on the muted cover background (cut-outs), inset
3768
3829
  proportionally so a packshot never touches the frame. */
3769
- .dndev-card-cover[data-fit='contain'] > img:not(.dndev-card-cover-hover) {
3830
+ .dndev-card-cover[data-fit='contain'] > img:not(.dndev-card-cover-hover),
3831
+ .dndev-card-cover[data-fit='contain'] > picture > img:not(.dndev-card-cover-hover) {
3770
3832
  -o-object-fit: contain;
3771
3833
  object-fit: contain;
3772
3834
  box-sizing: border-box;
@@ -3774,7 +3836,9 @@ em {
3774
3836
  }
3775
3837
 
3776
3838
  /* Hover view: stacked over the cover, crossfades in on hover / keyboard focus. */
3777
- .dndev-card-cover > img.dndev-card-cover-hover {
3839
+ /* An image pair renders <picture><img>: the <img> carries the class either way. */
3840
+ .dndev-card-cover > img.dndev-card-cover-hover,
3841
+ .dndev-card-cover > picture > img.dndev-card-cover-hover {
3778
3842
  position: absolute;
3779
3843
  inset: 0;
3780
3844
  -o-object-fit: cover;
@@ -3797,7 +3861,8 @@ em {
3797
3861
  }
3798
3862
 
3799
3863
  @media (prefers-reduced-motion: reduce) {
3800
- .dndev-card-cover > img.dndev-card-cover-hover {
3864
+ .dndev-card-cover > img.dndev-card-cover-hover,
3865
+ .dndev-card-cover > picture > img.dndev-card-cover-hover {
3801
3866
  transition: none;
3802
3867
  }
3803
3868
  }
@@ -3999,6 +4064,16 @@ em {
3999
4064
  transition: opacity var(--dur-fast) var(--ease-in-out);
4000
4065
  }
4001
4066
 
4067
+ /* <button> the component renders (showIcon, or non-element trigger): strip UA chrome */
4068
+ .dndev-collapsible-trigger--button {
4069
+ background: none;
4070
+ border: none;
4071
+ padding: 0;
4072
+ font: inherit;
4073
+ color: inherit;
4074
+ text-align: start;
4075
+ }
4076
+
4002
4077
  .dndev-collapsible-trigger:hover {
4003
4078
  opacity: var(--opacity-strong);
4004
4079
  }
@@ -4162,7 +4237,7 @@ em {
4162
4237
  height: 100%;
4163
4238
  display: flex;
4164
4239
  align-items: center;
4165
- gap: var(--gap-tight, 4px);
4240
+ gap: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token; must match computeTrailingPad() in index.tsx */
4166
4241
  z-index: 1;
4167
4242
  pointer-events: none; /* pass clicks through to input by default */
4168
4243
  }
@@ -4225,10 +4300,10 @@ em {
4225
4300
  display: flex;
4226
4301
  flex-wrap: wrap;
4227
4302
  align-items: center;
4228
- gap: var(--gap-tight, 4px);
4303
+ gap: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
4229
4304
  border: var(--border-hairline) solid var(--line-2);
4230
4305
  border-radius: var(--radius-interactive);
4231
- padding: var(--gap-tight, 4px);
4306
+ padding: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
4232
4307
  padding-inline-end: var(--combobox-pad-end);
4233
4308
  min-height: var(--touch-target);
4234
4309
  cursor: text;
@@ -4253,7 +4328,7 @@ em {
4253
4328
  flex: 1 1 80px;
4254
4329
  min-width: 80px;
4255
4330
  height: auto;
4256
- padding: var(--gap-tight, 4px) var(--gap-sm);
4331
+ padding: 4px var(--gap-sm); /* 4px: tighter than --gap-sm (8px), the smallest gap token */
4257
4332
  }
4258
4333
 
4259
4334
  /* ──────────────────────────────────────────────────
@@ -4300,7 +4375,7 @@ em {
4300
4375
  .dndev-combobox-option-content {
4301
4376
  display: flex;
4302
4377
  flex-direction: column;
4303
- gap: var(--gap-tight);
4378
+ gap: var(--gap-sm);
4304
4379
  flex: 1;
4305
4380
  }
4306
4381
 
@@ -4317,7 +4392,7 @@ em {
4317
4392
  .dndev-combobox-option-count {
4318
4393
  font-size: var(--font-size-xs);
4319
4394
  color: var(--muted-foreground);
4320
- margin-inline-start: var(--gap-tight);
4395
+ margin-inline-start: var(--gap-sm);
4321
4396
  flex-shrink: 0;
4322
4397
  }
4323
4398
 
@@ -5427,6 +5502,17 @@ em {
5427
5502
  outline: none;
5428
5503
  }
5429
5504
 
5505
+ /* Gallery pictures are always protected (with blockContextMenu + draggable=false):
5506
+ no drag, no iOS long-press "Save image" callout, no selection. */
5507
+ .image-gallery img,
5508
+ .image-gallery__lightbox-stage img {
5509
+ -webkit-touch-callout: none;
5510
+ -webkit-user-drag: none;
5511
+ -webkit-user-select: none;
5512
+ -moz-user-select: none;
5513
+ user-select: none;
5514
+ }
5515
+
5430
5516
  .image-gallery:focus-visible {
5431
5517
  outline: 2px solid var(--primary);
5432
5518
  outline-offset: 2px;
@@ -5460,13 +5546,57 @@ em {
5460
5546
  cursor: zoom-in;
5461
5547
  }
5462
5548
 
5463
- .image-gallery__main-image {
5549
+ /* Swipeable strip (main view and lightbox): native scrolling, one slide per snap point */
5550
+ .image-gallery__strip {
5551
+ /* Offset parent of the slides: a slide's offsetLeft is its scroll offset */
5552
+ position: relative;
5553
+ display: flex;
5554
+ height: 100%;
5555
+ overflow-x: auto;
5556
+ overflow-y: hidden;
5557
+ scroll-snap-type: x mandatory;
5558
+ overscroll-behavior-x: contain;
5559
+ scrollbar-width: none;
5560
+ }
5561
+
5562
+ .image-gallery__strip::-webkit-scrollbar {
5563
+ display: none;
5564
+ }
5565
+
5566
+ /* Arrow / thumbnail / key navigation glides to a neighbour (never a touch swipe) */
5567
+ @media (prefers-reduced-motion: no-preference) {
5568
+ .image-gallery__strip {
5569
+ scroll-behavior: smooth;
5570
+ }
5571
+ }
5572
+
5573
+ .image-gallery__slide {
5574
+ position: relative;
5575
+ flex: 0 0 100%;
5576
+ height: 100%;
5577
+ scroll-snap-align: start;
5578
+ scroll-snap-stop: always;
5579
+ }
5580
+
5581
+ .image-gallery__slide-img {
5582
+ position: absolute;
5583
+ inset: 0;
5584
+ display: block;
5464
5585
  width: 100%;
5465
5586
  height: 100%;
5466
5587
  -o-object-fit: cover;
5467
5588
  object-fit: cover;
5468
- display: block;
5469
- position: relative;
5589
+ -webkit-user-select: none;
5590
+ -moz-user-select: none;
5591
+ user-select: none;
5592
+ -webkit-user-drag: none;
5593
+ }
5594
+
5595
+ .image-gallery__slide-img[data-fit='contain'] {
5596
+ -o-object-fit: contain;
5597
+ object-fit: contain;
5598
+ box-sizing: border-box;
5599
+ padding: 6%;
5470
5600
  }
5471
5601
 
5472
5602
  /* Navigation arrows */
@@ -5585,38 +5715,186 @@ em {
5585
5715
  }
5586
5716
  }
5587
5717
 
5588
- /* Lightbox (full-size image dialog) */
5718
+ /* Lightbox: full-screen dialog, the viewer owns every gesture */
5589
5719
  .image-gallery__lightbox.dndev-modal-content {
5590
- max-width: min(96vw, 1400px);
5591
- max-height: 96dvh;
5592
- padding: var(--gap-sm);
5720
+ inset: 0;
5721
+ transform: none;
5722
+ width: 100vw;
5723
+ height: 100dvh;
5724
+ max-width: none;
5725
+ max-height: none;
5726
+ display: block;
5727
+ padding: 0;
5728
+ border: none;
5729
+ border-radius: 0;
5730
+ box-shadow: none;
5731
+ background: transparent;
5732
+ /* Fade only: the dialog keyframes translate a centred box */
5733
+ animation-name: overlay-in;
5593
5734
  }
5735
+ .image-gallery__lightbox.dndev-modal-content[data-state='closed'] {
5736
+ animation-name: overlay-out;
5737
+ }
5738
+ .image-gallery__lightbox.dndev-modal-content .dndev-modal-close {
5739
+ z-index: 4;
5740
+ opacity: 1;
5741
+ }
5594
5742
 
5595
5743
  .image-gallery__lightbox .dndev-modal-body {
5744
+ position: absolute;
5745
+ inset: 0;
5596
5746
  padding: 0;
5597
- display: flex;
5598
- align-items: center;
5599
- justify-content: center;
5600
5747
  overflow: hidden;
5601
- min-height: 40dvh;
5602
5748
  }
5603
5749
 
5604
- .image-gallery__lightbox-body {
5605
- position: relative;
5750
+ .image-gallery__lightbox-stage {
5751
+ position: absolute;
5752
+ inset: 0;
5753
+ overflow: hidden;
5754
+ outline: none;
5755
+ -webkit-user-select: none;
5756
+ -moz-user-select: none;
5757
+ user-select: none;
5758
+ }
5759
+
5760
+ /* Opaque layer behind the slides. The close drag fades it with opacity (composited);
5761
+ never animate its colour, that repaints the whole screen every frame. */
5762
+ .image-gallery__lightbox-backdrop {
5763
+ position: absolute;
5764
+ inset: 0;
5765
+ background-color: var(--background);
5766
+ will-change: opacity;
5767
+ }
5768
+
5769
+ /* pan-x: the browser pages; vertical drags and pinches reach the gesture code */
5770
+ .image-gallery__lightbox-strip {
5771
+ touch-action: pan-x;
5772
+ }
5773
+
5774
+ /* Zoomed: no paging, a drag pans the image */
5775
+ .image-gallery__lightbox-stage[data-zoomed] .image-gallery__lightbox-strip {
5776
+ touch-action: none;
5777
+ }
5778
+
5779
+ .image-gallery__lightbox-slide {
5606
5780
  display: flex;
5607
5781
  align-items: center;
5608
5782
  justify-content: center;
5783
+ box-sizing: border-box;
5784
+ padding: var(--gap-md);
5785
+ /* The frame sizes itself against the slide's content box (cq units) */
5786
+ container-type: size;
5787
+ }
5788
+
5789
+ /* Box of one image. Until its aspect ratio is known it fills the slide (the images are
5790
+ `contain`, so they look the same); then it is exactly the fitted image: the zoom, pan,
5791
+ hit-test and open / close morph target. */
5792
+ .image-gallery__lightbox-frame {
5793
+ position: relative;
5794
+ flex: none;
5609
5795
  width: 100%;
5610
- outline: none;
5796
+ height: 100%;
5797
+ cursor: zoom-in;
5611
5798
  }
5612
5799
 
5613
- .image-gallery__lightbox-img {
5614
- max-width: 100%;
5615
- max-height: 85dvh;
5616
- width: auto;
5800
+ .image-gallery__lightbox-frame[data-sized] {
5801
+ width: min(100cqw, 100cqh * var(--image-ratio));
5617
5802
  height: auto;
5803
+ aspect-ratio: var(--image-ratio);
5804
+ }
5805
+
5806
+ /* Full image over its cached thumbnail: never an empty slide while it downloads */
5807
+ .image-gallery__lightbox-frame > img {
5808
+ position: absolute;
5809
+ inset: 0;
5810
+ display: block;
5811
+ width: 100%;
5812
+ height: 100%;
5618
5813
  -o-object-fit: contain;
5619
5814
  object-fit: contain;
5815
+ -webkit-user-drag: none;
5816
+ }
5817
+
5818
+ .image-gallery__lightbox-frame[data-loaded] > .image-gallery__lightbox-placeholder {
5819
+ visibility: hidden;
5820
+ }
5821
+
5822
+ /* Own layer only for what a gesture moves: the dragged slide, the zoomed image */
5823
+ .image-gallery__lightbox-stage[data-closing]
5824
+ .image-gallery__lightbox-slide:not([aria-hidden]) {
5825
+ will-change: translate;
5826
+ }
5827
+
5828
+ .image-gallery__lightbox-stage[data-zoomed]
5829
+ .image-gallery__lightbox-slide:not([aria-hidden])
5830
+ > .image-gallery__lightbox-frame {
5831
+ will-change: transform;
5832
+ cursor: grab;
5833
+ }
5834
+
5835
+ .image-gallery__lightbox-stage[data-zoomed]:active
5836
+ .image-gallery__lightbox-frame {
5837
+ cursor: grabbing;
5838
+ }
5839
+
5840
+ /* Settles (snap back, double-tap / click zoom) are transitions, off during a gesture */
5841
+ @media (prefers-reduced-motion: no-preference) {
5842
+ .image-gallery__lightbox-stage[data-settle]
5843
+ :is(
5844
+ .image-gallery__lightbox-backdrop,
5845
+ .image-gallery__lightbox-slide,
5846
+ .image-gallery__lightbox-frame
5847
+ ) {
5848
+ transition-property: opacity, translate, transform;
5849
+ transition-duration: var(--dur-normal);
5850
+ transition-timing-function: var(--ease-heavy);
5851
+ }
5852
+
5853
+ /* Pan glide after a fling: a long deceleration. GLIDE_MS in lightboxGestures.ts
5854
+ projects the end point from these two tokens; keep them in step. */
5855
+ .image-gallery__lightbox-stage[data-settle='momentum']
5856
+ .image-gallery__lightbox-frame {
5857
+ transition-duration: var(--dur-slow);
5858
+ }
5859
+ }
5860
+
5861
+ /* Open / close morph: the tapped image grows into the lightbox and shrinks back
5862
+ (same-document view transition, run by the browser on the compositor). */
5863
+ ::view-transition-group(image-gallery-image) {
5864
+ animation-duration: var(--dur-normal);
5865
+ animation-timing-function: var(--ease-heavy);
5866
+ }
5867
+
5868
+ ::view-transition-old(image-gallery-image),
5869
+ ::view-transition-new(image-gallery-image) {
5870
+ height: 100%;
5871
+ -o-object-fit: cover;
5872
+ object-fit: cover;
5873
+ overflow: clip;
5874
+ }
5875
+
5876
+ /* With the morph, the view transition animates open / close: the dialog's own
5877
+ fade would run on top of it. Same conditions as `canMorph` in ImageGallery.tsx. */
5878
+ @supports (view-transition-name: none) {
5879
+ @media (prefers-reduced-motion: no-preference) {
5880
+ .image-gallery__lightbox.dndev-modal-content[data-state],
5881
+ .dndev-overlay[data-state]:has(+ .image-gallery__lightbox) {
5882
+ animation: none;
5883
+ }
5884
+ }
5885
+ }
5886
+
5887
+ .image-gallery__lightbox-counter {
5888
+ position: absolute;
5889
+ top: var(--gap-md);
5890
+ inset-inline-start: var(--gap-md);
5891
+ z-index: 3;
5892
+ padding: calc(var(--gap-sm) / 2) var(--gap-sm);
5893
+ border-radius: var(--radius-full);
5894
+ background-color: var(--card);
5895
+ color: var(--foreground);
5896
+ font-size: var(--font-size-sm);
5897
+ font-variant-numeric: tabular-nums;
5620
5898
  }
5621
5899
 
5622
5900
  .image-gallery__lightbox-nav {
@@ -5624,6 +5902,12 @@ em {
5624
5902
  z-index: 3;
5625
5903
  }
5626
5904
 
5905
+ /* Touch: swipe pages, so arrows are noise */
5906
+ @media (pointer: coarse) {
5907
+ .image-gallery__lightbox-nav {
5908
+ display: none;
5909
+ }
5910
+ }
5627
5911
  /* packages/components/src/atomic/Input/Input.css */
5628
5912
 
5629
5913
  /* Hide number input spinners - cleaner UI for price/range inputs */
@@ -5891,13 +6175,56 @@ input[type='number'] {
5891
6175
  cursor: default;
5892
6176
  display: inline-flex;
5893
6177
  align-items: center;
5894
- gap: var(--gap-tight);
6178
+ gap: var(--gap-sm);
5895
6179
  }
5896
6180
 
5897
6181
  .dndev-floating-fieldset[data-disabled='true'] .dndev-floating-legend {
5898
6182
  color: var(--muted-foreground);
5899
6183
  }
5900
6184
 
6185
+ /* Help (i) after the label: the label truncates, the button never does */
6186
+ .dndev-floating-legend[data-info] {
6187
+ display: flex;
6188
+ align-items: center;
6189
+ gap: calc(var(--gap-sm) / 2);
6190
+ }
6191
+
6192
+ .dndev-floating-legend[data-info] > label {
6193
+ display: block;
6194
+ min-width: 0;
6195
+ overflow: hidden;
6196
+ text-overflow: ellipsis;
6197
+ }
6198
+
6199
+ .dndev-field-info {
6200
+ display: inline-flex;
6201
+ flex-shrink: 0;
6202
+ align-items: center;
6203
+ justify-content: center;
6204
+ /* Larger hit area than the icon, without growing the legend */
6205
+ padding: calc(var(--gap-sm) / 2);
6206
+ margin: calc(var(--gap-sm) / -2);
6207
+ border: none;
6208
+ border-radius: var(--radius-full);
6209
+ background: none;
6210
+ color: var(--muted-foreground);
6211
+ cursor: help;
6212
+ }
6213
+
6214
+ .dndev-field-info:hover,
6215
+ .dndev-field-info:focus-visible {
6216
+ color: var(--foreground);
6217
+ }
6218
+
6219
+ .dndev-field-info:focus-visible {
6220
+ outline: var(--border-hairline) solid var(--ring);
6221
+ }
6222
+
6223
+ .dndev-field-info svg {
6224
+ width: 1.25em;
6225
+ height: 1.25em;
6226
+ }
6227
+
5901
6228
  /* Disable truncation when explicitly set to false */
5902
6229
  .dndev-floating-legend[data-truncate='false'] {
5903
6230
  max-width: none;
@@ -6217,7 +6544,7 @@ input[type='number'] {
6217
6544
  /* packages/components/src/atomic/PasswordInput/PasswordInput.css */
6218
6545
 
6219
6546
  .dndev-password-input-with-toggle {
6220
- padding-inline-end: calc(var(--gap-xl) + var(--gap-md)) !important;
6547
+ padding-inline-end: calc(var(--gap-lg) + var(--gap-md)) !important;
6221
6548
  }
6222
6549
 
6223
6550
  /* Eye icon toggle - ALWAYS at end, cannot be overridden */
@@ -6230,7 +6557,7 @@ input[type='number'] {
6230
6557
  background: none !important;
6231
6558
  border: none !important;
6232
6559
  cursor: pointer !important;
6233
- padding: var(--gap-tight) !important;
6560
+ padding: var(--gap-sm) !important;
6234
6561
  display: flex !important;
6235
6562
  align-items: center !important;
6236
6563
  opacity: var(--opacity-muted) !important;
@@ -6291,7 +6618,7 @@ input[type='number'] {
6291
6618
  background: none;
6292
6619
  border: none;
6293
6620
  cursor: pointer;
6294
- padding: var(--gap-tight, 0.25rem);
6621
+ padding: 0.25rem; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
6295
6622
  margin-inline-start: var(--gap-sm, 0.5rem);
6296
6623
  display: inline-flex;
6297
6624
  align-items: center;
@@ -6616,7 +6943,7 @@ input[type='number'] {
6616
6943
  }
6617
6944
 
6618
6945
  .dndev-range-input-separator {
6619
- padding-inline: var(--gap-tight);
6946
+ padding-inline: var(--gap-sm);
6620
6947
  }
6621
6948
 
6622
6949
  /* packages/components/src/atomic/Rating/Rating.css */
@@ -8110,6 +8437,107 @@ input[type='number'] {
8110
8437
  min-width: var(--touch-target);
8111
8438
  }
8112
8439
 
8440
+ .dndev-swipe-action {
8441
+ --swipe-action-width: 5.5rem;
8442
+ display: flex;
8443
+ min-inline-size: 0;
8444
+ }
8445
+
8446
+ .dndev-swipe-action-viewport {
8447
+ display: flex;
8448
+ flex: 1;
8449
+ min-inline-size: 0;
8450
+ overflow-x: auto;
8451
+ overflow-y: hidden;
8452
+ scroll-snap-type: x mandatory;
8453
+ overscroll-behavior-x: contain;
8454
+ scrollbar-width: none;
8455
+ touch-action: pan-x pan-y pinch-zoom;
8456
+ }
8457
+
8458
+ .dndev-swipe-action-viewport::-webkit-scrollbar {
8459
+ display: none;
8460
+ }
8461
+
8462
+ .dndev-swipe-action[data-disabled] .dndev-swipe-action-viewport,
8463
+ .dndev-swipe-action-viewport[data-input-blocked] {
8464
+ overflow-x: hidden;
8465
+ }
8466
+
8467
+ .dndev-swipe-action-content {
8468
+ flex: 0 0 100%;
8469
+ min-inline-size: 0;
8470
+ min-block-size: 44px;
8471
+ scroll-snap-align: start;
8472
+ background: var(--background);
8473
+ }
8474
+
8475
+ /* Scope to descendants, never a focusable cart/list ancestor. Touch-action is
8476
+ resolved before pointerdown, so controls cannot start horizontal scrolling. */
8477
+ .dndev-swipe-action-content :is(
8478
+ button, a, input, textarea, select, label, summary, [tabindex],
8479
+ [contenteditable]:not([contenteditable="false"]), [draggable="true"],
8480
+ [role="button"], [role="link"], [role="checkbox"], [role="switch"],
8481
+ [role="radio"], [role="slider"], [role="spinbutton"], [role="textbox"],
8482
+ [role="combobox"], [role="searchbox"], [role="menuitem"],
8483
+ [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"],
8484
+ [role="tab"], [role="treeitem"]
8485
+ ) {
8486
+ touch-action: pan-y pinch-zoom;
8487
+ }
8488
+
8489
+ .dndev-swipe-action-toggle,
8490
+ .dndev-swipe-action-delete {
8491
+ display: flex;
8492
+ align-items: center;
8493
+ justify-content: center;
8494
+ min-inline-size: 44px;
8495
+ min-block-size: 44px;
8496
+ border: 0;
8497
+ font: inherit;
8498
+ cursor: pointer;
8499
+ touch-action: manipulation;
8500
+ }
8501
+
8502
+ .dndev-swipe-action-toggle {
8503
+ flex-shrink: 0;
8504
+ background: var(--background);
8505
+ color: var(--foreground);
8506
+ }
8507
+
8508
+ /* Native overflow clips the closed action and progressively reveals its paint.
8509
+ Inert/disabled/ARIA state gates interaction until the open endpoint. */
8510
+ .dndev-swipe-action-delete {
8511
+ flex: 0 0 var(--swipe-action-width);
8512
+ scroll-snap-align: end;
8513
+ flex-direction: column;
8514
+ padding: var(--gap-sm);
8515
+ overflow-wrap: anywhere;
8516
+ background: var(--destructive);
8517
+ color: var(--destructive-foreground);
8518
+ }
8519
+
8520
+ .dndev-swipe-action svg {
8521
+ inline-size: var(--icon-md);
8522
+ block-size: var(--icon-md);
8523
+ flex-shrink: 0;
8524
+ }
8525
+
8526
+ .dndev-swipe-action button:focus-visible {
8527
+ outline: 2px solid var(--ring);
8528
+ outline-offset: -3px;
8529
+ }
8530
+
8531
+ .dndev-swipe-action button:disabled {
8532
+ cursor: default;
8533
+ }
8534
+
8535
+ @media (prefers-reduced-motion: reduce) {
8536
+ .dndev-swipe-action-viewport {
8537
+ scroll-behavior: auto;
8538
+ }
8539
+ }
8540
+
8113
8541
  /* packages/components/src/atomic/Switch/Switch.css */
8114
8542
 
8115
8543
  .dndev-switch {
@@ -8188,6 +8616,11 @@ input[type='number'] {
8188
8616
  will-change: transform;
8189
8617
  }
8190
8618
 
8619
+ /* Primary while on: thumb in the primary foreground (as Checkbox), readable on the track */
8620
+ .dndev-switch[data-variant='primary'][data-state='checked'] .dndev-switch-thumb {
8621
+ background-color: var(--primary-foreground);
8622
+ }
8623
+
8191
8624
  .dndev-switch[data-state='checked'] .dndev-switch-thumb {
8192
8625
  transform: translateX(calc(2.75rem - 1.25rem - 0.125rem));
8193
8626
  }
@@ -8243,6 +8676,10 @@ input[type='number'] {
8243
8676
  font-weight: var(--font-weight-normal);
8244
8677
  }
8245
8678
 
8679
+ /* Switch with a label after it: the switch keeps its size, the label wraps */
8680
+ .dndev-switch-field > .dndev-switch {
8681
+ flex-shrink: 0;
8682
+ }
8246
8683
  /* packages/components/src/atomic/Table/Table.css */
8247
8684
 
8248
8685
  .dndev-table-wrapper {
@@ -8272,7 +8709,7 @@ input[type='number'] {
8272
8709
 
8273
8710
  .dndev-table-filter-row .dndev-table-head {
8274
8711
  background-color: var(--muted);
8275
- padding: var(--gap-xs);
8712
+ padding: var(--gap-sm);
8276
8713
  height: auto;
8277
8714
  min-height: auto;
8278
8715
  }
@@ -8477,6 +8914,93 @@ input[type='number'] {
8477
8914
  opacity: var(--opacity-muted);
8478
8915
  }
8479
8916
  }
8917
+
8918
+ /* Editable DataTable --------------------------------------------------- */
8919
+
8920
+ /* Scope for editor lookup (keyboard navigation); adds no box. */
8921
+ .dndev-table-edit-scope {
8922
+ display: contents;
8923
+ }
8924
+
8925
+ .dndev-table-bulk-bar {
8926
+ padding: var(--gap-sm) var(--gap-sm);
8927
+ border: 1px solid var(--border);
8928
+ background-color: var(--muted);
8929
+ }
8930
+
8931
+ /* Cell editor: fills the cell, reads as text until focused. */
8932
+ .dndev-table-cell-editor {
8933
+ width: 100%;
8934
+ min-width: 6rem;
8935
+ font: inherit;
8936
+ color: inherit;
8937
+ background-color: transparent;
8938
+ border: 1px solid transparent;
8939
+ border-radius: var(--radius-sm);
8940
+ padding: var(--gap-sm);
8941
+ }
8942
+
8943
+ .dndev-table-cell-editor:hover {
8944
+ border-color: var(--border);
8945
+ }
8946
+
8947
+ .dndev-table-cell-editor:focus-visible,
8948
+ .dndev-table-cell-editor:focus {
8949
+ outline: 2px solid var(--ring);
8950
+ outline-offset: -1px;
8951
+ background-color: var(--background);
8952
+ }
8953
+
8954
+ .dndev-table-bulk-bar .dndev-table-cell-editor {
8955
+ width: auto;
8956
+ border-color: var(--border);
8957
+ background-color: var(--background);
8958
+ }
8959
+
8960
+ .dndev-table-cell[data-editable='true'] {
8961
+ padding-block: 0;
8962
+ }
8963
+
8964
+ /* Changed, not saved yet */
8965
+ .dndev-table-cell[data-dirty='true'] {
8966
+ background-color: color-mix(in oklab, var(--primary) 12%, transparent);
8967
+ }
8968
+
8969
+ /* Value that does not parse, or breaks a rule (cellErrors): the save will reject it */
8970
+ .dndev-table-cell[data-invalid='true'] .dndev-table-cell-editor {
8971
+ border-color: var(--destructive);
8972
+ }
8973
+
8974
+ /* Message of a rule the cell value breaks (cellErrors) */
8975
+ .dndev-table-cell-error {
8976
+ display: block;
8977
+ margin-block-start: var(--gap-sm);
8978
+ color: var(--destructive);
8979
+ font-size: var(--font-size-xs);
8980
+ line-height: 1.3;
8981
+ }
8982
+
8983
+ /* Open cell: icon link to the row's record (touch-sized hit area) */
8984
+ .dndev-table-open-link {
8985
+ display: inline-flex;
8986
+ align-items: center;
8987
+ justify-content: center;
8988
+ min-width: var(--touch-target);
8989
+ min-height: var(--touch-target);
8990
+ color: var(--muted-foreground);
8991
+ border-radius: var(--radius-sm);
8992
+ }
8993
+
8994
+ .dndev-table-open-link:hover {
8995
+ color: var(--foreground);
8996
+ background-color: var(--muted);
8997
+ }
8998
+
8999
+ .dndev-table-open-link:focus-visible {
9000
+ outline: 2px solid var(--ring);
9001
+ outline-offset: -1px;
9002
+ }
9003
+
8480
9004
  /* packages/components/src/atomic/Tabs/Tabs.css */
8481
9005
 
8482
9006
  /* Tabs list: use flexbox for natural wrapping, not grid */
@@ -8496,100 +9020,51 @@ input[type='number'] {
8496
9020
  word-break: break-word;
8497
9021
  border: var(--border-hairline) solid var(--line-2); /* Show clickable area */
8498
9022
 
8499
- /* Fallback (no variant): inactive = primary, active = foreground/card */
8500
- background-color: var(--primary);
8501
- color: var(--primary-foreground);
9023
+ /*
9024
+ * Inactive = neutral surface, active = filled with the variant colour, so the
9025
+ * selected tab is the one that stands out (the panel sits below with a gap, it
9026
+ * is not a folder tab joined to its content). --card not --background: the tab
9027
+ * surface must be opaque (--background can be transparent in some themes).
9028
+ */
9029
+ background-color: var(--card);
9030
+ color: var(--muted-foreground);
9031
+ --tab-active-bg: var(--primary);
9032
+ --tab-active-fg: var(--primary-foreground);
8502
9033
  }
8503
- .dndev-interactive[data-role='tab-trigger'][data-state='active'] {
8504
- /* --card not --background: active tab surface must be opaque (--background can be transparent in some themes) */
8505
- background-color: var(--card);
9034
+ .dndev-interactive[data-role='tab-trigger']:hover:not([data-state='active']):not(:disabled) {
8506
9035
  color: var(--foreground);
8507
- box-shadow: var(--shadow-sm);
8508
- border-color: var(--primary);
8509
9036
  }
8510
- /* Default/Primary variant: inactive = primary, active = foreground/card */
8511
- .dndev-interactive[data-role='tab-trigger'][data-variant='default'],.dndev-interactive[data-role='tab-trigger'][data-variant='primary'] {
8512
- background-color: var(--primary);
8513
- color: var(--primary-foreground);
8514
- }
8515
- [data-state='active']:is(.dndev-interactive[data-role='tab-trigger'][data-variant='default'],.dndev-interactive[data-role='tab-trigger'][data-variant='primary']) {
8516
- /* --card not --background: active tab surface must be opaque */
8517
- background-color: var(--card);
8518
- color: var(--foreground);
8519
- box-shadow: var(--shadow-sm);
8520
- border-color: var(--primary);
8521
- }
8522
- /* Secondary variant: inactive = secondary, active = foreground/card */
8523
9037
  .dndev-interactive[data-role='tab-trigger'][data-variant='secondary'] {
8524
- background-color: var(--secondary);
8525
- color: var(--secondary-foreground);
9038
+ --tab-active-bg: var(--secondary);
9039
+ --tab-active-fg: var(--secondary-foreground);
8526
9040
  }
8527
- .dndev-interactive[data-role='tab-trigger'][data-variant='secondary'][data-state='active'] {
8528
- /* --card not --background: active tab surface must be opaque */
8529
- background-color: var(--card);
8530
- color: var(--foreground);
8531
- box-shadow: var(--shadow-sm);
8532
- border-color: var(--secondary);
8533
- }
8534
- /* Accent variant: inactive = accent, active = foreground/card */
8535
9041
  .dndev-interactive[data-role='tab-trigger'][data-variant='accent'] {
8536
- background-color: var(--accent);
8537
- color: var(--accent-foreground);
9042
+ --tab-active-bg: var(--accent);
9043
+ --tab-active-fg: var(--accent-foreground);
8538
9044
  }
8539
- .dndev-interactive[data-role='tab-trigger'][data-variant='accent'][data-state='active'] {
8540
- /* --card not --background: active tab surface must be opaque */
8541
- background-color: var(--card);
8542
- color: var(--foreground);
8543
- box-shadow: var(--shadow-sm);
8544
- border-color: var(--accent);
8545
- }
8546
- /* Muted variant: inactive = muted, active = primary (to contrast) */
9045
+ /* Muted: the muted fill would not stand out as the selection, so primary */
8547
9046
  .dndev-interactive[data-role='tab-trigger'][data-variant='muted'] {
8548
- background-color: var(--muted);
8549
- color: var(--muted-foreground);
9047
+ --tab-active-bg: var(--primary);
9048
+ --tab-active-fg: var(--primary-foreground);
8550
9049
  }
8551
- .dndev-interactive[data-role='tab-trigger'][data-variant='muted'][data-state='active'] {
8552
- background-color: var(--primary);
8553
- color: var(--primary-foreground);
8554
- box-shadow: var(--shadow-sm);
8555
- border-color: var(--primary);
8556
- }
8557
- /* Warning variant: inactive = warning, active = foreground/card */
8558
9050
  .dndev-interactive[data-role='tab-trigger'][data-variant='warning'] {
8559
- background-color: var(--warning);
8560
- color: var(--warning-foreground);
9051
+ --tab-active-bg: var(--warning);
9052
+ --tab-active-fg: var(--warning-foreground);
8561
9053
  }
8562
- .dndev-interactive[data-role='tab-trigger'][data-variant='warning'][data-state='active'] {
8563
- /* --card not --background: active tab surface must be opaque */
8564
- background-color: var(--card);
8565
- color: var(--foreground);
8566
- box-shadow: var(--shadow-sm);
8567
- border-color: var(--warning);
8568
- }
8569
- /* Success variant: inactive = success, active = foreground/card */
8570
9054
  .dndev-interactive[data-role='tab-trigger'][data-variant='success'] {
8571
- background-color: var(--success);
8572
- color: var(--success-foreground);
9055
+ --tab-active-bg: var(--success);
9056
+ --tab-active-fg: var(--success-foreground);
8573
9057
  }
8574
- .dndev-interactive[data-role='tab-trigger'][data-variant='success'][data-state='active'] {
8575
- /* --card not --background: active tab surface must be opaque */
8576
- background-color: var(--card);
8577
- color: var(--foreground);
8578
- box-shadow: var(--shadow-sm);
8579
- border-color: var(--success);
8580
- }
8581
- /* Destructive variant: inactive = destructive, active = foreground/card */
8582
9058
  .dndev-interactive[data-role='tab-trigger'][data-variant='destructive'] {
8583
- background-color: var(--destructive);
8584
- color: var(--destructive-foreground);
9059
+ --tab-active-bg: var(--destructive);
9060
+ --tab-active-fg: var(--destructive-foreground);
9061
+ }
9062
+ .dndev-interactive[data-role='tab-trigger'][data-state='active'] {
9063
+ background-color: var(--tab-active-bg);
9064
+ color: var(--tab-active-fg);
9065
+ border-color: var(--tab-active-bg);
9066
+ box-shadow: var(--shadow-sm);
8585
9067
  }
8586
- .dndev-interactive[data-role='tab-trigger'][data-variant='destructive'][data-state='active'] {
8587
- /* --card not --background: active tab surface must be opaque */
8588
- background-color: var(--card);
8589
- color: var(--foreground);
8590
- box-shadow: var(--shadow-sm);
8591
- border-color: var(--destructive);
8592
- }
8593
9068
 
8594
9069
  .dndev-tabs-content {
8595
9070
  margin-top: var(--gap-md);
@@ -8608,41 +9083,117 @@ input[type='number'] {
8608
9083
  display: none;
8609
9084
  }
8610
9085
 
8611
- /* packages/components/src/atomic/QuantityStepper/QuantityStepper.css */
8612
-
8613
- /* One outlined control (e-commerce standard, e.g. Shopify Dawn): borderless − / +
8614
- buttons around a centred, tabular quantity. Same height and radius as buttons. */
9086
+ /* Reserve the complete footprint, even when zero is presented as one large +. */
8615
9087
  .dndev-quantity-stepper {
8616
- display: inline-flex;
8617
- align-items: stretch;
8618
- min-height: var(--touch-target);
9088
+ --quantity-target: max(var(--touch-target), 44px);
9089
+ /* Include both icon states, padding and inherited text BEFORE placing items.
9090
+ Auto rows otherwise grow for the larger collapsed icon, then shrink on expand. */
9091
+ --quantity-cell: max(
9092
+ var(--quantity-target),
9093
+ calc(max(var(--icon-md), var(--quantity-target) * 0.6, 1lh) + 2 * var(--gap-sm))
9094
+ );
9095
+ display: inline-grid;
9096
+ grid-template-columns: var(--quantity-cell) minmax(var(--quantity-cell), 1fr) var(--quantity-cell);
9097
+ grid-template-rows: var(--quantity-cell);
9098
+ inline-size: calc(3 * var(--quantity-cell));
9099
+ min-inline-size: calc(3 * var(--quantity-cell));
8619
9100
  border: var(--border-hairline) solid var(--border);
8620
9101
  border-radius: var(--radius-interactive);
8621
9102
  background: var(--interactive);
8622
9103
  color: var(--foreground);
8623
9104
  }
8624
9105
  .dndev-quantity-stepper[data-full-width] {
8625
- display: flex;
8626
- width: 100%;
9106
+ display: grid;
9107
+ inline-size: 100%;
8627
9108
  }
8628
9109
  .dndev-quantity-stepper[data-disabled] {
8629
9110
  opacity: 0.6;
8630
9111
  }
8631
- .dndev-quantity-stepper > .dndev-interactive {
8632
- flex: 0 0 auto;
8633
- aspect-ratio: 1;
8634
- min-height: 0;
9112
+ .dndev-quantity-stepper > button,.dndev-quantity-stepper > input {
9113
+ min-inline-size: var(--quantity-target);
9114
+ min-block-size: var(--quantity-target);
8635
9115
  border: none;
8636
9116
  border-radius: inherit;
8637
9117
  background: transparent;
9118
+ color: inherit;
9119
+ font: inherit;
9120
+ touch-action: manipulation;
9121
+ }
9122
+ :is(.dndev-quantity-stepper > button,.dndev-quantity-stepper > input):focus-visible {
9123
+ outline: none;
9124
+ box-shadow: var(--shadow-focus);
9125
+ z-index: 1;
9126
+ }
9127
+ :is(.dndev-quantity-stepper > button,.dndev-quantity-stepper > input):disabled {
9128
+ cursor: not-allowed;
9129
+ opacity: 0.6;
9130
+ }
9131
+ .dndev-quantity-stepper > button {
9132
+ display: flex;
9133
+ align-items: center;
9134
+ justify-content: center;
9135
+ padding: var(--gap-sm);
9136
+ cursor: pointer;
9137
+ transition: background-color var(--transition-fast);
9138
+ /* Press-and-hold repeats: no text selection or touch callout on long press. */
9139
+ -moz-user-select: none;
9140
+ user-select: none;
9141
+ -webkit-user-select: none;
9142
+ -webkit-touch-callout: none;
9143
+ }
9144
+ :is(.dndev-quantity-stepper > button):hover:not(:disabled) {
9145
+ background: var(--muted);
9146
+ }
9147
+ :is(.dndev-quantity-stepper > button) > svg {
9148
+ inline-size: var(--icon-md);
9149
+ block-size: var(--icon-md);
9150
+ }
9151
+ .dndev-quantity-stepper > .dndev-quantity-stepper-decrement {
9152
+ grid-area: 1 / 1;
8638
9153
  }
9154
+ .dndev-quantity-stepper > .dndev-quantity-stepper-value {
9155
+ grid-area: 1 / 2;
9156
+ }
9157
+ .dndev-quantity-stepper > .dndev-quantity-stepper-increment {
9158
+ grid-area: 1 / 3;
9159
+ }
9160
+ .dndev-quantity-stepper[data-vertical] {
9161
+ grid-template-columns: minmax(var(--quantity-cell), 1fr);
9162
+ grid-template-rows: repeat(3, var(--quantity-cell));
9163
+ inline-size: var(--quantity-cell);
9164
+ min-inline-size: var(--quantity-cell);
9165
+ }
9166
+ .dndev-quantity-stepper[data-vertical][data-full-width] {
9167
+ inline-size: 100%;
9168
+ }
9169
+ .dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-increment {
9170
+ grid-area: 1 / 1;
9171
+ }
9172
+ .dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-value {
9173
+ grid-area: 2 / 1;
9174
+ }
9175
+ .dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-decrement {
9176
+ grid-area: 3 / 1;
9177
+ }
9178
+ .dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-value {
9179
+ visibility: hidden;
9180
+ pointer-events: none;
9181
+ }
9182
+ .dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment {
9183
+ grid-area: 1 / 1 / -1 / -1;
9184
+ }
9185
+ :is(.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment) > svg {
9186
+ inline-size: calc(var(--quantity-target) * 0.6);
9187
+ block-size: calc(var(--quantity-target) * 0.6);
9188
+ }
8639
9189
 
8640
9190
  .dndev-quantity-stepper-value {
8641
- flex: 1 1 auto;
9191
+ box-sizing: border-box;
8642
9192
  display: flex;
8643
9193
  align-items: center;
8644
9194
  justify-content: center;
8645
- min-width: 3ch;
9195
+ inline-size: 100%;
9196
+ min-inline-size: 0;
8646
9197
  padding-inline: var(--gap-sm);
8647
9198
  border: none;
8648
9199
  background: none;
@@ -8651,21 +9202,14 @@ input[type='number'] {
8651
9202
  font-weight: var(--font-weight-medium);
8652
9203
  font-variant-numeric: tabular-nums;
8653
9204
  text-align: center;
8654
- }
8655
-
8656
- .dndev-quantity-stepper-value:is(button) {
8657
- cursor: pointer;
8658
- }
8659
9205
 
8660
- .dndev-quantity-stepper-value:is(button):hover {
8661
- text-decoration: underline;
8662
- text-underline-offset: 0.2em;
8663
- }
9206
+ }
8664
9207
 
8665
- .dndev-quantity-stepper-value:is(button):focus-visible {
8666
- outline: none;
8667
- box-shadow: var(--shadow-focus);
9208
+ @media (prefers-reduced-motion: reduce) {
9209
+ .dndev-quantity-stepper > button {
9210
+ transition: none;
8668
9211
  }
9212
+ }
8669
9213
 
8670
9214
  /* packages/components/src/atomic/Tag/Tag.css */
8671
9215
 
@@ -8932,7 +9476,7 @@ input[type='number'] {
8932
9476
  .dndev-toast-viewport {
8933
9477
  position: fixed;
8934
9478
  top: var(--gap-md);
8935
- z-index: 100;
9479
+ z-index: var(--z-toast);
8936
9480
  display: flex;
8937
9481
  flex-direction: column-reverse;
8938
9482
  max-height: 100dvh;
@@ -9285,7 +9829,7 @@ input[type='number'] {
9285
9829
  display: flex;
9286
9830
  align-items: center;
9287
9831
  gap: var(--gap-sm);
9288
- padding: var(--gap-xs) var(--gap-sm);
9832
+ padding: var(--gap-sm) var(--gap-sm);
9289
9833
  border-radius: var(--radius-interactive);
9290
9834
  cursor: pointer;
9291
9835
  transition: