@fjyueke/arco-mcp 1.0.1 → 1.0.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 (62) hide show
  1. package/dist/index.js +113 -1
  2. package/metaData/components/action-sheet/style.md +57 -0
  3. package/metaData/components/avatar/style.md +147 -0
  4. package/metaData/components/badge/style.md +74 -0
  5. package/metaData/components/button/style.md +151 -0
  6. package/metaData/components/carousel/style.md +208 -0
  7. package/metaData/components/cell/style.md +123 -0
  8. package/metaData/components/checkbox/style.md +62 -0
  9. package/metaData/components/circle-progress/style.md +52 -0
  10. package/metaData/components/collapse/style.md +53 -0
  11. package/metaData/components/context-provider/style.md +1 -0
  12. package/metaData/components/count-down/style.md +7 -0
  13. package/metaData/components/date-picker/style.md +27 -0
  14. package/metaData/components/dialog/style.md +271 -0
  15. package/metaData/components/divider/style.md +68 -0
  16. package/metaData/components/dropdown/style.md +108 -0
  17. package/metaData/components/dropdown-menu/style.md +60 -0
  18. package/metaData/components/ellipsis/style.md +31 -0
  19. package/metaData/components/form/style.md +105 -0
  20. package/metaData/components/grid/style.md +109 -0
  21. package/metaData/components/image/style.md +144 -0
  22. package/metaData/components/image-picker/style.md +116 -0
  23. package/metaData/components/image-preview/style.md +103 -0
  24. package/metaData/components/index-bar/style.md +122 -0
  25. package/metaData/components/input/style.md +108 -0
  26. package/metaData/components/keyboard/style.md +80 -0
  27. package/metaData/components/load-more/style.md +7 -0
  28. package/metaData/components/loading/style.md +102 -0
  29. package/metaData/components/masking/style.md +30 -0
  30. package/metaData/components/nav-bar/style.md +112 -0
  31. package/metaData/components/notice-bar/style.md +124 -0
  32. package/metaData/components/notify/style.md +40 -0
  33. package/metaData/components/pagination/style.md +105 -0
  34. package/metaData/components/picker/style.md +46 -0
  35. package/metaData/components/picker-view/style.md +75 -0
  36. package/metaData/components/popover/style.md +226 -0
  37. package/metaData/components/popup/style.md +115 -0
  38. package/metaData/components/popup-swiper/style.md +10 -0
  39. package/metaData/components/portal/style.md +1 -0
  40. package/metaData/components/progress/style.md +114 -0
  41. package/metaData/components/pull-refresh/style.md +86 -0
  42. package/metaData/components/radio/style.md +57 -0
  43. package/metaData/components/rate/style.md +63 -0
  44. package/metaData/components/search-bar/style.md +115 -0
  45. package/metaData/components/show-monitor/style.md +1 -0
  46. package/metaData/components/skeleton/style.md +147 -0
  47. package/metaData/components/slider/style.md +292 -0
  48. package/metaData/components/stepper/style.md +85 -0
  49. package/metaData/components/steps/style.md +304 -0
  50. package/metaData/components/sticky/style.md +5 -0
  51. package/metaData/components/swipe-action/style.md +89 -0
  52. package/metaData/components/swipe-load/style.md +29 -0
  53. package/metaData/components/switch/style.md +158 -0
  54. package/metaData/components/tab-bar/style.md +57 -0
  55. package/metaData/components/tabs/style.md +436 -0
  56. package/metaData/components/tag/style.md +133 -0
  57. package/metaData/components/textarea/style.md +37 -0
  58. package/metaData/components/toast/style.md +93 -0
  59. package/metaData/components/transition/style.md +28 -0
  60. package/metaData/components/uploader/style.md +86 -0
  61. package/metaData/tokens.json +2358 -0
  62. package/package.json +1 -1
