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