@elliemae/ds-system 2.3.0-next.0 → 2.3.0-next.13
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/package.json +4 -4
- package/types/arithmetic.d.ts +0 -5
- package/types/constants.d.ts +0 -11
- package/types/globalStyles.d.ts +0 -1
- package/types/index.d.ts +0 -9
- package/types/mobileUtilities.d.ts +0 -4
- package/types/spaceUtilities.d.ts +0 -13
- package/types/styled/index.d.ts +0 -2
- package/types/styled/styleGetters.d.ts +0 -4
- package/types/styled/types.d.ts +0 -27
- package/types/styled/utils.d.ts +0 -6
- package/types/tests/arithmetic.test.d.ts +0 -1
- package/types/th.d.ts +0 -17
- package/types/theme.d.ts +0 -2
- package/types/themeProviderHOC.d.ts +0 -2
- package/types/utils.d.ts +0 -27
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-system",
|
|
3
|
-
"version": "2.3.0-next.
|
|
3
|
+
"version": "2.3.0-next.13",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - System",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -89,16 +89,16 @@
|
|
|
89
89
|
"generateSubmodules": true
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@elliemae/ds-utilities": "2.3.0-next.
|
|
92
|
+
"@elliemae/ds-utilities": "2.3.0-next.13",
|
|
93
93
|
"polished": "~3.6.7"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
|
-
"@elliemae/pui-theme": "~2.
|
|
96
|
+
"@elliemae/pui-theme": "~2.3.0",
|
|
97
97
|
"@testing-library/jest-dom": "~5.15.0",
|
|
98
98
|
"styled-components": "~5.3.3"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|
|
101
|
-
"@elliemae/pui-theme": "
|
|
101
|
+
"@elliemae/pui-theme": "~2.3.0",
|
|
102
102
|
"lodash": "^4.17.21",
|
|
103
103
|
"react": "~17.0.2",
|
|
104
104
|
"react-dom": "^17.0.2",
|
package/types/arithmetic.d.ts
DELETED
package/types/constants.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const desktopBaseFont = 13;
|
|
2
|
-
export declare const mobileBaseFont = 16;
|
|
3
|
-
export declare const translateUnits: {
|
|
4
|
-
'8px': string;
|
|
5
|
-
'16px': string;
|
|
6
|
-
'32px': string;
|
|
7
|
-
'48px': string;
|
|
8
|
-
'56px': string;
|
|
9
|
-
'64px': string;
|
|
10
|
-
'72px': string;
|
|
11
|
-
};
|
package/types/globalStyles.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const GlobalStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
package/types/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './globalStyles';
|
|
2
|
-
export * from './spaceUtilities';
|
|
3
|
-
export * from './mobileUtilities';
|
|
4
|
-
export * from './utils';
|
|
5
|
-
export * from './arithmetic';
|
|
6
|
-
export * from './th';
|
|
7
|
-
export * from './theme';
|
|
8
|
-
export * from './styled';
|
|
9
|
-
export { themeProviderHOC } from './themeProviderHOC';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare function mapGap(gutter: number | string): number | string;
|
|
2
|
-
export declare function mapGutter(gutter: string | number): string;
|
|
3
|
-
export declare function mapSpace(width: string | number): string;
|
|
4
|
-
export declare function fixSpaceGutter(width: string | number, gutter: string | number): string | string[];
|
|
5
|
-
export declare function fixSpace(width: string | number): string | string[];
|
|
6
|
-
/**
|
|
7
|
-
* Grid
|
|
8
|
-
*
|
|
9
|
-
* @param grid
|
|
10
|
-
*/
|
|
11
|
-
export declare function numbersToFr(grid: number[]): string[];
|
|
12
|
-
export declare function mapGrid(width: string | number): string;
|
|
13
|
-
export declare function mapTemplateGrid(grid: number[]): string | string[];
|
package/types/styled/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Theme, CSSObject } from './types';
|
|
2
|
-
export declare const getStyleOverrides: (name: string, theme: Theme) => CSSObject | null;
|
|
3
|
-
export declare const getVariantStyles: (name: string, theme: Theme) => Record<string, CSSObject>;
|
|
4
|
-
export declare const variantsResolver: (props: Record<string, unknown>, styles: CSSObject, theme: Theme, name: string) => CSSObject[keyof CSSObject][];
|
package/types/styled/types.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Theme as PuiTheme } from '@elliemae/pui-theme';
|
|
3
|
-
import { AnyStyledComponent, CSSObject, Interpolation, InterpolationFunction, StyledComponent, StyledComponentInnerAttrs, StyledComponentInnerComponent, StyledComponentInnerOtherProps, StyledComponentPropsWithRef, ThemedStyledProps } from 'styled-components';
|
|
4
|
-
export { CSSObject } from 'styled-components';
|
|
5
|
-
export interface Theme extends PuiTheme {
|
|
6
|
-
components?: {
|
|
7
|
-
[componentName: string]: {
|
|
8
|
-
styleOverrides?: CSSObject;
|
|
9
|
-
variants?: {
|
|
10
|
-
props: Record<string, {
|
|
11
|
-
toString: () => string;
|
|
12
|
-
}>;
|
|
13
|
-
style: CSSObject;
|
|
14
|
-
}[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export declare type ThemedStyledFunctionBase<C extends keyof JSX.IntrinsicElements | React.ComponentType<any>, T extends object, O extends object = {}, A extends keyof any = never> = <U extends object = {}>(first: TemplateStringsArray | CSSObject | InterpolationFunction<ThemedStyledProps<StyledComponentPropsWithRef<C> & O & U, T>>, ...rest: Array<Interpolation<ThemedStyledProps<StyledComponentPropsWithRef<C> & O & U, T>>>) => StyledComponent<C, T, O & U, A>;
|
|
19
|
-
declare type ThemedStyledComponentFactories<T extends object> = {
|
|
20
|
-
[TTag in keyof JSX.IntrinsicElements]: ThemedStyledFunctionBase<TTag, T>;
|
|
21
|
-
};
|
|
22
|
-
export declare type StyledFunction = <C extends AnyStyledComponent | keyof JSX.IntrinsicElements | React.ComponentType<any>>(tag: C, options?: {
|
|
23
|
-
name: string | null;
|
|
24
|
-
slot: string | null;
|
|
25
|
-
}) => ThemedStyledFunctionBase<C extends AnyStyledComponent ? StyledComponentInnerComponent<C> : C, Theme, C extends AnyStyledComponent ? StyledComponentInnerOtherProps<C> : {}, C extends AnyStyledComponent ? StyledComponentInnerAttrs<C> : never>;
|
|
26
|
-
export declare type StyledObject = ThemedStyledComponentFactories<Theme>;
|
|
27
|
-
export declare type Styled = StyledFunction & StyledObject;
|
package/types/styled/utils.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Theme } from './types';
|
|
2
|
-
export declare const isEmpty: (string: string) => boolean;
|
|
3
|
-
export declare const coerceWithDefaultTheme: (themeInput: Theme) => Theme;
|
|
4
|
-
export declare const propsToClassKey: (props: Record<string, {
|
|
5
|
-
toString: () => string;
|
|
6
|
-
}>) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/types/th.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Theme } from '@elliemae/pui-theme';
|
|
2
|
-
declare type ThGetter = (value: string, dfault?: string) => ({ theme }: {
|
|
3
|
-
theme: Theme;
|
|
4
|
-
}) => string;
|
|
5
|
-
declare type ThConstructor = ((property: keyof Theme) => ThGetter) & {
|
|
6
|
-
space: ThGetter;
|
|
7
|
-
fontSize: ThGetter;
|
|
8
|
-
fontWeight: ThGetter;
|
|
9
|
-
lineHeight: ThGetter;
|
|
10
|
-
letterSpacing: ThGetter;
|
|
11
|
-
font: ThGetter;
|
|
12
|
-
color: ThGetter;
|
|
13
|
-
breakpoint: ThGetter;
|
|
14
|
-
media: ThGetter;
|
|
15
|
-
};
|
|
16
|
-
export declare const th: ThConstructor;
|
|
17
|
-
export {};
|
package/types/theme.d.ts
DELETED
package/types/utils.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { rgba } from 'polished';
|
|
2
|
-
import { Keyframes } from 'styled-components';
|
|
3
|
-
import { css, withTheme, keyframes as kfrm, createGlobalStyle, useTheme } from 'styled-components';
|
|
4
|
-
export { withTheme, createGlobalStyle, rgba, useTheme, kfrm, css };
|
|
5
|
-
export declare function truncate(width?: string): (props: any) => import("styled-components").FlattenSimpleInterpolation;
|
|
6
|
-
export declare function flexCenter(): string;
|
|
7
|
-
export declare function disabled(): string;
|
|
8
|
-
export declare function keyframes(obj: Record<string, unknown>): Keyframes;
|
|
9
|
-
export declare function boxShadow(top: string, left: string, blur: string, color: string, inset?: boolean): string;
|
|
10
|
-
export declare function color(variant?: string, type?: number): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
11
|
-
export declare function border(color?: string, size?: string, type?: string): string;
|
|
12
|
-
export declare function animation(animationKeyframes: string, animationLength: string, animationTimingFn: string): (props: any) => import("styled-components").FlattenSimpleInterpolation;
|
|
13
|
-
export declare function focus(color?: string): () => import("styled-components").FlattenSimpleInterpolation;
|
|
14
|
-
export declare function focusAfter(color: string): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
15
|
-
export declare function active(): (props: any) => import("styled-components").FlattenSimpleInterpolation;
|
|
16
|
-
export declare function hover(): (props: any) => import("styled-components").FlattenSimpleInterpolation;
|
|
17
|
-
export declare function textStyle(type: string, weight?: string): (props: any) => string;
|
|
18
|
-
export declare function iconColor(variant?: string, type?: number): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
19
|
-
export declare function fakeBorder(): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
20
|
-
export declare function fakeActive(): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
21
|
-
export declare function clearFocus(): string;
|
|
22
|
-
export declare function buttonLink(): string;
|
|
23
|
-
export declare function transition(t?: string): string;
|
|
24
|
-
export declare const onlySafariAndFirefox: (styles: string) => string;
|
|
25
|
-
export declare const onlySafari: (styles: string) => string;
|
|
26
|
-
export declare const onlyFirefox: (styles: string) => string;
|
|
27
|
-
export declare const safariAndFirefoxBold: (color: string) => string;
|