@bethinkpl/design-system 20.0.0 → 20.1.0

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 (58) hide show
  1. package/.eslintrc.js +1 -0
  2. package/.github/workflows/build-to-review-on-trigger.yml +68 -0
  3. package/.yarnrc.yml +1 -0
  4. package/dist/design-system.umd.js +438 -376
  5. package/dist/design-system.umd.js.map +1 -1
  6. package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +282 -3
  7. package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +228 -3
  8. package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +1 -1
  9. package/dist/lib/js/components/SelectList/SelectList.vue.d.ts +4 -3
  10. package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +258 -3
  11. package/dist/lib/js/components/SelectList/SelectListItemDivider/SelectListItemDivider.vue.d.ts +8 -3
  12. package/dist/lib/js/components/Switch/Switch.vue.d.ts +6 -0
  13. package/docs/iframe.html +1 -1
  14. package/docs/main.d1b90503.iframe.bundle.js +1 -0
  15. package/docs/project.json +1 -1
  16. package/lib/js/components/Banner/Banner.vue +2 -0
  17. package/lib/js/components/Cards/CardExpandable/CardExpandable.vue +2 -0
  18. package/lib/js/components/Chip/Chip.vue +2 -0
  19. package/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue +2 -0
  20. package/lib/js/components/Drawer/DrawerSection/DrawerSection.vue +4 -2
  21. package/lib/js/components/Drawer/DrawerTile/DrawerTile.vue +2 -0
  22. package/lib/js/components/Dropdown/Dropdown.vue +2 -0
  23. package/lib/js/components/Form/Checkbox/Checkbox.vue +2 -0
  24. package/lib/js/components/Form/RadioButton/RadioButton.vue +2 -0
  25. package/lib/js/components/Form/SelectionControl/SelectionControl.vue +2 -0
  26. package/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue +2 -0
  27. package/lib/js/components/Headers/SectionHeader/SectionHeader.vue +2 -0
  28. package/lib/js/components/Layouts/ThreeColumnLayout/ThreeColumnLayout.vue +2 -0
  29. package/lib/js/components/Modal/Modal.vue +2 -0
  30. package/lib/js/components/Modals/Modal/Modal.vue +5 -3
  31. package/lib/js/components/Modals/ModalDialog/ModalDialog.vue +2 -0
  32. package/lib/js/components/Pagination/Pagination.vue +2 -0
  33. package/lib/js/components/PopOver/PopOver.vue +2 -0
  34. package/lib/js/components/RichList/{RichListItemBasic/RichListItemBasic.stories.ts → BasicRichListItem/BasicRichListItem.stories.ts} +51 -17
  35. package/lib/js/components/RichList/{RichListItemBasic/RichListItemBasic.vue → BasicRichListItem/BasicRichListItem.vue} +90 -16
  36. package/lib/js/components/RichList/BasicRichListItem/index.ts +3 -0
  37. package/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.consts.ts +18 -0
  38. package/lib/js/components/RichList/GroupRichListItem/GroupRichListItem.stories.ts +337 -0
  39. package/lib/js/components/RichList/{RichListGroupItem/RichListGroupItem.vue → GroupRichListItem/GroupRichListItem.vue} +63 -16
  40. package/lib/js/components/RichList/GroupRichListItem/index.ts +4 -0
  41. package/lib/js/components/RichList/RichListItem/RichListItem.consts.ts +15 -18
  42. package/lib/js/components/RichList/RichListItem/RichListItem.stories.ts +42 -12
  43. package/lib/js/components/RichList/RichListItem/RichListItem.vue +242 -82
  44. package/lib/js/components/SelectionTile/SelectionTile.vue +2 -0
  45. package/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue +2 -0
  46. package/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue +2 -0
  47. package/lib/js/components/SurveyQuestions/SurveyQuestionTextarea.vue +2 -0
  48. package/lib/js/components/Switch/Switch.vue +12 -0
  49. package/lib/js/components/TabItem/TabItem.vue +2 -0
  50. package/lib/js/components/Toggles/ToggleButton/ToggleButton.vue +2 -0
  51. package/lib/js/index.ts +2 -2
  52. package/lib/styles/mixins/_scrollbars.scss +9 -0
  53. package/package.json +1 -1
  54. package/docs/main.0861887f.iframe.bundle.js +0 -1
  55. package/lib/js/components/RichList/RichListGroupItem/RichListGroupItem.consts.ts +0 -7
  56. package/lib/js/components/RichList/RichListGroupItem/RichListGroupItem.stories.ts +0 -327
  57. package/lib/js/components/RichList/RichListGroupItem/index.ts +0 -4
  58. package/lib/js/components/RichList/RichListItemBasic/index.ts +0 -3
