@uob-web-and-digital/component-library 2.8.0 → 2.9.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/README.md CHANGED
@@ -100,6 +100,37 @@ After installation you will need to add the following to your layout file;
100
100
  import '@uob-web-and-digital/component-library/dist/main.css';
101
101
  ```
102
102
 
103
+ ## Testing the component package library with a local consumer application
104
+
105
+ In order to test the component library with you need to build and then package the library into a file using pack:
106
+
107
+ ```
108
+ npm run build-package
109
+ npm pack <filename>
110
+ ```
111
+
112
+ This produces \<filename\>.tgz
113
+
114
+ Copy this file into the root directory of your consuming app then change your package.json to point to that file instead of the npmjs.org package.
115
+
116
+ Change:
117
+
118
+ ```
119
+ "@uob-web-and-digital/component-library": "^2.7.10",
120
+ ```
121
+
122
+ To:
123
+
124
+ ```
125
+ "@uob-web-and-digital/component-library": "file:./<filename>.tgz",
126
+ ```
127
+
128
+ Then do an npm install for that file.
129
+
130
+ ```
131
+ npm install <filename>.tgz
132
+ ```
133
+
103
134
  ## Base64 fonts
104
135
 
105
136
  Fonts are base64 encoded so they are not hosted on a third party.
@@ -13,6 +13,7 @@ type Story = StoryObj<typeof CardImageAndText>;
13
13
  export declare const Light: Story;
14
14
  export declare const Dark: Story;
15
15
  export declare const MultipleParagraphs: Story;
16
+ export declare const HeadingH3: Story;
16
17
  export declare const Logo: Story;
17
18
  export declare const NoHeading: Story;
18
19
  export declare const Group: Story;
@@ -7,5 +7,6 @@ export interface AnchorTargetProps {
7
7
  targetLabel: string;
8
8
  children: ReactNode;
9
9
  includeDivider?: boolean;
10
+ landmarkLabel?: string;
10
11
  }
11
- export default function AnchorTarget({ theme, inverse, includeDivider, targetLabel, children }: AnchorTargetProps): ReactElement;
12
+ export default function AnchorTarget({ theme, inverse, includeDivider, targetLabel, landmarkLabel, children }: AnchorTargetProps): ReactElement;