@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,208 @@
1
+ @import "../../../style/mixin.less";
2
+
3
+ .@{prefix}-carousel {
4
+
5
+ &-wrap {
6
+ position: relative;
7
+ font-size: 0;
8
+ width: 100%;
9
+ }
10
+ position: relative;
11
+ width: 100%;
12
+ overflow: hidden;
13
+ transition: height .3s;
14
+ box-sizing: content-box;
15
+
16
+ &.wrap-placeholder {
17
+ display: none;
18
+ }
19
+
20
+ &-inner {
21
+ overflow: visible;
22
+
23
+ &:not(.vertical) {
24
+ white-space: nowrap;
25
+ }
26
+
27
+ &.auto,
28
+ &.auto &-item-inner {
29
+ .use-var(transition-timing-function, carousel-auto-transition);
30
+ }
31
+
32
+ &.slide,
33
+ &.slide &-item-inner {
34
+ .use-var(transition-timing-function, carousel-slide-transition);
35
+ }
36
+ }
37
+
38
+ &-item {
39
+ width: 100%;
40
+ height: 100%;
41
+ display: inline-block;
42
+ vertical-align: top;
43
+ white-space: normal;
44
+ position: relative;
45
+
46
+ &.ssr-float {
47
+ max-height: 0;
48
+ overflow: visible;
49
+ }
50
+
51
+ &.vertical > *,
52
+ &.vertical &-inner > * {
53
+ height: 100%;
54
+ }
55
+
56
+ & > img,
57
+ &-inner > img,
58
+ .carousel-item-img {
59
+ width: 100%;
60
+ height: 100%;
61
+ object-fit: cover;
62
+ object-position: center;
63
+ }
64
+
65
+ .carousel-item-text {
66
+ position: absolute;
67
+ bottom: 0;
68
+ left: 0;
69
+ width: 100%;
70
+ display: flex;
71
+ align-items: center;
72
+ box-sizing: border-box;
73
+ .use-var(padding, carousel-item-text-padding);
74
+ .use-var(font-size, carousel-item-text-font-size);
75
+ .use-var(height, carousel-item-text-height);
76
+ .use-var(color, carousel-item-text-color);
77
+ .use-var(background, carousel-item-text-background);
78
+ }
79
+
80
+ &-inner {
81
+ width: 100%;
82
+ height: 100%;
83
+ }
84
+
85
+ &-inner {
86
+ width: 100%;
87
+ height: 100%;
88
+ }
89
+ }
90
+
91
+ &-indicator {
92
+ position: absolute;
93
+ .use-var(bottom, carousel-indicator-position);
94
+ z-index: 1;
95
+ will-change: transform;
96
+ box-sizing: border-box;
97
+
98
+ &.pos-start {
99
+ .use-var-with-rtl(left, carousel-indicator-safe-padding);
100
+ .set-value-with-rtl(text-align, left);
101
+ }
102
+
103
+ &.pos-center {
104
+ left: 50%;
105
+ transform: translate3d(-50%, 0, 0);
106
+ text-align: center;
107
+ }
108
+
109
+ &.pos-end {
110
+ .use-var-with-rtl(right, carousel-indicator-safe-padding);
111
+ .set-value-with-rtl(text-align, right);
112
+ }
113
+
114
+ &-vertical {
115
+
116
+ .indicator {
117
+ display: block;
118
+ box-sizing: border-box;
119
+ .use-var(height, carousel-square-indicator-width);
120
+ .use-var(width, carousel-square-indicator-height);
121
+
122
+ &:not(:last-of-type) {
123
+ margin: 0;
124
+ .use-var(margin-bottom, carousel-square-indicator-gutter);
125
+ }
126
+
127
+ &.type-circle:not(:last-of-type) {
128
+ margin: 0;
129
+ .use-var(margin-bottom, carousel-circle-indicator-gutter);
130
+ }
131
+ }
132
+
133
+ &.pos-start {
134
+ .use-var(top, carousel-indicator-safe-padding);
135
+ }
136
+
137
+ &.pos-center {
138
+ bottom: 50%;
139
+ transform: translate3d(0, 50%, 0);
140
+ }
141
+
142
+ &.pos-end {
143
+ .use-var(bottom, carousel-indicator-safe-padding);
144
+ }
145
+
146
+ &.ver-pos-left {
147
+ left: auto;
148
+ right: auto;
149
+ .use-var-with-rtl(left, carousel-indicator-position);
150
+ }
151
+
152
+ &.ver-pos-right {
153
+ left: auto;
154
+ right: auto;
155
+ .use-var-with-rtl(right, carousel-indicator-position);
156
+ }
157
+ }
158
+
159
+ &.inverse {
160
+
161
+ .indicator {
162
+ .use-var(background-color, carousel-indicator-inverse-background);
163
+
164
+ &.active {
165
+ .use-var(background-color, carousel-indicator-active-inverse-background);
166
+ }
167
+ }
168
+ }
169
+
170
+ &.outside {
171
+ position: relative;
172
+ left: 0;
173
+ transform: none;
174
+ bottom: 0;
175
+ .use-var(padding, carousel-indicator-outside-padding);
176
+ }
177
+
178
+ .indicator {
179
+ transition: all .2s;
180
+ .use-var(background-color, carousel-indicator-background);
181
+
182
+ &.active {
183
+ .use-var(background-color, carousel-indicator-active-background);
184
+ }
185
+ }
186
+
187
+ &-horizontal .indicator {
188
+ display: inline-block;
189
+ .use-var(width, carousel-square-indicator-width);
190
+ .use-var(height, carousel-square-indicator-height);
191
+
192
+ &:not(:last-of-type) {
193
+ .use-var-with-rtl(margin-right, carousel-square-indicator-gutter);
194
+ }
195
+ }
196
+
197
+ .circle-indicator,
198
+ .indicator.type-circle {
199
+ .use-var(width, carousel-circle-indicator-size);
200
+ .use-var(height, carousel-circle-indicator-size);
201
+ border-radius: 50%;
202
+
203
+ &:not(:last-of-type) {
204
+ .use-var-with-rtl(margin-right, carousel-circle-indicator-gutter);
205
+ }
206
+ }
207
+ }
208
+ }
@@ -0,0 +1,123 @@
1
+ @import "../../../style/mixin.less";
2
+
3
+ .@{prefix}-cell {
4
+ .use-var(color, cell-text-color);
5
+ .use-var(font-size, cell-font-size);
6
+ .use-var(margin-left, cell-horizontal-padding);
7
+ .use-var(padding-right, cell-horizontal-padding);
8
+
9
+ &:not(:first-of-type).bordered {
10
+ .onepx-border-var(top, line-color);
11
+ }
12
+
13
+ &.without-group {
14
+ .use-var(background-color, cell-background-color);
15
+ .use-var(padding-left, cell-horizontal-padding);
16
+ margin-left: 0;
17
+
18
+ &.bordered {
19
+ .onepx-border-var(top, line-color);
20
+ .onepx-border-var(bottom, line-color);
21
+ }
22
+ }
23
+
24
+ &-inner {
25
+ display: flex;
26
+ align-items: center;
27
+ .use-var(height, cell-item-height);
28
+
29
+ &.has-desc {
30
+ .use-var(height, cell-item-has-desc-height);
31
+ }
32
+ }
33
+
34
+ .cell-label {
35
+ .use-var(color, cell-label-color);
36
+ .use-var-with-rtl(margin-right, cell-label-gutter);
37
+
38
+ .cell-title {
39
+ .use-var(font-size, cell-title-font-size);
40
+ .use-var(font-weight, cell-title-font-weight);
41
+ }
42
+ }
43
+
44
+ .cell-desc {
45
+ .use-var(color, cell-desc-color);
46
+ .use-var(font-size, cell-desc-font-size);
47
+ .use-var(margin-top, cell-desc-margin-top);
48
+ }
49
+
50
+ .cell-content {
51
+ flex: 1;
52
+ display: flex;
53
+ align-items: center;
54
+ height: 100%;
55
+
56
+ &.has-label {
57
+ justify-content: flex-end;
58
+ }
59
+
60
+ .cell-text {
61
+ width: 100%;
62
+ .set-value-with-rtl(text-align, right);
63
+ .use-var(font-size, cell-content-font-size);
64
+ .text-overflow(2);
65
+ }
66
+ }
67
+
68
+ .cell-label-icon {
69
+ .use-var-with-rtl(margin-right, cell-label-icon-gutter);
70
+ font-size: 0;
71
+ .@{prefix}-icon {
72
+ line-height: initial;
73
+ .use-var(font-size, cell-label-icon-font-size);
74
+ .use-var(color, cell-label-icon-color);
75
+ }
76
+ }
77
+
78
+ .cell-arrow-icon {
79
+ .style-with-rtl({
80
+ transform: scale(-1);
81
+ });
82
+ .use-var-with-rtl(margin-left, cell-arrow-gutter);
83
+ font-size: 0;
84
+ .@{prefix}-icon {
85
+ .use-var(font-size, cell-arrow-font-size);
86
+ .use-var(color, cell-arrow-color);
87
+ }
88
+
89
+ .arrow-icon-svg {
90
+ .rem(width, 8);
91
+
92
+ path {
93
+ .use-var(fill, cell-arrow-color);
94
+ }
95
+ }
96
+ }
97
+
98
+ .@{prefix}-input-wrap {
99
+ .set-prop-with-rtl(padding-left, 0, {
100
+ .use-var(padding-left, input-horizontal-padding);
101
+ });
102
+ }
103
+ }
104
+
105
+ .@{prefix}-cell-group {
106
+
107
+ .cell-group-header,
108
+ .cell-group-footer {
109
+ .use-var(color, cell-text-color);
110
+ .use-var(font-size, cell-extra-font-size);
111
+ .use-var(line-height, cell-extra-line-height);
112
+ .use-var(padding, cell-extra-padding);
113
+ }
114
+
115
+ .cell-group-body {
116
+ .use-var(background-color, cell-background-color);
117
+
118
+ &.bordered {
119
+ .onepx-border-var(top, line-color);
120
+ .onepx-border-var(bottom, line-color);
121
+ }
122
+ }
123
+ }
@@ -0,0 +1,62 @@
1
+ @import "../../../style/mixin.less";
2
+
3
+ .@{prefix}-checkbox {
4
+ display: inline-flex;
5
+ align-items: center;
6
+
7
+ .checkbox-icon {
8
+ display: inline-flex;
9
+ align-items: center;
10
+ .use-var(font-size, checkbox-icon-font-size);
11
+ .use-var(color, checkbox-icon-color);
12
+
13
+ &.checked {
14
+ .use-var(color, checkbox-icon-checked-color);
15
+ }
16
+
17
+ &.disabled {
18
+ .use-var(color, checkbox-icon-disabled-color);
19
+ }
20
+
21
+ &.checked.disabled {
22
+ .use-var(color, checkbox-icon-checked-disabled-color);
23
+ }
24
+
25
+ .@{prefix}-icon-circle-disabled path {
26
+ .use-var(stroke, line-color);
27
+ }
28
+ }
29
+
30
+ .checkbox-text {
31
+ .use-var(font-size, checkbox-text-font-size);
32
+ .use-var(color, font-color);
33
+ }
34
+
35
+ .checkbox-icon + .checkbox-text {
36
+ .use-var-with-rtl(margin-left, checkbox-icon-margin-right);
37
+ }
38
+
39
+ &.disabled .checkbox-text {
40
+ .use-var(opacity, checkbox-text-disabled-opacity);
41
+ }
42
+
43
+ &.block {
44
+ width: 100%;
45
+ }
46
+
47
+ &.justify {
48
+ width: 100%;
49
+ justify-content: space-between;
50
+ }
51
+ }
52
+
53
+ .@{prefix}-checkbox-group {
54
+ .@{prefix}-checkbox:not(:last-child) {
55
+ .use-var-with-rtl(margin-right, checkbox-group-gutter);
56
+
57
+ &.block,
58
+ &.justify {
59
+ .set-prop-with-rtl(margin-right, 0);
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,52 @@
1
+ @import "../../../style/mixin.less";
2
+
3
+ .@{prefix}-circle-progress {
4
+ position: relative;
5
+
6
+ &-text {
7
+ position: absolute;
8
+ .use-var(font-size, circle-progress-font-size);
9
+ }
10
+
11
+ &-text-center {
12
+ left: 50%;
13
+ top: 50%;
14
+ transform: translate(-50%, -50%);
15
+ }
16
+
17
+ &-text-bottom {
18
+ .rem(bottom, -20);
19
+ left: 50%;
20
+ transform: translateX(-50%);
21
+ }
22
+
23
+ .track-color {
24
+ .use-var(stroke, circle-progress-track-color);
25
+ }
26
+
27
+ .color {
28
+ .use-var(stroke, circle-progress-primary-color);
29
+ .use-var(color, circle-progress-primary-color);
30
+ }
31
+
32
+ .mini {
33
+ .use-var(stroke, circle-progress-mini-track-color);
34
+ }
35
+
36
+ .disabled {
37
+ .use-var(color, circle-progress-disabled-color);
38
+ .use-var(stroke, circle-progress-disabled-color);
39
+ }
40
+
41
+ .linear-gradient-start {
42
+ .use-var(stop-color, circle-progress-linear-gradient-start-color);
43
+ }
44
+
45
+ .linear-gradient-text {
46
+ .use-var(color, circle-progress-linear-gradient-text-color);
47
+ }
48
+
49
+ .linear-gradient-end {
50
+ .use-var(stop-color, circle-progress-linear-gradient-end-color);
51
+ }
52
+ }
@@ -0,0 +1,53 @@
1
+ @import '../../../style/mixin.less';
2
+
3
+ .@{prefix}-collapse-group {
4
+ }
5
+
6
+ .@{prefix}-collapse-item {
7
+ padding: 0;
8
+ margin: 0;
9
+ .@{prefix}-collapse {
10
+ &-header {
11
+ display: flex;
12
+ justify-content: space-between;
13
+ align-items: center;
14
+ .use-var(background, collapse-header-background);
15
+ .use-var(height, collapse-header-height);
16
+ .use-var(margin-left, collapse-header-margin-left);
17
+ .use-var(padding, collapse-header-padding);
18
+ .use-var(color, collapse-header-color);
19
+ .use-var(line-height, collapse-header-line-height);
20
+ .use-var(font-size, collapse-header-font-size);
21
+ .onepx-border-var(bottom, line-color);
22
+ }
23
+ &-icon {
24
+ .use-var(color, collapse-header-icon-color);
25
+ display: inline-flex;
26
+ align-items: center;
27
+ svg,
28
+ i {
29
+ .use-var(font-size, collapse-header-font-size);
30
+ .use-var(width, collapse-header-font-size);
31
+ }
32
+ &-arrow {
33
+ transition: transform 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
34
+ }
35
+ }
36
+ &-content {
37
+ height: 0;
38
+ .use-var(line-height, collapse-content-line-height);
39
+ .use-var(font-size, collapse-content-font-size);
40
+ .use-var(color, collapse-content-color);
41
+ overflow: hidden;
42
+ transition: height 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
43
+ &-container {
44
+ .use-var(padding, collapse-content-padding);
45
+ }
46
+ }
47
+ }
48
+ &.disabled {
49
+ .@{prefix}-collapse-header {
50
+ .use-var(color, collapse-disabled-header-color);
51
+ }
52
+ }
53
+ }
@@ -0,0 +1 @@
1
+ // 这里啥也没有,但是为了兼容 babel-plugin-import的统一引用,还是需要创建下文件
@@ -0,0 +1,7 @@
1
+ @import "../../../style/mixin.less";
2
+
3
+ .@{prefix}-count-down {
4
+ .use-var(font-size, count-down-font-size);
5
+ .use-var(line-height, count-down-line-height);
6
+ .use-var(color, count-down-color);
7
+ }
@@ -0,0 +1,27 @@
1
+ @import '../../../style/mixin.less';
2
+
3
+ .@{prefix}-date-picker {
4
+ &-show {
5
+ display: flex;
6
+ .use-var(font-size, date-picker-range-font-size);
7
+ .use-var(padding, date-picker-range-show-padding);
8
+ .use-var(color, date-picker-range-disabled-font-color);
9
+ .use-var(min-height, date-picker-range-show-min-height);
10
+ .use-var(background-color, date-picker-range-background-color);
11
+ & > span {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ }
16
+ &-separate {
17
+ flex: 0 1 auto;
18
+ .use-var(min-width, date-picker-range-separate-min-width);
19
+ }
20
+ }
21
+ &-range-item {
22
+ flex: 1 0 auto;
23
+ &-active {
24
+ .use-var(color, date-picker-range-font-color);
25
+ }
26
+ }
27
+ }