@consumidor-positivo/aurora 0.0.1 → 0.0.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.
Files changed (71) hide show
  1. package/dist/Button.js +8 -0
  2. package/dist/Button.js.map +1 -0
  3. package/dist/Novo.js +8 -0
  4. package/dist/Novo.js.map +1 -0
  5. package/dist/Teste.js +12 -0
  6. package/dist/Teste.js.map +1 -0
  7. package/dist/assets/Button.css +1 -0
  8. package/dist/assets/Novo.css +1 -0
  9. package/dist/assets/Teste.css +1 -0
  10. package/dist/components/Button/button.stories.d.ts +9 -0
  11. package/dist/components/Button/index.d.ts +2 -0
  12. package/dist/components/Novo/index.d.ts +2 -0
  13. package/dist/components/Teste/index.d.ts +1 -0
  14. package/dist/main.d.ts +3 -3
  15. package/dist/main.js +9 -0
  16. package/dist/main.js.map +1 -0
  17. package/package.json +17 -5
  18. package/.cache/storybook/default/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-3920d97c51b8ad2521918fb1205babd22b0ed3d7 +0 -1
  19. package/.cache/storybook/default/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-43fdebe5fc35e4e9fabee9a83c7faea931b05ea0 +0 -1
  20. package/.cache/storybook/default/dev-server/a5a8bf6e622aef57065c6498611f40c911543d7d-f086b87885981c04ce7a583ff90a49313de83de7 +0 -1
  21. package/.eslintrc.cjs +0 -19
  22. package/.husky/pre-commit +0 -2
  23. package/.prettierignore +0 -2
  24. package/.prettierrc +0 -5
  25. package/.storybook/main.ts +0 -17
  26. package/.storybook/preview.ts +0 -14
  27. package/dist/aurora.js +0 -51
  28. package/dist/style.css +0 -1
  29. package/index.html +0 -18
  30. package/lib/main.ts +0 -3
  31. package/public/vite.svg +0 -1
  32. package/src/App.tsx +0 -12
  33. package/src/assets/react.svg +0 -1
  34. package/src/core/tokens/colors.scss +0 -71
  35. package/src/core/tokens/elements.scss +0 -26
  36. package/src/core/tokens/fonts.scss +0 -22
  37. package/src/core/tokens/layout.scss +0 -48
  38. package/src/main.tsx +0 -9
  39. package/src/stories/Button.stories.ts +0 -52
  40. package/src/stories/Button.tsx +0 -50
  41. package/src/stories/Configure.mdx +0 -368
  42. package/src/stories/Header.stories.ts +0 -33
  43. package/src/stories/Header.tsx +0 -69
  44. package/src/stories/Page.stories.ts +0 -32
  45. package/src/stories/Page.tsx +0 -87
  46. package/src/stories/assets/accessibility.png +0 -0
  47. package/src/stories/assets/accessibility.svg +0 -1
  48. package/src/stories/assets/addon-library.png +0 -0
  49. package/src/stories/assets/assets.png +0 -0
  50. package/src/stories/assets/avif-test-image.avif +0 -0
  51. package/src/stories/assets/context.png +0 -0
  52. package/src/stories/assets/discord.svg +0 -1
  53. package/src/stories/assets/docs.png +0 -0
  54. package/src/stories/assets/figma-plugin.png +0 -0
  55. package/src/stories/assets/github.svg +0 -1
  56. package/src/stories/assets/share.png +0 -0
  57. package/src/stories/assets/styling.png +0 -0
  58. package/src/stories/assets/testing.png +0 -0
  59. package/src/stories/assets/theming.png +0 -0
  60. package/src/stories/assets/tutorials.svg +0 -1
  61. package/src/stories/assets/youtube.svg +0 -1
  62. package/src/stories/button.css +0 -30
  63. package/src/stories/header.css +0 -32
  64. package/src/stories/page.css +0 -69
  65. package/src/styles.scss +0 -11
  66. package/src/vite-env.d.ts +0 -1
  67. package/tsconfig-build.json +0 -25
  68. package/tsconfig.app.json +0 -27
  69. package/tsconfig.json +0 -16
  70. package/tsconfig.node.json +0 -11
  71. package/vite.config.ts +0 -40
