winduum 0.1.5 → 0.1.7
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/dist/main.css +1 -1
- package/dist/tailwind.css +1 -1
- package/package.json +1 -1
- package/src/{styles/base → base}/config.css +3 -2
- package/src/{styles/base → base}/default.css +1 -2
- package/src/{styles/base → base}/icons.css +0 -0
- package/src/{styles/base → base}/keyframes.css +0 -0
- package/src/{styles/base → base}/reset.css +0 -0
- package/src/base/tailwind/base.css +3 -0
- package/src/base/tailwind/gutters.css +343 -0
- package/src/{styles/base/tailwind/base.css → base/tailwind/utilities.css} +0 -9
- package/src/{styles/base → base}/theme/dark.css +0 -0
- package/src/{styles/base → base}/theme/default.css +0 -0
- package/src/{styles/components → components}/+.css +0 -0
- package/src/{styles/components → components}/Dialog.css +0 -0
- package/src/{styles/components → components}/Drawer.css +0 -0
- package/src/{styles/components → components}/Dropdown.css +0 -0
- package/src/{styles/components → components}/Field.css +1 -1
- package/src/{styles/components → components}/Table.css +0 -0
- package/src/{styles/libraries → libraries}/+.css +0 -0
- package/src/{styles/libraries → libraries}/Dialog.css +0 -0
- package/src/{scripts/libraries → libraries}/Dialog.js +0 -0
- package/src/{styles/libraries → libraries}/Hint.css +0 -0
- package/src/{styles/main.css → main.css} +0 -0
- package/src/{scripts/main.js → main.js} +0 -0
- package/src/tailwind.css +3 -0
- package/src/{styles/ui → ui}/+.css +0 -0
- package/src/{styles/ui → ui}/Badge.css +0 -0
- package/src/{styles/ui → ui}/Btn.css +0 -0
- package/src/{styles/ui → ui}/Checkbox.css +1 -1
- package/src/{styles/ui → ui}/Heading.css +0 -0
- package/src/{styles/ui → ui}/Image.css +0 -0
- package/src/{styles/ui → ui}/Info.css +0 -0
- package/src/{styles/ui → ui}/Input.css +1 -1
- package/src/{styles/ui → ui}/Label.css +0 -0
- package/src/{styles/ui → ui}/Link.css +0 -0
- package/src/{styles/ui → ui}/Notice.css +0 -0
- package/src/{styles/ui → ui}/Progress.css +0 -0
- package/src/{styles/ui → ui}/Radio.css +0 -0
- package/src/{styles/ui → ui}/Range.css +0 -0
- package/src/{styles/ui → ui}/Select.css +0 -0
- package/src/{styles/ui → ui}/Switch.css +1 -1
- package/src/{styles/ui → ui}/Text.css +1 -1
- package/src/{styles/ui → ui}/Title.css +0 -0
- package/tailwind.config.cjs +2 -1
- package/utils/tailwind.cjs +6 -11
- package/utils/tailwind.js +5 -11
- package/src/App.vue +0 -12
- package/src/badge.html +0 -42
- package/src/btn.html +0 -102
- package/src/common.html +0 -58
- package/src/form.html +0 -98
- package/src/index.html +0 -17
- package/src/input-new.html +0 -146
- package/src/input.html +0 -153
- package/src/scripts/vue.js +0 -6
- package/src/styles/tailwind.css +0 -1
- package/src/tailwind.html +0 -18
- package/src/templates/Btn.vue +0 -11
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/tailwind.css
ADDED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
&.is-invalid, .is-validated & :where(input):invalid {
|
|
100
100
|
--ui-checkbox-bg-raw: var(--color-error);
|
|
101
101
|
--ui-checkbox-border-color-raw: var(--color-error);
|
|
102
102
|
--ui-checkbox-checked-bg-raw: var(--color-error);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
|
|
191
|
+
&.is-invalid, .is-validated & :where(input, textarea, select):invalid {
|
|
192
192
|
--ui-input-bg: rgb(var(--color-error) / 0.1);
|
|
193
193
|
--ui-input-border-opacity: 1;
|
|
194
194
|
--ui-input-border-color: var(--color-error);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
135
135
|
background-color: rgb(27 31 35 / 0.05);
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
.dark & {
|
|
138
138
|
background-color: rgb(var(--color-background-100));
|
|
139
139
|
color: rgb(var(--color-primary));
|
|
140
140
|
}
|
|
File without changes
|
package/tailwind.config.cjs
CHANGED
package/utils/tailwind.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var plugin = require('tailwindcss/plugin');
|
|
4
5
|
var twColors = require('tailwindcss/colors');
|
|
5
6
|
var lodash = require('lodash');
|
|
@@ -74,13 +75,11 @@ const tailwindColorsAccent = (colors = []) => {
|
|
|
74
75
|
const rgb = hexToRgb(color[1]);
|
|
75
76
|
|
|
76
77
|
result[`.accent-${color[0]}`] = {
|
|
77
|
-
'--color-accent': `${rgb[0]} ${rgb[1]} ${rgb[2]}
|
|
78
|
-
'accent-color': 'rgb(var(--color-accent))'
|
|
78
|
+
'--color-accent': `${rgb[0]} ${rgb[1]} ${rgb[2]}`
|
|
79
79
|
};
|
|
80
80
|
} else {
|
|
81
81
|
result[`.accent-${color}`] = {
|
|
82
|
-
'--color-accent': `var(--color-${color})
|
|
83
|
-
'accent-color': 'rgb(var(--color-accent))'
|
|
82
|
+
'--color-accent': `var(--color-${color})`
|
|
84
83
|
};
|
|
85
84
|
}
|
|
86
85
|
});
|
|
@@ -96,13 +95,11 @@ const tailwindColorsCurrent = (colors = []) => {
|
|
|
96
95
|
const rgb = hexToRgb(color[1]);
|
|
97
96
|
|
|
98
97
|
result[`.text-${color[0]}`] = {
|
|
99
|
-
'--color-current': `${rgb[0]} ${rgb[1]} ${rgb[2]}
|
|
100
|
-
'color': 'rgb(var(--color-current))'
|
|
98
|
+
'--color-current': `${rgb[0]} ${rgb[1]} ${rgb[2]}`
|
|
101
99
|
};
|
|
102
100
|
} else {
|
|
103
101
|
result[`.text-${color}`] = {
|
|
104
|
-
'--color-current': `var(--color-${color})
|
|
105
|
-
'color': 'rgb(var(--color-current))'
|
|
102
|
+
'--color-current': `var(--color-${color})`
|
|
106
103
|
};
|
|
107
104
|
}
|
|
108
105
|
});
|
|
@@ -140,9 +137,7 @@ const createPlugin = (userConfig = {}) => {
|
|
|
140
137
|
}, {
|
|
141
138
|
corePlugins: {
|
|
142
139
|
preflight: false,
|
|
143
|
-
container: false
|
|
144
|
-
accentColor: false,
|
|
145
|
-
textColor: false
|
|
140
|
+
container: false
|
|
146
141
|
},
|
|
147
142
|
theme: {
|
|
148
143
|
extend: {
|
package/utils/tailwind.js
CHANGED
|
@@ -72,13 +72,11 @@ export const tailwindColorsAccent = (colors = []) => {
|
|
|
72
72
|
const rgb = hexToRgb(color[1])
|
|
73
73
|
|
|
74
74
|
result[`.accent-${color[0]}`] = {
|
|
75
|
-
'--color-accent': `${rgb[0]} ${rgb[1]} ${rgb[2]}
|
|
76
|
-
'accent-color': 'rgb(var(--color-accent))'
|
|
75
|
+
'--color-accent': `${rgb[0]} ${rgb[1]} ${rgb[2]}`
|
|
77
76
|
}
|
|
78
77
|
} else {
|
|
79
78
|
result[`.accent-${color}`] = {
|
|
80
|
-
'--color-accent': `var(--color-${color})
|
|
81
|
-
'accent-color': 'rgb(var(--color-accent))'
|
|
79
|
+
'--color-accent': `var(--color-${color})`
|
|
82
80
|
}
|
|
83
81
|
}
|
|
84
82
|
})
|
|
@@ -94,13 +92,11 @@ export const tailwindColorsCurrent = (colors = []) => {
|
|
|
94
92
|
const rgb = hexToRgb(color[1])
|
|
95
93
|
|
|
96
94
|
result[`.text-${color[0]}`] = {
|
|
97
|
-
'--color-current': `${rgb[0]} ${rgb[1]} ${rgb[2]}
|
|
98
|
-
'color': 'rgb(var(--color-current))'
|
|
95
|
+
'--color-current': `${rgb[0]} ${rgb[1]} ${rgb[2]}`
|
|
99
96
|
}
|
|
100
97
|
} else {
|
|
101
98
|
result[`.text-${color}`] = {
|
|
102
|
-
'--color-current': `var(--color-${color})
|
|
103
|
-
'color': 'rgb(var(--color-current))'
|
|
99
|
+
'--color-current': `var(--color-${color})`
|
|
104
100
|
}
|
|
105
101
|
}
|
|
106
102
|
})
|
|
@@ -138,9 +134,7 @@ export const createPlugin = (userConfig = {}) => {
|
|
|
138
134
|
}, {
|
|
139
135
|
corePlugins: {
|
|
140
136
|
preflight: false,
|
|
141
|
-
container: false
|
|
142
|
-
accentColor: false,
|
|
143
|
-
textColor: false
|
|
137
|
+
container: false
|
|
144
138
|
},
|
|
145
139
|
theme: {
|
|
146
140
|
extend: {
|
package/src/App.vue
DELETED
package/src/badge.html
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en" class="font-sans">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<title>Winduum UI</title>
|
|
6
|
-
<meta name="viewport" content="width=device-width, user-scalable=0, initial-scale=1, viewport-fit=cover"/>
|
|
7
|
-
<link rel="stylesheet" href="/src/styles/main.css">
|
|
8
|
-
<link rel="stylesheet" href="/src/styles/tailwind.css">
|
|
9
|
-
<script src="/src/scripts/main.js" type="module"></script>
|
|
10
|
-
</head>
|
|
11
|
-
<body class="bg-blue-100/10 dark:bg-dark p-md flex flex-col items-start gap-4">
|
|
12
|
-
<div class="ui-badge">Badge</div>
|
|
13
|
-
<div class="ui-badge rounded-full">
|
|
14
|
-
<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
15
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z" />
|
|
16
|
-
</svg>
|
|
17
|
-
Badge
|
|
18
|
-
</div>
|
|
19
|
-
<div class="ui-badge is-sm">Badge</div>
|
|
20
|
-
<div class="ui-badge is-outline is-sm">Badge</div>
|
|
21
|
-
<a class="ui-badge is-muted">Badge</a>
|
|
22
|
-
<button class="ui-badge accent-secondary is-circle">
|
|
23
|
-
9
|
|
24
|
-
</button>
|
|
25
|
-
<div class="ui-badge-group">
|
|
26
|
-
<div class="ui-badge accent-dark">
|
|
27
|
-
<span>npm</span>
|
|
28
|
-
</div>
|
|
29
|
-
<div class="ui-badge accent-success">
|
|
30
|
-
<span>7.1.2</span>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="ui-badge-group">
|
|
34
|
-
<div class="ui-badge is-outline accent-dark">
|
|
35
|
-
<span>npm</span>
|
|
36
|
-
</div>
|
|
37
|
-
<div class="ui-badge is-outline accent-info">
|
|
38
|
-
<span>7.1.2</span>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
</body>
|
|
42
|
-
</html>
|
package/src/btn.html
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en" class="font-sans">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<title>Winduum UI</title>
|
|
6
|
-
<meta name="viewport" content="width=device-width, user-scalable=0, initial-scale=1, viewport-fit=cover"/>
|
|
7
|
-
<link rel="stylesheet" href="/src/styles/main.css">
|
|
8
|
-
<link rel="stylesheet" href="/src/styles/tailwind.css">
|
|
9
|
-
<script src="/src/scripts/main.js" type="module"></script>
|
|
10
|
-
<script src="/src/scripts/vue.js" type="module"></script>
|
|
11
|
-
</head>
|
|
12
|
-
<body class="bg-blue-100/10 dark:bg-dark p-md flex flex-col items-start gap-4">
|
|
13
|
-
<button class="ui-btn is-lg w-full is-hover-fill">Button</button>
|
|
14
|
-
<button class="ui-btn is-wide">Button</button>
|
|
15
|
-
<button class="ui-btn bg-gradient-to-br from-purple-600 to-blue-500 is-outline-gradient is-hover-fill">Button</button>
|
|
16
|
-
<button class="ui-btn bg-gradient-to-br from-purple-600 to-blue-500">Button</button>
|
|
17
|
-
<button class="ui-btn accent-secondary is-raised">Button</button>
|
|
18
|
-
<button class="ui-btn text-dark is-raised">Button</button>
|
|
19
|
-
<button class="ui-btn accent-error is-outline">Button</button>
|
|
20
|
-
<button class="ui-btn is-outline is-hover-fill">Button</button>
|
|
21
|
-
<button class="ui-btn text-default is-outline is-hover-fill">Button</button>
|
|
22
|
-
<button class="ui-btn is-text is-hover-fill">Button</button>
|
|
23
|
-
<button class="ui-btn text-default is-text">Button</button>
|
|
24
|
-
<button class="ui-btn is-muted">Button</button>
|
|
25
|
-
<button class="ui-btn is-muted">
|
|
26
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
27
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M6 13.5V3.75m0 9.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 9.75V10.5" />
|
|
28
|
-
</svg>
|
|
29
|
-
Button
|
|
30
|
-
</button>
|
|
31
|
-
|
|
32
|
-
<div class="ui-btn-group">
|
|
33
|
-
<button class="ui-btn is-outline">Button</button>
|
|
34
|
-
<button class="ui-btn is-outline">Button</button>
|
|
35
|
-
<button class="ui-btn is-outline">Button</button>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
<div class="flex gap-2">
|
|
39
|
-
<button class="ui-btn is-square">
|
|
40
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
41
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M6 13.5V3.75m0 9.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 9.75V10.5" />
|
|
42
|
-
</svg>
|
|
43
|
-
</button>
|
|
44
|
-
<button class="ui-btn is-outline is-square">
|
|
45
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
46
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M6 13.5V3.75m0 9.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 9.75V10.5" />
|
|
47
|
-
</svg>
|
|
48
|
-
</button>
|
|
49
|
-
<button class="ui-btn text-default is-text is-circle">
|
|
50
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
51
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M6 13.5V3.75m0 9.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 010 3m0-3a1.5 1.5 0 000 3m0 9.75V10.5" />
|
|
52
|
-
</svg>
|
|
53
|
-
</button>
|
|
54
|
-
</div>
|
|
55
|
-
|
|
56
|
-
<button class="ui-btn bg-secondary is-outline is-sm is-active is-loading">Button</button>
|
|
57
|
-
<button class="ui-btn is-lg">Button</button>
|
|
58
|
-
|
|
59
|
-
<div class="col flex-row gap-2">
|
|
60
|
-
<button class="bg-white p-xs" id="action-btn-disabled">disabled</button>
|
|
61
|
-
<button class="bg-white p-xs" id="action-btn-active">active</button>
|
|
62
|
-
<button class="bg-white p-xs" id="action-btn-loading">loading</button>
|
|
63
|
-
<button class="bg-white p-xs" id="action-btn-dark">dark</button>
|
|
64
|
-
</div>
|
|
65
|
-
|
|
66
|
-
<div id="app"></div>
|
|
67
|
-
|
|
68
|
-
<script>
|
|
69
|
-
document.getElementById('action-btn-active').addEventListener('click', () => {
|
|
70
|
-
if (!document.querySelector('.ui-btn.is-active')) {
|
|
71
|
-
document.querySelectorAll('.ui-btn').forEach(element => element.classList.add('is-active'))
|
|
72
|
-
} else {
|
|
73
|
-
document.querySelectorAll('.ui-btn').forEach(element => element.classList.remove('is-active'))
|
|
74
|
-
}
|
|
75
|
-
})
|
|
76
|
-
|
|
77
|
-
document.getElementById('action-btn-loading').addEventListener('click', () => {
|
|
78
|
-
if (!document.querySelector('.ui-btn.is-loading')) {
|
|
79
|
-
document.querySelectorAll('.ui-btn').forEach(element => element.classList.add('is-loading'))
|
|
80
|
-
} else {
|
|
81
|
-
document.querySelectorAll('.ui-btn').forEach(element => element.classList.remove('is-loading'))
|
|
82
|
-
}
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
document.getElementById('action-btn-disabled').addEventListener('click', () => {
|
|
86
|
-
if (!document.querySelector('.ui-btn:disabled')) {
|
|
87
|
-
document.querySelectorAll('.ui-btn').forEach(element => element.setAttribute('disabled', ''))
|
|
88
|
-
} else {
|
|
89
|
-
document.querySelectorAll('.ui-btn').forEach(element => element.removeAttribute('disabled'))
|
|
90
|
-
}
|
|
91
|
-
})
|
|
92
|
-
|
|
93
|
-
document.getElementById('action-btn-dark').addEventListener('click', () => {
|
|
94
|
-
if (!document.documentElement.classList.contains('dark')) {
|
|
95
|
-
document.documentElement.classList.add('dark')
|
|
96
|
-
} else {
|
|
97
|
-
document.documentElement.classList.remove('dark')
|
|
98
|
-
}
|
|
99
|
-
})
|
|
100
|
-
</script>
|
|
101
|
-
</body>
|
|
102
|
-
</html>
|
package/src/common.html
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en" class="font-sans">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<title>Winduum UI</title>
|
|
6
|
-
<meta name="viewport" content="width=device-width, user-scalable=0, initial-scale=1, viewport-fit=cover"/>
|
|
7
|
-
<link rel="stylesheet" href="/src/styles/main.css">
|
|
8
|
-
<link rel="stylesheet" href="/src/styles/tailwind.css">
|
|
9
|
-
<script src="/src/scripts/main.js" type="module"></script>
|
|
10
|
-
</head>
|
|
11
|
-
<body class="bg-blue-100/10 dark:bg-dark dark:text-light p-md flex flex-col items-start gap-4">
|
|
12
|
-
<div class="ui-image aspect-square w-24 rounded">
|
|
13
|
-
<img src="https://via.placeholder.com/128" alt="" loading="lazy">
|
|
14
|
-
</div>
|
|
15
|
-
<h1 class="ui-heading is-lg">Heading H1</h1>
|
|
16
|
-
<h2 class="ui-heading">Heading H2</h2>
|
|
17
|
-
<h3 class="ui-heading is-sm">Heading H3</h3>
|
|
18
|
-
<h1 class="ui-title is-lg">Title H1</h1>
|
|
19
|
-
<h2 class="ui-title">Title H2</h2>
|
|
20
|
-
<h3 class="ui-title uppercase text-accent is-sm">Title H3</h3>
|
|
21
|
-
<a class="ui-link is-underline" href="#">Link</a>
|
|
22
|
-
<progress class="ui-progress accent-error" value="50" max="100">15%</progress>
|
|
23
|
-
<progress class="ui-progress is-sm" max="100">15%</progress>
|
|
24
|
-
|
|
25
|
-
<div class="ui-notice accent-success">
|
|
26
|
-
Success notice
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
<div class="ui-notice accent-error">
|
|
30
|
-
<div class="ui-text">
|
|
31
|
-
<h4>Nicely done!</h4>
|
|
32
|
-
<p>Lorem ipsum dolor sit amet, <a href="#">consectetur adipiscing elit</a>. Nullam in elit iaculis, tristique nisi ut, mollis tellus. Nunc venenatis elit vel placerat commodo. Vestibulum odio neque, hendrerit nec venenatis at, tincidunt ut magna. Etiam hendrerit ultrices pharetra.</p>
|
|
33
|
-
</div>
|
|
34
|
-
<button class="ui-btn">
|
|
35
|
-
<span>Button</span>
|
|
36
|
-
</button>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
<div class="ui-text">
|
|
40
|
-
<h4>Nicely done!</h4>
|
|
41
|
-
<p>Lorem ipsum dolor sit amet, <a href="#">consectetur adipiscing elit</a>. Nullam in elit iaculis, tristique nisi ut, mollis tellus. Nunc venenatis elit vel placerat commodo. Vestibulum odio neque, hendrerit nec venenatis at, tincidunt ut magna. Etiam hendrerit ultrices pharetra.</p>
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<div class="col flex-row gap-2">
|
|
45
|
-
<button class="bg-accent p-xs" id="action-btn-dark">dark</button>
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
<script>
|
|
49
|
-
document.getElementById('action-btn-dark').addEventListener('click', () => {
|
|
50
|
-
if (!document.documentElement.classList.contains('dark')) {
|
|
51
|
-
document.documentElement.classList.add('dark')
|
|
52
|
-
} else {
|
|
53
|
-
document.documentElement.classList.remove('dark')
|
|
54
|
-
}
|
|
55
|
-
})
|
|
56
|
-
</script>
|
|
57
|
-
</body>
|
|
58
|
-
</html>
|
package/src/form.html
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en" class="font-sans">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<title>Winduum UI</title>
|
|
6
|
-
<meta name="viewport" content="width=device-width, user-scalable=0, initial-scale=1, viewport-fit=cover"/>
|
|
7
|
-
<link rel="stylesheet" href="/src/styles/main.css">
|
|
8
|
-
<link rel="stylesheet" href="/src/styles/tailwind.css">
|
|
9
|
-
<script src="/src/scripts/main.js" type="module"></script>
|
|
10
|
-
</head>
|
|
11
|
-
<body class="bg-blue-100/10 dark:bg-dark dark:text-light p-md flex flex-col items-start gap-4">
|
|
12
|
-
<form class="grid grid-cols-12 gap-4 is-validated" novalidate>
|
|
13
|
-
<div class="c-field col-span-4">
|
|
14
|
-
<label class="ui-label" for="validationCustom01">First name</label>
|
|
15
|
-
<div class="ui-input">
|
|
16
|
-
<input type="text" class="form-control" id="validationCustom01" value="Mark" required>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
<div class="c-field col-span-4">
|
|
20
|
-
<label class="ui-label" for="validationCustom02">Last name</label>
|
|
21
|
-
<div class="ui-input">
|
|
22
|
-
<input type="text" class="form-control" id="validationCustom02" value="Otto" required>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="c-field col-span-4">
|
|
26
|
-
<label class="ui-label" for="validationCustomUsername">Username</label>
|
|
27
|
-
<div class="ui-input-group">
|
|
28
|
-
<div class="ui-btn accent-default bg-opacity-10 text-default is-raised is-square">
|
|
29
|
-
@
|
|
30
|
-
</div>
|
|
31
|
-
<div class="ui-input">
|
|
32
|
-
<input type="text" class="form-control" id="validationCustomUsername" aria-describedby="inputGroupPrepend" required>
|
|
33
|
-
<svg class="icon-r text-error" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
34
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z" />
|
|
35
|
-
</svg>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
<div class="ui-info text-error" hidden>
|
|
40
|
-
Please choose a username.
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
<div class="c-field col-span-6">
|
|
44
|
-
<label class="ui-label" for="validationCustom03">City</label>
|
|
45
|
-
<div class="ui-input">
|
|
46
|
-
<input type="text" class="form-control" id="validationCustom03" required>
|
|
47
|
-
<svg class="icon-r text-error" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
48
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z" />
|
|
49
|
-
</svg>
|
|
50
|
-
</div>
|
|
51
|
-
<div class="ui-info text-error" hidden>
|
|
52
|
-
Please provide a valid city.
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
<div class="c-field col-span-3">
|
|
56
|
-
<label for="validationCustom04" class="ui-label">State</label>
|
|
57
|
-
<div class="ui-select">
|
|
58
|
-
<select class="form-select" id="validationCustom04" required>
|
|
59
|
-
<option selected disabled value="">Choose...</option>
|
|
60
|
-
<option>...</option>
|
|
61
|
-
</select>
|
|
62
|
-
<svg class="icon-r text-error" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
63
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z" />
|
|
64
|
-
</svg>
|
|
65
|
-
</div>
|
|
66
|
-
<div class="ui-info text-error" hidden>
|
|
67
|
-
Please select a valid state.
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
<div class="c-field col-span-3">
|
|
71
|
-
<label for="validationCustom05" class="ui-label">Zip</label>
|
|
72
|
-
<div class="ui-input">
|
|
73
|
-
<input type="text" class="form-control" id="validationCustom05" required>
|
|
74
|
-
<svg class="icon-r text-error" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
75
|
-
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z" />
|
|
76
|
-
</svg>
|
|
77
|
-
</div>
|
|
78
|
-
<div class="ui-info text-error" hidden>
|
|
79
|
-
Please provide a valid zip.
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
<div class="c-field col-span-12">
|
|
83
|
-
<div class="ui-checkbox is-required">
|
|
84
|
-
<input class="form-check-input" type="checkbox" value="" id="invalidCheck" required>
|
|
85
|
-
<label class="form-check-label" for="invalidCheck">
|
|
86
|
-
Agree to terms and conditions
|
|
87
|
-
</label>
|
|
88
|
-
</div>
|
|
89
|
-
<div class="ui-info text-error" hidden>
|
|
90
|
-
You must agree before submitting.
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
<div class="c-field col-span-12">
|
|
94
|
-
<button class="ui-btn" type="submit">Submit form</button>
|
|
95
|
-
</div>
|
|
96
|
-
</form>
|
|
97
|
-
</body>
|
|
98
|
-
</html>
|
package/src/index.html
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en" class="font-sans">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<title>Winduum UI</title>
|
|
6
|
-
<meta name="viewport" content="width=device-width, user-scalable=0, initial-scale=1, viewport-fit=cover"/>
|
|
7
|
-
<link rel="stylesheet" href="/src/styles/main.css">
|
|
8
|
-
<link rel="stylesheet" href="/src/styles/tailwind.css">
|
|
9
|
-
</head>
|
|
10
|
-
<body class="bg-blue-100/10 dark:bg-dark p-md flex flex-col items-start gap-4 text-lg font-bold text-primary">
|
|
11
|
-
<a href="/common.html">ui-heading, ui-title, ui-link, ui-image</a>
|
|
12
|
-
<a href="/badge.html">ui-badge</a>
|
|
13
|
-
<a href="/btn.html">ui-btn</a>
|
|
14
|
-
<a href="/input.html">ui-input</a>
|
|
15
|
-
<div class="animate-bounce">asd</div>
|
|
16
|
-
</body>
|
|
17
|
-
</html>
|