@donotdev/ui 0.3.2 → 0.3.3

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.
Files changed (57) hide show
  1. package/README.md +2 -3
  2. package/dist/crud/components/EntityCardList.d.ts +4 -1
  3. package/dist/crud/components/EntityCardList.d.ts.map +1 -1
  4. package/dist/crud/components/EntityCardList.js +1 -1
  5. package/dist/crud/components/useRecordBreadcrumb.d.ts +3 -1
  6. package/dist/crud/components/useRecordBreadcrumb.d.ts.map +1 -1
  7. package/dist/crud/components/useRecordBreadcrumb.js +1 -1
  8. package/dist/dndev-next.css +88 -37
  9. package/dist/dndev.css +88 -37
  10. package/dist/index.js +1 -1
  11. package/dist/internal/devtools/components/LayoutReset.js +1 -1
  12. package/dist/internal/layout/components/AutoMetaTags.d.ts +3 -0
  13. package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
  14. package/dist/internal/layout/components/AutoMetaTags.js +1 -1
  15. package/dist/internal/layout/components/FaviconHead.d.ts +18 -14
  16. package/dist/internal/layout/components/FaviconHead.d.ts.map +1 -1
  17. package/dist/internal/layout/components/FaviconHead.js +1 -1
  18. package/dist/internal/layout/components/headTagElement.d.ts +16 -0
  19. package/dist/internal/layout/components/headTagElement.d.ts.map +1 -0
  20. package/dist/internal/layout/components/headTagElement.js +1 -0
  21. package/dist/internal/layout/components/prerenderedHead.d.ts +15 -0
  22. package/dist/internal/layout/components/prerenderedHead.d.ts.map +1 -0
  23. package/dist/internal/layout/components/prerenderedHead.js +1 -0
  24. package/dist/internal/layout/components/trailingSlash.d.ts +13 -0
  25. package/dist/internal/layout/components/trailingSlash.d.ts.map +1 -0
  26. package/dist/internal/layout/components/trailingSlash.js +1 -0
  27. package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
  28. package/dist/providers/ViteAppProviders.d.ts +11 -9
  29. package/dist/providers/ViteAppProviders.d.ts.map +1 -1
  30. package/dist/providers/ViteAppProviders.js +1 -1
  31. package/dist/routing/DnDevNavigationMenu.d.ts.map +1 -1
  32. package/dist/routing/DnDevNavigationMenu.js +1 -1
  33. package/dist/routing/hooks/hooks.next.js +1 -1
  34. package/dist/routing/hooks/useRoutePath.next.d.ts +5 -3
  35. package/dist/routing/hooks/useRoutePath.next.d.ts.map +1 -1
  36. package/dist/routing/hooks/useRoutePath.next.js +1 -1
  37. package/dist/routing/useRouteDiscovery.d.ts +3 -0
  38. package/dist/routing/useRouteDiscovery.d.ts.map +1 -1
  39. package/dist/styles/index.css +88 -37
  40. package/dist/symbol-index.json +1 -1
  41. package/dist/utils/assetResolver.d.ts +19 -19
  42. package/dist/utils/assetResolver.d.ts.map +1 -1
  43. package/dist/utils/assetResolver.js +1 -1
  44. package/dist/utils/index.d.ts +0 -1
  45. package/dist/utils/index.d.ts.map +1 -1
  46. package/dist/utils/index.js +1 -1
  47. package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
  48. package/dist/vite-routing/AppRoutes.js +1 -1
  49. package/guidelines/ROUTING.md +1 -0
  50. package/guidelines/SEO.md +160 -145
  51. package/package.json +8 -8
  52. package/dist/internal/layout/components/i18nSeoMeta.d.ts +0 -54
  53. package/dist/internal/layout/components/i18nSeoMeta.d.ts.map +0 -1
  54. package/dist/internal/layout/components/i18nSeoMeta.js +0 -1
  55. package/dist/utils/useSeo.d.ts +0 -129
  56. package/dist/utils/useSeo.d.ts.map +0 -1
  57. package/dist/utils/useSeo.js +0 -1
package/README.md CHANGED
@@ -213,11 +213,10 @@ Automatic SEO meta tags:
213
213
 
214
214
  ### Favicon System
215
215
 
216
- Automatic PWA-compliant favicons:
216
+ Automatic favicon tags (icons, apple-touch-icon, theme-color, color-scheme), in the server HTML on Next (`FaviconHead`) and written into `index.html` by the Vite build. Declare none in `AppDocument` / `index.html`.
217
217
 
218
218
  ```tsx
219
- // Favicon is automatic - uses useFaviconConfig() internally
220
- // Configure via config.favicon
219
+ // Favicon is automatic - configure via config.favicon (false disables it)
221
220
  ```
222
221
 
223
222
  ## Provider Hierarchy
@@ -10,7 +10,10 @@ export type { EntityCardListProps };
10
10
  * - Simple formatted text display (labels + values)
11
11
  * - Empty state handling
12
12
  * - Auto-routing when handler not provided
13
+ * - Opt-in feed rendering (`pageSize`): the first `pageSize` cards render (server HTML
14
+ * included), `pageSize` more are added as the end of the grid nears the viewport,
15
+ * until every card is shown. Without `pageSize`, every card renders at once.
13
16
  */
