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.
@@ -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<import("../../atoms/Text/Text.interface").IText>;
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?: ICustomText[];
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,3 @@
1
+ import React from 'react';
2
+ import { ISimilarCard } from '../../SimilarCard.interface';
3
+ export declare const SimilarCardText: React.FC<ISimilarCard.Text>;
@@ -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;