@auspices/eos 5.0.11 → 5.0.14

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 (122) hide show
  1. package/dist/Alert/index.js.map +1 -1
  2. package/dist/Alerts/index.js.map +1 -1
  3. package/dist/Alerts/useAlerts.js +1 -0
  4. package/dist/Alerts/useAlerts.js.map +1 -1
  5. package/dist/AspectRatioBox/index.js.map +1 -1
  6. package/dist/Banner/index.js.map +1 -1
  7. package/dist/Box/Box.d.ts +1 -1
  8. package/dist/Box/Box.js +5 -3
  9. package/dist/Box/Box.js.map +1 -1
  10. package/dist/Box/index.js.map +1 -1
  11. package/dist/Button/Button.d.ts +4 -2
  12. package/dist/Button/Button.js +4 -3
  13. package/dist/Button/Button.js.map +1 -1
  14. package/dist/Button/index.js.map +1 -1
  15. package/dist/Caret/Caret.d.ts +1 -3
  16. package/dist/Caret/Caret.js +5 -3
  17. package/dist/Caret/Caret.js.map +1 -1
  18. package/dist/Caret/index.js.map +1 -1
  19. package/dist/Cell/Cell.d.ts +1 -1
  20. package/dist/Cell/Cell.js +4 -3
  21. package/dist/Cell/Cell.js.map +1 -1
  22. package/dist/Cell/index.js.map +1 -1
  23. package/dist/Clear/Clear.d.ts +2 -10
  24. package/dist/Clear/Clear.js +5 -4
  25. package/dist/Clear/Clear.js.map +1 -1
  26. package/dist/Clear/index.js.map +1 -1
  27. package/dist/ClearableInput/index.js.map +1 -1
  28. package/dist/Clickable/Clickable.js.map +1 -1
  29. package/dist/Clickable/index.js.map +1 -1
  30. package/dist/Confirm/index.js.map +1 -1
  31. package/dist/ContextMenu/ContextMenu.d.ts +4 -19
  32. package/dist/ContextMenu/index.js.map +1 -1
  33. package/dist/Divider/Divider.d.ts +1 -1
  34. package/dist/Divider/Divider.js +5 -5
  35. package/dist/Divider/Divider.js.map +1 -1
  36. package/dist/Divider/index.js.map +1 -1
  37. package/dist/Dropdown/index.js.map +1 -1
  38. package/dist/Ellipsis/index.js.map +1 -1
  39. package/dist/EmptyFrame/index.js.map +1 -1
  40. package/dist/Expandable/index.js.map +1 -1
  41. package/dist/Field/index.js.map +1 -1
  42. package/dist/File/index.js.map +1 -1
  43. package/dist/Flyout/index.js.map +1 -1
  44. package/dist/GlobalStyles/GlobalStyles.js.map +1 -1
  45. package/dist/GlobalStyles/index.js.map +1 -1
  46. package/dist/Grid/index.js.map +1 -1
  47. package/dist/HTML/HTML.d.ts +1 -3
  48. package/dist/HTML/index.js.map +1 -1
  49. package/dist/Image/index.js.map +1 -1
  50. package/dist/Input/Input.d.ts +1 -1
  51. package/dist/Input/Input.js +4 -4
  52. package/dist/Input/Input.js.map +1 -1
  53. package/dist/Input/index.js.map +1 -1
  54. package/dist/KeyValueEditor/index.js.map +1 -1
  55. package/dist/KeyValueInput/index.js.map +1 -1
  56. package/dist/Loading/index.js.map +1 -1
  57. package/dist/Modal/index.js.map +1 -1
  58. package/dist/Mono/Mono.d.ts +1 -3
  59. package/dist/Mono/Mono.js +5 -3
  60. package/dist/Mono/Mono.js.map +1 -1
  61. package/dist/Mono/index.js.map +1 -1
  62. package/dist/MultiSelect/index.js.map +1 -1
  63. package/dist/Pagination/index.js.map +1 -1
  64. package/dist/Pane/Pane.js +5 -3
  65. package/dist/Pane/Pane.js.map +1 -1
  66. package/dist/Pane/PaneHeader.d.ts +1 -3
  67. package/dist/Pane/PaneHeader.js +4 -2
  68. package/dist/Pane/PaneHeader.js.map +1 -1
  69. package/dist/Pane/PaneOption.d.ts +6 -6
  70. package/dist/Pane/PaneOption.js +5 -3
  71. package/dist/Pane/PaneOption.js.map +1 -1
  72. package/dist/Pane/index.js.map +1 -1
  73. package/dist/Pill/Pill.d.ts +1 -1
  74. package/dist/Pill/Pill.js +4 -2
  75. package/dist/Pill/Pill.js.map +1 -1
  76. package/dist/Pill/index.js.map +1 -1
  77. package/dist/Plus/Plus.d.ts +1 -3
  78. package/dist/Plus/Plus.js +5 -3
  79. package/dist/Plus/Plus.js.map +1 -1
  80. package/dist/Plus/index.js.map +1 -1
  81. package/dist/Popper/index.js.map +1 -1
  82. package/dist/ProgressBar/index.js.map +1 -1
  83. package/dist/Remove/Remove.d.ts +3 -5
  84. package/dist/Remove/Remove.js +9 -8
  85. package/dist/Remove/Remove.js.map +1 -1
  86. package/dist/Remove/index.js.map +1 -1
  87. package/dist/ResponsiveImage/index.js.map +1 -1
  88. package/dist/Select/index.js.map +1 -1
  89. package/dist/Skeleton/Skeleton.d.ts +1 -3
  90. package/dist/Skeleton/index.js.map +1 -1
  91. package/dist/Spinner/index.js.map +1 -1
  92. package/dist/Split/index.js.map +1 -1
  93. package/dist/Stack/index.js.map +1 -1
  94. package/dist/Tag/Tag.d.ts +2 -4
  95. package/dist/Tag/index.js.map +1 -1
  96. package/dist/Themer/index.js.map +1 -1
  97. package/dist/Tooltip/index.js.map +1 -1
  98. package/dist/Truncate/index.js.map +1 -1
  99. package/dist/Upload/index.js.map +1 -1
  100. package/dist/hooks/index.js.map +1 -1
  101. package/dist/hooks/useClickOutside.js.map +1 -1
  102. package/dist/hooks/useContrastingColor.js.map +1 -1
  103. package/dist/hooks/usePagination.js.map +1 -1
  104. package/dist/hooks/useUniqueId.js.map +1 -1
  105. package/dist/hooks/useUpdateEffect.js.map +1 -1
  106. package/dist/index.js.map +1 -1
  107. package/dist/lib/flattenChildren.js.map +1 -1
  108. package/dist/lib/hasChildren.js.map +1 -1
  109. package/dist/lib/index.js.map +1 -1
  110. package/dist/lib/isTouch.js.map +1 -1
  111. package/dist/lib/onlyText.js.map +1 -1
  112. package/dist/lib/shouldForwardProp.js.map +1 -1
  113. package/dist/lib/withDefaultProps.d.ts +4 -0
  114. package/dist/lib/withDefaultProps.js +29 -0
  115. package/dist/lib/withDefaultProps.js.map +1 -0
  116. package/dist/mixins/index.js.map +1 -1
  117. package/dist/mixins/overflowEllipsis.js.map +1 -1
  118. package/dist/theme/index.js.map +1 -1
  119. package/dist/theme/theme.js.map +1 -1
  120. package/dist/theme/utils.js.map +1 -1
  121. package/dist/util/generateId.js.map +1 -1
  122. package/package.json +14 -14
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Alert/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Alert/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Alerts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Alerts/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B"}
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ "use client";
2
3
  var __assign = (this && this.__assign) || function () {
3
4
  __assign = Object.assign || function(t) {
4
5
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -1 +1 @@
1
- {"version":3,"file":"useAlerts.js","sourceRoot":"","sources":["../../src/Alerts/useAlerts.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAOe;AACf,iDAAgD;AAmBhD,IAAM,OAAO,GAAG,UAAC,KAAY,EAAE,MAAc;IAC3C,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,cAAc;YACjB,6BACK,KAAK,KACR,MAAM,yCACD,KAAK,CAAC,MAAM;+BAEb,IAAI,EAAE,cAAc,IACjB,MAAM,CAAC,OAAO;6BAGrB;QACJ,KAAK,OAAO;YACV,6BACK,KAAK,KACR,MAAM,yCACD,KAAK,CAAC,MAAM;+BAEb,IAAI,EAAE,OAAO,IACV,MAAM,CAAC,OAAO;6BAGrB;QACJ,KAAK,SAAS;YACZ,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,EAAE,KAAK,OAAA,EAAE,gBAAgB,kBAAA,EAAE,SAAS,WAAA,EAAE,IAClE,QAAQ,CACc,CAC1B,CAAC;AACJ,CAAC,CAAC;AAvCW,QAAA,cAAc,kBAuCzB;AAEK,IAAM,SAAS,GAAG;IACjB,IAAA,KAIF,IAAA,kBAAU,EAAC,qBAAa,CAAC,EAHlB,MAAM,kBAAA,EACf,gBAAgB,sBAAA,EAChB,SAAS,eACkB,CAAC;IAE9B,OAAO,EAAE,MAAM,QAAA,EAAE,gBAAgB,kBAAA,EAAE,SAAS,WAAA,EAAE,CAAC;AACjD,CAAC,CAAC;AARW,QAAA,SAAS,aAQpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/AspectRatioBox/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/AspectRatioBox/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Banner/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Banner/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
package/dist/Box/Box.d.ts CHANGED
@@ -10,4 +10,4 @@ export type BoxProps = BorderProps & TypographyProps & BoxSpatialProps & Omit<Co
10
10
  children?: React.ReactNode;
11
11
  };
12
12
  export declare const boxMixin: import("styled-system").styleFn;
13
- export declare const Box: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BoxProps>> & string;
13
+ export declare const Box: import("react").ForwardRefExoticComponent<Omit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BoxProps>, "ref"> & import("react").RefAttributes<any>>;
package/dist/Box/Box.js CHANGED
@@ -12,6 +12,7 @@ exports.Box = exports.boxMixin = void 0;
12
12
  var styled_components_1 = __importDefault(require("styled-components"));
13
13
  var styled_system_1 = require("styled-system");
14
14
  var shouldForwardProp_1 = require("../lib/shouldForwardProp");
15
+ var withDefaultProps_1 = require("../lib/withDefaultProps");
15
16
  var textColor = (0, styled_system_1.style)({
16
17
  prop: "textColor",
17
18
  cssProperty: "color",
@@ -19,12 +20,13 @@ var textColor = (0, styled_system_1.style)({
19
20
  });
20
21
  var transition = (0, styled_system_1.system)({ transition: true });
21
22
  exports.boxMixin = (0, styled_system_1.compose)(styled_system_1.border, styled_system_1.flexbox, styled_system_1.space, styled_system_1.typography, styled_system_1.position, styled_system_1.layout, styled_system_1.color, textColor, transition);
22
- exports.Box = styled_components_1.default.div.withConfig({
23
+ var StyledBox = styled_components_1.default.div.withConfig({
23
24
  shouldForwardProp: shouldForwardProp_1.shouldForwardProp,
24
25
  })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), exports.boxMixin);
25
- exports.Box.defaultProps = {
26
+ StyledBox.displayName = "StyledBox";
27
+ exports.Box = (0, withDefaultProps_1.withDefaultProps)(StyledBox, {
26
28
  fontFamily: "body",
27
29
  lineHeight: 2,
28
- };
30
+ }, "Box");
29
31
  var templateObject_1;
30
32
  //# sourceMappingURL=Box.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Box.js","sourceRoot":"","sources":["../../src/Box/Box.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;AAEb,wEAAuC;AACvC,+CAmBuB;AACvB,8DAA6D;AAwB7D,IAAM,SAAS,GAAG,IAAA,qBAAK,EAAC;IACtB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,OAAO;IACpB,GAAG,EAAE,QAAQ;CACd,CAAC,CAAC;AAEH,IAAM,UA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AAS,EACT;IACE,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,CAAC;CACd,EACD,KAAK,CACN,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Box/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Box/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB"}
@@ -1,10 +1,12 @@
1
1
  import { ClickableProps } from "../Clickable";
2
2
  import { CellProps } from "../Cell";
3
+ export type ButtonVariant = "small" | "default";
3
4
  export type ButtonProps = ClickableProps & CellProps & {
4
5
  focus?: boolean;
5
6
  hover?: boolean;
6
7
  selected?: boolean;
7
8
  highlighted?: boolean;
9
+ variant?: ButtonVariant;
8
10
  };
9
11
  export declare const buttonHoverMixin: import("styled-components").RuleSet<object>;
10
12
  export declare const buttonFocusMixin: import("styled-components").RuleSet<object>;
@@ -12,9 +14,9 @@ export declare const buttonSelectedMixin: import("styled-components").RuleSet<ob
12
14
  export declare const buttonDisabledMixin: import("styled-components").RuleSet<object>;
13
15
  export declare const buttonHighlightedMixin: import("styled-components").RuleSet<ButtonProps>;
14
16
  export declare const buttonMixin: import("styled-components").RuleSet<ButtonProps>;
15
- export declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "backgroundColor" | "cursor" | "opacity" | "textDecoration" | "transition" | "bg" | "textColor" | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & 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 & {
17
+ export declare const Button: import("react").ForwardRefExoticComponent<Omit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "backgroundColor" | "cursor" | "opacity" | "textDecoration" | "transition" | "bg" | "textColor" | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & 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 & {
16
18
  children?: React.ReactNode;
17
19
  } & {
18
20
  cursor?: import("styled-system").ResponsiveValue<string>;
19
21
  textDecoration?: import("styled-system").ResponsiveValue<string>;
20
- }, ButtonProps>> & string;
22
+ }, ButtonProps>, "ref"> & import("react").RefAttributes<any>>;
@@ -43,6 +43,7 @@ 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 withDefaultProps_1 = require("../lib/withDefaultProps");
46
47
  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"));
47
48
  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);
48
49
  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"));
@@ -69,8 +70,8 @@ exports.buttonMixin = (0, styled_components_1.css)(templateObject_8 || (template
69
70
  var highlighted = _a.highlighted;
70
71
  return highlighted && exports.buttonHighlightedMixin;
71
72
  });
72
- exports.Button = (0, styled_components_1.default)(Clickable_1.Clickable)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), exports.buttonMixin);
73
- exports.Button.defaultProps = { variant: "default" };
74
- exports.Button.displayName = "Button";
73
+ var StyledButton = (0, styled_components_1.default)(Clickable_1.Clickable)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), exports.buttonMixin);
74
+ StyledButton.displayName = "StyledButton";
75
+ exports.Button = (0, withDefaultProps_1.withDefaultProps)(StyledButton, { variant: "default" }, "Button");
75
76
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
76
77
  //# sourceMappingURL=Button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/Button/Button.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,qEAAgD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b,WAAW,iBAAA;IAAO,OAAA,WAAW,IAAI,8BAAsB;AAArC,CAAqC,EAC5D;AAEF,IAAM,YAAY,GAAG,IAAA,2BAAM,EAAC,qBAAS,CAAC,+EAAa,MAC/C,EAAW,IACd,KADG,mBAAW,CACd,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE7B,QAAA,MAAM,GAAG,IAAA,mCAAgB,EACpC,YAAY,EACZ,EAAE,OAAO,EAAE,SAA0B,EAAE,EACvC,QAAQ,CACT,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Button/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Button/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