14
- export declare function EntityCardList({ entity, basePath, onClick, cols, staleTime, // 30 minutes default cache
17
+ export declare function EntityCardList({ entity, basePath, onClick, cols, pageSize, staleTime, // 30 minutes default cache
15
18
  queryOptions, filter, hideFilters, resultLabel, tone, renderCardOverlay, clientSort, collapsible, defaultOpen, preview, }: EntityCardListProps): import("react").JSX.Element | null;
16
19
  //# sourceMappingURL=EntityCardList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityCardList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityCardList.tsx"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,mBAAmB,EAAgB,MAAM,gBAAgB,CAAC;AAaxE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAwGpC;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,QAAQ,EACR,OAAO,EACP,IAAmB,EACnB,SAA0B,EAAE,2BAA2B;AACvD,YAAY,EACZ,MAAM,EACN,WAAmB,EACnB,WAAW,EACX,IAAI,EACJ,iBAAiB,EACjB,UAAU,EACV,WAAmB,EACnB,WAAW,EACX,OAAO,GACR,EAAE,mBAAmB,sCA6NrB"}
1
+ {"version":3,"file":"EntityCardList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityCardList.tsx"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,mBAAmB,EAAgB,MAAM,gBAAgB,CAAC;AAaxE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AA2GpC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,QAAQ,EACR,OAAO,EACP,IAAmB,EACnB,QAAQ,EACR,SAA0B,EAAE,2BAA2B;AACvD,YAAY,EACZ,MAAM,EACN,WAAmB,EACnB,WAAW,EACX,IAAI,EACJ,iBAAiB,EACjB,UAAU,EACV,WAAmB,EACnB,WAAW,EACX,OAAO,GACR,EAAE,mBAAmB,sCAwPrB"}
@@ -1 +1 @@
1
- "use client";import{Heart as O}from"lucide-react";import{useMemo as U,useCallback as W}from"react";import{Card as $,Grid as B,Stack as k,Text as f,Skeleton as m,Section as I,Button as Y}from"@donotdev/components";import{useTranslation as N,getListCardFieldNames as D,useBreakpoint as Z}from"@donotdev/core";import{isCrudModuleAvailable as tt,useCrudCardList as et,EntityFilters as rt,useEntityFavorites as ot,useCrudFilters as it}from"../crudImports.js";import{CrudCard as nt}from"./CrudCardLink.js";import{useNavigate as st}from"../../routing/index.js";import{useAuthSafe as lt}from"../../utils/useAuthSafe.js";import{Fragment as ft,jsx as t,jsxs as F}from"react/jsx-runtime";function at(e){let d=e.listCardFields;if(d&&!Array.isArray(d)){let i=d;return{titleFields:i.title??[],subtitleFields:i.subtitle??[],contentFields:i.content??[],footerFields:i.footer??[]}}let o=D(e),c=i=>{let g=e.fields[i]?.type;return g==="image"||g==="images"},u=o.filter(i=>!c(i)),v=o.filter(c);return{titleFields:u.length>0?[u[0]]:[],subtitleFields:[],contentFields:[...u.slice(1,4),...v],footerFields:[]}}var dt={mobile:0,tablet:1,laptop:2,desktop:3};function ct({cols:e,entity:d}){let o=at(d),c=Z("current"),v=((Array.isArray(e)?e[dt[c]??3]:e)??1)*3,i=a=>{let p=d.fields[a]?.type;return p==="image"||p==="images"},g=o.contentFields.length>0?t(k,{direction:"column",gap:"tight",children:o.contentFields.map(a=>i(a)?t(m,{height:120},a):F("div",{children:[t(f,{level:"small",variant:"muted",children:t(m,{})}),t(f,{children:t(m,{})})]},a))}):void 0,h=o.footerFields.length>0?t(f,{level:"small",children:t(m,{})}):void 0;return t(B,{cols:e,children:Array.from({length:v},(a,p)=>t($,{title:t(m,{}),subtitle:o.subtitleFields.length>0?t(m,{}):void 0,content:g,footer:h,elevated:!0},p))})}function Et({entity:e,basePath:d,onClick:o,cols:c=[1,2,3,4],staleTime:u=1e3*60*30,queryOptions:v,filter:i,hideFilters:g=!1,resultLabel:h,tone:a,renderCardOverlay:p,clientSort:G,collapsible:b=!1,defaultOpen:H,preview:x}){if(!tt)return null;let r=!!x,w=st(),M=lt("userRole"),T=d??`/${e.collection}`,{items:V,processed:_,loading:j,error:C}=et(e,{enabled:!r,staleTime:u,queryOptions:v,clientSort:G}),P=r?!1:j,{isFavorite:A,toggleFavorite:z,favoritesFilter:K}=ot({collection:e.collection}),{showFavoritesOnly:S,setShowFavoritesOnly:X,filters:ut,setFilters:gt}=it({collection:e.collection}),s=r?x:_;r||(S&&(s=s.filter(K)),i&&(s=s.filter(i)),s=s.toSorted((n,y)=>{let L=A(String(n.id))?0:1,E=A(String(y.id))?0:1;return L-E}));let{t:q}=N([e.namespace,"crud"]),{t:l}=N("crud"),J=W(n=>{r||(o?o(n):w(`${T}/${n}`))},[T,w,o,r]),Q=U(()=>D(e),[e]),R=q("name",{defaultValue:e.name});return F(ft,{children:[!g&&t(I,{title:l("filters.title",{entity:R}),collapsible:b,defaultOpen:H,tone:a,children:t($,{children:F(k,{direction:"column",children:[t(Y,{variant:!r&&S?"primary":"outline",icon:t(O,{size:18}),onClick:()=>X(!S),disabled:r,children:l(S?"favorites.showAll":"favorites.showFavorites")}),!r&&t(rt,{entity:e,data:V,fieldsToFilter:Q,viewerRole:M})]})})}),t(I,{title:P?l("results.title.fetching"):h?h(s.length):l("results.title.count",{count:s.length}),collapsible:b,defaultOpen:b?!0:void 0,tone:a,children:P?t(ct,{cols:c,entity:e}):C?F(k,{align:"center",justify:"center",style:{padding:"var(--gap-lg)",textAlign:"center"},children:[t(f,{level:"h3",style:{color:"var(--destructive)"},children:l("errors.fetchFailed",{entity:R})}),t(f,{level:"small",style:{color:"var(--destructive)"},children:C instanceof Error?C.message:String(C)})]}):s.length===0?F(k,{align:"center",justify:"center",style:{padding:"var(--gap-lg)",textAlign:"center"},children:[t(f,{level:"h3",style:{color:"var(--muted-foreground)"},children:l("emptyState.title")}),t(f,{style:{color:"var(--muted-foreground)"},children:l("emptyState.description")})]}):t(B,{cols:c,children:s.map(n=>{let y=A(n.id),L=r||o?void 0:`${T}/${n.id}`;return t(nt,{item:n,entity:e,detailHref:L,onClick:r?void 0:o?()=>J(n.id):void 0,renderOverlay:p?.(n),renderActions:t(O,{fill:y?"#ef4444":"#ffffff",stroke:y?"#ef4444":"var(--muted-foreground)",onClick:E=>{E.preventDefault(),E.stopPropagation(),r||z(n.id)},style:{cursor:r?"default":"pointer",width:"var(--icon-md)",height:"var(--icon-md)",transition:"fill 0.2s, stroke 0.2s",opacity:r?.5:1},"aria-label":l(y?"favorites.remove":"favorites.add")})},n.id)})})})]})}export{Et as EntityCardList};
1
+ "use client";import{Heart as O}from"lucide-react";import{useMemo as rt,useCallback as ot,useEffect as it,useRef as nt,useState as st}from"react";import{Card as G,Grid as H,Stack as b,Text as v,Skeleton as p,Section as $,Button as lt,observeElement as at}from"@donotdev/components";import{useTranslation as B,getListCardFieldNames as V,useBreakpoint as dt}from"@donotdev/core";import{isCrudModuleAvailable as ct,useCrudCardList as ut,EntityFilters as ft,useEntityFavorites as gt,useCrudFilters as mt}from"../crudImports.js";import{CrudCard as vt}from"./CrudCardLink.js";import{useNavigate as pt}from"../../routing/index.js";import{useAuthSafe as yt}from"../../utils/useAuthSafe.js";import{Fragment as D,jsx as t,jsxs as y}from"react/jsx-runtime";function ht(e){let c=e.listCardFields;if(c&&!Array.isArray(c)){let n=c;return{titleFields:n.title??[],subtitleFields:n.subtitle??[],contentFields:n.content??[],footerFields:n.footer??[]}}let i=V(e),u=n=>{let f=e.fields[n]?.type;return f==="image"||f==="images"},l=i.filter(n=>!u(n)),h=i.filter(u);return{titleFields:l.length>0?[l[0]]:[],subtitleFields:[],contentFields:[...l.slice(1,4),...h],footerFields:[]}}var Ft="600px 0px",Ct={mobile:0,tablet:1,laptop:2,desktop:3};function Et({cols:e,entity:c}){let i=ht(c),u=dt("current"),h=((Array.isArray(e)?e[Ct[u]??3]:e)??1)*3,n=d=>{let g=c.fields[d]?.type;return g==="image"||g==="images"},f=i.contentFields.length>0?t(b,{direction:"column",gap:"tight",children:i.contentFields.map(d=>n(d)?t(p,{height:120},d):y("div",{children:[t(v,{level:"small",variant:"muted",children:t(p,{})}),t(v,{children:t(p,{})})]},d))}):void 0,k=i.footerFields.length>0?t(v,{level:"small",children:t(p,{})}):void 0;return t(H,{cols:e,children:Array.from({length:h},(d,g)=>t(G,{title:t(p,{}),subtitle:i.subtitleFields.length>0?t(p,{}):void 0,content:f,footer:k,elevated:!0},g))})}function It({entity:e,basePath:c,onClick:i,cols:u=[1,2,3,4],pageSize:l,staleTime:h=1e3*60*30,queryOptions:n,filter:f,hideFilters:k=!1,resultLabel:d,tone:g,renderCardOverlay:_,clientSort:j,collapsible:A=!1,defaultOpen:K,preview:P}){if(!ct)return null;let o=!!P,I=pt(),X=yt("userRole"),L=c??`/${e.collection}`,{items:q,processed:J,loading:Q,error:F}=ut(e,{enabled:!o,staleTime:h,queryOptions:n,clientSort:j}),T=o?!1:Q,{isFavorite:x,toggleFavorite:U,favoritesFilter:W}=gt({collection:e.collection}),{showFavoritesOnly:E,setShowFavoritesOnly:Y,filters:St,setFilters:bt}=mt({collection:e.collection}),s=o?P:J;o||(E&&(s=s.filter(W)),f&&(s=s.filter(f)),s=s.toSorted((r,m)=>{let C=x(String(r.id))?0:1,S=x(String(m.id))?0:1;return C-S}));let[R,Z]=st(l??1/0),M=nt(null),w=l!=null&&!T&&!F&&R<s.length;it(()=>{let r=M.current;if(!(!r||!w||l==null))return at(r,m=>{m.isIntersecting&&Z(C=>C+l)},{rootMargin:Ft})},[w,R,l]);let{t:z}=B([e.namespace,"crud"]),{t:a}=B("crud"),tt=ot(r=>{o||(i?i(r):I(`${L}/${r}`))},[L,I,i,o]),et=rt(()=>V(e),[e]),N=z("name",{defaultValue:e.name});return y(D,{children:[!k&&t($,{title:a("filters.title",{entity:N}),collapsible:A,defaultOpen:K,tone:g,children:t(G,{children:y(b,{direction:"column",children:[t(lt,{variant:!o&&E?"primary":"outline",icon:t(O,{size:18}),onClick:()=>Y(!E),disabled:o,children:a(E?"favorites.showAll":"favorites.showFavorites")}),!o&&t(ft,{entity:e,data:q,fieldsToFilter:et,viewerRole:X})]})})}),t($,{title:T?a("results.title.fetching"):d?d(s.length):a("results.title.count",{count:s.length}),collapsible:A,defaultOpen:A?!0:void 0,tone:g,children:T?t(Et,{cols:u,entity:e}):F?y(b,{align:"center",justify:"center",style:{padding:"var(--gap-lg)",textAlign:"center"},children:[t(v,{level:"h3",style:{color:"var(--destructive)"},children:a("errors.fetchFailed",{entity:N})}),t(v,{level:"small",style:{color:"var(--destructive)"},children:F instanceof Error?F.message:String(F)})]}):s.length===0?y(b,{align:"center",justify:"center",style:{padding:"var(--gap-lg)",textAlign:"center"},children:[t(v,{level:"h3",style:{color:"var(--muted-foreground)"},children:a("emptyState.title")}),t(v,{style:{color:"var(--muted-foreground)"},children:a("emptyState.description")})]}):y(D,{children:[t(H,{cols:u,children:s.slice(0,R).map(r=>{let m=x(r.id),C=o||i?void 0:`${L}/${r.id}`;return t(vt,{item:r,entity:e,detailHref:C,onClick:o?void 0:i?()=>tt(r.id):void 0,renderOverlay:_?.(r),renderActions:t(O,{fill:m?"#ef4444":"#ffffff",stroke:m?"#ef4444":"var(--muted-foreground)",onClick:S=>{S.preventDefault(),S.stopPropagation(),o||U(r.id)},style:{cursor:o?"default":"pointer",width:"var(--icon-md)",height:"var(--icon-md)",transition:"fill 0.2s, stroke 0.2s",opacity:o?.5:1},"aria-label":a(m?"favorites.remove":"favorites.add")})},r.id)})}),w&&t("div",{ref:M,"aria-hidden":"true"})]})})]})}export{It as EntityCardList};
@@ -1,7 +1,9 @@
1
1
  import type { AnyEntity } from '@donotdev/core';
2
2
  /**
3
3
  * Names the shown record in the breadcrumbs: the entity's card title, formatted like
4
- * the card (the same title `<Seo entity>` uses). Cleared when the page unmounts or the record
4
+ * the card (the same title `deriveEntitySeo` gives the entity page's metadata and the last
5
+ * BreadcrumbList item), on the segment naming the record ({@link recordSegment}: its slug
6
+ * on `/produits/:slug`, its id on `/products/:id`). Cleared when the page unmounts or the record
5
7
  * has no title, unless another component replaced it meanwhile (its label stays). Client effect: the server render keeps the URL segment.
6
8
  *
7
9
  * @param entity - Entity of the record
@@ -1 +1 @@
1
- {"version":3,"file":"useRecordBreadcrumb.d.ts","sourceRoot":"","sources":["../../../src/crud/components/useRecordBreadcrumb.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,GACjD,IAAI,CAqBN"}
1
+ {"version":3,"file":"useRecordBreadcrumb.d.ts","sourceRoot":"","sources":["../../../src/crud/components/useRecordBreadcrumb.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAoChD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,GACjD,IAAI,CAuBN"}
@@ -1 +1 @@
1
- "use client";import{useEffect as a,useRef as f}from"react";import{deriveEntitySeo as m,useLayout as c,useTranslation as R}from"@donotdev/core";function b(r,e){let o=c("setRouteRecordLabel"),u=c("routeRecordLabel"),i=f(u);i.current=u;let n=typeof e?.id=="string"?e.id:void 0,{t:d,language:l}=R([r.namespace,"crud"]),t=e?m(r,e,{t:d,locale:l}).title:void 0;a(()=>{if(!(!n||!t))return o({id:n,label:t}),()=>{let s=i.current;s?.id===n&&s.label===t&&o(null)}},[n,t,o])}export{b as useRecordBreadcrumb};
1
+ "use client";import{useEffect as l,useRef as g}from"react";import{deriveEntitySeo as m,useLayout as c,useTranslation as p}from"@donotdev/core";import{useParams as y}from"@donotdev/ui/routing/hooks";function R(n){try{return decodeURIComponent(n)}catch{return n}}function b(n,t){for(let[o,r]of Object.entries(t)){let e=n[o];if(typeof r=="string"&&!(typeof e!="string"&&typeof e!="number")&&(String(e)===r||String(e)===R(r)))return String(e)}return typeof n.id=="string"?n.id:void 0}function L(n,t){let o=c("setRouteRecordLabel"),r=c("routeRecordLabel"),e=g(r);e.current=r;let d=y(),i=t?b(t,d):void 0,{t:f,language:a}=p([n.namespace,"crud"]),u=t?m(n,t,{t:f,locale:a}).title:void 0;l(()=>{if(!(!i||!u))return o({id:i,label:u}),()=>{let s=e.current;s?.id===i&&s.label===u&&o(null)}},[i,u,o])}export{L as useRecordBreadcrumb};
@@ -1236,7 +1236,9 @@ em {
1236
1236
  var(--floating-glow-start) 100%
1237
1237
  );
1238
1238
 
1239
- background: var(--floating-glow-gradient);
1239
+ /* --floating-background: optional theme token, set on :root / theme class
1240
+ (e.g. var(--popover)) to flatten every floating surface. Unset = glow gradient. */
1241
+ background: var(--floating-background, var(--floating-glow-gradient));
1240
1242
  color: var(--popover-foreground);
1241
1243
  border: var(--border-hairline) solid var(--line-2);
1242
1244
  border-radius: var(--radius-floating);
@@ -1268,11 +1270,14 @@ em {
1268
1270
  background: var(--popover);
1269
1271
  }
1270
1272
  .dndev-floating:dir(rtl) {
1271
- background: linear-gradient(
1272
- 135deg,
1273
- var(--floating-glow-start) 0%,
1274
- var(--floating-glow-mid) 50%,
1275
- var(--floating-glow-end) 100%
1273
+ background: var(
1274
+ --floating-background,
1275
+ linear-gradient(
1276
+ 135deg,
1277
+ var(--floating-glow-start) 0%,
1278
+ var(--floating-glow-mid) 50%,
1279
+ var(--floating-glow-end) 100%
1280
+ )
1276
1281
  );
1277
1282
  }
1278
1283
  /* Size variants - ONLY 3 sizes */
@@ -1762,7 +1767,7 @@ em {
1762
1767
  font-size: var(--font-size-input);
1763
1768
  color: var(--foreground);
1764
1769
  cursor: pointer;
1765
- transition: color var(--transition-fast);
1770
+ transition: color var(--dur-fast) var(--ease-in-out);
1766
1771
 
1767
1772
  /* Subtle hover on label text */
1768
1773
  }
@@ -5661,8 +5666,8 @@ em {
5661
5666
  display: flex;
5662
5667
  align-items: center;
5663
5668
  justify-content: center;
5664
- width: 44px;
5665
- height: 44px;
5669
+ width: var(--touch-target);
5670
+ height: var(--touch-target);
5666
5671
  border: none;
5667
5672
  border-radius: var(--radius-full);
5668
5673
  /* --card not --background: surface must be opaque */
@@ -6465,6 +6470,11 @@ input[type='number'] {
6465
6470
  gap: var(--gap-none);
6466
6471
  }
6467
6472
 
6473
+ /* Sub-menu lists: base.css gives every ul list-style disc */
6474
+ .dndev-nav-menu-grid-container {
6475
+ list-style: none;
6476
+ }
6477
+
6468
6478
  /* Navigation trigger - NavigationMenu-specific styles only */
6469
6479
  .dndev-interactive[data-role='nav-trigger'] {
6470
6480
  height: var(--touch-target);
@@ -6476,6 +6486,12 @@ input[type='number'] {
6476
6486
  background-color: rgb(from var(--accent) r g b / 0.5);
6477
6487
  }
6478
6488
 
6489
+ /* Active page: top-level links, overflow dropdown links, sub-menu links */
6490
+ .dndev-interactive[data-role='menu-item'][data-active='true'],
6491
+ .dndev-nav-menu-item-container[data-active='true'] {
6492
+ background-color: rgb(from var(--accent) r g b / 0.5);
6493
+ }
6494
+
6479
6495
  .dndev-nav-menu-trigger-icon {
6480
6496
  position: relative;
6481
6497
  top: 1px;
@@ -8541,7 +8557,7 @@ input[type='number'] {
8541
8557
  .dndev-swipe-action-content {
8542
8558
  flex: 0 0 100%;
8543
8559
  min-inline-size: 0;
8544
- min-block-size: 44px;
8560
+ min-block-size: var(--touch-target);
8545
8561
  scroll-snap-align: start;
8546
8562
  background: var(--background);
8547
8563
  }
@@ -8564,8 +8580,8 @@ input[type='number'] {
8564
8580
  display: flex;
8565
8581
  align-items: center;
8566
8582
  justify-content: center;
8567
- min-inline-size: 44px;
8568
- min-block-size: 44px;
8583
+ min-inline-size: var(--touch-target);
8584
+ min-block-size: var(--touch-target);
8569
8585
  border: 0;
8570
8586
  font: inherit;
8571
8587
  cursor: pointer;
@@ -9150,34 +9166,52 @@ input[type='number'] {
9150
9166
  display: none;
9151
9167
  }
9152
9168
 
9153
- /* Reserve the complete footprint, even when zero is presented as one large +. */
9169
+ /* Collapsed: one square + at the inline end. Expanded: [ − qty + ].
9170
+ Rows are fixed in both states (no vertical shift); only the inline size animates,
9171
+ growing from the inline end toward the inline start. */
9154
9172
  .dndev-quantity-stepper {
9155
- --quantity-target: max(var(--touch-target), 44px);
9156
- /* Include both icon states, padding and inherited text BEFORE placing items.
9157
- Auto rows otherwise grow for the larger collapsed icon, then shrink on expand. */
9158
- --quantity-cell: max(
9159
- var(--quantity-target),
9160
- calc(max(var(--icon-md), var(--quantity-target) * 0.6, 1lh) + 2 * var(--gap-sm))
9161
- );
9173
+ --quantity-target: var(--touch-target);
9174
+ /* The cell IS the touch target: padding and icons fit inside it. State-independent,
9175
+ so the larger collapsed icon never changes the row; only enlarged text grows it. */
9176
+ --quantity-cell: max(var(--quantity-target), calc(1lh + 2 * var(--gap-sm)));
9177
+ /* Quantity field: three tabular digits plus breathing room. */
9178
+ --quantity-field: calc(3ch + var(--gap-sm));
9179
+ --quantity-square: calc(var(--quantity-cell) + 2 * var(--border-hairline));
9180
+ --quantity-expanded: calc(2 * var(--quantity-cell) + var(--quantity-field) + 2 * var(--border-hairline));
9162
9181
  display: inline-grid;
9163
- grid-template-columns: var(--quantity-cell) minmax(var(--quantity-cell), 1fr) var(--quantity-cell);
9182
+ /* − and the quantity shrink to nothing while collapsed or mid-transition; + is always one cell. */
9183
+ grid-template-columns: minmax(0, var(--quantity-cell)) minmax(0, var(--quantity-field)) var(--quantity-cell);
9164
9184
  grid-template-rows: var(--quantity-cell);
9165
- inline-size: calc(3 * var(--quantity-cell));
9166
- min-inline-size: calc(3 * var(--quantity-cell));
9185
+ inline-size: var(--quantity-expanded);
9186
+ min-inline-size: var(--quantity-expanded);
9167
9187
  border: var(--border-hairline) solid var(--border);
9168
9188
  border-radius: var(--radius-interactive);
9169
9189
  background: var(--interactive);
9170
9190
  color: var(--foreground);
9191
+ transition:
9192
+ inline-size var(--dur-normal) var(--ease-in-out),
9193
+ min-inline-size var(--dur-normal) var(--ease-in-out);
9194
+
9195
+ /* A clickable quantity is a target of its own: keep it at the touch target. */
9171
9196
  }
9197
+ .dndev-quantity-stepper:has( > button.dndev-quantity-stepper-value) {
9198
+ --quantity-field: max(var(--quantity-target), calc(3ch + var(--gap-sm)));
9199
+ }
9172
9200
  .dndev-quantity-stepper[data-full-width] {
9173
9201
  display: grid;
9202
+ grid-template-columns: minmax(0, var(--quantity-cell)) minmax(0, 1fr) var(--quantity-cell);
9174
9203
  inline-size: 100%;
9204
+ /* The collapsed + sits at the inline end; resolves to zero once expanded. */
9205
+ margin-inline-start: auto;
9206
+ }
9207
+ .dndev-quantity-stepper[data-collapsed]:not([data-vertical]) {
9208
+ inline-size: var(--quantity-square);
9209
+ min-inline-size: var(--quantity-square);
9175
9210
  }
9176
9211
  .dndev-quantity-stepper[data-disabled] {
9177
9212
  opacity: 0.6;
9178
9213
  }
9179
9214
  .dndev-quantity-stepper > button,.dndev-quantity-stepper > input {
9180
- min-inline-size: var(--quantity-target);
9181
9215
  min-block-size: var(--quantity-target);
9182
9216
  border: none;
9183
9217
  border-radius: inherit;
@@ -9199,9 +9233,10 @@ input[type='number'] {
9199
9233
  display: flex;
9200
9234
  align-items: center;
9201
9235
  justify-content: center;
9202
- padding: var(--gap-sm);
9236
+ /* The cell is the target: the icon centres inside it. */
9237
+ padding: 0;
9203
9238
  cursor: pointer;
9204
- transition: background-color var(--transition-fast);
9239
+ transition: background-color var(--dur-fast) var(--ease-in-out);
9205
9240
  /* Press-and-hold repeats: no text selection or touch callout on long press. */
9206
9241
  -moz-user-select: none;
9207
9242
  user-select: none;
@@ -9212,9 +9247,20 @@ input[type='number'] {
9212
9247
  background: var(--muted);
9213
9248
  }
9214
9249
  :is(.dndev-quantity-stepper > button) > svg {
9250
+ flex-shrink: 0;
9215
9251
  inline-size: var(--icon-md);
9216
9252
  block-size: var(--icon-md);
9217
9253
  }
9254
+ .dndev-quantity-stepper > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper > .dndev-quantity-stepper-value {
9255
+ min-inline-size: 0;
9256
+ /* Clips the icon/digits while the track is narrower than them. The focus ring is
9257
+ the element's own box-shadow, outside its box, so it is never clipped. */
9258
+ overflow: hidden;
9259
+ transition:
9260
+ opacity var(--dur-normal) var(--ease-in-out),
9261
+ visibility var(--dur-normal) var(--ease-in-out),
9262
+ background-color var(--dur-fast) var(--ease-in-out);
9263
+ }
9218
9264
  .dndev-quantity-stepper > .dndev-quantity-stepper-decrement {
9219
9265
  grid-area: 1 / 1;
9220
9266
  }
@@ -9223,12 +9269,13 @@ input[type='number'] {
9223
9269
  }
9224
9270
  .dndev-quantity-stepper > .dndev-quantity-stepper-increment {
9225
9271
  grid-area: 1 / 3;
9272
+ min-inline-size: var(--quantity-target);
9226
9273
  }
9227
9274
  .dndev-quantity-stepper[data-vertical] {
9228
9275
  grid-template-columns: minmax(var(--quantity-cell), 1fr);
9229
9276
  grid-template-rows: repeat(3, var(--quantity-cell));
9230
- inline-size: var(--quantity-cell);
9231
- min-inline-size: var(--quantity-cell);
9277
+ inline-size: var(--quantity-square);
9278
+ min-inline-size: var(--quantity-square);
9232
9279
  }
9233
9280
  .dndev-quantity-stepper[data-vertical][data-full-width] {
9234
9281
  inline-size: 100%;
@@ -9244,15 +9291,17 @@ input[type='number'] {
9244
9291
  }
9245
9292
  .dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-value {
9246
9293
  visibility: hidden;
9294
+ opacity: 0;
9247
9295
  pointer-events: none;
9248
9296
  }
9249
- .dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment {
9250
- grid-area: 1 / 1 / -1 / -1;
9297
+ .dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment > svg {
9298
+ inline-size: calc(var(--quantity-target) * 0.6);
9299
+ block-size: calc(var(--quantity-target) * 0.6);
9251
9300
  }
9252
- :is(.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment) > svg {
9253
- inline-size: calc(var(--quantity-target) * 0.6);
9254
- block-size: calc(var(--quantity-target) * 0.6);
9255
- }
9301
+ /* Vertical keeps its stacked footprint: the collapsed + spans all three cells. */
9302
+ .dndev-quantity-stepper[data-vertical][data-collapsed] > .dndev-quantity-stepper-increment {
9303
+ grid-area: 1 / 1 / -1 / -1;
9304
+ }
9256
9305
 
9257
9306
  .dndev-quantity-stepper-value {
9258
9307
  box-sizing: border-box;
@@ -9261,7 +9310,7 @@ input[type='number'] {
9261
9310
  justify-content: center;
9262
9311
  inline-size: 100%;
9263
9312
  min-inline-size: 0;
9264
- padding-inline: var(--gap-sm);
9313
+ padding-inline: 0;
9265
9314
  border: none;
9266
9315
  background: none;
9267
9316
  color: inherit;
@@ -9269,11 +9318,13 @@ input[type='number'] {
9269
9318
  font-weight: var(--font-weight-medium);
9270
9319
  font-variant-numeric: tabular-nums;
9271
9320
  text-align: center;
9272
-
9273
9321
  }
9274
9322
 
9275
9323
  @media (prefers-reduced-motion: reduce) {
9276
- .dndev-quantity-stepper > button {
9324
+ .dndev-quantity-stepper,
9325
+ .dndev-quantity-stepper > button,
9326
+ .dndev-quantity-stepper > .dndev-quantity-stepper-decrement,
9327
+ .dndev-quantity-stepper > .dndev-quantity-stepper-value {
9277
9328
  transition: none;
9278
9329
  }
9279
9330
  }
package/dist/dndev.css CHANGED
@@ -1235,7 +1235,9 @@ em {
1235
1235
  var(--floating-glow-start) 100%
1236
1236
  );
1237
1237
 
1238
- background: var(--floating-glow-gradient);
1238
+ /* --floating-background: optional theme token, set on :root / theme class
1239
+ (e.g. var(--popover)) to flatten every floating surface. Unset = glow gradient. */
1240
+ background: var(--floating-background, var(--floating-glow-gradient));
1239
1241
  color: var(--popover-foreground);
1240
1242
  border: var(--border-hairline) solid var(--line-2);
1241
1243
  border-radius: var(--radius-floating);
@@ -1267,11 +1269,14 @@ em {
1267
1269
  background: var(--popover);
1268
1270
  }
1269
1271
  .dndev-floating:dir(rtl) {
1270
- background: linear-gradient(
1271
- 135deg,
1272
- var(--floating-glow-start) 0%,
1273
- var(--floating-glow-mid) 50%,
1274
- var(--floating-glow-end) 100%
1272
+ background: var(
1273
+ --floating-background,
1274
+ linear-gradient(
1275
+ 135deg,
1276
+ var(--floating-glow-start) 0%,
1277
+ var(--floating-glow-mid) 50%,
1278
+ var(--floating-glow-end) 100%
1279
+ )
1275
1280
  );
1276
1281
  }
1277
1282
  /* Size variants - ONLY 3 sizes */
@@ -1761,7 +1766,7 @@ em {
1761
1766
  font-size: var(--font-size-input);
1762
1767
  color: var(--foreground);
1763
1768
  cursor: pointer;
1764
- transition: color var(--transition-fast);
1769
+ transition: color var(--dur-fast) var(--ease-in-out);
1765
1770
 
1766
1771
  /* Subtle hover on label text */
1767
1772
  }
@@ -5660,8 +5665,8 @@ em {
5660
5665
  display: flex;
5661
5666
  align-items: center;
5662
5667
  justify-content: center;
5663
- width: 44px;
5664
- height: 44px;
5668
+ width: var(--touch-target);
5669
+ height: var(--touch-target);
5665
5670
  border: none;
5666
5671
  border-radius: var(--radius-full);
5667
5672
  /* --card not --background: surface must be opaque */
@@ -6464,6 +6469,11 @@ input[type='number'] {
6464
6469
  gap: var(--gap-none);
6465
6470
  }
6466
6471
 
6472
+ /* Sub-menu lists: base.css gives every ul list-style disc */
6473
+ .dndev-nav-menu-grid-container {
6474
+ list-style: none;
6475
+ }
6476
+
6467
6477
  /* Navigation trigger - NavigationMenu-specific styles only */
6468
6478
  .dndev-interactive[data-role='nav-trigger'] {
6469
6479
  height: var(--touch-target);
@@ -6475,6 +6485,12 @@ input[type='number'] {
6475
6485
  background-color: rgb(from var(--accent) r g b / 0.5);
6476
6486
  }
6477
6487
 
6488
+ /* Active page: top-level links, overflow dropdown links, sub-menu links */
6489
+ .dndev-interactive[data-role='menu-item'][data-active='true'],
6490
+ .dndev-nav-menu-item-container[data-active='true'] {
6491
+ background-color: rgb(from var(--accent) r g b / 0.5);
6492
+ }
6493
+
6478
6494
  .dndev-nav-menu-trigger-icon {
6479
6495
  position: relative;
6480
6496
  top: 1px;
@@ -8540,7 +8556,7 @@ input[type='number'] {
8540
8556
  .dndev-swipe-action-content {
8541
8557
  flex: 0 0 100%;
8542
8558
  min-inline-size: 0;
8543
- min-block-size: 44px;
8559
+ min-block-size: var(--touch-target);
8544
8560
  scroll-snap-align: start;
8545
8561
  background: var(--background);
8546
8562
  }
@@ -8563,8 +8579,8 @@ input[type='number'] {
8563
8579
  display: flex;
8564
8580
  align-items: center;
8565
8581
  justify-content: center;
8566
- min-inline-size: 44px;
8567
- min-block-size: 44px;
8582
+ min-inline-size: var(--touch-target);
8583
+ min-block-size: var(--touch-target);
8568
8584
  border: 0;
8569
8585
  font: inherit;
8570
8586
  cursor: pointer;
@@ -9149,34 +9165,52 @@ input[type='number'] {
9149
9165
  display: none;
9150
9166
  }
9151
9167
 
9152
- /* Reserve the complete footprint, even when zero is presented as one large +. */
9168
+ /* Collapsed: one square + at the inline end. Expanded: [ − qty + ].
9169
+ Rows are fixed in both states (no vertical shift); only the inline size animates,
9170
+ growing from the inline end toward the inline start. */
9153
9171
  .dndev-quantity-stepper {
9154
- --quantity-target: max(var(--touch-target), 44px);
9155
- /* Include both icon states, padding and inherited text BEFORE placing items.
9156
- Auto rows otherwise grow for the larger collapsed icon, then shrink on expand. */
9157
- --quantity-cell: max(
9158
- var(--quantity-target),
9159
- calc(max(var(--icon-md), var(--quantity-target) * 0.6, 1lh) + 2 * var(--gap-sm))
9160
- );
9172
+ --quantity-target: var(--touch-target);
9173
+ /* The cell IS the touch target: padding and icons fit inside it. State-independent,
9174
+ so the larger collapsed icon never changes the row; only enlarged text grows it. */
9175
+ --quantity-cell: max(var(--quantity-target), calc(1lh + 2 * var(--gap-sm)));
9176
+ /* Quantity field: three tabular digits plus breathing room. */
9177
+ --quantity-field: calc(3ch + var(--gap-sm));
9178
+ --quantity-square: calc(var(--quantity-cell) + 2 * var(--border-hairline));
9179
+ --quantity-expanded: calc(2 * var(--quantity-cell) + var(--quantity-field) + 2 * var(--border-hairline));
9161
9180
  display: inline-grid;
9162
- grid-template-columns: var(--quantity-cell) minmax(var(--quantity-cell), 1fr) var(--quantity-cell);
9181
+ /* − and the quantity shrink to nothing while collapsed or mid-transition; + is always one cell. */
9182
+ grid-template-columns: minmax(0, var(--quantity-cell)) minmax(0, var(--quantity-field)) var(--quantity-cell);
9163
9183
  grid-template-rows: var(--quantity-cell);
9164
- inline-size: calc(3 * var(--quantity-cell));
9165
- min-inline-size: calc(3 * var(--quantity-cell));
9184
+ inline-size: var(--quantity-expanded);
9185
+ min-inline-size: var(--quantity-expanded);
9166
9186
  border: var(--border-hairline) solid var(--border);
9167
9187
  border-radius: var(--radius-interactive);
9168
9188
  background: var(--interactive);
9169
9189
  color: var(--foreground);
9190
+ transition:
9191
+ inline-size var(--dur-normal) var(--ease-in-out),
9192
+ min-inline-size var(--dur-normal) var(--ease-in-out);
9193
+
9194
+ /* A clickable quantity is a target of its own: keep it at the touch target. */
9170
9195
  }
9196
+ .dndev-quantity-stepper:has( > button.dndev-quantity-stepper-value) {
9197
+ --quantity-field: max(var(--quantity-target), calc(3ch + var(--gap-sm)));
9198
+ }
9171
9199
  .dndev-quantity-stepper[data-full-width] {
9172
9200
  display: grid;
9201
+ grid-template-columns: minmax(0, var(--quantity-cell)) minmax(0, 1fr) var(--quantity-cell);
9173
9202
  inline-size: 100%;
9203
+ /* The collapsed + sits at the inline end; resolves to zero once expanded. */
9204
+ margin-inline-start: auto;
9205
+ }
9206
+ .dndev-quantity-stepper[data-collapsed]:not([data-vertical]) {
9207
+ inline-size: var(--quantity-square);
9208
+ min-inline-size: var(--quantity-square);
9174
9209
  }
9175
9210
  .dndev-quantity-stepper[data-disabled] {
9176
9211
  opacity: 0.6;
9177
9212
  }
9178
9213
  .dndev-quantity-stepper > button,.dndev-quantity-stepper > input {
9179
- min-inline-size: var(--quantity-target);
9180
9214
  min-block-size: var(--quantity-target);
9181
9215
  border: none;
9182
9216
  border-radius: inherit;
@@ -9198,9 +9232,10 @@ input[type='number'] {
9198
9232
  display: flex;
9199
9233
  align-items: center;
9200
9234
  justify-content: center;
9201
- padding: var(--gap-sm);
9235
+ /* The cell is the target: the icon centres inside it. */
9236
+ padding: 0;
9202
9237
  cursor: pointer;
9203
- transition: background-color var(--transition-fast);
9238
+ transition: background-color var(--dur-fast) var(--ease-in-out);
9204
9239
  /* Press-and-hold repeats: no text selection or touch callout on long press. */
9205
9240
  -moz-user-select: none;
9206
9241
  user-select: none;
@@ -9211,9 +9246,20 @@ input[type='number'] {
9211
9246
  background: var(--muted);
9212
9247
  }
9213
9248
  :is(.dndev-quantity-stepper > button) > svg {
9249
+ flex-shrink: 0;
9214
9250
  inline-size: var(--icon-md);
9215
9251
  block-size: var(--icon-md);
9216
9252
  }
9253
+ .dndev-quantity-stepper > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper > .dndev-quantity-stepper-value {
9254
+ min-inline-size: 0;
9255
+ /* Clips the icon/digits while the track is narrower than them. The focus ring is
9256
+ the element's own box-shadow, outside its box, so it is never clipped. */
9257
+ overflow: hidden;
9258
+ transition:
9259
+ opacity var(--dur-normal) var(--ease-in-out),
9260
+ visibility var(--dur-normal) var(--ease-in-out),
9261
+ background-color var(--dur-fast) var(--ease-in-out);
9262
+ }
9217
9263
  .dndev-quantity-stepper > .dndev-quantity-stepper-decrement {
9218
9264
  grid-area: 1 / 1;
9219
9265
  }
@@ -9222,12 +9268,13 @@ input[type='number'] {
9222
9268
  }
9223
9269
  .dndev-quantity-stepper > .dndev-quantity-stepper-increment {
9224
9270
  grid-area: 1 / 3;
9271
+ min-inline-size: var(--quantity-target);
9225
9272
  }
9226
9273
  .dndev-quantity-stepper[data-vertical] {
9227
9274
  grid-template-columns: minmax(var(--quantity-cell), 1fr);
9228
9275
  grid-template-rows: repeat(3, var(--quantity-cell));
9229
- inline-size: var(--quantity-cell);
9230
- min-inline-size: var(--quantity-cell);
9276
+ inline-size: var(--quantity-square);
9277
+ min-inline-size: var(--quantity-square);
9231
9278
  }
9232
9279
  .dndev-quantity-stepper[data-vertical][data-full-width] {
9233
9280
  inline-size: 100%;
@@ -9243,15 +9290,17 @@ input[type='number'] {
9243
9290
  }
9244
9291
  .dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-decrement,.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-value {
9245
9292
  visibility: hidden;
9293
+ opacity: 0;
9246
9294
  pointer-events: none;
9247
9295
  }
9248
- .dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment {
9249
- grid-area: 1 / 1 / -1 / -1;
9296
+ .dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment > svg {
9297
+ inline-size: calc(var(--quantity-target) * 0.6);
9298
+ block-size: calc(var(--quantity-target) * 0.6);
9250
9299
  }
9251
- :is(.dndev-quantity-stepper[data-collapsed] > .dndev-quantity-stepper-increment) > svg {
9252
- inline-size: calc(var(--quantity-target) * 0.6);
9253
- block-size: calc(var(--quantity-target) * 0.6);
9254
- }
9300
+ /* Vertical keeps its stacked footprint: the collapsed + spans all three cells. */
9301
+ .dndev-quantity-stepper[data-vertical][data-collapsed] > .dndev-quantity-stepper-increment {
9302
+ grid-area: 1 / 1 / -1 / -1;
9303
+ }
9255
9304
 
9256
9305
  .dndev-quantity-stepper-value {
9257
9306
  box-sizing: border-box;
@@ -9260,7 +9309,7 @@ input[type='number'] {
9260
9309
  justify-content: center;
9261
9310
  inline-size: 100%;
9262
9311
  min-inline-size: 0;
9263
- padding-inline: var(--gap-sm);
9312
+ padding-inline: 0;
9264
9313
  border: none;
9265
9314
  background: none;
9266
9315
  color: inherit;
@@ -9268,11 +9317,13 @@ input[type='number'] {
9268
9317
  font-weight: var(--font-weight-medium);
9269
9318
  font-variant-numeric: tabular-nums;
9270
9319
  text-align: center;
9271
-
9272
9320
  }
9273
9321
 
9274
9322
  @media (prefers-reduced-motion: reduce) {
9275
- .dndev-quantity-stepper > button {
9323
+ .dndev-quantity-stepper,
9324
+ .dndev-quantity-stepper > button,
9325
+ .dndev-quantity-stepper > .dndev-quantity-stepper-decrement,
9326
+ .dndev-quantity-stepper > .dndev-quantity-stepper-value {
9276
9327
  transition: none;
9277
9328
  }
9278
9329
  }
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use client";export{AppBranding,AppIcon,AppTitle,AuthHeader,AuthMenu,Breadcrumbs,CacheSettings,ConsentBanner,DropdownNavigation,FeatureCard,FeatureDisabled,FloatingLanguageSwitcher,FooterBranding,FooterCopyright,FooterLegalLinks,GameContainer,GameFlow,GameTitle,HeaderMenu,HeaderNavigation,Icon,Notifications,PageConfig,PageContainer,ProgressBar,RedirectOverlay,SettingsMenu,Skeleton,TechBento,ThemeToggle}from"./components/index.js";export{EntityCardList,EntityDisplayRenderer,EntityFormRenderer,EntityList,EntityRecommendations,EntityWorkflow,Form,FormControl,FormDescription,FormField,FormItem,FormLabel,FormMessage,useFormField}from"./crud/index.js";export{techLogos}from"./data/techLogos.js";export{AuthGuard,AuthGuardFallback,AuthReturnTo,DnDevNavigationMenu,GoTo,GoToInput,GoToWrapper,Link,NotFoundDocument,NotFoundPage,SignedInRedirect,createAuthConfig,useAuthState,useBack,useCanNavigate,useGoTo,useHasRole,useIsNotFoundDocument,useLocalizedPath,useLocation,useMatch,useNavigate,useNavigationItems,useNavigationRoute,useParams,usePrefetch,useQueryParams,useRedirectGuard,useRefresh,useRouteParam,useRoutePath,useSearchParams,useUrlLanguage,useUserRole,withAuth}from"./routing/index.js";export{allLayoutClasses,cssVariables,layoutClasses,layoutUtilities,layoutVariables}from"./styles/index.js";export{AssetResolver,PasswordResetCallback,Seo,buildProductJsonLd,deriveEntitySeo,isAuthAvailable,isBillingAvailable,isCrudAvailable,isFormStoreAvailable,isOAuthAvailable,resolveFaviconSet,resolveLogo,sanitizeSvg,tList,useAuthSafe,useAuthVisibility,useBillingVisibility,useCrudSafe,useFormStoreSafe,useOAuthSafe,useSeo,useStripeBillingSafe}from"./utils/index.js";
1
+ "use client";export{AppBranding,AppIcon,AppTitle,AuthHeader,AuthMenu,Breadcrumbs,CacheSettings,ConsentBanner,DropdownNavigation,FeatureCard,FeatureDisabled,FloatingLanguageSwitcher,FooterBranding,FooterCopyright,FooterLegalLinks,GameContainer,GameFlow,GameTitle,HeaderMenu,HeaderNavigation,Icon,Notifications,PageConfig,PageContainer,ProgressBar,RedirectOverlay,SettingsMenu,Skeleton,TechBento,ThemeToggle}from"./components/index.js";export{EntityCardList,EntityDisplayRenderer,EntityFormRenderer,EntityList,EntityRecommendations,EntityWorkflow,Form,FormControl,FormDescription,FormField,FormItem,FormLabel,FormMessage,useFormField}from"./crud/index.js";export{techLogos}from"./data/techLogos.js";export{AuthGuard,AuthGuardFallback,AuthReturnTo,DnDevNavigationMenu,GoTo,GoToInput,GoToWrapper,Link,NotFoundDocument,NotFoundPage,SignedInRedirect,createAuthConfig,useAuthState,useBack,useCanNavigate,useGoTo,useHasRole,useIsNotFoundDocument,useLocalizedPath,useLocation,useMatch,useNavigate,useNavigationItems,useNavigationRoute,useParams,usePrefetch,useQueryParams,useRedirectGuard,useRefresh,useRouteParam,useRoutePath,useSearchParams,useUrlLanguage,useUserRole,withAuth}from"./routing/index.js";export{allLayoutClasses,cssVariables,layoutClasses,layoutUtilities,layoutVariables}from"./styles/index.js";export{AssetResolver,PasswordResetCallback,buildProductJsonLd,deriveEntitySeo,isAuthAvailable,isBillingAvailable,isCrudAvailable,isFormStoreAvailable,isOAuthAvailable,resolveFaviconSet,resolveLogo,sanitizeSvg,tList,useAuthSafe,useAuthVisibility,useBillingVisibility,useCrudSafe,useFormStoreSafe,useOAuthSafe,useStripeBillingSafe}from"./utils/index.js";
@@ -1 +1 @@
1
- "use client";import{Trash2 as h}from"lucide-react";import{memo as u,useState as m,useCallback as p}from"react";import{cn as f,Stack as w}from"@donotdev/components";import{isClient as l}from"@donotdev/core";import{jsx as i}from"react/jsx-runtime";var $=u(()=>{let[a,c]=m(!1),d=p(async()=>{a||l()},[a]);return i(w,{as:"button",align:"center",justify:"center",onClick:d,"aria-disabled":a,style:{width:"var(--touch-target)",height:"var(--touch-target)",borderRadius:"var(--radius-lg)",transition:"var(--transition-fast)",cursor:a?"not-allowed":"pointer",...a?{backgroundColor:"rgb(from var(--warning) r g b / 0.2)",color:"var(--warning)"}:{color:"var(--muted-foreground)"}},onMouseEnter:e=>{a||(e.currentTarget.style.backgroundColor="var(--accent)",e.currentTarget.style.color="var(--accent-foreground)",e.currentTarget.style.boxShadow="var(--shadow-xl)")},onMouseLeave:e=>{a||(e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="var(--muted-foreground)",e.currentTarget.style.boxShadow="none")},title:a?"Clearing...":"Clear all caches & stores (test first-visit)","aria-label":"Clear all caches and stores",children:i(h,{style:{width:"1.5rem",height:"1.5rem"},className:f(a&&"dndev-animate-pulse")})})});export{$ as LayoutReset};
1
+ "use client";import{Trash2 as h}from"lucide-react";import{memo as u,useState as m,useCallback as p}from"react";import{cn as f,Stack as w}from"@donotdev/components";import{isClient as l}from"@donotdev/core";import{jsx as i}from"react/jsx-runtime";var $=u(()=>{let[a,c]=m(!1),d=p(async()=>{a||l()},[a]);return i(w,{as:"button",align:"center",justify:"center",onClick:d,"aria-disabled":a,style:{width:"var(--touch-target)",height:"var(--touch-target)",borderRadius:"var(--radius-lg)",transition:"background-color var(--dur-fast) var(--ease-in-out), color var(--dur-fast) var(--ease-in-out), box-shadow var(--dur-fast) var(--ease-in-out)",cursor:a?"not-allowed":"pointer",...a?{backgroundColor:"rgb(from var(--warning) r g b / 0.2)",color:"var(--warning)"}:{color:"var(--muted-foreground)"}},onMouseEnter:e=>{a||(e.currentTarget.style.backgroundColor="var(--accent)",e.currentTarget.style.color="var(--accent-foreground)",e.currentTarget.style.boxShadow="var(--shadow-xl)")},onMouseLeave:e=>{a||(e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="var(--muted-foreground)",e.currentTarget.style.boxShadow="none")},title:a?"Clearing...":"Clear all caches & stores (test first-visit)","aria-label":"Clear all caches and stores",children:i(h,{style:{width:"1.5rem",height:"1.5rem"},className:f(a&&"dndev-animate-pulse")})})});export{$ as LayoutReset};
@@ -14,6 +14,9 @@ import type { ComponentType } from 'react';
14
14
  * - 100% Lighthouse SEO compliance
15
15
  * - Inside a NotFoundDocument (the 404, served for any unknown URL): site-level tags
16
16
  * only, titled with the site name; nothing derived from the URL
17
+ * - Vite prerendered page (static HTML the build wrote: static route, blog post, entity
18
+ * record): the identity tags the build embedded, exactly the prerendered ones; elsewhere
19
+ * `routeSeo` / `routeHeadTags` (@donotdev/core), the derivation the build uses
17
20
  */
18
21
  export declare const AutoMetaTags: ComponentType;
19
22
  /**