@activecollab/components 1.0.150 → 1.0.151

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 (47) hide show
  1. package/dist/cjs/components/Entity/EntityCard.js +56 -0
  2. package/dist/cjs/components/Entity/EntityCard.js.map +1 -0
  3. package/dist/cjs/components/Entity/EntityGroup.js +47 -0
  4. package/dist/cjs/components/Entity/EntityGroup.js.map +1 -0
  5. package/dist/cjs/components/Entity/EntityProperty.js +48 -0
  6. package/dist/cjs/components/Entity/EntityProperty.js.map +1 -0
  7. package/dist/cjs/components/Entity/Styles.js +79 -0
  8. package/dist/cjs/components/Entity/Styles.js.map +1 -0
  9. package/dist/cjs/components/Entity/data.js +877 -0
  10. package/dist/cjs/components/Entity/data.js.map +1 -0
  11. package/dist/cjs/components/Entity/index.js +20 -0
  12. package/dist/cjs/components/Entity/index.js.map +1 -0
  13. package/dist/cjs/components/Paper/Styles.js +7 -4
  14. package/dist/cjs/components/Paper/Styles.js.map +1 -1
  15. package/dist/esm/components/Entity/EntityCard.d.ts +11 -0
  16. package/dist/esm/components/Entity/EntityCard.d.ts.map +1 -0
  17. package/dist/esm/components/Entity/EntityCard.js +37 -0
  18. package/dist/esm/components/Entity/EntityCard.js.map +1 -0
  19. package/dist/esm/components/Entity/EntityGroup.d.ts +7 -0
  20. package/dist/esm/components/Entity/EntityGroup.d.ts.map +1 -0
  21. package/dist/esm/components/Entity/EntityGroup.js +28 -0
  22. package/dist/esm/components/Entity/EntityGroup.js.map +1 -0
  23. package/dist/esm/components/Entity/EntityProperty.d.ts +9 -0
  24. package/dist/esm/components/Entity/EntityProperty.d.ts.map +1 -0
  25. package/dist/esm/components/Entity/EntityProperty.js +29 -0
  26. package/dist/esm/components/Entity/EntityProperty.js.map +1 -0
  27. package/dist/esm/components/Entity/Styles.d.ts +20 -0
  28. package/dist/esm/components/Entity/Styles.d.ts.map +1 -0
  29. package/dist/esm/components/Entity/Styles.js +59 -0
  30. package/dist/esm/components/Entity/Styles.js.map +1 -0
  31. package/dist/esm/components/Entity/data.d.ts +42 -0
  32. package/dist/esm/components/Entity/data.d.ts.map +1 -0
  33. package/dist/esm/components/Entity/data.js +866 -0
  34. package/dist/esm/components/Entity/data.js.map +1 -0
  35. package/dist/esm/components/Entity/index.d.ts +7 -0
  36. package/dist/esm/components/Entity/index.d.ts.map +1 -0
  37. package/dist/esm/components/Entity/index.js +9 -0
  38. package/dist/esm/components/Entity/index.js.map +1 -0
  39. package/dist/esm/components/Paper/Styles.d.ts +1 -0
  40. package/dist/esm/components/Paper/Styles.d.ts.map +1 -1
  41. package/dist/esm/components/Paper/Styles.js +4 -3
  42. package/dist/esm/components/Paper/Styles.js.map +1 -1
  43. package/dist/index.js +4 -3
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.min.js +1 -1
  46. package/dist/index.min.js.map +1 -1
  47. package/package.json +1 -1
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.EntityCard = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _Styles = require("./Styles");
11
+
12
+ var _EntityProperty = require("./EntityProperty");
13
+
14
+ var _excluded = ["children", "actions", "renderAs", "isCollection", "background", "className"];
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
+
20
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
21
+
22
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23
+
24
+ var EntityCard = function EntityCard(_ref) {
25
+ var children = _ref.children,
26
+ actions = _ref.actions,
27
+ _ref$renderAs = _ref.renderAs,
28
+ renderAs = _ref$renderAs === void 0 ? "grid" : _ref$renderAs,
29
+ isCollection = _ref.isCollection,
30
+ background = _ref.background,
31
+ className = _ref.className,
32
+ rest = _objectWithoutProperties(_ref, _excluded);
33
+
34
+ var paperType = renderAs === "grid" ? "paper-1" : "paper-2";
35
+ return /*#__PURE__*/_react.default.createElement(_Styles.StyledEntityCard, _extends({
36
+ $renderAs: renderAs,
37
+ $background: background,
38
+ paperType: paperType,
39
+ className: className,
40
+ $isCollection: isCollection
41
+ }, rest), _react.default.Children.map(children, function (child) {
42
+ if ( /*#__PURE__*/_react.default.isValidElement(child) && child.type === _EntityProperty.EntityProperty) {
43
+ return /*#__PURE__*/_react.default.cloneElement(child, {
44
+ $renderAs: renderAs
45
+ });
46
+ }
47
+
48
+ return null;
49
+ }), actions && /*#__PURE__*/_react.default.createElement(_Styles.StyledEntityActions, {
50
+ $renderAs: renderAs
51
+ }, actions));
52
+ };
53
+
54
+ exports.EntityCard = EntityCard;
55
+ EntityCard.displayName = "EntityCard";
56
+ //# sourceMappingURL=EntityCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Entity/EntityCard.tsx"],"names":["EntityCard","children","actions","renderAs","isCollection","background","className","rest","paperType","React","Children","map","child","isValidElement","type","EntityProperty","cloneElement","$renderAs","displayName"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;;;;;;;AAWO,IAAMA,UAA2B,GAAG,SAA9BA,UAA8B,OAQrC;AAAA,MAPJC,QAOI,QAPJA,QAOI;AAAA,MANJC,OAMI,QANJA,OAMI;AAAA,2BALJC,QAKI;AAAA,MALJA,QAKI,8BALO,MAKP;AAAA,MAJJC,YAII,QAJJA,YAII;AAAA,MAHJC,UAGI,QAHJA,UAGI;AAAA,MAFJC,SAEI,QAFJA,SAEI;AAAA,MADDC,IACC;;AACJ,MAAMC,SAAS,GAAGL,QAAQ,KAAK,MAAb,GAAsB,SAAtB,GAAkC,SAApD;AAEA,sBACE,6BAAC,wBAAD;AACE,IAAA,SAAS,EAAEA,QADb;AAEE,IAAA,WAAW,EAAEE,UAFf;AAGE,IAAA,SAAS,EAAEG,SAHb;AAIE,IAAA,SAAS,EAAEF,SAJb;AAKE,IAAA,aAAa,EAAEF;AALjB,KAMMG,IANN,GAQGE,eAAMC,QAAN,CAAeC,GAAf,CAAmBV,QAAnB,EAA6B,UAACW,KAAD,EAAW;AACvC,QAAI,6BAAMC,cAAN,CAAqBD,KAArB,KAA+BA,KAAK,CAACE,IAAN,KAAeC,8BAAlD,EAAkE;AAChE,0BAAON,eAAMO,YAAN,CAAmBJ,KAAnB,EAA0B;AAC/BK,QAAAA,SAAS,EAAEd;AADoB,OAA1B,CAAP;AAGD;;AACD,WAAO,IAAP;AACD,GAPA,CARH,EAgBGD,OAAO,iBACN,6BAAC,2BAAD;AAAqB,IAAA,SAAS,EAAEC;AAAhC,KACGD,OADH,CAjBJ,CADF;AAwBD,CAnCM;;;AAqCPF,UAAU,CAACkB,WAAX,GAAyB,YAAzB","sourcesContent":["import React, { ReactNode } from \"react\";\nimport { StyledEntityActions, StyledEntityCard } from \"./Styles\";\n\nimport { EntityProperty } from \"./EntityProperty\";\nimport { ICardProps } from \"../Card\";\n\nexport interface Props extends ICardProps {\n renderAs?: \"grid\" | \"list\";\n actions?: ReactNode;\n className?: string;\n isCollection?: boolean;\n background?: string;\n}\n\nexport const EntityCard: React.FC<Props> = ({\n children,\n actions,\n renderAs = \"grid\",\n isCollection,\n background,\n className,\n ...rest\n}) => {\n const paperType = renderAs === \"grid\" ? \"paper-1\" : \"paper-2\";\n\n return (\n <StyledEntityCard\n $renderAs={renderAs}\n $background={background}\n paperType={paperType}\n className={className}\n $isCollection={isCollection}\n {...rest}\n >\n {React.Children.map(children, (child) => {\n if (React.isValidElement(child) && child.type === EntityProperty) {\n return React.cloneElement(child, {\n $renderAs: renderAs,\n });\n }\n return null;\n })}\n {actions && (\n <StyledEntityActions $renderAs={renderAs}>\n {actions}\n </StyledEntityActions>\n )}\n </StyledEntityCard>\n );\n};\n\nEntityCard.displayName = \"EntityCard\";\n"],"file":"EntityCard.js"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.EntityGroup = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _Styles = require("./Styles");
11
+
12
+ var _EntityCard = require("./EntityCard");
13
+
14
+ var _excluded = ["children", "gap", "renderAs"];
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
+
20
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
21
+
22
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23
+
24
+ var EntityGroup = function EntityGroup(_ref) {
25
+ var children = _ref.children,
26
+ gap = _ref.gap,
27
+ _ref$renderAs = _ref.renderAs,
28
+ renderAs = _ref$renderAs === void 0 ? "grid" : _ref$renderAs,
29
+ rest = _objectWithoutProperties(_ref, _excluded);
30
+
31
+ return /*#__PURE__*/_react.default.createElement(_Styles.StyledEntityGroup, _extends({
32
+ $renderAs: renderAs,
33
+ $gap: gap
34
+ }, rest), _react.default.Children.map(children, function (child) {
35
+ if ( /*#__PURE__*/_react.default.isValidElement(child) && child.type === _EntityCard.EntityCard) {
36
+ return /*#__PURE__*/_react.default.cloneElement(child, {
37
+ renderAs: renderAs
38
+ });
39
+ }
40
+
41
+ return null;
42
+ }));
43
+ };
44
+
45
+ exports.EntityGroup = EntityGroup;
46
+ EntityGroup.displayName = "EntityGroup";
47
+ //# sourceMappingURL=EntityGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Entity/EntityGroup.tsx"],"names":["EntityGroup","children","gap","renderAs","rest","React","Children","map","child","isValidElement","type","EntityCard","cloneElement","displayName"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;AAQO,IAAMA,WAA4B,GAAG,SAA/BA,WAA+B,OAKtC;AAAA,MAJJC,QAII,QAJJA,QAII;AAAA,MAHJC,GAGI,QAHJA,GAGI;AAAA,2BAFJC,QAEI;AAAA,MAFJA,QAEI,8BAFO,MAEP;AAAA,MADDC,IACC;;AACJ,sBACE,6BAAC,yBAAD;AAAmB,IAAA,SAAS,EAAED,QAA9B;AAAwC,IAAA,IAAI,EAAED;AAA9C,KAAuDE,IAAvD,GACGC,eAAMC,QAAN,CAAeC,GAAf,CAAmBN,QAAnB,EAA6B,UAACO,KAAD,EAAW;AACvC,QAAI,6BAAMC,cAAN,CAAqBD,KAArB,KAA+BA,KAAK,CAACE,IAAN,KAAeC,sBAAlD,EAA8D;AAC5D,0BAAON,eAAMO,YAAN,CAAmBJ,KAAnB,EAA0B;AAC/BL,QAAAA,QAAQ,EAARA;AAD+B,OAA1B,CAAP;AAGD;;AACD,WAAO,IAAP;AACD,GAPA,CADH,CADF;AAYD,CAlBM;;;AAoBPH,WAAW,CAACa,WAAZ,GAA0B,aAA1B","sourcesContent":["import React, { HTMLAttributes } from \"react\";\nimport { StyledEntityGroup } from \"./Styles\";\nimport { EntityCard } from \"./EntityCard\";\n\nexport interface Props\n extends Pick<HTMLAttributes<HTMLDivElement>, \"className\" | \"style\"> {\n gap?: number;\n renderAs?: \"grid\" | \"list\";\n}\n\nexport const EntityGroup: React.FC<Props> = ({\n children,\n gap,\n renderAs = \"grid\",\n ...rest\n}) => {\n return (\n <StyledEntityGroup $renderAs={renderAs} $gap={gap} {...rest}>\n {React.Children.map(children, (child) => {\n if (React.isValidElement(child) && child.type === EntityCard) {\n return React.cloneElement(child, {\n renderAs,\n });\n }\n return null;\n })}\n </StyledEntityGroup>\n );\n};\n\nEntityGroup.displayName = \"EntityGroup\";\n"],"file":"EntityGroup.js"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.EntityProperty = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _Styles = require("./Styles");
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ var _excluded = ["listOrder", "listWidth", "visibleFromBreakpoint", "className"];
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
+
20
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
21
+
22
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23
+
24
+ var EntityProperty = function EntityProperty(_ref) {
25
+ var listOrder = _ref.listOrder,
26
+ listWidth = _ref.listWidth,
27
+ visibleFromBreakpoint = _ref.visibleFromBreakpoint,
28
+ className = _ref.className,
29
+ props = _objectWithoutProperties(_ref, _excluded);
30
+
31
+ return /*#__PURE__*/_react.default.createElement(_Styles.StyledEntityProperty, _extends({
32
+ className: (0, _classnames.default)("c_property", className, {
33
+ "tw-hidden": visibleFromBreakpoint,
34
+ "sm:tw-flex": visibleFromBreakpoint === "sm",
35
+ "md:tw-flex": visibleFromBreakpoint === "md",
36
+ "lg:tw-flex": visibleFromBreakpoint === "lg",
37
+ "xl:tw-flex": visibleFromBreakpoint === "xl",
38
+ "2xl:tw-flex": visibleFromBreakpoint === "2xl"
39
+ })
40
+ }, props, {
41
+ $order: listOrder,
42
+ $width: listWidth
43
+ }));
44
+ };
45
+
46
+ exports.EntityProperty = EntityProperty;
47
+ EntityProperty.displayName = "EntityProperty";
48
+ //# sourceMappingURL=EntityProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Entity/EntityProperty.tsx"],"names":["EntityProperty","listOrder","listWidth","visibleFromBreakpoint","className","props","displayName"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;AASO,IAAMA,cAA+B,GAAG,SAAlCA,cAAkC,OAMzC;AAAA,MALJC,SAKI,QALJA,SAKI;AAAA,MAJJC,SAII,QAJJA,SAII;AAAA,MAHJC,qBAGI,QAHJA,qBAGI;AAAA,MAFJC,SAEI,QAFJA,SAEI;AAAA,MADDC,KACC;;AACJ,sBACE,6BAAC,4BAAD;AACE,IAAA,SAAS,EAAE,yBAAW,YAAX,EAAyBD,SAAzB,EAAoC;AAC7C,mBAAaD,qBADgC;AAE7C,oBAAcA,qBAAqB,KAAK,IAFK;AAG7C,oBAAcA,qBAAqB,KAAK,IAHK;AAI7C,oBAAcA,qBAAqB,KAAK,IAJK;AAK7C,oBAAcA,qBAAqB,KAAK,IALK;AAM7C,qBAAeA,qBAAqB,KAAK;AANI,KAApC;AADb,KASME,KATN;AAUE,IAAA,MAAM,EAAEJ,SAVV;AAWE,IAAA,MAAM,EAAEC;AAXV,KADF;AAeD,CAtBM;;;AAwBPF,cAAc,CAACM,WAAf,GAA6B,gBAA7B","sourcesContent":["import React, { HTMLAttributes } from \"react\";\nimport { StyledEntityProperty } from \"./Styles\";\nimport classNames from \"classnames\";\n\nexport interface Props extends HTMLAttributes<HTMLDivElement> {\n $renderAs?: \"grid\" | \"list\";\n listOrder?: number;\n listWidth?: string | number;\n visibleFromBreakpoint?: \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\n}\n\nexport const EntityProperty: React.FC<Props> = ({\n listOrder,\n listWidth,\n visibleFromBreakpoint,\n className,\n ...props\n}) => {\n return (\n <StyledEntityProperty\n className={classNames(\"c_property\", className, {\n \"tw-hidden\": visibleFromBreakpoint,\n \"sm:tw-flex\": visibleFromBreakpoint === \"sm\",\n \"md:tw-flex\": visibleFromBreakpoint === \"md\",\n \"lg:tw-flex\": visibleFromBreakpoint === \"lg\",\n \"xl:tw-flex\": visibleFromBreakpoint === \"xl\",\n \"2xl:tw-flex\": visibleFromBreakpoint === \"2xl\",\n })}\n {...props}\n $order={listOrder}\n $width={listWidth}\n />\n );\n};\n\nEntityProperty.displayName = \"EntityProperty\";\n"],"file":"EntityProperty.js"}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.StyledEntityProperty = exports.StyledEntityGroup = exports.StyledEntityCard = exports.StyledEntityActions = void 0;
9
+
10
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
11
+
12
+ var _Card = require("../Card");
13
+
14
+ var _Styles = require("../Paper/Styles");
15
+
16
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
+
18
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
+
20
+ var StyledEntityCard = (0, _styledComponents.default)(_Card.Card).withConfig({
21
+ displayName: "Styles__StyledEntityCard",
22
+ componentId: "sc-bjeea8-0"
23
+ })(["line-height:1.375;", " ", " ", " ", " ", ""], function (_ref) {
24
+ var $renderAs = _ref.$renderAs;
25
+ return $renderAs === "list" && (0, _styledComponents.css)(["display:flex;flex-direction:row;align-items:center;min-height:48px;margin-bottom:4px;justify-content:space-between;padding:0 16px 0 16px;"]);
26
+ }, function (_ref2) {
27
+ var $renderAs = _ref2.$renderAs;
28
+ return $renderAs === "grid" && (0, _styledComponents.css)(["display:flex;flex-direction:column;position:relative;padding:20px 24px;height:280px;"]);
29
+ }, function (props) {
30
+ return props.$gap && (0, _styledComponents.css)(["gap:", "px;"], props.$gap);
31
+ }, function (props) {
32
+ return props.$background && (0, _styledComponents.css)(["background-color:", ";"], props.$background);
33
+ }, function (_ref3) {
34
+ var $isCollection = _ref3.$isCollection,
35
+ $background = _ref3.$background;
36
+ return $isCollection && (0, _styledComponents.css)(["&::after{display:block;content:\"\";position:absolute;top:0;bottom:0;right:0;left:0;transform:rotate(-3deg);z-index:-1;", ";background-color:", ";}"], _Styles.PaperStyles, $background);
37
+ });
38
+ exports.StyledEntityCard = StyledEntityCard;
39
+ StyledEntityCard.displayName = "StyledEntityCard";
40
+ var StyledEntityProperty = (0, _styledComponents.default)("div").withConfig({
41
+ displayName: "Styles__StyledEntityProperty",
42
+ componentId: "sc-bjeea8-1"
43
+ })(["", " ", " ", ""], function (_ref4) {
44
+ var $renderAs = _ref4.$renderAs,
45
+ $width = _ref4.$width;
46
+ return $renderAs === "list" && (0, _styledComponents.css)(["display:flex;align-items:center;min-width:24px;flex:", ";"], $width ? "unset" : 1);
47
+ }, function (props) {
48
+ return props.$renderAs === "list" && props.$order && (0, _styledComponents.css)(["order:", ";"], props.$order);
49
+ }, function (props) {
50
+ return props.$renderAs === "list" && props.$width && (0, _styledComponents.css)(["width:", ";"], props.$width);
51
+ });
52
+ exports.StyledEntityProperty = StyledEntityProperty;
53
+ StyledEntityProperty.displayName = "StyledEntityProperty";
54
+ var StyledEntityGroup = (0, _styledComponents.default)("div").withConfig({
55
+ displayName: "Styles__StyledEntityGroup",
56
+ componentId: "sc-bjeea8-2"
57
+ })(["", " ", " ", ""], function (_ref5) {
58
+ var $renderAs = _ref5.$renderAs,
59
+ $gap = _ref5.$gap;
60
+ return $renderAs === "grid" && (0, _styledComponents.css)(["display:grid;grid-gap:", ";grid-template-columns:repeat(auto-fill,minmax(260px,1fr));"], $gap ? "".concat($gap, "px") : "initial");
61
+ }, function (props) {
62
+ return props.$renderAs === "list" && (0, _styledComponents.css)(["display:flex;flex-direction:column;"]);
63
+ }, function (props) {
64
+ return props.$gap && props.$renderAs === "list" && (0, _styledComponents.css)(["", "{gap:", "px;}"], StyledEntityCard, props.$gap);
65
+ });
66
+ exports.StyledEntityGroup = StyledEntityGroup;
67
+ StyledEntityGroup.displayName = "StyledEntityGroup";
68
+ var StyledEntityActions = (0, _styledComponents.default)("div").withConfig({
69
+ displayName: "Styles__StyledEntityActions",
70
+ componentId: "sc-bjeea8-3"
71
+ })(["display:flex;flex-direction:column;align-items:center;", " ", ""], function (_ref6) {
72
+ var $renderAs = _ref6.$renderAs;
73
+ return $renderAs === "grid" && (0, _styledComponents.css)(["position:absolute;right:16px;top:20px;"]);
74
+ }, function (_ref7) {
75
+ var $renderAs = _ref7.$renderAs;
76
+ return $renderAs === "list" && (0, _styledComponents.css)(["justify-self:flex-end;"]);
77
+ });
78
+ exports.StyledEntityActions = StyledEntityActions;
79
+ //# sourceMappingURL=Styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/Entity/Styles.ts"],"names":["StyledEntityCard","Card","$renderAs","css","props","$gap","$background","$isCollection","PaperStyles","displayName","StyledEntityProperty","$width","$order","StyledEntityGroup","StyledEntityActions"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;;;;;AAEO,IAAMA,gBAAgB,GAAG,+BAAOC,UAAP,CAAH;AAAA;AAAA;AAAA,mDAOzB;AAAA,MAAGC,SAAH,QAAGA,SAAH;AAAA,SACAA,SAAS,KAAK,MAAd,QACAC,qBADA,gJADA;AAAA,CAPyB,EAmBzB;AAAA,MAAGD,SAAH,SAAGA,SAAH;AAAA,SACAA,SAAS,KAAK,MAAd,QACAC,qBADA,2FADA;AAAA,CAnByB,EA6BzB,UAACC,KAAD;AAAA,SACAA,KAAK,CAACC,IAAN,QACAF,qBADA,mBAESC,KAAK,CAACC,IAFf,CADA;AAAA,CA7ByB,EAkCzB,UAACD,KAAD;AAAA,SACAA,KAAK,CAACE,WAAN,QACAH,qBADA,8BAEsBC,KAAK,CAACE,WAF5B,CADA;AAAA,CAlCyB,EAwCzB;AAAA,MAAGC,aAAH,SAAGA,aAAH;AAAA,MAAkBD,WAAlB,SAAkBA,WAAlB;AAAA,SACAC,aAAa,QACbJ,qBADa,2JAYPK,mBAZO,EAaWF,WAbX,CADb;AAAA,CAxCyB,CAAtB;;AA0DPN,gBAAgB,CAACS,WAAjB,GAA+B,kBAA/B;AAEO,IAAMC,oBAAoB,GAAG,+BAAO,KAAP,CAAH;AAAA;AAAA;AAAA,uBAK7B;AAAA,MAAGR,SAAH,SAAGA,SAAH;AAAA,MAAcS,MAAd,SAAcA,MAAd;AAAA,SACAT,SAAS,KAAK,MAAd,QACAC,qBADA,iEAKUQ,MAAM,GAAG,OAAH,GAAa,CAL7B,CADA;AAAA,CAL6B,EAc7B,UAACP,KAAD;AAAA,SACAA,KAAK,CAACF,SAAN,KAAoB,MAApB,IACAE,KAAK,CAACQ,MADN,QAEAT,qBAFA,mBAGWC,KAAK,CAACQ,MAHjB,CADA;AAAA,CAd6B,EAqB7B,UAACR,KAAD;AAAA,SACAA,KAAK,CAACF,SAAN,KAAoB,MAApB,IACAE,KAAK,CAACO,MADN,QAEAR,qBAFA,mBAGWC,KAAK,CAACO,MAHjB,CADA;AAAA,CArB6B,CAA1B;;AA6BPD,oBAAoB,CAACD,WAArB,GAAmC,sBAAnC;AAEO,IAAMI,iBAAiB,GAAG,+BAAO,KAAP,CAAH;AAAA;AAAA;AAAA,uBAI1B;AAAA,MAAGX,SAAH,SAAGA,SAAH;AAAA,MAAcG,IAAd,SAAcA,IAAd;AAAA,SACAH,SAAS,KAAK,MAAd,QACAC,qBADA,6FAGcE,IAAI,aAAMA,IAAN,UAAiB,SAHnC,CADA;AAAA,CAJ0B,EAW1B,UAACD,KAAD;AAAA,SACAA,KAAK,CAACF,SAAN,KAAoB,MAApB,QACAC,qBADA,0CADA;AAAA,CAX0B,EAkB1B,UAACC,KAAD;AAAA,SACAA,KAAK,CAACC,IAAN,IACAD,KAAK,CAACF,SAAN,KAAoB,MADpB,QAEAC,qBAFA,yBAGIH,gBAHJ,EAIWI,KAAK,CAACC,IAJjB,CADA;AAAA,CAlB0B,CAAvB;;AA2BPQ,iBAAiB,CAACJ,WAAlB,GAAgC,mBAAhC;AAEO,IAAMK,mBAAmB,GAAG,+BAAO,KAAP,CAAH;AAAA;AAAA;AAAA,wEAK5B;AAAA,MAAGZ,SAAH,SAAGA,SAAH;AAAA,SACAA,SAAS,KAAK,MAAd,QACAC,qBADA,6CADA;AAAA,CAL4B,EAa5B;AAAA,MAAGD,SAAH,SAAGA,SAAH;AAAA,SACAA,SAAS,KAAK,MAAd,QACAC,qBADA,6BADA;AAAA,CAb4B,CAAzB","sourcesContent":["import styled, { css } from \"styled-components\";\nimport { Card } from \"../Card\";\nimport { PaperStyles } from \"../Paper/Styles\";\n\nexport const StyledEntityCard = styled(Card)<{\n $renderAs: string;\n $gap?: number;\n $background?: string;\n $isCollection?: boolean;\n}>`\n line-height: 1.375;\n ${({ $renderAs }) =>\n $renderAs === \"list\" &&\n css`\n display: flex;\n flex-direction: row;\n align-items: center;\n min-height: 48px;\n margin-bottom: 4px;\n justify-content: space-between;\n padding: 0 16px 0 16px;\n `}\n\n ${({ $renderAs }) =>\n $renderAs === \"grid\" &&\n css`\n display: flex;\n flex-direction: column;\n position: relative;\n padding: 20px 24px;\n height: 280px;\n `}\n\n ${(props) =>\n props.$gap &&\n css`\n gap: ${props.$gap}px;\n `}\n ${(props) =>\n props.$background &&\n css`\n background-color: ${props.$background};\n `}\n\n ${({ $isCollection, $background }) =>\n $isCollection &&\n css`\n &::after {\n display: block;\n content: \"\";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n transform: rotate(-3deg);\n z-index: -1;\n ${PaperStyles};\n background-color: ${$background};\n }\n `}\n`;\nStyledEntityCard.displayName = \"StyledEntityCard\";\n\nexport const StyledEntityProperty = styled(\"div\")<{\n $renderAs?: string;\n $order?: number;\n $width?: number | string;\n}>`\n ${({ $renderAs, $width }) =>\n $renderAs === \"list\" &&\n css`\n display: flex;\n align-items: center;\n min-width: 24px;\n flex: ${$width ? \"unset\" : 1};\n `}\n\n ${(props) =>\n props.$renderAs === \"list\" &&\n props.$order &&\n css`\n order: ${props.$order};\n `}\n\n ${(props) =>\n props.$renderAs === \"list\" &&\n props.$width &&\n css`\n width: ${props.$width};\n `}\n`;\n\nStyledEntityProperty.displayName = \"StyledEntityProperty\";\n\nexport const StyledEntityGroup = styled(\"div\")<{\n $renderAs: string;\n $gap?: number;\n}>`\n ${({ $renderAs, $gap }) =>\n $renderAs === \"grid\" &&\n css`\n display: grid;\n grid-gap: ${$gap ? `${$gap}px` : \"initial\"};\n grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));\n `}\n ${(props) =>\n props.$renderAs === \"list\" &&\n css`\n display: flex;\n flex-direction: column;\n `}\n\n ${(props) =>\n props.$gap &&\n props.$renderAs === \"list\" &&\n css`\n ${StyledEntityCard} {\n gap: ${props.$gap}px;\n }\n `}\n`;\nStyledEntityGroup.displayName = \"StyledEntityGroup\";\n\nexport const StyledEntityActions = styled(\"div\")<{ $renderAs?: string }>`\n display: flex;\n flex-direction: column;\n align-items: center;\n\n ${({ $renderAs }) =>\n $renderAs === \"grid\" &&\n css`\n position: absolute;\n right: 16px;\n top: 20px;\n `}\n\n ${({ $renderAs }) =>\n $renderAs === \"list\" &&\n css`\n justify-self: flex-end;\n `}\n`;\n"],"file":"Styles.js"}