@@ -0,0 +1,80 @@
1
+ @import '../../../style/mixin.less';
2
+
3
+ .@{prefix}-keyboard {
4
+ .use-var(background, keyboard-background);
5
+ .use-var(padding, keyboard-content-padding);
6
+ .noselect();
7
+
8
+ &-wrapper {
9
+ display: flex;
10
+ }
11
+
12
+ &-key-wrapper {
13
+ flex: 2 0 auto;
14
+ }
15
+
16
+ &-row {
17
+ display: flex;
18
+ &:not(&:nth-last-child(1)) {
19
+ .use-var(margin-bottom, keyboard-unified-margin);
20
+ }
21
+
22
+ .@{prefix}-keyboard-key {
23
+ &:not(&:nth-child(1)) {
24
+ .use-var(margin-left, keyboard-unified-margin);
25
+ }
26
+
27
+ &-special {
28
+ flex: 2.1 0 auto;
29
+ }
30
+ }
31
+ }
32
+
33
+ &-col {
34
+ flex: 1;
35
+ display: flex;
36
+ flex-direction: column;
37
+ .use-var(margin-left, keyboard-unified-margin);
38
+
39
+ .@{prefix}-keyboard-key {
40
+ &:not(&:nth-child(1)) {
41
+ .use-var(margin-top, keyboard-unified-margin);
42
+ }
43
+
44
+ &-confirm {
45
+ flex: 2.5 0 auto;
46
+ .use-var(background, keyboard-confirm-key-background);
47
+ .use-var(color, keyboard-confirm-key-color);
48
+ .use-var(font-size, keyboard-confirm-key-font-size);
49
+ }
50
+ }
51
+ }
52
+
53
+ &-key {
54
+ display: flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ flex: 1;
58
+
59
+ .use-var(font-weight, keyboard-key-font-weight);
60
+ .use-var(font-size, keyboard-key-font-size);
61
+ .use-var(line-height, keyboard-key-line-height);
62
+ .use-var(background, keyboard-key-background);
63
+ .use-var(border-radius, keyboard-key-border-radius);
64
+ .use-var(height, keyboard-key-height);
65
+ .use-var(border-radius, keyboard-key-border-radius);
66
+ .use-var(color, keyboard-key-color);
67
+
68
+ &:active {
69
+ .use-var(background, keyboard-key-active-background);
70
+ }
71
+
72
+ .@{prefix}-icon {
73
+ .use-var(font-size, keyboard-key-icon-size);
74
+ }
75
+ }
76
+
77
+ &-popup {
78
+ display: none;
79
+ }
80
+ }
@@ -0,0 +1,7 @@
1
+ @import "../../../style/mixin.less";
2
+
3
+ .@{prefix}-load-more {
4
+ text-align: center;
5
+ .use-var(font-size, load-more-font-size);
6
+ .use-var(color, load-more-text-color);
7
+ }
@@ -0,0 +1,102 @@
1
+ @import "../../../style/mixin.less";
2
+
3
+ .@{prefix}-loading {
4
+ .set-loading-color-var(loading-color);
5
+ display: inline-block;
6
+ font-size: 0;
7
+ line-height: 0;
8
+ position: relative;
9
+ @keyframes changDeg {
10
+
11
+ 0% {
12
+ transform: rotate(0deg);
13
+ }
14
+
15
+ 100% {
16
+ transform: rotate(360deg);
17
+ }
18
+ }
19
+
20
+ &.circle,
21
+ &.arc,
22
+ &.spin {
23
+ animation: changDeg 1s infinite linear;
24
+ }
25
+
26
+ &.circle {
27
+
28
+ .loading-circle-middle {
29
+ stop-opacity: .5;
30
+ }
31
+
32
+ .loading-circle-end {
33
+ stop-opacity: 0;
34
+ }
35
+ }
36
+
37
+ &.dot {
38
+
39
+ .dot-cell {
40
+ display: inline-block;
41
+ .use-var(width, loading-dot-size);
42
+ .use-var(height, loading-dot-size);
43
+ .use-var(margin-left, loading-dot-gutter);
44
+
45
+ &:first-of-type {
46
+ margin-left: 0;
47
+ }
48
+
49
+ &.filleted {
50
+ border-radius: 50%;
51
+ }
52
+ }
53
+ }
54
+
55
+ &.spin {
56
+ .rem(height, 22);
57
+ .rem(width, 22);
58
+ position: relative;
59
+
60
+ .spin-cell {
61
+ position: absolute;
62
+ .rem(left, 10);
63
+ .rem(top, 1);
64
+ display: inline-block;
65
+ .rem(height, 10);
66
+ .rem(padding-bottom, 4);
67
+ overflow: hidden;
68
+ transform-origin: 50% bottom;
69
+
70
+ &-inner {
71
+ display: inline-block;
72
+ position: absolute;
73
+ top: 0;
74
+ left: 0;
75
+ width: 200%;
76
+ transform: scale(.5);
77
+ transform-origin: top left;
78
+ .rem(height, 12);
79
+ }
80
+ }
81
+ }
82
+
83
+ &.arc {
84
+
85
+ .arc-bg {
86
+ .use-var(stroke, loading-arc-background-color);
87
+ }
88
+ }
89
+
90
+ &.line {
91
+ width: 100%;
92
+
93
+ .loading-line-start,
94
+ .loading-line-end {
95
+ .use-var(stop-color, loading-color);
96
+ }
97
+
98
+ .loading-line-start {
99
+ stop-opacity: 0;
100
+ }
101
+ }
102
+ }
@@ -0,0 +1,30 @@
1
+ @import '../../../style/mixin.less';
2
+
3
+ .@{prefix}-masking {
4
+ &-mask,
5
+ &-content {
6
+ &.pre-mount:not([class*="-enter"]):not([class*="-exit"]),
7
+ &[class*="-exit-done"] {
8
+ opacity: 0;
9
+ pointer-events: none;
10
+ }
11
+ }
12
+ &-mask {
13
+ position: fixed;
14
+ width: 100%;
15
+ height: 100%;
16
+ left: 0;
17
+ top: 0;
18
+ z-index: @full-screen-z-index;
19
+ .use-var(background, mask-background);
20
+ }
21
+ &-content {
22
+ position: fixed;
23
+ z-index: @full-screen-z-index + 1;
24
+ &.at-center {
25
+ left: 50%;
26
+ top: 50%;
27
+ transform: translate(-50%, -50%);
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,112 @@
1
+ @import "../../../style/mixin.less";
2
+
3
+ .@{prefix}-nav-bar {
4
+ position: relative;
5
+ width: 100%;
6
+ box-sizing: content-box;
7
+ .use-var(color, nav-bar-font-color);
8
+ .use-var(background, nav-bar-background);
9
+
10
+ &&-fixed {
11
+ .use-var(height, nav-bar-height);
12
+ }
13
+
14
+ &&-float {
15
+ position: fixed;
16
+ top: 0;
17
+ left: 0;
18
+ z-index: @full-screen-z-index;
19
+ }
20
+
21
+ &&-float:not(&-hide) &-wrapper-fixed {
22
+ // 部分安卓4机型在有两层fixed时会疯狂抖动,因此外层fixed时内层不再fixed
23
+ // 辣鸡安卓4机型在设置为absolute的时候快速回到顶部时又有残影,所以在hide状态还是fixed
24
+ position: absolute;
25
+ }
26
+
27
+ &&-hide {
28
+ .@{prefix}-nav-bar-title, .@{prefix}-nav-bar-right {
29
+ visibility: hidden;
30
+ }
31
+ }
32
+
33
+ &&-hide &-wrapper-border::after {
34
+ border-color: transparent;
35
+ }
36
+
37
+ &-wrapper {
38
+ background: inherit;
39
+ .use-var(height, nav-bar-height);
40
+ box-sizing: content-box;
41
+ width: 100%;
42
+ background-position: center;
43
+ background-repeat: no-repeat;
44
+ background-size: 100% 100%;
45
+ transition: all .1s linear;
46
+
47
+ &&-border {
48
+ .onepx-border-var(bottom, nav-bar-bottom-border-color);
49
+ }
50
+
51
+ &&-fixed {
52
+ // onepx-border mixin 会加上position relative,暗黑模式下优先级会高于这条优先级,所以加上important声明
53
+ position: fixed !important;
54
+ top: 0;
55
+ left: 0;
56
+ z-index: @fixed-z-index;
57
+ }
58
+ }
59
+
60
+ &-inner {
61
+ position: relative;
62
+ height: 100%;
63
+ }
64
+
65
+ &-left,
66
+ &-title,
67
+ &-right {
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ }
72
+
73
+ &-left,
74
+ &-right {
75
+ .text-overflow();
76
+ .use-var(font-size, nav-bar-two-sides-font-size);
77
+ .use-var(padding, nav-bar-two-sides-padding);
78
+ position: absolute;
79
+ top: 0;
80
+ height: 100%;
81
+ color: inherit;
82
+ }
83
+
84
+ &-left {
85
+ left: 0;
86
+ }
87
+
88
+ &-title {
89
+ .use-var(font-size, nav-bar-title-font-size);
90
+ .use-var(padding, nav-bar-title-padding);
91
+ width: 100%;
92
+ height: 100%;
93
+ color: inherit;
94
+ text-align: center;
95
+
96
+ &-text {
97
+ .use-var(font-size, nav-bar-title-text-font-size);
98
+ .text-overflow();
99
+ .noselect();
100
+ font-weight: bold;
101
+ }
102
+ }
103
+
104
+ &-right {
105
+ right: 0;
106
+ }
107
+
108
+ .nav-bar-back {
109
+ .use-var(height, nav-bar-back-icon-height);
110
+ font-size: 0;
111
+ }
112
+ }
@@ -0,0 +1,124 @@
1
+ @import "../../../style/mixin.less";
2
+
3
+ .@{prefix}-notice-bar {
4
+ .use-var(background, notice-bar-background);
5
+ .use-var(color, notice-bar-color);
6
+ .use-var(padding, notice-bar-wrapper-padding);
7
+ display: flex;
8
+ align-items: flex-start;
9
+ font-size: 0;
10
+
11
+ &.no-wrap &-content-inner {
12
+ white-space: nowrap;
13
+ }
14
+
15
+ &.ellipsis &-content-inner {
16
+ max-width: 100%;
17
+ overflow: hidden;
18
+ text-overflow: ellipsis;
19
+ }
20
+
21
+ &.wrapable &-content-inner {
22
+ .use-var(line-height, notice-bar-line-height);
23
+ .use-var(padding, notice-bar-vertical-padding, "", 0);
24
+ }
25
+
26
+ &-left-part,
27
+ &-right-part,
28
+ &-close {
29
+ .use-var(padding, notice-bar-vertical-padding, "", 0);
30
+ .use-var(font-size, notice-bar-text-font-size);
31
+ .@{prefix}-icon {
32
+ float: left;
33
+ }
34
+
35
+ &::after {
36
+ content: "";
37
+ display: block;
38
+ clear: both;
39
+ }
40
+ }
41
+
42
+ &-left-part {
43
+ .use-var-with-rtl(padding-right, notice-bar-horizontal-padding);
44
+ }
45
+
46
+ &-right-part,
47
+ &-close {
48
+ .use-var-with-rtl(padding-left, notice-bar-horizontal-padding);
49
+ }
50
+
51
+ &-content {
52
+ flex: 1;
53
+ overflow: hidden;
54
+ position: relative;
55
+
56
+ &-inner {
57
+ display: inline-block;
58
+ .use-var(font-size, notice-bar-text-font-size);
59
+ .use-var(line-height, notice-bar-single-line-height);
60
+
61
+ &.animate {
62
+ animation: marquee linear both;
63
+ .style-with-rtl({
64
+ animation-name: marquee-reverse;
65
+ });
66
+ }
67
+ }
68
+ .@{prefix}-carousel {
69
+ .use-var(height, notice-bar-single-line-height);
70
+ white-space: normal;
71
+ .@{prefix}-carousel-item {
72
+ .use-var(font-size, notice-bar-text-font-size);
73
+ .use-var(line-height, notice-bar-single-line-height);
74
+ }
75
+ }
76
+ .@{prefix}-carousel-indicator {
77
+ display: none;
78
+ }
79
+ }
80
+ .@{prefix}-icon {
81
+ .use-var(font-size, notice-bar-icon-font-size);
82
+ .use-var(line-height, notice-bar-line-height);
83
+ .use-var(height, notice-bar-line-height); // for svg
84
+ }
85
+
86
+ &-gradient {
87
+ position: absolute;
88
+ top: 0;
89
+ height: 100%;
90
+ z-index: 1;
91
+ .use-var(width, notice-bar-gradient-width);
92
+ .use-var(background, notice-bar-gradient-background);
93
+
94
+ &.left {
95
+ left: 0;
96
+ }
97
+
98
+ &.right {
99
+ right: -2PX;
100
+ transform: rotate(180deg);
101
+ }
102
+ }
103
+
104
+ @keyframes marquee {
105
+ 0% {
106
+ transform: translate3d(0, 0, 0);
107
+ }
108
+
109
+ 100% {
110
+ transform: translate3d(-100%, 0, 0);
111
+ }
112
+ }
113
+
114
+ @keyframes marquee-reverse {
115
+
116
+ 0% {
117
+ transform: translate3d(0, 0, 0);
118
+ }
119
+
120
+ 100% {
121
+ transform: translate3d(100%, 0, 0);
122
+ }
123
+ }
124
+ }
@@ -0,0 +1,40 @@
1
+ @import '../../../style/mixin.less';
2
+
3
+ .@{prefix}-notify {
4
+ width: 100%;
5
+ overflow: hidden;
6
+ position: relative;
7
+ transition-property: height;
8
+ .use-var(color, notify-font-color);
9
+ .use-var(font-size, notify-font-size);
10
+ &-content {
11
+ width: 100%;
12
+ display: flex;
13
+ justify-content: center;
14
+ align-items: center;
15
+ position: absolute;
16
+ left: 0;
17
+ top: 0;
18
+ transition-property: transform;
19
+ .use-var(min-height, notify-min-height);
20
+ }
21
+ &-info {
22
+ background: transparent;
23
+ .use-var(color, notify-info-font-color);
24
+ }
25
+ &-success {
26
+ .use-var(background, notify-success-background);
27
+ }
28
+ &-error {
29
+ .use-var(background, notify-error-background);
30
+ }
31
+ &-warn {
32
+ .use-var(background, notify-warn-background);
33
+ }
34
+ &-content-transition-Y0 {
35
+ transform: translateY(0);
36
+ }
37
+ &-content-transition-Y100 {
38
+ transform: translateY(-100%);
39
+ }
40
+ }
@@ -0,0 +1,105 @@
1
+ @import '../../../style/mixin.less';
2
+
3
+
4
+ .@{prefix}-pagination {
5
+
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: space-between;
9
+ .use-var(padding, pagination-padding);
10
+ &-prev-field, &-next-field {
11
+ flex: 1;
12
+ display: flex;
13
+ .use-var(color, font-color);
14
+ }
15
+ &-prev-field {
16
+ justify-content: flex-start;
17
+ &.flex-center {
18
+ justify-content: flex-end;
19
+ .use-var-with-rtl(margin-right, pagination-center-field-gutter);
20
+ }
21
+ }
22
+ &-next-field {
23
+ justify-content: flex-end;
24
+ &.flex-center {
25
+ justify-content: flex-start;
26
+ .use-var-with-rtl(margin-left, pagination-center-field-gutter);
27
+ }
28
+ }
29
+
30
+ &-field {
31
+ cursor: pointer;
32
+ text-align: center;
33
+ font-size: 0;
34
+ display: inline-flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ box-sizing: border-box;
38
+ .use-var(font-size, pagination-field-font-size);
39
+ .use-var(line-height, pagination-field-line-height);
40
+ .noselect();
41
+ .btn-icon {
42
+ display: inline-flex;
43
+ align-items: center;
44
+ .style-with-rtl({
45
+ transform: scaleX(-1);
46
+ });
47
+ &.next {
48
+ transform: rotateY(180deg);
49
+ .style-with-rtl({
50
+ transform: none;
51
+ });
52
+ }
53
+ }
54
+ }
55
+ &-field.button {
56
+ .use-var(padding, pagination-field-button-padding);
57
+ .use-var(border-radius, pagination-field-button-border-radius);
58
+ .use-var(min-height, pagination-field-button-min-height);
59
+ .use-var(background, pagination-field-default-background);
60
+ .use-var(color, pagination-field-default-text-color);
61
+ &.primary {
62
+ .use-var(background, pagination-field-primary-background);
63
+ .use-var(color, pagination-field-primary-text-color);
64
+ }
65
+ .btn-text {
66
+ .use-var(font-size, pagination-field-btn-text-font-size);
67
+ }
68
+ .btn-icon + .btn-text,
69
+ .btn-text + .btn-icon {
70
+ .use-var-with-rtl(margin-left, pagination-field-btn-icon-text-gutter);
71
+ }
72
+ }
73
+ &.android &-field.button {
74
+ .btn-text {
75
+ .rem(padding-top, 2);
76
+ }
77
+ }
78
+ &-field.text {
79
+ .use-var(color, pagination-field-default-text-color);
80
+ &.primary {
81
+ .use-var(color, pagination-field-text-primary-text-color);
82
+ }
83
+ &.disabled {
84
+ background: none;
85
+ }
86
+ }
87
+ &-field.disabled {
88
+ .use-var(background, pagination-field-disabled-background);
89
+ .use-var(color, pagination-field-disabled-text-color);
90
+ }
91
+
92
+ &-item {
93
+ flex: 0 0 auto;
94
+ text-align: center;
95
+ .use-var(font-size, pagination-item-font-size);
96
+ .use-var(line-height, pagination-item-line-height);
97
+ .use-var(color, pagination-item-default-text-color);
98
+ .active {
99
+ .use-var(color, pagination-item-primary-text-color);
100
+ }
101
+ }
102
+ }
103
+ .@{prefix}-pagination-simple {
104
+ justify-content: center;
105
+ }
@@ -0,0 +1,46 @@
1
+ @import "../../../style/mixin.less";
2
+
3
+ .@{prefix}-picker {
4
+
5
+ .@{prefix}-popup-content {
6
+ .use-var(box-shadow, picker-wrapper-shadow);
7
+ .use-var(border-top-left-radius, picker-wrapper-border-radius);
8
+ .use-var(border-top-right-radius, picker-wrapper-border-radius);
9
+ }
10
+
11
+ &-header {
12
+ position: relative;
13
+ display: flex;
14
+ justify-content: space-between;
15
+ align-items: center;
16
+ .use-var(background-color, picker-header-background);
17
+ .use-var(height, picker-header-height);
18
+ .use-var(border-top-left-radius, picker-wrapper-border-radius);
19
+ .use-var(border-top-right-radius, picker-wrapper-border-radius);
20
+
21
+ &-title {
22
+ flex: 1;
23
+ text-align: center;
24
+ .use-var(font-size, picker-title-font-size);
25
+ .use-var(padding, picker-title-padding);
26
+ .use-var(color, font-color);
27
+ .text-overflow();
28
+ }
29
+
30
+ &-btn {
31
+ position: absolute;
32
+ .use-var(font-size, picker-button-font-size);
33
+ .use-var(padding, picker-button-padding);
34
+
35
+ &.left {
36
+ .set-prop-with-rtl(left, 0);
37
+ .use-var(color, picker-left-btn-color);
38
+ }
39
+
40
+ &.right {
41
+ .set-prop-with-rtl(right, 0);
42
+ .use-var(color, picker-right-btn-color);
43
+ }
44
+ }
45
+ }
46
+ }