@rakeyshgidwani/roger-ui-bank-theme-stan-design 0.2.18 → 0.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/dist/components/ui/accessibility-demo.esm.js +10 -10
- package/dist/components/ui/accessibility-demo.js +10 -10
- package/dist/components/ui/advanced-component-architecture-demo.esm.js +8 -8
- package/dist/components/ui/advanced-component-architecture-demo.js +8 -8
- package/dist/components/ui/advanced-transition-system-demo.esm.js +3 -3
- package/dist/components/ui/advanced-transition-system-demo.js +3 -3
- package/dist/components/ui/advanced-transition-system.esm.js +1 -1
- package/dist/components/ui/advanced-transition-system.js +1 -1
- package/dist/components/ui/animation/animated-container.esm.js +1 -1
- package/dist/components/ui/animation/animated-container.js +1 -1
- package/dist/components/ui/animation/staggered-container.d.ts +1 -1
- package/dist/components/ui/animation/staggered-container.d.ts.map +1 -1
- package/dist/components/ui/animation/staggered-container.esm.js +1 -1
- package/dist/components/ui/animation/staggered-container.js +1 -1
- package/dist/components/ui/animation-demo.esm.js +3 -3
- package/dist/components/ui/animation-demo.js +3 -3
- package/dist/components/ui/battery-conscious-animation-demo.esm.js +5 -5
- package/dist/components/ui/battery-conscious-animation-demo.js +5 -5
- package/dist/components/ui/border-radius-shadow-demo.esm.js +2 -2
- package/dist/components/ui/border-radius-shadow-demo.js +2 -2
- package/dist/components/ui/color-preview.d.ts +1 -1
- package/dist/components/ui/color-preview.d.ts.map +1 -1
- package/dist/components/ui/color-preview.esm.js +3 -3
- package/dist/components/ui/color-preview.js +3 -3
- package/dist/components/ui/data-display/chart.d.ts +1 -1
- package/dist/components/ui/data-display/chart.d.ts.map +1 -1
- package/dist/components/ui/data-display/chart.esm.js +1 -1
- package/dist/components/ui/data-display/chart.js +1 -1
- package/dist/components/ui/data-display/data-grid-simple.d.ts +1 -1
- package/dist/components/ui/data-display/data-grid-simple.d.ts.map +1 -1
- package/dist/components/ui/data-display/data-grid.d.ts +1 -1
- package/dist/components/ui/data-display/data-grid.d.ts.map +1 -1
- package/dist/components/ui/data-display/list.d.ts +1 -1
- package/dist/components/ui/data-display/list.d.ts.map +1 -1
- package/dist/components/ui/data-display/table.d.ts +1 -1
- package/dist/components/ui/data-display/table.d.ts.map +1 -1
- package/dist/components/ui/data-display/timeline.d.ts +1 -1
- package/dist/components/ui/data-display/timeline.d.ts.map +1 -1
- package/dist/components/ui/data-display/tree.d.ts +1 -1
- package/dist/components/ui/data-display/tree.d.ts.map +1 -1
- package/dist/components/ui/data-display/tree.esm.js +1 -1
- package/dist/components/ui/data-display/tree.js +1 -1
- package/dist/components/ui/enterprise-mobile-experience-demo.esm.js +3 -3
- package/dist/components/ui/enterprise-mobile-experience-demo.js +3 -3
- package/dist/components/ui/feedback/alert.d.ts +1 -1
- package/dist/components/ui/feedback/alert.d.ts.map +1 -1
- package/dist/components/ui/feedback/progress.d.ts +1 -1
- package/dist/components/ui/feedback/progress.d.ts.map +1 -1
- package/dist/components/ui/feedback/progress.esm.js +1 -1
- package/dist/components/ui/feedback/progress.js +1 -1
- package/dist/components/ui/feedback/skeleton.d.ts +1 -1
- package/dist/components/ui/feedback/skeleton.d.ts.map +1 -1
- package/dist/components/ui/feedback/toast.d.ts +1 -1
- package/dist/components/ui/feedback/toast.d.ts.map +1 -1
- package/dist/components/ui/font-preview.d.ts +1 -1
- package/dist/components/ui/font-preview.d.ts.map +1 -1
- package/dist/components/ui/font-preview.esm.js +2 -2
- package/dist/components/ui/font-preview.js +2 -2
- package/dist/components/ui/form-demo.esm.js +5 -5
- package/dist/components/ui/form-demo.js +5 -5
- package/dist/components/ui/hardware-acceleration-demo.esm.js +5 -5
- package/dist/components/ui/hardware-acceleration-demo.js +5 -5
- package/dist/components/ui/layout-demo.esm.js +7 -7
- package/dist/components/ui/layout-demo.js +7 -7
- package/dist/components/ui/layouts/adaptive-layout.esm.js +5 -5
- package/dist/components/ui/layouts/adaptive-layout.js +5 -5
- package/dist/components/ui/layouts/desktop-layout.esm.js +3 -3
- package/dist/components/ui/layouts/desktop-layout.js +3 -3
- package/dist/components/ui/layouts/mobile-layout.esm.js +2 -2
- package/dist/components/ui/layouts/mobile-layout.js +2 -2
- package/dist/components/ui/layouts/tablet-layout.esm.js +3 -3
- package/dist/components/ui/layouts/tablet-layout.js +3 -3
- package/dist/components/ui/mobile-form-validation.d.ts +2 -2
- package/dist/components/ui/mobile-form-validation.d.ts.map +1 -1
- package/dist/components/ui/mobile-form-validation.esm.js +10 -10
- package/dist/components/ui/mobile-form-validation.js +10 -10
- package/dist/components/ui/mobile-input-demo.esm.js +2 -2
- package/dist/components/ui/mobile-input-demo.js +2 -2
- package/dist/components/ui/mobile-input.esm.js +1 -1
- package/dist/components/ui/mobile-input.js +1 -1
- package/dist/components/ui/mobile-skeleton-loading-demo.esm.js +8 -8
- package/dist/components/ui/mobile-skeleton-loading-demo.js +8 -8
- package/dist/components/ui/navigation/breadcrumb.d.ts +1 -1
- package/dist/components/ui/navigation/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/navigation/menu.d.ts +1 -1
- package/dist/components/ui/navigation/menu.d.ts.map +1 -1
- package/dist/components/ui/navigation/navigation-demo.esm.js +6 -6
- package/dist/components/ui/navigation/navigation-demo.js +6 -6
- package/dist/components/ui/navigation/pagination.d.ts +1 -1
- package/dist/components/ui/navigation/pagination.d.ts.map +1 -1
- package/dist/components/ui/navigation/sidebar.d.ts +1 -1
- package/dist/components/ui/navigation/sidebar.d.ts.map +1 -1
- package/dist/components/ui/navigation/stepper.d.ts +1 -1
- package/dist/components/ui/navigation/stepper.d.ts.map +1 -1
- package/dist/components/ui/navigation/tabs.d.ts +1 -1
- package/dist/components/ui/navigation/tabs.d.ts.map +1 -1
- package/dist/components/ui/overlay/modal.d.ts +1 -1
- package/dist/components/ui/overlay/modal.d.ts.map +1 -1
- package/dist/components/ui/overlay/modal.esm.js +5 -5
- package/dist/components/ui/overlay/modal.js +5 -5
- package/dist/components/ui/overlay/overlay-manager.d.ts +1 -1
- package/dist/components/ui/overlay/overlay-manager.d.ts.map +1 -1
- package/dist/components/ui/overlay/popover.d.ts +1 -1
- package/dist/components/ui/overlay/popover.d.ts.map +1 -1
- package/dist/components/ui/overlay/popover.esm.js +3 -3
- package/dist/components/ui/overlay/popover.js +3 -3
- package/dist/components/ui/overlay/portal.d.ts +1 -1
- package/dist/components/ui/overlay/portal.d.ts.map +1 -1
- package/dist/components/ui/overlay/tooltip.d.ts +1 -1
- package/dist/components/ui/overlay/tooltip.d.ts.map +1 -1
- package/dist/components/ui/overlay/tooltip.esm.js +2 -2
- package/dist/components/ui/overlay/tooltip.js +2 -2
- package/dist/components/ui/performance-demo.esm.js +4 -4
- package/dist/components/ui/performance-demo.js +4 -4
- package/dist/components/ui/semantic-input-system-demo.esm.js +10 -10
- package/dist/components/ui/semantic-input-system-demo.js +10 -10
- package/dist/components/ui/theme-customizer.d.ts +1 -1
- package/dist/components/ui/theme-customizer.d.ts.map +1 -1
- package/dist/components/ui/theme-customizer.esm.js +4 -4
- package/dist/components/ui/theme-customizer.js +4 -4
- package/dist/components/ui/theme-preview.esm.js +2 -2
- package/dist/components/ui/theme-preview.js +2 -2
- package/dist/components/ui/theme-switcher.esm.js +1 -1
- package/dist/components/ui/theme-switcher.js +1 -1
- package/dist/components/ui/theme-toggle.esm.js +1 -1
- package/dist/components/ui/theme-toggle.js +1 -1
- package/dist/components/ui/token-demo.esm.js +3 -3
- package/dist/components/ui/token-demo.js +3 -3
- package/dist/components/ui/touch-demo.esm.js +4 -4
- package/dist/components/ui/touch-demo.js +4 -4
- package/dist/components/ui/touch-friendly-interface-demo.esm.js +5 -5
- package/dist/components/ui/touch-friendly-interface-demo.js +5 -5
- package/dist/components/ui/touch-friendly-interface.esm.js +1 -1
- package/dist/components/ui/touch-friendly-interface.js +1 -1
- package/dist/hooks/use-animation-profile.d.ts +1 -1
- package/dist/hooks/use-animation-profile.esm.js +1 -1
- package/dist/hooks/use-animation-profile.js +1 -1
- package/dist/plugins/theme-css-generator.esm.js +1 -1
- package/dist/plugins/theme-css-generator.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/themes/examples/dark-theme.d.ts +3 -3
- package/dist/themes/examples/dark-theme.d.ts.map +1 -1
- package/dist/themes/examples/dark-theme.esm.js +1 -1
- package/dist/themes/examples/dark-theme.js +1 -1
- package/dist/themes/examples/minimal-theme.d.ts +1 -1
- package/dist/themes/examples/minimal-theme.d.ts.map +1 -1
- package/dist/themes/examples/minimal-theme.esm.js +2 -2
- package/dist/themes/examples/minimal-theme.js +2 -2
- package/dist/tokens/index.d.ts +1 -1
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.esm.js +1 -1
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/tokenExporter.d.ts +1 -1
- package/dist/tokens/tokenExporter.d.ts.map +1 -1
- package/dist/tokens/tokenGenerator.d.ts +2 -2
- package/dist/tokens/tokenGenerator.d.ts.map +1 -1
- package/dist/tokens/tokenManager.d.ts +3 -3
- package/dist/tokens/tokenManager.d.ts.map +1 -1
- package/dist/tokens/tokenManager.esm.js +3 -3
- package/dist/tokens/tokenManager.js +3 -3
- package/dist/tokens/tokenValidator.d.ts +1 -1
- package/dist/tokens/tokenValidator.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/accessibility-demo.tsx +10 -10
- package/src/components/ui/advanced-component-architecture-demo.tsx +8 -8
- package/src/components/ui/advanced-transition-system-demo.tsx +3 -3
- package/src/components/ui/advanced-transition-system.tsx +1 -1
- package/src/components/ui/animation/animated-container.tsx +1 -1
- package/src/components/ui/animation/staggered-container.tsx +1 -1
- package/src/components/ui/animation-demo.tsx +3 -3
- package/src/components/ui/battery-conscious-animation-demo.tsx +5 -5
- package/src/components/ui/border-radius-shadow-demo.tsx +2 -2
- package/src/components/ui/color-preview.tsx +4 -4
- package/src/components/ui/data-display/chart.tsx +2 -2
- package/src/components/ui/data-display/data-grid-simple.tsx +1 -1
- package/src/components/ui/data-display/data-grid.tsx +1 -1
- package/src/components/ui/data-display/list.tsx +1 -1
- package/src/components/ui/data-display/table.tsx +1 -1
- package/src/components/ui/data-display/timeline.tsx +1 -1
- package/src/components/ui/data-display/tree.tsx +2 -2
- package/src/components/ui/enterprise-mobile-experience-demo.tsx +3 -3
- package/src/components/ui/feedback/alert.tsx +1 -1
- package/src/components/ui/feedback/progress.tsx +2 -2
- package/src/components/ui/feedback/skeleton.tsx +1 -1
- package/src/components/ui/feedback/toast.tsx +1 -1
- package/src/components/ui/font-preview.tsx +3 -3
- package/src/components/ui/form-demo.tsx +6 -6
- package/src/components/ui/hardware-acceleration-demo.tsx +5 -5
- package/src/components/ui/layout-demo.tsx +7 -7
- package/src/components/ui/layouts/adaptive-layout.tsx +5 -5
- package/src/components/ui/layouts/desktop-layout.tsx +3 -3
- package/src/components/ui/layouts/mobile-layout.tsx +2 -2
- package/src/components/ui/layouts/tablet-layout.tsx +3 -3
- package/src/components/ui/mobile-form-validation.tsx +10 -10
- package/src/components/ui/mobile-input-demo.tsx +2 -2
- package/src/components/ui/mobile-input.tsx +1 -1
- package/src/components/ui/mobile-skeleton-loading-demo.tsx +8 -8
- package/src/components/ui/navigation/breadcrumb.tsx +1 -1
- package/src/components/ui/navigation/menu.tsx +1 -1
- package/src/components/ui/navigation/navigation-demo.tsx +7 -7
- package/src/components/ui/navigation/pagination.tsx +1 -1
- package/src/components/ui/navigation/sidebar.tsx +1 -1
- package/src/components/ui/navigation/stepper.tsx +1 -1
- package/src/components/ui/navigation/tabs.tsx +1 -1
- package/src/components/ui/overlay/modal.tsx +6 -6
- package/src/components/ui/overlay/overlay-manager.tsx +1 -1
- package/src/components/ui/overlay/popover.tsx +4 -4
- package/src/components/ui/overlay/portal.tsx +1 -1
- package/src/components/ui/overlay/tooltip.tsx +3 -3
- package/src/components/ui/performance-demo.tsx +4 -4
- package/src/components/ui/semantic-input-system-demo.tsx +10 -10
- package/src/components/ui/theme-customizer.tsx +5 -5
- package/src/components/ui/theme-preview.tsx +2 -2
- package/src/components/ui/theme-switcher.tsx +1 -1
- package/src/components/ui/theme-toggle.tsx +1 -1
- package/src/components/ui/token-demo.tsx +3 -3
- package/src/components/ui/touch-demo.tsx +4 -4
- package/src/components/ui/touch-friendly-interface-demo.tsx +5 -5
- package/src/components/ui/touch-friendly-interface.tsx +1 -1
- package/src/hooks/use-animation-profile.ts +1 -1
- package/src/plugins/theme-css-generator.ts +2 -2
- package/src/themes/examples/dark-theme.ts +1 -1
- package/src/themes/examples/minimal-theme.ts +2 -2
- package/src/tokens/index.ts +1 -1
- package/src/tokens/tokenExporter.ts +1 -1
- package/src/tokens/tokenGenerator.ts +2 -2
- package/src/tokens/tokenManager.ts +5 -5
- package/src/tokens/tokenValidator.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
|
-
import { useTheme } from '../../../themes/useTheme';
|
|
4
|
+
import { useTheme } from '../../../themes/useTheme.js';
|
|
5
5
|
// Default color fallbacks for when theme is not available
|
|
6
6
|
const getDefaultColors = () => ({
|
|
7
7
|
surface: { background: '#ffffff', surface: '#f3f4f6', border: '#d1d5db', divider: '#e5e7eb' },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
|
-
import { useTheme } from '../../../themes/useTheme';
|
|
4
|
+
import { useTheme } from '../../../themes/useTheme.js';
|
|
5
5
|
// Default color fallbacks for when theme is not available
|
|
6
6
|
const getDefaultColors = () => ({
|
|
7
7
|
surface: { background: '#ffffff', surface: '#f3f4f6', border: '#d1d5db', divider: '#e5e7eb' },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SkeletonProps, SkeletonTextProps, SkeletonAvatarProps, SkeletonButtonProps } from './types';
|
|
2
|
+
import { SkeletonProps, SkeletonTextProps, SkeletonAvatarProps, SkeletonButtonProps } from './types.js';
|
|
3
3
|
export declare const SkeletonText: React.FC<SkeletonTextProps>;
|
|
4
4
|
export declare const SkeletonAvatar: React.FC<SkeletonAvatarProps>;
|
|
5
5
|
export declare const SkeletonButton: React.FC<SkeletonButtonProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/feedback/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/feedback/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAyDxG,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuCpD,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAcxD,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAiBxD,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6C5C,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ToastProps, ToastContainerProps } from './types';
|
|
2
|
+
import { ToastProps, ToastContainerProps } from './types.js';
|
|
3
3
|
export declare const Toast: React.FC<ToastProps>;
|
|
4
4
|
export declare const ToastContainer: React.FC<ToastContainerProps & {
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/feedback/toast.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,UAAU,EAAe,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/feedback/toast.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,UAAU,EAAe,mBAAmB,EAAE,MAAM,YAAY,CAAC;AA8G1E,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAuJtC,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAYxF,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"font-preview.d.ts","sourceRoot":"","sources":["../../../src/components/ui/font-preview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"font-preview.d.ts","sourceRoot":"","sources":["../../../src/components/ui/font-preview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IACjE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA+OlD,CAAC;AAGF,MAAM,WAAW,iBAAiB;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA2BpD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card';
|
|
3
|
-
import { Badge } from './badge';
|
|
2
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js';
|
|
3
|
+
import { Badge } from './badge.js';
|
|
4
4
|
import { useTheme } from '../../themes';
|
|
5
5
|
export const FontPreview = ({ fontConfig, fontType = 'primary', showAllVariations = false, className = '' }) => {
|
|
6
6
|
const { currentThemeConfig } = useTheme();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card';
|
|
3
|
-
import { Badge } from './badge';
|
|
2
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js';
|
|
3
|
+
import { Badge } from './badge.js';
|
|
4
4
|
import { useTheme } from '../../themes';
|
|
5
5
|
export const FontPreview = ({ fontConfig, fontType = 'primary', showAllVariations = false, className = '' }) => {
|
|
6
6
|
const { currentThemeConfig } = useTheme();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useRef } from 'react';
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card';
|
|
5
|
-
import { Button } from './button';
|
|
6
|
-
import { Badge } from './badge';
|
|
7
|
-
import { Tabs } from './navigation/tabs';
|
|
8
|
-
import MobileFormValidation from './mobile-form-validation';
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js';
|
|
5
|
+
import { Button } from './button.js';
|
|
6
|
+
import { Badge } from './badge.js';
|
|
7
|
+
import { Tabs } from './navigation/tabs.js';
|
|
8
|
+
import MobileFormValidation from './mobile-form-validation.js';
|
|
9
9
|
export const FormDemo = () => {
|
|
10
10
|
const [activeTab, setActiveTab] = useState('basic');
|
|
11
11
|
const [formResults, setFormResults] = useState([]);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useRef } from 'react';
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card';
|
|
5
|
-
import { Button } from './button';
|
|
6
|
-
import { Badge } from './badge';
|
|
7
|
-
import { Tabs } from './navigation/tabs';
|
|
8
|
-
import MobileFormValidation from './mobile-form-validation';
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js';
|
|
5
|
+
import { Button } from './button.js';
|
|
6
|
+
import { Badge } from './badge.js';
|
|
7
|
+
import { Tabs } from './navigation/tabs.js';
|
|
8
|
+
import MobileFormValidation from './mobile-form-validation.js';
|
|
9
9
|
export const FormDemo = () => {
|
|
10
10
|
const [activeTab, setActiveTab] = useState('basic');
|
|
11
11
|
const [formResults, setFormResults] = useState([]);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useCallback, useEffect } from 'react';
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card';
|
|
5
|
-
import { Badge } from './badge';
|
|
6
|
-
import { Button } from './button';
|
|
7
|
-
import { useHardwareAcceleration } from '../../hooks/use-hardware-acceleration';
|
|
8
|
-
import { useBatteryOptimization } from '../../hooks/use-battery-optimization';
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js';
|
|
5
|
+
import { Badge } from './badge.js';
|
|
6
|
+
import { Button } from './button.js';
|
|
7
|
+
import { useHardwareAcceleration } from '../../hooks/use-hardware-acceleration.js';
|
|
8
|
+
import { useBatteryOptimization } from '../../hooks/use-battery-optimization.js';
|
|
9
9
|
export const HardwareAccelerationDemo = () => {
|
|
10
10
|
const [showGPUInfo, setShowGPUInfo] = useState(true);
|
|
11
11
|
const [showPerformanceMetrics, setShowPerformanceMetrics] = useState(true);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useCallback, useEffect } from 'react';
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card';
|
|
5
|
-
import { Badge } from './badge';
|
|
6
|
-
import { Button } from './button';
|
|
7
|
-
import { useHardwareAcceleration } from '../../hooks/use-hardware-acceleration';
|
|
8
|
-
import { useBatteryOptimization } from '../../hooks/use-battery-optimization';
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js';
|
|
5
|
+
import { Badge } from './badge.js';
|
|
6
|
+
import { Button } from './button.js';
|
|
7
|
+
import { useHardwareAcceleration } from '../../hooks/use-hardware-acceleration.js';
|
|
8
|
+
import { useBatteryOptimization } from '../../hooks/use-battery-optimization.js';
|
|
9
9
|
export const HardwareAccelerationDemo = () => {
|
|
10
10
|
const [showGPUInfo, setShowGPUInfo] = useState(true);
|
|
11
11
|
const [showPerformanceMetrics, setShowPerformanceMetrics] = useState(true);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card';
|
|
5
|
-
import { Badge } from './badge';
|
|
6
|
-
import { Button } from './button';
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js';
|
|
5
|
+
import { Badge } from './badge.js';
|
|
6
|
+
import { Button } from './button.js';
|
|
7
7
|
import { MobileLayout, TabletLayout, DesktopLayout, AdaptiveLayout } from './layouts';
|
|
8
|
-
import { useAdaptiveLayout } from '../../hooks/use-adaptive-layout';
|
|
9
|
-
import { useLayoutPerformance } from '../../hooks/use-layout-performance';
|
|
10
|
-
import { useMobileLayout } from '../../hooks/use-mobile-layout';
|
|
11
|
-
import { useTabletLayout } from '../../hooks/use-tablet-layout';
|
|
8
|
+
import { useAdaptiveLayout } from '../../hooks/use-adaptive-layout.js';
|
|
9
|
+
import { useLayoutPerformance } from '../../hooks/use-layout-performance.js';
|
|
10
|
+
import { useMobileLayout } from '../../hooks/use-mobile-layout.js';
|
|
11
|
+
import { useTabletLayout } from '../../hooks/use-tablet-layout.js';
|
|
12
12
|
export const LayoutDemo = () => {
|
|
13
13
|
const [activeLayout, setActiveLayout] = useState('adaptive');
|
|
14
14
|
const [showPerformanceMetrics, setShowPerformanceMetrics] = useState(true);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from 'react';
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card';
|
|
5
|
-
import { Badge } from './badge';
|
|
6
|
-
import { Button } from './button';
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js';
|
|
5
|
+
import { Badge } from './badge.js';
|
|
6
|
+
import { Button } from './button.js';
|
|
7
7
|
import { MobileLayout, TabletLayout, DesktopLayout, AdaptiveLayout } from './layouts';
|
|
8
|
-
import { useAdaptiveLayout } from '../../hooks/use-adaptive-layout';
|
|
9
|
-
import { useLayoutPerformance } from '../../hooks/use-layout-performance';
|
|
10
|
-
import { useMobileLayout } from '../../hooks/use-mobile-layout';
|
|
11
|
-
import { useTabletLayout } from '../../hooks/use-tablet-layout';
|
|
8
|
+
import { useAdaptiveLayout } from '../../hooks/use-adaptive-layout.js';
|
|
9
|
+
import { useLayoutPerformance } from '../../hooks/use-layout-performance.js';
|
|
10
|
+
import { useMobileLayout } from '../../hooks/use-mobile-layout.js';
|
|
11
|
+
import { useTabletLayout } from '../../hooks/use-tablet-layout.js';
|
|
12
12
|
export const LayoutDemo = () => {
|
|
13
13
|
const [activeLayout, setActiveLayout] = useState('adaptive');
|
|
14
14
|
const [showPerformanceMetrics, setShowPerformanceMetrics] = useState(true);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
-
import { Card, CardContent } from '../card';
|
|
5
|
-
import { Badge } from '../badge';
|
|
6
|
-
import { MobileLayout } from './mobile-layout';
|
|
7
|
-
import { TabletLayout } from './tablet-layout';
|
|
8
|
-
import { DesktopLayout } from './desktop-layout';
|
|
4
|
+
import { Card, CardContent } from '../card.js';
|
|
5
|
+
import { Badge } from '../badge.js';
|
|
6
|
+
import { MobileLayout } from './mobile-layout.js';
|
|
7
|
+
import { TabletLayout } from './tablet-layout.js';
|
|
8
|
+
import { DesktopLayout } from './desktop-layout.js';
|
|
9
9
|
export const AdaptiveLayout = ({ children, title = 'Adaptive Layout', description = 'Automatically adapts to different device types with optimal layouts', showHeader = true, showSidebar = true, enableTouchOptimization = true, enablePerformanceMonitoring = true, enableAdvancedFeatures = true, className = '' }) => {
|
|
10
10
|
const [deviceType, setDeviceType] = useState('desktop');
|
|
11
11
|
const [screenSize, setScreenSize] = useState({ width: 0, height: 0 });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
-
import { Card, CardContent } from '../card';
|
|
5
|
-
import { Badge } from '../badge';
|
|
6
|
-
import { MobileLayout } from './mobile-layout';
|
|
7
|
-
import { TabletLayout } from './tablet-layout';
|
|
8
|
-
import { DesktopLayout } from './desktop-layout';
|
|
4
|
+
import { Card, CardContent } from '../card.js';
|
|
5
|
+
import { Badge } from '../badge.js';
|
|
6
|
+
import { MobileLayout } from './mobile-layout.js';
|
|
7
|
+
import { TabletLayout } from './tablet-layout.js';
|
|
8
|
+
import { DesktopLayout } from './desktop-layout.js';
|
|
9
9
|
export const AdaptiveLayout = ({ children, title = 'Adaptive Layout', description = 'Automatically adapts to different device types with optimal layouts', showHeader = true, showSidebar = true, enableTouchOptimization = true, enablePerformanceMonitoring = true, enableAdvancedFeatures = true, className = '' }) => {
|
|
10
10
|
const [deviceType, setDeviceType] = useState('desktop');
|
|
11
11
|
const [screenSize, setScreenSize] = useState({ width: 0, height: 0 });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../card';
|
|
5
|
-
import { Badge } from '../badge';
|
|
6
|
-
import { Button } from '../button';
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../card.js';
|
|
5
|
+
import { Badge } from '../badge.js';
|
|
6
|
+
import { Button } from '../button.js';
|
|
7
7
|
export const DesktopLayout = ({ children, title = 'Desktop Layout', description = 'Desktop-optimized layout with advanced features and performance monitoring', showHeader = true, showSidebar = true, showTopBar = true, enablePerformanceMonitoring = true, enableAdvancedFeatures = true, className = '' }) => {
|
|
8
8
|
const [performanceMetrics, setPerformanceMetrics] = useState({
|
|
9
9
|
renderTime: 0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../card';
|
|
5
|
-
import { Badge } from '../badge';
|
|
6
|
-
import { Button } from '../button';
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../card.js';
|
|
5
|
+
import { Badge } from '../badge.js';
|
|
6
|
+
import { Button } from '../button.js';
|
|
7
7
|
export const DesktopLayout = ({ children, title = 'Desktop Layout', description = 'Desktop-optimized layout with advanced features and performance monitoring', showHeader = true, showSidebar = true, showTopBar = true, enablePerformanceMonitoring = true, enableAdvancedFeatures = true, className = '' }) => {
|
|
8
8
|
const [performanceMetrics, setPerformanceMetrics] = useState({
|
|
9
9
|
renderTime: 0,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
-
import { Card, CardContent, CardHeader, CardTitle } from '../card';
|
|
5
|
-
import { Badge } from '../badge';
|
|
4
|
+
import { Card, CardContent, CardHeader, CardTitle } from '../card.js';
|
|
5
|
+
import { Badge } from '../badge.js';
|
|
6
6
|
export const MobileLayout = ({ children, title = 'Mobile Layout', description = 'Touch-optimized mobile layout with performance monitoring', showHeader = true, showFooter = true, enableTouchOptimization = true, enablePerformanceMonitoring = true, className = '' }) => {
|
|
7
7
|
const [touchActive, setTouchActive] = useState(false);
|
|
8
8
|
const [performanceMetrics, setPerformanceMetrics] = useState({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
-
import { Card, CardContent, CardHeader, CardTitle } from '../card';
|
|
5
|
-
import { Badge } from '../badge';
|
|
4
|
+
import { Card, CardContent, CardHeader, CardTitle } from '../card.js';
|
|
5
|
+
import { Badge } from '../badge.js';
|
|
6
6
|
export const MobileLayout = ({ children, title = 'Mobile Layout', description = 'Touch-optimized mobile layout with performance monitoring', showHeader = true, showFooter = true, enableTouchOptimization = true, enablePerformanceMonitoring = true, className = '' }) => {
|
|
7
7
|
const [touchActive, setTouchActive] = useState(false);
|
|
8
8
|
const [performanceMetrics, setPerformanceMetrics] = useState({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../card';
|
|
5
|
-
import { Badge } from '../badge';
|
|
6
|
-
import { Button } from '../button';
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../card.js';
|
|
5
|
+
import { Badge } from '../badge.js';
|
|
6
|
+
import { Button } from '../button.js';
|
|
7
7
|
export const TabletLayout = ({ children, title = 'Tablet Layout', description = 'Tablet-optimized layout with touch and performance features', showHeader = true, showSidebar = true, enableTouchOptimization = true, enablePerformanceMonitoring = true, className = '' }) => {
|
|
8
8
|
const [orientation, setOrientation] = useState('portrait');
|
|
9
9
|
const [performanceMetrics, setPerformanceMetrics] = useState({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../card';
|
|
5
|
-
import { Badge } from '../badge';
|
|
6
|
-
import { Button } from '../button';
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../card.js';
|
|
5
|
+
import { Badge } from '../badge.js';
|
|
6
|
+
import { Button } from '../button.js';
|
|
7
7
|
export const TabletLayout = ({ children, title = 'Tablet Layout', description = 'Tablet-optimized layout with touch and performance features', showHeader = true, showSidebar = true, enableTouchOptimization = true, enablePerformanceMonitoring = true, className = '' }) => {
|
|
8
8
|
const [orientation, setOrientation] = useState('portrait');
|
|
9
9
|
const [performanceMetrics, setPerformanceMetrics] = useState({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ValidationRule } from '../../hooks/use-mobile-form-validation';
|
|
3
|
-
import { InputType } from '../../hooks/use-semantic-input';
|
|
2
|
+
import { ValidationRule } from '../../hooks/use-mobile-form-validation.js';
|
|
3
|
+
import { InputType } from '../../hooks/use-semantic-input.js';
|
|
4
4
|
export interface MobileFormValidationProps {
|
|
5
5
|
title?: string;
|
|
6
6
|
description?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-form-validation.d.ts","sourceRoot":"","sources":["../../../src/components/ui/mobile-form-validation.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuC,MAAM,OAAO,CAAA;AAM3D,OAAO,EAA2B,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"mobile-form-validation.d.ts","sourceRoot":"","sources":["../../../src/components/ui/mobile-form-validation.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuC,MAAM,OAAO,CAAA;AAM3D,OAAO,EAA2B,cAAc,EAAE,MAAM,2CAA2C,CAAA;AAGnG,OAAO,EAAoB,SAAS,EAAE,MAAM,mCAAmC,CAAA;AAG/E,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,KAAK,CAAC;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,SAAS,CAAA;QACf,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,KAAK,EAAE,cAAc,EAAE,CAAA;QACvB,YAAY,CAAC,EAAE,GAAG,CAAA;KACnB,CAAC,CAAA;IACF,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAA;IAClD,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAA;IACxF,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,QAAQ,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAA;IAChC,kBAAkB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,GAAG,CAAA;CAC/C;AAED,eAAO,MAAM,oBAAoB,2GA0ZhC,CAAA;AAID,eAAe,oBAAoB,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React, { useState, useRef, forwardRef } from 'react';
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card';
|
|
5
|
-
import { Button } from './button';
|
|
6
|
-
import { Badge } from './badge';
|
|
7
|
-
import { Input } from './input';
|
|
8
|
-
import { Label } from './label';
|
|
9
|
-
import { useMobileFormValidation } from '../../hooks/use-mobile-form-validation';
|
|
10
|
-
import { useFormFeedback } from '../../hooks/use-form-feedback';
|
|
11
|
-
import { useMobileFormLayout } from '../../hooks/use-mobile-form-layout';
|
|
12
|
-
import { useSemanticInput } from '../../hooks/use-semantic-input';
|
|
13
|
-
import { useFormPerformance } from '../../hooks/use-form-performance';
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js';
|
|
5
|
+
import { Button } from './button.js';
|
|
6
|
+
import { Badge } from './badge.js';
|
|
7
|
+
import { Input } from './input.js';
|
|
8
|
+
import { Label } from './label.js';
|
|
9
|
+
import { useMobileFormValidation } from '../../hooks/use-mobile-form-validation.js';
|
|
10
|
+
import { useFormFeedback } from '../../hooks/use-form-feedback.js';
|
|
11
|
+
import { useMobileFormLayout } from '../../hooks/use-mobile-form-layout.js';
|
|
12
|
+
import { useSemanticInput } from '../../hooks/use-semantic-input.js';
|
|
13
|
+
import { useFormPerformance } from '../../hooks/use-form-performance.js';
|
|
14
14
|
export const MobileFormValidation = forwardRef(({ title = 'Mobile Form Validation', description = 'Advanced form validation with mobile optimization', fields, onSubmit, onValidationChange, className = '', enableEnhancedFeatures = true }, ref) => {
|
|
15
15
|
const [formData, setFormData] = useState({});
|
|
16
16
|
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React, { useState, useRef, forwardRef } from 'react';
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card';
|
|
5
|
-
import { Button } from './button';
|
|
6
|
-
import { Badge } from './badge';
|
|
7
|
-
import { Input } from './input';
|
|
8
|
-
import { Label } from './label';
|
|
9
|
-
import { useMobileFormValidation } from '../../hooks/use-mobile-form-validation';
|
|
10
|
-
import { useFormFeedback } from '../../hooks/use-form-feedback';
|
|
11
|
-
import { useMobileFormLayout } from '../../hooks/use-mobile-form-layout';
|
|
12
|
-
import { useSemanticInput } from '../../hooks/use-semantic-input';
|
|
13
|
-
import { useFormPerformance } from '../../hooks/use-form-performance';
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js';
|
|
5
|
+
import { Button } from './button.js';
|
|
6
|
+
import { Badge } from './badge.js';
|
|
7
|
+
import { Input } from './input.js';
|
|
8
|
+
import { Label } from './label.js';
|
|
9
|
+
import { useMobileFormValidation } from '../../hooks/use-mobile-form-validation.js';
|
|
10
|
+
import { useFormFeedback } from '../../hooks/use-form-feedback.js';
|
|
11
|
+
import { useMobileFormLayout } from '../../hooks/use-mobile-form-layout.js';
|
|
12
|
+
import { useSemanticInput } from '../../hooks/use-semantic-input.js';
|
|
13
|
+
import { useFormPerformance } from '../../hooks/use-form-performance.js';
|
|
14
14
|
export const MobileFormValidation = forwardRef(({ title = 'Mobile Form Validation', description = 'Advanced form validation with mobile optimization', fields, onSubmit, onValidationChange, className = '', enableEnhancedFeatures = true }, ref) => {
|
|
15
15
|
const [formData, setFormData] = useState({});
|
|
16
16
|
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Card } from './card';
|
|
3
|
-
import { MobileInput, mobileInputConfigs } from './mobile-input';
|
|
2
|
+
import { Card } from './card.js';
|
|
3
|
+
import { MobileInput, mobileInputConfigs } from './mobile-input.js';
|
|
4
4
|
export const MobileInputDemo = () => {
|
|
5
5
|
return (_jsxs("div", { className: "space-y-6", children: [_jsxs("div", { className: "text-center", children: [_jsx("h2", { className: "text-2xl font-bold text-cs-text-primary mb-2", children: "Mobile Input System Recovery" }), _jsx("p", { className: "text-cs-text-secondary", children: "Semantic Input Excellence - Recovered from original project" })] }), _jsxs(Card, { className: "p-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Semantic Input Types" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [_jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "text-sm font-medium text-cs-text-secondary", children: "Name Input" }), _jsx(MobileInput, { placeholder: "Enter your full name", mobileConfig: mobileInputConfigs.name, className: "w-full" }), _jsx("p", { className: "text-xs text-cs-text-muted", children: "Auto-capitalizes words, suggests name autocomplete" })] }), _jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "text-sm font-medium text-cs-text-secondary", children: "Email Input" }), _jsx(MobileInput, { placeholder: "Enter your email", mobileConfig: mobileInputConfigs.email, className: "w-full" }), _jsx("p", { className: "text-xs text-cs-text-muted", children: "Email keyboard, no spell check, email autocomplete" })] }), _jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "text-sm font-medium text-cs-text-secondary", children: "Phone Input" }), _jsx(MobileInput, { placeholder: "Enter phone number", mobileConfig: mobileInputConfigs.phone, className: "w-full" }), _jsx("p", { className: "text-xs text-cs-text-muted", children: "Numeric keyboard, phone autocomplete" })] }), _jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "text-sm font-medium text-cs-text-secondary", children: "Password Input" }), _jsx(MobileInput, { placeholder: "Enter new password", mobileConfig: mobileInputConfigs.newPassword, className: "w-full" }), _jsx("p", { className: "text-xs text-cs-text-muted", children: "Password keyboard, new-password autocomplete" })] }), _jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "text-sm font-medium text-cs-text-secondary", children: "Search Input" }), _jsx(MobileInput, { placeholder: "Search...", mobileConfig: mobileInputConfigs.search, className: "w-full" }), _jsx("p", { className: "text-xs text-cs-text-muted", children: "Search keyboard, no autocomplete" })] }), _jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "text-sm font-medium text-cs-text-secondary", children: "Amount Input" }), _jsx(MobileInput, { placeholder: "Enter amount", mobileConfig: mobileInputConfigs.amount, className: "w-full" }), _jsx("p", { className: "text-xs text-cs-text-muted", children: "Decimal keyboard, no autocomplete" })] })] })] }), _jsxs(Card, { className: "p-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Custom Mobile Configurations" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [_jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "text-sm font-medium text-cs-text-secondary", children: "Custom Input Mode" }), _jsx(MobileInput, { placeholder: "Custom input mode", mobileConfig: {
|
|
6
6
|
semanticType: 'email',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Card } from './card';
|
|
3
|
-
import { MobileInput, mobileInputConfigs } from './mobile-input';
|
|
2
|
+
import { Card } from './card.js';
|
|
3
|
+
import { MobileInput, mobileInputConfigs } from './mobile-input.js';
|
|
4
4
|
export const MobileInputDemo = () => {
|
|
5
5
|
return (_jsxs("div", { className: "space-y-6", children: [_jsxs("div", { className: "text-center", children: [_jsx("h2", { className: "text-2xl font-bold text-cs-text-primary mb-2", children: "Mobile Input System Recovery" }), _jsx("p", { className: "text-cs-text-secondary", children: "Semantic Input Excellence - Recovered from original project" })] }), _jsxs(Card, { className: "p-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Semantic Input Types" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [_jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "text-sm font-medium text-cs-text-secondary", children: "Name Input" }), _jsx(MobileInput, { placeholder: "Enter your full name", mobileConfig: mobileInputConfigs.name, className: "w-full" }), _jsx("p", { className: "text-xs text-cs-text-muted", children: "Auto-capitalizes words, suggests name autocomplete" })] }), _jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "text-sm font-medium text-cs-text-secondary", children: "Email Input" }), _jsx(MobileInput, { placeholder: "Enter your email", mobileConfig: mobileInputConfigs.email, className: "w-full" }), _jsx("p", { className: "text-xs text-cs-text-muted", children: "Email keyboard, no spell check, email autocomplete" })] }), _jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "text-sm font-medium text-cs-text-secondary", children: "Phone Input" }), _jsx(MobileInput, { placeholder: "Enter phone number", mobileConfig: mobileInputConfigs.phone, className: "w-full" }), _jsx("p", { className: "text-xs text-cs-text-muted", children: "Numeric keyboard, phone autocomplete" })] }), _jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "text-sm font-medium text-cs-text-secondary", children: "Password Input" }), _jsx(MobileInput, { placeholder: "Enter new password", mobileConfig: mobileInputConfigs.newPassword, className: "w-full" }), _jsx("p", { className: "text-xs text-cs-text-muted", children: "Password keyboard, new-password autocomplete" })] }), _jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "text-sm font-medium text-cs-text-secondary", children: "Search Input" }), _jsx(MobileInput, { placeholder: "Search...", mobileConfig: mobileInputConfigs.search, className: "w-full" }), _jsx("p", { className: "text-xs text-cs-text-muted", children: "Search keyboard, no autocomplete" })] }), _jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "text-sm font-medium text-cs-text-secondary", children: "Amount Input" }), _jsx(MobileInput, { placeholder: "Enter amount", mobileConfig: mobileInputConfigs.amount, className: "w-full" }), _jsx("p", { className: "text-xs text-cs-text-muted", children: "Decimal keyboard, no autocomplete" })] })] })] }), _jsxs(Card, { className: "p-6", children: [_jsx("h3", { className: "text-lg font-semibold text-cs-text-primary mb-4", children: "Custom Mobile Configurations" }), _jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [_jsxs("div", { className: "space-y-2", children: [_jsx("label", { className: "text-sm font-medium text-cs-text-secondary", children: "Custom Input Mode" }), _jsx(MobileInput, { placeholder: "Custom input mode", mobileConfig: {
|
|
6
6
|
semanticType: 'email',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { cn } from "../../lib/utils";
|
|
5
|
-
import { Input } from "./input";
|
|
5
|
+
import { Input } from "./input.js";
|
|
6
6
|
/**
|
|
7
7
|
* Mobile-optimized input component with smart keyboard handling
|
|
8
8
|
* Automatically configures input attributes for the best mobile experience
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { cn } from "../../lib/utils";
|
|
5
|
-
import { Input } from "./input";
|
|
5
|
+
import { Input } from "./input.js";
|
|
6
6
|
/**
|
|
7
7
|
* Mobile-optimized input component with smart keyboard handling
|
|
8
8
|
* Automatically configures input attributes for the best mobile experience
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
-
import { Card } from './card';
|
|
5
|
-
import { Button } from './button';
|
|
6
|
-
import { Badge } from './badge';
|
|
7
|
-
import { useMobileSkeleton } from '../../hooks/use-mobile-skeleton';
|
|
8
|
-
import { useDeviceLoadingStates } from '../../hooks/use-device-loading-states';
|
|
9
|
-
import { useLoadingPerformance } from '../../hooks/use-loading-performance';
|
|
10
|
-
import { useBatteryConsciousLoading } from '../../hooks/use-battery-conscious-loading';
|
|
11
|
-
import { useLoadingAccessibility } from '../../hooks/use-loading-accessibility';
|
|
4
|
+
import { Card } from './card.js';
|
|
5
|
+
import { Button } from './button.js';
|
|
6
|
+
import { Badge } from './badge.js';
|
|
7
|
+
import { useMobileSkeleton } from '../../hooks/use-mobile-skeleton.js';
|
|
8
|
+
import { useDeviceLoadingStates } from '../../hooks/use-device-loading-states.js';
|
|
9
|
+
import { useLoadingPerformance } from '../../hooks/use-loading-performance.js';
|
|
10
|
+
import { useBatteryConsciousLoading } from '../../hooks/use-battery-conscious-loading.js';
|
|
11
|
+
import { useLoadingAccessibility } from '../../hooks/use-loading-accessibility.js';
|
|
12
12
|
export const MobileSkeletonLoadingDemo = () => {
|
|
13
13
|
const [activeTab, setActiveTab] = useState('overview');
|
|
14
14
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
-
import { Card } from './card';
|
|
5
|
-
import { Button } from './button';
|
|
6
|
-
import { Badge } from './badge';
|
|
7
|
-
import { useMobileSkeleton } from '../../hooks/use-mobile-skeleton';
|
|
8
|
-
import { useDeviceLoadingStates } from '../../hooks/use-device-loading-states';
|
|
9
|
-
import { useLoadingPerformance } from '../../hooks/use-loading-performance';
|
|
10
|
-
import { useBatteryConsciousLoading } from '../../hooks/use-battery-conscious-loading';
|
|
11
|
-
import { useLoadingAccessibility } from '../../hooks/use-loading-accessibility';
|
|
4
|
+
import { Card } from './card.js';
|
|
5
|
+
import { Button } from './button.js';
|
|
6
|
+
import { Badge } from './badge.js';
|
|
7
|
+
import { useMobileSkeleton } from '../../hooks/use-mobile-skeleton.js';
|
|
8
|
+
import { useDeviceLoadingStates } from '../../hooks/use-device-loading-states.js';
|
|
9
|
+
import { useLoadingPerformance } from '../../hooks/use-loading-performance.js';
|
|
10
|
+
import { useBatteryConsciousLoading } from '../../hooks/use-battery-conscious-loading.js';
|
|
11
|
+
import { useLoadingAccessibility } from '../../hooks/use-loading-accessibility.js';
|
|
12
12
|
export const MobileSkeletonLoadingDemo = () => {
|
|
13
13
|
const [activeTab, setActiveTab] = useState('overview');
|
|
14
14
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Provides navigation breadcrumbs with theme support and responsive design
|
|
4
4
|
*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import { BreadcrumbProps } from './types';
|
|
6
|
+
import { BreadcrumbProps } from './types.js';
|
|
7
7
|
export declare const Breadcrumb: React.FC<BreadcrumbProps>;
|
|
8
8
|
export default Breadcrumb;
|
|
9
9
|
//# sourceMappingURL=breadcrumb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/navigation/breadcrumb.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAkB,MAAM,
|
|
1
|
+
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/navigation/breadcrumb.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAkB,MAAM,YAAY,CAAC;AAE7D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiJhD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Provides comprehensive menu functionality with theme support and multiple variants
|
|
4
4
|
*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import { MenuProps } from './types';
|
|
6
|
+
import { MenuProps } from './types.js';
|
|
7
7
|
export declare const Menu: React.FC<MenuProps>;
|
|
8
8
|
export default Menu;
|
|
9
9
|
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/navigation/menu.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAmC,MAAM,
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/navigation/menu.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAmC,MAAM,YAAY,CAAC;AA2BxE,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAiVpC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
'use client';
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { useState } from 'react';
|
|
8
|
-
import { Breadcrumb } from './breadcrumb';
|
|
9
|
-
import { Tabs } from './tabs';
|
|
10
|
-
import { Menu } from './menu';
|
|
11
|
-
import { Sidebar } from './sidebar';
|
|
12
|
-
import { Stepper } from './stepper';
|
|
13
|
-
import { Pagination } from './pagination';
|
|
8
|
+
import { Breadcrumb } from './breadcrumb.js';
|
|
9
|
+
import { Tabs } from './tabs.js';
|
|
10
|
+
import { Menu } from './menu.js';
|
|
11
|
+
import { Sidebar } from './sidebar.js';
|
|
12
|
+
import { Stepper } from './stepper.js';
|
|
13
|
+
import { Pagination } from './pagination.js';
|
|
14
14
|
export const NavigationDemo = () => {
|
|
15
15
|
const [currentTab, setCurrentTab] = useState('overview');
|
|
16
16
|
const [currentStep, setCurrentStep] = useState(0);
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
'use client';
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { useState } from 'react';
|
|
8
|
-
import { Breadcrumb } from './breadcrumb';
|
|
9
|
-
import { Tabs } from './tabs';
|
|
10
|
-
import { Menu } from './menu';
|
|
11
|
-
import { Sidebar } from './sidebar';
|
|
12
|
-
import { Stepper } from './stepper';
|
|
13
|
-
import { Pagination } from './pagination';
|
|
8
|
+
import { Breadcrumb } from './breadcrumb.js';
|
|
9
|
+
import { Tabs } from './tabs.js';
|
|
10
|
+
import { Menu } from './menu.js';
|
|
11
|
+
import { Sidebar } from './sidebar.js';
|
|
12
|
+
import { Stepper } from './stepper.js';
|
|
13
|
+
import { Pagination } from './pagination.js';
|
|
14
14
|
export const NavigationDemo = () => {
|
|
15
15
|
const [currentTab, setCurrentTab] = useState('overview');
|
|
16
16
|
const [currentStep, setCurrentStep] = useState(0);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Provides comprehensive pagination with theme support and responsive design
|
|
4
4
|
*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import { PaginationProps } from './types';
|
|
6
|
+
import { PaginationProps } from './types.js';
|
|
7
7
|
export declare const Pagination: React.FC<PaginationProps>;
|
|
8
8
|
export default Pagination;
|
|
9
9
|
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/navigation/pagination.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAkB,MAAM,
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/navigation/pagination.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAkB,MAAM,YAAY,CAAC;AAe7D,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsPhD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|