@namuna-nur/ui-kit 1.3.4 → 1.4.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.
@@ -9,7 +9,9 @@ declare const Toast: React.ForwardRefExoticComponent<Omit<Omit<ToastPrimitives.T
9
9
  withIcon?: boolean;
10
10
  } & React.RefAttributes<HTMLLIElement>>;
11
11
  declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
12
- declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
12
+ declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
13
+ variant?: "success" | "danger" | "info" | "default" | "warning" | null | undefined;
14
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
13
15
  declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
16
  declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
17
  type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
@@ -1,3 +1,3 @@
1
1
  export { Notification } from './Notification';
2
2
  export type * from './Notification.types';
3
- export type { ToastProps, ToastActionElement } from './Notification.utils.tsx';
3
+ export { Toaster, type ToastProps, type ToastActionElement, } from './Notification.utils';
@@ -1,4 +1,4 @@
1
- import { ToastActionElement, ToastProps } from '../atoms/Notification/Notification.utils';
1
+ import { ToastActionElement, ToastProps } from '../atoms';
2
2
  export declare const TOAST_LIMIT = 1;
3
3
  export declare const TOAST_REMOVE_DELAY = 1000000;
4
4
  export type ToastNotification = ToastProps & {
@@ -0,0 +1,2 @@
1
+ import { FloorItemProps } from '..';
2
+ export declare const FloorItem: ({ floorId, floorName, selectedFloorId, onSelect, onEdit: EditModal, onDelete: DeleteModal, setOpenStatusModal, setOpenEditModal, }: FloorItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Meta } from '@storybook/react-vite';
2
+ import { FloorItem, FloorItemStory } from '..';
3
+ declare const meta: Meta<typeof FloorItem>;
4
+ export declare const Default: FloorItemStory;
5
+ export default meta;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const floorItemTokens: {
2
+ select: string;
3
+ floor: string;
4
+ };
@@ -0,0 +1,13 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { FloorItem, LangValue } from '..';
3
+ export type FloorItemStory = StoryObj<typeof FloorItem>;
4
+ export type FloorItemProps = {
5
+ floorId: string;
6
+ floorName: LangValue;
7
+ selectedFloorId: string;
8
+ onSelect: (e: React.MouseEvent, floorId: string) => void;
9
+ onEdit: () => React.ReactNode;
10
+ onDelete: () => React.ReactNode;
11
+ setOpenEditModal: (value: boolean) => void;
12
+ setOpenStatusModal: (value: boolean) => void;
13
+ };
@@ -0,0 +1,3 @@
1
+ export { FloorItem } from './FloorItem';
2
+ export type * from './FloorItem.types';
3
+ export * from './FloorItem.tokens';
@@ -0,0 +1,2 @@
1
+ import { FloorSelectProps } from '..';
2
+ export declare const FloorSelect: ({ options, value, placeholder, onChange, floorModal, statusModal, onFloorDelete, }: FloorSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { Meta } from '@storybook/react-vite';
2
+ import { FloorSelect, FloorSelectStory } from '..';
3
+ declare const meta: Meta<typeof FloorSelect>;
4
+ export declare const Default: FloorSelectStory;
5
+ export default meta;
@@ -0,0 +1,7 @@
1
+ export declare const floorSelectTokens: {
2
+ icon: string;
3
+ trigger: string;
4
+ focus: string;
5
+ hover: string;
6
+ content: string;
7
+ };
@@ -0,0 +1,24 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { FloorSelect } from '..';
3
+ export type FloorSelectStory = StoryObj<typeof FloorSelect>;
4
+ export type LangValue = {
5
+ uz: string;
6
+ ru: string;
7
+ en: string;
8
+ };
9
+ export type FloorOptions = {
10
+ id: string;
11
+ section_id?: string;
12
+ name: LangValue;
13
+ created_at?: Date;
14
+ updated_at?: Date;
15
+ };
16
+ export type FloorSelectProps = {
17
+ options: FloorOptions[] | undefined;
18
+ onChange: (value: string) => void;
19
+ value: string;
20
+ placeholder?: string;
21
+ onFloorDelete: (floorId: string) => void;
22
+ floorModal: (isOpen: boolean, onClose: () => void, mode: string, id?: string, name?: LangValue) => React.ReactNode;
23
+ statusModal: (isOpen: boolean, onClose: () => void, onSubmit: () => void) => React.ReactNode;
24
+ };
@@ -0,0 +1,3 @@
1
+ export { FloorSelect } from './FloorSelect';
2
+ export type * from './FloorSelect.types';
3
+ export * from './FloorSelect.tokens';
@@ -48,3 +48,5 @@ export * from './ChatMessage';
48
48
  export * from './DeleteMessage';
49
49
  export * from './MessageSettings';
50
50
  export * from './TabList';
51
+ export * from './FloorSelect';
52
+ export * from './FloorItem';