@dfds-ui/theme 2.0.29-alpha.87e7918e → 2.0.29-alpha.9a0ea182

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/cjs/media.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- declare type Breakpoint<T> = keyof T | number;
2
- declare type Breakpoints<T> = {
1
+ type Breakpoint<T> = keyof T | number;
2
+ type Breakpoints<T> = {
3
3
  [Key in keyof T]: number;
4
4
  };
5
5
  interface IBreakpoints {
6
6
  [key: string]: number;
7
7
  }
8
8
  export declare function generateMedia<T extends Breakpoints<T>>(breakpoints: T): {
9
- lessThan: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
10
- lt: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
11
- lessThanEqual: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
12
- lte: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
13
- greaterThan: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
14
- gt: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
15
- between: (firstBreakpoint: Breakpoint<T>, secondBreakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
16
- bt: (firstBreakpoint: Breakpoint<T>, secondBreakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
9
+ lessThan: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
10
+ lt: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
11
+ lessThanEqual: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
12
+ lte: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
13
+ greaterThan: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
14
+ gt: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
15
+ between: (firstBreakpoint: Breakpoint<T>, secondBreakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
16
+ bt: (firstBreakpoint: Breakpoint<T>, secondBreakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
17
17
  };
18
18
  export declare const media: {
19
19
  lessThan: (breakpoint: Breakpoint<{
@@ -22,42 +22,42 @@ export declare const media: {
22
22
  l: number;
23
23
  xl: number;
24
24
  xxl: number;
25
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
25
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
26
26
  lt: (breakpoint: Breakpoint<{
27
27
  s: number;
28
28
  m: number;
29
29
  l: number;
30
30
  xl: number;
31
31
  xxl: number;
32
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
32
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
33
33
  lessThanEqual: (breakpoint: Breakpoint<{
34
34
  s: number;
35
35
  m: number;
36
36
  l: number;
37
37
  xl: number;
38
38
  xxl: number;
39
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
39
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
40
40
  lte: (breakpoint: Breakpoint<{
41
41
  s: number;
42
42
  m: number;
43
43
  l: number;
44
44
  xl: number;
45
45
  xxl: number;
46
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
46
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
47
47
  greaterThan: (breakpoint: Breakpoint<{
48
48
  s: number;
49
49
  m: number;
50
50
  l: number;
51
51
  xl: number;
52
52
  xxl: number;
53
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
53
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
54
54
  gt: (breakpoint: Breakpoint<{
55
55
  s: number;
56
56
  m: number;
57
57
  l: number;
58
58
  xl: number;
59
59
  xxl: number;
60
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
60
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
61
61
  between: (firstBreakpoint: Breakpoint<{
62
62
  s: number;
63
63
  m: number;
@@ -70,7 +70,7 @@ export declare const media: {
70
70
  l: number;
71
71
  xl: number;
72
72
  xxl: number;
73
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
73
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
74
74
  bt: (firstBreakpoint: Breakpoint<{
75
75
  s: number;
76
76
  m: number;
@@ -83,7 +83,7 @@ export declare const media: {
83
83
  l: number;
84
84
  xl: number;
85
85
  xxl: number;
86
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
86
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
87
87
  };
88
88
  export declare function useBreakpoint(breakpoints?: IBreakpoints): {
89
89
  greaterThan: (breakpointKey: string) => boolean;
package/cjs/states.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type OverlayOptions = typeof defaultOverlayOptions;
1
+ export type OverlayOptions = typeof defaultOverlayOptions;
2
2
  declare const defaultOverlayOptions: {
3
3
  hover: string;
4
4
  focus: string;
@@ -9,16 +9,8 @@ declare const defaultOverlayOptions: {
9
9
  ignoreFocusVisibility: boolean;
10
10
  };
11
11
  declare const _default: {
12
- outline: (error?: boolean) => import("@emotion/utils").SerializedStyles;
13
- overlay: (selected?: boolean, overlayOptions?: Partial<{
14
- hover: string;
15
- focus: string;
16
- active: string;
17
- selected: string;
18
- disabled: string;
19
- color: string;
20
- ignoreFocusVisibility: boolean;
21
- }>) => import("@emotion/utils").SerializedStyles;
12
+ outline: (error?: boolean) => import("@emotion/react").SerializedStyles;
13
+ overlay: (selected?: boolean, overlayOptions?: Partial<typeof defaultOverlayOptions>) => import("@emotion/react").SerializedStyles;
22
14
  overlayOptions: {
23
15
  defaultOverlayOptions: {
24
16
  hover: string;
@@ -0,0 +1 @@
1
+ "use strict";
package/media.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- declare type Breakpoint<T> = keyof T | number;
2
- declare type Breakpoints<T> = {
1
+ type Breakpoint<T> = keyof T | number;
2
+ type Breakpoints<T> = {
3
3
  [Key in keyof T]: number;
4
4
  };
5
5
  interface IBreakpoints {
6
6
  [key: string]: number;
7
7
  }
8
8
  export declare function generateMedia<T extends Breakpoints<T>>(breakpoints: T): {
9
- lessThan: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
10
- lt: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
11
- lessThanEqual: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
12
- lte: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
13
- greaterThan: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
14
- gt: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
15
- between: (firstBreakpoint: Breakpoint<T>, secondBreakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
16
- bt: (firstBreakpoint: Breakpoint<T>, secondBreakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/utils").SerializedStyles;
9
+ lessThan: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
10
+ lt: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
11
+ lessThanEqual: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
12
+ lte: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
13
+ greaterThan: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
14
+ gt: (breakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
15
+ between: (firstBreakpoint: Breakpoint<T>, secondBreakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
16
+ bt: (firstBreakpoint: Breakpoint<T>, secondBreakpoint: Breakpoint<T>) => (...args: any) => import("@emotion/react").SerializedStyles;
17
17
  };
18
18
  export declare const media: {
19
19
  lessThan: (breakpoint: Breakpoint<{
@@ -22,42 +22,42 @@ export declare const media: {
22
22
  l: number;
23
23
  xl: number;
24
24
  xxl: number;
25
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
25
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
26
26
  lt: (breakpoint: Breakpoint<{
27
27
  s: number;
28
28
  m: number;
29
29
  l: number;
30
30
  xl: number;
31
31
  xxl: number;
32
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
32
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
33
33
  lessThanEqual: (breakpoint: Breakpoint<{
34
34
  s: number;
35
35
  m: number;
36
36
  l: number;
37
37
  xl: number;
38
38
  xxl: number;
39
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
39
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
40
40
  lte: (breakpoint: Breakpoint<{
41
41
  s: number;
42
42
  m: number;
43
43
  l: number;
44
44
  xl: number;
45
45
  xxl: number;
46
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
46
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
47
47
  greaterThan: (breakpoint: Breakpoint<{
48
48
  s: number;
49
49
  m: number;
50
50
  l: number;
51
51
  xl: number;
52
52
  xxl: number;
53
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
53
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
54
54
  gt: (breakpoint: Breakpoint<{
55
55
  s: number;
56
56
  m: number;
57
57
  l: number;
58
58
  xl: number;
59
59
  xxl: number;
60
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
60
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
61
61
  between: (firstBreakpoint: Breakpoint<{
62
62
  s: number;
63
63
  m: number;
@@ -70,7 +70,7 @@ export declare const media: {
70
70
  l: number;
71
71
  xl: number;
72
72
  xxl: number;
73
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
73
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
74
74
  bt: (firstBreakpoint: Breakpoint<{
75
75
  s: number;
76
76
  m: number;
@@ -83,7 +83,7 @@ export declare const media: {
83
83
  l: number;
84
84
  xl: number;
85
85
  xxl: number;
86
- }>) => (...args: any) => import("@emotion/utils").SerializedStyles;
86
+ }>) => (...args: any) => import("@emotion/react").SerializedStyles;
87
87
  };
88
88
  export declare function useBreakpoint(breakpoints?: IBreakpoints): {
89
89
  greaterThan: (breakpointKey: string) => boolean;
package/package.json CHANGED
@@ -3,22 +3,22 @@
3
3
  "description": "Theme",
4
4
  "license": "MIT",
5
5
  "private": false,
6
- "version": "2.0.29-alpha.87e7918e",
6
+ "version": "2.0.29-alpha.9a0ea182",
7
7
  "sideEffects": false,
8
8
  "main": "./cjs/index.js",
9
9
  "module": "./index.js",
10
10
  "typings": "./index.d.ts",
11
11
  "peerDependencies": {
12
- "@emotion/react": "11.11.4",
12
+ "@emotion/react": "11.14.0",
13
13
  "react": ">= 17.0.2"
14
14
  },
15
15
  "dependencies": {
16
- "@dfds-ui/colors": "2.0.29-alpha.87e7918e",
17
- "@dfds-ui/spacing": "2.0.29-alpha.87e7918e",
18
- "@types/lodash.throttle": "^4.1.7",
16
+ "@dfds-ui/colors": "2.0.29-alpha.9a0ea182",
17
+ "@dfds-ui/spacing": "2.0.29-alpha.9a0ea182",
18
+ "@types/lodash": "^4.17.20",
19
19
  "lodash.throttle": "^4.1.1"
20
20
  },
21
- "gitHead": "87e7918e8db6d7c321e8069dc4c92132de4e70e6",
21
+ "gitHead": "9a0ea1821df447249363a38ea548ce565163e1c3",
22
22
  "esnext": "",
23
23
  "publishConfig": {
24
24
  "access": "public"
package/states.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type OverlayOptions = typeof defaultOverlayOptions;
1
+ export type OverlayOptions = typeof defaultOverlayOptions;
2
2
  declare const defaultOverlayOptions: {
3
3
  hover: string;
4
4
  focus: string;
@@ -9,16 +9,8 @@ declare const defaultOverlayOptions: {
9
9
  ignoreFocusVisibility: boolean;
10
10
  };
11
11
  declare const _default: {
12
- outline: (error?: boolean) => import("@emotion/utils").SerializedStyles;
13
- overlay: (selected?: boolean, overlayOptions?: Partial<{
14
- hover: string;
15
- focus: string;
16
- active: string;
17
- selected: string;
18
- disabled: string;
19
- color: string;
20
- ignoreFocusVisibility: boolean;
21
- }>) => import("@emotion/utils").SerializedStyles;
12
+ outline: (error?: boolean) => import("@emotion/react").SerializedStyles;
13
+ overlay: (selected?: boolean, overlayOptions?: Partial<typeof defaultOverlayOptions>) => import("@emotion/react").SerializedStyles;
22
14
  overlayOptions: {
23
15
  defaultOverlayOptions: {
24
16
  hover: string;
File without changes