@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/dndev-next.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* packages/ui/src/dndev-next.css */
|
|
2
|
-
/* Next.js variant:
|
|
2
|
+
/* Next.js variant: the theme's framework fonts load via public/dndev-fonts.css (copyFontsToPublic + FontPreloadLinks) */
|
|
3
3
|
|
|
4
4
|
/* 1. Complete UI system (base design system + layout variables) */
|
|
5
5
|
|
|
@@ -3351,7 +3351,7 @@ em {
|
|
|
3351
3351
|
display: inline-flex;
|
|
3352
3352
|
align-items: center;
|
|
3353
3353
|
justify-content: center;
|
|
3354
|
-
padding: var(--gap-
|
|
3354
|
+
padding: var(--gap-sm) 1px;
|
|
3355
3355
|
border-radius: 2px;
|
|
3356
3356
|
font-variant-numeric: tabular-nums;
|
|
3357
3357
|
caret-color: transparent;
|
|
@@ -3734,7 +3734,11 @@ em {
|
|
|
3734
3734
|
|
|
3735
3735
|
/* href: stretched link. The title is the <a href>; its ::after covers the whole
|
|
3736
3736
|
card so the tile is clickable, while controls inside stay above it. The body
|
|
3737
|
-
must not be the containing block, or the hit area would stop at the cover.
|
|
3737
|
+
must not be the containing block, or the hit area would stop at the cover.
|
|
3738
|
+
The lift list must name every control root and its value: a group whose own
|
|
3739
|
+
opacity (e.g. a disabled QuantityStepper, role="group") makes it a stacking
|
|
3740
|
+
context paints below the overlay, and an <output> value would be covered, so
|
|
3741
|
+
taps there would open the link instead of reaching the control. */
|
|
3738
3742
|
.dndev-card[data-has-link='true'] > .dndev-card-body {
|
|
3739
3743
|
position: static;
|
|
3740
3744
|
}
|
|
@@ -3770,6 +3774,9 @@ em {
|
|
|
3770
3774
|
textarea,
|
|
3771
3775
|
label,
|
|
3772
3776
|
[role='button'],
|
|
3777
|
+
[role='group'],
|
|
3778
|
+
fieldset,
|
|
3779
|
+
output,
|
|
3773
3780
|
[tabindex]
|
|
3774
3781
|
):not(.dndev-card-link) {
|
|
3775
3782
|
position: relative;
|
|
@@ -3815,9 +3822,25 @@ em {
|
|
|
3815
3822
|
overflow: hidden;
|
|
3816
3823
|
z-index: 0;
|
|
3817
3824
|
width: 100%;
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3827
|
+
/* Opt-in fill behind the media (coverBackground); transparent paints nothing. */
|
|
3828
|
+
.dndev-card-cover[data-background='muted'] {
|
|
3818
3829
|
background: var(--muted);
|
|
3819
3830
|
}
|
|
3820
3831
|
|
|
3832
|
+
.dndev-card-cover[data-background='primary'] {
|
|
3833
|
+
background: var(--primary);
|
|
3834
|
+
}
|
|
3835
|
+
|
|
3836
|
+
.dndev-card-cover[data-background='secondary'] {
|
|
3837
|
+
background: var(--secondary);
|
|
3838
|
+
}
|
|
3839
|
+
|
|
3840
|
+
.dndev-card-cover[data-background='accent'] {
|
|
3841
|
+
background: var(--accent);
|
|
3842
|
+
}
|
|
3843
|
+
|
|
3821
3844
|
/* Cover-only: fill the card completely. Card root owns the aspect-ratio. */
|
|
3822
3845
|
.dndev-card-cover:not([data-has-body='true']) {
|
|
3823
3846
|
position: absolute;
|
|
@@ -3838,14 +3861,12 @@ em {
|
|
|
3838
3861
|
object-fit: cover;
|
|
3839
3862
|
}
|
|
3840
3863
|
|
|
3841
|
-
/* Contain: whole image visible
|
|
3842
|
-
|
|
3864
|
+
/* Contain: whole image visible at full frame size, no inset (cut-outs;
|
|
3865
|
+
`coverBackground` opts into a fill). */
|
|
3843
3866
|
.dndev-card-cover[data-fit='contain'] > img:not(.dndev-card-cover-hover),
|
|
3844
3867
|
.dndev-card-cover[data-fit='contain'] > picture > img:not(.dndev-card-cover-hover) {
|
|
3845
3868
|
-o-object-fit: contain;
|
|
3846
3869
|
object-fit: contain;
|
|
3847
|
-
box-sizing: border-box;
|
|
3848
|
-
padding: 8%;
|
|
3849
3870
|
}
|
|
3850
3871
|
|
|
3851
3872
|
/* Hover view: stacked over the cover, crossfades in on hover / keyboard focus. */
|
|
@@ -4077,6 +4098,16 @@ em {
|
|
|
4077
4098
|
transition: opacity var(--dur-fast) var(--ease-in-out);
|
|
4078
4099
|
}
|
|
4079
4100
|
|
|
4101
|
+
/* <button> the component renders (showIcon, or non-element trigger): strip UA chrome */
|
|
4102
|
+
.dndev-collapsible-trigger--button {
|
|
4103
|
+
background: none;
|
|
4104
|
+
border: none;
|
|
4105
|
+
padding: 0;
|
|
4106
|
+
font: inherit;
|
|
4107
|
+
color: inherit;
|
|
4108
|
+
text-align: start;
|
|
4109
|
+
}
|
|
4110
|
+
|
|
4080
4111
|
.dndev-collapsible-trigger:hover {
|
|
4081
4112
|
opacity: var(--opacity-strong);
|
|
4082
4113
|
}
|
|
@@ -4240,7 +4271,7 @@ em {
|
|
|
4240
4271
|
height: 100%;
|
|
4241
4272
|
display: flex;
|
|
4242
4273
|
align-items: center;
|
|
4243
|
-
gap:
|
|
4274
|
+
gap: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token; must match computeTrailingPad() in index.tsx */
|
|
4244
4275
|
z-index: 1;
|
|
4245
4276
|
pointer-events: none; /* pass clicks through to input by default */
|
|
4246
4277
|
}
|
|
@@ -4303,10 +4334,10 @@ em {
|
|
|
4303
4334
|
display: flex;
|
|
4304
4335
|
flex-wrap: wrap;
|
|
4305
4336
|
align-items: center;
|
|
4306
|
-
gap:
|
|
4337
|
+
gap: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
4307
4338
|
border: var(--border-hairline) solid var(--line-2);
|
|
4308
4339
|
border-radius: var(--radius-interactive);
|
|
4309
|
-
padding:
|
|
4340
|
+
padding: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
4310
4341
|
padding-inline-end: var(--combobox-pad-end);
|
|
4311
4342
|
min-height: var(--touch-target);
|
|
4312
4343
|
cursor: text;
|
|
@@ -4331,7 +4362,7 @@ em {
|
|
|
4331
4362
|
flex: 1 1 80px;
|
|
4332
4363
|
min-width: 80px;
|
|
4333
4364
|
height: auto;
|
|
4334
|
-
padding: var(--gap-
|
|
4365
|
+
padding: 4px var(--gap-sm); /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
4335
4366
|
}
|
|
4336
4367
|
|
|
4337
4368
|
/* ──────────────────────────────────────────────────
|
|
@@ -4378,7 +4409,7 @@ em {
|
|
|
4378
4409
|
.dndev-combobox-option-content {
|
|
4379
4410
|
display: flex;
|
|
4380
4411
|
flex-direction: column;
|
|
4381
|
-
gap: var(--gap-
|
|
4412
|
+
gap: var(--gap-sm);
|
|
4382
4413
|
flex: 1;
|
|
4383
4414
|
}
|
|
4384
4415
|
|
|
@@ -4395,7 +4426,7 @@ em {
|
|
|
4395
4426
|
.dndev-combobox-option-count {
|
|
4396
4427
|
font-size: var(--font-size-xs);
|
|
4397
4428
|
color: var(--muted-foreground);
|
|
4398
|
-
margin-inline-start: var(--gap-
|
|
4429
|
+
margin-inline-start: var(--gap-sm);
|
|
4399
4430
|
flex-shrink: 0;
|
|
4400
4431
|
}
|
|
4401
4432
|
|
|
@@ -5542,7 +5573,6 @@ em {
|
|
|
5542
5573
|
width: 100%;
|
|
5543
5574
|
overflow: hidden;
|
|
5544
5575
|
border-radius: var(--radius-surface);
|
|
5545
|
-
background-color: var(--muted);
|
|
5546
5576
|
}
|
|
5547
5577
|
|
|
5548
5578
|
.image-gallery__main--lightbox {
|
|
@@ -5696,9 +5726,29 @@ em {
|
|
|
5696
5726
|
.image-gallery__thumbnail-image[data-fit='contain'] {
|
|
5697
5727
|
-o-object-fit: contain;
|
|
5698
5728
|
object-fit: contain;
|
|
5729
|
+
}
|
|
5730
|
+
|
|
5731
|
+
/* Opt-in fill (background prop); transparent paints nothing. Thumbnails only fill when contained. */
|
|
5732
|
+
.image-gallery__main[data-background='muted'],
|
|
5733
|
+
.image-gallery__thumbnail-image[data-fit='contain'][data-background='muted'] {
|
|
5699
5734
|
background-color: var(--muted);
|
|
5700
5735
|
}
|
|
5701
5736
|
|
|
5737
|
+
.image-gallery__main[data-background='primary'],
|
|
5738
|
+
.image-gallery__thumbnail-image[data-fit='contain'][data-background='primary'] {
|
|
5739
|
+
background-color: var(--primary);
|
|
5740
|
+
}
|
|
5741
|
+
|
|
5742
|
+
.image-gallery__main[data-background='secondary'],
|
|
5743
|
+
.image-gallery__thumbnail-image[data-fit='contain'][data-background='secondary'] {
|
|
5744
|
+
background-color: var(--secondary);
|
|
5745
|
+
}
|
|
5746
|
+
|
|
5747
|
+
.image-gallery__main[data-background='accent'],
|
|
5748
|
+
.image-gallery__thumbnail-image[data-fit='contain'][data-background='accent'] {
|
|
5749
|
+
background-color: var(--accent);
|
|
5750
|
+
}
|
|
5751
|
+
|
|
5702
5752
|
/* Responsive adjustments */
|
|
5703
5753
|
@media (max-width: 640px) {
|
|
5704
5754
|
.image-gallery__thumbnail {
|
|
@@ -6178,13 +6228,56 @@ input[type='number'] {
|
|
|
6178
6228
|
cursor: default;
|
|
6179
6229
|
display: inline-flex;
|
|
6180
6230
|
align-items: center;
|
|
6181
|
-
gap: var(--gap-
|
|
6231
|
+
gap: var(--gap-sm);
|
|
6182
6232
|
}
|
|
6183
6233
|
|
|
6184
6234
|
.dndev-floating-fieldset[data-disabled='true'] .dndev-floating-legend {
|
|
6185
6235
|
color: var(--muted-foreground);
|
|
6186
6236
|
}
|
|
6187
6237
|
|
|
6238
|
+
/* Help (i) after the label: the label truncates, the button never does */
|
|
6239
|
+
.dndev-floating-legend[data-info] {
|
|
6240
|
+
display: flex;
|
|
6241
|
+
align-items: center;
|
|
6242
|
+
gap: calc(var(--gap-sm) / 2);
|
|
6243
|
+
}
|
|
6244
|
+
|
|
6245
|
+
.dndev-floating-legend[data-info] > label {
|
|
6246
|
+
display: block;
|
|
6247
|
+
min-width: 0;
|
|
6248
|
+
overflow: hidden;
|
|
6249
|
+
text-overflow: ellipsis;
|
|
6250
|
+
}
|
|
6251
|
+
|
|
6252
|
+
.dndev-field-info {
|
|
6253
|
+
display: inline-flex;
|
|
6254
|
+
flex-shrink: 0;
|
|
6255
|
+
align-items: center;
|
|
6256
|
+
justify-content: center;
|
|
6257
|
+
/* Larger hit area than the icon, without growing the legend */
|
|
6258
|
+
padding: calc(var(--gap-sm) / 2);
|
|
6259
|
+
margin: calc(var(--gap-sm) / -2);
|
|
6260
|
+
border: none;
|
|
6261
|
+
border-radius: var(--radius-full);
|
|
6262
|
+
background: none;
|
|
6263
|
+
color: var(--muted-foreground);
|
|
6264
|
+
cursor: help;
|
|
6265
|
+
}
|
|
6266
|
+
|
|
6267
|
+
.dndev-field-info:hover,
|
|
6268
|
+
.dndev-field-info:focus-visible {
|
|
6269
|
+
color: var(--foreground);
|
|
6270
|
+
}
|
|
6271
|
+
|
|
6272
|
+
.dndev-field-info:focus-visible {
|
|
6273
|
+
outline: var(--border-hairline) solid var(--ring);
|
|
6274
|
+
}
|
|
6275
|
+
|
|
6276
|
+
.dndev-field-info svg {
|
|
6277
|
+
width: 1.25em;
|
|
6278
|
+
height: 1.25em;
|
|
6279
|
+
}
|
|
6280
|
+
|
|
6188
6281
|
/* Disable truncation when explicitly set to false */
|
|
6189
6282
|
.dndev-floating-legend[data-truncate='false'] {
|
|
6190
6283
|
max-width: none;
|
|
@@ -6504,7 +6597,7 @@ input[type='number'] {
|
|
|
6504
6597
|
/* packages/components/src/atomic/PasswordInput/PasswordInput.css */
|
|
6505
6598
|
|
|
6506
6599
|
.dndev-password-input-with-toggle {
|
|
6507
|
-
padding-inline-end: calc(var(--gap-
|
|
6600
|
+
padding-inline-end: calc(var(--gap-lg) + var(--gap-md)) !important;
|
|
6508
6601
|
}
|
|
6509
6602
|
|
|
6510
6603
|
/* Eye icon toggle - ALWAYS at end, cannot be overridden */
|
|
@@ -6517,7 +6610,7 @@ input[type='number'] {
|
|
|
6517
6610
|
background: none !important;
|
|
6518
6611
|
border: none !important;
|
|
6519
6612
|
cursor: pointer !important;
|
|
6520
|
-
padding: var(--gap-
|
|
6613
|
+
padding: var(--gap-sm) !important;
|
|
6521
6614
|
display: flex !important;
|
|
6522
6615
|
align-items: center !important;
|
|
6523
6616
|
opacity: var(--opacity-muted) !important;
|
|
@@ -6578,7 +6671,7 @@ input[type='number'] {
|
|
|
6578
6671
|
background: none;
|
|
6579
6672
|
border: none;
|
|
6580
6673
|
cursor: pointer;
|
|
6581
|
-
padding:
|
|
6674
|
+
padding: 0.25rem; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
6582
6675
|
margin-inline-start: var(--gap-sm, 0.5rem);
|
|
6583
6676
|
display: inline-flex;
|
|
6584
6677
|
align-items: center;
|
|
@@ -6903,7 +6996,7 @@ input[type='number'] {
|
|
|
6903
6996
|
}
|
|
6904
6997
|
|
|
6905
6998
|
.dndev-range-input-separator {
|
|
6906
|
-
padding-inline: var(--gap-
|
|
6999
|
+
padding-inline: var(--gap-sm);
|
|
6907
7000
|
}
|
|
6908
7001
|
|
|
6909
7002
|
/* packages/components/src/atomic/Rating/Rating.css */
|
|
@@ -8397,6 +8490,100 @@ input[type='number'] {
|
|
|
8397
8490
|
min-width: var(--touch-target);
|
|
8398
8491
|
}
|
|
8399
8492
|
|
|
8493
|
+
.dndev-swipe-action {
|
|
8494
|
+
--swipe-action-width: 5.5rem;
|
|
8495
|
+
display: flex;
|
|
8496
|
+
min-inline-size: 0;
|
|
8497
|
+
}
|
|
8498
|
+
|
|
8499
|
+
.dndev-swipe-action-viewport {
|
|
8500
|
+
display: flex;
|
|
8501
|
+
flex: 1;
|
|
8502
|
+
min-inline-size: 0;
|
|
8503
|
+
overflow-x: auto;
|
|
8504
|
+
overflow-y: hidden;
|
|
8505
|
+
scroll-snap-type: x mandatory;
|
|
8506
|
+
overscroll-behavior-x: contain;
|
|
8507
|
+
scrollbar-width: none;
|
|
8508
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
8509
|
+
}
|
|
8510
|
+
|
|
8511
|
+
.dndev-swipe-action-viewport::-webkit-scrollbar {
|
|
8512
|
+
display: none;
|
|
8513
|
+
}
|
|
8514
|
+
|
|
8515
|
+
.dndev-swipe-action[data-disabled] .dndev-swipe-action-viewport,
|
|
8516
|
+
.dndev-swipe-action-viewport[data-input-blocked] {
|
|
8517
|
+
overflow-x: hidden;
|
|
8518
|
+
}
|
|
8519
|
+
|
|
8520
|
+
.dndev-swipe-action-content {
|
|
8521
|
+
flex: 0 0 100%;
|
|
8522
|
+
min-inline-size: 0;
|
|
8523
|
+
min-block-size: 44px;
|
|
8524
|
+
scroll-snap-align: start;
|
|
8525
|
+
background: var(--background);
|
|
8526
|
+
}
|
|
8527
|
+
|
|
8528
|
+
/* Scope to descendants, never a focusable cart/list ancestor. Touch-action is
|
|
8529
|
+
resolved before pointerdown, so controls cannot start horizontal scrolling. */
|
|
8530
|
+
.dndev-swipe-action-content :is(
|
|
8531
|
+
button, a, input, textarea, select, label, summary, [tabindex],
|
|
8532
|
+
[contenteditable]:not([contenteditable="false"]), [draggable="true"],
|
|
8533
|
+
[role="button"], [role="link"], [role="checkbox"], [role="switch"],
|
|
8534
|
+
[role="radio"], [role="slider"], [role="spinbutton"], [role="textbox"],
|
|
8535
|
+
[role="combobox"], [role="searchbox"], [role="menuitem"],
|
|
8536
|
+
[role="menuitemcheckbox"], [role="menuitemradio"], [role="option"],
|
|
8537
|
+
[role="tab"], [role="treeitem"]
|
|
8538
|
+
) {
|
|
8539
|
+
touch-action: pan-y pinch-zoom;
|
|
8540
|
+
}
|
|
8541
|
+
|
|
8542
|
+
.dndev-swipe-action-delete {
|
|
8543
|
+
display: flex;
|
|
8544
|
+
align-items: center;
|
|
8545
|
+
justify-content: center;
|
|
8546
|
+
min-inline-size: 44px;
|
|
8547
|
+
min-block-size: 44px;
|
|
8548
|
+
border: 0;
|
|
8549
|
+
font: inherit;
|
|
8550
|
+
cursor: pointer;
|
|
8551
|
+
touch-action: manipulation;
|
|
8552
|
+
}
|
|
8553
|
+
|
|
8554
|
+
/* Native overflow clips the closed action and progressively reveals its paint.
|
|
8555
|
+
Inert/disabled/ARIA state gates interaction until the open endpoint. */
|
|
8556
|
+
.dndev-swipe-action-delete {
|
|
8557
|
+
flex: 0 0 var(--swipe-action-width);
|
|
8558
|
+
scroll-snap-align: end;
|
|
8559
|
+
flex-direction: column;
|
|
8560
|
+
padding: var(--gap-sm);
|
|
8561
|
+
overflow-wrap: anywhere;
|
|
8562
|
+
background: var(--destructive);
|
|
8563
|
+
color: var(--destructive-foreground);
|
|
8564
|
+
}
|
|
8565
|
+
|
|
8566
|
+
.dndev-swipe-action svg {
|
|
8567
|
+
inline-size: var(--icon-md);
|
|
8568
|
+
block-size: var(--icon-md);
|
|
8569
|
+
flex-shrink: 0;
|
|
8570
|
+
}
|
|
8571
|
+
|
|
8572
|
+
.dndev-swipe-action button:focus-visible {
|
|
8573
|
+
outline: 2px solid var(--ring);
|
|
8574
|
+
outline-offset: -3px;
|
|
8575
|
+
}
|
|
8576
|
+
|
|
8577
|
+
.dndev-swipe-action button:disabled {
|
|
8578
|
+
cursor: default;
|
|
8579
|
+
}
|
|
8580
|
+
|
|
8581
|
+
@media (prefers-reduced-motion: reduce) {
|
|
8582
|
+
.dndev-swipe-action-viewport {
|
|
8583
|
+
scroll-behavior: auto;
|
|
8584
|
+
}
|
|
8585
|
+
}
|
|
8586
|
+
|
|
8400
8587
|
/* packages/components/src/atomic/Switch/Switch.css */
|
|
8401
8588
|
|
|
8402
8589
|
.dndev-switch {
|
|
@@ -8568,7 +8755,7 @@ input[type='number'] {
|
|
|
8568
8755
|
|
|
8569
8756
|
.dndev-table-filter-row .dndev-table-head {
|
|
8570
8757
|
background-color: var(--muted);
|
|
8571
|
-
padding: var(--gap-
|
|
8758
|
+
padding: var(--gap-sm);
|
|
8572
8759
|
height: auto;
|
|
8573
8760
|
min-height: auto;
|
|
8574
8761
|
}
|
|
@@ -8782,7 +8969,7 @@ input[type='number'] {
|
|
|
8782
8969
|
}
|
|
8783
8970
|
|
|
8784
8971
|
.dndev-table-bulk-bar {
|
|
8785
|
-
padding: var(--gap-
|
|
8972
|
+
padding: var(--gap-sm) var(--gap-sm);
|
|
8786
8973
|
border: 1px solid var(--border);
|
|
8787
8974
|
background-color: var(--muted);
|
|
8788
8975
|
}
|
|
@@ -8796,7 +8983,7 @@ input[type='number'] {
|
|
|
8796
8983
|
background-color: transparent;
|
|
8797
8984
|
border: 1px solid transparent;
|
|
8798
8985
|
border-radius: var(--radius-sm);
|
|
8799
|
-
padding: var(--gap-
|
|
8986
|
+
padding: var(--gap-sm);
|
|
8800
8987
|
}
|
|
8801
8988
|
|
|
8802
8989
|
.dndev-table-cell-editor:hover {
|
|
@@ -8825,11 +9012,20 @@ input[type='number'] {
|
|
|
8825
9012
|
background-color: color-mix(in oklab, var(--primary) 12%, transparent);
|
|
8826
9013
|
}
|
|
8827
9014
|
|
|
8828
|
-
/* Value that does not parse: the save will reject it */
|
|
9015
|
+
/* Value that does not parse, or breaks a rule (cellErrors): the save will reject it */
|
|
8829
9016
|
.dndev-table-cell[data-invalid='true'] .dndev-table-cell-editor {
|
|
8830
9017
|
border-color: var(--destructive);
|
|
8831
9018
|
}
|
|
8832
9019
|
|
|
9020
|
+
/* Message of a rule the cell value breaks (cellErrors) */
|
|
9021
|
+
.dndev-table-cell-error {
|
|
9022
|
+
display: block;
|
|
9023
|
+
margin-block-start: var(--gap-sm);
|
|
9024
|
+
color: var(--destructive);
|
|
9025
|
+
font-size: var(--font-size-xs);
|
|
9026
|
+
line-height: 1.3;
|
|
9027
|
+
}
|
|
9028
|
+
|
|
8833
9029
|
/* Open cell: icon link to the row's record (touch-sized hit area) */
|
|
8834
9030
|
.dndev-table-open-link {
|
|
8835
9031
|
display: inline-flex;
|
|
@@ -8933,41 +9129,117 @@ input[type='number'] {
|
|
|
8933
9129
|
display: none;
|
|
8934
9130
|
}
|
|
8935
9131
|
|
|
8936
|
-
/*
|
|
8937
|
-
|
|
8938
|
-
/* One outlined control (e-commerce standard, e.g. Shopify Dawn): borderless − / +
|
|
8939
|
-
buttons around a centred, tabular quantity. Same height and radius as buttons. */
|
|
9132
|
+
/* Reserve the complete footprint, even when zero is presented as one large +. */
|
|
8940
9133
|
.dndev-quantity-stepper {
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
9134
|
+
--quantity-target: max(var(--touch-target), 44px);
|
|
9135
|
+
/* Include both icon states, padding and inherited text BEFORE placing items.
|
|
9136
|
+
Auto rows otherwise grow for the larger collapsed icon, then shrink on expand. */
|
|
9137
|
+
--quantity-cell: max(
|
|
9138
|
+
var(--quantity-target),
|
|
9139
|
+
calc(max(var(--icon-md), var(--quantity-target) * 0.6, 1lh) + 2 * var(--gap-sm))
|
|
9140
|
+
);
|
|
9141
|
+
display: inline-grid;
|
|
9142
|
+
grid-template-columns: var(--quantity-cell) minmax(var(--quantity-cell), 1fr) var(--quantity-cell);
|
|
9143
|
+
grid-template-rows: var(--quantity-cell);
|
|
9144
|
+
inline-size: calc(3 * var(--quantity-cell));
|
|
9145
|
+
min-inline-size: calc(3 * var(--quantity-cell));
|
|
8944
9146
|
border: var(--border-hairline) solid var(--border);
|
|
8945
9147
|
border-radius: var(--radius-interactive);
|
|
8946
9148
|
background: var(--interactive);
|
|
8947
9149
|
color: var(--foreground);
|
|
8948
9150
|
}
|
|
8949
9151
|
.dndev-quantity-stepper[data-full-width] {
|
|
8950
|
-
display:
|
|
8951
|
-
|
|
9152
|
+
display: grid;
|
|
9153
|
+
inline-size: 100%;
|
|
8952
9154
|
}
|
|
8953
9155
|
.dndev-quantity-stepper[data-disabled] {
|
|
8954
9156
|
opacity: 0.6;
|
|
8955
9157
|
}
|
|
8956
|
-
.dndev-quantity-stepper >
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
min-height: 0;
|
|
9158
|
+
.dndev-quantity-stepper > button,.dndev-quantity-stepper > input {
|
|
9159
|
+
min-inline-size: var(--quantity-target);
|
|
9160
|
+
min-block-size: var(--quantity-target);
|
|
8960
9161
|
border: none;
|
|
8961
9162
|
border-radius: inherit;
|
|
8962
9163
|
background: transparent;
|
|
9164
|
+
color: inherit;
|
|
9165
|
+
font: inherit;
|
|
9166
|
+
touch-action: manipulation;
|
|
8963
9167
|
}
|
|
9168
|
+
:is(.dndev-quantity-stepper > button,.dndev-quantity-stepper > input):focus-visible {
|
|
9169
|
+
outline: none;
|
|
9170
|
+
box-shadow: var(--shadow-focus);
|
|
9171
|
+
z-index: 1;
|
|
9172
|
+
}
|
|
9173
|
+
:is(.dndev-quantity-stepper > button,.dndev-quantity-stepper > input):disabled {
|
|
9174
|
+
cursor: not-allowed;
|
|
9175
|
+
opacity: 0.6;
|
|
9176
|
+
}
|
|
9177
|
+
.dndev-quantity-stepper > button {
|
|
9178
|
+
display: flex;
|
|
9179
|
+
align-items: center;
|
|
9180
|
+
justify-content: center;
|
|
9181
|
+
padding: var(--gap-sm);
|
|
9182
|
+
cursor: pointer;
|
|
9183
|
+
transition: background-color var(--transition-fast);
|
|
9184
|
+
/* Press-and-hold repeats: no text selection or touch callout on long press. */
|
|
9185
|
+
-moz-user-select: none;
|
|
9186
|
+
user-select: none;
|
|
9187
|
+
-webkit-user-select: none;
|
|
9188
|
+
-webkit-touch-callout: none;
|
|
9189
|
+
}
|
|
9190
|
+
:is(.dndev-quantity-stepper > button):hover:not(:disabled) {
|
|
9191
|
+
background: var(--muted);
|
|
9192
|
+
}
|
|
9193
|
+
:is(.dndev-quantity-stepper > button) > svg {
|
|
9194
|
+
inline-size: var(--icon-md);
|
|
9195
|
+
block-size: var(--icon-md);
|
|
9196
|
+
}
|
|
9197
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-decrement {
|
|
9198
|
+
grid-area: 1 / 1;
|
|
9199
|
+
}
|
|
9200
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-value {
|
|
9201
|
+
grid-area: 1 / 2;
|
|
9202
|
+
}
|
|
9203
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-increment {
|
|
9204
|
+
grid-area: 1 / 3;
|
|
9205
|
+
}
|
|
9206
|
+
.dndev-quantity-stepper[data-vertical] {
|
|
9207
|
+
grid-template-columns: minmax(var(--quantity-cell), 1fr);
|
|
9208
|
+
grid-template-rows: repeat(3, var(--quantity-cell));
|
|
9209
|
+
inline-size: var(--quantity-cell);
|
|
9210
|
+
min-inline-size: var(--quantity-cell);
|
|
9211
|
+
}
|
|
9212
|
+
.dndev-quantity-stepper[data-vertical][data-full-width] {
|
|
9213
|
+
inline-size: 100%;
|
|
9214
|
+
}
|
|
9215
|
+
.dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-increment {
|
|
9216
|
+
grid-area: 1 / 1;
|
|
9217
|
+
}
|
|
9218
|
+
.dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-value {
|
|
9219
|
+
grid-area: 2 / 1;
|
|
9220
|
+
}
|
|
9221
|
+
.dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-decrement {
|
|
9222
|
+
grid-area: 3 / 1;
|
|
9223
|
+
}
|
|
9224
|
+
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-value {
|
|
9225
|
+
visibility: hidden;
|
|
9226
|
+
pointer-events: none;
|
|
9227
|
+
}
|
|
9228
|
+
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment {
|
|
9229
|
+
grid-area: 1 / 1 / -1 / -1;
|
|
9230
|
+
}
|
|
9231
|
+
:is(.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment) > svg {
|
|
9232
|
+
inline-size: calc(var(--quantity-target) * 0.6);
|
|
9233
|
+
block-size: calc(var(--quantity-target) * 0.6);
|
|
9234
|
+
}
|
|
8964
9235
|
|
|
8965
9236
|
.dndev-quantity-stepper-value {
|
|
8966
|
-
|
|
9237
|
+
box-sizing: border-box;
|
|
8967
9238
|
display: flex;
|
|
8968
9239
|
align-items: center;
|
|
8969
9240
|
justify-content: center;
|
|
8970
|
-
|
|
9241
|
+
inline-size: 100%;
|
|
9242
|
+
min-inline-size: 0;
|
|
8971
9243
|
padding-inline: var(--gap-sm);
|
|
8972
9244
|
border: none;
|
|
8973
9245
|
background: none;
|
|
@@ -8976,21 +9248,14 @@ input[type='number'] {
|
|
|
8976
9248
|
font-weight: var(--font-weight-medium);
|
|
8977
9249
|
font-variant-numeric: tabular-nums;
|
|
8978
9250
|
text-align: center;
|
|
8979
|
-
}
|
|
8980
|
-
|
|
8981
|
-
.dndev-quantity-stepper-value:is(button) {
|
|
8982
|
-
cursor: pointer;
|
|
8983
|
-
}
|
|
8984
9251
|
|
|
8985
|
-
|
|
8986
|
-
text-decoration: underline;
|
|
8987
|
-
text-underline-offset: 0.2em;
|
|
8988
|
-
}
|
|
9252
|
+
}
|
|
8989
9253
|
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
9254
|
+
@media (prefers-reduced-motion: reduce) {
|
|
9255
|
+
.dndev-quantity-stepper > button {
|
|
9256
|
+
transition: none;
|
|
8993
9257
|
}
|
|
9258
|
+
}
|
|
8994
9259
|
|
|
8995
9260
|
/* packages/components/src/atomic/Tag/Tag.css */
|
|
8996
9261
|
|
|
@@ -9257,7 +9522,7 @@ input[type='number'] {
|
|
|
9257
9522
|
.dndev-toast-viewport {
|
|
9258
9523
|
position: fixed;
|
|
9259
9524
|
top: var(--gap-md);
|
|
9260
|
-
z-index:
|
|
9525
|
+
z-index: var(--z-toast);
|
|
9261
9526
|
display: flex;
|
|
9262
9527
|
flex-direction: column-reverse;
|
|
9263
9528
|
max-height: 100dvh;
|
|
@@ -9610,7 +9875,7 @@ input[type='number'] {
|
|
|
9610
9875
|
display: flex;
|
|
9611
9876
|
align-items: center;
|
|
9612
9877
|
gap: var(--gap-sm);
|
|
9613
|
-
padding: var(--gap-
|
|
9878
|
+
padding: var(--gap-sm) var(--gap-sm);
|
|
9614
9879
|
border-radius: var(--radius-interactive);
|
|
9615
9880
|
cursor: pointer;
|
|
9616
9881
|
transition:
|
|
@@ -12273,10 +12538,20 @@ main[role='main'][data-routing-animation='none'] {
|
|
|
12273
12538
|
grid-template-rows: var(--header-height) 1fr auto;
|
|
12274
12539
|
}
|
|
12275
12540
|
|
|
12276
|
-
/*
|
|
12541
|
+
/* No footer rendered (app.footer: null): no footer row, main takes the space */
|
|
12542
|
+
.dndev-layout:not(:has(> footer)) {
|
|
12543
|
+
grid-template-areas:
|
|
12544
|
+
'header header'
|
|
12545
|
+
'sidebar main';
|
|
12546
|
+
grid-template-rows: var(--header-height) 1fr;
|
|
12547
|
+
}
|
|
12548
|
+
|
|
12549
|
+
/* Footer inside main: spacing + sizing (slotted mode only). The gap sits on the page
|
|
12550
|
+
above it: the footer's own block-start margin is `auto` (pinned to the bottom). */
|
|
12551
|
+
main[role='main'] > :has(+ footer[role='contentinfo']:not([data-custom])) {
|
|
12552
|
+
margin-block-end: var(--gap-lg);
|
|
12553
|
+
}
|
|
12277
12554
|
main[role='main'] > footer[role='contentinfo']:not([data-custom]) {
|
|
12278
|
-
margin-top: var(--gap-lg);
|
|
12279
|
-
flex-shrink: 0;
|
|
12280
12555
|
height: auto;
|
|
12281
12556
|
}
|
|
12282
12557
|
main[role='main'] > footer[role='contentinfo']:not([data-custom]) > * {
|
|
@@ -12637,11 +12912,20 @@ main[role='main'] {
|
|
|
12637
12912
|
padding: 0;
|
|
12638
12913
|
contain: layout style;
|
|
12639
12914
|
|
|
12640
|
-
/*
|
|
12915
|
+
/* The page (first child, or the one after breadcrumbs) grows to fill the space and never
|
|
12916
|
+
shrinks (the scroll container owns overflow). Only the page: a footer rendered inside
|
|
12917
|
+
main keeps its own height. */
|
|
12641
12918
|
}
|
|
12642
|
-
main[role='main'] >
|
|
12919
|
+
main[role='main'] > :first-child:not(.breadcrumbs-container,footer),main[role='main'] > .breadcrumbs-container + :not(footer) {
|
|
12643
12920
|
flex: 1 0 auto;
|
|
12644
12921
|
}
|
|
12922
|
+
/* Footer inside main: always at the bottom, even while the page is not there yet
|
|
12923
|
+
(a Suspense boundary streaming in leaves only a hidden placeholder): main stays
|
|
12924
|
+
empty above it, nothing shifts when the page arrives. */
|
|
12925
|
+
main[role='main'] > footer {
|
|
12926
|
+
flex: 0 0 auto;
|
|
12927
|
+
margin-block-start: auto;
|
|
12928
|
+
}
|
|
12645
12929
|
|
|
12646
12930
|
/* Footer: Full width by default, app presets start after sidebar */
|
|
12647
12931
|
/* box-sizing: border-box ensures borders are included in height */
|
|
@@ -13284,6 +13568,39 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
13284
13568
|
border-radius: 0;
|
|
13285
13569
|
}
|
|
13286
13570
|
|
|
13571
|
+
/* HeaderMenu - controls inline from laptop up, hamburger below */
|
|
13572
|
+
|
|
13573
|
+
/* packages/ui/src/components/layout/components/header/HeaderMenu.css */
|
|
13574
|
+
|
|
13575
|
+
/* HeaderMenu: controls inline from laptop up, hamburger below.
|
|
13576
|
+
1024px = BREAKPOINT_THRESHOLDS.laptop, the useBreakpoint('isMobileOrTablet') split
|
|
13577
|
+
(CSS variables don't work in @media). Both are in the server HTML: no hydration swap. */
|
|
13578
|
+
|
|
13579
|
+
/* Inline controls join the parent row (its gap and alignment) */
|
|
13580
|
+
.dndev-header-menu-inline {
|
|
13581
|
+
display: contents;
|
|
13582
|
+
}
|
|
13583
|
+
|
|
13584
|
+
.dndev-header-menu-burger {
|
|
13585
|
+
display: none;
|
|
13586
|
+
}
|
|
13587
|
+
|
|
13588
|
+
/* Burger panel: above the header it drops from, below the dialogs (--z-modal) and
|
|
13589
|
+
menus (--z-tooltip) its controls open */
|
|
13590
|
+
.dndev-header-menu-panel {
|
|
13591
|
+
z-index: calc(var(--z-header) + 1);
|
|
13592
|
+
}
|
|
13593
|
+
|
|
13594
|
+
@media (width < 1024px) {
|
|
13595
|
+
.dndev-header-menu-inline {
|
|
13596
|
+
display: none;
|
|
13597
|
+
}
|
|
13598
|
+
|
|
13599
|
+
.dndev-header-menu-burger {
|
|
13600
|
+
display: contents;
|
|
13601
|
+
}
|
|
13602
|
+
}
|
|
13603
|
+
|
|
13287
13604
|
/* AppIcon - header icon styling */
|
|
13288
13605
|
.app-icon-header {
|
|
13289
13606
|
display: inline-flex;
|