@kpf_/kiso 1.0.1 → 1.0.2

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.
@@ -2,10 +2,12 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const buttonVariants: (props?: ({
4
4
  variant?: "primary" | "secondary" | "destructive" | "ghost" | "inverse" | null | undefined;
5
- size?: "sm" | "md" | "lg" | null | undefined;
5
+ size?: "sm" | "md" | "lg" | "icon" | null | undefined;
6
+ rounded?: "sm" | "md" | "lg" | "none" | "xl" | "full" | null | undefined;
7
+ fullWidth?: boolean | null | undefined;
6
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
9
+ export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className">, VariantProps<typeof buttonVariants> {
8
10
  isLoading?: boolean;
9
11
  }
10
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
12
+ declare const Button: React.MemoExoticComponent<React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>>;
11
13
  export { Button, buttonVariants };
@@ -1,8 +1,15 @@
1
+ import { VariantProps } from 'class-variance-authority';
1
2
  import * as React from "react";
2
- export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
+ declare const inputVariants: (props?: ({
4
+ status?: "default" | "error" | "success" | "warning" | null | undefined;
5
+ inputSize?: "sm" | "md" | "lg" | null | undefined;
6
+ fullWidth?: boolean | null | undefined;
7
+ rounded?: "sm" | "md" | "lg" | "none" | "xl" | "full" | null | undefined;
8
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
+ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "className" | "size">, VariantProps<typeof inputVariants> {
3
10
  leftIcon?: React.ReactNode;
4
11
  rightAction?: React.ReactNode;
5
12
  error?: boolean;
6
13
  }
7
- declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
14
+ declare const Input: React.MemoExoticComponent<React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>>;
8
15
  export { Input };
@@ -3,7 +3,7 @@ export interface ToggleProps {
3
3
  checked: boolean;
4
4
  onChange: (checked: boolean) => void;
5
5
  disabled?: boolean;
6
- className?: string;
6
+ size?: 'sm' | 'md' | 'lg';
7
7
  }
8
- declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
8
+ declare const Toggle: React.MemoExoticComponent<React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>>;
9
9
  export { Toggle };
@@ -1,23 +1,24 @@
1
1
  import * as React from "react";
2
2
  import * as DialogPrimitive from "@radix-ui/react-dialog";
3
3
  type ModalVariant = "standard" | "sheet" | "bottom";
4
- interface ModalContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
4
+ interface ModalContentProps extends Omit<React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, "className"> {
5
5
  variant?: ModalVariant;
6
+ rounded?: "none" | "sm" | "md" | "lg" | "xl" | "full";
6
7
  }
7
- export declare const KisoModal: {
8
+ export declare const Modal: {
8
9
  Root: React.FC<DialogPrimitive.DialogProps>;
9
10
  Trigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
10
11
  Content: React.ForwardRefExoticComponent<ModalContentProps & React.RefAttributes<HTMLDivElement>>;
11
12
  Header: {
12
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
13
+ ({ ...props }: Omit<React.HTMLAttributes<HTMLDivElement>, "className">): import("react/jsx-runtime").JSX.Element;
13
14
  displayName: string;
14
15
  };
15
16
  Footer: {
16
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
17
+ ({ ...props }: Omit<React.HTMLAttributes<HTMLDivElement>, "className">): import("react/jsx-runtime").JSX.Element;
17
18
  displayName: string;
18
19
  };
19
- Title: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
20
- Description: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
20
+ Title: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref">, "className"> & React.RefAttributes<HTMLHeadingElement>>;
21
+ Description: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref">, "className"> & React.RefAttributes<HTMLParagraphElement>>;
21
22
  Close: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
22
23
  };
23
24
  export {};
@@ -1,8 +1,7 @@
1
1
  import * as React from "react";
2
- interface KisoStepperProps {
2
+ interface StepperProps {
3
3
  currentStep: number;
4
4
  steps: string[];
5
- className?: string;
6
5
  }
7
- export declare const KisoStepper: React.ForwardRefExoticComponent<KisoStepperProps & React.RefAttributes<HTMLDivElement>>;
6
+ export declare const Stepper: React.MemoExoticComponent<React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLDivElement>>>;
8
7
  export {};
@@ -5,9 +5,8 @@ interface TimelineItem {
5
5
  description: string;
6
6
  status: 'active' | 'complete' | 'pending';
7
7
  }
8
- interface KisoTimelineProps {
8
+ interface TimelineProps {
9
9
  items: TimelineItem[];
10
- className?: string;
11
10
  }
12
- export declare const KisoTimeline: React.ForwardRefExoticComponent<KisoTimelineProps & React.RefAttributes<HTMLDivElement>>;
11
+ export declare const Timeline: React.MemoExoticComponent<React.ForwardRefExoticComponent<TimelineProps & React.RefAttributes<HTMLDivElement>>>;
13
12
  export {};
@@ -1,19 +1,28 @@
1
1
  import * as React from "react";
2
2
  import * as ToastPrimitives from "@radix-ui/react-toast";
3
- export type KisoToastVariant = "success" | "error" | "warning" | "info";
4
- declare const KisoToast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & {
5
- variant?: KisoToastVariant;
6
- } & React.RefAttributes<HTMLLIElement>>;
7
- type ToastProps = React.ComponentPropsWithoutRef<typeof KisoToast>;
3
+ export type ToastVariant = "success" | "error" | "warning" | "info";
4
+ declare const radiusClasses: {
5
+ none: string;
6
+ sm: string;
7
+ md: string;
8
+ lg: string;
9
+ xl: string;
10
+ full: string;
11
+ };
12
+ declare const Toast: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref">, "className"> & {
13
+ variant?: ToastVariant;
14
+ rounded?: keyof typeof radiusClasses;
15
+ } & React.RefAttributes<HTMLLIElement>>>;
16
+ type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
8
17
  interface ToastContextType {
9
18
  toast: (props: ToastProps & {
10
19
  title?: string;
11
20
  description?: string;
12
- variant?: KisoToastVariant;
21
+ variant?: ToastVariant;
13
22
  }) => void;
14
23
  }
15
24
  declare const useToast: () => ToastContextType;
16
- declare const KisoToaster: ({ children }: {
25
+ declare const Toaster: ({ children }: {
17
26
  children: React.ReactNode;
18
27
  }) => import("react/jsx-runtime").JSX.Element;
19
- export { KisoToast, KisoToaster, useToast };
28
+ export { Toast, Toaster, useToast };
@@ -1,10 +1,10 @@
1
+ import * as React from "react";
1
2
  interface HotSliderProps {
2
3
  min?: number;
3
4
  max?: number;
4
5
  step?: number;
5
6
  value: number;
6
7
  onChange: (value: number) => void;
7
- className?: string;
8
8
  }
9
- export declare function HotSlider({ min, max, step, value, onChange, className, }: HotSliderProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare const HotSlider: React.MemoExoticComponent<({ min, max, step, value, onChange, }: HotSliderProps) => import("react/jsx-runtime").JSX.Element>;
10
10
  export {};
@@ -1,6 +1,13 @@
1
- interface StaggerTextProps {
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const textVariants: (props?: ({
4
+ size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | null | undefined;
5
+ weight?: "bold" | "medium" | "normal" | "semibold" | null | undefined;
6
+ tracking?: "normal" | "tight" | "wide" | null | undefined;
7
+ color?: "gray" | "green" | "white" | "forest" | null | undefined;
8
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
+ interface StaggerTextProps extends VariantProps<typeof textVariants> {
2
10
  text: string;
3
- className?: string;
4
11
  }
5
- export declare function StaggerText({ text, className }: StaggerTextProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare const StaggerText: React.MemoExoticComponent<({ text, size, weight, tracking, color }: StaggerTextProps) => import("react/jsx-runtime").JSX.Element>;
6
13
  export {};
@@ -1,8 +1,7 @@
1
- interface KisoViewTransitionProps {
1
+ interface ViewTransitionProps {
2
2
  children: React.ReactNode;
3
3
  direction?: "forward" | "backward";
4
- className?: string;
5
4
  layoutId?: string;
6
5
  }
7
- export declare function KisoViewTransition({ children, direction, className, layoutId }: KisoViewTransitionProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function ViewTransition({ children, direction, layoutId }: ViewTransitionProps): import("react/jsx-runtime").JSX.Element;
8
7
  export {};
package/dist/index.d.ts CHANGED
@@ -1,11 +1,10 @@
1
- export { Button as KisoButton, buttonVariants } from './components/atoms/Button';
2
- export { Input as KisoInput } from './components/atoms/Input';
3
- export { Toggle as KisoToggle } from './components/atoms/Toggle';
4
- export { KisoModal } from './components/molecules/Modal';
5
- export { KisoToast, KisoToaster, KisoToaster as KisoToastProvider, useToast } from './components/molecules/Toast';
6
- export { KisoStepper } from './components/molecules/Stepper';
7
- export { KisoTimeline } from './components/molecules/Timeline';
8
- export { StaggerText as KisoStaggerText } from './components/motion/StaggerText';
9
- export { HotSlider as KisoHotSlider } from './components/motion/HotSlider';
10
- export { KisoViewTransition } from './components/motion/ViewTransition';
11
- export { cn } from './lib/utils';
1
+ export { Button } from './components/atoms/Button';
2
+ export { Input } from './components/atoms/Input';
3
+ export { Toggle } from './components/atoms/Toggle';
4
+ export { Modal } from './components/molecules/Modal';
5
+ export { Toast, Toaster, Toaster as ToastProvider, useToast } from './components/molecules/Toast';
6
+ export { Stepper } from './components/molecules/Stepper';
7
+ export { Timeline } from './components/molecules/Timeline';
8
+ export { StaggerText } from './components/motion/StaggerText';
9
+ export { HotSlider } from './components/motion/HotSlider';
10
+ export { ViewTransition } from './components/motion/ViewTransition';