@dynamic-framework/ui-react 1.13.0 → 1.14.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 +2 -2
- package/dist/css/dynamic-ui-non-root.min.css +1 -1
- package/dist/css/dynamic-ui.css +2 -2
- package/dist/css/dynamic-ui.min.css +1 -1
- package/dist/index.esm.js +158 -137
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +158 -136
- package/dist/index.js.map +1 -1
- package/dist/types/components/DIcon/DIcon.d.ts +4 -15
- package/dist/types/components/DIconBase/DIconBase.d.ts +17 -0
- package/dist/types/components/DIconBase/index.d.ts +2 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/contexts/DContext.d.ts +6 -1
- package/package.json +2 -2
- package/src/style/components/_d-icon.scss +4 -2
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
size?: string;
|
|
6
|
-
loading?: boolean;
|
|
7
|
-
loadingDuration?: number;
|
|
8
|
-
hasCircle?: boolean;
|
|
9
|
-
circleSize?: string;
|
|
10
|
-
color?: string;
|
|
11
|
-
backgroundColor?: string;
|
|
12
|
-
familyClass?: string;
|
|
13
|
-
familyPrefix?: string;
|
|
14
|
-
};
|
|
15
|
-
export default function DIcon({ icon, theme, style, className, size, loading, loadingDuration, hasCircle, circleSize, color, backgroundColor, familyClass, familyPrefix, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import DIconBase from '../DIconBase';
|
|
3
|
+
type Props = ComponentProps<typeof DIconBase>;
|
|
4
|
+
export default function DIcon({ familyClass: propFamilyClass, familyPrefix: propFamilyPrefix, materialStyle: propMaterialStyle, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
5
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { BaseProps } from '../interface';
|
|
2
|
+
type Props = BaseProps & {
|
|
3
|
+
icon: string;
|
|
4
|
+
theme?: string;
|
|
5
|
+
size?: string;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
loadingDuration?: number;
|
|
8
|
+
hasCircle?: boolean;
|
|
9
|
+
circleSize?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
materialStyle?: boolean;
|
|
13
|
+
familyClass?: string;
|
|
14
|
+
familyPrefix?: string;
|
|
15
|
+
};
|
|
16
|
+
export default function DIconBase({ icon, theme, style, className, size, loading, loadingDuration, hasCircle, circleSize, color, backgroundColor, materialStyle, familyClass, familyPrefix, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -12,6 +12,7 @@ export { default as DCollapseIconText } from './DCollapseIconText';
|
|
|
12
12
|
export { default as DCurrencyText } from './DCurrencyText';
|
|
13
13
|
export { default as DDatePicker } from './DDatePicker';
|
|
14
14
|
export { default as DIcon } from './DIcon';
|
|
15
|
+
export { default as DIconBase } from './DIconBase';
|
|
15
16
|
export { default as DInput } from './DInput';
|
|
16
17
|
export { default as DInputMask } from './DInputMask';
|
|
17
18
|
export { default as DInputCounter } from './DInputCounter';
|
|
@@ -7,11 +7,16 @@ type Props = {
|
|
|
7
7
|
separator: string;
|
|
8
8
|
decimal: string;
|
|
9
9
|
};
|
|
10
|
+
icon: {
|
|
11
|
+
familyClass?: string;
|
|
12
|
+
familyPrefix?: string;
|
|
13
|
+
materialStyle?: boolean;
|
|
14
|
+
};
|
|
10
15
|
};
|
|
11
16
|
type Context = Props & {
|
|
12
17
|
setContext: (value: Props) => void;
|
|
13
18
|
};
|
|
14
19
|
export declare const DContext: import("react").Context<Context>;
|
|
15
|
-
export declare function DContextProvider({ language, currency, children, }: PropsWithChildren<Partial<Props>>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function DContextProvider({ language, currency, icon, children, }: PropsWithChildren<Partial<Props>>): import("react/jsx-runtime").JSX.Element;
|
|
16
21
|
export declare function useDContext(): Context;
|
|
17
22
|
export {};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sideEffects": [
|
|
4
4
|
"*.css"
|
|
5
5
|
],
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.14.0",
|
|
7
7
|
"description": "React Dynamic Framework",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"repository": {
|
|
@@ -144,5 +144,5 @@
|
|
|
144
144
|
"react-dom": "^18.2.0",
|
|
145
145
|
"react-i18next": "^13.3.1"
|
|
146
146
|
},
|
|
147
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "f3f0bb4841b88a468dd5868819e924ef6f3057af"
|
|
148
148
|
}
|
|
@@ -5,13 +5,15 @@
|
|
|
5
5
|
--#{$prefix}icon-padding: var(--#{$prefix}icon-component-padding, 0);
|
|
6
6
|
--#{$prefix}icon-loading-duration: var(--#{$prefix}icon-component-loading-duration, 1.8);
|
|
7
7
|
|
|
8
|
-
display
|
|
8
|
+
// we need to use important in this case to avoid to use the display of the family class
|
|
9
|
+
display: inline-flex !important; // stylelint-disable-line declaration-no-important
|
|
9
10
|
align-items: center;
|
|
10
11
|
justify-content: center;
|
|
11
12
|
width: var(--#{$prefix}icon-size);
|
|
12
13
|
height: var(--#{$prefix}icon-size);
|
|
13
14
|
padding: var(--#{$prefix}icon-padding);
|
|
14
|
-
font-size
|
|
15
|
+
// we need to use important in this case to avoid to use the font-size of the family class
|
|
16
|
+
font-size: var(--#{$prefix}icon-size) !important; // stylelint-disable-line declaration-no-important
|
|
15
17
|
color: var(--#{$prefix}icon-color);
|
|
16
18
|
background-color: var(--#{$prefix}icon-bg-color);
|
|
17
19
|
border-radius: var(--#{$prefix}icon-padding);
|