@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,108 +1,108 @@
1
- @import "../style/variable";
2
- $tabsCls: 'triones-antm-tabs';
3
-
4
- .#{$tabsCls} {
5
- display: flex;
6
- flex-direction: column;
7
- &-nav {
8
- position: relative;
9
- display: flex;
10
- flex: none;
11
- align-items: center;
12
-
13
- &::before {
14
- bottom: 0;
15
- position: absolute;
16
- right: 0;
17
- left: 0;
18
- border-bottom: 1Px solid #f0f0f0;
19
- content: ' ';
20
- }
21
-
22
- &-wrap {
23
- //position: relative;
24
- //display: flex;
25
- //flex: auto;
26
- //align-self: stretch;
27
- //overflow: hidden;
28
- //white-space: nowrap;
29
- //transform: translate(0);
30
- width: 100%;
31
- }
32
-
33
- &-list {
34
- position: relative;
35
- display: flex;
36
- flex: auto;
37
- overflow-y: auto;
38
- scrollbar-width: none;
39
- }
40
- }
41
-
42
- &-ink-bar {
43
- position: absolute;
44
- bottom: 0;
45
- background-color: $trionesColorPrimary;
46
- height: 2px;
47
- //width: 100px;
48
- &-animated {
49
-
50
- }
51
- }
52
-
53
- &-tab {
54
- position: relative;
55
- display: inline-flex;
56
- align-items: center;
57
- justify-content: center;
58
- padding: 10Px 10Px;
59
- font-size: 14Px;
60
- background: transparent;
61
- border: 0;
62
- outline: none;
63
- cursor: pointer;
64
- color: rgba(0, 0, 0, 0.88);
65
- white-space: nowrap;
66
-
67
- &-stretch {
68
- flex: auto;
69
- }
70
-
71
- &-active {
72
- color: $trionesColorPrimary;
73
- &::after{
74
- content: ' ';
75
- position: absolute;
76
- bottom: 0;
77
- width: calc(100% - 0.24rem * 2);
78
- height: 0.04rem;
79
- overflow: hidden;
80
- font-size: 0;
81
- border-radius: 50vh;
82
- box-sizing: border-box;
83
- background-color: $trionesColorPrimary;
84
- }
85
- }
86
-
87
- }
88
-
89
- &-content-holder {
90
- flex: auto;
91
- overflow: hidden;
92
- .#{$tabsCls} {
93
- &-content {
94
- height: 100%;
95
- }
96
- }
97
- }
98
-
99
- &-tab-pane {
100
- height: 100%;
101
- display: none;
102
-
103
- &-active {
104
- display: block;
105
- }
106
- }
107
- }
108
-
1
+ @use "../style/variable" as *;
2
+ $tabsCls: 'triones-antm-tabs';
3
+
4
+ .#{$tabsCls} {
5
+ display: flex;
6
+ flex-direction: column;
7
+ &-nav {
8
+ position: relative;
9
+ display: flex;
10
+ flex: none;
11
+ align-items: center;
12
+
13
+ &::before {
14
+ bottom: 0;
15
+ position: absolute;
16
+ right: 0;
17
+ left: 0;
18
+ border-bottom: 1Px solid #f0f0f0;
19
+ content: ' ';
20
+ }
21
+
22
+ &-wrap {
23
+ //position: relative;
24
+ //display: flex;
25
+ //flex: auto;
26
+ //align-self: stretch;
27
+ //overflow: hidden;
28
+ //white-space: nowrap;
29
+ //transform: translate(0);
30
+ width: 100%;
31
+ }
32
+
33
+ &-list {
34
+ position: relative;
35
+ display: flex;
36
+ flex: auto;
37
+ overflow-y: auto;
38
+ scrollbar-width: none;
39
+ }
40
+ }
41
+
42
+ &-ink-bar {
43
+ position: absolute;
44
+ bottom: 0;
45
+ background-color: $trionesColorPrimary;
46
+ height: 2px;
47
+ //width: 100px;
48
+ &-animated {
49
+
50
+ }
51
+ }
52
+
53
+ &-tab {
54
+ position: relative;
55
+ display: inline-flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ padding: 10Px 10Px;
59
+ font-size: 14Px;
60
+ background: transparent;
61
+ border: 0;
62
+ outline: none;
63
+ cursor: pointer;
64
+ color: rgba(0, 0, 0, 0.88);
65
+ white-space: nowrap;
66
+
67
+ &-stretch {
68
+ flex: auto;
69
+ }
70
+
71
+ &-active {
72
+ color: $trionesColorPrimary;
73
+ &::after{
74
+ content: ' ';
75
+ position: absolute;
76
+ bottom: 0;
77
+ width: calc(100% - 0.24rem * 2);
78
+ height: 0.04rem;
79
+ overflow: hidden;
80
+ font-size: 0;
81
+ border-radius: 50vh;
82
+ box-sizing: border-box;
83
+ background-color: $trionesColorPrimary;
84
+ }
85
+ }
86
+
87
+ }
88
+
89
+ &-content-holder {
90
+ flex: auto;
91
+ overflow: hidden;
92
+ .#{$tabsCls} {
93
+ &-content {
94
+ height: 100%;
95
+ }
96
+ }
97
+ }
98
+
99
+ &-tab-pane {
100
+ height: 100%;
101
+ display: none;
102
+
103
+ &-active {
104
+ display: block;
105
+ }
106
+ }
107
+ }
108
+
package/dist/Tabs/tabs.js CHANGED
@@ -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 { isEmpty, isEqual, isArray } from 'lodash';
12
+ import { isEmpty, isEqual, isArray } from 'lodash-es';
13
13
  import React, { useEffect, useReducer, useRef, useState } from 'react';
