@oaknational/oak-components 1.176.0 → 1.178.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/dist/types.d.ts CHANGED
@@ -3195,11 +3195,20 @@ type OakSaveButtonProps = {
3195
3195
  declare const OakSaveButton: (props: OakSaveButtonProps) => React__default.JSX.Element;
3196
3196
 
3197
3197
  type OakSaveCountProps = {
3198
- count: number;
3198
+ /**
3199
+ * The number of saved items.
3200
+ *
3201
+ * Setting this will show the count inline with the label.
3202
+ */
3203
+ count?: number;
3204
+ /**
3205
+ * The label to display inline with the count.
3206
+ */
3207
+ label?: string;
3199
3208
  href: string;
3200
3209
  loading: boolean;
3201
3210
  };
3202
- declare const OakSaveCount: ({ count, href, loading }: OakSaveCountProps) => React__default.JSX.Element;
3211
+ declare const OakSaveCount: ({ count, href, loading, label, }: OakSaveCountProps) => React__default.JSX.Element;
3203
3212
 
3204
3213
  type OakScaleImageButtonProps = Omit<InternalShadowRectButtonProps, "defaultTextColor" | "hoverTextColor" | "disabledTextColor" | "defaultBackground" | "defaultBorderColor" | "hoverBackground" | "hoverBorderColor" | "disabledBackground" | "disabledBorderColor" | "iconGap" | "pv" | "ph" | "$bblr" | "$btlr" | "width" | "onClick"> & {
3205
3214
  onImageScaleCallback: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oaknational/oak-components",
3
- "version": "1.176.0",
3
+ "version": "1.178.0",
4
4
  "licence": "MIT",
5
5
  "description": "Shared components for Oak applications",
6
6
  "main": "dist/cjs/index.js",