@donotdev/ui 0.0.21 → 0.0.23

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 (44) hide show
  1. package/dist/CookieConsent-UVTR7CWW.js +1 -0
  2. package/dist/GoToDialog-CR4VOVXT.js +1 -0
  3. package/dist/chunk-O2XFH626.js +1 -0
  4. package/dist/chunk-XHGRMKOY.js +1 -0
  5. package/dist/components/auth/AuthHeader.d.ts.map +1 -1
  6. package/dist/components/auth/AuthHeader.js +7 -6
  7. package/dist/components/layout/PageContainer.d.ts.map +1 -1
  8. package/dist/components/layout/PageContainer.js +4 -1
  9. package/dist/components/layout/components/header/HeaderNavigation.d.ts.map +1 -1
  10. package/dist/components/layout/components/header/HeaderNavigation.js +2 -2
  11. package/dist/crud/components/CrudCardLink.d.ts.map +1 -1
  12. package/dist/crud/components/EntityCardList.d.ts.map +1 -1
  13. package/dist/crud/components/EntityCardList.js +2 -2
  14. package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
  15. package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
  16. package/dist/crud/components/EntityFormRenderer.js +1 -1
  17. package/dist/crud/components/EntityList.d.ts.map +1 -1
  18. package/dist/crud/components/EntityList.js +1 -1
  19. package/dist/crud/components/EntityRecommendations.d.ts +0 -9
  20. package/dist/crud/components/EntityRecommendations.d.ts.map +1 -1
  21. package/dist/crud/components/EntityRecommendations.js +10 -0
  22. package/dist/crud/components/EntityWorkflow.d.ts +1 -21
  23. package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
  24. package/dist/crud/components/EntityWorkflow.js +21 -0
  25. package/dist/dndev-next.css +10152 -0
  26. package/dist/dndev.css +2 -67
  27. package/dist/index.js +4 -4
  28. package/dist/internal/initializers/BaseStoresInitializer.d.ts.map +1 -1
  29. package/dist/internal/initializers/BaseStoresInitializer.js +0 -1
  30. package/dist/internal/layout/components/FontPreloadLinks.d.ts.map +1 -1
  31. package/dist/internal/layout/components/FontPreloadLinks.js +17 -6
  32. package/dist/internal/providers/NavigationProvider.d.ts +1 -1
  33. package/dist/internal/providers/NavigationProvider.d.ts.map +1 -1
  34. package/dist/internal/providers/NavigationProvider.js +1 -1
  35. package/dist/internal/providers/UIProviders.d.ts.map +1 -1
  36. package/dist/internal/providers/UIProviders.js +4 -1
  37. package/dist/routing/AuthGuard.d.ts.map +1 -1
  38. package/dist/routing/NavigationItem.js +1 -1
  39. package/dist/routing/useGoTo.d.ts.map +1 -1
  40. package/dist/styles/index.css +2 -67
  41. package/dist/utils/index.d.ts +1 -0
  42. package/dist/utils/index.d.ts.map +1 -1
  43. package/dist/utils/index.js +1 -0
  44. package/package.json +28 -10
