react-native-unistyles 2.0.0-alpha.2 → 2.0.0-alpha.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/ios/UnistylesHelpers.h +4 -0
  2. package/ios/UnistylesHelpers.mm +20 -0
  3. package/ios/UnistylesModule.h +2 -2
  4. package/ios/UnistylesModule.mm +83 -38
  5. package/lib/commonjs/UnistyleRegistry.js +15 -7
  6. package/lib/commonjs/UnistyleRegistry.js.map +1 -1
  7. package/lib/commonjs/UnistylesRuntime.js +29 -15
  8. package/lib/commonjs/UnistylesRuntime.js.map +1 -1
  9. package/lib/commonjs/hooks/useDimensions.web.js +7 -5
  10. package/lib/commonjs/hooks/useDimensions.web.js.map +1 -1
  11. package/lib/commonjs/index.js +4 -3
  12. package/lib/commonjs/index.js.map +1 -1
  13. package/lib/commonjs/types/cxx.js +9 -5
  14. package/lib/commonjs/types/cxx.js.map +1 -1
  15. package/lib/commonjs/useInitialTheme.js +1 -1
  16. package/lib/commonjs/useInitialTheme.js.map +1 -1
  17. package/lib/commonjs/useUnistyles.js +5 -7
  18. package/lib/commonjs/useUnistyles.js.map +1 -1
  19. package/lib/commonjs/utils/breakpoints.js.map +1 -1
  20. package/lib/module/UnistyleRegistry.js +15 -7
  21. package/lib/module/UnistyleRegistry.js.map +1 -1
  22. package/lib/module/UnistylesRuntime.js +30 -16
  23. package/lib/module/UnistylesRuntime.js.map +1 -1
  24. package/lib/module/hooks/useDimensions.web.js +8 -6
  25. package/lib/module/hooks/useDimensions.web.js.map +1 -1
  26. package/lib/module/index.js +3 -2
  27. package/lib/module/index.js.map +1 -1
  28. package/lib/module/types/cxx.js +8 -4
  29. package/lib/module/types/cxx.js.map +1 -1
  30. package/lib/module/useInitialTheme.js +2 -2
  31. package/lib/module/useInitialTheme.js.map +1 -1
  32. package/lib/module/useUnistyles.js +5 -7
  33. package/lib/module/useUnistyles.js.map +1 -1
  34. package/lib/module/utils/breakpoints.js.map +1 -1
  35. package/lib/typescript/src/UnistyleRegistry.d.ts +3 -2
  36. package/lib/typescript/src/UnistyleRegistry.d.ts.map +1 -1
  37. package/lib/typescript/src/UnistylesRuntime.d.ts +14 -46
  38. package/lib/typescript/src/UnistylesRuntime.d.ts.map +1 -1
  39. package/lib/typescript/src/global.d.ts +1 -0
  40. package/lib/typescript/src/global.d.ts.map +1 -1
  41. package/lib/typescript/src/hooks/useDimensions.web.d.ts.map +1 -1
  42. package/lib/typescript/src/index.d.ts +3 -2
  43. package/lib/typescript/src/index.d.ts.map +1 -1
  44. package/lib/typescript/src/types/cxx.d.ts +21 -13
  45. package/lib/typescript/src/types/cxx.d.ts.map +1 -1
  46. package/lib/typescript/src/useStyles.d.ts +3 -39
  47. package/lib/typescript/src/useStyles.d.ts.map +1 -1
  48. package/lib/typescript/src/useUnistyles.d.ts +2 -38
  49. package/lib/typescript/src/useUnistyles.d.ts.map +1 -1
  50. package/package.json +12 -13
  51. package/react-native-unistyles.podspec +2 -1
  52. package/src/UnistyleRegistry.ts +19 -8
  53. package/src/UnistylesRuntime.ts +31 -16
  54. package/src/global.ts +3 -1
  55. package/src/hooks/useDimensions.web.ts +9 -6
  56. package/src/index.ts +4 -2
  57. package/src/types/cxx.ts +25 -14
  58. package/src/useInitialTheme.ts +2 -2
  59. package/src/useUnistyles.ts +5 -6
  60. package/src/utils/breakpoints.ts +1 -1
  61. package/ios/UnistylesRuntime.h +0 -30
  62. package/ios/UnistylesRuntime.mm +0 -191
  63. package/lib/typescript/examples/expo/src/App.d.ts +0 -3
  64. package/lib/typescript/examples/expo/src/App.d.ts.map +0 -1
  65. package/lib/typescript/examples/expo/src/examples/Cxx.d.ts +0 -3
  66. package/lib/typescript/examples/expo/src/examples/Cxx.d.ts.map +0 -1
  67. package/lib/typescript/examples/expo/src/examples/index.d.ts +0 -2
  68. package/lib/typescript/examples/expo/src/examples/index.d.ts.map +0 -1
  69. package/lib/typescript/examples/expo/src/index.d.ts +0 -2
  70. package/lib/typescript/examples/expo/src/index.d.ts.map +0 -1
  71. package/lib/typescript/examples/expo/src/styles/breakpoints.d.ts +0 -8
  72. package/lib/typescript/examples/expo/src/styles/breakpoints.d.ts.map +0 -1
  73. package/lib/typescript/examples/expo/src/styles/index.d.ts +0 -16
  74. package/lib/typescript/examples/expo/src/styles/index.d.ts.map +0 -1
  75. package/lib/typescript/examples/expo/src/styles/theme.d.ts +0 -40
  76. package/lib/typescript/examples/expo/src/styles/theme.d.ts.map +0 -1
