@mw-kit/mw-ui 1.2.5 → 1.4.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/dist/components/AbsoluteContainer/index.d.ts +2 -2
- package/dist/components/AbsoluteContainer/interfaces.d.ts +1 -1
- package/dist/components/Calendar/styles.d.ts +1 -1
- package/dist/components/Filters/AppliedFilters/index.d.ts +4 -0
- package/dist/components/Filters/AppliedFilters/interfaces.d.ts +7 -0
- package/dist/components/Filters/AppliedFilters/styles.d.ts +5 -0
- package/dist/components/Filters/Filters/components/Submenu/components/Header/index.d.ts +4 -0
- package/dist/components/Filters/Filters/components/Submenu/components/Header/interfaces.d.ts +13 -0
- package/dist/components/Filters/Filters/components/Submenu/components/Header/styles.d.ts +1 -0
- package/dist/components/Filters/Filters/components/Submenu/index.d.ts +4 -0
- package/dist/components/Filters/Filters/components/Submenu/interfaces.d.ts +8 -0
- package/dist/components/Filters/Filters/components/Submenu/styles.d.ts +1 -0
- package/dist/components/Filters/Filters/index.d.ts +4 -0
- package/dist/components/Filters/Filters/interfaces.d.ts +46 -0
- package/dist/components/Filters/interfaces.d.ts +20 -0
- package/dist/components/Input/components/Select/interfaces.d.ts +4 -1
- package/dist/components/Menu/interfaces.d.ts +12 -8
- package/dist/components/Menu/styles.d.ts +1 -1
- package/dist/components/ScrollContainer/interfaces.d.ts +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +663 -139
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +663 -141
- package/dist/index.modern.js.map +1 -1
- package/dist/interfaces.d.ts +1 -0
- package/dist/theme/constants.d.ts +2 -15
- package/dist/theme/interfaces.d.ts +15 -2
- package/package.json +1 -1
- package/dist/services.d.ts +0 -1
package/dist/interfaces.d.ts
CHANGED
|
@@ -10,3 +10,4 @@ export declare type Spacings = {
|
|
|
10
10
|
};
|
|
11
11
|
export type { ThemeInterface } from './theme/interfaces';
|
|
12
12
|
export type { Loader as SelectLoader, Option as SelectOption, } from './components/Input/components/Select/interfaces';
|
|
13
|
+
export type { AppliedFilter } from './components/Filters/interfaces';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Typographies } from './interfaces';
|
|
1
2
|
export declare const colors: {
|
|
2
3
|
readonly white: "#FFFFFF";
|
|
3
4
|
readonly iceWhite: "#F9F8F8";
|
|
@@ -67,18 +68,4 @@ export declare const spacings: {
|
|
|
67
68
|
export declare const fonts: {
|
|
68
69
|
readonly lato: "\"Lato\", sans-serif";
|
|
69
70
|
};
|
|
70
|
-
|
|
71
|
-
fontFamily: string;
|
|
72
|
-
fontWeight: 'normal' | 'bold' | 'bolder' | 'lighter' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
73
|
-
fontSize: string;
|
|
74
|
-
}
|
|
75
|
-
export declare const typographies: {
|
|
76
|
-
readonly h1: TypographiesInterface;
|
|
77
|
-
readonly h2: TypographiesInterface;
|
|
78
|
-
readonly h3: TypographiesInterface;
|
|
79
|
-
readonly h4: TypographiesInterface;
|
|
80
|
-
readonly h5: TypographiesInterface;
|
|
81
|
-
readonly h6: TypographiesInterface;
|
|
82
|
-
readonly p: TypographiesInterface;
|
|
83
|
-
};
|
|
84
|
-
export {};
|
|
71
|
+
export declare const typographies: Typographies;
|
|
@@ -4,14 +4,27 @@ import { colors, opacities, typographies, spacings, fonts } from './constants';
|
|
|
4
4
|
export declare type ColorOptions = keyof typeof colors;
|
|
5
5
|
export declare type OpacitiyOptions = keyof typeof opacities;
|
|
6
6
|
export declare type SpacingOptions = keyof typeof spacings;
|
|
7
|
-
|
|
7
|
+
declare type FontWeight = 'normal' | 'bold' | 'bolder' | 'lighter' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
8
|
+
interface Typography {
|
|
9
|
+
fontFamily: string;
|
|
10
|
+
fontWeight: FontWeight;
|
|
11
|
+
fontSize: string;
|
|
12
|
+
}
|
|
13
|
+
declare type TypographyOptions = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p';
|
|
14
|
+
export declare type Typographies = {
|
|
15
|
+
[key in TypographyOptions]: Typography;
|
|
16
|
+
};
|
|
17
|
+
export declare type useTypographyFunc = (typography: TypographyOptions, options?: {
|
|
18
|
+
fontWeight?: FontWeight;
|
|
19
|
+
}) => FlattenSimpleInterpolation;
|
|
8
20
|
export interface ThemeInterface {
|
|
9
21
|
colors: typeof colors;
|
|
10
22
|
fonts: typeof fonts;
|
|
11
23
|
getColor: (color: ColorOptions, opacity?: OpacitiyOptions) => string;
|
|
12
|
-
useTypography:
|
|
24
|
+
useTypography: useTypographyFunc;
|
|
13
25
|
isDarkColor: (color: ColorOptions, ifDark?: ColorOptions, ifLight?: ColorOptions) => ColorOptions;
|
|
14
26
|
spacings: typeof spacings;
|
|
15
27
|
typographies: typeof typographies;
|
|
16
28
|
components: typeof components;
|
|
17
29
|
}
|
|
30
|
+
export {};
|
package/package.json
CHANGED
package/dist/services.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getStarWars: (search: string, page: number) => Promise<any>;
|