@smitch/breeze 0.2.2 → 1.0.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 +87 -92
- package/lib/@hooks/useWindowWidth.d.ts +2 -0
- package/lib/@utils/merge.d.ts +1 -0
- package/lib/accordion/Accordion.d.ts +3 -0
- package/lib/accordion/atoms/AccordionCard.d.ts +3 -0
- package/lib/accordion/atoms/AccordionHead.d.ts +3 -0
- package/lib/accordion/atoms/AccordionItem.d.ts +3 -0
- package/lib/accordion/atoms/AccordionSection.d.ts +3 -0
- package/lib/accordion/atoms/index.d.ts +4 -0
- package/lib/accordion/index.d.ts +2 -0
- package/lib/accordion/types/index.d.ts +57 -0
- package/lib/alert/Alert.d.ts +3 -0
- package/lib/alert/index.d.ts +1 -0
- package/lib/alert/types/index.d.ts +17 -0
- package/lib/autocomplete/Autocomplete.d.ts +3 -0
- package/lib/autocomplete/index.d.ts +1 -0
- package/lib/autocomplete/types/index.d.ts +16 -0
- package/lib/badge/Badge.d.ts +3 -0
- package/lib/badge/index.d.ts +1 -0
- package/lib/badge/types/index.d.ts +10 -0
- package/lib/blockquote/Blockquote.d.ts +3 -0
- package/lib/blockquote/index.d.ts +1 -0
- package/lib/blockquote/types/index.d.ts +9 -0
- package/lib/breadcrumbs/Breadcrumbs.d.ts +3 -0
- package/lib/breadcrumbs/index.d.ts +1 -0
- package/lib/breadcrumbs/types/index.d.ts +9 -0
- package/lib/button/Button.d.ts +5 -0
- package/lib/button/index.d.ts +2 -0
- package/lib/button/types/index.d.ts +24 -0
- package/lib/button/variants/CloseButton.d.ts +3 -0
- package/lib/button/variants/index.d.ts +1 -0
- package/lib/button/variants/types/index.d.ts +9 -0
- package/lib/buttongroup/ButtonGroup.d.ts +3 -0
- package/lib/buttongroup/index.d.ts +1 -0
- package/lib/buttongroup/types/index.d.ts +11 -0
- package/lib/card/Card.d.ts +3 -0
- package/lib/card/atoms/CardBody.d.ts +3 -0
- package/lib/card/atoms/CardFooter.d.ts +3 -0
- package/lib/card/atoms/CardHeader.d.ts +3 -0
- package/lib/card/atoms/CardImage.d.ts +3 -0
- package/lib/card/index.d.ts +5 -0
- package/lib/card/types/index.d.ts +31 -0
- package/lib/carousel/Carousel.d.ts +3 -0
- package/lib/carousel/index.d.ts +1 -0
- package/lib/carousel/types/index.d.ts +28 -0
- package/lib/charts/BarChart.d.ts +3 -0
- package/lib/charts/BubbleChart.d.ts +3 -0
- package/lib/charts/ChartWrap.d.ts +15 -0
- package/lib/charts/DoughnutChart.d.ts +3 -0
- package/lib/charts/LineChart.d.ts +3 -0
- package/lib/charts/MixedChart.d.ts +3 -0
- package/lib/charts/PieChart.d.ts +3 -0
- package/lib/charts/PolarAreaChart.d.ts +3 -0
- package/lib/charts/RadarChart.d.ts +3 -0
- package/lib/charts/ScatterChart.d.ts +3 -0
- package/lib/charts/index.d.ts +9 -0
- package/lib/charts/types/index.d.ts +85 -0
- package/lib/checkbox/Checkbox.d.ts +3 -0
- package/lib/checkbox/index.d.ts +1 -0
- package/lib/checkbox/types/index.d.ts +14 -0
- package/lib/clock/Clock.d.ts +3 -0
- package/lib/clock/index.d.ts +1 -0
- package/lib/clock/types/index.d.ts +13 -0
- package/lib/codeblock/Codeblock.d.ts +3 -0
- package/lib/codeblock/index.d.ts +1 -0
- package/lib/codeblock/types/index.d.ts +6 -0
- package/lib/counter/Counter.d.ts +3 -0
- package/lib/counter/index.d.ts +1 -0
- package/lib/counter/types/index.d.ts +22 -0
- package/lib/datatable/DataTable.d.ts +3 -0
- package/lib/datatable/index.d.ts +1 -0
- package/lib/datatable/types/index.d.ts +10 -0
- package/lib/dialog/Dialog.d.ts +3 -0
- package/lib/dialog/hooks/useDisableBack.d.ts +1 -0
- package/lib/dialog/index.d.ts +1 -0
- package/lib/dialog/types/index.d.ts +12 -0
- package/lib/drawer/Drawer.d.ts +3 -0
- package/lib/drawer/index.d.ts +1 -0
- package/lib/drawer/types/index.d.ts +9 -0
- package/lib/dropdown/Dropdown.d.ts +3 -0
- package/lib/dropdown/index.d.ts +1 -0
- package/lib/dropdown/types/index.d.ts +15 -0
- package/lib/figure/Figure.d.ts +3 -0
- package/lib/figure/index.d.ts +1 -0
- package/lib/figure/types/index.d.ts +9 -0
- package/lib/fileupload/FileUpload.d.ts +3 -0
- package/lib/fileupload/Files.d.ts +3 -0
- package/lib/fileupload/index.d.ts +1 -0
- package/lib/fileupload/types/index.d.ts +35 -0
- package/lib/form/Fieldset.d.ts +3 -0
- package/lib/form/Form.d.ts +3 -0
- package/lib/form/Legend.d.ts +3 -0
- package/lib/form/RegisterForm.d.ts +3 -0
- package/lib/form/index.d.ts +4 -0
- package/lib/form/types/index.d.ts +83 -0
- package/lib/gallery/Gallery.d.ts +3 -0
- package/lib/gallery/index.d.ts +1 -0
- package/lib/gallery/types/index.d.ts +12 -0
- package/lib/heading/Heading.d.ts +3 -0
- package/lib/heading/index.d.ts +1 -0
- package/lib/heading/types/index.d.ts +9 -0
- package/lib/hero/Hero.d.ts +3 -0
- package/lib/hero/index.d.ts +1 -0
- package/lib/hero/types/index.d.ts +21 -0
- package/lib/icon/Icon.d.ts +3 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/types/index.d.ts +13 -0
- package/lib/index.d.ts +51 -0
- package/lib/input/Input.d.ts +5 -0
- package/lib/input/index.d.ts +1 -0
- package/lib/input/types/index.d.ts +38 -0
- package/lib/label/Label.d.ts +3 -0
- package/lib/label/index.d.ts +1 -0
- package/lib/label/types/index.d.ts +14 -0
- package/lib/loading/Loading.d.ts +3 -0
- package/lib/loading/index.d.ts +2 -0
- package/lib/loading/spinners/Bars.d.ts +4 -0
- package/lib/loading/spinners/Clock.d.ts +4 -0
- package/lib/loading/spinners/Dots.d.ts +4 -0
- package/lib/loading/spinners/Pulse.d.ts +4 -0
- package/lib/loading/spinners/Spindots.d.ts +4 -0
- package/lib/loading/spinners/Spinner.d.ts +4 -0
- package/lib/loading/spinners/Wifi.d.ts +4 -0
- package/lib/loading/spinners/index.d.ts +7 -0
- package/lib/loading/types/index.d.ts +10 -0
- package/lib/map/LazyMap.d.ts +6 -0
- package/lib/map/LazyMapCircle.d.ts +3 -0
- package/lib/map/LazyMapLine.d.ts +3 -0
- package/lib/map/LazyMapMarker.d.ts +5 -0
- package/lib/map/LazyMapPolygon.d.ts +3 -0
- package/lib/map/LazyMapRectangle.d.ts +3 -0
- package/lib/map/Map.d.ts +3 -0
- package/lib/map/MapCircle.d.ts +3 -0
- package/lib/map/MapLine.d.ts +3 -0
- package/lib/map/MapMarker.d.ts +3 -0
- package/lib/map/MapPolygon.d.ts +3 -0
- package/lib/map/MapRectangle.d.ts +3 -0
- package/lib/map/index.d.ts +6 -0
- package/lib/map/tileOptions.d.ts +11 -0
- package/lib/map/types/index.d.ts +77 -0
- package/lib/modal/Modal.d.ts +3 -0
- package/lib/modal/hooks/useDisableBack.d.ts +1 -0
- package/lib/modal/index.d.ts +1 -0
- package/lib/modal/types/index.d.ts +9 -0
- package/lib/navbar/NavBar.d.ts +3 -0
- package/lib/navbar/NavBrand.d.ts +3 -0
- package/lib/navbar/NavLinks.d.ts +3 -0
- package/lib/navbar/index.d.ts +1 -0
- package/lib/navbar/types/index.d.ts +43 -0
- package/lib/pagination/Pagination.d.ts +3 -0
- package/lib/pagination/index.d.ts +1 -0
- package/lib/pagination/types/index.d.ts +25 -0
- package/lib/passwordinput/PasswordInput.d.ts +3 -0
- package/lib/passwordinput/index.d.ts +1 -0
- package/lib/passwordinput/types/index.d.ts +18 -0
- package/lib/pictogram/Pictogram.d.ts +3 -0
- package/lib/pictogram/index.d.ts +1 -0
- package/lib/pictogram/types/index.d.ts +10 -0
- package/lib/placeholder/PlaceHolder.d.ts +3 -0
- package/lib/placeholder/index.d.ts +1 -0
- package/lib/placeholder/types/index.d.ts +13 -0
- package/lib/progress/Progress.d.ts +3 -0
- package/lib/progress/index.d.ts +1 -0
- package/lib/progress/types/index.d.ts +11 -0
- package/lib/radiogroup/RadioGroup.d.ts +3 -0
- package/lib/radiogroup/index.d.ts +1 -0
- package/lib/radiogroup/types/index.d.ts +18 -0
- package/lib/rangeinput/RangeInput.d.ts +3 -0
- package/lib/rangeinput/index.d.ts +1 -0
- package/lib/rangeinput/types/index.d.ts +28 -0
- package/lib/ratings/Ratings.d.ts +3 -0
- package/lib/ratings/index.d.ts +1 -0
- package/lib/ratings/types/index.d.ts +12 -0
- package/lib/searchinput/SearchInput.d.ts +3 -0
- package/lib/searchinput/index.d.ts +1 -0
- package/lib/searchinput/types/index.d.ts +20 -0
- package/lib/select/Select.d.ts +3 -0
- package/lib/select/index.d.ts +1 -0
- package/lib/select/types/index.d.ts +20 -0
- package/lib/sidebar/Sidebar.d.ts +3 -0
- package/lib/sidebar/index.d.ts +1 -0
- package/lib/sidebar/types/index.d.ts +9 -0
- package/lib/socialshare/SocialShare.d.ts +3 -0
- package/lib/socialshare/buttons/BlueskyButton.d.ts +3 -0
- package/lib/socialshare/buttons/EmailButton.d.ts +3 -0
- package/lib/socialshare/buttons/FacebookButton.d.ts +3 -0
- package/lib/socialshare/buttons/LinkedinButton.d.ts +3 -0
- package/lib/socialshare/buttons/PinterestButton.d.ts +3 -0
- package/lib/socialshare/buttons/RedditButton.d.ts +3 -0
- package/lib/socialshare/buttons/SlackButton.d.ts +3 -0
- package/lib/socialshare/buttons/TelegramButton.d.ts +3 -0
- package/lib/socialshare/buttons/WhatsappButton.d.ts +3 -0
- package/lib/socialshare/buttons/XButton.d.ts +3 -0
- package/lib/socialshare/index.d.ts +11 -0
- package/lib/socialshare/types/index.d.ts +25 -0
- package/lib/statbar/StatBar.d.ts +3 -0
- package/lib/statbar/index.d.ts +1 -0
- package/lib/statbar/types/index.d.ts +12 -0
- package/lib/switch/Switch.d.ts +3 -0
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/types/index.d.ts +21 -0
- package/lib/tabs/Tab.d.ts +2 -0
- package/lib/tabs/TabBar.d.ts +3 -0
- package/lib/tabs/Tabs.d.ts +3 -0
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/types/index.d.ts +30 -0
- package/lib/textarea/TextArea.d.ts +3 -0
- package/lib/textarea/index.d.ts +1 -0
- package/lib/textarea/types/index.d.ts +16 -0
- package/lib/textinput/TextInput.d.ts +3 -0
- package/lib/textinput/index.d.ts +1 -0
- package/lib/textinput/types/index.d.ts +21 -0
- package/lib/ticker/Ticker.d.ts +3 -0
- package/lib/ticker/index.d.ts +1 -0
- package/lib/ticker/types/index.d.ts +7 -0
- package/lib/toast/Toast.d.ts +3 -0
- package/lib/toast/index.d.ts +1 -0
- package/lib/toast/types/index.d.ts +18 -0
- package/lib/twitterembed/TwitterEmbed.d.ts +13 -0
- package/lib/twitterembed/index.d.ts +1 -0
- package/lib/twitterembed/types/index.d.ts +8 -0
- package/lib/videoplayer/Video.d.ts +3 -0
- package/lib/videoplayer/VideoControls.d.ts +3 -0
- package/lib/videoplayer/VideoPlayer.d.ts +3 -0
- package/lib/videoplayer/VideoTracks.d.ts +3 -0
- package/lib/videoplayer/controls/CaptionsControl.d.ts +2 -0
- package/lib/videoplayer/controls/FullscreenControl.d.ts +2 -0
- package/lib/videoplayer/controls/PipControl.d.ts +2 -0
- package/lib/videoplayer/controls/SoundControl.d.ts +2 -0
- package/lib/videoplayer/controls/index.d.ts +4 -0
- package/lib/videoplayer/index.d.ts +2 -0
- package/lib/videoplayer/types/index.d.ts +62 -0
- package/lib/youtubeembed/YoutubeEmbed.d.ts +3 -0
- package/lib/youtubeembed/index.d.ts +1 -0
- package/lib/youtubeembed/types/index.d.ts +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Card } from './Card';
|
|
2
|
+
export { default as CardBody } from './atoms/CardBody';
|
|
3
|
+
export { default as CardFooter } from './atoms/CardFooter';
|
|
4
|
+
export { default as CardHeader } from './atoms/CardHeader';
|
|
5
|
+
export { default as CardImage } from './atoms/CardImage';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface CardProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
style?: React.CSSProperties;
|
|
4
|
+
layout?: 'col' | 'row' | 'col_reverse';
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
shadow?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
8
|
+
outline?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface CardHeaderProps {
|
|
11
|
+
className?: string;
|
|
12
|
+
title: string;
|
|
13
|
+
titlestyles?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export interface CardBodyProps {
|
|
17
|
+
className?: string;
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export interface CardImageProps {
|
|
21
|
+
className?: string;
|
|
22
|
+
title: string;
|
|
23
|
+
src: string;
|
|
24
|
+
aspect?: 'landscape' | 'portrait' | 'square' | 'video';
|
|
25
|
+
}
|
|
26
|
+
export interface CardFooterProps {
|
|
27
|
+
className?: string;
|
|
28
|
+
link?: string;
|
|
29
|
+
linkLabel?: string;
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CarouselProps } from "./types";
|
|
2
|
+
declare const Carousel: ({ data, caption, autoplay, autoplayDuration, outline, gallery, className, aspect, rounded, buttonsPosition, buttonLayout, buttonIcon, buttonSize, buttonBackground, buttonColor, buttonOutline, preloadImages, children, }: CarouselProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Carousel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Carousel } from './Carousel';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface DataProps {
|
|
2
|
+
name: string;
|
|
3
|
+
src: string;
|
|
4
|
+
description: string;
|
|
5
|
+
link: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CarouselProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
data: DataProps[];
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
caption?: boolean;
|
|
13
|
+
autoplay?: boolean;
|
|
14
|
+
autoplayDuration?: number;
|
|
15
|
+
outline?: "none" | "thin" | "medium" | "thick";
|
|
16
|
+
rounded?: "none" | "md" | "lg" | "xl";
|
|
17
|
+
gallery?: boolean;
|
|
18
|
+
aspect?: "landscape" | "portrait" | "square" | "video" | "circle";
|
|
19
|
+
buttonLayout?: "rounded" | "square" | "circle";
|
|
20
|
+
buttonsPosition?: "top" | "middle" | "bottom";
|
|
21
|
+
buttonIcon?: "arrow" | "chevron";
|
|
22
|
+
buttonSize?: "md" | "lg" | "xl";
|
|
23
|
+
buttonBackground?: "dark" | "light" | "transparent";
|
|
24
|
+
buttonColor?: "dark" | "light";
|
|
25
|
+
buttonOutline?: boolean;
|
|
26
|
+
preloadImages?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChartDataMap, ChartOptionsMap } from "./types";
|
|
3
|
+
type ChartTypes = keyof ChartDataMap;
|
|
4
|
+
interface ChartWrapProps<T extends ChartTypes> {
|
|
5
|
+
title?: string;
|
|
6
|
+
legendposition?: string;
|
|
7
|
+
data: ChartDataMap[T];
|
|
8
|
+
options?: ChartOptionsMap[T];
|
|
9
|
+
chartType: T;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
aspect?: "landscape" | "portrait" | "square" | "auto";
|
|
13
|
+
}
|
|
14
|
+
declare const ChartWrap: <T extends ChartTypes>({ data, options, title, legendposition, chartType, aspect, className, style, }: ChartWrapProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default ChartWrap;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as BarChart } from './BarChart';
|
|
2
|
+
export { default as BubbleChart } from './BubbleChart';
|
|
3
|
+
export { default as LineChart } from './LineChart';
|
|
4
|
+
export { default as PieChart } from './PieChart';
|
|
5
|
+
export { default as DoughnutChart } from './DoughnutChart';
|
|
6
|
+
export { default as ScatterChart } from './ScatterChart';
|
|
7
|
+
export { default as RadarChart } from './RadarChart';
|
|
8
|
+
export { default as PolarAreaChart } from './PolarAreaChart';
|
|
9
|
+
export { default as MixedChart } from './MixedChart';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ChartData, ChartOptions } from 'chart.js';
|
|
2
|
+
interface ChartComponentProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
legendposition?: 'top' | 'bottom' | 'left' | 'right';
|
|
5
|
+
aspect?: 'landscape' | 'portrait' | 'square' | 'auto';
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
export interface LineChartProps extends ChartComponentProps {
|
|
10
|
+
data: ChartData<'line', number[], string>;
|
|
11
|
+
options?: ChartOptions<'line'>;
|
|
12
|
+
gridColor?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface PieChartProps extends ChartComponentProps {
|
|
15
|
+
data: ChartData<'pie', number[], string>;
|
|
16
|
+
options?: ChartOptions<'pie'>;
|
|
17
|
+
border?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface DoughnutChartProps extends ChartComponentProps {
|
|
20
|
+
data: ChartData<'doughnut', number[], string>;
|
|
21
|
+
options?: ChartOptions<'doughnut'>;
|
|
22
|
+
border?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface BarChartProps extends ChartComponentProps {
|
|
25
|
+
data: ChartData<'bar', number[], string>;
|
|
26
|
+
options?: ChartOptions<'bar'>;
|
|
27
|
+
layout?: 'vertical' | 'horizontal';
|
|
28
|
+
gridColor?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface MixedChartProps extends ChartComponentProps {
|
|
31
|
+
data: ChartData<'bar', number[], string>;
|
|
32
|
+
options?: ChartOptions<'bar'>;
|
|
33
|
+
gridColor?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface RadarChartProps extends ChartComponentProps {
|
|
36
|
+
data: ChartData<'radar', number[], string>;
|
|
37
|
+
options?: ChartOptions<'radar'>;
|
|
38
|
+
gridColor?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface PolarAreaChartProps extends ChartComponentProps {
|
|
41
|
+
data: ChartData<'polarArea', number[], string>;
|
|
42
|
+
options?: ChartOptions<'polarArea'>;
|
|
43
|
+
gridColor?: string;
|
|
44
|
+
}
|
|
45
|
+
export interface BubbleChartProps extends ChartComponentProps {
|
|
46
|
+
data: ChartData<'bubble', {
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
r: number;
|
|
50
|
+
}[], string>;
|
|
51
|
+
options?: ChartOptions<'bubble'>;
|
|
52
|
+
gridColor?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface ScatterChartProps extends ChartComponentProps {
|
|
55
|
+
data: ChartData<'scatter', {
|
|
56
|
+
x: number;
|
|
57
|
+
y: number;
|
|
58
|
+
}[], string>;
|
|
59
|
+
options?: ChartOptions<'scatter'>;
|
|
60
|
+
gridColor?: string;
|
|
61
|
+
}
|
|
62
|
+
export type ChartTypes = 'bar' | 'bubble' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'scatter' | 'line' | 'mixed';
|
|
63
|
+
export interface ChartDataMap {
|
|
64
|
+
line: ChartData<'line'>;
|
|
65
|
+
pie: ChartData<'pie'>;
|
|
66
|
+
doughnut: ChartData<'doughnut'>;
|
|
67
|
+
bar: ChartData<'bar'>;
|
|
68
|
+
mixed: ChartData<'bar'>;
|
|
69
|
+
radar: ChartData<'radar'>;
|
|
70
|
+
polarArea: ChartData<'polarArea'>;
|
|
71
|
+
bubble: ChartData<'bubble'>;
|
|
72
|
+
scatter: ChartData<'scatter'>;
|
|
73
|
+
}
|
|
74
|
+
export interface ChartOptionsMap {
|
|
75
|
+
line: ChartOptions<'line'>;
|
|
76
|
+
pie: ChartOptions<'pie'>;
|
|
77
|
+
doughnut: ChartOptions<'doughnut'>;
|
|
78
|
+
bar: ChartOptions<'bar'>;
|
|
79
|
+
mixed: ChartOptions<'bar'>;
|
|
80
|
+
radar: ChartOptions<'radar'>;
|
|
81
|
+
polarArea: ChartOptions<'polarArea'>;
|
|
82
|
+
bubble: ChartOptions<'bubble'>;
|
|
83
|
+
scatter: ChartOptions<'scatter'>;
|
|
84
|
+
}
|
|
85
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CheckboxProps } from './types';
|
|
2
|
+
declare const Checkbox: ({ name, className, style, label, size, rounded, required, checked, labelIsBold, hint, onChange, suppressHydrationWarning, }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Checkbox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Checkbox } from './Checkbox';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface CheckboxProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
style?: React.CSSProperties;
|
|
4
|
+
size?: 'md' | 'lg' | 'xl';
|
|
5
|
+
label: string;
|
|
6
|
+
labelIsBold?: boolean;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
name?: string;
|
|
10
|
+
rounded?: 'none' | 'full';
|
|
11
|
+
hint?: React.ReactNode;
|
|
12
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
+
suppressHydrationWarning?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Clock } from './Clock';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ClockTimezone = "UTC" | "America/New_York" | "America/Chicago" | "America/Denver" | "America/Los_Angeles" | "Europe/London" | "Europe/Paris" | "Europe/Berlin" | "Europe/Moscow" | "Asia/Tokyo" | "Asia/Shanghai" | "Asia/Kolkata" | "Australia/Sydney" | string;
|
|
2
|
+
export type ClockProps = {
|
|
3
|
+
timezone?: ClockTimezone;
|
|
4
|
+
size?: number;
|
|
5
|
+
showSeconds?: boolean;
|
|
6
|
+
theme?: "light" | "dark";
|
|
7
|
+
layout?: "column" | "column-reverse" | "row" | "row-reverse";
|
|
8
|
+
clockFaceStroke?: number;
|
|
9
|
+
ticks?: boolean;
|
|
10
|
+
showLabel?: boolean;
|
|
11
|
+
labelSize?: "sm" | "md" | "lg" | "xl";
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Codeblock } from './Codeblock';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CounterProps } from "./types";
|
|
2
|
+
declare const Counter: ({ name, id, className, min, max, value, step, onCountChange, btnShape, btnBackground, btnColor, size, spacing, label, labelIsBold, layout, title, hint, inputStyles, rounded, }: CounterProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Counter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Counter } from './Counter';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface CounterProps extends React.HTMLAttributes<HTMLLabelElement> {
|
|
2
|
+
name?: string;
|
|
3
|
+
id?: string;
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
value: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
label: string;
|
|
10
|
+
labelIsBold?: boolean;
|
|
11
|
+
layout?: "col" | "row";
|
|
12
|
+
onCountChange: (count: number) => void;
|
|
13
|
+
inputStyles?: string;
|
|
14
|
+
btnShape?: "square" | "circle" | "rounded";
|
|
15
|
+
btnBackground?: "info" | "primary" | "dark" | "light" | "transparent";
|
|
16
|
+
btnColor?: "dark" | "light" | "current";
|
|
17
|
+
size?: "md" | "lg";
|
|
18
|
+
spacing?: "0" | "1" | "2" | "4";
|
|
19
|
+
title?: string;
|
|
20
|
+
hint?: boolean;
|
|
21
|
+
rounded?: "none" | "md" | "lg" | "full";
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DataTable } from './DataTable';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDisableBack: (usehook: boolean) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Dialog } from './Dialog';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DialogProps extends React.HTMLAttributes<HTMLDialogElement> {
|
|
2
|
+
open: boolean;
|
|
3
|
+
modal?: boolean;
|
|
4
|
+
showClose?: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
submit?: (e: React.FormEvent<HTMLFormElement>) => void;
|
|
7
|
+
title?: string;
|
|
8
|
+
titleSize?: 'sm' | 'md' | 'lg' | 'xl';
|
|
9
|
+
closeBtnSize?: 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
+
titleBold?: boolean;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Drawer } from './Drawer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Dropdown } from './Dropdown';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface LinksProps {
|
|
2
|
+
href: string;
|
|
3
|
+
label: string;
|
|
4
|
+
links?: any[];
|
|
5
|
+
}
|
|
6
|
+
export interface DropdownProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
size?: "md" | "lg" | "xl";
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
className?: string;
|
|
10
|
+
links: LinksProps[];
|
|
11
|
+
prefetch?: boolean;
|
|
12
|
+
buttonLayout: "circle" | "square";
|
|
13
|
+
buttonBackground?: "dark" | "light" | "info" | "success" | "warning" | "danger" | "primary" | "secondary" | "transparent";
|
|
14
|
+
buttonColor?: "dark" | "light" | "info" | "success" | "warning" | "danger" | "primary" | "secondary" | "current";
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Figure } from './Figure';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface FigureProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
|
+
className?: string;
|
|
3
|
+
caption?: string;
|
|
4
|
+
aspect?: "landscape" | "portrait" | "square" | "video" | "circle" | "phone" | "ultrawide" | "auto";
|
|
5
|
+
src: string;
|
|
6
|
+
alt: string;
|
|
7
|
+
backdrop?: "light" | "dark";
|
|
8
|
+
preload?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FileUpload } from './FileUpload';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface AcceptType {
|
|
2
|
+
all: string;
|
|
3
|
+
audio: string;
|
|
4
|
+
image: string;
|
|
5
|
+
video: string;
|
|
6
|
+
document: string[];
|
|
7
|
+
compressed: string[];
|
|
8
|
+
text: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface FileUploadEvent {
|
|
11
|
+
target: {
|
|
12
|
+
files: FileList | null;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface FileProps {
|
|
16
|
+
files: File[];
|
|
17
|
+
deleteFile: (file: File) => void;
|
|
18
|
+
}
|
|
19
|
+
export interface FileUploadProps {
|
|
20
|
+
label?: string;
|
|
21
|
+
multipleLabel?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
size?: 'md' | 'lg' | 'xl';
|
|
24
|
+
accept?: string;
|
|
25
|
+
showMultiple?: boolean;
|
|
26
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
27
|
+
setFiles?: (files: File[]) => void;
|
|
28
|
+
icon?: boolean;
|
|
29
|
+
files: File[];
|
|
30
|
+
}
|
|
31
|
+
export interface AcceptTypes {
|
|
32
|
+
label: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const acceptTypes: AcceptTypes[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { FormProps } from './types';
|
|
2
|
+
declare const Form: ({ className, style, name, onsubmit, onCancel, layout, showCancel, actions, children, submitLabel, cancelLabel, actionsLayout, actionsSpacing, submitBackground, submitColor, cancelBackground, cancelColor, submitOutline, submitOutlineColor, cancelOutline, cancelOutlineColor, buttonTextcase, buttonShape, buttonIsBold, separator, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Form;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { RegisterFormProps } from './types';
|
|
2
|
+
declare const RegisterForm: ({ action, actionsLayout, actionsSpacing, onCancel, onsubmit, showCancel, submitLabel, cancelLabel, submitBackground, submitColor, submitOutlineColor, cancelBackground, cancelColor, cancelOutlineColor, separator, name, className, style, buttonOutline, buttonTextcase, buttonShape, buttonIsBold, legendText, legendisBold, legendAlign, legendSize, spacing, hasBorder, userLabel, userAutocomplete, userPlaceholder, passwordLabel, passwordPlaceholder, passwordPattern, passwordTitle, confirmLabel, confirmPlaceholder, confirmTitle, inputsLayout, inputsSize, inputsRounded, checkLabel, checkLabelIsBold, checkRounded, checkHint, }: RegisterFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default RegisterForm;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
type BaseColorOption = 'dark' | 'light' | 'info' | 'success' | 'warning' | 'danger' | 'primary' | 'secondary';
|
|
2
|
+
type ColorOption = BaseColorOption | 'current';
|
|
3
|
+
type OutlineColorOption = ColorOption | 'accent';
|
|
4
|
+
type BackgroundOption = BaseColorOption | 'transparent';
|
|
5
|
+
type SpacingOption = '0' | '1' | '2' | '4' | '8';
|
|
6
|
+
type AlignOption = 'left' | 'center' | 'right';
|
|
7
|
+
type SizeOption = 'sm' | 'md' | 'lg' | 'xl';
|
|
8
|
+
interface CommonFormProps {
|
|
9
|
+
name?: string;
|
|
10
|
+
action?: string;
|
|
11
|
+
layout?: 'col' | 'row';
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
onsubmit?: (formData: {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
}) => void;
|
|
17
|
+
onCancel?: () => void;
|
|
18
|
+
showCancel?: boolean;
|
|
19
|
+
actions?: boolean;
|
|
20
|
+
actionsLayout?: 'row' | 'row-reverse' | 'col' | 'col-reverse';
|
|
21
|
+
actionsSpacing?: SpacingOption;
|
|
22
|
+
separator?: boolean;
|
|
23
|
+
submitLabel?: string;
|
|
24
|
+
cancelLabel?: string;
|
|
25
|
+
submitBackground?: BackgroundOption;
|
|
26
|
+
submitColor?: ColorOption;
|
|
27
|
+
cancelBackground?: BackgroundOption;
|
|
28
|
+
cancelColor?: ColorOption;
|
|
29
|
+
submitOutline?: boolean;
|
|
30
|
+
submitOutlineColor?: OutlineColorOption;
|
|
31
|
+
cancelOutline?: boolean;
|
|
32
|
+
cancelOutlineColor?: ColorOption;
|
|
33
|
+
buttonTextcase?: 'uppercase' | 'lowercase' | 'capitalize' | 'normal-case';
|
|
34
|
+
buttonShape?: 'default' | 'rounded' | 'pill';
|
|
35
|
+
buttonIsBold?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface FormProps extends React.HTMLAttributes<HTMLFormElement>, CommonFormProps {
|
|
38
|
+
method?: 'GET' | 'POST' | 'dialog' | string;
|
|
39
|
+
enctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain' | string;
|
|
40
|
+
}
|
|
41
|
+
export interface FieldsetProps extends React.FieldsetHTMLAttributes<HTMLFieldSetElement> {
|
|
42
|
+
legendText?: string;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
legendAlign?: AlignOption;
|
|
45
|
+
legendSize?: SizeOption;
|
|
46
|
+
hasBorder?: boolean;
|
|
47
|
+
isBold?: boolean;
|
|
48
|
+
spacing?: '4' | '8';
|
|
49
|
+
className?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface LegendProps extends React.HTMLProps<HTMLLegendElement> {
|
|
52
|
+
text: string;
|
|
53
|
+
isBold?: boolean;
|
|
54
|
+
align?: AlignOption;
|
|
55
|
+
legendSize?: SizeOption;
|
|
56
|
+
}
|
|
57
|
+
export interface RegisterFormProps extends CommonFormProps {
|
|
58
|
+
legendText: string;
|
|
59
|
+
legendisBold?: boolean;
|
|
60
|
+
legendAlign?: AlignOption;
|
|
61
|
+
legendSize?: SizeOption;
|
|
62
|
+
spacing?: '4' | '8';
|
|
63
|
+
hasBorder?: boolean;
|
|
64
|
+
buttonOutline?: boolean;
|
|
65
|
+
userLabel: string;
|
|
66
|
+
userAutocomplete?: 'username' | 'email' | 'username email';
|
|
67
|
+
userPlaceholder?: string;
|
|
68
|
+
passwordLabel: string;
|
|
69
|
+
passwordPlaceholder?: string;
|
|
70
|
+
passwordPattern?: string;
|
|
71
|
+
passwordTitle?: string;
|
|
72
|
+
confirmLabel: string;
|
|
73
|
+
confirmPlaceholder?: string;
|
|
74
|
+
confirmTitle?: string;
|
|
75
|
+
inputsLayout?: 'col' | 'row';
|
|
76
|
+
inputsSize?: 'md' | 'lg' | 'xl';
|
|
77
|
+
inputsRounded?: 'none' | 'md' | 'lg' | 'full';
|
|
78
|
+
checkLabel: string;
|
|
79
|
+
checkLabelIsBold?: boolean;
|
|
80
|
+
checkRounded?: 'none' | 'full';
|
|
81
|
+
checkHint?: React.ReactNode;
|
|
82
|
+
}
|
|
83
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Gallery } from './Gallery';
|