@ids-group-ltd/ids-design-system 0.1.0 → 0.2.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/LICENSE +21 -0
- package/README.md +37 -11
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +241 -240
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/package.json +3 -2
- package/styles/_dropdown-overlay.scss +117 -117
- package/styles/_fonts.scss +59 -59
- package/styles/_icon-base.scss +9 -9
- package/styles/_link.scss +77 -77
- package/styles/_reset.scss +17 -17
- package/styles/_scrollbar.scss +17 -17
- package/styles/_toast-overlay.scss +6 -6
- package/styles/_tokens-charts.scss +70 -70
- package/styles/_tokens.scss +614 -614
- package/styles/ds.scss +27 -27
- package/themes/README.md +96 -96
- package/themes/default/_palette.scss +159 -159
- package/themes/default/_theme.scss +274 -274
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 IDS Group Ltd
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Angular component library, design tokens and themes for IDS Group products.
|
|
4
4
|
|
|
5
|
+
📖 **Live docs & component showcase:** https://ids-ds.proto.ids-group.co.uk/
|
|
6
|
+
|
|
5
7
|
- 45+ standalone components (buttons, forms, overlays, navigation, data display)
|
|
6
8
|
- Three-tier token architecture: palette → semantic theme → geometry/typography/motion tokens
|
|
7
9
|
- Bundled fonts (Mulish, JetBrains Mono) — no external font CDN required
|
|
@@ -68,7 +70,8 @@ export class ExampleComponent {}
|
|
|
68
70
|
|
|
69
71
|
## Development
|
|
70
72
|
|
|
71
|
-
This repo contains the library (`src/`) and a documentation app (`ds-docs/`).
|
|
73
|
+
This repo contains the library (`src/`) and a documentation app (`ds-docs/`). The
|
|
74
|
+
docs app is published live at https://ids-ds.proto.ids-group.co.uk/.
|
|
72
75
|
|
|
73
76
|
```bash
|
|
74
77
|
npm run build # build the library into dist/ds
|
|
@@ -82,24 +85,46 @@ Releases follow [SemVer](https://semver.org): `fix` → patch, new backwards-com
|
|
|
82
85
|
features → minor, breaking changes (API or visual) → major. A new Angular major
|
|
83
86
|
always means a new package major. See `CHANGELOG.md` for history.
|
|
84
87
|
|
|
85
|
-
|
|
86
|
-
|
|
88
|
+
Before releasing, add your notes to the `## Unreleased` section of `CHANGELOG.md`
|
|
89
|
+
on `main`. Then release one of two ways.
|
|
90
|
+
|
|
91
|
+
### Option A — one-click in Bitbucket (recommended)
|
|
92
|
+
|
|
93
|
+
In the Bitbucket UI: **Pipelines → Run pipeline → branch `main` →** pick
|
|
94
|
+
`release-patch`, `release-minor`, `release-major`, or `release-beta`. CI bumps the
|
|
95
|
+
version, stamps the CHANGELOG, commits, and pushes `main` + a `vX.Y.Z` tag — no
|
|
96
|
+
local tooling needed. That tag push then triggers the `Publish to npm` pipeline,
|
|
97
|
+
which builds and publishes (so you'll see two runs: the release, then the publish).
|
|
98
|
+
`## Unreleased` must be filled first; preflight fails the pipeline early otherwise.
|
|
99
|
+
|
|
100
|
+
### Option B — locally
|
|
101
|
+
|
|
102
|
+
With a clean, in-sync `main`:
|
|
87
103
|
|
|
88
104
|
```bash
|
|
89
105
|
npm run release:patch # 0.1.0 -> 0.1.1 bugfixes
|
|
90
106
|
npm run release:minor # 0.1.0 -> 0.2.0 new components/inputs/tokens
|
|
91
107
|
npm run release:major # 0.x -> 1.0.0 breaking changes
|
|
108
|
+
npm run release:beta # 0.2.0 -> 0.2.1-beta.0 pre-release
|
|
92
109
|
|
|
93
110
|
git push origin main --follow-tags # the tag push triggers CI publish
|
|
94
111
|
```
|
|
95
112
|
|
|
96
|
-
Each `release:*`
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
`
|
|
113
|
+
Each `release:*` runs preflight checks first (must be on a clean, in-sync `main`
|
|
114
|
+
with a non-empty `## Unreleased` CHANGELOG section), bumps the version, stamps the
|
|
115
|
+
CHANGELOG (`## Unreleased` → `## x.y.z — date`, opening a fresh Unreleased), and
|
|
116
|
+
creates a `release: x.y.z` commit plus a `vX.Y.Z` git tag locally — it does **not**
|
|
117
|
+
publish. The tag push to Bitbucket runs `bitbucket-pipelines.yml`, which builds
|
|
118
|
+
`dist/ds` and publishes it through `infrastructure/scripts/publish.sh`. That script
|
|
119
|
+
refuses to publish if the tag does not match the built version or if the version is
|
|
120
|
+
already on npm.
|
|
121
|
+
|
|
122
|
+
Bypass preflight in emergencies with `SKIP_PREFLIGHT=1 npm run release:patch`.
|
|
100
123
|
|
|
101
|
-
CI auth uses
|
|
102
|
-
token, read+write on `@ids-group-ltd`, "Bypass 2FA" enabled)
|
|
124
|
+
CI auth uses two Secured repository variables: `NPM_TOKEN` (npm granular access
|
|
125
|
+
token, read+write on `@ids-group-ltd`, "Bypass 2FA" enabled) for publishing, and —
|
|
126
|
+
for the one-click pipelines only — `RELEASE_TOKEN`, a Bitbucket Repository Access
|
|
127
|
+
Token with `repository:write` used to push the bump commit and tag back to `main`.
|
|
103
128
|
|
|
104
129
|
Manual publish (fallback, requires an authenticated npm session):
|
|
105
130
|
|
|
@@ -107,8 +132,9 @@ Manual publish (fallback, requires an authenticated npm session):
|
|
|
107
132
|
npm run publish:manual
|
|
108
133
|
```
|
|
109
134
|
|
|
110
|
-
Pre-releases: `npm
|
|
135
|
+
Pre-releases: `npm run release:beta` bumps to `x.y.z-beta.N`; the matching tag
|
|
136
|
+
publishes under the `next` dist-tag (never `latest`).
|
|
111
137
|
|
|
112
138
|
## License
|
|
113
139
|
|
|
114
|
-
|
|
140
|
+
[MIT](LICENSE) © IDS Group Ltd
|