@easy-ui-react/easy-ui-react 1.4.0 → 1.5.0

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.
@@ -0,0 +1,3 @@
1
+ import { EasyUIContextValue } from './EasyUIProvider.types';
2
+ export declare const EasyUIContext: import('react').Context<import('..').EasyUIConfig>;
3
+ export declare function useEasyUIConfig(): EasyUIContextValue;
@@ -0,0 +1,5 @@
1
+ import { EasyUIProviderProps } from './EasyUIProvider.types';
2
+ export declare function EasyUIProvider({ config, children }: EasyUIProviderProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare namespace EasyUIProvider {
4
+ var displayName: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { EasyUIConfig } from '../config/easyui.config.types';
3
+ export interface EasyUIProviderProps {
4
+ config?: EasyUIConfig;
5
+ children?: ReactNode;
6
+ }
7
+ export type EasyUIContextValue = EasyUIConfig;
@@ -0,0 +1,2 @@
1
+ export { EasyUIProvider } from './EasyUIProvider';
2
+ export type { EasyUIProviderProps, EasyUIContextValue } from './EasyUIProvider.types';
@@ -0,0 +1,23 @@
1
+ import { ReactNode } from 'react';
2
+ export interface EasyUIBaseProps<TSlots extends string = string> {
3
+ size?: 'sm' | 'md' | 'lg';
4
+ disabled?: boolean;
5
+ className?: string;
6
+ classNames?: Partial<Record<TSlots, string>>;
7
+ }
8
+ export interface WithContentProps {
9
+ startContent?: ReactNode;
10
+ endContent?: ReactNode;
11
+ startContentPlacement?: 'outside' | 'inside';
12
+ endContentPlacement?: 'outside' | 'inside';
13
+ }
14
+ export interface WithVariantProps {
15
+ variant?: 'solid' | 'outlined' | 'flat' | 'light';
16
+ color?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error';
17
+ radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
18
+ }
19
+ export interface WithLabelProps {
20
+ label?: string;
21
+ description?: string;
22
+ descriptionPlacement?: 'label' | 'element';
23
+ }
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,3 @@
1
+ import { EasyUIBaseProps, WithVariantProps } from '../types/base';
2
+ export declare const SIZE_CLASSES: Record<NonNullable<EasyUIBaseProps['size']>, string>;
3
+ export declare const RADIUS_CLASSES: Record<NonNullable<WithVariantProps['radius']>, string>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@easy-ui-react/easy-ui-react",
3
3
  "private": false,
4
- "version": "1.4.0",
4
+ "version": "1.5.0",
5
5
  "description": "A React UI component library",
6
6
  "license": "MIT",
7
7
  "type": "module",