@antscorp/antsomi-ui 1.3.2-beta.15 → 1.3.2-beta.17

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.
@@ -4,7 +4,7 @@ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Partial<{
4
4
  href: string;
5
5
  target?: string | undefined;
6
6
  onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
7
- } & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
7
+ } & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "type" | "onClick"> & {
8
8
  htmlType?: "button" | "reset" | "submit" | undefined;
9
9
  onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
10
10
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
@@ -15,7 +15,7 @@ export declare const Default: ComponentStory<React.ForwardRefExoticComponent<Par
15
15
  href: string;
16
16
  target?: string | undefined;
17
17
  onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
18
- } & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
18
+ } & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "type" | "onClick"> & {
19
19
  htmlType?: "button" | "reset" | "submit" | undefined;
20
20
  onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
21
21
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
@@ -2,7 +2,7 @@ export declare const Button: import("react").ForwardRefExoticComponent<Partial<{
2
2
  href: string;
3
3
  target?: string | undefined;
4
4
  onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
5
- } & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
5
+ } & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "type" | "onClick"> & {
6
6
  htmlType?: "button" | "reset" | "submit" | undefined;
7
7
  onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
8
8
  } & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
@@ -4,7 +4,7 @@ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Partial<{
4
4
  href: string;
5
5
  target?: string | undefined;
6
6
  onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
7
- } & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
7
+ } & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "type" | "onClick"> & {
8
8
  htmlType?: "button" | "reset" | "submit" | undefined;
9
9
  onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
10
10
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
@@ -15,7 +15,7 @@ export declare const Basic: ComponentStory<React.ForwardRefExoticComponent<Parti
15
15
  href: string;
16
16
  target?: string | undefined;
17
17
  onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
18
- } & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
18
+ } & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "type" | "onClick"> & {
19
19
  htmlType?: "button" | "reset" | "submit" | undefined;
20
20
  onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
21
21
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
@@ -4,7 +4,7 @@ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Partial<{
4
4
  href: string;
5
5
  target?: string | undefined;
6
6
  onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
7
- } & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
7
+ } & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "type" | "onClick"> & {
8
8
  htmlType?: "button" | "reset" | "submit" | undefined;
9
9
  onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
10
10
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
@@ -15,7 +15,7 @@ export declare const Basic: ComponentStory<React.ForwardRefExoticComponent<Parti
15
15
  href: string;
16
16
  target?: string | undefined;
17
17
  onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
18
- } & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
18
+ } & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "type" | "onClick"> & {
19
19
  htmlType?: "button" | "reset" | "submit" | undefined;
20
20
  onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
21
21
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './type';
3
+ export declare const LocalMallIcon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
@@ -51,3 +51,4 @@ export { Redeem } from './Redeem';
51
51
  export { Preview } from './Preview';
52
52
  export { Interactive } from './Interactive';
53
53
  export { Web } from './Web';
54
+ export { LocalMallIcon } from './LocalMallIcon';
@@ -1,3 +1,3 @@
1
1
  import { TAlign } from './index';
2
- export declare const mapAlignToJustifyContent: (value: TAlign) => "auto" | "center" | "end" | "start";
2
+ export declare const mapAlignToJustifyContent: (value: TAlign) => "center" | "auto" | "end" | "start";
3
3
  export declare const mapJustifyContentToAlign: (value: 'start' | 'end' | 'center') => string | undefined;
@@ -4,7 +4,7 @@ export declare const ButtonPreset: import("styled-components").StyledComponent<i
4
4
  href: string;
5
5
  target?: string | undefined;
6
6
  onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
7
- } & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
7
+ } & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "type" | "onClick"> & {
8
8
  htmlType?: "button" | "reset" | "submit" | undefined;
9
9
  onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
10
10
  } & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
@@ -1,2 +1,10 @@
1
- import { IconSelectionRendererProps } from '../../types';
2
- export declare const IconSelectionRenderer: (props: IconSelectionRendererProps) => JSX.Element | null;
1
+ import React from 'react';
2
+ export declare const IconSelectionRenderer: React.ForwardRefExoticComponent<(({
3
+ iconType: "cus";
4
+ } & Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
5
+ iconName: string;
6
+ }) | Omit<{
7
+ iconType: "font-awesome";
8
+ } & Omit<import("@fortawesome/react-fontawesome").FontAwesomeIconProps, "icon"> & {
9
+ iconName: string;
10
+ }, "ref">) & React.RefAttributes<unknown>>;
@@ -1,6 +1,30 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { ComponentMeta, ComponentStory } from '@storybook/react';
3
- declare const _default: ComponentMeta<(props: import("../../types").IconSelectionRendererProps) => JSX.Element | null>;
3
+ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<(({
4
+ iconType: "cus";
5
+ } & Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
6
+ iconName: string;
7
+ }) | Omit<{
8
+ iconType: "font-awesome";
9
+ } & Omit<import("@fortawesome/react-fontawesome").FontAwesomeIconProps, "icon"> & {
10
+ iconName: string;
11
+ }, "ref">) & React.RefAttributes<unknown>>>;
4
12
  export default _default;
