@ndla/ui 50.5.4 → 50.6.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.
Files changed (60) hide show
  1. package/es/CompetenceGoalTab/SearchButton.js +3 -3
  2. package/es/ErrorMessage/ErrorResourceAccessDenied.js +3 -3
  3. package/es/FileList/File.js +9 -55
  4. package/es/FileList/FileList.js +19 -8
  5. package/es/FileList/Format.js +70 -0
  6. package/es/FileList/index.js +1 -0
  7. package/es/LearningPaths/LearningPathSticky.js +6 -8
  8. package/es/LicenseByline/EmbedByline.js +7 -7
  9. package/es/Navigation/NavigationBox.js +43 -78
  10. package/es/ResourceGroup/ResourceItem.js +15 -11
  11. package/es/Search/ContentTypeResult.js +3 -3
  12. package/es/Search/SearchResult.js +11 -11
  13. package/es/Search/SearchResultSleeve.js +11 -11
  14. package/es/SearchTypeResult/components/ItemContexts.js +9 -7
  15. package/es/Topic/Topic.js +24 -52
  16. package/es/all.css +1 -1
  17. package/es/index.js +1 -1
  18. package/lib/CompetenceGoalTab/SearchButton.js +3 -3
  19. package/lib/ErrorMessage/ErrorResourceAccessDenied.js +3 -3
  20. package/lib/FileList/File.js +11 -54
  21. package/lib/FileList/FileList.d.ts +4 -3
  22. package/lib/FileList/FileList.js +19 -8
  23. package/lib/FileList/Format.d.ts +16 -0
  24. package/lib/FileList/Format.js +74 -0
  25. package/lib/FileList/index.d.ts +1 -0
  26. package/lib/FileList/index.js +7 -0
  27. package/lib/LearningPaths/LearningPathSticky.js +6 -8
  28. package/lib/LicenseByline/EmbedByline.js +7 -7
  29. package/lib/Navigation/NavigationBox.d.ts +2 -5
  30. package/lib/Navigation/NavigationBox.js +42 -77
  31. package/lib/ResourceGroup/ResourceItem.js +15 -11
  32. package/lib/Search/ContentTypeResult.js +3 -3
  33. package/lib/Search/SearchResult.js +11 -11
  34. package/lib/Search/SearchResultSleeve.js +11 -11
  35. package/lib/SearchTypeResult/components/ItemContexts.js +9 -7
  36. package/lib/Topic/Topic.js +24 -50
  37. package/lib/all.css +1 -1
  38. package/lib/index.d.ts +1 -1
  39. package/lib/index.js +6 -0
  40. package/package.json +17 -17
  41. package/src/CompetenceGoalTab/SearchButton.tsx +1 -1
  42. package/src/ErrorMessage/ErrorResourceAccessDenied.tsx +2 -2
  43. package/src/Figure/component.figure.scss +5 -2
  44. package/src/FileList/File.tsx +5 -65
  45. package/src/FileList/FileList.tsx +18 -13
  46. package/src/FileList/Format.tsx +75 -0
  47. package/src/FileList/index.ts +1 -0
  48. package/src/Filter/component.filter.scss +1 -1
  49. package/src/LearningPaths/LearningPathSticky.tsx +2 -15
  50. package/src/LicenseByline/EmbedByline.tsx +2 -1
  51. package/src/Navigation/NavigationBox.tsx +76 -104
  52. package/src/ResourceGroup/ResourceItem.tsx +2 -2
  53. package/src/Search/ContentTypeResult.tsx +2 -2
  54. package/src/Search/SearchResult.tsx +3 -3
  55. package/src/Search/SearchResultSleeve.tsx +3 -3
  56. package/src/Search/component.search-result.scss +1 -1
  57. package/src/SearchTypeResult/components/ItemContexts.tsx +5 -1
  58. package/src/Topic/Topic.tsx +26 -39
  59. package/src/all.scss +0 -1
  60. package/src/index.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2020-present, NDLA.
2
+ * Copyright (c) 2019-present, NDLA.
3
3
  *
4
4
  * This source code is licensed under the GPLv3 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -12,15 +12,16 @@ import { css } from '@emotion/react';
12
12
  import styled from '@emotion/styled';
13
13
  import { ButtonV2 } from '@ndla/button';
14
14
  import { breakpoints, colors, misc, mq, spacing } from '@ndla/core';
