@aciole/acyon 0.0.3 → 0.0.4

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.
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { AccordionComponent, AccordionItemProps } from './types';
3
3
  export type { AccordionComponent, AccordionItemProps, AccordionProps } from './types';
4
- export declare const AccordionItem: React.FC<AccordionItemProps>;
4
+ export declare const AccordionItem: React.NamedExoticComponent<AccordionItemProps>;
5
5
  export declare const Accordion: AccordionComponent;
@@ -3,5 +3,5 @@ import { CardHeaderProps, CardProps, CardSectionProps } from './types';
3
3
  export type { CardHeaderProps, CardPadding, CardProps, CardSectionProps, CardVariant } from './types';
4
4
  export declare function Card<TElement extends React.ElementType = 'div'>({ padding, variant, as, children, className, ...props }: CardProps<TElement>): import("react/jsx-runtime").JSX.Element;
5
5
  export declare function CardHeader({ title, description, icon, action, children, className, ...props }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
6
- export declare function CardBody({ children, className, ...props }: CardSectionProps): import("react/jsx-runtime").JSX.Element;
7
- export declare function CardFooter({ children, className, ...props }: CardSectionProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare const CardBody: React.NamedExoticComponent<CardSectionProps>;
7
+ export declare const CardFooter: React.NamedExoticComponent<CardSectionProps>;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { CarouselProps } from './types';
3
+ export type { CarouselProps } from './types';
4
+ export declare const Carousel: React.FC<CarouselProps>;
@@ -0,0 +1,20 @@
1
+ import type * as React from 'react';
2
+ export interface CarouselProps {
3
+ /** Array of slides — accepts any ReactNode: images, components, JSX */
4
+ items: React.ReactNode[];
5
+ /** Controlled active index */
6
+ index?: number;
7
+ /** Initial index when uncontrolled */
8
+ defaultIndex?: number;
9
+ /** Called when the active slide changes */
10
+ onChange?: (index: number) => void;
11
+ /** Number of slides visible at once (default: 1) */
12
+ itemsPerView?: number;
13
+ /** Show dot indicators (default: true) */
14
+ showDots?: boolean;
15
+ /** Show prev/next arrow buttons (default: true) */
16
+ showArrows?: boolean;
17
+ /** Wrap around from last to first slide (default: false) */
18
+ loop?: boolean;
19
+ className?: string;
20
+ }
@@ -5,4 +5,6 @@ export interface ImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
5
5
  objectFit?: ImageObjectFit;
6
6
  radius?: ImageRadius;
7
7
  fallback?: React.ReactNode;
8
+ width?: number;
9
+ height?: number;
8
10
  }
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { NumberInputProps } from './types';
3
+ export type { NumberInputProps, NumberInputVariant } from './types';
4
+ export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,19 @@
1
+ import type * as React from 'react';
2
+ export type NumberInputVariant = 'default' | 'stepper';
3
+ export interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'value' | 'defaultValue' | 'onChange'> {
4
+ value?: number | undefined;
5
+ defaultValue?: number | undefined;
6
+ onChange?: (value: number | undefined) => void;
7
+ min?: number;
8
+ max?: number;
9
+ step?: number;
10
+ variant?: NumberInputVariant;
11
+ disabled?: boolean;
12
+ invalid?: boolean;
13
+ fullWidth?: boolean;
14
+ label?: string;
15
+ hint?: string;
16
+ error?: string;
17
+ inputClassName?: string;
18
+ containerClassName?: string;
19
+ }
@@ -6,4 +6,5 @@ export interface PageHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
6
6
  onBack?: () => void;
7
7
  action?: React.ReactNode;
8
8
  width?: string;
9
+ mb?: string;
9
10
  }
@@ -3,6 +3,6 @@ import type * as React from 'react';
3
3
  export interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
4
4
  label?: string;
5
5
  description?: string;
6
- error?: boolean;
6
+ error?: string;
7
7
  color?: ColorValue;
8
8
  }
