react-native-unistyles 3.0.0-alpha.7 → 3.0.0-alpha.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. package/lib/commonjs/specs/index.web.js +1 -1
  2. package/lib/commonjs/web/convert/boxShadow.js +77 -0
  3. package/lib/commonjs/web/convert/boxShadow.js.map +1 -0
  4. package/lib/commonjs/web/convert/breakpoint.js +25 -0
  5. package/lib/commonjs/web/convert/breakpoint.js.map +1 -0
  6. package/lib/commonjs/web/convert/index.js +76 -0
  7. package/lib/commonjs/web/convert/index.js.map +1 -0
  8. package/lib/commonjs/web/convert/module.d.js +2 -0
  9. package/lib/commonjs/web/convert/module.d.js.map +1 -0
  10. package/lib/commonjs/web/convert/shadow.js +68 -0
  11. package/lib/commonjs/web/convert/shadow.js.map +1 -0
  12. package/lib/commonjs/web/convert/style.js +89 -0
  13. package/lib/commonjs/web/convert/style.js.map +1 -0
  14. package/lib/commonjs/web/convert/textShadow.js +73 -0
  15. package/lib/commonjs/web/convert/textShadow.js.map +1 -0
  16. package/lib/commonjs/web/convert/transform.js +72 -0
  17. package/lib/commonjs/web/convert/transform.js.map +1 -0
  18. package/lib/commonjs/web/convert/types.js +9 -0
  19. package/lib/commonjs/web/convert/types.js.map +1 -0
  20. package/lib/commonjs/web/convert/utils.js +55 -0
  21. package/lib/commonjs/web/convert/utils.js.map +1 -0
  22. package/lib/commonjs/web/create.js +89 -0
  23. package/lib/commonjs/web/create.js.map +1 -0
  24. package/lib/commonjs/web/index.js +51 -0
  25. package/lib/commonjs/web/index.js.map +1 -0
  26. package/lib/commonjs/web/listener/index.js +13 -0
  27. package/lib/commonjs/web/listener/index.js.map +1 -0
  28. package/lib/commonjs/web/listener/listener.js +36 -0
  29. package/lib/commonjs/web/listener/listener.js.map +1 -0
  30. package/lib/commonjs/web/mock.js +37 -0
  31. package/lib/commonjs/web/mock.js.map +1 -0
  32. package/lib/commonjs/web/mq.js +23 -0
  33. package/lib/commonjs/web/mq.js.map +1 -0
  34. package/lib/commonjs/web/pseudo.js +11 -0
  35. package/lib/commonjs/web/pseudo.js.map +1 -0
  36. package/lib/commonjs/web/registry.js +37 -0
  37. package/lib/commonjs/web/registry.js.map +1 -0
  38. package/lib/commonjs/web/runtime.js +164 -0
  39. package/lib/commonjs/web/runtime.js.map +1 -0
  40. package/lib/commonjs/web/state.js +121 -0
  41. package/lib/commonjs/web/state.js.map +1 -0
  42. package/lib/commonjs/web/utils.js +78 -0
  43. package/lib/commonjs/web/utils.js.map +1 -0
  44. package/lib/commonjs/web/variants/getVariants.js +39 -0
  45. package/lib/commonjs/web/variants/getVariants.js.map +1 -0
  46. package/lib/commonjs/web/variants/index.js +28 -0
  47. package/lib/commonjs/web/variants/index.js.map +1 -0
  48. package/lib/commonjs/web/variants/useVariants.js +75 -0
  49. package/lib/commonjs/web/variants/useVariants.js.map +1 -0
  50. package/lib/module/specs/index.web.js +1 -1
  51. package/lib/module/specs/index.web.js.map +1 -1
  52. package/lib/module/web/convert/boxShadow.js +72 -0
  53. package/lib/module/web/convert/boxShadow.js.map +1 -0
  54. package/lib/module/web/convert/breakpoint.js +20 -0
  55. package/lib/module/web/convert/breakpoint.js.map +1 -0
  56. package/lib/module/web/convert/index.js +71 -0
  57. package/lib/module/web/convert/index.js.map +1 -0
  58. package/lib/module/web/convert/module.d.js +2 -0
  59. package/lib/module/web/convert/module.d.js.map +1 -0
  60. package/lib/module/web/convert/shadow.js +63 -0
  61. package/lib/module/web/convert/shadow.js.map +1 -0
  62. package/lib/module/web/convert/style.js +84 -0
  63. package/lib/module/web/convert/style.js.map +1 -0
  64. package/lib/module/web/convert/textShadow.js +68 -0
  65. package/lib/module/web/convert/textShadow.js.map +1 -0
  66. package/lib/module/web/convert/transform.js +67 -0
  67. package/lib/module/web/convert/transform.js.map +1 -0
  68. package/lib/module/web/convert/types.js +5 -0
  69. package/lib/module/web/convert/types.js.map +1 -0
  70. package/lib/module/web/convert/utils.js +43 -0
  71. package/lib/module/web/convert/utils.js.map +1 -0
  72. package/lib/module/web/create.js +84 -0
  73. package/lib/module/web/create.js.map +1 -0
  74. package/lib/module/web/index.js +24 -0
  75. package/lib/module/web/index.js.map +1 -0
  76. package/lib/module/web/listener/index.js +4 -0
  77. package/lib/module/web/listener/index.js.map +1 -0
  78. package/lib/module/web/listener/listener.js +31 -0
  79. package/lib/module/web/listener/listener.js.map +1 -0
  80. package/lib/module/web/mock.js +33 -0
  81. package/lib/module/web/mock.js.map +1 -0
  82. package/lib/module/web/mq.js +17 -0
  83. package/lib/module/web/mq.js.map +1 -0
  84. package/lib/module/web/pseudo.js +6 -0
  85. package/lib/module/web/pseudo.js.map +1 -0
  86. package/lib/module/web/registry.js +33 -0
  87. package/lib/module/web/registry.js.map +1 -0
  88. package/lib/module/web/runtime.js +160 -0
  89. package/lib/module/web/runtime.js.map +1 -0
  90. package/lib/module/web/state.js +117 -0
  91. package/lib/module/web/state.js.map +1 -0
  92. package/lib/module/web/utils.js +65 -0
  93. package/lib/module/web/utils.js.map +1 -0
  94. package/lib/module/web/variants/getVariants.js +34 -0
  95. package/lib/module/web/variants/getVariants.js.map +1 -0
  96. package/lib/module/web/variants/index.js +5 -0
  97. package/lib/module/web/variants/index.js.map +1 -0
  98. package/lib/module/web/variants/useVariants.js +70 -0
  99. package/lib/module/web/variants/useVariants.js.map +1 -0
  100. package/lib/typescript/src/specs/index.web.d.ts +1 -1
  101. package/lib/typescript/src/specs/index.web.d.ts.map +1 -1
  102. package/lib/typescript/src/types/stylesheet.d.ts +1 -1
  103. package/lib/typescript/src/types/stylesheet.d.ts.map +1 -1
  104. package/lib/typescript/src/web/convert/boxShadow.d.ts.map +1 -0
  105. package/lib/typescript/src/web/convert/breakpoint.d.ts.map +1 -0
  106. package/lib/typescript/{web → src/web}/convert/index.d.ts +1 -1
  107. package/lib/typescript/src/web/convert/index.d.ts.map +1 -0
  108. package/lib/typescript/src/web/convert/shadow.d.ts.map +1 -0
  109. package/lib/typescript/src/web/convert/style.d.ts.map +1 -0
  110. package/lib/typescript/src/web/convert/textShadow.d.ts.map +1 -0
  111. package/lib/typescript/src/web/convert/transform.d.ts.map +1 -0
  112. package/lib/typescript/{web → src/web}/convert/types.d.ts +1 -1
  113. package/lib/typescript/src/web/convert/types.d.ts.map +1 -0
  114. package/lib/typescript/src/web/convert/utils.d.ts.map +1 -0
  115. package/lib/typescript/{web → src/web}/create.d.ts +11 -11
  116. package/lib/typescript/{web → src/web}/create.d.ts.map +1 -1
  117. package/lib/typescript/{web → src/web}/index.d.ts +12 -12
  118. package/lib/typescript/{web → src/web}/index.d.ts.map +1 -1
  119. package/lib/typescript/src/web/listener/index.d.ts.map +1 -0
  120. package/lib/typescript/{web → src/web}/listener/listener.d.ts +1 -1
  121. package/lib/typescript/src/web/listener/listener.d.ts.map +1 -0
  122. package/lib/typescript/{web → src/web}/mock.d.ts +2 -2
  123. package/lib/typescript/src/web/mock.d.ts.map +1 -0
  124. package/lib/typescript/src/web/mq.d.ts.map +1 -0
  125. package/lib/typescript/src/web/pseudo.d.ts.map +1 -0
  126. package/lib/typescript/{web → src/web}/registry.d.ts +1 -1
  127. package/lib/typescript/src/web/registry.d.ts.map +1 -0
  128. package/lib/typescript/{web → src/web}/runtime.d.ts +6 -6
  129. package/lib/typescript/src/web/runtime.d.ts.map +1 -0
  130. package/lib/typescript/{web → src/web}/state.d.ts +4 -4
  131. package/lib/typescript/src/web/state.d.ts.map +1 -0
  132. package/lib/typescript/{web → src/web}/utils.d.ts +5 -3
  133. package/lib/typescript/src/web/utils.d.ts.map +1 -0
  134. package/lib/typescript/src/web/variants/getVariants.d.ts +3 -0
  135. package/lib/typescript/src/web/variants/getVariants.d.ts.map +1 -0
  136. package/lib/typescript/src/web/variants/index.d.ts +3 -0
  137. package/lib/typescript/src/web/variants/index.d.ts.map +1 -0
  138. package/lib/typescript/src/web/variants/useVariants.d.ts +3 -0
  139. package/lib/typescript/src/web/variants/useVariants.d.ts.map +1 -0
  140. package/package.json +1 -1
  141. package/plugin/__tests__/ref.spec.js +130 -4
  142. package/plugin/index.js +12 -13
  143. package/plugin/ref.js +38 -14
  144. package/plugin/style.js +13 -7
  145. package/src/specs/index.web.ts +1 -1
  146. package/src/types/stylesheet.ts +1 -1
  147. package/{web → src/web}/convert/breakpoint.ts +1 -1
  148. package/{web → src/web}/convert/index.ts +1 -1
  149. package/{web → src/web}/convert/types.ts +1 -1
  150. package/{web → src/web}/create.ts +36 -33
  151. package/{web → src/web}/listener/listener.ts +1 -1
  152. package/{web → src/web}/mock.ts +2 -2
  153. package/{web → src/web}/registry.ts +1 -1
  154. package/{web → src/web}/runtime.ts +4 -4
  155. package/{web → src/web}/state.ts +5 -5
  156. package/{web → src/web}/utils.ts +5 -5
  157. package/src/web/variants/getVariants.ts +42 -0
  158. package/src/web/variants/index.ts +2 -0
  159. package/{web → src/web/variants}/useVariants.ts +24 -44
  160. package/lib/typescript/web/convert/boxShadow.d.ts.map +0 -1
  161. package/lib/typescript/web/convert/breakpoint.d.ts.map +0 -1
  162. package/lib/typescript/web/convert/index.d.ts.map +0 -1
  163. package/lib/typescript/web/convert/shadow.d.ts.map +0 -1
  164. package/lib/typescript/web/convert/style.d.ts.map +0 -1
  165. package/lib/typescript/web/convert/textShadow.d.ts.map +0 -1
  166. package/lib/typescript/web/convert/transform.d.ts.map +0 -1
  167. package/lib/typescript/web/convert/types.d.ts.map +0 -1
  168. package/lib/typescript/web/convert/utils.d.ts.map +0 -1
  169. package/lib/typescript/web/listener/index.d.ts.map +0 -1
  170. package/lib/typescript/web/listener/listener.d.ts.map +0 -1
  171. package/lib/typescript/web/mock.d.ts.map +0 -1
  172. package/lib/typescript/web/mq.d.ts.map +0 -1
  173. package/lib/typescript/web/pseudo.d.ts.map +0 -1
  174. package/lib/typescript/web/registry.d.ts.map +0 -1
  175. package/lib/typescript/web/runtime.d.ts.map +0 -1
  176. package/lib/typescript/web/state.d.ts.map +0 -1
  177. package/lib/typescript/web/useVariants.d.ts +0 -3
  178. package/lib/typescript/web/useVariants.d.ts.map +0 -1
  179. package/lib/typescript/web/utils.d.ts.map +0 -1
  180. /package/lib/typescript/{web → src/web}/convert/boxShadow.d.ts +0 -0
  181. /package/lib/typescript/{web → src/web}/convert/breakpoint.d.ts +0 -0
  182. /package/lib/typescript/{web → src/web}/convert/shadow.d.ts +0 -0
  183. /package/lib/typescript/{web → src/web}/convert/style.d.ts +0 -0
  184. /package/lib/typescript/{web → src/web}/convert/textShadow.d.ts +0 -0
  185. /package/lib/typescript/{web → src/web}/convert/transform.d.ts +0 -0
  186. /package/lib/typescript/{web → src/web}/convert/utils.d.ts +0 -0
  187. /package/lib/typescript/{web → src/web}/listener/index.d.ts +0 -0
  188. /package/lib/typescript/{web → src/web}/mq.d.ts +0 -0
  189. /package/lib/typescript/{web → src/web}/pseudo.d.ts +0 -0
  190. /package/{web → src/web}/convert/boxShadow.ts +0 -0
  191. /package/{web → src/web}/convert/module.d.ts +0 -0
  192. /package/{web → src/web}/convert/shadow.ts +0 -0
  193. /package/{web → src/web}/convert/style.ts +0 -0
  194. /package/{web → src/web}/convert/textShadow.ts +0 -0
  195. /package/{web → src/web}/convert/transform.ts +0 -0
  196. /package/{web → src/web}/convert/utils.ts +0 -0
  197. /package/{web → src/web}/index.ts +0 -0
  198. /package/{web → src/web}/listener/index.ts +0 -0
  199. /package/{web → src/web}/mq.ts +0 -0
  200. /package/{web → src/web}/pseudo.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../web/runtime.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC/F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAMrD,cAAM,uBAAuB;IACzB,UAAU,wBAAuB;IACjC,SAAS,wBAAsB;IAE/B,OAAO,CAAC,aAAa;IAYrB,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YAAY,CAAA;IAExB,UAAU,CAAC,EAAE,aAAa,CAAA;IAC1B,WAAW,CAAC,EAAE,oBAAoB,CAAA;IAElC,iBAAiB,UAAQ;IAEzB,IAAI,WAAY,eAAe,UAU9B;IAED,OAAO,CAAC,UAAU,CAIjB;IAED,OAAO,CAAC,YAAY,CAyBnB;IAED,OAAO,CAAC,eAAe,CAmCtB;IAED,SAAS;;;CAyCZ;AAED,eAAO,MAAM,cAAc,uBAA8B,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { ReactNativeStyleSheet, StyleSheet } from '../src/types';
