@donotdev/ui 0.0.18 → 0.0.19
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/components/auth/AuthMenu.d.ts.map +1 -1
- package/dist/components/auth/AuthMenu.js +8 -3
- package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityDisplayRenderer.js +4 -1
- package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityFormRenderer.js +2 -1
- package/dist/crud/components/EntityList.d.ts.map +1 -1
- package/dist/crud/components/EntityList.js +2 -0
- package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
- package/dist/crud/components/EntityWorkflow.js +4 -1
- package/dist/dndev.css +82 -38
- package/dist/index.js +4 -4
- package/dist/internal/common/RouteErrorFallback.js +1 -1
- package/dist/internal/devtools/DebugTools.d.ts.map +1 -1
- package/dist/internal/devtools/DebugTools.js +7 -2
- package/dist/internal/initializers/NextJsStoresInitializer.d.ts.map +1 -1
- package/dist/internal/initializers/NextJsStoresInitializer.js +8 -1
- package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
- package/dist/providers/NextJsAppProviders.js +14 -11
- package/dist/routing/DnDevNavigationMenu.d.ts.map +1 -1
- package/dist/routing/DnDevNavigationMenu.js +3 -2
- package/dist/routing/GoToWrapper.d.ts.map +1 -1
- package/dist/routing/GoToWrapper.js +7 -0
- package/dist/routing/Link.d.ts.map +1 -1
- package/dist/routing/Link.js +2 -1
- package/dist/routing/hooks/hooks.next.js +1 -1
- package/dist/routing/hooks/useLocation.next.d.ts +1 -1
- package/dist/routing/hooks/useLocation.next.d.ts.map +1 -1
- package/dist/routing/hooks/useLocation.next.js +2 -1
- package/dist/routing/hooks/useParams.next.d.ts.map +1 -1
- package/dist/routing/hooks/useParams.next.js +4 -1
- package/dist/routing/hooks/useRedirectGuard.next.js +3 -3
- package/dist/styles/index.css +82 -38
- package/dist/utils/assetResolver.d.ts +6 -0
- package/dist/utils/assetResolver.d.ts.map +1 -1
- package/dist/utils/assetResolver.js +9 -3
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthMenu.d.ts","sourceRoot":"","sources":["../../../src/components/auth/AuthMenu.tsx"],"names":[],"mappings":"AA0EA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAEvD,OAAO,EAML,OAAO,EACR,MAAM,sBAAsB,CAAC;AAc9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AA8D3C;;;;;;;;;GASG;AACH,MAAM,WAAW,kBAAkB;IACjC,sBAAsB;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACtD,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,8DAA8D;IAC9D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;IAEjD,sBAAsB;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAEnC,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,aAAa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e,QAAQ,CAAC"}
|
|
@@ -150,7 +150,11 @@ const getIcon = (iconName) => {
|
|
|
150
150
|
if (typeof iconName === 'function')
|
|
151
151
|
return iconName;
|
|
152
152
|
const cleanIconName = iconName.replace(/['"]/g, '');
|
|
153
|
-
|
|
153
|
+
const resolved = LucideIcons[cleanIconName];
|
|
154
|
+
if (!resolved && process.env.NODE_ENV === 'development') {
|
|
155
|
+
console.warn(`[AuthMenu] Icon name "${cleanIconName}" not found in Lucide icons, falling back to Settings.`);
|
|
156
|
+
}
|
|
157
|
+
return resolved || Settings;
|
|
154
158
|
};
|
|
155
159
|
export const AuthMenu = ({ loginPath, display = DISPLAY.AUTO, 'no-tooltip': noTooltip = false, customItems = [], className, style, }) => {
|
|
156
160
|
const { t } = useTranslation('dndev');
|
|
@@ -164,6 +168,8 @@ export const AuthMenu = ({ loginPath, display = DISPLAY.AUTO, 'no-tooltip': noTo
|
|
|
164
168
|
const navigate = useNavigate();
|
|
165
169
|
const profilePath = authConfig.profilePath;
|
|
166
170
|
const configMenuItems = authConfig.authMenuItems || [];
|
|
171
|
+
// Extract role from user (declared early so getUserTooltip can reference it)
|
|
172
|
+
const role = user?.role;
|
|
167
173
|
// Account deletion flow - managed by useDeleteAccount hook
|
|
168
174
|
const deletion = useDeleteAccount();
|
|
169
175
|
/**
|
|
@@ -291,6 +297,7 @@ export const AuthMenu = ({ loginPath, display = DISPLAY.AUTO, 'no-tooltip': noTo
|
|
|
291
297
|
navigationItems,
|
|
292
298
|
isLaptop,
|
|
293
299
|
user,
|
|
300
|
+
role,
|
|
294
301
|
getUserDisplayName,
|
|
295
302
|
navigate,
|
|
296
303
|
]);
|
|
@@ -300,8 +307,6 @@ export const AuthMenu = ({ loginPath, display = DISPLAY.AUTO, 'no-tooltip': noTo
|
|
|
300
307
|
if (enabled.length === 0 || shouldHide || !isReady) {
|
|
301
308
|
return null;
|
|
302
309
|
}
|
|
303
|
-
// Extract role from user
|
|
304
|
-
const role = user?.role;
|
|
305
310
|
// Return null when unauthenticated - AuthHeader handles unauthenticated state
|
|
306
311
|
if (!isAuthenticated) {
|
|
307
312
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityDisplayRenderer.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityDisplayRenderer.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI/E,YAAY,EAAE,0BAA0B,EAAE,CAAC;AAE3C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EAAE,EAC3E,MAAM,EACN,EAAE,EACF,CAAC,EACD,SAAc,EACd,cAAc,EACd,eAAe,EACf,UAAU,EAAE,cAAc,EAC1B,aAAa,GACd,EAAE,0BAA0B,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"EntityDisplayRenderer.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityDisplayRenderer.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAI/E,YAAY,EAAE,0BAA0B,EAAE,CAAC;AAE3C;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EAAE,EAC3E,MAAM,EACN,EAAE,EACF,CAAC,EACD,SAAc,EACd,cAAc,EACd,eAAe,EACf,UAAU,EAAE,cAAc,EAC1B,aAAa,GACd,EAAE,0BAA0B,CAAC,CAAC,CAAC,2CA0M/B;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -85,7 +85,10 @@ export function EntityDisplayRenderer({ entity, id, t, className = '', loadingMe
|
|
|
85
85
|
cancelled = true;
|
|
86
86
|
};
|
|
87
87
|
}, [id, get, isAvailable]);
|
|
88
|
-
//
|
|
88
|
+
// Priority: store data (reactive, updated by other components) > local fetch data.
|
|
89
|
+
// Store may already have the entity from a list view or prior navigation,
|
|
90
|
+
// so we prefer it to avoid a redundant fetch. Local fetch is the fallback
|
|
91
|
+
// when the entity isn't in the store yet (e.g., direct URL access).
|
|
89
92
|
const displayData = storeData || data;
|
|
90
93
|
const displayError = storeError || fetchError;
|
|
91
94
|
const isLoading = loading || isFetching || !id;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityFormRenderer.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityFormRenderer.tsx"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EACV,uBAAuB,EACvB,YAAY,EAEb,MAAM,gBAAgB,CAAC;AAExB,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAExC;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EAAE,EACxE,MAAM,EACN,QAAQ,EACR,CAAC,EACD,SAAc,EACd,UAAU,EACV,OAAe,EACf,aAAa,EACb,aAAyB,EACzB,mBAAmB,EACnB,sBAAkC,EAClC,iBAAiB,EACjB,UAAU,EAAE,cAAc,EAC1B,SAA6C,EAC7C,MAAM,EAAE,cAAc,EACtB,UAAU,EACV,UAAU,EACV,WAAW,EACX,QAAQ,EACR,oBAA2B,EAC3B,qBAAqB,EACrB,kBAA0B,GAC3B,EAAE,uBAAuB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"EntityFormRenderer.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityFormRenderer.tsx"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EACV,uBAAuB,EACvB,YAAY,EAEb,MAAM,gBAAgB,CAAC;AAExB,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAExC;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,EAAE,EACxE,MAAM,EACN,QAAQ,EACR,CAAC,EACD,SAAc,EACd,UAAU,EACV,OAAe,EACf,aAAa,EACb,aAAyB,EACzB,mBAAmB,EACnB,sBAAkC,EAClC,iBAAiB,EACjB,UAAU,EAAE,cAAc,EAC1B,SAA6C,EAC7C,MAAM,EAAE,cAAc,EACtB,UAAU,EACV,UAAU,EACV,WAAW,EACX,QAAQ,EACR,oBAA2B,EAC3B,qBAAqB,EACrB,kBAA0B,GAC3B,EAAE,uBAAuB,CAAC,CAAC,CAAC,2CA2c5B;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -160,9 +160,10 @@ export function EntityFormRenderer({ entity, onSubmit, t, className = '', submit
|
|
|
160
160
|
navigate('back');
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
catch {
|
|
163
|
+
catch (error) {
|
|
164
164
|
// onSubmit rejected — stay on form so user can correct errors
|
|
165
165
|
// Error display is handled by the caller's onSubmit implementation
|
|
166
|
+
console.error(error);
|
|
166
167
|
}
|
|
167
168
|
};
|
|
168
169
|
// Determine if cancel button should show
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityList.tsx"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,QAAQ,EACR,OAAO,EACP,WAAmB,EACnB,UAAqB,EACrB,QAAQ,EAAE,YAAY,EACtB,YAAY,EACZ,UAAiB,GAClB,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"EntityList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityList.tsx"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,QAAQ,EACR,OAAO,EACP,WAAmB,EACnB,UAAqB,EACrB,QAAQ,EAAE,YAAY,EACtB,YAAY,EACZ,UAAiB,GAClB,EAAE,eAAe,2CAmRjB"}
|
|
@@ -128,6 +128,8 @@ export function EntityList({ entity, basePath, onClick, hideFilters = false, pag
|
|
|
128
128
|
}), variant: "destructive", icon: Trash2, "aria-label": tCrud('delete', { defaultValue: 'Delete' }), children: tCrud('delete', { defaultValue: 'Delete' }) })] })),
|
|
129
129
|
});
|
|
130
130
|
return baseColumns;
|
|
131
|
+
// Note: 't' and 'tCrud' are assumed stable across renders (i18next returns the same reference
|
|
132
|
+
// unless the language changes). If i18n language switching causes stale columns, add i18n.language to deps.
|
|
131
133
|
}, [entity, t, tCrud, handleEdit, handleDelete]);
|
|
132
134
|
// Entity name for section title
|
|
133
135
|
const entityName = t('name', { defaultValue: entity.name });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityWorkflow.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityWorkflow.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,EAEL,KAAK,cAAc,EAEnB,KAAK,oBAAoB,EAC1B,MAAM,gBAAgB,CAAC;AAIxB,+BAA+B;AAC/B,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,QAAQ,EAAE,cAAc,CAAC;IACzB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,iCAAiC;IACjC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO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CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EAAE,MAAM,EAChB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,EACR,SAAS,GACV,EAAE,mBAAmB,2CAwFrB"}
|
|
@@ -37,7 +37,10 @@ export function EntityWorkflow({ workflow: config, onComplete, onStepChange, def
|
|
|
37
37
|
// Custom render step (e.g., review/summary)
|
|
38
38
|
currentStep.custom(wf.allData)) : currentStep.entity ? (
|
|
39
39
|
// Entity form step
|
|
40
|
-
_jsx(EntityFormRenderer, { entity: currentStep.entity, operation: "create", viewerRole: viewerRole, defaultValues:
|
|
40
|
+
_jsx(EntityFormRenderer, { entity: currentStep.entity, operation: "create", viewerRole: viewerRole, defaultValues: {
|
|
41
|
+
...stepData[currentStep.id],
|
|
42
|
+
...(!isLast && { status: 'draft' }),
|
|
43
|
+
}, onSubmit: async (data) => {
|
|
41
44
|
await wf.goNext(data);
|
|
42
45
|
}, submitText: isLast
|
|
43
46
|
? t('workflow.submit', { defaultValue: 'Submit' })
|
package/dist/dndev.css
CHANGED
|
@@ -49,11 +49,22 @@
|
|
|
49
49
|
These are STANDARD density defaults - density system overrides below
|
|
50
50
|
=========================== */
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Gap system — 4 tiers, viewport-safe.
|
|
54
|
+
*
|
|
55
|
+
* Each gap uses min(rem, 2vw) so that on extreme narrow viewports
|
|
56
|
+
* (<400px) all gaps converge to 2% of viewport width instead of
|
|
57
|
+
* holding fixed rem values that eat into content. On normal+
|
|
58
|
+
* screens the rem value wins and the 2vw floor is irrelevant.
|
|
59
|
+
*
|
|
60
|
+
* Density overrides below follow the same pattern — their clamp()
|
|
61
|
+
* values are wrapped in min(..., 2vw) so the viewport floor
|
|
62
|
+
* applies regardless of density tier.
|
|
63
|
+
*/
|
|
53
64
|
--gap-none: 0;
|
|
54
|
-
--gap-sm: 0.5rem; /* 8px
|
|
55
|
-
--gap-md: 1rem; /* 16px
|
|
56
|
-
--gap-lg: 2rem; /* 32px
|
|
65
|
+
--gap-sm: min(0.5rem, 2vw); /* 8px or 2vw, whichever is smaller */
|
|
66
|
+
--gap-md: min(1rem, 2vw); /* 16px or 2vw */
|
|
67
|
+
--gap-lg: min(2rem, 2vw); /* 32px or 2vw */
|
|
57
68
|
|
|
58
69
|
/* ===========================
|
|
59
70
|
DIALOG SIZE VARIANTS
|
|
@@ -332,17 +343,18 @@
|
|
|
332
343
|
1.625rem
|
|
333
344
|
); /* 24-26px fluid */
|
|
334
345
|
--font-size-3xl: clamp(1.814rem, 1.625rem + 1vw, 2rem); /* 29-32px fluid */
|
|
335
|
-
--gap-sm:
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
1.75rem
|
|
345
|
-
|
|
346
|
+
--gap-sm: min(
|
|
347
|
+
clamp(0.375rem, 0.3125rem + 0.25vw, 0.5rem),
|
|
348
|
+
2vw
|
|
349
|
+
); /* 6-8px fluid, 2vw floor */
|
|
350
|
+
--gap-md: min(
|
|
351
|
+
clamp(0.75rem, 0.625rem + 0.5vw, 0.875rem),
|
|
352
|
+
2vw
|
|
353
|
+
); /* 12-14px fluid, 2vw floor */
|
|
354
|
+
--gap-lg: min(
|
|
355
|
+
clamp(1.5rem, 1.25rem + 1vw, 1.75rem),
|
|
356
|
+
2vw
|
|
357
|
+
); /* 24-28px fluid, 2vw floor */
|
|
346
358
|
--line-height: 1.2; /* Minor Third - All text */
|
|
347
359
|
}
|
|
348
360
|
|
|
@@ -372,13 +384,18 @@
|
|
|
372
384
|
2rem + 1.5vw,
|
|
373
385
|
3rem
|
|
374
386
|
); /* 39-48px fluid - hero text */
|
|
375
|
-
--gap-sm:
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
387
|
+
--gap-sm: min(
|
|
388
|
+
clamp(0.5rem, 0.4375rem + 0.25vw, 0.625rem),
|
|
389
|
+
2vw
|
|
390
|
+
); /* 8-10px fluid, 2vw floor */
|
|
391
|
+
--gap-md: min(
|
|
392
|
+
clamp(1rem, 0.875rem + 0.5vw, 1.25rem),
|
|
393
|
+
2vw
|
|
394
|
+
); /* 16-20px fluid, 2vw floor */
|
|
395
|
+
--gap-lg: min(
|
|
396
|
+
clamp(2rem, 1.75rem + 1vw, 2.5rem),
|
|
397
|
+
2vw
|
|
398
|
+
); /* 32-40px fluid, 2vw floor */
|
|
382
399
|
--line-height: 1.25; /* Major Third - All text */
|
|
383
400
|
}
|
|
384
401
|
|
|
@@ -400,9 +417,18 @@
|
|
|
400
417
|
2.5rem + 2.5vw,
|
|
401
418
|
5rem
|
|
402
419
|
); /* base × 1.333⁴ fluid */
|
|
403
|
-
--gap-sm:
|
|
404
|
-
|
|
405
|
-
|
|
420
|
+
--gap-sm: min(
|
|
421
|
+
clamp(0.5rem, 0.375rem + 0.25vw, 0.75rem),
|
|
422
|
+
2vw
|
|
423
|
+
); /* 8-12px fluid, 2vw floor */
|
|
424
|
+
--gap-md: min(
|
|
425
|
+
clamp(1rem, 0.75rem + 0.5vw, 1.5rem),
|
|
426
|
+
2vw
|
|
427
|
+
); /* 16-24px fluid, 2vw floor */
|
|
428
|
+
--gap-lg: min(
|
|
429
|
+
clamp(2rem, 1.5rem + 1vw, 3rem),
|
|
430
|
+
2vw
|
|
431
|
+
); /* 32-48px fluid, 2vw floor */
|
|
406
432
|
--line-height: 1.33; /* Perfect Fourth - All text */
|
|
407
433
|
}
|
|
408
434
|
|
|
@@ -2117,8 +2143,8 @@ em {
|
|
|
2117
2143
|
display: grid;
|
|
2118
2144
|
grid-template-rows: auto 1fr auto;
|
|
2119
2145
|
width: 100%;
|
|
2120
|
-
gap: var(--gap-
|
|
2121
|
-
padding: var(--gap-
|
|
2146
|
+
gap: var(--gap-sm);
|
|
2147
|
+
padding-block: var(--gap-md);
|
|
2122
2148
|
overflow: hidden;
|
|
2123
2149
|
box-shadow: var(--shadow-xl);
|
|
2124
2150
|
animation: dialog-in var(--dur-normal) var(--ease-in-out);
|
|
@@ -2172,6 +2198,7 @@ em {
|
|
|
2172
2198
|
gap: var(--gap-md);
|
|
2173
2199
|
flex-shrink: 0;
|
|
2174
2200
|
min-height: var(--touch-target);
|
|
2201
|
+
padding-inline: var(--gap-md);
|
|
2175
2202
|
}
|
|
2176
2203
|
|
|
2177
2204
|
.dndev-modal-footer {
|
|
@@ -2179,6 +2206,7 @@ em {
|
|
|
2179
2206
|
flex-direction: column-reverse;
|
|
2180
2207
|
gap: var(--gap-sm);
|
|
2181
2208
|
flex-shrink: 0;
|
|
2209
|
+
padding-inline: var(--gap-md);
|
|
2182
2210
|
}
|
|
2183
2211
|
|
|
2184
2212
|
@media (width >= 640px) {
|
|
@@ -2196,7 +2224,7 @@ em {
|
|
|
2196
2224
|
overflow-y: auto;
|
|
2197
2225
|
overflow-x: visible;
|
|
2198
2226
|
min-height: 0;
|
|
2199
|
-
padding-
|
|
2227
|
+
padding-inline: var(--gap-md);
|
|
2200
2228
|
}
|
|
2201
2229
|
|
|
2202
2230
|
.dndev-modal-title {
|
|
@@ -2213,8 +2241,8 @@ em {
|
|
|
2213
2241
|
|
|
2214
2242
|
.dndev-modal-close {
|
|
2215
2243
|
position: absolute;
|
|
2216
|
-
inset-inline-end: var(--gap-
|
|
2217
|
-
top: var(--gap-
|
|
2244
|
+
inset-inline-end: var(--gap-sm);
|
|
2245
|
+
top: var(--gap-sm);
|
|
2218
2246
|
opacity: var(--opacity-muted);
|
|
2219
2247
|
}
|
|
2220
2248
|
|
|
@@ -6995,6 +7023,12 @@ input[type='number'] {
|
|
|
6995
7023
|
gap: var(--gap-sm);
|
|
6996
7024
|
}
|
|
6997
7025
|
|
|
7026
|
+
.dndev-interactive[data-role='stepper-button'],
|
|
7027
|
+
.dndev-interactive[data-role='stepper-button']:focus,
|
|
7028
|
+
.dndev-interactive[data-role='stepper-button']:focus-visible {
|
|
7029
|
+
outline: none;
|
|
7030
|
+
}
|
|
7031
|
+
|
|
6998
7032
|
.dndev-interactive[data-role='stepper-button'] {
|
|
6999
7033
|
width: var(--touch-target);
|
|
7000
7034
|
height: var(--touch-target);
|
|
@@ -8682,6 +8716,14 @@ input[type='number'] {
|
|
|
8682
8716
|
|
|
8683
8717
|
/* packages/components/src/advanced/Reveal/Reveal.css */
|
|
8684
8718
|
|
|
8719
|
+
/* Cleanup keyframe — removes will-change after animation completes for GPU memory */
|
|
8720
|
+
|
|
8721
|
+
@keyframes dndev-reveal-cleanup {
|
|
8722
|
+
to {
|
|
8723
|
+
will-change: auto;
|
|
8724
|
+
}
|
|
8725
|
+
}
|
|
8726
|
+
|
|
8685
8727
|
.dndev-reveal-container {
|
|
8686
8728
|
/* Performance */
|
|
8687
8729
|
contain: layout style;
|
|
@@ -8693,8 +8735,8 @@ input[type='number'] {
|
|
|
8693
8735
|
transform: translate3d(0, 0, 0);
|
|
8694
8736
|
|
|
8695
8737
|
/* Performance cleanup */
|
|
8696
|
-
animation: dndev-reveal-cleanup var(--reveal-duration
|
|
8697
|
-
forwards;
|
|
8738
|
+
animation: dndev-reveal-cleanup var(--reveal-duration, 0.6s)
|
|
8739
|
+
var(--reveal-easing, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
|
|
8698
8740
|
}
|
|
8699
8741
|
|
|
8700
8742
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -8718,8 +8760,10 @@ input[type='number'] {
|
|
|
8718
8760
|
|
|
8719
8761
|
/* Transitions */
|
|
8720
8762
|
transition:
|
|
8721
|
-
opacity var(--reveal-duration
|
|
8722
|
-
|
|
8763
|
+
opacity var(--reveal-duration, 0.6s)
|
|
8764
|
+
var(--reveal-easing, cubic-bezier(0.22, 1, 0.36, 1)),
|
|
8765
|
+
transform var(--reveal-duration, 0.6s)
|
|
8766
|
+
var(--reveal-easing, cubic-bezier(0.22, 1, 0.36, 1));
|
|
8723
8767
|
|
|
8724
8768
|
/* Stagger timing */
|
|
8725
8769
|
transition-delay: var(--reveal-delay, 0ms);
|
|
@@ -8728,19 +8772,19 @@ input[type='number'] {
|
|
|
8728
8772
|
}
|
|
8729
8773
|
|
|
8730
8774
|
.dndev-reveal-item[data-direction='left'] {
|
|
8731
|
-
transform: translate3d(calc(-1 * var(--reveal-distance)), 0, 0);
|
|
8775
|
+
transform: translate3d(calc(-1 * var(--reveal-distance, 5vw)), 0, 0);
|
|
8732
8776
|
}
|
|
8733
8777
|
|
|
8734
8778
|
.dndev-reveal-item[data-direction='right'] {
|
|
8735
|
-
transform: translate3d(var(--reveal-distance), 0, 0);
|
|
8779
|
+
transform: translate3d(var(--reveal-distance, 5vw), 0, 0);
|
|
8736
8780
|
}
|
|
8737
8781
|
|
|
8738
8782
|
.dndev-reveal-item[data-direction='top'] {
|
|
8739
|
-
transform: translate3d(0, calc(-1 * var(--reveal-distance)), 0);
|
|
8783
|
+
transform: translate3d(0, calc(-1 * var(--reveal-distance, 5vw)), 0);
|
|
8740
8784
|
}
|
|
8741
8785
|
|
|
8742
8786
|
.dndev-reveal-item[data-direction='bottom'] {
|
|
8743
|
-
transform: translate3d(0, var(--reveal-distance), 0);
|
|
8787
|
+
transform: translate3d(0, var(--reveal-distance, 5vw), 0);
|
|
8744
8788
|
}
|
|
8745
8789
|
|
|
8746
8790
|
.dndev-reveal-item[data-direction='fade-in'] {
|