@dcloudio/uni-components 0.0.1-nvue3.3030820220125001

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 (43) hide show
  1. package/LICENSE +202 -0
  2. package/index.js +0 -0
  3. package/lib/custom-tab-bar/custom-tab-bar.vue +126 -0
  4. package/lib/navigation-bar/navigation-bar.vue +159 -0
  5. package/lib/page-meta/page-meta.vue +205 -0
  6. package/lib/page-meta-head/page-meta-head.vue +10 -0
  7. package/lib/uni-match-media/uni-match-media.vue +73 -0
  8. package/lib/unicloud-db/i18n/en.json +6 -0
  9. package/lib/unicloud-db/i18n/es.json +6 -0
  10. package/lib/unicloud-db/i18n/fr.json +6 -0
  11. package/lib/unicloud-db/i18n/index.js +12 -0
  12. package/lib/unicloud-db/i18n/zh-Hans.json +6 -0
  13. package/lib/unicloud-db/i18n/zh-Hant.json +6 -0
  14. package/lib/unicloud-db/unicloud-db.vue +626 -0
  15. package/package.json +24 -0
  16. package/style/button.css +264 -0
  17. package/style/canvas.css +14 -0
  18. package/style/checkbox-group.css +7 -0
  19. package/style/checkbox.css +56 -0
  20. package/style/editor.css +393 -0
  21. package/style/form.css +0 -0
  22. package/style/icon.css +9 -0
  23. package/style/image.css +33 -0
  24. package/style/input.css +87 -0
  25. package/style/label.css +3 -0
  26. package/style/movable-area.css +10 -0
  27. package/style/movable-view.css +13 -0
  28. package/style/navigator.css +45 -0
  29. package/style/picker-view-column.css +99 -0
  30. package/style/picker-view.css +14 -0
  31. package/style/progress.css +25 -0
  32. package/style/radio-group.css +6 -0
  33. package/style/radio.css +53 -0
  34. package/style/resize-sensor.css +33 -0
  35. package/style/rich-text.css +0 -0
  36. package/style/scroll-view.css +90 -0
  37. package/style/slider.css +89 -0
  38. package/style/swiper-item.css +13 -0
  39. package/style/swiper.css +85 -0
  40. package/style/switch.css +111 -0
  41. package/style/text.css +8 -0
  42. package/style/textarea.css +79 -0
  43. package/style/view.css +6 -0
