@niibase/uniwind 1.6.4 → 1.8.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 (342) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/dist/cli/index.cjs +91 -0
  3. package/dist/cli/index.mjs +84 -0
  4. package/dist/common/{css → bundler/artifacts/css}/index.js +1 -4
  5. package/dist/common/{css → bundler/artifacts/css}/themes.js +4 -1
  6. package/dist/common/{utils/buildDtsFile.js → bundler/artifacts/dts.js} +1 -2
  7. package/dist/common/bundler/cli/index.js +76 -0
  8. package/dist/common/bundler/config.js +75 -0
  9. package/dist/common/bundler/css-compiler/compileCSS.js +18 -0
  10. package/dist/common/bundler/css-compiler/compileNativeCSS.js +19 -0
  11. package/dist/common/bundler/css-compiler/compileTailwind.js +27 -0
  12. package/dist/common/bundler/css-compiler/compileWebCSS.js +15 -0
  13. package/dist/common/{vite → bundler/css-compiler}/index.js +4 -4
  14. package/dist/common/bundler/css-processor/addMetaToStylesTemplate.js +130 -0
  15. package/dist/common/bundler/css-processor/animation.js +112 -0
  16. package/dist/common/bundler/css-processor/color.js +66 -0
  17. package/dist/common/bundler/css-processor/css.js +510 -0
  18. package/dist/common/bundler/css-processor/functions.js +145 -0
  19. package/dist/common/bundler/css-processor/index.js +38 -0
  20. package/dist/common/bundler/css-processor/mq.js +87 -0
  21. package/dist/common/bundler/css-processor/processor.js +353 -0
  22. package/dist/common/bundler/css-processor/rn.js +356 -0
  23. package/dist/common/bundler/css-processor/serialize.js +86 -0
  24. package/dist/common/bundler/css-processor/types.js +1 -0
  25. package/dist/common/bundler/css-processor/units.js +55 -0
  26. package/dist/common/bundler/css-processor/utils.js +61 -0
  27. package/dist/common/bundler/css-processor/var.js +20 -0
  28. package/dist/common/{css-visitor → bundler/css-visitor}/rule-visitor.js +7 -7
  29. package/dist/common/{css-visitor → bundler/css-visitor}/visitor.js +5 -6
  30. package/dist/common/bundler/logger.js +44 -0
  31. package/dist/common/bundler/types.js +1 -0
  32. package/dist/common/common/consts.js +26 -2
  33. package/dist/common/components/web/rnw.js +2 -2
  34. package/dist/common/core/config/config.common.js +9 -9
  35. package/dist/common/core/config/config.js +2 -2
  36. package/dist/common/core/config/config.native.js +4 -8
  37. package/dist/common/core/listener.js +10 -10
  38. package/dist/common/core/native/native-utils.js +1 -8
  39. package/dist/common/core/native/parsers/textShadow.js +6 -18
  40. package/dist/common/core/native/parsers/transforms.js +1 -5
  41. package/dist/common/core/native/runtime.js +7 -3
  42. package/dist/common/core/native/store.js +22 -69
  43. package/dist/common/core/web/cssListener.js +2 -2
  44. package/dist/common/hoc/withUniwind.js +5 -5
  45. package/dist/common/hoc/withUniwind.native.js +5 -5
  46. package/dist/common/hooks/useCSSVariable/getVariableValue.native.js +4 -1
  47. package/dist/common/hooks/useCSSVariable/useCSSVariable.js +6 -2
  48. package/dist/common/hooks/useUniwind.js +2 -2
  49. package/dist/metro/index.cjs +40 -34
  50. package/dist/metro/index.d.ts +2 -0
  51. package/dist/metro/index.mjs +28 -22
  52. package/dist/metro/{metro-transformer.cjs → transformer.cjs} +316 -200
  53. package/dist/metro/{metro-transformer.mjs → transformer.mjs} +254 -138
  54. package/dist/module/{css → bundler/artifacts/css}/index.d.ts +1 -1
  55. package/dist/module/{css → bundler/artifacts/css}/index.js +1 -4
  56. package/dist/module/{css → bundler/artifacts/css}/themes.js +4 -1
  57. package/dist/module/{utils/buildDtsFile.js → bundler/artifacts/dts.js} +3 -4
  58. package/dist/module/bundler/cli/index.d.ts +2 -0
  59. package/dist/module/bundler/cli/index.js +81 -0
  60. package/dist/module/bundler/config.d.ts +17 -0
  61. package/dist/module/bundler/config.js +77 -0
  62. package/dist/module/bundler/css-compiler/compileCSS.d.ts +2 -0
  63. package/dist/module/bundler/css-compiler/compileCSS.js +11 -0
  64. package/dist/module/bundler/css-compiler/compileNativeCSS.d.ts +2 -0
  65. package/dist/module/bundler/css-compiler/compileNativeCSS.js +33 -0
  66. package/dist/module/bundler/css-compiler/compileTailwind.d.ts +2 -0
  67. package/dist/module/bundler/css-compiler/compileTailwind.js +22 -0
  68. package/dist/module/bundler/css-compiler/compileWebCSS.d.ts +2 -0
  69. package/dist/module/bundler/css-compiler/compileWebCSS.js +8 -0
  70. package/dist/module/bundler/css-compiler/index.d.ts +1 -0
  71. package/dist/module/bundler/css-compiler/index.js +1 -0
  72. package/dist/module/bundler/css-processor/addMetaToStylesTemplate.d.ts +3 -0
  73. package/dist/module/bundler/css-processor/addMetaToStylesTemplate.js +136 -0
  74. package/dist/module/bundler/css-processor/animation.d.ts +6 -0
  75. package/dist/module/bundler/css-processor/animation.js +112 -0
  76. package/dist/module/bundler/css-processor/color.d.ts +12 -0
  77. package/dist/module/bundler/css-processor/color.js +63 -0
  78. package/dist/module/bundler/css-processor/css.d.ts +23 -0
  79. package/dist/module/bundler/css-processor/css.js +566 -0
  80. package/dist/module/bundler/css-processor/functions.d.ts +12 -0
  81. package/dist/module/bundler/css-processor/functions.js +190 -0
  82. package/dist/module/bundler/css-processor/index.d.ts +3 -0
  83. package/dist/module/bundler/css-processor/index.js +3 -0
  84. package/dist/module/bundler/css-processor/mq.d.ts +12 -0
  85. package/dist/module/bundler/css-processor/mq.js +78 -0
  86. package/dist/module/bundler/css-processor/processor.d.ts +36 -0
  87. package/dist/module/bundler/css-processor/processor.js +336 -0
  88. package/dist/module/bundler/css-processor/rn.d.ts +10 -0
  89. package/dist/module/bundler/css-processor/rn.js +400 -0
  90. package/dist/module/bundler/css-processor/serialize.d.ts +2 -0
  91. package/dist/module/bundler/css-processor/serialize.js +101 -0
  92. package/dist/module/bundler/css-processor/types.d.ts +28 -0
  93. package/dist/module/bundler/css-processor/types.js +0 -0
  94. package/dist/module/bundler/css-processor/units.d.ts +10 -0
  95. package/dist/module/bundler/css-processor/units.js +48 -0
  96. package/dist/module/bundler/css-processor/utils.d.ts +23 -0
  97. package/dist/{shared/uniwind.PtWWxxnh.mjs → module/bundler/css-processor/utils.js} +12 -18
  98. package/dist/module/bundler/css-processor/var.d.ts +7 -0
  99. package/dist/module/bundler/css-processor/var.js +13 -0
  100. package/dist/module/{css-visitor → bundler/css-visitor}/function-visitor.d.ts +1 -1
  101. package/dist/module/{css-visitor → bundler/css-visitor}/rule-visitor.d.ts +4 -3
  102. package/dist/module/{css-visitor → bundler/css-visitor}/rule-visitor.js +7 -7
  103. package/dist/module/{css-visitor → bundler/css-visitor}/visitor.d.ts +3 -3
  104. package/dist/module/{css-visitor → bundler/css-visitor}/visitor.js +5 -6
  105. package/dist/module/bundler/logger.d.ts +12 -0
  106. package/dist/module/bundler/logger.js +37 -0
  107. package/dist/module/bundler/types.d.ts +15 -0
  108. package/dist/module/bundler/types.js +0 -0
  109. package/dist/module/common/consts.d.ts +21 -0
  110. package/dist/module/common/consts.js +24 -0
  111. package/dist/module/components/ScopedTheme/ScopedTheme.native.d.ts +1 -1
  112. package/dist/module/components/native/Pressable.d.ts +1 -1
  113. package/dist/module/components/native/TouchableHighlight.d.ts +1 -1
  114. package/dist/module/components/native/TouchableOpacity.d.ts +1 -1
  115. package/dist/module/components/native/useAccentColor.d.ts +1 -1
  116. package/dist/module/components/native/useStyle.d.ts +3 -3
  117. package/dist/module/components/react-native-gesture-handler/native/BaseButton.d.ts +1 -1
  118. package/dist/module/components/react-native-gesture-handler/native/BorderlessButton.d.ts +1 -1
  119. package/dist/module/components/react-native-gesture-handler/native/DrawerLayoutAndroid.d.ts +1 -1
  120. package/dist/module/components/react-native-gesture-handler/native/FlatList.d.ts +1 -1
  121. package/dist/module/components/react-native-gesture-handler/native/Pressable.d.ts +1 -1
  122. package/dist/module/components/react-native-gesture-handler/native/PureNativeButton.d.ts +1 -1
  123. package/dist/module/components/react-native-gesture-handler/native/RawButton.d.ts +1 -1
  124. package/dist/module/components/react-native-gesture-handler/native/RectButton.d.ts +1 -1
  125. package/dist/module/components/react-native-gesture-handler/native/RefreshControl.d.ts +1 -1
  126. package/dist/module/components/react-native-gesture-handler/native/ScrollView.d.ts +1 -1
  127. package/dist/module/components/react-native-gesture-handler/native/Switch.d.ts +1 -1
  128. package/dist/module/components/react-native-gesture-handler/native/Text.d.ts +4 -1
  129. package/dist/module/components/react-native-gesture-handler/native/TextInput.d.ts +1 -1
  130. package/dist/module/components/web/Pressable.d.ts +1 -1
  131. package/dist/module/components/web/TouchableHighlight.d.ts +1 -1
  132. package/dist/module/components/web/TouchableOpacity.d.ts +1 -1
  133. package/dist/module/components/web/rnw.js +1 -1
  134. package/dist/module/core/config/config.common.d.ts +6 -7
  135. package/dist/module/core/config/config.common.js +2 -2
  136. package/dist/module/core/config/config.d.ts +1 -1
  137. package/dist/module/core/config/config.js +1 -1
  138. package/dist/module/core/config/config.native.d.ts +2 -2
  139. package/dist/module/core/config/config.native.js +2 -6
  140. package/dist/module/core/listener.d.ts +1 -1
  141. package/dist/module/core/listener.js +1 -1
  142. package/dist/module/core/native/native-utils.d.ts +0 -1
  143. package/dist/module/core/native/native-utils.js +0 -6
  144. package/dist/module/core/native/parsers/textShadow.js +6 -18
  145. package/dist/module/core/native/parsers/transforms.js +1 -5
  146. package/dist/module/core/native/runtime.js +5 -1
  147. package/dist/module/core/native/store.d.ts +3 -3
  148. package/dist/module/core/native/store.js +22 -65
  149. package/dist/module/core/types.d.ts +12 -7
  150. package/dist/module/core/web/cssListener.js +1 -1
  151. package/dist/module/core/web/getWebStyles.d.ts +1 -1
  152. package/dist/module/hoc/types.d.ts +2 -2
  153. package/dist/module/hoc/withUniwind.d.ts +1 -1
  154. package/dist/module/hoc/withUniwind.js +5 -5
  155. package/dist/module/hoc/withUniwind.native.d.ts +1 -1
  156. package/dist/module/hoc/withUniwind.native.js +5 -5
  157. package/dist/module/hooks/useCSSVariable/getVariableValue.native.d.ts +1 -1
  158. package/dist/module/hooks/useCSSVariable/getVariableValue.native.js +4 -1
  159. package/dist/module/hooks/useCSSVariable/useCSSVariable.d.ts +1 -1
  160. package/dist/module/hooks/useCSSVariable/useCSSVariable.js +5 -1
  161. package/dist/module/hooks/useResolveClassNames.d.ts +1 -1
  162. package/dist/module/hooks/useUniwind.d.ts +1 -1
  163. package/dist/module/hooks/useUniwind.js +1 -1
  164. package/dist/module/index.d.ts +1 -2
  165. package/dist/shared/{uniwind.r2i22V6d.cjs → uniwind.BEqYiPBB.cjs} +319 -217
  166. package/dist/shared/uniwind.CFAAUZ2t.mjs +3 -0
  167. package/dist/shared/uniwind.DJ5M1Q4q.cjs +5 -0
  168. package/dist/shared/{uniwind.BGiqYvxb.mjs → uniwind.DgC4MT51.mjs} +312 -214
  169. package/dist/vite/index.cjs +82 -59
  170. package/dist/vite/index.mjs +80 -58
  171. package/package.json +37 -21
  172. package/src/{metro → bundler/adapters/metro}/index.d.ts +2 -0
  173. package/src/bundler/adapters/metro/index.ts +1 -0
  174. package/src/bundler/adapters/metro/metro.ts +67 -0
  175. package/src/{metro/metro-css-patches.ts → bundler/adapters/metro/patches.ts} +3 -2
  176. package/src/{metro → bundler/adapters/metro}/resolvers.ts +8 -8
  177. package/src/bundler/adapters/metro/transformer.ts +85 -0
  178. package/src/bundler/adapters/vite/vite.ts +148 -0
  179. package/src/{css → bundler/artifacts/css}/extraUtilities.ts +1 -1
  180. package/src/{css → bundler/artifacts/css}/index.ts +1 -5
  181. package/src/{css → bundler/artifacts/css}/themes.ts +7 -2
  182. package/src/{utils/buildDtsFile.ts → bundler/artifacts/dts.ts} +3 -4
  183. package/src/bundler/cli/index.ts +105 -0
  184. package/src/bundler/config.ts +94 -0
  185. package/src/bundler/css-compiler/compileCSS.ts +15 -0
  186. package/src/bundler/css-compiler/compileNativeCSS.ts +41 -0
  187. package/src/bundler/css-compiler/compileTailwind.ts +25 -0
  188. package/src/bundler/css-compiler/compileWebCSS.ts +10 -0
  189. package/src/bundler/css-compiler/index.ts +1 -0
  190. package/src/{metro → bundler/css-processor}/addMetaToStylesTemplate.ts +36 -17
  191. package/src/{metro/processor → bundler/css-processor}/animation.ts +4 -4
  192. package/src/{metro/processor → bundler/css-processor}/color.ts +5 -4
  193. package/src/{metro/processor → bundler/css-processor}/css.ts +19 -11
  194. package/src/{metro/processor → bundler/css-processor}/functions.ts +2 -2
  195. package/src/bundler/css-processor/index.ts +3 -0
  196. package/src/{metro/processor → bundler/css-processor}/mq.ts +4 -4
  197. package/src/{metro/processor → bundler/css-processor}/processor.ts +20 -18
  198. package/src/{metro/processor → bundler/css-processor}/rn.ts +96 -3
  199. package/src/{metro/utils → bundler/css-processor}/serialize.ts +2 -2
  200. package/src/{metro → bundler/css-processor}/types.ts +3 -17
  201. package/src/{metro/processor → bundler/css-processor}/units.ts +2 -2
  202. package/src/{metro/utils/common.ts → bundler/css-processor/utils.ts} +2 -5
  203. package/src/{metro/processor → bundler/css-processor}/var.ts +2 -2
  204. package/src/{css-visitor → bundler/css-visitor}/function-visitor.ts +1 -1
  205. package/src/{css-visitor → bundler/css-visitor}/rule-visitor.ts +8 -7
  206. package/src/{css-visitor → bundler/css-visitor}/visitor.ts +4 -3
  207. package/src/{metro → bundler}/logger.ts +4 -0
  208. package/src/bundler/types.ts +17 -0
  209. package/src/common/consts.ts +25 -0
  210. package/src/components/ScopedTheme/ScopedTheme.native.tsx +1 -1
  211. package/src/components/native/ActivityIndicator.tsx +2 -1
  212. package/src/components/native/Button.tsx +2 -1
  213. package/src/components/native/FlatList.tsx +2 -1
  214. package/src/components/native/Image.tsx +2 -1
  215. package/src/components/native/ImageBackground.tsx +2 -1
  216. package/src/components/native/InputAccessoryView.tsx +3 -2
  217. package/src/components/native/KeyboardAvoidingView.tsx +2 -1
  218. package/src/components/native/Modal.tsx +2 -1
  219. package/src/components/native/Pressable.tsx +1 -1
  220. package/src/components/native/RefreshControl.tsx +2 -1
  221. package/src/components/native/SafeAreaView.tsx +2 -1
  222. package/src/components/native/ScrollView.tsx +2 -1
  223. package/src/components/native/SectionList.tsx +2 -1
  224. package/src/components/native/Switch.tsx +3 -2
  225. package/src/components/native/Text.tsx +3 -2
  226. package/src/components/native/TextInput.tsx +3 -2
  227. package/src/components/native/TouchableHighlight.tsx +3 -2
  228. package/src/components/native/TouchableNativeFeedback.tsx +3 -2
  229. package/src/components/native/TouchableOpacity.tsx +3 -2
  230. package/src/components/native/TouchableWithoutFeedback.tsx +3 -2
  231. package/src/components/native/View.tsx +2 -1
  232. package/src/components/native/VirtualizedList.tsx +2 -1
  233. package/src/components/native/useAccentColor.ts +1 -1
  234. package/src/components/native/useStyle.ts +2 -2
  235. package/src/components/react-native-gesture-handler/native/BaseButton.tsx +1 -1
  236. package/src/components/react-native-gesture-handler/native/BorderlessButton.tsx +1 -1
  237. package/src/components/react-native-gesture-handler/native/DrawerLayoutAndroid.tsx +1 -1
  238. package/src/components/react-native-gesture-handler/native/FlatList.tsx +1 -1
  239. package/src/components/react-native-gesture-handler/native/GestureHandlerRootView.tsx +1 -1
  240. package/src/components/react-native-gesture-handler/native/Pressable.tsx +1 -1
  241. package/src/components/react-native-gesture-handler/native/PureNativeButton.tsx +1 -1
  242. package/src/components/react-native-gesture-handler/native/RawButton.tsx +1 -1
  243. package/src/components/react-native-gesture-handler/native/RectButton.tsx +1 -1
  244. package/src/components/react-native-gesture-handler/native/RefreshControl.tsx +1 -1
  245. package/src/components/react-native-gesture-handler/native/ScrollView.tsx +1 -1
  246. package/src/components/react-native-gesture-handler/native/Switch.tsx +2 -2
  247. package/src/components/react-native-gesture-handler/native/Text.tsx +2 -2
  248. package/src/components/react-native-gesture-handler/native/TextInput.tsx +2 -2
  249. package/src/components/react-native-gesture-handler/native/TouchableNativeFeedback.tsx +2 -2
  250. package/src/components/react-native-gesture-handler/native/TouchableOpacity.tsx +2 -2
  251. package/src/components/react-native-gesture-handler/native/TouchableWithoutFeedback.tsx +2 -2
  252. package/src/components/web/ActivityIndicator.tsx +2 -1
  253. package/src/components/web/Button.tsx +2 -1
  254. package/src/components/web/FlatList.tsx +2 -1
  255. package/src/components/web/Image.tsx +2 -1
  256. package/src/components/web/ImageBackground.tsx +2 -1
  257. package/src/components/web/KeyboardAvoidingView.tsx +2 -1
  258. package/src/components/web/Modal.tsx +2 -1
  259. package/src/components/web/Pressable.tsx +2 -1
  260. package/src/components/web/RefreshControl.tsx +2 -1
  261. package/src/components/web/SafeAreaView.tsx +2 -1
  262. package/src/components/web/ScrollView.tsx +2 -1
  263. package/src/components/web/SectionList.tsx +2 -1
  264. package/src/components/web/Switch.tsx +2 -1
  265. package/src/components/web/Text.tsx +2 -1
  266. package/src/components/web/TextInput.tsx +2 -1
  267. package/src/components/web/TouchableHighlight.tsx +2 -1
  268. package/src/components/web/TouchableOpacity.tsx +2 -1
  269. package/src/components/web/TouchableWithoutFeedback.tsx +2 -1
  270. package/src/components/web/View.tsx +2 -1
  271. package/src/components/web/VirtualizedList.tsx +2 -1
  272. package/src/components/web/rnw.ts +1 -1
  273. package/src/core/config/config.common.ts +11 -9
  274. package/src/core/config/config.native.ts +4 -8
  275. package/src/core/config/config.ts +2 -2
  276. package/src/core/listener.ts +1 -1
  277. package/src/core/native/native-utils.ts +0 -9
  278. package/src/core/native/parsers/textShadow.ts +6 -18
  279. package/src/core/native/parsers/transforms.ts +1 -5
  280. package/src/core/native/runtime.ts +6 -1
  281. package/src/core/native/store.ts +26 -69
  282. package/src/core/types.ts +13 -7
  283. package/src/core/web/cssListener.ts +1 -1
  284. package/src/core/web/getWebStyles.ts +1 -1
  285. package/src/hoc/types.ts +2 -2
  286. package/src/hoc/withUniwind.native.tsx +4 -3
  287. package/src/hoc/withUniwind.tsx +3 -2
  288. package/src/hooks/useCSSVariable/getVariableValue.native.ts +6 -3
  289. package/src/hooks/useCSSVariable/useCSSVariable.ts +8 -2
  290. package/src/hooks/useResolveClassNames.ts +1 -1
  291. package/src/hooks/useUniwind.ts +2 -2
  292. package/src/index.ts +1 -2
  293. package/dist/common/types.js +0 -28
  294. package/dist/common/utils/stringifyThemes.js +0 -8
  295. package/dist/common/vite/vite.js +0 -95
  296. package/dist/module/types.d.ts +0 -21
  297. package/dist/module/types.js +0 -22
  298. package/dist/module/utils/stringifyThemes.d.ts +0 -1
  299. package/dist/module/utils/stringifyThemes.js +0 -1
  300. package/dist/module/vite/index.d.ts +0 -9
  301. package/dist/module/vite/index.js +0 -1
  302. package/dist/module/vite/vite.d.ts +0 -8
  303. package/dist/module/vite/vite.js +0 -98
  304. package/dist/shared/uniwind.B5q8hBGv.cjs +0 -18
  305. package/dist/shared/uniwind.Cv73KtI-.cjs +0 -86
  306. package/dist/shared/uniwind.JSWK3vHl.mjs +0 -14
  307. package/src/metro/compileVirtual.ts +0 -85
  308. package/src/metro/index.ts +0 -1
  309. package/src/metro/injectThemes.ts +0 -23
  310. package/src/metro/metro-transformer.ts +0 -116
  311. package/src/metro/processor/index.ts +0 -1
  312. package/src/metro/utils/index.ts +0 -2
  313. package/src/metro/withUniwindConfig.ts +0 -61
  314. package/src/types.ts +0 -23
  315. package/src/utils/stringifyThemes.ts +0 -1
  316. package/src/vite/index.d.ts +0 -9
  317. package/src/vite/vite.ts +0 -113
  318. /package/dist/common/{css → bundler/artifacts/css}/extraUtilities.js +0 -0
  319. /package/dist/common/{css → bundler/artifacts/css}/insets.js +0 -0
  320. /package/dist/common/{css → bundler/artifacts/css}/overwrite.js +0 -0
  321. /package/dist/common/{css → bundler/artifacts/css}/variants.js +0 -0
  322. /package/dist/common/{css-visitor → bundler/css-visitor}/function-visitor.js +0 -0
  323. /package/dist/common/{css-visitor → bundler/css-visitor}/index.js +0 -0
  324. /package/dist/module/{css → bundler/artifacts/css}/extraUtilities.d.ts +0 -0
  325. /package/dist/module/{css → bundler/artifacts/css}/extraUtilities.js +0 -0
  326. /package/dist/module/{css → bundler/artifacts/css}/insets.d.ts +0 -0
  327. /package/dist/module/{css → bundler/artifacts/css}/insets.js +0 -0
  328. /package/dist/module/{css → bundler/artifacts/css}/overwrite.d.ts +0 -0
  329. /package/dist/module/{css → bundler/artifacts/css}/overwrite.js +0 -0
  330. /package/dist/module/{css → bundler/artifacts/css}/themes.d.ts +0 -0
  331. /package/dist/module/{css → bundler/artifacts/css}/variants.d.ts +0 -0
  332. /package/dist/module/{css → bundler/artifacts/css}/variants.js +0 -0
  333. /package/dist/module/{utils/buildDtsFile.d.ts → bundler/artifacts/dts.d.ts} +0 -0
  334. /package/dist/module/{css-visitor → bundler/css-visitor}/function-visitor.js +0 -0
  335. /package/dist/module/{css-visitor → bundler/css-visitor}/index.d.ts +0 -0
  336. /package/dist/module/{css-visitor → bundler/css-visitor}/index.js +0 -0
  337. /package/{dist/common → src/bundler/adapters}/vite/index.d.ts +0 -0
  338. /package/src/{vite → bundler/adapters/vite}/index.ts +0 -0
  339. /package/src/{css → bundler/artifacts/css}/insets.ts +0 -0
  340. /package/src/{css → bundler/artifacts/css}/overwrite.ts +0 -0
  341. /package/src/{css → bundler/artifacts/css}/variants.ts +0 -0
  342. /package/src/{css-visitor → bundler/css-visitor}/index.ts +0 -0
