@semcore/core 2.39.1-prerelease.8 → 16.0.0-prerelease.10
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/CHANGELOG.md +7 -0
- package/README.md +2 -2
- package/lib/LastInteractionType.cjs +57 -0
- package/lib/LastInteractionType.cjs.map +1 -0
- package/lib/LastInteractionType.d.ts +11 -0
- package/lib/LastInteractionType.mjs +51 -0
- package/lib/LastInteractionType.mjs.map +1 -0
- package/lib/core-types/Component.cjs +59 -0
- package/lib/core-types/Component.cjs.map +1 -0
- package/lib/core-types/Component.d.ts +189 -0
- package/lib/core-types/Component.mjs +51 -0
- package/lib/core-types/Component.mjs.map +1 -0
- package/lib/core-types/UnknownProperties.cjs +2 -0
- package/lib/core-types/UnknownProperties.cjs.map +1 -0
- package/lib/core-types/UnknownProperties.d.ts +3 -0
- package/lib/core-types/UnknownProperties.mjs +2 -0
- package/lib/core-types/UnknownProperties.mjs.map +1 -0
- package/lib/core-types/reshadow.d.cjs +2 -0
- package/lib/core-types/reshadow.d.cjs.map +1 -0
- package/lib/core-types/reshadow.d.mjs +2 -0
- package/lib/core-types/reshadow.d.mjs.map +1 -0
- package/lib/core-types/symbols.cjs +25 -0
- package/lib/core-types/symbols.cjs.map +1 -0
- package/lib/core-types/symbols.d.ts +9 -0
- package/lib/core-types/symbols.mjs +20 -0
- package/lib/core-types/symbols.mjs.map +1 -0
- package/lib/coreFactory.cjs +352 -0
- package/lib/coreFactory.cjs.map +1 -0
- package/lib/coreFactory.d.ts +27 -0
- package/lib/coreFactory.mjs +324 -0
- package/lib/coreFactory.mjs.map +1 -0
- package/lib/enhancement/Children.cjs +119 -0
- package/lib/enhancement/Children.cjs.map +1 -0
- package/lib/enhancement/Children.d.ts +5 -0
- package/lib/enhancement/Children.mjs +96 -0
- package/lib/enhancement/Children.mjs.map +1 -0
- package/lib/enhancement/Root.cjs +78 -0
- package/lib/enhancement/Root.cjs.map +1 -0
- package/lib/enhancement/Root.d.ts +6 -0
- package/lib/enhancement/Root.mjs +60 -0
- package/lib/enhancement/Root.mjs.map +1 -0
- package/lib/enhancement/bindHandler.cjs +54 -0
- package/lib/enhancement/bindHandler.cjs.map +1 -0
- package/lib/enhancement/bindHandler.d.ts +5 -0
- package/lib/enhancement/bindHandler.mjs +48 -0
- package/lib/enhancement/bindHandler.mjs.map +1 -0
- package/lib/enhancement/dataName.cjs +20 -0
- package/lib/enhancement/dataName.cjs.map +1 -0
- package/lib/enhancement/dataName.d.ts +4 -0
- package/lib/enhancement/dataName.mjs +13 -0
- package/lib/enhancement/dataName.mjs.map +1 -0
- package/lib/enhancement/enhance.cjs +22 -0
- package/lib/enhancement/enhance.cjs.map +1 -0
- package/lib/enhancement/enhance.d.ts +5 -0
- package/lib/enhancement/enhance.mjs +16 -0
- package/lib/enhancement/enhance.mjs.map +1 -0
- package/lib/enhancement/functionDefaultProps.cjs +36 -0
- package/lib/enhancement/functionDefaultProps.cjs.map +1 -0
- package/lib/enhancement/functionDefaultProps.d.ts +8 -0
- package/lib/enhancement/functionDefaultProps.mjs +29 -0
- package/lib/enhancement/functionDefaultProps.mjs.map +1 -0
- package/lib/enhancement/hoistProps.cjs +97 -0
- package/lib/enhancement/hoistProps.cjs.map +1 -0
- package/lib/enhancement/hoistProps.d.ts +10 -0
- package/lib/enhancement/hoistProps.mjs +78 -0
- package/lib/enhancement/hoistProps.mjs.map +1 -0
- package/lib/enhancement/i18n.cjs +28 -0
- package/lib/enhancement/i18n.cjs.map +1 -0
- package/lib/enhancement/i18n.d.ts +4 -0
- package/lib/enhancement/i18n.mjs +20 -0
- package/lib/enhancement/i18n.mjs.map +1 -0
- package/lib/enhancement/inheritedName.cjs +23 -0
- package/lib/enhancement/inheritedName.cjs.map +1 -0
- package/lib/enhancement/inheritedName.d.ts +8 -0
- package/lib/enhancement/inheritedName.mjs +16 -0
- package/lib/enhancement/inheritedName.mjs.map +1 -0
- package/lib/enhancement/staticChildren.cjs +135 -0
- package/lib/enhancement/staticChildren.cjs.map +1 -0
- package/lib/enhancement/staticChildren.d.ts +13 -0
- package/lib/enhancement/staticChildren.mjs +120 -0
- package/lib/enhancement/staticChildren.mjs.map +1 -0
- package/lib/enhancement/style.cjs +60 -0
- package/lib/enhancement/style.cjs.map +1 -0
- package/lib/enhancement/style.d.ts +9 -0
- package/lib/enhancement/style.mjs +50 -0
- package/lib/enhancement/style.mjs.map +1 -0
- package/lib/enhancement/uncontrolledProps.cjs +131 -0
- package/lib/enhancement/uncontrolledProps.cjs.map +1 -0
- package/lib/enhancement/uncontrolledProps.d.ts +7 -0
- package/lib/enhancement/uncontrolledProps.mjs +107 -0
- package/lib/enhancement/uncontrolledProps.mjs.map +1 -0
- package/lib/esm/LastInteractionType.mjs +51 -0
- package/lib/esm/core-types/Component.mjs +51 -0
- package/lib/esm/core-types/symbols.mjs +20 -0
- package/lib/esm/coreFactory.mjs +324 -0
- package/lib/esm/enhancement/Children.mjs +96 -0
- package/lib/esm/enhancement/Root.mjs +60 -0
- package/lib/esm/enhancement/bindHandler.mjs +48 -0
- package/lib/esm/enhancement/dataName.mjs +13 -0
- package/lib/esm/enhancement/enhance.mjs +16 -0
- package/lib/esm/enhancement/functionDefaultProps.mjs +29 -0
- package/lib/esm/enhancement/hoistProps.mjs +78 -0
- package/lib/esm/enhancement/i18n.mjs +20 -0
- package/lib/esm/enhancement/inheritedName.mjs +16 -0
- package/lib/esm/enhancement/staticChildren.mjs +120 -0
- package/lib/esm/enhancement/style.mjs +50 -0
- package/lib/esm/enhancement/uncontrolledProps.mjs +107 -0
- package/lib/esm/index.mjs +21 -4
- package/lib/esm/register.mjs +31 -0
- package/lib/esm/styled/reshadow-core.mjs +18 -0
- package/lib/esm/styled/sstyled.mjs +121 -0
- package/lib/index.cjs +103 -0
- package/lib/index.cjs.map +1 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.mjs +23 -0
- package/lib/index.mjs.map +1 -0
- package/lib/register.cjs +37 -0
- package/lib/register.cjs.map +1 -0
- package/lib/register.d.ts +8 -0
- package/lib/register.mjs +31 -0
- package/lib/register.mjs.map +1 -0
- package/lib/styled/index.cjs +32 -0
- package/lib/styled/index.cjs.map +1 -0
- package/lib/styled/index.d.ts +11 -0
- package/lib/styled/index.mjs +6 -0
- package/lib/styled/index.mjs.map +1 -0
- package/lib/styled/reshadow-core.cjs +256 -0
- package/lib/styled/reshadow-core.cjs.map +1 -0
- package/lib/styled/reshadow-core.d.ts +37 -0
- package/lib/styled/reshadow-core.mjs +18 -0
- package/lib/styled/reshadow-core.mjs.map +1 -0
- package/lib/styled/sstyled.cjs +149 -0
- package/lib/styled/sstyled.cjs.map +1 -0
- package/lib/styled/sstyled.d.ts +17 -0
- package/lib/styled/sstyled.mjs +121 -0
- package/lib/styled/sstyled.mjs.map +1 -0
- package/lib/theme/dark.json +2506 -0
- package/lib/theme/exclude-tokens.json +10 -0
- package/lib/theme/light.json +2584 -0
- package/lib/theme/processor.cjs +315 -0
- package/lib/theme/processor.cjs.map +1 -0
- package/lib/theme/processor.d.ts +1 -0
- package/lib/theme/processor.mjs +307 -0
- package/lib/theme/processor.mjs.map +1 -0
- package/lib/theme/themes/auto.css +1465 -0
- package/lib/theme/themes/dark.cjs +385 -0
- package/lib/theme/themes/dark.cjs.map +1 -0
- package/lib/theme/themes/dark.css +723 -0
- package/lib/theme/themes/dark.d.ts +378 -0
- package/lib/theme/themes/dark.mjs +378 -0
- package/lib/theme/themes/dark.mjs.map +1 -0
- package/lib/theme/themes/default.cjs +394 -0
- package/lib/theme/themes/default.cjs.map +1 -0
- package/lib/theme/themes/default.css +742 -0
- package/lib/theme/themes/default.d.ts +387 -0
- package/lib/theme/themes/default.mjs +387 -0
- package/lib/theme/themes/default.mjs.map +1 -0
- package/lib/theme/themes/light.cjs +394 -0
- package/lib/theme/themes/light.cjs.map +1 -0
- package/lib/theme/themes/light.css +742 -0
- package/lib/theme/themes/light.d.ts +387 -0
- package/lib/theme/themes/light.mjs +387 -0
- package/lib/theme/themes/light.mjs.map +1 -0
- package/lib/theme/utils.cjs +297 -0
- package/lib/theme/utils.cjs.map +1 -0
- package/lib/theme/utils.d.ts +52 -0
- package/lib/theme/utils.mjs +286 -0
- package/lib/theme/utils.mjs.map +1 -0
- package/lib/utils/CSSinJS.cjs +36 -0
- package/lib/utils/CSSinJS.cjs.map +1 -0
- package/lib/utils/CSSinJS.d.ts +5 -0
- package/lib/utils/CSSinJS.mjs +28 -0
- package/lib/utils/CSSinJS.mjs.map +1 -0
- package/lib/utils/ScreenReaderOnly.cjs +31 -0
- package/lib/utils/ScreenReaderOnly.cjs.map +1 -0
- package/lib/utils/ScreenReaderOnly.d.ts +8 -0
- package/lib/utils/ScreenReaderOnly.mjs +24 -0
- package/lib/utils/ScreenReaderOnly.mjs.map +1 -0
- package/lib/utils/ThemeProvider.cjs +82 -0
- package/lib/utils/ThemeProvider.cjs.map +1 -0
- package/lib/utils/ThemeProvider.d.ts +15 -0
- package/lib/utils/ThemeProvider.mjs +71 -0
- package/lib/utils/ThemeProvider.mjs.map +1 -0
- package/lib/utils/addonText.cjs +18 -0
- package/lib/utils/addonText.cjs.map +1 -0
- package/lib/utils/addonText.d.ts +2 -0
- package/lib/utils/addonText.mjs +11 -0
- package/lib/utils/addonText.mjs.map +1 -0
- package/lib/utils/addonTextChildren.cjs +45 -0
- package/lib/utils/addonTextChildren.cjs.map +1 -0
- package/lib/utils/addonTextChildren.d.ts +3 -0
- package/lib/utils/addonTextChildren.mjs +37 -0
- package/lib/utils/addonTextChildren.mjs.map +1 -0
- package/lib/utils/ariaProps.cjs +22 -0
- package/lib/utils/ariaProps.cjs.map +1 -0
- package/lib/utils/ariaProps.d.ts +12 -0
- package/lib/utils/ariaProps.mjs +16 -0
- package/lib/utils/ariaProps.mjs.map +1 -0
- package/lib/utils/assignProps.cjs +93 -0
- package/lib/utils/assignProps.cjs.map +1 -0
- package/lib/utils/assignProps.d.ts +11 -0
- package/lib/utils/assignProps.mjs +84 -0
- package/lib/utils/assignProps.mjs.map +1 -0
- package/lib/utils/canUseDOM.cjs +10 -0
- package/lib/utils/canUseDOM.cjs.map +1 -0
- package/lib/utils/canUseDOM.d.ts +1 -0
- package/lib/utils/canUseDOM.mjs +4 -0
- package/lib/utils/canUseDOM.mjs.map +1 -0
- package/lib/utils/capitalizeFirstLetter.cjs +10 -0
- package/lib/utils/capitalizeFirstLetter.cjs.map +1 -0
- package/lib/utils/capitalizeFirstLetter.d.ts +1 -0
- package/lib/utils/capitalizeFirstLetter.mjs +4 -0
- package/lib/utils/capitalizeFirstLetter.mjs.map +1 -0
- package/lib/utils/color.cjs +208 -0
- package/lib/utils/color.cjs.map +1 -0
- package/lib/utils/color.d.ts +5 -0
- package/lib/utils/color.mjs +196 -0
- package/lib/utils/color.mjs.map +1 -0
- package/lib/utils/compose.cjs +21 -0
- package/lib/utils/compose.cjs.map +1 -0
- package/lib/utils/compose.d.ts +1 -0
- package/lib/utils/compose.mjs +15 -0
- package/lib/utils/compose.mjs.map +1 -0
- package/lib/utils/createHoc.cjs +55 -0
- package/lib/utils/createHoc.cjs.map +1 -0
- package/lib/utils/createHoc.d.ts +3 -0
- package/lib/utils/createHoc.mjs +46 -0
- package/lib/utils/createHoc.mjs.map +1 -0
- package/lib/utils/createUUID.cjs +15 -0
- package/lib/utils/createUUID.cjs.map +1 -0
- package/lib/utils/createUUID.d.ts +1 -0
- package/lib/utils/createUUID.mjs +9 -0
- package/lib/utils/createUUID.mjs.map +1 -0
- package/lib/utils/cssToIntDefault.cjs +22 -0
- package/lib/utils/cssToIntDefault.cjs.map +1 -0
- package/lib/utils/cssToIntDefault.d.ts +8 -0
- package/lib/utils/cssToIntDefault.mjs +16 -0
- package/lib/utils/cssToIntDefault.mjs.map +1 -0
- package/lib/utils/enhances/WithAutoFocus.cjs +75 -0
- package/lib/utils/enhances/WithAutoFocus.cjs.map +1 -0
- package/lib/utils/enhances/WithAutoFocus.d.ts +14 -0
- package/lib/utils/enhances/WithAutoFocus.mjs +67 -0
- package/lib/utils/enhances/WithAutoFocus.mjs.map +1 -0
- package/lib/utils/enhances/WithCSS.cjs +93 -0
- package/lib/utils/enhances/WithCSS.cjs.map +1 -0
- package/lib/utils/enhances/WithCSS.d.ts +41 -0
- package/lib/utils/enhances/WithCSS.mjs +79 -0
- package/lib/utils/enhances/WithCSS.mjs.map +1 -0
- package/lib/utils/enhances/WithI18n.cjs +95 -0
- package/lib/utils/enhances/WithI18n.cjs.map +1 -0
- package/lib/utils/enhances/WithI18n.d.ts +43 -0
- package/lib/utils/enhances/WithI18n.mjs +83 -0
- package/lib/utils/enhances/WithI18n.mjs.map +1 -0
- package/lib/utils/enhances/WithKeyboardFocus.cjs +93 -0
- package/lib/utils/enhances/WithKeyboardFocus.cjs.map +1 -0
- package/lib/utils/enhances/WithKeyboardFocus.d.ts +45 -0
- package/lib/utils/enhances/WithKeyboardFocus.mjs +84 -0
- package/lib/utils/enhances/WithKeyboardFocus.mjs.map +1 -0
- package/lib/utils/enhances/WithRef.cjs +26 -0
- package/lib/utils/enhances/WithRef.cjs.map +1 -0
- package/lib/utils/enhances/WithRef.d.ts +3 -0
- package/lib/utils/enhances/WithRef.mjs +18 -0
- package/lib/utils/enhances/WithRef.mjs.map +1 -0
- package/lib/utils/enhances/a11yEnhance.cjs +74 -0
- package/lib/utils/enhances/a11yEnhance.cjs.map +1 -0
- package/lib/utils/enhances/a11yEnhance.d.ts +10 -0
- package/lib/utils/enhances/a11yEnhance.mjs +66 -0
- package/lib/utils/enhances/a11yEnhance.mjs.map +1 -0
- package/lib/utils/enhances/animatedSizeEnhance.cjs +98 -0
- package/lib/utils/enhances/animatedSizeEnhance.cjs.map +1 -0
- package/lib/utils/enhances/animatedSizeEnhance.d.ts +12 -0
- package/lib/utils/enhances/animatedSizeEnhance.mjs +90 -0
- package/lib/utils/enhances/animatedSizeEnhance.mjs.map +1 -0
- package/lib/utils/enhances/autoFocusEnhance.cjs +46 -0
- package/lib/utils/enhances/autoFocusEnhance.cjs.map +1 -0
- package/lib/utils/enhances/autoFocusEnhance.d.ts +10 -0
- package/lib/utils/enhances/autoFocusEnhance.mjs +38 -0
- package/lib/utils/enhances/autoFocusEnhance.mjs.map +1 -0
- package/lib/utils/enhances/contextEnhance.cjs +22 -0
- package/lib/utils/enhances/contextEnhance.cjs.map +1 -0
- package/lib/utils/enhances/contextEnhance.d.ts +3 -0
- package/lib/utils/enhances/contextEnhance.mjs +14 -0
- package/lib/utils/enhances/contextEnhance.mjs.map +1 -0
- package/lib/utils/enhances/i18nEnhance.cjs +101 -0
- package/lib/utils/enhances/i18nEnhance.cjs.map +1 -0
- package/lib/utils/enhances/i18nEnhance.d.ts +25 -0
- package/lib/utils/enhances/i18nEnhance.mjs +92 -0
- package/lib/utils/enhances/i18nEnhance.mjs.map +1 -0
- package/lib/utils/enhances/keyboardFocusEnhance.cjs +63 -0
- package/lib/utils/enhances/keyboardFocusEnhance.cjs.map +1 -0
- package/lib/utils/enhances/keyboardFocusEnhance.d.ts +27 -0
- package/lib/utils/enhances/keyboardFocusEnhance.mjs +57 -0
- package/lib/utils/enhances/keyboardFocusEnhance.mjs.map +1 -0
- package/lib/utils/enhances/resolveColorEnhance.cjs +25 -0
- package/lib/utils/enhances/resolveColorEnhance.cjs.map +1 -0
- package/lib/utils/enhances/resolveColorEnhance.d.ts +2 -0
- package/lib/utils/enhances/resolveColorEnhance.mjs +17 -0
- package/lib/utils/enhances/resolveColorEnhance.mjs.map +1 -0
- package/lib/utils/eventEmitter.cjs +41 -0
- package/lib/utils/eventEmitter.cjs.map +1 -0
- package/lib/utils/eventEmitter.d.ts +9 -0
- package/lib/utils/eventEmitter.mjs +34 -0
- package/lib/utils/eventEmitter.mjs.map +1 -0
- package/lib/utils/findComponent.cjs +106 -0
- package/lib/utils/findComponent.cjs.map +1 -0
- package/lib/utils/findComponent.d.ts +12 -0
- package/lib/utils/findComponent.mjs +95 -0
- package/lib/utils/findComponent.mjs.map +1 -0
- package/lib/utils/fire.cjs +23 -0
- package/lib/utils/fire.cjs.map +1 -0
- package/lib/utils/fire.d.ts +2 -0
- package/lib/utils/fire.mjs +15 -0
- package/lib/utils/fire.mjs.map +1 -0
- package/lib/utils/focus-lock/focusBorders.cjs +72 -0
- package/lib/utils/focus-lock/focusBorders.cjs.map +1 -0
- package/lib/utils/focus-lock/focusBorders.d.ts +4 -0
- package/lib/utils/focus-lock/focusBorders.mjs +62 -0
- package/lib/utils/focus-lock/focusBorders.mjs.map +1 -0
- package/lib/utils/focus-lock/getFocusableIn.cjs +26 -0
- package/lib/utils/focus-lock/getFocusableIn.cjs.map +1 -0
- package/lib/utils/focus-lock/getFocusableIn.d.ts +1 -0
- package/lib/utils/focus-lock/getFocusableIn.mjs +19 -0
- package/lib/utils/focus-lock/getFocusableIn.mjs.map +1 -0
- package/lib/utils/focus-lock/isFocusInside.cjs +16 -0
- package/lib/utils/focus-lock/isFocusInside.cjs.map +1 -0
- package/lib/utils/focus-lock/isFocusInside.d.ts +1 -0
- package/lib/utils/focus-lock/isFocusInside.mjs +9 -0
- package/lib/utils/focus-lock/isFocusInside.mjs.map +1 -0
- package/lib/utils/focus-lock/isFocusable.cjs +51 -0
- package/lib/utils/focus-lock/isFocusable.cjs.map +1 -0
- package/lib/utils/focus-lock/isFocusable.d.ts +1 -0
- package/lib/utils/focus-lock/isFocusable.mjs +43 -0
- package/lib/utils/focus-lock/isFocusable.mjs.map +1 -0
- package/lib/utils/focus-lock/setFocus.cjs +63 -0
- package/lib/utils/focus-lock/setFocus.cjs.map +1 -0
- package/lib/utils/focus-lock/setFocus.d.ts +1 -0
- package/lib/utils/focus-lock/setFocus.mjs +55 -0
- package/lib/utils/focus-lock/setFocus.mjs.map +1 -0
- package/lib/utils/getAccessibleName.cjs +56 -0
- package/lib/utils/getAccessibleName.cjs.map +1 -0
- package/lib/utils/getAccessibleName.d.ts +1 -0
- package/lib/utils/getAccessibleName.mjs +49 -0
- package/lib/utils/getAccessibleName.mjs.map +1 -0
- package/lib/utils/getDisplayName.cjs +10 -0
- package/lib/utils/getDisplayName.cjs.map +1 -0
- package/lib/utils/getDisplayName.d.ts +2 -0
- package/lib/utils/getDisplayName.mjs +4 -0
- package/lib/utils/getDisplayName.mjs.map +1 -0
- package/lib/utils/getEventTarget.cjs +53 -0
- package/lib/utils/getEventTarget.cjs.map +1 -0
- package/lib/utils/getEventTarget.d.ts +1 -0
- package/lib/utils/getEventTarget.mjs +45 -0
- package/lib/utils/getEventTarget.mjs.map +1 -0
- package/lib/utils/getOriginChildren.cjs +18 -0
- package/lib/utils/getOriginChildren.cjs.map +1 -0
- package/lib/utils/getOriginChildren.d.ts +2 -0
- package/lib/utils/getOriginChildren.mjs +10 -0
- package/lib/utils/getOriginChildren.mjs.map +1 -0
- package/lib/utils/getRandomInt.cjs +11 -0
- package/lib/utils/getRandomInt.cjs.map +1 -0
- package/lib/utils/getRandomInt.d.ts +1 -0
- package/lib/utils/getRandomInt.mjs +5 -0
- package/lib/utils/getRandomInt.mjs.map +1 -0
- package/lib/utils/getValue.cjs +16 -0
- package/lib/utils/getValue.cjs.map +1 -0
- package/lib/utils/getValue.d.ts +1 -0
- package/lib/utils/getValue.mjs +10 -0
- package/lib/utils/getValue.mjs.map +1 -0
- package/lib/utils/hasLabels.cjs +47 -0
- package/lib/utils/hasLabels.cjs.map +1 -0
- package/lib/utils/hasLabels.d.ts +7 -0
- package/lib/utils/hasLabels.mjs +39 -0
- package/lib/utils/hasLabels.mjs.map +1 -0
- package/lib/utils/hasParent.cjs +14 -0
- package/lib/utils/hasParent.cjs.map +1 -0
- package/lib/utils/hasParent.d.ts +1 -0
- package/lib/utils/hasParent.mjs +7 -0
- package/lib/utils/hasParent.mjs.map +1 -0
- package/lib/utils/if.cjs +16 -0
- package/lib/utils/if.cjs.map +1 -0
- package/lib/utils/if.d.ts +11 -0
- package/lib/utils/if.mjs +9 -0
- package/lib/utils/if.mjs.map +1 -0
- package/lib/utils/ifChildren.cjs +17 -0
- package/lib/utils/ifChildren.cjs.map +1 -0
- package/lib/utils/ifChildren.d.ts +8 -0
- package/lib/utils/ifChildren.mjs +10 -0
- package/lib/utils/ifChildren.mjs.map +1 -0
- package/lib/utils/injectStyle.cjs +49 -0
- package/lib/utils/injectStyle.cjs.map +1 -0
- package/lib/utils/injectStyle.d.ts +2 -0
- package/lib/utils/injectStyle.mjs +41 -0
- package/lib/utils/injectStyle.mjs.map +1 -0
- package/lib/utils/inputProps.cjs +22 -0
- package/lib/utils/inputProps.cjs.map +1 -0
- package/lib/utils/inputProps.d.ts +2 -0
- package/lib/utils/inputProps.mjs +14 -0
- package/lib/utils/inputProps.mjs.map +1 -0
- package/lib/utils/isNode.cjs +28 -0
- package/lib/utils/isNode.cjs.map +1 -0
- package/lib/utils/isNode.d.ts +1 -0
- package/lib/utils/isNode.mjs +21 -0
- package/lib/utils/isNode.mjs.map +1 -0
- package/lib/utils/isPromise.cjs +10 -0
- package/lib/utils/isPromise.cjs.map +1 -0
- package/lib/utils/isPromise.d.ts +1 -0
- package/lib/utils/isPromise.mjs +4 -0
- package/lib/utils/isPromise.mjs.map +1 -0
- package/lib/utils/isRetina.cjs +15 -0
- package/lib/utils/isRetina.cjs.map +1 -0
- package/lib/utils/isRetina.d.ts +1 -0
- package/lib/utils/isRetina.mjs +9 -0
- package/lib/utils/isRetina.mjs.map +1 -0
- package/lib/utils/logger.cjs +40 -0
- package/lib/utils/logger.cjs.map +1 -0
- package/lib/utils/logger.d.ts +9 -0
- package/lib/utils/logger.mjs +32 -0
- package/lib/utils/logger.mjs.map +1 -0
- package/lib/utils/numericChecker.cjs +33 -0
- package/lib/utils/numericChecker.cjs.map +1 -0
- package/lib/utils/numericChecker.d.ts +5 -0
- package/lib/utils/numericChecker.mjs +27 -0
- package/lib/utils/numericChecker.mjs.map +1 -0
- package/lib/utils/ownerDocument.cjs +10 -0
- package/lib/utils/ownerDocument.cjs.map +1 -0
- package/lib/utils/ownerDocument.d.ts +1 -0
- package/lib/utils/ownerDocument.mjs +4 -0
- package/lib/utils/ownerDocument.mjs.map +1 -0
- package/lib/utils/pick.cjs +19 -0
- package/lib/utils/pick.cjs.map +1 -0
- package/lib/utils/pick.d.ts +1 -0
- package/lib/utils/pick.mjs +13 -0
- package/lib/utils/pick.mjs.map +1 -0
- package/lib/utils/propsForElement.cjs +59 -0
- package/lib/utils/propsForElement.cjs.map +1 -0
- package/lib/utils/propsForElement.d.ts +3 -0
- package/lib/utils/propsForElement.mjs +50 -0
- package/lib/utils/propsForElement.mjs.map +1 -0
- package/lib/utils/rafTrottle.cjs +33 -0
- package/lib/utils/rafTrottle.cjs.map +1 -0
- package/lib/utils/rafTrottle.d.ts +2 -0
- package/lib/utils/rafTrottle.mjs +26 -0
- package/lib/utils/rafTrottle.mjs.map +1 -0
- package/lib/utils/reactToText.cjs +33 -0
- package/lib/utils/reactToText.cjs.map +1 -0
- package/lib/utils/reactToText.d.ts +3 -0
- package/lib/utils/reactToText.mjs +26 -0
- package/lib/utils/reactToText.mjs.map +1 -0
- package/lib/utils/ref.cjs +95 -0
- package/lib/utils/ref.cjs.map +1 -0
- package/lib/utils/ref.d.ts +8 -0
- package/lib/utils/ref.mjs +83 -0
- package/lib/utils/ref.mjs.map +1 -0
- package/lib/utils/setRef.cjs +10 -0
- package/lib/utils/setRef.cjs.map +1 -0
- package/lib/utils/setRef.d.ts +2 -0
- package/lib/utils/setRef.mjs +3 -0
- package/lib/utils/setRef.mjs.map +1 -0
- package/lib/utils/syncScroll.cjs +61 -0
- package/lib/utils/syncScroll.cjs.map +1 -0
- package/lib/utils/syncScroll.d.ts +1 -0
- package/lib/utils/syncScroll.mjs +54 -0
- package/lib/utils/syncScroll.mjs.map +1 -0
- package/lib/utils/uncontroll.cjs +47 -0
- package/lib/utils/uncontroll.cjs.map +1 -0
- package/lib/utils/uncontroll.d.ts +4 -0
- package/lib/utils/uncontroll.mjs +38 -0
- package/lib/utils/uncontroll.mjs.map +1 -0
- package/lib/utils/uniqueID.cjs +42 -0
- package/lib/utils/uniqueID.cjs.map +1 -0
- package/lib/utils/uniqueID.d.ts +12 -0
- package/lib/utils/uniqueID.mjs +33 -0
- package/lib/utils/uniqueID.mjs.map +1 -0
- package/lib/utils/use/useColorResolver.cjs +208 -0
- package/lib/utils/use/useColorResolver.cjs.map +1 -0
- package/lib/utils/use/useColorResolver.d.ts +1 -0
- package/lib/utils/use/useColorResolver.mjs +200 -0
- package/lib/utils/use/useColorResolver.mjs.map +1 -0
- package/lib/utils/use/useCss.cjs +20 -0
- package/lib/utils/use/useCss.cjs.map +1 -0
- package/lib/utils/use/useCss.d.ts +4 -0
- package/lib/utils/use/useCss.mjs +12 -0
- package/lib/utils/use/useCss.mjs.map +1 -0
- package/lib/utils/use/useEnhancedEffect.cjs +13 -0
- package/lib/utils/use/useEnhancedEffect.cjs.map +1 -0
- package/lib/utils/use/useEnhancedEffect.d.ts +3 -0
- package/lib/utils/use/useEnhancedEffect.mjs +5 -0
- package/lib/utils/use/useEnhancedEffect.mjs.map +1 -0
- package/lib/utils/use/useEventCallback.cjs +25 -0
- package/lib/utils/use/useEventCallback.cjs.map +1 -0
- package/lib/utils/use/useEventCallback.d.ts +4 -0
- package/lib/utils/use/useEventCallback.mjs +19 -0
- package/lib/utils/use/useEventCallback.mjs.map +1 -0
- package/lib/utils/use/useEventListener.cjs +33 -0
- package/lib/utils/use/useEventListener.cjs.map +1 -0
- package/lib/utils/use/useEventListener.d.ts +2 -0
- package/lib/utils/use/useEventListener.mjs +25 -0
- package/lib/utils/use/useEventListener.mjs.map +1 -0
- package/lib/utils/use/useFocusLock.cjs +289 -0
- package/lib/utils/use/useFocusLock.cjs.map +1 -0
- package/lib/utils/use/useFocusLock.d.ts +10 -0
- package/lib/utils/use/useFocusLock.mjs +266 -0
- package/lib/utils/use/useFocusLock.mjs.map +1 -0
- package/lib/utils/use/usePreventScroll.cjs +78 -0
- package/lib/utils/use/usePreventScroll.cjs.map +1 -0
- package/lib/utils/use/usePreventScroll.d.ts +2 -0
- package/lib/utils/use/usePreventScroll.mjs +70 -0
- package/lib/utils/use/usePreventScroll.mjs.map +1 -0
- package/lib/utils/useCssVariable.cjs +55 -0
- package/lib/utils/useCssVariable.cjs.map +1 -0
- package/lib/utils/useCssVariable.d.ts +8 -0
- package/lib/utils/useCssVariable.mjs +46 -0
- package/lib/utils/useCssVariable.mjs.map +1 -0
- package/lib/utils/zIndexStacking.cjs +48 -0
- package/lib/utils/zIndexStacking.cjs.map +1 -0
- package/lib/utils/zIndexStacking.d.ts +8 -0
- package/lib/utils/zIndexStacking.mjs +38 -0
- package/lib/utils/zIndexStacking.mjs.map +1 -0
- package/package.json +272 -10
- package/tsconfig-utils.json +4 -0
- package/vite.config.ts +25 -0
- package/lib/cjs/index.js +0 -23
- package/lib/cjs/index.js.map +0 -1
- package/lib/es6/index.js +0 -4
- package/lib/es6/index.js.map +0 -1
- package/lib/types/index.d.ts +0 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Context } from "../../utils/enhances/WithI18n";
|
|
5
|
+
var _excluded = ["locale"];
|
|
6
|
+
function i18nAppLocaleEnhance() {
|
|
7
|
+
return {
|
|
8
|
+
wrapperProps: function wrapperProps(props) {
|
|
9
|
+
var locale = props.locale, other = _objectWithoutProperties(props, _excluded);
|
|
10
|
+
var contextLocale = React.useContext(Context);
|
|
11
|
+
if (!locale && !contextLocale) return props;
|
|
12
|
+
return _objectSpread(_objectSpread({}, other), {}, {
|
|
13
|
+
locale: locale !== null && locale !== void 0 ? locale : contextLocale
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
i18nAppLocaleEnhance as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
|
+
import { INHERITED_NAME } from "../core-types/symbols.mjs";
|
|
4
|
+
function Enhancement() {
|
|
5
|
+
return {
|
|
6
|
+
condition: function condition(Component) {
|
|
7
|
+
return Boolean(Component.displayName);
|
|
8
|
+
},
|
|
9
|
+
"static": function _static(WrapperComponent) {
|
|
10
|
+
return _defineProperty({}, INHERITED_NAME, _toConsumableArray(new Set([].concat(_toConsumableArray(WrapperComponent[INHERITED_NAME] || []), [WrapperComponent.displayName]))));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
Enhancement as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import assignProps from "../../utils/assignProps";
|
|
6
|
+
import pick from "../../utils/pick";
|
|
7
|
+
import logger from "../../utils/logger";
|
|
8
|
+
function assign(target, source) {
|
|
9
|
+
return Object.defineProperties(target, Object.keys(source).reduce(function(descriptors, key) {
|
|
10
|
+
descriptors[key] = Object.getOwnPropertyDescriptor(source, key);
|
|
11
|
+
return descriptors;
|
|
12
|
+
}, {}));
|
|
13
|
+
}
|
|
14
|
+
function getterMethodName(name) {
|
|
15
|
+
return "get".concat(name, "Props");
|
|
16
|
+
}
|
|
17
|
+
function getterMethodNameByDisplayName() {
|
|
18
|
+
var displayName = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
19
|
+
var displayNames = displayName.split(".");
|
|
20
|
+
var name = displayNames.slice(-(displayNames.length - 1)).join("");
|
|
21
|
+
return getterMethodName(name);
|
|
22
|
+
}
|
|
23
|
+
function flatGetterMethodNames(childComponents, parentName) {
|
|
24
|
+
return Object.entries(childComponents).reduce(function(acc, _ref) {
|
|
25
|
+
var _ref2 = _slicedToArray(_ref, 2), name = _ref2[0], value = _ref2[1];
|
|
26
|
+
if (Array.isArray(value)) {
|
|
27
|
+
acc.push.apply(acc, _toConsumableArray(flatGetterMethodNames(value[1], name)));
|
|
28
|
+
}
|
|
29
|
+
name = parentName ? "".concat(parentName).concat(name) : name;
|
|
30
|
+
acc.push(getterMethodName(name));
|
|
31
|
+
return acc;
|
|
32
|
+
}, []);
|
|
33
|
+
}
|
|
34
|
+
var STATIC_COMPONENT = Symbol("STATIC_COMPONENT");
|
|
35
|
+
var ROOT_COMPONENT = Symbol("ROOT_COMPONENT");
|
|
36
|
+
var SELF_GETTER_METHOD = Symbol("SELF_GETTER_METHOD");
|
|
37
|
+
function Enhancement(childComponents, createComponent, options) {
|
|
38
|
+
var getterMethodNames = flatGetterMethodNames(childComponents);
|
|
39
|
+
return {
|
|
40
|
+
condition: function condition(Component) {
|
|
41
|
+
return Boolean(Component[STATIC_COMPONENT] || Object.keys(childComponents).length);
|
|
42
|
+
},
|
|
43
|
+
init: function init(props, WrapperComponent) {
|
|
44
|
+
var _this = this;
|
|
45
|
+
var getterMethods = pick(this, getterMethodNames);
|
|
46
|
+
this[SELF_GETTER_METHOD] = function() {
|
|
47
|
+
var selfGetterMethod = getterMethodNameByDisplayName(WrapperComponent.displayName);
|
|
48
|
+
logger.warn(true, "Getter `".concat(selfGetterMethod, "` can't be fired as it is a getter of static component"), props["data-ui-name"] || WrapperComponent.displayName);
|
|
49
|
+
};
|
|
50
|
+
assign(this, getterMethodNames.reduce(function(acc, name) {
|
|
51
|
+
var getterMethod = getterMethods[name];
|
|
52
|
+
if (!getterMethod) return acc;
|
|
53
|
+
acc[name] = function() {
|
|
54
|
+
var childrenProps = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
55
|
+
var getterProps = getterMethod.call(_this, childrenProps, acc[name].index);
|
|
56
|
+
return assignProps(childrenProps, getterProps);
|
|
57
|
+
};
|
|
58
|
+
acc[name].index = -1;
|
|
59
|
+
acc[name].cache = /* @__PURE__ */ new Set();
|
|
60
|
+
return acc;
|
|
61
|
+
}, {}));
|
|
62
|
+
},
|
|
63
|
+
"static": function _static(WrapperComponent, Component) {
|
|
64
|
+
if (Object.keys(childComponents).length && !WrapperComponent.displayName) {
|
|
65
|
+
throw new Error('"displayName" is not defined');
|
|
66
|
+
}
|
|
67
|
+
return Object.entries(childComponents).reduce(function(acc, _ref3) {
|
|
68
|
+
var _ref4 = _slicedToArray(_ref3, 2), name = _ref4[0], value = _ref4[1];
|
|
69
|
+
var childComponents2 = {};
|
|
70
|
+
if (Array.isArray(value)) {
|
|
71
|
+
childComponents2 = value[1];
|
|
72
|
+
value = value[0];
|
|
73
|
+
}
|
|
74
|
+
var prevStaticComponent = value[STATIC_COMPONENT];
|
|
75
|
+
var prevDisplayName = value.displayName;
|
|
76
|
+
value.displayName = "".concat(WrapperComponent.displayName, ".").concat(name);
|
|
77
|
+
value[STATIC_COMPONENT] = true;
|
|
78
|
+
value[ROOT_COMPONENT] = Component[ROOT_COMPONENT] || Component;
|
|
79
|
+
acc[name] = createComponent(value, childComponents2, options);
|
|
80
|
+
value.displayName = prevDisplayName;
|
|
81
|
+
value[STATIC_COMPONENT] = prevStaticComponent;
|
|
82
|
+
return acc;
|
|
83
|
+
}, {});
|
|
84
|
+
},
|
|
85
|
+
context: function context(_context) {
|
|
86
|
+
return _objectSpread(_objectSpread({}, _context), pick(this, getterMethodNames));
|
|
87
|
+
},
|
|
88
|
+
wrapperProps: function wrapperProps(props, WrapperComponent) {
|
|
89
|
+
if (!WrapperComponent[STATIC_COMPONENT]) return props;
|
|
90
|
+
var context = React.useContext(options.context);
|
|
91
|
+
var getterMethod = context[getterMethodNameByDisplayName(WrapperComponent.displayName)];
|
|
92
|
+
if (getterMethod) {
|
|
93
|
+
if (!getterMethod.cache.has(this)) {
|
|
94
|
+
getterMethod.cache.add(this);
|
|
95
|
+
getterMethod.index++;
|
|
96
|
+
if (this) this.index = getterMethod.index;
|
|
97
|
+
}
|
|
98
|
+
if (this) getterMethod.index = this.index;
|
|
99
|
+
return getterMethod(props);
|
|
100
|
+
}
|
|
101
|
+
return props;
|
|
102
|
+
},
|
|
103
|
+
render: function render(_render) {
|
|
104
|
+
var _this2 = this;
|
|
105
|
+
getterMethodNames.forEach(function(name) {
|
|
106
|
+
if (_this2[name] === void 0) return;
|
|
107
|
+
_this2[name].index = -1;
|
|
108
|
+
_this2[name].cache.clear();
|
|
109
|
+
});
|
|
110
|
+
return _render;
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
export {
|
|
115
|
+
ROOT_COMPONENT,
|
|
116
|
+
STATIC_COMPONENT,
|
|
117
|
+
Enhancement as default,
|
|
118
|
+
getterMethodName,
|
|
119
|
+
getterMethodNameByDisplayName
|
|
120
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { STATIC_COMPONENT } from "./staticChildren.mjs";
|
|
6
|
+
import { sstyled } from "../styled/sstyled.mjs";
|
|
7
|
+
var _excluded = ["_styles", "styles"], _excluded2 = ["styles"];
|
|
8
|
+
var STYLES_CONTEXT = Symbol("STYLES_CONTEXT");
|
|
9
|
+
var STYLES_SELF = Symbol("STYLES_SELF");
|
|
10
|
+
function Enhancement(childComponents, Context) {
|
|
11
|
+
return {
|
|
12
|
+
condition: function condition(Component) {
|
|
13
|
+
return Boolean(Component.style || Component[STATIC_COMPONENT]);
|
|
14
|
+
},
|
|
15
|
+
init: function init(props, WrapperComponent) {
|
|
16
|
+
if (props.styles) {
|
|
17
|
+
this[STYLES_SELF] = props.styles;
|
|
18
|
+
}
|
|
19
|
+
if (WrapperComponent.style) {
|
|
20
|
+
this[STYLES_SELF] = sstyled.merge(WrapperComponent.style, props._styles);
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
context: function context(_context) {
|
|
24
|
+
if (!this[STYLES_SELF] || !Object.keys(childComponents).length) {
|
|
25
|
+
return _context;
|
|
26
|
+
}
|
|
27
|
+
return _objectSpread(_objectSpread({}, _context), {}, _defineProperty({}, STYLES_CONTEXT, this[STYLES_SELF]));
|
|
28
|
+
},
|
|
29
|
+
asProps: function asProps(_ref) {
|
|
30
|
+
_ref._styles;
|
|
31
|
+
_ref.styles;
|
|
32
|
+
var props = _objectWithoutProperties(_ref, _excluded);
|
|
33
|
+
return _objectSpread(_objectSpread({}, props), {}, {
|
|
34
|
+
styles: this[STYLES_SELF]
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
wrapperProps: function wrapperProps(_ref2) {
|
|
38
|
+
var styles = _ref2.styles, props = _objectWithoutProperties(_ref2, _excluded2);
|
|
39
|
+
var context = React.useContext(Context);
|
|
40
|
+
return _objectSpread(_objectSpread({}, props), {}, {
|
|
41
|
+
_styles: styles,
|
|
42
|
+
styles: context[STYLES_CONTEXT]
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
STYLES_CONTEXT,
|
|
49
|
+
Enhancement as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import _toArray from "@babel/runtime/helpers/esm/toArray";
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
+
import _toPropertyKey from "@babel/runtime/helpers/esm/toPropertyKey";
|
|
6
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
7
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
+
import { callAllEventHandlers } from "../../utils/assignProps";
|
|
9
|
+
import capitalizeFirstLetter from "../../utils/capitalizeFirstLetter";
|
|
10
|
+
function assign(target, source) {
|
|
11
|
+
return Object.defineProperties(target, Object.keys(source).reduce(function(descriptors, key) {
|
|
12
|
+
descriptors[key] = Object.getOwnPropertyDescriptor(source, key);
|
|
13
|
+
return descriptors;
|
|
14
|
+
}, {}));
|
|
15
|
+
}
|
|
16
|
+
function defaultProp(prop) {
|
|
17
|
+
return "default".concat(capitalizeFirstLetter(prop));
|
|
18
|
+
}
|
|
19
|
+
function handlerProp(prop) {
|
|
20
|
+
if (prop === "value") prop = "";
|
|
21
|
+
if (prop === "checked") prop = "";
|
|
22
|
+
return "on".concat(capitalizeFirstLetter(prop), "Change");
|
|
23
|
+
}
|
|
24
|
+
function isControlled(propValue) {
|
|
25
|
+
return propValue !== void 0;
|
|
26
|
+
}
|
|
27
|
+
function uncontrolledProp(self, propName, propValue, propDefaultValue, propHandler, chainHandler) {
|
|
28
|
+
function getValue() {
|
|
29
|
+
return isControlled(propValue) ? propValue : propName in self.state ? self.state[propName] : propDefaultValue;
|
|
30
|
+
}
|
|
31
|
+
return [getValue(), function(value) {
|
|
32
|
+
var oldValue = getValue();
|
|
33
|
+
if (oldValue === value) return false;
|
|
34
|
+
if (!isControlled(propValue)) self.setState(_defineProperty({}, propName, value));
|
|
35
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
36
|
+
args[_key - 1] = arguments[_key];
|
|
37
|
+
}
|
|
38
|
+
return callAllEventHandlers.apply(void 0, [propHandler].concat(_toConsumableArray(chainHandler))).apply(void 0, [value].concat(args));
|
|
39
|
+
}];
|
|
40
|
+
}
|
|
41
|
+
function uncontrolledUniversal(props, config, uncontrolledProp2) {
|
|
42
|
+
var handlerProps = {};
|
|
43
|
+
var uncontrolledProps = Object.keys(config).reduce(function(result, propName) {
|
|
44
|
+
var _objectSpread2;
|
|
45
|
+
var handlerName = handlerProp(propName);
|
|
46
|
+
var defaultPropName = defaultProp(propName);
|
|
47
|
+
var propDefaultValue = result[defaultPropName], propValue = result[propName], propHandler = result[handlerName], other = _objectWithoutProperties(result, [defaultPropName, propName, handlerName].map(_toPropertyKey));
|
|
48
|
+
if (propDefaultValue === void 0) {
|
|
49
|
+
console.warn(defaultPropName, 'must be installed in "defaultProps"');
|
|
50
|
+
}
|
|
51
|
+
var setter = config[propName];
|
|
52
|
+
var chainHandler = [];
|
|
53
|
+
if (Array.isArray(setter)) {
|
|
54
|
+
var _setter = setter;
|
|
55
|
+
var _setter2 = _toArray(_setter);
|
|
56
|
+
setter = _setter2[0];
|
|
57
|
+
chainHandler = _setter2.slice(1);
|
|
58
|
+
}
|
|
59
|
+
setter = setter || function(v) {
|
|
60
|
+
return v;
|
|
61
|
+
};
|
|
62
|
+
var _uncontrolledProp = uncontrolledProp2(propName, propValue, propDefaultValue, propHandler, chainHandler), _uncontrolledProp2 = _slicedToArray(_uncontrolledProp, 2), value = _uncontrolledProp2[0], handler = _uncontrolledProp2[1];
|
|
63
|
+
handlerProps[propName] = handler;
|
|
64
|
+
return _objectSpread(_objectSpread({}, other), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, propName, value), _defineProperty(_objectSpread2, handlerName, function(eventOrValue) {
|
|
65
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
66
|
+
args[_key2 - 1] = arguments[_key2];
|
|
67
|
+
}
|
|
68
|
+
var result2 = [setter.apply(void 0, [eventOrValue].concat(args))].concat(args);
|
|
69
|
+
if (eventOrValue !== null && eventOrValue !== void 0 && eventOrValue.target) {
|
|
70
|
+
result2.push(eventOrValue);
|
|
71
|
+
}
|
|
72
|
+
return handler.apply(void 0, _toConsumableArray(result2));
|
|
73
|
+
}), _objectSpread2));
|
|
74
|
+
}, props);
|
|
75
|
+
return [uncontrolledProps, handlerProps];
|
|
76
|
+
}
|
|
77
|
+
function uncontrolled(self, props, config) {
|
|
78
|
+
return uncontrolledUniversal(props, config, uncontrolledProp.bind(void 0, self));
|
|
79
|
+
}
|
|
80
|
+
function Enhancement() {
|
|
81
|
+
return {
|
|
82
|
+
condition: function condition(Component) {
|
|
83
|
+
return Boolean(Component.prototype.uncontrolledProps);
|
|
84
|
+
},
|
|
85
|
+
init: function init() {
|
|
86
|
+
this.state = this.state || {};
|
|
87
|
+
assign(this, {
|
|
88
|
+
get handlers() {
|
|
89
|
+
var _uncontrolled = uncontrolled(this, this.props, this.uncontrolledProps()), _uncontrolled2 = _slicedToArray(_uncontrolled, 2), uncontrolledHandlers = _uncontrolled2[1];
|
|
90
|
+
return uncontrolledHandlers;
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
context: function context(_context) {
|
|
95
|
+
return _objectSpread(_objectSpread({}, _context), {}, {
|
|
96
|
+
handlers: this.handlers
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
asProps: function asProps(props) {
|
|
100
|
+
var _uncontrolled3 = uncontrolled(this, props, this.uncontrolledProps()), _uncontrolled4 = _slicedToArray(_uncontrolled3, 1), uncontrolledProps = _uncontrolled4[0];
|
|
101
|
+
return uncontrolledProps;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export {
|
|
106
|
+
Enhancement as default
|
|
107
|
+
};
|
package/lib/esm/index.mjs
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
import {
|
|
1
|
+
import { assignProps, createBaseComponent, createComponent } from "./coreFactory.mjs";
|
|
2
|
+
import { Component, Intergalactic, Root, wrapIntergalacticComponent } from "./core-types/Component.mjs";
|
|
3
|
+
import { CHILDREN_COMPONENT, CONTEXT_COMPONENT, CORE_INSTANCE, CREATE_COMPONENT, INHERITED_NAME } from "./core-types/symbols.mjs";
|
|
4
|
+
import { default as default2 } from "./register.mjs";
|
|
5
|
+
import { lastInteraction } from "./LastInteractionType.mjs";
|
|
6
|
+
import { sstyled } from "./styled/sstyled.mjs";
|
|
4
7
|
export {
|
|
5
|
-
|
|
8
|
+
CHILDREN_COMPONENT,
|
|
9
|
+
CONTEXT_COMPONENT,
|
|
10
|
+
CORE_INSTANCE,
|
|
11
|
+
CREATE_COMPONENT,
|
|
12
|
+
Component,
|
|
13
|
+
INHERITED_NAME,
|
|
14
|
+
Intergalactic,
|
|
15
|
+
Root,
|
|
16
|
+
assignProps,
|
|
17
|
+
createBaseComponent,
|
|
18
|
+
createComponent,
|
|
19
|
+
lastInteraction,
|
|
20
|
+
default2 as register,
|
|
21
|
+
sstyled,
|
|
22
|
+
wrapIntergalacticComponent
|
|
6
23
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
|
+
var Register = /* @__PURE__ */ function() {
|
|
5
|
+
function Register2() {
|
|
6
|
+
_classCallCheck(this, Register2);
|
|
7
|
+
_defineProperty(this, "data", {});
|
|
8
|
+
}
|
|
9
|
+
_createClass(Register2, [{
|
|
10
|
+
key: "get",
|
|
11
|
+
value: function get(name, defaultValue) {
|
|
12
|
+
if (name in this.data) {
|
|
13
|
+
return this.data[name];
|
|
14
|
+
} else {
|
|
15
|
+
return this.set(name, defaultValue);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}, {
|
|
19
|
+
key: "set",
|
|
20
|
+
value: function set(name, value) {
|
|
21
|
+
this.data[name] = value;
|
|
22
|
+
return this.data[name];
|
|
23
|
+
}
|
|
24
|
+
}]);
|
|
25
|
+
return Register2;
|
|
26
|
+
}();
|
|
27
|
+
const register = new Register();
|
|
28
|
+
export {
|
|
29
|
+
Register,
|
|
30
|
+
register as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "@babel/runtime/helpers/esm/typeof";
|
|
2
|
+
import "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
+
var serverMap = {};
|
|
4
|
+
var getStyles = function getStyles2() {
|
|
5
|
+
return {
|
|
6
|
+
map: serverMap,
|
|
7
|
+
get css() {
|
|
8
|
+
var serverStyles2 = "";
|
|
9
|
+
for (var id in serverMap) {
|
|
10
|
+
serverStyles2 += '<style type="text/css" id="'.concat(id, '">').concat(serverMap[id], "</style>");
|
|
11
|
+
}
|
|
12
|
+
return serverStyles2;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
getStyles
|
|
18
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import _cn from "classnames";
|
|
4
|
+
import { getStyles as getStyles$1 } from "./reshadow-core.mjs";
|
|
5
|
+
var RESHADOW_ID = "__reshadow__";
|
|
6
|
+
var isSSR = !(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
7
|
+
var serverMap = getStyles$1().map;
|
|
8
|
+
var getStyles = function getStyles2() {
|
|
9
|
+
return {
|
|
10
|
+
map: serverMap,
|
|
11
|
+
get css() {
|
|
12
|
+
var serverStyles = "";
|
|
13
|
+
for (var id in serverMap) {
|
|
14
|
+
serverStyles += "<style type='text/css' id='".concat(id, "'>").concat(serverMap[id], "</style>");
|
|
15
|
+
}
|
|
16
|
+
return serverStyles;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
function insert(code, hash) {
|
|
21
|
+
var id = "reshadow-".concat(hash);
|
|
22
|
+
if (isSSR) {
|
|
23
|
+
serverMap[id] = code;
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
var container = document.getElementById(RESHADOW_ID);
|
|
27
|
+
if (!container) {
|
|
28
|
+
container = document.createElement("object");
|
|
29
|
+
container.id = RESHADOW_ID;
|
|
30
|
+
if (document.head) {
|
|
31
|
+
document.head.appendChild(container);
|
|
32
|
+
} else {
|
|
33
|
+
document.addEventListener("DOMContentLoaded", function() {
|
|
34
|
+
document.head.appendChild(container);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
var css = document.getElementById(id);
|
|
39
|
+
if (!css) {
|
|
40
|
+
css = document.createElement("style");
|
|
41
|
+
css.id = id;
|
|
42
|
+
css.type = "text/css";
|
|
43
|
+
container.appendChild(css);
|
|
44
|
+
}
|
|
45
|
+
css.innerHTML = code;
|
|
46
|
+
}
|
|
47
|
+
function merge() {
|
|
48
|
+
var s1 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
49
|
+
var s2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
50
|
+
return Object.entries(s2).reduce(function(acc, _ref) {
|
|
51
|
+
var _ref2 = _slicedToArray(_ref, 2), key = _ref2[0], value = _ref2[1];
|
|
52
|
+
if (key.startsWith("@") || key.startsWith("--")) {
|
|
53
|
+
acc[key] = value;
|
|
54
|
+
} else {
|
|
55
|
+
acc[key] = _cn(acc[key], value);
|
|
56
|
+
}
|
|
57
|
+
return acc;
|
|
58
|
+
}, Object.assign({}, s1));
|
|
59
|
+
}
|
|
60
|
+
function getClassAndVars(styles, name, props) {
|
|
61
|
+
function getPropValue(key, props2) {
|
|
62
|
+
var _props;
|
|
63
|
+
return (_props = props2["use:".concat(key)]) !== null && _props !== void 0 ? _props : props2[key];
|
|
64
|
+
}
|
|
65
|
+
return Object.entries(styles).reduce(function(acc, _ref3) {
|
|
66
|
+
var _ref4 = _slicedToArray(_ref3, 2), key = _ref4[0], value = _ref4[1];
|
|
67
|
+
if (key.startsWith("--")) {
|
|
68
|
+
acc[1][value] = getPropValue(key.substring(2), props);
|
|
69
|
+
} else if (name === key) {
|
|
70
|
+
acc[0][value] = true;
|
|
71
|
+
} else {
|
|
72
|
+
var _key$split = key.split("="), _key$split2 = _slicedToArray(_key$split, 2), mod = _key$split2[0], modValue = _key$split2[1];
|
|
73
|
+
var propValue = getPropValue(mod, props);
|
|
74
|
+
if (modValue === void 0) {
|
|
75
|
+
acc[0][value] = Boolean(propValue !== null && propValue !== void 0 ? propValue : false);
|
|
76
|
+
} else {
|
|
77
|
+
acc[0][value] = propValue == modValue;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return acc;
|
|
81
|
+
}, [{}, {}]);
|
|
82
|
+
}
|
|
83
|
+
function reshadowToShadow(obj) {
|
|
84
|
+
return Object.entries(obj).reduce(function(style, _ref5) {
|
|
85
|
+
var _ref6 = _slicedToArray(_ref5, 2), name = _ref6[0], value = _ref6[1];
|
|
86
|
+
var n = name;
|
|
87
|
+
if (name.startsWith("__")) {
|
|
88
|
+
n = name.replace(/^__/, "");
|
|
89
|
+
} else if (name.startsWith("_")) {
|
|
90
|
+
n = name.replace(/^_/, "").replace("_", "=");
|
|
91
|
+
}
|
|
92
|
+
style[n] = value;
|
|
93
|
+
return style;
|
|
94
|
+
}, {});
|
|
95
|
+
}
|
|
96
|
+
function sstyled() {
|
|
97
|
+
var styles = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
98
|
+
return {
|
|
99
|
+
cn: function cn(name, props) {
|
|
100
|
+
var _getClassAndVars = getClassAndVars(reshadowToShadow(styles), name, props), _getClassAndVars2 = _slicedToArray(_getClassAndVars, 2), classes = _getClassAndVars2[0], style = _getClassAndVars2[1];
|
|
101
|
+
var extraProps = {};
|
|
102
|
+
if (Object.keys(classes).length) {
|
|
103
|
+
extraProps.className = _cn(props.className, classes);
|
|
104
|
+
}
|
|
105
|
+
if (Object.keys(style).length) {
|
|
106
|
+
extraProps.style = Object.assign(style, props.style);
|
|
107
|
+
}
|
|
108
|
+
return _objectSpread(_objectSpread({}, props), extraProps);
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
sstyled.css = function(css) {
|
|
113
|
+
throw new Error("Enable babel plugin");
|
|
114
|
+
};
|
|
115
|
+
sstyled.insert = insert;
|
|
116
|
+
sstyled.merge = merge;
|
|
117
|
+
sstyled.getStyles = getStyles;
|
|
118
|
+
sstyled.SHADOW_STYLES = Symbol("SHADOW_STYLES");
|
|
119
|
+
export {
|
|
120
|
+
sstyled
|
|
121
|
+
};
|
package/lib/index.cjs
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "CHILDREN_COMPONENT", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _symbols.CHILDREN_COMPONENT;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "CONTEXT_COMPONENT", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _symbols.CONTEXT_COMPONENT;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "CORE_INSTANCE", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function get() {
|
|
22
|
+
return _symbols.CORE_INSTANCE;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "CREATE_COMPONENT", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function get() {
|
|
28
|
+
return _symbols.CREATE_COMPONENT;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "Component", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function get() {
|
|
34
|
+
return _Component.Component;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "INHERITED_NAME", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function get() {
|
|
40
|
+
return _symbols.INHERITED_NAME;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "Intergalactic", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _Component.Intergalactic;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(exports, "Root", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function get() {
|
|
52
|
+
return _Component.Root;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "assignProps", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function get() {
|
|
58
|
+
return _coreFactory.assignProps;
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(exports, "createBaseComponent", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function get() {
|
|
64
|
+
return _coreFactory.createBaseComponent;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(exports, "createComponent", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function get() {
|
|
70
|
+
return _coreFactory.createComponent;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
Object.defineProperty(exports, "lastInteraction", {
|
|
74
|
+
enumerable: true,
|
|
75
|
+
get: function get() {
|
|
76
|
+
return _LastInteractionType.lastInteraction;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
Object.defineProperty(exports, "register", {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function get() {
|
|
82
|
+
return _register["default"];
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
Object.defineProperty(exports, "sstyled", {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
get: function get() {
|
|
88
|
+
return _styled.sstyled;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
Object.defineProperty(exports, "wrapIntergalacticComponent", {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
get: function get() {
|
|
94
|
+
return _Component.wrapIntergalacticComponent;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
var _coreFactory = require("./coreFactory");
|
|
98
|
+
var _styled = require("./styled");
|
|
99
|
+
var _Component = require("./core-types/Component");
|
|
100
|
+
var _symbols = require("./core-types/symbols");
|
|
101
|
+
var _register = _interopRequireDefault(require("./register"));
|
|
102
|
+
var _LastInteractionType = require("./LastInteractionType");
|
|
103
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["_coreFactory","require","_styled","_Component","_symbols","_register","_interopRequireDefault","_LastInteractionType"],"sources":["../src/index.ts"],"sourcesContent":["/** ============================== core ============================== */\nimport { createComponent, createBaseComponent, assignProps } from './coreFactory';\nimport { sstyled } from './styled';\nimport type { StyledProps } from './styled';\nimport { Root, Component, Intergalactic, wrapIntergalacticComponent } from './core-types/Component';\nimport type {\n PropGetterFn,\n IRootComponentProps,\n ComponentType,\n IRootComponentHandlers,\n IComponentProps,\n ReturnEl,\n IFunctionProps,\n} from './core-types/Component';\nimport {\n CORE_INSTANCE,\n CREATE_COMPONENT,\n CONTEXT_COMPONENT,\n CHILDREN_COMPONENT,\n INHERITED_NAME,\n} from './core-types/symbols';\nimport type { UnknownProperties } from './core-types/UnknownProperties';\nimport register from './register';\nimport { lastInteraction } from './LastInteractionType';\n\nexport {\n sstyled,\n createComponent,\n createBaseComponent,\n Root,\n Component,\n UnknownProperties,\n Intergalactic,\n PropGetterFn,\n IRootComponentProps,\n ComponentType,\n IRootComponentHandlers,\n IComponentProps,\n IFunctionProps,\n CORE_INSTANCE,\n CREATE_COMPONENT,\n CONTEXT_COMPONENT,\n CHILDREN_COMPONENT,\n INHERITED_NAME,\n ReturnEl,\n StyledProps,\n wrapIntergalacticComponent,\n assignProps,\n register,\n lastInteraction,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AAUA,IAAAG,QAAA,GAAAH,OAAA;AAQA,IAAAI,SAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,oBAAA,GAAAN,OAAA"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** ============================== core ============================== */
|
|
2
|
+
import { createComponent, createBaseComponent, assignProps } from './coreFactory';
|
|
3
|
+
import { sstyled } from './styled';
|
|
4
|
+
import type { StyledProps } from './styled';
|
|
5
|
+
import { Root, Component, Intergalactic, wrapIntergalacticComponent } from './core-types/Component';
|
|
6
|
+
import type { PropGetterFn, IRootComponentProps, ComponentType, IRootComponentHandlers, IComponentProps, ReturnEl, IFunctionProps } from './core-types/Component';
|
|
7
|
+
import { CORE_INSTANCE, CREATE_COMPONENT, CONTEXT_COMPONENT, CHILDREN_COMPONENT, INHERITED_NAME } from './core-types/symbols';
|
|
8
|
+
import type { UnknownProperties } from './core-types/UnknownProperties';
|
|
9
|
+
import register from './register';
|
|
10
|
+
import { lastInteraction } from './LastInteractionType';
|
|
11
|
+
export { sstyled, createComponent, createBaseComponent, Root, Component, UnknownProperties, Intergalactic, PropGetterFn, IRootComponentProps, ComponentType, IRootComponentHandlers, IComponentProps, IFunctionProps, CORE_INSTANCE, CREATE_COMPONENT, CONTEXT_COMPONENT, CHILDREN_COMPONENT, INHERITED_NAME, ReturnEl, StyledProps, wrapIntergalacticComponent, assignProps, register, lastInteraction, };
|
package/lib/index.mjs
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { assignProps, createBaseComponent, createComponent } from "./coreFactory.mjs";
|
|
2
|
+
import { Component, Intergalactic, Root, wrapIntergalacticComponent } from "./core-types/Component.mjs";
|
|
3
|
+
import { CHILDREN_COMPONENT, CONTEXT_COMPONENT, CORE_INSTANCE, CREATE_COMPONENT, INHERITED_NAME } from "./core-types/symbols.mjs";
|
|
4
|
+
import { default as default2 } from "./register.mjs";
|
|
5
|
+
import { lastInteraction } from "./LastInteractionType.mjs";
|
|
6
|
+
import { sstyled } from "./styled/sstyled.mjs";
|
|
7
|
+
export {
|
|
8
|
+
CHILDREN_COMPONENT,
|
|
9
|
+
CONTEXT_COMPONENT,
|
|
10
|
+
CORE_INSTANCE,
|
|
11
|
+
CREATE_COMPONENT,
|
|
12
|
+
Component,
|
|
13
|
+
INHERITED_NAME,
|
|
14
|
+
Intergalactic,
|
|
15
|
+
Root,
|
|
16
|
+
assignProps,
|
|
17
|
+
createBaseComponent,
|
|
18
|
+
createComponent,
|
|
19
|
+
lastInteraction,
|
|
20
|
+
default2 as register,
|
|
21
|
+
sstyled,
|
|
22
|
+
wrapIntergalacticComponent
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["createComponent","createBaseComponent","assignProps","sstyled","Root","Component","Intergalactic","wrapIntergalacticComponent","CORE_INSTANCE","CREATE_COMPONENT","CONTEXT_COMPONENT","CHILDREN_COMPONENT","INHERITED_NAME","register","lastInteraction"],"sources":["../src/index.ts"],"sourcesContent":["/** ============================== core ============================== */\nimport { createComponent, createBaseComponent, assignProps } from './coreFactory';\nimport { sstyled } from './styled';\nimport type { StyledProps } from './styled';\nimport { Root, Component, Intergalactic, wrapIntergalacticComponent } from './core-types/Component';\nimport type {\n PropGetterFn,\n IRootComponentProps,\n ComponentType,\n IRootComponentHandlers,\n IComponentProps,\n ReturnEl,\n IFunctionProps,\n} from './core-types/Component';\nimport {\n CORE_INSTANCE,\n CREATE_COMPONENT,\n CONTEXT_COMPONENT,\n CHILDREN_COMPONENT,\n INHERITED_NAME,\n} from './core-types/symbols';\nimport type { UnknownProperties } from './core-types/UnknownProperties';\nimport register from './register';\nimport { lastInteraction } from './LastInteractionType';\n\nexport {\n sstyled,\n createComponent,\n createBaseComponent,\n Root,\n Component,\n UnknownProperties,\n Intergalactic,\n PropGetterFn,\n IRootComponentProps,\n ComponentType,\n IRootComponentHandlers,\n IComponentProps,\n IFunctionProps,\n CORE_INSTANCE,\n CREATE_COMPONENT,\n CONTEXT_COMPONENT,\n CHILDREN_COMPONENT,\n INHERITED_NAME,\n ReturnEl,\n StyledProps,\n wrapIntergalacticComponent,\n assignProps,\n register,\n lastInteraction,\n};\n"],"mappings":"AAAA;AACA,SAASA,eAAe,EAAEC,mBAAmB,EAAEC,WAAW,QAAQ,mBAAe;AACjF,SAASC,OAAO,QAAQ,cAAU;AAElC,SAASC,IAAI,EAAEC,SAAS,EAAEC,aAAa,EAAEC,0BAA0B,QAAQ,4BAAwB;AAUnG,SACEC,aAAa,EACbC,gBAAgB,EAChBC,iBAAiB,EACjBC,kBAAkB,EAClBC,cAAc,QACT,0BAAsB;AAE7B,OAAOC,QAAQ,MAAM,gBAAY;AACjC,SAASC,eAAe,QAAQ,2BAAuB;AAEvD,SACEX,OAAO,EACPH,eAAe,EACfC,mBAAmB,EACnBG,IAAI,EACJC,SAAS,EAETC,aAAa,EAObE,aAAa,EACbC,gBAAgB,EAChBC,iBAAiB,EACjBC,kBAAkB,EAClBC,cAAc,EAGdL,0BAA0B,EAC1BL,WAAW,EACXW,QAAQ,EACRC,eAAe"}
|