@ndla/ui 34.0.1 → 34.1.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/es/Figure/Figure.js +3 -2
- package/es/FileList/File.js +6 -6
- package/es/LanguageSelector/LanguageSelector.js +67 -99
- package/es/NDLAFilm/AboutNdlaFilm.js +13 -12
- package/es/NDLAFilm/AllMoviesAlphabetically.js +79 -144
- package/es/NDLAFilm/FilmContentCard.js +41 -26
- package/es/NDLAFilm/FilmContentCardTags.js +5 -3
- package/es/NDLAFilm/FilmMovieList.js +13 -8
- package/es/NDLAFilm/FilmMovieSearch.js +6 -5
- package/es/NDLAFilm/FilmSlideshow.js +44 -20
- package/es/NDLAFilm/filmStyles.js +2 -2
- package/es/ResourceGroup/ResourceItem.js +72 -48
- package/es/Search/ActiveFilterContent.js +6 -5
- package/es/Search/ContentTypeResult.js +6 -3
- package/es/SearchTypeResult/ActiveFilterContent.js +9 -10
- package/es/Topic/Topic.js +171 -213
- package/es/all.css +1 -1
- package/es/locale/messages-en.js +3 -1
- package/es/locale/messages-nb.js +3 -1
- package/es/locale/messages-nn.js +7 -5
- package/es/locale/messages-se.js +2 -0
- package/es/locale/messages-sma.js +3 -1
- package/lib/Figure/Figure.d.ts +2 -1
- package/lib/Figure/Figure.js +3 -2
- package/lib/FileList/File.js +6 -6
- package/lib/LanguageSelector/LanguageSelector.d.ts +6 -15
- package/lib/LanguageSelector/LanguageSelector.js +64 -99
- package/lib/NDLAFilm/AboutNdlaFilm.js +11 -14
- package/lib/NDLAFilm/AllMoviesAlphabetically.d.ts +1 -2
- package/lib/NDLAFilm/AllMoviesAlphabetically.js +77 -142
- package/lib/NDLAFilm/FilmContentCard.d.ts +7 -0
- package/lib/NDLAFilm/FilmContentCard.js +41 -26
- package/lib/NDLAFilm/FilmContentCardTags.d.ts +2 -1
- package/lib/NDLAFilm/FilmContentCardTags.js +5 -3
- package/lib/NDLAFilm/FilmMovieList.js +12 -7
- package/lib/NDLAFilm/FilmMovieSearch.js +5 -4
- package/lib/NDLAFilm/FilmSlideshow.js +44 -20
- package/lib/NDLAFilm/filmStyles.js +2 -2
- package/lib/Resource/resourceComponents.d.ts +1 -1
- package/lib/ResourceGroup/ResourceItem.d.ts +2 -2
- package/lib/ResourceGroup/ResourceItem.js +72 -48
- package/lib/Search/ActiveFilterContent.d.ts +1 -1
- package/lib/Search/ActiveFilterContent.js +9 -5
- package/lib/Search/ContentTypeResult.js +6 -3
- package/lib/SearchTypeResult/ActiveFilterContent.d.ts +1 -1
- package/lib/SearchTypeResult/ActiveFilterContent.js +12 -10
- package/lib/Topic/Topic.js +170 -215
- package/lib/all.css +1 -1
- package/lib/locale/messages-en.d.ts +2 -0
- package/lib/locale/messages-en.js +3 -1
- package/lib/locale/messages-nb.d.ts +2 -0
- package/lib/locale/messages-nb.js +3 -1
- package/lib/locale/messages-nn.d.ts +4 -2
- package/lib/locale/messages-nn.js +7 -5
- package/lib/locale/messages-se.d.ts +2 -0
- package/lib/locale/messages-se.js +2 -0
- package/lib/locale/messages-sma.d.ts +2 -0
- package/lib/locale/messages-sma.js +3 -1
- package/package.json +15 -14
- package/src/Figure/Figure.tsx +6 -2
- package/src/FileList/File.tsx +4 -4
- package/src/LanguageSelector/LanguageSelector.stories.tsx +48 -0
- package/src/LanguageSelector/LanguageSelector.tsx +70 -149
- package/src/NDLAFilm/AboutNdlaFilm.tsx +11 -14
- package/src/NDLAFilm/AllMoviesAlphabetically.tsx +44 -160
- package/src/NDLAFilm/FilmContentCard.tsx +40 -21
- package/src/NDLAFilm/FilmContentCardTags.tsx +3 -2
- package/src/NDLAFilm/FilmMovieList.tsx +14 -7
- package/src/NDLAFilm/FilmMovieSearch.tsx +2 -2
- package/src/NDLAFilm/FilmSlideshow.tsx +49 -40
- package/src/NDLAFilm/filmStyles.ts +1 -1
- package/src/ResourceGroup/ResourceItem.tsx +79 -94
- package/src/Search/ActiveFilterContent.tsx +4 -3
- package/src/Search/ContentTypeResult.tsx +3 -1
- package/src/SearchTypeResult/ActiveFilterContent.tsx +7 -8
- package/src/Topic/Topic.tsx +166 -193
- package/src/locale/messages-en.ts +3 -1
- package/src/locale/messages-nb.ts +3 -1
- package/src/locale/messages-nn.ts +5 -4
- package/src/locale/messages-se.ts +2 -0
- package/src/locale/messages-sma.ts +3 -1
- package/src/main.scss +0 -1
- package/es/LanguageSelector/LanguageSelectorContent.js +0 -61
- package/es/Subject/SubjectCarousel.js +0 -133
- package/lib/LanguageSelector/LanguageSelectorContent.d.ts +0 -15
- package/lib/LanguageSelector/LanguageSelectorContent.js +0 -68
- package/lib/Subject/SubjectCarousel.d.ts +0 -18
- package/lib/Subject/SubjectCarousel.js +0 -138
- package/src/LanguageSelector/LanguageSelectorContent.tsx +0 -80
- package/src/NDLAFilm/component.film-movielist.scss +0 -105
- package/src/Subject/SubjectCarousel.tsx +0 -162
|
@@ -20,9 +20,9 @@ exports.setAnimations = setAnimations;
|
|
|
20
20
|
var StyledHeadingH1 = /*#__PURE__*/(0, _base["default"])("h1", {
|
|
21
21
|
target: "e1uw8gqd0",
|
|
22
22
|
label: "StyledHeadingH1"
|
|
23
|
-
})(_core.fonts.sizes('22px', '26px'), ";font-weight:", _core.fonts.weight.semibold, ";text-transform:uppercase;letter-spacing:0.05em;color:", _core.colors.white, ";margin:", _core.spacing.
|
|
23
|
+
})(_core.fonts.sizes('22px', '26px'), ";font-weight:", _core.fonts.weight.semibold, ";text-transform:uppercase;letter-spacing:0.05em;color:", _core.colors.white, ";margin:", _core.spacing.xsmall, " 0;margin-left:", function (props) {
|
|
24
24
|
return props.marginLeft && "".concat(props.marginLeft, "px");
|
|
25
|
-
}, ";small{font-weight:normal;padding-left:", _core.spacing.small, ";color:", _core.colors.brand.grey, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbG1TdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUI0RCIsImZpbGUiOiJmaWxtU3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgZm9udHMsIHNwYWNpbmcsIGNvbG9ycyB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuXG5leHBvcnQgY29uc3Qgc2V0QW5pbWF0aW9ucyA9ICgpID0+IHtcbiAgY29uc3Qgc3R5bGVzOiBhbnkgPSB7fTtcbiAgZm9yIChsZXQgaSA9IDE7IGkgPCAyMDsgaSsrKSB7XG4gICAgc3R5bGVzW2A+IGRpdjpudGgtY2hpbGQoJHtpICsgMX0pYF0gPSB7XG4gICAgICAnYW5pbWF0aW9uLWRlbGF5JzogYCR7aSAqIDUwfW1zYCxcbiAgICB9O1xuICB9XG4gIHJldHVybiBzdHlsZXM7XG59O1xuXG5pbnRlcmZhY2UgU3R5bGVkSGVhZGluZ1Byb3BzIHtcbiAgbWFyZ2luTGVmdD86IG51bWJlcjtcbn1cblxuZXhwb3J0IGNvbnN0IFN0eWxlZEhlYWRpbmdIMSA9IHN0eWxlZC5oMTxTdHlsZWRIZWFkaW5nUHJvcHM+
|
|
25
|
+
}, ";small{font-weight:normal;padding-left:", _core.spacing.small, ";color:", _core.colors.brand.grey, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpbG1TdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUI0RCIsImZpbGUiOiJmaWxtU3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgZm9udHMsIHNwYWNpbmcsIGNvbG9ycyB9IGZyb20gJ0BuZGxhL2NvcmUnO1xuXG5leHBvcnQgY29uc3Qgc2V0QW5pbWF0aW9ucyA9ICgpID0+IHtcbiAgY29uc3Qgc3R5bGVzOiBhbnkgPSB7fTtcbiAgZm9yIChsZXQgaSA9IDE7IGkgPCAyMDsgaSsrKSB7XG4gICAgc3R5bGVzW2A+IGRpdjpudGgtY2hpbGQoJHtpICsgMX0pYF0gPSB7XG4gICAgICAnYW5pbWF0aW9uLWRlbGF5JzogYCR7aSAqIDUwfW1zYCxcbiAgICB9O1xuICB9XG4gIHJldHVybiBzdHlsZXM7XG59O1xuXG5pbnRlcmZhY2UgU3R5bGVkSGVhZGluZ1Byb3BzIHtcbiAgbWFyZ2luTGVmdD86IG51bWJlcjtcbn1cblxuZXhwb3J0IGNvbnN0IFN0eWxlZEhlYWRpbmdIMSA9IHN0eWxlZC5oMTxTdHlsZWRIZWFkaW5nUHJvcHM+YFxuICAke2ZvbnRzLnNpemVzKCcyMnB4JywgJzI2cHgnKX07XG4gIGZvbnQtd2VpZ2h0OiAke2ZvbnRzLndlaWdodC5zZW1pYm9sZH07XG4gIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG4gIGxldHRlci1zcGFjaW5nOiAwLjA1ZW07XG4gIGNvbG9yOiAke2NvbG9ycy53aGl0ZX07XG4gIG1hcmdpbjogJHtzcGFjaW5nLnhzbWFsbH0gMDtcbiAgbWFyZ2luLWxlZnQ6ICR7KHByb3BzKSA9PiBwcm9wcy5tYXJnaW5MZWZ0ICYmIGAke3Byb3BzLm1hcmdpbkxlZnR9cHhgfTtcbiAgc21hbGwge1xuICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7XG4gICAgcGFkZGluZy1sZWZ0OiAke3NwYWNpbmcuc21hbGx9O1xuICAgIGNvbG9yOiAke2NvbG9ycy5icmFuZC5ncmV5fTtcbiAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZEhlYWRpbmdIMiA9IFN0eWxlZEhlYWRpbmdIMS53aXRoQ29tcG9uZW50KCdoMicpO1xuIl19 */"));
|
|
26
26
|
exports.StyledHeadingH1 = StyledHeadingH1;
|
|
27
27
|
var StyledHeadingH2 = StyledHeadingH1.withComponent('h2', {
|
|
28
28
|
target: "e1uw8gqd1",
|
|
@@ -10,7 +10,7 @@ export interface ResourceImageProps {
|
|
|
10
10
|
alt: string;
|
|
11
11
|
src: string;
|
|
12
12
|
}
|
|
13
|
-
export declare const ResourceTitleLink: import("@emotion/styled").StyledComponent<Pick<import("@ndla/safelink").SafeLinkProps, "replace" | "type" | "id" | "media" | "state" | "color" | "translate" | "hidden" | "slot" | "style" | "title" | "dir" | "target" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "role" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "download" | "hrefLang" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "to" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "rel" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ping" | "referrerPolicy" | "reloadDocument" | "showNewWindowIcon" | "asAnchor"> & React.RefAttributes<HTMLAnchorElement> & {
|
|
13
|
+
export declare const ResourceTitleLink: import("@emotion/styled").StyledComponent<Pick<import("@ndla/safelink").SafeLinkProps, "replace" | "type" | "id" | "media" | "state" | "color" | "translate" | "hidden" | "slot" | "style" | "title" | "dir" | "target" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "role" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "disabled" | "download" | "hrefLang" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "to" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "rel" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ping" | "referrerPolicy" | "reloadDocument" | "showNewWindowIcon" | "asAnchor"> & React.RefAttributes<HTMLAnchorElement> & {
|
|
14
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
15
|
}, {}, {}>;
|
|
16
16
|
export declare const ResourceTitle: import("@emotion/styled").StyledComponent<{
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { ReactNode } from 'react';
|
|
9
9
|
import { Resource } from '../types';
|
|
10
|
-
|
|
10
|
+
interface Props {
|
|
11
11
|
id: string;
|
|
12
12
|
showContentTypeDescription?: boolean;
|
|
13
13
|
contentTypeName?: string;
|
|
@@ -16,6 +16,6 @@ type Props = {
|
|
|
16
16
|
showAdditionalResources?: boolean;
|
|
17
17
|
access?: 'teacher';
|
|
18
18
|
heartButton?: (path: string) => ReactNode;
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
20
|
declare const ResourceItem: ({ id, contentTypeName, contentTypeDescription, name, path, contentType, active, additional, extraBottomMargin, showAdditionalResources, access, heartButton, }: Props & Resource) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
21
21
|
export default ResourceItem;
|