@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuvoui/core",
3
- "version": "0.2.1",
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": "AALA IT Solutions",
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
- .#{$breakpoint}\: {
96
- // Direction
97
- &row { flex-direction: row; }
98
- &row-reverse { flex-direction: row-reverse; }
99
- &col { flex-direction: column; }
100
- &col-reverse { flex-direction: column-reverse; }
101
-
102
- // Wrap
103
- &wrap { flex-wrap: wrap; }
104
- &nowrap { flex-wrap: nowrap; }
105
- &wrap-reverse { flex-wrap: wrap-reverse; }
106
-
107
- // Justify
108
- &start { justify-content: flex-start; }
109
- &end { justify-content: flex-end; }
110
- &center { justify-content: center; }
111
- &between { justify-content: space-between; }
112
- &around { justify-content: space-around; }
113
- &evenly { justify-content: space-evenly; }
114
-
115
- // Align
116
- &items-start { align-items: flex-start; }
117
- &items-end { align-items: flex-end; }
118
- &items-center { align-items: center; }
119
- &items-baseline { align-items: baseline; }
120
- &items-stretch { align-items: stretch; }
121
-
122
- // Width (using column count)
123
- &w-auto { flex: 1 1 auto; }
124
- &w-full { flex: 0 0 100%; }
125
-
126
- @for $i from 1 through $column-count {
127
- &w-#{$i} {
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
- .#{$breakpoint}\:p-static {
47
+ .p-static\@#{$breakpoint} {
48
48
  @include p-static;
49
49
  }
50
- .#{$breakpoint}\:p-relative {
50
+ .p-relative\@#{$breakpoint} {
51
51
  @include p-relative;
52
52
  }
53
- .#{$breakpoint}\:p-absolute {
53
+ .p-absolute\@#{$breakpoint} {
54
54
  @include p-absolute;
55
55
  }
56
- .#{$breakpoint}\:p-fixed {
56
+ .p-fixed\@#{$breakpoint} {
57
57
  @include p-fixed;
58
58
  }
59
- .#{$breakpoint}\:p-sticky {
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
- .#{$breakpoint}\:p-#{$i} { @include p($i); }
56
- .#{$breakpoint}\:px-#{$i} { @include px($i); }
57
- .#{$breakpoint}\:py-#{$i} { @include py($i); }
58
- .#{$breakpoint}\:pt-#{$i} { @include pt($i); }
59
- .#{$breakpoint}\:pr-#{$i} { @include pr($i); }
60
- .#{$breakpoint}\:pb-#{$i} { @include pb($i); }
61
- .#{$breakpoint}\:pl-#{$i} { @include pl($i); }
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
- .#{$breakpoint}\:m-#{$i} { @include m($i); }
65
- .#{$breakpoint}\:mx-#{$i} { @include mx($i); }
66
- .#{$breakpoint}\:my-#{$i} { @include my($i); }
67
- .#{$breakpoint}\:mt-#{$i} { @include mt($i); }
68
- .#{$breakpoint}\:mr-#{$i} { @include mr($i); }
69
- .#{$breakpoint}\:mb-#{$i} { @include mb($i); }
70
- .#{$breakpoint}\:ml-#{$i} { @include ml($i); }
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
  }