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

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 (71) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/dist/ActionSheet/style.scss +51 -51
  4. package/dist/Alert/style.scss +69 -69
  5. package/dist/Avatar/style.scss +16 -16
  6. package/dist/Badge/style.scss +100 -100
  7. package/dist/Card/style.scss +35 -35
  8. package/dist/CascaderPicker/cascader-picker.js +1 -1
  9. package/dist/CascaderPicker/style.scss +42 -42
  10. package/dist/CascaderView/cascader-view.js +1 -1
  11. package/dist/CascaderView/style.scss +22 -22
  12. package/dist/Cell/styles.scss +52 -52
  13. package/dist/Checkbox/index.scss +151 -151
  14. package/dist/DemoBlock/index.scss +20 -20
  15. package/dist/DemoDescription/index.scss +3 -3
  16. package/dist/Descriptions/style.scss +65 -65
  17. package/dist/Divider/style.scss +62 -62
  18. package/dist/Ellipsis/style.scss +13 -13
  19. package/dist/Empty/style.scss +29 -29
  20. package/dist/ErrorBlock/demo/base.js +2 -2
  21. package/dist/ErrorBlock/style.scss +62 -62
  22. package/dist/Footer/style.scss +55 -55
  23. package/dist/Form/FormItem/form-item-input.js +1 -1
  24. package/dist/Form/FormItem/form-item-label.js +1 -1
  25. package/dist/Form/style.scss +45 -45
  26. package/dist/Grid/style.scss +17 -17
  27. package/dist/Icon/demo/base.js +3 -3
  28. package/dist/Input/index.scss +173 -173
  29. package/dist/InputNumber/style.scss +43 -43
  30. package/dist/Mask/style.scss +20 -20
  31. package/dist/NavBar/style.scss +61 -61
  32. package/dist/NoticeBar/style.scss +130 -130
  33. package/dist/PageIndicator/style.scss +59 -59
  34. package/dist/Picker/picker.js +1 -1
  35. package/dist/Picker/style.scss +41 -41
  36. package/dist/PickerView/picker-view-column.js +1 -1
  37. package/dist/PickerView/picker-view.js +1 -1
  38. package/dist/PickerView/style.scss +72 -72
  39. package/dist/Popup/style.scss +53 -53
  40. package/dist/Radio/style.scss +138 -138
  41. package/dist/Rate/style.scss +37 -37
  42. package/dist/Result/demo/base.js +2 -2
  43. package/dist/Result/style.scss +73 -73
  44. package/dist/SafeArea/style.scss +18 -18
  45. package/dist/Scaffold/style.scss +16 -16
  46. package/dist/ScrollView/style.scss +19 -19
  47. package/dist/SideBar/side-bar.js +6 -6
  48. package/dist/SideBar/style.scss +85 -85
  49. package/dist/Space/style.scss +77 -77
  50. package/dist/SpinLoading/spin-loading.scss +40 -40
  51. package/dist/Steps/style.scss +146 -146
  52. package/dist/Switch/style.scss +128 -128
  53. package/dist/TabBar/demo/base.js +2 -2
  54. package/dist/TabBar/index.scss +36 -36
  55. package/dist/TabBar/tab-bar.d.ts +1 -1
  56. package/dist/TabBar/tab-bar.js +3 -2
  57. package/dist/Tabs/style.scss +108 -108
  58. package/dist/Tabs/tabs.js +1 -1
  59. package/dist/Tag/demo/base.js +2 -2
  60. package/dist/Tag/demo/style.scss +8 -8
  61. package/dist/Tag/style.scss +86 -86
  62. package/dist/Toast/style.scss +63 -63
  63. package/dist/VerificationCodeInput/style.scss +20 -20
  64. package/dist/WaterMark/style.scss +17 -17
  65. package/dist/style/style.scss +52 -52
  66. package/dist/style/theme-dark.scss +24 -24
  67. package/dist/style/theme-default.scss +54 -54
  68. package/dist/style/variable.scss +168 -168
  69. package/dist/utils/type.js +36 -36
  70. package/dist/utils/with-default-props.js +4 -4
  71. package/package.json +5 -6
