@royallondon/design-system-component-avatar 0.0.0-stage → 1.3.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.
package/LICENSE.md ADDED
@@ -0,0 +1,54 @@
1
+ Authorised Use Licence v1.0
2
+
3
+ Copyright © 2026 Royal London.
4
+ All rights reserved.
5
+
6
+ 1. Grant of Licence
7
+
8
+ The Licensor grants a non-exclusive, non-transferable,
9
+ revocable, royalty-free licence to use the Software only where:
10
+
11
+ (a) the individual, organisation, or business has been
12
+ expressly authorised in writing by the Licensor; and
13
+
14
+ (b) such authorisation remains in force.
15
+
16
+ 2. Restrictions
17
+
18
+ The Software may not be:
19
+
20
+ (a) used by any unauthorised person or organisation;
21
+
22
+ (b) redistributed, sublicensed, sold, rented or made
23
+ available to third parties;
24
+
25
+ (c) incorporated into another product or service without
26
+ written approval;
27
+
28
+ (d) reverse engineered except where prohibited by law.
29
+
30
+ 3. Ownership
31
+
32
+ The Software remains the exclusive property of the Licensor.
33
+ No ownership rights are transferred under this Licence.
34
+
35
+ 4. Termination
36
+
37
+ The Licensor may revoke authorisation at any time by
38
+ written notice.
39
+
40
+ Upon termination the Licensee must immediately cease use
41
+ of the Software and destroy all copies.
42
+
43
+ 5. No Warranty
44
+
45
+ The Software is provided "as is" without warranty of any kind.
46
+
47
+ 6. Limitation of Liability
48
+
49
+ The Licensor shall not be liable for any damages arising
50
+ from use of the Software.
51
+
52
+ 7. Governing Law
53
+
54
+ This Licence shall be governed by the laws of England and Wales.
package/README.md CHANGED
@@ -1,3 +1,41 @@
1
- # Temporary Holding Version
1
+ ### Installation
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Install the Avatar package from npm
4
+
5
+ ```bash
6
+ npm install @royallondon/design-system-component-avatar
7
+ ```
8
+
9
+ Import the required CSS file
10
+
11
+ ```css
12
+ @import '@royallondon/design-system-component-avatar/dist/avatar';
13
+ ```
14
+
15
+ [Start using the Avatar component](https://design.royallondon.com/components/avatar/#live-example)
16
+
17
+ ### Support
18
+
19
+ Issues and questions are handled through the [Royal London Design System support page](https://design.royallondon.com/support/).
20
+
21
+ ### Licence
22
+
23
+ #### @royallondon/design-system-component-avatar
24
+
25
+ This package is published primarily for use in Royal London products. It is made available publicly so that partners and suppliers building Royal London experiences can consume it directly.
26
+
27
+ Use of this package is subject to the Royal London Authorised Use Licence. See the `LICENSE.md` file included in this package.
28
+
29
+ The Avatar component for the [Royal London Design System](https://design.royallondon.com). For design guidance, examples and accessibility notes, see the [Avatar page](https://design.royallondon.com/components/avatar/).
30
+
31
+ ### Release log
32
+
33
+ | Version | Release notes |
34
+ | ------- | ---------------------------------------------------------------------------------------------------- |
35
+ | 1.3.0 | Prepare for public npm release: add licence, publish `dist` only (`src` removed), remove source maps |
36
+ | 1.2.3 | Move to new feed |
37
+ | 1.2.0 | Apply new icons and latest tokens added to foundations |
38
+ | 1.1.0 | Update styles to use type tokens |
39
+ | 1.0.2 | Build package css |
40
+ | 1.0.1 | Apply icon size via css |
41
+ | 1.0.0 | First release after testing |
@@ -0,0 +1,5 @@
1
+ .rl-c-avatar{-moz-column-gap:var(--spacing-02);column-gap:var(--spacing-02);display:flex;font-family:var(--typography-font-family-body-small);width:100%}.rl-c-avatar__icon{align-items:center;background:var(--avatar-item-library-fill-container-secondary);border:1px solid var(--avatar-item-library-stroke-secondary);border-radius:50%;color:var(--avatar-item-library-text-initial-secondary);display:flex;flex-shrink:0;height:3rem;justify-content:center;width:3rem}.rl-c-avatar__icon svg{fill:currentColor;height:1rem;width:1rem}.rl-c-avatar__icon-text{font-family:var(--typography-font-family-title-medium);font-size:var(--typography-size-title-medium);font-weight:var(--typography-weight-title-medium);line-height:var(--type-line-height);text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rl-c-avatar__detail{display:flex;flex-direction:column;justify-content:center}.rl-c-avatar__detail-role{color:var(--avatar-text-label);margin-block-end:0}.rl-c-avatar__detail-name{color:var(--avatar-text-body);margin-block-end:0}.rl-c-avatar--primary .rl-c-avatar__icon{background-color:var(--avatar-item-library-fill-container-primary);border-color:var(--avatar-item-library-stroke-primary);color:var(--avatar-item-library-text-initial-primary)}.rl-c-avatar--tertiary-wine .rl-c-avatar__icon{background-color:var(--avatar-item-library-fill-container-tertiary-wine);border-color:var(--avatar-item-library-stroke-tertiary-wine);color:var(--avatar-item-library-text-initial-tertiary-wine)}.rl-c-avatar--tertiary-rose .rl-c-avatar__icon{background-color:var(--avatar-item-library-fill-container-tertiary-rose);border-color:var(--avatar-item-library-stroke-tertiary-rose);color:var(--avatar-item-library-text-initial-tertiary-rose)}.rl-c-avatar--tertiary-watermelon .rl-c-avatar__icon{background-color:var(
2
+ --avatar-item-library-fill-container-tertiary-watermelon
3
+ );border-color:var(--avatar-item-library-stroke-tertiary-watermelon);color:var(--avatar-item-library-text-initial-tertiary-watermelon)}.rl-c-avatar--tertiary-lavender .rl-c-avatar__icon{background-color:var(
4
+ --avatar-item-library-fill-container-tertiary-lavender
5
+ );border-color:var(--avatar-item-library-stroke-tertiary-lavender);color:var(--avatar-item-library-text-initial-tertiary-lavender)}.rl-c-avatar--tertiary-azure .rl-c-avatar__icon{background-color:var(--avatar-item-library-fill-container-tertiary-azure);border-color:var(--avatar-item-library-stroke-tertiary-azure);color:var(--avatar-item-library-text-initial-tertiary-azure)}
package/package.json CHANGED
@@ -1,6 +1,41 @@
1
1
  {
2
2
  "name": "@royallondon/design-system-component-avatar",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.3.0",
4
+ "description": "Royal London Design System - Avatar package",
5
+ "homepage": "https://design.royallondon.com/components/avatar/",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://dev.azure.com/RLG-UK/GTC/_git/design-system",
9
+ "directory": "ds-packages/packages/design-system-component-avatar"
10
+ },
11
+ "bugs": {
12
+ "url": "https://design.royallondon.com/support/"
13
+ },
14
+ "keywords": [
15
+ "royal-london-design-system-component-avatar",
16
+ "rlds-avatar",
17
+ "royal-london"
18
+ ],
19
+ "author": "Design System Squad <DesignSystem@royallondon.com>",
20
+ "license": "SEE LICENSE IN LICENSE.md",
21
+ "main": "dist/avatar.css",
22
+ "style": "dist/avatar.css",
23
+ "scripts": {
24
+ "build:clean": "npx rimraf dist",
25
+ "build:lint": "stylelint src/**/*.{css,pcss} --fix",
26
+ "build:css": "postcss src/**/avatar.pcss --base src --dir dist/ --ext css",
27
+ "build": "npm-run-all --serial build:clean build:css"
28
+ },
29
+ "devDependencies": {
30
+ "@royallondon/design-system-foundations": "^2.23.0"
31
+ },
32
+ "peerDependencies": {
33
+ "@royallondon/design-system-foundations": ">= 2.15.0 < 3"
34
+ },
35
+ "files": [
36
+ "dist"
37
+ ],
38
+ "publishConfig": {
39
+ "access": "public"
40
+ }
6
41
  }