asterui 0.10.2
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/LICENSE +15 -0
- package/README.md +214 -0
- package/dist/components/Affix.d.ts +14 -0
- package/dist/components/Alert.d.ts +10 -0
- package/dist/components/Autocomplete.d.ts +18 -0
- package/dist/components/Avatar.d.ts +28 -0
- package/dist/components/Badge.d.ts +20 -0
- package/dist/components/Breadcrumb.d.ts +15 -0
- package/dist/components/Browser.d.ts +7 -0
- package/dist/components/Button.d.ts +23 -0
- package/dist/components/Card.d.ts +26 -0
- package/dist/components/Carousel.d.ts +14 -0
- package/dist/components/Cascader.d.ts +19 -0
- package/dist/components/Chart.d.ts +19 -0
- package/dist/components/Chat.d.ts +11 -0
- package/dist/components/Checkbox.d.ts +27 -0
- package/dist/components/Code.d.ts +14 -0
- package/dist/components/Collapse.d.ts +25 -0
- package/dist/components/ColorPicker.d.ts +10 -0
- package/dist/components/Container.d.ts +6 -0
- package/dist/components/ContextMenu.d.ts +23 -0
- package/dist/components/Countdown.d.ts +27 -0
- package/dist/components/DatePicker.d.ts +11 -0
- package/dist/components/Descriptions.d.ts +34 -0
- package/dist/components/Divider.d.ts +8 -0
- package/dist/components/Drawer.d.ts +10 -0
- package/dist/components/Dropdown.d.ts +39 -0
- package/dist/components/Empty.d.ts +8 -0
- package/dist/components/Fieldset.d.ts +15 -0
- package/dist/components/FileInput.d.ts +9 -0
- package/dist/components/Flex.d.ts +14 -0
- package/dist/components/FloatButton.d.ts +34 -0
- package/dist/components/Footer.d.ts +16 -0
- package/dist/components/Form.d.ts +66 -0
- package/dist/components/Grid.d.ts +26 -0
- package/dist/components/Hero.d.ts +9 -0
- package/dist/components/Image.d.ts +14 -0
- package/dist/components/Indicator.d.ts +7 -0
- package/dist/components/Input.d.ts +14 -0
- package/dist/components/InputNumber.d.ts +19 -0
- package/dist/components/Join.d.ts +6 -0
- package/dist/components/Label.d.ts +15 -0
- package/dist/components/Layout.d.ts +59 -0
- package/dist/components/List.d.ts +13 -0
- package/dist/components/Loading.d.ts +9 -0
- package/dist/components/Masonry.d.ts +15 -0
- package/dist/components/Mention.d.ts +30 -0
- package/dist/components/Menu.d.ts +45 -0
- package/dist/components/Modal.d.ts +42 -0
- package/dist/components/Navbar.d.ts +8 -0
- package/dist/components/Notification.d.ts +43 -0
- package/dist/components/OTPInput.d.ts +32 -0
- package/dist/components/PageLayout.d.ts +9 -0
- package/dist/components/Pagination.d.ts +18 -0
- package/dist/components/Phone.d.ts +8 -0
- package/dist/components/Popconfirm.d.ts +17 -0
- package/dist/components/Popover.d.ts +15 -0
- package/dist/components/Progress.d.ts +5 -0
- package/dist/components/QRCode.d.ts +19 -0
- package/dist/components/RadialProgress.d.ts +10 -0
- package/dist/components/Radio.d.ts +20 -0
- package/dist/components/Range.d.ts +16 -0
- package/dist/components/Rating.d.ts +22 -0
- package/dist/components/Responsive.d.ts +18 -0
- package/dist/components/Result.d.ts +12 -0
- package/dist/components/Select.d.ts +10 -0
- package/dist/components/Skeleton.d.ts +9 -0
- package/dist/components/Space.d.ts +10 -0
- package/dist/components/Splitter.d.ts +27 -0
- package/dist/components/Stack.d.ts +10 -0
- package/dist/components/Stat.d.ts +18 -0
- package/dist/components/Steps.d.ts +16 -0
- package/dist/components/Table.d.ts +51 -0
- package/dist/components/Tabs.d.ts +21 -0
- package/dist/components/Tag.d.ts +18 -0
- package/dist/components/Textarea.d.ts +9 -0
- package/dist/components/ThemeController.d.ts +20 -0
- package/dist/components/TimePicker.d.ts +12 -0
- package/dist/components/Timeline.d.ts +24 -0
- package/dist/components/Toggle.d.ts +7 -0
- package/dist/components/Tooltip.d.ts +9 -0
- package/dist/components/Transfer.d.ts +22 -0
- package/dist/components/Tree.d.ts +40 -0
- package/dist/components/TreeSelect.d.ts +20 -0
- package/dist/components/Typography.d.ts +53 -0
- package/dist/components/Upload.d.ts +38 -0
- package/dist/components/Window.d.ts +7 -0
- package/dist/hooks/useBreakpoint.d.ts +10 -0
- package/dist/index.d.ts +172 -0
- package/dist/index.js +182 -0
- package/dist/index.js.map +1 -0
- package/dist/index10.js +33 -0
- package/dist/index10.js.map +1 -0
- package/dist/index100.js +24 -0
- package/dist/index100.js.map +1 -0
- package/dist/index101.js +27 -0
- package/dist/index101.js.map +1 -0
- package/dist/index102.js +23 -0
- package/dist/index102.js.map +1 -0
- package/dist/index103.js +103 -0
- package/dist/index103.js.map +1 -0
- package/dist/index104.js +363 -0
- package/dist/index104.js.map +1 -0
- package/dist/index105.js +28 -0
- package/dist/index105.js.map +1 -0
- package/dist/index106.js +76 -0
- package/dist/index106.js.map +1 -0
- package/dist/index107.js +19 -0
- package/dist/index107.js.map +1 -0
- package/dist/index108.js +69 -0
- package/dist/index108.js.map +1 -0
- package/dist/index109.js +147 -0
- package/dist/index109.js.map +1 -0
- package/dist/index11.js +268 -0
- package/dist/index11.js.map +1 -0
- package/dist/index110.js +5 -0
- package/dist/index110.js.map +1 -0
- package/dist/index111.js +59 -0
- package/dist/index111.js.map +1 -0
- package/dist/index112.js +5 -0
- package/dist/index112.js.map +1 -0
- package/dist/index113.js +5 -0
- package/dist/index113.js.map +1 -0
- package/dist/index114.js +5 -0
- package/dist/index114.js.map +1 -0
- package/dist/index115.js +5 -0
- package/dist/index115.js.map +1 -0
- package/dist/index116.js +5 -0
- package/dist/index116.js.map +1 -0
- package/dist/index117.js +5 -0
- package/dist/index117.js.map +1 -0
- package/dist/index118.js +5 -0
- package/dist/index118.js.map +1 -0
- package/dist/index119.js +5 -0
- package/dist/index119.js.map +1 -0
- package/dist/index12.js +98 -0
- package/dist/index12.js.map +1 -0
- package/dist/index120.js +35 -0
- package/dist/index120.js.map +1 -0
- package/dist/index121.js +5 -0
- package/dist/index121.js.map +1 -0
- package/dist/index122.js +11 -0
- package/dist/index122.js.map +1 -0
- package/dist/index123.js +5 -0
- package/dist/index123.js.map +1 -0
- package/dist/index124.js +5 -0
- package/dist/index124.js.map +1 -0
- package/dist/index125.js +24 -0
- package/dist/index125.js.map +1 -0
- package/dist/index126.js +5 -0
- package/dist/index126.js.map +1 -0
- package/dist/index127.js +27 -0
- package/dist/index127.js.map +1 -0
- package/dist/index128.js +74 -0
- package/dist/index128.js.map +1 -0
- package/dist/index129.js +24 -0
- package/dist/index129.js.map +1 -0
- package/dist/index13.js +161 -0
- package/dist/index13.js.map +1 -0
- package/dist/index130.js +37 -0
- package/dist/index130.js.map +1 -0
- package/dist/index131.js +73 -0
- package/dist/index131.js.map +1 -0
- package/dist/index132.js +5 -0
- package/dist/index132.js.map +1 -0
- package/dist/index133.js +25 -0
- package/dist/index133.js.map +1 -0
- package/dist/index134.js +5 -0
- package/dist/index134.js.map +1 -0
- package/dist/index135.js +5 -0
- package/dist/index135.js.map +1 -0
- package/dist/index136.js +5 -0
- package/dist/index136.js.map +1 -0
- package/dist/index137.js +5 -0
- package/dist/index137.js.map +1 -0
- package/dist/index138.js +7 -0
- package/dist/index138.js.map +1 -0
- package/dist/index14.js +153 -0
- package/dist/index14.js.map +1 -0
- package/dist/index15.js +8 -0
- package/dist/index15.js.map +1 -0
- package/dist/index16.js +74 -0
- package/dist/index16.js.map +1 -0
- package/dist/index17.js +20 -0
- package/dist/index17.js.map +1 -0
- package/dist/index18.js +101 -0
- package/dist/index18.js.map +1 -0
- package/dist/index19.js +117 -0
- package/dist/index19.js.map +1 -0
- package/dist/index2.js +50 -0
- package/dist/index2.js.map +1 -0
- package/dist/index20.js +187 -0
- package/dist/index20.js.map +1 -0
- package/dist/index21.js +113 -0
- package/dist/index21.js.map +1 -0
- package/dist/index22.js +35 -0
- package/dist/index22.js.map +1 -0
- package/dist/index23.js +44 -0
- package/dist/index23.js.map +1 -0
- package/dist/index24.js +15 -0
- package/dist/index24.js.map +1 -0
- package/dist/index25.js +36 -0
- package/dist/index25.js.map +1 -0
- package/dist/index26.js +66 -0
- package/dist/index26.js.map +1 -0
- package/dist/index27.js +83 -0
- package/dist/index27.js.map +1 -0
- package/dist/index28.js +21 -0
- package/dist/index28.js.map +1 -0
- package/dist/index29.js +164 -0
- package/dist/index29.js.map +1 -0
- package/dist/index3.js +31 -0
- package/dist/index3.js.map +1 -0
- package/dist/index30.js +1085 -0
- package/dist/index30.js.map +1 -0
- package/dist/index31.js +21 -0
- package/dist/index31.js.map +1 -0
- package/dist/index32.js +125 -0
- package/dist/index32.js.map +1 -0
- package/dist/index33.js +43 -0
- package/dist/index33.js.map +1 -0
- package/dist/index34.js +194 -0
- package/dist/index34.js.map +1 -0
- package/dist/index35.js +100 -0
- package/dist/index35.js.map +1 -0
- package/dist/index36.js +165 -0
- package/dist/index36.js.map +1 -0
- package/dist/index37.js +149 -0
- package/dist/index37.js.map +1 -0
- package/dist/index38.js +18 -0
- package/dist/index38.js.map +1 -0
- package/dist/index39.js +24 -0
- package/dist/index39.js.map +1 -0
- package/dist/index4.js +104 -0
- package/dist/index4.js.map +1 -0
- package/dist/index40.js +122 -0
- package/dist/index40.js.map +1 -0
- package/dist/index41.js +16 -0
- package/dist/index41.js.map +1 -0
- package/dist/index42.js +38 -0
- package/dist/index42.js.map +1 -0
- package/dist/index43.js +119 -0
- package/dist/index43.js.map +1 -0
- package/dist/index44.js +179 -0
- package/dist/index44.js.map +1 -0
- package/dist/index45.js +150 -0
- package/dist/index45.js.map +1 -0
- package/dist/index46.js +15 -0
- package/dist/index46.js.map +1 -0
- package/dist/index47.js +25 -0
- package/dist/index47.js.map +1 -0
- package/dist/index48.js +17 -0
- package/dist/index48.js.map +1 -0
- package/dist/index49.js +10 -0
- package/dist/index49.js.map +1 -0
- package/dist/index5.js +64 -0
- package/dist/index5.js.map +1 -0
- package/dist/index50.js +269 -0
- package/dist/index50.js.map +1 -0
- package/dist/index51.js +20 -0
- package/dist/index51.js.map +1 -0
- package/dist/index52.js +125 -0
- package/dist/index52.js.map +1 -0
- package/dist/index53.js +113 -0
- package/dist/index53.js.map +1 -0
- package/dist/index54.js +173 -0
- package/dist/index54.js.map +1 -0
- package/dist/index55.js +35 -0
- package/dist/index55.js.map +1 -0
- package/dist/index56.js +125 -0
- package/dist/index56.js.map +1 -0
- package/dist/index57.js +89 -0
- package/dist/index57.js.map +1 -0
- package/dist/index58.js +23 -0
- package/dist/index58.js.map +1 -0
- package/dist/index59.js +77 -0
- package/dist/index59.js.map +1 -0
- package/dist/index6.js +133 -0
- package/dist/index6.js.map +1 -0
- package/dist/index60.js +60 -0
- package/dist/index60.js.map +1 -0
- package/dist/index61.js +48 -0
- package/dist/index61.js.map +1 -0
- package/dist/index62.js +55 -0
- package/dist/index62.js.map +1 -0
- package/dist/index63.js +65 -0
- package/dist/index63.js.map +1 -0
- package/dist/index64.js +110 -0
- package/dist/index64.js.map +1 -0
- package/dist/index65.js +44 -0
- package/dist/index65.js.map +1 -0
- package/dist/index66.js +24 -0
- package/dist/index66.js.map +1 -0
- package/dist/index67.js +49 -0
- package/dist/index67.js.map +1 -0
- package/dist/index68.js +137 -0
- package/dist/index68.js.map +1 -0
- package/dist/index69.js +55 -0
- package/dist/index69.js.map +1 -0
- package/dist/index7.js +14 -0
- package/dist/index7.js.map +1 -0
- package/dist/index70.js +25 -0
- package/dist/index70.js.map +1 -0
- package/dist/index71.js +25 -0
- package/dist/index71.js.map +1 -0
- package/dist/index72.js +332 -0
- package/dist/index72.js.map +1 -0
- package/dist/index73.js +59 -0
- package/dist/index73.js.map +1 -0
- package/dist/index74.js +43 -0
- package/dist/index74.js.map +1 -0
- package/dist/index75.js +98 -0
- package/dist/index75.js.map +1 -0
- package/dist/index76.js +133 -0
- package/dist/index76.js.map +1 -0
- package/dist/index77.js +164 -0
- package/dist/index77.js.map +1 -0
- package/dist/index78.js +68 -0
- package/dist/index78.js.map +1 -0
- package/dist/index79.js +38 -0
- package/dist/index79.js.map +1 -0
- package/dist/index8.js +73 -0
- package/dist/index8.js.map +1 -0
- package/dist/index80.js +37 -0
- package/dist/index80.js.map +1 -0
- package/dist/index81.js +213 -0
- package/dist/index81.js.map +1 -0
- package/dist/index82.js +216 -0
- package/dist/index82.js.map +1 -0
- package/dist/index83.js +298 -0
- package/dist/index83.js.map +1 -0
- package/dist/index84.js +181 -0
- package/dist/index84.js.map +1 -0
- package/dist/index85.js +261 -0
- package/dist/index85.js.map +1 -0
- package/dist/index86.js +17 -0
- package/dist/index86.js.map +1 -0
- package/dist/index87.js +36 -0
- package/dist/index87.js.map +1 -0
- package/dist/index88.js +10796 -0
- package/dist/index88.js.map +1 -0
- package/dist/index89.js +8 -0
- package/dist/index89.js.map +1 -0
- package/dist/index9.js +95 -0
- package/dist/index9.js.map +1 -0
- package/dist/index90.js +45 -0
- package/dist/index90.js.map +1 -0
- package/dist/index91.js +5 -0
- package/dist/index91.js.map +1 -0
- package/dist/index92.js +10 -0
- package/dist/index92.js.map +1 -0
- package/dist/index93.js +155 -0
- package/dist/index93.js.map +1 -0
- package/dist/index94.js +33 -0
- package/dist/index94.js.map +1 -0
- package/dist/index95.js +33 -0
- package/dist/index95.js.map +1 -0
- package/dist/index96.js +5 -0
- package/dist/index96.js.map +1 -0
- package/dist/index97.js +75 -0
- package/dist/index97.js.map +1 -0
- package/dist/index98.js +42 -0
- package/dist/index98.js.map +1 -0
- package/dist/index99.js +29 -0
- package/dist/index99.js.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type TypographySize = 'sm' | 'base' | 'lg' | 'xl' | '2xl';
|
|
3
|
+
export type TitleLevel = 1 | 2 | 3 | 4 | 5;
|
|
4
|
+
export interface TypographyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
size?: TypographySize;
|
|
7
|
+
}
|
|
8
|
+
export interface TitleProps extends Omit<React.HTMLAttributes<HTMLHeadingElement>, 'title'> {
|
|
9
|
+
level?: TitleLevel;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
copyable?: boolean;
|
|
12
|
+
ellipsis?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface ParagraphProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
ellipsis?: boolean | {
|
|
17
|
+
rows?: number;
|
|
18
|
+
expandable?: boolean;
|
|
19
|
+
onExpand?: () => void;
|
|
20
|
+
};
|
|
21
|
+
copyable?: boolean;
|
|
22
|
+
size?: TypographySize;
|
|
23
|
+
align?: 'left' | 'center' | 'right';
|
|
24
|
+
}
|
|
25
|
+
export interface TextProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
code?: boolean;
|
|
28
|
+
mark?: boolean;
|
|
29
|
+
strong?: boolean;
|
|
30
|
+
italic?: boolean;
|
|
31
|
+
underline?: boolean;
|
|
32
|
+
delete?: boolean;
|
|
33
|
+
type?: 'default' | 'secondary' | 'success' | 'warning' | 'error';
|
|
34
|
+
copyable?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface TypographyLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
37
|
+
href?: string;
|
|
38
|
+
children: React.ReactNode;
|
|
39
|
+
external?: boolean;
|
|
40
|
+
size?: TypographySize;
|
|
41
|
+
}
|
|
42
|
+
declare function TypographyRoot({ children, size, className, ...rest }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
declare function Title({ level, children, copyable, ellipsis, className, id, ...rest }: TitleProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
declare function Paragraph({ children, ellipsis, copyable, size, align, className, ...rest }: ParagraphProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
declare function Text({ children, code, mark, strong, italic, underline, delete: del, type, copyable, className, ...rest }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
declare function Link({ href, children, target, external, size, className, ...rest }: TypographyLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export declare const Typography: typeof TypographyRoot & {
|
|
48
|
+
Title: typeof Title;
|
|
49
|
+
Paragraph: typeof Paragraph;
|
|
50
|
+
Text: typeof Text;
|
|
51
|
+
Link: typeof Link;
|
|
52
|
+
};
|
|
53
|
+
export default Typography;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface UploadFile {
|
|
3
|
+
uid: string;
|
|
4
|
+
name: string;
|
|
5
|
+
status: 'uploading' | 'done' | 'error';
|
|
6
|
+
percent?: number;
|
|
7
|
+
url?: string;
|
|
8
|
+
response?: any;
|
|
9
|
+
error?: any;
|
|
10
|
+
originFileObj?: File;
|
|
11
|
+
}
|
|
12
|
+
export interface UploadProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
13
|
+
action?: string;
|
|
14
|
+
accept?: string;
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
maxCount?: number;
|
|
17
|
+
maxSize?: number;
|
|
18
|
+
listType?: 'text' | 'picture' | 'picture-card';
|
|
19
|
+
fileList?: UploadFile[];
|
|
20
|
+
defaultFileList?: UploadFile[];
|
|
21
|
+
beforeUpload?: (file: File, fileList: File[]) => boolean | Promise<boolean>;
|
|
22
|
+
onChange?: (info: {
|
|
23
|
+
file: UploadFile;
|
|
24
|
+
fileList: UploadFile[];
|
|
25
|
+
}) => void;
|
|
26
|
+
onRemove?: (file: UploadFile) => void | boolean | Promise<void | boolean>;
|
|
27
|
+
customRequest?: (options: {
|
|
28
|
+
file: File;
|
|
29
|
+
onProgress: (percent: number) => void;
|
|
30
|
+
onSuccess: (response: any) => void;
|
|
31
|
+
onError: (error: any) => void;
|
|
32
|
+
}) => void;
|
|
33
|
+
showUploadList?: boolean;
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
}
|
|
37
|
+
export declare const Upload: React.FC<UploadProps>;
|
|
38
|
+
export default Upload;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type Breakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
2
|
+
export interface UseBreakpointReturn {
|
|
3
|
+
breakpoint: Breakpoint;
|
|
4
|
+
width: number;
|
|
5
|
+
isAbove: (bp: Breakpoint) => boolean;
|
|
6
|
+
isBelow: (bp: Breakpoint) => boolean;
|
|
7
|
+
isAt: (bp: Breakpoint) => boolean;
|
|
8
|
+
isBetween: (min: Breakpoint, max: Breakpoint) => boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function useBreakpoint(): UseBreakpointReturn;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
export { Affix } from './components/Affix';
|
|
2
|
+
export type { AffixProps } from './components/Affix';
|
|
3
|
+
export { Alert } from './components/Alert';
|
|
4
|
+
export type { AlertProps } from './components/Alert';
|
|
5
|
+
export { Autocomplete } from './components/Autocomplete';
|
|
6
|
+
export type { AutocompleteProps, AutocompleteOption } from './components/Autocomplete';
|
|
7
|
+
export { Avatar, AvatarGroup } from './components/Avatar';
|
|
8
|
+
export type { AvatarProps, AvatarGroupProps, AvatarSize, AvatarShape, AvatarStatus } from './components/Avatar';
|
|
9
|
+
export { Badge } from './components/Badge';
|
|
10
|
+
export type { BadgeProps, BadgePosition, BadgeStatus } from './components/Badge';
|
|
11
|
+
export { Breadcrumb } from './components/Breadcrumb';
|
|
12
|
+
export type { BreadcrumbProps, BreadcrumbItemProps } from './components/Breadcrumb';
|
|
13
|
+
export { Button } from './components/Button';
|
|
14
|
+
export type { ButtonProps } from './components/Button';
|
|
15
|
+
export { Checkbox } from './components/Checkbox';
|
|
16
|
+
export type { CheckboxProps, CheckboxGroupProps, CheckboxOptionType } from './components/Checkbox';
|
|
17
|
+
export { Chat } from './components/Chat';
|
|
18
|
+
export type { ChatProps } from './components/Chat';
|
|
19
|
+
export { ColorPicker } from './components/ColorPicker';
|
|
20
|
+
export type { ColorPickerProps } from './components/ColorPicker';
|
|
21
|
+
export { Card } from './components/Card';
|
|
22
|
+
export type { CardProps, CardGridProps } from './components/Card';
|
|
23
|
+
export { Cascader } from './components/Cascader';
|
|
24
|
+
export type { CascaderProps, CascaderOption } from './components/Cascader';
|
|
25
|
+
export { Chart } from './components/Chart';
|
|
26
|
+
export type { ChartProps } from './components/Chart';
|
|
27
|
+
export { Carousel } from './components/Carousel';
|
|
28
|
+
export type { CarouselProps, CarouselItemProps } from './components/Carousel';
|
|
29
|
+
export { Collapse } from './components/Collapse';
|
|
30
|
+
export type { CollapseProps, CollapseTitleProps, CollapseContentProps } from './components/Collapse';
|
|
31
|
+
export { Container } from './components/Container';
|
|
32
|
+
export type { ContainerProps } from './components/Container';
|
|
33
|
+
export { ContextMenu } from './components/ContextMenu';
|
|
34
|
+
export type { ContextMenuProps, ContextMenuItem } from './components/ContextMenu';
|
|
35
|
+
export { Countdown } from './components/Countdown';
|
|
36
|
+
export type { CountdownProps } from './components/Countdown';
|
|
37
|
+
export { DatePicker } from './components/DatePicker';
|
|
38
|
+
export type { DatePickerProps } from './components/DatePicker';
|
|
39
|
+
export { Descriptions } from './components/Descriptions';
|
|
40
|
+
export type { DescriptionsProps, DescriptionsItemProps, DescriptionsSize, DescriptionsLayout } from './components/Descriptions';
|
|
41
|
+
export { Divider } from './components/Divider';
|
|
42
|
+
export type { DividerProps } from './components/Divider';
|
|
43
|
+
export { Drawer } from './components/Drawer';
|
|
44
|
+
export type { DrawerProps } from './components/Drawer';
|
|
45
|
+
export { Fieldset } from './components/Fieldset';
|
|
46
|
+
export type { FieldsetProps, FieldsetLegendProps } from './components/Fieldset';
|
|
47
|
+
export { FileInput } from './components/FileInput';
|
|
48
|
+
export type { FileInputProps } from './components/FileInput';
|
|
49
|
+
export { Flex } from './components/Flex';
|
|
50
|
+
export type { FlexProps } from './components/Flex';
|
|
51
|
+
export { FloatButton } from './components/FloatButton';
|
|
52
|
+
export type { FloatButtonProps, BackTopProps } from './components/FloatButton';
|
|
53
|
+
export { Footer } from './components/Footer';
|
|
54
|
+
export type { FooterProps, FooterTitleProps } from './components/Footer';
|
|
55
|
+
export { Form, useFormInstance } from './components/Form';
|
|
56
|
+
export type { FormProps, FormItemProps, FormRule, FormInstance } from './components/Form';
|
|
57
|
+
export { Grid, Row, Col } from './components/Grid';
|
|
58
|
+
export type { RowProps, ColProps } from './components/Grid';
|
|
59
|
+
export { Hero } from './components/Hero';
|
|
60
|
+
export type { HeroProps } from './components/Hero';
|
|
61
|
+
export { Image } from './components/Image';
|
|
62
|
+
export type { ImageProps } from './components/Image';
|
|
63
|
+
export { Indicator } from './components/Indicator';
|
|
64
|
+
export type { IndicatorProps, IndicatorPosition } from './components/Indicator';
|
|
65
|
+
export { Dropdown } from './components/Dropdown';
|
|
66
|
+
export type { DropdownProps, DropdownTriggerProps, DropdownMenuProps, DropdownItemProps, DropdownDividerProps } from './components/Dropdown';
|
|
67
|
+
export { Empty } from './components/Empty';
|
|
68
|
+
export type { EmptyProps } from './components/Empty';
|
|
69
|
+
export { Input } from './components/Input';
|
|
70
|
+
export type { InputProps } from './components/Input';
|
|
71
|
+
export { InputNumber } from './components/InputNumber';
|
|
72
|
+
export type { InputNumberProps } from './components/InputNumber';
|
|
73
|
+
export { Join } from './components/Join';
|
|
74
|
+
export type { JoinProps } from './components/Join';
|
|
75
|
+
export { Label } from './components/Label';
|
|
76
|
+
export type { LabelProps, FloatingLabelProps } from './components/Label';
|
|
77
|
+
export { Layout, useSiderContext } from './components/Layout';
|
|
78
|
+
export type { LayoutProps, LayoutHeaderProps, LayoutFooterProps, LayoutContentProps, LayoutSiderProps } from './components/Layout';
|
|
79
|
+
export { List } from './components/List';
|
|
80
|
+
export type { ListProps, ListRowProps } from './components/List';
|
|
81
|
+
export { Loading } from './components/Loading';
|
|
82
|
+
export type { LoadingProps } from './components/Loading';
|
|
83
|
+
export { Masonry } from './components/Masonry';
|
|
84
|
+
export type { MasonryProps } from './components/Masonry';
|
|
85
|
+
export { Mention } from './components/Mention';
|
|
86
|
+
export type { MentionProps, MentionOption } from './components/Mention';
|
|
87
|
+
export { Menu } from './components/Menu';
|
|
88
|
+
export type { MenuProps, MenuItemProps, MenuSubMenuProps, MenuTitleProps, MenuDividerProps, MenuMode } from './components/Menu';
|
|
89
|
+
export { Browser } from './components/Browser';
|
|
90
|
+
export type { BrowserProps } from './components/Browser';
|
|
91
|
+
export { Code } from './components/Code';
|
|
92
|
+
export type { CodeProps, CodeLineProps } from './components/Code';
|
|
93
|
+
export { Phone } from './components/Phone';
|
|
94
|
+
export type { PhoneProps } from './components/Phone';
|
|
95
|
+
export { Window } from './components/Window';
|
|
96
|
+
export type { WindowProps } from './components/Window';
|
|
97
|
+
export { Modal } from './components/Modal';
|
|
98
|
+
export type { ModalProps, ModalFuncProps } from './components/Modal';
|
|
99
|
+
export { Navbar } from './components/Navbar';
|
|
100
|
+
export type { NavbarProps } from './components/Navbar';
|
|
101
|
+
export { notification } from './components/Notification';
|
|
102
|
+
export type { NotificationConfig, NotificationType, NotificationPlacement } from './components/Notification';
|
|
103
|
+
export { OTPInput } from './components/OTPInput';
|
|
104
|
+
export type { OTPInputProps, OTPInputRef } from './components/OTPInput';
|
|
105
|
+
export { Pagination } from './components/Pagination';
|
|
106
|
+
export type { PaginationProps } from './components/Pagination';
|
|
107
|
+
export { PageLayout } from './components/PageLayout';
|
|
108
|
+
export type { PageLayoutProps } from './components/PageLayout';
|
|
109
|
+
export { Popconfirm } from './components/Popconfirm';
|
|
110
|
+
export type { PopconfirmProps } from './components/Popconfirm';
|
|
111
|
+
export { Popover } from './components/Popover';
|
|
112
|
+
export type { PopoverProps, PopoverPlacement, PopoverTrigger } from './components/Popover';
|
|
113
|
+
export { Progress } from './components/Progress';
|
|
114
|
+
export type { ProgressProps } from './components/Progress';
|
|
115
|
+
export { QRCode } from './components/QRCode';
|
|
116
|
+
export type { QRCodeProps, QRCodeErrorLevel, QRCodeType, QRCodeStatus } from './components/QRCode';
|
|
117
|
+
export { Radio } from './components/Radio';
|
|
118
|
+
export type { RadioProps, RadioGroupProps } from './components/Radio';
|
|
119
|
+
export { RadialProgress } from './components/RadialProgress';
|
|
120
|
+
export type { RadialProgressProps } from './components/RadialProgress';
|
|
121
|
+
export { Range } from './components/Range';
|
|
122
|
+
export type { RangeProps } from './components/Range';
|
|
123
|
+
export { Rating } from './components/Rating';
|
|
124
|
+
export type { RatingProps, RatingItemProps } from './components/Rating';
|
|
125
|
+
export { Result } from './components/Result';
|
|
126
|
+
export type { ResultProps, ResultStatus } from './components/Result';
|
|
127
|
+
export { Select } from './components/Select';
|
|
128
|
+
export type { SelectProps } from './components/Select';
|
|
129
|
+
export { Skeleton } from './components/Skeleton';
|
|
130
|
+
export type { SkeletonProps } from './components/Skeleton';
|
|
131
|
+
export { Space } from './components/Space';
|
|
132
|
+
export type { SpaceProps } from './components/Space';
|
|
133
|
+
export { Splitter } from './components/Splitter';
|
|
134
|
+
export type { SplitterProps, SplitterPanelProps } from './components/Splitter';
|
|
135
|
+
export { Stack } from './components/Stack';
|
|
136
|
+
export type { StackProps } from './components/Stack';
|
|
137
|
+
export { Stats } from './components/Stat';
|
|
138
|
+
export type { StatsProps, StatProps } from './components/Stat';
|
|
139
|
+
export { Steps } from './components/Steps';
|
|
140
|
+
export type { StepsProps, StepProps } from './components/Steps';
|
|
141
|
+
export { Table } from './components/Table';
|
|
142
|
+
export type { TableProps, ColumnType, PaginationConfig, FilterConfig, RowSelection } from './components/Table';
|
|
143
|
+
export { Tabs } from './components/Tabs';
|
|
144
|
+
export type { TabsProps, TabPanelProps } from './components/Tabs';
|
|
145
|
+
export { Textarea } from './components/Textarea';
|
|
146
|
+
export type { TextareaProps } from './components/Textarea';
|
|
147
|
+
export { Tag, CheckableTag } from './components/Tag';
|
|
148
|
+
export type { TagProps, CheckableTagProps } from './components/Tag';
|
|
149
|
+
export { ThemeController } from './components/ThemeController';
|
|
150
|
+
export type { ThemeControllerSwapProps, ThemeControllerDropdownProps } from './components/ThemeController';
|
|
151
|
+
export { TimePicker } from './components/TimePicker';
|
|
152
|
+
export type { TimePickerProps } from './components/TimePicker';
|
|
153
|
+
export { Timeline } from './components/Timeline';
|
|
154
|
+
export type { TimelineProps, TimelineItemProps } from './components/Timeline';
|
|
155
|
+
export { Toggle } from './components/Toggle';
|
|
156
|
+
export type { ToggleProps } from './components/Toggle';
|
|
157
|
+
export { Tooltip } from './components/Tooltip';
|
|
158
|
+
export type { TooltipProps } from './components/Tooltip';
|
|
159
|
+
export { Transfer } from './components/Transfer';
|
|
160
|
+
export type { TransferProps, TransferItem } from './components/Transfer';
|
|
161
|
+
export { Tree } from './components/Tree';
|
|
162
|
+
export type { TreeProps, TreeDataNode } from './components/Tree';
|
|
163
|
+
export { TreeSelect } from './components/TreeSelect';
|
|
164
|
+
export type { TreeSelectProps } from './components/TreeSelect';
|
|
165
|
+
export { Typography } from './components/Typography';
|
|
166
|
+
export type { TypographyProps, TitleProps, ParagraphProps, TextProps, TypographyLinkProps, TypographySize, TitleLevel, } from './components/Typography';
|
|
167
|
+
export { Upload } from './components/Upload';
|
|
168
|
+
export type { UploadProps, UploadFile } from './components/Upload';
|
|
169
|
+
export { Show, Hide } from './components/Responsive';
|
|
170
|
+
export type { ShowProps, HideProps } from './components/Responsive';
|
|
171
|
+
export { useBreakpoint } from './hooks/useBreakpoint';
|
|
172
|
+
export type { Breakpoint, UseBreakpointReturn } from './hooks/useBreakpoint';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { Affix as e } from "./index2.js";
|
|
2
|
+
import { Alert as p } from "./index3.js";
|
|
3
|
+
import { Autocomplete as x } from "./index4.js";
|
|
4
|
+
import { Avatar as a, AvatarGroup as n } from "./index5.js";
|
|
5
|
+
import { Badge as l } from "./index6.js";
|
|
6
|
+
import { Breadcrumb as d } from "./index7.js";
|
|
7
|
+
import { Button as c } from "./index8.js";
|
|
8
|
+
import { Checkbox as T } from "./index9.js";
|
|
9
|
+
import { Chat as P } from "./index10.js";
|
|
10
|
+
import { ColorPicker as b } from "./index11.js";
|
|
11
|
+
import { Card as k } from "./index12.js";
|
|
12
|
+
import { Cascader as F } from "./index13.js";
|
|
13
|
+
import { Chart as R } from "./index14.js";
|
|
14
|
+
import { Carousel as B } from "./index15.js";
|
|
15
|
+
import { Collapse as A } from "./index16.js";
|
|
16
|
+
import { Container as L } from "./index17.js";
|
|
17
|
+
import { ContextMenu as G } from "./index18.js";
|
|
18
|
+
import { Countdown as N } from "./index19.js";
|
|
19
|
+
import { DatePicker as J } from "./index20.js";
|
|
20
|
+
import { Descriptions as Q } from "./index21.js";
|
|
21
|
+
import { Divider as W } from "./index22.js";
|
|
22
|
+
import { Drawer as q } from "./index23.js";
|
|
23
|
+
import { Fieldset as K } from "./index24.js";
|
|
24
|
+
import { FileInput as X } from "./index25.js";
|
|
25
|
+
import { Flex as Z } from "./index26.js";
|
|
26
|
+
import { FloatButton as $ } from "./index27.js";
|
|
27
|
+
import { Footer as ro } from "./index28.js";
|
|
28
|
+
import { Form as to, useFormInstance as po } from "./index29.js";
|
|
29
|
+
import { Col as xo, Grid as fo, Row as ao } from "./index30.js";
|
|
30
|
+
import { Hero as io } from "./index31.js";
|
|
31
|
+
import { Image as so } from "./index32.js";
|
|
32
|
+
import { Indicator as co } from "./index33.js";
|
|
33
|
+
import { Dropdown as To } from "./index34.js";
|
|
34
|
+
import { Empty as Po } from "./index35.js";
|
|
35
|
+
import { Input as bo } from "./index36.js";
|
|
36
|
+
import { InputNumber as ko } from "./index37.js";
|
|
37
|
+
import { Join as Fo } from "./index38.js";
|
|
38
|
+
import { Label as Ro } from "./index39.js";
|
|
39
|
+
import { Layout as Bo, useSiderContext as vo } from "./index40.js";
|
|
40
|
+
import { List as Do } from "./index41.js";
|
|
41
|
+
import { Loading as Mo } from "./index42.js";
|
|
42
|
+
import { Masonry as Ho } from "./index43.js";
|
|
43
|
+
import { Mention as Eo } from "./index44.js";
|
|
44
|
+
import { Menu as Oo } from "./index45.js";
|
|
45
|
+
import { Browser as Uo } from "./index46.js";
|
|
46
|
+
import { Code as jo } from "./index47.js";
|
|
47
|
+
import { Phone as zo } from "./index48.js";
|
|
48
|
+
import { Window as Vo } from "./index49.js";
|
|
49
|
+
import { Modal as Yo } from "./index50.js";
|
|
50
|
+
import { Navbar as _o } from "./index51.js";
|
|
51
|
+
import { notification as or } from "./index52.js";
|
|
52
|
+
import { OTPInput as er } from "./index53.js";
|
|
53
|
+
import { Pagination as pr } from "./index54.js";
|
|
54
|
+
import { PageLayout as xr } from "./index55.js";
|
|
55
|
+
import { Popconfirm as ar } from "./index56.js";
|
|
56
|
+
import { Popover as ir } from "./index57.js";
|
|
57
|
+
import { Progress as sr } from "./index58.js";
|
|
58
|
+
import { QRCode as ur } from "./index59.js";
|
|
59
|
+
import { Radio as Cr } from "./index60.js";
|
|
60
|
+
import { RadialProgress as gr } from "./index61.js";
|
|
61
|
+
import { Range as Sr } from "./index62.js";
|
|
62
|
+
import { Rating as hr } from "./index63.js";
|
|
63
|
+
import { Result as wr } from "./index64.js";
|
|
64
|
+
import { Select as Ir } from "./index65.js";
|
|
65
|
+
import { Skeleton as yr } from "./index66.js";
|
|
66
|
+
import { Space as vr } from "./index67.js";
|
|
67
|
+
import { Splitter as Dr } from "./index68.js";
|
|
68
|
+
import { Stack as Mr } from "./index69.js";
|
|
69
|
+
import { Stats as Hr } from "./index70.js";
|
|
70
|
+
import { Steps as Er } from "./index71.js";
|
|
71
|
+
import { Table as Or } from "./index72.js";
|
|
72
|
+
import { Tabs as Ur } from "./index73.js";
|
|
73
|
+
import { Textarea as jr } from "./index74.js";
|
|
74
|
+
import { CheckableTag as zr, Tag as Kr } from "./index75.js";
|
|
75
|
+
import { ThemeController as Xr } from "./index76.js";
|
|
76
|
+
import { TimePicker as Zr } from "./index77.js";
|
|
77
|
+
import { Timeline as $r } from "./index78.js";
|
|
78
|
+
import { Toggle as re } from "./index79.js";
|
|
79
|
+
import { Tooltip as te } from "./index80.js";
|
|
80
|
+
import { Transfer as me } from "./index81.js";
|
|
81
|
+
import { Tree as fe } from "./index82.js";
|
|
82
|
+
import { TreeSelect as ne } from "./index83.js";
|
|
83
|
+
import { Typography as le } from "./index84.js";
|
|
84
|
+
import { Upload as de } from "./index85.js";
|
|
85
|
+
import { Hide as ce, Show as Ce } from "./index86.js";
|
|
86
|
+
import { useBreakpoint as ge } from "./index87.js";
|
|
87
|
+
export {
|
|
88
|
+
e as Affix,
|
|
89
|
+
p as Alert,
|
|
90
|
+
x as Autocomplete,
|
|
91
|
+
a as Avatar,
|
|
92
|
+
n as AvatarGroup,
|
|
93
|
+
l as Badge,
|
|
94
|
+
d as Breadcrumb,
|
|
95
|
+
Uo as Browser,
|
|
96
|
+
c as Button,
|
|
97
|
+
k as Card,
|
|
98
|
+
B as Carousel,
|
|
99
|
+
F as Cascader,
|
|
100
|
+
R as Chart,
|
|
101
|
+
P as Chat,
|
|
102
|
+
zr as CheckableTag,
|
|
103
|
+
T as Checkbox,
|
|
104
|
+
jo as Code,
|
|
105
|
+
xo as Col,
|
|
106
|
+
A as Collapse,
|
|
107
|
+
b as ColorPicker,
|
|
108
|
+
L as Container,
|
|
109
|
+
G as ContextMenu,
|
|
110
|
+
N as Countdown,
|
|
111
|
+
J as DatePicker,
|
|
112
|
+
Q as Descriptions,
|
|
113
|
+
W as Divider,
|
|
114
|
+
q as Drawer,
|
|
115
|
+
To as Dropdown,
|
|
116
|
+
Po as Empty,
|
|
117
|
+
K as Fieldset,
|
|
118
|
+
X as FileInput,
|
|
119
|
+
Z as Flex,
|
|
120
|
+
$ as FloatButton,
|
|
121
|
+
ro as Footer,
|
|
122
|
+
to as Form,
|
|
123
|
+
fo as Grid,
|
|
124
|
+
io as Hero,
|
|
125
|
+
ce as Hide,
|
|
126
|
+
so as Image,
|
|
127
|
+
co as Indicator,
|
|
128
|
+
bo as Input,
|
|
129
|
+
ko as InputNumber,
|
|
130
|
+
Fo as Join,
|
|
131
|
+
Ro as Label,
|
|
132
|
+
Bo as Layout,
|
|
133
|
+
Do as List,
|
|
134
|
+
Mo as Loading,
|
|
135
|
+
Ho as Masonry,
|
|
136
|
+
Eo as Mention,
|
|
137
|
+
Oo as Menu,
|
|
138
|
+
Yo as Modal,
|
|
139
|
+
_o as Navbar,
|
|
140
|
+
er as OTPInput,
|
|
141
|
+
xr as PageLayout,
|
|
142
|
+
pr as Pagination,
|
|
143
|
+
zo as Phone,
|
|
144
|
+
ar as Popconfirm,
|
|
145
|
+
ir as Popover,
|
|
146
|
+
sr as Progress,
|
|
147
|
+
ur as QRCode,
|
|
148
|
+
gr as RadialProgress,
|
|
149
|
+
Cr as Radio,
|
|
150
|
+
Sr as Range,
|
|
151
|
+
hr as Rating,
|
|
152
|
+
wr as Result,
|
|
153
|
+
ao as Row,
|
|
154
|
+
Ir as Select,
|
|
155
|
+
Ce as Show,
|
|
156
|
+
yr as Skeleton,
|
|
157
|
+
vr as Space,
|
|
158
|
+
Dr as Splitter,
|
|
159
|
+
Mr as Stack,
|
|
160
|
+
Hr as Stats,
|
|
161
|
+
Er as Steps,
|
|
162
|
+
Or as Table,
|
|
163
|
+
Ur as Tabs,
|
|
164
|
+
Kr as Tag,
|
|
165
|
+
jr as Textarea,
|
|
166
|
+
Xr as ThemeController,
|
|
167
|
+
Zr as TimePicker,
|
|
168
|
+
$r as Timeline,
|
|
169
|
+
re as Toggle,
|
|
170
|
+
te as Tooltip,
|
|
171
|
+
me as Transfer,
|
|
172
|
+
fe as Tree,
|
|
173
|
+
ne as TreeSelect,
|
|
174
|
+
le as Typography,
|
|
175
|
+
de as Upload,
|
|
176
|
+
Vo as Window,
|
|
177
|
+
or as notification,
|
|
178
|
+
ge as useBreakpoint,
|
|
179
|
+
po as useFormInstance,
|
|
180
|
+
vo as useSiderContext
|
|
181
|
+
};
|
|
182
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index10.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs as o, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
const p = ({
|
|
3
|
+
message: l,
|
|
4
|
+
position: n = "start",
|
|
5
|
+
avatar: s,
|
|
6
|
+
avatarAlt: i = "",
|
|
7
|
+
header: e,
|
|
8
|
+
footer: t,
|
|
9
|
+
color: c,
|
|
10
|
+
className: h = "",
|
|
11
|
+
...u
|
|
12
|
+
}) => {
|
|
13
|
+
const d = n === "start" ? "chat-start" : "chat-end", r = {
|
|
14
|
+
primary: "chat-bubble-primary",
|
|
15
|
+
secondary: "chat-bubble-secondary",
|
|
16
|
+
accent: "chat-bubble-accent",
|
|
17
|
+
neutral: "chat-bubble-neutral",
|
|
18
|
+
info: "chat-bubble-info",
|
|
19
|
+
success: "chat-bubble-success",
|
|
20
|
+
warning: "chat-bubble-warning",
|
|
21
|
+
error: "chat-bubble-error"
|
|
22
|
+
}, b = ["chat-bubble"];
|
|
23
|
+
return c && r[c] && b.push(r[c]), /* @__PURE__ */ o("div", { className: `chat ${d} ${h}`, ...u, children: [
|
|
24
|
+
s && /* @__PURE__ */ a("div", { className: "chat-image avatar", children: /* @__PURE__ */ a("div", { className: "w-10 rounded-full", children: /* @__PURE__ */ a("img", { alt: i, src: s }) }) }),
|
|
25
|
+
e && /* @__PURE__ */ a("div", { className: "chat-header", children: e }),
|
|
26
|
+
/* @__PURE__ */ a("div", { className: b.join(" "), children: l }),
|
|
27
|
+
t && /* @__PURE__ */ a("div", { className: "chat-footer", children: t })
|
|
28
|
+
] });
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
p as Chat
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=index10.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index10.js","sources":["../src/components/Chat.tsx"],"sourcesContent":["import React from 'react'\n\nexport interface ChatProps extends React.HTMLAttributes<HTMLDivElement> {\n message: React.ReactNode\n position?: 'start' | 'end'\n avatar?: string\n avatarAlt?: string\n header?: React.ReactNode\n footer?: React.ReactNode\n color?: 'primary' | 'secondary' | 'accent' | 'neutral' | 'info' | 'success' | 'warning' | 'error'\n}\n\nexport const Chat: React.FC<ChatProps> = ({\n message,\n position = 'start',\n avatar,\n avatarAlt = '',\n header,\n footer,\n color,\n className = '',\n ...rest\n}) => {\n const positionClass = position === 'start' ? 'chat-start' : 'chat-end'\n\n const colorClasses: Record<string, string> = {\n primary: 'chat-bubble-primary',\n secondary: 'chat-bubble-secondary',\n accent: 'chat-bubble-accent',\n neutral: 'chat-bubble-neutral',\n info: 'chat-bubble-info',\n success: 'chat-bubble-success',\n warning: 'chat-bubble-warning',\n error: 'chat-bubble-error',\n }\n\n const bubbleClasses = ['chat-bubble']\n if (color && colorClasses[color]) {\n bubbleClasses.push(colorClasses[color])\n }\n\n return (\n <div className={`chat ${positionClass} ${className}`} {...rest}>\n {avatar && (\n <div className=\"chat-image avatar\">\n <div className=\"w-10 rounded-full\">\n <img alt={avatarAlt} src={avatar} />\n </div>\n </div>\n )}\n {header && <div className=\"chat-header\">{header}</div>}\n <div className={bubbleClasses.join(' ')}>{message}</div>\n {footer && <div className=\"chat-footer\">{footer}</div>}\n </div>\n )\n}\n"],"names":["Chat","message","position","avatar","avatarAlt","header","footer","color","className","rest","positionClass","colorClasses","bubbleClasses","jsxs","jsx"],"mappings":";AAYO,MAAMA,IAA4B,CAAC;AAAA,EACxC,SAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,QAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,GAAGC;AACL,MAAM;AACJ,QAAMC,IAAgBR,MAAa,UAAU,eAAe,YAEtDS,IAAuC;AAAA,IAC3C,SAAS;AAAA,IACT,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,MAAM;AAAA,IACN,SAAS;AAAA,IACT,SAAS;AAAA,IACT,OAAO;AAAA,EAAA,GAGHC,IAAgB,CAAC,aAAa;AACpC,SAAIL,KAASI,EAAaJ,CAAK,KAC7BK,EAAc,KAAKD,EAAaJ,CAAK,CAAC,GAItC,gBAAAM,EAAC,SAAI,WAAW,QAAQH,CAAa,IAAIF,CAAS,IAAK,GAAGC,GACvD,UAAA;AAAA,IAAAN,KACC,gBAAAW,EAAC,OAAA,EAAI,WAAU,qBACb,4BAAC,OAAA,EAAI,WAAU,qBACb,UAAA,gBAAAA,EAAC,SAAI,KAAKV,GAAW,KAAKD,EAAA,CAAQ,GACpC,GACF;AAAA,IAEDE,KAAU,gBAAAS,EAAC,OAAA,EAAI,WAAU,eAAe,UAAAT,GAAO;AAAA,sBAC/C,OAAA,EAAI,WAAWO,EAAc,KAAK,GAAG,GAAI,UAAAX,GAAQ;AAAA,IACjDK,KAAU,gBAAAQ,EAAC,OAAA,EAAI,WAAU,eAAe,UAAAR,EAAA,CAAO;AAAA,EAAA,GAClD;AAEJ;"}
|
package/dist/index100.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var n, s;
|
|
2
|
+
function h() {
|
|
3
|
+
if (s) return n;
|
|
4
|
+
s = 1;
|
|
5
|
+
function i(t) {
|
|
6
|
+
if (!t || t < 1)
|
|
7
|
+
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
8
|
+
this.size = t, this.data = new Uint8Array(t * t), this.reservedBit = new Uint8Array(t * t);
|
|
9
|
+
}
|
|
10
|
+
return i.prototype.set = function(t, r, e, o) {
|
|
11
|
+
const a = t * this.size + r;
|
|
12
|
+
this.data[a] = e, o && (this.reservedBit[a] = !0);
|
|
13
|
+
}, i.prototype.get = function(t, r) {
|
|
14
|
+
return this.data[t * this.size + r];
|
|
15
|
+
}, i.prototype.xor = function(t, r, e) {
|
|
16
|
+
this.data[t * this.size + r] ^= e;
|
|
17
|
+
}, i.prototype.isReserved = function(t, r) {
|
|
18
|
+
return this.reservedBit[t * this.size + r];
|
|
19
|
+
}, n = i, n;
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
h as __require
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=index100.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index100.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js"],"sourcesContent":["/**\n * Helper class to handle QR Code symbol modules\n *\n * @param {Number} size Symbol size\n */\nfunction BitMatrix (size) {\n if (!size || size < 1) {\n throw new Error('BitMatrix size must be defined and greater than 0')\n }\n\n this.size = size\n this.data = new Uint8Array(size * size)\n this.reservedBit = new Uint8Array(size * size)\n}\n\n/**\n * Set bit value at specified location\n * If reserved flag is set, this bit will be ignored during masking process\n *\n * @param {Number} row\n * @param {Number} col\n * @param {Boolean} value\n * @param {Boolean} reserved\n */\nBitMatrix.prototype.set = function (row, col, value, reserved) {\n const index = row * this.size + col\n this.data[index] = value\n if (reserved) this.reservedBit[index] = true\n}\n\n/**\n * Returns bit value at specified location\n *\n * @param {Number} row\n * @param {Number} col\n * @return {Boolean}\n */\nBitMatrix.prototype.get = function (row, col) {\n return this.data[row * this.size + col]\n}\n\n/**\n * Applies xor operator at specified location\n * (used during masking process)\n *\n * @param {Number} row\n * @param {Number} col\n * @param {Boolean} value\n */\nBitMatrix.prototype.xor = function (row, col, value) {\n this.data[row * this.size + col] ^= value\n}\n\n/**\n * Check if bit at specified location is reserved\n *\n * @param {Number} row\n * @param {Number} col\n * @return {Boolean}\n */\nBitMatrix.prototype.isReserved = function (row, col) {\n return this.reservedBit[row * this.size + col]\n}\n\nmodule.exports = BitMatrix\n"],"names":["BitMatrix","size","row","col","value","reserved","index","bitMatrix"],"mappings":";;;;AAKA,WAASA,EAAWC,GAAM;AACxB,QAAI,CAACA,KAAQA,IAAO;AAClB,YAAM,IAAI,MAAM,mDAAmD;AAGrE,SAAK,OAAOA,GACZ,KAAK,OAAO,IAAI,WAAWA,IAAOA,CAAI,GACtC,KAAK,cAAc,IAAI,WAAWA,IAAOA,CAAI;AAAA,EAC/C;AAWA,SAAAD,EAAU,UAAU,MAAM,SAAUE,GAAKC,GAAKC,GAAOC,GAAU;AAC7D,UAAMC,IAAQJ,IAAM,KAAK,OAAOC;AAChC,SAAK,KAAKG,CAAK,IAAIF,GACfC,MAAU,KAAK,YAAYC,CAAK,IAAI;AAAA,EAC1C,GASAN,EAAU,UAAU,MAAM,SAAUE,GAAKC,GAAK;AAC5C,WAAO,KAAK,KAAKD,IAAM,KAAK,OAAOC,CAAG;AAAA,EACxC,GAUAH,EAAU,UAAU,MAAM,SAAUE,GAAKC,GAAKC,GAAO;AACnD,SAAK,KAAKF,IAAM,KAAK,OAAOC,CAAG,KAAKC;AAAA,EACtC,GASAJ,EAAU,UAAU,aAAa,SAAUE,GAAKC,GAAK;AACnD,WAAO,KAAK,YAAYD,IAAM,KAAK,OAAOC,CAAG;AAAA,EAC/C,GAEAI,IAAiBP;;","x_google_ignoreList":[0]}
|
package/dist/index101.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __exports as u } from "./index116.js";
|
|
2
|
+
import { __require as a } from "./index97.js";
|
|
3
|
+
var l;
|
|
4
|
+
function p() {
|
|
5
|
+
return l ? u : (l = 1, (function(s) {
|
|
6
|
+
const c = a().getSymbolSize;
|
|
7
|
+
s.getRowColCoords = function(r) {
|
|
8
|
+
if (r === 1) return [];
|
|
9
|
+
const i = Math.floor(r / 7) + 2, e = c(r), n = e === 145 ? 26 : Math.ceil((e - 13) / (2 * i - 2)) * 2, t = [e - 7];
|
|
10
|
+
for (let o = 1; o < i - 1; o++)
|
|
11
|
+
t[o] = t[o - 1] - n;
|
|
12
|
+
return t.push(6), t.reverse();
|
|
13
|
+
}, s.getPositions = function(r) {
|
|
14
|
+
const i = [], e = s.getRowColCoords(r), n = e.length;
|
|
15
|
+
for (let t = 0; t < n; t++)
|
|
16
|
+
for (let o = 0; o < n; o++)
|
|
17
|
+
t === 0 && o === 0 || // top-left
|
|
18
|
+
t === 0 && o === n - 1 || // bottom-left
|
|
19
|
+
t === n - 1 && o === 0 || i.push([e[t], e[o]]);
|
|
20
|
+
return i;
|
|
21
|
+
};
|
|
22
|
+
})(u), u);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
p as __require
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=index101.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index101.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js"],"sourcesContent":["/**\n * Alignment pattern are fixed reference pattern in defined positions\n * in a matrix symbology, which enables the decode software to re-synchronise\n * the coordinate mapping of the image modules in the event of moderate amounts\n * of distortion of the image.\n *\n * Alignment patterns are present only in QR Code symbols of version 2 or larger\n * and their number depends on the symbol version.\n */\n\nconst getSymbolSize = require('./utils').getSymbolSize\n\n/**\n * Calculate the row/column coordinates of the center module of each alignment pattern\n * for the specified QR Code version.\n *\n * The alignment patterns are positioned symmetrically on either side of the diagonal\n * running from the top left corner of the symbol to the bottom right corner.\n *\n * Since positions are simmetrical only half of the coordinates are returned.\n * Each item of the array will represent in turn the x and y coordinate.\n * @see {@link getPositions}\n *\n * @param {Number} version QR Code version\n * @return {Array} Array of coordinate\n */\nexports.getRowColCoords = function getRowColCoords (version) {\n if (version === 1) return []\n\n const posCount = Math.floor(version / 7) + 2\n const size = getSymbolSize(version)\n const intervals = size === 145 ? 26 : Math.ceil((size - 13) / (2 * posCount - 2)) * 2\n const positions = [size - 7] // Last coord is always (size - 7)\n\n for (let i = 1; i < posCount - 1; i++) {\n positions[i] = positions[i - 1] - intervals\n }\n\n positions.push(6) // First coord is always 6\n\n return positions.reverse()\n}\n\n/**\n * Returns an array containing the positions of each alignment pattern.\n * Each array's element represent the center point of the pattern as (x, y) coordinates\n *\n * Coordinates are calculated expanding the row/column coordinates returned by {@link getRowColCoords}\n * and filtering out the items that overlaps with finder pattern\n *\n * @example\n * For a Version 7 symbol {@link getRowColCoords} returns values 6, 22 and 38.\n * The alignment patterns, therefore, are to be centered on (row, column)\n * positions (6,22), (22,6), (22,22), (22,38), (38,22), (38,38).\n * Note that the coordinates (6,6), (6,38), (38,6) are occupied by finder patterns\n * and are not therefore used for alignment patterns.\n *\n * let pos = getPositions(7)\n * // [[6,22], [22,6], [22,22], [22,38], [38,22], [38,38]]\n *\n * @param {Number} version QR Code version\n * @return {Array} Array of coordinates\n */\nexports.getPositions = function getPositions (version) {\n const coords = []\n const pos = exports.getRowColCoords(version)\n const posLength = pos.length\n\n for (let i = 0; i < posLength; i++) {\n for (let j = 0; j < posLength; j++) {\n // Skip if position is occupied by finder patterns\n if ((i === 0 && j === 0) || // top-left\n (i === 0 && j === posLength - 1) || // bottom-left\n (i === posLength - 1 && j === 0)) { // top-right\n continue\n }\n\n coords.push([pos[i], pos[j]])\n }\n }\n\n return coords\n}\n"],"names":["getSymbolSize","require$$0","exports","version","posCount","size","intervals","positions","i","coords","pos","posLength","j"],"mappings":";;;;;AAUA,UAAMA,IAAgBC,IAAmB;AAgBzCC,IAAAA,EAAA,kBAA0B,SAA0BC,GAAS;AAC3D,UAAIA,MAAY,EAAG,QAAO,CAAA;AAE1B,YAAMC,IAAW,KAAK,MAAMD,IAAU,CAAC,IAAI,GACrCE,IAAOL,EAAcG,CAAO,GAC5BG,IAAYD,MAAS,MAAM,KAAK,KAAK,MAAMA,IAAO,OAAO,IAAID,IAAW,EAAE,IAAI,GAC9EG,IAAY,CAACF,IAAO,CAAC;AAE3B,eAASG,IAAI,GAAGA,IAAIJ,IAAW,GAAGI;AAChC,QAAAD,EAAUC,CAAC,IAAID,EAAUC,IAAI,CAAC,IAAIF;AAGpC,aAAAC,EAAU,KAAK,CAAC,GAETA,EAAU,QAAO;AAAA,IAC1B,GAsBAL,EAAA,eAAuB,SAAuBC,GAAS;AACrD,YAAMM,IAAS,CAAA,GACTC,IAAMR,EAAQ,gBAAgBC,CAAO,GACrCQ,IAAYD,EAAI;AAEtB,eAASF,IAAI,GAAGA,IAAIG,GAAWH;AAC7B,iBAASI,IAAI,GAAGA,IAAID,GAAWC;AAE7B,UAAKJ,MAAM,KAAKI,MAAM;AAAA,UACjBJ,MAAM,KAAKI,MAAMD,IAAY;AAAA,UAC7BH,MAAMG,IAAY,KAAKC,MAAM,KAIlCH,EAAO,KAAK,CAACC,EAAIF,CAAC,GAAGE,EAAIE,CAAC,CAAC,CAAC;AAIhC,aAAOH;AAAA,IACT;AAAA;;","x_google_ignoreList":[0]}
|
package/dist/index102.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __exports as e } from "./index117.js";
|
|
2
|
+
import { __require as s } from "./index97.js";
|
|
3
|
+
var i;
|
|
4
|
+
function f() {
|
|
5
|
+
if (i) return e;
|
|
6
|
+
i = 1;
|
|
7
|
+
const n = s().getSymbolSize, r = 7;
|
|
8
|
+
return e.getPositions = function(o) {
|
|
9
|
+
const t = n(o);
|
|
10
|
+
return [
|
|
11
|
+
// top-left
|
|
12
|
+
[0, 0],
|
|
13
|
+
// top-right
|
|
14
|
+
[t - r, 0],
|
|
15
|
+
// bottom-left
|
|
16
|
+
[0, t - r]
|
|
17
|
+
];
|
|
18
|
+
}, e;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
f as __require
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index102.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index102.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js"],"sourcesContent":["const getSymbolSize = require('./utils').getSymbolSize\nconst FINDER_PATTERN_SIZE = 7\n\n/**\n * Returns an array containing the positions of each finder pattern.\n * Each array's element represent the top-left point of the pattern as (x, y) coordinates\n *\n * @param {Number} version QR Code version\n * @return {Array} Array of coordinates\n */\nexports.getPositions = function getPositions (version) {\n const size = getSymbolSize(version)\n\n return [\n // top-left\n [0, 0],\n // top-right\n [size - FINDER_PATTERN_SIZE, 0],\n // bottom-left\n [0, size - FINDER_PATTERN_SIZE]\n ]\n}\n"],"names":["getSymbolSize","require$$0","FINDER_PATTERN_SIZE","finderPattern","version","size"],"mappings":";;;;;;AAAA,QAAMA,IAAgBC,IAAmB,eACnCC,IAAsB;AAS5B,SAAAC,EAAA,eAAuB,SAAuBC,GAAS;AACrD,UAAMC,IAAOL,EAAcI,CAAO;AAElC,WAAO;AAAA;AAAA,MAEL,CAAC,GAAG,CAAC;AAAA;AAAA,MAEL,CAACC,IAAOH,GAAqB,CAAC;AAAA;AAAA,MAE9B,CAAC,GAAGG,IAAOH,CAAmB;AAAA,IAClC;AAAA,EACA;;","x_google_ignoreList":[0]}
|