@new-ui/reset 0.1.1 → 3.0.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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Install
4
4
 
5
- Install from your terminal via npm.
5
+ Install New UI Reset from your terminal with npm:
6
6
 
7
7
  ```
8
8
  npm i @new-ui/reset
@@ -10,7 +10,14 @@ npm i @new-ui/reset
10
10
 
11
11
  ## Usage
12
12
 
13
+ Import the compiled CSS in a React app or bundler:
14
+
15
+ ```js
16
+ import '@new-ui/reset/css';
17
+ ```
18
+
19
+ For SCSS projects, load the package with `@use`:
20
+
13
21
  ```scss
14
- // Place this at the top of your SCSS/CSS file
15
- @use '@new-ui/reset';
22
+ @use '@new-ui/reset/scss';
16
23
  ```
package/dist/index.css CHANGED
@@ -1,2 +1,52 @@
1
- *,:before,:after{box-sizing:border-box}html{text-size-adjust:none;vertical-align:baseline}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0;margin-block-end:0;padding:0}ul[role=list],ol[role=list]{list-style:none}body{min-height:100vh;line-height:1.5}h1,h2,h3,h4{text-wrap:balance}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}input,textarea,button,select{font-family:inherit;font-size:inherit;margin:0}table{border-collapse:collapse;border-spacing:0}:target{scroll-margin-block:5ex}
1
+ *, :before, :after {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ html {
6
+ -moz-text-size-adjust: none;
7
+ text-size-adjust: none;
8
+ vertical-align: baseline;
9
+ }
10
+
11
+ body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
12
+ margin: 0;
13
+ padding: 0;
14
+ }
15
+
16
+ ul[role="list"], ol[role="list"] {
17
+ list-style: none;
18
+ }
19
+
20
+ body {
21
+ min-height: 100vh;
22
+ line-height: 1.5;
23
+ }
24
+
25
+ h1, h2, h3, h4, h5, h6 {
26
+ text-wrap: balance;
27
+ }
28
+
29
+ a:not([class]) {
30
+ text-decoration-skip-ink: auto;
31
+ }
32
+
33
+ img, picture {
34
+ max-width: 100%;
35
+ display: block;
36
+ }
37
+
38
+ input, textarea, button, select {
39
+ font-family: inherit;
40
+ font-size: inherit;
41
+ margin: 0;
42
+ }
43
+
44
+ table {
45
+ border-collapse: collapse;
46
+ border-spacing: 0;
47
+ }
48
+
49
+ :target {
50
+ scroll-margin-block: 5ex;
51
+ }
2
52
  /*# sourceMappingURL=index.css.map */
@@ -1 +1 @@
1
- {"mappings":"ACAA,uCAMA,mDAKA,iFAeA,4CAKA,sCAKA,8BAOA,6CAIA,yCAMA,4EASA,gDAKA","sources":["index.css","src/_reset.scss"],"sourcesContent":["*, :before, :after {\n box-sizing: border-box;\n}\n\nhtml {\n text-size-adjust: none;\n vertical-align: baseline;\n}\n\nbody, h1, h2, h3, h4, p, figure, blockquote, dl, dd {\n margin: 0;\n margin-block-end: 0;\n padding: 0;\n}\n\nul[role=\"list\"], ol[role=\"list\"] {\n list-style: none;\n}\n\nbody {\n min-height: 100vh;\n line-height: 1.5;\n}\n\nh1, h2, h3, h4 {\n text-wrap: balance;\n}\n\na:not([class]) {\n text-decoration-skip-ink: auto;\n}\n\nimg, picture {\n max-width: 100%;\n display: block;\n}\n\ninput, textarea, button, select {\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n}\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n:target {\n scroll-margin-block: 5ex;\n}\n/*# sourceMappingURL=index.css.map */\n","*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\nhtml {\n text-size-adjust: none;\n vertical-align: baseline;\n}\n\nbody,\nh1,\nh2,\nh3,\nh4,\np,\nfigure,\nblockquote,\ndl,\ndd {\n margin: 0;\n padding: 0;\n margin-block-end: 0;\n}\n\nul[role='list'],\nol[role='list'] {\n list-style: none;\n}\n\nbody {\n min-height: 100vh;\n line-height: 1.5;\n}\n\nh1,\nh2,\nh3,\nh4 {\n text-wrap: balance;\n}\n\na:not([class]) {\n text-decoration-skip-ink: auto;\n}\n\nimg,\npicture {\n max-width: 100%;\n display: block;\n}\n\ninput,\ntextarea,\nbutton,\nselect {\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n}\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n:target {\n scroll-margin-block: 5ex;\n}\n"],"names":[],"version":3,"file":"index.css.map"}
1
+ {"mappings":"AAAA;;;;AAMA;;;;;;AAKA;;;;;AAgBA;;;;AAKA;;;;;AAKA;;;;AASA;;;;AAIA;;;;;AAMA;;;;;;AASA;;;;;AAKA","sources":["src/_reset.scss"],"sourcesContent":["*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\nhtml {\n text-size-adjust: none;\n vertical-align: baseline;\n}\n\nbody,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nfigure,\nblockquote,\ndl,\ndd {\n margin: 0;\n padding: 0;\n}\n\nul[role='list'],\nol[role='list'] {\n list-style: none;\n}\n\nbody {\n min-height: 100vh;\n line-height: 1.5;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n text-wrap: balance;\n}\n\na:not([class]) {\n text-decoration-skip-ink: auto;\n}\n\nimg,\npicture {\n max-width: 100%;\n display: block;\n}\n\ninput,\ntextarea,\nbutton,\nselect {\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n}\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n:target {\n scroll-margin-block: 5ex;\n}\n"],"names":[],"version":3,"file":"index.css.map"}
@@ -0,0 +1,2 @@
1
+ *,:before,:after{box-sizing:border-box}html{-moz-text-size-adjust:none;text-size-adjust:none;vertical-align:baseline}body,h1,h2,h3,h4,h5,h6,p,figure,blockquote,dl,dd{margin:0;padding:0}ul[role=list],ol[role=list]{list-style:none}body{min-height:100vh;line-height:1.5}h1,h2,h3,h4,h5,h6{text-wrap:balance}a:not([class]){text-decoration-skip-ink:auto}img,picture{max-width:100%;display:block}input,textarea,button,select{font-family:inherit;font-size:inherit;margin:0}table{border-collapse:collapse;border-spacing:0}:target{scroll-margin-block:5ex}
2
+ /*# sourceMappingURL=index.min.css.map */
@@ -0,0 +1 @@
1
+ {"mappings":"ACAA,uCAMA,8EAKA,oEAgBA,4CAKA,sCAKA,oCASA,6CAIA,yCAMA,4EASA,gDAKA","sources":["index.min.css","src/_reset.scss"],"sourcesContent":["*, :before, :after {\n box-sizing: border-box;\n}\n\nhtml {\n -moz-text-size-adjust: none;\n text-size-adjust: none;\n vertical-align: baseline;\n}\n\nbody, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {\n margin: 0;\n padding: 0;\n}\n\nul[role=\"list\"], ol[role=\"list\"] {\n list-style: none;\n}\n\nbody {\n min-height: 100vh;\n line-height: 1.5;\n}\n\nh1, h2, h3, h4, h5, h6 {\n text-wrap: balance;\n}\n\na:not([class]) {\n text-decoration-skip-ink: auto;\n}\n\nimg, picture {\n max-width: 100%;\n display: block;\n}\n\ninput, textarea, button, select {\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n}\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n:target {\n scroll-margin-block: 5ex;\n}\n/*# sourceMappingURL=index.min.css.map */\n","*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\nhtml {\n text-size-adjust: none;\n vertical-align: baseline;\n}\n\nbody,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nfigure,\nblockquote,\ndl,\ndd {\n margin: 0;\n padding: 0;\n}\n\nul[role='list'],\nol[role='list'] {\n list-style: none;\n}\n\nbody {\n min-height: 100vh;\n line-height: 1.5;\n}\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n text-wrap: balance;\n}\n\na:not([class]) {\n text-decoration-skip-ink: auto;\n}\n\nimg,\npicture {\n max-width: 100%;\n display: block;\n}\n\ninput,\ntextarea,\nbutton,\nselect {\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n}\n\ntable {\n border-collapse: collapse;\n border-spacing: 0;\n}\n\n:target {\n scroll-margin-block: 5ex;\n}\n"],"names":[],"version":3,"file":"index.min.css.map"}
package/package.json CHANGED
@@ -1,11 +1,32 @@
1
1
  {
2
2
  "name": "@new-ui/reset",
3
- "version": "0.1.1",
3
+ "version": "3.0.0",
4
4
  "description": "SCSS, CSS reset.",
5
5
  "source": "src/index.scss",
6
6
  "main": "dist/index.css",
7
+ "css": "dist/index.css",
8
+ "minified": "dist/index.min.css",
9
+ "style": "./dist/index.css",
10
+ "sass": "./src/index.scss",
11
+ "exports": {
12
+ ".": {
13
+ "sass": "./src/index.scss",
14
+ "style": "./dist/index.css",
15
+ "default": "./dist/index.css"
16
+ },
17
+ "./css": "./dist/index.css",
18
+ "./css/min": "./dist/index.min.css",
19
+ "./scss": "./src/index.scss",
20
+ "./package.json": "./package.json"
21
+ },
7
22
  "targets": {
8
- "main": false
23
+ "main": false,
24
+ "css": {
25
+ "optimize": false
26
+ },
27
+ "minified": {
28
+ "optimize": true
29
+ }
9
30
  },
10
31
  "files": [
11
32
  "dist/",
@@ -14,12 +35,13 @@
14
35
  "LICENSE"
15
36
  ],
16
37
  "scripts": {
17
- "watch": "parcel watch",
18
- "build": "parcel build"
38
+ "watch": "PARCEL_WORKERS=0 parcel watch",
39
+ "build": "PARCEL_WORKERS=0 parcel build",
40
+ "prepublishOnly": "bun run build"
19
41
  },
20
42
  "repository": {
21
43
  "type": "git",
22
- "url": "git+https://github.com/create-new-ui/foundations.git"
44
+ "url": "git+https://github.com/CreateNewUI/foundations.git"
23
45
  },
24
46
  "keywords": [
25
47
  "reset",
@@ -29,12 +51,7 @@
29
51
  "author": "@planetabhi",
30
52
  "license": "MIT",
31
53
  "bugs": {
32
- "url": "https://github.com/create-new-ui/foundations/issues"
54
+ "url": "https://github.com/CreateNewUI/foundations/issues"
33
55
  },
34
- "homepage": "https://github.com/create-new-ui/foundations#readme",
35
- "devDependencies": {
36
- "@parcel/transformer-sass": "^2.16.3",
37
- "autoprefixer": "^10.4.23",
38
- "parcel": "^2.16.3"
39
- }
56
+ "homepage": "https://github.com/CreateNewUI/foundations#readme"
40
57
  }
package/src/_reset.scss CHANGED
@@ -14,6 +14,8 @@ h1,
14
14
  h2,
15
15
  h3,
16
16
  h4,
17
+ h5,
18
+ h6,
17
19
  p,
18
20
  figure,
19
21
  blockquote,
@@ -21,7 +23,6 @@ dl,
21
23
  dd {
22
24
  margin: 0;
23
25
  padding: 0;
24
- margin-block-end: 0;
25
26
  }
26
27
 
27
28
  ul[role='list'],
@@ -37,7 +38,9 @@ body {
37
38
  h1,
38
39
  h2,
39
40
  h3,
40
- h4 {
41
+ h4,
42
+ h5,
43
+ h6 {
41
44
  text-wrap: balance;
42
45
  }
43
46