@@ -2,8 +2,8 @@ import { default as React } from 'react';
2
2
  import { TableProps } from './types';
3
3
  export type { TableProps } from './types';
4
4
  export declare const Table: React.FC<TableProps>;
5
- export declare const Thead: React.FC<React.HTMLAttributes<HTMLTableSectionElement>>;
6
- export declare const Tbody: React.FC<React.HTMLAttributes<HTMLTableSectionElement>>;
7
- export declare const Tr: React.FC<React.HTMLAttributes<HTMLTableRowElement>>;
8
- export declare const Th: React.FC<React.ThHTMLAttributes<HTMLTableCellElement>>;
9
- export declare const Td: React.FC<React.TdHTMLAttributes<HTMLTableCellElement>>;
5
+ export declare const Thead: React.NamedExoticComponent<React.HTMLAttributes<HTMLTableSectionElement>>;
6
+ export declare const Tbody: React.NamedExoticComponent<React.HTMLAttributes<HTMLTableSectionElement>>;
7
+ export declare const Tr: React.NamedExoticComponent<React.HTMLAttributes<HTMLTableRowElement>>;
8
+ export declare const Th: React.NamedExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement>>;
9
+ export declare const Td: React.NamedExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement>>;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { ToastContextValue, ToastProviderProps } from './types';
3
- export type { ToastColor, ToastContextValue, ToastData, ToastPosition, ToastProviderProps } from './types';
3
+ export type { ToastColor, ToastContextValue, ToastData, ToastPosition, ToastProviderProps, ToastVariant } from './types';
4
4
  export declare const ToastProvider: React.FC<ToastProviderProps>;
5
5
  export declare function useToast(): ToastContextValue;
@@ -2,11 +2,13 @@ import { ColorValue } from '../../utils/styleTokens';
2
2
  import type * as React from 'react';
3
3
  export type ToastPosition = 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';
4
4
  export type ToastColor = Extract<ColorValue, string>;
5
+ export type ToastVariant = 'default' | 'snackbar';
5
6
  export interface ToastData {
6
7
  id: string;
7
8
  title: string;
8
9
  description?: string;
9
10
  color?: ToastColor;
11
+ variant?: ToastVariant;
10
12
  duration?: number;
11
13
  }
