@qoretechnologies/reqore 0.30.6 → 0.30.8
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/CODE_OF_CONDUCT.md +104 -104
- package/CONTRIBUTING.MD +78 -78
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/SECURITY.md +5 -5
- package/__tests__/collection.test.tsx +1 -1
- package/__tests__/{control_group.text.tsx → control_group.test.tsx} +4 -2
- package/__tests__/modal.test.tsx +74 -2
- package/__tests__/panel.test.tsx +96 -24
- package/__tests__/popover.test.tsx +24 -2
- package/__tests__/tabs.test.tsx +75 -0
- package/dist/components/Button/index.d.ts +6 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +30 -20
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.js +6 -3
- package/dist/components/Checkbox/index.js.map +1 -1
- package/dist/components/Collection/index.d.ts +7 -2
- package/dist/components/Collection/index.d.ts.map +1 -1
- package/dist/components/Collection/index.js +57 -53
- package/dist/components/Collection/index.js.map +1 -1
- package/dist/components/Collection/item.d.ts +5 -5
- package/dist/components/Collection/item.d.ts.map +1 -1
- package/dist/components/Collection/item.js +15 -4
- package/dist/components/Collection/item.js.map +1 -1
- package/dist/components/Columns/column.d.ts.map +1 -1
- package/dist/components/Columns/column.js +1 -1
- package/dist/components/Columns/column.js.map +1 -1
- package/dist/components/ControlGroup/index.d.ts +21 -4
- package/dist/components/ControlGroup/index.d.ts.map +1 -1
- package/dist/components/ControlGroup/index.js +250 -55
- package/dist/components/ControlGroup/index.js.map +1 -1
- package/dist/components/Drawer/index.d.ts +2 -2
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +27 -16
- package/dist/components/Drawer/index.js.map +1 -1
- package/dist/components/Dropdown/index.d.ts +1 -0
- package/dist/components/Dropdown/index.d.ts.map +1 -1
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/Dropdown/index.js.map +1 -1
- package/dist/components/Effect/index.d.ts +1 -1
- package/dist/components/Effect/index.d.ts.map +1 -1
- package/dist/components/Effect/index.js +7 -6
- package/dist/components/Effect/index.js.map +1 -1
- package/dist/components/Icon/index.d.ts +5 -6
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.js +14 -7
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +10 -4
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/InternalPopover/index.d.ts.map +1 -1
- package/dist/components/InternalPopover/index.js +12 -10
- package/dist/components/InternalPopover/index.js.map +1 -1
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Menu/index.js.map +1 -1
- package/dist/components/Message/index.d.ts +2 -0
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/Message/index.js +2 -2
- package/dist/components/Message/index.js.map +1 -1
- package/dist/components/MultiSelect/index.d.ts +1 -1
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.js +10 -10
- package/dist/components/MultiSelect/index.js.map +1 -1
- package/dist/components/Panel/index.d.ts +13 -6
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +78 -44
- package/dist/components/Panel/index.js.map +1 -1
- package/dist/components/Popover/index.d.ts +1 -2
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +2 -2
- package/dist/components/Popover/index.js.map +1 -1
- package/dist/components/Spacer/index.d.ts +2 -0
- package/dist/components/Spacer/index.d.ts.map +1 -1
- package/dist/components/Spacer/index.js +29 -7
- package/dist/components/Spacer/index.js.map +1 -1
- package/dist/components/Table/header.js +2 -2
- package/dist/components/Table/header.js.map +1 -1
- package/dist/components/Table/headerCell.js +2 -2
- package/dist/components/Table/headerCell.js.map +1 -1
- package/dist/components/Table/helpers.d.ts +3 -2
- package/dist/components/Table/helpers.d.ts.map +1 -1
- package/dist/components/Table/helpers.js +6 -3
- package/dist/components/Table/helpers.js.map +1 -1
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Table/row.d.ts +0 -5
- package/dist/components/Table/row.d.ts.map +1 -1
- package/dist/components/Table/row.js +3 -7
- package/dist/components/Table/row.js.map +1 -1
- package/dist/components/Tabs/content.d.ts +3 -1
- package/dist/components/Tabs/content.d.ts.map +1 -1
- package/dist/components/Tabs/content.js +8 -3
- package/dist/components/Tabs/content.js.map +1 -1
- package/dist/components/Tabs/index.d.ts +4 -1
- package/dist/components/Tabs/index.d.ts.map +1 -1
- package/dist/components/Tabs/index.js +12 -4
- package/dist/components/Tabs/index.js.map +1 -1
- package/dist/components/Tabs/item.d.ts +1 -0
- package/dist/components/Tabs/item.d.ts.map +1 -1
- package/dist/components/Tabs/item.js +7 -7
- package/dist/components/Tabs/item.js.map +1 -1
- package/dist/components/Tabs/list.d.ts +1 -1
- package/dist/components/Tabs/list.d.ts.map +1 -1
- package/dist/components/Tabs/list.js +7 -6
- package/dist/components/Tabs/list.js.map +1 -1
- package/dist/components/Tag/group.d.ts +2 -2
- package/dist/components/Tag/group.d.ts.map +1 -1
- package/dist/components/Tag/group.js +7 -8
- package/dist/components/Tag/group.js.map +1 -1
- package/dist/components/Tag/index.d.ts +6 -2
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.js +24 -12
- package/dist/components/Tag/index.js.map +1 -1
- package/dist/components/Tree/index.js +1 -1
- package/dist/components/Tree/index.js.map +1 -1
- package/dist/constants/animations.js +1 -1
- package/dist/constants/sizes.js +10 -10
- package/dist/constants/sizes.js.map +1 -1
- package/dist/containers/PopoverProvider.d.ts.map +1 -1
- package/dist/containers/PopoverProvider.js +10 -8
- package/dist/containers/PopoverProvider.js.map +1 -1
- package/dist/containers/ReqoreProvider.d.ts.map +1 -1
- package/dist/containers/ReqoreProvider.js +4 -2
- package/dist/containers/ReqoreProvider.js.map +1 -1
- package/dist/containers/UIProvider.d.ts +7 -0
- package/dist/containers/UIProvider.d.ts.map +1 -1
- package/dist/containers/UIProvider.js.map +1 -1
- package/dist/context/ReqoreContext.d.ts +2 -0
- package/dist/context/ReqoreContext.d.ts.map +1 -1
- package/dist/context/ReqoreContext.js.map +1 -1
- package/dist/helpers/colors.d.ts +1 -1
- package/dist/helpers/colors.d.ts.map +1 -1
- package/dist/helpers/colors.js +6 -2
- package/dist/helpers/colors.js.map +1 -1
- package/dist/helpers/utils.d.ts +3 -0
- package/dist/helpers/utils.d.ts.map +1 -1
- package/dist/helpers/utils.js +16 -1
- package/dist/helpers/utils.js.map +1 -1
- package/dist/hooks/useLatestZIndex.js +2 -2
- package/dist/hooks/useLatestZIndex.js.map +1 -1
- package/dist/hooks/usePopover.d.ts +1 -0
- package/dist/hooks/usePopover.d.ts.map +1 -1
- package/dist/hooks/usePopover.js +8 -6
- package/dist/hooks/usePopover.js.map +1 -1
- package/dist/styles.d.ts +1 -0
- package/dist/styles.d.ts.map +1 -1
- package/dist/styles.js +6 -5
- package/dist/styles.js.map +1 -1
- package/dist/types/global.d.ts +26 -0
- package/dist/types/global.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Button/index.tsx +79 -34
- package/src/components/Checkbox/index.tsx +3 -2
- package/src/components/Collection/index.tsx +93 -60
- package/src/components/Collection/item.tsx +29 -9
- package/src/components/Columns/column.tsx +1 -0
- package/src/components/ControlGroup/index.tsx +449 -104
- package/src/components/Drawer/index.tsx +28 -27
- package/src/components/Dropdown/index.tsx +3 -1
- package/src/components/Effect/index.tsx +22 -14
- package/src/components/Icon/index.tsx +81 -62
- package/src/components/Input/index.tsx +8 -3
- package/src/components/InternalPopover/index.tsx +131 -126
- package/src/components/Menu/index.tsx +7 -1
- package/src/components/Message/index.tsx +9 -1
- package/src/components/MultiSelect/index.tsx +180 -188
- package/src/components/Panel/index.tsx +227 -100
- package/src/components/Popover/index.tsx +1 -3
- package/src/components/Spacer/index.tsx +63 -14
- package/src/components/Table/header.tsx +2 -2
- package/src/components/Table/headerCell.tsx +2 -2
- package/src/components/Table/helpers.ts +12 -6
- package/src/components/Table/index.tsx +1 -0
- package/src/components/Table/row.tsx +2 -7
- package/src/components/Tabs/content.tsx +11 -3
- package/src/components/Tabs/index.tsx +14 -3
- package/src/components/Tabs/item.tsx +28 -5
- package/src/components/Tabs/list.tsx +7 -3
- package/src/components/Tag/group.tsx +6 -12
- package/src/components/Tag/index.tsx +69 -35
- package/src/components/Tree/index.tsx +1 -1
- package/src/constants/animations.ts +1 -1
- package/src/constants/sizes.ts +10 -10
- package/src/containers/PopoverProvider.tsx +11 -8
- package/src/containers/ReqoreProvider.tsx +40 -35
- package/src/containers/UIProvider.tsx +7 -0
- package/src/context/ReqoreContext.tsx +2 -0
- package/src/helpers/colors.ts +8 -2
- package/src/helpers/utils.ts +18 -0
- package/src/hooks/useLatestZIndex.ts +2 -2
- package/src/hooks/usePopover.tsx +9 -6
- package/src/mock/collectionData.tsx +33 -2
- package/src/stories/Button/Button.stories.tsx +72 -7
- package/src/stories/Checkbox/Checkbox.stories.tsx +6 -3
- package/src/stories/Collection/Collection.stories.tsx +18 -2
- package/src/stories/ControlGroup/ControlGroup.stories.tsx +282 -33
- package/src/stories/Drawer/Drawer.stories.tsx +70 -3
- package/src/stories/Dropdown/Dropdown.stories.tsx +13 -3
- package/src/stories/Icon/Icon.stories.tsx +1 -0
- package/src/stories/Input/Input.stories.tsx +5 -3
- package/src/stories/Menu/Menu.stories.tsx +2 -0
- package/src/stories/Message/Message.stories.tsx +7 -0
- package/src/stories/Panel/Panel.stories.tsx +147 -13
- package/src/stories/Popover/Popover.stories.tsx +88 -82
- package/src/stories/Tabs/Tabs.stories.tsx +33 -15
- package/src/stories/Tag/Tag.stories.tsx +23 -3
- package/src/stories/TextArea/TextArea.stories.tsx +3 -3
- package/src/styles.ts +6 -0
- package/src/types/global.ts +28 -0
- package/tests.json +1 -1
package/CODE_OF_CONDUCT.md
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<br><br><br>
|
|
3
|
-
<img src="./public/qoreLogo.png" alt="Unstated Logo" width="500">
|
|
4
|
-
<br><br><br>
|
|
5
|
-
</div>
|
|
6
|
-
|
|
7
|
-
# Code of Conduct
|
|
8
|
-
|
|
9
|
-
Qore Technologies use [Contributor Covenant v2.0](https://contributor-covenant.org/version/2/0/code_of_conduct) as their code of conduct. The full text is included [below](#contributor-covenant-code-of-conduct-v20) in English, and [translations](https://www.contributor-covenant.org/translations) are available on the Contributor Covenant website.
|
|
10
|
-
|
|
11
|
-
## Commitment
|
|
12
|
-
|
|
13
|
-
All recipients of reports commit to:
|
|
14
|
-
|
|
15
|
-
- maintain the confidentiality with regard to the reporter and victim of an incident
|
|
16
|
-
|
|
17
|
-
## Report an issue in a project
|
|
18
|
-
|
|
19
|
-
1. To report an issue in one of our projects, please follow the security guidelines from that repository.
|
|
20
|
-
|
|
21
|
-
## More Info
|
|
22
|
-
|
|
23
|
-
For more information, refer to the full
|
|
24
|
-
[Contributor covenant code of conduct page](https://contributor-covenant.org/version/2/0/code_of_conduct).
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## Contributor Covenant Code of Conduct v2.0
|
|
29
|
-
|
|
30
|
-
### Our Pledge
|
|
31
|
-
|
|
32
|
-
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
33
|
-
|
|
34
|
-
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
|
35
|
-
|
|
36
|
-
### Our Standards
|
|
37
|
-
|
|
38
|
-
Examples of behavior that contributes to a positive environment for our community include:
|
|
39
|
-
|
|
40
|
-
* Demonstrating empathy and kindness toward other people
|
|
41
|
-
* Being respectful of differing opinions, viewpoints, and experiences
|
|
42
|
-
* Giving and gracefully accepting constructive feedback
|
|
43
|
-
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
44
|
-
* Focusing on what is best not just for us as individuals, but for the overall community
|
|
45
|
-
|
|
46
|
-
Examples of unacceptable behavior include:
|
|
47
|
-
|
|
48
|
-
* The use of sexualized language or imagery, and sexual attention or advances of any kind
|
|
49
|
-
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
50
|
-
* Public or private harassment
|
|
51
|
-
* Publishing others' private information, such as a physical or email address, without their explicit permission
|
|
52
|
-
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
53
|
-
|
|
54
|
-
### Enforcement Responsibilities
|
|
55
|
-
|
|
56
|
-
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
|
57
|
-
|
|
58
|
-
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
|
59
|
-
|
|
60
|
-
### Scope
|
|
61
|
-
|
|
62
|
-
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
|
63
|
-
|
|
64
|
-
### Enforcement
|
|
65
|
-
|
|
66
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at the email addresses listed above in the [Reporting](#report-an-issue-in-a-project) and [Escalation](#escalate-an-issue) sections. All complaints will be reviewed and investigated promptly and fairly.
|
|
67
|
-
|
|
68
|
-
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
|
69
|
-
|
|
70
|
-
### Enforcement Guidelines
|
|
71
|
-
|
|
72
|
-
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
-
|
|
74
|
-
#### 1. Correction
|
|
75
|
-
|
|
76
|
-
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
|
77
|
-
|
|
78
|
-
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
|
79
|
-
|
|
80
|
-
#### 2. Warning
|
|
81
|
-
|
|
82
|
-
**Community Impact**: A violation through a single incident or series of actions.
|
|
83
|
-
|
|
84
|
-
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
|
85
|
-
|
|
86
|
-
#### 3. Temporary Ban
|
|
87
|
-
|
|
88
|
-
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
|
89
|
-
|
|
90
|
-
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
|
91
|
-
|
|
92
|
-
#### 4. Permanent Ban
|
|
93
|
-
|
|
94
|
-
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
|
95
|
-
|
|
96
|
-
**Consequence**: A permanent ban from any sort of public interaction within the project community.
|
|
97
|
-
|
|
98
|
-
### Attribution
|
|
99
|
-
|
|
100
|
-
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.0, available at [contributor-covenant.org/version/2/0/code_of_conduct](https://www.contributor-covenant.org/version/2/0/code_of_conduct).
|
|
101
|
-
|
|
102
|
-
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
|
103
|
-
|
|
104
|
-
For answers to common questions about this code of conduct, see the FAQ at
|
|
1
|
+
<div align="center">
|
|
2
|
+
<br><br><br>
|
|
3
|
+
<img src="./public/qoreLogo.png" alt="Unstated Logo" width="500">
|
|
4
|
+
<br><br><br>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
# Code of Conduct
|
|
8
|
+
|
|
9
|
+
Qore Technologies use [Contributor Covenant v2.0](https://contributor-covenant.org/version/2/0/code_of_conduct) as their code of conduct. The full text is included [below](#contributor-covenant-code-of-conduct-v20) in English, and [translations](https://www.contributor-covenant.org/translations) are available on the Contributor Covenant website.
|
|
10
|
+
|
|
11
|
+
## Commitment
|
|
12
|
+
|
|
13
|
+
All recipients of reports commit to:
|
|
14
|
+
|
|
15
|
+
- maintain the confidentiality with regard to the reporter and victim of an incident
|
|
16
|
+
|
|
17
|
+
## Report an issue in a project
|
|
18
|
+
|
|
19
|
+
1. To report an issue in one of our projects, please follow the security guidelines from that repository.
|
|
20
|
+
|
|
21
|
+
## More Info
|
|
22
|
+
|
|
23
|
+
For more information, refer to the full
|
|
24
|
+
[Contributor covenant code of conduct page](https://contributor-covenant.org/version/2/0/code_of_conduct).
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Contributor Covenant Code of Conduct v2.0
|
|
29
|
+
|
|
30
|
+
### Our Pledge
|
|
31
|
+
|
|
32
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
33
|
+
|
|
34
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
|
35
|
+
|
|
36
|
+
### Our Standards
|
|
37
|
+
|
|
38
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
|
39
|
+
|
|
40
|
+
* Demonstrating empathy and kindness toward other people
|
|
41
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
42
|
+
* Giving and gracefully accepting constructive feedback
|
|
43
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
|
44
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
|
45
|
+
|
|
46
|
+
Examples of unacceptable behavior include:
|
|
47
|
+
|
|
48
|
+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
|
|
49
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
50
|
+
* Public or private harassment
|
|
51
|
+
* Publishing others' private information, such as a physical or email address, without their explicit permission
|
|
52
|
+
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
53
|
+
|
|
54
|
+
### Enforcement Responsibilities
|
|
55
|
+
|
|
56
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
|
57
|
+
|
|
58
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
|
59
|
+
|
|
60
|
+
### Scope
|
|
61
|
+
|
|
62
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
|
63
|
+
|
|
64
|
+
### Enforcement
|
|
65
|
+
|
|
66
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at the email addresses listed above in the [Reporting](#report-an-issue-in-a-project) and [Escalation](#escalate-an-issue) sections. All complaints will be reviewed and investigated promptly and fairly.
|
|
67
|
+
|
|
68
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
|
69
|
+
|
|
70
|
+
### Enforcement Guidelines
|
|
71
|
+
|
|
72
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
#### 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
|
77
|
+
|
|
78
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
|
79
|
+
|
|
80
|
+
#### 2. Warning
|
|
81
|
+
|
|
82
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
|
83
|
+
|
|
84
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
|
85
|
+
|
|
86
|
+
#### 3. Temporary Ban
|
|
87
|
+
|
|
88
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
|
89
|
+
|
|
90
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
|
91
|
+
|
|
92
|
+
#### 4. Permanent Ban
|
|
93
|
+
|
|
94
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
|
95
|
+
|
|
96
|
+
**Consequence**: A permanent ban from any sort of public interaction within the project community.
|
|
97
|
+
|
|
98
|
+
### Attribution
|
|
99
|
+
|
|
100
|
+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.0, available at [contributor-covenant.org/version/2/0/code_of_conduct](https://www.contributor-covenant.org/version/2/0/code_of_conduct).
|
|
101
|
+
|
|
102
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
|
103
|
+
|
|
104
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
105
105
|
[contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are available at [contributor-covenant.org/translations](https://www.contributor-covenant.org/translations).
|
package/CONTRIBUTING.MD
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<br><br><br>
|
|
3
|
-
<img src="./public/qoreLogo.png" alt="Unstated Logo" width="500">
|
|
4
|
-
<br><br><br>
|
|
5
|
-
</div>
|
|
6
|
-
|
|
7
|
-
# Contributing to Qore Technologies
|
|
8
|
-
|
|
9
|
-
> First off, thanks for taking the time to contribute!
|
|
10
|
-
|
|
11
|
-
Contributions are always welcome. Before contributing please read the
|
|
12
|
-
[code of conduct](CODE_OF_CONDUCT.md) &
|
|
13
|
-
[search the issue tracker](https://github.com/qoretechnologies/qorus-ui/issues) your issue may have already been discussed or fixed in `master`. To contribute,
|
|
14
|
-
[fork](https://help.github.com/articles/fork-a-repo/) QorusToolkit, commit your changes,
|
|
15
|
-
& [send a pull request](https://help.github.com/articles/using-pull-requests/).
|
|
16
|
-
|
|
17
|
-
We put together a set of guidelines for contributing to Qore Technologies and it's packages, which are hosted in the [Qore Technologies Organization](https://github.com/qoretechnologies/reqore) on GitHub. The provided guidelines are not rules but recommendations. Use your best judgement, and feel free to propose changes to this document with a pull request.
|
|
18
|
-
|
|
19
|
-
## We host our open-source on Github
|
|
20
|
-
|
|
21
|
-
We use github to host our open-source code, to track issues and feature requests, as well as accept pull requests.
|
|
22
|
-
|
|
23
|
-
> We Use [Github Flow](https://guides.github.com/introduction/flow/index.html) for code contributions
|
|
24
|
-
|
|
25
|
-
## How to contribute
|
|
26
|
-
|
|
27
|
-
Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests:
|
|
28
|
-
|
|
29
|
-
1. Fork the repo and create your branch from `develop`.
|
|
30
|
-
2. If you've added code that should be tested, add tests.
|
|
31
|
-
3. If you've changed APIs, update the documentation.
|
|
32
|
-
4. Ensure the test suite passes.
|
|
33
|
-
5. Make sure your code lints.
|
|
34
|
-
6. Issue that pull request!
|
|
35
|
-
|
|
36
|
-
## Any contributions you make will be under the MIT Software License
|
|
37
|
-
|
|
38
|
-
In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern.
|
|
39
|
-
|
|
40
|
-
## Report bugs using Github's issues
|
|
41
|
-
|
|
42
|
-
We use GitHub issues to track public bugs. Report a bug by opening a new issue on <code>github.com/qoretechnologies/qorus-ui/issues</code> it's that easy!
|
|
43
|
-
|
|
44
|
-
## Write bug reports with detail, background, and sample code
|
|
45
|
-
|
|
46
|
-
**Great Bug Reports** tend to have:
|
|
47
|
-
|
|
48
|
-
- A quick summary and/or background of a bug
|
|
49
|
-
- Steps to reproduce
|
|
50
|
-
- Be specific!
|
|
51
|
-
- Give sample code if you can.
|
|
52
|
-
- Expected behavior according to your understanding
|
|
53
|
-
- Current behavior which includes the bug
|
|
54
|
-
- Notes (includes, your reasoning behind the problem or steps you tried to solve the bug)
|
|
55
|
-
|
|
56
|
-
We _love_ thorough bug reports so that we can act fast on them.
|
|
57
|
-
|
|
58
|
-
## Use a Consistent Coding Style
|
|
59
|
-
|
|
60
|
-
> Reference [Facebook's Guidelines](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md)
|
|
61
|
-
|
|
62
|
-
- 2 spaces for indentation rather than tabs
|
|
63
|
-
- 100 character line length
|
|
64
|
-
- Run `npm run lint` to conform to our lint rules
|
|
65
|
-
|
|
66
|
-
## Community
|
|
67
|
-
|
|
68
|
-
- [GitHub Organization](https://github.com/qoretechnologies) for Official open-source projects
|
|
69
|
-
- [Discord](https://discord.gg/MWUwDKRR) for support, discussion, news and latest release updates
|
|
70
|
-
- [Qore Technologies Website](https://www.qoretechnologies.com)
|
|
71
|
-
|
|
72
|
-
## License
|
|
73
|
-
|
|
74
|
-
By contributing, you agree that your contributions will be licensed under its MIT License.
|
|
75
|
-
|
|
76
|
-
## References
|
|
77
|
-
|
|
78
|
-
This document was adapted from the open-source contribution guidelines for Reference [Facebook's Guidelines](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md)
|
|
1
|
+
<div align="center">
|
|
2
|
+
<br><br><br>
|
|
3
|
+
<img src="./public/qoreLogo.png" alt="Unstated Logo" width="500">
|
|
4
|
+
<br><br><br>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
# Contributing to Qore Technologies
|
|
8
|
+
|
|
9
|
+
> First off, thanks for taking the time to contribute!
|
|
10
|
+
|
|
11
|
+
Contributions are always welcome. Before contributing please read the
|
|
12
|
+
[code of conduct](CODE_OF_CONDUCT.md) &
|
|
13
|
+
[search the issue tracker](https://github.com/qoretechnologies/qorus-ui/issues) your issue may have already been discussed or fixed in `master`. To contribute,
|
|
14
|
+
[fork](https://help.github.com/articles/fork-a-repo/) QorusToolkit, commit your changes,
|
|
15
|
+
& [send a pull request](https://help.github.com/articles/using-pull-requests/).
|
|
16
|
+
|
|
17
|
+
We put together a set of guidelines for contributing to Qore Technologies and it's packages, which are hosted in the [Qore Technologies Organization](https://github.com/qoretechnologies/reqore) on GitHub. The provided guidelines are not rules but recommendations. Use your best judgement, and feel free to propose changes to this document with a pull request.
|
|
18
|
+
|
|
19
|
+
## We host our open-source on Github
|
|
20
|
+
|
|
21
|
+
We use github to host our open-source code, to track issues and feature requests, as well as accept pull requests.
|
|
22
|
+
|
|
23
|
+
> We Use [Github Flow](https://guides.github.com/introduction/flow/index.html) for code contributions
|
|
24
|
+
|
|
25
|
+
## How to contribute
|
|
26
|
+
|
|
27
|
+
Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests:
|
|
28
|
+
|
|
29
|
+
1. Fork the repo and create your branch from `develop`.
|
|
30
|
+
2. If you've added code that should be tested, add tests.
|
|
31
|
+
3. If you've changed APIs, update the documentation.
|
|
32
|
+
4. Ensure the test suite passes.
|
|
33
|
+
5. Make sure your code lints.
|
|
34
|
+
6. Issue that pull request!
|
|
35
|
+
|
|
36
|
+
## Any contributions you make will be under the MIT Software License
|
|
37
|
+
|
|
38
|
+
In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern.
|
|
39
|
+
|
|
40
|
+
## Report bugs using Github's issues
|
|
41
|
+
|
|
42
|
+
We use GitHub issues to track public bugs. Report a bug by opening a new issue on <code>github.com/qoretechnologies/qorus-ui/issues</code> it's that easy!
|
|
43
|
+
|
|
44
|
+
## Write bug reports with detail, background, and sample code
|
|
45
|
+
|
|
46
|
+
**Great Bug Reports** tend to have:
|
|
47
|
+
|
|
48
|
+
- A quick summary and/or background of a bug
|
|
49
|
+
- Steps to reproduce
|
|
50
|
+
- Be specific!
|
|
51
|
+
- Give sample code if you can.
|
|
52
|
+
- Expected behavior according to your understanding
|
|
53
|
+
- Current behavior which includes the bug
|
|
54
|
+
- Notes (includes, your reasoning behind the problem or steps you tried to solve the bug)
|
|
55
|
+
|
|
56
|
+
We _love_ thorough bug reports so that we can act fast on them.
|
|
57
|
+
|
|
58
|
+
## Use a Consistent Coding Style
|
|
59
|
+
|
|
60
|
+
> Reference [Facebook's Guidelines](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md)
|
|
61
|
+
|
|
62
|
+
- 2 spaces for indentation rather than tabs
|
|
63
|
+
- 100 character line length
|
|
64
|
+
- Run `npm run lint` to conform to our lint rules
|
|
65
|
+
|
|
66
|
+
## Community
|
|
67
|
+
|
|
68
|
+
- [GitHub Organization](https://github.com/qoretechnologies) for Official open-source projects
|
|
69
|
+
- [Discord](https://discord.gg/MWUwDKRR) for support, discussion, news and latest release updates
|
|
70
|
+
- [Qore Technologies Website](https://www.qoretechnologies.com)
|
|
71
|
+
|
|
72
|
+
## License
|
|
73
|
+
|
|
74
|
+
By contributing, you agree that your contributions will be licensed under its MIT License.
|
|
75
|
+
|
|
76
|
+
## References
|
|
77
|
+
|
|
78
|
+
This document was adapted from the open-source contribution guidelines for Reference [Facebook's Guidelines](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md)
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2020 Qore Technologies, s.r.o.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# @qoretechnologies/reqore
|
|
8
8
|
|
|
9
|
-
Reqore is a UI library based on React which can be used with any React project to provide customized UI experience.
|
|
9
|
+
Reqore is a UI library based on React which can be used with any React project to provide a customized UI experience.
|
|
10
10
|
|
|
11
11
|
- Reqore is a comprehensive library of UI components that features our implementation of Qore Technologies design system
|
|
12
12
|
|
package/SECURITY.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
# Reporting and Fixing Security Issues
|
|
3
|
-
|
|
4
|
-
Please do not open GitHub issues or pull requests - this makes the problem immediately visible to everyone, including malicious actors. Security issues in Qorus Integration Engine UI can be safely reported via email <b>security@qoretechnologies.com</b>
|
|
5
|
-
|
|
1
|
+
|
|
2
|
+
# Reporting and Fixing Security Issues
|
|
3
|
+
|
|
4
|
+
Please do not open GitHub issues or pull requests - this makes the problem immediately visible to everyone, including malicious actors. Security issues in Qorus Integration Engine UI can be safely reported via email <b>security@qoretechnologies.com</b>
|
|
5
|
+
|
|
@@ -13,7 +13,7 @@ test('Renders basic <Collection /> properly', () => {
|
|
|
13
13
|
);
|
|
14
14
|
|
|
15
15
|
expect(document.querySelectorAll('.reqore-collection').length).toBe(1);
|
|
16
|
-
expect(document.querySelectorAll('.reqore-collection-item').length).toBe(
|
|
16
|
+
expect(document.querySelectorAll('.reqore-collection-item').length).toBe(9);
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
test('<Collection /> items can be filtered', () => {
|
|
@@ -9,16 +9,18 @@ import {
|
|
|
9
9
|
ReqoreUIProvider,
|
|
10
10
|
} from '../src';
|
|
11
11
|
|
|
12
|
-
test('Renders <
|
|
12
|
+
test('Renders <ControlGroup /> properly', () => {
|
|
13
13
|
render(
|
|
14
14
|
<ReqoreUIProvider>
|
|
15
15
|
<ReqoreLayoutContent>
|
|
16
16
|
<ReqoreContent>
|
|
17
|
-
<ReqoreControlGroup
|
|
17
|
+
<ReqoreControlGroup>
|
|
18
18
|
<ReqoreInput minimal />
|
|
19
19
|
<ReqoreButton>Hello</ReqoreButton>
|
|
20
20
|
<ReqoreInput disabled />
|
|
21
21
|
<ReqoreInput size='big' />
|
|
22
|
+
<ReqoreButton>Hello</ReqoreButton>
|
|
23
|
+
<ReqoreButton>Hello</ReqoreButton>
|
|
22
24
|
</ReqoreControlGroup>
|
|
23
25
|
</ReqoreContent>
|
|
24
26
|
</ReqoreLayoutContent>
|
package/__tests__/modal.test.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { act, fireEvent, render, screen } from '@testing-library/react';
|
|
2
|
-
import React, { useContext } from 'react';
|
|
2
|
+
import React, { useContext, useState } from 'react';
|
|
3
3
|
import {
|
|
4
4
|
ReqoreButton,
|
|
5
5
|
ReqoreContent,
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
ReqoreLayoutContent,
|
|
8
8
|
ReqoreModal,
|
|
9
9
|
ReqoreUIProvider,
|
|
10
|
+
useReqore,
|
|
10
11
|
} from '../src';
|
|
11
12
|
|
|
12
13
|
test('Renders basic <Modal /> properly', () => {
|
|
@@ -94,13 +95,52 @@ const ConfirmButton = ({ confirmFn, cancelFn }) => {
|
|
|
94
95
|
);
|
|
95
96
|
};
|
|
96
97
|
|
|
98
|
+
const ConfirmButtonFromModal = ({ confirmFn, cancelFn }) => {
|
|
99
|
+
const { confirmAction } = useReqore();
|
|
100
|
+
const [isDialogOpen, setIsDialogOpen] = useState(false);
|
|
101
|
+
|
|
102
|
+
return (
|
|
103
|
+
<>
|
|
104
|
+
<ReqoreButton
|
|
105
|
+
id='dialog'
|
|
106
|
+
onClick={() => {
|
|
107
|
+
setIsDialogOpen(true);
|
|
108
|
+
}}
|
|
109
|
+
>
|
|
110
|
+
Open Dialog
|
|
111
|
+
</ReqoreButton>
|
|
112
|
+
{isDialogOpen && (
|
|
113
|
+
<ReqoreModal
|
|
114
|
+
isOpen
|
|
115
|
+
id='confirm'
|
|
116
|
+
actions={[
|
|
117
|
+
{
|
|
118
|
+
label: 'Open Confirm',
|
|
119
|
+
id: 'open-confirm',
|
|
120
|
+
onClick: () => {
|
|
121
|
+
confirmAction({
|
|
122
|
+
description: 'Do you really wanna do this?',
|
|
123
|
+
onConfirm: () => confirmFn(),
|
|
124
|
+
onCancel: () => cancelFn(),
|
|
125
|
+
});
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
]}
|
|
129
|
+
>
|
|
130
|
+
Modal
|
|
131
|
+
</ReqoreModal>
|
|
132
|
+
)}
|
|
133
|
+
</>
|
|
134
|
+
);
|
|
135
|
+
};
|
|
136
|
+
|
|
97
137
|
test('Renders confirmation <Modal /> ', () => {
|
|
98
138
|
const confirmFn = jest.fn();
|
|
99
139
|
const cancelFn = jest.fn();
|
|
100
140
|
|
|
101
141
|
act(() => {
|
|
102
142
|
render(
|
|
103
|
-
<ReqoreUIProvider>
|
|
143
|
+
<ReqoreUIProvider options={{ animations: { dialogs: false } }}>
|
|
104
144
|
<ReqoreLayoutContent>
|
|
105
145
|
<ReqoreContent>
|
|
106
146
|
<ConfirmButton confirmFn={confirmFn} cancelFn={cancelFn} />
|
|
@@ -130,3 +170,35 @@ test('Renders confirmation <Modal /> ', () => {
|
|
|
130
170
|
|
|
131
171
|
expect(cancelFn).toHaveBeenCalledTimes(2);
|
|
132
172
|
});
|
|
173
|
+
|
|
174
|
+
test('Always renders confirmation <Modal /> properly above a normal modal', () => {
|
|
175
|
+
const confirmFn = jest.fn();
|
|
176
|
+
const cancelFn = jest.fn();
|
|
177
|
+
|
|
178
|
+
act(() => {
|
|
179
|
+
render(
|
|
180
|
+
<ReqoreUIProvider options={{ animations: { dialogs: false } }}>
|
|
181
|
+
<ReqoreLayoutContent>
|
|
182
|
+
<ReqoreContent>
|
|
183
|
+
<ConfirmButtonFromModal confirmFn={confirmFn} cancelFn={cancelFn} />
|
|
184
|
+
</ReqoreContent>
|
|
185
|
+
</ReqoreLayoutContent>
|
|
186
|
+
</ReqoreUIProvider>
|
|
187
|
+
);
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
fireEvent.click(document.getElementById('dialog')!);
|
|
191
|
+
expect(document.querySelectorAll('.reqore-modal').length).toBe(1);
|
|
192
|
+
|
|
193
|
+
fireEvent.click(screen.getAllByText('Open Confirm')[0]);
|
|
194
|
+
expect(document.querySelectorAll('.reqore-modal').length).toBe(2);
|
|
195
|
+
expect(document.querySelectorAll('.reqore-confirmation-modal').length).toBe(1);
|
|
196
|
+
|
|
197
|
+
// @ts-ignore
|
|
198
|
+
const zIndex = document.querySelectorAll('.reqore-modal')[0].style.zIndex;
|
|
199
|
+
// @ts-ignore
|
|
200
|
+
const zIndexConfirmation = document.querySelectorAll('.reqore-confirmation-modal')[0].style
|
|
201
|
+
.zIndex;
|
|
202
|
+
|
|
203
|
+
expect(parseInt(zIndexConfirmation)).toBeGreaterThan(parseInt(zIndex));
|
|
204
|
+
});
|