@dynamic-framework/ui-react 1.33.0 → 1.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/dynamic-ui-non-root.css +5 -3
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +1 -1
- package/dist/css/dynamic-ui-root.min.css +1 -1
- package/dist/css/dynamic-ui.css +5 -3
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +106 -25
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +114 -23
- package/dist/index.js.map +1 -1
- package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +4 -9
- package/dist/types/contexts/DContext.d.ts +9 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useMediaBreakpointUp.d.ts +6 -0
- package/dist/types/hooks/useMediaQuery.d.ts +1 -0
- package/dist/types/utils/getCssVariable.d.ts +1 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/mediaQuery.d.ts +2 -0
- package/package.json +1 -1
- package/src/style/components/_d-quick-action-button.scss +4 -2
|
@@ -2,11 +2,8 @@ import type { BaseProps } from '../interface';
|
|
|
2
2
|
type Props = BaseProps & {
|
|
3
3
|
line1: string;
|
|
4
4
|
line2: string;
|
|
5
|
-
actionLinkText?: string;
|
|
6
|
-
actionLinkTheme?: string;
|
|
7
5
|
actionIcon?: string;
|
|
8
|
-
|
|
9
|
-
secondaryActionAriaLabel?: string;
|
|
6
|
+
actionIconTheme?: string;
|
|
10
7
|
actionIconFamilyClass?: string;
|
|
11
8
|
actionIconFamilyPrefix?: string;
|
|
12
9
|
representativeImage?: string;
|
|
@@ -15,11 +12,9 @@ type Props = BaseProps & {
|
|
|
15
12
|
representativeIconHasCircle?: boolean;
|
|
16
13
|
representativeIconFamilyClass?: string;
|
|
17
14
|
representativeIconFamilyPrefix?: string;
|
|
15
|
+
href?: string;
|
|
16
|
+
hrefTarget?: string;
|
|
18
17
|
onClick?: () => void;
|
|
19
|
-
onClickSecondary?: () => void;
|
|
20
18
|
};
|
|
21
|
-
|
|
22
|
-
* @deprecated
|
|
23
|
-
*/
|
|
24
|
-
export default function DQuickActionButton({ line1, line2, className, actionLinkText, actionLinkTheme, actionIcon, secondaryActionIcon, secondaryActionAriaLabel, actionIconFamilyClass, actionIconFamilyPrefix, representativeImage, representativeIcon, representativeIconTheme, representativeIconHasCircle, representativeIconFamilyClass, representativeIconFamilyPrefix, onClick, onClickSecondary, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default function DQuickActionButton({ line1, line2, className, actionIcon, actionIconFamilyClass, actionIconFamilyPrefix, actionIconTheme, representativeImage, representativeIcon, representativeIconTheme, representativeIconHasCircle, representativeIconFamilyClass, representativeIconFamilyPrefix, onClick, href, hrefTarget, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
25
20
|
export {};
|
|
@@ -33,11 +33,20 @@ type IconMapProps = {
|
|
|
33
33
|
increase: string;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
+
export type BreakpointProps = {
|
|
37
|
+
xs: string;
|
|
38
|
+
sm: string;
|
|
39
|
+
md: string;
|
|
40
|
+
lg: string;
|
|
41
|
+
xl: string;
|
|
42
|
+
xxl: string;
|
|
43
|
+
};
|
|
36
44
|
type Props<T extends Record<string, unknown>> = {
|
|
37
45
|
language: string;
|
|
38
46
|
currency: CurrencyProps;
|
|
39
47
|
icon: IconProps;
|
|
40
48
|
iconMap: IconMapProps;
|
|
49
|
+
breakpoints: BreakpointProps;
|
|
41
50
|
} & PortalContextProps<T>;
|
|
42
51
|
type Context<T extends Record<string, unknown>> = Props<T> & {
|
|
43
52
|
setContext: (value: Partial<Props<T>>) => void;
|
|
@@ -6,3 +6,5 @@ export { default as useStackState } from './useStackState';
|
|
|
6
6
|
export { default as useDisableBodyScrollEffect } from './useDisableBodyScrollEffect';
|
|
7
7
|
export { default as usePortal } from './usePortal';
|
|
8
8
|
export { default as useItemSelection } from './useItemSelection';
|
|
9
|
+
export { default as useMediaQuery } from './useMediaQuery';
|
|
10
|
+
export { useMediaBreakpointUpXs, useMediaBreakpointUpSm, useMediaBreakpointUpMd, useMediaBreakpointUpLg, useMediaBreakpointUpXl, useMediaBreakpointUpXxl, } from './useMediaBreakpointUp';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function useMediaBreakpointUpXs(useListener?: boolean): boolean;
|
|
2
|
+
export declare function useMediaBreakpointUpSm(useListener?: boolean): boolean;
|
|
3
|
+
export declare function useMediaBreakpointUpMd(useListener?: boolean): boolean;
|
|
4
|
+
export declare function useMediaBreakpointUpLg(useListener?: boolean): boolean;
|
|
5
|
+
export declare function useMediaBreakpointUpXl(useListener?: boolean): boolean;
|
|
6
|
+
export declare function useMediaBreakpointUpXxl(useListener?: boolean): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useMediaQuery(mediaQuery: string, useListener?: boolean): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getCssVariable(variable: string): string;
|
|
@@ -2,3 +2,5 @@ export { default as formatCurrency } from './formatCurrency';
|
|
|
2
2
|
export { default as configureI18n } from './configureI18n';
|
|
3
3
|
export { default as getQueryString } from './getQueryString';
|
|
4
4
|
export { default as changeQueryString } from './changeQueryString';
|
|
5
|
+
export { default as getCssVariable } from './getCssVariable';
|
|
6
|
+
export * from './mediaQuery';
|
package/package.json
CHANGED
|
@@ -53,13 +53,15 @@
|
|
|
53
53
|
border-radius: var(--#{$prefix}quick-action-button-border-radius);
|
|
54
54
|
box-shadow: var(--#{$prefix}quick-action-button-box-shadow);
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
&.d-quick-action-button-feedback:hover {
|
|
57
|
+
text-decoration: none;
|
|
57
58
|
background: var(--#{$prefix}quick-action-button-hover-bg);
|
|
58
59
|
border-color: var(--#{$prefix}quick-action-button-hover-border-color);
|
|
59
60
|
box-shadow: var(--#{$prefix}quick-action-button-hover-box-shadow);
|
|
60
61
|
}
|
|
61
62
|
|
|
62
|
-
|
|
63
|
+
&.d-quick-action-button-feedback:active {
|
|
64
|
+
text-decoration: none;
|
|
63
65
|
background: var(--#{$prefix}quick-action-button-active-bg);
|
|
64
66
|
border-color: var(--#{$prefix}quick-action-button-active-border-color);
|
|
65
67
|
box-shadow: var(--#{$prefix}quick-action-button-active-box-shadow);
|