@activecollab/components 1.0.337 → 1.0.339

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.
@@ -1 +1 @@
1
- {"version":3,"file":"EntityGroup.js","names":["EntityGroupContext","React","createContext","renderAs","EntityGroup","children","gap","rest","displayName"],"sources":["../../../../src/components/Entity/EntityGroup.tsx"],"sourcesContent":["import React, { HTMLAttributes } from \"react\";\nimport { StyledEntityGroup } from \"./Styles\";\n\nexport interface IEntityGroupProps\n extends Pick<HTMLAttributes<HTMLDivElement>, \"className\" | \"style\"> {\n gap?: number;\n renderAs?: \"grid\" | \"list\";\n}\n\ninterface IEntityGroupContext {\n renderAs: \"grid\" | \"list\";\n}\nexport const EntityGroupContext = React.createContext<IEntityGroupContext>({\n renderAs: \"grid\",\n});\n\nexport const EntityGroup: React.FC<IEntityGroupProps> = ({\n children,\n gap,\n renderAs = \"grid\",\n ...rest\n}) => {\n return (\n <EntityGroupContext.Provider value={{ renderAs: renderAs }}>\n <StyledEntityGroup $renderAs={renderAs} $gap={gap} {...rest}>\n {children}\n </StyledEntityGroup>\n </EntityGroupContext.Provider>\n );\n};\n\nEntityGroup.displayName = \"EntityGroup\";\n"],"mappings":";;;;;;AAAA;AACA;AAA6C;AAAA;AAAA;AAAA;AAAA;AAWtC,IAAMA,kBAAkB,gBAAGC,cAAK,CAACC,aAAa,CAAsB;EACzEC,QAAQ,EAAE;AACZ,CAAC,CAAC;AAAC;AAEI,IAAMC,WAAwC,GAAG,SAA3CA,WAAwC,OAK/C;EAAA,IAJJC,QAAQ,QAARA,QAAQ;IACRC,GAAG,QAAHA,GAAG;IAAA,qBACHH,QAAQ;IAARA,QAAQ,8BAAG,MAAM;IACdI,IAAI;EAEP,oBACE,6BAAC,kBAAkB,CAAC,QAAQ;IAAC,KAAK,EAAE;MAAEJ,QAAQ,EAAEA;IAAS;EAAE,gBACzD,6BAAC,yBAAiB;IAAC,SAAS,EAAEA,QAAS;IAAC,IAAI,EAAEG;EAAI,GAAKC,IAAI,GACxDF,QAAQ,CACS,CACQ;AAElC,CAAC;AAAC;AAEFD,WAAW,CAACI,WAAW,GAAG,aAAa"}
1
+ {"version":3,"file":"EntityGroup.js","names":["EntityGroupContext","React","createContext","renderAs","EntityGroup","children","gap","rest","displayName"],"sources":["../../../../src/components/Entity/EntityGroup.tsx"],"sourcesContent":["import React, { HTMLAttributes } from \"react\";\nimport { StyledEntityGroup } from \"./Styles\";\n\nexport interface IEntityGroupProps\n extends Pick<HTMLAttributes<HTMLDivElement>, \"className\" | \"style\"> {\n gap?: number;\n renderAs?: \"grid\" | \"list\";\n}\n\nexport interface IEntityGroupContext {\n renderAs: \"grid\" | \"list\";\n}\nexport const EntityGroupContext = React.createContext<IEntityGroupContext>({\n renderAs: \"grid\",\n});\nexport const EntityGroup: React.FC<IEntityGroupProps> = ({\n children,\n gap,\n renderAs = \"grid\",\n ...rest\n}) => {\n return (\n <EntityGroupContext.Provider value={{ renderAs: renderAs }}>\n <StyledEntityGroup $renderAs={renderAs} $gap={gap} {...rest}>\n {children}\n </StyledEntityGroup>\n </EntityGroupContext.Provider>\n );\n};\n\nEntityGroup.displayName = \"EntityGroup\";\n"],"mappings":";;;;;;AAAA;AACA;AAA6C;AAAA;AAAA;AAAA;AAAA;AAWtC,IAAMA,kBAAkB,gBAAGC,cAAK,CAACC,aAAa,CAAsB;EACzEC,QAAQ,EAAE;AACZ,CAAC,CAAC;AAAC;AACI,IAAMC,WAAwC,GAAG,SAA3CA,WAAwC,OAK/C;EAAA,IAJJC,QAAQ,QAARA,QAAQ;IACRC,GAAG,QAAHA,GAAG;IAAA,qBACHH,QAAQ;IAARA,QAAQ,8BAAG,MAAM;IACdI,IAAI;EAEP,oBACE,6BAAC,kBAAkB,CAAC,QAAQ;IAAC,KAAK,EAAE;MAAEJ,QAAQ,EAAEA;IAAS;EAAE,gBACzD,6BAAC,yBAAiB;IAAC,SAAS,EAAEA,QAAS;IAAC,IAAI,EAAEG;EAAI,GAAKC,IAAI,GACxDF,QAAQ,CACS,CACQ;AAElC,CAAC;AAAC;AAEFD,WAAW,CAACI,WAAW,GAAG,aAAa"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.EntitySeparator = void 0;
7
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _excluded = ["children"];
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ 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; }
12
+ 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; }
13
+ var EntitySeparator = function EntitySeparator(_ref) {
14
+ var children = _ref.children,
15
+ rest = _objectWithoutProperties(_ref, _excluded);
16
+ return /*#__PURE__*/_react.default.createElement(_StyledDiv, rest, children);
17
+ };
18
+ exports.EntitySeparator = EntitySeparator;
19
+ var _StyledDiv = (0, _styledComponents.default)("div").withConfig({
20
+ displayName: "EntitySeparator___StyledDiv",
21
+ componentId: "sc-5xbpkw-0"
22
+ })(["grid-column:1 / -1;"]);
23
+ //# sourceMappingURL=EntitySeparator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntitySeparator.js","names":["EntitySeparator","children","rest"],"sources":["../../../../src/components/Entity/EntitySeparator.tsx"],"sourcesContent":["import React from \"react\";\nimport { BaseHTMLAttributes } from \"react\";\n\nexport const EntitySeparator = ({\n children,\n ...rest\n}: BaseHTMLAttributes<HTMLDivElement>) => {\n return (\n <div\n css={`\n grid-column: 1 / -1;\n `}\n {...rest}\n >\n {children}\n </div>\n );\n};\n"],"mappings":";;;;;;;AAAA;AAA0B;AAAA;AAAA;AAAA;AAGnB,IAAMA,eAAe,GAAG,SAAlBA,eAAe,OAGc;EAAA,IAFxCC,QAAQ,QAARA,QAAQ;IACLC,IAAI;EAEP,oBACE,yCAIMA,IAAI,EAEPD,QAAQ,CACL;AAEV,CAAC;AAAC;AAAA;EAAA;EAAA;AAAA"}
@@ -3,14 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Entity = void 0;
6
+ exports.useEntityGroupContext = exports.Entity = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
7
8
  var _EntityGroup = require("./EntityGroup");
