feffery_utils_components 0.1.16 → 0.1.18

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.
Files changed (38) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +3 -0
  3. package/Project.toml +1 -1
  4. package/build/lib/feffery_utils_components/FefferyAnimated.py +51 -0
  5. package/build/lib/feffery_utils_components/FefferyAutoAnimate.py +51 -0
  6. package/build/lib/feffery_utils_components/FefferyDiv.py +5 -3
  7. package/build/lib/feffery_utils_components/FefferyMotion.py +91 -0
  8. package/build/lib/feffery_utils_components/FefferySticky.py +1 -1
  9. package/build/lib/feffery_utils_components/_imports_.py +4 -0
  10. package/build/lib/feffery_utils_components/feffery_utils_components.min.js +6 -6
  11. package/build/lib/feffery_utils_components/metadata.json +439 -9
  12. package/build/lib/feffery_utils_components/package-info.json +4 -1
  13. package/feffery_utils_components/FefferyAnimated.py +51 -0
  14. package/feffery_utils_components/FefferyAutoAnimate.py +51 -0
  15. package/feffery_utils_components/FefferyDiv.py +5 -3
  16. package/feffery_utils_components/FefferyMotion.py +91 -0
  17. package/feffery_utils_components/FefferySticky.py +2 -2
  18. package/feffery_utils_components/_imports_.py +4 -0
  19. package/feffery_utils_components/feffery_utils_components.min.js +6 -6
  20. package/feffery_utils_components/metadata.json +444 -10
  21. package/feffery_utils_components/package-info.json +4 -1
  22. package/package.json +4 -1
  23. package/setup.py +8 -3
  24. package/src/FefferyUtilsComponents.jl +5 -3
  25. package/src/jl/''_fefferyanimated.jl +34 -0
  26. package/src/jl/''_fefferyautoanimate.jl +34 -0
  27. package/src/jl/''_fefferydiv.jl +2 -1
  28. package/src/jl/''_fefferymotion.jl +54 -0
  29. package/src/jl/''_fefferysticky.jl +1 -1
  30. package/src/lib/components/FefferyDiv.react.js +99 -2
  31. package/src/lib/components/FefferySticky.react.js +5 -6
  32. package/src/lib/components/animations/FefferyAutoAnimate.react.js +92 -0
  33. package/src/lib/components/animations/FefferyMotion.react.js +218 -0
  34. package/src/lib/components/styles.css +25 -2
  35. package/src/lib/index.js +5 -1
  36. package/tests/MotionTest/app.py +59 -0
  37. package/usage.py +99 -15
  38. package/webpack.config.js +1 -1
package/DESCRIPTION CHANGED
@@ -1,6 +1,6 @@
1
1
  Package: fefferyUtilsComponents
2
2
  Title: Build more utility components for Plotly Dash.
3
- Version: 0.1.16
3
+ Version: 0.1.18
4
4
  Description: Build more utility components for Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -1,5 +1,7 @@
1
1
  # AUTO GENERATED FILE - DO NOT EDIT
2
2
 
3
+ export(''FefferyAutoAnimate)
4
+ export(''FefferyMotion)
3
5
  export(''FefferyBlockColorPicker)
4
6
  export(''FefferyCircleColorPicker)
5
7
  export(''FefferyEyeDropper)
@@ -56,3 +58,4 @@ export(''FefferySortableItem)
56
58
  export(''FefferySplit)
57
59
  export(''FefferySplitPane)
58
60
  export(''FefferySessionStorage)
61
+ export(FefferyAnimated)
package/Project.toml CHANGED
@@ -2,7 +2,7 @@
2
2
  name = "FefferyUtilsComponents"
3
3
  uuid = "1b08a953-4be3-4667-9a23-ea89cd6d0d23"
4
4
  authors = ["CNFeffery <fefferypzy@gmail.com>"]
