@donotdev/ui 0.2.3 → 0.3.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/dist/ChildRowsPicker-63M4EQUQ.js +1 -0
- package/dist/ChildRowsPicker-ISP365ON.js +1 -0
- package/dist/ChildRowsPicker-PQFE6NCR.js +1 -0
- package/dist/ChildRowsPicker-XXFFSMWY.js +1 -0
- package/dist/GoToDialog-XBK5EZF4.js +1 -0
- package/dist/chunk-3CIZFGST.js +1 -0
- package/dist/chunk-LHMKU342.js +1 -0
- package/dist/chunk-P2DHZWPY.js +1 -0
- package/dist/components/layout/components/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/layout/components/Breadcrumbs.js +4 -3
- package/dist/components/layout/components/header/HeaderMenu.d.ts +17 -16
- package/dist/components/layout/components/header/HeaderMenu.d.ts.map +1 -1
- package/dist/components/layout/components/header/HeaderMenu.js +51 -23
- package/dist/components/layout/components/header/SettingsMenu.js +2 -2
- package/dist/crud/components/ChildRowsPicker.d.ts +21 -0
- package/dist/crud/components/ChildRowsPicker.d.ts.map +1 -0
- package/dist/crud/components/ChildRowsPicker.js +68 -0
- package/dist/crud/components/EntityCardList.d.ts.map +1 -1
- package/dist/crud/components/EntityCardList.js +9 -17
- package/dist/crud/components/EntityDisplayRenderer.js +2 -2
- package/dist/crud/components/EntityFormRenderer.d.ts +4 -2
- package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityFormRenderer.js +137 -55
- package/dist/crud/components/EntityList.d.ts +3 -1
- package/dist/crud/components/EntityList.d.ts.map +1 -1
- package/dist/crud/components/EntityList.js +324 -56
- package/dist/crud/components/EntityRecommendations.js +1 -1
- package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
- package/dist/crud/components/EntityWorkflow.js +6 -4
- package/dist/crud/components/cellEditFor.d.ts +23 -8
- package/dist/crud/components/cellEditFor.d.ts.map +1 -1
- package/dist/crud/components/cellEditFor.js +40 -20
- package/dist/crud/components/entityParent.d.ts +8 -15
- package/dist/crud/components/entityParent.d.ts.map +1 -1
- package/dist/crud/components/entityParent.js +30 -8
- package/dist/crud/components/useRecordBreadcrumb.d.ts +1 -1
- package/dist/crud/components/useRecordBreadcrumb.d.ts.map +1 -1
- package/dist/crud/components/useRecordBreadcrumb.js +12 -3
- package/dist/crud/crudImports.d.ts +11 -2
- package/dist/crud/crudImports.d.ts.map +1 -1
- package/dist/crud/crudImports.js +10 -1
- package/dist/dndev-next.css +374 -57
- package/dist/dndev.css +376 -57
- package/dist/index.js +4 -4
- package/dist/internal/initializers/NextJsStoresInitializer.d.ts +3 -0
- package/dist/internal/initializers/NextJsStoresInitializer.d.ts.map +1 -1
- package/dist/internal/initializers/NextJsStoresInitializer.js +8 -1
- package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
- package/dist/internal/layout/components/AutoMetaTags.js +3 -2
- package/dist/internal/layout/components/FontPreloadLinks.d.ts +7 -4
- package/dist/internal/layout/components/FontPreloadLinks.d.ts.map +1 -1
- package/dist/internal/layout/components/FontPreloadLinks.js +12 -25
- package/dist/internal/layout/components/footer/FooterCopyright.d.ts +2 -0
- package/dist/internal/layout/components/footer/FooterCopyright.d.ts.map +1 -1
- package/dist/internal/layout/components/footer/FooterCopyright.js +4 -0
- package/dist/internal/layout/components/footer/useLegalLinks.d.ts +2 -1
- package/dist/internal/layout/components/footer/useLegalLinks.d.ts.map +1 -1
- package/dist/internal/layout/components/footer/useLegalLinks.js +4 -3
- package/dist/internal/providers/UIProviders.d.ts +0 -8
- package/dist/internal/providers/UIProviders.d.ts.map +1 -1
- package/dist/internal/providers/UIProviders.js +39 -1
- package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
- package/dist/providers/NextJsAppProviders.js +1 -2
- package/dist/providers/ViteAppProviders.d.ts.map +1 -1
- package/dist/providers/ViteAppProviders.js +1 -4
- package/dist/routing/404.d.ts +8 -1
- package/dist/routing/404.d.ts.map +1 -1
- package/dist/routing/404.js +6 -2
- package/dist/routing/hooks/hooks.next.js +1 -1
- package/dist/routing/hooks/useRedirectGuard.next.d.ts +3 -1
- package/dist/routing/hooks/useRedirectGuard.next.d.ts.map +1 -1
- package/dist/routing/hooks/useRedirectGuard.next.js +11 -9
- package/dist/routing/parentRoute.d.ts +27 -0
- package/dist/routing/parentRoute.d.ts.map +1 -0
- package/dist/routing/parentRoute.js +43 -0
- package/dist/routing/useNavigation.d.ts.map +1 -1
- package/dist/routing/useNavigation.js +5 -24
- package/dist/routing/useRouteDiscovery.d.ts +2 -2
- package/dist/routing/useRouteDiscovery.d.ts.map +1 -1
- package/dist/routing/useRouteDiscovery.js +6 -5
- package/dist/styles/index.css +373 -56
- package/dist/symbol-index.json +1 -1
- package/guidelines/COMPONENTS.md +1 -1
- package/guidelines/GOTCHAS.md +2 -0
- package/guidelines/LAYOUTS.md +4 -0
- package/guidelines/PAGES.md +23 -3
- package/guidelines/ROUTING.md +26 -1
- package/guidelines/SEO.md +1 -1
- package/package.json +8 -8
package/dist/styles/index.css
CHANGED
|
@@ -3346,7 +3346,7 @@ em {
|
|
|
3346
3346
|
display: inline-flex;
|
|
3347
3347
|
align-items: center;
|
|
3348
3348
|
justify-content: center;
|
|
3349
|
-
padding: var(--gap-
|
|
3349
|
+
padding: var(--gap-sm) 1px;
|
|
3350
3350
|
border-radius: 2px;
|
|
3351
3351
|
font-variant-numeric: tabular-nums;
|
|
3352
3352
|
caret-color: transparent;
|
|
@@ -3729,7 +3729,11 @@ em {
|
|
|
3729
3729
|
|
|
3730
3730
|
/* href: stretched link. The title is the <a href>; its ::after covers the whole
|
|
3731
3731
|
card so the tile is clickable, while controls inside stay above it. The body
|
|
3732
|
-
must not be the containing block, or the hit area would stop at the cover.
|
|
3732
|
+
must not be the containing block, or the hit area would stop at the cover.
|
|
3733
|
+
The lift list must name every control root and its value: a group whose own
|
|
3734
|
+
opacity (e.g. a disabled QuantityStepper, role="group") makes it a stacking
|
|
3735
|
+
context paints below the overlay, and an <output> value would be covered, so
|
|
3736
|
+
taps there would open the link instead of reaching the control. */
|
|
3733
3737
|
.dndev-card[data-has-link='true'] > .dndev-card-body {
|
|
3734
3738
|
position: static;
|
|
3735
3739
|
}
|
|
@@ -3765,6 +3769,9 @@ em {
|
|
|
3765
3769
|
textarea,
|
|
3766
3770
|
label,
|
|
3767
3771
|
[role='button'],
|
|
3772
|
+
[role='group'],
|
|
3773
|
+
fieldset,
|
|
3774
|
+
output,
|
|
3768
3775
|
[tabindex]
|
|
3769
3776
|
):not(.dndev-card-link) {
|
|
3770
3777
|
position: relative;
|
|
@@ -3810,9 +3817,25 @@ em {
|
|
|
3810
3817
|
overflow: hidden;
|
|
3811
3818
|
z-index: 0;
|
|
3812
3819
|
width: 100%;
|
|
3820
|
+
}
|
|
3821
|
+
|
|
3822
|
+
/* Opt-in fill behind the media (coverBackground); transparent paints nothing. */
|
|
3823
|
+
.dndev-card-cover[data-background='muted'] {
|
|
3813
3824
|
background: var(--muted);
|
|
3814
3825
|
}
|
|
3815
3826
|
|
|
3827
|
+
.dndev-card-cover[data-background='primary'] {
|
|
3828
|
+
background: var(--primary);
|
|
3829
|
+
}
|
|
3830
|
+
|
|
3831
|
+
.dndev-card-cover[data-background='secondary'] {
|
|
3832
|
+
background: var(--secondary);
|
|
3833
|
+
}
|
|
3834
|
+
|
|
3835
|
+
.dndev-card-cover[data-background='accent'] {
|
|
3836
|
+
background: var(--accent);
|
|
3837
|
+
}
|
|
3838
|
+
|
|
3816
3839
|
/* Cover-only: fill the card completely. Card root owns the aspect-ratio. */
|
|
3817
3840
|
.dndev-card-cover:not([data-has-body='true']) {
|
|
3818
3841
|
position: absolute;
|
|
@@ -3833,14 +3856,12 @@ em {
|
|
|
3833
3856
|
object-fit: cover;
|
|
3834
3857
|
}
|
|
3835
3858
|
|
|
3836
|
-
/* Contain: whole image visible
|
|
3837
|
-
|
|
3859
|
+
/* Contain: whole image visible at full frame size, no inset (cut-outs;
|
|
3860
|
+
`coverBackground` opts into a fill). */
|
|
3838
3861
|
.dndev-card-cover[data-fit='contain'] > img:not(.dndev-card-cover-hover),
|
|
3839
3862
|
.dndev-card-cover[data-fit='contain'] > picture > img:not(.dndev-card-cover-hover) {
|
|
3840
3863
|
-o-object-fit: contain;
|
|
3841
3864
|
object-fit: contain;
|
|
3842
|
-
box-sizing: border-box;
|
|
3843
|
-
padding: 8%;
|
|
3844
3865
|
}
|
|
3845
3866
|
|
|
3846
3867
|
/* Hover view: stacked over the cover, crossfades in on hover / keyboard focus. */
|
|
@@ -4072,6 +4093,16 @@ em {
|
|
|
4072
4093
|
transition: opacity var(--dur-fast) var(--ease-in-out);
|
|
4073
4094
|
}
|
|
4074
4095
|
|
|
4096
|
+
/* <button> the component renders (showIcon, or non-element trigger): strip UA chrome */
|
|
4097
|
+
.dndev-collapsible-trigger--button {
|
|
4098
|
+
background: none;
|
|
4099
|
+
border: none;
|
|
4100
|
+
padding: 0;
|
|
4101
|
+
font: inherit;
|
|
4102
|
+
color: inherit;
|
|
4103
|
+
text-align: start;
|
|
4104
|
+
}
|
|
4105
|
+
|
|
4075
4106
|
.dndev-collapsible-trigger:hover {
|
|
4076
4107
|
opacity: var(--opacity-strong);
|
|
4077
4108
|
}
|
|
@@ -4235,7 +4266,7 @@ em {
|
|
|
4235
4266
|
height: 100%;
|
|
4236
4267
|
display: flex;
|
|
4237
4268
|
align-items: center;
|
|
4238
|
-
gap:
|
|
4269
|
+
gap: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token; must match computeTrailingPad() in index.tsx */
|
|
4239
4270
|
z-index: 1;
|
|
4240
4271
|
pointer-events: none; /* pass clicks through to input by default */
|
|
4241
4272
|
}
|
|
@@ -4298,10 +4329,10 @@ em {
|
|
|
4298
4329
|
display: flex;
|
|
4299
4330
|
flex-wrap: wrap;
|
|
4300
4331
|
align-items: center;
|
|
4301
|
-
gap:
|
|
4332
|
+
gap: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
4302
4333
|
border: var(--border-hairline) solid var(--line-2);
|
|
4303
4334
|
border-radius: var(--radius-interactive);
|
|
4304
|
-
padding:
|
|
4335
|
+
padding: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
4305
4336
|
padding-inline-end: var(--combobox-pad-end);
|
|
4306
4337
|
min-height: var(--touch-target);
|
|
4307
4338
|
cursor: text;
|
|
@@ -4326,7 +4357,7 @@ em {
|
|
|
4326
4357
|
flex: 1 1 80px;
|
|
4327
4358
|
min-width: 80px;
|
|
4328
4359
|
height: auto;
|
|
4329
|
-
padding: var(--gap-
|
|
4360
|
+
padding: 4px var(--gap-sm); /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
4330
4361
|
}
|
|
4331
4362
|
|
|
4332
4363
|
/* ──────────────────────────────────────────────────
|
|
@@ -4373,7 +4404,7 @@ em {
|
|
|
4373
4404
|
.dndev-combobox-option-content {
|
|
4374
4405
|
display: flex;
|
|
4375
4406
|
flex-direction: column;
|
|
4376
|
-
gap: var(--gap-
|
|
4407
|
+
gap: var(--gap-sm);
|
|
4377
4408
|
flex: 1;
|
|
4378
4409
|
}
|
|
4379
4410
|
|
|
@@ -4390,7 +4421,7 @@ em {
|
|
|
4390
4421
|
.dndev-combobox-option-count {
|
|
4391
4422
|
font-size: var(--font-size-xs);
|
|
4392
4423
|
color: var(--muted-foreground);
|
|
4393
|
-
margin-inline-start: var(--gap-
|
|
4424
|
+
margin-inline-start: var(--gap-sm);
|
|
4394
4425
|
flex-shrink: 0;
|
|
4395
4426
|
}
|
|
4396
4427
|
|
|
@@ -5537,7 +5568,6 @@ em {
|
|
|
5537
5568
|
width: 100%;
|
|
5538
5569
|
overflow: hidden;
|
|
5539
5570
|
border-radius: var(--radius-surface);
|
|
5540
|
-
background-color: var(--muted);
|
|
5541
5571
|
}
|
|
5542
5572
|
|
|
5543
5573
|
.image-gallery__main--lightbox {
|
|
@@ -5691,9 +5721,29 @@ em {
|
|
|
5691
5721
|
.image-gallery__thumbnail-image[data-fit='contain'] {
|
|
5692
5722
|
-o-object-fit: contain;
|
|
5693
5723
|
object-fit: contain;
|
|
5724
|
+
}
|
|
5725
|
+
|
|
5726
|
+
/* Opt-in fill (background prop); transparent paints nothing. Thumbnails only fill when contained. */
|
|
5727
|
+
.image-gallery__main[data-background='muted'],
|
|
5728
|
+
.image-gallery__thumbnail-image[data-fit='contain'][data-background='muted'] {
|
|
5694
5729
|
background-color: var(--muted);
|
|
5695
5730
|
}
|
|
5696
5731
|
|
|
5732
|
+
.image-gallery__main[data-background='primary'],
|
|
5733
|
+
.image-gallery__thumbnail-image[data-fit='contain'][data-background='primary'] {
|
|
5734
|
+
background-color: var(--primary);
|
|
5735
|
+
}
|
|
5736
|
+
|
|
5737
|
+
.image-gallery__main[data-background='secondary'],
|
|
5738
|
+
.image-gallery__thumbnail-image[data-fit='contain'][data-background='secondary'] {
|
|
5739
|
+
background-color: var(--secondary);
|
|
5740
|
+
}
|
|
5741
|
+
|
|
5742
|
+
.image-gallery__main[data-background='accent'],
|
|
5743
|
+
.image-gallery__thumbnail-image[data-fit='contain'][data-background='accent'] {
|
|
5744
|
+
background-color: var(--accent);
|
|
5745
|
+
}
|
|
5746
|
+
|
|
5697
5747
|
/* Responsive adjustments */
|
|
5698
5748
|
@media (max-width: 640px) {
|
|
5699
5749
|
.image-gallery__thumbnail {
|
|
@@ -6173,13 +6223,56 @@ input[type='number'] {
|
|
|
6173
6223
|
cursor: default;
|
|
6174
6224
|
display: inline-flex;
|
|
6175
6225
|
align-items: center;
|
|
6176
|
-
gap: var(--gap-
|
|
6226
|
+
gap: var(--gap-sm);
|
|
6177
6227
|
}
|
|
6178
6228
|
|
|
6179
6229
|
.dndev-floating-fieldset[data-disabled='true'] .dndev-floating-legend {
|
|
6180
6230
|
color: var(--muted-foreground);
|
|
6181
6231
|
}
|
|
6182
6232
|
|
|
6233
|
+
/* Help (i) after the label: the label truncates, the button never does */
|
|
6234
|
+
.dndev-floating-legend[data-info] {
|
|
6235
|
+
display: flex;
|
|
6236
|
+
align-items: center;
|
|
6237
|
+
gap: calc(var(--gap-sm) / 2);
|
|
6238
|
+
}
|
|
6239
|
+
|
|
6240
|
+
.dndev-floating-legend[data-info] > label {
|
|
6241
|
+
display: block;
|
|
6242
|
+
min-width: 0;
|
|
6243
|
+
overflow: hidden;
|
|
6244
|
+
text-overflow: ellipsis;
|
|
6245
|
+
}
|
|
6246
|
+
|
|
6247
|
+
.dndev-field-info {
|
|
6248
|
+
display: inline-flex;
|
|
6249
|
+
flex-shrink: 0;
|
|
6250
|
+
align-items: center;
|
|
6251
|
+
justify-content: center;
|
|
6252
|
+
/* Larger hit area than the icon, without growing the legend */
|
|
6253
|
+
padding: calc(var(--gap-sm) / 2);
|
|
6254
|
+
margin: calc(var(--gap-sm) / -2);
|
|
6255
|
+
border: none;
|
|
6256
|
+
border-radius: var(--radius-full);
|
|
6257
|
+
background: none;
|
|
6258
|
+
color: var(--muted-foreground);
|
|
6259
|
+
cursor: help;
|
|
6260
|
+
}
|
|
6261
|
+
|
|
6262
|
+
.dndev-field-info:hover,
|
|
6263
|
+
.dndev-field-info:focus-visible {
|
|
6264
|
+
color: var(--foreground);
|
|
6265
|
+
}
|
|
6266
|
+
|
|
6267
|
+
.dndev-field-info:focus-visible {
|
|
6268
|
+
outline: var(--border-hairline) solid var(--ring);
|
|
6269
|
+
}
|
|
6270
|
+
|
|
6271
|
+
.dndev-field-info svg {
|
|
6272
|
+
width: 1.25em;
|
|
6273
|
+
height: 1.25em;
|
|
6274
|
+
}
|
|
6275
|
+
|
|
6183
6276
|
/* Disable truncation when explicitly set to false */
|
|
6184
6277
|
.dndev-floating-legend[data-truncate='false'] {
|
|
6185
6278
|
max-width: none;
|
|
@@ -6499,7 +6592,7 @@ input[type='number'] {
|
|
|
6499
6592
|
/* packages/components/src/atomic/PasswordInput/PasswordInput.css */
|
|
6500
6593
|
|
|
6501
6594
|
.dndev-password-input-with-toggle {
|
|
6502
|
-
padding-inline-end: calc(var(--gap-
|
|
6595
|
+
padding-inline-end: calc(var(--gap-lg) + var(--gap-md)) !important;
|
|
6503
6596
|
}
|
|
6504
6597
|
|
|
6505
6598
|
/* Eye icon toggle - ALWAYS at end, cannot be overridden */
|
|
@@ -6512,7 +6605,7 @@ input[type='number'] {
|
|
|
6512
6605
|
background: none !important;
|
|
6513
6606
|
border: none !important;
|
|
6514
6607
|
cursor: pointer !important;
|
|
6515
|
-
padding: var(--gap-
|
|
6608
|
+
padding: var(--gap-sm) !important;
|
|
6516
6609
|
display: flex !important;
|
|
6517
6610
|
align-items: center !important;
|
|
6518
6611
|
opacity: var(--opacity-muted) !important;
|
|
@@ -6573,7 +6666,7 @@ input[type='number'] {
|
|
|
6573
6666
|
background: none;
|
|
6574
6667
|
border: none;
|
|
6575
6668
|
cursor: pointer;
|
|
6576
|
-
padding:
|
|
6669
|
+
padding: 0.25rem; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
6577
6670
|
margin-inline-start: var(--gap-sm, 0.5rem);
|
|
6578
6671
|
display: inline-flex;
|
|
6579
6672
|
align-items: center;
|
|
@@ -6898,7 +6991,7 @@ input[type='number'] {
|
|
|
6898
6991
|
}
|
|
6899
6992
|
|
|
6900
6993
|
.dndev-range-input-separator {
|
|
6901
|
-
padding-inline: var(--gap-
|
|
6994
|
+
padding-inline: var(--gap-sm);
|
|
6902
6995
|
}
|
|
6903
6996
|
|
|
6904
6997
|
/* packages/components/src/atomic/Rating/Rating.css */
|
|
@@ -8392,6 +8485,100 @@ input[type='number'] {
|
|
|
8392
8485
|
min-width: var(--touch-target);
|
|
8393
8486
|
}
|
|
8394
8487
|
|
|
8488
|
+
.dndev-swipe-action {
|
|
8489
|
+
--swipe-action-width: 5.5rem;
|
|
8490
|
+
display: flex;
|
|
8491
|
+
min-inline-size: 0;
|
|
8492
|
+
}
|
|
8493
|
+
|
|
8494
|
+
.dndev-swipe-action-viewport {
|
|
8495
|
+
display: flex;
|
|
8496
|
+
flex: 1;
|
|
8497
|
+
min-inline-size: 0;
|
|
8498
|
+
overflow-x: auto;
|
|
8499
|
+
overflow-y: hidden;
|
|
8500
|
+
scroll-snap-type: x mandatory;
|
|
8501
|
+
overscroll-behavior-x: contain;
|
|
8502
|
+
scrollbar-width: none;
|
|
8503
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
8504
|
+
}
|
|
8505
|
+
|
|
8506
|
+
.dndev-swipe-action-viewport::-webkit-scrollbar {
|
|
8507
|
+
display: none;
|
|
8508
|
+
}
|
|
8509
|
+
|
|
8510
|
+
.dndev-swipe-action[data-disabled] .dndev-swipe-action-viewport,
|
|
8511
|
+
.dndev-swipe-action-viewport[data-input-blocked] {
|
|
8512
|
+
overflow-x: hidden;
|
|
8513
|
+
}
|
|
8514
|
+
|
|
8515
|
+
.dndev-swipe-action-content {
|
|
8516
|
+
flex: 0 0 100%;
|
|
8517
|
+
min-inline-size: 0;
|
|
8518
|
+
min-block-size: 44px;
|
|
8519
|
+
scroll-snap-align: start;
|
|
8520
|
+
background: var(--background);
|
|
8521
|
+
}
|
|
8522
|
+
|
|
8523
|
+
/* Scope to descendants, never a focusable cart/list ancestor. Touch-action is
|
|
8524
|
+
resolved before pointerdown, so controls cannot start horizontal scrolling. */
|
|
8525
|
+
.dndev-swipe-action-content :is(
|
|
8526
|
+
button, a, input, textarea, select, label, summary, [tabindex],
|
|
8527
|
+
[contenteditable]:not([contenteditable="false"]), [draggable="true"],
|
|
8528
|
+
[role="button"], [role="link"], [role="checkbox"], [role="switch"],
|
|
8529
|
+
[role="radio"], [role="slider"], [role="spinbutton"], [role="textbox"],
|
|
8530
|
+
[role="combobox"], [role="searchbox"], [role="menuitem"],
|
|
8531
|
+
[role="menuitemcheckbox"], [role="menuitemradio"], [role="option"],
|
|
8532
|
+
[role="tab"], [role="treeitem"]
|
|
8533
|
+
) {
|
|
8534
|
+
touch-action: pan-y pinch-zoom;
|
|
8535
|
+
}
|
|
8536
|
+
|
|
8537
|
+
.dndev-swipe-action-delete {
|
|
8538
|
+
display: flex;
|
|
8539
|
+
align-items: center;
|
|
8540
|
+
justify-content: center;
|
|
8541
|
+
min-inline-size: 44px;
|
|
8542
|
+
min-block-size: 44px;
|
|
8543
|
+
border: 0;
|
|
8544
|
+
font: inherit;
|
|
8545
|
+
cursor: pointer;
|
|
8546
|
+
touch-action: manipulation;
|
|
8547
|
+
}
|
|
8548
|
+
|
|
8549
|
+
/* Native overflow clips the closed action and progressively reveals its paint.
|
|
8550
|
+
Inert/disabled/ARIA state gates interaction until the open endpoint. */
|
|
8551
|
+
.dndev-swipe-action-delete {
|
|
8552
|
+
flex: 0 0 var(--swipe-action-width);
|
|
8553
|
+
scroll-snap-align: end;
|
|
8554
|
+
flex-direction: column;
|
|
8555
|
+
padding: var(--gap-sm);
|
|
8556
|
+
overflow-wrap: anywhere;
|
|
8557
|
+
background: var(--destructive);
|
|
8558
|
+
color: var(--destructive-foreground);
|
|
8559
|
+
}
|
|
8560
|
+
|
|
8561
|
+
.dndev-swipe-action svg {
|
|
8562
|
+
inline-size: var(--icon-md);
|
|
8563
|
+
block-size: var(--icon-md);
|
|
8564
|
+
flex-shrink: 0;
|
|
8565
|
+
}
|
|
8566
|
+
|
|
8567
|
+
.dndev-swipe-action button:focus-visible {
|
|
8568
|
+
outline: 2px solid var(--ring);
|
|
8569
|
+
outline-offset: -3px;
|
|
8570
|
+
}
|
|
8571
|
+
|
|
8572
|
+
.dndev-swipe-action button:disabled {
|
|
8573
|
+
cursor: default;
|
|
8574
|
+
}
|
|
8575
|
+
|
|
8576
|
+
@media (prefers-reduced-motion: reduce) {
|
|
8577
|
+
.dndev-swipe-action-viewport {
|
|
8578
|
+
scroll-behavior: auto;
|
|
8579
|
+
}
|
|
8580
|
+
}
|
|
8581
|
+
|
|
8395
8582
|
/* packages/components/src/atomic/Switch/Switch.css */
|
|
8396
8583
|
|
|
8397
8584
|
.dndev-switch {
|
|
@@ -8563,7 +8750,7 @@ input[type='number'] {
|
|
|
8563
8750
|
|
|
8564
8751
|
.dndev-table-filter-row .dndev-table-head {
|
|
8565
8752
|
background-color: var(--muted);
|
|
8566
|
-
padding: var(--gap-
|
|
8753
|
+
padding: var(--gap-sm);
|
|
8567
8754
|
height: auto;
|
|
8568
8755
|
min-height: auto;
|
|
8569
8756
|
}
|
|
@@ -8777,7 +8964,7 @@ input[type='number'] {
|
|
|
8777
8964
|
}
|
|
8778
8965
|
|
|
8779
8966
|
.dndev-table-bulk-bar {
|
|
8780
|
-
padding: var(--gap-
|
|
8967
|
+
padding: var(--gap-sm) var(--gap-sm);
|
|
8781
8968
|
border: 1px solid var(--border);
|
|
8782
8969
|
background-color: var(--muted);
|
|
8783
8970
|
}
|
|
@@ -8791,7 +8978,7 @@ input[type='number'] {
|
|
|
8791
8978
|
background-color: transparent;
|
|
8792
8979
|
border: 1px solid transparent;
|
|
8793
8980
|
border-radius: var(--radius-sm);
|
|
8794
|
-
padding: var(--gap-
|
|
8981
|
+
padding: var(--gap-sm);
|
|
8795
8982
|
}
|
|
8796
8983
|
|
|
8797
8984
|
.dndev-table-cell-editor:hover {
|
|
@@ -8820,11 +9007,20 @@ input[type='number'] {
|
|
|
8820
9007
|
background-color: color-mix(in oklab, var(--primary) 12%, transparent);
|
|
8821
9008
|
}
|
|
8822
9009
|
|
|
8823
|
-
/* Value that does not parse: the save will reject it */
|
|
9010
|
+
/* Value that does not parse, or breaks a rule (cellErrors): the save will reject it */
|
|
8824
9011
|
.dndev-table-cell[data-invalid='true'] .dndev-table-cell-editor {
|
|
8825
9012
|
border-color: var(--destructive);
|
|
8826
9013
|
}
|
|
8827
9014
|
|
|
9015
|
+
/* Message of a rule the cell value breaks (cellErrors) */
|
|
9016
|
+
.dndev-table-cell-error {
|
|
9017
|
+
display: block;
|
|
9018
|
+
margin-block-start: var(--gap-sm);
|
|
9019
|
+
color: var(--destructive);
|
|
9020
|
+
font-size: var(--font-size-xs);
|
|
9021
|
+
line-height: 1.3;
|
|
9022
|
+
}
|
|
9023
|
+
|
|
8828
9024
|
/* Open cell: icon link to the row's record (touch-sized hit area) */
|
|
8829
9025
|
.dndev-table-open-link {
|
|
8830
9026
|
display: inline-flex;
|
|
@@ -8928,41 +9124,117 @@ input[type='number'] {
|
|
|
8928
9124
|
display: none;
|
|
8929
9125
|
}
|
|
8930
9126
|
|
|
8931
|
-
/*
|
|
8932
|
-
|
|
8933
|
-
/* One outlined control (e-commerce standard, e.g. Shopify Dawn): borderless − / +
|
|
8934
|
-
buttons around a centred, tabular quantity. Same height and radius as buttons. */
|
|
9127
|
+
/* Reserve the complete footprint, even when zero is presented as one large +. */
|
|
8935
9128
|
.dndev-quantity-stepper {
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
9129
|
+
--quantity-target: max(var(--touch-target), 44px);
|
|
9130
|
+
/* Include both icon states, padding and inherited text BEFORE placing items.
|
|
9131
|
+
Auto rows otherwise grow for the larger collapsed icon, then shrink on expand. */
|
|
9132
|
+
--quantity-cell: max(
|
|
9133
|
+
var(--quantity-target),
|
|
9134
|
+
calc(max(var(--icon-md), var(--quantity-target) * 0.6, 1lh) + 2 * var(--gap-sm))
|
|
9135
|
+
);
|
|
9136
|
+
display: inline-grid;
|
|
9137
|
+
grid-template-columns: var(--quantity-cell) minmax(var(--quantity-cell), 1fr) var(--quantity-cell);
|
|
9138
|
+
grid-template-rows: var(--quantity-cell);
|
|
9139
|
+
inline-size: calc(3 * var(--quantity-cell));
|
|
9140
|
+
min-inline-size: calc(3 * var(--quantity-cell));
|
|
8939
9141
|
border: var(--border-hairline) solid var(--border);
|
|
8940
9142
|
border-radius: var(--radius-interactive);
|
|
8941
9143
|
background: var(--interactive);
|
|
8942
9144
|
color: var(--foreground);
|
|
8943
9145
|
}
|
|
8944
9146
|
.dndev-quantity-stepper[data-full-width] {
|
|
8945
|
-
display:
|
|
8946
|
-
|
|
9147
|
+
display: grid;
|
|
9148
|
+
inline-size: 100%;
|
|
8947
9149
|
}
|
|
8948
9150
|
.dndev-quantity-stepper[data-disabled] {
|
|
8949
9151
|
opacity: 0.6;
|
|
8950
9152
|
}
|
|
8951
|
-
.dndev-quantity-stepper >
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
min-height: 0;
|
|
9153
|
+
.dndev-quantity-stepper > button,.dndev-quantity-stepper > input {
|
|
9154
|
+
min-inline-size: var(--quantity-target);
|
|
9155
|
+
min-block-size: var(--quantity-target);
|
|
8955
9156
|
border: none;
|
|
8956
9157
|
border-radius: inherit;
|
|
8957
9158
|
background: transparent;
|
|
9159
|
+
color: inherit;
|
|
9160
|
+
font: inherit;
|
|
9161
|
+
touch-action: manipulation;
|
|
8958
9162
|
}
|
|
9163
|
+
:is(.dndev-quantity-stepper > button,.dndev-quantity-stepper > input):focus-visible {
|
|
9164
|
+
outline: none;
|
|
9165
|
+
box-shadow: var(--shadow-focus);
|
|
9166
|
+
z-index: 1;
|
|
9167
|
+
}
|
|
9168
|
+
:is(.dndev-quantity-stepper > button,.dndev-quantity-stepper > input):disabled {
|
|
9169
|
+
cursor: not-allowed;
|
|
9170
|
+
opacity: 0.6;
|
|
9171
|
+
}
|
|
9172
|
+
.dndev-quantity-stepper > button {
|
|
9173
|
+
display: flex;
|
|
9174
|
+
align-items: center;
|
|
9175
|
+
justify-content: center;
|
|
9176
|
+
padding: var(--gap-sm);
|
|
9177
|
+
cursor: pointer;
|
|
9178
|
+
transition: background-color var(--transition-fast);
|
|
9179
|
+
/* Press-and-hold repeats: no text selection or touch callout on long press. */
|
|
9180
|
+
-moz-user-select: none;
|
|
9181
|
+
user-select: none;
|
|
9182
|
+
-webkit-user-select: none;
|
|
9183
|
+
-webkit-touch-callout: none;
|
|
9184
|
+
}
|
|
9185
|
+
:is(.dndev-quantity-stepper > button):hover:not(:disabled) {
|
|
9186
|
+
background: var(--muted);
|
|
9187
|
+
}
|
|
9188
|
+
:is(.dndev-quantity-stepper > button) > svg {
|
|
9189
|
+
inline-size: var(--icon-md);
|
|
9190
|
+
block-size: var(--icon-md);
|
|
9191
|
+
}
|
|
9192
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-decrement {
|
|
9193
|
+
grid-area: 1 / 1;
|
|
9194
|
+
}
|
|
9195
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-value {
|
|
9196
|
+
grid-area: 1 / 2;
|
|
9197
|
+
}
|
|
9198
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-increment {
|
|
9199
|
+
grid-area: 1 / 3;
|
|
9200
|
+
}
|
|
9201
|
+
.dndev-quantity-stepper[data-vertical] {
|
|
9202
|
+
grid-template-columns: minmax(var(--quantity-cell), 1fr);
|
|
9203
|
+
grid-template-rows: repeat(3, var(--quantity-cell));
|
|
9204
|
+
inline-size: var(--quantity-cell);
|
|
9205
|
+
min-inline-size: var(--quantity-cell);
|
|
9206
|
+
}
|
|
9207
|
+
.dndev-quantity-stepper[data-vertical][data-full-width] {
|
|
9208
|
+
inline-size: 100%;
|
|
9209
|
+
}
|
|
9210
|
+
.dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-increment {
|
|
9211
|
+
grid-area: 1 / 1;
|
|
9212
|
+
}
|
|
9213
|
+
.dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-value {
|
|
9214
|
+
grid-area: 2 / 1;
|
|
9215
|
+
}
|
|
9216
|
+
.dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-decrement {
|
|
9217
|
+
grid-area: 3 / 1;
|
|
9218
|
+
}
|
|
9219
|
+
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-value {
|
|
9220
|
+
visibility: hidden;
|
|
9221
|
+
pointer-events: none;
|
|
9222
|
+
}
|
|
9223
|
+
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment {
|
|
9224
|
+
grid-area: 1 / 1 / -1 / -1;
|
|
9225
|
+
}
|
|
9226
|
+
:is(.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment) > svg {
|
|
9227
|
+
inline-size: calc(var(--quantity-target) * 0.6);
|
|
9228
|
+
block-size: calc(var(--quantity-target) * 0.6);
|
|
9229
|
+
}
|
|
8959
9230
|
|
|
8960
9231
|
.dndev-quantity-stepper-value {
|
|
8961
|
-
|
|
9232
|
+
box-sizing: border-box;
|
|
8962
9233
|
display: flex;
|
|
8963
9234
|
align-items: center;
|
|
8964
9235
|
justify-content: center;
|
|
8965
|
-
|
|
9236
|
+
inline-size: 100%;
|
|
9237
|
+
min-inline-size: 0;
|
|
8966
9238
|
padding-inline: var(--gap-sm);
|
|
8967
9239
|
border: none;
|
|
8968
9240
|
background: none;
|
|
@@ -8971,21 +9243,14 @@ input[type='number'] {
|
|
|
8971
9243
|
font-weight: var(--font-weight-medium);
|
|
8972
9244
|
font-variant-numeric: tabular-nums;
|
|
8973
9245
|
text-align: center;
|
|
8974
|
-
}
|
|
8975
|
-
|
|
8976
|
-
.dndev-quantity-stepper-value:is(button) {
|
|
8977
|
-
cursor: pointer;
|
|
8978
|
-
}
|
|
8979
9246
|
|
|
8980
|
-
|
|
8981
|
-
text-decoration: underline;
|
|
8982
|
-
text-underline-offset: 0.2em;
|
|
8983
|
-
}
|
|
9247
|
+
}
|
|
8984
9248
|
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
9249
|
+
@media (prefers-reduced-motion: reduce) {
|
|
9250
|
+
.dndev-quantity-stepper > button {
|
|
9251
|
+
transition: none;
|
|
8988
9252
|
}
|
|
9253
|
+
}
|
|
8989
9254
|
|
|
8990
9255
|
/* packages/components/src/atomic/Tag/Tag.css */
|
|
8991
9256
|
|
|
@@ -9252,7 +9517,7 @@ input[type='number'] {
|
|
|
9252
9517
|
.dndev-toast-viewport {
|
|
9253
9518
|
position: fixed;
|
|
9254
9519
|
top: var(--gap-md);
|
|
9255
|
-
z-index:
|
|
9520
|
+
z-index: var(--z-toast);
|
|
9256
9521
|
display: flex;
|
|
9257
9522
|
flex-direction: column-reverse;
|
|
9258
9523
|
max-height: 100dvh;
|
|
@@ -9605,7 +9870,7 @@ input[type='number'] {
|
|
|
9605
9870
|
display: flex;
|
|
9606
9871
|
align-items: center;
|
|
9607
9872
|
gap: var(--gap-sm);
|
|
9608
|
-
padding: var(--gap-
|
|
9873
|
+
padding: var(--gap-sm) var(--gap-sm);
|
|
9609
9874
|
border-radius: var(--radius-interactive);
|
|
9610
9875
|
cursor: pointer;
|
|
9611
9876
|
transition:
|
|
@@ -12268,10 +12533,20 @@ main[role='main'][data-routing-animation='none'] {
|
|
|
12268
12533
|
grid-template-rows: var(--header-height) 1fr auto;
|
|
12269
12534
|
}
|
|
12270
12535
|
|
|
12271
|
-
/*
|
|
12536
|
+
/* No footer rendered (app.footer: null): no footer row, main takes the space */
|
|
12537
|
+
.dndev-layout:not(:has(> footer)) {
|
|
12538
|
+
grid-template-areas:
|
|
12539
|
+
'header header'
|
|
12540
|
+
'sidebar main';
|
|
12541
|
+
grid-template-rows: var(--header-height) 1fr;
|
|
12542
|
+
}
|
|
12543
|
+
|
|
12544
|
+
/* Footer inside main: spacing + sizing (slotted mode only). The gap sits on the page
|
|
12545
|
+
above it: the footer's own block-start margin is `auto` (pinned to the bottom). */
|
|
12546
|
+
main[role='main'] > :has(+ footer[role='contentinfo']:not([data-custom])) {
|
|
12547
|
+
margin-block-end: var(--gap-lg);
|
|
12548
|
+
}
|
|
12272
12549
|
main[role='main'] > footer[role='contentinfo']:not([data-custom]) {
|
|
12273
|
-
margin-top: var(--gap-lg);
|
|
12274
|
-
flex-shrink: 0;
|
|
12275
12550
|
height: auto;
|
|
12276
12551
|
}
|
|
12277
12552
|
main[role='main'] > footer[role='contentinfo']:not([data-custom]) > * {
|
|
@@ -12632,11 +12907,20 @@ main[role='main'] {
|
|
|
12632
12907
|
padding: 0;
|
|
12633
12908
|
contain: layout style;
|
|
12634
12909
|
|
|
12635
|
-
/*
|
|
12910
|
+
/* The page (first child, or the one after breadcrumbs) grows to fill the space and never
|
|
12911
|
+
shrinks (the scroll container owns overflow). Only the page: a footer rendered inside
|
|
12912
|
+
main keeps its own height. */
|
|
12636
12913
|
}
|
|
12637
|
-
main[role='main'] >
|
|
12914
|
+
main[role='main'] > :first-child:not(.breadcrumbs-container,footer),main[role='main'] > .breadcrumbs-container + :not(footer) {
|
|
12638
12915
|
flex: 1 0 auto;
|
|
12639
12916
|
}
|
|
12917
|
+
/* Footer inside main: always at the bottom, even while the page is not there yet
|
|
12918
|
+
(a Suspense boundary streaming in leaves only a hidden placeholder): main stays
|
|
12919
|
+
empty above it, nothing shifts when the page arrives. */
|
|
12920
|
+
main[role='main'] > footer {
|
|
12921
|
+
flex: 0 0 auto;
|
|
12922
|
+
margin-block-start: auto;
|
|
12923
|
+
}
|
|
12640
12924
|
|
|
12641
12925
|
/* Footer: Full width by default, app presets start after sidebar */
|
|
12642
12926
|
/* box-sizing: border-box ensures borders are included in height */
|
|
@@ -13279,6 +13563,39 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
13279
13563
|
border-radius: 0;
|
|
13280
13564
|
}
|
|
13281
13565
|
|
|
13566
|
+
/* HeaderMenu - controls inline from laptop up, hamburger below */
|
|
13567
|
+
|
|
13568
|
+
/* packages/ui/src/components/layout/components/header/HeaderMenu.css */
|
|
13569
|
+
|
|
13570
|
+
/* HeaderMenu: controls inline from laptop up, hamburger below.
|
|
13571
|
+
1024px = BREAKPOINT_THRESHOLDS.laptop, the useBreakpoint('isMobileOrTablet') split
|
|
13572
|
+
(CSS variables don't work in @media). Both are in the server HTML: no hydration swap. */
|
|
13573
|
+
|
|
13574
|
+
/* Inline controls join the parent row (its gap and alignment) */
|
|
13575
|
+
.dndev-header-menu-inline {
|
|
13576
|
+
display: contents;
|
|
13577
|
+
}
|
|
13578
|
+
|
|
13579
|
+
.dndev-header-menu-burger {
|
|
13580
|
+
display: none;
|
|
13581
|
+
}
|
|
13582
|
+
|
|
13583
|
+
/* Burger panel: above the header it drops from, below the dialogs (--z-modal) and
|
|
13584
|
+
menus (--z-tooltip) its controls open */
|
|
13585
|
+
.dndev-header-menu-panel {
|
|
13586
|
+
z-index: calc(var(--z-header) + 1);
|
|
13587
|
+
}
|
|
13588
|
+
|
|
13589
|
+
@media (width < 1024px) {
|
|
13590
|
+
.dndev-header-menu-inline {
|
|
13591
|
+
display: none;
|
|
13592
|
+
}
|
|
13593
|
+
|
|
13594
|
+
.dndev-header-menu-burger {
|
|
13595
|
+
display: contents;
|
|
13596
|
+
}
|
|
13597
|
+
}
|
|
13598
|
+
|
|
13282
13599
|
/* AppIcon - header icon styling */
|
|
13283
13600
|
.app-icon-header {
|
|
13284
13601
|
display: inline-flex;
|