@auspices/eos 2.34.0 → 3.0.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 (66) hide show
  1. package/dist/Alert/Alert.d.ts +1 -1
  2. package/dist/Alerts/Alerts.d.ts +1 -1
  3. package/dist/Alerts/useAlerts.d.ts +5 -5
  4. package/dist/AspectRatioBox/AspectRatioBox.d.ts +3 -3
  5. package/dist/Banner/Banner.d.ts +1 -1
  6. package/dist/Banner/Banner.js +2 -2
  7. package/dist/Banner/Banner.js.map +1 -1
  8. package/dist/Box/Box.d.ts +4 -4
  9. package/dist/Button/Button.d.ts +7 -4
  10. package/dist/Button/Button.js +11 -5
  11. package/dist/Button/Button.js.map +1 -1
  12. package/dist/Caret/Caret.d.ts +1 -1
  13. package/dist/Cell/Cell.d.ts +21 -3
  14. package/dist/Cell/Cell.js +16 -17
  15. package/dist/Cell/Cell.js.map +1 -1
  16. package/dist/Clear/Clear.d.ts +1 -1
  17. package/dist/ClearableInput/ClearableInput.d.ts +1 -1
  18. package/dist/Clickable/Clickable.d.ts +1 -1
  19. package/dist/Confirm/Confirm.d.ts +1 -1
  20. package/dist/Confirm/useConfirm.d.ts +1 -1
  21. package/dist/ContextMenu/ContextMenu.d.ts +1 -1
  22. package/dist/Divider/Divider.d.ts +1 -1
  23. package/dist/Dropdown/Dropdown.d.ts +3 -3
  24. package/dist/Ellipsis/Ellipsis.d.ts +1 -1
  25. package/dist/EmptyFrame/EmptyFrame.d.ts +1 -1
  26. package/dist/Expandable/Expandable.d.ts +1 -1
  27. package/dist/Field/Field.d.ts +2 -2
  28. package/dist/File/File.d.ts +1 -1
  29. package/dist/Flyout/Flyout.d.ts +2 -2
  30. package/dist/Grid/Grid.d.ts +1 -1
  31. package/dist/HTML/HTML.d.ts +1 -1
  32. package/dist/Image/Image.d.ts +1 -1
  33. package/dist/Input/Input.d.ts +7 -2
  34. package/dist/Input/Input.js +1 -1
  35. package/dist/Input/Input.js.map +1 -1
  36. package/dist/KeyValueEditor/KeyValueEditor.d.ts +3 -3
  37. package/dist/KeyValueInput/KeyValueInput.d.ts +1 -1
  38. package/dist/Loading/Loading.d.ts +1 -1
  39. package/dist/Modal/Modal.d.ts +1 -1
  40. package/dist/Mono/Mono.d.ts +1 -1
  41. package/dist/MultiSelect/MultiSelect.d.ts +3 -3
  42. package/dist/MultiSelect/useMultiSelect.d.ts +1 -1
  43. package/dist/Pagination/Page.d.ts +1 -1
  44. package/dist/Pagination/Pagination.d.ts +1 -1
  45. package/dist/Pane/Pane.d.ts +1 -1
  46. package/dist/Pane/PaneHeader.d.ts +1 -1
  47. package/dist/Pane/PaneOption.d.ts +1 -1
  48. package/dist/Pill/Pill.d.ts +5 -3
  49. package/dist/Plus/Plus.d.ts +1 -1
  50. package/dist/Popper/Popper.d.ts +1 -1
  51. package/dist/Popper/usePopper.d.ts +1 -1
  52. package/dist/ProgressBar/ProgressBar.d.ts +1 -1
  53. package/dist/Remove/Remove.d.ts +1 -1
  54. package/dist/ResponsiveImage/ResponsiveImage.d.ts +1 -1
  55. package/dist/Select/Select.d.ts +3 -3
  56. package/dist/Skeleton/Skeleton.d.ts +1 -1
  57. package/dist/Spinner/Spinner.d.ts +1 -1
  58. package/dist/Split/Split.d.ts +1 -1
  59. package/dist/Stack/Stack.d.ts +2 -2
  60. package/dist/Tag/Tag.d.ts +1 -1
  61. package/dist/Themer/useThemer.d.ts +1 -1
  62. package/dist/Tooltip/Tooltip.d.ts +1 -1
  63. package/dist/Upload/Upload.d.ts +1 -1
  64. package/dist/hooks/useClickOutside.d.ts +1 -1
  65. package/dist/theme/theme.d.ts +4 -4
  66. package/package.json +19 -19
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { BoxProps } from "../Box";
3
- export declare type AlertProps = BoxProps & {
3
+ export type AlertProps = BoxProps & {
4
4
  mode: "notification" | "error";
5
5
  };
6
6
  export declare const Alert: React.FC<AlertProps>;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { StackProps } from "../Stack";
3
- export declare type AlertsProps = Omit<StackProps, "spacing"> & {
3
+ export type AlertsProps = Omit<StackProps, "spacing"> & {
4
4
  limit?: number;
5
5
  spacing?: number | string;
6
6
  };
@@ -1,15 +1,15 @@
1
1
  import React from "react";
2
- declare type Body = string | JSX.Element;
3
- export declare type TAlert = {
2
+ type Body = string | JSX.Element;
3
+ export type TAlert = {
4
4
  mode: "notification" | "error";
5
5
  id: string;
6
6
  body: Body;
7
7
  };
8
- declare type Message = {
8
+ type Message = {
9
9
  body: Body;
10
10
  ttl?: number;
11
11
  };
12
- declare type State = {
12
+ type State = {
13
13
  alerts: TAlert[];
14
14
  };
15
15
  export declare const AlertsContext: React.Context<{
@@ -17,7 +17,7 @@ export declare const AlertsContext: React.Context<{
17
17
  sendNotification(message: Message): void;
18
18
  sendError(message: Message): void;
19
19
  }>;
20
- export declare type AlertsProviderProps = {
20
+ export type AlertsProviderProps = {
21
21
  children: React.ReactNode;
22
22
  };
23
23
  export declare const AlertsProvider: React.FC<AlertsProviderProps>;
@@ -1,13 +1,13 @@
1
1
  import React from "react";
2
2
  import { BoxProps } from "../Box";
3
- declare type MaxDimensions = {
3
+ type MaxDimensions = {
4
4
  maxWidth?: number | "100%";
5
5
  maxHeight?: number;
6
6
  };
7
- declare type AspectDimensions = {
7
+ type AspectDimensions = {
8
8
  aspectWidth: number;
9
9
  aspectHeight: number;
10
10
  };
11
- export declare type AspectRatioBoxProps = Omit<BoxProps, "maxWidth" | "maxHeight"> & AspectDimensions & MaxDimensions;
11
+ export type AspectRatioBoxProps = Omit<BoxProps, "maxWidth" | "maxHeight"> & AspectDimensions & MaxDimensions;
12
12
  export declare const AspectRatioBox: React.FC<AspectRatioBoxProps>;
13
13
  export {};
@@ -1,6 +1,6 @@
1
1
  import { FC, ReactNode } from "react";
2
2
  import { BoxProps } from "../Box";
3
- export declare type BannerProps = Omit<BoxProps, "bg"> & {
3
+ export type BannerProps = Omit<BoxProps, "bg"> & {
4
4
  bg?: string;
5
5
  children: ReactNode;
6
6
  dismissable?: boolean;
@@ -76,8 +76,8 @@ var Banner = function (_a) {
76
76
  };
77
77
  if (dismissed)
78
78
  return null;
79
- return (react_1.default.createElement(Box_1.Box, __assign({ position: "relative", textAlign: "center", display: "flex", alignItems: "center", justifyContent: "center", flex: 1, px: 8, py: 4, bg: bg }, rest),
80
- react_1.default.createElement(Box_1.Box, { fontSize: 0, lineHeight: 2, color: contrasting }, children),
79
+ return (react_1.default.createElement(Box_1.Box, __assign({ position: "relative", textAlign: "center", display: "flex", alignItems: "center", justifyContent: "center", flex: 1, px: 8, py: 4, bg: bg, fontSize: 1, lineHeight: 2, color: contrasting }, rest),
80
+ react_1.default.createElement(Box_1.Box, null, children),
81
81
  dismissable && (react_1.default.createElement(Clickable_1.Clickable, { onClick: handleClick, position: "absolute", top: 0, right: 0, bottom: 0, p: 1, display: "flex", alignItems: "center", cursor: "pointer" },
82
82
  react_1.default.createElement(Remove_1.Ex, { color: contrasting })))));
83
83
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.js","sourceRoot":"","sources":["../../src/Banner/Banner.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAuD;AACvD,8BAAuC;AACvC,oCAA+B;AAC/B,kCAA+C;AAC/C,0CAAyC;AAQlC,IAAM,MAAM,GAAoB,UAAC,EAKvC;IAJC,IAAA,UAAc,EAAd,EAAE,mBAAG,SAAS,KAAA,EACd,QAAQ,cAAA,EACR,mBAAkB,EAAlB,WAAW,mBAAG,IAAI,KAAA,EACf,IAAI,cAJ+B,iCAKvC,CADQ;IAEP,IAAM,WAAW,GAAG,IAAA,2BAAmB,EAAC,EAAE,CAAC,CAAC;IAEtC,IAAA,KAAA,OAA4B,IAAA,gBAAQ,EAAC,KAAK,CAAC,IAAA,EAA1C,SAAS,QAAA,EAAE,YAAY,QAAmB,CAAC;I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KAAA,EACf,IAAI,cAJ+B,iCAKvC,CADQ;IAEP,IAAM,WAAW,GAAG,IAAA,2BAAmB,EAAC,EAAE,CAAC,CAAC;IAEtC,IAAA,KAAA,OAA4B,IAAA,gBAAQ,EAAC,KAAK,CAAC,IAAA,EAA1C,SAAS,QAAA,EAAE,YAAY,QAAmB,CAAC;IAElD,IAAM,WAAW,GAAG;QAClB,YAAY,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,IAAI,SAAS;QAAE,OAAO,IAAI,CAAC;IAE3B,OAAO,CACL,8BAAC,SAAG,aACF,QAAQ,EAAC,UAAU,EACnB,SAAS,EAAC,QAAQ,EAClB,OAAO,EAAC,MAAM,EACd,UAAU,EAAC,QAAQ,EACnB,cAAc,EAAC,QAAQ,EACvB,IAAI,EAAE,CAAC,EACP,EAAE,EAAE,CAAC,EACL,EAAE,EAAE,CAAC,EACL,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,CAAC,EACX,UAAU,EAAE,CAAC,EACb,KAAK,EAAE,WAAW,IACd,IAAI;QAER,8BAAC,SAAG,QAAE,QAAQ,CAAO;QAEpB,WAAW,IAAI,CACd,8BAAC,qBAAS,IACR,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAC,UAAU,EACnB,GAAG,EAAE,CAAC,EACN,KAAK,EAAE,CAAC,EACR,MAAM,EAAE,CAAC,EACT,CAAC,EAAE,CAAC,EACJ,OAAO,EAAC,MAAM,EACd,UAAU,EAAC,QAAQ,EACnB,MAAM,EAAC,SAAS;YAEhB,8BAAC,WAAE,IAAC,KAAK,EAAE,WAAW,GAAI,CAChB,CACb,CACG,CACP,CAAC;AACJ,CAAC,CAAC;AAnDW,QAAA,MAAM,UAmDjB"}
package/dist/Box/Box.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import { BorderProps, FlexboxProps, SpaceProps, TypographyProps, PositionProps, LayoutProps, ColorProps, ResponsiveValue } from "styled-system";
3
- export declare type BoxSpatialProps = FlexboxProps & SpaceProps & PositionProps & LayoutProps;
4
- export declare type TextColorProps = {
3
+ export type BoxSpatialProps = FlexboxProps & SpaceProps & PositionProps & LayoutProps;
4
+ export type TextColorProps = {
5
5
  textColor?: ResponsiveValue<string>;
6
6
  };
7
- export declare type TransitionProps = {
7
+ export type TransitionProps = {
8
8
  transition?: ResponsiveValue<string>;
9
9
  };
10
- export declare type BoxProps = BorderProps & TypographyProps & BoxSpatialProps & Omit<ColorProps, "color"> & TextColorProps & TransitionProps & {
10
+ export type BoxProps = BorderProps & TypographyProps & BoxSpatialProps & Omit<ColorProps, "color"> & TextColorProps & TransitionProps & {
11
11
  children?: React.ReactNode;
12
12
  };
13
13
  export declare const boxMixin: import("styled-system").styleFn;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ClickableProps } from "../Clickable";
3
+ import { CellProps } from "../Cell";
3
4
  export declare const BUTTON: {
4
5
  display: string;
5
6
  alignItems: string;
@@ -10,13 +11,13 @@ export declare const BUTTON: {
10
11
  borderWidth: string;
11
12
  color: string;
12
13
  fontFamily: string;
13
- fontSize: number[];
14
14
  lineHeight: number;
15
+ transition: string;
16
+ fontSize: number[];
15
17
  px: number;
16
18
  py: number;
17
- transition: string;
18
19
  };
19
- export declare type ButtonProps = ClickableProps & {
20
+ export type ButtonProps = ClickableProps & CellProps & {
20
21
  focus?: boolean;
21
22
  hover?: boolean;
22
23
  selected?: boolean;
@@ -26,13 +27,15 @@ export declare const buttonHoverMixin: import("styled-components").FlattenInterp
26
27
  export declare const buttonFocusMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
27
28
  export declare const buttonSelectedMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
28
29
  export declare const buttonDisabledMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
29
- export declare const buttonHighlightedMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
30
+ export declare const buttonHighlightedMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<ButtonProps, import("styled-components").DefaultTheme>>;
30
31
  export declare const buttonMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<ButtonProps, import("styled-components").DefaultTheme>>;
31
32
  export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, import("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("..").TextColorProps & import("..").TransitionProps & {
32
33
  children?: import("react").ReactNode;
33
34
  } & {
34
35
  cursor?: import("styled-system").ResponsiveValue<string, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
35
36
  textDecoration?: import("styled-system").ResponsiveValue<string, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
37
+ } & {
38
+ variant?: "small" | "default" | undefined;
36
39
  } & {
37
40
  focus?: boolean | undefined;
38
41
  hover?: boolean | undefined;
@@ -43,13 +43,19 @@ var styled_components_1 = __importStar(require("styled-components"));
43
43
  var theme_get_1 = require("@styled-system/theme-get");
44
44
  var Clickable_1 = require("../Clickable");
45
45
  var Cell_1 = require("../Cell");
46
+ var styled_system_1 = require("styled-system");
46
47
  exports.BUTTON = __assign(__assign({}, Cell_1.CELL), { display: "inline-flex", alignItems: "center", justifyContent: "center" });
47
48
  exports.buttonHoverMixin = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), (0, theme_get_1.themeGet)("colors.secondary"));
48
49
  exports.buttonFocusMixin = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n outline: 0;\n ", "\n"], ["\n outline: 0;\n ", "\n"])), Cell_1.cellFocusMixin);
49
50
  exports.buttonSelectedMixin = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n outline: 0;\n box-shadow: inset 0 0 0 ", " ", ";\n text-decoration: underline;\n color: ", ";\n border-color: ", ";\n"], ["\n outline: 0;\n box-shadow: inset 0 0 0 ", " ", ";\n text-decoration: underline;\n color: ", ";\n border-color: ", ";\n"])), (0, theme_get_1.themeGet)("space.1"), (0, theme_get_1.themeGet)("colors.primary"), (0, theme_get_1.themeGet)("colors.primary"), (0, theme_get_1.themeGet)("colors.tertiary"));
50
51
  exports.buttonDisabledMixin = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: relative;\n color: ", ";\n border-color: ", ";\n pointer-events: none;\n cursor: default;\n z-index: -1;\n"], ["\n position: relative;\n color: ", ";\n border-color: ", ";\n pointer-events: none;\n cursor: default;\n z-index: -1;\n"])), (0, theme_get_1.themeGet)("colors.tertiary"), (0, theme_get_1.themeGet)("colors.tertiary"));
51
- exports.buttonHighlightedMixin = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n &::before {\n content: \"\u2192\u00A0\";\n margin-left: -", ";\n }\n"], ["\n &::before {\n content: \"\u2192\\u00A0\";\n margin-left: -", ";\n }\n"])), (0, theme_get_1.themeGet)("space.3"));
52
- exports.buttonMixin = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n cursor: pointer;\n transition: ", ", color 200ms ease;\n min-width: 0;\n user-select: none;\n font-weight: normal;\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:disabled {\n ", "\n }\n\n ", "\n\n ", "\n"], ["\n cursor: pointer;\n transition: ", ", color 200ms ease;\n min-width: 0;\n user-select: none;\n font-weight: normal;\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:disabled {\n ", "\n }\n\n ", "\n\n ", "\n"])), Cell_1.CELL.transition, function (_a) {
52
+ exports.buttonHighlightedMixin = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n &::before {\n content: \"\u2192\u00A0\";\n\n ", ")}\n }\n"], ["\n &::before {\n content: \"\u2192\\u00A0\";\n\n ", ")}\n }\n"])), function (_a) {
53
+ var variant = _a.variant;
54
+ if (variant !== "small") {
55
+ return (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-left: -", ";\n "], ["\n margin-left: -", ";\n "])), (0, theme_get_1.themeGet)("space.3"));
56
+ }
57
+ });
58
+ exports.buttonMixin = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", "\n\n cursor: pointer;\n transition: ", ", color 200ms ease;\n min-width: 0;\n user-select: none;\n font-weight: normal;\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:disabled {\n ", "\n }\n\n ", "\n\n ", "\n"], ["\n ", "\n\n cursor: pointer;\n transition: ", ", color 200ms ease;\n min-width: 0;\n user-select: none;\n font-weight: normal;\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:disabled {\n ", "\n }\n\n ", "\n\n ", "\n"])), (0, styled_system_1.variant)({ variants: Cell_1.CELL_VARIANTS }), Cell_1.CELL.transition, function (_a) {
53
59
  var hover = _a.hover;
54
60
  return hover && exports.buttonHoverMixin;
55
61
  }, exports.buttonHoverMixin, function (_a) {
@@ -60,13 +66,13 @@ exports.buttonMixin = (0, styled_components_1.css)(templateObject_7 || (template
60
66
  return disabled && exports.buttonDisabledMixin;
61
67
  }, exports.buttonDisabledMixin, function (_a) {
62
68
  var selected = _a.selected;
63
- return selected && (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n &:focus {\n ", "\n }\n &:disabled {\n ", "\n }\n "], ["\n ", "\n &:focus {\n ", "\n }\n &:disabled {\n ", "\n }\n "])), exports.buttonSelectedMixin, exports.buttonSelectedMixin, exports.buttonSelectedMixin);
69
+ return selected && (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", "\n &:focus {\n ", "\n }\n &:disabled {\n ", "\n }\n "], ["\n ", "\n &:focus {\n ", "\n }\n &:disabled {\n ", "\n }\n "])), exports.buttonSelectedMixin, exports.buttonSelectedMixin, exports.buttonSelectedMixin);
64
70
  }, function (_a) {
65
71
  var highlighted = _a.highlighted;
66
72
  return highlighted && exports.buttonHighlightedMixin;
67
73
  });
68
- exports.Button = (0, styled_components_1.default)(Clickable_1.Clickable)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), exports.buttonMixin);
74
+ exports.Button = (0, styled_components_1.default)(Clickable_1.Clickable)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), exports.buttonMixin);
69
75
  exports.Button.defaultProps = __assign({}, exports.BUTTON);
70
76
  exports.Button.displayName = "Button";
71
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
77
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
72
78
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":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IAAI,2BAAmB;AAA/B,CAA+B,EAE/C,2BAAmB,EAGrB,UAAC,EAAY;QAAV,QAAQ,cAAA;IACX,OAAA,QAAQ,QACR,uBAAG,2KAAA,UACC,EAAmB,6BAEjB,EAAmB,yCAGnB,EAAmB,iBAExB,KAPG,2BAAmB,EAEjB,2BAAmB,EAGnB,2BAAmB,CAExB;AATD,CASC,EAED,UAAC,EAAe;QAAb,WAAW,iBAAA;IAAO,OAAA,WAAW,IAAI,8BAAsB;AAArC,CAAqC,EAC5D;AAEW,QAAA,MAAM,GAAG,IAAA,2BAAM,EAAC,qBAAS,CAAC,+EAAa,MAChD,EAAW,IACd,KADG,mBAAW,EACb;AAEF,cAAM,CAAC,YAAY,gBAAQ,cAAM,CAAE,CAAC;AAEpC,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BoxProps } from "../Box";
3
- export declare type CaretProps = BoxProps & {
3
+ export type CaretProps = BoxProps & {
4
4
  direction?: "up" | "down" | "left" | "right";
5
5
  size?: number;
6
6
  };
@@ -1,6 +1,17 @@
1
1
  /// <reference types="react" />
2
2
  import { BoxProps } from "../Box";
3
- export declare type CellProps = BoxProps;
3
+ export declare const CELL_VARIANTS: {
4
+ default: {
5
+ fontSize: number[];
6
+ px: number;
7
+ py: number;
8
+ };
9
+ small: {
10
+ fontSize: number[];
11
+ px: number;
12
+ py: number;
13
+ };
14
+ };
4
15
  export declare const CELL: {
5
16
  alignItems: string;
6
17
  backgroundColor: string;
@@ -10,13 +21,20 @@ export declare const CELL: {
10
21
  color: string;
11
22
  display: string;
12
23
  fontFamily: string;
13
- fontSize: number[];
14
24
  lineHeight: number;
25
+ transition: string;
26
+ fontSize: number[];
15
27
  px: number;
16
28
  py: number;
17
- transition: string;
29
+ };
30
+ type CellVariant = keyof typeof CELL_VARIANTS;
31
+ export type CellProps = BoxProps & {
32
+ variant?: CellVariant;
18
33
  };
19
34
  export declare const cellFocusMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
20
35
  export declare const Cell: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, 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 & {
21
36
  children?: import("react").ReactNode;
37
+ } & {
38
+ variant?: "small" | "default" | undefined;
22
39
  }, never>;
40
+ export {};
package/dist/Cell/Cell.js CHANGED
@@ -38,28 +38,27 @@ var __importStar = (this && this.__importStar) || function (mod) {
38
38
  return result;
39
39
  };
40
40
  Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.Cell = exports.cellFocusMixin = exports.CELL = void 0;
41
+ exports.Cell = exports.cellFocusMixin = exports.CELL = exports.CELL_VARIANTS = void 0;
42
42
  var styled_components_1 = __importStar(require("styled-components"));
43
+ var styled_system_1 = require("styled-system");
43
44
  var theme_get_1 = require("@styled-system/theme-get");
44
45
  var Box_1 = require("../Box");
45
- exports.CELL = {
46
- alignItems: "center",
47
- backgroundColor: "background",
48
- borderColor: "border",
49
- borderStyle: "solid",
50
- borderWidth: "1px",
51
- color: "primary",
52
- display: "flex",
53
- fontFamily: "body",
54
- fontSize: [2, 2, 3],
55
- lineHeight: 2,
56
- px: 6,
57
- py: 4,
58
- transition: "box-shadow 250ms ease",
46
+ exports.CELL_VARIANTS = {
47
+ default: {
48
+ fontSize: [2, 2, 3],
49
+ px: 6,
50
+ py: 4,
51
+ },
52
+ small: {
53
+ fontSize: [0, 0, 1],
54
+ px: 3,
55
+ py: 2,
56
+ },
59
57
  };
58
+ exports.CELL = __assign(__assign({}, exports.CELL_VARIANTS.default), { alignItems: "center", backgroundColor: "background", borderColor: "border", borderStyle: "solid", borderWidth: "1px", color: "primary", display: "flex", fontFamily: "body", lineHeight: 2, transition: "box-shadow 250ms ease" });
60
59
  exports.cellFocusMixin = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n outline: 0;\n box-shadow: inset 0 0 0 ", " ", ";\n"], ["\n outline: 0;\n box-shadow: inset 0 0 0 ", " ", ";\n"])), (0, theme_get_1.themeGet)("space.1"), (0, theme_get_1.themeGet)("colors.accent"));
61
- exports.Cell = (0, styled_components_1.default)(Box_1.Box)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n &:focus {\n ", "\n }\n"], ["\n &:focus {\n ", "\n }\n"])), exports.cellFocusMixin);
62
- exports.Cell.defaultProps = __assign({}, exports.CELL);
60
+ exports.Cell = (0, styled_components_1.default)(Box_1.Box)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n\n &:focus {\n ", "\n }\n"], ["\n ", ";\n\n &:focus {\n ", "\n }\n"])), (0, styled_system_1.variant)({ variants: exports.CELL_VARIANTS }), exports.cellFocusMixin);
61
+ exports.Cell.defaultProps = __assign(__assign({}, exports.CELL), { variant: "default" });
63
62
  exports.Cell.displayName = "Cell";
64
63
  var templateObject_1, templateObject_2;
65
64
  //# sourceMappingURL=Cell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Cell.js","sourceRoot":"","sources":["../../src/Cell/Cell.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,sDAAo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CAAC;AAEW,QAAA,IAAI,yBACZ,qBAAa,CAAC,OAAO,KACxB,UAAU,EAAE,QAAQ,EACpB,eAAe,EAAE,YAAY,EAC7B,WAAW,EAAE,QAAQ,EACrB,WAAW,EAAE,OAAO,EACpB,WAAW,EAAE,KAAK,EAClB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,CAAC,EACb,UAAU,EAAE,uBAAuB,IACnC;AAQW,QAAA,cAAc,OAAG,uBAAG,6HAAA,6CAEL,EAAmB,GAAI,EAAyB,KAC3E,KAD2B,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAAI,IAAA,oBAAQ,EAAC,eAAe,CAAC,EAC1E;AAEW,QAAA,IAAI,GAAG,IAAA,2BAAM,EAAC,SAAG,CAAC,8GAAW,MACtC,EAAoC,wBAGlC,EAAc,SAEnB,KALG,IAAA,uBAAO,EAAC,EAAE,QAAQ,EAAE,qBAAa,EAAE,CAAC,EAGlC,sBAAc,EAElB;AAEF,YAAI,CAAC,YAAY,yBAAQ,YAAI,KAAE,OAAO,EAAE,SAAS,GAAE,CAAC;AAEpD,YAAI,CAAC,WAAW,GAAG,MAAM,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { RemoveProps } from "../Remove";
3
- export declare type ClearProps = RemoveProps;
3
+ export type ClearProps = RemoveProps;
4
4
  export declare const clearHoverMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
5
5
  export declare const clearFocusMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
6
6
  export declare const Clear: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, import("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("..").TextColorProps & import("..").TransitionProps & {
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { InputProps } from "../Input";
3
3
  import { BoxSpatialProps } from "../Box";
4
- export declare type ClearableInputProps = BoxSpatialProps & Omit<InputProps, "onChange" | "value"> & {
4
+ export type ClearableInputProps = BoxSpatialProps & Omit<InputProps, "onChange" | "value"> & {
5
5
  onChange?(value: string): void;
6
6
  onClear?(): void;
7
7
  value?: string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ResponsiveValue } from "styled-system";
3
3
  import { BoxProps } from "../Box";
4
- export declare type ClickableProps = React.ButtonHTMLAttributes<HTMLButtonElement> & BoxProps & {
4
+ export type ClickableProps = React.ButtonHTMLAttributes<HTMLButtonElement> & BoxProps & {
5
5
  cursor?: ResponsiveValue<string>;
6
6
  textDecoration?: ResponsiveValue<string>;
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { BoxProps } from "../Box";
3
- export declare type ConfirmProps = BoxProps & {
3
+ export type ConfirmProps = BoxProps & {
4
4
  children?: string;
5
5
  onCancel(): void;
6
6
  onConfirm(): void;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ModalProps } from "../Modal";
3
3
  import { ConfirmProps } from "./Confirm";
4
- export declare type UseConfirm = {
4
+ export type UseConfirm = {
5
5
  onConfirm(): void;
6
6
  onCancel?(): void;
7
7
  };
@@ -16,7 +16,7 @@ export declare const Toggle: import("styled-components").StyledComponent<"button
16
16
  borderColor: string;
17
17
  backgroundColor: string;
18
18
  }, "backgroundColor" | "border" | "borderColor" | "p">;
19
- export declare type ContextMenuProps = BoxProps & {
19
+ export type ContextMenuProps = BoxProps & {
20
20
  onOpen?(): void;
21
21
  onClose?(): void;
22
22
  };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BoxProps } from "../Box";
3
- export declare type DividerProps = BoxProps;
3
+ export type DividerProps = BoxProps;
4
4
  export declare const Divider: import("styled-components").StyledComponent<"hr", import("styled-components").DefaultTheme, 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 & {
5
5
  children?: import("react").ReactNode;
6
6
  }, never>;
@@ -1,12 +1,12 @@
1
1
  import React from "react";
2
2
  import { BoxProps } from "../Box";
3
3
  import { Placement } from "@popperjs/core";
4
- export declare type DropdownPaneOptions = React.ReactNode;
5
- export declare type DropdownRenderProps = ({ handleClose, }: {
4
+ export type DropdownPaneOptions = React.ReactNode;
5
+ export type DropdownRenderProps = ({ handleClose, }: {
6
6
  handleClose(): void;
7
7
  }) => DropdownPaneOptions;
8
8
  export declare const isDropdownRenderProps: (children: DropdownPaneOptions | DropdownRenderProps) => children is DropdownRenderProps;
9
- export declare type DropdownProps = BoxProps & {
9
+ export type DropdownProps = BoxProps & {
10
10
  label: string | JSX.Element | ((anchorProps: {
11
11
  open: boolean;
12
12
  ref: React.MutableRefObject<HTMLButtonElement | null>;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { BoxProps } from "../Box";
3
- export declare type EllipsisProps = BoxProps & {
3
+ export type EllipsisProps = BoxProps & {
4
4
  size?: string;
5
5
  spacing?: number | string;
6
6
  orientation?: "horizontal" | "vertical";
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { BoxProps } from "../Box";
3
- export declare type EmptyFrameProps = BoxProps & {
3
+ export type EmptyFrameProps = BoxProps & {
4
4
  color?: string;
5
5
  outline?: boolean;
6
6
  strokeWidth?: number;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { StackProps } from "../Stack";
3
- export declare type ExpandableProps = StackProps & {
3
+ export type ExpandableProps = StackProps & {
4
4
  label: string;
5
5
  };
6
6
  export declare const Expandable: React.FC<ExpandableProps>;
@@ -1,10 +1,10 @@
1
1
  import React from "react";
2
2
  import { InputProps } from "../Input";
3
3
  import { SplitProps } from "../Split";
4
- declare type RequiredProps = Omit<SplitProps, "children"> & {
4
+ type RequiredProps = Omit<SplitProps, "children"> & {
5
5
  label: React.ReactNode;
6
6
  };
7
- export declare type FieldProps = RequiredProps & ({
7
+ export type FieldProps = RequiredProps & ({
8
8
  input: InputProps;
9
9
  } | {
10
10
  children: JSX.Element | string | null;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ClickableProps } from "../Clickable";
3
- export declare type FileProps = ClickableProps & {
3
+ export type FileProps = ClickableProps & {
4
4
  name?: string | null;
5
5
  meta?: string | null;
6
6
  selected?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { PaneOptionProps } from "../Pane";
3
- export declare type FlyoutPaneOptions = React.ReactElement<PaneOptionProps> | React.ReactElement<PaneOptionProps>[];
4
- export declare type FlyoutProps = PaneOptionProps & {
3
+ export type FlyoutPaneOptions = React.ReactElement<PaneOptionProps> | React.ReactElement<PaneOptionProps>[];
4
+ export type FlyoutProps = PaneOptionProps & {
5
5
  label: string | JSX.Element;
6
6
  children: FlyoutPaneOptions;
7
7
  open?: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { GridProps as SystemGridProps, ResponsiveValue } from "styled-system";
3
3
  import { BoxProps } from "../Box";
4
- export declare type GridProps = SystemGridProps & BoxProps & {
4
+ export type GridProps = SystemGridProps & BoxProps & {
5
5
  cellSize?: ResponsiveValue<number | string>;
6
6
  cellGap?: number | string;
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { BoxProps } from "../Box";
3
- export declare type HTMLProps = BoxProps & ({
3
+ export type HTMLProps = BoxProps & ({
4
4
  html: string;
5
5
  } | {
6
6
  children: React.ReactNode;
@@ -9,7 +9,7 @@ export declare const imgMixin: import("styled-components").FlattenSimpleInterpol
9
9
  export declare const Img: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {
10
10
  mode: Mode;
11
11
  }, never>;
12
- export declare type ImageProps = Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src"> & BoxProps & {
12
+ export type ImageProps = Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src"> & BoxProps & {
13
13
  srcs: string[];
14
14
  onError?(): void;
15
15
  onLoad?(): void;
@@ -1,13 +1,18 @@
1
1
  /// <reference types="react" />
2
2
  import { BorderProps, FlexboxProps, SpaceProps, TypographyProps, LayoutProps, ColorProps } from "styled-system";
3
- export declare type InputProps = React.InputHTMLAttributes<HTMLInputElement> & BorderProps & FlexboxProps & TypographyProps & LayoutProps & SpaceProps & ColorProps & {
3
+ import { CellProps } from "../Cell";
4
+ export type InputProps = React.InputHTMLAttributes<HTMLInputElement> & CellProps & BorderProps & FlexboxProps & TypographyProps & LayoutProps & SpaceProps & ColorProps & {
4
5
  focus?: boolean;
5
6
  hover?: boolean;
6
7
  };
7
8
  export declare const inputFocusMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
8
9
  export declare const inputHoverMixin: import("styled-components").FlattenSimpleInterpolation;
9
10
  export declare const inputMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<InputProps, import("styled-components").DefaultTheme>>;
10
- export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, import("react").InputHTMLAttributes<HTMLInputElement> & BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
11
+ export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, import("react").InputHTMLAttributes<HTMLInputElement> & BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & 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>>> & LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & Omit<ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "color"> & import("..").TextColorProps & import("..").TransitionProps & {
12
+ children?: import("react").ReactNode;
13
+ } & {
14
+ variant?: "small" | "default" | undefined;
15
+ } & BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & {
11
16
  focus?: boolean | undefined;
12
17
  hover?: boolean | undefined;
13
18
  }, never>;
@@ -45,7 +45,7 @@ var Cell_1 = require("../Cell");
45
45
  var systemProps = (0, styled_system_1.compose)(styled_system_1.border, styled_system_1.flexbox, styled_system_1.space, styled_system_1.typography, styled_system_1.layout, styled_system_1.color);
46
46
  exports.inputFocusMixin = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n\n ::placeholder {\n text-decoration: underline;\n }\n"], ["\n ", ";\n\n ::placeholder {\n text-decoration: underline;\n }\n"])), Cell_1.cellFocusMixin);
47
47
  exports.inputHoverMixin = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ::placeholder {\n text-decoration: underline;\n }\n"], ["\n ::placeholder {\n text-decoration: underline;\n }\n"])));
48
- exports.inputMixin = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n appearance: none;\n border-radius: 0;\n margin: 0;\n transition: box-shadow 250ms ease;\n ", "\n\n background-color: transparent;\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:hover {\n ", "\n }\n\n &:autofill {\n font-size: 1rem;\n }\n"], ["\n appearance: none;\n border-radius: 0;\n margin: 0;\n transition: box-shadow 250ms ease;\n ", "\n\n background-color: transparent;\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:hover {\n ", "\n }\n\n &:autofill {\n font-size: 1rem;\n }\n"])), systemProps, function (_a) {
48
+ exports.inputMixin = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n appearance: none;\n border-radius: 0;\n margin: 0;\n transition: box-shadow 250ms ease;\n ", "\n\n background-color: transparent;\n\n ", "\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:hover {\n ", "\n }\n\n &:autofill {\n font-size: 1rem;\n }\n"], ["\n appearance: none;\n border-radius: 0;\n margin: 0;\n transition: box-shadow 250ms ease;\n ", "\n\n background-color: transparent;\n\n ", "\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:hover {\n ", "\n }\n\n &:autofill {\n font-size: 1rem;\n }\n"])), systemProps, (0, styled_system_1.variant)({ variants: Cell_1.CELL_VARIANTS }), function (_a) {
49
49
  var focus = _a.focus;
50
50
  return focus && exports.inputFocusMixin;
51
51
  }, exports.inputFocusMixin, function (_a) {
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../src/Input/Input.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,+CAcuB;AACvB,gCAA+C;AAa/C,IAAM,WAAW,GAAG,IAAA,uBAAO,EAAC,sBAAM,EAAE,uBAAO,EAAE,qBAAK,EAAE,0BAAU,EAAE,sBAAM,EAAE,qBAAK,CAAC,CAAC;AAElE,QAAA,eAAe,OAAG,uBAAG,4IAAA,MAC9B,EAAc,gEAKjB,KALG,qBAAc,EAKhB;AAEW,QAAA,eAAe,OAAG,uBAAG,iIAAA,6DAIjC,KAAC;AAEW,QAAA,UAAU,OAAG,uBAAG,2UAAY,oGAKrC,EAAW,4CAIX,EAAuC,qBAErC,EAAe,aAGjB,EAAuC,qBAErC,EAAe,sDAMpB,KAjBG,WAAW,EAIX,UA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,EACZ;AAEF,aAAK,CAAC,YAAY,gBACb,WAAI,CACR,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import React from "react";
2
2
  import { StackProps } from "../Stack";
3
- export declare type KeyValueSchema = {
3
+ export type KeyValueSchema = {
4
4
  key: string;
5
5
  name: string;
6
6
  type: "string" | "number";
7
7
  }[];
8
- export declare type KeyValueData = Record<string, string>;
8
+ export type KeyValueData = Record<string, string>;
9
9
  export declare const toSchema: (data: KeyValueData) => KeyValueSchema;
10
- export declare type KeyValueEditorProps = Omit<StackProps, "onChange"> & {
10
+ export type KeyValueEditorProps = Omit<StackProps, "onChange"> & {
11
11
  schema: KeyValueSchema;
12
12
  data: KeyValueData;
13
13
  onChange?(data: KeyValueData): void;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { InputProps } from "../Input";
3
3
  import { SplitProps } from "../Split";
4
- export declare type KeyValueInputProps = Omit<SplitProps, "children"> & {
4
+ export type KeyValueInputProps = Omit<SplitProps, "children"> & {
5
5
  k: InputProps;
6
6
  v?: InputProps;
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { CellProps } from "../Cell";
3
- export declare type LoadingProps = CellProps & {
3
+ export type LoadingProps = CellProps & {
4
4
  children?: React.ReactNode;
5
5
  loading?: boolean;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { BoxProps } from "../Box";
3
- export declare type ModalProps = BoxProps & {
3
+ export type ModalProps = BoxProps & {
4
4
  onClose?(): void;
5
5
  overlay?: boolean;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BoxProps } from "../Box";
3
- export declare type MonoProps = BoxProps;
3
+ export type MonoProps = BoxProps;
4
4
  export declare const Mono: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, 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 & {
5
5
  children?: import("react").ReactNode;
6
6
  }, never>;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- export declare type MultiSelectPayload = Record<string, unknown>;
3
- export declare type MultiSelectItem = {
2
+ export type MultiSelectPayload = Record<string, unknown>;
3
+ export type MultiSelectItem = {
4
4
  id: string;
5
5
  payload: MultiSelectPayload;
6
6
  };
@@ -10,7 +10,7 @@ export declare const MultiSelectContext: React.Context<{
10
10
  deselect(id: string, payload?: MultiSelectPayload): void;
11
11
  isWrapped: boolean;
12
12
  }>;
13
- export declare type MultiSelectProps = {
13
+ export type MultiSelectProps = {
14
14
  onChange?(selection: MultiSelectItem[], payload?: MultiSelectPayload): void;
15
15
  };
16
16
  export declare const MultiSelect: React.FC<MultiSelectProps>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { MultiSelectPayload } from "./MultiSelect";
3
- export declare type UseMultiSelect = {
3
+ export type UseMultiSelect = {
4
4
  defaultSelected?: boolean;
5
5
  payload?: MultiSelectPayload;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ButtonProps } from "../Button";
3
- export declare type PageProps = ButtonProps & {
3
+ export type PageProps = ButtonProps & {
4
4
  pageNumber: number;
5
5
  href: string;
6
6
  per: number;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { StackProps } from "../Stack";
3
3
  import { PageProps } from "./Page";
4
- export declare type PaginationProps = StackProps & {
4
+ export type PaginationProps = StackProps & {
5
5
  page?: number;
6
6
  per?: number;
7
7
  total: number;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { StackProps } from "../Stack";
3
- export declare type PaneProps = StackProps & React.HTMLAttributes<HTMLDivElement> & {
3
+ export type PaneProps = StackProps & React.HTMLAttributes<HTMLDivElement> & {
4
4
  children: React.ReactNode;
5
5
  onEnter?(): void;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BoxProps } from "../Box";
3
- export declare type PaneHeaderProps = BoxProps;
3
+ export type PaneHeaderProps = BoxProps;
4
4
  export declare const PaneHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, 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 & {
5
5
  children?: import("react").ReactNode;
6
6
  }, never>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ClickableProps } from "../Clickable";
3
- export declare type PaneOptionProps = ClickableProps & {
3
+ export type PaneOptionProps = ClickableProps & {
4
4
  active?: boolean;
5
5
  hover?: boolean;
6
6
  focus?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { CellProps } from "../Cell";
3
- export declare type PillProps = CellProps;
3
+ export type PillProps = CellProps;
4
4
  export declare const PILL: {
5
5
  alignItems: string;
6
6
  backgroundColor: string;
@@ -10,13 +10,15 @@ export declare const PILL: {
10
10
  color: string;
11
11
  display: string;
12
12
  fontFamily: string;
13
- fontSize: number[];
14
13
  lineHeight: number;
14
+ transition: string;
15
+ fontSize: number[];
15
16
  px: number;
16
17
  py: number;
17
- transition: string;
18
18
  };
19
19
  export declare const pillFocusMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
20
20
  export declare const Pill: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, 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("..").TextColorProps & import("..").TransitionProps & {
21
21
  children?: import("react").ReactNode;
22
+ } & {
23
+ variant?: "small" | "default" | undefined;
22
24
  }, never>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BoxProps } from "../Box";
3
- export declare type PlusProps = BoxProps & {
3
+ export type PlusProps = BoxProps & {
4
4
  size: number | string;
5
5
  strokeWidth?: string;
6
6
  axis?: "horizontal" | "vertical" | "both";
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Placement } from "@popperjs/core";
3
- export declare type PopperProps = {
3
+ export type PopperProps = {
4
4
  anchor: JSX.Element;
5
5
  children: JSX.Element;
6
6
  open?: boolean;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { Placement, StrictModifiers } from "@popperjs/core";
3
3
  import { UseClickOutside } from "../hooks/useClickOutside";
4
- export declare type UsePopper = {
4
+ export type UsePopper = {
5
5
  open?: boolean;
6
6
  distance?: number;
7
7
  placement?: Placement;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { BoxProps } from "../Box";
3
- export declare type ProgressBarProps = Omit<BoxProps, "color"> & {
3
+ export type ProgressBarProps = Omit<BoxProps, "color"> & {
4
4
  progress: number;
5
5
  color?: string;
6
6
  };
@@ -6,7 +6,7 @@ export declare const Ex: import("styled-components").StyledComponent<"div", impo
6
6
  }, never>;
7
7
  export declare const removeFocusMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
8
8
  export declare const removeHoverMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
9
- export declare type RemoveProps = ClickableProps & {
9
+ export type RemoveProps = ClickableProps & {
10
10
  hover?: boolean;
11
11
  focus?: boolean;
12
12
  };
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { ImageProps } from "../Image";
3
3
  import { AspectRatioBoxProps } from "../AspectRatioBox";
4
- export declare type ResponsiveImageProps = ImageProps & AspectRatioBoxProps & {
4
+ export type ResponsiveImageProps = ImageProps & AspectRatioBoxProps & {
5
5
  indicator?: boolean;
6
6
  placeholder?: string;
7
7
  };
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
  import { DropdownProps } from "../Dropdown";
3
- export declare type SelectValue = string | number | boolean | null;
4
- export declare type SelectOption = {
3
+ export type SelectValue = string | number | boolean | null;
4
+ export type SelectOption = {
5
5
  label: string;
6
6
  value: SelectValue;
7
7
  };
8
- export declare type SelectProps = Omit<DropdownProps, "children"> & {
8
+ export type SelectProps = Omit<DropdownProps, "children"> & {
9
9
  options: SelectOption[];
10
10
  value?: SelectValue;
11
11
  onChange?(value: SelectValue): void;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BoxProps } from "../Box";
3
- export declare type SkeletonProps = BoxProps;
3
+ export type SkeletonProps = BoxProps;
4
4
  export declare const Skeleton: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, 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 & {
5
5
  children?: import("react").ReactNode;
6
6
  }, never>;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { Theme } from "../theme";
3
3
  import { BoxProps } from "../Box";
4
- export declare type SpinnerProps = BoxProps & {
4
+ export type SpinnerProps = BoxProps & {
5
5
  size?: number;
6
6
  color?: keyof Theme["colors"];
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { StackProps } from "../Stack";
3
- export declare type SplitProps = StackProps & {
3
+ export type SplitProps = StackProps & {
4
4
  children: [JSX.Element, JSX.Element];
5
5
  };
6
6
  export declare const Split: React.FC<SplitProps>;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  import { BoxProps } from "../Box";
3
- declare type Direction = "vertical" | "horizontal";
3
+ type Direction = "vertical" | "horizontal";
4
4
  export declare const DEFAULT_STACK_SPACING = "-1px";
5
5
  export declare const DEFAULT_STACK_DIRECTION: Direction;
6
- export declare type StackProps = BoxProps & {
6
+ export type StackProps = BoxProps & {
7
7
  spacing?: number | string;
8
8
  direction?: Direction | Direction[];
9
9
  children?: React.ReactNode;
package/dist/Tag/Tag.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Box, BoxProps } from "../Box";
3
- export declare type TagProps = Omit<BoxProps, "bg" | "backgroundColor" | "children"> & {
3
+ export type TagProps = Omit<BoxProps, "bg" | "backgroundColor" | "children"> & {
4
4
  bg?: string;
5
5
  backgroundColor?: string;
6
6
  children: string | JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { Theme, Scheme } from "../theme";
3
3
  export declare const prefersDark: () => boolean;
4
- declare type Backend = {
4
+ type Backend = {
5
5
  get(): Scheme | null;
6
6
  set(scheme: Scheme): void;
7
7
  };
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { Box, BoxProps } from "../Box";
3
3
  import { Placement } from "../Popper";
4
4
  export declare const Tip: typeof Box;
5
- export declare type TooltipProps = BoxProps & {
5
+ export type TooltipProps = BoxProps & {
6
6
  children: JSX.Element;
7
7
  label: JSX.Element | string;
8
8
  placement?: Placement;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { CellProps } from "../Cell";
3
- export declare type UploadProps = CellProps & {
3
+ export type UploadProps = CellProps & {
4
4
  label: string;
5
5
  progress: number;
6
6
  foregroundColor?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare type UseClickOutside = {
2
+ export type UseClickOutside = {
3
3
  ref: React.RefObject<HTMLElement>;
4
4
  when: boolean;
5
5
  type?: keyof DocumentEventMap;
@@ -1,9 +1,9 @@
1
- export declare type Constants = {
1
+ export type Constants = {
2
2
  black: "black";
3
3
  white: "white";
4
4
  };
5
5
  export declare const CONSTANTS: Constants;
6
- export declare type ColorScheme = {
6
+ export type ColorScheme = {
7
7
  primary: string;
8
8
  border: string;
9
9
  secondary: string;
@@ -20,7 +20,7 @@ export declare const SCHEMES: {
20
20
  dark: ColorScheme;
21
21
  light: ColorScheme;
22
22
  };
23
- export declare type Scheme = keyof typeof SCHEMES;
23
+ export type Scheme = keyof typeof SCHEMES;
24
24
  export declare const SPACE_SCALE: readonly ["0", "0.125rem", "0.25rem", "0.5rem", "0.75rem", "1rem", "1.5rem", "2rem", "4rem", "8rem", "16rem"];
25
25
  export declare const SPACE_SCALE_UNIT = "rem";
26
26
  export declare const FONT_SCALE: readonly ["0.75rem", "0.875rem", "1rem", "1.125rem", "1.5rem", "2rem"];
@@ -41,4 +41,4 @@ export declare const THEME: {
41
41
  space: readonly ["0", "0.125rem", "0.25rem", "0.5rem", "0.75rem", "1rem", "1.5rem", "2rem", "4rem", "8rem", "16rem"];
42
42
  breakpoints: string[];
43
43
  };
44
- export declare type Theme = typeof THEME;
44
+ export type Theme = typeof THEME;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auspices/eos",
3
- "version": "2.34.0",
3
+ "version": "3.0.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -44,31 +44,31 @@
44
44
  "use-keyboard-list-navigation": "^2.2.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@babel/core": "7.18.6",
48
- "@storybook/addon-actions": "6.5.9",
47
+ "@babel/core": "7.20.5",
48
+ "@storybook/addon-actions": "6.5.14",
49
49
  "@storybook/addon-info": "5.3.21",
50
- "@storybook/addon-links": "6.5.9",
51
- "@storybook/addon-viewport": "6.5.9",
52
- "@storybook/addons": "6.5.9",
53
- "@storybook/react": "6.5.9",
54
- "@types/node": "18.0.5",
55
- "@types/react-dom": "18.0.6",
56
- "@types/styled-components": "5.1.25",
57
- "@typescript-eslint/eslint-plugin": "5.30.6",
58
- "@typescript-eslint/parser": "5.30.6",
59
- "babel-loader": "8.2.5",
50
+ "@storybook/addon-links": "6.5.14",
51
+ "@storybook/addon-viewport": "6.5.14",
52
+ "@storybook/addons": "6.5.14",
53
+ "@storybook/react": "6.5.14",
54
+ "@types/node": "18.11.11",
55
+ "@types/react-dom": "18.0.9",
56
+ "@types/styled-components": "5.1.26",
57
+ "@typescript-eslint/eslint-plugin": "5.45.1",
58
+ "@typescript-eslint/parser": "5.45.1",
59
+ "babel-loader": "8.3.0",
60
60
  "cz-conventional-changelog": "3.3.0",
61
- "eslint": "8.20.0",
62
- "eslint-plugin-react": "7.30.1",
61
+ "eslint": "8.29.0",
62
+ "eslint-plugin-react": "7.31.11",
63
63
  "eslint-plugin-react-hooks": "4.6.0",
64
- "prettier": "2.7.1",
64
+ "prettier": "2.8.0",
65
65
  "react": "18.2.0",
66
66
  "react-dom": "18.2.0",
67
- "semantic-release": "^19.0.3",
67
+ "semantic-release": "19.0.5",
68
68
  "storybook-states": "1.2.0",
69
- "styled-components": "5.3.5",
69
+ "styled-components": "5.3.6",
70
70
  "ts-node": "10.9.1",
71
- "typescript": "4.7.4"
71
+ "typescript": "4.9.3"
72
72
  },
73
73
  "publishConfig": {
74
74
  "access": "public",