@nuvoui/core 0.2.1 → 0.3.0
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 +89 -4
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/main.css +1 -1
- package/package.json +21 -4
- package/src/styles/layouts/_flex.scss +38 -40
- package/src/styles/utilities/_position.scss +5 -5
- package/src/styles/utilities/_spacing.scss +14 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvoui/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "NuvoUI Core SCSS Library",
|
|
5
5
|
"main": "dist/index.css",
|
|
6
6
|
"module": "src/styles/index.scss",
|
|
@@ -12,16 +12,33 @@
|
|
|
12
12
|
"dev": "vite",
|
|
13
13
|
"build": "vite build && npm run build:scss",
|
|
14
14
|
"build:scss": "sass src/styles/index.scss:dist/index.css --style compressed",
|
|
15
|
-
"prepare": "npm run build"
|
|
15
|
+
"prepare": "npm run build",
|
|
16
|
+
"lint": "stylelint \"src/**/*.scss\"",
|
|
17
|
+
"format": "prettier --write \"src/**/*.{scss,js,json}\"",
|
|
18
|
+
"clean": "rimraf dist"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/NuvoUI/core.git"
|
|
16
23
|
},
|
|
17
24
|
"keywords": [
|
|
18
25
|
"scss",
|
|
19
26
|
"css",
|
|
20
27
|
"nuvoui",
|
|
21
|
-
"ui-library"
|
|
28
|
+
"ui-library",
|
|
29
|
+
"design-system",
|
|
30
|
+
"frontend",
|
|
31
|
+
"responsive",
|
|
32
|
+
"modern"
|
|
22
33
|
],
|
|
23
|
-
"author":
|
|
34
|
+
"author": {
|
|
35
|
+
"name": "AALA IT Solutions",
|
|
36
|
+
"url": "https://aalasolutions.com"
|
|
37
|
+
},
|
|
24
38
|
"license": "MIT",
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/NuvoUI/core/issues"
|
|
41
|
+
},
|
|
25
42
|
"publishConfig": {
|
|
26
43
|
"access": "public"
|
|
27
44
|
},
|
|
@@ -92,47 +92,45 @@
|
|
|
92
92
|
// Responsive variants
|
|
93
93
|
@each $breakpoint, $width in $breakpoints {
|
|
94
94
|
@media (min-width: $width) {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
flex: 0 0 math.percentage(math.div($i, $column-count));
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// Gap
|
|
133
|
-
@for $i from 0 through 8 {
|
|
134
|
-
&gap-#{$i} { gap: #{$i * 0.25}rem; }
|
|
95
|
+
// Direction
|
|
96
|
+
.flex.row\@#{$breakpoint} { flex-direction: row; }
|
|
97
|
+
.flex.row-reverse\@#{$breakpoint} { flex-direction: row-reverse; }
|
|
98
|
+
.flex.col\@#{$breakpoint} { flex-direction: column; }
|
|
99
|
+
.flex.col-reverse\@#{$breakpoint} { flex-direction: column-reverse; }
|
|
100
|
+
|
|
101
|
+
// Wrap
|
|
102
|
+
.flex.wrap\@#{$breakpoint} { flex-wrap: wrap; }
|
|
103
|
+
.flex.nowrap\@#{$breakpoint} { flex-wrap: nowrap; }
|
|
104
|
+
.flex.wrap-reverse\@#{$breakpoint} { flex-wrap: wrap-reverse; }
|
|
105
|
+
|
|
106
|
+
// Justify
|
|
107
|
+
.flex.start\@#{$breakpoint} { justify-content: flex-start; }
|
|
108
|
+
.flex.end\@#{$breakpoint} { justify-content: flex-end; }
|
|
109
|
+
.flex.center\@#{$breakpoint} { justify-content: center; }
|
|
110
|
+
.flex.between\@#{$breakpoint} { justify-content: space-between; }
|
|
111
|
+
.flex.around\@#{$breakpoint} { justify-content: space-around; }
|
|
112
|
+
.flex.evenly\@#{$breakpoint} { justify-content: space-evenly; }
|
|
113
|
+
|
|
114
|
+
// Align
|
|
115
|
+
.flex.items-start\@#{$breakpoint} { align-items: flex-start; }
|
|
116
|
+
.flex.items-end\@#{$breakpoint} { align-items: flex-end; }
|
|
117
|
+
.flex.items-center\@#{$breakpoint} { align-items: center; }
|
|
118
|
+
.flex.items-baseline\@#{$breakpoint} { align-items: baseline; }
|
|
119
|
+
.flex.items-stretch\@#{$breakpoint} { align-items: stretch; }
|
|
120
|
+
|
|
121
|
+
// Width (using column count)
|
|
122
|
+
.flex.w-auto\@#{$breakpoint} { flex: 1 1 auto; }
|
|
123
|
+
.flex.w-full\@#{$breakpoint} { flex: 0 0 100%; }
|
|
124
|
+
|
|
125
|
+
@for $i from 1 through $column-count {
|
|
126
|
+
.flex.w-#{$i}\@#{$breakpoint} {
|
|
127
|
+
flex: 0 0 math.percentage(math.div($i, $column-count));
|
|
135
128
|
}
|
|
136
129
|
}
|
|
130
|
+
|
|
131
|
+
// Gap
|
|
132
|
+
@for $i from 0 through 8 {
|
|
133
|
+
.flex.gap-#{$i}\@#{$breakpoint} { gap: #{$i * 0.25}rem; }
|
|
134
|
+
}
|
|
137
135
|
}
|
|
138
136
|
}
|
|
@@ -44,19 +44,19 @@
|
|
|
44
44
|
// Responsive Position Classes
|
|
45
45
|
@each $breakpoint, $width in $breakpoints {
|
|
46
46
|
@media (min-width: $width) {
|
|
47
|
-
|
|
47
|
+
.p-static\@#{$breakpoint} {
|
|
48
48
|
@include p-static;
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
.p-relative\@#{$breakpoint} {
|
|
51
51
|
@include p-relative;
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
.p-absolute\@#{$breakpoint} {
|
|
54
54
|
@include p-absolute;
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
.p-fixed\@#{$breakpoint} {
|
|
57
57
|
@include p-fixed;
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
.p-sticky\@#{$breakpoint} {
|
|
60
60
|
@include p-sticky;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -52,23 +52,22 @@
|
|
|
52
52
|
// Generate utilities from spacing map
|
|
53
53
|
@each $i in $spacings {
|
|
54
54
|
// Padding classes
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
.p-#{$i}\@#{$breakpoint} { @include p($i); }
|
|
56
|
+
.px-#{$i}\@#{$breakpoint} { @include px($i); }
|
|
57
|
+
.py-#{$i}\@#{$breakpoint} { @include py($i); }
|
|
58
|
+
.pt-#{$i}\@#{$breakpoint} { @include pt($i); }
|
|
59
|
+
.pr-#{$i}\@#{$breakpoint} { @include pr($i); }
|
|
60
|
+
.pb-#{$i}\@#{$breakpoint} { @include pb($i); }
|
|
61
|
+
.pl-#{$i}\@#{$breakpoint} { @include pl($i); }
|
|
62
62
|
|
|
63
63
|
// Margin classes
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
// .gap-#{$key} { gap: $value; }
|
|
64
|
+
.m-#{$i}\@#{$breakpoint} { @include m($i); }
|
|
65
|
+
.mx-#{$i}\@#{$breakpoint} { @include mx($i); }
|
|
66
|
+
.my-#{$i}\@#{$breakpoint} { @include my($i); }
|
|
67
|
+
.mt-#{$i}\@#{$breakpoint} { @include mt($i); }
|
|
68
|
+
.mr-#{$i}\@#{$breakpoint} { @include mr($i); }
|
|
69
|
+
.mb-#{$i}\@#{$breakpoint} { @include mb($i); }
|
|
70
|
+
.ml-#{$i}\@#{$breakpoint} { @include ml($i); }
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
}
|