jamespot-react-components 1.0.0 → 1.0.1

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/.github/workflows/deploy-dev-branches.yml +1 -1
  2. package/.github/workflows/npm-package.yml +33 -0
  3. package/build/jamespot-react-components.js +503 -308
  4. package/build/jamespot-react-components.js.map +1 -1
  5. package/build/src/components/Common/util/getColor.util.d.ts +2 -0
  6. package/build/src/components/Form/Common/FormHelper.d.ts +1 -0
  7. package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.style.d.ts +5 -2
  8. package/build/src/components/Form/Input/JRCFormCheckbox/JRCToggle.d.ts +2 -1
  9. package/build/src/components/Form/Input/{JRCFormCheckbox → JRCInputCheckbox}/JRCInputCheckbox.d.ts +1 -1
  10. package/build/src/components/Form/Input/{JRCFormCheckbox → JRCInputCheckbox}/JRCInputCheckbox.stories.d.ts +1 -1
  11. package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.types.d.ts +25 -0
  12. package/build/src/components/JRCAlert/JRCAlert.d.ts +2 -2
  13. package/build/src/components/JRCAppContainer/JRCAppContainer.d.ts +6 -0
  14. package/build/src/components/JRCAppHeader/JRCAppHeader.d.ts +4 -1
  15. package/build/src/components/JRCAppHeader/JRCAppHeader.styles.d.ts +3 -1
  16. package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.d.ts +9 -0
  17. package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.stories.d.ts +8 -0
  18. package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +55 -0
  19. package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.types.d.ts +59 -0
  20. package/build/src/components/JRCAppLeftColumn/JRCDefaultMenu.d.ts +2 -0
  21. package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.d.ts +4 -0
  22. package/build/src/components/JRCCard/JRCCard.d.ts +5 -1
  23. package/build/src/components/JRCFileOpen/JRCFileOpen.d.ts +9 -0
  24. package/build/src/components/JRCFileOpen/extensions.d.ts +1 -0
  25. package/build/src/components/JRCIconButton/JRCIconButton.d.ts +5 -0
  26. package/build/src/components/JRCList/JRCList.d.ts +8 -3
  27. package/build/src/components/JRCList/JRCList.stories.d.ts +2 -1
  28. package/build/src/components/JRCList/JRCList.styles.d.ts +8 -7
  29. package/build/src/components/JRCLoader/JRCLoader.d.ts +6 -2
  30. package/build/src/components/JRCLoader/JRCLoader.stories.d.ts +2 -1
  31. package/build/src/components/JRCLoader/JRCSkeleton.d.ts +1 -0
  32. package/build/src/components/JRCMenuItem/JRCMenuItem.d.ts +21 -0
  33. package/build/src/components/JRCModal/JRCModal.d.ts +6 -4
  34. package/build/src/components/JRCModal/JRCModal.stories.d.ts +1 -0
  35. package/build/src/components/JRCModal/JRCModal.styles.d.ts +3 -9
  36. package/build/src/components/JRCTabs/JRCTabs.d.ts +7 -5
  37. package/build/src/components/JRCTooltip/JRCTooltip.d.ts +1 -1
  38. package/build/src/hooks/UseTimeout.d.ts +7 -0
  39. package/build/src/index.d.ts +10 -2
  40. package/build/src/types.d.ts +6 -2
  41. package/package.json +8 -8
  42. package/src/components/Common/util/getColor.util.ts +12 -0
  43. package/src/components/Form/Input/JRCFormColor/JRCFormColor.stories.tsx +1 -1
  44. package/src/components/Form/Input/JRCFormColor/JRCFormColor.tsx +5 -345
  45. package/src/components/JRCAlert/JRCAlert.tsx +3 -15
  46. package/src/components/JRCCard/JRCCard.tsx +6 -4
  47. package/src/components/JRCLoader/JRCLoader.stories.tsx +6 -1
  48. package/src/components/JRCLoader/JRCLoader.tsx +13 -3
  49. package/src/components/JRCLoader/JRCSkeleton.tsx +77 -0
  50. package/src/components/JRCModal/JRCModal.styles.tsx +1 -0
  51. package/src/translation/lang.json +1 -0
  52. package/src/types.ts +2 -1
  53. package/.github/workflows/create-stable-branch.yml +0 -80
@@ -60,6 +60,7 @@ export const JRCModalHeader = styled.div`
60
60
  margin: 24px;
61
61
  display: flex;
62
62
  align-items: center;
63
+ justify-content: space-between;
63
64
  `;
