magneto365.ui 2.75.0 → 2.75.2
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/cjs/css/magneto.ui.lib.min.css +1 -1
- package/dist/cjs/index.js +362 -343
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/UI/molecules/SimilarCard/SimilarCard.component.d.ts +1 -1
- package/dist/cjs/types/components/UI/molecules/SimilarCard/SimilarCard.interface.d.ts +19 -2
- package/dist/cjs/types/components/UI/molecules/SimilarCard/children/SimilarCardText/SimilarCardText.component.d.ts +3 -0
- package/dist/cjs/types/constants/stories/select2.constants.d.ts +17 -0
- package/dist/cjs/types/utils/string/normalizeString.util.d.ts +1 -0
- package/dist/esm/css/magneto.ui.lib.min.css +1 -1
- package/dist/esm/index.js +362 -343
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/UI/molecules/SimilarCard/SimilarCard.component.d.ts +1 -1
- package/dist/esm/types/components/UI/molecules/SimilarCard/SimilarCard.interface.d.ts +19 -2
- package/dist/esm/types/components/UI/molecules/SimilarCard/children/SimilarCardText/SimilarCardText.component.d.ts +3 -0
- package/dist/esm/types/constants/stories/select2.constants.d.ts +17 -0
- package/dist/esm/types/utils/string/normalizeString.util.d.ts +1 -0
- package/dist/index.d.ts +20 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ISimilarCard } from './SimilarCard.interface';
|
|
3
3
|
export declare const SimilarCard: React.FC<ISimilarCard> & {
|
|
4
|
-
Text: React.FC<
|
|
4
|
+
Text: React.FC<ISimilarCard.Text>;
|
|
5
5
|
Logo: React.FC<ISimilarCard.Logo>;
|
|
6
6
|
Icon: React.FC<ISimilarCard.Icon>;
|
|
7
7
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ICustomText } from '@components/UI/atoms/Text/Text.interface';
|
|
3
2
|
export interface ISimilarCard {
|
|
4
3
|
/**
|
|
5
4
|
* this property sets the url title
|
|
@@ -101,11 +100,29 @@ export declare namespace ISimilarCard {
|
|
|
101
100
|
/**
|
|
102
101
|
* If the text must show more than one line, use customText instead text
|
|
103
102
|
* */
|
|
104
|
-
customText?:
|
|
103
|
+
customText?: CustomText[];
|
|
105
104
|
/**
|
|
106
105
|
* this property sets custom styles
|
|
107
106
|
*/
|
|
108
107
|
className?: string;
|
|
108
|
+
/**
|
|
109
|
+
* This property allows you to set the tag for the first text.
|
|
110
|
+
*/
|
|
111
|
+
headingType?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
112
|
+
}
|
|
113
|
+
interface CustomText {
|
|
114
|
+
/**
|
|
115
|
+
* This is the value to the custom text
|
|
116
|
+
* */
|
|
117
|
+
value: string | React.ReactNode;
|
|
118
|
+
/**
|
|
119
|
+
* This is the custom font weight to text
|
|
120
|
+
* */
|
|
121
|
+
fontWeight: 'normal' | 'bold' | 'lighter';
|
|
122
|
+
/**
|
|
123
|
+
* This is the custom line break to text
|
|
124
|
+
* */
|
|
125
|
+
lineBreak?: boolean;
|
|
109
126
|
}
|
|
110
127
|
interface Icon {
|
|
111
128
|
/**
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const SELECT2_PROPS: {
|
|
2
|
+
className: string;
|
|
3
|
+
onChange: (value: string) => void;
|
|
4
|
+
placeholder: string;
|
|
5
|
+
isMultiple: boolean;
|
|
6
|
+
haveTags: boolean;
|
|
7
|
+
limitSelections: number;
|
|
8
|
+
currentFields: {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}[];
|
|
12
|
+
icon: any;
|
|
13
|
+
selectList: {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const normalizeString: (str: string) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -3959,11 +3959,29 @@ declare namespace ISimilarCard {
|
|
|
3959
3959
|
/**
|
|
3960
3960
|
* If the text must show more than one line, use customText instead text
|
|
3961
3961
|
* */
|
|
3962
|
-
customText?:
|
|
3962
|
+
customText?: CustomText[];
|
|
3963
3963
|
/**
|
|
3964
3964
|
* this property sets custom styles
|
|
3965
3965
|
*/
|
|
3966
3966
|
className?: string;
|
|
3967
|
+
/**
|
|
3968
|
+
* This property allows you to set the tag for the first text.
|
|
3969
|
+
*/
|
|
3970
|
+
headingType?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
3971
|
+
}
|
|
3972
|
+
interface CustomText {
|
|
3973
|
+
/**
|
|
3974
|
+
* This is the value to the custom text
|
|
3975
|
+
* */
|
|
3976
|
+
value: string | React.ReactNode;
|
|
3977
|
+
/**
|
|
3978
|
+
* This is the custom font weight to text
|
|
3979
|
+
* */
|
|
3980
|
+
fontWeight: 'normal' | 'bold' | 'lighter';
|
|
3981
|
+
/**
|
|
3982
|
+
* This is the custom line break to text
|
|
3983
|
+
* */
|
|
3984
|
+
lineBreak?: boolean;
|
|
3967
3985
|
}
|
|
3968
3986
|
interface Icon {
|
|
3969
3987
|
/**
|
|
@@ -3986,7 +4004,7 @@ declare namespace ISimilarCard {
|
|
|
3986
4004
|
}
|
|
3987
4005
|
|
|
3988
4006
|
declare const SimilarCard: React__default.FC<ISimilarCard> & {
|
|
3989
|
-
Text: React__default.FC<
|
|
4007
|
+
Text: React__default.FC<ISimilarCard.Text>;
|
|
3990
4008
|
Logo: React__default.FC<ISimilarCard.Logo>;
|
|
3991
4009
|
Icon: React__default.FC<ISimilarCard.Icon>;
|
|
3992
4010
|
};
|
package/package.json
CHANGED