@appquality/unguess-design-system 2.12.50 → 2.12.51

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.
@@ -0,0 +1,79 @@
1
+ name: Check exported components
2
+
3
+ on:
4
+ pull_request:
5
+
6
+ jobs:
7
+ check-components:
8
+ name: Check components changes
9
+ runs-on: ubuntu-latest
10
+ outputs:
11
+ has_changes: ${{ steps.results.outputs.components_changed }}
12
+ current_count: ${{ steps.current-branch.outputs.components_count }}
13
+ target_count: ${{ steps.target-branch.outputs.components_count }}
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ with:
17
+ ref: ${{ github.event.pull_request.base.ref }}
18
+ fetch-depth: 0
19
+
20
+ - name: Get target branch component number
21
+ id: target-branch
22
+ run: |
23
+ COUNT=$(find . -wholename "./src/stories/**/index.stories.tsx" | wc -l)
24
+ echo "components_count=${COUNT}" >> $GITHUB_OUTPUT
25
+
26
+ - uses: actions/checkout@v2
27
+ with:
28
+ fetch-depth: 0
29
+
30
+ - name: Get current branch component number
31
+ id: current-branch
32
+ run: |
33
+ COUNT=$(find . -wholename "./src/stories/**/index.stories.tsx" | wc -l)
34
+ echo "components_count=${COUNT}" >> $GITHUB_OUTPUT
35
+
36
+ - name: Exit early if there aren't component changes
37
+ id: results
38
+ run: |
39
+ if [ ${{ steps.current-branch.outputs.components_count }} -ne ${{ steps.target-branch.outputs.components_count }} ]; then
40
+ echo "components_changed=true" >> $GITHUB_OUTPUT
41
+ fi
42
+
43
+ check-index-changes:
44
+ name: Check index changes
45
+ runs-on: ubuntu-latest
46
+ needs: [check-components]
47
+ if: needs.check-components.outputs.has_changes == 'true'
48
+ outputs:
49
+ need_changes: ${{ steps.results.outputs.index_not_changed }}
50
+ steps:
51
+ - uses: actions/checkout@v3
52
+ with:
53
+ fetch-depth: 0
54
+ - name: Get changed index
55
+ id: changed-index-tsx
56
+ uses: tj-actions/changed-files@v34
57
+ with:
58
+ since_last_remote_commit: true
59
+ files: |
60
+ src/index.tsx
61
+
62
+ - name: Check if index hasn't changed
63
+ id: results
64
+ if: steps.changed-index-tsx.outputs.any_changed == 'false'
65
+ run: |
66
+ echo "index_not_changed=true" >> $GITHUB_OUTPUT
67
+
68
+ comment-pr:
69
+ runs-on: ubuntu-latest
70
+ needs: [check-index-changes, check-components]
71
+ if: needs.check-index-changes.outputs.need_changes == 'true'
72
+ steps:
73
+ - name: Comment PR
74
+ uses: thollander/actions-comment-pull-request@v2
75
+ with:
76
+ message: |
77
+ Ci sono ${{ needs.check-components.outputs.current_count }} componenti nel tuo branch e ${{ needs.check-components.outputs.target_count }} componenti nel branch target, ma nessuna modifica nell'index.tsx. :man_shrugging:
78
+ Dovevi esportare qualcosa?
79
+ comment_tag: component_check
package/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ # v2.12.51 (Thu Dec 15 2022)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - new version [#159](https://github.com/AppQuality/unguess-design-system/pull/159) ([@marcbon](https://github.com/marcbon) [@iacopolea](https://github.com/iacopolea) gianpaolo.sinatra@app-quality.com [@d-beezee](https://github.com/d-beezee))
6
+ - ci: Comment on pr on missing export [#157](https://github.com/AppQuality/unguess-design-system/pull/157) ([@d-beezee](https://github.com/d-beezee))
7
+ - feat(legend): Allow overriding legend margin top [#158](https://github.com/AppQuality/unguess-design-system/pull/158) ([@d-beezee](https://github.com/d-beezee))
8
+ - UN-184 Bar Chart [#153](https://github.com/AppQuality/unguess-design-system/pull/153) ([@iacopolea](https://github.com/iacopolea) [@marcbon](https://github.com/marcbon) [@d-beezee](https://github.com/d-beezee))
9
+ - feat(icon-toggle-nav): add class [#156](https://github.com/AppQuality/unguess-design-system/pull/156) (gianpaolo.sinatra@app-quality.com)
10
+ - feat(tabs): add support to className and id props [#155](https://github.com/AppQuality/unguess-design-system/pull/155) ([@marcbon](https://github.com/marcbon))
11
+ - feat(pie): optimize arc link labels [#154](https://github.com/AppQuality/unguess-design-system/pull/154) ([@marcbon](https://github.com/marcbon))
12
+
13
+ #### Authors: 4
14
+
15
+ - [@d-beezee](https://github.com/d-beezee)
16
+ - Gianpaolo Sinatra ([@sinatragianpaolo](https://github.com/sinatragianpaolo))
17
+ - Iacopo Leardini ([@iacopolea](https://github.com/iacopolea))
18
+ - Marco Bonomo ([@marcbon](https://github.com/marcbon))
19
+
20
+ ---
21
+
1
22
  # v2.12.50 (Mon Dec 12 2022)
2
23
 
3
24
  #### 🐛 Bug Fix
package/build/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export * from "./stories/product-cards";
14
14
  export * from "./stories/service-cards";
15
15
  export * from "./stories/info-cards";
16
16
  export * from "./stories/special-cards";
17
+ export * from "./stories/charts/bar";
17
18
  export * from "./stories/charts/bullet";
18
19
  export * from "./stories/charts/pie";
19
20
  export * from "./stories/charts/halfPie";