@trionesdev/antd-mobile-base-react 0.0.2-beta.23 → 0.0.2-beta.25

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 (54) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/dist/Alert/style.scss +69 -69
  4. package/dist/Avatar/style.scss +17 -17
  5. package/dist/Badge/style.scss +100 -100
  6. package/dist/Card/style.scss +35 -35
  7. package/dist/CascaderView/style.scss +22 -22
  8. package/dist/Cell/styles.scss +81 -81
  9. package/dist/Checkbox/index.scss +173 -165
  10. package/dist/Checkbox/types.d.ts +1 -1
  11. package/dist/DemoBlock/index.scss +20 -20
  12. package/dist/DemoDescription/index.scss +3 -3
  13. package/dist/Descriptions/style.scss +65 -65
  14. package/dist/Divider/style.scss +62 -62
  15. package/dist/Ellipsis/style.scss +13 -13
  16. package/dist/Empty/style.scss +29 -29
  17. package/dist/ErrorBlock/demo/base.js +2 -2
  18. package/dist/ErrorBlock/style.scss +62 -62
  19. package/dist/Footer/style.scss +55 -55
  20. package/dist/Form/styles.scss +11 -11
  21. package/dist/FormCell/styles.scss +103 -103
  22. package/dist/Grid/style.scss +17 -17
  23. package/dist/Icon/demo/base.js +2 -2
  24. package/dist/InputNumber/style.scss +100 -100
  25. package/dist/Loading/style.scss +113 -113
  26. package/dist/NavBar/style.scss +65 -65
  27. package/dist/NoticeBar/style.scss +130 -130
  28. package/dist/PageIndicator/style.scss +59 -59
  29. package/dist/Progress/style.scss +33 -33
  30. package/dist/Radio/style.scss +154 -154
  31. package/dist/Rate/style.scss +37 -37
  32. package/dist/Result/demo/base.js +2 -2
  33. package/dist/Result/style.scss +73 -73
  34. package/dist/SafeArea/style.scss +20 -20
  35. package/dist/Scaffold/style.scss +17 -17
  36. package/dist/Segmented/style.scss +75 -75
  37. package/dist/Skeleton/style.scss +215 -215
  38. package/dist/Space/style.scss +101 -101
  39. package/dist/Stepper/style.scss +100 -100
  40. package/dist/Steps/style.scss +153 -153
  41. package/dist/Switch/style.scss +127 -127
  42. package/dist/TabBar/demo/base.js +2 -2
  43. package/dist/TabBar/index.scss +37 -37
  44. package/dist/Tabs/style.scss +108 -108
  45. package/dist/Tag/style.scss +110 -110
  46. package/dist/WaterMark/style.scss +17 -17
  47. package/dist/style/css-variable.scss +6 -6
  48. package/dist/style/style.scss +52 -52
  49. package/dist/style/theme-dark.scss +24 -24
  50. package/dist/style/theme-default.scss +54 -54
  51. package/dist/style/variable.scss +180 -180
  52. package/dist/utils/type.js +36 -36
  53. package/dist/utils/with-default-props.js +4 -4
  54. package/package.json +3 -3