5
- version = "0.1.16"
5
+ version = "0.1.18"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
@@ -0,0 +1,51 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyAnimated(Component):
7
+ """A FefferyAnimated component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - children (a list of or a singular dash component, string or number; optional)
13
+
14
+ - id (string; optional)
15
+
16
+ - animate (dict; optional)
17
+
18
+ - className (string; optional)
19
+
20
+ - initial (dict; optional)
21
+
22
+ - loading_state (dict; optional)
23
+
24
+ `loading_state` is a dict with keys:
25
+
26
+ - component_name (string; optional):
27
+ Holds the name of the component that is loading.
28
+
29
+ - is_loading (boolean; optional):
30
+ Determines if the component is loading or not.
31
+
32
+ - prop_name (string; optional):
33
+ Holds which property is loading.
34
+
35
+ - style (dict; optional)"""
36
+ _children_props = []
37
+ _base_nodes = ['children']
38
+ _namespace = 'feffery_utils_components'
39
+ _type = 'FefferyAnimated'
40
+ @_explicitize_args
41
+ def __init__(self, children=None, id=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, initial=Component.UNDEFINED, animate=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
42
+ self._prop_names = ['children', 'id', 'animate', 'className', 'initial', 'loading_state', 'style']
43
+ self._valid_wildcard_attributes = []
44
+ self.available_properties = ['children', 'id', 'animate', 'className', 'initial', 'loading_state', 'style']
45
+ self.available_wildcard_properties = []
46
+ _explicit_args = kwargs.pop('_explicit_args')
47
+ _locals = locals()
48
+ _locals.update(kwargs) # For wildcard attrs and excess named props
49
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
50
+
51
+ super(FefferyAnimated, self).__init__(children=children, **args)
@@ -0,0 +1,51 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyAutoAnimate(Component):
7
+ """A FefferyAutoAnimate component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - children (a list of or a singular dash component, string or number; optional)
13
+
14
+ - id (string; optional)
15
+
16
+ - className (string; optional)
17
+
18
+ - duration (number; default 0.25)
19
+
20
+ - easing (string; default 'ease-in-out')
21
+
22
+ - loading_state (dict; optional)
23
+
24
+ `loading_state` is a dict with keys:
25
+
26
+ - component_name (string; optional):
27
+ Holds the name of the component that is loading.
28
+
29
+ - is_loading (boolean; optional):
30
+ Determines if the component is loading or not.
31
+
32
+ - prop_name (string; optional):
33
+ Holds which property is loading.
34
+
35
+ - style (dict; optional)"""
36
+ _children_props = []
37
+ _base_nodes = ['children']
38
+ _namespace = 'feffery_utils_components'
39
+ _type = 'FefferyAutoAnimate'
40
+ @_explicitize_args
41
+ def __init__(self, children=None, id=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, duration=Component.UNDEFINED, easing=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
42
+ self._prop_names = ['children', 'id', 'className', 'duration', 'easing', 'loading_state', 'style']
43
+ self._valid_wildcard_attributes = []
44
+ self.available_properties = ['children', 'id', 'className', 'duration', 'easing', 'loading_state', 'style']
45
+ self.available_wildcard_properties = []
46
+ _explicit_args = kwargs.pop('_explicit_args')
47
+ _locals = locals()
48
+ _locals.update(kwargs) # For wildcard attrs and excess named props
49
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
50
+
51
+ super(FefferyAutoAnimate, self).__init__(children=children, **args)
@@ -82,6 +82,8 @@ Keyword arguments:
82
82
 
83
83
  - index (number; optional)
84
84
 
85
+ - scrollbar (a value equal to: 'default', 'simple', 'hidden'; default 'default')
86
+
85
87
  - shadow (a value equal to: 'no-shadow', 'hover-shadow', 'always-shadow'; default 'no-shadow')
86
88
 
87
89
  - style (dict; optional)"""
@@ -90,10 +92,10 @@ Keyword arguments:
90
92
  _namespace = 'feffery_utils_components'
91
93
  _type = 'FefferyDiv'
92
94
  @_explicitize_args
93
- def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, appendChild=Component.UNDEFINED, insertChild=Component.UNDEFINED, replaceChild=Component.UNDEFINED, deleteChildIndex=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, _width=Component.UNDEFINED, _height=Component.UNDEFINED, debounceWait=Component.UNDEFINED, mouseEnterCount=Component.UNDEFINED, mouseLeaveCount=Component.UNDEFINED, nClicks=Component.UNDEFINED, nDoubleClicks=Component.UNDEFINED, enableListenContextMenu=Component.UNDEFINED, contextMenuEvent=Component.UNDEFINED, isHovering=Component.UNDEFINED, enableClickAway=Component.UNDEFINED, clickAwayCount=Component.UNDEFINED, shadow=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
94
- self._prop_names = ['children', 'id', '_height', '_width', 'appendChild', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'deleteChildIndex', 'enableClickAway', 'enableListenContextMenu', 'insertChild', 'isHovering', 'key', 'loading_state', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'replaceChild', 'shadow', 'style']
95
+ def __init__(self, children=None, id=Component.UNDEFINED, key=Component.UNDEFINED, appendChild=Component.UNDEFINED, insertChild=Component.UNDEFINED, replaceChild=Component.UNDEFINED, deleteChildIndex=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, _width=Component.UNDEFINED, _height=Component.UNDEFINED, debounceWait=Component.UNDEFINED, mouseEnterCount=Component.UNDEFINED, mouseLeaveCount=Component.UNDEFINED, nClicks=Component.UNDEFINED, nDoubleClicks=Component.UNDEFINED, enableListenContextMenu=Component.UNDEFINED, contextMenuEvent=Component.UNDEFINED, isHovering=Component.UNDEFINED, enableClickAway=Component.UNDEFINED, clickAwayCount=Component.UNDEFINED, shadow=Component.UNDEFINED, scrollbar=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
96
+ self._prop_names = ['children', 'id', '_height', '_width', 'appendChild', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'deleteChildIndex', 'enableClickAway', 'enableListenContextMenu', 'insertChild', 'isHovering', 'key', 'loading_state', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'replaceChild', 'scrollbar', 'shadow', 'style']
95
97
  self._valid_wildcard_attributes = []
96
- self.available_properties = ['children', 'id', '_height', '_width', 'appendChild', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'deleteChildIndex', 'enableClickAway', 'enableListenContextMenu', 'insertChild', 'isHovering', 'key', 'loading_state', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'replaceChild', 'shadow', 'style']
98
+ self.available_properties = ['children', 'id', '_height', '_width', 'appendChild', 'className', 'clickAwayCount', 'contextMenuEvent', 'debounceWait', 'deleteChildIndex', 'enableClickAway', 'enableListenContextMenu', 'insertChild', 'isHovering', 'key', 'loading_state', 'mouseEnterCount', 'mouseLeaveCount', 'nClicks', 'nDoubleClicks', 'replaceChild', 'scrollbar', 'shadow', 'style']
97
99
  self.available_wildcard_properties = []
98
100
  _explicit_args = kwargs.pop('_explicit_args')
99
101
  _locals = locals()
@@ -0,0 +1,91 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class FefferyMotion(Component):
7
+ """A FefferyMotion component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - children (a list of or a singular dash component, string or number; optional)
13
+
14
+ - id (string; optional)
15
+
16
+ - animate (dict | string; optional)
17
+
18
+ - className (string; optional)
19
+
20
+ - exit (dict | string; optional)
21
+
22
+ - initial (dict | boolean | string; optional)
23
+
24
+ - loading_state (dict; optional)
25
+
26
+ `loading_state` is a dict with keys:
27
+
28
+ - component_name (string; optional):
29
+ Holds the name of the component that is loading.
30
+
31
+ - is_loading (boolean; optional):
32
+ Determines if the component is loading or not.
33
+
34
+ - prop_name (string; optional):
35
+ Holds which property is loading.
36
+
37
+ - style (dict; optional)
38
+
39
+ - transition (dict; optional)
40
+
41
+ `transition` is a dict with keys:
42
+
43
+ - delay (number; optional)
44
+
45
+ - duration (number; optional)
46
+
47
+ - ease (a value equal to: 'linear', 'easeIn', 'easeOut', 'easeInOut', 'circIn', 'circOut', 'circInOut', 'backIn', 'backOut', 'backInOut', 'anticipate'; optional)
48
+
49
+ - repeat (number | a value equal to: 'infinity'; optional)
50
+
51
+ - repeatDelay (number; optional)
52
+
53
+ - repeatType (a value equal to: 'loop', 'reverse', 'mirror'; optional)
54
+
55
+ - times (list of numbers; optional)
56
+
57
+ - type (a value equal to: 'spring', 'tween'; optional)
58
+
59
+ - variants (dict; optional)
60
+
61
+ - viewport (dict; optional)
62
+
63
+ `viewport` is a dict with keys:
64
+
65
+ - amount (a value equal to: 'some', 'all'; optional)
66
+
67
+ - margin (string; optional)
68
+
69
+ - once (boolean; optional)
70
+
71
+ - whileHover (dict | string; optional)
72
+
73
+ - whileInView (dict | string; optional)
74
+
75
+ - whileTap (dict | string; optional)"""
76
+ _children_props = []
77
+ _base_nodes = ['children']
78
+ _namespace = 'feffery_utils_components'
79
+ _type = 'FefferyMotion'
80
+ @_explicitize_args
81
+ def __init__(self, children=None, id=Component.UNDEFINED, style=Component.UNDEFINED, className=Component.UNDEFINED, initial=Component.UNDEFINED, animate=Component.UNDEFINED, exit=Component.UNDEFINED, whileHover=Component.UNDEFINED, whileTap=Component.UNDEFINED, transition=Component.UNDEFINED, whileInView=Component.UNDEFINED, viewport=Component.UNDEFINED, variants=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
82
+ self._prop_names = ['children', 'id', 'animate', 'className', 'exit', 'initial', 'loading_state', 'style', 'transition', 'variants', 'viewport', 'whileHover', 'whileInView', 'whileTap']
83
+ self._valid_wildcard_attributes = []
84
+ self.available_properties = ['children', 'id', 'animate', 'className', 'exit', 'initial', 'loading_state', 'style', 'transition', 'variants', 'viewport', 'whileHover', 'whileInView', 'whileTap']
85
+ self.available_wildcard_properties = []
86
+ _explicit_args = kwargs.pop('_explicit_args')
87
+ _locals = locals()
88
+ _locals.update(kwargs) # For wildcard attrs and excess named props
89
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
90
+
91
+ super(FefferyMotion, self).__init__(children=children, **args)
@@ -32,7 +32,7 @@ Keyword arguments:
32
32
 
33
33
  - top (number | string; optional)
34
34
 
35
- - zIndex (number | string; optional)"""
35
+ - zIndex (number; optional)"""
36
36
  _children_props = []
37
37
  _base_nodes = ['children']
38
38
  _namespace = 'feffery_utils_components'
@@ -1,3 +1,5 @@
1
+ from .FefferyAutoAnimate import FefferyAutoAnimate
2
+ from .FefferyMotion import FefferyMotion
1
3
  from .FefferyBlockColorPicker import FefferyBlockColorPicker
2
4
  from .FefferyCircleColorPicker import FefferyCircleColorPicker
3
5
  from .FefferyEyeDropper import FefferyEyeDropper
@@ -56,6 +58,8 @@ from .FefferySplitPane import FefferySplitPane
56
58
  from .FefferySessionStorage import FefferySessionStorage
57
59
 
58
60
  __all__ = [
61
+ "FefferyAutoAnimate",
62
+ "FefferyMotion",
59
63
  "FefferyBlockColorPicker",
60
64
  "FefferyCircleColorPicker",
61
65
  "FefferyEyeDropper",