azeriand-library 1.3.9 → 1.4.1
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/dist/components/badge/badge.d.ts +6 -0
- package/dist/components/calendar/calendar.d.ts +16 -0
- package/dist/components/card/card.d.ts +1 -2
- package/dist/components/checkbox/checkbox.d.ts +7 -0
- package/dist/components/dropdown/dropdown-button.d.ts +7 -0
- package/dist/components/dropdown/dropdown.d.ts +7 -0
- package/dist/components/input/input.d.ts +16 -0
- package/dist/components/section-name/section-name.d.ts +6 -0
- package/dist/components/slider/slider.d.ts +6 -0
- package/dist/components/tab/tab.d.ts +8 -0
- package/dist/components/theme-context.d.ts +1 -1
- package/dist/components/timeline/timeline-list-item.d.ts +7 -0
- package/dist/components/timeline/timeline.d.ts +7 -0
- package/dist/examples/CalendarExample.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +14971 -16
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +14990 -20
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { CardProps } from '../card/card';
|
|
3
|
+
type CalendarProps = CardProps & {
|
|
4
|
+
selectedDates?: Date[] | string[];
|
|
5
|
+
onMonthChange?: (month: Date) => void;
|
|
6
|
+
onYearChange?: (year: Date) => void;
|
|
7
|
+
referenceDate?: Date;
|
|
8
|
+
view?: 'day' | 'month' | 'year';
|
|
9
|
+
views?: Array<'day' | 'month' | 'year'>;
|
|
10
|
+
openTo?: 'day' | 'month' | 'year';
|
|
11
|
+
value?: Date | null;
|
|
12
|
+
onChange?: (value: Date | null) => void;
|
|
13
|
+
defaultValue?: Date;
|
|
14
|
+
};
|
|
15
|
+
export declare function Calendar({ selectedDates, onMonthChange, onYearChange, referenceDate, view, views, openTo, value, onChange, defaultValue, ...cardProps }: CalendarProps): JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
type CardProps = {
|
|
2
|
+
export type CardProps = {
|
|
3
3
|
children?: ReactNode;
|
|
4
4
|
noPadding?: boolean;
|
|
5
5
|
noBlur?: boolean;
|
|
@@ -12,4 +12,3 @@ type CardProps = {
|
|
|
12
12
|
style?: React.CSSProperties;
|
|
13
13
|
};
|
|
14
14
|
export declare function Card({ children, noPadding, noBlur, appearance, color, intensity, dark, onClick, className, style }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CardProps } from '../card/card';
|
|
2
|
+
export type InputProps = CardProps & {
|
|
3
|
+
type?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
size?: number;
|
|
8
|
+
maxLength?: number;
|
|
9
|
+
onChange?: (value: string) => void;
|
|
10
|
+
iconPosition?: 'left' | 'right';
|
|
11
|
+
centerText?: boolean;
|
|
12
|
+
icon?: React.ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
};
|
|
16
|
+
export declare function Input({ type, value, disabled, placeholder, size, maxLength, onChange, iconPosition, centerText, icon, className, ...cardProps }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CardProps } from '../card/card';
|
|
2
|
+
type TabProps = CardProps & {
|
|
3
|
+
items?: string[];
|
|
4
|
+
onTabSelected?: (item: string) => void;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function Tab({ items, onTabSelected, defaultValue, ...cardProps }: TabProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -5,7 +5,7 @@ type ThemeContext = {
|
|
|
5
5
|
setTheme: (val: ThemeMode) => void;
|
|
6
6
|
};
|
|
7
7
|
export declare const ThemeContext: import('react').Context<ThemeContext>;
|
|
8
|
-
export
|
|
8
|
+
export declare function ThemeContextComponent({ children }: {
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CardProps } from '../card/card';
|
|
2
|
+
type TlListItemProps = CardProps & {
|
|
3
|
+
label?: string;
|
|
4
|
+
badge?: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare function TlListItem({ label, badge, ...cardProps }: TlListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CardProps } from '../card/card';
|
|
2
|
+
type TimelineProps = CardProps & {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
faded?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function Timeline({ children, faded, ...cardProps }: TimelineProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function CalendarExample(): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { Avatar } from './components/avatar';
|
|
2
|
-
export { Card } from './components/card/card';
|
|
2
|
+
export { Card, type CardProps } from './components/card/card';
|
|
3
3
|
export { Button } from './components/button/button';
|
|
4
|
+
export { Calendar } from './components/calendar/calendar';
|