colibri-ui 0.7.21 → 0.7.23
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.js +1 -2
- package/Button/index.props.d.ts +4 -10
- package/esm/Button/index.js +1 -2
- package/esm/Button/index.props.d.ts +4 -10
- package/package.json +1 -1
- package/Button/index.props.js +0 -9
- package/esm/Button/index.props.js +0 -9
package/Button/index.js
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
7
7
|
var react = require('react');
|
|
8
|
-
var index_props = require('./index.props.js');
|
|
9
8
|
var styles = require('./styles.js');
|
|
10
9
|
|
|
11
10
|
var Button = /*#__PURE__*/react.forwardRef(function (_a, ref) {
|
|
@@ -13,7 +12,7 @@ var Button = /*#__PURE__*/react.forwardRef(function (_a, ref) {
|
|
|
13
12
|
_b = _a.fullWidth,
|
|
14
13
|
fullWidth = _b === void 0 ? false : _b,
|
|
15
14
|
_c = _a.variant,
|
|
16
|
-
variant = _c === void 0 ?
|
|
15
|
+
variant = _c === void 0 ? "primary" : _c,
|
|
17
16
|
iconStart = _a.iconStart,
|
|
18
17
|
iconEnd = _a.iconEnd,
|
|
19
18
|
icon = _a.icon,
|
package/Button/index.props.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import type { ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
2
|
import type { CSSObject } from "@emotion/react";
|
|
3
|
-
export declare enum VARIANT {
|
|
4
|
-
PRIMARY = "primary",
|
|
5
|
-
SECONDARY = "secondary",
|
|
6
|
-
PSEUDO = "pseudo",
|
|
7
|
-
CLEAR = "clear"
|
|
8
|
-
}
|
|
9
3
|
type BaseStyles = {
|
|
10
4
|
color?: CSSObject["color"];
|
|
11
5
|
borderRadius: CSSObject["borderRadius"];
|
|
@@ -31,10 +25,10 @@ export type ButtonBase = {
|
|
|
31
25
|
base: BaseStyles;
|
|
32
26
|
};
|
|
33
27
|
export type ButtonVariant = {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
"primary": VariantStates;
|
|
29
|
+
"secondary": VariantStates;
|
|
30
|
+
"pseudo": VariantStates;
|
|
31
|
+
"clear": VariantStates;
|
|
38
32
|
};
|
|
39
33
|
export type ButtonSize = "xs" | "s" | "m" | "l";
|
|
40
34
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
package/esm/Button/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
-
import { VARIANT } from './index.props.js';
|
|
5
4
|
import { StyledButton, StyledIcon } from './styles.js';
|
|
6
5
|
|
|
7
6
|
var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
@@ -9,7 +8,7 @@ var Button = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
9
8
|
_b = _a.fullWidth,
|
|
10
9
|
fullWidth = _b === void 0 ? false : _b,
|
|
11
10
|
_c = _a.variant,
|
|
12
|
-
variant = _c === void 0 ?
|
|
11
|
+
variant = _c === void 0 ? "primary" : _c,
|
|
13
12
|
iconStart = _a.iconStart,
|
|
14
13
|
iconEnd = _a.iconEnd,
|
|
15
14
|
icon = _a.icon,
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import type { ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
2
|
import type { CSSObject } from "@emotion/react";
|
|
3
|
-
export declare enum VARIANT {
|
|
4
|
-
PRIMARY = "primary",
|
|
5
|
-
SECONDARY = "secondary",
|
|
6
|
-
PSEUDO = "pseudo",
|
|
7
|
-
CLEAR = "clear"
|
|
8
|
-
}
|
|
9
3
|
type BaseStyles = {
|
|
10
4
|
color?: CSSObject["color"];
|
|
11
5
|
borderRadius: CSSObject["borderRadius"];
|
|
@@ -31,10 +25,10 @@ export type ButtonBase = {
|
|
|
31
25
|
base: BaseStyles;
|
|
32
26
|
};
|
|
33
27
|
export type ButtonVariant = {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
"primary": VariantStates;
|
|
29
|
+
"secondary": VariantStates;
|
|
30
|
+
"pseudo": VariantStates;
|
|
31
|
+
"clear": VariantStates;
|
|
38
32
|
};
|
|
39
33
|
export type ButtonSize = "xs" | "s" | "m" | "l";
|
|
40
34
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
package/package.json
CHANGED
package/Button/index.props.js
DELETED