@lingxiteam/theme-utils 0.2.6 → 0.2.9

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.
Files changed (47) hide show
  1. package/dist/config/Button.d.ts +6 -0
  2. package/dist/config/Button.js +8 -2
  3. package/dist/config/Card.d.ts +0 -1
  4. package/dist/config/Card.js +0 -1
  5. package/dist/config/Checkbox.d.ts +5 -0
  6. package/dist/config/Checkbox.js +7 -2
  7. package/dist/config/CheckboxGroup.d.ts +5 -0
  8. package/dist/config/CheckboxGroup.js +7 -2
  9. package/dist/config/Collapse.d.ts +4 -0
  10. package/dist/config/Collapse.js +6 -2
  11. package/dist/config/DatePicker.d.ts +4 -0
  12. package/dist/config/DatePicker.js +5 -1
  13. package/dist/config/Form.d.ts +23 -372
  14. package/dist/config/Form.js +75 -63
  15. package/dist/config/Icon.d.ts +4 -0
  16. package/dist/config/Icon.js +5 -1
  17. package/dist/config/Link.d.ts +6 -0
  18. package/dist/config/Link.js +8 -2
  19. package/dist/config/MultipleSelect.js +3 -3
  20. package/dist/config/Radio.d.ts +4 -0
  21. package/dist/config/Radio.js +5 -1
  22. package/dist/config/RangePicker.d.ts +4 -0
  23. package/dist/config/RangePicker.js +5 -1
  24. package/dist/config/StdUpload.d.ts +5 -16
  25. package/dist/config/StdUpload.js +7 -18
  26. package/dist/config/Switch.d.ts +4 -0
  27. package/dist/config/Switch.js +5 -1
  28. package/dist/config/Table.d.ts +6 -0
  29. package/dist/config/Table.js +8 -2
  30. package/dist/config/Tabs.d.ts +4 -0
  31. package/dist/config/Tabs.js +5 -1
  32. package/dist/config/Text.d.ts +4 -0
  33. package/dist/config/Text.js +5 -1
  34. package/dist/config/TimePicker.d.ts +4 -0
  35. package/dist/config/TimePicker.js +5 -1
  36. package/dist/config/Tree.d.ts +7 -0
  37. package/dist/config/Tree.js +10 -3
  38. package/dist/h5config/Accordion.d.ts +4 -0
  39. package/dist/h5config/Accordion.js +5 -1
  40. package/dist/h5config/Card.d.ts +4 -0
  41. package/dist/h5config/Card.js +5 -1
  42. package/dist/h5config/DMultiplePicker.js +4 -4
  43. package/dist/h5config/FilterItems.d.ts +4 -0
  44. package/dist/h5config/FilterItems.js +5 -1
  45. package/dist/h5config/SearchView.d.ts +4 -0
  46. package/dist/h5config/SearchView.js +5 -1
  47. package/package.json +1 -1
@@ -16,11 +16,13 @@ export declare const Button: {
16
16
  label: string;
17
17
  groupsName: string;
18
18
  desc: string;
19
+ followTheme: string;
19
20
  };
20
21
  backgroundColor: {
21
22
  type: string;
22
23
  label: string;
23
24
  groupsName: string;
25
+ followTheme: string;
24
26
  };
