@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/system/typography.d.ts
CHANGED
|
@@ -1,68 +1,75 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SystemProp, VariantsType } from '@xstyled/system';
|
|
2
2
|
import { Globals, Property } from 'csstype';
|
|
3
3
|
import { ColorGetter } from './colors';
|
|
4
4
|
import { VuiTheme } from '../theme';
|
|
5
|
-
export declare type FontGetter
|
|
6
|
-
export declare type FontSizeGetter
|
|
7
|
-
export declare type FontWeightGetter
|
|
8
|
-
export declare type LineHeightGetter
|
|
9
|
-
declare type FontFamilyProp
|
|
10
|
-
export interface FontFamilyProps
|
|
11
|
-
fontFamily?: FontFamilyProp
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
declare type
|
|
30
|
-
export interface
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
placeholderColor?: ColorProp<T>;
|
|
40
|
-
}
|
|
41
|
-
declare type TextTransformProp<T extends ITheme> = SystemProp<Property.TextTransform, T>;
|
|
42
|
-
export interface TextTransformProps<T extends ITheme = VuiTheme> {
|
|
43
|
-
textTransform?: TextTransformProp<T>;
|
|
44
|
-
hoverTextTransform?: TextTransformProp<T>;
|
|
5
|
+
export declare type FontGetter = VariantsType<VuiTheme['fonts']>;
|
|
6
|
+
export declare type FontSizeGetter = VariantsType<VuiTheme['fontSizes']>;
|
|
7
|
+
export declare type FontWeightGetter = VariantsType<VuiTheme['fontWeights']>;
|
|
8
|
+
export declare type LineHeightGetter = VariantsType<unknown>;
|
|
9
|
+
declare type FontFamilyProp = SystemProp<FontGetter, VuiTheme>;
|
|
10
|
+
export interface FontFamilyProps {
|
|
11
|
+
fontFamily?: FontFamilyProp;
|
|
12
|
+
}
|
|
13
|
+
declare type FontSizeProp = SystemProp<FontSizeGetter, VuiTheme>;
|
|
14
|
+
export interface FontSizeProps {
|
|
15
|
+
fontSize?: FontSizeProp;
|
|
16
|
+
}
|
|
17
|
+
declare type FontStyleProp = SystemProp<Property.FontStyle, VuiTheme>;
|
|
18
|
+
export interface FontStyleProps {
|
|
19
|
+
fontStyle?: FontStyleProp;
|
|
20
|
+
}
|
|
21
|
+
declare type FontWeightProp = SystemProp<FontWeightGetter, VuiTheme>;
|
|
22
|
+
export interface FontWeightProps {
|
|
23
|
+
fontWeight?: FontWeightProp;
|
|
24
|
+
}
|
|
25
|
+
declare type LineHeightProp = SystemProp<LineHeightGetter, VuiTheme>;
|
|
26
|
+
export interface LineHeightProps {
|
|
27
|
+
lineHeight?: LineHeightProp;
|
|
28
|
+
}
|
|
29
|
+
declare type ColorProp = ColorGetter;
|
|
30
|
+
export interface ColorProps {
|
|
31
|
+
color?: ColorProp;
|
|
32
|
+
disabledColor?: ColorProp;
|
|
33
|
+
hoverColor?: ColorProp;
|
|
34
|
+
placeholderColor?: ColorProp;
|
|
35
|
+
}
|
|
36
|
+
declare type TextTransformProp = SystemProp<Property.TextTransform, VuiTheme>;
|
|
37
|
+
export interface TextTransformProps {
|
|
38
|
+
textTransform?: TextTransformProp;
|
|
45
39
|
}
|
|
46
40
|
declare type TextDecoration = Globals | 'overline' | 'underline' | 'line-through';
|
|
47
|
-
declare type TextDecorationProp
|
|
48
|
-
export interface TextDecorationProps
|
|
49
|
-
textDecoration?: TextDecorationProp
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
41
|
+
declare type TextDecorationProp = SystemProp<TextDecoration, VuiTheme>;
|
|
42
|
+
export interface TextDecorationProps {
|
|
43
|
+
textDecoration?: TextDecorationProp;
|
|
44
|
+
}
|
|
45
|
+
declare type TextAlignProp = SystemProp<Property.TextAlign, VuiTheme>;
|
|
46
|
+
export interface TextAlignProps {
|
|
47
|
+
textAlign?: TextAlignProp;
|
|
48
|
+
}
|
|
49
|
+
declare type VerticalAlignProp = SystemProp<Property.VerticalAlign, VuiTheme>;
|
|
50
|
+
export interface VerticalAlignProps {
|
|
51
|
+
verticalAlign?: VerticalAlignProp;
|
|
52
|
+
}
|
|
53
|
+
declare type LetterSpacingProp = SystemProp<Property.LetterSpacing, VuiTheme>;
|
|
54
|
+
export interface LetterSpacingProps {
|
|
55
|
+
letterSpacing?: LetterSpacingProp;
|
|
56
|
+
}
|
|
57
|
+
declare type WhiteSpaceProp = SystemProp<Property.WhiteSpace, VuiTheme>;
|
|
58
|
+
export interface WhiteSpaceProps {
|
|
59
|
+
whiteSpace?: WhiteSpaceProp;
|
|
60
|
+
}
|
|
61
|
+
declare type TextOverflowProp = SystemProp<Property.TextOverflow, VuiTheme>;
|
|
62
|
+
export interface TextOverflowProps {
|
|
63
|
+
textOverflow?: TextOverflowProp;
|
|
64
|
+
}
|
|
65
|
+
declare type ListStyleTypeProp = SystemProp<Property.ListStyleType, VuiTheme>;
|
|
66
|
+
export interface ListStyleTypeProps {
|
|
67
|
+
listStyleType?: ListStyleTypeProp;
|
|
68
|
+
}
|
|
69
|
+
declare type ListStylePositionProp = SystemProp<Property.ListStylePosition, VuiTheme>;
|
|
70
|
+
export interface ListStylePositionProps {
|
|
71
|
+
listStylePosition?: ListStylePositionProp;
|
|
72
|
+
}
|
|
73
|
+
export interface TypographyProps extends FontFamilyProps, FontSizeProps, FontStyleProps, FontWeightProps, LineHeightProps, ColorProps, TextTransformProps, TextDecorationProps, TextAlignProps, VerticalAlignProps, LetterSpacingProps, WhiteSpaceProps, TextOverflowProps, ListStyleTypeProps, ListStylePositionProps {
|
|
67
74
|
}
|
|
68
75
|
export {};
|
package/t/t.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TProps
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, never>;
|
|
1
|
+
import { TProps } from './t.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
export declare const TBase: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
5
4
|
export declare const T: import("../core").VuiComponent<"span", TProps>;
|
|
6
5
|
export default T;
|
package/t/t.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.T = exports.TBase = 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.TBase = styled_components_2.default.span.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), generator);
|
|
38
|
+
exports.TBase = styled_components_1.default.span.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), system_1.system);
|
|
41
39
|
exports.T = core_1.vui(function (props, ref) {
|
|
42
40
|
var _a = core_1.omitThemingProps(props), align = _a.align, casing = _a.casing, centerV = _a.centerV, children = _a.children, className = _a.className, decoration = _a.decoration, isFlex = _a.isFlex, text = _a.text, weight = _a.weight, rest = __rest(_a, ["align", "casing", "centerV", "children", "className", "decoration", "isFlex", "text", "weight"]);
|
|
43
41
|
var styles = core_1.useStyleConfig('T', props);
|
package/t/t.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SystemProps, TypographyProps } from '../system';
|
|
2
2
|
import { ThemingProps } from '../theme';
|
|
3
|
-
export interface TProps extends
|
|
3
|
+
export interface TProps extends SystemProps, ThemingProps<'T'> {
|
|
4
4
|
align?: TypographyProps['textAlign'];
|
|
5
5
|
casing?: TypographyProps['textTransform'];
|
|
6
6
|
centerV?: boolean;
|
|
@@ -9,5 +9,3 @@ export interface TProps extends TStyleProps, ThemingProps<'T'> {
|
|
|
9
9
|
text?: number | string;
|
|
10
10
|
weight?: TypographyProps['fontWeight'];
|
|
11
11
|
}
|
|
12
|
-
export interface TStyleProps extends BackgroundColorProps, BordersProps, CursorProps, FlexboxesProps, IsTruncatedProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
|
13
|
-
}
|
package/textarea/textarea.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TextareaProps
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, never>;
|
|
1
|
+
import { TextareaProps } from './textarea.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
export declare const TextareaBase: import("styled-components").StyledComponent<"textarea", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
5
4
|
export declare const Textarea: import("../core").VuiComponent<"textarea", TextareaProps>;
|
|
6
5
|
export default Textarea;
|
package/textarea/textarea.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.Textarea = exports.TextareaBase = 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.TextareaBase = styled_components_2.default.textarea.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tborder-width: 1px;\n\tmin-height: 80px;\n\toutline: none;\n\tresize: none;\n\twidth: 100%;\n\n\t:disabled,\n\t:disabled::placeholder {\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\t:focus {\n\t\tborder-color: transparent;\n\t}\n\n\t", "\n"], ["\n\tborder-width: 1px;\n\tmin-height: 80px;\n\toutline: none;\n\tresize: none;\n\twidth: 100%;\n\n\t:disabled,\n\t:disabled::placeholder {\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\t:focus {\n\t\tborder-color: transparent;\n\t}\n\n\t", "\n"])), generator);
|
|
38
|
+
exports.TextareaBase = styled_components_1.default.textarea.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tborder-width: 1px;\n\tmin-height: 80px;\n\toutline: none;\n\tresize: none;\n\twidth: 100%;\n\n\t:disabled,\n\t:disabled::placeholder {\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\t:focus {\n\t\tborder-color: transparent;\n\t}\n\n\t", "\n"], ["\n\tborder-width: 1px;\n\tmin-height: 80px;\n\toutline: none;\n\tresize: none;\n\twidth: 100%;\n\n\t:disabled,\n\t:disabled::placeholder {\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\t:focus {\n\t\tborder-color: transparent;\n\t}\n\n\t", "\n"])), system_1.system);
|
|
40
39
|
exports.Textarea = core_1.vui(function (props, ref) {
|
|
41
40
|
var _a = core_1.omitThemingProps(props), className = _a.className, rest = __rest(_a, ["className"]);
|
|
42
41
|
var styles = core_1.useStyleConfig('Textarea', props);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SystemProps } from '../system';
|
|
2
2
|
import { ThemingProps } from '../theme';
|
|
3
|
-
export interface TextareaProps extends
|
|
3
|
+
export interface TextareaProps extends SystemProps, ThemingProps<'Textarea'> {
|
|
4
4
|
colorScheme?: 'green' | 'grey' | 'red';
|
|
5
5
|
}
|
|
6
|
-
export interface TextareaStyleProps extends BackgroundColorProps, BordersProps, ColorProps, FontSizeProps, ResizeProps, SizingProps, SpaceProps, TransitionsProps {
|
|
7
|
-
}
|
package/theme/components.d.ts
CHANGED
package/theme/defaultTheme.d.ts
CHANGED
package/tile/tile.types.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { BoxProps
|
|
1
|
+
import { BoxProps } from '../box';
|
|
2
2
|
import { ThemingProps } from '../theme';
|
|
3
|
-
export interface TileProps extends Omit<BoxProps, 'size' | 'variant'>,
|
|
3
|
+
export interface TileProps extends Omit<BoxProps, 'size' | 'variant'>, ThemingProps<'Tile'> {
|
|
4
4
|
isInteractive?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export interface TileStyleProps extends BoxStyleProps {
|
|
7
|
-
}
|