isomorfeus-preact 10.5.1 → 10.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1080) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +29 -0
  3. data/lib/isomorfeus/preact/config.rb +19 -33
  4. data/lib/isomorfeus/preact/imports.rb +30 -0
  5. data/lib/isomorfeus/preact_view_helper.rb +26 -34
  6. data/lib/isomorfeus-preact.rb +6 -4
  7. data/lib/lucid_app/context.rb +9 -9
  8. data/lib/preact/version.rb +1 -1
  9. data/node_modules/.bin/loose-envify +12 -0
  10. data/node_modules/.bin/loose-envify.cmd +17 -0
  11. data/node_modules/.bin/loose-envify.ps1 +28 -0
  12. data/node_modules/.package-lock.json +278 -0
  13. data/node_modules/@babel/runtime/LICENSE +22 -0
  14. data/node_modules/@babel/runtime/README.md +19 -0
  15. data/node_modules/@babel/runtime/helpers/AsyncGenerator.js +99 -0
  16. data/node_modules/@babel/runtime/helpers/AwaitValue.js +6 -0
  17. data/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +31 -0
  18. data/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +12 -0
  19. data/node_modules/@babel/runtime/helpers/arrayWithHoles.js +6 -0
  20. data/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +8 -0
  21. data/node_modules/@babel/runtime/helpers/assertThisInitialized.js +10 -0
  22. data/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +57 -0
  23. data/node_modules/@babel/runtime/helpers/asyncIterator.js +16 -0
  24. data/node_modules/@babel/runtime/helpers/asyncToGenerator.js +38 -0
  25. data/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +8 -0
  26. data/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +8 -0
  27. data/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +23 -0
  28. data/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +10 -0
  29. data/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +14 -0
  30. data/node_modules/@babel/runtime/helpers/classCallCheck.js +8 -0
  31. data/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +8 -0
  32. data/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +8 -0
  33. data/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +10 -0
  34. data/node_modules/@babel/runtime/helpers/classNameTDZError.js +6 -0
  35. data/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +11 -0
  36. data/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +11 -0
  37. data/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +9 -0
  38. data/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +10 -0
  39. data/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +8 -0
  40. data/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +12 -0
  41. data/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +10 -0
  42. data/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +9 -0
  43. data/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +6 -0
  44. data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +14 -0
  45. data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +14 -0
  46. data/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +15 -0
  47. data/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +9 -0
  48. data/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +6 -0
  49. data/node_modules/@babel/runtime/helpers/construct.js +26 -0
  50. data/node_modules/@babel/runtime/helpers/createClass.js +18 -0
  51. data/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +61 -0
  52. data/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +25 -0
  53. data/node_modules/@babel/runtime/helpers/createSuper.js +25 -0
  54. data/node_modules/@babel/runtime/helpers/decorate.js +401 -0
  55. data/node_modules/@babel/runtime/helpers/defaults.js +17 -0
  56. data/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +25 -0
  57. data/node_modules/@babel/runtime/helpers/defineProperty.js +17 -0
  58. data/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js +95 -0
  59. data/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +3 -0
  60. data/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +28 -0
  61. data/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +9 -0
  62. data/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +3 -0
  63. data/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +4 -0
  64. data/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
  65. data/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +54 -0
  66. data/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +13 -0
  67. data/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +35 -0
  68. data/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +4 -0
  69. data/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +5 -0
  70. data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +20 -0
  71. data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +7 -0
  72. data/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +11 -0
  73. data/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +5 -0
  74. data/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
  75. data/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +5 -0
  76. data/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +7 -0
  77. data/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +3 -0
  78. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +6 -0
  79. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +6 -0
  80. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +5 -0
  81. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +7 -0
  82. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +4 -0
  83. data/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +7 -0
  84. data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +7 -0
  85. data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +5 -0
  86. data/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +3 -0
  87. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +8 -0
  88. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +8 -0
  89. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +9 -0
  90. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +5 -0
  91. data/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +3 -0
  92. data/node_modules/@babel/runtime/helpers/esm/construct.js +18 -0
  93. data/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
  94. data/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +57 -0
  95. data/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +21 -0
  96. data/node_modules/@babel/runtime/helpers/esm/createSuper.js +19 -0
  97. data/node_modules/@babel/runtime/helpers/esm/decorate.js +396 -0
  98. data/node_modules/@babel/runtime/helpers/esm/defaults.js +14 -0
  99. data/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +22 -0
  100. data/node_modules/@babel/runtime/helpers/esm/defineProperty.js +14 -0
  101. data/node_modules/@babel/runtime/helpers/esm/extends.js +17 -0
  102. data/node_modules/@babel/runtime/helpers/esm/get.js +20 -0
  103. data/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +6 -0
  104. data/node_modules/@babel/runtime/helpers/esm/inherits.js +15 -0
  105. data/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +6 -0
  106. data/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +9 -0
  107. data/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +3 -0
  108. data/node_modules/@babel/runtime/helpers/esm/instanceof.js +7 -0
  109. data/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +5 -0
  110. data/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +51 -0
  111. data/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +3 -0
  112. data/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +12 -0
  113. data/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +3 -0
  114. data/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +29 -0
  115. data/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +14 -0
  116. data/node_modules/@babel/runtime/helpers/esm/jsx.js +46 -0
  117. data/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +9 -0
  118. data/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +5 -0
  119. data/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +3 -0
  120. data/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +3 -0
  121. data/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +3 -0
  122. data/node_modules/@babel/runtime/helpers/esm/objectSpread.js +19 -0
  123. data/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +39 -0
  124. data/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +19 -0
  125. data/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +14 -0
  126. data/node_modules/@babel/runtime/helpers/esm/package.json +3 -0
  127. data/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +11 -0
  128. data/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +3 -0
  129. data/node_modules/@babel/runtime/helpers/esm/set.js +51 -0
  130. data/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
  131. data/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +7 -0
  132. data/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +7 -0
  133. data/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js +7 -0
  134. data/node_modules/@babel/runtime/helpers/esm/superPropBase.js +9 -0
  135. data/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +11 -0
  136. data/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +8 -0
  137. data/node_modules/@babel/runtime/helpers/esm/tdz.js +3 -0
  138. data/node_modules/@babel/runtime/helpers/esm/temporalRef.js +5 -0
  139. data/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +1 -0
  140. data/node_modules/@babel/runtime/helpers/esm/toArray.js +7 -0
  141. data/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +7 -0
  142. data/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +13 -0
  143. data/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +6 -0
  144. data/node_modules/@babel/runtime/helpers/esm/typeof.js +15 -0
  145. data/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +9 -0
  146. data/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +6 -0
  147. data/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +37 -0
  148. data/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +65 -0
  149. data/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +3 -0
  150. data/node_modules/@babel/runtime/helpers/extends.js +21 -0
  151. data/node_modules/@babel/runtime/helpers/get.js +27 -0
  152. data/node_modules/@babel/runtime/helpers/getPrototypeOf.js +10 -0
  153. data/node_modules/@babel/runtime/helpers/inherits.js +19 -0
  154. data/node_modules/@babel/runtime/helpers/inheritsLoose.js +10 -0
  155. data/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +12 -0
  156. data/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +6 -0
  157. data/node_modules/@babel/runtime/helpers/instanceof.js +10 -0
  158. data/node_modules/@babel/runtime/helpers/interopRequireDefault.js +8 -0
  159. data/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +54 -0
  160. data/node_modules/@babel/runtime/helpers/isNativeFunction.js +6 -0
  161. data/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +15 -0
  162. data/node_modules/@babel/runtime/helpers/iterableToArray.js +6 -0
  163. data/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +32 -0
  164. data/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js +17 -0
  165. data/node_modules/@babel/runtime/helpers/jsx.js +50 -0
  166. data/node_modules/@babel/runtime/helpers/maybeArrayLike.js +13 -0
  167. data/node_modules/@babel/runtime/helpers/newArrowCheck.js +8 -0
  168. data/node_modules/@babel/runtime/helpers/nonIterableRest.js +6 -0
  169. data/node_modules/@babel/runtime/helpers/nonIterableSpread.js +6 -0
  170. data/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +6 -0
  171. data/node_modules/@babel/runtime/helpers/objectSpread.js +23 -0
  172. data/node_modules/@babel/runtime/helpers/objectSpread2.js +42 -0
  173. data/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +23 -0
  174. data/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +17 -0
  175. data/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +16 -0
  176. data/node_modules/@babel/runtime/helpers/readOnlyError.js +6 -0
  177. data/node_modules/@babel/runtime/helpers/set.js +55 -0
  178. data/node_modules/@babel/runtime/helpers/setPrototypeOf.js +12 -0
  179. data/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +10 -0
  180. data/node_modules/@babel/runtime/helpers/slicedToArray.js +14 -0
  181. data/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js +14 -0
  182. data/node_modules/@babel/runtime/helpers/superPropBase.js +13 -0
  183. data/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +14 -0
  184. data/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +11 -0
  185. data/node_modules/@babel/runtime/helpers/tdz.js +6 -0
  186. data/node_modules/@babel/runtime/helpers/temporalRef.js +10 -0
  187. data/node_modules/@babel/runtime/helpers/temporalUndefined.js +4 -0
  188. data/node_modules/@babel/runtime/helpers/toArray.js +14 -0
  189. data/node_modules/@babel/runtime/helpers/toConsumableArray.js +14 -0
  190. data/node_modules/@babel/runtime/helpers/toPrimitive.js +17 -0
  191. data/node_modules/@babel/runtime/helpers/toPropertyKey.js +11 -0
  192. data/node_modules/@babel/runtime/helpers/typeof.js +22 -0
  193. data/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +13 -0
  194. data/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +10 -0
  195. data/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +45 -0
  196. data/node_modules/@babel/runtime/helpers/wrapRegExp.js +72 -0
  197. data/node_modules/@babel/runtime/helpers/writeOnlyError.js +6 -0
  198. data/node_modules/@babel/runtime/package.json +848 -0
  199. data/node_modules/@babel/runtime/regenerator/index.js +1 -0
  200. data/node_modules/css-in-js-utils/Changelog.md +16 -0
  201. data/node_modules/css-in-js-utils/LICENSE +21 -0
  202. data/node_modules/css-in-js-utils/README.md +241 -0
  203. data/node_modules/css-in-js-utils/lib/__tests__/assignStyle-test.js +117 -0
  204. data/node_modules/css-in-js-utils/lib/__tests__/camelCaseProperty-test.js +15 -0
  205. data/node_modules/css-in-js-utils/lib/__tests__/cssifyDeclaration-test.js +15 -0
  206. data/node_modules/css-in-js-utils/lib/__tests__/cssifyObject-test.js +31 -0
  207. data/node_modules/css-in-js-utils/lib/__tests__/isPrefixedProperty-test.js +19 -0
  208. data/node_modules/css-in-js-utils/lib/__tests__/isPrefixedValue-test.js +19 -0
  209. data/node_modules/css-in-js-utils/lib/__tests__/isUnitlessProperty-test.js +43 -0
  210. data/node_modules/css-in-js-utils/lib/__tests__/normalizeProperty-test.js +21 -0
  211. data/node_modules/css-in-js-utils/lib/__tests__/resolveArrayValue-test.js +17 -0
  212. data/node_modules/css-in-js-utils/lib/__tests__/unprefixProperty-test.js +19 -0
  213. data/node_modules/css-in-js-utils/lib/__tests__/unprefixValue-test.js +20 -0
  214. data/node_modules/css-in-js-utils/lib/assignStyle.js +37 -0
  215. data/node_modules/css-in-js-utils/lib/camelCaseProperty.js +15 -0
  216. data/node_modules/css-in-js-utils/lib/cssifyDeclaration.js +17 -0
  217. data/node_modules/css-in-js-utils/lib/cssifyObject.js +34 -0
  218. data/node_modules/css-in-js-utils/lib/hyphenateProperty.js +17 -0
  219. data/node_modules/css-in-js-utils/lib/index.js +71 -0
  220. data/node_modules/css-in-js-utils/lib/isPrefixedProperty.js +12 -0
  221. data/node_modules/css-in-js-utils/lib/isPrefixedValue.js +12 -0
  222. data/node_modules/css-in-js-utils/lib/isUnitlessProperty.js +64 -0
  223. data/node_modules/css-in-js-utils/lib/normalizeProperty.js +21 -0
  224. data/node_modules/css-in-js-utils/lib/resolveArrayValue.js +19 -0
  225. data/node_modules/css-in-js-utils/lib/unprefixProperty.js +13 -0
  226. data/node_modules/css-in-js-utils/lib/unprefixValue.js +16 -0
  227. data/node_modules/css-in-js-utils/package.json +56 -0
  228. data/node_modules/css-tree/CHANGELOG.md +590 -0
  229. data/node_modules/css-tree/LICENSE +19 -0
  230. data/node_modules/css-tree/README.md +130 -0
  231. data/node_modules/css-tree/data/index.js +103 -0
  232. data/node_modules/css-tree/data/patch.json +721 -0
  233. data/node_modules/css-tree/dist/csstree.js +12606 -0
  234. data/node_modules/css-tree/dist/csstree.min.js +1 -0
  235. data/node_modules/css-tree/lib/common/List.js +576 -0
  236. data/node_modules/css-tree/lib/common/OffsetToLocation.js +91 -0
  237. data/node_modules/css-tree/lib/common/SyntaxError.js +82 -0
  238. data/node_modules/css-tree/lib/common/TokenStream.js +219 -0
  239. data/node_modules/css-tree/lib/common/adopt-buffer.js +10 -0
  240. data/node_modules/css-tree/lib/convertor/create.js +28 -0
  241. data/node_modules/css-tree/lib/convertor/index.js +3 -0
  242. data/node_modules/css-tree/lib/definition-syntax/SyntaxError.js +14 -0
  243. data/node_modules/css-tree/lib/definition-syntax/generate.js +129 -0
  244. data/node_modules/css-tree/lib/definition-syntax/index.js +6 -0
  245. data/node_modules/css-tree/lib/definition-syntax/parse.js +568 -0
  246. data/node_modules/css-tree/lib/definition-syntax/tokenizer.js +55 -0
  247. data/node_modules/css-tree/lib/definition-syntax/walk.js +52 -0
  248. data/node_modules/css-tree/lib/generator/create.js +66 -0
  249. data/node_modules/css-tree/lib/generator/index.js +4 -0
  250. data/node_modules/css-tree/lib/generator/sourceMap.js +95 -0
  251. data/node_modules/css-tree/lib/index.js +1 -0
  252. data/node_modules/css-tree/lib/lexer/Lexer.js +466 -0
  253. data/node_modules/css-tree/lib/lexer/error.js +127 -0
  254. data/node_modules/css-tree/lib/lexer/generic-an-plus-b.js +236 -0
  255. data/node_modules/css-tree/lib/lexer/generic-urange.js +159 -0
  256. data/node_modules/css-tree/lib/lexer/generic.js +585 -0
  257. data/node_modules/css-tree/lib/lexer/index.js +3 -0
  258. data/node_modules/css-tree/lib/lexer/match-graph.js +455 -0
  259. data/node_modules/css-tree/lib/lexer/match.js +639 -0
  260. data/node_modules/css-tree/lib/lexer/prepare-tokens.js +73 -0
  261. data/node_modules/css-tree/lib/lexer/search.js +65 -0
  262. data/node_modules/css-tree/lib/lexer/structure.js +163 -0
  263. data/node_modules/css-tree/lib/lexer/trace.js +79 -0
  264. data/node_modules/css-tree/lib/parser/create.js +304 -0
  265. data/node_modules/css-tree/lib/parser/index.js +4 -0
  266. data/node_modules/css-tree/lib/parser/sequence.js +54 -0
  267. data/node_modules/css-tree/lib/syntax/atrule/font-face.js +8 -0
  268. data/node_modules/css-tree/lib/syntax/atrule/import.js +40 -0
  269. data/node_modules/css-tree/lib/syntax/atrule/index.js +7 -0
  270. data/node_modules/css-tree/lib/syntax/atrule/media.js +12 -0
  271. data/node_modules/css-tree/lib/syntax/atrule/page.js +12 -0
  272. data/node_modules/css-tree/lib/syntax/atrule/supports.js +89 -0
  273. data/node_modules/css-tree/lib/syntax/config/lexer.js +9 -0
  274. data/node_modules/css-tree/lib/syntax/config/mix.js +140 -0
  275. data/node_modules/css-tree/lib/syntax/config/parser.js +25 -0
  276. data/node_modules/css-tree/lib/syntax/config/walker.js +3 -0
  277. data/node_modules/css-tree/lib/syntax/create.js +77 -0
  278. data/node_modules/css-tree/lib/syntax/function/expression.js +7 -0
  279. data/node_modules/css-tree/lib/syntax/function/var.js +43 -0
  280. data/node_modules/css-tree/lib/syntax/index.js +21 -0
  281. data/node_modules/css-tree/lib/syntax/node/AnPlusB.js +297 -0
  282. data/node_modules/css-tree/lib/syntax/node/Atrule.js +107 -0
  283. data/node_modules/css-tree/lib/syntax/node/AtrulePrelude.js +51 -0
  284. data/node_modules/css-tree/lib/syntax/node/AttributeSelector.js +165 -0
  285. data/node_modules/css-tree/lib/syntax/node/Block.js +91 -0
  286. data/node_modules/css-tree/lib/syntax/node/Brackets.js +34 -0
  287. data/node_modules/css-tree/lib/syntax/node/CDC.js +19 -0
  288. data/node_modules/css-tree/lib/syntax/node/CDO.js +19 -0
  289. data/node_modules/css-tree/lib/syntax/node/ClassSelector.js +29 -0
  290. data/node_modules/css-tree/lib/syntax/node/Combinator.js +55 -0
  291. data/node_modules/css-tree/lib/syntax/node/Comment.js +36 -0
  292. data/node_modules/css-tree/lib/syntax/node/Declaration.js +169 -0
  293. data/node_modules/css-tree/lib/syntax/node/DeclarationList.js +49 -0
  294. data/node_modules/css-tree/lib/syntax/node/Dimension.js +29 -0
  295. data/node_modules/css-tree/lib/syntax/node/Function.js +40 -0
  296. data/node_modules/css-tree/lib/syntax/node/Hash.js +26 -0
  297. data/node_modules/css-tree/lib/syntax/node/IdSelector.js +27 -0
  298. data/node_modules/css-tree/lib/syntax/node/Identifier.js +20 -0
  299. data/node_modules/css-tree/lib/syntax/node/MediaFeature.js +76 -0
  300. data/node_modules/css-tree/lib/syntax/node/MediaQuery.js +68 -0
  301. data/node_modules/css-tree/lib/syntax/node/MediaQueryList.js +36 -0
  302. data/node_modules/css-tree/lib/syntax/node/Nth.js +51 -0
  303. data/node_modules/css-tree/lib/syntax/node/Number.js +18 -0
  304. data/node_modules/css-tree/lib/syntax/node/Operator.js +21 -0
  305. data/node_modules/css-tree/lib/syntax/node/Parentheses.js +34 -0
  306. data/node_modules/css-tree/lib/syntax/node/Percentage.js +27 -0
  307. data/node_modules/css-tree/lib/syntax/node/PseudoClassSelector.js +61 -0
  308. data/node_modules/css-tree/lib/syntax/node/PseudoElementSelector.js +62 -0
  309. data/node_modules/css-tree/lib/syntax/node/Ratio.js +66 -0
  310. data/node_modules/css-tree/lib/syntax/node/Raw.js +87 -0
  311. data/node_modules/css-tree/lib/syntax/node/Rule.js +54 -0
  312. data/node_modules/css-tree/lib/syntax/node/Selector.js +32 -0
  313. data/node_modules/css-tree/lib/syntax/node/SelectorList.js +39 -0
  314. data/node_modules/css-tree/lib/syntax/node/String.js +18 -0
  315. data/node_modules/css-tree/lib/syntax/node/StyleSheet.js +81 -0
  316. data/node_modules/css-tree/lib/syntax/node/TypeSelector.js +53 -0
  317. data/node_modules/css-tree/lib/syntax/node/UnicodeRange.js +173 -0
  318. data/node_modules/css-tree/lib/syntax/node/Url.js +69 -0
  319. data/node_modules/css-tree/lib/syntax/node/Value.js +19 -0
  320. data/node_modules/css-tree/lib/syntax/node/WhiteSpace.js +26 -0
  321. data/node_modules/css-tree/lib/syntax/node/index.js +42 -0
  322. data/node_modules/css-tree/lib/syntax/pseudo/common/nth.js +9 -0
  323. data/node_modules/css-tree/lib/syntax/pseudo/common/nthWithOfClause.js +9 -0
  324. data/node_modules/css-tree/lib/syntax/pseudo/common/selectorList.js +7 -0
  325. data/node_modules/css-tree/lib/syntax/pseudo/dir.js +7 -0
  326. data/node_modules/css-tree/lib/syntax/pseudo/has.js +7 -0
  327. data/node_modules/css-tree/lib/syntax/pseudo/index.js +12 -0
  328. data/node_modules/css-tree/lib/syntax/pseudo/lang.js +7 -0
  329. data/node_modules/css-tree/lib/syntax/pseudo/matches.js +1 -0
  330. data/node_modules/css-tree/lib/syntax/pseudo/not.js +1 -0
  331. data/node_modules/css-tree/lib/syntax/pseudo/nth-child.js +1 -0
  332. data/node_modules/css-tree/lib/syntax/pseudo/nth-last-child.js +1 -0
  333. data/node_modules/css-tree/lib/syntax/pseudo/nth-last-of-type.js +1 -0
  334. data/node_modules/css-tree/lib/syntax/pseudo/nth-of-type.js +1 -0
  335. data/node_modules/css-tree/lib/syntax/pseudo/slotted.js +7 -0
  336. data/node_modules/css-tree/lib/syntax/scope/atrulePrelude.js +3 -0
  337. data/node_modules/css-tree/lib/syntax/scope/default.js +87 -0
  338. data/node_modules/css-tree/lib/syntax/scope/index.js +5 -0
  339. data/node_modules/css-tree/lib/syntax/scope/selector.js +80 -0
  340. data/node_modules/css-tree/lib/syntax/scope/value.js +5 -0
  341. data/node_modules/css-tree/lib/tokenizer/char-code-definitions.js +249 -0
  342. data/node_modules/css-tree/lib/tokenizer/const.js +40 -0
  343. data/node_modules/css-tree/lib/tokenizer/index.js +591 -0
  344. data/node_modules/css-tree/lib/tokenizer/utils.js +243 -0
  345. data/node_modules/css-tree/lib/utils/clone.js +21 -0
  346. data/node_modules/css-tree/lib/utils/createCustomError.js +17 -0
  347. data/node_modules/css-tree/lib/utils/names.js +104 -0
  348. data/node_modules/css-tree/lib/walker/create.js +284 -0
  349. data/node_modules/css-tree/lib/walker/index.js +4 -0
  350. data/node_modules/css-tree/package.json +60 -0
  351. data/node_modules/csstype/LICENSE +19 -0
  352. data/node_modules/csstype/README.md +273 -0
  353. data/node_modules/csstype/index.d.ts +20553 -0
  354. data/node_modules/csstype/index.js.flow +6278 -0
  355. data/node_modules/csstype/package.json +62 -0
  356. data/node_modules/error-stack-parser/CHANGELOG.md +53 -0
  357. data/node_modules/error-stack-parser/LICENSE +19 -0
  358. data/node_modules/error-stack-parser/README.md +44 -0
  359. data/node_modules/error-stack-parser/dist/error-stack-parser.js +202 -0
  360. data/node_modules/error-stack-parser/dist/error-stack-parser.min.js +2 -0
  361. data/node_modules/error-stack-parser/dist/error-stack-parser.min.js.map +1 -0
  362. data/node_modules/error-stack-parser/error-stack-parser.d.ts +66 -0
  363. data/node_modules/error-stack-parser/error-stack-parser.js +202 -0
  364. data/node_modules/error-stack-parser/package.json +63 -0
  365. data/node_modules/fastest-stable-stringify/.eslintrc.yml +26 -0
  366. data/node_modules/fastest-stable-stringify/.travis.yml +7 -0
  367. data/node_modules/fastest-stable-stringify/LICENSE +18 -0
  368. data/node_modules/fastest-stable-stringify/README.md +44 -0
  369. data/node_modules/fastest-stable-stringify/benchmark/index.js +32 -0
  370. data/node_modules/fastest-stable-stringify/benchmark/test.json +215 -0
  371. data/node_modules/fastest-stable-stringify/example/key_cmp.js +7 -0
  372. data/node_modules/fastest-stable-stringify/example/nested.js +3 -0
  373. data/node_modules/fastest-stable-stringify/example/str.js +3 -0
  374. data/node_modules/fastest-stable-stringify/example/value_cmp.js +7 -0
  375. data/node_modules/fastest-stable-stringify/index.js +60 -0
  376. data/node_modules/fastest-stable-stringify/package.json +54 -0
  377. data/node_modules/fastest-stable-stringify/test/bench.js +20 -0
  378. data/node_modules/fastest-stable-stringify/test/nested.js +24 -0
  379. data/node_modules/fastest-stable-stringify/test/str.js +52 -0
  380. data/node_modules/fastest-stable-stringify/test/to-json.js +22 -0
  381. data/node_modules/hyphenate-style-name/LICENSE +28 -0
  382. data/node_modules/hyphenate-style-name/README.md +28 -0
  383. data/node_modules/hyphenate-style-name/index.cjs.js +21 -0
  384. data/node_modules/hyphenate-style-name/index.js +19 -0
  385. data/node_modules/hyphenate-style-name/package.json +42 -0
  386. data/node_modules/inline-style-prefixer/CHANGELOG.md +195 -0
  387. data/node_modules/inline-style-prefixer/LICENSE +22 -0
  388. data/node_modules/inline-style-prefixer/README.md +100 -0
  389. data/node_modules/inline-style-prefixer/es/createPrefixer.js +47 -0
  390. data/node_modules/inline-style-prefixer/es/data.js +12 -0
  391. data/node_modules/inline-style-prefixer/es/generator/generatePluginList.js +21 -0
  392. data/node_modules/inline-style-prefixer/es/generator/generatePrefixMap.js +75 -0
  393. data/node_modules/inline-style-prefixer/es/generator/index.js +69 -0
  394. data/node_modules/inline-style-prefixer/es/generator/maps/pluginMap.js +108 -0
  395. data/node_modules/inline-style-prefixer/es/generator/maps/propertyMap.js +38 -0
  396. data/node_modules/inline-style-prefixer/es/index.js +26 -0
  397. data/node_modules/inline-style-prefixer/es/plugins/backgroundClip.js +7 -0
  398. data/node_modules/inline-style-prefixer/es/plugins/calc.js +11 -0
  399. data/node_modules/inline-style-prefixer/es/plugins/crossFade.js +12 -0
  400. data/node_modules/inline-style-prefixer/es/plugins/cursor.js +16 -0
  401. data/node_modules/inline-style-prefixer/es/plugins/filter.js +12 -0
  402. data/node_modules/inline-style-prefixer/es/plugins/flex.js +10 -0
  403. data/node_modules/inline-style-prefixer/es/plugins/flexboxIE.js +67 -0
  404. data/node_modules/inline-style-prefixer/es/plugins/flexboxOld.js +33 -0
  405. data/node_modules/inline-style-prefixer/es/plugins/gradient.js +14 -0
  406. data/node_modules/inline-style-prefixer/es/plugins/grid.js +129 -0
  407. data/node_modules/inline-style-prefixer/es/plugins/imageSet.js +12 -0
  408. data/node_modules/inline-style-prefixer/es/plugins/index.js +17 -0
  409. data/node_modules/inline-style-prefixer/es/plugins/logical.js +35 -0
  410. data/node_modules/inline-style-prefixer/es/plugins/position.js +5 -0
  411. data/node_modules/inline-style-prefixer/es/plugins/sizing.js +26 -0
  412. data/node_modules/inline-style-prefixer/es/plugins/transition.js +75 -0
  413. data/node_modules/inline-style-prefixer/es/utils/addNewValuesOnly.js +15 -0
  414. data/node_modules/inline-style-prefixer/es/utils/capitalizeString.js +3 -0
  415. data/node_modules/inline-style-prefixer/es/utils/isObject.js +3 -0
  416. data/node_modules/inline-style-prefixer/es/utils/prefixProperty.js +22 -0
  417. data/node_modules/inline-style-prefixer/es/utils/prefixValue.js +11 -0
  418. data/node_modules/inline-style-prefixer/lib/createPrefixer.js +66 -0
  419. data/node_modules/inline-style-prefixer/lib/data.js +17 -0
  420. data/node_modules/inline-style-prefixer/lib/generator/generatePluginList.js +32 -0
  421. data/node_modules/inline-style-prefixer/lib/generator/generatePrefixMap.js +86 -0
  422. data/node_modules/inline-style-prefixer/lib/generator/index.js +85 -0
  423. data/node_modules/inline-style-prefixer/lib/generator/maps/pluginMap.js +113 -0
  424. data/node_modules/inline-style-prefixer/lib/generator/maps/propertyMap.js +43 -0
  425. data/node_modules/inline-style-prefixer/lib/index.js +78 -0
  426. data/node_modules/inline-style-prefixer/lib/plugins/backgroundClip.js +13 -0
  427. data/node_modules/inline-style-prefixer/lib/plugins/calc.js +21 -0
  428. data/node_modules/inline-style-prefixer/lib/plugins/crossFade.js +22 -0
  429. data/node_modules/inline-style-prefixer/lib/plugins/cursor.js +22 -0
  430. data/node_modules/inline-style-prefixer/lib/plugins/filter.js +22 -0
  431. data/node_modules/inline-style-prefixer/lib/plugins/flex.js +16 -0
  432. data/node_modules/inline-style-prefixer/lib/plugins/flexboxIE.js +73 -0
  433. data/node_modules/inline-style-prefixer/lib/plugins/flexboxOld.js +39 -0
  434. data/node_modules/inline-style-prefixer/lib/plugins/gradient.js +26 -0
  435. data/node_modules/inline-style-prefixer/lib/plugins/grid.js +136 -0
  436. data/node_modules/inline-style-prefixer/lib/plugins/imageSet.js +22 -0
  437. data/node_modules/inline-style-prefixer/lib/plugins/index.js +69 -0
  438. data/node_modules/inline-style-prefixer/lib/plugins/logical.js +41 -0
  439. data/node_modules/inline-style-prefixer/lib/plugins/position.js +11 -0
  440. data/node_modules/inline-style-prefixer/lib/plugins/sizing.js +32 -0
  441. data/node_modules/inline-style-prefixer/lib/plugins/transition.js +92 -0
  442. data/node_modules/inline-style-prefixer/lib/utils/addNewValuesOnly.js +21 -0
  443. data/node_modules/inline-style-prefixer/lib/utils/capitalizeString.js +9 -0
  444. data/node_modules/inline-style-prefixer/lib/utils/isObject.js +9 -0
  445. data/node_modules/inline-style-prefixer/lib/utils/prefixProperty.js +32 -0
  446. data/node_modules/inline-style-prefixer/lib/utils/prefixValue.js +17 -0
  447. data/node_modules/inline-style-prefixer/package.json +79 -0
  448. data/node_modules/isobject/LICENSE +21 -0
  449. data/node_modules/isobject/README.md +122 -0
  450. data/node_modules/isobject/index.d.ts +5 -0
  451. data/node_modules/isobject/index.js +12 -0
  452. data/node_modules/isobject/package.json +74 -0
  453. data/node_modules/js-tokens/CHANGELOG.md +151 -0
  454. data/node_modules/js-tokens/LICENSE +21 -0
  455. data/node_modules/js-tokens/README.md +240 -0
  456. data/node_modules/js-tokens/index.js +23 -0
  457. data/node_modules/js-tokens/package.json +30 -0
  458. data/node_modules/loose-envify/LICENSE +21 -0
  459. data/node_modules/loose-envify/README.md +45 -0
  460. data/node_modules/loose-envify/cli.js +16 -0
  461. data/node_modules/loose-envify/custom.js +4 -0
  462. data/node_modules/loose-envify/index.js +3 -0
  463. data/node_modules/loose-envify/loose-envify.js +36 -0
  464. data/node_modules/loose-envify/package.json +36 -0
  465. data/node_modules/loose-envify/replace.js +65 -0
  466. data/node_modules/mdn-data/LICENSE +116 -0
  467. data/node_modules/mdn-data/README.md +56 -0
  468. data/node_modules/mdn-data/api/index.js +3 -0
  469. data/node_modules/mdn-data/api/inheritance.json +2681 -0
  470. data/node_modules/mdn-data/api/inheritance.schema.json +31 -0
  471. data/node_modules/mdn-data/css/at-rules.json +560 -0
  472. data/node_modules/mdn-data/css/at-rules.schema.json +132 -0
  473. data/node_modules/mdn-data/css/definitions.json +77 -0
  474. data/node_modules/mdn-data/css/index.js +8 -0
  475. data/node_modules/mdn-data/css/properties.json +9163 -0
  476. data/node_modules/mdn-data/css/properties.schema.json +402 -0
  477. data/node_modules/mdn-data/css/selectors.json +927 -0
  478. data/node_modules/mdn-data/css/selectors.schema.json +36 -0
  479. data/node_modules/mdn-data/css/syntaxes.json +761 -0
  480. data/node_modules/mdn-data/css/syntaxes.schema.json +15 -0
  481. data/node_modules/mdn-data/css/types.json +265 -0
  482. data/node_modules/mdn-data/css/types.schema.json +32 -0
  483. data/node_modules/mdn-data/css/units.json +199 -0
  484. data/node_modules/mdn-data/css/units.schema.json +28 -0
  485. data/node_modules/mdn-data/index.js +5 -0
  486. data/node_modules/mdn-data/l10n/css.json +1567 -0
  487. data/node_modules/mdn-data/l10n/index.js +3 -0
  488. data/node_modules/mdn-data/package.json +39 -0
  489. data/node_modules/nano-css/.circleci/config.yml +85 -0
  490. data/node_modules/nano-css/.eslintrc.yml +27 -0
  491. data/node_modules/nano-css/.github/FUNDING.yml +3 -0
  492. data/node_modules/nano-css/.github/workflows/nodejs.yml +23 -0
  493. data/node_modules/nano-css/CHANGELOG.md +362 -0
  494. data/node_modules/nano-css/LICENSE +24 -0
  495. data/node_modules/nano-css/README.md +70 -0
  496. data/node_modules/nano-css/addon/__dev__/warnOnMissingDependencies.js +25 -0
  497. data/node_modules/nano-css/addon/__tests__/__snapshots__/reset.test.js.snap +407 -0
  498. data/node_modules/nano-css/addon/__tests__/__snapshots__/tachyons.test.js.snap +43 -0
  499. data/node_modules/nano-css/addon/__tests__/amp.server.dev.test.js +6 -0
  500. data/node_modules/nano-css/addon/__tests__/amp.server.test.js +223 -0
  501. data/node_modules/nano-css/addon/__tests__/atoms.dev.test.js +5 -0
  502. data/node_modules/nano-css/addon/__tests__/atoms.server.dev.test.js +8 -0
  503. data/node_modules/nano-css/addon/__tests__/atoms.server.test.js +6 -0
  504. data/node_modules/nano-css/addon/__tests__/atoms.test.js +49 -0
  505. data/node_modules/nano-css/addon/__tests__/cssom.server.test.js +12 -0
  506. data/node_modules/nano-css/addon/__tests__/emmet/emmet.dev.test.js +5 -0
  507. data/node_modules/nano-css/addon/__tests__/emmet/emmet.server.dev.test.js +8 -0
  508. data/node_modules/nano-css/addon/__tests__/emmet/emmet.server.test.js +6 -0
  509. data/node_modules/nano-css/addon/__tests__/emmet/emmet.test.js +219 -0
  510. data/node_modules/nano-css/addon/__tests__/env.js +6 -0
  511. data/node_modules/nano-css/addon/__tests__/extract.server.test.js +159 -0
  512. data/node_modules/nano-css/addon/__tests__/index.server.dev.test.js +6 -0
  513. data/node_modules/nano-css/addon/__tests__/index.server.test.js +4 -0
  514. data/node_modules/nano-css/addon/__tests__/index.test.js +257 -0
  515. data/node_modules/nano-css/addon/__tests__/jsx.dev.test.js +5 -0
  516. data/node_modules/nano-css/addon/__tests__/jsx.server.dev.test.js +6 -0
  517. data/node_modules/nano-css/addon/__tests__/jsx.server.test.js +4 -0
  518. data/node_modules/nano-css/addon/__tests__/jsx.test.js +33 -0
  519. data/node_modules/nano-css/addon/__tests__/keyframes.dev.test.js +5 -0
  520. data/node_modules/nano-css/addon/__tests__/keyframes.server.dev.test.js +6 -0
  521. data/node_modules/nano-css/addon/__tests__/keyframes.server.test.js +4 -0
  522. data/node_modules/nano-css/addon/__tests__/keyframes.test.js +131 -0
  523. data/node_modules/nano-css/addon/__tests__/limit.server.test.js +54 -0
  524. data/node_modules/nano-css/addon/__tests__/nesting.test.js +85 -0
  525. data/node_modules/nano-css/addon/__tests__/prefixer.test.js +121 -0
  526. data/node_modules/nano-css/addon/__tests__/put.dev.test.js +5 -0
  527. data/node_modules/nano-css/addon/__tests__/put.server.dev.test.js +6 -0
  528. data/node_modules/nano-css/addon/__tests__/put.server.test.js +4 -0
  529. data/node_modules/nano-css/addon/__tests__/put.test.js +75 -0
  530. data/node_modules/nano-css/addon/__tests__/reset.test.js +38 -0
  531. data/node_modules/nano-css/addon/__tests__/rule.dev.test.js +5 -0
  532. data/node_modules/nano-css/addon/__tests__/rule.server.dev.test.js +7 -0
  533. data/node_modules/nano-css/addon/__tests__/rule.server.test.js +5 -0
  534. data/node_modules/nano-css/addon/__tests__/rule.test.js +57 -0
  535. data/node_modules/nano-css/addon/__tests__/setup.js +7 -0
  536. data/node_modules/nano-css/addon/__tests__/sheet.test.js +74 -0
  537. data/node_modules/nano-css/addon/__tests__/snake.test.js +124 -0
  538. data/node_modules/nano-css/addon/__tests__/tachyons.test.js +45 -0
  539. data/node_modules/nano-css/addon/__tests__/units.dev.test.js +5 -0
  540. data/node_modules/nano-css/addon/__tests__/units.server.dev.test.js +6 -0
  541. data/node_modules/nano-css/addon/__tests__/units.server.test.js +4 -0
  542. data/node_modules/nano-css/addon/__tests__/units.test.js +41 -0
  543. data/node_modules/nano-css/addon/__tests__/validate.dev.test.js +5 -0
  544. data/node_modules/nano-css/addon/__tests__/validate.test.js +69 -0
  545. data/node_modules/nano-css/addon/__tests__/vcssom.server.test.js +14 -0
  546. data/node_modules/nano-css/addon/__tests__/virtual.dev.test.js +5 -0
  547. data/node_modules/nano-css/addon/__tests__/virtual.server.dev.test.js +6 -0
  548. data/node_modules/nano-css/addon/__tests__/virtual.server.test.js +4 -0
  549. data/node_modules/nano-css/addon/__tests__/virtual.test.js +225 -0
  550. data/node_modules/nano-css/addon/amp.d.ts +5 -0
  551. data/node_modules/nano-css/addon/amp.js +156 -0
  552. data/node_modules/nano-css/addon/animate/fadeIn.js +22 -0
  553. data/node_modules/nano-css/addon/animate/fadeInDown.js +25 -0
  554. data/node_modules/nano-css/addon/animate/fadeInScale.js +25 -0
  555. data/node_modules/nano-css/addon/animate/fadeOut.js +23 -0
  556. data/node_modules/nano-css/addon/animate/fadeOutScale.js +21 -0
  557. data/node_modules/nano-css/addon/array.d.ts +5 -0
  558. data/node_modules/nano-css/addon/array.js +33 -0
  559. data/node_modules/nano-css/addon/atoms.d.ts +243 -0
  560. data/node_modules/nano-css/addon/atoms.js +63 -0
  561. data/node_modules/nano-css/addon/cache.d.ts +8 -0
  562. data/node_modules/nano-css/addon/cache.js +17 -0
  563. data/node_modules/nano-css/addon/component.d.ts +7 -0
  564. data/node_modules/nano-css/addon/component.js +26 -0
  565. data/node_modules/nano-css/addon/cssom.d.ts +17 -0
  566. data/node_modules/nano-css/addon/cssom.js +36 -0
  567. data/node_modules/nano-css/addon/decorator.d.ts +7 -0
  568. data/node_modules/nano-css/addon/decorator.js +43 -0
  569. data/node_modules/nano-css/addon/drule.d.ts +8 -0
  570. data/node_modules/nano-css/addon/drule.js +27 -0
  571. data/node_modules/nano-css/addon/dsheet.d.ts +8 -0
  572. data/node_modules/nano-css/addon/dsheet.js +36 -0
  573. data/node_modules/nano-css/addon/emmet.d.ts +614 -0
  574. data/node_modules/nano-css/addon/emmet.js +177 -0
  575. data/node_modules/nano-css/addon/extract.d.ts +5 -0
  576. data/node_modules/nano-css/addon/extract.js +59 -0
  577. data/node_modules/nano-css/addon/global.d.ts +8 -0
  578. data/node_modules/nano-css/addon/global.js +19 -0
  579. data/node_modules/nano-css/addon/googleFont.d.ts +8 -0
  580. data/node_modules/nano-css/addon/googleFont.js +43 -0
  581. data/node_modules/nano-css/addon/hydrate.d.ts +7 -0
  582. data/node_modules/nano-css/addon/hydrate.js +28 -0
  583. data/node_modules/nano-css/addon/hyperstyle.js +27 -0
  584. data/node_modules/nano-css/addon/important.js +38 -0
  585. data/node_modules/nano-css/addon/jsx.js +60 -0
  586. data/node_modules/nano-css/addon/keyframes.d.ts +34 -0
  587. data/node_modules/nano-css/addon/keyframes.js +61 -0
  588. data/node_modules/nano-css/addon/limit.js +26 -0
  589. data/node_modules/nano-css/addon/nesting.js +37 -0
  590. data/node_modules/nano-css/addon/pipe.js +57 -0
  591. data/node_modules/nano-css/addon/prefixer.js +79 -0
  592. data/node_modules/nano-css/addon/ref.js +87 -0
  593. data/node_modules/nano-css/addon/reset/EricMeyer.js +48 -0
  594. data/node_modules/nano-css/addon/reset/EricMeyerCondensed.js +44 -0
  595. data/node_modules/nano-css/addon/reset/Minimalistic.js +16 -0
  596. data/node_modules/nano-css/addon/reset/Minimalistic2.js +17 -0
  597. data/node_modules/nano-css/addon/reset/Minimalistic3.js +18 -0
  598. data/node_modules/nano-css/addon/reset/Normalize.js +83 -0
  599. data/node_modules/nano-css/addon/reset/PoorMan.js +25 -0
  600. data/node_modules/nano-css/addon/reset/ShaunInman.js +42 -0
  601. data/node_modules/nano-css/addon/reset/Siolon.js +34 -0
  602. data/node_modules/nano-css/addon/reset/Tantek.js +31 -0
  603. data/node_modules/nano-css/addon/reset/Tripoli.js +75 -0
  604. data/node_modules/nano-css/addon/reset/Universal.js +23 -0
  605. data/node_modules/nano-css/addon/reset/Yahoo.js +43 -0
  606. data/node_modules/nano-css/addon/reset-font.js +24 -0
  607. data/node_modules/nano-css/addon/rtl.js +15 -0
  608. data/node_modules/nano-css/addon/rule.d.ts +26 -0
  609. data/node_modules/nano-css/addon/rule.js +39 -0
  610. data/node_modules/nano-css/addon/sheet.d.ts +22 -0
  611. data/node_modules/nano-css/addon/sheet.js +45 -0
  612. data/node_modules/nano-css/addon/snake.js +141 -0
  613. data/node_modules/nano-css/addon/sourcemaps.js +96 -0
  614. data/node_modules/nano-css/addon/spread.js +23 -0
  615. data/node_modules/nano-css/addon/stable.js +7 -0
  616. data/node_modules/nano-css/addon/style.js +33 -0
  617. data/node_modules/nano-css/addon/styled.js +161 -0
  618. data/node_modules/nano-css/addon/stylis/plugin-onRule.js +43 -0
  619. data/node_modules/nano-css/addon/stylis.js +28 -0
  620. data/node_modules/nano-css/addon/tachyons.js +215 -0
  621. data/node_modules/nano-css/addon/unitless.js +78 -0
  622. data/node_modules/nano-css/addon/units.d.ts +89 -0
  623. data/node_modules/nano-css/addon/units.js +27 -0
  624. data/node_modules/nano-css/addon/useStyles.js +24 -0
  625. data/node_modules/nano-css/addon/util/cloneElement.js +11 -0
  626. data/node_modules/nano-css/addon/util/transformComponentDynamic.js +50 -0
  627. data/node_modules/nano-css/addon/util/transformComponentStatic.js +26 -0
  628. data/node_modules/nano-css/addon/validate.js +82 -0
  629. data/node_modules/nano-css/addon/vcssom/__tests__/cssToTree.test.js +159 -0
  630. data/node_modules/nano-css/addon/vcssom/cssToTree.d.ts +15 -0
  631. data/node_modules/nano-css/addon/vcssom/cssToTree.js +42 -0
  632. data/node_modules/nano-css/addon/vcssom/removeRule.d.ts +3 -0
  633. data/node_modules/nano-css/addon/vcssom/removeRule.js +15 -0
  634. data/node_modules/nano-css/addon/vcssom.d.ts +72 -0
  635. data/node_modules/nano-css/addon/vcssom.js +97 -0
  636. data/node_modules/nano-css/addon/virtual.js +107 -0
  637. data/node_modules/nano-css/addon/withStyles.js +32 -0
  638. data/node_modules/nano-css/index.d.ts +4 -0
  639. data/node_modules/nano-css/index.js +138 -0
  640. data/node_modules/nano-css/package.json +145 -0
  641. data/node_modules/nano-css/preset/react.js +43 -0
  642. data/node_modules/nano-css/preset/sheet.d.ts +5 -0
  643. data/node_modules/nano-css/preset/sheet.js +27 -0
  644. data/node_modules/nano-css/preset/vdom.js +40 -0
  645. data/node_modules/nano-css/prettier.config.js +13 -0
  646. data/node_modules/nano-css/renovate.json +3 -0
  647. data/node_modules/nano-css/types/common.d.ts +14 -0
  648. data/node_modules/nano-css/types/demo.ts +7 -0
  649. data/node_modules/nano-css/types/nano.d.ts +171 -0
  650. data/node_modules/object-assign/index.js +90 -0
  651. data/node_modules/object-assign/license +21 -0
  652. data/node_modules/object-assign/package.json +42 -0
  653. data/node_modules/object-assign/readme.md +61 -0
  654. data/node_modules/preact/LICENSE +21 -0
  655. data/node_modules/preact/README.md +187 -0
  656. data/node_modules/preact/compat/LICENSE +21 -0
  657. data/node_modules/preact/compat/dist/compat.js +2 -0
  658. data/node_modules/preact/compat/dist/compat.js.map +1 -0
  659. data/node_modules/preact/compat/dist/compat.mjs +2 -0
  660. data/node_modules/preact/compat/dist/compat.mjs.map +1 -0
  661. data/node_modules/preact/compat/dist/compat.modern.js +2 -0
  662. data/node_modules/preact/compat/dist/compat.modern.js.map +1 -0
  663. data/node_modules/preact/compat/dist/compat.module.js +2 -0
  664. data/node_modules/preact/compat/dist/compat.module.js.map +1 -0
  665. data/node_modules/preact/compat/dist/compat.umd.js +2 -0
  666. data/node_modules/preact/compat/dist/compat.umd.js.map +1 -0
  667. data/node_modules/preact/compat/jsx-dev-runtime.js +1 -0
  668. data/node_modules/preact/compat/jsx-dev-runtime.mjs +1 -0
  669. data/node_modules/preact/compat/jsx-runtime.js +1 -0
  670. data/node_modules/preact/compat/jsx-runtime.mjs +1 -0
  671. data/node_modules/preact/compat/package.json +19 -0
  672. data/node_modules/preact/compat/scheduler.js +15 -0
  673. data/node_modules/preact/compat/scheduler.mjs +23 -0
  674. data/node_modules/preact/compat/server.js +15 -0
  675. data/node_modules/preact/compat/server.mjs +4 -0
  676. data/node_modules/preact/compat/src/Children.js +21 -0
  677. data/node_modules/preact/compat/src/PureComponent.js +15 -0
  678. data/node_modules/preact/compat/src/forwardRef.js +51 -0
  679. data/node_modules/preact/compat/src/index.d.ts +140 -0
  680. data/node_modules/preact/compat/src/index.js +187 -0
  681. data/node_modules/preact/compat/src/internal.d.ts +47 -0
  682. data/node_modules/preact/compat/src/memo.js +34 -0
  683. data/node_modules/preact/compat/src/portals.js +80 -0
  684. data/node_modules/preact/compat/src/render.js +219 -0
  685. data/node_modules/preact/compat/src/suspense-list.d.ts +14 -0
  686. data/node_modules/preact/compat/src/suspense-list.js +126 -0
  687. data/node_modules/preact/compat/src/suspense.d.ts +15 -0
  688. data/node_modules/preact/compat/src/suspense.js +270 -0
  689. data/node_modules/preact/compat/src/util.js +28 -0
  690. data/node_modules/preact/compat/test-utils.js +1 -0
  691. data/node_modules/preact/debug/LICENSE +21 -0
  692. data/node_modules/preact/debug/dist/debug.js +2 -0
  693. data/node_modules/preact/debug/dist/debug.js.map +1 -0
  694. data/node_modules/preact/debug/dist/debug.mjs +2 -0
  695. data/node_modules/preact/debug/dist/debug.mjs.map +1 -0
  696. data/node_modules/preact/debug/dist/debug.modern.js +2 -0
  697. data/node_modules/preact/debug/dist/debug.modern.js.map +1 -0
  698. data/node_modules/preact/debug/dist/debug.module.js +2 -0
  699. data/node_modules/preact/debug/dist/debug.module.js.map +1 -0
  700. data/node_modules/preact/debug/dist/debug.umd.js +2 -0
  701. data/node_modules/preact/debug/dist/debug.umd.js.map +1 -0
  702. data/node_modules/preact/debug/package.json +18 -0
  703. data/node_modules/preact/debug/src/check-props.js +54 -0
  704. data/node_modules/preact/debug/src/component-stack.js +146 -0
  705. data/node_modules/preact/debug/src/constants.js +3 -0
  706. data/node_modules/preact/debug/src/debug.js +442 -0
  707. data/node_modules/preact/debug/src/index.js +6 -0
  708. data/node_modules/preact/debug/src/internal.d.ts +82 -0
  709. data/node_modules/preact/debug/src/util.js +11 -0
  710. data/node_modules/preact/devtools/LICENSE +21 -0
  711. data/node_modules/preact/devtools/dist/devtools.js +2 -0
  712. data/node_modules/preact/devtools/dist/devtools.js.map +1 -0
  713. data/node_modules/preact/devtools/dist/devtools.mjs +2 -0
  714. data/node_modules/preact/devtools/dist/devtools.mjs.map +1 -0
  715. data/node_modules/preact/devtools/dist/devtools.modern.js +2 -0
  716. data/node_modules/preact/devtools/dist/devtools.modern.js.map +1 -0
  717. data/node_modules/preact/devtools/dist/devtools.module.js +2 -0
  718. data/node_modules/preact/devtools/dist/devtools.module.js.map +1 -0
  719. data/node_modules/preact/devtools/dist/devtools.umd.js +2 -0
  720. data/node_modules/preact/devtools/dist/devtools.umd.js.map +1 -0
  721. data/node_modules/preact/devtools/package.json +16 -0
  722. data/node_modules/preact/devtools/src/devtools.js +10 -0
  723. data/node_modules/preact/devtools/src/index.d.ts +8 -0
  724. data/node_modules/preact/devtools/src/index.js +15 -0
  725. data/node_modules/preact/dist/preact.js +2 -0
  726. data/node_modules/preact/dist/preact.js.map +1 -0
  727. data/node_modules/preact/dist/preact.min.js +2 -0
  728. data/node_modules/preact/dist/preact.min.js.map +1 -0
  729. data/node_modules/preact/dist/preact.mjs +2 -0
  730. data/node_modules/preact/dist/preact.mjs.map +1 -0
  731. data/node_modules/preact/dist/preact.module.js +2 -0
  732. data/node_modules/preact/dist/preact.module.js.map +1 -0
  733. data/node_modules/preact/dist/preact.umd.js +2 -0
  734. data/node_modules/preact/dist/preact.umd.js.map +1 -0
  735. data/node_modules/preact/hooks/LICENSE +21 -0
  736. data/node_modules/preact/hooks/dist/hooks.js +2 -0
  737. data/node_modules/preact/hooks/dist/hooks.js.map +1 -0
  738. data/node_modules/preact/hooks/dist/hooks.mjs +2 -0
  739. data/node_modules/preact/hooks/dist/hooks.mjs.map +1 -0
  740. data/node_modules/preact/hooks/dist/hooks.modern.js +2 -0
  741. data/node_modules/preact/hooks/dist/hooks.modern.js.map +1 -0
  742. data/node_modules/preact/hooks/dist/hooks.module.js +2 -0
  743. data/node_modules/preact/hooks/dist/hooks.module.js.map +1 -0
  744. data/node_modules/preact/hooks/dist/hooks.umd.js +2 -0
  745. data/node_modules/preact/hooks/dist/hooks.umd.js.map +1 -0
  746. data/node_modules/preact/hooks/package.json +26 -0
  747. data/node_modules/preact/hooks/src/index.d.ts +133 -0
  748. data/node_modules/preact/hooks/src/index.js +386 -0
  749. data/node_modules/preact/hooks/src/internal.d.ts +75 -0
  750. data/node_modules/preact/jsx-runtime/LICENSE +21 -0
  751. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.js +2 -0
  752. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.js.map +1 -0
  753. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs +2 -0
  754. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.modern.js +2 -0
  755. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.modern.js.map +1 -0
  756. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +2 -0
  757. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js.map +1 -0
  758. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js +2 -0
  759. data/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js.map +1 -0
  760. data/node_modules/preact/jsx-runtime/package.json +19 -0
  761. data/node_modules/preact/jsx-runtime/src/index.d.ts +50 -0
  762. data/node_modules/preact/jsx-runtime/src/index.js +77 -0
  763. data/node_modules/preact/package.json +270 -0
  764. data/node_modules/preact/src/cjs.js +3 -0
  765. data/node_modules/preact/src/clone-element.js +34 -0
  766. data/node_modules/preact/src/component.js +225 -0
  767. data/node_modules/preact/src/constants.js +3 -0
  768. data/node_modules/preact/src/create-context.js +68 -0
  769. data/node_modules/preact/src/create-element.js +97 -0
  770. data/node_modules/preact/src/diff/catch-error.js +38 -0
  771. data/node_modules/preact/src/diff/children.js +347 -0
  772. data/node_modules/preact/src/diff/index.js +514 -0
  773. data/node_modules/preact/src/diff/props.js +158 -0
  774. data/node_modules/preact/src/index.d.ts +310 -0
  775. data/node_modules/preact/src/index.js +13 -0
  776. data/node_modules/preact/src/internal.d.ts +146 -0
  777. data/node_modules/preact/src/jsx.d.ts +962 -0
  778. data/node_modules/preact/src/options.js +16 -0
  779. data/node_modules/preact/src/render.js +75 -0
  780. data/node_modules/preact/src/util.js +27 -0
  781. data/node_modules/preact/test-utils/dist/testUtils.js +2 -0
  782. data/node_modules/preact/test-utils/dist/testUtils.js.map +1 -0
  783. data/node_modules/preact/test-utils/dist/testUtils.mjs +2 -0
  784. data/node_modules/preact/test-utils/dist/testUtils.mjs.map +1 -0
  785. data/node_modules/preact/test-utils/dist/testUtils.modern.js +2 -0
  786. data/node_modules/preact/test-utils/dist/testUtils.modern.js.map +1 -0
  787. data/node_modules/preact/test-utils/dist/testUtils.module.js +2 -0
  788. data/node_modules/preact/test-utils/dist/testUtils.module.js.map +1 -0
  789. data/node_modules/preact/test-utils/dist/testUtils.umd.js +2 -0
  790. data/node_modules/preact/test-utils/dist/testUtils.umd.js.map +1 -0
  791. data/node_modules/preact/test-utils/package.json +19 -0
  792. data/node_modules/preact/test-utils/src/index.d.ts +3 -0
  793. data/node_modules/preact/test-utils/src/index.js +117 -0
  794. data/node_modules/preact-deep-force-update/.babelrc +8 -0
  795. data/node_modules/preact-deep-force-update/.eslintrc +66 -0
  796. data/node_modules/preact-deep-force-update/.npmignore +2 -0
  797. data/node_modules/preact-deep-force-update/.travis.yml +3 -0
  798. data/node_modules/preact-deep-force-update/LICENSE +21 -0
  799. data/node_modules/preact-deep-force-update/README.md +53 -0
  800. data/node_modules/preact-deep-force-update/dist/deep-force-update.js +36 -0
  801. data/node_modules/preact-deep-force-update/dist/deep-force-update.js.map +1 -0
  802. data/node_modules/preact-deep-force-update/dist/deep-force-update.min.js +2 -0
  803. data/node_modules/preact-deep-force-update/dist/deep-force-update.min.js.map +1 -0
  804. data/node_modules/preact-deep-force-update/karma.conf.js +32 -0
  805. data/node_modules/preact-deep-force-update/package.json +80 -0
  806. data/node_modules/preact-deep-force-update/rollup.config.js +17 -0
  807. data/node_modules/preact-deep-force-update/src/index.js +27 -0
  808. data/node_modules/preact-deep-force-update/test/index.js +50 -0
  809. data/node_modules/preact-render-to-string/LICENSE +21 -0
  810. data/node_modules/preact-render-to-string/README.md +102 -0
  811. data/node_modules/preact-render-to-string/dist/commonjs.js +2 -0
  812. data/node_modules/preact-render-to-string/dist/commonjs.js.map +1 -0
  813. data/node_modules/preact-render-to-string/dist/index.d.ts +16 -0
  814. data/node_modules/preact-render-to-string/dist/index.js +1 -0
  815. data/node_modules/preact-render-to-string/dist/index.js.map +1 -0
  816. data/node_modules/preact-render-to-string/dist/index.mjs +2 -0
  817. data/node_modules/preact-render-to-string/dist/index.module.js +2 -0
  818. data/node_modules/preact-render-to-string/dist/index.module.js.map +1 -0
  819. data/node_modules/preact-render-to-string/dist/jsx-entry.js +2 -0
  820. data/node_modules/preact-render-to-string/dist/jsx-entry.js.map +1 -0
  821. data/node_modules/preact-render-to-string/dist/jsx.d.ts +13 -0
  822. data/node_modules/preact-render-to-string/dist/jsx.js +1 -0
  823. data/node_modules/preact-render-to-string/dist/jsx.js.map +1 -0
  824. data/node_modules/preact-render-to-string/dist/jsx.mjs +2 -0
  825. data/node_modules/preact-render-to-string/dist/jsx.modern.js +2 -0
  826. data/node_modules/preact-render-to-string/dist/jsx.modern.js.map +1 -0
  827. data/node_modules/preact-render-to-string/dist/jsx.module.js +2 -0
  828. data/node_modules/preact-render-to-string/dist/jsx.module.js.map +1 -0
  829. data/node_modules/preact-render-to-string/dist/preact-render-to-string-tests.d.ts +1 -0
  830. data/node_modules/preact-render-to-string/jsx.js +1 -0
  831. data/node_modules/preact-render-to-string/package.json +139 -0
  832. data/node_modules/preact-render-to-string/src/index.d.ts +16 -0
  833. data/node_modules/preact-render-to-string/src/index.js +438 -0
  834. data/node_modules/preact-render-to-string/src/jsx.d.ts +13 -0
  835. data/node_modules/preact-render-to-string/src/jsx.js +76 -0
  836. data/node_modules/preact-render-to-string/src/polyfills.js +8 -0
  837. data/node_modules/preact-render-to-string/src/preact-render-to-string-tests.d.ts +1 -0
  838. data/node_modules/preact-render-to-string/src/util.js +78 -0
  839. data/node_modules/preact-render-to-string/typings.json +5 -0
  840. data/node_modules/pretty-format/.npmignore +3 -0
  841. data/node_modules/pretty-format/LICENSE.md +15 -0
  842. data/node_modules/pretty-format/README.md +94 -0
  843. data/node_modules/pretty-format/index.js +343 -0
  844. data/node_modules/pretty-format/package.json +26 -0
  845. data/node_modules/pretty-format/plugins/ReactElement.js +74 -0
  846. data/node_modules/pretty-format/plugins/ReactTestComponent.js +58 -0
  847. data/node_modules/pretty-format/printString.js +7 -0
  848. data/node_modules/react/LICENSE +21 -0
  849. data/node_modules/react/README.md +13 -0
  850. data/node_modules/react/build-info.json +8 -0
  851. data/node_modules/react/cjs/react-jsx-dev-runtime.development.js +1203 -0
  852. data/node_modules/react/cjs/react-jsx-dev-runtime.production.min.js +9 -0
  853. data/node_modules/react/cjs/react-jsx-dev-runtime.profiling.min.js +9 -0
  854. data/node_modules/react/cjs/react-jsx-runtime.development.js +1221 -0
  855. data/node_modules/react/cjs/react-jsx-runtime.production.min.js +10 -0
  856. data/node_modules/react/cjs/react-jsx-runtime.profiling.min.js +10 -0
  857. data/node_modules/react/cjs/react.development.js +2333 -0
  858. data/node_modules/react/cjs/react.production.min.js +23 -0
  859. data/node_modules/react/index.js +7 -0
  860. data/node_modules/react/jsx-dev-runtime.js +7 -0
  861. data/node_modules/react/jsx-runtime.js +7 -0
  862. data/node_modules/react/package.json +39 -0
  863. data/node_modules/react/umd/react.development.js +3357 -0
  864. data/node_modules/react/umd/react.production.min.js +31 -0
  865. data/node_modules/react/umd/react.profiling.min.js +36 -0
  866. data/node_modules/react-dom/LICENSE +21 -0
  867. data/node_modules/react-dom/README.md +54 -0
  868. data/node_modules/react-dom/build-info.json +8 -0
  869. data/node_modules/react-dom/cjs/react-dom-server.browser.development.js +4342 -0
  870. data/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +51 -0
  871. data/node_modules/react-dom/cjs/react-dom-server.node.development.js +4383 -0
  872. data/node_modules/react-dom/cjs/react-dom-server.node.production.min.js +52 -0
  873. data/node_modules/react-dom/cjs/react-dom-test-utils.development.js +2118 -0
  874. data/node_modules/react-dom/cjs/react-dom-test-utils.production.min.js +43 -0
  875. data/node_modules/react-dom/cjs/react-dom.development.js +26262 -0
  876. data/node_modules/react-dom/cjs/react-dom.production.min.js +297 -0
  877. data/node_modules/react-dom/cjs/react-dom.profiling.min.js +310 -0
  878. data/node_modules/react-dom/index.js +38 -0
  879. data/node_modules/react-dom/package.json +49 -0
  880. data/node_modules/react-dom/profiling.js +38 -0
  881. data/node_modules/react-dom/server.browser.js +7 -0
  882. data/node_modules/react-dom/server.js +3 -0
  883. data/node_modules/react-dom/server.node.js +7 -0
  884. data/node_modules/react-dom/test-utils.js +7 -0
  885. data/node_modules/react-dom/umd/react-dom-server.browser.development.js +4341 -0
  886. data/node_modules/react-dom/umd/react-dom-server.browser.production.min.js +46 -0
  887. data/node_modules/react-dom/umd/react-dom-test-utils.development.js +2136 -0
  888. data/node_modules/react-dom/umd/react-dom-test-utils.production.min.js +35 -0
  889. data/node_modules/react-dom/umd/react-dom.development.js +26292 -0
  890. data/node_modules/react-dom/umd/react-dom.production.min.js +245 -0
  891. data/node_modules/react-dom/umd/react-dom.profiling.min.js +252 -0
  892. data/node_modules/regenerator-runtime/LICENSE +21 -0
  893. data/node_modules/regenerator-runtime/README.md +31 -0
  894. data/node_modules/regenerator-runtime/package.json +19 -0
  895. data/node_modules/regenerator-runtime/path.js +11 -0
  896. data/node_modules/regenerator-runtime/runtime.js +754 -0
  897. data/node_modules/rtl-css-js/CHANGELOG.md +5 -0
  898. data/node_modules/rtl-css-js/LICENSE +20 -0
  899. data/node_modules/rtl-css-js/README.md +205 -0
  900. data/node_modules/rtl-css-js/core/package.json +6 -0
  901. data/node_modules/rtl-css-js/core.d.ts +163 -0
  902. data/node_modules/rtl-css-js/core.esm.d.ts +1 -0
  903. data/node_modules/rtl-css-js/core.esm.js +9 -0
  904. data/node_modules/rtl-css-js/dist/cjs/convert-a10c80e3.js +509 -0
  905. data/node_modules/rtl-css-js/dist/cjs/core.js +30 -0
  906. data/node_modules/rtl-css-js/dist/cjs/index.js +7 -0
  907. data/node_modules/rtl-css-js/dist/esm/convert-09159978.js +487 -0
  908. data/node_modules/rtl-css-js/dist/esm/core.js +1 -0
  909. data/node_modules/rtl-css-js/dist/esm/index.js +5 -0
  910. data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.js +519 -0
  911. data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.js.map +1 -0
  912. data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.min.js +2 -0
  913. data/node_modules/rtl-css-js/dist/rtl-css-js.core.umd.min.js.map +1 -0
  914. data/node_modules/rtl-css-js/dist/rtl-css-js.umd.js +496 -0
  915. data/node_modules/rtl-css-js/dist/rtl-css-js.umd.js.map +1 -0
  916. data/node_modules/rtl-css-js/dist/rtl-css-js.umd.min.js +2 -0
  917. data/node_modules/rtl-css-js/dist/rtl-css-js.umd.min.js.map +1 -0
  918. data/node_modules/rtl-css-js/package.json +66 -0
  919. data/node_modules/rtl-css-js/types.d.ts +8 -0
  920. data/node_modules/scheduler/LICENSE +21 -0
  921. data/node_modules/scheduler/README.md +9 -0
  922. data/node_modules/scheduler/build-info.json +8 -0
  923. data/node_modules/scheduler/cjs/scheduler-tracing.development.js +347 -0
  924. data/node_modules/scheduler/cjs/scheduler-tracing.production.min.js +9 -0
  925. data/node_modules/scheduler/cjs/scheduler-tracing.profiling.min.js +16 -0
  926. data/node_modules/scheduler/cjs/scheduler-unstable_mock.development.js +665 -0
  927. data/node_modules/scheduler/cjs/scheduler-unstable_mock.production.min.js +19 -0
  928. data/node_modules/scheduler/cjs/scheduler-unstable_post_task.development.js +206 -0
  929. data/node_modules/scheduler/cjs/scheduler-unstable_post_task.production.min.js +13 -0
  930. data/node_modules/scheduler/cjs/scheduler.development.js +646 -0
  931. data/node_modules/scheduler/cjs/scheduler.production.min.js +20 -0
  932. data/node_modules/scheduler/index.js +7 -0
  933. data/node_modules/scheduler/package.json +40 -0
  934. data/node_modules/scheduler/tracing-profiling.js +7 -0
  935. data/node_modules/scheduler/tracing.js +7 -0
  936. data/node_modules/scheduler/umd/scheduler-tracing.development.js +80 -0
  937. data/node_modules/scheduler/umd/scheduler-tracing.production.min.js +80 -0
  938. data/node_modules/scheduler/umd/scheduler-tracing.profiling.min.js +80 -0
  939. data/node_modules/scheduler/umd/scheduler-unstable_mock.development.js +664 -0
  940. data/node_modules/scheduler/umd/scheduler-unstable_mock.production.min.js +18 -0
  941. data/node_modules/scheduler/umd/scheduler.development.js +152 -0
  942. data/node_modules/scheduler/umd/scheduler.production.min.js +146 -0
  943. data/node_modules/scheduler/umd/scheduler.profiling.min.js +146 -0
  944. data/node_modules/scheduler/unstable_mock.js +7 -0
  945. data/node_modules/scheduler/unstable_post_task.js +7 -0
  946. data/node_modules/source-map/CHANGELOG.md +301 -0
  947. data/node_modules/source-map/LICENSE +28 -0
  948. data/node_modules/source-map/README.md +742 -0
  949. data/node_modules/source-map/dist/source-map.debug.js +3234 -0
  950. data/node_modules/source-map/dist/source-map.js +3233 -0
  951. data/node_modules/source-map/dist/source-map.min.js +2 -0
  952. data/node_modules/source-map/dist/source-map.min.js.map +1 -0
  953. data/node_modules/source-map/lib/array-set.js +121 -0
  954. data/node_modules/source-map/lib/base64-vlq.js +140 -0
  955. data/node_modules/source-map/lib/base64.js +67 -0
  956. data/node_modules/source-map/lib/binary-search.js +111 -0
  957. data/node_modules/source-map/lib/mapping-list.js +79 -0
  958. data/node_modules/source-map/lib/quick-sort.js +114 -0
  959. data/node_modules/source-map/lib/source-map-consumer.js +1145 -0
  960. data/node_modules/source-map/lib/source-map-generator.js +425 -0
  961. data/node_modules/source-map/lib/source-node.js +413 -0
  962. data/node_modules/source-map/lib/util.js +488 -0
  963. data/node_modules/source-map/package.json +73 -0
  964. data/node_modules/source-map/source-map.d.ts +98 -0
  965. data/node_modules/source-map/source-map.js +8 -0
  966. data/node_modules/sourcemap-codec/CHANGELOG.md +64 -0
  967. data/node_modules/sourcemap-codec/LICENSE +21 -0
  968. data/node_modules/sourcemap-codec/README.md +63 -0
  969. data/node_modules/sourcemap-codec/dist/sourcemap-codec.es.js +124 -0
  970. data/node_modules/sourcemap-codec/dist/sourcemap-codec.es.js.map +1 -0
  971. data/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js +135 -0
  972. data/node_modules/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
  973. data/node_modules/sourcemap-codec/dist/types/sourcemap-codec.d.ts +5 -0
  974. data/node_modules/sourcemap-codec/package.json +53 -0
  975. data/node_modules/stack-generator/.eslintrc.yml +32 -0
  976. data/node_modules/stack-generator/CHANGELOG.md +18 -0
  977. data/node_modules/stack-generator/CONTRIBUTING.md +27 -0
  978. data/node_modules/stack-generator/LICENSE +19 -0
  979. data/node_modules/stack-generator/README.md +28 -0
  980. data/node_modules/stack-generator/bower.json +33 -0
  981. data/node_modules/stack-generator/component.json +17 -0
  982. data/node_modules/stack-generator/dist/stack-generator.js +45 -0
  983. data/node_modules/stack-generator/dist/stack-generator.min.js +2 -0
  984. data/node_modules/stack-generator/dist/stack-generator.min.js.map +1 -0
  985. data/node_modules/stack-generator/karma.conf.ci.js +108 -0
  986. data/node_modules/stack-generator/karma.conf.js +26 -0
  987. data/node_modules/stack-generator/package.json +53 -0
  988. data/node_modules/stack-generator/stack-generator.js +45 -0
  989. data/node_modules/stackframe/.eslintrc.yml +29 -0
  990. data/node_modules/stackframe/CHANGELOG.md +39 -0
  991. data/node_modules/stackframe/CONTRIBUTING.md +28 -0
  992. data/node_modules/stackframe/LICENSE +19 -0
  993. data/node_modules/stackframe/README.md +78 -0
  994. data/node_modules/stackframe/bower.json +31 -0
  995. data/node_modules/stackframe/component.json +16 -0
  996. data/node_modules/stackframe/dist/stackframe.js +143 -0
  997. data/node_modules/stackframe/dist/stackframe.min.js +2 -0
  998. data/node_modules/stackframe/dist/stackframe.min.js.map +1 -0
  999. data/node_modules/stackframe/karma.conf.ci.js +105 -0
  1000. data/node_modules/stackframe/karma.conf.js +23 -0
  1001. data/node_modules/stackframe/package.json +51 -0
  1002. data/node_modules/stackframe/stackframe-tests.ts +47 -0
  1003. data/node_modules/stackframe/stackframe.d.ts +74 -0
  1004. data/node_modules/stackframe/stackframe.js +143 -0
  1005. data/node_modules/stacktrace-gps/CHANGELOG.md +60 -0
  1006. data/node_modules/stacktrace-gps/LICENSE +19 -0
  1007. data/node_modules/stacktrace-gps/README.md +89 -0
  1008. data/node_modules/stacktrace-gps/dist/polyfills.js +5 -0
  1009. data/node_modules/stacktrace-gps/dist/stacktrace-gps-with-polyfills.min.js +2 -0
  1010. data/node_modules/stacktrace-gps/dist/stacktrace-gps-with-polyfills.min.js.map +1 -0
  1011. data/node_modules/stacktrace-gps/dist/stacktrace-gps.js +342 -0
  1012. data/node_modules/stacktrace-gps/dist/stacktrace-gps.min.js +2 -0
  1013. data/node_modules/stacktrace-gps/dist/stacktrace-gps.min.js.map +1 -0
  1014. data/node_modules/stacktrace-gps/node_modules/source-map/CHANGELOG.md +301 -0
  1015. data/node_modules/stacktrace-gps/node_modules/source-map/LICENSE +28 -0
  1016. data/node_modules/stacktrace-gps/node_modules/source-map/README.md +729 -0
  1017. data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.debug.js +3056 -0
  1018. data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.js +3055 -0
  1019. data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.min.js +2 -0
  1020. data/node_modules/stacktrace-gps/node_modules/source-map/dist/source-map.min.js.map +1 -0
  1021. data/node_modules/stacktrace-gps/node_modules/source-map/lib/array-set.js +104 -0
  1022. data/node_modules/stacktrace-gps/node_modules/source-map/lib/base64-vlq.js +140 -0
  1023. data/node_modules/stacktrace-gps/node_modules/source-map/lib/base64.js +67 -0
  1024. data/node_modules/stacktrace-gps/node_modules/source-map/lib/binary-search.js +111 -0
  1025. data/node_modules/stacktrace-gps/node_modules/source-map/lib/mapping-list.js +79 -0
  1026. data/node_modules/stacktrace-gps/node_modules/source-map/lib/quick-sort.js +114 -0
  1027. data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-map-consumer.js +1082 -0
  1028. data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-map-generator.js +404 -0
  1029. data/node_modules/stacktrace-gps/node_modules/source-map/lib/source-node.js +407 -0
  1030. data/node_modules/stacktrace-gps/node_modules/source-map/lib/util.js +417 -0
  1031. data/node_modules/stacktrace-gps/node_modules/source-map/package.json +71 -0
  1032. data/node_modules/stacktrace-gps/node_modules/source-map/source-map.js +8 -0
  1033. data/node_modules/stacktrace-gps/package.json +66 -0
  1034. data/node_modules/stacktrace-gps/stacktrace-gps.js +342 -0
  1035. data/node_modules/stacktrace-js/CHANGELOG.md +97 -0
  1036. data/node_modules/stacktrace-js/LICENSE +19 -0
  1037. data/node_modules/stacktrace-js/README.md +186 -0
  1038. data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.js +5405 -0
  1039. data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.min.js +3 -0
  1040. data/node_modules/stacktrace-js/dist/stacktrace-with-promises-and-json-polyfills.min.js.map +1 -0
  1041. data/node_modules/stacktrace-js/dist/stacktrace.js +3025 -0
  1042. data/node_modules/stacktrace-js/dist/stacktrace.min.js +2 -0
  1043. data/node_modules/stacktrace-js/dist/stacktrace.min.js.map +1 -0
  1044. data/node_modules/stacktrace-js/package.json +82 -0
  1045. data/node_modules/stacktrace-js/stacktrace-js.d.ts +134 -0
  1046. data/node_modules/stacktrace-js/stacktrace.js +227 -0
  1047. data/node_modules/stylis/LICENSE +21 -0
  1048. data/node_modules/stylis/README.md +152 -0
  1049. data/node_modules/stylis/dist/stylis.mjs +2 -0
  1050. data/node_modules/stylis/dist/stylis.mjs.map +1 -0
  1051. data/node_modules/stylis/dist/umd/package.json +1 -0
  1052. data/node_modules/stylis/dist/umd/stylis.js +2 -0
  1053. data/node_modules/stylis/dist/umd/stylis.js.map +1 -0
  1054. data/node_modules/stylis/index.js +7 -0
  1055. data/node_modules/stylis/package.json +164 -0
  1056. data/node_modules/stylis/src/Enum.js +20 -0
  1057. data/node_modules/stylis/src/Middleware.js +107 -0
  1058. data/node_modules/stylis/src/Parser.js +184 -0
  1059. data/node_modules/stylis/src/Prefixer.js +119 -0
  1060. data/node_modules/stylis/src/Serializer.js +34 -0
  1061. data/node_modules/stylis/src/Tokenizer.js +244 -0
  1062. data/node_modules/stylis/src/Utility.js +109 -0
  1063. data/node_modules/wouter-preact/cjs/index.js +180 -0
  1064. data/node_modules/wouter-preact/cjs/matcher.js +72 -0
  1065. data/node_modules/wouter-preact/cjs/package.json +1 -0
  1066. data/node_modules/wouter-preact/cjs/react-deps.js +75 -0
  1067. data/node_modules/wouter-preact/cjs/static-location.js +21 -0
  1068. data/node_modules/wouter-preact/cjs/use-location.js +94 -0
  1069. data/node_modules/wouter-preact/index.d.ts +110 -0
  1070. data/node_modules/wouter-preact/index.js +178 -0
  1071. data/node_modules/wouter-preact/matcher.d.ts +30 -0
  1072. data/node_modules/wouter-preact/matcher.js +66 -0
  1073. data/node_modules/wouter-preact/package.json +33 -0
  1074. data/node_modules/wouter-preact/react-deps.js +15 -0
  1075. data/node_modules/wouter-preact/static-location.d.ts +16 -0
  1076. data/node_modules/wouter-preact/static-location.js +17 -0
  1077. data/node_modules/wouter-preact/use-location.d.ts +43 -0
  1078. data/node_modules/wouter-preact/use-location.js +86 -0
  1079. data/package.json +10 -0
  1080. metadata +1093 -20
