@universal-tennis/ui-shared 0.1.40 → 0.1.42
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/components.d.ts +8 -0
- package/dist/components.js +8 -0
- package/dist/components.js.map +1 -1
- package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.js +7 -0
- package/dist/stories/atoms/Icons/AvailabilityMaybeIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/AvailabilityNoIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/AvailabilityNoIcon.js +7 -0
- package/dist/stories/atoms/Icons/AvailabilityNoIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/AvailabilityYesIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/AvailabilityYesIcon.js +7 -0
- package/dist/stories/atoms/Icons/AvailabilityYesIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/CloseIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/CloseIcon.js +7 -0
- package/dist/stories/atoms/Icons/CloseIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/EditIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/EditIcon.js +7 -0
- package/dist/stories/atoms/Icons/EditIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/Icons.stories.d.ts +7 -0
- package/dist/stories/atoms/Icons/Icons.stories.js +63 -0
- package/dist/stories/atoms/Icons/Icons.stories.js.map +1 -1
- package/dist/stories/atoms/Icons/MessageIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/MessageIcon.js +7 -0
- package/dist/stories/atoms/Icons/MessageIcon.js.map +1 -0
- package/dist/stories/atoms/Icons/SwapIcon.d.ts +3 -0
- package/dist/stories/atoms/Icons/SwapIcon.js +7 -0
- package/dist/stories/atoms/Icons/SwapIcon.js.map +1 -0
- package/dist/stories/atoms/Map/Map.d.ts +6 -0
- package/dist/stories/atoms/Map/Map.js +8 -0
- package/dist/stories/atoms/Map/Map.js.map +1 -0
- package/dist/stories/atoms/Map/Map.stories.d.ts +6 -0
- package/dist/stories/atoms/Map/Map.stories.js +21 -0
- package/dist/stories/atoms/Map/Map.stories.js.map +1 -0
- package/package.json +1 -1
- package/src/components.jsx +8 -0
- package/src/stories/assets/icons/icon-availability-maybe.svg +3 -0
- package/src/stories/assets/icons/icon-availability-no.svg +3 -0
- package/src/stories/assets/icons/icon-availability-yes.svg +3 -0
- package/src/stories/assets/icons/icon-close.svg +3 -0
- package/src/stories/assets/icons/icon-edit.svg +3 -0
- package/src/stories/assets/icons/icon-message.svg +3 -0
- package/src/stories/assets/icons/icon-swap.svg +3 -0
- package/src/stories/atoms/Icons/AvailabilityMaybeIcon.tsx +11 -0
- package/src/stories/atoms/Icons/AvailabilityNoIcon.tsx +11 -0
- package/src/stories/atoms/Icons/AvailabilityYesIcon.tsx +11 -0
- package/src/stories/atoms/Icons/CloseIcon.tsx +11 -0
- package/src/stories/atoms/Icons/EditIcon.tsx +11 -0
- package/src/stories/atoms/Icons/Icons.stories.tsx +77 -0
- package/src/stories/atoms/Icons/MessageIcon.tsx +12 -0
- package/src/stories/atoms/Icons/SwapIcon.tsx +11 -0
- package/src/stories/atoms/Map/Map.stories.tsx +25 -0
- package/src/stories/atoms/Map/Map.tsx +23 -0
package/dist/components.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
export { default as Button } from "./stories/atoms/Button/Button";
|
|
2
2
|
export { default as Typography } from "./stories/atoms/Typography/Typography";
|
|
3
|
+
export { default as AvailabilityMaybeIcon } from "./stories/atoms/Icons/AvailabilityMaybeIcon";
|
|
4
|
+
export { default as AvailabilityNoIcon } from "./stories/atoms/Icons/AvailabilityNoIcon";
|
|
5
|
+
export { default as AvailabilityYesIcon } from "./stories/atoms/Icons/AvailabilityYesIcon";
|
|
3
6
|
export { default as CalendarIcon } from "./stories/atoms/Icons/CalendarIcon";
|
|
7
|
+
export { default as CloseIcon } from "./stories/atoms/Icons/CloseIcon";
|
|
8
|
+
export { default as EditIcon } from "./stories/atoms/Icons/EditIcon";
|
|
9
|
+
export { default as MessageIcon } from "./stories/atoms/Icons/MessageIcon";
|
|
4
10
|
export { default as SessionIcon } from "./stories/atoms/Icons/SessionIcon";
|
|
11
|
+
export { default as SwapIcon } from "./stories/atoms/Icons/SwapIcon";
|
|
12
|
+
export { default as Map } from "./stories/atoms/Map/Map";
|
|
5
13
|
export { default as ContactCard } from "./stories/molecules/Cards/ContactCard";
|
|
6
14
|
export { default as DrawCard } from "./stories/molecules/Cards/DrawCard";
|
|
7
15
|
export { default as TeamCard } from "./stories/molecules/Cards/TeamCard";
|
package/dist/components.js
CHANGED
|
@@ -2,8 +2,16 @@ import "./stories/assets/css/variables.css";
|
|
|
2
2
|
// ATOMS
|
|
3
3
|
export { default as Button } from './stories/atoms/Button/Button';
|
|
4
4
|
export { default as Typography } from './stories/atoms/Typography/Typography';
|
|
5
|
+
export { default as AvailabilityMaybeIcon } from './stories/atoms/Icons/AvailabilityMaybeIcon';
|
|
6
|
+
export { default as AvailabilityNoIcon } from './stories/atoms/Icons/AvailabilityNoIcon';
|
|
7
|
+
export { default as AvailabilityYesIcon } from './stories/atoms/Icons/AvailabilityYesIcon';
|
|
5
8
|
export { default as CalendarIcon } from './stories/atoms/Icons/CalendarIcon';
|
|
9
|
+
export { default as CloseIcon } from './stories/atoms/Icons/CloseIcon';
|
|
10
|
+
export { default as EditIcon } from './stories/atoms/Icons/EditIcon';
|
|
11
|
+
export { default as MessageIcon } from './stories/atoms/Icons/MessageIcon';
|
|
6
12
|
export { default as SessionIcon } from './stories/atoms/Icons/SessionIcon';
|
|
13
|
+
export { default as SwapIcon } from './stories/atoms/Icons/SwapIcon';
|
|
14
|
+
export { default as Map } from './stories/atoms/Map/Map';
|
|
7
15
|
// MOLECULES
|
|
8
16
|
export { default as ContactCard } from './stories/molecules/Cards/ContactCard';
|
|
9
17
|
export { default as DrawCard } from './stories/molecules/Cards/DrawCard';
|
package/dist/components.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.jsx"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAC;AAE5C,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.jsx"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAC;AAE5C,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAEzD,YAAY;AACZ,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAEzE,aAAa;AACb,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export default function AvailabilityMaybeIcon({ size, color }) {
|
|
4
|
+
return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: color, xmlns: "http://www.w3.org/2000/svg" },
|
|
5
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM9.5 9C9.5 7.61929 10.6193 6.5 12 6.5C13.3807 6.5 14.5 7.61929 14.5 9C14.5 10.3807 13.3807 11.5 12 11.5C11.9568 11.5 11.915 11.5055 11.875 11.5158C11.835 11.5055 11.7932 11.5 11.75 11.5C11.4739 11.5 11.25 11.7239 11.25 12V14C11.25 14.2761 11.4739 14.5 11.75 14.5C12.0261 14.5 12.25 14.2761 12.25 14V12.4912C14.0663 12.363 15.5 10.8489 15.5 9C15.5 7.067 13.933 5.5 12 5.5C10.067 5.5 8.5 7.067 8.5 9C8.5 9.27614 8.72386 9.5 9 9.5C9.27614 9.5 9.5 9.27614 9.5 9ZM13.5 17.25C13.5 18.0784 12.8284 18.75 12 18.75C11.1716 18.75 10.5 18.0784 10.5 17.25C10.5 16.4216 11.1716 15.75 12 15.75C12.8284 15.75 13.5 16.4216 13.5 17.25Z" })));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=AvailabilityMaybeIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvailabilityMaybeIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/AvailabilityMaybeIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IACtE,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,80BAA80B,GAAG,CAC73B,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export default function AvailabilityNoIcon({ size, color }) {
|
|
4
|
+
return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: color, xmlns: "http://www.w3.org/2000/svg" },
|
|
5
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM7.75687 8.46439C7.56161 8.26913 7.56161 7.95255 7.75687 7.75729C7.95214 7.56202 8.26872 7.56202 8.46398 7.75729L11.9996 11.2929L15.535 7.75743C15.7303 7.56217 16.0469 7.56217 16.2422 7.75743C16.4374 7.95269 16.4374 8.26928 16.2422 8.46454L12.7067 12L16.2422 15.5355C16.4374 15.7307 16.4374 16.0473 16.2422 16.2426C16.0469 16.4378 15.7303 16.4378 15.535 16.2426L11.9996 12.7071L8.46398 16.2427C8.26872 16.438 7.95214 16.438 7.75687 16.2427C7.56161 16.0475 7.56161 15.7309 7.75687 15.5356L11.2925 12L7.75687 8.46439Z" })));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=AvailabilityNoIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvailabilityNoIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/AvailabilityNoIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IACnE,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,uuBAAuuB,GAAG,CACtxB,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export default function AvailabilityYesIcon({ size, color }) {
|
|
4
|
+
return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: color, xmlns: "http://www.w3.org/2000/svg" },
|
|
5
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM18.0962 9.84619C18.2915 9.65093 18.2915 9.33435 18.0962 9.13909C17.9009 8.94382 17.5843 8.94383 17.3891 9.13909L11.3787 15.1495L7.48959 11.2604C7.29433 11.0651 6.97775 11.0651 6.78249 11.2604C6.58722 11.4557 6.58722 11.7723 6.78249 11.9675L11.3787 16.5637L18.0962 9.84619Z" })));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=AvailabilityYesIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvailabilityYesIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/AvailabilityYesIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IACpE,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,qfAAqf,GAAG,CACpiB,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export default function CloseIcon({ size, color }) {
|
|
4
|
+
return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: color, xmlns: "http://www.w3.org/2000/svg" },
|
|
5
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.584 3.27561C21.8139 3.04581 21.8139 2.67323 21.5841 2.44343C21.3542 2.21362 20.9817 2.21362 20.7519 2.44342L12.0139 11.1814L3.27568 2.44323C3.04588 2.21342 2.67329 2.21342 2.44349 2.44323C2.21369 2.67303 2.21369 3.04561 2.44349 3.27541L11.1817 12.0136L2.44375 20.7515C2.21394 20.9813 2.21394 21.3539 2.44375 21.5837C2.67355 21.8135 3.04613 21.8135 3.27593 21.5837L12.0139 12.8458L20.7516 21.5835C20.9814 21.8133 21.354 21.8133 21.5838 21.5835C21.8136 21.3537 21.8136 20.9811 21.5838 20.7513L12.8461 12.0136L21.584 3.27561Z" })));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=CloseIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloseIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/CloseIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IAC1D,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,ghBAAghB,GAAG,CAC/jB,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export default function EditIcon({ size, color }) {
|
|
4
|
+
return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: color, xmlns: "http://www.w3.org/2000/svg" },
|
|
5
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.7132 2.12742L13.791 4.20523C14.1803 4.59456 14.1817 5.22538 13.794 5.61639L12.4183 7.00405L8.92623 3.51202L10.2959 2.13047C10.686 1.73708 11.3215 1.73571 11.7132 2.12742ZM8.22216 4.22217L1.91743 10.5814L1.80221 14.191L5.40691 14.076L11.7142 7.7142L8.22216 4.22217ZM14.5042 6.32045L5.83674 15.0628L0.768707 15.2245L0.930483 10.1565L9.5858 1.42641C10.3658 0.639625 11.6369 0.636889 12.4203 1.42031L14.4981 3.49812C15.2768 4.27679 15.2795 5.53843 14.5042 6.32045Z" })));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=EditIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/EditIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IACzD,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,kdAAkd,GAAG,CACjgB,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -2,5 +2,12 @@ declare const _default: {
|
|
|
2
2
|
title: string;
|
|
3
3
|
};
|
|
4
4
|
export default _default;
|
|
5
|
+
export declare const AvailabilityMaybe: any;
|
|
6
|
+
export declare const AvailabilityNo: any;
|
|
7
|
+
export declare const AvailabilityYes: any;
|
|
5
8
|
export declare const Calendar: any;
|
|
9
|
+
export declare const Close: any;
|
|
10
|
+
export declare const Edit: any;
|
|
11
|
+
export declare const Message: any;
|
|
6
12
|
export declare const Session: any;
|
|
13
|
+
export declare const Swap: any;
|
|
@@ -1,26 +1,89 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import AvailabilityMaybeIcon from './AvailabilityMaybeIcon';
|
|
3
|
+
import AvailabilityNoIcon from './AvailabilityNoIcon';
|
|
4
|
+
import AvailabilityYesIcon from './AvailabilityYesIcon';
|
|
2
5
|
import CalendarIcon from './CalendarIcon';
|
|
6
|
+
import CloseIcon from './CloseIcon';
|
|
7
|
+
import EditIcon from './EditIcon';
|
|
8
|
+
import MessageIcon from './MessageIcon';
|
|
3
9
|
import SessionIcon from './SessionIcon';
|
|
10
|
+
import SwapIcon from './SwapIcon';
|
|
4
11
|
// Default
|
|
5
12
|
export default {
|
|
6
13
|
title: 'Atoms/Icons',
|
|
7
14
|
};
|
|
8
15
|
// Templates
|
|
16
|
+
function AvailabilityMaybeIconTemplate(args) {
|
|
17
|
+
return React.createElement(AvailabilityMaybeIcon, Object.assign({}, args));
|
|
18
|
+
}
|
|
19
|
+
function AvailabilityNoIconTemplate(args) {
|
|
20
|
+
return React.createElement(AvailabilityNoIcon, Object.assign({}, args));
|
|
21
|
+
}
|
|
22
|
+
function AvailabilityYesIconTemplate(args) {
|
|
23
|
+
return React.createElement(AvailabilityYesIcon, Object.assign({}, args));
|
|
24
|
+
}
|
|
9
25
|
function CalendarIconTemplate(args) {
|
|
10
26
|
return React.createElement(CalendarIcon, Object.assign({}, args));
|
|
11
27
|
}
|
|
28
|
+
function CloseIconTemplate(args) {
|
|
29
|
+
return React.createElement(CloseIcon, Object.assign({}, args));
|
|
30
|
+
}
|
|
31
|
+
function EditIconTemplate(args) {
|
|
32
|
+
return React.createElement(EditIcon, Object.assign({}, args));
|
|
33
|
+
}
|
|
34
|
+
function MessageIconTemplate(args) {
|
|
35
|
+
return React.createElement(MessageIcon, Object.assign({}, args));
|
|
36
|
+
}
|
|
12
37
|
function SessionIconTemplate(args) {
|
|
13
38
|
return React.createElement(SessionIcon, Object.assign({}, args));
|
|
14
39
|
}
|
|
40
|
+
function SwapIconTemplate(args) {
|
|
41
|
+
return React.createElement(SwapIcon, Object.assign({}, args));
|
|
42
|
+
}
|
|
15
43
|
// Stories
|
|
44
|
+
export const AvailabilityMaybe = AvailabilityMaybeIconTemplate.bind({});
|
|
45
|
+
AvailabilityMaybe.args = {
|
|
46
|
+
size: 50,
|
|
47
|
+
color: 'orange'
|
|
48
|
+
};
|
|
49
|
+
export const AvailabilityNo = AvailabilityNoIconTemplate.bind({});
|
|
50
|
+
AvailabilityNo.args = {
|
|
51
|
+
size: 50,
|
|
52
|
+
color: 'red'
|
|
53
|
+
};
|
|
54
|
+
export const AvailabilityYes = AvailabilityYesIconTemplate.bind({});
|
|
55
|
+
AvailabilityYes.args = {
|
|
56
|
+
size: 50,
|
|
57
|
+
color: 'green'
|
|
58
|
+
};
|
|
16
59
|
export const Calendar = CalendarIconTemplate.bind({});
|
|
17
60
|
Calendar.args = {
|
|
18
61
|
size: 50,
|
|
19
62
|
color: 'green'
|
|
20
63
|
};
|
|
64
|
+
export const Close = CloseIconTemplate.bind({});
|
|
65
|
+
Close.args = {
|
|
66
|
+
size: 50,
|
|
67
|
+
color: 'purple'
|
|
68
|
+
};
|
|
69
|
+
export const Edit = EditIconTemplate.bind({});
|
|
70
|
+
Edit.args = {
|
|
71
|
+
size: 50,
|
|
72
|
+
color: 'green'
|
|
73
|
+
};
|
|
74
|
+
export const Message = MessageIconTemplate.bind({});
|
|
75
|
+
Message.args = {
|
|
76
|
+
size: 50,
|
|
77
|
+
color: 'teal'
|
|
78
|
+
};
|
|
21
79
|
export const Session = SessionIconTemplate.bind({});
|
|
22
80
|
Session.args = {
|
|
23
81
|
size: 50,
|
|
24
82
|
color: 'red'
|
|
25
83
|
};
|
|
84
|
+
export const Swap = SwapIconTemplate.bind({});
|
|
85
|
+
Swap.args = {
|
|
86
|
+
size: 50,
|
|
87
|
+
color: 'blue'
|
|
88
|
+
};
|
|
26
89
|
//# sourceMappingURL=Icons.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icons.stories.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/Icons.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,WAAW,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Icons.stories.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/Icons.stories.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export default function MessageIcon({ size, color }) {
|
|
4
|
+
return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: color, xmlns: "http://www.w3.org/2000/svg" },
|
|
5
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.2383 10.1536H7.28591C6.99677 10.1536 6.7621 10.3776 6.7621 10.6536C6.7621 10.9296 6.99677 11.1536 7.28591 11.1536H17.2383C17.5274 11.1536 17.7621 10.9296 17.7621 10.6536C17.7621 10.3776 17.5274 10.1536 17.2383 10.1536M17.2383 7.1075H7.28591C6.99677 7.1075 6.7621 7.3315 6.7621 7.6075C6.7621 7.8835 6.99677 8.1075 7.28591 8.1075H17.2383C17.5274 8.1075 17.7621 7.8835 17.7621 7.6075C17.7621 7.3315 17.5274 7.1075 17.2383 7.1075M14.0954 13.1996H7.28591C6.99677 13.1996 6.7621 13.4236 6.7621 13.6996C6.7621 13.9756 6.99677 14.1996 7.28591 14.1996H14.0954C14.3846 14.1996 14.6192 13.9756 14.6192 13.6996C14.6192 13.4236 14.3846 13.1996 14.0954 13.1996M12.0002 0C10.7588 0 9.46915 0.19901 8.16381 0.629521C5.09534 1.6398 2.64915 4.033 1.62458 7.01409C-0.613136 13.5235 3.43801 19.6106 9.38115 21.0179V23.4903C9.38115 23.7868 9.63257 24 9.90705 24C9.994 24 10.0831 23.9787 10.1669 23.932L16.6904 20.3071C20.8075 18.117 23.0002 14.9237 23.0002 10.6613C23.0002 4.77319 18.0753 0 12.0002 0M21.9526 10.6613C21.9526 14.4891 20.0658 17.3525 16.1687 19.4258L10.4288 22.6161V21.0179C10.4288 20.5498 10.0988 20.1427 9.62943 20.032C6.94019 19.3943 4.62705 17.6764 3.28296 15.3177C1.91163 12.9133 1.67591 10.0784 2.61877 7.33494C3.54277 4.64628 5.74172 2.49879 8.50115 1.59005C9.66086 1.20828 10.8373 1.01536 12.0002 1.01536C17.4876 1.01536 21.9526 5.34281 21.9526 10.6613Z" })));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=MessageIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/MessageIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IAC5D,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,i1CAAi1C,GAAG,CACh4C,CAET,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export default function SwapIcon({ size, color }) {
|
|
4
|
+
return (React.createElement("svg", { width: size, height: size, viewBox: "0 0 38 38", fill: color, xmlns: "http://www.w3.org/2000/svg" },
|
|
5
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M36.4167 19C36.4167 28.619 28.619 36.4167 19 36.4167C9.38104 36.4167 1.58333 28.619 1.58333 19C1.58333 9.38104 9.38104 1.58333 19 1.58333C28.619 1.58333 36.4167 9.38104 36.4167 19ZM38 19C38 29.4934 29.4934 38 19 38C8.50659 38 0 29.4934 0 19C0 8.50659 8.50659 0 19 0C29.4934 0 38 8.50659 38 19ZM11.6464 15.3536C11.4512 15.1583 11.4512 14.8417 11.6464 14.6464L14.8284 11.4645L18.0104 14.6464C18.2057 14.8417 18.2057 15.1583 18.0104 15.3536C17.8151 15.5488 17.4986 15.5488 17.3033 15.3536L15.3281 13.3784V23.5C15.3281 23.7761 15.1043 24 14.8281 24C14.552 24 14.3281 23.7761 14.3281 23.5V13.379L12.3536 15.3536C12.1583 15.5488 11.8417 15.5488 11.6464 15.3536ZM23.6719 13.5V23.621L25.6464 21.6464C25.8417 21.4512 26.1583 21.4512 26.3536 21.6464C26.5488 21.8417 26.5488 22.1583 26.3536 22.3536L23.1716 25.5355L19.9896 22.3536C19.7943 22.1583 19.7943 21.8417 19.9896 21.6464C20.1849 21.4512 20.5014 21.4512 20.6967 21.6464L22.6719 23.6216V13.5C22.6719 13.2239 22.8957 13 23.1719 13C23.448 13 23.6719 13.2239 23.6719 13.5Z" })));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=SwapIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwapIcon.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Icons/SwapIcon.tsx"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAa;IACzD,OAAO,CACH,6BAAK,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,4BAA4B;QAC/F,8BAAM,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,CAAC,EAAC,w/BAAw/B,GAAG,CACviC,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default function Map({ placeId, height }) {
|
|
3
|
+
const placeParam = placeId && `q=place_id:${placeId}`;
|
|
4
|
+
const placeUrl = `https://www.google.com/maps/embed/v1/place?key=AIzaSyCapzh9VsfXAzC9fAaosZJulONx7H1BFaY&${placeParam}`;
|
|
5
|
+
const mapheight = height || `216px`;
|
|
6
|
+
return (React.createElement("iframe", { width: "100%", height: mapheight, src: placeUrl, title: "Google Maps" }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=Map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Map.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Map/Map.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,CAAC,OAAO,UAAU,GAAG,CAAC,EAC1B,OAAO,EAAE,MAAM,EACN;IACT,MAAM,UAAU,GAAG,OAAO,IAAI,cAAc,OAAO,EAAE,CAAC;IACtD,MAAM,QAAQ,GAAG,0FAA0F,UAAU,EAAE,CAAC;IAExH,MAAM,SAAS,GAAG,MAAM,IAAI,OAAO,CAAC;IACpC,OAAO,CACH,gCACI,KAAK,EAAC,MAAM,EACZ,MAAM,EAAE,SAAS,EACjB,GAAG,EAAE,QAAQ,EACb,KAAK,EAAC,aAAa,GACrB,CACL,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Map from './Map';
|
|
3
|
+
// Default
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Atoms/Map',
|
|
6
|
+
};
|
|
7
|
+
// Templates
|
|
8
|
+
function MapTemplate(args) {
|
|
9
|
+
return React.createElement(Map, Object.assign({}, args));
|
|
10
|
+
}
|
|
11
|
+
// Stories
|
|
12
|
+
export const Default = MapTemplate.bind({});
|
|
13
|
+
Default.args = {
|
|
14
|
+
placeId: 'ChIJj6tQBWXIxokRXeXk9xqsgMo',
|
|
15
|
+
};
|
|
16
|
+
export const WithCustomHeight = MapTemplate.bind({});
|
|
17
|
+
WithCustomHeight.args = {
|
|
18
|
+
placeId: 'ChIJj6tQBWXIxokRXeXk9xqsgMo',
|
|
19
|
+
height: '320px'
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=Map.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Map.stories.js","sourceRoot":"","sources":["../../../../src/stories/atoms/Map/Map.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,GAAiB,MAAM,OAAO,CAAC;AAEtC,UAAU;AACV,eAAe;IACb,KAAK,EAAE,WAAW;CACnB,CAAC;AAEF,YAAY;AACZ,SAAS,WAAW,CAAC,IAAc;IACjC,OAAO,oBAAC,GAAG,oBAAK,IAAI,EAAI,CAAC;AAC3B,CAAC;AAED,UAAU;AACV,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,OAAO,CAAC,IAAI,GAAG;IACb,OAAO,EAAE,6BAA6B;CACvC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrD,gBAAgB,CAAC,IAAI,GAAG;IACtB,OAAO,EAAE,6BAA6B;IACtC,MAAM,EAAE,OAAO;CAChB,CAAC"}
|
package/package.json
CHANGED
package/src/components.jsx
CHANGED
|
@@ -3,8 +3,16 @@ import "./stories/assets/css/variables.css";
|
|
|
3
3
|
// ATOMS
|
|
4
4
|
export { default as Button } from './stories/atoms/Button/Button';
|
|
5
5
|
export { default as Typography } from './stories/atoms/Typography/Typography';
|
|
6
|
+
export { default as AvailabilityMaybeIcon } from './stories/atoms/Icons/AvailabilityMaybeIcon';
|
|
7
|
+
export { default as AvailabilityNoIcon } from './stories/atoms/Icons/AvailabilityNoIcon';
|
|
8
|
+
export { default as AvailabilityYesIcon } from './stories/atoms/Icons/AvailabilityYesIcon';
|
|
6
9
|
export { default as CalendarIcon } from './stories/atoms/Icons/CalendarIcon';
|
|
10
|
+
export { default as CloseIcon } from './stories/atoms/Icons/CloseIcon';
|
|
11
|
+
export { default as EditIcon } from './stories/atoms/Icons/EditIcon';
|
|
12
|
+
export { default as MessageIcon } from './stories/atoms/Icons/MessageIcon';
|
|
7
13
|
export { default as SessionIcon } from './stories/atoms/Icons/SessionIcon';
|
|
14
|
+
export { default as SwapIcon } from './stories/atoms/Icons/SwapIcon';
|
|
15
|
+
export { default as Map } from './stories/atoms/Map/Map';
|
|
8
16
|
|
|
9
17
|
// MOLECULES
|
|
10
18
|
export { default as ContactCard } from './stories/molecules/Cards/ContactCard';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM9.5 9C9.5 7.61929 10.6193 6.5 12 6.5C13.3807 6.5 14.5 7.61929 14.5 9C14.5 10.3807 13.3807 11.5 12 11.5C11.9568 11.5 11.915 11.5055 11.875 11.5158C11.835 11.5055 11.7932 11.5 11.75 11.5C11.4739 11.5 11.25 11.7239 11.25 12V14C11.25 14.2761 11.4739 14.5 11.75 14.5C12.0261 14.5 12.25 14.2761 12.25 14V12.4912C14.0663 12.363 15.5 10.8489 15.5 9C15.5 7.067 13.933 5.5 12 5.5C10.067 5.5 8.5 7.067 8.5 9C8.5 9.27614 8.72386 9.5 9 9.5C9.27614 9.5 9.5 9.27614 9.5 9ZM13.5 17.25C13.5 18.0784 12.8284 18.75 12 18.75C11.1716 18.75 10.5 18.0784 10.5 17.25C10.5 16.4216 11.1716 15.75 12 15.75C12.8284 15.75 13.5 16.4216 13.5 17.25Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM7.75687 8.46439C7.56161 8.26913 7.56161 7.95255 7.75687 7.75729C7.95214 7.56202 8.26872 7.56202 8.46398 7.75729L11.9996 11.2929L15.535 7.75743C15.7303 7.56217 16.0469 7.56217 16.2422 7.75743C16.4374 7.95269 16.4374 8.26928 16.2422 8.46454L12.7067 12L16.2422 15.5355C16.4374 15.7307 16.4374 16.0473 16.2422 16.2426C16.0469 16.4378 15.7303 16.4378 15.535 16.2426L11.9996 12.7071L8.46398 16.2427C8.26872 16.438 7.95214 16.438 7.75687 16.2427C7.56161 16.0475 7.56161 15.7309 7.75687 15.5356L11.2925 12L7.75687 8.46439Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM18.0962 9.84619C18.2915 9.65093 18.2915 9.33435 18.0962 9.13909C17.9009 8.94382 17.5843 8.94383 17.3891 9.13909L11.3787 15.1495L7.48959 11.2604C7.29433 11.0651 6.97775 11.0651 6.78249 11.2604C6.58722 11.4557 6.58722 11.7723 6.78249 11.9675L11.3787 16.5637L18.0962 9.84619Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.584 3.27561C21.8139 3.04581 21.8139 2.67323 21.5841 2.44343C21.3542 2.21362 20.9817 2.21362 20.7519 2.44342L12.0139 11.1814L3.27568 2.44323C3.04588 2.21342 2.67329 2.21342 2.44349 2.44323C2.21369 2.67303 2.21369 3.04561 2.44349 3.27541L11.1817 12.0136L2.44375 20.7515C2.21394 20.9813 2.21394 21.3539 2.44375 21.5837C2.67355 21.8135 3.04613 21.8135 3.27593 21.5837L12.0139 12.8458L20.7516 21.5835C20.9814 21.8133 21.354 21.8133 21.5838 21.5835C21.8136 21.3537 21.8136 20.9811 21.5838 20.7513L12.8461 12.0136L21.584 3.27561Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.7132 2.12742L13.791 4.20523C14.1803 4.59456 14.1817 5.22538 13.794 5.61639L12.4183 7.00405L8.92623 3.51202L10.2959 2.13047C10.686 1.73708 11.3215 1.73571 11.7132 2.12742ZM8.22216 4.22217L1.91743 10.5814L1.80221 14.191L5.40691 14.076L11.7142 7.7142L8.22216 4.22217ZM14.5042 6.32045L5.83674 15.0628L0.768707 15.2245L0.930483 10.1565L9.5858 1.42641C10.3658 0.639625 11.6369 0.636889 12.4203 1.42031L14.4981 3.49812C15.2768 4.27679 15.2795 5.53843 14.5042 6.32045Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M17.2383 10.1536H7.28591C6.99677 10.1536 6.7621 10.3776 6.7621 10.6536C6.7621 10.9296 6.99677 11.1536 7.28591 11.1536H17.2383C17.5274 11.1536 17.7621 10.9296 17.7621 10.6536C17.7621 10.3776 17.5274 10.1536 17.2383 10.1536M17.2383 7.1075H7.28591C6.99677 7.1075 6.7621 7.3315 6.7621 7.6075C6.7621 7.8835 6.99677 8.1075 7.28591 8.1075H17.2383C17.5274 8.1075 17.7621 7.8835 17.7621 7.6075C17.7621 7.3315 17.5274 7.1075 17.2383 7.1075M14.0954 13.1996H7.28591C6.99677 13.1996 6.7621 13.4236 6.7621 13.6996C6.7621 13.9756 6.99677 14.1996 7.28591 14.1996H14.0954C14.3846 14.1996 14.6192 13.9756 14.6192 13.6996C14.6192 13.4236 14.3846 13.1996 14.0954 13.1996M12.0002 0C10.7588 0 9.46915 0.19901 8.16381 0.629521C5.09534 1.6398 2.64915 4.033 1.62458 7.01409C-0.613136 13.5235 3.43801 19.6106 9.38115 21.0179V23.4903C9.38115 23.7868 9.63257 24 9.90705 24C9.994 24 10.0831 23.9787 10.1669 23.932L16.6904 20.3071C20.8075 18.117 23.0002 14.9237 23.0002 10.6613C23.0002 4.77319 18.0753 0 12.0002 0M21.9526 10.6613C21.9526 14.4891 20.0658 17.3525 16.1687 19.4258L10.4288 22.6161V21.0179C10.4288 20.5498 10.0988 20.1427 9.62943 20.032C6.94019 19.3943 4.62705 17.6764 3.28296 15.3177C1.91163 12.9133 1.67591 10.0784 2.61877 7.33494C3.54277 4.64628 5.74172 2.49879 8.50115 1.59005C9.66086 1.20828 10.8373 1.01536 12.0002 1.01536C17.4876 1.01536 21.9526 5.34281 21.9526 10.6613Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="38" height="38" viewBox="0 0 38 38" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M36.4167 19C36.4167 28.619 28.619 36.4167 19 36.4167C9.38104 36.4167 1.58333 28.619 1.58333 19C1.58333 9.38104 9.38104 1.58333 19 1.58333C28.619 1.58333 36.4167 9.38104 36.4167 19ZM38 19C38 29.4934 29.4934 38 19 38C8.50659 38 0 29.4934 0 19C0 8.50659 8.50659 0 19 0C29.4934 0 38 8.50659 38 19ZM11.6464 15.3536C11.4512 15.1583 11.4512 14.8417 11.6464 14.6464L14.8284 11.4645L18.0104 14.6464C18.2057 14.8417 18.2057 15.1583 18.0104 15.3536C17.8151 15.5488 17.4986 15.5488 17.3033 15.3536L15.3281 13.3784V23.5C15.3281 23.7761 15.1043 24 14.8281 24C14.552 24 14.3281 23.7761 14.3281 23.5V13.379L12.3536 15.3536C12.1583 15.5488 11.8417 15.5488 11.6464 15.3536ZM23.6719 13.5V23.621L25.6464 21.6464C25.8417 21.4512 26.1583 21.4512 26.3536 21.6464C26.5488 21.8417 26.5488 22.1583 26.3536 22.3536L23.1716 25.5355L19.9896 22.3536C19.7943 22.1583 19.7943 21.8417 19.9896 21.6464C20.1849 21.4512 20.5014 21.4512 20.6967 21.6464L22.6719 23.6216V13.5C22.6719 13.2239 22.8957 13 23.1719 13C23.448 13 23.6719 13.2239 23.6719 13.5Z" fill="black"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IconProps } from './sharedTypes';
|
|
4
|
+
|
|
5
|
+
export default function AvailabilityMaybeIcon({ size, color }: IconProps) {
|
|
6
|
+
return (
|
|
7
|
+
<svg width={size} height={size} viewBox="0 0 24 24" fill={color} xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM9.5 9C9.5 7.61929 10.6193 6.5 12 6.5C13.3807 6.5 14.5 7.61929 14.5 9C14.5 10.3807 13.3807 11.5 12 11.5C11.9568 11.5 11.915 11.5055 11.875 11.5158C11.835 11.5055 11.7932 11.5 11.75 11.5C11.4739 11.5 11.25 11.7239 11.25 12V14C11.25 14.2761 11.4739 14.5 11.75 14.5C12.0261 14.5 12.25 14.2761 12.25 14V12.4912C14.0663 12.363 15.5 10.8489 15.5 9C15.5 7.067 13.933 5.5 12 5.5C10.067 5.5 8.5 7.067 8.5 9C8.5 9.27614 8.72386 9.5 9 9.5C9.27614 9.5 9.5 9.27614 9.5 9ZM13.5 17.25C13.5 18.0784 12.8284 18.75 12 18.75C11.1716 18.75 10.5 18.0784 10.5 17.25C10.5 16.4216 11.1716 15.75 12 15.75C12.8284 15.75 13.5 16.4216 13.5 17.25Z" />
|
|
9
|
+
</svg>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IconProps } from './sharedTypes';
|
|
4
|
+
|
|
5
|
+
export default function AvailabilityNoIcon({ size, color }: IconProps) {
|
|
6
|
+
return (
|
|
7
|
+
<svg width={size} height={size} viewBox="0 0 24 24" fill={color} xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM7.75687 8.46439C7.56161 8.26913 7.56161 7.95255 7.75687 7.75729C7.95214 7.56202 8.26872 7.56202 8.46398 7.75729L11.9996 11.2929L15.535 7.75743C15.7303 7.56217 16.0469 7.56217 16.2422 7.75743C16.4374 7.95269 16.4374 8.26928 16.2422 8.46454L12.7067 12L16.2422 15.5355C16.4374 15.7307 16.4374 16.0473 16.2422 16.2426C16.0469 16.4378 15.7303 16.4378 15.535 16.2426L11.9996 12.7071L8.46398 16.2427C8.26872 16.438 7.95214 16.438 7.75687 16.2427C7.56161 16.0475 7.56161 15.7309 7.75687 15.5356L11.2925 12L7.75687 8.46439Z" />
|
|
9
|
+
</svg>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IconProps } from './sharedTypes';
|
|
4
|
+
|
|
5
|
+
export default function AvailabilityYesIcon({ size, color }: IconProps) {
|
|
6
|
+
return (
|
|
7
|
+
<svg width={size} height={size} viewBox="0 0 24 24" fill={color} xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM18.0962 9.84619C18.2915 9.65093 18.2915 9.33435 18.0962 9.13909C17.9009 8.94382 17.5843 8.94383 17.3891 9.13909L11.3787 15.1495L7.48959 11.2604C7.29433 11.0651 6.97775 11.0651 6.78249 11.2604C6.58722 11.4557 6.58722 11.7723 6.78249 11.9675L11.3787 16.5637L18.0962 9.84619Z" />
|
|
9
|
+
</svg>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IconProps } from './sharedTypes';
|
|
4
|
+
|
|
5
|
+
export default function CloseIcon({ size, color }: IconProps) {
|
|
6
|
+
return (
|
|
7
|
+
<svg width={size} height={size} viewBox="0 0 24 24" fill={color} xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M21.584 3.27561C21.8139 3.04581 21.8139 2.67323 21.5841 2.44343C21.3542 2.21362 20.9817 2.21362 20.7519 2.44342L12.0139 11.1814L3.27568 2.44323C3.04588 2.21342 2.67329 2.21342 2.44349 2.44323C2.21369 2.67303 2.21369 3.04561 2.44349 3.27541L11.1817 12.0136L2.44375 20.7515C2.21394 20.9813 2.21394 21.3539 2.44375 21.5837C2.67355 21.8135 3.04613 21.8135 3.27593 21.5837L12.0139 12.8458L20.7516 21.5835C20.9814 21.8133 21.354 21.8133 21.5838 21.5835C21.8136 21.3537 21.8136 20.9811 21.5838 20.7513L12.8461 12.0136L21.584 3.27561Z" />
|
|
9
|
+
</svg>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IconProps } from './sharedTypes';
|
|
4
|
+
|
|
5
|
+
export default function EditIcon({ size, color }: IconProps) {
|
|
6
|
+
return (
|
|
7
|
+
<svg width={size} height={size} viewBox="0 0 16 16" fill={color} xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M11.7132 2.12742L13.791 4.20523C14.1803 4.59456 14.1817 5.22538 13.794 5.61639L12.4183 7.00405L8.92623 3.51202L10.2959 2.13047C10.686 1.73708 11.3215 1.73571 11.7132 2.12742ZM8.22216 4.22217L1.91743 10.5814L1.80221 14.191L5.40691 14.076L11.7142 7.7142L8.22216 4.22217ZM14.5042 6.32045L5.83674 15.0628L0.768707 15.2245L0.930483 10.1565L9.5858 1.42641C10.3658 0.639625 11.6369 0.636889 12.4203 1.42031L14.4981 3.49812C15.2768 4.27679 15.2795 5.53843 14.5042 6.32045Z" />
|
|
9
|
+
</svg>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import AvailabilityMaybeIcon from './AvailabilityMaybeIcon';
|
|
4
|
+
import AvailabilityNoIcon from './AvailabilityNoIcon';
|
|
5
|
+
import AvailabilityYesIcon from './AvailabilityYesIcon';
|
|
3
6
|
import CalendarIcon from './CalendarIcon';
|
|
7
|
+
import CloseIcon from './CloseIcon';
|
|
8
|
+
import EditIcon from './EditIcon';
|
|
9
|
+
import MessageIcon from './MessageIcon';
|
|
4
10
|
import SessionIcon from './SessionIcon';
|
|
11
|
+
import SwapIcon from './SwapIcon';
|
|
5
12
|
import { IconProps } from './sharedTypes';
|
|
6
13
|
|
|
7
14
|
// Default
|
|
@@ -10,23 +17,93 @@ export default {
|
|
|
10
17
|
};
|
|
11
18
|
|
|
12
19
|
// Templates
|
|
20
|
+
function AvailabilityMaybeIconTemplate(args: IconProps) {
|
|
21
|
+
return <AvailabilityMaybeIcon {...args} />;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function AvailabilityNoIconTemplate(args: IconProps) {
|
|
25
|
+
return <AvailabilityNoIcon {...args} />;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function AvailabilityYesIconTemplate(args: IconProps) {
|
|
29
|
+
return <AvailabilityYesIcon {...args} />;
|
|
30
|
+
}
|
|
31
|
+
|
|
13
32
|
function CalendarIconTemplate(args: IconProps) {
|
|
14
33
|
return <CalendarIcon {...args} />;
|
|
15
34
|
}
|
|
16
35
|
|
|
36
|
+
function CloseIconTemplate(args: IconProps) {
|
|
37
|
+
return <CloseIcon {...args} />;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function EditIconTemplate(args: IconProps) {
|
|
41
|
+
return <EditIcon {...args} />;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function MessageIconTemplate(args: IconProps) {
|
|
45
|
+
return <MessageIcon {...args} />;
|
|
46
|
+
}
|
|
47
|
+
|
|
17
48
|
function SessionIconTemplate(args: IconProps) {
|
|
18
49
|
return <SessionIcon {...args} />;
|
|
19
50
|
}
|
|
20
51
|
|
|
52
|
+
function SwapIconTemplate(args: IconProps) {
|
|
53
|
+
return <SwapIcon {...args} />;
|
|
54
|
+
}
|
|
55
|
+
|
|
21
56
|
// Stories
|
|
57
|
+
export const AvailabilityMaybe = AvailabilityMaybeIconTemplate.bind({});
|
|
58
|
+
AvailabilityMaybe.args = {
|
|
59
|
+
size: 50,
|
|
60
|
+
color: 'orange'
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export const AvailabilityNo = AvailabilityNoIconTemplate.bind({});
|
|
64
|
+
AvailabilityNo.args = {
|
|
65
|
+
size: 50,
|
|
66
|
+
color: 'red'
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export const AvailabilityYes = AvailabilityYesIconTemplate.bind({});
|
|
70
|
+
AvailabilityYes.args = {
|
|
71
|
+
size: 50,
|
|
72
|
+
color: 'green'
|
|
73
|
+
};
|
|
74
|
+
|
|
22
75
|
export const Calendar = CalendarIconTemplate.bind({});
|
|
23
76
|
Calendar.args = {
|
|
24
77
|
size: 50,
|
|
25
78
|
color: 'green'
|
|
26
79
|
};
|
|
27
80
|
|
|
81
|
+
export const Close = CloseIconTemplate.bind({});
|
|
82
|
+
Close.args = {
|
|
83
|
+
size: 50,
|
|
84
|
+
color: 'purple'
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export const Edit = EditIconTemplate.bind({});
|
|
88
|
+
Edit.args = {
|
|
89
|
+
size: 50,
|
|
90
|
+
color: 'green'
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export const Message = MessageIconTemplate.bind({});
|
|
94
|
+
Message.args = {
|
|
95
|
+
size: 50,
|
|
96
|
+
color: 'teal'
|
|
97
|
+
};
|
|
98
|
+
|
|
28
99
|
export const Session = SessionIconTemplate.bind({});
|
|
29
100
|
Session.args = {
|
|
30
101
|
size: 50,
|
|
31
102
|
color: 'red'
|
|
32
103
|
};
|
|
104
|
+
|
|
105
|
+
export const Swap = SwapIconTemplate.bind({});
|
|
106
|
+
Swap.args = {
|
|
107
|
+
size: 50,
|
|
108
|
+
color: 'blue'
|
|
109
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IconProps } from './sharedTypes';
|
|
4
|
+
|
|
5
|
+
export default function MessageIcon({ size, color }: IconProps) {
|
|
6
|
+
return (
|
|
7
|
+
<svg width={size} height={size} viewBox="0 0 24 24" fill={color} xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M17.2383 10.1536H7.28591C6.99677 10.1536 6.7621 10.3776 6.7621 10.6536C6.7621 10.9296 6.99677 11.1536 7.28591 11.1536H17.2383C17.5274 11.1536 17.7621 10.9296 17.7621 10.6536C17.7621 10.3776 17.5274 10.1536 17.2383 10.1536M17.2383 7.1075H7.28591C6.99677 7.1075 6.7621 7.3315 6.7621 7.6075C6.7621 7.8835 6.99677 8.1075 7.28591 8.1075H17.2383C17.5274 8.1075 17.7621 7.8835 17.7621 7.6075C17.7621 7.3315 17.5274 7.1075 17.2383 7.1075M14.0954 13.1996H7.28591C6.99677 13.1996 6.7621 13.4236 6.7621 13.6996C6.7621 13.9756 6.99677 14.1996 7.28591 14.1996H14.0954C14.3846 14.1996 14.6192 13.9756 14.6192 13.6996C14.6192 13.4236 14.3846 13.1996 14.0954 13.1996M12.0002 0C10.7588 0 9.46915 0.19901 8.16381 0.629521C5.09534 1.6398 2.64915 4.033 1.62458 7.01409C-0.613136 13.5235 3.43801 19.6106 9.38115 21.0179V23.4903C9.38115 23.7868 9.63257 24 9.90705 24C9.994 24 10.0831 23.9787 10.1669 23.932L16.6904 20.3071C20.8075 18.117 23.0002 14.9237 23.0002 10.6613C23.0002 4.77319 18.0753 0 12.0002 0M21.9526 10.6613C21.9526 14.4891 20.0658 17.3525 16.1687 19.4258L10.4288 22.6161V21.0179C10.4288 20.5498 10.0988 20.1427 9.62943 20.032C6.94019 19.3943 4.62705 17.6764 3.28296 15.3177C1.91163 12.9133 1.67591 10.0784 2.61877 7.33494C3.54277 4.64628 5.74172 2.49879 8.50115 1.59005C9.66086 1.20828 10.8373 1.01536 12.0002 1.01536C17.4876 1.01536 21.9526 5.34281 21.9526 10.6613Z" />
|
|
9
|
+
</svg>
|
|
10
|
+
|
|
11
|
+
);
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* eslint-disable max-len */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IconProps } from './sharedTypes';
|
|
4
|
+
|
|
5
|
+
export default function SwapIcon({ size, color }: IconProps) {
|
|
6
|
+
return (
|
|
7
|
+
<svg width={size} height={size} viewBox="0 0 38 38" fill={color} xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path fillRule="evenodd" clipRule="evenodd" d="M36.4167 19C36.4167 28.619 28.619 36.4167 19 36.4167C9.38104 36.4167 1.58333 28.619 1.58333 19C1.58333 9.38104 9.38104 1.58333 19 1.58333C28.619 1.58333 36.4167 9.38104 36.4167 19ZM38 19C38 29.4934 29.4934 38 19 38C8.50659 38 0 29.4934 0 19C0 8.50659 8.50659 0 19 0C29.4934 0 38 8.50659 38 19ZM11.6464 15.3536C11.4512 15.1583 11.4512 14.8417 11.6464 14.6464L14.8284 11.4645L18.0104 14.6464C18.2057 14.8417 18.2057 15.1583 18.0104 15.3536C17.8151 15.5488 17.4986 15.5488 17.3033 15.3536L15.3281 13.3784V23.5C15.3281 23.7761 15.1043 24 14.8281 24C14.552 24 14.3281 23.7761 14.3281 23.5V13.379L12.3536 15.3536C12.1583 15.5488 11.8417 15.5488 11.6464 15.3536ZM23.6719 13.5V23.621L25.6464 21.6464C25.8417 21.4512 26.1583 21.4512 26.3536 21.6464C26.5488 21.8417 26.5488 22.1583 26.3536 22.3536L23.1716 25.5355L19.9896 22.3536C19.7943 22.1583 19.7943 21.8417 19.9896 21.6464C20.1849 21.4512 20.5014 21.4512 20.6967 21.6464L22.6719 23.6216V13.5C22.6719 13.2239 22.8957 13 23.1719 13C23.448 13 23.6719 13.2239 23.6719 13.5Z" />
|
|
9
|
+
</svg>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import Map, { MapProps } from './Map';
|
|
4
|
+
|
|
5
|
+
// Default
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Atoms/Map',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
// Templates
|
|
11
|
+
function MapTemplate(args: MapProps) {
|
|
12
|
+
return <Map {...args} />;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Stories
|
|
16
|
+
export const Default = MapTemplate.bind({});
|
|
17
|
+
Default.args = {
|
|
18
|
+
placeId: 'ChIJj6tQBWXIxokRXeXk9xqsgMo',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const WithCustomHeight = MapTemplate.bind({});
|
|
22
|
+
WithCustomHeight.args = {
|
|
23
|
+
placeId: 'ChIJj6tQBWXIxokRXeXk9xqsgMo',
|
|
24
|
+
height: '320px'
|
|
25
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export interface MapProps {
|
|
4
|
+
placeId: string;
|
|
5
|
+
height: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default function Map({
|
|
9
|
+
placeId, height
|
|
10
|
+
}: MapProps) {
|
|
11
|
+
const placeParam = placeId && `q=place_id:${placeId}`;
|
|
12
|
+
const placeUrl = `https://www.google.com/maps/embed/v1/place?key=AIzaSyCapzh9VsfXAzC9fAaosZJulONx7H1BFaY&${placeParam}`;
|
|
13
|
+
|
|
14
|
+
const mapheight = height || `216px`;
|
|
15
|
+
return (
|
|
16
|
+
<iframe
|
|
17
|
+
width="100%"
|
|
18
|
+
height={mapheight}
|
|
19
|
+
src={placeUrl}
|
|
20
|
+
title="Google Maps"
|
|
21
|
+
/>
|
|
22
|
+
);
|
|
23
|
+
}
|