react-input-material 0.0.434 → 0.0.435
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/components/FileInput.js +1 -1
- package/components/GenericInput.js +1 -1
- package/components/Inputs.js +1 -1
- package/components/Interval.js +1 -1
- package/index.js +1 -1
- package/package.json +4 -2
- package/components/Dummy.tsx +0 -58
- package/components/FileInput.tsx +0 -1010
- package/components/GenericAnimate.tsx +0 -95
- package/components/GenericInput.tsx +0 -2875
- package/components/Inputs.tsx +0 -585
- package/components/Interval.tsx +0 -436
- package/components/RequireableCheckbox.tsx +0 -520
- package/components/WrapConfigurations.tsx +0 -127
- package/components/WrapStrict.tsx +0 -43
- package/components/WrapThemeProvider.tsx +0 -48
- package/components/WrapTooltip.tsx +0 -67
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
// #!/usr/bin/env babel-node
|
|
2
|
-
// -*- coding: utf-8 -*-
|
|
3
|
-
/** @module GenericAnimate */
|
|
4
|
-
'use strict'
|
|
5
|
-
/* !
|
|
6
|
-
region header
|
|
7
|
-
[Project page](https://torben.website/react-material-input)
|
|
8
|
-
|
|
9
|
-
Copyright Torben Sickert (info["~at~"]torben.website) 16.12.2012
|
|
10
|
-
|
|
11
|
-
License
|
|
12
|
-
-------
|
|
13
|
-
|
|
14
|
-
This library written by Torben Sickert stand under a creative commons
|
|
15
|
-
naming 3.0 unported license.
|
|
16
|
-
See https://creativecommons.org/licenses/by/3.0/deed.de
|
|
17
|
-
endregion
|
|
18
|
-
*/
|
|
19
|
-
// region imports
|
|
20
|
-
import {boolean, number, string} from 'clientnode/property-types'
|
|
21
|
-
import {Mapping} from 'clientnode/type'
|
|
22
|
-
import {
|
|
23
|
-
ForwardedRef, ForwardRefRenderFunction, forwardRef, ReactElement
|
|
24
|
-
} from 'react'
|
|
25
|
-
import {CSSTransition} from 'react-transition-group'
|
|
26
|
-
|
|
27
|
-
/*
|
|
28
|
-
"namedExport" version of css-loader:
|
|
29
|
-
|
|
30
|
-
import {
|
|
31
|
-
genericAnimateClassName,
|
|
32
|
-
genericAnimateListWrapperClassName,
|
|
33
|
-
genericAnimateWrapperClassName
|
|
34
|
-
} from './GenericAnimate.module'
|
|
35
|
-
*/
|
|
36
|
-
import cssClassNames from './GenericAnimate.module'
|
|
37
|
-
import {GenericAnimateComponent, GenericAnimateProps as Props} from '../type'
|
|
38
|
-
// endregion
|
|
39
|
-
const CSS_CLASS_NAMES:Mapping = cssClassNames as Mapping
|
|
40
|
-
/**
|
|
41
|
-
* Generic animation wrapper component.
|
|
42
|
-
* @param properties - Component given properties object.
|
|
43
|
-
* @param reference - Reference object to forward internal component.
|
|
44
|
-
*
|
|
45
|
-
* @returns React elements.
|
|
46
|
-
*/
|
|
47
|
-
export const GenericAnimateInner = function(
|
|
48
|
-
properties:Props, reference?:ForwardedRef<HTMLDivElement|HTMLSpanElement>
|
|
49
|
-
):ReactElement {
|
|
50
|
-
return <CSSTransition
|
|
51
|
-
appear
|
|
52
|
-
classNames={CSS_CLASS_NAMES['generic-animate']}
|
|
53
|
-
in
|
|
54
|
-
timeout={200}
|
|
55
|
-
unmountOnExit
|
|
56
|
-
{...properties}
|
|
57
|
-
>
|
|
58
|
-
{
|
|
59
|
-
typeof properties.children === 'string' ?
|
|
60
|
-
<span
|
|
61
|
-
className={CSS_CLASS_NAMES['generic-animate__wrapper']}
|
|
62
|
-
ref={reference as ForwardedRef<HTMLSpanElement>}
|
|
63
|
-
>
|
|
64
|
-
{properties.children}
|
|
65
|
-
</span> :
|
|
66
|
-
Array.isArray(properties.children) ?
|
|
67
|
-
<div
|
|
68
|
-
className={CSS_CLASS_NAMES[
|
|
69
|
-
'generic-animate__list-wrapper'
|
|
70
|
-
]}
|
|
71
|
-
ref={reference as ForwardedRef<HTMLDivElement>}
|
|
72
|
-
>
|
|
73
|
-
{properties.children}
|
|
74
|
-
</div> :
|
|
75
|
-
properties.children
|
|
76
|
-
}
|
|
77
|
-
</CSSTransition>
|
|
78
|
-
} as ForwardRefRenderFunction<unknown, Props>
|
|
79
|
-
|
|
80
|
-
export const GenericAnimate:GenericAnimateComponent =
|
|
81
|
-
forwardRef(GenericAnimateInner) as unknown as GenericAnimateComponent
|
|
82
|
-
|
|
83
|
-
// region static properties
|
|
84
|
-
GenericAnimate.propTypes = {
|
|
85
|
-
appear: boolean,
|
|
86
|
-
classNames: string,
|
|
87
|
-
in: boolean,
|
|
88
|
-
timeout: number
|
|
89
|
-
}
|
|
90
|
-
// endregion
|
|
91
|
-
export default GenericAnimate
|
|
92
|
-
// region vim modline
|
|
93
|
-
// vim: set tabstop=4 shiftwidth=4 expandtab:
|
|
94
|
-
// vim: foldmethod=marker foldmarker=region,endregion:
|
|
95
|
-
// endregion
|