@platformatic/ui-components 0.1.91 → 0.1.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.d4907a34.js +206 -0
- package/dist/index.html +1 -1
- package/index.js +2 -0
- package/package.json +1 -1
- package/src/components/Logo.jsx +9 -5
- package/src/components/Logo.module.css +4 -1
- package/src/components/LogoDropDown.jsx +82 -0
- package/src/components/LogoDropDown.module.css +30 -0
- package/src/components/Modal.jsx +68 -10
- package/src/components/Modal.module.css +7 -1
- package/src/components/backgrounds/AppBackgroundIcon.jsx +12 -12
- package/src/components/backgrounds/LensBackgroundIcon.jsx +2 -2
- package/src/components/backgrounds/TimerBackgroundIcon.jsx +5 -5
- package/src/components/constants.js +8 -3
- package/src/components/icons/CheckListIcon.jsx +98 -0
- package/src/components/icons/SlotIcon.jsx +88 -0
- package/src/components/icons/TeamsIcon.jsx +91 -0
- package/src/components/icons/WorkspaceEmptyIcon.jsx +1 -1
- package/src/components/icons/index.js +7 -0
- package/src/components/logos/AdvancedLogo.jsx +58 -0
- package/src/components/logos/BasicLogo.jsx +22 -20
- package/src/components/logos/FreeLogo.jsx +22 -20
- package/src/components/logos/ProLogo.jsx +60 -0
- package/src/components/logos/index.js +5 -1
- package/src/stories/LogoDropDown.stories.jsx +43 -0
- package/src/stories/Modal.stories.jsx +15 -3
- package/dist/assets/index.e3fdc2c7.js +0 -206
|
@@ -4,29 +4,31 @@ import { MAIN_DARK_BLUE, WHITE } from '../constants'
|
|
|
4
4
|
|
|
5
5
|
function FreeLogo ({ backgroundColor, width, height }) {
|
|
6
6
|
let icon = (
|
|
7
|
-
<svg width={width} height={height} viewBox='0 0
|
|
8
|
-
<path d='
|
|
9
|
-
<path d='
|
|
10
|
-
<path d='
|
|
11
|
-
<path d='
|
|
12
|
-
<path opacity={0.2} d='
|
|
13
|
-
<path opacity={0.4} d='
|
|
14
|
-
<path opacity={0.7} d='
|
|
15
|
-
<path d='
|
|
7
|
+
<svg width={width} height={height} viewBox='0 0 399 183' fill='none' xmlns='http://www.w3.org/2000/svg'>
|
|
8
|
+
<path d='M187.725 65.0947H354.562C374.696 65.0947 391.018 81.4167 391.018 101.551V101.551C391.018 121.685 374.696 138.007 354.562 138.007H187.725L215.041 123.424L223.971 97.3844L208.737 75.5107L187.725 65.0947Z' fill='#00283D' />
|
|
9
|
+
<path d='M65.0797 133.842H192.607V133.802C197.44 133.577 202.16 132.272 206.421 129.983C210.682 127.694 214.374 124.479 217.227 120.575C220.079 116.672 222.018 112.179 222.902 107.427C223.785 102.676 223.591 97.787 222.332 93.1206C221.074 88.4542 218.783 84.1293 215.63 80.4644C212.476 76.7994 208.54 73.8878 204.111 71.9441C199.681 70.0003 194.872 69.0738 190.037 69.2329C185.201 69.3919 180.463 70.6325 176.172 72.8632C173.523 66.7552 169.514 61.3312 164.451 57.0043C159.387 52.6774 153.402 49.5615 146.951 47.8938M37.7227 47.8938C28.3321 50.3126 20.0132 55.7817 14.0749 63.4404C8.13652 71.0992 4.91582 80.513 4.91956 90.2004C4.9233 99.8879 8.15125 109.299 14.0955 116.953C20.0398 124.608 28.3629 130.07 37.7553 132.482' stroke='#00283D' strokeWidth={8.40486} strokeLinecap='round' strokeLinejoin='round' />
|
|
10
|
+
<path d='M88.1708 74.6802L71.1563 80.6526L78.644 96.5167' stroke='#21FA90' strokeWidth={8.40486} strokeLinecap='round' strokeLinejoin='round' />
|
|
11
|
+
<path d='M71.5396 80.9337C79.298 85.4911 88.3466 87.3595 97.278 86.2484C106.209 85.1372 114.523 81.1088 120.925 74.7896C127.328 68.4705 131.46 60.2149 132.68 51.3069C133.899 42.399 132.138 33.3381 127.669 25.5336C123.201 17.7291 116.276 11.6185 107.971 8.15237C99.6664 4.6862 90.4479 4.05875 81.7493 6.36759C73.0508 8.67644 65.3599 13.7922 59.8729 20.919C54.3859 28.0459 51.4105 36.7844 51.4093 45.7753V106.596' stroke='#21FA90' strokeWidth={8.40486} strokeLinecap='round' strokeLinejoin='round' />
|
|
12
|
+
<path opacity={0.2} d='M51.4093 170.895V178' stroke='#21FA90' strokeWidth={8.40486} strokeLinecap='round' strokeLinejoin='round' />
|
|
13
|
+
<path opacity={0.4} d='M51.4746 148.537V159.761' stroke='#21FA90' strokeWidth={8.40486} strokeLinecap='round' strokeLinejoin='round' />
|
|
14
|
+
<path opacity={0.7} d='M51.4093 118.154V136.918' stroke='#21FA90' strokeWidth={8.40486} strokeLinecap='round' strokeLinejoin='round' />
|
|
15
|
+
<path d='M248.293 99.863H265.943V106.692H248.293V99.863ZM248.923 120.087H240.413V83.3159H268.202V90.1448H248.923V120.087ZM272.872 120.087V91.8258H280.699V99.8104L279.596 97.4991C280.436 95.5029 281.785 93.9971 283.641 92.9815C285.497 91.9309 287.756 91.4056 290.417 91.4056V98.9699C290.067 98.9349 289.752 98.9174 289.472 98.9174C289.192 98.8824 288.894 98.8649 288.579 98.8649C286.337 98.8649 284.516 99.5128 283.116 100.809C281.75 102.069 281.067 104.048 281.067 106.744V120.087H272.872ZM309.059 120.507C305.837 120.507 303 119.877 300.549 118.616C298.133 117.356 296.259 115.64 294.928 113.468C293.598 111.262 292.932 108.758 292.932 105.956C292.932 103.12 293.58 100.616 294.876 98.4446C296.207 96.2384 298.01 94.5224 300.286 93.2967C302.563 92.0359 305.137 91.4056 308.008 91.4056C310.775 91.4056 313.261 92.0009 315.468 93.1916C317.709 94.3473 319.477 96.0282 320.773 98.2345C322.069 100.406 322.717 103.015 322.717 106.062C322.717 106.377 322.699 106.744 322.664 107.165C322.629 107.55 322.594 107.918 322.559 108.268H299.603V103.488H318.252L315.1 104.906C315.1 103.435 314.802 102.157 314.207 101.071C313.612 99.9855 312.789 99.145 311.738 98.5497C310.687 97.9193 309.462 97.6042 308.061 97.6042C306.66 97.6042 305.417 97.9193 304.331 98.5497C303.281 99.145 302.458 100.003 301.862 101.124C301.267 102.209 300.969 103.505 300.969 105.011V106.272C300.969 107.813 301.302 109.178 301.967 110.369C302.668 111.525 303.631 112.418 304.857 113.048C306.117 113.643 307.588 113.941 309.269 113.941C310.775 113.941 312.088 113.713 313.209 113.258C314.365 112.803 315.415 112.12 316.361 111.21L320.721 115.937C319.425 117.408 317.797 118.546 315.835 119.352C313.874 120.122 311.615 120.507 309.059 120.507ZM342.198 120.507C338.976 120.507 336.14 119.877 333.688 118.616C331.272 117.356 329.398 115.64 328.068 113.468C326.737 111.262 326.071 108.758 326.071 105.956C326.071 103.12 326.719 100.616 328.015 98.4446C329.346 96.2384 331.149 94.5224 333.426 93.2967C335.702 92.0359 338.276 91.4056 341.148 91.4056C343.914 91.4056 346.401 92.0009 348.607 93.1916C350.848 94.3473 352.617 96.0282 353.913 98.2345C355.208 100.406 355.856 103.015 355.856 106.062C355.856 106.377 355.839 106.744 355.804 107.165C355.769 107.55 355.734 107.918 355.699 108.268H332.743V103.488H351.391L348.239 104.906C348.239 103.435 347.942 102.157 347.346 101.071C346.751 99.9855 345.928 99.145 344.877 98.5497C343.827 97.9193 342.601 97.6042 341.2 97.6042C339.799 97.6042 338.556 97.9193 337.471 98.5497C336.42 99.145 335.597 100.003 335.002 101.124C334.406 102.209 334.109 103.505 334.109 105.011V106.272C334.109 107.813 334.441 109.178 335.107 110.369C335.807 111.525 336.77 112.418 337.996 113.048C339.257 113.643 340.727 113.941 342.408 113.941C343.914 113.941 345.227 113.713 346.348 113.258C347.504 112.803 348.554 112.12 349.5 111.21L353.86 115.937C352.564 117.408 350.936 118.546 348.975 119.352C347.014 120.122 344.755 120.507 342.198 120.507Z' fill='white' />
|
|
16
|
+
|
|
16
17
|
</svg>
|
|
17
18
|
)
|
|
18
19
|
|
|
19
20
|
if (backgroundColor === MAIN_DARK_BLUE) {
|
|
20
21
|
icon = (
|
|
21
|
-
<svg width={width} height={height} viewBox='0 0
|
|
22
|
-
<path d='
|
|
23
|
-
<path d='
|
|
24
|
-
<path d='
|
|
25
|
-
<path d='
|
|
26
|
-
<path opacity={0.2} d='
|
|
27
|
-
<path opacity={0.4} d='
|
|
28
|
-
<path opacity={0.7} d='
|
|
29
|
-
<path d='
|
|
22
|
+
<svg width={width} height={height} viewBox='0 0 399 183' fill='none' xmlns='http://www.w3.org/2000/svg'>
|
|
23
|
+
<path d='M187.725 65.0947H354.562C374.696 65.0947 391.018 81.4167 391.018 101.551V101.551C391.018 121.685 374.696 138.007 354.562 138.007H187.725L215.041 123.424L223.971 97.3844L208.737 75.5107L187.725 65.0947Z' fill='white' />
|
|
24
|
+
<path d='M65.0797 133.842H192.607V133.802C197.44 133.577 202.16 132.272 206.421 129.983C210.682 127.694 214.374 124.479 217.227 120.575C220.079 116.672 222.018 112.179 222.902 107.427C223.785 102.676 223.591 97.787 222.332 93.1206C221.074 88.4542 218.783 84.1293 215.63 80.4644C212.476 76.7994 208.54 73.8878 204.111 71.9441C199.681 70.0003 194.872 69.0738 190.037 69.2329C185.201 69.3919 180.463 70.6325 176.172 72.8632C173.523 66.7552 169.514 61.3312 164.451 57.0043C159.387 52.6774 153.402 49.5615 146.951 47.8938M37.7227 47.8938C28.3321 50.3126 20.0132 55.7817 14.0749 63.4404C8.13652 71.0992 4.91582 80.513 4.91956 90.2004C4.9233 99.8879 8.15125 109.299 14.0955 116.953C20.0398 124.608 28.3629 130.07 37.7553 132.482' stroke='white' strokeWidth={8.40486} strokeLinecap='round' strokeLinejoin='round' />
|
|
25
|
+
<path d='M88.1708 74.6802L71.1563 80.6526L78.644 96.5167' stroke='#21FA90' strokeWidth={8.40486} strokeLinecap='round' strokeLinejoin='round' />
|
|
26
|
+
<path d='M71.5396 80.9337C79.298 85.4911 88.3466 87.3595 97.278 86.2484C106.209 85.1372 114.523 81.1088 120.925 74.7896C127.328 68.4705 131.46 60.2149 132.68 51.3069C133.899 42.399 132.138 33.3381 127.669 25.5336C123.201 17.7291 116.276 11.6185 107.971 8.15237C99.6664 4.6862 90.4479 4.05875 81.7493 6.36759C73.0508 8.67644 65.3599 13.7922 59.8729 20.919C54.3859 28.0459 51.4105 36.7844 51.4093 45.7753V106.596' stroke='#21FA90' strokeWidth={8.40486} strokeLinecap='round' strokeLinejoin='round' />
|
|
27
|
+
<path opacity={0.2} d='M51.4093 170.895V178' stroke='#21FA90' strokeWidth={8.40486} strokeLinecap='round' strokeLinejoin='round' />
|
|
28
|
+
<path opacity={0.4} d='M51.4746 148.537V159.761' stroke='#21FA90' strokeWidth={8.40486} strokeLinecap='round' strokeLinejoin='round' />
|
|
29
|
+
<path opacity={0.7} d='M51.4093 118.154V136.918' stroke='#21FA90' strokeWidth={8.40486} strokeLinecap='round' strokeLinejoin='round' />
|
|
30
|
+
<path d='M248.293 99.863H265.943V106.692H248.293V99.863ZM248.923 120.087H240.413V83.3159H268.202V90.1448H248.923V120.087ZM272.872 120.087V91.8258H280.699V99.8104L279.596 97.4991C280.436 95.5029 281.785 93.9971 283.641 92.9815C285.497 91.9309 287.756 91.4056 290.417 91.4056V98.9699C290.067 98.9349 289.752 98.9174 289.472 98.9174C289.192 98.8824 288.894 98.8649 288.579 98.8649C286.337 98.8649 284.516 99.5128 283.116 100.809C281.75 102.069 281.067 104.048 281.067 106.744V120.087H272.872ZM309.059 120.507C305.837 120.507 303 119.877 300.549 118.616C298.133 117.356 296.259 115.64 294.928 113.468C293.598 111.262 292.932 108.758 292.932 105.956C292.932 103.12 293.58 100.616 294.876 98.4446C296.207 96.2384 298.01 94.5224 300.286 93.2967C302.563 92.0359 305.137 91.4056 308.008 91.4056C310.775 91.4056 313.261 92.0009 315.468 93.1916C317.709 94.3473 319.477 96.0282 320.773 98.2345C322.069 100.406 322.717 103.015 322.717 106.062C322.717 106.377 322.699 106.744 322.664 107.165C322.629 107.55 322.594 107.918 322.559 108.268H299.603V103.488H318.252L315.1 104.906C315.1 103.435 314.802 102.157 314.207 101.071C313.612 99.9855 312.789 99.145 311.738 98.5497C310.687 97.9193 309.462 97.6042 308.061 97.6042C306.66 97.6042 305.417 97.9193 304.331 98.5497C303.281 99.145 302.458 100.003 301.862 101.124C301.267 102.209 300.969 103.505 300.969 105.011V106.272C300.969 107.813 301.302 109.178 301.967 110.369C302.668 111.525 303.631 112.418 304.857 113.048C306.117 113.643 307.588 113.941 309.269 113.941C310.775 113.941 312.088 113.713 313.209 113.258C314.365 112.803 315.415 112.12 316.361 111.21L320.721 115.937C319.425 117.408 317.797 118.546 315.835 119.352C313.874 120.122 311.615 120.507 309.059 120.507ZM342.198 120.507C338.976 120.507 336.14 119.877 333.688 118.616C331.272 117.356 329.398 115.64 328.068 113.468C326.737 111.262 326.071 108.758 326.071 105.956C326.071 103.12 326.719 100.616 328.015 98.4446C329.346 96.2384 331.149 94.5224 333.426 93.2967C335.702 92.0359 338.276 91.4056 341.148 91.4056C343.914 91.4056 346.401 92.0009 348.607 93.1916C350.848 94.3473 352.617 96.0282 353.913 98.2345C355.208 100.406 355.856 103.015 355.856 106.062C355.856 106.377 355.839 106.744 355.804 107.165C355.769 107.55 355.734 107.918 355.699 108.268H332.743V103.488H351.391L348.239 104.906C348.239 103.435 347.942 102.157 347.346 101.071C346.751 99.9855 345.928 99.145 344.877 98.5497C343.827 97.9193 342.601 97.6042 341.2 97.6042C339.799 97.6042 338.556 97.9193 337.471 98.5497C336.42 99.145 335.597 100.003 335.002 101.124C334.406 102.209 334.109 103.505 334.109 105.011V106.272C334.109 107.813 334.441 109.178 335.107 110.369C335.807 111.525 336.77 112.418 337.996 113.048C339.257 113.643 340.727 113.941 342.408 113.941C343.914 113.941 345.227 113.713 346.348 113.258C347.504 112.803 348.554 112.12 349.5 111.21L353.86 115.937C352.564 117.408 350.936 118.546 348.975 119.352C347.014 120.122 344.755 120.507 342.198 120.507Z' fill='#00283D' />
|
|
31
|
+
|
|
30
32
|
</svg>
|
|
31
33
|
)
|
|
32
34
|
}
|
|
@@ -51,8 +53,8 @@ FreeLogo.propTypes = {
|
|
|
51
53
|
|
|
52
54
|
FreeLogo.defaultProps = {
|
|
53
55
|
backgroundColor: WHITE,
|
|
54
|
-
width:
|
|
55
|
-
height:
|
|
56
|
+
width: 399,
|
|
57
|
+
height: 183
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
export default FreeLogo
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import PropTypes from 'prop-types'
|
|
3
|
+
import { MAIN_DARK_BLUE, WHITE } from '../constants'
|
|
4
|
+
|
|
5
|
+
function ProLogo ({ backgroundColor, width, height }) {
|
|
6
|
+
let icon = (
|
|
7
|
+
<svg width={width} height={height} viewBox='0 0 370 182' fill='none' xmlns='http://www.w3.org/2000/svg'>
|
|
8
|
+
<path d='M187.437 64.9734H332.966C353.06 64.9734 369.349 81.2623 369.349 101.356V101.356C369.349 121.449 353.06 137.738 332.966 137.738H187.437L214.697 123.185L223.609 97.1978L208.406 75.3684L187.437 64.9734Z' fill='#00283D' />
|
|
9
|
+
<path d='M65.0386 133.582H192.308V133.542C197.131 133.317 201.842 132.015 206.094 129.73C210.347 127.446 214.032 124.238 216.878 120.342C219.725 116.446 221.66 111.962 222.542 107.221C223.424 102.479 223.23 97.5995 221.974 92.9426C220.718 88.2856 218.432 83.9694 215.285 80.3119C212.137 76.6544 208.209 73.7487 203.789 71.8088C199.368 69.8689 194.569 68.9443 189.743 69.1031C184.918 69.2618 180.189 70.4999 175.906 72.7261C173.263 66.6304 169.262 61.2174 164.209 56.8992C159.155 52.5811 153.182 49.4715 146.744 47.8071M37.7368 47.8071C28.3653 50.221 20.0632 55.6791 14.1368 63.3224C8.21047 70.9657 4.99627 80.3604 5 90.0283C5.00373 99.6962 8.22517 109.088 14.1574 116.727C20.0897 124.366 28.396 129.818 37.7694 132.224' stroke='#00283D' strokeWidth={8.38788} strokeLinecap='round' strokeLinejoin='round' />
|
|
10
|
+
<path d='M88.0831 74.5394L71.1029 80.4998L78.5755 96.3318' stroke='#21FA90' strokeWidth={8.38788} strokeLinecap='round' strokeLinejoin='round' />
|
|
11
|
+
<path d='M71.4855 80.7804C79.2282 85.3286 88.2586 87.1933 97.1719 86.0844C106.085 84.9755 114.382 80.9551 120.771 74.6488C127.161 68.3424 131.285 60.1034 132.502 51.2135C133.719 42.3235 131.961 33.281 127.502 25.4922C123.042 17.7035 116.131 11.6053 107.843 8.14612C99.5555 4.68696 90.3556 4.06077 81.6746 6.36495C72.9937 8.66913 65.3183 13.7745 59.8424 20.887C54.3665 27.9995 51.397 36.7203 51.3959 45.693V106.391' stroke='#21FA90' strokeWidth={8.38788} strokeLinecap='round' strokeLinejoin='round' />
|
|
12
|
+
<path opacity={0.2} d='M51.3959 170.56V177.651' stroke='#21FA90' strokeWidth={8.38788} strokeLinecap='round' strokeLinejoin='round' />
|
|
13
|
+
<path opacity={0.4} d='M51.4611 148.247V159.448' stroke='#21FA90' strokeWidth={8.38788} strokeLinecap='round' strokeLinejoin='round' />
|
|
14
|
+
<path opacity={0.7} d='M51.3959 117.925V136.652' stroke='#21FA90' strokeWidth={8.38788} strokeLinecap='round' strokeLinejoin='round' />
|
|
15
|
+
<path d='M240.018 119.958V83.2607H255.903C259.188 83.2607 262.019 83.8024 264.395 84.8858C266.772 85.9343 268.607 87.4546 269.9 89.4467C271.193 91.4388 271.839 93.8154 271.839 96.5764C271.839 99.3025 271.193 101.662 269.9 103.654C268.607 105.646 266.772 107.184 264.395 108.267C262.019 109.316 259.188 109.84 255.903 109.84H244.736L248.511 106.013V119.958H240.018ZM248.511 106.956L244.736 102.92H255.431C258.052 102.92 260.009 102.361 261.302 101.242C262.595 100.124 263.242 98.5685 263.242 96.5764C263.242 94.5494 262.595 92.9766 261.302 91.8582C260.009 90.7399 258.052 90.1807 255.431 90.1807H244.736L248.511 86.144V106.956ZM277.326 119.958V91.7534H285.137V99.7219L284.036 97.4152C284.875 95.4231 286.221 93.9203 288.073 92.9067C289.925 91.8582 292.18 91.334 294.836 91.334V98.8831C294.486 98.8481 294.172 98.8307 293.892 98.8307C293.612 98.7957 293.315 98.7782 293.001 98.7782C290.764 98.7782 288.947 99.4248 287.549 100.718C286.186 101.976 285.504 103.951 285.504 106.642V119.958H277.326ZM312.863 120.377C309.857 120.377 307.184 119.748 304.842 118.49C302.536 117.232 300.701 115.519 299.338 113.352C298.01 111.15 297.346 108.651 297.346 105.856C297.346 103.025 298.01 100.526 299.338 98.3588C300.701 96.157 302.536 94.4445 304.842 93.2213C307.184 91.9631 309.857 91.334 312.863 91.334C315.834 91.334 318.49 91.9631 320.832 93.2213C323.173 94.4445 325.008 96.1396 326.336 98.3064C327.664 100.473 328.328 102.99 328.328 105.856C328.328 108.651 327.664 111.15 326.336 113.352C325.008 115.519 323.173 117.232 320.832 118.49C318.49 119.748 315.834 120.377 312.863 120.377ZM312.863 113.667C314.226 113.667 315.449 113.352 316.533 112.723C317.616 112.094 318.472 111.203 319.102 110.049C319.731 108.861 320.045 107.463 320.045 105.856C320.045 104.213 319.731 102.815 319.102 101.662C318.472 100.508 317.616 99.617 316.533 98.9879C315.449 98.3589 314.226 98.0443 312.863 98.0443C311.5 98.0443 310.277 98.3589 309.193 98.9879C308.11 99.617 307.236 100.508 306.572 101.662C305.943 102.815 305.629 104.213 305.629 105.856C305.629 107.463 305.943 108.861 306.572 110.049C307.236 111.203 308.11 112.094 309.193 112.723C310.277 113.352 311.5 113.667 312.863 113.667Z' fill='white' />
|
|
16
|
+
|
|
17
|
+
</svg>
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
if (backgroundColor === MAIN_DARK_BLUE) {
|
|
21
|
+
icon = (
|
|
22
|
+
<svg width={width} height={height} viewBox='0 0 370 182' fill='none' xmlns='http://www.w3.org/2000/svg'>
|
|
23
|
+
<path d='M187.437 64.9734H332.966C353.06 64.9734 369.349 81.2623 369.349 101.356V101.356C369.349 121.449 353.06 137.738 332.966 137.738H187.437L214.697 123.185L223.609 97.1978L208.406 75.3684L187.437 64.9734Z' fill='white' />
|
|
24
|
+
<path d='M65.0386 133.582H192.308V133.542C197.131 133.317 201.842 132.015 206.094 129.73C210.347 127.446 214.032 124.238 216.878 120.342C219.725 116.446 221.66 111.962 222.542 107.221C223.424 102.479 223.23 97.5995 221.974 92.9426C220.718 88.2856 218.432 83.9694 215.285 80.3119C212.137 76.6544 208.209 73.7487 203.789 71.8088C199.368 69.8689 194.569 68.9443 189.743 69.1031C184.918 69.2618 180.189 70.4999 175.906 72.7261C173.263 66.6304 169.262 61.2174 164.209 56.8992C159.155 52.5811 153.182 49.4715 146.744 47.8071M37.7368 47.8071C28.3653 50.221 20.0632 55.6791 14.1368 63.3224C8.21047 70.9657 4.99627 80.3604 5 90.0283C5.00373 99.6962 8.22517 109.088 14.1574 116.727C20.0897 124.366 28.396 129.818 37.7694 132.224' stroke='white' strokeWidth={8.38788} strokeLinecap='round' strokeLinejoin='round' />
|
|
25
|
+
<path d='M88.0831 74.5394L71.1029 80.4998L78.5755 96.3318' stroke='#21FA90' strokeWidth={8.38788} strokeLinecap='round' strokeLinejoin='round' />
|
|
26
|
+
<path d='M71.4855 80.7804C79.2282 85.3286 88.2586 87.1933 97.1719 86.0844C106.085 84.9755 114.382 80.9551 120.771 74.6488C127.161 68.3424 131.285 60.1034 132.502 51.2135C133.719 42.3235 131.961 33.281 127.502 25.4922C123.042 17.7035 116.131 11.6053 107.843 8.14612C99.5555 4.68696 90.3556 4.06077 81.6746 6.36495C72.9937 8.66913 65.3183 13.7745 59.8424 20.887C54.3665 27.9995 51.397 36.7203 51.3959 45.693V106.391' stroke='#21FA90' strokeWidth={8.38788} strokeLinecap='round' strokeLinejoin='round' />
|
|
27
|
+
<path opacity={0.2} d='M51.3959 170.56V177.651' stroke='#21FA90' strokeWidth={8.38788} strokeLinecap='round' strokeLinejoin='round' />
|
|
28
|
+
<path opacity={0.4} d='M51.4611 148.247V159.448' stroke='#21FA90' strokeWidth={8.38788} strokeLinecap='round' strokeLinejoin='round' />
|
|
29
|
+
<path opacity={0.7} d='M51.3959 117.925V136.652' stroke='#21FA90' strokeWidth={8.38788} strokeLinecap='round' strokeLinejoin='round' />
|
|
30
|
+
<path d='M240.018 119.958V83.2607H255.903C259.188 83.2607 262.019 83.8024 264.395 84.8858C266.772 85.9343 268.607 87.4546 269.9 89.4467C271.193 91.4388 271.839 93.8154 271.839 96.5764C271.839 99.3025 271.193 101.662 269.9 103.654C268.607 105.646 266.772 107.184 264.395 108.267C262.019 109.316 259.188 109.84 255.903 109.84H244.736L248.511 106.013V119.958H240.018ZM248.511 106.956L244.736 102.92H255.431C258.052 102.92 260.009 102.361 261.302 101.242C262.595 100.124 263.242 98.5685 263.242 96.5764C263.242 94.5494 262.595 92.9766 261.302 91.8582C260.009 90.7399 258.052 90.1807 255.431 90.1807H244.736L248.511 86.144V106.956ZM277.326 119.958V91.7534H285.137V99.7219L284.036 97.4152C284.875 95.4231 286.221 93.9203 288.073 92.9067C289.925 91.8582 292.18 91.334 294.836 91.334V98.8831C294.486 98.8481 294.172 98.8307 293.892 98.8307C293.612 98.7957 293.315 98.7782 293.001 98.7782C290.764 98.7782 288.947 99.4248 287.549 100.718C286.186 101.976 285.504 103.951 285.504 106.642V119.958H277.326ZM312.863 120.377C309.857 120.377 307.184 119.748 304.842 118.49C302.536 117.232 300.701 115.519 299.338 113.352C298.01 111.15 297.346 108.651 297.346 105.856C297.346 103.025 298.01 100.526 299.338 98.3588C300.701 96.157 302.536 94.4445 304.842 93.2213C307.184 91.9631 309.857 91.334 312.863 91.334C315.834 91.334 318.49 91.9631 320.832 93.2213C323.173 94.4445 325.008 96.1396 326.336 98.3064C327.664 100.473 328.328 102.99 328.328 105.856C328.328 108.651 327.664 111.15 326.336 113.352C325.008 115.519 323.173 117.232 320.832 118.49C318.49 119.748 315.834 120.377 312.863 120.377ZM312.863 113.667C314.226 113.667 315.449 113.352 316.533 112.723C317.616 112.094 318.472 111.203 319.102 110.049C319.731 108.861 320.045 107.463 320.045 105.856C320.045 104.213 319.731 102.815 319.102 101.662C318.472 100.508 317.616 99.617 316.533 98.9879C315.449 98.3589 314.226 98.0443 312.863 98.0443C311.5 98.0443 310.277 98.3589 309.193 98.9879C308.11 99.617 307.236 100.508 306.572 101.662C305.943 102.815 305.629 104.213 305.629 105.856C305.629 107.463 305.943 108.861 306.572 110.049C307.236 111.203 308.11 112.094 309.193 112.723C310.277 113.352 311.5 113.667 312.863 113.667Z' fill='#00283D' />
|
|
31
|
+
|
|
32
|
+
</svg>
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return icon
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
ProLogo.propTypes = {
|
|
40
|
+
/**
|
|
41
|
+
* background color of the button
|
|
42
|
+
*/
|
|
43
|
+
backgroundColor: PropTypes.oneOf([MAIN_DARK_BLUE, WHITE]),
|
|
44
|
+
/**
|
|
45
|
+
* width
|
|
46
|
+
*/
|
|
47
|
+
width: PropTypes.number,
|
|
48
|
+
/**
|
|
49
|
+
* height
|
|
50
|
+
*/
|
|
51
|
+
height: PropTypes.number
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
ProLogo.defaultProps = {
|
|
55
|
+
backgroundColor: WHITE,
|
|
56
|
+
width: 370,
|
|
57
|
+
height: 182
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export default ProLogo
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
import React, { useState } from 'react'
|
|
3
|
+
import LogoDropDown from '../components/LogoDropDown'
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Platformatic/LogoDropDown',
|
|
6
|
+
component: LogoDropDown,
|
|
7
|
+
decorators: [dd => <div className='text-white'>{dd()}</div>]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const Template = ({ items }) => {
|
|
11
|
+
const [selected, setSelected] = useState('1')
|
|
12
|
+
|
|
13
|
+
function getItems () {
|
|
14
|
+
return items.map(item => ({ handleClick: () => setSelected(item.id), ...item }))
|
|
15
|
+
}
|
|
16
|
+
return (
|
|
17
|
+
<div>
|
|
18
|
+
<LogoDropDown items={getItems()} itemSelected={selected} />
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const Default = Template.bind({})
|
|
25
|
+
|
|
26
|
+
Default.args = {
|
|
27
|
+
items: [{
|
|
28
|
+
id: '1',
|
|
29
|
+
name: 'Organization-name-1'
|
|
30
|
+
}, {
|
|
31
|
+
id: '2',
|
|
32
|
+
name: 'Organization-name-name-name-name-name-name-2'
|
|
33
|
+
}, {
|
|
34
|
+
id: '3',
|
|
35
|
+
name: 'Organization-name-3'
|
|
36
|
+
}, {
|
|
37
|
+
id: '4',
|
|
38
|
+
name: 'Short-name'
|
|
39
|
+
}, {
|
|
40
|
+
id: '5',
|
|
41
|
+
name: 'abc'
|
|
42
|
+
}]
|
|
43
|
+
}
|
|
@@ -4,7 +4,7 @@ import Button from '../components/Button'
|
|
|
4
4
|
import BorderedBox from '../components/BorderedBox'
|
|
5
5
|
import DropDown from '../components/DropDown'
|
|
6
6
|
import HorizontalSeparator from '../components/HorizontalSeparator'
|
|
7
|
-
import { FULL_WIDTH, MAIN_DARK_BLUE, MAIN_GREEN, MODAL_COVER, MODAL_LAYOUTS, MODAL_SIZES } from '../components/constants'
|
|
7
|
+
import { FULL_WIDTH, MAIN_DARK_BLUE, MAIN_GREEN, MODAL_COVER, MODAL_FULL_DARK, MODAL_FULL_LIGHT, MODAL_LAYOUTS, MODAL_SIZES } from '../components/constants'
|
|
8
8
|
export default {
|
|
9
9
|
title: 'Platformatic/Modal',
|
|
10
10
|
component: Modal,
|
|
@@ -82,9 +82,21 @@ const MenuTemplate = () => {
|
|
|
82
82
|
}
|
|
83
83
|
export const WithDropDown = MenuTemplate.bind({})
|
|
84
84
|
|
|
85
|
-
export const
|
|
86
|
-
|
|
85
|
+
export const FullscreenLayoutLightBlue = Template.bind({})
|
|
86
|
+
FullscreenLayoutLightBlue.args = {
|
|
87
87
|
title: 'Give me an invite',
|
|
88
88
|
size: FULL_WIDTH,
|
|
89
89
|
layout: MODAL_COVER
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
export const FullscreenLayoutDark = Template.bind({})
|
|
93
|
+
FullscreenLayoutDark.args = {
|
|
94
|
+
size: FULL_WIDTH,
|
|
95
|
+
layout: MODAL_FULL_DARK
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export const FullscreenLayoutLight = Template.bind({})
|
|
99
|
+
FullscreenLayoutLight.args = {
|
|
100
|
+
size: FULL_WIDTH,
|
|
101
|
+
layout: MODAL_FULL_LIGHT
|
|
102
|
+
}
|