@factorearth/component-library 5.3.0-alpha.0 → 5.3.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +11 -11
  2. package/dist/Atoms/Accordion/Accordion.js +18 -18
  3. package/dist/Atoms/Badge/Badge.js +18 -18
  4. package/dist/Atoms/Box/Box.js +15 -15
  5. package/dist/Atoms/Buttons/Button.js +23 -23
  6. package/dist/Atoms/ContentDropdown/ContentDropdown.js +24 -24
  7. package/dist/Atoms/DateField/DateField.js +94 -94
  8. package/dist/Atoms/FieldWrapper/FieldWrapper.js +35 -35
  9. package/dist/Atoms/MoreHorizonButton/MoreHorizonButton.js +52 -52
  10. package/dist/Atoms/NoteField/NoteField.js +38 -38
  11. package/dist/Atoms/NumberField/NumberField.js +63 -63
  12. package/dist/Atoms/OptionsDropdown/OptionsDropdown.js +38 -38
  13. package/dist/Atoms/Pagination/Pagination.js +25 -25
  14. package/dist/Atoms/PhoneNumberField/PhoneNumberField.js +4 -4
  15. package/dist/Atoms/ProgressBar/ProgressBar.js +16 -16
  16. package/dist/Atoms/SortDropdown/SortDropdown.js +39 -39
  17. package/dist/Atoms/Spinner/Spinner.d.ts +7 -0
  18. package/dist/Atoms/Spinner/Spinner.js +10 -0
  19. package/dist/Atoms/Spinner/Spinner.js.map +1 -0
  20. package/dist/Atoms/Tab/Tab.js +18 -18
  21. package/dist/Atoms/TextField/TextField.js +24 -24
  22. package/dist/Atoms/Toggle/Toggle.js +11 -11
  23. package/dist/Atoms/Typography/Typography.js +7 -7
  24. package/dist/Molecules/Form/Form.js +8 -8
  25. package/dist/Molecules/NavMenu/NavMenu.js +102 -102
  26. package/dist/Molecules/TableHeader/TableHeader.js +14 -14
  27. package/dist/Molecules/TableRow/TableRow.js +27 -27
  28. package/dist/Molecules/Thumbnail/Thumbnail.d.ts +4 -4
  29. package/dist/Molecules/Thumbnail/Thumbnail.js +131 -53
  30. package/dist/Molecules/Thumbnail/Thumbnail.js.map +1 -1
  31. package/dist/Organisms/Card/Card.js +33 -33
  32. package/dist/Organisms/EditUserPerms/EditUserPerms.js +67 -67
  33. package/dist/Organisms/ErrorSplash/ErrorSplash.js +44 -44
  34. package/dist/Organisms/Modal/Modal.d.ts +4 -0
  35. package/dist/Organisms/Modal/Modal.js +13 -12
  36. package/dist/Organisms/Modal/Modal.js.map +1 -1
  37. package/dist/Organisms/TabManager/TabManager.js +13 -13
  38. package/dist/Organisms/Table/Table.js +14 -14
  39. package/dist/Organisms/Tutorial/Tutorial.js +51 -51
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.js +1 -0
  42. package/dist/index.js.map +1 -1
  43. package/package.json +2 -2
  44. package/dist/Organisms/Splash/Splash.d.ts +0 -10
  45. package/dist/Organisms/Splash/Splash.js +0 -82
  46. package/dist/Organisms/Splash/Splash.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorearth/component-library",
3
- "version": "5.3.0-alpha.0",
3
+ "version": "5.3.1-alpha.0",
4
4
  "description": " A storybook component library for FactorEarth",
5
5
  "author": "madtrx <marlin.makori@gmail.com>",
6
6
  "homepage": "https://github.com/FactorEarth/RecordMiddleware#readme",
@@ -46,7 +46,7 @@
46
46
  "access": "public",
47
47
  "registry": "https://registry.npmjs.org/"
48
48
  },