12
14
  export interface ToastContextValue {
@@ -11,6 +11,8 @@ export * from './Dropdown/Dropdown';
11
11
  export * from './Checkbox/Checkbox';
12
12
  export * from './Radio/Radio';
13
13
  export * from './Slider/Slider';
14
+ export * from './NumberInput/NumberInput';
15
+ export * from './Carousel/Carousel';
14
16
  export * from './FileUpload/FileUpload';
15
17
  export * from './Card/Card';
16
18
  export * from './Box/Box';
@@ -1,5 +1,5 @@
1
1
  import { IconProps } from './IconBase';
2
- export type IconName = 'activity' | 'alert-circle' | 'alert-triangle' | 'align-horizontal' | 'align-justify' | 'app-window' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'badge' | 'battery' | 'bell' | 'bluetooth' | 'book' | 'box' | 'calendar' | 'camera' | 'check-square' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevron' | 'circle-dot' | 'clock' | 'close' | 'cloud' | 'code' | 'component' | 'copy' | 'credit-card' | 'database' | 'download' | 'edit' | 'external-link' | 'eye-off' | 'eye' | 'file-text' | 'file' | 'filter' | 'folder' | 'form-input' | 'ghost' | 'gift' | 'git-commit' | 'github' | 'grid' | 'grip' | 'heading1' | 'heart' | 'help-circle' | 'history' | 'home' | 'image' | 'info' | 'lab' | 'laptop' | 'layout-template' | 'layout' | 'link' | 'linkedin' | 'list-checks' | 'list-collapse' | 'list-filter' | 'list' | 'loader2' | 'lock' | 'log-in' | 'log-out' | 'mail' | 'map-pin' | 'menu' | 'message-circle' | 'message-square' | 'mic' | 'milestone' | 'minus' | 'monitor' | 'moon' | 'more-horizontal' | 'mouse-pointer' | 'music' | 'panel-left' | 'panel-top' | 'panel' | 'phone' | 'plus' | 'rectangle-horizontal' | 'refresh' | 'rocket' | 'ruler' | 'search' | 'server' | 'settings' | 'share' | 'shield' | 'shopping-cart' | 'sliders-horizontal' | 'smartphone' | 'spark' | 'sparkles' | 'spinner' | 'square' | 'star' | 'sun' | 'table' | 'tablet' | 'tag' | 'text-cursor' | 'theme-dark' | 'theme-light' | 'toggle-right' | 'trash' | 'type' | 'unlock' | 'upload-cloud' | 'upload' | 'user-circle' | 'user' | 'video' | 'warning' | 'wifi' | 'x' | 'zap';
2
+ export type IconName = 'activity' | 'alert-circle' | 'alert-triangle' | 'align-horizontal' | 'align-justify' | 'app-window' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'badge' | 'battery' | 'bell' | 'bluetooth' | 'book' | 'box' | 'calendar' | 'camera' | 'check-square' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevron' | 'circle-dot' | 'clock' | 'close' | 'cloud' | 'code' | 'component' | 'copy' | 'credit-card' | 'database' | 'download' | 'edit' | 'external-link' | 'eye-off' | 'eye' | 'file-text' | 'file' | 'filter' | 'folder' | 'form-input' | 'ghost' | 'gift' | 'git-commit' | 'github' | 'grid' | 'grip' | 'hash' | 'heading1' | 'heart' | 'help-circle' | 'history' | 'home' | 'image' | 'info' | 'lab' | 'laptop' | 'layout-template' | 'layout' | 'link' | 'linkedin' | 'list-checks' | 'list-collapse' | 'list-filter' | 'list' | 'loader2' | 'lock' | 'log-in' | 'log-out' | 'mail' | 'map-pin' | 'menu' | 'message-circle' | 'message-square' | 'mic' | 'milestone' | 'minus' | 'monitor' | 'moon' | 'more-horizontal' | 'mouse-pointer' | 'music' | 'panel-left' | 'panel-top' | 'panel' | 'phone' | 'plus' | 'rectangle-horizontal' | 'refresh' | 'rocket' | 'ruler' | 'search' | 'server' | 'settings' | 'share' | 'shield' | 'shopping-cart' | 'sliders-horizontal' | 'smartphone' | 'spark' | 'sparkles' | 'spinner' | 'square' | 'star' | 'sun' | 'table' | 'tablet' | 'tag' | 'text-cursor' | 'theme-dark' | 'theme-light' | 'toggle-right' | 'trash' | 'type' | 'unlock' | 'upload-cloud' | 'upload' | 'user-circle' | 'user' | 'video' | 'warning' | 'wifi' | 'x' | 'zap';
3
3
  declare const icons: {
4
4
  activity: {
5
5
  viewBox: string;
@@ -451,6 +451,15 @@ declare const icons: {
451
451
  strokeLinejoin: string;
452
452
  body: string;
453
453
  };
454
+ hash: {
455
+ viewBox: string;
456
+ fill: string;
457
+ stroke: string;
458
+ strokeWidth: string;
459
+ strokeLinecap: string;
460
+ strokeLinejoin: string;
461
+ body: string;
462
+ };
454
463
  heading1: {
455
464
  viewBox: string;
456
465
  fill: string;
@@ -1190,6 +1199,7 @@ export declare const GitCommitIcon: (props: IconProps) => import("react/jsx-runt
1190
1199
  export declare const GithubIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
1191
1200
  export declare const GridIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
1192
1201
  export declare const GripIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
1202
+ export declare const HashIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
1193
1203
  export declare const Heading1Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
1194
1204
  export declare const HeartIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
1195
1205
  export declare const HelpCircleIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aciole/acyon",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Acyon React component library",
5
5
  "keywords": [
6
6
  "react",