@veracity/vui 0.0.9 → 0.0.10
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/avatar/avatar.d.ts +3 -4
- package/avatar/avatar.js +2 -2
- package/avatar/avatar.types.d.ts +2 -6
- package/box/box.d.ts +3 -4
- package/box/box.js +3 -4
- package/box/box.types.d.ts +2 -4
- package/button/button.d.ts +3 -4
- package/button/button.js +5 -6
- package/button/button.types.d.ts +2 -4
- package/button/buttonGroup.d.ts +3 -2
- package/button/buttonGroup.js +3 -4
- package/button/buttonGroup.types.d.ts +2 -4
- package/button/theme.d.ts +1 -0
- package/button/theme.js +1 -0
- package/checkbox/checkbox.d.ts +3 -2
- package/checkbox/checkbox.js +5 -7
- package/checkbox/checkbox.types.d.ts +4 -6
- package/checkbox/checkboxGroup.d.ts +3 -2
- package/checkbox/checkboxGroup.js +3 -4
- package/checkbox/checkboxGroup.types.d.ts +2 -4
- package/divider/divider.d.ts +3 -2
- package/divider/divider.js +3 -4
- package/divider/divider.types.d.ts +2 -4
- package/heading/heading.d.ts +3 -4
- package/heading/heading.js +2 -4
- package/heading/heading.types.d.ts +2 -4
- package/icons/baseIcons/fal/falSignIn.d.ts +3 -0
- package/icons/baseIcons/fal/falSignIn.js +7 -0
- package/icons/baseIcons/types.d.ts +1 -1
- package/input/input.d.ts +4 -5
- package/input/input.js +2 -2
- package/input/input.types.d.ts +2 -4
- package/label/label.d.ts +3 -4
- package/label/label.js +3 -5
- package/label/label.types.d.ts +2 -4
- package/link/link.d.ts +3 -4
- package/link/link.js +2 -4
- package/link/link.types.d.ts +2 -4
- package/list/list.d.ts +3 -2
- package/list/list.js +3 -4
- package/list/list.types.d.ts +2 -4
- package/list/listItem.d.ts +3 -2
- package/list/listItem.js +3 -4
- package/list/listItem.types.d.ts +2 -4
- package/p/p.d.ts +3 -4
- package/p/p.js +2 -4
- package/p/p.types.d.ts +2 -4
- package/package.json +1 -1
- package/radio/radio.d.ts +3 -2
- package/radio/radio.js +5 -7
- package/radio/radio.types.d.ts +4 -6
- package/radio/radioGroup.d.ts +3 -2
- package/radio/radioGroup.js +3 -4
- package/radio/radioGroup.types.d.ts +2 -4
- package/skeleton/skeleton.d.ts +3 -2
- package/skeleton/skeleton.js +3 -4
- package/skeleton/skeleton.types.d.ts +2 -4
- package/spinner/spinner.js +3 -4
- package/spinner/spinner.types.d.ts +2 -2
- package/svg/svg.d.ts +4 -3
- package/svg/svg.js +3 -4
- package/svg/svg.types.d.ts +2 -11
- package/switch/switch.d.ts +3 -2
- package/switch/switch.js +3 -4
- package/switch/switch.types.d.ts +2 -4
- package/switch/switchButton.d.ts +5 -4
- package/switch/switchButton.js +6 -9
- package/switch/switchButton.types.d.ts +2 -8
- package/system/animations.d.ts +9 -7
- package/system/backgrounds.d.ts +8 -8
- package/system/borders.d.ts +138 -129
- package/system/colors.d.ts +1 -2
- package/system/effects.d.ts +15 -12
- package/system/flexboxes.d.ts +43 -54
- package/system/index.d.ts +2 -0
- package/system/index.js +7 -0
- package/system/interactivity.d.ts +17 -23
- package/system/layout.d.ts +69 -74
- package/system/sizing.d.ts +27 -27
- package/system/space.d.ts +89 -87
- package/system/system.d.ts +17 -0
- package/system/system.js +5 -0
- package/system/transforms.d.ts +53 -53
- package/system/transitions.d.ts +20 -25
- package/system/typography.d.ts +68 -61
- package/t/t.d.ts +3 -4
- package/t/t.js +2 -4
- package/t/t.types.d.ts +2 -4
- package/textarea/textarea.d.ts +3 -4
- package/textarea/textarea.js +3 -4
- package/textarea/textarea.types.d.ts +2 -4
- package/theme/components.d.ts +1 -0
- package/theme/defaultTheme.d.ts +1 -0
- package/tile/tile.types.d.ts +2 -4
package/avatar/avatar.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { AvatarProps
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, never>;
|
|
1
|
+
import { AvatarProps } from './avatar.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
export declare const AvatarBase: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
5
4
|
export declare const Avatar: import("../core").VuiComponent<"span", AvatarProps>;
|
|
6
5
|
export default Avatar;
|
package/avatar/avatar.js
CHANGED
|
@@ -51,10 +51,10 @@ var react_1 = __importDefault(require("react"));
|
|
|
51
51
|
var styled_components_2 = __importDefault(require("styled-components"));
|
|
52
52
|
var core_1 = require("../core");
|
|
53
53
|
var icon_1 = __importDefault(require("../icon"));
|
|
54
|
+
var system_1 = require("../system");
|
|
54
55
|
var utils_1 = require("../utils");
|
|
55
|
-
var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.interactivity, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
|
|
56
56
|
var AvatarImage = styled_components_2.default.img(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\theight: 100%;\n\twidth: 100%;\n\n\t", "\n"], ["\n\theight: 100%;\n\twidth: 100%;\n\n\t", "\n"])), styled_components_1.borders);
|
|
57
|
-
exports.AvatarBase = styled_components_2.default.span.withConfig(core_1.forwardPropConfig(
|
|
57
|
+
exports.AvatarBase = styled_components_2.default.span.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: normal;\n\toutline: none;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: normal;\n\toutline: none;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t}\n\n\t", "\n"])), system_1.system);
|
|
58
58
|
function defaultGetInitials(name) {
|
|
59
59
|
if (name === void 0) { name = ''; }
|
|
60
60
|
var _a = __read(name.split(' '), 2), _b = _a[0], first = _b === void 0 ? '' : _b, _c = _a[1], last = _c === void 0 ? '' : _c;
|
package/avatar/avatar.types.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { IconProp } from '../icon';
|
|
2
|
-
import {
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
3
|
import { ThemingProps } from '../theme';
|
|
4
|
-
export interface
|
|
5
|
-
}
|
|
6
|
-
export interface AvatarProps extends AvatarStyleProps, ThemingProps<'Avatar'> {
|
|
4
|
+
export interface AvatarProps extends SystemProps, ThemingProps<'Avatar'> {
|
|
7
5
|
colorScheme?: 'blue' | 'green' | 'grey' | 'prussian' | 'red' | 'yellow';
|
|
8
6
|
getInitials?: (name: string) => string;
|
|
9
7
|
icon?: IconProp;
|
|
@@ -12,5 +10,3 @@ export interface AvatarProps extends AvatarStyleProps, ThemingProps<'Avatar'> {
|
|
|
12
10
|
name?: string;
|
|
13
11
|
src?: string;
|
|
14
12
|
}
|
|
15
|
-
export interface AvatarStyleProps extends BackgroundColorProps, BordersProps, InteractivityProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
|
16
|
-
}
|
package/box/box.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { BoxProps
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, never>;
|
|
1
|
+
import { BoxProps } from './box.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
export declare const BoxBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
5
4
|
export declare const Box: import("../core").VuiComponent<"div", BoxProps>;
|
|
6
5
|
export default Box;
|
package/box/box.js
CHANGED
|
@@ -30,13 +30,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
32
|
exports.Box = exports.BoxBase = void 0;
|
|
33
|
-
var styled_components_1 = require("@xstyled/styled-components");
|
|
34
33
|
var react_1 = __importDefault(require("react"));
|
|
35
|
-
var
|
|
34
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
36
35
|
var core_1 = require("../core");
|
|
36
|
+
var system_1 = require("../system");
|
|
37
37
|
var utils_1 = require("../utils");
|
|
38
|
-
|
|
39
|
-
exports.BoxBase = styled_components_2.default.div.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\n\t", "\n"], ["\n\tdisplay: flex;\n\n\t", "\n"])), generator);
|
|
38
|
+
exports.BoxBase = styled_components_1.default.div.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\n\t", "\n"], ["\n\tdisplay: flex;\n\n\t", "\n"])), system_1.system);
|
|
40
39
|
exports.Box = core_1.vui(function (props, ref) {
|
|
41
40
|
var _a = core_1.omitThemingProps(props), align = _a.align, center = _a.center, centerH = _a.centerH, centerV = _a.centerV, className = _a.className, column = _a.column, direction = _a.direction, hoverShadow = _a.hoverShadow, justify = _a.justify, radius = _a.radius, shadow = _a.shadow, wrap = _a.wrap, rest = __rest(_a, ["align", "center", "centerH", "centerV", "className", "column", "direction", "hoverShadow", "justify", "radius", "shadow", "wrap"]);
|
|
42
41
|
var styles = core_1.useStyleConfig('Box', props);
|
package/box/box.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BordersProps, EffectsProps, FlexboxesProps, SystemProps } from '../system';
|
|
2
2
|
import { ThemingProps } from '../theme';
|
|
3
|
-
export interface BoxProps extends
|
|
3
|
+
export interface BoxProps extends SystemProps, ThemingProps<'Box'> {
|
|
4
4
|
align?: FlexboxesProps['alignItems'];
|
|
5
5
|
center?: boolean;
|
|
6
6
|
centerH?: boolean;
|
|
@@ -13,5 +13,3 @@ export interface BoxProps extends BoxStyleProps, ThemingProps<'Box'> {
|
|
|
13
13
|
shadow?: EffectsProps['boxShadow'];
|
|
14
14
|
wrap?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export interface BoxStyleProps extends BackgroundColorProps, BordersProps, ColorProps, EffectsProps, FlexboxesProps, InteractivityProps, LayoutProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
|
17
|
-
}
|
package/button/button.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ButtonProps
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, never>;
|
|
1
|
+
import { ButtonProps } from './button.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
export declare const ButtonBase: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
5
4
|
export declare const Button: import("../core").VuiComponent<"button", ButtonProps>;
|
|
6
5
|
export default Button;
|
package/button/button.js
CHANGED
|
@@ -30,17 +30,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
32
|
exports.Button = exports.ButtonBase = void 0;
|
|
33
|
-
var styled_components_1 = require("@xstyled/styled-components");
|
|
34
33
|
var react_1 = __importDefault(require("react"));
|
|
35
|
-
var
|
|
34
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
36
35
|
var context_1 = require("./context");
|
|
37
36
|
var core_1 = require("../core");
|
|
38
37
|
var icon_1 = __importDefault(require("../icon"));
|
|
38
|
+
var system_1 = require("../system");
|
|
39
39
|
var utils_1 = require("../utils");
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
exports.ButtonBase = styled_components_2.default.button.withConfig(core_1.forwardPropConfig(generator))(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: normal;\n\tposition: relative;\n\tuser-select: none;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tz-index: 1;\n\t}\n\n\t", "\n\n\t&:disabled {\n\t\t/* Specified here to avoid conflict with active/hover props */\n\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\tborder-color: var(--vui-colors-disabled-border);\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n"], ["\n\talign-items: center;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: normal;\n\tposition: relative;\n\tuser-select: none;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tz-index: 1;\n\t}\n\n\t", "\n\n\t&:disabled {\n\t\t/* Specified here to avoid conflict with active/hover props */\n\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\tborder-color: var(--vui-colors-disabled-border);\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n"])), generator);
|
|
40
|
+
var ContentWrapper = styled_components_1.default.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tvisibility: hidden;\n"], ["\n\tvisibility: hidden;\n"])));
|
|
41
|
+
var LoadingWrapper = styled_components_1.default.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\tbottom: 0;\n\tdisplay: flex;\n\tleft: 0;\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n"], ["\n\tbottom: 0;\n\tdisplay: flex;\n\tleft: 0;\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n"])));
|
|
42
|
+
exports.ButtonBase = styled_components_1.default.button.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: normal;\n\tposition: relative;\n\tuser-select: none;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tz-index: 1;\n\t}\n\n\t", "\n\n\t&:disabled {\n\t\t/* Specified here to avoid conflict with active/hover props */\n\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\tborder-color: var(--vui-colors-disabled-border);\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n"], ["\n\talign-items: center;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: normal;\n\tposition: relative;\n\tuser-select: none;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tz-index: 1;\n\t}\n\n\t", "\n\n\t&:disabled {\n\t\t/* Specified here to avoid conflict with active/hover props */\n\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\tborder-color: var(--vui-colors-disabled-border);\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n"])), system_1.system);
|
|
44
43
|
exports.Button = core_1.vui(function (props, ref) {
|
|
45
44
|
var _a;
|
|
46
45
|
var buttonGroupProps = context_1.useButtonGroup();
|
package/button/button.types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconProp } from '../icon';
|
|
3
|
-
import {
|
|
3
|
+
import { SystemProps } from '../system';
|
|
4
4
|
import { ThemingProps } from '../theme';
|
|
5
|
-
export interface ButtonProps extends
|
|
5
|
+
export interface ButtonProps extends SystemProps, ThemingProps<'Button'> {
|
|
6
6
|
colorScheme?: 'blue' | 'green' | 'grey' | 'pink' | 'prussian' | 'red';
|
|
7
7
|
icon?: IconProp;
|
|
8
8
|
iconLeft?: IconProp;
|
|
@@ -16,5 +16,3 @@ export interface ButtonProps extends ButtonStyleProps, ThemingProps<'Button'> {
|
|
|
16
16
|
itemRight?: React.ReactNode;
|
|
17
17
|
text?: number | string;
|
|
18
18
|
}
|
|
19
|
-
export interface ButtonStyleProps extends BackgroundColorProps, BordersProps, ColorProps, EffectsProps, FontSizeProps, FontWeightProps, PointerEventsProps, SizingProps, SpaceProps, TransitionsProps {
|
|
20
|
-
}
|
package/button/buttonGroup.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ButtonGroupProps
|
|
2
|
-
|
|
1
|
+
import { ButtonGroupProps } from './buttonGroup.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
export declare const ButtonGroupBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
3
4
|
export declare const ButtonGroup: import("../core").VuiComponent<"div", ButtonGroupProps>;
|
|
4
5
|
export default ButtonGroup;
|
package/button/buttonGroup.js
CHANGED
|
@@ -49,14 +49,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
49
49
|
};
|
|
50
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
51
|
exports.ButtonGroup = exports.ButtonGroupBase = void 0;
|
|
52
|
-
var styled_components_1 = require("@xstyled/styled-components");
|
|
53
52
|
var react_1 = __importStar(require("react"));
|
|
54
|
-
var
|
|
53
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
55
54
|
var context_1 = require("./context");
|
|
56
55
|
var core_1 = require("../core");
|
|
56
|
+
var system_1 = require("../system");
|
|
57
57
|
var utils_1 = require("../utils");
|
|
58
|
-
|
|
59
|
-
exports.ButtonGroupBase = styled_components_2.default.div.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\n\t// First Button\n\t> *:first-of-type:not(:last-of-type) {\n\t\tborder-bottom-right-radius: 0;\n\t\tborder-right-width: 1px;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t// Middle Buttons\n\t> *:not(:first-of-type):not(:last-of-type) {\n\t\tborder-left-width: 0px;\n\t\tborder-radius: 0;\n\t\tborder-right-width: 1px;\n\t}\n\n\t// Last Button\n\t> *:not(:first-of-type):last-of-type {\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-left-width: 0px;\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t", "\n"], ["\n\tdisplay: flex;\n\n\t// First Button\n\t> *:first-of-type:not(:last-of-type) {\n\t\tborder-bottom-right-radius: 0;\n\t\tborder-right-width: 1px;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t// Middle Buttons\n\t> *:not(:first-of-type):not(:last-of-type) {\n\t\tborder-left-width: 0px;\n\t\tborder-radius: 0;\n\t\tborder-right-width: 1px;\n\t}\n\n\t// Last Button\n\t> *:not(:first-of-type):last-of-type {\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-left-width: 0px;\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t", "\n"])), generator);
|
|
58
|
+
exports.ButtonGroupBase = styled_components_1.default.div.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\n\t// First Button\n\t> *:first-of-type:not(:last-of-type) {\n\t\tborder-bottom-right-radius: 0;\n\t\tborder-right-width: 1px;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t// Middle Buttons\n\t> *:not(:first-of-type):not(:last-of-type) {\n\t\tborder-left-width: 0px;\n\t\tborder-radius: 0;\n\t\tborder-right-width: 1px;\n\t}\n\n\t// Last Button\n\t> *:not(:first-of-type):last-of-type {\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-left-width: 0px;\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t", "\n"], ["\n\tdisplay: flex;\n\n\t// First Button\n\t> *:first-of-type:not(:last-of-type) {\n\t\tborder-bottom-right-radius: 0;\n\t\tborder-right-width: 1px;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t// Middle Buttons\n\t> *:not(:first-of-type):not(:last-of-type) {\n\t\tborder-left-width: 0px;\n\t\tborder-radius: 0;\n\t\tborder-right-width: 1px;\n\t}\n\n\t// Last Button\n\t> *:not(:first-of-type):last-of-type {\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-left-width: 0px;\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t", "\n"])), system_1.system);
|
|
60
59
|
exports.ButtonGroup = core_1.vui(function (props, ref) {
|
|
61
60
|
var className = props.className, colorScheme = props.colorScheme, disabled = props.disabled, size = props.size, variant = props.variant, rest = __rest(props, ["className", "colorScheme", "disabled", "size", "variant"]);
|
|
62
61
|
var context = react_1.useMemo(function () { return utils_1.filterUndefined({ colorScheme: colorScheme, disabled: disabled, size: size, variant: variant }); }, [
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SystemProps } from '../system';
|
|
2
2
|
import { ThemingProps } from '../theme';
|
|
3
|
-
export interface ButtonGroupProps extends
|
|
3
|
+
export interface ButtonGroupProps extends SystemProps, ThemingProps<'Button'> {
|
|
4
4
|
colorScheme?: 'blue' | 'green' | 'pink' | 'prussian' | 'red';
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export interface ButtonGroupStyleProps extends FlexboxesProps, SizingProps, SpaceProps {
|
|
8
|
-
}
|
package/button/theme.d.ts
CHANGED
package/button/theme.js
CHANGED
package/checkbox/checkbox.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CheckboxProps, CheckboxStyleProps } from './checkbox.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
2
3
|
export declare const CheckboxInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
|
|
3
4
|
export declare const CheckboxBase: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, CheckboxStyleProps, never>;
|
|
4
|
-
export declare const CheckboxControl: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme,
|
|
5
|
+
export declare const CheckboxControl: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
5
6
|
export declare const Checkbox: import("../core").VuiComponent<"span", CheckboxProps>;
|
|
6
7
|
export default Checkbox;
|
package/checkbox/checkbox.js
CHANGED
|
@@ -65,19 +65,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
67
|
exports.Checkbox = exports.CheckboxControl = exports.CheckboxBase = exports.CheckboxInput = void 0;
|
|
68
|
-
var styled_components_1 = require("@xstyled/styled-components");
|
|
69
68
|
var react_1 = __importStar(require("react"));
|
|
70
|
-
var
|
|
69
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
71
70
|
var context_1 = require("./context");
|
|
72
71
|
var core_1 = require("../core");
|
|
73
72
|
var icon_1 = __importDefault(require("../icon"));
|
|
73
|
+
var system_1 = require("../system");
|
|
74
74
|
var t_1 = __importDefault(require("../t"));
|
|
75
75
|
var utils_1 = require("../utils");
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
exports.
|
|
79
|
-
exports.CheckboxBase = styled_components_2.default.label.withConfig(core_1.forwardPropConfig(checkboxGenerator))(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\twidth: fit-content;\n\n\t:hover .vui-checkboxControl {\n\t\tcolor: ", ";\n\t}\n\n\t&.disabled {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\n\t\t.vui-checkboxControl {\n\t\t\tcolor: var(--vui-colors-disabled-font);\n\t\t}\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\twidth: fit-content;\n\n\t:hover .vui-checkboxControl {\n\t\tcolor: ", ";\n\t}\n\n\t&.disabled {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\n\t\t.vui-checkboxControl {\n\t\t\tcolor: var(--vui-colors-disabled-font);\n\t\t}\n\t}\n\n\t", "\n"])), function (p) { return core_1.th('colors', p.controlHoverColor)(p); }, checkboxGenerator);
|
|
80
|
-
exports.CheckboxControl = styled_components_2.default.span.withConfig(core_1.forwardPropConfig(controlGenerator))(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: relative;\n\n\t", "\n"], ["\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: relative;\n\n\t", "\n"])), controlGenerator);
|
|
76
|
+
exports.CheckboxInput = styled_components_1.default.input(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tcursor: inherit;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0;\n\topacity: 0;\n\tpadding: 0;\n\tposition: absolute;\n\ttop: 0;\n\twidth: 100%;\n\tz-index: 1;\n"], ["\n\tcursor: inherit;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0;\n\topacity: 0;\n\tpadding: 0;\n\tposition: absolute;\n\ttop: 0;\n\twidth: 100%;\n\tz-index: 1;\n"])));
|
|
77
|
+
exports.CheckboxBase = styled_components_1.default.label.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\twidth: fit-content;\n\n\t:hover .vui-checkboxControl {\n\t\tcolor: ", ";\n\t}\n\n\t&.disabled {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\n\t\t.vui-checkboxControl {\n\t\t\tcolor: var(--vui-colors-disabled-font);\n\t\t}\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\twidth: fit-content;\n\n\t:hover .vui-checkboxControl {\n\t\tcolor: ", ";\n\t}\n\n\t&.disabled {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\n\t\t.vui-checkboxControl {\n\t\t\tcolor: var(--vui-colors-disabled-font);\n\t\t}\n\t}\n\n\t", "\n"])), function (p) { return core_1.th.color(p.controlHoverColor)(p); }, system_1.system);
|
|
78
|
+
exports.CheckboxControl = styled_components_1.default.span.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: relative;\n\n\t", "\n"], ["\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: relative;\n\n\t", "\n"])), system_1.system);
|
|
81
79
|
exports.Checkbox = core_1.vui(function (props, ref) {
|
|
82
80
|
var checkboxGroupProps = context_1.useCheckboxGroup();
|
|
83
81
|
var mergedProps = __assign(__assign({}, checkboxGroupProps), props);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { ChangeEventHandler, FocusEventHandler } from '../core';
|
|
3
3
|
import { IconProp } from '../icon';
|
|
4
|
-
import {
|
|
4
|
+
import { SystemProps } from '../system';
|
|
5
5
|
import { ThemingProps } from '../theme';
|
|
6
|
-
export interface CheckboxProps extends
|
|
6
|
+
export interface CheckboxProps extends SystemProps, ThemingProps<'Checkbox'> {
|
|
7
7
|
checked?: boolean;
|
|
8
8
|
colorScheme?: 'blue' | 'green' | 'prussian' | 'red';
|
|
9
9
|
disabled?: boolean;
|
|
@@ -21,8 +21,6 @@ export interface CheckboxProps extends CheckboxStyleProps, ThemingProps<'Checkbo
|
|
|
21
21
|
required?: boolean;
|
|
22
22
|
value?: number | string;
|
|
23
23
|
}
|
|
24
|
-
export interface
|
|
25
|
-
|
|
26
|
-
export interface CheckboxStyleProps extends BackgroundColorProps, FlexboxesProps, SizingProps, SpaceProps, TransitionsProps {
|
|
27
|
-
controlHoverColor?: string;
|
|
24
|
+
export interface CheckboxStyleProps extends SystemProps {
|
|
25
|
+
controlHoverColor: string;
|
|
28
26
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CheckboxGroupProps
|
|
2
|
-
|
|
1
|
+
import { CheckboxGroupProps } from './checkboxGroup.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
export declare const CheckboxGroupBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
3
4
|
export declare const CheckboxGroup: import("../core").VuiComponent<"div", CheckboxGroupProps>;
|
|
4
5
|
export default CheckboxGroup;
|
|
@@ -49,14 +49,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
49
49
|
};
|
|
50
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
51
|
exports.CheckboxGroup = exports.CheckboxGroupBase = void 0;
|
|
52
|
-
var styled_components_1 = require("@xstyled/styled-components");
|
|
53
52
|
var react_1 = __importStar(require("react"));
|
|
54
|
-
var
|
|
53
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
55
54
|
var context_1 = require("./context");
|
|
56
55
|
var core_1 = require("../core");
|
|
56
|
+
var system_1 = require("../system");
|
|
57
57
|
var utils_1 = require("../utils");
|
|
58
|
-
|
|
59
|
-
exports.CheckboxGroupBase = styled_components_2.default.div.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t", "\n"], ["\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t", "\n"])), generator);
|
|
58
|
+
exports.CheckboxGroupBase = styled_components_1.default.div.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t", "\n"], ["\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t", "\n"])), system_1.system);
|
|
60
59
|
exports.CheckboxGroup = core_1.vui(function (props, ref) {
|
|
61
60
|
var className = props.className, colorScheme = props.colorScheme, disabled = props.disabled, name = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, row = props.row, size = props.size, variant = props.variant, rest = __rest(props, ["className", "colorScheme", "disabled", "name", "onBlur", "onChange", "onFocus", "row", "size", "variant"]);
|
|
62
61
|
var context = react_1.useMemo(function () { return utils_1.filterUndefined({ colorScheme: colorScheme, disabled: disabled, name: name, onBlur: onBlur, onChange: onChange, onFocus: onFocus, size: size, variant: variant }); }, [colorScheme, disabled, name, onBlur, onChange, onFocus, size, variant]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeEventHandler, FocusEventHandler } from '../core';
|
|
2
|
-
import {
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
3
|
import { ThemingProps } from '../theme';
|
|
4
|
-
export interface CheckboxGroupProps extends
|
|
4
|
+
export interface CheckboxGroupProps extends SystemProps, ThemingProps<'Checkbox'> {
|
|
5
5
|
colorScheme?: 'blue' | 'green' | 'prussian' | 'red';
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
name?: string;
|
|
@@ -10,5 +10,3 @@ export interface CheckboxGroupProps extends CheckboxGroupStyleProps, ThemingProp
|
|
|
10
10
|
onFocus?: FocusEventHandler;
|
|
11
11
|
row?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export interface CheckboxGroupStyleProps extends FlexboxesProps, SizingProps, SpaceProps {
|
|
14
|
-
}
|
package/divider/divider.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { DividerProps
|
|
2
|
-
|
|
1
|
+
import { DividerProps } from './divider.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
export declare const DividerBase: import("styled-components").StyledComponent<"hr", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
3
4
|
export declare const Divider: import("../core").VuiComponent<"hr", DividerProps>;
|
|
4
5
|
export default Divider;
|
package/divider/divider.js
CHANGED
|
@@ -30,13 +30,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
32
|
exports.Divider = exports.DividerBase = void 0;
|
|
33
|
-
var styled_components_1 = require("@xstyled/styled-components");
|
|
34
33
|
var react_1 = __importDefault(require("react"));
|
|
35
|
-
var
|
|
34
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
36
35
|
var core_1 = require("../core");
|
|
36
|
+
var system_1 = require("../system");
|
|
37
37
|
var utils_1 = require("../utils");
|
|
38
|
-
|
|
39
|
-
exports.DividerBase = styled_components_2.default.hr.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), generator);
|
|
38
|
+
exports.DividerBase = styled_components_1.default.hr.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), system_1.system);
|
|
40
39
|
exports.Divider = core_1.vui(function (props, ref) {
|
|
41
40
|
var _a;
|
|
42
41
|
var _b = core_1.omitThemingProps(props), className = _b.className, isVertical = _b.isVertical, width = _b.width, rest = __rest(_b, ["className", "isVertical", "width"]);
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { BordersProps,
|
|
1
|
+
import { BordersProps, SystemProps } from '../system';
|
|
2
2
|
import { ThemingProps } from '../theme';
|
|
3
|
-
export interface DividerProps extends
|
|
3
|
+
export interface DividerProps extends SystemProps, ThemingProps<'Divider'> {
|
|
4
4
|
className?: string;
|
|
5
5
|
isVertical?: boolean;
|
|
6
6
|
width?: BordersProps['borderWidth'];
|
|
7
7
|
}
|
|
8
|
-
export interface DividerStyleProps extends BordersProps, SizingProps, SpaceProps {
|
|
9
|
-
}
|
package/heading/heading.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { HeadingProps
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, never>;
|
|
1
|
+
import { HeadingProps } from './heading.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
export declare const HeadingBase: import("styled-components").StyledComponent<"h2", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
5
4
|
export declare const Heading: import("../core").VuiComponent<"h2", HeadingProps>;
|
|
6
5
|
export default Heading;
|
package/heading/heading.js
CHANGED
|
@@ -30,14 +30,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
32
|
exports.Heading = exports.HeadingBase = void 0;
|
|
33
|
-
var styled_components_1 = require("@xstyled/styled-components");
|
|
34
33
|
var react_1 = __importDefault(require("react"));
|
|
35
|
-
var
|
|
34
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
36
35
|
var core_1 = require("../core");
|
|
37
36
|
var system_1 = require("../system");
|
|
38
37
|
var utils_1 = require("../utils");
|
|
39
|
-
|
|
40
|
-
exports.HeadingBase = styled_components_2.default.h2.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), generator);
|
|
38
|
+
exports.HeadingBase = styled_components_1.default.h2.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), system_1.system);
|
|
41
39
|
exports.Heading = core_1.vui(function (props, ref) {
|
|
42
40
|
var _a = core_1.omitThemingProps(props), align = _a.align, casing = _a.casing, children = _a.children, className = _a.className, decoration = _a.decoration, text = _a.text, weight = _a.weight, rest = __rest(_a, ["align", "casing", "children", "className", "decoration", "text", "weight"]);
|
|
43
41
|
var styles = core_1.useStyleConfig('Heading', props);
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SystemProps, TypographyProps } from '../system';
|
|
2
2
|
import { ThemingProps } from '../theme';
|
|
3
|
-
export interface HeadingProps extends
|
|
3
|
+
export interface HeadingProps extends SystemProps, ThemingProps<'Heading'> {
|
|
4
4
|
align?: TypographyProps['textAlign'];
|
|
5
5
|
casing?: TypographyProps['textTransform'];
|
|
6
6
|
decoration?: TypographyProps['textDecoration'];
|
|
7
7
|
text?: number | string;
|
|
8
8
|
weight?: TypographyProps['fontWeight'];
|
|
9
9
|
}
|
|
10
|
-
export interface HeadingStyleProps extends IsTruncatedProps, MaxLinesProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
|
11
|
-
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.default = {
|
|
5
|
+
details: [512, 512, [], '', 'M184 83.5l164.5 164c4.7 4.7 4.7 12.3 0 17L184 428.5c-4.7 4.7-12.3 4.7-17 0l-7.1-7.1c-4.7-4.7-4.7-12.3 0-17l132-131.4H12c-6.6 0-12-5.4-12-12v-10c0-6.6 5.4-12 12-12h279.9L160 107.6c-4.7-4.7-4.7-12.3 0-17l7.1-7.1c4.6-4.7 12.2-4.7 16.9 0zM512 400V112c0-26.5-21.5-48-48-48H332c-6.6 0-12 5.4-12 12v8c0 6.6 5.4 12 12 12h132c8.8 0 16 7.2 16 16v288c0 8.8-7.2 16-16 16H332c-6.6 0-12 5.4-12 12v8c0 6.6 5.4 12 12 12h132c26.5 0 48-21.5 48-48z'],
|
|
6
|
+
name: 'falSignIn'
|
|
7
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type BaseIcon = 'cuiCheckboxIndeterminate' | 'cuiCheckboxSelected' | 'cuiCheckboxUnselected' | 'cuiRadioSelected' | 'cuiRadioUnselected' | 'culCovid' | 'culDeepSearch' | 'culDotsMenu' | 'culGlobePlus' | 'culListDense' | 'culMapMarkerStar' | 'culPlusThin' | 'culScreenshot' | 'culScreenshotAlt' | 'culShortcut' | 'culTimesThin' | 'culTransformer' | 'culUserTransfer' | 'culVessel' | 'culVesselGroup' | 'cusCheckboxSelected' | 'cusDotFull' | 'cusDotFullAlt' | 'cusDotsMenu' | 'cusRadio' | 'cusSquareMinus' | 'cusTransformer' | 'cusVessel' | 'fabApplePay' | 'fabBluetooth' | 'fabBtc' | 'fabCcAmazonPay' | 'fabCcAmex' | 'fabCcApplePay' | 'fabCcDinersClub' | 'fabCcMastercard' | 'fabCcPaypal' | 'fabCcVisa' | 'fabDhl' | 'fabEbay' | 'fabFacebook' | 'fabFedex' | 'fabFirefox' | 'fabGoogle' | 'fabGoogleDrive' | 'fabLinkedinIn' | 'fabMedium' | 'fabOsi' | 'fabSlack' | 'fabTwitter' | 'fabUps' | 'falAddressBook' | 'falAddressCard' | 'falAnalytics' | 'falAngleDoubleDown' | 'falAngleDoubleLeft' | 'falAngleDoubleRight' | 'falAngleDoubleUp' | 'falAngleDown' | 'falAngleLeft' | 'falAngleRight' | 'falAngleUp' | 'falArrowAltDown' | 'falArrowAltLeft' | 'falArrowAltRight' | 'falArrowAltUp' | 'falArrowCircleDown' | 'falArrowCircleLeft' | 'falArrowCircleRight' | 'falArrowCircleUp' | 'falArrowDown' | 'falArrowFromBottom' | 'falArrowFromLeft' | 'falArrowFromRight' | 'falArrowFromTop' | 'falArrowLeft' | 'falArrowRight' | 'falArrowToBottom' | 'falArrowToLeft' | 'falArrowToRight' | 'falArrowToTop' | 'falArrowUp' | 'falArrows' | 'falAward' | 'falBan' | 'falBell' | 'falBookOpen' | 'falBroadcastTower' | 'falBuilding' | 'falBullseye' | 'falCalendar' | 'falCalendarAlt' | 'falCamera' | 'falCaretDown' | 'falCaretLeft' | 'falCaretRight' | 'falCaretUp' | 'falCauldron' | 'falChartArea' | 'falChartBar' | 'falChartLineDown' | 'falChartLine' | 'falChartNetwork' | 'falChartPie' | 'falChartPieAlt' | 'falChartScatter' | 'falCheckCircle' | 'falCheckSquare' | 'falCheck' | 'falChevronCircleDown' | 'falChevronCircleLeft' | 'falChevronCircleRight' | 'falChevronCircleUp' | 'falChevronDoubleDown' | 'falChevronDoubleLeft' | 'falChevronDoubleRight' | 'falChevronDoubleUp' | 'falChevronDown' | 'falChevronLeft' | 'falChevronRight' | 'falChevronUp' | 'falCircle' | 'falCloudShowersHeavy' | 'falCloudSnow' | 'falCloudSunRain' | 'falCloudSun' | 'falCloudUpload' | 'falCloud' | 'falCode' | 'falCog' | 'falCogs' | 'falComment' | 'falCommentAlt' | 'falCompressAlt' | 'falCopy' | 'falCreditCard' | 'falDatabase' | 'falDotCircle' | 'falDownload' | 'falEdit' | 'falEllipsisH' | 'falEllipsisV' | 'falEnvelope' | 'falExchange' | 'falExclamationCircle' | 'falExclamationTriangle' | 'falExpandAlt' | 'falExternalLink' | 'falEye' | 'falEyeSlash' | 'falFile' | 'falFilePdf' | 'falFileAlt' | 'falFileArchive' | 'falFileAudio' | 'falFileCertificate' | 'falFileChartLine' | 'falFileChartPie' | 'falFileCheck' | 'falFileCode' | 'falFileCsv' | 'falFileEdit' | 'falFileExcel' | 'falFileImage' | 'falFilePlus' | 'falFilePowerpoint' | 'falFileSpreadsheet' | 'falFileVideo' | 'falFileWord' | 'falFilter' | 'falFlag' | 'falFolderOpen' | 'falFolderPlus' | 'falFolder' | 'falFolders' | 'falGlassesAlt' | 'falGlobe' | 'falHome' | 'falHourglass' | 'falImage' | 'falInfoCircle' | 'falKey' | 'falLayerPlus' | 'falLink' | 'falList' | 'falLockAlt' | 'falLongArrowDown' | 'falLongArrowLeft' | 'falLongArrowRight' | 'falLongArrowUp' | 'falMapMarked' | 'falMapMarkedAlt' | 'falMapMarkerAlt' | 'falMapMarkerAltSlash' | 'falMapMarkerCheck' | 'falMapMarkerExclamation' | 'falMapMarker' | 'falMap' | 'falMinus' | 'falPause' | 'falPauseCircle' | 'falPen' | 'falPlay' | 'falPlayCircle' | 'falPlug' | 'falPlusSquare' | 'falPlus' | 'falPlusCircle' | 'falPrint' | 'falPuzzlePiece' | 'falReceipt' | 'falRedo' | 'falSave' | 'falSearchPlus' | 'falSearch' | 'falServer' | 'falShareAll' | 'falShare' | 'falShareAlt' | 'falShieldAlt' | 'falShieldCheck' | 'falShip' | 'falShoppingBasket' | 'falSignInAlt' | 'falSignOut' | 'falSignOutAlt' | 'falSlidersV' | 'falSnowBlowing' | 'falSnowflake' | 'falSolarPanel' | 'falSort' | 'falSpinner' | 'falSquare' | 'falStepForward' | 'falStop' | 'falStopCircle' | 'falStopwatch' | 'falSuitcase' | 'falSun' | 'falSync' | 'falTachometer' | 'falTemperatureHigh' | 'falThLarge' | 'falThList' | 'falTh' | 'falTimesCircle' | 'falTimes' | 'falToggleOff' | 'falToggleOn' | 'falTrashAlt' | 'falUnlockAlt' | 'falUserChart' | 'falUserCircle' | 'falUserCog' | 'falUserEdit' | 'falUserFriends' | 'falUserPlus' | 'falUserShield' | 'falUserTimes' | 'falUser' | 'falUsersClass' | 'falUsers' | 'falWater' | 'falWindTurbine' | 'falWind' | 'falWrench' | 'fasCaretDown' | 'fasCaretLeft' | 'fasCaretRight' | 'fasCaretUp' | 'fasDiamond' | 'fasFolder' | 'fasMapMarkerAlt' | 'fasMapMarkerExclamation' | 'fasQuoteLeft' | 'fasQuoteRight' | 'fasSolarPanel' | 'fasSort' | 'fasStar' | 'fasWindTurbine';
|
|
1
|
+
export declare type BaseIcon = 'cuiCheckboxIndeterminate' | 'cuiCheckboxSelected' | 'cuiCheckboxUnselected' | 'cuiRadioSelected' | 'cuiRadioUnselected' | 'culCovid' | 'culDeepSearch' | 'culDotsMenu' | 'culGlobePlus' | 'culListDense' | 'culMapMarkerStar' | 'culPlusThin' | 'culScreenshot' | 'culScreenshotAlt' | 'culShortcut' | 'culTimesThin' | 'culTransformer' | 'culUserTransfer' | 'culVessel' | 'culVesselGroup' | 'cusCheckboxSelected' | 'cusDotFull' | 'cusDotFullAlt' | 'cusDotsMenu' | 'cusRadio' | 'cusSquareMinus' | 'cusTransformer' | 'cusVessel' | 'fabApplePay' | 'fabBluetooth' | 'fabBtc' | 'fabCcAmazonPay' | 'fabCcAmex' | 'fabCcApplePay' | 'fabCcDinersClub' | 'fabCcMastercard' | 'fabCcPaypal' | 'fabCcVisa' | 'fabDhl' | 'fabEbay' | 'fabFacebook' | 'fabFedex' | 'fabFirefox' | 'fabGoogle' | 'fabGoogleDrive' | 'fabLinkedinIn' | 'fabMedium' | 'fabOsi' | 'fabSlack' | 'fabTwitter' | 'fabUps' | 'falAddressBook' | 'falAddressCard' | 'falAnalytics' | 'falAngleDoubleDown' | 'falAngleDoubleLeft' | 'falAngleDoubleRight' | 'falAngleDoubleUp' | 'falAngleDown' | 'falAngleLeft' | 'falAngleRight' | 'falAngleUp' | 'falArrowAltDown' | 'falArrowAltLeft' | 'falArrowAltRight' | 'falArrowAltUp' | 'falArrowCircleDown' | 'falArrowCircleLeft' | 'falArrowCircleRight' | 'falArrowCircleUp' | 'falArrowDown' | 'falArrowFromBottom' | 'falArrowFromLeft' | 'falArrowFromRight' | 'falArrowFromTop' | 'falArrowLeft' | 'falArrowRight' | 'falArrowToBottom' | 'falArrowToLeft' | 'falArrowToRight' | 'falArrowToTop' | 'falArrowUp' | 'falArrows' | 'falAward' | 'falBan' | 'falBell' | 'falBookOpen' | 'falBroadcastTower' | 'falBuilding' | 'falBullseye' | 'falCalendar' | 'falCalendarAlt' | 'falCamera' | 'falCaretDown' | 'falCaretLeft' | 'falCaretRight' | 'falCaretUp' | 'falCauldron' | 'falChartArea' | 'falChartBar' | 'falChartLineDown' | 'falChartLine' | 'falChartNetwork' | 'falChartPie' | 'falChartPieAlt' | 'falChartScatter' | 'falCheckCircle' | 'falCheckSquare' | 'falCheck' | 'falChevronCircleDown' | 'falChevronCircleLeft' | 'falChevronCircleRight' | 'falChevronCircleUp' | 'falChevronDoubleDown' | 'falChevronDoubleLeft' | 'falChevronDoubleRight' | 'falChevronDoubleUp' | 'falChevronDown' | 'falChevronLeft' | 'falChevronRight' | 'falChevronUp' | 'falCircle' | 'falCloudShowersHeavy' | 'falCloudSnow' | 'falCloudSunRain' | 'falCloudSun' | 'falCloudUpload' | 'falCloud' | 'falCode' | 'falCog' | 'falCogs' | 'falComment' | 'falCommentAlt' | 'falCompressAlt' | 'falCopy' | 'falCreditCard' | 'falDatabase' | 'falDotCircle' | 'falDownload' | 'falEdit' | 'falEllipsisH' | 'falEllipsisV' | 'falEnvelope' | 'falExchange' | 'falExclamationCircle' | 'falExclamationTriangle' | 'falExpandAlt' | 'falExternalLink' | 'falEye' | 'falEyeSlash' | 'falFile' | 'falFilePdf' | 'falFileAlt' | 'falFileArchive' | 'falFileAudio' | 'falFileCertificate' | 'falFileChartLine' | 'falFileChartPie' | 'falFileCheck' | 'falFileCode' | 'falFileCsv' | 'falFileEdit' | 'falFileExcel' | 'falFileImage' | 'falFilePlus' | 'falFilePowerpoint' | 'falFileSpreadsheet' | 'falFileVideo' | 'falFileWord' | 'falFilter' | 'falFlag' | 'falFolderOpen' | 'falFolderPlus' | 'falFolder' | 'falFolders' | 'falGlassesAlt' | 'falGlobe' | 'falHome' | 'falHourglass' | 'falImage' | 'falInfoCircle' | 'falKey' | 'falLayerPlus' | 'falLink' | 'falList' | 'falLockAlt' | 'falLongArrowDown' | 'falLongArrowLeft' | 'falLongArrowRight' | 'falLongArrowUp' | 'falMapMarked' | 'falMapMarkedAlt' | 'falMapMarkerAlt' | 'falMapMarkerAltSlash' | 'falMapMarkerCheck' | 'falMapMarkerExclamation' | 'falMapMarker' | 'falMap' | 'falMinus' | 'falPause' | 'falPauseCircle' | 'falPen' | 'falPlay' | 'falPlayCircle' | 'falPlug' | 'falPlusSquare' | 'falPlus' | 'falPlusCircle' | 'falPrint' | 'falPuzzlePiece' | 'falReceipt' | 'falRedo' | 'falSave' | 'falSearchPlus' | 'falSearch' | 'falServer' | 'falShareAll' | 'falShare' | 'falShareAlt' | 'falShieldAlt' | 'falShieldCheck' | 'falShip' | 'falShoppingBasket' | 'falSignIn' | 'falSignInAlt' | 'falSignOut' | 'falSignOutAlt' | 'falSlidersV' | 'falSnowBlowing' | 'falSnowflake' | 'falSolarPanel' | 'falSort' | 'falSpinner' | 'falSquare' | 'falStepForward' | 'falStop' | 'falStopCircle' | 'falStopwatch' | 'falSuitcase' | 'falSun' | 'falSync' | 'falTachometer' | 'falTemperatureHigh' | 'falThLarge' | 'falThList' | 'falTh' | 'falTimesCircle' | 'falTimes' | 'falToggleOff' | 'falToggleOn' | 'falTrashAlt' | 'falUnlockAlt' | 'falUserChart' | 'falUserCircle' | 'falUserCog' | 'falUserEdit' | 'falUserFriends' | 'falUserPlus' | 'falUserShield' | 'falUserTimes' | 'falUser' | 'falUsersClass' | 'falUsers' | 'falWater' | 'falWindTurbine' | 'falWind' | 'falWrench' | 'fasCaretDown' | 'fasCaretLeft' | 'fasCaretRight' | 'fasCaretUp' | 'fasDiamond' | 'fasFolder' | 'fasMapMarkerAlt' | 'fasMapMarkerExclamation' | 'fasQuoteLeft' | 'fasQuoteRight' | 'fasSolarPanel' | 'fasSort' | 'fasStar' | 'fasWindTurbine';
|
package/input/input.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { InputInputStyleProps, InputProps
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const InputBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, InputStyleProps, never>;
|
|
1
|
+
import { InputInputStyleProps, InputProps } from './input.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
export declare const InputInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, InputInputStyleProps, never>;
|
|
4
|
+
export declare const InputBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
6
5
|
export declare const Input: import("../core").VuiComponent<"div", InputProps>;
|
|
7
6
|
export default Input;
|
package/input/input.js
CHANGED
|
@@ -36,10 +36,10 @@ var styled_components_2 = __importDefault(require("styled-components"));
|
|
|
36
36
|
var consts_1 = require("./consts");
|
|
37
37
|
var core_1 = require("../core");
|
|
38
38
|
var icon_1 = __importDefault(require("../icon"));
|
|
39
|
+
var system_1 = require("../system");
|
|
39
40
|
var utils_1 = require("../utils");
|
|
40
|
-
var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.flexboxes, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions);
|
|
41
41
|
exports.InputInput = styled_components_2.default.input(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-self: stretch;\n\tbackground-color: transparent;\n\tborder: none;\n\tflex: 1;\n\tmargin: 0 8px;\n\tmin-width: 0;\n\toutline: none;\n\tpadding: 0;\n\n\t:disabled,\n\t:disabled::placeholder {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n\n\t", "\n"], ["\n\talign-self: stretch;\n\tbackground-color: transparent;\n\tborder: none;\n\tflex: 1;\n\tmargin: 0 8px;\n\tmin-width: 0;\n\toutline: none;\n\tpadding: 0;\n\n\t:disabled,\n\t:disabled::placeholder {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n\n\t", "\n"])), styled_components_1.compose(styled_components_1.color, styled_components_1.fontSize));
|
|
42
|
-
exports.InputBase = styled_components_2.default.div.withConfig(core_1.forwardPropConfig(
|
|
42
|
+
exports.InputBase = styled_components_2.default.div.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tborder-width: 1px;\n\tdisplay: flex;\n\toutline: none;\n\twidth: 100%;\n\n\t&.disabled {\n\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tborder-width: 1px;\n\tdisplay: flex;\n\toutline: none;\n\twidth: 100%;\n\n\t&.disabled {\n\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n\n\t", "\n"])), system_1.system);
|
|
43
43
|
exports.Input = core_1.vui(function (props, ref) {
|
|
44
44
|
var _a;
|
|
45
45
|
var _b = core_1.omitThemingProps(props), autoComplete = _b.autoComplete, autoFocus = _b.autoFocus, className = _b.className, colorSchemeProp = _b.colorScheme, defaultValue = _b.defaultValue, disabled = _b.disabled, iconLeft = _b.iconLeft, iconRightProp = _b.iconRight, _c = _b.inputProps, inputProps = _c === void 0 ? {} : _c, inputRef = _b.inputRef, itemLeft = _b.itemLeft, itemRight = _b.itemRight, _d = _b.length, length = _d === void 0 ? 'fluid' : _d, name = _b.name, onBlur = _b.onBlur, onChange = _b.onChange, onFocus = _b.onFocus, placeholder = _b.placeholder, readOnly = _b.readOnly, required = _b.required, _e = _b.state, state = _e === void 0 ? 'default' : _e, stateMapping = _b.stateMapping, _f = _b.type, type = _f === void 0 ? 'text' : _f, value = _b.value, rest = __rest(_b, ["autoComplete", "autoFocus", "className", "colorScheme", "defaultValue", "disabled", "iconLeft", "iconRight", "inputProps", "inputRef", "itemLeft", "itemRight", "length", "name", "onBlur", "onChange", "onFocus", "placeholder", "readOnly", "required", "state", "stateMapping", "type", "value"]);
|
package/input/input.types.d.ts
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import { inputLengths } from './consts';
|
|
3
3
|
import { ChangeEventHandler, FocusEventHandler } from '../core';
|
|
4
4
|
import { IconProp } from '../icon';
|
|
5
|
-
import {
|
|
5
|
+
import { ColorProps, FontSizeProps, SystemProps } from '../system';
|
|
6
6
|
import { ThemingProps } from '../theme';
|
|
7
7
|
export interface InputInputProps extends InputInputStyleProps {
|
|
8
8
|
}
|
|
9
9
|
export interface InputInputStyleProps extends ColorProps, FontSizeProps {
|
|
10
10
|
}
|
|
11
11
|
export declare type InputLength = keyof typeof inputLengths;
|
|
12
|
-
export interface InputProps extends
|
|
12
|
+
export interface InputProps extends SystemProps, ThemingProps<'Input'> {
|
|
13
13
|
autoComplete?: string;
|
|
14
14
|
autoFocus?: boolean;
|
|
15
15
|
colorScheme?: 'green' | 'grey' | 'red';
|
|
@@ -38,5 +38,3 @@ export declare type InputStateMapping = Record<string, {
|
|
|
38
38
|
colorScheme?: InputProps['colorScheme'];
|
|
39
39
|
iconRight: InputProps['iconRight'];
|
|
40
40
|
}>;
|
|
41
|
-
export interface InputStyleProps extends BackgroundColorProps, BordersProps, EffectsProps, SizingProps, SpaceProps, TransitionsProps {
|
|
42
|
-
}
|
package/label/label.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { LabelProps
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, never>;
|
|
1
|
+
import { LabelProps } from './label.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
export declare const LabelBase: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
5
4
|
export declare const Label: import("../core").VuiComponent<"span", LabelProps>;
|
|
6
5
|
export default Label;
|
package/label/label.js
CHANGED
|
@@ -30,16 +30,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
32
|
exports.Label = exports.LabelBase = void 0;
|
|
33
|
-
var styled_components_1 = require("@xstyled/styled-components");
|
|
34
33
|
var react_1 = __importDefault(require("react"));
|
|
35
|
-
var
|
|
34
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
36
35
|
var core_1 = require("../core");
|
|
37
36
|
var icon_1 = __importDefault(require("../icon"));
|
|
38
37
|
var system_1 = require("../system");
|
|
39
38
|
var utils_1 = require("../utils");
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
exports.LabelBase = styled_components_2.default.span.withConfig(core_1.forwardPropConfig(generator))(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\tline-height: normal;\n\tmin-width: 0px;\n\tposition: relative;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\tline-height: normal;\n\tmin-width: 0px;\n\tposition: relative;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t", "\n"])), generator);
|
|
39
|
+
var Text = styled_components_1.default.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), system_1.isTruncated);
|
|
40
|
+
exports.LabelBase = styled_components_1.default.span.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\tline-height: normal;\n\tmin-width: 0px;\n\tposition: relative;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\tline-height: normal;\n\tmin-width: 0px;\n\tposition: relative;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t", "\n"])), system_1.system);
|
|
43
41
|
exports.Label = core_1.vui(function (props, ref) {
|
|
44
42
|
var _a = core_1.omitThemingProps(props), casing = _a.casing, children = _a.children, className = _a.className, icon = _a.icon, iconLeft = _a.iconLeft, iconRight = _a.iconRight, isElevated = _a.isElevated, isFullWidth = _a.isFullWidth, _b = _a.isInteractive, isInteractive = _b === void 0 ? props.onClick !== undefined : _b, isLoading = _a.isLoading, isRound = _a.isRound, isSplit = _a.isSplit, _c = _a.isTruncated, isTruncated = _c === void 0 ? true : _c, itemLeft = _a.itemLeft, itemRight = _a.itemRight, text = _a.text, weight = _a.weight, rest = __rest(_a, ["casing", "children", "className", "icon", "iconLeft", "iconRight", "isElevated", "isFullWidth", "isInteractive", "isLoading", "isRound", "isSplit", "isTruncated", "itemLeft", "itemRight", "text", "weight"]);
|
|
45
43
|
var _d = core_1.useStyleConfig('Label', props), activeBg = _d.activeBg, h = _d.h, hoverBg = _d.hoverBg, _e = _d.iconSize, iconSize = _e === void 0 ? 'md' : _e, _f = _d.spaceX, spaceXBase = _f === void 0 ? 0 : _f, styles = __rest(_d, ["activeBg", "h", "hoverBg", "iconSize", "spaceX"]);
|
package/label/label.types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconProp } from '../icon';
|
|
3
|
-
import {
|
|
3
|
+
import { SystemProps, TypographyProps } from '../system';
|
|
4
4
|
import { ThemingProps } from '../theme';
|
|
5
|
-
export interface LabelProps extends
|
|
5
|
+
export interface LabelProps extends SystemProps, ThemingProps<'Label'> {
|
|
6
6
|
casing?: TypographyProps['textTransform'];
|
|
7
7
|
colorScheme?: 'blue' | 'green' | 'grey' | 'prussian' | 'red' | 'yellow';
|
|
8
8
|
icon?: IconProp;
|
|
@@ -19,5 +19,3 @@ export interface LabelProps extends LabelStyleProps, ThemingProps<'Label'> {
|
|
|
19
19
|
text?: number | string;
|
|
20
20
|
weight?: TypographyProps['fontWeight'];
|
|
21
21
|
}
|
|
22
|
-
export interface LabelStyleProps extends BackgroundColorProps, BordersProps, EffectsProps, InteractivityProps, IsTruncatedProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
|
23
|
-
}
|