@semcore/core 2.40.0-prerelease.5 → 2.40.0-prerelease.6
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/cjs/index.js +23 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/es6/index.js +4 -0
- package/lib/es6/index.js.map +1 -0
- package/lib/esm/index.mjs +4 -22
- package/lib/types/index.d.ts +3 -0
- package/package.json +2 -2
- package/lib/LastInteractionType.d.ts +0 -11
- package/lib/LastInteractionType.js +0 -55
- package/lib/LastInteractionType.js.map +0 -1
- package/lib/LastInteractionType.mjs +0 -50
- package/lib/LastInteractionType.mjs.map +0 -1
- package/lib/core-types/Component.d.ts +0 -142
- package/lib/core-types/Component.js +0 -53
- package/lib/core-types/Component.js.map +0 -1
- package/lib/core-types/Component.mjs +0 -47
- package/lib/core-types/Component.mjs.map +0 -1
- package/lib/core-types/UnknownProperties.d.ts +0 -3
- package/lib/core-types/UnknownProperties.js +0 -2
- package/lib/core-types/UnknownProperties.js.map +0 -1
- package/lib/core-types/UnknownProperties.mjs +0 -2
- package/lib/core-types/UnknownProperties.mjs.map +0 -1
- package/lib/core-types/reshadow.d.js +0 -2
- package/lib/core-types/reshadow.d.js.map +0 -1
- package/lib/core-types/reshadow.d.mjs +0 -2
- package/lib/core-types/reshadow.d.mjs.map +0 -1
- package/lib/core-types/symbols.d.ts +0 -9
- package/lib/core-types/symbols.js +0 -16
- package/lib/core-types/symbols.js.map +0 -1
- package/lib/core-types/symbols.mjs +0 -20
- package/lib/core-types/symbols.mjs.map +0 -1
- package/lib/coreFactory.d.ts +0 -10
- package/lib/coreFactory.js +0 -384
- package/lib/coreFactory.js.map +0 -1
- package/lib/coreFactory.mjs +0 -343
- package/lib/coreFactory.mjs.map +0 -1
- package/lib/decorators/propsObserver.d.ts +0 -11
- package/lib/decorators/propsObserver.js +0 -77
- package/lib/decorators/propsObserver.js.map +0 -1
- package/lib/decorators/propsObserver.mjs +0 -70
- package/lib/decorators/propsObserver.mjs.map +0 -1
- package/lib/decorators/reactive.d.ts +0 -11
- package/lib/decorators/reactive.js +0 -51
- package/lib/decorators/reactive.js.map +0 -1
- package/lib/decorators/reactive.mjs +0 -45
- package/lib/decorators/reactive.mjs.map +0 -1
- package/lib/enhancement/Children.d.ts +0 -5
- package/lib/enhancement/Children.js +0 -118
- package/lib/enhancement/Children.js.map +0 -1
- package/lib/enhancement/Children.mjs +0 -96
- package/lib/enhancement/Children.mjs.map +0 -1
- package/lib/enhancement/Root.d.ts +0 -6
- package/lib/enhancement/Root.js +0 -77
- package/lib/enhancement/Root.js.map +0 -1
- package/lib/enhancement/Root.mjs +0 -56
- package/lib/enhancement/Root.mjs.map +0 -1
- package/lib/enhancement/dataName.d.ts +0 -4
- package/lib/enhancement/dataName.js +0 -19
- package/lib/enhancement/dataName.js.map +0 -1
- package/lib/enhancement/dataName.mjs +0 -13
- package/lib/enhancement/dataName.mjs.map +0 -1
- package/lib/enhancement/enhance.d.ts +0 -5
- package/lib/enhancement/enhance.js +0 -21
- package/lib/enhancement/enhance.js.map +0 -1
- package/lib/enhancement/enhance.mjs +0 -16
- package/lib/enhancement/enhance.mjs.map +0 -1
- package/lib/enhancement/functionDefaultProps.d.ts +0 -8
- package/lib/enhancement/functionDefaultProps.js +0 -35
- package/lib/enhancement/functionDefaultProps.js.map +0 -1
- package/lib/enhancement/functionDefaultProps.mjs +0 -29
- package/lib/enhancement/functionDefaultProps.mjs.map +0 -1
- package/lib/enhancement/i18n.d.ts +0 -4
- package/lib/enhancement/i18n.js +0 -27
- package/lib/enhancement/i18n.js.map +0 -1
- package/lib/enhancement/i18n.mjs +0 -20
- package/lib/enhancement/i18n.mjs.map +0 -1
- package/lib/enhancement/inheritedName.d.ts +0 -8
- package/lib/enhancement/inheritedName.js +0 -22
- package/lib/enhancement/inheritedName.js.map +0 -1
- package/lib/enhancement/inheritedName.mjs +0 -16
- package/lib/enhancement/inheritedName.mjs.map +0 -1
- package/lib/enhancement/staticChildren.d.ts +0 -13
- package/lib/enhancement/staticChildren.js +0 -132
- package/lib/enhancement/staticChildren.js.map +0 -1
- package/lib/enhancement/staticChildren.mjs +0 -120
- package/lib/enhancement/staticChildren.mjs.map +0 -1
- package/lib/enhancement/style.d.ts +0 -9
- package/lib/enhancement/style.js +0 -58
- package/lib/enhancement/style.js.map +0 -1
- package/lib/enhancement/style.mjs +0 -49
- package/lib/enhancement/style.mjs.map +0 -1
- package/lib/enhancement/uncontrolledProps.d.ts +0 -7
- package/lib/enhancement/uncontrolledProps.js +0 -131
- package/lib/enhancement/uncontrolledProps.js.map +0 -1
- package/lib/enhancement/uncontrolledProps.mjs +0 -107
- package/lib/enhancement/uncontrolledProps.mjs.map +0 -1
- package/lib/esm/LastInteractionType.mjs +0 -50
- package/lib/esm/core-types/Component.mjs +0 -47
- package/lib/esm/core-types/symbols.mjs +0 -20
- package/lib/esm/coreFactory.mjs +0 -343
- package/lib/esm/enhancement/Children.mjs +0 -96
- package/lib/esm/enhancement/Root.mjs +0 -56
- package/lib/esm/enhancement/dataName.mjs +0 -13
- package/lib/esm/enhancement/enhance.mjs +0 -16
- package/lib/esm/enhancement/functionDefaultProps.mjs +0 -29
- package/lib/esm/enhancement/i18n.mjs +0 -20
- package/lib/esm/enhancement/inheritedName.mjs +0 -16
- package/lib/esm/enhancement/staticChildren.mjs +0 -120
- package/lib/esm/enhancement/style.mjs +0 -49
- package/lib/esm/enhancement/uncontrolledProps.mjs +0 -107
- package/lib/esm/register.mjs +0 -30
- package/lib/esm/styled/index.mjs +0 -8
- package/lib/esm/styled/reshadow-core.mjs +0 -234
- package/lib/esm/styled/sstyled.mjs +0 -125
- package/lib/esm/utils/assignProps.mjs +0 -86
- package/lib/esm/utils/canUseDOM.mjs +0 -6
- package/lib/esm/utils/capitalizeFirstLetter.mjs +0 -6
- package/lib/esm/utils/enhances/WithI18n.mjs +0 -30
- package/lib/esm/utils/enhances/i18nEnhance.mjs +0 -90
- package/lib/esm/utils/logger.mjs +0 -34
- package/lib/esm/utils/pick.mjs +0 -15
- package/lib/esm/utils/ref.mjs +0 -73
- package/lib/esm/utils/use/useEnhancedEffect.mjs +0 -6
- package/lib/index.d.ts +0 -11
- package/lib/index.js +0 -103
- package/lib/index.js.map +0 -1
- package/lib/index.mjs +0 -24
- package/lib/index.mjs.map +0 -1
- package/lib/register.d.ts +0 -8
- package/lib/register.js +0 -34
- package/lib/register.js.map +0 -1
- package/lib/register.mjs +0 -30
- package/lib/register.mjs.map +0 -1
- package/lib/styled/index.d.ts +0 -6
- package/lib/styled/index.js +0 -32
- package/lib/styled/index.js.map +0 -1
- package/lib/styled/index.mjs +0 -8
- package/lib/styled/index.mjs.map +0 -1
- package/lib/styled/reshadow-core.d.ts +0 -37
- package/lib/styled/reshadow-core.js +0 -233
- package/lib/styled/reshadow-core.js.map +0 -1
- package/lib/styled/reshadow-core.mjs +0 -234
- package/lib/styled/reshadow-core.mjs.map +0 -1
- package/lib/styled/sstyled.d.ts +0 -17
- package/lib/styled/sstyled.js +0 -151
- package/lib/styled/sstyled.js.map +0 -1
- package/lib/styled/sstyled.mjs +0 -125
- package/lib/styled/sstyled.mjs.map +0 -1
- package/lib/theme/themes/auto.css +0 -1748
- package/lib/theme/themes/dark.css +0 -871
- package/lib/theme/themes/dark.d.ts +0 -487
- package/lib/theme/themes/dark.js +0 -493
- package/lib/theme/themes/dark.js.map +0 -1
- package/lib/theme/themes/dark.mjs +0 -487
- package/lib/theme/themes/dark.mjs.map +0 -1
- package/lib/theme/themes/default.css +0 -877
- package/lib/theme/themes/default.d.ts +0 -490
- package/lib/theme/themes/default.js +0 -496
- package/lib/theme/themes/default.js.map +0 -1
- package/lib/theme/themes/default.mjs +0 -490
- package/lib/theme/themes/default.mjs.map +0 -1
- package/lib/theme/themes/highlights-dark.css +0 -36
- package/lib/theme/themes/highlights-dark.d.ts +0 -20
- package/lib/theme/themes/highlights-dark.js +0 -26
- package/lib/theme/themes/highlights-dark.js.map +0 -1
- package/lib/theme/themes/highlights-dark.mjs +0 -20
- package/lib/theme/themes/highlights-dark.mjs.map +0 -1
- package/lib/theme/themes/highlights-light.css +0 -36
- package/lib/theme/themes/highlights-light.d.ts +0 -20
- package/lib/theme/themes/highlights-light.js +0 -26
- package/lib/theme/themes/highlights-light.js.map +0 -1
- package/lib/theme/themes/highlights-light.mjs +0 -20
- package/lib/theme/themes/highlights-light.mjs.map +0 -1
- package/lib/theme/themes/light.css +0 -877
- package/lib/theme/themes/light.d.ts +0 -490
- package/lib/theme/themes/light.js +0 -496
- package/lib/theme/themes/light.js.map +0 -1
- package/lib/theme/themes/light.mjs +0 -490
- package/lib/theme/themes/light.mjs.map +0 -1
- package/lib/utils/CSSinJS.d.ts +0 -5
- package/lib/utils/CSSinJS.js +0 -35
- package/lib/utils/CSSinJS.js.map +0 -1
- package/lib/utils/CSSinJS.mjs +0 -28
- package/lib/utils/CSSinJS.mjs.map +0 -1
- package/lib/utils/ThemeProvider.d.ts +0 -15
- package/lib/utils/ThemeProvider.js +0 -78
- package/lib/utils/ThemeProvider.js.map +0 -1
- package/lib/utils/ThemeProvider.mjs +0 -71
- package/lib/utils/ThemeProvider.mjs.map +0 -1
- package/lib/utils/addonText.d.ts +0 -2
- package/lib/utils/addonText.js +0 -18
- package/lib/utils/addonText.js.map +0 -1
- package/lib/utils/addonText.mjs +0 -11
- package/lib/utils/addonText.mjs.map +0 -1
- package/lib/utils/addonTextChildren.d.ts +0 -3
- package/lib/utils/addonTextChildren.js +0 -44
- package/lib/utils/addonTextChildren.js.map +0 -1
- package/lib/utils/addonTextChildren.mjs +0 -37
- package/lib/utils/addonTextChildren.mjs.map +0 -1
- package/lib/utils/ariaProps.d.ts +0 -12
- package/lib/utils/ariaProps.js +0 -22
- package/lib/utils/ariaProps.js.map +0 -1
- package/lib/utils/ariaProps.mjs +0 -16
- package/lib/utils/ariaProps.mjs.map +0 -1
- package/lib/utils/assignProps.d.ts +0 -11
- package/lib/utils/assignProps.js +0 -93
- package/lib/utils/assignProps.js.map +0 -1
- package/lib/utils/assignProps.mjs +0 -86
- package/lib/utils/assignProps.mjs.map +0 -1
- package/lib/utils/canUseDOM.d.ts +0 -1
- package/lib/utils/canUseDOM.js +0 -10
- package/lib/utils/canUseDOM.js.map +0 -1
- package/lib/utils/canUseDOM.mjs +0 -6
- package/lib/utils/canUseDOM.mjs.map +0 -1
- package/lib/utils/capitalizeFirstLetter.d.ts +0 -1
- package/lib/utils/capitalizeFirstLetter.js +0 -10
- package/lib/utils/capitalizeFirstLetter.js.map +0 -1
- package/lib/utils/capitalizeFirstLetter.mjs +0 -6
- package/lib/utils/capitalizeFirstLetter.mjs.map +0 -1
- package/lib/utils/color.d.ts +0 -5
- package/lib/utils/color.js +0 -208
- package/lib/utils/color.js.map +0 -1
- package/lib/utils/color.mjs +0 -197
- package/lib/utils/color.mjs.map +0 -1
- package/lib/utils/compose.d.ts +0 -1
- package/lib/utils/compose.js +0 -21
- package/lib/utils/compose.js.map +0 -1
- package/lib/utils/compose.mjs +0 -15
- package/lib/utils/compose.mjs.map +0 -1
- package/lib/utils/createUUID.d.ts +0 -1
- package/lib/utils/createUUID.js +0 -15
- package/lib/utils/createUUID.js.map +0 -1
- package/lib/utils/createUUID.mjs +0 -9
- package/lib/utils/createUUID.mjs.map +0 -1
- package/lib/utils/cssToIntDefault.d.ts +0 -8
- package/lib/utils/cssToIntDefault.js +0 -22
- package/lib/utils/cssToIntDefault.js.map +0 -1
- package/lib/utils/cssToIntDefault.mjs +0 -16
- package/lib/utils/cssToIntDefault.mjs.map +0 -1
- package/lib/utils/enhances/WithCSS.d.ts +0 -13
- package/lib/utils/enhances/WithCSS.js +0 -32
- package/lib/utils/enhances/WithCSS.js.map +0 -1
- package/lib/utils/enhances/WithCSS.mjs +0 -25
- package/lib/utils/enhances/WithCSS.mjs.map +0 -1
- package/lib/utils/enhances/WithI18n.d.ts +0 -14
- package/lib/utils/enhances/WithI18n.js +0 -33
- package/lib/utils/enhances/WithI18n.js.map +0 -1
- package/lib/utils/enhances/WithI18n.mjs +0 -30
- package/lib/utils/enhances/WithI18n.mjs.map +0 -1
- package/lib/utils/enhances/a11yEnhance.d.ts +0 -10
- package/lib/utils/enhances/a11yEnhance.js +0 -73
- package/lib/utils/enhances/a11yEnhance.js.map +0 -1
- package/lib/utils/enhances/a11yEnhance.mjs +0 -66
- package/lib/utils/enhances/a11yEnhance.mjs.map +0 -1
- package/lib/utils/enhances/animatedSizeEnhance.d.ts +0 -8
- package/lib/utils/enhances/animatedSizeEnhance.js +0 -98
- package/lib/utils/enhances/animatedSizeEnhance.js.map +0 -1
- package/lib/utils/enhances/animatedSizeEnhance.mjs +0 -91
- package/lib/utils/enhances/animatedSizeEnhance.mjs.map +0 -1
- package/lib/utils/enhances/contextEnhance.d.ts +0 -3
- package/lib/utils/enhances/contextEnhance.js +0 -21
- package/lib/utils/enhances/contextEnhance.js.map +0 -1
- package/lib/utils/enhances/contextEnhance.mjs +0 -14
- package/lib/utils/enhances/contextEnhance.mjs.map +0 -1
- package/lib/utils/enhances/i18nEnhance.d.ts +0 -21
- package/lib/utils/enhances/i18nEnhance.js +0 -99
- package/lib/utils/enhances/i18nEnhance.js.map +0 -1
- package/lib/utils/enhances/i18nEnhance.mjs +0 -90
- package/lib/utils/enhances/i18nEnhance.mjs.map +0 -1
- package/lib/utils/enhances/resolveColorEnhance.d.ts +0 -2
- package/lib/utils/enhances/resolveColorEnhance.js +0 -24
- package/lib/utils/enhances/resolveColorEnhance.js.map +0 -1
- package/lib/utils/enhances/resolveColorEnhance.mjs +0 -17
- package/lib/utils/enhances/resolveColorEnhance.mjs.map +0 -1
- package/lib/utils/eventEmitter.d.ts +0 -13
- package/lib/utils/eventEmitter.js +0 -68
- package/lib/utils/eventEmitter.js.map +0 -1
- package/lib/utils/eventEmitter.mjs +0 -62
- package/lib/utils/eventEmitter.mjs.map +0 -1
- package/lib/utils/findComponent.d.ts +0 -12
- package/lib/utils/findComponent.js +0 -105
- package/lib/utils/findComponent.js.map +0 -1
- package/lib/utils/findComponent.mjs +0 -95
- package/lib/utils/findComponent.mjs.map +0 -1
- package/lib/utils/fire.d.ts +0 -2
- package/lib/utils/fire.js +0 -23
- package/lib/utils/fire.js.map +0 -1
- package/lib/utils/fire.mjs +0 -15
- package/lib/utils/fire.mjs.map +0 -1
- package/lib/utils/focus-lock/focusBorders.d.ts +0 -4
- package/lib/utils/focus-lock/focusBorders.js +0 -68
- package/lib/utils/focus-lock/focusBorders.js.map +0 -1
- package/lib/utils/focus-lock/focusBorders.mjs +0 -62
- package/lib/utils/focus-lock/focusBorders.mjs.map +0 -1
- package/lib/utils/focus-lock/getFocusableIn.d.ts +0 -1
- package/lib/utils/focus-lock/getFocusableIn.js +0 -25
- package/lib/utils/focus-lock/getFocusableIn.js.map +0 -1
- package/lib/utils/focus-lock/getFocusableIn.mjs +0 -19
- package/lib/utils/focus-lock/getFocusableIn.mjs.map +0 -1
- package/lib/utils/focus-lock/isFocusInside.d.ts +0 -1
- package/lib/utils/focus-lock/isFocusInside.js +0 -15
- package/lib/utils/focus-lock/isFocusInside.js.map +0 -1
- package/lib/utils/focus-lock/isFocusInside.mjs +0 -9
- package/lib/utils/focus-lock/isFocusInside.mjs.map +0 -1
- package/lib/utils/focus-lock/isFocusable.d.ts +0 -1
- package/lib/utils/focus-lock/isFocusable.js +0 -50
- package/lib/utils/focus-lock/isFocusable.js.map +0 -1
- package/lib/utils/focus-lock/isFocusable.mjs +0 -43
- package/lib/utils/focus-lock/isFocusable.mjs.map +0 -1
- package/lib/utils/focus-lock/setFocus.d.ts +0 -1
- package/lib/utils/focus-lock/setFocus.js +0 -70
- package/lib/utils/focus-lock/setFocus.js.map +0 -1
- package/lib/utils/focus-lock/setFocus.mjs +0 -63
- package/lib/utils/focus-lock/setFocus.mjs.map +0 -1
- package/lib/utils/getAccessibleName.d.ts +0 -1
- package/lib/utils/getAccessibleName.js +0 -56
- package/lib/utils/getAccessibleName.js.map +0 -1
- package/lib/utils/getAccessibleName.mjs +0 -49
- package/lib/utils/getAccessibleName.mjs.map +0 -1
- package/lib/utils/getDisplayName.d.ts +0 -2
- package/lib/utils/getDisplayName.js +0 -10
- package/lib/utils/getDisplayName.js.map +0 -1
- package/lib/utils/getDisplayName.mjs +0 -4
- package/lib/utils/getDisplayName.mjs.map +0 -1
- package/lib/utils/getEventTarget.d.ts +0 -1
- package/lib/utils/getEventTarget.js +0 -52
- package/lib/utils/getEventTarget.js.map +0 -1
- package/lib/utils/getEventTarget.mjs +0 -45
- package/lib/utils/getEventTarget.mjs.map +0 -1
- package/lib/utils/getOriginChildren.d.ts +0 -2
- package/lib/utils/getOriginChildren.js +0 -17
- package/lib/utils/getOriginChildren.js.map +0 -1
- package/lib/utils/getOriginChildren.mjs +0 -10
- package/lib/utils/getOriginChildren.mjs.map +0 -1
- package/lib/utils/getRandomInt.d.ts +0 -1
- package/lib/utils/getRandomInt.js +0 -11
- package/lib/utils/getRandomInt.js.map +0 -1
- package/lib/utils/getRandomInt.mjs +0 -5
- package/lib/utils/getRandomInt.mjs.map +0 -1
- package/lib/utils/getValue.d.ts +0 -1
- package/lib/utils/getValue.js +0 -14
- package/lib/utils/getValue.js.map +0 -1
- package/lib/utils/getValue.mjs +0 -8
- package/lib/utils/getValue.mjs.map +0 -1
- package/lib/utils/hasLabels.d.ts +0 -7
- package/lib/utils/hasLabels.js +0 -46
- package/lib/utils/hasLabels.js.map +0 -1
- package/lib/utils/hasLabels.mjs +0 -39
- package/lib/utils/hasLabels.mjs.map +0 -1
- package/lib/utils/hasParent.d.ts +0 -1
- package/lib/utils/hasParent.js +0 -13
- package/lib/utils/hasParent.js.map +0 -1
- package/lib/utils/hasParent.mjs +0 -8
- package/lib/utils/hasParent.mjs.map +0 -1
- package/lib/utils/ifChildren.d.ts +0 -8
- package/lib/utils/ifChildren.js +0 -16
- package/lib/utils/ifChildren.js.map +0 -1
- package/lib/utils/ifChildren.mjs +0 -10
- package/lib/utils/ifChildren.mjs.map +0 -1
- package/lib/utils/indentStyles.d.ts +0 -3
- package/lib/utils/indentStyles.js +0 -45
- package/lib/utils/indentStyles.js.map +0 -1
- package/lib/utils/indentStyles.mjs +0 -36
- package/lib/utils/indentStyles.mjs.map +0 -1
- package/lib/utils/injectStyle.d.ts +0 -2
- package/lib/utils/injectStyle.js +0 -47
- package/lib/utils/injectStyle.js.map +0 -1
- package/lib/utils/injectStyle.mjs +0 -40
- package/lib/utils/injectStyle.mjs.map +0 -1
- package/lib/utils/inputProps.d.ts +0 -2
- package/lib/utils/inputProps.js +0 -21
- package/lib/utils/inputProps.js.map +0 -1
- package/lib/utils/inputProps.mjs +0 -14
- package/lib/utils/inputProps.mjs.map +0 -1
- package/lib/utils/isInteractiveElement.d.ts +0 -1
- package/lib/utils/isInteractiveElement.js +0 -34
- package/lib/utils/isInteractiveElement.js.map +0 -1
- package/lib/utils/isInteractiveElement.mjs +0 -28
- package/lib/utils/isInteractiveElement.mjs.map +0 -1
- package/lib/utils/isNode.d.ts +0 -1
- package/lib/utils/isNode.js +0 -28
- package/lib/utils/isNode.js.map +0 -1
- package/lib/utils/isNode.mjs +0 -21
- package/lib/utils/isNode.mjs.map +0 -1
- package/lib/utils/isPromise.d.ts +0 -1
- package/lib/utils/isPromise.js +0 -10
- package/lib/utils/isPromise.js.map +0 -1
- package/lib/utils/isPromise.mjs +0 -4
- package/lib/utils/isPromise.mjs.map +0 -1
- package/lib/utils/isRetina.d.ts +0 -1
- package/lib/utils/isRetina.js +0 -15
- package/lib/utils/isRetina.js.map +0 -1
- package/lib/utils/isRetina.mjs +0 -9
- package/lib/utils/isRetina.mjs.map +0 -1
- package/lib/utils/logger.d.ts +0 -9
- package/lib/utils/logger.js +0 -37
- package/lib/utils/logger.js.map +0 -1
- package/lib/utils/logger.mjs +0 -34
- package/lib/utils/logger.mjs.map +0 -1
- package/lib/utils/numericChecker.d.ts +0 -5
- package/lib/utils/numericChecker.js +0 -33
- package/lib/utils/numericChecker.js.map +0 -1
- package/lib/utils/numericChecker.mjs +0 -27
- package/lib/utils/numericChecker.mjs.map +0 -1
- package/lib/utils/ownerDocument.d.ts +0 -1
- package/lib/utils/ownerDocument.js +0 -10
- package/lib/utils/ownerDocument.js.map +0 -1
- package/lib/utils/ownerDocument.mjs +0 -4
- package/lib/utils/ownerDocument.mjs.map +0 -1
- package/lib/utils/pick.d.ts +0 -1
- package/lib/utils/pick.js +0 -19
- package/lib/utils/pick.js.map +0 -1
- package/lib/utils/pick.mjs +0 -15
- package/lib/utils/pick.mjs.map +0 -1
- package/lib/utils/propsForElement.d.ts +0 -3
- package/lib/utils/propsForElement.js +0 -58
- package/lib/utils/propsForElement.js.map +0 -1
- package/lib/utils/propsForElement.mjs +0 -50
- package/lib/utils/propsForElement.mjs.map +0 -1
- package/lib/utils/rafTrottle.d.ts +0 -2
- package/lib/utils/rafTrottle.js +0 -32
- package/lib/utils/rafTrottle.js.map +0 -1
- package/lib/utils/rafTrottle.mjs +0 -26
- package/lib/utils/rafTrottle.mjs.map +0 -1
- package/lib/utils/reactToText.d.ts +0 -3
- package/lib/utils/reactToText.js +0 -32
- package/lib/utils/reactToText.js.map +0 -1
- package/lib/utils/reactToText.mjs +0 -26
- package/lib/utils/reactToText.mjs.map +0 -1
- package/lib/utils/ref.d.ts +0 -8
- package/lib/utils/ref.js +0 -82
- package/lib/utils/ref.js.map +0 -1
- package/lib/utils/ref.mjs +0 -73
- package/lib/utils/ref.mjs.map +0 -1
- package/lib/utils/setRef.d.ts +0 -2
- package/lib/utils/setRef.js +0 -9
- package/lib/utils/setRef.js.map +0 -1
- package/lib/utils/setRef.mjs +0 -3
- package/lib/utils/setRef.mjs.map +0 -1
- package/lib/utils/syncScroll.d.ts +0 -1
- package/lib/utils/syncScroll.js +0 -61
- package/lib/utils/syncScroll.js.map +0 -1
- package/lib/utils/syncScroll.mjs +0 -54
- package/lib/utils/syncScroll.mjs.map +0 -1
- package/lib/utils/uncontroll.d.ts +0 -4
- package/lib/utils/uncontroll.js +0 -47
- package/lib/utils/uncontroll.js.map +0 -1
- package/lib/utils/uncontroll.mjs +0 -38
- package/lib/utils/uncontroll.mjs.map +0 -1
- package/lib/utils/uniqueID.d.ts +0 -8
- package/lib/utils/uniqueID.js +0 -40
- package/lib/utils/uniqueID.js.map +0 -1
- package/lib/utils/uniqueID.mjs +0 -33
- package/lib/utils/uniqueID.mjs.map +0 -1
- package/lib/utils/use/useColorResolver.d.ts +0 -1
- package/lib/utils/use/useColorResolver.js +0 -109
- package/lib/utils/use/useColorResolver.js.map +0 -1
- package/lib/utils/use/useColorResolver.mjs +0 -102
- package/lib/utils/use/useColorResolver.mjs.map +0 -1
- package/lib/utils/use/useEnhancedEffect.d.ts +0 -3
- package/lib/utils/use/useEnhancedEffect.js +0 -12
- package/lib/utils/use/useEnhancedEffect.js.map +0 -1
- package/lib/utils/use/useEnhancedEffect.mjs +0 -6
- package/lib/utils/use/useEnhancedEffect.mjs.map +0 -1
- package/lib/utils/use/useEventCallback.d.ts +0 -4
- package/lib/utils/use/useEventCallback.js +0 -25
- package/lib/utils/use/useEventCallback.js.map +0 -1
- package/lib/utils/use/useEventCallback.mjs +0 -19
- package/lib/utils/use/useEventCallback.mjs.map +0 -1
- package/lib/utils/use/useEventListener.d.ts +0 -2
- package/lib/utils/use/useEventListener.js +0 -32
- package/lib/utils/use/useEventListener.js.map +0 -1
- package/lib/utils/use/useEventListener.mjs +0 -25
- package/lib/utils/use/useEventListener.mjs.map +0 -1
- package/lib/utils/use/useFocusLock.d.ts +0 -10
- package/lib/utils/use/useFocusLock.js +0 -292
- package/lib/utils/use/useFocusLock.js.map +0 -1
- package/lib/utils/use/useFocusLock.mjs +0 -272
- package/lib/utils/use/useFocusLock.mjs.map +0 -1
- package/lib/utils/use/usePreventScroll.d.ts +0 -2
- package/lib/utils/use/usePreventScroll.js +0 -76
- package/lib/utils/use/usePreventScroll.js.map +0 -1
- package/lib/utils/use/usePreventScroll.mjs +0 -68
- package/lib/utils/use/usePreventScroll.mjs.map +0 -1
- package/lib/utils/use/useScrollBarWidth.d.ts +0 -1
- package/lib/utils/use/useScrollBarWidth.js +0 -43
- package/lib/utils/use/useScrollBarWidth.js.map +0 -1
- package/lib/utils/use/useScrollBarWidth.mjs +0 -36
- package/lib/utils/use/useScrollBarWidth.mjs.map +0 -1
- package/lib/utils/useCssVariable.d.ts +0 -8
- package/lib/utils/useCssVariable.js +0 -53
- package/lib/utils/useCssVariable.js.map +0 -1
- package/lib/utils/useCssVariable.mjs +0 -46
- package/lib/utils/useCssVariable.mjs.map +0 -1
- package/lib/utils/zIndexStacking.d.ts +0 -10
- package/lib/utils/zIndexStacking.js +0 -45
- package/lib/utils/zIndexStacking.js.map +0 -1
- package/lib/utils/zIndexStacking.mjs +0 -38
- package/lib/utils/zIndexStacking.mjs.map +0 -1
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import _cn from "classnames";
|
|
3
|
-
import { forkRef } from "./ref.mjs";
|
|
4
|
-
import "../styled/index.mjs";
|
|
5
|
-
import { sstyled } from "../styled/sstyled.mjs";
|
|
6
|
-
function callAllEventHandlers() {
|
|
7
|
-
for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
8
|
-
fns[_key] = arguments[_key];
|
|
9
|
-
}
|
|
10
|
-
return function() {
|
|
11
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
12
|
-
args[_key2] = arguments[_key2];
|
|
13
|
-
}
|
|
14
|
-
return !fns.some(function(fn) {
|
|
15
|
-
var result;
|
|
16
|
-
if (fn) {
|
|
17
|
-
result = fn.apply(void 0, args);
|
|
18
|
-
}
|
|
19
|
-
return typeof result === "boolean" && !result;
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function assignHandlers(props, source) {
|
|
24
|
-
return Object.keys(source).reduce(function(proxySource, propName) {
|
|
25
|
-
if (typeof source[propName] === "function" && propName.startsWith("on")) {
|
|
26
|
-
proxySource[propName] = callAllEventHandlers(props[propName], source[propName]);
|
|
27
|
-
}
|
|
28
|
-
return proxySource;
|
|
29
|
-
}, {});
|
|
30
|
-
}
|
|
31
|
-
function assignHandlersInner(props, source) {
|
|
32
|
-
return Object.keys(source).reduce(function(proxySource, propName) {
|
|
33
|
-
if (propName !== "ref" && propName.startsWith("on")) {
|
|
34
|
-
if (typeof source[propName] === "function" && typeof props[propName] === "function") {
|
|
35
|
-
proxySource[propName] = callAllEventHandlers(props[propName], source[propName]);
|
|
36
|
-
} else if (typeof source[propName] === "function") {
|
|
37
|
-
proxySource[propName] = source[propName];
|
|
38
|
-
} else if (typeof props[propName] === "function") {
|
|
39
|
-
proxySource[propName] = props[propName];
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return proxySource;
|
|
43
|
-
}, {});
|
|
44
|
-
}
|
|
45
|
-
function assignProps() {
|
|
46
|
-
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
47
|
-
var source = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
48
|
-
if (props === source) return props;
|
|
49
|
-
var newProps = _objectSpread(_objectSpread(_objectSpread({}, source), props), assignHandlersInner(props, source));
|
|
50
|
-
for (var _key3 in source) {
|
|
51
|
-
if (_key3.startsWith("use:")) {
|
|
52
|
-
var originalKey = _key3.slice("use:".length);
|
|
53
|
-
newProps[originalKey] = source[_key3];
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
for (var _key4 in props) {
|
|
57
|
-
if (_key4.startsWith("use:")) {
|
|
58
|
-
var _originalKey = _key4.slice("use:".length);
|
|
59
|
-
newProps[_originalKey] = props[_key4];
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
var sourceDescriptorRef = Object.getOwnPropertyDescriptor(source, "ref");
|
|
63
|
-
var propsDescriptorRef = Object.getOwnPropertyDescriptor(props, "ref");
|
|
64
|
-
if (sourceDescriptorRef !== null && sourceDescriptorRef !== void 0 && sourceDescriptorRef.configurable && propsDescriptorRef !== null && propsDescriptorRef !== void 0 && propsDescriptorRef.configurable) {
|
|
65
|
-
newProps.ref = forkRef(source.ref, props.ref);
|
|
66
|
-
}
|
|
67
|
-
if (props.forwardRef) {
|
|
68
|
-
newProps.ref = forkRef(newProps.ref, props.forwardRef);
|
|
69
|
-
newProps.forwardRef = newProps.ref;
|
|
70
|
-
}
|
|
71
|
-
if (source.style && props.style) {
|
|
72
|
-
newProps.style = _objectSpread(_objectSpread({}, source.style), props.style);
|
|
73
|
-
}
|
|
74
|
-
if (source.className) {
|
|
75
|
-
newProps.className = _cn(props.className, source.className);
|
|
76
|
-
}
|
|
77
|
-
if (source.styles && props.styles) {
|
|
78
|
-
newProps.styles = sstyled.merge(source.styles, props.styles);
|
|
79
|
-
}
|
|
80
|
-
return newProps;
|
|
81
|
-
}
|
|
82
|
-
export {
|
|
83
|
-
assignHandlers,
|
|
84
|
-
callAllEventHandlers,
|
|
85
|
-
assignProps as default
|
|
86
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { createIntlCache, createIntl } from "@formatjs/intl";
|
|
2
|
-
import React, { createContext } from "react";
|
|
3
|
-
import { useAsyncI18nMessages } from "./i18nEnhance.mjs";
|
|
4
|
-
var Context = /* @__PURE__ */ createContext(void 0);
|
|
5
|
-
var I18nProvider = Context.Provider, I18nConsumer = Context.Consumer;
|
|
6
|
-
var messagesCache = createIntlCache();
|
|
7
|
-
var useI18n = function useI18n2(dictionary) {
|
|
8
|
-
var _React$useContext;
|
|
9
|
-
var locale = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "en";
|
|
10
|
-
var fallbackDictionary = arguments.length > 2 ? arguments[2] : void 0;
|
|
11
|
-
var lang = (_React$useContext = React.useContext(Context)) !== null && _React$useContext !== void 0 ? _React$useContext : locale;
|
|
12
|
-
var resolvedDictionary = useAsyncI18nMessages(dictionary, lang, fallbackDictionary);
|
|
13
|
-
var intl = React.useMemo(function() {
|
|
14
|
-
return createIntl({
|
|
15
|
-
locale: lang,
|
|
16
|
-
messages: resolvedDictionary
|
|
17
|
-
}, messagesCache);
|
|
18
|
-
}, [resolvedDictionary, lang]);
|
|
19
|
-
return React.useCallback(function(messageId, variables) {
|
|
20
|
-
return intl.formatMessage({
|
|
21
|
-
id: messageId !== null && messageId !== void 0 ? messageId : ""
|
|
22
|
-
}, variables);
|
|
23
|
-
}, [intl]);
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
Context,
|
|
27
|
-
I18nConsumer,
|
|
28
|
-
I18nProvider,
|
|
29
|
-
useI18n
|
|
30
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
3
|
-
import _regenerator from "@babel/runtime/helpers/esm/regenerator";
|
|
4
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
5
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
6
|
-
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
7
|
-
import React from "react";
|
|
8
|
-
import { useI18n } from "./WithI18n.mjs";
|
|
9
|
-
var useAsyncI18nMessages = function useAsyncI18nMessages2(primaryContainer, locale, fallbackContainer) {
|
|
10
|
-
var _store$locale;
|
|
11
|
-
var container = React.useMemo(function() {
|
|
12
|
-
if (!fallbackContainer) return primaryContainer;
|
|
13
|
-
if (!primaryContainer) return fallbackContainer;
|
|
14
|
-
if (primaryContainer === fallbackContainer) return primaryContainer;
|
|
15
|
-
var container2 = {};
|
|
16
|
-
var _loop = function _loop2(_locale2) {
|
|
17
|
-
if (typeof primaryContainer[_locale2] === "function" || typeof fallbackContainer[_locale2] === "function") {
|
|
18
|
-
container2[_locale2] = /* @__PURE__ */ _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
|
|
19
|
-
var _yield$Promise$all, _yield$Promise$all2, primary, fallback;
|
|
20
|
-
return _regenerator().w(function(_context) {
|
|
21
|
-
while (1) switch (_context.n) {
|
|
22
|
-
case 0:
|
|
23
|
-
_context.n = 1;
|
|
24
|
-
return Promise.all([primaryContainer[_locale2], fallbackContainer[_locale2]]);
|
|
25
|
-
case 1:
|
|
26
|
-
_yield$Promise$all = _context.v;
|
|
27
|
-
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
|
|
28
|
-
primary = _yield$Promise$all2[0];
|
|
29
|
-
fallback = _yield$Promise$all2[1];
|
|
30
|
-
return _context.a(2, _objectSpread(_objectSpread({}, primary), fallback));
|
|
31
|
-
}
|
|
32
|
-
}, _callee);
|
|
33
|
-
}));
|
|
34
|
-
} else {
|
|
35
|
-
var _primaryContainer$_lo, _fallbackContainer$_l;
|
|
36
|
-
container2[_locale2] = _objectSpread(_objectSpread({}, (_primaryContainer$_lo = primaryContainer[_locale2]) !== null && _primaryContainer$_lo !== void 0 ? _primaryContainer$_lo : {}), (_fallbackContainer$_l = fallbackContainer[_locale2]) !== null && _fallbackContainer$_l !== void 0 ? _fallbackContainer$_l : {});
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
for (var _locale in primaryContainer) {
|
|
40
|
-
_loop(_locale);
|
|
41
|
-
}
|
|
42
|
-
return container2;
|
|
43
|
-
}, [primaryContainer, fallbackContainer]);
|
|
44
|
-
var initStore = React.useMemo(function() {
|
|
45
|
-
var store2 = {};
|
|
46
|
-
for (var _locale2 in container) {
|
|
47
|
-
if (_typeof(container[_locale2]) === "object") {
|
|
48
|
-
store2[_locale2] = container[_locale2];
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return store2;
|
|
52
|
-
}, [container]);
|
|
53
|
-
var _React$useState = React.useState(initStore), _React$useState2 = _slicedToArray(_React$useState, 2), store = _React$useState2[0], setStore = _React$useState2[1];
|
|
54
|
-
var lastLoadedLocaleRef = React.useRef(null);
|
|
55
|
-
if (store[locale]) lastLoadedLocaleRef.current = locale;
|
|
56
|
-
var fallbackMessages = React.useMemo(function() {
|
|
57
|
-
return Object.values(store)[0];
|
|
58
|
-
}, [store]);
|
|
59
|
-
var loadingLocaleRef = React.useRef(null);
|
|
60
|
-
React.useEffect(function() {
|
|
61
|
-
loadingLocaleRef.current = locale;
|
|
62
|
-
var asyncMessages = container[locale];
|
|
63
|
-
if (typeof asyncMessages === "function") {
|
|
64
|
-
asyncMessages().then(function(module) {
|
|
65
|
-
if (loadingLocaleRef.current !== locale) return;
|
|
66
|
-
var messages = module;
|
|
67
|
-
if ("default" in module && _typeof(module["default"]) === "object") messages = module["default"];
|
|
68
|
-
setStore(function(store2) {
|
|
69
|
-
return _objectSpread(_objectSpread({}, store2), {}, _defineProperty({}, locale, messages));
|
|
70
|
-
});
|
|
71
|
-
})["catch"](function(err) {
|
|
72
|
-
console.error(err);
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
}, [container, locale]);
|
|
76
|
-
return (_store$locale = store[locale]) !== null && _store$locale !== void 0 ? _store$locale : fallbackMessages;
|
|
77
|
-
};
|
|
78
|
-
const i18nEnhance = (function(container) {
|
|
79
|
-
return function(props) {
|
|
80
|
-
var i18n = props.i18n, locale = props.locale;
|
|
81
|
-
var getI18nText = useI18n(i18n, locale, container);
|
|
82
|
-
return _objectSpread(_objectSpread({}, props), {}, {
|
|
83
|
-
getI18nText
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
});
|
|
87
|
-
export {
|
|
88
|
-
i18nEnhance as default,
|
|
89
|
-
useAsyncI18nMessages
|
|
90
|
-
};
|
package/lib/esm/utils/logger.mjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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 DEV = process.env.NODE_ENV !== "production";
|
|
5
|
-
var Logger = /* @__PURE__ */ (function() {
|
|
6
|
-
function Logger2(logger2) {
|
|
7
|
-
_classCallCheck(this, Logger2);
|
|
8
|
-
_defineProperty(this, "logger", void 0);
|
|
9
|
-
this.logger = logger2 || {
|
|
10
|
-
warn: function warn() {
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
return _createClass(Logger2, [{
|
|
15
|
-
key: "console",
|
|
16
|
-
value: function console2(level, msg, component) {
|
|
17
|
-
this.logger[level](component ? "[".concat(component, "]: ").concat(msg) : msg);
|
|
18
|
-
}
|
|
19
|
-
}, {
|
|
20
|
-
key: "warn",
|
|
21
|
-
value: function warn(condition, msg, component) {
|
|
22
|
-
if (DEV) {
|
|
23
|
-
if (condition) {
|
|
24
|
-
this.console("warn", msg, component);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}]);
|
|
29
|
-
})();
|
|
30
|
-
const logger = new Logger(console);
|
|
31
|
-
export {
|
|
32
|
-
Logger,
|
|
33
|
-
logger as default
|
|
34
|
-
};
|
package/lib/esm/utils/pick.mjs
DELETED
package/lib/esm/utils/ref.mjs
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
-
import React from "react";
|
|
4
|
-
function setRef(ref, value) {
|
|
5
|
-
if (typeof ref === "function") {
|
|
6
|
-
ref(value);
|
|
7
|
-
} else if (ref !== null && ref !== void 0 && ref.hasOwnProperty("current")) {
|
|
8
|
-
ref["current"] = value;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
function getRef(ref) {
|
|
12
|
-
if (!ref) return null;
|
|
13
|
-
return "current" in ref ? ref.current : ref;
|
|
14
|
-
}
|
|
15
|
-
function useCallbackRef(initialValue, callback) {
|
|
16
|
-
var _React$useState = React.useState(function() {
|
|
17
|
-
return {
|
|
18
|
-
// value
|
|
19
|
-
value: initialValue,
|
|
20
|
-
// last callback
|
|
21
|
-
callback,
|
|
22
|
-
// "memoized" public interface
|
|
23
|
-
facade: {
|
|
24
|
-
get current() {
|
|
25
|
-
return ref.value;
|
|
26
|
-
},
|
|
27
|
-
set current(value) {
|
|
28
|
-
var last = ref.value;
|
|
29
|
-
if (last !== value) {
|
|
30
|
-
ref.value = value;
|
|
31
|
-
ref.callback(value, last);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
}), _React$useState2 = _slicedToArray(_React$useState, 1), ref = _React$useState2[0];
|
|
37
|
-
ref.callback = callback;
|
|
38
|
-
return ref.facade;
|
|
39
|
-
}
|
|
40
|
-
function useForkRef() {
|
|
41
|
-
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42
|
-
refs[_key] = arguments[_key];
|
|
43
|
-
}
|
|
44
|
-
return React.useCallback(function(refValue) {
|
|
45
|
-
var uniqueRefs = _toConsumableArray(new Set(refs));
|
|
46
|
-
uniqueRefs.forEach(function(ref) {
|
|
47
|
-
return setRef(ref, refValue);
|
|
48
|
-
});
|
|
49
|
-
}, refs);
|
|
50
|
-
}
|
|
51
|
-
function forkRef() {
|
|
52
|
-
for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
53
|
-
refs[_key2] = arguments[_key2];
|
|
54
|
-
}
|
|
55
|
-
if (refs.every(function(ref) {
|
|
56
|
-
return ref == null;
|
|
57
|
-
})) {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
return function(refValue) {
|
|
61
|
-
var uniqueRefs = _toConsumableArray(new Set(refs));
|
|
62
|
-
uniqueRefs.forEach(function(ref) {
|
|
63
|
-
return setRef(ref, refValue);
|
|
64
|
-
});
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
forkRef,
|
|
69
|
-
getRef,
|
|
70
|
-
setRef,
|
|
71
|
-
useCallbackRef,
|
|
72
|
-
useForkRef
|
|
73
|
-
};
|
package/lib/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** ============================== core ============================== */
|
|
2
|
-
import { Root, Component, Intergalactic, wrapIntergalacticComponent } from './core-types/Component';
|
|
3
|
-
import type { PropGetterFn, IRootComponentProps, IRootNodeProps } from './core-types/Component';
|
|
4
|
-
import { CORE_INSTANCE, CREATE_COMPONENT, CONTEXT_COMPONENT, CHILDREN_COMPONENT, INHERITED_NAME } from './core-types/symbols';
|
|
5
|
-
import type { UnknownProperties } from './core-types/UnknownProperties';
|
|
6
|
-
import { createComponent, createBaseComponent, assignProps } from './coreFactory';
|
|
7
|
-
import { lastInteraction } from './LastInteractionType';
|
|
8
|
-
import register from './register';
|
|
9
|
-
import type { IStyledProps } from './styled';
|
|
10
|
-
import { sstyled } from './styled';
|
|
11
|
-
export { sstyled, createComponent, createBaseComponent, Root, Component, type UnknownProperties, Intergalactic, type PropGetterFn, type IRootComponentProps, type IRootNodeProps, CORE_INSTANCE, CREATE_COMPONENT, CONTEXT_COMPONENT, CHILDREN_COMPONENT, INHERITED_NAME, type IStyledProps, wrapIntergalacticComponent, assignProps, register, lastInteraction, };
|
package/lib/index.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
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 _Component = require("./core-types/Component");
|
|
98
|
-
var _symbols = require("./core-types/symbols");
|
|
99
|
-
var _coreFactory = require("./coreFactory");
|
|
100
|
-
var _LastInteractionType = require("./LastInteractionType");
|
|
101
|
-
var _register = _interopRequireDefault(require("./register"));
|
|
102
|
-
var _styled = require("./styled");
|
|
103
|
-
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_Component","require","_symbols","_coreFactory","_LastInteractionType","_register","_interopRequireDefault","_styled"],"sources":["../src/index.ts"],"sourcesContent":["/** ============================== core ============================== */\nimport { Root, Component, Intergalactic, wrapIntergalacticComponent } from './core-types/Component';\nimport type {\n PropGetterFn,\n IRootComponentProps,\n IRootNodeProps,\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 { createComponent, createBaseComponent, assignProps } from './coreFactory';\nimport { lastInteraction } from './LastInteractionType';\nimport register from './register';\nimport type { IStyledProps } from './styled';\nimport { sstyled } from './styled';\n\nexport {\n sstyled,\n createComponent,\n createBaseComponent,\n Root,\n Component,\n type UnknownProperties,\n Intergalactic,\n type PropGetterFn,\n type IRootComponentProps,\n type IRootNodeProps,\n CORE_INSTANCE,\n CREATE_COMPONENT,\n CONTEXT_COMPONENT,\n CHILDREN_COMPONENT,\n INHERITED_NAME,\n type IStyledProps,\n wrapIntergalacticComponent,\n assignProps,\n register,\n lastInteraction,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAMA,IAAAC,QAAA,GAAAD,OAAA;AAQA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAC,sBAAA,CAAAL,OAAA;AAEA,IAAAM,OAAA,GAAAN,OAAA","ignoreList":[]}
|
package/lib/index.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Component, Intergalactic, Root, wrapIntergalacticComponent } from "./core-types/Component.mjs";
|
|
2
|
-
import { CHILDREN_COMPONENT, CONTEXT_COMPONENT, CORE_INSTANCE, CREATE_COMPONENT, INHERITED_NAME } from "./core-types/symbols.mjs";
|
|
3
|
-
import { assignProps, createBaseComponent, createComponent } from "./coreFactory.mjs";
|
|
4
|
-
import { lastInteraction } from "./LastInteractionType.mjs";
|
|
5
|
-
import { default as default2 } from "./register.mjs";
|
|
6
|
-
import "./styled/index.mjs";
|
|
7
|
-
import { sstyled } from "./styled/sstyled.mjs";
|
|
8
|
-
export {
|
|
9
|
-
CHILDREN_COMPONENT,
|
|
10
|
-
CONTEXT_COMPONENT,
|
|
11
|
-
CORE_INSTANCE,
|
|
12
|
-
CREATE_COMPONENT,
|
|
13
|
-
Component,
|
|
14
|
-
INHERITED_NAME,
|
|
15
|
-
Intergalactic,
|
|
16
|
-
Root,
|
|
17
|
-
assignProps,
|
|
18
|
-
createBaseComponent,
|
|
19
|
-
createComponent,
|
|
20
|
-
lastInteraction,
|
|
21
|
-
default2 as register,
|
|
22
|
-
sstyled,
|
|
23
|
-
wrapIntergalacticComponent
|
|
24
|
-
};
|
package/lib/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["Root","Component","Intergalactic","wrapIntergalacticComponent","CORE_INSTANCE","CREATE_COMPONENT","CONTEXT_COMPONENT","CHILDREN_COMPONENT","INHERITED_NAME","createComponent","createBaseComponent","assignProps","lastInteraction","register","sstyled"],"sources":["../src/index.ts"],"sourcesContent":["/** ============================== core ============================== */\nimport { Root, Component, Intergalactic, wrapIntergalacticComponent } from './core-types/Component';\nimport type {\n PropGetterFn,\n IRootComponentProps,\n IRootNodeProps,\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 { createComponent, createBaseComponent, assignProps } from './coreFactory';\nimport { lastInteraction } from './LastInteractionType';\nimport register from './register';\nimport type { IStyledProps } from './styled';\nimport { sstyled } from './styled';\n\nexport {\n sstyled,\n createComponent,\n createBaseComponent,\n Root,\n Component,\n type UnknownProperties,\n Intergalactic,\n type PropGetterFn,\n type IRootComponentProps,\n type IRootNodeProps,\n CORE_INSTANCE,\n CREATE_COMPONENT,\n CONTEXT_COMPONENT,\n CHILDREN_COMPONENT,\n INHERITED_NAME,\n type IStyledProps,\n wrapIntergalacticComponent,\n assignProps,\n register,\n lastInteraction,\n};\n"],"mappings":"AAAA;AACA,SAASA,IAAI,EAAEC,SAAS,EAAEC,aAAa,EAAEC,0BAA0B,QAAQ,4BAAwB;AAMnG,SACEC,aAAa,EACbC,gBAAgB,EAChBC,iBAAiB,EACjBC,kBAAkB,EAClBC,cAAc,QACT,0BAAsB;AAE7B,SAASC,eAAe,EAAEC,mBAAmB,EAAEC,WAAW,QAAQ,mBAAe;AACjF,SAASC,eAAe,QAAQ,2BAAuB;AACvD,OAAOC,QAAQ,MAAM,gBAAY;AAEjC,SAASC,OAAO,QAAQ,cAAU;AAElC,SACEA,OAAO,EACPL,eAAe,EACfC,mBAAmB,EACnBV,IAAI,EACJC,SAAS,EAETC,aAAa,EAIbE,aAAa,EACbC,gBAAgB,EAChBC,iBAAiB,EACjBC,kBAAkB,EAClBC,cAAc,EAEdL,0BAA0B,EAC1BQ,WAAW,EACXE,QAAQ,EACRD,eAAe","ignoreList":[]}
|
package/lib/register.d.ts
DELETED
package/lib/register.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = exports.Register = void 0;
|
|
8
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
var Register = exports.Register = /*#__PURE__*/function () {
|
|
12
|
-
function Register() {
|
|
13
|
-
(0, _classCallCheck2["default"])(this, Register);
|
|
14
|
-
(0, _defineProperty2["default"])(this, "data", {});
|
|
15
|
-
}
|
|
16
|
-
return (0, _createClass2["default"])(Register, [{
|
|
17
|
-
key: "get",
|
|
18
|
-
value: function get(name, defaultValue) {
|
|
19
|
-
if (name in this.data) {
|
|
20
|
-
return this.data[name];
|
|
21
|
-
} else {
|
|
22
|
-
return this.set(name, defaultValue);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}, {
|
|
26
|
-
key: "set",
|
|
27
|
-
value: function set(name, value) {
|
|
28
|
-
this.data[name] = value;
|
|
29
|
-
return this.data[name];
|
|
30
|
-
}
|
|
31
|
-
}]);
|
|
32
|
-
}();
|
|
33
|
-
var _default = exports["default"] = new Register();
|
|
34
|
-
//# sourceMappingURL=register.js.map
|
package/lib/register.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","names":["Register","exports","_classCallCheck2","_defineProperty2","_createClass2","key","value","get","name","defaultValue","data","set","_default"],"sources":["../src/register.tsx"],"sourcesContent":["class Register {\n data: any = {};\n\n get<D>(name: string, defaultValue?: D): D {\n if (name in this.data) {\n return this.data[name];\n } else {\n return this.set(name, defaultValue) as any;\n }\n }\n\n set<D>(name: string, value: D): D {\n this.data[name] = value;\n return this.data[name];\n }\n}\n\nexport { Register };\nexport default new Register();\n"],"mappings":";;;;;;;;;;IAAMA,QAAQ,GAAAC,OAAA,CAAAD,QAAA;EAAA,SAAAA,SAAA;IAAA,IAAAE,gBAAA,mBAAAF,QAAA;IAAA,IAAAG,gBAAA,2BACA,CAAC,CAAC;EAAA;EAAA,WAAAC,aAAA,aAAAJ,QAAA;IAAAK,GAAA;IAAAC,KAAA,EAEd,SAAAC,GAAGA,CAAIC,IAAY,EAAEC,YAAgB,EAAK;MACxC,IAAID,IAAI,IAAI,IAAI,CAACE,IAAI,EAAE;QACrB,OAAO,IAAI,CAACA,IAAI,CAACF,IAAI,CAAC;MACxB,CAAC,MAAM;QACL,OAAO,IAAI,CAACG,GAAG,CAACH,IAAI,EAAEC,YAAY,CAAC;MACrC;IACF;EAAC;IAAAJ,GAAA;IAAAC,KAAA,EAED,SAAAK,GAAGA,CAAIH,IAAY,EAAEF,KAAQ,EAAK;MAChC,IAAI,CAACI,IAAI,CAACF,IAAI,CAAC,GAAGF,KAAK;MACvB,OAAO,IAAI,CAACI,IAAI,CAACF,IAAI,CAAC;IACxB;EAAC;AAAA;AAAA,IAAAI,QAAA,GAAAX,OAAA,cAIY,IAAID,QAAQ,CAAC,CAAC","ignoreList":[]}
|
package/lib/register.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
return _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
|
-
})();
|
|
26
|
-
const register = new Register();
|
|
27
|
-
export {
|
|
28
|
-
Register,
|
|
29
|
-
register as default
|
|
30
|
-
};
|
package/lib/register.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register.mjs","names":["Register","_classCallCheck","_defineProperty","_createClass","key","value","get","name","defaultValue","data","set"],"sources":["../src/register.tsx"],"sourcesContent":["class Register {\n data: any = {};\n\n get<D>(name: string, defaultValue?: D): D {\n if (name in this.data) {\n return this.data[name];\n } else {\n return this.set(name, defaultValue) as any;\n }\n }\n\n set<D>(name: string, value: D): D {\n this.data[name] = value;\n return this.data[name];\n }\n}\n\nexport { Register };\nexport default new Register();\n"],"mappings":";;;IAAMA,QAAQ;EAAA,SAAAA,SAAA;IAAAC,eAAA,OAAAD,QAAA;IAAAE,eAAA,eACA,CAAC,CAAC;EAAA;EAAA,OAAAC,YAAA,CAAAH,QAAA;IAAAI,GAAA;IAAAC,KAAA,EAEd,SAAAC,GAAGA,CAAIC,IAAY,EAAEC,YAAgB,EAAK;MACxC,IAAID,IAAI,IAAI,IAAI,CAACE,IAAI,EAAE;QACrB,OAAO,IAAI,CAACA,IAAI,CAACF,IAAI,CAAC;MACxB,CAAC,MAAM;QACL,OAAO,IAAI,CAACG,GAAG,CAACH,IAAI,EAAEC,YAAY,CAAC;MACrC;IACF;EAAC;IAAAJ,GAAA;IAAAC,KAAA,EAED,SAAAK,GAAGA,CAAIH,IAAY,EAAEF,KAAQ,EAAK;MAChC,IAAI,CAACI,IAAI,CAACF,IAAI,CAAC,GAAGF,KAAK;MACvB,OAAO,IAAI,CAACI,IAAI,CAACF,IAAI,CAAC;IACxB;EAAC;AAAA;AAGH,SAASP,QAAQ;AACjB,eAAe,IAAIA,QAAQ,CAAC,CAAC","ignoreList":[]}
|
package/lib/styled/index.d.ts
DELETED
package/lib/styled/index.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "css", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _reshadowCore.css;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "sstyled", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _sstyled.sstyled;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "styled", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _reshadowCore.styled;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "use", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _reshadowCore.use;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
var _reshadowCore = require("./reshadow-core");
|
|
31
|
-
var _sstyled = require("./sstyled");
|
|
32
|
-
//# sourceMappingURL=index.js.map
|
package/lib/styled/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_reshadowCore","require","_sstyled"],"sources":["../../src/styled/index.tsx"],"sourcesContent":["export interface IStyledProps {\n styles?: React.DetailedHTMLProps<React.StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>;\n}\n\n/** @ts-ignore */\nexport { styled, use, css } from './reshadow-core';\n\nexport { sstyled } from './sstyled';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAAA,aAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA","ignoreList":[]}
|
package/lib/styled/index.mjs
DELETED
package/lib/styled/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["styled","use","css","sstyled"],"sources":["../../src/styled/index.tsx"],"sourcesContent":["export interface IStyledProps {\n styles?: React.DetailedHTMLProps<React.StyleHTMLAttributes<HTMLStyleElement>, HTMLStyleElement>;\n}\n\n/** @ts-ignore */\nexport { styled, use, css } from './reshadow-core';\n\nexport { sstyled } from './sstyled';\n"],"mappings":"AAIA;AACA,SAASA,MAAM,EAAEC,GAAG,EAAEC,GAAG,QAAQ,qBAAiB;AAElD,SAASC,OAAO,QAAQ,eAAW","ignoreList":[]}
|