colibri-ui 0.7.7 → 0.7.9
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/Button/index.props.d.ts +5 -9
- package/Button/index.props.js +0 -6
- package/Button/styles.d.ts +2 -2
- package/Button/styles.js +13 -7
- package/Checkbox/index.js +48 -0
- package/Checkbox/index.props.d.ts +2 -2
- package/Checkbox/styles.js +61 -0
- package/Grid/Item/index.d.ts +4 -0
- package/Grid/Item/index.props.d.ts +6 -0
- package/Grid/Item/styles.d.ts +7 -0
- package/Grid/index.d.ts +4 -0
- package/Grid/index.js +19 -0
- package/Grid/index.props.d.ts +5 -0
- package/Grid/package.json +6 -0
- package/Grid/styles.d.ts +9 -0
- package/Grid/styles.js +25 -0
- package/Icons/index.d.ts +0 -2
- package/Icons/index.js +0 -4
- package/Input/index.d.ts +4 -0
- package/Input/index.js +50 -0
- package/Input/index.props.d.ts +13 -0
- package/Input/package.json +6 -0
- package/README.md +3 -1
- package/Skeleton/index.d.ts +4 -0
- package/Skeleton/index.js +34 -0
- package/Skeleton/index.props.d.ts +11 -0
- package/Skeleton/package.json +6 -0
- package/Skeleton/styles.d.ts +9 -0
- package/Skeleton/styles.js +31 -0
- package/Theme/color.d.ts +15 -7
- package/Theme/color.js +12 -6
- package/Theme/index.d.ts +92 -6
- package/Theme/index.props.d.ts +2 -0
- package/Theme/themes/buenos_aires.d.ts +86 -3
- package/Theme/themes/buenos_aires.js +60 -18
- package/Theme/themes/default.d.ts +86 -3
- package/Theme/themes/default.js +60 -19
- package/Typography/index.props.d.ts +4 -7
- package/base/FormField/index.d.ts +4 -0
- package/base/FormField/index.js +30 -0
- package/base/FormField/index.props.d.ts +8 -0
- package/base/FormField/styles.d.ts +5 -0
- package/base/FormField/styles.js +18 -0
- package/base/InputRoot/index.d.ts +4 -0
- package/base/InputRoot/index.js +34 -0
- package/base/InputRoot/index.props.d.ts +41 -0
- package/base/InputRoot/styles.d.ts +27 -0
- package/base/InputRoot/styles.js +82 -0
- package/esm/Button/index.props.d.ts +5 -9
- package/esm/Button/index.props.js +1 -7
- package/esm/Button/styles.d.ts +2 -2
- package/esm/Button/styles.js +13 -7
- package/esm/Checkbox/index.js +44 -0
- package/esm/Checkbox/index.props.d.ts +2 -2
- package/esm/Checkbox/styles.js +52 -0
- package/esm/Grid/Item/index.d.ts +4 -0
- package/esm/Grid/Item/index.props.d.ts +6 -0
- package/esm/Grid/Item/styles.d.ts +7 -0
- package/esm/Grid/index.d.ts +4 -0
- package/esm/Grid/index.js +15 -0
- package/esm/Grid/index.props.d.ts +5 -0
- package/esm/Grid/styles.d.ts +9 -0
- package/esm/Grid/styles.js +18 -0
- package/esm/Icons/index.d.ts +0 -2
- package/esm/Icons/index.js +0 -2
- package/esm/Input/index.d.ts +4 -0
- package/esm/Input/index.js +46 -0
- package/esm/Input/index.props.d.ts +13 -0
- package/esm/Skeleton/index.d.ts +4 -0
- package/esm/Skeleton/index.js +31 -0
- package/esm/Skeleton/index.props.d.ts +11 -0
- package/esm/Skeleton/styles.d.ts +9 -0
- package/esm/Skeleton/styles.js +24 -0
- package/esm/Theme/color.d.ts +15 -7
- package/esm/Theme/color.js +11 -6
- package/esm/Theme/index.d.ts +92 -6
- package/esm/Theme/index.props.d.ts +2 -0
- package/esm/Theme/themes/buenos_aires.d.ts +86 -3
- package/esm/Theme/themes/buenos_aires.js +60 -19
- package/esm/Theme/themes/default.d.ts +86 -3
- package/esm/Theme/themes/default.js +60 -20
- package/esm/Typography/index.props.d.ts +4 -7
- package/esm/base/FormField/index.d.ts +4 -0
- package/esm/base/FormField/index.js +26 -0
- package/esm/base/FormField/index.props.d.ts +8 -0
- package/esm/base/FormField/styles.d.ts +5 -0
- package/esm/base/FormField/styles.js +12 -0
- package/esm/base/InputRoot/index.d.ts +4 -0
- package/esm/base/InputRoot/index.js +30 -0
- package/esm/base/InputRoot/index.props.d.ts +41 -0
- package/esm/base/InputRoot/styles.d.ts +27 -0
- package/esm/base/InputRoot/styles.js +72 -0
- package/esm/index.d.ts +4 -0
- package/esm/index.js +4 -2
- package/index.d.ts +4 -0
- package/index.js +18 -13
- package/package.json +1 -3
- package/Icons/Burger.d.ts +0 -3
- package/Icons/Burger.js +0 -22
- package/Icons/Check.d.ts +0 -3
- package/Icons/Check.js +0 -24
- package/esm/Icons/Burger.d.ts +0 -3
- package/esm/Icons/Burger.js +0 -18
- package/esm/Icons/Check.d.ts +0 -3
- package/esm/Icons/Check.js +0 -20
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
6
|
+
var react = require('react');
|
|
7
|
+
var styles = require('./styles.js');
|
|
8
|
+
|
|
9
|
+
var InputRoot = /*#__PURE__*/react.forwardRef(function (_a, ref) {
|
|
10
|
+
var className = _a.className,
|
|
11
|
+
startIcon = _a.startIcon,
|
|
12
|
+
endIcon = _a.endIcon,
|
|
13
|
+
children = _a.children,
|
|
14
|
+
_b = _a.variant,
|
|
15
|
+
variant = _b === void 0 ? "primary" : _b,
|
|
16
|
+
disabled = _a.disabled,
|
|
17
|
+
error = _a.error,
|
|
18
|
+
size = _a.size;
|
|
19
|
+
return jsxRuntime.jsxs(styles.BaseInputRoot, {
|
|
20
|
+
ref: ref,
|
|
21
|
+
className: className,
|
|
22
|
+
variant: variant,
|
|
23
|
+
isError: error ? 1 : 0,
|
|
24
|
+
disabled: disabled,
|
|
25
|
+
size: size,
|
|
26
|
+
children: [startIcon && jsxRuntime.jsx(styles.BaseIcon, {
|
|
27
|
+
children: startIcon
|
|
28
|
+
}), children, endIcon && jsxRuntime.jsx(styles.BaseIcon, {
|
|
29
|
+
children: endIcon
|
|
30
|
+
}), disabled && jsxRuntime.jsx(styles.BaseDisableWrapper, {})]
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
exports.default = InputRoot;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { CSSObject } from "@emotion/react";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export type InputSize = "s" | "m" | "l";
|
|
4
|
+
type VariantStyles = {
|
|
5
|
+
color?: CSSObject["color"];
|
|
6
|
+
backgroundColor?: CSSObject["backgroundColor"];
|
|
7
|
+
borderColor?: CSSObject["borderColor"];
|
|
8
|
+
boxShadow?: CSSObject["boxShadow"];
|
|
9
|
+
};
|
|
10
|
+
type PlaceholderStyles = {
|
|
11
|
+
color?: CSSObject["color"];
|
|
12
|
+
};
|
|
13
|
+
type VariantStates = {
|
|
14
|
+
normal?: VariantStyles;
|
|
15
|
+
hovered?: VariantStyles;
|
|
16
|
+
focused?: VariantStyles;
|
|
17
|
+
active?: VariantStyles;
|
|
18
|
+
disabled?: VariantStyles;
|
|
19
|
+
error?: {
|
|
20
|
+
normal?: VariantStyles;
|
|
21
|
+
hovered?: VariantStyles;
|
|
22
|
+
focused?: VariantStyles;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type InputVariant = {
|
|
26
|
+
primary: VariantStates;
|
|
27
|
+
};
|
|
28
|
+
export type PlaceholderProps = {
|
|
29
|
+
placeholder: PlaceholderStyles;
|
|
30
|
+
};
|
|
31
|
+
export type InputProps = {
|
|
32
|
+
variant?: keyof InputVariant;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
error?: boolean;
|
|
35
|
+
className?: string;
|
|
36
|
+
startIcon?: ReactNode;
|
|
37
|
+
endIcon?: ReactNode;
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
size?: InputSize;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { InputSize, InputVariant } from "./index.props";
|
|
3
|
+
export declare const BaseInputRoot: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
isError?: number | undefined;
|
|
9
|
+
size?: InputSize | undefined;
|
|
10
|
+
variant: keyof InputVariant;
|
|
11
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
|
+
export declare const BaseInput: import("@emotion/styled").StyledComponent<{
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
15
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
16
|
+
export declare const BasePlaceholder: import("@emotion/styled").StyledComponent<{
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
20
|
+
export declare const BaseIcon: import("@emotion/styled").StyledComponent<{
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
23
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
24
|
+
export declare const BaseDisableWrapper: import("@emotion/styled").StyledComponent<{
|
|
25
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
27
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|