@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.
- package/lib/analysis/vitus-labs-rocketstories.js.html +1 -1
- package/lib/analysis/vitus-labs-rocketstories.module.js.html +1 -1
- package/lib/index.d.ts +35 -41
- package/lib/types/index.d.ts +3 -3
- package/lib/types/rocketstories.d.ts +16 -23
- package/lib/types/stories/dimension.d.ts +3 -3
- package/lib/types/stories/index.d.ts +2 -1
- package/lib/types/stories/main.d.ts +2 -4
- package/lib/types/types.d.ts +16 -8
- package/lib/types/utils/controls/valuesToControls.d.ts +2 -2
- package/lib/vitus-labs-rocketstories.js +64 -62
- package/lib/vitus-labs-rocketstories.js.map +1 -1
- package/lib/vitus-labs-rocketstories.module.js +64 -62
- package/lib/vitus-labs-rocketstories.module.js.map +1 -1
- package/package.json +6 -7
- package/lib/analysis/vitus-labs-rocketstories.umd.js.html +0 -6444
- package/lib/vitus-labs-rocketstories.umd.js +0 -1052
- package/lib/vitus-labs-rocketstories.umd.js.map +0 -1
|
@@ -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":"
|
|
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":"
|
|
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<
|
|
9
|
+
declare type StoryComponent<P = {}> = VFC<P> & {
|
|
9
10
|
args: any;
|
|
10
11
|
argTypes: any;
|
|
11
12
|
parameters: any;
|
|
12
13
|
};
|
|
13
|
-
declare type
|
|
14
|
-
declare type
|
|
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
|
|
53
|
-
|
|
54
|
-
|
|
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:
|
|
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
|
|
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:
|
|
85
|
+
declare const makeDimensionStories: DimensionStories;
|
|
83
86
|
|
|
84
|
-
declare type MainStory = (
|
|
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 =
|
|
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 = <
|
|
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
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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,
|
|
118
|
+
export { AttrItemControl, Configuration, Control, ControlTypes, Controls, ElementType, ExtractDimensions, ExtractProps, IRocketStories, Init, PartialControls, RocketStoryConfiguration, RocketType, Rocketstories, StoryComponent, StoryConfiguration, StorybookControl, rocketstories as default, init };
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import rocketstories, { init, Init, Rocketstories,
|
|
2
|
-
import type { ExtractDimensions, ExtractProps,
|
|
3
|
-
export type { Init, Rocketstories,
|
|
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 {
|
|
3
|
-
export declare type Init =
|
|
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 = <
|
|
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
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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 {
|
|
2
|
-
declare type
|
|
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:
|
|
10
|
+
declare const makeDimensionStories: DimensionStories;
|
|
11
11
|
export default makeDimensionStories;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare type MainStory = (
|
|
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;
|
package/lib/types/types.d.ts
CHANGED
|
@@ -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<
|
|
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
|
|
11
|
-
export declare type
|
|
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
|
|
55
|
-
export declare type Configuration
|
|
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:
|
|
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,
|
|
1
|
+
import type { Controls, RocketType } from "../../types";
|
|
2
2
|
declare type ValuesToControls = ({ component, values, dimensionControls, }: {
|
|
3
|
-
component:
|
|
3
|
+
component: RocketType;
|
|
4
4
|
values: Record<string, any>;
|
|
5
5
|
dimensionControls: Record<string, any>;
|
|
6
6
|
}) => Controls;
|