@appquality/unguess-design-system 0.3.0 → 0.3.3
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/CHANGELOG.md +36 -0
- package/build/index.js +2 -1
- package/build/stories/theme/index.d.ts +1 -1
- package/package.json +1 -1
- package/.storybook/main.js +0 -16
- package/.storybook/preview-head.html +0 -5
- package/.storybook/preview.js +0 -24
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/src/index.tsx +0 -5
- package/src/stories/button/index.stories.tsx +0 -42
- package/src/stories/button/index.tsx +0 -9
- package/src/stories/shared/globalStyle.ts +0 -11
- package/src/stories/theme/index.ts +0 -16
- package/tsconfig.json +0 -28
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
# v0.3.3 (Thu Mar 03 2022)
|
|
2
|
+
|
|
3
|
+
#### ⚠️ Pushed to `master`
|
|
4
|
+
|
|
5
|
+
- update .npmignore ([@cannarocks](https://github.com/cannarocks))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.3.2 (Thu Mar 03 2022)
|
|
14
|
+
|
|
15
|
+
#### ⚠️ Pushed to `master`
|
|
16
|
+
|
|
17
|
+
- chore: add .npmignore ([@cannarocks](https://github.com/cannarocks))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v0.3.1 (Thu Mar 03 2022)
|
|
26
|
+
|
|
27
|
+
#### ⚠️ Pushed to `master`
|
|
28
|
+
|
|
29
|
+
- feat: change theme export ([@cannarocks](https://github.com/cannarocks))
|
|
30
|
+
|
|
31
|
+
#### Authors: 1
|
|
32
|
+
|
|
33
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
1
37
|
# v0.2.0 (Thu Mar 03 2022)
|
|
2
38
|
|
|
3
39
|
#### 🚀 Enhancement
|
package/build/index.js
CHANGED
|
@@ -46,6 +46,7 @@ var DressBerryButton = styled__default["default"](reactButtons.Button)(templateO
|
|
|
46
46
|
var Button = function (props) { return jsxRuntime.jsx(DressBerryButton, __assign({}, props)); };
|
|
47
47
|
var templateObject_1;
|
|
48
48
|
|
|
49
|
-
__assign(__assign({}, reactTheming.DEFAULT_THEME), { colors: __assign(__assign({}, reactTheming.DEFAULT_THEME.colors), { primaryHue: "pink", foreground: "red" }), fonts: __assign(__assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }) });
|
|
49
|
+
var theme = __assign(__assign({}, reactTheming.DEFAULT_THEME), { colors: __assign(__assign({}, reactTheming.DEFAULT_THEME.colors), { primaryHue: "pink", foreground: "red" }), fonts: __assign(__assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }) });
|
|
50
50
|
|
|
51
51
|
exports.Button = Button;
|
|
52
|
+
exports.theme = theme;
|
package/package.json
CHANGED
package/.storybook/main.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"stories": [
|
|
3
|
-
"../src/**/*.stories.mdx",
|
|
4
|
-
"../src/**/*.stories.@(js|jsx|ts|tsx)"
|
|
5
|
-
],
|
|
6
|
-
"addons": [
|
|
7
|
-
"@storybook/addon-links",
|
|
8
|
-
"@storybook/addon-essentials",
|
|
9
|
-
"@storybook/addon-interactions",
|
|
10
|
-
"@storybook/preset-create-react-app"
|
|
11
|
-
],
|
|
12
|
-
"framework": "@storybook/react",
|
|
13
|
-
"core": {
|
|
14
|
-
"builder": "webpack5"
|
|
15
|
-
}
|
|
16
|
-
}
|
package/.storybook/preview.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ThemeProvider } from "@zendeskgarden/react-theming";
|
|
2
|
-
import { Chrome } from '@zendeskgarden/react-chrome';
|
|
3
|
-
import GlobalStyle from "../src/stories/shared/globalStyle";
|
|
4
|
-
import theme from '../src/stories/theme';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export const decorators = [
|
|
8
|
-
(Story) => (
|
|
9
|
-
<ThemeProvider theme={theme}>
|
|
10
|
-
<GlobalStyle />
|
|
11
|
-
<Story />
|
|
12
|
-
</ThemeProvider>
|
|
13
|
-
),
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
export const parameters = {
|
|
17
|
-
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
18
|
-
controls: {
|
|
19
|
-
matchers: {
|
|
20
|
-
color: /(background|color)$/i,
|
|
21
|
-
date: /Date$/,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
}
|
package/public/favicon.ico
DELETED
|
Binary file
|
package/public/index.html
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<meta name="theme-color" content="#000000" />
|
|
8
|
-
<meta
|
|
9
|
-
name="description"
|
|
10
|
-
content="Web site created using create-react-app"
|
|
11
|
-
/>
|
|
12
|
-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
|
13
|
-
<!--
|
|
14
|
-
manifest.json provides metadata used when your web app is installed on a
|
|
15
|
-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
16
|
-
-->
|
|
17
|
-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
|
18
|
-
<!--
|
|
19
|
-
Notice the use of %PUBLIC_URL% in the tags above.
|
|
20
|
-
It will be replaced with the URL of the `public` folder during the build.
|
|
21
|
-
Only files inside the `public` folder can be referenced from the HTML.
|
|
22
|
-
|
|
23
|
-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
24
|
-
work correctly both with client-side routing and a non-root public URL.
|
|
25
|
-
Learn how to configure a non-root public URL by running `npm run build`.
|
|
26
|
-
-->
|
|
27
|
-
<title>React App</title>
|
|
28
|
-
</head>
|
|
29
|
-
<body>
|
|
30
|
-
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
31
|
-
<div id="root"></div>
|
|
32
|
-
<!--
|
|
33
|
-
This HTML file is a template.
|
|
34
|
-
If you open it directly in the browser, you will see an empty page.
|
|
35
|
-
|
|
36
|
-
You can add webfonts, meta tags, or analytics to this file.
|
|
37
|
-
The build step will place the bundled scripts into the <body> tag.
|
|
38
|
-
|
|
39
|
-
To begin the development, run `npm start` or `yarn start`.
|
|
40
|
-
To create a production bundle, use `npm run build` or `yarn build`.
|
|
41
|
-
-->
|
|
42
|
-
</body>
|
|
43
|
-
</html>
|
package/public/logo192.png
DELETED
|
Binary file
|
package/public/logo512.png
DELETED
|
Binary file
|
package/public/manifest.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"short_name": "React App",
|
|
3
|
-
"name": "Create React App Sample",
|
|
4
|
-
"icons": [
|
|
5
|
-
{
|
|
6
|
-
"src": "favicon.ico",
|
|
7
|
-
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
-
"type": "image/x-icon"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "logo192.png",
|
|
12
|
-
"type": "image/png",
|
|
13
|
-
"sizes": "192x192"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"src": "logo512.png",
|
|
17
|
-
"type": "image/png",
|
|
18
|
-
"sizes": "512x512"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"start_url": ".",
|
|
22
|
-
"display": "standalone",
|
|
23
|
-
"theme_color": "#000000",
|
|
24
|
-
"background_color": "#ffffff"
|
|
25
|
-
}
|
package/public/robots.txt
DELETED
package/src/index.tsx
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ComponentMeta, Story } from "@storybook/react";
|
|
2
|
-
import { IButtonProps } from "@zendeskgarden/react-buttons";
|
|
3
|
-
import { Button } from ".";
|
|
4
|
-
|
|
5
|
-
interface IArgs extends IButtonProps {
|
|
6
|
-
hasStartIcon?: boolean;
|
|
7
|
-
hasEndIcon?: boolean;
|
|
8
|
-
isStartIconRotated?: boolean;
|
|
9
|
-
isEndIconRotated?: boolean;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const defaultArgs: IArgs = {
|
|
13
|
-
isBasic: false,
|
|
14
|
-
isPrimary: false,
|
|
15
|
-
isLink: false,
|
|
16
|
-
isPill: false,
|
|
17
|
-
size: "medium",
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const Template: Story<IArgs> = (args) => <Button {...args} />;
|
|
21
|
-
|
|
22
|
-
export const Basic = Template.bind({});
|
|
23
|
-
Basic.args = {
|
|
24
|
-
...defaultArgs,
|
|
25
|
-
isBasic: true,
|
|
26
|
-
children: "button",
|
|
27
|
-
onClick: () => alert("clicked!"),
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export const Primary = Template.bind({});
|
|
31
|
-
Primary.args = {
|
|
32
|
-
...defaultArgs,
|
|
33
|
-
isPrimary: true,
|
|
34
|
-
children: "button",
|
|
35
|
-
onClick: () => alert("clicked!"),
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export default {
|
|
40
|
-
title: "Button",
|
|
41
|
-
component: Button,
|
|
42
|
-
} as ComponentMeta<typeof Button>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Button as ZendeskButton, IButtonProps } from '@zendeskgarden/react-buttons';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
const DressBerryButton = styled(ZendeskButton)`
|
|
5
|
-
padding: 0.5rem 2rem;
|
|
6
|
-
`;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export const Button = (props: IButtonProps) => <DressBerryButton {...props} />;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createGlobalStyle } from "styled-components";
|
|
2
|
-
import theme from "../theme";
|
|
3
|
-
|
|
4
|
-
const GlobalStyle = createGlobalStyle`
|
|
5
|
-
body {
|
|
6
|
-
font-family: ${theme.fonts.system};
|
|
7
|
-
-webkit-font-smoothing: antialiased;
|
|
8
|
-
-moz-osx-font-smoothing: grayscale;
|
|
9
|
-
}`;
|
|
10
|
-
|
|
11
|
-
export default GlobalStyle;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DEFAULT_THEME } from "@zendeskgarden/react-theming";
|
|
2
|
-
|
|
3
|
-
const theme = {
|
|
4
|
-
...DEFAULT_THEME,
|
|
5
|
-
colors: {
|
|
6
|
-
...DEFAULT_THEME.colors,
|
|
7
|
-
primaryHue: "pink",
|
|
8
|
-
foreground: "red",
|
|
9
|
-
},
|
|
10
|
-
fonts: {
|
|
11
|
-
...DEFAULT_THEME.fonts,
|
|
12
|
-
system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif',
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default theme;
|
package/tsconfig.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es5",
|
|
4
|
-
"lib": [
|
|
5
|
-
"dom",
|
|
6
|
-
"dom.iterable",
|
|
7
|
-
"esnext"
|
|
8
|
-
],
|
|
9
|
-
"allowJs": true,
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"allowSyntheticDefaultImports": true,
|
|
13
|
-
"strict": true,
|
|
14
|
-
"forceConsistentCasingInFileNames": true,
|
|
15
|
-
"noFallthroughCasesInSwitch": true,
|
|
16
|
-
"module": "esnext",
|
|
17
|
-
"moduleResolution": "node",
|
|
18
|
-
"resolveJsonModule": true,
|
|
19
|
-
"isolatedModules": true,
|
|
20
|
-
"noEmit": true,
|
|
21
|
-
"jsx": "react-jsx",
|
|
22
|
-
"declaration": true,
|
|
23
|
-
"outDir": "./build",
|
|
24
|
-
},
|
|
25
|
-
"include": [
|
|
26
|
-
"src"
|
|
27
|
-
]
|
|
28
|
-
}
|