web-materials 0.8.27 → 0.8.28

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.
@@ -0,0 +1,7 @@
1
+ export declare const LAYOUT_TYPE_LIST: readonly [{
2
+ readonly key: "horizontal";
3
+ readonly text: "横排";
4
+ }, {
5
+ readonly key: "diagonal";
6
+ readonly text: "斜角";
7
+ }];
@@ -1,5 +1,7 @@
1
- import { IColorConfigType, ITextConfigType, TColorDefaultType, ICheckboxConfigType, TCheckboxDefaultType, IGradientColorConfigType, TGradientColorDefaultType, IUploadConfigType } from '@/components/types';
1
+ import { IColorConfigType, ITextConfigType, TColorDefaultType, ICheckboxConfigType, TCheckboxDefaultType, IGradientColorConfigType, TGradientColorDefaultType, IUploadConfigType, ISelectConfigType, TSelectDefaultType } from '@/components/types';
2
2
  import { ICommonBaseType, ICommonConfigType, TVsIconUrlType } from '../../common';
3
+ import { LAYOUT_TYPE_LIST } from './const';
4
+ export type TPKScheduleLayoutType = typeof LAYOUT_TYPE_LIST[number]['key'];
3
5
  export interface PKUserData {
4
6
  userId: string;
5
7
  name: string;
@@ -10,10 +12,15 @@ export interface PKMatchData {
10
12
  leftUser: PKUserData;
11
13
  rightUser: PKUserData;
12
14
  }
13
- export type TPKScheduleEditData = Array<IColorConfigType | ITextConfigType | ICheckboxConfigType | ICommonConfigType | IGradientColorConfigType | IUploadConfigType>;
15
+ export type TPKScheduleEditData = Array<IColorConfigType | ITextConfigType | ICheckboxConfigType | ICommonConfigType | IGradientColorConfigType | IUploadConfigType | ISelectConfigType<TPKScheduleLayoutType>>;
14
16
  export interface IPKScheduleConfig extends ICommonBaseType {
15
17
  userIds: string;
18
+ layoutType: TSelectDefaultType<TPKScheduleLayoutType>;
16
19
  textColor: TColorDefaultType;
20
+ leftTextColor: TColorDefaultType;
21
+ rightTextColor: TColorDefaultType;
22
+ leftBorderColor: TColorDefaultType;
23
+ rightBorderColor: TColorDefaultType;
17
24
  userJump: TCheckboxDefaultType;
18
25
  itemBgGradient: TGradientColorDefaultType;
19
26
  vsIconUrl: TVsIconUrlType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-materials",
3
- "version": "0.8.27",
3
+ "version": "0.8.28",
4
4
  "description": "A modern React component library",
5
5
  "type": "module",
6
6
  "main": "dist/esm/index.mjs",