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

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 (69) 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/demo/base.js +2 -2
  8. package/dist/Button/style.scss +234 -234
  9. package/dist/Calendar/style.scss +85 -85
  10. package/dist/Calendar/touchable-calendar-grid.js +9 -9
  11. package/dist/CalendarDatetimePicker/style.scss +54 -54
  12. package/dist/CalendarDatetimePickerCell/style.scss +10 -10
  13. package/dist/CalendarPicker/style.scss +31 -31
  14. package/dist/Card/demo/base.js +2 -2
  15. package/dist/Card/demo/base.scss +18 -18
  16. package/dist/CascaderPicker/style.scss +45 -45
  17. package/dist/CascaderPickerCell/style.scss +24 -24
  18. package/dist/Checkbox/demo/base.js +2 -2
  19. package/dist/ConfigProvider/demo/base.js +2 -2
  20. package/dist/DemoBlock/index.scss +20 -20
  21. package/dist/DemoDescription/index.scss +3 -3
  22. package/dist/Divider/demo/base.js +2 -2
  23. package/dist/Ellipsis/demo/base.js +2 -2
  24. package/dist/Empty/demo/base.js +2 -2
  25. package/dist/ErrorBlock/demo/base.js +2 -2
  26. package/dist/FetchPicker/styles.scss +118 -118
  27. package/dist/FloatButton/style.scss +123 -123
  28. package/dist/Footer/demo/base.js +2 -2
  29. package/dist/Form/style.scss +106 -106
  30. package/dist/Grid/demo/base.js +2 -2
  31. package/dist/Grid/demo/base.scss +7 -7
  32. package/dist/Icon/demo/base.js +2 -2
  33. package/dist/Image/demo/base.js +2 -2
  34. package/dist/Image/demo/base.scss +4 -4
  35. package/dist/Image/style.scss +30 -30
  36. package/dist/ImagesPreview/style.scss +34 -34
  37. package/dist/ImagesWall/style.scss +70 -70
  38. package/dist/Input/demo/base.js +2 -2
  39. package/dist/Input/index.scss +240 -240
  40. package/dist/NavBar/demo/base.scss +5 -5
  41. package/dist/NoticeBar/demo/base.js +2 -2
  42. package/dist/Overlay/style.scss +20 -20
  43. package/dist/PageIndicator/demo/base.js +2 -2
  44. package/dist/Picker/style.scss +44 -44
  45. package/dist/PickerView/style.scss +72 -72
  46. package/dist/Popup/demo/base.js +2 -2
  47. package/dist/Popup/style.scss +129 -129
  48. package/dist/Radio/demo/base.scss +4 -4
  49. package/dist/Result/demo/base.js +2 -2
  50. package/dist/SafeArea/demo/base.scss +18 -18
  51. package/dist/ScrollView/style.scss +19 -19
  52. package/dist/SideBar/side-bar.js +6 -6
  53. package/dist/SideBar/style.scss +85 -85
  54. package/dist/Space/demo/base.js +2 -2
  55. package/dist/Swiper/style.scss +54 -54
  56. package/dist/Switch/demo/base.js +2 -2
  57. package/dist/TabBar/demo/base.js +2 -2
  58. package/dist/Tag/demo/base.js +2 -2
  59. package/dist/Tag/demo/style.scss +8 -8
  60. package/dist/Toast/style.scss +63 -63
  61. package/dist/VerificationCodeInput/style.scss +20 -20
  62. package/dist/WaterMark/demo/demo1.js +2 -2
  63. package/dist/WaterMark/demo/demo1.scss +6 -6
  64. package/dist/WaterMark/demo/demo2.js +2 -2
  65. package/dist/style/variable.scss +1 -1
  66. package/dist/utils/type.js +36 -36
  67. package/dist/utils/with-default-props.js +4 -4
  68. package/package.json +4 -4
  69. package/readme.md +43 -43
@@ -1,5 +1,5 @@
1
- /**
2
- * compact: true
1
+ /**
2
+ * compact: true
3
3
  */
4
4
  import { QuestionCircleOutline } from "../../../../antd-mobile-icons-react";
5
5
  import { DemoBlock } from "../../DemoBlock";