@@ -1,220 +1,15 @@
1
1
  'use strict';
2
2
 
3
3
  const fs = require('fs');
4
- const path = require('path');
5
4
  const node = require('@tailwindcss/node');
6
5
  const lightningcss = require('lightningcss');
7
- const common = require('./uniwind.Cv73KtI-.cjs');
6
+ const path = require('path');
8
7
 
9
8
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
10
9
 
11
10
  const fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
12
11
  const path__default = /*#__PURE__*/_interopDefaultCompat(path);
13
12
 
14
- const red = "\x1B[91m";
15
- const yellow = "\x1B[33m";
16
- const blue = "\x1B[36m";
17
- const reset = "\x1B[0m";
18
- class Logger {
19
- constructor(name) {
20
- this.name = name;
21
- }
22
- static debug = false;
23
- static log(message, meta = "") {
24
- if (!Logger.debug) {
25
- return;
26
- }
27
- console.log(`${blue}Uniwind ${meta}- ${message}${reset}`);
28
- }
29
- static error(message, meta = "") {
30
- console.log(`${red}Uniwind Error ${meta}- ${message}${reset}`);
31
- }
32
- static warn(message, meta = "") {
33
- if (!Logger.debug) {
34
- return;
35
- }
36
- console.log(`${yellow}Uniwind Warning ${meta}- ${message}${reset}`);
37
- }
38
- log(message) {
39
- Logger.log(message, `[${this.name} Processor] `);
40
- }
41
- error(message) {
42
- Logger.error(message, `[${this.name} Processor] `);
43
- }
44
- warn(message) {
45
- Logger.warn(message, `[${this.name} Processor] `);
46
- }
47
- }
48
-
49
- const ONE_PX = {
50
- type: "token",
51
- value: { type: "dimension", unit: "px", value: 1 }
52
- };
53
- class FunctionVisitor {
54
- platformSelect(fn) {
55
- return fn.arguments.at(0) ?? { type: "token", value: { type: "ident", value: "initial" } };
56
- }
57
- pixelRatio(fn) {
58
- return {
59
- type: "function",
60
- value: {
61
- name: "calc",
62
- arguments: [
63
- fn.arguments.at(0) ?? ONE_PX,
64
- { type: "token", value: { type: "delim", value: "*" } },
65
- ONE_PX
66
- ]
67
- }
68
- };
69
- }
70
- fontScale(fn) {
71
- return {
72
- type: "function",
73
- value: {
74
- name: "calc",
75
- arguments: [
76
- fn.arguments.at(0) ?? ONE_PX,
77
- { type: "token", value: { type: "delim", value: "*" } },
78
- {
79
- type: "token",
80
- value: { type: "dimension", value: 1, unit: "rem" }
81
- }
82
- ]
83
- }
84
- };
85
- }
86
- hairlineWidth() {
87
- return ONE_PX;
88
- }
89
- }
90
-
91
- class RuleVisitor {
92
- constructor(themes) {
93
- this.themes = themes;
94
- }
95
- processedClassNames = /* @__PURE__ */ new Set();
96
- processedVariables = /* @__PURE__ */ new Set();
97
- currentLayerName = "";
98
- "layer-block" = (layer) => {
99
- this.currentLayerName = layer.value.name?.join("") ?? "";
100
- };
101
- style = (styleRule) => {
102
- const firstSelector = styleRule.value.selectors.at(0)?.at(0);
103
- if (this.currentLayerName === "theme" && firstSelector?.type === "pseudo-class" && firstSelector.kind === "root") {
104
- return this.removeNulls(this.processThemeRoot(styleRule));
105
- }
106
- if (firstSelector?.type === "class") {
107
- return this.processClassStyle(styleRule, firstSelector);
108
- }
109
- };
110
- cleanup() {
111
- this.currentLayerName = "";
112
- this.processedClassNames.clear();
113
- this.processedVariables.clear();
114
- }
115
- processThemeRoot(styleRule) {
116
- const themeScopedRules = styleRule.value.rules?.filter((rule) => {
117
- if (rule.type !== "style") {
118
- return false;
119
- }
120
- const firstSelector = rule.value.selectors.at(0)?.at(0);
121
- const secondSelector = rule.value.selectors.at(0)?.at(1);
122
- return firstSelector?.type === "nesting" && secondSelector?.type === "pseudo-class" && secondSelector.kind === "where";
123
- }) ?? [];
124
- const nonThemeRules = styleRule.value.rules?.filter((rule) => !themeScopedRules.includes(rule));
125
- const processedThemeScopedRules = themeScopedRules.map((rule) => {
126
- if (rule.type !== "style") {
127
- return rule;
128
- }
129
- const secondSelector = rule.value.selectors.at(0)?.at(1);
130
- if (secondSelector?.type === "pseudo-class" && secondSelector.kind === "where") {
131
- return this.processThemeStyle(rule, secondSelector);
132
- }
133
- return rule;
134
- });
135
- return [
136
- {
137
- type: "style",
138
- value: {
139
- loc: styleRule.value.loc,
140
- selectors: styleRule.value.selectors,
141
- rules: nonThemeRules,
142
- declarations: styleRule.value.declarations
143
- }
144
- },
145
- ...processedThemeScopedRules
146
- ];
147
- }
148
- processThemeStyle(styleRule, secondSelector) {
149
- const whereSelector = secondSelector.selectors.at(0)?.at(0);
150
- if (whereSelector?.type !== "class") {
151
- return styleRule;
152
- }
153
- const selectedVariant = this.themes.find((theme) => whereSelector.name === theme);
154
- if (selectedVariant === void 0 || this.processedVariables.has(selectedVariant)) {
155
- return styleRule;
156
- }
157
- this.processedVariables.add(selectedVariant);
158
- return {
159
- type: "style",
160
- value: {
161
- loc: styleRule.value.loc,
162
- selectors: [[{ type: "class", name: selectedVariant }]],
163
- declarations: styleRule.value.declarations,
164
- rules: styleRule.value.rules
165
- }
166
- };
167
- }
168
- processClassStyle(styleRule, firstSelector) {
169
- const selectedVariant = this.themes.find((theme) => firstSelector.name.includes(`${theme}:`));
170
- if (selectedVariant === void 0 || this.processedClassNames.has(firstSelector.name)) {
171
- return;
172
- }
173
- this.processedClassNames.add(firstSelector.name);
174
- return {
175
- type: "scope",
176
- value: {
177
- loc: styleRule.value.loc,
178
- rules: [styleRule],
179
- scopeStart: [[{ type: "class", name: selectedVariant }]],
180
- scopeEnd: this.themes.filter((theme) => theme !== selectedVariant).map((theme) => [{ type: "class", name: theme }])
181
- }
182
- };
183
- }
184
- // Fixes lightningcss serialization bug
185
- removeNulls(value) {
186
- if (Array.isArray(value)) {
187
- return value.map((v) => this.removeNulls(v));
188
- }
189
- if (typeof value === "object" && value !== null) {
190
- return Object.fromEntries(
191
- Object.entries(value).filter(([_, value2]) => {
192
- if (value2 === null) {
193
- return false;
194
- }
195
- return true;
196
- }).map(([key, value2]) => [key, this.removeNulls(value2)])
197
- );
198
- }
199
- return value;
200
- }
201
- }
202
-
203
- class UniwindCSSVisitor {
204
- constructor(themes) {
205
- this.themes = themes;
206
- const ruleVisitor = new RuleVisitor(this.themes);
207
- this.Function = new FunctionVisitor();
208
- this.Rule = ruleVisitor;
209
- this.StyleSheet = () => {
210
- ruleVisitor.cleanup();
211
- };
212
- }
213
- Function;
214
- Rule;
215
- StyleSheet;
216
- }
217
-
218
13
  const toKebabCase = (str) => str.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
