@trionesdev/antd-mobile-base-react 0.0.2-beta.2 → 0.0.2-beta.20

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 (249) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/dist/Alert/alert.js +1 -1
  4. package/dist/Alert/style.scss +69 -69
  5. package/dist/Avatar/avatar.d.ts +4 -1
  6. package/dist/Avatar/avatar.js +19 -6
  7. package/dist/Avatar/style.scss +17 -16
  8. package/dist/Badge/style.scss +100 -100
  9. package/dist/Card/style.scss +35 -35
  10. package/dist/CascaderView/cascader-column-item.js +1 -1
  11. package/dist/CascaderView/style.scss +22 -22
  12. package/dist/Cell/CellGroup.js +53 -14
  13. package/dist/Cell/cell.js +52 -15
  14. package/dist/Cell/context.d.ts +19 -0
  15. package/dist/Cell/context.js +2 -0
  16. package/dist/Cell/styles.scss +81 -52
  17. package/dist/Cell/types.d.ts +30 -7
  18. package/dist/Checkbox/checkbox-button.d.ts +6 -2
  19. package/dist/Checkbox/checkbox-button.js +6 -18
  20. package/dist/Checkbox/checkbox-group.js +19 -4
  21. package/dist/Checkbox/checkbox-round.d.ts +8 -0
  22. package/dist/Checkbox/checkbox-round.js +35 -0
  23. package/dist/Checkbox/checkbox.js +49 -34
  24. package/dist/Checkbox/index.d.ts +0 -2
  25. package/dist/Checkbox/index.js +0 -2
  26. package/dist/Checkbox/index.scss +165 -151
  27. package/dist/Checkbox/types.d.ts +11 -1
  28. package/dist/ConfigProvider/config-provider.d.ts +1 -0
  29. package/dist/DemoBlock/index.scss +20 -20
  30. package/dist/DemoDescription/index.scss +3 -3
  31. package/dist/Descriptions/style.scss +65 -65
  32. package/dist/Divider/divider.d.ts +1 -1
  33. package/dist/Divider/divider.js +5 -3
  34. package/dist/Divider/style.scss +62 -62
  35. package/dist/Ellipsis/style.scss +13 -13
  36. package/dist/Empty/style.scss +29 -29
  37. package/dist/ErrorBlock/demo/base.js +2 -2
  38. package/dist/ErrorBlock/style.scss +62 -62
  39. package/dist/Footer/style.scss +55 -55
  40. package/dist/Form/ErrorList.d.ts +4 -0
  41. package/dist/Form/ErrorList.js +9 -0
  42. package/dist/Form/context.d.ts +5 -2
  43. package/dist/Form/context.js +2 -1
  44. package/dist/Form/form.d.ts +25 -12
  45. package/dist/Form/form.js +25 -13
  46. package/dist/Form/hooks/useForm.js +1 -8
  47. package/dist/Form/hooks/useFormContext.js +1 -2
  48. package/dist/Form/index.d.ts +8 -3
  49. package/dist/Form/index.js +7 -2
  50. package/dist/Form/styles.scss +11 -0
  51. package/dist/Form/types.d.ts +8 -0
  52. package/dist/FormCell/FormCell.d.ts +21 -0
  53. package/dist/FormCell/FormCell.js +56 -0
  54. package/dist/FormCell/index.d.ts +4 -0
  55. package/dist/FormCell/index.js +3 -0
  56. package/dist/FormCell/styles.scss +103 -0
  57. package/dist/Grid/style.scss +17 -17
  58. package/dist/Icon/demo/base.js +2 -2
  59. package/dist/IndexedStack/IndexedStack.d.ts +9 -0
  60. package/dist/IndexedStack/IndexedStack.js +27 -0
  61. package/dist/IndexedStack/index.d.ts +3 -0
  62. package/dist/IndexedStack/index.js +2 -0
  63. package/dist/InputNumber/input-number.d.ts +3 -2
  64. package/dist/InputNumber/input-number.js +48 -26
  65. package/dist/InputNumber/style.scss +100 -43
  66. package/dist/Loading/DotLoading.d.ts +7 -0
  67. package/dist/{Mask/mask-modal.js → Loading/DotLoading.js} +25 -25
  68. package/dist/{SpinLoading/spin-loading.d.ts → Loading/SpinLoading.d.ts} +0 -1
  69. package/dist/Loading/SpinLoading.js +69 -0
  70. package/dist/Loading/index.d.ts +6 -0
  71. package/dist/Loading/index.js +4 -0
  72. package/dist/Loading/style.scss +113 -0
  73. package/dist/NavBar/nav-bar.d.ts +1 -0
  74. package/dist/NavBar/nav-bar.js +3 -2
  75. package/dist/NavBar/style.scss +65 -61
  76. package/dist/NoticeBar/style.scss +130 -130
  77. package/dist/PageIndicator/style.scss +59 -59
  78. package/dist/Progress/Progress.d.ts +39 -0
  79. package/dist/Progress/Progress.js +56 -0
  80. package/dist/Progress/ProgressCircle.d.ts +15 -0
  81. package/dist/Progress/ProgressCircle.js +117 -0
  82. package/dist/Progress/ProgressLine.d.ts +15 -0
  83. package/dist/Progress/ProgressLine.js +87 -0
  84. package/dist/Progress/index.d.ts +3 -0
  85. package/dist/Progress/index.js +2 -0
  86. package/dist/Progress/style.scss +33 -0
  87. package/dist/Progress/types.d.ts +6 -0
  88. package/dist/Progress/types.js +2 -0
  89. package/dist/Radio/RadioGroup.js +3 -3
  90. package/dist/Radio/radio.js +1 -1
  91. package/dist/Radio/style.scss +154 -138
  92. package/dist/Radio/types.d.ts +6 -4
  93. package/dist/Rate/rate.js +1 -1
  94. package/dist/Rate/style.scss +37 -37
  95. package/dist/Result/demo/base.js +2 -2
  96. package/dist/Result/style.scss +73 -73
  97. package/dist/Result/use-result-icon.js +1 -1
  98. package/dist/SafeArea/style.scss +20 -18
  99. package/dist/Scaffold/style.scss +17 -16
  100. package/dist/Segmented/Segmented.d.ts +57 -0
  101. package/dist/Segmented/Segmented.js +82 -0
  102. package/dist/Segmented/index.d.ts +2 -0
  103. package/dist/Segmented/index.js +1 -0
  104. package/dist/Segmented/style.scss +75 -0
  105. package/dist/Skeleton/Skeleton.d.ts +86 -0
  106. package/dist/Skeleton/Skeleton.js +263 -0
  107. package/dist/Skeleton/index.d.ts +3 -0
  108. package/dist/Skeleton/index.js +2 -0
  109. package/dist/Skeleton/style.scss +215 -0
  110. package/dist/Space/space.d.ts +1 -0
  111. package/dist/Space/space.js +20 -6
  112. package/dist/Space/style.scss +101 -77
  113. package/dist/Stepper/index.d.ts +3 -0
  114. package/dist/Stepper/index.js +2 -0
  115. package/dist/Stepper/stepper.d.ts +14 -0
  116. package/dist/Stepper/stepper.js +92 -0
  117. package/dist/Stepper/style.scss +100 -0
  118. package/dist/Steps/HorizontalSteps.js +10 -3
  119. package/dist/Steps/VerticalSteps.js +5 -2
  120. package/dist/Steps/style.scss +153 -146
  121. package/dist/Steps/types.d.ts +2 -0
  122. package/dist/Switch/style.scss +127 -128
  123. package/dist/Switch/switch.d.ts +2 -0
  124. package/dist/Switch/switch.js +6 -5
  125. package/dist/TabBar/demo/base.js +2 -2
  126. package/dist/TabBar/index.js +2 -1
  127. package/dist/TabBar/index.scss +37 -36
  128. package/dist/Tabs/style.scss +108 -108
  129. package/dist/Tag/style.scss +110 -86
  130. package/dist/Tag/tag.d.ts +4 -1
  131. package/dist/Tag/tag.js +8 -2
  132. package/dist/WaterMark/style.scss +17 -17
  133. package/dist/index.d.ts +17 -26
  134. package/dist/index.js +8 -13
  135. package/dist/style/css-variable.scss +6 -0
  136. package/dist/style/style.scss +52 -52
  137. package/dist/style/theme-dark.scss +24 -24
  138. package/dist/style/theme-default.scss +54 -54
  139. package/dist/style/variable.scss +180 -168
  140. package/dist/types.d.ts +10 -1
  141. package/dist/utils/type.js +36 -36
  142. package/dist/utils/with-default-props.js +4 -4
  143. package/package.json +5 -8
  144. package/dist/ActionSheet/ActionSheet.d.ts +0 -25
  145. package/dist/ActionSheet/ActionSheet.js +0 -77
  146. package/dist/ActionSheet/index.d.ts +0 -3
  147. package/dist/ActionSheet/index.js +0 -2
  148. package/dist/ActionSheet/style.scss +0 -51
  149. package/dist/CascaderPicker/cascader-picker.d.ts +0 -27
  150. package/dist/CascaderPicker/cascader-picker.js +0 -88
  151. package/dist/CascaderPicker/index.d.ts +0 -3
  152. package/dist/CascaderPicker/index.js +0 -2
  153. package/dist/CascaderPicker/style.scss +0 -42
  154. package/dist/Form/FormItem/form-item-input.d.ts +0 -15
  155. package/dist/Form/FormItem/form-item-input.js +0 -39
  156. package/dist/Form/FormItem/form-item-label.d.ts +0 -13
  157. package/dist/Form/FormItem/form-item-label.js +0 -25
  158. package/dist/Form/FormItem/form-item.d.ts +0 -21
  159. package/dist/Form/FormItem/form-item.js +0 -70
  160. package/dist/Form/FormItem/index.d.ts +0 -5
  161. package/dist/Form/FormItem/index.js +0 -3
  162. package/dist/Form/style.scss +0 -45
  163. package/dist/Input/base-input.d.ts +0 -14
  164. package/dist/Input/base-input.js +0 -63
  165. package/dist/Input/index.d.ts +0 -12
  166. package/dist/Input/index.js +0 -9
  167. package/dist/Input/index.scss +0 -173
  168. package/dist/Input/input-affix-wrapper.d.ts +0 -8
  169. package/dist/Input/input-affix-wrapper.js +0 -50
  170. package/dist/Input/input-opt.d.ts +0 -16
  171. package/dist/Input/input-opt.js +0 -93
  172. package/dist/Input/input-password.d.ts +0 -7
  173. package/dist/Input/input-password.js +0 -47
  174. package/dist/Input/input.d.ts +0 -15
  175. package/dist/Input/input.js +0 -47
  176. package/dist/Input/textarea.d.ts +0 -13
  177. package/dist/Input/textarea.js +0 -45
  178. package/dist/Input/types.d.ts +0 -1
  179. package/dist/Input/types.js +0 -1
  180. package/dist/Mask/index.d.ts +0 -3
  181. package/dist/Mask/index.js +0 -2
  182. package/dist/Mask/mask-modal.d.ts +0 -45
  183. package/dist/Mask/mask.d.ts +0 -5
  184. package/dist/Mask/mask.js +0 -19
  185. package/dist/Mask/style.scss +0 -20
  186. package/dist/Picker/index.d.ts +0 -3
  187. package/dist/Picker/index.js +0 -2
  188. package/dist/Picker/picker.d.ts +0 -19
  189. package/dist/Picker/picker.js +0 -97
  190. package/dist/Picker/style.scss +0 -41
  191. package/dist/PickerView/index.d.ts +0 -4
  192. package/dist/PickerView/index.js +0 -2
  193. package/dist/PickerView/picker-view-column-item.d.ts +0 -7
  194. package/dist/PickerView/picker-view-column-item.js +0 -11
  195. package/dist/PickerView/picker-view-column.d.ts +0 -10
  196. package/dist/PickerView/picker-view-column.js +0 -117
  197. package/dist/PickerView/picker-view.d.ts +0 -12
  198. package/dist/PickerView/picker-view.js +0 -60
  199. package/dist/PickerView/style.scss +0 -72
  200. package/dist/PickerView/types.d.ts +0 -4
  201. package/dist/Popup/index.d.ts +0 -3
  202. package/dist/Popup/index.js +0 -2
  203. package/dist/Popup/popup-modal.d.ts +0 -52
  204. package/dist/Popup/popup-modal.js +0 -74
  205. package/dist/Popup/popup.d.ts +0 -4
  206. package/dist/Popup/popup.js +0 -56
  207. package/dist/Popup/style.scss +0 -53
  208. package/dist/ScrollView/index.d.ts +0 -4
  209. package/dist/ScrollView/index.js +0 -2
  210. package/dist/ScrollView/scroll-view.d.ts +0 -4
  211. package/dist/ScrollView/scroll-view.js +0 -55
  212. package/dist/ScrollView/style.scss +0 -19
  213. package/dist/ScrollView/types.d.ts +0 -26
  214. package/dist/ScrollView/types.js +0 -1
  215. package/dist/SideBar/SideBarContext.d.ts +0 -18
  216. package/dist/SideBar/SideBarContext.js +0 -2
  217. package/dist/SideBar/index.d.ts +0 -3
  218. package/dist/SideBar/index.js +0 -2
  219. package/dist/SideBar/side-bar.d.ts +0 -25
  220. package/dist/SideBar/side-bar.js +0 -351
  221. package/dist/SideBar/style.scss +0 -85
  222. package/dist/SideBar/types.d.ts +0 -7
  223. package/dist/SideBar/types.js +0 -1
  224. package/dist/SpinLoading/demo/base.d.ts +0 -3
  225. package/dist/SpinLoading/demo/base.js +0 -21
  226. package/dist/SpinLoading/index.d.ts +0 -3
  227. package/dist/SpinLoading/index.js +0 -2
  228. package/dist/SpinLoading/spin-loading.js +0 -59
  229. package/dist/SpinLoading/spin-loading.scss +0 -40
  230. package/dist/Tabs/demo/base.d.ts +0 -3
  231. package/dist/Tabs/demo/base.js +0 -59
  232. package/dist/Tag/demo/base.d.ts +0 -7
  233. package/dist/Tag/demo/base.js +0 -67
  234. package/dist/Tag/demo/style.scss +0 -8
  235. package/dist/Toast/index.d.ts +0 -5
  236. package/dist/Toast/index.js +0 -3
  237. package/dist/Toast/style.scss +0 -63
  238. package/dist/Toast/toast-modal.d.ts +0 -18
  239. package/dist/Toast/toast-modal.js +0 -112
  240. package/dist/Toast/toast.d.ts +0 -7
  241. package/dist/Toast/toast.js +0 -78
  242. package/dist/VerificationCodeInput/demo/base.d.ts +0 -3
  243. package/dist/VerificationCodeInput/demo/base.js +0 -11
  244. package/dist/VerificationCodeInput/index.d.ts +0 -3
  245. package/dist/VerificationCodeInput/index.js +0 -2
  246. package/dist/VerificationCodeInput/style.scss +0 -20
  247. package/dist/VerificationCodeInput/verification-code-input.d.ts +0 -24
  248. package/dist/VerificationCodeInput/verification-code-input.js +0 -99
  249. /package/dist/{PickerView → Form}/types.js +0 -0