@@ -3,6 +3,4 @@ export type CaretProps = BoxProps & {
3
3
  direction?: "up" | "down" | "left" | "right";
4
4
  size?: number;
5
5
  };
6
- export declare const Caret: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "backgroundColor" | "opacity" | "transition" | "children" | "bg" | "textColor" | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>>> & 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 & {
7
- children?: React.ReactNode;
8
- }, CaretProps>> & string;
6
+ export declare const Caret: import("react").ForwardRefExoticComponent<Omit<import("styled-components/dist/types").Substitute<Omit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BoxProps>, "ref"> & import("react").RefAttributes<any>, CaretProps>, "ref"> & import("react").RefAttributes<any>>;
@@ -42,7 +42,8 @@ exports.Caret = void 0;
42
42
  var styled_components_1 = __importStar(require("styled-components"));
43
43
  var theme_get_1 = require("@styled-system/theme-get");
44
44
  var Box_1 = require("../Box");
45
- exports.Caret = (0, styled_components_1.default)(Box_1.Box)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: relative;\n width: ", ";\n height: ", ";\n flex-shrink: 0;\n\n &::after {\n content: \"\";\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 70%;\n height: 70%;\n background-color: transparent;\n transform: translate(-50%, -50%) rotate(45deg);\n\n ", "\n }\n"], ["\n position: relative;\n width: ", ";\n height: ", ";\n flex-shrink: 0;\n\n &::after {\n content: \"\";\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 70%;\n height: 70%;\n background-color: transparent;\n transform: translate(-50%, -50%) rotate(45deg);\n\n ", "\n }\n"])), function (props) { return (0, theme_get_1.themeGet)("space.".concat(props.size))(props); }, function (props) { return (0, theme_get_1.themeGet)("space.".concat(props.size))(props); }, function (_a) {
45
+ var withDefaultProps_1 = require("../lib/withDefaultProps");
46
+ var StyledCaret = (0, styled_components_1.default)(Box_1.Box)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: relative;\n width: ", ";\n height: ", ";\n flex-shrink: 0;\n\n &::after {\n content: \"\";\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 70%;\n height: 70%;\n background-color: transparent;\n transform: translate(-50%, -50%) rotate(45deg);\n\n ", "\n }\n"], ["\n position: relative;\n width: ", ";\n height: ", ";\n flex-shrink: 0;\n\n &::after {\n content: \"\";\n display: block;\n position: absolute;\n top: 50%;\n left: 50%;\n width: 70%;\n height: 70%;\n background-color: transparent;\n transform: translate(-50%, -50%) rotate(45deg);\n\n ", "\n }\n"])), function (props) { return (0, theme_get_1.themeGet)("space.".concat(props.size))(props); }, function (props) { return (0, theme_get_1.themeGet)("space.".concat(props.size))(props); }, function (_a) {
46
47
  var direction = _a.direction;
47
48
  switch (direction) {
48
49
  case "up":
@@ -55,9 +56,10 @@ exports.Caret = (0, styled_components_1.default)(Box_1.Box)(templateObject_5 ||
55
56
  return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-top: 1px solid;\n border-right: 1px solid;\n margin-left: -25%;\n "], ["\n border-top: 1px solid;\n border-right: 1px solid;\n margin-left: -25%;\n "])));
56
57
  }
57
58
  });