@@ -0,0 +1 @@
1
+ import"./chunk-O2XFH626.js";import{Cookie as T,Settings as _,Shield as G,BarChart3 as H,Target as K}from"lucide-react";import{useState as w,useEffect as v,useRef as V}from"react";import{Accordion as W,Button as p,BUTTON_VARIANT as h,Card as b,Switch as q,Text as f,cn as J,Stack as i}from"@donotdev/components";import{handleError as Q,useConsent as d,getCookieExamples as y,hasOptionalCookies as X}from"@donotdev/core";import{CONSENT_CATEGORY as l}from"@donotdev/core";import{useTranslation as Z}from"@donotdev/core";import{isClient as $}from"@donotdev/core";import{Fragment as te,jsx as n,jsxs as a}from"react/jsx-runtime";function ee({position:D="bottom",showBranding:ne=!0,brandingText:oe="Powered by DoNotDev Framework",className:O=""}){let r=d("hasConsented"),m=d("categories"),S=d("acceptAll"),B=d("declineAll"),I=d("updateCategory"),g=d("showBanner"),{t}=Z("cookies"),[u,x]=w(!1),[C,c]=w(!r||g),[N,A]=w(m),E=V(null);v(()=>{g&&c(!0)},[g]);let L=Object.keys(m),P=[{id:l.NECESSARY,icon:G,title:t("essentialCookies"),description:t("essentialDescription"),examples:y("necessary")||t("essentialExamples"),locked:!0},{id:l.FUNCTIONAL,icon:T,title:t("functionalCookies"),description:t("functionalDescription"),examples:y("functional")||t("functionalExamples"),legalNotice:t("functionalLegalNotice"),locked:!1},{id:l.ANALYTICS,icon:H,title:t("analyticsCookies"),description:t("analyticsDescription"),examples:y("analytics")||t("analyticsExamples"),locked:!1},{id:l.MARKETING,icon:K,title:t("marketingCookies"),description:t("marketingDescription"),examples:y("marketing")||t("marketingExamples"),locked:!1}].filter(e=>L.includes(e.id)),k=X();if(v(()=>{!r&&!k&&S()},[r,k,S]),v(()=>{let e={...m};if(u){let o=e;Object.keys(o).forEach(s=>{s!==l.NECESSARY&&o[s]===!1&&(o[s]=!0)})}A(e)},[m,u]),v(()=>{if(!$()||r||!C)return;let e=s=>{E.current&&!E.current.contains(s.target)&&c(!1)},o=setTimeout(()=>{document.addEventListener("mousedown",e)},100);return()=>{clearTimeout(o),document.removeEventListener("mousedown",e)}},[r,C]),r&&!g)return null;let R=()=>{try{Object.entries(N).forEach(([e,o])=>{if(e!==l.NECESSARY&&o!==void 0){let s=e;Object.values(l).includes(s)&&I(s,!!o)}}),x(!1),c(!1)}catch(e){Q(e,{userMessage:"Error saving preferences",context:{operation:"save_preferences"},severity:"warning",log:!0,reportToSentry:!1,showNotification:!1})}},U=()=>{S(),c(!1)},z=()=>{B(),c(!1)},F=a(i,{children:[n(f,{as:"p",variant:"muted",level:"small",children:t("cookieBannerDescription")}),k&&n(W,{type:"single",collapsible:!0,value:u?"preferences":"",onValueChange:e=>x(e==="preferences"),items:[{value:"preferences",trigger:a(i,{direction:"row",align:"center",gap:"tight",children:[n(_,{className:"dndev-size-md"}),t("customize")]}),content:n(i,{children:P.map(e=>{let o=e.icon,s=N[e.id]??!1;return n(b,{content:a(i,{direction:"row",align:"center",justify:"between",children:[a(i,{direction:"row",align:"start",gap:"tight",style:{flex:1},children:[n(o,{className:"dndev-size-md",style:{color:"var(--primary)",marginTop:"0.125rem"}}),a(i,{gap:"tight",children:[n(f,{as:"span",level:"body",style:{fontWeight:600},children:e.title}),n(f,{as:"span",variant:"muted",level:"small",children:e.description}),e.examples&&n(f,{as:"span",variant:"muted",level:"small",style:{fontStyle:"italic"},children:e.examples})]})]}),e.locked?n(f,{as:"span",variant:"muted",level:"small",children:t("alwaysOn")}):n(q,{checked:s,onCheckedChange:j=>A(M=>({...M,[e.id]:j}))})]})},e.id)})})}]})]}),Y=u?a(i,{direction:"row",gap:"tight",style:{width:"100%"},children:[n(p,{onClick:R,variant:h.DEFAULT,style:{flex:1},children:t("savePreferences","Save Preferences")}),n(p,{onClick:()=>x(!1),variant:h.OUTLINE,style:{flex:1},children:t("form.cancel","Cancel")})]}):a(i,{direction:"row",gap:"tight",style:{width:"100%"},children:[n(p,{onClick:U,variant:h.DEFAULT,style:{flex:1},children:t("acceptAll")}),k&&n(p,{onClick:z,variant:h.OUTLINE,style:{flex:1},children:t("declineOptional")})]});return a(te,{children:[C&&n(b,{ref:E,className:J("dndev-fixed dndev-z-modal",O),icon:T,title:t("cookiePreferences"),content:F,footer:Y,style:{[D==="top"?"top":"bottom"]:"var(--gap-md)",insetInlineStart:"var(--gap-md)",insetInlineEnd:"var(--gap-md)",maxWidth:"100%",width:"calc(100% - var(--gap-md) * 2)"}}),!C&&!r&&n(p,{onClick:()=>c(!0),className:"dndev-fixed dndev-z-toast",style:{bottom:"var(--gap-md)",insetInlineStart:"var(--gap-md)"},icon:T,title:t("cookiePreferences")})]})}var pe=ee;export{pe as default};
@@ -0,0 +1 @@
1
+ import{a as u,g as T}from"./chunk-XHGRMKOY.js";import"./chunk-O2XFH626.js";import{Link as G,Star as I}from"lucide-react";import{useCallback as k,useEffect as D,useRef as O}from"react";import{Badge as S,Command as R,CommandDialog as F}from"@donotdev/components";import{useOverlayStore as v,useTranslation as A}from"@donotdev/core";import{jsx as o,jsxs as t}from"react/jsx-runtime";var E=()=>{let{t:e}=A("dndev"),d=O(null),m=v(a=>a.isCommandDialogOpen),r=v(a=>a.closeCommandDialog),{navigationItems:f,favoriteItems:s,recentItems:i,toggleFavorite:b,isFavorite:c,navigateToItem:h}=T();D(()=>{m&&requestAnimationFrame(()=>{d.current?.focus()})},[m]);let C=k(a=>{h(a),r()},[h,r]),p=k((a,g=!0)=>a.map(n=>({label:n.label,value:n.path,description:n.path!==n.label?n.path:void 0,icon:o(u,{icon:n.icon,fallback:G}),badge:n.badge?o(S,{children:n.badge}):void 0,onSelect:()=>C(n.path),rightSlot:g?o("button",{type:"button",onClick:N=>{N.stopPropagation(),b(n.path)},className:"dndev-command-favorite-button","data-favorited":c(n.path),"aria-label":c(n.path)?e("globalGoTo.unfavorite","Remove from favorites"):e("globalGoTo.favorite","Add to favorites"),children:o(u,{icon:I,className:"dndev-size-sm"})}):void 0})),[C,b,c,e]),l=[];if(s.length>0&&l.push({heading:e("globalGoTo.favorites","Favorites"),items:p(s,!1)}),i.length>0){let a=i.flatMap(g=>p([g],!0));a.length>0&&l.push({heading:e("globalGoTo.recent","Recent"),separator:s.length>0,items:a})}l.push({heading:e("globalGoTo.allPages","All Pages"),separator:s.length>0||i.length>0,items:p(f)});let y=f.length>0;return t(F,{open:m,onOpenChange:a=>a?null:r(),children:[o(R,{placeholder:e("globalGoTo.placeholder","Search pages..."),emptyMessage:y?e("globalGoTo.noResults","No results found."):e("globalGoTo.empty","No pages available."),groups:l}),o("div",{className:"dndev-command-footer",children:t("div",{className:"dndev-command-footer-shortcuts",children:[t("div",{className:"dndev-command-footer-shortcut",children:[o("kbd",{className:"dndev-command-footer-key",children:"\u2318K"}),o("span",{children:e("globalGoTo.shortcutOpen","Open")})]}),t("div",{className:"dndev-command-footer-shortcut",children:[o("kbd",{className:"dndev-command-footer-key",children:"\u2191"}),o("kbd",{className:"dndev-command-footer-key",children:"\u2193"}),o("span",{children:e("globalGoTo.shortcutNavigate","Navigate")})]}),t("div",{className:"dndev-command-footer-shortcut",children:[o("kbd",{className:"dndev-command-footer-key",children:"\u21B5"}),o("span",{children:e("globalGoTo.shortcutSelect","Select")})]}),t("div",{className:"dndev-command-footer-shortcut",children:[o("kbd",{className:"dndev-command-footer-key",children:"Esc"}),o("span",{children:e("globalGoTo.shortcutClose","Close")})]})]})})]})},L=()=>v(d=>d.isCommandDialogOpen)?o(E,{}):null,K=L;export{K as default};
@@ -0,0 +1 @@
1
+ var d=Object.defineProperty;var e=(b,a,c)=>a in b?d(b,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[a]=c;var f=(b,a,c)=>e(b,typeof a!="symbol"?a+"":a,c);export{f as a};
@@ -0,0 +1 @@
1
+ import*as l from"lucide-react";import{isValidElement as P}from"react";import{cn as m}from"@donotdev/components";import{jsx as c}from"react/jsx-runtime";function S(e){if(!e)return l.Palette;let t=e.replace(/['"]/g,"");return l[t]||l.Palette}var b=({icon:e,fallback:t,className:r,ariaHidden:s=!1})=>{let o=e||t;if(!o)return null;let i="dndev-size-md";if(typeof o=="function"||typeof o=="object"&&o!==null&&"render"in o)return c(o,{className:m(i,r),style:{flexShrink:0},"aria-hidden":s});if(typeof o=="string"){if(!/^[a-zA-Z0-9_-]+$/.test(o))return c("span",{className:m(i,r),style:{display:"inline-flex",alignItems:"center",justifyContent:"center"},"aria-hidden":s,children:o});let p=S(o);return c(p,{className:m(i,r),style:{flexShrink:0},"aria-hidden":s})}return P(o)?c("span",{className:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center"},"aria-hidden":s,children:o}):c("span",{className:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center"},"aria-hidden":s,children:o})},z=b;import*as E from"@donotdev/auth";import{DEGRADED_AUTH_API as L}from"@donotdev/core";var d=E?.useAuth;function T(e){return L[e]}function y(e){return d?d(e):T(e)}var O=typeof d=="function";import{useMemo as h}from"react";import{useNavigationStore as K}from"@donotdev/core";import{USER_ROLES as F}from"@donotdev/core";import{useLocation as k}from"@donotdev/ui/routing/hooks";function g(){let e=k(),t=y("user"),r=!!t,s=t?.role||F.GUEST,o=K(i=>!i||typeof i.getFilteredRoutes!="function"?[]:i.getFilteredRoutes({authenticated:r,role:s}));return h(()=>Array.isArray(o)?o.map(i=>({...i,isActive:_(i.path,e.pathname),hasChildren:!1,children:void 0})).sort((i,a)=>i.label.localeCompare(a.label,void 0,{sensitivity:"base"})):[],[o,e.pathname])}function J(e){let t=g();return h(()=>t.find(r=>r.path===e),[t,e])}function _(e,t){return e==="/"?t==="/":t===e?!0:t.startsWith(e+"/")}import{useCallback as f,useMemo as A}from"react";import{useNavigationStore as u}from"@donotdev/core";import{useNavigate as j}from"@donotdev/ui/routing/hooks";var te=()=>{let e=j(),t=g()??[],r=u(n=>n.favorites),s=u(n=>n.recent),o=u(n=>n.toggleFavorite),i=u(n=>n.isFavorite),a=u(n=>n.addRecent),v=A(()=>t.length?t.filter(n=>r.includes(n.path)):[],[r,t]),p=A(()=>t.length?t.filter(C=>s.includes(C.path)).slice(0,5):[],[s,t]),N=f(n=>{o(n)},[o]),R=f(n=>i(n),[i]),I=f(n=>{a(n)},[a]),x=f(n=>{I(n),e(n)},[e,I]);return{navigationItems:t,favoriteItems:v,recentItems:p,toggleFavorite:N,isFavorite:R,navigateToItem:x}};export{b as a,z as b,y as c,O as d,g as e,J as f,te as g};
@@ -1 +1 @@
1
- {"version":3,"file":"AuthHeader.d.ts","sourceRoot":"","sources":["../../../src/components/auth/AuthHeader.tsx"],"names":[],"mappings":"AAeA,OAAO,EAKL,OAAO,EACR,MAAM,sBAAsB,CAAC;AAU9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAyB3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;IACjD,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,aAAa,CAAC,eAAe,CA4IrD,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"AuthHeader.d.ts","sourceRoot":"","sources":["../../../src/components/auth/AuthHeader.tsx"],"names":[],"mappings":"AAeA,OAAO,EAKL,OAAO,EACR,MAAM,sBAAsB,CAAC;AAU9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAuD3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;IACjD,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,aAAa,CAAC,eAAe,CAmJrD,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -20,6 +20,9 @@ import { Link } from '../../routing';
20
20
  import { useAuthSafe, useAuthVisibility } from '../../utils';
21
21
  // Lazy load auth components for code splitting; degrade to null if auth pkg missing
22
22
  const NullComponent = () => null;
23
+ function SignInButton({ display, signInLabel, className, style, children, ...props }) {
24
+ return (_jsx(Button, { variant: BUTTON_VARIANT.OUTLINE, icon: User, display: display, tooltip: signInLabel, className: className, style: style, ...props, children: children ?? signInLabel }));
25
+ }
23
26
  // @ts-expect-error - lazy() type doesn't account for graceful degradation fallback
24
27
  const AuthPartnerButton = lazy(async () => {
25
28
  try {
@@ -60,18 +63,16 @@ export const AuthHeader = ({ display = DISPLAY.AUTO, className, style, }) => {
60
63
  if (shouldHide || !isReady) {
61
64
  return null;
62
65
  }
63
- // Local component for Sign In button (DRY)
64
- const SignInButton = ({ children, ...props }) => (_jsx(Button, { variant: BUTTON_VARIANT.OUTLINE, icon: User, display: display, tooltip: signInLabel, className: className, style: style, ...props, children: children ?? signInLabel }));
65
66
  // NOT AUTHENTICATED
66
67
  // Button's display prop + CSS container queries handle responsive label visibility
67
68
  if (!isAuthenticated) {
68
69
  if (loginPath !== undefined) {
69
- return (_jsx(Link, { path: loginPath, prefetch: true, children: _jsx(SignInButton, {}) }));
70
+ return (_jsx(Link, { path: loginPath, prefetch: true, children: _jsx(SignInButton, { display: display, signInLabel: signInLabel, className: className, style: style }) }));
70
71
  }
71
72
  const targetProvider = enabled[0];
72
73
  // Use Dialog if password/emailLink provider is present (better UX for forms)
73
74
  if (hasPasswordProvider) {
74
- return (_jsx(Dialog, { trigger: _jsx(SignInButton, {}), title: signInLabel, open: dialogOpen, onOpenChange: setDialogOpen, "data-content-size": "form", children: _jsx(Suspense, { fallback: _jsx("div", { style: {
75
+ return (_jsx(Dialog, { trigger: _jsx(SignInButton, { display: display, signInLabel: signInLabel, className: className, style: style }), title: signInLabel, open: dialogOpen, onOpenChange: setDialogOpen, "data-content-size": "form", children: _jsx(Suspense, { fallback: _jsx("div", { style: {
75
76
  padding: 'var(--gap-md)',
76
77
  fontSize: 'var(--font-size-sm)',
77
78
  color: 'var(--muted-foreground)',
@@ -79,14 +80,14 @@ export const AuthHeader = ({ display = DISPLAY.AUTO, className, style, }) => {
79
80
  }
80
81
  // Use DropdownMenu if multiple OAuth providers (no password/emailLink)
81
82
  if (enabled.length > 1) {
82
- return (_jsx(DropdownMenu, { trigger: _jsx(SignInButton, {}), children: _jsx(Suspense, { fallback: _jsx("div", { style: {
83
+ return (_jsx(DropdownMenu, { trigger: _jsx(SignInButton, { display: display, signInLabel: signInLabel, className: className, style: style }), children: _jsx(Suspense, { fallback: _jsx("div", { style: {
83
84
  padding: 'var(--gap-md)',
84
85
  fontSize: 'var(--font-size-sm)',
85
86
  color: 'var(--muted-foreground)',
86
87
  }, children: loadingLabel }), children: _jsx(MultipleAuthProviders, { spacing: "tight" }) }) }));
87
88
  }
88
89
  // Normal case: single non-password provider → use AuthPartnerButton directly
89
- return (_jsx(Suspense, { fallback: _jsx(SignInButton, { disabled: isLoading, tooltip: isLoading ? loadingLabel : signInLabel, children: isLoading ? loadingLabel : signInLabel }), children: _jsx(AuthPartnerButton, { partnerId: targetProvider, display: display, className: className, style: style }) }));
90
+ return (_jsx(Suspense, { fallback: _jsx(SignInButton, { display: display, signInLabel: signInLabel, className: className, style: style, disabled: isLoading, tooltip: isLoading ? loadingLabel : signInLabel, children: isLoading ? loadingLabel : signInLabel }), children: _jsx(AuthPartnerButton, { partnerId: targetProvider, display: display, className: className, style: style }) }));
90
91
  }
91
92
  // AUTHENTICATED - Delegate to AuthMenu
92
93
  return (_jsx(AuthMenu, { display: display, loginPath: loginPath, className: className, style: style }));
@@ -1 +1 @@
1
- {"version":3,"file":"PageContainer.d.ts","sourceRoot":"","sources":["../../../src/components/layout/PageContainer.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAK9C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,MAAM,GACN,UAAU,GACV,MAAM,GACN,QAAQ,GACR,OAAO,CAAC;AAEZ;;GAEG;AACH,UAAU,kBAAkB;IAC1B,4BAA4B;IAC5B,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAE/B,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,oBAAoB;IACpB,QAAQ,EAAE,SAAS,CAAC;IAEpB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,kBAAkB,CA4B3D,CAAC"}
1
+ {"version":3,"file":"PageContainer.d.ts","sourceRoot":"","sources":["../../../src/components/layout/PageContainer.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAK9C,OAAO,KAAK,EAAkB,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAYtE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,MAAM,GACN,UAAU,GACV,MAAM,GACN,QAAQ,GACR,OAAO,CAAC;AAEZ;;GAEG;AACH,UAAU,kBAAkB;IAC1B,4BAA4B;IAC5B,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAE/B,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,oBAAoB;IACpB,QAAQ,EAAE,SAAS,CAAC;IAEpB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,kBAAkB,CAqB3D,CAAC"}
@@ -13,6 +13,9 @@ import { Suspense } from 'react';
13
13
  import { cn } from '@donotdev/components';
14
14
  import DnDevErrorBoundary from '../../internal/common/DnDevErrorBoundary';
15
15
  import RouteErrorFallback from '../../internal/common/RouteErrorFallback';
16
+ function PageContainerErrorFallback(props) {
17
+ return (_jsx(Suspense, { fallback: _jsx("div", { children: "Loading error fallback..." }), children: _jsx(RouteErrorFallback, { ...props }) }));
18
+ }
16
19
  /**
17
20
  * PageContainer - Layout wrapper with semantic width constraints
18
21
  *
@@ -31,5 +34,5 @@ import RouteErrorFallback from '../../internal/common/RouteErrorFallback';
31
34
  *
32
35
  */
33
36
  export const PageContainer = ({ variant = 'standard', density, className, children, centered = true, gapFirst = false, }) => {
34
- return (_jsx(DnDevErrorBoundary, { level: "route", fallback: (props) => (_jsx(Suspense, { fallback: _jsx("div", { children: "Loading error fallback..." }), children: _jsx(RouteErrorFallback, { ...props }) })), children: _jsx("div", { className: cn('dndev-container', className), "data-variant": variant, "data-density": density, "data-centered": centered ? 'true' : 'false', "data-gap-first": gapFirst ? 'true' : undefined, children: children }) }));
37
+ return (_jsx(DnDevErrorBoundary, { level: "route", fallback: PageContainerErrorFallback, children: _jsx("div", { className: cn('dndev-container', className), "data-variant": variant, "data-density": density, "data-centered": centered ? 'true' : 'false', "data-gap-first": gapFirst ? 'true' : undefined, children: children }) }));
35
38
  };
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderNavigation.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/header/HeaderNavigation.tsx"],"names":[],"mappings":"AAsBA,OAAO,EACL,OAAO,EAIR,MAAM,sBAAsB,CAAC;AAa9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,WAAW,qBAAqB;IACpC,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;IACjD;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,gBAAgB,EAAE,aAAa,CAAC,qBAAqB,CA4E1D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"HeaderNavigation.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/components/header/HeaderNavigation.tsx"],"names":[],"mappings":"AAqBA,OAAO,EACL,OAAO,EAIR,MAAM,sBAAsB,CAAC;AAa9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,WAAW,qBAAqB;IACpC,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;IACjD;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,gBAAgB,EAAE,aAAa,CAAC,qBAAqB,CA4E1D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -20,11 +20,11 @@ import { Link as LinkIcon } from 'lucide-react';
20
20
  import { DISPLAY, DropdownMenu, Button, } from '@donotdev/components';
21
21
  import { cn } from '@donotdev/components';
22
22
  import { useBreakpoint, useTranslation } from '@donotdev/core';
23
- import { Link } from '../../../../routing/Link';
24
- import { Icon } from '../../../common/icon';
25
23
  import { DnDevNavigationMenu } from '../../../../routing/DnDevNavigationMenu';
24
+ import { Link } from '../../../../routing/Link';
26
25
  import { NavigationItemComponent } from '../../../../routing/NavigationItem';
27
26
  import { useNavigationItems, useNavigationRoute, } from '../../../../routing/useNavigation';
27
+ import { Icon } from '../../../common/icon';
28
28
  /**
29
29
  * HeaderNavigation - DISPLAY-aware adaptive navigation component
30
30
  *
@@ -1 +1 @@
1
- {"version":3,"file":"CrudCardLink.d.ts","sourceRoot":"","sources":["../../../src/crud/components/CrudCardLink.tsx"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIpD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,2CAkBvE;AAED,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"CrudCardLink.d.ts","sourceRoot":"","sources":["../../../src/crud/components/CrudCardLink.tsx"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAKpD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,2CAkBvE;AAED,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EntityCardList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityCardList.tsx"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,mBAAmB,EAAgB,MAAM,gBAAgB,CAAC;AAIxE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAEpC;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,QAAQ,EACR,OAAO,EACP,IAAmB,EACnB,SAA0B,EAAE,2BAA2B;AACvD,MAAM,EACN,WAAmB,EACnB,WAAW,EACX,IAAI,GACL,EAAE,mBAAmB,2CA2LrB"}
1
+ {"version":3,"file":"EntityCardList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityCardList.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,mBAAmB,EAAgB,MAAM,gBAAgB,CAAC;AAWxE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAEpC;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,QAAQ,EACR,OAAO,EACP,IAAmB,EACnB,SAA0B,EAAE,2BAA2B;AACvD,MAAM,EACN,WAAmB,EACnB,WAAW,EACX,IAAI,GACL,EAAE,mBAAmB,2CA2LrB"}
@@ -13,13 +13,13 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
13
13
  * @since 0.0.1
14
14
  * @author AMBROISE PARK Consulting
15
15
  */
16
- import { useMemo, useCallback } from 'react';
17
16
  import { Heart } from 'lucide-react';
17
+ import { useMemo, useCallback } from 'react';
18
18
  import { Card, Grid, Stack, Text, Spinner, Section, Button, } from '@donotdev/components';
19
19
  import { useTranslation, getListCardFieldNames } from '@donotdev/core';
20
- import { useNavigate } from '../../routing';
21
20
  import { useCrudCardList, EntityFilters, useEntityFavorites, useCrudFilters, } from '@donotdev/crud';
22
21
  import { CrudCard } from './CrudCardLink';
22
+ import { useNavigate } from '../../routing';
23
23
  /**
24
24
  * Entity Card List Component - Card grid view for public/user-facing browsing
25
25
  *
@@ -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,2CA0M/B;AAED,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"EntityDisplayRenderer.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityDisplayRenderer.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,0BAA0B,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAK/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"}
@@ -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,2CA2c5B;AAED,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"EntityFormRenderer.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityFormRenderer.tsx"],"names":[],"mappings":"AAyBA,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"}
@@ -14,8 +14,8 @@ import { useEffect, useId, useMemo, useState } from 'react';
14
14
  import { FormProvider } from 'react-hook-form';
15
15
  import { Badge, Button, DropdownMenu, Grid, Stack, Spinner, } from '@donotdev/components';
16
16
  import { hasRoleAccess, useTranslation } from '@donotdev/core';
17
- import { useNavigate } from '../../routing';
18
17
  import { DisplayFieldRenderer, FormFieldRenderer, UploadProvider, useEntityForm, useUnsavedChangesWarning, useFormStore, useFieldConditions, } from '@donotdev/crud';
18
+ import { useNavigate } from '../../routing';
19
19
  import { useAuthSafe } from '../../utils/useAuthSafe';
20
20
  /**
21
21
  * EntityFormRenderer - Dumb component that renders a form from entity definition.
@@ -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,UAAmB,EACnB,QAAQ,EAAE,YAAY,EACtB,YAAY,EACZ,UAAiB,GAClB,EAAE,eAAe,2CAqRjB"}
1
+ {"version":3,"file":"EntityList.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityList.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAatD,YAAY,EAAE,eAAe,EAAE,CAAC;AAEhC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,QAAQ,EACR,OAAO,EACP,WAAmB,EACnB,UAAmB,EACnB,QAAQ,EAAE,YAAY,EACtB,YAAY,EACZ,UAAiB,GAClB,EAAE,eAAe,2CAqRjB"}
@@ -17,8 +17,8 @@ import { RefreshCw, Plus, Trash2, Edit, Search } from 'lucide-react';
17
17
  import { useMemo, useCallback, useState } from 'react';
18
18
  import { DataTable, Button, Stack, ActionButton, Section, Input, } from '@donotdev/components';
19
19
  import { useTranslation } from '@donotdev/core';
20
- import { useNavigate } from '../../routing';
21
20
  import { translateFieldLabel, useCrud, useCrudList, EntityFilters, formatValue, useReferenceResolver, } from '@donotdev/crud';
21
+ import { useNavigate } from '../../routing';
22
22
  /**
23
23
  * Entity List Component - Table view for admin/internal operations
24
24
  *
@@ -1,12 +1,3 @@
1
- /**
2
- * @fileoverview Reusable recommendations section for related entities
3
- * @description Fetches and displays related entity cards in a grid.
4
- * Caller defines "related by what" via queryOptions.
5
- *
6
- * @version 0.0.1
7
- * @since 0.0.15
8
- * @author AMBROISE PARK Consulting
9
- */
10
1
  import type { EntityRecommendationsProps } from '@donotdev/core';
11
2
  /**
12
3
  * Displays a grid of related entity cards.
@@ -1 +1 @@
1
- {"version":3,"file":"EntityRecommendations.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityRecommendations.tsx"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAMjE;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,IAAQ,EACR,SAAS,GACV,EAAE,0BAA0B,kDAuB5B"}
1
+ {"version":3,"file":"EntityRecommendations.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityRecommendations.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAKjE;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,IAAQ,EACR,SAAS,GACV,EAAE,0BAA0B,kDAuB5B"}
@@ -1,5 +1,15 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
+ // packages/ui/src/crud/components/EntityRecommendations.tsx
4
+ /**
5
+ * @fileoverview Reusable recommendations section for related entities
6
+ * @description Fetches and displays related entity cards in a grid.
7
+ * Caller defines "related by what" via queryOptions.
8
+ *
9
+ * @version 0.0.1
10
+ * @since 0.0.15
11
+ * @author AMBROISE PARK Consulting
12
+ */
3
13
  import { Section } from '@donotdev/components';
4
14
  import { useCrudCardList } from '@donotdev/crud';
5
15
  import { CrudCard } from './CrudCardLink';
@@ -1,25 +1,5 @@
1
- /**
2
- * @fileoverview EntityWorkflow component
3
- * @description Renders a multi-step entity workflow with stepper navigation.
4
- * Uses useEntityWorkflow for orchestration and EntityFormRenderer for each step's form.
5
- *
6
- * @example
7
- * ```tsx
8
- * <EntityWorkflow
9
- * workflow={onboardingWorkflow}
10
- * onComplete={async (data) => {
11
- * await api.createAccount(data);
12
- * navigate('/dashboard');
13
- * }}
14
- * />
15
- * ```
16
- *
17
- * @version 0.0.1
18
- * @since 0.0.1
19
- * @author AMBROISE PARK Consulting
20
- */
21
- import type { ReactNode } from 'react';
22
1
  import { type WorkflowConfig, type EntityWorkflowReturn } from '@donotdev/crud';
2
+ import type { ReactNode } from 'react';
23
3
  /** Props for EntityWorkflow */
24
4
  export interface EntityWorkflowProps {
25
5
  /** Workflow configuration from defineWorkflow() */
@@ -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,CAAC,CAAC;IACxC,qCAAqC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,oBAAoB,KAAK,SAAS,CAAC;IACnD,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,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"}
1
+ {"version":3,"file":"EntityWorkflow.d.ts","sourceRoot":"","sources":["../../../src/crud/components/EntityWorkflow.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAEL,KAAK,cAAc,EAEnB,KAAK,oBAAoB,EAC1B,MAAM,gBAAgB,CAAC;AAIxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,+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,CAAC,CAAC;IACxC,qCAAqC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,oBAAoB,KAAK,SAAS,CAAC;IACnD,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,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"}
@@ -1,5 +1,26 @@
1
1
  'use client';
2
2
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ // packages/ui/src/crud/components/EntityWorkflow.tsx
4
+ /**
5
+ * @fileoverview EntityWorkflow component
6
+ * @description Renders a multi-step entity workflow with stepper navigation.
7
+ * Uses useEntityWorkflow for orchestration and EntityFormRenderer for each step's form.
8
+ *
9
+ * @example
10
+ * ```tsx
11
+ * <EntityWorkflow
12
+ * workflow={onboardingWorkflow}
13
+ * onComplete={async (data) => {
14
+ * await api.createAccount(data);
15
+ * navigate('/dashboard');
16
+ * }}
17
+ * />
18
+ * ```
19
+ *
20
+ * @version 0.0.1
21
+ * @since 0.0.1
22
+ * @author AMBROISE PARK Consulting
23
+ */
3
24
  import { Button, Stack, Stepper } from '@donotdev/components';
4
25
  import { useTranslation } from '@donotdev/core';
5
26
  import { useEntityWorkflow, } from '@donotdev/crud';