@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.
Files changed (94) hide show
  1. package/avatar/avatar.d.ts +3 -4
  2. package/avatar/avatar.js +2 -2
  3. package/avatar/avatar.types.d.ts +2 -6
  4. package/box/box.d.ts +3 -4
  5. package/box/box.js +3 -4
  6. package/box/box.types.d.ts +2 -4
  7. package/button/button.d.ts +3 -4
  8. package/button/button.js +5 -6
  9. package/button/button.types.d.ts +2 -4
  10. package/button/buttonGroup.d.ts +3 -2
  11. package/button/buttonGroup.js +3 -4
  12. package/button/buttonGroup.types.d.ts +2 -4
  13. package/button/theme.d.ts +1 -0
  14. package/button/theme.js +1 -0
  15. package/checkbox/checkbox.d.ts +3 -2
  16. package/checkbox/checkbox.js +5 -7
  17. package/checkbox/checkbox.types.d.ts +4 -6
  18. package/checkbox/checkboxGroup.d.ts +3 -2
  19. package/checkbox/checkboxGroup.js +3 -4
  20. package/checkbox/checkboxGroup.types.d.ts +2 -4
  21. package/divider/divider.d.ts +3 -2
  22. package/divider/divider.js +3 -4
  23. package/divider/divider.types.d.ts +2 -4
  24. package/heading/heading.d.ts +3 -4
  25. package/heading/heading.js +2 -4
  26. package/heading/heading.types.d.ts +2 -4
  27. package/icons/baseIcons/fal/falSignIn.d.ts +3 -0
  28. package/icons/baseIcons/fal/falSignIn.js +7 -0
  29. package/icons/baseIcons/types.d.ts +1 -1
  30. package/input/input.d.ts +4 -5
  31. package/input/input.js +2 -2
  32. package/input/input.types.d.ts +2 -4
  33. package/label/label.d.ts +3 -4
  34. package/label/label.js +3 -5
  35. package/label/label.types.d.ts +2 -4
  36. package/link/link.d.ts +3 -4
  37. package/link/link.js +2 -4
  38. package/link/link.types.d.ts +2 -4
  39. package/list/list.d.ts +3 -2
  40. package/list/list.js +3 -4
  41. package/list/list.types.d.ts +2 -4
  42. package/list/listItem.d.ts +3 -2
  43. package/list/listItem.js +3 -4
  44. package/list/listItem.types.d.ts +2 -4
  45. package/p/p.d.ts +3 -4
  46. package/p/p.js +2 -4
  47. package/p/p.types.d.ts +2 -4
  48. package/package.json +1 -1
  49. package/radio/radio.d.ts +3 -2
  50. package/radio/radio.js +5 -7
  51. package/radio/radio.types.d.ts +4 -6
  52. package/radio/radioGroup.d.ts +3 -2
  53. package/radio/radioGroup.js +3 -4
  54. package/radio/radioGroup.types.d.ts +2 -4
  55. package/skeleton/skeleton.d.ts +3 -2
  56. package/skeleton/skeleton.js +3 -4
  57. package/skeleton/skeleton.types.d.ts +2 -4
  58. package/spinner/spinner.js +3 -4
  59. package/spinner/spinner.types.d.ts +2 -2
  60. package/svg/svg.d.ts +4 -3
  61. package/svg/svg.js +3 -4
  62. package/svg/svg.types.d.ts +2 -11
  63. package/switch/switch.d.ts +3 -2
  64. package/switch/switch.js +3 -4
  65. package/switch/switch.types.d.ts +2 -4
  66. package/switch/switchButton.d.ts +5 -4
  67. package/switch/switchButton.js +6 -9
  68. package/switch/switchButton.types.d.ts +2 -8
  69. package/system/animations.d.ts +9 -7
  70. package/system/backgrounds.d.ts +8 -8
  71. package/system/borders.d.ts +138 -129
  72. package/system/colors.d.ts +1 -2
  73. package/system/effects.d.ts +15 -12
  74. package/system/flexboxes.d.ts +43 -54
  75. package/system/index.d.ts +2 -0
  76. package/system/index.js +7 -0
  77. package/system/interactivity.d.ts +17 -23
  78. package/system/layout.d.ts +69 -74
  79. package/system/sizing.d.ts +27 -27
  80. package/system/space.d.ts +89 -87
  81. package/system/system.d.ts +17 -0
  82. package/system/system.js +5 -0
  83. package/system/transforms.d.ts +53 -53
  84. package/system/transitions.d.ts +20 -25
  85. package/system/typography.d.ts +68 -61
  86. package/t/t.d.ts +3 -4
  87. package/t/t.js +2 -4
  88. package/t/t.types.d.ts +2 -4
  89. package/textarea/textarea.d.ts +3 -4
  90. package/textarea/textarea.js +3 -4
  91. package/textarea/textarea.types.d.ts +2 -4
  92. package/theme/components.d.ts +1 -0
  93. package/theme/defaultTheme.d.ts +1 -0
  94. package/tile/tile.types.d.ts +2 -4
