@donotdev/ui 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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 +302 -51
- package/dist/dndev.css +304 -51
- 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 +301 -50
- package/dist/symbol-index.json +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;
|
|
@@ -4076,6 +4076,16 @@ em {
|
|
|
4076
4076
|
transition: opacity var(--dur-fast) var(--ease-in-out);
|
|
4077
4077
|
}
|
|
4078
4078
|
|
|
4079
|
+
/* <button> the component renders (showIcon, or non-element trigger): strip UA chrome */
|
|
4080
|
+
.dndev-collapsible-trigger--button {
|
|
4081
|
+
background: none;
|
|
4082
|
+
border: none;
|
|
4083
|
+
padding: 0;
|
|
4084
|
+
font: inherit;
|
|
4085
|
+
color: inherit;
|
|
4086
|
+
text-align: start;
|
|
4087
|
+
}
|
|
4088
|
+
|
|
4079
4089
|
.dndev-collapsible-trigger:hover {
|
|
4080
4090
|
opacity: var(--opacity-strong);
|
|
4081
4091
|
}
|
|
@@ -4239,7 +4249,7 @@ em {
|
|
|
4239
4249
|
height: 100%;
|
|
4240
4250
|
display: flex;
|
|
4241
4251
|
align-items: center;
|
|
4242
|
-
gap:
|
|
4252
|
+
gap: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token; must match computeTrailingPad() in index.tsx */
|
|
4243
4253
|
z-index: 1;
|
|
4244
4254
|
pointer-events: none; /* pass clicks through to input by default */
|
|
4245
4255
|
}
|
|
@@ -4302,10 +4312,10 @@ em {
|
|
|
4302
4312
|
display: flex;
|
|
4303
4313
|
flex-wrap: wrap;
|
|
4304
4314
|
align-items: center;
|
|
4305
|
-
gap:
|
|
4315
|
+
gap: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
4306
4316
|
border: var(--border-hairline) solid var(--line-2);
|
|
4307
4317
|
border-radius: var(--radius-interactive);
|
|
4308
|
-
padding:
|
|
4318
|
+
padding: 4px; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
4309
4319
|
padding-inline-end: var(--combobox-pad-end);
|
|
4310
4320
|
min-height: var(--touch-target);
|
|
4311
4321
|
cursor: text;
|
|
@@ -4330,7 +4340,7 @@ em {
|
|
|
4330
4340
|
flex: 1 1 80px;
|
|
4331
4341
|
min-width: 80px;
|
|
4332
4342
|
height: auto;
|
|
4333
|
-
padding: var(--gap-
|
|
4343
|
+
padding: 4px var(--gap-sm); /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
4334
4344
|
}
|
|
4335
4345
|
|
|
4336
4346
|
/* ──────────────────────────────────────────────────
|
|
@@ -4377,7 +4387,7 @@ em {
|
|
|
4377
4387
|
.dndev-combobox-option-content {
|
|
4378
4388
|
display: flex;
|
|
4379
4389
|
flex-direction: column;
|
|
4380
|
-
gap: var(--gap-
|
|
4390
|
+
gap: var(--gap-sm);
|
|
4381
4391
|
flex: 1;
|
|
4382
4392
|
}
|
|
4383
4393
|
|
|
@@ -4394,7 +4404,7 @@ em {
|
|
|
4394
4404
|
.dndev-combobox-option-count {
|
|
4395
4405
|
font-size: var(--font-size-xs);
|
|
4396
4406
|
color: var(--muted-foreground);
|
|
4397
|
-
margin-inline-start: var(--gap-
|
|
4407
|
+
margin-inline-start: var(--gap-sm);
|
|
4398
4408
|
flex-shrink: 0;
|
|
4399
4409
|
}
|
|
4400
4410
|
|
|
@@ -6177,13 +6187,56 @@ input[type='number'] {
|
|
|
6177
6187
|
cursor: default;
|
|
6178
6188
|
display: inline-flex;
|
|
6179
6189
|
align-items: center;
|
|
6180
|
-
gap: var(--gap-
|
|
6190
|
+
gap: var(--gap-sm);
|
|
6181
6191
|
}
|
|
6182
6192
|
|
|
6183
6193
|
.dndev-floating-fieldset[data-disabled='true'] .dndev-floating-legend {
|
|
6184
6194
|
color: var(--muted-foreground);
|
|
6185
6195
|
}
|
|
6186
6196
|
|
|
6197
|
+
/* Help (i) after the label: the label truncates, the button never does */
|
|
6198
|
+
.dndev-floating-legend[data-info] {
|
|
6199
|
+
display: flex;
|
|
6200
|
+
align-items: center;
|
|
6201
|
+
gap: calc(var(--gap-sm) / 2);
|
|
6202
|
+
}
|
|
6203
|
+
|
|
6204
|
+
.dndev-floating-legend[data-info] > label {
|
|
6205
|
+
display: block;
|
|
6206
|
+
min-width: 0;
|
|
6207
|
+
overflow: hidden;
|
|
6208
|
+
text-overflow: ellipsis;
|
|
6209
|
+
}
|
|
6210
|
+
|
|
6211
|
+
.dndev-field-info {
|
|
6212
|
+
display: inline-flex;
|
|
6213
|
+
flex-shrink: 0;
|
|
6214
|
+
align-items: center;
|
|
6215
|
+
justify-content: center;
|
|
6216
|
+
/* Larger hit area than the icon, without growing the legend */
|
|
6217
|
+
padding: calc(var(--gap-sm) / 2);
|
|
6218
|
+
margin: calc(var(--gap-sm) / -2);
|
|
6219
|
+
border: none;
|
|
6220
|
+
border-radius: var(--radius-full);
|
|
6221
|
+
background: none;
|
|
6222
|
+
color: var(--muted-foreground);
|
|
6223
|
+
cursor: help;
|
|
6224
|
+
}
|
|
6225
|
+
|
|
6226
|
+
.dndev-field-info:hover,
|
|
6227
|
+
.dndev-field-info:focus-visible {
|
|
6228
|
+
color: var(--foreground);
|
|
6229
|
+
}
|
|
6230
|
+
|
|
6231
|
+
.dndev-field-info:focus-visible {
|
|
6232
|
+
outline: var(--border-hairline) solid var(--ring);
|
|
6233
|
+
}
|
|
6234
|
+
|
|
6235
|
+
.dndev-field-info svg {
|
|
6236
|
+
width: 1.25em;
|
|
6237
|
+
height: 1.25em;
|
|
6238
|
+
}
|
|
6239
|
+
|
|
6187
6240
|
/* Disable truncation when explicitly set to false */
|
|
6188
6241
|
.dndev-floating-legend[data-truncate='false'] {
|
|
6189
6242
|
max-width: none;
|
|
@@ -6503,7 +6556,7 @@ input[type='number'] {
|
|
|
6503
6556
|
/* packages/components/src/atomic/PasswordInput/PasswordInput.css */
|
|
6504
6557
|
|
|
6505
6558
|
.dndev-password-input-with-toggle {
|
|
6506
|
-
padding-inline-end: calc(var(--gap-
|
|
6559
|
+
padding-inline-end: calc(var(--gap-lg) + var(--gap-md)) !important;
|
|
6507
6560
|
}
|
|
6508
6561
|
|
|
6509
6562
|
/* Eye icon toggle - ALWAYS at end, cannot be overridden */
|
|
@@ -6516,7 +6569,7 @@ input[type='number'] {
|
|
|
6516
6569
|
background: none !important;
|
|
6517
6570
|
border: none !important;
|
|
6518
6571
|
cursor: pointer !important;
|
|
6519
|
-
padding: var(--gap-
|
|
6572
|
+
padding: var(--gap-sm) !important;
|
|
6520
6573
|
display: flex !important;
|
|
6521
6574
|
align-items: center !important;
|
|
6522
6575
|
opacity: var(--opacity-muted) !important;
|
|
@@ -6577,7 +6630,7 @@ input[type='number'] {
|
|
|
6577
6630
|
background: none;
|
|
6578
6631
|
border: none;
|
|
6579
6632
|
cursor: pointer;
|
|
6580
|
-
padding:
|
|
6633
|
+
padding: 0.25rem; /* 4px: tighter than --gap-sm (8px), the smallest gap token */
|
|
6581
6634
|
margin-inline-start: var(--gap-sm, 0.5rem);
|
|
6582
6635
|
display: inline-flex;
|
|
6583
6636
|
align-items: center;
|
|
@@ -6902,7 +6955,7 @@ input[type='number'] {
|
|
|
6902
6955
|
}
|
|
6903
6956
|
|
|
6904
6957
|
.dndev-range-input-separator {
|
|
6905
|
-
padding-inline: var(--gap-
|
|
6958
|
+
padding-inline: var(--gap-sm);
|
|
6906
6959
|
}
|
|
6907
6960
|
|
|
6908
6961
|
/* packages/components/src/atomic/Rating/Rating.css */
|
|
@@ -8396,6 +8449,107 @@ input[type='number'] {
|
|
|
8396
8449
|
min-width: var(--touch-target);
|
|
8397
8450
|
}
|
|
8398
8451
|
|
|
8452
|
+
.dndev-swipe-action {
|
|
8453
|
+
--swipe-action-width: 5.5rem;
|
|
8454
|
+
display: flex;
|
|
8455
|
+
min-inline-size: 0;
|
|
8456
|
+
}
|
|
8457
|
+
|
|
8458
|
+
.dndev-swipe-action-viewport {
|
|
8459
|
+
display: flex;
|
|
8460
|
+
flex: 1;
|
|
8461
|
+
min-inline-size: 0;
|
|
8462
|
+
overflow-x: auto;
|
|
8463
|
+
overflow-y: hidden;
|
|
8464
|
+
scroll-snap-type: x mandatory;
|
|
8465
|
+
overscroll-behavior-x: contain;
|
|
8466
|
+
scrollbar-width: none;
|
|
8467
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
8468
|
+
}
|
|
8469
|
+
|
|
8470
|
+
.dndev-swipe-action-viewport::-webkit-scrollbar {
|
|
8471
|
+
display: none;
|
|
8472
|
+
}
|
|
8473
|
+
|
|
8474
|
+
.dndev-swipe-action[data-disabled] .dndev-swipe-action-viewport,
|
|
8475
|
+
.dndev-swipe-action-viewport[data-input-blocked] {
|
|
8476
|
+
overflow-x: hidden;
|
|
8477
|
+
}
|
|
8478
|
+
|
|
8479
|
+
.dndev-swipe-action-content {
|
|
8480
|
+
flex: 0 0 100%;
|
|
8481
|
+
min-inline-size: 0;
|
|
8482
|
+
min-block-size: 44px;
|
|
8483
|
+
scroll-snap-align: start;
|
|
8484
|
+
background: var(--background);
|
|
8485
|
+
}
|
|
8486
|
+
|
|
8487
|
+
/* Scope to descendants, never a focusable cart/list ancestor. Touch-action is
|
|
8488
|
+
resolved before pointerdown, so controls cannot start horizontal scrolling. */
|
|
8489
|
+
.dndev-swipe-action-content :is(
|
|
8490
|
+
button, a, input, textarea, select, label, summary, [tabindex],
|
|
8491
|
+
[contenteditable]:not([contenteditable="false"]), [draggable="true"],
|
|
8492
|
+
[role="button"], [role="link"], [role="checkbox"], [role="switch"],
|
|
8493
|
+
[role="radio"], [role="slider"], [role="spinbutton"], [role="textbox"],
|
|
8494
|
+
[role="combobox"], [role="searchbox"], [role="menuitem"],
|
|
8495
|
+
[role="menuitemcheckbox"], [role="menuitemradio"], [role="option"],
|
|
8496
|
+
[role="tab"], [role="treeitem"]
|
|
8497
|
+
) {
|
|
8498
|
+
touch-action: pan-y pinch-zoom;
|
|
8499
|
+
}
|
|
8500
|
+
|
|
8501
|
+
.dndev-swipe-action-toggle,
|
|
8502
|
+
.dndev-swipe-action-delete {
|
|
8503
|
+
display: flex;
|
|
8504
|
+
align-items: center;
|
|
8505
|
+
justify-content: center;
|
|
8506
|
+
min-inline-size: 44px;
|
|
8507
|
+
min-block-size: 44px;
|
|
8508
|
+
border: 0;
|
|
8509
|
+
font: inherit;
|
|
8510
|
+
cursor: pointer;
|
|
8511
|
+
touch-action: manipulation;
|
|
8512
|
+
}
|
|
8513
|
+
|
|
8514
|
+
.dndev-swipe-action-toggle {
|
|
8515
|
+
flex-shrink: 0;
|
|
8516
|
+
background: var(--background);
|
|
8517
|
+
color: var(--foreground);
|
|
8518
|
+
}
|
|
8519
|
+
|
|
8520
|
+
/* Native overflow clips the closed action and progressively reveals its paint.
|
|
8521
|
+
Inert/disabled/ARIA state gates interaction until the open endpoint. */
|
|
8522
|
+
.dndev-swipe-action-delete {
|
|
8523
|
+
flex: 0 0 var(--swipe-action-width);
|
|
8524
|
+
scroll-snap-align: end;
|
|
8525
|
+
flex-direction: column;
|
|
8526
|
+
padding: var(--gap-sm);
|
|
8527
|
+
overflow-wrap: anywhere;
|
|
8528
|
+
background: var(--destructive);
|
|
8529
|
+
color: var(--destructive-foreground);
|
|
8530
|
+
}
|
|
8531
|
+
|
|
8532
|
+
.dndev-swipe-action svg {
|
|
8533
|
+
inline-size: var(--icon-md);
|
|
8534
|
+
block-size: var(--icon-md);
|
|
8535
|
+
flex-shrink: 0;
|
|
8536
|
+
}
|
|
8537
|
+
|
|
8538
|
+
.dndev-swipe-action button:focus-visible {
|
|
8539
|
+
outline: 2px solid var(--ring);
|
|
8540
|
+
outline-offset: -3px;
|
|
8541
|
+
}
|
|
8542
|
+
|
|
8543
|
+
.dndev-swipe-action button:disabled {
|
|
8544
|
+
cursor: default;
|
|
8545
|
+
}
|
|
8546
|
+
|
|
8547
|
+
@media (prefers-reduced-motion: reduce) {
|
|
8548
|
+
.dndev-swipe-action-viewport {
|
|
8549
|
+
scroll-behavior: auto;
|
|
8550
|
+
}
|
|
8551
|
+
}
|
|
8552
|
+
|
|
8399
8553
|
/* packages/components/src/atomic/Switch/Switch.css */
|
|
8400
8554
|
|
|
8401
8555
|
.dndev-switch {
|
|
@@ -8567,7 +8721,7 @@ input[type='number'] {
|
|
|
8567
8721
|
|
|
8568
8722
|
.dndev-table-filter-row .dndev-table-head {
|
|
8569
8723
|
background-color: var(--muted);
|
|
8570
|
-
padding: var(--gap-
|
|
8724
|
+
padding: var(--gap-sm);
|
|
8571
8725
|
height: auto;
|
|
8572
8726
|
min-height: auto;
|
|
8573
8727
|
}
|
|
@@ -8781,7 +8935,7 @@ input[type='number'] {
|
|
|
8781
8935
|
}
|
|
8782
8936
|
|
|
8783
8937
|
.dndev-table-bulk-bar {
|
|
8784
|
-
padding: var(--gap-
|
|
8938
|
+
padding: var(--gap-sm) var(--gap-sm);
|
|
8785
8939
|
border: 1px solid var(--border);
|
|
8786
8940
|
background-color: var(--muted);
|
|
8787
8941
|
}
|
|
@@ -8795,7 +8949,7 @@ input[type='number'] {
|
|
|
8795
8949
|
background-color: transparent;
|
|
8796
8950
|
border: 1px solid transparent;
|
|
8797
8951
|
border-radius: var(--radius-sm);
|
|
8798
|
-
padding: var(--gap-
|
|
8952
|
+
padding: var(--gap-sm);
|
|
8799
8953
|
}
|
|
8800
8954
|
|
|
8801
8955
|
.dndev-table-cell-editor:hover {
|
|
@@ -8824,11 +8978,20 @@ input[type='number'] {
|
|
|
8824
8978
|
background-color: color-mix(in oklab, var(--primary) 12%, transparent);
|
|
8825
8979
|
}
|
|
8826
8980
|
|
|
8827
|
-
/* Value that does not parse: the save will reject it */
|
|
8981
|
+
/* Value that does not parse, or breaks a rule (cellErrors): the save will reject it */
|
|
8828
8982
|
.dndev-table-cell[data-invalid='true'] .dndev-table-cell-editor {
|
|
8829
8983
|
border-color: var(--destructive);
|
|
8830
8984
|
}
|
|
8831
8985
|
|
|
8986
|
+
/* Message of a rule the cell value breaks (cellErrors) */
|
|
8987
|
+
.dndev-table-cell-error {
|
|
8988
|
+
display: block;
|
|
8989
|
+
margin-block-start: var(--gap-sm);
|
|
8990
|
+
color: var(--destructive);
|
|
8991
|
+
font-size: var(--font-size-xs);
|
|
8992
|
+
line-height: 1.3;
|
|
8993
|
+
}
|
|
8994
|
+
|
|
8832
8995
|
/* Open cell: icon link to the row's record (touch-sized hit area) */
|
|
8833
8996
|
.dndev-table-open-link {
|
|
8834
8997
|
display: inline-flex;
|
|
@@ -8932,41 +9095,117 @@ input[type='number'] {
|
|
|
8932
9095
|
display: none;
|
|
8933
9096
|
}
|
|
8934
9097
|
|
|
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. */
|
|
9098
|
+
/* Reserve the complete footprint, even when zero is presented as one large +. */
|
|
8939
9099
|
.dndev-quantity-stepper {
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
9100
|
+
--quantity-target: max(var(--touch-target), 44px);
|
|
9101
|
+
/* Include both icon states, padding and inherited text BEFORE placing items.
|
|
9102
|
+
Auto rows otherwise grow for the larger collapsed icon, then shrink on expand. */
|
|
9103
|
+
--quantity-cell: max(
|
|
9104
|
+
var(--quantity-target),
|
|
9105
|
+
calc(max(var(--icon-md), var(--quantity-target) * 0.6, 1lh) + 2 * var(--gap-sm))
|
|
9106
|
+
);
|
|
9107
|
+
display: inline-grid;
|
|
9108
|
+
grid-template-columns: var(--quantity-cell) minmax(var(--quantity-cell), 1fr) var(--quantity-cell);
|
|
9109
|
+
grid-template-rows: var(--quantity-cell);
|
|
9110
|
+
inline-size: calc(3 * var(--quantity-cell));
|
|
9111
|
+
min-inline-size: calc(3 * var(--quantity-cell));
|
|
8943
9112
|
border: var(--border-hairline) solid var(--border);
|
|
8944
9113
|
border-radius: var(--radius-interactive);
|
|
8945
9114
|
background: var(--interactive);
|
|
8946
9115
|
color: var(--foreground);
|
|
8947
9116
|
}
|
|
8948
9117
|
.dndev-quantity-stepper[data-full-width] {
|
|
8949
|
-
display:
|
|
8950
|
-
|
|
9118
|
+
display: grid;
|
|
9119
|
+
inline-size: 100%;
|
|
8951
9120
|
}
|
|
8952
9121
|
.dndev-quantity-stepper[data-disabled] {
|
|
8953
9122
|
opacity: 0.6;
|
|
8954
9123
|
}
|
|
8955
|
-
.dndev-quantity-stepper >
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
min-height: 0;
|
|
9124
|
+
.dndev-quantity-stepper > button,.dndev-quantity-stepper > input {
|
|
9125
|
+
min-inline-size: var(--quantity-target);
|
|
9126
|
+
min-block-size: var(--quantity-target);
|
|
8959
9127
|
border: none;
|
|
8960
9128
|
border-radius: inherit;
|
|
8961
9129
|
background: transparent;
|
|
9130
|
+
color: inherit;
|
|
9131
|
+
font: inherit;
|
|
9132
|
+
touch-action: manipulation;
|
|
8962
9133
|
}
|
|
9134
|
+
:is(.dndev-quantity-stepper > button,.dndev-quantity-stepper > input):focus-visible {
|
|
9135
|
+
outline: none;
|
|
9136
|
+
box-shadow: var(--shadow-focus);
|
|
9137
|
+
z-index: 1;
|
|
9138
|
+
}
|
|
9139
|
+
:is(.dndev-quantity-stepper > button,.dndev-quantity-stepper > input):disabled {
|
|
9140
|
+
cursor: not-allowed;
|
|
9141
|
+
opacity: 0.6;
|
|
9142
|
+
}
|
|
9143
|
+
.dndev-quantity-stepper > button {
|
|
9144
|
+
display: flex;
|
|
9145
|
+
align-items: center;
|
|
9146
|
+
justify-content: center;
|
|
9147
|
+
padding: var(--gap-sm);
|
|
9148
|
+
cursor: pointer;
|
|
9149
|
+
transition: background-color var(--transition-fast);
|
|
9150
|
+
/* Press-and-hold repeats: no text selection or touch callout on long press. */
|
|
9151
|
+
-moz-user-select: none;
|
|
9152
|
+
user-select: none;
|
|
9153
|
+
-webkit-user-select: none;
|
|
9154
|
+
-webkit-touch-callout: none;
|
|
9155
|
+
}
|
|
9156
|
+
:is(.dndev-quantity-stepper > button):hover:not(:disabled) {
|
|
9157
|
+
background: var(--muted);
|
|
9158
|
+
}
|
|
9159
|
+
:is(.dndev-quantity-stepper > button) > svg {
|
|
9160
|
+
inline-size: var(--icon-md);
|
|
9161
|
+
block-size: var(--icon-md);
|
|
9162
|
+
}
|
|
9163
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-decrement {
|
|
9164
|
+
grid-area: 1 / 1;
|
|
9165
|
+
}
|
|
9166
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-value {
|
|
9167
|
+
grid-area: 1 / 2;
|
|
9168
|
+
}
|
|
9169
|
+
.dndev-quantity-stepper > .dndev-quantity-stepper-increment {
|
|
9170
|
+
grid-area: 1 / 3;
|
|
9171
|
+
}
|
|
9172
|
+
.dndev-quantity-stepper[data-vertical] {
|
|
9173
|
+
grid-template-columns: minmax(var(--quantity-cell), 1fr);
|
|
9174
|
+
grid-template-rows: repeat(3, var(--quantity-cell));
|
|
9175
|
+
inline-size: var(--quantity-cell);
|
|
9176
|
+
min-inline-size: var(--quantity-cell);
|
|
9177
|
+
}
|
|
9178
|
+
.dndev-quantity-stepper[data-vertical][data-full-width] {
|
|
9179
|
+
inline-size: 100%;
|
|
9180
|
+
}
|
|
9181
|
+
.dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-increment {
|
|
9182
|
+
grid-area: 1 / 1;
|
|
9183
|
+
}
|
|
9184
|
+
.dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-value {
|
|
9185
|
+
grid-area: 2 / 1;
|
|
9186
|
+
}
|
|
9187
|
+
.dndev-quantity-stepper[data-vertical] > .dndev-quantity-stepper-decrement {
|
|
9188
|
+
grid-area: 3 / 1;
|
|
9189
|
+
}
|
|
9190
|
+
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-value {
|
|
9191
|
+
visibility: hidden;
|
|
9192
|
+
pointer-events: none;
|
|
9193
|
+
}
|
|
9194
|
+
.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment {
|
|
9195
|
+
grid-area: 1 / 1 / -1 / -1;
|
|
9196
|
+
}
|
|
9197
|
+
:is(.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment) > svg {
|
|
9198
|
+
inline-size: calc(var(--quantity-target) * 0.6);
|
|
9199
|
+
block-size: calc(var(--quantity-target) * 0.6);
|
|
9200
|
+
}
|
|
8963
9201
|
|
|
8964
9202
|
.dndev-quantity-stepper-value {
|
|
8965
|
-
|
|
9203
|
+
box-sizing: border-box;
|
|
8966
9204
|
display: flex;
|
|
8967
9205
|
align-items: center;
|
|
8968
9206
|
justify-content: center;
|
|
8969
|
-
|
|
9207
|
+
inline-size: 100%;
|
|
9208
|
+
min-inline-size: 0;
|
|
8970
9209
|
padding-inline: var(--gap-sm);
|
|
8971
9210
|
border: none;
|
|
8972
9211
|
background: none;
|
|
@@ -8975,21 +9214,14 @@ input[type='number'] {
|
|
|
8975
9214
|
font-weight: var(--font-weight-medium);
|
|
8976
9215
|
font-variant-numeric: tabular-nums;
|
|
8977
9216
|
text-align: center;
|
|
8978
|
-
}
|
|
8979
|
-
|
|
8980
|
-
.dndev-quantity-stepper-value:is(button) {
|
|
8981
|
-
cursor: pointer;
|
|
8982
|
-
}
|
|
8983
9217
|
|
|
8984
|
-
|
|
8985
|
-
text-decoration: underline;
|
|
8986
|
-
text-underline-offset: 0.2em;
|
|
8987
|
-
}
|
|
9218
|
+
}
|
|
8988
9219
|
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
9220
|
+
@media (prefers-reduced-motion: reduce) {
|
|
9221
|
+
.dndev-quantity-stepper > button {
|
|
9222
|
+
transition: none;
|
|
8992
9223
|
}
|
|
9224
|
+
}
|
|
8993
9225
|
|
|
8994
9226
|
/* packages/components/src/atomic/Tag/Tag.css */
|
|
8995
9227
|
|
|
@@ -9256,7 +9488,7 @@ input[type='number'] {
|
|
|
9256
9488
|
.dndev-toast-viewport {
|
|
9257
9489
|
position: fixed;
|
|
9258
9490
|
top: var(--gap-md);
|
|
9259
|
-
z-index:
|
|
9491
|
+
z-index: var(--z-toast);
|
|
9260
9492
|
display: flex;
|
|
9261
9493
|
flex-direction: column-reverse;
|
|
9262
9494
|
max-height: 100dvh;
|
|
@@ -9609,7 +9841,7 @@ input[type='number'] {
|
|
|
9609
9841
|
display: flex;
|
|
9610
9842
|
align-items: center;
|
|
9611
9843
|
gap: var(--gap-sm);
|
|
9612
|
-
padding: var(--gap-
|
|
9844
|
+
padding: var(--gap-sm) var(--gap-sm);
|
|
9613
9845
|
border-radius: var(--radius-interactive);
|
|
9614
9846
|
cursor: pointer;
|
|
9615
9847
|
transition:
|
|
@@ -12272,10 +12504,20 @@ main[role='main'][data-routing-animation='none'] {
|
|
|
12272
12504
|
grid-template-rows: var(--header-height) 1fr auto;
|
|
12273
12505
|
}
|
|
12274
12506
|
|
|
12275
|
-
/*
|
|
12507
|
+
/* No footer rendered (app.footer: null): no footer row, main takes the space */
|
|
12508
|
+
.dndev-layout:not(:has(> footer)) {
|
|
12509
|
+
grid-template-areas:
|
|
12510
|
+
'header header'
|
|
12511
|
+
'sidebar main';
|
|
12512
|
+
grid-template-rows: var(--header-height) 1fr;
|
|
12513
|
+
}
|
|
12514
|
+
|
|
12515
|
+
/* Footer inside main: spacing + sizing (slotted mode only). The gap sits on the page
|
|
12516
|
+
above it: the footer's own block-start margin is `auto` (pinned to the bottom). */
|
|
12517
|
+
main[role='main'] > :has(+ footer[role='contentinfo']:not([data-custom])) {
|
|
12518
|
+
margin-block-end: var(--gap-lg);
|
|
12519
|
+
}
|
|
12276
12520
|
main[role='main'] > footer[role='contentinfo']:not([data-custom]) {
|
|
12277
|
-
margin-top: var(--gap-lg);
|
|
12278
|
-
flex-shrink: 0;
|
|
12279
12521
|
height: auto;
|
|
12280
12522
|
}
|
|
12281
12523
|
main[role='main'] > footer[role='contentinfo']:not([data-custom]) > * {
|
|
@@ -12636,11 +12878,20 @@ main[role='main'] {
|
|
|
12636
12878
|
padding: 0;
|
|
12637
12879
|
contain: layout style;
|
|
12638
12880
|
|
|
12639
|
-
/*
|
|
12881
|
+
/* The page (first child, or the one after breadcrumbs) grows to fill the space and never
|
|
12882
|
+
shrinks (the scroll container owns overflow). Only the page: a footer rendered inside
|
|
12883
|
+
main keeps its own height. */
|
|
12640
12884
|
}
|
|
12641
|
-
main[role='main'] >
|
|
12885
|
+
main[role='main'] > :first-child:not(.breadcrumbs-container,footer),main[role='main'] > .breadcrumbs-container + :not(footer) {
|
|
12642
12886
|
flex: 1 0 auto;
|
|
12643
12887
|
}
|
|
12888
|
+
/* Footer inside main: always at the bottom, even while the page is not there yet
|
|
12889
|
+
(a Suspense boundary streaming in leaves only a hidden placeholder): main stays
|
|
12890
|
+
empty above it, nothing shifts when the page arrives. */
|
|
12891
|
+
main[role='main'] > footer {
|
|
12892
|
+
flex: 0 0 auto;
|
|
12893
|
+
margin-block-start: auto;
|
|
12894
|
+
}
|
|
12644
12895
|
|
|
12645
12896
|
/* Footer: Full width by default, app presets start after sidebar */
|
|
12646
12897
|
/* box-sizing: border-box ensures borders are included in height */
|
|
@@ -13358,7 +13609,9 @@ footer[role='contentinfo']:not([data-custom]) a:not(.dndev-interactive):hover {
|
|
|
13358
13609
|
.app-branding[data-display='auto'] .app-branding-title {
|
|
13359
13610
|
display: inline;
|
|
13360
13611
|
}
|
|
13361
|
-
/* 2.
|
|
13612
|
+
/* 2. Font catalogue from @fontsource (self-hosted, never Google Fonts). Must match
|
|
13613
|
+
FONT_WEIGHTS in packages/core/config/constants.js (a test guards it). The Vite build
|
|
13614
|
+
keeps only the families the app's theme renders text in (FontPreloadPlugin). */
|
|
13362
13615
|
/* inter-cyrillic-ext-300-normal */
|
|
13363
13616
|
@font-face {
|
|
13364
13617
|
font-family: 'Inter';
|