winduum 0.1.10 → 0.1.12
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/README.md +8 -4
- package/package.json +3 -3
- package/src/base/default.css +15 -0
- package/src/base/reset.css +0 -6
- package/src/components/+.css +2 -2
- package/src/components/{Dialog.css → dialog.css} +0 -1
- package/src/libraries/+.css +2 -2
- package/src/libraries/{Dialog.css → dialog.css} +2 -3
- package/src/libraries/{Dialog.js → dialog.js} +2 -2
- package/src/ui/+.css +16 -16
- package/utils/tailwind.js +3 -2
- /package/src/components/{Field.css → field.css} +0 -0
- /package/src/libraries/{Ripple.css → ripple.css} +0 -0
- /package/src/libraries/{Ripple.js → ripple.js} +0 -0
- /package/src/ui/{Badge.css → badge.css} +0 -0
- /package/src/ui/{Btn.css → btn.css} +0 -0
- /package/src/ui/{Checkbox.css → checkbox.css} +0 -0
- /package/src/ui/{Heading.css → heading.css} +0 -0
- /package/src/ui/{Image.css → image.css} +0 -0
- /package/src/ui/{Info.css → info.css} +0 -0
- /package/src/ui/{Input.css → input.css} +0 -0
- /package/src/ui/{Label.css → label.css} +0 -0
- /package/src/ui/{Link.css → link.css} +0 -0
- /package/src/ui/{Notice.css → notice.css} +0 -0
- /package/src/ui/{Progress.css → progress.css} +0 -0
- /package/src/ui/{Radio.css → radio.css} +0 -0
- /package/src/ui/{Range.css → range.css} +0 -0
- /package/src/ui/{Select.css → select.css} +0 -0
- /package/src/ui/{Switch.css → switch.css} +0 -0
- /package/src/ui/{Text.css → text.css} +0 -0
- /package/src/ui/{Title.css → title.css} +0 -0
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
<a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/node/v/winduum.svg" alt="node compatility"></a>
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
|
-
# 🎨 Winduum
|
|
11
|
+
# 🎨 [Winduum](https://winduum.dev)
|
|
12
12
|
|
|
13
|
-
> Still in
|
|
13
|
+
> Still in early development.
|
|
14
14
|
|
|
15
15
|
Modern, modular, small CSS component framework build on top of **TailwindCSS**
|
|
16
16
|
|
|
@@ -21,5 +21,9 @@ Modern, modular, small CSS component framework build on top of **TailwindCSS**
|
|
|
21
21
|
|
|
22
22
|
It's a mix of words **Tailwind** _(Popular CSS utility framework)_ and **Tuum** _(Estonian word for "core")_.<br>
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
Essentially provides ways to leverage use of **CSS properties** as much possible and do more in CSS. Because we ❤️ CSS and this is a small modest CSS framework.
|
|
25
|
+
|
|
26
|
+
Its approach to **TailwindCSS** is little different. It encourages to write components in CSS or other (pre/post)-processors.
|
|
27
|
+
And to use utility classes to enhance the components.
|
|
28
|
+
|
|
29
|
+
As a CSS framework it provides only basic UI components. You can extend them with your own components or only use [TailwindCSS plugin](https://winduum.dev/docs/config) with its benefits and make your own complex UX/UI project written mostly in CSS/SASS/LESS.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "winduum",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@vitejs/plugin-vue": "^4.0.0",
|
|
19
|
-
"autoprefixer": "^10.4.
|
|
19
|
+
"autoprefixer": "^10.4.14",
|
|
20
20
|
"css-has-pseudo": "^5.0.2",
|
|
21
|
-
"eslint": "^8.
|
|
21
|
+
"eslint": "^8.36.0",
|
|
22
22
|
"eslint-config-standard": "^17.0.0",
|
|
23
23
|
"postcss": "^8.4.21",
|
|
24
24
|
"postcss-import": "^15.1.0",
|
package/src/base/default.css
CHANGED
|
@@ -21,3 +21,18 @@
|
|
|
21
21
|
border-top: 2px solid rgb(var(--color-current) / var(--tw-border-opacity, 1));
|
|
22
22
|
border-radius: var(--rounded);
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
:where(html) {
|
|
26
|
+
font-family: var(--font-primary);
|
|
27
|
+
font-weight: var(--font-normal);
|
|
28
|
+
height: 100%;
|
|
29
|
+
line-height: 1.5;
|
|
30
|
+
cursor: default;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(body) {
|
|
34
|
+
min-height: 100%;
|
|
35
|
+
background-color: rgb(var(--color-background));
|
|
36
|
+
color: rgb(var(--color-default));
|
|
37
|
+
accent-color: rgb(var(--color-accent));
|
|
38
|
+
}
|
package/src/base/reset.css
CHANGED
package/src/components/+.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import "
|
|
2
|
-
@import "
|
|
1
|
+
@import "dialog.css";
|
|
2
|
+
@import "field.css";
|
package/src/libraries/+.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import "
|
|
2
|
-
@import "
|
|
1
|
+
@import "dialog.css";
|
|
2
|
+
@import "ripple.css";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
:where(.lib-dialog) {
|
|
2
|
-
--lib-
|
|
3
|
-
--lib-dialog-opacity: 0.8;
|
|
2
|
+
--lib-ripple-bg: rgb(var(--color-dark) / var(--tw-bg-opacity, 0.8));
|
|
4
3
|
--lib-dialog-py: 2rem;
|
|
5
4
|
--lib-dialog-px: 1.5rem;
|
|
6
5
|
--lib-dialog-animation-duration: var(--transition-duration);
|
|
@@ -10,7 +9,7 @@
|
|
|
10
9
|
position: fixed;
|
|
11
10
|
overflow: auto;
|
|
12
11
|
-webkit-overflow-scrolling: touch;
|
|
13
|
-
background-color:
|
|
12
|
+
background-color: var(--lib-ripple-bg);
|
|
14
13
|
overscroll-behavior: contain;
|
|
15
14
|
display: flex;
|
|
16
15
|
visibility: hidden;
|
|
@@ -20,8 +20,8 @@ const dialogSelector = selector => typeof selector === 'string'
|
|
|
20
20
|
|
|
21
21
|
const dialogDismiss = async (options) => {
|
|
22
22
|
await Promise.allSettled(dialogSelector(options.selector).getAnimations().map(animation => animation.finished))
|
|
23
|
-
options.remove && dialogSelector(options.selector).remove()
|
|
24
23
|
dialogSelector(options.selector).setAttribute('inert', '')
|
|
24
|
+
options.remove && dialogSelector(options.selector).remove()
|
|
25
25
|
|
|
26
26
|
if (!document.querySelector('dialog[open]')) {
|
|
27
27
|
document.documentElement.classList.remove(defaultOptions.openClass)
|
|
@@ -85,4 +85,4 @@ const fetchDialog = async ({ url, showOptions = {} }) => {
|
|
|
85
85
|
.then(async ({ content }) => await showDialog({ content, ...showOptions }))
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
export { showDialog, closeDialog, fetchDialog }
|
|
88
|
+
export { showDialog, closeDialog, fetchDialog, dialogSelector, dialogDismiss }
|
package/src/ui/+.css
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@import "
|
|
2
|
-
@import "
|
|
3
|
-
@import "
|
|
4
|
-
@import "
|
|
5
|
-
@import "
|
|
6
|
-
@import "
|
|
7
|
-
@import "
|
|
8
|
-
@import "
|
|
9
|
-
@import "
|
|
10
|
-
@import "
|
|
11
|
-
@import "
|
|
12
|
-
@import "
|
|
13
|
-
@import "
|
|
14
|
-
@import "
|
|
15
|
-
@import "
|
|
16
|
-
@import "
|
|
1
|
+
@import "badge.css";
|
|
2
|
+
@import "btn.css";
|
|
3
|
+
@import "checkbox.css";
|
|
4
|
+
@import "heading.css";
|
|
5
|
+
@import "image.css";
|
|
6
|
+
@import "info.css";
|
|
7
|
+
@import "input.css";
|
|
8
|
+
@import "label.css";
|
|
9
|
+
@import "link.css";
|
|
10
|
+
@import "notice.css";
|
|
11
|
+
@import "progress.css";
|
|
12
|
+
@import "radio.css";
|
|
13
|
+
@import "select.css";
|
|
14
|
+
@import "switch.css";
|
|
15
|
+
@import "text.css";
|
|
16
|
+
@import "title.css";
|
package/utils/tailwind.js
CHANGED
|
@@ -4,8 +4,9 @@ import lodash from 'lodash'
|
|
|
4
4
|
|
|
5
5
|
export const defaultConfig = {
|
|
6
6
|
colors: [
|
|
7
|
-
'
|
|
8
|
-
'warning', 'error', 'info', 'success', 'accent', `current
|
|
7
|
+
'default', 'light', 'dark', 'primary', 'secondary',
|
|
8
|
+
'warning', 'error', 'info', 'success', 'accent', `current`,
|
|
9
|
+
'background', 'background-lighter', 'background-darker'
|
|
9
10
|
],
|
|
10
11
|
fontFamily: ['primary', 'secondary'],
|
|
11
12
|
fontWeight: ['light', 'normal', 'medium', 'semibold', 'bold', 'extrabold'],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|