feffery_antd_components 0.1.9 → 0.1.10

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 (53) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +4 -0
  3. package/Project.toml +1 -1
  4. package/README.md +2 -2
  5. package/feffery_antd_components/AntdAccordion.py +62 -0
  6. package/feffery_antd_components/AntdAccordionItem.py +56 -0
  7. package/feffery_antd_components/AntdCheckCard.py +60 -0
  8. package/feffery_antd_components/AntdCheckCardGroup.py +60 -0
  9. package/feffery_antd_components/_imports_.py +8 -0
  10. package/feffery_antd_components/feffery_antd_components.min.js +9 -9
  11. package/feffery_antd_components/metadata.json +7097 -6536
  12. package/feffery_antd_components/package-info.json +6 -5
  13. package/package.json +6 -5
  14. package/src/FefferyAntdComponents.jl +7 -3
  15. package/src/jl/'feffery'_antdaccordion.jl +39 -0
  16. package/src/jl/'feffery'_antdaccordionitem.jl +36 -0
  17. package/src/jl/'feffery'_antdcheckcard.jl +38 -0
  18. package/src/jl/'feffery'_antdcheckcardgroup.jl +38 -0
  19. package/src/lib/components/AntdAffix.react.js +1 -7
  20. package/src/lib/components/AntdCollapse.react.js +1 -7
  21. package/src/lib/components/AntdComment.react.js +1 -7
  22. package/src/lib/components/AntdPageHeader.react.js +1 -7
  23. package/src/lib/components/AntdPopconfirm.react.js +1 -7
  24. package/src/lib/components/AntdPopover.react.js +1 -7
  25. package/src/lib/components/AntdSkeleton.react.js +1 -7
  26. package/src/lib/components/AntdSpace.react.js +1 -7
  27. package/src/lib/components/AntdSpin.react.js +1 -7
  28. package/src/lib/components/AntdTable.react.js +3 -1
  29. package/src/lib/components/AntdTooltip.react.js +1 -7
  30. package/src/lib/components/AntdWatermark.react.js +1 -7
  31. package/src/lib/components/accordion/AntdAccordion.react.js +167 -0
  32. package/src/lib/components/accordion/AntdAccordionItem.react.js +98 -0
  33. package/src/lib/components/card/AntdCard.react.js +1 -7
  34. package/src/lib/components/card/AntdCardGrid.react.js +1 -7
  35. package/src/lib/components/check-card/AntdCheckCard.react.js +113 -0
  36. package/src/lib/components/check-card/AntdCheckCardGroup.react.js +119 -0
  37. package/src/lib/components/descriptions/AntdDescriptionItem.react.js +1 -7
  38. package/src/lib/components/descriptions/AntdDescriptions.react.js +1 -7
  39. package/src/lib/components/grid/AntdCol.react.js +1 -7
  40. package/src/lib/components/grid/AntdRow.react.js +1 -7
  41. package/src/lib/components/layout/AntdContent.react.js +1 -7
  42. package/src/lib/components/layout/AntdFooter.react.js +1 -7
  43. package/src/lib/components/layout/AntdHeader.react.js +1 -7
  44. package/src/lib/components/layout/AntdLayout.react.js +1 -7
  45. package/src/lib/components/layout/AntdSider.react.js +1 -7
  46. package/src/lib/components/tabs/AntdTabPane.react.js +1 -7
  47. package/src/lib/components/tabs/AntdTabs.react.js +2 -26
  48. package/src/lib/components/typography/AntdParagraph.react.js +1 -7
  49. package/src/lib/components/typography/AntdText.react.js +1 -7
  50. package/src/lib/components/typography/AntdTitle.react.js +1 -7
  51. package/src/lib/components/utils.js +31 -0
  52. package/src/lib/index.js +9 -1
  53. package/usage.py +66 -25
package/DESCRIPTION CHANGED
@@ -1,6 +1,6 @@
1
1
  Package: fefferyAntdComponents
2
2
  Title: Best implementation of Antd components in Plotly Dash.
3
- Version: 0.1.9
3
+ Version: 0.1.10
4
4
  Description: Best implementation of Antd components in 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('feffery'AntdAccordion)
4
+ export('feffery'AntdAccordionItem)
3
5
  export('feffery'AntdAffix)
4
6
  export('feffery'AntdAlert)
5
7
  export('feffery'AntdAnchor)
@@ -64,6 +66,8 @@ export('feffery'AntdUpload)
64
66
  export('feffery'AntdWatermark)
65
67
  export('feffery'AntdCard)
66
68
  export('feffery'AntdCardGrid)
69
+ export('feffery'AntdCheckCard)
70
+ export('feffery'AntdCheckCardGroup)
67
71
  export('feffery'AntdDescriptionItem)
68
72
  export('feffery'AntdDescriptions)
69
73
  export('feffery'AntdForm)
package/Project.toml CHANGED
@@ -2,7 +2,7 @@
2
2
  name = "FefferyAntdComponents"
3
3
  uuid = "1b08a953-4be3-4667-9a23-baf51bd2b26e"
