advi-ui 0.1.5 → 0.1.7

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,19 @@
1
+ import { ReactNode } from 'react';
2
+ export interface AccordionItem {
3
+ value: string;
4
+ title: string;
5
+ content: ReactNode;
6
+ disabled?: boolean;
7
+ }
8
+ export interface AccordionProps {
9
+ items: AccordionItem[];
10
+ value?: string | string[];
11
+ defaultValue?: string | string[];
12
+ onChange?: (value: string | string[]) => void;
13
+ multiple?: boolean;
14
+ className?: string;
15
+ }
16
+ export declare const Accordion: {
17
+ ({ items, value, defaultValue, onChange, multiple, className, }: AccordionProps): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
@@ -0,0 +1,11 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type BadgeVariant = "default" | "secondary" | "destructive" | "outline";
3
+ export type BadgeSize = "sm" | "default" | "lg";
4
+ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
5
+ variant?: BadgeVariant;
6
+ size?: BadgeSize;
7
+ }
8
+ export declare const Badge: {
9
+ ({ variant, size, className, children, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
@@ -0,0 +1,27 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ export interface CheckboxOption {
3
+ value: string;
4
+ label: string;
5
+ disabled?: boolean;
6
+ }
7
+ export type CheckboxSize = "sm" | "default" | "lg";
8
+ export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
9
+ label?: string;
10
+ size?: CheckboxSize;
11
+ indeterminate?: boolean;
12
+ }
13
+ export declare const Checkbox: import('react').ForwardRefExoticComponent<CheckboxProps & import('react').RefAttributes<HTMLInputElement>>;
14
+ interface CheckboxGroupProps {
15
+ options: CheckboxOption[];
16
+ value?: string[];
17
+ defaultValue?: string[];
18
+ onChange?: (value: string[]) => void;
19
+ label?: string;
20
+ description?: string;
21
+ disabled?: boolean;
22
+ direction?: "vertical" | "horizontal";
23
+ size?: CheckboxSize;
24
+ className?: string;
25
+ }
26
+ export declare const CheckboxGroup: import('react').ForwardRefExoticComponent<CheckboxGroupProps & import('react').RefAttributes<HTMLDivElement>>;
27
+ export {};
@@ -0,0 +1,8 @@
1
+ import { InputHTMLAttributes } from 'react';
2
+ export type SwitchSize = "sm" | "default" | "lg";
3
+ export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
4
+ label?: string;
5
+ size?: SwitchSize;
6
+ labelPosition?: "left" | "right";
7
+ }
8
+ export declare const Switch: import('react').ForwardRefExoticComponent<SwitchProps & import('react').RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ export interface TabItem {
3
+ value: string;
4
+ label: string;
5
+ content: ReactNode;
6
+ disabled?: boolean;
7
+ }
8
+ export interface TabsProps {
9
+ tabs: TabItem[];
10
+ value?: string;
11
+ defaultValue?: string;
12
+ onChange?: (value: string) => void;
13
+ className?: string;
14
+ }
15
+ export declare const Tabs: {
16
+ ({ tabs, value, defaultValue, onChange, className }: TabsProps): import("react/jsx-runtime").JSX.Element;
17
+ displayName: string;
18
+ };
@@ -2,11 +2,11 @@ export * from './lib/utils';
2
2
  export * from './components/ui/button';
3
3
  export * from './components/ui/card';
4
4
  export * from './components/ui/dialog';
5
+ export * from './components/ui/form-field';
5
6
  export * from './components/ui/input';
6
7
  export * from './components/ui/link';
7
8
  export * from './components/ui/loading';
8
9
  export * from './components/ui/modal';
9
- export * from './components/ui/form-field';
10
10
  export * from './components/ui/multi-select';
11
11
  export * from './components/ui/radio';
12
12
  export * from './components/ui/select';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "advi-ui",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Personal React component library built on shadcn/ui + Tailwind CSS",
5
5
  "type": "module",
6
6
  "main": "./dist/advi-ui.cjs.js",