@auspices/eos 2.34.1 → 4.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.
- package/README.md +1 -1
- package/dist/Alert/Alert.d.ts +1 -1
- package/dist/Alerts/Alerts.d.ts +1 -1
- package/dist/Alerts/useAlerts.d.ts +5 -5
- package/dist/AspectRatioBox/AspectRatioBox.d.ts +3 -3
- package/dist/Banner/Banner.d.ts +1 -1
- package/dist/Box/Box.d.ts +4 -4
- package/dist/Button/Button.d.ts +5 -18
- package/dist/Button/Button.js +12 -19
- package/dist/Button/Button.js.map +1 -1
- package/dist/Caret/Caret.d.ts +1 -1
- package/dist/Cell/Cell.d.ts +19 -15
- package/dist/Cell/Cell.js +17 -29
- package/dist/Cell/Cell.js.map +1 -1
- package/dist/Clear/Clear.d.ts +5 -1
- package/dist/Clear/Clear.js +12 -2
- package/dist/Clear/Clear.js.map +1 -1
- package/dist/ClearableInput/ClearableInput.d.ts +1 -1
- package/dist/ClearableInput/ClearableInput.js +3 -4
- package/dist/ClearableInput/ClearableInput.js.map +1 -1
- package/dist/Clickable/Clickable.d.ts +1 -1
- package/dist/Clickable/Clickable.js +2 -7
- package/dist/Clickable/Clickable.js.map +1 -1
- package/dist/Confirm/Confirm.d.ts +1 -1
- package/dist/Confirm/useConfirm.d.ts +1 -1
- package/dist/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Dropdown/Dropdown.d.ts +3 -3
- package/dist/Ellipsis/Ellipsis.d.ts +1 -1
- package/dist/EmptyFrame/EmptyFrame.d.ts +1 -1
- package/dist/Expandable/Expandable.d.ts +1 -1
- package/dist/Field/Field.d.ts +2 -2
- package/dist/File/File.d.ts +1 -1
- package/dist/Flyout/Flyout.d.ts +2 -2
- package/dist/Grid/Grid.d.ts +1 -1
- package/dist/HTML/HTML.d.ts +1 -1
- package/dist/Image/Image.d.ts +1 -1
- package/dist/Input/Input.d.ts +7 -3
- package/dist/Input/Input.js +4 -15
- package/dist/Input/Input.js.map +1 -1
- package/dist/KeyValueEditor/KeyValueEditor.d.ts +3 -3
- package/dist/KeyValueInput/KeyValueInput.d.ts +1 -1
- package/dist/Loading/Loading.d.ts +1 -1
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Mono/Mono.d.ts +1 -1
- package/dist/MultiSelect/MultiSelect.d.ts +3 -3
- package/dist/MultiSelect/useMultiSelect.d.ts +1 -1
- package/dist/Pagination/Page.d.ts +1 -1
- package/dist/Pagination/Pagination.d.ts +1 -1
- package/dist/Pane/Pane.d.ts +1 -1
- package/dist/Pane/PaneHeader.d.ts +1 -1
- package/dist/Pane/PaneOption.d.ts +1 -1
- package/dist/Pill/Pill.d.ts +3 -16
- package/dist/Pill/Pill.js +2 -14
- package/dist/Pill/Pill.js.map +1 -1
- package/dist/Plus/Plus.d.ts +1 -1
- package/dist/Popper/Popper.d.ts +1 -1
- package/dist/Popper/usePopper.d.ts +1 -1
- package/dist/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/Remove/Remove.d.ts +1 -1
- package/dist/Remove/Remove.js +3 -1
- package/dist/Remove/Remove.js.map +1 -1
- package/dist/ResponsiveImage/ResponsiveImage.d.ts +1 -1
- package/dist/Select/Select.d.ts +3 -3
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Spinner/Spinner.d.ts +1 -1
- package/dist/Split/Split.d.ts +1 -1
- package/dist/Stack/Stack.d.ts +2 -2
- package/dist/Tag/Tag.d.ts +1 -1
- package/dist/Themer/useThemer.d.ts +1 -1
- package/dist/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Upload/Upload.d.ts +1 -1
- package/dist/hooks/useClickOutside.d.ts +1 -1
- package/dist/theme/theme.d.ts +4 -4
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A React UI library
|
|
4
4
|
|
|
5
|
-
[](https://github.com/semantic-release/semantic-release) [](https://www.npmjs.com/package/@auspices/eos) [](https://github.com/semantic-release/semantic-release) [](https://www.npmjs.com/package/@auspices/eos) [](https://dl.circleci.com/status-badge/redirect/gh/auspices/eos/tree/master)
|
|
6
6
|
|
|
7
7
|
## Meta
|
|
8
8
|
|
package/dist/Alert/Alert.d.ts
CHANGED
package/dist/Alerts/Alerts.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
export
|
|
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
|
-
|
|
8
|
+
type Message = {
|
|
9
9
|
body: Body;
|
|
10
10
|
ttl?: number;
|
|
11
11
|
};
|
|
12
|
-
|
|
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
|
|
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
|
-
|
|
3
|
+
type MaxDimensions = {
|
|
4
4
|
maxWidth?: number | "100%";
|
|
5
5
|
maxHeight?: number;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type AspectDimensions = {
|
|
8
8
|
aspectWidth: number;
|
|
9
9
|
aspectHeight: number;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type AspectRatioBoxProps = Omit<BoxProps, "maxWidth" | "maxHeight"> & AspectDimensions & MaxDimensions;
|
|
12
12
|
export declare const AspectRatioBox: React.FC<AspectRatioBoxProps>;
|
|
13
13
|
export {};
|
package/dist/Banner/Banner.d.ts
CHANGED
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
|
|
4
|
-
export
|
|
3
|
+
export type BoxSpatialProps = FlexboxProps & SpaceProps & PositionProps & LayoutProps;
|
|
4
|
+
export type TextColorProps = {
|
|
5
5
|
textColor?: ResponsiveValue<string>;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type TransitionProps = {
|
|
8
8
|
transition?: ResponsiveValue<string>;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
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;
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,22 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ClickableProps } from "../Clickable";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
alignItems: string;
|
|
6
|
-
justifyContent: string;
|
|
7
|
-
backgroundColor: string;
|
|
8
|
-
borderColor: string;
|
|
9
|
-
borderStyle: string;
|
|
10
|
-
borderWidth: string;
|
|
11
|
-
color: string;
|
|
12
|
-
fontFamily: string;
|
|
13
|
-
fontSize: number[];
|
|
14
|
-
lineHeight: number;
|
|
15
|
-
px: number;
|
|
16
|
-
py: number;
|
|
17
|
-
transition: string;
|
|
18
|
-
};
|
|
19
|
-
export declare type ButtonProps = ClickableProps & {
|
|
3
|
+
import { CellProps } from "../Cell";
|
|
4
|
+
export type ButtonProps = ClickableProps & CellProps & {
|
|
20
5
|
focus?: boolean;
|
|
21
6
|
hover?: boolean;
|
|
22
7
|
selected?: boolean;
|
|
@@ -26,13 +11,15 @@ export declare const buttonHoverMixin: import("styled-components").FlattenInterp
|
|
|
26
11
|
export declare const buttonFocusMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
27
12
|
export declare const buttonSelectedMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
28
13
|
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").
|
|
14
|
+
export declare const buttonHighlightedMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<ButtonProps, import("styled-components").DefaultTheme>>;
|
|
30
15
|
export declare const buttonMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<ButtonProps, import("styled-components").DefaultTheme>>;
|
|
31
16
|
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
17
|
children?: import("react").ReactNode;
|
|
33
18
|
} & {
|
|
34
19
|
cursor?: import("styled-system").ResponsiveValue<string, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
|
35
20
|
textDecoration?: import("styled-system").ResponsiveValue<string, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
|
21
|
+
} & {
|
|
22
|
+
variant?: "small" | "default" | undefined;
|
|
36
23
|
} & {
|
|
37
24
|
focus?: boolean | undefined;
|
|
38
25
|
hover?: boolean | undefined;
|
package/dist/Button/Button.js
CHANGED
|
@@ -3,17 +3,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
7
|
if (k2 === undefined) k2 = k;
|
|
19
8
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -38,18 +27,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
38
27
|
return result;
|
|
39
28
|
};
|
|
40
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.Button = exports.buttonMixin = exports.buttonHighlightedMixin = exports.buttonDisabledMixin = exports.buttonSelectedMixin = exports.buttonFocusMixin = exports.buttonHoverMixin =
|
|
30
|
+
exports.Button = exports.buttonMixin = exports.buttonHighlightedMixin = exports.buttonDisabledMixin = exports.buttonSelectedMixin = exports.buttonFocusMixin = exports.buttonHoverMixin = void 0;
|
|
42
31
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
43
32
|
var theme_get_1 = require("@styled-system/theme-get");
|
|
44
33
|
var Clickable_1 = require("../Clickable");
|
|
45
34
|
var Cell_1 = require("../Cell");
|
|
46
|
-
exports.BUTTON = __assign(__assign({}, Cell_1.CELL), { display: "inline-flex", alignItems: "center", justifyContent: "center" });
|
|
47
35
|
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
36
|
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
37
|
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
38
|
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)(
|
|
52
|
-
|
|
39
|
+
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) {
|
|
40
|
+
var variant = _a.variant;
|
|
41
|
+
if (variant !== "small") {
|
|
42
|
+
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"));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
exports.buttonMixin = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: box-shadow 250ms ease, color 200ms ease;\n min-width: 0;\n user-select: none;\n font-weight: normal;\n\n ", "\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:disabled {\n ", "\n }\n\n ", "\n\n ", "\n"], ["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: box-shadow 250ms ease, color 200ms ease;\n min-width: 0;\n user-select: none;\n font-weight: normal;\n\n ", "\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.cellMixin, function (_a) {
|
|
53
46
|
var hover = _a.hover;
|
|
54
47
|
return hover && exports.buttonHoverMixin;
|
|
55
48
|
}, exports.buttonHoverMixin, function (_a) {
|
|
@@ -60,13 +53,13 @@ exports.buttonMixin = (0, styled_components_1.css)(templateObject_7 || (template
|
|
|
60
53
|
return disabled && exports.buttonDisabledMixin;
|
|
61
54
|
}, exports.buttonDisabledMixin, function (_a) {
|
|
62
55
|
var selected = _a.selected;
|
|
63
|
-
return selected && (0, styled_components_1.css)(
|
|
56
|
+
return selected && (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", "\n\n &:focus {\n ", "\n }\n\n &:disabled {\n ", "\n }\n "], ["\n ", "\n\n &:focus {\n ", "\n }\n\n &:disabled {\n ", "\n }\n "])), exports.buttonSelectedMixin, exports.buttonSelectedMixin, exports.buttonSelectedMixin);
|
|
64
57
|
}, function (_a) {
|
|
65
58
|
var highlighted = _a.highlighted;
|
|
66
59
|
return highlighted && exports.buttonHighlightedMixin;
|
|
67
60
|
});
|
|
68
|
-
exports.Button = (0, styled_components_1.default)(Clickable_1.Clickable)(
|
|
69
|
-
exports.Button.defaultProps =
|
|
61
|
+
exports.Button = (0, styled_components_1.default)(Clickable_1.Clickable)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), exports.buttonMixin);
|
|
62
|
+
exports.Button.defaultProps = { variant: "default" };
|
|
70
63
|
exports.Button.displayName = "Button";
|
|
71
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
64
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
72
65
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/Button/Button.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/Button/Button.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,sDAAoD;AACpD,0CAAyD;AACzD,gCAA+D;AAUlD,QAAA,gBAAgB,OAAG,uBAAG,wFAAA,aACxB,EAA4B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AAQ,cAAA;IAAO,OAAA,QAAQ,IAAI,2BAAmB;AAA/B,CAA+B,EAE/C,2BAAmB,EAGrB,UAAC,EAAY;QAAV,QAAQ,cAAA;IACX,OAAA,QAAQ,QACR,uBAAG,+KAAA,UACC,EAAmB,+BAGjB,EAAmB,2CAInB,EAAmB,iBAExB,KATG,2BAAmB,EAGjB,2BAAmB,EAInB,2BAAmB,CAExB;AAXD,CAWC,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,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AAE7C,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC"}
|
package/dist/Caret/Caret.d.ts
CHANGED
package/dist/Cell/Cell.d.ts
CHANGED
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BoxProps } from "../Box";
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
+
};
|
|
15
|
+
type CellVariant = keyof typeof CELL_VARIANTS;
|
|
16
|
+
export type CellProps = BoxProps & {
|
|
17
|
+
variant?: CellVariant;
|
|
18
18
|
};
|
|
19
19
|
export declare const cellFocusMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
20
|
+
export declare const cellMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
20
21
|
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
22
|
children?: import("react").ReactNode;
|
|
23
|
+
} & {
|
|
24
|
+
variant?: "small" | "default" | undefined;
|
|
22
25
|
}, never>;
|
|
26
|
+
export {};
|
package/dist/Cell/Cell.js
CHANGED
|
@@ -3,17 +3,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
7
|
if (k2 === undefined) k2 = k;
|
|
19
8
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -38,28 +27,27 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
38
27
|
return result;
|
|
39
28
|
};
|
|
40
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.Cell = exports.cellFocusMixin = exports.
|
|
30
|
+
exports.Cell = exports.cellMixin = exports.cellFocusMixin = exports.CELL_VARIANTS = void 0;
|
|
42
31
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
32
|
+
var styled_system_1 = require("styled-system");
|
|
43
33
|
var theme_get_1 = require("@styled-system/theme-get");
|
|
44
34
|
var Box_1 = require("../Box");
|
|
45
|
-
exports.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
px: 6,
|
|
57
|
-
py: 4,
|
|
58
|
-
transition: "box-shadow 250ms ease",
|
|
35
|
+
exports.CELL_VARIANTS = {
|
|
36
|
+
default: {
|
|
37
|
+
fontSize: [2, 2, 3],
|
|
38
|
+
px: 6,
|
|
39
|
+
py: 4,
|
|
40
|
+
},
|
|
41
|
+
small: {
|
|
42
|
+
fontSize: [0, 0, 1],
|
|
43
|
+
px: 3,
|
|
44
|
+
py: 2,
|
|
45
|
+
},
|
|
59
46
|
};
|
|
60
47
|
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.
|
|
62
|
-
exports.Cell.
|
|
48
|
+
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);
|
|
49
|
+
exports.Cell = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n\n &:focus {\n ", "\n }\n"], ["\n ", "\n\n &:focus {\n ", "\n }\n"])), exports.cellMixin, exports.cellFocusMixin);
|
|
50
|
+
exports.Cell.defaultProps = { variant: "default" };
|
|
63
51
|
exports.Cell.displayName = "Cell";
|
|
64
|
-
var templateObject_1, templateObject_2;
|
|
52
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
65
53
|
//# sourceMappingURL=Cell.js.map
|
package/dist/Cell/Cell.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cell.js","sourceRoot":"","sources":["../../src/Cell/Cell.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Cell.js","sourceRoot":"","sources":["../../src/Cell/Cell.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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1
|
/// <reference types="react" />
|
|
2
2
|
import { RemoveProps } from "../Remove";
|
|
3
|
-
export
|
|
3
|
+
export type ClearProps = RemoveProps & {
|
|
4
|
+
variant?: "small" | "default";
|
|
5
|
+
};
|
|
4
6
|
export declare const clearHoverMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
5
7
|
export declare const clearFocusMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
6
8
|
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 & {
|
|
@@ -11,4 +13,6 @@ export declare const Clear: import("styled-components").StyledComponent<"button"
|
|
|
11
13
|
} & {
|
|
12
14
|
hover?: boolean | undefined;
|
|
13
15
|
focus?: boolean | undefined;
|
|
16
|
+
} & {
|
|
17
|
+
variant?: "small" | "default" | undefined;
|
|
14
18
|
}, never>;
|
package/dist/Clear/Clear.js
CHANGED
|
@@ -33,12 +33,22 @@ var theme_get_1 = require("@styled-system/theme-get");
|
|
|
33
33
|
var Remove_1 = require("../Remove");
|
|
34
34
|
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"));
|
|
35
35
|
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"));
|
|
36
|
-
exports.Clear = (0, styled_components_1.default)(Remove_1.Remove)(
|
|
36
|
+
exports.Clear = (0, styled_components_1.default)(Remove_1.Remove)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-radius: 50%;\n background-color: ", ";\n transition: color 250ms, 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: color 250ms, 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) {
|
|
37
|
+
var variant = _a.variant;
|
|
38
|
+
if (variant === "small") {
|
|
39
|
+
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"));
|
|
40
|
+
}
|
|
41
|
+
return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __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.6"), (0, theme_get_1.themeGet)("space.6"), (0, theme_get_1.themeGet)("space.4"));
|
|
42
|
+
}, function (_a) {
|
|
37
43
|
var hover = _a.hover;
|
|
38
44
|
return hover && exports.clearHoverMixin;
|
|
39
45
|
}, exports.clearHoverMixin, function (_a) {
|
|
40
46
|
var focus = _a.focus;
|
|
41
47
|
return focus && exports.clearFocusMixin;
|
|
42
48
|
}, exports.clearFocusMixin);
|
|
43
|
-
|
|
49
|
+
exports.Clear.displayName = "Clear";
|
|
50
|
+
exports.Clear.defaultProps = {
|
|
51
|
+
variant: "default",
|
|
52
|
+
};
|
|
53
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
44
54
|
//# sourceMappingURL=Clear.js.map
|
package/dist/Clear/Clear.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Clear.js","sourceRoot":"","sources":["../../src/Clear/Clear.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,sDAAoD;AACpD,oCAAgD;AAInC,QAAA,eAAe,OAAG,uBAAG,mKAAA,wBACZ,EAA2B,yDAIzB,EAA0B,UAEjD,KANqB,IAAA,oBAAQ,EAAC,iBAAiB,CAAC,EAIzB,IAAA,oBAAQ,EAAC,gBAAgB,CAAC,EAEhD;AAEW,QAAA,eAAe,OAAG,uBAAG,qMAAA,6CAGV,EAA2B,+DAIzB,EAA0B,i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DAItB,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,EAEnB;AAEF,aAAK,CAAC,WAAW,GAAG,OAAO,CAAC;AAE5B,aAAK,CAAC,YAAY,GAAG;IACnB,OAAO,EAAE,SAAS;CACnB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { InputProps } from "../Input";
|
|
3
3
|
import { BoxSpatialProps } from "../Box";
|
|
4
|
-
export
|
|
4
|
+
export type ClearableInputProps = BoxSpatialProps & Omit<InputProps, "onChange" | "value"> & {
|
|
5
5
|
onChange?(value: string): void;
|
|
6
6
|
onClear?(): void;
|
|
7
7
|
value?: string;
|
|
@@ -70,7 +70,6 @@ var compose_react_refs_1 = __importDefault(require("@seznam/compose-react-refs")
|
|
|
70
70
|
var Input_1 = require("../Input");
|
|
71
71
|
var Box_1 = require("../Box");
|
|
72
72
|
var Clear_1 = require("../Clear");
|
|
73
|
-
var Cell_1 = require("../Cell");
|
|
74
73
|
var theme_1 = require("../theme");
|
|
75
74
|
var CLEARABLE_BUTTON_WITH_MARGINS = "".concat(parseFloat((0, theme_1.space)(4)) * 2 + parseFloat((0, theme_1.space)(6))).concat(theme_1.SPACE_SCALE_UNIT);
|
|
76
75
|
exports.ClearableInput = react_1.default.forwardRef(function (_a, forwardedRef) {
|
|
@@ -80,7 +79,7 @@ exports.ClearableInput = react_1.default.forwardRef(function (_a, forwardedRef)
|
|
|
80
79
|
_b = _a.value,
|
|
81
80
|
// Above are spatial props for wrapper, remainder
|
|
82
81
|
// is split off into input
|
|
83
|
-
value = _b === void 0 ? "" : _b, onChange = _a.onChange, onClear = _a.onClear, rest = __rest(_a, ["m", "mt", "mr", "mb", "ml", "minWidth", "width", "flex", "flexGrow", "flexShrink", "flexBasis", "value", "onChange", "onClear"]);
|
|
82
|
+
value = _b === void 0 ? "" : _b, onChange = _a.onChange, onClear = _a.onClear, variant = _a.variant, rest = __rest(_a, ["m", "mt", "mr", "mb", "ml", "minWidth", "width", "flex", "flexGrow", "flexShrink", "flexBasis", "value", "onChange", "onClear", "variant"]);
|
|
84
83
|
var ref = (0, react_1.useRef)(null);
|
|
85
84
|
var _c = __read((0, react_1.useState)(value), 2), controlledValue = _c[0], setValue = _c[1];
|
|
86
85
|
var handleClick = (0, react_1.useCallback)(function () {
|
|
@@ -108,8 +107,8 @@ exports.ClearableInput = react_1.default.forwardRef(function (_a, forwardedRef)
|
|
|
108
107
|
flexShrink: flexShrink,
|
|
109
108
|
flexBasis: flexBasis,
|
|
110
109
|
}),
|
|
111
|
-
react_1.default.createElement(Input_1.Input, __assign({}, rest, { ref: (0, compose_react_refs_1.default)(ref, forwardedRef), width: "100%", value: controlledValue, onChange: handleChange,
|
|
112
|
-
controlledValue && (react_1.default.createElement(Clear_1.Clear, { onClick: handleClick, position: "absolute", top: "50%", right: 0, mx: 4, backgroundColor: "hint", borderRadius: "50%", type: "reset", style: { transform: "translateY(-50%)" } }))));
|
|
110
|
+
react_1.default.createElement(Input_1.Input, __assign({}, rest, { ref: (0, compose_react_refs_1.default)(ref, forwardedRef), variant: variant, width: "100%", value: controlledValue, onChange: handleChange, pr: CLEARABLE_BUTTON_WITH_MARGINS })),
|
|
111
|
+
controlledValue && (react_1.default.createElement(Clear_1.Clear, { variant: variant, onClick: handleClick, position: "absolute", top: "50%", right: 0, mx: 4, backgroundColor: "hint", borderRadius: "50%", type: "reset", style: { transform: "translateY(-50%)" } }))));
|
|
113
112
|
});
|
|
114
113
|
exports.ClearableInput.displayName = "ClearableInput";
|
|
115
114
|
//# sourceMappingURL=ClearableInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClearableInput.js","sourceRoot":"","sources":["../../src/ClearableInput/ClearableInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6D;AAC7D,kFAAqD;AACrD,kCAA6C;AAC7C,8BAA8C;AAC9C,kCAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"ClearableInput.js","sourceRoot":"","sources":["../../src/ClearableInput/ClearableInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6D;AAC7D,kFAAqD;AACrD,kCAA6C;AAC7C,8BAA8C;AAC9C,kCAAiC;AACjC,kCAAmD;AAEnD,IAAM,6BAA6B,GAAG,UACpC,UAAU,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,SAC9C,wBAAgB,CAAE,CAAC;AAST,QAAA,cAAc,GAAG,eAAK,CAAC,UAAU,CAC5C,UACE,EAmBsB,EACtB,YAAyC;IAnBvC,IAAA,CAAC,OAAA,EACD,EAAE,QAAA,EACF,EAAE,QAAA,EACF,EAAE,QAAA,EACF,EAAE,QAAA,EACF,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,IAAI,UAAA,EACJ,QAAQ,cAAA,EACR,UAAU,gBAAA,EACV,SAAS,eAAA;IACT,iDAAiD;IACjD,0BAA0B;IAC1B,aAAU;IAFV,iDAAiD;IACjD,0BAA0B;IAC1B,KAAK,mBAAG,EAAE,KAAA,EACV,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,OAAO,aAAA,EACJ,IAAI,cAlBT,4IAmBC,CADQ;I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OAAO,EAAE,WAAW,EACpB,QAAQ,EAAC,UAAU,EACnB,GAAG,EAAC,KAAK,EACT,KAAK,EAAE,CAAC,EACR,EAAE,EAAE,CAAC,EACL,eAAe,EAAC,MAAM,EACtB,YAAY,EAAC,KAAK,EAClB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,EAAE,SAAS,EAAE,kBAAkB,EAAE,GACxC,CACH,CACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,sBAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ResponsiveValue } from "styled-system";
|
|
3
3
|
import { BoxProps } from "../Box";
|
|
4
|
-
export
|
|
4
|
+
export type ClickableProps = React.ButtonHTMLAttributes<HTMLButtonElement> & BoxProps & {
|
|
5
5
|
cursor?: ResponsiveValue<string>;
|
|
6
6
|
textDecoration?: ResponsiveValue<string>;
|
|
7
7
|
};
|
|
@@ -8,17 +8,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.Clickable = void 0;
|
|
11
|
+
var theme_get_1 = __importDefault(require("@styled-system/theme-get"));
|
|
11
12
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
13
|
var styled_system_1 = require("styled-system");
|
|
13
14
|
var Box_1 = require("../Box");
|
|
14
15
|
var cursor = (0, styled_system_1.system)({ cursor: true });
|
|
15
16
|
var textDecoration = (0, styled_system_1.system)({ textDecoration: true });
|
|
16
|
-
exports.Clickable = styled_components_1.default.button(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n appearance: none;\n padding: 0;\n border: 0;\n background-color: transparent;\n ", "\n"], ["\n appearance: none;\n padding: 0;\n border: 0;\n background-color: transparent;\n ", "\n"])), (0, styled_system_1.compose)(Box_1.boxMixin, cursor, textDecoration));
|
|
17
|
-
exports.Clickable.defaultProps = {
|
|
18
|
-
fontFamily: "body",
|
|
19
|
-
fontSize: 2,
|
|
20
|
-
lineHeight: 0,
|
|
21
|
-
color: "primary",
|
|
22
|
-
};
|
|
17
|
+
exports.Clickable = styled_components_1.default.button(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n appearance: none;\n padding: 0;\n border: 0;\n background-color: transparent;\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n\n ", "\n"], ["\n appearance: none;\n padding: 0;\n border: 0;\n background-color: transparent;\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n\n ", "\n"])), (0, theme_get_1.default)("fonts.body"), (0, theme_get_1.default)("fontSizes.2"), (0, theme_get_1.default)("lineHeights.0"), (0, theme_get_1.default)("colors.primary"), (0, styled_system_1.compose)(Box_1.boxMixin, cursor, textDecoration));
|
|
23
18
|
var templateObject_1;
|
|
24
19
|
//# sourceMappingURL=Clickable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Clickable.js","sourceRoot":"","sources":["../../src/Clickable/Clickable.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAuC;AACvC,+CAAiE;AACjE,8BAA4C;AAE5C,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,
|
|
1
|
+
{"version":3,"file":"Clickable.js","sourceRoot":"","sources":["../../src/Clickable/Clickable.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,uEAAgD;AAChD,wEAAuC;AACvC,+CAAiE;AACjE,8BAA4C;AAE5C,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,qPAAgB,uGAKrC,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"}
|
|
@@ -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
|
|
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
|
|
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
|
|
5
|
-
export
|
|
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
|
|
9
|
+
export type DropdownProps = BoxProps & {
|
|
10
10
|
label: string | JSX.Element | ((anchorProps: {
|
|
11
11
|
open: boolean;
|
|
12
12
|
ref: React.MutableRefObject<HTMLButtonElement | null>;
|