@@ -1,81 +1,81 @@
1
- @use "../style/variable" as variable;
2
-
3
- $cellCls: 'triones-antm-cell';
4
-
5
- .#{$cellCls} {
6
- display: flex;
7
- gap: 4Px;
8
- align-items: center;
9
-
10
- &-small{
11
- padding-block: variable.$trionesPaddingXxs;
12
- }
13
- &-medium{
14
- padding-block: variable.$trionesPaddingXs;
15
- }
16
- &-large{
17
- padding-block: variable.$trionesPaddingSm;
18
- }
19
-
20
- &-label {
21
- display: flex;
22
- align-items: center;
23
- &-start{
24
- justify-content: flex-start;
25
- }
26
- &-end{
27
- justify-content: flex-end;
28
- }
29
- }
30
-
31
- &-content {
32
- flex: 1 auto;
33
- display: flex;
34
- align-items: center;
35
- min-height: 20Px;
36
- &-start{
37
- justify-content: flex-start;
38
- }
39
- &-end{
40
- justify-content: flex-end;
41
- }
42
- }
43
-
44
- &-extra {
45
- display: flex;
46
- align-items: center;
47
- }
48
- &-arrow{
49
- font-size: variable.$trionesFontSize;
50
- color: variable.$trionesColorTextPlaceholder;
51
- .triones-antm-icon{
52
- &::before{
53
- font-size: 12Px;
54
- }
55
- }
56
- }
57
-
58
- &-placeholder {
59
- font-size: variable.$trionesFontSize;
60
- color: variable.$trionesColorTextPlaceholder;
61
- }
62
- }
63
-
64
- .#{$cellCls}-group {
65
- display: flex;
66
- flex-direction: column;
67
- border-radius: variable.$trionesBorderRadius;
68
-
69
- &-title {
70
- padding: 4Px 4Px;
71
- display: flex;
72
- justify-content: space-between;
73
-
74
- &-text {
75
- }
76
-
77
- &-extra {
78
- }
79
-
80
- }
81
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $cellCls: 'triones-antm-cell';
4
+
5
+ .#{$cellCls} {
6
+ display: flex;
7
+ gap: 4Px;
8
+ align-items: center;
9
+
10
+ &-small{
11
+ padding-block: variable.$trionesPaddingXxs;
12
+ }
13
+ &-medium{
14
+ padding-block: variable.$trionesPaddingXs;
15
+ }
16
+ &-large{
17
+ padding-block: variable.$trionesPaddingSm;
18
+ }
19
+
20
+ &-label {
21
+ display: flex;
22
+ align-items: center;
23
+ &-start{
24
+ justify-content: flex-start;
25
+ }
26
+ &-end{
27
+ justify-content: flex-end;
28
+ }
29
+ }
30
+
31
+ &-content {
32
+ flex: 1 auto;
33
+ display: flex;
34
+ align-items: center;
35
+ min-height: 20Px;
36
+ &-start{
37
+ justify-content: flex-start;
38
+ }
39
+ &-end{
40
+ justify-content: flex-end;
41
+ }
42
+ }
43
+
44
+ &-extra {
45
+ display: flex;
46
+ align-items: center;
47
+ }
48
+ &-arrow{
49
+ font-size: variable.$trionesFontSize;
50
+ color: variable.$trionesColorTextPlaceholder;
51
+ .triones-antm-icon{
52
+ &::before{
53
+ font-size: 12Px;
54
+ }
55
+ }
56
+ }
57
+
58
+ &-placeholder {
59
+ font-size: variable.$trionesFontSize;
60
+ color: variable.$trionesColorTextPlaceholder;
61
+ }
62
+ }
63
+
64
+ .#{$cellCls}-group {
65
+ display: flex;
66
+ flex-direction: column;
67
+ border-radius: variable.$trionesBorderRadius;
68
+
69
+ &-title {
70
+ padding: 4Px 4Px;
71
+ display: flex;
72
+ justify-content: space-between;
73
+
74
+ &-text {
75
+ }
76
+
77
+ &-extra {
78
+ }
79
+
80
+ }
81
+ }
@@ -1,165 +1,173 @@
1
- @use "../style/variable" as variable;
2
-
3
- $checkboxCls: 'triones-antm-checkbox';
4
-
5
- $checkboxDisabledColor: rgba(0, 0, 0, 0.25) !default;
6
-
7
- .#{$checkboxCls}-group {
8
-
9
- }
10
-
11
- .#{$checkboxCls}-round {
12
- display: flex;
13
- align-items: center;
14
- box-sizing: border-box;
15
- gap: 8Px;
16
-
17
- .#{$checkboxCls}-round {
18
- position: relative;
19
-
20
- &-input {
21
- cursor: inherit;
22
- position: absolute;
23
- opacity: 0;
24
- width: 100%;
25
- height: 100%;
26
- top: 0;
27
- left: 0;
28
- margin: 0;
29
- padding: 0;
30
- z-index: 1;
31
- }
32
-
33
- &-fake {
34
- width: 20PX;
35
- height: 20PX;
36
-
37
- .triones-antm-icon {
38
- //position: absolute;
39
- }
40
-
41
- &-checked {
42
- height: 100%;
43
- width: 100%;
44
- display: inline-flex;
45
- justify-content: center;
46
- align-items: center;
47
- background-color: variable.$trionesColorPrimary;
48
- color: white;
49
- border-radius: 50vh;
50
- box-sizing: border-box;
51
- overflow: hidden;
52
- .triones-antm-icon{
53
- font-size: 14Px;
54
- }
55
- //i{
56
- // width: 100%;
57
- // height: 100%;
58
- // display: flex;
59
- // align-items: center;
60
- // justify-content: center;
61
- //}
62
- }
63
-
64
- &-unchecked {
65
- height: 100%;
66
- width: 100%;
67
- display: inline-flex;
68
- justify-content: center;
69
- align-items: center;
70
- border-radius: 50vh;
71
- border: 1PX solid variable.$trionesBorderColor;
72
- box-sizing: border-box;
73
- }
74
- }
75
- }
76
-
77
-
78
- &.#{$checkboxCls}-disabled {
79
- color: $checkboxDisabledColor;
80
- pointer-events: none;
81
-
82
- .#{$checkboxCls}-fake-checked {
83
- background-color: $checkboxDisabledColor;
84
- }
85
- }
86
-
87
- .triones-antm-icon {
88
- //position: absolute;
89
- }
90
- }
91
-
92
-
93
- .#{$checkboxCls}-button {
94
- cursor: pointer;
95
- display: inline-flex;
96
- padding: 4Px 12Px;
97
- border-radius: variable.$trionesBorderRadius;
98
- position: relative;
99
- overflow: hidden;
100
- background-color: variable.$trionesColorFillSecondary;
101
- box-sizing: border-box;
102
- border: 1Px solid variable.$trionesColorFillSecondary;
103
-
104
- &-checked {
105
- background-color: #ffffff;
106
- border: 1Px solid variable.$trionesColorPrimary;
107
-
108
- .#{$checkboxCls}-button-content {
109
- color: variable.$trionesColorPrimary;
110
- }
111
- }
112
-
113
- &-disabled {
114
- pointer-events: none;
115
- color: $checkboxDisabledColor;
116
-
117
- &.#{$checkboxCls}-button {
118
- &-checked {
119
- border: 1Px solid $checkboxDisabledColor;
120
-
121
- .#{$checkboxCls}-button-content {
122
- color: $checkboxDisabledColor;
123
- }
124
- }
125
-
126
- .#{$checkboxCls}-button-icon {
127
- border-bottom: 10Px solid $checkboxDisabledColor;
128
- border-right: 10Px solid $checkboxDisabledColor;
129
- }
130
- }
131
-
132
- }
133
-
134
-
135
- &-icon {
136
- align-items: flex-end;
137
- border-bottom: 10Px solid variable.$trionesColorPrimary;
138
- border-left: 10Px solid transparent;
139
- border-right: 10Px solid variable.$trionesColorPrimary;
140
- border-top: 10Px solid transparent;
141
- bottom: 0;
142
- display: flex;
143
- height: 0;
144
- justify-content: flex-end;
145
- position: absolute;
146
- right: 0;
147
- width: 0;
148
-
149
- .checkedIcon {
150
- font-size: 6Px;
151
- position: absolute;
152
- left: 50%;
153
- top: 50%;
154
- transform: translate(1Px, -1Px);
155
- //font-family: "triones-ant-mini-icon" !important;
156
- font-style: normal;
157
- color: #ffffff;
158
-
159
- &::before {
160
- font-style: normal;
161
- //content: "\e75f";
162
- }
163
- }
164
- }
165
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $checkboxCls: 'triones-antm-checkbox';
4
+
5
+ $checkboxDisabledColor: #ccc !default;
6
+ $checkboxDisabledBorderColor: #ccc !default;
7
+ $checkboxDisabledBgColor: #f5f5f5 !default;
8
+
9
+ .#{$checkboxCls}-group {
10
+
11
+ }
12
+
13
+ .#{$checkboxCls}-round {
14
+ display: flex;
15
+ align-items: center;
16
+ box-sizing: border-box;
17
+ gap: 8Px;
18
+
19
+ .#{$checkboxCls}-round {
20
+ position: relative;
21
+
22
+ &-input {
23
+ cursor: inherit;
24
+ position: absolute;
25
+ opacity: 0;
26
+ width: 100%;
27
+ height: 100%;
28
+ top: 0;
29
+ left: 0;
30
+ margin: 0;
31
+ padding: 0;
32
+ z-index: 1;
33
+ }
34
+
35
+ &-fake {
36
+ width: 20PX;
37
+ height: 20PX;
38
+
39
+ .triones-antm-icon {
40
+ //position: absolute;
41
+ }
42
+
43
+ &-checked {
44
+ height: 100%;
45
+ width: 100%;
46
+ display: inline-flex;
47
+ justify-content: center;
48
+ align-items: center;
49
+ background-color: variable.$trionesColorPrimary;
50
+ color: white;
51
+ border-radius: 50vh;
52
+ box-sizing: border-box;
53
+ overflow: hidden;
54
+ .triones-antm-icon{
55
+ font-size: 14Px;
56
+ }
57
+ //i{
58
+ // width: 100%;
59
+ // height: 100%;
60
+ // display: flex;
61
+ // align-items: center;
62
+ // justify-content: center;
63
+ //}
64
+ }
65
+
66
+ &-unchecked {
67
+ height: 100%;
68
+ width: 100%;
69
+ display: inline-flex;
70
+ justify-content: center;
71
+ align-items: center;
72
+ border-radius: 50vh;
73
+ border: 1PX solid variable.$trionesBorderColor;
74
+ box-sizing: border-box;
75
+ }
76
+ }
77
+ }
78
+
79
+
80
+ &.#{$checkboxCls}-disabled {
81
+ color: $checkboxDisabledColor;
82
+ pointer-events: none;
83
+
84
+ .#{$checkboxCls}-round-fake{
85
+ &-checked {
86
+ background-color: $checkboxDisabledColor;
87
+ }
88
+ &-unchecked {
89
+ border: 1Px solid $checkboxDisabledBorderColor;
90
+ background-color: $checkboxDisabledBgColor;
91
+ }
92
+ }
93
+ }
94
+
95
+ .triones-antm-icon {
96
+ //position: absolute;
97
+ }
98
+ }
99
+
100
+
101
+ .#{$checkboxCls}-button {
102
+ cursor: pointer;
103
+ display: inline-flex;
104
+ padding: 4Px 12Px;
105
+ border-radius: variable.$trionesBorderRadius;
106
+ position: relative;
107
+ overflow: hidden;
108
+ background-color: variable.$trionesColorFillSecondary;
109
+ box-sizing: border-box;
110
+ border: 1Px solid variable.$trionesColorFillSecondary;
111
+
112
+ &-checked {
113
+ background-color: #ffffff;
114
+ border: 1Px solid variable.$trionesColorPrimary;
115
+
116
+ .#{$checkboxCls}-button-content {
117
+ color: variable.$trionesColorPrimary;
118
+ }
119
+ }
120
+
121
+ &-disabled {
122
+ pointer-events: none;
123
+ color: $checkboxDisabledColor;
124
+
125
+ &.#{$checkboxCls}-button {
126
+ &-checked {
127
+ border: 1Px solid $checkboxDisabledColor;
128
+
129
+ .#{$checkboxCls}-button-content {
130
+ color: $checkboxDisabledColor;
131
+ }
132
+ }
133
+
134
+ .#{$checkboxCls}-button-icon {
135
+ border-bottom: 10Px solid $checkboxDisabledColor;
136
+ border-right: 10Px solid $checkboxDisabledColor;
137
+ }
138
+ }
139
+
140
+ }
141
+
142
+
143
+ &-icon {
144
+ align-items: flex-end;
145
+ border-bottom: 10Px solid variable.$trionesColorPrimary;
146
+ border-left: 10Px solid transparent;
147
+ border-right: 10Px solid variable.$trionesColorPrimary;
148
+ border-top: 10Px solid transparent;
149
+ bottom: 0;
150
+ display: flex;
151
+ height: 0;
152
+ justify-content: flex-end;
153
+ position: absolute;
154
+ right: 0;
155
+ width: 0;
156
+
157
+ .checkedIcon {
158
+ font-size: 6Px;
159
+ position: absolute;
160
+ left: 50%;
161
+ top: 50%;
162
+ transform: translate(1Px, -1Px);
163
+ //font-family: "triones-ant-mini-icon" !important;
164
+ font-style: normal;
165
+ color: #ffffff;
166
+
167
+ &::before {
168
+ font-style: normal;
169
+ //content: "\e75f";
170
+ }
171
+ }
172
+ }
173
+ }
@@ -25,6 +25,6 @@ export type CheckboxProps = {
25
25
  defaultChecked?: boolean;
26
26
  value?: any;
27
27
  disabled?: boolean;
28
- onChange?: (e: any) => void;
28
+ onChange?: (e: boolean) => void;
29
29
  shape?: Shape;
30
30
  };
