@vitus-labs/rocketstyle 0.25.0-alpha.0 → 0.25.0-alpha.1
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 -34
- package/lib/types/index.d.ts +4 -4
- package/lib/types/types/rocketstyle.d.ts +4 -35
- package/lib/types/types/styles.d.ts +1 -0
- package/lib/types/types/theme.d.ts +1 -0
- 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":"eb25-1","name":"usePseudoState.tsx"},{"uid":"eb25-9","name":"useTheme.tsx"},{"uid":"eb25-15","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"eb25-3","name":"collection.ts"},{"uid":"eb25-5","name":"dimensions.ts"},{"uid":"eb25-7","name":"theme.ts"},{"uid":"eb25-17","name":"attrs.ts"},{"uid":"eb25-25","name":"styles.ts"}]},{"uid":"eb25-11","name":"context.tsx"},{"name":"constants","children":[{"uid":"eb25-13","name":"reservedKeys.ts"},{"uid":"eb25-29","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"eb25-19","name":"rocketstyleAttrsHoc.tsx"},{"uid":"eb25-21","name":"localContext.tsx"},{"uid":"eb25-23","name":"createProvider.tsx"}]},{"uid":"eb25-27","name":"rocketstyle.tsx"},{"uid":"eb25-31","name":"init.ts"},{"uid":"eb25-33","name":"isRocketComponent.ts"},{"uid":"eb25-35","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"eb25-1":{"renderedLength":1775,"gzipLength":407,"brotliLength":0,"mainUid":"eb25-0"},"eb25-3":{"renderedLength":468,"gzipLength":280,"brotliLength":0,"mainUid":"eb25-2"},"eb25-5":{"renderedLength":1474,"gzipLength":545,"brotliLength":0,"mainUid":"eb25-4"},"eb25-7":{"renderedLength":2625,"gzipLength":845,"brotliLength":0,"mainUid":"eb25-6"},"eb25-9":{"renderedLength":542,"gzipLength":295,"brotliLength":0,"mainUid":"eb25-8"},"eb25-11":{"renderedLength":464,"gzipLength":261,"brotliLength":0,"mainUid":"eb25-10"},"eb25-13":{"renderedLength":566,"gzipLength":296,"brotliLength":0,"mainUid":"eb25-12"},"eb25-15":{"renderedLength":331,"gzipLength":206,"brotliLength":0,"mainUid":"eb25-14"},"eb25-17":{"renderedLength":2568,"gzipLength":873,"brotliLength":0,"mainUid":"eb25-16"},"eb25-19":{"renderedLength":1029,"gzipLength":445,"brotliLength":0,"mainUid":"eb25-18"},"eb25-21":{"renderedLength":43,"gzipLength":58,"brotliLength":0,"mainUid":"eb25-20"},"eb25-23":{"renderedLength":832,"gzipLength":384,"brotliLength":0,"mainUid":"eb25-22"},"eb25-25":{"renderedLength":129,"gzipLength":112,"brotliLength":0,"mainUid":"eb25-24"},"eb25-27":{"renderedLength":11491,"gzipLength":2801,"brotliLength":0,"mainUid":"eb25-26"},"eb25-29":{"renderedLength":178,"gzipLength":128,"brotliLength":0,"mainUid":"eb25-28"},"eb25-31":{"renderedLength":1582,"gzipLength":585,"brotliLength":0,"mainUid":"eb25-30"},"eb25-33":{"renderedLength":204,"gzipLength":148,"brotliLength":0,"mainUid":"eb25-32"},"eb25-35":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"eb25-34"}},"nodeMetas":{"eb25-0":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-1"},"imported":[{"uid":"eb25-37"}],"importedBy":[{"uid":"eb25-39"}]},"eb25-2":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-3"},"imported":[],"importedBy":[{"uid":"eb25-26"},{"uid":"eb25-6"}]},"eb25-4":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-5"},"imported":[{"uid":"eb25-36"}],"importedBy":[{"uid":"eb25-30"},{"uid":"eb25-6"},{"uid":"eb25-8"}]},"eb25-6":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-7"},"imported":[{"uid":"eb25-36"},{"uid":"eb25-2"},{"uid":"eb25-4"}],"importedBy":[{"uid":"eb25-26"},{"uid":"eb25-8"}]},"eb25-8":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-9"},"imported":[{"uid":"eb25-36"},{"uid":"eb25-6"},{"uid":"eb25-4"}],"importedBy":[{"uid":"eb25-39"}]},"eb25-10":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-11"},"imported":[{"uid":"eb25-37"},{"uid":"eb25-36"}],"importedBy":[{"uid":"eb25-34"},{"uid":"eb25-14"}]},"eb25-12":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-13"},"imported":[],"importedBy":[{"uid":"eb25-30"},{"uid":"eb25-26"},{"uid":"eb25-14"}]},"eb25-14":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-15"},"imported":[{"uid":"eb25-37"},{"uid":"eb25-10"},{"uid":"eb25-12"}],"importedBy":[{"uid":"eb25-39"}]},"eb25-16":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-17"},"imported":[{"uid":"eb25-36"}],"importedBy":[{"uid":"eb25-26"},{"uid":"eb25-18"}]},"eb25-18":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-19"},"imported":[{"uid":"eb25-37"},{"uid":"eb25-36"},{"uid":"eb25-16"},{"uid":"eb25-39"}],"importedBy":[{"uid":"eb25-40"}]},"eb25-20":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-21"},"imported":[{"uid":"eb25-37"}],"importedBy":[{"uid":"eb25-40"},{"uid":"eb25-22"}]},"eb25-22":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-23"},"imported":[{"uid":"eb25-37"},{"uid":"eb25-39"},{"uid":"eb25-20"}],"importedBy":[{"uid":"eb25-40"}]},"eb25-24":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-25"},"imported":[],"importedBy":[{"uid":"eb25-26"}]},"eb25-26":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-27"},"imported":[{"uid":"eb25-37"},{"uid":"eb25-38"},{"uid":"eb25-36"},{"uid":"eb25-39"},{"uid":"eb25-40"},{"uid":"eb25-6"},{"uid":"eb25-24"},{"uid":"eb25-2"},{"uid":"eb25-16"},{"uid":"eb25-12"}],"importedBy":[{"uid":"eb25-30"}]},"eb25-28":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-29"},"imported":[],"importedBy":[{"uid":"eb25-30"}]},"eb25-30":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-31"},"imported":[{"uid":"eb25-36"},{"uid":"eb25-26"},{"uid":"eb25-4"},{"uid":"eb25-12"},{"uid":"eb25-28"}],"importedBy":[{"uid":"eb25-34"}]},"eb25-32":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-33"},"imported":[],"importedBy":[{"uid":"eb25-34"}]},"eb25-34":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.js":"eb25-35"},"imported":[{"uid":"eb25-30"},{"uid":"eb25-10"},{"uid":"eb25-32"}],"importedBy":[],"isEntry":true},"eb25-36":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"eb25-30"},{"uid":"eb25-10"},{"uid":"eb25-26"},{"uid":"eb25-4"},{"uid":"eb25-6"},{"uid":"eb25-16"},{"uid":"eb25-8"},{"uid":"eb25-18"}],"isExternal":true},"eb25-37":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"eb25-10"},{"uid":"eb25-26"},{"uid":"eb25-0"},{"uid":"eb25-14"},{"uid":"eb25-18"},{"uid":"eb25-22"},{"uid":"eb25-20"}],"isExternal":true},"eb25-38":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"eb25-26"}],"isExternal":true},"eb25-39":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"eb25-0"},{"uid":"eb25-8"},{"uid":"eb25-14"}],"importedBy":[{"uid":"eb25-26"},{"uid":"eb25-18"},{"uid":"eb25-22"}]},"eb25-40":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"eb25-18"},{"uid":"eb25-22"},{"uid":"eb25-20"}],"importedBy":[{"uid":"eb25-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":"eb25-42","name":"usePseudoState.tsx"},{"uid":"eb25-50","name":"useTheme.tsx"},{"uid":"eb25-56","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"eb25-44","name":"collection.ts"},{"uid":"eb25-46","name":"dimensions.ts"},{"uid":"eb25-48","name":"theme.ts"},{"uid":"eb25-58","name":"attrs.ts"},{"uid":"eb25-66","name":"styles.ts"}]},{"uid":"eb25-52","name":"context.tsx"},{"name":"constants","children":[{"uid":"eb25-54","name":"reservedKeys.ts"},{"uid":"eb25-70","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"eb25-60","name":"rocketstyleAttrsHoc.tsx"},{"uid":"eb25-62","name":"localContext.tsx"},{"uid":"eb25-64","name":"createProvider.tsx"}]},{"uid":"eb25-68","name":"rocketstyle.tsx"},{"uid":"eb25-72","name":"init.ts"},{"uid":"eb25-74","name":"isRocketComponent.ts"},{"uid":"eb25-76","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"eb25-42":{"renderedLength":1721,"gzipLength":401,"brotliLength":0,"mainUid":"eb25-41"},"eb25-44":{"renderedLength":468,"gzipLength":280,"brotliLength":0,"mainUid":"eb25-43"},"eb25-46":{"renderedLength":1459,"gzipLength":537,"brotliLength":0,"mainUid":"eb25-45"},"eb25-48":{"renderedLength":2595,"gzipLength":838,"brotliLength":0,"mainUid":"eb25-47"},"eb25-50":{"renderedLength":537,"gzipLength":292,"brotliLength":0,"mainUid":"eb25-49"},"eb25-52":{"renderedLength":430,"gzipLength":245,"brotliLength":0,"mainUid":"eb25-51"},"eb25-54":{"renderedLength":566,"gzipLength":296,"brotliLength":0,"mainUid":"eb25-53"},"eb25-56":{"renderedLength":320,"gzipLength":199,"brotliLength":0,"mainUid":"eb25-55"},"eb25-58":{"renderedLength":2563,"gzipLength":870,"brotliLength":0,"mainUid":"eb25-57"},"eb25-60":{"renderedLength":983,"gzipLength":424,"brotliLength":0,"mainUid":"eb25-59"},"eb25-62":{"renderedLength":37,"gzipLength":51,"brotliLength":0,"mainUid":"eb25-61"},"eb25-64":{"renderedLength":780,"gzipLength":365,"brotliLength":0,"mainUid":"eb25-63"},"eb25-66":{"renderedLength":129,"gzipLength":112,"brotliLength":0,"mainUid":"eb25-65"},"eb25-68":{"renderedLength":11343,"gzipLength":2762,"brotliLength":0,"mainUid":"eb25-67"},"eb25-70":{"renderedLength":178,"gzipLength":128,"brotliLength":0,"mainUid":"eb25-69"},"eb25-72":{"renderedLength":1572,"gzipLength":582,"brotliLength":0,"mainUid":"eb25-71"},"eb25-74":{"renderedLength":204,"gzipLength":148,"brotliLength":0,"mainUid":"eb25-73"},"eb25-76":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"eb25-75"}},"nodeMetas":{"eb25-41":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-42"},"imported":[{"uid":"eb25-78"}],"importedBy":[{"uid":"eb25-80"}]},"eb25-43":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-44"},"imported":[],"importedBy":[{"uid":"eb25-67"},{"uid":"eb25-47"}]},"eb25-45":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-46"},"imported":[{"uid":"eb25-77"}],"importedBy":[{"uid":"eb25-71"},{"uid":"eb25-47"},{"uid":"eb25-49"}]},"eb25-47":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-48"},"imported":[{"uid":"eb25-77"},{"uid":"eb25-43"},{"uid":"eb25-45"}],"importedBy":[{"uid":"eb25-67"},{"uid":"eb25-49"}]},"eb25-49":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-50"},"imported":[{"uid":"eb25-77"},{"uid":"eb25-47"},{"uid":"eb25-45"}],"importedBy":[{"uid":"eb25-80"}]},"eb25-51":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-52"},"imported":[{"uid":"eb25-78"},{"uid":"eb25-77"}],"importedBy":[{"uid":"eb25-75"},{"uid":"eb25-55"}]},"eb25-53":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-54"},"imported":[],"importedBy":[{"uid":"eb25-71"},{"uid":"eb25-67"},{"uid":"eb25-55"}]},"eb25-55":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-56"},"imported":[{"uid":"eb25-78"},{"uid":"eb25-51"},{"uid":"eb25-53"}],"importedBy":[{"uid":"eb25-80"}]},"eb25-57":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-58"},"imported":[{"uid":"eb25-77"}],"importedBy":[{"uid":"eb25-67"},{"uid":"eb25-59"}]},"eb25-59":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-60"},"imported":[{"uid":"eb25-78"},{"uid":"eb25-77"},{"uid":"eb25-57"},{"uid":"eb25-80"}],"importedBy":[{"uid":"eb25-81"}]},"eb25-61":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-62"},"imported":[{"uid":"eb25-78"}],"importedBy":[{"uid":"eb25-81"},{"uid":"eb25-63"}]},"eb25-63":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-64"},"imported":[{"uid":"eb25-78"},{"uid":"eb25-80"},{"uid":"eb25-61"}],"importedBy":[{"uid":"eb25-81"}]},"eb25-65":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-66"},"imported":[],"importedBy":[{"uid":"eb25-67"}]},"eb25-67":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-68"},"imported":[{"uid":"eb25-78"},{"uid":"eb25-79"},{"uid":"eb25-77"},{"uid":"eb25-80"},{"uid":"eb25-81"},{"uid":"eb25-47"},{"uid":"eb25-65"},{"uid":"eb25-43"},{"uid":"eb25-57"},{"uid":"eb25-53"}],"importedBy":[{"uid":"eb25-71"}]},"eb25-69":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-70"},"imported":[],"importedBy":[{"uid":"eb25-71"}]},"eb25-71":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-72"},"imported":[{"uid":"eb25-77"},{"uid":"eb25-67"},{"uid":"eb25-45"},{"uid":"eb25-53"},{"uid":"eb25-69"}],"importedBy":[{"uid":"eb25-75"}]},"eb25-73":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-74"},"imported":[],"importedBy":[{"uid":"eb25-75"}]},"eb25-75":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"eb25-76"},"imported":[{"uid":"eb25-71"},{"uid":"eb25-51"},{"uid":"eb25-73"}],"importedBy":[],"isEntry":true},"eb25-77":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"eb25-71"},{"uid":"eb25-51"},{"uid":"eb25-67"},{"uid":"eb25-45"},{"uid":"eb25-47"},{"uid":"eb25-57"},{"uid":"eb25-49"},{"uid":"eb25-59"}],"isExternal":true},"eb25-78":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"eb25-51"},{"uid":"eb25-67"},{"uid":"eb25-41"},{"uid":"eb25-55"},{"uid":"eb25-59"},{"uid":"eb25-63"},{"uid":"eb25-61"}],"isExternal":true},"eb25-79":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"eb25-67"}],"isExternal":true},"eb25-80":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"eb25-41"},{"uid":"eb25-49"},{"uid":"eb25-55"}],"importedBy":[{"uid":"eb25-67"},{"uid":"eb25-59"},{"uid":"eb25-63"}]},"eb25-81":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"eb25-59"},{"uid":"eb25-63"},{"uid":"eb25-61"}],"importedBy":[{"uid":"eb25-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":"eb25-83","name":"usePseudoState.tsx"},{"uid":"eb25-91","name":"useTheme.tsx"},{"uid":"eb25-97","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"eb25-85","name":"collection.ts"},{"uid":"eb25-87","name":"dimensions.ts"},{"uid":"eb25-89","name":"theme.ts"},{"uid":"eb25-99","name":"attrs.ts"},{"uid":"eb25-107","name":"styles.ts"}]},{"uid":"eb25-93","name":"context.tsx"},{"name":"constants","children":[{"uid":"eb25-95","name":"reservedKeys.ts"},{"uid":"eb25-111","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"eb25-101","name":"rocketstyleAttrsHoc.tsx"},{"uid":"eb25-103","name":"localContext.tsx"},{"uid":"eb25-105","name":"createProvider.tsx"}]},{"uid":"eb25-109","name":"rocketstyle.tsx"},{"uid":"eb25-113","name":"init.ts"},{"uid":"eb25-115","name":"isRocketComponent.ts"},{"uid":"eb25-117","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"eb25-83":{"renderedLength":1897,"gzipLength":408,"brotliLength":0,"mainUid":"eb25-82"},"eb25-85":{"renderedLength":492,"gzipLength":283,"brotliLength":0,"mainUid":"eb25-84"},"eb25-87":{"renderedLength":1554,"gzipLength":546,"brotliLength":0,"mainUid":"eb25-86"},"eb25-89":{"renderedLength":2763,"gzipLength":850,"brotliLength":0,"mainUid":"eb25-88"},"eb25-91":{"renderedLength":572,"gzipLength":298,"brotliLength":0,"mainUid":"eb25-90"},"eb25-93":{"renderedLength":476,"gzipLength":262,"brotliLength":0,"mainUid":"eb25-92"},"eb25-95":{"renderedLength":618,"gzipLength":299,"brotliLength":0,"mainUid":"eb25-94"},"eb25-97":{"renderedLength":345,"gzipLength":206,"brotliLength":0,"mainUid":"eb25-96"},"eb25-99":{"renderedLength":2698,"gzipLength":876,"brotliLength":0,"mainUid":"eb25-98"},"eb25-101":{"renderedLength":1081,"gzipLength":448,"brotliLength":0,"mainUid":"eb25-100"},"eb25-103":{"renderedLength":45,"gzipLength":60,"brotliLength":0,"mainUid":"eb25-102"},"eb25-105":{"renderedLength":866,"gzipLength":387,"brotliLength":0,"mainUid":"eb25-104"},"eb25-107":{"renderedLength":139,"gzipLength":114,"brotliLength":0,"mainUid":"eb25-106"},"eb25-109":{"renderedLength":11955,"gzipLength":2812,"brotliLength":0,"mainUid":"eb25-108"},"eb25-111":{"renderedLength":196,"gzipLength":130,"brotliLength":0,"mainUid":"eb25-110"},"eb25-113":{"renderedLength":1656,"gzipLength":587,"brotliLength":0,"mainUid":"eb25-112"},"eb25-115":{"renderedLength":220,"gzipLength":151,"brotliLength":0,"mainUid":"eb25-114"},"eb25-117":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"eb25-116"}},"nodeMetas":{"eb25-82":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-83"},"imported":[{"uid":"eb25-119"}],"importedBy":[{"uid":"eb25-121"}]},"eb25-84":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-85"},"imported":[],"importedBy":[{"uid":"eb25-108"},{"uid":"eb25-88"}]},"eb25-86":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-87"},"imported":[{"uid":"eb25-118"}],"importedBy":[{"uid":"eb25-112"},{"uid":"eb25-88"},{"uid":"eb25-90"}]},"eb25-88":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-89"},"imported":[{"uid":"eb25-118"},{"uid":"eb25-84"},{"uid":"eb25-86"}],"importedBy":[{"uid":"eb25-108"},{"uid":"eb25-90"}]},"eb25-90":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-91"},"imported":[{"uid":"eb25-118"},{"uid":"eb25-88"},{"uid":"eb25-86"}],"importedBy":[{"uid":"eb25-121"}]},"eb25-92":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-93"},"imported":[{"uid":"eb25-119"},{"uid":"eb25-118"}],"importedBy":[{"uid":"eb25-116"},{"uid":"eb25-96"}]},"eb25-94":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-95"},"imported":[],"importedBy":[{"uid":"eb25-112"},{"uid":"eb25-108"},{"uid":"eb25-96"}]},"eb25-96":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-97"},"imported":[{"uid":"eb25-119"},{"uid":"eb25-92"},{"uid":"eb25-94"}],"importedBy":[{"uid":"eb25-121"}]},"eb25-98":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-99"},"imported":[{"uid":"eb25-118"}],"importedBy":[{"uid":"eb25-108"},{"uid":"eb25-100"}]},"eb25-100":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-101"},"imported":[{"uid":"eb25-119"},{"uid":"eb25-118"},{"uid":"eb25-98"},{"uid":"eb25-121"}],"importedBy":[{"uid":"eb25-122"}]},"eb25-102":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-103"},"imported":[{"uid":"eb25-119"}],"importedBy":[{"uid":"eb25-122"},{"uid":"eb25-104"}]},"eb25-104":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-105"},"imported":[{"uid":"eb25-119"},{"uid":"eb25-121"},{"uid":"eb25-102"}],"importedBy":[{"uid":"eb25-122"}]},"eb25-106":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-107"},"imported":[],"importedBy":[{"uid":"eb25-108"}]},"eb25-108":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-109"},"imported":[{"uid":"eb25-119"},{"uid":"eb25-120"},{"uid":"eb25-118"},{"uid":"eb25-121"},{"uid":"eb25-122"},{"uid":"eb25-88"},{"uid":"eb25-106"},{"uid":"eb25-84"},{"uid":"eb25-98"},{"uid":"eb25-94"}],"importedBy":[{"uid":"eb25-112"}]},"eb25-110":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-111"},"imported":[],"importedBy":[{"uid":"eb25-112"}]},"eb25-112":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-113"},"imported":[{"uid":"eb25-118"},{"uid":"eb25-108"},{"uid":"eb25-86"},{"uid":"eb25-94"},{"uid":"eb25-110"}],"importedBy":[{"uid":"eb25-116"}]},"eb25-114":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-115"},"imported":[],"importedBy":[{"uid":"eb25-116"}]},"eb25-116":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"eb25-117"},"imported":[{"uid":"eb25-112"},{"uid":"eb25-92"},{"uid":"eb25-114"}],"importedBy":[],"isEntry":true},"eb25-118":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"eb25-112"},{"uid":"eb25-92"},{"uid":"eb25-108"},{"uid":"eb25-86"},{"uid":"eb25-88"},{"uid":"eb25-98"},{"uid":"eb25-90"},{"uid":"eb25-100"}],"isExternal":true},"eb25-119":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"eb25-92"},{"uid":"eb25-108"},{"uid":"eb25-82"},{"uid":"eb25-96"},{"uid":"eb25-100"},{"uid":"eb25-104"},{"uid":"eb25-102"}],"isExternal":true},"eb25-120":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"eb25-108"}],"isExternal":true},"eb25-121":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"eb25-82"},{"uid":"eb25-90"},{"uid":"eb25-96"}],"importedBy":[{"uid":"eb25-108"},{"uid":"eb25-100"},{"uid":"eb25-104"}]},"eb25-122":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"eb25-100"},{"uid":"eb25-104"},{"uid":"eb25-102"}],"importedBy":[{"uid":"eb25-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":"eb25-124","name":"usePseudoState.tsx"},{"uid":"eb25-132","name":"useTheme.tsx"},{"uid":"eb25-138","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"eb25-126","name":"collection.ts"},{"uid":"eb25-128","name":"dimensions.ts"},{"uid":"eb25-130","name":"theme.ts"},{"uid":"eb25-140","name":"attrs.ts"},{"uid":"eb25-148","name":"styles.ts"}]},{"uid":"eb25-134","name":"context.tsx"},{"name":"constants","children":[{"uid":"eb25-136","name":"reservedKeys.ts"},{"uid":"eb25-152","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"eb25-142","name":"rocketstyleAttrsHoc.tsx"},{"uid":"eb25-144","name":"localContext.tsx"},{"uid":"eb25-146","name":"createProvider.tsx"}]},{"uid":"eb25-150","name":"rocketstyle.tsx"},{"uid":"eb25-154","name":"init.ts"},{"uid":"eb25-156","name":"isRocketComponent.ts"},{"uid":"eb25-158","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"eb25-124":{"renderedLength":1897,"gzipLength":408,"brotliLength":0,"mainUid":"eb25-123"},"eb25-126":{"renderedLength":492,"gzipLength":283,"brotliLength":0,"mainUid":"eb25-125"},"eb25-128":{"renderedLength":1554,"gzipLength":546,"brotliLength":0,"mainUid":"eb25-127"},"eb25-130":{"renderedLength":2763,"gzipLength":850,"brotliLength":0,"mainUid":"eb25-129"},"eb25-132":{"renderedLength":572,"gzipLength":298,"brotliLength":0,"mainUid":"eb25-131"},"eb25-134":{"renderedLength":476,"gzipLength":262,"brotliLength":0,"mainUid":"eb25-133"},"eb25-136":{"renderedLength":592,"gzipLength":288,"brotliLength":0,"mainUid":"eb25-135"},"eb25-138":{"renderedLength":345,"gzipLength":206,"brotliLength":0,"mainUid":"eb25-137"},"eb25-140":{"renderedLength":2698,"gzipLength":876,"brotliLength":0,"mainUid":"eb25-139"},"eb25-142":{"renderedLength":1081,"gzipLength":448,"brotliLength":0,"mainUid":"eb25-141"},"eb25-144":{"renderedLength":45,"gzipLength":60,"brotliLength":0,"mainUid":"eb25-143"},"eb25-146":{"renderedLength":866,"gzipLength":387,"brotliLength":0,"mainUid":"eb25-145"},"eb25-148":{"renderedLength":139,"gzipLength":114,"brotliLength":0,"mainUid":"eb25-147"},"eb25-150":{"renderedLength":11774,"gzipLength":2737,"brotliLength":0,"mainUid":"eb25-149"},"eb25-152":{"renderedLength":196,"gzipLength":130,"brotliLength":0,"mainUid":"eb25-151"},"eb25-154":{"renderedLength":484,"gzipLength":251,"brotliLength":0,"mainUid":"eb25-153"},"eb25-156":{"renderedLength":220,"gzipLength":151,"brotliLength":0,"mainUid":"eb25-155"},"eb25-158":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"eb25-157"}},"nodeMetas":{"eb25-123":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-124"},"imported":[{"uid":"eb25-160"}],"importedBy":[{"uid":"eb25-162"}]},"eb25-125":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-126"},"imported":[],"importedBy":[{"uid":"eb25-149"},{"uid":"eb25-129"}]},"eb25-127":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-128"},"imported":[{"uid":"eb25-159"}],"importedBy":[{"uid":"eb25-153"},{"uid":"eb25-129"},{"uid":"eb25-131"}]},"eb25-129":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-130"},"imported":[{"uid":"eb25-159"},{"uid":"eb25-125"},{"uid":"eb25-127"}],"importedBy":[{"uid":"eb25-149"},{"uid":"eb25-131"}]},"eb25-131":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-132"},"imported":[{"uid":"eb25-159"},{"uid":"eb25-129"},{"uid":"eb25-127"}],"importedBy":[{"uid":"eb25-162"}]},"eb25-133":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-134"},"imported":[{"uid":"eb25-160"},{"uid":"eb25-159"}],"importedBy":[{"uid":"eb25-157"},{"uid":"eb25-137"}]},"eb25-135":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-136"},"imported":[],"importedBy":[{"uid":"eb25-153"},{"uid":"eb25-149"},{"uid":"eb25-137"}]},"eb25-137":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-138"},"imported":[{"uid":"eb25-160"},{"uid":"eb25-133"},{"uid":"eb25-135"}],"importedBy":[{"uid":"eb25-162"}]},"eb25-139":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-140"},"imported":[{"uid":"eb25-159"}],"importedBy":[{"uid":"eb25-149"},{"uid":"eb25-141"}]},"eb25-141":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-142"},"imported":[{"uid":"eb25-160"},{"uid":"eb25-159"},{"uid":"eb25-139"},{"uid":"eb25-162"}],"importedBy":[{"uid":"eb25-163"}]},"eb25-143":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-144"},"imported":[{"uid":"eb25-160"}],"importedBy":[{"uid":"eb25-163"},{"uid":"eb25-145"}]},"eb25-145":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-146"},"imported":[{"uid":"eb25-160"},{"uid":"eb25-162"},{"uid":"eb25-143"}],"importedBy":[{"uid":"eb25-163"}]},"eb25-147":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-148"},"imported":[],"importedBy":[{"uid":"eb25-149"}]},"eb25-149":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-150"},"imported":[{"uid":"eb25-160"},{"uid":"eb25-161"},{"uid":"eb25-159"},{"uid":"eb25-162"},{"uid":"eb25-163"},{"uid":"eb25-129"},{"uid":"eb25-147"},{"uid":"eb25-125"},{"uid":"eb25-139"},{"uid":"eb25-135"}],"importedBy":[{"uid":"eb25-153"}]},"eb25-151":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-152"},"imported":[],"importedBy":[{"uid":"eb25-153"}]},"eb25-153":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-154"},"imported":[{"uid":"eb25-159"},{"uid":"eb25-149"},{"uid":"eb25-127"},{"uid":"eb25-135"},{"uid":"eb25-151"}],"importedBy":[{"uid":"eb25-157"}]},"eb25-155":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-156"},"imported":[],"importedBy":[{"uid":"eb25-157"}]},"eb25-157":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.umd.min.js":"eb25-158"},"imported":[{"uid":"eb25-153"},{"uid":"eb25-133"},{"uid":"eb25-155"}],"importedBy":[],"isEntry":true},"eb25-159":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"eb25-153"},{"uid":"eb25-133"},{"uid":"eb25-149"},{"uid":"eb25-127"},{"uid":"eb25-129"},{"uid":"eb25-139"},{"uid":"eb25-131"},{"uid":"eb25-141"}],"isExternal":true},"eb25-160":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"eb25-133"},{"uid":"eb25-149"},{"uid":"eb25-123"},{"uid":"eb25-137"},{"uid":"eb25-141"},{"uid":"eb25-145"},{"uid":"eb25-143"}],"isExternal":true},"eb25-161":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"eb25-149"}],"isExternal":true},"eb25-162":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"eb25-123"},{"uid":"eb25-131"},{"uid":"eb25-137"}],"importedBy":[{"uid":"eb25-149"},{"uid":"eb25-141"},{"uid":"eb25-145"}]},"eb25-163":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"eb25-141"},{"uid":"eb25-145"},{"uid":"eb25-143"}],"importedBy":[{"uid":"eb25-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
|
@@ -43,11 +43,13 @@ declare const THEME_MODES: {
|
|
|
43
43
|
readonly dark: true;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
+
declare type StylesDefault = {};
|
|
46
47
|
declare type Css = typeof config.css;
|
|
47
48
|
declare type OptionStyles = Array<(css: Css) => ReturnType<Css>>;
|
|
48
49
|
declare type StylesCb = (css: Css) => ReturnType<Css>;
|
|
49
50
|
declare type StylesCbArray = Array<StylesCb>;
|
|
50
51
|
|
|
52
|
+
declare type ThemeDefault = {};
|
|
51
53
|
declare type ThemeModeKeys = keyof typeof THEME_MODES;
|
|
52
54
|
declare type ThemeMode = <A, B>(light: A, dark: B) => A | B;
|
|
53
55
|
declare type ThemeCb<CT, T> = (theme: T, mode: ThemeMode, css: Css) => Partial<CT>;
|
|
@@ -165,7 +167,7 @@ declare type AttrsCb<A, T> = (props: Partial<A>, theme: T, helpers: {
|
|
|
165
167
|
|
|
166
168
|
declare type GenericHoc = (component: ElementType) => ElementType;
|
|
167
169
|
|
|
168
|
-
declare type RocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj | unknown =
|
|
170
|
+
declare type RocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj | unknown = ThemeDefault, CT extends TObj | unknown = StylesDefault, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP> = IRocketComponent<A, OA, EA, T, CT, D, UB, DKP> & {
|
|
169
171
|
[I in keyof D]: <K extends DimensionValue = D[I], P extends DimensionCallbackParam<T, CT> = DimensionCallbackParam<T, CT>>(param: P) => P extends DimensionCallbackParam<T, CT> ? RocketComponent<MergeTypes<[
|
|
170
172
|
OA,
|
|
171
173
|
EA,
|
|
@@ -181,7 +183,7 @@ declare type RocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}
|
|
|
181
183
|
* @param UB Use booleans value
|
|
182
184
|
* @param DKP Dimensions key props.
|
|
183
185
|
*/
|
|
184
|
-
interface IRocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj | unknown =
|
|
186
|
+
interface IRocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj | unknown = ThemeDefault, CT extends TObj | unknown = StylesDefault, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP> extends ForwardRefExoticComponent<A> {
|
|
185
187
|
config: <NC extends ElementType | unknown = unknown>({ name, component: NC, provider, consumer, DEBUG, inversed, passProps, }: ConfigAttrs<NC, DKP, UB>) => NC extends ElementType ? RocketComponent<MergeTypes<[
|
|
186
188
|
ExtractProps<NC>,
|
|
187
189
|
DefaultProps,
|
|
@@ -211,37 +213,6 @@ interface IRocketComponent<A extends TObj = DefaultProps, OA extends TObj = {},
|
|
|
211
213
|
readonly $$rocketstyle: DKP;
|
|
212
214
|
readonly IS_ROCKETSTYLE: true;
|
|
213
215
|
readonly displayName: string;
|
|
214
|
-
}
|
|
215
|
-
interface RocketStyleComponent<D extends Dimensions, UB extends boolean = boolean, T extends TObj | unknown = unknown, CT extends TObj | unknown = unknown, OA extends TObj = {}, A extends TObj = OA & DefaultProps, EA extends TObj = {}, DKP extends TDKP = TDKP> extends ForwardRefExoticComponent<A> {
|
|
216
|
-
config: <NC extends ElementType | unknown = unknown>({ name, component: NC, provider, consumer, DEBUG, inversed, passProps, }: ConfigAttrs<NC, DKP, UB>) => NC extends ElementType ? RocketStyleComponent<D, UB, T, CT, ExtractProps<NC>, MergeTypes<[
|
|
217
|
-
ExtractProps<NC>,
|
|
218
|
-
DefaultProps,
|
|
219
|
-
ExtractDimensionProps<D, DKP, UB>
|
|
220
|
-
]>, DKP> : RocketStyleComponent<D, UB, T, CT, OA, A, EA, DKP>;
|
|
221
|
-
/**
|
|
222
|
-
* @param A Generic _props_ params.
|
|
223
|
-
* @param OA Origin component props params.
|
|
224
|
-
* @param T Theme passed via context.
|
|
225
|
-
* @param CT Custom theme accepted by styles.
|
|
226
|
-
* @param D Dimensions to be used for defining component states.
|
|
227
|
-
* @param UB Use booleans value
|
|
228
|
-
* @param DKP Dimensions key props.
|
|
229
|
-
*/
|
|
230
|
-
attrs: <P extends TObj | unknown = unknown>(param: P extends TObj ? Partial<MergeTypes<[A, P]>> | AttrsCb<MergeTypes<[A, P]>, T> : Partial<A> | AttrsCb<A, T>) => P extends TObj ? RocketStyleComponent<D, UB, T, CT, OA, MergeTypes<[OA, EA, P, ExtractDimensionProps<D, DKP, UB>]>, MergeTypes<[EA, P]>, DKP> : RocketStyleComponent<D, UB, T, CT, OA, A, EA, DKP>;
|
|
231
|
-
theme: <P extends TObj | unknown = unknown>(param: P extends TObj ? Partial<MergeTypes<[CT, P]>> | ThemeCb<MergeTypes<[CT, P]>, T> : Partial<CT> | ThemeCb<CT, T>) => P extends TObj ? RocketStyleComponent<D, UB, T, MergeTypes<[CT, P]>, OA, A, EA, DKP> : RocketStyleComponent<D, UB, T, CT, OA, A, EA, DKP>;
|
|
232
|
-
styles: (param: StylesCb) => RocketStyleComponent<D, UB, T, CT, OA, A, EA, DKP>;
|
|
233
|
-
compose: (param: Record<string, GenericHoc | null | undefined | false>) => RocketStyleComponent<D, UB, T, CT, OA, A, EA, DKP>;
|
|
234
|
-
statics: (param: Record<string, any>) => RocketStyleComponent<D, UB, T, CT, OA, A, EA, DKP>;
|
|
235
|
-
is: Record<string, any>;
|
|
236
|
-
getStaticDimensions: (theme: TObj) => {
|
|
237
|
-
dimensions: TObj;
|
|
238
|
-
useBooleans: boolean;
|
|
239
|
-
multiKeys: TObj;
|
|
240
|
-
};
|
|
241
|
-
getDefaultAttrs: (props: TObj, theme: TObj, mode: ThemeModeKeys) => TObj;
|
|
242
|
-
readonly $$rocketstyle: DKP;
|
|
243
|
-
readonly IS_ROCKETSTYLE: true;
|
|
244
|
-
readonly displayName: string;
|
|
245
216
|
}
|
|
246
217
|
|
|
247
218
|
declare type StyleComponent<C extends ElementType, T extends Record<string, unknown> | unknown = unknown, CT extends OptionStyles | unknown = unknown, D extends Dimensions = DefaultDimensions, UB extends boolean = boolean> = (props: Partial<Configuration<C, D>>) => RocketComponent<MergeTypes<[
|
|
@@ -275,4 +246,4 @@ declare const Provider: FC<TProvider>;
|
|
|
275
246
|
declare type IsRocketComponent = (component: any) => boolean;
|
|
276
247
|
declare const isRocketComponent: IsRocketComponent;
|
|
277
248
|
|
|
278
|
-
export { AttrsCb, ConfigAttrs, ConsumerCb, ConsumerCtxCBValue, ConsumerCtxCb, DefaultProps, DimensionCallbackParam, DimensionProps, DimensionValue, Dimensions, ElementType, ExtractDimensionProps, ExtractProps, GenericHoc, IRocketComponent, MergeTypes, Provider, RocketComponent, RocketComponentType, RocketProviderState,
|
|
249
|
+
export { AttrsCb, ConfigAttrs, ConsumerCb, ConsumerCtxCBValue, ConsumerCtxCb, DefaultProps, DimensionCallbackParam, DimensionProps, DimensionValue, Dimensions, ElementType, ExtractDimensionProps, ExtractProps, GenericHoc, IRocketComponent, MergeTypes, Provider, RocketComponent, RocketComponentType, RocketProviderState, Rocketstyle, StylesCb, StylesDefault, TDKP, TObj, TProvider, ThemeCb, ThemeDefault, ThemeModeKeys, rocketstyle as default, isRocketComponent };
|
package/lib/types/index.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ import isRocketComponent from "./isRocketComponent";
|
|
|
4
4
|
import type { ConfigAttrs, RocketComponentType, RocketProviderState, ConsumerCtxCBValue, ConsumerCtxCb, ConsumerCb } from "./types/config";
|
|
5
5
|
import type { TObj, ElementType, MergeTypes, ExtractProps } from "./types/utils";
|
|
6
6
|
import type { Dimensions, DimensionValue, DimensionCallbackParam, ExtractDimensionProps, TDKP, DimensionProps } from "./types/dimensions";
|
|
7
|
-
import type { StylesCb } from "./types/styles";
|
|
7
|
+
import type { StylesCb, StylesDefault } from "./types/styles";
|
|
8
8
|
import type { AttrsCb } from "./types/attrs";
|
|
9
|
-
import type { ThemeCb, ThemeModeKeys } from "./types/theme";
|
|
9
|
+
import type { ThemeCb, ThemeModeKeys, ThemeDefault } from "./types/theme";
|
|
10
10
|
import type { GenericHoc } from "./types/hoc";
|
|
11
11
|
import type { DefaultProps } from "./types/configuration";
|
|
12
|
-
import type {
|
|
13
|
-
export type {
|
|
12
|
+
import type { RocketComponent, IRocketComponent } from "./types/rocketstyle";
|
|
13
|
+
export type { StylesDefault, ThemeDefault, RocketComponent, IRocketComponent, Rocketstyle, TProvider, RocketComponentType, RocketProviderState, ConsumerCtxCBValue, ConsumerCtxCb, ConsumerCb, TObj, ElementType, MergeTypes, ExtractProps, Dimensions, DimensionValue, DimensionCallbackParam, ExtractDimensionProps, TDKP, DimensionProps, StylesCb, ConfigAttrs, AttrsCb, ThemeCb, ThemeModeKeys, GenericHoc, DefaultProps, };
|
|
14
14
|
export { context, Provider, isRocketComponent };
|
|
15
15
|
export default rocketstyle;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ForwardRefExoticComponent } from 'react';
|
|
2
2
|
import { TObj, ElementType, MergeTypes, ExtractProps } from './utils';
|
|
3
3
|
import { Dimensions, DimensionValue, DimensionCallbackParam, ExtractDimensionProps, TDKP, DimensionProps } from './dimensions';
|
|
4
|
-
import { StylesCb } from './styles';
|
|
4
|
+
import { StylesCb, StylesDefault } from './styles';
|
|
5
5
|
import { ConfigAttrs } from './config';
|
|
6
6
|
import { AttrsCb } from './attrs';
|
|
7
|
-
import { ThemeCb, ThemeModeKeys } from './theme';
|
|
7
|
+
import { ThemeCb, ThemeModeKeys, ThemeDefault } from './theme';
|
|
8
8
|
import { GenericHoc } from './hoc';
|
|
9
9
|
import { DefaultProps } from './configuration';
|
|
10
|
-
export declare type RocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj | unknown =
|
|
10
|
+
export declare type RocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj | unknown = ThemeDefault, CT extends TObj | unknown = StylesDefault, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP> = IRocketComponent<A, OA, EA, T, CT, D, UB, DKP> & {
|
|
11
11
|
[I in keyof D]: <K extends DimensionValue = D[I], P extends DimensionCallbackParam<T, CT> = DimensionCallbackParam<T, CT>>(param: P) => P extends DimensionCallbackParam<T, CT> ? 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 | unknown =
|
|
26
|
+
export interface IRocketComponent<A extends TObj = DefaultProps, OA extends TObj = {}, EA extends TObj = {}, T extends TObj | unknown = ThemeDefault, CT extends TObj | unknown = StylesDefault, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP> extends ForwardRefExoticComponent<A> {
|
|
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,
|
|
@@ -54,34 +54,3 @@ export interface IRocketComponent<A extends TObj = DefaultProps, OA extends TObj
|
|
|
54
54
|
readonly IS_ROCKETSTYLE: true;
|
|
55
55
|
readonly displayName: string;
|
|
56
56
|
}
|
|
57
|
-
export interface RocketStyleComponent<D extends Dimensions, UB extends boolean = boolean, T extends TObj | unknown = unknown, CT extends TObj | unknown = unknown, OA extends TObj = {}, A extends TObj = OA & DefaultProps, EA extends TObj = {}, DKP extends TDKP = TDKP> extends ForwardRefExoticComponent<A> {
|
|
58
|
-
config: <NC extends ElementType | unknown = unknown>({ name, component: NC, provider, consumer, DEBUG, inversed, passProps, }: ConfigAttrs<NC, DKP, UB>) => NC extends ElementType ? RocketStyleComponent<D, UB, T, CT, ExtractProps<NC>, MergeTypes<[
|
|
59
|
-
ExtractProps<NC>,
|
|
60
|
-
DefaultProps,
|
|
61
|
-
ExtractDimensionProps<D, DKP, UB>
|
|
62
|
-
]>, DKP> : RocketStyleComponent<D, UB, T, CT, OA, A, EA, DKP>;
|
|
63
|
-
/**
|
|
64
|
-
* @param A Generic _props_ params.
|
|
65
|
-
* @param OA Origin component props params.
|
|
66
|
-
* @param T Theme passed via context.
|
|
67
|
-
* @param CT Custom theme accepted by styles.
|
|
68
|
-
* @param D Dimensions to be used for defining component states.
|
|
69
|
-
* @param UB Use booleans value
|
|
70
|
-
* @param DKP Dimensions key props.
|
|
71
|
-
*/
|
|
72
|
-
attrs: <P extends TObj | unknown = unknown>(param: P extends TObj ? Partial<MergeTypes<[A, P]>> | AttrsCb<MergeTypes<[A, P]>, T> : Partial<A> | AttrsCb<A, T>) => P extends TObj ? RocketStyleComponent<D, UB, T, CT, OA, MergeTypes<[OA, EA, P, ExtractDimensionProps<D, DKP, UB>]>, MergeTypes<[EA, P]>, DKP> : RocketStyleComponent<D, UB, T, CT, OA, A, EA, DKP>;
|
|
73
|
-
theme: <P extends TObj | unknown = unknown>(param: P extends TObj ? Partial<MergeTypes<[CT, P]>> | ThemeCb<MergeTypes<[CT, P]>, T> : Partial<CT> | ThemeCb<CT, T>) => P extends TObj ? RocketStyleComponent<D, UB, T, MergeTypes<[CT, P]>, OA, A, EA, DKP> : RocketStyleComponent<D, UB, T, CT, OA, A, EA, DKP>;
|
|
74
|
-
styles: (param: StylesCb) => RocketStyleComponent<D, UB, T, CT, OA, A, EA, DKP>;
|
|
75
|
-
compose: (param: Record<string, GenericHoc | null | undefined | false>) => RocketStyleComponent<D, UB, T, CT, OA, A, EA, DKP>;
|
|
76
|
-
statics: (param: Record<string, any>) => RocketStyleComponent<D, UB, T, CT, OA, A, EA, DKP>;
|
|
77
|
-
is: Record<string, any>;
|
|
78
|
-
getStaticDimensions: (theme: TObj) => {
|
|
79
|
-
dimensions: TObj;
|
|
80
|
-
useBooleans: boolean;
|
|
81
|
-
multiKeys: TObj;
|
|
82
|
-
};
|
|
83
|
-
getDefaultAttrs: (props: TObj, theme: TObj, mode: ThemeModeKeys) => TObj;
|
|
84
|
-
readonly $$rocketstyle: DKP;
|
|
85
|
-
readonly IS_ROCKETSTYLE: true;
|
|
86
|
-
readonly displayName: string;
|
|
87
|
-
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { THEME_MODES } from "../constants/reservedKeys";
|
|
2
2
|
import type { Css } from './styles';
|
|
3
|
+
export declare type ThemeDefault = {};
|
|
3
4
|
export declare type ThemeModeKeys = keyof typeof THEME_MODES;
|
|
4
5
|
export declare type ThemeMode = <A, B>(light: A, dark: B) => A | B;
|
|
5
6
|
export declare type ThemeCb<CT, T> = (theme: T, mode: ThemeMode, css: Css) => Partial<CT>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitus-labs/rocketstyle",
|
|
3
|
-
"version": "0.25.0-alpha.
|
|
3
|
+
"version": "0.25.0-alpha.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Vit Bokisch <vit@bokisch.cz>",
|
|
6
6
|
"maintainers": [
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
"hoist-non-react-statics": "^3.1.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@vitus-labs/core": "^0.25.0-alpha.
|
|
71
|
-
"@vitus-labs/elements": "^0.25.0-alpha.
|
|
70
|
+
"@vitus-labs/core": "^0.25.0-alpha.1",
|
|
71
|
+
"@vitus-labs/elements": "^0.25.0-alpha.1",
|
|
72
72
|
"@vitus-labs/tools-babel": "^0.26.0",
|
|
73
73
|
"@vitus-labs/tools-rollup": "^0.26.0",
|
|
74
74
|
"@vitus-labs/tools-storybook": "^0.26.0",
|
|
75
75
|
"@vitus-labs/tools-typescript": "^0.26.0",
|
|
76
|
-
"@vitus-labs/unistyle": "^0.25.0-alpha.
|
|
76
|
+
"@vitus-labs/unistyle": "^0.25.0-alpha.1"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "437ef4e1dc845f4cdcde7c18399a263fd8741ce9"
|
|
79
79
|
}
|