@scottish-government/designsystem-react 0.0.2 → 0.1.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.
- package/@types/components/InsetText.d.ts +5 -0
- package/@types/components/WarningText.d.ts +5 -0
- package/dist/common/conditional-wrapper.jsx +8 -0
- package/dist/common/hint-text.jsx +9 -0
- package/dist/common/icon.jsx +14 -0
- package/dist/common/screen-reader-text.jsx +9 -0
- package/dist/common/wrapper-tag.jsx +11 -0
- package/dist/components/accordion/accordion.jsx +103 -0
- package/dist/components/aspect-box/aspect-box.jsx +79 -0
- package/dist/components/back-to-top/back-to-top.jsx +27 -0
- package/dist/components/breadcrumbs/breadcrumbs.jsx +28 -0
- package/dist/components/button/button.jsx +30 -0
- package/dist/components/checkbox/checkbox.jsx +62 -0
- package/dist/components/confirmation-message/confirmation-message.jsx +24 -0
- package/dist/components/contents-nav/contents-nav.jsx +33 -0
- package/dist/components/date-picker/date-picker.jsx +50 -0
- package/dist/components/details/details.jsx +17 -0
- package/dist/components/error-message/error-message.jsx +12 -0
- package/dist/components/inset-text/inset-text.jsx +14 -0
- package/dist/components/notification-banner/notification-banner.jsx +54 -0
- package/dist/components/notification-panel/notification-panel.jsx +21 -0
- package/dist/components/page-header/page-header.jsx +15 -0
- package/dist/components/page-metadata/page-metadata.jsx +27 -0
- package/dist/components/phase-banner/phase-banner.jsx +23 -0
- package/dist/components/question/question.jsx +22 -0
- package/dist/components/radio-button/radio-button.jsx +43 -0
- package/dist/components/select/select.jsx +52 -0
- package/dist/components/sequential-navigation/sequential-navigation.jsx +31 -0
- package/dist/components/side-navigation/side-navigation.jsx +52 -0
- package/dist/components/site-navigation/site-navigation.jsx +22 -0
- package/dist/components/site-search/site-search.jsx +55 -0
- package/dist/components/skip-links/skip-links.jsx +21 -0
- package/dist/components/tag/tag.jsx +13 -0
- package/dist/components/task-list/task-list.jsx +96 -0
- package/dist/components/text-input/text-input.jsx +58 -0
- package/dist/components/textarea/textarea.jsx +54 -0
- package/dist/components/warning-text/warning-text.jsx +16 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -1
- package/src/common/icon.test.tsx +1 -1
- package/src/components/accordion/accordion.test.tsx +25 -1
- package/src/components/accordion/accordion.tsx +10 -2
- package/src/components/aspect-box/aspect-box.test.tsx +12 -0
- package/src/components/aspect-box/aspect-box.tsx +3 -1
- package/src/components/back-to-top/back-to-top.test.tsx +10 -0
- package/src/components/back-to-top/back-to-top.tsx +5 -1
- package/src/components/breadcrumbs/breadcrumbs.test.tsx +12 -0
- package/src/components/breadcrumbs/breadcrumbs.tsx +2 -0
- package/src/components/button/button.test.tsx +9 -0
- package/src/components/button/button.tsx +4 -2
- package/src/components/checkbox/checkbox.test.tsx +13 -0
- package/src/components/checkbox/checkbox.tsx +6 -1
- package/src/components/confirmation-message/confirmation-message.test.tsx +22 -0
- package/src/components/confirmation-message/confirmation-message.tsx +8 -2
- package/src/components/contents-nav/contents-nav.test.tsx +13 -0
- package/src/components/contents-nav/contents-nav.tsx +8 -4
- package/src/components/date-picker/date-picker.test.tsx +13 -0
- package/src/components/date-picker/date-picker.tsx +4 -2
- package/src/components/details/details.test.tsx +12 -0
- package/src/components/details/details.tsx +2 -0
- package/src/components/error-message/error-message.test.tsx +9 -0
- package/src/components/error-message/error-message.tsx +2 -0
- package/src/components/inset-text/inset-text.test.tsx +11 -0
- package/src/components/inset-text/inset-text.tsx +6 -2
- package/src/components/notification-banner/notification-banner.test.tsx +11 -0
- package/src/components/notification-banner/notification-banner.tsx +6 -1
- package/src/components/notification-panel/notification-panel.test.tsx +12 -0
- package/src/components/notification-panel/notification-panel.tsx +5 -1
- package/src/components/page-header/page-header.test.tsx +9 -0
- package/src/components/page-header/page-header.tsx +5 -1
- package/src/components/page-metadata/page-metadata.test.tsx +15 -0
- package/src/components/page-metadata/page-metadata.tsx +7 -1
- package/src/components/phase-banner/phase-banner.test.tsx +11 -0
- package/src/components/phase-banner/phase-banner.tsx +5 -1
- package/src/components/question/question.test.tsx +10 -0
- package/src/components/question/question.tsx +3 -1
- package/src/components/radio-button/radio-button.test.tsx +13 -0
- package/src/components/radio-button/radio-button.tsx +3 -1
- package/src/components/select/select.test.tsx +15 -0
- package/src/components/select/select.tsx +2 -0
- package/src/components/sequential-navigation/sequential-navigation.test.tsx +13 -0
- package/src/components/sequential-navigation/sequential-navigation.tsx +5 -1
- package/src/components/side-navigation/side-navigation.test.tsx +18 -0
- package/src/components/side-navigation/side-navigation.tsx +5 -1
- package/src/components/site-navigation/site-navigation.test.tsx +9 -0
- package/src/components/site-navigation/site-navigation.tsx +5 -1
- package/src/components/site-search/site-search.test.tsx +10 -0
- package/src/components/site-search/site-search.tsx +3 -1
- package/src/components/tag/tag.test.tsx +7 -7
- package/src/components/task-list/task-list.test.tsx +46 -0
- package/src/components/task-list/task-list.tsx +18 -5
- package/src/components/text-input/text-input.test.tsx +13 -0
- package/src/components/textarea/textarea.test.tsx +13 -0
- package/src/components/textarea/textarea.tsx +2 -0
- package/src/components/warning-text/warning-text.test.tsx +11 -0
- package/src/components/warning-text/warning-text.tsx +6 -2
- package/.editorconfig +0 -12
- package/.github/workflows/release-package.yml +0 -96
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
name: Versioned release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
inputs:
|
|
6
|
-
release_type:
|
|
7
|
-
description: 'Release type'
|
|
8
|
-
required: true
|
|
9
|
-
type: choice
|
|
10
|
-
options:
|
|
11
|
-
- patch
|
|
12
|
-
- minor
|
|
13
|
-
- major
|
|
14
|
-
- prepatch
|
|
15
|
-
- preminor
|
|
16
|
-
- premajor
|
|
17
|
-
- prerelease
|
|
18
|
-
|
|
19
|
-
jobs:
|
|
20
|
-
build:
|
|
21
|
-
runs-on: ubuntu-latest
|
|
22
|
-
|
|
23
|
-
steps:
|
|
24
|
-
- name: Checkout
|
|
25
|
-
uses: actions/checkout@v4
|
|
26
|
-
|
|
27
|
-
# Set up node and add the registry url
|
|
28
|
-
- name: Setup Node.js
|
|
29
|
-
uses: actions/setup-node@v3
|
|
30
|
-
with:
|
|
31
|
-
node-version: 18
|
|
32
|
-
registry-url: 'https://registry.npmjs.org'
|
|
33
|
-
always-auth: true
|
|
34
|
-
|
|
35
|
-
# Install
|
|
36
|
-
- name: Install
|
|
37
|
-
run: npm ci
|
|
38
|
-
|
|
39
|
-
# Test
|
|
40
|
-
- name: Run tests
|
|
41
|
-
run: npm run test
|
|
42
|
-
|
|
43
|
-
# Configure Git
|
|
44
|
-
- name: Git configuration
|
|
45
|
-
run: |
|
|
46
|
-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
47
|
-
git config --global user.name "GitHub Actions"
|
|
48
|
-
|
|
49
|
-
# Set package version
|
|
50
|
-
- name: Set package version
|
|
51
|
-
if: startsWith(github.event.inputs.release_type, 'pre') != true
|
|
52
|
-
run: |
|
|
53
|
-
echo "NEW_VERSION=$(npm --no-git-tag-version version $RELEASE_TYPE)" >> $GITHUB_ENV
|
|
54
|
-
echo "RELEASE_TAG=latest" >> $GITHUB_ENV
|
|
55
|
-
env:
|
|
56
|
-
RELEASE_TYPE: ${{github.event.inputs.release_type}}
|
|
57
|
-
|
|
58
|
-
# Set pre-release version
|
|
59
|
-
- name: Set pre-release version
|
|
60
|
-
if: startsWith(github.event.inputs.release_type, 'pre')
|
|
61
|
-
run: |
|
|
62
|
-
echo "NEW_VERSION=$(npm --no-git-tag-version --preid=beta version $RELEASE_TYPE)" >> $GITHUB_ENV
|
|
63
|
-
echo "RELEASE_TAG=beta" >> $GITHUB_ENV
|
|
64
|
-
env:
|
|
65
|
-
RELEASE_TYPE: ${{github.event.inputs.release_type}}
|
|
66
|
-
|
|
67
|
-
# Build release assets
|
|
68
|
-
- name: Build release assets
|
|
69
|
-
run: |
|
|
70
|
-
npm run build
|
|
71
|
-
|
|
72
|
-
## Add release assets
|
|
73
|
-
- name: Add release assets to commit
|
|
74
|
-
run: |
|
|
75
|
-
git add -f "dist/**/*"
|
|
76
|
-
|
|
77
|
-
# Commit updated package.json
|
|
78
|
-
- name: Commit package.json and create tag
|
|
79
|
-
run: |
|
|
80
|
-
git add "package.json"
|
|
81
|
-
git add "package-lock.json"
|
|
82
|
-
git commit -m "chore: release ${{env.NEW_VERSION}}"
|
|
83
|
-
git tag ${{env.NEW_VERSION}}
|
|
84
|
-
|
|
85
|
-
# Push to git repo
|
|
86
|
-
- name: Push changes to git
|
|
87
|
-
env:
|
|
88
|
-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
89
|
-
run: |
|
|
90
|
-
git push origin && git push --tags
|
|
91
|
-
|
|
92
|
-
# Publish to npm
|
|
93
|
-
- name: Publish npm package
|
|
94
|
-
run: npm publish --access public
|
|
95
|
-
env:
|
|
96
|
-
NODE_AUTH_TOKEN: ${{secrets.DS_REACT}}
|