2
- export declare const createUseVariants: (styles: ReactNativeStyleSheet<StyleSheet>) => void;
3
- //# sourceMappingURL=useVariants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useVariants.d.ts","sourceRoot":"","sources":["../../../web/useVariants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAarE,eAAO,MAAM,iBAAiB,WAAY,qBAAqB,CAAC,UAAU,CAAC,SAmF1E,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../web/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,YAAY,EAAC,MAAM,oBAAoB,CAAA;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEnD,eAAO,MAAM,YAAY,GAAI,IAAI,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,QAAQ,OAC9D,IAAI,WACA,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,IAAI,CAAC,EAAE,GAAG,EAAE,MAAM,IAAI,KAAK,QAAQ,KACmD,GAAG,CAAe,IAAV,MAAM,IAAI,GAAG,QAAQ,GAAE,CAAA;AAErJ,eAAO,MAAM,sBAAsB,cAAe,MAAM,UAAU,eAAe;;;CAahF,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,OAAO,WAAW,KAAG,GAAG,IAAI,MAAM,CAAe,CAAA;AAElH,eAAO,MAAM,aAAa,WAAY,WAAW,KAAG,YAQnD,CAAA;AAED,eAAO,MAAM,SAAS,QAAS,MAAM,WAAW,MAAM,WAM5B,CAAA;AAE1B,eAAO,MAAM,QAAQ,eAAsC,CAAA;AAE3D;;EAEE;AACF,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,cAAc,KAAK,CAAC,CAAC,CAAC,MAqBxF,CAAA;AAED,eAAO,MAAM,IAAI,YAAa,MAAM,SAA2D,CAAA;AAE/F,eAAO,MAAM,KAAK,GAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAqBlC,CAAA"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes