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