@donotdev/ui 0.0.30 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +3 -3
- package/dist/components/auth/AuthHeader.d.ts +2 -2
- package/dist/components/auth/AuthHeader.js +2 -2
- package/dist/components/auth/AuthMenu.d.ts +2 -2
- package/dist/components/auth/AuthMenu.js +1 -1
- package/dist/components/common/FeatureCard.js +1 -1
- package/dist/components/common/FeatureDisabled.d.ts +1 -1
- package/dist/components/common/FeatureDisabled.js +2 -2
- package/dist/components/common/ProgressBar.d.ts +1 -1
- package/dist/components/common/ProgressBar.js +2 -2
- package/dist/components/common/RedirectOverlay.d.ts +1 -1
- package/dist/components/common/RedirectOverlay.js +2 -2
- package/dist/components/common/Skeleton.d.ts +7 -7
- package/dist/components/common/Skeleton.js +8 -8
- package/dist/components/common/icon.d.ts +1 -1
- package/dist/components/common/icon.js +2 -2
- package/dist/components/common/index.d.ts +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/components/cookie-consent/ConsentBanner.d.ts +1 -1
- package/dist/components/cookie-consent/ConsentBanner.js +2 -2
- package/dist/components/cookie-consent/index.d.ts +1 -1
- package/dist/components/cookie-consent/index.js +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/layout/GameContainer.d.ts +1 -1
- package/dist/components/layout/GameContainer.js +2 -2
- package/dist/components/layout/GameFlow.d.ts +2 -2
- package/dist/components/layout/GameFlow.js +2 -2
- package/dist/components/layout/PageContainer.d.ts +1 -1
- package/dist/components/layout/PageContainer.js +2 -2
- package/dist/components/layout/components/Breadcrumbs.d.ts +1 -1
- package/dist/components/layout/components/Breadcrumbs.js +2 -2
- package/dist/components/layout/components/DropdownNavigation.d.ts +1 -1
- package/dist/components/layout/components/DropdownNavigation.js +2 -2
- package/dist/components/layout/components/FloatingLanguageSwitcher.d.ts +1 -1
- package/dist/components/layout/components/FloatingLanguageSwitcher.js +2 -2
- package/dist/components/layout/components/Notifications.d.ts +4 -4
- package/dist/components/layout/components/Notifications.js +3 -3
- package/dist/components/layout/components/header/AppBranding.d.ts +2 -2
- package/dist/components/layout/components/header/AppBranding.js +2 -2
- package/dist/components/layout/components/header/AppIcon.d.ts +1 -1
- package/dist/components/layout/components/header/AppIcon.js +2 -2
- package/dist/components/layout/components/header/AppTitle.d.ts +1 -1
- package/dist/components/layout/components/header/AppTitle.js +2 -2
- package/dist/components/layout/components/header/CacheSettings.d.ts +1 -1
- package/dist/components/layout/components/header/CacheSettings.js +3 -3
- package/dist/components/layout/components/header/GameTitle.d.ts +1 -1
- package/dist/components/layout/components/header/GameTitle.js +2 -2
- package/dist/components/layout/components/header/HeaderMenu.d.ts +1 -1
- package/dist/components/layout/components/header/HeaderMenu.js +2 -2
- package/dist/components/layout/components/header/HeaderNavigation.d.ts +1 -1
- package/dist/components/layout/components/header/HeaderNavigation.js +2 -2
- package/dist/components/layout/components/header/SettingsMenu.d.ts +1 -1
- package/dist/components/layout/components/header/SettingsMenu.js +2 -2
- package/dist/components/layout/components/header/ThemeToggle.d.ts +1 -1
- package/dist/components/layout/components/header/ThemeToggle.js +2 -2
- package/dist/components/layout/components/index.d.ts +1 -1
- package/dist/components/layout/components/index.js +1 -1
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/license/LicenseWatermark.d.ts +1 -1
- package/dist/components/license/LicenseWatermark.js +2 -2
- package/dist/components/license/watermarkData.js +1 -1
- package/dist/crud/components/CrudCardLink.d.ts +1 -1
- package/dist/crud/components/EntityCardList.d.ts.map +1 -1
- package/dist/crud/components/EntityCardList.js +15 -12
- package/dist/crud/components/EntityDisplayRenderer.js +1 -1
- package/dist/crud/components/EntityFormRenderer.d.ts +1 -1
- package/dist/crud/components/EntityFormRenderer.js +2 -2
- package/dist/crud/components/EntityList.js +1 -1
- package/dist/crud/components/EntityRecommendations.d.ts +1 -1
- package/dist/crud/components/EntityRecommendations.js +2 -2
- package/dist/crud/components/EntityWorkflow.js +1 -1
- package/dist/crud/components/Form.d.ts +10 -10
- package/dist/crud/components/Form.js +12 -12
- package/dist/crud/components/index.d.ts +1 -1
- package/dist/crud/components/index.js +1 -1
- package/dist/crud/crudImports.d.ts +1 -1
- package/dist/crud/crudImports.d.ts.map +1 -1
- package/dist/crud/crudImports.js +1 -1
- package/dist/crud/index.d.ts +1 -1
- package/dist/crud/index.js +1 -1
- package/dist/data/techLogos.d.ts +1 -1
- package/dist/data/techLogos.js +1 -1
- package/dist/dndev-next.css +176 -6
- package/dist/dndev.css +227 -6
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/internal/common/DnDevErrorBoundary.d.ts +2 -2
- package/dist/internal/common/DnDevErrorBoundary.js +2 -2
- package/dist/internal/common/ErrorFallback.d.ts +1 -1
- package/dist/internal/common/ErrorFallback.js +2 -2
- package/dist/internal/common/GlobalErrorFallback.d.ts +1 -1
- package/dist/internal/common/GlobalErrorFallback.js +2 -2
- package/dist/internal/common/RouteErrorFallback.d.ts +1 -1
- package/dist/internal/common/RouteErrorFallback.js +2 -2
- package/dist/internal/devtools/DebugTools.js +1 -1
- package/dist/internal/devtools/components/AuthDebugButton.js +1 -1
- package/dist/internal/devtools/components/ConfigTab.js +1 -1
- package/dist/internal/devtools/components/CookieTab.js +1 -1
- package/dist/internal/devtools/components/DebugDialog.js +1 -1
- package/dist/internal/devtools/components/DesignTab.js +1 -1
- package/dist/internal/devtools/components/LayoutReset.js +2 -2
- package/dist/internal/devtools/components/MaskedValue.js +1 -1
- package/dist/internal/devtools/components/StoresTab.js +1 -1
- package/dist/internal/devtools/components/index.d.ts +1 -1
- package/dist/internal/devtools/components/index.js +1 -1
- package/dist/internal/devtools/index.d.ts +1 -1
- package/dist/internal/devtools/index.js +1 -1
- package/dist/internal/devtools/types.d.ts +9 -9
- package/dist/internal/devtools/utils/envVarDiscovery.js +1 -1
- package/dist/internal/devtools/utils/index.d.ts +1 -1
- package/dist/internal/devtools/utils/index.js +1 -1
- package/dist/internal/devtools/utils/maskSensitive.js +1 -1
- package/dist/internal/devtools/utils/virtualModuleInspector.js +1 -1
- package/dist/internal/initializers/BaseStoresInitializer.d.ts +3 -3
- package/dist/internal/initializers/BaseStoresInitializer.js +2 -2
- package/dist/internal/initializers/NextJsStoresInitializer.d.ts +1 -1
- package/dist/internal/initializers/NextJsStoresInitializer.js +2 -2
- package/dist/internal/initializers/ViteStoresInitializer.d.ts +1 -1
- package/dist/internal/initializers/ViteStoresInitializer.js +2 -2
- package/dist/internal/initializers/index.d.ts +1 -1
- package/dist/internal/initializers/index.js +1 -1
- package/dist/internal/layout/DnDevLayout.d.ts +2 -2
- package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
- package/dist/internal/layout/DnDevLayout.js +7 -3
- package/dist/internal/layout/components/AutoMetaTags.d.ts +4 -2
- package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
- package/dist/internal/layout/components/AutoMetaTags.js +143 -39
- package/dist/internal/layout/components/FaviconHead.d.ts +1 -1
- package/dist/internal/layout/components/FaviconHead.js +2 -2
- package/dist/internal/layout/components/FontPreloadLinks.d.ts +1 -1
- package/dist/internal/layout/components/FontPreloadLinks.js +1 -1
- package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts +1 -1
- package/dist/internal/layout/components/NextJsAutoMetaTags.js +2 -2
- package/dist/internal/layout/components/PWAUpdateNotification.d.ts +1 -1
- package/dist/internal/layout/components/PWAUpdateNotification.js +2 -2
- package/dist/internal/layout/components/PerformanceHints.js +1 -1
- package/dist/internal/layout/components/footer/FooterBranding.d.ts +1 -1
- package/dist/internal/layout/components/footer/FooterBranding.js +2 -2
- package/dist/internal/layout/components/footer/FooterCopyright.d.ts +1 -1
- package/dist/internal/layout/components/footer/FooterCopyright.js +2 -2
- package/dist/internal/layout/components/footer/FooterLegalLinks.d.ts +1 -1
- package/dist/internal/layout/components/footer/FooterLegalLinks.js +2 -2
- package/dist/internal/layout/components/index.d.ts +1 -1
- package/dist/internal/layout/components/index.js +1 -1
- package/dist/internal/layout/config/defaults.js +1 -1
- package/dist/internal/layout/config/index.d.ts +1 -1
- package/dist/internal/layout/config/index.js +1 -1
- package/dist/internal/layout/config/presets/admin.d.ts +1 -1
- package/dist/internal/layout/config/presets/blog.d.ts +1 -1
- package/dist/internal/layout/config/presets/docs.js +1 -1
- package/dist/internal/layout/config/presets/game.js +1 -1
- package/dist/internal/layout/config/presets/index.d.ts +1 -1
- package/dist/internal/layout/config/presets/landing.js +1 -1
- package/dist/internal/layout/config/presets/moolti.js +1 -1
- package/dist/internal/layout/config/presets/plain.d.ts +2 -2
- package/dist/internal/layout/config/presets/plain.d.ts.map +1 -1
- package/dist/internal/layout/config/presets/plain.js +12 -1
- package/dist/internal/layout/renderers/index.d.ts +1 -1
- package/dist/internal/layout/renderers/index.js +1 -1
- package/dist/internal/layout/zones/DnDevFooter.js +1 -1
- package/dist/internal/layout/zones/DnDevHeader.js +1 -1
- package/dist/internal/layout/zones/DnDevMergedBar.js +1 -1
- package/dist/internal/layout/zones/DnDevSidebar.js +1 -1
- package/dist/internal/layout/zones/index.d.ts +1 -1
- package/dist/internal/layout/zones/index.js +1 -1
- package/dist/internal/providers/NavigationProvider.d.ts +1 -1
- package/dist/internal/providers/NavigationProvider.js +2 -2
- package/dist/internal/providers/SentryInitializer.d.ts +1 -1
- package/dist/internal/providers/SentryInitializer.js +2 -2
- package/dist/internal/providers/UIProviders.d.ts +1 -1
- package/dist/internal/providers/UIProviders.js +3 -3
- package/dist/internal/providers/index.d.ts +1 -1
- package/dist/internal/providers/index.js +1 -1
- package/dist/next.d.ts +1 -1
- package/dist/next.js +1 -1
- package/dist/providers/NextJsAppProviders.d.ts +1 -1
- package/dist/providers/NextJsAppProviders.js +2 -2
- package/dist/providers/ViteAppProviders.d.ts +1 -1
- package/dist/providers/ViteAppProviders.js +2 -2
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/routing/404.d.ts +2 -2
- package/dist/routing/404.js +3 -3
- package/dist/routing/AuthGuard.d.ts +8 -8
- package/dist/routing/AuthGuard.js +8 -8
- package/dist/routing/AuthGuardFallback.d.ts +1 -1
- package/dist/routing/AuthGuardFallback.js +2 -2
- package/dist/routing/DnDevNavigationMenu.d.ts +1 -1
- package/dist/routing/DnDevNavigationMenu.js +2 -2
- package/dist/routing/GoTo.js +1 -1
- package/dist/routing/GoToDialog.js +1 -1
- package/dist/routing/GoToInput.js +1 -1
- package/dist/routing/GoToWrapper.d.ts +1 -1
- package/dist/routing/GoToWrapper.js +2 -2
- package/dist/routing/Link.d.ts +2 -2
- package/dist/routing/Link.js +2 -2
- package/dist/routing/NavigationItem.d.ts +1 -1
- package/dist/routing/NavigationItem.js +2 -2
- package/dist/routing/hooks/hooks.next.d.ts +1 -1
- package/dist/routing/hooks/hooks.vite.d.ts +1 -1
- package/dist/routing/hooks/index.d.ts +1 -1
- package/dist/routing/hooks/index.js +1 -1
- package/dist/routing/hooks/types.d.ts +1 -1
- package/dist/routing/hooks/useLocation.next.js +1 -1
- package/dist/routing/hooks/useLocation.vite.js +1 -1
- package/dist/routing/hooks/useNavigate.next.js +1 -1
- package/dist/routing/hooks/useNavigate.vite.js +1 -1
- package/dist/routing/hooks/useQueryParams.next.js +1 -1
- package/dist/routing/hooks/useQueryParams.vite.js +1 -1
- package/dist/routing/hooks/useRedirectGuard.next.js +1 -1
- package/dist/routing/hooks/useRedirectGuard.vite.js +1 -1
- package/dist/routing/hooks/useRouteParam.next.js +1 -1
- package/dist/routing/hooks/useRouteParam.vite.js +1 -1
- package/dist/routing/index.d.ts +1 -1
- package/dist/routing/index.js +1 -1
- package/dist/routing/useGoTo.js +1 -1
- package/dist/routing/useNavigation.d.ts +2 -2
- package/dist/routing/useNavigation.js +3 -3
- package/dist/routing/useRouteDiscovery.d.ts +7 -7
- package/dist/routing/useRouteDiscovery.js +6 -6
- package/dist/styles/index.css +227 -6
- package/dist/styles/index.d.ts +1 -1
- package/dist/styles/index.js +1 -1
- package/dist/styles/layoutConstants.d.ts +6 -6
- package/dist/styles/layoutConstants.js +5 -5
- package/dist/utils/assetResolver.d.ts +5 -5
- package/dist/utils/assetResolver.js +4 -4
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/sanitizeSvg.js +1 -1
- package/dist/utils/tList.js +1 -1
- package/dist/utils/useAuthSafe.js +1 -1
- package/dist/utils/useAuthVisibility.js +1 -1
- package/dist/utils/useBillingVisibility.js +1 -1
- package/dist/utils/useCrudSafe.js +1 -1
- package/dist/utils/useFormStoreSafe.js +1 -1
- package/dist/utils/useOAuthSafe.d.ts +1 -1
- package/dist/utils/useStripeBillingSafe.js +1 -1
- package/dist/vite-routing/AppRoutes.js +1 -1
- package/dist/vite-routing/RootLayout.d.ts +1 -1
- package/dist/vite-routing/RootLayout.js +5 -5
- package/dist/vite-routing/index.d.ts +1 -1
- package/dist/vite-routing/index.js +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +1 -1
- package/package.json +7 -7
|
@@ -9,7 +9,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
9
9
|
* badge counts, dropdown display, and proper accessibility. It integrates
|
|
10
10
|
* with notification stores and provides real-time updates.
|
|
11
11
|
*
|
|
12
|
-
* @version 0.0
|
|
12
|
+
* @version 0.1.0
|
|
13
13
|
* @since 0.0.1
|
|
14
14
|
* @author AMBROISE PARK Consulting
|
|
15
15
|
* @example
|
|
@@ -75,7 +75,7 @@ const SIZE_VARIANTS = {
|
|
|
75
75
|
* This component provides a complete notification system that can be
|
|
76
76
|
* easily integrated into any layout header or navigation area.
|
|
77
77
|
*
|
|
78
|
-
* @version 0.0
|
|
78
|
+
* @version 0.1.0
|
|
79
79
|
* @since 0.0.1
|
|
80
80
|
* @author AMBROISE PARK Consulting
|
|
81
81
|
* @param props - Notifications component props
|
|
@@ -109,7 +109,7 @@ const SIZE_VARIANTS = {
|
|
|
109
109
|
* />
|
|
110
110
|
* ```
|
|
111
111
|
*
|
|
112
|
-
* @version 0.0
|
|
112
|
+
* @version 0.1.0
|
|
113
113
|
* @since 0.0.1
|
|
114
114
|
* @author AMBROISE PARK Consulting
|
|
115
115
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @description Unified branding component supporting COMPACT (logo only),
|
|
4
4
|
* FULL (logo + title), and AUTO (container-responsive) display modes.
|
|
5
5
|
*
|
|
6
|
-
* @version 0.0
|
|
6
|
+
* @version 0.1.0
|
|
7
7
|
* @since 0.0.1
|
|
8
8
|
* @author AMBROISE PARK Consulting
|
|
9
9
|
*/
|
|
@@ -40,7 +40,7 @@ export interface AppBrandingProps {
|
|
|
40
40
|
* <AppBranding display="full" />
|
|
41
41
|
* ```
|
|
42
42
|
*
|
|
43
|
-
* @version 0.0
|
|
43
|
+
* @version 0.1.0
|
|
44
44
|
* @since 0.0.1
|
|
45
45
|
* @author AMBROISE PARK Consulting
|
|
46
46
|
*/
|
|
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
* @description Unified branding component supporting COMPACT (logo only),
|
|
6
6
|
* FULL (logo + title), and AUTO (container-responsive) display modes.
|
|
7
7
|
*
|
|
8
|
-
* @version 0.0
|
|
8
|
+
* @version 0.1.0
|
|
9
9
|
* @since 0.0.1
|
|
10
10
|
* @author AMBROISE PARK Consulting
|
|
11
11
|
*/
|
|
@@ -32,7 +32,7 @@ import { sanitizeSvg } from '../../../../utils/sanitizeSvg';
|
|
|
32
32
|
* <AppBranding display="full" />
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
|
-
* @version 0.0
|
|
35
|
+
* @version 0.1.0
|
|
36
36
|
* @since 0.0.1
|
|
37
37
|
* @author AMBROISE PARK Consulting
|
|
38
38
|
*/
|
|
@@ -13,7 +13,7 @@ export interface AppIconProps {
|
|
|
13
13
|
* CSS variables (var(--primary), var(--accent)) work automatically when SVG is inlined.
|
|
14
14
|
* Falls back to img tag if logo.svg is not available.
|
|
15
15
|
*
|
|
16
|
-
* @version 0.0
|
|
16
|
+
* @version 0.1.0
|
|
17
17
|
* @since 0.0.1
|
|
18
18
|
* @author AMBROISE PARK Consulting
|
|
19
19
|
*/
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
6
6
|
* Inlines SVG content from build-time data for CSS variable theming.
|
|
7
7
|
* Works in both CSR and SSR. Falls back to img tag if logo missing.
|
|
8
8
|
*
|
|
9
|
-
* @version 0.0
|
|
9
|
+
* @version 0.1.0
|
|
10
10
|
* @since 0.0.1
|
|
11
11
|
* @author AMBROISE PARK Consulting
|
|
12
12
|
*/
|
|
@@ -28,7 +28,7 @@ const SIZE_STYLES = {
|
|
|
28
28
|
* CSS variables (var(--primary), var(--accent)) work automatically when SVG is inlined.
|
|
29
29
|
* Falls back to img tag if logo.svg is not available.
|
|
30
30
|
*
|
|
31
|
-
* @version 0.0
|
|
31
|
+
* @version 0.1.0
|
|
32
32
|
* @since 0.0.1
|
|
33
33
|
* @author AMBROISE PARK Consulting
|
|
34
34
|
*/
|
|
@@ -10,7 +10,7 @@ export interface AppTitleProps {
|
|
|
10
10
|
* AppTitle - Simple app title using text-base xl
|
|
11
11
|
* Automatically gets app name from AppConfig if title not provided
|
|
12
12
|
*
|
|
13
|
-
* @version 0.0
|
|
13
|
+
* @version 0.1.0
|
|
14
14
|
* @since 0.0.1
|
|
15
15
|
* @author AMBROISE PARK Consulting
|
|
16
16
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview AppTitle component
|
|
5
5
|
* @description Simple app title using text-base styling
|
|
6
6
|
*
|
|
7
|
-
* @version 0.0
|
|
7
|
+
* @version 0.1.0
|
|
8
8
|
* @since 0.0.1
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
@@ -15,7 +15,7 @@ import { Link } from '../../../../routing/Link';
|
|
|
15
15
|
* AppTitle - Simple app title using text-base xl
|
|
16
16
|
* Automatically gets app name from AppConfig if title not provided
|
|
17
17
|
*
|
|
18
|
-
* @version 0.0
|
|
18
|
+
* @version 0.1.0
|
|
19
19
|
* @since 0.0.1
|
|
20
20
|
* @author AMBROISE PARK Consulting
|
|
21
21
|
*/
|
|
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
* @fileoverview CacheSettings component
|
|
6
6
|
* @description Cache settings component for clearing various caches
|
|
7
7
|
*
|
|
8
|
-
* @version 0.0
|
|
8
|
+
* @version 0.1.0
|
|
9
9
|
* @since 0.0.1
|
|
10
10
|
* @author AMBROISE PARK Consulting
|
|
11
11
|
*/
|
|
@@ -21,7 +21,7 @@ import { useRefresh } from '@donotdev/ui/routing/hooks';
|
|
|
21
21
|
* Provides UI for clearing browser caches including localStorage, sessionStorage,
|
|
22
22
|
* cookies, IndexedDB, and service worker caches.
|
|
23
23
|
*
|
|
24
|
-
* @version 0.0
|
|
24
|
+
* @version 0.1.0
|
|
25
25
|
* @since 0.0.1
|
|
26
26
|
* @author AMBROISE PARK Consulting
|
|
27
27
|
*/
|
|
@@ -152,7 +152,7 @@ function CacheSettings() {
|
|
|
152
152
|
// Clear all cookies for current domain
|
|
153
153
|
document.cookie.split(';').forEach((cookie) => {
|
|
154
154
|
const eqPos = cookie.indexOf('=');
|
|
155
|
-
const name = eqPos > -1 ? cookie.
|
|
155
|
+
const name = eqPos > -1 ? cookie.slice(0, eqPos) : cookie;
|
|
156
156
|
document.cookie = `${name.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`;
|
|
157
157
|
document.cookie = `${name.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=${window.location.hostname}`;
|
|
158
158
|
document.cookie = `${name.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=.${window.location.hostname}`;
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview Game Title Component
|
|
5
5
|
* @description Dynamic title for game preset header. Reads from layout store.
|
|
6
6
|
*
|
|
7
|
-
* @version 0.0
|
|
7
|
+
* @version 0.1.0
|
|
8
8
|
* @since 0.0.1
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
@@ -20,7 +20,7 @@ import { Link } from '../../../../routing';
|
|
|
20
20
|
*
|
|
21
21
|
* @param props - GameTitle component props
|
|
22
22
|
* @returns React component
|
|
23
|
-
* @version 0.0
|
|
23
|
+
* @version 0.1.0
|
|
24
24
|
* @since 0.0.1
|
|
25
25
|
* @author AMBROISE PARK Consulting
|
|
26
26
|
*/
|
|
@@ -14,7 +14,7 @@ export interface HeaderMenuProps {
|
|
|
14
14
|
* Labels are forced visible via CSS (.dndev-menu-content forces labels visible).
|
|
15
15
|
* No cloneElement needed - pure CSS solution.
|
|
16
16
|
*
|
|
17
|
-
* @version 0.0
|
|
17
|
+
* @version 0.1.0
|
|
18
18
|
* @since 0.0.1
|
|
19
19
|
* @author AMBROISE PARK Consulting
|
|
20
20
|
*
|
|
@@ -9,7 +9,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
9
9
|
* - Adapts to any number of buttons
|
|
10
10
|
* - Reusable across all layout presets
|
|
11
11
|
*
|
|
12
|
-
* @version 0.0
|
|
12
|
+
* @version 0.1.0
|
|
13
13
|
* @since 0.0.1
|
|
14
14
|
* @author AMBROISE PARK Consulting
|
|
15
15
|
*/
|
|
@@ -24,7 +24,7 @@ import { Button, BUTTON_VARIANT, DropdownMenu } from '@donotdev/components';
|
|
|
24
24
|
* Labels are forced visible via CSS (.dndev-menu-content forces labels visible).
|
|
25
25
|
* No cloneElement needed - pure CSS solution.
|
|
26
26
|
*
|
|
27
|
-
* @version 0.0
|
|
27
|
+
* @version 0.1.0
|
|
28
28
|
* @since 0.0.1
|
|
29
29
|
* @author AMBROISE PARK Consulting
|
|
30
30
|
*
|
|
@@ -28,7 +28,7 @@ export interface HeaderNavigationProps {
|
|
|
28
28
|
* - FULL: Inline navigation with overflow detection (DnDevNavigationMenu with overflowDetection)
|
|
29
29
|
* - AUTO: Responsive (dropdown on mobile/tablet, inline on desktop)
|
|
30
30
|
*
|
|
31
|
-
* @version 0.0
|
|
31
|
+
* @version 0.1.0
|
|
32
32
|
* @since 0.0.1
|
|
33
33
|
* @author AMBROISE PARK Consulting
|
|
34
34
|
*/
|
|
@@ -11,7 +11,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
11
11
|
* - "More" dropdown only shows when items overflow
|
|
12
12
|
* - Theme-based styling only (no custom CSS)
|
|
13
13
|
*
|
|
14
|
-
* @version 0.0
|
|
14
|
+
* @version 0.1.0
|
|
15
15
|
* @since 0.0.1
|
|
16
16
|
* @author AMBROISE PARK Consulting
|
|
17
17
|
*/
|
|
@@ -33,7 +33,7 @@ import { Icon } from '../../../common/icon';
|
|
|
33
33
|
* - FULL: Inline navigation with overflow detection (DnDevNavigationMenu with overflowDetection)
|
|
34
34
|
* - AUTO: Responsive (dropdown on mobile/tablet, inline on desktop)
|
|
35
35
|
*
|
|
36
|
-
* @version 0.0
|
|
36
|
+
* @version 0.1.0
|
|
37
37
|
* @since 0.0.1
|
|
38
38
|
* @author AMBROISE PARK Consulting
|
|
39
39
|
*/
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* @fileoverview SettingsMenu component
|
|
5
5
|
* @description Settings dropdown menu with theme, language, and cache settings
|
|
6
6
|
*
|
|
7
|
-
* @version 0.0
|
|
7
|
+
* @version 0.1.0
|
|
8
8
|
* @since 0.0.1
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
@@ -18,7 +18,7 @@ import { AuthHeader } from '../../../auth/AuthHeader';
|
|
|
18
18
|
/**
|
|
19
19
|
* SettingsMenu with fixed hooks order and error protection
|
|
20
20
|
*
|
|
21
|
-
* @version 0.0
|
|
21
|
+
* @version 0.1.0
|
|
22
22
|
* @since 0.0.1
|
|
23
23
|
* @author AMBROISE PARK Consulting
|
|
24
24
|
*/
|
|
@@ -17,7 +17,7 @@ interface ThemeToggleProps {
|
|
|
17
17
|
* Allows users to switch between available themes (light, dark, system, custom).
|
|
18
18
|
* Integrates with the theme store for state management.
|
|
19
19
|
*
|
|
20
|
-
* @version 0.0
|
|
20
|
+
* @version 0.1.0
|
|
21
21
|
* @since 0.0.1
|
|
22
22
|
* @author AMBROISE PARK Consulting
|
|
23
23
|
*/
|
|
@@ -5,7 +5,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
* @fileoverview ThemeToggle component
|
|
6
6
|
* @description Theme switching component with dropdown menu
|
|
7
7
|
*
|
|
8
|
-
* @version 0.0
|
|
8
|
+
* @version 0.1.0
|
|
9
9
|
* @since 0.0.1
|
|
10
10
|
* @author AMBROISE PARK Consulting
|
|
11
11
|
*/
|
|
@@ -25,7 +25,7 @@ const getIcon = (iconName) => {
|
|
|
25
25
|
* Allows users to switch between available themes (light, dark, system, custom).
|
|
26
26
|
* Integrates with the theme store for state management.
|
|
27
27
|
*
|
|
28
|
-
* @version 0.0
|
|
28
|
+
* @version 0.1.0
|
|
29
29
|
* @since 0.0.1
|
|
30
30
|
* @author AMBROISE PARK Consulting
|
|
31
31
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Layout Components Barrel Exports
|
|
3
3
|
* @description Barrel exports for layout components. Provides centralized access to layout, page container, layout components, debug utilities, and layout presets.
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @fileoverview Layout Components Barrel Exports
|
|
4
4
|
* @description Barrel exports for layout components. Provides centralized access to layout, page container, layout components, debug utilities, and layout presets.
|
|
5
5
|
*
|
|
6
|
-
* @version 0.0
|
|
6
|
+
* @version 0.1.0
|
|
7
7
|
* @since 0.0.1
|
|
8
8
|
* @author AMBROISE PARK Consulting
|
|
9
9
|
*/
|
|
@@ -9,7 +9,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
* - Console warnings in browser dev tools
|
|
10
10
|
* - Automatically hidden when valid license key present
|
|
11
11
|
*
|
|
12
|
-
* @version 0.0
|
|
12
|
+
* @version 0.1.0
|
|
13
13
|
* @since 0.0.1
|
|
14
14
|
* @author AMBROISE PARK Consulting
|
|
15
15
|
*/
|
|
@@ -35,7 +35,7 @@ import { watermarkSvg } from './watermarkData';
|
|
|
35
35
|
* <LicenseWatermark />
|
|
36
36
|
* ```
|
|
37
37
|
*
|
|
38
|
-
* @version 0.0
|
|
38
|
+
* @version 0.1.0
|
|
39
39
|
* @since 0.0.1
|
|
40
40
|
* @author AMBROISE PARK Consulting
|
|
41
41
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @description Thin wrapper around @donotdev/crud CrudCard that adds Link routing.
|
|
4
4
|
* CrudCard (crud) is platform-agnostic; this wrapper adds web navigation via Link.
|
|
5
5
|
*
|
|
6
|
-
* @version 0.
|
|
6
|
+
* @version 0.1.0
|
|
7
7
|
* @since 0.0.1
|
|
8
8
|
* @author AMBROISE PARK Consulting
|
|
9
9
|
*/
|
|
@@ -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;AAYxE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AA0GpC;;;;;;;;;;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,WAAmB,EACnB,WAAW,GACZ,EAAE,mBAAmB,
|
|
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;AAYxE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AA0GpC;;;;;;;;;;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,WAAmB,EACnB,WAAW,GACZ,EAAE,mBAAmB,kDA4LrB"}
|
|
@@ -9,7 +9,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
9
9
|
* **Routing:** Convention basePath = `/${collection}`. View = basePath/:id.
|
|
10
10
|
* Override basePath for nested routes; use onClick(id) to open sheet instead of navigating.
|
|
11
11
|
*
|
|
12
|
-
* @version 0.
|
|
12
|
+
* @version 0.1.0
|
|
13
13
|
* @since 0.0.1
|
|
14
14
|
* @author AMBROISE PARK Consulting
|
|
15
15
|
*/
|
|
@@ -105,17 +105,20 @@ queryOptions, filter, hideFilters = false, resultLabel, tone, collapsible = fals
|
|
|
105
105
|
collection: entity.collection,
|
|
106
106
|
});
|
|
107
107
|
// Apply UI-specific filters (favorites, consumer filter prop) on top of processed
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
108
|
+
// Favorites always sort to front; when showFavoritesOnly, only favorites are shown
|
|
109
|
+
let data = processed;
|
|
110
|
+
if (showFavoritesOnly) {
|
|
111
|
+
data = data.filter(favoritesFilter);
|
|
112
|
+
}
|
|
113
|
+
if (filter) {
|
|
114
|
+
data = data.filter(filter);
|
|
115
|
+
}
|
|
116
|
+
// Sort favorites to front (stable sort preserves relative order within each group)
|
|
117
|
+
data = data.toSorted((a, b) => {
|
|
118
|
+
const aFav = isFavorite(String(a.id)) ? 0 : 1;
|
|
119
|
+
const bFav = isFavorite(String(b.id)) ? 0 : 1;
|
|
120
|
+
return aFav - bFav;
|
|
121
|
+
});
|
|
119
122
|
// Entity + crud namespaces so formatValue can resolve crud:price.* etc.
|
|
120
123
|
const { t } = useTranslation([entity.namespace, 'crud']);
|
|
121
124
|
const { t: tCrud } = useTranslation('crud');
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
* @description High-level component that automatically fetches and displays entity data in read-only mode.
|
|
7
7
|
* Perfect for detail/view pages - just pass the entity and it handles everything.
|
|
8
8
|
*
|
|
9
|
-
* @version 0.0
|
|
9
|
+
* @version 0.1.0
|
|
10
10
|
* @since 0.0.1
|
|
11
11
|
* @author AMBROISE PARK Consulting
|
|
12
12
|
*/
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
* @description Dumb renderer that composes form from entity definition.
|
|
7
7
|
* All orchestration logic lives in useEntityForm.
|
|
8
8
|
*
|
|
9
|
-
* @version 0.0
|
|
9
|
+
* @version 0.1.0
|
|
10
10
|
* @since 0.0.1
|
|
11
11
|
* @author AMBROISE PARK Consulting
|
|
12
12
|
*/
|
|
@@ -26,7 +26,7 @@ import { useAuthSafe } from '../../utils/useAuthSafe';
|
|
|
26
26
|
* - Renders fields
|
|
27
27
|
* - Renders submit button with status from useEntityForm
|
|
28
28
|
*
|
|
29
|
-
* @version 0.0
|
|
29
|
+
* @version 0.1.0
|
|
30
30
|
* @since 0.0.1
|
|
31
31
|
* @author AMBROISE PARK Consulting
|
|
32
32
|
*/
|
|
@@ -9,7 +9,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
9
9
|
* **Routing:** Convention basePath = `/${collection}`. View/Edit = basePath/:id, Create = basePath/new.
|
|
10
10
|
* Override basePath for nested routes; use onClick(id) to open sheet instead of navigating.
|
|
11
11
|
*
|
|
12
|
-
* @version 0.
|
|
12
|
+
* @version 0.1.0
|
|
13
13
|
* @since 0.0.1
|
|
14
14
|
* @author AMBROISE PARK Consulting
|
|
15
15
|
*/
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
* @description Fetches and displays related entity cards in a grid.
|
|
7
7
|
* Caller defines "related by what" via queryOptions.
|
|
8
8
|
*
|
|
9
|
-
* @version 0.0
|
|
9
|
+
* @version 0.1.0
|
|
10
10
|
* @since 0.0.15
|
|
11
11
|
* @author AMBROISE PARK Consulting
|
|
12
12
|
*/
|
|
@@ -50,7 +50,7 @@ import { CrudCard } from './CrudCardLink';
|
|
|
50
50
|
* />
|
|
51
51
|
* ```
|
|
52
52
|
*
|
|
53
|
-
* @version 0.0
|
|
53
|
+
* @version 0.1.0
|
|
54
54
|
* @since 0.0.15
|
|
55
55
|
* @author AMBROISE PARK Consulting
|
|
56
56
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Form Components
|
|
3
3
|
* @description Form components built on react-hook-form and Radix UI primitives. Provides form context, field management, and validation support.
|
|
4
4
|
*
|
|
5
|
-
* @version 0.0
|
|
5
|
+
* @version 0.1.0
|
|
6
6
|
* @since 0.0.1
|
|
7
7
|
* @author AMBROISE PARK Consulting
|
|
8
8
|
*/
|
|
@@ -12,7 +12,7 @@ import { Label, Slot } from '@donotdev/components';
|
|
|
12
12
|
/**
|
|
13
13
|
* Form provider component
|
|
14
14
|
*
|
|
15
|
-
* @version 0.0
|
|
15
|
+
* @version 0.1.0
|
|
16
16
|
* @since 0.0.1
|
|
17
17
|
* @author AMBROISE PARK Consulting
|
|
18
18
|
*/
|
|
@@ -24,7 +24,7 @@ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransfor
|
|
|
24
24
|
*
|
|
25
25
|
* @param {ControllerProps<TFieldValues, TName>} props - Controller props
|
|
26
26
|
* @returns {JSX.Element} Form field component
|
|
27
|
-
* @version 0.0
|
|
27
|
+
* @version 0.1.0
|
|
28
28
|
* @since 0.0.1
|
|
29
29
|
* @author AMBROISE PARK Consulting
|
|
30
30
|
*/
|
|
@@ -36,7 +36,7 @@ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName
|
|
|
36
36
|
*
|
|
37
37
|
* @param {HTMLAttributes<HTMLDivElement>} props - Component props
|
|
38
38
|
* @returns {JSX.Element} Form item component
|
|
39
|
-
* @version 0.0
|
|
39
|
+
* @version 0.1.0
|
|
40
40
|
* @since 0.0.1
|
|
41
41
|
* @author AMBROISE PARK Consulting
|
|
42
42
|
*/
|
|
@@ -47,7 +47,7 @@ declare const FormItem: ({ className, ...props }: HTMLAttributes<HTMLDivElement>
|
|
|
47
47
|
* Returns form field state and IDs for form components.
|
|
48
48
|
*
|
|
49
49
|
* @returns {Object | null} Form field context with IDs and state
|
|
50
|
-
* @version 0.0
|
|
50
|
+
* @version 0.1.0
|
|
51
51
|
* @since 0.0.1
|
|
52
52
|
* @author AMBROISE PARK Consulting
|
|
53
53
|
*/
|
|
@@ -70,7 +70,7 @@ declare const useFormField: () => {
|
|
|
70
70
|
*
|
|
71
71
|
* @param {ComponentProps<typeof Label>} props - Component props
|
|
72
72
|
* @returns {JSX.Element | null} Form label component
|
|
73
|
-
* @version 0.0
|
|
73
|
+
* @version 0.1.0
|
|
74
74
|
* @since 0.0.1
|
|
75
75
|
* @author AMBROISE PARK Consulting
|
|
76
76
|
*/
|
|
@@ -82,7 +82,7 @@ declare const FormLabel: ({ className, ...props }: ComponentProps<typeof Label>)
|
|
|
82
82
|
*
|
|
83
83
|
* @param {ComponentProps<typeof Slot>} props - Component props
|
|
84
84
|
* @returns {JSX.Element | null} Form control component
|
|
85
|
-
* @version 0.0
|
|
85
|
+
* @version 0.1.0
|
|
86
86
|
* @since 0.0.1
|
|
87
87
|
* @author AMBROISE PARK Consulting
|
|
88
88
|
*/
|
|
@@ -94,7 +94,7 @@ declare const FormControl: ({ ...props }: ComponentProps<typeof Slot>) => import
|
|
|
94
94
|
*
|
|
95
95
|
* @param {HTMLAttributes<HTMLParagraphElement>} props - Component props
|
|
96
96
|
* @returns {JSX.Element | null} Form description component
|
|
97
|
-
* @version 0.0
|
|
97
|
+
* @version 0.1.0
|
|
98
98
|
* @since 0.0.1
|
|
99
99
|
* @author AMBROISE PARK Consulting
|
|
100
100
|
*/
|
|
@@ -106,7 +106,7 @@ declare const FormDescription: ({ className, ...props }: HTMLAttributes<HTMLPara
|
|
|
106
106
|
*
|
|
107
107
|
* @param {HTMLAttributes<HTMLParagraphElement>} props - Component props
|
|
108
108
|
* @returns {JSX.Element | null} Form message component
|
|
109
|
-
* @version 0.0
|
|
109
|
+
* @version 0.1.0
|
|
110
110
|
* @since 0.0.1
|
|
111
111
|
* @author AMBROISE PARK Consulting
|
|
112
112
|
*/
|
|
@@ -114,7 +114,7 @@ declare const FormMessage: ({ className, children, ...props }: HTMLAttributes<HT
|
|
|
114
114
|
/**
|
|
115
115
|
* Form component exports
|
|
116
116
|
*
|
|
117
|
-
* @version 0.0
|
|
117
|
+
* @version 0.1.0
|
|
118
118
|
* @since 0.0.1
|
|
119
119
|
* @author AMBROISE PARK Consulting
|
|
120
120
|
*/
|