@vitus-labs/rocketstories 0.47.0 → 0.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6424,7 +6424,7 @@ var drawChart = (function (exports) {
6424
6424
  </script>
6425
6425
  <script>
6426
6426
  /*<!--*/
6427
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstories.js","children":[{"name":"Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","uid":"453d-1"},{"name":"src","children":[{"name":"components/NotFound.tsx","uid":"453d-3"},{"name":"utils","children":[{"uid":"453d-5","name":"theme.ts"},{"uid":"453d-7","name":"code.ts"},{"name":"controls","children":[{"uid":"453d-11","name":"attrs.ts"},{"uid":"453d-13","name":"dimensionToControls.ts"},{"uid":"453d-15","name":"disableControls.ts"},{"uid":"453d-17","name":"filterDefaultValues.ts"},{"uid":"453d-19","name":"constants.ts"},{"uid":"453d-21","name":"makeControls.ts"},{"uid":"453d-33","name":"valuesToControls.ts"}]},{"uid":"453d-37","name":"dimensions.ts"}]},{"name":"constants/controls.ts","uid":"453d-9"},{"name":"controls","children":[{"uid":"453d-23","name":"element.ts"},{"uid":"453d-25","name":"list.ts"},{"uid":"453d-27","name":"overlay.ts"},{"uid":"453d-29","name":"rocketstyle.ts"},{"uid":"453d-31","name":"text.ts"}]},{"name":"stories","children":[{"uid":"453d-35","name":"dimension.tsx"},{"uid":"453d-39","name":"main.tsx"},{"uid":"453d-41","name":"story.tsx"}]},{"uid":"453d-43","name":"rocketstories.tsx"},{"uid":"453d-45","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"453d-1":{"renderedLength":634,"gzipLength":340,"brotliLength":0,"mainUid":"453d-0"},"453d-3":{"renderedLength":236,"gzipLength":202,"brotliLength":0,"mainUid":"453d-2"},"453d-5":{"renderedLength":113,"gzipLength":129,"brotliLength":0,"mainUid":"453d-4"},"453d-7":{"renderedLength":5174,"gzipLength":1167,"brotliLength":0,"mainUid":"453d-6"},"453d-9":{"renderedLength":246,"gzipLength":141,"brotliLength":0,"mainUid":"453d-8"},"453d-11":{"renderedLength":480,"gzipLength":264,"brotliLength":0,"mainUid":"453d-10"},"453d-13":{"renderedLength":454,"gzipLength":254,"brotliLength":0,"mainUid":"453d-12"},"453d-15":{"renderedLength":545,"gzipLength":275,"brotliLength":0,"mainUid":"453d-14"},"453d-17":{"renderedLength":220,"gzipLength":170,"brotliLength":0,"mainUid":"453d-16"},"453d-19":{"renderedLength":685,"gzipLength":291,"brotliLength":0,"mainUid":"453d-18"},"453d-21":{"renderedLength":556,"gzipLength":282,"brotliLength":0,"mainUid":"453d-20"},"453d-23":{"renderedLength":5519,"gzipLength":1015,"brotliLength":0,"mainUid":"453d-22"},"453d-25":{"renderedLength":1731,"gzipLength":525,"brotliLength":0,"mainUid":"453d-24"},"453d-27":{"renderedLength":2567,"gzipLength":578,"brotliLength":0,"mainUid":"453d-26"},"453d-29":{"renderedLength":687,"gzipLength":158,"brotliLength":0,"mainUid":"453d-28"},"453d-31":{"renderedLength":408,"gzipLength":154,"brotliLength":0,"mainUid":"453d-30"},"453d-33":{"renderedLength":2532,"gzipLength":726,"brotliLength":0,"mainUid":"453d-32"},"453d-35":{"renderedLength":5631,"gzipLength":1279,"brotliLength":0,"mainUid":"453d-34"},"453d-37":{"renderedLength":339,"gzipLength":238,"brotliLength":0,"mainUid":"453d-36"},"453d-39":{"renderedLength":2625,"gzipLength":730,"brotliLength":0,"mainUid":"453d-38"},"453d-41":{"renderedLength":588,"gzipLength":256,"brotliLength":0,"mainUid":"453d-40"},"453d-43":{"renderedLength":2945,"gzipLength":647,"brotliLength":0,"mainUid":"453d-42"},"453d-45":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"453d-44"}},"nodeMetas":{"453d-0":{"id":"/Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","moduleParts":{"vitus-labs-rocketstories.js":"453d-1"},"imported":[{"uid":"453d-46"},{"uid":"453d-48"},{"uid":"453d-49"}],"importedBy":[{"uid":"453d-42"}]},"453d-2":{"id":"/src/components/NotFound.tsx","moduleParts":{"vitus-labs-rocketstories.js":"453d-3"},"imported":[{"uid":"453d-48"},{"uid":"453d-46"}],"importedBy":[{"uid":"453d-34"}]},"453d-4":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-5"},"imported":[],"importedBy":[{"uid":"453d-34"},{"uid":"453d-38"}]},"453d-6":{"id":"/src/utils/code.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-7"},"imported":[{"uid":"453d-46"}],"importedBy":[{"uid":"453d-34"},{"uid":"453d-38"}]},"453d-8":{"id":"/src/constants/controls.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-9"},"imported":[],"importedBy":[{"uid":"453d-10"},{"uid":"453d-18"}]},"453d-10":{"id":"/src/utils/controls/attrs.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-11"},"imported":[{"uid":"453d-46"},{"uid":"453d-8"}],"importedBy":[{"uid":"453d-51"}]},"453d-12":{"id":"/src/utils/controls/dimensionToControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-13"},"imported":[],"importedBy":[{"uid":"453d-51"}]},"453d-14":{"id":"/src/utils/controls/disableControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-15"},"imported":[],"importedBy":[{"uid":"453d-51"}]},"453d-16":{"id":"/src/utils/controls/filterDefaultValues.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-17"},"imported":[{"uid":"453d-46"}],"importedBy":[{"uid":"453d-40"},{"uid":"453d-51"}]},"453d-18":{"id":"/src/utils/controls/constants.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-19"},"imported":[{"uid":"453d-46"},{"uid":"453d-8"}],"importedBy":[{"uid":"453d-20"}]},"453d-20":{"id":"/src/utils/controls/makeControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-21"},"imported":[{"uid":"453d-18"}],"importedBy":[{"uid":"453d-51"}]},"453d-22":{"id":"/src/controls/element.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-23"},"imported":[{"uid":"453d-46"}],"importedBy":[{"uid":"453d-52"}]},"453d-24":{"id":"/src/controls/list.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-25"},"imported":[],"importedBy":[{"uid":"453d-52"}]},"453d-26":{"id":"/src/controls/overlay.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-27"},"imported":[],"importedBy":[{"uid":"453d-52"}]},"453d-28":{"id":"/src/controls/rocketstyle.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-29"},"imported":[],"importedBy":[{"uid":"453d-52"}]},"453d-30":{"id":"/src/controls/text.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-31"},"imported":[{"uid":"453d-46"}],"importedBy":[{"uid":"453d-52"}]},"453d-32":{"id":"/src/utils/controls/valuesToControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-33"},"imported":[{"uid":"453d-52"}],"importedBy":[{"uid":"453d-51"}]},"453d-34":{"id":"/src/stories/dimension.tsx","moduleParts":{"vitus-labs-rocketstories.js":"453d-35"},"imported":[{"uid":"453d-48"},{"uid":"453d-46"},{"uid":"453d-50"},{"uid":"453d-2"},{"uid":"453d-4"},{"uid":"453d-6"},{"uid":"453d-51"}],"importedBy":[{"uid":"453d-47"}]},"453d-36":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-37"},"imported":[],"importedBy":[{"uid":"453d-38"}]},"453d-38":{"id":"/src/stories/main.tsx","moduleParts":{"vitus-labs-rocketstories.js":"453d-39"},"imported":[{"uid":"453d-48"},{"uid":"453d-46"},{"uid":"453d-4"},{"uid":"453d-6"},{"uid":"453d-36"},{"uid":"453d-51"}],"importedBy":[{"uid":"453d-47"}]},"453d-40":{"id":"/src/stories/story.tsx","moduleParts":{"vitus-labs-rocketstories.js":"453d-41"},"imported":[{"uid":"453d-48"},{"uid":"453d-51"},{"uid":"453d-16"}],"importedBy":[{"uid":"453d-47"}]},"453d-42":{"id":"/src/rocketstories.tsx","moduleParts":{"vitus-labs-rocketstories.js":"453d-43"},"imported":[{"uid":"453d-46"},{"uid":"453d-0"},{"uid":"453d-47"}],"importedBy":[{"uid":"453d-44"}]},"453d-44":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstories.js":"453d-45"},"imported":[{"uid":"453d-42"}],"importedBy":[],"isEntry":true},"453d-46":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"453d-42"},{"uid":"453d-0"},{"uid":"453d-34"},{"uid":"453d-38"},{"uid":"453d-2"},{"uid":"453d-6"},{"uid":"453d-16"},{"uid":"453d-10"},{"uid":"453d-18"},{"uid":"453d-22"},{"uid":"453d-30"}],"isExternal":true},"453d-47":{"id":"/src/stories/index.ts","moduleParts":{},"imported":[{"uid":"453d-34"},{"uid":"453d-38"},{"uid":"453d-40"}],"importedBy":[{"uid":"453d-42"}]},"453d-48":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"453d-0"},{"uid":"453d-34"},{"uid":"453d-38"},{"uid":"453d-40"},{"uid":"453d-2"}],"isExternal":true},"453d-49":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"453d-0"}],"isExternal":true},"453d-50":{"id":"@vitus-labs/elements","moduleParts":{},"imported":[],"importedBy":[{"uid":"453d-34"}],"isExternal":true},"453d-51":{"id":"/src/utils/controls/index.ts","moduleParts":{},"imported":[{"uid":"453d-10"},{"uid":"453d-12"},{"uid":"453d-14"},{"uid":"453d-16"},{"uid":"453d-20"},{"uid":"453d-32"}],"importedBy":[{"uid":"453d-34"},{"uid":"453d-38"},{"uid":"453d-40"}]},"453d-52":{"id":"/src/controls/index.ts","moduleParts":{},"imported":[{"uid":"453d-22"},{"uid":"453d-24"},{"uid":"453d-26"},{"uid":"453d-28"},{"uid":"453d-30"}],"importedBy":[{"uid":"453d-32"}]}},"env":{"rollup":"2.70.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
6427
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstories.js","children":[{"name":"Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","uid":"d751-1"},{"name":"src","children":[{"name":"components/NotFound.tsx","uid":"d751-3"},{"name":"utils","children":[{"uid":"d751-5","name":"theme.ts"},{"uid":"d751-7","name":"code.ts"},{"name":"controls","children":[{"uid":"d751-11","name":"attrs.ts"},{"uid":"d751-13","name":"dimensionToControls.ts"},{"uid":"d751-15","name":"disableControls.ts"},{"uid":"d751-17","name":"filterDefaultValues.ts"},{"uid":"d751-19","name":"constants.ts"},{"uid":"d751-21","name":"makeControls.ts"},{"uid":"d751-33","name":"valuesToControls.ts"}]},{"uid":"d751-37","name":"dimensions.ts"}]},{"name":"constants/controls.ts","uid":"d751-9"},{"name":"controls","children":[{"uid":"d751-23","name":"element.ts"},{"uid":"d751-25","name":"list.ts"},{"uid":"d751-27","name":"overlay.ts"},{"uid":"d751-29","name":"rocketstyle.ts"},{"uid":"d751-31","name":"text.ts"}]},{"name":"stories","children":[{"uid":"d751-35","name":"dimension.tsx"},{"uid":"d751-39","name":"main.tsx"},{"uid":"d751-41","name":"story.tsx"}]},{"uid":"d751-43","name":"rocketstories.tsx"},{"uid":"d751-45","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"d751-1":{"renderedLength":718,"gzipLength":376,"brotliLength":0,"mainUid":"d751-0"},"d751-3":{"renderedLength":236,"gzipLength":202,"brotliLength":0,"mainUid":"d751-2"},"d751-5":{"renderedLength":113,"gzipLength":129,"brotliLength":0,"mainUid":"d751-4"},"d751-7":{"renderedLength":5174,"gzipLength":1167,"brotliLength":0,"mainUid":"d751-6"},"d751-9":{"renderedLength":246,"gzipLength":141,"brotliLength":0,"mainUid":"d751-8"},"d751-11":{"renderedLength":480,"gzipLength":264,"brotliLength":0,"mainUid":"d751-10"},"d751-13":{"renderedLength":454,"gzipLength":254,"brotliLength":0,"mainUid":"d751-12"},"d751-15":{"renderedLength":545,"gzipLength":275,"brotliLength":0,"mainUid":"d751-14"},"d751-17":{"renderedLength":220,"gzipLength":170,"brotliLength":0,"mainUid":"d751-16"},"d751-19":{"renderedLength":685,"gzipLength":291,"brotliLength":0,"mainUid":"d751-18"},"d751-21":{"renderedLength":556,"gzipLength":282,"brotliLength":0,"mainUid":"d751-20"},"d751-23":{"renderedLength":5519,"gzipLength":1015,"brotliLength":0,"mainUid":"d751-22"},"d751-25":{"renderedLength":1731,"gzipLength":525,"brotliLength":0,"mainUid":"d751-24"},"d751-27":{"renderedLength":2567,"gzipLength":578,"brotliLength":0,"mainUid":"d751-26"},"d751-29":{"renderedLength":687,"gzipLength":158,"brotliLength":0,"mainUid":"d751-28"},"d751-31":{"renderedLength":408,"gzipLength":154,"brotliLength":0,"mainUid":"d751-30"},"d751-33":{"renderedLength":2532,"gzipLength":726,"brotliLength":0,"mainUid":"d751-32"},"d751-35":{"renderedLength":5640,"gzipLength":1282,"brotliLength":0,"mainUid":"d751-34"},"d751-37":{"renderedLength":339,"gzipLength":238,"brotliLength":0,"mainUid":"d751-36"},"d751-39":{"renderedLength":2625,"gzipLength":730,"brotliLength":0,"mainUid":"d751-38"},"d751-41":{"renderedLength":588,"gzipLength":256,"brotliLength":0,"mainUid":"d751-40"},"d751-43":{"renderedLength":2971,"gzipLength":906,"brotliLength":0,"mainUid":"d751-42"},"d751-45":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"d751-44"}},"nodeMetas":{"d751-0":{"id":"/Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","moduleParts":{"vitus-labs-rocketstories.js":"d751-1"},"imported":[{"uid":"d751-46"},{"uid":"d751-48"},{"uid":"d751-49"}],"importedBy":[{"uid":"d751-42"}]},"d751-2":{"id":"/src/components/NotFound.tsx","moduleParts":{"vitus-labs-rocketstories.js":"d751-3"},"imported":[{"uid":"d751-48"},{"uid":"d751-46"}],"importedBy":[{"uid":"d751-34"}]},"d751-4":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-5"},"imported":[],"importedBy":[{"uid":"d751-34"},{"uid":"d751-38"}]},"d751-6":{"id":"/src/utils/code.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-7"},"imported":[{"uid":"d751-46"}],"importedBy":[{"uid":"d751-34"},{"uid":"d751-38"}]},"d751-8":{"id":"/src/constants/controls.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-9"},"imported":[],"importedBy":[{"uid":"d751-10"},{"uid":"d751-18"}]},"d751-10":{"id":"/src/utils/controls/attrs.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-11"},"imported":[{"uid":"d751-46"},{"uid":"d751-8"}],"importedBy":[{"uid":"d751-51"}]},"d751-12":{"id":"/src/utils/controls/dimensionToControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-13"},"imported":[],"importedBy":[{"uid":"d751-51"}]},"d751-14":{"id":"/src/utils/controls/disableControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-15"},"imported":[],"importedBy":[{"uid":"d751-51"}]},"d751-16":{"id":"/src/utils/controls/filterDefaultValues.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-17"},"imported":[{"uid":"d751-46"}],"importedBy":[{"uid":"d751-40"},{"uid":"d751-51"}]},"d751-18":{"id":"/src/utils/controls/constants.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-19"},"imported":[{"uid":"d751-46"},{"uid":"d751-8"}],"importedBy":[{"uid":"d751-20"}]},"d751-20":{"id":"/src/utils/controls/makeControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-21"},"imported":[{"uid":"d751-18"}],"importedBy":[{"uid":"d751-51"}]},"d751-22":{"id":"/src/controls/element.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-23"},"imported":[{"uid":"d751-46"}],"importedBy":[{"uid":"d751-52"}]},"d751-24":{"id":"/src/controls/list.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-25"},"imported":[],"importedBy":[{"uid":"d751-52"}]},"d751-26":{"id":"/src/controls/overlay.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-27"},"imported":[],"importedBy":[{"uid":"d751-52"}]},"d751-28":{"id":"/src/controls/rocketstyle.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-29"},"imported":[],"importedBy":[{"uid":"d751-52"}]},"d751-30":{"id":"/src/controls/text.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-31"},"imported":[{"uid":"d751-46"}],"importedBy":[{"uid":"d751-52"}]},"d751-32":{"id":"/src/utils/controls/valuesToControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-33"},"imported":[{"uid":"d751-52"}],"importedBy":[{"uid":"d751-51"}]},"d751-34":{"id":"/src/stories/dimension.tsx","moduleParts":{"vitus-labs-rocketstories.js":"d751-35"},"imported":[{"uid":"d751-48"},{"uid":"d751-46"},{"uid":"d751-50"},{"uid":"d751-2"},{"uid":"d751-4"},{"uid":"d751-6"},{"uid":"d751-51"}],"importedBy":[{"uid":"d751-47"}]},"d751-36":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-37"},"imported":[],"importedBy":[{"uid":"d751-38"}]},"d751-38":{"id":"/src/stories/main.tsx","moduleParts":{"vitus-labs-rocketstories.js":"d751-39"},"imported":[{"uid":"d751-48"},{"uid":"d751-46"},{"uid":"d751-4"},{"uid":"d751-6"},{"uid":"d751-36"},{"uid":"d751-51"}],"importedBy":[{"uid":"d751-47"}]},"d751-40":{"id":"/src/stories/story.tsx","moduleParts":{"vitus-labs-rocketstories.js":"d751-41"},"imported":[{"uid":"d751-48"},{"uid":"d751-51"},{"uid":"d751-16"}],"importedBy":[{"uid":"d751-47"}]},"d751-42":{"id":"/src/rocketstories.tsx","moduleParts":{"vitus-labs-rocketstories.js":"d751-43"},"imported":[{"uid":"d751-46"},{"uid":"d751-0"},{"uid":"d751-47"}],"importedBy":[{"uid":"d751-44"}]},"d751-44":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstories.js":"d751-45"},"imported":[{"uid":"d751-42"}],"importedBy":[],"isEntry":true},"d751-46":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"d751-42"},{"uid":"d751-0"},{"uid":"d751-34"},{"uid":"d751-38"},{"uid":"d751-2"},{"uid":"d751-6"},{"uid":"d751-16"},{"uid":"d751-10"},{"uid":"d751-18"},{"uid":"d751-22"},{"uid":"d751-30"}],"isExternal":true},"d751-47":{"id":"/src/stories/index.ts","moduleParts":{},"imported":[{"uid":"d751-34"},{"uid":"d751-38"},{"uid":"d751-40"}],"importedBy":[{"uid":"d751-42"}]},"d751-48":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"d751-0"},{"uid":"d751-34"},{"uid":"d751-38"},{"uid":"d751-40"},{"uid":"d751-2"}],"isExternal":true},"d751-49":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"d751-0"}],"isExternal":true},"d751-50":{"id":"@vitus-labs/elements","moduleParts":{},"imported":[],"importedBy":[{"uid":"d751-34"}],"isExternal":true},"d751-51":{"id":"/src/utils/controls/index.ts","moduleParts":{},"imported":[{"uid":"d751-10"},{"uid":"d751-12"},{"uid":"d751-14"},{"uid":"d751-16"},{"uid":"d751-20"},{"uid":"d751-32"}],"importedBy":[{"uid":"d751-34"},{"uid":"d751-38"},{"uid":"d751-40"}]},"d751-52":{"id":"/src/controls/index.ts","moduleParts":{},"imported":[{"uid":"d751-22"},{"uid":"d751-24"},{"uid":"d751-26"},{"uid":"d751-28"},{"uid":"d751-30"}],"importedBy":[{"uid":"d751-32"}]}},"env":{"rollup":"2.70.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
6428
6428
 
