@phillips/seldon 1.1.8 → 1.1.9

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
@@ -1,5 +1,7 @@
1
1
  # Easel Design System 🎨 by Phillips Auction House
2
2
 
3
+ [![Netlify Status](https://api.netlify.com/api/v1/badges/45a31dc9-7c19-482a-ae3d-be6bb2533cef/deploy-status)](https://app.netlify.com/sites/snazzy-liger-5606f7/deploys)
4
+
3
5
  Seldon is the source for design guidelines, component documentation, and resources for building apps with the Phillips.com Design System.
4
6
 
5
7
  ## Installation
@@ -19,13 +21,13 @@ yarn add @phillips/seldon
19
21
  The project contains a `scss` folder. Here you will find the main export of our sass styles. This will include all the styles bundled with this package, including resets and typography styles.
20
22
 
21
23
  ```scss
22
- @use '@phillips/seldon/scss/styles';
24
+ @use '@phillips/seldon/dist/scss/styles';
23
25
  ```
24
26
 
25
27
  If you wish to only import specific component styles you can find them in their respective directories inside the `scss` folder.
26
28
 
27
29
  ```scss
28
- @use '@phillips/seldon/scss/components/Button/button';
30
+ @use '@phillips/seldon/dist/scss/components/Button/button';
29
31
  ```
30
32
 
31
33
  ### Components
@@ -33,7 +35,7 @@ If you wish to only import specific component styles you can find them in their
33
35
  Each component can be imported in your project by referencing the component name inside the `components` directory.
34
36
 
35
37
  ```js
36
- import Button from '@phillips/seldon/components/Button/Button';
38
+ import Button from '@phillips/seldon/dist/components/Button/Button';
37
39
  ```
38
40
 
39
41
  You can also use named exports for multiple component imports from main index file.
@@ -1,7 +1,7 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import n from "react";
2
+ import * as n from "react";
3
3
  import a from "../components/Header/Header.js";
4
- const c = () => {
4
+ const h = () => {
5
5
  const [r, t] = n.useState();
6
6
  return /* @__PURE__ */ o("article", { children: [
7
7
  /* @__PURE__ */ e(
@@ -54,5 +54,5 @@ const c = () => {
54
54
  ] });
55
55
  };
56
56
  export {
57
- c as default
57
+ h as default
58
58
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -22,19 +22,23 @@
22
22
  ],
23
23
  "scripts": {
24
24
  "dev": "vite",
25
- "clean": "rimraf './dist'rimraf",
26
- "clean:stories": "rimraf ./storybook-static'",
27
25
  "build": "npm run clean && tsc && vite build && rimraf --glob './public/scss'",
26
+ "build:storybook": "storybook build",
27
+ "clean": "rimraf './dist'rimraf",
28
+ "clean:stories": "rimraf './storybook-static'",
28
29
  "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
29
- "preview": "vite preview",
30
30
  "start": "storybook dev -p 6006",
31
- "build:storybook": "npm run clean:stories && storybook build"
31
+ "preview": "npx http-server storybook-static",
32
+ "prepare": "husky install"
32
33
  },
33
34
  "dependencies": {
34
35
  "react": "^18.2.0",
35
36
  "react-dom": "^18.2.0"
36
37
  },
37
38
  "devDependencies": {
39
+ "@commitlint/cli": "^17.6.6",
40
+ "@commitlint/config-conventional": "^17.6.6",
41
+ "@semantic-release/changelog": "^6.0.3",
38
42
  "@semantic-release/git": "^10.0.1",
39
43
  "@storybook/addon-essentials": "^7.0.22",
40
44
  "@storybook/addon-interactions": "^7.0.22",
@@ -56,6 +60,7 @@
56
60
  "eslint-plugin-react-hooks": "^4.6.0",
57
61
  "eslint-plugin-react-refresh": "^0.3.4",
58
62
  "eslint-plugin-storybook": "^0.6.12",
63
+ "husky": "^8.0.3",
59
64
  "prop-types": "^15.8.1",
60
65
  "rimraf": "^5.0.1",
61
66
  "rollup-plugin-copy": "^3.4.0",
@@ -78,19 +83,30 @@
78
83
  "plugins": [
79
84
  "@semantic-release/commit-analyzer",
80
85
  "@semantic-release/release-notes-generator",
86
+ [
87
+ "@semantic-release/changelog",
88
+ {
89
+ "changelogFile": "CHANGELOG.md"
90
+ }
91
+ ],
81
92
  "@semantic-release/npm",
82
93
  [
83
94
  "@semantic-release/git",
84
95
  {
85
96
  "assets": [
86
97
  "package.json",
87
- "package-lock.json",
88
- "README.md",
98
+ "dist/**/*.{js,scss}",
89
99
  "CHANGELOG.md"
90
100
  ],
91
101
  "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
92
102
  }
93
103
  ]
94
104
  ]
105
+ },
106
+ "commitlint": {
107
+ "extends": [
108
+ "@commitlint/config-conventional"
109
+ ],
110
+ "helpUrl": "https://www.conventionalcommits.org/en/v1.0.0/"
95
111
  }
96
112
  }