@ndla/ui 56.0.6-alpha.0 → 56.0.7-alpha.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.
@@ -3,16 +3,15 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ArticleWrapper = exports.ArticleTitle = exports.ArticleHeader = exports.ArticleHGroup = exports.ArticleFooter = exports.ArticleContent = exports.ArticleActionWrapper = exports.Article = void 0;
6
+ exports.ArticleWrapper = exports.ArticleTitle = exports.ArticlePadding = exports.ArticleHeader = exports.ArticleHGroup = exports.ArticleFooter = exports.ArticleContent = exports.ArticleActionWrapper = exports.Article = void 0;
7
7
  var _react = require("react");
8
8
  var _react2 = require("@ark-ui/react");
9
9
  var _primitives = require("@ndla/primitives");
10
10
  var _css = require("@ndla/styled-system/css");
11
11
  var _jsx2 = require("@ndla/styled-system/jsx");
12
- var _ArticleByline = _interopRequireDefault(require("./ArticleByline"));
12
+ var _ArticleByline = require("./ArticleByline");
13
13
  var _ = require("..");
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
15
  /**
17
16
  * Copyright (c) 2016-present, NDLA.
18
17
  *
@@ -21,7 +20,54 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
21
20
  *
22
21
  */
23
22
 
24
- const StyledArticleContent = (0, _jsx2.styled)(_react2.ark.section, {}, {
23
+ const articlePadding = {
24
+ paddingInline: "8%"
25
+ };
26
+ const paddingBlockEnd = {
27
+ paddingBlockEnd: "xsmall",
28
+ tablet: {
29
+ paddingBlockEnd: "medium"
30
+ },
31
+ desktop: {
32
+ paddingBlockEnd: "xxlarge"
33
+ }
34
+ };
35
+ const paddingBlockStart = {
36
+ paddingBlockStart: "xsmall",
37
+ tablet: {
38
+ paddingBlockStart: "medium"
39
+ },
40
+ desktop: {
41
+ paddingBlockStart: "xxlarge"
42
+ }
43
+ };
44
+ const ArticlePadding = exports.ArticlePadding = (0, _jsx2.styled)(_react2.ark.div, {
45
+ base: articlePadding,
46
+ variants: {
47
+ padStart: {
48
+ true: paddingBlockStart
49
+ },
50
+ padEnd: {
51
+ true: paddingBlockEnd
52
+ }
53
+ }
54
+ }, {
55
+ baseComponent: true
56
+ });
57
+ const StyledArticleContent = (0, _jsx2.styled)(_react2.ark.section, {
58
+ base: {
59
+ background: "surface.default"
60
+ },
61
+ variants: {
62
+ padded: {
63
+ true: {
64
+ ...articlePadding,
65
+ ...paddingBlockStart,
66
+ ...paddingBlockEnd
67
+ }
68
+ }
69
+ }
70
+ }, {
25
71
  baseComponent: true
26
72
  });
27
73
  const ArticleContent = exports.ArticleContent = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
@@ -35,25 +81,15 @@ const ArticleContent = exports.ArticleContent = /*#__PURE__*/(0, _react.forwardR
35
81
  ref: ref
36
82
  });
37
83
  });