15
- import { HumanMaleBoard } from '@ndla/icons/common';
15
+ import { Additional, HumanMaleBoard } from '@ndla/icons/common';
16
16
  import { SafeLinkButton } from '@ndla/safelink';
17
17
  import { Switch } from '@ndla/switch';
18
18
  import { Heading } from '@ndla/typography';
19
19
  import { uuid } from '@ndla/util';
20
20
 
21
21
  const StyledWrapper = styled.nav`
22
- margin: 20px 0 34px;
22
+ margin: ${spacing.normal} 0 ${spacing.mediumlarge};
23
23
  `;
24
+
24
25
  const StyledHeadingWrapper = styled.div`
25
26
  display: flex;
26
27
  justify-content: space-between;
@@ -33,77 +34,37 @@ const StyledHeading = styled(Heading)`
33
34
  }
34
35
  `;
35
36
 
36
- type listProps = {
37
- direction?: 'horizontal' | 'vertical' | 'floating';
38
- };
39
- const StyledList = styled.ul<listProps>`
37
+ const StyledList = styled.ul`
40
38
  list-style: none;
41
39
  margin: 0;
42
40
  padding: 0;
43
- ${(props) =>
44
- props.direction !== 'floating' &&
45
- css`
46
- ${mq.range({ from: breakpoints.tablet })} {
47
- column-count: 2;
48
- column-gap: 20px;
49
- ${props.direction === 'horizontal' &&
50
- css`
51
- display: grid;
52
- grid-template-columns: repeat(2, 1fr);
53
- `}
54
- }
55
- ${mq.range({ from: breakpoints.tabletWide })} {
56
- column-count: 3;
57
- column-gap: 20px;
58
- ${props.direction === 'horizontal' &&
59
- css`
60
- grid-template-columns: repeat(3, 1fr);
61
- `}
62
- }
63
- `};
41
+
42
+ &[data-direction='horizontal'] {
43
+ ${mq.range({ from: breakpoints.tablet })} {
44
+ column-count: 2;
45
+ column-gap: 20px;
46
+ display: grid;
47
+ grid-template-columns: repeat(2, 1fr);
48
+ }
49
+ ${mq.range({ from: breakpoints.tabletWide })} {
50
+ column-count: 3;
51
+ column-gap: 20px;
52
+ grid-template-columns: repeat(3, 1fr);
53
+ }
54
+ }
64
55
  `;
65
- type additionalResourceProps = {
66
- isAdditionalResource?: boolean;
67
- isRestrictedResource?: boolean;
68
- lighter?: boolean;
69
- selected?: boolean;
70
- listDirection?: listProps['direction'];
71
- };
72
56
 
73
- const StyledListItem = styled.li<additionalResourceProps>`
57
+ const StyledListItem = styled.li`
74
58
  margin-bottom: 0;
75
59
  break-inside: avoid;
76
- ${(props) =>
77
- props.listDirection === 'floating' &&
78
- css`
79
- display: inline-block;
80
- margin: 0 ${spacing.xsmall} ${spacing.xsmall} 0;
81
- ${mq.range({ until: breakpoints.mobileWide })} {
82
- display: block;
83
- }
84
- `}
85
- `;
86
60
 
87
- const StyledListElementWrapper = styled.div<additionalResourceProps>`
88
- position: relative;
89
- ${(props) =>
90
- props.isAdditionalResource &&
91
- css`
92
- & > * {
93
- border: 1px dashed ${props.lighter && !props.selected ? `${colors.brand.tertiary}` : `${colors.brand.dark}`};
94
- background-clip: padding-box;
95
- :hover,
96
- :focus {
97
- border: 1px dashed ${colors.brand.dark};
98
- background-clip: padding-box;
99
- color: ${colors.white};
100
- ${StyledAdditionalResourceMark} {
101
- color: ${colors.white};
102
- border-color: ${colors.white};
103
- }
104
- }
105
- }
106
- `}
61
+ &[data-direction='floating'] {
62
+ display: inline-block;
63
+ margin: 0 ${spacing.xsmall} ${spacing.xsmall} 0;
64
+ ${mq.range({ until: breakpoints.mobileWide })} {
65
+ display: block;
66
+ }
67
+ }
107
68
  `;
108
69
 
109
70
  const StyledSpacingElement = styled.span`
@@ -122,21 +83,22 @@ const StyledButtonContent = styled.span`
122
83
  align-items: center;
123
84
  `;
