@vitus-labs/rocketstyle 0.25.0-alpha.4 → 0.25.0-alpha.5
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 +5 -6
- package/lib/types/init.d.ts +2 -2
- package/lib/types/types/pseudo.d.ts +1 -1
- package/lib/types/types/rocketstyle.d.ts +2 -2
- package/lib/types/types/styleComponent.d.ts +2 -3
- package/lib/vitus-labs-rocketstyle.js +1 -1
- package/lib/vitus-labs-rocketstyle.js.map +1 -1
- package/lib/vitus-labs-rocketstyle.module.js +1 -1
- package/lib/vitus-labs-rocketstyle.module.js.map +1 -1
- package/lib/vitus-labs-rocketstyle.umd.js +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 +5 -5
|
@@ -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":"b6dd-1","name":"usePseudoState.tsx"},{"uid":"b6dd-9","name":"useTheme.tsx"},{"uid":"b6dd-15","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"b6dd-3","name":"collection.ts"},{"uid":"b6dd-5","name":"dimensions.ts"},{"uid":"b6dd-7","name":"theme.ts"},{"uid":"b6dd-17","name":"attrs.ts"},{"uid":"b6dd-25","name":"styles.ts"}]},{"uid":"b6dd-11","name":"context.tsx"},{"name":"constants","children":[{"uid":"b6dd-13","name":"reservedKeys.ts"},{"uid":"b6dd-29","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"b6dd-19","name":"rocketstyleAttrsHoc.tsx"},{"uid":"b6dd-21","name":"localContext.tsx"},{"uid":"b6dd-23","name":"createProvider.tsx"}]},{"uid":"b6dd-27","name":"rocketstyle.tsx"},{"uid":"b6dd-31","name":"init.ts"},{"uid":"b6dd-33","name":"isRocketComponent.ts"},{"uid":"b6dd-35","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"b6dd-1":{"renderedLength":1775,"gzipLength":407,"brotliLength":0,"mainUid":"b6dd-0"},"b6dd-3":{"renderedLength":468,"gzipLength":280,"brotliLength":0,"mainUid":"b6dd-2"},"b6dd-5":{"renderedLength":1474,"gzipLength":545,"brotliLength":0,"mainUid":"b6dd-4"},"b6dd-7":{"renderedLength":2625,"gzipLength":845,"brotliLength":0,"mainUid":"b6dd-6"},"b6dd-9":{"renderedLength":542,"gzipLength":295,"brotliLength":0,"mainUid":"b6dd-8"},"b6dd-11":{"renderedLength":464,"gzipLength":261,"brotliLength":0,"mainUid":"b6dd-10"},"b6dd-13":{"renderedLength":566,"gzipLength":296,"brotliLength":0,"mainUid":"b6dd-12"},"b6dd-15":{"renderedLength":331,"gzipLength":206,"brotliLength":0,"mainUid":"b6dd-14"},"b6dd-17":{"renderedLength":2568,"gzipLength":873,"brotliLength":0,"mainUid":"b6dd-16"},"b6dd-19":{"renderedLength":1029,"gzipLength":445,"brotliLength":0,"mainUid":"b6dd-18"},"b6dd-21":{"renderedLength":43,"gzipLength":58,"brotliLength":0,"mainUid":"b6dd-20"},"b6dd-23":{"renderedLength":832,"gzipLength":384,"brotliLength":0,"mainUid":"b6dd-22"},"b6dd-25":{"renderedLength":129,"gzipLength":112,"brotliLength":0,"mainUid":"b6dd-24"},"b6dd-27":{"renderedLength":11491,"gzipLength":2801,"brotliLength":0,"mainUid":"b6dd-26"},"b6dd-29":{"renderedLength":178,"gzipLength":128,"brotliLength":0,"mainUid":"b6dd-28"},"b6dd-31":{"renderedLength":1570,"gzipLength":577,"brotliLength":0,"mainUid":"b6dd-30"},"b6dd-33":{"renderedLength":204,"gzipLength":148,"brotliLength":0,"mainUid":"b6dd-32"},"b6dd-35":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"b6dd-34"}},"nodeMetas":{"b6dd-0":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-1"},"imported":[{"uid":"b6dd-37"}],"importedBy":[{"uid":"b6dd-39"}]},"b6dd-2":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-3"},"imported":[],"importedBy":[{"uid":"b6dd-26"},{"uid":"b6dd-6"}]},"b6dd-4":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-5"},"imported":[{"uid":"b6dd-36"}],"importedBy":[{"uid":"b6dd-30"},{"uid":"b6dd-6"},{"uid":"b6dd-8"}]},"b6dd-6":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-7"},"imported":[{"uid":"b6dd-36"},{"uid":"b6dd-2"},{"uid":"b6dd-4"}],"importedBy":[{"uid":"b6dd-26"},{"uid":"b6dd-8"}]},"b6dd-8":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-9"},"imported":[{"uid":"b6dd-36"},{"uid":"b6dd-6"},{"uid":"b6dd-4"}],"importedBy":[{"uid":"b6dd-39"}]},"b6dd-10":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-11"},"imported":[{"uid":"b6dd-37"},{"uid":"b6dd-36"}],"importedBy":[{"uid":"b6dd-34"},{"uid":"b6dd-14"}]},"b6dd-12":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-13"},"imported":[],"importedBy":[{"uid":"b6dd-30"},{"uid":"b6dd-26"},{"uid":"b6dd-14"}]},"b6dd-14":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-15"},"imported":[{"uid":"b6dd-37"},{"uid":"b6dd-10"},{"uid":"b6dd-12"}],"importedBy":[{"uid":"b6dd-39"}]},"b6dd-16":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-17"},"imported":[{"uid":"b6dd-36"}],"importedBy":[{"uid":"b6dd-26"},{"uid":"b6dd-18"}]},"b6dd-18":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-19"},"imported":[{"uid":"b6dd-37"},{"uid":"b6dd-36"},{"uid":"b6dd-16"},{"uid":"b6dd-39"}],"importedBy":[{"uid":"b6dd-40"}]},"b6dd-20":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-21"},"imported":[{"uid":"b6dd-37"}],"importedBy":[{"uid":"b6dd-40"},{"uid":"b6dd-22"}]},"b6dd-22":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-23"},"imported":[{"uid":"b6dd-37"},{"uid":"b6dd-39"},{"uid":"b6dd-20"}],"importedBy":[{"uid":"b6dd-40"}]},"b6dd-24":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-25"},"imported":[],"importedBy":[{"uid":"b6dd-26"}]},"b6dd-26":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-27"},"imported":[{"uid":"b6dd-37"},{"uid":"b6dd-38"},{"uid":"b6dd-36"},{"uid":"b6dd-39"},{"uid":"b6dd-40"},{"uid":"b6dd-6"},{"uid":"b6dd-24"},{"uid":"b6dd-2"},{"uid":"b6dd-16"},{"uid":"b6dd-12"}],"importedBy":[{"uid":"b6dd-30"}]},"b6dd-28":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-29"},"imported":[],"importedBy":[{"uid":"b6dd-30"}]},"b6dd-30":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-31"},"imported":[{"uid":"b6dd-36"},{"uid":"b6dd-26"},{"uid":"b6dd-4"},{"uid":"b6dd-12"},{"uid":"b6dd-28"}],"importedBy":[{"uid":"b6dd-34"}]},"b6dd-32":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-33"},"imported":[],"importedBy":[{"uid":"b6dd-34"}]},"b6dd-34":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b6dd-35"},"imported":[{"uid":"b6dd-30"},{"uid":"b6dd-10"},{"uid":"b6dd-32"}],"importedBy":[],"isEntry":true},"b6dd-36":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6dd-30"},{"uid":"b6dd-10"},{"uid":"b6dd-26"},{"uid":"b6dd-4"},{"uid":"b6dd-6"},{"uid":"b6dd-16"},{"uid":"b6dd-8"},{"uid":"b6dd-18"}],"isExternal":true},"b6dd-37":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6dd-10"},{"uid":"b6dd-26"},{"uid":"b6dd-0"},{"uid":"b6dd-14"},{"uid":"b6dd-18"},{"uid":"b6dd-22"},{"uid":"b6dd-20"}],"isExternal":true},"b6dd-38":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6dd-26"}],"isExternal":true},"b6dd-39":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"b6dd-0"},{"uid":"b6dd-8"},{"uid":"b6dd-14"}],"importedBy":[{"uid":"b6dd-26"},{"uid":"b6dd-18"},{"uid":"b6dd-22"}]},"b6dd-40":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"b6dd-18"},{"uid":"b6dd-22"},{"uid":"b6dd-20"}],"importedBy":[{"uid":"b6dd-26"}]}},"env":{"rollup":"2.67.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":"b6dd-42","name":"usePseudoState.tsx"},{"uid":"b6dd-50","name":"useTheme.tsx"},{"uid":"b6dd-56","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"b6dd-44","name":"collection.ts"},{"uid":"b6dd-46","name":"dimensions.ts"},{"uid":"b6dd-48","name":"theme.ts"},{"uid":"b6dd-58","name":"attrs.ts"},{"uid":"b6dd-66","name":"styles.ts"}]},{"uid":"b6dd-52","name":"context.tsx"},{"name":"constants","children":[{"uid":"b6dd-54","name":"reservedKeys.ts"},{"uid":"b6dd-70","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"b6dd-60","name":"rocketstyleAttrsHoc.tsx"},{"uid":"b6dd-62","name":"localContext.tsx"},{"uid":"b6dd-64","name":"createProvider.tsx"}]},{"uid":"b6dd-68","name":"rocketstyle.tsx"},{"uid":"b6dd-72","name":"init.ts"},{"uid":"b6dd-74","name":"isRocketComponent.ts"},{"uid":"b6dd-76","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"b6dd-42":{"renderedLength":1721,"gzipLength":401,"brotliLength":0,"mainUid":"b6dd-41"},"b6dd-44":{"renderedLength":468,"gzipLength":280,"brotliLength":0,"mainUid":"b6dd-43"},"b6dd-46":{"renderedLength":1459,"gzipLength":537,"brotliLength":0,"mainUid":"b6dd-45"},"b6dd-48":{"renderedLength":2595,"gzipLength":838,"brotliLength":0,"mainUid":"b6dd-47"},"b6dd-50":{"renderedLength":537,"gzipLength":292,"brotliLength":0,"mainUid":"b6dd-49"},"b6dd-52":{"renderedLength":430,"gzipLength":245,"brotliLength":0,"mainUid":"b6dd-51"},"b6dd-54":{"renderedLength":566,"gzipLength":296,"brotliLength":0,"mainUid":"b6dd-53"},"b6dd-56":{"renderedLength":320,"gzipLength":199,"brotliLength":0,"mainUid":"b6dd-55"},"b6dd-58":{"renderedLength":2563,"gzipLength":870,"brotliLength":0,"mainUid":"b6dd-57"},"b6dd-60":{"renderedLength":983,"gzipLength":424,"brotliLength":0,"mainUid":"b6dd-59"},"b6dd-62":{"renderedLength":37,"gzipLength":51,"brotliLength":0,"mainUid":"b6dd-61"},"b6dd-64":{"renderedLength":780,"gzipLength":365,"brotliLength":0,"mainUid":"b6dd-63"},"b6dd-66":{"renderedLength":129,"gzipLength":112,"brotliLength":0,"mainUid":"b6dd-65"},"b6dd-68":{"renderedLength":11343,"gzipLength":2762,"brotliLength":0,"mainUid":"b6dd-67"},"b6dd-70":{"renderedLength":178,"gzipLength":128,"brotliLength":0,"mainUid":"b6dd-69"},"b6dd-72":{"renderedLength":1560,"gzipLength":573,"brotliLength":0,"mainUid":"b6dd-71"},"b6dd-74":{"renderedLength":204,"gzipLength":148,"brotliLength":0,"mainUid":"b6dd-73"},"b6dd-76":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"b6dd-75"}},"nodeMetas":{"b6dd-41":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-42"},"imported":[{"uid":"b6dd-78"}],"importedBy":[{"uid":"b6dd-80"}]},"b6dd-43":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-44"},"imported":[],"importedBy":[{"uid":"b6dd-67"},{"uid":"b6dd-47"}]},"b6dd-45":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-46"},"imported":[{"uid":"b6dd-77"}],"importedBy":[{"uid":"b6dd-71"},{"uid":"b6dd-47"},{"uid":"b6dd-49"}]},"b6dd-47":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-48"},"imported":[{"uid":"b6dd-77"},{"uid":"b6dd-43"},{"uid":"b6dd-45"}],"importedBy":[{"uid":"b6dd-67"},{"uid":"b6dd-49"}]},"b6dd-49":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-50"},"imported":[{"uid":"b6dd-77"},{"uid":"b6dd-47"},{"uid":"b6dd-45"}],"importedBy":[{"uid":"b6dd-80"}]},"b6dd-51":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-52"},"imported":[{"uid":"b6dd-78"},{"uid":"b6dd-77"}],"importedBy":[{"uid":"b6dd-75"},{"uid":"b6dd-55"}]},"b6dd-53":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-54"},"imported":[],"importedBy":[{"uid":"b6dd-71"},{"uid":"b6dd-67"},{"uid":"b6dd-55"}]},"b6dd-55":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-56"},"imported":[{"uid":"b6dd-78"},{"uid":"b6dd-51"},{"uid":"b6dd-53"}],"importedBy":[{"uid":"b6dd-80"}]},"b6dd-57":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-58"},"imported":[{"uid":"b6dd-77"}],"importedBy":[{"uid":"b6dd-67"},{"uid":"b6dd-59"}]},"b6dd-59":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-60"},"imported":[{"uid":"b6dd-78"},{"uid":"b6dd-77"},{"uid":"b6dd-57"},{"uid":"b6dd-80"}],"importedBy":[{"uid":"b6dd-81"}]},"b6dd-61":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-62"},"imported":[{"uid":"b6dd-78"}],"importedBy":[{"uid":"b6dd-81"},{"uid":"b6dd-63"}]},"b6dd-63":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-64"},"imported":[{"uid":"b6dd-78"},{"uid":"b6dd-80"},{"uid":"b6dd-61"}],"importedBy":[{"uid":"b6dd-81"}]},"b6dd-65":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-66"},"imported":[],"importedBy":[{"uid":"b6dd-67"}]},"b6dd-67":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-68"},"imported":[{"uid":"b6dd-78"},{"uid":"b6dd-79"},{"uid":"b6dd-77"},{"uid":"b6dd-80"},{"uid":"b6dd-81"},{"uid":"b6dd-47"},{"uid":"b6dd-65"},{"uid":"b6dd-43"},{"uid":"b6dd-57"},{"uid":"b6dd-53"}],"importedBy":[{"uid":"b6dd-71"}]},"b6dd-69":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-70"},"imported":[],"importedBy":[{"uid":"b6dd-71"}]},"b6dd-71":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-72"},"imported":[{"uid":"b6dd-77"},{"uid":"b6dd-67"},{"uid":"b6dd-45"},{"uid":"b6dd-53"},{"uid":"b6dd-69"}],"importedBy":[{"uid":"b6dd-75"}]},"b6dd-73":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-74"},"imported":[],"importedBy":[{"uid":"b6dd-75"}]},"b6dd-75":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b6dd-76"},"imported":[{"uid":"b6dd-71"},{"uid":"b6dd-51"},{"uid":"b6dd-73"}],"importedBy":[],"isEntry":true},"b6dd-77":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6dd-71"},{"uid":"b6dd-51"},{"uid":"b6dd-67"},{"uid":"b6dd-45"},{"uid":"b6dd-47"},{"uid":"b6dd-57"},{"uid":"b6dd-49"},{"uid":"b6dd-59"}],"isExternal":true},"b6dd-78":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6dd-51"},{"uid":"b6dd-67"},{"uid":"b6dd-41"},{"uid":"b6dd-55"},{"uid":"b6dd-59"},{"uid":"b6dd-63"},{"uid":"b6dd-61"}],"isExternal":true},"b6dd-79":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6dd-67"}],"isExternal":true},"b6dd-80":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"b6dd-41"},{"uid":"b6dd-49"},{"uid":"b6dd-55"}],"importedBy":[{"uid":"b6dd-67"},{"uid":"b6dd-59"},{"uid":"b6dd-63"}]},"b6dd-81":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"b6dd-59"},{"uid":"b6dd-63"},{"uid":"b6dd-61"}],"importedBy":[{"uid":"b6dd-67"}]}},"env":{"rollup":"2.67.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":"b6dd-83","name":"usePseudoState.tsx"},{"uid":"b6dd-91","name":"useTheme.tsx"},{"uid":"b6dd-97","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"b6dd-85","name":"collection.ts"},{"uid":"b6dd-87","name":"dimensions.ts"},{"uid":"b6dd-89","name":"theme.ts"},{"uid":"b6dd-99","name":"attrs.ts"},{"uid":"b6dd-107","name":"styles.ts"}]},{"uid":"b6dd-93","name":"context.tsx"},{"name":"constants","children":[{"uid":"b6dd-95","name":"reservedKeys.ts"},{"uid":"b6dd-111","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"b6dd-101","name":"rocketstyleAttrsHoc.tsx"},{"uid":"b6dd-103","name":"localContext.tsx"},{"uid":"b6dd-105","name":"createProvider.tsx"}]},{"uid":"b6dd-109","name":"rocketstyle.tsx"},{"uid":"b6dd-113","name":"init.ts"},{"uid":"b6dd-115","name":"isRocketComponent.ts"},{"uid":"b6dd-117","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"b6dd-83":{"renderedLength":1897,"gzipLength":408,"brotliLength":0,"mainUid":"b6dd-82"},"b6dd-85":{"renderedLength":492,"gzipLength":283,"brotliLength":0,"mainUid":"b6dd-84"},"b6dd-87":{"renderedLength":1554,"gzipLength":546,"brotliLength":0,"mainUid":"b6dd-86"},"b6dd-89":{"renderedLength":2763,"gzipLength":850,"brotliLength":0,"mainUid":"b6dd-88"},"b6dd-91":{"renderedLength":572,"gzipLength":298,"brotliLength":0,"mainUid":"b6dd-90"},"b6dd-93":{"renderedLength":476,"gzipLength":262,"brotliLength":0,"mainUid":"b6dd-92"},"b6dd-95":{"renderedLength":618,"gzipLength":299,"brotliLength":0,"mainUid":"b6dd-94"},"b6dd-97":{"renderedLength":345,"gzipLength":206,"brotliLength":0,"mainUid":"b6dd-96"},"b6dd-99":{"renderedLength":2698,"gzipLength":876,"brotliLength":0,"mainUid":"b6dd-98"},"b6dd-101":{"renderedLength":1081,"gzipLength":448,"brotliLength":0,"mainUid":"b6dd-100"},"b6dd-103":{"renderedLength":45,"gzipLength":60,"brotliLength":0,"mainUid":"b6dd-102"},"b6dd-105":{"renderedLength":866,"gzipLength":387,"brotliLength":0,"mainUid":"b6dd-104"},"b6dd-107":{"renderedLength":139,"gzipLength":114,"brotliLength":0,"mainUid":"b6dd-106"},"b6dd-109":{"renderedLength":11955,"gzipLength":2812,"brotliLength":0,"mainUid":"b6dd-108"},"b6dd-111":{"renderedLength":196,"gzipLength":130,"brotliLength":0,"mainUid":"b6dd-110"},"b6dd-113":{"renderedLength":1644,"gzipLength":579,"brotliLength":0,"mainUid":"b6dd-112"},"b6dd-115":{"renderedLength":220,"gzipLength":151,"brotliLength":0,"mainUid":"b6dd-114"},"b6dd-117":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"b6dd-116"}},"nodeMetas":{"b6dd-82":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-83"},"imported":[{"uid":"b6dd-119"}],"importedBy":[{"uid":"b6dd-121"}]},"b6dd-84":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-85"},"imported":[],"importedBy":[{"uid":"b6dd-108"},{"uid":"b6dd-88"}]},"b6dd-86":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-87"},"imported":[{"uid":"b6dd-118"}],"importedBy":[{"uid":"b6dd-112"},{"uid":"b6dd-88"},{"uid":"b6dd-90"}]},"b6dd-88":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-89"},"imported":[{"uid":"b6dd-118"},{"uid":"b6dd-84"},{"uid":"b6dd-86"}],"importedBy":[{"uid":"b6dd-108"},{"uid":"b6dd-90"}]},"b6dd-90":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-91"},"imported":[{"uid":"b6dd-118"},{"uid":"b6dd-88"},{"uid":"b6dd-86"}],"importedBy":[{"uid":"b6dd-121"}]},"b6dd-92":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-93"},"imported":[{"uid":"b6dd-119"},{"uid":"b6dd-118"}],"importedBy":[{"uid":"b6dd-116"},{"uid":"b6dd-96"}]},"b6dd-94":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-95"},"imported":[],"importedBy":[{"uid":"b6dd-112"},{"uid":"b6dd-108"},{"uid":"b6dd-96"}]},"b6dd-96":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-97"},"imported":[{"uid":"b6dd-119"},{"uid":"b6dd-92"},{"uid":"b6dd-94"}],"importedBy":[{"uid":"b6dd-121"}]},"b6dd-98":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-99"},"imported":[{"uid":"b6dd-118"}],"importedBy":[{"uid":"b6dd-108"},{"uid":"b6dd-100"}]},"b6dd-100":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-101"},"imported":[{"uid":"b6dd-119"},{"uid":"b6dd-118"},{"uid":"b6dd-98"},{"uid":"b6dd-121"}],"importedBy":[{"uid":"b6dd-122"}]},"b6dd-102":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-103"},"imported":[{"uid":"b6dd-119"}],"importedBy":[{"uid":"b6dd-122"},{"uid":"b6dd-104"}]},"b6dd-104":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-105"},"imported":[{"uid":"b6dd-119"},{"uid":"b6dd-121"},{"uid":"b6dd-102"}],"importedBy":[{"uid":"b6dd-122"}]},"b6dd-106":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-107"},"imported":[],"importedBy":[{"uid":"b6dd-108"}]},"b6dd-108":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-109"},"imported":[{"uid":"b6dd-119"},{"uid":"b6dd-120"},{"uid":"b6dd-118"},{"uid":"b6dd-121"},{"uid":"b6dd-122"},{"uid":"b6dd-88"},{"uid":"b6dd-106"},{"uid":"b6dd-84"},{"uid":"b6dd-98"},{"uid":"b6dd-94"}],"importedBy":[{"uid":"b6dd-112"}]},"b6dd-110":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-111"},"imported":[],"importedBy":[{"uid":"b6dd-112"}]},"b6dd-112":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-113"},"imported":[{"uid":"b6dd-118"},{"uid":"b6dd-108"},{"uid":"b6dd-86"},{"uid":"b6dd-94"},{"uid":"b6dd-110"}],"importedBy":[{"uid":"b6dd-116"}]},"b6dd-114":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-115"},"imported":[],"importedBy":[{"uid":"b6dd-116"}]},"b6dd-116":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"b6dd-117"},"imported":[{"uid":"b6dd-112"},{"uid":"b6dd-92"},{"uid":"b6dd-114"}],"importedBy":[],"isEntry":true},"b6dd-118":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6dd-112"},{"uid":"b6dd-92"},{"uid":"b6dd-108"},{"uid":"b6dd-86"},{"uid":"b6dd-88"},{"uid":"b6dd-98"},{"uid":"b6dd-90"},{"uid":"b6dd-100"}],"isExternal":true},"b6dd-119":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6dd-92"},{"uid":"b6dd-108"},{"uid":"b6dd-82"},{"uid":"b6dd-96"},{"uid":"b6dd-100"},{"uid":"b6dd-104"},{"uid":"b6dd-102"}],"isExternal":true},"b6dd-120":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6dd-108"}],"isExternal":true},"b6dd-121":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"b6dd-82"},{"uid":"b6dd-90"},{"uid":"b6dd-96"}],"importedBy":[{"uid":"b6dd-108"},{"uid":"b6dd-100"},{"uid":"b6dd-104"}]},"b6dd-122":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"b6dd-100"},{"uid":"b6dd-104"},{"uid":"b6dd-102"}],"importedBy":[{"uid":"b6dd-108"}]}},"env":{"rollup":"2.67.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":"b6dd-124","name":"usePseudoState.tsx"},{"uid":"b6dd-132","name":"useTheme.tsx"},{"uid":"b6dd-138","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"b6dd-126","name":"collection.ts"},{"uid":"b6dd-128","name":"dimensions.ts"},{"uid":"b6dd-130","name":"theme.ts"},{"uid":"b6dd-140","name":"attrs.ts"},{"uid":"b6dd-148","name":"styles.ts"}]},{"uid":"b6dd-134","name":"context.tsx"},{"name":"constants","children":[{"uid":"b6dd-136","name":"reservedKeys.ts"},{"uid":"b6dd-152","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"b6dd-142","name":"rocketstyleAttrsHoc.tsx"},{"uid":"b6dd-144","name":"localContext.tsx"},{"uid":"b6dd-146","name":"createProvider.tsx"}]},{"uid":"b6dd-150","name":"rocketstyle.tsx"},{"uid":"b6dd-154","name":"init.ts"},{"uid":"b6dd-156","name":"isRocketComponent.ts"},{"uid":"b6dd-158","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"b6dd-124":{"renderedLength":1897,"gzipLength":408,"brotliLength":0,"mainUid":"b6dd-123"},"b6dd-126":{"renderedLength":492,"gzipLength":283,"brotliLength":0,"mainUid":"b6dd-125"},"b6dd-128":{"renderedLength":1554,"gzipLength":546,"brotliLength":0,"mainUid":"b6dd-127"},"b6dd-130":{"renderedLength":2763,"gzipLength":850,"brotliLength":0,"mainUid":"b6dd-129"},"b6dd-132":{"renderedLength":572,"gzipLength":298,"brotliLength":0,"mainUid":"b6dd-131"},"b6dd-134":{"renderedLength":476,"gzipLength":262,"brotliLength":0,"mainUid":"b6dd-133"},"b6dd-136":{"renderedLength":592,"gzipLength":288,"brotliLength":0,"mainUid":"b6dd-135"},"b6dd-138":{"renderedLength":345,"gzipLength":206,"brotliLength":0,"mainUid":"b6dd-137"},"b6dd-140":{"renderedLength":2698,"gzipLength":876,"brotliLength":0,"mainUid":"b6dd-139"},"b6dd-142":{"renderedLength":1081,"gzipLength":448,"brotliLength":0,"mainUid":"b6dd-141"},"b6dd-144":{"renderedLength":45,"gzipLength":60,"brotliLength":0,"mainUid":"b6dd-143"},"b6dd-146":{"renderedLength":866,"gzipLength":387,"brotliLength":0,"mainUid":"b6dd-145"},"b6dd-148":{"renderedLength":139,"gzipLength":114,"brotliLength":0,"mainUid":"b6dd-147"},"b6dd-150":{"renderedLength":11774,"gzipLength":2737,"brotliLength":0,"mainUid":"b6dd-149"},"b6dd-152":{"renderedLength":196,"gzipLength":130,"brotliLength":0,"mainUid":"b6dd-151"},"b6dd-154":{"renderedLength":472,"gzipLength":244,"brotliLength":0,"mainUid":"b6dd-153"},"b6dd-156":{"renderedLength":220,"gzipLength":151,"brotliLength":0,"mainUid":"b6dd-155"},"b6dd-158":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"b6dd-157"}},"nodeMetas":{"b6dd-123":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-124"},"imported":[{"uid":"b6dd-160"}],"importedBy":[{"uid":"b6dd-162"}]},"b6dd-125":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-126"},"imported":[],"importedBy":[{"uid":"b6dd-149"},{"uid":"b6dd-129"}]},"b6dd-127":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-128"},"imported":[{"uid":"b6dd-159"}],"importedBy":[{"uid":"b6dd-153"},{"uid":"b6dd-129"},{"uid":"b6dd-131"}]},"b6dd-129":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-130"},"imported":[{"uid":"b6dd-159"},{"uid":"b6dd-125"},{"uid":"b6dd-127"}],"importedBy":[{"uid":"b6dd-149"},{"uid":"b6dd-131"}]},"b6dd-131":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-132"},"imported":[{"uid":"b6dd-159"},{"uid":"b6dd-129"},{"uid":"b6dd-127"}],"importedBy":[{"uid":"b6dd-162"}]},"b6dd-133":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-134"},"imported":[{"uid":"b6dd-160"},{"uid":"b6dd-159"}],"importedBy":[{"uid":"b6dd-157"},{"uid":"b6dd-137"}]},"b6dd-135":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-136"},"imported":[],"importedBy":[{"uid":"b6dd-153"},{"uid":"b6dd-149"},{"uid":"b6dd-137"}]},"b6dd-137":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-138"},"imported":[{"uid":"b6dd-160"},{"uid":"b6dd-133"},{"uid":"b6dd-135"}],"importedBy":[{"uid":"b6dd-162"}]},"b6dd-139":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-140"},"imported":[{"uid":"b6dd-159"}],"importedBy":[{"uid":"b6dd-149"},{"uid":"b6dd-141"}]},"b6dd-141":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-142"},"imported":[{"uid":"b6dd-160"},{"uid":"b6dd-159"},{"uid":"b6dd-139"},{"uid":"b6dd-162"}],"importedBy":[{"uid":"b6dd-163"}]},"b6dd-143":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-144"},"imported":[{"uid":"b6dd-160"}],"importedBy":[{"uid":"b6dd-163"},{"uid":"b6dd-145"}]},"b6dd-145":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-146"},"imported":[{"uid":"b6dd-160"},{"uid":"b6dd-162"},{"uid":"b6dd-143"}],"importedBy":[{"uid":"b6dd-163"}]},"b6dd-147":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-148"},"imported":[],"importedBy":[{"uid":"b6dd-149"}]},"b6dd-149":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-150"},"imported":[{"uid":"b6dd-160"},{"uid":"b6dd-161"},{"uid":"b6dd-159"},{"uid":"b6dd-162"},{"uid":"b6dd-163"},{"uid":"b6dd-129"},{"uid":"b6dd-147"},{"uid":"b6dd-125"},{"uid":"b6dd-139"},{"uid":"b6dd-135"}],"importedBy":[{"uid":"b6dd-153"}]},"b6dd-151":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-152"},"imported":[],"importedBy":[{"uid":"b6dd-153"}]},"b6dd-153":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-154"},"imported":[{"uid":"b6dd-159"},{"uid":"b6dd-149"},{"uid":"b6dd-127"},{"uid":"b6dd-135"},{"uid":"b6dd-151"}],"importedBy":[{"uid":"b6dd-157"}]},"b6dd-155":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-156"},"imported":[],"importedBy":[{"uid":"b6dd-157"}]},"b6dd-157":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"b6dd-158"},"imported":[{"uid":"b6dd-153"},{"uid":"b6dd-133"},{"uid":"b6dd-155"}],"importedBy":[],"isEntry":true},"b6dd-159":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6dd-153"},{"uid":"b6dd-133"},{"uid":"b6dd-149"},{"uid":"b6dd-127"},{"uid":"b6dd-129"},{"uid":"b6dd-139"},{"uid":"b6dd-131"},{"uid":"b6dd-141"}],"isExternal":true},"b6dd-160":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6dd-133"},{"uid":"b6dd-149"},{"uid":"b6dd-123"},{"uid":"b6dd-137"},{"uid":"b6dd-141"},{"uid":"b6dd-145"},{"uid":"b6dd-143"}],"isExternal":true},"b6dd-161":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"b6dd-149"}],"isExternal":true},"b6dd-162":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"b6dd-123"},{"uid":"b6dd-131"},{"uid":"b6dd-137"}],"importedBy":[{"uid":"b6dd-149"},{"uid":"b6dd-141"},{"uid":"b6dd-145"}]},"b6dd-163":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"b6dd-141"},{"uid":"b6dd-145"},{"uid":"b6dd-143"}],"importedBy":[{"uid":"b6dd-149"}]}},"env":{"rollup":"2.67.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
|
@@ -48,7 +48,6 @@ interface StylesDefault {
|
|
|
48
48
|
}
|
|
49
49
|
declare type Styles<S> = S extends unknown ? StylesDefault : StylesDefault & S;
|
|
50
50
|
declare type Css = typeof config.css;
|
|
51
|
-
declare type OptionStyles = Array<(css: Css) => ReturnType<Css>>;
|
|
52
51
|
declare type StylesCb = (css: Css) => ReturnType<Css>;
|
|
53
52
|
declare type StylesCbArray = Array<StylesCb>;
|
|
54
53
|
|
|
@@ -108,7 +107,7 @@ declare type PseudoState = {
|
|
|
108
107
|
focus: boolean;
|
|
109
108
|
pressed: boolean;
|
|
110
109
|
};
|
|
111
|
-
declare type PseudoProps = Partial<
|
|
110
|
+
declare type PseudoProps = Partial<PseudoState & PseudoActions>;
|
|
112
111
|
|
|
113
112
|
declare type RocketComponentType = ElementType & {
|
|
114
113
|
IS_ROCKETSTYLE: true;
|
|
@@ -171,7 +170,7 @@ declare type AttrsCb<A, T> = (props: Partial<A>, theme: T, helpers: {
|
|
|
171
170
|
|
|
172
171
|
declare type GenericHoc = (component: ElementType) => ElementType;
|
|
173
172
|
|
|
174
|
-
declare type RocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj
|
|
173
|
+
declare type RocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj = {}, CSS extends TObj = {}, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP> = IRocketComponent<A, OA, EA, T, CSS, D, UB, DKP> & {
|
|
175
174
|
[I in keyof D]: <K extends DimensionValue = D[I], P extends DimensionCallbackParam<Theme$1<T>, Styles<CSS>> = DimensionCallbackParam<Theme$1<T>, Styles<CSS>>>(param: P) => P extends DimensionCallbackParam<Theme$1<T>, Styles<CSS>> ? RocketComponent<MergeTypes<[
|
|
176
175
|
OA,
|
|
177
176
|
EA,
|
|
@@ -187,7 +186,7 @@ declare type RocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}
|
|
|
187
186
|
* @param UB Use booleans value
|
|
188
187
|
* @param DKP Dimensions key props.
|
|
189
188
|
*/
|
|
190
|
-
interface IRocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj
|
|
189
|
+
interface IRocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj = {}, CSS extends TObj = {}, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP> extends ForwardRefExoticComponent<MergeTypes<[OA, EA, DefaultProps, ExtractDimensionProps<D, DKP, UB>]>> {
|
|
191
190
|
config: <NC extends ElementType | unknown = unknown>({ name, component: NC, provider, consumer, DEBUG, inversed, passProps, }: ConfigAttrs<NC, DKP, UB>) => NC extends ElementType ? RocketComponent<MergeTypes<[
|
|
192
191
|
ExtractProps<NC>,
|
|
193
192
|
DefaultProps,
|
|
@@ -219,12 +218,12 @@ interface IRocketComponent<A extends TObj = DefaultProps, OA extends TObj = {},
|
|
|
219
218
|
readonly displayName: string;
|
|
220
219
|
}
|
|
221
220
|
|
|
222
|
-
declare type StyleComponent<C extends ElementType, T extends
|
|
221
|
+
declare type StyleComponent<C extends ElementType, T extends TObj = {}, CSS extends TObj = {}, D extends Dimensions = DefaultDimensions, UB extends boolean = boolean> = (props: Partial<Configuration<C, D>>) => RocketComponent<MergeTypes<[
|
|
223
222
|
Omit<ExtractProps<C>, ExtractDimensionAttrsKeys<D>>,
|
|
224
223
|
DefaultProps
|
|
225
224
|
]>, ExtractProps<C>, DefaultProps, T, CSS, D, UB, {}>;
|
|
226
225
|
|
|
227
|
-
declare type Rocketstyle = <T =
|
|
226
|
+
declare type Rocketstyle = <T extends TObj = {}, CSS extends TObj = {}>() => <D extends Dimensions = DefaultDimensions, UB extends boolean = true>({ dimensions, useBooleans, }?: {
|
|
228
227
|
dimensions?: D;
|
|
229
228
|
useBooleans?: UB;
|
|
230
229
|
}) => <C extends ElementType>({ name, component, }: {
|
package/lib/types/init.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ElementType } from "./types/utils";
|
|
1
|
+
import type { ElementType, TObj } from "./types/utils";
|
|
2
2
|
import type { Dimensions, DefaultDimensions } from "./types/dimensions";
|
|
3
3
|
import type { StyleComponent } from "./types/styleComponent";
|
|
4
|
-
export declare type Rocketstyle = <T =
|
|
4
|
+
export declare type Rocketstyle = <T extends TObj = {}, CSS extends TObj = {}>() => <D extends Dimensions = DefaultDimensions, UB extends boolean = true>({ dimensions, useBooleans, }?: {
|
|
5
5
|
dimensions?: D;
|
|
6
6
|
useBooleans?: UB;
|
|
7
7
|
}) => <C extends ElementType>({ name, component, }: {
|
|
@@ -7,7 +7,7 @@ import type { AttrsCb } from './attrs';
|
|
|
7
7
|
import type { Theme, ThemeCb, ThemeModeKeys } from './theme';
|
|
8
8
|
import type { GenericHoc } from './hoc';
|
|
9
9
|
import type { DefaultProps } from './configuration';
|
|
10
|
-
export declare type RocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj
|
|
10
|
+
export declare type RocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj = {}, CSS extends TObj = {}, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP> = IRocketComponent<A, OA, EA, T, CSS, D, UB, DKP> & {
|
|
11
11
|
[I in keyof D]: <K extends DimensionValue = D[I], P extends DimensionCallbackParam<Theme<T>, Styles<CSS>> = DimensionCallbackParam<Theme<T>, Styles<CSS>>>(param: P) => P extends DimensionCallbackParam<Theme<T>, Styles<CSS>> ? RocketComponent<MergeTypes<[
|
|
12
12
|
OA,
|
|
13
13
|
EA,
|
|
@@ -23,7 +23,7 @@ export declare type RocketComponent<A extends TObj = DefaultProps, OA extends TO
|
|
|
23
23
|
* @param UB Use booleans value
|
|
24
24
|
* @param DKP Dimensions key props.
|
|
25
25
|
*/
|
|
26
|
-
export interface IRocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj
|
|
26
|
+
export interface IRocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj = {}, CSS extends TObj = {}, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP> extends ForwardRefExoticComponent<MergeTypes<[OA, EA, DefaultProps, ExtractDimensionProps<D, DKP, UB>]>> {
|
|
27
27
|
config: <NC extends ElementType | unknown = unknown>({ name, component: NC, provider, consumer, DEBUG, inversed, passProps, }: ConfigAttrs<NC, DKP, UB>) => NC extends ElementType ? RocketComponent<MergeTypes<[
|
|
28
28
|
ExtractProps<NC>,
|
|
29
29
|
DefaultProps,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { MergeTypes, ExtractProps, ElementType } from './utils';
|
|
1
|
+
import type { MergeTypes, ExtractProps, ElementType, TObj } from './utils';
|
|
2
2
|
import type { Dimensions, DefaultDimensions, ExtractDimensionAttrsKeys } from './dimensions';
|
|
3
|
-
import type { OptionStyles } from './styles';
|
|
4
3
|
import type { DefaultProps, Configuration } from './configuration';
|
|
5
4
|
import type { RocketComponent } from './rocketstyle';
|
|
6
|
-
export declare type StyleComponent<C extends ElementType, T extends
|
|
5
|
+
export declare type StyleComponent<C extends ElementType, T extends TObj = {}, CSS extends TObj = {}, D extends Dimensions = DefaultDimensions, UB extends boolean = boolean> = (props: Partial<Configuration<C, D>>) => RocketComponent<MergeTypes<[
|
|
7
6
|
Omit<ExtractProps<C>, ExtractDimensionAttrsKeys<D>>,
|
|
8
7
|
DefaultProps
|
|
9
8
|
]>, ExtractProps<C>, DefaultProps, T, CSS, D, UB, {}>;
|
|
@@ -619,7 +619,7 @@ const DEFAULT_DIMENSIONS = {
|
|
|
619
619
|
},
|
|
620
620
|
};
|
|
621
621
|
|
|
622
|
-
|
|
622
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
623
623
|
const rocketstyle = () => ({ dimensions = DEFAULT_DIMENSIONS, useBooleans = true } = {}) => ({ name, component }) => {
|
|
624
624
|
// --------------------------------------------------------
|
|
625
625
|
// handle ERRORS in development mode
|