219
14
  const generateExtraUtilities = (map) => {
220
15
  return Object.entries(map).map(
@@ -340,6 +135,41 @@ const overwriteDisabled = `@custom-variant disabled {
340
135
  `;
341
136
  const OVERWRITE_CSS = overwriteDisabled;
342
137
 
138
+ const red = "\x1B[91m";
139
+ const blue = "\x1B[36m";
140
+ const reset = "\x1B[0m";
141
+ class Logger {
142
+ constructor(name) {
143
+ this.name = name;
144
+ }
145
+ static debug = false;
146
+ static log(message, meta = "") {
147
+ {
148
+ return;
149
+ }
150
+ }
151
+ static info(message) {
152
+ console.log(`${blue}[Uniwind] ${message}${reset}`);
153
+ }
154
+ static error(message, meta = "") {
155
+ console.log(`${red}Uniwind Error ${meta}- ${message}${reset}`);
156
+ }
157
+ static warn(message, meta = "") {
158
+ {
159
+ return;
160
+ }
161
+ }
162
+ log(message) {
163
+ Logger.log(message, `[${this.name} Processor] `);
164
+ }
165
+ error(message) {
166
+ Logger.error(message, `[${this.name} Processor] `);
167
+ }
168
+ warn(message) {
169
+ Logger.warn(message, `[${this.name} Processor] `);
170
+ }
171
+ }
172
+
343
173
  const readFileSafe = (filePath) => {
344
174
  try {
345
175
  return fs__default.readFileSync(filePath, "utf-8");
@@ -386,6 +216,9 @@ const generateCSSForThemes = async (themes, input) => {
386
216
  }
387
217
  const importUrls = /* @__PURE__ */ new Set();
388
218
  const importsCSS = dependencies.filter((dependency) => {
219
+ if (dependency.type !== "import") {
220
+ return false;
221
+ }
389
222
  if (dependency.url.startsWith(".")) {
390
223
  importUrls.add(path__default.resolve(path__default.dirname(cssPath), dependency.url));
391
224
  return false;
@@ -464,10 +297,8 @@ const generateCSSForVariants = () => {
464
297
  };
465
298
  const VARIANTS_CSS = generateCSSForVariants();
466
299
 
467
- const dirname = typeof __dirname !== "undefined" ? __dirname : undefined;
468
- const buildCSS = async (themes, input) => {
300
+ const buildCSS = async (themes, input, cssFilePath) => {
469
301
  const themesCSS = await generateCSSForThemes(themes, input);
470
- const cssFilePath = path__default.join(dirname, "../../uniwind.css");
471
302
  const oldCSSFile = fs__default.existsSync(cssFilePath) ? fs__default.readFileSync(cssFilePath, "utf-8") : "";
472
303
  const newCssFile = [
473
304
  VARIANTS_CSS,
@@ -488,10 +319,10 @@ const buildCSS = async (themes, input) => {
488
319
  const buildDtsFile = (dtsPath, stringifiedThemes) => {
489
320
  const oldDtsContent = fs__default.existsSync(dtsPath) ? fs__default.readFileSync(dtsPath, "utf-8") : "";
490
321
  const dtsContent = [
491
- `// NOTE: This file is generated by ${common.name} and it should not be edited manually.`,
492
- `/// <reference types="${common.name}/types" />`,
322
+ `// NOTE: This file is generated by uniwind and it should not be edited manually.`,
323
+ `/// <reference types="uniwind/types" />`,
493
324
  "",
494
- `declare module '${common.name}' {`,
325
+ `declare module 'uniwind' {`,
495
326
  ` export interface UniwindConfig {`,
496
327
  ` themes: readonly ${stringifiedThemes}`,
497
328
  ` }`,
@@ -506,10 +337,281 @@ const buildDtsFile = (dtsPath, stringifiedThemes) => {
506
337
  fs__default.writeFileSync(dtsPath, dtsContent);
507
338
  };
508
339
 
509
- const stringifyThemes = (themes = []) => `[${themes.map((theme) => `'${theme}'`).join(", ")}]`;
340
+ const ONE_PX = {
341
+ type: "token",
342
+ value: { type: "dimension", unit: "px", value: 1 }
343
+ };
344
+ class FunctionVisitor {
345
+ platformSelect(fn) {
346
+ return fn.arguments.at(0) ?? { type: "token", value: { type: "ident", value: "initial" } };
347
+ }
348
+ pixelRatio(fn) {
349
+ return {
350
+ type: "function",
351
+ value: {
352
+ name: "calc",
353
+ arguments: [
354
+ fn.arguments.at(0) ?? ONE_PX,
355
+ { type: "token", value: { type: "delim", value: "*" } },
356
+ ONE_PX
357
+ ]
358
+ }
359
+ };
360
+ }
361
+ fontScale(fn) {
362
+ return {
363
+ type: "function",
364
+ value: {
365
+ name: "calc",
366
+ arguments: [
367
+ fn.arguments.at(0) ?? ONE_PX,
368
+ { type: "token", value: { type: "delim", value: "*" } },
369
+ {
370
+ type: "token",
371
+ value: { type: "dimension", value: 1, unit: "rem" }
372
+ }
373
+ ]
374
+ }
375
+ };
376
+ }
377
+ hairlineWidth() {
378
+ return ONE_PX;
379
+ }
380
+ }
381
+
382
+ class RuleVisitor {
383
+ constructor(bundlerConfig) {
384
+ this.bundlerConfig = bundlerConfig;
385
+ }
386
+ processedClassNames = /* @__PURE__ */ new Set();
387
+ processedVariables = /* @__PURE__ */ new Set();
388
+ currentLayerName = "";
389
+ "layer-block" = (layer) => {
390
+ this.currentLayerName = layer.value.name?.join("") ?? "";
391
+ };
392
+ style = (styleRule) => {
393
+ const firstSelector = styleRule.value.selectors.at(0)?.at(0);
394
+ if (this.currentLayerName === "theme" && firstSelector?.type === "pseudo-class" && firstSelector.kind === "root") {
395
+ return this.removeNulls(this.processThemeRoot(styleRule));
396
+ }
397
+ if (firstSelector?.type === "class") {
398
+ return this.processClassStyle(styleRule, firstSelector);
399
+ }
400
+ };
401
+ cleanup() {
402
+ this.currentLayerName = "";
403
+ this.processedClassNames.clear();
404
+ this.processedVariables.clear();
405
+ }
406
+ processThemeRoot(styleRule) {
407
+ const themeScopedRules = styleRule.value.rules?.filter((rule) => {
408
+ if (rule.type !== "style") {
409
+ return false;
410
+ }
411
+ const firstSelector = rule.value.selectors.at(0)?.at(0);
412
+ const secondSelector = rule.value.selectors.at(0)?.at(1);
413
+ return firstSelector?.type === "nesting" && secondSelector?.type === "pseudo-class" && secondSelector.kind === "where";
414
+ }) ?? [];
415
+ const nonThemeRules = styleRule.value.rules?.filter((rule) => !themeScopedRules.includes(rule));
416
+ const processedThemeScopedRules = themeScopedRules.map((rule) => {
417
+ if (rule.type !== "style") {
418
+ return rule;
419
+ }
420
+ const secondSelector = rule.value.selectors.at(0)?.at(1);
421
+ if (secondSelector?.type === "pseudo-class" && secondSelector.kind === "where") {
422
+ return this.processThemeStyle(rule, secondSelector);
423
+ }
424
+ return rule;
425
+ });
426
+ return [
427
+ {
428
+ type: "style",
429
+ value: {
430
+ loc: styleRule.value.loc,
431
+ selectors: styleRule.value.selectors,
432
+ rules: nonThemeRules,
433
+ declarations: styleRule.value.declarations
434
+ }
435
+ },
436
+ ...processedThemeScopedRules
437
+ ];
438
+ }
439
+ processThemeStyle(styleRule, secondSelector) {
440
+ const whereSelector = secondSelector.selectors.at(0)?.at(0);
441
+ if (whereSelector?.type !== "class") {
442
+ return styleRule;
443
+ }
444
+ const selectedVariant = this.bundlerConfig.themes.find((theme) => whereSelector.name === theme);
445
+ if (selectedVariant === void 0 || this.processedVariables.has(selectedVariant)) {
446
+ return styleRule;
447
+ }
448
+ this.processedVariables.add(selectedVariant);
449
+ return {
450
+ type: "style",
451
+ value: {
452
+ loc: styleRule.value.loc,
453
+ selectors: [[{ type: "class", name: selectedVariant }]],
454
+ declarations: styleRule.value.declarations,
455
+ rules: styleRule.value.rules
456
+ }
457
+ };
458
+ }
459
+ processClassStyle(styleRule, firstSelector) {
460
+ const selectedVariant = this.bundlerConfig.themes.find((theme) => firstSelector.name.includes(`${theme}:`));
461
+ if (selectedVariant === void 0 || this.processedClassNames.has(firstSelector.name)) {
462
+ return;
463
+ }
464
+ this.processedClassNames.add(firstSelector.name);
465
+ return this.removeNulls({
466
+ type: "scope",
467
+ value: {
468
+ loc: styleRule.value.loc,
469
+ rules: [styleRule],
470
+ scopeStart: [[{ type: "class", name: selectedVariant }]],
471
+ scopeEnd: this.bundlerConfig.themes.filter((theme) => theme !== selectedVariant).map((theme) => [{ type: "class", name: theme }])
472
+ }
473
+ });
474
+ }
475
+ // Fixes lightningcss serialization bug
476
+ removeNulls(value) {
477
+ if (Array.isArray(value)) {
478
+ return value.map((v) => this.removeNulls(v));
479
+ }
480
+ if (typeof value === "object" && value !== null) {
481
+ return Object.fromEntries(
482
+ Object.entries(value).filter(([_, value2]) => {
483
+ if (value2 === null) {
484
+ return false;
485
+ }
486
+ return true;
487
+ }).map(([key, value2]) => [key, this.removeNulls(value2)])
488
+ );
489
+ }
490
+ return value;
491
+ }
492
+ }
493
+
494
+ class UniwindCSSVisitor {
495
+ Function;
496
+ Rule;
497
+ StyleSheet;
498
+ constructor(bundlerConfig) {
499
+ const ruleVisitor = new RuleVisitor(bundlerConfig);
500
+ this.Function = new FunctionVisitor();
501
+ this.Rule = ruleVisitor;
502
+ this.StyleSheet = () => {
503
+ ruleVisitor.cleanup();
504
+ };
505
+ }
506
+ }
507
+
508
+ var Platform = /* @__PURE__ */ ((Platform2) => {
509
+ Platform2["Android"] = "android";
510
+ Platform2["iOS"] = "ios";
511
+ Platform2["Web"] = "web";
512
+ Platform2["Native"] = "native";
513
+ Platform2["TV"] = "tv";
514
+ Platform2["AndroidTV"] = "android-tv";
515
+ Platform2["AppleTV"] = "apple-tv";
516
+ return Platform2;
517
+ })(Platform || {});
518
+ const UNIWIND_PLATFORM_VARIABLES = "__uniwind-platform-";
519
+ const UNIWIND_THEME_VARIABLES = "__uniwind-theme-";
520
+ var StyleDependency = /* @__PURE__ */ ((StyleDependency2) => {
521
+ StyleDependency2[StyleDependency2["ColorScheme"] = 1] = "ColorScheme";
522
+ StyleDependency2[StyleDependency2["Theme"] = 2] = "Theme";
523
+ StyleDependency2[StyleDependency2["Dimensions"] = 3] = "Dimensions";
524
+ StyleDependency2[StyleDependency2["Orientation"] = 4] = "Orientation";
525
+ StyleDependency2[StyleDependency2["Insets"] = 5] = "Insets";
526
+ StyleDependency2[StyleDependency2["FontScale"] = 6] = "FontScale";
527
+ StyleDependency2[StyleDependency2["Rtl"] = 7] = "Rtl";
528
+ StyleDependency2[StyleDependency2["AdaptiveThemes"] = 8] = "AdaptiveThemes";
529
+ StyleDependency2[StyleDependency2["Variables"] = 9] = "Variables";
530
+ return StyleDependency2;
531
+ })(StyleDependency || {});
532
+ const DEFAULT_SCREEN_WIDTH = 375;
533
+ const DEFAULT_SCREEN_HEIGHT = 680;
534
+
535
+ const isDefined = (value) => value !== void 0 && value !== null;
536
+
537
+ class UniwindBundlerConfig {
538
+ constructor(config, platform) {
539
+ this.config = config;
540
+ this.platform = platform;
541
+ }
542
+ static fromMetroConfig(config, platform) {
543
+ const getPlatform = () => {
544
+ if (!isDefined(platform)) {
545
+ return Platform.Native;
546
+ }
547
+ if (!config.isTV) {
548
+ return platform;
549
+ }
550
+ if (platform === Platform.Android) {
551
+ return Platform.AndroidTV;
552
+ }
553
+ if (platform === Platform.iOS) {
554
+ return Platform.AppleTV;
555
+ }
556
+ throw new Error(`Platform ${platform} not supported`);
557
+ };
558
+ if (typeof config === "undefined") {
559
+ throw new Error("Uniwind: You need to pass second parameter to withUniwindConfig");
560
+ }
561
+ if (typeof config.cssEntryFile === "undefined") {
562
+ throw new Error(
563
+ 'Uniwind: You need to pass css css entry file to withUniwindConfig, e.g. withUniwindConfig(config, { cssEntryFile: "./global.css" })'
564
+ );
565
+ }
566
+ return new UniwindBundlerConfig(config, getPlatform());
567
+ }
568
+ static fromViteConfig(config) {
569
+ return new UniwindBundlerConfig(config, Platform.Web);
570
+ }
571
+ static fromCliConfig(config) {
572
+ if (typeof config.cssEntryFile === "undefined") {
573
+ throw new Error(
574
+ "Uniwind: You need to pass css entry file, e.g. uniwind generate-artifacts --css ./global.css. Run uniwind generate-artifacts --help for usage."
575
+ );
576
+ }
577
+ return new UniwindBundlerConfig(config, Platform.Web);
578
+ }
579
+ get cssPath() {
580
+ return path__default.join(process.cwd(), this.config.cssEntryFile);
581
+ }
582
+ get themes() {
583
+ return Array.from(
584
+ /* @__PURE__ */ new Set([
585
+ "light",
586
+ "dark",
587
+ ...this.config.extraThemes ?? []
588
+ ])
589
+ );
590
+ }
591
+ get cssVisitor() {
592
+ return new UniwindCSSVisitor(this);
593
+ }
594
+ get polyfills() {
595
+ return this.config.polyfills;
596
+ }
597
+ get stringifiedThemes() {
598
+ return `[${this.themes.map((theme) => `'${theme}'`).join(", ")}]`;
599
+ }
600
+ toMetroConfig() {
601
+ return this.config;
602
+ }
603
+ async generateArtifacts(cssArtifactPath) {
604
+ await buildCSS(this.themes, this.config.cssEntryFile, cssArtifactPath);
605
+ buildDtsFile(this.config.dtsFile ?? "uniwind-types.d.ts", this.stringifiedThemes);
606
+ }
607
+ }
510
608
 
609
+ exports.DEFAULT_SCREEN_HEIGHT = DEFAULT_SCREEN_HEIGHT;
610
+ exports.DEFAULT_SCREEN_WIDTH = DEFAULT_SCREEN_WIDTH;
511
611
  exports.Logger = Logger;
512
- exports.UniwindCSSVisitor = UniwindCSSVisitor;
513
- exports.buildCSS = buildCSS;
514
- exports.buildDtsFile = buildDtsFile;
515
- exports.stringifyThemes = stringifyThemes;
612
+ exports.Platform = Platform;
613
+ exports.StyleDependency = StyleDependency;
614
+ exports.UNIWIND_PLATFORM_VARIABLES = UNIWIND_PLATFORM_VARIABLES;
615
+ exports.UNIWIND_THEME_VARIABLES = UNIWIND_THEME_VARIABLES;
616
+ exports.UniwindBundlerConfig = UniwindBundlerConfig;
617
+ exports.isDefined = isDefined;
@@ -0,0 +1,3 @@
1
+ const name = "@niibase/uniwind";
2
+
3
+ export { name as n };
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ const name = "@niibase/uniwind";
4
+
5
+ exports.name = name;