5
- export declare const MUIIcon: ComponentStory<(props: import("../../types").IconSelectionRendererProps) => JSX.Element | null>;
6
- export declare const FontawesomeIcon: ComponentStory<(props: import("../../types").IconSelectionRendererProps) => JSX.Element | null>;
13
+ export declare const MUIIcon: ComponentStory<React.ForwardRefExoticComponent<(({
14
+ iconType: "cus";
15
+ } & Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
16
+ iconName: string;
17
+ }) | Omit<{
18
+ iconType: "font-awesome";
19
+ } & Omit<import("@fortawesome/react-fontawesome").FontAwesomeIconProps, "icon"> & {
20
+ iconName: string;
21
+ }, "ref">) & React.RefAttributes<unknown>>>;
22
+ export declare const FontawesomeIcon: ComponentStory<React.ForwardRefExoticComponent<(({
23
+ iconType: "cus";
24
+ } & Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
25
+ iconName: string;
26
+ }) | Omit<{
27
+ iconType: "font-awesome";
28
+ } & Omit<import("@fortawesome/react-fontawesome").FontAwesomeIconProps, "icon"> & {
29
+ iconName: string;
30
+ }, "ref">) & React.RefAttributes<unknown>>>;
@@ -5,7 +5,7 @@ export declare const CustomButton: import("styled-components").StyledComponent<i
5
5
  href: string;
6
6
  target?: string | undefined;
7
7
  onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
8
- } & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
8
+ } & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "type" | "onClick"> & {
9
9
  htmlType?: "button" | "reset" | "submit" | undefined;
10
10
  onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
11
11
  } & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
@@ -9,6 +9,7 @@ export interface IconSelectionProps {
9
9
  searchPlaceholder?: string;
10
10
  onChange?: (icon: string) => void;
11
11
  onRemoveIcon?: () => void;
12
+ onChangeSvg?: Function;
12
13
  icon?: string;
13
14
  isOpen?: boolean;
14
15
  iconTypes?: IconType[];
@@ -7,7 +7,7 @@ export declare const ButtonFeedback: import("styled-components").StyledComponent
7
7
  href: string;
8
8
  target?: string | undefined;
9
9
  onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
10
- } & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
10
+ } & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "type" | "onClick"> & {
11
11
  htmlType?: "button" | "reset" | "submit" | undefined;
12
12
  onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
13
13
  } & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IconProps } from './type';
3
+ export declare const LocalMallIcon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
@@ -51,3 +51,4 @@ export { Redeem } from './Redeem';
51
51
  export { Preview } from './Preview';
52
52
  export { Interactive } from './Interactive';
53
53
  export { Web } from './Web';
54
+ export { LocalMallIcon } from './LocalMallIcon';
@@ -1,2 +1,10 @@
1
- import { IconSelectionRendererProps } from '../../types';
2
- export declare const IconSelectionRenderer: (props: IconSelectionRendererProps) => JSX.Element | null;
1
+ import React from 'react';
2
+ export declare const IconSelectionRenderer: React.ForwardRefExoticComponent<(({
3
+ iconType: "cus";
4
+ } & Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
5
+ iconName: string;
6
+ }) | Omit<{
7
+ iconType: "font-awesome";
8
+ } & Omit<import("@fortawesome/react-fontawesome").FontAwesomeIconProps, "icon"> & {
9
+ iconName: string;
10
+ }, "ref">) & React.RefAttributes<unknown>>;
@@ -1,6 +1,30 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { ComponentMeta, ComponentStory } from '@storybook/react';
3
- declare const _default: ComponentMeta<(props: import("../../types").IconSelectionRendererProps) => JSX.Element | null>;
3
+ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<(({
4
+ iconType: "cus";
5
+ } & Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
6
+ iconName: string;
7
+ }) | Omit<{
8
+ iconType: "font-awesome";
9
+ } & Omit<import("@fortawesome/react-fontawesome").FontAwesomeIconProps, "icon"> & {
10
+ iconName: string;
11
+ }, "ref">) & React.RefAttributes<unknown>>>;
4
12
  export default _default;
5
- export declare const MUIIcon: ComponentStory<(props: import("../../types").IconSelectionRendererProps) => JSX.Element | null>;
6
- export declare const FontawesomeIcon: ComponentStory<(props: import("../../types").IconSelectionRendererProps) => JSX.Element | null>;
13
+ export declare const MUIIcon: ComponentStory<React.ForwardRefExoticComponent<(({
14
+ iconType: "cus";
15
+ } & Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
16
+ iconName: string;
17
+ }) | Omit<{
18
+ iconType: "font-awesome";
19
+ } & Omit<import("@fortawesome/react-fontawesome").FontAwesomeIconProps, "icon"> & {
20
+ iconName: string;
21
+ }, "ref">) & React.RefAttributes<unknown>>>;
22
+ export declare const FontawesomeIcon: ComponentStory<React.ForwardRefExoticComponent<(({
23
+ iconType: "cus";
24
+ } & Omit<React.SVGProps<SVGSVGElement>, "ref"> & {
25
+ iconName: string;
26
+ }) | Omit<{
27
+ iconType: "font-awesome";
28
+ } & Omit<import("@fortawesome/react-fontawesome").FontAwesomeIconProps, "icon"> & {
29
+ iconName: string;
30
+ }, "ref">) & React.RefAttributes<unknown>>>;
@@ -9,6 +9,7 @@ export interface IconSelectionProps {
9
9
  searchPlaceholder?: string;
10
10
  onChange?: (icon: string) => void;
11
11
  onRemoveIcon?: () => void;
12
+ onChangeSvg?: Function;
12
13
  icon?: string;
13
14
  isOpen?: boolean;
14
15
  iconTypes?: IconType[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.2-beta.15",
3
+ "version": "1.3.2-beta.17",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "main": "dist/index.js",
6
6
  "files": [