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