@glodon-aiot/react-components 3.3.0-beta.14 → 3.3.0-beta.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
  2. package/dist/es/_virtual/index.mjs +4 -0
  3. package/dist/es/_virtual/index2.mjs +4 -0
  4. package/dist/es/_virtual/index3.mjs +4 -0
  5. package/dist/es/_virtual/lib.mjs +4 -0
  6. package/dist/es/_virtual/prism-core.mjs +4 -0
  7. package/dist/es/_virtual/types.mjs +4 -0
  8. package/dist/es/_virtual/ua-parser.min.mjs +4 -0
  9. package/dist/es/components/Copy/index.mjs +44 -0
  10. package/dist/es/components/Copy/style.less.mjs +4 -0
  11. package/dist/es/components/Markdown/ATag/index.mjs +47 -0
  12. package/dist/es/components/Markdown/Code/index.mjs +69 -0
  13. package/dist/es/components/Markdown/Image/index.mjs +60 -0
  14. package/dist/es/components/Markdown/Video/index.mjs +22 -0
  15. package/dist/es/components/Markdown/index.mjs +75 -0
  16. package/dist/es/components/Markdown/style.less.mjs +4 -0
  17. package/dist/es/index.mjs +30 -25
  18. package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
  19. package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
  20. package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
  21. package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
  22. package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
  23. package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
  24. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
  25. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
  26. package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
  27. package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
  28. package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
  29. package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
  30. package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
  31. package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
  32. package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
  33. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
  34. package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
  35. package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
  36. package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +908 -0
  37. package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
  38. package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +242 -0
  39. package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
  40. package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
  41. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
  42. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +78 -0
  43. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
  44. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
  45. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +178 -0
  46. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +83 -0
  47. package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
  48. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
  49. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
  50. package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
  51. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
  52. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
  53. package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
  54. package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
  55. package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
  56. package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
  57. package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
  58. package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
  59. package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +11 -0
  60. package/dist/es/node_modules/antd-mobile/es/utils/dev-log.mjs +7 -0
  61. package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
  62. package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
  63. package/dist/es/node_modules/antd-mobile/es/utils/is-dev.mjs +4 -0
  64. package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
  65. package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
  66. package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +47 -0
  67. package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
  68. package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
  69. package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
  70. package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
  71. package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
  72. package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
  73. package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
  74. package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
  75. package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
  76. package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
  77. package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
  78. package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
  79. package/dist/es/node_modules/character-reference-invalid/index.json.mjs +33 -0
  80. package/dist/es/node_modules/classnames/index.mjs +42 -0
  81. package/dist/es/node_modules/hast-util-parse-selector/index.mjs +14 -0
  82. package/dist/es/node_modules/is-alphabetical/index.mjs +8 -0
  83. package/dist/es/node_modules/is-alphanumerical/index.mjs +9 -0
  84. package/dist/es/node_modules/is-decimal/index.mjs +8 -0
  85. package/dist/es/node_modules/is-hexadecimal/index.mjs +8 -0
  86. package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +8 -0
  87. package/dist/es/node_modules/parse-entities/index.mjs +83 -0
  88. package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +217 -0
  89. package/dist/es/node_modules/property-information/find.mjs +25 -0
  90. package/dist/es/node_modules/property-information/html.mjs +10 -0
  91. package/dist/es/node_modules/property-information/lib/aria.mjs +63 -0
  92. package/dist/es/node_modules/property-information/lib/html.mjs +354 -0
  93. package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +8 -0
  94. package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +7 -0
  95. package/dist/es/node_modules/property-information/lib/util/create.mjs +13 -0
  96. package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +18 -0
  97. package/dist/es/node_modules/property-information/lib/util/info.mjs +19 -0
  98. package/dist/es/node_modules/property-information/lib/util/merge.mjs +11 -0
  99. package/dist/es/node_modules/property-information/lib/util/schema.mjs +10 -0
  100. package/dist/es/node_modules/property-information/lib/util/types.mjs +15 -0
  101. package/dist/es/node_modules/property-information/lib/xlink.mjs +20 -0
  102. package/dist/es/node_modules/property-information/lib/xml.mjs +16 -0
  103. package/dist/es/node_modules/property-information/lib/xmlns.mjs +16 -0
  104. package/dist/es/node_modules/property-information/normalize.mjs +7 -0
  105. package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
  106. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +7 -0
  107. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +101 -0
  108. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +283 -0
  109. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +4 -0
  110. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
  111. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +195 -0
  112. package/dist/es/node_modules/refractor/core.mjs +111 -0
  113. package/dist/es/node_modules/refractor/index.mjs +553 -0
  114. package/dist/es/node_modules/refractor/lang/abap.mjs +60 -0
  115. package/dist/es/node_modules/refractor/lang/abnf.mjs +63 -0
  116. package/dist/es/node_modules/refractor/lang/actionscript.mjs +22 -0
  117. package/dist/es/node_modules/refractor/lang/ada.mjs +28 -0
  118. package/dist/es/node_modules/refractor/lang/agda.mjs +35 -0
  119. package/dist/es/node_modules/refractor/lang/al.mjs +35 -0
  120. package/dist/es/node_modules/refractor/lang/antlr4.mjs +72 -0
  121. package/dist/es/node_modules/refractor/lang/apacheconf.mjs +59 -0
  122. package/dist/es/node_modules/refractor/lang/apex.mjs +69 -0
  123. package/dist/es/node_modules/refractor/lang/apl.mjs +44 -0
  124. package/dist/es/node_modules/refractor/lang/applescript.mjs +26 -0
  125. package/dist/es/node_modules/refractor/lang/aql.mjs +57 -0
  126. package/dist/es/node_modules/refractor/lang/arduino.mjs +20 -0
  127. package/dist/es/node_modules/refractor/lang/arff.mjs +22 -0
  128. package/dist/es/node_modules/refractor/lang/asciidoc.mjs +208 -0
  129. package/dist/es/node_modules/refractor/lang/asm6502.mjs +41 -0
  130. package/dist/es/node_modules/refractor/lang/asmatmel.mjs +53 -0
  131. package/dist/es/node_modules/refractor/lang/aspnet.mjs +53 -0
  132. package/dist/es/node_modules/refractor/lang/autohotkey.mjs +40 -0
  133. package/dist/es/node_modules/refractor/lang/autoit.mjs +43 -0
  134. package/dist/es/node_modules/refractor/lang/avisynth.mjs +167 -0
  135. package/dist/es/node_modules/refractor/lang/avro-idl.mjs +50 -0
  136. package/dist/es/node_modules/refractor/lang/bash.mjs +206 -0
  137. package/dist/es/node_modules/refractor/lang/basic.mjs +29 -0
  138. package/dist/es/node_modules/refractor/lang/batch.mjs +95 -0
  139. package/dist/es/node_modules/refractor/lang/bbcode.mjs +36 -0
  140. package/dist/es/node_modules/refractor/lang/bicep.mjs +72 -0
  141. package/dist/es/node_modules/refractor/lang/birb.mjs +32 -0
  142. package/dist/es/node_modules/refractor/lang/bison.mjs +52 -0
  143. package/dist/es/node_modules/refractor/lang/bnf.mjs +31 -0
  144. package/dist/es/node_modules/refractor/lang/brainfuck.mjs +32 -0
  145. package/dist/es/node_modules/refractor/lang/brightscript.mjs +55 -0
  146. package/dist/es/node_modules/refractor/lang/bro.mjs +39 -0
  147. package/dist/es/node_modules/refractor/lang/bsl.mjs +77 -0
  148. package/dist/es/node_modules/refractor/lang/c.mjs +78 -0
  149. package/dist/es/node_modules/refractor/lang/cfscript.mjs +44 -0
  150. package/dist/es/node_modules/refractor/lang/chaiscript.mjs +65 -0
  151. package/dist/es/node_modules/refractor/lang/cil.mjs +31 -0
  152. package/dist/es/node_modules/refractor/lang/clike.mjs +36 -0
  153. package/dist/es/node_modules/refractor/lang/clojure.mjs +42 -0
  154. package/dist/es/node_modules/refractor/lang/cmake.mjs +41 -0
  155. package/dist/es/node_modules/refractor/lang/cobol.mjs +58 -0
  156. package/dist/es/node_modules/refractor/lang/coffeescript.mjs +86 -0
  157. package/dist/es/node_modules/refractor/lang/concurnas.mjs +69 -0
  158. package/dist/es/node_modules/refractor/lang/coq.mjs +52 -0
  159. package/dist/es/node_modules/refractor/lang/cpp.mjs +98 -0
  160. package/dist/es/node_modules/refractor/lang/crystal.mjs +63 -0
  161. package/dist/es/node_modules/refractor/lang/csharp.mjs +277 -0
  162. package/dist/es/node_modules/refractor/lang/cshtml.mjs +104 -0
  163. package/dist/es/node_modules/refractor/lang/csp.mjs +61 -0
  164. package/dist/es/node_modules/refractor/lang/css-extras.mjs +109 -0
  165. package/dist/es/node_modules/refractor/lang/css.mjs +63 -0
  166. package/dist/es/node_modules/refractor/lang/csv.mjs +16 -0
  167. package/dist/es/node_modules/refractor/lang/cypher.mjs +44 -0
  168. package/dist/es/node_modules/refractor/lang/d.mjs +77 -0
  169. package/dist/es/node_modules/refractor/lang/dart.mjs +72 -0
  170. package/dist/es/node_modules/refractor/lang/dataweave.mjs +49 -0
  171. package/dist/es/node_modules/refractor/lang/dax.mjs +39 -0
  172. package/dist/es/node_modules/refractor/lang/dhall.mjs +74 -0
  173. package/dist/es/node_modules/refractor/lang/diff.mjs +54 -0
  174. package/dist/es/node_modules/refractor/lang/django.mjs +60 -0
  175. package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +40 -0
  176. package/dist/es/node_modules/refractor/lang/docker.mjs +83 -0
  177. package/dist/es/node_modules/refractor/lang/dot.mjs +75 -0
  178. package/dist/es/node_modules/refractor/lang/ebnf.mjs +32 -0
  179. package/dist/es/node_modules/refractor/lang/editorconfig.mjs +39 -0
  180. package/dist/es/node_modules/refractor/lang/eiffel.mjs +46 -0
  181. package/dist/es/node_modules/refractor/lang/ejs.mjs +33 -0
  182. package/dist/es/node_modules/refractor/lang/elixir.mjs +100 -0
  183. package/dist/es/node_modules/refractor/lang/elm.mjs +54 -0
  184. package/dist/es/node_modules/refractor/lang/erb.mjs +35 -0
  185. package/dist/es/node_modules/refractor/lang/erlang.mjs +47 -0
  186. package/dist/es/node_modules/refractor/lang/etlua.mjs +33 -0
  187. package/dist/es/node_modules/refractor/lang/excel-formula.mjs +74 -0
  188. package/dist/es/node_modules/refractor/lang/factor.mjs +569 -0
  189. package/dist/es/node_modules/refractor/lang/false.mjs +39 -0
  190. package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +43 -0
  191. package/dist/es/node_modules/refractor/lang/flow.mjs +31 -0
  192. package/dist/es/node_modules/refractor/lang/fortran.mjs +49 -0
  193. package/dist/es/node_modules/refractor/lang/fsharp.mjs +76 -0
  194. package/dist/es/node_modules/refractor/lang/ftl.mjs +102 -0
  195. package/dist/es/node_modules/refractor/lang/gap.mjs +57 -0
  196. package/dist/es/node_modules/refractor/lang/gcode.mjs +28 -0
  197. package/dist/es/node_modules/refractor/lang/gdscript.mjs +36 -0
  198. package/dist/es/node_modules/refractor/lang/gedcom.mjs +40 -0
  199. package/dist/es/node_modules/refractor/lang/gherkin.mjs +94 -0
  200. package/dist/es/node_modules/refractor/lang/git.mjs +75 -0
  201. package/dist/es/node_modules/refractor/lang/glsl.mjs +18 -0
  202. package/dist/es/node_modules/refractor/lang/gml.mjs +19 -0
  203. package/dist/es/node_modules/refractor/lang/gn.mjs +55 -0
  204. package/dist/es/node_modules/refractor/lang/go-module.mjs +34 -0
  205. package/dist/es/node_modules/refractor/lang/go.mjs +36 -0
  206. package/dist/es/node_modules/refractor/lang/graphql.mjs +133 -0
  207. package/dist/es/node_modules/refractor/lang/groovy.mjs +58 -0
  208. package/dist/es/node_modules/refractor/lang/haml.mjs +132 -0
  209. package/dist/es/node_modules/refractor/lang/handlebars.mjs +46 -0
  210. package/dist/es/node_modules/refractor/lang/haskell.mjs +76 -0
  211. package/dist/es/node_modules/refractor/lang/haxe.mjs +84 -0
  212. package/dist/es/node_modules/refractor/lang/hcl.mjs +68 -0
  213. package/dist/es/node_modules/refractor/lang/hlsl.mjs +31 -0
  214. package/dist/es/node_modules/refractor/lang/hoon.mjs +26 -0
  215. package/dist/es/node_modules/refractor/lang/hpkp.mjs +20 -0
  216. package/dist/es/node_modules/refractor/lang/hsts.mjs +20 -0
  217. package/dist/es/node_modules/refractor/lang/http.mjs +126 -0
  218. package/dist/es/node_modules/refractor/lang/ichigojam.mjs +25 -0
  219. package/dist/es/node_modules/refractor/lang/icon.mjs +32 -0
  220. package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +136 -0
  221. package/dist/es/node_modules/refractor/lang/idris.mjs +30 -0
  222. package/dist/es/node_modules/refractor/lang/iecst.mjs +38 -0
  223. package/dist/es/node_modules/refractor/lang/ignore.mjs +30 -0
  224. package/dist/es/node_modules/refractor/lang/inform7.mjs +69 -0
  225. package/dist/es/node_modules/refractor/lang/ini.mjs +52 -0
  226. package/dist/es/node_modules/refractor/lang/io.mjs +34 -0
  227. package/dist/es/node_modules/refractor/lang/j.mjs +40 -0
  228. package/dist/es/node_modules/refractor/lang/java.mjs +86 -0
  229. package/dist/es/node_modules/refractor/lang/javadoc.mjs +89 -0
  230. package/dist/es/node_modules/refractor/lang/javadoclike.mjs +60 -0
  231. package/dist/es/node_modules/refractor/lang/javascript.mjs +114 -0
  232. package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +146 -0
  233. package/dist/es/node_modules/refractor/lang/jexl.mjs +26 -0
  234. package/dist/es/node_modules/refractor/lang/jolie.mjs +51 -0
  235. package/dist/es/node_modules/refractor/lang/jq.mjs +71 -0
  236. package/dist/es/node_modules/refractor/lang/js-extras.mjs +104 -0
  237. package/dist/es/node_modules/refractor/lang/js-templates.mjs +153 -0
  238. package/dist/es/node_modules/refractor/lang/jsdoc.mjs +83 -0
  239. package/dist/es/node_modules/refractor/lang/json.mjs +36 -0
  240. package/dist/es/node_modules/refractor/lang/json5.mjs +32 -0
  241. package/dist/es/node_modules/refractor/lang/jsonp.mjs +20 -0
  242. package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +53 -0
  243. package/dist/es/node_modules/refractor/lang/jsx.mjs +61 -0
  244. package/dist/es/node_modules/refractor/lang/julia.mjs +47 -0
  245. package/dist/es/node_modules/refractor/lang/keepalived.mjs +54 -0
  246. package/dist/es/node_modules/refractor/lang/keyman.mjs +55 -0
  247. package/dist/es/node_modules/refractor/lang/kotlin.mjs +81 -0
  248. package/dist/es/node_modules/refractor/lang/kumir.mjs +85 -0
  249. package/dist/es/node_modules/refractor/lang/kusto.mjs +47 -0
  250. package/dist/es/node_modules/refractor/lang/latex.mjs +68 -0
  251. package/dist/es/node_modules/refractor/lang/latte.mjs +68 -0
  252. package/dist/es/node_modules/refractor/lang/less.mjs +51 -0
  253. package/dist/es/node_modules/refractor/lang/lilypond.mjs +77 -0
  254. package/dist/es/node_modules/refractor/lang/liquid.mjs +68 -0
  255. package/dist/es/node_modules/refractor/lang/lisp.mjs +158 -0
  256. package/dist/es/node_modules/refractor/lang/livescript.mjs +119 -0
  257. package/dist/es/node_modules/refractor/lang/llvm.mjs +31 -0
  258. package/dist/es/node_modules/refractor/lang/log.mjs +103 -0
  259. package/dist/es/node_modules/refractor/lang/lolcode.mjs +57 -0
  260. package/dist/es/node_modules/refractor/lang/lua.mjs +29 -0
  261. package/dist/es/node_modules/refractor/lang/magma.mjs +42 -0
  262. package/dist/es/node_modules/refractor/lang/makefile.mjs +42 -0
  263. package/dist/es/node_modules/refractor/lang/markdown.mjs +306 -0
  264. package/dist/es/node_modules/refractor/lang/markup-templating.mjs +74 -0
  265. package/dist/es/node_modules/refractor/lang/markup.mjs +154 -0
  266. package/dist/es/node_modules/refractor/lang/matlab.mjs +25 -0
  267. package/dist/es/node_modules/refractor/lang/maxscript.mjs +70 -0
  268. package/dist/es/node_modules/refractor/lang/mel.mjs +49 -0
  269. package/dist/es/node_modules/refractor/lang/mermaid.mjs +116 -0
  270. package/dist/es/node_modules/refractor/lang/mizar.mjs +24 -0
  271. package/dist/es/node_modules/refractor/lang/mongodb.mjs +287 -0
  272. package/dist/es/node_modules/refractor/lang/monkey.mjs +40 -0
  273. package/dist/es/node_modules/refractor/lang/moonscript.mjs +63 -0
  274. package/dist/es/node_modules/refractor/lang/n1ql.mjs +34 -0
  275. package/dist/es/node_modules/refractor/lang/n4js.mjs +22 -0
  276. package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
  277. package/dist/es/node_modules/refractor/lang/naniscript.mjs +140 -0
  278. package/dist/es/node_modules/refractor/lang/nasm.mjs +31 -0
  279. package/dist/es/node_modules/refractor/lang/neon.mjs +52 -0
  280. package/dist/es/node_modules/refractor/lang/nevod.mjs +125 -0
  281. package/dist/es/node_modules/refractor/lang/nginx.mjs +61 -0
  282. package/dist/es/node_modules/refractor/lang/nim.mjs +54 -0
  283. package/dist/es/node_modules/refractor/lang/nix.mjs +45 -0
  284. package/dist/es/node_modules/refractor/lang/nsis.mjs +37 -0
  285. package/dist/es/node_modules/refractor/lang/objectivec.mjs +23 -0
  286. package/dist/es/node_modules/refractor/lang/ocaml.mjs +64 -0
  287. package/dist/es/node_modules/refractor/lang/opencl.mjs +62 -0
  288. package/dist/es/node_modules/refractor/lang/openqasm.mjs +29 -0
  289. package/dist/es/node_modules/refractor/lang/oz.mjs +37 -0
  290. package/dist/es/node_modules/refractor/lang/parigp.mjs +36 -0
  291. package/dist/es/node_modules/refractor/lang/parser.mjs +80 -0
  292. package/dist/es/node_modules/refractor/lang/pascal.mjs +66 -0
  293. package/dist/es/node_modules/refractor/lang/pascaligo.mjs +70 -0
  294. package/dist/es/node_modules/refractor/lang/pcaxis.mjs +63 -0
  295. package/dist/es/node_modules/refractor/lang/peoplecode.mjs +51 -0
  296. package/dist/es/node_modules/refractor/lang/perl.mjs +134 -0
  297. package/dist/es/node_modules/refractor/lang/php-extras.mjs +29 -0
  298. package/dist/es/node_modules/refractor/lang/php.mjs +301 -0
  299. package/dist/es/node_modules/refractor/lang/phpdoc.mjs +34 -0
  300. package/dist/es/node_modules/refractor/lang/plsql.mjs +30 -0
  301. package/dist/es/node_modules/refractor/lang/powerquery.mjs +44 -0
  302. package/dist/es/node_modules/refractor/lang/powershell.mjs +58 -0
  303. package/dist/es/node_modules/refractor/lang/processing.mjs +25 -0
  304. package/dist/es/node_modules/refractor/lang/prolog.mjs +31 -0
  305. package/dist/es/node_modules/refractor/lang/promql.mjs +74 -0
  306. package/dist/es/node_modules/refractor/lang/properties.mjs +21 -0
  307. package/dist/es/node_modules/refractor/lang/protobuf.mjs +47 -0
  308. package/dist/es/node_modules/refractor/lang/psl.mjs +47 -0
  309. package/dist/es/node_modules/refractor/lang/pug.mjs +173 -0
  310. package/dist/es/node_modules/refractor/lang/puppet.mjs +140 -0
  311. package/dist/es/node_modules/refractor/lang/pure.mjs +72 -0
  312. package/dist/es/node_modules/refractor/lang/purebasic.mjs +63 -0
  313. package/dist/es/node_modules/refractor/lang/purescript.mjs +41 -0
  314. package/dist/es/node_modules/refractor/lang/python.mjs +73 -0
  315. package/dist/es/node_modules/refractor/lang/q.mjs +62 -0
  316. package/dist/es/node_modules/refractor/lang/qml.mjs +67 -0
  317. package/dist/es/node_modules/refractor/lang/qore.mjs +32 -0
  318. package/dist/es/node_modules/refractor/lang/qsharp.mjs +93 -0
  319. package/dist/es/node_modules/refractor/lang/r.mjs +31 -0
  320. package/dist/es/node_modules/refractor/lang/racket.mjs +29 -0
  321. package/dist/es/node_modules/refractor/lang/reason.mjs +33 -0
  322. package/dist/es/node_modules/refractor/lang/regex.mjs +97 -0
  323. package/dist/es/node_modules/refractor/lang/rego.mjs +37 -0
  324. package/dist/es/node_modules/refractor/lang/renpy.mjs +30 -0
  325. package/dist/es/node_modules/refractor/lang/rest.mjs +199 -0
  326. package/dist/es/node_modules/refractor/lang/rip.mjs +41 -0
  327. package/dist/es/node_modules/refractor/lang/roboconf.mjs +39 -0
  328. package/dist/es/node_modules/refractor/lang/robotframework.mjs +95 -0
  329. package/dist/es/node_modules/refractor/lang/ruby.mjs +159 -0
  330. package/dist/es/node_modules/refractor/lang/rust.mjs +122 -0
  331. package/dist/es/node_modules/refractor/lang/sas.mjs +305 -0
  332. package/dist/es/node_modules/refractor/lang/sass.mjs +69 -0
  333. package/dist/es/node_modules/refractor/lang/scala.mjs +59 -0
  334. package/dist/es/node_modules/refractor/lang/scheme.mjs +120 -0
  335. package/dist/es/node_modules/refractor/lang/scss.mjs +82 -0
  336. package/dist/es/node_modules/refractor/lang/shell-session.mjs +69 -0
  337. package/dist/es/node_modules/refractor/lang/smali.mjs +84 -0
  338. package/dist/es/node_modules/refractor/lang/smalltalk.mjs +47 -0
  339. package/dist/es/node_modules/refractor/lang/smarty.mjs +106 -0
  340. package/dist/es/node_modules/refractor/lang/sml.mjs +64 -0
  341. package/dist/es/node_modules/refractor/lang/solidity.mjs +28 -0
  342. package/dist/es/node_modules/refractor/lang/solution-file.mjs +58 -0
  343. package/dist/es/node_modules/refractor/lang/soy.mjs +77 -0
  344. package/dist/es/node_modules/refractor/lang/sparql.mjs +24 -0
  345. package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +36 -0
  346. package/dist/es/node_modules/refractor/lang/sqf.mjs +42 -0
  347. package/dist/es/node_modules/refractor/lang/sql.mjs +42 -0
  348. package/dist/es/node_modules/refractor/lang/squirrel.mjs +50 -0
  349. package/dist/es/node_modules/refractor/lang/stan.mjs +63 -0
  350. package/dist/es/node_modules/refractor/lang/stylus.mjs +141 -0
  351. package/dist/es/node_modules/refractor/lang/swift.mjs +125 -0
  352. package/dist/es/node_modules/refractor/lang/systemd.mjs +65 -0
  353. package/dist/es/node_modules/refractor/lang/t4-cs.mjs +17 -0
  354. package/dist/es/node_modules/refractor/lang/t4-templating.mjs +57 -0
  355. package/dist/es/node_modules/refractor/lang/t4-vb.mjs +17 -0
  356. package/dist/es/node_modules/refractor/lang/tap.mjs +35 -0
  357. package/dist/es/node_modules/refractor/lang/tcl.mjs +51 -0
  358. package/dist/es/node_modules/refractor/lang/textile.mjs +248 -0
  359. package/dist/es/node_modules/refractor/lang/toml.mjs +54 -0
  360. package/dist/es/node_modules/refractor/lang/tremor.mjs +67 -0
  361. package/dist/es/node_modules/refractor/lang/tsx.mjs +22 -0
  362. package/dist/es/node_modules/refractor/lang/tt2.mjs +53 -0
  363. package/dist/es/node_modules/refractor/lang/turtle.mjs +62 -0
  364. package/dist/es/node_modules/refractor/lang/twig.mjs +48 -0
  365. package/dist/es/node_modules/refractor/lang/typescript.mjs +57 -0
  366. package/dist/es/node_modules/refractor/lang/typoscript.mjs +81 -0
  367. package/dist/es/node_modules/refractor/lang/unrealscript.mjs +50 -0
  368. package/dist/es/node_modules/refractor/lang/uorazor.mjs +57 -0
  369. package/dist/es/node_modules/refractor/lang/uri.mjs +92 -0
  370. package/dist/es/node_modules/refractor/lang/v.mjs +85 -0
  371. package/dist/es/node_modules/refractor/lang/vala.mjs +87 -0
  372. package/dist/es/node_modules/refractor/lang/vbnet.mjs +34 -0
  373. package/dist/es/node_modules/refractor/lang/velocity.mjs +75 -0
  374. package/dist/es/node_modules/refractor/lang/verilog.mjs +38 -0
  375. package/dist/es/node_modules/refractor/lang/vhdl.mjs +35 -0
  376. package/dist/es/node_modules/refractor/lang/vim.mjs +22 -0
  377. package/dist/es/node_modules/refractor/lang/visual-basic.mjs +38 -0
  378. package/dist/es/node_modules/refractor/lang/warpscript.mjs +33 -0
  379. package/dist/es/node_modules/refractor/lang/wasm.mjs +36 -0
  380. package/dist/es/node_modules/refractor/lang/web-idl.mjs +89 -0
  381. package/dist/es/node_modules/refractor/lang/wiki.mjs +86 -0
  382. package/dist/es/node_modules/refractor/lang/wolfram.mjs +37 -0
  383. package/dist/es/node_modules/refractor/lang/wren.mjs +97 -0
  384. package/dist/es/node_modules/refractor/lang/xeora.mjs +121 -0
  385. package/dist/es/node_modules/refractor/lang/xml-doc.mjs +35 -0
  386. package/dist/es/node_modules/refractor/lang/xojo.mjs +30 -0
  387. package/dist/es/node_modules/refractor/lang/xquery.mjs +89 -0
  388. package/dist/es/node_modules/refractor/lang/yaml.mjs +78 -0
  389. package/dist/es/node_modules/refractor/lang/yang.mjs +32 -0
  390. package/dist/es/node_modules/refractor/lang/zig.mjs +80 -0
  391. package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +16 -0
  392. package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +77 -0
  393. package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +8 -0
  394. package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +5 -0
  395. package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +720 -0
  396. package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +14 -0
  397. package/dist/es/node_modules/tslib/tslib.es6.mjs +30 -0
  398. package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +123 -0
  399. package/dist/es/node_modules/xtend/immutable.mjs +12 -0
  400. package/dist/es/utils/clipboard.mjs +38 -0
  401. package/dist/es/utils/markdown/index.mjs +29 -0
  402. package/dist/lib/index.js +25 -1
  403. package/dist/src/components/Copy/index.d.ts +5 -0
  404. package/dist/src/components/Markdown/ATag/index.d.ts +2 -0
  405. package/dist/src/components/Markdown/Code/index.d.ts +2 -0
  406. package/dist/src/components/Markdown/Image/index.d.ts +2 -0
  407. package/dist/src/components/Markdown/Video/index.d.ts +2 -0
  408. package/dist/src/components/Markdown/index.d.ts +9 -0
  409. package/dist/src/index.d.ts +2 -0
  410. package/dist/src/utils/clipboard.d.ts +11 -0
  411. package/dist/src/utils/markdown/index.d.ts +10 -0
  412. package/package.json +18 -2
  413. package/dist/es/style.css +0 -1
  414. package/dist/lib/style.css +0 -1
