@storybook/components 6.5.0-alpha.3 → 6.5.0-alpha.30

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 (496) hide show
  1. package/dist/cjs/ActionBar/ActionBar.js +4 -2
  2. package/dist/cjs/ActionBar/ActionBar.stories.js +1 -1
  3. package/dist/cjs/Button/Button.js +8 -6
  4. package/dist/cjs/Loader/Loader.js +12 -8
  5. package/dist/cjs/Loader/Loader.stories.js +1 -1
  6. package/dist/cjs/ScrollArea/GlobalScrollAreaStyles.js +1 -1
  7. package/dist/cjs/ScrollArea/OverlayScrollbars.js +33 -14
  8. package/dist/cjs/ScrollArea/ScrollArea.js +12 -11
  9. package/dist/cjs/ScrollArea/ScrollArea.stories.js +6 -6
  10. package/dist/cjs/Zoom/Zoom.js +1 -1
  11. package/dist/cjs/Zoom/Zoom.stories.js +9 -7
  12. package/dist/cjs/Zoom/ZoomElement.js +9 -8
  13. package/dist/cjs/Zoom/ZoomIFrame.js +8 -8
  14. package/dist/cjs/addon-panel/addon-panel.js +5 -5
  15. package/dist/cjs/bar/bar.js +16 -10
  16. package/dist/cjs/bar/button.js +6 -4
  17. package/dist/cjs/bar/button.stories.js +1 -1
  18. package/dist/cjs/bar/separator.js +7 -7
  19. package/dist/cjs/blocks/ArgsTable/ArgControl.js +8 -6
  20. package/dist/cjs/blocks/ArgsTable/ArgJsDoc.js +5 -3
  21. package/dist/cjs/blocks/ArgsTable/ArgRow.js +2 -2
  22. package/dist/cjs/blocks/ArgsTable/ArgRow.stories.js +3 -3
  23. package/dist/cjs/blocks/ArgsTable/ArgValue.js +12 -12
  24. package/dist/cjs/blocks/ArgsTable/ArgsTable.js +12 -8
  25. package/dist/cjs/blocks/ArgsTable/ArgsTable.stories.js +6 -6
  26. package/dist/cjs/blocks/ArgsTable/SectionRow.js +8 -6
  27. package/dist/cjs/blocks/ArgsTable/SectionRow.stories.js +3 -3
  28. package/dist/cjs/blocks/ArgsTable/TabbedArgsTable.js +10 -6
  29. package/dist/cjs/blocks/ArgsTable/TabbedArgsTable.stories.js +1 -1
  30. package/dist/cjs/blocks/ArgsTable/index.js +2 -0
  31. package/dist/cjs/blocks/ColorPalette.js +5 -3
  32. package/dist/cjs/blocks/ColorPalette.stories.js +1 -1
  33. package/dist/cjs/blocks/Description.js +4 -4
  34. package/dist/cjs/blocks/Description.stories.js +1 -1
  35. package/dist/cjs/blocks/DocsPage.js +4 -4
  36. package/dist/cjs/blocks/DocsPage.stories.js +6 -6
  37. package/dist/cjs/blocks/EmptyBlock.js +2 -2
  38. package/dist/cjs/blocks/EmptyBlock.stories.js +1 -1
  39. package/dist/cjs/blocks/IFrame.js +13 -11
  40. package/dist/cjs/blocks/IconGallery.js +6 -4
  41. package/dist/cjs/blocks/IconGallery.stories.js +1 -1
  42. package/dist/cjs/blocks/Preview.js +16 -12
  43. package/dist/cjs/blocks/Preview.stories.js +6 -6
  44. package/dist/cjs/blocks/Source.js +6 -4
  45. package/dist/cjs/blocks/Source.stories.js +1 -1
  46. package/dist/cjs/blocks/Story.js +16 -10
  47. package/dist/cjs/blocks/Story.stories.js +9 -7
  48. package/dist/cjs/blocks/Toolbar.js +11 -9
  49. package/dist/cjs/blocks/Typeset.js +5 -3
  50. package/dist/cjs/blocks/Typeset.stories.js +1 -1
  51. package/dist/cjs/blocks/index.js +2 -0
  52. package/dist/cjs/brand/StorybookLogo.js +5 -3
  53. package/dist/cjs/brand/StorybookLogo.stories.js +1 -1
  54. package/dist/cjs/controls/Boolean.js +5 -5
  55. package/dist/cjs/controls/Boolean.stories.js +9 -7
  56. package/dist/cjs/controls/Color.js +13 -11
  57. package/dist/cjs/controls/Color.stories.js +9 -7
  58. package/dist/cjs/controls/Date.js +8 -8
  59. package/dist/cjs/controls/Date.stories.js +9 -7
  60. package/dist/cjs/controls/Files.js +7 -5
  61. package/dist/cjs/controls/Number.js +17 -8
  62. package/dist/cjs/controls/Number.stories.js +9 -7
  63. package/dist/cjs/controls/Object.js +8 -6
  64. package/dist/cjs/controls/Object.stories.js +9 -7
  65. package/dist/cjs/controls/Range.js +7 -7
  66. package/dist/cjs/controls/Range.stories.js +9 -7
  67. package/dist/cjs/controls/Text.js +8 -6
  68. package/dist/cjs/controls/Text.stories.js +9 -7
  69. package/dist/cjs/controls/helpers.js +2 -2
  70. package/dist/cjs/controls/index.js +8 -8
  71. package/dist/cjs/controls/options/Checkbox.js +9 -7
  72. package/dist/cjs/controls/options/Options.js +2 -0
  73. package/dist/cjs/controls/options/Options.stories.js +9 -7
  74. package/dist/cjs/controls/options/Select.js +2 -0
  75. package/dist/cjs/controls/options/helpers.js +7 -5
  76. package/dist/cjs/controls/options/index.js +2 -0
  77. package/dist/cjs/controls/react-editable-json-tree/JsonNodes.js +1748 -0
  78. package/dist/cjs/controls/react-editable-json-tree/index.js +36 -83
  79. package/dist/cjs/controls/react-editable-json-tree/types/dataTypes.js +12 -15
  80. package/dist/cjs/controls/react-editable-json-tree/types/inputUsageTypes.js +3 -6
  81. package/dist/cjs/controls/react-editable-json-tree/utils/objectTypes.js +3 -3
  82. package/dist/cjs/controls/react-editable-json-tree/utils/parse.js +2 -5
  83. package/dist/cjs/controls/react-editable-json-tree/utils/styles.js +1 -1
  84. package/dist/cjs/controls/types.js +5 -1
  85. package/dist/cjs/form/field/field.js +3 -1
  86. package/dist/cjs/form/form.stories.js +5 -3
  87. package/dist/cjs/form/input/input.js +15 -10
  88. package/dist/cjs/html.js +2 -0
  89. package/dist/cjs/icon/icon.js +28 -7
  90. package/dist/cjs/icon/icon.stories.js +2 -0
  91. package/dist/cjs/icon/icons.js +1 -1
  92. package/dist/cjs/index.js +296 -73
  93. package/dist/cjs/placeholder/placeholder.js +15 -9
  94. package/dist/cjs/placeholder/placeholder.stories.js +6 -6
  95. package/dist/cjs/spaced/Spaced.js +3 -1
  96. package/dist/cjs/syntaxhighlighter/lazy-syntaxhighlighter.js +8 -8
  97. package/dist/cjs/syntaxhighlighter/syntaxhighlighter-types.js +5 -1
  98. package/dist/cjs/syntaxhighlighter/syntaxhighlighter.js +15 -10
  99. package/dist/cjs/syntaxhighlighter/syntaxhighlighter.stories.js +5 -5
  100. package/dist/cjs/tabs/tabs.js +13 -11
  101. package/dist/cjs/tabs/tabs.stories.js +6 -4
  102. package/dist/cjs/tooltip/ListItem.js +7 -4
  103. package/dist/cjs/tooltip/Tooltip.js +5 -3
  104. package/dist/cjs/tooltip/TooltipLinkList.js +12 -9
  105. package/dist/cjs/tooltip/TooltipLinkList.stories.js +5 -5
  106. package/dist/cjs/tooltip/TooltipMessage.js +3 -1
  107. package/dist/cjs/tooltip/TooltipNote.js +3 -1
  108. package/dist/cjs/tooltip/WithTooltip.js +14 -9
  109. package/dist/cjs/tooltip/lazy-WithTooltip.js +9 -10
  110. package/dist/cjs/typography/DocumentFormatting.js +6 -555
  111. package/dist/cjs/typography/DocumentWrapper.stories.js +1 -1
  112. package/dist/cjs/typography/ResetWrapper.js +21 -0
  113. package/dist/cjs/typography/components.js +126 -0
  114. package/dist/cjs/typography/elements/A.js +36 -0
  115. package/dist/cjs/typography/elements/Blockquote.js +27 -0
  116. package/dist/cjs/typography/elements/Code.js +109 -0
  117. package/dist/cjs/typography/elements/DL.js +44 -0
  118. package/dist/cjs/typography/elements/Div.js +14 -0
  119. package/dist/cjs/typography/elements/H1.js +20 -0
  120. package/dist/cjs/typography/elements/H2.js +21 -0
  121. package/dist/cjs/typography/elements/H3.js +19 -0
  122. package/dist/cjs/typography/elements/H4.js +19 -0
  123. package/dist/cjs/typography/elements/H5.js +19 -0
  124. package/dist/cjs/typography/elements/H6.js +20 -0
  125. package/dist/cjs/typography/elements/HR.js +20 -0
  126. package/dist/cjs/typography/elements/Img.js +14 -0
  127. package/dist/cjs/typography/elements/LI.js +31 -0
  128. package/dist/cjs/typography/elements/Link.js +44 -0
  129. package/dist/cjs/typography/elements/OL.js +28 -0
  130. package/dist/cjs/typography/elements/P.js +24 -0
  131. package/dist/cjs/typography/elements/Pre.js +53 -0
  132. package/dist/cjs/typography/elements/Span.js +92 -0
  133. package/dist/cjs/typography/elements/TT.js +14 -0
  134. package/dist/cjs/typography/elements/Table.js +50 -0
  135. package/dist/cjs/typography/elements/UL.js +28 -0
  136. package/dist/cjs/typography/{shared.js → lib/common.js} +1 -1
  137. package/dist/cjs/typography/lib/isReactChildString.js +12 -0
  138. package/dist/cjs/typography/link/link.js +5 -3
  139. package/dist/cjs/utils/getStoryHref.js +71 -0
  140. package/dist/esm/ActionBar/ActionBar.js +5 -3
  141. package/dist/esm/Button/Button.js +3 -1
  142. package/dist/esm/Loader/Loader.js +5 -3
  143. package/dist/esm/ScrollArea/OverlayScrollbars.js +12 -10
  144. package/dist/esm/ScrollArea/ScrollArea.js +7 -5
  145. package/dist/esm/Zoom/Zoom.js +4 -4
  146. package/dist/esm/Zoom/Zoom.stories.js +3 -2
  147. package/dist/esm/Zoom/ZoomElement.js +5 -4
  148. package/dist/esm/Zoom/ZoomIFrame.js +6 -6
  149. package/dist/esm/bar/bar.js +7 -4
  150. package/dist/esm/bar/button.js +2 -1
  151. package/dist/esm/bar/separator.js +1 -0
  152. package/dist/esm/blocks/ArgsTable/ArgControl.js +3 -2
  153. package/dist/esm/blocks/ArgsTable/ArgJsDoc.js +2 -1
  154. package/dist/esm/blocks/ArgsTable/ArgRow.js +1 -1
  155. package/dist/esm/blocks/ArgsTable/ArgRow.stories.js +1 -1
  156. package/dist/esm/blocks/ArgsTable/ArgValue.js +5 -5
  157. package/dist/esm/blocks/ArgsTable/ArgsTable.js +6 -4
  158. package/dist/esm/blocks/ArgsTable/SectionRow.js +3 -2
  159. package/dist/esm/blocks/ArgsTable/SectionRow.stories.js +1 -1
  160. package/dist/esm/blocks/ArgsTable/TabbedArgsTable.js +17 -14
  161. package/dist/esm/blocks/ColorPalette.js +4 -2
  162. package/dist/esm/blocks/Description.js +2 -2
  163. package/dist/esm/blocks/DocsPage.js +1 -1
  164. package/dist/esm/blocks/EmptyBlock.js +1 -1
  165. package/dist/esm/blocks/IFrame.js +16 -14
  166. package/dist/esm/blocks/IconGallery.js +4 -2
  167. package/dist/esm/blocks/Preview.js +17 -15
  168. package/dist/esm/blocks/Source.js +2 -1
  169. package/dist/esm/blocks/Story.js +10 -5
  170. package/dist/esm/blocks/Story.stories.js +3 -2
  171. package/dist/esm/blocks/Toolbar.js +8 -6
  172. package/dist/esm/blocks/Typeset.js +6 -4
  173. package/dist/esm/brand/StorybookLogo.js +2 -1
  174. package/dist/esm/controls/Boolean.stories.js +3 -2
  175. package/dist/esm/controls/Color.js +7 -5
  176. package/dist/esm/controls/Color.stories.js +3 -2
  177. package/dist/esm/controls/Date.js +3 -3
  178. package/dist/esm/controls/Date.stories.js +3 -2
  179. package/dist/esm/controls/Files.js +4 -3
  180. package/dist/esm/controls/Number.js +11 -3
  181. package/dist/esm/controls/Number.stories.js +3 -2
  182. package/dist/esm/controls/Object.js +4 -4
  183. package/dist/esm/controls/Object.stories.js +3 -2
  184. package/dist/esm/controls/Range.js +1 -1
  185. package/dist/esm/controls/Range.stories.js +3 -2
  186. package/dist/esm/controls/Text.js +3 -2
  187. package/dist/esm/controls/Text.stories.js +3 -2
  188. package/dist/esm/controls/helpers.js +1 -1
  189. package/dist/esm/controls/index.js +3 -3
  190. package/dist/esm/controls/options/Checkbox.js +4 -3
  191. package/dist/esm/controls/options/Options.js +1 -0
  192. package/dist/esm/controls/options/Options.stories.js +3 -2
  193. package/dist/esm/controls/options/Select.js +1 -0
  194. package/dist/esm/controls/options/helpers.js +4 -3
  195. package/dist/esm/controls/react-editable-json-tree/JsonNodes.js +1703 -0
  196. package/dist/esm/controls/react-editable-json-tree/index.js +29 -73
  197. package/dist/esm/controls/react-editable-json-tree/types/dataTypes.js +1 -13
  198. package/dist/esm/controls/react-editable-json-tree/types/deltaTypes.js +1 -3
  199. package/dist/esm/controls/react-editable-json-tree/types/inputUsageTypes.js +1 -4
  200. package/dist/esm/controls/react-editable-json-tree/utils/objectTypes.js +5 -9
  201. package/dist/esm/controls/react-editable-json-tree/utils/parse.js +2 -4
  202. package/dist/esm/controls/react-editable-json-tree/utils/styles.js +4 -7
  203. package/dist/esm/controls/types.js +1 -0
  204. package/dist/esm/form/field/field.js +5 -3
  205. package/dist/esm/form/form.stories.js +3 -2
  206. package/dist/esm/form/input/input.js +11 -6
  207. package/dist/esm/icon/icon.js +7 -6
  208. package/dist/esm/icon/icon.stories.js +1 -0
  209. package/dist/esm/index.js +30 -5
  210. package/dist/esm/placeholder/placeholder.js +16 -12
  211. package/dist/esm/spaced/Spaced.js +6 -4
  212. package/dist/esm/syntaxhighlighter/lazy-syntaxhighlighter.js +3 -3
  213. package/dist/esm/syntaxhighlighter/syntaxhighlighter-types.js +1 -0
  214. package/dist/esm/syntaxhighlighter/syntaxhighlighter.js +17 -14
  215. package/dist/esm/tabs/tabs.js +7 -6
  216. package/dist/esm/tabs/tabs.stories.js +2 -1
  217. package/dist/esm/tooltip/ListItem.js +7 -4
  218. package/dist/esm/tooltip/Tooltip.js +4 -2
  219. package/dist/esm/tooltip/TooltipLinkList.js +5 -3
  220. package/dist/esm/tooltip/TooltipMessage.js +6 -4
  221. package/dist/esm/tooltip/TooltipNote.js +5 -3
  222. package/dist/esm/tooltip/WithTooltip.js +7 -4
  223. package/dist/esm/tooltip/lazy-WithTooltip.js +4 -4
  224. package/dist/esm/typography/DocumentFormatting.js +4 -480
  225. package/dist/esm/typography/ResetWrapper.js +11 -0
  226. package/dist/esm/typography/components.js +92 -0
  227. package/dist/esm/typography/elements/A.js +25 -0
  228. package/dist/esm/typography/elements/Blockquote.js +16 -0
  229. package/dist/esm/typography/elements/Code.js +64 -0
  230. package/dist/esm/typography/elements/DL.js +32 -0
  231. package/dist/esm/typography/elements/Div.js +3 -0
  232. package/dist/esm/typography/elements/H1.js +9 -0
  233. package/dist/esm/typography/elements/H2.js +10 -0
  234. package/dist/esm/typography/elements/H3.js +8 -0
  235. package/dist/esm/typography/elements/H4.js +8 -0
  236. package/dist/esm/typography/elements/H5.js +8 -0
  237. package/dist/esm/typography/elements/H6.js +9 -0
  238. package/dist/esm/typography/elements/HR.js +10 -0
  239. package/dist/esm/typography/elements/Img.js +4 -0
  240. package/dist/esm/typography/elements/LI.js +20 -0
  241. package/dist/esm/typography/elements/Link.js +29 -0
  242. package/dist/esm/typography/elements/OL.js +15 -0
  243. package/dist/esm/typography/elements/P.js +13 -0
  244. package/dist/esm/typography/elements/Pre.js +42 -0
  245. package/dist/esm/typography/elements/Span.js +81 -0
  246. package/dist/esm/typography/elements/TT.js +3 -0
  247. package/dist/esm/typography/elements/Table.js +39 -0
  248. package/dist/esm/typography/elements/UL.js +15 -0
  249. package/dist/esm/typography/{shared.js → lib/common.js} +0 -0
  250. package/dist/esm/typography/lib/isReactChildString.js +3 -0
  251. package/dist/esm/typography/link/link.js +2 -1
  252. package/dist/esm/utils/getStoryHref.js +46 -0
  253. package/dist/modern/ActionBar/ActionBar.js +4 -2
  254. package/dist/modern/Badge/Badge.js +1 -1
  255. package/dist/modern/Button/Button.js +3 -1
  256. package/dist/modern/Loader/Loader.js +4 -2
  257. package/dist/modern/ScrollArea/OverlayScrollbars.js +10 -8
  258. package/dist/modern/ScrollArea/ScrollArea.js +7 -5
  259. package/dist/modern/Zoom/Zoom.js +4 -4
  260. package/dist/modern/Zoom/ZoomElement.js +2 -2
  261. package/dist/modern/bar/bar.js +4 -2
  262. package/dist/modern/bar/button.js +4 -2
  263. package/dist/modern/blocks/ArgsTable/ArgJsDoc.js +1 -1
  264. package/dist/modern/blocks/ArgsTable/ArgRow.js +1 -1
  265. package/dist/modern/blocks/ArgsTable/ArgRow.stories.js +1 -1
  266. package/dist/modern/blocks/ArgsTable/ArgValue.js +1 -1
  267. package/dist/modern/blocks/ArgsTable/ArgsTable.js +1 -1
  268. package/dist/modern/blocks/ArgsTable/SectionRow.stories.js +1 -1
  269. package/dist/modern/blocks/ArgsTable/TabbedArgsTable.js +4 -2
  270. package/dist/modern/blocks/ColorPalette.js +5 -3
  271. package/dist/modern/blocks/Description.js +2 -2
  272. package/dist/modern/blocks/DocsPage.js +1 -1
  273. package/dist/modern/blocks/EmptyBlock.js +1 -1
  274. package/dist/modern/blocks/IFrame.js +3 -1
  275. package/dist/modern/blocks/IconGallery.js +5 -3
  276. package/dist/modern/blocks/Preview.js +5 -3
  277. package/dist/modern/blocks/Source.js +3 -1
  278. package/dist/modern/blocks/Story.js +9 -4
  279. package/dist/modern/blocks/Toolbar.js +6 -3
  280. package/dist/modern/blocks/Typeset.js +5 -3
  281. package/dist/modern/brand/StorybookIcon.js +1 -1
  282. package/dist/modern/brand/StorybookLogo.js +4 -2
  283. package/dist/modern/controls/Color.js +4 -2
  284. package/dist/modern/controls/Number.js +7 -0
  285. package/dist/modern/controls/Object.js +1 -2
  286. package/dist/modern/controls/index.js +2 -2
  287. package/dist/modern/controls/react-editable-json-tree/JsonNodes.js +1539 -0
  288. package/dist/modern/controls/react-editable-json-tree/index.js +18 -57
  289. package/dist/modern/controls/react-editable-json-tree/types/dataTypes.js +1 -13
  290. package/dist/modern/controls/react-editable-json-tree/types/deltaTypes.js +1 -3
  291. package/dist/modern/controls/react-editable-json-tree/types/inputUsageTypes.js +1 -4
  292. package/dist/modern/controls/react-editable-json-tree/utils/objectTypes.js +3 -7
  293. package/dist/modern/controls/react-editable-json-tree/utils/parse.js +2 -4
  294. package/dist/modern/controls/react-editable-json-tree/utils/styles.js +4 -7
  295. package/dist/modern/controls/types.js +1 -0
  296. package/dist/modern/form/field/field.js +4 -2
  297. package/dist/modern/form/input/input.js +9 -4
  298. package/dist/modern/icon/icon.js +6 -4
  299. package/dist/modern/index.js +29 -5
  300. package/dist/modern/placeholder/placeholder.js +4 -2
  301. package/dist/modern/spaced/Spaced.js +4 -2
  302. package/dist/modern/syntaxhighlighter/lazy-syntaxhighlighter.js +2 -2
  303. package/dist/modern/syntaxhighlighter/syntaxhighlighter-types.js +1 -0
  304. package/dist/modern/syntaxhighlighter/syntaxhighlighter.js +4 -2
  305. package/dist/modern/tooltip/ListItem.js +7 -4
  306. package/dist/modern/tooltip/Tooltip.js +4 -2
  307. package/dist/modern/tooltip/TooltipLinkList.js +6 -3
  308. package/dist/modern/tooltip/TooltipMessage.js +4 -2
  309. package/dist/modern/tooltip/TooltipNote.js +4 -2
  310. package/dist/modern/tooltip/WithTooltip.js +7 -4
  311. package/dist/modern/tooltip/lazy-WithTooltip.js +3 -3
  312. package/dist/modern/typography/DocumentFormatting.js +2 -413
  313. package/dist/modern/typography/ResetWrapper.js +11 -0
  314. package/dist/modern/typography/components.js +48 -0
  315. package/dist/modern/typography/elements/A.js +24 -0
  316. package/dist/modern/typography/elements/Blockquote.js +15 -0
  317. package/dist/modern/typography/elements/Code.js +52 -0
  318. package/dist/modern/typography/elements/DL.js +31 -0
  319. package/dist/modern/typography/elements/Div.js +3 -0
  320. package/dist/modern/typography/elements/H1.js +8 -0
  321. package/dist/modern/typography/elements/H2.js +9 -0
  322. package/dist/modern/typography/elements/H3.js +7 -0
  323. package/dist/modern/typography/elements/H4.js +7 -0
  324. package/dist/modern/typography/elements/H5.js +7 -0
  325. package/dist/modern/typography/elements/H6.js +8 -0
  326. package/dist/modern/typography/elements/HR.js +9 -0
  327. package/dist/modern/typography/elements/Img.js +4 -0
  328. package/dist/modern/typography/elements/LI.js +19 -0
  329. package/dist/modern/typography/elements/Link.js +24 -0
  330. package/dist/modern/typography/elements/OL.js +14 -0
  331. package/dist/modern/typography/elements/P.js +12 -0
  332. package/dist/modern/typography/elements/Pre.js +41 -0
  333. package/dist/modern/typography/elements/Span.js +80 -0
  334. package/dist/modern/typography/elements/TT.js +3 -0
  335. package/dist/modern/typography/elements/Table.js +38 -0
  336. package/dist/modern/typography/elements/UL.js +14 -0
  337. package/dist/modern/typography/{shared.js → lib/common.js} +0 -0
  338. package/dist/modern/typography/lib/isReactChildString.js +1 -0
  339. package/dist/modern/typography/link/link.js +4 -2
  340. package/dist/modern/utils/getStoryHref.js +13 -0
  341. package/dist/ts3.4/Button/Button.d.ts +2 -2
  342. package/dist/ts3.4/Colors/SideBySide.d.ts +1 -1
  343. package/dist/ts3.4/Loader/Loader.d.ts +1 -1
  344. package/dist/ts3.4/ScrollArea/OverlayScrollbars.d.ts +3 -3
  345. package/dist/ts3.4/Zoom/Zoom.d.ts +4 -4
  346. package/dist/ts3.4/Zoom/ZoomIFrame.d.ts +2 -2
  347. package/dist/ts3.4/bar/button.d.ts +6 -6
  348. package/dist/ts3.4/blocks/ArgsTable/ArgJsDoc.d.ts +1 -1
  349. package/dist/ts3.4/blocks/ColorPalette.d.ts +2 -2
  350. package/dist/ts3.4/blocks/DocsPage.d.ts +1 -1
  351. package/dist/ts3.4/blocks/Story.d.ts +1 -1
  352. package/dist/ts3.4/controls/Color.d.ts +2 -2
  353. package/dist/ts3.4/controls/Object.d.ts +2 -2
  354. package/dist/ts3.4/controls/index.d.ts +5 -4
  355. package/dist/ts3.4/controls/react-editable-json-tree/JsonNodes.d.ts +247 -0
  356. package/dist/ts3.4/controls/react-editable-json-tree/index.d.ts +42 -0
  357. package/dist/ts3.4/controls/react-editable-json-tree/types/dataTypes.d.ts +12 -0
  358. package/dist/ts3.4/controls/react-editable-json-tree/types/deltaTypes.d.ts +4 -0
  359. package/dist/ts3.4/controls/react-editable-json-tree/types/inputUsageTypes.d.ts +3 -0
  360. package/dist/ts3.4/controls/react-editable-json-tree/utils/objectTypes.d.ts +13 -0
  361. package/dist/ts3.4/controls/react-editable-json-tree/utils/parse.d.ts +6 -0
  362. package/dist/ts3.4/controls/react-editable-json-tree/utils/styles.d.ts +59 -0
  363. package/dist/ts3.4/form/index.d.ts +4 -4
  364. package/dist/ts3.4/form/input/input.d.ts +3 -3
  365. package/dist/ts3.4/index.d.ts +46 -2
  366. package/dist/ts3.4/syntaxhighlighter/lazy-syntaxhighlighter.d.ts +2 -2
  367. package/dist/ts3.4/syntaxhighlighter/syntaxhighlighter-types.d.ts +2 -2
  368. package/dist/ts3.4/tabs/tabs.d.ts +1 -1
  369. package/dist/ts3.4/tooltip/ListItem.d.ts +1 -1
  370. package/dist/ts3.4/tooltip/lazy-WithTooltip.d.ts +3 -3
  371. package/dist/ts3.4/typography/DocumentFormatting.d.ts +4 -55
  372. package/dist/ts3.4/typography/ResetWrapper.d.ts +9 -0
  373. package/dist/ts3.4/typography/components.d.ts +25 -0
  374. package/dist/ts3.4/typography/elements/A.d.ts +6 -0
  375. package/dist/ts3.4/typography/elements/Blockquote.d.ts +6 -0
  376. package/dist/ts3.4/typography/elements/Code.d.ts +6 -0
  377. package/dist/ts3.4/typography/elements/DL.d.ts +4 -0
  378. package/dist/ts3.4/typography/elements/Div.d.ts +4 -0
  379. package/dist/ts3.4/typography/elements/H1.d.ts +6 -0
  380. package/dist/ts3.4/typography/elements/H2.d.ts +6 -0
  381. package/dist/ts3.4/typography/elements/H3.d.ts +6 -0
  382. package/dist/ts3.4/typography/elements/H4.d.ts +6 -0
  383. package/dist/ts3.4/typography/elements/H5.d.ts +6 -0
  384. package/dist/ts3.4/typography/elements/H6.d.ts +6 -0
  385. package/dist/ts3.4/typography/elements/HR.d.ts +2 -0
  386. package/dist/ts3.4/typography/elements/Img.d.ts +2 -0
  387. package/dist/ts3.4/typography/elements/LI.d.ts +6 -0
  388. package/dist/ts3.4/typography/elements/Link.d.ts +2 -0
  389. package/dist/ts3.4/typography/elements/OL.d.ts +4 -0
  390. package/dist/ts3.4/typography/elements/P.d.ts +6 -0
  391. package/dist/ts3.4/typography/elements/Pre.d.ts +6 -0
  392. package/dist/ts3.4/typography/elements/Span.d.ts +6 -0
  393. package/dist/ts3.4/typography/elements/TT.d.ts +4 -0
  394. package/dist/ts3.4/typography/elements/Table.d.ts +6 -0
  395. package/dist/ts3.4/typography/elements/UL.d.ts +4 -0
  396. package/dist/ts3.4/typography/{shared.d.ts → lib/common.d.ts} +0 -0
  397. package/dist/ts3.4/typography/lib/isReactChildString.d.ts +2 -0
  398. package/dist/ts3.4/utils/getStoryHref.d.ts +1 -0
  399. package/dist/ts3.9/Button/Button.d.ts +2 -2
  400. package/dist/ts3.9/Colors/SideBySide.d.ts +1 -1
  401. package/dist/ts3.9/Loader/Loader.d.ts +1 -1
  402. package/dist/ts3.9/ScrollArea/OverlayScrollbars.d.ts +3 -3
  403. package/dist/ts3.9/Zoom/Zoom.d.ts +4 -4
  404. package/dist/ts3.9/Zoom/ZoomIFrame.d.ts +2 -2
  405. package/dist/ts3.9/bar/button.d.ts +6 -6
  406. package/dist/ts3.9/blocks/ArgsTable/ArgJsDoc.d.ts +1 -1
  407. package/dist/ts3.9/blocks/ColorPalette.d.ts +2 -2
  408. package/dist/ts3.9/blocks/DocsPage.d.ts +1 -1
  409. package/dist/ts3.9/blocks/Story.d.ts +1 -1
  410. package/dist/ts3.9/controls/Color.d.ts +2 -2
  411. package/dist/ts3.9/controls/Object.d.ts +2 -2
  412. package/dist/ts3.9/controls/index.d.ts +5 -4
  413. package/dist/ts3.9/controls/react-editable-json-tree/JsonNodes.d.ts +247 -0
  414. package/dist/ts3.9/controls/react-editable-json-tree/index.d.ts +42 -0
  415. package/dist/ts3.9/controls/react-editable-json-tree/types/dataTypes.d.ts +12 -0
  416. package/dist/ts3.9/controls/react-editable-json-tree/types/deltaTypes.d.ts +4 -0
  417. package/dist/ts3.9/controls/react-editable-json-tree/types/inputUsageTypes.d.ts +3 -0
  418. package/dist/ts3.9/controls/react-editable-json-tree/utils/objectTypes.d.ts +13 -0
  419. package/dist/ts3.9/controls/react-editable-json-tree/utils/parse.d.ts +6 -0
  420. package/dist/ts3.9/controls/react-editable-json-tree/utils/styles.d.ts +59 -0
  421. package/dist/ts3.9/form/index.d.ts +4 -4
  422. package/dist/ts3.9/form/input/input.d.ts +3 -3
  423. package/dist/ts3.9/index.d.ts +46 -2
  424. package/dist/ts3.9/syntaxhighlighter/lazy-syntaxhighlighter.d.ts +2 -2
  425. package/dist/ts3.9/syntaxhighlighter/syntaxhighlighter-types.d.ts +2 -2
  426. package/dist/ts3.9/tabs/tabs.d.ts +1 -1
  427. package/dist/ts3.9/tooltip/ListItem.d.ts +1 -1
  428. package/dist/ts3.9/tooltip/lazy-WithTooltip.d.ts +3 -3
  429. package/dist/ts3.9/typography/DocumentFormatting.d.ts +4 -55
  430. package/dist/ts3.9/typography/ResetWrapper.d.ts +9 -0
  431. package/dist/ts3.9/typography/components.d.ts +25 -0
  432. package/dist/ts3.9/typography/elements/A.d.ts +6 -0
  433. package/dist/ts3.9/typography/elements/Blockquote.d.ts +6 -0
  434. package/dist/ts3.9/typography/elements/Code.d.ts +6 -0
  435. package/dist/ts3.9/typography/elements/DL.d.ts +4 -0
  436. package/dist/ts3.9/typography/elements/Div.d.ts +4 -0
  437. package/dist/ts3.9/typography/elements/H1.d.ts +6 -0
  438. package/dist/ts3.9/typography/elements/H2.d.ts +6 -0
  439. package/dist/ts3.9/typography/elements/H3.d.ts +6 -0
  440. package/dist/ts3.9/typography/elements/H4.d.ts +6 -0
  441. package/dist/ts3.9/typography/elements/H5.d.ts +6 -0
  442. package/dist/ts3.9/typography/elements/H6.d.ts +6 -0
  443. package/dist/ts3.9/typography/elements/HR.d.ts +2 -0
  444. package/dist/ts3.9/typography/elements/Img.d.ts +2 -0
  445. package/dist/ts3.9/typography/elements/LI.d.ts +6 -0
  446. package/dist/ts3.9/typography/elements/Link.d.ts +2 -0
  447. package/dist/ts3.9/typography/elements/OL.d.ts +4 -0
  448. package/dist/ts3.9/typography/elements/P.d.ts +6 -0
  449. package/dist/ts3.9/typography/elements/Pre.d.ts +6 -0
  450. package/dist/ts3.9/typography/elements/Span.d.ts +6 -0
  451. package/dist/ts3.9/typography/elements/TT.d.ts +4 -0
  452. package/dist/ts3.9/typography/elements/Table.d.ts +6 -0
  453. package/dist/ts3.9/typography/elements/UL.d.ts +4 -0
  454. package/dist/ts3.9/typography/{shared.d.ts → lib/common.d.ts} +1 -1
  455. package/dist/ts3.9/typography/lib/isReactChildString.d.ts +2 -0
  456. package/dist/ts3.9/utils/getStoryHref.d.ts +1 -0
  457. package/package.json +6 -5
  458. package/dist/cjs/Colors/colorpalette.stories.mdx +0 -125
  459. package/dist/cjs/blocks/DocsPageExampleCaption.md +0 -92
  460. package/dist/cjs/blocks/DocsPageExampleCaption.mdx +0 -92
  461. package/dist/cjs/controls/react-editable-json-tree/LICENSE.md +0 -14
  462. package/dist/cjs/controls/react-editable-json-tree/components/JsonAddValue.js +0 -228
  463. package/dist/cjs/controls/react-editable-json-tree/components/JsonArray.js +0 -507
  464. package/dist/cjs/controls/react-editable-json-tree/components/JsonFunctionValue.js +0 -321
  465. package/dist/cjs/controls/react-editable-json-tree/components/JsonNode.js +0 -422
  466. package/dist/cjs/controls/react-editable-json-tree/components/JsonObject.js +0 -509
  467. package/dist/cjs/controls/react-editable-json-tree/components/JsonValue.js +0 -312
  468. package/dist/cjs/typings.d.js +0 -1
  469. package/dist/cjs/typography/DocumentFormattingSample.md +0 -141
  470. package/dist/cjs/typography/typography.stories.mdx +0 -75
  471. package/dist/esm/Colors/colorpalette.stories.mdx +0 -125
  472. package/dist/esm/blocks/DocsPageExampleCaption.md +0 -92
  473. package/dist/esm/blocks/DocsPageExampleCaption.mdx +0 -92
  474. package/dist/esm/controls/react-editable-json-tree/LICENSE.md +0 -14
  475. package/dist/esm/controls/react-editable-json-tree/components/JsonAddValue.js +0 -194
  476. package/dist/esm/controls/react-editable-json-tree/components/JsonArray.js +0 -465
  477. package/dist/esm/controls/react-editable-json-tree/components/JsonFunctionValue.js +0 -282
  478. package/dist/esm/controls/react-editable-json-tree/components/JsonNode.js +0 -387
  479. package/dist/esm/controls/react-editable-json-tree/components/JsonObject.js +0 -467
  480. package/dist/esm/controls/react-editable-json-tree/components/JsonValue.js +0 -272
  481. package/dist/esm/typings.d.js +0 -0
  482. package/dist/esm/typography/DocumentFormattingSample.md +0 -141
  483. package/dist/esm/typography/typography.stories.mdx +0 -75
  484. package/dist/modern/Colors/colorpalette.stories.mdx +0 -125
  485. package/dist/modern/blocks/DocsPageExampleCaption.md +0 -92
  486. package/dist/modern/blocks/DocsPageExampleCaption.mdx +0 -92
  487. package/dist/modern/controls/react-editable-json-tree/LICENSE.md +0 -14
  488. package/dist/modern/controls/react-editable-json-tree/components/JsonAddValue.js +0 -148
  489. package/dist/modern/controls/react-editable-json-tree/components/JsonArray.js +0 -392
  490. package/dist/modern/controls/react-editable-json-tree/components/JsonFunctionValue.js +0 -215
  491. package/dist/modern/controls/react-editable-json-tree/components/JsonNode.js +0 -339
  492. package/dist/modern/controls/react-editable-json-tree/components/JsonObject.js +0 -394
  493. package/dist/modern/controls/react-editable-json-tree/components/JsonValue.js +0 -202
  494. package/dist/modern/typings.d.js +0 -0
  495. package/dist/modern/typography/DocumentFormattingSample.md +0 -141
  496. package/dist/modern/typography/typography.stories.mdx +0 -75
