jbx 2.6.0 → 2.8.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/dist/main.css CHANGED
@@ -9,7 +9,7 @@ html {
9
9
 
10
10
  :root {
11
11
  --size: 16px;
12
- --font-size: 20px;
12
+ --font-size: 16px;
13
13
  --font-size-small: 17px;
14
14
  --radius-small: 2px;
15
15
  }
@@ -56,8 +56,12 @@ h3,
56
56
  h4 {
57
57
  line-height: 1;
58
58
  padding: 0;
59
- font-variation-settings: 'wdth' 107;
59
+ font-variation-settings: 'wght' 600;
60
+ font-weight: 600;
60
61
  color: var(--base-font-color-bright);
62
+ }
63
+ h1 {
64
+ font-variation-settings: 'wdth' 107, 'wght' 650;
61
65
  font-weight: 650;
62
66
  }
63
67
 
@@ -66,6 +70,13 @@ b {
66
70
  font-weight: 500;
67
71
  }
68
72
 
73
+ .jbx-main-h1 {
74
+ display: inline-block;
75
+ background-color: var(--accent-color);
76
+ font-size: calc(var(--font-size) * 2);
77
+ padding: 8px;
78
+ }
79
+
69
80
  .jbx-h1 {
70
81
  font-size: calc(var(--font-size) * 2);
71
82
  font-weight: 700;
@@ -74,7 +85,7 @@ b {
74
85
  font-size: calc(var(--font-size) * 1.25);
75
86
  }
76
87
  .jbx-h3 {
77
- font-size: calc(var(--font-size) * 1);
88
+ font-size: calc(var(--font-size) * 1.125);
78
89
  }
79
90
  .jbx-h4 {
80
91
  font-size: var(--font-size-small);
@@ -323,7 +334,6 @@ a.jbx-a:hover::before,
323
334
  }
324
335
  .jbx-range::-webkit-slider-runnable-track {
325
336
  appearance: none;
326
- /*background-color: yellow;*/
327
337
  }
328
338
  .jbx-range:focus {
329
339
  outline: none;
@@ -335,10 +345,10 @@ a.jbx-a:hover::before,
335
345
  }
336
346
 
337
347
  .jbx-bullet {
338
- border: 1.5px solid #000;
348
+ border: 1px solid #0001;
339
349
  color: #000;
350
+ background-color: #0001;
340
351
  text-align: center;
341
- line-height: 0.99;
342
352
  display: flex;
343
353
  align-items: center;
344
354
  justify-content: center;
@@ -346,8 +356,8 @@ a.jbx-a:hover::before,
346
356
  height: calc(var(--size) * 1.25);
347
357
  width: calc(var(--size) * 1.25);
348
358
  border-radius: 100%;
349
- top: -2px;
350
- font-weight: 500;
359
+ top: -4px;
360
+ margin-right: 4px;
351
361
  }
352
362
 
353
363
  .jbx-hr {
package/package.json CHANGED
@@ -1,28 +1,40 @@
1
1
  {
2
2
  "name": "jbx",
3
- "version": "2.6.0",
3
+ "version": "2.8.0",
4
4
  "author": "hi@javier.xyz",
5
5
  "license": "Unlicensed",
6
- "main": "dist/pkg.cjs.js",
7
- "module": "dist/pkg.esm.js",
8
- "types": "dist/types/index.d.ts",
6
+ "main": "./dist/index.js",
7
+ "type": "module",
8
+ "files": [
9
+ "./dist/main.css",
10
+ "./dist/index.d.ts",
11
+ "./dist/index.js"
12
+ ],
9
13
  "exports": {
10
- "require": "./dist/index.cjs",
11
- "import": "./dist/index.mjs",
12
- "module": "./dist/index.esm.js"
14
+ "types": "./dist/index.d.ts",
15
+ "module": "./dist/index.js"
13
16
  },
14
- "scripts": {
15
- "build": "bunchee ./src/index.tsx && cp ./src/style.css ./dist/main.css",
16
- "watch": "bunchee -w ./src/index.tsx"
17
+ "watch": {
18
+ "build": {
19
+ "patterns": [
20
+ "src"
21
+ ],
22
+ "extensions": "tsx,ts,css",
23
+ "quiet": false
24
+ }
17
25
  },
18
26
  "devDependencies": {
19
- "@types/react": "^18.0.21",
20
- "bunchee": "^2.1.3",
27
+ "@types/react": "^18.2.21",
28
+ "bunchee": "^3.7.1",
21
29
  "react": "^18.2.0",
22
30
  "react-dom": "^18.2.0",
23
- "typescript": "^4.8.3"
31
+ "typescript": "^5.2.2"
24
32
  },
25
33
  "dependencies": {
26
- "jbx": "^2.4.0"
34
+ "npm-watch": "^0.11.0"
35
+ },
36
+ "scripts": {
37
+ "build": "bunchee ./src/index.tsx && cp ./src/style.css ./dist/main.css",
38
+ "watch": "npm-watch"
27
39
  }
28
- }
40
+ }
package/.editorconfig DELETED
@@ -1,12 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- charset = utf-8
5
- indent_style = space
6
- indent_size = 2
7
- insert_final_newline = true
8
- trim_trailing_whitespace = true
9
-
10
- [*.md]
11
- max_line_length = off
12
- trim_trailing_whitespace = false
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- v18.x
package/.prettierrc DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "singleQuote": true,
3
- "printWidth": 100,
4
- "editor.formatOnSave": true,
5
- "proseWrap": "always",
6
- "tabWidth": 2,
7
- "requireConfig": false,
8
- "useTabs": false,
9
- "trailingComma": "none",
10
- "bracketSpacing": true,
11
- "jsxBracketSameLine": false,
12
- "semi": true
13
- }
package/CHANGELOG.md DELETED
@@ -1,58 +0,0 @@
1
- # 2.4.0
2
-
3
- - Respect `style` properties on `Box`.
4
-
5
- # 2.3.0
6
-
7
- - Add CodeTextarea.
8
-
9
- # 2.2.0
10
-
11
- - Restore `Dropzone`.
12
-
13
- # 2.1.0
14
-
15
- - Restore `input` and `range`.
16
- - Export `Component`.
17
-
18
- # 2.0.1
19
-
20
- - Restore responsive text size.
21
-
22
- # 2.0.0
23
-
24
- - Drop `styled-components` and `capsize`.
25
-
26
- # v1.7.0
27
-
28
- - Add `touch-action: pan-y;`.
29
-
30
- # v1.6.0
31
-
32
- - `Button` now moves when clicked.
33
-
34
- # v1.5.0
35
-
36
- - Add `SmallText`.
37
- - Add `MainHeader`.
38
- - Prevent `Checkbox` from resizing from responsive `size`.
39
-
40
- # v1.3.0
41
-
42
- - Add `Checkbox`.
43
-
44
- # v1.3.0
45
-
46
- - Add `CodeSnippet` component.
47
-
48
- # v1.2.0
49
-
50
- - Increase padding of `Container`.
51
-
52
- # v1.1.0
53
-
54
- - Add padding to `Container`.
55
-
56
- # v1.0.0
57
-
58
- - Initial release