@@ -1,42 +1,42 @@
1
- @import "../style/variable";
2
- $cascaderPickerCls: 'triones-antm-cascader-picker';
3
-
4
- .#{$cascaderPickerCls} {
5
- width: 100%;
6
- height: 300Px;
7
- overflow: hidden;
8
- position: relative;
9
- display: flex;
10
- flex-direction: column;
11
-
12
- &-header {
13
- display: flex;
14
- justify-content: space-between;
15
- align-items: center;
16
- border-bottom: 1Px solid $trionesBorderColor;
17
- padding: 4Px;
18
-
19
- &-button {
20
-
21
- padding: 8Px;
22
- font-size: 12Px;
23
- &-ok{
24
- color: $trionesColorPrimary;
25
- }
26
- }
27
-
28
- &-title {
29
- }
30
- }
31
-
32
- &-body {
33
- flex: 1 1;
34
- width: 100%;
35
- pointer-events: unset;
36
- overflow: hidden;
37
- }
38
- &-view{
39
- --height: 100%;
40
- }
41
-
42
- }
1
+ @use "../style/variable" as *;
2
+ $cascaderPickerCls: 'triones-antm-cascader-picker';
3
+
4
+ .#{$cascaderPickerCls} {
5
+ width: 100%;
6
+ height: 300Px;
7
+ overflow: hidden;
8
+ position: relative;
9
+ display: flex;
10
+ flex-direction: column;
11
+
12
+ &-header {
13
+ display: flex;
14
+ justify-content: space-between;
15
+ align-items: center;
16
+ border-bottom: 1Px solid $trionesBorderColor;
17
+ padding: 4Px;
18
+
19
+ &-button {
20
+
21
+ padding: 8Px;
22
+ font-size: 12Px;
23
+ &-ok{
24
+ color: $trionesColorPrimary;
25
+ }
26
+ }
27
+
28
+ &-title {
29
+ }
30
+ }
31
+
32
+ &-body {
33
+ flex: 1 1;
34
+ width: 100%;
35
+ pointer-events: unset;
36
+ overflow: hidden;
37
+ }
38
+ &-view{
39
+ --height: 100%;
40
+ }
41
+
42
+ }
@@ -9,7 +9,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
9
9
  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; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import classNames from 'classnames';
12
- import { find, isArray, isEmpty, isEqual } from 'lodash';
12
+ import { find, isArray, isEmpty, isEqual } from 'lodash-es';
13
13
  import React, { memo, useEffect, useState } from 'react';
14
14
  import Tabs from "../Tabs";
15
15
  import { CascaderColumn } from "./cascader-column";
