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 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 very-early development.
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
- Winduum approach to **Tailwind** is little different. It encourages to write components in CSS or other (pre/post)-processors.
25
- And to use TailwindCSS only for utility classes to enhance the components. It also leverages the use of CSS properties as much possible.
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.10",
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.13",
19
+ "autoprefixer": "^10.4.14",
20
20
  "css-has-pseudo": "^5.0.2",
21
- "eslint": "^8.34.0",
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",
@@ -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
+ }
@@ -77,12 +77,6 @@ meter {
77
77
  -webkit-user-drag: element;
78
78
  }
79
79
 
80
- /* apply default cursor */
81
- :where(html) {
82
- cursor: default;
83
- color: rgb(var(--color-default))
84
- }
85
-
86
80
  /* apply text cursor */
87
81
  :where(input, textarea) {
88
82
  cursor: text;
@@ -1,2 +1,2 @@
1
- @import "Dialog.css";
2
- @import "Field.css";
1
+ @import "dialog.css";
2
+ @import "field.css";
@@ -2,7 +2,6 @@
2
2
  --c-dialog-py: 1.5rem;
3
3
  --c-dialog-px: 1.5rem;
4
4
  --c-dialog-width: 35rem;
5
- --c-dialog-offset-y: 2rem;
6
5
  --c-dialog-animation-duration: var(--transition-duration);
7
6
 
8
7
  animation: var(--c-dialog-animation-duration) ease 0s backwards 1 fade-in-down;
@@ -1,2 +1,2 @@
1
- @import "Dialog.css";
2
- @import "Ripple.css";
1
+ @import "dialog.css";
2
+ @import "ripple.css";
@@ -1,6 +1,5 @@
1
1
  :where(.lib-dialog) {
2
- --lib-dialog-bg: var(--color-dark);
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: rgb(var(--lib-dialog-bg) / var(--lib-dialog-opacity));
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 "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";
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
- 'background', 'default', 'light', 'dark', 'primary', 'secondary',
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