@donotdev/ui 0.0.20 → 0.0.22

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 (203) hide show
  1. package/dist/components/auth/AuthHeader.d.ts.map +1 -1
  2. package/dist/components/auth/AuthHeader.js +7 -6
  3. package/dist/components/layout/PageContainer.d.ts.map +1 -1
  4. package/dist/components/layout/PageContainer.js +4 -1
  5. package/dist/components/layout/components/header/HeaderNavigation.d.ts.map +1 -1
  6. package/dist/components/layout/components/header/HeaderNavigation.js +2 -2
  7. package/dist/crud/components/CrudCardLink.d.ts.map +1 -1
  8. package/dist/crud/components/EntityCardList.d.ts.map +1 -1
  9. package/dist/crud/components/EntityCardList.js +2 -2
  10. package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
  11. package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
  12. package/dist/crud/components/EntityFormRenderer.js +1 -1
  13. package/dist/crud/components/EntityList.d.ts.map +1 -1
  14. package/dist/crud/components/EntityList.js +1 -1
  15. package/dist/crud/components/EntityRecommendations.d.ts +0 -9
  16. package/dist/crud/components/EntityRecommendations.d.ts.map +1 -1
  17. package/dist/crud/components/EntityRecommendations.js +10 -0
  18. package/dist/crud/components/EntityWorkflow.d.ts +1 -21
  19. package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
  20. package/dist/crud/components/EntityWorkflow.js +21 -0
  21. package/dist/dndev.css +4 -69
  22. package/dist/files/inter-cyrillic-300-normal.woff +0 -0
  23. package/dist/files/inter-cyrillic-300-normal.woff2 +0 -0
  24. package/dist/files/inter-cyrillic-400-normal.woff +0 -0
  25. package/dist/files/inter-cyrillic-400-normal.woff2 +0 -0
  26. package/dist/files/inter-cyrillic-600-normal.woff +0 -0
  27. package/dist/files/inter-cyrillic-600-normal.woff2 +0 -0
  28. package/dist/files/inter-cyrillic-700-normal.woff +0 -0
  29. package/dist/files/inter-cyrillic-700-normal.woff2 +0 -0
  30. package/dist/files/inter-cyrillic-ext-300-normal.woff +0 -0
  31. package/dist/files/inter-cyrillic-ext-300-normal.woff2 +0 -0
  32. package/dist/files/inter-cyrillic-ext-400-normal.woff +0 -0
  33. package/dist/files/inter-cyrillic-ext-400-normal.woff2 +0 -0
  34. package/dist/files/inter-cyrillic-ext-600-normal.woff +0 -0
  35. package/dist/files/inter-cyrillic-ext-600-normal.woff2 +0 -0
  36. package/dist/files/inter-cyrillic-ext-700-normal.woff +0 -0
  37. package/dist/files/inter-cyrillic-ext-700-normal.woff2 +0 -0
  38. package/dist/files/inter-greek-300-normal.woff +0 -0
  39. package/dist/files/inter-greek-300-normal.woff2 +0 -0
  40. package/dist/files/inter-greek-400-normal.woff +0 -0
  41. package/dist/files/inter-greek-400-normal.woff2 +0 -0
  42. package/dist/files/inter-greek-600-normal.woff +0 -0
  43. package/dist/files/inter-greek-600-normal.woff2 +0 -0
  44. package/dist/files/inter-greek-700-normal.woff +0 -0
  45. package/dist/files/inter-greek-700-normal.woff2 +0 -0
  46. package/dist/files/inter-greek-ext-300-normal.woff +0 -0
  47. package/dist/files/inter-greek-ext-300-normal.woff2 +0 -0
  48. package/dist/files/inter-greek-ext-400-normal.woff +0 -0
  49. package/dist/files/inter-greek-ext-400-normal.woff2 +0 -0
  50. package/dist/files/inter-greek-ext-600-normal.woff +0 -0
  51. package/dist/files/inter-greek-ext-600-normal.woff2 +0 -0
  52. package/dist/files/inter-greek-ext-700-normal.woff +0 -0
  53. package/dist/files/inter-greek-ext-700-normal.woff2 +0 -0
  54. package/dist/files/inter-latin-300-normal.woff +0 -0
  55. package/dist/files/inter-latin-300-normal.woff2 +0 -0
  56. package/dist/files/inter-latin-400-normal.woff +0 -0
  57. package/dist/files/inter-latin-400-normal.woff2 +0 -0
  58. package/dist/files/inter-latin-600-normal.woff +0 -0
  59. package/dist/files/inter-latin-600-normal.woff2 +0 -0
  60. package/dist/files/inter-latin-700-normal.woff +0 -0
  61. package/dist/files/inter-latin-700-normal.woff2 +0 -0
  62. package/dist/files/inter-latin-ext-300-normal.woff +0 -0
  63. package/dist/files/inter-latin-ext-300-normal.woff2 +0 -0
  64. package/dist/files/inter-latin-ext-400-normal.woff +0 -0
  65. package/dist/files/inter-latin-ext-400-normal.woff2 +0 -0
  66. package/dist/files/inter-latin-ext-600-normal.woff +0 -0
  67. package/dist/files/inter-latin-ext-600-normal.woff2 +0 -0
  68. package/dist/files/inter-latin-ext-700-normal.woff +0 -0
  69. package/dist/files/inter-latin-ext-700-normal.woff2 +0 -0
  70. package/dist/files/inter-vietnamese-300-normal.woff +0 -0
  71. package/dist/files/inter-vietnamese-300-normal.woff2 +0 -0
  72. package/dist/files/inter-vietnamese-400-normal.woff +0 -0
  73. package/dist/files/inter-vietnamese-400-normal.woff2 +0 -0
  74. package/dist/files/inter-vietnamese-600-normal.woff +0 -0
  75. package/dist/files/inter-vietnamese-600-normal.woff2 +0 -0
  76. package/dist/files/inter-vietnamese-700-normal.woff +0 -0
  77. package/dist/files/inter-vietnamese-700-normal.woff2 +0 -0
  78. package/dist/files/playfair-display-cyrillic-400-normal.woff +0 -0
  79. package/dist/files/playfair-display-cyrillic-400-normal.woff2 +0 -0
  80. package/dist/files/playfair-display-cyrillic-500-normal.woff +0 -0
  81. package/dist/files/playfair-display-cyrillic-500-normal.woff2 +0 -0
  82. package/dist/files/playfair-display-cyrillic-600-normal.woff +0 -0
  83. package/dist/files/playfair-display-cyrillic-600-normal.woff2 +0 -0
  84. package/dist/files/playfair-display-cyrillic-700-normal.woff +0 -0
  85. package/dist/files/playfair-display-cyrillic-700-normal.woff2 +0 -0
  86. package/dist/files/playfair-display-latin-400-normal.woff +0 -0
  87. package/dist/files/playfair-display-latin-400-normal.woff2 +0 -0
  88. package/dist/files/playfair-display-latin-500-normal.woff +0 -0
  89. package/dist/files/playfair-display-latin-500-normal.woff2 +0 -0
  90. package/dist/files/playfair-display-latin-600-normal.woff +0 -0
  91. package/dist/files/playfair-display-latin-600-normal.woff2 +0 -0
  92. package/dist/files/playfair-display-latin-700-normal.woff +0 -0
  93. package/dist/files/playfair-display-latin-700-normal.woff2 +0 -0
  94. package/dist/files/playfair-display-latin-ext-400-normal.woff +0 -0
  95. package/dist/files/playfair-display-latin-ext-400-normal.woff2 +0 -0
  96. package/dist/files/playfair-display-latin-ext-500-normal.woff +0 -0
  97. package/dist/files/playfair-display-latin-ext-500-normal.woff2 +0 -0
  98. package/dist/files/playfair-display-latin-ext-600-normal.woff +0 -0
  99. package/dist/files/playfair-display-latin-ext-600-normal.woff2 +0 -0
  100. package/dist/files/playfair-display-latin-ext-700-normal.woff +0 -0
  101. package/dist/files/playfair-display-latin-ext-700-normal.woff2 +0 -0
  102. package/dist/files/playfair-display-vietnamese-400-normal.woff +0 -0
  103. package/dist/files/playfair-display-vietnamese-400-normal.woff2 +0 -0
  104. package/dist/files/playfair-display-vietnamese-500-normal.woff +0 -0
  105. package/dist/files/playfair-display-vietnamese-500-normal.woff2 +0 -0
  106. package/dist/files/playfair-display-vietnamese-600-normal.woff +0 -0
  107. package/dist/files/playfair-display-vietnamese-600-normal.woff2 +0 -0
  108. package/dist/files/playfair-display-vietnamese-700-normal.woff +0 -0
  109. package/dist/files/playfair-display-vietnamese-700-normal.woff2 +0 -0
  110. package/dist/files/press-start-2p-cyrillic-400-normal.woff +0 -0
  111. package/dist/files/press-start-2p-cyrillic-400-normal.woff2 +0 -0
  112. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff +0 -0
  113. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff2 +0 -0
  114. package/dist/files/press-start-2p-greek-400-normal.woff +0 -0
  115. package/dist/files/press-start-2p-greek-400-normal.woff2 +0 -0
  116. package/dist/files/press-start-2p-latin-400-normal.woff +0 -0
  117. package/dist/files/press-start-2p-latin-400-normal.woff2 +0 -0
  118. package/dist/files/press-start-2p-latin-ext-400-normal.woff +0 -0
  119. package/dist/files/press-start-2p-latin-ext-400-normal.woff2 +0 -0
  120. package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
  121. package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
  122. package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
  123. package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
  124. package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
  125. package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
  126. package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
  127. package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
  128. package/dist/files/roboto-greek-400-normal.woff +0 -0
  129. package/dist/files/roboto-greek-400-normal.woff2 +0 -0
  130. package/dist/files/roboto-greek-700-normal.woff +0 -0
  131. package/dist/files/roboto-greek-700-normal.woff2 +0 -0
  132. package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
  133. package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
  134. package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
  135. package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
  136. package/dist/files/roboto-latin-400-normal.woff +0 -0
  137. package/dist/files/roboto-latin-400-normal.woff2 +0 -0
  138. package/dist/files/roboto-latin-700-normal.woff +0 -0
  139. package/dist/files/roboto-latin-700-normal.woff2 +0 -0
  140. package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
  141. package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
  142. package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
  143. package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
  144. package/dist/files/roboto-math-400-normal.woff +0 -0
  145. package/dist/files/roboto-math-400-normal.woff2 +0 -0
  146. package/dist/files/roboto-math-700-normal.woff +0 -0
  147. package/dist/files/roboto-math-700-normal.woff2 +0 -0
  148. package/dist/files/roboto-symbols-400-normal.woff +0 -0
  149. package/dist/files/roboto-symbols-400-normal.woff2 +0 -0
  150. package/dist/files/roboto-symbols-700-normal.woff +0 -0
  151. package/dist/files/roboto-symbols-700-normal.woff2 +0 -0
  152. package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
  153. package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
  154. package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
  155. package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
  156. package/dist/files/space-grotesk-latin-300-normal.woff +0 -0
  157. package/dist/files/space-grotesk-latin-300-normal.woff2 +0 -0
  158. package/dist/files/space-grotesk-latin-400-normal.woff +0 -0
  159. package/dist/files/space-grotesk-latin-400-normal.woff2 +0 -0
  160. package/dist/files/space-grotesk-latin-500-normal.woff +0 -0
  161. package/dist/files/space-grotesk-latin-500-normal.woff2 +0 -0
  162. package/dist/files/space-grotesk-latin-600-normal.woff +0 -0
  163. package/dist/files/space-grotesk-latin-600-normal.woff2 +0 -0
  164. package/dist/files/space-grotesk-latin-700-normal.woff +0 -0
  165. package/dist/files/space-grotesk-latin-700-normal.woff2 +0 -0
  166. package/dist/files/space-grotesk-latin-ext-300-normal.woff +0 -0
  167. package/dist/files/space-grotesk-latin-ext-300-normal.woff2 +0 -0
  168. package/dist/files/space-grotesk-latin-ext-400-normal.woff +0 -0
  169. package/dist/files/space-grotesk-latin-ext-400-normal.woff2 +0 -0
  170. package/dist/files/space-grotesk-latin-ext-500-normal.woff +0 -0
  171. package/dist/files/space-grotesk-latin-ext-500-normal.woff2 +0 -0
  172. package/dist/files/space-grotesk-latin-ext-600-normal.woff +0 -0
  173. package/dist/files/space-grotesk-latin-ext-600-normal.woff2 +0 -0
  174. package/dist/files/space-grotesk-latin-ext-700-normal.woff +0 -0
  175. package/dist/files/space-grotesk-latin-ext-700-normal.woff2 +0 -0
  176. package/dist/files/space-grotesk-vietnamese-300-normal.woff +0 -0
  177. package/dist/files/space-grotesk-vietnamese-300-normal.woff2 +0 -0
  178. package/dist/files/space-grotesk-vietnamese-400-normal.woff +0 -0
  179. package/dist/files/space-grotesk-vietnamese-400-normal.woff2 +0 -0
  180. package/dist/files/space-grotesk-vietnamese-500-normal.woff +0 -0
  181. package/dist/files/space-grotesk-vietnamese-500-normal.woff2 +0 -0
  182. package/dist/files/space-grotesk-vietnamese-600-normal.woff +0 -0
  183. package/dist/files/space-grotesk-vietnamese-600-normal.woff2 +0 -0
  184. package/dist/files/space-grotesk-vietnamese-700-normal.woff +0 -0
  185. package/dist/files/space-grotesk-vietnamese-700-normal.woff2 +0 -0
  186. package/dist/index.js +4 -4
  187. package/dist/internal/initializers/BaseStoresInitializer.d.ts.map +1 -1
  188. package/dist/internal/initializers/BaseStoresInitializer.js +0 -1
  189. package/dist/internal/layout/components/FontPreloadLinks.d.ts.map +1 -1
  190. package/dist/internal/layout/components/FontPreloadLinks.js +17 -6
  191. package/dist/internal/providers/NavigationProvider.d.ts +1 -1
  192. package/dist/internal/providers/NavigationProvider.d.ts.map +1 -1
  193. package/dist/internal/providers/NavigationProvider.js +1 -1
  194. package/dist/internal/providers/UIProviders.d.ts.map +1 -1
  195. package/dist/internal/providers/UIProviders.js +4 -1
  196. package/dist/routing/AuthGuard.d.ts.map +1 -1
  197. package/dist/routing/NavigationItem.js +1 -1
  198. package/dist/routing/useGoTo.d.ts.map +1 -1
  199. package/dist/styles/index.css +4 -69
  200. package/dist/utils/index.d.ts +1 -0
  201. package/dist/utils/index.d.ts.map +1 -1
  202. package/dist/utils/index.js +1 -0
  203. package/package.json +10 -9