@@ -1,138 +1,154 @@
1
- @use "../style/variable" as *;
2
-
3
- $checkboxDisabledColor: rgba(0, 0, 0, 0.25) !default;
4
-
5
- $class-prefix-radio: 'triones-antm-radio';
6
-
7
- .#{$class-prefix-radio}-wrapper {
8
- cursor: pointer;
9
- display: flex;
10
- align-items: center;
11
- gap: 8Px;
12
-
13
- .#{$class-prefix-radio} {
14
- &-fake {
15
- width: 22PX;
16
- height: 22PX;
17
-
18
- .triones-antm-icon {
19
- //position: absolute;
20
- }
21
-
22
- &-checked {
23
- height: 100%;
24
- width: 100%;
25
- display: inline-flex;
26
- justify-content: center;
27
- align-items: center;
28
- background-color: $trionesColorPrimary;
29
- color: white;
30
- border-radius: 50vh;
31
- box-sizing: border-box;
32
- overflow: hidden;
33
-
34
- }
35
-
36
- &-unchecked {
37
- height: 100%;
38
- width: 100%;
39
- display: inline-flex;
40
- justify-content: center;
41
- align-items: center;
42
- border-radius: 50vh;
43
- border: 1PX solid $trionesBorderColor;
44
- box-sizing: border-box;
45
- }
46
-
47
- }
48
-
49
-
50
-
51
- &-label {
52
- flex: 1 auto;
53
- }
54
- }
55
-
56
- &.#{$class-prefix-radio} {
57
- &-disabled {
58
- color: $checkboxDisabledColor;
59
- pointer-events: none;
60
-
61
- .#{$class-prefix-radio}-fake-checked {
62
- background-color: $checkboxDisabledColor;
63
- }
64
- }
65
- &-block {
66
- width: 100%;
67
- }
68
- }
69
-
70
- }
71
-
72
-
73
- .#{$class-prefix-radio}-group {
74
- display: flex;
75
- gap: 8Px;
76
- &-horizontal{
77
- flex-direction: row;
78
- }
79
- &-vertical{
80
- flex-direction: column;
81
- }
82
- }
83
-
84
- .#{$class-prefix-radio}-button-group {
85
- display: flex;
86
- }
87
-
88
- .#{$class-prefix-radio}-button-wrapper {
89
- display: inline-flex;
90
- position: relative;
91
- border-top: 1PX solid $trionesBorderColor;
92
- border-bottom: 1PX solid $trionesBorderColor;
93
- border-right: 1PX solid $trionesBorderColor;
94
-
95
- &:first-child {
96
- border-left: 1PX solid $trionesBorderColor;
97
- border-top-left-radius: $trionesBorderRadius;
98
- border-bottom-left-radius: $trionesBorderRadius;
99
- }
100
-
101
- &:last-child {
102
- border-right: 1PX solid $trionesBorderColor;
103
- border-top-right-radius: $trionesBorderRadius;
104
- border-bottom-right-radius: $trionesBorderRadius;
105
- }
106
-
107
- &-checked {
108
- border-top: 1PX solid $trionesColorPrimary;
109
- border-bottom: 1PX solid $trionesColorPrimary;
110
- color: $trionesColorPrimary;
111
-
112
- &:first-child {
113
- border: 1PX solid $trionesColorPrimary;
114
- }
115
-
116
- &:not(:first-child) {
117
- &::before {
118
- content: " ";
119
- width: 1PX;
120
- background-color: $trionesColorPrimary;
121
- position: absolute;
122
- inset-block-start: -1Px;
123
- inset-inline-start: -1Px;
124
- height: 100%;
125
- padding-block: 1Px;
126
- }
127
-
128
- border-right: 1PX solid $trionesColorPrimary;
129
- }
130
- }
131
-
132
- .#{$class-prefix-radio}-button {
133
- cursor: pointer;
134
- display: inline-flex;
135
- padding: 8Px 12Px;
136
-
137
- }
138
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $checkboxDisabledColor: rgba(0, 0, 0, 0.25) !default;
4
+
5
+ $class-prefix-radio: 'triones-antm-radio';
6
+
7
+ .#{$class-prefix-radio}-wrapper {
8
+ cursor: pointer;
9
+ display: flex;
10
+ align-items: center;
11
+ gap: 8Px;
12
+
13
+ .#{$class-prefix-radio} {
14
+ flex-shrink: 0;
15
+ &-fake {
16
+ width: 20PX;
17
+ height: 20PX;
18
+ line-height: 0;
19
+ box-sizing: border-box;
20
+ overflow: hidden;
21
+
22
+ .triones-antm-icon {
23
+ //position: absolute;
24
+ font-size: variable.$trionesFontSize;
25
+ }
26
+
27
+ &-checked {
28
+ height: 100%;
29
+ width: 100%;
30
+ display: inline-flex;
31
+ justify-content: center;
32
+ align-items: center;
33
+ background-color: variable.$trionesColorPrimary;
34
+ color: white;
35
+ border-radius: 50vh;
36
+ box-sizing: border-box;
37
+ overflow: hidden;
38
+
39
+ .triones-antm-icon {
40
+ font-size: 14Px;
41
+ line-height: 1;
42
+ display: block;
43
+ }
44
+ }
45
+
46
+ &-unchecked {
47
+ height: 100%;
48
+ width: 100%;
49
+ display: inline-flex;
50
+ justify-content: center;
51
+ align-items: center;
52
+ border-radius: 50vh;
53
+ border: 1PX solid variable.$trionesBorderColor;
54
+ box-sizing: border-box;
55
+ }
56
+
57
+ }
58
+
59
+
60
+ &-label {
61
+ flex: 1 auto;
62
+ }
63
+ }
64
+
65
+ &.#{$class-prefix-radio} {
66
+ &-disabled {
67
+ color: $checkboxDisabledColor;
68
+ pointer-events: none;
69
+
70
+ .#{$class-prefix-radio}-fake-checked {
71
+ background-color: $checkboxDisabledColor;
72
+ }
73
+ }
74
+
75
+ &-block {
76
+ width: 100%;
77
+ }
78
+ }
79
+
80
+ }
81
+
82
+
83
+ .#{$class-prefix-radio}-group {
84
+
85
+ gap: 8Px;
86
+
87
+ &-horizontal {
88
+ display: inline-flex;
89
+ flex-direction: row;
90
+ align-items: center;
91
+ vertical-align: middle;
92
+ }
93
+
94
+ &-vertical {
95
+ display: flex;
96
+ flex-direction: column;
97
+ }
98
+ }
99
+
100
+ .#{$class-prefix-radio}-button-group {
101
+ display: flex;
102
+ }
103
+
104
+ .#{$class-prefix-radio}-button-wrapper {
105
+ display: inline-flex;
106
+ position: relative;
107
+ border-top: 1PX solid variable.$trionesBorderColor;
108
+ border-bottom: 1PX solid variable.$trionesBorderColor;
109
+ border-right: 1PX solid variable.$trionesBorderColor;
110
+
111
+ &:first-child {
112
+ border-left: 1PX solid variable.$trionesBorderColor;
113
+ border-top-left-radius: variable.$trionesBorderRadius;
114
+ border-bottom-left-radius: variable.$trionesBorderRadius;
115
+ }
116
+
117
+ &:last-child {
118
+ border-right: 1PX solid variable.$trionesBorderColor;
119
+ border-top-right-radius: variable.$trionesBorderRadius;
120
+ border-bottom-right-radius: variable.$trionesBorderRadius;
121
+ }
122
+
123
+ &-checked {
124
+ border-top: 1PX solid variable.$trionesColorPrimary;
125
+ border-bottom: 1PX solid variable.$trionesColorPrimary;
126
+ color: variable.$trionesColorPrimary;
127
+
128
+ &:first-child {
129
+ border: 1PX solid variable.$trionesColorPrimary;
130
+ }
131
+
132
+ &:not(:first-child) {
133
+ &::before {
134
+ content: " ";
135
+ width: 1PX;
136
+ background-color: variable.$trionesColorPrimary;
137
+ position: absolute;
138
+ inset-block-start: -1Px;
139
+ inset-inline-start: -1Px;
140
+ height: 100%;
141
+ padding-block: 1Px;
142
+ }
143
+
144
+ border-right: 1PX solid variable.$trionesColorPrimary;
145
+ }
146
+ }
147
+
148
+ .#{$class-prefix-radio}-button {
149
+ cursor: pointer;
150
+ display: inline-flex;
151
+ padding: 8Px 12Px;
152
+
153
+ }
154
+ }
@@ -41,6 +41,11 @@ export type RadioProps = {
41
41
  */
42
42
  onClick?: (event: React.MouseEvent<HTMLLabelElement, MouseEvent>) => void;
43
43
  };
