@factorearth/component-library 8.0.2-alpha.0 → 8.1.0-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.
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { Colors } from "Theme/types";
3
+ interface PhotologRowProps {
4
+ colorPalette: Colors;
5
+ fields: React.ReactNode[] | JSX.Element[];
6
+ }
7
+ export declare const PhotologRow: (props: PhotologRowProps) => React.JSX.Element;
8
+ export {};
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ import styled from "@emotion/styled";
3
+ const Row = styled.div `
4
+ display: flex;
5
+ height: 56px;
6
+ border-color: green;
7
+ border-top: ${({ colorPalette }) => `${colorPalette.border.primary} 0.5px solid`};
8
+ border-bottom: ${({ colorPalette }) => `${colorPalette.border.primary} 0.5px solid`};
9
+ background: ${({ colorPalette }) => colorPalette.background.primary};
10
+ gap: 20px;
11
+ padding: 8px;
12
+ `;
13
+ const Column = styled.div `
14
+ display: flex;
15
+ flex-direction: column;
16
+ justify-content: center;
17
+ align-items: center;
18
+ align-content: center;
19
+ flex: 1 0 0;
20
+ `;
21
+ export const PhotologRow = (props) => {
22
+ const { colorPalette, fields, } = props;
23
+ console.log(fields);
24
+ return (React.createElement(Row, { colorPalette: colorPalette }, Array.isArray(fields) &&
25
+ fields.map((element) => React.createElement(Column, { colorPalette: colorPalette }, element))));
26
+ };
27
+ //# sourceMappingURL=PhotologRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PhotologRow.js","sourceRoot":"","sources":["../../../lib/Molecules/PhotologRow/PhotologRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAA2B;;;;kBAI/B,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,OAAO,cAAc;qBAC/D,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,OAAO,cAAc;kBACrE,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,OAAO;;;CAGtE,CAAC;AAEF,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAA2B;;;;;;;CAOnD,CAAC;AAQF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IACnD,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,GAAG,KAAK,CAAC;IAExC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;IAEnB,OAAO,CACH,oBAAC,GAAG,IAAC,YAAY,EAAE,YAAY,IAC1B,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;QAC7B,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,oBAAC,MAAM,IAAC,YAAY,EAAE,YAAY,IAAG,OAAO,CAAU,CAAC,CACtE,CACT,CAAC;AACN,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ export * from "./Atoms/MultiToggleButton/MultiToggleButton";
20
20
  export * from "./Molecules/Form/Form";
21
21
  export * from "./Molecules/Thumbnail/Thumbnail";
22
22
  export * from "./Molecules/TableRow/TableRow";
23
+ export * from "./Molecules/PhotologRow/PhotologRow";
23
24
  export * from "./Organisms/Card/Card";
24
25
  export * from "./Organisms/Modal/Modal";
25
26
  export * from "./Molecules/NavMenu/NavMenu";
package/dist/index.js CHANGED
@@ -23,6 +23,7 @@ export * from "./Atoms/MultiToggleButton/MultiToggleButton";
23
23
  export * from "./Molecules/Form/Form";
24
24
  export * from "./Molecules/Thumbnail/Thumbnail";
25
25
  export * from "./Molecules/TableRow/TableRow";
26
+ export * from "./Molecules/PhotologRow/PhotologRow";
26
27
  // Organisms
27
28
  export * from "./Organisms/Card/Card";
28
29
  export * from "./Organisms/Modal/Modal";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iCAAiC,CAAC;AAChD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,qDAAqD;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,6CAA6C,CAAC;AAC5D,YAAY;AACZ,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,YAAY;AACZ,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yCAAyC,CAAA;AACvD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qCAAqC,CAAA;AACnD,SAAS;AACT,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iCAAiC,CAAC;AAChD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,qDAAqD;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,6CAA6C,CAAC;AAC5D,YAAY;AACZ,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,YAAY;AACZ,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yCAAyC,CAAA;AACvD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qCAAqC,CAAA;AACnD,SAAS;AACT,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorearth/component-library",
3
- "version": "8.0.2-alpha.0",
3
+ "version": "8.1.0-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": "510e20d4207a9fcc76d5260c8efbb6ea93210ce6",
49
+ "gitHead": "e6b3d88dd78f37b6f5b17912b8a9e50a59c7f6ce",
50
50
  "dependencies": {
51
51
  "@emotion/react": "^11.13.0",
52
52
  "@emotion/styled": "^11.13.0",