@@ -1,68 +1,75 @@
1
- import { ITheme, SystemProp, VariantsType } from '@xstyled/system';
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<T extends ITheme = VuiTheme> = VariantsType<T['fonts']>;
6
- export declare type FontSizeGetter<T extends ITheme = VuiTheme> = VariantsType<T['fontSizes']>;
7
- export declare type FontWeightGetter<T extends ITheme = VuiTheme> = VariantsType<T['fontWeights']>;
8
- export declare type LineHeightGetter<T extends ITheme = VuiTheme> = VariantsType<T['lineHeights']>;
9
- declare type FontFamilyProp<T extends ITheme> = SystemProp<FontGetter<T>, T>;
10
- export interface FontFamilyProps<T extends ITheme = VuiTheme> {
11
- fontFamily?: FontFamilyProp<T>;
12
- hoverFontFamily?: FontFamilyProp<T>;
13
- }
14
- declare type FontSizeProp<T extends ITheme> = SystemProp<FontSizeGetter<T>, T>;
15
- export interface FontSizeProps<T extends ITheme = VuiTheme> {
16
- fontSize?: FontSizeProp<T>;
17
- hoverFontSize?: FontSizeProp<T>;
18
- }
19
- declare type FontStyleProp<T extends ITheme> = SystemProp<Property.FontStyle, T>;
20
- export interface FontStyleProps<T extends ITheme = VuiTheme> {
21
- fontStyle?: FontStyleProp<T>;
22
- hoverFontStyle?: FontStyleProp<T>;
23
- }
24
- declare type FontWeightProp<T extends ITheme> = SystemProp<FontWeightGetter<T>, T>;
25
- export interface FontWeightProps<T extends ITheme = VuiTheme> {
26
- fontWeight?: FontWeightProp<T>;
27
- hoverFontWeight?: FontWeightProp<T>;
28
- }
29
- declare type LineHeightProp<T extends ITheme> = SystemProp<LineHeightGetter<T>, T>;
30
- export interface LineHeightProps<T extends ITheme = VuiTheme> {
31
- lineHeight?: LineHeightProp<T>;
32
- hoverLineHeight?: LineHeightProp<T>;
33
- }
34
- declare type ColorProp<T extends ITheme> = SystemProp<ColorGetter<T>, T>;
35
- export interface ColorProps<T extends ITheme = VuiTheme> {
36
- color?: ColorProp<T>;
37
- disabledColor?: ColorProp<T>;
38
- hoverColor?: ColorProp<T>;
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<T extends ITheme> = SystemProp<TextDecoration, T>;
48
- export interface TextDecorationProps<T extends ITheme = VuiTheme> {
49
- textDecoration?: TextDecorationProp<T>;
50
- hoverTextDecoration?: TextDecorationProp<T>;
51
- }
52
- declare type TextAlignProp<T extends ITheme> = SystemProp<Property.TextAlign, T>;
53
- export interface TextAlignProps<T extends ITheme = VuiTheme> {
54
- textAlign?: TextAlignProp<T>;
55
- hoverTextAlign?: TextAlignProp<T>;
56
- }
57
- declare type VerticalAlignProp<T extends ITheme> = SystemProp<Property.VerticalAlign, T>;
58
- export interface VerticalAlignProps<T extends ITheme = VuiTheme> {
59
- verticalAlign?: VerticalAlignProp<T>;
60
- hoverVerticalAlign?: VerticalAlignProp<T>;
61
- }
62
- declare type ListStyleTypeProp<T extends ITheme> = SystemProp<Property.ListStyleType, T>;
63
- export interface ListStyleTypeProps<T extends ITheme = VuiTheme> {
64
- listStyleType?: ListStyleTypeProp<T>;
65
- }
66
- export interface TypographyProps<T extends ITheme = VuiTheme> extends FontFamilyProps<T>, FontSizeProps<T>, FontStyleProps<T>, FontWeightProps<T>, LineHeightProps<T>, ColorProps<T>, TextTransformProps<T>, TextDecorationProps<T>, TextAlignProps<T>, VerticalAlignProps<T>, ListStyleTypeProps<T> {
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, TStyleProps } from './t.types';
2
- export declare const TBase: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, TStyleProps & {
3
- color?: any;
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 styled_components_2 = __importDefault(require("styled-components"));
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
- var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.cursor, styled_components_1.flexboxes, system_1.isTruncated, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
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 { BackgroundColorProps, BordersProps, CursorProps, FlexboxesProps, IsTruncatedProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps } from '../system';
1
+ import { SystemProps, TypographyProps } from '../system';
2
2
  import { ThemingProps } from '../theme';
3
- export interface TProps extends TStyleProps, ThemingProps<'T'> {
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
- }
@@ -1,6 +1,5 @@
1
- import { TextareaProps, TextareaStyleProps } from './textarea.types';
2
- export declare const TextareaBase: import("styled-components").StyledComponent<"textarea", import("styled-components").DefaultTheme, TextareaStyleProps & {
3
- color?: any;
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;
@@ -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 styled_components_2 = __importDefault(require("styled-components"));
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
- var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.color, styled_components_1.fontSize, styled_components_1.resize, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions);
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 { BackgroundColorProps, BordersProps, ColorProps, FontSizeProps, ResizeProps, SizingProps, SpaceProps, TransitionsProps } from '../system';
1
+ import { SystemProps } from '../system';
2
2
  import { ThemingProps } from '../theme';
3
- export interface TextareaProps extends TextareaStyleProps, ThemingProps<'Textarea'> {
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
- }
@@ -143,6 +143,7 @@ declare const _default: {
143
143
  borderWidth: number;
144
144
  };
145
145
  solid: (props: import("..").Dict<any>) => {
146
+ borderColor: string;
146
147
  hoverBg: string;
147
148
  activeBg: string;
148
149
  bg: string;
@@ -294,6 +294,7 @@ declare const defaultTheme: {
294
294
  borderWidth: number;
295
295
  };
296
296
  solid: (props: import("..").Dict<any>) => {
297
+ borderColor: string;
297
298
  hoverBg: string;
298
299
  activeBg: string;
299
300
  bg: string;
@@ -1,7 +1,5 @@
1
- import { BoxProps, BoxStyleProps } from '../box';
1
+ import { BoxProps } from '../box';
2
2
  import { ThemingProps } from '../theme';
3
- export interface TileProps extends Omit<BoxProps, 'size' | 'variant'>, TileStyleProps, ThemingProps<'Tile'> {
3
+ export interface TileProps extends Omit<BoxProps, 'size' | 'variant'>, ThemingProps<'Tile'> {
4
4
  isInteractive?: boolean;
5
5
  }
6
- export interface TileStyleProps extends BoxStyleProps {
7
- }