@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,8 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { useState } from 'react'
|
|
4
|
-
import { Badge } from './badge'
|
|
5
|
-
import { useEnterpriseMobileExperience } from '../../hooks/use-enterprise-mobile-experience'
|
|
4
|
+
import { Badge } from './badge.js'
|
|
5
|
+
import { useEnterpriseMobileExperience } from '../../hooks/use-enterprise-mobile-experience.js'
|
|
6
6
|
import {
|
|
7
7
|
EnterpriseButton,
|
|
8
8
|
EnterpriseCard,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
EnterpriseStatus,
|
|
13
13
|
EnterpriseLoading,
|
|
14
14
|
EnterpriseNotification
|
|
15
|
-
} from './enterprise-mobile-experience'
|
|
15
|
+
} from './enterprise-mobile-experience.js'
|
|
16
16
|
|
|
17
17
|
export const EnterpriseMobileExperienceDemo: React.FC = () => {
|
|
18
18
|
const [activeDemo, setActiveDemo] = useState<'overview' | 'quality' | 'performance' | 'accessibility' | 'components'>('overview')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { useState, useCallback } from 'react';
|
|
4
|
-
import { AlertProps, AlertAction } from './types';
|
|
4
|
+
import { AlertProps, AlertAction } from './types.js';
|
|
5
5
|
|
|
6
6
|
// Simple icon components
|
|
7
7
|
const CheckCircleIcon: React.FC<{ className?: string }> = ({ className = '' }) => (
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { useEffect, useState } from 'react';
|
|
4
|
-
import { useTheme } from '../../../themes/useTheme';
|
|
5
|
-
import { ProgressProps, ProgressStep } from './types';
|
|
4
|
+
import { useTheme } from '../../../themes/useTheme.js';
|
|
5
|
+
import { ProgressProps, ProgressStep } from './types.js';
|
|
6
6
|
|
|
7
7
|
// Default color fallbacks for when theme is not available
|
|
8
8
|
const getDefaultColors = () => ({
|
|
@@ -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
|
|
|
4
4
|
// Base Skeleton Component
|
|
5
5
|
const BaseSkeleton: React.FC<SkeletonProps> = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { useState, useEffect, useCallback, useRef } from 'react';
|
|
4
|
-
import { ToastProps, ToastAction, ToastContainerProps } from './types';
|
|
4
|
+
import { ToastProps, ToastAction, ToastContainerProps } from './types.js';
|
|
5
5
|
|
|
6
6
|
// Simple icon components
|
|
7
7
|
const CheckCircleIcon: React.FC<{ className?: string }> = ({ className = '' }) => (
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
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
|
-
import { FontConfig } from '../../themes/types';
|
|
5
|
+
import { FontConfig } from '../../themes/types.js';
|
|
6
6
|
|
|
7
7
|
export interface FontPreviewProps {
|
|
8
8
|
fontConfig?: FontConfig;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { 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, { MobileFormValidationRef } 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, { MobileFormValidationRef } from './mobile-form-validation.js'
|
|
9
9
|
|
|
10
|
-
import { InputType } from '../../hooks/use-semantic-input'
|
|
10
|
+
import { InputType } from '../../hooks/use-semantic-input.js'
|
|
11
11
|
|
|
12
12
|
export const FormDemo: React.FC = () => {
|
|
13
13
|
const [activeTab, setActiveTab] = useState<'basic' | 'advanced' | 'performance' | 'semantic'>('basic')
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { 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
|
|
|
10
10
|
export const HardwareAccelerationDemo: React.FC = () => {
|
|
11
11
|
const [showGPUInfo, setShowGPUInfo] = useState(true)
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { 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 {
|
|
8
8
|
MobileLayout,
|
|
9
9
|
TabletLayout,
|
|
10
10
|
DesktopLayout,
|
|
11
11
|
AdaptiveLayout
|
|
12
12
|
} 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'
|
|
13
|
+
import { useAdaptiveLayout } from '../../hooks/use-adaptive-layout.js'
|
|
14
|
+
import { useLayoutPerformance } from '../../hooks/use-layout-performance.js'
|
|
15
|
+
import { useMobileLayout } from '../../hooks/use-mobile-layout.js'
|
|
16
|
+
import { useTabletLayout } from '../../hooks/use-tablet-layout.js'
|
|
17
17
|
|
|
18
18
|
export const LayoutDemo: React.FC = () => {
|
|
19
19
|
const [activeLayout, setActiveLayout] = useState<'mobile' | 'tablet' | 'desktop' | 'adaptive'>('adaptive')
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { ReactNode, 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
|
|
|
10
10
|
export type DeviceType = 'mobile' | 'tablet' | 'desktop'
|
|
11
11
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { ReactNode, 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
|
|
|
8
8
|
export interface DesktopLayoutProps {
|
|
9
9
|
children: ReactNode
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { ReactNode, 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
|
|
|
7
7
|
export interface MobileLayoutProps {
|
|
8
8
|
children: ReactNode
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { ReactNode, 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
|
|
|
8
8
|
export interface TabletLayoutProps {
|
|
9
9
|
children: ReactNode
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
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, ValidationRule } 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, InputType } 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, ValidationRule } 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, InputType } from '../../hooks/use-semantic-input.js'
|
|
13
|
+
import { useFormPerformance } from '../../hooks/use-form-performance.js'
|
|
14
14
|
|
|
15
15
|
export interface MobileFormValidationProps {
|
|
16
16
|
title?: string
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
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
|
|
|
5
5
|
export const MobileInputDemo: React.FC = () => {
|
|
6
6
|
return (
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { 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
|
|
|
13
13
|
export const MobileSkeletonLoadingDemo: React.FC = () => {
|
|
14
14
|
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,12 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { useEffect, useRef, useId } from 'react';
|
|
4
|
-
import { useTheme } from '../../../themes/useTheme';
|
|
5
|
-
import { Portal } from './portal';
|
|
6
|
-
import { Backdrop } from './backdrop';
|
|
7
|
-
import { FocusManager } from './focus-manager';
|
|
8
|
-
import { useOverlayManager } from './overlay-manager';
|
|
9
|
-
import { ModalProps, ModalHeaderProps, ModalBodyProps, ModalFooterProps } from './types';
|
|
4
|
+
import { useTheme } from '../../../themes/useTheme.js';
|
|
5
|
+
import { Portal } from './portal.js';
|
|
6
|
+
import { Backdrop } from './backdrop.js';
|
|
7
|
+
import { FocusManager } from './focus-manager.js';
|
|
8
|
+
import { useOverlayManager } from './overlay-manager.js';
|
|
9
|
+
import { ModalProps, ModalHeaderProps, ModalBodyProps, ModalFooterProps } from './types.js';
|
|
10
10
|
|
|
11
11
|
// SVG Icons
|
|
12
12
|
const XMarkIcon: React.FC<{ className?: string }> = ({ className = 'w-6 h-6' }) => (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { createContext, useContext, useReducer, useCallback, ReactNode } from 'react';
|
|
4
|
-
import { OverlayManagerProps, OverlayState, OverlayAction } from './types';
|
|
4
|
+
import { OverlayManagerProps, OverlayState, OverlayAction } from './types.js';
|
|
5
5
|
|
|
6
6
|
// Overlay context for managing global overlay state
|
|
7
7
|
interface OverlayContextType {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { useState, useRef, useEffect, useCallback, cloneElement } from 'react';
|
|
4
|
-
import { useTheme } from '../../../themes/useTheme';
|
|
5
|
-
import { Portal } from './portal';
|
|
6
|
-
import { FocusManager } from './focus-manager';
|
|
4
|
+
import { useTheme } from '../../../themes/useTheme.js';
|
|
5
|
+
import { Portal } from './portal.js';
|
|
6
|
+
import { FocusManager } from './focus-manager.js';
|
|
7
7
|
import {
|
|
8
8
|
PopoverProps,
|
|
9
9
|
PopoverContentProps,
|
|
10
10
|
PopoverHeaderProps,
|
|
11
11
|
PopoverBodyProps,
|
|
12
12
|
PopoverFooterProps
|
|
13
|
-
} from './types';
|
|
13
|
+
} from './types.js';
|
|
14
14
|
|
|
15
15
|
// SVG Icons
|
|
16
16
|
const XMarkIcon: React.FC<{ className?: string }> = ({ className = 'w-5 h-5' }) => (
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { useState, useRef, useEffect, useCallback, cloneElement } from 'react';
|
|
4
|
-
import { useTheme } from '../../../themes/useTheme';
|
|
5
|
-
import { Portal } from './portal';
|
|
6
|
-
import { TooltipProps, TooltipContentProps } from './types';
|
|
4
|
+
import { useTheme } from '../../../themes/useTheme.js';
|
|
5
|
+
import { Portal } from './portal.js';
|
|
6
|
+
import { TooltipProps, TooltipContentProps } from './types.js';
|
|
7
7
|
|
|
8
8
|
// Default color fallbacks
|
|
9
9
|
const getDefaultColors = () => ({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { useState } from 'react'
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card'
|
|
5
|
-
import { Button } from './button'
|
|
6
|
-
import { Badge } from './badge'
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js'
|
|
5
|
+
import { Button } from './button.js'
|
|
6
|
+
import { Badge } from './badge.js'
|
|
7
7
|
import {
|
|
8
8
|
usePerformance,
|
|
9
9
|
useFrameRate,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useBatteryStatus,
|
|
12
12
|
usePerformanceThrottling
|
|
13
13
|
} from '../../hooks'
|
|
14
|
-
import { useDevice } from '../../hooks/use-device'
|
|
14
|
+
import { useDevice } from '../../hooks/use-device.js'
|
|
15
15
|
|
|
16
16
|
export const PerformanceDemo: React.FC = () => {
|
|
17
17
|
const [activeTab, setActiveTab] = useState<'overview' | 'fps' | 'memory' | 'battery' | 'throttling'>('overview')
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { useState } from 'react'
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card'
|
|
5
|
-
import { Button } from './button'
|
|
6
|
-
import { Input } from './input'
|
|
7
|
-
import { Label } from './label'
|
|
8
|
-
import { Badge } from './badge'
|
|
9
|
-
import { useSemanticInput } from '../../hooks/use-semantic-input'
|
|
10
|
-
import { useMobileKeyboardOptimization } from '../../hooks/use-mobile-keyboard-optimization'
|
|
11
|
-
import { useTouchFriendlyInput } from '../../hooks/use-touch-friendly-input'
|
|
12
|
-
import { useInputPerformance } from '../../hooks/use-input-performance'
|
|
13
|
-
import { useInputAccessibility } from '../../hooks/use-input-accessibility'
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js'
|
|
5
|
+
import { Button } from './button.js'
|
|
6
|
+
import { Input } from './input.js'
|
|
7
|
+
import { Label } from './label.js'
|
|
8
|
+
import { Badge } from './badge.js'
|
|
9
|
+
import { useSemanticInput } from '../../hooks/use-semantic-input.js'
|
|
10
|
+
import { useMobileKeyboardOptimization } from '../../hooks/use-mobile-keyboard-optimization.js'
|
|
11
|
+
import { useTouchFriendlyInput } from '../../hooks/use-touch-friendly-input.js'
|
|
12
|
+
import { useInputPerformance } from '../../hooks/use-input-performance.js'
|
|
13
|
+
import { useInputAccessibility } from '../../hooks/use-input-accessibility.js'
|
|
14
14
|
|
|
15
15
|
export const SemanticInputSystemDemo: React.FC = () => {
|
|
16
16
|
const [activeDemo, setActiveDemo] = useState<'semantic' | 'mobile' | 'touch' | 'performance' | 'accessibility'>('semantic')
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
4
4
|
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';
|
|
5
|
+
import { Card, CardContent, CardHeader, CardTitle } from './card.js';
|
|
6
|
+
import { Button } from './button.js';
|
|
7
|
+
import { Input } from './input.js';
|
|
8
|
+
import { ThemePreview } from './theme-preview.js';
|
|
9
|
+
import type { CompleteThemeConfig } from '../../themes/types.js';
|
|
10
10
|
|
|
11
11
|
export interface ThemeCustomizerProps {
|
|
12
12
|
initialTheme?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 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,9 +1,9 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { 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 { useTheme } from '../../themes';
|
|
8
8
|
import { createTokenManager } from '../../tokens';
|
|
9
9
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { useState, useRef } from 'react'
|
|
4
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card'
|
|
5
|
-
import { Button } from './button'
|
|
6
|
-
import { Badge } from './badge'
|
|
4
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card.js'
|
|
5
|
+
import { Button } from './button.js'
|
|
6
|
+
import { Badge } from './badge.js'
|
|
7
7
|
import { useGestures, useTouchOptimization, useMobileTouch } from '../../hooks'
|
|
8
|
-
import { useDevice } from '../../hooks/use-device'
|
|
8
|
+
import { useDevice } from '../../hooks/use-device.js'
|
|
9
9
|
|
|
10
10
|
export const TouchDemo: React.FC = () => {
|
|
11
11
|
const [activeTab, setActiveTab] = useState<'overview' | 'gestures' | 'optimization' | 'mobile'>('overview')
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import React, { useState } from 'react'
|
|
4
|
-
import { Badge } from './badge'
|
|
5
|
-
import { Input } from './input'
|
|
6
|
-
import { Button } from './button'
|
|
7
|
-
import { Card, CardContent } from './card'
|
|
8
|
-
import { useTouchFriendlyInterface } from '../../hooks/use-touch-friendly-interface'
|
|
4
|
+
import { Badge } from './badge.js'
|
|
5
|
+
import { Input } from './input.js'
|
|
6
|
+
import { Button } from './button.js'
|
|
7
|
+
import { Card, CardContent } from './card.js'
|
|
8
|
+
import { useTouchFriendlyInterface } from '../../hooks/use-touch-friendly-interface.js'
|
|
9
9
|
|
|
10
10
|
export const TouchFriendlyInterfaceDemo: React.FC = () => {
|
|
11
11
|
const [activeDemo, setActiveDemo] = useState<'targets' | 'interactions' | 'performance' | 'accessibility'>('targets')
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React, { forwardRef } from 'react'
|
|
4
4
|
import { cn } from '../../lib/utils'
|
|
5
|
-
import { useTouchFriendlyInterface } from '../../hooks/use-touch-friendly-interface'
|
|
5
|
+
import { useTouchFriendlyInterface } from '../../hooks/use-touch-friendly-interface.js'
|
|
6
6
|
|
|
7
7
|
// Touch-Friendly Button Component
|
|
8
8
|
export interface TouchFriendlyButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -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') {
|