@platformatic/ui-components 0.1.31 → 0.1.33

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 (102) hide show
  1. package/.github/workflows/ci.yml +26 -26
  2. package/.nvmrc +1 -1
  3. package/LICENSE +201 -201
  4. package/README.md +26 -26
  5. package/dist/main.css +31 -18
  6. package/fonts/Montserrat/README.txt +81 -81
  7. package/index.html +12 -12
  8. package/index.js +58 -58
  9. package/package.json +76 -76
  10. package/postcss.config.cjs +8 -8
  11. package/public/api-icon-closed.svg +6 -6
  12. package/public/api-icon.svg +9 -9
  13. package/src/App.jsx +12 -12
  14. package/src/components/BorderedBox.jsx +16 -16
  15. package/src/components/BorderedBox.module.css +2 -2
  16. package/src/components/BorderedText.jsx +8 -8
  17. package/src/components/BorderedText.module.css +2 -2
  18. package/src/components/Box.jsx +14 -14
  19. package/src/components/Box.module.css +7 -7
  20. package/src/components/Button.jsx +23 -23
  21. package/src/components/Button.module.css +20 -20
  22. package/src/components/Common.module.css +7 -7
  23. package/src/components/DetailedMetric.jsx +32 -32
  24. package/src/components/DetailedMetric.module.css +2 -2
  25. package/src/components/DropDown.jsx +35 -35
  26. package/src/components/DropDown.module.css +22 -22
  27. package/src/components/FollowUs.jsx +35 -35
  28. package/src/components/FollowUs.module.css +11 -11
  29. package/src/components/GHLoginButton.jsx +14 -14
  30. package/src/components/HorizontalSeparator.jsx +9 -5
  31. package/src/components/Input.jsx +11 -11
  32. package/src/components/Input.module.css +7 -7
  33. package/src/components/List.jsx +20 -20
  34. package/src/components/List.module.css +11 -11
  35. package/src/components/ListElement.jsx +23 -23
  36. package/src/components/ListElement.module.css +23 -23
  37. package/src/components/Loadable.jsx +34 -34
  38. package/src/components/Loadable.module.css +13 -13
  39. package/src/components/LoginButton.jsx +17 -17
  40. package/src/components/LoginButton.module.css +7 -7
  41. package/src/components/LoginButton.test.jsx +25 -25
  42. package/src/components/Logo.jsx +58 -58
  43. package/src/components/Main.jsx +33 -33
  44. package/src/components/MetricValue.jsx +15 -15
  45. package/src/components/MetricValue.module.css +7 -7
  46. package/src/components/Modal.jsx +29 -29
  47. package/src/components/Modal.module.css +24 -24
  48. package/src/components/Playground.jsx +9 -9
  49. package/src/components/SearchBar.jsx +63 -33
  50. package/src/components/SearchBar.module.css +20 -5
  51. package/src/components/SimpleMetric.jsx +32 -32
  52. package/src/components/SimpleMetric.module.css +6 -6
  53. package/src/components/Status.jsx +26 -26
  54. package/src/components/TabbedWindow.jsx +34 -34
  55. package/src/components/TabbedWindow.module.css +16 -16
  56. package/src/components/TextWithLabel.jsx +11 -11
  57. package/src/components/TextWithLabel.module.css +8 -8
  58. package/src/components/Versions.jsx +9 -9
  59. package/src/components/VerticalSeparator.jsx +5 -5
  60. package/src/components/icons/ApiEmptyIcon.jsx +107 -0
  61. package/src/components/icons/ApiIcon.jsx +29 -29
  62. package/src/components/icons/ApiIconClosed.jsx +19 -19
  63. package/src/components/icons/CloseModalIcon.jsx +26 -26
  64. package/src/components/icons/PullRequestIcon.jsx +31 -31
  65. package/src/components/icons/index.js +9 -8
  66. package/src/components/layouts/Layout.jsx +11 -11
  67. package/src/components/layouts/TwoColumnsLayout.jsx +12 -12
  68. package/src/components/layouts/TwoColumnsLayout.module.css +9 -9
  69. package/src/hooks/useEscapeKey.js +20 -20
  70. package/src/lib/utils.js +23 -23
  71. package/src/main.jsx +9 -9
  72. package/src/stories/BorderedBox.stories.jsx +33 -33
  73. package/src/stories/BorderedText.stories.jsx +24 -24
  74. package/src/stories/Button.stories.jsx +107 -107
  75. package/src/stories/DetailedMetric.stories.jsx +33 -33
  76. package/src/stories/DropDown.stories.jsx +62 -62
  77. package/src/stories/FollowUs.stories.jsx +14 -14
  78. package/src/stories/GHLoginButton.stories.jsx +14 -14
  79. package/src/stories/HorizontalSeparator.stories.jsx +12 -12
  80. package/src/stories/Input.stories.jsx +15 -15
  81. package/src/stories/Introduction.stories.mdx +211 -211
  82. package/src/stories/List.stories.jsx +29 -29
  83. package/src/stories/ListElement.stories.jsx +15 -15
  84. package/src/stories/Loadable.stories.jsx +75 -75
  85. package/src/stories/LoginButton.stories.jsx +15 -15
  86. package/src/stories/Logo.stories.jsx +17 -17
  87. package/src/stories/Modal.stories.jsx +65 -65
  88. package/src/stories/SearchBar.stories.jsx +28 -27
  89. package/src/stories/SimpleMetric.stories.jsx +41 -41
  90. package/src/stories/Status.stories.jsx +31 -31
  91. package/src/stories/TextWithLabel.stories.jsx +25 -25
  92. package/src/stories/TwoColumnsLayout.stories.jsx +42 -42
  93. package/src/styles/main.css +15 -15
  94. package/tailwind.config.cjs +37 -37
  95. package/vite.config.js +6 -6
  96. package/vitest.config.js +14 -14
  97. package/dist/api-icon-closed.svg +0 -6
  98. package/dist/api-icon.svg +0 -9
  99. package/dist/assets/index.5ac5acb7.js +0 -797
  100. package/dist/assets/index.d3f5882c.css +0 -1
  101. package/dist/index.html +0 -14
  102. package/dist/vite.svg +0 -1
