@rakeyshgidwani/roger-ui-bank-theme-stan-design 0.2.18 → 0.2.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.
- package/CHANGELOG.md +1 -1
- package/dist/components/ui/accessibility-demo.d.ts +1 -1
- package/dist/components/ui/accessibility-demo.d.ts.map +1 -1
- package/dist/components/ui/accessibility-demo.esm.js +11 -10
- package/dist/components/ui/accessibility-demo.js +11 -10
- package/dist/components/ui/advanced-component-architecture-demo.d.ts +1 -1
- package/dist/components/ui/advanced-component-architecture-demo.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/dist/components/ui/advanced-transition-system-demo.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/dist/components/ui/advanced-transition-system.d.ts.map +1 -1
- package/dist/components/ui/advanced-transition-system.esm.js +3 -2
- package/dist/components/ui/advanced-transition-system.js +3 -2
- package/dist/components/ui/animation/animated-container.d.ts +1 -1
- package/dist/components/ui/animation/animated-container.d.ts.map +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 +2 -2
- 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.d.ts +1 -1
- package/dist/components/ui/animation-demo.d.ts.map +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.d.ts +1 -1
- package/dist/components/ui/battery-conscious-animation-demo.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/dist/components/ui/border-radius-shadow-demo.d.ts.map +1 -1
- package/dist/components/ui/border-radius-shadow-demo.esm.js +3 -2
- package/dist/components/ui/border-radius-shadow-demo.js +3 -2
- package/dist/components/ui/color-preview.d.ts +2 -2
- package/dist/components/ui/color-preview.d.ts.map +1 -1
- package/dist/components/ui/color-preview.esm.js +4 -3
- package/dist/components/ui/color-preview.js +4 -3
- package/dist/components/ui/data-display/chart.d.ts +2 -2
- package/dist/components/ui/data-display/chart.d.ts.map +1 -1
- package/dist/components/ui/data-display/chart.esm.js +2 -1
- package/dist/components/ui/data-display/chart.js +2 -1
- package/dist/components/ui/data-display/data-grid-simple.d.ts +2 -2
- package/dist/components/ui/data-display/data-grid-simple.d.ts.map +1 -1
- package/dist/components/ui/data-display/data-grid-simple.esm.js +1 -0
- package/dist/components/ui/data-display/data-grid-simple.js +1 -0
- package/dist/components/ui/data-display/data-grid.d.ts +2 -2
- package/dist/components/ui/data-display/data-grid.d.ts.map +1 -1
- package/dist/components/ui/data-display/data-grid.esm.js +3 -1
- package/dist/components/ui/data-display/data-grid.js +3 -1
- package/dist/components/ui/data-display/list.d.ts +2 -2
- package/dist/components/ui/data-display/list.d.ts.map +1 -1
- package/dist/components/ui/data-display/list.esm.js +1 -0
- package/dist/components/ui/data-display/list.js +1 -0
- package/dist/components/ui/data-display/table.d.ts +2 -2
- package/dist/components/ui/data-display/table.d.ts.map +1 -1
- package/dist/components/ui/data-display/table.esm.js +1 -0
- package/dist/components/ui/data-display/table.js +1 -0
- package/dist/components/ui/data-display/timeline.d.ts +2 -2
- package/dist/components/ui/data-display/timeline.d.ts.map +1 -1
- package/dist/components/ui/data-display/timeline.esm.js +1 -0
- package/dist/components/ui/data-display/timeline.js +1 -0
- package/dist/components/ui/data-display/tree.d.ts +2 -2
- package/dist/components/ui/data-display/tree.d.ts.map +1 -1
- package/dist/components/ui/data-display/tree.esm.js +4 -2
- package/dist/components/ui/data-display/tree.js +4 -2
- package/dist/components/ui/data-display/types.d.ts +1 -1
- package/dist/components/ui/data-display/types.d.ts.map +1 -1
- package/dist/components/ui/data-display/types.esm.js +1 -0
- package/dist/components/ui/data-display/types.js +1 -0
- package/dist/components/ui/enterprise-mobile-experience-demo.d.ts +1 -1
- package/dist/components/ui/enterprise-mobile-experience-demo.d.ts.map +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/enterprise-mobile-experience.d.ts +1 -1
- package/dist/components/ui/enterprise-mobile-experience.d.ts.map +1 -1
- package/dist/components/ui/feedback/alert.d.ts +2 -2
- package/dist/components/ui/feedback/alert.d.ts.map +1 -1
- package/dist/components/ui/feedback/alert.esm.js +1 -0
- package/dist/components/ui/feedback/alert.js +1 -0
- package/dist/components/ui/feedback/progress.d.ts +2 -2
- package/dist/components/ui/feedback/progress.d.ts.map +1 -1
- package/dist/components/ui/feedback/progress.esm.js +2 -1
- package/dist/components/ui/feedback/progress.js +2 -1
- package/dist/components/ui/feedback/skeleton.d.ts +2 -2
- package/dist/components/ui/feedback/skeleton.d.ts.map +1 -1
- package/dist/components/ui/feedback/skeleton.esm.js +1 -0
- package/dist/components/ui/feedback/skeleton.js +1 -0
- package/dist/components/ui/feedback/toast.d.ts +2 -2
- package/dist/components/ui/feedback/toast.d.ts.map +1 -1
- package/dist/components/ui/feedback/toast.esm.js +1 -0
- package/dist/components/ui/feedback/toast.js +1 -0
- package/dist/components/ui/feedback/types.d.ts +1 -1
- package/dist/components/ui/feedback/types.d.ts.map +1 -1
- package/dist/components/ui/feedback/types.esm.js +1 -0
- package/dist/components/ui/feedback/types.js +1 -0
- package/dist/components/ui/font-preview.d.ts +2 -2
- package/dist/components/ui/font-preview.d.ts.map +1 -1
- package/dist/components/ui/font-preview.esm.js +3 -2
- package/dist/components/ui/font-preview.js +3 -2
- package/dist/components/ui/form-demo.d.ts +1 -1
- package/dist/components/ui/form-demo.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/dist/components/ui/hardware-acceleration-demo.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/dist/components/ui/layout-demo.d.ts.map +1 -1
- 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.d.ts +2 -1
- package/dist/components/ui/layouts/adaptive-layout.d.ts.map +1 -1
- 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.d.ts +2 -1
- package/dist/components/ui/layouts/desktop-layout.d.ts.map +1 -1
- 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.d.ts +2 -1
- package/dist/components/ui/layouts/mobile-layout.d.ts.map +1 -1
- 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.d.ts +2 -1
- package/dist/components/ui/layouts/tablet-layout.d.ts.map +1 -1
- 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 +3 -3
- package/dist/components/ui/mobile-form-validation.d.ts.map +1 -1
- package/dist/components/ui/mobile-form-validation.esm.js +12 -11
- package/dist/components/ui/mobile-form-validation.js +12 -11
- package/dist/components/ui/mobile-input-demo.d.ts +1 -1
- package/dist/components/ui/mobile-input-demo.d.ts.map +1 -1
- package/dist/components/ui/mobile-input-demo.esm.js +3 -2
- package/dist/components/ui/mobile-input-demo.js +3 -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.d.ts +1 -1
- package/dist/components/ui/mobile-skeleton-loading-demo.d.ts.map +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/backdrop.d.ts +1 -1
- package/dist/components/ui/overlay/backdrop.d.ts.map +1 -1
- package/dist/components/ui/overlay/backdrop.esm.js +1 -0
- package/dist/components/ui/overlay/backdrop.js +1 -0
- package/dist/components/ui/overlay/focus-manager.d.ts +1 -1
- package/dist/components/ui/overlay/focus-manager.d.ts.map +1 -1
- package/dist/components/ui/overlay/focus-manager.esm.js +1 -0
- package/dist/components/ui/overlay/focus-manager.js +1 -0
- package/dist/components/ui/overlay/modal.d.ts +2 -2
- package/dist/components/ui/overlay/modal.d.ts.map +1 -1
- package/dist/components/ui/overlay/modal.esm.js +8 -6
- package/dist/components/ui/overlay/modal.js +8 -6
- package/dist/components/ui/overlay/overlay-manager.d.ts +3 -2
- package/dist/components/ui/overlay/overlay-manager.d.ts.map +1 -1
- package/dist/components/ui/overlay/overlay-manager.esm.js +3 -1
- package/dist/components/ui/overlay/overlay-manager.js +3 -1
- package/dist/components/ui/overlay/popover.d.ts +2 -2
- package/dist/components/ui/overlay/popover.d.ts.map +1 -1
- package/dist/components/ui/overlay/popover.esm.js +4 -3
- package/dist/components/ui/overlay/popover.js +4 -3
- package/dist/components/ui/overlay/portal.d.ts +2 -2
- package/dist/components/ui/overlay/portal.d.ts.map +1 -1
- package/dist/components/ui/overlay/portal.esm.js +1 -0
- package/dist/components/ui/overlay/portal.js +1 -0
- package/dist/components/ui/overlay/tooltip.d.ts +2 -2
- package/dist/components/ui/overlay/tooltip.d.ts.map +1 -1
- package/dist/components/ui/overlay/tooltip.esm.js +3 -2
- package/dist/components/ui/overlay/tooltip.js +3 -2
- package/dist/components/ui/overlay/types.d.ts +1 -1
- package/dist/components/ui/overlay/types.d.ts.map +1 -1
- package/dist/components/ui/overlay/types.esm.js +1 -0
- package/dist/components/ui/overlay/types.js +1 -0
- package/dist/components/ui/performance-demo.d.ts +1 -1
- package/dist/components/ui/performance-demo.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/dist/components/ui/semantic-input-system-demo.d.ts.map +1 -1
- 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 +2 -2
- package/dist/components/ui/theme-customizer.d.ts.map +1 -1
- package/dist/components/ui/theme-customizer.esm.js +5 -4
- package/dist/components/ui/theme-customizer.js +5 -4
- package/dist/components/ui/theme-preview.d.ts +1 -1
- package/dist/components/ui/theme-preview.d.ts.map +1 -1
- package/dist/components/ui/theme-preview.esm.js +3 -2
- package/dist/components/ui/theme-preview.js +3 -2
- package/dist/components/ui/theme-switcher.d.ts +1 -1
- package/dist/components/ui/theme-switcher.d.ts.map +1 -1
- package/dist/components/ui/theme-switcher.esm.js +2 -1
- package/dist/components/ui/theme-switcher.js +2 -1
- package/dist/components/ui/theme-toggle.d.ts +1 -1
- package/dist/components/ui/theme-toggle.d.ts.map +1 -1
- package/dist/components/ui/theme-toggle.esm.js +2 -1
- package/dist/components/ui/theme-toggle.js +2 -1
- package/dist/components/ui/token-demo.d.ts +1 -1
- package/dist/components/ui/token-demo.d.ts.map +1 -1
- package/dist/components/ui/token-demo.esm.js +4 -3
- package/dist/components/ui/token-demo.js +4 -3
- package/dist/components/ui/touch-demo.d.ts +1 -1
- package/dist/components/ui/touch-demo.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/dist/components/ui/touch-friendly-interface-demo.d.ts.map +1 -1
- 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.d.ts +1 -1
- package/dist/components/ui/touch-friendly-interface.d.ts.map +1 -1
- 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/hooks/use-component-performance.d.ts +2 -1
- package/dist/hooks/use-component-performance.d.ts.map +1 -1
- package/dist/hooks/use-component-performance.esm.js +2 -1
- package/dist/hooks/use-component-performance.js +2 -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/dist/utils/lazy-loading.d.ts +1 -1
- package/dist/utils/lazy-loading.d.ts.map +1 -1
- package/dist/utils/lazy-loading.esm.js +2 -1
- package/dist/utils/lazy-loading.js +2 -1
- package/package.json +1 -1
- package/src/components/ui/accessibility-demo.tsx +12 -11
- package/src/components/ui/advanced-component-architecture-demo.tsx +10 -9
- package/src/components/ui/advanced-transition-system-demo.tsx +5 -4
- package/src/components/ui/advanced-transition-system.tsx +3 -2
- package/src/components/ui/animation/animated-container.tsx +3 -2
- package/src/components/ui/animation/staggered-container.tsx +3 -2
- package/src/components/ui/animation-demo.tsx +5 -4
- package/src/components/ui/battery-conscious-animation-demo.tsx +7 -6
- package/src/components/ui/border-radius-shadow-demo.tsx +3 -3
- package/src/components/ui/color-preview.tsx +5 -5
- package/src/components/ui/data-display/chart.tsx +4 -3
- package/src/components/ui/data-display/data-grid-simple.tsx +2 -2
- package/src/components/ui/data-display/data-grid.tsx +3 -2
- package/src/components/ui/data-display/list.tsx +3 -2
- package/src/components/ui/data-display/table.tsx +3 -2
- package/src/components/ui/data-display/timeline.tsx +3 -2
- package/src/components/ui/data-display/tree.tsx +4 -3
- package/src/components/ui/data-display/types.ts +1 -1
- package/src/components/ui/enterprise-mobile-experience-demo.tsx +5 -4
- package/src/components/ui/enterprise-mobile-experience.tsx +2 -1
- package/src/components/ui/feedback/alert.tsx +3 -2
- package/src/components/ui/feedback/progress.tsx +4 -3
- package/src/components/ui/feedback/skeleton.tsx +2 -2
- package/src/components/ui/feedback/toast.tsx +3 -2
- package/src/components/ui/feedback/types.ts +1 -1
- package/src/components/ui/font-preview.tsx +4 -4
- package/src/components/ui/form-demo.tsx +8 -7
- package/src/components/ui/hardware-acceleration-demo.tsx +7 -6
- package/src/components/ui/layout-demo.tsx +9 -8
- package/src/components/ui/layouts/adaptive-layout.tsx +7 -6
- package/src/components/ui/layouts/desktop-layout.tsx +5 -4
- package/src/components/ui/layouts/mobile-layout.tsx +4 -3
- package/src/components/ui/layouts/tablet-layout.tsx +5 -4
- package/src/components/ui/mobile-form-validation.tsx +12 -11
- package/src/components/ui/mobile-input-demo.tsx +3 -3
- package/src/components/ui/mobile-input.tsx +1 -1
- package/src/components/ui/mobile-skeleton-loading-demo.tsx +10 -9
- 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/backdrop.tsx +1 -1
- package/src/components/ui/overlay/focus-manager.tsx +2 -1
- package/src/components/ui/overlay/modal.tsx +8 -7
- package/src/components/ui/overlay/overlay-manager.tsx +3 -2
- package/src/components/ui/overlay/popover.tsx +6 -5
- package/src/components/ui/overlay/portal.tsx +3 -2
- package/src/components/ui/overlay/tooltip.tsx +5 -4
- package/src/components/ui/overlay/types.ts +1 -1
- package/src/components/ui/performance-demo.tsx +6 -5
- package/src/components/ui/semantic-input-system-demo.tsx +12 -11
- package/src/components/ui/theme-customizer.tsx +7 -6
- package/src/components/ui/theme-preview.tsx +3 -3
- package/src/components/ui/theme-switcher.tsx +3 -2
- package/src/components/ui/theme-toggle.tsx +3 -2
- package/src/components/ui/token-demo.tsx +5 -4
- package/src/components/ui/touch-demo.tsx +6 -5
- package/src/components/ui/touch-friendly-interface-demo.tsx +7 -6
- package/src/components/ui/touch-friendly-interface.tsx +3 -2
- package/src/hooks/use-animation-profile.ts +1 -1
- package/src/hooks/use-component-performance.ts +2 -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
- package/src/utils/lazy-loading.ts +1 -1
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js'
|
|
6
|
+
import { Badge } from './badge.js'
|
|
7
|
+
import { Button } from './button.js'
|
|
7
8
|
import {
|
|
8
9
|
MobileLayout,
|
|
9
10
|
TabletLayout,
|
|
10
11
|
DesktopLayout,
|
|
11
12
|
AdaptiveLayout
|
|
12
13
|
} from './layouts'
|
|
13
|
-
import { useAdaptiveLayout } from '../../hooks/use-adaptive-layout'
|
|
14
|
-
import { useLayoutPerformance } from '../../hooks/use-layout-performance'
|
|
15
|
-
import { useMobileLayout } from '../../hooks/use-mobile-layout'
|
|
16
|
-
import { useTabletLayout } from '../../hooks/use-tablet-layout'
|
|
14
|
+
import { useAdaptiveLayout } from '../../hooks/use-adaptive-layout.js'
|
|
15
|
+
import { useLayoutPerformance } from '../../hooks/use-layout-performance.js'
|
|
16
|
+
import { useMobileLayout } from '../../hooks/use-mobile-layout.js'
|
|
17
|
+
import { useTabletLayout } from '../../hooks/use-tablet-layout.js'
|
|
17
18
|
|
|
18
19
|
export const LayoutDemo: React.FC = () => {
|
|
19
20
|
const [activeLayout, setActiveLayout] = useState<'mobile' | 'tablet' | 'desktop' | 'adaptive'>('adaptive')
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ReactNode, useState, useEffect } from 'react';
|
|
5
|
+
import { Card, CardContent } from '../card.js'
|
|
6
|
+
import { Badge } from '../badge.js'
|
|
7
|
+
import { MobileLayout } from './mobile-layout.js'
|
|
8
|
+
import { TabletLayout } from './tablet-layout.js'
|
|
9
|
+
import { DesktopLayout } from './desktop-layout.js'
|
|
9
10
|
|
|
10
11
|
export type DeviceType = 'mobile' | 'tablet' | 'desktop'
|
|
11
12
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ReactNode, useState, useEffect } from 'react';
|
|
5
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../card.js'
|
|
6
|
+
import { Badge } from '../badge.js'
|
|
7
|
+
import { Button } from '../button.js'
|
|
7
8
|
|
|
8
9
|
export interface DesktopLayoutProps {
|
|
9
10
|
children: ReactNode
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ReactNode, useState, useEffect } from 'react';
|
|
5
|
+
import { Card, CardContent, CardHeader, CardTitle } from '../card.js'
|
|
6
|
+
import { Badge } from '../badge.js'
|
|
6
7
|
|
|
7
8
|
export interface MobileLayoutProps {
|
|
8
9
|
children: ReactNode
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ReactNode, useState, useEffect } from 'react';
|
|
5
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../card.js'
|
|
6
|
+
import { Badge } from '../badge.js'
|
|
7
|
+
import { Button } from '../button.js'
|
|
7
8
|
|
|
8
9
|
export interface TabletLayoutProps {
|
|
9
10
|
children: ReactNode
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useState, useRef, forwardRef } from 'react';
|
|
5
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js'
|
|
6
|
+
import { Button } from './button.js'
|
|
7
|
+
import { Badge } from './badge.js'
|
|
8
|
+
import { Input } from './input.js'
|
|
9
|
+
import { Label } from './label.js'
|
|
10
|
+
import { useMobileFormValidation, ValidationRule } from '../../hooks/use-mobile-form-validation.js'
|
|
11
|
+
import { useFormFeedback } from '../../hooks/use-form-feedback.js'
|
|
12
|
+
import { useMobileFormLayout } from '../../hooks/use-mobile-form-layout.js'
|
|
13
|
+
import { useSemanticInput, InputType } from '../../hooks/use-semantic-input.js'
|
|
14
|
+
import { useFormPerformance } from '../../hooks/use-form-performance.js'
|
|
14
15
|
|
|
15
16
|
export interface MobileFormValidationProps {
|
|
16
17
|
title?: string
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { Card } from './card';
|
|
3
|
-
import { MobileInput, mobileInputConfigs } from './mobile-input';
|
|
1
|
+
import * as React from 'react';;
|
|
2
|
+
import { Card } from './card.js';
|
|
3
|
+
import { MobileInput, mobileInputConfigs } from './mobile-input.js';
|
|
4
4
|
|
|
5
5
|
export const MobileInputDemo: React.FC = () => {
|
|
6
6
|
return (
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useState, useEffect } from 'react';
|
|
5
|
+
import { Card } from './card.js'
|
|
6
|
+
import { Button } from './button.js'
|
|
7
|
+
import { Badge } from './badge.js'
|
|
8
|
+
import { useMobileSkeleton } from '../../hooks/use-mobile-skeleton.js'
|
|
9
|
+
import { useDeviceLoadingStates } from '../../hooks/use-device-loading-states.js'
|
|
10
|
+
import { useLoadingPerformance } from '../../hooks/use-loading-performance.js'
|
|
11
|
+
import { useBatteryConsciousLoading } from '../../hooks/use-battery-conscious-loading.js'
|
|
12
|
+
import { useLoadingAccessibility } from '../../hooks/use-loading-accessibility.js'
|
|
12
13
|
|
|
13
14
|
export const MobileSkeletonLoadingDemo: React.FC = () => {
|
|
14
15
|
const [activeTab, setActiveTab] = useState('overview')
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import { useState, useMemo } from 'react';
|
|
10
10
|
import { ChevronRightIcon, HomeIcon } from '@heroicons/react/24/outline';
|
|
11
|
-
import { BreadcrumbProps, BreadcrumbItem } from './types';
|
|
11
|
+
import { BreadcrumbProps, BreadcrumbItem } from './types.js';
|
|
12
12
|
|
|
13
13
|
export const Breadcrumb: React.FC<BreadcrumbProps> = ({
|
|
14
14
|
items,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import { useState, useCallback, useMemo, useRef, useEffect } from 'react';
|
|
10
|
-
import { MenuProps, NavigationItem, NavigationGroup } from './types';
|
|
10
|
+
import { MenuProps, NavigationItem, NavigationGroup } from './types.js';
|
|
11
11
|
|
|
12
12
|
// Simple icon components
|
|
13
13
|
const ChevronDownIcon: React.FC<{ className?: string }> = ({ className = '' }) => (
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import { useState } from 'react';
|
|
10
|
-
import { Breadcrumb } from './breadcrumb';
|
|
11
|
-
import { Tabs } from './tabs';
|
|
12
|
-
import { Menu } from './menu';
|
|
13
|
-
import { Sidebar } from './sidebar';
|
|
14
|
-
import { Stepper } from './stepper';
|
|
15
|
-
import { Pagination } from './pagination';
|
|
16
|
-
import { NavigationItem, NavigationGroup } from './types';
|
|
10
|
+
import { Breadcrumb } from './breadcrumb.js';
|
|
11
|
+
import { Tabs } from './tabs.js';
|
|
12
|
+
import { Menu } from './menu.js';
|
|
13
|
+
import { Sidebar } from './sidebar.js';
|
|
14
|
+
import { Stepper } from './stepper.js';
|
|
15
|
+
import { Pagination } from './pagination.js';
|
|
16
|
+
import { NavigationItem, NavigationGroup } from './types.js';
|
|
17
17
|
|
|
18
18
|
export const NavigationDemo: React.FC = () => {
|
|
19
19
|
const [currentTab, setCurrentTab] = useState('overview');
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import { useMemo } from 'react';
|
|
10
10
|
import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/24/outline';
|
|
11
|
-
import { PaginationProps, PaginationItem } from './types';
|
|
11
|
+
import { PaginationProps, PaginationItem } from './types.js';
|
|
12
12
|
|
|
13
13
|
// Simple icon components
|
|
14
14
|
const ChevronDoubleLeftIcon: React.FC<{ className?: string }> = ({ className = '' }) => (
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import { useState, useCallback, useRef, useEffect } from 'react';
|
|
10
|
-
import { SidebarProps, NavigationItem, NavigationGroup } from './types';
|
|
10
|
+
import { SidebarProps, NavigationItem, NavigationGroup } from './types.js';
|
|
11
11
|
|
|
12
12
|
// Simple icon components
|
|
13
13
|
const ChevronLeftIcon: React.FC<{ className?: string }> = ({ className = '' }) => (
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import { useState, useCallback, useMemo } from 'react';
|
|
10
10
|
import { CheckIcon, ExclamationTriangleIcon } from '@heroicons/react/24/outline';
|
|
11
|
-
import { StepperProps, StepItem } from './types';
|
|
11
|
+
import { StepperProps, StepItem } from './types.js';
|
|
12
12
|
|
|
13
13
|
// Simple icon components
|
|
14
14
|
const ExclamationCircleIcon: React.FC<{ className?: string }> = ({ className = '' }) => (
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import { useState, useCallback, useMemo } from 'react';
|
|
10
10
|
import { XMarkIcon } from '@heroicons/react/24/outline';
|
|
11
|
-
import { TabsProps, TabItem } from './types';
|
|
11
|
+
import { TabsProps, TabItem } from './types.js';
|
|
12
12
|
|
|
13
13
|
// Simple icon components
|
|
14
14
|
const PlusIcon: React.FC<{ className?: string }> = ({ className = '' }) => (
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useEffect, useRef, useId } from 'react';;
|
|
5
|
+
import { useTheme } from '../../../themes/useTheme.js';
|
|
6
|
+
import { Portal } from './portal.js';
|
|
7
|
+
import { Backdrop } from './backdrop.js';
|
|
8
|
+
import { FocusManager } from './focus-manager.js';
|
|
9
|
+
import { useOverlayManager } from './overlay-manager.js';
|
|
10
|
+
import { ModalProps, ModalHeaderProps, ModalBodyProps, ModalFooterProps } from './types.js';
|
|
10
11
|
|
|
11
12
|
// SVG Icons
|
|
12
13
|
const XMarkIcon: React.FC<{ className?: string }> = ({ className = 'w-6 h-6' }) => (
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { createContext, useContext, useReducer, useCallback, ReactNode } from 'react';;
|
|
5
|
+
import { OverlayManagerProps, OverlayState, OverlayAction } from './types.js';
|
|
5
6
|
|
|
6
7
|
// Overlay context for managing global overlay state
|
|
7
8
|
interface OverlayContextType {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useState, useRef, useEffect, useCallback, cloneElement } from 'react';;
|
|
5
|
+
import { useTheme } from '../../../themes/useTheme.js';
|
|
6
|
+
import { Portal } from './portal.js';
|
|
7
|
+
import { FocusManager } from './focus-manager.js';
|
|
7
8
|
import {
|
|
8
9
|
PopoverProps,
|
|
9
10
|
PopoverContentProps,
|
|
10
11
|
PopoverHeaderProps,
|
|
11
12
|
PopoverBodyProps,
|
|
12
13
|
PopoverFooterProps
|
|
13
|
-
} from './types';
|
|
14
|
+
} from './types.js';
|
|
14
15
|
|
|
15
16
|
// SVG Icons
|
|
16
17
|
const XMarkIcon: React.FC<{ className?: string }> = ({ className = 'w-5 h-5' }) => (
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useEffect, useState } from 'react';;
|
|
4
5
|
import { createPortal } from 'react-dom';
|
|
5
|
-
import { PortalProps } from './types';
|
|
6
|
+
import { PortalProps } from './types.js';
|
|
6
7
|
|
|
7
8
|
export const Portal: React.FC<PortalProps> = ({
|
|
8
9
|
children,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useState, useRef, useEffect, useCallback, cloneElement } from 'react';;
|
|
5
|
+
import { useTheme } from '../../../themes/useTheme.js';
|
|
6
|
+
import { Portal } from './portal.js';
|
|
7
|
+
import { TooltipProps, TooltipContentProps } from './types.js';
|
|
7
8
|
|
|
8
9
|
// Default color fallbacks
|
|
9
10
|
const getDefaultColors = () => ({
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js'
|
|
6
|
+
import { Button } from './button.js'
|
|
7
|
+
import { Badge } from './badge.js'
|
|
7
8
|
import {
|
|
8
9
|
usePerformance,
|
|
9
10
|
useFrameRate,
|
|
@@ -11,7 +12,7 @@ import {
|
|
|
11
12
|
useBatteryStatus,
|
|
12
13
|
usePerformanceThrottling
|
|
13
14
|
} from '../../hooks'
|
|
14
|
-
import { useDevice } from '../../hooks/use-device'
|
|
15
|
+
import { useDevice } from '../../hooks/use-device.js'
|
|
15
16
|
|
|
16
17
|
export const PerformanceDemo: React.FC = () => {
|
|
17
18
|
const [activeTab, setActiveTab] = useState<'overview' | 'fps' | 'memory' | 'battery' | 'throttling'>('overview')
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js'
|
|
6
|
+
import { Button } from './button.js'
|
|
7
|
+
import { Input } from './input.js'
|
|
8
|
+
import { Label } from './label.js'
|
|
9
|
+
import { Badge } from './badge.js'
|
|
10
|
+
import { useSemanticInput } from '../../hooks/use-semantic-input.js'
|
|
11
|
+
import { useMobileKeyboardOptimization } from '../../hooks/use-mobile-keyboard-optimization.js'
|
|
12
|
+
import { useTouchFriendlyInput } from '../../hooks/use-touch-friendly-input.js'
|
|
13
|
+
import { useInputPerformance } from '../../hooks/use-input-performance.js'
|
|
14
|
+
import { useInputAccessibility } from '../../hooks/use-input-accessibility.js'
|
|
14
15
|
|
|
15
16
|
export const SemanticInputSystemDemo: React.FC = () => {
|
|
16
17
|
const [activeDemo, setActiveDemo] = useState<'semantic' | 'mobile' | 'touch' | 'performance' | 'accessibility'>('semantic')
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useState, useCallback, useEffect } from 'react';;
|
|
4
5
|
import { useTheme } from '../../themes';
|
|
5
|
-
import { Card, CardContent, CardHeader, CardTitle } from './card';
|
|
6
|
-
import { Button } from './button';
|
|
7
|
-
import { Input } from './input';
|
|
8
|
-
import { ThemePreview } from './theme-preview';
|
|
9
|
-
import type { CompleteThemeConfig } from '../../themes/types';
|
|
6
|
+
import { Card, CardContent, CardHeader, CardTitle } from './card.js';
|
|
7
|
+
import { Button } from './button.js';
|
|
8
|
+
import { Input } from './input.js';
|
|
9
|
+
import { ThemePreview } from './theme-preview.js';
|
|
10
|
+
import type { CompleteThemeConfig } from '../../themes/types.js';
|
|
10
11
|
|
|
11
12
|
export interface ThemeCustomizerProps {
|
|
12
13
|
initialTheme?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import * as React from 'react';;
|
|
2
2
|
import { useTheme } from '../../themes';
|
|
3
|
-
import { Card, CardContent, CardHeader, CardTitle } from './card';
|
|
4
|
-
import { Badge } from './badge';
|
|
3
|
+
import { Card, CardContent, CardHeader, CardTitle } from './card.js';
|
|
4
|
+
import { Badge } from './badge.js';
|
|
5
5
|
|
|
6
6
|
export interface ThemePreviewProps {
|
|
7
7
|
themeName?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useState, useEffect } from 'react';;
|
|
5
|
+
import { Button } from './button.js';
|
|
5
6
|
import { useTheme } from '../../themes';
|
|
6
7
|
import type { MultiThemeConfig } from '../../themes';
|
|
7
8
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useState, useEffect } from 'react';;
|
|
5
|
+
import { Button } from './button.js';
|
|
5
6
|
import { Moon, Sun } from 'lucide-react';
|
|
6
7
|
|
|
7
8
|
export const ThemeToggle: React.FC = () => {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useState } from 'react';;
|
|
5
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js';
|
|
6
|
+
import { Badge } from './badge.js';
|
|
7
|
+
import { Button } from './button.js';
|
|
7
8
|
import { useTheme } from '../../themes';
|
|
8
9
|
import { createTokenManager } from '../../tokens';
|
|
9
10
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useState, useRef } from 'react';
|
|
5
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js'
|
|
6
|
+
import { Button } from './button.js'
|
|
7
|
+
import { Badge } from './badge.js'
|
|
7
8
|
import { useGestures, useTouchOptimization, useMobileTouch } from '../../hooks'
|
|
8
|
-
import { useDevice } from '../../hooks/use-device'
|
|
9
|
+
import { useDevice } from '../../hooks/use-device.js'
|
|
9
10
|
|
|
10
11
|
export const TouchDemo: React.FC = () => {
|
|
11
12
|
const [activeTab, setActiveTab] = useState<'overview' | 'gestures' | 'optimization' | 'mobile'>('overview')
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { Badge } from './badge.js'
|
|
6
|
+
import { Input } from './input.js'
|
|
7
|
+
import { Button } from './button.js'
|
|
8
|
+
import { Card, CardContent } from './card.js'
|
|
9
|
+
import { useTouchFriendlyInterface } from '../../hooks/use-touch-friendly-interface.js'
|
|
9
10
|
|
|
10
11
|
export const TouchFriendlyInterfaceDemo: React.FC = () => {
|
|
11
12
|
const [activeDemo, setActiveDemo] = useState<'targets' | 'interactions' | 'performance' | 'accessibility'>('targets')
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
4
5
|
import { cn } from '../../lib/utils'
|
|
5
|
-
import { useTouchFriendlyInterface } from '../../hooks/use-touch-friendly-interface'
|
|
6
|
+
import { useTouchFriendlyInterface } from '../../hooks/use-touch-friendly-interface.js'
|
|
6
7
|
|
|
7
8
|
// Touch-Friendly Button Component
|
|
8
9
|
export interface TouchFriendlyButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useState, useCallback, useRef, useEffect, ReactNode, ComponentType } from 'react';
|
|
2
3
|
|
|
3
4
|
export interface ComponentPerformanceConfig {
|
|
4
5
|
enableMemoization?: boolean
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolve } from 'path'
|
|
2
2
|
import { existsSync, mkdirSync, writeFileSync } from 'fs'
|
|
3
3
|
import type { Plugin } from 'vite'
|
|
4
|
-
import type { MultiThemeConfig } from '../themes/types'
|
|
4
|
+
import type { MultiThemeConfig } from '../themes/types.js'
|
|
5
5
|
import { defaultThemes } from '../themes/base-themes'
|
|
6
6
|
|
|
7
7
|
export default function themeCSSGenerator(): Plugin {
|
|
@@ -280,7 +280,7 @@ export default function themeCSSGenerator(): Plugin {
|
|
|
280
280
|
console.log(`✅ Generated dual-mode CSS for theme: ${themeObj.meta.name} -> ${themeFileName}`)
|
|
281
281
|
|
|
282
282
|
// Add import to index file
|
|
283
|
-
indexCSS += `@import './${themeFileName}';\n`
|
|
283
|
+
indexCSS += `@import './${themeFileName}.js';\n`
|
|
284
284
|
|
|
285
285
|
// Set stan-design theme as default
|
|
286
286
|
if (themeKey === 'stan-design') {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createTheme, PartialThemeConfig } from '../inheritance';
|
|
1
|
+
import { createTheme, PartialThemeConfig } from '../inheritance.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Example: Minimal Theme using inheritance
|
|
@@ -97,7 +97,7 @@ export const minimalTheme = createTheme(minimalThemeConfig);
|
|
|
97
97
|
/**
|
|
98
98
|
* Example of checking theme completeness
|
|
99
99
|
*/
|
|
100
|
-
import { themeInheritanceManager } from '../inheritance';
|
|
100
|
+
import { themeInheritanceManager } from '../inheritance.js';
|
|
101
101
|
|
|
102
102
|
// This will return an empty array since inheritance fills in all missing values
|
|
103
103
|
const missingProperties = themeInheritanceManager.validateCompleteness(minimalTheme);
|