shineout 1.8.0 → 1.8.4

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 (84) hide show
  1. package/css/AnimationList/AbsoluteList.js +1 -1
  2. package/css/Button/Button.js +1 -1
  3. package/css/Cascader/Result.js +3 -2
  4. package/css/Cascader/styles/cascader.css +9 -1
  5. package/css/Checkbox/Group.js +6 -3
  6. package/css/Checkbox/index.d.ts +1 -1
  7. package/css/DatePicker/Month.js +7 -1
  8. package/css/Datum/Tree.js +2 -1
  9. package/css/Menu/Item.js +9 -1
  10. package/css/Menu/Root.js +10 -4
  11. package/css/Modal/events.js +6 -3
  12. package/css/Rule/index.d.ts +26 -3
  13. package/css/Scroll/Scroll.js +31 -11
  14. package/css/Select/Result.js +5 -4
  15. package/css/Select/styles/select.css +8 -4
  16. package/css/Table/SeperateTable.js +14 -8
  17. package/css/Table/SimpleTable.js +13 -7
  18. package/css/Table/Table.js +3 -1
  19. package/css/Table/resizable.js +1 -1
  20. package/css/Table/styles/table.css +8 -8
  21. package/css/Textarea/index.d.ts +34 -23
  22. package/css/Tooltip/styles/tooltip.css +31 -31
  23. package/css/index.d.ts +1 -1
  24. package/css/index.js +1 -1
  25. package/dist/shineout.js +215 -149
  26. package/dist/shineout.js.map +1 -1
  27. package/dist/shineout.min.js +1 -1
  28. package/dist/theme.antd.css +1 -1
  29. package/dist/theme.antd2.css +1 -1
  30. package/dist/theme.default.css +1 -1
  31. package/dist/theme.shineout.css +1 -1
  32. package/es/AnimationList/AbsoluteList.js +1 -1
  33. package/es/Button/Button.js +1 -1
  34. package/es/Cascader/Result.js +3 -2
  35. package/es/Cascader/styles/cascader.less +11 -1
  36. package/es/Checkbox/Group.js +6 -3
  37. package/es/Checkbox/index.d.ts +1 -1
  38. package/es/DatePicker/Month.js +7 -1
  39. package/es/Datum/Tree.js +2 -1
  40. package/es/Menu/Item.js +9 -1
  41. package/es/Menu/Root.js +9 -4
  42. package/es/Modal/events.js +6 -3
  43. package/es/Rule/index.d.ts +26 -3
  44. package/es/Scroll/Scroll.js +31 -11
  45. package/es/Select/Result.js +5 -4
  46. package/es/Select/styles/select.less +8 -3
  47. package/es/Table/SeperateTable.js +14 -8
  48. package/es/Table/SimpleTable.js +13 -7
  49. package/es/Table/Table.js +3 -1
  50. package/es/Table/resizable.js +1 -1
  51. package/es/Table/styles/table.less +1 -1
  52. package/es/Textarea/index.d.ts +34 -23
  53. package/es/Tooltip/styles/tooltip.less +7 -5
  54. package/es/index.d.ts +1 -1
  55. package/es/index.js +1 -1
  56. package/es/styles/themes/base.less +1 -1
  57. package/es/styles/themes/shineout.less +1 -1
  58. package/lib/AnimationList/AbsoluteList.js +1 -1
  59. package/lib/Button/Button.js +1 -1
  60. package/lib/Cascader/Result.js +3 -2
  61. package/lib/Cascader/styles/cascader.less +11 -1
  62. package/lib/Checkbox/Group.js +6 -3
  63. package/lib/Checkbox/index.d.ts +1 -1
  64. package/lib/DatePicker/Month.js +7 -1
  65. package/lib/Datum/Tree.js +2 -1
  66. package/lib/Menu/Item.js +9 -1
  67. package/lib/Menu/Root.js +10 -4
  68. package/lib/Modal/events.js +6 -3
  69. package/lib/Rule/index.d.ts +26 -3
  70. package/lib/Scroll/Scroll.js +31 -11
  71. package/lib/Select/Result.js +5 -4
  72. package/lib/Select/styles/select.less +8 -3
  73. package/lib/Table/SeperateTable.js +14 -8
  74. package/lib/Table/SimpleTable.js +13 -7
  75. package/lib/Table/Table.js +3 -1
  76. package/lib/Table/resizable.js +1 -1
  77. package/lib/Table/styles/table.less +1 -1
  78. package/lib/Textarea/index.d.ts +34 -23
  79. package/lib/Tooltip/styles/tooltip.less +7 -5
  80. package/lib/index.d.ts +1 -1
  81. package/lib/index.js +1 -1
  82. package/lib/styles/themes/base.less +1 -1
  83. package/lib/styles/themes/shineout.less +1 -1
  84. package/package.json +1 -1