44
+ export type RadioOptionProps = {
45
+ label?: React.ReactNode;
46
+ value?: any;
47
+ [key: string]: any;
48
+ };
44
49
  export interface RadioGroupProps {
45
50
  children?: ReactNode;
46
51
  className?: string;
@@ -51,8 +56,5 @@ export interface RadioGroupProps {
51
56
  shape?: 'button' | 'round';
52
57
  labelPosition?: 'left' | 'right';
53
58
  direction?: 'vertical' | 'horizontal';
54
- items?: {
55
- label: React.ReactNode;
56
- value: any;
57
- }[];
59
+ options?: RadioOptionProps[];
58
60
  }
package/dist/Rate/rate.js CHANGED
@@ -12,7 +12,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
12
12
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
13
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
14
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
- import { StarFill } from "../../../antd-mobile-icons-react";
15
+ import { StarFill } from '@trionesdev/antd-mobile-icons-react';
16
16
  import classNames from 'classnames';
17
17
  import React, { useState } from 'react';
18
18
  import { withNativeProps } from "../utils/native-props";
@@ -1,37 +1,37 @@
1
- $rateCls: 'triones-antm-rate';
2
-
3
- .#{$rateCls} {
4
- display: inline-flex;
5
- align-items: center;
6
-
7
- &-star-wrapper {
8
- position: relative;
9
- padding: 0 2px;
10
- cursor: pointer;
11
- }
12
-
13
- &-star {
14
- font-size: 20px;
15
- color: var(--inactive-color, #e8e8e8);
16
- transition: color 0.3s;
17
-
18
- &-active {
19
- color: var(--active-color, #ffb400);
20
- }
21
- }
22
-
23
- &-star-half-item {
24
- position: absolute;
25
- left: 2px;
26
- top: 0;
27
- width: 42%;
28
- height: 100%;
29
- overflow: hidden;
30
- }
31
-
32
- &-readonly {
33
- .#{$rateCls}-star-wrapper {
34
- cursor: default;
35
- }
36
- }
37
- }
1
+ $rateCls: 'triones-antm-rate';
2
+
3
+ .#{$rateCls} {
4
+ display: inline-flex;
5
+ align-items: center;
6
+
7
+ &-star-wrapper {
8
+ position: relative;
9
+ padding: 0 2px;
10
+ cursor: pointer;
11
+ }
12
+
13
+ &-star {
14
+ font-size: 20px;
15
+ color: var(--inactive-color, #e8e8e8);
16
+ transition: color 0.3s;
17
+
18
+ &-active {
19
+ color: var(--active-color, #ffb400);
20
+ }
21
+ }
22
+
23
+ &-star-half-item {
24
+ position: absolute;
25
+ left: 2px;
26
+ top: 0;
27
+ width: 42%;
28
+ height: 100%;
29
+ overflow: hidden;
30
+ }
31
+
32
+ &-readonly {
33
+ .#{$rateCls}-star-wrapper {
34
+ cursor: default;
35
+ }
36
+ }
37
+ }
@@ -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';
@@ -1,73 +1,73 @@
1
- $class-prefix-result: 'triones-antm-result';
2
- /* prettier-ignore */
3
- .#{$class-prefix-result} {
4
- padding: 32PX 12PX;
5
- background-color: var(--triones-antm-color-background);
6
-
7
- &-icon {
8
- box-sizing: border-box;
9
- width: 64PX;
10
- height: 64PX;
11
- margin: 0 auto 20PX auto;
12
- padding: 6PX;
13
-
14
- .antd-mobile-icon {
15
- font-size: 52PX;
16
- }
17
- }
18
-
19
- &-title {
20
- color: var(--triones-antm-color-text);
21
- font-size: var(--triones-antm-font-size-10);
22
- line-height: 1.4;
23
- text-align: center;
24
- }
25
-
26
- &-description {
27
- margin-top: 8PX;
28
- color: var(--triones-antm-color-weak);
29
- font-size: var(--triones-antm-font-size-main);
30
- line-height: 1.4;
31
- text-align: center;
32
- }
33
- }
34
-
35
- .#{$class-prefix-result}-success {
36
- .#{$class-prefix-result}-icon {
37
- .antd-mobile-icon {
38
- color: var(--triones-antm-color-primary);
39
- }
40
- }
41
- }
42
-
43
- .#{$class-prefix-result}-error {
44
- .#{$class-prefix-result}-icon {
45
- .antd-mobile-icon {
46
- color: var(--triones-antm-color-danger);
47
- }
48
- }
49
- }
50
-
51
- .#{$class-prefix-result}-info {
52
- .#{$class-prefix-result}-icon {
53
- .antd-mobile-icon {
54
- color: var(--triones-antm-color-primary);
55
- }
56
- }
57
- }
58
-
59
- .#{$class-prefix-result}-waiting {
60
- .#{$class-prefix-result}-icon {
61
- .antd-mobile-icon {
62
- color: var(--triones-antm-color-success);
63
- }
64
- }
65
- }
66
-
67
- .#{$class-prefix-result}-warning {
68
- .#{$class-prefix-result}-icon {
69
- .antd-mobile-icon {
70
- color: var(--triones-antm-color-warning);
71
- }
72
- }
73
- }
1
+ $class-prefix-result: 'triones-antm-result';
2
+ /* prettier-ignore */
3
+ .#{$class-prefix-result} {
4
+ padding: 32PX 12PX;
5
+ background-color: var(--triones-antm-color-background);
6
+
7
+ &-icon {
8
+ box-sizing: border-box;
9
+ width: 64PX;
10
+ height: 64PX;
11
+ margin: 0 auto 20PX auto;
12
+ padding: 6PX;
13
+
14
+ .antd-mobile-icon {
15
+ font-size: 52PX;
16
+ }
17
+ }
18
+
19
+ &-title {
20
+ color: var(--triones-antm-color-text);
21
+ font-size: var(--triones-antm-font-size-10);
22
+ line-height: 1.4;
23
+ text-align: center;
24
+ }
25
+
26
+ &-description {
27
+ margin-top: 8PX;
28
+ color: var(--triones-antm-color-weak);
29
+ font-size: var(--triones-antm-font-size-main);
30
+ line-height: 1.4;
31
+ text-align: center;
32
+ }
33
+ }
34
+
35
+ .#{$class-prefix-result}-success {
36
+ .#{$class-prefix-result}-icon {
37
+ .antd-mobile-icon {
38
+ color: var(--triones-antm-color-primary);
39
+ }
40
+ }
41
+ }
42
+
43
+ .#{$class-prefix-result}-error {
44
+ .#{$class-prefix-result}-icon {
45
+ .antd-mobile-icon {
46
+ color: var(--triones-antm-color-danger);
47
+ }
48
+ }
49
+ }
50
+
51
+ .#{$class-prefix-result}-info {
52
+ .#{$class-prefix-result}-icon {
53
+ .antd-mobile-icon {
54
+ color: var(--triones-antm-color-primary);
55
+ }
56
+ }
57
+ }
58
+
59
+ .#{$class-prefix-result}-waiting {
60
+ .#{$class-prefix-result}-icon {
61
+ .antd-mobile-icon {
62
+ color: var(--triones-antm-color-success);
63
+ }
64
+ }
65
+ }
66
+
67
+ .#{$class-prefix-result}-warning {
68
+ .#{$class-prefix-result}-icon {
69
+ .antd-mobile-icon {
70
+ color: var(--triones-antm-color-warning);
71
+ }
72
+ }
73
+ }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import ConfigProvider from "../ConfigProvider";
3
- import { CheckCircleOutline, CloseCircleOutline, InformationCircleOutline, ClockCircleOutline, ExclamationTriangleOutline } from "../../../antd-mobile-icons-react";
3
+ import { CheckCircleOutline, CloseCircleOutline, InformationCircleOutline, ClockCircleOutline, ExclamationTriangleOutline } from '@trionesdev/antd-mobile-icons-react';
4
4
  export var useResultIcon = function useResultIcon(status) {
5
5
  var _ConfigProvider$useCo = ConfigProvider.useConfig(),
6
6
  _ConfigProvider$useCo2 = _ConfigProvider$useCo.result,
@@ -1,18 +1,20 @@
1
- @use "../style/variable" as *;
2
-
3
- $class-prefix-safe-area: 'triones-antm-safe-area';
4
-
5
- .#{$class-prefix-safe-area} {
6
- height: 100%;
7
- display: block;
8
- width: 100%;
9
- box-sizing: border-box;
10
-
11
- &-position-top {
12
- padding-top: calc(env(safe-area-inset-top) * $trionesSafeAreaMultiple);
13
- }
14
-
15
- &-position-bottom {
16
- padding-bottom: calc(env(safe-area-inset-bottom) * $trionesSafeAreaMultiple);
17
- }
18
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $class-prefix-safe-area: 'triones-antm-safe-area';
4
+
5
+ $safeAreaMultiple : variable.$trionesSafeAreaMultiple;
6
+
7
+ .#{$class-prefix-safe-area} {
8
+ height: 100%;
9
+ display: block;
10
+ width: 100%;
11
+ box-sizing: border-box;
12
+
13
+ &-position-top {
14
+ padding-top: calc(env(safe-area-inset-top) * $safeAreaMultiple);
15
+ }
16
+
17
+ &-position-bottom {
18
+ padding-bottom: calc(env(safe-area-inset-bottom) * $safeAreaMultiple);
19
+ }
20
+ }
@@ -1,16 +1,17 @@
1
- @use "../style/variable" as *;
2
-
3
-
4
- $trionesScaffoldCls: 'triones-antm-scaffold';
5
-
6
- .#{$trionesScaffoldCls} {
7
- height: 100%;
8
- width: 100%;
9
- display: flex;
10
- flex-direction: column;
11
-
12
- &-body {
13
- flex: 1 auto;
14
- overflow: hidden;
15
- }
16
- }
1
+ @use "../style/variable" as variable;
2
+
3
+
4
+ $trionesScaffoldCls: 'triones-antm-scaffold';
5
+
6
+ .#{$trionesScaffoldCls} {
7
+ height: 100%;
8
+ width: 100%;
9
+ display: flex;
10
+ flex-direction: column;
11
+ background-color: variable.$trionesColorBgScaffold;
12
+
13
+ &-body {
14
+ flex: 1 auto;
15
+ overflow: hidden;
16
+ }
17
+ }