@@ -0,0 +1,85 @@
1
+ uni-swiper {
2
+ display: block;
3
+ height: 150px;
4
+ }
5
+
6
+ uni-swiper[hidden] {
7
+ display: none;
8
+ }
9
+
10
+ .uni-swiper-wrapper {
11
+ overflow: hidden;
12
+ position: relative;
13
+ width: 100%;
14
+ height: 100%;
15
+ transform: translateZ(0);
16
+ }
17
+
18
+ .uni-swiper-slides {
19
+ position: absolute;
20
+ left: 0;
21
+ top: 0;
22
+ right: 0;
23
+ bottom: 0;
24
+ }
25
+
26
+ .uni-swiper-slide-frame {
27
+ position: absolute;
28
+ left: 0;
29
+ top: 0;
30
+ width: 100%;
31
+ height: 100%;
32
+ will-change: transform;
33
+ }
34
+
35
+ .uni-swiper-dots {
36
+ position: absolute;
37
+ font-size: 0;
38
+ }
39
+
40
+ .uni-swiper-dots-horizontal {
41
+ left: 50%;
42
+ bottom: 10px;
43
+ text-align: center;
44
+ white-space: nowrap;
45
+ transform: translate(-50%, 0);
46
+ }
47
+
48
+ .uni-swiper-dots-horizontal .uni-swiper-dot {
49
+ margin-right: 8px;
50
+ }
51
+
52
+ .uni-swiper-dots-horizontal .uni-swiper-dot:last-child {
53
+ margin-right: 0;
54
+ }
55
+
56
+ .uni-swiper-dots-vertical {
57
+ right: 10px;
58
+ top: 50%;
59
+ text-align: right;
60
+ transform: translate(0, -50%);
61
+ }
62
+
63
+ .uni-swiper-dots-vertical .uni-swiper-dot {
64
+ display: block;
65
+ margin-bottom: 9px;
66
+ }
67
+
68
+ .uni-swiper-dots-vertical .uni-swiper-dot:last-child {
69
+ margin-bottom: 0;
70
+ }
71
+
72
+ .uni-swiper-dot {
73
+ display: inline-block;
74
+ width: 8px;
75
+ height: 8px;
76
+ cursor: pointer;
77
+ transition-property: background-color;
78
+ transition-timing-function: ease;
79
+ background: rgba(0, 0, 0, 0.3);
80
+ border-radius: 50%;
81
+ }
82
+
83
+ .uni-swiper-dot-active {
84
+ background-color: #000000;
85
+ }
@@ -0,0 +1,111 @@
1
+ uni-switch {
2
+ -webkit-tap-highlight-color: transparent;
3
+ display: inline-block;
4
+ cursor: pointer;
5
+ }
6
+
7
+ uni-switch[hidden] {
8
+ display: none;
9
+ }
10
+
11
+ uni-switch[disabled] {
12
+ cursor: not-allowed;
13
+ }
14
+
15
+ .uni-switch-wrapper {
16
+ display: inline-flex;
17
+ align-items: center;
18
+ vertical-align: middle;
19
+ }
20
+
21
+ .uni-switch-input {
22
+ appearance: none;
23
+ position: relative;
24
+ width: 52px;
25
+ height: 32px;
26
+ margin-right: 5px;
27
+ border: 1px solid #dfdfdf;
28
+ outline: 0;
29
+ border-radius: 16px;
30
+ box-sizing: border-box;
31
+ background-color: #dfdfdf;
32
+ transition: background-color 0.1s, border 0.1s;
33
+ }
34
+
35
+ uni-switch[disabled] .uni-switch-input {
36
+ opacity: 0.7;
37
+ }
38
+
39
+ .uni-switch-input:before {
40
+ content: ' ';
41
+ position: absolute;
42
+ top: 0;
43
+ left: 0;
44
+ width: 50px;
45
+ height: 30px;
46
+ border-radius: 15px;
47
+ background-color: #fdfdfd;
48
+ transition: transform 0.3s;
49
+ }
50
+
51
+ .uni-switch-input:after {
52
+ content: ' ';
53
+ position: absolute;
54
+ top: 0;
55
+ left: 0;
56
+ width: 30px;
57
+ height: 30px;
58
+ border-radius: 15px;
59
+ background-color: #ffffff;
60
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
61
+ transition: -webkit-transform 0.3s;
62
+ transition: transform 0.3s;
63
+ transition: transform 0.3s, -webkit-transform 0.3s;
64
+ }
65
+
66
+ .uni-switch-input.uni-switch-input-checked {
67
+ border-color: #007aff;
68
+ background-color: #007aff;
69
+ }
70
+
71
+ .uni-switch-input.uni-switch-input-checked:before {
72
+ transform: scale(0);
73
+ }
74
+
75
+ .uni-switch-input.uni-switch-input-checked:after {
76
+ transform: translateX(20px);
77
+ }
78
+
79
+ uni-switch .uni-checkbox-input {
80
+ margin-right: 5px;
81
+ appearance: none;
82
+ outline: 0;
83
+ border: 1px solid #d1d1d1;
84
+ background-color: #ffffff;
85
+ border-radius: 3px;
86
+ width: 22px;
87
+ height: 22px;
88
+ position: relative;
89
+ color: #007aff;
90
+ }
91
+
92
+ uni-switch:not([disabled]) .uni-checkbox-input:hover {
93
+ border-color: #007aff;
94
+ }
95
+
96
+ uni-switch .uni-checkbox-input svg {
97
+ color: inherit;
98
+ font-size: 22px;
99
+ position: absolute;
100
+ top: 50%;
101
+ left: 50%;
102
+ transform: translate(-50%, -48%) scale(0.73);
103
+ }
104
+
105
+ .uni-checkbox-input.uni-checkbox-input-disabled {
106
+ background-color: #e1e1e1;
107
+ }
108
+
109
+ .uni-checkbox-input.uni-checkbox-input-disabled:before {
110
+ color: #adadad;
111
+ }
package/style/text.css ADDED
@@ -0,0 +1,8 @@
1
+ uni-text[selectable] {
2
+ cursor: auto;
3
+ user-select: text;
4
+ }
5
+
6
+ uni-text {
7
+ white-space: pre-line;
8
+ }
@@ -0,0 +1,79 @@
1
+ uni-textarea {
2
+ width: 300px;
3
+ height: 150px;
4
+ display: block;
5
+ position: relative;
6
+ font-size: 16px;
7
+ line-height: normal;
8
+ white-space: pre-wrap;
9
+ word-break: break-all;
10
+ box-sizing: content-box !important;
11
+ }
12
+ uni-textarea[hidden] {
13
+ display: none;
14
+ }
15
+ .uni-textarea-wrapper,
16
+ .uni-textarea-placeholder,
17
+ .uni-textarea-line,
18
+ .uni-textarea-compute,
19
+ .uni-textarea-textarea {
20
+ outline: none;
21
+ border: none;
22
+ padding: 0;
23
+ margin: 0;
24
+ text-decoration: inherit;
25
+ }
26
+ .uni-textarea-wrapper {
27
+ display: block;
28
+ position: relative;
29
+ width: 100%;
30
+ height: 100%;
31
+ min-height: inherit;
32
+ }
33
+ .uni-textarea-placeholder,
34
+ .uni-textarea-line,
35
+ .uni-textarea-compute,
36
+ .uni-textarea-textarea {
37
+ position: absolute;
38
+ width: 100%;
39
+ height: 100%;
40
+ left: 0;
41
+ top: 0;
42
+ white-space: inherit;
43
+ word-break: inherit;
44
+ }
45
+ .uni-textarea-placeholder {
46
+ color: grey;
47
+ overflow: hidden;
48
+ }
49
+ .uni-textarea-line,
50
+ .uni-textarea-compute {
51
+ visibility: hidden;
52
+ height: auto;
53
+ }
54
+ .uni-textarea-line {
55
+ width: 1em;
56
+ }
57
+ .uni-textarea-textarea {
58
+ resize: none;
59
+ background: none;
60
+ color: inherit;
61
+ opacity: 1;
62
+ font: inherit;
63
+ line-height: inherit;
64
+ letter-spacing: inherit;
65
+ text-align: inherit;
66
+ text-indent: inherit;
67
+ text-transform: inherit;
68
+ text-shadow: inherit;
69
+ }
70
+ /* 用于解决 iOS textarea 内部默认边距 */
71
+ .uni-textarea-textarea-fix-margin {
72
+ width: auto;
73
+ right: 0;
74
+ margin: 0 -3px;
75
+ }
76
+ .uni-textarea-textarea:disabled {
77
+ /* 用于重置iOS14以下禁用状态文字颜色 */
78
+ -webkit-text-fill-color: currentcolor;
79
+ }
package/style/view.css ADDED
@@ -0,0 +1,6 @@
1
+ uni-view {
2
+ display: block;
3
+ }
4
+ uni-view[hidden] {
5
+ display: none;
6
+ }