package/dist/Button.js ADDED
@@ -0,0 +1,8 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import './assets/Button.css';function Button() {
3
+ return /* @__PURE__ */ jsx("div", { className: "button", children: "My Button Test" });
4
+ }
5
+ export {
6
+ Button
7
+ };
8
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sources":["../lib/components/Button/index.tsx"],"sourcesContent":["import './styles.scss'\n\nexport function Button() {\n return <div className=\"button\">My Button Test</div>\n}\n"],"names":[],"mappings":";AAEO,SAAS,SAAS;AACvB,SAAQ,oBAAA,OAAA,EAAI,WAAU,UAAS,UAAc,iBAAA,CAAA;AAC/C;"}
package/dist/Novo.js ADDED
@@ -0,0 +1,8 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import './assets/Novo.css';function Novo() {
3
+ return /* @__PURE__ */ jsx("div", { className: "novo", children: "Novo" });
4
+ }
5
+ export {
6
+ Novo
7
+ };
8
+ //# sourceMappingURL=Novo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Novo.js","sources":["../lib/components/Novo/index.tsx"],"sourcesContent":["import './styles.scss'\n\nexport function Novo() {\n return <div className=\"novo\">Novo</div>\n}\n"],"names":[],"mappings":";AAEO,SAAS,OAAO;AACrB,SAAQ,oBAAA,OAAA,EAAI,WAAU,QAAO,UAAI,OAAA,CAAA;AACnC;"}
package/dist/Teste.js ADDED
@@ -0,0 +1,12 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import './assets/Teste.css';const teste = "_teste_102vh_11";
3
+ const styles = {
4
+ teste
5
+ };
6
+ function Teste() {
7
+ return /* @__PURE__ */ jsx("div", { className: styles.teste, children: "My Button Test" });
8
+ }
9
+ export {
10
+ Teste
11
+ };
12
+ //# sourceMappingURL=Teste.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Teste.js","sources":["../lib/components/Teste/index.tsx"],"sourcesContent":["import styles from './styles.module.scss'\n\nexport function Teste() {\n return <div className={styles.teste}>My Button Test</div>\n}\n"],"names":[],"mappings":";;;;;AAEO,SAAS,QAAQ;AACtB,SAAQ,oBAAA,OAAA,EAAI,WAAW,OAAO,OAAO,UAAc,iBAAA,CAAA;AACrD;"}
@@ -0,0 +1 @@
1
+ .button{border:1px solid gray}
@@ -0,0 +1 @@
1
+ .novo{border:1px solid blue}
@@ -0,0 +1 @@
1
+ ._teste_102vh_11{border:2px solid red}
@@ -0,0 +1,9 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Button } from './index';
3
+
4
+ declare const _default: {
5
+ title: string;
6
+ component: typeof Button;
7
+ };
8
+ export default _default;
9
+ export declare const Default: StoryObj;
@@ -0,0 +1,2 @@
1
+
2
+ export declare function Button(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+
2
+ export declare function Novo(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function Teste(): import("react/jsx-runtime").JSX.Element;
package/dist/main.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { Button } from '../src/stories/Button';
2
-
3
- export { Button };
1
+ export { Button } from './components/Button';
2
+ export { Teste } from './components/Teste';
3
+ export { Novo } from './components/Novo';
package/dist/main.js ADDED
@@ -0,0 +1,9 @@
1
+ import { Button } from "./Button.js";
2
+ import { Teste } from "./Teste.js";
3
+ import { Novo } from "./Novo.js";
4
+ export {
5
+ Button,
6
+ Novo,
7
+ Teste
8
+ };
9
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
package/package.json CHANGED
@@ -1,27 +1,36 @@
1
1
  {
2
2
  "name": "@consumidor-positivo/aurora",
3
3
  "private": false,
4
- "version": "0.0.1",
4
+ "version": "0.0.4",
5
5
  "type": "module",
6
6
  "main": "dist/aurora.js",
7
+ "modules": "dist/aurora.js",
7
8
  "types": "dist/main.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
8
12
  "scripts": {
9
13
  "dev": "vite",
10
- "build": "tsc --p ./tsconfig-build.json && vite build",
14
+ "build": "tsc && vite build",
11
15
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
12
16
  "preview": "vite preview",
13
17
  "storybook": "storybook dev -p 6006",
14
18
  "build-storybook": "storybook build",
15
19
  "prepare": "husky"
16
20
  },
21
+ "peerDependencies": {
22
+ "react": ">=18.3.1",
23
+ "react-dom": ">=18.3.1"
24
+ },
17
25
  "dependencies": {
18
26
  "dotenv": "16.4.5",
19
- "react": "18.3.1",
20
- "react-dom": "18.3.1",
27
+ "react": ">=18.3.1",
28
+ "react-dom": ">=18.3.1",
21
29
  "vite-plugin-dts": "4.0.0-beta.1"
22
30
  },
23
31
  "devDependencies": {
24
32
  "@chromatic-com/storybook": "1.6.1",
33
+ "@rollup/plugin-terser": "0.4.4",
25
34
  "@storybook/addon-essentials": "8.2.4",
26
35
  "@storybook/addon-interactions": "8.2.4",
27
36
  "@storybook/addon-links": "8.2.4",
@@ -40,11 +49,14 @@
40
49
  "eslint-plugin-react-hooks": "4.6.2",
41
50
  "eslint-plugin-react-refresh": "0.4.7",
42
51
  "eslint-plugin-storybook": "0.8.0",
52
+ "glob": "7.2.3",
43
53
  "husky": "9.1.1",
44
54
  "prettier": "3.3.3",
55
+ "rollup-plugin-css-only": "4.5.2",
45
56
  "sass": "1.77.8",
46
57
  "storybook": "8.2.4",
47
58
  "typescript": "5.2.2",
48
- "vite": "5.3.4"
59
+ "vite": "5.3.4",
60
+ "vite-plugin-lib-inject-css": "2.1.1"
49
61
  }
50
62
  }
@@ -1 +0,0 @@
1
- {"value":{"id":"Dzl80OYbhX9yErYVK7EHF","lastUsed":1721336926248},"type":"Object","created":"2024-07-18T21:08:46.248Z","ttl":0}
@@ -1 +0,0 @@
1
- {"value":1721336835472,"type":"Number","created":"2024-07-18T21:07:15.474Z","ttl":0}
@@ -1 +0,0 @@
1
- {"value":{"scaffolded-empty":{"body":{"eventType":"scaffolded-empty","eventId":"g703P6FST0A3glzySeDjF","sessionId":"Dzl80OYbhX9yErYVK7EHF","payload":{"packageManager":"npm","projectType":"react-vite-ts","metadataErrorMessage":"No configuration files have been found in your configDir: .storybook.\nStorybook needs a \"main.js\" file, please add it.\n\nYou can pass a --config-dir flag to tell Storybook, where your main.js file is located at).\n\nMore info: https://storybook.js.org/docs/configure\n"},"context":{"inCI":false,"isTTY":true,"platform":"macOS","nodeVersion":"18.17.1","cliVersion":"8.2.4"}},"timestamp":1721336835941},"init":{"body":{"eventType":"init","eventId":"vGQAnUqczeFaGNSrYWKBc","sessionId":"Dzl80OYbhX9yErYVK7EHF","metadata":{"generatedAt":1721336924390,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{},"packageManager":{"type":"npm","version":"9.6.7"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.2.4","storybookVersionSpecifier":"^8.2.4","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"8.2.4"},"@storybook/react":{"version":"8.2.4"},"@storybook/react-vite":{"version":"8.2.4"},"@storybook/test":{"version":"8.2.4"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.2.4"}},"addons":{"@storybook/addon-onboarding":{"version":"8.2.4"},"@storybook/addon-links":{"version":"8.2.4"},"@storybook/addon-essentials":{"version":"8.2.4"},"@chromatic-com/storybook":{"version":"1.6.1"},"@storybook/addon-interactions":{"version":"8.2.4"}}},"payload":{"projectType":"REACT"},"context":{"inCI":false,"isTTY":true,"platform":"macOS","nodeVersion":"18.17.1","cliVersion":"8.2.4"}},"timestamp":1721336926256}},"type":"Object","created":"2024-07-18T21:08:46.256Z","ttl":0}
package/.eslintrc.cjs DELETED
@@ -1,19 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: { browser: true, es2020: true },
4
- extends: [
5
- 'eslint:recommended',
6
- 'plugin:@typescript-eslint/recommended',
7
- 'plugin:react-hooks/recommended',
8
- 'plugin:storybook/recommended',
9
- ],
10
- ignorePatterns: ['dist', '.eslintrc.cjs'],
11
- parser: '@typescript-eslint/parser',
12
- plugins: ['react-refresh'],
13
- rules: {
14
- 'react-refresh/only-export-components': [
15
- 'warn',
16
- { allowConstantExport: true },
17
- ],
18
- },
19
- }
package/.husky/pre-commit DELETED
@@ -1,2 +0,0 @@
1
- npx prettier . --write
2
- git add .
package/.prettierignore DELETED
@@ -1,2 +0,0 @@
1
- # Add files here to ignore them from prettier formatting
2
- /public
package/.prettierrc DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "singleQuote": true,
3
- "semi": false,
4
- "bracketSameLine": true
5
- }
@@ -1,17 +0,0 @@
1
- import type { StorybookConfig } from '@storybook/react-vite'
2
-
3
- const config: StorybookConfig = {
4
- stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
5
- addons: [
6
- '@storybook/addon-onboarding',
7
- '@storybook/addon-links',
8
- '@storybook/addon-essentials',
9
- '@chromatic-com/storybook',
10
- '@storybook/addon-interactions',
11
- ],
12
- framework: {
13
- name: '@storybook/react-vite',
14
- options: {},
15
- },
16
- }
17
- export default config
@@ -1,14 +0,0 @@
1
- import type { Preview } from '@storybook/react'
2
-
3
- const preview: Preview = {
4
- parameters: {
5
- controls: {
6
- matchers: {
7
- color: /(background|color)$/i,
8
- date: /Date$/i,
9
- },
10
- },
11
- },
12
- }
13
-
14
- export default preview
package/dist/aurora.js DELETED
@@ -1,51 +0,0 @@
1
- var k = Object.defineProperty, l = Object.defineProperties;
2
- var p = Object.getOwnPropertyDescriptors;
3
- var s = Object.getOwnPropertySymbols;
4
- var u = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
5
- var e = (o, t, n) => t in o ? k(o, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[t] = n, m = (o, t) => {
6
- for (var n in t || (t = {}))
7
- u.call(t, n) && e(o, n, t[n]);
8
- if (s)
9
- for (var n of s(t))
10
- y.call(t, n) && e(o, n, t[n]);
11
- return o;
12
- }, a = (o, t) => l(o, p(t));
13
- var c = (o, t) => {
14
- var n = {};
15
- for (var r in o)
16
- u.call(o, r) && t.indexOf(r) < 0 && (n[r] = o[r]);
17
- if (o != null && s)
18
- for (var r of s(o))
19
- t.indexOf(r) < 0 && y.call(o, r) && (n[r] = o[r]);
20
- return n;
21
- };
22
- import { jsx as f } from "react/jsx-runtime";
23
- const B = (j) => {
24
- var b = j, {
25
- primary: o = !1,
26
- size: t = "medium",
27
- backgroundColor: n,
28
- label: r
29
- } = b, i = c(b, [
30
- "primary",
31
- "size",
32
- "backgroundColor",
33
- "label"
34
- ]);
35
- const d = o ? "storybook-button--primary" : "storybook-button--secondary";
36
- return /* @__PURE__ */ f(
37
- "button",
38
- a(m({
39
- type: "button",
40
- className: ["storybook-button", `storybook-button--${t}`, d].join(
41
- " "
42
- ),
43
- style: { backgroundColor: n }
44
- }, i), {
45
- children: r
46
- })
47
- );
48
- };
49
- export {
50
- B as Button
51
- };
package/dist/style.css DELETED
@@ -1 +0,0 @@
1
- .storybook-button{font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;border:0;border-radius:3em;cursor:pointer;display:inline-block;line-height:1}.storybook-button--primary{color:#fff;background-color:#1ea7fd}.storybook-button--secondary{color:#333;background-color:transparent;box-shadow:#00000026 0 0 0 1px inset}.storybook-button--small{font-size:12px;padding:10px 16px}.storybook-button--medium{font-size:14px;padding:11px 20px}.storybook-button--large{font-size:16px;padding:12px 24px}
package/index.html DELETED
@@ -1,18 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <link rel="preconnect" href="https://fonts.googleapis.com" />
8
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9
- <link
10
- href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap"
11
- rel="stylesheet" />
12
- <title>Vite + React + TS</title>
13
- </head>
14
- <body>
15
- <div id="root"></div>
16
- <script type="module" src="/src/main.tsx"></script>
17
- </body>
18
- </html>
package/lib/main.ts DELETED
@@ -1,3 +0,0 @@
1
- import {Button} from '../src/stories/Button'
2
-
3
- export {Button}
package/public/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/src/App.tsx DELETED
@@ -1,12 +0,0 @@
1
- import './styles.scss'
2
-
3
- function App() {
4
- return (
5
- <>
6
- <h1 className="teste">Aurora</h1>
7
- <p className="teste2">welcome :)</p>
8
- </>
9
- )
10
- }
11
-
12
- export default App
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
@@ -1,71 +0,0 @@
1
- // NEUTRAL COLORS
2
- $color-neutral-70: #16181d;
3
- $color-neutral-60: #313131;
4
- $color-neutral-50: #454a54;
5
- $color-neutral-40: #5e6573;
6
- $color-neutral-30: #c4c9d4;
7
- $color-neutral-20: #e2e4e9;
8
- $color-neutral-10: #f6f7fa;
9
- $color-neutral-00: #ffffff;
10
-
11
- // BRAND COLORS
12
- /* blue */
13
- $color-brand-blue-60: #18256c;
14
- $color-brand-blue-50: #1737a4;
15
- $color-brand-blue-40: #0048db;
16
- $color-brand-blue-30: #9abcff;
17
- $color-brand-blue-20: #dce8ff;
18
- $color-brand-blue-10: #fafbff;
19
-
20
- /* emerald */
21
- $color-brand-emerald-60: #013220;
22
- $color-brand-emerald-50: #026441;
23
- $color-brand-emerald-40: #04d98c;
24
- $color-brand-emerald-30: #95f0cf;
25
- $color-brand-emerald-20: #ccf2e4;
26
- $color-brand-emerald-10: #edfef7;
27
-
28
- /* cyan */
29
- $color-brand-cyan-60: #004155;
30
- $color-brand-cyan-50: #005c77;
31
- $color-brand-cyan-40: #02bedf;
32
- $color-brand-cyan-30: #3edcff;
33
- $color-brand-cyan-20: #ccf3ff;
34
- $color-brand-cyan-10: #f1fcff;
35
-
36
- // FEEDBACK COLORS
37
- /* sucess */
38
- $color-sucess-60: #08331a;
39
- $color-sucess-50: #10593b;
40
- $color-sucess-40: #138040;
41
- $color-sucess-30: #66cc90;
42
- $color-sucess-20: #a1e5bd;
43
- $color-sucess-10: #e5fff0;
44
- $color-sucess-00: #f0fcf5;
45
-
46
- /* error */
47
- $color-error-60: #731111;
48
- $color-error-50: #991717;
49
- $color-error-40: #e52222;
50
- $color-error-30: #ff8080;
51
- $color-error-20: #ffbfbf;
52
- $color-error-10: #ffe5e5;
53
- $color-error-00: #f5eff0;
54
-
55
- /* warning */
56
- $color-warning-60: #803500;
57
- $color-warning-50: #a64a08;
58
- $color-warning-40: #fa822c;
59
- $color-warning-30: #ffc59c;
60
- $color-warning-20: #ffdabf;
61
- $color-warning-10: #fff0e6;
62
- $color-warning-00: #fcf4f0;
63
-
64
- /* info */
65
- $color-info-60: #46008c;
66
- $color-info-50: #510cb2;
67
- $color-info-40: #6728e5;
68
- $color-info-30: #bd9cff;
69
- $color-info-20: #d4bfff;
70
- $color-info-10: #eee6ff;
71
- $color-info-00: #f3f0fc;
@@ -1,26 +0,0 @@
1
- // OPACITY
2
- $opacity-00: 0.05;
3
- $opacity-10: 0.2;
4
- $opacity-20: 0.4;
5
- $opacity-30: 0.6;
6
- $opacity-40: 0.8;
7
-
8
- // BORDERS
9
- $border-radius-small: 4px;
10
- $border-radius-medium: 8px;
11
- $border-radius-big: 16px;
12
- $border-radius-pill: 999px;
13
-
14
- // SHADOWS
15
- $shadow-01:
16
- 0px 2px 8px 0px rgba(169, 177, 197, 0.08),
17
- 0px 4px 4px 0px rgba(0, 72, 219, 0.04);
18
- $shadow-02:
19
- 0px 8px 24px 0px rgba(118, 134, 173, 0.08),
20
- 0px 4px 4px 0px rgba(0, 72, 219, 0.04);
21
- $shadow-03:
22
- 0px 16px 40px 0px rgba(118, 134, 173, 0.08),
23
- 0px 8px 8px 0px rgba(0, 72, 219, 0.04);
24
- $shadow-04:
25
- 0px 24px 56px 0px rgba(118, 134, 173, 0.08),
26
- 0px 12px 12px 0px rgba(0, 72, 219, 0.04);
@@ -1,22 +0,0 @@
1
- // TYPHOGRAPHY
2
- /* fonts */
3
- $font-lexend-deca: 'Lexend Deca', sans-serif;
4
- $font-source-sans-3: 'Source Sans 3', sans-serif;
5
-
6
- /* font weight */
7
- $font-weight-bold: 700;
8
- $font-weight-semibold: 600;
9
- $font-weight-medium: 500;
10
- $font-weight-regular: 400;
11
-
12
- /* font size */
13
- $font-size-h1: 56px;
14
- $font-size-h2: 48px;
15
- $font-size-h3: 40px;
16
- $font-size-h4: 32px;
17
- $font-size-h5: 28px;
18
- $font-size-h6: 24px;
19
- $font-size-p1: 20px;
20
- $font-size-p2: 16px;
21
- $font-size-p3: 14px;
22
- $font-size-p4: 12px;
@@ -1,48 +0,0 @@
1
- // SPACING
2
- $spacing-050: 4px;
3
- $spacing-100: 8px;
4
- $spacing-200: 16px;
5
- $spacing-300: 24px;
6
- $spacing-400: 32px;
7
- $spacing-500: 40px;
8
- $spacing-600: 48px;
9
- $spacing-700: 56px;
10
- $spacing-800: 64px;
11
- $spacing-900: 72px;
12
-
13
- // BREAKPOINT
14
- $breakpoint-xsm: 0px;
15
- $breakpoint-sm: 320px;
16
- $breakpoint-md: 600px;
17
- $breakpoint-lg: 1024px;
18
- $breakpoint-xlg: 1920px;
19
-
20
- // MIXIN BREAKPOINTS
21
- @mixin aboveXSmall {
22
- @media (min-width: $breakpoint-xsm) {
23
- @content;
24
- }
25
- }
26
- @mixin aboveSmall {
27
- @media (min-width: $breakpoint-sm) {
28
- @content;
29
- }
30
- }
31
-
32
- @mixin aboveMedium {
33
- @media (min-width: $breakpoint-md) {
34
- @content;
35
- }
36
- }
37
-
38
- @mixin aboveLarge {
39
- @media (min-width: $breakpoint-lg) {
40
- @content;
41
- }
42
- }
43
-
44
- @mixin aboveXLarge {
45
- @media (min-width: $breakpoint-xlarge) {
46
- @content;
47
- }
48
- }
package/src/main.tsx DELETED
@@ -1,9 +0,0 @@
1
- import React from 'react'
2
- import ReactDOM from 'react-dom/client'
3
- import App from './App.tsx'
4
-
5
- ReactDOM.createRoot(document.getElementById('root')!).render(
6
- <React.StrictMode>
7
- <App />
8
- </React.StrictMode>,
9
- )
@@ -1,52 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react'
2
- import { fn } from '@storybook/test'
3
- import { Button } from './Button'
4
-
5
- // More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
6
- const meta = {
7
- title: 'Example/Button',
8
- component: Button,
9
- parameters: {
10
- // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
11
- layout: 'centered',
12
- },
13
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
14
- tags: ['autodocs'],
15
- // More on argTypes: https://storybook.js.org/docs/api/argtypes
16
- argTypes: {
17
- backgroundColor: { control: 'color' },
18
- },
19
- // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
20
- args: { onClick: fn() },
21
- } satisfies Meta<typeof Button>
22
-
23
- export default meta
24
- type Story = StoryObj<typeof meta>
25
-
26
- // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
27
- export const Primary: Story = {
28
- args: {
29
- primary: true,
30
- label: 'Button',
31
- },
32
- }
33
-
34
- export const Secondary: Story = {
35
- args: {
36
- label: 'Button',
37
- },
38
- }
39
-
40
- export const Large: Story = {
41
- args: {
42
- size: 'large',
43
- label: 'Button',
44
- },
45
- }
46
-
47
- export const Small: Story = {
48
- args: {
49
- size: 'small',
50
- label: 'Button',
51
- },
52
- }
@@ -1,50 +0,0 @@
1
- import './button.css'
2
-
3
- export interface ButtonProps {
4
- /**
5
- * Is this the principal call to action on the page?
6
- */
7
- primary?: boolean
8
- /**
9
- * What background color to use
10
- */
11
- backgroundColor?: string
12
- /**
13
- * How large should the button be?
14
- */
15
- size?: 'small' | 'medium' | 'large'
16
- /**
17
- * Button contents
18
- */
19
- label: string
20
- /**
21
- * Optional click handler
22
- */
23
- onClick?: () => void
24
- }
25
-
26
- /**
27
- * Primary UI component for user interaction
28
- */
29
- export const Button = ({
30
- primary = false,
31
- size = 'medium',
32
- backgroundColor,
33
- label,
34
- ...props
35
- }: ButtonProps) => {
36
- const mode = primary
37
- ? 'storybook-button--primary'
38
- : 'storybook-button--secondary'
39
- return (
40
- <button
41
- type="button"
42
- className={['storybook-button', `storybook-button--${size}`, mode].join(
43
- ' ',
44
- )}
45
- style={{ backgroundColor }}
46
- {...props}>
47
- {label}
48
- </button>
49
- )
50
- }