4
4
  authors = ["CNFeffery <fefferypzy@gmail.com>"]
5
- version = "0.1.9"
5
+ version = "0.1.10"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
package/README.md CHANGED
@@ -15,12 +15,12 @@
15
15
 
16
16
  </div>
17
17
 
18
- `feffery-components`计划子项目,`Plotly Dash`第三方组件库,将基于`Antd`,将超多具有丰富功能的组件引入`Dash`的世界🥳,最新版本:`0.1.8`
18
+ `feffery-components`计划子项目,`Plotly Dash`第三方组件库,将基于`Antd`,将超多具有丰富功能的组件引入`Dash`的世界🥳,最新版本:`0.1.10`
19
19
 
20
20
  ## 1 最新版本安装方式
21
21
 
22
22
  ```bash
23
- pip install feffery-antd-components==0.1.8
23
+ pip install feffery-antd-components==0.1.10
24
24
  ```
25
25
 
26
26
  ## 2 最新开发版本安装方式
@@ -0,0 +1,62 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdAccordion(Component):
7
+ """An AntdAccordion 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
+ - accordion (boolean; default True)
17
+
18
+ - activeKey (string | list of strings | number | list of numbers; optional)
19
+
20
+ - bordered (boolean; optional)
21
+
22
+ - className (string; optional)
23
+
24
+ - collapsible (a value equal to: 'header', 'disabled'; optional)
25
+
26
+ - defaultActiveKey (string | list of strings | number | list of numbers; optional)
27
+
28
+ - expandIconPosition (a value equal to: 'left', 'right'; optional)
29
+
30
+ - ghost (boolean; optional)
31
+
32
+ - loading_state (dict; optional)
33
+
34
+ `loading_state` is a dict with keys:
35
+
36
+ - component_name (string; optional):
37
+ Holds the name of the component that is loading.
38
+
39
+ - is_loading (boolean; optional):
40
+ Determines if the component is loading or not.
41
+
42
+ - prop_name (string; optional):
43
+ Holds which property is loading.
44
+
45
+ - style (dict; optional)"""
46
+ @_explicitize_args
47
+ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, accordion=Component.UNDEFINED, activeKey=Component.UNDEFINED, defaultActiveKey=Component.UNDEFINED, bordered=Component.UNDEFINED, collapsible=Component.UNDEFINED, expandIconPosition=Component.UNDEFINED, ghost=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
48
+ self._prop_names = ['children', 'id', 'accordion', 'activeKey', 'bordered', 'className', 'collapsible', 'defaultActiveKey', 'expandIconPosition', 'ghost', 'loading_state', 'style']
49
+ self._type = 'AntdAccordion'
50
+ self._namespace = 'feffery_antd_components'
51
+ self._valid_wildcard_attributes = []
52
+ self.available_properties = ['children', 'id', 'accordion', 'activeKey', 'bordered', 'className', 'collapsible', 'defaultActiveKey', 'expandIconPosition', 'ghost', 'loading_state', 'style']
53
+ self.available_wildcard_properties = []
54
+ _explicit_args = kwargs.pop('_explicit_args')
55
+ _locals = locals()
56
+ _locals.update(kwargs) # For wildcard attrs
57
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
58
+ for k in []:
59
+ if k not in args:
60
+ raise TypeError(
61
+ 'Required argument `' + k + '` was not specified.')
62
+ super(AntdAccordion, self).__init__(children=children, **args)
@@ -0,0 +1,56 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdAccordionItem(Component):
7
+ """An AntdAccordionItem 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
+ - collapsible (a value equal to: 'header', 'disabled'; optional)
19
+
20
+ - key (string | number; required)
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
+ - showArrow (boolean; optional)
36
+
37
+ - style (dict; optional)
38
+
39
+ - title (string; default '')"""
40
+ @_explicitize_args
41
+ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.REQUIRED, collapsible=Component.UNDEFINED, title=Component.UNDEFINED, showArrow=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
42
+ self._prop_names = ['children', 'id', 'className', 'collapsible', 'key', 'loading_state', 'showArrow', 'style', 'title']
43
+ self._type = 'AntdAccordionItem'
44
+ self._namespace = 'feffery_antd_components'
45
+ self._valid_wildcard_attributes = []
46
+ self.available_properties = ['children', 'id', 'className', 'collapsible', 'key', 'loading_state', 'showArrow', 'style', 'title']
47
+ self.available_wildcard_properties = []
48
+ _explicit_args = kwargs.pop('_explicit_args')
49
+ _locals = locals()
50
+ _locals.update(kwargs) # For wildcard attrs
51
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
52
+ for k in ['key']:
53
+ if k not in args:
54
+ raise TypeError(
55
+ 'Required argument `' + k + '` was not specified.')
56
+ super(AntdAccordionItem, self).__init__(children=children, **args)
@@ -0,0 +1,60 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdCheckCard(Component):
7
+ """An AntdCheckCard 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
+ - bordered (boolean; optional)
17
+
18
+ - checked (boolean; optional)
19
+
20
+ - className (string; optional)
21
+
22
+ - defaultChecked (boolean; optional)
23
+
24
+ - disabled (boolean; optional)
25
+
26
+ - loading_state (dict; optional)
27
+
28
+ `loading_state` is a dict with keys:
29
+
30
+ - component_name (string; optional):
31
+ Holds the name of the component that is loading.
32
+
33
+ - is_loading (boolean; optional):
34
+ Determines if the component is loading or not.
35
+
36
+ - prop_name (string; optional):
37
+ Holds which property is loading.
38
+
39
+ - size (a value equal to: 'small', 'default', 'large'; optional)
40
+
41
+ - style (dict; optional)
42
+
43
+ - value (string; optional)"""
44
+ @_explicitize_args
45
+ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, checked=Component.UNDEFINED, bordered=Component.UNDEFINED, value=Component.UNDEFINED, defaultChecked=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
46
+ self._prop_names = ['children', 'id', 'bordered', 'checked', 'className', 'defaultChecked', 'disabled', 'loading_state', 'size', 'style', 'value']
47
+ self._type = 'AntdCheckCard'
48
+ self._namespace = 'feffery_antd_components'
49
+ self._valid_wildcard_attributes = []
50
+ self.available_properties = ['children', 'id', 'bordered', 'checked', 'className', 'defaultChecked', 'disabled', 'loading_state', 'size', 'style', 'value']
51
+ self.available_wildcard_properties = []
52
+ _explicit_args = kwargs.pop('_explicit_args')
53
+ _locals = locals()
54
+ _locals.update(kwargs) # For wildcard attrs
55
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
56
+ for k in []:
57
+ if k not in args:
58
+ raise TypeError(
59
+ 'Required argument `' + k + '` was not specified.')
60
+ super(AntdCheckCard, self).__init__(children=children, **args)
@@ -0,0 +1,60 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdCheckCardGroup(Component):
7
+ """An AntdCheckCardGroup 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
+ - bordered (boolean; optional)
17
+
18
+ - className (string; optional)
19
+
20
+ - defaultValue (string | list of strings; optional)
21
+
22
+ - disabled (boolean; 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
+ - multiple (boolean; optional)
38
+
39
+ - size (a value equal to: 'small', 'default', 'large'; optional)
40
+
41
+ - style (dict; optional)
42
+
43
+ - value (string | list of strings; optional)"""
44
+ @_explicitize_args
45
+ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, multiple=Component.UNDEFINED, bordered=Component.UNDEFINED, value=Component.UNDEFINED, defaultValue=Component.UNDEFINED, disabled=Component.UNDEFINED, size=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
46
+ self._prop_names = ['children', 'id', 'bordered', 'className', 'defaultValue', 'disabled', 'loading_state', 'multiple', 'size', 'style', 'value']
47
+ self._type = 'AntdCheckCardGroup'
48
+ self._namespace = 'feffery_antd_components'
49
+ self._valid_wildcard_attributes = []
50
+ self.available_properties = ['children', 'id', 'bordered', 'className', 'defaultValue', 'disabled', 'loading_state', 'multiple', 'size', 'style', 'value']
51
+ self.available_wildcard_properties = []
52
+ _explicit_args = kwargs.pop('_explicit_args')
53
+ _locals = locals()
54
+ _locals.update(kwargs) # For wildcard attrs
55
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
56
+ for k in []:
57
+ if k not in args:
58
+ raise TypeError(
59
+ 'Required argument `' + k + '` was not specified.')
60
+ super(AntdCheckCardGroup, self).__init__(children=children, **args)
@@ -1,3 +1,5 @@
1
+ from .AntdAccordion import AntdAccordion
2
+ from .AntdAccordionItem import AntdAccordionItem
1
3
  from .AntdAffix import AntdAffix
