@mw-kit/mw-ui 1.3.1 → 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.
Files changed (27) hide show
  1. package/dist/components/AbsoluteContainer/index.d.ts +2 -2
  2. package/dist/components/AbsoluteContainer/interfaces.d.ts +1 -0
  3. package/dist/components/Calendar/styles.d.ts +1 -1
  4. package/dist/components/Filters/AppliedFilters/index.d.ts +4 -0
  5. package/dist/components/Filters/AppliedFilters/interfaces.d.ts +7 -0
  6. package/dist/components/Filters/AppliedFilters/styles.d.ts +5 -0
  7. package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/components/Header/index.d.ts +0 -0
  8. package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/components/Header/interfaces.d.ts +1 -1
  9. package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/components/Header/styles.d.ts +0 -0
  10. package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/index.d.ts +0 -0
  11. package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/interfaces.d.ts +2 -1
  12. package/dist/components/{FilterMenu → Filters/Filters}/components/Submenu/styles.d.ts +0 -0
  13. package/dist/components/Filters/Filters/index.d.ts +4 -0
  14. package/dist/components/{FilterMenu → Filters/Filters}/interfaces.d.ts +3 -21
  15. package/dist/components/Filters/interfaces.d.ts +20 -0
  16. package/dist/components/Menu/interfaces.d.ts +2 -2
  17. package/dist/components/Menu/styles.d.ts +1 -1
  18. package/dist/components/index.d.ts +2 -1
  19. package/dist/index.js +169 -16
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.modern.js +169 -17
  22. package/dist/index.modern.js.map +1 -1
  23. package/dist/interfaces.d.ts +1 -1
  24. package/dist/theme/constants.d.ts +2 -15
  25. package/dist/theme/interfaces.d.ts +15 -2
  26. package/package.json +1 -1
  27. package/dist/components/FilterMenu/index.d.ts +0 -4
@@ -10,4 +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/FilterMenu/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
- interface TypographiesInterface {
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
- export declare type TypographyOptions = keyof typeof typographies;
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: (typography: TypographyOptions) => FlattenSimpleInterpolation;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mw-kit/mw-ui",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Made with create-react-library",
5
5
  "author": "fmgusmao",
6
6
  "license": "MIT",
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { FilterMenuProps } from './interfaces';
3
- declare const FilterMenu: (props: FilterMenuProps) => JSX.Element;
4
- export default FilterMenu;