@topvisor/ui 0.0.13 → 0.0.14
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.
- package/.chunks/forms-1b3f76e9.es.js +410 -0
- package/.chunks/forms-1b3f76e9.es.js.map +1 -0
- package/.chunks/forms-512abfa7.amd.js +413 -0
- package/.chunks/forms-512abfa7.amd.js.map +1 -0
- package/README.md +62 -85
- package/{l/common → common}/common.amd.js +0 -1
- package/{l/common → common}/common.amd.js.map +1 -1
- package/{l/common → common}/common.js +0 -1
- package/{l/common → common}/common.js.map +1 -1
- package/core.css +442 -371
- package/dark.css +127 -115
- package/forms/forms.amd.js +11 -0
- package/forms/forms.amd.js.map +1 -0
- package/forms/forms.js +11 -0
- package/forms/forms.js.map +1 -0
- package/{c/style.css → forms.css} +301 -252
- package/helpers/helpers.amd.js +6 -0
- package/helpers/helpers.amd.js.map +1 -0
- package/helpers/helpers.js +6 -0
- package/helpers/helpers.js.map +1 -0
- package/icomoon/demo-files/Read Me.txt +7 -7
- package/icomoon/demo-files/demo.css +161 -161
- package/icomoon/demo-files/demo.js +30 -30
- package/icomoon/demo.html +2931 -2931
- package/icomoon/fonts/Topvisor-2.svg +231 -231
- package/icomoon/style.css +644 -644
- package/light.css +127 -128
- package/package.json +19 -19
- package/c/_plugin-vue_export-helper-cb5c78ba.js +0 -12
- package/c/_plugin-vue_export-helper-cb5c78ba.js.map +0 -1
- package/c/_plugin-vue_export-helper-cc2b3d55.js +0 -11
- package/c/_plugin-vue_export-helper-cc2b3d55.js.map +0 -1
- package/c/button/button.amd.js +0 -99
- package/c/button/button.amd.js.map +0 -1
- package/c/button/button.js +0 -100
- package/c/button/button.js.map +0 -1
- package/c/checkbox/checkbox.amd.js +0 -58
- package/c/checkbox/checkbox.amd.js.map +0 -1
- package/c/checkbox/checkbox.js +0 -59
- package/c/checkbox/checkbox.js.map +0 -1
- package/c/example/example.amd.js +0 -35
- package/c/example/example.amd.js.map +0 -1
- package/c/example/example.js +0 -36
- package/c/example/example.js.map +0 -1
- package/c/icon/icon.amd.js +0 -22
- package/c/icon/icon.amd.js.map +0 -1
- package/c/icon/icon.js +0 -22
- package/c/icon/icon.js.map +0 -1
- package/c/radio/radio.amd.js +0 -49
- package/c/radio/radio.amd.js.map +0 -1
- package/c/radio/radio.js +0 -50
- package/c/radio/radio.js.map +0 -1
- package/l/forms/forms.amd.js +0 -206
- package/l/forms/forms.amd.js.map +0 -1
- package/l/forms/forms.js +0 -205
- package/l/forms/forms.js.map +0 -1
- package/l/style.css +0 -352
package/light.css
CHANGED
|
@@ -1,129 +1,128 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
/* Main */
|
|
3
|
-
--color-primary: var(--color-blue-500);
|
|
4
|
-
--color-primary-
|
|
5
|
-
|
|
6
|
-
--color-
|
|
7
|
-
|
|
8
|
-
--color-
|
|
9
|
-
|
|
10
|
-
--color-secondary-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
--color-positive
|
|
15
|
-
|
|
16
|
-
--color-positive-light: var(--color-green-100);
|
|
17
|
-
--color-positive-light-opacity: rgba(22, 196, 96, 0.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
--color-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
--color-warning-
|
|
24
|
-
--color-warning-light
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
--color-
|
|
28
|
-
--color-
|
|
29
|
-
|
|
30
|
-
--color-negative
|
|
31
|
-
--color-negative-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
--color-
|
|
36
|
-
--color-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
--color-text: var(--color-
|
|
40
|
-
|
|
41
|
-
--color-text-
|
|
42
|
-
--color-text-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
--color-text-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
--color-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
--color-
|
|
54
|
-
--color-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
--color-
|
|
59
|
-
--color-
|
|
60
|
-
|
|
61
|
-
/*
|
|
62
|
-
--
|
|
63
|
-
--
|
|
64
|
-
--
|
|
65
|
-
|
|
66
|
-
/*
|
|
67
|
-
--
|
|
68
|
-
--
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
--
|
|
73
|
-
--
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
--color-theme-
|
|
77
|
-
--color-theme-
|
|
78
|
-
--color-theme-
|
|
79
|
-
--color-theme-
|
|
80
|
-
--color-theme-
|
|
81
|
-
--color-theme-
|
|
82
|
-
--color-theme-
|
|
83
|
-
--color-theme-
|
|
84
|
-
--color-theme-
|
|
85
|
-
--color-theme-
|
|
86
|
-
--color-theme-
|
|
87
|
-
--color-theme-
|
|
88
|
-
--color-theme-
|
|
89
|
-
--color-theme-
|
|
90
|
-
--color-theme-
|
|
91
|
-
--color-theme-
|
|
92
|
-
--color-theme-
|
|
93
|
-
--color-theme-
|
|
94
|
-
--color-theme-
|
|
95
|
-
--color-theme-
|
|
96
|
-
--color-theme-
|
|
97
|
-
--color-theme-
|
|
98
|
-
--color-theme-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
--
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
0px
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
--top-shadow-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
:
|
|
118
|
-
--top-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
--top-forms-
|
|
124
|
-
--top-forms-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
--top-
|
|
128
|
-
--top-radio-color-hover: var(--color-primary-2);
|
|
1
|
+
:root {
|
|
2
|
+
/* Main */
|
|
3
|
+
--color-primary: var(--color-blue-500);
|
|
4
|
+
--color-primary-light: var(--color-blue-100);
|
|
5
|
+
--color-primary-light-opacity: rgba(25, 117, 255, 0.11);
|
|
6
|
+
--color-primary-2: var(--color-blue-550);
|
|
7
|
+
--color-primary-2-light: var(--color-blue-150);
|
|
8
|
+
--color-primary-2-light-opacity: rgba(25, 117, 255, 0.22);
|
|
9
|
+
|
|
10
|
+
--color-secondary-opacity: rgba(14, 65, 142, 0.06);
|
|
11
|
+
--color-secondary-2-opacity: rgba(14, 65, 142, 0.08);
|
|
12
|
+
--color-secondary-3-opacity: rgba(14, 65, 142, 0.12);
|
|
13
|
+
|
|
14
|
+
--color-positive: var(--color-green-500);
|
|
15
|
+
--color-positive-opacity: rgba(22, 196, 96, 0.3);
|
|
16
|
+
--color-positive-light: var(--color-green-100);
|
|
17
|
+
--color-positive-light-opacity: rgba(22, 196, 96, 0.11);
|
|
18
|
+
--color-positive-2: var(--color-green-500);
|
|
19
|
+
--color-positive-2-light: var(--color-green-150);
|
|
20
|
+
--color-positive-2-light-opacity: rgba(22, 196, 96, 0.22);
|
|
21
|
+
|
|
22
|
+
--color-warning: var(--color-orange-500);
|
|
23
|
+
--color-warning-opacity: rgba(255, 170, 51, 0.3);
|
|
24
|
+
--color-warning-light: var(--color-orange-100);
|
|
25
|
+
--color-warning-light-opacity: rgba(255, 170, 51, 0.12);
|
|
26
|
+
--color-warning-2: var(--color-orange-550);
|
|
27
|
+
--color-warning-2-light: var(--color-orange-150);
|
|
28
|
+
--color-warning-2-light-opacity: rgba(255, 159, 25, 0.22);
|
|
29
|
+
|
|
30
|
+
--color-negative: var(--color-red-500);
|
|
31
|
+
--color-negative-opacity: rgba(234, 65, 50, 0.3);
|
|
32
|
+
--color-negative-light: var(--color-red-100);
|
|
33
|
+
--color-negative-light-opacity: rgba(234, 65, 50, 0.11);
|
|
34
|
+
--color-negative-2: var(--color-red-550);
|
|
35
|
+
--color-negative-2-light: var(--color-red-150);
|
|
36
|
+
--color-negative-2-light-opacity: rgba(234, 65, 50, 0.22);
|
|
37
|
+
|
|
38
|
+
/* Text */
|
|
39
|
+
--color-text-1: var(--color-theme-975);
|
|
40
|
+
--color-text-2: var(--color-theme-750);
|
|
41
|
+
--color-text-3: var(--color-theme-550);
|
|
42
|
+
--color-text-4: var(--color-theme-450);
|
|
43
|
+
--color-text: var(--color-text-1);
|
|
44
|
+
|
|
45
|
+
--color-text-secondary: var(--color-gray-250);
|
|
46
|
+
--color-text-secondary-2: var(--color-gray-350);
|
|
47
|
+
|
|
48
|
+
--color-text-link: var(--color-blue-550);
|
|
49
|
+
--color-text-link-hover: var(--color-blue-600);
|
|
50
|
+
|
|
51
|
+
--color-overlay: rgba(0, 0, 0, 0.5);
|
|
52
|
+
|
|
53
|
+
--color-placeholder: var(--color-gray-500);
|
|
54
|
+
--color-placeholder-active: var(--color-gray-300);
|
|
55
|
+
|
|
56
|
+
/* Background colors */
|
|
57
|
+
--color-bg-1: var(--color-steel-300);
|
|
58
|
+
--color-bg-2: var(--color-steel-150);
|
|
59
|
+
--color-bg-3: var(--color-white);
|
|
60
|
+
|
|
61
|
+
/* Line colors */
|
|
62
|
+
--color-line-1-opacity: rgba(14, 65, 142, 0.1);
|
|
63
|
+
--color-line-2-opacity: rgba(191, 203, 218, 0.67);
|
|
64
|
+
--color-line-3-opacity: rgba(143, 158, 178, 0.74);
|
|
65
|
+
|
|
66
|
+
/* Scroll */
|
|
67
|
+
--scroll-thumb-color: var(--color-theme-250);
|
|
68
|
+
--scroll-thumb-color-hover: var(--color-theme-350);
|
|
69
|
+
--scroll-thumb-color-active: var(--color-theme-500);
|
|
70
|
+
|
|
71
|
+
/* Page */
|
|
72
|
+
--body-background-color: var(--content-background-color);
|
|
73
|
+
--content-background-color: var(--color-bg-3);
|
|
74
|
+
|
|
75
|
+
/* Theme */
|
|
76
|
+
--color-theme-0: var(--color-bg-3);
|
|
77
|
+
--color-theme-25: rgba(251, 252, 253, 1);
|
|
78
|
+
--color-theme-50: rgba(248, 250, 252, 1);
|
|
79
|
+
--color-theme-75: rgba(241, 243, 247, 1);
|
|
80
|
+
--color-theme-100: rgba(233, 238, 243, 1);
|
|
81
|
+
--color-theme-125: rgba(226, 232, 238, 1);
|
|
82
|
+
--color-theme-150: rgba(220, 226, 234, 1);
|
|
83
|
+
--color-theme-200: rgba(213, 220, 230, 1);
|
|
84
|
+
--color-theme-250: rgba(206, 215, 226, 1);
|
|
85
|
+
--color-theme-300: rgba(199, 209, 222, 1);
|
|
86
|
+
--color-theme-350: rgba(191, 203, 218, 1);
|
|
87
|
+
--color-theme-400: rgba(181, 193, 208, 1);
|
|
88
|
+
--color-theme-450: rgba(172, 183, 198, 1);
|
|
89
|
+
--color-theme-500: rgba(161, 173, 188, 1);
|
|
90
|
+
--color-theme-525: rgba(151, 162, 178, 1);
|
|
91
|
+
--color-theme-550: rgba(141, 152, 167, 1);
|
|
92
|
+
--color-theme-600: rgba(129, 142, 161, 1);
|
|
93
|
+
--color-theme-650: rgba(117, 131, 150, 1);
|
|
94
|
+
--color-theme-700: rgba(105, 118, 135, 1);
|
|
95
|
+
--color-theme-750: rgba(94, 105, 120, 1);
|
|
96
|
+
--color-theme-800: rgba(82, 92, 105, 1);
|
|
97
|
+
--color-theme-850: rgba(70, 79, 90, 1);
|
|
98
|
+
--color-theme-875: rgba(59, 66, 75, 1);
|
|
99
|
+
--color-theme-900: rgba(47, 52, 60, 1);
|
|
100
|
+
--color-theme-925: rgba(35, 39, 45, 1);
|
|
101
|
+
--color-theme-950: rgba(23, 26, 30, 1);
|
|
102
|
+
--color-theme-975: rgba(12, 13, 15, 1);
|
|
103
|
+
--color-theme-1000: rgba(0, 0, 0, 1);
|
|
104
|
+
|
|
105
|
+
/* top-shadow */
|
|
106
|
+
--top-shadow-s:
|
|
107
|
+
0px 0px 3px rgba(112, 144, 176, 0.07),
|
|
108
|
+
0px 5px 25px rgba(112, 144, 176, 0.12);
|
|
109
|
+
--top-shadow:
|
|
110
|
+
0px 0px 4px rgba(4, 9, 84, 0.08),
|
|
111
|
+
0px 4px 32px rgba(4, 9, 84, 0.1);
|
|
112
|
+
--top-shadow-b:
|
|
113
|
+
0px 0px 4px rgba(4, 36, 84, 0.08),
|
|
114
|
+
0px 18px 32px rgba(4, 25, 84, 0.18);
|
|
115
|
+
|
|
116
|
+
--top-shadow-darken: inset 1000px 1000px 1000px 1000px rgba(0, 0, 0, 0.03);
|
|
117
|
+
--top-shadow-darken-2: inset 1000px 1000px 1000px 1000px rgba(0, 0, 0, 0.07);
|
|
118
|
+
--top-shadow-darken-3: inset 1000px 1000px 1000px 1000px rgba(0, 0, 0, 0.14);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* forms */
|
|
122
|
+
:root {
|
|
123
|
+
--top-forms-border-color: var(--color-line-1-opacity);
|
|
124
|
+
--top-forms-border-color-hover: var(--color-line-2-opacity);
|
|
125
|
+
|
|
126
|
+
--top-forms-background-color: var(--color-bg-3);
|
|
127
|
+
--top-forms-background-color-hover: var(--color-bg-3);
|
|
129
128
|
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@topvisor/ui",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
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
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@topvisor/ui",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.14",
|
|
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
|
+
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
define(["exports"], function(exports) {
|
|
2
|
-
"use strict";
|
|
3
|
-
const _export_sfc = (sfc, props) => {
|
|
4
|
-
const target = sfc.__vccOpts || sfc;
|
|
5
|
-
for (const [key, val] of props) {
|
|
6
|
-
target[key] = val;
|
|
7
|
-
}
|
|
8
|
-
return target;
|
|
9
|
-
};
|
|
10
|
-
exports._export_sfc = _export_sfc;
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=_plugin-vue_export-helper-cb5c78ba.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_plugin-vue_export-helper-cb5c78ba.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const _export_sfc = (sfc, props) => {
|
|
2
|
-
const target = sfc.__vccOpts || sfc;
|
|
3
|
-
for (const [key, val] of props) {
|
|
4
|
-
target[key] = val;
|
|
5
|
-
}
|
|
6
|
-
return target;
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
_export_sfc as _
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=_plugin-vue_export-helper-cc2b3d55.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_plugin-vue_export-helper-cc2b3d55.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/c/button/button.amd.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
define(["vue", "../_plugin-vue_export-helper-cb5c78ba"], function(vue, _pluginVue_exportHelper) {
|
|
2
|
-
"use strict"; vue = vue ?? Vue;
|
|
3
|
-
var COLOR = /* @__PURE__ */ ((COLOR2) => {
|
|
4
|
-
COLOR2["Theme"] = "theme";
|
|
5
|
-
COLOR2["Blue"] = "blue";
|
|
6
|
-
COLOR2["Green"] = "green";
|
|
7
|
-
COLOR2["Orange"] = "orange";
|
|
8
|
-
COLOR2["Red"] = "red";
|
|
9
|
-
COLOR2["Pink"] = "pink";
|
|
10
|
-
return COLOR2;
|
|
11
|
-
})(COLOR || {});
|
|
12
|
-
var STYLING = /* @__PURE__ */ ((STYLING2) => {
|
|
13
|
-
STYLING2["Regular"] = "";
|
|
14
|
-
STYLING2["Outline"] = "outline";
|
|
15
|
-
STYLING2["Soft"] = "soft";
|
|
16
|
-
STYLING2["Transparent"] = "transparent";
|
|
17
|
-
return STYLING2;
|
|
18
|
-
})(STYLING || {});
|
|
19
|
-
var SIZE = /* @__PURE__ */ ((SIZE2) => {
|
|
20
|
-
SIZE2["S"] = "";
|
|
21
|
-
SIZE2["L"] = "l";
|
|
22
|
-
SIZE2["XL"] = "xl";
|
|
23
|
-
return SIZE2;
|
|
24
|
-
})(SIZE || {});
|
|
25
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
26
|
-
__name: "button",
|
|
27
|
-
props: {
|
|
28
|
-
color: { default: COLOR.Blue },
|
|
29
|
-
styling: { default: STYLING.Regular },
|
|
30
|
-
size: { default: SIZE.S },
|
|
31
|
-
name: {},
|
|
32
|
-
title: {},
|
|
33
|
-
icon: {},
|
|
34
|
-
icon2: {},
|
|
35
|
-
href: {},
|
|
36
|
-
disabled: { type: Boolean },
|
|
37
|
-
isSubmit: { type: Boolean },
|
|
38
|
-
isActive: { type: Boolean },
|
|
39
|
-
isProgress: { type: Boolean }
|
|
40
|
-
},
|
|
41
|
-
setup(__props) {
|
|
42
|
-
const props = __props;
|
|
43
|
-
const tagName = vue.computed(() => props.href ? "a" : "button");
|
|
44
|
-
const type = vue.computed(() => props.isSubmit ? "submit" : void 0);
|
|
45
|
-
return (_ctx, _cache) => {
|
|
46
|
-
return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
|
|
47
|
-
class: vue.normalizeClass({
|
|
48
|
-
["top-active"]: props.isActive,
|
|
49
|
-
["top-disabled"]: props.disabled,
|
|
50
|
-
[_ctx.$style["top-button"]]: true,
|
|
51
|
-
[_ctx.$style["top-button-progress"]]: props.isProgress,
|
|
52
|
-
[_ctx.$style[`top-size_${props.size}`]]: !!props.size,
|
|
53
|
-
[_ctx.$style[`top-color_${props.color}`]]: true,
|
|
54
|
-
[_ctx.$style[`top-style_${props.styling}`]]: !!props.styling
|
|
55
|
-
}),
|
|
56
|
-
name: _ctx.name,
|
|
57
|
-
title: _ctx.title,
|
|
58
|
-
href: _ctx.href,
|
|
59
|
-
type: type.value,
|
|
60
|
-
"data-top-icon": _ctx.icon || void 0,
|
|
61
|
-
"data-top-icon2": _ctx.icon2 || void 0,
|
|
62
|
-
disabled: _ctx.disabled || void 0,
|
|
63
|
-
inProgress: _ctx.isProgress
|
|
64
|
-
}, {
|
|
65
|
-
default: vue.withCtx(() => [
|
|
66
|
-
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
67
|
-
vue.createTextVNode(vue.toDisplayString(!_ctx.icon ? "Button" : ""), 1)
|
|
68
|
-
])
|
|
69
|
-
]),
|
|
70
|
-
_: 3
|
|
71
|
-
}, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]);
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
const progress = "_progress_fevtt_1";
|
|
76
|
-
const style0 = {
|
|
77
|
-
"top-button": "top-button",
|
|
78
|
-
"top-active": "top-active",
|
|
79
|
-
"top-button-progress": "top-button-progress",
|
|
80
|
-
progress,
|
|
81
|
-
"top-color_blue": "top-color_blue",
|
|
82
|
-
"top-color_green": "top-color_green",
|
|
83
|
-
"top-color_orange": "top-color_orange",
|
|
84
|
-
"top-color_red": "top-color_red",
|
|
85
|
-
"top-color_pink": "top-color_pink",
|
|
86
|
-
"top-color_theme": "top-color_theme",
|
|
87
|
-
"top-style_outline": "top-style_outline",
|
|
88
|
-
"top-style_soft": "top-style_soft",
|
|
89
|
-
"top-style_transparent": "top-style_transparent",
|
|
90
|
-
"top-size_l": "top-size_l",
|
|
91
|
-
"top-size_xl": "top-size_xl"
|
|
92
|
-
};
|
|
93
|
-
const cssModules = {
|
|
94
|
-
"$style": style0
|
|
95
|
-
};
|
|
96
|
-
const button = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
97
|
-
return button;
|
|
98
|
-
});
|
|
99
|
-
//# sourceMappingURL=button.amd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.amd.js","sources":["../../../src/components/forms/button/button.ts","../../../src/components/forms/button/button.vue"],"sourcesContent":["import type { VNode } from 'vue';\n\n/**\n * Определение параметров\n */\nexport interface Props {\n\tcolor?: COLOR\n\tstyling?: STYLING // bug: name = style init with object type\n\tsize?: SIZE\n\n\tname?: string\n\ttitle?: string\n\ticon?: string\n\ticon2?: string\n\n\thref?: string // если установлена ссылка, isSubmit не может быть true\n\t// value?: string\n\n\tdisabled?: boolean\n\tisSubmit?: boolean\n\tisActive?: boolean\n\tisProgress?: boolean\n}\n\n/**\n * Определение слотов\n */\nexport interface Slots {\n\t/**\n\t * Cлот с проивзольным содержимым\n\t */\n\tdefault(): VNode[];\n}\n\n/**\n * Определение событий\n */\nexport interface Emits { }\n\n/**\n * Цвета\n */\nexport enum COLOR {\n\tTheme = 'theme',\n\tBlue = 'blue',\n\tGreen = 'green',\n\tOrange = 'orange',\n\tRed = 'red',\n\tPink = 'pink',\n}\n\n/**\n * Стили\n */\nexport enum STYLING {\n\tRegular = '',\n\tOutline = 'outline',\n\tSoft = 'soft',\n\tTransparent = 'transparent',\n}\n\n/**\n * Размеры\n */\nexport enum SIZE {\n\tS = '',\n\tL = 'l',\n\tXL = 'xl',\n}","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { Props } from './button';\nimport { COLOR, STYLING, SIZE } from './button';\n\nconst props = withDefaults(defineProps<Props>(), {\n\tcolor: COLOR.Blue,\n\tstyling: STYLING.Regular,\n\tsize: SIZE.S,\n});\n\nconst tagName = computed(() => props.href ? 'a' : 'button');\n\nconst type = computed(() => props.isSubmit ? 'submit' : undefined);\n</script>\n\n<template>\n\t<component\n\t\t:is=\"tagName\"\n\t\t:class=\"{\n\t\t\t['top-active']: props.isActive,\n\t\t\t['top-disabled']: props.disabled,\n\t\t\t[$style['top-button']]: true,\n\t\t\t[$style['top-button-progress']]: props.isProgress,\n\t\t\t[$style[`top-size_${props.size}`]]: !!props.size,\n\t\t\t[$style[`top-color_${props.color}`]]: true,\n\t\t\t[$style[`top-style_${props.styling}`]]: !!props.styling,\n\t\t}\"\n\t\t:name=\"name\"\n\t\t:title=\"title\"\n\t\t:href=\"href\"\n\t\t:type=\"type\"\n\t\t:data-top-icon=\"icon || undefined\"\n\t\t:data-top-icon2=\"icon2 || undefined\"\n\t\t:disabled=\"disabled || undefined\"\n\t\t:inProgress=\"isProgress\"\n\t>\n\t\t<slot>{{ !icon ? \"Button\" : \"\" }}</slot>\n\t</component>\n</template>\n\n<style module>\n@import \"./style/button.css\";\n@import \"./style/style-outline.css\";\n@import \"./style/style-soft.css\";\n@import \"./style/style-transparent.css\";\n\n.top-button {\n\t--top-button-color: var(--color-white);\n\t--top-button-background-color: transparent;\n\t--top-button-background-color-hover: var(--top-button-background-color);\n\t--top-button-background-color-active: var(--top-button-background-color-hover);\n\t--top-button-background-color-selected: var(--top-button-background-color-hover);\n\t--top-button-box-shadow: none;\n\t--top-button-box-shadow-hover: var(--top-shadow-darken-2);\n\t--top-button-box-shadow-active: var(--top-shadow-darken-3);\n\t--top-button-box-shadow-selected: var(--top-shadow-darken-3);\n\t--top-forms-border-width: 0px;\n\t--top-icon-width: calc(var(--top-icon-size) + var(--top-forms-padding));\n\t--top-icon2-width: calc(var(--top-icon2-size) + var(--top-forms-padding));\n}\n\n.top-button.top-size_l {\n\t--top-forms-padding: var(--top-forms-padding_l);\n\t--top-forms-base-height: var(--top-forms-base-height_l);\n}\n\n.top-button.top-size_xl {\n\t--top-forms-padding: var(--top-forms-padding_xl);\n\t--top-forms-base-height: var(--top-forms-base-height_xl);\n}\n\n.top-button-progress {}\n</style>"],"names":["COLOR","STYLING","SIZE","computed"],"mappings":";;AA0CY,MAAA,0BAAAA,WAAL;AACNA,WAAA,OAAQ,IAAA;AACRA,WAAA,MAAO,IAAA;AACPA,WAAA,OAAQ,IAAA;AACRA,WAAA,QAAS,IAAA;AACTA,WAAA,KAAM,IAAA;AACNA,WAAA,MAAO,IAAA;AANIA,WAAAA;AAAAA,EAAA,GAAA,SAAA,CAAA,CAAA;AAYA,MAAA,4BAAAC,aAAL;AACNA,aAAA,SAAU,IAAA;AACVA,aAAA,SAAU,IAAA;AACVA,aAAA,MAAO,IAAA;AACPA,aAAA,aAAc,IAAA;AAJHA,WAAAA;AAAAA,EAAA,GAAA,WAAA,CAAA,CAAA;AAUA,MAAA,yBAAAC,UAAL;AACNA,UAAA,GAAI,IAAA;AACJA,UAAA,GAAI,IAAA;AACJA,UAAA,IAAK,IAAA;AAHMA,WAAAA;AAAAA,EAAA,GAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;ACrDZ,YAAM,UAAUC,IAAAA,SAAS,MAAM,MAAM,OAAO,MAAM,QAAQ;AAE1D,YAAM,OAAOA,IAAAA,SAAS,MAAM,MAAM,WAAW,WAAW,MAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/c/button/button.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
|
|
3
|
-
var COLOR = /* @__PURE__ */ ((COLOR2) => {
|
|
4
|
-
COLOR2["Theme"] = "theme";
|
|
5
|
-
COLOR2["Blue"] = "blue";
|
|
6
|
-
COLOR2["Green"] = "green";
|
|
7
|
-
COLOR2["Orange"] = "orange";
|
|
8
|
-
COLOR2["Red"] = "red";
|
|
9
|
-
COLOR2["Pink"] = "pink";
|
|
10
|
-
return COLOR2;
|
|
11
|
-
})(COLOR || {});
|
|
12
|
-
var STYLING = /* @__PURE__ */ ((STYLING2) => {
|
|
13
|
-
STYLING2["Regular"] = "";
|
|
14
|
-
STYLING2["Outline"] = "outline";
|
|
15
|
-
STYLING2["Soft"] = "soft";
|
|
16
|
-
STYLING2["Transparent"] = "transparent";
|
|
17
|
-
return STYLING2;
|
|
18
|
-
})(STYLING || {});
|
|
19
|
-
var SIZE = /* @__PURE__ */ ((SIZE2) => {
|
|
20
|
-
SIZE2["S"] = "";
|
|
21
|
-
SIZE2["L"] = "l";
|
|
22
|
-
SIZE2["XL"] = "xl";
|
|
23
|
-
return SIZE2;
|
|
24
|
-
})(SIZE || {});
|
|
25
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
|
-
__name: "button",
|
|
27
|
-
props: {
|
|
28
|
-
color: { default: COLOR.Blue },
|
|
29
|
-
styling: { default: STYLING.Regular },
|
|
30
|
-
size: { default: SIZE.S },
|
|
31
|
-
name: {},
|
|
32
|
-
title: {},
|
|
33
|
-
icon: {},
|
|
34
|
-
icon2: {},
|
|
35
|
-
href: {},
|
|
36
|
-
disabled: { type: Boolean },
|
|
37
|
-
isSubmit: { type: Boolean },
|
|
38
|
-
isActive: { type: Boolean },
|
|
39
|
-
isProgress: { type: Boolean }
|
|
40
|
-
},
|
|
41
|
-
setup(__props) {
|
|
42
|
-
const props = __props;
|
|
43
|
-
const tagName = computed(() => props.href ? "a" : "button");
|
|
44
|
-
const type = computed(() => props.isSubmit ? "submit" : void 0);
|
|
45
|
-
return (_ctx, _cache) => {
|
|
46
|
-
return openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
47
|
-
class: normalizeClass({
|
|
48
|
-
["top-active"]: props.isActive,
|
|
49
|
-
["top-disabled"]: props.disabled,
|
|
50
|
-
[_ctx.$style["top-button"]]: true,
|
|
51
|
-
[_ctx.$style["top-button-progress"]]: props.isProgress,
|
|
52
|
-
[_ctx.$style[`top-size_${props.size}`]]: !!props.size,
|
|
53
|
-
[_ctx.$style[`top-color_${props.color}`]]: true,
|
|
54
|
-
[_ctx.$style[`top-style_${props.styling}`]]: !!props.styling
|
|
55
|
-
}),
|
|
56
|
-
name: _ctx.name,
|
|
57
|
-
title: _ctx.title,
|
|
58
|
-
href: _ctx.href,
|
|
59
|
-
type: type.value,
|
|
60
|
-
"data-top-icon": _ctx.icon || void 0,
|
|
61
|
-
"data-top-icon2": _ctx.icon2 || void 0,
|
|
62
|
-
disabled: _ctx.disabled || void 0,
|
|
63
|
-
inProgress: _ctx.isProgress
|
|
64
|
-
}, {
|
|
65
|
-
default: withCtx(() => [
|
|
66
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
67
|
-
createTextVNode(toDisplayString(!_ctx.icon ? "Button" : ""), 1)
|
|
68
|
-
])
|
|
69
|
-
]),
|
|
70
|
-
_: 3
|
|
71
|
-
}, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]);
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
const progress = "_progress_fevtt_1";
|
|
76
|
-
const style0 = {
|
|
77
|
-
"top-button": "top-button",
|
|
78
|
-
"top-active": "top-active",
|
|
79
|
-
"top-button-progress": "top-button-progress",
|
|
80
|
-
progress,
|
|
81
|
-
"top-color_blue": "top-color_blue",
|
|
82
|
-
"top-color_green": "top-color_green",
|
|
83
|
-
"top-color_orange": "top-color_orange",
|
|
84
|
-
"top-color_red": "top-color_red",
|
|
85
|
-
"top-color_pink": "top-color_pink",
|
|
86
|
-
"top-color_theme": "top-color_theme",
|
|
87
|
-
"top-style_outline": "top-style_outline",
|
|
88
|
-
"top-style_soft": "top-style_soft",
|
|
89
|
-
"top-style_transparent": "top-style_transparent",
|
|
90
|
-
"top-size_l": "top-size_l",
|
|
91
|
-
"top-size_xl": "top-size_xl"
|
|
92
|
-
};
|
|
93
|
-
const cssModules = {
|
|
94
|
-
"$style": style0
|
|
95
|
-
};
|
|
96
|
-
const button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
97
|
-
export {
|
|
98
|
-
button as default
|
|
99
|
-
};
|
|
100
|
-
//# sourceMappingURL=button.js.map
|
package/c/button/button.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sources":["../../../src/components/forms/button/button.ts","../../../src/components/forms/button/button.vue"],"sourcesContent":["import type { VNode } from 'vue';\n\n/**\n * Определение параметров\n */\nexport interface Props {\n\tcolor?: COLOR\n\tstyling?: STYLING // bug: name = style init with object type\n\tsize?: SIZE\n\n\tname?: string\n\ttitle?: string\n\ticon?: string\n\ticon2?: string\n\n\thref?: string // если установлена ссылка, isSubmit не может быть true\n\t// value?: string\n\n\tdisabled?: boolean\n\tisSubmit?: boolean\n\tisActive?: boolean\n\tisProgress?: boolean\n}\n\n/**\n * Определение слотов\n */\nexport interface Slots {\n\t/**\n\t * Cлот с проивзольным содержимым\n\t */\n\tdefault(): VNode[];\n}\n\n/**\n * Определение событий\n */\nexport interface Emits { }\n\n/**\n * Цвета\n */\nexport enum COLOR {\n\tTheme = 'theme',\n\tBlue = 'blue',\n\tGreen = 'green',\n\tOrange = 'orange',\n\tRed = 'red',\n\tPink = 'pink',\n}\n\n/**\n * Стили\n */\nexport enum STYLING {\n\tRegular = '',\n\tOutline = 'outline',\n\tSoft = 'soft',\n\tTransparent = 'transparent',\n}\n\n/**\n * Размеры\n */\nexport enum SIZE {\n\tS = '',\n\tL = 'l',\n\tXL = 'xl',\n}","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { Props } from './button';\nimport { COLOR, STYLING, SIZE } from './button';\n\nconst props = withDefaults(defineProps<Props>(), {\n\tcolor: COLOR.Blue,\n\tstyling: STYLING.Regular,\n\tsize: SIZE.S,\n});\n\nconst tagName = computed(() => props.href ? 'a' : 'button');\n\nconst type = computed(() => props.isSubmit ? 'submit' : undefined);\n</script>\n\n<template>\n\t<component\n\t\t:is=\"tagName\"\n\t\t:class=\"{\n\t\t\t['top-active']: props.isActive,\n\t\t\t['top-disabled']: props.disabled,\n\t\t\t[$style['top-button']]: true,\n\t\t\t[$style['top-button-progress']]: props.isProgress,\n\t\t\t[$style[`top-size_${props.size}`]]: !!props.size,\n\t\t\t[$style[`top-color_${props.color}`]]: true,\n\t\t\t[$style[`top-style_${props.styling}`]]: !!props.styling,\n\t\t}\"\n\t\t:name=\"name\"\n\t\t:title=\"title\"\n\t\t:href=\"href\"\n\t\t:type=\"type\"\n\t\t:data-top-icon=\"icon || undefined\"\n\t\t:data-top-icon2=\"icon2 || undefined\"\n\t\t:disabled=\"disabled || undefined\"\n\t\t:inProgress=\"isProgress\"\n\t>\n\t\t<slot>{{ !icon ? \"Button\" : \"\" }}</slot>\n\t</component>\n</template>\n\n<style module>\n@import \"./style/button.css\";\n@import \"./style/style-outline.css\";\n@import \"./style/style-soft.css\";\n@import \"./style/style-transparent.css\";\n\n.top-button {\n\t--top-button-color: var(--color-white);\n\t--top-button-background-color: transparent;\n\t--top-button-background-color-hover: var(--top-button-background-color);\n\t--top-button-background-color-active: var(--top-button-background-color-hover);\n\t--top-button-background-color-selected: var(--top-button-background-color-hover);\n\t--top-button-box-shadow: none;\n\t--top-button-box-shadow-hover: var(--top-shadow-darken-2);\n\t--top-button-box-shadow-active: var(--top-shadow-darken-3);\n\t--top-button-box-shadow-selected: var(--top-shadow-darken-3);\n\t--top-forms-border-width: 0px;\n\t--top-icon-width: calc(var(--top-icon-size) + var(--top-forms-padding));\n\t--top-icon2-width: calc(var(--top-icon2-size) + var(--top-forms-padding));\n}\n\n.top-button.top-size_l {\n\t--top-forms-padding: var(--top-forms-padding_l);\n\t--top-forms-base-height: var(--top-forms-base-height_l);\n}\n\n.top-button.top-size_xl {\n\t--top-forms-padding: var(--top-forms-padding_xl);\n\t--top-forms-base-height: var(--top-forms-base-height_xl);\n}\n\n.top-button-progress {}\n</style>"],"names":["COLOR","STYLING","SIZE"],"mappings":";;AA0CY,IAAA,0BAAAA,WAAL;AACNA,SAAA,OAAQ,IAAA;AACRA,SAAA,MAAO,IAAA;AACPA,SAAA,OAAQ,IAAA;AACRA,SAAA,QAAS,IAAA;AACTA,SAAA,KAAM,IAAA;AACNA,SAAA,MAAO,IAAA;AANIA,SAAAA;AAAA,GAAA,SAAA,CAAA,CAAA;AAYA,IAAA,4BAAAC,aAAL;AACNA,WAAA,SAAU,IAAA;AACVA,WAAA,SAAU,IAAA;AACVA,WAAA,MAAO,IAAA;AACPA,WAAA,aAAc,IAAA;AAJHA,SAAAA;AAAA,GAAA,WAAA,CAAA,CAAA;AAUA,IAAA,yBAAAC,UAAL;AACNA,QAAA,GAAI,IAAA;AACJA,QAAA,GAAI,IAAA;AACJA,QAAA,IAAK,IAAA;AAHMA,SAAAA;AAAA,GAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;ACrDZ,UAAM,UAAU,SAAS,MAAM,MAAM,OAAO,MAAM,QAAQ;AAE1D,UAAM,OAAO,SAAS,MAAM,MAAM,WAAW,WAAW,MAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
define(["vue", "../_plugin-vue_export-helper-cb5c78ba"], function(vue, _pluginVue_exportHelper) {
|
|
2
|
-
"use strict"; vue = vue ?? Vue;
|
|
3
|
-
const _hoisted_1 = ["name", "value", "checked", "indeterminate", "disabled"];
|
|
4
|
-
const _hoisted_2 = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "top-checkbox_caption"
|
|
7
|
-
};
|
|
8
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
-
__name: "checkbox",
|
|
10
|
-
props: {
|
|
11
|
-
name: {},
|
|
12
|
-
value: {},
|
|
13
|
-
title: {},
|
|
14
|
-
checked: { type: Boolean },
|
|
15
|
-
disabled: { type: Boolean },
|
|
16
|
-
indeterminate: { type: Boolean },
|
|
17
|
-
isSwitcher: { type: Boolean }
|
|
18
|
-
},
|
|
19
|
-
setup(__props) {
|
|
20
|
-
const props = __props;
|
|
21
|
-
return (_ctx, _cache) => {
|
|
22
|
-
return vue.openBlock(), vue.createElementBlock("label", {
|
|
23
|
-
class: vue.normalizeClass({
|
|
24
|
-
["top-el"]: true,
|
|
25
|
-
["top-checkbox"]: true,
|
|
26
|
-
["top-checkbox_" + props.name]: props.name !== "",
|
|
27
|
-
["top-active"]: props.checked,
|
|
28
|
-
["top-disabled"]: props.disabled
|
|
29
|
-
})
|
|
30
|
-
}, [
|
|
31
|
-
vue.createElementVNode("input", {
|
|
32
|
-
type: "checkbox",
|
|
33
|
-
class: vue.normalizeClass(["top-el", {
|
|
34
|
-
["top-checkbox_input"]: true,
|
|
35
|
-
["top-checkbox_input-switcher"]: _ctx.isSwitcher
|
|
36
|
-
}]),
|
|
37
|
-
name: _ctx.name,
|
|
38
|
-
value: _ctx.value,
|
|
39
|
-
checked: _ctx.checked,
|
|
40
|
-
indeterminate: _ctx.indeterminate,
|
|
41
|
-
disabled: _ctx.disabled
|
|
42
|
-
}, null, 10, _hoisted_1),
|
|
43
|
-
_ctx.title ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true)
|
|
44
|
-
], 2);
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
const style0 = {
|
|
49
|
-
"top-el": "top-el",
|
|
50
|
-
"top-checkbox_input-switcher": "top-checkbox_input-switcher"
|
|
51
|
-
};
|
|
52
|
-
const cssModules = {
|
|
53
|
-
"$style": style0
|
|
54
|
-
};
|
|
55
|
-
const checkbox = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
56
|
-
return checkbox;
|
|
57
|
-
});
|
|
58
|
-
//# sourceMappingURL=checkbox.amd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.amd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|