64
65
 
65
66
  export const JRCModalHeaderTitle = styled.div`
@@ -11,6 +11,7 @@
11
11
  "GLOBAL_Form_Characters": "characters",
12
12
  "GLOBAL_Loading": "Loading",
13
13
  "GLOBAL_Validation": "Confirm",
14
+ "GLOBAL_Error_occurred": "An error occurred",
14
15
  "GROUP_more": "More",
15
16
  "GLOBAL_Select": "Select",
16
17
  "ERROR_Mail_Invalid": "Must be a valid email",
package/src/types.ts CHANGED
@@ -24,7 +24,8 @@ export { JRCFormSendAlertInputProps };
24
24
  import { TextareaFormInputProps } from './components/Form/Input/JRCFormTextarea/JRCFormTextarea';
25
25
  export { TextareaFormInputProps };
26
26
 
27
- export { JRCAlertProps, AlertType } from './components/JRCAlert/JRCAlert';
27
+ export { MessageType } from './components/Common/util/getColor.util';
28
+ export { JRCAlertProps } from './components/JRCAlert/JRCAlert';
28
29
  import { JRCAvatarProps } from './components/JRCAvatar/JRCAvatar';
29
30
  export { JRCAvatarProps };
30
31
  import { JRCButtonProps } from './components/JRCButton/JRCButton';
@@ -1,80 +0,0 @@
1
- name: remote-stable
2
-
3
- on:
4
- push:
5
- branches: [master]
6
- jobs:
7
- build:
8
- runs-on: ubuntu-latest
9
-
10
- steps:
11
- - uses: actions/checkout@v3
12
- with:
13
- persist-credentials: false
14
- - name: Select Node v. 16.x (and thus npm v. 7.x)
15
- uses: actions/setup-node@v2
16
- with:
17
- node-version: 16.x
18
- - name: Reconfigure git to use HTTP authentication
19
- run: >
20
- git config --global url."https://${{ secrets.ONE_TOKEN_TO_RULE_THEM_ALL }}@github.com/".insteadOf ssh://git@github.com/
21
- - name: Delete stable
22
- uses: dawidd6/action-delete-branch@v3
23
- with:
24
- branches: remote-stable
25
- github_token: ${{ secrets.ONE_TOKEN_TO_RULE_THEM_ALL }}
26
- continue-on-error: true
27
- - name: New remote-stable branch
28
- uses: peterjgrainger/action-create-branch@v2.0.1
29
- env:
30
- GITHUB_TOKEN: ${{ secrets.ONE_TOKEN_TO_RULE_THEM_ALL }}
31
- with:
32
- branch: remote-stable
33
- - name: Merge master -> remote-stable
34
- uses: devmasx/merge-branch@master
35
- with:
36
- type: now
37
- from_branch: master
38
- target_branch: remote-stable
39
- github_token: ${{ secrets.ONE_TOKEN_TO_RULE_THEM_ALL }}
40
- - name: ⬇️ Checkout js-util-create-stable-branch
41
- uses: actions/checkout@v3
42
- with:
43
- repository: Jamespot/js-util-create-stable-branch
44
- token: ${{ secrets.ONE_TOKEN_TO_RULE_THEM_ALL }}
45
- path: js-util-create-stable-branch
46
- persist-credentials: false
47
- - name: ⬇️ Checkout remote-stable branch
48
- uses: actions/checkout@v3
49
- with:
50
- token: ${{ secrets.ONE_TOKEN_TO_RULE_THEM_ALL }}
51
- ref: remote-stable
52
- path: newbranch
53
- persist-credentials: false
54
- - name: 🔨 Change package.json
55
- run: |
56
- pwd
57
- cd js-util-create-stable-branch
58
- node updatePackage.js ../newbranch
59
- cd ../newbranch
60
- pwd
61
- - name: Cache dependencies
62
- uses: actions/cache@v2
63
- with:
64
- path: ~/.npm
65
- key: npm-${{ hashFiles('package-lock.json') }}
66
- restore-keys: npm-
67
- - name: Install dependencies
68
- run: |
69
- pwd
70
- cp newbranch/package.json ./
71
- cat package.json
72
- npm i --legacy-peer-deps
73
- cp package-lock.json ./newbranch
74
- - name: push
75
- uses: actions-x/commit@v4
76
- with:
77
- token: ${{ secrets.ONE_TOKEN_TO_RULE_THEM_ALL }}
78
- branch: remote-stable
79
- force: true
80
- directory: newbranch