49
- "gitHead": "2d6fa90ca6094f36b35bee167786c605b459e6db",
49
+ "gitHead": "1116e93d1a4456c0276ee4655b1637d3dae31ecb",
50
50
  "dependencies": {
51
51
  "@emotion/react": "^11.13.0",
52
52
  "@emotion/styled": "^11.13.0",
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import { Colors } from "Theme/types";
3
- interface ErrorSplashProps {
4
- colorPalette: Colors & string;
5
- title: string;
6
- description: string;
7
- image?: string;
8
- }
9
- export declare const ErrorSplash: (props: ErrorSplashProps) => React.JSX.Element;
10
- export {};
@@ -1,82 +0,0 @@
1
- import React from "react";
2
- import styled from "@emotion/styled";
3
- import { FiChevronLeft, FiRefreshCw } from "react-icons/fi";
4
- import { GoBug } from "react-icons/go";
5
- import { Button } from "../../Atoms/Buttons/Button";
6
- import { Typography } from "../../Atoms/Typography/Typography";
7
- const ErrorSplashContainer = styled.div `
8
- // width: 100vw;
9
- // height: 100vh;
10
-
11
- `;
12
- const HeaderDiv = styled.div `
13
- display: flex;
14
- padding: 24px;
15
- flex-direction: column;
16
- align-items: flex-start;
17
- gap: 16px;
18
- align-self: stretch;
19
- `;
20
- const HeaderAndBackDiv = styled.div `
21
- display: flex;
22
- justify-content: space-between;
23
- align-items: center;
24
- align-self: stretch;
25
- `;
26
- const DescriptionDiv = styled.div `
27
- display: -webkit-box;
28
- -webkit-box-orient: vertical;
29
- -webkit-line-clamp: 2;
30
- flex: 1 0 0;
31
- `;
32
- const ButtonsDiv = styled.div `
33
- //background is the topo image
34
- display: flex;
35
- height: 245px;
36
- justify-content: center;
37
- align-items: center;
38
- align-content: center;
39
- gap: 16px;
40
- flex-shrink: 0;
41
- align-self: stretch;
42
- flex-wrap: wrap;
43
- `;
44
- const AmbassadorContactDiv = styled.div `
45
- background-color: ${({ colorPalette }) => colorPalette.background.tertiary};
46
- border-top: ${({ colorPalette }) => colorPalette.border.tertiary} 1px solid;
47
- display: flex;
48
- padding: 24px 16px;
49
- flex-direction: column;
50
- align-items: center;
51
- gap: 16px;
52
- align-self: stretch;
53
- `;
54
- const ContactContainer = styled.div `
55
- background-color: ${({ colors }) => colors.background.tertiary};
56
- color: ${({ colors }) => colors.text.primary};
57
- display: flex;
58
- padding: 24px 16px;
59
- flex-direction: column;
60
- align-items: center;
61
- gap: 16px;
62
- align-self: stretch;
63
- `;
64
- export const ErrorSplash = (props) => {
65
- const { colorPalette, title, description, image, ...tableHtmlProps } = props;
66
- console.log("colorPalette:", colorPalette);
67
- return (React.createElement(ErrorSplashContainer, { colorPalette: colorPalette, ...tableHtmlProps },
68
- React.createElement(HeaderDiv, { colorPalette: colorPalette },
69
- React.createElement(HeaderAndBackDiv, { colorPalette: colorPalette },
70
- React.createElement(FiChevronLeft, null),
71
- React.createElement(Typography, { textColor: colorPalette.text.primary, content: title, variant: "Heading 3" })),
72
- React.createElement(DescriptionDiv, { colorPalette: colorPalette },
73
- React.createElement(Typography, { textColor: colorPalette.text.primary, content: description, variant: "Paragraphy Body" }))),
74
- image && React.createElement("img", { src: image, alt: "Splash Image" }),
75
- React.createElement(ButtonsDiv, { colorPalette: colorPalette },
76
- React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Refresh", variant: "outlined", icon: React.createElement(FiRefreshCw, null) }),
77
- React.createElement(Button, { colorPalette: colorPalette, onClick: () => { }, label: "Report a bug", variant: "filled", icon: React.createElement(GoBug, null) })),
78
- React.createElement(ContactContainer, { colors: colorPalette },
79
- React.createElement(Typography, { textColor: colorPalette.text.primary, content: "Please ask further questions, or reach out for additional support by emailing", variant: "Label" }),
80
- React.createElement(Typography, { textColor: colorPalette.text.primary, content: "devs@factorearth.com", variant: "Heading 4" }))));
81
- };
82
- //# sourceMappingURL=Splash.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Splash.js","sourceRoot":"","sources":["../../../lib/Organisms/Splash/Splash.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAoC,MAAM,gBAAgB,CAAC;AAC9F,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAA0B;;;;CAIhE,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAA0B;;;;;;;CAOrD,CAAC;AAEF,MAAM,gBAAgB,GAAG,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