@trionesdev/antd-mobile-react 0.0.2-beta.16 → 0.0.2-beta.17

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 (118) hide show
  1. package/LICENSE +21 -21
  2. package/dist/ActionSheet/style.scss +52 -52
  3. package/dist/Avatar/demo/base.js +2 -2
  4. package/dist/Avatar/demo/style.scss +6 -6
  5. package/dist/Badge/demo/base.js +2 -2
  6. package/dist/Badge/demo/base.scss +6 -6
  7. package/dist/Button/button.d.ts +2 -1
  8. package/dist/Button/button.js +1 -1
  9. package/dist/Button/demo/base.js +2 -2
  10. package/dist/Button/style.scss +234 -234
  11. package/dist/Calendar/style.scss +85 -85
  12. package/dist/Calendar/touchable-calendar-grid.js +9 -9
  13. package/dist/CalendarDatetimePicker/style.scss +54 -54
  14. package/dist/CalendarDatetimePickerCell/CalendarDatetimePickerCell.d.ts +5 -4
  15. package/dist/CalendarDatetimePickerCell/CalendarDatetimePickerCell.js +7 -6
  16. package/dist/CalendarDatetimePickerCell/demo/base.js +2 -3
  17. package/dist/CalendarDatetimePickerCell/index.d.ts +1 -1
  18. package/dist/CalendarDatetimePickerCell/index.js +1 -1
  19. package/dist/CalendarDatetimePickerCell/style.scss +10 -10
  20. package/dist/CalendarPicker/style.scss +31 -31
  21. package/dist/CalendarPickerCell/CalendarPickerCell.d.ts +2 -2
  22. package/dist/CalendarPickerCell/CalendarPickerCell.js +3 -3
  23. package/dist/CalendarPickerCell/CalendarRangePickerCell.d.ts +2 -2
  24. package/dist/CalendarPickerCell/CalendarRangePickerCell.js +3 -3
  25. package/dist/CalendarPickerCell/demo/base.js +2 -4
  26. package/dist/Card/demo/base.js +2 -2
  27. package/dist/Card/demo/base.scss +18 -18
  28. package/dist/CascaderPicker/style.scss +45 -45
  29. package/dist/CascaderPickerCell/CascaderPickerCell.d.ts +2 -2
  30. package/dist/CascaderPickerCell/CascaderPickerCell.js +3 -3
  31. package/dist/CascaderPickerCell/demo/base.js +1 -2
  32. package/dist/CascaderPickerCell/style.scss +24 -24
  33. package/dist/Cell/demo/base.js +1 -1
  34. package/dist/Checkbox/demo/base.js +2 -2
  35. package/dist/ConfigProvider/demo/base.js +2 -2
  36. package/dist/DemoBlock/index.scss +20 -20
  37. package/dist/DemoDescription/index.scss +3 -3
  38. package/dist/Divider/demo/base.js +2 -2
  39. package/dist/Ellipsis/demo/base.js +2 -2
  40. package/dist/Empty/demo/base.js +2 -2
  41. package/dist/ErrorBlock/demo/base.js +2 -2
  42. package/dist/FloatButton/style.scss +123 -123
  43. package/dist/Footer/demo/base.js +2 -2
  44. package/dist/Form/FormItem/{form-item-input.d.ts → form-item-content.d.ts} +3 -1
  45. package/dist/Form/FormItem/{form-item-input.js → form-item-content.js} +1 -1
  46. package/dist/Form/FormItem/form-item-label.d.ts +3 -3
  47. package/dist/Form/FormItem/form-item-label.js +10 -8
  48. package/dist/Form/FormItem/form-item.d.ts +33 -4
  49. package/dist/Form/FormItem/form-item.js +22 -21
  50. package/dist/Form/demo/input.js +6 -2
  51. package/dist/Form/demo/vertical.js +45 -0
  52. package/dist/Form/index.d.ts +2 -2
  53. package/dist/Form/style.scss +106 -67
  54. package/dist/FormCell/index.d.ts +3 -0
  55. package/dist/FormCell/index.js +2 -0
  56. package/dist/Grid/demo/base.js +2 -2
  57. package/dist/Grid/demo/base.scss +7 -7
  58. package/dist/Icon/demo/base.js +2 -2
  59. package/dist/Image/demo/base.js +2 -2
  60. package/dist/Image/demo/base.scss +4 -4
  61. package/dist/Image/style.scss +30 -30
  62. package/dist/ImagesPreview/style.scss +34 -34
  63. package/dist/ImagesWall/style.scss +70 -70
  64. package/dist/Input/demo/base.js +28 -2
  65. package/dist/Input/index.scss +240 -223
  66. package/dist/Input/input-affix-wrapper.d.ts +3 -1
  67. package/dist/Input/input-affix-wrapper.js +4 -4
  68. package/dist/Input/input.d.ts +3 -1
  69. package/dist/Input/input.js +5 -2
  70. package/dist/Loading/DotLoading.d.ts +1 -0
  71. package/dist/Loading/DotLoading.js +1 -0
  72. package/dist/Loading/SpinLoading.d.ts +1 -0
  73. package/dist/Loading/SpinLoading.js +1 -0
  74. package/dist/Loading/demo/base.d.ts +3 -0
  75. package/dist/{SpinLoading → Loading}/demo/base.js +8 -2
  76. package/dist/Loading/demo/dot-loading.d.ts +3 -0
  77. package/dist/Loading/demo/dot-loading.js +25 -0
  78. package/dist/Loading/index.d.ts +5 -0
  79. package/dist/Loading/index.js +3 -0
  80. package/dist/NavBar/demo/base.scss +5 -5
  81. package/dist/NoticeBar/demo/base.js +2 -2
  82. package/dist/Overlay/style.scss +20 -20
  83. package/dist/PageIndicator/demo/base.js +2 -2
  84. package/dist/Picker/style.scss +44 -44
  85. package/dist/PickerView/style.scss +72 -72
  86. package/dist/Popup/demo/base.js +2 -2
  87. package/dist/Popup/style.scss +129 -129
  88. package/dist/Radio/demo/base.scss +4 -4
  89. package/dist/Result/demo/base.js +2 -2
  90. package/dist/SafeArea/demo/base.scss +18 -18
  91. package/dist/ScrollView/style.scss +19 -19
  92. package/dist/SideBar/side-bar.js +6 -6
  93. package/dist/SideBar/style.scss +85 -85
  94. package/dist/Skeleton/demo/base.d.ts +3 -0
  95. package/dist/Skeleton/demo/base.js +8 -0
  96. package/dist/Skeleton/index.d.ts +3 -0
  97. package/dist/Skeleton/index.js +2 -0
  98. package/dist/Space/demo/base.js +2 -2
  99. package/dist/Swiper/style.scss +54 -54
  100. package/dist/Switch/demo/base.js +2 -2
  101. package/dist/TabBar/demo/base.js +2 -2
  102. package/dist/Tag/demo/base.js +2 -2
  103. package/dist/Tag/demo/style.scss +8 -8
  104. package/dist/Toast/style.scss +63 -63
  105. package/dist/VerificationCodeInput/style.scss +20 -20
  106. package/dist/WaterMark/demo/demo1.js +2 -2
  107. package/dist/WaterMark/demo/demo1.scss +6 -6
  108. package/dist/WaterMark/demo/demo2.js +2 -2
  109. package/dist/index.d.ts +20 -18
  110. package/dist/index.js +2 -1
  111. package/dist/style/variable.scss +1 -1
  112. package/dist/utils/type.js +36 -36
  113. package/dist/utils/with-default-props.js +4 -4
  114. package/package.json +9 -13
  115. package/readme.md +43 -43
  116. package/dist/SpinLoading/index.d.ts +0 -3
  117. package/dist/SpinLoading/index.js +0 -2
  118. /package/dist/{SpinLoading/demo/base.d.ts → Form/demo/vertical.d.ts} +0 -0
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) fengxiaotx@163.com
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) fengxiaotx@163.com
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,52 +1,52 @@
1
- @use "../style/variable" as variable;
2
-
3
- $actionSheetCls: 'triones-antm-action-sheet';
4
-
5
- .#{$actionSheetCls} {
6
- display: flex;
7
- flex-direction: column;
8
- background-color: variable.$trionesColorFill;
9
- border-top-left-radius: variable.$trionesBorderRadius;
10
- border-top-right-radius: variable.$trionesBorderRadius;
11
- overflow: hidden;
12
- gap: 2Px;
13
- &-body{
14
-
15
- }
16
- &-title{
17
- display: flex;
18
- justify-content: center;
19
- align-items: center;
20
- min-height: 48Px;
21
- background-color: white;
22
- font-size: 18Px;
23
- border-bottom: 1Px solid variable.$trionesBorderColor;
24
- }
25
- &-actions{
26
- &-item{
27
- display: flex;
28
- justify-content: center;
29
- align-items: center;
30
- min-height: 48Px;
31
- background-color: white;
32
- cursor: default;
33
- position: relative;
34
- font-size: 18Px;
35
- &:hover{
36
- opacity: 0.8;
37
- }
38
- }
39
- }
40
- &-cancel{
41
- display: flex;
42
- justify-content: center;
43
- align-items: center;
44
- min-height: 48Px;
45
- font-size: 18Px;
46
- background-color: white;
47
- cursor: default;
48
- &:hover{
49
- opacity: 0.8;
50
- }
51
- }
52
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $actionSheetCls: 'triones-antm-action-sheet';
4
+
5
+ .#{$actionSheetCls} {
6
+ display: flex;
7
+ flex-direction: column;
8
+ background-color: variable.$trionesColorFill;
9
+ border-top-left-radius: variable.$trionesBorderRadius;
10
+ border-top-right-radius: variable.$trionesBorderRadius;
11
+ overflow: hidden;
12
+ gap: 2Px;
13
+ &-body{
14
+
15
+ }
16
+ &-title{
17
+ display: flex;
18
+ justify-content: center;
19
+ align-items: center;
20
+ min-height: 48Px;
21
+ background-color: white;
22
+ font-size: 18Px;
23
+ border-bottom: 1Px solid variable.$trionesBorderColor;
24
+ }
25
+ &-actions{
26
+ &-item{
27
+ display: flex;
28
+ justify-content: center;
29
+ align-items: center;
30
+ min-height: 48Px;
31
+ background-color: white;
32
+ cursor: default;
33
+ position: relative;
34
+ font-size: 18Px;
35
+ &:hover{
36
+ opacity: 0.8;
37
+ }
38
+ }
39
+ }
40
+ &-cancel{
41
+ display: flex;
42
+ justify-content: center;
43
+ align-items: center;
44
+ min-height: 48Px;
45
+ font-size: 18Px;
46
+ background-color: white;
47
+ cursor: default;
48
+ &:hover{
49
+ opacity: 0.8;
50
+ }
51
+ }
52
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * compact: true
1
+ /**
2
+ * compact: true
3
3
  */
