@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/dist/Field/Field.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { InputProps } from "../Input";
|
|
3
3
|
import { SplitProps } from "../Split";
|
|
4
|
-
|
|
4
|
+
type RequiredProps = Omit<SplitProps, "children"> & {
|
|
5
5
|
label: React.ReactNode;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type FieldProps = RequiredProps & ({
|
|
8
8
|
input: InputProps;
|
|
9
9
|
} | {
|
|
10
10
|
children: JSX.Element | string | null;
|
package/dist/File/File.d.ts
CHANGED
package/dist/Flyout/Flyout.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { PaneOptionProps } from "../Pane";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type FlyoutPaneOptions = React.ReactElement<PaneOptionProps> | React.ReactElement<PaneOptionProps>[];
|
|
4
|
+
export type FlyoutProps = PaneOptionProps & {
|
|
5
5
|
label: string | JSX.Element;
|
|
6
6
|
children: FlyoutPaneOptions;
|
|
7
7
|
open?: boolean;
|
package/dist/Grid/Grid.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { GridProps as SystemGridProps, ResponsiveValue } from "styled-system";
|
|
3
3
|
import { BoxProps } from "../Box";
|
|
4
|
-
export
|
|
4
|
+
export type GridProps = SystemGridProps & BoxProps & {
|
|
5
5
|
cellSize?: ResponsiveValue<number | string>;
|
|
6
6
|
cellGap?: number | string;
|
|
7
7
|
};
|
package/dist/HTML/HTML.d.ts
CHANGED
package/dist/Image/Image.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const imgMixin: import("styled-components").FlattenSimpleInterpol
|
|
|
9
9
|
export declare const Img: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {
|
|
10
10
|
mode: Mode;
|
|
11
11
|
}, never>;
|
|
12
|
-
export
|
|
12
|
+
export type ImageProps = Omit<React.ImgHTMLAttributes<HTMLImageElement>, "src"> & BoxProps & {
|
|
13
13
|
srcs: string[];
|
|
14
14
|
onError?(): void;
|
|
15
15
|
onLoad?(): void;
|
package/dist/Input/Input.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
2
|
+
import { CellProps } from "../Cell";
|
|
3
|
+
export type InputProps = React.InputHTMLAttributes<HTMLInputElement> & CellProps & {
|
|
4
4
|
focus?: boolean;
|
|
5
5
|
hover?: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare const inputFocusMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
8
8
|
export declare const inputHoverMixin: import("styled-components").FlattenSimpleInterpolation;
|
|
9
9
|
export declare const inputMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<InputProps, import("styled-components").DefaultTheme>>;
|
|
10
|
-
export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, import("react").InputHTMLAttributes<HTMLInputElement> & BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> &
|
|
10
|
+
export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, import("react").InputHTMLAttributes<HTMLInputElement> & 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
|
+
children?: import("react").ReactNode;
|
|
12
|
+
} & {
|
|
13
|
+
variant?: "small" | "default" | undefined;
|
|
14
|
+
} & {
|
|
11
15
|
focus?: boolean | undefined;
|
|
12
16
|
hover?: boolean | undefined;
|
|
13
17
|
}, never>;
|
package/dist/Input/Input.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);
|
|
@@ -40,12 +29,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
40
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
30
|
exports.Input = exports.inputMixin = exports.inputHoverMixin = exports.inputFocusMixin = void 0;
|
|
42
31
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
43
|
-
var styled_system_1 = require("styled-system");
|
|
44
32
|
var Cell_1 = require("../Cell");
|
|
45
|
-
var systemProps = (0, styled_system_1.compose)(styled_system_1.border, styled_system_1.flexbox, styled_system_1.space, styled_system_1.typography, styled_system_1.layout, styled_system_1.color);
|
|
46
33
|
exports.inputFocusMixin = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n\n ::placeholder {\n text-decoration: underline;\n }\n"], ["\n ", ";\n\n ::placeholder {\n text-decoration: underline;\n }\n"])), Cell_1.cellFocusMixin);
|
|
47
34
|
exports.inputHoverMixin = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ::placeholder {\n text-decoration: underline;\n }\n"], ["\n ::placeholder {\n text-decoration: underline;\n }\n"])));
|
|
48
|
-
exports.inputMixin = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n appearance: none;\n border-radius: 0;\n margin: 0;\n transition: box-shadow 250ms ease;\n
|
|
35
|
+
exports.inputMixin = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n appearance: none;\n border-radius: 0;\n margin: 0;\n transition: box-shadow 250ms ease;\n background-color: transparent;\n\n ", "\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:hover {\n ", "\n }\n\n &:autofill {\n font-size: 1rem;\n }\n"], ["\n appearance: none;\n border-radius: 0;\n margin: 0;\n transition: box-shadow 250ms ease;\n background-color: transparent;\n\n ", "\n\n ", "\n &:focus {\n ", "\n }\n\n ", "\n &:hover {\n ", "\n }\n\n &:autofill {\n font-size: 1rem;\n }\n"])), Cell_1.cellMixin, function (_a) {
|
|
49
36
|
var focus = _a.focus;
|
|
50
37
|
return focus && exports.inputFocusMixin;
|
|
51
38
|
}, exports.inputFocusMixin, function (_a) {
|
|
@@ -53,6 +40,8 @@ exports.inputMixin = (0, styled_components_1.css)(templateObject_3 || (templateO
|
|
|
53
40
|
return hover && exports.inputHoverMixin;
|
|
54
41
|
}, exports.inputHoverMixin);
|
|
55
42
|
exports.Input = styled_components_1.default.input(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), exports.inputMixin);
|
|
56
|
-
exports.Input.defaultProps =
|
|
43
|
+
exports.Input.defaultProps = {
|
|
44
|
+
variant: "default",
|
|
45
|
+
};
|
|
57
46
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
58
47
|
//# sourceMappingURL=Input.js.map
|
package/dist/Input/Input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../src/Input/Input.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../src/Input/Input.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,gCAA+D;AAQlD,QAAA,eAAe,OAAG,uBAAG,4IAAA,MAC9B,EAAc,gEAKjB,KALG,qBAAc,EAKhB;AAEW,QAAA,eAAe,OAAG,uBAAG,iIAAA,6DAIjC,KAAC;AAEW,QAAA,UAAU,OAAG,uBAAG,2UAAY,wIAOrC,EAAS,QAET,EAAuC,qBAErC,EAAe,aAGjB,EAAuC,qBAErC,EAAe,sDAMpB,KAfG,gBAAS,EAET,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,EAMnB;AAEW,QAAA,KAAK,GAAG,2BAAM,CAAC,KAAK,+EAAY,MACzC,EAAU,IACb,KADG,kBAAU,EACZ;AAEF,aAAK,CAAC,YAAY,GAAG;IACnB,OAAO,EAAE,SAAS;CACnB,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { StackProps } from "../Stack";
|
|
3
|
-
export
|
|
3
|
+
export type KeyValueSchema = {
|
|
4
4
|
key: string;
|
|
5
5
|
name: string;
|
|
6
6
|
type: "string" | "number";
|
|
7
7
|
}[];
|
|
8
|
-
export
|
|
8
|
+
export type KeyValueData = Record<string, string>;
|
|
9
9
|
export declare const toSchema: (data: KeyValueData) => KeyValueSchema;
|
|
10
|
-
export
|
|
10
|
+
export type KeyValueEditorProps = Omit<StackProps, "onChange"> & {
|
|
11
11
|
schema: KeyValueSchema;
|
|
12
12
|
data: KeyValueData;
|
|
13
13
|
onChange?(data: KeyValueData): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { InputProps } from "../Input";
|
|
3
3
|
import { SplitProps } from "../Split";
|
|
4
|
-
export
|
|
4
|
+
export type KeyValueInputProps = Omit<SplitProps, "children"> & {
|
|
5
5
|
k: InputProps;
|
|
6
6
|
v?: InputProps;
|
|
7
7
|
};
|
package/dist/Modal/Modal.d.ts
CHANGED
package/dist/Mono/Mono.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BoxProps } from "../Box";
|
|
3
|
-
export
|
|
3
|
+
export type MonoProps = BoxProps;
|
|
4
4
|
export declare const Mono: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & Omit<import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "color"> & import("../Box").TextColorProps & import("../Box").TransitionProps & {
|
|
5
5
|
children?: import("react").ReactNode;
|
|
6
6
|
}, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type MultiSelectPayload = Record<string, unknown>;
|
|
3
|
+
export type MultiSelectItem = {
|
|
4
4
|
id: string;
|
|
5
5
|
payload: MultiSelectPayload;
|
|
6
6
|
};
|
|
@@ -10,7 +10,7 @@ export declare const MultiSelectContext: React.Context<{
|
|
|
10
10
|
deselect(id: string, payload?: MultiSelectPayload): void;
|
|
11
11
|
isWrapped: boolean;
|
|
12
12
|
}>;
|
|
13
|
-
export
|
|
13
|
+
export type MultiSelectProps = {
|
|
14
14
|
onChange?(selection: MultiSelectItem[], payload?: MultiSelectPayload): void;
|
|
15
15
|
};
|
|
16
16
|
export declare const MultiSelect: React.FC<MultiSelectProps>;
|
package/dist/Pane/Pane.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { StackProps } from "../Stack";
|
|
3
|
-
export
|
|
3
|
+
export type PaneProps = StackProps & React.HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
onEnter?(): void;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BoxProps } from "../Box";
|
|
3
|
-
export
|
|
3
|
+
export type PaneHeaderProps = BoxProps;
|
|
4
4
|
export declare const PaneHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & Omit<import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "color"> & import("../Box").TextColorProps & import("../Box").TransitionProps & {
|
|
5
5
|
children?: import("react").ReactNode;
|
|
6
6
|
}, never>;
|
package/dist/Pill/Pill.d.ts
CHANGED
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CellProps } from "../Cell";
|
|
3
|
-
export
|
|
4
|
-
export declare const PILL: {
|
|
5
|
-
alignItems: string;
|
|
6
|
-
backgroundColor: string;
|
|
7
|
-
borderColor: string;
|
|
8
|
-
borderStyle: string;
|
|
9
|
-
borderWidth: string;
|
|
10
|
-
color: string;
|
|
11
|
-
display: string;
|
|
12
|
-
fontFamily: string;
|
|
13
|
-
fontSize: number[];
|
|
14
|
-
lineHeight: number;
|
|
15
|
-
px: number;
|
|
16
|
-
py: number;
|
|
17
|
-
transition: string;
|
|
18
|
-
};
|
|
3
|
+
export type PillProps = CellProps;
|
|
19
4
|
export declare const pillFocusMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
20
5
|
export declare const Pill: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & Omit<import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "color"> & import("..").TextColorProps & import("..").TransitionProps & {
|
|
21
6
|
children?: import("react").ReactNode;
|
|
7
|
+
} & {
|
|
8
|
+
variant?: "small" | "default" | undefined;
|
|
22
9
|
}, never>;
|
package/dist/Pill/Pill.js
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.Pill = exports.pillFocusMixin =
|
|
3
|
+
exports.Pill = exports.pillFocusMixin = void 0;
|
|
15
4
|
// Aliases to Cell
|
|
16
5
|
var Cell_1 = require("../Cell");
|
|
17
|
-
exports.PILL = __assign({}, Cell_1.CELL);
|
|
18
6
|
exports.pillFocusMixin = Cell_1.cellFocusMixin;
|
|
19
7
|
exports.Pill = Cell_1.Cell;
|
|
20
|
-
exports.Pill.defaultProps =
|
|
8
|
+
exports.Pill.defaultProps = Cell_1.Cell.defaultProps;
|
|
21
9
|
//# sourceMappingURL=Pill.js.map
|
package/dist/Pill/Pill.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pill.js","sourceRoot":"","sources":["../../src/Pill/Pill.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Pill.js","sourceRoot":"","sources":["../../src/Pill/Pill.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AAClB,gCAA0D;AAG7C,QAAA,cAAc,GAAG,qBAAc,CAAC;AAChC,QAAA,IAAI,GAAG,WAAI,CAAC;AAEzB,YAAI,CAAC,YAAY,GAAG,WAAI,CAAC,YAAY,CAAC"}
|
package/dist/Plus/Plus.d.ts
CHANGED
package/dist/Popper/Popper.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Placement, StrictModifiers } from "@popperjs/core";
|
|
3
3
|
import { UseClickOutside } from "../hooks/useClickOutside";
|
|
4
|
-
export
|
|
4
|
+
export type UsePopper = {
|
|
5
5
|
open?: boolean;
|
|
6
6
|
distance?: number;
|
|
7
7
|
placement?: Placement;
|
package/dist/Remove/Remove.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const Ex: import("styled-components").StyledComponent<"div", impo
|
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const removeFocusMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
8
8
|
export declare const removeHoverMixin: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
9
|
-
export
|
|
9
|
+
export type RemoveProps = ClickableProps & {
|
|
10
10
|
hover?: boolean;
|
|
11
11
|
focus?: boolean;
|
|
12
12
|
};
|
package/dist/Remove/Remove.js
CHANGED
|
@@ -34,6 +34,7 @@ var Clickable_1 = require("../Clickable");
|
|
|
34
34
|
var Box_1 = require("../Box");
|
|
35
35
|
exports.exMixin = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n transition: color 250ms;\n\n &::before,\n &::after {\n content: \"\";\n display: block;\n width: ", ";\n height: 2px;\n position: absolute;\n top: 50%;\n left: 50%;\n background-color: currentColor;\n }\n\n &::before {\n transform: translate(-50%, -50%) rotate(45deg);\n }\n\n &::after {\n transform: translate(-50%, -50%) rotate(-45deg);\n }\n"], ["\n transition: color 250ms;\n\n &::before,\n &::after {\n content: \"\";\n display: block;\n width: ", ";\n height: 2px;\n position: absolute;\n top: 50%;\n left: 50%;\n background-color: currentColor;\n }\n\n &::before {\n transform: translate(-50%, -50%) rotate(45deg);\n }\n\n &::after {\n transform: translate(-50%, -50%) rotate(-45deg);\n }\n"])), (0, theme_get_1.themeGet)("space.5"));
|
|
36
36
|
exports.Ex = (0, styled_components_1.default)(Box_1.Box)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n min-width: ", ";\n min-height: ", ";\n ", "\n"], ["\n min-width: ", ";\n min-height: ", ";\n ", "\n"])), (0, theme_get_1.themeGet)("space.7"), (0, theme_get_1.themeGet)("space.7"), exports.exMixin);
|
|
37
|
+
exports.Ex.displayName = "Ex";
|
|
37
38
|
exports.Ex.defaultProps = {
|
|
38
39
|
position: "relative",
|
|
39
40
|
display: "inline-flex",
|
|
@@ -41,13 +42,14 @@ exports.Ex.defaultProps = {
|
|
|
41
42
|
};
|
|
42
43
|
exports.removeFocusMixin = (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n outline: 0;\n color: ", ";\n"], ["\n outline: 0;\n color: ", ";\n"])), (0, theme_get_1.themeGet)("colors.primary"));
|
|
43
44
|
exports.removeHoverMixin = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), (0, theme_get_1.themeGet)("colors.primary"));
|
|
44
|
-
exports.Remove = (0, styled_components_1.default)(Clickable_1.Clickable)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n min-width: ", ";\n min-height: ", ";\n cursor: pointer;\n color: ", ";\n ", "\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n"], ["\n min-width: ", ";\n min-height: ", ";\n cursor: pointer;\n color: ", ";\n ", "\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n"])), (0, theme_get_1.themeGet)("space.7"), (0, theme_get_1.themeGet)("space.7"), (0, theme_get_1.themeGet)("colors.tertiary"), exports.exMixin, function (_a) {
|
|
45
|
+
exports.Remove = (0, styled_components_1.default)(Clickable_1.Clickable)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n min-width: ", ";\n min-height: ", ";\n cursor: pointer;\n color: ", ";\n\n ", "\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n"], ["\n min-width: ", ";\n min-height: ", ";\n cursor: pointer;\n color: ", ";\n\n ", "\n\n ", "\n &:hover {\n ", "\n }\n\n ", "\n &:focus {\n ", "\n }\n"])), (0, theme_get_1.themeGet)("space.7"), (0, theme_get_1.themeGet)("space.7"), (0, theme_get_1.themeGet)("colors.tertiary"), exports.exMixin, function (_a) {
|
|
45
46
|
var hover = _a.hover;
|
|
46
47
|
return hover && exports.removeHoverMixin;
|
|
47
48
|
}, exports.removeHoverMixin, function (_a) {
|
|
48
49
|
var focus = _a.focus;
|
|
49
50
|
return focus && exports.removeHoverMixin;
|
|
50
51
|
}, exports.removeFocusMixin);
|
|
52
|
+
exports.Remove.displayName = "Remove";
|
|
51
53
|
exports.Remove.defaultProps = {
|
|
52
54
|
position: "relative",
|
|
53
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Remove.js","sourceRoot":"","sources":["../../src/Remove/Remove.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,sDAAoD;AACpD,0CAAyD;AACzD,8BAA6B;AAEhB,QAAA,OAAO,OAAG,uBAAG,ucAAA,kHAOb,EAAmB,+QAe/B,KAfY,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAe9B;AAEW,QAAA,EAAE,GAAG,IAAA,2BAAM,EAAC,SAAG,CAAC,wHAAA,iBACd,EAAmB,mBAClB,EAAmB,OAC/B,EAAO,IACV,KAHc,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAClB,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAC/B,eAAO,EACT;AAEF,UAAE,CAAC,YAAY,GAAG;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,aAAa;IACtB,KAAK,EAAE,UAAU;CAClB,CAAC;AAEW,QAAA,gBAAgB,OAAG,uBAAG,uGAAA,4BAExB,EAA0B,KACpC,KADU,IAAA,oBAAQ,EAAC,gBAAgB,CAAC,EACnC;AACW,QAAA,gBAAgB,OAAG,uBAAG,wFAAA,aACxB,EAA0B,KACpC,KADU,IAAA,oBAAQ,EAAC,gBAAgB,CAAC,EACnC;AAOW,QAAA,MAAM,GAAG,IAAA,2BAAM,EAAC,qBAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"Remove.js","sourceRoot":"","sources":["../../src/Remove/Remove.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAgD;AAChD,sDAAoD;AACpD,0CAAyD;AACzD,8BAA6B;AAEhB,QAAA,OAAO,OAAG,uBAAG,ucAAA,kHAOb,EAAmB,+QAe/B,KAfY,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAe9B;AAEW,QAAA,EAAE,GAAG,IAAA,2BAAM,EAAC,SAAG,CAAC,wHAAA,iBACd,EAAmB,mBAClB,EAAmB,OAC/B,EAAO,IACV,KAHc,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAClB,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAC/B,eAAO,EACT;AAEF,UAAE,CAAC,WAAW,GAAG,IAAI,CAAC;AAEtB,UAAE,CAAC,YAAY,GAAG;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,aAAa;IACtB,KAAK,EAAE,UAAU;CAClB,CAAC;AAEW,QAAA,gBAAgB,OAAG,uBAAG,uGAAA,4BAExB,EAA0B,KACpC,KADU,IAAA,oBAAQ,EAAC,gBAAgB,CAAC,EACnC;AACW,QAAA,gBAAgB,OAAG,uBAAG,wFAAA,aACxB,EAA0B,KACpC,KADU,IAAA,oBAAQ,EAAC,gBAAgB,CAAC,EACnC;AAOW,QAAA,MAAM,GAAG,IAAA,2BAAM,EAAC,qBAAS,CAAC,0OAAa,iBACrC,EAAmB,mBAClB,EAAmB,kCAExB,EAA2B,SAElC,EAAO,QAEP,EAAwC,qBAEtC,EAAgB,aAGlB,EAAwC,qBAEtC,EAAgB,SAErB,KAhBc,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAClB,IAAA,oBAAQ,EAAC,SAAS,CAAC,EAExB,IAAA,oBAAQ,EAAC,iBAAiB,CAAC,EAElC,eAAO,EAEP,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,IAAI,wBAAgB;AAAzB,CAAyB,EAEtC,wBAAgB,EAGlB,UAAC,EAAS;QAAP,KAAK,WAAA;IAAO,OAAA,KAAK,IAAI,wBAAgB;AAAzB,CAAyB,EAEtC,wBAAgB,EAEpB;AAEF,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAE9B,cAAM,CAAC,YAAY,GAAG;IACpB,QAAQ,EAAE,UAAU;CACrB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ImageProps } from "../Image";
|
|
3
3
|
import { AspectRatioBoxProps } from "../AspectRatioBox";
|
|
4
|
-
export
|
|
4
|
+
export type ResponsiveImageProps = ImageProps & AspectRatioBoxProps & {
|
|
5
5
|
indicator?: boolean;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
};
|
package/dist/Select/Select.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DropdownProps } from "../Dropdown";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type SelectValue = string | number | boolean | null;
|
|
4
|
+
export type SelectOption = {
|
|
5
5
|
label: string;
|
|
6
6
|
value: SelectValue;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type SelectProps = Omit<DropdownProps, "children"> & {
|
|
9
9
|
options: SelectOption[];
|
|
10
10
|
value?: SelectValue;
|
|
11
11
|
onChange?(value: SelectValue): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BoxProps } from "../Box";
|
|
3
|
-
export
|
|
3
|
+
export type SkeletonProps = BoxProps;
|
|
4
4
|
export declare const Skeleton: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> & import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> & import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & Omit<import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, "color"> & import("../Box").TextColorProps & import("../Box").TransitionProps & {
|
|
5
5
|
children?: import("react").ReactNode;
|
|
6
6
|
}, never>;
|
package/dist/Split/Split.d.ts
CHANGED
package/dist/Stack/Stack.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { BoxProps } from "../Box";
|
|
3
|
-
|
|
3
|
+
type Direction = "vertical" | "horizontal";
|
|
4
4
|
export declare const DEFAULT_STACK_SPACING = "-1px";
|
|
5
5
|
export declare const DEFAULT_STACK_DIRECTION: Direction;
|
|
6
|
-
export
|
|
6
|
+
export type StackProps = BoxProps & {
|
|
7
7
|
spacing?: number | string;
|
|
8
8
|
direction?: Direction | Direction[];
|
|
9
9
|
children?: React.ReactNode;
|
package/dist/Tag/Tag.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Box, BoxProps } from "../Box";
|
|
3
|
-
export
|
|
3
|
+
export type TagProps = Omit<BoxProps, "bg" | "backgroundColor" | "children"> & {
|
|
4
4
|
bg?: string;
|
|
5
5
|
backgroundColor?: string;
|
|
6
6
|
children: string | JSX.Element;
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { Box, BoxProps } from "../Box";
|
|
3
3
|
import { Placement } from "../Popper";
|
|
4
4
|
export declare const Tip: typeof Box;
|
|
5
|
-
export
|
|
5
|
+
export type TooltipProps = BoxProps & {
|
|
6
6
|
children: JSX.Element;
|
|
7
7
|
label: JSX.Element | string;
|
|
8
8
|
placement?: Placement;
|
package/dist/Upload/Upload.d.ts
CHANGED
package/dist/theme/theme.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Constants = {
|
|
2
2
|
black: "black";
|
|
3
3
|
white: "white";
|
|
4
4
|
};
|
|
5
5
|
export declare const CONSTANTS: Constants;
|
|
6
|
-
export
|
|
6
|
+
export type ColorScheme = {
|
|
7
7
|
primary: string;
|
|
8
8
|
border: string;
|
|
9
9
|
secondary: string;
|
|
@@ -20,7 +20,7 @@ export declare const SCHEMES: {
|
|
|
20
20
|
dark: ColorScheme;
|
|
21
21
|
light: ColorScheme;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type Scheme = keyof typeof SCHEMES;
|
|
24
24
|
export declare const SPACE_SCALE: readonly ["0", "0.125rem", "0.25rem", "0.5rem", "0.75rem", "1rem", "1.5rem", "2rem", "4rem", "8rem", "16rem"];
|
|
25
25
|
export declare const SPACE_SCALE_UNIT = "rem";
|
|
26
26
|
export declare const FONT_SCALE: readonly ["0.75rem", "0.875rem", "1rem", "1.125rem", "1.5rem", "2rem"];
|
|
@@ -41,4 +41,4 @@ export declare const THEME: {
|
|
|
41
41
|
space: readonly ["0", "0.125rem", "0.25rem", "0.5rem", "0.75rem", "1rem", "1.5rem", "2rem", "4rem", "8rem", "16rem"];
|
|
42
42
|
breakpoints: string[];
|
|
43
43
|
};
|
|
44
|
-
export
|
|
44
|
+
export type Theme = typeof THEME;
|