@@ -2,24 +2,24 @@ import * as React from 'react'
2
2
  import { StandardProps, RegularAttributes, FormItemStandardProps } from '../@types/common'
3
3
 
4
4
  export interface TextareaProps<Value> extends
5
- StandardProps,
5
+ StandardProps,
6
6
  FormItemStandardProps<Value>
7
7
  {
8
8
 
9
9
  /**
10
10
  * show border bottom
11
- *
11
+ *
12
12
  * 仅仅展示下边框
13
- *
13
+ *
14
14
  * default: false
15
15
  */
16
16
  underline?: boolean;
17
17
 
18
18
  /**
19
19
  * Whether the height changes automatically with the content
20
- *
20
+ *
21
21
  * 高度是否随内容自动变化
22
- *
22
+ *
23
23
  * default: false
24
24
  */
25
25
  autosize?: boolean;
@@ -27,76 +27,87 @@ FormItemStandardProps<Value>
27
27
 
28
28
  /**
29
29
  * User input triggers onChange and to check interval, unit: ms.
30
- *
30
+ *
31
31
  * 用户输入触发 onChange 和校验间隔时间,单位 毫秒。
32
- *
32
+ *
33
33
  * default: 400
34
34
  */
35
35
  delay?: number;
36
36
 
37
37
  /**
38
38
  * Infomation
39
- *
39
+ *
40
40
  * 提示信息
41
- *
41
+ *
42
42
  * default: -
43
43
  */
44
44
  info?: ((value: string) => string) | number;
45
45
 
46
46
  /**
47
47
  * The callback function for enter key
48
- *
48
+ *
49
49
  * 回车键回调函数
50
- *
51
- * default:
50
+ *
51
+ * default:
52
52
  */
53
53
  onEnterPress?: (value: Value) => void;
54
54
 
55
55
  /**
56
56
  * The position where the message pops up
57
- *
57
+ *
58
58
  * 信息弹出位置
59
- *
60
- * default:
59
+ *
60
+ * default:
61
61
  */
62
62
  popover?: RegularAttributes.Position;
63
63
 
64
64
  /**
65
65
  * The minimum row height. Same as native textarea rows property.
66
- *
66
+ *
67
67
  * 最小行高,同原生 textarea rows 属性
68
- *
68
+ *
69
69
  * default: 4
70
70
  */
71
71
  rows?: number;
72
72
 
73
73
  /**
74
74
  * the maxHeight of the textarea, scroll bars appear after more than
75
- *
75
+ *
76
76
  * 输入框的最大高度, 超过之后会出现滚动条
77
- *
77
+ *
78
78
  * default: -
79
79
  */
80
80
  maxHeight?: number | string;
81
81
 
82
82
  /**
83
83
  * When trim is true, blank characters are automatically deleted when lose focus。
84
- *
84
+ *
85
85
  * trim 为 true 时,失去焦点时会自动删除空白字符。
86
- *
86
+ *
87
87
  * default: false
88
88
  */
89
89
  trim?: boolean;
90
90
 
91
91
  /**
92
92
  * support resize
93
- *
93
+ *
94
94
  * 是否可以伸缩高度
95
- *
95
+ *
96
96
  * default: false
97
97
  */
98
98
  resize?: boolean;
99
99
 
100
+ /**
101
+ * disabled
102
+ *
103
+ * 禁用
104
+ *
105
+ * default: false
106
+ */
107
+ disabled?: boolean;
108
+
109
+
110
+
100
111
  }
