@phillips/seldon 1.1.3 → 1.1.4
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/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/components/Button/Button.js +24 -0
- package/dist/components/Header/Header.js +44 -0
- package/dist/index.js +8 -0
- package/dist/node_modules/classnames/index.js +42 -0
- package/dist/pages/Page.js +58 -0
- package/dist/src/components/Button/Button.d.ts +31 -0
- package/dist/src/components/Header/Header.d.ts +11 -0
- package/{src/index.ts → dist/src/index.d.ts} +1 -1
- package/dist/src/pages/Page.d.ts +3 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4 -0
- package/package.json +18 -1
- package/.eslintrc.cjs +0 -16
- package/.github/CODEOWNERS +0 -37
- package/.github/CODE_OF_CONDUCT.md +0 -91
- package/.github/ISSUE_TEMPLATE/bug-report.md +0 -41
- package/.github/PULL_REQUEST_TEMPLATE.MD +0 -28
- package/.github/workflows/build.yml +0 -26
- package/.github/workflows/publish.yml +0 -45
- package/.storybook/assets/LogoBlack.svg +0 -16
- package/.storybook/main.ts +0 -19
- package/.storybook/manager-head.html +0 -58
- package/.storybook/manager.ts +0 -6
- package/.storybook/preview.ts +0 -23
- package/.storybook/seldonTheme.ts +0 -43
- package/custom.d.ts +0 -12
- package/index.html +0 -13
- package/src/App.css +0 -42
- package/src/App.tsx +0 -35
- package/src/README.md +0 -43
- package/src/assets/react.svg +0 -1
- package/src/components/Button/Button.stories.tsx +0 -28
- package/src/components/Button/Button.tsx +0 -57
- package/src/components/Header/Header.stories.ts +0 -26
- package/src/components/Header/Header.tsx +0 -56
- package/src/design/Welcome.mdx +0 -68
- package/src/design/assets/code-brackets.svg +0 -1
- package/src/design/assets/colors.svg +0 -1
- package/src/design/assets/comments.svg +0 -1
- package/src/design/assets/direction.svg +0 -1
- package/src/design/assets/flow.svg +0 -1
- package/src/design/assets/plugin.svg +0 -1
- package/src/design/assets/repo.svg +0 -1
- package/src/design/assets/stackalt.svg +0 -1
- package/src/design/colors-tokens/ColorCard.tsx +0 -84
- package/src/design/colors-tokens/_color-card.scss +0 -84
- package/src/design/colors-tokens/color-tokens.mdx +0 -231
- package/src/index.css +0 -69
- package/src/main.tsx +0 -10
- package/src/pages/Page.stories.ts +0 -29
- package/src/pages/Page.tsx +0 -74
- package/src/story-styles.scss +0 -1
- package/src/utils/_reset.scss +0 -29
- package/src/utils/_typography.scss +0 -22
- package/src/utils/_vars.scss +0 -35
- package/src/utils/index.ts +0 -1
- package/src/vite-env.d.ts +0 -1
- package/tsconfig.json +0 -27
- package/tsconfig.node.json +0 -11
- package/vite.config.ts +0 -58
- /package/{src → dist/scss}/components/Button/_button.scss +0 -0
- /package/{src → dist/scss}/components/Header/_header.scss +0 -0
- /package/{src → dist/scss}/pages/_page.scss +0 -0
- /package/{src → dist/scss}/styles.scss +0 -0
- /package/{public → dist}/vite.svg +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import m from "../../node_modules/classnames/index.js";
|
|
3
|
+
import { px as t } from "../../utils/index.js";
|
|
4
|
+
const c = ({
|
|
5
|
+
primary: n = !1,
|
|
6
|
+
size: e = "medium",
|
|
7
|
+
backgroundColor: s,
|
|
8
|
+
label: r,
|
|
9
|
+
id: o,
|
|
10
|
+
...u
|
|
11
|
+
}) => /* @__PURE__ */ a(
|
|
12
|
+
"button",
|
|
13
|
+
{
|
|
14
|
+
"data-testid": o ? `button-${o}` : "button",
|
|
15
|
+
type: "button",
|
|
16
|
+
className: m(`${t}-button`, `${t}-button--${e}`, { [`${t}-button--secondary`]: !n }),
|
|
17
|
+
style: { backgroundColor: s },
|
|
18
|
+
...u,
|
|
19
|
+
children: r
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
export {
|
|
23
|
+
c as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as l, jsxs as e, Fragment as a } from "react/jsx-runtime";
|
|
2
|
+
import i from "../Button/Button.js";
|
|
3
|
+
const s = ({ user: n, onLogin: d, onLogout: r, onCreateAccount: h }) => /* @__PURE__ */ l("header", { children: /* @__PURE__ */ e("div", { className: "storybook-header", children: [
|
|
4
|
+
/* @__PURE__ */ e("div", { children: [
|
|
5
|
+
/* @__PURE__ */ l("svg", { width: "32", height: "32", viewBox: "0 0 32 32", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e("g", { fill: "none", fillRule: "evenodd", children: [
|
|
6
|
+
/* @__PURE__ */ l(
|
|
7
|
+
"path",
|
|
8
|
+
{
|
|
9
|
+
d: "M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z",
|
|
10
|
+
fill: "#FFF"
|
|
11
|
+
}
|
|
12
|
+
),
|
|
13
|
+
/* @__PURE__ */ l(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
d: "M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z",
|
|
17
|
+
fill: "#555AB9"
|
|
18
|
+
}
|
|
19
|
+
),
|
|
20
|
+
/* @__PURE__ */ l(
|
|
21
|
+
"path",
|
|
22
|
+
{
|
|
23
|
+
d: "M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z",
|
|
24
|
+
fill: "#91BAF8"
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
] }) }),
|
|
28
|
+
/* @__PURE__ */ l("h1", { children: "Acme" })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ l("div", { children: n ? /* @__PURE__ */ e(a, { children: [
|
|
31
|
+
/* @__PURE__ */ e("span", { className: "welcome", children: [
|
|
32
|
+
"Welcome, ",
|
|
33
|
+
/* @__PURE__ */ l("b", { children: n.name }),
|
|
34
|
+
"!"
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ l(i, { size: "small", onClick: r, label: "Log out" })
|
|
37
|
+
] }) : /* @__PURE__ */ e(a, { children: [
|
|
38
|
+
/* @__PURE__ */ l(i, { size: "small", onClick: d, label: "Log in" }),
|
|
39
|
+
/* @__PURE__ */ l(i, { primary: !0, size: "small", onClick: h, label: "Sign up" })
|
|
40
|
+
] }) })
|
|
41
|
+
] }) });
|
|
42
|
+
export {
|
|
43
|
+
s as default
|
|
44
|
+
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getDefaultExportFromCjs as u } from "../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as f } from "../../_virtual/index.js";
|
|
3
|
+
/*!
|
|
4
|
+
Copyright (c) 2018 Jed Watson.
|
|
5
|
+
Licensed under the MIT License (MIT), see
|
|
6
|
+
http://jedwatson.github.io/classnames
|
|
7
|
+
*/
|
|
8
|
+
(function(r) {
|
|
9
|
+
(function() {
|
|
10
|
+
var l = {}.hasOwnProperty;
|
|
11
|
+
function s() {
|
|
12
|
+
for (var n = [], o = 0; o < arguments.length; o++) {
|
|
13
|
+
var t = arguments[o];
|
|
14
|
+
if (t) {
|
|
15
|
+
var e = typeof t;
|
|
16
|
+
if (e === "string" || e === "number")
|
|
17
|
+
n.push(t);
|
|
18
|
+
else if (Array.isArray(t)) {
|
|
19
|
+
if (t.length) {
|
|
20
|
+
var a = s.apply(null, t);
|
|
21
|
+
a && n.push(a);
|
|
22
|
+
}
|
|
23
|
+
} else if (e === "object") {
|
|
24
|
+
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]")) {
|
|
25
|
+
n.push(t.toString());
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
for (var i in t)
|
|
29
|
+
l.call(t, i) && t[i] && n.push(i);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return n.join(" ");
|
|
34
|
+
}
|
|
35
|
+
r.exports ? (s.default = s, r.exports = s) : window.classNames = s;
|
|
36
|
+
})();
|
|
37
|
+
})(f);
|
|
38
|
+
var c = f.exports;
|
|
39
|
+
const v = /* @__PURE__ */ u(c);
|
|
40
|
+
export {
|
|
41
|
+
v as default
|
|
42
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import n from "react";
|
|
3
|
+
import a from "../components/Header/Header.js";
|
|
4
|
+
const c = () => {
|
|
5
|
+
const [r, t] = n.useState();
|
|
6
|
+
return /* @__PURE__ */ o("article", { children: [
|
|
7
|
+
/* @__PURE__ */ e(
|
|
8
|
+
a,
|
|
9
|
+
{
|
|
10
|
+
user: r,
|
|
11
|
+
onLogin: () => t({ name: "Jane Doe" }),
|
|
12
|
+
onLogout: () => t(void 0),
|
|
13
|
+
onCreateAccount: () => t({ name: "Jane Doe" })
|
|
14
|
+
}
|
|
15
|
+
),
|
|
16
|
+
/* @__PURE__ */ o("section", { className: "storybook-page", children: [
|
|
17
|
+
/* @__PURE__ */ e("h2", { children: "Pages in Storybook" }),
|
|
18
|
+
/* @__PURE__ */ o("p", { children: [
|
|
19
|
+
"We recommend building UIs with a",
|
|
20
|
+
" ",
|
|
21
|
+
/* @__PURE__ */ e("a", { href: "https://componentdriven.org", target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ e("strong", { children: "component-driven" }) }),
|
|
22
|
+
" ",
|
|
23
|
+
"process starting with atomic components and ending with pages."
|
|
24
|
+
] }),
|
|
25
|
+
/* @__PURE__ */ e("p", { children: "Render pages with mock data. This makes it easy to build and review page states without needing to navigate to them in your app. Here are some handy patterns for managing page data in Storybook:" }),
|
|
26
|
+
/* @__PURE__ */ o("ul", { children: [
|
|
27
|
+
/* @__PURE__ */ e("li", { children: 'Use a higher-level connected component. Storybook helps you compose such data from the "args" of child component stories' }),
|
|
28
|
+
/* @__PURE__ */ e("li", { children: "Assemble data in the page component from your services. You can mock these services out using Storybook." })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ o("p", { children: [
|
|
31
|
+
"Get a guided tutorial on component-driven development at",
|
|
32
|
+
" ",
|
|
33
|
+
/* @__PURE__ */ e("a", { href: "https://storybook.js.org/tutorials/", target: "_blank", rel: "noopener noreferrer", children: "Storybook tutorials" }),
|
|
34
|
+
". Read more in the",
|
|
35
|
+
" ",
|
|
36
|
+
/* @__PURE__ */ e("a", { href: "https://storybook.js.org/docs", target: "_blank", rel: "noopener noreferrer", children: "docs" }),
|
|
37
|
+
"."
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ o("div", { className: "tip-wrapper", children: [
|
|
40
|
+
/* @__PURE__ */ e("span", { className: "tip", children: "Tip" }),
|
|
41
|
+
" Adjust the width of the canvas with the",
|
|
42
|
+
" ",
|
|
43
|
+
/* @__PURE__ */ e("svg", { width: "10", height: "10", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e("g", { fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ e(
|
|
44
|
+
"path",
|
|
45
|
+
{
|
|
46
|
+
d: "M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0 01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0 010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z",
|
|
47
|
+
id: "a",
|
|
48
|
+
fill: "#999"
|
|
49
|
+
}
|
|
50
|
+
) }) }),
|
|
51
|
+
"Viewports addon in the toolbar"
|
|
52
|
+
] })
|
|
53
|
+
] })
|
|
54
|
+
] });
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
c as default
|
|
58
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
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;
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const px = "phillips";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phillips/seldon",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"import": "./dist/index.js"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist/**"
|
|
14
|
+
],
|
|
12
15
|
"scripts": {
|
|
13
16
|
"dev": "vite",
|
|
14
17
|
"clean": "rimraf './dist'rimraf",
|
|
@@ -68,11 +71,25 @@
|
|
|
68
71
|
"@semantic-release/commit-analyzer",
|
|
69
72
|
"@semantic-release/release-notes-generator",
|
|
70
73
|
"@semantic-release/npm",
|
|
74
|
+
[
|
|
75
|
+
"@semantic-release/github",
|
|
76
|
+
{
|
|
77
|
+
"assets": [
|
|
78
|
+
"./dist/**",
|
|
79
|
+
"package.json",
|
|
80
|
+
"package-lock.json",
|
|
81
|
+
"README.md",
|
|
82
|
+
"CHANGELOG.md"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
],
|
|
71
86
|
[
|
|
72
87
|
"@semantic-release/git",
|
|
73
88
|
{
|
|
74
89
|
"assets": [
|
|
75
90
|
"package.json",
|
|
91
|
+
"package-lock.json",
|
|
92
|
+
"README.md",
|
|
76
93
|
"CHANGELOG.md"
|
|
77
94
|
],
|
|
78
95
|
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
package/.eslintrc.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
es2020: true
|
|
5
|
-
},
|
|
6
|
-
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react-hooks/recommended', 'plugin:storybook/recommended'],
|
|
7
|
-
parser: '@typescript-eslint/parser',
|
|
8
|
-
parserOptions: {
|
|
9
|
-
ecmaVersion: 'latest',
|
|
10
|
-
sourceType: 'module'
|
|
11
|
-
},
|
|
12
|
-
plugins: ['react-refresh'],
|
|
13
|
-
rules: {
|
|
14
|
-
'react-refresh/only-export-components': 'warn'
|
|
15
|
-
}
|
|
16
|
-
};
|
package/.github/CODEOWNERS
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# This CODEOWNERS file defines individuals or teams that are responsible
|
|
2
|
-
# for code in this repository.
|
|
3
|
-
|
|
4
|
-
#####
|
|
5
|
-
# Code owners are automatically requested for review when someone
|
|
6
|
-
# opens a pull request that modifies code that they own. This repository
|
|
7
|
-
# has enabled the `required reviews` setting, and therefore all PR's require
|
|
8
|
-
# approval from a code owner before the author can merge a pull request.
|
|
9
|
-
# Further documentation: https://help.github.com/articles/about-codeowners/
|
|
10
|
-
|
|
11
|
-
#####
|
|
12
|
-
# These owners are the default owners for everything in the repo.
|
|
13
|
-
# Unless a later match takes precedence, the users below will be
|
|
14
|
-
# requested for review when someone opens a pull request.
|
|
15
|
-
|
|
16
|
-
#####
|
|
17
|
-
# These users own any files in the following directory at the root of
|
|
18
|
-
# the repository and any of its subdirectories.
|
|
19
|
-
|
|
20
|
-
* @davidicus @Sisawat @adietrich3074
|
|
21
|
-
|
|
22
|
-
#####
|
|
23
|
-
# Admin should be notified of changes to build/test/deploy
|
|
24
|
-
|
|
25
|
-
# Core dependencies
|
|
26
|
-
/package-lock.json @davidicus
|
|
27
|
-
/package.json @davidicus
|
|
28
|
-
|
|
29
|
-
# Configuration files
|
|
30
|
-
tsconfig.node.json @davidicus
|
|
31
|
-
vite.config.ts @davidicus
|
|
32
|
-
tsconfig.json @davidicus
|
|
33
|
-
/.nvmrc @davidicus
|
|
34
|
-
|
|
35
|
-
# Deploy configuration
|
|
36
|
-
**/.storybook/ @davidicus
|
|
37
|
-
/.github/ @davidicus
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
# Seldon Code of Conduct
|
|
2
|
-
|
|
3
|
-
## TL;DR
|
|
4
|
-
|
|
5
|
-
- **Be respectful & understanding.** Not all of us will agree all the time, but
|
|
6
|
-
disagreement is no excuse for poor behavior or poor manners. It is important
|
|
7
|
-
that we resolve disagreements and differing views constructively.
|
|
8
|
-
|
|
9
|
-
* **Be welcoming.** We strive to be a community that welcomes and supports
|
|
10
|
-
people of all backgrounds and identities.
|
|
11
|
-
|
|
12
|
-
## Our Pledge
|
|
13
|
-
|
|
14
|
-
In the interest of fostering an open and welcoming environment, we as
|
|
15
|
-
contributors and maintainers pledge to making participation in our project and
|
|
16
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
|
17
|
-
size, disability, ethnicity, sex characteristics, gender identity and
|
|
18
|
-
expression, level of experience, education, socio-economic status, nationality,
|
|
19
|
-
personal appearance, race, religion, or sexual identity and orientation.
|
|
20
|
-
|
|
21
|
-
## Our Standards
|
|
22
|
-
|
|
23
|
-
Examples of behavior that contributes to creating a positive environment
|
|
24
|
-
include:
|
|
25
|
-
|
|
26
|
-
- Using welcoming and inclusive language
|
|
27
|
-
- Being respectful of differing viewpoints and experiences
|
|
28
|
-
- Gracefully accepting constructive criticism
|
|
29
|
-
- Focusing on what is best for the community
|
|
30
|
-
- Showing empathy towards other community members
|
|
31
|
-
|
|
32
|
-
Examples of unacceptable behavior by participants include:
|
|
33
|
-
|
|
34
|
-
- The use of sexualized language or imagery and unwelcome sexual attention or
|
|
35
|
-
advances
|
|
36
|
-
- Trolling, insulting/derogatory comments, and personal or political attacks
|
|
37
|
-
- Degrading, demeaning or disrespectful comments
|
|
38
|
-
- Public or private harassment
|
|
39
|
-
- Publishing others' private information, such as a physical or electronic
|
|
40
|
-
address, without explicit permission
|
|
41
|
-
- Other conduct which could reasonably be considered inappropriate in a
|
|
42
|
-
professional setting
|
|
43
|
-
|
|
44
|
-
## Our Responsibilities
|
|
45
|
-
|
|
46
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
|
47
|
-
behavior and are expected to take appropriate and fair corrective action in
|
|
48
|
-
response to any instances of unacceptable behavior.
|
|
49
|
-
|
|
50
|
-
Project maintainers have the right and responsibility to remove, edit, or reject
|
|
51
|
-
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
52
|
-
not aligned to this Code of Conduct, or to ban temporarily or permanently any
|
|
53
|
-
contributor for other behaviors that they deem inappropriate, threatening,
|
|
54
|
-
offensive, or harmful.
|
|
55
|
-
|
|
56
|
-
## Scope
|
|
57
|
-
|
|
58
|
-
This Code of Conduct applies within all project spaces, including _but not
|
|
59
|
-
limited to_ GitHub, e-mail and Slack. It also applies when an individual is
|
|
60
|
-
representing the project or its community in public spaces. Examples of
|
|
61
|
-
representing a project or community include using an official project e-mail
|
|
62
|
-
address, posting via an official social media account, or acting as an appointed
|
|
63
|
-
representative at an online or offline event. Representation of a project may be
|
|
64
|
-
further defined and clarified by project maintainers.
|
|
65
|
-
|
|
66
|
-
## Enforcement
|
|
67
|
-
|
|
68
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
69
|
-
reported by contacting maintainers at dconner@phillips.com. All complaints will be reviewed and investigated and will
|
|
70
|
-
result in a response that is deemed necessary and appropriate to the
|
|
71
|
-
circumstances. The project team is obligated to maintain confidentiality with
|
|
72
|
-
regard to the reporter of an incident. Further details of specific enforcement
|
|
73
|
-
policies may be posted separately.
|
|
74
|
-
|
|
75
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
76
|
-
faith may face temporary or permanent repercussions as determined by other
|
|
77
|
-
members of the project's leadership.
|
|
78
|
-
|
|
79
|
-
## Attribution
|
|
80
|
-
|
|
81
|
-
This Code of Conduct is adapted from
|
|
82
|
-
[Contributor Covenant](https://www.contributor-covenant.org), version 1.4,
|
|
83
|
-
available
|
|
84
|
-
[here](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html).
|
|
85
|
-
For answers to common questions about this code of conduct, see the Contributor
|
|
86
|
-
Covenant [FAQ](https://www.contributor-covenant.org/faq).
|
|
87
|
-
|
|
88
|
-
<hr>
|
|
89
|
-
|
|
90
|
-
If you have suggestions to improve this Code of Conduct, please submit an issue
|
|
91
|
-
or PR.
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "Bug report \U0001F41B"
|
|
3
|
-
about: Create a report to help us improve
|
|
4
|
-
title: '[ComponentName] bug_title'
|
|
5
|
-
labels: 'bug'
|
|
6
|
-
assignees: ''
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
### Describe the bug
|
|
10
|
-
|
|
11
|
-
A clear and concise description of what the bug is.
|
|
12
|
-
|
|
13
|
-
### To Reproduce
|
|
14
|
-
|
|
15
|
-
Steps to reproduce the behavior:
|
|
16
|
-
|
|
17
|
-
1. Go to '...'
|
|
18
|
-
2. Click on '....'
|
|
19
|
-
3. Scroll down to '....'
|
|
20
|
-
4. See error
|
|
21
|
-
|
|
22
|
-
### Expected behavior
|
|
23
|
-
|
|
24
|
-
A clear and concise description of what you expected to happen.
|
|
25
|
-
|
|
26
|
-
### Environment/versions:
|
|
27
|
-
|
|
28
|
-
- OS: [e.g. MacOS, Windows]
|
|
29
|
-
- Browser: [e.g. chrome, safari]
|
|
30
|
-
- `@phillips/seldon` version: [e.g. `v2.60.0`]
|
|
31
|
-
|
|
32
|
-
### Additional context
|
|
33
|
-
|
|
34
|
-
If applicable, add screenshots to help explain your problem.
|
|
35
|
-
|
|
36
|
-
Add any other context about the problem here.
|
|
37
|
-
|
|
38
|
-
### Specific timeline issues / requests
|
|
39
|
-
|
|
40
|
-
Do you want this work within a specific time period? Is it related to an
|
|
41
|
-
upcoming release?
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
Closes #
|
|
2
|
-
|
|
3
|
-
**Summary**
|
|
4
|
-
|
|
5
|
-
- summary_here
|
|
6
|
-
|
|
7
|
-
**Change List (describe the changes made to the files)**
|
|
8
|
-
|
|
9
|
-
- items_here
|
|
10
|
-
|
|
11
|
-
**Acceptance Test (how to verify the PR)**
|
|
12
|
-
|
|
13
|
-
- tests here
|
|
14
|
-
|
|
15
|
-
**Regression Test (how to make sure this PR doesn't break old functionality)**
|
|
16
|
-
|
|
17
|
-
- tests here
|
|
18
|
-
|
|
19
|
-
<!-- For reviewers: do not remove -->
|
|
20
|
-
|
|
21
|
-
**Things to look for during review**
|
|
22
|
-
|
|
23
|
-
- [ ] Make sure all references to `phillips` class prefix is using the prefix variable
|
|
24
|
-
- [ ] All major areas have a `data-testid` attribute.
|
|
25
|
-
- [ ] All strings should be translatable.
|
|
26
|
-
- [ ] Unit test should be written and should have a coverage of 90% or higher in all areas.
|
|
27
|
-
- [ ] Changes or new components should either write new or update existing documentation.
|
|
28
|
-
- [ ] PR should link and close out an existing issue
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
name: Build and test
|
|
2
|
-
|
|
3
|
-
on: [push, pull_request]
|
|
4
|
-
|
|
5
|
-
concurrency:
|
|
6
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
|
7
|
-
cancel-in-progress: true
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
build:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
|
|
13
|
-
steps:
|
|
14
|
-
- name: Checkout code
|
|
15
|
-
uses: actions/checkout@v3
|
|
16
|
-
|
|
17
|
-
- name: Setup Node.js
|
|
18
|
-
uses: actions/setup-node@v3
|
|
19
|
-
with:
|
|
20
|
-
node-version: '18.x'
|
|
21
|
-
cache: 'npm'
|
|
22
|
-
|
|
23
|
-
- name: Install dependencies
|
|
24
|
-
run: npm ci
|
|
25
|
-
|
|
26
|
-
- run: npm run build
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
name: Release
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches:
|
|
5
|
-
- main
|
|
6
|
-
|
|
7
|
-
permissions:
|
|
8
|
-
contents: read # for checkout
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
release:
|
|
12
|
-
name: Release
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
permissions:
|
|
15
|
-
contents: write # to be able to publish a GitHub release
|
|
16
|
-
issues: write # to be able to comment on released issues
|
|
17
|
-
pull-requests: write # to be able to comment on released pull requests
|
|
18
|
-
id-token: write # to enable use of OIDC for npm provenance
|
|
19
|
-
steps:
|
|
20
|
-
- name: Checkout
|
|
21
|
-
uses: actions/checkout@v3
|
|
22
|
-
with:
|
|
23
|
-
fetch-depth: 0
|
|
24
|
-
persist-credentials: false
|
|
25
|
-
|
|
26
|
-
- name: Setup Node.js
|
|
27
|
-
uses: actions/setup-node@v3
|
|
28
|
-
with:
|
|
29
|
-
node-version: '18.x'
|
|
30
|
-
cache: 'npm'
|
|
31
|
-
|
|
32
|
-
- name: Install dependencies
|
|
33
|
-
run: npm ci
|
|
34
|
-
|
|
35
|
-
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
|
|
36
|
-
run: npm audit signatures
|
|
37
|
-
|
|
38
|
-
- name: Build
|
|
39
|
-
run: npm run build
|
|
40
|
-
|
|
41
|
-
- name: publish
|
|
42
|
-
env:
|
|
43
|
-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
44
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
45
|
-
run: npx semantic-release
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<svg version="1.1" id="Layer_1"
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
-
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="700px" height="88px" viewBox="0 0 700 88" enable-background="new 0 0 700 88" xml:space="preserve">
|
|
4
|
-
<path d="M45.248,45.622H18.582V20.507h26.666c10.025,0,15.606,4.651,15.606,12.506C60.854,40.868,55.48,45.622,45.248,45.622z
|
|
5
|
-
M46.591,9.344H7.006v70.903h11.576V56.785h28.01c16.537,0,26.045-9.923,26.045-23.772C72.637,19.267,63.335,9.344,46.591,9.344z
|
|
6
|
-
M568.436,45.622h-26.665V20.507h26.665c10.026,0,15.607,4.651,15.607,12.506C584.043,40.868,578.668,45.622,568.436,45.622z
|
|
7
|
-
M569.779,9.344h-39.585v70.903h11.576V56.785h28.009c16.537,0,26.046-9.923,26.046-23.772
|
|
8
|
-
C595.825,19.267,586.523,9.344,569.779,9.344z M389.113,9.344h-11.576v70.903h58.707V69.084h-47.131V9.344z M630.729,62.725
|
|
9
|
-
l-3.905,10.449c9.096,5.169,24.607,8.52,35.562,8.52c20.258,0,32.971-7.958,32.971-21.911c0-16.434-15.606-19.328-32.557-20.981
|
|
10
|
-
c-10.854-1.034-22.223-1.86-22.223-9.716c0-6.098,5.479-10.025,20.052-10.025c8.682,0,18.707,1.964,27.079,5.479l3.617-10.543
|
|
11
|
-
c-9.302-4.03-20.567-6.098-30.49-6.098c-20.464,0-32.04,8.062-32.04,21.188c0,16.537,15.813,19.432,32.558,20.981
|
|
12
|
-
c10.853,1.033,22.118,1.964,22.118,9.716c0,6.305-5.685,10.749-20.981,10.749C653.085,70.531,640.093,67.718,630.729,62.725z
|
|
13
|
-
M470.455,80.247h11.575V9.344h-11.575V80.247z M119.25,9.344h-11.369v70.903h11.266V54.614h46.406v25.633h11.37V9.344h-11.37
|
|
14
|
-
v34.418h-46.406L119.25,9.344z M224.984,80.247h11.576V9.344h-11.576V80.247z M296.196,9.344H284.62v70.903h58.707V69.084h-47.13
|
|
15
|
-
V9.344z"/>
|
|
16
|
-
</svg>
|
package/.storybook/main.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { StorybookConfig } from "@storybook/react-vite";
|
|
2
|
-
const config: StorybookConfig = {
|
|
3
|
-
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
|
|
4
|
-
addons: [
|
|
5
|
-
"@storybook/addon-links",
|
|
6
|
-
"@storybook/addon-essentials",
|
|
7
|
-
"@storybook/addon-interactions",
|
|
8
|
-
"@storybook/addon-styling",
|
|
9
|
-
],
|
|
10
|
-
framework: {
|
|
11
|
-
name: "@storybook/react-vite",
|
|
12
|
-
options: {},
|
|
13
|
-
},
|
|
14
|
-
docs: {
|
|
15
|
-
autodocs: "tag",
|
|
16
|
-
defaultName: "Overview"
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
export default config;
|