@vitus-labs/rocketstyle 0.57.0-alpha.3 → 0.57.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6424,7 +6424,7 @@ var drawChart = (function (exports) {
|
|
|
6424
6424
|
</script>
|
|
6425
6425
|
<script>
|
|
6426
6426
|
/*<!--*/
|
|
6427
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.js","children":[{"name":"src","children":[{"name":"constants","children":[{"uid":"
|
|
6427
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.js","children":[{"name":"src","children":[{"name":"constants","children":[{"uid":"3a5c-1","name":"index.ts"},{"uid":"3a5c-37","name":"defaultDimensions.ts"}]},{"name":"context","children":[{"uid":"3a5c-3","name":"localContext.tsx"},{"uid":"3a5c-13","name":"createLocalProvider.tsx"}]},{"name":"hooks","children":[{"uid":"3a5c-5","name":"usePseudoState.tsx"},{"uid":"3a5c-7","name":"useRef.ts"},{"uid":"3a5c-11","name":"useTheme.tsx"}]},{"uid":"3a5c-9","name":"context.tsx"},{"name":"cache/LocalThemeManager.ts","uid":"3a5c-15"},{"name":"utils","children":[{"uid":"3a5c-17","name":"attrs.ts"},{"uid":"3a5c-21","name":"statics.ts"},{"uid":"3a5c-23","name":"collection.ts"},{"uid":"3a5c-25","name":"dimensions.ts"},{"uid":"3a5c-27","name":"theme.ts"},{"uid":"3a5c-29","name":"chaining.ts"},{"uid":"3a5c-31","name":"compose.ts"},{"uid":"3a5c-33","name":"styles.ts"}]},{"name":"hoc/rocketstyleAttrsHoc.tsx","uid":"3a5c-19"},{"uid":"3a5c-35","name":"rocketstyle.tsx"},{"uid":"3a5c-39","name":"init.ts"},{"uid":"3a5c-41","name":"isRocketComponent.tsx"},{"uid":"3a5c-43","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"3a5c-1":{"renderedLength":566,"gzipLength":296,"brotliLength":0,"mainUid":"3a5c-0"},"3a5c-3":{"renderedLength":300,"gzipLength":182,"brotliLength":0,"mainUid":"3a5c-2"},"3a5c-5":{"renderedLength":1875,"gzipLength":446,"brotliLength":0,"mainUid":"3a5c-4"},"3a5c-7":{"renderedLength":271,"gzipLength":150,"brotliLength":0,"mainUid":"3a5c-6"},"3a5c-9":{"renderedLength":464,"gzipLength":261,"brotliLength":0,"mainUid":"3a5c-8"},"3a5c-11":{"renderedLength":346,"gzipLength":213,"brotliLength":0,"mainUid":"3a5c-10"},"3a5c-13":{"renderedLength":824,"gzipLength":379,"brotliLength":0,"mainUid":"3a5c-12"},"3a5c-15":{"renderedLength":235,"gzipLength":120,"brotliLength":0,"mainUid":"3a5c-14"},"3a5c-17":{"renderedLength":2552,"gzipLength":893,"brotliLength":0,"mainUid":"3a5c-16"},"3a5c-19":{"renderedLength":1013,"gzipLength":440,"brotliLength":0,"mainUid":"3a5c-18"},"3a5c-21":{"renderedLength":459,"gzipLength":270,"brotliLength":0,"mainUid":"3a5c-20"},"3a5c-23":{"renderedLength":756,"gzipLength":316,"brotliLength":0,"mainUid":"3a5c-22"},"3a5c-25":{"renderedLength":1509,"gzipLength":542,"brotliLength":0,"mainUid":"3a5c-24"},"3a5c-27":{"renderedLength":2289,"gzipLength":752,"brotliLength":0,"mainUid":"3a5c-26"},"3a5c-29":{"renderedLength":564,"gzipLength":253,"brotliLength":0,"mainUid":"3a5c-28"},"3a5c-31":{"renderedLength":135,"gzipLength":129,"brotliLength":0,"mainUid":"3a5c-30"},"3a5c-33":{"renderedLength":187,"gzipLength":157,"brotliLength":0,"mainUid":"3a5c-32"},"3a5c-35":{"renderedLength":12209,"gzipLength":2736,"brotliLength":0,"mainUid":"3a5c-34"},"3a5c-37":{"renderedLength":178,"gzipLength":128,"brotliLength":0,"mainUid":"3a5c-36"},"3a5c-39":{"renderedLength":1553,"gzipLength":562,"brotliLength":0,"mainUid":"3a5c-38"},"3a5c-41":{"renderedLength":267,"gzipLength":184,"brotliLength":0,"mainUid":"3a5c-40"},"3a5c-43":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"3a5c-42"}},"nodeMetas":{"3a5c-0":{"id":"/src/constants/index.ts","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-1"},"imported":[],"importedBy":[{"uid":"3a5c-38"},{"uid":"3a5c-34"},{"uid":"3a5c-20"},{"uid":"3a5c-10"}]},"3a5c-2":{"id":"/src/context/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-3"},"imported":[{"uid":"3a5c-45"}],"importedBy":[{"uid":"3a5c-34"},{"uid":"3a5c-12"}]},"3a5c-4":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-5"},"imported":[{"uid":"3a5c-45"}],"importedBy":[{"uid":"3a5c-48"}]},"3a5c-6":{"id":"/src/hooks/useRef.ts","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-7"},"imported":[{"uid":"3a5c-45"}],"importedBy":[{"uid":"3a5c-48"}]},"3a5c-8":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-9"},"imported":[{"uid":"3a5c-45"},{"uid":"3a5c-44"}],"importedBy":[{"uid":"3a5c-42"},{"uid":"3a5c-10"}]},"3a5c-10":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-11"},"imported":[{"uid":"3a5c-45"},{"uid":"3a5c-8"},{"uid":"3a5c-0"}],"importedBy":[{"uid":"3a5c-48"}]},"3a5c-12":{"id":"/src/context/createLocalProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-13"},"imported":[{"uid":"3a5c-45"},{"uid":"3a5c-48"},{"uid":"3a5c-2"}],"importedBy":[{"uid":"3a5c-34"}]},"3a5c-14":{"id":"/src/cache/LocalThemeManager.ts","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-15"},"imported":[],"importedBy":[{"uid":"3a5c-47"}]},"3a5c-16":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-17"},"imported":[{"uid":"3a5c-44"}],"importedBy":[{"uid":"3a5c-34"},{"uid":"3a5c-18"}]},"3a5c-18":{"id":"/src/hoc/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-19"},"imported":[{"uid":"3a5c-45"},{"uid":"3a5c-44"},{"uid":"3a5c-16"},{"uid":"3a5c-48"}],"importedBy":[{"uid":"3a5c-49"}]},"3a5c-20":{"id":"/src/utils/statics.ts","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-21"},"imported":[{"uid":"3a5c-44"},{"uid":"3a5c-0"}],"importedBy":[{"uid":"3a5c-34"}]},"3a5c-22":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-23"},"imported":[],"importedBy":[{"uid":"3a5c-26"}]},"3a5c-24":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-25"},"imported":[{"uid":"3a5c-44"}],"importedBy":[{"uid":"3a5c-38"},{"uid":"3a5c-34"},{"uid":"3a5c-26"}]},"3a5c-26":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-27"},"imported":[{"uid":"3a5c-44"},{"uid":"3a5c-22"},{"uid":"3a5c-24"}],"importedBy":[{"uid":"3a5c-34"}]},"3a5c-28":{"id":"/src/utils/chaining.ts","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-29"},"imported":[],"importedBy":[{"uid":"3a5c-34"}]},"3a5c-30":{"id":"/src/utils/compose.ts","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-31"},"imported":[],"importedBy":[{"uid":"3a5c-34"}]},"3a5c-32":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-33"},"imported":[{"uid":"3a5c-44"}],"importedBy":[{"uid":"3a5c-34"}]},"3a5c-34":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-35"},"imported":[{"uid":"3a5c-45"},{"uid":"3a5c-46"},{"uid":"3a5c-44"},{"uid":"3a5c-0"},{"uid":"3a5c-2"},{"uid":"3a5c-12"},{"uid":"3a5c-47"},{"uid":"3a5c-48"},{"uid":"3a5c-49"},{"uid":"3a5c-20"},{"uid":"3a5c-26"},{"uid":"3a5c-28"},{"uid":"3a5c-30"},{"uid":"3a5c-32"},{"uid":"3a5c-24"},{"uid":"3a5c-16"}],"importedBy":[{"uid":"3a5c-38"}]},"3a5c-36":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-37"},"imported":[],"importedBy":[{"uid":"3a5c-38"}]},"3a5c-38":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-39"},"imported":[{"uid":"3a5c-44"},{"uid":"3a5c-34"},{"uid":"3a5c-24"},{"uid":"3a5c-0"},{"uid":"3a5c-36"}],"importedBy":[{"uid":"3a5c-42"}]},"3a5c-40":{"id":"/src/isRocketComponent.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-41"},"imported":[],"importedBy":[{"uid":"3a5c-42"}]},"3a5c-42":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.js":"3a5c-43"},"imported":[{"uid":"3a5c-38"},{"uid":"3a5c-8"},{"uid":"3a5c-40"}],"importedBy":[],"isEntry":true},"3a5c-44":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a5c-38"},{"uid":"3a5c-8"},{"uid":"3a5c-34"},{"uid":"3a5c-24"},{"uid":"3a5c-20"},{"uid":"3a5c-26"},{"uid":"3a5c-32"},{"uid":"3a5c-16"},{"uid":"3a5c-18"}],"isExternal":true},"3a5c-45":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a5c-8"},{"uid":"3a5c-34"},{"uid":"3a5c-2"},{"uid":"3a5c-12"},{"uid":"3a5c-4"},{"uid":"3a5c-6"},{"uid":"3a5c-10"},{"uid":"3a5c-18"}],"isExternal":true},"3a5c-46":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a5c-34"}],"isExternal":true},"3a5c-47":{"id":"/src/cache/index.ts","moduleParts":{},"imported":[{"uid":"3a5c-14"}],"importedBy":[{"uid":"3a5c-34"}]},"3a5c-48":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"3a5c-4"},{"uid":"3a5c-6"},{"uid":"3a5c-10"}],"importedBy":[{"uid":"3a5c-34"},{"uid":"3a5c-12"},{"uid":"3a5c-18"}]},"3a5c-49":{"id":"/src/hoc/index.ts","moduleParts":{},"imported":[{"uid":"3a5c-18"}],"importedBy":[{"uid":"3a5c-34"}]}},"env":{"rollup":"2.72.0"},"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-rocketstyle.module.js","children":[{"name":"src","children":[{"name":"constants","children":[{"uid":"
|
|
6427
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.module.js","children":[{"name":"src","children":[{"name":"constants","children":[{"uid":"3a5c-51","name":"index.ts"},{"uid":"3a5c-87","name":"defaultDimensions.ts"}]},{"name":"context","children":[{"uid":"3a5c-53","name":"localContext.tsx"},{"uid":"3a5c-63","name":"createLocalProvider.tsx"}]},{"name":"hooks","children":[{"uid":"3a5c-55","name":"usePseudoState.tsx"},{"uid":"3a5c-57","name":"useRef.ts"},{"uid":"3a5c-61","name":"useTheme.tsx"}]},{"uid":"3a5c-59","name":"context.tsx"},{"name":"cache/LocalThemeManager.ts","uid":"3a5c-65"},{"name":"utils","children":[{"uid":"3a5c-67","name":"attrs.ts"},{"uid":"3a5c-71","name":"statics.ts"},{"uid":"3a5c-73","name":"collection.ts"},{"uid":"3a5c-75","name":"dimensions.ts"},{"uid":"3a5c-77","name":"theme.ts"},{"uid":"3a5c-79","name":"chaining.ts"},{"uid":"3a5c-81","name":"compose.ts"},{"uid":"3a5c-83","name":"styles.ts"}]},{"name":"hoc/rocketstyleAttrsHoc.tsx","uid":"3a5c-69"},{"uid":"3a5c-85","name":"rocketstyle.tsx"},{"uid":"3a5c-89","name":"init.ts"},{"uid":"3a5c-91","name":"isRocketComponent.tsx"},{"uid":"3a5c-93","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"3a5c-51":{"renderedLength":566,"gzipLength":296,"brotliLength":0,"mainUid":"3a5c-50"},"3a5c-53":{"renderedLength":288,"gzipLength":177,"brotliLength":0,"mainUid":"3a5c-52"},"3a5c-55":{"renderedLength":1821,"gzipLength":441,"brotliLength":0,"mainUid":"3a5c-54"},"3a5c-57":{"renderedLength":253,"gzipLength":146,"brotliLength":0,"mainUid":"3a5c-56"},"3a5c-59":{"renderedLength":432,"gzipLength":247,"brotliLength":0,"mainUid":"3a5c-58"},"3a5c-61":{"renderedLength":337,"gzipLength":210,"brotliLength":0,"mainUid":"3a5c-60"},"3a5c-63":{"renderedLength":772,"gzipLength":360,"brotliLength":0,"mainUid":"3a5c-62"},"3a5c-65":{"renderedLength":235,"gzipLength":120,"brotliLength":0,"mainUid":"3a5c-64"},"3a5c-67":{"renderedLength":2547,"gzipLength":889,"brotliLength":0,"mainUid":"3a5c-66"},"3a5c-69":{"renderedLength":974,"gzipLength":418,"brotliLength":0,"mainUid":"3a5c-68"},"3a5c-71":{"renderedLength":454,"gzipLength":266,"brotliLength":0,"mainUid":"3a5c-70"},"3a5c-73":{"renderedLength":756,"gzipLength":316,"brotliLength":0,"mainUid":"3a5c-72"},"3a5c-75":{"renderedLength":1494,"gzipLength":535,"brotliLength":0,"mainUid":"3a5c-74"},"3a5c-77":{"renderedLength":2259,"gzipLength":746,"brotliLength":0,"mainUid":"3a5c-76"},"3a5c-79":{"renderedLength":564,"gzipLength":253,"brotliLength":0,"mainUid":"3a5c-78"},"3a5c-81":{"renderedLength":135,"gzipLength":129,"brotliLength":0,"mainUid":"3a5c-80"},"3a5c-83":{"renderedLength":182,"gzipLength":154,"brotliLength":0,"mainUid":"3a5c-82"},"3a5c-85":{"renderedLength":12084,"gzipLength":2697,"brotliLength":0,"mainUid":"3a5c-84"},"3a5c-87":{"renderedLength":178,"gzipLength":128,"brotliLength":0,"mainUid":"3a5c-86"},"3a5c-89":{"renderedLength":1543,"gzipLength":559,"brotliLength":0,"mainUid":"3a5c-88"},"3a5c-91":{"renderedLength":267,"gzipLength":184,"brotliLength":0,"mainUid":"3a5c-90"},"3a5c-93":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"3a5c-92"}},"nodeMetas":{"3a5c-50":{"id":"/src/constants/index.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-51"},"imported":[],"importedBy":[{"uid":"3a5c-88"},{"uid":"3a5c-84"},{"uid":"3a5c-70"},{"uid":"3a5c-60"}]},"3a5c-52":{"id":"/src/context/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-53"},"imported":[{"uid":"3a5c-95"}],"importedBy":[{"uid":"3a5c-84"},{"uid":"3a5c-62"}]},"3a5c-54":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-55"},"imported":[{"uid":"3a5c-95"}],"importedBy":[{"uid":"3a5c-98"}]},"3a5c-56":{"id":"/src/hooks/useRef.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-57"},"imported":[{"uid":"3a5c-95"}],"importedBy":[{"uid":"3a5c-98"}]},"3a5c-58":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-59"},"imported":[{"uid":"3a5c-95"},{"uid":"3a5c-94"}],"importedBy":[{"uid":"3a5c-92"},{"uid":"3a5c-60"}]},"3a5c-60":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-61"},"imported":[{"uid":"3a5c-95"},{"uid":"3a5c-58"},{"uid":"3a5c-50"}],"importedBy":[{"uid":"3a5c-98"}]},"3a5c-62":{"id":"/src/context/createLocalProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-63"},"imported":[{"uid":"3a5c-95"},{"uid":"3a5c-98"},{"uid":"3a5c-52"}],"importedBy":[{"uid":"3a5c-84"}]},"3a5c-64":{"id":"/src/cache/LocalThemeManager.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-65"},"imported":[],"importedBy":[{"uid":"3a5c-97"}]},"3a5c-66":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-67"},"imported":[{"uid":"3a5c-94"}],"importedBy":[{"uid":"3a5c-84"},{"uid":"3a5c-68"}]},"3a5c-68":{"id":"/src/hoc/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-69"},"imported":[{"uid":"3a5c-95"},{"uid":"3a5c-94"},{"uid":"3a5c-66"},{"uid":"3a5c-98"}],"importedBy":[{"uid":"3a5c-99"}]},"3a5c-70":{"id":"/src/utils/statics.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-71"},"imported":[{"uid":"3a5c-94"},{"uid":"3a5c-50"}],"importedBy":[{"uid":"3a5c-84"}]},"3a5c-72":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-73"},"imported":[],"importedBy":[{"uid":"3a5c-76"}]},"3a5c-74":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-75"},"imported":[{"uid":"3a5c-94"}],"importedBy":[{"uid":"3a5c-88"},{"uid":"3a5c-84"},{"uid":"3a5c-76"}]},"3a5c-76":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-77"},"imported":[{"uid":"3a5c-94"},{"uid":"3a5c-72"},{"uid":"3a5c-74"}],"importedBy":[{"uid":"3a5c-84"}]},"3a5c-78":{"id":"/src/utils/chaining.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-79"},"imported":[],"importedBy":[{"uid":"3a5c-84"}]},"3a5c-80":{"id":"/src/utils/compose.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-81"},"imported":[],"importedBy":[{"uid":"3a5c-84"}]},"3a5c-82":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-83"},"imported":[{"uid":"3a5c-94"}],"importedBy":[{"uid":"3a5c-84"}]},"3a5c-84":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-85"},"imported":[{"uid":"3a5c-95"},{"uid":"3a5c-96"},{"uid":"3a5c-94"},{"uid":"3a5c-50"},{"uid":"3a5c-52"},{"uid":"3a5c-62"},{"uid":"3a5c-97"},{"uid":"3a5c-98"},{"uid":"3a5c-99"},{"uid":"3a5c-70"},{"uid":"3a5c-76"},{"uid":"3a5c-78"},{"uid":"3a5c-80"},{"uid":"3a5c-82"},{"uid":"3a5c-74"},{"uid":"3a5c-66"}],"importedBy":[{"uid":"3a5c-88"}]},"3a5c-86":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-87"},"imported":[],"importedBy":[{"uid":"3a5c-88"}]},"3a5c-88":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-89"},"imported":[{"uid":"3a5c-94"},{"uid":"3a5c-84"},{"uid":"3a5c-74"},{"uid":"3a5c-50"},{"uid":"3a5c-86"}],"importedBy":[{"uid":"3a5c-92"}]},"3a5c-90":{"id":"/src/isRocketComponent.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-91"},"imported":[],"importedBy":[{"uid":"3a5c-92"}]},"3a5c-92":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"3a5c-93"},"imported":[{"uid":"3a5c-88"},{"uid":"3a5c-58"},{"uid":"3a5c-90"}],"importedBy":[],"isEntry":true},"3a5c-94":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a5c-88"},{"uid":"3a5c-58"},{"uid":"3a5c-84"},{"uid":"3a5c-74"},{"uid":"3a5c-70"},{"uid":"3a5c-76"},{"uid":"3a5c-82"},{"uid":"3a5c-66"},{"uid":"3a5c-68"}],"isExternal":true},"3a5c-95":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a5c-58"},{"uid":"3a5c-84"},{"uid":"3a5c-52"},{"uid":"3a5c-62"},{"uid":"3a5c-54"},{"uid":"3a5c-56"},{"uid":"3a5c-60"},{"uid":"3a5c-68"}],"isExternal":true},"3a5c-96":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a5c-84"}],"isExternal":true},"3a5c-97":{"id":"/src/cache/index.ts","moduleParts":{},"imported":[{"uid":"3a5c-64"}],"importedBy":[{"uid":"3a5c-84"}]},"3a5c-98":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"3a5c-54"},{"uid":"3a5c-56"},{"uid":"3a5c-60"}],"importedBy":[{"uid":"3a5c-84"},{"uid":"3a5c-62"},{"uid":"3a5c-68"}]},"3a5c-99":{"id":"/src/hoc/index.ts","moduleParts":{},"imported":[{"uid":"3a5c-68"}],"importedBy":[{"uid":"3a5c-84"}]}},"env":{"rollup":"2.72.0"},"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
|
@@ -50,19 +50,20 @@ declare const THEME_MODES: {
|
|
|
50
50
|
|
|
51
51
|
interface StylesDefault {
|
|
52
52
|
}
|
|
53
|
-
declare type Styles<S> = S extends unknown ? StylesDefault : StylesDefault
|
|
53
|
+
declare type Styles<S> = S extends unknown ? StylesDefault : MergeTypes<[StylesDefault, S]>;
|
|
54
54
|
declare type Css = typeof config.css;
|
|
55
55
|
declare type StylesCb = (css: Css) => ReturnType<Css>;
|
|
56
56
|
declare type StylesCbArray = Array<StylesCb>;
|
|
57
57
|
|
|
58
58
|
interface ThemeDefault {
|
|
59
59
|
}
|
|
60
|
-
declare type Theme$1<T> = T extends unknown ? ThemeDefault : ThemeDefault
|
|
60
|
+
declare type Theme$1<T> = T extends unknown ? ThemeDefault : MergeTypes<[ThemeDefault, T]>;
|
|
61
61
|
declare type ThemeModeKeys = keyof typeof THEME_MODES;
|
|
62
62
|
interface ThemeModeCallback {
|
|
63
63
|
<A = any, B = any>(light: A, dark: B): (mode: 'light' | 'dark') => A | B;
|
|
64
64
|
isMode: true;
|
|
65
65
|
}
|
|
66
|
+
declare type ThemeMode = <A = any, B = any>(light: A, dark: B) => A | B;
|
|
66
67
|
declare type ThemeCb<CSS, T> = (theme: T, mode: ThemeModeCallback, css: Css) => Partial<CSS>;
|
|
67
68
|
|
|
68
69
|
declare type ExtractNullableDimensionKeys<T> = {
|
|
@@ -526,4 +527,4 @@ declare const Provider: FC<TProvider>;
|
|
|
526
527
|
declare type IsRocketComponent = <T>(component: T) => boolean;
|
|
527
528
|
declare const isRocketComponent: IsRocketComponent;
|
|
528
529
|
|
|
529
|
-
export { AttrsCb, ComposeParam, ConfigAttrs, ConsumerCb, ConsumerCtxCBValue, ConsumerCtxCb, DefaultProps, DimensionCallbackParam, DimensionProps, DimensionValue, Dimensions, ElementType, ExtractDimensionProps, ExtractDimensions, ExtractProps, GenericHoc, IRocketStyleComponent, IsRocketComponent, MergeTypes, Provider, RocketComponentType, RocketProviderState, RocketStyleComponent, Rocketstyle, StylesCb, StylesDefault, TDKP, TObj, TProvider, ThemeCb, ThemeDefault, ThemeModeKeys, rocketstyle as default, isRocketComponent };
|
|
530
|
+
export { AttrsCb, ComposeParam, ConfigAttrs, ConsumerCb, ConsumerCtxCBValue, ConsumerCtxCb, DefaultProps, DimensionCallbackParam, DimensionProps, DimensionValue, Dimensions, ElementType, ExtractDimensionProps, ExtractDimensions, ExtractProps, GenericHoc, IRocketStyleComponent, IsRocketComponent, MergeTypes, Provider, RocketComponentType, RocketProviderState, RocketStyleComponent, Rocketstyle, StylesCb, StylesDefault, TDKP, TObj, TProvider, ThemeCb, ThemeDefault, ThemeMode, ThemeModeKeys, rocketstyle as default, isRocketComponent };
|
package/lib/types/index.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ import type { TObj, ElementType, MergeTypes, ExtractProps } from "./types/utils"
|
|
|
6
6
|
import type { Dimensions, DimensionValue, DimensionCallbackParam, ExtractDimensionProps, TDKP, DimensionProps, ExtractDimensions } from "./types/dimensions";
|
|
7
7
|
import type { StylesCb, StylesDefault } from "./types/styles";
|
|
8
8
|
import type { AttrsCb } from "./types/attrs";
|
|
9
|
-
import type { ThemeCb, ThemeModeKeys, ThemeDefault } from "./types/theme";
|
|
9
|
+
import type { ThemeCb, ThemeModeKeys, ThemeDefault, ThemeMode } from "./types/theme";
|
|
10
10
|
import type { GenericHoc, ComposeParam } from "./types/hoc";
|
|
11
11
|
import type { DefaultProps } from "./types/configuration";
|
|
12
12
|
import type { RocketStyleComponent, IRocketStyleComponent } from "./types/rocketstyle";
|
|
13
|
-
export type { StylesDefault, ThemeDefault, RocketStyleComponent, IRocketStyleComponent, Rocketstyle, TProvider, RocketComponentType, RocketProviderState, ConsumerCtxCBValue, ConsumerCtxCb, ConsumerCb, TObj, ElementType, MergeTypes, ExtractProps, Dimensions, DimensionValue, DimensionCallbackParam, ExtractDimensionProps, TDKP, DimensionProps, ExtractDimensions, StylesCb, ConfigAttrs, AttrsCb, ThemeCb, ThemeModeKeys, GenericHoc, ComposeParam, DefaultProps, IsRocketComponent, };
|
|
13
|
+
export type { StylesDefault, ThemeDefault, RocketStyleComponent, IRocketStyleComponent, Rocketstyle, TProvider, RocketComponentType, RocketProviderState, ConsumerCtxCBValue, ConsumerCtxCb, ConsumerCb, TObj, ElementType, MergeTypes, ExtractProps, Dimensions, DimensionValue, DimensionCallbackParam, ExtractDimensionProps, TDKP, DimensionProps, ExtractDimensions, StylesCb, ConfigAttrs, AttrsCb, ThemeCb, ThemeModeKeys, GenericHoc, ComposeParam, DefaultProps, IsRocketComponent, ThemeMode, };
|
|
14
14
|
export { context, Provider, isRocketComponent };
|
|
15
15
|
export default rocketstyle;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { config } from '@vitus-labs/core';
|
|
2
|
+
import type { MergeTypes } from './utils';
|
|
2
3
|
export interface StylesDefault {
|
|
3
4
|
}
|
|
4
|
-
export declare type Styles<S> = S extends unknown ? StylesDefault : StylesDefault
|
|
5
|
+
export declare type Styles<S> = S extends unknown ? StylesDefault : MergeTypes<[StylesDefault, S]>;
|
|
5
6
|
export declare type Css = typeof config.css;
|
|
6
7
|
export declare type Style = ReturnType<Css>;
|
|
7
8
|
export declare type OptionStyles = Array<(css: Css) => ReturnType<Css>>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { THEME_MODES } from "../constants";
|
|
2
2
|
import type { Css } from './styles';
|
|
3
|
+
import type { MergeTypes } from './utils';
|
|
3
4
|
export interface ThemeDefault {
|
|
4
5
|
}
|
|
5
|
-
export declare type Theme<T> = T extends unknown ? ThemeDefault : ThemeDefault
|
|
6
|
+
export declare type Theme<T> = T extends unknown ? ThemeDefault : MergeTypes<[ThemeDefault, T]>;
|
|
6
7
|
export declare type ThemeModeKeys = keyof typeof THEME_MODES;
|
|
7
8
|
export interface ThemeModeCallback {
|
|
8
9
|
<A = any, B = any>(light: A, dark: B): (mode: 'light' | 'dark') => A | B;
|
|
9
10
|
isMode: true;
|
|
10
11
|
}
|
|
12
|
+
export declare type ThemeMode = <A = any, B = any>(light: A, dark: B) => A | B;
|
|
11
13
|
export declare type ThemeCb<CSS, T> = (theme: T, mode: ThemeModeCallback, css: Css) => Partial<CSS>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitus-labs/rocketstyle",
|
|
3
|
-
"version": "0.57.0-alpha.
|
|
3
|
+
"version": "0.57.0-alpha.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Vit Bokisch <vit@bokisch.cz>",
|
|
6
6
|
"maintainers": [
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@emotion/css": "^11.9.0",
|
|
65
65
|
"@emotion/styled": "^11.8.1",
|
|
66
|
-
"@vitus-labs/core": "^0.57.0-alpha.
|
|
67
|
-
"@vitus-labs/elements": "^0.57.0-alpha.
|
|
66
|
+
"@vitus-labs/core": "^0.57.0-alpha.4",
|
|
67
|
+
"@vitus-labs/elements": "^0.57.0-alpha.4",
|
|
68
68
|
"@vitus-labs/tools-babel": "^0.33.0",
|
|
69
69
|
"@vitus-labs/tools-rollup": "^0.33.0",
|
|
70
70
|
"@vitus-labs/tools-storybook": "^0.33.0",
|
|
71
71
|
"@vitus-labs/tools-typescript": "^0.33.0",
|
|
72
|
-
"@vitus-labs/unistyle": "^0.57.0-alpha.
|
|
72
|
+
"@vitus-labs/unistyle": "^0.57.0-alpha.4"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "58e9bb76fd291cf07540b6159fbf6427709a7bfd"
|
|
75
75
|
}
|