react-input-material 0.0.433 → 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/FileInput.styles.css +3 -3
- package/components/GenericAnimate.d.ts +5 -3
- package/components/GenericAnimate.js +1 -1
- package/components/GenericInput.js +1 -1
- package/components/GenericInput.styles.css +1 -1
- package/components/Inputs.js +1 -1
- package/components/Inputs.styles.css +2 -2
- package/components/Interval.js +1 -1
- package/components/Interval.styles.css +2 -2
- package/components/RequireableCheckbox.styles.css +1 -1
- package/index.js +1 -1
- package/index.styles.css +6 -6
- package/package.json +4 -2
- package/type.d.ts +5 -0
- package/components/Dummy.tsx +0 -58
- package/components/FileInput.tsx +0 -1010
- package/components/GenericAnimate.tsx +0 -88
- 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,88 +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 import s
|
|
20
|
-
import {boolean, number, string} from 'clientnode/property-types'
|
|
21
|
-
import {Mapping} from 'clientnode/type'
|
|
22
|
-
import {FunctionComponent, ReactElement} from 'react'
|
|
23
|
-
import {CSSTransition} from 'react-transition-group'
|
|
24
|
-
import {TransitionProps} from 'react-transition-group/Transition'
|
|
25
|
-
|
|
26
|
-
/*
|
|
27
|
-
"namedExport" version of css-loader:
|
|
28
|
-
|
|
29
|
-
import {
|
|
30
|
-
genericAnimateClassName,
|
|
31
|
-
genericAnimateListWrapperClassName,
|
|
32
|
-
genericAnimateWrapperClassName
|
|
33
|
-
} from './GenericAnimate.module'
|
|
34
|
-
*/
|
|
35
|
-
import cssClassNames from './GenericAnimate.module'
|
|
36
|
-
// endregion
|
|
37
|
-
const CSS_CLASS_NAMES:Mapping = cssClassNames as Mapping
|
|
38
|
-
/**
|
|
39
|
-
* Generic animation wrapper component.
|
|
40
|
-
* @param properties - Component given properties object.
|
|
41
|
-
*
|
|
42
|
-
* @returns React elements.
|
|
43
|
-
*/
|
|
44
|
-
export const GenericAnimate:FunctionComponent<Partial<TransitionProps<
|
|
45
|
-
HTMLElement|undefined
|
|
46
|
-
>>> =
|
|
47
|
-
<Type extends HTMLElement|undefined = undefined>(
|
|
48
|
-
properties:Partial<TransitionProps<Type>>
|
|
49
|
-
):ReactElement =>
|
|
50
|
-
<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 className={
|
|
61
|
-
CSS_CLASS_NAMES['generic-animate__wrapper']
|
|
62
|
-
}>
|
|
63
|
-
{properties.children}
|
|
64
|
-
</span> :
|
|
65
|
-
Array.isArray(properties.children) ?
|
|
66
|
-
<div
|
|
67
|
-
className={CSS_CLASS_NAMES[
|
|
68
|
-
'generic-animate__list-wrapper'
|
|
69
|
-
]}
|
|
70
|
-
>
|
|
71
|
-
{properties.children}
|
|
72
|
-
</div> :
|
|
73
|
-
properties.children
|
|
74
|
-
}
|
|
75
|
-
</CSSTransition>
|
|
76
|
-
// region static properties
|
|
77
|
-
GenericAnimate.propTypes = {
|
|
78
|
-
appear: boolean,
|
|
79
|
-
classNames: string,
|
|
80
|
-
in: boolean,
|
|
81
|
-
timeout: number
|
|
82
|
-
}
|
|
83
|
-
// endregion
|
|
84
|
-
export default GenericAnimate
|
|
85
|
-
// region vim modline
|
|
86
|
-
// vim: set tabstop=4 shiftwidth=4 expandtab:
|
|
87
|
-
// vim: foldmethod=marker foldmarker=region,endregion:
|
|
88
|
-
// endregion
|