2
4
  from .AntdAlert import AntdAlert
3
5
  from .AntdAnchor import AntdAnchor
@@ -62,6 +64,8 @@ from .AntdUpload import AntdUpload
62
64
  from .AntdWatermark import AntdWatermark
63
65
  from .AntdCard import AntdCard
64
66
  from .AntdCardGrid import AntdCardGrid
67
+ from .AntdCheckCard import AntdCheckCard
68
+ from .AntdCheckCardGroup import AntdCheckCardGroup
65
69
  from .AntdDescriptionItem import AntdDescriptionItem
66
70
  from .AntdDescriptions import AntdDescriptions
67
71
  from .AntdForm import AntdForm
@@ -80,6 +84,8 @@ from .AntdText import AntdText
80
84
  from .AntdTitle import AntdTitle
81
85
 
82
86
  __all__ = [
87
+ "AntdAccordion",
88
+ "AntdAccordionItem",
83
89
  "AntdAffix",
84
90
  "AntdAlert",
85
91
  "AntdAnchor",
@@ -144,6 +150,8 @@ __all__ = [
144
150
  "AntdWatermark",
145
151
  "AntdCard",
146
152
  "AntdCardGrid",
153
+ "AntdCheckCard",
154
+ "AntdCheckCardGroup",
147
155
  "AntdDescriptionItem",
148
156
  "AntdDescriptions",
149
157
  "AntdForm",