@vitus-labs/rocketstories 0.49.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 +14 -15
- package/lib/types/index.d.ts +2 -2
- package/lib/types/rocketstories.d.ts +13 -14
- package/lib/vitus-labs-rocketstories.js +50 -43
- package/lib/vitus-labs-rocketstories.js.map +1 -1
- package/lib/vitus-labs-rocketstories.module.js +50 -43
- package/lib/vitus-labs-rocketstories.module.js.map +1 -1
- package/package.json +6 -6
|
@@ -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
|
@@ -96,24 +96,23 @@ declare type Story = ({ component, attrs, }: {
|
|
|
96
96
|
};
|
|
97
97
|
declare const story: Story;
|
|
98
98
|
|
|
99
|
-
declare type Init = <P extends Partial<Omit<Configuration, 'component' | 'attrs'>>>(params: P) => <T extends Configuration['component']>(component: T) => T extends RocketType ?
|
|
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>;
|
|
100
100
|
declare const init: Init;
|
|
101
|
-
declare type Rocketstories = <C extends Configuration['component']>(component: C, options?: Partial<Omit<Configuration, 'component' | 'attrs'>>) => C extends RocketType ?
|
|
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>;
|
|
102
102
|
declare const rocketstories: Rocketstories;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
setComponent: <P extends Configuration['component']>(param: P) => P extends RocketType ? ReturnType<CreateRocketStories<ExtractProps<P>, P['$$rocketstyle'], SO>> : P extends ElementType ? ReturnType<CreateRocketStories<ExtractProps<P>, unknown, SO>> : ReturnType<CreateRocketStories<{}, unknown, SO>>;
|
|
108
|
-
main: () => ReturnType<typeof story> | ReturnType<typeof mainStory>;
|
|
109
|
-
dimension: <P extends keyof RA>(dimension: P, params?: Partial<{
|
|
110
|
-
ignore: any;
|
|
111
|
-
}>) => ReturnType<typeof makeDimensionStories>;
|
|
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;
|
|
112
107
|
export: () => {
|
|
113
|
-
component:
|
|
114
|
-
title:
|
|
108
|
+
component: Configuration['component'];
|
|
109
|
+
title: Configuration['name'];
|
|
115
110
|
decorators: Configuration['decorators'];
|
|
116
111
|
};
|
|
117
|
-
|
|
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
|
+
}
|
|
118
117
|
|
|
119
|
-
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,
|
|
1
|
+
import rocketstories, { init, Init, Rocketstories, IRocketStories } from "./rocketstories";
|
|
2
2
|
import type { ExtractDimensions, ExtractProps, ElementType, StoryComponent, StorybookControl, RocketType, Configuration, RocketStoryConfiguration, StoryConfiguration, Control, ControlTypes, Controls, PartialControls, AttrItemControl } from "./types";
|
|
3
|
-
export type { Init, Rocketstories,
|
|
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,23 +1,22 @@
|
|
|
1
1
|
import { dimensionStory, mainStory, generalStory } from './stories';
|
|
2
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 ?
|
|
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 = <C extends Configuration['component']>(component: C, options?: Partial<Omit<Configuration, 'component' | 'attrs'>>) => C extends RocketType ?
|
|
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
|
-
setComponent: <P extends Configuration['component']>(param: P) => P extends RocketType ? ReturnType<CreateRocketStories<ExtractProps<P>, P['$$rocketstyle'], SO>> : P extends ElementType ? ReturnType<CreateRocketStories<ExtractProps<P>, unknown, SO>> : ReturnType<CreateRocketStories<{}, unknown, SO>>;
|
|
12
|
-
main: () => ReturnType<typeof generalStory> | ReturnType<typeof mainStory>;
|
|
13
|
-
dimension: <P extends keyof RA>(dimension: P, params?: Partial<{
|
|
14
|
-
ignore: any;
|
|
15
|
-
}>) => ReturnType<typeof dimensionStory>;
|
|
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;
|
|
16
11
|
export: () => {
|
|
17
|
-
component:
|
|
18
|
-
title:
|
|
12
|
+
component: Configuration['component'];
|
|
13
|
+
title: Configuration['name'];
|
|
19
14
|
decorators: Configuration['decorators'];
|
|
20
15
|
};
|
|
21
|
-
|
|
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
|
+
}
|
|
22
21
|
export { init };
|
|
23
22
|
export default rocketstories;
|
|
@@ -980,10 +980,16 @@ const rocketstories = (component, options = {}) => {
|
|
|
980
980
|
storyOptions: { gap: 16, direction: 'rows', ...storyOptions },
|
|
981
981
|
decorators: [...decorators],
|
|
982
982
|
};
|
|
983
|
-
return createRocketStories(result
|
|
983
|
+
return createRocketStories(result);
|
|
984
984
|
};
|
|
985
|
-
//
|
|
986
|
-
|
|
985
|
+
// interface VoidFunctionComponent<P = {}> {
|
|
986
|
+
// (props: P, context?: any): ReactElement<any, any> | null
|
|
987
|
+
// propTypes?: WeakValidationMap<P> | undefined
|
|
988
|
+
// contextTypes?: ValidationMap<any> | undefined
|
|
989
|
+
// defaultProps?: Partial<P> | undefined
|
|
990
|
+
// displayName?: string | undefined
|
|
991
|
+
// }
|
|
992
|
+
const cloneAndEhnance = (options, defaultOptions) => {
|
|
987
993
|
const result = {
|
|
988
994
|
...defaultOptions,
|
|
989
995
|
name: defaultOptions.name || options.name,
|
|
@@ -1000,46 +1006,47 @@ const createRocketStories = (options, defaultOptions) => {
|
|
|
1000
1006
|
const finalStoryName = result.prefix
|
|
1001
1007
|
? `${result.prefix}/${finalName}`
|
|
1002
1008
|
: finalName;
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
}
|
|
1009
|
+
return createRocketStories({ ...result, name: finalStoryName });
|
|
1010
|
+
};
|
|
1011
|
+
const createRocketStories = (options) => ({
|
|
1012
|
+
CONFIG: options,
|
|
1013
|
+
// chaining methods
|
|
1014
|
+
storyOptions: (storyOptions) => cloneAndEhnance(options, { storyOptions }),
|
|
1015
|
+
config: ({ component, storyOptions, prefix, name, decorators }) => cloneAndEhnance(options, {
|
|
1016
|
+
component,
|
|
1017
|
+
storyOptions,
|
|
1018
|
+
prefix,
|
|
1019
|
+
name,
|
|
1020
|
+
decorators,
|
|
1021
|
+
}),
|
|
1022
|
+
attrs: (attrs) => cloneAndEhnance(options, { attrs }),
|
|
1023
|
+
setComponent: (component) =>
|
|
1024
|
+
//@ts-ignore
|
|
1025
|
+
cloneAndEhnance(options, { component }),
|
|
1026
|
+
// output methods
|
|
1027
|
+
main: () => isRocketComponent(options.component)
|
|
1028
|
+
? mainStory({
|
|
1029
|
+
...options,
|
|
1030
|
+
component: options.component,
|
|
1031
|
+
})
|
|
1032
|
+
: story(options),
|
|
1033
|
+
dimension: (dimension, params = {}) => {
|
|
1034
|
+
if (!isRocketComponent(options.component))
|
|
1035
|
+
return null;
|
|
1036
|
+
const { ignore = [] } = params;
|
|
1037
|
+
return makeDimensionStories({
|
|
1038
|
+
...options,
|
|
1039
|
+
component: options.component,
|
|
1040
|
+
ignore,
|
|
1041
|
+
dimension,
|
|
1042
|
+
});
|
|
1043
|
+
},
|
|
1044
|
+
export: () => ({
|
|
1045
|
+
component: options.component,
|
|
1046
|
+
title: options.name,
|
|
1047
|
+
decorators: options.decorators,
|
|
1048
|
+
}),
|
|
1049
|
+
});
|
|
1043
1050
|
|
|
1044
1051
|
exports["default"] = rocketstories;
|
|
1045
1052
|
exports.init = init;
|