38
- const StyledArticleWrapper = (0, _jsx2.styled)("article", {
84
+ const StyledArticleWrapper = (0, _jsx2.styled)(_react2.ark.article, {
39
85
  base: {
40
86
  display: "flex",
41
87
  flexDirection: "column",
42
88
  color: "text.default",
43
- gap: "xxlarge",
44
- background: "surface.default",
45
- paddingBlock: "xsmall",
46
- paddingInline: "8%",
47
89
  alignItems: "center",
48
90
  width: "100%",
49
91
  overflowWrap: "break-word",
50
92
  position: "relative",
51
- tablet: {
52
- paddingBlock: "medium"
53
- },
54
- desktop: {
55
- paddingBlock: "xxlarge"
56
- },
57
93
  "& mjx-stretchy-v > mjx-ext > mjx-c": {
58
94
  transform: "scaleY(100) translateY(0.075em)"
59
95
  },
@@ -63,13 +99,15 @@ const StyledArticleWrapper = (0, _jsx2.styled)("article", {
63
99
  clear: "both"
64
100
  }
65
101
  }
102
+ }, {
103
+ baseComponent: true
66
104
  });
67
105
  const ArticleWrapper = exports.ArticleWrapper = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledArticleWrapper, {
68
106
  "data-ndla-article": "",
69
107
  ref: ref,
70
108
  ...props
71
109
  }));
72
- const ArticleHGroup = exports.ArticleHGroup = (0, _jsx2.styled)("hgroup", {
110
+ const ArticleHGroup = exports.ArticleHGroup = (0, _jsx2.styled)(_react2.ark.hgroup, {
73
111
  base: {
74
112
  display: "flex",
75
113
  width: "100%",
@@ -80,8 +118,10 @@ const ArticleHGroup = exports.ArticleHGroup = (0, _jsx2.styled)("hgroup", {
80
118
  overflowWrap: "anywhere"
81
119
  }
82
120
  }
121
+ }, {
122
+ baseComponent: true
83
123
  });
84
- const ArticleActionWrapper = exports.ArticleActionWrapper = (0, _jsx2.styled)("div", {
124
+ const ArticleActionWrapper = exports.ArticleActionWrapper = (0, _jsx2.styled)(_react2.ark.div, {
85
125
  base: {
86
126
  position: "absolute",
87
127
  right: "8%",
@@ -93,23 +133,47 @@ const ArticleActionWrapper = exports.ArticleActionWrapper = (0, _jsx2.styled)("d
93
133
  top: "xxlarge"
94
134
  }
95
135
  }
136
+ }, {
137
+ baseComponent: true
96
138
  });
97
- const ArticleHeader = exports.ArticleHeader = (0, _jsx2.styled)("header", {
139
+ const ArticleHeader = exports.ArticleHeader = (0, _jsx2.styled)(_react2.ark.header, {
98
140
  base: {
99
141
  display: "flex",
100
142
  flexDirection: "column",
143
+ background: "surface.default",
101
144
  gap: "medium",
102
145
  alignItems: "flex-start",
103
146
  width: "100%"
147
+ },
148
+ variants: {
149
+ padded: {
150
+ true: {
151
+ ...articlePadding,
152
+ ...paddingBlockStart
153
+ }
154
+ }
104
155
  }
156
+ }, {
157
+ baseComponent: true
105
158
  });
106
- const ArticleFooter = exports.ArticleFooter = (0, _jsx2.styled)("footer", {
159
+ const ArticleFooter = exports.ArticleFooter = (0, _jsx2.styled)(_react2.ark.footer, {
107
160
  base: {
108
161
  display: "flex",
109
162
  flexDirection: "column",
163
+ background: "surface.default",
110
164
  gap: "xxlarge",
111
165
  width: "100%"
166
+ },
167
+ variants: {
168
+ padded: {
169
+ true: {
170
+ ...articlePadding,
171
+ ...paddingBlockEnd
172
+ }
173
+ }
112
174
  }
175
+ }, {
176
+ baseComponent: true
113
177
  });
114
178
  const ArticleTitle = _ref2 => {
115
179
  let {
@@ -122,6 +186,7 @@ const ArticleTitle = _ref2 => {
122
186
  competenceGoals
123
187
  } = _ref2;
124
188
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(ArticleHeader, {
189
+ padded: true,
125
190
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(ArticleHGroup, {
126
191
  children: [!!contentType && /*#__PURE__*/(0, _jsxRuntime.jsx)(_.ContentTypeBadgeNew, {
127
192
  contentType: contentType
@@ -175,9 +240,11 @@ const Article = _ref3 => {
175
240
  competenceGoals: competenceGoals,
176
241
  lang: lang
177
242
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(ArticleContent, {
243
+ padded: true,
178
244
  children: content
179
245
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(ArticleFooter, {
180
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ArticleByline.default, {
246
+ padded: true,
247
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ArticleByline.ArticleByline, {
181
248
  footnotes: footNotes,
182
249
  authors: authors,
183
250
  suppliers: copyright?.rightsholders,
@@ -6,6 +6,7 @@
6
6
  *
7
7
  */
8
8
  import { ReactNode } from "react";
9
+ import { AccordionItemProps } from "@ndla/primitives";
9
10
  import { FootNote } from "../types";
10
11
  type AuthorProps = {
11
12
  name: string;
@@ -24,5 +25,9 @@ type Props = {
24
25
  displayByline?: boolean;
25
26
  bylineType?: "article" | "learningPath";
26
27
  };
27
- declare const ArticleByline: ({ authors, suppliers, footnotes, license: licenseString, licenseBox, published, locale, displayByline, bylineType, }: Props) => import("react/jsx-runtime").JSX.Element;
28
- export default ArticleByline;
28
+ export declare const ArticleByline: ({ authors, suppliers, footnotes, license: licenseString, licenseBox, published, locale, displayByline, bylineType, }: Props) => import("react/jsx-runtime").JSX.Element;
29
+ interface ArticleBylineAccordionprops extends AccordionItemProps {
30
+ accordionTitle: ReactNode;
31
+ }
32
+ export declare const ArticleBylineAccordionItem: import("react").ForwardRefExoticComponent<ArticleBylineAccordionprops & import("react").RefAttributes<HTMLDivElement>>;
33
+ export {};
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.ArticleBylineAccordionItem = exports.ArticleByline = void 0;
7
7
  var _react = require("react");
8
8
  var _reactI18next = require("react-i18next");
9
9
  var _reactRouterDom = require("react-router-dom");
@@ -11,10 +11,9 @@ var _common = require("@ndla/icons/common");
11
11
  var _licenses = require("@ndla/licenses");
12
12
  var _primitives = require("@ndla/primitives");
13
13
  var _jsx2 = require("@ndla/styled-system/jsx");
14
- var _ArticleFootNotes = _interopRequireDefault(require("./ArticleFootNotes"));
14
+ var _ArticleFootNotes = require("./ArticleFootNotes");
15
15
  var _LicenseLink = require("../LicenseByline/LicenseLink");
16
16
  var _jsxRuntime = require("react/jsx-runtime");
17
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
17
  /**
19
18
  * Copyright (c) 2020-present, NDLA.
20
19
  *
@@ -152,46 +151,47 @@ const ArticleByline = _ref => {
152
151
  multiple: true,
153
152
  value: openAccordions,
154
153
  onValueChange: details => setOpenAccordions(details.value),
155
- children: [licenseBox && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.AccordionItem, {
154
+ children: [!!licenseBox && /*#__PURE__*/(0, _jsxRuntime.jsx)(ArticleBylineAccordionItem, {
156
155
  value: accordionItemValue,
157
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.AccordionItemTrigger, {
158
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Heading, {
159
- asChild: true,
160
- consumeCss: true,
161
- textStyle: "label.medium",
162
- fontWeight: "bold",
163
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("h2", {
164
- children: t("article.useContent")
165
- })
166
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.AccordionItemIndicator, {
167
- asChild: true,
168
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.ArrowDownShortLine, {})
169
- })]
170
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.AccordionItemContent, {
171
- children: licenseBox
172
- })]
173
- }), !!footnotes?.length && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.AccordionItem, {
156
+ accordionTitle: t("article.useContent"),
157
+ children: licenseBox
158
+ }), !!footnotes?.length && /*#__PURE__*/(0, _jsxRuntime.jsx)(ArticleBylineAccordionItem, {
174
159
  value: footnotesAccordionId,
175
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.AccordionItemTrigger, {
176
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Heading, {
177
- asChild: true,
178
- consumeCss: true,
179
- textStyle: "label.medium",
180
- fontWeight: "bold",
181
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("h2", {
182
- children: t("article.footnotes")
183
- })
184
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.AccordionItemIndicator, {
185
- asChild: true,
186
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.ArrowDownShortLine, {})
187
- })]
188
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.AccordionItemContent, {
189
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ArticleFootNotes.default, {
190
- footNotes: footnotes
191
- })
192
- })]
160
+ accordionTitle: t("article.footnotes"),
161
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ArticleFootNotes.ArticleFootNotes, {
162
+ footNotes: footnotes
163
+ })
193
164
  })]
194
165
  })]
195
166
  });
196
167
  };
197
- var _default = exports.default = ArticleByline;
168
+ exports.ArticleByline = ArticleByline;
169
+ const ArticleBylineAccordionItem = exports.ArticleBylineAccordionItem = /*#__PURE__*/(0, _react.forwardRef)((_ref2, ref) => {
170
+ let {
171
+ value,
172
+ accordionTitle,
173
+ children,
174
+ ...props
175
+ } = _ref2;
176
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.AccordionItem, {
177
+ value: value,
178
+ ref: ref,
179
+ ...props,
180
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_primitives.AccordionItemTrigger, {
181
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Heading, {
182
+ asChild: true,
183
+ consumeCss: true,
184
+ textStyle: "label.medium",
185
+ fontWeight: "bold",
186
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("h2", {
187
+ children: accordionTitle
188
+ })
189
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.AccordionItemIndicator, {
190
+ asChild: true,
191
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.ArrowDownShortLine, {})
192
+ })]
193
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.AccordionItemContent, {
194
+ children: children
195
+ })]
196
+ });
197
+ });
@@ -9,5 +9,5 @@ import { FootNote as FootNoteType } from "../types";
9
9
  type ArticleFootNotesProps = {
10
10
  footNotes: Array<FootNoteType>;
11
11
  };
12
- declare const ArticleFootNotes: ({ footNotes }: ArticleFootNotesProps) => import("react/jsx-runtime").JSX.Element;
13
- export default ArticleFootNotes;
12
+ export declare const ArticleFootNotes: ({ footNotes }: ArticleFootNotesProps) => import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ exports.ArticleFootNotes = void 0;
7
7
  var _primitives = require("@ndla/primitives");
8
8
  var _jsx2 = require("@ndla/styled-system/jsx");
9
9
  var _jsxRuntime = require("react/jsx-runtime");
@@ -64,4 +64,4 @@ const ArticleFootNotes = _ref2 => {
64
64
  }, footNote.ref))
65
65
  });
66
66
  };
67
- var _default = exports.default = ArticleFootNotes;
67
+ exports.ArticleFootNotes = ArticleFootNotes;
@@ -5,8 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  */
8
- import ArticleByline from "./ArticleByline";
9
- import ArticleFootNotes from "./ArticleFootNotes";
10
- export { Article, ArticleWrapper, ArticleHeader, ArticleFooter, ArticleTitle, ArticleActionWrapper, ArticleHGroup, ArticleContent, } from "./Article";
11
- export { ArticleByline, ArticleFootNotes };
8
+ export { Article, ArticleWrapper, ArticleHeader, ArticleFooter, ArticleTitle, ArticleActionWrapper, ArticleHGroup, ArticleContent, ArticlePadding, } from "./Article";
9
+ export { ArticleByline, ArticleBylineAccordionItem } from "./ArticleByline";
10
+ export { ArticleFootNotes } from "./ArticleFootNotes";
12
11
  export { ArticleParagraph } from "./ArticleParagraph";
@@ -18,7 +18,13 @@ Object.defineProperty(exports, "ArticleActionWrapper", {
18
18
  Object.defineProperty(exports, "ArticleByline", {
19
19
  enumerable: true,
20
20
  get: function () {
21
- return _ArticleByline.default;
21
+ return _ArticleByline.ArticleByline;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "ArticleBylineAccordionItem", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _ArticleByline.ArticleBylineAccordionItem;
22
28
  }
23
29
  });
24
30
  Object.defineProperty(exports, "ArticleContent", {
@@ -30,7 +36,7 @@ Object.defineProperty(exports, "ArticleContent", {
30
36
  Object.defineProperty(exports, "ArticleFootNotes", {
31
37
  enumerable: true,
32
38
  get: function () {
33
- return _ArticleFootNotes.default;
39
+ return _ArticleFootNotes.ArticleFootNotes;
34
40
  }
35
41
  });
36
42
  Object.defineProperty(exports, "ArticleFooter", {
@@ -51,6 +57,12 @@ Object.defineProperty(exports, "ArticleHeader", {
51
57
  return _Article.ArticleHeader;
52
58
  }
53
59
  });
60
+ Object.defineProperty(exports, "ArticlePadding", {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _Article.ArticlePadding;
64
+ }
65
+ });
54
66
  Object.defineProperty(exports, "ArticleParagraph", {
55
67
  enumerable: true,
56
68
  get: function () {
@@ -69,8 +81,7 @@ Object.defineProperty(exports, "ArticleWrapper", {
69
81
  return _Article.ArticleWrapper;
70
82
  }
71
83
  });
72
- var _ArticleByline = _interopRequireDefault(require("./ArticleByline"));
73
- var _ArticleFootNotes = _interopRequireDefault(require("./ArticleFootNotes"));
74
84
  var _Article = require("./Article");
75
- var _ArticleParagraph = require("./ArticleParagraph");
76
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
85
+ var _ArticleByline = require("./ArticleByline");
86
+ var _ArticleFootNotes = require("./ArticleFootNotes");
87
+ var _ArticleParagraph = require("./ArticleParagraph");
@@ -38,7 +38,6 @@ const contactBlockBackgrounds = exports.contactBlockBackgrounds = Object.keys(Ba
38
38
  const StyledWrapper = (0, _jsx2.styled)("div", {
39
39
  base: {
40
40
  display: "flex",
41
- maxWidth: "744px",
42
41
  minWidth: "surface.xxsmall",
43
42
  padding: "medium",
44
43
  alignItems: "center",
@@ -8,9 +8,7 @@
8
8
  /// <reference types="react" />
9
9
  import { type StyledVariantProps } from "@ndla/styled-system/types";
10
10
  import type { IGlossData } from "@ndla/types-backend/concept-api";
11
- declare const StyledAccordionItem: import("@ndla/styled-system/types").StyledComponent<import("react").ForwardRefExoticComponent<{
12
- consumeCss?: boolean | undefined;
13
- } & import("@ndla/styled-system/types").WithCss & import("@ark-ui/react").AccordionItemProps & import("react").RefAttributes<HTMLDivElement>>, {
11
+ declare const StyledAccordionItem: import("@ndla/styled-system/types").StyledComponent<import("react").ForwardRefExoticComponent<import("@ndla/primitives").AccordionItemProps & import("react").RefAttributes<HTMLDivElement>>, {
14
12
  variant?: "simple" | "bordered" | undefined;
15
13
  }>;
16
14
  type GlossVariantProps = StyledVariantProps<typeof StyledAccordionItem>;
package/lib/Grid/Grid.js CHANGED
@@ -19,7 +19,6 @@ const GridContainer = (0, _jsx2.styled)("div", {
19
19
  display: "grid",
20
20
  justifyContent: "center",
21
21
  borderRadius: "xsmall",
22
- padding: "xsmall",
23
22
  gridRowGap: "large",
24
23
  gridColumnGap: "medium",
25
24
  width: "100%",
@@ -69,6 +68,7 @@ const GridContainer = (0, _jsx2.styled)("div", {
69
68
  },
70
69
  border: {
71
70
  lightBlue: {
71
+ padding: "xsmall",
72
72
  border: "1px solid",
73
73
  borderColor: "surface.brand.2"
74
74
  }
package/lib/index.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
  export { ImageEmbed, getCrop, getFocalPoint, AudioEmbed, H5pEmbed, ExternalEmbed, IframeEmbed, FootnoteEmbed, BrightcoveEmbed, ContentLinkEmbed, RelatedContentEmbed, ConceptEmbed, ConceptListEmbed, UnknownEmbed, InlineConcept, BlockConcept, UuDisclaimerEmbed, CopyrightEmbed, CodeEmbed, } from "./Embed";
9
9
  export { LicenseLink, EmbedByline } from "./LicenseByline";
10
- export { ArticleByline, ArticleFootNotes, ArticleWrapper, Article, ArticleParagraph, ArticleFooter, ArticleHeader, ArticleContent, ArticleHGroup, ArticleActionWrapper, ArticleTitle, } from "./Article";
10
+ export { ArticleByline, ArticleFootNotes, ArticleWrapper, Article, ArticleParagraph, ArticleFooter, ArticleHeader, ArticleContent, ArticleHGroup, ArticleActionWrapper, ArticleTitle, ArticlePadding, } from "./Article";
11
11
  export { getPossiblyRelativeUrl } from "./utils/relativeUrl";
12
12
  export { default as ContentLoader } from "./ContentLoader";
13
13
  export { default as RelatedArticleList, RelatedArticle } from "./RelatedArticleList";
package/lib/index.js CHANGED
@@ -51,6 +51,12 @@ Object.defineProperty(exports, "ArticleHeader", {
51
51
  return _Article.ArticleHeader;
52
52
  }
53
53
  });
54
+ Object.defineProperty(exports, "ArticlePadding", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _Article.ArticlePadding;
58
+ }
59
+ });
54
60
  Object.defineProperty(exports, "ArticleParagraph", {
55
61
  enumerable: true,
56
62
  get: function () {
package/lib/styles.css CHANGED
@@ -85,28 +85,28 @@
85
85
  }
86
86
  }
87
87
 
88
- .d_flex {
89
- display: flex;
88
+ .px_8\% {
89
+ padding-inline: 8%;
90
90
  }
91
91
 
92
- .c_text\.default {
93
- color: var(--colors-text-default);
92
+ .pbs_xsmall {
93
+ padding-block-start: var(--spacing-xsmall);
94
94
  }
95
95
 
96
- .gap_xxlarge {
97
- gap: var(--spacing-xxlarge);
96
+ .pbe_xsmall {
97
+ padding-block-end: var(--spacing-xsmall);
98
98
  }
99
99
 
100
100
  .bg_surface\.default {
101
101
  background: var(--colors-surface-default);
102
102
  }
103
103
 
104
- .py_xsmall {
105
- padding-block: var(--spacing-xsmall);
104
+ .d_flex {
105
+ display: flex;
106
106
  }
107
107
 
108
- .px_8\% {
109
- padding-inline: 8%;
108
+ .c_text\.default {
109
+ color: var(--colors-text-default);
110
110
  }
111
111
 
112
112
  .w_100\% {
@@ -133,12 +133,12 @@
133
133
  gap: var(--spacing-medium);
134
134
  }
135
135
 
136
- .mbs_medium {
137
- margin-block-start: var(--spacing-medium);
136
+ .gap_xxlarge {
137
+ gap: var(--spacing-xxlarge);
138
138
  }
139
139
 
140
- .pbs_xsmall {
141
- padding-block-start: var(--spacing-xsmall);
140
+ .mbs_medium {
141
+ margin-block-start: var(--spacing-medium);
142
142
  }
143
143
 
144
144
  .bd-t_1px_solid {
@@ -149,6 +149,10 @@
149
149
  gap: var(--spacing-3xsmall);
150
150
  }
151
151
 
152
+ .py_xsmall {
153
+ padding-block: var(--spacing-xsmall);
154
+ }
155
+
152
156
  .pbs_xxlarge {
153
157
  padding-block-start: var(--spacing-xxlarge);
154
158
  }
@@ -362,10 +366,6 @@
362
366
  display: inline;
363
367
  }
364
368
 
365
- .max-w_744px {
366
- max-width: 744px;
367
- }
368
-
369
369
  .min-w_surface\.xxsmall {
370
370
  min-width: var(--sizes-surface-xxsmall);
371
371
  }
@@ -1424,8 +1424,11 @@
1424
1424
  }
1425
1425
 
1426
1426
  @media screen and (min-width: 37.5625rem) {
1427
- .tablet\:py_medium {
1428
- padding-block: var(--spacing-medium);
1427
+ .tablet\:pbs_medium {
1428
+ padding-block-start: var(--spacing-medium);
1429
+ }
1430
+ .tablet\:pbe_medium {
1431
+ padding-block-end: var(--spacing-medium);
1429
1432
  }
1430
1433
  .tablet\:px_medium {
1431
1434
  padding-inline: var(--spacing-medium);
@@ -1520,8 +1523,11 @@
1520
1523
  }
1521
1524
 
1522
1525
  @media screen and (min-width: 61.3125rem) {
1523
- .desktop\:py_xxlarge {
1524
- padding-block: var(--spacing-xxlarge);
1526
+ .desktop\:pbs_xxlarge {
1527
+ padding-block-start: var(--spacing-xxlarge);
1528
+ }
1529
+ .desktop\:pbe_xxlarge {
1530
+ padding-block-end: var(--spacing-xxlarge);
1525
1531
  }
1526
1532
  .desktop\:w_260px {
1527
1533
  width: 260px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/ui",
3
- "version": "56.0.6-alpha.0",
3
+ "version": "56.0.7-alpha.0",
4
4
  "description": "UI component library for NDLA",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -33,20 +33,19 @@
33
33
  "types"
34
34
  ],
35
35
  "dependencies": {
36
- "@ndla/button": "^15.0.6-alpha.0",
36
+ "@ndla/button": "^15.0.7-alpha.0",
37
37
  "@ndla/core": "^5.0.1",
38
38
  "@ndla/hooks": "^2.1.8",
39
- "@ndla/icons": "^8.0.6-alpha.0",
39
+ "@ndla/icons": "^8.0.7-alpha.0",
40
40
  "@ndla/licenses": "^8.0.0-alpha.0",
41
- "@ndla/primitives": "^1.0.6-alpha.0",
42
- "@ndla/safelink": "^7.0.6-alpha.0",
41
+ "@ndla/primitives": "^1.0.7-alpha.0",
42
+ "@ndla/safelink": "^7.0.7-alpha.0",
43
43
  "@ndla/styled-system": "^0.0.10",
44
44
  "@ndla/typography": "^0.4.23",
45
45
  "@ndla/util": "^4.1.0",
46
46
  "date-fns": "^2.30.0",
47
47
  "html-react-parser": "^5.1.8",
48
48
  "i18next-browser-languagedetector": "^7.1.0",
49
- "lodash.throttle": "^4.1.1",
50
49
  "punycode.js": "^2.3.1",
51
50
  "react-device-detect": "^2.2.3"
52
51
  },
@@ -60,7 +59,7 @@
60
59
  "react-router-dom": "> 6.0.0"
61
60
  },
62
61
  "devDependencies": {
63
- "@ndla/preset-panda": "^0.0.16",
62
+ "@ndla/preset-panda": "^0.0.17",
64
63
  "@ndla/types-backend": "^0.2.86",
65
64
  "@ndla/types-embed": "^5.0.0-alpha.0",
66
65
  "@pandacss/dev": "^0.44.0",
@@ -73,5 +72,5 @@
73
72
  "publishConfig": {
74
73
  "access": "public"
75
74
  },
76
- "gitHead": "7770121967e96fe8d661b0f540e3397d6e2c453f"
75
+ "gitHead": "b27afafa098db57dd1a3b72380969d235a60ee9f"
77
76
  }