101
112
 
102
113
  declare class Textarea<Value = any> extends React.Component<TextareaProps<Value>, {}> {}
@@ -27,7 +27,7 @@
27
27
  margin-top: 0;
28
28
  }
29
29
  100% {
30
- margin-top: -8px;
30
+ margin-top: -9px;
31
31
  }
32
32
  }
33
33
  @keyframes so-tooltip-kf-top {
@@ -35,7 +35,7 @@
35
35
  margin-top: 0;
36
36
  }
37
37
  100% {
38
- margin-top: -8px;
38
+ margin-top: -9px;
39
39
  }
40
40
  }
41
41
  @-webkit-keyframes so-tooltip-kf-bottom {
@@ -43,7 +43,7 @@
43
43
  margin-top: 0;
44
44
  }
45
45
  100% {
46
- margin-top: 8px;
46
+ margin-top: 9px;
47
47
  }
48
48
  }
49
49
  @keyframes so-tooltip-kf-bottom {
@@ -51,7 +51,7 @@
51
51
  margin-top: 0;
52
52
  }
53
53
  100% {
54
- margin-top: 8px;
54
+ margin-top: 9px;
55
55
  }
56
56
  }
57
57
  @-webkit-keyframes so-tooltip-kf-left {
@@ -59,7 +59,7 @@
59
59
  margin-left: 0;
60
60
  }
61
61
  100% {
62
- margin-left: -8px;
62
+ margin-left: -9px;
63
63
  }
64
64
  }
65
65
  @keyframes so-tooltip-kf-left {
@@ -67,7 +67,7 @@
67
67
  margin-left: 0;
68
68
  }
69
69
  100% {
70
- margin-left: -8px;
70
+ margin-left: -9px;
71
71
  }
72
72
  }
73
73
  @-webkit-keyframes so-tooltip-kf-right {
@@ -75,7 +75,7 @@
75
75
  margin-left: 0;
76
76
  }
77
77
  100% {
78
- margin-left: 8px;
78
+ margin-left: 9px;
79
79
  }
80
80
  }
81
81
  @keyframes so-tooltip-kf-right {
@@ -83,7 +83,7 @@
83
83
  margin-left: 0;
84
84
  }
85
85
  100% {
86
- margin-left: 8px;
86
+ margin-left: 9px;
87
87
  }
88
88
  }
89
89
  .so-tooltip-animation {
@@ -113,17 +113,17 @@
113
113
  text-align: center;
114
114
  }
115
115
  .so-tooltip-top {
116
- margin-top: -8px;
116
+ margin-top: -9px;
117
117
  -webkit-transform: translate(-50%, -100%);
118
118
  -ms-transform: translate(-50%, -100%);
119
119
  transform: translate(-50%, -100%);
120
120
  }
