@veracity/vui 0.3.0 → 0.3.2
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 +2 -2
- package/avatar/avatar.js +9 -29
- package/avatar/avatar.types.d.ts +9 -2
- package/avatar/helpers.d.ts +2 -0
- package/avatar/helpers.js +26 -0
- package/avatar/index.d.ts +1 -1
- package/avatar/index.js +1 -1
- package/avatar/theme.d.ts +1 -0
- package/avatar/theme.js +7 -0
- package/box/box.d.ts +2 -2
- package/box/box.js +9 -8
- package/box/box.types.d.ts +13 -2
- package/box/index.d.ts +1 -1
- package/box/index.js +1 -1
- package/box/theme.d.ts +1 -0
- package/box/theme.js +2 -0
- package/button/button.d.ts +7 -3
- package/button/button.js +24 -14
- package/button/button.types.d.ts +12 -30
- package/button/buttonIcon.d.ts +1 -0
- package/button/buttonIcon.js +3 -5
- package/button/buttonText.d.ts +1 -0
- package/button/buttonText.js +3 -5
- package/button/buttons.js +1 -1
- package/button/index.d.ts +2 -2
- package/button/index.js +3 -3
- package/button/theme.d.ts +1 -0
- package/button/theme.js +5 -3
- package/buttonGroup/buttonGroup.d.ts +5 -2
- package/buttonGroup/buttonGroup.js +12 -8
- package/buttonGroup/buttonGroup.types.d.ts +4 -2
- package/buttonGroup/helpers.d.ts +1 -1
- package/buttonGroup/helpers.js +1 -1
- package/buttonGroup/index.d.ts +1 -1
- package/buttonGroup/index.js +2 -2
- package/card/card.d.ts +4 -0
- package/card/card.js +8 -0
- package/card/card.types.d.ts +3 -2
- package/card/index.d.ts +1 -1
- package/card/index.js +1 -1
- package/card/theme.d.ts +1 -0
- package/card/theme.js +2 -0
- package/checkbox/checkbox.d.ts +5 -4
- package/checkbox/checkbox.js +20 -10
- package/checkbox/checkbox.types.d.ts +21 -4
- package/checkbox/checkboxGroup.d.ts +5 -2
- package/checkbox/checkboxGroup.js +11 -7
- package/checkbox/checkboxGroup.types.d.ts +9 -2
- package/checkbox/index.d.ts +1 -1
- package/checkbox/index.js +2 -2
- package/checkbox/theme.d.ts +1 -0
- package/checkbox/theme.js +2 -0
- package/core/index.d.ts +4 -5
- package/core/index.js +4 -12
- package/core/media.d.ts +38 -0
- package/core/media.js +79 -0
- package/core/styled.d.ts +3 -0
- package/core/styled.js +21 -3
- package/core/theme.d.ts +41 -0
- package/core/theme.js +94 -0
- package/core/vui.d.ts +31 -0
- package/core/vui.js +20 -0
- package/core/vuiProvider/fontFaces.js +4 -0
- package/core/{globalStyle.d.ts → vuiProvider/globalStyle.d.ts} +7 -0
- package/core/{globalStyle.js → vuiProvider/globalStyle.js} +17 -9
- package/core/vuiProvider/index.d.ts +5 -0
- package/{styles → core/vuiProvider}/index.js +8 -2
- package/core/vuiProvider/resetCSS.d.ts +3 -0
- package/core/{resetCSS.js → vuiProvider/resetCSS.js} +2 -1
- package/core/vuiProvider/vuiProvider.d.ts +13 -0
- package/core/{vuiProvider.js → vuiProvider/vuiProvider.js} +4 -1
- package/divider/divider.d.ts +2 -2
- package/divider/divider.js +5 -4
- package/divider/divider.types.d.ts +5 -2
- package/divider/index.d.ts +1 -1
- package/divider/index.js +1 -1
- package/divider/theme.d.ts +1 -0
- package/divider/theme.js +2 -0
- package/footer/consts.d.ts +3 -0
- package/footer/consts.js +3 -0
- package/footer/footer.d.ts +3 -1
- package/footer/footer.js +21 -10
- package/footer/footer.types.d.ts +5 -0
- package/footer/footerColumn.d.ts +122 -121
- package/footer/footerColumn.js +1 -0
- package/footer/footerHeading.d.ts +1 -0
- package/footer/footerHeading.js +1 -0
- package/footer/footerLink.d.ts +1 -0
- package/footer/footerLink.js +1 -0
- package/footer/footerRow.d.ts +1 -0
- package/footer/footerRow.js +1 -0
- package/footer/footerSection.d.ts +1 -0
- package/footer/footerSection.js +2 -1
- package/footer/footerTrademark.d.ts +1 -0
- package/footer/footerTrademark.js +1 -0
- package/footer/index.d.ts +2 -1
- package/footer/index.js +2 -2
- package/footer/theme.d.ts +1 -0
- package/footer/theme.js +2 -0
- package/header/context.d.ts +4 -0
- package/header/context.js +23 -0
- package/header/header.d.ts +34 -0
- package/header/header.js +118 -0
- package/header/header.types.d.ts +84 -0
- package/header/headerContent.d.ts +4 -0
- package/header/headerContent.js +28 -0
- package/header/headerCreateAccount.d.ts +4 -0
- package/header/headerCreateAccount.js +44 -0
- package/header/headerDivider.d.ts +4 -0
- package/header/headerDivider.js +28 -0
- package/header/headerLink.d.ts +4 -0
- package/header/headerLink.js +43 -0
- package/header/headerLinks.d.ts +4 -0
- package/header/headerLinks.js +41 -0
- package/header/headerLogo.d.ts +4 -0
- package/header/headerLogo.js +48 -0
- package/header/headerMobileContent.d.ts +4 -0
- package/header/headerMobileContent.js +30 -0
- package/header/headerMobileToggle.d.ts +4 -0
- package/header/headerMobileToggle.js +34 -0
- package/header/headerNotifications.d.ts +4 -0
- package/header/headerNotifications.js +52 -0
- package/header/headerProfile.d.ts +4 -0
- package/header/headerProfile.js +101 -0
- package/header/headerProfile.types.d.ts +35 -0
- package/header/headerServices.d.ts +4 -0
- package/header/headerServices.js +51 -0
- package/header/headerSignIn.d.ts +4 -0
- package/header/headerSignIn.js +40 -0
- package/header/index.d.ts +17 -0
- package/header/index.js +34 -0
- package/header/loggedInHeader.d.ts +4 -0
- package/header/loggedInHeader.js +53 -0
- package/header/loggedOutHeader.d.ts +4 -0
- package/header/loggedOutHeader.js +54 -0
- package/header/theme.d.ts +32 -0
- package/header/theme.js +52 -0
- package/heading/heading.d.ts +2 -2
- package/heading/heading.js +5 -4
- package/heading/heading.types.d.ts +7 -2
- package/heading/headings.js +1 -1
- package/heading/index.d.ts +1 -1
- package/heading/index.js +2 -2
- package/heading/theme.d.ts +1 -0
- package/heading/theme.js +2 -0
- package/icon/helpers.js +2 -2
- package/icon/icon.d.ts +1 -0
- package/icon/icon.js +2 -2
- package/icon/icon.types.d.ts +7 -4
- package/icon/index.d.ts +1 -1
- package/icon/index.js +1 -1
- package/icon/theme.d.ts +1 -0
- package/icon/theme.js +2 -0
- package/icons/baseIcons/fal/falFileInvoiceDollar.d.ts +3 -0
- package/icons/baseIcons/fal/falFileInvoiceDollar.js +7 -0
- package/icons/baseIcons/icons.d.ts +1 -0
- package/icons/baseIcons/icons.js +5 -3
- package/icons/baseIcons/types.d.ts +1 -1
- package/icons/cache.d.ts +15 -0
- package/icons/{library.js → cache.js} +10 -6
- package/icons/index.d.ts +1 -1
- package/icons/index.js +3 -3
- package/icons/types.d.ts +10 -3
- package/image/image.d.ts +2 -0
- package/image/image.js +11 -2
- package/image/image.types.d.ts +3 -2
- package/image/index.d.ts +1 -1
- package/image/index.js +1 -1
- package/image/theme.d.ts +1 -0
- package/image/theme.js +2 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/input/helpers.d.ts +1 -0
- package/input/helpers.js +1 -0
- package/input/index.d.ts +1 -1
- package/input/index.js +2 -2
- package/input/input.d.ts +7 -3
- package/input/input.js +17 -7
- package/input/input.types.d.ts +33 -4
- package/input/inputIcon.d.ts +1 -0
- package/input/inputIcon.js +2 -1
- package/input/inputInput.d.ts +2 -2
- package/input/inputInput.js +10 -5
- package/input/theme.d.ts +1 -0
- package/input/theme.js +2 -0
- package/link/index.d.ts +1 -1
- package/link/index.js +2 -2
- package/link/link.d.ts +6 -3
- package/link/link.js +15 -9
- package/link/link.types.d.ts +12 -4
- package/link/linkIcon.d.ts +1 -0
- package/link/linkIcon.js +3 -5
- package/link/linkText.d.ts +1 -0
- package/link/linkText.js +3 -5
- package/link/theme.d.ts +6 -0
- package/link/theme.js +9 -1
- package/list/index.d.ts +1 -1
- package/list/index.js +2 -2
- package/list/list.d.ts +3 -3
- package/list/list.js +13 -8
- package/list/list.types.d.ts +29 -8
- package/list/listDivider.d.ts +1 -0
- package/list/listDivider.js +3 -5
- package/list/listHeading.d.ts +1 -0
- package/list/listHeading.js +4 -6
- package/list/listIcon.d.ts +1 -0
- package/list/listIcon.js +3 -5
- package/list/listItem.d.ts +5 -2
- package/list/listItem.js +52 -19
- package/list/listText.d.ts +1 -0
- package/list/listText.js +3 -5
- package/list/theme.d.ts +1 -0
- package/list/theme.js +5 -2
- package/menu/menu.d.ts +1 -0
- package/menu/menu.js +1 -0
- package/menu/menu.types.d.ts +3 -0
- package/menu/menuButton.d.ts +1 -0
- package/menu/menuButton.js +3 -4
- package/menu/menuItem.d.ts +1 -0
- package/menu/menuItem.js +2 -1
- package/menu/menuList.d.ts +1 -0
- package/menu/menuList.js +3 -4
- package/menu/theme.d.ts +16 -2
- package/menu/theme.js +18 -3
- package/notification/index.d.ts +2 -2
- package/notification/index.js +3 -3
- package/notification/notification.d.ts +5 -1
- package/notification/notification.js +12 -27
- package/notification/notification.types.d.ts +10 -2
- package/notification/notificationButton.d.ts +1 -0
- package/notification/notificationButton.js +4 -5
- package/notification/notificationIcon.d.ts +1 -0
- package/notification/notificationIcon.js +7 -7
- package/notification/notificationText.d.ts +1 -0
- package/notification/notificationText.js +3 -5
- package/notification/notificationTitle.d.ts +1 -0
- package/notification/notificationTitle.js +3 -5
- package/notification/theme.d.ts +1 -0
- package/notification/theme.js +2 -0
- package/p/index.d.ts +1 -1
- package/p/index.js +1 -1
- package/p/p.d.ts +2 -2
- package/p/p.js +5 -4
- package/p/p.types.d.ts +7 -2
- package/p/theme.d.ts +1 -0
- package/p/theme.js +2 -0
- package/package.json +1 -1
- package/panel/index.d.ts +1 -1
- package/panel/index.js +1 -1
- package/panel/panel.d.ts +4 -0
- package/panel/panel.js +4 -0
- package/panel/panel.types.d.ts +1 -2
- package/panel/theme.d.ts +1 -0
- package/panel/theme.js +2 -0
- package/popover/consts.d.ts +6 -0
- package/popover/consts.js +42 -0
- package/popover/index.d.ts +2 -1
- package/popover/index.js +4 -2
- package/popover/popover.d.ts +5 -2
- package/popover/popover.js +16 -2
- package/popover/popover.types.d.ts +4 -1
- package/popover/popoverContent.d.ts +2 -1
- package/popover/popoverContent.js +6 -1
- package/popover/popoverStyle.js +9 -0
- package/popover/popoverTrigger.d.ts +4 -0
- package/popover/popoverTrigger.js +4 -0
- package/popover/theme.d.ts +1 -0
- package/popover/theme.js +2 -0
- package/popover/usePopover.d.ts +5 -0
- package/popover/usePopover.js +21 -11
- package/popover/usePopover.types.d.ts +17 -6
- package/radio/index.d.ts +1 -1
- package/radio/index.js +2 -2
- package/radio/radio.d.ts +5 -4
- package/radio/radio.js +20 -10
- package/radio/radio.types.d.ts +19 -4
- package/radio/radioGroup.d.ts +5 -2
- package/radio/radioGroup.js +11 -7
- package/radio/radioGroup.types.d.ts +10 -2
- package/radio/theme.d.ts +1 -0
- package/radio/theme.js +2 -0
- package/skeleton/index.d.ts +1 -1
- package/skeleton/index.js +1 -1
- package/skeleton/skeleton.d.ts +2 -2
- package/skeleton/skeleton.js +4 -3
- package/skeleton/skeleton.types.d.ts +5 -2
- package/skeleton/theme.d.ts +1 -0
- package/skeleton/theme.js +2 -0
- package/spinner/index.d.ts +1 -1
- package/spinner/index.js +1 -1
- package/spinner/spinner.d.ts +6 -2
- package/spinner/spinner.js +12 -5
- package/spinner/spinner.types.d.ts +10 -6
- package/spinner/theme.d.ts +1 -0
- package/spinner/theme.js +2 -0
- package/svg/helpers.d.ts +1 -1
- package/svg/index.d.ts +1 -1
- package/svg/index.js +1 -1
- package/svg/svg.d.ts +6 -1
- package/svg/svg.js +14 -5
- package/svg/svg.types.d.ts +6 -4
- package/switch/context.d.ts +2 -2
- package/switch/index.d.ts +1 -1
- package/switch/index.js +2 -2
- package/switch/switch.d.ts +6 -3
- package/switch/switch.js +15 -12
- package/switch/switch.types.d.ts +37 -4
- package/switch/switchButton.d.ts +5 -5
- package/switch/switchButton.js +34 -26
- package/switch/switchLabel.d.ts +1 -0
- package/switch/switchLabel.js +3 -5
- package/switch/theme.d.ts +1 -0
- package/switch/theme.js +2 -0
- package/system/animations.d.ts +3 -4
- package/system/backgrounds.d.ts +4 -5
- package/system/borders.d.ts +60 -61
- package/system/custom.d.ts +4 -4
- package/system/effects.d.ts +7 -8
- package/system/flexboxGrids.d.ts +5 -6
- package/system/flexboxes.d.ts +28 -29
- package/system/grids.d.ts +25 -26
- package/system/index.d.ts +0 -1
- package/system/index.js +0 -6
- package/system/interactivity.d.ts +11 -12
- package/system/layout.d.ts +31 -32
- package/system/sizing.d.ts +13 -14
- package/system/space.d.ts +37 -38
- package/system/system.d.ts +4 -5
- package/system/system.js +3 -1
- package/system/tables.d.ts +5 -6
- package/system/transforms.d.ts +22 -23
- package/system/transitions.d.ts +11 -12
- package/system/typography.d.ts +33 -34
- package/t/index.d.ts +1 -1
- package/t/index.js +1 -1
- package/t/t.d.ts +2 -2
- package/t/t.js +5 -4
- package/t/t.types.d.ts +8 -2
- package/t/theme.d.ts +1 -0
- package/t/theme.js +2 -0
- package/tag/index.d.ts +1 -1
- package/tag/index.js +2 -2
- package/tag/tag.d.ts +6 -3
- package/tag/tag.js +14 -7
- package/tag/tag.types.d.ts +16 -2
- package/tag/tagButton.d.ts +1 -0
- package/tag/tagButton.js +4 -16
- package/tag/tagIcon.d.ts +1 -0
- package/tag/tagIcon.js +3 -5
- package/tag/tagText.d.ts +1 -0
- package/tag/tagText.js +3 -5
- package/tag/theme.d.ts +1 -0
- package/tag/theme.js +8 -0
- package/textarea/helpers.d.ts +1 -0
- package/textarea/helpers.js +1 -0
- package/textarea/index.d.ts +1 -1
- package/textarea/index.js +1 -1
- package/textarea/textarea.d.ts +5 -3
- package/textarea/textarea.js +23 -10
- package/textarea/textarea.types.d.ts +22 -2
- package/textarea/theme.d.ts +1 -0
- package/textarea/theme.js +2 -0
- package/theme/components.d.ts +76 -2
- package/theme/components.js +38 -36
- package/theme/defaultTheme.d.ts +81 -2
- package/theme/foundations/colors.d.ts +10 -0
- package/theme/foundations/colors.js +8 -2
- package/theme/foundations/index.d.ts +5 -0
- package/theme/foundations/shadows.js +3 -3
- package/theme/foundations/transformers.js +3 -2
- package/theme/index.d.ts +1 -3
- package/theme/index.js +4 -5
- package/theme/types.d.ts +3 -2
- package/utils/assertion.d.ts +5 -5
- package/utils/assertion.js +8 -4
- package/utils/object.d.ts +2 -2
- package/utils/object.js +3 -1
- package/utils/styles.d.ts +2 -2
- package/utils/styles.js +4 -4
- package/utils/types.d.ts +8 -3
- package/core/types/component.d.ts +0 -25
- package/core/types/index.d.ts +0 -2
- package/core/types/index.js +0 -14
- package/core/types/themeGet.d.ts +0 -24
- package/core/utils.d.ts +0 -56
- package/core/utils.js +0 -194
- package/core/vuiProvider.d.ts +0 -20
- package/icons/library.d.ts +0 -11
- package/popover/plugins.d.ts +0 -3
- package/popover/plugins.js +0 -24
- package/styles/fontFaces.js +0 -4
- package/styles/helpers.d.ts +0 -4
- package/styles/helpers.js +0 -8
- package/styles/index.d.ts +0 -3
- /package/{styles → core/vuiProvider}/animations.d.ts +0 -0
- /package/{styles → core/vuiProvider}/animations.js +0 -0
- /package/{styles → core/vuiProvider}/fontFaces.d.ts +0 -0
- /package/{core/types/component.js → header/header.types.js} +0 -0
- /package/{core/types/themeGet.js → header/headerProfile.types.js} +0 -0
- /package/{core/resetCSS.d.ts → popover/popoverStyle.d.ts} +0 -0
package/system/layout.d.ts
CHANGED
|
@@ -4,70 +4,69 @@ import { VuiTheme } from '../theme';
|
|
|
4
4
|
export declare type InsetGetter = VariantsType<unknown>;
|
|
5
5
|
export declare type ZIndexGetter = VariantsType<VuiTheme['zIndices']>;
|
|
6
6
|
declare type DisplayProp = SystemProp<CSS.Property.Display, VuiTheme>;
|
|
7
|
-
export
|
|
7
|
+
export declare type DisplayProps = {
|
|
8
8
|
display?: DisplayProp;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
declare type FloatProp = SystemProp<CSS.Property.Float, VuiTheme>;
|
|
11
|
-
export
|
|
11
|
+
export declare type FloatProps = {
|
|
12
12
|
float?: FloatProp;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
declare type BoxSizingProp = SystemProp<CSS.Property.BoxSizing, VuiTheme>;
|
|
15
|
-
export
|
|
15
|
+
export declare type BoxSizingProps = {
|
|
16
16
|
boxSizing?: BoxSizingProp;
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
18
|
declare type OverflowProp = SystemProp<CSS.Property.Overflow, VuiTheme>;
|
|
19
|
-
export
|
|
19
|
+
export declare type OverflowProps = {
|
|
20
20
|
overflow?: OverflowProp;
|
|
21
|
-
}
|
|
21
|
+
};
|
|
22
22
|
declare type OverflowXProp = SystemProp<CSS.Property.OverflowX, VuiTheme>;
|
|
23
|
-
export
|
|
23
|
+
export declare type OverflowXProps = {
|
|
24
24
|
overflowX?: OverflowXProp;
|
|
25
|
-
}
|
|
25
|
+
};
|
|
26
26
|
declare type OverflowYProp = SystemProp<CSS.Property.OverflowY, VuiTheme>;
|
|
27
|
-
export
|
|
27
|
+
export declare type OverflowYProps = {
|
|
28
28
|
overflowY?: OverflowYProp;
|
|
29
|
-
}
|
|
29
|
+
};
|
|
30
30
|
declare type ZIndexProp = SystemProp<ZIndexGetter | CSS.Property.ZIndex, VuiTheme>;
|
|
31
|
-
export
|
|
31
|
+
export declare type ZIndexProps = {
|
|
32
32
|
zIndex?: ZIndexProp;
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
34
|
declare type PositionProp = SystemProp<CSS.Property.Position, VuiTheme>;
|
|
35
|
-
export
|
|
35
|
+
export declare type PositionProps = {
|
|
36
36
|
position?: PositionProp;
|
|
37
|
-
}
|
|
37
|
+
};
|
|
38
38
|
declare type TopProp = SystemProp<InsetGetter | CSS.Property.Top, VuiTheme>;
|
|
39
|
-
export
|
|
39
|
+
export declare type TopProps = {
|
|
40
40
|
top?: TopProp;
|
|
41
41
|
hoverTop?: TopProp;
|
|
42
|
-
}
|
|
42
|
+
};
|
|
43
43
|
declare type RightProp = SystemProp<InsetGetter | CSS.Property.Right, VuiTheme>;
|
|
44
|
-
export
|
|
44
|
+
export declare type RightProps = {
|
|
45
45
|
right?: RightProp;
|
|
46
46
|
hoverRight?: RightProp;
|
|
47
|
-
}
|
|
47
|
+
};
|
|
48
48
|
declare type BottomProp = SystemProp<InsetGetter | CSS.Property.Bottom, VuiTheme>;
|
|
49
|
-
export
|
|
49
|
+
export declare type BottomProps = {
|
|
50
50
|
bottom?: BottomProp;
|
|
51
51
|
hoverBottom?: BottomProp;
|
|
52
|
-
}
|
|
52
|
+
};
|
|
53
53
|
declare type LeftProp = SystemProp<InsetGetter | CSS.Property.Left, VuiTheme>;
|
|
54
|
-
export
|
|
54
|
+
export declare type LeftProps = {
|
|
55
55
|
left?: LeftProp;
|
|
56
56
|
hoverLeft?: LeftProp;
|
|
57
|
-
}
|
|
57
|
+
};
|
|
58
58
|
declare type VisibilityProp = SystemProp<CSS.Property.Visibility, VuiTheme>;
|
|
59
|
-
export
|
|
59
|
+
export declare type VisibilityProps = {
|
|
60
60
|
visibility?: VisibilityProp;
|
|
61
61
|
hoverVisibility?: VisibilityProp;
|
|
62
|
-
}
|
|
62
|
+
};
|
|
63
63
|
declare type OverscrollBehaviorProp = SystemProp<CSS.Property.OverscrollBehavior, VuiTheme>;
|
|
64
|
-
export
|
|
64
|
+
export declare type OverscrollBehaviorProps = {
|
|
65
65
|
overscrollBehavior?: OverscrollBehaviorProp;
|
|
66
|
-
}
|
|
66
|
+
};
|
|
67
67
|
declare type ObjectFitProp = SystemProp<CSS.Property.ObjectFit, VuiTheme>;
|
|
68
|
-
export
|
|
68
|
+
export declare type ObjectFitProps = {
|
|
69
69
|
objectFit?: ObjectFitProp;
|
|
70
|
-
}
|
|
71
|
-
export
|
|
72
|
-
}
|
|
70
|
+
};
|
|
71
|
+
export declare type LayoutProps = DisplayProps & FloatProps & BoxSizingProps & OverflowProps & OverflowXProps & OverflowYProps & PositionProps & ZIndexProps & TopProps & RightProps & BottomProps & LeftProps & VisibilityProps & OverscrollBehaviorProps & ObjectFitProps;
|
|
73
72
|
export {};
|
package/system/sizing.d.ts
CHANGED
|
@@ -2,35 +2,34 @@ import { SystemProp, VariantsType } from '@xstyled/system';
|
|
|
2
2
|
import { VuiTheme } from '../theme';
|
|
3
3
|
export declare type SizeGetter = VariantsType<VuiTheme['sizes']>;
|
|
4
4
|
declare type WidthProp = SystemProp<SizeGetter, VuiTheme>;
|
|
5
|
-
export
|
|
5
|
+
export declare type WidthProps = {
|
|
6
6
|
w?: WidthProp;
|
|
7
7
|
hoverW?: WidthProp;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
declare type HeightProp = SystemProp<SizeGetter, VuiTheme>;
|
|
10
|
-
export
|
|
10
|
+
export declare type HeightProps = {
|
|
11
11
|
h?: HeightProp;
|
|
12
12
|
hoverH?: HeightProp;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
declare type MaxHeightProp = SystemProp<SizeGetter, VuiTheme>;
|
|
15
|
-
export
|
|
15
|
+
export declare type MaxHeightProps = {
|
|
16
16
|
maxH?: MaxHeightProp;
|
|
17
17
|
hoverMaxH?: MaxHeightProp;
|
|
18
|
-
}
|
|
18
|
+
};
|
|
19
19
|
declare type MinHeightProp = SystemProp<SizeGetter, VuiTheme>;
|
|
20
|
-
export
|
|
20
|
+
export declare type MinHeightProps = {
|
|
21
21
|
minH?: MinHeightProp;
|
|
22
22
|
hoverMinH?: MinHeightProp;
|
|
23
|
-
}
|
|
23
|
+
};
|
|
24
24
|
declare type MaxWidthProp = SystemProp<SizeGetter, VuiTheme>;
|
|
25
|
-
export
|
|
25
|
+
export declare type MaxWidthProps = {
|
|
26
26
|
maxW?: MaxWidthProp;
|
|
27
27
|
hoverMaxW?: MaxWidthProp;
|
|
28
|
-
}
|
|
28
|
+
};
|
|
29
29
|
declare type MinWidthProp = SystemProp<SizeGetter, VuiTheme>;
|
|
30
|
-
export
|
|
30
|
+
export declare type MinWidthProps = {
|
|
31
31
|
minW?: MinWidthProp;
|
|
32
32
|
hoverMinW?: MinWidthProp;
|
|
33
|
-
}
|
|
34
|
-
export
|
|
35
|
-
}
|
|
33
|
+
};
|
|
34
|
+
export declare type SizingProps = WidthProps & HeightProps & MaxWidthProps & MaxHeightProps & MinWidthProps & MinHeightProps;
|
|
36
35
|
export {};
|
package/system/space.d.ts
CHANGED
|
@@ -2,91 +2,90 @@ import { SystemProp, VariantsType } from '@xstyled/system';
|
|
|
2
2
|
import { VuiTheme } from '../theme';
|
|
3
3
|
export declare type SpaceGetter = VariantsType<VuiTheme['spaces']>;
|
|
4
4
|
declare type MarginProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
5
|
-
export
|
|
5
|
+
export declare type MarginProps = {
|
|
6
6
|
m?: MarginProp;
|
|
7
7
|
lastM?: MarginProp;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
declare type MarginTopProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
10
|
-
export
|
|
10
|
+
export declare type MarginTopProps = {
|
|
11
11
|
mt?: MarginTopProp;
|
|
12
12
|
lastMt?: MarginTopProp;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
declare type MarginRightProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
15
|
-
export
|
|
15
|
+
export declare type MarginRightProps = {
|
|
16
16
|
mr?: MarginRightProp;
|
|
17
17
|
lastMr?: MarginRightProp;
|
|
18
|
-
}
|
|
18
|
+
};
|
|
19
19
|
declare type MarginBottomProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
20
|
-
export
|
|
20
|
+
export declare type MarginBottomProps = {
|
|
21
21
|
mb?: MarginBottomProp;
|
|
22
22
|
lastMb?: MarginBottomProp;
|
|
23
|
-
}
|
|
23
|
+
};
|
|
24
24
|
declare type MarginLeftProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
25
|
-
export
|
|
25
|
+
export declare type MarginLeftProps = {
|
|
26
26
|
ml?: MarginLeftProp;
|
|
27
27
|
lastMl?: MarginLeftProp;
|
|
28
|
-
}
|
|
28
|
+
};
|
|
29
29
|
declare type MarginXProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
30
|
-
export
|
|
30
|
+
export declare type MarginXProps = {
|
|
31
31
|
mx?: MarginXProp;
|
|
32
32
|
lastMx?: MarginXProp;
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
34
|
declare type MarginYProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
35
|
-
export
|
|
35
|
+
export declare type MarginYProps = {
|
|
36
36
|
my?: MarginYProp;
|
|
37
37
|
lastMy?: MarginYProp;
|
|
38
|
-
}
|
|
38
|
+
};
|
|
39
39
|
declare type PaddingProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
40
|
-
export
|
|
40
|
+
export declare type PaddingProps = {
|
|
41
41
|
p?: PaddingProp;
|
|
42
42
|
lastP?: PaddingProp;
|
|
43
|
-
}
|
|
43
|
+
};
|
|
44
44
|
declare type PaddingTopProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
45
|
-
export
|
|
45
|
+
export declare type PaddingTopProps = {
|
|
46
46
|
pt?: PaddingTopProp;
|
|
47
47
|
lastPt?: PaddingTopProp;
|
|
48
|
-
}
|
|
48
|
+
};
|
|
49
49
|
declare type PaddingRightProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
50
|
-
export
|
|
50
|
+
export declare type PaddingRightProps = {
|
|
51
51
|
pr?: PaddingRightProp;
|
|
52
52
|
lastPr?: PaddingRightProp;
|
|
53
|
-
}
|
|
53
|
+
};
|
|
54
54
|
declare type PaddingBottomProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
55
|
-
export
|
|
55
|
+
export declare type PaddingBottomProps = {
|
|
56
56
|
pb?: PaddingBottomProp;
|
|
57
57
|
lastPb?: PaddingBottomProp;
|
|
58
|
-
}
|
|
58
|
+
};
|
|
59
59
|
declare type PaddingLeftProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
60
|
-
export
|
|
60
|
+
export declare type PaddingLeftProps = {
|
|
61
61
|
pl?: PaddingLeftProp;
|
|
62
62
|
lastPl?: PaddingLeftProp;
|
|
63
|
-
}
|
|
63
|
+
};
|
|
64
64
|
declare type PaddingXProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
65
|
-
export
|
|
65
|
+
export declare type PaddingXProps = {
|
|
66
66
|
px?: PaddingXProp;
|
|
67
67
|
lastPx?: PaddingXProp;
|
|
68
|
-
}
|
|
68
|
+
};
|
|
69
69
|
declare type PaddingYProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
70
|
-
export
|
|
70
|
+
export declare type PaddingYProps = {
|
|
71
71
|
py?: PaddingYProp;
|
|
72
72
|
lastPy?: PaddingYProp;
|
|
73
|
-
}
|
|
73
|
+
};
|
|
74
74
|
declare type SpaceXProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
75
|
-
export
|
|
75
|
+
export declare type SpaceXProps = {
|
|
76
76
|
spaceX?: SpaceXProp;
|
|
77
|
-
}
|
|
77
|
+
};
|
|
78
78
|
declare type SpaceYProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
79
|
-
export
|
|
79
|
+
export declare type SpaceYProps = {
|
|
80
80
|
spaceY?: SpaceYProp;
|
|
81
|
-
}
|
|
81
|
+
};
|
|
82
82
|
declare type SpaceXReverseProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
83
|
-
export
|
|
83
|
+
export declare type SpaceXReverseProps = {
|
|
84
84
|
spaceXReverse?: SpaceXReverseProp;
|
|
85
|
-
}
|
|
85
|
+
};
|
|
86
86
|
declare type SpaceYReverseProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
87
|
-
export
|
|
87
|
+
export declare type SpaceYReverseProps = {
|
|
88
88
|
spaceYReverse?: SpaceYReverseProp;
|
|
89
|
-
}
|
|
90
|
-
export
|
|
91
|
-
}
|
|
89
|
+
};
|
|
90
|
+
export declare type SpaceProps = MarginProps & MarginTopProps & MarginRightProps & MarginBottomProps & MarginLeftProps & MarginXProps & MarginYProps & PaddingProps & PaddingTopProps & PaddingRightProps & PaddingBottomProps & PaddingLeftProps & PaddingXProps & PaddingYProps & SpaceXProps & SpaceYProps & SpaceXReverseProps & SpaceYReverseProps;
|
|
92
91
|
export {};
|
package/system/system.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AnimationsProps } from './animations';
|
|
2
2
|
import { BackgroundColorProps } from './backgrounds';
|
|
3
3
|
import { BordersProps } from './borders';
|
|
4
|
+
import { IsTruncatedProps, MaxLinesProps, SpaceAroundProps, WordBreakProps } from './custom';
|
|
4
5
|
import { EffectsProps } from './effects';
|
|
5
6
|
import { FlexboxesProps } from './flexboxes';
|
|
6
7
|
import { FlexboxGridsProps } from './flexboxGrids';
|
|
7
8
|
import { GridsProps } from './grids';
|
|
8
9
|
import { InteractivityProps } from './interactivity';
|
|
9
|
-
import { IsTruncatedProps, MaxLinesProps, SpaceAroundProps, WordBreakProps } from './custom';
|
|
10
10
|
import { LayoutProps } from './layout';
|
|
11
11
|
import { SizingProps } from './sizing';
|
|
12
12
|
import { SpaceProps } from './space';
|
|
@@ -14,7 +14,6 @@ import { TablesProps } from './tables';
|
|
|
14
14
|
import { TransformsProps } from './transforms';
|
|
15
15
|
import { TransitionsProps } from './transitions';
|
|
16
16
|
import { TypographyProps } from './typography';
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export default _default;
|
|
17
|
+
export declare type SystemProps = AnimationsProps & BackgroundColorProps & BordersProps & EffectsProps & FlexboxesProps & FlexboxGridsProps & GridsProps & InteractivityProps & IsTruncatedProps & LayoutProps & MaxLinesProps & SizingProps & SpaceProps & SpaceAroundProps & TablesProps & TransformsProps & TransitionsProps & TypographyProps & WordBreakProps;
|
|
18
|
+
export declare const system: import("@xstyled/styled-components").StyleGenerator;
|
|
19
|
+
export default system;
|
package/system/system.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.system = void 0;
|
|
3
4
|
var styled_components_1 = require("@xstyled/styled-components");
|
|
4
5
|
var custom_1 = require("./custom");
|
|
5
|
-
exports.
|
|
6
|
+
exports.system = (0, styled_components_1.compose)(styled_components_1.animation, styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.color, styled_components_1.effects, styled_components_1.flexboxes, styled_components_1.flexboxGrids, styled_components_1.grids, styled_components_1.interactivity, custom_1.isTruncated, styled_components_1.layout, custom_1.maxLines, styled_components_1.sizing, styled_components_1.space, custom_1.spaceAround, styled_components_1.tables, styled_components_1.transforms, styled_components_1.transitions, styled_components_1.typography, custom_1.wordBreak);
|
|
7
|
+
exports.default = exports.system;
|
package/system/tables.d.ts
CHANGED
|
@@ -2,13 +2,12 @@ import { SystemProp } from '@xstyled/system';
|
|
|
2
2
|
import * as CSS from 'csstype';
|
|
3
3
|
import { VuiTheme } from '../theme';
|
|
4
4
|
declare type BorderCollapseProp = SystemProp<CSS.Property.BorderCollapse, VuiTheme>;
|
|
5
|
-
export
|
|
5
|
+
export declare type BorderCollapseProps = {
|
|
6
6
|
borderCollapse?: BorderCollapseProp;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
8
|
declare type TableLayoutProp = SystemProp<CSS.Property.TableLayout, VuiTheme>;
|
|
9
|
-
export
|
|
9
|
+
export declare type TableLayoutProps = {
|
|
10
10
|
tableLayout?: TableLayoutProp;
|
|
11
|
-
}
|
|
12
|
-
export
|
|
13
|
-
}
|
|
11
|
+
};
|
|
12
|
+
export declare type TablesProps = BorderCollapseProps & TableLayoutProps;
|
|
14
13
|
export {};
|
package/system/transforms.d.ts
CHANGED
|
@@ -2,56 +2,55 @@ import { SystemProp, VariantsType } from '@xstyled/system';
|
|
|
2
2
|
import * as CSS from 'csstype';
|
|
3
3
|
import { VuiTheme } from '../theme';
|
|
4
4
|
export declare type TransformGetter = VariantsType<VuiTheme['transforms']>;
|
|
5
|
-
declare type TransformProp = SystemProp<boolean, VuiTheme>;
|
|
6
|
-
export
|
|
5
|
+
declare type TransformProp = SystemProp<boolean | string, VuiTheme>;
|
|
6
|
+
export declare type TransformProps = {
|
|
7
7
|
transform?: TransformProp;
|
|
8
8
|
hoverTransform?: TransformProp;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
declare type TransformOriginProp = SystemProp<CSS.Property.TransformOrigin, VuiTheme>;
|
|
11
|
-
export
|
|
11
|
+
export declare type TransformOriginProps = {
|
|
12
12
|
transformOrigin?: TransformOriginProp;
|
|
13
13
|
hoverTransformOrigin?: TransformOriginProp;
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
declare type TranslateXProp = SystemProp<number | string, VuiTheme>;
|
|
16
|
-
export
|
|
16
|
+
export declare type TranslateXProps = {
|
|
17
17
|
translateX?: TranslateXProp;
|
|
18
18
|
hoverTranslateX?: TranslateXProp;
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
20
|
declare type TranslateYProp = SystemProp<number | string, VuiTheme>;
|
|
21
|
-
export
|
|
21
|
+
export declare type TranslateYProps = {
|
|
22
22
|
translateY?: TranslateYProp;
|
|
23
23
|
hoverTranslateY?: TranslateYProp;
|
|
24
|
-
}
|
|
24
|
+
};
|
|
25
25
|
declare type RotateProp = SystemProp<number | string, VuiTheme>;
|
|
26
|
-
export
|
|
26
|
+
export declare type RotateProps = {
|
|
27
27
|
rotate?: RotateProp;
|
|
28
28
|
hoverRotate?: RotateProp;
|
|
29
|
-
}
|
|
29
|
+
};
|
|
30
30
|
declare type SkewXProp = SystemProp<number | string, VuiTheme>;
|
|
31
|
-
export
|
|
31
|
+
export declare type SkewXProps = {
|
|
32
32
|
skewX?: SkewXProp;
|
|
33
33
|
hoverSkewX?: SkewXProp;
|
|
34
|
-
}
|
|
34
|
+
};
|
|
35
35
|
declare type SkewYProp = SystemProp<number | string, VuiTheme>;
|
|
36
|
-
export
|
|
36
|
+
export declare type SkewYProps = {
|
|
37
37
|
skewY?: SkewYProp;
|
|
38
38
|
hoverSkewY?: SkewYProp;
|
|
39
|
-
}
|
|
39
|
+
};
|
|
40
40
|
declare type ScaleProp = SystemProp<number | string, VuiTheme>;
|
|
41
|
-
export
|
|
41
|
+
export declare type ScaleProps = {
|
|
42
42
|
scale?: ScaleProp;
|
|
43
43
|
hoverScale?: ScaleProp;
|
|
44
|
-
}
|
|
44
|
+
};
|
|
45
45
|
declare type ScaleXProp = SystemProp<number | string, VuiTheme>;
|
|
46
|
-
export
|
|
46
|
+
export declare type ScaleXProps = {
|
|
47
47
|
scaleX?: ScaleXProp;
|
|
48
48
|
hoverScaleX?: ScaleXProp;
|
|
49
|
-
}
|
|
49
|
+
};
|
|
50
50
|
declare type ScaleYProp = SystemProp<number | string, VuiTheme>;
|
|
51
|
-
export
|
|
51
|
+
export declare type ScaleYProps = {
|
|
52
52
|
scaleY?: ScaleYProp;
|
|
53
53
|
hoverScaleY?: ScaleYProp;
|
|
54
|
-
}
|
|
55
|
-
export
|
|
56
|
-
}
|
|
54
|
+
};
|
|
55
|
+
export declare type TransformsProps = TransformProps & TransformOriginProps & TranslateXProps & TranslateYProps & RotateProps & SkewXProps & SkewYProps & ScaleProps & ScaleXProps & ScaleYProps;
|
|
57
56
|
export {};
|
package/system/transitions.d.ts
CHANGED
|
@@ -5,25 +5,24 @@ export declare type TransitionGetter = VariantsType<VuiTheme['transitions']>;
|
|
|
5
5
|
export declare type TransitionPropertyGetter = VariantsType<unknown>;
|
|
6
6
|
export declare type TimingFunctionGetter = VariantsType<unknown>;
|
|
7
7
|
declare type TransitionProp = SystemProp<TransitionGetter, VuiTheme>;
|
|
8
|
-
export
|
|
8
|
+
export declare type TransitionProps = {
|
|
9
9
|
transition?: TransitionProp;
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
11
|
declare type TransitionPropertyProp = SystemProp<TransitionPropertyGetter, VuiTheme>;
|
|
12
|
-
export
|
|
12
|
+
export declare type TransitionPropertyProps = {
|
|
13
13
|
transitionProperty?: TransitionPropertyProp;
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
declare type TransitionDurationProp = SystemProp<DurationGetter, VuiTheme>;
|
|
16
|
-
export
|
|
16
|
+
export declare type TransitionDurationProps = {
|
|
17
17
|
transitionDuration?: TransitionDurationProp;
|
|
18
|
-
}
|
|
18
|
+
};
|
|
19
19
|
declare type TransitionTimingFunctionProp = SystemProp<TimingFunctionGetter, VuiTheme>;
|
|
20
|
-
export
|
|
20
|
+
export declare type TransitionTimingFunctionProps = {
|
|
21
21
|
transitionTimingFunction?: TransitionTimingFunctionProp;
|
|
22
|
-
}
|
|
22
|
+
};
|
|
23
23
|
declare type TransitionDelayProp = SystemProp<number, VuiTheme>;
|
|
24
|
-
export
|
|
24
|
+
export declare type TransitionDelayProps = {
|
|
25
25
|
transitionDelay?: TransitionDelayProp;
|
|
26
|
-
}
|
|
27
|
-
export
|
|
28
|
-
}
|
|
26
|
+
};
|
|
27
|
+
export declare type TransitionsProps = TransitionProps & TransitionPropertyProps & TransitionDurationProps & TransitionTimingFunctionProps & TransitionDelayProps;
|
|
29
28
|
export {};
|
package/system/typography.d.ts
CHANGED
|
@@ -1,76 +1,75 @@
|
|
|
1
1
|
import { SystemProp, VariantsType } from '@xstyled/system';
|
|
2
2
|
import { Globals, Property } from 'csstype';
|
|
3
|
-
import { ColorGetter } from './colors';
|
|
4
3
|
import { VuiTheme } from '../theme';
|
|
4
|
+
import { ColorGetter } from './colors';
|
|
5
5
|
export declare type FontGetter = VariantsType<VuiTheme['fonts']>;
|
|
6
6
|
export declare type FontSizeGetter = VariantsType<VuiTheme['fontSizes']>;
|
|
7
7
|
export declare type FontWeightGetter = VariantsType<VuiTheme['fontWeights']>;
|
|
8
8
|
export declare type LineHeightGetter = VariantsType<unknown>;
|
|
9
9
|
declare type FontFamilyProp = SystemProp<FontGetter, VuiTheme>;
|
|
10
|
-
export
|
|
10
|
+
export declare type FontFamilyProps = {
|
|
11
11
|
fontFamily?: FontFamilyProp;
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
13
|
declare type FontSizeProp = SystemProp<FontSizeGetter, VuiTheme>;
|
|
14
|
-
export
|
|
14
|
+
export declare type FontSizeProps = {
|
|
15
15
|
fontSize?: FontSizeProp;
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
17
|
declare type FontStyleProp = SystemProp<Property.FontStyle, VuiTheme>;
|
|
18
|
-
export
|
|
18
|
+
export declare type FontStyleProps = {
|
|
19
19
|
fontStyle?: FontStyleProp;
|
|
20
|
-
}
|
|
20
|
+
};
|
|
21
21
|
declare type FontWeightProp = SystemProp<FontWeightGetter, VuiTheme>;
|
|
22
|
-
export
|
|
22
|
+
export declare type FontWeightProps = {
|
|
23
23
|
fontWeight?: FontWeightProp;
|
|
24
|
-
}
|
|
24
|
+
};
|
|
25
25
|
declare type LineHeightProp = SystemProp<LineHeightGetter, VuiTheme>;
|
|
26
|
-
export
|
|
26
|
+
export declare type LineHeightProps = {
|
|
27
27
|
lineHeight?: LineHeightProp;
|
|
28
|
-
}
|
|
28
|
+
};
|
|
29
29
|
declare type ColorProp = ColorGetter;
|
|
30
|
-
export
|
|
30
|
+
export declare type ColorProps = {
|
|
31
31
|
color?: ColorProp;
|
|
32
32
|
disabledColor?: ColorProp;
|
|
33
33
|
hoverColor?: ColorProp;
|
|
34
34
|
placeholderColor?: ColorProp;
|
|
35
|
-
}
|
|
35
|
+
};
|
|
36
36
|
declare type TextTransformProp = SystemProp<Property.TextTransform, VuiTheme>;
|
|
37
|
-
export
|
|
37
|
+
export declare type TextTransformProps = {
|
|
38
38
|
textTransform?: TextTransformProp;
|
|
39
|
-
}
|
|
40
|
-
declare type TextDecoration = Globals | 'overline' | 'underline' | 'line-through';
|
|
39
|
+
};
|
|
40
|
+
declare type TextDecoration = Globals | 'overline' | 'underline' | 'line-through' | 'none';
|
|
41
41
|
declare type TextDecorationProp = SystemProp<TextDecoration, VuiTheme>;
|
|
42
|
-
export
|
|
42
|
+
export declare type TextDecorationProps = {
|
|
43
43
|
hoverTextDecoration?: TextDecorationProp;
|
|
44
44
|
textDecoration?: TextDecorationProp;
|
|
45
|
-
}
|
|
45
|
+
};
|
|
46
46
|
declare type TextAlignProp = SystemProp<Property.TextAlign, VuiTheme>;
|
|
47
|
-
export
|
|
47
|
+
export declare type TextAlignProps = {
|
|
48
48
|
textAlign?: TextAlignProp;
|
|
49
|
-
}
|
|
49
|
+
};
|
|
50
50
|
declare type VerticalAlignProp = SystemProp<Property.VerticalAlign, VuiTheme>;
|
|
51
|
-
export
|
|
51
|
+
export declare type VerticalAlignProps = {
|
|
52
52
|
verticalAlign?: VerticalAlignProp;
|
|
53
|
-
}
|
|
53
|
+
};
|
|
54
54
|
declare type LetterSpacingProp = SystemProp<Property.LetterSpacing, VuiTheme>;
|
|
55
|
-
export
|
|
55
|
+
export declare type LetterSpacingProps = {
|
|
56
56
|
letterSpacing?: LetterSpacingProp;
|
|
57
|
-
}
|
|
57
|
+
};
|
|
58
58
|
declare type WhiteSpaceProp = SystemProp<Property.WhiteSpace, VuiTheme>;
|
|
59
|
-
export
|
|
59
|
+
export declare type WhiteSpaceProps = {
|
|
60
60
|
whiteSpace?: WhiteSpaceProp;
|
|
61
|
-
}
|
|
61
|
+
};
|
|
62
62
|
declare type TextOverflowProp = SystemProp<Property.TextOverflow, VuiTheme>;
|
|
63
|
-
export
|
|
63
|
+
export declare type TextOverflowProps = {
|
|
64
64
|
textOverflow?: TextOverflowProp;
|
|
65
|
-
}
|
|
65
|
+
};
|
|
66
66
|
declare type ListStyleTypeProp = SystemProp<Property.ListStyleType, VuiTheme>;
|
|
67
|
-
export
|
|
67
|
+
export declare type ListStyleTypeProps = {
|
|
68
68
|
listStyleType?: ListStyleTypeProp;
|
|
69
|
-
}
|
|
69
|
+
};
|
|
70
70
|
declare type ListStylePositionProp = SystemProp<Property.ListStylePosition, VuiTheme>;
|
|
71
|
-
export
|
|
71
|
+
export declare type ListStylePositionProps = {
|
|
72
72
|
listStylePosition?: ListStylePositionProp;
|
|
73
|
-
}
|
|
74
|
-
export
|
|
75
|
-
}
|
|
73
|
+
};
|
|
74
|
+
export declare type TypographyProps = FontFamilyProps & FontSizeProps & FontStyleProps & FontWeightProps & LineHeightProps & ColorProps & TextTransformProps & TextDecorationProps & TextAlignProps & VerticalAlignProps & LetterSpacingProps & WhiteSpaceProps & TextOverflowProps & ListStyleTypeProps & ListStylePositionProps;
|
|
76
75
|
export {};
|
package/t/index.d.ts
CHANGED
package/t/index.js
CHANGED
|
@@ -15,6 +15,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.default = void 0;
|
|
17
17
|
__exportStar(require("./t"), exports);
|
|
18
|
-
__exportStar(require("./t.types"), exports);
|
|
19
18
|
var t_1 = require("./t");
|
|
20
19
|
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(t_1).default; } });
|
|
20
|
+
__exportStar(require("./t.types"), exports);
|
package/t/t.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TProps } from './t.types';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
export declare const TBase: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("..").SystemProps, never>;
|
|
3
|
+
/** Displays given text and allows easy styling. */
|
|
4
4
|
export declare const T: import("../core").VuiComponent<"span", TProps>;
|
|
5
5
|
export default T;
|
package/t/t.js
CHANGED
|
@@ -31,11 +31,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
32
|
exports.T = exports.TBase = void 0;
|
|
33
33
|
var react_1 = __importDefault(require("react"));
|
|
34
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
35
34
|
var core_1 = require("../core");
|
|
36
|
-
var system_1 = require("../system");
|
|
37
35
|
var utils_1 = require("../utils");
|
|
38
|
-
exports.TBase =
|
|
36
|
+
exports.TBase = core_1.styled.spanBox(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\ttransition-duration: fast;\n"], ["\n\ttransition-duration: fast;\n"
|
|
37
|
+
/** Displays given text and allows easy styling. */
|
|
38
|
+
])));
|
|
39
|
+
/** Displays given text and allows easy styling. */
|
|
39
40
|
exports.T = (0, core_1.vui)(function (props, ref) {
|
|
40
41
|
var _a = (0, core_1.omitThemingProps)(props), align = _a.align, casing = _a.casing, centerV = _a.centerV, children = _a.children, className = _a.className, decoration = _a.decoration, text = _a.text, weight = _a.weight, rest = __rest(_a, ["align", "casing", "centerV", "children", "className", "decoration", "text", "weight"]);
|
|
41
42
|
var styles = (0, core_1.useStyleConfig)('T', props);
|
|
@@ -47,7 +48,7 @@ exports.T = (0, core_1.vui)(function (props, ref) {
|
|
|
47
48
|
textDecoration: decoration,
|
|
48
49
|
textTransform: casing
|
|
49
50
|
});
|
|
50
|
-
return (react_1.default.createElement(exports.TBase, __assign({ className: (0, utils_1.cs)('vui-t', className), ref: ref
|
|
51
|
+
return (react_1.default.createElement(exports.TBase, __assign({ className: (0, utils_1.cs)('vui-t', className), ref: ref }, styles, aliasedProps, rest), children !== null && children !== void 0 ? children : text));
|
|
51
52
|
});
|
|
52
53
|
exports.T.displayName = 'T';
|
|
53
54
|
exports.default = exports.T;
|
package/t/t.types.d.ts
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { ReactText } from 'react';
|
|
2
2
|
import { SystemProps, TypographyProps } from '../system';
|
|
3
3
|
import { ThemingProps } from '../theme';
|
|
4
|
-
export
|
|
4
|
+
export declare type TProps = SystemProps & ThemingProps<'T'> & {
|
|
5
|
+
/** Alias for textAlign prop. @deprecated */
|
|
5
6
|
align?: TypographyProps['textAlign'];
|
|
7
|
+
/** Alias for textTransform prop. @deprecated */
|
|
6
8
|
casing?: TypographyProps['textTransform'];
|
|
9
|
+
/** Displays component as inline-flex and centers content veritcally. */
|
|
7
10
|
centerV?: boolean;
|
|
11
|
+
/** Alias for textTransform prop. @deprecated */
|
|
8
12
|
decoration?: TypographyProps['textDecoration'];
|
|
13
|
+
/** Displays given text if no children are provided. */
|
|
9
14
|
text?: ReactText;
|
|
15
|
+
/** Alias for fontWeight prop. @deprecated */
|
|
10
16
|
weight?: TypographyProps['fontWeight'];
|
|
11
|
-
}
|
|
17
|
+
};
|