@@ -1,20 +1,20 @@
1
- .demoBlock {
2
- font-size: 14px;
3
- margin-bottom: 12px;
4
- &:last-of-type {
5
- padding-bottom: 32px;
6
- }
7
- scrollbar-width: thin;
8
- }
9
-
10
- .demoTitle {
11
- padding: 12px 12px 8px;
12
- color: #697b8c;
13
- font-size: 14px;
14
- background: #fafbfc;
15
- }
16
-
17
- .demoMain {
18
- border-right: none;
19
- border-left: none;
20
- }
1
+ .demoBlock {
2
+ font-size: 14px;
3
+ margin-bottom: 12px;
4
+ &:last-of-type {
5
+ padding-bottom: 32px;
6
+ }
7
+ scrollbar-width: thin;
8
+ }
9
+
10
+ .demoTitle {
11
+ padding: 12px 12px 8px;
12
+ color: #697b8c;
13
+ font-size: 14px;
14
+ background: #fafbfc;
15
+ }
16
+
17
+ .demoMain {
18
+ border-right: none;
19
+ border-left: none;
20
+ }
@@ -1,3 +1,3 @@
1
- .demoDescription {
2
- color: var(--triones-antm-color-weak);
3
- }
1
+ .demoDescription {
2
+ color: var(--triones-antm-color-weak);
3
+ }