@@ -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';
package/dist/dndev.css CHANGED
@@ -5930,52 +5930,6 @@ input[type='number'] {
5930
5930
 
5931
5931
  /* Root is display: grid - items are direct children */
5932
5932
 
5933
- /* Grid columns via data-cols attribute */
5934
-
5935
- .dndev-radio-group[data-cols] {
5936
- width: -moz-fit-content;
5937
- width: fit-content;
5938
- margin-inline: auto; /* Self-center in parent */
5939
- }
5940
-
5941
- .dndev-radio-group[data-cols='2'] {
5942
- grid-template-columns: repeat(2, auto);
5943
- }
5944
-
5945
- .dndev-radio-group[data-cols='3'] {
5946
- grid-template-columns: repeat(3, auto);
5947
- }
5948
-
5949
- .dndev-radio-group[data-cols='4'] {
5950
- grid-template-columns: repeat(4, auto);
5951
- }
5952
-
5953
- .dndev-radio-group[data-cols='5'] {
5954
- grid-template-columns: repeat(5, auto);
5955
- }
5956
-
5957
- .dndev-radio-group[data-cols='6'] {
5958
- grid-template-columns: repeat(6, auto);
5959
- }
5960
-
5961
- .dndev-radio-group[data-cols='10'] {
5962
- grid-template-columns: repeat(10, auto);
5963
- }
5964
-
5965
- .dndev-radio-group[data-cols='12'] {
5966
- grid-template-columns: repeat(12, auto);
5967
- }
5968
-
5969
- .dndev-radio-group[data-cols='auto-fit'] {
5970
- grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
5971
- width: 100%;
5972
- }
5973
-
5974
- .dndev-radio-group[data-cols='auto-fill'] {
5975
- grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
5976
- width: 100%;
5977
- }
5978
-
5979
5933
  /* Variant colors for checked labels - override base pattern */
5980
5934
 
5981
5935
  .dndev-radio-group[data-variant='primary'] label:has([data-state='checked']) {
@@ -9378,12 +9332,12 @@ input[type='number'] {
9378
9332
  box-shadow: var(--shadow-xl);
9379
9333
  }
9380
9334
 
9381
- /* Phase badge - absolute overlay top-start */
9335
+ /* Phase badge - absolute overlay top-end */
9382
9336
 
9383
9337
  .dndev-roadmap-phase {
9384
9338
  position: absolute;
9385
9339
  top: var(--gap-sm);
9386
- inset-inline-start: var(--gap-sm);
9340
+ inset-inline-end: var(--gap-sm);
9387
9341
  font-size: var(--font-size-xs);
9388
9342
  font-weight: var(--font-weight-bold);
9389
9343
  text-transform: uppercase;
@@ -11135,27 +11089,8 @@ h4[data-variant='code'] {
11135
11089
  }
11136
11090
  }
11137
11091
 
11138
- /* RTL slide animations */
11139
-
11140
- :is(:dir(rtl) @keyframes routeSlideOut) from {
11141
- opacity: 1;
11142
- transform: translateX(0);
11143
- }
11144
-
11145
- :is(:dir(rtl) @keyframes routeSlideOut) to {
11146
- opacity: 0;
11147
- transform: translateX(100%);
11148
- }
11149
-
11150
- :is(:dir(rtl) @keyframes routeSlideIn) from {
11151
- opacity: 0;
11152
- transform: translateX(-100%);
11153
- }
11154
-
11155
- :is(:dir(rtl) @keyframes routeSlideIn) to {
11156
- opacity: 1;
11157
- transform: translateX(0);
11158
- }
11092
+ /* RTL slide animations: @keyframes can't be scoped with :dir(rtl).
11093
+ RTL direction is handled via logical properties in the consuming components. */
11159
11094
 
11160
11095
  /* Routing animations - applied to main content area */
11161
11096