8
9
  var _EntityCard = require("./EntityCard");
9
10
  var _EntityProperty = require("./EntityProperty");
11
+ var _EntitySeparator = require("./EntitySeparator");
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
13
  var Entity = {
11
14
  Group: _EntityGroup.EntityGroup,
12
15
  Card: _EntityCard.EntityCard,
13
- Property: _EntityProperty.EntityProperty
16
+ Property: _EntityProperty.EntityProperty,
17
+ Separator: _EntitySeparator.EntitySeparator
14
18
  };
15
19
  exports.Entity = Entity;
20
+ var useEntityGroupContext = function useEntityGroupContext() {
21
+ return _react.default.useContext(_EntityGroup.EntityGroupContext);
22
+ };
23
+ exports.useEntityGroupContext = useEntityGroupContext;
16
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Entity","Group","EntityGroup","Card","EntityCard","Property","EntityProperty"],"sources":["../../../../src/components/Entity/index.ts"],"sourcesContent":["import { EntityGroup } from \"./EntityGroup\";\nimport { EntityCard } from \"./EntityCard\";\nimport { EntityProperty } from \"./EntityProperty\";\n\nexport interface IEntity {\n Group: typeof EntityGroup;\n Card: typeof EntityCard;\n Property: typeof EntityProperty;\n}\n\nexport const Entity: IEntity = {\n Group: EntityGroup,\n Card: EntityCard,\n Property: EntityProperty,\n};\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAQO,IAAMA,MAAe,GAAG;EAC7BC,KAAK,EAAEC,wBAAW;EAClBC,IAAI,EAAEC,sBAAU;EAChBC,QAAQ,EAAEC;AACZ,CAAC;AAAC"}
1
+ {"version":3,"file":"index.js","names":["Entity","Group","EntityGroup","Card","EntityCard","Property","EntityProperty","Separator","EntitySeparator","useEntityGroupContext","React","useContext","EntityGroupContext"],"sources":["../../../../src/components/Entity/index.ts"],"sourcesContent":["import React from \"react\";\nimport { EntityGroup, EntityGroupContext } from \"./EntityGroup\";\nimport { EntityCard } from \"./EntityCard\";\nimport { EntityProperty } from \"./EntityProperty\";\nimport { EntitySeparator } from \"./EntitySeparator\";\n\nexport interface IEntity {\n Group: typeof EntityGroup;\n Card: typeof EntityCard;\n Property: typeof EntityProperty;\n Separator: typeof EntitySeparator;\n}\n\nexport const Entity: IEntity = {\n Group: EntityGroup,\n Card: EntityCard,\n Property: EntityProperty,\n Separator: EntitySeparator,\n};\n\nexport const useEntityGroupContext = () => React.useContext(EntityGroupContext);\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAAoD;AAS7C,IAAMA,MAAe,GAAG;EAC7BC,KAAK,EAAEC,wBAAW;EAClBC,IAAI,EAAEC,sBAAU;EAChBC,QAAQ,EAAEC,8BAAc;EACxBC,SAAS,EAAEC;AACb,CAAC;AAAC;AAEK,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAqB;EAAA,OAASC,cAAK,CAACC,UAAU,CAACC,+BAAkB,CAAC;AAAA;AAAC"}
@@ -3,10 +3,9 @@ export interface IEntityGroupProps extends Pick<HTMLAttributes<HTMLDivElement>,
3
3
  gap?: number;
4
4
  renderAs?: "grid" | "list";
5
5
  }