@@ -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,118 +1,118 @@
1
- @use "../style/variable" as variable;
2
-
3
- $cls: 'triones-antm-fetch-picker';
4
-
5
- .#{$cls} {
6
- height: 100%;
7
- display: flex;
8
- flex-direction: column;
9
- background-color: #f5f5f5;
10
-
11
- &-head {
12
- padding: variable.$trionesPaddingXxs;
13
- background-color: white;
14
- display: flex;
15
- flex-direction: row;
16
- justify-content: space-between;
17
- border-bottom: 1Px solid variable.$trionesBorderColor;
18
-
19
- &-icon {
20
- padding: 8Px;
21
- }
22
-
23
- &-title {
24
- flex: 1 auto;
25
- display: flex;
26
- justify-content: center;
27
- align-items: center;
28
- }
29
-
30
- &-button {
31
- color: variable.$trionesColorPrimaryText;
32
- display: inline-block;
33
- padding: 8Px;
34
- }
35
-
36
- }
37
-
38
- &-search-bar {
39
- padding: variable.$trionesPaddingXxs;
40
- background-color: white;
41
-
42
- &-input {
43
- background-color: #f5f5f5;
44
- }
45
- }
46
-
47
- &-empty {
48
- height: 100%;
49
- display: flex;
50
- justify-content: center;
51
- align-items: center;
52
- min-height: 100Px;
53
- }
54
-
55
- &-loading {
56
- height: 100%;
57
- display: flex;
58
- justify-content: center;
59
- align-items: center;
60
-
61
- &-content {
62
- display: flex;
63
- flex-direction: column;
64
- justify-content: center;
65
- align-items: center;
66
- gap: 8Px;
67
- font-size: 12Px;
68
- color: #8c8c8c;
69
- }
70
- }
71
-
72
- &-loading-more {
73
- padding: variable.$trionesPaddingXxs;
74
- display: flex;
75
- justify-content: center;
76
- align-items: center;
77
- color: #8c8c8c;
78
- font-size: 12Px;
79
- }
80
-
81
- &-body {
82
- flex: 1 auto;
83
-
84
- .#{$cls} {
85
- &-item {
86
- padding-block: variable.$trionesPaddingSm;
87
- padding-inline: variable.$trionesPadding;
88
- background-color: white;
89
- border-bottom: 1Px solid #f0f0f0;
90
- &-option{
91
- display: flex;
92
- &-selected{
93
- background-color: #e6f4ff;
94
- }
95
- &-content{
96
- flex: auto;
97
- overflow: hidden;
98
- white-space: nowrap;
99
- text-overflow: ellipsis;
100
- }
101
- &-state{
102
- .triones-antm-icon{
103
- color: variable.$trionesColorPrimaryText;
104
- font-size: variable.$trionesFontSize;
105
- }
106
- }
107
- }
108
- }
109
- }
110
- }
111
-
112
- &-footer {
113
- flex-shrink: 0;
114
- border-top: 1Px solid variable.$trionesBorderColor;
115
- padding: variable.$trionesPaddingXxs;
116
- background-color: white;
117
- }
118
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $cls: 'triones-antm-fetch-picker';
4
+
5
+ .#{$cls} {
6
+ height: 100%;
7
+ display: flex;
8
+ flex-direction: column;
9
+ background-color: #f5f5f5;
10
+
11
+ &-head {
12
+ padding: variable.$trionesPaddingXxs;
13
+ background-color: white;
14
+ display: flex;
15
+ flex-direction: row;
16
+ justify-content: space-between;
17
+ border-bottom: 1Px solid variable.$trionesBorderColor;
18
+
19
+ &-icon {
20
+ padding: 8Px;
21
+ }
22
+
23
+ &-title {
24
+ flex: 1 auto;
25
+ display: flex;
26
+ justify-content: center;
27
+ align-items: center;
28
+ }
29
+
30
+ &-button {
31
+ color: variable.$trionesColorPrimaryText;
32
+ display: inline-block;
33
+ padding: 8Px;
34
+ }
35
+
36
+ }
37
+
38
+ &-search-bar {
39
+ padding: variable.$trionesPaddingXxs;
40
+ background-color: white;
41
+
42
+ &-input {
43
+ background-color: #f5f5f5;
44
+ }
45
+ }
46
+
47
+ &-empty {
48
+ height: 100%;
49
+ display: flex;
50
+ justify-content: center;
51
+ align-items: center;
52
+ min-height: 100Px;
53
+ }
54
+
55
+ &-loading {
56
+ height: 100%;
57
+ display: flex;
58
+ justify-content: center;
59
+ align-items: center;
60
+
61
+ &-content {
62
+ display: flex;
63
+ flex-direction: column;
64
+ justify-content: center;
65
+ align-items: center;
66
+ gap: 8Px;
67
+ font-size: 12Px;
68
+ color: #8c8c8c;
69
+ }
70
+ }
71
+
72
+ &-loading-more {
73
+ padding: variable.$trionesPaddingXxs;
74
+ display: flex;
75
+ justify-content: center;
76
+ align-items: center;
77
+ color: #8c8c8c;
78
+ font-size: 12Px;
79
+ }
80
+
81
+ &-body {
82
+ flex: 1 auto;
83
+
84
+ .#{$cls} {
85
+ &-item {
86
+ padding-block: variable.$trionesPaddingSm;
87
+ padding-inline: variable.$trionesPadding;
88
+ background-color: white;
89
+ border-bottom: 1Px solid #f0f0f0;
90
+ &-option{
91
+ display: flex;
92
+ &-selected{
93
+ background-color: #e6f4ff;
94
+ }
95
+ &-content{
96
+ flex: auto;
97
+ overflow: hidden;
98
+ white-space: nowrap;
99
+ text-overflow: ellipsis;
100
+ }
101
+ &-state{
102
+ .triones-antm-icon{
103
+ color: variable.$trionesColorPrimaryText;
104
+ font-size: variable.$trionesFontSize;
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
110
+ }
111
+
112
+ &-footer {
113
+ flex-shrink: 0;
114
+ border-top: 1Px solid variable.$trionesBorderColor;
115
+ padding: variable.$trionesPaddingXxs;
116
+ background-color: white;
117
+ }
118
+ }
@@ -1,123 +1,123 @@
1
- @use "../style/variable" as variable;
2
-
3
- $floatButtonCls: "triones-antm-float-button";
4
- $floatButtonGroupCls: "triones-antm-float-button-group";
5
-
6
- $floatButtonSize: 48Px;
7
- $floatButtonShadow: 0 6Px 16Px 0 rgba(0, 0, 0, 0.08),
8
- 0 3Px 6Px -4Px rgba(0, 0, 0, 0.12), 0 9Px 28Px 8Px rgba(0, 0, 0, 0.05);
9
-
10
- .#{$floatButtonCls} {
11
- position: fixed;
12
- display: inline-flex;
13
- flex-shrink: 0;
14
- box-sizing: border-box;
15
-
16
- &--embedded {
17
- position: relative;
18
- right: auto;
19
- bottom: auto;
20
- z-index: auto;
21
- }
22
-
23
- &-body {
24
- box-sizing: border-box;
25
- margin: 0;
26
- padding: 0;
27
- display: inline-flex;
28
- align-items: center;
29
- justify-content: center;
30
- gap: 8Px;
31
- min-width: $floatButtonSize;
32
- min-height: $floatButtonSize;
33
- border: none;
34
- border-radius: 50%;
35
- cursor: pointer;
36
- font-size: 20Px;
37
- line-height: 1;
38
- color: rgba(0, 0, 0, 0.88);
39
- background: #fff;
40
- box-shadow: $floatButtonShadow;
41
- transition: color 0.2s, background 0.2s, box-shadow 0.2s;
42
- -webkit-tap-highlight-color: transparent;
43
- text-decoration: none;
44
-
45
- &:active {
46
- filter: brightness(0.95);
47
- }
48
- }
49
-
50
- &--shape-square &-body {
51
- border-radius: variable.$trionesBorderRadius;
52
- }
53
-
54
- &--has-content &-body {
55
- min-height: $floatButtonSize;
56
- display: inline-flex;
57
- flex-direction: column;
58
- align-items: center;
59
- justify-content: center;
60
- }
61
-
62
- &--type-primary &-body {
63
- color: #fff;
64
- background: variable.$trionesColorPrimary;
65
- }
66
-
67
- &-icon {
68
- display: inline-flex;
69
- align-items: center;
70
- justify-content: center;
71
- }
72
-
73
- &-content {
74
- font-size: variable.$trionesFontSizeSm;
75
- font-weight: 500;
76
- white-space: nowrap;
77
- }
78
- }
79
-
80
- .#{$floatButtonGroupCls} {
81
- position: fixed;
82
- z-index: 100;
83
- bottom: calc(24Px + env(safe-area-inset-bottom, 0px));
84
- display: flex;
85
- gap: 12Px;
86
- align-items: flex-end;
87
- box-sizing: border-box;
88
-
89
- &--placement {
90
- &-top {
91
- flex-direction: column;
92
- }
93
- &-bottom {
94
- flex-direction: column;
95
- }
96
- &-left {
97
- flex-direction: row;
98
- }
99
- &-right {
100
- flex-direction: row;
101
- }
102
- }
103
-
104
- &--menu {
105
- align-items: center;
106
- }
107
-
108
- &-list {
109
- display: flex;
110
- flex-direction: column;
111
- gap: 12Px;
112
- align-items: flex-end;
113
-
114
- &--hidden {
115
- display: none;
116
- }
117
- }
118
-
119
- &--placement-left &-list,
120
- &--placement-right &-list {
121
- flex-direction: column;
122
- }
123
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $floatButtonCls: "triones-antm-float-button";
4
+ $floatButtonGroupCls: "triones-antm-float-button-group";
5
+
6
+ $floatButtonSize: 48Px;
7
+ $floatButtonShadow: 0 6Px 16Px 0 rgba(0, 0, 0, 0.08),
8
+ 0 3Px 6Px -4Px rgba(0, 0, 0, 0.12), 0 9Px 28Px 8Px rgba(0, 0, 0, 0.05);
9
+
10
+ .#{$floatButtonCls} {
11
+ position: fixed;
12
+ display: inline-flex;
13
+ flex-shrink: 0;
14
+ box-sizing: border-box;
15
+
16
+ &--embedded {
17
+ position: relative;
18
+ right: auto;
19
+ bottom: auto;
20
+ z-index: auto;
21
+ }
22
+
23
+ &-body {
24
+ box-sizing: border-box;
25
+ margin: 0;
26
+ padding: 0;
27
+ display: inline-flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ gap: 8Px;
31
+ min-width: $floatButtonSize;
32
+ min-height: $floatButtonSize;
33
+ border: none;
34
+ border-radius: 50%;
35
+ cursor: pointer;
36
+ font-size: 20Px;
37
+ line-height: 1;
38
+ color: rgba(0, 0, 0, 0.88);
39
+ background: #fff;
40
+ box-shadow: $floatButtonShadow;
41
+ transition: color 0.2s, background 0.2s, box-shadow 0.2s;
42
+ -webkit-tap-highlight-color: transparent;
43
+ text-decoration: none;
44
+
45
+ &:active {
46
+ filter: brightness(0.95);
47
+ }
48
+ }
49
+
50
+ &--shape-square &-body {
51
+ border-radius: variable.$trionesBorderRadius;
52
+ }
53
+
54
+ &--has-content &-body {
55
+ min-height: $floatButtonSize;
56
+ display: inline-flex;
57
+ flex-direction: column;
58
+ align-items: center;
59
+ justify-content: center;
60
+ }
61
+
62
+ &--type-primary &-body {
63
+ color: #fff;
64
+ background: variable.$trionesColorPrimary;
65
+ }
66
+
67
+ &-icon {
68
+ display: inline-flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ }
72
+
73
+ &-content {
74
+ font-size: variable.$trionesFontSizeSm;
75
+ font-weight: 500;
76
+ white-space: nowrap;
77
+ }
78
+ }
79
+
80
+ .#{$floatButtonGroupCls} {
81
+ position: fixed;
82
+ z-index: 100;
83
+ bottom: calc(24Px + env(safe-area-inset-bottom, 0px));
84
+ display: flex;
85
+ gap: 12Px;
86
+ align-items: flex-end;
87
+ box-sizing: border-box;
88
+
89
+ &--placement {
90
+ &-top {
91
+ flex-direction: column;
92
+ }
93
+ &-bottom {
94
+ flex-direction: column;
95
+ }
96
+ &-left {
97
+ flex-direction: row;
98
+ }
99
+ &-right {
100
+ flex-direction: row;
101
+ }
102
+ }
103
+
104
+ &--menu {
105
+ align-items: center;
106
+ }
107
+
108
+ &-list {
109
+ display: flex;
110
+ flex-direction: column;
111
+ gap: 12Px;
112
+ align-items: flex-end;
113
+
114
+ &--hidden {
115
+ display: none;
116
+ }
117
+ }
118
+
119
+ &--placement-left &-list,
120
+ &--placement-right &-list {
121
+ flex-direction: column;
122
+ }
123
+ }
@@ -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";