@momo-kits/foundation 0.81.7-beta.2 → 0.81.7-beta.3
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/Application/types.ts +1 -1
- package/Consts/colors+spacing+radius.ts +3 -3
- package/Layout/ItemSectionList.tsx +0 -6
- package/Layout/index.ts +2 -0
- package/Title/index.tsx +1 -0
- package/Title/styles.ts +9 -1
- package/Title/types.ts +1 -1
- package/package.json +1 -1
package/Application/types.ts
CHANGED
|
@@ -5,11 +5,6 @@ import {GridContext} from './index';
|
|
|
5
5
|
import styles from './styles';
|
|
6
6
|
|
|
7
7
|
export interface ItemSectionListProps extends SectionListProps<any> {
|
|
8
|
-
/**
|
|
9
|
-
* Require key support number columns change grid system
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
key: string;
|
|
13
8
|
/**
|
|
14
9
|
* Represents the width of the Card component in terms of span numbers (1-12).
|
|
15
10
|
*/
|
|
@@ -17,7 +12,6 @@ export interface ItemSectionListProps extends SectionListProps<any> {
|
|
|
17
12
|
}
|
|
18
13
|
|
|
19
14
|
const ItemSectionList: FC<ItemSectionListProps> = ({
|
|
20
|
-
key,
|
|
21
15
|
renderItem,
|
|
22
16
|
widthSpan,
|
|
23
17
|
style,
|
package/Layout/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {createContext} from 'react';
|
|
|
6
6
|
import {GridContextProps} from './types';
|
|
7
7
|
import Item from './Item';
|
|
8
8
|
import ItemList from './ItemList';
|
|
9
|
+
import ItemSectionList from './ItemSectionList';
|
|
9
10
|
|
|
10
11
|
const GridContext = createContext<GridContextProps>({
|
|
11
12
|
numberOfColumns: 12,
|
|
@@ -23,4 +24,5 @@ export {
|
|
|
23
24
|
validateChildren,
|
|
24
25
|
Item,
|
|
25
26
|
ItemList,
|
|
27
|
+
ItemSectionList,
|
|
26
28
|
};
|
package/Title/index.tsx
CHANGED
package/Title/styles.ts
CHANGED
|
@@ -4,6 +4,10 @@ import {Radius, Spacing} from '../Consts';
|
|
|
4
4
|
|
|
5
5
|
export default StyleSheet.create({
|
|
6
6
|
card_small: {
|
|
7
|
+
fontSize: scaleSize(14),
|
|
8
|
+
lineHeight: scaleSize(20),
|
|
9
|
+
},
|
|
10
|
+
card_medium: {
|
|
7
11
|
fontSize: scaleSize(16),
|
|
8
12
|
lineHeight: scaleSize(22),
|
|
9
13
|
},
|
|
@@ -11,10 +15,14 @@ export default StyleSheet.create({
|
|
|
11
15
|
fontSize: scaleSize(18),
|
|
12
16
|
lineHeight: scaleSize(26),
|
|
13
17
|
},
|
|
14
|
-
|
|
18
|
+
section_medium: {
|
|
15
19
|
fontSize: scaleSize(20),
|
|
16
20
|
lineHeight: scaleSize(28),
|
|
17
21
|
},
|
|
22
|
+
section_small: {
|
|
23
|
+
fontSize: scaleSize(16),
|
|
24
|
+
lineHeight: scaleSize(22),
|
|
25
|
+
},
|
|
18
26
|
section_large: {
|
|
19
27
|
fontSize: scaleSize(24),
|
|
20
28
|
lineHeight: scaleSize(34),
|
package/Title/types.ts
CHANGED
|
@@ -22,7 +22,7 @@ export type TitleProps = {
|
|
|
22
22
|
* 'large' - A larger, more prominent title.
|
|
23
23
|
* 'small' - A smaller, less prominent title.
|
|
24
24
|
*/
|
|
25
|
-
size?: 'large' | 'small';
|
|
25
|
+
size?: 'large' | 'medium' | 'small';
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Optional. Represents the name or key of the icon to be displayed alongside the title.
|