121
121
  .so-tooltip-top .so-tooltip-arrow {
122
- top: 100%;
122
+ bottom: -5px;
123
123
  left: 50%;
124
- border-top: 5px solid var(--tooltip-bg, #000);
125
- border-right: 5px solid transparent;
126
- border-left: 5px solid transparent;
124
+ border-top: 6px solid var(--tooltip-bg, #000);
125
+ border-right: 6px solid transparent;
126
+ border-left: 6px solid transparent;
127
127
  -webkit-transform: translate(-50%, 0);
128
128
  -ms-transform: translate(-50%, 0);
129
129
  transform: translate(-50%, 0);
@@ -133,17 +133,17 @@
133
133
  animation: so-tooltip-kf-opacity 0.3s ease, so-tooltip-kf-top 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
134
134
  }
135
135
  .so-tooltip-right {
136
- margin-left: 8px;
136
+ margin-left: 9px;
137
137
  -webkit-transform: translate(0, -50%);
138
138
  -ms-transform: translate(0, -50%);
139
139
  transform: translate(0, -50%);
140
140
  }
141
141
  .so-tooltip-right .so-tooltip-arrow {
142
142
  top: 50%;
143
- right: 100%;
144
- border-top: 5px solid transparent;
145
- border-right: 5px solid var(--tooltip-bg, #000);
146
- border-bottom: 5px solid transparent;
143
+ left: -5px;
144
+ border-top: 6px solid transparent;
145
+ border-right: 6px solid var(--tooltip-bg, #000);
146
+ border-bottom: 6px solid transparent;
147
147
  -webkit-transform: translateY(-50%);
148
148
  -ms-transform: translateY(-50%);
149
149
  transform: translateY(-50%);
@@ -153,17 +153,17 @@
153
153
  animation: so-tooltip-kf-opacity 0.3s ease, so-tooltip-kf-right 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
154
154
  }
155
155
  .so-tooltip-left {
156
- margin-left: -8px;
156
+ margin-left: -9px;
157
157
  -webkit-transform: translate(-100%, -50%);
158
158
  -ms-transform: translate(-100%, -50%);
159
159
  transform: translate(-100%, -50%);
160
160
  }
161
161
  .so-tooltip-left .so-tooltip-arrow {
162
162
  top: 50%;
163
- left: 100%;
164
- border-top: 5px solid transparent;
165
- border-bottom: 5px solid transparent;
166
- border-left: 5px solid var(--tooltip-bg, #000);
163
+ right: -5px;
164
+ border-top: 6px solid transparent;
165
+ border-bottom: 6px solid transparent;
166
+ border-left: 6px solid var(--tooltip-bg, #000);
167
167
  -webkit-transform: translateY(-50%);
168
168
  -ms-transform: translateY(-50%);
169
169
  transform: translateY(-50%);
@@ -173,20 +173,20 @@
173
173
  animation: so-tooltip-kf-opacity 0.3s ease, so-tooltip-kf-left 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
174
174
  }
175
175
  .so-tooltip-bottom {
176
- margin-top: 8px;
176
+ margin-top: 9px;
177
177
  -webkit-transform: translateX(-50%);
178
178
  -ms-transform: translateX(-50%);
179
179
  transform: translateX(-50%);
180
180
  }
181
181
  .so-tooltip-bottom .so-tooltip-arrow {
182
- top: 0;
182
+ top: -5px;
183
183
  left: 50%;
184
- border-right: 5px solid transparent;
185
- border-bottom: 5px solid var(--tooltip-bg, #000);
186
- border-left: 5px solid transparent;
187
- -webkit-transform: translate(-50%, -100%);
188
- -ms-transform: translate(-50%, -100%);
189
- transform: translate(-50%, -100%);
184
+ border-right: 6px solid transparent;
185
+ border-bottom: 6px solid var(--tooltip-bg, #000);
186
+ border-left: 6px solid transparent;
187
+ -webkit-transform: translate(-50%, 0);
188
+ -ms-transform: translate(-50%, 0);
189
+ transform: translate(-50%, 0);
190
190
  }
191
191
  .so-tooltip-bottom.so-tooltip-animation {
192
192
  -webkit-animation: so-tooltip-kf-opacity 0.3s ease, so-tooltip-kf-bottom 0.3s cubic-bezier(0.71, 1.7, 0.77, 1.24);
package/css/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import './styles/normalize.less'
3
3
  import * as utils from './utils'
4
4
 
5
- export default { utils, version: '1.8.0' }
5
+ export default { utils, version: '1.8.4' }
6
6
  export { utils }
7
7
  export { setLocale } from './locale'
8
8
  export { color, style } from './utils/expose'
package/css/index.js CHANGED
@@ -222,6 +222,6 @@ exports.Upload = _Upload.default;
222
222
  // Created by scripts/src-index.js.
223
223
  var _default = {
224
224
  utils: utils,
225
- version: '1.8.0'
225
+ version: '1.8.4'
226
226
  };
227
227
  exports.default = _default;