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