@@ -1,22 +1,22 @@
1
- @import "../style/variable";
2
-
3
- $cascaderViewCls: 'triones-antm-cascader-view';
4
- .#{$cascaderViewCls} {
5
- &-column {
6
- height: 100%;
7
- overflow-y: auto;
8
- scrollbar-width: thin;
9
- &-item {
10
- display: flex;
11
- justify-content: space-between;
12
- align-items: center;
13
- height: 34Px;
14
- cursor: default;
15
- padding: 0Px 8Px;
16
-
17
- &-selected {
18
- color: $trionesColorPrimary;
19
- }
20
- }
21
- }
22
- }
1
+ @use "../style/variable" as *;
2
+
3
+ $cascaderViewCls: 'triones-antm-cascader-view';
4
+ .#{$cascaderViewCls} {
5
+ &-column {
6
+ height: 100%;
7
+ overflow-y: auto;
8
+ scrollbar-width: thin;
9
+ &-item {
10
+ display: flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+ height: 34Px;
14
+ cursor: default;
15
+ padding: 0Px 8Px;
16
+
17
+ &-selected {
18
+ color: $trionesColorPrimary;
19
+ }
20
+ }
21
+ }
22
+ }
@@ -1,52 +1,52 @@
1
- @import "../style/variable";
2
-
3
- $cellCls: 'triones-antm-cell';
4
-
5
- .#{$cellCls} {
6
- display: flex;
7
- padding: 4Px 11Px;
8
- gap: 4Px;
9
-
10
- &-wrapper {
11
- display: flex;
12
- flex: 1 auto;
13
- }
14
-
15
- &-content {
16
- flex: 1 auto;
17
- display: flex;
18
- align-items: center;
19
- }
20
-
21
- &-extra {
22
- }
23
-
24
- &-arrow {
25
- display: flex;
26
- justify-content: center;
27
- align-items: center;
28
- }
29
- &-placeholder{
30
- font-size: 14Px;
31
- color: #cccccc;
32
- }
33
- }
34
-
35
- .#{$cellCls}-group {
36
- display: flex;
37
- flex-direction: column;
38
- border-radius: $trionesBorderRadius;
39
- padding: 4Px 4Px;
40
-
41
- &-title {
42
- padding: 4Px 4Px;
43
- display: flex;
44
- justify-content: space-between;
45
-
46
- &-text {
47
- }
48
-
49
- &-extra {
50
- }
51
- }
52
- }
1
+ @use "../style/variable" as *;
2
+
3
+ $cellCls: 'triones-antm-cell';
4
+
5
+ .#{$cellCls} {
6
+ display: flex;
7
+ padding: 4Px 11Px;
8
+ gap: 4Px;
9
+
10
+ &-wrapper {
11
+ display: flex;
12
+ flex: 1 auto;
13
+ }
14
+
15
+ &-content {
16
+ flex: 1 auto;
17
+ display: flex;
18
+ align-items: center;
19
+ }
20
+
21
+ &-extra {
22
+ }
23
+
24
+ &-arrow {
25
+ display: flex;
26
+ justify-content: center;
27
+ align-items: center;
28
+ }
29
+ &-placeholder{
30
+ font-size: 14Px;
31
+ color: #cccccc;
32
+ }
33
+ }
34
+
35
+ .#{$cellCls}-group {
36
+ display: flex;
37
+ flex-direction: column;
38
+ border-radius: $trionesBorderRadius;
39
+ padding: 4Px 4Px;
40
+
41
+ &-title {
42
+ padding: 4Px 4Px;
43
+ display: flex;
44
+ justify-content: space-between;
45
+
46
+ &-text {
47
+ }
48
+
49
+ &-extra {
50
+ }
51
+ }
52
+ }
@@ -1,151 +1,151 @@
1
- @import "../style/variable";
2
- $checkboxCls: 'triones-antm-checkbox';
3
-
4
- $checkboxDisabledColor:rgba(0,0,0,0.25) !default;
5
-
6
- .#{$checkboxCls}-wrapper{
7
- display: flex;
8
- align-items: center;
9
- box-sizing: border-box;
10
- gap: 8Px;
11
- .#{$checkboxCls}{
12
- position: relative;
13
- &-input{
14
- cursor: inherit;
15
- position: absolute;
16
- opacity: 0;
17
- width: 100%;
18
- height: 100%;
19
- top: 0;
20
- left: 0;
21
- margin: 0;
22
- padding: 0;
23
- z-index: 1;
24
- }
25
- &-fake{
26
- width: 22PX;
27
- height: 22PX;
28
- .triones-antm-icon{
29
- //position: absolute;
30
- }
31
- &-checked{
32
- height: 100%;
33
- width: 100%;
34
- display: inline-flex;
35
- justify-content: center;
36
- align-items: center;
37
- background-color: $trionesColorPrimary;
38
- color: white;
39
- border-radius: 50vh;
40
- box-sizing: border-box;
41
- overflow: hidden;
42
- //i{
43
- // width: 100%;
44
- // height: 100%;
45
- // display: flex;
46
- // align-items: center;
47
- // justify-content: center;
48
- //}
49
- }
50
- &-unchecked{
51
- height: 100%;
52
- width: 100%;
53
- display: inline-flex;
54
- justify-content: center;
55
- align-items: center;
56
- border-radius: 50vh;
57
- border: 1PX solid $trionesBorderColor;
58
- box-sizing: border-box;
59
- }
60
- }
61
- }
62
-
63
-
64
- &.#{$checkboxCls}-disabled{
65
- color: $checkboxDisabledColor;
66
- pointer-events: none;
67
- .#{$checkboxCls}-fake-checked{
68
- background-color: $checkboxDisabledColor;
69
- }
70
- }
71
-
72
- .triones-antm-icon {
73
- //position: absolute;
74
- }
75
- }
76
-
77
-
78
-
79
- .#{$checkboxCls}-group{
80
- display: flex;
81
- }
82
-
83
- .#{$checkboxCls}-button{
84
- cursor: pointer;
85
- display: inline-flex;
86
- padding: 4Px 12Px;
87
- border-radius: 8Px;
88
- position: relative;
89
- overflow: hidden;
90
- background-color: #f6f6f6;
91
- box-sizing: border-box;
92
-
93
- &-checked {
94
- background-color: #ffffff;
95
- border: 1Px solid #1677ff;
96
-
97
- .#{$checkboxCls}-button-content {
98
- color: #1677ff;
99
- }
100
- }
101
-
102
- &-disabled {
103
- pointer-events: none;
104
- color: $checkboxDisabledColor;
105
- &.#{$checkboxCls}-button {
106
- &-checked{
107
- border: 1Px solid $checkboxDisabledColor;
108
- .#{$checkboxCls}-button-content {
109
- color: $checkboxDisabledColor;
110
- }
111
- }
112
- .#{$checkboxCls}-button-icon{
113
- border-bottom: 10Px solid $checkboxDisabledColor;
114
- border-right: 10Px solid $checkboxDisabledColor;
115
- }
116
- }
117
-
118
- }
119
-
120
-
121
- &-icon {
122
- align-items: flex-end;
123
- border-bottom: 10Px solid $trionesColorPrimary;
124
- border-left: 10Px solid transparent;
125
- border-right: 10Px solid $trionesColorPrimary;
126
- border-top: 10Px solid transparent;
127
- bottom: 0;
128
- display: flex;
129
- height: 0;
130
- justify-content: flex-end;
131
- position: absolute;
132
- right: 0;
133
- width: 0;
134
-
135
- .checkedIcon {
136
- font-size: 6Px;
137
- position: absolute;
138
- left: 50%;
139
- top: 50%;
140
- transform: translate(1Px, -1Px);
141
- //font-family: "triones-ant-mini-icon" !important;
142
- font-style: normal;
143
- color: #ffffff;
144
-
145
- &::before {
146
- font-style: normal;
147
- //content: "\e75f";
148
- }
149
- }
150
- }
151
- }
1
+ @use "../style/variable" as *;
2
+ $checkboxCls: 'triones-antm-checkbox';
3
+
4
+ $checkboxDisabledColor:rgba(0,0,0,0.25) !default;
5
+
6
+ .#{$checkboxCls}-wrapper{
7
+ display: flex;
8
+ align-items: center;
9
+ box-sizing: border-box;
10
+ gap: 8Px;
11
+ .#{$checkboxCls}{
12
+ position: relative;
13
+ &-input{
14
+ cursor: inherit;
15
+ position: absolute;
16
+ opacity: 0;
17
+ width: 100%;
18
+ height: 100%;
19
+ top: 0;
20
+ left: 0;
21
+ margin: 0;
22
+ padding: 0;
23
+ z-index: 1;
24
+ }
25
+ &-fake{
26
+ width: 22PX;
27
+ height: 22PX;
28
+ .triones-antm-icon{
29
+ //position: absolute;
30
+ }
31
+ &-checked{
32
+ height: 100%;
33
+ width: 100%;
34
+ display: inline-flex;
35
+ justify-content: center;
36
+ align-items: center;
37
+ background-color: $trionesColorPrimary;
38
+ color: white;
39
+ border-radius: 50vh;
40
+ box-sizing: border-box;
41
+ overflow: hidden;
42
+ //i{
43
+ // width: 100%;
44
+ // height: 100%;
45
+ // display: flex;
46
+ // align-items: center;
47
+ // justify-content: center;
48
+ //}
49
+ }
50
+ &-unchecked{
51
+ height: 100%;
52
+ width: 100%;
53
+ display: inline-flex;
54
+ justify-content: center;
55
+ align-items: center;
56
+ border-radius: 50vh;
57
+ border: 1PX solid $trionesBorderColor;
58
+ box-sizing: border-box;
59
+ }
60
+ }
61
+ }
62
+
63
+
64
+ &.#{$checkboxCls}-disabled{
65
+ color: $checkboxDisabledColor;
66
+ pointer-events: none;
67
+ .#{$checkboxCls}-fake-checked{
68
+ background-color: $checkboxDisabledColor;
69
+ }
70
+ }
71
+
72
+ .triones-antm-icon {
73
+ //position: absolute;
74
+ }
75
+ }
76
+
77
+
78
+
79
+ .#{$checkboxCls}-group{
80
+ display: flex;
81
+ }
82
+
83
+ .#{$checkboxCls}-button{
84
+ cursor: pointer;
85
+ display: inline-flex;
86
+ padding: 4Px 12Px;
87
+ border-radius: 8Px;
88
+ position: relative;
89
+ overflow: hidden;
90
+ background-color: #f6f6f6;
91
+ box-sizing: border-box;
92
+
93
+ &-checked {
94
+ background-color: #ffffff;
95
+ border: 1Px solid #1677ff;
96
+
97
+ .#{$checkboxCls}-button-content {
98
+ color: #1677ff;
99
+ }
100
+ }
101
+
102
+ &-disabled {
103
+ pointer-events: none;
104
+ color: $checkboxDisabledColor;
105
+ &.#{$checkboxCls}-button {
106
+ &-checked{
107
+ border: 1Px solid $checkboxDisabledColor;
108
+ .#{$checkboxCls}-button-content {
109
+ color: $checkboxDisabledColor;
110
+ }
111
+ }
112
+ .#{$checkboxCls}-button-icon{
113
+ border-bottom: 10Px solid $checkboxDisabledColor;
114
+ border-right: 10Px solid $checkboxDisabledColor;
115
+ }
116
+ }
117
+
118
+ }
119
+
120
+
121
+ &-icon {
122
+ align-items: flex-end;
123
+ border-bottom: 10Px solid $trionesColorPrimary;
124
+ border-left: 10Px solid transparent;
125
+ border-right: 10Px solid $trionesColorPrimary;
126
+ border-top: 10Px solid transparent;
127
+ bottom: 0;
128
+ display: flex;
129
+ height: 0;
130
+ justify-content: flex-end;
131
+ position: absolute;
132
+ right: 0;
133
+ width: 0;
134
+
135
+ .checkedIcon {
136
+ font-size: 6Px;
137
+ position: absolute;
138
+ left: 50%;
139
+ top: 50%;
140
+ transform: translate(1Px, -1Px);
141
+ //font-family: "triones-ant-mini-icon" !important;
142
+ font-style: normal;
143
+ color: #ffffff;
144
+
145
+ &::before {
146
+ font-style: normal;
147
+ //content: "\e75f";
148
+ }
149
+ }
150
+ }
151
+ }
@@ -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
+ }