@vitus-labs/rocketstories 0.46.0 → 0.49.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 +65 -46
- package/lib/types/index.d.ts +3 -1
- package/lib/types/rocketstories.d.ts +14 -21
- package/lib/types/stories/dimension.d.ts +5 -5
- package/lib/types/stories/index.d.ts +2 -1
- package/lib/types/stories/main.d.ts +2 -6
- package/lib/types/types.d.ts +18 -10
- package/lib/types/utils/controls/valuesToControls.d.ts +2 -2
- package/lib/vitus-labs-rocketstories.js +48 -59
- package/lib/vitus-labs-rocketstories.js.map +1 -1
- package/lib/vitus-labs-rocketstories.module.js +48 -59
- 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 -1058
- 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":"c8db-1"},{"name":"src","children":[{"name":"components/NotFound.tsx","uid":"c8db-3"},{"name":"utils","children":[{"uid":"c8db-5","name":"theme.ts"},{"uid":"c8db-7","name":"code.ts"},{"name":"controls","children":[{"uid":"c8db-11","name":"attrs.ts"},{"uid":"c8db-13","name":"dimensionToControls.ts"},{"uid":"c8db-15","name":"disableControls.ts"},{"uid":"c8db-17","name":"filterDefaultValues.ts"},{"uid":"c8db-19","name":"constants.ts"},{"uid":"c8db-21","name":"makeControls.ts"},{"uid":"c8db-33","name":"valuesToControls.ts"}]},{"uid":"c8db-37","name":"dimensions.ts"}]},{"name":"constants/controls.ts","uid":"c8db-9"},{"name":"controls","children":[{"uid":"c8db-23","name":"element.ts"},{"uid":"c8db-25","name":"list.ts"},{"uid":"c8db-27","name":"overlay.ts"},{"uid":"c8db-29","name":"rocketstyle.ts"},{"uid":"c8db-31","name":"text.ts"}]},{"name":"stories","children":[{"uid":"c8db-35","name":"dimension.tsx"},{"uid":"c8db-39","name":"main.tsx"},{"uid":"c8db-41","name":"story.tsx"}]},{"uid":"c8db-43","name":"rocketstories.tsx"},{"uid":"c8db-45","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"c8db-1":{"renderedLength":718,"gzipLength":376,"brotliLength":0,"mainUid":"c8db-0"},"c8db-3":{"renderedLength":236,"gzipLength":202,"brotliLength":0,"mainUid":"c8db-2"},"c8db-5":{"renderedLength":113,"gzipLength":129,"brotliLength":0,"mainUid":"c8db-4"},"c8db-7":{"renderedLength":5174,"gzipLength":1167,"brotliLength":0,"mainUid":"c8db-6"},"c8db-9":{"renderedLength":246,"gzipLength":141,"brotliLength":0,"mainUid":"c8db-8"},"c8db-11":{"renderedLength":480,"gzipLength":264,"brotliLength":0,"mainUid":"c8db-10"},"c8db-13":{"renderedLength":454,"gzipLength":254,"brotliLength":0,"mainUid":"c8db-12"},"c8db-15":{"renderedLength":545,"gzipLength":275,"brotliLength":0,"mainUid":"c8db-14"},"c8db-17":{"renderedLength":220,"gzipLength":170,"brotliLength":0,"mainUid":"c8db-16"},"c8db-19":{"renderedLength":685,"gzipLength":291,"brotliLength":0,"mainUid":"c8db-18"},"c8db-21":{"renderedLength":556,"gzipLength":282,"brotliLength":0,"mainUid":"c8db-20"},"c8db-23":{"renderedLength":5519,"gzipLength":1015,"brotliLength":0,"mainUid":"c8db-22"},"c8db-25":{"renderedLength":1731,"gzipLength":525,"brotliLength":0,"mainUid":"c8db-24"},"c8db-27":{"renderedLength":2567,"gzipLength":578,"brotliLength":0,"mainUid":"c8db-26"},"c8db-29":{"renderedLength":687,"gzipLength":158,"brotliLength":0,"mainUid":"c8db-28"},"c8db-31":{"renderedLength":408,"gzipLength":154,"brotliLength":0,"mainUid":"c8db-30"},"c8db-33":{"renderedLength":2532,"gzipLength":726,"brotliLength":0,"mainUid":"c8db-32"},"c8db-35":{"renderedLength":5640,"gzipLength":1282,"brotliLength":0,"mainUid":"c8db-34"},"c8db-37":{"renderedLength":339,"gzipLength":238,"brotliLength":0,"mainUid":"c8db-36"},"c8db-39":{"renderedLength":2625,"gzipLength":730,"brotliLength":0,"mainUid":"c8db-38"},"c8db-41":{"renderedLength":588,"gzipLength":256,"brotliLength":0,"mainUid":"c8db-40"},"c8db-43":{"renderedLength":2802,"gzipLength":750,"brotliLength":0,"mainUid":"c8db-42"},"c8db-45":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"c8db-44"}},"nodeMetas":{"c8db-0":{"id":"/Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","moduleParts":{"vitus-labs-rocketstories.js":"c8db-1"},"imported":[{"uid":"c8db-46"},{"uid":"c8db-48"},{"uid":"c8db-49"}],"importedBy":[{"uid":"c8db-42"}]},"c8db-2":{"id":"/src/components/NotFound.tsx","moduleParts":{"vitus-labs-rocketstories.js":"c8db-3"},"imported":[{"uid":"c8db-48"},{"uid":"c8db-46"}],"importedBy":[{"uid":"c8db-34"}]},"c8db-4":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-5"},"imported":[],"importedBy":[{"uid":"c8db-34"},{"uid":"c8db-38"}]},"c8db-6":{"id":"/src/utils/code.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-7"},"imported":[{"uid":"c8db-46"}],"importedBy":[{"uid":"c8db-34"},{"uid":"c8db-38"}]},"c8db-8":{"id":"/src/constants/controls.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-9"},"imported":[],"importedBy":[{"uid":"c8db-10"},{"uid":"c8db-18"}]},"c8db-10":{"id":"/src/utils/controls/attrs.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-11"},"imported":[{"uid":"c8db-46"},{"uid":"c8db-8"}],"importedBy":[{"uid":"c8db-51"}]},"c8db-12":{"id":"/src/utils/controls/dimensionToControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-13"},"imported":[],"importedBy":[{"uid":"c8db-51"}]},"c8db-14":{"id":"/src/utils/controls/disableControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-15"},"imported":[],"importedBy":[{"uid":"c8db-51"}]},"c8db-16":{"id":"/src/utils/controls/filterDefaultValues.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-17"},"imported":[{"uid":"c8db-46"}],"importedBy":[{"uid":"c8db-40"},{"uid":"c8db-51"}]},"c8db-18":{"id":"/src/utils/controls/constants.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-19"},"imported":[{"uid":"c8db-46"},{"uid":"c8db-8"}],"importedBy":[{"uid":"c8db-20"}]},"c8db-20":{"id":"/src/utils/controls/makeControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-21"},"imported":[{"uid":"c8db-18"}],"importedBy":[{"uid":"c8db-51"}]},"c8db-22":{"id":"/src/controls/element.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-23"},"imported":[{"uid":"c8db-46"}],"importedBy":[{"uid":"c8db-52"}]},"c8db-24":{"id":"/src/controls/list.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-25"},"imported":[],"importedBy":[{"uid":"c8db-52"}]},"c8db-26":{"id":"/src/controls/overlay.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-27"},"imported":[],"importedBy":[{"uid":"c8db-52"}]},"c8db-28":{"id":"/src/controls/rocketstyle.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-29"},"imported":[],"importedBy":[{"uid":"c8db-52"}]},"c8db-30":{"id":"/src/controls/text.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-31"},"imported":[{"uid":"c8db-46"}],"importedBy":[{"uid":"c8db-52"}]},"c8db-32":{"id":"/src/utils/controls/valuesToControls.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-33"},"imported":[{"uid":"c8db-52"}],"importedBy":[{"uid":"c8db-51"}]},"c8db-34":{"id":"/src/stories/dimension.tsx","moduleParts":{"vitus-labs-rocketstories.js":"c8db-35"},"imported":[{"uid":"c8db-48"},{"uid":"c8db-46"},{"uid":"c8db-50"},{"uid":"c8db-2"},{"uid":"c8db-4"},{"uid":"c8db-6"},{"uid":"c8db-51"}],"importedBy":[{"uid":"c8db-47"}]},"c8db-36":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-37"},"imported":[],"importedBy":[{"uid":"c8db-38"}]},"c8db-38":{"id":"/src/stories/main.tsx","moduleParts":{"vitus-labs-rocketstories.js":"c8db-39"},"imported":[{"uid":"c8db-48"},{"uid":"c8db-46"},{"uid":"c8db-4"},{"uid":"c8db-6"},{"uid":"c8db-36"},{"uid":"c8db-51"}],"importedBy":[{"uid":"c8db-47"}]},"c8db-40":{"id":"/src/stories/story.tsx","moduleParts":{"vitus-labs-rocketstories.js":"c8db-41"},"imported":[{"uid":"c8db-48"},{"uid":"c8db-51"},{"uid":"c8db-16"}],"importedBy":[{"uid":"c8db-47"}]},"c8db-42":{"id":"/src/rocketstories.tsx","moduleParts":{"vitus-labs-rocketstories.js":"c8db-43"},"imported":[{"uid":"c8db-46"},{"uid":"c8db-0"},{"uid":"c8db-47"}],"importedBy":[{"uid":"c8db-44"}]},"c8db-44":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstories.js":"c8db-45"},"imported":[{"uid":"c8db-42"}],"importedBy":[],"isEntry":true},"c8db-46":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"c8db-42"},{"uid":"c8db-0"},{"uid":"c8db-34"},{"uid":"c8db-38"},{"uid":"c8db-2"},{"uid":"c8db-6"},{"uid":"c8db-16"},{"uid":"c8db-10"},{"uid":"c8db-18"},{"uid":"c8db-22"},{"uid":"c8db-30"}],"isExternal":true},"c8db-47":{"id":"/src/stories/index.ts","moduleParts":{},"imported":[{"uid":"c8db-34"},{"uid":"c8db-38"},{"uid":"c8db-40"}],"importedBy":[{"uid":"c8db-42"}]},"c8db-48":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"c8db-0"},{"uid":"c8db-34"},{"uid":"c8db-38"},{"uid":"c8db-40"},{"uid":"c8db-2"}],"isExternal":true},"c8db-49":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"c8db-0"}],"isExternal":true},"c8db-50":{"id":"@vitus-labs/elements","moduleParts":{},"imported":[],"importedBy":[{"uid":"c8db-34"}],"isExternal":true},"c8db-51":{"id":"/src/utils/controls/index.ts","moduleParts":{},"imported":[{"uid":"c8db-10"},{"uid":"c8db-12"},{"uid":"c8db-14"},{"uid":"c8db-16"},{"uid":"c8db-20"},{"uid":"c8db-32"}],"importedBy":[{"uid":"c8db-34"},{"uid":"c8db-38"},{"uid":"c8db-40"}]},"c8db-52":{"id":"/src/controls/index.ts","moduleParts":{},"imported":[{"uid":"c8db-22"},{"uid":"c8db-24"},{"uid":"c8db-26"},{"uid":"c8db-28"},{"uid":"c8db-30"}],"importedBy":[{"uid":"c8db-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":"c8db-54"},{"name":"src","children":[{"name":"components/NotFound.tsx","uid":"c8db-56"},{"name":"utils","children":[{"uid":"c8db-58","name":"theme.ts"},{"uid":"c8db-60","name":"code.ts"},{"name":"controls","children":[{"uid":"c8db-64","name":"attrs.ts"},{"uid":"c8db-66","name":"dimensionToControls.ts"},{"uid":"c8db-68","name":"disableControls.ts"},{"uid":"c8db-70","name":"filterDefaultValues.ts"},{"uid":"c8db-72","name":"constants.ts"},{"uid":"c8db-74","name":"makeControls.ts"},{"uid":"c8db-86","name":"valuesToControls.ts"}]},{"uid":"c8db-90","name":"dimensions.ts"}]},{"name":"constants/controls.ts","uid":"c8db-62"},{"name":"controls","children":[{"uid":"c8db-76","name":"element.ts"},{"uid":"c8db-78","name":"list.ts"},{"uid":"c8db-80","name":"overlay.ts"},{"uid":"c8db-82","name":"rocketstyle.ts"},{"uid":"c8db-84","name":"text.ts"}]},{"name":"stories","children":[{"uid":"c8db-88","name":"dimension.tsx"},{"uid":"c8db-92","name":"main.tsx"},{"uid":"c8db-94","name":"story.tsx"}]},{"uid":"c8db-96","name":"rocketstories.tsx"},{"uid":"c8db-98","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"c8db-54":{"renderedLength":712,"gzipLength":373,"brotliLength":0,"mainUid":"c8db-53"},"c8db-56":{"renderedLength":211,"gzipLength":183,"brotliLength":0,"mainUid":"c8db-55"},"c8db-58":{"renderedLength":113,"gzipLength":129,"brotliLength":0,"mainUid":"c8db-57"},"c8db-60":{"renderedLength":5159,"gzipLength":1163,"brotliLength":0,"mainUid":"c8db-59"},"c8db-62":{"renderedLength":246,"gzipLength":141,"brotliLength":0,"mainUid":"c8db-61"},"c8db-64":{"renderedLength":475,"gzipLength":261,"brotliLength":0,"mainUid":"c8db-63"},"c8db-66":{"renderedLength":454,"gzipLength":254,"brotliLength":0,"mainUid":"c8db-65"},"c8db-68":{"renderedLength":545,"gzipLength":275,"brotliLength":0,"mainUid":"c8db-67"},"c8db-70":{"renderedLength":215,"gzipLength":167,"brotliLength":0,"mainUid":"c8db-69"},"c8db-72":{"renderedLength":680,"gzipLength":286,"brotliLength":0,"mainUid":"c8db-71"},"c8db-74":{"renderedLength":556,"gzipLength":282,"brotliLength":0,"mainUid":"c8db-73"},"c8db-76":{"renderedLength":5514,"gzipLength":1011,"brotliLength":0,"mainUid":"c8db-75"},"c8db-78":{"renderedLength":1731,"gzipLength":525,"brotliLength":0,"mainUid":"c8db-77"},"c8db-80":{"renderedLength":2567,"gzipLength":578,"brotliLength":0,"mainUid":"c8db-79"},"c8db-82":{"renderedLength":687,"gzipLength":158,"brotliLength":0,"mainUid":"c8db-81"},"c8db-84":{"renderedLength":403,"gzipLength":149,"brotliLength":0,"mainUid":"c8db-83"},"c8db-86":{"renderedLength":2532,"gzipLength":726,"brotliLength":0,"mainUid":"c8db-85"},"c8db-88":{"renderedLength":5324,"gzipLength":1254,"brotliLength":0,"mainUid":"c8db-87"},"c8db-90":{"renderedLength":339,"gzipLength":238,"brotliLength":0,"mainUid":"c8db-89"},"c8db-92":{"renderedLength":2574,"gzipLength":713,"brotliLength":0,"mainUid":"c8db-91"},"c8db-94":{"renderedLength":582,"gzipLength":251,"brotliLength":0,"mainUid":"c8db-93"},"c8db-96":{"renderedLength":2797,"gzipLength":747,"brotliLength":0,"mainUid":"c8db-95"},"c8db-98":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"c8db-97"}},"nodeMetas":{"c8db-53":{"id":"/Users/vitbokisch/Dev/vitus-labs/ui-system/packages/rocketstyle/lib/vitus-labs-rocketstyle.module.js","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-54"},"imported":[{"uid":"c8db-99"},{"uid":"c8db-101"},{"uid":"c8db-102"}],"importedBy":[{"uid":"c8db-95"}]},"c8db-55":{"id":"/src/components/NotFound.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-56"},"imported":[{"uid":"c8db-101"},{"uid":"c8db-99"}],"importedBy":[{"uid":"c8db-87"}]},"c8db-57":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-58"},"imported":[],"importedBy":[{"uid":"c8db-87"},{"uid":"c8db-91"}]},"c8db-59":{"id":"/src/utils/code.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-60"},"imported":[{"uid":"c8db-99"}],"importedBy":[{"uid":"c8db-87"},{"uid":"c8db-91"}]},"c8db-61":{"id":"/src/constants/controls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-62"},"imported":[],"importedBy":[{"uid":"c8db-63"},{"uid":"c8db-71"}]},"c8db-63":{"id":"/src/utils/controls/attrs.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-64"},"imported":[{"uid":"c8db-99"},{"uid":"c8db-61"}],"importedBy":[{"uid":"c8db-104"}]},"c8db-65":{"id":"/src/utils/controls/dimensionToControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-66"},"imported":[],"importedBy":[{"uid":"c8db-104"}]},"c8db-67":{"id":"/src/utils/controls/disableControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-68"},"imported":[],"importedBy":[{"uid":"c8db-104"}]},"c8db-69":{"id":"/src/utils/controls/filterDefaultValues.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-70"},"imported":[{"uid":"c8db-99"}],"importedBy":[{"uid":"c8db-93"},{"uid":"c8db-104"}]},"c8db-71":{"id":"/src/utils/controls/constants.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-72"},"imported":[{"uid":"c8db-99"},{"uid":"c8db-61"}],"importedBy":[{"uid":"c8db-73"}]},"c8db-73":{"id":"/src/utils/controls/makeControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-74"},"imported":[{"uid":"c8db-71"}],"importedBy":[{"uid":"c8db-104"}]},"c8db-75":{"id":"/src/controls/element.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-76"},"imported":[{"uid":"c8db-99"}],"importedBy":[{"uid":"c8db-105"}]},"c8db-77":{"id":"/src/controls/list.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-78"},"imported":[],"importedBy":[{"uid":"c8db-105"}]},"c8db-79":{"id":"/src/controls/overlay.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-80"},"imported":[],"importedBy":[{"uid":"c8db-105"}]},"c8db-81":{"id":"/src/controls/rocketstyle.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-82"},"imported":[],"importedBy":[{"uid":"c8db-105"}]},"c8db-83":{"id":"/src/controls/text.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-84"},"imported":[{"uid":"c8db-99"}],"importedBy":[{"uid":"c8db-105"}]},"c8db-85":{"id":"/src/utils/controls/valuesToControls.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-86"},"imported":[{"uid":"c8db-105"}],"importedBy":[{"uid":"c8db-104"}]},"c8db-87":{"id":"/src/stories/dimension.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-88"},"imported":[{"uid":"c8db-101"},{"uid":"c8db-99"},{"uid":"c8db-103"},{"uid":"c8db-55"},{"uid":"c8db-57"},{"uid":"c8db-59"},{"uid":"c8db-104"}],"importedBy":[{"uid":"c8db-100"}]},"c8db-89":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-90"},"imported":[],"importedBy":[{"uid":"c8db-91"}]},"c8db-91":{"id":"/src/stories/main.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-92"},"imported":[{"uid":"c8db-101"},{"uid":"c8db-99"},{"uid":"c8db-57"},{"uid":"c8db-59"},{"uid":"c8db-89"},{"uid":"c8db-104"}],"importedBy":[{"uid":"c8db-100"}]},"c8db-93":{"id":"/src/stories/story.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-94"},"imported":[{"uid":"c8db-101"},{"uid":"c8db-104"},{"uid":"c8db-69"}],"importedBy":[{"uid":"c8db-100"}]},"c8db-95":{"id":"/src/rocketstories.tsx","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-96"},"imported":[{"uid":"c8db-99"},{"uid":"c8db-53"},{"uid":"c8db-100"}],"importedBy":[{"uid":"c8db-97"}]},"c8db-97":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstories.module.js":"c8db-98"},"imported":[{"uid":"c8db-95"}],"importedBy":[],"isEntry":true},"c8db-99":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"c8db-95"},{"uid":"c8db-53"},{"uid":"c8db-87"},{"uid":"c8db-91"},{"uid":"c8db-55"},{"uid":"c8db-59"},{"uid":"c8db-69"},{"uid":"c8db-63"},{"uid":"c8db-71"},{"uid":"c8db-75"},{"uid":"c8db-83"}],"isExternal":true},"c8db-100":{"id":"/src/stories/index.ts","moduleParts":{},"imported":[{"uid":"c8db-87"},{"uid":"c8db-91"},{"uid":"c8db-93"}],"importedBy":[{"uid":"c8db-95"}]},"c8db-101":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"c8db-53"},{"uid":"c8db-87"},{"uid":"c8db-91"},{"uid":"c8db-93"},{"uid":"c8db-55"}],"isExternal":true},"c8db-102":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"c8db-53"}],"isExternal":true},"c8db-103":{"id":"@vitus-labs/elements","moduleParts":{},"imported":[],"importedBy":[{"uid":"c8db-87"}],"isExternal":true},"c8db-104":{"id":"/src/utils/controls/index.ts","moduleParts":{},"imported":[{"uid":"c8db-63"},{"uid":"c8db-65"},{"uid":"c8db-67"},{"uid":"c8db-69"},{"uid":"c8db-73"},{"uid":"c8db-85"}],"importedBy":[{"uid":"c8db-87"},{"uid":"c8db-91"},{"uid":"c8db-93"}]},"c8db-105":{"id":"/src/controls/index.ts","moduleParts":{},"imported":[{"uid":"c8db-75"},{"uid":"c8db-77"},{"uid":"c8db-79"},{"uid":"c8db-81"},{"uid":"c8db-83"}],"importedBy":[{"uid":"c8db-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,23 +1,48 @@
|
|
|
1
|
-
import { ComponentType,
|
|
1
|
+
import { ComponentType, VFC, ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import { RocketComponentType } from '@vitus-labs/rocketstyle';
|
|
2
3
|
|
|
3
4
|
declare const CONTROL_TYPES: readonly ["tag", "text", "number", "range", "boolean", "color", "select", "multi-select", "object", "array", "radio", "inline-radio", "check", "inline-check"];
|
|
4
5
|
declare type T_CONTROL_TYPES = typeof CONTROL_TYPES[number];
|
|
5
6
|
|
|
7
|
+
declare type TObj = Record<string, unknown>;
|
|
6
8
|
declare type ExtractProps<TComponentOrTProps> = TComponentOrTProps extends ComponentType<infer TProps> ? TProps : TComponentOrTProps;
|
|
7
|
-
declare type StoryComponent = VFC<
|
|
9
|
+
declare type StoryComponent<P = {}> = VFC<P> & {
|
|
8
10
|
args: any;
|
|
9
11
|
argTypes: any;
|
|
10
12
|
parameters: any;
|
|
11
13
|
};
|
|
12
|
-
declare type
|
|
13
|
-
declare type
|
|
14
|
-
IS_ROCKETSTYLE: true;
|
|
15
|
-
$$rocketstyle: Record<string, any>;
|
|
14
|
+
declare type ElementType<T extends TObj | unknown = any> = ComponentType<T> | ForwardRefExoticComponent<T>;
|
|
15
|
+
declare type RocketType = RocketComponentType & {
|
|
16
16
|
VITUS_LABS__COMPONENT?: string;
|
|
17
17
|
getStaticDimensions: any;
|
|
18
18
|
getDefaultAttrs: any;
|
|
19
19
|
displayName?: string;
|
|
20
20
|
};
|
|
21
|
+
declare type ControlTypes = T_CONTROL_TYPES;
|
|
22
|
+
declare type Control = {
|
|
23
|
+
type: T_CONTROL_TYPES;
|
|
24
|
+
value?: any;
|
|
25
|
+
valueType?: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
group?: string;
|
|
28
|
+
options?: any[];
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
};
|
|
31
|
+
declare type StorybookControl = {
|
|
32
|
+
control: {
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
defaultValue?: any;
|
|
36
|
+
description?: string;
|
|
37
|
+
options?: any[];
|
|
38
|
+
table: {
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
category?: string;
|
|
41
|
+
type: {
|
|
42
|
+
summary?: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
21
46
|
declare type AttrItemControl<T> = {
|
|
22
47
|
type: T_CONTROL_TYPES;
|
|
23
48
|
value?: T;
|
|
@@ -25,40 +50,41 @@ declare type AttrItemControl<T> = {
|
|
|
25
50
|
group?: string;
|
|
26
51
|
description?: string;
|
|
27
52
|
};
|
|
28
|
-
declare type
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
declare type Configuration<C = any> = {
|
|
34
|
-
attrs: AttrsTypes<C>;
|
|
53
|
+
declare type ExtractDimensions<C extends RocketType> = keyof C['$$rocketstyle'];
|
|
54
|
+
declare type Configuration = {
|
|
55
|
+
component: RocketType | ElementType;
|
|
56
|
+
attrs: Record<string, any>;
|
|
57
|
+
prefix?: string;
|
|
35
58
|
name: string;
|
|
36
|
-
component: Element | RocketComponent;
|
|
37
59
|
storyOptions: Partial<{
|
|
38
60
|
direction: 'inline' | 'rows';
|
|
39
61
|
alignX: 'left' | 'center' | 'right' | 'spaceBetween';
|
|
40
62
|
alignY: 'top' | 'center' | 'bottom' | 'spaceBetween';
|
|
41
63
|
gap: number;
|
|
42
|
-
pseudo:
|
|
64
|
+
pseudo: boolean | null | undefined;
|
|
43
65
|
}>;
|
|
44
66
|
decorators: any[];
|
|
45
|
-
};
|
|
67
|
+
};
|
|
68
|
+
declare type RocketStoryConfiguration = Configuration & {
|
|
69
|
+
component: RocketType;
|
|
70
|
+
};
|
|
71
|
+
declare type StoryConfiguration = Configuration & {
|
|
72
|
+
component: ElementType;
|
|
73
|
+
};
|
|
74
|
+
declare type Controls = Record<string, Control>;
|
|
75
|
+
declare type PartialControls = Record<string, Partial<Control>>;
|
|
46
76
|
|
|
47
|
-
declare type
|
|
77
|
+
declare type DimensionStories = <T extends RocketType>({ name, component, dimension, attrs, }: {
|
|
48
78
|
name: string;
|
|
49
|
-
component:
|
|
50
|
-
dimension:
|
|
79
|
+
component: T;
|
|
80
|
+
dimension: ExtractDimensions<T>;
|
|
51
81
|
attrs: Configuration['attrs'];
|
|
52
82
|
storyOptions: Configuration['storyOptions'];
|
|
53
83
|
ignore: any;
|
|
54
84
|
}) => StoryComponent;
|
|
55
|
-
declare const makeDimensionStories:
|
|
85
|
+
declare const makeDimensionStories: DimensionStories;
|
|
56
86
|
|
|
57
|
-
declare type MainStory = (
|
|
58
|
-
name: string;
|
|
59
|
-
component: RocketComponent;
|
|
60
|
-
attrs: Record<string, unknown>;
|
|
61
|
-
}) => StoryComponent;
|
|
87
|
+
declare type MainStory = (params: RocketStoryConfiguration) => StoryComponent;
|
|
62
88
|
declare const mainStory: MainStory;
|
|
63
89
|
|
|
64
90
|
declare type Story = ({ component, attrs, }: {
|
|
@@ -70,31 +96,24 @@ declare type Story = ({ component, attrs, }: {
|
|
|
70
96
|
};
|
|
71
97
|
declare const story: Story;
|
|
72
98
|
|
|
73
|
-
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 ? ReturnType<CreateRocketStories<ExtractProps<T>, T['$$rocketstyle']>> : ReturnType<CreateRocketStories<ExtractProps<T>, unknown>>;
|
|
74
100
|
declare const init: Init;
|
|
75
|
-
declare type Rocketstories = <
|
|
101
|
+
declare type Rocketstories = <C extends Configuration['component']>(component: C, options?: Partial<Omit<Configuration, 'component' | 'attrs'>>) => C extends RocketType ? ReturnType<CreateRocketStories<ExtractProps<C>, C['$$rocketstyle']>> : ReturnType<CreateRocketStories<ExtractProps<C>, unknown>>;
|
|
76
102
|
declare const rocketstories: Rocketstories;
|
|
77
|
-
declare type
|
|
78
|
-
|
|
79
|
-
config: () =>
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
declare type CreateRocketStories<C extends RocketComponent = any> = (options: Partial<Configuration<C>>, defaultOptions: Configuration<C>) => {
|
|
88
|
-
attrs: (params: AttrsTypes<C>) => ReturnType<CreateRocketStories<C>>;
|
|
89
|
-
config: () => {
|
|
103
|
+
declare type CreateRocketStories<OA extends TObj = {}, RA extends TObj | unknown = unknown, SO extends TObj = {}> = (defaultOptions: Configuration, options: Partial<Configuration>) => {
|
|
104
|
+
storyOptions: (options: Configuration['storyOptions']) => ReturnType<CreateRocketStories<OA, RA, SO>>;
|
|
105
|
+
config: (params: Partial<Omit<Configuration, 'attrs'>>) => ReturnType<CreateRocketStories<OA, RA, SO>>;
|
|
106
|
+
attrs: <P extends Partial<OA>>(params: P) => ReturnType<CreateRocketStories<OA, RA, SO>>;
|
|
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>;
|
|
112
|
+
export: () => {
|
|
90
113
|
component: Element;
|
|
91
114
|
title: string;
|
|
115
|
+
decorators: Configuration['decorators'];
|
|
92
116
|
};
|
|
93
|
-
main: () => ReturnType<typeof mainStory>;
|
|
94
|
-
storyOptions: (options: Configuration['storyOptions']) => ReturnType<CreateRocketStories<C>>;
|
|
95
|
-
dimension: <A extends ExtractDimensions<C>>(dimension: A, params?: Partial<{
|
|
96
|
-
ignore: any;
|
|
97
|
-
}>) => ReturnType<typeof makeDimensionStories>;
|
|
98
117
|
};
|
|
99
118
|
|
|
100
|
-
export { rocketstories as default, init };
|
|
119
|
+
export { AttrItemControl, Configuration, Control, ControlTypes, Controls, CreateRocketStories, ElementType, ExtractDimensions, ExtractProps, Init, PartialControls, RocketStoryConfiguration, RocketType, Rocketstories, StoryComponent, StoryConfiguration, StorybookControl, rocketstories as default, init };
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import rocketstories, { init } from
|
|
1
|
+
import rocketstories, { init, Init, Rocketstories, CreateRocketStories } from "./rocketstories";
|
|
2
|
+
import type { ExtractDimensions, ExtractProps, ElementType, StoryComponent, StorybookControl, RocketType, Configuration, RocketStoryConfiguration, StoryConfiguration, Control, ControlTypes, Controls, PartialControls, AttrItemControl } from "./types";
|
|
3
|
+
export type { Init, Rocketstories, CreateRocketStories, ExtractDimensions, ExtractProps, ElementType, StoryComponent, StorybookControl, RocketType, Configuration, RocketStoryConfiguration, StoryConfiguration, Control, ControlTypes, Controls, PartialControls, AttrItemControl, };
|
|
2
4
|
export { init };
|
|
3
5
|
export default rocketstories;
|
|
@@ -1,30 +1,23 @@
|
|
|
1
1
|
import { dimensionStory, mainStory, generalStory } from './stories';
|
|
2
|
-
import type {
|
|
3
|
-
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 ? ReturnType<CreateRocketStories<ExtractProps<T>, T['$$rocketstyle']>> : ReturnType<CreateRocketStories<ExtractProps<T>, unknown>>;
|
|
4
4
|
declare const init: Init;
|
|
5
|
-
declare type Rocketstories = <
|
|
5
|
+
export declare type Rocketstories = <C extends Configuration['component']>(component: C, options?: Partial<Omit<Configuration, 'component' | 'attrs'>>) => C extends RocketType ? ReturnType<CreateRocketStories<ExtractProps<C>, C['$$rocketstyle']>> : ReturnType<CreateRocketStories<ExtractProps<C>, unknown>>;
|
|
6
6
|
declare const rocketstories: Rocketstories;
|
|
7
|
-
declare type
|
|
8
|
-
|
|
9
|
-
config: () =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare type CreateRocketStories<C extends RocketComponent = any> = (options: Partial<Configuration<C>>, defaultOptions: Configuration<C>) => {
|
|
18
|
-
attrs: (params: AttrsTypes<C>) => ReturnType<CreateRocketStories<C>>;
|
|
19
|
-
config: () => {
|
|
7
|
+
export declare type CreateRocketStories<OA extends TObj = {}, RA extends TObj | unknown = unknown, SO extends TObj = {}> = (defaultOptions: Configuration, options: Partial<Configuration>) => {
|
|
8
|
+
storyOptions: (options: Configuration['storyOptions']) => ReturnType<CreateRocketStories<OA, RA, SO>>;
|
|
9
|
+
config: (params: Partial<Omit<Configuration, 'attrs'>>) => ReturnType<CreateRocketStories<OA, RA, SO>>;
|
|
10
|
+
attrs: <P extends Partial<OA>>(params: P) => ReturnType<CreateRocketStories<OA, RA, SO>>;
|
|
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>;
|
|
16
|
+
export: () => {
|
|
20
17
|
component: Element;
|
|
21
18
|
title: string;
|
|
19
|
+
decorators: Configuration['decorators'];
|
|
22
20
|
};
|
|
23
|
-
main: () => ReturnType<typeof mainStory>;
|
|
24
|
-
storyOptions: (options: Configuration['storyOptions']) => ReturnType<CreateRocketStories<C>>;
|
|
25
|
-
dimension: <A extends ExtractDimensions<C>>(dimension: A, params?: Partial<{
|
|
26
|
-
ignore: any;
|
|
27
|
-
}>) => ReturnType<typeof dimensionStory>;
|
|
28
21
|
};
|
|
29
22
|
export { init };
|
|
30
23
|
export default rocketstories;
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
component:
|
|
5
|
-
dimension:
|
|
4
|
+
component: T;
|
|
5
|
+
dimension: ExtractDimensions<T>;
|
|
6
6
|
attrs: Configuration['attrs'];
|
|
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,8 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare type MainStory = (
|
|
3
|
-
name: string;
|
|
4
|
-
component: RocketComponent;
|
|
5
|
-
attrs: Record<string, unknown>;
|
|
6
|
-
}) => StoryComponent;
|
|
1
|
+
import type { StoryComponent, RocketStoryConfiguration } from "../types";
|
|
2
|
+
declare type MainStory = (params: RocketStoryConfiguration) => StoryComponent;
|
|
7
3
|
declare const mainStory: MainStory;
|
|
8
4
|
export default mainStory;
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { ComponentType,
|
|
1
|
+
import type { ComponentType, ForwardRefExoticComponent, VFC } from 'react';
|
|
2
|
+
import type { RocketComponentType } from '@vitus-labs/rocketstyle';
|
|
2
3
|
import type { T_CONTROL_TYPES } from "./constants/controls";
|
|
4
|
+
export declare type TObj = Record<string, unknown>;
|
|
3
5
|
export declare type ExtractProps<TComponentOrTProps> = TComponentOrTProps extends ComponentType<infer TProps> ? TProps : TComponentOrTProps;
|
|
4
|
-
export declare type StoryComponent = VFC<
|
|
6
|
+
export declare type StoryComponent<P = {}> = VFC<P> & {
|
|
5
7
|
args: any;
|
|
6
8
|
argTypes: any;
|
|
7
9
|
parameters: any;
|
|
8
10
|
};
|
|
9
|
-
export declare type
|
|
10
|
-
export declare type
|
|
11
|
-
IS_ROCKETSTYLE: true;
|
|
12
|
-
$$rocketstyle: Record<string, any>;
|
|
11
|
+
export declare type ElementType<T extends TObj | unknown = any> = ComponentType<T> | ForwardRefExoticComponent<T>;
|
|
12
|
+
export declare type RocketType = RocketComponentType & {
|
|
13
13
|
VITUS_LABS__COMPONENT?: string;
|
|
14
14
|
getStaticDimensions: any;
|
|
15
15
|
getDefaultAttrs: any;
|
|
@@ -52,19 +52,27 @@ export declare type AttrsTypes<P, H = ExtractProps<P>> = {
|
|
|
52
52
|
disable: true;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
export declare type
|
|
56
|
-
|
|
55
|
+
export declare type ExtractDimensions<C extends RocketType> = keyof C['$$rocketstyle'];
|
|
56
|
+
export declare type Configuration = {
|
|
57
|
+
component: RocketType | ElementType;
|
|
58
|
+
attrs: Record<string, any>;
|
|
59
|
+
prefix?: string;
|
|
57
60
|
name: string;
|
|
58
|
-
component: Element | RocketComponent;
|
|
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;
|