@moosend/mooskin 1.1.4-beta → 1.1.4-beta-1

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.
@@ -4,5 +4,5 @@ import { BoxShadowIntensityType, IntensityType, NestedThemeType } from './model'
4
4
  export declare const getNumberOrStringValue: (value?: number | string) => string;
5
5
  export declare const getNestedValue: (value?: number | string | NestedThemeType, palette?: IStyledTheme) => any;
6
6
  export declare const getRoundness: (round?: IntensityType) => "border-radius: 0.125rem;" | "border-radius: 0.25rem;" | "border-radius: 0.375rem;" | "border-radius: 0.5rem;" | "border-radius: 0.625rem;" | "border-radius: 0.75rem;" | "border-radius: 1rem;" | undefined;
7
- export declare const getBoxShadow: (boxShadow?: React.CSSProperties['boxShadow'] | BoxShadowIntensityType) => (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "none" | "0 0 0 1px rgba(0, 0, 0, 0.05)" | "0 1px 2px 0 rgba(0, 0, 0, 0.05)" | "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)" | "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)" | "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)" | "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)" | "0 25px 50px -12px rgba(0, 0, 0, 0.25)" | "0 0 0 3px rgba(66, 153, 225, 0.6)" | "inset 0 2px 4px 0 rgba(0,0,0,0.06)" | undefined;
7
+ export declare const getBoxShadow: (boxShadow?: React.CSSProperties['boxShadow'] | BoxShadowIntensityType) => "none" | (string & {}) | "inherit" | "initial" | "-moz-initial" | "revert" | "revert-layer" | "unset" | "0 0 0 1px rgba(0, 0, 0, 0.05)" | "0 1px 2px 0 rgba(0, 0, 0, 0.05)" | "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)" | "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)" | "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)" | "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)" | "0 25px 50px -12px rgba(0, 0, 0, 0.25)" | "0 0 0 3px rgba(66, 153, 225, 0.6)" | "inset 0 2px 4px 0 rgba(0,0,0,0.06)" | undefined;
8
8
  export declare const StyledBox: import("styled-components").StyledComponent<"div", any, import("./model").IBaseBoxComponentProps & import("react").HTMLAttributes<HTMLElement>, never>;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { IBoxComponentProps } from '../Box/model';
3
3
  import { IContentSize, IDrawerComponentProps, IDrawerContentComponentProps, IDrawerOverlayComponentProps } from './model';
4
- export declare const getContentSize: (size?: IContentSize) => "100%" | "20%" | "35%" | "50%" | "65%" | "80%" | undefined;
4
+ export declare const getContentSize: (size?: IContentSize) => "100%" | "80%" | "20%" | "35%" | "50%" | "65%" | undefined;
5
5
  export declare const StyledDrawer: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerComponentProps, never>;
6
6
  export declare const StyledDrawerContent: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
7
7
  export declare const StyledDrawerContentRight: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
@@ -3,4 +3,4 @@ import { IMooskinContext } from './model';
3
3
  export declare const useMooskinContext: () => IMooskinContext;
4
4
  export declare const MooskinContext: React.Context<IMooskinContext>;
5
5
  export declare const MooskinContextProvider: React.FC<React.PropsWithChildren<any>>;
6
- export declare const withMooskinContext: <P extends object>(Component: React.FC<P & IMooskinContext>) => (props: P) => React.JSX.Element;
6
+ export declare const withMooskinContext: <P extends object>(Component: React.FC<P & IMooskinContext>) => React.FC<P & IMooskinContext>;
@@ -1,5 +1,5 @@
1
1
  import { Locale } from 'date-fns';
2
- import { SupportedLocales } from '../_utils/globals/locales';
2
+ import { ISupportedLanguage } from '../_utils/globals/locales';
3
3
  export interface IThemeFontColors {
4
4
  primary1: string;
5
5
  primary2: string;
@@ -188,6 +188,6 @@ export interface IStyledTheme {
188
188
  }
189
189
  export interface IMooskinContext {
190
190
  locale?: Locale;
191
- setLocale?: (locale: SupportedLocales) => void;
191
+ setLocale?: (locale: ISupportedLanguage) => void;
192
192
  palette?: IStyledTheme;
193
193
  }
@@ -1,4 +1,4 @@
1
- export declare const SupportedLocale: {
1
+ export declare const SupportedLanguages: {
2
2
  readonly English: "en";
3
3
  readonly Greek: "el";
4
4
  readonly French: "fr";
@@ -7,9 +7,9 @@ export declare const SupportedLocale: {
7
7
  readonly Brazilian: "pt_BR";
8
8
  readonly Spanish: "es";
9
9
  };
10
- export declare type SupportedLocales = (typeof SupportedLocale)[keyof typeof SupportedLocale];
11
- export declare const SupportedLocaleValues: ("en" | "el" | "fr" | "de" | "ja" | "pt_BR" | "es")[];
12
- export declare const LocaleByLanguage: {
10
+ export declare type ISupportedLanguage = (typeof SupportedLanguages)[keyof typeof SupportedLanguages];
11
+ export declare const SupportedLanguageValues: ("en" | "el" | "fr" | "de" | "ja" | "pt_BR" | "es")[];
12
+ export declare const LocaleBySupportedLanguage: {
13
13
  readonly en: Locale;
14
14
  readonly el: Locale;
15
15
  readonly fr: Locale;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { IBoxComponentProps } from '../Box/model';
3
3
  import { IContentSize, IDrawerComponentProps, IDrawerContentComponentProps, IDrawerOverlayComponentProps } from './model';
4
- export declare const getContentSize: (size?: IContentSize) => "50%" | "100%" | "20%" | "35%" | "65%" | "80%" | undefined;
4
+ export declare const getContentSize: (size?: IContentSize) => "100%" | "50%" | "20%" | "35%" | "65%" | "80%" | undefined;
5
5
  export declare const StyledDrawer: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerComponentProps, never>;
6
6
  export declare const StyledDrawerContent: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
7
7
  export declare const StyledDrawerContentRight: import("styled-components").StyledComponent<import("react").FC<IBoxComponentProps>, any, IDrawerContentComponentProps, never>;
@@ -3,4 +3,4 @@ import { IMooskinContext } from './model';
3
3
  export declare const useMooskinContext: () => IMooskinContext;
4
4
  export declare const MooskinContext: React.Context<IMooskinContext>;
5
5
  export declare const MooskinContextProvider: React.FC<React.PropsWithChildren<any>>;
6
- export declare const withMooskinContext: <P extends object>(Component: React.FC<P & IMooskinContext>) => (props: P) => React.JSX.Element;
6
+ export declare const withMooskinContext: <P extends object>(Component: React.FC<P & IMooskinContext>) => React.FC<P & IMooskinContext>;
@@ -1,5 +1,5 @@
1
1
  import { Locale } from 'date-fns';
2
- import { SupportedLocales } from '../_utils/globals/locales';
2
+ import { ISupportedLanguage } from '../_utils/globals/locales';
3
3
  export interface IThemeFontColors {
4
4
  primary1: string;
5
5
  primary2: string;
@@ -188,6 +188,6 @@ export interface IStyledTheme {
188
188
  }
189
189
  export interface IMooskinContext {
190
190
  locale?: Locale;
191
- setLocale?: (locale: SupportedLocales) => void;
191
+ setLocale?: (locale: ISupportedLanguage) => void;
192
192
  palette?: IStyledTheme;
193
193
  }
@@ -1,4 +1,4 @@
1
- export declare const SupportedLocale: {
1
+ export declare const SupportedLanguages: {
2
2
  readonly English: "en";
3
3
  readonly Greek: "el";
4
4
  readonly French: "fr";
@@ -7,9 +7,9 @@ export declare const SupportedLocale: {
7
7
  readonly Brazilian: "pt_BR";
8
8
  readonly Spanish: "es";
9
9
  };
10
- export declare type SupportedLocales = (typeof SupportedLocale)[keyof typeof SupportedLocale];
11
- export declare const SupportedLocaleValues: ("en" | "el" | "fr" | "de" | "ja" | "pt_BR" | "es")[];
12
- export declare const LocaleByLanguage: {
10
+ export declare type ISupportedLanguage = (typeof SupportedLanguages)[keyof typeof SupportedLanguages];
11
+ export declare const SupportedLanguageValues: ("en" | "el" | "fr" | "de" | "ja" | "pt_BR" | "es")[];
12
+ export declare const LocaleBySupportedLanguage: {
13
13
  readonly en: Locale;
14
14
  readonly el: Locale;
15
15
  readonly fr: Locale;
@@ -82,5 +82,6 @@ export { GlobalStyle } from '../Styled/GlobalStyles';
82
82
  import '../Styled/GlobalStyles.css';
83
83
  export { default as IInputCallbackData } from '../_utils';
84
84
  export { default as screens } from '../_utils/globals/screens';
85
+ export * from '../_utils/globals/locales';
85
86
  export { Screens } from '../_utils/globals/screens';
86
87
  export { default as variables } from '../_utils/globals/variables';
@@ -82,5 +82,6 @@ export { GlobalStyle } from '../Styled/GlobalStyles';
82
82
  import '../Styled/GlobalStyles.css';
83
83
  export { default as IInputCallbackData } from '../_utils';
84
84
  export { default as screens } from '../_utils/globals/screens';
85
+ export * from '../_utils/globals/locales';
85
86
  export { Screens } from '../_utils/globals/screens';
86
87
  export { default as variables } from '../_utils/globals/variables';