@rakeyshgidwani/roger-ui-bank-theme-stan-design 0.2.17 → 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.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.map +1 -1
- package/dist/components/ui/advanced-component-architecture-demo.esm.js +9 -8
- package/dist/components/ui/advanced-component-architecture-demo.js +9 -8
- package/dist/components/ui/advanced-transition-system-demo.d.ts.map +1 -1
- package/dist/components/ui/advanced-transition-system-demo.esm.js +4 -3
- package/dist/components/ui/advanced-transition-system-demo.js +4 -3
- package/dist/components/ui/advanced-transition-system.d.ts.map +1 -1
- package/dist/components/ui/advanced-transition-system.esm.js +2 -1
- package/dist/components/ui/advanced-transition-system.js +2 -1
- package/dist/components/ui/animation/animated-container.d.ts.map +1 -1
- package/dist/components/ui/animation/animated-container.esm.js +2 -1
- package/dist/components/ui/animation/animated-container.js +2 -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.d.ts.map +1 -1
- package/dist/components/ui/animation-demo.esm.js +4 -3
- package/dist/components/ui/animation-demo.js +4 -3
- package/dist/components/ui/battery-conscious-animation-demo.d.ts.map +1 -1
- package/dist/components/ui/battery-conscious-animation-demo.esm.js +6 -5
- package/dist/components/ui/battery-conscious-animation-demo.js +6 -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/button.d.ts.map +1 -1
- package/dist/components/ui/button.esm.js +1 -0
- package/dist/components/ui/button.js +1 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.esm.js +1 -0
- package/dist/components/ui/checkbox.js +1 -0
- 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 +2 -1
- package/dist/components/ui/data-display/chart.js +2 -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/data-grid.esm.js +1 -0
- package/dist/components/ui/data-display/data-grid.js +1 -0
- 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/list.esm.js +1 -0
- package/dist/components/ui/data-display/list.js +1 -0
- 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/table.esm.js +1 -0
- package/dist/components/ui/data-display/table.js +1 -0
- 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/timeline.esm.js +1 -0
- package/dist/components/ui/data-display/timeline.js +1 -0
- 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 +2 -1
- package/dist/components/ui/data-display/tree.js +2 -1
- package/dist/components/ui/enterprise-mobile-experience-demo.d.ts.map +1 -1
- package/dist/components/ui/enterprise-mobile-experience-demo.esm.js +4 -3
- package/dist/components/ui/enterprise-mobile-experience-demo.js +4 -3
- package/dist/components/ui/enterprise-mobile-experience.d.ts.map +1 -1
- package/dist/components/ui/enterprise-mobile-experience.esm.js +1 -0
- package/dist/components/ui/enterprise-mobile-experience.js +1 -0
- 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/alert.esm.js +1 -0
- package/dist/components/ui/feedback/alert.js +1 -0
- 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 +2 -1
- package/dist/components/ui/feedback/progress.js +2 -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/feedback/toast.esm.js +1 -0
- package/dist/components/ui/feedback/toast.js +1 -0
- 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.d.ts.map +1 -1
- package/dist/components/ui/form-demo.esm.js +6 -5
- package/dist/components/ui/form-demo.js +6 -5
- package/dist/components/ui/hardware-acceleration-demo.d.ts.map +1 -1
- package/dist/components/ui/hardware-acceleration-demo.esm.js +6 -5
- package/dist/components/ui/hardware-acceleration-demo.js +6 -5
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.esm.js +1 -0
- package/dist/components/ui/input.js +1 -0
- package/dist/components/ui/layout-demo.d.ts.map +1 -1
- package/dist/components/ui/layout-demo.esm.js +8 -7
- package/dist/components/ui/layout-demo.js +8 -7
- package/dist/components/ui/layouts/adaptive-layout.d.ts.map +1 -1
- package/dist/components/ui/layouts/adaptive-layout.esm.js +6 -5
- package/dist/components/ui/layouts/adaptive-layout.js +6 -5
- package/dist/components/ui/layouts/desktop-layout.d.ts.map +1 -1
- package/dist/components/ui/layouts/desktop-layout.esm.js +4 -3
- package/dist/components/ui/layouts/desktop-layout.js +4 -3
- package/dist/components/ui/layouts/mobile-layout.d.ts.map +1 -1
- package/dist/components/ui/layouts/mobile-layout.esm.js +3 -2
- package/dist/components/ui/layouts/mobile-layout.js +3 -2
- package/dist/components/ui/layouts/tablet-layout.d.ts.map +1 -1
- package/dist/components/ui/layouts/tablet-layout.esm.js +4 -3
- package/dist/components/ui/layouts/tablet-layout.js +4 -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 +11 -10
- package/dist/components/ui/mobile-form-validation.js +11 -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.d.ts.map +1 -1
- package/dist/components/ui/mobile-input.esm.js +2 -1
- package/dist/components/ui/mobile-input.js +2 -1
- package/dist/components/ui/mobile-skeleton-loading-demo.d.ts.map +1 -1
- package/dist/components/ui/mobile-skeleton-loading-demo.esm.js +9 -8
- package/dist/components/ui/mobile-skeleton-loading-demo.js +9 -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/breadcrumb.esm.js +5 -0
- package/dist/components/ui/navigation/breadcrumb.js +5 -0
- 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/menu.esm.js +5 -0
- package/dist/components/ui/navigation/menu.js +5 -0
- package/dist/components/ui/navigation/navigation-demo.d.ts.map +1 -1
- package/dist/components/ui/navigation/navigation-demo.esm.js +11 -6
- package/dist/components/ui/navigation/navigation-demo.js +11 -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/pagination.esm.js +5 -0
- package/dist/components/ui/navigation/pagination.js +5 -0
- 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/sidebar.esm.js +5 -0
- package/dist/components/ui/navigation/sidebar.js +5 -0
- 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/stepper.esm.js +5 -0
- package/dist/components/ui/navigation/stepper.js +5 -0
- 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/navigation/tabs.esm.js +5 -0
- package/dist/components/ui/navigation/tabs.js +5 -0
- 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.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 +1 -1
- package/dist/components/ui/overlay/modal.d.ts.map +1 -1
- package/dist/components/ui/overlay/modal.esm.js +6 -5
- package/dist/components/ui/overlay/modal.js +6 -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/overlay-manager.esm.js +1 -0
- package/dist/components/ui/overlay/overlay-manager.js +1 -0
- 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 +4 -3
- package/dist/components/ui/overlay/popover.js +4 -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/portal.esm.js +1 -0
- package/dist/components/ui/overlay/portal.js +1 -0
- 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 +3 -2
- package/dist/components/ui/overlay/tooltip.js +3 -2
- package/dist/components/ui/performance-demo.d.ts.map +1 -1
- package/dist/components/ui/performance-demo.esm.js +5 -4
- package/dist/components/ui/performance-demo.js +5 -4
- package/dist/components/ui/semantic-input-system-demo.d.ts.map +1 -1
- package/dist/components/ui/semantic-input-system-demo.esm.js +11 -10
- package/dist/components/ui/semantic-input-system-demo.js +11 -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 +5 -4
- package/dist/components/ui/theme-customizer.js +5 -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.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.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.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.map +1 -1
- package/dist/components/ui/touch-demo.esm.js +5 -4
- package/dist/components/ui/touch-demo.js +5 -4
- package/dist/components/ui/touch-friendly-interface-demo.d.ts.map +1 -1
- package/dist/components/ui/touch-friendly-interface-demo.esm.js +6 -5
- package/dist/components/ui/touch-friendly-interface-demo.js +6 -5
- package/dist/components/ui/touch-friendly-interface.d.ts.map +1 -1
- package/dist/components/ui/touch-friendly-interface.esm.js +2 -1
- package/dist/components/ui/touch-friendly-interface.js +2 -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-device.d.ts.map +1 -1
- package/dist/hooks/use-device.esm.js +1 -0
- package/dist/hooks/use-device.js +1 -0
- package/dist/index.d.ts +281 -281
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +151 -151
- package/dist/index.js +151 -151
- 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 +12 -10
- package/src/components/ui/advanced-component-architecture-demo.tsx +10 -8
- package/src/components/ui/advanced-transition-system-demo.tsx +5 -3
- package/src/components/ui/advanced-transition-system.tsx +3 -1
- package/src/components/ui/animation/animated-container.tsx +3 -1
- package/src/components/ui/animation/staggered-container.tsx +1 -1
- package/src/components/ui/animation-demo.tsx +5 -3
- package/src/components/ui/battery-conscious-animation-demo.tsx +7 -5
- package/src/components/ui/border-radius-shadow-demo.tsx +2 -2
- package/src/components/ui/button.tsx +2 -0
- package/src/components/ui/checkbox.tsx +2 -0
- package/src/components/ui/color-preview.tsx +4 -4
- package/src/components/ui/data-display/chart.tsx +4 -2
- package/src/components/ui/data-display/data-grid-simple.tsx +1 -1
- package/src/components/ui/data-display/data-grid.tsx +3 -1
- package/src/components/ui/data-display/list.tsx +3 -1
- package/src/components/ui/data-display/table.tsx +3 -1
- package/src/components/ui/data-display/timeline.tsx +3 -1
- package/src/components/ui/data-display/tree.tsx +4 -2
- package/src/components/ui/enterprise-mobile-experience-demo.tsx +5 -3
- package/src/components/ui/enterprise-mobile-experience.tsx +2 -0
- package/src/components/ui/feedback/alert.tsx +3 -1
- package/src/components/ui/feedback/progress.tsx +4 -2
- package/src/components/ui/feedback/skeleton.tsx +1 -1
- package/src/components/ui/feedback/toast.tsx +3 -1
- package/src/components/ui/font-preview.tsx +3 -3
- package/src/components/ui/form-demo.tsx +8 -6
- package/src/components/ui/hardware-acceleration-demo.tsx +7 -5
- package/src/components/ui/input.tsx +2 -0
- package/src/components/ui/layout-demo.tsx +9 -7
- package/src/components/ui/layouts/adaptive-layout.tsx +7 -5
- package/src/components/ui/layouts/desktop-layout.tsx +5 -3
- package/src/components/ui/layouts/mobile-layout.tsx +4 -2
- package/src/components/ui/layouts/tablet-layout.tsx +5 -3
- package/src/components/ui/mobile-form-validation.tsx +12 -10
- package/src/components/ui/mobile-input-demo.tsx +2 -2
- package/src/components/ui/mobile-input.tsx +3 -1
- package/src/components/ui/mobile-skeleton-loading-demo.tsx +10 -8
- package/src/components/ui/navigation/breadcrumb.tsx +3 -1
- package/src/components/ui/navigation/menu.tsx +3 -1
- package/src/components/ui/navigation/navigation-demo.tsx +9 -7
- package/src/components/ui/navigation/pagination.tsx +3 -1
- package/src/components/ui/navigation/sidebar.tsx +3 -1
- package/src/components/ui/navigation/stepper.tsx +3 -1
- package/src/components/ui/navigation/tabs.tsx +3 -1
- package/src/components/ui/overlay/backdrop.tsx +2 -0
- package/src/components/ui/overlay/focus-manager.tsx +2 -0
- package/src/components/ui/overlay/modal.tsx +8 -6
- package/src/components/ui/overlay/overlay-manager.tsx +3 -1
- package/src/components/ui/overlay/popover.tsx +6 -4
- package/src/components/ui/overlay/portal.tsx +3 -1
- package/src/components/ui/overlay/tooltip.tsx +5 -3
- package/src/components/ui/performance-demo.tsx +6 -4
- package/src/components/ui/semantic-input-system-demo.tsx +12 -10
- package/src/components/ui/theme-customizer.tsx +7 -5
- package/src/components/ui/theme-preview.tsx +2 -2
- package/src/components/ui/theme-switcher.tsx +3 -1
- package/src/components/ui/theme-toggle.tsx +3 -1
- package/src/components/ui/token-demo.tsx +5 -3
- package/src/components/ui/touch-demo.tsx +6 -4
- package/src/components/ui/touch-friendly-interface-demo.tsx +7 -5
- package/src/components/ui/touch-friendly-interface.tsx +3 -1
- package/src/hooks/use-animation-profile.ts +1 -1
- package/src/hooks/use-device.tsx +2 -0
- package/src/index.ts +282 -282
- 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,14 +1,16 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
1
3
|
import React, { useState, useRef, forwardRef } from 'react'
|
|
2
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card'
|
|
3
|
-
import { Button } from './button'
|
|
4
|
-
import { Badge } from './badge'
|
|
5
|
-
import { Input } from './input'
|
|
6
|
-
import { Label } from './label'
|
|
7
|
-
import { useMobileFormValidation, ValidationRule } from '../../hooks/use-mobile-form-validation'
|
|
8
|
-
import { useFormFeedback } from '../../hooks/use-form-feedback'
|
|
9
|
-
import { useMobileFormLayout } from '../../hooks/use-mobile-form-layout'
|
|
10
|
-
import { useSemanticInput, InputType } from '../../hooks/use-semantic-input'
|
|
11
|
-
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'
|
|
12
14
|
|
|
13
15
|
export interface MobileFormValidationProps {
|
|
14
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,12 +1,14 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
1
3
|
import React, { useState, useEffect } from 'react'
|
|
2
|
-
import { Card } from './card'
|
|
3
|
-
import { Button } from './button'
|
|
4
|
-
import { Badge } from './badge'
|
|
5
|
-
import { useMobileSkeleton } from '../../hooks/use-mobile-skeleton'
|
|
6
|
-
import { useDeviceLoadingStates } from '../../hooks/use-device-loading-states'
|
|
7
|
-
import { useLoadingPerformance } from '../../hooks/use-loading-performance'
|
|
8
|
-
import { useBatteryConsciousLoading } from '../../hooks/use-battery-conscious-loading'
|
|
9
|
-
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'
|
|
10
12
|
|
|
11
13
|
export const MobileSkeletonLoadingDemo: React.FC = () => {
|
|
12
14
|
const [activeTab, setActiveTab] = useState('overview')
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
* Provides navigation breadcrumbs with theme support and responsive design
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
'use client'
|
|
7
|
+
|
|
6
8
|
import * as React from 'react';
|
|
7
9
|
import { useState, useMemo } from 'react';
|
|
8
10
|
import { ChevronRightIcon, HomeIcon } from '@heroicons/react/24/outline';
|
|
9
|
-
import { BreadcrumbProps, BreadcrumbItem } from './types';
|
|
11
|
+
import { BreadcrumbProps, BreadcrumbItem } from './types.js';
|
|
10
12
|
|
|
11
13
|
export const Breadcrumb: React.FC<BreadcrumbProps> = ({
|
|
12
14
|
items,
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
* Provides comprehensive menu functionality with theme support and multiple variants
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
'use client'
|
|
7
|
+
|
|
6
8
|
import * as React from 'react';
|
|
7
9
|
import { useState, useCallback, useMemo, useRef, useEffect } from 'react';
|
|
8
|
-
import { MenuProps, NavigationItem, NavigationGroup } from './types';
|
|
10
|
+
import { MenuProps, NavigationItem, NavigationGroup } from './types.js';
|
|
9
11
|
|
|
10
12
|
// Simple icon components
|
|
11
13
|
const ChevronDownIcon: React.FC<{ className?: string }> = ({ className = '' }) => (
|
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
* Showcases all navigation components with different themes and configurations
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
'use client'
|
|
7
|
+
|
|
6
8
|
import * as React from 'react';
|
|
7
9
|
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';
|
|
14
|
-
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';
|
|
15
17
|
|
|
16
18
|
export const NavigationDemo: React.FC = () => {
|
|
17
19
|
const [currentTab, setCurrentTab] = useState('overview');
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
* Provides comprehensive pagination with theme support and responsive design
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
'use client'
|
|
7
|
+
|
|
6
8
|
import * as React from 'react';
|
|
7
9
|
import { useMemo } from 'react';
|
|
8
10
|
import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/24/outline';
|
|
9
|
-
import { PaginationProps, PaginationItem } from './types';
|
|
11
|
+
import { PaginationProps, PaginationItem } from './types.js';
|
|
10
12
|
|
|
11
13
|
// Simple icon components
|
|
12
14
|
const ChevronDoubleLeftIcon: React.FC<{ className?: string }> = ({ className = '' }) => (
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
* Provides comprehensive sidebar functionality with theme support and multiple variants
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
'use client'
|
|
7
|
+
|
|
6
8
|
import * as React from 'react';
|
|
7
9
|
import { useState, useCallback, useRef, useEffect } from 'react';
|
|
8
|
-
import { SidebarProps, NavigationItem, NavigationGroup } from './types';
|
|
10
|
+
import { SidebarProps, NavigationItem, NavigationGroup } from './types.js';
|
|
9
11
|
|
|
10
12
|
// Simple icon components
|
|
11
13
|
const ChevronLeftIcon: React.FC<{ className?: string }> = ({ className = '' }) => (
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
* Provides comprehensive stepper functionality with theme support and multiple variants
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
'use client'
|
|
7
|
+
|
|
6
8
|
import * as React from 'react';
|
|
7
9
|
import { useState, useCallback, useMemo } from 'react';
|
|
8
10
|
import { CheckIcon, ExclamationTriangleIcon } from '@heroicons/react/24/outline';
|
|
9
|
-
import { StepperProps, StepItem } from './types';
|
|
11
|
+
import { StepperProps, StepItem } from './types.js';
|
|
10
12
|
|
|
11
13
|
// Simple icon components
|
|
12
14
|
const ExclamationCircleIcon: React.FC<{ className?: string }> = ({ className = '' }) => (
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
* Provides comprehensive tab functionality with theme support and multiple variants
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
'use client'
|
|
7
|
+
|
|
6
8
|
import * as React from 'react';
|
|
7
9
|
import { useState, useCallback, useMemo } from 'react';
|
|
8
10
|
import { XMarkIcon } from '@heroicons/react/24/outline';
|
|
9
|
-
import { TabsProps, TabItem } from './types';
|
|
11
|
+
import { TabsProps, TabItem } from './types.js';
|
|
10
12
|
|
|
11
13
|
// Simple icon components
|
|
12
14
|
const PlusIcon: React.FC<{ className?: string }> = ({ className = '' }) => (
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
1
3
|
import React, { useEffect, useRef, useId } from 'react';
|
|
2
|
-
import { useTheme } from '../../../themes/useTheme';
|
|
3
|
-
import { Portal } from './portal';
|
|
4
|
-
import { Backdrop } from './backdrop';
|
|
5
|
-
import { FocusManager } from './focus-manager';
|
|
6
|
-
import { useOverlayManager } from './overlay-manager';
|
|
7
|
-
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';
|
|
8
10
|
|
|
9
11
|
// SVG Icons
|
|
10
12
|
const XMarkIcon: React.FC<{ className?: string }> = ({ className = 'w-6 h-6' }) => (
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
1
3
|
import React, { createContext, useContext, useReducer, useCallback, ReactNode } from 'react';
|
|
2
|
-
import { OverlayManagerProps, OverlayState, OverlayAction } from './types';
|
|
4
|
+
import { OverlayManagerProps, OverlayState, OverlayAction } from './types.js';
|
|
3
5
|
|
|
4
6
|
// Overlay context for managing global overlay state
|
|
5
7
|
interface OverlayContextType {
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
1
3
|
import React, { useState, useRef, useEffect, useCallback, cloneElement } from 'react';
|
|
2
|
-
import { useTheme } from '../../../themes/useTheme';
|
|
3
|
-
import { Portal } from './portal';
|
|
4
|
-
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';
|
|
5
7
|
import {
|
|
6
8
|
PopoverProps,
|
|
7
9
|
PopoverContentProps,
|
|
8
10
|
PopoverHeaderProps,
|
|
9
11
|
PopoverBodyProps,
|
|
10
12
|
PopoverFooterProps
|
|
11
|
-
} from './types';
|
|
13
|
+
} from './types.js';
|
|
12
14
|
|
|
13
15
|
// SVG Icons
|
|
14
16
|
const XMarkIcon: React.FC<{ className?: string }> = ({ className = 'w-5 h-5' }) => (
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
1
3
|
import React, { useState, useRef, useEffect, useCallback, cloneElement } from 'react';
|
|
2
|
-
import { useTheme } from '../../../themes/useTheme';
|
|
3
|
-
import { Portal } from './portal';
|
|
4
|
-
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';
|
|
5
7
|
|
|
6
8
|
// Default color fallbacks
|
|
7
9
|
const getDefaultColors = () => ({
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
1
3
|
import React, { useState } from 'react'
|
|
2
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card'
|
|
3
|
-
import { Button } from './button'
|
|
4
|
-
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'
|
|
5
7
|
import {
|
|
6
8
|
usePerformance,
|
|
7
9
|
useFrameRate,
|
|
@@ -9,7 +11,7 @@ import {
|
|
|
9
11
|
useBatteryStatus,
|
|
10
12
|
usePerformanceThrottling
|
|
11
13
|
} from '../../hooks'
|
|
12
|
-
import { useDevice } from '../../hooks/use-device'
|
|
14
|
+
import { useDevice } from '../../hooks/use-device.js'
|
|
13
15
|
|
|
14
16
|
export const PerformanceDemo: React.FC = () => {
|
|
15
17
|
const [activeTab, setActiveTab] = useState<'overview' | 'fps' | 'memory' | 'battery' | 'throttling'>('overview')
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
1
3
|
import React, { useState } from 'react'
|
|
2
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card'
|
|
3
|
-
import { Button } from './button'
|
|
4
|
-
import { Input } from './input'
|
|
5
|
-
import { Label } from './label'
|
|
6
|
-
import { Badge } from './badge'
|
|
7
|
-
import { useSemanticInput } from '../../hooks/use-semantic-input'
|
|
8
|
-
import { useMobileKeyboardOptimization } from '../../hooks/use-mobile-keyboard-optimization'
|
|
9
|
-
import { useTouchFriendlyInput } from '../../hooks/use-touch-friendly-input'
|
|
10
|
-
import { useInputPerformance } from '../../hooks/use-input-performance'
|
|
11
|
-
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'
|
|
12
14
|
|
|
13
15
|
export const SemanticInputSystemDemo: React.FC = () => {
|
|
14
16
|
const [activeDemo, setActiveDemo] = useState<'semantic' | 'mobile' | 'touch' | 'performance' | 'accessibility'>('semantic')
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
1
3
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
2
4
|
import { useTheme } from '../../themes';
|
|
3
|
-
import { Card, CardContent, CardHeader, CardTitle } from './card';
|
|
4
|
-
import { Button } from './button';
|
|
5
|
-
import { Input } from './input';
|
|
6
|
-
import { ThemePreview } from './theme-preview';
|
|
7
|
-
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';
|
|
8
10
|
|
|
9
11
|
export interface ThemeCustomizerProps {
|
|
10
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,7 +1,9 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
1
3
|
import React, { useState } from 'react';
|
|
2
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card';
|
|
3
|
-
import { Badge } from './badge';
|
|
4
|
-
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';
|
|
5
7
|
import { useTheme } from '../../themes';
|
|
6
8
|
import { createTokenManager } from '../../tokens';
|
|
7
9
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
1
3
|
import React, { useState, useRef } from 'react'
|
|
2
|
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from './card'
|
|
3
|
-
import { Button } from './button'
|
|
4
|
-
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'
|
|
5
7
|
import { useGestures, useTouchOptimization, useMobileTouch } from '../../hooks'
|
|
6
|
-
import { useDevice } from '../../hooks/use-device'
|
|
8
|
+
import { useDevice } from '../../hooks/use-device.js'
|
|
7
9
|
|
|
8
10
|
export const TouchDemo: React.FC = () => {
|
|
9
11
|
const [activeTab, setActiveTab] = useState<'overview' | 'gestures' | 'optimization' | 'mobile'>('overview')
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
1
3
|
import React, { useState } from 'react'
|
|
2
|
-
import { Badge } from './badge'
|
|
3
|
-
import { Input } from './input'
|
|
4
|
-
import { Button } from './button'
|
|
5
|
-
import { Card, CardContent } from './card'
|
|
6
|
-
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'
|
|
7
9
|
|
|
8
10
|
export const TouchFriendlyInterfaceDemo: React.FC = () => {
|
|
9
11
|
const [activeDemo, setActiveDemo] = useState<'targets' | 'interactions' | 'performance' | 'accessibility'>('targets')
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
1
3
|
import React, { forwardRef } from 'react'
|
|
2
4
|
import { cn } from '../../lib/utils'
|
|
3
|
-
import { useTouchFriendlyInterface } from '../../hooks/use-touch-friendly-interface'
|
|
5
|
+
import { useTouchFriendlyInterface } from '../../hooks/use-touch-friendly-interface.js'
|
|
4
6
|
|
|
5
7
|
// Touch-Friendly Button Component
|
|
6
8
|
export interface TouchFriendlyButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|