@veracity/vui 0.0.15 → 0.2.0
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.js +2 -2
- package/box/box.js +1 -1
- package/button/button.d.ts +7 -1
- package/button/button.js +56 -23
- package/button/button.types.d.ts +8 -6
- package/button/buttonIcon.d.ts +3 -0
- package/{alert/alertText.js → button/buttonIcon.js} +9 -9
- package/button/buttonText.d.ts +3 -0
- package/button/buttonText.js +30 -0
- package/button/buttons.d.ts +4 -3
- package/button/buttons.js +4 -3
- package/button/consts.js +3 -2
- package/button/context.d.ts +2 -2
- package/button/context.js +4 -4
- package/button/index.d.ts +2 -2
- package/button/index.js +2 -2
- package/button/theme.d.ts +79 -41
- package/button/theme.js +85 -46
- package/{button → buttonGroup}/buttonGroup.d.ts +3 -1
- package/{button → buttonGroup}/buttonGroup.js +4 -2
- package/buttonGroup/context.d.ts +4 -0
- package/buttonGroup/context.js +23 -0
- package/buttonGroup/helpers.d.ts +3 -0
- package/buttonGroup/helpers.js +10 -0
- package/buttonGroup/index.d.ts +4 -0
- package/{alert → buttonGroup}/index.js +4 -8
- package/card/card.d.ts +3 -0
- package/{tile/tile.js → card/card.js} +8 -7
- package/{tile/tile.types.d.ts → card/card.types.d.ts} +1 -1
- package/card/index.d.ts +3 -0
- package/{tile → card}/index.js +4 -4
- package/card/theme.d.ts +6 -0
- package/card/theme.js +10 -0
- package/checkbox/checkbox.js +4 -4
- package/checkbox/checkbox.types.d.ts +1 -1
- package/checkbox/checkboxGroup.types.d.ts +1 -1
- package/core/globalStyle.d.ts +4 -1
- package/core/globalStyle.js +7 -3
- package/core/index.d.ts +2 -0
- package/core/index.js +5 -1
- package/core/styled.d.ts +4 -0
- package/core/styled.js +80 -0
- package/core/types/component.d.ts +12 -12
- package/core/types/index.d.ts +1 -0
- package/core/types/index.js +1 -0
- package/core/types/styled.d.ts +11 -0
- package/core/utils.d.ts +2 -2
- package/core/utils.js +7 -7
- package/core/v.d.ts +182 -0
- package/core/v.js +6 -0
- package/core/vuiProvider.d.ts +13 -2
- package/core/vuiProvider.js +1 -1
- package/divider/divider.types.d.ts +1 -1
- package/heading/heading.types.d.ts +2 -1
- package/icon/helpers.d.ts +2 -3
- package/icon/helpers.js +6 -8
- package/icon/icon.js +3 -2
- package/icon/icon.types.d.ts +4 -2
- package/icons/library.js +1 -1
- package/icons/types.d.ts +1 -1
- package/image/image.d.ts +3 -0
- package/image/image.js +38 -0
- package/image/image.types.d.ts +5 -0
- package/image/index.d.ts +3 -0
- package/{label → image}/index.js +4 -4
- package/image/theme.d.ts +6 -0
- package/image/theme.js +10 -0
- package/index.d.ts +6 -3
- package/index.js +6 -3
- package/input/context.d.ts +4 -0
- package/{alert → input}/context.js +4 -4
- package/input/index.d.ts +2 -0
- package/input/index.js +2 -0
- package/input/input.d.ts +7 -2
- package/input/input.js +33 -22
- package/input/input.types.d.ts +7 -3
- package/input/inputIcon.d.ts +3 -0
- package/input/inputIcon.js +30 -0
- package/input/inputInput.d.ts +5 -0
- package/input/inputInput.js +36 -0
- package/input/theme.d.ts +40 -15
- package/input/theme.js +40 -16
- package/list/index.d.ts +3 -1
- package/list/index.js +3 -1
- package/list/list.d.ts +2 -0
- package/list/list.js +3 -1
- package/list/list.types.d.ts +19 -1
- package/list/listHeading.d.ts +2 -2
- package/list/listHeading.js +2 -2
- package/list/listIcon.js +1 -1
- package/list/listItem.d.ts +1 -1
- package/list/listItem.js +8 -5
- package/list/listText.d.ts +3 -0
- package/list/listText.js +30 -0
- package/list/theme.d.ts +20 -6
- package/list/theme.js +26 -12
- package/notification/consts.d.ts +2 -0
- package/{alert → notification}/consts.js +7 -7
- package/notification/context.d.ts +4 -0
- package/notification/context.js +23 -0
- package/notification/index.d.ts +8 -0
- package/notification/index.js +25 -0
- package/notification/notification.d.ts +13 -0
- package/{alert/alert.js → notification/notification.js} +25 -25
- package/notification/notification.types.d.ts +20 -0
- package/notification/notificationButton.d.ts +3 -0
- package/{alert/alertButton.js → notification/notificationButton.js} +8 -8
- package/notification/notificationIcon.d.ts +3 -0
- package/{alert/alertIcon.js → notification/notificationIcon.js} +9 -9
- package/notification/notificationText.d.ts +3 -0
- package/notification/notificationText.js +30 -0
- package/notification/notificationTitle.d.ts +3 -0
- package/notification/notificationTitle.js +30 -0
- package/{alert → notification}/theme.d.ts +0 -15
- package/{alert → notification}/theme.js +1 -22
- package/package.json +2 -3
- package/panel/index.d.ts +3 -0
- package/panel/index.js +20 -0
- package/panel/panel.d.ts +3 -0
- package/panel/panel.js +39 -0
- package/panel/panel.types.d.ts +4 -0
- package/{tile → panel}/theme.d.ts +1 -8
- package/{tile → panel}/theme.js +4 -11
- package/radio/radio.js +4 -4
- package/radio/radio.types.d.ts +1 -1
- package/radio/radioGroup.types.d.ts +1 -1
- package/skeleton/skeleton.types.d.ts +1 -0
- package/spinner/spinner.types.d.ts +1 -0
- package/svg/cache.js +1 -5
- package/svg/svg.js +2 -3
- package/switch/index.d.ts +0 -1
- package/switch/index.js +0 -1
- package/switch/switch.js +6 -6
- package/switch/switch.types.d.ts +19 -4
- package/switch/switchButton.d.ts +2 -2
- package/switch/switchButton.js +18 -19
- package/switch/theme.d.ts +41 -46
- package/switch/theme.js +50 -72
- package/system/borders.d.ts +3 -1
- package/system/custom.d.ts +24 -7
- package/system/custom.js +33 -13
- package/system/system.d.ts +2 -2
- package/system/system.js +1 -1
- package/t/t.types.d.ts +2 -1
- package/tag/context.d.ts +4 -0
- package/tag/context.js +23 -0
- package/tag/index.d.ts +6 -0
- package/tag/index.js +23 -0
- package/tag/tag.d.ts +11 -0
- package/tag/tag.js +99 -0
- package/{label/label.types.d.ts → tag/tag.types.d.ts} +6 -7
- package/tag/tag.types.js +2 -0
- package/tag/tagIcon.d.ts +3 -0
- package/{alert/alertTitle.js → tag/tagIcon.js} +9 -9
- package/tag/tagText.d.ts +3 -0
- package/tag/tagText.js +30 -0
- package/tag/theme.d.ts +65 -0
- package/tag/theme.js +78 -0
- package/textarea/textarea.js +2 -1
- package/textarea/textarea.types.d.ts +1 -0
- package/theme/components.d.ts +291 -223
- package/theme/components.js +32 -28
- package/theme/defaultTheme.d.ts +291 -223
- package/utils/assertion.d.ts +14 -0
- package/utils/assertion.js +34 -0
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -0
- package/utils/object.d.ts +5 -18
- package/utils/object.js +17 -50
- package/utils/types.d.ts +2 -0
- package/alert/alert.d.ts +0 -13
- package/alert/alert.types.d.ts +0 -20
- package/alert/alertButton.d.ts +0 -3
- package/alert/alertIcon.d.ts +0 -3
- package/alert/alertText.d.ts +0 -3
- package/alert/alertTitle.d.ts +0 -3
- package/alert/consts.d.ts +0 -2
- package/alert/context.d.ts +0 -4
- package/alert/index.d.ts +0 -8
- package/label/index.d.ts +0 -3
- package/label/label.d.ts +0 -5
- package/label/label.js +0 -71
- package/label/theme.d.ts +0 -61
- package/label/theme.js +0 -107
- package/list/listItem.types.d.ts +0 -16
- package/switch/switchButton.types.d.ts +0 -19
- package/tile/index.d.ts +0 -3
- package/tile/tile.d.ts +0 -3
- /package/{button → buttonGroup}/buttonGroup.types.d.ts +0 -0
- /package/{button → buttonGroup}/buttonGroup.types.js +0 -0
- /package/{alert/alert.types.js → card/card.types.js} +0 -0
- /package/{label/label.types.js → core/types/styled.js} +0 -0
- /package/{list/listItem.types.js → image/image.types.js} +0 -0
- /package/{switch/switchButton.types.js → notification/notification.types.js} +0 -0
- /package/{tile/tile.types.js → panel/panel.types.js} +0 -0
package/core/types/index.d.ts
CHANGED
package/core/types/index.js
CHANGED
|
@@ -13,4 +13,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
__exportStar(require("./component"), exports);
|
|
14
14
|
__exportStar(require("./context"), exports);
|
|
15
15
|
__exportStar(require("./events"), exports);
|
|
16
|
+
__exportStar(require("./styled"), exports);
|
|
16
17
|
__exportStar(require("./themeGet"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AnyStyledComponent, DefaultTheme, StyledComponentInnerAttrs, StyledComponentInnerComponent, StyledComponentInnerOtherProps, ThemedStyledFunction } from 'styled-components';
|
|
3
|
+
import { SystemProps } from '../../system';
|
|
4
|
+
declare type ThemedStyledComponentFactories<T extends object> = {
|
|
5
|
+
[TTag in keyof JSX.IntrinsicElements]: ThemedStyledFunction<TTag, T, SystemProps>;
|
|
6
|
+
};
|
|
7
|
+
export interface VStyled<T extends object = DefaultTheme> extends ThemedStyledComponentFactories<T> {
|
|
8
|
+
<C extends AnyStyledComponent>(component: C): ThemedStyledFunction<StyledComponentInnerComponent<C>, T, StyledComponentInnerOtherProps<C> & SystemProps, StyledComponentInnerAttrs<C>>;
|
|
9
|
+
<C extends keyof JSX.IntrinsicElements | React.ComponentType<any>>(component: C): ThemedStyledFunction<C, T, SystemProps>;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
package/core/utils.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const mediaDown: (width: ScreenWidth) => (props: StyledProps<unkn
|
|
|
21
21
|
/** Returns CSS media string with appropriate min-width value */
|
|
22
22
|
export declare const mediaUp: (width: ScreenWidth) => (props: StyledProps<unknown>) => string;
|
|
23
23
|
/** Removes specific theming keys from the given props. */
|
|
24
|
-
export declare function omitThemingProps<T extends ThemingProps>(props: T): Omit<T, "
|
|
24
|
+
export declare function omitThemingProps<T extends ThemingProps>(props: T): Omit<T, "size" | "variant">;
|
|
25
25
|
/**
|
|
26
26
|
* Custom validator to prevent certain props from reaching the HTML element.
|
|
27
27
|
* @param props - list of props to filter out
|
|
@@ -40,7 +40,7 @@ export declare function useMedia(width: ScreenWidth): {
|
|
|
40
40
|
viewportWidth: number | null;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
|
-
* Retrieves and merges size and variant styling from theme configuration.
|
|
43
|
+
* Retrieves and merges size and variant styling from a component's theme configuration.
|
|
44
44
|
* @param component - name of any component configured in the theme
|
|
45
45
|
* @param props - props object of the given component
|
|
46
46
|
*/
|
package/core/utils.js
CHANGED
|
@@ -68,7 +68,7 @@ function createContext(options) {
|
|
|
68
68
|
exports.createContext = createContext;
|
|
69
69
|
/** Merges provided theme extensions and overrides with default VUI theme */
|
|
70
70
|
function extendTheme(extensions) {
|
|
71
|
-
return utils_1.
|
|
71
|
+
return utils_1.merge(theme_1.default, extensions);
|
|
72
72
|
}
|
|
73
73
|
exports.extendTheme = extendTheme;
|
|
74
74
|
/**
|
|
@@ -149,7 +149,7 @@ function useMedia(width) {
|
|
|
149
149
|
}
|
|
150
150
|
exports.useMedia = useMedia;
|
|
151
151
|
/**
|
|
152
|
-
* Retrieves and merges size and variant styling from theme configuration.
|
|
152
|
+
* Retrieves and merges size and variant styling from a component's theme configuration.
|
|
153
153
|
* @param component - name of any component configured in the theme
|
|
154
154
|
* @param props - props object of the given component
|
|
155
155
|
*/
|
|
@@ -157,22 +157,22 @@ function useStyleConfig(component, props) {
|
|
|
157
157
|
var _a;
|
|
158
158
|
if (props === void 0) { props = {}; }
|
|
159
159
|
var theme = useTheme();
|
|
160
|
-
var _b = (_a = theme.components[component]) !== null && _a !== void 0 ? _a : {}, defaultProps = _b.defaultProps, _c = _b.parts, parts = _c === void 0 ? [] : _c, sizes = _b.sizes, variants = _b.variants;
|
|
160
|
+
var _b = (_a = theme === null || theme === void 0 ? void 0 : theme.components[component]) !== null && _a !== void 0 ? _a : {}, defaultProps = _b.defaultProps, _c = _b.parts, parts = _c === void 0 ? [] : _c, sizes = _b.sizes, variants = _b.variants;
|
|
161
161
|
var mergedProps = __assign(__assign({}, defaultProps), props);
|
|
162
162
|
var colorScheme = mergedProps.colorScheme, size = mergedProps.size, variant = mergedProps.variant;
|
|
163
163
|
return react_1.useMemo(function () {
|
|
164
164
|
var _a, _b;
|
|
165
|
-
var sizeStyles =
|
|
166
|
-
var variantStyles =
|
|
165
|
+
var sizeStyles = (_a = utils_1.runIfFn(sizes === null || sizes === void 0 ? void 0 : sizes[size], mergedProps)) !== null && _a !== void 0 ? _a : {};
|
|
166
|
+
var variantStyles = (_b = utils_1.runIfFn(variants === null || variants === void 0 ? void 0 : variants[variant], mergedProps)) !== null && _b !== void 0 ? _b : {};
|
|
167
167
|
var styles = {};
|
|
168
168
|
if (parts.length > 0) {
|
|
169
169
|
parts.forEach(function (part) {
|
|
170
170
|
var _a, _b;
|
|
171
|
-
styles[part] =
|
|
171
|
+
styles[part] = utils_1.merge((_a = sizeStyles[part]) !== null && _a !== void 0 ? _a : {}, (_b = variantStyles[part]) !== null && _b !== void 0 ? _b : {});
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
else {
|
|
175
|
-
styles =
|
|
175
|
+
styles = utils_1.merge(sizeStyles, variantStyles);
|
|
176
176
|
}
|
|
177
177
|
return styles;
|
|
178
178
|
}, [colorScheme, size, variant]);
|
package/core/v.d.ts
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
declare const v: {
|
|
4
|
+
extend<TExtendProps extends object>(...generators: import("@xstyled/styled-components").StyleGenerator[]): any;
|
|
5
|
+
} & {
|
|
6
|
+
symbol: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGSymbolElement>, "color">) => import("react").ReactElement<any, "symbol">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
7
|
+
object: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").ObjectHTMLAttributes<HTMLObjectElement>, HTMLObjectElement>, "color">) => import("react").ReactElement<any, "object">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
8
|
+
a: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "color">) => import("react").ReactElement<any, "a">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
9
|
+
abbr: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "abbr">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
10
|
+
address: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "address">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
11
|
+
area: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").AreaHTMLAttributes<HTMLAreaElement>, HTMLAreaElement>, "color">) => import("react").ReactElement<any, "area">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
12
|
+
article: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "article">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
13
|
+
aside: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "aside">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
14
|
+
audio: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "color">) => import("react").ReactElement<any, "audio">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
15
|
+
b: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "b">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
16
|
+
base: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").BaseHTMLAttributes<HTMLBaseElement>, HTMLBaseElement>, "color">) => import("react").ReactElement<any, "base">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
17
|
+
bdi: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "bdi">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
18
|
+
bdo: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "bdo">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
19
|
+
big: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "big">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
20
|
+
blockquote: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "blockquote">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
21
|
+
body: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLBodyElement>, HTMLBodyElement>, "color">) => import("react").ReactElement<any, "body">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
22
|
+
br: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLBRElement>, HTMLBRElement>, "color">) => import("react").ReactElement<any, "br">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
23
|
+
button: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color">) => import("react").ReactElement<any, "button">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
24
|
+
canvas: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").CanvasHTMLAttributes<HTMLCanvasElement>, HTMLCanvasElement>, "color">) => import("react").ReactElement<any, "canvas">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
25
|
+
caption: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "caption">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
26
|
+
cite: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "cite">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
27
|
+
code: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "code">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
28
|
+
col: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").ColHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>, "color">) => import("react").ReactElement<any, "col">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
29
|
+
colgroup: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").ColgroupHTMLAttributes<HTMLTableColElement>, HTMLTableColElement>, "color">) => import("react").ReactElement<any, "colgroup">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
30
|
+
data: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").DataHTMLAttributes<HTMLDataElement>, HTMLDataElement>, "color">) => import("react").ReactElement<any, "data">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
31
|
+
datalist: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDataListElement>, HTMLDataListElement>, "color">) => import("react").ReactElement<any, "datalist">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
32
|
+
dd: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "dd">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
33
|
+
del: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").DelHTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "del">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
34
|
+
details: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").DetailsHTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "details">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
35
|
+
dfn: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "dfn">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
36
|
+
dialog: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, "color">) => import("react").ReactElement<any, "dialog">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
37
|
+
div: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "color">) => import("react").ReactElement<any, "div">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
38
|
+
dl: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDListElement>, HTMLDListElement>, "color">) => import("react").ReactElement<any, "dl">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
39
|
+
dt: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "dt">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
40
|
+
em: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "em">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
41
|
+
embed: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").EmbedHTMLAttributes<HTMLEmbedElement>, HTMLEmbedElement>, "color">) => import("react").ReactElement<any, "embed">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
42
|
+
fieldset: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "color">) => import("react").ReactElement<any, "fieldset">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
43
|
+
figcaption: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "figcaption">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
44
|
+
figure: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "figure">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
45
|
+
footer: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "footer">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
46
|
+
form: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "color">) => import("react").ReactElement<any, "form">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
47
|
+
h1: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "color">) => import("react").ReactElement<any, "h1">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
48
|
+
h2: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "color">) => import("react").ReactElement<any, "h2">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
49
|
+
h3: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "color">) => import("react").ReactElement<any, "h3">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
50
|
+
h4: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "color">) => import("react").ReactElement<any, "h4">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
51
|
+
h5: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "color">) => import("react").ReactElement<any, "h5">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
52
|
+
h6: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "color">) => import("react").ReactElement<any, "h6">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
53
|
+
head: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadElement>, HTMLHeadElement>, "color">) => import("react").ReactElement<any, "head">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
54
|
+
header: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "header">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
55
|
+
hgroup: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "hgroup">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
56
|
+
hr: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "color">) => import("react").ReactElement<any, "hr">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
57
|
+
html: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HtmlHTMLAttributes<HTMLHtmlElement>, HTMLHtmlElement>, "color">) => import("react").ReactElement<any, "html">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
58
|
+
i: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "i">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
59
|
+
iframe: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>, "color">) => import("react").ReactElement<any, "iframe">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
60
|
+
img: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "color">) => import("react").ReactElement<any, "img">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
61
|
+
input: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "color">) => import("react").ReactElement<any, "input">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
62
|
+
ins: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").InsHTMLAttributes<HTMLModElement>, HTMLModElement>, "color">) => import("react").ReactElement<any, "ins">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
63
|
+
kbd: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "kbd">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
64
|
+
keygen: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").KeygenHTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "keygen">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
65
|
+
label: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "color">) => import("react").ReactElement<any, "label">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
66
|
+
legend: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLLegendElement>, HTMLLegendElement>, "color">) => import("react").ReactElement<any, "legend">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
67
|
+
li: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "color">) => import("react").ReactElement<any, "li">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
68
|
+
link: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").LinkHTMLAttributes<HTMLLinkElement>, HTMLLinkElement>, "color">) => import("react").ReactElement<any, "link">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
69
|
+
main: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "main">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
70
|
+
map: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").MapHTMLAttributes<HTMLMapElement>, HTMLMapElement>, "color">) => import("react").ReactElement<any, "map">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
71
|
+
mark: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "mark">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
72
|
+
menu: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").MenuHTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "menu">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
73
|
+
menuitem: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "menuitem">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
74
|
+
meta: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").MetaHTMLAttributes<HTMLMetaElement>, HTMLMetaElement>, "color">) => import("react").ReactElement<any, "meta">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
75
|
+
meter: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").MeterHTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "meter">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
76
|
+
nav: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "nav">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
77
|
+
noindex: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "noindex">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
78
|
+
noscript: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "noscript">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
79
|
+
ol: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "color">) => import("react").ReactElement<any, "ol">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
80
|
+
optgroup: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").OptgroupHTMLAttributes<HTMLOptGroupElement>, HTMLOptGroupElement>, "color">) => import("react").ReactElement<any, "optgroup">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
81
|
+
option: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>, "color">) => import("react").ReactElement<any, "option">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
82
|
+
output: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").OutputHTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "output">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
83
|
+
p: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "color">) => import("react").ReactElement<any, "p">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
84
|
+
param: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").ParamHTMLAttributes<HTMLParamElement>, HTMLParamElement>, "color">) => import("react").ReactElement<any, "param">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
85
|
+
picture: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "picture">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
86
|
+
pre: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLPreElement>, HTMLPreElement>, "color">) => import("react").ReactElement<any, "pre">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
87
|
+
progress: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").ProgressHTMLAttributes<HTMLProgressElement>, HTMLProgressElement>, "color">) => import("react").ReactElement<any, "progress">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
88
|
+
q: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").QuoteHTMLAttributes<HTMLQuoteElement>, HTMLQuoteElement>, "color">) => import("react").ReactElement<any, "q">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
89
|
+
rp: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "rp">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
90
|
+
rt: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "rt">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
91
|
+
ruby: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "ruby">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
92
|
+
s: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "s">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
93
|
+
samp: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "samp">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
94
|
+
slot: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").SlotHTMLAttributes<HTMLSlotElement>, HTMLSlotElement>, "color">) => import("react").ReactElement<any, "slot">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
95
|
+
script: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>, "color">) => import("react").ReactElement<any, "script">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
96
|
+
section: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "section">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
97
|
+
select: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "color">) => import("react").ReactElement<any, "select">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
98
|
+
small: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "small">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
99
|
+
source: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").SourceHTMLAttributes<HTMLSourceElement>, HTMLSourceElement>, "color">) => import("react").ReactElement<any, "source">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
100
|
+
span: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "color">) => import("react").ReactElement<any, "span">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
101
|
+
strong: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "strong">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
102
|
+
style: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>, "color">) => import("react").ReactElement<any, "style">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
103
|
+
sub: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "sub">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
104
|
+
summary: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "summary">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
105
|
+
sup: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "sup">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
106
|
+
table: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "color">) => import("react").ReactElement<any, "table">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
107
|
+
template: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTemplateElement>, HTMLTemplateElement>, "color">) => import("react").ReactElement<any, "template">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
108
|
+
tbody: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "color">) => import("react").ReactElement<any, "tbody">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
109
|
+
td: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "color">) => import("react").ReactElement<any, "td">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
110
|
+
textarea: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "color">) => import("react").ReactElement<any, "textarea">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
111
|
+
tfoot: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "color">) => import("react").ReactElement<any, "tfoot">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
112
|
+
th: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "color">) => import("react").ReactElement<any, "th">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
113
|
+
thead: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "color">) => import("react").ReactElement<any, "thead">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
114
|
+
time: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").TimeHTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "time">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
115
|
+
title: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>, "color">) => import("react").ReactElement<any, "title">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
116
|
+
tr: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "color">) => import("react").ReactElement<any, "tr">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
117
|
+
track: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").TrackHTMLAttributes<HTMLTrackElement>, HTMLTrackElement>, "color">) => import("react").ReactElement<any, "track">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
118
|
+
u: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "u">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
119
|
+
ul: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "color">) => import("react").ReactElement<any, "ul">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
120
|
+
var: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "var">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
121
|
+
video: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "color">) => import("react").ReactElement<any, "video">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
122
|
+
wbr: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "color">) => import("react").ReactElement<any, "wbr">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
123
|
+
webview: import("styled-components").StyledComponent<(props: Omit<import("react").DetailedHTMLProps<import("react").WebViewHTMLAttributes<HTMLWebViewElement>, HTMLWebViewElement>, "color">) => import("react").ReactElement<any, "webview">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
124
|
+
svg: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGSVGElement>, "color">) => import("react").ReactElement<any, "svg">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
125
|
+
animate: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGElement>, "color">) => import("react").ReactElement<any, "animate">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
126
|
+
animateMotion: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGElement>, "color">) => import("react").ReactElement<any, "animateMotion">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
127
|
+
animateTransform: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGElement>, "color">) => import("react").ReactElement<any, "animateTransform">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
128
|
+
circle: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGCircleElement>, "color">) => import("react").ReactElement<any, "circle">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
129
|
+
clipPath: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGClipPathElement>, "color">) => import("react").ReactElement<any, "clipPath">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
130
|
+
defs: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGDefsElement>, "color">) => import("react").ReactElement<any, "defs">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
131
|
+
desc: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGDescElement>, "color">) => import("react").ReactElement<any, "desc">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
132
|
+
ellipse: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGEllipseElement>, "color">) => import("react").ReactElement<any, "ellipse">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
133
|
+
feBlend: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEBlendElement>, "color">) => import("react").ReactElement<any, "feBlend">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
134
|
+
feColorMatrix: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEColorMatrixElement>, "color">) => import("react").ReactElement<any, "feColorMatrix">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
135
|
+
feComponentTransfer: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEComponentTransferElement>, "color">) => import("react").ReactElement<any, "feComponentTransfer">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
136
|
+
feComposite: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFECompositeElement>, "color">) => import("react").ReactElement<any, "feComposite">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
137
|
+
feConvolveMatrix: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEConvolveMatrixElement>, "color">) => import("react").ReactElement<any, "feConvolveMatrix">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
138
|
+
feDiffuseLighting: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEDiffuseLightingElement>, "color">) => import("react").ReactElement<any, "feDiffuseLighting">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
139
|
+
feDisplacementMap: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEDisplacementMapElement>, "color">) => import("react").ReactElement<any, "feDisplacementMap">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
140
|
+
feDistantLight: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEDistantLightElement>, "color">) => import("react").ReactElement<any, "feDistantLight">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
141
|
+
feDropShadow: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEDropShadowElement>, "color">) => import("react").ReactElement<any, "feDropShadow">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
142
|
+
feFlood: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEFloodElement>, "color">) => import("react").ReactElement<any, "feFlood">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
143
|
+
feFuncA: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEFuncAElement>, "color">) => import("react").ReactElement<any, "feFuncA">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
144
|
+
feFuncB: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEFuncBElement>, "color">) => import("react").ReactElement<any, "feFuncB">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
145
|
+
feFuncG: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEFuncGElement>, "color">) => import("react").ReactElement<any, "feFuncG">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
146
|
+
feFuncR: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEFuncRElement>, "color">) => import("react").ReactElement<any, "feFuncR">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
147
|
+
feGaussianBlur: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEGaussianBlurElement>, "color">) => import("react").ReactElement<any, "feGaussianBlur">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
148
|
+
feImage: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEImageElement>, "color">) => import("react").ReactElement<any, "feImage">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
149
|
+
feMerge: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEMergeElement>, "color">) => import("react").ReactElement<any, "feMerge">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
150
|
+
feMergeNode: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEMergeNodeElement>, "color">) => import("react").ReactElement<any, "feMergeNode">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
151
|
+
feMorphology: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEMorphologyElement>, "color">) => import("react").ReactElement<any, "feMorphology">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
152
|
+
feOffset: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEOffsetElement>, "color">) => import("react").ReactElement<any, "feOffset">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
153
|
+
fePointLight: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFEPointLightElement>, "color">) => import("react").ReactElement<any, "fePointLight">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
154
|
+
feSpecularLighting: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFESpecularLightingElement>, "color">) => import("react").ReactElement<any, "feSpecularLighting">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
155
|
+
feSpotLight: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFESpotLightElement>, "color">) => import("react").ReactElement<any, "feSpotLight">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
156
|
+
feTile: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFETileElement>, "color">) => import("react").ReactElement<any, "feTile">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
157
|
+
feTurbulence: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFETurbulenceElement>, "color">) => import("react").ReactElement<any, "feTurbulence">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
158
|
+
filter: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGFilterElement>, "color">) => import("react").ReactElement<any, "filter">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
159
|
+
foreignObject: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGForeignObjectElement>, "color">) => import("react").ReactElement<any, "foreignObject">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
160
|
+
g: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGGElement>, "color">) => import("react").ReactElement<any, "g">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
161
|
+
image: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGImageElement>, "color">) => import("react").ReactElement<any, "image">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
162
|
+
line: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGLineElement>, "color">) => import("react").ReactElement<any, "line">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
163
|
+
linearGradient: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGLinearGradientElement>, "color">) => import("react").ReactElement<any, "linearGradient">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
164
|
+
marker: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGMarkerElement>, "color">) => import("react").ReactElement<any, "marker">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
165
|
+
mask: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGMaskElement>, "color">) => import("react").ReactElement<any, "mask">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
166
|
+
metadata: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGMetadataElement>, "color">) => import("react").ReactElement<any, "metadata">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
167
|
+
mpath: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGElement>, "color">) => import("react").ReactElement<any, "mpath">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
168
|
+
path: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGPathElement>, "color">) => import("react").ReactElement<any, "path">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
169
|
+
pattern: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGPatternElement>, "color">) => import("react").ReactElement<any, "pattern">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
170
|
+
polygon: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGPolygonElement>, "color">) => import("react").ReactElement<any, "polygon">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
171
|
+
polyline: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGPolylineElement>, "color">) => import("react").ReactElement<any, "polyline">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
172
|
+
radialGradient: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGRadialGradientElement>, "color">) => import("react").ReactElement<any, "radialGradient">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
173
|
+
rect: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGRectElement>, "color">) => import("react").ReactElement<any, "rect">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
174
|
+
stop: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGStopElement>, "color">) => import("react").ReactElement<any, "stop">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
175
|
+
switch: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGSwitchElement>, "color">) => import("react").ReactElement<any, "switch">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
176
|
+
text: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGTextElement>, "color">) => import("react").ReactElement<any, "text">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
177
|
+
textPath: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGTextPathElement>, "color">) => import("react").ReactElement<any, "textPath">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
178
|
+
tspan: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGTSpanElement>, "color">) => import("react").ReactElement<any, "tspan">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
179
|
+
use: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGUseElement>, "color">) => import("react").ReactElement<any, "use">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
180
|
+
view: import("styled-components").StyledComponent<(props: Omit<import("react").SVGProps<SVGViewElement>, "color">) => import("react").ReactElement<any, "view">, import("styled-components").DefaultTheme, SystemProps, "color">;
|
|
181
|
+
};
|
|
182
|
+
export default v;
|
package/core/v.js
ADDED
package/core/vuiProvider.d.ts
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { VuiTheme } from '../theme';
|
|
3
|
-
|
|
3
|
+
declare type VuiProviderProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Adds basic styles to body
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
4
8
|
globalStyle?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Applies custom CSS reset
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
5
13
|
resetCSS?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Modified theme config using 'extendTheme' utility
|
|
16
|
+
*/
|
|
6
17
|
theme?: VuiTheme;
|
|
7
|
-
}
|
|
18
|
+
};
|
|
8
19
|
declare const VuiProvider: FC<VuiProviderProps>;
|
|
9
20
|
export default VuiProvider;
|
package/core/vuiProvider.js
CHANGED
|
@@ -12,7 +12,7 @@ var VuiProvider = function (_a) {
|
|
|
12
12
|
var children = _a.children, _b = _a.globalStyle, globalStyle = _b === void 0 ? true : _b, _c = _a.resetCSS, resetCSS = _c === void 0 ? true : _c, _d = _a.theme, theme = _d === void 0 ? theme_1.default : _d;
|
|
13
13
|
return (react_1.default.createElement(styled_components_1.ThemeProvider, { theme: theme },
|
|
14
14
|
resetCSS && react_1.default.createElement(resetCSS_1.default, null),
|
|
15
|
-
|
|
15
|
+
react_1.default.createElement(globalStyle_1.default, { globalStyle: globalStyle }),
|
|
16
16
|
children));
|
|
17
17
|
};
|
|
18
18
|
exports.default = VuiProvider;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BordersProps, SystemProps } from '../system';
|
|
2
2
|
import { ThemingProps } from '../theme';
|
|
3
3
|
export interface DividerProps extends SystemProps, ThemingProps<'Divider'> {
|
|
4
|
-
|
|
4
|
+
children?: never;
|
|
5
5
|
isVertical?: boolean;
|
|
6
6
|
width?: BordersProps['borderWidth'];
|
|
7
7
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SystemProps, TypographyProps } from '../system';
|
|
2
3
|
import { ThemingProps } from '../theme';
|
|
3
4
|
export interface HeadingProps extends SystemProps, ThemingProps<'Heading'> {
|
|
4
5
|
align?: TypographyProps['textAlign'];
|
|
5
6
|
casing?: TypographyProps['textTransform'];
|
|
6
7
|
decoration?: TypographyProps['textDecoration'];
|
|
7
|
-
text?:
|
|
8
|
+
text?: React.ReactText;
|
|
8
9
|
weight?: TypographyProps['fontWeight'];
|
|
9
10
|
}
|
package/icon/helpers.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { GetIconDetailsResult, IconProp } from './icon.types';
|
|
2
2
|
/**
|
|
3
3
|
* Returns an object with either 'src' or 'customIcon', depending on whether the provided icon is:
|
|
4
|
-
* -
|
|
5
|
-
* -
|
|
6
|
-
* - not string: icon definition object
|
|
4
|
+
* - not in library: 'src' as CDN url
|
|
5
|
+
* - in library: 'customIcon' as icon definition object
|
|
7
6
|
*/
|
|
8
7
|
export declare function getIconDetails(icon?: IconProp): GetIconDetailsResult;
|
package/icon/helpers.js
CHANGED
|
@@ -32,23 +32,21 @@ var core_1 = require("../core");
|
|
|
32
32
|
var icons_1 = require("../icons");
|
|
33
33
|
/**
|
|
34
34
|
* Returns an object with either 'src' or 'customIcon', depending on whether the provided icon is:
|
|
35
|
-
* -
|
|
36
|
-
* -
|
|
37
|
-
* - not string: icon definition object
|
|
35
|
+
* - not in library: 'src' as CDN url
|
|
36
|
+
* - in library: 'customIcon' as icon definition object
|
|
38
37
|
*/
|
|
39
38
|
function getIconDetails(icon) {
|
|
40
39
|
if (!icon)
|
|
41
40
|
return {};
|
|
42
|
-
// Compute CDN url if icon is
|
|
43
|
-
if (
|
|
41
|
+
// Compute CDN url if icon is not in library cache
|
|
42
|
+
if (!icons_1.library.has(icon)) {
|
|
44
43
|
var prefix = icon.slice(0, 3);
|
|
45
44
|
return {
|
|
46
45
|
src: core_1.cdnUrl + "/common/icons/ui/" + prefix + "/" + icon + ".svg"
|
|
47
46
|
};
|
|
48
47
|
}
|
|
49
|
-
//
|
|
50
|
-
var
|
|
51
|
-
var details = iconDefinition.details, _a = iconDefinition.name, name = _a === void 0 ? '' : _a, _b = iconDefinition.pathProps, pathProps = _b === void 0 ? [] : _b, _c = iconDefinition.svgProps, svgProps = _c === void 0 ? {} : _c;
|
|
48
|
+
// Compute relevant properties based on icon definition from the library
|
|
49
|
+
var _a = icons_1.library.get(icon), details = _a.details, name = _a.name, _b = _a.pathProps, pathProps = _b === void 0 ? [] : _b, _c = _a.svgProps, svgProps = _c === void 0 ? {} : _c;
|
|
52
50
|
var _d = __read(details, 5), width = _d[0], height = _d[1], d = _d[4];
|
|
53
51
|
var viewBox = "0 0 " + width + " " + height;
|
|
54
52
|
var customIcon = {
|
package/icon/icon.js
CHANGED
|
@@ -32,9 +32,10 @@ var core_1 = require("../core");
|
|
|
32
32
|
var svg_1 = require("../svg");
|
|
33
33
|
var utils_1 = require("../utils");
|
|
34
34
|
exports.Icon = core_1.vui(function (props, ref) {
|
|
35
|
-
|
|
35
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
|
36
|
+
var _a = core_1.omitThemingProps(props), className = _a.className, icon = _a.icon, _b = _a.name, name = _b === void 0 ? props.icon : _b, rotate = _a.rotate, scale = _a.scale, rest = __rest(_a, ["className", "icon", "name", "rotate", "scale"]);
|
|
36
37
|
var styles = core_1.useStyleConfig('Icon', props);
|
|
37
|
-
var
|
|
38
|
+
var _c = helpers_1.getIconDetails(name), customIcon = _c.customIcon, src = _c.src;
|
|
38
39
|
var scaledSize = scale ? 16 * scale : undefined;
|
|
39
40
|
var aliasedProps = utils_1.filterUndefined({
|
|
40
41
|
h: scaledSize,
|
package/icon/icon.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PropsOf } from '../core';
|
|
3
|
-
import {
|
|
3
|
+
import { VuiIcon } from '../icons';
|
|
4
4
|
import Svg, { SvgProps } from '../svg';
|
|
5
5
|
import { ThemingProps } from '../theme';
|
|
6
6
|
import { AnyString } from '../utils';
|
|
@@ -12,9 +12,11 @@ export interface GetIconDetailsResult {
|
|
|
12
12
|
};
|
|
13
13
|
src?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare type IconProp = VuiIcon |
|
|
15
|
+
export declare type IconProp = VuiIcon | AnyString;
|
|
16
16
|
export interface IconProps extends SvgProps, ThemingProps<'Icon'> {
|
|
17
|
+
/** @deprecated use 'name' instead */
|
|
17
18
|
icon?: IconProp;
|
|
19
|
+
name?: IconProp;
|
|
18
20
|
rotate?: number;
|
|
19
21
|
scale?: number;
|
|
20
22
|
}
|
package/icons/library.js
CHANGED
package/icons/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { PropsOf } from '../core';
|
|
|
4
4
|
import Svg from '../svg';
|
|
5
5
|
export interface IconDefinition {
|
|
6
6
|
details: IconDetails;
|
|
7
|
-
name
|
|
7
|
+
name: string;
|
|
8
8
|
pathProps?: React.SVGProps<SVGPathElement> | React.SVGProps<SVGPathElement>[];
|
|
9
9
|
svgProps?: PropsOf<typeof Svg>;
|
|
10
10
|
}
|
package/image/image.d.ts
ADDED
package/image/image.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.Image = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var core_1 = require("../core");
|
|
31
|
+
var utils_1 = require("../utils");
|
|
32
|
+
exports.Image = core_1.vui(function (props, ref) {
|
|
33
|
+
var _a = core_1.omitThemingProps(props), className = _a.className, rest = __rest(_a, ["className"]);
|
|
34
|
+
var styles = core_1.useStyleConfig('Image', props);
|
|
35
|
+
return react_1.default.createElement(core_1.v.img, __assign({ className: utils_1.cs('vui-image', className), ref: ref }, styles, rest));
|
|
36
|
+
});
|
|
37
|
+
exports.Image.displayName = 'Image';
|
|
38
|
+
exports.default = exports.Image;
|
package/image/index.d.ts
ADDED