naria-ui 0.2.3 → 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 +3 -3
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Calendars/Calendar/Calendar.d.ts +19 -0
- package/dist/components/Calendars/Calendar/index.d.ts +1 -0
- package/dist/components/Calendars/utils/add-zero-less-ten-number.d.ts +1 -0
- package/dist/components/Calendars/utils/convert-month.d.ts +2 -0
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Loading/Loading.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +22 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Popover/Popover.d.ts +15 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +2 -2
- package/dist/components/index.d.ts +3 -0
- package/dist/hooks/out-of-view.d.ts +8 -0
- package/dist/naria-ui.cjs.js +12 -8
- package/dist/naria-ui.css +1 -1
- package/dist/naria-ui.es.js +6467 -420
- package/package.json +4 -1
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 [
|
|
73
|
+
Maintained by [phoneticem](phoneticem)
|
|
74
74
|
Email: jpethani11@gmail.com
|
|
75
|
-
GitHub: [
|
|
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 [
|
|
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
|
-
|
|
5
|
+
root: string;
|
|
6
6
|
loading: {
|
|
7
|
-
|
|
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";
|
|
@@ -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
|
-
|
|
22
|
+
root: string;
|
|
23
23
|
label?: string;
|
|
24
24
|
title?: string;
|
|
25
25
|
button?: string;
|
|
26
26
|
input?: string;
|
|
27
|
-
|
|
27
|
+
listRoot?: string;
|
|
28
28
|
list?: string;
|
|
29
29
|
option?: string;
|
|
30
30
|
optionActive?: string;
|