6429
6429
  const run = () => {
6430
6430
  const width = window.innerWidth;
@@ -6424,7 +6424,7 @@ var drawChart = (function (exports) {
6424
6424
  </script>
6425
6425
  <script>
6426
6426
  /*<!--*/
6427
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstories.module.js","children":[{"name":"Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","uid":"453d-54"},{"name":"src","children":[{"name":"components/NotFound.tsx","uid":"453d-56"},{"name":"utils","children":[{"uid":"453d-58","name":"theme.ts"},{"uid":"453d-60","name":"code.ts"},{"name":"controls","children":[{"uid":"453d-64","name":"attrs.ts"},{"uid":"453d-66","name":"dimensionToControls.ts"},{"uid":"453d-68","name":"disableControls.ts"},{"uid":"453d-70","name":"filterDefaultValues.ts"},{"uid":"453d-72","name":"constants.ts"},{"uid":"453d-74","name":"makeControls.ts"},{"uid":"453d-86","name":"valuesToControls.ts"}]},{"uid":"453d-90","name":"dimensions.ts"}]},{"name":"constants/controls.ts","uid":"453d-62"},{"name":"controls","children":[{"uid":"453d-76","name":"element.ts"},{"uid":"453d-78","name":"list.ts"},{"uid":"453d-80","name":"overlay.ts"},{"uid":"453d-82","name":"rocketstyle.ts"},{"uid":"453d-84","name":"text.ts"}]},{"name":"stories","children":[{"uid":"453d-88","name":"dimension.tsx"},{"uid":"453d-92","name":"main.tsx"},{"uid":"453d-94","name":"story.tsx"}]},{"uid":"453d-96","name":"rocketstories.tsx"},{"uid":"453d-98","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"453d-54":{"renderedLength":628,"gzipLength":336,"brotliLength":0,"mainUid":"453d-53"},"453d-56":{"renderedLength":211,"gzipLength":183,"brotliLength":0,"mainUid":"453d-55"},"453d-58":{"renderedLength":113,"gzipLength":129,"brotliLength":0,"mainUid":"453d-57"},"453d-60":{"renderedLength":5159,"gzipLength":1163,"brotliLength":0,"mainUid":"453d-59"},"453d-62":{"renderedLength":246,"gzipLength":141,"brotliLength":0,"mainUid":"453d-61"},"453d-64":{"renderedLength":475,"gzipLength":261,"brotliLength":0,"mainUid":"453d-63"},"453d-66":{"renderedLength":454,"gzipLength":254,"brotliLength":0,"mainUid":"453d-65"},"453d-68":{"renderedLength":545,"gzipLength":275,"brotliLength":0,"mainUid":"453d-67"},"453d-70":{"renderedLength":215,"gzipLength":167,"brotliLength":0,"mainUid":"453d-69"},"453d-72":{"renderedLength":680,"gzipLength":286,"brotliLength":0,"mainUid":"453d-71"},"453d-74":{"renderedLength":556,"gzipLength":282,"brotliLength":0,"mainUid":"453d-73"},"453d-76":{"renderedLength":5514,"gzipLength":1011,"brotliLength":0,"mainUid":"453d-75"},"453d-78":{"renderedLength":1731,"gzipLength":525,"brotliLength":0,"mainUid":"453d-77"},"453d-80":{"renderedLength":2567,"gzipLength":578,"brotliLength":0,"mainUid":"453d-79"},"453d-82":{"renderedLength":687,"gzipLength":158,"brotliLength":0,"mainUid":"453d-81"},"453d-84":{"renderedLength":403,"gzipLength":149,"brotliLength":0,"mainUid":"453d-83"},"453d-86":{"renderedLength":2532,"gzipLength":726,"brotliLength":0,"mainUid":"453d-85"},"453d-88":{"renderedLength":5315,"gzipLength":1251,"brotliLength":0,"mainUid":"453d-87"},"453d-90":{"renderedLength":339,"gzipLength":238,"brotliLength":0,"mainUid":"453d-89"},"453d-92":{"renderedLength":2574,"gzipLength":713,"brotliLength":0,"mainUid":"453d-91"},"453d-94":{"renderedLength":582,"gzipLength":251,"brotliLength":0,"mainUid":"453d-93"},"453d-96":{"renderedLength":2925,"gzipLength":643,"brotliLength":0,"mainUid":"453d-95"},"453d-98":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"453d-97"}},"nodeMetas":{"453d-53":{"id":"/Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-54"},"imported":[{"uid":"453d-99"},{"uid":"453d-101"},{"uid":"453d-102"}],"importedBy":[{"uid":"453d-95"}]},"453d-55":{"id":"/src/components/NotFound.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-56"},"imported":[{"uid":"453d-101"},{"uid":"453d-99"}],"importedBy":[{"uid":"453d-87"}]},"453d-57":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-58"},"imported":[],"importedBy":[{"uid":"453d-87"},{"uid":"453d-91"}]},"453d-59":{"id":"/src/utils/code.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-60"},"imported":[{"uid":"453d-99"}],"importedBy":[{"uid":"453d-87"},{"uid":"453d-91"}]},"453d-61":{"id":"/src/constants/controls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-62"},"imported":[],"importedBy":[{"uid":"453d-63"},{"uid":"453d-71"}]},"453d-63":{"id":"/src/utils/controls/attrs.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-64"},"imported":[{"uid":"453d-99"},{"uid":"453d-61"}],"importedBy":[{"uid":"453d-104"}]},"453d-65":{"id":"/src/utils/controls/dimensionToControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-66"},"imported":[],"importedBy":[{"uid":"453d-104"}]},"453d-67":{"id":"/src/utils/controls/disableControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-68"},"imported":[],"importedBy":[{"uid":"453d-104"}]},"453d-69":{"id":"/src/utils/controls/filterDefaultValues.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-70"},"imported":[{"uid":"453d-99"}],"importedBy":[{"uid":"453d-93"},{"uid":"453d-104"}]},"453d-71":{"id":"/src/utils/controls/constants.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-72"},"imported":[{"uid":"453d-99"},{"uid":"453d-61"}],"importedBy":[{"uid":"453d-73"}]},"453d-73":{"id":"/src/utils/controls/makeControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-74"},"imported":[{"uid":"453d-71"}],"importedBy":[{"uid":"453d-104"}]},"453d-75":{"id":"/src/controls/element.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-76"},"imported":[{"uid":"453d-99"}],"importedBy":[{"uid":"453d-105"}]},"453d-77":{"id":"/src/controls/list.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-78"},"imported":[],"importedBy":[{"uid":"453d-105"}]},"453d-79":{"id":"/src/controls/overlay.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-80"},"imported":[],"importedBy":[{"uid":"453d-105"}]},"453d-81":{"id":"/src/controls/rocketstyle.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-82"},"imported":[],"importedBy":[{"uid":"453d-105"}]},"453d-83":{"id":"/src/controls/text.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-84"},"imported":[{"uid":"453d-99"}],"importedBy":[{"uid":"453d-105"}]},"453d-85":{"id":"/src/utils/controls/valuesToControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-86"},"imported":[{"uid":"453d-105"}],"importedBy":[{"uid":"453d-104"}]},"453d-87":{"id":"/src/stories/dimension.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-88"},"imported":[{"uid":"453d-101"},{"uid":"453d-99"},{"uid":"453d-103"},{"uid":"453d-55"},{"uid":"453d-57"},{"uid":"453d-59"},{"uid":"453d-104"}],"importedBy":[{"uid":"453d-100"}]},"453d-89":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-90"},"imported":[],"importedBy":[{"uid":"453d-91"}]},"453d-91":{"id":"/src/stories/main.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-92"},"imported":[{"uid":"453d-101"},{"uid":"453d-99"},{"uid":"453d-57"},{"uid":"453d-59"},{"uid":"453d-89"},{"uid":"453d-104"}],"importedBy":[{"uid":"453d-100"}]},"453d-93":{"id":"/src/stories/story.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-94"},"imported":[{"uid":"453d-101"},{"uid":"453d-104"},{"uid":"453d-69"}],"importedBy":[{"uid":"453d-100"}]},"453d-95":{"id":"/src/rocketstories.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-96"},"imported":[{"uid":"453d-99"},{"uid":"453d-53"},{"uid":"453d-100"}],"importedBy":[{"uid":"453d-97"}]},"453d-97":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"453d-98"},"imported":[{"uid":"453d-95"}],"importedBy":[],"isEntry":true},"453d-99":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"453d-95"},{"uid":"453d-53"},{"uid":"453d-87"},{"uid":"453d-91"},{"uid":"453d-55"},{"uid":"453d-59"},{"uid":"453d-69"},{"uid":"453d-63"},{"uid":"453d-71"},{"uid":"453d-75"},{"uid":"453d-83"}],"isExternal":true},"453d-100":{"id":"/src/stories/index.ts","moduleParts":{},"imported":[{"uid":"453d-87"},{"uid":"453d-91"},{"uid":"453d-93"}],"importedBy":[{"uid":"453d-95"}]},"453d-101":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"453d-53"},{"uid":"453d-87"},{"uid":"453d-91"},{"uid":"453d-93"},{"uid":"453d-55"}],"isExternal":true},"453d-102":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"453d-53"}],"isExternal":true},"453d-103":{"id":"@vitus-labs/elements","moduleParts":{},"imported":[],"importedBy":[{"uid":"453d-87"}],"isExternal":true},"453d-104":{"id":"/src/utils/controls/index.ts","moduleParts":{},"imported":[{"uid":"453d-63"},{"uid":"453d-65"},{"uid":"453d-67"},{"uid":"453d-69"},{"uid":"453d-73"},{"uid":"453d-85"}],"importedBy":[{"uid":"453d-87"},{"uid":"453d-91"},{"uid":"453d-93"}]},"453d-105":{"id":"/src/controls/index.ts","moduleParts":{},"imported":[{"uid":"453d-75"},{"uid":"453d-77"},{"uid":"453d-79"},{"uid":"453d-81"},{"uid":"453d-83"}],"importedBy":[{"uid":"453d-85"}]}},"env":{"rollup":"2.70.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
6427
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstories.module.js","children":[{"name":"Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","uid":"d751-54"},{"name":"src","children":[{"name":"components/NotFound.tsx","uid":"d751-56"},{"name":"utils","children":[{"uid":"d751-58","name":"theme.ts"},{"uid":"d751-60","name":"code.ts"},{"name":"controls","children":[{"uid":"d751-64","name":"attrs.ts"},{"uid":"d751-66","name":"dimensionToControls.ts"},{"uid":"d751-68","name":"disableControls.ts"},{"uid":"d751-70","name":"filterDefaultValues.ts"},{"uid":"d751-72","name":"constants.ts"},{"uid":"d751-74","name":"makeControls.ts"},{"uid":"d751-86","name":"valuesToControls.ts"}]},{"uid":"d751-90","name":"dimensions.ts"}]},{"name":"constants/controls.ts","uid":"d751-62"},{"name":"controls","children":[{"uid":"d751-76","name":"element.ts"},{"uid":"d751-78","name":"list.ts"},{"uid":"d751-80","name":"overlay.ts"},{"uid":"d751-82","name":"rocketstyle.ts"},{"uid":"d751-84","name":"text.ts"}]},{"name":"stories","children":[{"uid":"d751-88","name":"dimension.tsx"},{"uid":"d751-92","name":"main.tsx"},{"uid":"d751-94","name":"story.tsx"}]},{"uid":"d751-96","name":"rocketstories.tsx"},{"uid":"d751-98","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"d751-54":{"renderedLength":712,"gzipLength":373,"brotliLength":0,"mainUid":"d751-53"},"d751-56":{"renderedLength":211,"gzipLength":183,"brotliLength":0,"mainUid":"d751-55"},"d751-58":{"renderedLength":113,"gzipLength":129,"brotliLength":0,"mainUid":"d751-57"},"d751-60":{"renderedLength":5159,"gzipLength":1163,"brotliLength":0,"mainUid":"d751-59"},"d751-62":{"renderedLength":246,"gzipLength":141,"brotliLength":0,"mainUid":"d751-61"},"d751-64":{"renderedLength":475,"gzipLength":261,"brotliLength":0,"mainUid":"d751-63"},"d751-66":{"renderedLength":454,"gzipLength":254,"brotliLength":0,"mainUid":"d751-65"},"d751-68":{"renderedLength":545,"gzipLength":275,"brotliLength":0,"mainUid":"d751-67"},"d751-70":{"renderedLength":215,"gzipLength":167,"brotliLength":0,"mainUid":"d751-69"},"d751-72":{"renderedLength":680,"gzipLength":286,"brotliLength":0,"mainUid":"d751-71"},"d751-74":{"renderedLength":556,"gzipLength":282,"brotliLength":0,"mainUid":"d751-73"},"d751-76":{"renderedLength":5514,"gzipLength":1011,"brotliLength":0,"mainUid":"d751-75"},"d751-78":{"renderedLength":1731,"gzipLength":525,"brotliLength":0,"mainUid":"d751-77"},"d751-80":{"renderedLength":2567,"gzipLength":578,"brotliLength":0,"mainUid":"d751-79"},"d751-82":{"renderedLength":687,"gzipLength":158,"brotliLength":0,"mainUid":"d751-81"},"d751-84":{"renderedLength":403,"gzipLength":149,"brotliLength":0,"mainUid":"d751-83"},"d751-86":{"renderedLength":2532,"gzipLength":726,"brotliLength":0,"mainUid":"d751-85"},"d751-88":{"renderedLength":5324,"gzipLength":1254,"brotliLength":0,"mainUid":"d751-87"},"d751-90":{"renderedLength":339,"gzipLength":238,"brotliLength":0,"mainUid":"d751-89"},"d751-92":{"renderedLength":2574,"gzipLength":713,"brotliLength":0,"mainUid":"d751-91"},"d751-94":{"renderedLength":582,"gzipLength":251,"brotliLength":0,"mainUid":"d751-93"},"d751-96":{"renderedLength":2966,"gzipLength":903,"brotliLength":0,"mainUid":"d751-95"},"d751-98":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"d751-97"}},"nodeMetas":{"d751-53":{"id":"/Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-54"},"imported":[{"uid":"d751-99"},{"uid":"d751-101"},{"uid":"d751-102"}],"importedBy":[{"uid":"d751-95"}]},"d751-55":{"id":"/src/components/NotFound.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-56"},"imported":[{"uid":"d751-101"},{"uid":"d751-99"}],"importedBy":[{"uid":"d751-87"}]},"d751-57":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-58"},"imported":[],"importedBy":[{"uid":"d751-87"},{"uid":"d751-91"}]},"d751-59":{"id":"/src/utils/code.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-60"},"imported":[{"uid":"d751-99"}],"importedBy":[{"uid":"d751-87"},{"uid":"d751-91"}]},"d751-61":{"id":"/src/constants/controls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-62"},"imported":[],"importedBy":[{"uid":"d751-63"},{"uid":"d751-71"}]},"d751-63":{"id":"/src/utils/controls/attrs.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-64"},"imported":[{"uid":"d751-99"},{"uid":"d751-61"}],"importedBy":[{"uid":"d751-104"}]},"d751-65":{"id":"/src/utils/controls/dimensionToControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-66"},"imported":[],"importedBy":[{"uid":"d751-104"}]},"d751-67":{"id":"/src/utils/controls/disableControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-68"},"imported":[],"importedBy":[{"uid":"d751-104"}]},"d751-69":{"id":"/src/utils/controls/filterDefaultValues.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-70"},"imported":[{"uid":"d751-99"}],"importedBy":[{"uid":"d751-93"},{"uid":"d751-104"}]},"d751-71":{"id":"/src/utils/controls/constants.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-72"},"imported":[{"uid":"d751-99"},{"uid":"d751-61"}],"importedBy":[{"uid":"d751-73"}]},"d751-73":{"id":"/src/utils/controls/makeControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-74"},"imported":[{"uid":"d751-71"}],"importedBy":[{"uid":"d751-104"}]},"d751-75":{"id":"/src/controls/element.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-76"},"imported":[{"uid":"d751-99"}],"importedBy":[{"uid":"d751-105"}]},"d751-77":{"id":"/src/controls/list.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-78"},"imported":[],"importedBy":[{"uid":"d751-105"}]},"d751-79":{"id":"/src/controls/overlay.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-80"},"imported":[],"importedBy":[{"uid":"d751-105"}]},"d751-81":{"id":"/src/controls/rocketstyle.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-82"},"imported":[],"importedBy":[{"uid":"d751-105"}]},"d751-83":{"id":"/src/controls/text.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-84"},"imported":[{"uid":"d751-99"}],"importedBy":[{"uid":"d751-105"}]},"d751-85":{"id":"/src/utils/controls/valuesToControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-86"},"imported":[{"uid":"d751-105"}],"importedBy":[{"uid":"d751-104"}]},"d751-87":{"id":"/src/stories/dimension.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-88"},"imported":[{"uid":"d751-101"},{"uid":"d751-99"},{"uid":"d751-103"},{"uid":"d751-55"},{"uid":"d751-57"},{"uid":"d751-59"},{"uid":"d751-104"}],"importedBy":[{"uid":"d751-100"}]},"d751-89":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-90"},"imported":[],"importedBy":[{"uid":"d751-91"}]},"d751-91":{"id":"/src/stories/main.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-92"},"imported":[{"uid":"d751-101"},{"uid":"d751-99"},{"uid":"d751-57"},{"uid":"d751-59"},{"uid":"d751-89"},{"uid":"d751-104"}],"importedBy":[{"uid":"d751-100"}]},"d751-93":{"id":"/src/stories/story.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-94"},"imported":[{"uid":"d751-101"},{"uid":"d751-104"},{"uid":"d751-69"}],"importedBy":[{"uid":"d751-100"}]},"d751-95":{"id":"/src/rocketstories.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-96"},"imported":[{"uid":"d751-99"},{"uid":"d751-53"},{"uid":"d751-100"}],"importedBy":[{"uid":"d751-97"}]},"d751-97":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"d751-98"},"imported":[{"uid":"d751-95"}],"importedBy":[],"isEntry":true},"d751-99":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"d751-95"},{"uid":"d751-53"},{"uid":"d751-87"},{"uid":"d751-91"},{"uid":"d751-55"},{"uid":"d751-59"},{"uid":"d751-69"},{"uid":"d751-63"},{"uid":"d751-71"},{"uid":"d751-75"},{"uid":"d751-83"}],"isExternal":true},"d751-100":{"id":"/src/stories/index.ts","moduleParts":{},"imported":[{"uid":"d751-87"},{"uid":"d751-91"},{"uid":"d751-93"}],"importedBy":[{"uid":"d751-95"}]},"d751-101":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"d751-53"},{"uid":"d751-87"},{"uid":"d751-91"},{"uid":"d751-93"},{"uid":"d751-55"}],"isExternal":true},"d751-102":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"d751-53"}],"isExternal":true},"d751-103":{"id":"@vitus-labs/elements","moduleParts":{},"imported":[],"importedBy":[{"uid":"d751-87"}],"isExternal":true},"d751-104":{"id":"/src/utils/controls/index.ts","moduleParts":{},"imported":[{"uid":"d751-63"},{"uid":"d751-65"},{"uid":"d751-67"},{"uid":"d751-69"},{"uid":"d751-73"},{"uid":"d751-85"}],"importedBy":[{"uid":"d751-87"},{"uid":"d751-91"},{"uid":"d751-93"}]},"d751-105":{"id":"/src/controls/index.ts","moduleParts":{},"imported":[{"uid":"d751-75"},{"uid":"d751-77"},{"uid":"d751-79"},{"uid":"d751-81"},{"uid":"d751-83"}],"importedBy":[{"uid":"d751-85"}]}},"env":{"rollup":"2.70.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
6428
6428
 
6429
6429
  const run = () => {
6430
6430
  const width = window.innerWidth;
package/lib/index.d.ts CHANGED
@@ -1,17 +1,18 @@
1
+ import { ComponentType, VFC, ForwardRefExoticComponent } from 'react';
1
2
  import { RocketComponentType } from '@vitus-labs/rocketstyle';
2
- import { ComponentType, VFC } from 'react';
3
3
 
4
4
  declare const CONTROL_TYPES: readonly ["tag", "text", "number", "range", "boolean", "color", "select", "multi-select", "object", "array", "radio", "inline-radio", "check", "inline-check"];
5
5
  declare type T_CONTROL_TYPES = typeof CONTROL_TYPES[number];
6
6
 
7
+ declare type TObj = Record<string, unknown>;
7
8
  declare type ExtractProps<TComponentOrTProps> = TComponentOrTProps extends ComponentType<infer TProps> ? TProps : TComponentOrTProps;
8
- declare type StoryComponent = VFC<any> & {
9
+ declare type StoryComponent<P = {}> = VFC<P> & {
9
10
  args: any;
10
11
  argTypes: any;
11
12
  parameters: any;
12
13
  };
13
- declare type Element = ComponentType;
14
- declare type RocketComponent = RocketComponentType & {
14
+ declare type ElementType<T extends TObj | unknown = any> = ComponentType<T> | ForwardRefExoticComponent<T>;
15
+ declare type RocketType = RocketComponentType & {
15
16
  VITUS_LABS__COMPONENT?: string;
16
17
  getStaticDimensions: any;
17
18
  getDefaultAttrs: any;
@@ -49,29 +50,31 @@ declare type AttrItemControl<T> = {
49
50
  group?: string;
50
51
  description?: string;
51
52
  };
52
- declare type AttrsTypes<P, H = ExtractProps<P>> = {
53
- [I in keyof H]: H[I] | AttrItemControl<H[I]> | {
54
- disable: true;
55
- };
56
- };
57
- declare type ExtractDimensions<C extends RocketComponent> = keyof C['$$rocketstyle'];
58
- declare type Configuration<T extends Element | RocketComponent = Element | RocketComponent> = {
53
+ declare type ExtractDimensions<C extends RocketType> = keyof C['$$rocketstyle'];
54
+ declare type Configuration = {
55
+ component: RocketType | ElementType;
59
56
  attrs: Record<string, any>;
57
+ prefix?: string;
60
58
  name: string;
61
- component: T;
62
59
  storyOptions: Partial<{
63
60
  direction: 'inline' | 'rows';
64
61
  alignX: 'left' | 'center' | 'right' | 'spaceBetween';
65
62
  alignY: 'top' | 'center' | 'bottom' | 'spaceBetween';
66
63
  gap: number;
67
- pseudo: true;
64
+ pseudo: boolean | null | undefined;
68
65
  }>;
69
66
  decorators: any[];
70
67
  };
68
+ declare type RocketStoryConfiguration = Configuration & {
69
+ component: RocketType;
70
+ };
71
+ declare type StoryConfiguration = Configuration & {
72
+ component: ElementType;
73
+ };
71
74
  declare type Controls = Record<string, Control>;
72
75
  declare type PartialControls = Record<string, Partial<Control>>;
73
76
 
74
- declare type MakeDimensionStories = <T extends RocketComponent>({ name, component, dimension, attrs, }: {
77
+ declare type DimensionStories = <T extends RocketType>({ name, component, dimension, attrs, }: {
75
78
  name: string;
76
79
  component: T;
77
80
  dimension: ExtractDimensions<T>;
@@ -79,11 +82,9 @@ declare type MakeDimensionStories = <T extends RocketComponent>({ name, componen
79
82
  storyOptions: Configuration['storyOptions'];
80
83
  ignore: any;
81
84
  }) => StoryComponent;
82
- declare const makeDimensionStories: MakeDimensionStories;
85
+ declare const makeDimensionStories: DimensionStories;
83
86
 
84
- declare type MainStory = ({ name, component, attrs, }: Omit<Configuration, 'component'> & {
85
- component: RocketComponent;
86
- }) => StoryComponent;
87
+ declare type MainStory = (params: RocketStoryConfiguration) => StoryComponent;
87
88
  declare const mainStory: MainStory;
88
89
 
89
90
  declare type Story = ({ component, attrs, }: {
@@ -95,30 +96,23 @@ declare type Story = ({ component, attrs, }: {
95
96
  };
96
97
  declare const story: Story;
97
98
 
98
- declare type Init = (params: Partial<Pick<Configuration, 'decorators' | 'storyOptions'>>) => <T extends Element | RocketComponent>(component: T) => ReturnType<Rocketstories>;
99
+ declare type Init = <P extends Partial<Omit<Configuration, 'component' | 'attrs'>>>(params: P) => <T extends Configuration['component']>(component: T) => T extends RocketType ? IRocketStories<ExtractProps<T>, T['$$rocketstyle']> : IRocketStories<ExtractProps<T>, unknown>;
99
100
  declare const init: Init;
100
- declare type Rocketstories = <T extends Element | RocketComponent>(component: T, params?: Partial<Pick<Configuration, 'storyOptions' | 'decorators'>>) => T extends RocketComponent ? ReturnType<CreateRocketStories<T>> : ReturnType<CreateStories<T>>;
101
+ declare type Rocketstories = <C extends Configuration['component']>(component: C, options?: Partial<Omit<Configuration, 'component' | 'attrs'>>) => C extends RocketType ? IRocketStories<ExtractProps<C>, C['$$rocketstyle']> : IRocketStories<ExtractProps<C>, unknown>;
101
102
  declare const rocketstories: Rocketstories;
102
- declare type CreateStories<C extends Element> = (defaultOptions: Configuration<C>, options: Partial<Configuration<C>>) => {
103
- attrs: (params: AttrsTypes<C>) => ReturnType<CreateStories<C>>;
104
- config: () => {
105
- component: Element;
106
- title: string;
107
- decorators?: Configuration['decorators'];
108
- };
109
- main: () => ReturnType<typeof story>;
110
- };
111
- declare type CreateRocketStories<C extends RocketComponent> = (defaultOptions: Configuration<C>, options: Partial<Configuration<C>>) => {
112
- attrs: (params: AttrsTypes<C>) => ReturnType<CreateRocketStories<C>>;
113
- config: () => {
114
- component: Element;
115
- title: string;
103
+ interface IRocketStories<OA extends TObj = {}, RA extends TObj | unknown = unknown, SO extends TObj = {}> {
104
+ CONFIG: Configuration;
105
+ main: () => ReturnType<typeof mainStory> | ReturnType<typeof story>;
106
+ dimension: (param: keyof RA) => ReturnType<typeof makeDimensionStories> | null;
107
+ export: () => {
108
+ component: Configuration['component'];
109
+ title: Configuration['name'];
110
+ decorators: Configuration['decorators'];
116
111
  };
117
- main: () => ReturnType<typeof mainStory>;
118
- storyOptions: (options: Configuration['storyOptions']) => ReturnType<CreateRocketStories<C>>;
119
- dimension: <A extends ExtractDimensions<C>>(dimension: A, params?: Partial<{
120
- ignore: any;
121
- }>) => ReturnType<typeof makeDimensionStories>;
122
- };
112
+ storyOptions: (options: Configuration['storyOptions']) => IRocketStories<OA, RA, SO>;
113
+ config: (params: Partial<Omit<Configuration, 'attrs'>>) => IRocketStories<OA, RA, SO>;
114
+ attrs: <P extends Partial<OA>>(params: P) => IRocketStories<OA, RA, SO>;
115
+ setComponent: <P extends Configuration['component']>(param: P) => P extends RocketType ? IRocketStories<ExtractProps<P>, P['$$rocketstyle'], SO> : P extends ElementType ? IRocketStories<ExtractProps<P>, unknown, SO> : IRocketStories<{}, unknown, SO>;
116
+ }
123
117
 
124
- export { AttrItemControl, Configuration, Control, ControlTypes, Controls, CreateRocketStories, CreateStories, Element, ExtractDimensions, ExtractProps, Init, PartialControls, RocketComponent, Rocketstories, StoryComponent, StorybookControl, rocketstories as default, init };
118
+ export { AttrItemControl, Configuration, Control, ControlTypes, Controls, ElementType, ExtractDimensions, ExtractProps, IRocketStories, Init, PartialControls, RocketStoryConfiguration, RocketType, Rocketstories, StoryComponent, StoryConfiguration, StorybookControl, rocketstories as default, init };
@@ -1,5 +1,5 @@
1
- import rocketstories, { init, Init, Rocketstories, CreateRocketStories, CreateStories } from "./rocketstories";
2
- import type { ExtractDimensions, ExtractProps, Element, StoryComponent, StorybookControl, RocketComponent, Configuration, Control, ControlTypes, Controls, PartialControls, AttrItemControl } from "./types";
3
- export type { Init, Rocketstories, CreateRocketStories, CreateStories, ExtractDimensions, ExtractProps, Element, StoryComponent, StorybookControl, RocketComponent, Configuration, Control, ControlTypes, Controls, PartialControls, AttrItemControl, };
1
+ import rocketstories, { init, Init, Rocketstories, IRocketStories } from "./rocketstories";
2
+ import type { ExtractDimensions, ExtractProps, ElementType, StoryComponent, StorybookControl, RocketType, Configuration, RocketStoryConfiguration, StoryConfiguration, Control, ControlTypes, Controls, PartialControls, AttrItemControl } from "./types";
3
+ export type { IRocketStories, Init, Rocketstories, ExtractDimensions, ExtractProps, ElementType, StoryComponent, StorybookControl, RocketType, Configuration, RocketStoryConfiguration, StoryConfiguration, Control, ControlTypes, Controls, PartialControls, AttrItemControl, };
4
4
  export { init };
5
5
  export default rocketstories;
@@ -1,29 +1,22 @@
1
1
  import { dimensionStory, mainStory, generalStory } from './stories';
2
- import type { Element, RocketComponent, Configuration, AttrsTypes, ExtractDimensions } from './types';
3
- export declare type Init = (params: Partial<Pick<Configuration, 'decorators' | 'storyOptions'>>) => <T extends Element | RocketComponent>(component: T) => ReturnType<Rocketstories>;
2
+ import type { TObj, Configuration, ElementType, RocketType, ExtractProps } from './types';
3
+ export declare type Init = <P extends Partial<Omit<Configuration, 'component' | 'attrs'>>>(params: P) => <T extends Configuration['component']>(component: T) => T extends RocketType ? IRocketStories<ExtractProps<T>, T['$$rocketstyle']> : IRocketStories<ExtractProps<T>, unknown>;
4
4
  declare const init: Init;
5
- export declare type Rocketstories = <T extends Element | RocketComponent>(component: T, params?: Partial<Pick<Configuration, 'storyOptions' | 'decorators'>>) => T extends RocketComponent ? ReturnType<CreateRocketStories<T>> : ReturnType<CreateStories<T>>;
5
+ export declare type Rocketstories = <C extends Configuration['component']>(component: C, options?: Partial<Omit<Configuration, 'component' | 'attrs'>>) => C extends RocketType ? IRocketStories<ExtractProps<C>, C['$$rocketstyle']> : IRocketStories<ExtractProps<C>, unknown>;
6
6
  declare const rocketstories: Rocketstories;
7
- export declare type CreateStories<C extends Element> = (defaultOptions: Configuration<C>, options: Partial<Configuration<C>>) => {
8
- attrs: (params: AttrsTypes<C>) => ReturnType<CreateStories<C>>;
9
- config: () => {
10
- component: Element;
11
- title: string;
12
- decorators?: Configuration['decorators'];
7
+ export interface IRocketStories<OA extends TObj = {}, RA extends TObj | unknown = unknown, SO extends TObj = {}> {
8
+ CONFIG: Configuration;
9
+ main: () => ReturnType<typeof mainStory> | ReturnType<typeof generalStory>;
10
+ dimension: (param: keyof RA) => ReturnType<typeof dimensionStory> | null;
11
+ export: () => {
12
+ component: Configuration['component'];
13
+ title: Configuration['name'];
14
+ decorators: Configuration['decorators'];
13
15
  };
14
- main: () => ReturnType<typeof generalStory>;
15
- };
16
- export declare type CreateRocketStories<C extends RocketComponent> = (defaultOptions: Configuration<C>, options: Partial<Configuration<C>>) => {
17
- attrs: (params: AttrsTypes<C>) => ReturnType<CreateRocketStories<C>>;
18
- config: () => {
19
- component: Element;
20
- title: string;
21
- };
22
- main: () => ReturnType<typeof mainStory>;
23
- storyOptions: (options: Configuration['storyOptions']) => ReturnType<CreateRocketStories<C>>;
24
- dimension: <A extends ExtractDimensions<C>>(dimension: A, params?: Partial<{
25
- ignore: any;
26
- }>) => ReturnType<typeof dimensionStory>;
27
- };
16
+ storyOptions: (options: Configuration['storyOptions']) => IRocketStories<OA, RA, SO>;
17
+ config: (params: Partial<Omit<Configuration, 'attrs'>>) => IRocketStories<OA, RA, SO>;
18
+ attrs: <P extends Partial<OA>>(params: P) => IRocketStories<OA, RA, SO>;
19
+ setComponent: <P extends Configuration['component']>(param: P) => P extends RocketType ? IRocketStories<ExtractProps<P>, P['$$rocketstyle'], SO> : P extends ElementType ? IRocketStories<ExtractProps<P>, unknown, SO> : IRocketStories<{}, unknown, SO>;
20
+ }
28
21
  export { init };
29
22
  export default rocketstories;
@@ -1,5 +1,5 @@
1
- import type { RocketComponent, StoryComponent, Configuration, ExtractDimensions } from "../types";
2
- declare type MakeDimensionStories = <T extends RocketComponent>({ name, component, dimension, attrs, }: {
1
+ import type { RocketType, StoryComponent, Configuration, ExtractDimensions } from "../types";
2
+ export declare type DimensionStories = <T extends RocketType>({ name, component, dimension, attrs, }: {
3
3
  name: string;
4
4
  component: T;
5
5
  dimension: ExtractDimensions<T>;
@@ -7,5 +7,5 @@ declare type MakeDimensionStories = <T extends RocketComponent>({ name, componen
7
7
  storyOptions: Configuration['storyOptions'];
8
8
  ignore: any;
9
9
  }) => StoryComponent;
10
- declare const makeDimensionStories: MakeDimensionStories;
10
+ declare const makeDimensionStories: DimensionStories;
11
11
  export default makeDimensionStories;
@@ -1,4 +1,5 @@
1
- import dimensionStory from './dimension';
1
+ import dimensionStory, { DimensionStories } from './dimension';
2
2
  import mainStory from './main';
3
3
  import generalStory from './story';
4
+ export type { DimensionStories };
4
5
  export { dimensionStory, mainStory, generalStory };
@@ -1,6 +1,4 @@
1
- import type { RocketComponent, StoryComponent, Configuration } from "../types";
2
- declare type MainStory = ({ name, component, attrs, }: Omit<Configuration, 'component'> & {
3
- component: RocketComponent;
4
- }) => StoryComponent;
1
+ import type { StoryComponent, RocketStoryConfiguration } from "../types";
2
+ declare type MainStory = (params: RocketStoryConfiguration) => StoryComponent;
5
3
  declare const mainStory: MainStory;
6
4
  export default mainStory;
@@ -1,14 +1,15 @@
1
+ import type { ComponentType, ForwardRefExoticComponent, VFC } from 'react';
1
2
  import type { RocketComponentType } from '@vitus-labs/rocketstyle';
2
- import type { ComponentType, VFC } from 'react';
3
3
  import type { T_CONTROL_TYPES } from "./constants/controls";
4
+ export declare type TObj = Record<string, unknown>;
4
5
  export declare type ExtractProps<TComponentOrTProps> = TComponentOrTProps extends ComponentType<infer TProps> ? TProps : TComponentOrTProps;
5
- export declare type StoryComponent = VFC<any> & {
6
+ export declare type StoryComponent<P = {}> = VFC<P> & {
6
7
  args: any;
7
8
  argTypes: any;
8
9
  parameters: any;
9
10
  };
10
- export declare type Element = ComponentType;
11
- export declare type RocketComponent = RocketComponentType & {
11
+ export declare type ElementType<T extends TObj | unknown = any> = ComponentType<T> | ForwardRefExoticComponent<T>;
12
+ export declare type RocketType = RocketComponentType & {
12
13
  VITUS_LABS__COMPONENT?: string;
13
14
  getStaticDimensions: any;
14
15
  getDefaultAttrs: any;
@@ -51,20 +52,27 @@ export declare type AttrsTypes<P, H = ExtractProps<P>> = {
51
52
  disable: true;
52
53
  };
53
54
  };
54
- export declare type ExtractDimensions<C extends RocketComponent> = keyof C['$$rocketstyle'];
55
- export declare type Configuration<T extends Element | RocketComponent = Element | RocketComponent> = {
55
+ export declare type ExtractDimensions<C extends RocketType> = keyof C['$$rocketstyle'];
56
+ export declare type Configuration = {
57
+ component: RocketType | ElementType;
56
58
  attrs: Record<string, any>;
59
+ prefix?: string;
57
60
  name: string;
58
- component: T;
59
61
  storyOptions: Partial<{
60
62
  direction: 'inline' | 'rows';
61
63
  alignX: 'left' | 'center' | 'right' | 'spaceBetween';
62
64
  alignY: 'top' | 'center' | 'bottom' | 'spaceBetween';
63
65
  gap: number;
64
- pseudo: true;
66
+ pseudo: boolean | null | undefined;
65
67
  }>;
66
68
  decorators: any[];
67
69
  };
70
+ export declare type RocketStoryConfiguration = Configuration & {
71
+ component: RocketType;
72
+ };
73
+ export declare type StoryConfiguration = Configuration & {
74
+ component: ElementType;
75
+ };
68
76
  export declare type SimpleValue = string | number | boolean;
69
77
  export declare type Obj = Record<string, SimpleValue | Array<SimpleValue>>;
70
78
  export declare type Controls = Record<string, Control>;
@@ -1,6 +1,6 @@
1
- import type { Controls, RocketComponent } from "../../types";
1
+ import type { Controls, RocketType } from "../../types";
2
2
  declare type ValuesToControls = ({ component, values, dimensionControls, }: {
3
- component: RocketComponent;
3
+ component: RocketType;
4
4
  values: Record<string, any>;
5
5
  dimensionControls: Record<string, any>;
6
6
  }) => Controls;