@auspices/eos 2.31.0 → 2.32.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,23 @@
1
+ import React from "react";
2
+ import { BoxProps } from "../Box";
3
+ export declare const Toggle: import("styled-components").StyledComponent<"button", any, React.ButtonHTMLAttributes<HTMLButtonElement> & import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & Omit<import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "color"> & import("../Box").TextColorProps & import("../Box").TransitionProps & {
4
+ children?: React.ReactNode;
5
+ } & {
6
+ cursor?: import("styled-system").ResponsiveValue<string, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
7
+ textDecoration?: import("styled-system").ResponsiveValue<string, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
8
+ } & {
9
+ active?: boolean | undefined;
10
+ hover?: boolean | undefined;
11
+ focus?: boolean | undefined;
12
+ disabled?: boolean | undefined;
13
+ } & {
14
+ p: number;
15
+ border: string;
16
+ borderColor: string;
17
+ backgroundColor: string;
18
+ }, "backgroundColor" | "border" | "borderColor" | "p">;
19
+ export declare type ContextMenuProps = BoxProps & {
20
+ onOpen?(): void;
21
+ onClose?(): void;
22
+ };
23
+ export declare const ContextMenu: React.FC<ContextMenuProps>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __rest = (this && this.__rest) || function (s, e) {
18
+ var t = {};
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
+ t[p] = s[p];
21
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
+ t[p[i]] = s[p[i]];
25
+ }
26
+ return t;
27
+ };
28
+ var __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.ContextMenu = exports.Toggle = void 0;
33
+ var react_1 = __importDefault(require("react"));
34
+ var styled_components_1 = __importDefault(require("styled-components"));
35
+ var Box_1 = require("../Box");
36
+ var Dropdown_1 = require("../Dropdown");
37
+ var Ellipsis_1 = require("../Ellipsis");
38
+ var Pane_1 = require("../Pane");
39
+ exports.Toggle = (0, styled_components_1.default)(Pane_1.PaneOption).attrs({
40
+ p: 3,
41
+ border: "1px solid",
42
+ borderColor: "background",
43
+ backgroundColor: "background",
44
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: block;\n ", "\n"], ["\n display: block;\n ", "\n"])), Pane_1.paneShadowMixin);
45
+ var ContextMenu = function (_a) {
46
+ var children = _a.children, onOpen = _a.onOpen, onClose = _a.onClose, rest = __rest(_a, ["children", "onOpen", "onClose"]);
47
+ return (react_1.default.createElement(Box_1.Box, __assign({ zIndex: 1 }, rest),
48
+ react_1.default.createElement(Dropdown_1.Dropdown, { onOpen: onOpen, onClose: onClose, placement: "bottom-end", label: react_1.default.createElement(exports.Toggle, null,
49
+ react_1.default.createElement(Ellipsis_1.Ellipsis, null)) }, children)));
50
+ };
51
+ exports.ContextMenu = ContextMenu;
52
+ var templateObject_1;
53
+ //# sourceMappingURL=ContextMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextMenu.js","sourceRoot":"","sources":["../../src/ContextMenu/ContextMenu.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,wEAAuC;AACvC,8BAAuC;AACvC,wCAAuC;AACvC,wCAAuC;AACvC,gCAAsD;AAEzC,QAAA,MAAM,GAAG,IAAA,2BAAM,EAAC,iBAAU,CAAC,CAAC,KAAK,CAAC;IAC7C,CAAC,EAAE,CAAC;IACJ,MAAM,EAAE,WAAW;IACnB,WAAW,EAAE,YAAY;IACzB,eAAe,EAAE,YAAY;CAC9B,CAAC,kGAAA,yBAEE,EAAe,IAClB,KADG,sBAAe,EACjB;AAOK,IAAM,WAAW,GAA+B,UAAC,EAKvD;IAJC,IAAA,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,OAAO,aAAA,EACJ,IAAI,cAJ+C,iCAKvD,CADQ;IAEP,OAAO,CACL,8BAAC,SAAG,aAAC,MAAM,EAAE,CAAC,IAAM,IAAI;QACtB,8BAAC,mBAAQ,IACP,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,YAAY,EACtB,KAAK,EACH,8BAAC,cAAM;gBACL,8BAAC,mBAAQ,OAAG,CACL,IAGV,QAAQ,CACA,CACP,CACP,CAAC;AACJ,CAAC,CAAC;AAtBW,QAAA,WAAW,eAsBtB"}
@@ -0,0 +1 @@
1
+ export * from "./ContextMenu";
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./ContextMenu"), exports);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ContextMenu/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAA8B"}
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from "./Clear";
9
9
  export * from "./ClearableInput";
10
10
  export * from "./Clickable";
11
11
  export * from "./Confirm";
12
+ export * from "./ContextMenu";
12
13
  export * from "./Divider";
13
14
  export * from "./Dropdown";
14
15
  export * from "./Ellipsis";
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ __exportStar(require("./Clear"), exports);
21
21
  __exportStar(require("./ClearableInput"), exports);
22
22
  __exportStar(require("./Clickable"), exports);
23
23
  __exportStar(require("./Confirm"), exports);
24
+ __exportStar(require("./ContextMenu"), exports);
24
25
  __exportStar(require("./Divider"), exports);
25
26
  __exportStar(require("./Dropdown"), exports);
26
27
  __exportStar(require("./Ellipsis"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,mDAAiC;AACjC,wCAAsB;AACtB,2CAAyB;AACzB,0CAAwB;AACxB,yCAAuB;AACvB,0CAAwB;AACxB,mDAAiC;AACjC,8CAA4B;AAC5B,4CAA0B;AAC1B,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,+CAA6B;AAC7B,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,2CAAyB;AACzB,iDAA+B;AAC/B,yCAAuB;AACvB,0CAAwB;AACxB,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,0CAAwB;AACxB,yCAAuB;AACvB,gDAA8B;AAC9B,+CAA6B;AAC7B,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,gDAA8B;AAC9B,2CAAyB;AACzB,oDAAkC;AAClC,2CAAyB;AACzB,6CAA2B;AAC3B,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB;AACxB,wCAAsB;AACtB,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,mDAAiC;AACjC,wCAAsB;AACtB,2CAAyB;AACzB,0CAAwB;AACxB,yCAAuB;AACvB,0CAAwB;AACxB,mDAAiC;AACjC,8CAA4B;AAC5B,4CAA0B;AAC1B,gDAA8B;AAC9B,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,+CAA6B;AAC7B,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,2CAAyB;AACzB,iDAA+B;AAC/B,yCAAuB;AACvB,0CAAwB;AACxB,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,4CAA0B;AAC1B,0CAAwB;AACxB,yCAAuB;AACvB,gDAA8B;AAC9B,+CAA6B;AAC7B,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,gDAA8B;AAC9B,2CAAyB;AACzB,oDAAkC;AAClC,2CAAyB;AACzB,6CAA2B;AAC3B,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB;AACxB,wCAAsB;AACtB,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,6CAA2B;AAC3B,2CAAyB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auspices/eos",
3
- "version": "2.31.0",
3
+ "version": "2.32.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [