@topvisor/ui 0.0.10 → 0.0.11

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 (56) hide show
  1. package/c/button/button.amd.js +27 -32
  2. package/c/button/button.amd.js.map +1 -1
  3. package/c/button/button.js +28 -33
  4. package/c/button/button.js.map +1 -1
  5. package/c/checkbox/checkbox.amd.js +58 -0
  6. package/c/checkbox/checkbox.amd.js.map +1 -0
  7. package/c/checkbox/checkbox.js +59 -0
  8. package/c/checkbox/checkbox.js.map +1 -0
  9. package/c/example/example.amd.js +7 -7
  10. package/c/example/example.js +7 -7
  11. package/c/{Icon/Icon.amd.js → icon/icon.amd.js} +4 -4
  12. package/c/icon/icon.amd.js.map +1 -0
  13. package/c/{Icon/Icon.js → icon/icon.js} +4 -4
  14. package/c/icon/icon.js.map +1 -0
  15. package/c/style.css +179 -88
  16. package/core.css +563 -399
  17. package/dark.css +115 -115
  18. package/icomoon/demo-files/Read Me.txt +7 -7
  19. package/icomoon/demo-files/demo.css +161 -161
  20. package/icomoon/demo-files/demo.js +30 -30
  21. package/icomoon/demo.html +2931 -2931
  22. package/icomoon/fonts/Topvisor-2.svg +231 -231
  23. package/icomoon/style.css +644 -644
  24. package/l/common/common.amd.js +6 -5
  25. package/l/common/common.amd.js.map +1 -1
  26. package/l/common/common.js +4 -4
  27. package/l/forms/forms.amd.js +66 -56
  28. package/l/forms/forms.amd.js.map +1 -1
  29. package/l/forms/forms.js +67 -57
  30. package/l/forms/forms.js.map +1 -1
  31. package/l/style.css +173 -89
  32. package/light.css +128 -128
  33. package/package.json +22 -22
  34. package/c/Icon/Icon.amd.js.map +0 -1
  35. package/c/Icon/Icon.js.map +0 -1
  36. package/c/README.md +0 -86
  37. package/c/icomoon/demo-files/Read Me.txt +0 -7
  38. package/c/icomoon/demo-files/demo.css +0 -161
  39. package/c/icomoon/demo-files/demo.js +0 -30
  40. package/c/icomoon/demo.html +0 -2931
  41. package/c/icomoon/fonts/Topvisor-2.svg +0 -232
  42. package/c/icomoon/fonts/Topvisor-2.ttf +0 -0
  43. package/c/icomoon/fonts/Topvisor-2.woff +0 -0
  44. package/c/icomoon/selection.json +0 -1
  45. package/c/icomoon/style.css +0 -644
  46. package/icomoon/Read Me.txt +0 -7
  47. package/l/README.md +0 -86
  48. package/l/icomoon/demo-files/Read Me.txt +0 -7
  49. package/l/icomoon/demo-files/demo.css +0 -161
  50. package/l/icomoon/demo-files/demo.js +0 -30
  51. package/l/icomoon/demo.html +0 -2931
  52. package/l/icomoon/fonts/Topvisor-2.svg +0 -232
  53. package/l/icomoon/fonts/Topvisor-2.ttf +0 -0
  54. package/l/icomoon/fonts/Topvisor-2.woff +0 -0
  55. package/l/icomoon/selection.json +0 -1
  56. package/l/icomoon/style.css +0 -644
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
- {
2
- "name": "@topvisor/ui",
3
- "private": false,
4
- "version": "0.0.10",
5
- "type": "module",
6
- "description": "Topvisor UI-kit Vue",
7
- "author": "Topvisor",
8
- "keywords": [
9
- "topvisor",
10
- "vue",
11
- "ui framework",
12
- "component framework",
13
- "component library"
14
- ],
15
- "license": "MIT",
16
- "peerDependencies": {
17
- "vue": "^3.0.0"
18
- },
19
- "dependencies": {
20
- "@storybook/addon-storysource": "^7.4.0"
21
- }
22
- }
1
+ {
2
+ "name": "@topvisor/ui",
3
+ "private": false,
4
+ "version": "0.0.11",
5
+ "type": "module",
6
+ "description": "Topvisor UI-kit Vue",
7
+ "author": "Topvisor",
8
+ "keywords": [
9
+ "topvisor",
10
+ "vue",
11
+ "ui framework",
12
+ "component framework",
13
+ "component library"
14
+ ],
15
+ "license": "MIT",
16
+ "peerDependencies": {
17
+ "vue": "^3.0.0"
18
+ },
19
+ "dependencies": {
20
+ "@storybook/addon-storysource": "^7.4.0"
21
+ }
22
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.amd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icon.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
package/c/README.md DELETED
@@ -1,86 +0,0 @@
1
- # UI kit Topvisor Vue
2
-
3
- ## Vue компоненты
4
-
5
- Компоненты разделены на библиотеки, чтобы их можно было грузить пачками прямо с CDN.
6
-
7
- Компоненты можно грузить по отдельности.
8
-
9
- Компоненты поставляются в двух форматах:
10
-
11
- - amd (requirejs)
12
- - es
13
-
14
- Расположение компонентов и библиотек:
15
- - /c/ - папка с компонентами
16
- - /l/ - папка с библиотеками
17
-
18
- Список всех компонентов см. на [npmjs](https://www.npmjs.com/package/topvisor-ui?activeTab=code).
19
-
20
- ## Другие ресурсы
21
-
22
- - /core.css - основная палитра цветов и стили компонентов
23
- - /light.css - светлая тема
24
- - /dark.css - темная тема
25
-
26
- ## Подключение стилей
27
-
28
- Подключение базовых стилей и переменных палитры.
29
- Подключение базовых стилей, переменных палитры и основных компонентов.
30
- Подключение базовых стилей и переменных палитры.
31
- Стили сложных компонентов рекомендуется грузить асинхронно.
32
-
33
- ```js
34
- import '@topvisor/ui/core.css';
35
- ```
36
-
37
- Подключение стилей темы на примере светлой темы.
38
-
39
- ```js
40
- import '@topvisor/ui/light.css';
41
- ```
42
-
43
- Для смены темы необходимо подгрузить файл стилей необходимой темы и сразу отключить стили предыдущей темы.
44
-
45
- Подключение стилей основных компонентов.
46
-
47
- ```js
48
- import '@topvisor/ui/l/style.css';
49
- ```
50
-
51
- Подключение набора иконок шрифта icomoon.
52
-
53
- ```js
54
- import '@topvisor/ui/icomoon/style.css';
55
- ```
56
-
57
- ## Подключение компонента
58
-
59
- Пример подключения компонента Button.
60
-
61
- ```javascript
62
- requirejs(['topvisor-ui/c/button/button.amd'], Button => {
63
- console.log(Button);
64
- });
65
- ```
66
-
67
- ## Подключение библиотек компонентов
68
-
69
- В большинстве случаев группы компонентов грузить отдельно нет смысла, поэтому она вынесены в библиотеки.
70
-
71
- Не грузите один и тот же компонент двумя способами, это приведет к тому, что он будет загружен дважды.
72
-
73
- Пример подключения библиотеки Forms со всеми ее компонентами:
74
-
75
- ```javascript
76
- requirejs(['topvisor-ui/l/forms/forms.amd'], ({Button}) => {
77
- console.log(Button);
78
- });
79
-
80
- requirejs(['topvisor-ui/l/forms/forms.amd'], Forms => {
81
- const { Button } = Forms;
82
-
83
- console.log(Forms);
84
- console.log(Button);
85
- });
86
- ```
@@ -1,7 +0,0 @@
1
- Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures.
2
-
3
- To use the generated font in desktop programs, you can install the TTF font. In order to copy the character associated with each icon, refer to the text box at the bottom right corner of each glyph in demo.html. The character inside this text box may be invisible; but it can still be copied. See this guide for more info: https://icomoon.io/#docs/local-fonts
4
-
5
- You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects.
6
-
7
- You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu → Manage Projects) to retrieve your icon selection.
@@ -1,161 +0,0 @@
1
- body {
2
- padding: 0;
3
- margin: 0;
4
- font-family: sans-serif;
5
- font-size: 1em;
6
- line-height: 1.5;
7
- color: #555;
8
- background: #fff;
9
- }
10
- h1 {
11
- font-size: 1.5em;
12
- font-weight: normal;
13
- }
14
- small {
15
- font-size: .66666667em;
16
- }
17
- a {
18
- color: #e74c3c;
19
- text-decoration: none;
20
- }
21
- a:hover, a:focus {
22
- box-shadow: 0 1px #e74c3c;
23
- }
24
- .bshadow0, input {
25
- box-shadow: inset 0 -2px #e7e7e7;
26
- }
27
- input:hover {
28
- box-shadow: inset 0 -2px #ccc;
29
- }
30
- input, fieldset {
31
- font-family: sans-serif;
32
- font-size: 1em;
33
- margin: 0;
34
- padding: 0;
35
- border: 0;
36
- }
37
- input {
38
- color: inherit;
39
- line-height: 1.5;
40
- height: 1.5em;
41
- padding: .25em 0;
42
- }
43
- input:focus {
44
- outline: none;
45
- box-shadow: inset 0 -2px #449fdb;
46
- }
47
- .glyph {
48
- font-size: 16px;
49
- width: 15em;
50
- padding-bottom: 1em;
51
- margin-right: 4em;
52
- margin-bottom: 1em;
53
- float: left;
54
- overflow: hidden;
55
- }
56
- .liga {
57
- width: 80%;
58
- width: calc(100% - 2.5em);
59
- }
60
- .talign-right {
61
- text-align: right;
62
- }
63
- .talign-center {
64
- text-align: center;
65
- }
66
- .bgc1 {
67
- background: #f1f1f1;
68
- }
69
- .fgc1 {
70
- color: #999;
71
- }
72
- .fgc0 {
73
- color: #000;
74
- }
75
- p {
76
- margin-top: 1em;
77
- margin-bottom: 1em;
78
- }
79
- .mvm {
80
- margin-top: .75em;
81
- margin-bottom: .75em;
82
- }
83
- .mtn {
84
- margin-top: 0;
85
- }
86
- .mtl, .mal {
87
- margin-top: 1.5em;
88
- }
89
- .mbl, .mal {
90
- margin-bottom: 1.5em;
91
- }
92
- .mal, .mhl {
93
- margin-left: 1.5em;
94
- margin-right: 1.5em;
95
- }
96
- .mhmm {
97
- margin-left: 1em;
98
- margin-right: 1em;
99
- }
100
- .mls {
101
- margin-left: .25em;
102
- }
103
- .ptl {
104
- padding-top: 1.5em;
105
- }
106
- .pbs, .pvs {
107
- padding-bottom: .25em;
108
- }
109
- .pvs, .pts {
110
- padding-top: .25em;
111
- }
112
- .unit {
113
- float: left;
114
- }
115
- .unitRight {
116
- float: right;
117
- }
118
- .size1of2 {
119
- width: 50%;
120
- }
121
- .size1of1 {
122
- width: 100%;
123
- }
124
- .clearfix:before, .clearfix:after {
125
- content: " ";
126
- display: table;
127
- }
128
- .clearfix:after {
129
- clear: both;
130
- }
131
- .hidden-true {
132
- display: none;
133
- }
134
- .textbox0 {
135
- width: 3em;
136
- background: #f1f1f1;
137
- padding: .25em .5em;
138
- line-height: 1.5;
139
- height: 1.5em;
140
- }
141
- #testDrive {
142
- display: block;
143
- padding-top: 24px;
144
- line-height: 1.5;
145
- }
146
- .fs0 {
147
- font-size: 16px;
148
- }
149
- .fs1 {
150
- font-size: 32px;
151
- }
152
- .fs2 {
153
- font-size: 14px;
154
- }
155
- .fs3 {
156
- font-size: 14px;
157
- }
158
- .fs4 {
159
- font-size: 8px;
160
- }
161
-
@@ -1,30 +0,0 @@
1
- if (!('boxShadow' in document.body.style)) {
2
- document.body.setAttribute('class', 'noBoxShadow');
3
- }
4
-
5
- document.body.addEventListener("click", function(e) {
6
- var target = e.target;
7
- if (target.tagName === "INPUT" &&
8
- target.getAttribute('class').indexOf('liga') === -1) {
9
- target.select();
10
- }
11
- });
12
-
13
- (function() {
14
- var fontSize = document.getElementById('fontSize'),
15
- testDrive = document.getElementById('testDrive'),
16
- testText = document.getElementById('testText');
17
- function updateTest() {
18
- testDrive.innerHTML = testText.value || String.fromCharCode(160);
19
- if (window.icomoonLiga) {
20
- window.icomoonLiga(testDrive);
21
- }
22
- }
23
- function updateSize() {
24
- testDrive.style.fontSize = fontSize.value + 'px';
25
- }
26
- fontSize.addEventListener('change', updateSize, false);
27
- testText.addEventListener('input', updateTest, false);
28
- testText.addEventListener('change', updateTest, false);
29
- updateSize();
30
- }());