@phillips/seldon 1.1.5 → 1.1.7

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 ADDED
@@ -0,0 +1,43 @@
1
+ # Easel Design System 🎨 by Phillips Auction House
2
+
3
+ Seldon is the source for design guidelines, component documentation, and resources for building apps with the Phillips.com Design System.
4
+
5
+ ## Installation
6
+
7
+ ```
8
+ # With NPM
9
+ npm install @phillips/seldon
10
+
11
+ # With yarn
12
+ yarn add @phillips/seldon
13
+ ```
14
+
15
+ ## What's included
16
+
17
+ ### Styling
18
+
19
+ 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
+
21
+ ```scss
22
+ @use '@phillips/seldon/scss/styles';
23
+ ```
24
+
25
+ If you wish to only import specific component styles you can find them in their respective directories inside the `scss` folder.
26
+
27
+ ```scss
28
+ @use '@phillips/seldon/scss/components/Button/button';
29
+ ```
30
+
31
+ ### Components
32
+
33
+ Each component can be imported in your project by referencing the component name inside the `components` directory.
34
+
35
+ ```js
36
+ import Button from '@phillips/seldon/components/Button/Button';
37
+ ```
38
+
39
+ You can also use named exports for multiple component imports from main index file.
40
+
41
+ ```js
42
+ import { Button } from '@phillips/seldon';
43
+ ```
@@ -0,0 +1,29 @@
1
+ *, *::before, *::after {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ * {
6
+ margin: 0;
7
+ }
8
+
9
+ body {
10
+ line-height: 1.5;
11
+ -webkit-font-smoothing: antialiased;
12
+ }
13
+
14
+ img, picture, video, canvas, svg {
15
+ display: block;
16
+ max-width: 100%;
17
+ }
18
+
19
+ input, button, textarea, select {
20
+ font: inherit;
21
+ }
22
+
23
+ p, h1, h2, h3, h4, h5, h6 {
24
+ overflow-wrap: break-word;
25
+ }
26
+
27
+ #root {
28
+ isolation: isolate;
29
+ }
@@ -0,0 +1,22 @@
1
+ @use './vars' as *;
2
+
3
+ body {
4
+ font-family: "Nunito Sans",-apple-system,".SFNSText-Regular","San Francisco",BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
5
+ font-size: 16px;
6
+ margin: 0;
7
+ -webkit-font-smoothing: antialiased;
8
+ -moz-osx-font-smoothing: grayscale;
9
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
10
+ -webkit-overflow-scrolling: touch;
11
+ }
12
+
13
+ h1,
14
+ h2,
15
+ h3,
16
+ h4 {
17
+ color: $primary-black;
18
+ }
19
+
20
+ p {
21
+ color: $soft-black;
22
+ }
@@ -0,0 +1,35 @@
1
+
2
+ // prefix
3
+ $px: phillips;
4
+
5
+
6
+ // Primary color palette
7
+ $pure-black: #000000;
8
+ $primary-black: #323232;
9
+ $pure-white: #ffffff;
10
+
11
+ // Secondary color palette
12
+ $soft-black: #545454;
13
+ $dark-gray: #75715f;
14
+
15
+ // Utilititarian color palette
16
+ $keyline-gray: #949494;
17
+ $medium-gray: #c3bebb;
18
+ $light-gray: #eceae7;
19
+ $off-white: #f4f2f1;
20
+
21
+ // Notification color palette
22
+ $error-red: #ff0000;
23
+ $post-sale-magenta: #ff0085;
24
+ $clock-widget-blue: #4a90e2;
25
+ $clock-widget-green: #6a9c53;
26
+ $clock-widget-maroon: #6b0000;
27
+ $clock-widget-red: #b00000;
28
+
29
+ // Articker color palette
30
+ $articker-red: #fc1e2b;
31
+ $articker-orange: #ff8201;
32
+ $articker-red-orange-gradient: linear-gradient(90deg, #fc1e2b, #ff8201);
33
+
34
+
35
+ $text-color: $pure-black;
package/package.json CHANGED
@@ -1,16 +1,24 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "type": "module",
5
+ "main": "./dist/index.js",
5
6
  "module": "./dist/index.js",
6
7
  "types": "./dist/index.d.ts",
7
8
  "exports": {
8
9
  ".": {
9
- "import": "./dist/index.js"
10
+ "import": {
11
+ "types": "./dist/index.js",
12
+ "default": "./dist/index.d.ts"
13
+ }
14
+ },
15
+ "./dist/": {
16
+ "import": "./dist/"
10
17
  }
11
18
  },
12
19
  "files": [
13
- "dist/**"
20
+ "dist/**",
21
+ "!dist/src"
14
22
  ],
15
23
  "scripts": {
16
24
  "dev": "vite",
@@ -1,31 +0,0 @@
1
- interface ButtonProps {
2
- /**
3
- * Is this the principal call to action on the page?
4
- */
5
- primary?: boolean;
6
- /**
7
- * What background color to use
8
- */
9
- backgroundColor?: string;
10
- /**
11
- * How large should the button be?
12
- */
13
- size?: 'small' | 'medium' | 'large';
14
- /**
15
- * Button contents
16
- */
17
- label: React.ReactElement | string;
18
- /**
19
- * Unique id for component
20
- */
21
- id?: string;
22
- /**
23
- * Optional click handler
24
- */
25
- onClick?: () => void;
26
- }
27
- /**
28
- * Primary UI component for user interaction
29
- */
30
- declare const Button: ({ primary, size, backgroundColor, label, id, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
31
- export default Button;
@@ -1,11 +0,0 @@
1
- type User = {
2
- name: string;
3
- };
4
- interface HeaderProps {
5
- user?: User;
6
- onLogin: () => void;
7
- onLogout: () => void;
8
- onCreateAccount: () => void;
9
- }
10
- declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
11
- export default Header;
@@ -1,3 +0,0 @@
1
- export { default as Button } from './components/Button/Button';
2
- export { default as Header } from './components/Header/Header';
3
- export { default as Page } from './pages/Page';
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const Page: React.FC;
3
- export default Page;
@@ -1 +0,0 @@
1
- export declare const px = "phillips";