14
14
  import { TabsContext } from "./context";
15
15
  import "./style.scss";
@@ -1,5 +1,5 @@
1
- /**
2
- * compact: true
1
+ /**
2
+ * compact: true
3
3
  */
4
4
  import React from 'react';
5
5
  import "./style.scss";
@@ -1,8 +1,8 @@
1
- .tag-demo-style {
2
- &-content {
3
- display: flex;
4
- flex-wrap: wrap;
5
- gap: 8px;
6
- row-gap: 8px;
7
- }
8
- }
1
+ .tag-demo-style {
2
+ &-content {
3
+ display: flex;
4
+ flex-wrap: wrap;
5
+ gap: 8px;
6
+ row-gap: 8px;
7
+ }
8
+ }
@@ -1,86 +1,86 @@
1
- @import "../style/variable";
2
- $tagCls: 'triones-antm-tag';
3
-
4
- .#{$tagCls} {
5
- display: inline-block;
6
- align-items: center;
7
- padding: 2Px 8Px;
8
- font-size: 11Px;
9
- line-height: 1.2;
10
- border-radius: $trionesBorderRadius;
11
- box-sizing: border-box;
12
- white-space: nowrap;
13
-
14
- &-square {
15
- border-radius: 0;
16
- }
17
-
18
- &-round {
19
- border-radius: 12px;
20
- }
21
-
22
- // Default variant styles
23
- &-default {
24
- &.#{$tagCls}-solid {
25
- background: #666;
26
- color: #fff;
27
- }
28
- &.#{$tagCls}-outline {
29
- color: #666;
30
- border: 1px solid #666;
31
- background: transparent;
32
- }
33
- }
34
-
35
- // Primary variant styles
36
- &-primary {
37
- &.#{$tagCls}-solid {
38
- background: $trionesColorPrimary;
39
- color: #fff;
40
- }
41
- &.#{$tagCls}-outline {
42
- color: $trionesColorPrimary;
43
- border: 1px solid $trionesColorPrimary;
44
- background: transparent;
45
- }
46
- }
47
-
48
- // Success variant styles
49
- &-success {
50
- &.#{$tagCls}-solid {
51
- background: $trionesColorSuccess;
52
- color: #fff;
53
- }
54
- &.#{$tagCls}-outline {
55
- color: $trionesColorSuccess;
56
- border: 1px solid $trionesColorSuccess;
57
- background: transparent;
58
- }
59
- }
60
-
61
- // Warning variant styles
62
- &-warning {
63
- &.#{$tagCls}-solid {
64
- background: $trionesColorWarning;
65
- color: #fff;
66
- }
67
- &.#{$tagCls}-outline {
68
- color: $trionesColorWarning;
69
- border: 1px solid $trionesColorWarning;
70
- background: transparent;
71
- }
72
- }
73
-
74
- // Danger variant styles
75
- &-danger {
76
- &.#{$tagCls}-solid {
77
- background: $trionesColorError;
78
- color: #fff;
79
- }
80
- &.#{$tagCls}-outline {
81
- color: $trionesColorError;
82
- border: 1px solid $trionesColorError;
83
- background: transparent;
84
- }
85
- }
86
- }
1
+ @use "../style/variable" as *;
2
+ $tagCls: 'triones-antm-tag';
3
+
4
+ .#{$tagCls} {
5
+ display: inline-block;
6
+ align-items: center;
7
+ padding: 2Px 8Px;
8
+ font-size: 11Px;
9
+ line-height: 1.2;
10
+ border-radius: $trionesBorderRadius;
11
+ box-sizing: border-box;
12
+ white-space: nowrap;
13
+
14
+ &-square {
15
+ border-radius: 0;
16
+ }
17
+
18
+ &-round {
19
+ border-radius: 12px;
20
+ }
21
+
22
+ // Default variant styles
23
+ &-default {
24
+ &.#{$tagCls}-solid {
25
+ background: #666;
26
+ color: #fff;
27
+ }
28
+ &.#{$tagCls}-outline {
29
+ color: #666;
30
+ border: 1px solid #666;
31
+ background: transparent;
32
+ }
33
+ }
34
+
35
+ // Primary variant styles
36
+ &-primary {
37
+ &.#{$tagCls}-solid {
38
+ background: $trionesColorPrimary;
39
+ color: #fff;
40
+ }
41
+ &.#{$tagCls}-outline {
42
+ color: $trionesColorPrimary;
43
+ border: 1px solid $trionesColorPrimary;
44
+ background: transparent;
45
+ }
46
+ }
47
+
48
+ // Success variant styles
49
+ &-success {
50
+ &.#{$tagCls}-solid {
51
+ background: $trionesColorSuccess;
52
+ color: #fff;
53
+ }
54
+ &.#{$tagCls}-outline {
55
+ color: $trionesColorSuccess;
56
+ border: 1px solid $trionesColorSuccess;
57
+ background: transparent;
58
+ }
59
+ }
60
+
61
+ // Warning variant styles
62
+ &-warning {
63
+ &.#{$tagCls}-solid {
64
+ background: $trionesColorWarning;
65
+ color: #fff;
66
+ }
67
+ &.#{$tagCls}-outline {
68
+ color: $trionesColorWarning;
69
+ border: 1px solid $trionesColorWarning;
70
+ background: transparent;
71
+ }
72
+ }
73
+
74
+ // Danger variant styles
75
+ &-danger {
76
+ &.#{$tagCls}-solid {
77
+ background: $trionesColorError;
78
+ color: #fff;
79
+ }
80
+ &.#{$tagCls}-outline {
81
+ color: $trionesColorError;
82
+ border: 1px solid $trionesColorError;
83
+ background: transparent;
84
+ }
85
+ }
86
+ }
@@ -1,63 +1,63 @@
1
- $toastCls: 'triones-antm-toast';
2
-
3
- .#{$toastCls} {
4
- position: fixed;
5
- top: 0;
6
- left: 0;
7
- width: 100%;
8
- height: 100%;
9
- text-align: center;
10
- pointer-events: none;
11
-
12
- &-main {
13
-
14
- padding: 12Px;
15
- display: inline-block;
16
- position: relative;
17
- top: 50%;
18
- transform: translateY(-50%);
19
- width: auto;
20
- max-width: 204px;
21
- max-height: 70%;
22
- overflow: auto;
23
- color: #fff;
24
- word-break: break-all;
25
- background-color: rgba(0, 0, 0, .7);
26
- border-radius: 8px;
27
- pointer-events: all;
28
- font-size: var(--adm-font-size-7);
29
- line-height: 1.5;
30
- box-sizing: border-box;
31
- &-icon{
32
- padding: 35Px 12Px;
33
- min-width: 150Px;
34
- .#{$toastCls}{
35
- &-center{
36
- &-center{
37
- text-align: initial;
38
- }
39
- }
40
- }
41
- }
42
- }
43
-
44
- &-center{
45
- display: flex;
46
- flex-direction: column;
47
- justify-content: center;
48
- align-items: center;
49
- gap: 8Px;
50
- &-icon{
51
- .triones-antm-icon{
52
- font-size: 36Px;
53
- }
54
- }
55
- &-content{
56
- display: inline-block;
57
- color: #fff;
58
- word-break: break-all;
59
- pointer-events: all;
60
- text-align: initial;
61
- }
62
- }
63
- }
1
+ $toastCls: 'triones-antm-toast';
2
+
3
+ .#{$toastCls} {
4
+ position: fixed;
5
+ top: 0;
6
+ left: 0;
7
+ width: 100%;
8
+ height: 100%;
9
+ text-align: center;
10
+ pointer-events: none;
11
+
12
+ &-main {
13
+
14
+ padding: 12Px;
15
+ display: inline-block;
16
+ position: relative;
17
+ top: 50%;
18
+ transform: translateY(-50%);
19
+ width: auto;
20
+ max-width: 204px;
21
+ max-height: 70%;
22
+ overflow: auto;
23
+ color: #fff;
24
+ word-break: break-all;
25
+ background-color: rgba(0, 0, 0, .7);
26
+ border-radius: 8px;
27
+ pointer-events: all;
28
+ font-size: var(--adm-font-size-7);
29
+ line-height: 1.5;
30
+ box-sizing: border-box;
31
+ &-icon{
32
+ padding: 35Px 12Px;
33
+ min-width: 150Px;
34
+ .#{$toastCls}{
35
+ &-center{
36
+ &-center{
37
+ text-align: initial;
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+
44
+ &-center{
45
+ display: flex;
46
+ flex-direction: column;
47
+ justify-content: center;
48
+ align-items: center;
49
+ gap: 8Px;
50
+ &-icon{
51
+ .triones-antm-icon{
52
+ font-size: 36Px;
53
+ }
54
+ }
55
+ &-content{
56
+ display: inline-block;
57
+ color: #fff;
58
+ word-break: break-all;
59
+ pointer-events: all;
60
+ text-align: initial;
61
+ }
62
+ }
63
+ }
@@ -1,20 +1,20 @@
1
- @import "../style/variable";
2
-
3
- $verificationCodeInputCls: 'triones-antm-verification-code-input';
4
-
5
- .#{$verificationCodeInputCls} {
6
- &-send {
7
- padding-inline: $trionesPaddingContentHorizontal;
8
- cursor: pointer;
9
-
10
- &:hover {
11
- color: $trionesColorPrimary;
12
- }
13
- }
14
-
15
- &-counting {
16
- padding-inline: $trionesPaddingContentHorizontal;
17
- cursor: not-allowed;
18
- color: $trionesColorTextDisabled;
19
- }
20
- }
1
+ @use "../style/variable" as *;
2
+
3
+ $verificationCodeInputCls: 'triones-antm-verification-code-input';
4
+
5
+ .#{$verificationCodeInputCls} {
6
+ &-send {
7
+ padding-inline: $trionesPaddingContentHorizontal;
8
+ cursor: pointer;
9
+
10
+ &:hover {
11
+ color: $trionesColorPrimary;
12
+ }
13
+ }
14
+
15
+ &-counting {
16
+ padding-inline: $trionesPaddingContentHorizontal;
17
+ cursor: not-allowed;
18
+ color: $trionesColorTextDisabled;
19
+ }
20
+ }
@@ -1,17 +1,17 @@
1
- $class-prefix-water-mark: 'triones-antm-water-mark';
2
- /* prettier-ignore */
3
- .#{$class-prefix-water-mark} {
4
- --z-index: var(--triones-antm-water-mark-z-index, 2000);
5
-
6
- position: absolute;
7
- z-index: var(--z-index);
8
- left: 0;
9
- right: 0;
10
- top: 0;
11
- bottom: 0;
12
- pointer-events: none;
13
- background-repeat: repeat;
14
- &-full-page {
15
- position: fixed;
16
- }
17
- }
1
+ $class-prefix-water-mark: 'triones-antm-water-mark';
2
+ /* prettier-ignore */
3
+ .#{$class-prefix-water-mark} {
4
+ --z-index: var(--triones-antm-water-mark-z-index, 2000);
5
+
6
+ position: absolute;
7
+ z-index: var(--z-index);
8
+ left: 0;
9
+ right: 0;
10
+ top: 0;
11
+ bottom: 0;
12
+ pointer-events: none;
13
+ background-repeat: repeat;
14
+ &-full-page {
15
+ position: fixed;
16
+ }
17
+ }