naria-ui 0.2.2 → 0.3.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.
package/README.md CHANGED
@@ -70,9 +70,9 @@ No configuration or environment variables are required.
70
70
 
71
71
  ## 🤝 Contributing & Support
72
72
 
73
- Maintained by [Janardan Pethani](https://janardanpethani.in)
73
+ Maintained by [phoneticem](phoneticem)
74
74
  Email: jpethani11@gmail.com
75
- GitHub: [JanardanPethani/naria](https://github.com/JanardanPethani/naria)
75
+ GitHub: [phoneticem/naria](https://github.com/phoneticem/naria)
76
76
 
77
77
  Feel free to open issues or pull requests!
78
78
 
@@ -84,4 +84,4 @@ _This project currently does not specify a license. To make your project open so
84
84
 
85
85
  ---
86
86
 
87
- > _Generated with ❤️ by [Janardan Pethani](https://janardanpethani.in)_
87
+ > _Generated with ❤️ by [phoneticem](https://phoneticem.in)_
@@ -2,9 +2,9 @@ import { default as React, FC, ReactNode } from 'react';
2
2
  export interface props extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
3
3
  type?: "button" | "submit";
4
4
  classNames?: {
5
- button: string;
5
+ root: string;
6
6
  loading: {
7
- wrapper: string;
7
+ root: string;
8
8
  color: string;
9
9
  };
10
10
  };
@@ -0,0 +1,19 @@
1
+ import { default as React, FC, ReactNode } from 'react';
2
+ export interface props extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
3
+ mode?: "Gregorian" | "Jalali" | "Hijri";
4
+ classNames?: {
5
+ button: string;
6
+ loading: {
7
+ wrapper: string;
8
+ color: string;
9
+ };
10
+ };
11
+ selected: Date;
12
+ min: Date;
13
+ max: Date;
14
+ onChange: any;
15
+ isLoading?: boolean;
16
+ isDisabled?: boolean;
17
+ icon?: ReactNode;
18
+ }
19
+ export declare const Calendar: FC<props>;
@@ -0,0 +1 @@
1
+ export { Calendar } from './Calendar';
@@ -0,0 +1 @@
1
+ export declare const addZeroToLessTenNumber: (value: number) => string;
@@ -0,0 +1,2 @@
1
+ export declare const convertMonth: (month: number, mode: "Gregorian" | "Jalali" | "Hijri") => "فروردین" | "اردیبهشت" | "خرداد" | "تیر" | "مرداد" | "شهریور" | "مهر" | "آبان" | "آذر" | "دی" | "بهمن" | "اسفند" | "ٱلْمُحَرَّم" | "صَفَر" | "رَبِيع‌ٱلْأَوَّل" | "رَبِيع‌ٱلثَّانِي" | "جُمَادَىٰ‌ٱلْأُولَىٰ" | "جُمَادَىٰ‌ٱلثَّانِيَة" | "رَجَب" | "شَعْبَان" | "رَمَضَان" | "شَوَّال" | "ذُو‌ٱلْقَعْدَة" | "ذُو‌ٱلْحِجَّة" | "January" | "February" | "March" | "April" | "May" | "June" | "July" | "August" | "September" | "October" | "November" | "December";
2
+ export declare const convertWeekDay: (day: number, mode: "Gregorian" | "Jalali" | "Hijri") => "ش" | "1ش" | "2ش" | "3ش" | "4ش" | "5ش" | "ج" | "ح" | "ن" | "ث" | "ر" | "خ" | "س" | "Su" | "Mo" | "Tu" | "We" | "Th" | "Fr" | "Sa";
@@ -2,7 +2,7 @@ import { FC } from 'react';
2
2
  export interface props {
3
3
  type?: "password" | "text";
4
4
  classNames?: {
5
- wrapper?: string;
5
+ root?: string;
6
6
  label?: string;
7
7
  title?: string;
8
8
  input?: string;
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
2
  export interface props {
3
3
  classNames?: {
4
- wrapper: string;
4
+ root: string;
5
5
  color: string;
6
6
  };
7
7
  }
@@ -0,0 +1,22 @@
1
+ import { FC } from 'react';
2
+ export interface LibModalProps {
3
+ isOpen: boolean;
4
+ title?: string;
5
+ children?: React.ReactNode;
6
+ backdropDismissible?: boolean;
7
+ backdrop: "opaque" | "blur" | "transparent";
8
+ hideCloseButton?: boolean;
9
+ footer?: React.ReactNode;
10
+ closeIcon?: React.ReactNode;
11
+ onOpenChange: any;
12
+ classNames?: {
13
+ root?: string;
14
+ backdrop?: string;
15
+ title?: string;
16
+ header?: string;
17
+ body?: string;
18
+ footer?: string;
19
+ closeIcon?: string;
20
+ };
21
+ }
22
+ export declare const Modal: FC<LibModalProps>;
@@ -0,0 +1 @@
1
+ export { Modal } from './Modal';
@@ -0,0 +1,15 @@
1
+ import { FC } from 'react';
2
+ export interface props {
3
+ classNames?: {
4
+ root?: string;
5
+ label?: string;
6
+ title?: string;
7
+ input?: string;
8
+ errorText?: string;
9
+ };
10
+ placement?: "top-start" | "top" | "top-end" | "bottom-start" | "bottom" | "bottom-end" | "right-start" | "right" | "right-end" | "left-start" | "left" | "left-end";
11
+ isOpen: boolean;
12
+ onOpenChange: any;
13
+ children?: any;
14
+ }
15
+ export declare const Popover: FC<props>;
@@ -0,0 +1 @@
1
+ export { Popover } from './Popover';
@@ -19,12 +19,12 @@ export interface props {
19
19
  optionFilterLabel?: string;
20
20
  hasSearch?: boolean;
21
21
  classNames?: {
22
- wrapper: string;
22
+ root: string;
23
23
  label?: string;
24
24
  title?: string;
25
25
  button?: string;
26
26
  input?: string;
27
- listWrapper?: string;
27
+ listRoot?: string;
28
28
  list?: string;
29
29
  option?: string;
30
30
  optionActive?: string;
@@ -3,3 +3,6 @@ export * from './Select';
3
3
  export * from './Input';
4
4
  export * from './Button';
5
5
  export * from './Loading';
6
+ export * from './Popover';
7
+ export * from './Calendars/Calendar';
8
+ export * from './Modal';
@@ -0,0 +1,8 @@
1
+ import { RefObject } from 'react';
2
+ export declare const useOutOfBounds: (ref: RefObject<Element>) => {
3
+ top: number;
4
+ bottom: number;
5
+ left: number;
6
+ right: number;
7
+ };
8
+ export default useOutOfBounds;