@@ -1,16 +0,0 @@
1
- import { breakpoints } from './breakpoints';
2
- import { lightTheme, darkTheme, premiumTheme } from './theme';
3
- type AppBreakpoints = typeof breakpoints;
4
- type AppThemes = {
5
- light: typeof lightTheme;
6
- dark: typeof darkTheme;
7
- premium: typeof premiumTheme;
8
- };
9
- declare module 'react-native-unistyles' {
10
- interface UnistylesThemes extends AppThemes {
11
- }
12
- interface UnistylesBreakpoints extends AppBreakpoints {
13
- }
14
- }
15
- export { lightTheme, darkTheme, premiumTheme, breakpoints };
16
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../examples/expo/src/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE7D,KAAK,cAAc,GAAG,OAAO,WAAW,CAAA;AACxC,KAAK,SAAS,GAAG;IACb,KAAK,EAAE,OAAO,UAAU,CAAA;IACxB,IAAI,EAAE,OAAO,SAAS,CAAA;IACtB,OAAO,EAAE,OAAO,YAAY,CAAA;CAC/B,CAAA;AAED,OAAO,QAAQ,wBAAwB,CAAC;IACpC,UAAiB,eAAgB,SAAQ,SAAS;KAAG;IAErD,UAAiB,oBAAqB,SAAQ,cAAc;KAAG;CAClE;AAED,OAAO,EACH,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACd,CAAA"}
@@ -1,40 +0,0 @@
1
- export declare const lightTheme: {
2
- colors: {
3
- backgroundColor: string;
4
- typography: string;
5
- accent: string;
6
- barbie: string;
7
- oak: string;
8
- sky: string;
9
- fog: string;
10
- aloes: string;
11
- blood: string;
12
- };
13
- };
14
- export declare const darkTheme: {
15
- colors: {
16
- backgroundColor: string;
17
- typography: string;
18
- accent: string;
19
- barbie: string;
20
- oak: string;
21
- sky: string;
22
- fog: string;
23
- aloes: string;
24
- blood: string;
25
- };
26
- };
27
- export declare const premiumTheme: {
28
- colors: {
29
- backgroundColor: string;
30
- typography: string;
31
- accent: string;
32
- barbie: string;
33
- oak: string;
34
- sky: string;
35
- fog: string;
36
- aloes: string;
37
- blood: string;
38
- };
39
- };
40
- //# sourceMappingURL=theme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../examples/expo/src/styles/theme.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,UAAU;;;;;;;;;;;;CAQtB,CAAA;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;CAQrB,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;CAQxB,CAAA"}