@mparticle/aquarium 1.3.3 → 1.3.4
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/data-display/Avatar/Avatar.d.ts +4 -0
- package/dist/components/data-display/Badge/Badge.d.ts +4 -0
- package/dist/components/data-display/Calendar/Calendar.d.ts +4 -0
- package/dist/components/data-display/Card/Card.d.ts +4 -0
- package/dist/components/data-display/Carousel/Carousel.d.ts +4 -0
- package/dist/components/data-display/Collapse/Collapse.d.ts +4 -0
- package/dist/components/data-display/Descriptions/Descriptions.d.ts +4 -0
- package/dist/components/data-display/Empty/Empty.d.ts +9 -0
- package/dist/components/data-display/Image/Image.d.ts +4 -0
- package/dist/components/data-display/List/List.d.ts +7 -0
- package/dist/components/data-display/Popover/Popover.d.ts +4 -0
- package/dist/components/data-display/QRCode/QRCode.d.ts +4 -0
- package/dist/components/data-display/Segmented/Segmented.d.ts +6 -0
- package/dist/components/data-display/Statistic/Statistic.d.ts +4 -0
- package/dist/components/data-display/Table/Table.d.ts +4 -0
- package/dist/components/data-display/Tabs/Tabs.d.ts +4 -0
- package/dist/components/data-display/Tag/Tag.d.ts +4 -0
- package/dist/components/data-display/Timeline/Timeline.d.ts +4 -0
- package/dist/components/data-display/Tooltip/Tooltip.d.ts +4 -0
- package/dist/components/data-display/Tour/Tour.d.ts +4 -0
- package/dist/components/data-display/Tree/Tree.d.ts +4 -0
- package/dist/components/data-entry/AutoComplete/AutoComplete.d.ts +4 -0
- package/dist/components/data-entry/Cascader/Cascader.d.ts +10 -0
- package/dist/components/data-entry/Checkbox/Checkbox.d.ts +8 -0
- package/dist/components/data-entry/ColorPicker/ColorPicker.d.ts +4 -0
- package/dist/components/data-entry/DatePicker/DatePicker.d.ts +7 -0
- package/dist/components/data-entry/Form/Form.d.ts +6 -0
- package/dist/components/data-entry/Input/Input.d.ts +11 -0
- package/dist/components/data-entry/InputNumber/InputNumber.d.ts +4 -0
- package/dist/components/data-entry/Mentions/Mentions.d.ts +4 -0
- package/dist/components/data-entry/Radio/Radio.d.ts +9 -0
- package/dist/components/data-entry/Rate/Rate.d.ts +4 -0
- package/dist/components/data-entry/Select/Select.d.ts +5 -0
- package/dist/components/data-entry/Slider/Slider.d.ts +4 -0
- package/dist/components/data-entry/Switch/Switch.d.ts +4 -0
- package/dist/components/data-entry/TimePicker/TimePicker.d.ts +4 -0
- package/dist/components/data-entry/Transfer/Transfer.d.ts +4 -0
- package/dist/components/data-entry/TreeSelect/TreeSelect.d.ts +4 -0
- package/dist/components/data-entry/Upload/Upload.d.ts +4 -0
- package/dist/components/feedback/Alert/Alert.d.ts +7 -0
- package/dist/components/feedback/Drawer/Drawer.d.ts +4 -0
- package/dist/components/feedback/LoadingModal/LoadingModal.d.ts +7 -0
- package/dist/components/feedback/Message/Message.d.ts +6 -0
- package/dist/components/feedback/Modal/Modal.d.ts +4 -0
- package/dist/components/feedback/Notification/Notification.d.ts +6 -0
- package/dist/components/feedback/Popconfirm/Popconfirm.d.ts +4 -0
- package/dist/components/feedback/Progress/Progress.d.ts +4 -0
- package/dist/components/feedback/Result/Result.d.ts +4 -0
- package/dist/components/feedback/Skeleton/Skeleton.d.ts +4 -0
- package/dist/components/feedback/Spin/Spin.d.ts +4 -0
- package/dist/components/feedback/Watermark/Watermark.d.ts +4 -0
- package/dist/components/general/Button/Button.d.ts +4 -0
- package/dist/components/general/FloatButton/FloatButton.d.ts +4 -0
- package/dist/components/general/Icon/Icon.d.ts +5 -0
- package/dist/components/index.d.ts +68 -0
- package/dist/components/layout/Divider/Divider.d.ts +4 -0
- package/dist/components/layout/Flex/Flex.d.ts +4 -0
- package/dist/components/layout/Grid/Grid.d.ts +2 -0
- package/dist/components/layout/Layout/Layout.d.ts +11 -0
- package/dist/components/layout/Space/Space.d.ts +4 -0
- package/dist/components/navigation/Anchor/Anchor.d.ts +4 -0
- package/dist/components/navigation/Breadcrumb/Breadcrumb.d.ts +4 -0
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +8 -0
- package/dist/components/navigation/Menu/Menu.d.ts +7 -0
- package/dist/components/navigation/Pagination/Pagination.d.ts +4 -0
- package/dist/components/navigation/Steps/Steps.d.ts +4 -0
- package/dist/components/other/Affix/Affix.d.ts +4 -0
- package/dist/components/other/App/App.d.ts +4 -0
- package/dist/components/other/ConfigProvider/ConfigProvider.d.ts +4 -0
- package/package.json +10 -5
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { EmptyProps as AntEmptyProps } from "antd";
|
|
3
|
+
export interface IEmptyProps extends AntEmptyProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const Empty: {
|
|
6
|
+
(props: IEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
PRESENTED_IMAGE_DEFAULT: import("react").ReactNode;
|
|
8
|
+
PRESENTED_IMAGE_SIMPLE: import("react").ReactNode;
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ListProps as AntListProps } from "antd";
|
|
2
|
+
export interface IListProps<T> extends AntListProps<T> {
|
|
3
|
+
}
|
|
4
|
+
export declare const List: {
|
|
5
|
+
<T extends unknown>(props: IListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
Item: import("antd/es/list/Item").ListItemTypeProps;
|
|
7
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SegmentedProps as AntSegmentedProps } from "antd";
|
|
3
|
+
export interface ISegmentedProps extends AntSegmentedProps {
|
|
4
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
5
|
+
}
|
|
6
|
+
export declare const Segmented: (props: ISegmentedProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CascaderProps as AntCascaderProps } from "antd";
|
|
3
|
+
import { BaseOptionType } from "antd/es/select";
|
|
4
|
+
export type ICascaderProps<DataNodeType extends BaseOptionType = any> = AntCascaderProps<DataNodeType>;
|
|
5
|
+
export declare const Cascader: {
|
|
6
|
+
(props: ICascaderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Panel: import("react").FC<import("antd/es/cascader/Panel").CascaderPanelProps>;
|
|
8
|
+
SHOW_PARENT: "SHOW_PARENT";
|
|
9
|
+
SHOW_CHILD: "SHOW_CHILD";
|
|
10
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CheckboxProps as AntCheckboxProps } from "antd";
|
|
3
|
+
export interface ICheckboxProps extends AntCheckboxProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const Checkbox: {
|
|
6
|
+
(props: ICheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Group: <T extends import("antd/es/checkbox/Group").CheckboxValueType = import("antd/es/checkbox/Group").CheckboxValueType>(props: import("antd/es/checkbox").CheckboxGroupProps<T> & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PickerDateProps } from "antd/es/date-picker/generatePicker";
|
|
2
|
+
import { Dayjs } from "dayjs";
|
|
3
|
+
type AntDatePickerProps = PickerDateProps<Dayjs>;
|
|
4
|
+
export interface IDatePickerProps extends AntDatePickerProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const DatePicker: (props: IDatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InputProps as AntInputProps } from "antd";
|
|
3
|
+
export interface IInputProps extends AntInputProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const Input: {
|
|
6
|
+
(props: IInputProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Group: import("react").FC<import("antd/es/input").GroupProps>;
|
|
8
|
+
Password: import("react").ForwardRefExoticComponent<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef>>;
|
|
9
|
+
Search: import("react").ForwardRefExoticComponent<import("antd/es/input").SearchProps & import("react").RefAttributes<import("antd").InputRef>>;
|
|
10
|
+
TextArea: import("react").ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RadioProps as AntRadioProps } from "antd";
|
|
3
|
+
export interface IRadioProps extends AntRadioProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const Radio: {
|
|
6
|
+
(props: IRadioProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Group: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("antd").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
8
|
+
Button: import("react").ForwardRefExoticComponent<import("antd/es/radio/radioButton").RadioButtonProps & import("react").RefAttributes<import("rc-checkbox").CheckboxRef>>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SelectProps as AntSelectProps } from "antd";
|
|
2
|
+
import { BaseOptionType, DefaultOptionType } from "antd/es/select";
|
|
3
|
+
export interface ISelectProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends AntSelectProps<ValueType, OptionType> {
|
|
4
|
+
}
|
|
5
|
+
export declare const Select: (props: ISelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SliderRangeProps as SliderRangeProps } from "antd/es/slider";
|
|
2
|
+
import { SliderSingleProps } from "antd/es/slider";
|
|
3
|
+
export type ISliderProps = SliderSingleProps | SliderRangeProps;
|
|
4
|
+
export declare const Slider: (props: ISliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AlertProps as AntAlertProps } from "antd";
|
|
2
|
+
export interface IAlertProps extends AntAlertProps {
|
|
3
|
+
}
|
|
4
|
+
export declare const Alert: {
|
|
5
|
+
(props: IAlertProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IModalProps } from '../../../../../../../../../src/components/feedback/Modal/Modal';
|
|
3
|
+
export interface ILoadingModalProps<Data> extends Omit<IModalProps, "children"> {
|
|
4
|
+
fetchData(): Promise<Data>;
|
|
5
|
+
children(initData: Data): React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function LoadingModal<Data>(props: ILoadingModalProps<Data>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MessageArgsProps as AntMessageArgsProps } from "antd";
|
|
3
|
+
export interface IMessageProps extends AntMessageArgsProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const Message: (props: IMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NotificationArgsProps } from "antd";
|
|
3
|
+
export interface INotificationProps extends NotificationArgsProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const Notification: (props: INotificationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export * from "./general/Button/Button";
|
|
2
|
+
export * from "./general/Icon/Icon";
|
|
3
|
+
export * from "./general/FloatButton/FloatButton";
|
|
4
|
+
export * from "./data-entry/Rate/Rate";
|
|
5
|
+
export * from "./data-entry/Form/Form";
|
|
6
|
+
export * from "./data-entry/TreeSelect/TreeSelect";
|
|
7
|
+
export * from "./data-entry/Select/Select";
|
|
8
|
+
export * from "./data-entry/Mentions/Mentions";
|
|
9
|
+
export * from "./data-entry/Radio/Radio";
|
|
10
|
+
export * from "./data-entry/ColorPicker/ColorPicker";
|
|
11
|
+
export * from "./data-entry/Slider/Slider";
|
|
12
|
+
export * from "./data-entry/Cascader/Cascader";
|
|
13
|
+
export * from "./data-entry/DatePicker/DatePicker";
|
|
14
|
+
export * from "./data-entry/Checkbox/Checkbox";
|
|
15
|
+
export * from "./data-entry/Input/Input";
|
|
16
|
+
export * from "./data-entry/InputNumber/InputNumber";
|
|
17
|
+
export * from "./data-entry/Switch/Switch";
|
|
18
|
+
export * from "./data-entry/Upload/Upload";
|
|
19
|
+
export * from "./data-entry/AutoComplete/AutoComplete";
|
|
20
|
+
export * from "./data-entry/TimePicker/TimePicker";
|
|
21
|
+
export * from "./data-entry/Transfer/Transfer";
|
|
22
|
+
export * from "./data-display/Collapse/Collapse";
|
|
23
|
+
export * from "./data-display/Timeline/Timeline";
|
|
24
|
+
export * from "./data-display/Calendar/Calendar";
|
|
25
|
+
export * from "./data-display/Segmented/Segmented";
|
|
26
|
+
export * from "./data-display/Tabs/Tabs";
|
|
27
|
+
export * from "./data-display/Tag/Tag";
|
|
28
|
+
export * from "./data-display/Tour/Tour";
|
|
29
|
+
export * from "./data-display/Carousel/Carousel";
|
|
30
|
+
export * from "./data-display/Tooltip/Tooltip";
|
|
31
|
+
export * from "./data-display/Statistic/Statistic";
|
|
32
|
+
export * from "./data-display/Tree/Tree";
|
|
33
|
+
export * from "./data-display/Image/Image";
|
|
34
|
+
export * from "./data-display/QRCode/QRCode";
|
|
35
|
+
export * from "./data-display/Badge/Badge";
|
|
36
|
+
export * from "./data-display/Card/Card";
|
|
37
|
+
export * from "./data-display/Avatar/Avatar";
|
|
38
|
+
export * from "./data-display/Descriptions/Descriptions";
|
|
39
|
+
export * from "./data-display/Table/Table";
|
|
40
|
+
export * from "./data-display/Empty/Empty";
|
|
41
|
+
export * from "./data-display/Popover/Popover";
|
|
42
|
+
export * from "./data-display/List/List";
|
|
43
|
+
export * from "./feedback/Progress/Progress";
|
|
44
|
+
export * from "./feedback/Result/Result";
|
|
45
|
+
export * from "./feedback/Spin/Spin";
|
|
46
|
+
export * from "./feedback/Skeleton/Skeleton";
|
|
47
|
+
export * from "./feedback/Watermark/Watermark";
|
|
48
|
+
export * from "./feedback/Popconfirm/Popconfirm";
|
|
49
|
+
export * from "./feedback/Drawer/Drawer";
|
|
50
|
+
export * from "./feedback/Modal/Modal";
|
|
51
|
+
export * from "./feedback/Notification/Notification";
|
|
52
|
+
export * from "./feedback/Alert/Alert";
|
|
53
|
+
export * from "./feedback/Message/Message";
|
|
54
|
+
export * from "./feedback/LoadingModal/LoadingModal";
|
|
55
|
+
export * from "./layout/Flex/Flex";
|
|
56
|
+
export * from "./layout/Divider/Divider";
|
|
57
|
+
export * from "./layout/Space/Space";
|
|
58
|
+
export * from "./layout/Layout/Layout";
|
|
59
|
+
export * from "./layout/Grid/Grid";
|
|
60
|
+
export * from "./navigation/Steps/Steps";
|
|
61
|
+
export * from "./navigation/Anchor/Anchor";
|
|
62
|
+
export * from "./navigation/Dropdown/Dropdown";
|
|
63
|
+
export * from "./navigation/Breadcrumb/Breadcrumb";
|
|
64
|
+
export * from "./navigation/Pagination/Pagination";
|
|
65
|
+
export * from "./navigation/Menu/Menu";
|
|
66
|
+
export * from "./other/ConfigProvider/ConfigProvider";
|
|
67
|
+
export * from "./other/Affix/Affix";
|
|
68
|
+
export * from "./other/App/App";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LayoutProps as AntLayoutProps } from "antd";
|
|
3
|
+
export interface ILayoutProps extends AntLayoutProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const Layout: {
|
|
6
|
+
(props: ILayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Sider: import("react").ForwardRefExoticComponent<import("antd").SiderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Footer: import("react").ForwardRefExoticComponent<AntLayoutProps & import("react").RefAttributes<HTMLElement>>;
|
|
9
|
+
Content: import("react").ForwardRefExoticComponent<AntLayoutProps & import("react").RefAttributes<HTMLElement>>;
|
|
10
|
+
Header: import("react").ForwardRefExoticComponent<AntLayoutProps & import("react").RefAttributes<HTMLElement>>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DropdownProps as AntDropdownProps } from "antd";
|
|
3
|
+
export interface IDropdownProps extends AntDropdownProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const Dropdown: {
|
|
6
|
+
(props: IDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Button: import("react").FC<import("antd/es/dropdown").DropdownButtonProps>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuProps as AntMenuProps } from "antd";
|
|
2
|
+
import AntMenuItem from "antd/es/menu/MenuItem";
|
|
3
|
+
import { type MenuItemType as AndMenuItemType, type MenuItemGroupType as AndMenuItemGroupType, type MenuDividerType as AndMenuDividerType, type SubMenuType as AndSubMenuType } from "antd/es/menu/hooks/useItems";
|
|
4
|
+
export interface IMenuProps extends AntMenuProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const Menu: (props: IMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { AntMenuItem as MenuItem, type AndMenuItemType as MenuItemType, type AndMenuItemGroupType as MenuItemGroupType, type AndMenuDividerType as MenuDividerType, type AndSubMenuType as SubMenuType, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ConfigProviderProps as AntConfigProviderProps } from "antd/es/config-provider";
|
|
2
|
+
export interface IConfigProviderProps extends AntConfigProviderProps {
|
|
3
|
+
}
|
|
4
|
+
export declare const ConfigProvider: (props: IConfigProviderProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mparticle/aquarium",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "mParticle Component Library",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"main": "dist/aquarium.mjs",
|
|
17
17
|
"files": [
|
|
18
18
|
"dist/aquarium.mjs",
|
|
19
|
-
"dist/index.d.ts"
|
|
19
|
+
"dist/index.d.ts",
|
|
20
|
+
"dist/components"
|
|
20
21
|
],
|
|
21
22
|
"dependencies": {
|
|
22
23
|
"@fortawesome/fontawesome-svg-core": "6.5.1",
|
|
@@ -25,11 +26,10 @@
|
|
|
25
26
|
"antd": "5.13.1",
|
|
26
27
|
"react": "18.2.0",
|
|
27
28
|
"react-dom": "18.2.0",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
29
|
+
"typescript": "5.3.3",
|
|
30
|
+
"storybook": "7.6.9"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
|
-
"@rollup/rollup-linux-x64-gnu": "^4.9.5",
|
|
33
33
|
"@storybook/addon-essentials": "7.6.9",
|
|
34
34
|
"@storybook/addon-interactions": "7.6.9",
|
|
35
35
|
"@storybook/addon-links": "7.6.9",
|
|
@@ -49,6 +49,11 @@
|
|
|
49
49
|
"vite-plugin-dts": "3.7.1",
|
|
50
50
|
"wait-on": "7.2.0"
|
|
51
51
|
},
|
|
52
|
+
"optionalDependencies": {
|
|
53
|
+
"@rollup/rollup-linux-x64-gnu": "4.9.5",
|
|
54
|
+
"@swc/core-linux-x64-gnu": "1.3.104",
|
|
55
|
+
"@swc/core-linux-x64-musl": "1.3.104"
|
|
56
|
+
},
|
|
52
57
|
"scripts": {
|
|
53
58
|
"storybook": "storybook dev -p 6006",
|
|
54
59
|
"test-storybook": "test-storybook",
|