@dynamic-framework/ui-react 2.0.0-dev.21 → 2.0.0-dev.22
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/css/dynamic-ui-non-root.css +3 -2
- package/dist/css/dynamic-ui-non-root.min.css +3 -3
- package/dist/css/dynamic-ui-root.css +2 -2
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +3 -2
- package/dist/css/dynamic-ui.min.css +3 -3
- package/dist/index.esm.js +84 -12
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +84 -12
- package/dist/index.js.map +1 -1
- package/dist/types/components/DButton/DButton.d.ts +4 -1
- package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +5 -2
- package/dist/types/components/DVoucher/DVoucher.d.ts +5 -4
- package/package.json +2 -2
- package/src/style/components/_d-voucher.scss +1 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { type ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import type { BaseProps, ButtonVariant, ComponentColor, ComponentSize, EndIconProps, StartIconProps } from '../interface';
|
|
3
3
|
interface Props extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, BaseProps, StartIconProps, EndIconProps {
|
|
4
|
+
href?: string;
|
|
5
|
+
target?: React.AnchorHTMLAttributes<HTMLAnchorElement>['target'];
|
|
6
|
+
rel?: React.AnchorHTMLAttributes<HTMLAnchorElement>['rel'];
|
|
4
7
|
color?: ComponentColor;
|
|
5
8
|
size?: ComponentSize;
|
|
6
9
|
variant?: ButtonVariant;
|
|
@@ -9,5 +12,5 @@ interface Props extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>,
|
|
|
9
12
|
loadingText?: string;
|
|
10
13
|
loadingAriaLabel?: string;
|
|
11
14
|
}
|
|
12
|
-
declare const DButton: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
declare const DButton: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
13
16
|
export default DButton;
|
|
@@ -13,7 +13,10 @@ type Props = BaseProps & FamilyIconProps & {
|
|
|
13
13
|
ariaLabel?: string;
|
|
14
14
|
stopPropagationEnabled?: boolean;
|
|
15
15
|
disabled?: boolean;
|
|
16
|
-
|
|
16
|
+
href?: string;
|
|
17
|
+
target?: React.AnchorHTMLAttributes<HTMLAnchorElement>['target'];
|
|
18
|
+
rel?: React.AnchorHTMLAttributes<HTMLAnchorElement>['rel'];
|
|
19
|
+
onClick?: (event: MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
17
20
|
};
|
|
18
|
-
export default function DButtonIcon({ id, icon, size, className, variant, state, loadingAriaLabel, iconMaterialStyle, ariaLabel, color, type, loading, disabled, stopPropagationEnabled, style, iconFamilyClass, iconFamilyPrefix, dataAttributes, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default function DButtonIcon({ id, icon, size, className, variant, state, loadingAriaLabel, iconMaterialStyle, ariaLabel, color, type, loading, disabled, href, target, rel, stopPropagationEnabled, style, iconFamilyClass, iconFamilyPrefix, dataAttributes, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
22
|
export {};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
1
|
+
import { ComponentProps, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import DIcon from '../DIcon';
|
|
2
3
|
type Props = PropsWithChildren<{
|
|
3
4
|
amount?: string;
|
|
4
5
|
amountDetails?: ReactNode;
|
|
5
|
-
icon?: string
|
|
6
|
-
|
|
6
|
+
icon?: false | null | string | Partial<ComponentProps<typeof DIcon>>;
|
|
7
|
+
className?: string;
|
|
7
8
|
message: string;
|
|
8
9
|
title: string;
|
|
9
10
|
downloadText?: string;
|
|
10
11
|
shareText?: string;
|
|
11
12
|
onError?: (err: Error) => Promise<void> | void;
|
|
12
13
|
}>;
|
|
13
|
-
export default function DVoucher({ amount, amountDetails, icon,
|
|
14
|
+
export default function DVoucher({ amount, amountDetails, icon, title, onError, message, downloadText, shareText, className, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export {};
|
package/package.json
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"sideEffects": [
|
|
4
4
|
"*.css"
|
|
5
5
|
],
|
|
6
|
-
"version": "2.0.0-dev.
|
|
6
|
+
"version": "2.0.0-dev.22",
|
|
7
7
|
"description": "React Dynamic Framework",
|
|
8
|
-
"license": "https://github.com/dynamic-framework/dynamic-ui/blob/master/
|
|
8
|
+
"license": "https://github.com/dynamic-framework/dynamic-ui/blob/master/LICENSE.md",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/dynamic-framework/dynamic-ui.git"
|