4
4
  import React from 'react';
5
5
  import { DemoBlock } from "../../DemoBlock";
@@ -1,6 +1,6 @@
1
- .avatar-content {
2
- display: flex;
3
- align-items: center;
4
- flex-wrap: wrap;
5
- gap: 16px;
6
- }
1
+ .avatar-content {
2
+ display: flex;
3
+ align-items: center;
4
+ flex-wrap: wrap;
5
+ gap: 16px;
6
+ }
@@ -1,5 +1,5 @@
1
- /**
2
- * compact: true
1
+ /**
2
+ * compact: true
3
3
  */
4
4
 
5
5
  import React from 'react';
@@ -1,6 +1,6 @@
1
- .badge-demo {
2
- display: flex;
3
- align-items: center;
4
- flex-wrap: wrap;
5
- gap: 20Px;
6
- }
1
+ .badge-demo {
2
+ display: flex;
3
+ align-items: center;
4
+ flex-wrap: wrap;
5
+ gap: 20Px;
6
+ }
@@ -1,5 +1,6 @@
1
1
  import React, { FC, PropsWithChildren } from 'react';
2
2
  import './style.scss';
3
+ import { AntSize } from "@trionesdev/antd-mobile-base-react";
3
4
  export type ButtonProps = {
4
5
  /**
5
6
  * @description block 按钮宽高自适应
@@ -43,7 +44,7 @@ export type ButtonProps = {
43
44
  * @description 按钮样式
44
45
  */
45
46
  variant?: 'outlined' | 'dashed' | 'solid' | 'filled' | 'text' | 'link';
46
- size?: 'small' | 'middle' | 'large';
47
+ size?: AntSize;
47
48
  /**
48
49
  * @description 点击事件
49
50
  */
@@ -25,7 +25,7 @@ export var Button = function Button(_ref) {
25
25
  style = _ref.style,
26
26
  icon = _ref.icon,
27
27
  _ref$iconPosition = _ref.iconPosition,
28
- iconPosition = _ref$iconPosition === void 0 ? 'start' : _ref$iconPosition,
28
+ iconPosition = _ref$iconPosition === void 0 ? 'medium' : _ref$iconPosition,
29
29
  loading = _ref.loading,
30
30
  variant = _ref.variant,
31
31
  _ref$size = _ref.size,
@@ -1,5 +1,5 @@
1
- /**
2
- * compact: true
1
+ /**
2
+ * compact: true
3
3
  */
4
4
  import { DemoBlock } from "../../DemoBlock";
5
5
  import React from 'react';