58
- exports.Caret.defaultProps = {
59
+ StyledCaret.displayName = "StyledCaret";
60
+ exports.Caret = (0, withDefaultProps_1.withDefaultProps)(StyledCaret, {
59
61
  direction: "down",
60
62
  size: 3,
61
- };
63
+ }, "Caret");
62
64
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
63
65
  //# sourceMappingURL=Caret.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Caret.js","sourceRoot":"","sources":["../../src/Caret/Caret.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,qEAAgD;AAChD,sDAAoD;AACpD,8BAAuC;AAO1B,QAAA,KAAK,GAAG,IAAA,2BAAM,EAAC,SAAG,CAAC,gZAAY,oCAEjC,EAAiD,eAChD,EAAiD,2QAcvD,EA2BD,SAEJ,KA5CU,UAAC,KAAK,IAAK,OAAA,IAAA,oBAAQ,EAAC,gBAAS,KAAK,CAAC,IAAI,CAAE,CAAC,CAAC,KAAK,CAAC,EAAtC,CAAsC,EAChD,UAAC,KAAK,IAAK,OAAA,IAAA,oBAAQ,EAAC,gBAAS,KAAK,CAAC,IAAI,CAAE,CAAC,CAAC,KAAK,CAAC,EAAtC,CAAsC,EAcvD,UAAC,EAAa;QAAX,SAAS,eAAA;IACZ,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,IAAI;YACP,WAAO,uBAAG,yLAAA,qHAIT,KAAC;QACJ,KAAK,MAAM;YACT,WAAO,uBAAG,8LAAA,0HAIT,KAAC;QACJ,KAAK,MAAM;YACT,WAAO,uBAAG,6LAAA,yHAIT,KAAC;QACJ,KAAK,OAAO;YACV,WAAO,uBAAG,4LAAA,wHAIT,KAAC;IACN,CAAC;AACH,CAAC,EAEH;AAEF,aAAK,CAAC,YAAY,GAAG;IACnB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC;CACR,CAAC"}