package/.eslintrc.js CHANGED
@@ -125,6 +125,7 @@ module.exports = {
125
125
  'vue/v-for-delimiter-style': 'error',
126
126
  'vue/no-undef-components': 'error',
127
127
  'vue/multi-word-component-names': 0,
128
+ 'vue/require-emit-validator': 'error',
128
129
 
129
130
  // Required for Vue 3 migration
130
131
  'vue/no-deprecated-slot-attribute': 'error',
@@ -0,0 +1,68 @@
1
+ name: Build Storybook to Design Review on trigger
2
+
3
+ on:
4
+ issue_comment:
5
+ types: [ created ]
6
+
7
+ jobs:
8
+ deploy-for-review:
9
+ runs-on: ubuntu-latest
10
+
11
+ if: |
12
+ github.event.comment &&
13
+ github.event.issue.pull_request &&
14
+ startsWith(github.event.comment.body, '/review')
15
+
16
+ steps:
17
+ - name: Get PR branch name
18
+ id: comment-pr-ref
19
+ uses: actions/github-script@v6
20
+ with:
21
+ result-encoding: string
22
+ script: |
23
+ const pr = await github.rest.pulls.get({
24
+ owner: context.issue.owner,
25
+ repo: context.issue.repo,
26
+ pull_number: context.issue.number,
27
+ });
28
+ return pr.data.head.ref
29
+
30
+ - name: Set short branch name
31
+ run: |
32
+ echo "BRANCH_NAME=$(echo "${{ steps.comment-pr-ref.outputs.result }}" | grep -oE -- '[A-Z]+-[0-9]+')" >> $GITHUB_ENV
33
+
34
+ - name: Checkout PR code based on trigger comment
35
+ uses: actions/checkout@v3
36
+ with:
37
+ ref: ${{ steps.comment-pr-ref.outputs.result }}
38
+
39
+ - name: Insert auth font awesome auth token
40
+ run: echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc && echo "//npm.fontawesome.com/:_authToken=${{ secrets.FONT_AWESOME_AUTH_TOKEN }}" >> .npmrc
41
+
42
+ - uses: actions/setup-node@v3
43
+ with:
44
+ node-version: '20.9.0'
45
+ cache: 'yarn'
46
+
47
+ - name: Install and Build 🔧
48
+ run: |
49
+ yarn install --pure-lockfile
50
+ yarn storybook:build
51
+
52
+ - name: Set up S3cmd cli tool
53
+ uses: s3-actions/s3cmd@v1.4.0
54
+ with:
55
+ provider: aws
56
+ region: 'eu-central-1'
57
+ access_key: ${{ secrets.S3_ACCESS_KEY }}
58
+ secret_key: ${{ secrets.S3_SECRET_KEY }}
59
+
60
+ - name: Push to S3 🚀
61
+ run: s3cmd put -r -P public/storybook/* s3://${{ vars.S3_REVIEW_BUCKET }}/${{ env.BRANCH_NAME }}/
62
+
63
+ - name: Add comment with URL
64
+ uses: thollander/actions-comment-pull-request@v2
65
+ with:
66
+ pr_number: ${{ github.event.issue.number }}
67
+ message: |
68
+ Your storybook is available on: https://${{ vars.S3_REVIEW_BUCKET }}.s3.amazonaws.com/${{ env.BRANCH_NAME }}/index.html
package/.yarnrc.yml ADDED
@@ -0,0 +1 @@
1
+ nodeLinker: node-modules