@@ -0,0 +1,5 @@
1
+ # CHANGELOG
2
+
3
+ The changelog is automatically updated using
4
+ [semantic-release](https://github.com/semantic-release/semantic-release). You
5
+ can see it on the [releases page](../releases).
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+ Copyright (c) 2017 Kent C. Dodds
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
@@ -0,0 +1,205 @@
1
+ # rtl-css-js
2
+
3
+ RTL conversion for CSS in JS objects
4
+
5
+ <!-- prettier-ignore-start -->
6
+ [![Build Status][build-badge]][build]
7
+ [![Code Coverage][coverage-badge]][coverage]
8
+ [![version][version-badge]][package]
9
+ [![downloads][downloads-badge]][npmtrends]
10
+ [![MIT License][license-badge]][license]
11
+ [![All Contributors][all-contributors-badge]](#contributors-)
12
+ [![PRs Welcome][prs-badge]][prs]
13
+ [![Code of Conduct][coc-badge]][coc]
14
+ <!-- prettier-ignore-end -->
15
+
16
+ ## The problem
17
+
18
+ For some locales, it's necessary to change `padding-left` to `padding-right`
19
+ when your text direction is right to left. There are tools like this for CSS
20
+ ([`cssjanus`](https://github.com/cssjanus/cssjanus) for example) which
21
+ manipulate strings of CSS to do this, but none for CSS in JS where your CSS is
22
+ represented by an object.
23
+
24
+ ## This solution
25
+
26
+ This is a function which accepts a CSS in JS object and can convert
27
+ `padding-left` to `padding-right` as well as all other properties where it makes
28
+ sense to do that (at least, that's what it's going to be when it's done... This
29
+ is a work in progress).
30
+
31
+ ## Table of Contentss
32
+
33
+ <!-- START doctoc generated TOC please keep comment here to allow auto update -->
34
+ <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
35
+
36
+ - [Installation](#installation)
37
+ - [Usage](#usage)
38
+ - [kebab-case](#kebab-case)
39
+ - [core](#core)
40
+ - [Caveats](#caveats)
41
+ - [`background`](#background)
42
+ - [Inspiration](#inspiration)
43
+ - [Ecosystem](#ecosystem)
44
+ - [Other Solutions](#other-solutions)
45
+ - [Contributors](#contributors)
46
+ - [LICENSE](#license)
47
+
48
+ <!-- END doctoc generated TOC please keep comment here to allow auto update -->
49
+
50
+ ## Installation
51
+
52
+ This module is distributed via [npm][npm] which is bundled with [node][node] and
53
+ should be installed as one of your project's `dependencies`:
54
+
55
+ ```
56
+ npm install --save rtl-css-js
57
+ ```
58
+
59
+ ## Usage
60
+
61
+ This module is exposed via [CommonJS](http://wiki.commonjs.org/wiki/CommonJS) as
62
+ well as [UMD](https://github.com/umdjs/umd) with the global as `rtlCSSJS`
63
+
64
+ CommonJS:
65
+
66
+ ```javascript
67
+ const rtlCSSJS = require('rtl-css-js')
68
+ const styles = rtlCSSJS({paddingLeft: 23})
69
+ console.log(styles) // logs {paddingRight: 23}
70
+ ```
71
+
72
+ You can also just include a script tag in your browser and use the `rtlCSSJS`
73
+ variable:
74
+
75
+ ```html
76
+ <script src="https://unpkg.com/rtl-css-js"></script>
77
+ <script>
78
+ const styles = rtlCSSJS({paddingRight: 23})
79
+ console.log(styles) // logs {paddingLeft: 23}
80
+ </script>
81
+ ```
82
+
83
+ You can also control which rules you don't want to flip by adding a
84
+ `/* @noflip */` CSS comment to your rule
85
+
86
+ ```javascript
87
+ const rtlCSSJS = require('rtl-css-js')
88
+ const styles = rtlCSSJS({paddingLeft: '20px /* @noflip */'})
89
+ console.log(styles) // logs {paddingLeft: '20px /* @noflip */' }
90
+ ```
91
+
92
+ ### kebab-case
93
+
94
+ This library support kebab-case properties too.
95
+
96
+ ```javascript
97
+ const rtlCSSJS = require('rtl-css-js')
98
+ const styles = rtlCSSJS({'padding-right': 23})
99
+ console.log(styles) // logs {'padding-left': 23}
100
+ ```
101
+
102
+ ### core
103
+
104
+ `rtl-css-js` also exposes its internal helpers and utilities so you can deal
105
+ with [certain scenarios](https://github.com/kentcdodds/rtl-css-js/pull/22)
106
+ yourself. To use these you can use the `rtlCSSJSCore` global with the UMD build,
107
+ `require('rtl-css-js/core')`, or use
108
+ `import {propertyValueConverters, arrayToObject} from 'rtl-css-js/core'`.
109
+
110
+ You can import anything that's exported from `src/core`. Please see the code
111
+ comments for documentation on how to use these.
112
+
113
+ ## Caveats
114
+
115
+ ### `background`
116
+
117
+ Right now `background` and `backgroundImage` just replace all instances of `ltr`
118
+ with `rtl` and `right` with `left`. This is so you can have a different image
119
+ for your LTR and RTL, and in order to flip linear gradients. Note that this is
120
+ case sensitive! Must be lower case. Note also that it _will not_ change `bright`
121
+ to `bleft`. It's a _little_ smarter than that. But this is definitely something
122
+ to consider with your URLs.
123
+
124
+ ## Inspiration
125
+
126
+ [CSSJanus](https://github.com/cssjanus/cssjanus) was a major inspiration.
127
+
128
+ ## Ecosystem
129
+
130
+ - **[react-with-styles-interface-aphrodite](https://github.com/airbnb/react-with-styles-interface-aphrodite):**
131
+ An interface to use
132
+ [`react-with-styles`](https://github.com/airbnb/react-with-styles) with
133
+ [Aphrodite](https://github.com/khan/aphrodite)
134
+ - **[fela-plugin-rtl](https://www.npmjs.com/package/fela-plugin-rtl):** A plugin
135
+ for [fela](http://fela.js.org/) that uses rtl-css-js to convert a style object
136
+ to its right-to-left counterpart
137
+ - **[bidi-css-js](https://github.com/TxHawks/bidi-css-js):** A library for
138
+ authoring flow-relative css, which uses `rtl-css-js`'s core.
139
+ - **[jss-rtl](https://github.com/alitaheri/jss-rtl):** A plugin for
140
+ [`jss`](https://github.com/cssinjs/jss) to support flipping styles
141
+ dynamically.
142
+
143
+ ## Other Solutions
144
+
145
+ I'm not aware of any, if you are please
146
+ [make a pull request](http://makeapullrequest.com) and add it here!
147
+
148
+ ## Contributors
149
+
150
+ Thanks goes to these people ([emoji key][emojis]):
151
+
152
+ <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
153
+ <!-- prettier-ignore-start -->
154
+ <!-- markdownlint-disable -->
155
+ <table>
156
+ <tr>
157
+ <td align="center"><a href="https://kentcdodds.com"><img src="https://avatars.githubusercontent.com/u/1500684?v=3?s=100" width="100px;" alt=""/><br /><sub><b>Kent C. Dodds</b></sub></a><br /><a href="https://github.com/kentcdodds/rtl-css-js/commits?author=kentcdodds" title="Code">💻</a> <a href="https://github.com/kentcdodds/rtl-css-js/commits?author=kentcdodds" title="Tests">⚠️</a> <a href="#infra-kentcdodds" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
158
+ <td align="center"><a href="https://gabri.me"><img src="https://avatars.githubusercontent.com/u/63876?v=3?s=100" width="100px;" alt=""/><br /><sub><b>Ahmed El Gabri</b></sub></a><br /><a href="https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri" title="Code">💻</a> <a href="https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri" title="Documentation">📖</a> <a href="https://github.com/kentcdodds/rtl-css-js/commits?author=ahmedelgabri" title="Tests">⚠️</a></td>
159
+ <td align="center"><a href="https://github.com/majapw"><img src="https://avatars1.githubusercontent.com/u/1383861?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Maja Wichrowska</b></sub></a><br /><a href="https://github.com/kentcdodds/rtl-css-js/commits?author=majapw" title="Code">💻</a> <a href="https://github.com/kentcdodds/rtl-css-js/commits?author=majapw" title="Tests">⚠️</a></td>
160
+ <td align="center"><a href="https://github.com/yzimet"><img src="https://avatars2.githubusercontent.com/u/6600720?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yaniv</b></sub></a><br /><a href="https://github.com/kentcdodds/rtl-css-js/commits?author=yzimet" title="Code">💻</a> <a href="https://github.com/kentcdodds/rtl-css-js/commits?author=yzimet" title="Tests">⚠️</a></td>
161
+ <td align="center"><a href="https://github.com/TxHawks"><img src="https://avatars2.githubusercontent.com/u/5658514?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jonathan Pollak</b></sub></a><br /><a href="https://github.com/kentcdodds/rtl-css-js/commits?author=TxHawks" title="Code">💻</a> <a href="https://github.com/kentcdodds/rtl-css-js/commits?author=TxHawks" title="Tests">⚠️</a></td>
162
+ <td align="center"><a href="https://github.com/alitaheri"><img src="https://avatars1.githubusercontent.com/u/8528759?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ali Taheri Moghaddar</b></sub></a><br /><a href="https://github.com/kentcdodds/rtl-css-js/commits?author=alitaheri" title="Code">💻</a> <a href="https://github.com/kentcdodds/rtl-css-js/commits?author=alitaheri" title="Documentation">📖</a> <a href="https://github.com/kentcdodds/rtl-css-js/commits?author=alitaheri" title="Tests">⚠️</a></td>
163
+ <td align="center"><a href="https://github.com/garrettberg"><img src="https://avatars0.githubusercontent.com/u/844459?v=4?s=100" width="100px;" alt=""/><br /><sub><b>garrettberg</b></sub></a><br /><a href="https://github.com/kentcdodds/rtl-css-js/commits?author=garrettberg" title="Code">💻</a> <a href="https://github.com/kentcdodds/rtl-css-js/commits?author=garrettberg" title="Tests">⚠️</a></td>
164
+ </tr>
165
+ <tr>
166
+ <td align="center"><a href="http://milesj.me"><img src="https://avatars2.githubusercontent.com/u/143744?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Miles Johnson</b></sub></a><br /><a href="https://github.com/kentcdodds/rtl-css-js/commits?author=milesj" title="Code">💻</a> <a href="https://github.com/kentcdodds/rtl-css-js/commits?author=milesj" title="Tests">⚠️</a></td>
167
+ <td align="center"><a href="https://www.kweber.com"><img src="https://avatars1.githubusercontent.com/u/2785791?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kevin Weber</b></sub></a><br /><a href="https://github.com/kentcdodds/rtl-css-js/commits?author=kevinweber" title="Code">💻</a></td>
168
+ <td align="center"><a href="https://stackshare.io/jdorfman/decisions"><img src="https://avatars1.githubusercontent.com/u/398230?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Justin Dorfman</b></sub></a><br /><a href="#fundingFinding-jdorfman" title="Funding Finding">🔍</a></td>
169
+ <td align="center"><a href="https://github.com/RoystonS"><img src="https://avatars0.githubusercontent.com/u/19773?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Royston Shufflebotham</b></sub></a><br /><a href="https://github.com/kentcdodds/rtl-css-js/issues?q=author%3ARoystonS" title="Bug reports">🐛</a> <a href="https://github.com/kentcdodds/rtl-css-js/commits?author=RoystonS" title="Code">💻</a> <a href="https://github.com/kentcdodds/rtl-css-js/commits?author=RoystonS" title="Tests">⚠️</a></td>
170
+ <td align="center"><a href="https://twitter.com/layershifter"><img src="https://avatars.githubusercontent.com/u/14183168?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Oleksandr Fediashov</b></sub></a><br /><a href="https://github.com/kentcdodds/rtl-css-js/commits?author=layershifter" title="Code">💻</a></td>
171
+ </tr>
172
+ </table>
173
+
174
+ <!-- markdownlint-restore -->
175
+ <!-- prettier-ignore-end -->
176
+
177
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
178
+
179
+ This project follows the [all-contributors][all-contributors] specification.
180
+ Contributions of any kind welcome!
181
+
182
+ ## LICENSE
183
+
184
+ MIT
185
+
186
+ <!-- prettier-ignore-start -->
187
+ [npm]: https://www.npmjs.com/
188
+ [node]: https://nodejs.org
189
+ [build-badge]: https://img.shields.io/github/workflow/status/kentcdodds/rtl-css-js/validate?logo=github&style=flat-square
190
+ [build]: https://github.com/kentcdodds/rtl-css-js/actions?query=workflow%3Avalidate
191
+ [coverage-badge]: https://img.shields.io/codecov/c/github/kentcdodds/rtl-css-js.svg?style=flat-square
192
+ [coverage]: https://codecov.io/github/kentcdodds/rtl-css-js
193
+ [version-badge]: https://img.shields.io/npm/v/rtl-css-js.svg?style=flat-square
194
+ [package]: https://www.npmjs.com/package/rtl-css-js
195
+ [downloads-badge]: https://img.shields.io/npm/dm/mdx-bundler.svg?style=flat-square
196
+ [npmtrends]: https://www.npmtrends.com/mdx-bundler
197
+ [license-badge]: https://img.shields.io/npm/l/rtl-css-js.svg?style=flat-square
198
+ [license]: https://github.com/kentcdodds/rtl-css-js/blob/main/other/LICENSE
199
+ [prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
200
+ [prs]: http://makeapullrequest.com
201
+ [coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
202
+ [coc]: https://github.com/kentcdodds/rtl-css-js/blob/main/other/CODE_OF_CONDUCT.md
203
+ [emojis]: https://github.com/kentcdodds/all-contributors#emoji-key
204
+ [all-contributors]: https://github.com/kentcdodds/all-contributors
205
+ <!-- prettier-ignore-end -->
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/core.js",
3
+ "jsnext:main": "../dist/esm/core.js",
4
+ "module": "../dist/esm/core.js",
5
+ "types": "../core.d.ts"
6
+ }
@@ -0,0 +1,163 @@
1
+ export declare type PropertyValue = string | number | object
2
+
3
+ export declare interface CommonConverterOptions {
4
+ value: string
5
+ }
6
+
7
+ export declare interface BackgroundConverterOptions {
8
+ value: string
9
+ valuesToConvert: {[source: string]: string}
10
+ isRtl: boolean
11
+ bgImgDirectionRegex: RegExp
12
+ bgPosDirectionRegex: RegExp
13
+ }
14
+
15
+ export declare interface BackgroundImageConverterOptions {
16
+ value: string
17
+ valuesToConvert: {[source: string]: string}
18
+ bgImgDirectionRegex: RegExp
19
+ }
20
+
21
+ export declare interface BackgroundPositionConverterOptions {
22
+ value: string
23
+ valuesToConvert: {[source: string]: string}
24
+ isRtl: boolean
25
+ bgPosDirectionRegex: RegExp
26
+ }
27
+
28
+ export declare interface PropertyValueConverter<
29
+ O extends CommonConverterOptions = CommonConverterOptions
30
+ > {
31
+ (options: O): string
32
+ }
33
+
34
+ export declare interface PropertyValueConverters {
35
+ padding: PropertyValueConverter
36
+ textShadow: PropertyValueConverter
37
+ borderColor: PropertyValueConverter
38
+ borderRadius: PropertyValueConverter
39
+ background: PropertyValueConverter<BackgroundConverterOptions>
40
+ backgroundImage: PropertyValueConverter<BackgroundImageConverterOptions>
41
+ backgroundPosition: PropertyValueConverter<BackgroundPositionConverterOptions>
42
+ backgroundPositionX: PropertyValueConverter<
43
+ BackgroundPositionConverterOptions
44
+ >
45
+ objectPosition: PropertyValueConverter<BackgroundPositionConverterOptions>
46
+ transform: PropertyValueConverter
47
+ margin: PropertyValueConverter
48
+ borderWidth: PropertyValueConverter
49
+ boxShadow: PropertyValueConverter
50
+ webkitBoxShadow: PropertyValueConverter
51
+ mozBoxShadow: PropertyValueConverter
52
+ borderStyle: PropertyValueConverter
53
+ webkitTransform: PropertyValueConverter
54
+ mozTransform: PropertyValueConverter
55
+ 'text-shadow': PropertyValueConverter
56
+ 'border-color': PropertyValueConverter
57
+ 'border-radius': PropertyValueConverter
58
+ 'background-image': PropertyValueConverter<BackgroundImageConverterOptions>
59
+ 'background-position': PropertyValueConverter<
60
+ BackgroundPositionConverterOptions
61
+ >
62
+ 'background-position-x': PropertyValueConverter<
63
+ BackgroundPositionConverterOptions
64
+ >
65
+ 'object-position': PropertyValueConverter<
66
+ BackgroundPositionConverterOptions
67
+ >
68
+ 'border-width': PropertyValueConverter
69
+ 'box-shadow': PropertyValueConverter
70
+ '-webkit-box-shadow': PropertyValueConverter
71
+ '-moz-box-shadow': PropertyValueConverter
72
+ 'border-style': PropertyValueConverter
73
+ '-webkit-transform': PropertyValueConverter
74
+ '-moz-transform': PropertyValueConverter
75
+ }
76
+
77
+ export declare const propertyValueConverters: PropertyValueConverters
78
+
79
+ /**
80
+ * Takes an array of [keyValue1, keyValue2] pairs and creates an object of {keyValue1: keyValue2, keyValue2: keyValue1}
81
+ * @param {Array} array the array of pairs
82
+ * @return {Object} the {key, value} pair object
83
+ */
84
+ export declare function arrayToObject(
85
+ array: string[][],
86
+ ): {[source: string]: string}
87
+
88
+ /**
89
+ * Flip the sign of a CSS value, possibly with a unit.
90
+ *
91
+ * We can't just negate the value with unary minus due to the units.
92
+ *
93
+ * @private
94
+ * @param {String} value - the original value (for example 77%)
95
+ * @return {String} the result (for example -77%)
96
+ */
97
+ export declare function flipSign(value: string): string
98
+
99
+ /**
100
+ * Takes a percentage for background position and inverts it.
101
+ * This was copied and modified from CSSJanus:
102
+ * https://github.com/cssjanus/cssjanus/blob/4245f834365f6cfb0239191a151432fb85abab23/src/cssjanus.js#L152-L175
103
+ * @param {String} value - the original value (for example 77%)
104
+ * @return {String} the result (for example 23%)
105
+ */
106
+ export declare function calculateNewBackgroundPosition(value: string): string
107
+
108
+ /**
109
+ * This takes a list of CSS values and converts it to an array
110
+ * @param {String} value - something like `1px`, `1px 2em`, or `3pt rgb(150, 230, 550) 40px calc(100% - 5px)`
111
+ * @return {Array} the split values (for example: `['3pt', 'rgb(150, 230, 550)', '40px', 'calc(100% - 5px)']`)
112
+ */
113
+ export declare function getValuesAsList(value: string): string[]
114
+
115
+ /**
116
+ * This is intended for properties that are `top right bottom left` and will switch them to `top left bottom right`
117
+ * @param {String} value - `1px 2px 3px 4px` for example, but also handles cases where there are too few/too many and
118
+ * simply returns the value in those cases (which is the correct behavior)
119
+ * @return {String} the result - `1px 4px 3px 2px` for example.
120
+ */
121
+ export declare function handleQuartetValues(value: string): string
122
+
123
+ export declare const propertiesToConvert: {[key: string]: string}
124
+
125
+ export declare const valuesToConvert: {[key: string]: string}
126
+
127
+ export declare const propsToIgnore: string[]
128
+
129
+ /**
130
+ * converts properties and values in the CSS in JS object to their corresponding RTL values
131
+ * @param {Object} object the CSS in JS object
132
+ * @return {Object} the RTL converted object
133
+ */
134
+ export declare function convert<T extends object = object>(o: T): T
135
+
136
+ /**
137
+ * Converts a property and its value to the corresponding RTL key and value
138
+ * @param {String} originalKey the original property key
139
+ * @param {Number|String|Object} originalValue the original css property value
140
+ * @return {Object} the new {key, value} pair
141
+ */
142
+ export declare function convertProperty<V extends PropertyValue>(
143
+ originalKey: string,
144
+ originalValue: V,
145
+ ): {key: string; value: V}
146
+
147
+ /**
148
+ * This gets the RTL version of the given property if it has a corresponding RTL property
149
+ * @param {String} property the name of the property
150
+ * @return {String} the name of the RTL property
151
+ */
152
+ export declare function getPropertyDoppelganger(property: string): string
153
+
154
+ /**
155
+ * This converts the given value to the RTL version of that value based on the key
156
+ * @param {String} key this is the key (note: this should be the RTL version of the originalKey)
157
+ * @param {String|Number|Object} originalValue the original css property value. If it's an object, then we'll convert that as well
158
+ * @return {String|Number|Object} the converted value
159
+ */
160
+ export declare function getValueDoppelganger<V extends PropertyValue>(
161
+ key: string,
162
+ originalValue: V,
163
+ ): V
@@ -0,0 +1 @@
1
+ export * from './core'
@@ -0,0 +1,9 @@
1
+ /* eslint import/no-unresolved:0 */
2
+ if (process.env.NODE_ENV !== 'production') {
3
+ // eslint-disable-next-line no-console
4
+ console.warn(
5
+ 'Importing `rtl-css-js/core.esm` is deprecated, please use `rtl-css-js/core`.',
6
+ )
7
+ }
8
+ // eslint-disable-next-line import/extensions
9
+ export * from './dist/esm/core.js'
@@ -0,0 +1,509 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Takes an array of [keyValue1, keyValue2] pairs and creates an object of {keyValue1: keyValue2, keyValue2: keyValue1}
5
+ * @param {Array} array the array of pairs
6
+ * @return {Object} the {key, value} pair object
7
+ */
8
+ function arrayToObject(array) {
9
+ return array.reduce(function (obj, _ref) {
10
+ var prop1 = _ref[0],
11
+ prop2 = _ref[1];
12
+ obj[prop1] = prop2;
13
+ obj[prop2] = prop1;
14
+ return obj;
15
+ }, {});
16
+ }
17
+
18
+ function isBoolean(val) {
19
+ return typeof val === 'boolean';
20
+ }
21
+
22
+ function isFunction(val) {
23
+ return typeof val === 'function';
24
+ }
25
+
26
+ function isNumber(val) {
27
+ return typeof val === 'number';
28
+ }
29
+
30
+ function isNullOrUndefined(val) {
31
+ return val === null || typeof val === 'undefined';
32
+ }
33
+
34
+ function isObject(val) {
35
+ return val && typeof val === 'object';
36
+ }
37
+
38
+ function isString(val) {
39
+ return typeof val === 'string';
40
+ }
41
+
42
+ function includes(inclusive, inclusee) {
43
+ return inclusive.indexOf(inclusee) !== -1;
44
+ }
45
+ /**
46
+ * Flip the sign of a CSS value, possibly with a unit.
47
+ *
48
+ * We can't just negate the value with unary minus due to the units.
49
+ *
50
+ * @private
51
+ * @param {String} value - the original value (for example 77%)
52
+ * @return {String} the result (for example -77%)
53
+ */
54
+
55
+
56
+ function flipSign(value) {
57
+ if (parseFloat(value) === 0) {
58
+ // Don't mangle zeroes
59
+ return value;
60
+ }
61
+
62
+ if (value[0] === '-') {
63
+ return value.slice(1);
64
+ }
65
+
66
+ return "-" + value;
67
+ }
68
+
69
+ function flipTransformSign(match, prefix, offset, suffix) {
70
+ return prefix + flipSign(offset) + suffix;
71
+ }
72
+ /**
73
+ * Takes a percentage for background position and inverts it.
74
+ * This was copied and modified from CSSJanus:
75
+ * https://github.com/cssjanus/cssjanus/blob/4245f834365f6cfb0239191a151432fb85abab23/src/cssjanus.js#L152-L175
76
+ * @param {String} value - the original value (for example 77%)
77
+ * @return {String} the result (for example 23%)
78
+ */
79
+
80
+
81
+ function calculateNewBackgroundPosition(value) {
82
+ var idx = value.indexOf('.');
83
+
84
+ if (idx === -1) {
85
+ value = 100 - parseFloat(value) + "%";
86
+ } else {
87
+ // Two off, one for the "%" at the end, one for the dot itself
88
+ var len = value.length - idx - 2;
89
+ value = 100 - parseFloat(value);
90
+ value = value.toFixed(len) + "%";
91
+ }
92
+
93
+ return value;
94
+ }
95
+ /**
96
+ * This takes a list of CSS values and converts it to an array
97
+ * @param {String} value - something like `1px`, `1px 2em`, or `3pt rgb(150, 230, 550) 40px calc(100% - 5px)`
98
+ * @return {Array} the split values (for example: `['3pt', 'rgb(150, 230, 550)', '40px', 'calc(100% - 5px)']`)
99
+ */
100
+
101
+
102
+ function getValuesAsList(value) {
103
+ return value.replace(/ +/g, ' ') // remove all extraneous spaces
104
+ .split(' ').map(function (i) {
105
+ return i.trim();
106
+ }) // get rid of extra space before/after each item
107
+ .filter(Boolean) // get rid of empty strings
108
+ // join items which are within parenthese
109
+ // luckily `calc (100% - 5px)` is invalid syntax and it must be `calc(100% - 5px)`, otherwise this would be even more complex
110
+ .reduce(function (_ref2, item) {
111
+ var list = _ref2.list,
112
+ state = _ref2.state;
113
+ var openParansCount = (item.match(/\(/g) || []).length;
114
+ var closedParansCount = (item.match(/\)/g) || []).length;
115
+
116
+ if (state.parensDepth > 0) {
117
+ list[list.length - 1] = list[list.length - 1] + " " + item;
118
+ } else {
119
+ list.push(item);
120
+ }
121
+
122
+ state.parensDepth += openParansCount - closedParansCount;
123
+ return {
124
+ list: list,
125
+ state: state
126
+ };
127
+ }, {
128
+ list: [],
129
+ state: {
130
+ parensDepth: 0
131
+ }
132
+ }).list;
133
+ }
134
+ /**
135
+ * This is intended for properties that are `top right bottom left` and will switch them to `top left bottom right`
136
+ * @param {String} value - `1px 2px 3px 4px` for example, but also handles cases where there are too few/too many and
137
+ * simply returns the value in those cases (which is the correct behavior)
138
+ * @return {String} the result - `1px 4px 3px 2px` for example.
139
+ */
140
+
141
+
142
+ function handleQuartetValues(value) {
143
+ var splitValues = getValuesAsList(value);
144
+
145
+ if (splitValues.length <= 3 || splitValues.length > 4) {
146
+ return value;
147
+ }
148
+
149
+ var top = splitValues[0],
150
+ right = splitValues[1],
151
+ bottom = splitValues[2],
152
+ left = splitValues[3];
153
+ return [top, left, bottom, right].join(' ');
154
+ }
155
+
156
+ var propertyValueConverters = {
157
+ padding: function padding(_ref) {
158
+ var value = _ref.value;
159
+
160
+ if (isNumber(value)) {
161
+ return value;
162
+ }
163
+
164
+ return handleQuartetValues(value);
165
+ },
166
+ textShadow: function textShadow(_ref2) {
167
+ var value = _ref2.value;
168
+ // intentionally leaving off the `g` flag here because we only want to change the first number (which is the offset-x)
169
+ return value.replace(/(-*)([.|\d]+)/, function (match, negative, number) {
170
+ if (number === '0') {
171
+ return match;
172
+ }
173
+
174
+ var doubleNegative = negative === '' ? '-' : '';
175
+ return "" + doubleNegative + number;
176
+ });
177
+ },
178
+ borderColor: function borderColor(_ref3) {
179
+ var value = _ref3.value;
180
+ return handleQuartetValues(value);
181
+ },
182
+ borderRadius: function borderRadius(_ref4) {
183
+ var value = _ref4.value;
184
+
185
+ if (isNumber(value)) {
186
+ return value;
187
+ }
188
+
189
+ if (includes(value, '/')) {
190
+ var _value$split = value.split('/'),
191
+ radius1 = _value$split[0],
192
+ radius2 = _value$split[1];
193
+
194
+ var convertedRadius1 = propertyValueConverters.borderRadius({
195
+ value: radius1.trim()
196
+ });
197
+ var convertedRadius2 = propertyValueConverters.borderRadius({
198
+ value: radius2.trim()
199
+ });
200
+ return convertedRadius1 + " / " + convertedRadius2;
201
+ }
202
+
203
+ var splitValues = getValuesAsList(value);
204
+
205
+ switch (splitValues.length) {
206
+ case 2:
207
+ {
208
+ return splitValues.reverse().join(' ');
209
+ }
210
+
211
+ case 4:
212
+ {
213
+ var topLeft = splitValues[0],
214
+ topRight = splitValues[1],
215
+ bottomRight = splitValues[2],
216
+ bottomLeft = splitValues[3];
217
+ return [topRight, topLeft, bottomLeft, bottomRight].join(' ');
218
+ }
219
+
220
+ default:
221
+ {
222
+ return value;
223
+ }
224
+ }
225
+ },
226
+ background: function background(_ref5) {
227
+ var value = _ref5.value,
228
+ valuesToConvert = _ref5.valuesToConvert,
229
+ isRtl = _ref5.isRtl,
230
+ bgImgDirectionRegex = _ref5.bgImgDirectionRegex,
231
+ bgPosDirectionRegex = _ref5.bgPosDirectionRegex;
232
+
233
+ if (isNumber(value)) {
234
+ return value;
235
+ } // Yeah, this is in need of a refactor 🙃...
236
+ // but this property is a tough cookie 🍪
237
+ // get the backgroundPosition out of the string by removing everything that couldn't be the backgroundPosition value
238
+
239
+
240
+ var backgroundPositionValue = value.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g, '').trim(); // replace that backgroundPosition value with the converted version
241
+
242
+ value = value.replace(backgroundPositionValue, propertyValueConverters.backgroundPosition({
243
+ value: backgroundPositionValue,
244
+ valuesToConvert: valuesToConvert,
245
+ isRtl: isRtl,
246
+ bgPosDirectionRegex: bgPosDirectionRegex
247
+ })); // do the backgroundImage value replacing on the whole value (because why not?)
248
+
249
+ return propertyValueConverters.backgroundImage({
250
+ value: value,
251
+ valuesToConvert: valuesToConvert,
252
+ bgImgDirectionRegex: bgImgDirectionRegex
253
+ });
254
+ },
255
+ backgroundImage: function backgroundImage(_ref6) {
256
+ var value = _ref6.value,
257
+ valuesToConvert = _ref6.valuesToConvert,
258
+ bgImgDirectionRegex = _ref6.bgImgDirectionRegex;
259
+
260
+ if (!includes(value, 'url(') && !includes(value, 'linear-gradient(')) {
261
+ return value;
262
+ }
263
+
264
+ return value.replace(bgImgDirectionRegex, function (match, g1, group2) {
265
+ return match.replace(group2, valuesToConvert[group2]);
266
+ });
267
+ },
268
+ backgroundPosition: function backgroundPosition(_ref7) {
269
+ var value = _ref7.value,
270
+ valuesToConvert = _ref7.valuesToConvert,
271
+ isRtl = _ref7.isRtl,
272
+ bgPosDirectionRegex = _ref7.bgPosDirectionRegex;
273
+ return value // intentionally only grabbing the first instance of this because that represents `left`
274
+ .replace(isRtl ? /^((-|\d|\.)+%)/ : null, function (match, group) {
275
+ return calculateNewBackgroundPosition(group);
276
+ }).replace(bgPosDirectionRegex, function (match) {
277
+ return valuesToConvert[match];
278
+ });
279
+ },
280
+ backgroundPositionX: function backgroundPositionX(_ref8) {
281
+ var value = _ref8.value,
282
+ valuesToConvert = _ref8.valuesToConvert,
283
+ isRtl = _ref8.isRtl,
284
+ bgPosDirectionRegex = _ref8.bgPosDirectionRegex;
285
+
286
+ if (isNumber(value)) {
287
+ return value;
288
+ }
289
+
290
+ return propertyValueConverters.backgroundPosition({
291
+ value: value,
292
+ valuesToConvert: valuesToConvert,
293
+ isRtl: isRtl,
294
+ bgPosDirectionRegex: bgPosDirectionRegex
295
+ });
296
+ },
297
+ transition: function transition(_ref9) {
298
+ var value = _ref9.value,
299
+ propertiesToConvert = _ref9.propertiesToConvert;
300
+ return value.split(/,\s*/g).map(function (transition) {
301
+ var values = transition.split(' '); // Property is always defined first
302
+
303
+ values[0] = propertiesToConvert[values[0]] || values[0];
304
+ return values.join(' ');
305
+ }).join(', ');
306
+ },
307
+ transitionProperty: function transitionProperty(_ref10) {
308
+ var value = _ref10.value,
309
+ propertiesToConvert = _ref10.propertiesToConvert;
310
+ return value.split(/,\s*/g).map(function (prop) {
311
+ return propertiesToConvert[prop] || prop;
312
+ }).join(', ');
313
+ },
314
+ transform: function transform(_ref11) {
315
+ var value = _ref11.value;
316
+ // This was copied and modified from CSSJanus:
317
+ // https://github.com/cssjanus/cssjanus/blob/4a40f001b1ba35567112d8b8e1d9d95eda4234c3/src/cssjanus.js#L152-L153
318
+ var nonAsciiPattern = "[^\\u0020-\\u007e]";
319
+ var escapePattern = "(?:" + '(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)' + "|\\\\[^\\r\\n\\f0-9a-f])";
320
+ var signedQuantPattern = "((?:-?" + ('(?:[0-9]*\\.[0-9]+|[0-9]+)' + "(?:\\s*" + '(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)' + "|" + ("-?" + ("(?:[_a-z]|" + nonAsciiPattern + "|" + escapePattern + ")") + ("(?:[_a-z0-9-]|" + nonAsciiPattern + "|" + escapePattern + ")") + "*") + ")?") + ")|(?:inherit|auto))";
321
+ var translateXRegExp = new RegExp("(translateX\\s*\\(\\s*)" + signedQuantPattern + "(\\s*\\))", 'gi');
322
+ var translateRegExp = new RegExp("(translate\\s*\\(\\s*)" + signedQuantPattern + "((?:\\s*,\\s*" + signedQuantPattern + "){0,1}\\s*\\))", 'gi');
323
+ var translate3dRegExp = new RegExp("(translate3d\\s*\\(\\s*)" + signedQuantPattern + "((?:\\s*,\\s*" + signedQuantPattern + "){0,2}\\s*\\))", 'gi');
324
+ var rotateRegExp = new RegExp("(rotate[ZY]?\\s*\\(\\s*)" + signedQuantPattern + "(\\s*\\))", 'gi');
325
+ return value.replace(translateXRegExp, flipTransformSign).replace(translateRegExp, flipTransformSign).replace(translate3dRegExp, flipTransformSign).replace(rotateRegExp, flipTransformSign);
326
+ }
327
+ };
328
+ propertyValueConverters.objectPosition = propertyValueConverters.backgroundPosition;
329
+ propertyValueConverters.margin = propertyValueConverters.padding;
330
+ propertyValueConverters.borderWidth = propertyValueConverters.padding;
331
+ propertyValueConverters.boxShadow = propertyValueConverters.textShadow;
332
+ propertyValueConverters.webkitBoxShadow = propertyValueConverters.boxShadow;
333
+ propertyValueConverters.mozBoxShadow = propertyValueConverters.boxShadow;
334
+ propertyValueConverters.WebkitBoxShadow = propertyValueConverters.boxShadow;
335
+ propertyValueConverters.MozBoxShadow = propertyValueConverters.boxShadow;
336
+ propertyValueConverters.borderStyle = propertyValueConverters.borderColor;
337
+ propertyValueConverters.webkitTransform = propertyValueConverters.transform;
338
+ propertyValueConverters.mozTransform = propertyValueConverters.transform;
339
+ propertyValueConverters.WebkitTransform = propertyValueConverters.transform;
340
+ propertyValueConverters.MozTransform = propertyValueConverters.transform;
341
+ propertyValueConverters.transformOrigin = propertyValueConverters.backgroundPosition;
342
+ propertyValueConverters.webkitTransformOrigin = propertyValueConverters.transformOrigin;
343
+ propertyValueConverters.mozTransformOrigin = propertyValueConverters.transformOrigin;
344
+ propertyValueConverters.WebkitTransformOrigin = propertyValueConverters.transformOrigin;
345
+ propertyValueConverters.MozTransformOrigin = propertyValueConverters.transformOrigin;
346
+ propertyValueConverters.webkitTransition = propertyValueConverters.transition;
347
+ propertyValueConverters.mozTransition = propertyValueConverters.transition;
348
+ propertyValueConverters.WebkitTransition = propertyValueConverters.transition;
349
+ propertyValueConverters.MozTransition = propertyValueConverters.transition;
350
+ propertyValueConverters.webkitTransitionProperty = propertyValueConverters.transitionProperty;
351
+ propertyValueConverters.mozTransitionProperty = propertyValueConverters.transitionProperty;
352
+ propertyValueConverters.WebkitTransitionProperty = propertyValueConverters.transitionProperty;
353
+ propertyValueConverters.MozTransitionProperty = propertyValueConverters.transitionProperty; // kebab-case versions
354
+
355
+ propertyValueConverters['text-shadow'] = propertyValueConverters.textShadow;
356
+ propertyValueConverters['border-color'] = propertyValueConverters.borderColor;
357
+ propertyValueConverters['border-radius'] = propertyValueConverters.borderRadius;
358
+ propertyValueConverters['background-image'] = propertyValueConverters.backgroundImage;
359
+ propertyValueConverters['background-position'] = propertyValueConverters.backgroundPosition;
360
+ propertyValueConverters['background-position-x'] = propertyValueConverters.backgroundPositionX;
361
+ propertyValueConverters['object-position'] = propertyValueConverters.objectPosition;
362
+ propertyValueConverters['border-width'] = propertyValueConverters.padding;
363
+ propertyValueConverters['box-shadow'] = propertyValueConverters.textShadow;
364
+ propertyValueConverters['-webkit-box-shadow'] = propertyValueConverters.textShadow;
365
+ propertyValueConverters['-moz-box-shadow'] = propertyValueConverters.textShadow;
366
+ propertyValueConverters['border-style'] = propertyValueConverters.borderColor;
367
+ propertyValueConverters['-webkit-transform'] = propertyValueConverters.transform;
368
+ propertyValueConverters['-moz-transform'] = propertyValueConverters.transform;
369
+ propertyValueConverters['transform-origin'] = propertyValueConverters.transformOrigin;
370
+ propertyValueConverters['-webkit-transform-origin'] = propertyValueConverters.transformOrigin;
371
+ propertyValueConverters['-moz-transform-origin'] = propertyValueConverters.transformOrigin;
372
+ propertyValueConverters['-webkit-transition'] = propertyValueConverters.transition;
373
+ propertyValueConverters['-moz-transition'] = propertyValueConverters.transition;
374
+ propertyValueConverters['transition-property'] = propertyValueConverters.transitionProperty;
375
+ propertyValueConverters['-webkit-transition-property'] = propertyValueConverters.transitionProperty;
376
+ propertyValueConverters['-moz-transition-property'] = propertyValueConverters.transitionProperty;
377
+
378
+ var propertiesToConvert = arrayToObject([['paddingLeft', 'paddingRight'], ['marginLeft', 'marginRight'], ['left', 'right'], ['borderLeft', 'borderRight'], ['borderLeftColor', 'borderRightColor'], ['borderLeftStyle', 'borderRightStyle'], ['borderLeftWidth', 'borderRightWidth'], ['borderTopLeftRadius', 'borderTopRightRadius'], ['borderBottomLeftRadius', 'borderBottomRightRadius'], // kebab-case versions
379
+ ['padding-left', 'padding-right'], ['margin-left', 'margin-right'], ['border-left', 'border-right'], ['border-left-color', 'border-right-color'], ['border-left-style', 'border-right-style'], ['border-left-width', 'border-right-width'], ['border-top-left-radius', 'border-top-right-radius'], ['border-bottom-left-radius', 'border-bottom-right-radius']]);
380
+ var propsToIgnore = ['content']; // this is the same as the propertiesToConvert except for values
381
+
382
+ var valuesToConvert = arrayToObject([['ltr', 'rtl'], ['left', 'right'], ['w-resize', 'e-resize'], ['sw-resize', 'se-resize'], ['nw-resize', 'ne-resize']]); // Sorry for the regex 😞, but basically thisis used to replace _every_ instance of
383
+ // `ltr`, `rtl`, `right`, and `left` in `backgroundimage` with the corresponding opposite.
384
+ // A situation we're accepting here:
385
+ // url('/left/right/rtl/ltr.png') will be changed to url('/right/left/ltr/rtl.png')
386
+ // Definite trade-offs here, but I think it's a good call.
387
+
388
+ var bgImgDirectionRegex = new RegExp('(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)', 'g');
389
+ var bgPosDirectionRegex = new RegExp('(left)|(right)');
390
+ /**
391
+ * converts properties and values in the CSS in JS object to their corresponding RTL values
392
+ * @param {Object} object the CSS in JS object
393
+ * @return {Object} the RTL converted object
394
+ */
395
+
396
+ function convert(object) {
397
+ return Object.keys(object).reduce(function (newObj, originalKey) {
398
+ var originalValue = object[originalKey];
399
+
400
+ if (isString(originalValue)) {
401
+ // you're welcome to later code 😺
402
+ originalValue = originalValue.trim();
403
+ } // Some properties should never be transformed
404
+
405
+
406
+ if (includes(propsToIgnore, originalKey)) {
407
+ newObj[originalKey] = originalValue;
408
+ return newObj;
409
+ }
410
+
411
+ var _convertProperty = convertProperty(originalKey, originalValue),
412
+ key = _convertProperty.key,
413
+ value = _convertProperty.value;
414
+
415
+ newObj[key] = value;
416
+ return newObj;
417
+ }, Array.isArray(object) ? [] : {});
418
+ }
419
+ /**
420
+ * Converts a property and its value to the corresponding RTL key and value
421
+ * @param {String} originalKey the original property key
422
+ * @param {Number|String|Object} originalValue the original css property value
423
+ * @return {Object} the new {key, value} pair
424
+ */
425
+
426
+ function convertProperty(originalKey, originalValue) {
427
+ var isNoFlip = /\/\*\s?@noflip\s?\*\//.test(originalValue);
428
+ var key = isNoFlip ? originalKey : getPropertyDoppelganger(originalKey);
429
+ var value = isNoFlip ? originalValue : getValueDoppelganger(key, originalValue);
430
+ return {
431
+ key: key,
432
+ value: value
433
+ };
434
+ }
435
+ /**
436
+ * This gets the RTL version of the given property if it has a corresponding RTL property
437
+ * @param {String} property the name of the property
438
+ * @return {String} the name of the RTL property
439
+ */
440
+
441
+ function getPropertyDoppelganger(property) {
442
+ return propertiesToConvert[property] || property;
443
+ }
444
+ /**
445
+ * This converts the given value to the RTL version of that value based on the key
446
+ * @param {String} key this is the key (note: this should be the RTL version of the originalKey)
447
+ * @param {String|Number|Object} originalValue the original css property value. If it's an object, then we'll convert that as well
448
+ * @return {String|Number|Object} the converted value
449
+ */
450
+
451
+ function getValueDoppelganger(key, originalValue) {
452
+ /* eslint complexity:[2, 10] */
453
+ // let's try to keep the complexity down... If we have to do this much more, let's break this up
454
+ if (isNullOrUndefined(originalValue) || isBoolean(originalValue)) {
455
+ return originalValue;
456
+ }
457
+
458
+ if (isObject(originalValue)) {
459
+ return convert(originalValue); // recurssion 🌀
460
+ }
461
+
462
+ var isNum = isNumber(originalValue);
463
+ var isFunc = isFunction(originalValue);
464
+ var importantlessValue = isNum || isFunc ? originalValue : originalValue.replace(/ !important.*?$/, '');
465
+ var isImportant = !isNum && importantlessValue.length !== originalValue.length;
466
+ var valueConverter = propertyValueConverters[key];
467
+ var newValue;
468
+
469
+ if (valueConverter) {
470
+ newValue = valueConverter({
471
+ value: importantlessValue,
472
+ valuesToConvert: valuesToConvert,
473
+ propertiesToConvert: propertiesToConvert,
474
+ isRtl: true,
475
+ bgImgDirectionRegex: bgImgDirectionRegex,
476
+ bgPosDirectionRegex: bgPosDirectionRegex
477
+ });
478
+ } else {
479
+ newValue = valuesToConvert[importantlessValue] || importantlessValue;
480
+ }
481
+
482
+ if (isImportant) {
483
+ return newValue + " !important";
484
+ }
485
+
486
+ return newValue;
487
+ }
488
+
489
+ exports.arrayToObject = arrayToObject;
490
+ exports.calculateNewBackgroundPosition = calculateNewBackgroundPosition;
491
+ exports.convert = convert;
492
+ exports.convertProperty = convertProperty;
493
+ exports.flipSign = flipSign;
494
+ exports.flipTransformSign = flipTransformSign;
495
+ exports.getPropertyDoppelganger = getPropertyDoppelganger;
496
+ exports.getValueDoppelganger = getValueDoppelganger;
497
+ exports.getValuesAsList = getValuesAsList;
498
+ exports.handleQuartetValues = handleQuartetValues;
499
+ exports.includes = includes;
500
+ exports.isBoolean = isBoolean;
501
+ exports.isFunction = isFunction;
502
+ exports.isNullOrUndefined = isNullOrUndefined;
503
+ exports.isNumber = isNumber;
504
+ exports.isObject = isObject;
505
+ exports.isString = isString;
506
+ exports.propertiesToConvert = propertiesToConvert;
507
+ exports.propertyValueConverters = propertyValueConverters;
508
+ exports.propsToIgnore = propsToIgnore;
509
+ exports.valuesToConvert = valuesToConvert;