1
+ {"version":3,"file":"Caret.js","sourceRoot":"","sources":["../../src/Caret/Caret.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,qEAAgD;AAChD,sDAAoD;AACpD,8BAAuC;AACvC,4DAA2D;AAO3D,IAAM,WAAW,GAAG,IAAA,2BAAM,EAAC,SAAG,CAAC,gZAAY,oCAEhC,EAAiD,eAChD,EAAiD,2QAcvD,EA2BD,SAEJ,KA5CU,UAAC,KAAK,IAAK,OAAA,IAAA,oBAAQ,EAAC,gBAAS,KAAK,CAAC,IAAI,CAAE,CAAC,CAAC,KAAK,CAAC,EAAtC,CAAsC,EAChD,UAAC,KAAK,IAAK,OAAA,IAAA,oBAAQ,EAAC,gBAAS,KAAK,CAAC,IAAI,CAAE,CAAC,CAAC,KAAK,CAAC,EAAtC,CAAsC,EAcvD,UAAC,EAAa;QAAX,SAAS,eAAA;IACZ,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,IAAI;YACP,WAAO,uBAAG,yLAAA,qHAIT,KAAC;QACJ,KAAK,MAAM;YACT,WAAO,uBAAG,8LAAA,0HAIT,KAAC;QACJ,KAAK,MAAM;YACT,WAAO,uBAAG,6LAAA,yHAIT,KAAC;QACJ,KAAK,OAAO;YACV,WAAO,uBAAG,4LAAA,wHAIT,KAAC;IACN,CAAC;AACH,CAAC,CAEJ,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;AAE3B,QAAA,KAAK,GAAG,IAAA,mCAAgB,EACnC,WAAW,EACX;IACE,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,CAAC;CACR,EACD,OAAO,CACR,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Caret/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Caret/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
@@ -17,4 +17,4 @@ export type CellProps = BoxProps & {
17
17
  };
18
18
  export declare const cellFocusMixin: import("styled-components").RuleSet<object>;
19
19
  export declare const cellMixin: import("styled-components").RuleSet<object>;
20
- export declare const Cell: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CellProps>> & string;
20
+ export declare const Cell: import("react").ForwardRefExoticComponent<Omit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, CellProps>, "ref"> & import("react").RefAttributes<any>>;
package/dist/Cell/Cell.js CHANGED
@@ -44,6 +44,7 @@ var styled_system_1 = require("styled-system");
44
44
  var theme_get_1 = require("@styled-system/theme-get");
45
45
  var Box_1 = require("../Box");
46
46
  var shouldForwardProp_1 = require("../lib/shouldForwardProp");
47
+ var withDefaultProps_1 = require("../lib/withDefaultProps");
47
48
  exports.CELL_VARIANTS = {
48
49
  default: {
49
50
  fontSize: [2, 2, 3],
@@ -58,10 +59,10 @@ exports.CELL_VARIANTS = {
58
59
  };
59
60
  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"));
60
61
  exports.cellMixin = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n align-items: center;\n background-color: ", ";\n border-color: ", ";\n border-style: solid;\n border-width: 1px;\n color: ", ";\n display: flex;\n font-family: ", ";\n line-height: ", ";\n transition: box-shadow 250ms ease;\n\n ", "\n ", "\n"], ["\n align-items: center;\n background-color: ", ";\n border-color: ", ";\n border-style: solid;\n border-width: 1px;\n color: ", ";\n display: flex;\n font-family: ", ";\n line-height: ", ";\n transition: box-shadow 250ms ease;\n\n ", "\n ", "\n"])), (0, theme_get_1.themeGet)("colors.background"), (0, theme_get_1.themeGet)("colors.border"), (0, theme_get_1.themeGet)("colors.primary"), (0, theme_get_1.themeGet)("fonts.body"), (0, theme_get_1.themeGet)("lineHeights.2"), (0, styled_system_1.variant)({ variants: exports.CELL_VARIANTS }), Box_1.boxMixin);
61
- exports.Cell = styled_components_1.default.div.withConfig({
62
+ var StyledCell = styled_components_1.default.div.withConfig({
62
63
  shouldForwardProp: shouldForwardProp_1.shouldForwardProp,
63
64
  })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n\n &:focus {\n ", "\n }\n"], ["\n ", "\n\n &:focus {\n ", "\n }\n"])), exports.cellMixin, exports.cellFocusMixin);
64
- exports.Cell.defaultProps = { variant: "default" };
65
- exports.Cell.displayName = "Cell";
65
+ StyledCell.displayName = "StyledCell";
66
+ exports.Cell = (0, withDefaultProps_1.withDefaultProps)(StyledCell, { variant: "default" }, "Cell");
66
67
  var templateObject_1, templateObject_2, templateObject_3;
67
68
  //# sourceMappingURL=Cell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Cell.js","sourceRoot":"","sources":["../../src/Cell/Cell.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,qEAAgD;AAChD,+CAAwC;AACxC,sDAAoD;AACpD,8BAA4C;AAC5C,8DAA6D;AAEhD,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE;QACP,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACnB,EAAE,EAAE,CAAC;QACL,EAAE,EAAE,CAAC;KACN;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACnB,EAAE,EAAE,CAAC;QACL,EAAE,EAAE,CAAC;KACN;CACF,CAAC;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,SAAS,OAAG,uBAAG,sUAAA,gDAEN,EAA6B,qBACjC,E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yB,KAC3E,KAD2B,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAAI,IAAA,oBAAQ,EAAC,eAAe,CAAC,EAC1E;AAEW,QAAA,SAAS,OAAG,uBAAG,sUAAA,gDAEN,EAA6B,qBACjC,EAAyB,4DAGhC,EAA0B,sCAEpB,EAAsB,oBACtB,EAAyB,+CAGtC,EAAoC,MACpC,EAAQ,IACX,KAZqB,IAAA,oBAAQ,EAAC,mBAAmB,CAAC,EACjC,IAAA,oBAAQ,EAAC,eAAe,CAAC,EAGhC,IAAA,oBAAQ,EAAC,gBAAgB,CAAC,EAEpB,IAAA,oBAAQ,EAAC,YAAY,CAAC,EACtB,IAAA,oBAAQ,EAAC,eAAe,CAAC,EAGtC,IAAA,uBAAO,EAAC,EAAE,QAAQ,EAAE,qBAAa,EAAE,CAAC,EACpC,cAAQ,EACV;AAEF,IAAM,UAAU,GAAG,2BAAM,CAAC,GAAG,CAAC,UAAU,CAAC;IACvC,iBAAiB,uCAAA;CAClB,CAAC,6GAAW,MACT,EAAS,uBAGP,EAAc,SAEnB,KALG,iBAAS,EAGP,sBAAc,CAEnB,CAAC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AAEzB,QAAA,IAAI,GAAG,IAAA,mCAAgB,EAClC,UAAU,EACV,EAAE,OAAO,EAAE,SAAwB,EAAE,EACrC,MAAM,CACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Cell/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Cell/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
@@ -4,17 +4,9 @@ export type ClearProps = RemoveProps & {
4
4
  };
5
5
  export declare const clearHoverMixin: import("styled-components").RuleSet<object>;
6
6
  export declare const clearFocusMixin: import("styled-components").RuleSet<object>;
7
- export declare const Clear: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "backgroundColor" | "cursor" | "opacity" | "textDecoration" | "transition" | "bg" | "textColor" | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & 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 & {
7
+ export declare const Clear: import("react").ForwardRefExoticComponent<Omit<import("styled-components/dist/types").Substitute<Omit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "backgroundColor" | "cursor" | "opacity" | "textDecoration" | "transition" | "bg" | "textColor" | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & 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 & {
8
8
  children?: React.ReactNode;
9
9
  } & {
10
10
  cursor?: import("styled-system").ResponsiveValue<string>;
11
11
  textDecoration?: import("styled-system").ResponsiveValue<string>;
12
- }, "backgroundColor" | "cursor" | "opacity" | "textDecoration" | "transition" | "focus" | "bg" | "textColor" | "hover" | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & 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 & {
13
- children?: React.ReactNode;
14
- } & {
15
- cursor?: import("styled-system").ResponsiveValue<string>;
16
- textDecoration?: import("styled-system").ResponsiveValue<string>;
17
- } & {
18
- hover?: boolean;
19
- focus?: boolean;
20
- }, ClearProps>> & string;
12
+ }, RemoveProps>, "ref"> & import("react").RefAttributes<any>, ClearProps>, "ref"> & import("react").RefAttributes<any>>;
@@ -42,9 +42,10 @@ exports.Clear = exports.clearFocusMixin = exports.clearHoverMixin = void 0;
42
42
  var styled_components_1 = __importStar(require("styled-components"));
43
43
  var theme_get_1 = require("@styled-system/theme-get");
44
44
  var Remove_1 = require("../Remove");
45
+ var withDefaultProps_1 = require("../lib/withDefaultProps");
45
46
  exports.clearHoverMixin = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n\n &::before,\n &::after {\n background-color: ", ";\n }\n"], ["\n background-color: ", ";\n\n &::before,\n &::after {\n background-color: ", ";\n }\n"])), (0, theme_get_1.themeGet)("colors.tertiary"), (0, theme_get_1.themeGet)("colors.primary"));
46
47
  exports.clearFocusMixin = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n &,\n &:hover {\n background-color: ", ";\n\n &::before,\n &::after {\n background-color: ", ";\n }\n }\n"], ["\n &,\n &:hover {\n background-color: ", ";\n\n &::before,\n &::after {\n background-color: ", ";\n }\n }\n"])), (0, theme_get_1.themeGet)("colors.tertiary"), (0, theme_get_1.themeGet)("colors.primary"));
47
- exports.Clear = (0, styled_components_1.default)(Remove_1.Remove)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-radius: 50%;\n background-color: ", ";\n transition:\n color 250ms,\n background-color 250ms;\n\n &::before,\n &::after {\n height: 1px;\n background-color: ", ";\n transition: none;\n }\n\n ", "\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n"], ["\n border-radius: 50%;\n background-color: ", ";\n transition:\n color 250ms,\n background-color 250ms;\n\n &::before,\n &::after {\n height: 1px;\n background-color: ", ";\n transition: none;\n }\n\n ", "\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n"])), (0, theme_get_1.themeGet)("colors.hint"), (0, theme_get_1.themeGet)("colors.secondary"), function (_a) {
48
+ var StyledClear = (0, styled_components_1.default)(Remove_1.Remove)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-radius: 50%;\n background-color: ", ";\n transition:\n color 250ms,\n background-color 250ms;\n\n &::before,\n &::after {\n height: 1px;\n background-color: ", ";\n transition: none;\n }\n\n ", "\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n"], ["\n border-radius: 50%;\n background-color: ", ";\n transition:\n color 250ms,\n background-color 250ms;\n\n &::before,\n &::after {\n height: 1px;\n background-color: ", ";\n transition: none;\n }\n\n ", "\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n"])), (0, theme_get_1.themeGet)("colors.hint"), (0, theme_get_1.themeGet)("colors.secondary"), function (_a) {
48
49
  var variant = _a.variant;
49
50
  if (variant === "small") {
50
51
  return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n min-width: ", ";\n min-height: ", ";\n\n &::before,\n &::after {\n width: ", ";\n }\n "], ["\n min-width: ", ";\n min-height: ", ";\n\n &::before,\n &::after {\n width: ", ";\n }\n "])), (0, theme_get_1.themeGet)("space.5"), (0, theme_get_1.themeGet)("space.5"), (0, theme_get_1.themeGet)("space.3"));
@@ -57,9 +58,9 @@ exports.Clear = (0, styled_components_1.default)(Remove_1.Remove)(templateObject
57
58
  var focus = _a.focus;
58
59
  return focus && exports.clearFocusMixin;
59
60
  }, exports.clearFocusMixin);
60
- exports.Clear.displayName = "Clear";
61
- exports.Clear.defaultProps = {
61
+ StyledClear.displayName = "StyledClear";
62
+ exports.Clear = (0, withDefaultProps_1.withDefaultProps)(StyledClear, {
62
63
  variant: "default",
63
- };
64
+ }, "Clear");
64
65
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
65
66
  //# sourceMappingURL=Clear.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"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yBAClB,EAAmB,gEAItB,EAAmB,sBAE/B,KAPc,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAClB,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAItB,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAE9B;IACJ,CAAC;IAED,WAAO,uBAAG,kMAAA,qBACK,EAAmB,uBAClB,EAAmB,0DAItB,EAAmB,kBAE/B,KAPc,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAClB,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAItB,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAE9B;AACJ,CAAC,EAEC,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,IAAI,uBAAe;AAAxB,CAAwB,EAErC,uBAAe,EAGjB,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,IAAI,uBAAe;AAAxB,CAAwB,EAErC,uBAAe,CAEpB,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;AAE3B,QAAA,KAAK,GAAG,IAAA,mCAAgB,EACnC,WAAW,EACX;IACE,OAAO,EAAE,SAAkB;CAC5B,EACD,OAAO,CACR,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Clear/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Clear/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ClearableInput/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ClearableInput/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Clickable.js","sourceRoot":"","sources":["../../src/Clickable/Clickable.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;AAEb,uEAAgD;AAChD,wEAAuC;AACvC,+CAAiE;AACjE,8BAA4C;AAC5C,8DAA6D;AAE7D,IAAM,MAAM,GAAG,IAAA,sBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AACxC,IAAM,cAAc,GAAG,IAAA,sBAAM,EAAC,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC;AAQ3C,QAAA,SAAS,GAAG,2BAAM,CAAC,MAAM,CAAC,UAAU,CAAC;IAChD,iBAAiB,uCAAA;CAClB,CAAC,qPAAgB,uGAKD,EAAsB,kBACxB,EAAuB,oBACrB,EAAyB,cAC/B,EAA0B,SAEjC,EAAyC,IAC5C,KANgB,IAAA,mBAAQ,EAAC,YAAY,CAAC,EACxB,IAAA,mBAAQ,EAAC,aAAa,CAAC,EACrB,IAAA,mBAAQ,EAAC,eAAe,CAAC,EAC/B,IAAA,mBAAQ,EAAC,gBAAgB,CAAC,EAEjC,IAAA,uBAAO,EAAC,cAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,EAC3C"}
1
+ {"version":3,"file":"Clickable.js","sourceRoot":"","sources":["../../src/Clickable/Clickable.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;AAEb,uEAAgD;AAChD,wEAAuC;AACvC,+CAAiE;AACjE,8BAA4C;AAC5C,8DAA6D;AAE7D,IAAM,MAAM,GAAG,IAAA,sBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AACxC,IAAM,cAAc,GAAG,IAAA,sBAAM,EAAC,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC;AAQ3C,QAAA,SAAS,GAAG,2BAAM,CAAC,MAAM,CAAC,UAAU,CAAC;IAChD,iBAAiB,uCAAA;CAClB,CAAC,qPAAgB,uGAKD,EAAsB,kBACxB,EAAuB,oBACrB,EAAyB,cAC/B,EAA0B,SAEjC,EAAyC,IAC5C,KANgB,IAAA,mBAAQ,EAAC,YAAY,CAAC,EACxB,IAAA,mBAAQ,EAAC,aAAa,CAAC,EACrB,IAAA,mBAAQ,EAAC,eAAe,CAAC,EAC/B,IAAA,mBAAQ,EAAC,gBAAgB,CAAC,EAEjC,IAAA,uBAAO,EAAC,cAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,EAC3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Clickable/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Clickable/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Confirm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Confirm/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,+CAA6B"}
@@ -1,36 +1,21 @@
1
1
  import React from "react";
2
2
  import { BoxProps } from "../Box";
3
- export declare const Toggle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "backgroundColor" | "cursor" | "opacity" | "textDecoration" | "transition" | "bg" | "textColor" | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & 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 & {
3
+ export declare const Toggle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<Omit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "backgroundColor" | "cursor" | "opacity" | "textDecoration" | "transition" | "bg" | "textColor" | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & 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
4
  children?: React.ReactNode;
5
5
  } & {
6
6
  cursor?: import("styled-system").ResponsiveValue<string>;
7
7
  textDecoration?: import("styled-system").ResponsiveValue<string>;
8
- }, "active" | "backgroundColor" | "cursor" | "opacity" | "textDecoration" | "transition" | "focus" | "bg" | "textColor" | "hover" | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & 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 & {
8
+ }, import("../Pane").PaneOptionProps>, "ref"> & React.RefAttributes<any>, Omit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "backgroundColor" | "cursor" | "opacity" | "textDecoration" | "transition" | "bg" | "textColor" | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & 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 & {
9
9
  children?: React.ReactNode;
10
10
  } & {
11
11
  cursor?: import("styled-system").ResponsiveValue<string>;
12
12
  textDecoration?: import("styled-system").ResponsiveValue<string>;
13
- } & {
14
- active?: boolean;
15
- hover?: boolean;
16
- focus?: boolean;
17
- disabled?: boolean;
18
- }, import("styled-components").FastOmit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "backgroundColor" | "cursor" | "opacity" | "textDecoration" | "transition" | "bg" | "textColor" | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & 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 & {
19
- children?: React.ReactNode;
20
- } & {
21
- cursor?: import("styled-system").ResponsiveValue<string>;
22
- textDecoration?: import("styled-system").ResponsiveValue<string>;
23
- }, "active" | "backgroundColor" | "cursor" | "opacity" | "textDecoration" | "transition" | "focus" | "bg" | "textColor" | "hover" | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & 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 & {
13
+ }, import("../Pane").PaneOptionProps>, "ref"> & React.RefAttributes<any>>, never>, never>> & string & Omit<React.ForwardRefExoticComponent<Omit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "backgroundColor" | "cursor" | "opacity" | "textDecoration" | "transition" | "bg" | "textColor" | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & 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 & {
24
14
  children?: React.ReactNode;
25
15
  } & {
26
16
  cursor?: import("styled-system").ResponsiveValue<string>;
27
17
  textDecoration?: import("styled-system").ResponsiveValue<string>;
28
- } & {
29
- active?: boolean;
30
- hover?: boolean;
31
- focus?: boolean;
32
- disabled?: boolean;
33
- }>, never>, never>> & string;
18
+ }, import("../Pane").PaneOptionProps>, "ref"> & React.RefAttributes<any>>, keyof React.Component<any, {}, any>>;
34
19
  export type ContextMenuProps = BoxProps & {
35
20
  onOpen?(): void;
36
21
  onClose?(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ContextMenu/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ContextMenu/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
@@ -1,3 +1,3 @@
1
1
  import { BoxProps } from "../Box";
2
2
  export type DividerProps = BoxProps;
3
- export declare const Divider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, BoxProps>> & string;
3
+ export declare const Divider: import("react").ForwardRefExoticComponent<Omit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, BoxProps>, "ref"> & import("react").RefAttributes<any>>;
@@ -12,15 +12,15 @@ exports.Divider = void 0;
12
12
  var styled_components_1 = __importDefault(require("styled-components"));
13
13
  var Box_1 = require("../Box");
14
14
  var shouldForwardProp_1 = require("../lib/shouldForwardProp");
15
- exports.Divider = styled_components_1.default.hr.withConfig({
15
+ var withDefaultProps_1 = require("../lib/withDefaultProps");
16
+ var StyledDivider = styled_components_1.default.hr.withConfig({
16
17
  shouldForwardProp: shouldForwardProp_1.shouldForwardProp,
17
18
  })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin: 0;\n ", "\n"], ["\n margin: 0;\n ", "\n"])), Box_1.boxMixin);
18
- exports.Divider.defaultProps = {
19
+ StyledDivider.displayName = "StyledDivider";
20
+ exports.Divider = (0, withDefaultProps_1.withDefaultProps)(StyledDivider, {
19
21
  bg: "hint",
20
22
  height: 1,
21
23
  border: "none",
22
- // @ts-ignore
23
- as: "hr",
24
- };
24
+ }, "Divider");
25
25
  var templateObject_1;
26
26
  //# sourceMappingURL=Divider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Divider.js","sourceRoot":"","sources":["../../src/Divider/Divider.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;AAEb,wEAAuC;AACvC,8BAA4C;AAC5C,8DAA6D;AAIhD,QAAA,OAAO,GAAG,2BAAM,CAAC,EAAE,CAAC,UAAU,CAAC;IAC1C,iBAAiB,uCAAA;CAClB,CAAC,6FAAc,oBAEZ,EAAQ,IACX,KADG,cAAQ,EACV;AAEF,eAAO,CAAC,YAAY,GAAG;IACrB,EAAE,EAAE,MAAM;IACV,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,MAAM;IACd,aAAa;IACb,EAAE,EAAE,IAAI;CACT,CAAC"}
1
+ {"version":3,"file":"Divider.js","sourceRoot":"","sources":["../../src/Divider/Divider.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;AAEb,wEAAuC;AACvC,8BAA4C;AAC5C,8DAA6D;AAC7D,4DAA2D;AAI3D,IAAM,aAAa,GAAG,2BAAM,CAAC,EAAE,CAAC,UAAU,CAAC;IACzC,iBAAiB,uCAAA;CAClB,CAAC,6FAAc,oBAEZ,EAAQ,IACX,KADG,cAAQ,CACX,CAAC;AAEF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC;AAE/B,QAAA,OAAO,GAAG,IAAA,mCAAgB,EACrC,aAAa,EACb;IACE,EAAE,EAAE,MAAM;IACV,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,MAAM;CACf,EACD,SAAS,CACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Divider/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Divider/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Dropdown/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Dropdown/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Ellipsis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Ellipsis/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/EmptyFrame/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/EmptyFrame/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Expandable/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Expandable/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Field/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Field/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/File/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/File/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Flyout/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Flyout/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
@@ -1 +1 @@
1
- {"version":3,"file":"GlobalStyles.js","sourceRoot":"","sources":["../../src/GlobalStyles/GlobalStyles.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;AAEb,uDAAsD;AACtD,sDAAoD;AACpD,8DAAiC;AAEpB,QAAA,YAAY,OAAG,qCAAiB,quBAAA,MACzC,EAAK,4DAIQ,EAAwB,kGAU5B,EAA0B,2BACf,EAA6B,0dA0CpD,KAzDG,sBAAK,EAIQ,IAAA,oBAAQ,EAAC,cAAc,CAAC,EAU5B,IAAA,oBAAQ,EAAC,gBAAgB,CAAC,EACf,IAAA,oBAAQ,EAAC,mBAAmB,CAAC,EA0CnD"}
1
+ {"version":3,"file":"GlobalStyles.js","sourceRoot":"","sources":["../../src/GlobalStyles/GlobalStyles.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;;;;;AAEb,uDAAsD;AACtD,sDAAoD;AACpD,8DAAiC;AAEpB,QAAA,YAAY,OAAG,qCAAiB,quBAAA,MACzC,EAAK,4DAIQ,EAAwB,kGAU5B,EAA0B,2BACf,EAA6B,0dA0CpD,KAzDG,sBAAK,EAIQ,IAAA,oBAAQ,EAAC,cAAc,CAAC,EAU5B,IAAA,oBAAQ,EAAC,gBAAgB,CAAC,EACf,IAAA,oBAAQ,EAAC,mBAAmB,CAAC,EA0CnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GlobalStyles/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GlobalStyles/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Grid/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Grid/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}