6
- interface IEntityGroupContext {
6
+ export interface IEntityGroupContext {
7
7
  renderAs: "grid" | "list";
8
8
  }
9
9
  export declare const EntityGroupContext: React.Context<IEntityGroupContext>;
10
10
  export declare const EntityGroup: React.FC<IEntityGroupProps>;
11
- export {};
12
11
  //# sourceMappingURL=EntityGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/Entity/EntityGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG9C,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IACnE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AACD,eAAO,MAAM,kBAAkB,oCAE7B,CAAC;AAEH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAanD,CAAC"}
1
+ {"version":3,"file":"EntityGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/Entity/EntityGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG9C,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IACnE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AACD,eAAO,MAAM,kBAAkB,oCAE7B,CAAC;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAanD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EntityGroup.js","names":["React","StyledEntityGroup","EntityGroupContext","createContext","renderAs","EntityGroup","children","gap","rest","displayName"],"sources":["../../../../src/components/Entity/EntityGroup.tsx"],"sourcesContent":["import React, { HTMLAttributes } from \"react\";\nimport { StyledEntityGroup } from \"./Styles\";\n\nexport interface IEntityGroupProps\n extends Pick<HTMLAttributes<HTMLDivElement>, \"className\" | \"style\"> {\n gap?: number;\n renderAs?: \"grid\" | \"list\";\n}\n\ninterface IEntityGroupContext {\n renderAs: \"grid\" | \"list\";\n}\nexport const EntityGroupContext = React.createContext<IEntityGroupContext>({\n renderAs: \"grid\",\n});\n\nexport const EntityGroup: React.FC<IEntityGroupProps> = ({\n children,\n gap,\n renderAs = \"grid\",\n ...rest\n}) => {\n return (\n <EntityGroupContext.Provider value={{ renderAs: renderAs }}>\n <StyledEntityGroup $renderAs={renderAs} $gap={gap} {...rest}>\n {children}\n </StyledEntityGroup>\n </EntityGroupContext.Provider>\n );\n};\n\nEntityGroup.displayName = \"EntityGroup\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAA0B,OAAO;AAC7C,SAASC,iBAAiB,QAAQ,UAAU;AAW5C,OAAO,IAAMC,kBAAkB,gBAAGF,KAAK,CAACG,aAAa,CAAsB;EACzEC,QAAQ,EAAE;AACZ,CAAC,CAAC;AAEF,OAAO,IAAMC,WAAwC,GAAG,SAA3CA,WAAwC,OAK/C;EAAA,IAJJC,QAAQ,QAARA,QAAQ;IACRC,GAAG,QAAHA,GAAG;IAAA,qBACHH,QAAQ;IAARA,QAAQ,8BAAG,MAAM;IACdI,IAAI;EAEP,oBACE,oBAAC,kBAAkB,CAAC,QAAQ;IAAC,KAAK,EAAE;MAAEJ,QAAQ,EAAEA;IAAS;EAAE,gBACzD,oBAAC,iBAAiB;IAAC,SAAS,EAAEA,QAAS;IAAC,IAAI,EAAEG;EAAI,GAAKC,IAAI,GACxDF,QAAQ,CACS,CACQ;AAElC,CAAC;AAEDD,WAAW,CAACI,WAAW,GAAG,aAAa"}
1
+ {"version":3,"file":"EntityGroup.js","names":["React","StyledEntityGroup","EntityGroupContext","createContext","renderAs","EntityGroup","children","gap","rest","displayName"],"sources":["../../../../src/components/Entity/EntityGroup.tsx"],"sourcesContent":["import React, { HTMLAttributes } from \"react\";\nimport { StyledEntityGroup } from \"./Styles\";\n\nexport interface IEntityGroupProps\n extends Pick<HTMLAttributes<HTMLDivElement>, \"className\" | \"style\"> {\n gap?: number;\n renderAs?: \"grid\" | \"list\";\n}\n\nexport interface IEntityGroupContext {\n renderAs: \"grid\" | \"list\";\n}\nexport const EntityGroupContext = React.createContext<IEntityGroupContext>({\n renderAs: \"grid\",\n});\nexport const EntityGroup: React.FC<IEntityGroupProps> = ({\n children,\n gap,\n renderAs = \"grid\",\n ...rest\n}) => {\n return (\n <EntityGroupContext.Provider value={{ renderAs: renderAs }}>\n <StyledEntityGroup $renderAs={renderAs} $gap={gap} {...rest}>\n {children}\n </StyledEntityGroup>\n </EntityGroupContext.Provider>\n );\n};\n\nEntityGroup.displayName = \"EntityGroup\";\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAA0B,OAAO;AAC7C,SAASC,iBAAiB,QAAQ,UAAU;AAW5C,OAAO,IAAMC,kBAAkB,gBAAGF,KAAK,CAACG,aAAa,CAAsB;EACzEC,QAAQ,EAAE;AACZ,CAAC,CAAC;AACF,OAAO,IAAMC,WAAwC,GAAG,SAA3CA,WAAwC,OAK/C;EAAA,IAJJC,QAAQ,QAARA,QAAQ;IACRC,GAAG,QAAHA,GAAG;IAAA,qBACHH,QAAQ;IAARA,QAAQ,8BAAG,MAAM;IACdI,IAAI;EAEP,oBACE,oBAAC,kBAAkB,CAAC,QAAQ;IAAC,KAAK,EAAE;MAAEJ,QAAQ,EAAEA;IAAS;EAAE,gBACzD,oBAAC,iBAAiB;IAAC,SAAS,EAAEA,QAAS;IAAC,IAAI,EAAEG;EAAI,GAAKC,IAAI,GACxDF,QAAQ,CACS,CACQ;AAElC,CAAC;AAEDD,WAAW,CAACI,WAAW,GAAG,aAAa"}
@@ -0,0 +1,3 @@
1
+ import { BaseHTMLAttributes } from "react";
2
+ export declare const EntitySeparator: ({ children, ...rest }: BaseHTMLAttributes<HTMLDivElement>) => JSX.Element;
3
+ //# sourceMappingURL=EntitySeparator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntitySeparator.d.ts","sourceRoot":"","sources":["../../../../src/components/Entity/EntitySeparator.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAE3C,eAAO,MAAM,eAAe,0BAGzB,mBAAmB,cAAc,CAAC,gBAWpC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
+ import _styled from "styled-components";
3
+ var _excluded = ["children"];
4
+ import React from "react";
5
+ export var EntitySeparator = function EntitySeparator(_ref) {
6
+ var children = _ref.children,
7
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
8
+ return /*#__PURE__*/React.createElement(_StyledDiv, rest, children);
9
+ };
10
+ var _StyledDiv = _styled("div").withConfig({
11
+ displayName: "EntitySeparator___StyledDiv",
12
+ componentId: "sc-5xbpkw-0"
13
+ })(["grid-column:1 / -1;"]);
14
+ //# sourceMappingURL=EntitySeparator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EntitySeparator.js","names":["React","EntitySeparator","children","rest"],"sources":["../../../../src/components/Entity/EntitySeparator.tsx"],"sourcesContent":["import React from \"react\";\nimport { BaseHTMLAttributes } from \"react\";\n\nexport const EntitySeparator = ({\n children,\n ...rest\n}: BaseHTMLAttributes<HTMLDivElement>) => {\n return (\n <div\n css={`\n grid-column: 1 / -1;\n `}\n {...rest}\n >\n {children}\n </div>\n );\n};\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,OAAO,IAAMC,eAAe,GAAG,SAAlBA,eAAe,OAGc;EAAA,IAFxCC,QAAQ,QAARA,QAAQ;IACLC,IAAI;EAEP,oBACE,gCAIMA,IAAI,EAEPD,QAAQ,CACL;AAEV,CAAC;AAAC;EAAA;EAAA;AAAA"}
@@ -1,10 +1,13 @@
1
1
  import { EntityGroup } from "./EntityGroup";
2
2
  import { EntityCard } from "./EntityCard";
3
3
  import { EntityProperty } from "./EntityProperty";
4
+ import { EntitySeparator } from "./EntitySeparator";
4
5
  export interface IEntity {
5
6
  Group: typeof EntityGroup;
6
7
  Card: typeof EntityCard;
7
8
  Property: typeof EntityProperty;
9
+ Separator: typeof EntitySeparator;
8
10
  }
9
11
  export declare const Entity: IEntity;
12
+ export declare const useEntityGroupContext: () => import("./EntityGroup").IEntityGroupContext;
10
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Entity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,OAAO,WAAW,CAAC;IAC1B,IAAI,EAAE,OAAO,UAAU,CAAC;IACxB,QAAQ,EAAE,OAAO,cAAc,CAAC;CACjC;AAED,eAAO,MAAM,MAAM,EAAE,OAIpB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Entity/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAsB,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,OAAO,WAAW,CAAC;IAC1B,IAAI,EAAE,OAAO,UAAU,CAAC;IACxB,QAAQ,EAAE,OAAO,cAAc,CAAC;IAChC,SAAS,EAAE,OAAO,eAAe,CAAC;CACnC;AAED,eAAO,MAAM,MAAM,EAAE,OAKpB,CAAC;AAEF,eAAO,MAAM,qBAAqB,mDAA6C,CAAC"}
@@ -1,9 +1,15 @@
1
- import { EntityGroup } from "./EntityGroup";
1
+ import React from "react";
2
+ import { EntityGroup, EntityGroupContext } from "./EntityGroup";
2
3
  import { EntityCard } from "./EntityCard";
3
4
  import { EntityProperty } from "./EntityProperty";
5
+ import { EntitySeparator } from "./EntitySeparator";
4
6
  export var Entity = {
5
7
  Group: EntityGroup,
6
8
  Card: EntityCard,
7
- Property: EntityProperty
9
+ Property: EntityProperty,
10
+ Separator: EntitySeparator
11
+ };
12
+ export var useEntityGroupContext = function useEntityGroupContext() {
13
+ return React.useContext(EntityGroupContext);
8
14
  };
9
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["EntityGroup","EntityCard","EntityProperty","Entity","Group","Card","Property"],"sources":["../../../../src/components/Entity/index.ts"],"sourcesContent":["import { EntityGroup } from \"./EntityGroup\";\nimport { EntityCard } from \"./EntityCard\";\nimport { EntityProperty } from \"./EntityProperty\";\n\nexport interface IEntity {\n Group: typeof EntityGroup;\n Card: typeof EntityCard;\n Property: typeof EntityProperty;\n}\n\nexport const Entity: IEntity = {\n Group: EntityGroup,\n Card: EntityCard,\n Property: EntityProperty,\n};\n"],"mappings":"AAAA,SAASA,WAAW,QAAQ,eAAe;AAC3C,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,cAAc,QAAQ,kBAAkB;AAQjD,OAAO,IAAMC,MAAe,GAAG;EAC7BC,KAAK,EAAEJ,WAAW;EAClBK,IAAI,EAAEJ,UAAU;EAChBK,QAAQ,EAAEJ;AACZ,CAAC"}
1
+ {"version":3,"file":"index.js","names":["React","EntityGroup","EntityGroupContext","EntityCard","EntityProperty","EntitySeparator","Entity","Group","Card","Property","Separator","useEntityGroupContext","useContext"],"sources":["../../../../src/components/Entity/index.ts"],"sourcesContent":["import React from \"react\";\nimport { EntityGroup, EntityGroupContext } from \"./EntityGroup\";\nimport { EntityCard } from \"./EntityCard\";\nimport { EntityProperty } from \"./EntityProperty\";\nimport { EntitySeparator } from \"./EntitySeparator\";\n\nexport interface IEntity {\n Group: typeof EntityGroup;\n Card: typeof EntityCard;\n Property: typeof EntityProperty;\n Separator: typeof EntitySeparator;\n}\n\nexport const Entity: IEntity = {\n Group: EntityGroup,\n Card: EntityCard,\n Property: EntityProperty,\n Separator: EntitySeparator,\n};\n\nexport const useEntityGroupContext = () => React.useContext(EntityGroupContext);\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,EAAEC,kBAAkB,QAAQ,eAAe;AAC/D,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,cAAc,QAAQ,kBAAkB;AACjD,SAASC,eAAe,QAAQ,mBAAmB;AASnD,OAAO,IAAMC,MAAe,GAAG;EAC7BC,KAAK,EAAEN,WAAW;EAClBO,IAAI,EAAEL,UAAU;EAChBM,QAAQ,EAAEL,cAAc;EACxBM,SAAS,EAAEL;AACb,CAAC;AAED,OAAO,IAAMM,qBAAqB,GAAG,SAAxBA,qBAAqB;EAAA,OAASX,KAAK,CAACY,UAAU,CAACV,kBAAkB,CAAC;AAAA"}