5.6.6 • Published 8 months ago

@airmoney-degn/react-ui v5.6.6

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

Air Money Degn React UI Library

A comprehensive React UI library built with TypeScript and Vite, providing reusable components, hooks, and utilities for the Air Money application.

Features

Components

  • UI Components

    • Button - Reusable button component
    • LoadingButton - Button with loading state
    • ErrorMessage - Error message display component
    • SimpleLoading - Loading indicator
    • FullscreenLoadingMessage - Fullscreen loading state
    • Frame - Container component
    • CenteredFlex - Flex container with centered content
  • Input Components

    • NumberInput - Number input field
    • NumPad - Numeric keypad component
    • BlockSelector - Block selection component
    • CarouselSelector - Carousel-based selector
  • Display Components

    • Chart - Chart visualization component
    • ColoredValue - Value display with color coding
    • FormattedValue - Formatted value display
    • CoinBadge - Cryptocurrency badge component
    • StatefulBox - Stateful container component

Hooks

  • Input Handling

    • useNumpad - Numeric keypad hook
    • useNumpadV2 - Updated numeric keypad hook
    • useKey - Keyboard input handling
    • useKeyV2 - Updated keyboard input handling
    • useBackKey - Back key handling
  • UI Interaction

    • useCarousel - Carousel functionality
    • useCarouselV2 - Updated carousel functionality
    • useScrollIntoView - Scroll management
    • useDeviceButton - Device button handling
  • State Management

    • usePairValue - Pair value management
    • useNetworkStatus - Network status tracking
    • useAsyncFnReset - Async function reset handling
    • useCallbackRef - Callback reference management
    • useFakeTransactionMessage - Transaction message simulation

Utilities

  • formatter - Value formatting utilities
  • cx - Class name utility
  • getStep - Step calculation utility
  • onKeyChange - Key change handling utility

Contexts

  • AppContext - Main application context for managing global state
  • AppProvider - Provider component for AppContext
  • useApp - Hook for accessing AppContext values

Additional Modules

  • Shandc - A collection of specialized components, hooks, and utilities

Usage

Import components and hooks as needed:

// Basic UI components
import { Button, ErrorMessage, SimpleLoading, ... } from '@airmoney-degn/react-ui';

// Input components
import { NumberInput, NumPad, BlockSelector, ... } from '@airmoney-degn/react-ui';

// Display components
import { Chart, ColoredValue, CoinBadge, ... } from '@airmoney-degn/react-ui';

// Hooks
import { useNumpad, useKey, useNetworkStatus, ... } from '@airmoney-degn/react-ui';

// Context
import { AppProvider, useApp, ... } from '@airmoney-degn/react-ui';

// Utilities
import { formatter, cx, getStep, ... } from '@airmoney-degn/react-ui';

License

This project is proprietary and confidential. All rights reserved.

5.6.6

8 months ago

5.6.5

8 months ago

5.6.4

8 months ago

5.6.2

8 months ago

5.6.1

8 months ago

5.6.0

8 months ago

5.5.0

8 months ago

5.4.0

8 months ago

5.3.11

8 months ago

5.3.10

8 months ago

5.3.9

8 months ago

5.3.8

9 months ago

5.3.7

9 months ago

5.3.6

9 months ago

5.3.5

9 months ago

5.3.4

9 months ago

5.3.3

9 months ago

5.3.2

9 months ago

5.3.1

9 months ago

5.3.0

9 months ago

5.2.0

9 months ago

5.1.3

9 months ago

5.1.2

9 months ago

5.1.1

9 months ago

5.1.0

9 months ago

5.0.0

9 months ago

4.1.3

10 months ago

4.1.2

10 months ago

4.1.1

10 months ago

4.1.0

10 months ago

4.0.2

10 months ago

4.0.1

10 months ago

4.0.0

10 months ago

3.1.3

10 months ago

3.1.2

10 months ago

3.1.1

10 months ago

3.1.0

10 months ago

1.8.0

10 months ago

3.0.2

10 months ago

3.0.1

10 months ago

3.0.0

10 months ago

2.0.0

10 months ago

1.7.2

10 months ago

1.7.1

10 months ago

1.7.0

10 months ago

1.5.4

10 months ago

1.5.3

10 months ago

1.5.2

10 months ago

1.5.1

10 months ago