@oaknational/oak-components 2.28.1 → 2.29.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
@@ -4473,19 +4473,35 @@ type OakCopyLinkButtonProps = {
4473
4473
  declare const OakCopyLinkButton: ({ href }: OakCopyLinkButtonProps) => React__default.JSX.Element;
4474
4474
 
4475
4475
  type OakDownloadCardProps = BaseCheckBoxProps & {
4476
- titleSlot: React__default.ReactNode;
4477
- fileSizeSlot?: React__default.ReactNode;
4478
- formatSlot: React__default.ReactNode;
4479
- iconName: IconName;
4480
- displayValue?: string;
4481
- asRadio?: boolean;
4482
- } & InternalCheckBoxLabelProps;
4476
+ /**
4477
+ * The primary title content for the download.
4478
+ */
4479
+ title: React__default.ReactNode;
4480
+ /**
4481
+ * Optional file size content shown beneath the title.
4482
+ */
4483
+ fileSize?: React__default.ReactNode;
4484
+ /**
4485
+ * The file format or secondary metadata shown beneath the title.
4486
+ */
4487
+ format: React__default.ReactNode;
4488
+ /**
4489
+ * The icon used to represent the download type.
4490
+ */
4491
+ iconName: IconName | IconName[];
4492
+ /**
4493
+ * If true, renders the selection control as a radio button instead of a checkbox.
4494
+ *
4495
+ * @default false
4496
+ */
4497
+ isRadio?: boolean;
4498
+ };
4483
4499
  /**
4484
- *
4485
- * Used for choosing teaching resources, curriculum maps, or any downloadable items.
4486
- *
4500
+ * Download cards present a downloadable resource with metadata and a selectable control.
4501
+ * ## Usage
4502
+ * Use this component when users need to select one or more downloadable resources,
4503
+ * such as lesson plans, slide decks, or worksheets.
4487
4504
  * Design document: <https://www.figma.com/design/YcWQMMhHPVVmc47cHHEEAl/Oak-Design-Kit?node-id=14795-5603>
4488
- *
4489
4505
  */
4490
4506
  declare const OakDownloadCard: (props: OakDownloadCardProps) => React__default.JSX.Element;
4491
4507
 
@@ -5170,6 +5186,7 @@ type OakSubjectIconButtonProps = {
5170
5186
  phase: "primary" | "secondary" | "non-curriculum";
5171
5187
  subjectIconName: OakIconName;
5172
5188
  variant: "vertical" | "horizontal";
5189
+ selected?: boolean;
5173
5190
  } & Omit<InternalShadowRectButtonProps, "defaultBorderColor" | "defaultBackground" | "defaultTextColor" | "hoverBackground" | "hoverBorderColor" | "hoverTextColor" | "disabledBackground" | "disabledBorderColor" | "disabledTextColor" | "pv" | "ph" | "font">;
5174
5191
  /**
5175
5192
  *
@@ -5185,7 +5202,7 @@ type OakSubjectIconButtonProps = {
5185
5202
  * `onHovered?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, duration: number) => void;`<br>
5186
5203
  * called after a mouseEnter and mouseLeave event has happened
5187
5204
  */
5188
- declare const OakSubjectIconButton: <C extends ElementType = "button">({ phase, element, subjectIconName, variant, ...rest }: OakSubjectIconButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
5205
+ declare const OakSubjectIconButton: <C extends ElementType = "button">({ phase, element, subjectIconName, variant, selected, ...rest }: OakSubjectIconButtonProps & PolymorphicPropsWithoutRef<C>) => React__default.JSX.Element;
5189
5206
 
5190
5207
  type OakVideoTranscriptProps = {
5191
5208
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oaknational/oak-components",
3
- "version": "2.28.1",
3
+ "version": "2.29.0",
4
4
  "licence": "MIT",
5
5
  "description": "Shared components for Oak applications",
6
6
  "main": "dist/cjs/index.js",