25
27
  borderColor: {
26
28
  type: string;
@@ -55,6 +57,10 @@ export declare const Button: {
55
57
  paddingValue: string;
56
58
  marginValue: string;
57
59
  }[];
60
+ followThemes: {
61
+ '@primary-color': string[];
62
+ '@font-size-base': string[];
63
+ };
58
64
  tpl: string;
59
65
  components: {
60
66
  id: string;
@@ -15,12 +15,14 @@ export var Button = {
15
15
  type: 'px',
16
16
  label: '文本尺寸',
17
17
  groupsName: '文字',
18
- desc: '按钮高度不会随着文字大小变化,因为按钮有4种大小规格'
18
+ desc: '按钮高度不会随着文字大小变化,因为按钮有4种大小规格',
19
+ followTheme: '@font-size-base'
19
20
  },
20
21
  backgroundColor: {
21
22
  type: 'color',
22
23
  label: '背景颜色',
23
- groupsName: '背景颜色'
24
+ groupsName: '背景颜色',
25
+ followTheme: '@primary-color'
24
26
  },
25
27
  borderColor: {
26
28
  type: 'color',
@@ -55,6 +57,10 @@ export var Button = {
55
57
  paddingValue: '4px 24px 4px 24px',
56
58
  marginValue: '0px'
57
59
  }],
60
+ followThemes: {
61
+ '@primary-color': ['backgroundColor'],
62
+ '@font-size-base': ['fontSize']
63
+ },
58
64
  tpl: "\n.ued-button-wrap.pcfactory-btn {\n line-height: lineHeight;\n font-size: fontSize;\n padding: paddingValue;\n margin: marginValue;\n }\n.ued-button-wrap.pcfactory-btn-primary {\n background-color: backgroundColor;\n border-color: borderColor;\n border-radius: borderRadius;\n }\n.ued-button-wrap.pcfactory-btn-default {\n color: textColor;\n border-color: borderColor;\n border-radius: borderRadius;\n }\n.ued-button-wrap.pcfactory-btn-dashed {\n color: textColor;\n border-color: borderColor;\n border-radius: borderRadius;\n }\n.ued-button-wrap.pcfactory-btn.pcfactory-btn-dashed:hover {\n border-color: backgroundColor;\n color: backgroundColor;\n }\n.ued-button-wrap.pcfactory-btn.pcfactory-btn-default:hover {\n border-color: backgroundColor;\n color: backgroundColor;\n }\n.ued-button-wrap.pcfactory-btn-text {\n color: textColor;\n }\n.ued-button-wrap.pcfactory-btn-link {\n color: backgroundColor;\n }\n ",
59
65
  components: [{
60
66
  id: 'Button_1229334',
@@ -82,7 +82,6 @@ export declare const Card: {
82
82
  icon: string;
83
83
  title: string;
84
84
  defaultValue: {
85
- fontSize: string;
86
85
  backgroundColor: string;
87
86
  titleColor: string;
88
87
  tagSize: string;
@@ -100,7 +100,6 @@ export var Card = {
100
100
  icon: 'icon-ico-comp-card',
101
101
  title: '卡片',
102
102
  defaultValue: [{
103
- fontSize: '14px',
104
103
  backgroundColor: '#fff',
105
104
  titleColor: '#0085D0',
106
105
  tagSize: '16px',
@@ -61,11 +61,13 @@ export declare const Checkbox: {
61
61
  type: string;
62
62
  label: string;
63
63
  groupsName: string;
64
+ followTheme: string;
64
65
  };
65
66
  radioSeBgColor: {
66
67
  type: string;
67
68
  label: string;
68
69
  groupsName: string;
70
+ followTheme: string;
69
71
  };
70
72
  };
71
73
  groupsName: string;
@@ -78,6 +80,9 @@ export declare const Checkbox: {
78
80
  radioSeBorderColor: string;
79
81
  radioSeBgColor: string;
80
82
  }[];
83
+ followThemes: {
84
+ '@primary-color': string[];
85
+ };
81
86
  tpl: string;
82
87
  components: {
83
88
  id: string;
@@ -60,12 +60,14 @@ export var Checkbox = {
60
60
  radioSeBorderColor: {
61
61
  type: 'color',
62
62
  label: '选中边框颜色',
63
- groupsName: '边框'
63
+ groupsName: '边框',
64
+ followTheme: '@primary-color'
64
65
  },
65
66
  radioSeBgColor: {
66
67
  type: 'color',
67
68
  label: '选中背景颜色',
68
- groupsName: '边框'
69
+ groupsName: '边框',
70
+ followTheme: '@primary-color'
69
71
  }
70
72
  },
71
73
  groupsName: '数据录入',
@@ -78,6 +80,9 @@ export var Checkbox = {
78
80
  radioSeBorderColor: '#47e',
79
81
  radioSeBgColor: '#47e'
80
82
  }],
83
+ followThemes: {
84
+ '@primary-color': ['radioSeBgColor', 'radioSeBorderColor']
85
+ },
81
86
  tpl: ".ued-checkbox-wrap{\n .pcfactory-checkbox-inner{\n width: radioSize;\n height: radioSize;\n border-color: radioBorderColor;\n background: radioBgColor;\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n background: radioSeBgColor;\n }\n .pcfactory-checkbox-input:focus+.pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n }\n .pcfactory-checkbox-wrapper:hover .pcfactory-checkbox{\n border-color: radioSeBorderColor;\n}\n.pcfactory-checkbox:hover .pcfactory-checkbox-inner {\n border-color: radioSeBorderColor;\n }\n .pcfactory-form-item input[type=checkbox], .pcfactory-form-item input[type=radio]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-checkbox-indeterminate .pcfactory-checkbox-inner:after{\n background: radioSeBgColor;\n width: calc(0.47* radioSize);\n height: calc(0.47* radioSize);\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner:after{\n width: calc(0.35* radioSize);\n height: calc(0.57* radioSize);\n }\n }",
82
87
  components: [{
83
88
  id: 'Form_180373',
@@ -61,11 +61,13 @@ export declare const CheckboxGroup: {
61
61
  type: string;
62
62
  label: string;
63
63
  groupsName: string;
64
+ followTheme: string;
64
65
  };
65
66
  radioSeBgColor: {
66
67
  type: string;
67
68
  label: string;
68
69
  groupsName: string;
70
+ followTheme: string;
69
71
  };
70
72
  };
71
73
  groupsName: string;
@@ -78,6 +80,9 @@ export declare const CheckboxGroup: {
78
80
  radioSeBorderColor: string;
79
81
  radioSeBgColor: string;
80
82
  }[];
83
+ followThemes: {
84
+ '@primary-color': string[];
85
+ };
81
86
  tpl: string;
82
87
  components: {
83
88
  id: string;
@@ -60,12 +60,14 @@ export var CheckboxGroup = {
60
60
  radioSeBorderColor: {
61
61
  type: 'color',
62
62
  label: '选中边框颜色',
63
- groupsName: '边框'
63
+ groupsName: '边框',
64
+ followTheme: '@primary-color'
64
65
  },
65
66
  radioSeBgColor: {
66
67
  type: 'color',
67
68
  label: '选中背景颜色',
68
- groupsName: '边框'
69
+ groupsName: '边框',
70
+ followTheme: '@primary-color'
69
71
  }
70
72
  },
71
73
  groupsName: '数据录入',
@@ -78,6 +80,9 @@ export var CheckboxGroup = {
78
80
  radioSeBorderColor: '#47e',
79
81
  radioSeBgColor: '#47e'
80
82
  }],
83
+ followThemes: {
84
+ '@primary-color': ['radioSeBorderColor', 'radioSeBgColor']
85
+ },
81
86
  tpl: ".ued-checkboxgroup-wrap {\n .pcfactory-checkbox-inner{\n width: radioSize;\n height: radioSize;\n border-color: radioBorderColor;\n background: radioBgColor;\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n background: radioSeBgColor;\n }\n .pcfactory-checkbox-input:focus+.pcfactory-checkbox-inner{\n border-color: radioSeBorderColor;\n }\n .pcfactory-checkbox-wrapper:hover .pcfactory-checkbox{\n border-color: radioSeBorderColor;\n}\n .pcfactory-checkbox:hover .pcfactory-checkbox-inner {\n border-color: radioSeBorderColor;\n }\n .pcfactory-form-item input[type=checkbox]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-form-item input[type=radio]{\n width: radioSize;\n height: radioSize;\n }\n .pcfactory-checkbox-indeterminate .pcfactory-checkbox-inner:after{\n background: radioSeBgColor;\n width: calc(0.47* radioSize);\n height: calc(0.47* radioSize);\n }\n .pcfactory-checkbox-checked .pcfactory-checkbox-inner:after{\n width: calc(0.35* radioSize);\n height: calc(0.57* radioSize);\n }\n }",
82
87
  components: [{
83
88
  id: 'Form_180373',
@@ -61,6 +61,7 @@ export declare const Collapse: {
61
61
  type: string;
62
62
  label: string;
63
63
  groupsName: string;
64
+ followTheme: string;
64
65
  };
65
66
  borderColor: {
66
67
  type: string;
@@ -97,6 +98,9 @@ export declare const Collapse: {
97
98
  borderRadius: string;
98
99
  bodyColor: string;
99
100
  }[];
101
+ followThemes: {
102
+ '@font-size-base': string[];
103
+ };
100
104
  tpl: string;
101
105
  components: {
102
106
  id: string;
@@ -78,7 +78,8 @@ export var Collapse = {
78
78
  arrowSize: {
79
79
  type: 'px',
80
80
  label: '后缀图标尺寸',
81
- groupsName: '布局'
81
+ groupsName: '布局',
82
+ followTheme: '@font-size-base'
82
83
  },
83
84
  borderColor: {
84
85
  type: 'color',
@@ -115,7 +116,10 @@ export var Collapse = {
115
116
  borderRadius: '2px',
116
117
  bodyColor: '#fff'
117
118
  }],
118
- tpl: ".ued-collapse-wrap .ued-collapse-panel-header-icon-auto span, .ued-collapse-wrap .ued-collapse-panel-header-icon-auto>i{\n color: titleColor;\n margin-right: tagMargin;\n }\n .ued-collapse-wrap .ued-collapse-panel-header-icon-auto span svg, .ued-collapse-wrap .ued-collapse-panel-header-icon-auto>i svg{\n width: tagSize;\n height: tagSize;\n}\n.ued-collapse-wrap .pcfactory-collapse.pcfactory-collapse-icon-position-right>.pcfactory-collapse-item>.pcfactory-collapse-header .pcfactory-collapse-arrow span{\n color: arrowColor;\n}\n.ued-collapse-wrap .pcfactory-collapse.pcfactory-collapse-icon-position-right>.pcfactory-collapse-item>.pcfactory-collapse-header .pcfactory-collapse-arrow span svg{\n width: arrowSize;\n height: arrowSize;\n}\n.ued-collapse-wrap .pcfactory-collapse{\n border-color: borderColor;\n border-radius: borderRadius;\n}\n.ued-collapse-wrap .pcfactory-collapse>.pcfactory-collapse-item{\n border-color: borderColor;\n\n}\n.ued-collapse-wrap .pcfactory-collapse>.pcfactory-collapse-item>.pcfactory-collapse-content{\n border-color: lineColor;\n}\n.ued-collapse-wrap .pcfactory-collapse>div:last-child{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n .pcfactory-collapse-header{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse .pcfactory-collapse-item-active:last-child {\n .pcfactory-collapse-header{\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse-item:last-child>.pcfactory-collapse-content{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n .ued-collapse-pane-content{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse>div:first-child {\n border-top-left-radius: borderRadius;\n border-top-right-radius: borderRadius;\n .pcfactory-collapse-header{\n border-top-left-radius: borderRadius;\n border-top-right-radius: borderRadius;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse>.pcfactory-collapse-item>.pcfactory-collapse-content>.pcfactory-collapse-content-box .ued-collapse-pane-content{\n background-color: bodyColor;\n}",
119
+ followThemes: {
120
+ '@font-size-base': ['arrowSize']
121
+ },
122
+ tpl: ".ued-collapse-wrap .ued-collapse-panel-header-icon-auto span, .ued-collapse-wrap .ued-collapse-panel-header-icon-auto>i{\n color: titleColor;\n margin-right: tagMargin;\n }\n .ued-collapse-wrap .ued-collapse-panel-header-icon-auto span svg, .ued-collapse-wrap .ued-collapse-panel-header-icon-auto>i svg{\n width: tagSize;\n height: tagSize;\n}\n.ued-collapse-wrap .pcfactory-collapse.pcfactory-collapse-icon-position-right>.pcfactory-collapse-item>.pcfactory-collapse-header .pcfactory-collapse-arrow {\n color: arrowColor;\n}\n.ued-collapse-wrap .pcfactory-collapse.pcfactory-collapse-icon-position-right>.pcfactory-collapse-item>.pcfactory-collapse-header .pcfactory-collapse-arrow svg{\n width: arrowSize;\n height: arrowSize;\n}\n.ued-collapse-wrap .pcfactory-collapse{\n border-color: borderColor;\n border-radius: borderRadius;\n}\n.ued-collapse-wrap .pcfactory-collapse>.pcfactory-collapse-item{\n border-color: borderColor;\n\n}\n.ued-collapse-wrap .pcfactory-collapse>.pcfactory-collapse-item>.pcfactory-collapse-content{\n border-color: lineColor;\n}\n.ued-collapse-wrap .pcfactory-collapse>div:last-child{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n .pcfactory-collapse-header{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse .pcfactory-collapse-item-active:last-child {\n .pcfactory-collapse-header{\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse-item:last-child>.pcfactory-collapse-content{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n .ued-collapse-pane-content{\n border-bottom-right-radius: borderRadius;\n border-bottom-left-radius: borderRadius;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse>div:first-child {\n border-top-left-radius: borderRadius;\n border-top-right-radius: borderRadius;\n .pcfactory-collapse-header{\n border-top-left-radius: borderRadius;\n border-top-right-radius: borderRadius;\n }\n}\n.ued-collapse-wrap .pcfactory-collapse>.pcfactory-collapse-item>.pcfactory-collapse-content>.pcfactory-collapse-content-box .ued-collapse-pane-content{\n background-color: bodyColor;\n}",
119
123
  components: [{
120
124
  id: 'Collapse_746665',
121
125
  label: '折叠面板',
@@ -62,6 +62,7 @@ export declare const DatePicker: {
62
62
  type: string;
63
63
  label: string;
64
64
  groupsName: string;
65
+ followTheme: string;
65
66
  };
66
67
  iconColor: {
67
68
  type: string;
@@ -76,6 +77,9 @@ export declare const DatePicker: {
76
77
  iconFontSize: string;
77
78
  iconColor: string;
78
79
  }[];
80
+ followThemes: {
81
+ '@font-size-base': string[];
82
+ };
79
83
  tpl: string;
80
84
  components: {
81
85
  id: string;
@@ -61,7 +61,8 @@ export var DatePicker = {
61
61
  iconFontSize: {
62
62
  type: 'px',
63
63
  label: '日期图标尺寸',
64
- groupsName: '文字'
64
+ groupsName: '文字',
65
+ followTheme: '@font-size-base'
65
66
  },
66
67
  iconColor: {
67
68
  type: 'color',
@@ -76,6 +77,9 @@ export var DatePicker = {
76
77
  iconFontSize: '14px',
77
78
  iconColor: '#0085D0'
78
79
  }],
80
+ followThemes: {
81
+ '@font-size-base': ['iconFontSize']
82
+ },
79
83
  tpl: ".ued-datePicker-wrap {\n .pcfactory-picker-suffix{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n .pcfactory-picker-clear{\n color: iconColor;\n width: iconFontSize;\n height: iconFontSize;\n .anticon>svg{\n width: iconFontSize;\n height: iconFontSize;\n }\n }\n }",
80
84
  components: [{
81
85
  id: 'Form_180373',