@@ -1,81 +1,81 @@
1
- Montserrat Variable Font
2
- ========================
3
-
4
- This download contains Montserrat as both variable fonts and static fonts.
5
-
6
- Montserrat is a variable font with this axis:
7
- wght
8
-
9
- This means all the styles are contained in these files:
10
- Montserrat-VariableFont_wght.ttf
11
- Montserrat-Italic-VariableFont_wght.ttf
12
-
13
- If your app fully supports variable fonts, you can now pick intermediate styles
14
- that aren’t available as static fonts. Not all apps support variable fonts, and
15
- in those cases you can use the static font files for Montserrat:
16
- static/Montserrat-Thin.ttf
17
- static/Montserrat-ExtraLight.ttf
18
- static/Montserrat-Light.ttf
19
- static/Montserrat-Regular.ttf
20
- static/Montserrat-Medium.ttf
21
- static/Montserrat-SemiBold.ttf
22
- static/Montserrat-Bold.ttf
23
- static/Montserrat-ExtraBold.ttf
24
- static/Montserrat-Black.ttf
25
- static/Montserrat-ThinItalic.ttf
26
- static/Montserrat-ExtraLightItalic.ttf
27
- static/Montserrat-LightItalic.ttf
28
- static/Montserrat-Italic.ttf
29
- static/Montserrat-MediumItalic.ttf
30
- static/Montserrat-SemiBoldItalic.ttf
31
- static/Montserrat-BoldItalic.ttf
32
- static/Montserrat-ExtraBoldItalic.ttf
33
- static/Montserrat-BlackItalic.ttf
34
-
35
- Get started
36
- -----------
37
-
38
- 1. Install the font files you want to use
39
-
40
- 2. Use your app's font picker to view the font family and all the
41
- available styles
42
-
43
- Learn more about variable fonts
44
- -------------------------------
45
-
46
- https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
47
- https://variablefonts.typenetwork.com
48
- https://medium.com/variable-fonts
49
-
50
- In desktop apps
51
-
52
- https://theblog.adobe.com/can-variable-fonts-illustrator-cc
53
- https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
54
-
55
- Online
56
-
57
- https://developers.google.com/fonts/docs/getting_started
58
- https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
59
- https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
60
-
61
- Installing fonts
62
-
63
- MacOS: https://support.apple.com/en-us/HT201749
64
- Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
65
- Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
66
-
67
- Android Apps
68
-
69
- https://developers.google.com/fonts/docs/android
70
- https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
71
-
72
- License
73
- -------
74
- Please read the full license text (OFL.txt) to understand the permissions,
75
- restrictions and requirements for usage, redistribution, and modification.
76
-
77
- You can use them in your products & projects – print or digital,
78
- commercial or otherwise.
79
-
80
- This isn't legal advice, please consider consulting a lawyer and see the full
81
- license for all details.
1
+ Montserrat Variable Font
2
+ ========================
3
+
4
+ This download contains Montserrat as both variable fonts and static fonts.
5
+
6
+ Montserrat is a variable font with this axis:
7
+ wght
8
+
9
+ This means all the styles are contained in these files:
10
+ Montserrat-VariableFont_wght.ttf
11
+ Montserrat-Italic-VariableFont_wght.ttf
12
+
13
+ If your app fully supports variable fonts, you can now pick intermediate styles
14
+ that aren’t available as static fonts. Not all apps support variable fonts, and
15
+ in those cases you can use the static font files for Montserrat:
16
+ static/Montserrat-Thin.ttf
17
+ static/Montserrat-ExtraLight.ttf
18
+ static/Montserrat-Light.ttf
19
+ static/Montserrat-Regular.ttf
20
+ static/Montserrat-Medium.ttf
21
+ static/Montserrat-SemiBold.ttf
22
+ static/Montserrat-Bold.ttf
23
+ static/Montserrat-ExtraBold.ttf
24
+ static/Montserrat-Black.ttf
25
+ static/Montserrat-ThinItalic.ttf
26
+ static/Montserrat-ExtraLightItalic.ttf
27
+ static/Montserrat-LightItalic.ttf
28
+ static/Montserrat-Italic.ttf
29
+ static/Montserrat-MediumItalic.ttf
30
+ static/Montserrat-SemiBoldItalic.ttf
31
+ static/Montserrat-BoldItalic.ttf
32
+ static/Montserrat-ExtraBoldItalic.ttf
33
+ static/Montserrat-BlackItalic.ttf
34
+
35
+ Get started
36
+ -----------
37
+
38
+ 1. Install the font files you want to use
39
+
40
+ 2. Use your app's font picker to view the font family and all the
41
+ available styles
42
+
43
+ Learn more about variable fonts
44
+ -------------------------------
45
+
46
+ https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
47
+ https://variablefonts.typenetwork.com
48
+ https://medium.com/variable-fonts
49
+
50
+ In desktop apps
51
+
52
+ https://theblog.adobe.com/can-variable-fonts-illustrator-cc
53
+ https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
54
+
55
+ Online
56
+
57
+ https://developers.google.com/fonts/docs/getting_started
58
+ https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
59
+ https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
60
+
61
+ Installing fonts
62
+
63
+ MacOS: https://support.apple.com/en-us/HT201749
64
+ Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
65
+ Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
66
+
67
+ Android Apps
68
+
69
+ https://developers.google.com/fonts/docs/android
70
+ https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
71
+
72
+ License
73
+ -------
74
+ Please read the full license text (OFL.txt) to understand the permissions,
75
+ restrictions and requirements for usage, redistribution, and modification.
76
+
77
+ You can use them in your products & projects – print or digital,
78
+ commercial or otherwise.
79
+
80
+ This isn't legal advice, please consider consulting a lawyer and see the full
81
+ license for all details.
package/index.html CHANGED
@@ -1,12 +1,12 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Platformatic UI Components</title>
7
- </head>
8
- <body>
9
- <div id="root"></div>
10
- <script type="module" src="/src/main.jsx"></script>
11
- </body>
12
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Platformatic UI Components</title>
7
+ </head>
8
+ <body>
9
+ <div id="root"></div>
10
+ <script type="module" src="/src/main.jsx"></script>
11
+ </body>
12
+ </html>
package/index.js CHANGED
@@ -1,58 +1,58 @@
1
- 'use strict'
2
-
3
- import BorderedBox from './src/components/BorderedBox'
4
- import BorderedText from './src/components/BorderedText'
5
- import Box from './src/components/Box'
6
- import Button from './src/components/Button'
7
- import DetailedMetric from './src/components/DetailedMetric'
8
- import DropDown from './src/components/DropDown'
9
- import FollowUs from './src/components/FollowUs'
10
- import GHLoginButton from './src/components/GHLoginButton'
11
- import HorizontalSeparator from './src/components/HorizontalSeparator'
12
- import Icons from './src/components/icons'
13
- import Input from './src/components/Input'
14
- import Layout from './src/components/layouts/Layout'
15
- import List from './src/components/List'
16
- import ListElement from './src/components/ListElement'
17
- import Loadable from './src/components/Loadable'
18
- import LoginButton from './src/components/LoginButton'
19
- import Logo from './src/components/Logo'
20
- import Modal from './src/components/Modal'
21
- import Playground from './src/components/Playground'
22
- import SearchBar from './src/components/SearchBar'
23
- import SimpleMetric from './src/components/SimpleMetric'
24
- import Status from './src/components/Status'
25
- import TabbedWindow from './src/components/TabbedWindow'
26
- import TextWithLabel from './src/components/TextWithLabel'
27
- import TwoColumnsLayout from './src/components/layouts/TwoColumnsLayout'
28
- import Versions from './src/components/Versions'
29
- import VerticalSeparator from './src/components/VerticalSeparator'
30
- export {
31
- BorderedBox,
32
- BorderedText,
33
- Box,
34
- Button,
35
- DetailedMetric,
36
- DropDown,
37
- FollowUs,
38
- HorizontalSeparator,
39
- GHLoginButton,
40
- Icons,
41
- Input,
42
- Layout,
43
- List,
44
- ListElement,
45
- Loadable,
46
- LoginButton,
47
- Logo,
48
- Modal,
49
- Playground,
50
- SearchBar,
51
- SimpleMetric,
52
- Status,
53
- TabbedWindow,
54
- TextWithLabel,
55
- TwoColumnsLayout,
56
- Versions,
57
- VerticalSeparator
58
- }
1
+ 'use strict'
2
+
3
+ import BorderedBox from './src/components/BorderedBox'
4
+ import BorderedText from './src/components/BorderedText'
5
+ import Box from './src/components/Box'
6
+ import Button from './src/components/Button'
7
+ import DetailedMetric from './src/components/DetailedMetric'
8
+ import DropDown from './src/components/DropDown'
9
+ import FollowUs from './src/components/FollowUs'
10
+ import GHLoginButton from './src/components/GHLoginButton'
11
+ import HorizontalSeparator from './src/components/HorizontalSeparator'
12
+ import Icons from './src/components/icons'
13
+ import Input from './src/components/Input'
14
+ import Layout from './src/components/layouts/Layout'
15
+ import List from './src/components/List'
16
+ import ListElement from './src/components/ListElement'
17
+ import Loadable from './src/components/Loadable'
18
+ import LoginButton from './src/components/LoginButton'
19
+ import Logo from './src/components/Logo'
20
+ import Modal from './src/components/Modal'
21
+ import Playground from './src/components/Playground'
22
+ import SearchBar from './src/components/SearchBar'
23
+ import SimpleMetric from './src/components/SimpleMetric'
24
+ import Status from './src/components/Status'
25
+ import TabbedWindow from './src/components/TabbedWindow'
26
+ import TextWithLabel from './src/components/TextWithLabel'
27
+ import TwoColumnsLayout from './src/components/layouts/TwoColumnsLayout'
28
+ import Versions from './src/components/Versions'
29
+ import VerticalSeparator from './src/components/VerticalSeparator'
30
+ export {
31
+ BorderedBox,
32
+ BorderedText,
33
+ Box,
34
+ Button,
35
+ DetailedMetric,
36
+ DropDown,
37
+ FollowUs,
38
+ HorizontalSeparator,
39
+ GHLoginButton,
40
+ Icons,
41
+ Input,
42
+ Layout,
43
+ List,
44
+ ListElement,
45
+ Loadable,
46
+ LoginButton,
47
+ Logo,
48
+ Modal,
49
+ Playground,
50
+ SearchBar,
51
+ SimpleMetric,
52
+ Status,
53
+ TabbedWindow,
54
+ TextWithLabel,
55
+ TwoColumnsLayout,
56
+ Versions,
57
+ VerticalSeparator
58
+ }
package/package.json CHANGED
@@ -1,76 +1,76 @@
1
- {
2
- "name": "@platformatic/ui-components",
3
- "description": "Platformatic UI Components",
4
- "version": "0.1.31",
5
- "type": "module",
6
- "license": "Apache-2.0",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/platformatic/ui-components.git"
10
- },
11
- "scripts": {
12
- "dev": "vite",
13
- "build": "vite build",
14
- "preview": "vite preview",
15
- "storybook": "NODE_OPTIONS='--openssl-legacy-provider' start-storybook -p 6006",
16
- "build-storybook": "NODE_OPTIONS='--openssl-legacy-provider' build-storybook",
17
- "tailwind:watch": "tailwindcss -i ./src/styles/main.css -o ./dist/main.css --watch",
18
- "tailwind": "tailwindcss -i ./src/styles/main.css -o ./dist/main.css",
19
- "lint": "standard src | snazzy",
20
- "lint:fix": "standard src --fix",
21
- "test": "vitest run"
22
- },
23
- "dependencies": {
24
- "@fortawesome/fontawesome-svg-core": "^6.2.0",
25
- "@fortawesome/free-brands-svg-icons": "^6.2.0",
26
- "@fortawesome/free-regular-svg-icons": "^6.2.0",
27
- "@fortawesome/free-solid-svg-icons": "^6.2.0",
28
- "@fortawesome/react-fontawesome": "^0.2.0",
29
- "autoprefixer": "^10.4.12",
30
- "postcss": "^8.4.17",
31
- "react": "^18.2.0",
32
- "react-dom": "^18.2.0",
33
- "react-tooltip": "^4.4.3",
34
- "spinners-react": "^1.0.7",
35
- "storybook-tailwind-foundations": "^1.1.2"
36
- },
37
- "devDependencies": {
38
- "@babel/core": "^7.19.3",
39
- "@fastify/pre-commit": "^2.0.2",
40
- "@storybook/addon-actions": "^6.5.12",
41
- "@storybook/addon-essentials": "^6.5.12",
42
- "@storybook/addon-interactions": "^6.5.12",
43
- "@storybook/addon-links": "^6.5.12",
44
- "@storybook/builder-vite": "^0.2.4",
45
- "@storybook/react": "^6.5.12",
46
- "@storybook/testing-library": "^0.0.13",
47
- "@testing-library/jest-dom": "^5.16.5",
48
- "@testing-library/react": "^13.4.0",
49
- "@types/react": "^18.0.17",
50
- "@types/react-dom": "^18.0.6",
51
- "@vitejs/plugin-react": "^2.1.0",
52
- "babel-loader": "^8.2.5",
53
- "happy-dom": "^7.6.6",
54
- "jsdom": "^20.0.1",
55
- "react-test-renderer": "^18.2.0",
56
- "snazzy": "^9.0.0",
57
- "standard": "^17.0.0",
58
- "tailwindcss": "^3.1.8",
59
- "vite": "^3.1.0",
60
- "vitest": "^0.24.3"
61
- },
62
- "standard": {
63
- "globals": [
64
- "expect",
65
- "test",
66
- "alert"
67
- ],
68
- "ignore": [
69
- "/dist"
70
- ]
71
- },
72
- "pre-commit": [
73
- "lint",
74
- "test"
75
- ]
76
- }
1
+ {
2
+ "name": "@platformatic/ui-components",
3
+ "description": "Platformatic UI Components",
4
+ "version": "0.1.33",
5
+ "type": "module",
6
+ "license": "Apache-2.0",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/platformatic/ui-components.git"
10
+ },
11
+ "scripts": {
12
+ "dev": "vite",
13
+ "build": "vite build",
14
+ "preview": "vite preview",
15
+ "storybook": "NODE_OPTIONS='--openssl-legacy-provider' start-storybook -p 6006",
16
+ "build-storybook": "NODE_OPTIONS='--openssl-legacy-provider' build-storybook",
17
+ "tailwind:watch": "tailwindcss -i ./src/styles/main.css -o ./dist/main.css --watch",
18
+ "tailwind": "tailwindcss -i ./src/styles/main.css -o ./dist/main.css",
19
+ "lint": "standard src | snazzy",
20
+ "lint:fix": "standard src --fix",
21
+ "test": "vitest run"
22
+ },
23
+ "dependencies": {
24
+ "@fortawesome/fontawesome-svg-core": "^6.2.0",
25
+ "@fortawesome/free-brands-svg-icons": "^6.2.0",
26
+ "@fortawesome/free-regular-svg-icons": "^6.2.0",
27
+ "@fortawesome/free-solid-svg-icons": "^6.2.0",
28
+ "@fortawesome/react-fontawesome": "^0.2.0",
29
+ "autoprefixer": "^10.4.12",
30
+ "postcss": "^8.4.17",
31
+ "react": "^18.2.0",
32
+ "react-dom": "^18.2.0",
33
+ "react-tooltip": "^4.4.3",
34
+ "spinners-react": "^1.0.7",
35
+ "storybook-tailwind-foundations": "^1.1.2"
36
+ },
37
+ "devDependencies": {
38
+ "@babel/core": "^7.19.3",
39
+ "@fastify/pre-commit": "^2.0.2",
40
+ "@storybook/addon-actions": "^6.5.12",
41
+ "@storybook/addon-essentials": "^6.5.12",
42
+ "@storybook/addon-interactions": "^6.5.12",
43
+ "@storybook/addon-links": "^6.5.12",
44
+ "@storybook/builder-vite": "^0.2.4",
45
+ "@storybook/react": "^6.5.12",
46
+ "@storybook/testing-library": "^0.0.13",
47
+ "@testing-library/jest-dom": "^5.16.5",
48
+ "@testing-library/react": "^13.4.0",
49
+ "@types/react": "^18.0.17",
50
+ "@types/react-dom": "^18.0.6",
51
+ "@vitejs/plugin-react": "^2.1.0",
52
+ "babel-loader": "^8.2.5",
53
+ "happy-dom": "^7.6.6",
54
+ "jsdom": "^20.0.1",
55
+ "react-test-renderer": "^18.2.0",
56
+ "snazzy": "^9.0.0",
57
+ "standard": "^17.0.0",
58
+ "tailwindcss": "^3.1.8",
59
+ "vite": "^3.1.0",
60
+ "vitest": "^0.24.3"
61
+ },
62
+ "standard": {
63
+ "globals": [
64
+ "expect",
65
+ "test",
66
+ "alert"
67
+ ],
68
+ "ignore": [
69
+ "/dist"
70
+ ]
71
+ },
72
+ "pre-commit": [
73
+ "lint",
74
+ "test"
75
+ ]
76
+ }
@@ -1,8 +1,8 @@
1
- 'use strict'
2
-
3
- module.exports = {
4
- plugins: {
5
- tailwindcss: {},
6
- autoprefixer: {}
7
- }
8
- }
1
+ 'use strict'
2
+
3
+ module.exports = {
4
+ plugins: {
5
+ tailwindcss: {},
6
+ autoprefixer: {}
7
+ }
8
+ }
@@ -1,6 +1,6 @@
1
- <svg width="38" height="42" viewBox="0 0 38 42" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M8.12022 22.3583C4.18631 22.3583 1 19.1696 1 15.2381C1 11.3065 4.18631 8.11784 8.11784 8.12022C8.11784 4.18631 11.3065 1 15.2381 1C18.1449 1 20.6433 2.74124 21.7492 5.23965C21.9498 5.22054 22.1529 5.21099 22.3583 5.21099C25.6377 5.21099 28.3965 7.42994 29.2229 10.4467C29.7627 10.289 30.3336 10.203 30.9236 10.203C34.2795 10.203 37 12.926 37 16.2818C37 19.6377 34.2795 22.3583 30.9236 22.3583" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- <path d="M13 11.5V18.5M13 31V28M13 25V21.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
- <path d="M25 13V19M25 34.5V31M25 28V22" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
- <path d="M19 15.4L19 22.5M19 40.5L19 36.5M19 25.5L19 33.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6
- </svg>
1
+ <svg width="38" height="42" viewBox="0 0 38 42" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.12022 22.3583C4.18631 22.3583 1 19.1696 1 15.2381C1 11.3065 4.18631 8.11784 8.11784 8.12022C8.11784 4.18631 11.3065 1 15.2381 1C18.1449 1 20.6433 2.74124 21.7492 5.23965C21.9498 5.22054 22.1529 5.21099 22.3583 5.21099C25.6377 5.21099 28.3965 7.42994 29.2229 10.4467C29.7627 10.289 30.3336 10.203 30.9236 10.203C34.2795 10.203 37 12.926 37 16.2818C37 19.6377 34.2795 22.3583 30.9236 22.3583" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M13 11.5V18.5M13 31V28M13 25V21.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M25 13V19M25 34.5V31M25 28V22" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M19 15.4L19 22.5M19 40.5L19 36.5M19 25.5L19 33.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6
+ </svg>
@@ -1,9 +1,9 @@
1
- <svg width="38" height="56" viewBox="0 0 38 56" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M8.12022 22.3583C4.18631 22.3583 1 19.1696 1 15.2381C1 11.3065 4.18631 8.11784 8.11784 8.12022C8.11784 4.18631 11.3065 1 15.2381 1C18.1449 1 20.6433 2.74124 21.7492 5.23965C21.9498 5.22054 22.1529 5.21099 22.3583 5.21099C25.6377 5.21099 28.3965 7.42994 29.2229 10.4467C29.7627 10.289 30.3336 10.203 30.9236 10.203C34.2795 10.203 37 12.926 37 16.2818C37 19.6377 34.2795 22.3583 30.9236 22.3583" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- <path d="M13 11.5V31H11.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
- <path d="M25 13V31H28" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
- <path d="M19 15.4L19 51.2L30.4 51.2" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6
- <circle cx="7" cy="31" r="3" stroke="white" stroke-width="2"/>
7
- <circle cx="31" cy="31" r="3" stroke="white" stroke-width="2"/>
8
- <circle cx="34" cy="51.2" r="3" stroke="white" stroke-width="2"/>
9
- </svg>
1
+ <svg width="38" height="56" viewBox="0 0 38 56" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.12022 22.3583C4.18631 22.3583 1 19.1696 1 15.2381C1 11.3065 4.18631 8.11784 8.11784 8.12022C8.11784 4.18631 11.3065 1 15.2381 1C18.1449 1 20.6433 2.74124 21.7492 5.23965C21.9498 5.22054 22.1529 5.21099 22.3583 5.21099C25.6377 5.21099 28.3965 7.42994 29.2229 10.4467C29.7627 10.289 30.3336 10.203 30.9236 10.203C34.2795 10.203 37 12.926 37 16.2818C37 19.6377 34.2795 22.3583 30.9236 22.3583" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M13 11.5V31H11.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M25 13V31H28" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M19 15.4L19 51.2L30.4 51.2" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6
+ <circle cx="7" cy="31" r="3" stroke="white" stroke-width="2"/>
7
+ <circle cx="31" cy="31" r="3" stroke="white" stroke-width="2"/>
8
+ <circle cx="34" cy="51.2" r="3" stroke="white" stroke-width="2"/>
9
+ </svg>
package/src/App.jsx CHANGED
@@ -1,12 +1,12 @@
1
- import Layout from './components/layouts/Layout'
2
- import Main from './components/Main'
3
-
4
- function App () {
5
- return (
6
- <Layout>
7
- <Main />
8
- </Layout>
9
- )
10
- }
11
-
12
- export default App
1
+ import Layout from './components/layouts/Layout'
2
+ import Main from './components/Main'
3
+
4
+ function App () {
5
+ return (
6
+ <Layout>
7
+ <Main />
8
+ </Layout>
9
+ )
10
+ }
11
+
12
+ export default App
@@ -1,16 +1,16 @@
1
- 'use strict'
2
-
3
- import { getColor } from '../lib/utils'
4
- import styles from './BorderedBox.module.css'
5
- import commonStyles from './Common.module.css'
6
- import React from 'react'
7
- export default function BorderedBox (props) {
8
- const { classes, color, children } = props
9
- const borderColor = getColor('border', color)
10
-
11
- return (
12
- <div className={`${styles.borderedBox} ${commonStyles.bordered} ${classes} ${borderColor}`}>
13
- {children}
14
- </div>
15
- )
16
- }
1
+ 'use strict'
2
+
3
+ import { getColor } from '../lib/utils'
4
+ import styles from './BorderedBox.module.css'
5
+ import commonStyles from './Common.module.css'
6
+ import React from 'react'
7
+ export default function BorderedBox (props) {
8
+ const { classes, color, children } = props
9
+ const borderColor = getColor('border', color)
10
+
11
+ return (
12
+ <div className={`${styles.borderedBox} ${commonStyles.bordered} ${classes} ${borderColor}`}>
13
+ {children}
14
+ </div>
15
+ )
16
+ }
@@ -1,3 +1,3 @@
1
- .borderedBox {
2
- @apply rounded-md p-5 bg-dark-blue text-white mb-4 flex-1 gap-y-4;
1
+ .borderedBox {
2
+ @apply rounded-md p-5 bg-dark-blue text-white mb-4 flex-1 gap-y-4;
3
3
  }
@@ -1,8 +1,8 @@
1
- 'use strict'
2
- import styles from './BorderedText.module.css'
3
- import React from 'react'
4
- export default function BorderedText (props) {
5
- return (
6
- <span className={styles.bordered}>{props.text}</span>
7
- )
8
- }
1
+ 'use strict'
2
+ import styles from './BorderedText.module.css'
3
+ import React from 'react'
4
+ export default function BorderedText (props) {
5
+ return (
6
+ <span className={styles.bordered}>{props.text}</span>
7
+ )
8
+ }
@@ -1,3 +1,3 @@
1
- .bordered {
2
- @apply border border-solid rounded-md px-2 py-1 border-white tracking-[.25rem] text-white;
1
+ .bordered {
2
+ @apply border border-solid rounded-md px-2 py-1 border-white tracking-[.25rem] text-white;
3
3
  }
@@ -1,14 +1,14 @@
1
- 'use strict'
2
-
3
- import styles from './Box.module.css'
4
- import React from 'react'
5
- export default function Box ({ justifyCentered, children }) {
6
- let className = `${styles.box}`
7
- if (justifyCentered) className += ` ${styles.justifyCentered}`
8
-
9
- return (
10
- <div className={className}>
11
- {children}
12
- </div>
13
- )
14
- }
1
+ 'use strict'
2
+
3
+ import styles from './Box.module.css'
4
+ import React from 'react'
5
+ export default function Box ({ justifyCentered, children }) {
6
+ let className = `${styles.box}`
7
+ if (justifyCentered) className += ` ${styles.justifyCentered}`
8
+
9
+ return (
10
+ <div className={className}>
11
+ {children}
12
+ </div>
13
+ )
14
+ }