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