@donotdev/ui 0.1.46 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CookieConsent-QOUAY6B4.js +1 -0
- package/dist/GoToDialog-YGBON6FR.js +1 -0
- package/dist/chunk-DRFM6WXH.js +1 -0
- package/dist/components/cookie-consent/CookieConsent.d.ts.map +1 -1
- package/dist/components/cookie-consent/CookieConsent.js +12 -12
- package/dist/dndev-next.css +180 -14
- package/dist/dndev.css +180 -14
- package/dist/index.js +3 -3
- package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
- package/dist/internal/layout/DnDevLayout.js +11 -4
- package/dist/providers/NextJsAppProviders.d.ts +7 -0
- package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
- package/dist/providers/NextJsAppProviders.js +15 -4
- package/dist/routing/useNavigation.d.ts.map +1 -1
- package/dist/routing/useNavigation.js +14 -2
- package/dist/styles/index.css +180 -14
- package/package.json +21 -20
package/dist/dndev.css
CHANGED
|
@@ -1623,6 +1623,32 @@ em {
|
|
|
1623
1623
|
text-transform: var(--text-transform-label, none);
|
|
1624
1624
|
}
|
|
1625
1625
|
|
|
1626
|
+
/* ICON BADGE - count bubble on the icon's top-end corner (Button `badge`) */
|
|
1627
|
+
.dndev-interactive-icon-anchor {
|
|
1628
|
+
position: relative;
|
|
1629
|
+
display: inline-flex;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
.dndev-interactive-badge {
|
|
1633
|
+
position: absolute;
|
|
1634
|
+
inset-block-start: -0.5em;
|
|
1635
|
+
inset-inline-end: -0.65em;
|
|
1636
|
+
min-width: 1.25rem;
|
|
1637
|
+
height: 1.25rem;
|
|
1638
|
+
padding-inline: 0.3rem;
|
|
1639
|
+
display: inline-flex;
|
|
1640
|
+
align-items: center;
|
|
1641
|
+
justify-content: center;
|
|
1642
|
+
border-radius: var(--radius-full);
|
|
1643
|
+
background: var(--primary);
|
|
1644
|
+
color: var(--primary-foreground);
|
|
1645
|
+
font-size: var(--font-size-xs);
|
|
1646
|
+
font-weight: var(--font-weight-semibold);
|
|
1647
|
+
font-variant-numeric: tabular-nums;
|
|
1648
|
+
line-height: 1;
|
|
1649
|
+
pointer-events: none;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1626
1652
|
/* Compact mode - always hide label */
|
|
1627
1653
|
.dndev-interactive-label[data-display='compact'] {
|
|
1628
1654
|
display: none;
|
|
@@ -3729,6 +3755,44 @@ em {
|
|
|
3729
3755
|
object-fit: cover;
|
|
3730
3756
|
}
|
|
3731
3757
|
|
|
3758
|
+
/* Contain: whole image visible on the muted cover background (cut-outs), inset
|
|
3759
|
+
proportionally so a packshot never touches the frame. */
|
|
3760
|
+
.dndev-card-cover[data-fit='contain'] > img:not(.dndev-card-cover-hover) {
|
|
3761
|
+
-o-object-fit: contain;
|
|
3762
|
+
object-fit: contain;
|
|
3763
|
+
box-sizing: border-box;
|
|
3764
|
+
padding: 8%;
|
|
3765
|
+
}
|
|
3766
|
+
|
|
3767
|
+
/* Hover view: stacked over the cover, crossfades in on hover / keyboard focus. */
|
|
3768
|
+
.dndev-card-cover > img.dndev-card-cover-hover {
|
|
3769
|
+
position: absolute;
|
|
3770
|
+
inset: 0;
|
|
3771
|
+
-o-object-fit: cover;
|
|
3772
|
+
object-fit: cover;
|
|
3773
|
+
opacity: 0;
|
|
3774
|
+
transition: opacity 0.4s var(--ease-in-out);
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
@media (hover: hover) {
|
|
3778
|
+
.dndev-card:hover .dndev-card-cover-hover {
|
|
3779
|
+
opacity: 1;
|
|
3780
|
+
}
|
|
3781
|
+
}
|
|
3782
|
+
|
|
3783
|
+
/* Keyboard focus only: a mouse click keeps focus inside the card, which must not
|
|
3784
|
+
pin the hover view after the pointer leaves. */
|
|
3785
|
+
.dndev-card:has(:focus-visible) .dndev-card-cover-hover,
|
|
3786
|
+
.dndev-card:focus-visible .dndev-card-cover-hover {
|
|
3787
|
+
opacity: 1;
|
|
3788
|
+
}
|
|
3789
|
+
|
|
3790
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3791
|
+
.dndev-card-cover > img.dndev-card-cover-hover {
|
|
3792
|
+
transition: none;
|
|
3793
|
+
}
|
|
3794
|
+
}
|
|
3795
|
+
|
|
3732
3796
|
/* Consumer-supplied ReactNode: wrapper fills, inner media fills. */
|
|
3733
3797
|
.dndev-card-cover-media {
|
|
3734
3798
|
position: relative;
|
|
@@ -5136,12 +5200,23 @@ em {
|
|
|
5136
5200
|
margin-inline: calc(50% - 50vw);
|
|
5137
5201
|
}
|
|
5138
5202
|
|
|
5139
|
-
/* Background image with overlay for text readability
|
|
5203
|
+
/* Background image with overlay for text readability.
|
|
5204
|
+
The photo is an <img> (discoverable by the preload scanner), laid under the scrim. */
|
|
5140
5205
|
.dndev-hero-section--bg-image {
|
|
5141
5206
|
position: relative;
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5207
|
+
overflow: hidden;
|
|
5208
|
+
}
|
|
5209
|
+
|
|
5210
|
+
.dndev-hero-section--bg-image > .dndev-hero-section__cover {
|
|
5211
|
+
position: absolute;
|
|
5212
|
+
inset: 0;
|
|
5213
|
+
width: 100%;
|
|
5214
|
+
height: 100%;
|
|
5215
|
+
-o-object-fit: cover;
|
|
5216
|
+
object-fit: cover;
|
|
5217
|
+
-o-object-position: center;
|
|
5218
|
+
object-position: center;
|
|
5219
|
+
z-index: 0;
|
|
5145
5220
|
}
|
|
5146
5221
|
|
|
5147
5222
|
.dndev-hero-section--bg-image::before {
|
|
@@ -5153,12 +5228,22 @@ em {
|
|
|
5153
5228
|
rgba(0, 0, 0, 0.4),
|
|
5154
5229
|
rgba(0, 0, 0, 0.6)
|
|
5155
5230
|
);
|
|
5156
|
-
z-index:
|
|
5231
|
+
z-index: 1;
|
|
5232
|
+
}
|
|
5233
|
+
|
|
5234
|
+
/* Soft scrim: bright photography stays bright; only the bottom band darkens
|
|
5235
|
+
enough for white text placed there. */
|
|
5236
|
+
.dndev-hero-section--bg-image[data-scrim='soft']::before {
|
|
5237
|
+
background: linear-gradient(
|
|
5238
|
+
to bottom,
|
|
5239
|
+
rgba(0, 0, 0, 0) 45%,
|
|
5240
|
+
rgba(0, 0, 0, 0.55) 100%
|
|
5241
|
+
);
|
|
5157
5242
|
}
|
|
5158
5243
|
|
|
5159
|
-
.dndev-hero-section--bg-image >
|
|
5244
|
+
.dndev-hero-section--bg-image > :not(.dndev-hero-section__cover) {
|
|
5160
5245
|
position: relative;
|
|
5161
|
-
z-index:
|
|
5246
|
+
z-index: 2;
|
|
5162
5247
|
}
|
|
5163
5248
|
|
|
5164
5249
|
.dndev-hero-section--bg-image,
|
|
@@ -5465,6 +5550,12 @@ em {
|
|
|
5465
5550
|
display: block;
|
|
5466
5551
|
}
|
|
5467
5552
|
|
|
5553
|
+
.image-gallery__thumbnail-image[data-fit='contain'] {
|
|
5554
|
+
-o-object-fit: contain;
|
|
5555
|
+
object-fit: contain;
|
|
5556
|
+
background-color: var(--muted);
|
|
5557
|
+
}
|
|
5558
|
+
|
|
5468
5559
|
/* Responsive adjustments */
|
|
5469
5560
|
@media (max-width: 640px) {
|
|
5470
5561
|
.image-gallery__thumbnail {
|
|
@@ -6345,7 +6436,7 @@ input[type='number'] {
|
|
|
6345
6436
|
background-color: var(--secondary);
|
|
6346
6437
|
}
|
|
6347
6438
|
|
|
6348
|
-
.dndev-progress [data-
|
|
6439
|
+
.dndev-progress > [data-state] {
|
|
6349
6440
|
height: 100%;
|
|
6350
6441
|
width: 100%;
|
|
6351
6442
|
flex: 1;
|
|
@@ -6355,23 +6446,23 @@ input[type='number'] {
|
|
|
6355
6446
|
/* Variant colors */
|
|
6356
6447
|
}
|
|
6357
6448
|
|
|
6358
|
-
[data-variant='default']:is(.dndev-progress [data-
|
|
6449
|
+
[data-variant='default']:is(.dndev-progress > [data-state]) {
|
|
6359
6450
|
background-color: var(--primary);
|
|
6360
6451
|
}
|
|
6361
6452
|
|
|
6362
|
-
[data-variant='accent']:is(.dndev-progress [data-
|
|
6453
|
+
[data-variant='accent']:is(.dndev-progress > [data-state]) {
|
|
6363
6454
|
background-color: var(--accent);
|
|
6364
6455
|
}
|
|
6365
6456
|
|
|
6366
|
-
[data-variant='success']:is(.dndev-progress [data-
|
|
6457
|
+
[data-variant='success']:is(.dndev-progress > [data-state]) {
|
|
6367
6458
|
background-color: var(--success);
|
|
6368
6459
|
}
|
|
6369
6460
|
|
|
6370
|
-
[data-variant='warning']:is(.dndev-progress [data-
|
|
6461
|
+
[data-variant='warning']:is(.dndev-progress > [data-state]) {
|
|
6371
6462
|
background-color: var(--warning);
|
|
6372
6463
|
}
|
|
6373
6464
|
|
|
6374
|
-
[data-variant='destructive']:is(.dndev-progress [data-
|
|
6465
|
+
[data-variant='destructive']:is(.dndev-progress > [data-state]) {
|
|
6375
6466
|
background-color: var(--destructive);
|
|
6376
6467
|
}
|
|
6377
6468
|
|
|
@@ -7139,6 +7230,13 @@ input[type='number'] {
|
|
|
7139
7230
|
/* Square edges for panel metaphor */
|
|
7140
7231
|
}
|
|
7141
7232
|
|
|
7233
|
+
/* Narrow panel (carts, filters): full width on phones, a column on larger screens */
|
|
7234
|
+
|
|
7235
|
+
.dndev-sheet-content[data-size='narrow'][data-side='right'],.dndev-sheet-content[data-size='narrow'][data-side='left'] {
|
|
7236
|
+
width: 100%;
|
|
7237
|
+
max-width: 28rem;
|
|
7238
|
+
}
|
|
7239
|
+
|
|
7142
7240
|
.dndev-sheet-content[data-side='right'] {
|
|
7143
7241
|
/* Physical positioning: right edge */
|
|
7144
7242
|
right: 0;
|
|
@@ -8533,6 +8631,65 @@ input[type='number'] {
|
|
|
8533
8631
|
display: none;
|
|
8534
8632
|
}
|
|
8535
8633
|
|
|
8634
|
+
/* packages/components/src/atomic/QuantityStepper/QuantityStepper.css */
|
|
8635
|
+
|
|
8636
|
+
/* One outlined control (e-commerce standard, e.g. Shopify Dawn): borderless − / +
|
|
8637
|
+
buttons around a centred, tabular quantity. Same height and radius as buttons. */
|
|
8638
|
+
.dndev-quantity-stepper {
|
|
8639
|
+
display: inline-flex;
|
|
8640
|
+
align-items: stretch;
|
|
8641
|
+
min-height: var(--touch-target);
|
|
8642
|
+
border: var(--border-hairline) solid var(--border);
|
|
8643
|
+
border-radius: var(--radius-interactive);
|
|
8644
|
+
background: var(--interactive);
|
|
8645
|
+
color: var(--foreground);
|
|
8646
|
+
}
|
|
8647
|
+
.dndev-quantity-stepper[data-full-width] {
|
|
8648
|
+
display: flex;
|
|
8649
|
+
width: 100%;
|
|
8650
|
+
}
|
|
8651
|
+
.dndev-quantity-stepper[data-disabled] {
|
|
8652
|
+
opacity: 0.6;
|
|
8653
|
+
}
|
|
8654
|
+
.dndev-quantity-stepper > .dndev-interactive {
|
|
8655
|
+
flex: 0 0 auto;
|
|
8656
|
+
aspect-ratio: 1;
|
|
8657
|
+
min-height: 0;
|
|
8658
|
+
border: none;
|
|
8659
|
+
border-radius: inherit;
|
|
8660
|
+
background: transparent;
|
|
8661
|
+
}
|
|
8662
|
+
|
|
8663
|
+
.dndev-quantity-stepper-value {
|
|
8664
|
+
flex: 1 1 auto;
|
|
8665
|
+
display: flex;
|
|
8666
|
+
align-items: center;
|
|
8667
|
+
justify-content: center;
|
|
8668
|
+
min-width: 3ch;
|
|
8669
|
+
padding-inline: var(--gap-sm);
|
|
8670
|
+
border: none;
|
|
8671
|
+
background: none;
|
|
8672
|
+
color: inherit;
|
|
8673
|
+
font: inherit;
|
|
8674
|
+
font-weight: var(--font-weight-medium);
|
|
8675
|
+
font-variant-numeric: tabular-nums;
|
|
8676
|
+
text-align: center;
|
|
8677
|
+
}
|
|
8678
|
+
|
|
8679
|
+
.dndev-quantity-stepper-value:is(button) {
|
|
8680
|
+
cursor: pointer;
|
|
8681
|
+
}
|
|
8682
|
+
|
|
8683
|
+
.dndev-quantity-stepper-value:is(button):hover {
|
|
8684
|
+
text-decoration: underline;
|
|
8685
|
+
text-underline-offset: 0.2em;
|
|
8686
|
+
}
|
|
8687
|
+
|
|
8688
|
+
.dndev-quantity-stepper-value:is(button):focus-visible {
|
|
8689
|
+
outline: none;
|
|
8690
|
+
box-shadow: var(--shadow-focus);
|
|
8691
|
+
}
|
|
8692
|
+
|
|
8536
8693
|
/* packages/components/src/atomic/Tag/Tag.css */
|
|
8537
8694
|
|
|
8538
8695
|
.dndev-tag {
|
|
@@ -8719,6 +8876,9 @@ input[type='number'] {
|
|
|
8719
8876
|
|
|
8720
8877
|
.dndev-text-base[data-level^='h'] {
|
|
8721
8878
|
font-family: var(--font-headline);
|
|
8879
|
+
/* Display sizes need tighter leading than body copy; themes opt in with
|
|
8880
|
+
--line-height-heading, otherwise headings keep the text line-height. */
|
|
8881
|
+
line-height: var(--line-height-heading, var(--line-height));
|
|
8722
8882
|
|
|
8723
8883
|
/* A single word wider than its column is the one thing text cannot solve by
|
|
8724
8884
|
wrapping, and display type hits it first: uppercase, letter-spaced headings
|
|
@@ -11760,6 +11920,12 @@ main[role='main'][data-routing-animation='none'] {
|
|
|
11760
11920
|
.dndev-layout {
|
|
11761
11921
|
position: relative;
|
|
11762
11922
|
width: 100%;
|
|
11923
|
+
/* The density preset is rendered on this wrapper by the server, but <html> only
|
|
11924
|
+
receives it after hydration. font-size and line-height inherit as computed
|
|
11925
|
+
values from <body>, so re-read the density tokens here: otherwise the first
|
|
11926
|
+
paint uses the root defaults and text grows once <html> is updated. */
|
|
11927
|
+
font-size: var(--font-size-base);
|
|
11928
|
+
line-height: var(--line-height);
|
|
11763
11929
|
height: 100vh;
|
|
11764
11930
|
height: 100dvh;
|
|
11765
11931
|
max-height: 100vh;
|
|
@@ -11937,7 +12103,7 @@ aside[role='navigation'].sidebar {
|
|
|
11937
12103
|
/* Desktop presets with no sidebar: Hide sidebar element for performance/accessibility */
|
|
11938
12104
|
/* Landing, Plain, Game have --sidebar-width: 0px, also need display: none */
|
|
11939
12105
|
}
|
|
11940
|
-
[data-layout='landing']:root aside.sidebar[role='navigation'],[data-layout='plain']:root aside.sidebar[role='navigation'],[data-layout='game']:root aside.sidebar[role='navigation'] {
|
|
12106
|
+
[data-layout='landing']:root aside.sidebar[role='navigation'],[data-layout='plain']:root aside.sidebar[role='navigation'],[data-layout='game']:root aside.sidebar[role='navigation'],.dndev-layout[data-layout='landing'] aside.sidebar[role='navigation'],.dndev-layout[data-layout='plain'] aside.sidebar[role='navigation'],.dndev-layout[data-layout='game'] aside.sidebar[role='navigation'] {
|
|
11941
12107
|
display: none;
|
|
11942
12108
|
}
|
|
11943
12109
|
/* Moolti: Sidebar spans full height (no header/footer on desktop) */
|