@vitus-labs/rocketstyle 0.42.0 → 0.45.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-rocketstyle.js.html +1 -1
- package/lib/analysis/vitus-labs-rocketstyle.module.js.html +1 -1
- package/lib/analysis/vitus-labs-rocketstyle.umd.js.html +1 -1
- package/lib/analysis/vitus-labs-rocketstyle.umd.min.js.html +1 -1
- package/lib/index.d.ts +8 -8
- package/lib/types/types/config.d.ts +6 -6
- package/lib/types/types/rocketstyle.d.ts +4 -4
- package/lib/vitus-labs-rocketstyle.js.map +1 -1
- package/lib/vitus-labs-rocketstyle.module.js.map +1 -1
- package/lib/vitus-labs-rocketstyle.umd.js.map +1 -1
- package/lib/vitus-labs-rocketstyle.umd.min.js.map +1 -1
- package/package.json +9 -9
|
@@ -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":"hooks","children":[{"uid":"
|
|
6427
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.js","children":[{"name":"src","children":[{"name":"hooks","children":[{"uid":"68e8-1","name":"usePseudoState.tsx"},{"uid":"68e8-9","name":"useTheme.tsx"},{"uid":"68e8-15","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"68e8-3","name":"collection.ts"},{"uid":"68e8-5","name":"dimensions.ts"},{"uid":"68e8-7","name":"theme.ts"},{"uid":"68e8-17","name":"attrs.ts"},{"uid":"68e8-25","name":"styles.ts"}]},{"uid":"68e8-11","name":"context.tsx"},{"name":"constants","children":[{"uid":"68e8-13","name":"reservedKeys.ts"},{"uid":"68e8-29","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"68e8-19","name":"rocketstyleAttrsHoc.tsx"},{"uid":"68e8-21","name":"localContext.tsx"},{"uid":"68e8-23","name":"createProvider.tsx"}]},{"uid":"68e8-27","name":"rocketstyle.tsx"},{"uid":"68e8-31","name":"init.ts"},{"uid":"68e8-33","name":"isRocketComponent.ts"},{"uid":"68e8-35","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"68e8-1":{"renderedLength":1775,"gzipLength":407,"brotliLength":0,"mainUid":"68e8-0"},"68e8-3":{"renderedLength":468,"gzipLength":280,"brotliLength":0,"mainUid":"68e8-2"},"68e8-5":{"renderedLength":1474,"gzipLength":545,"brotliLength":0,"mainUid":"68e8-4"},"68e8-7":{"renderedLength":2625,"gzipLength":845,"brotliLength":0,"mainUid":"68e8-6"},"68e8-9":{"renderedLength":542,"gzipLength":295,"brotliLength":0,"mainUid":"68e8-8"},"68e8-11":{"renderedLength":464,"gzipLength":261,"brotliLength":0,"mainUid":"68e8-10"},"68e8-13":{"renderedLength":566,"gzipLength":296,"brotliLength":0,"mainUid":"68e8-12"},"68e8-15":{"renderedLength":331,"gzipLength":206,"brotliLength":0,"mainUid":"68e8-14"},"68e8-17":{"renderedLength":2568,"gzipLength":873,"brotliLength":0,"mainUid":"68e8-16"},"68e8-19":{"renderedLength":1029,"gzipLength":445,"brotliLength":0,"mainUid":"68e8-18"},"68e8-21":{"renderedLength":43,"gzipLength":58,"brotliLength":0,"mainUid":"68e8-20"},"68e8-23":{"renderedLength":832,"gzipLength":384,"brotliLength":0,"mainUid":"68e8-22"},"68e8-25":{"renderedLength":129,"gzipLength":112,"brotliLength":0,"mainUid":"68e8-24"},"68e8-27":{"renderedLength":11491,"gzipLength":2801,"brotliLength":0,"mainUid":"68e8-26"},"68e8-29":{"renderedLength":178,"gzipLength":128,"brotliLength":0,"mainUid":"68e8-28"},"68e8-31":{"renderedLength":1570,"gzipLength":577,"brotliLength":0,"mainUid":"68e8-30"},"68e8-33":{"renderedLength":204,"gzipLength":148,"brotliLength":0,"mainUid":"68e8-32"},"68e8-35":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"68e8-34"}},"nodeMetas":{"68e8-0":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-1"},"imported":[{"uid":"68e8-37"}],"importedBy":[{"uid":"68e8-39"}]},"68e8-2":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-3"},"imported":[],"importedBy":[{"uid":"68e8-26"},{"uid":"68e8-6"}]},"68e8-4":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-5"},"imported":[{"uid":"68e8-36"}],"importedBy":[{"uid":"68e8-30"},{"uid":"68e8-6"},{"uid":"68e8-8"}]},"68e8-6":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-7"},"imported":[{"uid":"68e8-36"},{"uid":"68e8-2"},{"uid":"68e8-4"}],"importedBy":[{"uid":"68e8-26"},{"uid":"68e8-8"}]},"68e8-8":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-9"},"imported":[{"uid":"68e8-36"},{"uid":"68e8-6"},{"uid":"68e8-4"}],"importedBy":[{"uid":"68e8-39"}]},"68e8-10":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-11"},"imported":[{"uid":"68e8-37"},{"uid":"68e8-36"}],"importedBy":[{"uid":"68e8-34"},{"uid":"68e8-14"}]},"68e8-12":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-13"},"imported":[],"importedBy":[{"uid":"68e8-30"},{"uid":"68e8-26"},{"uid":"68e8-14"}]},"68e8-14":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-15"},"imported":[{"uid":"68e8-37"},{"uid":"68e8-10"},{"uid":"68e8-12"}],"importedBy":[{"uid":"68e8-39"}]},"68e8-16":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-17"},"imported":[{"uid":"68e8-36"}],"importedBy":[{"uid":"68e8-26"},{"uid":"68e8-18"}]},"68e8-18":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-19"},"imported":[{"uid":"68e8-37"},{"uid":"68e8-36"},{"uid":"68e8-16"},{"uid":"68e8-39"}],"importedBy":[{"uid":"68e8-40"}]},"68e8-20":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-21"},"imported":[{"uid":"68e8-37"}],"importedBy":[{"uid":"68e8-40"},{"uid":"68e8-22"}]},"68e8-22":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-23"},"imported":[{"uid":"68e8-37"},{"uid":"68e8-39"},{"uid":"68e8-20"}],"importedBy":[{"uid":"68e8-40"}]},"68e8-24":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-25"},"imported":[],"importedBy":[{"uid":"68e8-26"}]},"68e8-26":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-27"},"imported":[{"uid":"68e8-37"},{"uid":"68e8-38"},{"uid":"68e8-36"},{"uid":"68e8-39"},{"uid":"68e8-40"},{"uid":"68e8-6"},{"uid":"68e8-24"},{"uid":"68e8-2"},{"uid":"68e8-16"},{"uid":"68e8-12"}],"importedBy":[{"uid":"68e8-30"}]},"68e8-28":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-29"},"imported":[],"importedBy":[{"uid":"68e8-30"}]},"68e8-30":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-31"},"imported":[{"uid":"68e8-36"},{"uid":"68e8-26"},{"uid":"68e8-4"},{"uid":"68e8-12"},{"uid":"68e8-28"}],"importedBy":[{"uid":"68e8-34"}]},"68e8-32":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-33"},"imported":[],"importedBy":[{"uid":"68e8-34"}]},"68e8-34":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.js":"68e8-35"},"imported":[{"uid":"68e8-30"},{"uid":"68e8-10"},{"uid":"68e8-32"}],"importedBy":[],"isEntry":true},"68e8-36":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"68e8-30"},{"uid":"68e8-10"},{"uid":"68e8-26"},{"uid":"68e8-4"},{"uid":"68e8-6"},{"uid":"68e8-16"},{"uid":"68e8-8"},{"uid":"68e8-18"}],"isExternal":true},"68e8-37":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"68e8-10"},{"uid":"68e8-26"},{"uid":"68e8-0"},{"uid":"68e8-14"},{"uid":"68e8-18"},{"uid":"68e8-22"},{"uid":"68e8-20"}],"isExternal":true},"68e8-38":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"68e8-26"}],"isExternal":true},"68e8-39":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"68e8-0"},{"uid":"68e8-8"},{"uid":"68e8-14"}],"importedBy":[{"uid":"68e8-26"},{"uid":"68e8-18"},{"uid":"68e8-22"}]},"68e8-40":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"68e8-18"},{"uid":"68e8-22"},{"uid":"68e8-20"}],"importedBy":[{"uid":"68e8-26"}]}},"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-rocketstyle.module.js","children":[{"name":"src","children":[{"name":"hooks","children":[{"uid":"
|
|
6427
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.module.js","children":[{"name":"src","children":[{"name":"hooks","children":[{"uid":"68e8-42","name":"usePseudoState.tsx"},{"uid":"68e8-50","name":"useTheme.tsx"},{"uid":"68e8-56","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"68e8-44","name":"collection.ts"},{"uid":"68e8-46","name":"dimensions.ts"},{"uid":"68e8-48","name":"theme.ts"},{"uid":"68e8-58","name":"attrs.ts"},{"uid":"68e8-66","name":"styles.ts"}]},{"uid":"68e8-52","name":"context.tsx"},{"name":"constants","children":[{"uid":"68e8-54","name":"reservedKeys.ts"},{"uid":"68e8-70","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"68e8-60","name":"rocketstyleAttrsHoc.tsx"},{"uid":"68e8-62","name":"localContext.tsx"},{"uid":"68e8-64","name":"createProvider.tsx"}]},{"uid":"68e8-68","name":"rocketstyle.tsx"},{"uid":"68e8-72","name":"init.ts"},{"uid":"68e8-74","name":"isRocketComponent.ts"},{"uid":"68e8-76","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"68e8-42":{"renderedLength":1721,"gzipLength":401,"brotliLength":0,"mainUid":"68e8-41"},"68e8-44":{"renderedLength":468,"gzipLength":280,"brotliLength":0,"mainUid":"68e8-43"},"68e8-46":{"renderedLength":1459,"gzipLength":537,"brotliLength":0,"mainUid":"68e8-45"},"68e8-48":{"renderedLength":2595,"gzipLength":838,"brotliLength":0,"mainUid":"68e8-47"},"68e8-50":{"renderedLength":537,"gzipLength":292,"brotliLength":0,"mainUid":"68e8-49"},"68e8-52":{"renderedLength":430,"gzipLength":245,"brotliLength":0,"mainUid":"68e8-51"},"68e8-54":{"renderedLength":566,"gzipLength":296,"brotliLength":0,"mainUid":"68e8-53"},"68e8-56":{"renderedLength":320,"gzipLength":199,"brotliLength":0,"mainUid":"68e8-55"},"68e8-58":{"renderedLength":2563,"gzipLength":870,"brotliLength":0,"mainUid":"68e8-57"},"68e8-60":{"renderedLength":983,"gzipLength":424,"brotliLength":0,"mainUid":"68e8-59"},"68e8-62":{"renderedLength":37,"gzipLength":51,"brotliLength":0,"mainUid":"68e8-61"},"68e8-64":{"renderedLength":780,"gzipLength":365,"brotliLength":0,"mainUid":"68e8-63"},"68e8-66":{"renderedLength":129,"gzipLength":112,"brotliLength":0,"mainUid":"68e8-65"},"68e8-68":{"renderedLength":11343,"gzipLength":2762,"brotliLength":0,"mainUid":"68e8-67"},"68e8-70":{"renderedLength":178,"gzipLength":128,"brotliLength":0,"mainUid":"68e8-69"},"68e8-72":{"renderedLength":1560,"gzipLength":573,"brotliLength":0,"mainUid":"68e8-71"},"68e8-74":{"renderedLength":204,"gzipLength":148,"brotliLength":0,"mainUid":"68e8-73"},"68e8-76":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"68e8-75"}},"nodeMetas":{"68e8-41":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-42"},"imported":[{"uid":"68e8-78"}],"importedBy":[{"uid":"68e8-80"}]},"68e8-43":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-44"},"imported":[],"importedBy":[{"uid":"68e8-67"},{"uid":"68e8-47"}]},"68e8-45":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-46"},"imported":[{"uid":"68e8-77"}],"importedBy":[{"uid":"68e8-71"},{"uid":"68e8-47"},{"uid":"68e8-49"}]},"68e8-47":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-48"},"imported":[{"uid":"68e8-77"},{"uid":"68e8-43"},{"uid":"68e8-45"}],"importedBy":[{"uid":"68e8-67"},{"uid":"68e8-49"}]},"68e8-49":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-50"},"imported":[{"uid":"68e8-77"},{"uid":"68e8-47"},{"uid":"68e8-45"}],"importedBy":[{"uid":"68e8-80"}]},"68e8-51":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-52"},"imported":[{"uid":"68e8-78"},{"uid":"68e8-77"}],"importedBy":[{"uid":"68e8-75"},{"uid":"68e8-55"}]},"68e8-53":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-54"},"imported":[],"importedBy":[{"uid":"68e8-71"},{"uid":"68e8-67"},{"uid":"68e8-55"}]},"68e8-55":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-56"},"imported":[{"uid":"68e8-78"},{"uid":"68e8-51"},{"uid":"68e8-53"}],"importedBy":[{"uid":"68e8-80"}]},"68e8-57":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-58"},"imported":[{"uid":"68e8-77"}],"importedBy":[{"uid":"68e8-67"},{"uid":"68e8-59"}]},"68e8-59":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-60"},"imported":[{"uid":"68e8-78"},{"uid":"68e8-77"},{"uid":"68e8-57"},{"uid":"68e8-80"}],"importedBy":[{"uid":"68e8-81"}]},"68e8-61":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-62"},"imported":[{"uid":"68e8-78"}],"importedBy":[{"uid":"68e8-81"},{"uid":"68e8-63"}]},"68e8-63":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-64"},"imported":[{"uid":"68e8-78"},{"uid":"68e8-80"},{"uid":"68e8-61"}],"importedBy":[{"uid":"68e8-81"}]},"68e8-65":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-66"},"imported":[],"importedBy":[{"uid":"68e8-67"}]},"68e8-67":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-68"},"imported":[{"uid":"68e8-78"},{"uid":"68e8-79"},{"uid":"68e8-77"},{"uid":"68e8-80"},{"uid":"68e8-81"},{"uid":"68e8-47"},{"uid":"68e8-65"},{"uid":"68e8-43"},{"uid":"68e8-57"},{"uid":"68e8-53"}],"importedBy":[{"uid":"68e8-71"}]},"68e8-69":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-70"},"imported":[],"importedBy":[{"uid":"68e8-71"}]},"68e8-71":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-72"},"imported":[{"uid":"68e8-77"},{"uid":"68e8-67"},{"uid":"68e8-45"},{"uid":"68e8-53"},{"uid":"68e8-69"}],"importedBy":[{"uid":"68e8-75"}]},"68e8-73":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-74"},"imported":[],"importedBy":[{"uid":"68e8-75"}]},"68e8-75":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"68e8-76"},"imported":[{"uid":"68e8-71"},{"uid":"68e8-51"},{"uid":"68e8-73"}],"importedBy":[],"isEntry":true},"68e8-77":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"68e8-71"},{"uid":"68e8-51"},{"uid":"68e8-67"},{"uid":"68e8-45"},{"uid":"68e8-47"},{"uid":"68e8-57"},{"uid":"68e8-49"},{"uid":"68e8-59"}],"isExternal":true},"68e8-78":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"68e8-51"},{"uid":"68e8-67"},{"uid":"68e8-41"},{"uid":"68e8-55"},{"uid":"68e8-59"},{"uid":"68e8-63"},{"uid":"68e8-61"}],"isExternal":true},"68e8-79":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"68e8-67"}],"isExternal":true},"68e8-80":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"68e8-41"},{"uid":"68e8-49"},{"uid":"68e8-55"}],"importedBy":[{"uid":"68e8-67"},{"uid":"68e8-59"},{"uid":"68e8-63"}]},"68e8-81":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"68e8-59"},{"uid":"68e8-63"},{"uid":"68e8-61"}],"importedBy":[{"uid":"68e8-67"}]}},"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-rocketstyle.umd.js","children":[{"name":"src","children":[{"name":"hooks","children":[{"uid":"
|
|
6427
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.umd.js","children":[{"name":"src","children":[{"name":"hooks","children":[{"uid":"68e8-83","name":"usePseudoState.tsx"},{"uid":"68e8-91","name":"useTheme.tsx"},{"uid":"68e8-97","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"68e8-85","name":"collection.ts"},{"uid":"68e8-87","name":"dimensions.ts"},{"uid":"68e8-89","name":"theme.ts"},{"uid":"68e8-99","name":"attrs.ts"},{"uid":"68e8-107","name":"styles.ts"}]},{"uid":"68e8-93","name":"context.tsx"},{"name":"constants","children":[{"uid":"68e8-95","name":"reservedKeys.ts"},{"uid":"68e8-111","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"68e8-101","name":"rocketstyleAttrsHoc.tsx"},{"uid":"68e8-103","name":"localContext.tsx"},{"uid":"68e8-105","name":"createProvider.tsx"}]},{"uid":"68e8-109","name":"rocketstyle.tsx"},{"uid":"68e8-113","name":"init.ts"},{"uid":"68e8-115","name":"isRocketComponent.ts"},{"uid":"68e8-117","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"68e8-83":{"renderedLength":1897,"gzipLength":408,"brotliLength":0,"mainUid":"68e8-82"},"68e8-85":{"renderedLength":492,"gzipLength":283,"brotliLength":0,"mainUid":"68e8-84"},"68e8-87":{"renderedLength":1554,"gzipLength":546,"brotliLength":0,"mainUid":"68e8-86"},"68e8-89":{"renderedLength":2763,"gzipLength":850,"brotliLength":0,"mainUid":"68e8-88"},"68e8-91":{"renderedLength":572,"gzipLength":298,"brotliLength":0,"mainUid":"68e8-90"},"68e8-93":{"renderedLength":476,"gzipLength":262,"brotliLength":0,"mainUid":"68e8-92"},"68e8-95":{"renderedLength":618,"gzipLength":299,"brotliLength":0,"mainUid":"68e8-94"},"68e8-97":{"renderedLength":345,"gzipLength":206,"brotliLength":0,"mainUid":"68e8-96"},"68e8-99":{"renderedLength":2698,"gzipLength":876,"brotliLength":0,"mainUid":"68e8-98"},"68e8-101":{"renderedLength":1081,"gzipLength":448,"brotliLength":0,"mainUid":"68e8-100"},"68e8-103":{"renderedLength":45,"gzipLength":60,"brotliLength":0,"mainUid":"68e8-102"},"68e8-105":{"renderedLength":866,"gzipLength":387,"brotliLength":0,"mainUid":"68e8-104"},"68e8-107":{"renderedLength":139,"gzipLength":114,"brotliLength":0,"mainUid":"68e8-106"},"68e8-109":{"renderedLength":11955,"gzipLength":2812,"brotliLength":0,"mainUid":"68e8-108"},"68e8-111":{"renderedLength":196,"gzipLength":130,"brotliLength":0,"mainUid":"68e8-110"},"68e8-113":{"renderedLength":1644,"gzipLength":579,"brotliLength":0,"mainUid":"68e8-112"},"68e8-115":{"renderedLength":220,"gzipLength":151,"brotliLength":0,"mainUid":"68e8-114"},"68e8-117":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"68e8-116"}},"nodeMetas":{"68e8-82":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-83"},"imported":[{"uid":"68e8-119"}],"importedBy":[{"uid":"68e8-121"}]},"68e8-84":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-85"},"imported":[],"importedBy":[{"uid":"68e8-108"},{"uid":"68e8-88"}]},"68e8-86":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-87"},"imported":[{"uid":"68e8-118"}],"importedBy":[{"uid":"68e8-112"},{"uid":"68e8-88"},{"uid":"68e8-90"}]},"68e8-88":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-89"},"imported":[{"uid":"68e8-118"},{"uid":"68e8-84"},{"uid":"68e8-86"}],"importedBy":[{"uid":"68e8-108"},{"uid":"68e8-90"}]},"68e8-90":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-91"},"imported":[{"uid":"68e8-118"},{"uid":"68e8-88"},{"uid":"68e8-86"}],"importedBy":[{"uid":"68e8-121"}]},"68e8-92":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-93"},"imported":[{"uid":"68e8-119"},{"uid":"68e8-118"}],"importedBy":[{"uid":"68e8-116"},{"uid":"68e8-96"}]},"68e8-94":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-95"},"imported":[],"importedBy":[{"uid":"68e8-112"},{"uid":"68e8-108"},{"uid":"68e8-96"}]},"68e8-96":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-97"},"imported":[{"uid":"68e8-119"},{"uid":"68e8-92"},{"uid":"68e8-94"}],"importedBy":[{"uid":"68e8-121"}]},"68e8-98":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-99"},"imported":[{"uid":"68e8-118"}],"importedBy":[{"uid":"68e8-108"},{"uid":"68e8-100"}]},"68e8-100":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-101"},"imported":[{"uid":"68e8-119"},{"uid":"68e8-118"},{"uid":"68e8-98"},{"uid":"68e8-121"}],"importedBy":[{"uid":"68e8-122"}]},"68e8-102":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-103"},"imported":[{"uid":"68e8-119"}],"importedBy":[{"uid":"68e8-122"},{"uid":"68e8-104"}]},"68e8-104":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-105"},"imported":[{"uid":"68e8-119"},{"uid":"68e8-121"},{"uid":"68e8-102"}],"importedBy":[{"uid":"68e8-122"}]},"68e8-106":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-107"},"imported":[],"importedBy":[{"uid":"68e8-108"}]},"68e8-108":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-109"},"imported":[{"uid":"68e8-119"},{"uid":"68e8-120"},{"uid":"68e8-118"},{"uid":"68e8-121"},{"uid":"68e8-122"},{"uid":"68e8-88"},{"uid":"68e8-106"},{"uid":"68e8-84"},{"uid":"68e8-98"},{"uid":"68e8-94"}],"importedBy":[{"uid":"68e8-112"}]},"68e8-110":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-111"},"imported":[],"importedBy":[{"uid":"68e8-112"}]},"68e8-112":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-113"},"imported":[{"uid":"68e8-118"},{"uid":"68e8-108"},{"uid":"68e8-86"},{"uid":"68e8-94"},{"uid":"68e8-110"}],"importedBy":[{"uid":"68e8-116"}]},"68e8-114":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-115"},"imported":[],"importedBy":[{"uid":"68e8-116"}]},"68e8-116":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"68e8-117"},"imported":[{"uid":"68e8-112"},{"uid":"68e8-92"},{"uid":"68e8-114"}],"importedBy":[],"isEntry":true},"68e8-118":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"68e8-112"},{"uid":"68e8-92"},{"uid":"68e8-108"},{"uid":"68e8-86"},{"uid":"68e8-88"},{"uid":"68e8-98"},{"uid":"68e8-90"},{"uid":"68e8-100"}],"isExternal":true},"68e8-119":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"68e8-92"},{"uid":"68e8-108"},{"uid":"68e8-82"},{"uid":"68e8-96"},{"uid":"68e8-100"},{"uid":"68e8-104"},{"uid":"68e8-102"}],"isExternal":true},"68e8-120":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"68e8-108"}],"isExternal":true},"68e8-121":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"68e8-82"},{"uid":"68e8-90"},{"uid":"68e8-96"}],"importedBy":[{"uid":"68e8-108"},{"uid":"68e8-100"},{"uid":"68e8-104"}]},"68e8-122":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"68e8-100"},{"uid":"68e8-104"},{"uid":"68e8-102"}],"importedBy":[{"uid":"68e8-108"}]}},"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-rocketstyle.umd.min.js","children":[{"name":"src","children":[{"name":"hooks","children":[{"uid":"
|
|
6427
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.umd.min.js","children":[{"name":"src","children":[{"name":"hooks","children":[{"uid":"68e8-124","name":"usePseudoState.tsx"},{"uid":"68e8-132","name":"useTheme.tsx"},{"uid":"68e8-138","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"68e8-126","name":"collection.ts"},{"uid":"68e8-128","name":"dimensions.ts"},{"uid":"68e8-130","name":"theme.ts"},{"uid":"68e8-140","name":"attrs.ts"},{"uid":"68e8-148","name":"styles.ts"}]},{"uid":"68e8-134","name":"context.tsx"},{"name":"constants","children":[{"uid":"68e8-136","name":"reservedKeys.ts"},{"uid":"68e8-152","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"68e8-142","name":"rocketstyleAttrsHoc.tsx"},{"uid":"68e8-144","name":"localContext.tsx"},{"uid":"68e8-146","name":"createProvider.tsx"}]},{"uid":"68e8-150","name":"rocketstyle.tsx"},{"uid":"68e8-154","name":"init.ts"},{"uid":"68e8-156","name":"isRocketComponent.ts"},{"uid":"68e8-158","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"68e8-124":{"renderedLength":1897,"gzipLength":408,"brotliLength":0,"mainUid":"68e8-123"},"68e8-126":{"renderedLength":492,"gzipLength":283,"brotliLength":0,"mainUid":"68e8-125"},"68e8-128":{"renderedLength":1554,"gzipLength":546,"brotliLength":0,"mainUid":"68e8-127"},"68e8-130":{"renderedLength":2763,"gzipLength":850,"brotliLength":0,"mainUid":"68e8-129"},"68e8-132":{"renderedLength":572,"gzipLength":298,"brotliLength":0,"mainUid":"68e8-131"},"68e8-134":{"renderedLength":476,"gzipLength":262,"brotliLength":0,"mainUid":"68e8-133"},"68e8-136":{"renderedLength":592,"gzipLength":288,"brotliLength":0,"mainUid":"68e8-135"},"68e8-138":{"renderedLength":345,"gzipLength":206,"brotliLength":0,"mainUid":"68e8-137"},"68e8-140":{"renderedLength":2698,"gzipLength":876,"brotliLength":0,"mainUid":"68e8-139"},"68e8-142":{"renderedLength":1081,"gzipLength":448,"brotliLength":0,"mainUid":"68e8-141"},"68e8-144":{"renderedLength":45,"gzipLength":60,"brotliLength":0,"mainUid":"68e8-143"},"68e8-146":{"renderedLength":866,"gzipLength":387,"brotliLength":0,"mainUid":"68e8-145"},"68e8-148":{"renderedLength":139,"gzipLength":114,"brotliLength":0,"mainUid":"68e8-147"},"68e8-150":{"renderedLength":11774,"gzipLength":2737,"brotliLength":0,"mainUid":"68e8-149"},"68e8-152":{"renderedLength":196,"gzipLength":130,"brotliLength":0,"mainUid":"68e8-151"},"68e8-154":{"renderedLength":472,"gzipLength":244,"brotliLength":0,"mainUid":"68e8-153"},"68e8-156":{"renderedLength":220,"gzipLength":151,"brotliLength":0,"mainUid":"68e8-155"},"68e8-158":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"68e8-157"}},"nodeMetas":{"68e8-123":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-124"},"imported":[{"uid":"68e8-160"}],"importedBy":[{"uid":"68e8-162"}]},"68e8-125":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-126"},"imported":[],"importedBy":[{"uid":"68e8-149"},{"uid":"68e8-129"}]},"68e8-127":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-128"},"imported":[{"uid":"68e8-159"}],"importedBy":[{"uid":"68e8-153"},{"uid":"68e8-129"},{"uid":"68e8-131"}]},"68e8-129":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-130"},"imported":[{"uid":"68e8-159"},{"uid":"68e8-125"},{"uid":"68e8-127"}],"importedBy":[{"uid":"68e8-149"},{"uid":"68e8-131"}]},"68e8-131":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-132"},"imported":[{"uid":"68e8-159"},{"uid":"68e8-129"},{"uid":"68e8-127"}],"importedBy":[{"uid":"68e8-162"}]},"68e8-133":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-134"},"imported":[{"uid":"68e8-160"},{"uid":"68e8-159"}],"importedBy":[{"uid":"68e8-157"},{"uid":"68e8-137"}]},"68e8-135":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-136"},"imported":[],"importedBy":[{"uid":"68e8-153"},{"uid":"68e8-149"},{"uid":"68e8-137"}]},"68e8-137":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-138"},"imported":[{"uid":"68e8-160"},{"uid":"68e8-133"},{"uid":"68e8-135"}],"importedBy":[{"uid":"68e8-162"}]},"68e8-139":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-140"},"imported":[{"uid":"68e8-159"}],"importedBy":[{"uid":"68e8-149"},{"uid":"68e8-141"}]},"68e8-141":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-142"},"imported":[{"uid":"68e8-160"},{"uid":"68e8-159"},{"uid":"68e8-139"},{"uid":"68e8-162"}],"importedBy":[{"uid":"68e8-163"}]},"68e8-143":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-144"},"imported":[{"uid":"68e8-160"}],"importedBy":[{"uid":"68e8-163"},{"uid":"68e8-145"}]},"68e8-145":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-146"},"imported":[{"uid":"68e8-160"},{"uid":"68e8-162"},{"uid":"68e8-143"}],"importedBy":[{"uid":"68e8-163"}]},"68e8-147":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-148"},"imported":[],"importedBy":[{"uid":"68e8-149"}]},"68e8-149":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-150"},"imported":[{"uid":"68e8-160"},{"uid":"68e8-161"},{"uid":"68e8-159"},{"uid":"68e8-162"},{"uid":"68e8-163"},{"uid":"68e8-129"},{"uid":"68e8-147"},{"uid":"68e8-125"},{"uid":"68e8-139"},{"uid":"68e8-135"}],"importedBy":[{"uid":"68e8-153"}]},"68e8-151":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-152"},"imported":[],"importedBy":[{"uid":"68e8-153"}]},"68e8-153":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-154"},"imported":[{"uid":"68e8-159"},{"uid":"68e8-149"},{"uid":"68e8-127"},{"uid":"68e8-135"},{"uid":"68e8-151"}],"importedBy":[{"uid":"68e8-157"}]},"68e8-155":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-156"},"imported":[],"importedBy":[{"uid":"68e8-157"}]},"68e8-157":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"68e8-158"},"imported":[{"uid":"68e8-153"},{"uid":"68e8-133"},{"uid":"68e8-155"}],"importedBy":[],"isEntry":true},"68e8-159":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"68e8-153"},{"uid":"68e8-133"},{"uid":"68e8-149"},{"uid":"68e8-127"},{"uid":"68e8-129"},{"uid":"68e8-139"},{"uid":"68e8-131"},{"uid":"68e8-141"}],"isExternal":true},"68e8-160":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"68e8-133"},{"uid":"68e8-149"},{"uid":"68e8-123"},{"uid":"68e8-137"},{"uid":"68e8-141"},{"uid":"68e8-145"},{"uid":"68e8-143"}],"isExternal":true},"68e8-161":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"68e8-149"}],"isExternal":true},"68e8-162":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"68e8-123"},{"uid":"68e8-131"},{"uid":"68e8-137"}],"importedBy":[{"uid":"68e8-149"},{"uid":"68e8-141"},{"uid":"68e8-145"}]},"68e8-163":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"68e8-141"},{"uid":"68e8-145"},{"uid":"68e8-143"}],"importedBy":[{"uid":"68e8-149"}]}},"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
|
@@ -114,16 +114,16 @@ declare type RocketComponentType = ElementType & {
|
|
|
114
114
|
declare type RocketProviderState<T extends RocketComponentType | TObj | unknown = unknown> = T extends RocketComponentType ? Partial<T['$$rocketstyle']> & {
|
|
115
115
|
pseudo: PseudoState;
|
|
116
116
|
} : T;
|
|
117
|
-
declare type ConsumerCtxCBValue<T extends RocketComponentType, DKP> = (attrs: RocketProviderState<T>) => DKP extends TDKP ? Partial<
|
|
117
|
+
declare type ConsumerCtxCBValue<T extends RocketComponentType, D extends Dimensions, DKP extends TDKP> = (attrs: RocketProviderState<T>) => DKP extends TDKP ? Partial<ExtractDimensions<D, DKP> & {
|
|
118
118
|
pseudo: PseudoState;
|
|
119
119
|
}> : TObj;
|
|
120
|
-
declare type ConsumerCtxCb<DKP> = <T extends RocketComponentType>(attrs: ConsumerCtxCBValue<T, DKP>) => ReturnType<ConsumerCtxCBValue<T, DKP>>;
|
|
121
|
-
declare type ConsumerCb<DKP = TDKP> = (ctx: ConsumerCtxCb<DKP>) => ReturnType<ConsumerCtxCb<DKP>>;
|
|
122
|
-
declare type ConfigAttrs<C extends ElementType | unknown, DKP extends TDKP, UB extends boolean> = Partial<{
|
|
120
|
+
declare type ConsumerCtxCb<D extends Dimensions, DKP extends TDKP = TDKP> = <T extends RocketComponentType>(attrs: ConsumerCtxCBValue<T, D, DKP>) => ReturnType<ConsumerCtxCBValue<T, D, DKP>>;
|
|
121
|
+
declare type ConsumerCb<D extends Dimensions, DKP extends TDKP = TDKP> = (ctx: ConsumerCtxCb<D, DKP>) => ReturnType<ConsumerCtxCb<D, DKP>>;
|
|
122
|
+
declare type ConfigAttrs<C extends ElementType | unknown, D extends Dimensions, DKP extends TDKP, UB extends boolean> = Partial<{
|
|
123
123
|
name: string;
|
|
124
124
|
component: C;
|
|
125
125
|
provider: boolean;
|
|
126
|
-
consumer: ConsumerCb<DKP>;
|
|
126
|
+
consumer: ConsumerCb<D, DKP>;
|
|
127
127
|
DEBUG: boolean;
|
|
128
128
|
inversed: boolean;
|
|
129
129
|
passProps: UB extends true ? Array<keyof DimensionBooleanAttrs<DKP>> : never;
|
|
@@ -180,7 +180,7 @@ declare type RocketComponent<OA extends TObj = {}, EA extends TObj = {}, T exten
|
|
|
180
180
|
* @param DFP Calculated final component props
|
|
181
181
|
*/
|
|
182
182
|
interface IRocketComponent<OA extends TObj = {}, EA extends TObj = {}, T extends TObj = {}, CSS extends TObj = {}, S extends TObj = {}, HOC extends TObj = {}, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP, DFP = MergeTypes<[OA, EA, DefaultProps, ExtractDimensionProps<D, DKP, UB>]>> extends ForwardRefExoticComponent<DFP> {
|
|
183
|
-
config: <NC extends ElementType | unknown = unknown>({ name, component: NC, provider, consumer, DEBUG, inversed, passProps, }: ConfigAttrs<NC, DKP, UB>) => NC extends ElementType ? RocketComponent<ExtractProps<NC>, EA, T, CSS, S, HOC, D, UB, DKP> : RocketComponent<OA, EA, T, CSS, S, HOC, D, UB, DKP>;
|
|
183
|
+
config: <NC extends ElementType | unknown = unknown>({ name, component: NC, provider, consumer, DEBUG, inversed, passProps, }: ConfigAttrs<NC, D, DKP, UB>) => NC extends ElementType ? RocketComponent<ExtractProps<NC>, EA, T, CSS, S, HOC, D, UB, DKP> : RocketComponent<OA, EA, T, CSS, S, HOC, D, UB, DKP>;
|
|
184
184
|
/**
|
|
185
185
|
* A chaining method to define default component props
|
|
186
186
|
* @param param Can be either _object_ or a _callback_
|
|
@@ -234,9 +234,9 @@ interface IRocketComponent<OA extends TObj = {}, EA extends TObj = {}, T extends
|
|
|
234
234
|
statics: <P extends TObj>(param: P) => P extends TObj ? RocketComponent<OA, EA, T, CSS, MergeTypes<[S, P]>, HOC, D, UB, DKP> : RocketComponent<OA, EA, T, CSS, S, HOC, D, UB, DKP>;
|
|
235
235
|
is: S;
|
|
236
236
|
getStaticDimensions: (theme: TObj) => {
|
|
237
|
-
dimensions:
|
|
237
|
+
dimensions: DKP;
|
|
238
238
|
useBooleans: UB;
|
|
239
|
-
multiKeys:
|
|
239
|
+
multiKeys: MultiKeys<D>;
|
|
240
240
|
};
|
|
241
241
|
getDefaultAttrs: (props: TObj, theme: TObj, mode: ThemeModeKeys) => TObj;
|
|
242
242
|
readonly $$rocketstyle: ExtractDimensions<D, DKP>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ElementType, TObj } from './utils';
|
|
2
|
-
import type { TDKP, DimensionBooleanAttrs } from './dimensions';
|
|
2
|
+
import type { TDKP, DimensionBooleanAttrs, Dimensions, ExtractDimensions } from './dimensions';
|
|
3
3
|
import type { PseudoState } from './pseudo';
|
|
4
4
|
export declare type RocketComponentType = ElementType & {
|
|
5
5
|
IS_ROCKETSTYLE: true;
|
|
@@ -8,16 +8,16 @@ export declare type RocketComponentType = ElementType & {
|
|
|
8
8
|
export declare type RocketProviderState<T extends RocketComponentType | TObj | unknown = unknown> = T extends RocketComponentType ? Partial<T['$$rocketstyle']> & {
|
|
9
9
|
pseudo: PseudoState;
|
|
10
10
|
} : T;
|
|
11
|
-
export declare type ConsumerCtxCBValue<T extends RocketComponentType, DKP> = (attrs: RocketProviderState<T>) => DKP extends TDKP ? Partial<
|
|
11
|
+
export declare type ConsumerCtxCBValue<T extends RocketComponentType, D extends Dimensions, DKP extends TDKP> = (attrs: RocketProviderState<T>) => DKP extends TDKP ? Partial<ExtractDimensions<D, DKP> & {
|
|
12
12
|
pseudo: PseudoState;
|
|
13
13
|
}> : TObj;
|
|
14
|
-
export declare type ConsumerCtxCb<DKP> = <T extends RocketComponentType>(attrs: ConsumerCtxCBValue<T, DKP>) => ReturnType<ConsumerCtxCBValue<T, DKP>>;
|
|
15
|
-
export declare type ConsumerCb<DKP = TDKP> = (ctx: ConsumerCtxCb<DKP>) => ReturnType<ConsumerCtxCb<DKP>>;
|
|
16
|
-
export declare type ConfigAttrs<C extends ElementType | unknown, DKP extends TDKP, UB extends boolean> = Partial<{
|
|
14
|
+
export declare type ConsumerCtxCb<D extends Dimensions, DKP extends TDKP = TDKP> = <T extends RocketComponentType>(attrs: ConsumerCtxCBValue<T, D, DKP>) => ReturnType<ConsumerCtxCBValue<T, D, DKP>>;
|
|
15
|
+
export declare type ConsumerCb<D extends Dimensions, DKP extends TDKP = TDKP> = (ctx: ConsumerCtxCb<D, DKP>) => ReturnType<ConsumerCtxCb<D, DKP>>;
|
|
16
|
+
export declare type ConfigAttrs<C extends ElementType | unknown, D extends Dimensions, DKP extends TDKP, UB extends boolean> = Partial<{
|
|
17
17
|
name: string;
|
|
18
18
|
component: C;
|
|
19
19
|
provider: boolean;
|
|
20
|
-
consumer: ConsumerCb<DKP>;
|
|
20
|
+
consumer: ConsumerCb<D, DKP>;
|
|
21
21
|
DEBUG: boolean;
|
|
22
22
|
inversed: boolean;
|
|
23
23
|
passProps: UB extends true ? Array<keyof DimensionBooleanAttrs<DKP>> : never;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ForwardRefExoticComponent } from 'react';
|
|
2
2
|
import type { TObj, ElementType, MergeTypes, ExtractProps } from './utils';
|
|
3
|
-
import type { Dimensions, DimensionValue, DimensionCallbackParam, ExtractDimensionProps, TDKP, DimensionProps, ExtractDimensions } from './dimensions';
|
|
3
|
+
import type { Dimensions, DimensionValue, DimensionCallbackParam, ExtractDimensionProps, TDKP, DimensionProps, ExtractDimensions, MultiKeys } from './dimensions';
|
|
4
4
|
import type { StylesCb, Styles } from './styles';
|
|
5
5
|
import type { ConfigAttrs } from './config';
|
|
6
6
|
import type { AttrsCb } from './attrs';
|
|
@@ -22,7 +22,7 @@ export declare type RocketComponent<OA extends TObj = {}, EA extends TObj = {},
|
|
|
22
22
|
* @param DFP Calculated final component props
|
|
23
23
|
*/
|
|
24
24
|
export interface IRocketComponent<OA extends TObj = {}, EA extends TObj = {}, T extends TObj = {}, CSS extends TObj = {}, S extends TObj = {}, HOC extends TObj = {}, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP, DFP = MergeTypes<[OA, EA, DefaultProps, ExtractDimensionProps<D, DKP, UB>]>> extends ForwardRefExoticComponent<DFP> {
|
|
25
|
-
config: <NC extends ElementType | unknown = unknown>({ name, component: NC, provider, consumer, DEBUG, inversed, passProps, }: ConfigAttrs<NC, DKP, UB>) => NC extends ElementType ? RocketComponent<ExtractProps<NC>, EA, T, CSS, S, HOC, D, UB, DKP> : RocketComponent<OA, EA, T, CSS, S, HOC, D, UB, DKP>;
|
|
25
|
+
config: <NC extends ElementType | unknown = unknown>({ name, component: NC, provider, consumer, DEBUG, inversed, passProps, }: ConfigAttrs<NC, D, DKP, UB>) => NC extends ElementType ? RocketComponent<ExtractProps<NC>, EA, T, CSS, S, HOC, D, UB, DKP> : RocketComponent<OA, EA, T, CSS, S, HOC, D, UB, DKP>;
|
|
26
26
|
/**
|
|
27
27
|
* A chaining method to define default component props
|
|
28
28
|
* @param param Can be either _object_ or a _callback_
|
|
@@ -76,9 +76,9 @@ export interface IRocketComponent<OA extends TObj = {}, EA extends TObj = {}, T
|
|
|
76
76
|
statics: <P extends TObj>(param: P) => P extends TObj ? RocketComponent<OA, EA, T, CSS, MergeTypes<[S, P]>, HOC, D, UB, DKP> : RocketComponent<OA, EA, T, CSS, S, HOC, D, UB, DKP>;
|
|
77
77
|
is: S;
|
|
78
78
|
getStaticDimensions: (theme: TObj) => {
|
|
79
|
-
dimensions:
|
|
79
|
+
dimensions: DKP;
|
|
80
80
|
useBooleans: UB;
|
|
81
|
-
multiKeys:
|
|
81
|
+
multiKeys: MultiKeys<D>;
|
|
82
82
|
};
|
|
83
83
|
getDefaultAttrs: (props: TObj, theme: TObj, mode: ThemeModeKeys) => TObj;
|
|
84
84
|
readonly $$rocketstyle: ExtractDimensions<D, DKP>;
|