@@ -0,0 +1,83 @@
1
+ import { a as x } from "../../../../@react-spring/web/dist/react-spring-web.esm.mjs";
2
+ import { useDrag as b } from "../../../../@use-gesture/react/dist/use-gesture-react.esm.mjs";
3
+ import s, { forwardRef as R, useImperativeHandle as w, useRef as I } from "react";
4
+ import { bound as c } from "../../utils/bound.mjs";
5
+ import { convertPx as M } from "../../utils/convert-px.mjs";
6
+ import { Slide as $ } from "./slide.mjs";
7
+ import { useSpring as y } from "../../../../@react-spring/core/dist/react-spring-core.esm.mjs";
8
+ const f = "adm-image-viewer", _ = R((o, g) => {
9
+ const n = window.innerWidth + M(16), [{
10
+ x: r
11
+ }, d] = y(() => ({
12
+ x: o.defaultIndex * n,
13
+ config: {
14
+ tension: 250,
15
+ clamp: !0
16
+ }
17
+ })), m = o.images.length;
18
+ function l(e, t = !1) {
19
+ var i;
20
+ const a = c(e, 0, m - 1);
21
+ (i = o.onIndexChange) === null || i === void 0 || i.call(o, a), d.start({
22
+ x: a * n,
23
+ immediate: t
24
+ });
25
+ }
26
+ w(g, () => ({
27
+ swipeTo: l
28
+ }));
29
+ const u = I(!1), h = b((e) => {
30
+ if (u.current)
31
+ return;
32
+ const [t] = e.offset;
33
+ if (e.last) {
34
+ const i = Math.floor(t / n), a = i + 1, v = Math.min(e.velocity[0] * 2e3, n) * e.direction[0];
35
+ l(c(Math.round((t + v) / n), i, a));
36
+ } else
37
+ d.start({
38
+ x: t,
39
+ immediate: !0
40
+ });
41
+ }, {
42
+ transform: ([e, t]) => [-e, t],
43
+ from: () => [r.get(), 0],
44
+ bounds: () => ({
45
+ left: 0,
46
+ right: (m - 1) * n
47
+ }),
48
+ rubberband: !0,
49
+ axis: "x",
50
+ pointer: {
51
+ touch: !0
52
+ }
53
+ });
54
+ return s.createElement("div", Object.assign({
55
+ className: `${f}-slides`
56
+ }, h()), s.createElement(x.div, {
57
+ className: `${f}-indicator`
58
+ }, r.to((e) => `${c(Math.round(e / n), 0, m - 1) + 1} / ${m}`)), s.createElement(x.div, {
59
+ className: `${f}-slides-inner`,
60
+ style: {
61
+ x: r.to((e) => -e)
62
+ }
63
+ }, o.images.map((e, t) => s.createElement($, {
64
+ key: t,
65
+ image: e,
66
+ onTap: o.onTap,
67
+ maxZoom: o.maxZoom,
68
+ imageRender: o.imageRender,
69
+ index: t,
70
+ onZoomChange: (i) => {
71
+ if (i !== 1) {
72
+ const a = Math.round(r.get() / n);
73
+ d.start({
74
+ x: a * n
75
+ });
76
+ }
77
+ },
78
+ dragLockRef: u
79
+ }))));
80
+ });
81
+ export {
82
+ _ as Slides
83
+ };
@@ -0,0 +1,5 @@
1
+ import "./mask.css.mjs";
2
+ import { Mask as t } from "./mask.mjs";
3
+ export {
4
+ t as default
5
+ };
@@ -0,0 +1,4 @@
1
+ const a = "";
2
+ export {
3
+ a as default
4
+ };
@@ -0,0 +1,84 @@
1
+ import { withNativeProps as v } from "../../utils/native-props.mjs";
2
+ import r, { useRef as b, useMemo as k, useState as g } from "react";
3
+ import { useUnmountedRef as y } from "ahooks";
4
+ import { useLockScroll as C } from "../../utils/use-lock-scroll.mjs";
5
+ import { a as R } from "../../../../@react-spring/web/dist/react-spring-web.esm.mjs";
6
+ import { renderToContainer as h } from "../../utils/render-to-container.mjs";
7
+ import { mergeProps as S } from "../../utils/with-default-props.mjs";
8
+ import { ShouldRender as P } from "../../utils/should-render.mjs";
9
+ import { withStopPropagation as M } from "../../utils/with-stop-propagation.mjs";
10
+ import { useConfig as _ } from "../config-provider/config-provider.mjs";
11
+ import { useSpring as O } from "../../../../@react-spring/core/dist/react-spring-core.esm.mjs";
12
+ const i = "adm-mask", w = {
13
+ default: 0.55,
14
+ thin: 0.35,
15
+ thick: 0.75
16
+ }, E = {
17
+ black: "0, 0, 0",
18
+ white: "255, 255, 255"
19
+ }, N = {
20
+ visible: !0,
21
+ destroyOnClose: !1,
22
+ forceRender: !1,
23
+ color: "black",
24
+ opacity: "default",
25
+ disableBodyScroll: !0,
26
+ getContainer: null,
27
+ stopPropagation: ["click"]
28
+ }, F = (s) => {
29
+ const o = S(N, s), {
30
+ locale: d
31
+ } = _(), a = b(null);
32
+ C(a, o.visible && o.disableBodyScroll);
33
+ const m = k(() => {
34
+ var e;
35
+ const t = (e = w[o.opacity]) !== null && e !== void 0 ? e : o.opacity, c = E[o.color];
36
+ return c ? `rgba(${c}, ${t})` : o.color;
37
+ }, [o.color, o.opacity]), [n, l] = g(o.visible), f = y(), {
38
+ opacity: p
39
+ } = O({
40
+ opacity: o.visible ? 1 : 0,
41
+ config: {
42
+ precision: 0.01,
43
+ mass: 1,
44
+ tension: 250,
45
+ friction: 30,
46
+ clamp: !0
47
+ },
48
+ onStart: () => {
49
+ l(!0);
50
+ },
51
+ onRest: () => {
52
+ var e, t;
53
+ f.current || (l(o.visible), o.visible ? (e = o.afterShow) === null || e === void 0 || e.call(o) : (t = o.afterClose) === null || t === void 0 || t.call(o));
54
+ }
55
+ }), u = M(o.stopPropagation, v(o, r.createElement(R.div, {
56
+ className: i,
57
+ ref: a,
58
+ "aria-hidden": !0,
59
+ style: Object.assign(Object.assign({}, o.style), {
60
+ background: m,
61
+ opacity: p,
62
+ display: n ? void 0 : "none"
63
+ }),
64
+ onClick: (e) => {
65
+ var t;
66
+ e.target === e.currentTarget && ((t = o.onMaskClick) === null || t === void 0 || t.call(o, e));
67
+ }
68
+ }, o.onMaskClick && r.createElement("div", {
69
+ className: `${i}-aria-button`,
70
+ role: "button",
71
+ "aria-label": d.Mask.name,
72
+ onClick: o.onMaskClick
73
+ }), r.createElement("div", {
74
+ className: `${i}-content`
75
+ }, o.children))));
76
+ return r.createElement(P, {
77
+ active: n,
78
+ forceRender: o.forceRender,
79
+ destroyOnClose: o.destroyOnClose
80
+ }, h(o.getContainer, u));
81
+ };
82
+ export {
83
+ F as Mask
84
+ };
@@ -0,0 +1,5 @@
1
+ import "./safe-area.css.mjs";
2
+ import { SafeArea as e } from "./safe-area.mjs";
3
+ export {
4
+ e as default
5
+ };
@@ -0,0 +1,4 @@
1
+ const a = "";
2
+ export {
3
+ a as default
4
+ };
@@ -0,0 +1,9 @@
1
+ import t from "react";
2
+ import { withNativeProps as o } from "../../utils/native-props.mjs";
3
+ import r from "../../../../classnames/index.mjs";
4
+ const a = "adm-safe-area", c = (e) => o(e, t.createElement("div", {
5
+ className: r(a, `${a}-position-${e.position}`)
6
+ }));
7
+ export {
8
+ c as SafeArea
9
+ };
@@ -0,0 +1,4 @@
1
+ const a = "";
2
+ export {
3
+ a as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import "./global.css.mjs";
2
+ import { canUseDom as t } from "../utils/can-use-dom.mjs";
3
+ t && document.addEventListener("touchstart", () => {
4
+ }, !0);
@@ -0,0 +1,141 @@
1
+ const e = "${label}不是一个有效的${type}", a = {
2
+ locale: "zh-CH",
3
+ common: {
4
+ confirm: "确定",
5
+ cancel: "取消",
6
+ loading: "加载中",
7
+ close: "关闭"
8
+ },
9
+ Calendar: {
10
+ title: "日期选择",
11
+ confirm: "确认",
12
+ start: "开始",
13
+ end: "结束",
14
+ today: "今日",
15
+ markItems: ["一", "二", "三", "四", "五", "六", "日"],
16
+ yearAndMonth: "${year}年${month}月"
17
+ },
18
+ Cascader: {
19
+ placeholder: "请选择"
20
+ },
21
+ Dialog: {
22
+ ok: "我知道了"
23
+ },
24
+ DatePicker: {
25
+ tillNow: "至今"
26
+ },
27
+ ErrorBlock: {
28
+ default: {
29
+ title: "页面遇到一些小问题",
30
+ description: "待会来试试"
31
+ },
32
+ busy: {
33
+ title: "前方拥堵",
34
+ description: "刷新试试"
35
+ },
36
+ disconnected: {
37
+ title: "网络有点忙",
38
+ description: "动动手指帮忙修复"
39
+ },
40
+ empty: {
41
+ title: "没有找到你需要的东西",
42
+ description: "找找其他的吧"
43
+ }
44
+ },
45
+ Form: {
46
+ required: "必填",
47
+ optional: "选填",
48
+ defaultValidateMessages: {
49
+ default: "字段验证错误${label}",
50
+ required: "请输入${label}",
51
+ enum: "${label}必须是其中一个[${enum}]",
52
+ whitespace: "${label}不能为空字符",
53
+ date: {
54
+ format: "${label}日期格式无效",
55
+ parse: "${label}不能转换为日期",
56
+ invalid: "${label}是一个无效日期"
57
+ },
58
+ types: {
59
+ string: e,
60
+ method: e,
61
+ array: e,
62
+ object: e,
63
+ number: e,
64
+ date: e,
65
+ boolean: e,
66
+ integer: e,
67
+ float: e,
68
+ regexp: e,
69
+ email: e,
70
+ url: e,
71
+ hex: e
72
+ },
73
+ string: {
74
+ len: "${label}须为${len}个字符",
75
+ min: "${label}最少${min}个字符",
76
+ max: "${label}最多${max}个字符",
77
+ range: "${label}须在${min}-${max}字符之间"
78
+ },
79
+ number: {
80
+ len: "${label}必须等于${len}",
81
+ min: "${label}最小值为${min}",
82
+ max: "${label}最大值为${max}",
83
+ range: "${label}须在${min}-${max}之间"
84
+ },
85
+ array: {
86
+ len: "须为${len}个${label}",
87
+ min: "最少${min}个${label}",
88
+ max: "最多${max}个${label}",
89
+ range: "${label}数量须在${min}-${max}之间"
90
+ },
91
+ pattern: {
92
+ mismatch: "${label}与模式不匹配${pattern}"
93
+ }
94
+ }
95
+ },
96
+ ImageUploader: {
97
+ uploading: "上传中...",
98
+ upload: "上传"
99
+ },
100
+ InfiniteScroll: {
101
+ noMore: "没有更多了",
102
+ failedToLoad: "加载失败",
103
+ retry: "重新加载"
104
+ },
105
+ Input: {
106
+ clear: "清除"
107
+ },
108
+ Mask: {
109
+ name: "背景蒙层"
110
+ },
111
+ Modal: {
112
+ ok: "我知道了"
113
+ },
114
+ PasscodeInput: {
115
+ name: "密码输入框"
116
+ },
117
+ PullToRefresh: {
118
+ pulling: "下拉刷新",
119
+ canRelease: "释放立即刷新",
120
+ complete: "刷新成功"
121
+ },
122
+ SearchBar: {
123
+ name: "搜索框"
124
+ },
125
+ Slider: {
126
+ name: "滑动输入条"
127
+ },
128
+ Stepper: {
129
+ decrease: "减少",
130
+ increase: "增加"
131
+ },
132
+ Switch: {
133
+ name: "开关"
134
+ },
135
+ Selector: {
136
+ name: "选择组"
137
+ }
138
+ }, l = a;
139
+ export {
140
+ l as default
141
+ };
@@ -0,0 +1,9 @@
1
+ function c(r, n) {
2
+ const o = r;
3
+ for (const t in n)
4
+ n.hasOwnProperty(t) && (o[t] = n[t]);
5
+ return o;
6
+ }
7
+ export {
8
+ c as attachPropertiesToComponent
9
+ };
@@ -0,0 +1,7 @@
1
+ function f(n, t, d) {
2
+ let e = n;
3
+ return t !== void 0 && (e = Math.max(n, t)), d !== void 0 && (e = Math.min(e, d)), e;
4
+ }
5
+ export {
6
+ f as bound
7
+ };
@@ -0,0 +1,4 @@
1
+ const e = !!(typeof window != "undefined" && typeof document != "undefined" && window.document && window.document.createElement);
2
+ export {
3
+ e as canUseDom
4
+ };
@@ -0,0 +1,11 @@
1
+ import { canUseDom as n } from "./can-use-dom.mjs";
2
+ import { isDev as o } from "./is-dev.mjs";
3
+ import { devError as i } from "./dev-log.mjs";
4
+ let t = null, e = null;
5
+ n && (t = document.createElement("div"), t.className = "adm-px-tester", t.style.setProperty("--size", "10"), document.body.appendChild(t), e = document.createElement("div"), e.className = "adm-px-tester", document.body.appendChild(e), o && window.getComputedStyle(e).position !== "fixed" && i("Global", "The px tester is not rendering properly. Please make sure you have imported `antd-mobile/es/global`."));
6
+ function m(r) {
7
+ return t === null || e === null || t.getBoundingClientRect().height === 10 ? r : (e.style.setProperty("--size", r.toString()), e.getBoundingClientRect().height);
8
+ }
9
+ export {
10
+ m as convertPx
11
+ };
@@ -0,0 +1,7 @@
1
+ import { isDev as e } from "./is-dev.mjs";
2
+ function n(o, r) {
3
+ e && console.error(`[antd-mobile: ${o}] ${r}`);
4
+ }
5
+ export {
6
+ n as devError
7
+ };
@@ -0,0 +1,6 @@
1
+ function c(n) {
2
+ return (typeof n == "function" ? n() : n) || document.body;
3
+ }
4
+ export {
5
+ c as resolveContainer
6
+ };
@@ -0,0 +1,22 @@
1
+ import { canUseDom as r } from "./can-use-dom.mjs";
2
+ const l = r ? window : void 0, i = ["scroll", "auto", "overlay"];
3
+ function c(n) {
4
+ return n.nodeType === 1;
5
+ }
6
+ function u(n, t = l) {
7
+ let e = n;
8
+ for (; e && e !== t && c(e); ) {
9
+ if (e === document.body)
10
+ return t;
11
+ const {
12
+ overflowY: o
13
+ } = window.getComputedStyle(e);
14
+ if (i.includes(o) && e.scrollHeight > e.clientHeight)
15
+ return e;
16
+ e = e.parentNode;
17
+ }
18
+ return t;
19
+ }
20
+ export {
21
+ u as getScrollParent
22
+ };
@@ -0,0 +1,4 @@
1
+ const e = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
2
+ export {
3
+ e as isDev
4
+ };
@@ -0,0 +1,11 @@
1
+ const s = () => [1, 0, 0, 1, 0, 0], c = (t) => t[4], a = (t) => t[5], u = (t) => t[0], l = (t, r, n) => e([1, 0, 0, 1, r, n], t), o = (t, r, n = r) => e([r, 0, 0, n, 0, 0], t), p = (t, [r, n]) => [t[0] * r + t[2] * n + t[4], t[1] * r + t[3] * n + t[5]], e = (t, r) => [t[0] * r[0] + t[2] * r[1], t[1] * r[0] + t[3] * r[1], t[0] * r[2] + t[2] * r[3], t[1] * r[2] + t[3] * r[3], t[0] * r[4] + t[2] * r[5] + t[4], t[1] * r[4] + t[3] * r[5] + t[5]];
2
+ export {
3
+ p as apply,
4
+ s as create,
5
+ u as getScaleX,
6
+ c as getTranslateX,
7
+ a as getTranslateY,
8
+ e as multiply,
9
+ o as scale,
10
+ l as translate
11
+ };
@@ -0,0 +1,12 @@
1
+ import i from "react";
2
+ import n from "../../../classnames/index.mjs";
3
+ function l(t, e) {
4
+ const a = Object.assign({}, e.props);
5
+ t.className && (a.className = n(e.props.className, t.className)), t.style && (a.style = Object.assign(Object.assign({}, a.style), t.style)), t.tabIndex !== void 0 && (a.tabIndex = t.tabIndex);
6
+ for (const s in t)
7
+ t.hasOwnProperty(s) && (s.startsWith("data-") || s.startsWith("aria-")) && (a[s] = t[s]);
8
+ return i.cloneElement(e, a);
9
+ }
10
+ export {
11
+ l as withNativeProps
12
+ };
@@ -0,0 +1,47 @@
1
+ import { __awaiter as y } from "../../../tslib/tslib.es6.mjs";
2
+ import a, { useState as m, useRef as R, useEffect as E, useImperativeHandle as w } from "react";
3
+ import { renderToBody as T } from "./render-to-body.mjs";
4
+ function I(i) {
5
+ const b = a.forwardRef((l, r) => {
6
+ const [n, f] = m(!1), d = R(!1), [s, C] = m(i), p = R(0);
7
+ E(() => {
8
+ d.current ? _() : f(!0);
9
+ }, []);
10
+ function v() {
11
+ var o, e;
12
+ d.current = !0, f(!1), (e = (o = s.props).onClose) === null || e === void 0 || e.call(o);
13
+ }
14
+ function _() {
15
+ var o, e;
16
+ u(), (e = (o = s.props).afterClose) === null || e === void 0 || e.call(o);
17
+ }
18
+ return w(r, () => ({
19
+ close: v,
20
+ replace: (o) => {
21
+ var e, c;
22
+ p.current++, (c = (e = s.props).afterClose) === null || c === void 0 || c.call(e), C(o);
23
+ }
24
+ })), a.cloneElement(s, Object.assign(Object.assign({}, s.props), {
25
+ key: p.current,
26
+ visible: n,
27
+ onClose: v,
28
+ afterClose: _
29
+ }));
30
+ }), t = a.createRef(), u = T(a.createElement(b, {
31
+ ref: t
32
+ }));
33
+ return {
34
+ close: () => y(this, void 0, void 0, function* () {
35
+ var l, r, n;
36
+ t.current ? (n = t.current) === null || n === void 0 || n.close() : (u(), (r = (l = i.props).afterClose) === null || r === void 0 || r.call(l));
37
+ }),
38
+ replace: (l) => {
39
+ var r;
40
+ (r = t.current) === null || r === void 0 || r.replace(l);
41
+ },
42
+ isRendered: () => !!t.current
43
+ };
44
+ }
45
+ export {
46
+ I as renderImperatively
47
+ };
@@ -0,0 +1,12 @@
1
+ import { render as t, unmount as u } from "./render.mjs";
2
+ function m(e) {
3
+ const n = document.createElement("div");
4
+ document.body.appendChild(n);
5
+ function o() {
6
+ u(n) && n.parentNode && n.parentNode.removeChild(n);
7
+ }
8
+ return t(e, n), o;
9
+ }
10
+ export {
11
+ m as renderToBody
12
+ };
@@ -0,0 +1,13 @@
1
+ import { createPortal as e } from "react-dom";
2
+ import { resolveContainer as n } from "./get-container.mjs";
3
+ import { canUseDom as i } from "./can-use-dom.mjs";
4
+ function f(r, o) {
5
+ if (i && r) {
6
+ const t = n(r);
7
+ return e(o, t);
8
+ }
9
+ return o;
10
+ }
11
+ export {
12
+ f as renderToContainer
13
+ };
@@ -0,0 +1,52 @@
1
+ import { __awaiter as c } from "../../../tslib/tslib.es6.mjs";
2
+ import * as _ from "react-dom";
3
+ const e = Object.assign({}, _), {
4
+ version: s,
5
+ render: f,
6
+ unmountComponentAtNode: l
7
+ } = e;
8
+ let r;
9
+ try {
10
+ Number((s || "").split(".")[0]) >= 18 && e.createRoot && (r = e.createRoot);
11
+ } catch (n) {
12
+ }
13
+ function i(n) {
14
+ const {
15
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: t
16
+ } = e;
17
+ t && typeof t == "object" && (t.usingClientEntryPoint = n);
18
+ }
19
+ const o = "__antd_mobile_root__";
20
+ function m(n, t) {
21
+ f(n, t);
22
+ }
23
+ function a(n, t) {
24
+ i(!0);
25
+ const u = t[o] || r(t);
26
+ i(!1), u.render(n), t[o] = u;
27
+ }
28
+ function v(n, t) {
29
+ if (r) {
30
+ a(n, t);
31
+ return;
32
+ }
33
+ m(n, t);
34
+ }
35
+ function d(n) {
36
+ return l(n);
37
+ }
38
+ function R(n) {
39
+ return c(this, void 0, void 0, function* () {
40
+ return Promise.resolve().then(() => {
41
+ var t;
42
+ (t = n[o]) === null || t === void 0 || t.unmount(), delete n[o];
43
+ });
44
+ });
45
+ }
46
+ function E(n) {
47
+ return r ? R(n) : d(n);
48
+ }
49
+ export {
50
+ v as render,
51
+ E as unmount
52
+ };
@@ -0,0 +1,11 @@
1
+ import { bound as d } from "./bound.mjs";
2
+ function O(r, u, f) {
3
+ return r * u * f / (u + f * r);
4
+ }
5
+ function I(r, u, f, e, b = 0.15) {
6
+ return b === 0 ? d(r, u, f) : r < u ? -O(u - r, e, b) + u : r > f ? +O(r - f, e, b) + f : r;
7
+ }
8
+ export {
9
+ O as rubberband,
10
+ I as rubberbandIfOutOfBounds
11
+ };
@@ -0,0 +1,10 @@
1
+ import { useInitialized as u } from "./use-initialized.mjs";
2
+ const l = (e) => d(e.active, e.forceRender, e.destroyOnClose) ? e.children : null;
3
+ function d(e, n, r) {
4
+ const t = u(e);
5
+ return n || e ? !0 : t ? !r : !1;
6
+ }
7
+ export {
8
+ l as ShouldRender,
9
+ d as useShouldRender
10
+ };
@@ -0,0 +1,15 @@
1
+ import { canUseDom as t } from "./can-use-dom.mjs";
2
+ let s = !1;
3
+ if (t)
4
+ try {
5
+ const e = {};
6
+ Object.defineProperty(e, "passive", {
7
+ get() {
8
+ s = !0;
9
+ }
10
+ }), window.addEventListener("test-passive", null, e);
11
+ } catch (e) {
12
+ }
13
+ export {
14
+ s as supportsPassive
15
+ };
@@ -0,0 +1,6 @@
1
+ import { createUseGesture as r } from "../../../@use-gesture/react/dist/use-gesture-react.esm.mjs";
2
+ import { e, f as o } from "../../../@use-gesture/core/dist/actions-fe213e88.esm.mjs";
3
+ const i = r([e, o]);
4
+ export {
5
+ i as useDragAndPinch
6
+ };
@@ -0,0 +1,8 @@
1
+ import { useRef as r } from "react";
2
+ function n(e) {
3
+ const i = r(e);
4
+ return e && (i.current = !0), !!i.current;
5
+ }
6
+ export {
7
+ n as useInitialized
8
+ };