@betterinternship/components 2.0.1 → 2.1.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.
Files changed (3) hide show
  1. package/README.md +25 -15
  2. package/package.json +4 -2
  3. package/theme.css +12 -7
package/README.md CHANGED
@@ -2,39 +2,49 @@
2
2
 
3
3
  Contains common components shared between the different interfaces of the site.
4
4
 
5
- ## How to update
5
+ ## Running the playground
6
6
 
7
- 1. Build the package:
7
+ This package comes with a simple React app that you can use to test components. It runs on `localhost:5173` in your browser.
8
+
9
+ Run the playground:
8
10
 
9
11
  ```bash
10
- npm run build
12
+ npm run dev:playground
11
13
  ```
12
14
 
13
- 2. Commit the build:
15
+ ## Running the test suite
16
+
17
+ Run the test suite:
14
18
 
15
19
  ```bash
16
- git add .
17
- git commit -m "<follow conventional commits, k thanks>"
18
- git push
20
+ npm run test
19
21
  ```
20
22
 
21
- 3. Update the version and publish the package to NPM:
23
+ or run the test suite in watch mode if you're making changes:
22
24
 
23
25
  ```bash
24
- npm version <major|minor|patch>
25
- npm publish
26
+ npm run test:watch
26
27
  ```
27
28
 
28
- ## How to test components
29
+ ## Updating the package
29
30
 
30
- Run the test suite:
31
+ 1. Build the package:
31
32
 
32
33
  ```bash
33
- npm run test
34
+ npm run build
34
35
  ```
35
36
 
36
- or Run the test suite in watch mode if you're making changes:
37
+ 2. Commit the build:
37
38
 
38
39
  ```bash
39
- npm run test:watch
40
+ git add .
41
+ git commit -m "<follow conventional commits, k thanks>"
42
+ git push
43
+ ```
44
+
45
+ 3. Update the version and publish the package to NPM:
46
+
47
+ ```bash
48
+ npm version <major|minor|patch>
49
+ npm publish
40
50
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterinternship/components",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,7 +8,8 @@
8
8
  "build": "rollup -c && tsc-alias",
9
9
  "test": "vitest run",
10
10
  "test:watch": "vitest",
11
- "prepare": "npm run build"
11
+ "prepare": "npm run build",
12
+ "dev:playground": "npm --prefix playground run dev"
12
13
  },
13
14
  "publishConfig": {
14
15
  "access": "public"
@@ -220,6 +221,7 @@
220
221
  ],
221
222
  "dependencies": {
222
223
  "@daypicker/react": "^10.0.1",
224
+ "@types/react-dom": "^19.2.4",
223
225
  "class-variance-authority": "^0.7.1",
224
226
  "clsx": "^2.1.1",
225
227
  "lucide-react": ">=0.454.0",
package/theme.css CHANGED
@@ -8,19 +8,24 @@
8
8
  --card-foreground: oklch(0.145 0 0);
9
9
  --popover: oklch(1 0 0);
10
10
  --popover-foreground: oklch(0.145 0 0);
11
+
12
+ /* primary brand (deep royal blue) */
11
13
  --primary: oklch(0.441 0.122 251);
12
14
  --primary-foreground: oklch(0.984 0.003 210);
15
+
16
+ /* secondary (soft tinted gray-blue) */
17
+ --secondary: oklch(0.441 0.122 251);
18
+ --secondary-foreground: oklch(0.25 0.08 251);
19
+
13
20
  --supportive: oklch(0.663 0.137 137);
14
21
  --supportive-foreground: oklch(0.984 0.003 210);
15
- --secondary: oklch(0.208 0.04 266);
16
- --secondary-foreground: oklch(0.968 0.007 210);
17
22
  --muted: oklch(0.968 0.007 210);
18
23
  --muted-foreground: oklch(0.554 0.041 257);
19
24
  --warning: oklch(0.731 0.144 64);
20
25
  --warning-foreground: oklch(0.968 0.007 210);
21
26
  --accent: oklch(0.97 0 0);
22
27
  --accent-foreground: oklch(0.205 0 0);
23
- --destructive: oklch(0.64 0.218 29);
28
+ --destructive: oklch(0.48 0.218 29);
24
29
  --destructive-foreground: oklch(0.984 0.003 210);
25
30
  --border: oklch(0.922 0 0);
26
31
  --input: oklch(0.922 0 0);
@@ -45,11 +50,11 @@
45
50
  --animate-accordion-up: accordion-up 0.2s ease-out;
46
51
 
47
52
  --font-sans:
48
- Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
49
- "Helvetica Neue", Arial, sans-serif;
53
+ Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
54
+ 'Helvetica Neue', Arial, sans-serif;
50
55
  --font-mono:
51
- "JetBrains Mono", "Fira Code", Menlo, Monaco, Consolas, "Liberation Mono",
52
- "Courier New", monospace;
56
+ 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, 'Liberation Mono',
57
+ 'Courier New', monospace;
53
58
 
54
59
  --color-background: var(--background);
55
60
  --color-foreground: var(--foreground);