@platformatic/ui-components 0.1.49 → 0.1.51
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/.github/workflows/ci.yml +26 -26
- package/.nvmrc +1 -1
- package/LICENSE +201 -201
- package/README.md +30 -30
- package/dist/api-icon-closed.svg +6 -0
- package/dist/api-icon.svg +9 -0
- package/dist/assets/Montserrat-Regular.dcfe8df2.ttf +0 -0
- package/dist/assets/index.691ca940.css +1 -0
- package/dist/assets/index.ff0dadfc.js +797 -0
- package/dist/index.html +14 -0
- package/dist/stats.html +6177 -0
- package/dist/vite.svg +1 -0
- package/fonts/Montserrat/README.txt +81 -81
- package/index.html +12 -12
- package/index.js +71 -71
- package/package.json +76 -76
- package/postcss.config.cjs +8 -8
- package/public/api-icon-closed.svg +6 -6
- package/public/api-icon.svg +9 -9
- package/src/App.jsx +12 -12
- package/src/components/BorderedBox.jsx +18 -18
- package/src/components/BorderedBox.module.css +8 -8
- package/src/components/BorderedText.jsx +8 -8
- package/src/components/BorderedText.module.css +2 -2
- package/src/components/Box.jsx +14 -14
- package/src/components/Box.module.css +7 -7
- package/src/components/Button.jsx +95 -95
- package/src/components/Button.module.css +127 -127
- package/src/components/ButtonFullRounded.jsx +17 -17
- package/src/components/ButtonFullRounded.module.css +28 -28
- package/src/components/Checkbox.jsx +11 -11
- package/src/components/Checkbox.module.css +18 -18
- package/src/components/Common.module.css +28 -28
- package/src/components/DetailedMetric.jsx +32 -32
- package/src/components/DetailedMetric.module.css +2 -2
- package/src/components/DropDown.jsx +35 -36
- package/src/components/DropDown.module.css +25 -27
- package/src/components/FollowUs.jsx +35 -35
- package/src/components/FollowUs.module.css +11 -11
- package/src/components/GHLoginButton.jsx +14 -14
- package/src/components/HorizontalSeparator.jsx +15 -15
- package/src/components/HorizontalSeparator.module.css +26 -26
- package/src/components/InfoBox.jsx +50 -50
- package/src/components/InfoBox.module.css +5 -5
- package/src/components/List.jsx +20 -20
- package/src/components/List.module.css +11 -11
- package/src/components/ListElement.jsx +23 -23
- package/src/components/ListElement.module.css +23 -23
- package/src/components/Loadable.jsx +34 -34
- package/src/components/Loadable.module.css +13 -13
- package/src/components/Loader.jsx +22 -22
- package/src/components/Loader.module.css +13 -13
- package/src/components/LoginButton.jsx +17 -17
- package/src/components/LoginButton.module.css +7 -7
- package/src/components/LoginButton.test.jsx +25 -25
- package/src/components/Logo.jsx +62 -62
- package/src/components/Logo.module.css +5 -5
- package/src/components/Main.jsx +33 -33
- package/src/components/MetricValue.jsx +15 -15
- package/src/components/MetricValue.module.css +9 -9
- package/src/components/Modal.jsx +93 -93
- package/src/components/Modal.module.css +50 -50
- package/src/components/PlatformaticIcon.jsx +57 -57
- package/src/components/PlatformaticIcon.module.css +2 -2
- package/src/components/Playground.jsx +9 -9
- package/src/components/SearchBar.jsx +63 -63
- package/src/components/SearchBar.module.css +20 -20
- package/src/components/Sidebar.jsx +151 -153
- package/src/components/Sidebar.module.css +70 -66
- package/src/components/SimpleMetric.jsx +28 -28
- package/src/components/SimpleMetric.module.css +6 -6
- package/src/components/Status.jsx +26 -26
- package/src/components/TabbedWindow.jsx +39 -39
- package/src/components/TabbedWindow.module.css +16 -16
- package/src/components/TextWithLabel.jsx +11 -11
- package/src/components/TextWithLabel.module.css +8 -8
- package/src/components/Versions.jsx +9 -9
- package/src/components/VerticalSeparator.jsx +5 -5
- package/src/components/forms/Field.jsx +53 -20
- package/src/components/forms/Field.module.css +23 -17
- package/src/components/forms/Input.jsx +80 -80
- package/src/components/forms/Input.module.css +28 -28
- package/src/components/forms/Preview.jsx +75 -77
- package/src/components/forms/Preview.module.css +14 -14
- package/src/components/forms/ToggleSwitch.jsx +18 -18
- package/src/components/forms/ToggleSwitch.module.css +42 -42
- package/src/components/forms/index.js +8 -8
- package/src/components/icons/AddIcon.jsx +78 -0
- package/src/components/icons/AlertIcon.jsx +81 -0
- package/src/components/icons/AllInOneIcon.jsx +111 -0
- package/src/components/icons/ApiCloudIcon.jsx +93 -0
- package/src/components/icons/ApiEmptyIcon.jsx +107 -107
- package/src/components/icons/ApiIcon.jsx +84 -29
- package/src/components/icons/ApiIconClosed.jsx +19 -19
- package/src/components/icons/AppEmptyIcon.jsx +94 -94
- package/src/components/icons/AppIcon.jsx +85 -38
- package/src/components/icons/AppListIcon.jsx +73 -73
- package/src/components/icons/ArrowDownFullIcon.jsx +76 -0
- package/src/components/icons/ArrowDownIcon.jsx +75 -0
- package/src/components/icons/ArrowLeftIcon.jsx +75 -0
- package/src/components/icons/ArrowRightIcon.jsx +75 -0
- package/src/components/icons/ArrowUpIcon.jsx +75 -0
- package/src/components/icons/Calendar1DayIcon.jsx +90 -0
- package/src/components/icons/Calendar7DaysIcon.jsx +88 -0
- package/src/components/icons/CalendarIcon.jsx +102 -56
- package/src/components/icons/CircleAddIcon.jsx +81 -40
- package/src/components/icons/CircleBackIcon.jsx +51 -51
- package/src/components/icons/{Calendar1Icon.jsx → CircleCheckMarkIcon.jsx} +66 -54
- package/src/components/icons/CircleCloseHoverIcon.jsx +42 -42
- package/src/components/icons/CircleCloseIcon.jsx +32 -32
- package/src/components/icons/CircleExclamationIcon.jsx +29 -29
- package/src/components/icons/CloseIcon.jsx +79 -31
- package/src/components/icons/CopyPasteIcon.jsx +81 -0
- package/src/components/icons/DatabaseIcon.jsx +81 -0
- package/src/components/icons/EditIcon.jsx +81 -38
- package/src/components/icons/GearIcon.jsx +78 -40
- package/src/components/icons/Icons.module.css +46 -29
- package/src/components/icons/LiveIcon.jsx +43 -43
- package/src/components/icons/MetricsIcon.jsx +52 -52
- package/src/components/icons/PlayIcon.jsx +20 -20
- package/src/components/icons/PullRequestIcon.jsx +35 -35
- package/src/components/icons/StopIcon.jsx +21 -21
- package/src/components/icons/TerminalIcon.jsx +22 -22
- package/src/components/icons/UpgradeIcon.jsx +48 -48
- package/src/components/icons/Users2Icon.jsx +84 -0
- package/src/components/icons/WorkspaceDynamicIcon.jsx +87 -0
- package/src/components/icons/WorkspaceReadyIcon.jsx +144 -0
- package/src/components/icons/WorkspaceStaticIcon.jsx +84 -0
- package/src/components/icons/index.js +83 -61
- package/src/components/layouts/Layout.jsx +11 -11
- package/src/components/layouts/TwoColumnsLayout.jsx +12 -12
- package/src/components/layouts/TwoColumnsLayout.module.css +9 -9
- package/src/hooks/useEscapeKey.js +20 -20
- package/src/lib/utils.js +23 -23
- package/src/main.jsx +9 -9
- package/src/stories/BorderedBox.stories.jsx +33 -33
- package/src/stories/BorderedText.stories.jsx +24 -24
- package/src/stories/Button.stories.jsx +114 -114
- package/src/stories/ButtonFullRounded.stories.jsx +61 -61
- package/src/stories/Checkbox.stories.jsx +27 -27
- package/src/stories/DetailedMetric.stories.jsx +33 -33
- package/src/stories/DropDown.stories.jsx +62 -62
- package/src/stories/FollowUs.stories.jsx +14 -14
- package/src/stories/GHLoginButton.stories.jsx +14 -14
- package/src/stories/HorizontalSeparator.stories.jsx +12 -12
- package/src/stories/InfoBox.stories.jsx +46 -46
- package/src/stories/Introduction.stories.mdx +211 -211
- package/src/stories/List.stories.jsx +29 -29
- package/src/stories/ListElement.stories.jsx +15 -15
- package/src/stories/Loadable.stories.jsx +75 -75
- package/src/stories/Loader.stories.jsx +44 -44
- package/src/stories/LoginButton.stories.jsx +15 -15
- package/src/stories/Logo.stories.jsx +17 -17
- package/src/stories/Modal.stories.jsx +100 -100
- package/src/stories/PlatformaticIcon.stories.jsx +57 -35
- package/src/stories/SearchBar.stories.jsx +28 -28
- package/src/stories/Sidebar.stories.jsx +61 -61
- package/src/stories/SimpleMetric.stories.jsx +41 -41
- package/src/stories/Status.stories.jsx +31 -31
- package/src/stories/TextWithLabel.stories.jsx +25 -25
- package/src/stories/TwoColumnsLayout.stories.jsx +42 -42
- package/src/stories/forms/Field.stories.jsx +89 -81
- package/src/stories/forms/Input.stories.jsx +89 -89
- package/src/stories/forms/Preview.stories.jsx +57 -57
- package/src/stories/forms/ToggleSwitch.stories.jsx +15 -15
- package/src/stories/icons/Icons.stories.jsx +68 -74
- package/src/styles/main.css +22 -15
- package/tailwind.config.cjs +60 -60
- package/vite.config.js +6 -6
- package/vitest.config.js +14 -14
- package/dist/main.css +0 -704
- package/src/components/icons/Calendar7Icon.jsx +0 -55
- package/src/components/icons/CopyIcon.jsx +0 -75
- package/src/components/icons/CreatedWorkspaceIcon.jsx +0 -70
- package/src/components/icons/DynamicWorkspaceIcon.jsx +0 -125
- package/src/components/icons/StaticWorkspaceIcon.jsx +0 -119
- package/src/components/icons/TriangleExclamationIcon.jsx +0 -26
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
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>
|
|
@@ -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,71 +1,71 @@
|
|
|
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 ButtonFullRounded from './src/components/ButtonFullRounded'
|
|
8
|
-
import Checkbox from './src/components/Checkbox'
|
|
9
|
-
import DetailedMetric from './src/components/DetailedMetric'
|
|
10
|
-
import DropDown from './src/components/DropDown'
|
|
11
|
-
import FollowUs from './src/components/FollowUs'
|
|
12
|
-
import GHLoginButton from './src/components/GHLoginButton'
|
|
13
|
-
import HorizontalSeparator from './src/components/HorizontalSeparator'
|
|
14
|
-
import Forms from './src/components/forms'
|
|
15
|
-
import Icons from './src/components/icons'
|
|
16
|
-
import InfoBox from './src/components/InfoBox'
|
|
17
|
-
import Sidebar from './src/components/Sidebar'
|
|
18
|
-
import Layout from './src/components/layouts/Layout'
|
|
19
|
-
import List from './src/components/List'
|
|
20
|
-
import ListElement from './src/components/ListElement'
|
|
21
|
-
import Loadable from './src/components/Loadable'
|
|
22
|
-
import Loader from './src/components/Loader'
|
|
23
|
-
import LoginButton from './src/components/LoginButton'
|
|
24
|
-
import Logo from './src/components/Logo'
|
|
25
|
-
import Modal from './src/components/Modal'
|
|
26
|
-
import PlatformaticIcon from './src/components/PlatformaticIcon'
|
|
27
|
-
import Playground from './src/components/Playground'
|
|
28
|
-
import SearchBar from './src/components/SearchBar'
|
|
29
|
-
import SimpleMetric from './src/components/SimpleMetric'
|
|
30
|
-
import Status from './src/components/Status'
|
|
31
|
-
import TabbedWindow from './src/components/TabbedWindow'
|
|
32
|
-
import TextWithLabel from './src/components/TextWithLabel'
|
|
33
|
-
import TwoColumnsLayout from './src/components/layouts/TwoColumnsLayout'
|
|
34
|
-
import Versions from './src/components/Versions'
|
|
35
|
-
import VerticalSeparator from './src/components/VerticalSeparator'
|
|
36
|
-
|
|
37
|
-
export {
|
|
38
|
-
BorderedBox,
|
|
39
|
-
BorderedText,
|
|
40
|
-
Box,
|
|
41
|
-
Button,
|
|
42
|
-
ButtonFullRounded,
|
|
43
|
-
Checkbox,
|
|
44
|
-
DetailedMetric,
|
|
45
|
-
DropDown,
|
|
46
|
-
FollowUs,
|
|
47
|
-
HorizontalSeparator,
|
|
48
|
-
GHLoginButton,
|
|
49
|
-
Forms,
|
|
50
|
-
Icons,
|
|
51
|
-
InfoBox,
|
|
52
|
-
Sidebar,
|
|
53
|
-
Layout,
|
|
54
|
-
List,
|
|
55
|
-
ListElement,
|
|
56
|
-
Loadable,
|
|
57
|
-
Loader,
|
|
58
|
-
LoginButton,
|
|
59
|
-
Logo,
|
|
60
|
-
Modal,
|
|
61
|
-
PlatformaticIcon,
|
|
62
|
-
Playground,
|
|
63
|
-
SearchBar,
|
|
64
|
-
SimpleMetric,
|
|
65
|
-
Status,
|
|
66
|
-
TabbedWindow,
|
|
67
|
-
TextWithLabel,
|
|
68
|
-
TwoColumnsLayout,
|
|
69
|
-
Versions,
|
|
70
|
-
VerticalSeparator
|
|
71
|
-
}
|
|
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 ButtonFullRounded from './src/components/ButtonFullRounded'
|
|
8
|
+
import Checkbox from './src/components/Checkbox'
|
|
9
|
+
import DetailedMetric from './src/components/DetailedMetric'
|
|
10
|
+
import DropDown from './src/components/DropDown'
|
|
11
|
+
import FollowUs from './src/components/FollowUs'
|
|
12
|
+
import GHLoginButton from './src/components/GHLoginButton'
|
|
13
|
+
import HorizontalSeparator from './src/components/HorizontalSeparator'
|
|
14
|
+
import Forms from './src/components/forms'
|
|
15
|
+
import Icons from './src/components/icons'
|
|
16
|
+
import InfoBox from './src/components/InfoBox'
|
|
17
|
+
import Sidebar from './src/components/Sidebar'
|
|
18
|
+
import Layout from './src/components/layouts/Layout'
|
|
19
|
+
import List from './src/components/List'
|
|
20
|
+
import ListElement from './src/components/ListElement'
|
|
21
|
+
import Loadable from './src/components/Loadable'
|
|
22
|
+
import Loader from './src/components/Loader'
|
|
23
|
+
import LoginButton from './src/components/LoginButton'
|
|
24
|
+
import Logo from './src/components/Logo'
|
|
25
|
+
import Modal from './src/components/Modal'
|
|
26
|
+
import PlatformaticIcon from './src/components/PlatformaticIcon'
|
|
27
|
+
import Playground from './src/components/Playground'
|
|
28
|
+
import SearchBar from './src/components/SearchBar'
|
|
29
|
+
import SimpleMetric from './src/components/SimpleMetric'
|
|
30
|
+
import Status from './src/components/Status'
|
|
31
|
+
import TabbedWindow from './src/components/TabbedWindow'
|
|
32
|
+
import TextWithLabel from './src/components/TextWithLabel'
|
|
33
|
+
import TwoColumnsLayout from './src/components/layouts/TwoColumnsLayout'
|
|
34
|
+
import Versions from './src/components/Versions'
|
|
35
|
+
import VerticalSeparator from './src/components/VerticalSeparator'
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
BorderedBox,
|
|
39
|
+
BorderedText,
|
|
40
|
+
Box,
|
|
41
|
+
Button,
|
|
42
|
+
ButtonFullRounded,
|
|
43
|
+
Checkbox,
|
|
44
|
+
DetailedMetric,
|
|
45
|
+
DropDown,
|
|
46
|
+
FollowUs,
|
|
47
|
+
HorizontalSeparator,
|
|
48
|
+
GHLoginButton,
|
|
49
|
+
Forms,
|
|
50
|
+
Icons,
|
|
51
|
+
InfoBox,
|
|
52
|
+
Sidebar,
|
|
53
|
+
Layout,
|
|
54
|
+
List,
|
|
55
|
+
ListElement,
|
|
56
|
+
Loadable,
|
|
57
|
+
Loader,
|
|
58
|
+
LoginButton,
|
|
59
|
+
Logo,
|
|
60
|
+
Modal,
|
|
61
|
+
PlatformaticIcon,
|
|
62
|
+
Playground,
|
|
63
|
+
SearchBar,
|
|
64
|
+
SimpleMetric,
|
|
65
|
+
Status,
|
|
66
|
+
TabbedWindow,
|
|
67
|
+
TextWithLabel,
|
|
68
|
+
TwoColumnsLayout,
|
|
69
|
+
Versions,
|
|
70
|
+
VerticalSeparator
|
|
71
|
+
}
|
package/package.json
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@platformatic/ui-components",
|
|
3
|
-
"description": "Platformatic UI Components",
|
|
4
|
-
"version": "0.1.
|
|
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.51",
|
|
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
|
+
}
|
package/postcss.config.cjs
CHANGED
|
@@ -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>
|
package/public/api-icon.svg
CHANGED
|
@@ -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,18 +1,18 @@
|
|
|
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, backgroundColor = 'dark-blue' } = props
|
|
9
|
-
const borderColor = getColor('border', color)
|
|
10
|
-
const styledBackgroundColor = styles[`background-color-${backgroundColor}`]
|
|
11
|
-
const className = `${styles.borderedBox} ${commonStyles.bordered} ${classes} ${borderColor} ${styledBackgroundColor}`
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<div className={className}>
|
|
15
|
-
{children}
|
|
16
|
-
</div>
|
|
17
|
-
)
|
|
18
|
-
}
|
|
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, backgroundColor = 'dark-blue' } = props
|
|
9
|
+
const borderColor = getColor('border', color)
|
|
10
|
+
const styledBackgroundColor = styles[`background-color-${backgroundColor}`]
|
|
11
|
+
const className = `${styles.borderedBox} ${commonStyles.bordered} ${classes} ${borderColor} ${styledBackgroundColor}`
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<div className={className}>
|
|
15
|
+
{children}
|
|
16
|
+
</div>
|
|
17
|
+
)
|
|
18
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
.borderedBox {
|
|
2
|
-
@apply rounded-md p-5 text-white flex-1 gap-y-4;
|
|
3
|
-
}
|
|
4
|
-
.background-color-dark-blue{
|
|
5
|
-
@apply bg-dark-blue !important;
|
|
6
|
-
}
|
|
7
|
-
.background-color-transparent{
|
|
8
|
-
@apply bg-transparent ;
|
|
1
|
+
.borderedBox {
|
|
2
|
+
@apply rounded-md p-5 text-white flex-1 gap-y-4;
|
|
3
|
+
}
|
|
4
|
+
.background-color-dark-blue{
|
|
5
|
+
@apply bg-dark-blue !important;
|
|
6
|
+
}
|
|
7
|
+
.background-color-transparent{
|
|
8
|
+
@apply bg-transparent ;
|
|
9
9
|
}
|
|
@@ -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
|
+
}
|