124
85
 
125
- const StyledButtonContentText = styled.span<additionalResourceProps>`
126
- ${(props) => {
127
- if (props.isAdditionalResource && props.isRestrictedResource) {
128
- return `padding-left: ${spacing.medium};`;
129
- }
130
- if (props.isAdditionalResource || props.isRestrictedResource) {
131
- return `padding-left: ${spacing.small};`;
132
- }
133
- }}
86
+ const StyledButtonContentText = styled.span`
87
+ &[data-additional='true'][data-restricted='true'] {
88
+ padding-left: ${spacing.medium};
89
+ }
90
+ &[data-additional='true'] {
91
+ padding-left: ${spacing.small};
92
+ }
93
+ &[data-restricted='true'] {
94
+ padding-left: ${spacing.small};
95
+ }
134
96
  `;
135
97
 
136
98
  const StyledMarksWrapper = styled.span`
137
99
  position: absolute;
138
- left: 7px;
139
- top: 6px;
100
+ left: ${spacing.xxsmall};
101
+ top: ${spacing.xsmall};
140
102
  display: flex;
141
103
  align-items: center;
142
104
  & > * {
@@ -146,32 +108,45 @@ const StyledMarksWrapper = styled.span`
146
108
  margin-left: 0;
147
109
  }
148
110
  `;
149
- const StyledAdditionalResourceMark = styled.span<additionalResourceProps>`
150
- color: ${(props) => (props.lighter && !props.selected ? `${colors.brand.dark}` : `${colors.white}`)};
151
- font-weight: 600;
152
- font-size: 12px;
153
- line-height: 18px;
154
- text-align: center;
155
- display: inline-block;
156
- width: 20px;
157
- height: 20px;
158
- border: 1px solid ${(props) => (props.lighter && !props.selected ? `${colors.brand.dark}` : `${colors.white}`)};
159
- border-radius: 100px;
160
- transition: ${misc.transition.default};
111
+
112
+ const StyledAdditional = styled(Additional)`
113
+ fill: ${colors.white};
114
+ width: ${spacing.nsmall};
115
+ height: ${spacing.nsmall};
161
116
  `;
162
117
 
163
118
  const StyledHumanBoardIconWrapper = styled.span`
164
119
  display: flex;
165
120
  `;
121
+
166
122
  const StyledButtonContentSelected = styled.span`
167
123
  width: 10px;
168
124
  height: 10px;
169
- border-radius: 50%;
125
+ border-radius: ${misc.borderRadiusLarge};
170
126
  background: ${colors.white};
171
127
  flex-shrink: 0;
172
128
  margin-left: ${spacing.small};
173
129
  `;
174
130
 
131
+ const StyledListElementWrapper = styled.div`
132
+ position: relative;
133
+ &[data-additional='true'] {
134
+ & > * {
135
+ border: 1px dashed ${colors.brand.dark};
136
+ background-clip: padding-box;
137
+ :hover,
138
+ :focus {
139
+ border: 1px dashed ${colors.brand.dark};
140
+ background-clip: padding-box;
141
+ color: ${colors.white};
142
+ }
143
+ &[data-color-mode='light'][data-selected='false'] {
144
+ border: 1px dashed ${colors.brand.tertiary};
145
+ }
146
+ }
147
+ }
148
+ `;
149
+
175
150
  const listElementStyle = css`
176
151
  display: flex;
177
152
  flex: 1;
@@ -186,6 +161,7 @@ export type ItemProps = {
186
161
  isAdditionalResource?: boolean;
187
162
  isRestrictedResource?: boolean;
188
163
  };
164
+
189
165
  type Props = {
190
166
  heading?: string;
191
167
  colorMode?: 'primary' | 'darker' | 'light' | 'greyLightest' | 'greyLighter';
@@ -194,7 +170,7 @@ type Props = {
194
170
  onClick?: (event: MouseEvent<HTMLElement>, id?: string) => void;
195
171
  hasAdditionalResources?: boolean;
196
172
  showAdditionalResources?: boolean;
197
- listDirection?: listProps['direction'];
173
+ listDirection?: 'horizontal' | 'floating';
198
174
  invertedStyle?: boolean;
199
175
  onToggleAdditionalResources?: (checked: boolean) => void;
200
176
  };
@@ -231,13 +207,13 @@ export const NavigationBox = ({
231
207
  />
232
208
  )}
233
209
  </StyledHeadingWrapper>
234
- <StyledList data-testid="nav-box-list" direction={listDirection}>
210
+ <StyledList data-testid="nav-box-list" data-direction={listDirection}>
235
211
  {items?.map((item: ItemProps) => (
236
- <StyledListItem key={item.label} listDirection={listDirection} data-testid="nav-box-item">
212
+ <StyledListItem key={item.label} data-direction={listDirection} data-testid="nav-box-item">
237
213
  <StyledListElementWrapper
238
- isAdditionalResource={item.isAdditionalResource}
239
- lighter={colorMode === 'light'}
240
- selected={item.selected}
214
+ data-additional={item.isAdditionalResource}
215
+ data-color-mode={colorMode}
216
+ data-selected={item.selected}
241
217
  >
242
218
  <ListElementType
243
219
  to={item.url ?? ''}
@@ -253,16 +229,12 @@ export const NavigationBox = ({
253
229
  >
254
230
  <StyledButtonContent>
255
231
  <StyledButtonContentText
256
- isAdditionalResource={item.isAdditionalResource}
257
- isRestrictedResource={item.isRestrictedResource}
258
- lighter={colorMode === 'light'}
232
+ data-additional={item.isAdditionalResource}
233
+ data-restricted={item.isRestrictedResource}
234
+ data-color-mode={colorMode}
259
235
  >
260
236
  <StyledMarksWrapper>
261
- {item.isAdditionalResource && (
262
- <StyledAdditionalResourceMark lighter={colorMode === 'light'} selected={item.selected}>
263
- T
264
- </StyledAdditionalResourceMark>
265
- )}
237
+ {item.isAdditionalResource && <StyledAdditional aria-label={t('resource.additionalTooltip')} />}
266
238
  {item.isRestrictedResource && (
267
239
  <StyledHumanBoardIconWrapper>
268
240
  <HumanMaleBoard />
@@ -264,12 +264,12 @@ const ResourceItem = ({
264
264
  <>
265
265
  {additional && (
266
266
  <IconWrapper id={additionalId} aria-label={contentTypeDescription} title={contentTypeDescription}>
267
- <Additional />
267
+ <Additional color={colors.brand.dark} />
268
268
  </IconWrapper>
269
269
  )}
270
270
  {!additional && (
271
271
  <IconWrapper id={coreId} aria-label={contentTypeDescription} title={contentTypeDescription}>
272
- <Core />
272
+ <Core color={colors.brand.primary} />
273
273
  </IconWrapper>
274
274
  )}
275
275
  </>
@@ -32,13 +32,13 @@ const renderAdditionalIcon = (label: string, isAdditional?: boolean): ReactEleme
32
32
  return (
33
33
  <Tooltip tooltip={label}>
34
34
  <div>
35
- <Additional className="c-icon--20" aria-hidden={false} />
35
+ <Additional size="normal" aria-hidden={false} />
36
36
  </div>
37
37
  </Tooltip>
38
38
  );
39
39
  }
40
40
  if (isAdditional) {
41
- return <Additional className="c-icon--20" />;
41
+ return <Additional size="normal" />;
42
42
  }
43
43
  return null;
44
44
  };
@@ -223,9 +223,9 @@ const StyledBreadcrumb = styled.div`
223
223
  ${mq.range({ from: breakpoints.desktop })} {
224
224
  ${fonts.sizes('16px', '24px')};
225
225
  }
226
- .c-icon {
227
- width: 12px;
228
- height: 12px;
226
+ [data-icon] {
227
+ width: ${spacing.small};
228
+ height: ${spacing.small};
229
229
  margin: 0 ${spacingUnit / 3}px;
230
230
 
231
231
  ${mq.range({ from: breakpoints.desktop })} {
@@ -298,7 +298,7 @@ const SearchResultSleeve = ({
298
298
  <StyledScrollableContent extendHeight={frontpage ? 0 : 52}>
299
299
  {infoText && (
300
300
  <StyledAside>
301
- <Wrench className="c-icon--22" />
301
+ <Wrench size="normal" />
302
302
  <span>{infoText}</span>
303
303
  </StyledAside>
304
304
  )}
@@ -309,7 +309,7 @@ const SearchResultSleeve = ({
309
309
  to={allResultUrl}
310
310
  tabIndex={-1}
311
311
  >
312
- <SearchIcon className="c-icon--22" />
312
+ <SearchIcon size="normal" />
313
313
  <strong ref={searchAllRef}>{searchString}</strong>
314
314
  <small>{t('welcomePage.searchAllInfo')}</small>
315
315
  </StyledSearchLink>
@@ -319,7 +319,7 @@ const SearchResultSleeve = ({
319
319
  to={suggestionUrl}
320
320
  tabIndex={-1}
321
321
  >
322
- <SearchIcon className="c-icon--22" />
322
+ <SearchIcon size="normal" />
323
323
  <small>{t('searchPage.resultType.searchPhraseSuggestion')}</small>
324
324
  <strong ref={searchSuggestionRef}>{suggestion}</strong>
325
325
  </StyledSearchLink>
@@ -259,7 +259,7 @@
259
259
  @include font-size(16px, 24px);
260
260
  }
261
261
 
262
- .c-icon {
262
+ [data-icon] {
263
263
  width: 12px;
264
264
  height: 12px;
265
265
  margin: 0 $spacing--small/3;
@@ -102,7 +102,11 @@ const ItemContexts = ({ contexts, id, title }: ItemContextsType) => {
102
102
  <ContextListItem key={context.url}>
103
103
  <SafeLink to={context.url}>{title}</SafeLink>
104
104
  <Breadcrumb breadcrumb={context.breadcrumb}>
105
- {context.isAdditional ? <Additional style={iconStyle} /> : <Core style={iconStyle} />}
105
+ {context.isAdditional ? (
106
+ <Additional style={iconStyle} color={colors.brand.dark} />
107
+ ) : (
108
+ <Core style={iconStyle} color={colors.brand.primary} />
109
+ )}
106
110
  </Breadcrumb>
107
111
  </ContextListItem>
108
112
  ))}
@@ -11,10 +11,9 @@ import { useTranslation } from 'react-i18next';
11
11
  import { css } from '@emotion/react';
12
12
  import styled from '@emotion/styled';
13
13
  import { ButtonV2 } from '@ndla/button';
14
- import { animations, breakpoints, colors, mq, spacing } from '@ndla/core';
14
+ import { animations, breakpoints, colors, misc, mq, spacing } from '@ndla/core';
15
15
  import { CursorClick, ExpandTwoArrows } from '@ndla/icons/action';
16
- import { ChevronDown, ChevronUp, PlayCircleFilled } from '@ndla/icons/common';
17
-
16
+ import { Additional, ChevronDown, ChevronUp, PlayCircleFilled } from '@ndla/icons/common';
18
17
  import { ModalCloseButton, ModalContent, Modal, ModalHeader, ModalTrigger } from '@ndla/modal';
19
18
  import { EmbedMetaData } from '@ndla/types-embed';
20
19
  import { Text, Heading } from '@ndla/typography';
@@ -25,10 +24,6 @@ import { MessageBox } from '../Messages';
25
24
  import { NavigationBox } from '../Navigation';
26
25
  import { ItemProps } from '../Navigation/NavigationBox';
27
26
 
28
- type InvertItProps = {
29
- invertedStyle?: boolean;
30
- };
31
-
32
27
  const Wrapper = styled.div`
33
28
  display: flex;
34
29
  flex-direction: column;
@@ -67,7 +62,7 @@ const TopicHeaderVisualElementWrapper = styled.div`
67
62
  `;
68
63
 
69
64
  const ShowVisualElementWrapper = styled.div`
70
- border-radius: 50%;
65
+ border-radius: ${misc.borderRadiusLarge};
71
66
  width: 100%;
72
67
  height: 100%;
73
68
  overflow: hidden;
@@ -83,7 +78,7 @@ const VisualElementButton = styled(ButtonV2)`
83
78
  `;
84
79
 
85
80
  const TopicHeaderImage = styled.img`
86
- border-radius: 50%;
81
+ border-radius: ${misc.borderRadiusLarge};
87
82
  aspect-ratio: 1;
88
83
  width: 100%;
89
84
  height: 100%;
@@ -121,7 +116,7 @@ const TopicHeaderOverlay = styled.div`
121
116
  left: 0;
122
117
  bottom: 0;
123
118
  right: 0;
124
- border-radius: 50%;
119
+ border-radius: ${misc.borderRadiusLarge};
125
120
  transition: opacity ${animations.durations.fast};
126
121
  ${VisualElementButton}:hover & {
127
122
  opacity: 0.1;
@@ -144,37 +139,33 @@ const HeadingWrapper = styled.hgroup`
144
139
  }
145
140
  `;
146
141
 
147
- const StyledButtonWrapper = styled.div<InvertItProps>`
142
+ const StyledButtonWrapper = styled.div`
148
143
  margin-top: ${spacing.small};
149
144
  padding: ${spacing.xsmall} 0 ${spacing.xsmall} ${spacing.medium};
150
- border-left: 6px solid ${colors.brand.light};
151
- ${(props) =>
152
- props.invertedStyle &&
153
- css`
154
- button {
155
- color: #fff;
156
- &:hover,
157
- &:focus {
158
- color: #fff;
159
- }
145
+ border-left: ${spacing.xsmall} solid ${colors.brand.light};
146
+ &[data-inverted='true'] {
147
+ button {
148
+ color: ${colors.white};
149
+ &:hover,
150
+ &:focus {
151
+ color: ${colors.white};
160
152
  }
161
- `}
153
+ }
154
+ }
162
155
  `;
163
156
 
164
- const AdditionalIcon = styled.span`
157
+ const StyledAdditional = styled(Additional)`
158
+ color: ${colors.brand.dark};
159
+ height: ${spacing.normal};
160
+ width: ${spacing.normal};
165
161
  padding: 1px;
166
- border: 1px solid currentColor;
167
- border-radius: 100%;
168
- font-size: 15px;
169
- width: 25px;
170
- text-align: center;
171
162
  `;
172
163
 
173
- const StyledContentWrapper = styled.div<InvertItProps>`
174
- padding-top: ${spacing.normal};
175
- border-left: 6px solid ${colors.brand.light};
176
- color: ${colors.text.primary};
164
+ const StyledContentWrapper = styled.div`
177
165
  background-color: ${colors.white};
166
+ border-left: ${spacing.xsmall} solid ${colors.brand.light};
167
+ color: ${colors.text.primary};
168
+ padding-top: ${spacing.normal};
178
169
  `;
179
170
 
180
171
  const StyledModalHeader = styled(ModalHeader)`
@@ -268,7 +259,7 @@ const Topic = ({
268
259
  </Heading>
269
260
  {isAdditionalTopic && (
270
261
  <>
271
- <AdditionalIcon aria-hidden="true">T</AdditionalIcon>
262
+ <StyledAdditional aria-hidden="true" />
272
263
  <span>{t('navigation.additionalTopic')}</span>
273
264
  </>
274
265
  )}
@@ -320,7 +311,7 @@ const Topic = ({
320
311
  {messageBox && <MessageBox>{messageBox}</MessageBox>}
321
312
  <div>
322
313
  {onToggleShowContent && (
323
- <StyledButtonWrapper invertedStyle={invertedStyle}>
314
+ <StyledButtonWrapper data-inverted={invertedStyle}>
324
315
  <ButtonV2
325
316
  aria-expanded={!!showContent}
326
317
  aria-controls={contentId}
@@ -339,11 +330,7 @@ const Topic = ({
339
330
  </ButtonV2>
340
331
  </StyledButtonWrapper>
341
332
  )}
342
- {showContent && (
343
- <StyledContentWrapper id={contentId} invertedStyle={invertedStyle}>
344
- {children}
345
- </StyledContentWrapper>
346
- )}
333
+ {showContent && <StyledContentWrapper id={contentId}>{children}</StyledContentWrapper>}
347
334
  </div>
348
335
  {subTopics && subTopics.length !== 0 && (
349
336
  <NavigationBox
package/src/all.scss CHANGED
@@ -1,4 +1,3 @@
1
1
  @import '~@ndla/core/scss/core';
2
- @import '~@ndla/icons/scss/icons';
3
2
  @import './main';
4
3
  @import '~@ndla/core/scss/utilities';
package/src/index.ts CHANGED
@@ -56,7 +56,7 @@ export { default as RelatedArticleList, RelatedArticle } from './RelatedArticleL
56
56
 
57
57
  export { ErrorResourceAccessDenied, default as ErrorMessage } from './ErrorMessage';
58
58
 
59
- export { default as FileList, File, PdfFile } from './FileList';
59
+ export { default as FileList, File, PdfFile, Format } from './FileList';
60
60
 
61
61
  export { default as Logo } from './Logo';
62
62