@semcore/core 2.40.0-prerelease.5 → 2.40.0-prerelease.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/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
package/lib/utils/inputProps.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export var inputProps = ['autoFocus', 'autoComplete', 'defaultChecked', 'checked', 'disabled', 'name', 'type', 'value', 'defaultValue', 'id', 'indeterminate', 'required', 'onInvalid', 'onChange', 'onFocus', 'onBlur', 'onKeyDown', 'onKeyPress', 'onKeyUp', 'tabIndex', 'data-ui-name', 'inputMode'];
|
|
2
|
-
export default function getInputProps(props, propsList, allAriaPropsToControl) {
|
|
3
|
-
var result = [{}, {}];
|
|
4
|
-
var keysToSplit = propsList || inputProps;
|
|
5
|
-
for (var key in props) {
|
|
6
|
-
if (keysToSplit.includes(key) || allAriaPropsToControl && key.startsWith('aria-')) {
|
|
7
|
-
result[0][key] = props[key];
|
|
8
|
-
} else {
|
|
9
|
-
result[1][key] = props[key];
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return result;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=inputProps.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inputProps.mjs","names":["inputProps","getInputProps","props","propsList","allAriaPropsToControl","result","keysToSplit","key","includes","startsWith"],"sources":["../../src/utils/inputProps.ts"],"sourcesContent":["export const inputProps = [\n 'autoFocus',\n 'autoComplete',\n 'defaultChecked',\n 'checked',\n 'disabled',\n 'name',\n 'type',\n 'value',\n 'defaultValue',\n 'id',\n 'indeterminate',\n 'required',\n 'onInvalid',\n 'onChange',\n 'onFocus',\n 'onBlur',\n 'onKeyDown',\n 'onKeyPress',\n 'onKeyUp',\n 'tabIndex',\n 'data-ui-name',\n 'inputMode',\n];\n\ntype ExtractedProps<T extends object, K extends Array<keyof T>> = Partial<\n Pick<T, Extract<keyof T, K[number]>>\n>;\ntype ExcludedProps<T extends object, K extends Array<keyof T>> = Partial<\n Pick<T, Exclude<keyof T, K[number]>>\n>;\n\nexport default function getInputProps<\n T extends Partial<Record<K[number], any>>,\n K extends Array<keyof T>,\n>(props: T, propsList?: K, allAriaPropsToControl?: boolean) {\n const result: [ExtractedProps<T, K>, ExcludedProps<T, K>] = [{}, {}];\n\n const keysToSplit = propsList || (inputProps as unknown as K);\n\n for (const key in props) {\n if (keysToSplit.includes(key) || (allAriaPropsToControl && key.startsWith('aria-'))) {\n result[0][key as unknown as keyof ExtractedProps<T, K>] = props[key];\n } else {\n result[1][key as unknown as keyof ExcludedProps<T, K>] = props[key];\n }\n }\n\n return result;\n}\n"],"mappings":"AAAA,OAAO,IAAMA,UAAU,GAAG,CACxB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,MAAM,EACN,MAAM,EACN,OAAO,EACP,cAAc,EACd,IAAI,EACJ,eAAe,EACf,UAAU,EACV,WAAW,EACX,UAAU,EACV,SAAS,EACT,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,cAAc,EACd,WAAW,CACZ;AASD,eAAe,SAASC,aAAaA,CAGnCC,KAAQ,EAAEC,SAAa,EAAEC,qBAA+B,EAAE;EAC1D,IAAMC,MAAmD,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;EAEpE,IAAMC,WAAW,GAAGH,SAAS,IAAKH,UAA2B;EAE7D,KAAK,IAAMO,GAAG,IAAIL,KAAK,EAAE;IACvB,IAAII,WAAW,CAACE,QAAQ,CAACD,GAAG,CAAC,IAAKH,qBAAqB,IAAIG,GAAG,CAACE,UAAU,CAAC,OAAO,CAAE,EAAE;MACnFJ,MAAM,CAAC,CAAC,CAAC,CAACE,GAAG,CAA0C,GAAGL,KAAK,CAACK,GAAG,CAAC;IACtE,CAAC,MAAM;MACLF,MAAM,CAAC,CAAC,CAAC,CAACE,GAAG,CAAyC,GAAGL,KAAK,CAACK,GAAG,CAAC;IACrE;EACF;EAEA,OAAOF,MAAM;AACf","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isInteractiveElement(element: unknown): boolean;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isInteractiveElement = isInteractiveElement;
|
|
7
|
-
var interactiveTags = new Set(['button', 'a', 'input', 'select', 'textarea', 'details', 'summary']);
|
|
8
|
-
var interactiveRoles = new Set(['button', 'link', 'checkbox', 'radio', 'combobox', 'menuitem', 'menuitemcheckbox', 'menuitemradio']);
|
|
9
|
-
var uikitInteractive = ['Button', 'Link', 'Select', 'Dropdown', 'Tag', 'DescriptionTooltip'];
|
|
10
|
-
function isInteractiveElement(element) {
|
|
11
|
-
if (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) return false;
|
|
12
|
-
if (element.getAttribute('disabled') === 'true') return false;
|
|
13
|
-
var uikitName = element.dataset.uiName;
|
|
14
|
-
if (uikitName && uikitInteractive.some(function (interactive) {
|
|
15
|
-
return uikitName.startsWith(interactive);
|
|
16
|
-
})) return true;
|
|
17
|
-
var tagName = element.tagName.toLowerCase();
|
|
18
|
-
if (interactiveTags.has(tagName)) {
|
|
19
|
-
// Special case: <a> is only interactive with href
|
|
20
|
-
if (tagName === 'a') {
|
|
21
|
-
return element.hasAttribute('href');
|
|
22
|
-
}
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Elements with tabindex are usually meant to be interactive
|
|
27
|
-
if (element.hasAttribute('tabindex') && element.tabIndex >= 0) return true;
|
|
28
|
-
|
|
29
|
-
// Elements with ARIA roles indicating interactivity
|
|
30
|
-
var role = element.getAttribute('role');
|
|
31
|
-
if (role && interactiveRoles.has(role.toLowerCase())) return true;
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=isInteractiveElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isInteractiveElement.js","names":["interactiveTags","Set","interactiveRoles","uikitInteractive","isInteractiveElement","element","HTMLElement","SVGElement","getAttribute","uikitName","dataset","uiName","some","interactive","startsWith","tagName","toLowerCase","has","hasAttribute","tabIndex","role"],"sources":["../../src/utils/isInteractiveElement.ts"],"sourcesContent":["const interactiveTags = new Set([\n 'button',\n 'a',\n 'input',\n 'select',\n 'textarea',\n 'details',\n 'summary',\n]);\n\nconst interactiveRoles = new Set([\n 'button',\n 'link',\n 'checkbox',\n 'radio',\n 'combobox',\n 'menuitem',\n 'menuitemcheckbox',\n 'menuitemradio',\n]);\n\nconst uikitInteractive = ['Button', 'Link', 'Select', 'Dropdown', 'Tag', 'DescriptionTooltip'];\n\nexport function isInteractiveElement(element: unknown): boolean {\n if (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) return false;\n if (element.getAttribute('disabled') === 'true') return false;\n\n const uikitName = element.dataset.uiName;\n\n if (uikitName && uikitInteractive.some((interactive) => uikitName.startsWith(interactive)))\n return true;\n\n const tagName = element.tagName.toLowerCase();\n\n if (interactiveTags.has(tagName)) {\n // Special case: <a> is only interactive with href\n if (tagName === 'a') {\n return element.hasAttribute('href');\n }\n return true;\n }\n\n // Elements with tabindex are usually meant to be interactive\n if (element.hasAttribute('tabindex') && element.tabIndex >= 0) return true;\n\n // Elements with ARIA roles indicating interactivity\n const role = element.getAttribute('role');\n if (role && interactiveRoles.has(role.toLowerCase())) return true;\n\n return false;\n}\n"],"mappings":";;;;;;AAAA,IAAMA,eAAe,GAAG,IAAIC,GAAG,CAAC,CAC9B,QAAQ,EACR,GAAG,EACH,OAAO,EACP,QAAQ,EACR,UAAU,EACV,SAAS,EACT,SAAS,CACV,CAAC;AAEF,IAAMC,gBAAgB,GAAG,IAAID,GAAG,CAAC,CAC/B,QAAQ,EACR,MAAM,EACN,UAAU,EACV,OAAO,EACP,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,eAAe,CAChB,CAAC;AAEF,IAAME,gBAAgB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,oBAAoB,CAAC;AAEvF,SAASC,oBAAoBA,CAACC,OAAgB,EAAW;EAC9D,IAAI,EAAEA,OAAO,YAAYC,WAAW,CAAC,IAAI,EAAED,OAAO,YAAYE,UAAU,CAAC,EAAE,OAAO,KAAK;EACvF,IAAIF,OAAO,CAACG,YAAY,CAAC,UAAU,CAAC,KAAK,MAAM,EAAE,OAAO,KAAK;EAE7D,IAAMC,SAAS,GAAGJ,OAAO,CAACK,OAAO,CAACC,MAAM;EAExC,IAAIF,SAAS,IAAIN,gBAAgB,CAACS,IAAI,CAAC,UAACC,WAAW;IAAA,OAAKJ,SAAS,CAACK,UAAU,CAACD,WAAW,CAAC;EAAA,EAAC,EACxF,OAAO,IAAI;EAEb,IAAME,OAAO,GAAGV,OAAO,CAACU,OAAO,CAACC,WAAW,CAAC,CAAC;EAE7C,IAAIhB,eAAe,CAACiB,GAAG,CAACF,OAAO,CAAC,EAAE;IAChC;IACA,IAAIA,OAAO,KAAK,GAAG,EAAE;MACnB,OAAOV,OAAO,CAACa,YAAY,CAAC,MAAM,CAAC;IACrC;IACA,OAAO,IAAI;EACb;;EAEA;EACA,IAAIb,OAAO,CAACa,YAAY,CAAC,UAAU,CAAC,IAAIb,OAAO,CAACc,QAAQ,IAAI,CAAC,EAAE,OAAO,IAAI;;EAE1E;EACA,IAAMC,IAAI,GAAGf,OAAO,CAACG,YAAY,CAAC,MAAM,CAAC;EACzC,IAAIY,IAAI,IAAIlB,gBAAgB,CAACe,GAAG,CAACG,IAAI,CAACJ,WAAW,CAAC,CAAC,CAAC,EAAE,OAAO,IAAI;EAEjE,OAAO,KAAK;AACd","ignoreList":[]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
var interactiveTags = new Set(['button', 'a', 'input', 'select', 'textarea', 'details', 'summary']);
|
|
2
|
-
var interactiveRoles = new Set(['button', 'link', 'checkbox', 'radio', 'combobox', 'menuitem', 'menuitemcheckbox', 'menuitemradio']);
|
|
3
|
-
var uikitInteractive = ['Button', 'Link', 'Select', 'Dropdown', 'Tag', 'DescriptionTooltip'];
|
|
4
|
-
export function isInteractiveElement(element) {
|
|
5
|
-
if (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) return false;
|
|
6
|
-
if (element.getAttribute('disabled') === 'true') return false;
|
|
7
|
-
var uikitName = element.dataset.uiName;
|
|
8
|
-
if (uikitName && uikitInteractive.some(function (interactive) {
|
|
9
|
-
return uikitName.startsWith(interactive);
|
|
10
|
-
})) return true;
|
|
11
|
-
var tagName = element.tagName.toLowerCase();
|
|
12
|
-
if (interactiveTags.has(tagName)) {
|
|
13
|
-
// Special case: <a> is only interactive with href
|
|
14
|
-
if (tagName === 'a') {
|
|
15
|
-
return element.hasAttribute('href');
|
|
16
|
-
}
|
|
17
|
-
return true;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Elements with tabindex are usually meant to be interactive
|
|
21
|
-
if (element.hasAttribute('tabindex') && element.tabIndex >= 0) return true;
|
|
22
|
-
|
|
23
|
-
// Elements with ARIA roles indicating interactivity
|
|
24
|
-
var role = element.getAttribute('role');
|
|
25
|
-
if (role && interactiveRoles.has(role.toLowerCase())) return true;
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=isInteractiveElement.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isInteractiveElement.mjs","names":["interactiveTags","Set","interactiveRoles","uikitInteractive","isInteractiveElement","element","HTMLElement","SVGElement","getAttribute","uikitName","dataset","uiName","some","interactive","startsWith","tagName","toLowerCase","has","hasAttribute","tabIndex","role"],"sources":["../../src/utils/isInteractiveElement.ts"],"sourcesContent":["const interactiveTags = new Set([\n 'button',\n 'a',\n 'input',\n 'select',\n 'textarea',\n 'details',\n 'summary',\n]);\n\nconst interactiveRoles = new Set([\n 'button',\n 'link',\n 'checkbox',\n 'radio',\n 'combobox',\n 'menuitem',\n 'menuitemcheckbox',\n 'menuitemradio',\n]);\n\nconst uikitInteractive = ['Button', 'Link', 'Select', 'Dropdown', 'Tag', 'DescriptionTooltip'];\n\nexport function isInteractiveElement(element: unknown): boolean {\n if (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) return false;\n if (element.getAttribute('disabled') === 'true') return false;\n\n const uikitName = element.dataset.uiName;\n\n if (uikitName && uikitInteractive.some((interactive) => uikitName.startsWith(interactive)))\n return true;\n\n const tagName = element.tagName.toLowerCase();\n\n if (interactiveTags.has(tagName)) {\n // Special case: <a> is only interactive with href\n if (tagName === 'a') {\n return element.hasAttribute('href');\n }\n return true;\n }\n\n // Elements with tabindex are usually meant to be interactive\n if (element.hasAttribute('tabindex') && element.tabIndex >= 0) return true;\n\n // Elements with ARIA roles indicating interactivity\n const role = element.getAttribute('role');\n if (role && interactiveRoles.has(role.toLowerCase())) return true;\n\n return false;\n}\n"],"mappings":"AAAA,IAAMA,eAAe,GAAG,IAAIC,GAAG,CAAC,CAC9B,QAAQ,EACR,GAAG,EACH,OAAO,EACP,QAAQ,EACR,UAAU,EACV,SAAS,EACT,SAAS,CACV,CAAC;AAEF,IAAMC,gBAAgB,GAAG,IAAID,GAAG,CAAC,CAC/B,QAAQ,EACR,MAAM,EACN,UAAU,EACV,OAAO,EACP,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,eAAe,CAChB,CAAC;AAEF,IAAME,gBAAgB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,oBAAoB,CAAC;AAE9F,OAAO,SAASC,oBAAoBA,CAACC,OAAgB,EAAW;EAC9D,IAAI,EAAEA,OAAO,YAAYC,WAAW,CAAC,IAAI,EAAED,OAAO,YAAYE,UAAU,CAAC,EAAE,OAAO,KAAK;EACvF,IAAIF,OAAO,CAACG,YAAY,CAAC,UAAU,CAAC,KAAK,MAAM,EAAE,OAAO,KAAK;EAE7D,IAAMC,SAAS,GAAGJ,OAAO,CAACK,OAAO,CAACC,MAAM;EAExC,IAAIF,SAAS,IAAIN,gBAAgB,CAACS,IAAI,CAAC,UAACC,WAAW;IAAA,OAAKJ,SAAS,CAACK,UAAU,CAACD,WAAW,CAAC;EAAA,EAAC,EACxF,OAAO,IAAI;EAEb,IAAME,OAAO,GAAGV,OAAO,CAACU,OAAO,CAACC,WAAW,CAAC,CAAC;EAE7C,IAAIhB,eAAe,CAACiB,GAAG,CAACF,OAAO,CAAC,EAAE;IAChC;IACA,IAAIA,OAAO,KAAK,GAAG,EAAE;MACnB,OAAOV,OAAO,CAACa,YAAY,CAAC,MAAM,CAAC;IACrC;IACA,OAAO,IAAI;EACb;;EAEA;EACA,IAAIb,OAAO,CAACa,YAAY,CAAC,UAAU,CAAC,IAAIb,OAAO,CAACc,QAAQ,IAAI,CAAC,EAAE,OAAO,IAAI;;EAE1E;EACA,IAAMC,IAAI,GAAGf,OAAO,CAACG,YAAY,CAAC,MAAM,CAAC;EACzC,IAAIY,IAAI,IAAIlB,gBAAgB,CAACe,GAAG,CAACG,IAAI,CAACJ,WAAW,CAAC,CAAC,CAAC,EAAE,OAAO,IAAI;EAEjE,OAAO,KAAK;AACd","ignoreList":[]}
|
package/lib/utils/isNode.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function isNode(node?: any): boolean;
|
package/lib/utils/isNode.js
DELETED
|
@@ -1,28 +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"] = isNode;
|
|
8
|
-
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
function isNode(node) {
|
|
11
|
-
switch ((0, _typeof2["default"])(node)) {
|
|
12
|
-
case 'number':
|
|
13
|
-
return Number.isFinite(node);
|
|
14
|
-
case 'string':
|
|
15
|
-
return Boolean(node);
|
|
16
|
-
case 'undefined':
|
|
17
|
-
return false;
|
|
18
|
-
case 'boolean':
|
|
19
|
-
return node;
|
|
20
|
-
case 'object':
|
|
21
|
-
if (Array.isArray(node)) return node.some(isNode);
|
|
22
|
-
if (node === null) return false;
|
|
23
|
-
return /*#__PURE__*/_react["default"].isValidElement(node);
|
|
24
|
-
default:
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=isNode.js.map
|
package/lib/utils/isNode.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isNode.js","names":["_react","_interopRequireDefault","require","isNode","node","_typeof2","Number","isFinite","Boolean","Array","isArray","some","React","isValidElement"],"sources":["../../src/utils/isNode.ts"],"sourcesContent":["import React from 'react';\n\nexport default function isNode(node?: any) {\n switch (typeof node) {\n case 'number':\n return Number.isFinite(node);\n case 'string':\n return Boolean(node);\n case 'undefined':\n return false;\n case 'boolean':\n return node;\n case 'object':\n if (Array.isArray(node)) return node.some(isNode);\n if (node === null) return false;\n return React.isValidElement(node);\n default:\n return false;\n }\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEe,SAASC,MAAMA,CAACC,IAAU,EAAE;EACzC,YAAAC,QAAA,aAAeD,IAAI;IACjB,KAAK,QAAQ;MACX,OAAOE,MAAM,CAACC,QAAQ,CAACH,IAAI,CAAC;IAC9B,KAAK,QAAQ;MACX,OAAOI,OAAO,CAACJ,IAAI,CAAC;IACtB,KAAK,WAAW;MACd,OAAO,KAAK;IACd,KAAK,SAAS;MACZ,OAAOA,IAAI;IACb,KAAK,QAAQ;MACX,IAAIK,KAAK,CAACC,OAAO,CAACN,IAAI,CAAC,EAAE,OAAOA,IAAI,CAACO,IAAI,CAACR,MAAM,CAAC;MACjD,IAAIC,IAAI,KAAK,IAAI,EAAE,OAAO,KAAK;MAC/B,oBAAOQ,iBAAK,CAACC,cAAc,CAACT,IAAI,CAAC;IACnC;MACE,OAAO,KAAK;EAChB;AACF","ignoreList":[]}
|
package/lib/utils/isNode.mjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export default function isNode(node) {
|
|
4
|
-
switch (_typeof(node)) {
|
|
5
|
-
case 'number':
|
|
6
|
-
return Number.isFinite(node);
|
|
7
|
-
case 'string':
|
|
8
|
-
return Boolean(node);
|
|
9
|
-
case 'undefined':
|
|
10
|
-
return false;
|
|
11
|
-
case 'boolean':
|
|
12
|
-
return node;
|
|
13
|
-
case 'object':
|
|
14
|
-
if (Array.isArray(node)) return node.some(isNode);
|
|
15
|
-
if (node === null) return false;
|
|
16
|
-
return /*#__PURE__*/React.isValidElement(node);
|
|
17
|
-
default:
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=isNode.mjs.map
|
package/lib/utils/isNode.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isNode.mjs","names":["React","isNode","node","_typeof","Number","isFinite","Boolean","Array","isArray","some","isValidElement"],"sources":["../../src/utils/isNode.ts"],"sourcesContent":["import React from 'react';\n\nexport default function isNode(node?: any) {\n switch (typeof node) {\n case 'number':\n return Number.isFinite(node);\n case 'string':\n return Boolean(node);\n case 'undefined':\n return false;\n case 'boolean':\n return node;\n case 'object':\n if (Array.isArray(node)) return node.some(isNode);\n if (node === null) return false;\n return React.isValidElement(node);\n default:\n return false;\n }\n}\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,eAAe,SAASC,MAAMA,CAACC,IAAU,EAAE;EACzC,QAAAC,OAAA,CAAeD,IAAI;IACjB,KAAK,QAAQ;MACX,OAAOE,MAAM,CAACC,QAAQ,CAACH,IAAI,CAAC;IAC9B,KAAK,QAAQ;MACX,OAAOI,OAAO,CAACJ,IAAI,CAAC;IACtB,KAAK,WAAW;MACd,OAAO,KAAK;IACd,KAAK,SAAS;MACZ,OAAOA,IAAI;IACb,KAAK,QAAQ;MACX,IAAIK,KAAK,CAACC,OAAO,CAACN,IAAI,CAAC,EAAE,OAAOA,IAAI,CAACO,IAAI,CAACR,MAAM,CAAC;MACjD,IAAIC,IAAI,KAAK,IAAI,EAAE,OAAO,KAAK;MAC/B,oBAAOF,KAAK,CAACU,cAAc,CAACR,IAAI,CAAC;IACnC;MACE,OAAO,KAAK;EAChB;AACF","ignoreList":[]}
|
package/lib/utils/isPromise.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function isPromise(resultFn: any): boolean;
|
package/lib/utils/isPromise.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isPromise.js","names":["isPromise","resultFn","then"],"sources":["../../src/utils/isPromise.ts"],"sourcesContent":["export default function isPromise(resultFn: any) {\n return typeof resultFn.then === 'function';\n}\n"],"mappings":";;;;;;AAAe,SAASA,SAASA,CAACC,QAAa,EAAE;EAC/C,OAAO,OAAOA,QAAQ,CAACC,IAAI,KAAK,UAAU;AAC5C","ignoreList":[]}
|
package/lib/utils/isPromise.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isPromise.mjs","names":["isPromise","resultFn","then"],"sources":["../../src/utils/isPromise.ts"],"sourcesContent":["export default function isPromise(resultFn: any) {\n return typeof resultFn.then === 'function';\n}\n"],"mappings":"AAAA,eAAe,SAASA,SAASA,CAACC,QAAa,EAAE;EAC/C,OAAO,OAAOA,QAAQ,CAACC,IAAI,KAAK,UAAU;AAC5C","ignoreList":[]}
|
package/lib/utils/isRetina.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function isRetina(): boolean;
|
package/lib/utils/isRetina.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = isRetina;
|
|
7
|
-
function isRetina() {
|
|
8
|
-
if (!window) return false;
|
|
9
|
-
if (window.matchMedia) return window.matchMedia("(-webkit-min-device-pixel-ratio: 1.25),\n (min--moz-device-pixel-ratio: 1.25),\n (-o-min-device-pixel-ratio: 1.25/1),\n (min-device-pixel-ratio: 1.25),\n (min-resolution: 200dpi),\n (min-resolution: 1.25dppx)").matches;
|
|
10
|
-
if (window.devicePixelRatio) {
|
|
11
|
-
return window.devicePixelRatio > 1;
|
|
12
|
-
}
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=isRetina.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isRetina.js","names":["isRetina","window","matchMedia","matches","devicePixelRatio"],"sources":["../../src/utils/isRetina.ts"],"sourcesContent":["export default function isRetina() {\n if (!window) return false;\n if (window.matchMedia)\n return window.matchMedia(`(-webkit-min-device-pixel-ratio: 1.25),\n (min--moz-device-pixel-ratio: 1.25),\n (-o-min-device-pixel-ratio: 1.25/1),\n (min-device-pixel-ratio: 1.25),\n (min-resolution: 200dpi),\n (min-resolution: 1.25dppx)`).matches;\n if (window.devicePixelRatio) {\n return window.devicePixelRatio > 1;\n }\n return false;\n}\n"],"mappings":";;;;;;AAAe,SAASA,QAAQA,CAAA,EAAG;EACjC,IAAI,CAACC,MAAM,EAAE,OAAO,KAAK;EACzB,IAAIA,MAAM,CAACC,UAAU,EACnB,OAAOD,MAAM,CAACC,UAAU,kOAKG,CAAC,CAACC,OAAO;EACtC,IAAIF,MAAM,CAACG,gBAAgB,EAAE;IAC3B,OAAOH,MAAM,CAACG,gBAAgB,GAAG,CAAC;EACpC;EACA,OAAO,KAAK;AACd","ignoreList":[]}
|
package/lib/utils/isRetina.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export default function isRetina() {
|
|
2
|
-
if (!window) return false;
|
|
3
|
-
if (window.matchMedia) return window.matchMedia("(-webkit-min-device-pixel-ratio: 1.25),\n (min--moz-device-pixel-ratio: 1.25),\n (-o-min-device-pixel-ratio: 1.25/1),\n (min-device-pixel-ratio: 1.25),\n (min-resolution: 200dpi),\n (min-resolution: 1.25dppx)").matches;
|
|
4
|
-
if (window.devicePixelRatio) {
|
|
5
|
-
return window.devicePixelRatio > 1;
|
|
6
|
-
}
|
|
7
|
-
return false;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=isRetina.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isRetina.mjs","names":["isRetina","window","matchMedia","matches","devicePixelRatio"],"sources":["../../src/utils/isRetina.ts"],"sourcesContent":["export default function isRetina() {\n if (!window) return false;\n if (window.matchMedia)\n return window.matchMedia(`(-webkit-min-device-pixel-ratio: 1.25),\n (min--moz-device-pixel-ratio: 1.25),\n (-o-min-device-pixel-ratio: 1.25/1),\n (min-device-pixel-ratio: 1.25),\n (min-resolution: 200dpi),\n (min-resolution: 1.25dppx)`).matches;\n if (window.devicePixelRatio) {\n return window.devicePixelRatio > 1;\n }\n return false;\n}\n"],"mappings":"AAAA,eAAe,SAASA,QAAQA,CAAA,EAAG;EACjC,IAAI,CAACC,MAAM,EAAE,OAAO,KAAK;EACzB,IAAIA,MAAM,CAACC,UAAU,EACnB,OAAOD,MAAM,CAACC,UAAU,kOAKG,CAAC,CAACC,OAAO;EACtC,IAAIF,MAAM,CAACG,gBAAgB,EAAE;IAC3B,OAAOH,MAAM,CAACG,gBAAgB,GAAG,CAAC;EACpC;EACA,OAAO,KAAK;AACd","ignoreList":[]}
|
package/lib/utils/logger.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare class Logger {
|
|
2
|
-
private logger;
|
|
3
|
-
constructor(logger?: typeof console);
|
|
4
|
-
console(level: string, msg: string, component: any): void;
|
|
5
|
-
warn(condition: any, msg: string, component: any): void;
|
|
6
|
-
}
|
|
7
|
-
export { Logger };
|
|
8
|
-
declare const _default: Logger;
|
|
9
|
-
export default _default;
|
package/lib/utils/logger.js
DELETED
|
@@ -1,37 +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.Logger = 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 DEV = process.env.NODE_ENV !== 'production';
|
|
12
|
-
var Logger = exports.Logger = /*#__PURE__*/function () {
|
|
13
|
-
function Logger(logger) {
|
|
14
|
-
(0, _classCallCheck2["default"])(this, Logger);
|
|
15
|
-
(0, _defineProperty2["default"])(this, "logger", void 0);
|
|
16
|
-
this.logger = logger || {
|
|
17
|
-
warn: function warn() {}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
return (0, _createClass2["default"])(Logger, [{
|
|
21
|
-
key: "console",
|
|
22
|
-
value: function console(level, msg, component) {
|
|
23
|
-
this.logger[level](component ? "[".concat(component, "]: ").concat(msg) : msg);
|
|
24
|
-
}
|
|
25
|
-
}, {
|
|
26
|
-
key: "warn",
|
|
27
|
-
value: function warn(condition, msg, component) {
|
|
28
|
-
if (DEV) {
|
|
29
|
-
if (condition) {
|
|
30
|
-
this.console('warn', msg, component);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}]);
|
|
35
|
-
}();
|
|
36
|
-
var _default = exports["default"] = new Logger(console);
|
|
37
|
-
//# sourceMappingURL=logger.js.map
|
package/lib/utils/logger.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","names":["DEV","process","env","NODE_ENV","Logger","exports","logger","_classCallCheck2","_defineProperty2","warn","_createClass2","key","value","console","level","msg","component","concat","condition","_default"],"sources":["../../src/utils/logger.ts"],"sourcesContent":["const DEV = process.env.NODE_ENV !== 'production';\n\nclass Logger {\n private logger: any;\n\n constructor(logger?: typeof console) {\n this.logger = logger || {\n warn: () => {},\n };\n }\n\n console(level: string, msg: string, component: any) {\n this.logger[level](component ? `[${component}]: ${msg}` : msg);\n }\n\n warn(condition: any, msg: string, component: any) {\n if (DEV) {\n if (condition) {\n this.console('warn', msg, component);\n }\n }\n }\n}\nexport { Logger };\nexport default new Logger(console);\n"],"mappings":";;;;;;;;;;AAAA,IAAMA,GAAG,GAAGC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY;AAAC,IAE5CC,MAAM,GAAAC,OAAA,CAAAD,MAAA;EAGV,SAAAA,OAAYE,MAAuB,EAAE;IAAA,IAAAC,gBAAA,mBAAAH,MAAA;IAAA,IAAAI,gBAAA;IACnC,IAAI,CAACF,MAAM,GAAGA,MAAM,IAAI;MACtBG,IAAI,EAAE,SAANA,IAAIA,CAAA,EAAQ,CAAC;IACf,CAAC;EACH;EAAC,WAAAC,aAAA,aAAAN,MAAA;IAAAO,GAAA;IAAAC,KAAA,EAED,SAAAC,OAAOA,CAACC,KAAa,EAAEC,GAAW,EAAEC,SAAc,EAAE;MAClD,IAAI,CAACV,MAAM,CAACQ,KAAK,CAAC,CAACE,SAAS,OAAAC,MAAA,CAAOD,SAAS,SAAAC,MAAA,CAAMF,GAAG,IAAKA,GAAG,CAAC;IAChE;EAAC;IAAAJ,GAAA;IAAAC,KAAA,EAED,SAAAH,IAAIA,CAACS,SAAc,EAAEH,GAAW,EAAEC,SAAc,EAAE;MAChD,IAAIhB,GAAG,EAAE;QACP,IAAIkB,SAAS,EAAE;UACb,IAAI,CAACL,OAAO,CAAC,MAAM,EAAEE,GAAG,EAAEC,SAAS,CAAC;QACtC;MACF;IACF;EAAC;AAAA;AAAA,IAAAG,QAAA,GAAAd,OAAA,cAGY,IAAID,MAAM,CAACS,OAAO,CAAC","ignoreList":[]}
|
package/lib/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/utils/logger.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.mjs","names":["DEV","process","env","NODE_ENV","Logger","logger","_classCallCheck","_defineProperty","warn","_createClass","key","value","console","level","msg","component","concat","condition"],"sources":["../../src/utils/logger.ts"],"sourcesContent":["const DEV = process.env.NODE_ENV !== 'production';\n\nclass Logger {\n private logger: any;\n\n constructor(logger?: typeof console) {\n this.logger = logger || {\n warn: () => {},\n };\n }\n\n console(level: string, msg: string, component: any) {\n this.logger[level](component ? `[${component}]: ${msg}` : msg);\n }\n\n warn(condition: any, msg: string, component: any) {\n if (DEV) {\n if (condition) {\n this.console('warn', msg, component);\n }\n }\n }\n}\nexport { Logger };\nexport default new Logger(console);\n"],"mappings":";;;AAAA,IAAMA,GAAG,GAAGC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY;AAAC,IAE5CC,MAAM;EAGV,SAAAA,OAAYC,MAAuB,EAAE;IAAAC,eAAA,OAAAF,MAAA;IAAAG,eAAA;IACnC,IAAI,CAACF,MAAM,GAAGA,MAAM,IAAI;MACtBG,IAAI,EAAE,SAANA,IAAIA,CAAA,EAAQ,CAAC;IACf,CAAC;EACH;EAAC,OAAAC,YAAA,CAAAL,MAAA;IAAAM,GAAA;IAAAC,KAAA,EAED,SAAAC,OAAOA,CAACC,KAAa,EAAEC,GAAW,EAAEC,SAAc,EAAE;MAClD,IAAI,CAACV,MAAM,CAACQ,KAAK,CAAC,CAACE,SAAS,OAAAC,MAAA,CAAOD,SAAS,SAAAC,MAAA,CAAMF,GAAG,IAAKA,GAAG,CAAC;IAChE;EAAC;IAAAJ,GAAA;IAAAC,KAAA,EAED,SAAAH,IAAIA,CAACS,SAAc,EAAEH,GAAW,EAAEC,SAAc,EAAE;MAChD,IAAIf,GAAG,EAAE;QACP,IAAIiB,SAAS,EAAE;UACb,IAAI,CAACL,OAAO,CAAC,MAAM,EAAEE,GAAG,EAAEC,SAAS,CAAC;QACtC;MACF;IACF;EAAC;AAAA;AAEH,SAASX,MAAM;AACf,eAAe,IAAIA,MAAM,CAACQ,OAAO,CAAC","ignoreList":[]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = numericChecker;
|
|
7
|
-
function numericChecker() {
|
|
8
|
-
var _float = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
9
|
-
var FLOAT = {
|
|
10
|
-
COMPLETE: /^-?(\d+)\.*(\d+)$/,
|
|
11
|
-
INCOMPLETE: /^-?(\d*)?\.*$/
|
|
12
|
-
};
|
|
13
|
-
var NUMBER = {
|
|
14
|
-
COMPLETE: /^-?\d+$/,
|
|
15
|
-
INCOMPLETE: /^-?$/
|
|
16
|
-
};
|
|
17
|
-
var _ref = _float ? FLOAT : NUMBER,
|
|
18
|
-
COMPLETE = _ref.COMPLETE,
|
|
19
|
-
INCOMPLETE = _ref.INCOMPLETE;
|
|
20
|
-
return {
|
|
21
|
-
complete: function complete(value) {
|
|
22
|
-
return COMPLETE.test(value);
|
|
23
|
-
},
|
|
24
|
-
incomplete: function incomplete(value) {
|
|
25
|
-
return INCOMPLETE.test(value);
|
|
26
|
-
},
|
|
27
|
-
numOrDefault: function numOrDefault(value) {
|
|
28
|
-
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
29
|
-
return COMPLETE.test(value) ? value : defaultValue;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=numericChecker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"numericChecker.js","names":["numericChecker","float","arguments","length","undefined","FLOAT","COMPLETE","INCOMPLETE","NUMBER","_ref","complete","value","test","incomplete","numOrDefault","defaultValue"],"sources":["../../src/utils/numericChecker.ts"],"sourcesContent":["export default function numericChecker(float = false) {\n const FLOAT = {\n COMPLETE: /^-?(\\d+)\\.*(\\d+)$/,\n INCOMPLETE: /^-?(\\d*)?\\.*$/,\n };\n\n const NUMBER = {\n COMPLETE: /^-?\\d+$/,\n INCOMPLETE: /^-?$/,\n };\n\n const { COMPLETE, INCOMPLETE } = float ? FLOAT : NUMBER;\n return {\n complete: (value: string) => COMPLETE.test(value),\n incomplete: (value: string) => INCOMPLETE.test(value),\n numOrDefault: (value: string, defaultValue = 0) =>\n COMPLETE.test(value) ? value : defaultValue,\n };\n}\n"],"mappings":";;;;;;AAAe,SAASA,cAAcA,CAAA,EAAgB;EAAA,IAAfC,MAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EAClD,IAAMG,KAAK,GAAG;IACZC,QAAQ,EAAE,mBAAmB;IAC7BC,UAAU,EAAE;EACd,CAAC;EAED,IAAMC,MAAM,GAAG;IACbF,QAAQ,EAAE,SAAS;IACnBC,UAAU,EAAE;EACd,CAAC;EAED,IAAAE,IAAA,GAAiCR,MAAK,GAAGI,KAAK,GAAGG,MAAM;IAA/CF,QAAQ,GAAAG,IAAA,CAARH,QAAQ;IAAEC,UAAU,GAAAE,IAAA,CAAVF,UAAU;EAC5B,OAAO;IACLG,QAAQ,EAAE,SAAVA,QAAQA,CAAGC,KAAa;MAAA,OAAKL,QAAQ,CAACM,IAAI,CAACD,KAAK,CAAC;IAAA;IACjDE,UAAU,EAAE,SAAZA,UAAUA,CAAGF,KAAa;MAAA,OAAKJ,UAAU,CAACK,IAAI,CAACD,KAAK,CAAC;IAAA;IACrDG,YAAY,EAAE,SAAdA,YAAYA,CAAGH,KAAa;MAAA,IAAEI,YAAY,GAAAb,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;MAAA,OAC5CI,QAAQ,CAACM,IAAI,CAACD,KAAK,CAAC,GAAGA,KAAK,GAAGI,YAAY;IAAA;EAC/C,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export default function numericChecker() {
|
|
2
|
-
var _float = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
3
|
-
var FLOAT = {
|
|
4
|
-
COMPLETE: /^-?(\d+)\.*(\d+)$/,
|
|
5
|
-
INCOMPLETE: /^-?(\d*)?\.*$/
|
|
6
|
-
};
|
|
7
|
-
var NUMBER = {
|
|
8
|
-
COMPLETE: /^-?\d+$/,
|
|
9
|
-
INCOMPLETE: /^-?$/
|
|
10
|
-
};
|
|
11
|
-
var _ref = _float ? FLOAT : NUMBER,
|
|
12
|
-
COMPLETE = _ref.COMPLETE,
|
|
13
|
-
INCOMPLETE = _ref.INCOMPLETE;
|
|
14
|
-
return {
|
|
15
|
-
complete: function complete(value) {
|
|
16
|
-
return COMPLETE.test(value);
|
|
17
|
-
},
|
|
18
|
-
incomplete: function incomplete(value) {
|
|
19
|
-
return INCOMPLETE.test(value);
|
|
20
|
-
},
|
|
21
|
-
numOrDefault: function numOrDefault(value) {
|
|
22
|
-
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
23
|
-
return COMPLETE.test(value) ? value : defaultValue;
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=numericChecker.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"numericChecker.mjs","names":["numericChecker","float","arguments","length","undefined","FLOAT","COMPLETE","INCOMPLETE","NUMBER","_ref","complete","value","test","incomplete","numOrDefault","defaultValue"],"sources":["../../src/utils/numericChecker.ts"],"sourcesContent":["export default function numericChecker(float = false) {\n const FLOAT = {\n COMPLETE: /^-?(\\d+)\\.*(\\d+)$/,\n INCOMPLETE: /^-?(\\d*)?\\.*$/,\n };\n\n const NUMBER = {\n COMPLETE: /^-?\\d+$/,\n INCOMPLETE: /^-?$/,\n };\n\n const { COMPLETE, INCOMPLETE } = float ? FLOAT : NUMBER;\n return {\n complete: (value: string) => COMPLETE.test(value),\n incomplete: (value: string) => INCOMPLETE.test(value),\n numOrDefault: (value: string, defaultValue = 0) =>\n COMPLETE.test(value) ? value : defaultValue,\n };\n}\n"],"mappings":"AAAA,eAAe,SAASA,cAAcA,CAAA,EAAgB;EAAA,IAAfC,MAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EAClD,IAAMG,KAAK,GAAG;IACZC,QAAQ,EAAE,mBAAmB;IAC7BC,UAAU,EAAE;EACd,CAAC;EAED,IAAMC,MAAM,GAAG;IACbF,QAAQ,EAAE,SAAS;IACnBC,UAAU,EAAE;EACd,CAAC;EAED,IAAAE,IAAA,GAAiCR,MAAK,GAAGI,KAAK,GAAGG,MAAM;IAA/CF,QAAQ,GAAAG,IAAA,CAARH,QAAQ;IAAEC,UAAU,GAAAE,IAAA,CAAVF,UAAU;EAC5B,OAAO;IACLG,QAAQ,EAAE,SAAVA,QAAQA,CAAGC,KAAa;MAAA,OAAKL,QAAQ,CAACM,IAAI,CAACD,KAAK,CAAC;IAAA;IACjDE,UAAU,EAAE,SAAZA,UAAUA,CAAGF,KAAa;MAAA,OAAKJ,UAAU,CAACK,IAAI,CAACD,KAAK,CAAC;IAAA;IACrDG,YAAY,EAAE,SAAdA,YAAYA,CAAGH,KAAa;MAAA,IAAEI,YAAY,GAAAb,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;MAAA,OAC5CI,QAAQ,CAACM,IAAI,CAACD,KAAK,CAAC,GAAGA,KAAK,GAAGI,YAAY;IAAA;EAC/C,CAAC;AACH","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function ownerDocument(node?: Node): Document;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = ownerDocument;
|
|
7
|
-
function ownerDocument(node) {
|
|
8
|
-
return (node === null || node === void 0 ? void 0 : node.ownerDocument) || document;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=ownerDocument.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ownerDocument.js","names":["ownerDocument","node","document"],"sources":["../../src/utils/ownerDocument.ts"],"sourcesContent":["export default function ownerDocument(node?: Node) {\n return node?.ownerDocument || document;\n}\n"],"mappings":";;;;;;AAAe,SAASA,aAAaA,CAACC,IAAW,EAAE;EACjD,OAAO,CAAAA,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAED,aAAa,KAAIE,QAAQ;AACxC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ownerDocument.mjs","names":["ownerDocument","node","document"],"sources":["../../src/utils/ownerDocument.ts"],"sourcesContent":["export default function ownerDocument(node?: Node) {\n return node?.ownerDocument || document;\n}\n"],"mappings":"AAAA,eAAe,SAASA,aAAaA,CAACC,IAAW,EAAE;EACjD,OAAO,CAAAA,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAED,aAAa,KAAIE,QAAQ;AACxC","ignoreList":[]}
|
package/lib/utils/pick.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function pick<T extends {}, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
|
package/lib/utils/pick.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = pick;
|
|
7
|
-
function pick(obj, keys) {
|
|
8
|
-
var res = {};
|
|
9
|
-
var len = keys.length;
|
|
10
|
-
var idx = -1;
|
|
11
|
-
while (++idx < len) {
|
|
12
|
-
var key = keys[idx];
|
|
13
|
-
if (key in obj) {
|
|
14
|
-
res[key] = obj[key];
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return res;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=pick.js.map
|
package/lib/utils/pick.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pick.js","names":["pick","obj","keys","res","len","length","idx","key"],"sources":["../../src/utils/pick.ts"],"sourcesContent":["export default function pick<T extends {}, K extends keyof T>(obj: T, keys: K[]) {\n const res: any = {};\n const len = keys.length;\n let idx = -1;\n while (++idx < len) {\n const key = keys[idx];\n if (key in obj) {\n res[key] = obj[key];\n }\n }\n return res as Pick<T, K>;\n}\n"],"mappings":";;;;;;AAAe,SAASA,IAAIA,CAAkCC,GAAM,EAAEC,IAAS,EAAE;EAC/E,IAAMC,GAAQ,GAAG,CAAC,CAAC;EACnB,IAAMC,GAAG,GAAGF,IAAI,CAACG,MAAM;EACvB,IAAIC,GAAG,GAAG,CAAC,CAAC;EACZ,OAAO,EAAEA,GAAG,GAAGF,GAAG,EAAE;IAClB,IAAMG,GAAG,GAAGL,IAAI,CAACI,GAAG,CAAC;IACrB,IAAIC,GAAG,IAAIN,GAAG,EAAE;MACdE,GAAG,CAACI,GAAG,CAAC,GAAGN,GAAG,CAACM,GAAG,CAAC;IACrB;EACF;EACA,OAAOJ,GAAG;AACZ","ignoreList":[]}
|
package/lib/utils/pick.mjs
DELETED
package/lib/utils/pick.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pick.mjs","names":["pick","obj","keys","res","len","length","idx","key"],"sources":["../../src/utils/pick.ts"],"sourcesContent":["export default function pick<T extends {}, K extends keyof T>(obj: T, keys: K[]) {\n const res: any = {};\n const len = keys.length;\n let idx = -1;\n while (++idx < len) {\n const key = keys[idx];\n if (key in obj) {\n res[key] = obj[key];\n }\n }\n return res as Pick<T, K>;\n}\n"],"mappings":"AAAA,eAAe,SAASA,IAAIA,CAAkCC,GAAM,EAAEC,IAAS,EAAE;EAC/E,IAAMC,GAAQ,GAAG,CAAC,CAAC;EACnB,IAAMC,GAAG,GAAGF,IAAI,CAACG,MAAM;EACvB,IAAIC,GAAG,GAAG,CAAC,CAAC;EACZ,OAAO,EAAEA,GAAG,GAAGF,GAAG,EAAE;IAClB,IAAMG,GAAG,GAAGL,IAAI,CAACI,GAAG,CAAC;IACrB,IAAIC,GAAG,IAAIN,GAAG,EAAE;MACdE,GAAG,CAACI,GAAG,CAAC,GAAGN,GAAG,CAACM,GAAG,CAAC;IACrB;EACF;EACA,OAAOJ,GAAG;AACZ","ignoreList":[]}
|
|
@@ -1,58 +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"] = propsForElement;
|
|
8
|
-
exports.validAttr = void 0;
|
|
9
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _excluded = ["__excludeProps"];
|
|
11
|
-
var allowedAttributes = new Set(['children', 'dangerouslySetInnerHTML', 'key', 'ref', 'autoFocus', 'defaultValue', 'valueLink', 'defaultChecked', 'checkedLink', 'innerHTML', 'suppressContentEditableWarning', 'onFocusIn', 'onFocusOut', 'className', 'onCopy', 'onCut', 'onPaste', 'onCompositionEnd', 'onCompositionStart', 'onCompositionUpdate', 'onKeyDown', 'onKeyPress', 'onKeyUp', 'onFocus', 'onBlur', 'onChange', 'onInput', 'onInvalid', 'onSubmit', 'onReset', 'onClick', 'onContextMenu', 'onDoubleClick', 'onAuxClick', 'onDrag', 'onDragEnd', 'onDragEnter', 'onDragExit', 'onDragLeave', 'onDragOver', 'onDragStart', 'onDrop', 'onMouseDown', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseOut', 'onMouseOver', 'onMouseUp', 'onSelect', 'onTouchCancel', 'onTouchEnd', 'onTouchMove', 'onTouchStart', 'onScroll', 'onWheel', 'onAbort', 'onCanPlay', 'onCanPlayThrough', 'onDurationChange', 'onEmptied', 'onEncrypted', 'onEnded', 'onError', 'onLoadedData', 'onLoadedMetadata', 'onLoadStart', 'onPause', 'onPlay', 'onPlaying', 'onProgress', 'onRateChange', 'onSeeked', 'onSeeking', 'onStalled', 'onSuspend', 'onTimeUpdate', 'onVolumeChange', 'onWaiting', 'onLoad', 'onAnimationStart', 'onAnimationEnd', 'onAnimationIteration', 'onTransitionEnd', 'onCopyCapture', 'onCutCapture', 'onPasteCapture', 'onCompositionEndCapture', 'onCompositionStartCapture', 'onCompositionUpdateCapture', 'onKeyDownCapture', 'onKeyPressCapture', 'onKeyUpCapture', 'onFocusCapture', 'onBlurCapture', 'onChangeCapture', 'onInputCapture', 'onSubmitCapture', 'onResetCapture', 'onClickCapture', 'onContextMenuCapture', 'onDoubleClickCapture', 'onDragCapture', 'onDragEndCapture', 'onDragEnterCapture', 'onDragExitCapture', 'onDragLeaveCapture', 'onDragOverCapture', 'onDragStartCapture', 'onDropCapture', 'onMouseDownCapture', 'onMouseEnterCapture', 'onMouseLeaveCapture', 'onMouseMoveCapture', 'onMouseOutCapture', 'onMouseOverCapture', 'onMouseUpCapture', 'onSelectCapture', 'onTouchCancelCapture', 'onTouchEndCapture', 'onTouchMoveCapture', 'onTouchStartCapture', 'onScrollCapture', 'onWheelCapture', 'onAbortCapture', 'onCanPlayCapture', 'onCanPlayThroughCapture', 'onDurationChangeCapture', 'onEmptiedCapture', 'onEncryptedCapture', 'onEndedCapture', 'onErrorCapture', 'onLoadedDataCapture', 'onLoadedMetadataCapture', 'onLoadStartCapture', 'onPauseCapture', 'onPlayCapture', 'onPlayingCapture', 'onProgressCapture', 'onRateChangeCapture', 'onSeekedCapture', 'onSeekingCapture', 'onStalledCapture', 'onSuspendCapture', 'onTimeUpdateCapture', 'onVolumeChangeCapture', 'onWaitingCapture', 'onLoadCapture', 'onAnimationStartCapture', 'onAnimationEndCapture', 'onAnimationIterationCapture', 'onTransitionEndCapture', 'accept', 'acceptCharset', 'accessKey', 'action', 'allowFullScreen', 'allowTransparency', 'alt', 'as', 'async', 'autoComplete', 'autoPlay', 'capture', 'cellPadding', 'cellSpacing', 'charSet', 'challenge', 'checked', 'cite', 'classID', 'className', 'cols', 'colSpan', 'content', 'contentEditable', 'contextMenu', 'controlsList', 'controls', 'coords', 'crossOrigin', 'data', 'dateTime', 'default', 'defer', 'dir', 'disabled', 'download', 'draggable', 'encType', 'form', 'formAction', 'formEncType', 'formMethod', 'formNoValidate', 'formTarget', 'frameBorder', 'headers', 'height', 'hidden', 'high', 'href', 'hrefLang', 'htmlFor', 'httpEquiv', 'icon', 'id', 'inputMode', 'integrity', 'is', 'keyParams', 'keyType', 'kind', 'label', 'lang', 'list', 'loop', 'low', 'manifest', 'marginHeight', 'marginWidth', 'max', 'maxLength', 'media', 'mediaGroup', 'method', 'min', 'minLength', 'multiple', 'muted', 'name', 'nonce', 'noValidate', 'open', 'optimum', 'pattern', 'placeholder', 'playsInline', 'poster', 'preload', 'profile', 'radioGroup', 'readOnly', 'referrerPolicy', 'rel', 'required', 'reversed', 'role', 'rows', 'rowSpan', 'sandbox', 'scope', 'scoped', 'scrolling', 'seamless', 'selected', 'shape', 'size', 'sizes', 'span', 'spellCheck', 'src', 'srcDoc', 'srcLang', 'srcSet', 'start', 'step', 'style', 'summary', 'tabIndex', 'target', 'title', 'type', 'useMap', 'value', 'width', 'wmode', 'wrap', 'about', 'datatype', 'inlist', 'prefix', 'property', 'resource', 'typeof', 'vocab', 'autoCapitalize', 'autoCorrect', 'autoSave', 'color', 'itemProp', 'itemScope', 'itemType', 'itemID', 'itemRef', 'results', 'security', 'unselectable', 'accentHeight', 'accumulate', 'additive', 'alignmentBaseline', 'allowReorder', 'alphabetic', 'amplitude', 'arabicForm', 'ascent', 'attributeName', 'attributeType', 'autoReverse', 'azimuth', 'baseFrequency', 'baseProfile', 'baselineShift', 'bbox', 'begin', 'bias', 'by', 'calcMode', 'capHeight', 'clip', 'clipPath', 'clipRule', 'clipPathUnits', 'colorInterpolation', 'colorInterpolationFilters', 'colorProfile', 'colorRendering', 'contentScriptType', 'contentStyleType', 'cursor', 'cx', 'cy', 'd', 'decelerate', 'descent', 'diffuseConstant', 'direction', 'display', 'divisor', 'dominantBaseline', 'dur', 'dx', 'dy', 'edgeMode', 'elevation', 'enableBackground', 'end', 'exponent', 'externalResourcesRequired', 'fill', 'fillOpacity', 'fillRule', 'filter', 'filterRes', 'filterUnits', 'floodColor', 'floodOpacity', 'focusable', 'fontFamily', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontWeight', 'format', 'from', 'fx', 'fy', 'g1', 'g2', 'glyphName', 'glyphOrientationHorizontal', 'glyphOrientationVertical', 'glyphRef', 'gradientTransform', 'gradientUnits', 'hanging', 'horizAdvX', 'horizOriginX', 'ideographic', 'imageRendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kernelMatrix', 'kernelUnitLength', 'kerning', 'keyPoints', 'keySplines', 'keyTimes', 'lengthAdjust', 'letterSpacing', 'lightingColor', 'limitingConeAngle', 'local', 'markerEnd', 'markerMid', 'markerStart', 'markerHeight', 'markerUnits', 'markerWidth', 'mask', 'maskContentUnits', 'maskUnits', 'mathematical', 'mode', 'numOctaves', 'offset', 'opacity', 'operator', 'order', 'orient', 'orientation', 'origin', 'overflow', 'overlinePosition', 'overlineThickness', 'paintOrder', 'panose1', 'pathLength', 'patternContentUnits', 'patternTransform', 'patternUnits', 'pointerEvents', 'points', 'pointsAtX', 'pointsAtY', 'pointsAtZ', 'preserveAlpha', 'preserveAspectRatio', 'primitiveUnits', 'r', 'radius', 'refX', 'refY', 'renderingIntent', 'repeatCount', 'repeatDur', 'requiredExtensions', 'requiredFeatures', 'restart', 'result', 'rotate', 'rx', 'ry', 'scale', 'seed', 'shapeRendering', 'slope', 'spacing', 'specularConstant', 'specularExponent', 'speed', 'spreadMethod', 'startOffset', 'stdDeviation', 'stemh', 'stemv', 'stitchTiles', 'stopColor', 'stopOpacity', 'strikethroughPosition', 'strikethroughThickness', 'string', 'stroke', 'strokeDasharray', 'strokeDashoffset', 'strokeLinecap', 'strokeLinejoin', 'strokeMiterlimit', 'strokeOpacity', 'strokeWidth', 'surfaceScale', 'systemLanguage', 'tableValues', 'targetX', 'targetY', 'textAnchor', 'textDecoration', 'textRendering', 'textLength', 'to', 'transform', 'u1', 'u2', 'underlinePosition', 'underlineThickness', 'unicode', 'unicodeBidi', 'unicodeRange', 'unitsPerEm', 'vAlphabetic', 'vHanging', 'vIdeographic', 'vMathematical', 'values', 'vectorEffect', 'version', 'vertAdvY', 'vertOriginX', 'vertOriginY', 'viewBox', 'viewTarget', 'visibility', 'widths', 'wordSpacing', 'writingMode', 'x', 'xHeight', 'x1', 'x2', 'xChannelSelector', 'xlinkActuate', 'xlinkArcrole', 'xlinkHref', 'xlinkRole', 'xlinkShow', 'xlinkTitle', 'xlinkType', 'xmlBase', 'xmlns', 'xmlnsXlink', 'xmlLang', 'xmlSpace', 'y', 'y1', 'y2', 'yChannelSelector', 'z', 'zoomAndPan', 'onPointerDown', 'onPointerMove', 'onPointerUp', 'onPointerCancel', 'onGotPointerCapture', 'onLostPointerCapture', 'onPointerEnter', 'onPointerLeave', 'onPointerOver', 'onPointerOut', 'className', 'htmlFor', 'autofocus', 'elementtiming', 'attr', 'inert', 'suppressHydrationWarning']);
|
|
12
|
-
var validAttr = exports.validAttr = function validAttr(name) {
|
|
13
|
-
if (name.startsWith('x-')) return true;
|
|
14
|
-
if (name.startsWith('data-')) return true;
|
|
15
|
-
if (name.startsWith('aria-')) return true;
|
|
16
|
-
return allowedAttributes.has(name);
|
|
17
|
-
};
|
|
18
|
-
var omittedCloseTags = {
|
|
19
|
-
area: true,
|
|
20
|
-
base: true,
|
|
21
|
-
br: true,
|
|
22
|
-
col: true,
|
|
23
|
-
embed: true,
|
|
24
|
-
hr: true,
|
|
25
|
-
img: true,
|
|
26
|
-
input: true,
|
|
27
|
-
keygen: true,
|
|
28
|
-
link: true,
|
|
29
|
-
meta: true,
|
|
30
|
-
param: true,
|
|
31
|
-
source: true,
|
|
32
|
-
track: true,
|
|
33
|
-
wbr: true,
|
|
34
|
-
// because Children default value [Object object]
|
|
35
|
-
textarea: true
|
|
36
|
-
};
|
|
37
|
-
function propsForElement(props, element) {
|
|
38
|
-
if (element && typeof element !== 'string') {
|
|
39
|
-
return props;
|
|
40
|
-
} else {
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
var _ref = props,
|
|
43
|
-
_ref$__excludeProps = _ref.__excludeProps,
|
|
44
|
-
__excludeProps = _ref$__excludeProps === void 0 ? [] : _ref$__excludeProps,
|
|
45
|
-
other = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
46
|
-
var validProps = Object.keys(other).reduce(function (acc, propName) {
|
|
47
|
-
if (!__excludeProps.includes(propName) && validAttr(propName)) {
|
|
48
|
-
acc[propName] = other[propName];
|
|
49
|
-
}
|
|
50
|
-
return acc;
|
|
51
|
-
}, {});
|
|
52
|
-
if (element && omittedCloseTags[element]) {
|
|
53
|
-
validProps['children'] = undefined;
|
|
54
|
-
}
|
|
55
|
-
return validProps;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=propsForElement.js.map
|