@vitus-labs/rocketstories 0.16.0-alpha.1 → 0.18.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.
- package/lib/analysis/vitus-labs-rocketstories.js.html +1 -1
- package/lib/analysis/vitus-labs-rocketstories.module.js.html +1 -1
- package/lib/analysis/vitus-labs-rocketstories.umd.js.html +1 -1
- package/lib/index.d.ts +21 -5
- package/lib/types/index.d.ts +2 -1
- package/lib/types/rocketstories.d.ts +9 -2
- package/lib/types/stories/dimension.d.ts +4 -2
- package/lib/types/types.d.ts +9 -1
- package/lib/vitus-labs-rocketstories.js +75 -33
- package/lib/vitus-labs-rocketstories.js.map +1 -1
- package/lib/vitus-labs-rocketstories.module.js +77 -36
- package/lib/vitus-labs-rocketstories.module.js.map +1 -1
- package/lib/vitus-labs-rocketstories.umd.js +78 -36
- package/lib/vitus-labs-rocketstories.umd.js.map +1 -1
- package/package.json +10 -10
|
@@ -7060,7 +7060,7 @@ var drawChart = (function (exports) {
|
|
|
7060
7060
|
</script>
|
|
7061
7061
|
<script>
|
|
7062
7062
|
/*<!--*/
|
|
7063
|
-
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":"
|
|
7063
|
+
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":"848f-1"},{"name":"src","children":[{"name":"components/NotFound.tsx","uid":"848f-3"},{"name":"utils","children":[{"uid":"848f-5","name":"theme.ts"},{"uid":"848f-7","name":"code.ts"},{"name":"controls","children":[{"uid":"848f-11","name":"attrs.ts"},{"uid":"848f-13","name":"dimensionToControls.ts"},{"uid":"848f-15","name":"disableControls.ts"},{"uid":"848f-17","name":"filterDefaultValues.ts"},{"uid":"848f-19","name":"constants.ts"},{"uid":"848f-21","name":"makeControls.ts"},{"uid":"848f-33","name":"valuesToControls.ts"}]},{"uid":"848f-37","name":"dimensions.ts"}]},{"name":"constants/controls.ts","uid":"848f-9"},{"name":"controls","children":[{"uid":"848f-23","name":"element.ts"},{"uid":"848f-25","name":"list.ts"},{"uid":"848f-27","name":"overlay.ts"},{"uid":"848f-29","name":"rocketstyle.ts"},{"uid":"848f-31","name":"text.ts"}]},{"name":"stories","children":[{"uid":"848f-35","name":"dimension.tsx"},{"uid":"848f-39","name":"main.tsx"},{"uid":"848f-41","name":"story.tsx"}]},{"uid":"848f-43","name":"rocketstories.tsx"},{"uid":"848f-45","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"848f-1":{"renderedLength":634,"gzipLength":340,"brotliLength":0,"mainUid":"848f-0"},"848f-3":{"renderedLength":236,"gzipLength":202,"brotliLength":0,"mainUid":"848f-2"},"848f-5":{"renderedLength":113,"gzipLength":129,"brotliLength":0,"mainUid":"848f-4"},"848f-7":{"renderedLength":5191,"gzipLength":1178,"brotliLength":0,"mainUid":"848f-6"},"848f-9":{"renderedLength":246,"gzipLength":141,"brotliLength":0,"mainUid":"848f-8"},"848f-11":{"renderedLength":537,"gzipLength":300,"brotliLength":0,"mainUid":"848f-10"},"848f-13":{"renderedLength":454,"gzipLength":254,"brotliLength":0,"mainUid":"848f-12"},"848f-15":{"renderedLength":545,"gzipLength":275,"brotliLength":0,"mainUid":"848f-14"},"848f-17":{"renderedLength":220,"gzipLength":170,"brotliLength":0,"mainUid":"848f-16"},"848f-19":{"renderedLength":685,"gzipLength":291,"brotliLength":0,"mainUid":"848f-18"},"848f-21":{"renderedLength":556,"gzipLength":282,"brotliLength":0,"mainUid":"848f-20"},"848f-23":{"renderedLength":5519,"gzipLength":1015,"brotliLength":0,"mainUid":"848f-22"},"848f-25":{"renderedLength":1731,"gzipLength":525,"brotliLength":0,"mainUid":"848f-24"},"848f-27":{"renderedLength":2567,"gzipLength":578,"brotliLength":0,"mainUid":"848f-26"},"848f-29":{"renderedLength":687,"gzipLength":158,"brotliLength":0,"mainUid":"848f-28"},"848f-31":{"renderedLength":408,"gzipLength":154,"brotliLength":0,"mainUid":"848f-30"},"848f-33":{"renderedLength":2589,"gzipLength":757,"brotliLength":0,"mainUid":"848f-32"},"848f-35":{"renderedLength":5777,"gzipLength":1278,"brotliLength":0,"mainUid":"848f-34"},"848f-37":{"renderedLength":339,"gzipLength":238,"brotliLength":0,"mainUid":"848f-36"},"848f-39":{"renderedLength":2625,"gzipLength":730,"brotliLength":0,"mainUid":"848f-38"},"848f-41":{"renderedLength":645,"gzipLength":293,"brotliLength":0,"mainUid":"848f-40"},"848f-43":{"renderedLength":3190,"gzipLength":691,"brotliLength":0,"mainUid":"848f-42"},"848f-45":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"848f-44"}},"nodeMetas":{"848f-0":{"id":"/Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","moduleParts":{"vitus-labs-rocketstories.js":"848f-1"},"imported":[{"uid":"848f-46"},{"uid":"848f-48"},{"uid":"848f-49"}],"importedBy":[{"uid":"848f-42"}]},"848f-2":{"id":"/src/components/NotFound.tsx","moduleParts":{"vitus-labs-rocketstories.js":"848f-3"},"imported":[{"uid":"848f-48"},{"uid":"848f-46"}],"importedBy":[{"uid":"848f-34"}]},"848f-4":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-5"},"imported":[],"importedBy":[{"uid":"848f-34"},{"uid":"848f-38"}]},"848f-6":{"id":"/src/utils/code.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-7"},"imported":[{"uid":"848f-46"}],"importedBy":[{"uid":"848f-34"},{"uid":"848f-38"}]},"848f-8":{"id":"/src/constants/controls.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-9"},"imported":[],"importedBy":[{"uid":"848f-10"},{"uid":"848f-18"}]},"848f-10":{"id":"/src/utils/controls/attrs.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-11"},"imported":[{"uid":"848f-46"},{"uid":"848f-8"}],"importedBy":[{"uid":"848f-51"}]},"848f-12":{"id":"/src/utils/controls/dimensionToControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-13"},"imported":[],"importedBy":[{"uid":"848f-51"}]},"848f-14":{"id":"/src/utils/controls/disableControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-15"},"imported":[],"importedBy":[{"uid":"848f-51"}]},"848f-16":{"id":"/src/utils/controls/filterDefaultValues.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-17"},"imported":[{"uid":"848f-46"}],"importedBy":[{"uid":"848f-40"},{"uid":"848f-51"}]},"848f-18":{"id":"/src/utils/controls/constants.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-19"},"imported":[{"uid":"848f-46"},{"uid":"848f-8"}],"importedBy":[{"uid":"848f-20"}]},"848f-20":{"id":"/src/utils/controls/makeControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-21"},"imported":[{"uid":"848f-18"}],"importedBy":[{"uid":"848f-51"}]},"848f-22":{"id":"/src/controls/element.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-23"},"imported":[{"uid":"848f-46"}],"importedBy":[{"uid":"848f-52"}]},"848f-24":{"id":"/src/controls/list.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-25"},"imported":[],"importedBy":[{"uid":"848f-52"}]},"848f-26":{"id":"/src/controls/overlay.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-27"},"imported":[],"importedBy":[{"uid":"848f-52"}]},"848f-28":{"id":"/src/controls/rocketstyle.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-29"},"imported":[],"importedBy":[{"uid":"848f-52"}]},"848f-30":{"id":"/src/controls/text.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-31"},"imported":[{"uid":"848f-46"}],"importedBy":[{"uid":"848f-52"}]},"848f-32":{"id":"/src/utils/controls/valuesToControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-33"},"imported":[{"uid":"848f-52"}],"importedBy":[{"uid":"848f-51"}]},"848f-34":{"id":"/src/stories/dimension.tsx","moduleParts":{"vitus-labs-rocketstories.js":"848f-35"},"imported":[{"uid":"848f-48"},{"uid":"848f-46"},{"uid":"848f-50"},{"uid":"848f-2"},{"uid":"848f-4"},{"uid":"848f-6"},{"uid":"848f-51"}],"importedBy":[{"uid":"848f-47"}]},"848f-36":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-37"},"imported":[],"importedBy":[{"uid":"848f-38"}]},"848f-38":{"id":"/src/stories/main.tsx","moduleParts":{"vitus-labs-rocketstories.js":"848f-39"},"imported":[{"uid":"848f-48"},{"uid":"848f-46"},{"uid":"848f-4"},{"uid":"848f-6"},{"uid":"848f-36"},{"uid":"848f-51"}],"importedBy":[{"uid":"848f-47"}]},"848f-40":{"id":"/src/stories/story.tsx","moduleParts":{"vitus-labs-rocketstories.js":"848f-41"},"imported":[{"uid":"848f-48"},{"uid":"848f-51"},{"uid":"848f-16"}],"importedBy":[{"uid":"848f-47"}]},"848f-42":{"id":"/src/rocketstories.tsx","moduleParts":{"vitus-labs-rocketstories.js":"848f-43"},"imported":[{"uid":"848f-46"},{"uid":"848f-0"},{"uid":"848f-47"}],"importedBy":[{"uid":"848f-44"}]},"848f-44":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstories.js":"848f-45"},"imported":[{"uid":"848f-42"}],"importedBy":[],"isEntry":true},"848f-46":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"848f-42"},{"uid":"848f-0"},{"uid":"848f-34"},{"uid":"848f-38"},{"uid":"848f-2"},{"uid":"848f-6"},{"uid":"848f-16"},{"uid":"848f-10"},{"uid":"848f-18"},{"uid":"848f-22"},{"uid":"848f-30"}],"isExternal":true},"848f-47":{"id":"/src/stories/index.ts","moduleParts":{},"imported":[{"uid":"848f-34"},{"uid":"848f-38"},{"uid":"848f-40"}],"importedBy":[{"uid":"848f-42"}]},"848f-48":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"848f-0"},{"uid":"848f-34"},{"uid":"848f-38"},{"uid":"848f-40"},{"uid":"848f-2"}],"isExternal":true},"848f-49":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"848f-0"}],"isExternal":true},"848f-50":{"id":"@vitus-labs/elements","moduleParts":{},"imported":[],"importedBy":[{"uid":"848f-34"}],"isExternal":true},"848f-51":{"id":"/src/utils/controls/index.ts","moduleParts":{},"imported":[{"uid":"848f-10"},{"uid":"848f-12"},{"uid":"848f-14"},{"uid":"848f-16"},{"uid":"848f-20"},{"uid":"848f-32"}],"importedBy":[{"uid":"848f-34"},{"uid":"848f-38"},{"uid":"848f-40"}]},"848f-52":{"id":"/src/controls/index.ts","moduleParts":{},"imported":[{"uid":"848f-22"},{"uid":"848f-24"},{"uid":"848f-26"},{"uid":"848f-28"},{"uid":"848f-30"}],"importedBy":[{"uid":"848f-32"}]}},"env":{"rollup":"2.60.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
7064
7064
|
|
|
7065
7065
|
const run = () => {
|
|
7066
7066
|
const width = window.innerWidth;
|
|
@@ -7060,7 +7060,7 @@ var drawChart = (function (exports) {
|
|
|
7060
7060
|
</script>
|
|
7061
7061
|
<script>
|
|
7062
7062
|
/*<!--*/
|
|
7063
|
-
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":"
|
|
7063
|
+
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":"848f-54"},{"name":"src","children":[{"name":"components/NotFound.tsx","uid":"848f-56"},{"name":"utils","children":[{"uid":"848f-58","name":"theme.ts"},{"uid":"848f-60","name":"code.ts"},{"name":"controls","children":[{"uid":"848f-64","name":"attrs.ts"},{"uid":"848f-66","name":"dimensionToControls.ts"},{"uid":"848f-68","name":"disableControls.ts"},{"uid":"848f-70","name":"filterDefaultValues.ts"},{"uid":"848f-72","name":"constants.ts"},{"uid":"848f-74","name":"makeControls.ts"},{"uid":"848f-86","name":"valuesToControls.ts"}]},{"uid":"848f-90","name":"dimensions.ts"}]},{"name":"constants/controls.ts","uid":"848f-62"},{"name":"controls","children":[{"uid":"848f-76","name":"element.ts"},{"uid":"848f-78","name":"list.ts"},{"uid":"848f-80","name":"overlay.ts"},{"uid":"848f-82","name":"rocketstyle.ts"},{"uid":"848f-84","name":"text.ts"}]},{"name":"stories","children":[{"uid":"848f-88","name":"dimension.tsx"},{"uid":"848f-92","name":"main.tsx"},{"uid":"848f-94","name":"story.tsx"}]},{"uid":"848f-96","name":"rocketstories.tsx"},{"uid":"848f-98","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"848f-54":{"renderedLength":628,"gzipLength":336,"brotliLength":0,"mainUid":"848f-53"},"848f-56":{"renderedLength":211,"gzipLength":183,"brotliLength":0,"mainUid":"848f-55"},"848f-58":{"renderedLength":113,"gzipLength":129,"brotliLength":0,"mainUid":"848f-57"},"848f-60":{"renderedLength":5176,"gzipLength":1176,"brotliLength":0,"mainUid":"848f-59"},"848f-62":{"renderedLength":246,"gzipLength":141,"brotliLength":0,"mainUid":"848f-61"},"848f-64":{"renderedLength":532,"gzipLength":297,"brotliLength":0,"mainUid":"848f-63"},"848f-66":{"renderedLength":454,"gzipLength":254,"brotliLength":0,"mainUid":"848f-65"},"848f-68":{"renderedLength":545,"gzipLength":275,"brotliLength":0,"mainUid":"848f-67"},"848f-70":{"renderedLength":215,"gzipLength":167,"brotliLength":0,"mainUid":"848f-69"},"848f-72":{"renderedLength":680,"gzipLength":286,"brotliLength":0,"mainUid":"848f-71"},"848f-74":{"renderedLength":556,"gzipLength":282,"brotliLength":0,"mainUid":"848f-73"},"848f-76":{"renderedLength":5514,"gzipLength":1011,"brotliLength":0,"mainUid":"848f-75"},"848f-78":{"renderedLength":1731,"gzipLength":525,"brotliLength":0,"mainUid":"848f-77"},"848f-80":{"renderedLength":2567,"gzipLength":578,"brotliLength":0,"mainUid":"848f-79"},"848f-82":{"renderedLength":687,"gzipLength":158,"brotliLength":0,"mainUid":"848f-81"},"848f-84":{"renderedLength":403,"gzipLength":149,"brotliLength":0,"mainUid":"848f-83"},"848f-86":{"renderedLength":2589,"gzipLength":757,"brotliLength":0,"mainUid":"848f-85"},"848f-88":{"renderedLength":5461,"gzipLength":1250,"brotliLength":0,"mainUid":"848f-87"},"848f-90":{"renderedLength":339,"gzipLength":238,"brotliLength":0,"mainUid":"848f-89"},"848f-92":{"renderedLength":2574,"gzipLength":713,"brotliLength":0,"mainUid":"848f-91"},"848f-94":{"renderedLength":639,"gzipLength":288,"brotliLength":0,"mainUid":"848f-93"},"848f-96":{"renderedLength":3170,"gzipLength":688,"brotliLength":0,"mainUid":"848f-95"},"848f-98":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"848f-97"}},"nodeMetas":{"848f-53":{"id":"/Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-54"},"imported":[{"uid":"848f-99"},{"uid":"848f-101"},{"uid":"848f-102"}],"importedBy":[{"uid":"848f-95"}]},"848f-55":{"id":"/src/components/NotFound.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-56"},"imported":[{"uid":"848f-101"},{"uid":"848f-99"}],"importedBy":[{"uid":"848f-87"}]},"848f-57":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-58"},"imported":[],"importedBy":[{"uid":"848f-87"},{"uid":"848f-91"}]},"848f-59":{"id":"/src/utils/code.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-60"},"imported":[{"uid":"848f-99"}],"importedBy":[{"uid":"848f-87"},{"uid":"848f-91"}]},"848f-61":{"id":"/src/constants/controls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-62"},"imported":[],"importedBy":[{"uid":"848f-63"},{"uid":"848f-71"}]},"848f-63":{"id":"/src/utils/controls/attrs.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-64"},"imported":[{"uid":"848f-99"},{"uid":"848f-61"}],"importedBy":[{"uid":"848f-104"}]},"848f-65":{"id":"/src/utils/controls/dimensionToControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-66"},"imported":[],"importedBy":[{"uid":"848f-104"}]},"848f-67":{"id":"/src/utils/controls/disableControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-68"},"imported":[],"importedBy":[{"uid":"848f-104"}]},"848f-69":{"id":"/src/utils/controls/filterDefaultValues.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-70"},"imported":[{"uid":"848f-99"}],"importedBy":[{"uid":"848f-93"},{"uid":"848f-104"}]},"848f-71":{"id":"/src/utils/controls/constants.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-72"},"imported":[{"uid":"848f-99"},{"uid":"848f-61"}],"importedBy":[{"uid":"848f-73"}]},"848f-73":{"id":"/src/utils/controls/makeControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-74"},"imported":[{"uid":"848f-71"}],"importedBy":[{"uid":"848f-104"}]},"848f-75":{"id":"/src/controls/element.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-76"},"imported":[{"uid":"848f-99"}],"importedBy":[{"uid":"848f-105"}]},"848f-77":{"id":"/src/controls/list.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-78"},"imported":[],"importedBy":[{"uid":"848f-105"}]},"848f-79":{"id":"/src/controls/overlay.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-80"},"imported":[],"importedBy":[{"uid":"848f-105"}]},"848f-81":{"id":"/src/controls/rocketstyle.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-82"},"imported":[],"importedBy":[{"uid":"848f-105"}]},"848f-83":{"id":"/src/controls/text.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-84"},"imported":[{"uid":"848f-99"}],"importedBy":[{"uid":"848f-105"}]},"848f-85":{"id":"/src/utils/controls/valuesToControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-86"},"imported":[{"uid":"848f-105"}],"importedBy":[{"uid":"848f-104"}]},"848f-87":{"id":"/src/stories/dimension.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-88"},"imported":[{"uid":"848f-101"},{"uid":"848f-99"},{"uid":"848f-103"},{"uid":"848f-55"},{"uid":"848f-57"},{"uid":"848f-59"},{"uid":"848f-104"}],"importedBy":[{"uid":"848f-100"}]},"848f-89":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-90"},"imported":[],"importedBy":[{"uid":"848f-91"}]},"848f-91":{"id":"/src/stories/main.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-92"},"imported":[{"uid":"848f-101"},{"uid":"848f-99"},{"uid":"848f-57"},{"uid":"848f-59"},{"uid":"848f-89"},{"uid":"848f-104"}],"importedBy":[{"uid":"848f-100"}]},"848f-93":{"id":"/src/stories/story.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-94"},"imported":[{"uid":"848f-101"},{"uid":"848f-104"},{"uid":"848f-69"}],"importedBy":[{"uid":"848f-100"}]},"848f-95":{"id":"/src/rocketstories.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-96"},"imported":[{"uid":"848f-99"},{"uid":"848f-53"},{"uid":"848f-100"}],"importedBy":[{"uid":"848f-97"}]},"848f-97":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"848f-98"},"imported":[{"uid":"848f-95"}],"importedBy":[],"isEntry":true},"848f-99":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"848f-95"},{"uid":"848f-53"},{"uid":"848f-87"},{"uid":"848f-91"},{"uid":"848f-55"},{"uid":"848f-59"},{"uid":"848f-69"},{"uid":"848f-63"},{"uid":"848f-71"},{"uid":"848f-75"},{"uid":"848f-83"}],"isExternal":true},"848f-100":{"id":"/src/stories/index.ts","moduleParts":{},"imported":[{"uid":"848f-87"},{"uid":"848f-91"},{"uid":"848f-93"}],"importedBy":[{"uid":"848f-95"}]},"848f-101":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"848f-53"},{"uid":"848f-87"},{"uid":"848f-91"},{"uid":"848f-93"},{"uid":"848f-55"}],"isExternal":true},"848f-102":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"848f-53"}],"isExternal":true},"848f-103":{"id":"@vitus-labs/elements","moduleParts":{},"imported":[],"importedBy":[{"uid":"848f-87"}],"isExternal":true},"848f-104":{"id":"/src/utils/controls/index.ts","moduleParts":{},"imported":[{"uid":"848f-63"},{"uid":"848f-65"},{"uid":"848f-67"},{"uid":"848f-69"},{"uid":"848f-73"},{"uid":"848f-85"}],"importedBy":[{"uid":"848f-87"},{"uid":"848f-91"},{"uid":"848f-93"}]},"848f-105":{"id":"/src/controls/index.ts","moduleParts":{},"imported":[{"uid":"848f-75"},{"uid":"848f-77"},{"uid":"848f-79"},{"uid":"848f-81"},{"uid":"848f-83"}],"importedBy":[{"uid":"848f-85"}]}},"env":{"rollup":"2.60.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
7064
7064
|
|
|
7065
7065
|
const run = () => {
|
|
7066
7066
|
const width = window.innerWidth;
|
|
@@ -7060,7 +7060,7 @@ var drawChart = (function (exports) {
|
|
|
7060
7060
|
</script>
|
|
7061
7061
|
<script>
|
|
7062
7062
|
/*<!--*/
|
|
7063
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstories.umd.js","children":[{"name":"Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","uid":"
|
|
7063
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstories.umd.js","children":[{"name":"Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","uid":"848f-107"},{"name":"src","children":[{"name":"components/NotFound.tsx","uid":"848f-109"},{"name":"utils","children":[{"uid":"848f-111","name":"theme.ts"},{"uid":"848f-113","name":"code.ts"},{"name":"controls","children":[{"uid":"848f-117","name":"attrs.ts"},{"uid":"848f-119","name":"dimensionToControls.ts"},{"uid":"848f-121","name":"disableControls.ts"},{"uid":"848f-123","name":"filterDefaultValues.ts"},{"uid":"848f-125","name":"constants.ts"},{"uid":"848f-127","name":"makeControls.ts"},{"uid":"848f-139","name":"valuesToControls.ts"}]},{"uid":"848f-143","name":"dimensions.ts"}]},{"name":"constants/controls.ts","uid":"848f-115"},{"name":"controls","children":[{"uid":"848f-129","name":"element.ts"},{"uid":"848f-131","name":"list.ts"},{"uid":"848f-133","name":"overlay.ts"},{"uid":"848f-135","name":"rocketstyle.ts"},{"uid":"848f-137","name":"text.ts"}]},{"name":"stories","children":[{"uid":"848f-141","name":"dimension.tsx"},{"uid":"848f-145","name":"main.tsx"},{"uid":"848f-147","name":"story.tsx"}]},{"uid":"848f-149","name":"rocketstories.tsx"},{"uid":"848f-151","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"848f-107":{"renderedLength":754,"gzipLength":348,"brotliLength":0,"mainUid":"848f-106"},"848f-109":{"renderedLength":248,"gzipLength":203,"brotliLength":0,"mainUid":"848f-108"},"848f-111":{"renderedLength":121,"gzipLength":132,"brotliLength":0,"mainUid":"848f-110"},"848f-113":{"renderedLength":5807,"gzipLength":1201,"brotliLength":0,"mainUid":"848f-112"},"848f-115":{"renderedLength":310,"gzipLength":147,"brotliLength":0,"mainUid":"848f-114"},"848f-117":{"renderedLength":593,"gzipLength":307,"brotliLength":0,"mainUid":"848f-116"},"848f-119":{"renderedLength":498,"gzipLength":257,"brotliLength":0,"mainUid":"848f-118"},"848f-121":{"renderedLength":601,"gzipLength":276,"brotliLength":0,"mainUid":"848f-120"},"848f-123":{"renderedLength":244,"gzipLength":171,"brotliLength":0,"mainUid":"848f-122"},"848f-125":{"renderedLength":793,"gzipLength":296,"brotliLength":0,"mainUid":"848f-124"},"848f-127":{"renderedLength":620,"gzipLength":286,"brotliLength":0,"mainUid":"848f-126"},"848f-129":{"renderedLength":6155,"gzipLength":1029,"brotliLength":0,"mainUid":"848f-128"},"848f-131":{"renderedLength":1935,"gzipLength":531,"brotliLength":0,"mainUid":"848f-130"},"848f-133":{"renderedLength":2943,"gzipLength":588,"brotliLength":0,"mainUid":"848f-132"},"848f-135":{"renderedLength":831,"gzipLength":164,"brotliLength":0,"mainUid":"848f-134"},"848f-137":{"renderedLength":500,"gzipLength":157,"brotliLength":0,"mainUid":"848f-136"},"848f-139":{"renderedLength":2893,"gzipLength":767,"brotliLength":0,"mainUid":"848f-138"},"848f-141":{"renderedLength":6229,"gzipLength":1287,"brotliLength":0,"mainUid":"848f-140"},"848f-143":{"renderedLength":371,"gzipLength":242,"brotliLength":0,"mainUid":"848f-142"},"848f-145":{"renderedLength":2869,"gzipLength":740,"brotliLength":0,"mainUid":"848f-144"},"848f-147":{"renderedLength":721,"gzipLength":297,"brotliLength":0,"mainUid":"848f-146"},"848f-149":{"renderedLength":3506,"gzipLength":701,"brotliLength":0,"mainUid":"848f-148"},"848f-151":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"848f-150"}},"nodeMetas":{"848f-106":{"id":"/Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-107"},"imported":[{"uid":"848f-152"},{"uid":"848f-154"},{"uid":"848f-155"}],"importedBy":[{"uid":"848f-148"}]},"848f-108":{"id":"/src/components/NotFound.tsx","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-109"},"imported":[{"uid":"848f-154"},{"uid":"848f-152"}],"importedBy":[{"uid":"848f-140"}]},"848f-110":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-111"},"imported":[],"importedBy":[{"uid":"848f-140"},{"uid":"848f-144"}]},"848f-112":{"id":"/src/utils/code.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-113"},"imported":[{"uid":"848f-152"}],"importedBy":[{"uid":"848f-140"},{"uid":"848f-144"}]},"848f-114":{"id":"/src/constants/controls.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-115"},"imported":[],"importedBy":[{"uid":"848f-116"},{"uid":"848f-124"}]},"848f-116":{"id":"/src/utils/controls/attrs.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-117"},"imported":[{"uid":"848f-152"},{"uid":"848f-114"}],"importedBy":[{"uid":"848f-157"}]},"848f-118":{"id":"/src/utils/controls/dimensionToControls.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-119"},"imported":[],"importedBy":[{"uid":"848f-157"}]},"848f-120":{"id":"/src/utils/controls/disableControls.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-121"},"imported":[],"importedBy":[{"uid":"848f-157"}]},"848f-122":{"id":"/src/utils/controls/filterDefaultValues.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-123"},"imported":[{"uid":"848f-152"}],"importedBy":[{"uid":"848f-146"},{"uid":"848f-157"}]},"848f-124":{"id":"/src/utils/controls/constants.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-125"},"imported":[{"uid":"848f-152"},{"uid":"848f-114"}],"importedBy":[{"uid":"848f-126"}]},"848f-126":{"id":"/src/utils/controls/makeControls.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-127"},"imported":[{"uid":"848f-124"}],"importedBy":[{"uid":"848f-157"}]},"848f-128":{"id":"/src/controls/element.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-129"},"imported":[{"uid":"848f-152"}],"importedBy":[{"uid":"848f-158"}]},"848f-130":{"id":"/src/controls/list.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-131"},"imported":[],"importedBy":[{"uid":"848f-158"}]},"848f-132":{"id":"/src/controls/overlay.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-133"},"imported":[],"importedBy":[{"uid":"848f-158"}]},"848f-134":{"id":"/src/controls/rocketstyle.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-135"},"imported":[],"importedBy":[{"uid":"848f-158"}]},"848f-136":{"id":"/src/controls/text.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-137"},"imported":[{"uid":"848f-152"}],"importedBy":[{"uid":"848f-158"}]},"848f-138":{"id":"/src/utils/controls/valuesToControls.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-139"},"imported":[{"uid":"848f-158"}],"importedBy":[{"uid":"848f-157"}]},"848f-140":{"id":"/src/stories/dimension.tsx","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-141"},"imported":[{"uid":"848f-154"},{"uid":"848f-152"},{"uid":"848f-156"},{"uid":"848f-108"},{"uid":"848f-110"},{"uid":"848f-112"},{"uid":"848f-157"}],"importedBy":[{"uid":"848f-153"}]},"848f-142":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-143"},"imported":[],"importedBy":[{"uid":"848f-144"}]},"848f-144":{"id":"/src/stories/main.tsx","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-145"},"imported":[{"uid":"848f-154"},{"uid":"848f-152"},{"uid":"848f-110"},{"uid":"848f-112"},{"uid":"848f-142"},{"uid":"848f-157"}],"importedBy":[{"uid":"848f-153"}]},"848f-146":{"id":"/src/stories/story.tsx","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-147"},"imported":[{"uid":"848f-154"},{"uid":"848f-157"},{"uid":"848f-122"}],"importedBy":[{"uid":"848f-153"}]},"848f-148":{"id":"/src/rocketstories.tsx","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-149"},"imported":[{"uid":"848f-152"},{"uid":"848f-106"},{"uid":"848f-153"}],"importedBy":[{"uid":"848f-150"}]},"848f-150":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstories.umd.js":"848f-151"},"imported":[{"uid":"848f-148"}],"importedBy":[],"isEntry":true},"848f-152":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"848f-148"},{"uid":"848f-106"},{"uid":"848f-140"},{"uid":"848f-144"},{"uid":"848f-108"},{"uid":"848f-112"},{"uid":"848f-122"},{"uid":"848f-116"},{"uid":"848f-124"},{"uid":"848f-128"},{"uid":"848f-136"}],"isExternal":true},"848f-153":{"id":"/src/stories/index.ts","moduleParts":{},"imported":[{"uid":"848f-140"},{"uid":"848f-144"},{"uid":"848f-146"}],"importedBy":[{"uid":"848f-148"}]},"848f-154":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"848f-106"},{"uid":"848f-140"},{"uid":"848f-144"},{"uid":"848f-146"},{"uid":"848f-108"}],"isExternal":true},"848f-155":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"848f-106"}],"isExternal":true},"848f-156":{"id":"@vitus-labs/elements","moduleParts":{},"imported":[],"importedBy":[{"uid":"848f-140"}],"isExternal":true},"848f-157":{"id":"/src/utils/controls/index.ts","moduleParts":{},"imported":[{"uid":"848f-116"},{"uid":"848f-118"},{"uid":"848f-120"},{"uid":"848f-122"},{"uid":"848f-126"},{"uid":"848f-138"}],"importedBy":[{"uid":"848f-140"},{"uid":"848f-144"},{"uid":"848f-146"}]},"848f-158":{"id":"/src/controls/index.ts","moduleParts":{},"imported":[{"uid":"848f-128"},{"uid":"848f-130"},{"uid":"848f-132"},{"uid":"848f-134"},{"uid":"848f-136"}],"importedBy":[{"uid":"848f-138"}]}},"env":{"rollup":"2.60.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
7064
7064
|
|
|
7065
7065
|
const run = () => {
|
|
7066
7066
|
const width = window.innerWidth;
|
package/lib/index.d.ts
CHANGED
|
@@ -30,17 +30,27 @@ declare type AttrsTypes<P, H = ExtractProps<P>> = {
|
|
|
30
30
|
disable: true;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
declare type Configuration<C =
|
|
33
|
+
declare type Configuration<C = any> = {
|
|
34
34
|
attrs: AttrsTypes<C>;
|
|
35
35
|
name: string;
|
|
36
36
|
component: Element | RocketComponent;
|
|
37
|
+
storyOptions: Partial<{
|
|
38
|
+
direction: 'inline' | 'rows';
|
|
39
|
+
alignX: 'left' | 'center' | 'right' | 'spaceBetween';
|
|
40
|
+
alignY: 'top' | 'center' | 'bottom' | 'spaceBetween';
|
|
41
|
+
gap: number;
|
|
42
|
+
pseudo: true;
|
|
43
|
+
}>;
|
|
44
|
+
decorators: any[];
|
|
37
45
|
};
|
|
38
46
|
|
|
39
47
|
declare type MakeDimensionStories = ({ name, component, dimension, attrs, }: {
|
|
40
48
|
name: string;
|
|
41
49
|
component: RocketComponent;
|
|
42
50
|
dimension: string;
|
|
43
|
-
attrs:
|
|
51
|
+
attrs: Configuration['attrs'];
|
|
52
|
+
storyOptions: Configuration['storyOptions'];
|
|
53
|
+
ignore: any;
|
|
44
54
|
}) => StoryComponent;
|
|
45
55
|
declare const makeDimensionStories: MakeDimensionStories;
|
|
46
56
|
|
|
@@ -60,13 +70,16 @@ declare type Story = ({ component, attrs, }: {
|
|
|
60
70
|
};
|
|
61
71
|
declare const story: Story;
|
|
62
72
|
|
|
63
|
-
declare type
|
|
73
|
+
declare type Init = ({ decorators, storyOptions, }: Partial<Pick<Configuration, 'decorators' | 'storyOptions'>>) => <T extends Element | RocketComponent = any>(component: T) => T extends RocketComponent ? ReturnType<CreateRocketStories<T>> : ReturnType<CreateStories<T>>;
|
|
74
|
+
declare const init: Init;
|
|
75
|
+
declare type Rocketstories = <T extends Element | RocketComponent = any>(component: T, { decorators, storyOptions, }?: Partial<Pick<Configuration<T>, 'storyOptions' | 'decorators'>> | any) => T extends RocketComponent ? ReturnType<CreateRocketStories<T>> : ReturnType<CreateStories<T>>;
|
|
64
76
|
declare const rocketstories: Rocketstories;
|
|
65
77
|
declare type CreateStories<C = Element> = (options: Partial<Configuration>, defaultOptions: Configuration) => {
|
|
66
78
|
attrs: (params: AttrsTypes<C>) => ReturnType<CreateStories<C>>;
|
|
67
79
|
config: () => {
|
|
68
80
|
component: Element;
|
|
69
81
|
title: string;
|
|
82
|
+
decorators?: Configuration['decorators'];
|
|
70
83
|
};
|
|
71
84
|
main: () => ReturnType<typeof story>;
|
|
72
85
|
};
|
|
@@ -78,7 +91,10 @@ declare type CreateRocketStories<C extends RocketComponent = any> = (options: Pa
|
|
|
78
91
|
title: string;
|
|
79
92
|
};
|
|
80
93
|
main: () => ReturnType<typeof mainStory>;
|
|
81
|
-
|
|
94
|
+
storyOptions: (options: Configuration['storyOptions']) => ReturnType<CreateRocketStories<C>>;
|
|
95
|
+
dimension: <A extends ExtractDimensions<C>, B = keyof C['$$rocketstyle'][A]>(dimension: A, params?: Partial<{
|
|
96
|
+
ignore: any;
|
|
97
|
+
}>) => ReturnType<typeof makeDimensionStories>;
|
|
82
98
|
};
|
|
83
99
|
|
|
84
|
-
export { rocketstories as default };
|
|
100
|
+
export { rocketstories as default, init };
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { dimensionStory, mainStory, generalStory } from './stories';
|
|
2
2
|
import type { Element, RocketComponent, Configuration, AttrsTypes } from './types';
|
|
3
|
-
declare type
|
|
3
|
+
declare type Init = ({ decorators, storyOptions, }: Partial<Pick<Configuration, 'decorators' | 'storyOptions'>>) => <T extends Element | RocketComponent = any>(component: T) => T extends RocketComponent ? ReturnType<CreateRocketStories<T>> : ReturnType<CreateStories<T>>;
|
|
4
|
+
declare const init: Init;
|
|
5
|
+
declare type Rocketstories = <T extends Element | RocketComponent = any>(component: T, { decorators, storyOptions, }?: Partial<Pick<Configuration<T>, 'storyOptions' | 'decorators'>> | any) => T extends RocketComponent ? ReturnType<CreateRocketStories<T>> : ReturnType<CreateStories<T>>;
|
|
4
6
|
declare const rocketstories: Rocketstories;
|
|
5
7
|
declare type CreateStories<C = Element> = (options: Partial<Configuration>, defaultOptions: Configuration) => {
|
|
6
8
|
attrs: (params: AttrsTypes<C>) => ReturnType<CreateStories<C>>;
|
|
7
9
|
config: () => {
|
|
8
10
|
component: Element;
|
|
9
11
|
title: string;
|
|
12
|
+
decorators?: Configuration['decorators'];
|
|
10
13
|
};
|
|
11
14
|
main: () => ReturnType<typeof generalStory>;
|
|
12
15
|
};
|
|
@@ -18,6 +21,10 @@ declare type CreateRocketStories<C extends RocketComponent = any> = (options: Pa
|
|
|
18
21
|
title: string;
|
|
19
22
|
};
|
|
20
23
|
main: () => ReturnType<typeof mainStory>;
|
|
21
|
-
|
|
24
|
+
storyOptions: (options: Configuration['storyOptions']) => ReturnType<CreateRocketStories<C>>;
|
|
25
|
+
dimension: <A extends ExtractDimensions<C>, B = keyof C['$$rocketstyle'][A]>(dimension: A, params?: Partial<{
|
|
26
|
+
ignore: any;
|
|
27
|
+
}>) => ReturnType<typeof dimensionStory>;
|
|
22
28
|
};
|
|
29
|
+
export { init };
|
|
23
30
|
export default rocketstories;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type { RocketComponent, StoryComponent } from "../types";
|
|
1
|
+
import type { RocketComponent, StoryComponent, Configuration } from "../types";
|
|
2
2
|
declare type MakeDimensionStories = ({ name, component, dimension, attrs, }: {
|
|
3
3
|
name: string;
|
|
4
4
|
component: RocketComponent;
|
|
5
5
|
dimension: string;
|
|
6
|
-
attrs:
|
|
6
|
+
attrs: Configuration['attrs'];
|
|
7
|
+
storyOptions: Configuration['storyOptions'];
|
|
8
|
+
ignore: any;
|
|
7
9
|
}) => StoryComponent;
|
|
8
10
|
declare const makeDimensionStories: MakeDimensionStories;
|
|
9
11
|
export default makeDimensionStories;
|
package/lib/types/types.d.ts
CHANGED
|
@@ -52,10 +52,18 @@ export declare type AttrsTypes<P, H = ExtractProps<P>> = {
|
|
|
52
52
|
disable: true;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
export declare type Configuration<C =
|
|
55
|
+
export declare type Configuration<C = any> = {
|
|
56
56
|
attrs: AttrsTypes<C>;
|
|
57
57
|
name: string;
|
|
58
58
|
component: Element | RocketComponent;
|
|
59
|
+
storyOptions: Partial<{
|
|
60
|
+
direction: 'inline' | 'rows';
|
|
61
|
+
alignX: 'left' | 'center' | 'right' | 'spaceBetween';
|
|
62
|
+
alignY: 'top' | 'center' | 'bottom' | 'spaceBetween';
|
|
63
|
+
gap: number;
|
|
64
|
+
pseudo: true;
|
|
65
|
+
}>;
|
|
66
|
+
decorators: any[];
|
|
59
67
|
};
|
|
60
68
|
export declare type SimpleValue = string | number | boolean;
|
|
61
69
|
export declare type Obj = Record<string, SimpleValue | Array<SimpleValue>>;
|