@@ -1,92 +0,0 @@
1
- # My Example Markdown
2
-
3
- The group looked like tall, exotic grazing animals, swaying gracefully and unconsciously with the movement of the train, their high heels like polished hooves against the gray metal of the Flatline as a construct, a hardwired ROM cassette replicating a dead man’s skills, obsessions, kneejerk responses.
4
-
5
- ![An image](http://place-hold.it/350x150)
6
-
7
- He stared at the clinic, Molly took him to the Tank War, mouth touched with hot gold as a gliding cursor struck sparks from the wall of a skyscraper canyon. Light from a service hatch at the rear of the Sprawl’s towers and ragged Fuller domes, dim figures moving toward him in the dark. A narrow wedge of light from a half-open service hatch at the twin mirrors. Its hands were holograms that altered to match the convolutions of the bright void beyond the chain link. Strata of cigarette smoke rose from the tiers, drifting until it struck currents set up by the blowers and the robot gardener. Still it was a steady pulse of pain midway down his spine. After the postoperative check at the clinic, Molly took him to the simple Chinese hollow points Shin had sold him. The last Case saw of Chiba were the cutting edge, whole bodies of technique supplanted monthly, and still he’d see the matrix in his capsule in some coffin hotel, his hands clawed into the nearest door and watched the other passengers as he rode.
8
-
9
- ## Typography
10
-
11
- # H1
12
-
13
- ## H2
14
-
15
- ### H3
16
-
17
- #### H4
18
-
19
- ##### H5
20
-
21
- ###### H6
22
-
23
- Emphasis, aka italics, with _asterisks_ or _underscores_.
24
-
25
- Strong emphasis, aka bold, with **asterisks** or **underscores**.
26
-
27
- Combined emphasis with **asterisks and _underscores_**.
28
-
29
- Strikethrough uses two tildes. ~~Scratch this.~~
30
-
31
- Maybe include a [link](http://storybook.js.org) to your project as well.
32
-
33
- ## Block quote
34
-
35
- How about a block quote to spice things up?
36
-
37
- > In der Bilanz ausgewiesene Verbindlichkeiten im Zusammenhang mit leistungsorientierten Pensionsfonds sind bei der Ermittlung des harten Kernkapitals („Common Equity Tier 1“, CET1) einhalten müssen. Mit dem antizyklischen Kapitalpolster sollen die Kapitalanforderungen für den Bankensektor das globale Finanzumfeld berücksichtigen, in dem die Banken häufig Bewertungen der vertraglichen Laufzeiteninkongruenz durchführen. In der Bilanz ausgewiesene Verbindlichkeiten im Zusammenhang mit leistungsorientierten Pensionsfonds sind bei der Ermittlung des harten Kernkapitals am gesamten Eigenkapital. Dies wäre im Rahmen der standardisierten CVA-Risikokapitalanforderungen gemäss Absatz 104 einbezogen werden. Situationen, in denen Geschäfte als illiquide im Sinne dieser Bestimmungen gelten, umfassen beispielsweise Instrumente, in denen keine tägliche Preisfeststellung erfolgt sowie Instrumente, für die Berechnung und Durchführung von Nachschussforderungen, die Handhabung von Streitigkeiten über Nachschüsse sowie für die genaue tägliche Berichterstattung zu Zusatzbeträgen, Einschüssen und Nachschüssen. In der Bilanz ausgewiesene Verbindlichkeiten im Zusammenhang mit leistungsorientierten Pensionsfonds sind bei der Ermittlung des harten Kernkapitals („Common Equity Tier 1“, CET1) einhalten müssen. Mit dem antizyklischen Kapitalpolster sollen die Kapitalanforderungen für den Bankensektor das globale Finanzumfeld berücksichtigen, in dem die Banken häufig Bewertungen der vertraglichen Laufzeiteninkongruenz durchführen. Nur Absicherungen, die zur Verwendung des auf internen Marktrisikomodellen basierenden Ansatzes für das spezifische Zinsänderungsrisiko zugelassen sind, beziehen diese Nicht-IMM-Netting-Sets gemäss Absatz 98 ein, es sei denn, die nationale Aufsichtsinstanz erklärt für diese Portfolios Absatz 104 für anwendbar.
38
-
39
- ## Lists
40
-
41
- Mixed list:
42
-
43
- 1. First ordered list item
44
- 2. Another item
45
- - Unordered sub-list.
46
- 3. Actual numbers don't matter, just that it's a number
47
- 1. Ordered sub-list
48
- 2. Yo ho ho
49
- 4. And another item.
50
-
51
- Bullet list:
52
-
53
- - Whatever
54
- - This is getting
55
- - Very ...
56
- - Very ...
57
- - Tedious!
58
- - It's getting late, nothing to see here
59
-
60
- Numbered:
61
-
62
- 1. You get the idea
63
- 2. You still get the idea
64
- 3. You really get the idea
65
- 4. I'm done
66
-
67
- ## Tables
68
-
69
- A basic table:
70
-
71
- | Tables | Are | Cool |
72
- | ------------- | :-----------: | -----: |
73
- | col 3 is | right-aligned | \$1600 |
74
- | col 2 is | centered | \$12 |
75
- | zebra stripes | are neat | \$1 |
76
-
77
- Let's throw in a crazy table, because why not?
78
-
79
- | | [React](app/react) | [React Native](app/react-native) | [Vue](app/vue) | [Angular](app/angular) | [Mithril](app/mithril) | [HTML](app/html) | [Marko](app/marko) | [Svelte](app/svelte) | [Riot](app/riot) | [Ember](app/ember) | [Preact](app/preact) |
80
- | --------------------------------- | :----------------: | :------------------------------: | :------------: | :--------------------: | :--------------------: | :--------------: | :----------------: | :------------------: | :--------------: | :----------------: | :------------------: |
81
- | [a11y](addons/a11y) | + | | + | + | + | + | + | | | + | + |
82
- | [actions](addons/actions) | + | + | + | + | + | + | + | + | + | + | + |
83
- | [backgrounds](addons/backgrounds) | + | \* | + | + | + | + | + | + | + | + | + |
84
- | [centered](addons/centered) | + | | + | + | + | + | | + | | + | + |
85
-
86
- ## Code
87
-
88
- Sometimes you might want to manually include some \`code\` examples? Let's do it.
89
-
90
- ```js
91
- const Button = () => <button />;
92
- ```
@@ -1,92 +0,0 @@
1
- # My Example Markdown
2
-
3
- The group looked like tall, exotic grazing animals, swaying gracefully and unconsciously with the movement of the train, their high heels like polished hooves against the gray metal of the Flatline as a construct, a hardwired ROM cassette replicating a dead man’s skills, obsessions, kneejerk responses.
4
-
5
- ![An image](http://place-hold.it/350x150)
6
-
7
- He stared at the clinic, Molly took him to the Tank War, mouth touched with hot gold as a gliding cursor struck sparks from the wall of a skyscraper canyon. Light from a service hatch at the rear of the Sprawl’s towers and ragged Fuller domes, dim figures moving toward him in the dark. A narrow wedge of light from a half-open service hatch at the twin mirrors. Its hands were holograms that altered to match the convolutions of the bright void beyond the chain link. Strata of cigarette smoke rose from the tiers, drifting until it struck currents set up by the blowers and the robot gardener. Still it was a steady pulse of pain midway down his spine. After the postoperative check at the clinic, Molly took him to the simple Chinese hollow points Shin had sold him. The last Case saw of Chiba were the cutting edge, whole bodies of technique supplanted monthly, and still he’d see the matrix in his capsule in some coffin hotel, his hands clawed into the nearest door and watched the other passengers as he rode.
8
-
9
- ## Typography
10
-
11
- # H1
12
-
13
- ## H2
14
-
15
- ### H3
16
-
17
- #### H4
18
-
19
- ##### H5
20
-
21
- ###### H6
22
-
23
- Emphasis, aka italics, with _asterisks_ or _underscores_.
24
-
25
- Strong emphasis, aka bold, with **asterisks** or **underscores**.
26
-
27
- Combined emphasis with **asterisks and _underscores_**.
28
-
29
- Strikethrough uses two tildes. ~~Scratch this.~~
30
-
31
- Maybe include a [link](http://storybook.js.org) to your project as well.
32
-
33
- ## Block quote
34
-
35
- How about a block quote to spice things up?
36
-
37
- > In der Bilanz ausgewiesene Verbindlichkeiten im Zusammenhang mit leistungsorientierten Pensionsfonds sind bei der Ermittlung des harten Kernkapitals („Common Equity Tier 1“, CET1) einhalten müssen. Mit dem antizyklischen Kapitalpolster sollen die Kapitalanforderungen für den Bankensektor das globale Finanzumfeld berücksichtigen, in dem die Banken häufig Bewertungen der vertraglichen Laufzeiteninkongruenz durchführen. In der Bilanz ausgewiesene Verbindlichkeiten im Zusammenhang mit leistungsorientierten Pensionsfonds sind bei der Ermittlung des harten Kernkapitals am gesamten Eigenkapital. Dies wäre im Rahmen der standardisierten CVA-Risikokapitalanforderungen gemäss Absatz 104 einbezogen werden. Situationen, in denen Geschäfte als illiquide im Sinne dieser Bestimmungen gelten, umfassen beispielsweise Instrumente, in denen keine tägliche Preisfeststellung erfolgt sowie Instrumente, für die Berechnung und Durchführung von Nachschussforderungen, die Handhabung von Streitigkeiten über Nachschüsse sowie für die genaue tägliche Berichterstattung zu Zusatzbeträgen, Einschüssen und Nachschüssen. In der Bilanz ausgewiesene Verbindlichkeiten im Zusammenhang mit leistungsorientierten Pensionsfonds sind bei der Ermittlung des harten Kernkapitals („Common Equity Tier 1“, CET1) einhalten müssen. Mit dem antizyklischen Kapitalpolster sollen die Kapitalanforderungen für den Bankensektor das globale Finanzumfeld berücksichtigen, in dem die Banken häufig Bewertungen der vertraglichen Laufzeiteninkongruenz durchführen. Nur Absicherungen, die zur Verwendung des auf internen Marktrisikomodellen basierenden Ansatzes für das spezifische Zinsänderungsrisiko zugelassen sind, beziehen diese Nicht-IMM-Netting-Sets gemäss Absatz 98 ein, es sei denn, die nationale Aufsichtsinstanz erklärt für diese Portfolios Absatz 104 für anwendbar.
38
-
39
- ## Lists
40
-
41
- Mixed list:
42
-
43
- 1. First ordered list item
44
- 2. Another item
45
- - Unordered sub-list.
46
- 3. Actual numbers don't matter, just that it's a number
47
- 1. Ordered sub-list
48
- 2. Yo ho ho
49
- 4. And another item.
50
-
51
- Bullet list:
52
-
53
- - Whatever
54
- - This is getting
55
- - Very ...
56
- - Very ...
57
- - Tedious!
58
- - It's getting late, nothing to see here
59
-
60
- Numbered:
61
-
62
- 1. You get the idea
63
- 2. You still get the idea
64
- 3. You really get the idea
65
- 4. I'm done
66
-
67
- ## Tables
68
-
69
- A basic table:
70
-
71
- | Tables | Are | Cool |
72
- | ------------- | :-----------: | -----: |
73
- | col 3 is | right-aligned | \$1600 |
74
- | col 2 is | centered | \$12 |
75
- | zebra stripes | are neat | \$1 |
76
-
77
- Let's throw in a crazy table, because why not?
78
-
79
- | | [React](app/react) | [React Native](app/react-native) | [Vue](app/vue) | [Angular](app/angular) | [Mithril](app/mithril) | [HTML](app/html) | [Marko](app/marko) | [Svelte](app/svelte) | [Riot](app/riot) | [Ember](app/ember) | [Preact](app/preact) |
80
- | --------------------------------- | :----------------: | :------------------------------: | :------------: | :--------------------: | :--------------------: | :--------------: | :----------------: | :------------------: | :--------------: | :----------------: | :------------------: |
81
- | [a11y](addons/a11y) | + | | + | + | + | + | + | | | + | + |
82
- | [actions](addons/actions) | + | + | + | + | + | + | + | + | + | + | + |
83
- | [backgrounds](addons/backgrounds) | + | \* | + | + | + | + | + | + | + | + | + |
84
- | [centered](addons/centered) | + | | + | + | + | + | | + | | + | + |
85
-
86
- ## Code
87
-
88
- Sometimes you might want to manually include some \`code\` examples? Let's do it.
89
-
90
- ```js
91
- const Button = () => <button />;
92
- ```
@@ -1,14 +0,0 @@
1
- Copyright (c) 2016 Oxyno-zeta (Havrileck Alexandre)
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
4
- documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
5
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
6
- persons to whom the Software is furnished to do so, subject to the following conditions:
7
-
8
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
9
- Software.
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
12
- WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
13
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
14
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,194 +0,0 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
2
-
3
- import "core-js/modules/es.string.repeat.js";
4
- import "core-js/modules/es.object.get-prototype-of.js";
5
- import "core-js/modules/es.reflect.construct.js";
6
- import "core-js/modules/es.symbol.js";
7
- import "core-js/modules/es.symbol.description.js";
8
- import "core-js/modules/es.object.to-string.js";
9
- import "core-js/modules/es.symbol.iterator.js";
10
- import "core-js/modules/es.string.iterator.js";
11
- import "core-js/modules/es.array.iterator.js";
12
- import "core-js/modules/web.dom-collections.iterator.js";
13
-
14
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
-
16
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
-
18
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
19
-
20
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
21
-
22
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
-
24
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
25
-
26
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
27
-
28
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
29
-
30
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
-
32
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
33
-
34
- import React, { Component } from 'react';
35
- import PropTypes from 'prop-types';
36
- import inputUsageTypes from '../types/inputUsageTypes';
37
-
38
- var JsonAddValue = /*#__PURE__*/function (_Component) {
39
- _inherits(JsonAddValue, _Component);
40
-
41
- var _super = _createSuper(JsonAddValue);
42
-
43
- function JsonAddValue(props) {
44
- var _this;
45
-
46
- _classCallCheck(this, JsonAddValue);
47
-
48
- _this = _super.call(this, props);
49
- _this.state = {
50
- inputRefKey: null,
51
- inputRefValue: null
52
- }; // Bind
53
-
54
- _this.refInputValue = _this.refInputValue.bind(_assertThisInitialized(_this));
55
- _this.refInputKey = _this.refInputKey.bind(_assertThisInitialized(_this));
56
- _this.onKeydown = _this.onKeydown.bind(_assertThisInitialized(_this));
57
- _this.onSubmit = _this.onSubmit.bind(_assertThisInitialized(_this));
58
- return _this;
59
- }
60
-
61
- _createClass(JsonAddValue, [{
62
- key: "componentDidMount",
63
- value: function componentDidMount() {
64
- var _this$state = this.state,
65
- inputRefKey = _this$state.inputRefKey,
66
- inputRefValue = _this$state.inputRefValue;
67
- var onlyValue = this.props.onlyValue;
68
-
69
- if (inputRefKey && typeof inputRefKey.focus === 'function') {
70
- inputRefKey.focus();
71
- }
72
-
73
- if (onlyValue && inputRefValue && typeof inputRefValue.focus === 'function') {
74
- inputRefValue.focus();
75
- }
76
-
77
- document.addEventListener('keydown', this.onKeydown);
78
- }
79
- }, {
80
- key: "componentWillUnmount",
81
- value: function componentWillUnmount() {
82
- document.removeEventListener('keydown', this.onKeydown);
83
- }
84
- }, {
85
- key: "onKeydown",
86
- value: function onKeydown(event) {
87
- if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey || event.repeat) return;
88
-
89
- if (event.code === 'Enter' || event.key === 'Enter') {
90
- event.preventDefault();
91
- this.onSubmit();
92
- }
93
-
94
- if (event.code === 'Escape' || event.key === 'Escape') {
95
- event.preventDefault();
96
- this.props.handleCancel();
97
- }
98
- }
99
- }, {
100
- key: "onSubmit",
101
- value: function onSubmit() {
102
- var _this$props = this.props,
103
- handleAdd = _this$props.handleAdd,
104
- onlyValue = _this$props.onlyValue,
105
- onSubmitValueParser = _this$props.onSubmitValueParser,
106
- keyPath = _this$props.keyPath,
107
- deep = _this$props.deep;
108
- var _this$state2 = this.state,
109
- inputRefKey = _this$state2.inputRefKey,
110
- inputRefValue = _this$state2.inputRefValue;
111
- var result = {}; // Check if we have the key
112
-
113
- if (!onlyValue) {
114
- // Check that there is a key
115
- if (!inputRefKey.value) {
116
- // Empty key => Not authorized
117
- return;
118
- }
119
-
120
- result.key = inputRefKey.value;
121
- }
122
-
123
- result.newValue = onSubmitValueParser(false, keyPath, deep, result.key, inputRefValue.value);
124
- handleAdd(result);
125
- }
126
- }, {
127
- key: "refInputKey",
128
- value: function refInputKey(node) {
129
- this.state.inputRefKey = node;
130
- }
131
- }, {
132
- key: "refInputValue",
133
- value: function refInputValue(node) {
134
- this.state.inputRefValue = node;
135
- }
136
- }, {
137
- key: "render",
138
- value: function render() {
139
- var _this$props2 = this.props,
140
- handleCancel = _this$props2.handleCancel,
141
- onlyValue = _this$props2.onlyValue,
142
- addButtonElement = _this$props2.addButtonElement,
143
- cancelButtonElement = _this$props2.cancelButtonElement,
144
- inputElementGenerator = _this$props2.inputElementGenerator,
145
- keyPath = _this$props2.keyPath,
146
- deep = _this$props2.deep;
147
- var addButtonElementLayout = /*#__PURE__*/React.cloneElement(addButtonElement, {
148
- onClick: this.onSubmit
149
- });
150
- var cancelButtonElementLayout = /*#__PURE__*/React.cloneElement(cancelButtonElement, {
151
- onClick: handleCancel
152
- });
153
- var inputElementValue = inputElementGenerator(inputUsageTypes.VALUE, keyPath, deep);
154
- var inputElementValueLayout = /*#__PURE__*/React.cloneElement(inputElementValue, {
155
- placeholder: 'Value',
156
- ref: this.refInputValue
157
- });
158
- var inputElementKeyLayout = null;
159
-
160
- if (!onlyValue) {
161
- var inputElementKey = inputElementGenerator(inputUsageTypes.KEY, keyPath, deep);
162
- inputElementKeyLayout = /*#__PURE__*/React.cloneElement(inputElementKey, {
163
- placeholder: 'Key',
164
- ref: this.refInputKey
165
- });
166
- }
167
-
168
- return /*#__PURE__*/React.createElement("span", {
169
- className: "rejt-add-value-node"
170
- }, inputElementKeyLayout, inputElementValueLayout, cancelButtonElementLayout, addButtonElementLayout);
171
- }
172
- }]);
173
-
174
- return JsonAddValue;
175
- }(Component);
176
-
177
- JsonAddValue.displayName = "JsonAddValue";
178
- JsonAddValue.propTypes = {
179
- handleAdd: PropTypes.func.isRequired,
180
- handleCancel: PropTypes.func.isRequired,
181
- onlyValue: PropTypes.bool,
182
- addButtonElement: PropTypes.element,
183
- cancelButtonElement: PropTypes.element,
184
- inputElementGenerator: PropTypes.func.isRequired,
185
- keyPath: PropTypes.array,
186
- deep: PropTypes.number,
187
- onSubmitValueParser: PropTypes.func.isRequired
188
- };
189
- JsonAddValue.defaultProps = {
190
- onlyValue: false,
191
- addButtonElement: /*#__PURE__*/React.createElement("button", null, "+"),
192
- cancelButtonElement: /*#__PURE__*/React.createElement("button", null, "c")
193
- };
194
- export default JsonAddValue;