@vitus-labs/rocketstyle 0.57.0-alpha.0 → 0.57.0-alpha.3
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/index.d.ts +24 -13
- package/lib/types/context/createLocalProvider.d.ts +5 -2
- package/lib/types/hoc/rocketstyleAttrsHoc.d.ts +1 -1
- package/lib/types/hooks/useTheme.d.ts +4 -3
- package/lib/types/isRocketComponent.d.ts +1 -2
- package/lib/types/rocketstyle.d.ts +1 -1
- package/lib/types/types/pseudo.d.ts +7 -9
- package/lib/types/types/rocketComponent.d.ts +1 -1
- package/lib/types/types/rocketstyle.d.ts +11 -2
- package/lib/types/types/utils.d.ts +5 -1
- package/lib/types/utils/attrs.d.ts +5 -1
- package/lib/types/utils/dimensions.d.ts +3 -3
- package/lib/types/utils/statics.d.ts +11 -8
- package/lib/types/utils/theme.d.ts +1 -1
- package/lib/vitus-labs-rocketstyle.js +44 -50
- package/lib/vitus-labs-rocketstyle.js.map +1 -1
- package/lib/vitus-labs-rocketstyle.module.js +44 -50
- package/lib/vitus-labs-rocketstyle.module.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":"constants","children":[{"uid":"
|
|
6427
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.js","children":[{"name":"src","children":[{"name":"constants","children":[{"uid":"b624-1","name":"index.ts"},{"uid":"b624-37","name":"defaultDimensions.ts"}]},{"name":"context","children":[{"uid":"b624-3","name":"localContext.tsx"},{"uid":"b624-13","name":"createLocalProvider.tsx"}]},{"name":"hooks","children":[{"uid":"b624-5","name":"usePseudoState.tsx"},{"uid":"b624-7","name":"useRef.ts"},{"uid":"b624-11","name":"useTheme.tsx"}]},{"uid":"b624-9","name":"context.tsx"},{"name":"cache/LocalThemeManager.ts","uid":"b624-15"},{"name":"utils","children":[{"uid":"b624-17","name":"attrs.ts"},{"uid":"b624-21","name":"statics.ts"},{"uid":"b624-23","name":"collection.ts"},{"uid":"b624-25","name":"dimensions.ts"},{"uid":"b624-27","name":"theme.ts"},{"uid":"b624-29","name":"chaining.ts"},{"uid":"b624-31","name":"compose.ts"},{"uid":"b624-33","name":"styles.ts"}]},{"name":"hoc/rocketstyleAttrsHoc.tsx","uid":"b624-19"},{"uid":"b624-35","name":"rocketstyle.tsx"},{"uid":"b624-39","name":"init.ts"},{"uid":"b624-41","name":"isRocketComponent.tsx"},{"uid":"b624-43","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"b624-1":{"renderedLength":566,"gzipLength":296,"brotliLength":0,"mainUid":"b624-0"},"b624-3":{"renderedLength":300,"gzipLength":182,"brotliLength":0,"mainUid":"b624-2"},"b624-5":{"renderedLength":1875,"gzipLength":446,"brotliLength":0,"mainUid":"b624-4"},"b624-7":{"renderedLength":271,"gzipLength":150,"brotliLength":0,"mainUid":"b624-6"},"b624-9":{"renderedLength":464,"gzipLength":261,"brotliLength":0,"mainUid":"b624-8"},"b624-11":{"renderedLength":346,"gzipLength":213,"brotliLength":0,"mainUid":"b624-10"},"b624-13":{"renderedLength":824,"gzipLength":379,"brotliLength":0,"mainUid":"b624-12"},"b624-15":{"renderedLength":235,"gzipLength":120,"brotliLength":0,"mainUid":"b624-14"},"b624-17":{"renderedLength":2552,"gzipLength":893,"brotliLength":0,"mainUid":"b624-16"},"b624-19":{"renderedLength":1013,"gzipLength":440,"brotliLength":0,"mainUid":"b624-18"},"b624-21":{"renderedLength":459,"gzipLength":270,"brotliLength":0,"mainUid":"b624-20"},"b624-23":{"renderedLength":756,"gzipLength":316,"brotliLength":0,"mainUid":"b624-22"},"b624-25":{"renderedLength":1509,"gzipLength":542,"brotliLength":0,"mainUid":"b624-24"},"b624-27":{"renderedLength":2289,"gzipLength":752,"brotliLength":0,"mainUid":"b624-26"},"b624-29":{"renderedLength":564,"gzipLength":253,"brotliLength":0,"mainUid":"b624-28"},"b624-31":{"renderedLength":135,"gzipLength":129,"brotliLength":0,"mainUid":"b624-30"},"b624-33":{"renderedLength":187,"gzipLength":157,"brotliLength":0,"mainUid":"b624-32"},"b624-35":{"renderedLength":12209,"gzipLength":2736,"brotliLength":0,"mainUid":"b624-34"},"b624-37":{"renderedLength":178,"gzipLength":128,"brotliLength":0,"mainUid":"b624-36"},"b624-39":{"renderedLength":1553,"gzipLength":562,"brotliLength":0,"mainUid":"b624-38"},"b624-41":{"renderedLength":267,"gzipLength":184,"brotliLength":0,"mainUid":"b624-40"},"b624-43":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"b624-42"}},"nodeMetas":{"b624-0":{"id":"/src/constants/index.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b624-1"},"imported":[],"importedBy":[{"uid":"b624-38"},{"uid":"b624-34"},{"uid":"b624-20"},{"uid":"b624-10"}]},"b624-2":{"id":"/src/context/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b624-3"},"imported":[{"uid":"b624-45"}],"importedBy":[{"uid":"b624-34"},{"uid":"b624-12"}]},"b624-4":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b624-5"},"imported":[{"uid":"b624-45"}],"importedBy":[{"uid":"b624-48"}]},"b624-6":{"id":"/src/hooks/useRef.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b624-7"},"imported":[{"uid":"b624-45"}],"importedBy":[{"uid":"b624-48"}]},"b624-8":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b624-9"},"imported":[{"uid":"b624-45"},{"uid":"b624-44"}],"importedBy":[{"uid":"b624-42"},{"uid":"b624-10"}]},"b624-10":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b624-11"},"imported":[{"uid":"b624-45"},{"uid":"b624-8"},{"uid":"b624-0"}],"importedBy":[{"uid":"b624-48"}]},"b624-12":{"id":"/src/context/createLocalProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b624-13"},"imported":[{"uid":"b624-45"},{"uid":"b624-48"},{"uid":"b624-2"}],"importedBy":[{"uid":"b624-34"}]},"b624-14":{"id":"/src/cache/LocalThemeManager.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b624-15"},"imported":[],"importedBy":[{"uid":"b624-47"}]},"b624-16":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b624-17"},"imported":[{"uid":"b624-44"}],"importedBy":[{"uid":"b624-34"},{"uid":"b624-18"}]},"b624-18":{"id":"/src/hoc/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b624-19"},"imported":[{"uid":"b624-45"},{"uid":"b624-44"},{"uid":"b624-16"},{"uid":"b624-48"}],"importedBy":[{"uid":"b624-49"}]},"b624-20":{"id":"/src/utils/statics.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b624-21"},"imported":[{"uid":"b624-44"},{"uid":"b624-0"}],"importedBy":[{"uid":"b624-34"}]},"b624-22":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b624-23"},"imported":[],"importedBy":[{"uid":"b624-26"}]},"b624-24":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b624-25"},"imported":[{"uid":"b624-44"}],"importedBy":[{"uid":"b624-38"},{"uid":"b624-34"},{"uid":"b624-26"}]},"b624-26":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b624-27"},"imported":[{"uid":"b624-44"},{"uid":"b624-22"},{"uid":"b624-24"}],"importedBy":[{"uid":"b624-34"}]},"b624-28":{"id":"/src/utils/chaining.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b624-29"},"imported":[],"importedBy":[{"uid":"b624-34"}]},"b624-30":{"id":"/src/utils/compose.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b624-31"},"imported":[],"importedBy":[{"uid":"b624-34"}]},"b624-32":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b624-33"},"imported":[{"uid":"b624-44"}],"importedBy":[{"uid":"b624-34"}]},"b624-34":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b624-35"},"imported":[{"uid":"b624-45"},{"uid":"b624-46"},{"uid":"b624-44"},{"uid":"b624-0"},{"uid":"b624-2"},{"uid":"b624-12"},{"uid":"b624-47"},{"uid":"b624-48"},{"uid":"b624-49"},{"uid":"b624-20"},{"uid":"b624-26"},{"uid":"b624-28"},{"uid":"b624-30"},{"uid":"b624-32"},{"uid":"b624-24"},{"uid":"b624-16"}],"importedBy":[{"uid":"b624-38"}]},"b624-36":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b624-37"},"imported":[],"importedBy":[{"uid":"b624-38"}]},"b624-38":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b624-39"},"imported":[{"uid":"b624-44"},{"uid":"b624-34"},{"uid":"b624-24"},{"uid":"b624-0"},{"uid":"b624-36"}],"importedBy":[{"uid":"b624-42"}]},"b624-40":{"id":"/src/isRocketComponent.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"b624-41"},"imported":[],"importedBy":[{"uid":"b624-42"}]},"b624-42":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.js":"b624-43"},"imported":[{"uid":"b624-38"},{"uid":"b624-8"},{"uid":"b624-40"}],"importedBy":[],"isEntry":true},"b624-44":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"b624-38"},{"uid":"b624-8"},{"uid":"b624-34"},{"uid":"b624-24"},{"uid":"b624-20"},{"uid":"b624-26"},{"uid":"b624-32"},{"uid":"b624-16"},{"uid":"b624-18"}],"isExternal":true},"b624-45":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"b624-8"},{"uid":"b624-34"},{"uid":"b624-2"},{"uid":"b624-12"},{"uid":"b624-4"},{"uid":"b624-6"},{"uid":"b624-10"},{"uid":"b624-18"}],"isExternal":true},"b624-46":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"b624-34"}],"isExternal":true},"b624-47":{"id":"/src/cache/index.ts","moduleParts":{},"imported":[{"uid":"b624-14"}],"importedBy":[{"uid":"b624-34"}]},"b624-48":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"b624-4"},{"uid":"b624-6"},{"uid":"b624-10"}],"importedBy":[{"uid":"b624-34"},{"uid":"b624-12"},{"uid":"b624-18"}]},"b624-49":{"id":"/src/hoc/index.ts","moduleParts":{},"imported":[{"uid":"b624-18"}],"importedBy":[{"uid":"b624-34"}]}},"env":{"rollup":"2.72.0"},"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":"constants","children":[{"uid":"
|
|
6427
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.module.js","children":[{"name":"src","children":[{"name":"constants","children":[{"uid":"b624-51","name":"index.ts"},{"uid":"b624-87","name":"defaultDimensions.ts"}]},{"name":"context","children":[{"uid":"b624-53","name":"localContext.tsx"},{"uid":"b624-63","name":"createLocalProvider.tsx"}]},{"name":"hooks","children":[{"uid":"b624-55","name":"usePseudoState.tsx"},{"uid":"b624-57","name":"useRef.ts"},{"uid":"b624-61","name":"useTheme.tsx"}]},{"uid":"b624-59","name":"context.tsx"},{"name":"cache/LocalThemeManager.ts","uid":"b624-65"},{"name":"utils","children":[{"uid":"b624-67","name":"attrs.ts"},{"uid":"b624-71","name":"statics.ts"},{"uid":"b624-73","name":"collection.ts"},{"uid":"b624-75","name":"dimensions.ts"},{"uid":"b624-77","name":"theme.ts"},{"uid":"b624-79","name":"chaining.ts"},{"uid":"b624-81","name":"compose.ts"},{"uid":"b624-83","name":"styles.ts"}]},{"name":"hoc/rocketstyleAttrsHoc.tsx","uid":"b624-69"},{"uid":"b624-85","name":"rocketstyle.tsx"},{"uid":"b624-89","name":"init.ts"},{"uid":"b624-91","name":"isRocketComponent.tsx"},{"uid":"b624-93","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"b624-51":{"renderedLength":566,"gzipLength":296,"brotliLength":0,"mainUid":"b624-50"},"b624-53":{"renderedLength":288,"gzipLength":177,"brotliLength":0,"mainUid":"b624-52"},"b624-55":{"renderedLength":1821,"gzipLength":441,"brotliLength":0,"mainUid":"b624-54"},"b624-57":{"renderedLength":253,"gzipLength":146,"brotliLength":0,"mainUid":"b624-56"},"b624-59":{"renderedLength":432,"gzipLength":247,"brotliLength":0,"mainUid":"b624-58"},"b624-61":{"renderedLength":337,"gzipLength":210,"brotliLength":0,"mainUid":"b624-60"},"b624-63":{"renderedLength":772,"gzipLength":360,"brotliLength":0,"mainUid":"b624-62"},"b624-65":{"renderedLength":235,"gzipLength":120,"brotliLength":0,"mainUid":"b624-64"},"b624-67":{"renderedLength":2547,"gzipLength":889,"brotliLength":0,"mainUid":"b624-66"},"b624-69":{"renderedLength":974,"gzipLength":418,"brotliLength":0,"mainUid":"b624-68"},"b624-71":{"renderedLength":454,"gzipLength":266,"brotliLength":0,"mainUid":"b624-70"},"b624-73":{"renderedLength":756,"gzipLength":316,"brotliLength":0,"mainUid":"b624-72"},"b624-75":{"renderedLength":1494,"gzipLength":535,"brotliLength":0,"mainUid":"b624-74"},"b624-77":{"renderedLength":2259,"gzipLength":746,"brotliLength":0,"mainUid":"b624-76"},"b624-79":{"renderedLength":564,"gzipLength":253,"brotliLength":0,"mainUid":"b624-78"},"b624-81":{"renderedLength":135,"gzipLength":129,"brotliLength":0,"mainUid":"b624-80"},"b624-83":{"renderedLength":182,"gzipLength":154,"brotliLength":0,"mainUid":"b624-82"},"b624-85":{"renderedLength":12084,"gzipLength":2697,"brotliLength":0,"mainUid":"b624-84"},"b624-87":{"renderedLength":178,"gzipLength":128,"brotliLength":0,"mainUid":"b624-86"},"b624-89":{"renderedLength":1543,"gzipLength":559,"brotliLength":0,"mainUid":"b624-88"},"b624-91":{"renderedLength":267,"gzipLength":184,"brotliLength":0,"mainUid":"b624-90"},"b624-93":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"b624-92"}},"nodeMetas":{"b624-50":{"id":"/src/constants/index.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-51"},"imported":[],"importedBy":[{"uid":"b624-88"},{"uid":"b624-84"},{"uid":"b624-70"},{"uid":"b624-60"}]},"b624-52":{"id":"/src/context/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-53"},"imported":[{"uid":"b624-95"}],"importedBy":[{"uid":"b624-84"},{"uid":"b624-62"}]},"b624-54":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-55"},"imported":[{"uid":"b624-95"}],"importedBy":[{"uid":"b624-98"}]},"b624-56":{"id":"/src/hooks/useRef.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-57"},"imported":[{"uid":"b624-95"}],"importedBy":[{"uid":"b624-98"}]},"b624-58":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-59"},"imported":[{"uid":"b624-95"},{"uid":"b624-94"}],"importedBy":[{"uid":"b624-92"},{"uid":"b624-60"}]},"b624-60":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-61"},"imported":[{"uid":"b624-95"},{"uid":"b624-58"},{"uid":"b624-50"}],"importedBy":[{"uid":"b624-98"}]},"b624-62":{"id":"/src/context/createLocalProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-63"},"imported":[{"uid":"b624-95"},{"uid":"b624-98"},{"uid":"b624-52"}],"importedBy":[{"uid":"b624-84"}]},"b624-64":{"id":"/src/cache/LocalThemeManager.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-65"},"imported":[],"importedBy":[{"uid":"b624-97"}]},"b624-66":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-67"},"imported":[{"uid":"b624-94"}],"importedBy":[{"uid":"b624-84"},{"uid":"b624-68"}]},"b624-68":{"id":"/src/hoc/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-69"},"imported":[{"uid":"b624-95"},{"uid":"b624-94"},{"uid":"b624-66"},{"uid":"b624-98"}],"importedBy":[{"uid":"b624-99"}]},"b624-70":{"id":"/src/utils/statics.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-71"},"imported":[{"uid":"b624-94"},{"uid":"b624-50"}],"importedBy":[{"uid":"b624-84"}]},"b624-72":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-73"},"imported":[],"importedBy":[{"uid":"b624-76"}]},"b624-74":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-75"},"imported":[{"uid":"b624-94"}],"importedBy":[{"uid":"b624-88"},{"uid":"b624-84"},{"uid":"b624-76"}]},"b624-76":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-77"},"imported":[{"uid":"b624-94"},{"uid":"b624-72"},{"uid":"b624-74"}],"importedBy":[{"uid":"b624-84"}]},"b624-78":{"id":"/src/utils/chaining.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-79"},"imported":[],"importedBy":[{"uid":"b624-84"}]},"b624-80":{"id":"/src/utils/compose.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-81"},"imported":[],"importedBy":[{"uid":"b624-84"}]},"b624-82":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-83"},"imported":[{"uid":"b624-94"}],"importedBy":[{"uid":"b624-84"}]},"b624-84":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-85"},"imported":[{"uid":"b624-95"},{"uid":"b624-96"},{"uid":"b624-94"},{"uid":"b624-50"},{"uid":"b624-52"},{"uid":"b624-62"},{"uid":"b624-97"},{"uid":"b624-98"},{"uid":"b624-99"},{"uid":"b624-70"},{"uid":"b624-76"},{"uid":"b624-78"},{"uid":"b624-80"},{"uid":"b624-82"},{"uid":"b624-74"},{"uid":"b624-66"}],"importedBy":[{"uid":"b624-88"}]},"b624-86":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-87"},"imported":[],"importedBy":[{"uid":"b624-88"}]},"b624-88":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-89"},"imported":[{"uid":"b624-94"},{"uid":"b624-84"},{"uid":"b624-74"},{"uid":"b624-50"},{"uid":"b624-86"}],"importedBy":[{"uid":"b624-92"}]},"b624-90":{"id":"/src/isRocketComponent.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-91"},"imported":[],"importedBy":[{"uid":"b624-92"}]},"b624-92":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"b624-93"},"imported":[{"uid":"b624-88"},{"uid":"b624-58"},{"uid":"b624-90"}],"importedBy":[],"isEntry":true},"b624-94":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"b624-88"},{"uid":"b624-58"},{"uid":"b624-84"},{"uid":"b624-74"},{"uid":"b624-70"},{"uid":"b624-76"},{"uid":"b624-82"},{"uid":"b624-66"},{"uid":"b624-68"}],"isExternal":true},"b624-95":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"b624-58"},{"uid":"b624-84"},{"uid":"b624-52"},{"uid":"b624-62"},{"uid":"b624-54"},{"uid":"b624-56"},{"uid":"b624-60"},{"uid":"b624-68"}],"isExternal":true},"b624-96":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"b624-84"}],"isExternal":true},"b624-97":{"id":"/src/cache/index.ts","moduleParts":{},"imported":[{"uid":"b624-64"}],"importedBy":[{"uid":"b624-84"}]},"b624-98":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"b624-54"},{"uid":"b624-56"},{"uid":"b624-60"}],"importedBy":[{"uid":"b624-84"},{"uid":"b624-62"},{"uid":"b624-68"}]},"b624-99":{"id":"/src/hoc/index.ts","moduleParts":{},"imported":[{"uid":"b624-68"}],"importedBy":[{"uid":"b624-84"}]}},"env":{"rollup":"2.72.0"},"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
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { ComponentType, ForwardRefExoticComponent,
|
|
1
|
+
import { ComponentType, ForwardRefExoticComponent, MouseEventHandler, FocusEventHandler, ForwardedRef, ReactElement, ReactNode, FC } from 'react';
|
|
2
2
|
import { config, render } from '@vitus-labs/core';
|
|
3
3
|
export { context } from '@vitus-labs/core';
|
|
4
4
|
|
|
5
5
|
declare type TObj = Record<string, unknown>;
|
|
6
6
|
declare type TFn = (...args: any) => any;
|
|
7
7
|
declare type CallBackParam = TObj | TFn;
|
|
8
|
-
declare type ElementType<T extends TObj | unknown = any> = ComponentType<T>
|
|
8
|
+
declare type ElementType<T extends TObj | unknown = any> = (ComponentType<T> & {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}) | (ForwardRefExoticComponent<T> & {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
});
|
|
9
13
|
declare type ValueOf<T> = T[keyof T];
|
|
10
14
|
declare type ArrayOfValues<T> = Array<T[keyof T]>;
|
|
11
15
|
declare type ArrayOfKeys<T> = Array<keyof T>;
|
|
@@ -92,15 +96,13 @@ declare type DimensionBooleanAttrs<DKP extends TDKP> = Partial<Record<ValueOf<Di
|
|
|
92
96
|
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>>>;
|
|
93
97
|
declare type ExtractDimensions<D extends Dimensions, DKP extends TDKP> = ExtractNullableDimensionKeys<DimensionObjAttrs<D, DKP>>;
|
|
94
98
|
|
|
95
|
-
declare type MouseAction = (event?: MouseEvent) => void;
|
|
96
|
-
declare type FocusAction = (event?: FocusEvent) => void;
|
|
97
99
|
declare type PseudoActions = {
|
|
98
|
-
onMouseEnter:
|
|
99
|
-
onMouseLeave:
|
|
100
|
-
onMouseDown:
|
|
101
|
-
onMouseUp:
|
|
102
|
-
onFocus:
|
|
103
|
-
onBlur:
|
|
100
|
+
onMouseEnter: MouseEventHandler;
|
|
101
|
+
onMouseLeave: MouseEventHandler;
|
|
102
|
+
onMouseDown: MouseEventHandler;
|
|
103
|
+
onMouseUp: MouseEventHandler;
|
|
104
|
+
onFocus: FocusEventHandler;
|
|
105
|
+
onBlur: FocusEventHandler;
|
|
104
106
|
};
|
|
105
107
|
declare type PseudoState = {
|
|
106
108
|
active: boolean;
|
|
@@ -168,6 +170,15 @@ declare type AttrsCb<A, T> = (props: Partial<A>, theme: T, helpers: {
|
|
|
168
170
|
declare type GenericHoc = (component: ElementType) => ElementType;
|
|
169
171
|
declare type ComposeParam = Record<string, GenericHoc | null | undefined | false>;
|
|
170
172
|
|
|
173
|
+
interface ExoticComponent<P = {}> {
|
|
174
|
+
(props: P & {
|
|
175
|
+
$rocketstyleRef?: ForwardedRef<unknown>;
|
|
176
|
+
}): ReactElement<P & {
|
|
177
|
+
$rocketstyleRef?: ForwardedRef<unknown>;
|
|
178
|
+
'data-rocketstyle': string;
|
|
179
|
+
}> | null;
|
|
180
|
+
readonly $$typeof: symbol;
|
|
181
|
+
}
|
|
171
182
|
declare type RocketStyleComponent<OA extends TObj = {}, EA extends TObj = {}, T extends TObj = {}, CSS extends TObj = {}, S extends TObj = {}, HOC extends TObj = {}, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP> = IRocketStyleComponent<OA, EA, T, CSS, S, HOC, D, UB, DKP> & {
|
|
172
183
|
[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>> ? RocketStyleComponent<OA, EA, T, CSS, S, HOC, D, UB, DimensionProps<K, D, P, DKP>> : RocketStyleComponent<OA, EA, T, CSS, S, HOC, D, UB, DKP>;
|
|
173
184
|
};
|
|
@@ -182,7 +193,7 @@ declare type RocketStyleComponent<OA extends TObj = {}, EA extends TObj = {}, T
|
|
|
182
193
|
* @param DKP Dimensions key props.
|
|
183
194
|
* @param DFP Calculated final component props
|
|
184
195
|
*/
|
|
185
|
-
interface IRocketStyleComponent<OA extends TObj = {}, EA extends TObj = {}, T extends TObj = {}, CSS extends TObj = {}, S extends TObj = {}, HOC extends TObj = {}, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP, DFP = MergeTypes<[OA, EA, DefaultProps, ExtractDimensionProps<D, DKP, UB>]>> extends
|
|
196
|
+
interface IRocketStyleComponent<OA extends TObj = {}, EA extends TObj = {}, T extends TObj = {}, CSS extends TObj = {}, S extends TObj = {}, HOC extends TObj = {}, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP, DFP = MergeTypes<[OA, EA, DefaultProps, ExtractDimensionProps<D, DKP, UB>]>> extends ExoticComponent<DFP> {
|
|
186
197
|
/**
|
|
187
198
|
* A chaining method to define default component theme
|
|
188
199
|
* @param param _object_
|
|
@@ -487,7 +498,7 @@ interface IRocketStyleComponent<OA extends TObj = {}, EA extends TObj = {}, T ex
|
|
|
487
498
|
displayName: string;
|
|
488
499
|
}
|
|
489
500
|
|
|
490
|
-
declare type RocketComponent<C extends ElementType, T extends TObj = {}, CSS extends TObj = {}, D extends Dimensions = DefaultDimensions, UB extends boolean = boolean> = (props: Configuration<C, D>) => RocketStyleComponent<ExtractProps<C>, {}, T, CSS, {}, {}, D, UB, {}>;
|
|
501
|
+
declare type RocketComponent<C extends ElementType = ElementType, T extends TObj = {}, CSS extends TObj = {}, D extends Dimensions = DefaultDimensions, UB extends boolean = boolean> = (props: Configuration<C, D>) => RocketStyleComponent<ExtractProps<C>, {}, T, CSS, {}, {}, D, UB, {}>;
|
|
491
502
|
|
|
492
503
|
declare type Rocketstyle = <D extends Dimensions = DefaultDimensions, UB extends boolean = true>({ dimensions, useBooleans, }?: {
|
|
493
504
|
dimensions?: D;
|
|
@@ -512,7 +523,7 @@ declare type TProvider = {
|
|
|
512
523
|
};
|
|
513
524
|
declare const Provider: FC<TProvider>;
|
|
514
525
|
|
|
515
|
-
declare type IsRocketComponent = <T>(component: T) =>
|
|
526
|
+
declare type IsRocketComponent = <T>(component: T) => boolean;
|
|
516
527
|
declare const isRocketComponent: IsRocketComponent;
|
|
517
528
|
|
|
518
529
|
export { AttrsCb, ComposeParam, ConfigAttrs, ConsumerCb, ConsumerCtxCBValue, ConsumerCtxCb, DefaultProps, DimensionCallbackParam, DimensionProps, DimensionValue, Dimensions, ElementType, ExtractDimensionProps, ExtractDimensions, ExtractProps, GenericHoc, IRocketStyleComponent, IsRocketComponent, MergeTypes, Provider, RocketComponentType, RocketProviderState, RocketStyleComponent, Rocketstyle, StylesCb, StylesDefault, TDKP, TObj, TProvider, ThemeCb, ThemeDefault, ThemeModeKeys, rocketstyle as default, isRocketComponent };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { ComponentType, ForwardRefExoticComponent } from 'react';
|
|
2
|
+
import type { PseudoProps } from "../types/pseudo";
|
|
3
|
+
declare type Props = PseudoProps & Record<string, any>;
|
|
4
|
+
declare type HOC = (WrappedComponent: ComponentType<Props>) => ForwardRefExoticComponent<Props>;
|
|
5
|
+
declare const RocketStyleProviderComponent: HOC;
|
|
3
6
|
export default RocketStyleProviderComponent;
|
|
@@ -3,6 +3,6 @@ import type { OptionFunc } from "../types/configuration";
|
|
|
3
3
|
export declare type RocketStyleHOC = ({ inversed, attrs, }: {
|
|
4
4
|
inversed?: boolean;
|
|
5
5
|
attrs?: Array<OptionFunc>;
|
|
6
|
-
}) => (WrappedComponent: ComponentType) => ForwardRefExoticComponent<any>;
|
|
6
|
+
}) => (WrappedComponent: ComponentType<any>) => ForwardRefExoticComponent<any>;
|
|
7
7
|
declare const rocketStyleHOC: RocketStyleHOC;
|
|
8
8
|
export default rocketStyleHOC;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ThemeModeKeys } from "../types/theme";
|
|
2
|
-
declare type
|
|
3
|
-
inversed?: boolean;
|
|
4
|
-
}) => {
|
|
2
|
+
declare type Context = {
|
|
5
3
|
theme: Record<string, unknown>;
|
|
6
4
|
mode: ThemeModeKeys;
|
|
7
5
|
isDark: boolean;
|
|
8
6
|
isLight: boolean;
|
|
9
7
|
};
|
|
8
|
+
declare type UseThemeAttrs = ({ inversed }: {
|
|
9
|
+
inversed?: boolean;
|
|
10
|
+
}) => Context;
|
|
10
11
|
declare const useThemeAttrs: UseThemeAttrs;
|
|
11
12
|
export default useThemeAttrs;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare type IsRocketComponent = <T>(component: T) => T extends RocketComponentType ? true : false;
|
|
1
|
+
export declare type IsRocketComponent = <T>(component: T) => boolean;
|
|
3
2
|
declare const isRocketComponent: IsRocketComponent;
|
|
4
3
|
export default isRocketComponent;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare type MouseAction = (event?: MouseEvent) => void;
|
|
3
|
-
export declare type FocusAction = (event?: FocusEvent) => void;
|
|
1
|
+
import type { MouseEventHandler, FocusEventHandler } from 'react';
|
|
4
2
|
export declare type PseudoActions = {
|
|
5
|
-
onMouseEnter:
|
|
6
|
-
onMouseLeave:
|
|
7
|
-
onMouseDown:
|
|
8
|
-
onMouseUp:
|
|
9
|
-
onFocus:
|
|
10
|
-
onBlur:
|
|
3
|
+
onMouseEnter: MouseEventHandler;
|
|
4
|
+
onMouseLeave: MouseEventHandler;
|
|
5
|
+
onMouseDown: MouseEventHandler;
|
|
6
|
+
onMouseUp: MouseEventHandler;
|
|
7
|
+
onFocus: FocusEventHandler;
|
|
8
|
+
onBlur: FocusEventHandler;
|
|
11
9
|
};
|
|
12
10
|
export declare type PseudoState = {
|
|
13
11
|
active: boolean;
|
|
@@ -2,4 +2,4 @@ import type { ExtractProps, ElementType, TObj } from './utils';
|
|
|
2
2
|
import type { Dimensions, DefaultDimensions } from './dimensions';
|
|
3
3
|
import type { Configuration } from './configuration';
|
|
4
4
|
import type { RocketStyleComponent } from './rocketstyle';
|
|
5
|
-
export declare type RocketComponent<C extends ElementType, T extends TObj = {}, CSS extends TObj = {}, D extends Dimensions = DefaultDimensions, UB extends boolean = boolean> = (props: Configuration<C, D>) => RocketStyleComponent<ExtractProps<C>, {}, T, CSS, {}, {}, D, UB, {}>;
|
|
5
|
+
export declare type RocketComponent<C extends ElementType = ElementType, T extends TObj = {}, CSS extends TObj = {}, D extends Dimensions = DefaultDimensions, UB extends boolean = boolean> = (props: Configuration<C, D>) => RocketStyleComponent<ExtractProps<C>, {}, T, CSS, {}, {}, D, UB, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReactElement, ForwardedRef } from 'react';
|
|
2
2
|
import type { TObj, ElementType, MergeTypes, ExtractProps } from './utils';
|
|
3
3
|
import type { Dimensions, DimensionValue, DimensionCallbackParam, ExtractDimensionProps, TDKP, DimensionProps, ExtractDimensions, MultiKeys } from './dimensions';
|
|
4
4
|
import type { StylesCb, Styles } from './styles';
|
|
@@ -7,6 +7,15 @@ import type { AttrsCb } from './attrs';
|
|
|
7
7
|
import type { Theme, ThemeCb, ThemeModeKeys } from './theme';
|
|
8
8
|
import type { ComposeParam } from './hoc';
|
|
9
9
|
import type { DefaultProps } from './configuration';
|
|
10
|
+
export interface ExoticComponent<P = {}> {
|
|
11
|
+
(props: P & {
|
|
12
|
+
$rocketstyleRef?: ForwardedRef<unknown>;
|
|
13
|
+
}): ReactElement<P & {
|
|
14
|
+
$rocketstyleRef?: ForwardedRef<unknown>;
|
|
15
|
+
'data-rocketstyle': string;
|
|
16
|
+
}> | null;
|
|
17
|
+
readonly $$typeof: symbol;
|
|
18
|
+
}
|
|
10
19
|
export declare type RocketStyleComponent<OA extends TObj = {}, EA extends TObj = {}, T extends TObj = {}, CSS extends TObj = {}, S extends TObj = {}, HOC extends TObj = {}, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP> = IRocketStyleComponent<OA, EA, T, CSS, S, HOC, D, UB, DKP> & {
|
|
11
20
|
[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>> ? RocketStyleComponent<OA, EA, T, CSS, S, HOC, D, UB, DimensionProps<K, D, P, DKP>> : RocketStyleComponent<OA, EA, T, CSS, S, HOC, D, UB, DKP>;
|
|
12
21
|
};
|
|
@@ -21,7 +30,7 @@ export declare type RocketStyleComponent<OA extends TObj = {}, EA extends TObj =
|
|
|
21
30
|
* @param DKP Dimensions key props.
|
|
22
31
|
* @param DFP Calculated final component props
|
|
23
32
|
*/
|
|
24
|
-
export interface IRocketStyleComponent<OA extends TObj = {}, EA extends TObj = {}, T extends TObj = {}, CSS extends TObj = {}, S extends TObj = {}, HOC extends TObj = {}, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP, DFP = MergeTypes<[OA, EA, DefaultProps, ExtractDimensionProps<D, DKP, UB>]>> extends
|
|
33
|
+
export interface IRocketStyleComponent<OA extends TObj = {}, EA extends TObj = {}, T extends TObj = {}, CSS extends TObj = {}, S extends TObj = {}, HOC extends TObj = {}, D extends Dimensions = Dimensions, UB extends boolean = boolean, DKP extends TDKP = TDKP, DFP = MergeTypes<[OA, EA, DefaultProps, ExtractDimensionProps<D, DKP, UB>]>> extends ExoticComponent<DFP> {
|
|
25
34
|
/**
|
|
26
35
|
* A chaining method to define default component theme
|
|
27
36
|
* @param param _object_
|
|
@@ -3,7 +3,11 @@ export declare type TObj = Record<string, unknown>;
|
|
|
3
3
|
export declare type TFn = (...args: any) => any;
|
|
4
4
|
export declare type CallBackParam = TObj | TFn;
|
|
5
5
|
export declare type DisplayName = string;
|
|
6
|
-
export declare type ElementType<T extends TObj | unknown = any> = ComponentType<T>
|
|
6
|
+
export declare type ElementType<T extends TObj | unknown = any> = (ComponentType<T> & {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}) | (ForwardRefExoticComponent<T> & {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
});
|
|
7
11
|
export declare type ValueOf<T> = T[keyof T];
|
|
8
12
|
export declare type ArrayOfValues<T> = Array<T[keyof T]>;
|
|
9
13
|
export declare type ArrayOfKeys<T> = Array<keyof T>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { MultiKeys } from "../types/dimensions";
|
|
2
|
-
declare type PickStyledAttrs =
|
|
2
|
+
declare type PickStyledAttrs = <T extends Record<string, any>, K extends {
|
|
3
|
+
[I in keyof T]?: true;
|
|
4
|
+
}>(props: T, keywords: K) => {
|
|
5
|
+
[I in keyof K]: T[I];
|
|
6
|
+
};
|
|
3
7
|
export declare const pickStyledAttrs: PickStyledAttrs;
|
|
4
8
|
declare type OptionFunc<A> = (...arg: Array<A>) => Record<string, unknown>;
|
|
5
9
|
declare type CalculateChainOptions = <A>(options?: Array<OptionFunc<A>>) => (args: Array<A>) => ReturnType<OptionFunc<A>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Dimensions, MultiKeys } from "../types/dimensions";
|
|
2
2
|
declare type IsValidKey = (value: any) => boolean;
|
|
3
3
|
export declare const isValidKey: IsValidKey;
|
|
4
|
-
declare type IsMultiKey = (value:
|
|
4
|
+
declare type IsMultiKey = (value: string | Record<string, unknown>) => [boolean, string];
|
|
5
5
|
export declare const isMultiKey: IsMultiKey;
|
|
6
|
-
declare type GetDimensionsMap = ({ themes, useBooleans, }: {
|
|
7
|
-
themes:
|
|
6
|
+
declare type GetDimensionsMap = <T extends Record<string, any>>({ themes, useBooleans, }: {
|
|
7
|
+
themes: T;
|
|
8
8
|
useBooleans?: boolean;
|
|
9
9
|
}) => {
|
|
10
10
|
keysMap: Record<string, any>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
context: any
|
|
3
|
-
dimensionKeys:
|
|
4
|
-
func: any;
|
|
5
|
-
options:
|
|
1
|
+
declare type CreateStaticsChainingEnhancers = <O extends Record<string, any>, DK extends string[]>(props: {
|
|
2
|
+
context: Record<string, any>;
|
|
3
|
+
dimensionKeys: DK;
|
|
4
|
+
func: (param: any, param2: O) => void;
|
|
5
|
+
options: O;
|
|
6
6
|
}) => void;
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export declare const createStaticsChainingEnhancers: CreateStaticsChainingEnhancers;
|
|
8
|
+
declare type CreateStaticsEnhancers = (params: {
|
|
9
|
+
context: Record<string, any>;
|
|
10
|
+
options: Record<string, any>;
|
|
10
11
|
}) => void;
|
|
12
|
+
export declare const createStaticsEnhancers: CreateStaticsEnhancers;
|
|
13
|
+
export {};
|
|
@@ -9,7 +9,7 @@ declare type CalculateChainOptions = (options: Array<OptionFunc> | undefined | n
|
|
|
9
9
|
export declare const calculateChainOptions: CalculateChainOptions;
|
|
10
10
|
export declare type GetTheme = (params: {
|
|
11
11
|
rocketstate: Record<string, string | string[]>;
|
|
12
|
-
themes: Record<string, any
|
|
12
|
+
themes: Record<string, Record<string, any>>;
|
|
13
13
|
baseTheme: Record<string, any>;
|
|
14
14
|
}) => Record<string, unknown>;
|
|
15
15
|
export declare const getTheme: GetTheme;
|