@ndla/primitives 1.0.124-alpha.0 → 1.0.126-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.
Files changed (182) hide show
  1. package/dist/panda.buildinfo.json +8 -0
  2. package/dist/styles.css +119 -7
  3. package/es/Accordion.mjs +1 -2
  4. package/es/Accordion.mjs.map +1 -1
  5. package/es/ArticleLists.mjs +1 -2
  6. package/es/ArticleLists.mjs.map +1 -1
  7. package/es/Badge.mjs +1 -2
  8. package/es/Badge.mjs.map +1 -1
  9. package/es/BlockQuote.mjs +1 -2
  10. package/es/BlockQuote.mjs.map +1 -1
  11. package/es/Button.mjs +1 -2
  12. package/es/Button.mjs.map +1 -1
  13. package/es/Card/Card.mjs +3 -5
  14. package/es/Card/Card.mjs.map +1 -1
  15. package/es/Checkbox.mjs +1 -2
  16. package/es/Checkbox.mjs.map +1 -1
  17. package/es/Combobox.mjs +1 -2
  18. package/es/Combobox.mjs.map +1 -1
  19. package/es/DatePicker.mjs +1 -2
  20. package/es/DatePicker.mjs.map +1 -1
  21. package/es/Dialog.mjs +1 -2
  22. package/es/Dialog.mjs.map +1 -1
  23. package/es/ErrorMessage/ErrorMessage.mjs +5 -8
  24. package/es/ErrorMessage/ErrorMessage.mjs.map +1 -1
  25. package/es/ExpandableBox.mjs +1 -2
  26. package/es/ExpandableBox.mjs.map +1 -1
  27. package/es/Field.mjs +1 -2
  28. package/es/Field.mjs.map +1 -1
  29. package/es/FieldErrorMessage.mjs +1 -2
  30. package/es/FieldErrorMessage.mjs.map +1 -1
  31. package/es/FieldHelper.mjs +1 -2
  32. package/es/FieldHelper.mjs.map +1 -1
  33. package/es/Figure.mjs +31 -14
  34. package/es/Figure.mjs.map +1 -1
  35. package/es/FileUpload.mjs +1 -2
  36. package/es/FileUpload.mjs.map +1 -1
  37. package/es/FramedContent.mjs +1 -2
  38. package/es/FramedContent.mjs.map +1 -1
  39. package/es/Hero.mjs +1 -2
  40. package/es/Hero.mjs.map +1 -1
  41. package/es/Image.mjs +1 -2
  42. package/es/Image.mjs.map +1 -1
  43. package/es/Input.mjs +1 -2
  44. package/es/Input.mjs.map +1 -1
  45. package/es/Label.mjs +1 -2
  46. package/es/Label.mjs.map +1 -1
  47. package/es/Layout/PageContainer.mjs +1 -2
  48. package/es/Layout/PageContainer.mjs.map +1 -1
  49. package/es/Layout/PageContent.mjs +1 -2
  50. package/es/Layout/PageContent.mjs.map +1 -1
  51. package/es/ListItem/ListItem.mjs +5 -16
  52. package/es/ListItem/ListItem.mjs.map +1 -1
  53. package/es/Menu.mjs +1 -2
  54. package/es/Menu.mjs.map +1 -1
  55. package/es/MessageBox.mjs +1 -2
  56. package/es/MessageBox.mjs.map +1 -1
  57. package/es/NdlaLogo.mjs +1 -2
  58. package/es/NdlaLogo.mjs.map +1 -1
  59. package/es/Pagination.mjs +1 -2
  60. package/es/Pagination.mjs.map +1 -1
  61. package/es/Popover.mjs +1 -2
  62. package/es/Popover.mjs.map +1 -1
  63. package/es/RadioGroup.mjs +1 -2
  64. package/es/RadioGroup.mjs.map +1 -1
  65. package/es/Select.mjs +1 -2
  66. package/es/Select.mjs.map +1 -1
  67. package/es/Skeleton.mjs +1 -2
  68. package/es/Skeleton.mjs.map +1 -1
  69. package/es/Slider.mjs +1 -2
  70. package/es/Slider.mjs.map +1 -1
  71. package/es/Spinner.mjs +1 -2
  72. package/es/Spinner.mjs.map +1 -1
  73. package/es/Switch.mjs +1 -2
  74. package/es/Switch.mjs.map +1 -1
  75. package/es/Table.mjs +1 -2
  76. package/es/Table.mjs.map +1 -1
  77. package/es/Tabs.mjs +1 -2
  78. package/es/Tabs.mjs.map +1 -1
  79. package/es/TagsInput.mjs +1 -2
  80. package/es/TagsInput.mjs.map +1 -1
  81. package/es/Text.mjs +1 -2
  82. package/es/Text.mjs.map +1 -1
  83. package/es/Toast.mjs +1 -2
  84. package/es/Toast.mjs.map +1 -1
  85. package/es/ToggleGroup.mjs +1 -2
  86. package/es/ToggleGroup.mjs.map +1 -1
  87. package/es/Tooltip.mjs +1 -2
  88. package/es/Tooltip.mjs.map +1 -1
  89. package/es/Tree/Tree.mjs +1 -2
  90. package/es/Tree/Tree.mjs.map +1 -1
  91. package/es/index.mjs +1 -2
  92. package/lib/Accordion.js +1 -2
  93. package/lib/Accordion.js.map +1 -1
  94. package/lib/ArticleLists.js +1 -2
  95. package/lib/ArticleLists.js.map +1 -1
  96. package/lib/Badge.js +1 -2
  97. package/lib/Badge.js.map +1 -1
  98. package/lib/BlockQuote.js +1 -2
  99. package/lib/BlockQuote.js.map +1 -1
  100. package/lib/Button.js +2 -3
  101. package/lib/Button.js.map +1 -1
  102. package/lib/Card/Card.js +5 -7
  103. package/lib/Card/Card.js.map +1 -1
  104. package/lib/Checkbox.js +2 -3
  105. package/lib/Checkbox.js.map +1 -1
  106. package/lib/Combobox.js +3 -4
  107. package/lib/Combobox.js.map +1 -1
  108. package/lib/DatePicker.js +2 -3
  109. package/lib/DatePicker.js.map +1 -1
  110. package/lib/Dialog.js +2 -3
  111. package/lib/Dialog.js.map +1 -1
  112. package/lib/ErrorMessage/ErrorMessage.js +6 -9
  113. package/lib/ErrorMessage/ErrorMessage.js.map +1 -1
  114. package/lib/ExpandableBox.js +1 -2
  115. package/lib/ExpandableBox.js.map +1 -1
  116. package/lib/Field.js +1 -2
  117. package/lib/Field.js.map +1 -1
  118. package/lib/FieldErrorMessage.js +1 -2
  119. package/lib/FieldErrorMessage.js.map +1 -1
  120. package/lib/FieldHelper.js +1 -2
  121. package/lib/FieldHelper.js.map +1 -1
  122. package/lib/Figure.d.ts +20 -0
  123. package/lib/Figure.js +31 -14
  124. package/lib/Figure.js.map +1 -1
  125. package/lib/FileUpload.js +3 -4
  126. package/lib/FileUpload.js.map +1 -1
  127. package/lib/FramedContent.js +1 -2
  128. package/lib/FramedContent.js.map +1 -1
  129. package/lib/Hero.js +2 -4
  130. package/lib/Hero.js.map +1 -1
  131. package/lib/Image.js +1 -2
  132. package/lib/Image.js.map +1 -1
  133. package/lib/Input.js +1 -2
  134. package/lib/Input.js.map +1 -1
  135. package/lib/Label.js +1 -2
  136. package/lib/Label.js.map +1 -1
  137. package/lib/Layout/PageContainer.js +3 -4
  138. package/lib/Layout/PageContainer.js.map +1 -1
  139. package/lib/Layout/PageContent.js +1 -2
  140. package/lib/Layout/PageContent.js.map +1 -1
  141. package/lib/ListItem/ListItem.js +5 -7
  142. package/lib/ListItem/ListItem.js.map +1 -1
  143. package/lib/Menu.js +2 -3
  144. package/lib/Menu.js.map +1 -1
  145. package/lib/MessageBox.js +1 -2
  146. package/lib/MessageBox.js.map +1 -1
  147. package/lib/NdlaLogo.js +2 -3
  148. package/lib/NdlaLogo.js.map +1 -1
  149. package/lib/Pagination.js +2 -4
  150. package/lib/Pagination.js.map +1 -1
  151. package/lib/Popover.js +2 -3
  152. package/lib/Popover.js.map +1 -1
  153. package/lib/RadioGroup.js +2 -3
  154. package/lib/RadioGroup.js.map +1 -1
  155. package/lib/Select.js +2 -3
  156. package/lib/Select.js.map +1 -1
  157. package/lib/Skeleton.js +2 -4
  158. package/lib/Skeleton.js.map +1 -1
  159. package/lib/Slider.js +2 -3
  160. package/lib/Slider.js.map +1 -1
  161. package/lib/Spinner.js +1 -2
  162. package/lib/Spinner.js.map +1 -1
  163. package/lib/Switch.js +2 -3
  164. package/lib/Switch.js.map +1 -1
  165. package/lib/Table.js +2 -4
  166. package/lib/Table.js.map +1 -1
  167. package/lib/Tabs.js +1 -2
  168. package/lib/Tabs.js.map +1 -1
  169. package/lib/TagsInput.js +2 -3
  170. package/lib/TagsInput.js.map +1 -1
  171. package/lib/Text.js +1 -2
  172. package/lib/Text.js.map +1 -1
  173. package/lib/Toast.js +2 -3
  174. package/lib/Toast.js.map +1 -1
  175. package/lib/ToggleGroup.js +2 -4
  176. package/lib/ToggleGroup.js.map +1 -1
  177. package/lib/Tooltip.js +1 -2
  178. package/lib/Tooltip.js.map +1 -1
  179. package/lib/Tree/Tree.js +2 -3
  180. package/lib/Tree/Tree.js.map +1 -1
  181. package/lib/index.js +56 -57
  182. package/package.json +5 -5
@@ -1,9 +1,8 @@
1
- const require_PageContent = require('./PageContent.js');
2
- let _ark_ui_react = require("@ark-ui/react");
1
+ const require_PageContent = require("./PageContent.js");
2
+ require("@ark-ui/react");
3
3
  let _ndla_styled_system_css = require("@ndla/styled-system/css");
4
4
  let react_jsx_runtime = require("react/jsx-runtime");
5
5
  let react = require("react");
6
-
7
6
  //#region src/Layout/PageContainer.tsx
8
7
  /**
9
8
  * Copyright (c) 2024-present, NDLA.
@@ -35,7 +34,7 @@ const PageContainer = (0, react.forwardRef)(({ padding, css: cssProp, ...props }
35
34
  ...props,
36
35
  ref
37
36
  }));
38
-
39
37
  //#endregion
40
38
  exports.PageContainer = PageContainer;
39
+
41
40
  //# sourceMappingURL=PageContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageContainer.js","names":["PageContent","css"],"sources":["../../src/Layout/PageContainer.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { type HTMLArkProps } from \"@ark-ui/react\";\nimport { css, cva } from \"@ndla/styled-system/css\";\nimport type { StyledProps, RecipeVariantProps } from \"@ndla/styled-system/types\";\nimport { forwardRef } from \"react\";\nimport { PageContent, type PageContentVariantProps } from \"./PageContent\";\n\nconst pageContainerRecipe = cva({\n defaultVariants: {\n padding: \"medium\",\n },\n variants: {\n padding: {\n none: {},\n small: {\n paddingBlockStart: \"medium\",\n paddingBlockEnd: \"5xlarge\",\n },\n medium: {\n paddingBlockStart: \"xxlarge\",\n paddingBlockEnd: \"5xlarge\",\n },\n large: {\n paddingBlockStart: \"4xlarge\",\n paddingBlockEnd: \"5xlarge\",\n },\n },\n },\n});\n\nexport type PageContainerVariantProps = NonNullable<RecipeVariantProps<typeof pageContainerRecipe>>;\n\nexport interface PageContainerProps\n extends HTMLArkProps<\"div\">, StyledProps, PageContentVariantProps, PageContainerVariantProps {}\n\nexport const PageContainer = forwardRef<HTMLDivElement, PageContainerProps>(\n ({ padding, css: cssProp, ...props }, ref) => (\n <PageContent css={css.raw(pageContainerRecipe.raw({ padding }), cssProp)} {...props} ref={ref} />\n ),\n);\n"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,uDAA0B;CAC9B,iBAAiB,EACf,SAAS,UACV;CACD,UAAU,EACR,SAAS;EACP,MAAM,EAAE;EACR,OAAO;GACL,mBAAmB;GACnB,iBAAiB;GAClB;EACD,QAAQ;GACN,mBAAmB;GACnB,iBAAiB;GAClB;EACD,OAAO;GACL,mBAAmB;GACnB,iBAAiB;GAClB;EACF,EACF;CACF,CAAC;AAOF,MAAa,uCACV,EAAE,SAAS,KAAK,SAAS,GAAG,SAAS,QACpC,2CAACA;CAAY,KAAKC,4BAAI,IAAI,oBAAoB,IAAI,EAAE,SAAS,CAAC,EAAE,QAAQ;CAAE,GAAI;CAAY;EAAO,CAEpG"}
1
+ {"version":3,"file":"PageContainer.js","names":["PageContent","css"],"sources":["../../src/Layout/PageContainer.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { type HTMLArkProps } from \"@ark-ui/react\";\nimport { css, cva } from \"@ndla/styled-system/css\";\nimport type { StyledProps, RecipeVariantProps } from \"@ndla/styled-system/types\";\nimport { forwardRef } from \"react\";\nimport { PageContent, type PageContentVariantProps } from \"./PageContent\";\n\nconst pageContainerRecipe = cva({\n defaultVariants: {\n padding: \"medium\",\n },\n variants: {\n padding: {\n none: {},\n small: {\n paddingBlockStart: \"medium\",\n paddingBlockEnd: \"5xlarge\",\n },\n medium: {\n paddingBlockStart: \"xxlarge\",\n paddingBlockEnd: \"5xlarge\",\n },\n large: {\n paddingBlockStart: \"4xlarge\",\n paddingBlockEnd: \"5xlarge\",\n },\n },\n },\n});\n\nexport type PageContainerVariantProps = NonNullable<RecipeVariantProps<typeof pageContainerRecipe>>;\n\nexport interface PageContainerProps\n extends HTMLArkProps<\"div\">, StyledProps, PageContentVariantProps, PageContainerVariantProps {}\n\nexport const PageContainer = forwardRef<HTMLDivElement, PageContainerProps>(\n ({ padding, css: cssProp, ...props }, ref) => (\n <PageContent css={css.raw(pageContainerRecipe.raw({ padding }), cssProp)} {...props} ref={ref} />\n ),\n);\n"],"mappings":";;;;;;;;;;;;;AAcA,MAAM,uBAAA,GAAA,wBAAA,KAA0B;CAC9B,iBAAiB,EACf,SAAS,UACV;CACD,UAAU,EACR,SAAS;EACP,MAAM,EAAE;EACR,OAAO;GACL,mBAAmB;GACnB,iBAAiB;GAClB;EACD,QAAQ;GACN,mBAAmB;GACnB,iBAAiB;GAClB;EACD,OAAO;GACL,mBAAmB;GACnB,iBAAiB;GAClB;EACF,EACF;CACF,CAAC;AAOF,MAAa,iBAAA,GAAA,MAAA,aACV,EAAE,SAAS,KAAK,SAAS,GAAG,SAAS,QACpC,iBAAA,GAAA,kBAAA,KAACA,oBAAAA,aAAD;CAAa,KAAKC,wBAAAA,IAAI,IAAI,oBAAoB,IAAI,EAAE,SAAS,CAAC,EAAE,QAAQ;CAAE,GAAI;CAAY;CAAO,CAAA,CAEpG"}
@@ -3,7 +3,6 @@ let _ndla_styled_system_css = require("@ndla/styled-system/css");
3
3
  let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
4
4
  let react_jsx_runtime = require("react/jsx-runtime");
5
5
  let react = require("react");
6
-
7
6
  //#region src/Layout/PageContent.tsx
8
7
  /**
9
8
  * Copyright (c) 2024-present, NDLA.
@@ -68,8 +67,8 @@ const BleedPageContent = (0, _ndla_styled_system_jsx.styled)(_ark_ui_react.ark.d
68
67
  gridColumnStart: "1",
69
68
  gridColumnEnd: "-1"
70
69
  } } }, { baseComponent: true });
71
-
72
70
  //#endregion
73
71
  exports.BleedPageContent = BleedPageContent;
74
72
  exports.PageContent = PageContent;
73
+
75
74
  //# sourceMappingURL=PageContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageContent.js","names":["ark","css"],"sources":["../../src/Layout/PageContent.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { type HTMLArkProps, ark } from \"@ark-ui/react\";\nimport { css, cva } from \"@ndla/styled-system/css\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps, RecipeVariantProps } from \"@ndla/styled-system/types\";\nimport { forwardRef } from \"react\";\n\nconst pageRecipe = cva({\n base: {\n display: \"grid\",\n transitionProperty: \"all\",\n transitionDuration: \"default\",\n transitionTimingFunction: \"default\",\n alignContent: \"start\",\n /**\n * var(--size) is the max width of the content\n * calc(100% - (var(--gutter, 0) * 2)) is the max width of the page, minus the gutters (inline padding without being actual padding).\n * In effect, this will center the content on the page, and constrain it to either the content width or the page width, whichever is smaller.\n */\n gridColumnGap: \"var(--gutter, 0)\",\n gridTemplateColumns: \"1fr min(var(--size), calc(100% - (var(--gutter, 0) * 2))) 1fr\",\n \"& > *\": {\n gridColumnStart: \"2\",\n gridColumnEnd: \"2\",\n },\n },\n defaultVariants: {\n variant: \"page\",\n gutters: \"always\",\n },\n variants: {\n variant: {\n content: {\n \"--size\": \"sizes.surface.contentMax\",\n },\n article: {\n \"--size\": \"sizes.surface.articleMax\",\n },\n page: {\n \"--size\": \"sizes.surface.pageMax\",\n },\n wide: {\n \"--size\": \"sizes.surface.wideMax\",\n },\n },\n gutters: {\n never: {\n \"--gutter\": \"0px\",\n },\n mobileUp: {\n \"--gutter\": \"0px\",\n mobileWide: {\n \"--gutter\": \"spacing.medium\",\n },\n },\n tabletUp: {\n \"--gutter\": \"0px\",\n tablet: {\n \"--gutter\": \"spacing.medium\",\n },\n },\n always: {\n \"--gutter\": \"spacing.small\",\n tablet: {\n \"--gutter\": \"spacing.medium\",\n },\n },\n },\n },\n});\n\nconst StyledPageContent = styled(ark.div, {}, { baseComponent: true });\n\nexport type PageContentVariantProps = NonNullable<RecipeVariantProps<typeof pageRecipe>>;\n\nexport interface PageContentProps extends HTMLArkProps<\"div\">, StyledProps, PageContentVariantProps {}\n\nexport const PageContent = forwardRef<HTMLDivElement, PageContentProps>(\n ({ variant, gutters, css: cssProp, ...props }, ref) => (\n <StyledPageContent css={css.raw(pageRecipe.raw({ variant, gutters }), cssProp)} ref={ref} {...props} />\n ),\n);\n\nexport const BleedPageContent = styled(\n ark.div,\n {\n base: {\n \"& \": {\n width: \"100%\",\n gridColumnStart: \"1\",\n gridColumnEnd: \"-1\",\n },\n },\n },\n { baseComponent: true },\n);\n"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,8CAAiB;CACrB,MAAM;EACJ,SAAS;EACT,oBAAoB;EACpB,oBAAoB;EACpB,0BAA0B;EAC1B,cAAc;EAMd,eAAe;EACf,qBAAqB;EACrB,SAAS;GACP,iBAAiB;GACjB,eAAe;GAChB;EACF;CACD,iBAAiB;EACf,SAAS;EACT,SAAS;EACV;CACD,UAAU;EACR,SAAS;GACP,SAAS,EACP,UAAU,4BACX;GACD,SAAS,EACP,UAAU,4BACX;GACD,MAAM,EACJ,UAAU,yBACX;GACD,MAAM,EACJ,UAAU,yBACX;GACF;EACD,SAAS;GACP,OAAO,EACL,YAAY,OACb;GACD,UAAU;IACR,YAAY;IACZ,YAAY,EACV,YAAY,kBACb;IACF;GACD,UAAU;IACR,YAAY;IACZ,QAAQ,EACN,YAAY,kBACb;IACF;GACD,QAAQ;IACN,YAAY;IACZ,QAAQ,EACN,YAAY,kBACb;IACF;GACF;EACF;CACF,CAAC;AAEF,MAAM,wDAA2BA,kBAAI,KAAK,EAAE,EAAE,EAAE,eAAe,MAAM,CAAC;AAMtE,MAAa,qCACV,EAAE,SAAS,SAAS,KAAK,SAAS,GAAG,SAAS,QAC7C,2CAAC;CAAkB,KAAKC,4BAAI,IAAI,WAAW,IAAI;EAAE;EAAS;EAAS,CAAC,EAAE,QAAQ;CAAO;CAAK,GAAI;EAAS,CAE1G;AAED,MAAa,uDACXD,kBAAI,KACJ,EACE,MAAM,EACJ,MAAM;CACJ,OAAO;CACP,iBAAiB;CACjB,eAAe;CAChB,EACF,EACF,EACD,EAAE,eAAe,MAAM,CACxB"}
1
+ {"version":3,"file":"PageContent.js","names":["ark","css"],"sources":["../../src/Layout/PageContent.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { type HTMLArkProps, ark } from \"@ark-ui/react\";\nimport { css, cva } from \"@ndla/styled-system/css\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps, RecipeVariantProps } from \"@ndla/styled-system/types\";\nimport { forwardRef } from \"react\";\n\nconst pageRecipe = cva({\n base: {\n display: \"grid\",\n transitionProperty: \"all\",\n transitionDuration: \"default\",\n transitionTimingFunction: \"default\",\n alignContent: \"start\",\n /**\n * var(--size) is the max width of the content\n * calc(100% - (var(--gutter, 0) * 2)) is the max width of the page, minus the gutters (inline padding without being actual padding).\n * In effect, this will center the content on the page, and constrain it to either the content width or the page width, whichever is smaller.\n */\n gridColumnGap: \"var(--gutter, 0)\",\n gridTemplateColumns: \"1fr min(var(--size), calc(100% - (var(--gutter, 0) * 2))) 1fr\",\n \"& > *\": {\n gridColumnStart: \"2\",\n gridColumnEnd: \"2\",\n },\n },\n defaultVariants: {\n variant: \"page\",\n gutters: \"always\",\n },\n variants: {\n variant: {\n content: {\n \"--size\": \"sizes.surface.contentMax\",\n },\n article: {\n \"--size\": \"sizes.surface.articleMax\",\n },\n page: {\n \"--size\": \"sizes.surface.pageMax\",\n },\n wide: {\n \"--size\": \"sizes.surface.wideMax\",\n },\n },\n gutters: {\n never: {\n \"--gutter\": \"0px\",\n },\n mobileUp: {\n \"--gutter\": \"0px\",\n mobileWide: {\n \"--gutter\": \"spacing.medium\",\n },\n },\n tabletUp: {\n \"--gutter\": \"0px\",\n tablet: {\n \"--gutter\": \"spacing.medium\",\n },\n },\n always: {\n \"--gutter\": \"spacing.small\",\n tablet: {\n \"--gutter\": \"spacing.medium\",\n },\n },\n },\n },\n});\n\nconst StyledPageContent = styled(ark.div, {}, { baseComponent: true });\n\nexport type PageContentVariantProps = NonNullable<RecipeVariantProps<typeof pageRecipe>>;\n\nexport interface PageContentProps extends HTMLArkProps<\"div\">, StyledProps, PageContentVariantProps {}\n\nexport const PageContent = forwardRef<HTMLDivElement, PageContentProps>(\n ({ variant, gutters, css: cssProp, ...props }, ref) => (\n <StyledPageContent css={css.raw(pageRecipe.raw({ variant, gutters }), cssProp)} ref={ref} {...props} />\n ),\n);\n\nexport const BleedPageContent = styled(\n ark.div,\n {\n base: {\n \"& \": {\n width: \"100%\",\n gridColumnStart: \"1\",\n gridColumnEnd: \"-1\",\n },\n },\n },\n { baseComponent: true },\n);\n"],"mappings":";;;;;;;;;;;;;AAcA,MAAM,cAAA,GAAA,wBAAA,KAAiB;CACrB,MAAM;EACJ,SAAS;EACT,oBAAoB;EACpB,oBAAoB;EACpB,0BAA0B;EAC1B,cAAc;EAMd,eAAe;EACf,qBAAqB;EACrB,SAAS;GACP,iBAAiB;GACjB,eAAe;GAChB;EACF;CACD,iBAAiB;EACf,SAAS;EACT,SAAS;EACV;CACD,UAAU;EACR,SAAS;GACP,SAAS,EACP,UAAU,4BACX;GACD,SAAS,EACP,UAAU,4BACX;GACD,MAAM,EACJ,UAAU,yBACX;GACD,MAAM,EACJ,UAAU,yBACX;GACF;EACD,SAAS;GACP,OAAO,EACL,YAAY,OACb;GACD,UAAU;IACR,YAAY;IACZ,YAAY,EACV,YAAY,kBACb;IACF;GACD,UAAU;IACR,YAAY;IACZ,QAAQ,EACN,YAAY,kBACb;IACF;GACD,QAAQ;IACN,YAAY;IACZ,QAAQ,EACN,YAAY,kBACb;IACF;GACF;EACF;CACF,CAAC;AAEF,MAAM,qBAAA,GAAA,wBAAA,QAA2BA,cAAAA,IAAI,KAAK,EAAE,EAAE,EAAE,eAAe,MAAM,CAAC;AAMtE,MAAa,eAAA,GAAA,MAAA,aACV,EAAE,SAAS,SAAS,KAAK,SAAS,GAAG,SAAS,QAC7C,iBAAA,GAAA,kBAAA,KAAC,mBAAD;CAAmB,KAAKC,wBAAAA,IAAI,IAAI,WAAW,IAAI;EAAE;EAAS;EAAS,CAAC,EAAE,QAAQ;CAAO;CAAK,GAAI;CAAS,CAAA,CAE1G;AAED,MAAa,oBAAA,GAAA,wBAAA,QACXD,cAAAA,IAAI,KACJ,EACE,MAAM,EACJ,MAAM;CACJ,OAAO;CACP,iBAAiB;CACjB,eAAe;CAChB,EACF,EACF,EACD,EAAE,eAAe,MAAM,CACxB"}
@@ -1,11 +1,10 @@
1
- const require_Image = require('../Image.js');
2
- const require_Text = require('../Text.js');
1
+ const require_Image = require("../Image.js");
2
+ const require_Text = require("../Text.js");
3
3
  let _ark_ui_react = require("@ark-ui/react");
4
4
  let _ndla_styled_system_css = require("@ndla/styled-system/css");
5
5
  let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
6
6
  let react_jsx_runtime = require("react/jsx-runtime");
7
7
  let react = require("react");
8
-
9
8
  //#region src/ListItem/ListItem.tsx
10
9
  /**
11
10
  * Copyright (c) 2024-present, NDLA.
@@ -79,13 +78,12 @@ const listItemRecipe = (0, _ndla_styled_system_css.sva)({
79
78
  });
80
79
  const { withProvider, withContext } = (0, _ndla_styled_system_jsx.createStyleContext)(listItemRecipe);
81
80
  const ListItemRoot = withProvider(_ark_ui_react.ark.div, "root", { baseComponent: true });
82
- const InternalListItemHeading = (0, react.forwardRef)(({ textStyle = "label.medium", fontWeight = "bold", ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Heading, {
81
+ const ListItemHeading = withContext((0, react.forwardRef)(({ textStyle = "label.medium", fontWeight = "bold", ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Text.Heading, {
83
82
  textStyle,
84
83
  fontWeight,
85
84
  ...props,
86
85
  ref
87
- }));
88
- const ListItemHeading = withContext(InternalListItemHeading, "title");
86
+ })), "title");
89
87
  const ListItemContent = withContext(_ark_ui_react.ark.div, "content", { baseComponent: true });
90
88
  const InternalListItemImage = withContext(require_Image.Image, "image");
91
89
  const ListItemImage = (0, react.forwardRef)(({ variant = "rounded", ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(InternalListItemImage, {
@@ -93,10 +91,10 @@ const ListItemImage = (0, react.forwardRef)(({ variant = "rounded", ...props },
93
91
  ...props,
94
92
  ref
95
93
  }));
96
-
97
94
  //#endregion
98
95
  exports.ListItemContent = ListItemContent;
99
96
  exports.ListItemHeading = ListItemHeading;
100
97
  exports.ListItemImage = ListItemImage;
101
98
  exports.ListItemRoot = ListItemRoot;
99
+
102
100
  //# sourceMappingURL=ListItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.js","names":["ark","Heading","Image"],"sources":["../../src/ListItem/ListItem.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { type HTMLArkProps, ark } from \"@ark-ui/react\";\nimport { sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps, RecipeVariantProps } from \"@ndla/styled-system/types\";\nimport { forwardRef } from \"react\";\nimport { Image, type ImageProps } from \"../Image\";\nimport { Heading, type TextProps } from \"../Text\";\n\nexport const listItemRecipe = sva({\n slots: [\"root\", \"title\", \"content\", \"image\"],\n base: {\n root: {\n minHeight: \"3xlarge\",\n borderStyle: \"solid\",\n borderWidth: \"1px\",\n borderColor: \"stroke.subtle\",\n backgroundColor: \"background.default\",\n color: \"text.default\",\n position: \"relative\",\n display: \"flex\",\n gap: \"small\",\n alignItems: \"center\",\n paddingBlock: \"xsmall\",\n paddingInline: \"xxsmall\",\n transitionProperty: \"background-color, border-color, color\",\n transitionDuration: \"superFast\",\n transitionTimingFunction: \"ease-in-out\",\n boxShadow: \"xsmall\",\n },\n content: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n gap: \"xsmall\",\n width: \"100%\",\n },\n image: {\n minHeight: \"50px\",\n maxHeight: \"50px\",\n minWidth: \"70px\",\n maxWidth: \"70px\",\n objectFit: \"cover\",\n },\n },\n defaultVariants: {\n nonInteractive: false,\n },\n variants: {\n nonInteractive: {\n false: {\n root: {\n _highlighted: {\n borderColor: \"stroke.hover\",\n backgroundColor: \"surface.hover\",\n },\n _hover: {\n borderColor: \"stroke.hover\",\n backgroundColor: \"surface.hover\",\n },\n _active: {\n borderColor: \"stroke.hover\",\n backgroundColor: \"surface.active\",\n },\n },\n title: {\n textDecoration: \"underline\",\n _hover: {\n textDecoration: \"none\",\n },\n },\n },\n },\n },\n});\n\nconst { withProvider, withContext } = createStyleContext(listItemRecipe);\n\nexport type ListItemVariantProps = NonNullable<RecipeVariantProps<typeof listItemRecipe>>;\n\nexport interface ListItemProps extends HTMLArkProps<\"div\">, StyledProps, ListItemVariantProps {}\n\nexport const ListItemRoot = withProvider(ark.div, \"root\", { baseComponent: true });\n\ninterface ListItemHeadingProps extends Omit<HTMLArkProps<\"p\">, \"color\">, TextProps {}\n\nconst InternalListItemHeading = forwardRef<HTMLHeadingElement, ListItemHeadingProps>(\n ({ textStyle = \"label.medium\", fontWeight = \"bold\", ...props }, ref) => (\n <Heading textStyle={textStyle} fontWeight={fontWeight} {...props} ref={ref} />\n ),\n);\n\nexport const ListItemHeading = withContext(InternalListItemHeading, \"title\");\n\nexport const ListItemContent = withContext(ark.div, \"content\", { baseComponent: true });\n\nconst InternalListItemImage = withContext(Image, \"image\");\n\nexport const ListItemImage = forwardRef<HTMLImageElement, ImageProps>(({ variant = \"rounded\", ...props }, ref) => (\n <InternalListItemImage variant={variant} {...props} ref={ref} />\n));\n"],"mappings":";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Y;EAAO,CAChE"}
1
+ {"version":3,"file":"ListItem.js","names":["ark","Heading","Image"],"sources":["../../src/ListItem/ListItem.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { type HTMLArkProps, ark } from \"@ark-ui/react\";\nimport { sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps, RecipeVariantProps } from \"@ndla/styled-system/types\";\nimport { forwardRef } from \"react\";\nimport { Image, type ImageProps } from \"../Image\";\nimport { Heading, type TextProps } from \"../Text\";\n\nexport const listItemRecipe = sva({\n slots: [\"root\", \"title\", \"content\", \"image\"],\n base: {\n root: {\n minHeight: \"3xlarge\",\n borderStyle: \"solid\",\n borderWidth: \"1px\",\n borderColor: \"stroke.subtle\",\n backgroundColor: \"background.default\",\n color: \"text.default\",\n position: \"relative\",\n display: \"flex\",\n gap: \"small\",\n alignItems: \"center\",\n paddingBlock: \"xsmall\",\n paddingInline: \"xxsmall\",\n transitionProperty: \"background-color, border-color, color\",\n transitionDuration: \"superFast\",\n transitionTimingFunction: \"ease-in-out\",\n boxShadow: \"xsmall\",\n },\n content: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n gap: \"xsmall\",\n width: \"100%\",\n },\n image: {\n minHeight: \"50px\",\n maxHeight: \"50px\",\n minWidth: \"70px\",\n maxWidth: \"70px\",\n objectFit: \"cover\",\n },\n },\n defaultVariants: {\n nonInteractive: false,\n },\n variants: {\n nonInteractive: {\n false: {\n root: {\n _highlighted: {\n borderColor: \"stroke.hover\",\n backgroundColor: \"surface.hover\",\n },\n _hover: {\n borderColor: \"stroke.hover\",\n backgroundColor: \"surface.hover\",\n },\n _active: {\n borderColor: \"stroke.hover\",\n backgroundColor: \"surface.active\",\n },\n },\n title: {\n textDecoration: \"underline\",\n _hover: {\n textDecoration: \"none\",\n },\n },\n },\n },\n },\n});\n\nconst { withProvider, withContext } = createStyleContext(listItemRecipe);\n\nexport type ListItemVariantProps = NonNullable<RecipeVariantProps<typeof listItemRecipe>>;\n\nexport interface ListItemProps extends HTMLArkProps<\"div\">, StyledProps, ListItemVariantProps {}\n\nexport const ListItemRoot = withProvider(ark.div, \"root\", { baseComponent: true });\n\ninterface ListItemHeadingProps extends Omit<HTMLArkProps<\"p\">, \"color\">, TextProps {}\n\nconst InternalListItemHeading = forwardRef<HTMLHeadingElement, ListItemHeadingProps>(\n ({ textStyle = \"label.medium\", fontWeight = \"bold\", ...props }, ref) => (\n <Heading textStyle={textStyle} fontWeight={fontWeight} {...props} ref={ref} />\n ),\n);\n\nexport const ListItemHeading = withContext(InternalListItemHeading, \"title\");\n\nexport const ListItemContent = withContext(ark.div, \"content\", { baseComponent: true });\n\nconst InternalListItemImage = withContext(Image, \"image\");\n\nexport const ListItemImage = forwardRef<HTMLImageElement, ImageProps>(({ variant = \"rounded\", ...props }, ref) => (\n <InternalListItemImage variant={variant} {...props} ref={ref} />\n));\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAa,kBAAA,GAAA,wBAAA,KAAqB;CAChC,OAAO;EAAC;EAAQ;EAAS;EAAW;EAAQ;CAC5C,MAAM;EACJ,MAAM;GACJ,WAAW;GACX,aAAa;GACb,aAAa;GACb,aAAa;GACb,iBAAiB;GACjB,OAAO;GACP,UAAU;GACV,SAAS;GACT,KAAK;GACL,YAAY;GACZ,cAAc;GACd,eAAe;GACf,oBAAoB;GACpB,oBAAoB;GACpB,0BAA0B;GAC1B,WAAW;GACZ;EACD,SAAS;GACP,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,KAAK;GACL,OAAO;GACR;EACD,OAAO;GACL,WAAW;GACX,WAAW;GACX,UAAU;GACV,UAAU;GACV,WAAW;GACZ;EACF;CACD,iBAAiB,EACf,gBAAgB,OACjB;CACD,UAAU,EACR,gBAAgB,EACd,OAAO;EACL,MAAM;GACJ,cAAc;IACZ,aAAa;IACb,iBAAiB;IAClB;GACD,QAAQ;IACN,aAAa;IACb,iBAAiB;IAClB;GACD,SAAS;IACP,aAAa;IACb,iBAAiB;IAClB;GACF;EACD,OAAO;GACL,gBAAgB;GAChB,QAAQ,EACN,gBAAgB,QACjB;GACF;EACF,EACF,EACF;CACF,CAAC;AAEF,MAAM,EAAE,cAAc,iBAAA,GAAA,wBAAA,oBAAmC,eAAe;AAMxE,MAAa,eAAe,aAAaA,cAAAA,IAAI,KAAK,QAAQ,EAAE,eAAe,MAAM,CAAC;AAUlF,MAAa,kBAAkB,aANzB,GAAA,MAAA,aACH,EAAE,YAAY,gBAAgB,aAAa,QAAQ,GAAG,SAAS,QAC9D,iBAAA,GAAA,kBAAA,KAACC,aAAAA,SAAD;CAAoB;CAAuB;CAAY,GAAI;CAAY;CAAO,CAAA,CAEjF,EAEmE,QAAQ;AAE5E,MAAa,kBAAkB,YAAYD,cAAAA,IAAI,KAAK,WAAW,EAAE,eAAe,MAAM,CAAC;AAEvF,MAAM,wBAAwB,YAAYE,cAAAA,OAAO,QAAQ;AAEzD,MAAa,iBAAA,GAAA,MAAA,aAA0D,EAAE,UAAU,WAAW,GAAG,SAAS,QACxG,iBAAA,GAAA,kBAAA,KAAC,uBAAD;CAAgC;CAAS,GAAI;CAAY;CAAO,CAAA,CAChE"}
package/lib/Menu.js CHANGED
@@ -1,10 +1,9 @@
1
- const require_Text = require('./Text.js');
1
+ const require_Text = require("./Text.js");
2
2
  let _ark_ui_react = require("@ark-ui/react");
3
3
  let _ndla_styled_system_css = require("@ndla/styled-system/css");
4
4
  let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
6
  let react = require("react");
7
-
8
7
  //#region src/Menu.tsx
9
8
  /**
10
9
  * Copyright (c) 2024-present, NDLA.
@@ -138,7 +137,6 @@ const MenuTriggerItem = (0, react.forwardRef)(({ css: cssProp = {}, variant, ...
138
137
  const MenuTrigger = withContext(_ark_ui_react.Menu.Trigger, "trigger", { baseComponent: true });
139
138
  const MenuSeparator = withContext(_ark_ui_react.Menu.Separator, "separator", { baseComponent: true });
140
139
  const MenuItemText = withContext(_ark_ui_react.Menu.ItemText, "itemText", { baseComponent: true });
141
-
142
140
  //#endregion
143
141
  exports.MenuContent = MenuContent;
144
142
  exports.MenuContentStandalone = MenuContentStandalone;
@@ -151,4 +149,5 @@ exports.MenuRoot = MenuRoot;
151
149
  exports.MenuSeparator = MenuSeparator;
152
150
  exports.MenuTrigger = MenuTrigger;
153
151
  exports.MenuTriggerItem = MenuTriggerItem;
152
+
154
153
  //# sourceMappingURL=Menu.js.map
package/lib/Menu.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.js","names":["css","menuAnatomy","Menu","Text"],"sources":["../src/Menu.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Menu, menuAnatomy } from \"@ark-ui/react\";\nimport { css, cva, sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { RecipeVariantProps, StyledProps, SystemStyleObject } from \"@ndla/styled-system/types\";\nimport { forwardRef, type RefAttributes } from \"react\";\nimport { Text, type TextProps } from \"./Text\";\n\nconst itemStyle: SystemStyleObject = css.raw({\n display: \"flex\",\n alignItems: \"center\",\n borderRadius: \"xsmall\",\n cursor: \"pointer\",\n textStyle: \"label.medium\",\n paddingBlock: \"4xsmall\",\n paddingInline: \"xsmall\",\n gap: \"xsmall\",\n transitionDuration: \"fast\",\n transitionProperty: \"background, color\",\n transitionTimingFunction: \"default\",\n outline: \"none\",\n _hover: {\n textDecoration: \"underline\",\n },\n _highlighted: {\n textDecoration: \"underline\",\n },\n _disabled: {\n color: \"text.disabled\",\n cursor: \"not-allowed\",\n \"& svg\": {\n color: \"stroke.disabled\",\n },\n _hover: {\n color: \"text.disabled\",\n textDecoration: \"none\",\n background: \"surface.default\",\n \"& svg\": {\n color: \"stroke.disabled\",\n },\n },\n },\n});\n\nconst itemCva = cva({\n defaultVariants: {\n variant: \"action\",\n },\n variants: {\n variant: {\n action: {\n _hover: {\n background: \"surface.hover\",\n },\n _highlighted: {\n background: \"surface.hover\",\n },\n _active: {\n background: \"surface.active\",\n },\n },\n destructive: {\n color: \"text.error\",\n \"& svg\": {\n color: \"icon.error\",\n },\n _hover: {\n color: \"text.default\",\n \"& svg\": {\n color: \"icon.default\",\n },\n background: \"surface.dangerSubtle.hover\",\n },\n _highlighted: {\n color: \"text.default\",\n \"& svg\": {\n color: \"icon.default\",\n },\n background: \"surface.dangerSubtle.hover\",\n },\n _active: {\n background: \"surface.dangerSubtle.active\",\n },\n },\n },\n },\n});\n\nconst menuRecipe = sva({\n slots: menuAnatomy.keys(),\n base: {\n item: itemStyle,\n triggerItem: itemStyle,\n content: {\n color: \"text.default\",\n display: \"flex\",\n flexDirection: \"column\",\n width: \"fit-content\",\n minWidth: \"surface.xxsmall\",\n padding: \"3xsmall\",\n gap: \"3xsmall\",\n background: \"surface.default\",\n boxShadow: \"small\",\n borderRadius: \"xsmall\",\n outline: \"none\",\n zIndex: \"dropdown\",\n _open: {\n animation: \"fade-shift-in 0.25s ease-out\",\n _motionReduce: {\n animation: \"none\",\n },\n },\n _closed: {\n animation: \"fade-shift-out 0.25s ease-out\",\n _motionReduce: {\n animation: \"none\",\n },\n },\n },\n itemGroup: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"3xsmall\",\n },\n positioner: {\n zIndex: \"dropdown\",\n },\n },\n});\n\nconst { withRootProvider, withContext } = createStyleContext(menuRecipe);\n\nexport type MenuRootProps = Menu.RootProps;\n\nconst InternalMenuRoot = withRootProvider(Menu.Root);\n\nexport const MenuRoot = ({ lazyMount = true, unmountOnExit = true, ...props }: MenuRootProps) => (\n <InternalMenuRoot lazyMount={lazyMount} unmountOnExit={unmountOnExit} {...props} />\n);\n\nexport const MenuContentStandalone = withContext(Menu.Content, \"content\", { baseComponent: true });\n\ninterface MenuContentProps extends Menu.ContentProps, StyledProps {}\n\nexport const MenuContent = forwardRef<HTMLDivElement, MenuContentProps>((props, ref) => (\n <MenuPositioner>\n <MenuContentStandalone ref={ref} {...props} />\n </MenuPositioner>\n));\n\nconst InternalMenuItemGroupLabel = withContext(Menu.ItemGroupLabel, \"itemGroupLabel\");\n\ninterface MenuItemGroupLabelProps\n extends Omit<Menu.ItemGroupLabelProps, \"color\">, StyledProps, TextProps, RefAttributes<HTMLDivElement> {}\n\nexport const MenuItemGroupLabel = ({\n textStyle = \"label.medium\",\n fontWeight = \"bold\",\n children,\n ...props\n}: MenuItemGroupLabelProps) => (\n <InternalMenuItemGroupLabel {...props} asChild>\n <Text textStyle={textStyle} fontWeight={fontWeight}>\n {children}\n </Text>\n </InternalMenuItemGroupLabel>\n);\n\nexport const MenuItemGroup = withContext(Menu.ItemGroup, \"itemGroup\", { baseComponent: true });\n\nconst InternalMenuItem = withContext(Menu.Item, \"item\", { baseComponent: true });\n\nexport type MenuItemVariantProps = NonNullable<RecipeVariantProps<typeof itemCva>>;\nexport interface MenuItemProps\n extends Menu.ItemProps, StyledProps, MenuItemVariantProps, RefAttributes<HTMLDivElement> {}\n\nexport const MenuItem = forwardRef<HTMLDivElement, MenuItemProps>(({ css: cssProp = {}, variant, ...props }, ref) => (\n <InternalMenuItem\n css={[itemCva.raw({ variant }), ...(Array.isArray(cssProp) ? cssProp : [cssProp])]}\n {...props}\n ref={ref}\n />\n));\n\nexport const MenuPositioner = withContext(Menu.Positioner, \"positioner\", { baseComponent: true });\n\nconst InternalMenuTriggerItem = withContext(Menu.TriggerItem, \"triggerItem\", { baseComponent: true });\n\ninterface MenuTriggerItemProps\n extends Menu.TriggerItemProps, StyledProps, MenuItemVariantProps, RefAttributes<HTMLButtonElement> {}\n\nexport const MenuTriggerItem = forwardRef<HTMLDivElement, MenuTriggerItemProps>(\n ({ css: cssProp = {}, variant, ...props }, ref) => (\n <InternalMenuTriggerItem\n css={[itemCva.raw({ variant }), ...(Array.isArray(cssProp) ? cssProp : [cssProp])]}\n {...props}\n ref={ref}\n />\n ),\n);\n\nexport const MenuTrigger = withContext(Menu.Trigger, \"trigger\", { baseComponent: true });\n\nexport const MenuSeparator = withContext(Menu.Separator, \"separator\", { baseComponent: true });\n\nexport const MenuItemText = withContext(Menu.ItemText, \"itemText\", { baseComponent: true });\n"],"mappings":";;;;;;;;;;;;;;;AAeA,MAAM,YAA+BA,4BAAI,IAAI;CAC3C,SAAS;CACT,YAAY;CACZ,cAAc;CACd,QAAQ;CACR,WAAW;CACX,cAAc;CACd,eAAe;CACf,KAAK;CACL,oBAAoB;CACpB,oBAAoB;CACpB,0BAA0B;CAC1B,SAAS;CACT,QAAQ,EACN,gBAAgB,aACjB;CACD,cAAc,EACZ,gBAAgB,aACjB;CACD,WAAW;EACT,OAAO;EACP,QAAQ;EACR,SAAS,EACP,OAAO,mBACR;EACD,QAAQ;GACN,OAAO;GACP,gBAAgB;GAChB,YAAY;GACZ,SAAS,EACP,OAAO,mBACR;GACF;EACF;CACF,CAAC;AAEF,MAAM,2CAAc;CAClB,iBAAiB,EACf,SAAS,UACV;CACD,UAAU,EACR,SAAS;EACP,QAAQ;GACN,QAAQ,EACN,YAAY,iBACb;GACD,cAAc,EACZ,YAAY,iBACb;GACD,SAAS,EACP,YAAY,kBACb;GACF;EACD,aAAa;GACX,OAAO;GACP,SAAS,EACP,OAAO,cACR;GACD,QAAQ;IACN,OAAO;IACP,SAAS,EACP,OAAO,gBACR;IACD,YAAY;IACb;GACD,cAAc;IACZ,OAAO;IACP,SAAS,EACP,OAAO,gBACR;IACD,YAAY;IACb;GACD,SAAS,EACP,YAAY,+BACb;GACF;EACF,EACF;CACF,CAAC;AA4CF,MAAM,EAAE,kBAAkB,iGA1CH;CACrB,OAAOC,0BAAY,MAAM;CACzB,MAAM;EACJ,MAAM;EACN,aAAa;EACb,SAAS;GACP,OAAO;GACP,SA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K,YAAY,cAAc,EAAE,eAAe,MAAM,CAAC;AAEjG,MAAM,0BAA0B,YAAYA,mBAAK,aAAa,eAAe,EAAE,eAAe,MAAM,CAAC;AAKrG,MAAa,yCACV,EAAE,KAAK,UAAU,EAAE,EAAE,SAAS,GAAG,SAAS,QACzC,2CAAC;CACC,KAAK,CAAC,QAAQ,IAAI,EAAE,SAAS,CAAC,EAAE,GAAI,MAAM,QAAQ,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAE;CAClF,GAAI;CACC;EACL,CAEL;AAED,MAAa,cAAc,YAAYA,mBAAK,SAAS,WAAW,EAAE,eAAe,MAAM,CAAC;AAExF,MAAa,gBAAgB,YAAYA,mBAAK,WAAW,aAAa,EAAE,eAAe,MAAM,CAAC;AAE9F,MAAa,eAAe,YAAYA,mBAAK,UAAU,YAAY,EAAE,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Menu.js","names":["css","menuAnatomy","Menu","Text"],"sources":["../src/Menu.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Menu, menuAnatomy } from \"@ark-ui/react\";\nimport { css, cva, sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { RecipeVariantProps, StyledProps, SystemStyleObject } from \"@ndla/styled-system/types\";\nimport { forwardRef, type RefAttributes } from \"react\";\nimport { Text, type TextProps } from \"./Text\";\n\nconst itemStyle: SystemStyleObject = css.raw({\n display: \"flex\",\n alignItems: \"center\",\n borderRadius: \"xsmall\",\n cursor: \"pointer\",\n textStyle: \"label.medium\",\n paddingBlock: \"4xsmall\",\n paddingInline: \"xsmall\",\n gap: \"xsmall\",\n transitionDuration: \"fast\",\n transitionProperty: \"background, color\",\n transitionTimingFunction: \"default\",\n outline: \"none\",\n _hover: {\n textDecoration: \"underline\",\n },\n _highlighted: {\n textDecoration: \"underline\",\n },\n _disabled: {\n color: \"text.disabled\",\n cursor: \"not-allowed\",\n \"& svg\": {\n color: \"stroke.disabled\",\n },\n _hover: {\n color: \"text.disabled\",\n textDecoration: \"none\",\n background: \"surface.default\",\n \"& svg\": {\n color: \"stroke.disabled\",\n },\n },\n },\n});\n\nconst itemCva = cva({\n defaultVariants: {\n variant: \"action\",\n },\n variants: {\n variant: {\n action: {\n _hover: {\n background: \"surface.hover\",\n },\n _highlighted: {\n background: \"surface.hover\",\n },\n _active: {\n background: \"surface.active\",\n },\n },\n destructive: {\n color: \"text.error\",\n \"& svg\": {\n color: \"icon.error\",\n },\n _hover: {\n color: \"text.default\",\n \"& svg\": {\n color: \"icon.default\",\n },\n background: \"surface.dangerSubtle.hover\",\n },\n _highlighted: {\n color: \"text.default\",\n \"& svg\": {\n color: \"icon.default\",\n },\n background: \"surface.dangerSubtle.hover\",\n },\n _active: {\n background: \"surface.dangerSubtle.active\",\n },\n },\n },\n },\n});\n\nconst menuRecipe = sva({\n slots: menuAnatomy.keys(),\n base: {\n item: itemStyle,\n triggerItem: itemStyle,\n content: {\n color: \"text.default\",\n display: \"flex\",\n flexDirection: \"column\",\n width: \"fit-content\",\n minWidth: \"surface.xxsmall\",\n padding: \"3xsmall\",\n gap: \"3xsmall\",\n background: \"surface.default\",\n boxShadow: \"small\",\n borderRadius: \"xsmall\",\n outline: \"none\",\n zIndex: \"dropdown\",\n _open: {\n animation: \"fade-shift-in 0.25s ease-out\",\n _motionReduce: {\n animation: \"none\",\n },\n },\n _closed: {\n animation: \"fade-shift-out 0.25s ease-out\",\n _motionReduce: {\n animation: \"none\",\n },\n },\n },\n itemGroup: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"3xsmall\",\n },\n positioner: {\n zIndex: \"dropdown\",\n },\n },\n});\n\nconst { withRootProvider, withContext } = createStyleContext(menuRecipe);\n\nexport type MenuRootProps = Menu.RootProps;\n\nconst InternalMenuRoot = withRootProvider(Menu.Root);\n\nexport const MenuRoot = ({ lazyMount = true, unmountOnExit = true, ...props }: MenuRootProps) => (\n <InternalMenuRoot lazyMount={lazyMount} unmountOnExit={unmountOnExit} {...props} />\n);\n\nexport const MenuContentStandalone = withContext(Menu.Content, \"content\", { baseComponent: true });\n\ninterface MenuContentProps extends Menu.ContentProps, StyledProps {}\n\nexport const MenuContent = forwardRef<HTMLDivElement, MenuContentProps>((props, ref) => (\n <MenuPositioner>\n <MenuContentStandalone ref={ref} {...props} />\n </MenuPositioner>\n));\n\nconst InternalMenuItemGroupLabel = withContext(Menu.ItemGroupLabel, \"itemGroupLabel\");\n\ninterface MenuItemGroupLabelProps\n extends Omit<Menu.ItemGroupLabelProps, \"color\">, StyledProps, TextProps, RefAttributes<HTMLDivElement> {}\n\nexport const MenuItemGroupLabel = ({\n textStyle = \"label.medium\",\n fontWeight = \"bold\",\n children,\n ...props\n}: MenuItemGroupLabelProps) => (\n <InternalMenuItemGroupLabel {...props} asChild>\n <Text textStyle={textStyle} fontWeight={fontWeight}>\n {children}\n </Text>\n </InternalMenuItemGroupLabel>\n);\n\nexport const MenuItemGroup = withContext(Menu.ItemGroup, \"itemGroup\", { baseComponent: true });\n\nconst InternalMenuItem = withContext(Menu.Item, \"item\", { baseComponent: true });\n\nexport type MenuItemVariantProps = NonNullable<RecipeVariantProps<typeof itemCva>>;\nexport interface MenuItemProps\n extends Menu.ItemProps, StyledProps, MenuItemVariantProps, RefAttributes<HTMLDivElement> {}\n\nexport const MenuItem = forwardRef<HTMLDivElement, MenuItemProps>(({ css: cssProp = {}, variant, ...props }, ref) => (\n <InternalMenuItem\n css={[itemCva.raw({ variant }), ...(Array.isArray(cssProp) ? cssProp : [cssProp])]}\n {...props}\n ref={ref}\n />\n));\n\nexport const MenuPositioner = withContext(Menu.Positioner, \"positioner\", { baseComponent: true });\n\nconst InternalMenuTriggerItem = withContext(Menu.TriggerItem, \"triggerItem\", { baseComponent: true });\n\ninterface MenuTriggerItemProps\n extends Menu.TriggerItemProps, StyledProps, MenuItemVariantProps, RefAttributes<HTMLButtonElement> {}\n\nexport const MenuTriggerItem = forwardRef<HTMLDivElement, MenuTriggerItemProps>(\n ({ css: cssProp = {}, variant, ...props }, ref) => (\n <InternalMenuTriggerItem\n css={[itemCva.raw({ variant }), ...(Array.isArray(cssProp) ? cssProp : [cssProp])]}\n {...props}\n ref={ref}\n />\n ),\n);\n\nexport const MenuTrigger = withContext(Menu.Trigger, \"trigger\", { baseComponent: true });\n\nexport const MenuSeparator = withContext(Menu.Separator, \"separator\", { baseComponent: true });\n\nexport const MenuItemText = withContext(Menu.ItemText, \"itemText\", { baseComponent: true });\n"],"mappings":";;;;;;;;;;;;;;AAeA,MAAM,YAA+BA,wBAAAA,IAAI,IAAI;CAC3C,SAAS;CACT,YAAY;CACZ,cAAc;CACd,QAAQ;CACR,WAAW;CACX,cAAc;CACd,eAAe;CACf,KAAK;CACL,oBAAoB;CACpB,oBAAoB;CACpB,0BAA0B;CAC1B,SAAS;CACT,QAAQ,EACN,gBAAgB,aACjB;CACD,cAAc,EACZ,gBAAgB,aACjB;CACD,WAAW;EACT,OAAO;EACP,QAAQ;EACR,SAAS,EACP,OAAO,mBACR;EACD,QAAQ;GACN,OAAO;GACP,gBAAgB;GAChB,YAAY;GACZ,SAAS,EACP,OAAO,mBACR;GACF;EACF;CACF,CAAC;AAEF,MAAM,WAAA,GAAA,wBAAA,KAAc;CAClB,iBAAiB,EACf,SAAS,UACV;CACD,UAAU,EACR,SAAS;EACP,QAAQ;GACN,QAAQ,EACN,YAAY,iBACb;GACD,cAAc,EACZ,YAAY,iBACb;GACD,SAAS,EACP,YAAY,kBACb;GACF;EACD,aAAa;GACX,OAAO;GACP,SAAS,EACP,OAAO,cACR;GACD,QAAQ;IACN,OAAO;IACP,SAAS,EACP,OAAO,gBACR;IACD,YAAY;IACb;GACD,cAAc;IACZ,OAAO;IACP,SAAS,EACP,OAAO,gBACR;IACD,YAAY;IACb;GACD,SAAS,EACP,YAAY,+BACb;GACF;EACF,EACF;CACF,CAAC;AA4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gB,YAAYD,cAAAA,KAAK,WAAW,aAAa,EAAE,eAAe,MAAM,CAAC;AAE9F,MAAM,mBAAmB,YAAYA,cAAAA,KAAK,MAAM,QAAQ,EAAE,eAAe,MAAM,CAAC;AAMhF,MAAa,YAAA,GAAA,MAAA,aAAsD,EAAE,KAAK,UAAU,EAAE,EAAE,SAAS,GAAG,SAAS,QAC3G,iBAAA,GAAA,kBAAA,KAAC,kBAAD;CACE,KAAK,CAAC,QAAQ,IAAI,EAAE,SAAS,CAAC,EAAE,GAAI,MAAM,QAAQ,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAE;CAClF,GAAI;CACC;CACL,CAAA,CACF;AAEF,MAAa,iBAAiB,YAAYA,cAAAA,KAAK,YAAY,cAAc,EAAE,eAAe,MAAM,CAAC;AAEjG,MAAM,0BAA0B,YAAYA,cAAAA,KAAK,aAAa,eAAe,EAAE,eAAe,MAAM,CAAC;AAKrG,MAAa,mBAAA,GAAA,MAAA,aACV,EAAE,KAAK,UAAU,EAAE,EAAE,SAAS,GAAG,SAAS,QACzC,iBAAA,GAAA,kBAAA,KAAC,yBAAD;CACE,KAAK,CAAC,QAAQ,IAAI,EAAE,SAAS,CAAC,EAAE,GAAI,MAAM,QAAQ,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAE;CAClF,GAAI;CACC;CACL,CAAA,CAEL;AAED,MAAa,cAAc,YAAYA,cAAAA,KAAK,SAAS,WAAW,EAAE,eAAe,MAAM,CAAC;AAExF,MAAa,gBAAgB,YAAYA,cAAAA,KAAK,WAAW,aAAa,EAAE,eAAe,MAAM,CAAC;AAE9F,MAAa,eAAe,YAAYA,cAAAA,KAAK,UAAU,YAAY,EAAE,eAAe,MAAM,CAAC"}
package/lib/MessageBox.js CHANGED
@@ -3,7 +3,6 @@ let _ndla_styled_system_css = require("@ndla/styled-system/css");
3
3
  let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
4
4
  let react_jsx_runtime = require("react/jsx-runtime");
5
5
  let react = require("react");
6
-
7
6
  //#region src/MessageBox.tsx
8
7
  /**
9
8
  * Copyright (c) 2024-present, NDLA.
@@ -47,7 +46,7 @@ const MessageBox = (0, react.forwardRef)(({ variant, css: cssProp, ...props }, r
47
46
  ...props,
48
47
  ref
49
48
  }));
50
-
51
49
  //#endregion
52
50
  exports.MessageBox = MessageBox;
51
+
53
52
  //# sourceMappingURL=MessageBox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageBox.js","names":["ark","css"],"sources":["../src/MessageBox.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { type HTMLArkProps, ark } from \"@ark-ui/react\";\nimport { css, cva } from \"@ndla/styled-system/css\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps, RecipeVariantProps } from \"@ndla/styled-system/types\";\nimport { forwardRef } from \"react\";\n\nconst messageBoxRecipe = cva({\n base: {\n display: \"flex\",\n alignItems: \"flex-start\",\n gap: \"small\",\n padding: \"medium\",\n border: \"1px solid\",\n borderRadius: \"xsmall\",\n },\n defaultVariants: {\n variant: \"info\",\n },\n variants: {\n variant: {\n info: {\n background: \"surface.infoSubtle\",\n borderColor: \"stroke.subtle\",\n },\n warning: {\n background: \"surface.warningSubtle\",\n borderColor: \"stroke.warning\",\n },\n success: {\n background: \"surface.successSubtle\",\n borderColor: \"stroke.success\",\n },\n error: {\n background: \"surface.errorSubtle\",\n borderColor: \"stroke.error\",\n },\n },\n },\n});\n\nexport type MessageBoxVariantProps = NonNullable<RecipeVariantProps<typeof messageBoxRecipe>>;\n\nexport interface MessageBoxProps extends HTMLArkProps<\"div\">, StyledProps, MessageBoxVariantProps {}\n\nconst StyledMessageBox = styled(ark.div, {}, { baseComponent: true });\n\nexport const MessageBox = forwardRef<HTMLDivElement, MessageBoxProps>(({ variant, css: cssProp, ...props }, ref) => (\n <StyledMessageBox css={css.raw(messageBoxRecipe.raw({ variant }), cssProp)} {...props} ref={ref} />\n));\n"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,oDAAuB;CAC3B,MAAM;EACJ,SAAS;EACT,YAAY;EACZ,KAAK;EACL,SAAS;EACT,QAAQ;EACR,cAAc;EACf;CACD,iBAAiB,EACf,SAAS,QACV;CACD,UAAU,EACR,SAAS;EACP,MAAM;GACJ,YAAY;GACZ,aAAa;GACd;EACD,SAAS;GACP,YAAY;GACZ,aAAa;GACd;EACD,SAAS;GACP,YAAY;GACZ,aAAa;GACd;EACD,OAAO;GACL,YAAY;GACZ,aAAa;GACd;EACF,EACF;CACF,CAAC;AAMF,MAAM,uDAA0BA,kBAAI,KAAK,EAAE,EAAE,EAAE,eAAe,MAAM,CAAC;AAErE,MAAa,oCAA0D,EAAE,SAAS,KAAK,SAAS,GAAG,SAAS,QAC1G,2CAAC;CAAiB,KAAKC,4BAAI,IAAI,iBAAiB,IAAI,EAAE,SAAS,CAAC,EAAE,QAAQ;CAAE,GAAI;CAAY;EAAO,CACnG"}
1
+ {"version":3,"file":"MessageBox.js","names":["ark","css"],"sources":["../src/MessageBox.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { type HTMLArkProps, ark } from \"@ark-ui/react\";\nimport { css, cva } from \"@ndla/styled-system/css\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps, RecipeVariantProps } from \"@ndla/styled-system/types\";\nimport { forwardRef } from \"react\";\n\nconst messageBoxRecipe = cva({\n base: {\n display: \"flex\",\n alignItems: \"flex-start\",\n gap: \"small\",\n padding: \"medium\",\n border: \"1px solid\",\n borderRadius: \"xsmall\",\n },\n defaultVariants: {\n variant: \"info\",\n },\n variants: {\n variant: {\n info: {\n background: \"surface.infoSubtle\",\n borderColor: \"stroke.subtle\",\n },\n warning: {\n background: \"surface.warningSubtle\",\n borderColor: \"stroke.warning\",\n },\n success: {\n background: \"surface.successSubtle\",\n borderColor: \"stroke.success\",\n },\n error: {\n background: \"surface.errorSubtle\",\n borderColor: \"stroke.error\",\n },\n },\n },\n});\n\nexport type MessageBoxVariantProps = NonNullable<RecipeVariantProps<typeof messageBoxRecipe>>;\n\nexport interface MessageBoxProps extends HTMLArkProps<\"div\">, StyledProps, MessageBoxVariantProps {}\n\nconst StyledMessageBox = styled(ark.div, {}, { baseComponent: true });\n\nexport const MessageBox = forwardRef<HTMLDivElement, MessageBoxProps>(({ variant, css: cssProp, ...props }, ref) => (\n <StyledMessageBox css={css.raw(messageBoxRecipe.raw({ variant }), cssProp)} {...props} ref={ref} />\n));\n"],"mappings":";;;;;;;;;;;;;AAcA,MAAM,oBAAA,GAAA,wBAAA,KAAuB;CAC3B,MAAM;EACJ,SAAS;EACT,YAAY;EACZ,KAAK;EACL,SAAS;EACT,QAAQ;EACR,cAAc;EACf;CACD,iBAAiB,EACf,SAAS,QACV;CACD,UAAU,EACR,SAAS;EACP,MAAM;GACJ,YAAY;GACZ,aAAa;GACd;EACD,SAAS;GACP,YAAY;GACZ,aAAa;GACd;EACD,SAAS;GACP,YAAY;GACZ,aAAa;GACd;EACD,OAAO;GACL,YAAY;GACZ,aAAa;GACd;EACF,EACF;CACF,CAAC;AAMF,MAAM,oBAAA,GAAA,wBAAA,QAA0BA,cAAAA,IAAI,KAAK,EAAE,EAAE,EAAE,eAAe,MAAM,CAAC;AAErE,MAAa,cAAA,GAAA,MAAA,aAA0D,EAAE,SAAS,KAAK,SAAS,GAAG,SAAS,QAC1G,iBAAA,GAAA,kBAAA,KAAC,kBAAD;CAAkB,KAAKC,wBAAAA,IAAI,IAAI,iBAAiB,IAAI,EAAE,SAAS,CAAC,EAAE,QAAQ;CAAE,GAAI;CAAY;CAAO,CAAA,CACnG"}
package/lib/NdlaLogo.js CHANGED
@@ -1,8 +1,7 @@
1
1
  let _ndla_styled_system_css = require("@ndla/styled-system/css");
2
2
  let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
3
3
  let react_jsx_runtime = require("react/jsx-runtime");
4
- let react = require("react");
5
-
4
+ require("react");
6
5
  //#region src/NdlaLogo.tsx
7
6
  /**
8
7
  * Copyright (c) 2024-present, NDLA.
@@ -206,9 +205,9 @@ const NdlaLogoText = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BaseS
206
205
  ]
207
206
  })
208
207
  });
209
-
210
208
  //#endregion
211
209
  exports.NdlaLogoEn = NdlaLogoEn;
212
210
  exports.NdlaLogoNb = NdlaLogoNb;
213
211
  exports.NdlaLogoText = NdlaLogoText;
212
+
214
213
  //# sourceMappingURL=NdlaLogo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NdlaLogo.js","names":["styled","css"],"sources":["../src/NdlaLogo.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { css } from \"@ndla/styled-system/css\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { ColorToken } from \"@ndla/styled-system/tokens\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\nimport { type ComponentPropsWithoutRef } from \"react\";\n\nexport interface LogoProps extends Omit<ComponentPropsWithoutRef<\"svg\">, \"color\">, StyledProps {\n color?: ColorToken;\n}\n\nconst BaseSvg = ({ color = \"primary\", \"aria-hidden\": ariaHidden = true, css: cssProp, ...props }: LogoProps) => (\n <styled.svg\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden={ariaHidden}\n css={css.raw({ color }, cssProp)}\n {...props}\n />\n);\n\nexport const NdlaLogoEn = (props: LogoProps) => (\n <BaseSvg width={163} height={383} viewBox=\"0 0 260.46 612.26\" {...props}>\n <g fill=\"currentColor\">\n <g>\n <rect width=\"52\" height=\"280\" />\n <polygon points=\"97.15 39.5 52 66 191 279.77 191.12 280 260 280 260 0 207.73 0 207.73 209.54 97.15 39.5\" />\n </g>\n <g>\n <path d=\"M5.26,363.02H1.21v-30.08h4.05l16.4,24.96h-1.12v-24.96h4.05v30.08h-4.05l-16.4-24.96h1.12v24.96Z\" />\n <path d=\"M29.35,352.83c0-2.08.45-3.92,1.36-5.53.91-1.61,2.16-2.87,3.74-3.79,1.58-.92,3.39-1.37,5.43-1.37s3.84.46,5.41,1.37c1.57.92,2.81,2.18,3.72,3.79.91,1.61,1.36,3.45,1.36,5.53s-.45,3.92-1.36,5.53c-.91,1.61-2.15,2.87-3.72,3.79-1.57.92-3.37,1.37-5.41,1.37s-3.85-.46-5.43-1.37c-1.58-.92-2.83-2.18-3.74-3.79-.91-1.61-1.36-3.45-1.36-5.53ZM33.27,352.83c0,1.42.28,2.66.85,3.74.56,1.08,1.34,1.93,2.33,2.54s2.13.92,3.43.92,2.44-.3,3.43-.92,1.77-1.46,2.33-2.54c.56-1.08.85-2.33.85-3.74s-.28-2.7-.85-3.76c-.56-1.07-1.34-1.91-2.33-2.52-.99-.61-2.13-.92-3.43-.92s-2.44.31-3.43.92c-.99.61-1.77,1.45-2.33,2.52-.56,1.07-.85,2.32-.85,3.76Z\" />\n <path d=\"M66.03,342.51v3.58h-1.74c-1.85,0-3.3.54-4.36,1.6-1.06,1.07-1.59,2.59-1.59,4.56v10.77h-3.88v-20.3h3.64l.33,4.08h-.37c.28-1.33.94-2.42,1.98-3.27,1.05-.85,2.35-1.27,3.92-1.27.36,0,.7.02,1.01.06.32.04.67.1,1.05.19Z\" />\n <path d=\"M74.42,363.02l-6.61-20.34h4.01l3.35,10.57c.25.75.47,1.52.66,2.31.19.79.39,1.63.58,2.52.11-.61.24-1.2.39-1.77.15-.57.31-1.11.48-1.62.17-.51.32-.99.45-1.44l3.39-10.57h3.97l3.35,10.57c.11.25.21.58.31.98.1.4.21.83.35,1.27.14.44.26.89.37,1.33.11.44.21.86.29,1.25.11-.55.23-1.09.35-1.6.12-.51.26-1.03.41-1.54.15-.51.32-1.08.52-1.69l3.39-10.57h4.05l-6.9,20.34h-3.68l-3.51-10.9c-.33-1.03-.6-1.93-.81-2.72s-.37-1.46-.48-2.02c-.11.5-.27,1.12-.48,1.85-.21.73-.49,1.71-.85,2.93l-3.51,10.86h-3.84Z\" />\n <path d=\"M109.42,363.52c-1.96,0-3.69-.45-5.21-1.35-1.52-.9-2.7-2.15-3.55-3.74-.85-1.59-1.28-3.45-1.28-5.55s.42-4.01,1.26-5.62c.84-1.61,2-2.87,3.47-3.79,1.47-.92,3.19-1.37,5.14-1.37s3.6.42,5.02,1.25c1.42.83,2.52,2,3.31,3.49.79,1.5,1.18,3.26,1.18,5.28v1.46l-17.31.04.08-2.62h13.35c0-1.69-.51-3.05-1.53-4.08-1.02-1.03-2.38-1.54-4.09-1.54-1.29,0-2.4.29-3.33.85-.92.57-1.63,1.4-2.11,2.5-.48,1.1-.72,2.41-.72,3.93,0,2.44.55,4.32,1.65,5.64,1.1,1.32,2.69,1.98,4.75,1.98,1.51,0,2.75-.31,3.72-.92.96-.61,1.61-1.5,1.94-2.66h3.64c-.5,2.16-1.56,3.84-3.18,5.03-1.63,1.19-3.69,1.79-6.2,1.79Z\" />\n <path d=\"M121.6,352.33c0-1.91.39-3.64,1.16-5.18.77-1.54,1.87-2.77,3.31-3.68,1.43-.92,3.13-1.37,5.08-1.37,1.82,0,3.37.44,4.67,1.31,1.29.87,2.22,2.09,2.77,3.64l-.5.54.41-4.91h3.47v19.51c0,2.14-.41,3.99-1.24,5.55-.83,1.57-2,2.78-3.51,3.64-1.52.86-3.31,1.29-5.37,1.29-2.75,0-5.01-.74-6.78-2.21s-2.84-3.49-3.22-6.07h3.88c.25,1.5.91,2.66,1.98,3.49s2.45,1.25,4.13,1.25c1.9,0,3.42-.58,4.57-1.73,1.14-1.15,1.71-2.7,1.71-4.64v-5.74l.5.54c-.52,1.53-1.47,2.72-2.85,3.6-1.38.87-2.98,1.31-4.79,1.31-1.93,0-3.59-.45-5-1.35s-2.49-2.11-3.24-3.64c-.76-1.52-1.14-3.24-1.14-5.16ZM125.49,352.25c0,1.28.25,2.43.76,3.45.51,1.03,1.23,1.84,2.15,2.45.92.61,2,.92,3.24.92,1.32,0,2.45-.29,3.39-.87.94-.58,1.66-1.39,2.17-2.41.51-1.03.76-2.21.76-3.54s-.25-2.5-.74-3.49c-.5-1-1.21-1.79-2.15-2.37-.94-.58-2.07-.87-3.39-.87s-2.4.31-3.33.92c-.92.61-1.63,1.42-2.13,2.43-.5,1.01-.74,2.14-.74,3.39Z\" />\n <path d=\"M149.28,337.85c-.69,0-1.29-.26-1.8-.77-.51-.51-.76-1.12-.76-1.81s.25-1.33.76-1.83c.51-.5,1.11-.75,1.8-.75s1.32.25,1.82.75c.5.5.74,1.11.74,1.83s-.25,1.3-.74,1.81c-.5.51-1.1.77-1.82.77ZM147.38,363.02v-20.34h3.88v20.34h-3.88Z\" />\n <path d=\"M162.59,363.52c-2.15,0-3.84-.57-5.06-1.71s-1.84-2.62-1.84-4.45.66-3.35,1.98-4.47c1.32-1.12,3.17-1.78,5.54-1.98l6.36-.5v-.58c0-1.14-.21-2.04-.62-2.72-.41-.68-.98-1.17-1.69-1.46-.72-.29-1.53-.44-2.44-.44-1.63,0-2.89.34-3.78,1.02-.9.68-1.34,1.64-1.34,2.89h-3.39c0-1.41.36-2.65,1.07-3.7.72-1.05,1.73-1.87,3.04-2.45,1.31-.58,2.83-.87,4.57-.87s3.15.3,4.4.89c1.25.6,2.23,1.5,2.93,2.7.7,1.21,1.05,2.72,1.05,4.55v12.77h-3.31l-.41-3.29c-.52,1.16-1.43,2.09-2.71,2.77-1.28.68-2.73,1.02-4.36,1.02ZM163.7,360.48c1.85,0,3.29-.56,4.34-1.68,1.05-1.12,1.57-2.64,1.57-4.55v-1.08l-5.16.42c-1.71.17-2.94.57-3.7,1.21-.76.64-1.14,1.46-1.14,2.45,0,1.08.36,1.89,1.1,2.43.73.54,1.73.81,3,.81Z\" />\n <path d=\"M182.42,363.02h-3.88v-20.34h3.51l.41,3.12c.63-1.16,1.55-2.07,2.75-2.72,1.2-.65,2.51-.98,3.95-.98,2.64,0,4.6.76,5.87,2.29,1.27,1.53,1.9,3.59,1.9,6.2v12.44h-3.88v-11.56c0-2.05-.44-3.53-1.32-4.43-.88-.9-2.07-1.35-3.55-1.35-1.82,0-3.23.6-4.23,1.79-1.01,1.19-1.51,2.79-1.51,4.78v10.77Z\" />\n </g>\n <g>\n <path d=\"M10.62,466.02c-1.95,0-3.63-.45-5.03-1.35-1.4-.9-2.48-2.16-3.24-3.76-.76-1.61-1.13-3.44-1.13-5.49s.38-3.93,1.15-5.55c.77-1.62,1.87-2.91,3.3-3.85,1.43-.94,3.13-1.41,5.11-1.41,1.57,0,2.96.33,4.18.98,1.22.65,2.18,1.62,2.87,2.89v-13.56h3.83v30.62h-3.46l-.33-3.7c-.66,1.36-1.63,2.4-2.91,3.12-1.28.72-2.73,1.08-4.35,1.08ZM11.4,462.48c1.32,0,2.45-.3,3.4-.92.95-.61,1.68-1.46,2.21-2.54.52-1.08.78-2.33.78-3.74s-.26-2.66-.78-3.72c-.52-1.07-1.26-1.91-2.21-2.52-.95-.61-2.08-.92-3.4-.92s-2.45.31-3.38.94c-.93.62-1.65,1.47-2.14,2.54s-.74,2.29-.74,3.68.25,2.66.74,3.74c.49,1.08,1.21,1.93,2.14,2.54.93.61,2.06.92,3.38.92Z\" />\n <path d=\"M28.96,440.35c-.69,0-1.29-.26-1.79-.77-.51-.51-.76-1.12-.76-1.81s.25-1.33.76-1.83c.51-.5,1.11-.75,1.79-.75s1.32.25,1.81.75c.49.5.74,1.11.74,1.83s-.25,1.3-.74,1.81c-.49.51-1.1.77-1.81.77ZM27.07,465.52v-20.34h3.88v20.34h-3.88Z\" />\n <path d=\"M35.06,454.83c0-1.91.38-3.64,1.15-5.18.77-1.54,1.87-2.77,3.3-3.68,1.43-.92,3.12-1.37,5.07-1.37,1.81,0,3.37.44,4.66,1.31,1.29.87,2.21,2.09,2.76,3.64l-.49.54.41-4.91h3.46v19.51c0,2.14-.41,3.99-1.24,5.55-.82,1.57-1.99,2.78-3.5,3.64-1.51.86-3.3,1.29-5.36,1.29-2.75,0-5-.74-6.76-2.21-1.76-1.47-2.83-3.49-3.22-6.07h3.87c.25,1.5.91,2.66,1.98,3.49s2.45,1.25,4.12,1.25c1.9,0,3.41-.58,4.55-1.73,1.14-1.15,1.71-2.7,1.71-4.64v-5.74l.49.54c-.52,1.53-1.47,2.72-2.84,3.6-1.37.87-2.97,1.31-4.78,1.31-1.92,0-3.59-.45-4.99-1.35s-2.48-2.11-3.24-3.64c-.76-1.52-1.13-3.24-1.13-5.16ZM38.94,454.75c0,1.28.25,2.43.76,3.45.51,1.03,1.22,1.84,2.14,2.45.92.61,2,.92,3.24.92,1.32,0,2.45-.29,3.38-.87.93-.58,1.66-1.39,2.16-2.41.51-1.03.76-2.21.76-3.54s-.25-2.5-.74-3.49c-.5-1-1.21-1.79-2.14-2.37-.93-.58-2.06-.87-3.38-.87s-2.4.31-3.32.92c-.92.61-1.63,1.42-2.12,2.43-.49,1.01-.74,2.14-.74,3.39Z\" />\n <path d=\"M62.68,440.35c-.69,0-1.29-.26-1.79-.77-.51-.51-.76-1.12-.76-1.81s.25-1.33.76-1.83c.51-.5,1.11-.75,1.79-.75s1.32.25,1.81.75c.49.5.74,1.11.74,1.83s-.25,1.3-.74,1.81c-.49.51-1.1.77-1.81.77ZM60.78,465.52v-20.34h3.88v20.34h-3.88Z\" />\n <path d=\"M67.92,445.18h11.71v3.29h-11.71v-3.29ZM79.46,462.11l.49,3.25c-1.04.42-2.16.62-3.34.62s-2.18-.23-3.01-.69c-.82-.46-1.46-1.14-1.9-2.06-.44-.92-.66-2.05-.66-3.41v-21.01h3.88v20.47c0,1.17.24,1.99.72,2.48.48.49,1.11.73,1.88.73.6,0,1.25-.12,1.94-.37Z\" />\n <path d=\"M89.39,466.02c-2.14,0-3.83-.57-5.05-1.71-1.22-1.14-1.83-2.62-1.83-4.45s.66-3.35,1.98-4.47c1.32-1.12,3.16-1.78,5.52-1.98l6.35-.5v-.58c0-1.14-.21-2.04-.62-2.72-.41-.68-.98-1.17-1.69-1.46-.71-.29-1.52-.44-2.43-.44-1.62,0-2.88.34-3.77,1.02-.89.68-1.34,1.64-1.34,2.89h-3.38c0-1.41.36-2.65,1.07-3.7.71-1.05,1.72-1.87,3.03-2.45,1.31-.58,2.82-.87,4.55-.87s3.14.3,4.39.89c1.25.6,2.23,1.5,2.93,2.7.7,1.21,1.05,2.72,1.05,4.55v12.77h-3.3l-.41-3.29c-.52,1.16-1.42,2.09-2.7,2.77-1.28.68-2.73,1.02-4.35,1.02ZM90.5,462.98c1.84,0,3.28-.56,4.33-1.68s1.57-2.64,1.57-4.55v-1.08l-5.15.42c-1.7.17-2.93.57-3.69,1.21-.76.64-1.13,1.46-1.13,2.45,0,1.08.36,1.89,1.09,2.43.73.54,1.72.81,2.99.81Z\" />\n <path d=\"M109.26,465.52h-3.88v-30.62h3.88v30.62Z\" />\n </g>\n <g>\n <path d=\"M5.5,563.52H1.62v-30.62h3.88v30.62Z\" />\n <path d=\"M19.68,564.02c-1.95,0-3.68-.45-5.19-1.35-1.51-.9-2.69-2.15-3.54-3.74-.85-1.59-1.28-3.45-1.28-5.55s.42-4.01,1.26-5.62c.84-1.61,1.99-2.87,3.46-3.79,1.47-.92,3.18-1.37,5.13-1.37s3.59.42,5.01,1.25c1.42.83,2.51,2,3.3,3.49.78,1.5,1.17,3.26,1.17,5.28v1.46l-17.27.04.08-2.62h13.31c0-1.69-.51-3.05-1.53-4.08-1.02-1.03-2.38-1.54-4.08-1.54-1.29,0-2.4.29-3.32.85-.92.57-1.62,1.4-2.1,2.5-.48,1.1-.72,2.41-.72,3.93,0,2.44.55,4.32,1.65,5.64,1.1,1.32,2.68,1.98,4.74,1.98,1.51,0,2.75-.31,3.71-.92.96-.61,1.61-1.5,1.94-2.66h3.63c-.49,2.16-1.55,3.84-3.17,5.03-1.62,1.19-3.68,1.79-6.18,1.79Z\" />\n <path d=\"M38.8,564.02c-2.14,0-3.83-.57-5.05-1.71-1.22-1.14-1.83-2.62-1.83-4.45s.66-3.35,1.98-4.47c1.32-1.12,3.16-1.78,5.52-1.98l6.35-.5v-.58c0-1.14-.21-2.04-.62-2.72-.41-.68-.98-1.17-1.69-1.46-.71-.29-1.52-.44-2.43-.44-1.62,0-2.88.34-3.77,1.02-.89.68-1.34,1.64-1.34,2.89h-3.38c0-1.41.36-2.65,1.07-3.7.71-1.05,1.72-1.87,3.03-2.45,1.31-.58,2.82-.87,4.55-.87s3.14.3,4.39.89c1.25.6,2.23,1.5,2.93,2.7.7,1.21,1.05,2.72,1.05,4.55v12.77h-3.3l-.41-3.29c-.52,1.16-1.42,2.09-2.7,2.77-1.28.68-2.73,1.02-4.35,1.02ZM39.92,560.98c1.84,0,3.28-.56,4.33-1.68s1.57-2.64,1.57-4.55v-1.08l-5.15.42c-1.7.17-2.93.57-3.69,1.21-.76.64-1.13,1.46-1.13,2.45,0,1.08.36,1.89,1.09,2.43.73.54,1.72.81,2.99.81Z\" />\n <path d=\"M66.26,543.01v3.58h-1.73c-1.84,0-3.29.54-4.35,1.6-1.06,1.07-1.59,2.59-1.59,4.56v10.77h-3.88v-20.3h3.63l.33,4.08h-.37c.27-1.33.93-2.42,1.98-3.27,1.04-.85,2.35-1.27,3.92-1.27.36,0,.69.02,1.01.06.32.04.67.1,1.05.19Z\" />\n <path d=\"M73.55,563.52h-3.88v-20.34h3.5l.41,3.12c.63-1.16,1.55-2.07,2.74-2.72,1.2-.65,2.51-.98,3.94-.98,2.64,0,4.59.76,5.85,2.29,1.26,1.53,1.9,3.59,1.9,6.2v12.44h-3.87v-11.56c0-2.05-.44-3.53-1.32-4.43-.88-.9-2.06-1.35-3.54-1.35-1.81,0-3.22.6-4.23,1.79-1,1.19-1.5,2.79-1.5,4.78v10.77Z\" />\n <path d=\"M95.07,538.35c-.69,0-1.29-.26-1.79-.77-.51-.51-.76-1.12-.76-1.81s.25-1.33.76-1.83c.51-.5,1.11-.75,1.79-.75s1.32.25,1.81.75c.49.5.74,1.11.74,1.83s-.25,1.3-.74,1.81c-.49.51-1.1.77-1.81.77ZM93.17,563.52v-20.34h3.88v20.34h-3.88Z\" />\n <path d=\"M106.32,563.52h-3.88v-20.34h3.5l.41,3.12c.63-1.16,1.55-2.07,2.74-2.72,1.2-.65,2.51-.98,3.94-.98,2.64,0,4.59.76,5.85,2.29,1.26,1.53,1.9,3.59,1.9,6.2v12.44h-3.87v-11.56c0-2.05-.44-3.53-1.32-4.43-.88-.9-2.06-1.35-3.54-1.35-1.81,0-3.22.6-4.23,1.79-1,1.19-1.5,2.79-1.5,4.78v10.77Z\" />\n <path d=\"M124.66,552.83c0-1.91.38-3.64,1.15-5.18.77-1.54,1.87-2.77,3.3-3.68,1.43-.92,3.12-1.37,5.07-1.37,1.81,0,3.37.44,4.66,1.31,1.29.87,2.21,2.09,2.76,3.64l-.49.54.41-4.91h3.46v19.51c0,2.14-.41,3.99-1.24,5.55-.82,1.57-1.99,2.78-3.5,3.64-1.51.86-3.3,1.29-5.36,1.29-2.75,0-5-.74-6.76-2.21-1.76-1.47-2.83-3.49-3.22-6.07h3.87c.25,1.5.91,2.66,1.98,3.49s2.45,1.25,4.12,1.25c1.9,0,3.41-.58,4.55-1.73,1.14-1.15,1.71-2.7,1.71-4.64v-5.74l.49.54c-.52,1.53-1.47,2.72-2.84,3.6-1.37.87-2.97,1.31-4.78,1.31-1.92,0-3.59-.45-4.99-1.35s-2.48-2.11-3.24-3.64c-.76-1.52-1.13-3.24-1.13-5.16ZM128.54,552.75c0,1.28.25,2.43.76,3.45.51,1.03,1.22,1.84,2.14,2.45.92.61,2,.92,3.24.92,1.32,0,2.45-.29,3.38-.87.93-.58,1.66-1.39,2.16-2.41.51-1.03.76-2.21.76-3.54s-.25-2.5-.74-3.49c-.5-1-1.21-1.79-2.14-2.37-.93-.58-2.06-.87-3.38-.87s-2.4.31-3.32.92c-.92.61-1.63,1.42-2.12,2.43-.49,1.01-.74,2.14-.74,3.39Z\" />\n <path d=\"M167.33,564.02c-2.14,0-3.83-.57-5.05-1.71-1.22-1.14-1.83-2.62-1.83-4.45s.66-3.35,1.98-4.47c1.32-1.12,3.16-1.78,5.52-1.98l6.35-.5v-.58c0-1.14-.21-2.04-.62-2.72-.41-.68-.98-1.17-1.69-1.46-.71-.29-1.52-.44-2.43-.44-1.62,0-2.88.34-3.77,1.02-.89.68-1.34,1.64-1.34,2.89h-3.38c0-1.41.36-2.65,1.07-3.7.71-1.05,1.72-1.87,3.03-2.45,1.31-.58,2.82-.87,4.55-.87s3.14.3,4.39.89c1.25.6,2.23,1.5,2.93,2.7.7,1.21,1.05,2.72,1.05,4.55v12.77h-3.3l-.41-3.29c-.52,1.16-1.42,2.09-2.7,2.77-1.28.68-2.73,1.02-4.35,1.02ZM168.44,560.98c1.84,0,3.28-.56,4.33-1.68s1.57-2.64,1.57-4.55v-1.08l-5.15.42c-1.7.17-2.93.57-3.69,1.21-.76.64-1.13,1.46-1.13,2.45,0,1.08.36,1.89,1.09,2.43.73.54,1.72.81,2.99.81Z\" />\n <path d=\"M194.78,543.01v3.58h-1.73c-1.84,0-3.29.54-4.35,1.6-1.06,1.07-1.59,2.59-1.59,4.56v10.77h-3.88v-20.3h3.63l.33,4.08h-.37c.27-1.33.93-2.42,1.98-3.27,1.04-.85,2.35-1.27,3.92-1.27.36,0,.69.02,1.01.06.32.04.67.1,1.05.19Z\" />\n <path d=\"M206.16,564.02c-1.95,0-3.68-.45-5.19-1.35-1.51-.9-2.69-2.15-3.54-3.74-.85-1.59-1.28-3.45-1.28-5.55s.42-4.01,1.26-5.62c.84-1.61,1.99-2.87,3.46-3.79,1.47-.92,3.18-1.37,5.13-1.37s3.59.42,5.01,1.25c1.42.83,2.51,2,3.3,3.49.78,1.5,1.17,3.26,1.17,5.28v1.46l-17.27.04.08-2.62h13.31c0-1.69-.51-3.05-1.53-4.08-1.02-1.03-2.38-1.54-4.08-1.54-1.29,0-2.4.29-3.32.85-.92.57-1.62,1.4-2.1,2.5-.48,1.1-.72,2.41-.72,3.93,0,2.44.55,4.32,1.65,5.64,1.1,1.32,2.68,1.98,4.74,1.98,1.51,0,2.75-.31,3.71-.92.96-.61,1.61-1.5,1.94-2.66h3.63c-.49,2.16-1.55,3.84-3.17,5.03-1.62,1.19-3.68,1.79-6.18,1.79Z\" />\n <path d=\"M223.47,563.52h-3.88v-20.34h3.5l.41,3.12c.63-1.16,1.55-2.07,2.74-2.72,1.2-.65,2.51-.98,3.94-.98,2.64,0,4.59.76,5.85,2.29,1.26,1.53,1.9,3.59,1.9,6.2v12.44h-3.87v-11.56c0-2.05-.44-3.53-1.32-4.43-.88-.9-2.06-1.35-3.54-1.35-1.81,0-3.22.6-4.23,1.79-1,1.19-1.5,2.79-1.5,4.78v10.77Z\" />\n <path d=\"M248.98,564.02c-2.14,0-3.83-.57-5.05-1.71-1.22-1.14-1.83-2.62-1.83-4.45s.66-3.35,1.98-4.47c1.32-1.12,3.16-1.78,5.52-1.98l6.35-.5v-.58c0-1.14-.21-2.04-.62-2.72-.41-.68-.98-1.17-1.69-1.46-.71-.29-1.52-.44-2.43-.44-1.62,0-2.88.34-3.77,1.02-.89.68-1.34,1.64-1.34,2.89h-3.38c0-1.41.36-2.65,1.07-3.7.71-1.05,1.72-1.87,3.03-2.45,1.31-.58,2.82-.87,4.55-.87s3.14.3,4.39.89c1.25.6,2.23,1.5,2.93,2.7.7,1.21,1.05,2.72,1.05,4.55v12.77h-3.3l-.41-3.29c-.52,1.16-1.42,2.09-2.7,2.77-1.28.68-2.73,1.02-4.35,1.02ZM250.1,560.98c1.84,0,3.28-.56,4.33-1.68s1.57-2.64,1.57-4.55v-1.08l-5.15.42c-1.7.17-2.93.57-3.69,1.21-.76.64-1.13,1.46-1.13,2.45,0,1.08.36,1.89,1.09,2.43.73.54,1.72.81,2.99.81Z\" />\n </g>\n <g>\n <line x1=\".85\" y1=\"407.89\" x2=\"260.16\" y2=\"389.76\" />\n <rect x=\".53\" y=\"394.48\" width=\"259.94\" height=\"8.7\" transform=\"translate(-27.48 10.07) rotate(-4)\" />\n </g>\n <g>\n <line x1=\".85\" y1=\"607.92\" x2=\"260.16\" y2=\"589.79\" />\n <rect x=\".53\" y=\"594.51\" width=\"259.94\" height=\"8.7\" transform=\"translate(-41.42 10.55) rotate(-4)\" />\n </g>\n <g>\n <line x1=\".5\" y1=\"497.25\" x2=\"259.81\" y2=\"515.38\" />\n <rect x=\"125.8\" y=\"376.35\" width=\"8.7\" height=\"259.94\" transform=\"translate(-384.01 600.83) rotate(-86)\" />\n </g>\n </g>\n </BaseSvg>\n);\n\nexport const NdlaLogoNb = (props: LogoProps) => (\n <BaseSvg width={163} height={383} viewBox=\"0 0 260.29 611.89\" {...props}>\n <g fill=\"currentColor\">\n <g>\n <rect x=\".29\" width=\"52\" height=\"280\" />\n <polygon points=\"97.44 39.5 52.29 66 191.29 279.77 191.41 280 260.29 280 260.29 0 208.02 0 208.02 209.54 97.44 39.5\" />\n </g>\n <g>\n <g>\n <path d=\"M5.77,365.65H1.34v-32.9h4.43l17.94,27.3h-1.22v-27.3h4.43v32.9h-4.43l-17.94-27.3h1.22v27.3Z\" />\n <path d=\"M40.02,366.2c-2.35,0-4.2-.62-5.54-1.87-1.34-1.24-2.01-2.87-2.01-4.87s.72-3.66,2.17-4.89c1.45-1.23,3.46-1.95,6.06-2.16l6.96-.55v-.64c0-1.24-.23-2.24-.68-2.98-.45-.74-1.07-1.27-1.85-1.59-.78-.32-1.67-.48-2.67-.48-1.78,0-3.16.37-4.13,1.11-.98.74-1.47,1.8-1.47,3.16h-3.71c0-1.55.39-2.9,1.18-4.05.78-1.15,1.89-2.05,3.32-2.68,1.43-.64,3.1-.96,4.99-.96s3.44.33,4.81.98c1.37.65,2.44,1.64,3.21,2.96.77,1.32,1.15,2.98,1.15,4.98v13.97h-3.61l-.45-3.59c-.57,1.27-1.56,2.28-2.96,3.03-1.4.74-2.99,1.11-4.77,1.11ZM41.24,362.87c2.02,0,3.6-.61,4.75-1.84,1.14-1.23,1.72-2.89,1.72-4.98v-1.18l-5.65.46c-1.87.18-3.22.62-4.04,1.32-.83.7-1.24,1.59-1.24,2.68,0,1.18.4,2.07,1.2,2.66.8.59,1.89.89,3.28.89Z\" />\n <path d=\"M55.66,359.19h4.07c0,1.12.41,2.01,1.22,2.66.81.65,1.91.98,3.3.98,1.51,0,2.67-.3,3.48-.89.81-.59,1.22-1.39,1.22-2.39,0-.73-.22-1.33-.66-1.82-.44-.49-1.23-.88-2.37-1.18l-3.89-.91c-1.96-.49-3.41-1.23-4.36-2.23-.95-1-1.42-2.32-1.42-3.96,0-1.37.35-2.55,1.06-3.55.71-1,1.69-1.77,2.94-2.32,1.25-.55,2.69-.82,4.32-.82s3.03.29,4.23.86c1.19.58,2.12,1.38,2.8,2.41.68,1.03,1.03,2.26,1.06,3.69h-4.07c-.03-1.15-.41-2.05-1.13-2.68s-1.73-.96-3.03-.96-2.35.29-3.07.87c-.72.58-1.08,1.36-1.08,2.37,0,1.49,1.08,2.5,3.25,3.05l3.89.96c1.87.42,3.27,1.11,4.2,2.07.93.96,1.4,2.25,1.4,3.89,0,1.4-.38,2.62-1.13,3.66-.75,1.05-1.79,1.85-3.1,2.41-1.31.56-2.85.84-4.63.84-2.59,0-4.65-.64-6.19-1.91-1.54-1.27-2.3-2.97-2.3-5.1Z\" />\n <path d=\"M71.88,375.75l.72-3.87c.42.12.78.21,1.08.25.3.05.62.07.95.07,1.02,0,1.75-.3,2.19-.91.44-.61.66-1.53.66-2.78v-25.12h4.25v25.53c0,2.21-.59,3.97-1.76,5.28-1.17,1.3-2.83,1.96-4.97,1.96-.54,0-1.04-.03-1.49-.09-.45-.06-.99-.17-1.63-.32ZM79.61,338.12c-.78,0-1.45-.28-1.99-.84-.54-.56-.81-1.22-.81-1.98s.27-1.46.81-2c.54-.55,1.2-.82,1.99-.82s1.41.27,1.97.82c.56.55.84,1.21.84,2s-.28,1.42-.84,1.98c-.56.56-1.21.84-1.97.84Z\" />\n <path d=\"M86.2,354.5c0-2.28.5-4.29,1.49-6.05.99-1.76,2.36-3.14,4.09-4.14s3.71-1.5,5.94-1.5,4.2.5,5.92,1.5,3.07,2.38,4.07,4.14c.99,1.76,1.49,3.78,1.49,6.05s-.5,4.29-1.49,6.05-2.35,3.14-4.07,4.14-3.69,1.5-5.92,1.5-4.21-.5-5.94-1.5-3.1-2.38-4.09-4.14-1.49-3.78-1.49-6.05ZM90.5,354.5c0,1.55.31,2.91.93,4.09.62,1.18,1.47,2.11,2.55,2.78,1.08.67,2.33,1,3.75,1s2.67-.33,3.75-1c1.08-.67,1.94-1.59,2.55-2.78.62-1.18.93-2.55.93-4.09s-.31-2.95-.93-4.12c-.62-1.17-1.47-2.08-2.55-2.75s-2.33-1-3.75-1-2.67.33-3.75,1-1.94,1.58-2.55,2.75c-.62,1.17-.93,2.54-.93,4.12Z\" />\n <path d=\"M117.93,365.65h-4.25v-22.25h3.84l.45,3.41c.69-1.27,1.69-2.27,3.01-2.98,1.31-.71,2.75-1.07,4.32-1.07,2.89,0,5.03.83,6.42,2.5,1.39,1.67,2.08,3.93,2.08,6.78v13.6h-4.25v-12.65c0-2.24-.48-3.86-1.45-4.85-.96-.99-2.26-1.48-3.89-1.48-1.99,0-3.53.65-4.63,1.96-1.1,1.3-1.65,3.05-1.65,5.23v11.78Z\" />\n <path d=\"M145.9,366.2c-2.35,0-4.2-.62-5.54-1.87-1.34-1.24-2.01-2.87-2.01-4.87s.72-3.66,2.17-4.89c1.45-1.23,3.46-1.95,6.06-2.16l6.96-.55v-.64c0-1.24-.23-2.24-.68-2.98-.45-.74-1.07-1.27-1.85-1.59-.78-.32-1.67-.48-2.67-.48-1.78,0-3.16.37-4.13,1.11-.98.74-1.47,1.8-1.47,3.16h-3.71c0-1.55.39-2.9,1.18-4.05.78-1.15,1.89-2.05,3.32-2.68,1.43-.64,3.1-.96,4.99-.96s3.44.33,4.81.98c1.37.65,2.44,1.64,3.21,2.96.77,1.32,1.15,2.98,1.15,4.98v13.97h-3.61l-.45-3.59c-.57,1.27-1.56,2.28-2.96,3.03-1.4.74-2.99,1.11-4.77,1.11ZM147.12,362.87c2.02,0,3.6-.61,4.75-1.84,1.14-1.23,1.72-2.89,1.72-4.98v-1.18l-5.65.46c-1.87.18-3.22.62-4.04,1.32-.83.7-1.24,1.59-1.24,2.68,0,1.18.4,2.07,1.2,2.66.8.59,1.89.89,3.28.89Z\" />\n <path d=\"M167.68,365.65h-4.25v-33.49h4.25v33.49Z\" />\n </g>\n <g>\n <path d=\"M11.45,465.7c-2.13,0-3.97-.49-5.5-1.48s-2.71-2.36-3.54-4.12c-.83-1.76-1.24-3.76-1.24-6.01s.42-4.3,1.26-6.07c.84-1.77,2.04-3.18,3.61-4.21,1.56-1.03,3.43-1.55,5.59-1.55,1.71,0,3.24.36,4.58,1.07,1.34.71,2.38,1.77,3.13,3.16v-14.83h4.19v33.49h-3.79l-.36-4.05c-.72,1.49-1.78,2.62-3.18,3.41-1.4.79-2.98,1.18-4.76,1.18ZM12.3,461.83c1.44,0,2.68-.33,3.72-1,1.04-.67,1.84-1.59,2.41-2.78.57-1.18.86-2.55.86-4.1s-.29-2.9-.86-4.07c-.57-1.17-1.38-2.08-2.41-2.75-1.04-.67-2.28-1-3.72-1s-2.68.34-3.7,1.02c-1.02.68-1.8,1.61-2.34,2.78-.54,1.17-.81,2.51-.81,4.03s.27,2.91.81,4.1c.54,1.18,1.32,2.11,2.34,2.78,1.02.67,2.25,1,3.7,1Z\" />\n <path d=\"M31.51,437.62c-.75,0-1.41-.28-1.96-.84s-.83-1.22-.83-1.98.28-1.46.83-2,1.21-.82,1.96-.82,1.44.27,1.98.82c.54.55.81,1.21.81,2s-.27,1.42-.81,1.98c-.54.56-1.2.84-1.98.84ZM29.43,465.15v-22.25h4.24v22.25h-4.24Z\" />\n <path d=\"M38.18,453.46c0-2.09.42-3.98,1.26-5.67.84-1.68,2.04-3.03,3.61-4.03,1.56-1,3.41-1.5,5.55-1.5,1.98,0,3.68.48,5.09,1.43,1.41.96,2.42,2.28,3.02,3.98l-.54.59.45-5.37h3.79v21.34c0,2.34-.45,4.36-1.35,6.07-.9,1.71-2.18,3.04-3.83,3.98-1.65.94-3.61,1.41-5.86,1.41-3.01,0-5.47-.8-7.39-2.41-1.92-1.61-3.1-3.82-3.52-6.64h4.24c.27,1.64.99,2.91,2.16,3.82,1.17.91,2.67,1.37,4.51,1.37,2.07,0,3.73-.63,4.98-1.89,1.25-1.26,1.87-2.95,1.87-5.07v-6.28l.54.59c-.57,1.67-1.61,2.98-3.11,3.94-1.5.96-3.25,1.43-5.23,1.43-2.1,0-3.92-.49-5.46-1.48-1.53-.99-2.71-2.31-3.54-3.98-.83-1.67-1.24-3.55-1.24-5.64ZM42.42,453.37c0,1.4.28,2.65.83,3.78.56,1.12,1.34,2.02,2.34,2.68,1.01.67,2.19,1,3.54,1,1.44,0,2.67-.32,3.7-.96,1.02-.64,1.81-1.52,2.37-2.64.56-1.12.83-2.41.83-3.87s-.27-2.73-.81-3.82-1.32-1.96-2.34-2.59c-1.02-.64-2.25-.96-3.7-.96s-2.62.33-3.63,1c-1.01.67-1.78,1.55-2.32,2.66-.54,1.11-.81,2.34-.81,3.71Z\" />\n <path d=\"M68.39,437.62c-.75,0-1.41-.28-1.96-.84-.56-.56-.83-1.22-.83-1.98s.28-1.46.83-2c.56-.55,1.21-.82,1.96-.82s1.44.27,1.98.82c.54.55.81,1.21.81,2s-.27,1.42-.81,1.98c-.54.56-1.2.84-1.98.84ZM66.31,465.15v-22.25h4.24v22.25h-4.24Z\" />\n <path d=\"M74.11,442.9h12.8v3.59h-12.8v-3.59ZM86.73,461.42l.54,3.55c-1.14.46-2.36.68-3.65.68s-2.39-.25-3.29-.75c-.9-.5-1.59-1.25-2.07-2.25-.48-1-.72-2.24-.72-3.73v-22.98h4.24v22.39c0,1.27.26,2.18.79,2.71.53.53,1.21.8,2.05.8.66,0,1.37-.14,2.12-.41Z\" />\n <path d=\"M97.6,465.7c-2.34,0-4.19-.62-5.52-1.87-1.34-1.24-2.01-2.87-2.01-4.87s.72-3.66,2.16-4.89c1.44-1.23,3.46-1.95,6.04-2.16l6.94-.55v-.64c0-1.24-.23-2.24-.68-2.98-.45-.74-1.07-1.27-1.85-1.59-.78-.32-1.67-.48-2.66-.48-1.77,0-3.15.37-4.12,1.11-.98.74-1.47,1.8-1.47,3.16h-3.7c0-1.55.39-2.9,1.17-4.05.78-1.15,1.89-2.05,3.31-2.68,1.43-.64,3.09-.96,4.98-.96s3.43.33,4.8.98c1.37.65,2.43,1.64,3.2,2.96.77,1.32,1.15,2.98,1.15,4.98v13.97h-3.61l-.45-3.59c-.57,1.27-1.56,2.28-2.95,3.03-1.4.74-2.98,1.11-4.76,1.11ZM98.82,462.37c2.01,0,3.59-.61,4.73-1.84,1.14-1.23,1.71-2.89,1.71-4.98v-1.18l-5.64.46c-1.86.18-3.21.62-4.04,1.32-.83.7-1.24,1.59-1.24,2.68,0,1.18.4,2.07,1.19,2.66.8.59,1.89.89,3.27.89Z\" />\n <path d=\"M119.33,465.15h-4.24v-33.49h4.24v33.49Z\" />\n </g>\n <g>\n <path d=\"M5.94,564.15H1.7v-33.49h4.24v33.49Z\" />\n <path d=\"M10.85,557.92c0-2.21.74-3.88,2.23-4.98,1.49-1.11,3.43-1.68,5.84-1.71l7.08-.18v-1.32c0-1.64-.47-2.89-1.42-3.75-.95-.86-2.25-1.3-3.9-1.3s-3.05.38-4.01,1.14c-.96.76-1.44,1.81-1.44,3.14h-3.7c0-1.55.38-2.9,1.15-4.05.77-1.15,1.86-2.05,3.27-2.68,1.41-.64,3.02-.96,4.82-.96,1.92,0,3.55.38,4.89,1.14,1.34.76,2.29,1.77,2.86,3.05l-.86,13.88c-.69,1.64-1.83,2.94-3.43,3.91-1.59.97-3.46,1.46-5.59,1.46-2.5,0-4.42-.62-5.77-1.87-1.35-1.24-2.03-2.88-2.03-4.91ZM15.13,557.69c0,1.21.42,2.13,1.26,2.75.84.62,1.95.93,3.34.93,1.92,0,3.46-.56,4.6-1.68,1.14-1.12,1.71-2.59,1.71-4.41v-1.37l-6.09.18c-1.65.03-2.87.33-3.65.91-.78.58-1.17,1.47-1.17,2.68ZM46.96,553.82l-18.89.04.09-2.82h14.56c0-1.82-.55-3.31-1.65-4.46-1.1-1.15-2.59-1.73-4.49-1.73-1.44,0-2.67.33-3.67,1-1.01.67-1.78,1.58-2.32,2.73-.54,1.15-.81,2.5-.81,4.05,0,2.58.59,4.64,1.78,6.19,1.19,1.55,2.95,2.32,5.3,2.32,1.68,0,3.05-.34,4.1-1.02,1.05-.68,1.73-1.65,2.03-2.89h4.01c-.54,2.37-1.7,4.2-3.47,5.51-1.77,1.3-4.03,1.96-6.76,1.96-2.1,0-3.97-.49-5.59-1.46-1.62-.97-2.89-2.33-3.79-4.09-.9-1.76-1.35-3.79-1.35-6.1s.44-4.39,1.33-6.17c.89-1.77,2.12-3.15,3.7-4.14,1.58-.99,3.42-1.48,5.52-1.48s3.97.46,5.52,1.39c1.55.93,2.74,2.21,3.58,3.87.84,1.65,1.26,3.56,1.26,5.71v1.59Z\" />\n <path d=\"M64.1,541.72v3.91h-1.89c-2.01,0-3.6.58-4.76,1.75-1.16,1.17-1.74,2.83-1.74,4.98v11.78h-4.24v-22.2h3.97l.36,4.46h-.41c.3-1.46,1.02-2.65,2.16-3.57,1.14-.92,2.57-1.39,4.28-1.39.39,0,.76.02,1.1.07.35.05.73.11,1.15.21Z\" />\n <path d=\"M69.91,536.62c-.75,0-1.41-.28-1.96-.84s-.83-1.22-.83-1.98.28-1.46.83-2,1.21-.82,1.96-.82,1.44.27,1.98.82c.54.55.81,1.21.81,2s-.27,1.42-.81,1.98c-.54.56-1.2.84-1.98.84ZM67.84,564.15v-22.25h4.24v22.25h-4.24Z\" />\n <path d=\"M82.22,564.15h-4.24v-22.25h3.83l.45,3.41c.69-1.27,1.69-2.27,3-2.98,1.31-.71,2.74-1.07,4.31-1.07,2.89,0,5.02.83,6.4,2.5,1.38,1.67,2.07,3.93,2.07,6.78v13.6h-4.24v-12.65c0-2.24-.48-3.86-1.44-4.85-.96-.99-2.25-1.48-3.88-1.48-1.98,0-3.52.65-4.62,1.96-1.1,1.3-1.65,3.05-1.65,5.23v11.78Z\" />\n <path d=\"M102.28,552.46c0-2.09.42-3.98,1.26-5.67.84-1.68,2.04-3.03,3.61-4.03,1.56-1,3.41-1.5,5.55-1.5,1.98,0,3.68.48,5.09,1.43,1.41.96,2.42,2.28,3.02,3.98l-.54.59.45-5.37h3.79v21.34c0,2.34-.45,4.36-1.35,6.07-.9,1.71-2.18,3.04-3.83,3.98-1.65.94-3.61,1.41-5.86,1.41-3.01,0-5.47-.8-7.39-2.41-1.92-1.61-3.1-3.82-3.52-6.64h4.24c.27,1.64.99,2.91,2.16,3.82,1.17.91,2.67,1.37,4.51,1.37,2.07,0,3.73-.63,4.98-1.89,1.25-1.26,1.87-2.95,1.87-5.07v-6.28l.54.59c-.57,1.67-1.61,2.98-3.11,3.94-1.5.96-3.25,1.43-5.23,1.43-2.1,0-3.92-.49-5.46-1.48-1.53-.99-2.71-2.31-3.54-3.98-.83-1.67-1.24-3.55-1.24-5.64ZM106.52,552.37c0,1.4.28,2.65.83,3.78.56,1.12,1.34,2.02,2.34,2.68,1.01.67,2.19,1,3.54,1,1.44,0,2.67-.32,3.7-.96,1.02-.64,1.81-1.52,2.37-2.64.56-1.12.83-2.41.83-3.87s-.27-2.73-.81-3.82-1.32-1.96-2.34-2.59c-1.02-.64-2.25-.96-3.7-.96s-2.62.33-3.63,1c-1.01.67-1.78,1.55-2.32,2.66-.54,1.11-.81,2.34-.81,3.71Z\" />\n <path d=\"M128.61,557.69h4.06c0,1.12.41,2.01,1.22,2.66s1.91.98,3.29.98c1.5,0,2.66-.3,3.47-.89.81-.59,1.22-1.39,1.22-2.39,0-.73-.22-1.33-.65-1.82-.44-.49-1.23-.88-2.37-1.18l-3.88-.91c-1.95-.49-3.4-1.23-4.35-2.23s-1.42-2.32-1.42-3.96c0-1.37.35-2.55,1.06-3.55.71-1,1.68-1.77,2.93-2.32,1.25-.55,2.68-.82,4.31-.82s3.03.29,4.22.86c1.19.58,2.12,1.38,2.79,2.41s1.03,2.26,1.06,3.69h-4.06c-.03-1.15-.41-2.05-1.13-2.68s-1.73-.96-3.02-.96-2.34.29-3.07.87-1.08,1.36-1.08,2.37c0,1.49,1.08,2.5,3.25,3.05l3.88.96c1.86.42,3.26,1.11,4.19,2.07.93.96,1.4,2.25,1.4,3.89,0,1.4-.38,2.62-1.13,3.66-.75,1.05-1.78,1.85-3.09,2.41-1.31.56-2.85.84-4.62.84-2.59,0-4.64-.64-6.18-1.91-1.53-1.27-2.3-2.97-2.3-5.1Z\" />\n <path d=\"M156.83,564.7c-2.34,0-4.19-.62-5.52-1.87-1.34-1.24-2.01-2.87-2.01-4.87s.72-3.66,2.16-4.89c1.44-1.23,3.46-1.95,6.04-2.16l6.94-.55v-.64c0-1.24-.23-2.24-.68-2.98-.45-.74-1.07-1.27-1.85-1.59-.78-.32-1.67-.48-2.66-.48-1.77,0-3.15.37-4.12,1.11-.98.74-1.47,1.8-1.47,3.16h-3.7c0-1.55.39-2.9,1.17-4.05.78-1.15,1.89-2.05,3.31-2.68,1.43-.64,3.09-.96,4.98-.96s3.43.33,4.8.98c1.37.65,2.43,1.64,3.2,2.96.77,1.32,1.15,2.98,1.15,4.98v13.97h-3.61l-.45-3.59c-.57,1.27-1.56,2.28-2.95,3.03-1.4.74-2.98,1.11-4.76,1.11ZM158.05,561.37c2.01,0,3.59-.61,4.73-1.84,1.14-1.23,1.71-2.89,1.71-4.98v-1.18l-5.64.46c-1.86.18-3.21.62-4.04,1.32-.83.7-1.24,1.59-1.24,2.68,0,1.18.4,2.07,1.19,2.66.8.59,1.89.89,3.27.89Z\" />\n <path d=\"M186.86,541.72v3.91h-1.89c-2.01,0-3.6.58-4.76,1.75-1.16,1.17-1.74,2.83-1.74,4.98v11.78h-4.24v-22.2h3.97l.36,4.46h-.41c.3-1.46,1.02-2.65,2.16-3.57,1.14-.92,2.57-1.39,4.28-1.39.39,0,.76.02,1.1.07.35.05.73.11,1.15.21Z\" />\n <path d=\"M199.3,564.7c-2.13,0-4.03-.49-5.68-1.48-1.65-.99-2.95-2.35-3.88-4.09s-1.4-3.77-1.4-6.07.46-4.38,1.38-6.14c.92-1.76,2.18-3.14,3.79-4.14,1.61-1,3.48-1.5,5.61-1.5s3.93.46,5.48,1.37c1.55.91,2.75,2.18,3.61,3.82.86,1.64,1.29,3.56,1.29,5.78v1.59l-18.89.04.09-2.87h14.56c0-1.85-.56-3.34-1.67-4.46-1.11-1.12-2.6-1.68-4.46-1.68-1.41,0-2.62.31-3.63.93-1.01.62-1.77,1.53-2.3,2.73-.53,1.2-.79,2.63-.79,4.3,0,2.67.6,4.72,1.8,6.17,1.2,1.44,2.93,2.16,5.18,2.16,1.65,0,3.01-.33,4.06-1,1.05-.67,1.76-1.64,2.12-2.91h3.97c-.54,2.37-1.7,4.2-3.47,5.51-1.77,1.3-4.03,1.96-6.76,1.96Z\" />\n <path d=\"M218.24,564.15h-4.24v-22.25h3.83l.45,3.41c.69-1.27,1.69-2.27,3-2.98,1.31-.71,2.74-1.07,4.31-1.07,2.89,0,5.02.83,6.4,2.5,1.38,1.67,2.07,3.93,2.07,6.78v13.6h-4.24v-12.65c0-2.24-.48-3.86-1.44-4.85-.96-.99-2.25-1.48-3.88-1.48-1.98,0-3.52.65-4.62,1.96-1.1,1.3-1.65,3.05-1.65,5.23v11.78Z\" />\n <path d=\"M246.14,564.7c-2.34,0-4.19-.62-5.52-1.87-1.34-1.24-2.01-2.87-2.01-4.87s.72-3.66,2.16-4.89c1.44-1.23,3.46-1.95,6.04-2.16l6.94-.55v-.64c0-1.24-.23-2.24-.68-2.98-.45-.74-1.07-1.27-1.85-1.59-.78-.32-1.67-.48-2.66-.48-1.77,0-3.15.37-4.12,1.11-.98.74-1.47,1.8-1.47,3.16h-3.7c0-1.55.39-2.9,1.17-4.05.78-1.15,1.89-2.05,3.31-2.68,1.43-.64,3.09-.96,4.98-.96s3.43.33,4.8.98c1.37.65,2.43,1.64,3.2,2.96.77,1.32,1.15,2.98,1.15,4.98v13.97h-3.61l-.45-3.59c-.57,1.27-1.56,2.28-2.95,3.03-1.4.74-2.98,1.11-4.76,1.11ZM247.36,561.37c2.01,0,3.59-.61,4.73-1.84,1.14-1.23,1.71-2.89,1.71-4.98v-1.18l-5.64.46c-1.86.18-3.21.62-4.04,1.32-.83.7-1.24,1.59-1.24,2.68,0,1.18.4,2.07,1.19,2.66.8.59,1.89.89,3.27.89Z\" />\n </g>\n <g>\n <line x1=\".65\" y1=\"407.52\" x2=\"259.96\" y2=\"389.39\" />\n <rect x=\".34\" y=\"394.11\" width=\"259.94\" height=\"8.7\" transform=\"translate(-27.46 10.05) rotate(-4)\" />\n </g>\n <g>\n <line x1=\".65\" y1=\"607.55\" x2=\"259.96\" y2=\"589.42\" />\n <rect x=\".34\" y=\"594.14\" width=\"259.94\" height=\"8.7\" transform=\"translate(-41.4 10.54) rotate(-4)\" />\n </g>\n <g>\n <line x1=\".3\" y1=\"496.88\" x2=\"259.61\" y2=\"515.01\" />\n <rect x=\"125.61\" y=\"375.98\" width=\"8.7\" height=\"259.94\" transform=\"translate(-383.82 600.29) rotate(-86)\" />\n </g>\n </g>\n </g>\n </BaseSvg>\n);\n\nexport const NdlaLogoText = (props: LogoProps) => (\n <BaseSvg width={126} height={32} viewBox=\"0 0 1104 280\" {...props}>\n <g fill=\"currentColor\">\n <rect width=\"52\" height=\"280\" />\n <polygon points=\"97.15 39.5 52 66 191 279.77 191.12 280 260 280 260 0 207.73 0 207.73 209.54 97.15 39.5\" />\n <path d=\"M997.7,0h-51.51l-105.73,278.52-.46,1.48h52.87l22.45-64.2h112.33l22.45,64.2h53.9L997.7,0ZM1012.95,172.44h-82.25l41.01-105.17,41.24,105.17Z\" />\n <polygon points=\"681.18 0 629 0 629 280 797 280 797 231.99 681.18 231.99 681.18 0\" />\n <path d=\"M432.36,0h-100.36v280h102.98c19.9,0,38.55-3.41,55.61-10.13,16.72-6.72,31.27-16.39,43.32-28.68,12.05-12.18,21.49-27.09,28.09-44.16,6.71-17.41,10.01-36.31,10.01-56.46,0-40.86-13.42-75.92-38.78-101.64C507.87,13.43,472.96,0,432.36,0ZM518.56,140.57c0,28.11-8.07,51.45-23.54,67.61-15.35,16.16-37.64,24.7-64.48,24.7h-47.6V47.12h44.87c27.86,0,50.83,8.65,66.52,24.81,15.92,16.39,24.22,40.07,24.22,68.63Z\" />\n </g>\n </BaseSvg>\n);\n"],"mappings":";;;;;;;;;;;;;AAkBA,MAAM,WAAW,EAAE,QAAQ,WAAW,eAAe,aAAa,MAAM,KAAK,SAAS,GAAG,YACvF,2CAACA,+BAAO;CACN,OAAM;CACN,eAAa;CACb,KAAKC,4BAAI,IAAI,EAAE,OAAO,EAAE,QAAQ;CAChC,GAAI;EACJ;AAGJ,MAAa,cAAc,UACzB,2CAAC;CAAQ,OAAO;CAAK,QAAQ;CAAK,SAAQ;CAAoB,GAAI;WAChE,4CAAC;EAAE,MAAK;;GACN,4CAAC,kBACC,2CAAC;IAAK,OAAM;IAAK,QAAO;KAAQ,EAChC,2CAAC,aAAQ,QAAO,2FAA2F,IACzG;GACJ,4CAAC;IACC,2CAAC,UAAK,GAAE,mGAAmG;IAC3G,2CAAC,UAAK,GAAE,6mBAA6mB;IACrnB,2CAAC,UAAK,GAAE,uNAAuN;IAC/N,2CAAC,UAAK,GAAE,yeAAye;IACjf,2CAAC,UAAK,GAAE,4jBAA4jB;IACpkB,2CAAC,UAAK,GAAE,y1BAAy1B;IACj2B,2CAAC,UAAK,GAAE,mOAAmO;IAC3O,2CAAC,UAAK,GAAE,+pBAA+pB;IACvqB,2CAAC,UAAK,GAAE,6RAA6R;OACnS;GACJ,4CAAC;IACC,2CAAC,UAAK,GAAE,mmBAAmmB;IAC3mB,2CAAC,UAAK,GAAE,qOAAqO;IAC7O,2CAAC,UAAK,GAAE,o2BAAo2B;IAC52B,2CAAC,UAAK,GAAE,qOAAqO;IAC7O,2CAAC,UA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M;IAAS,QAAO;IAAM,WAAU;KAAuC,IACpG;GACJ,4CAAC,kBACC,2CAAC;IAAK,IAAG;IAAM,IAAG;IAAS,IAAG;IAAS,IAAG;KAAW,EACrD,2CAAC;IAAK,GAAE;IAAM,GAAE;IAAS,OAAM;IAAS,QAAO;IAAM,WAAU;KAAsC,IACnG;GACJ,4CAAC,kBACC,2CAAC;IAAK,IAAG;IAAK,IAAG;IAAS,IAAG;IAAS,IAAG;KAAW,EACpD,2CAAC;IAAK,GAAE;IAAS,GAAE;IAAS,OAAM;IAAM,QAAO;IAAS,WAAU;KAA0C,IAC1G;MACF;GACF;EACI;AAGZ,MAAa,gBAAgB,UAC3B,2CAAC;CAAQ,OAAO;CAAK,QAAQ;CAAI,SAAQ;CAAe,GAAI;WAC1D,4CAAC;EAAE,MAAK;;GACN,2CAAC;IAAK,OAAM;IAAK,QAAO;KAAQ;GAChC,2CAAC,aAAQ,QAAO,2FAA2F;GAC3G,2CAAC,UAAK,GAAE,8IAA8I;GACtJ,2CAAC,aAAQ,QAAO,qEAAqE;GACrF,2CAAC,UAAK,GAAE,+YAA+Y;;GACrZ;EACI"}
1
+ {"version":3,"file":"NdlaLogo.js","names":["styled","css"],"sources":["../src/NdlaLogo.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { css } from \"@ndla/styled-system/css\";\nimport { styled } from \"@ndla/styled-system/jsx\";\nimport type { ColorToken } from \"@ndla/styled-system/tokens\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\nimport { type ComponentPropsWithoutRef } from \"react\";\n\nexport interface LogoProps extends Omit<ComponentPropsWithoutRef<\"svg\">, \"color\">, StyledProps {\n color?: ColorToken;\n}\n\nconst BaseSvg = ({ color = \"primary\", \"aria-hidden\": ariaHidden = true, css: cssProp, ...props }: LogoProps) => (\n <styled.svg\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden={ariaHidden}\n css={css.raw({ color }, cssProp)}\n {...props}\n />\n);\n\nexport const NdlaLogoEn = (props: LogoProps) => (\n <BaseSvg width={163} height={383} viewBox=\"0 0 260.46 612.26\" {...props}>\n <g fill=\"currentColor\">\n <g>\n <rect width=\"52\" height=\"280\" />\n <polygon points=\"97.15 39.5 52 66 191 279.77 191.12 280 260 280 260 0 207.73 0 207.73 209.54 97.15 39.5\" />\n </g>\n <g>\n <path d=\"M5.26,363.02H1.21v-30.08h4.05l16.4,24.96h-1.12v-24.96h4.05v30.08h-4.05l-16.4-24.96h1.12v24.96Z\" />\n <path d=\"M29.35,352.83c0-2.08.45-3.92,1.36-5.53.91-1.61,2.16-2.87,3.74-3.79,1.58-.92,3.39-1.37,5.43-1.37s3.84.46,5.41,1.37c1.57.92,2.81,2.18,3.72,3.79.91,1.61,1.36,3.45,1.36,5.53s-.45,3.92-1.36,5.53c-.91,1.61-2.15,2.87-3.72,3.79-1.57.92-3.37,1.37-5.41,1.37s-3.85-.46-5.43-1.37c-1.58-.92-2.83-2.18-3.74-3.79-.91-1.61-1.36-3.45-1.36-5.53ZM33.27,352.83c0,1.42.28,2.66.85,3.74.56,1.08,1.34,1.93,2.33,2.54s2.13.92,3.43.92,2.44-.3,3.43-.92,1.77-1.46,2.33-2.54c.56-1.08.85-2.33.85-3.74s-.28-2.7-.85-3.76c-.56-1.07-1.34-1.91-2.33-2.52-.99-.61-2.13-.92-3.43-.92s-2.44.31-3.43.92c-.99.61-1.77,1.45-2.33,2.52-.56,1.07-.85,2.32-.85,3.76Z\" />\n <path d=\"M66.03,342.51v3.58h-1.74c-1.85,0-3.3.54-4.36,1.6-1.06,1.07-1.59,2.59-1.59,4.56v10.77h-3.88v-20.3h3.64l.33,4.08h-.37c.28-1.33.94-2.42,1.98-3.27,1.05-.85,2.35-1.27,3.92-1.27.36,0,.7.02,1.01.06.32.04.67.1,1.05.19Z\" />\n <path d=\"M74.42,363.02l-6.61-20.34h4.01l3.35,10.57c.25.75.47,1.52.66,2.31.19.79.39,1.63.58,2.52.11-.61.24-1.2.39-1.77.15-.57.31-1.11.48-1.62.17-.51.32-.99.45-1.44l3.39-10.57h3.97l3.35,10.57c.11.25.21.58.31.98.1.4.21.83.35,1.27.14.44.26.89.37,1.33.11.44.21.86.29,1.25.11-.55.23-1.09.35-1.6.12-.51.26-1.03.41-1.54.15-.51.32-1.08.52-1.69l3.39-10.57h4.05l-6.9,20.34h-3.68l-3.51-10.9c-.33-1.03-.6-1.93-.81-2.72s-.37-1.46-.48-2.02c-.11.5-.27,1.12-.48,1.85-.21.73-.49,1.71-.85,2.93l-3.51,10.86h-3.84Z\" />\n <path d=\"M109.42,363.52c-1.96,0-3.69-.45-5.21-1.35-1.52-.9-2.7-2.15-3.55-3.74-.85-1.59-1.28-3.45-1.28-5.55s.42-4.01,1.26-5.62c.84-1.61,2-2.87,3.47-3.79,1.47-.92,3.19-1.37,5.14-1.37s3.6.42,5.02,1.25c1.42.83,2.52,2,3.31,3.49.79,1.5,1.18,3.26,1.18,5.28v1.46l-17.31.04.08-2.62h13.35c0-1.69-.51-3.05-1.53-4.08-1.02-1.03-2.38-1.54-4.09-1.54-1.29,0-2.4.29-3.33.85-.92.57-1.63,1.4-2.11,2.5-.48,1.1-.72,2.41-.72,3.93,0,2.44.55,4.32,1.65,5.64,1.1,1.32,2.69,1.98,4.75,1.98,1.51,0,2.75-.31,3.72-.92.96-.61,1.61-1.5,1.94-2.66h3.64c-.5,2.16-1.56,3.84-3.18,5.03-1.63,1.19-3.69,1.79-6.2,1.79Z\" />\n <path d=\"M121.6,352.33c0-1.91.39-3.64,1.16-5.18.77-1.54,1.87-2.77,3.31-3.68,1.43-.92,3.13-1.37,5.08-1.37,1.82,0,3.37.44,4.67,1.31,1.29.87,2.22,2.09,2.77,3.64l-.5.54.41-4.91h3.47v19.51c0,2.14-.41,3.99-1.24,5.55-.83,1.57-2,2.78-3.51,3.64-1.52.86-3.31,1.29-5.37,1.29-2.75,0-5.01-.74-6.78-2.21s-2.84-3.49-3.22-6.07h3.88c.25,1.5.91,2.66,1.98,3.49s2.45,1.25,4.13,1.25c1.9,0,3.42-.58,4.57-1.73,1.14-1.15,1.71-2.7,1.71-4.64v-5.74l.5.54c-.52,1.53-1.47,2.72-2.85,3.6-1.38.87-2.98,1.31-4.79,1.31-1.93,0-3.59-.45-5-1.35s-2.49-2.11-3.24-3.64c-.76-1.52-1.14-3.24-1.14-5.16ZM125.49,352.25c0,1.28.25,2.43.76,3.45.51,1.03,1.23,1.84,2.15,2.45.92.61,2,.92,3.24.92,1.32,0,2.45-.29,3.39-.87.94-.58,1.66-1.39,2.17-2.41.51-1.03.76-2.21.76-3.54s-.25-2.5-.74-3.49c-.5-1-1.21-1.79-2.15-2.37-.94-.58-2.07-.87-3.39-.87s-2.4.31-3.33.92c-.92.61-1.63,1.42-2.13,2.43-.5,1.01-.74,2.14-.74,3.39Z\" />\n <path d=\"M149.28,337.85c-.69,0-1.29-.26-1.8-.77-.51-.51-.76-1.12-.76-1.81s.25-1.33.76-1.83c.51-.5,1.11-.75,1.8-.75s1.32.25,1.82.75c.5.5.74,1.11.74,1.83s-.25,1.3-.74,1.81c-.5.51-1.1.77-1.82.77ZM147.38,363.02v-20.34h3.88v20.34h-3.88Z\" />\n <path d=\"M162.59,363.52c-2.15,0-3.84-.57-5.06-1.71s-1.84-2.62-1.84-4.45.66-3.35,1.98-4.47c1.32-1.12,3.17-1.78,5.54-1.98l6.36-.5v-.58c0-1.14-.21-2.04-.62-2.72-.41-.68-.98-1.17-1.69-1.46-.72-.29-1.53-.44-2.44-.44-1.63,0-2.89.34-3.78,1.02-.9.68-1.34,1.64-1.34,2.89h-3.39c0-1.41.36-2.65,1.07-3.7.72-1.05,1.73-1.87,3.04-2.45,1.31-.58,2.83-.87,4.57-.87s3.15.3,4.4.89c1.25.6,2.23,1.5,2.93,2.7.7,1.21,1.05,2.72,1.05,4.55v12.77h-3.31l-.41-3.29c-.52,1.16-1.43,2.09-2.71,2.77-1.28.68-2.73,1.02-4.36,1.02ZM163.7,360.48c1.85,0,3.29-.56,4.34-1.68,1.05-1.12,1.57-2.64,1.57-4.55v-1.08l-5.16.42c-1.71.17-2.94.57-3.7,1.21-.76.64-1.14,1.46-1.14,2.45,0,1.08.36,1.89,1.1,2.43.73.54,1.73.81,3,.81Z\" />\n <path d=\"M182.42,363.02h-3.88v-20.34h3.51l.41,3.12c.63-1.16,1.55-2.07,2.75-2.72,1.2-.65,2.51-.98,3.95-.98,2.64,0,4.6.76,5.87,2.29,1.27,1.53,1.9,3.59,1.9,6.2v12.44h-3.88v-11.56c0-2.05-.44-3.53-1.32-4.43-.88-.9-2.07-1.35-3.55-1.35-1.82,0-3.23.6-4.23,1.79-1.01,1.19-1.51,2.79-1.51,4.78v10.77Z\" />\n </g>\n <g>\n <path d=\"M10.62,466.02c-1.95,0-3.63-.45-5.03-1.35-1.4-.9-2.48-2.16-3.24-3.76-.76-1.61-1.13-3.44-1.13-5.49s.38-3.93,1.15-5.55c.77-1.62,1.87-2.91,3.3-3.85,1.43-.94,3.13-1.41,5.11-1.41,1.57,0,2.96.33,4.18.98,1.22.65,2.18,1.62,2.87,2.89v-13.56h3.83v30.62h-3.46l-.33-3.7c-.66,1.36-1.63,2.4-2.91,3.12-1.28.72-2.73,1.08-4.35,1.08ZM11.4,462.48c1.32,0,2.45-.3,3.4-.92.95-.61,1.68-1.46,2.21-2.54.52-1.08.78-2.33.78-3.74s-.26-2.66-.78-3.72c-.52-1.07-1.26-1.91-2.21-2.52-.95-.61-2.08-.92-3.4-.92s-2.45.31-3.38.94c-.93.62-1.65,1.47-2.14,2.54s-.74,2.29-.74,3.68.25,2.66.74,3.74c.49,1.08,1.21,1.93,2.14,2.54.93.61,2.06.92,3.38.92Z\" />\n <path d=\"M28.96,440.35c-.69,0-1.29-.26-1.79-.77-.51-.51-.76-1.12-.76-1.81s.25-1.33.76-1.83c.51-.5,1.11-.75,1.79-.75s1.32.25,1.81.75c.49.5.74,1.11.74,1.83s-.25,1.3-.74,1.81c-.49.51-1.1.77-1.81.77ZM27.07,465.52v-20.34h3.88v20.34h-3.88Z\" />\n <path d=\"M35.06,454.83c0-1.91.38-3.64,1.15-5.18.77-1.54,1.87-2.77,3.3-3.68,1.43-.92,3.12-1.37,5.07-1.37,1.81,0,3.37.44,4.66,1.31,1.29.87,2.21,2.09,2.76,3.64l-.49.54.41-4.91h3.46v19.51c0,2.14-.41,3.99-1.24,5.55-.82,1.57-1.99,2.78-3.5,3.64-1.51.86-3.3,1.29-5.36,1.29-2.75,0-5-.74-6.76-2.21-1.76-1.47-2.83-3.49-3.22-6.07h3.87c.25,1.5.91,2.66,1.98,3.49s2.45,1.25,4.12,1.25c1.9,0,3.41-.58,4.55-1.73,1.14-1.15,1.71-2.7,1.71-4.64v-5.74l.49.54c-.52,1.53-1.47,2.72-2.84,3.6-1.37.87-2.97,1.31-4.78,1.31-1.92,0-3.59-.45-4.99-1.35s-2.48-2.11-3.24-3.64c-.76-1.52-1.13-3.24-1.13-5.16ZM38.94,454.75c0,1.28.25,2.43.76,3.45.51,1.03,1.22,1.84,2.14,2.45.92.61,2,.92,3.24.92,1.32,0,2.45-.29,3.38-.87.93-.58,1.66-1.39,2.16-2.41.51-1.03.76-2.21.76-3.54s-.25-2.5-.74-3.49c-.5-1-1.21-1.79-2.14-2.37-.93-.58-2.06-.87-3.38-.87s-2.4.31-3.32.92c-.92.61-1.63,1.42-2.12,2.43-.49,1.01-.74,2.14-.74,3.39Z\" />\n <path d=\"M62.68,440.35c-.69,0-1.29-.26-1.79-.77-.51-.51-.76-1.12-.76-1.81s.25-1.33.76-1.83c.51-.5,1.11-.75,1.79-.75s1.32.25,1.81.75c.49.5.74,1.11.74,1.83s-.25,1.3-.74,1.81c-.49.51-1.1.77-1.81.77ZM60.78,465.52v-20.34h3.88v20.34h-3.88Z\" />\n <path d=\"M67.92,445.18h11.71v3.29h-11.71v-3.29ZM79.46,462.11l.49,3.25c-1.04.42-2.16.62-3.34.62s-2.18-.23-3.01-.69c-.82-.46-1.46-1.14-1.9-2.06-.44-.92-.66-2.05-.66-3.41v-21.01h3.88v20.47c0,1.17.24,1.99.72,2.48.48.49,1.11.73,1.88.73.6,0,1.25-.12,1.94-.37Z\" />\n <path d=\"M89.39,466.02c-2.14,0-3.83-.57-5.05-1.71-1.22-1.14-1.83-2.62-1.83-4.45s.66-3.35,1.98-4.47c1.32-1.12,3.16-1.78,5.52-1.98l6.35-.5v-.58c0-1.14-.21-2.04-.62-2.72-.41-.68-.98-1.17-1.69-1.46-.71-.29-1.52-.44-2.43-.44-1.62,0-2.88.34-3.77,1.02-.89.68-1.34,1.64-1.34,2.89h-3.38c0-1.41.36-2.65,1.07-3.7.71-1.05,1.72-1.87,3.03-2.45,1.31-.58,2.82-.87,4.55-.87s3.14.3,4.39.89c1.25.6,2.23,1.5,2.93,2.7.7,1.21,1.05,2.72,1.05,4.55v12.77h-3.3l-.41-3.29c-.52,1.16-1.42,2.09-2.7,2.77-1.28.68-2.73,1.02-4.35,1.02ZM90.5,462.98c1.84,0,3.28-.56,4.33-1.68s1.57-2.64,1.57-4.55v-1.08l-5.15.42c-1.7.17-2.93.57-3.69,1.21-.76.64-1.13,1.46-1.13,2.45,0,1.08.36,1.89,1.09,2.43.73.54,1.72.81,2.99.81Z\" />\n <path d=\"M109.26,465.52h-3.88v-30.62h3.88v30.62Z\" />\n </g>\n <g>\n <path d=\"M5.5,563.52H1.62v-30.62h3.88v30.62Z\" />\n <path d=\"M19.68,564.02c-1.95,0-3.68-.45-5.19-1.35-1.51-.9-2.69-2.15-3.54-3.74-.85-1.59-1.28-3.45-1.28-5.55s.42-4.01,1.26-5.62c.84-1.61,1.99-2.87,3.46-3.79,1.47-.92,3.18-1.37,5.13-1.37s3.59.42,5.01,1.25c1.42.83,2.51,2,3.3,3.49.78,1.5,1.17,3.26,1.17,5.28v1.46l-17.27.04.08-2.62h13.31c0-1.69-.51-3.05-1.53-4.08-1.02-1.03-2.38-1.54-4.08-1.54-1.29,0-2.4.29-3.32.85-.92.57-1.62,1.4-2.1,2.5-.48,1.1-.72,2.41-.72,3.93,0,2.44.55,4.32,1.65,5.64,1.1,1.32,2.68,1.98,4.74,1.98,1.51,0,2.75-.31,3.71-.92.96-.61,1.61-1.5,1.94-2.66h3.63c-.49,2.16-1.55,3.84-3.17,5.03-1.62,1.19-3.68,1.79-6.18,1.79Z\" />\n <path d=\"M38.8,564.02c-2.14,0-3.83-.57-5.05-1.71-1.22-1.14-1.83-2.62-1.83-4.45s.66-3.35,1.98-4.47c1.32-1.12,3.16-1.78,5.52-1.98l6.35-.5v-.58c0-1.14-.21-2.04-.62-2.72-.41-.68-.98-1.17-1.69-1.46-.71-.29-1.52-.44-2.43-.44-1.62,0-2.88.34-3.77,1.02-.89.68-1.34,1.64-1.34,2.89h-3.38c0-1.41.36-2.65,1.07-3.7.71-1.05,1.72-1.87,3.03-2.45,1.31-.58,2.82-.87,4.55-.87s3.14.3,4.39.89c1.25.6,2.23,1.5,2.93,2.7.7,1.21,1.05,2.72,1.05,4.55v12.77h-3.3l-.41-3.29c-.52,1.16-1.42,2.09-2.7,2.77-1.28.68-2.73,1.02-4.35,1.02ZM39.92,560.98c1.84,0,3.28-.56,4.33-1.68s1.57-2.64,1.57-4.55v-1.08l-5.15.42c-1.7.17-2.93.57-3.69,1.21-.76.64-1.13,1.46-1.13,2.45,0,1.08.36,1.89,1.09,2.43.73.54,1.72.81,2.99.81Z\" />\n <path d=\"M66.26,543.01v3.58h-1.73c-1.84,0-3.29.54-4.35,1.6-1.06,1.07-1.59,2.59-1.59,4.56v10.77h-3.88v-20.3h3.63l.33,4.08h-.37c.27-1.33.93-2.42,1.98-3.27,1.04-.85,2.35-1.27,3.92-1.27.36,0,.69.02,1.01.06.32.04.67.1,1.05.19Z\" />\n <path d=\"M73.55,563.52h-3.88v-20.34h3.5l.41,3.12c.63-1.16,1.55-2.07,2.74-2.72,1.2-.65,2.51-.98,3.94-.98,2.64,0,4.59.76,5.85,2.29,1.26,1.53,1.9,3.59,1.9,6.2v12.44h-3.87v-11.56c0-2.05-.44-3.53-1.32-4.43-.88-.9-2.06-1.35-3.54-1.35-1.81,0-3.22.6-4.23,1.79-1,1.19-1.5,2.79-1.5,4.78v10.77Z\" />\n <path d=\"M95.07,538.35c-.69,0-1.29-.26-1.79-.77-.51-.51-.76-1.12-.76-1.81s.25-1.33.76-1.83c.51-.5,1.11-.75,1.79-.75s1.32.25,1.81.75c.49.5.74,1.11.74,1.83s-.25,1.3-.74,1.81c-.49.51-1.1.77-1.81.77ZM93.17,563.52v-20.34h3.88v20.34h-3.88Z\" />\n <path d=\"M106.32,563.52h-3.88v-20.34h3.5l.41,3.12c.63-1.16,1.55-2.07,2.74-2.72,1.2-.65,2.51-.98,3.94-.98,2.64,0,4.59.76,5.85,2.29,1.26,1.53,1.9,3.59,1.9,6.2v12.44h-3.87v-11.56c0-2.05-.44-3.53-1.32-4.43-.88-.9-2.06-1.35-3.54-1.35-1.81,0-3.22.6-4.23,1.79-1,1.19-1.5,2.79-1.5,4.78v10.77Z\" />\n <path d=\"M124.66,552.83c0-1.91.38-3.64,1.15-5.18.77-1.54,1.87-2.77,3.3-3.68,1.43-.92,3.12-1.37,5.07-1.37,1.81,0,3.37.44,4.66,1.31,1.29.87,2.21,2.09,2.76,3.64l-.49.54.41-4.91h3.46v19.51c0,2.14-.41,3.99-1.24,5.55-.82,1.57-1.99,2.78-3.5,3.64-1.51.86-3.3,1.29-5.36,1.29-2.75,0-5-.74-6.76-2.21-1.76-1.47-2.83-3.49-3.22-6.07h3.87c.25,1.5.91,2.66,1.98,3.49s2.45,1.25,4.12,1.25c1.9,0,3.41-.58,4.55-1.73,1.14-1.15,1.71-2.7,1.71-4.64v-5.74l.49.54c-.52,1.53-1.47,2.72-2.84,3.6-1.37.87-2.97,1.31-4.78,1.31-1.92,0-3.59-.45-4.99-1.35s-2.48-2.11-3.24-3.64c-.76-1.52-1.13-3.24-1.13-5.16ZM128.54,552.75c0,1.28.25,2.43.76,3.45.51,1.03,1.22,1.84,2.14,2.45.92.61,2,.92,3.24.92,1.32,0,2.45-.29,3.38-.87.93-.58,1.66-1.39,2.16-2.41.51-1.03.76-2.21.76-3.54s-.25-2.5-.74-3.49c-.5-1-1.21-1.79-2.14-2.37-.93-.58-2.06-.87-3.38-.87s-2.4.31-3.32.92c-.92.61-1.63,1.42-2.12,2.43-.49,1.01-.74,2.14-.74,3.39Z\" />\n <path d=\"M167.33,564.02c-2.14,0-3.83-.57-5.05-1.71-1.22-1.14-1.83-2.62-1.83-4.45s.66-3.35,1.98-4.47c1.32-1.12,3.16-1.78,5.52-1.98l6.35-.5v-.58c0-1.14-.21-2.04-.62-2.72-.41-.68-.98-1.17-1.69-1.46-.71-.29-1.52-.44-2.43-.44-1.62,0-2.88.34-3.77,1.02-.89.68-1.34,1.64-1.34,2.89h-3.38c0-1.41.36-2.65,1.07-3.7.71-1.05,1.72-1.87,3.03-2.45,1.31-.58,2.82-.87,4.55-.87s3.14.3,4.39.89c1.25.6,2.23,1.5,2.93,2.7.7,1.21,1.05,2.72,1.05,4.55v12.77h-3.3l-.41-3.29c-.52,1.16-1.42,2.09-2.7,2.77-1.28.68-2.73,1.02-4.35,1.02ZM168.44,560.98c1.84,0,3.28-.56,4.33-1.68s1.57-2.64,1.57-4.55v-1.08l-5.15.42c-1.7.17-2.93.57-3.69,1.21-.76.64-1.13,1.46-1.13,2.45,0,1.08.36,1.89,1.09,2.43.73.54,1.72.81,2.99.81Z\" />\n <path d=\"M194.78,543.01v3.58h-1.73c-1.84,0-3.29.54-4.35,1.6-1.06,1.07-1.59,2.59-1.59,4.56v10.77h-3.88v-20.3h3.63l.33,4.08h-.37c.27-1.33.93-2.42,1.98-3.27,1.04-.85,2.35-1.27,3.92-1.27.36,0,.69.02,1.01.06.32.04.67.1,1.05.19Z\" />\n <path d=\"M206.16,564.02c-1.95,0-3.68-.45-5.19-1.35-1.51-.9-2.69-2.15-3.54-3.74-.85-1.59-1.28-3.45-1.28-5.55s.42-4.01,1.26-5.62c.84-1.61,1.99-2.87,3.46-3.79,1.47-.92,3.18-1.37,5.13-1.37s3.59.42,5.01,1.25c1.42.83,2.51,2,3.3,3.49.78,1.5,1.17,3.26,1.17,5.28v1.46l-17.27.04.08-2.62h13.31c0-1.69-.51-3.05-1.53-4.08-1.02-1.03-2.38-1.54-4.08-1.54-1.29,0-2.4.29-3.32.85-.92.57-1.62,1.4-2.1,2.5-.48,1.1-.72,2.41-.72,3.93,0,2.44.55,4.32,1.65,5.64,1.1,1.32,2.68,1.98,4.74,1.98,1.51,0,2.75-.31,3.71-.92.96-.61,1.61-1.5,1.94-2.66h3.63c-.49,2.16-1.55,3.84-3.17,5.03-1.62,1.19-3.68,1.79-6.18,1.79Z\" />\n <path d=\"M223.47,563.52h-3.88v-20.34h3.5l.41,3.12c.63-1.16,1.55-2.07,2.74-2.72,1.2-.65,2.51-.98,3.94-.98,2.64,0,4.59.76,5.85,2.29,1.26,1.53,1.9,3.59,1.9,6.2v12.44h-3.87v-11.56c0-2.05-.44-3.53-1.32-4.43-.88-.9-2.06-1.35-3.54-1.35-1.81,0-3.22.6-4.23,1.79-1,1.19-1.5,2.79-1.5,4.78v10.77Z\" />\n <path d=\"M248.98,564.02c-2.14,0-3.83-.57-5.05-1.71-1.22-1.14-1.83-2.62-1.83-4.45s.66-3.35,1.98-4.47c1.32-1.12,3.16-1.78,5.52-1.98l6.35-.5v-.58c0-1.14-.21-2.04-.62-2.72-.41-.68-.98-1.17-1.69-1.46-.71-.29-1.52-.44-2.43-.44-1.62,0-2.88.34-3.77,1.02-.89.68-1.34,1.64-1.34,2.89h-3.38c0-1.41.36-2.65,1.07-3.7.71-1.05,1.72-1.87,3.03-2.45,1.31-.58,2.82-.87,4.55-.87s3.14.3,4.39.89c1.25.6,2.23,1.5,2.93,2.7.7,1.21,1.05,2.72,1.05,4.55v12.77h-3.3l-.41-3.29c-.52,1.16-1.42,2.09-2.7,2.77-1.28.68-2.73,1.02-4.35,1.02ZM250.1,560.98c1.84,0,3.28-.56,4.33-1.68s1.57-2.64,1.57-4.55v-1.08l-5.15.42c-1.7.17-2.93.57-3.69,1.21-.76.64-1.13,1.46-1.13,2.45,0,1.08.36,1.89,1.09,2.43.73.54,1.72.81,2.99.81Z\" />\n </g>\n <g>\n <line x1=\".85\" y1=\"407.89\" x2=\"260.16\" y2=\"389.76\" />\n <rect x=\".53\" y=\"394.48\" width=\"259.94\" height=\"8.7\" transform=\"translate(-27.48 10.07) rotate(-4)\" />\n </g>\n <g>\n <line x1=\".85\" y1=\"607.92\" x2=\"260.16\" y2=\"589.79\" />\n <rect x=\".53\" y=\"594.51\" width=\"259.94\" height=\"8.7\" transform=\"translate(-41.42 10.55) rotate(-4)\" />\n </g>\n <g>\n <line x1=\".5\" y1=\"497.25\" x2=\"259.81\" y2=\"515.38\" />\n <rect x=\"125.8\" y=\"376.35\" width=\"8.7\" height=\"259.94\" transform=\"translate(-384.01 600.83) rotate(-86)\" />\n </g>\n </g>\n </BaseSvg>\n);\n\nexport const NdlaLogoNb = (props: LogoProps) => (\n <BaseSvg width={163} height={383} viewBox=\"0 0 260.29 611.89\" {...props}>\n <g fill=\"currentColor\">\n <g>\n <rect x=\".29\" width=\"52\" height=\"280\" />\n <polygon points=\"97.44 39.5 52.29 66 191.29 279.77 191.41 280 260.29 280 260.29 0 208.02 0 208.02 209.54 97.44 39.5\" />\n </g>\n <g>\n <g>\n <path d=\"M5.77,365.65H1.34v-32.9h4.43l17.94,27.3h-1.22v-27.3h4.43v32.9h-4.43l-17.94-27.3h1.22v27.3Z\" />\n <path d=\"M40.02,366.2c-2.35,0-4.2-.62-5.54-1.87-1.34-1.24-2.01-2.87-2.01-4.87s.72-3.66,2.17-4.89c1.45-1.23,3.46-1.95,6.06-2.16l6.96-.55v-.64c0-1.24-.23-2.24-.68-2.98-.45-.74-1.07-1.27-1.85-1.59-.78-.32-1.67-.48-2.67-.48-1.78,0-3.16.37-4.13,1.11-.98.74-1.47,1.8-1.47,3.16h-3.71c0-1.55.39-2.9,1.18-4.05.78-1.15,1.89-2.05,3.32-2.68,1.43-.64,3.1-.96,4.99-.96s3.44.33,4.81.98c1.37.65,2.44,1.64,3.21,2.96.77,1.32,1.15,2.98,1.15,4.98v13.97h-3.61l-.45-3.59c-.57,1.27-1.56,2.28-2.96,3.03-1.4.74-2.99,1.11-4.77,1.11ZM41.24,362.87c2.02,0,3.6-.61,4.75-1.84,1.14-1.23,1.72-2.89,1.72-4.98v-1.18l-5.65.46c-1.87.18-3.22.62-4.04,1.32-.83.7-1.24,1.59-1.24,2.68,0,1.18.4,2.07,1.2,2.66.8.59,1.89.89,3.28.89Z\" />\n <path d=\"M55.66,359.19h4.07c0,1.12.41,2.01,1.22,2.66.81.65,1.91.98,3.3.98,1.51,0,2.67-.3,3.48-.89.81-.59,1.22-1.39,1.22-2.39,0-.73-.22-1.33-.66-1.82-.44-.49-1.23-.88-2.37-1.18l-3.89-.91c-1.96-.49-3.41-1.23-4.36-2.23-.95-1-1.42-2.32-1.42-3.96,0-1.37.35-2.55,1.06-3.55.71-1,1.69-1.77,2.94-2.32,1.25-.55,2.69-.82,4.32-.82s3.03.29,4.23.86c1.19.58,2.12,1.38,2.8,2.41.68,1.03,1.03,2.26,1.06,3.69h-4.07c-.03-1.15-.41-2.05-1.13-2.68s-1.73-.96-3.03-.96-2.35.29-3.07.87c-.72.58-1.08,1.36-1.08,2.37,0,1.49,1.08,2.5,3.25,3.05l3.89.96c1.87.42,3.27,1.11,4.2,2.07.93.96,1.4,2.25,1.4,3.89,0,1.4-.38,2.62-1.13,3.66-.75,1.05-1.79,1.85-3.1,2.41-1.31.56-2.85.84-4.63.84-2.59,0-4.65-.64-6.19-1.91-1.54-1.27-2.3-2.97-2.3-5.1Z\" />\n <path d=\"M71.88,375.75l.72-3.87c.42.12.78.21,1.08.25.3.05.62.07.95.07,1.02,0,1.75-.3,2.19-.91.44-.61.66-1.53.66-2.78v-25.12h4.25v25.53c0,2.21-.59,3.97-1.76,5.28-1.17,1.3-2.83,1.96-4.97,1.96-.54,0-1.04-.03-1.49-.09-.45-.06-.99-.17-1.63-.32ZM79.61,338.12c-.78,0-1.45-.28-1.99-.84-.54-.56-.81-1.22-.81-1.98s.27-1.46.81-2c.54-.55,1.2-.82,1.99-.82s1.41.27,1.97.82c.56.55.84,1.21.84,2s-.28,1.42-.84,1.98c-.56.56-1.21.84-1.97.84Z\" />\n <path d=\"M86.2,354.5c0-2.28.5-4.29,1.49-6.05.99-1.76,2.36-3.14,4.09-4.14s3.71-1.5,5.94-1.5,4.2.5,5.92,1.5,3.07,2.38,4.07,4.14c.99,1.76,1.49,3.78,1.49,6.05s-.5,4.29-1.49,6.05-2.35,3.14-4.07,4.14-3.69,1.5-5.92,1.5-4.21-.5-5.94-1.5-3.1-2.38-4.09-4.14-1.49-3.78-1.49-6.05ZM90.5,354.5c0,1.55.31,2.91.93,4.09.62,1.18,1.47,2.11,2.55,2.78,1.08.67,2.33,1,3.75,1s2.67-.33,3.75-1c1.08-.67,1.94-1.59,2.55-2.78.62-1.18.93-2.55.93-4.09s-.31-2.95-.93-4.12c-.62-1.17-1.47-2.08-2.55-2.75s-2.33-1-3.75-1-2.67.33-3.75,1-1.94,1.58-2.55,2.75c-.62,1.17-.93,2.54-.93,4.12Z\" />\n <path d=\"M117.93,365.65h-4.25v-22.25h3.84l.45,3.41c.69-1.27,1.69-2.27,3.01-2.98,1.31-.71,2.75-1.07,4.32-1.07,2.89,0,5.03.83,6.42,2.5,1.39,1.67,2.08,3.93,2.08,6.78v13.6h-4.25v-12.65c0-2.24-.48-3.86-1.45-4.85-.96-.99-2.26-1.48-3.89-1.48-1.99,0-3.53.65-4.63,1.96-1.1,1.3-1.65,3.05-1.65,5.23v11.78Z\" />\n <path d=\"M145.9,366.2c-2.35,0-4.2-.62-5.54-1.87-1.34-1.24-2.01-2.87-2.01-4.87s.72-3.66,2.17-4.89c1.45-1.23,3.46-1.95,6.06-2.16l6.96-.55v-.64c0-1.24-.23-2.24-.68-2.98-.45-.74-1.07-1.27-1.85-1.59-.78-.32-1.67-.48-2.67-.48-1.78,0-3.16.37-4.13,1.11-.98.74-1.47,1.8-1.47,3.16h-3.71c0-1.55.39-2.9,1.18-4.05.78-1.15,1.89-2.05,3.32-2.68,1.43-.64,3.1-.96,4.99-.96s3.44.33,4.81.98c1.37.65,2.44,1.64,3.21,2.96.77,1.32,1.15,2.98,1.15,4.98v13.97h-3.61l-.45-3.59c-.57,1.27-1.56,2.28-2.96,3.03-1.4.74-2.99,1.11-4.77,1.11ZM147.12,362.87c2.02,0,3.6-.61,4.75-1.84,1.14-1.23,1.72-2.89,1.72-4.98v-1.18l-5.65.46c-1.87.18-3.22.62-4.04,1.32-.83.7-1.24,1.59-1.24,2.68,0,1.18.4,2.07,1.2,2.66.8.59,1.89.89,3.28.89Z\" />\n <path d=\"M167.68,365.65h-4.25v-33.49h4.25v33.49Z\" />\n </g>\n <g>\n <path d=\"M11.45,465.7c-2.13,0-3.97-.49-5.5-1.48s-2.71-2.36-3.54-4.12c-.83-1.76-1.24-3.76-1.24-6.01s.42-4.3,1.26-6.07c.84-1.77,2.04-3.18,3.61-4.21,1.56-1.03,3.43-1.55,5.59-1.55,1.71,0,3.24.36,4.58,1.07,1.34.71,2.38,1.77,3.13,3.16v-14.83h4.19v33.49h-3.79l-.36-4.05c-.72,1.49-1.78,2.62-3.18,3.41-1.4.79-2.98,1.18-4.76,1.18ZM12.3,461.83c1.44,0,2.68-.33,3.72-1,1.04-.67,1.84-1.59,2.41-2.78.57-1.18.86-2.55.86-4.1s-.29-2.9-.86-4.07c-.57-1.17-1.38-2.08-2.41-2.75-1.04-.67-2.28-1-3.72-1s-2.68.34-3.7,1.02c-1.02.68-1.8,1.61-2.34,2.78-.54,1.17-.81,2.51-.81,4.03s.27,2.91.81,4.1c.54,1.18,1.32,2.11,2.34,2.78,1.02.67,2.25,1,3.7,1Z\" />\n <path d=\"M31.51,437.62c-.75,0-1.41-.28-1.96-.84s-.83-1.22-.83-1.98.28-1.46.83-2,1.21-.82,1.96-.82,1.44.27,1.98.82c.54.55.81,1.21.81,2s-.27,1.42-.81,1.98c-.54.56-1.2.84-1.98.84ZM29.43,465.15v-22.25h4.24v22.25h-4.24Z\" />\n <path d=\"M38.18,453.46c0-2.09.42-3.98,1.26-5.67.84-1.68,2.04-3.03,3.61-4.03,1.56-1,3.41-1.5,5.55-1.5,1.98,0,3.68.48,5.09,1.43,1.41.96,2.42,2.28,3.02,3.98l-.54.59.45-5.37h3.79v21.34c0,2.34-.45,4.36-1.35,6.07-.9,1.71-2.18,3.04-3.83,3.98-1.65.94-3.61,1.41-5.86,1.41-3.01,0-5.47-.8-7.39-2.41-1.92-1.61-3.1-3.82-3.52-6.64h4.24c.27,1.64.99,2.91,2.16,3.82,1.17.91,2.67,1.37,4.51,1.37,2.07,0,3.73-.63,4.98-1.89,1.25-1.26,1.87-2.95,1.87-5.07v-6.28l.54.59c-.57,1.67-1.61,2.98-3.11,3.94-1.5.96-3.25,1.43-5.23,1.43-2.1,0-3.92-.49-5.46-1.48-1.53-.99-2.71-2.31-3.54-3.98-.83-1.67-1.24-3.55-1.24-5.64ZM42.42,453.37c0,1.4.28,2.65.83,3.78.56,1.12,1.34,2.02,2.34,2.68,1.01.67,2.19,1,3.54,1,1.44,0,2.67-.32,3.7-.96,1.02-.64,1.81-1.52,2.37-2.64.56-1.12.83-2.41.83-3.87s-.27-2.73-.81-3.82-1.32-1.96-2.34-2.59c-1.02-.64-2.25-.96-3.7-.96s-2.62.33-3.63,1c-1.01.67-1.78,1.55-2.32,2.66-.54,1.11-.81,2.34-.81,3.71Z\" />\n <path d=\"M68.39,437.62c-.75,0-1.41-.28-1.96-.84-.56-.56-.83-1.22-.83-1.98s.28-1.46.83-2c.56-.55,1.21-.82,1.96-.82s1.44.27,1.98.82c.54.55.81,1.21.81,2s-.27,1.42-.81,1.98c-.54.56-1.2.84-1.98.84ZM66.31,465.15v-22.25h4.24v22.25h-4.24Z\" />\n <path d=\"M74.11,442.9h12.8v3.59h-12.8v-3.59ZM86.73,461.42l.54,3.55c-1.14.46-2.36.68-3.65.68s-2.39-.25-3.29-.75c-.9-.5-1.59-1.25-2.07-2.25-.48-1-.72-2.24-.72-3.73v-22.98h4.24v22.39c0,1.27.26,2.18.79,2.71.53.53,1.21.8,2.05.8.66,0,1.37-.14,2.12-.41Z\" />\n <path d=\"M97.6,465.7c-2.34,0-4.19-.62-5.52-1.87-1.34-1.24-2.01-2.87-2.01-4.87s.72-3.66,2.16-4.89c1.44-1.23,3.46-1.95,6.04-2.16l6.94-.55v-.64c0-1.24-.23-2.24-.68-2.98-.45-.74-1.07-1.27-1.85-1.59-.78-.32-1.67-.48-2.66-.48-1.77,0-3.15.37-4.12,1.11-.98.74-1.47,1.8-1.47,3.16h-3.7c0-1.55.39-2.9,1.17-4.05.78-1.15,1.89-2.05,3.31-2.68,1.43-.64,3.09-.96,4.98-.96s3.43.33,4.8.98c1.37.65,2.43,1.64,3.2,2.96.77,1.32,1.15,2.98,1.15,4.98v13.97h-3.61l-.45-3.59c-.57,1.27-1.56,2.28-2.95,3.03-1.4.74-2.98,1.11-4.76,1.11ZM98.82,462.37c2.01,0,3.59-.61,4.73-1.84,1.14-1.23,1.71-2.89,1.71-4.98v-1.18l-5.64.46c-1.86.18-3.21.62-4.04,1.32-.83.7-1.24,1.59-1.24,2.68,0,1.18.4,2.07,1.19,2.66.8.59,1.89.89,3.27.89Z\" />\n <path d=\"M119.33,465.15h-4.24v-33.49h4.24v33.49Z\" />\n </g>\n <g>\n <path d=\"M5.94,564.15H1.7v-33.49h4.24v33.49Z\" />\n <path d=\"M10.85,557.92c0-2.21.74-3.88,2.23-4.98,1.49-1.11,3.43-1.68,5.84-1.71l7.08-.18v-1.32c0-1.64-.47-2.89-1.42-3.75-.95-.86-2.25-1.3-3.9-1.3s-3.05.38-4.01,1.14c-.96.76-1.44,1.81-1.44,3.14h-3.7c0-1.55.38-2.9,1.15-4.05.77-1.15,1.86-2.05,3.27-2.68,1.41-.64,3.02-.96,4.82-.96,1.92,0,3.55.38,4.89,1.14,1.34.76,2.29,1.77,2.86,3.05l-.86,13.88c-.69,1.64-1.83,2.94-3.43,3.91-1.59.97-3.46,1.46-5.59,1.46-2.5,0-4.42-.62-5.77-1.87-1.35-1.24-2.03-2.88-2.03-4.91ZM15.13,557.69c0,1.21.42,2.13,1.26,2.75.84.62,1.95.93,3.34.93,1.92,0,3.46-.56,4.6-1.68,1.14-1.12,1.71-2.59,1.71-4.41v-1.37l-6.09.18c-1.65.03-2.87.33-3.65.91-.78.58-1.17,1.47-1.17,2.68ZM46.96,553.82l-18.89.04.09-2.82h14.56c0-1.82-.55-3.31-1.65-4.46-1.1-1.15-2.59-1.73-4.49-1.73-1.44,0-2.67.33-3.67,1-1.01.67-1.78,1.58-2.32,2.73-.54,1.15-.81,2.5-.81,4.05,0,2.58.59,4.64,1.78,6.19,1.19,1.55,2.95,2.32,5.3,2.32,1.68,0,3.05-.34,4.1-1.02,1.05-.68,1.73-1.65,2.03-2.89h4.01c-.54,2.37-1.7,4.2-3.47,5.51-1.77,1.3-4.03,1.96-6.76,1.96-2.1,0-3.97-.49-5.59-1.46-1.62-.97-2.89-2.33-3.79-4.09-.9-1.76-1.35-3.79-1.35-6.1s.44-4.39,1.33-6.17c.89-1.77,2.12-3.15,3.7-4.14,1.58-.99,3.42-1.48,5.52-1.48s3.97.46,5.52,1.39c1.55.93,2.74,2.21,3.58,3.87.84,1.65,1.26,3.56,1.26,5.71v1.59Z\" />\n <path d=\"M64.1,541.72v3.91h-1.89c-2.01,0-3.6.58-4.76,1.75-1.16,1.17-1.74,2.83-1.74,4.98v11.78h-4.24v-22.2h3.97l.36,4.46h-.41c.3-1.46,1.02-2.65,2.16-3.57,1.14-.92,2.57-1.39,4.28-1.39.39,0,.76.02,1.1.07.35.05.73.11,1.15.21Z\" />\n <path d=\"M69.91,536.62c-.75,0-1.41-.28-1.96-.84s-.83-1.22-.83-1.98.28-1.46.83-2,1.21-.82,1.96-.82,1.44.27,1.98.82c.54.55.81,1.21.81,2s-.27,1.42-.81,1.98c-.54.56-1.2.84-1.98.84ZM67.84,564.15v-22.25h4.24v22.25h-4.24Z\" />\n <path d=\"M82.22,564.15h-4.24v-22.25h3.83l.45,3.41c.69-1.27,1.69-2.27,3-2.98,1.31-.71,2.74-1.07,4.31-1.07,2.89,0,5.02.83,6.4,2.5,1.38,1.67,2.07,3.93,2.07,6.78v13.6h-4.24v-12.65c0-2.24-.48-3.86-1.44-4.85-.96-.99-2.25-1.48-3.88-1.48-1.98,0-3.52.65-4.62,1.96-1.1,1.3-1.65,3.05-1.65,5.23v11.78Z\" />\n <path d=\"M102.28,552.46c0-2.09.42-3.98,1.26-5.67.84-1.68,2.04-3.03,3.61-4.03,1.56-1,3.41-1.5,5.55-1.5,1.98,0,3.68.48,5.09,1.43,1.41.96,2.42,2.28,3.02,3.98l-.54.59.45-5.37h3.79v21.34c0,2.34-.45,4.36-1.35,6.07-.9,1.71-2.18,3.04-3.83,3.98-1.65.94-3.61,1.41-5.86,1.41-3.01,0-5.47-.8-7.39-2.41-1.92-1.61-3.1-3.82-3.52-6.64h4.24c.27,1.64.99,2.91,2.16,3.82,1.17.91,2.67,1.37,4.51,1.37,2.07,0,3.73-.63,4.98-1.89,1.25-1.26,1.87-2.95,1.87-5.07v-6.28l.54.59c-.57,1.67-1.61,2.98-3.11,3.94-1.5.96-3.25,1.43-5.23,1.43-2.1,0-3.92-.49-5.46-1.48-1.53-.99-2.71-2.31-3.54-3.98-.83-1.67-1.24-3.55-1.24-5.64ZM106.52,552.37c0,1.4.28,2.65.83,3.78.56,1.12,1.34,2.02,2.34,2.68,1.01.67,2.19,1,3.54,1,1.44,0,2.67-.32,3.7-.96,1.02-.64,1.81-1.52,2.37-2.64.56-1.12.83-2.41.83-3.87s-.27-2.73-.81-3.82-1.32-1.96-2.34-2.59c-1.02-.64-2.25-.96-3.7-.96s-2.62.33-3.63,1c-1.01.67-1.78,1.55-2.32,2.66-.54,1.11-.81,2.34-.81,3.71Z\" />\n <path d=\"M128.61,557.69h4.06c0,1.12.41,2.01,1.22,2.66s1.91.98,3.29.98c1.5,0,2.66-.3,3.47-.89.81-.59,1.22-1.39,1.22-2.39,0-.73-.22-1.33-.65-1.82-.44-.49-1.23-.88-2.37-1.18l-3.88-.91c-1.95-.49-3.4-1.23-4.35-2.23s-1.42-2.32-1.42-3.96c0-1.37.35-2.55,1.06-3.55.71-1,1.68-1.77,2.93-2.32,1.25-.55,2.68-.82,4.31-.82s3.03.29,4.22.86c1.19.58,2.12,1.38,2.79,2.41s1.03,2.26,1.06,3.69h-4.06c-.03-1.15-.41-2.05-1.13-2.68s-1.73-.96-3.02-.96-2.34.29-3.07.87-1.08,1.36-1.08,2.37c0,1.49,1.08,2.5,3.25,3.05l3.88.96c1.86.42,3.26,1.11,4.19,2.07.93.96,1.4,2.25,1.4,3.89,0,1.4-.38,2.62-1.13,3.66-.75,1.05-1.78,1.85-3.09,2.41-1.31.56-2.85.84-4.62.84-2.59,0-4.64-.64-6.18-1.91-1.53-1.27-2.3-2.97-2.3-5.1Z\" />\n <path d=\"M156.83,564.7c-2.34,0-4.19-.62-5.52-1.87-1.34-1.24-2.01-2.87-2.01-4.87s.72-3.66,2.16-4.89c1.44-1.23,3.46-1.95,6.04-2.16l6.94-.55v-.64c0-1.24-.23-2.24-.68-2.98-.45-.74-1.07-1.27-1.85-1.59-.78-.32-1.67-.48-2.66-.48-1.77,0-3.15.37-4.12,1.11-.98.74-1.47,1.8-1.47,3.16h-3.7c0-1.55.39-2.9,1.17-4.05.78-1.15,1.89-2.05,3.31-2.68,1.43-.64,3.09-.96,4.98-.96s3.43.33,4.8.98c1.37.65,2.43,1.64,3.2,2.96.77,1.32,1.15,2.98,1.15,4.98v13.97h-3.61l-.45-3.59c-.57,1.27-1.56,2.28-2.95,3.03-1.4.74-2.98,1.11-4.76,1.11ZM158.05,561.37c2.01,0,3.59-.61,4.73-1.84,1.14-1.23,1.71-2.89,1.71-4.98v-1.18l-5.64.46c-1.86.18-3.21.62-4.04,1.32-.83.7-1.24,1.59-1.24,2.68,0,1.18.4,2.07,1.19,2.66.8.59,1.89.89,3.27.89Z\" />\n <path d=\"M186.86,541.72v3.91h-1.89c-2.01,0-3.6.58-4.76,1.75-1.16,1.17-1.74,2.83-1.74,4.98v11.78h-4.24v-22.2h3.97l.36,4.46h-.41c.3-1.46,1.02-2.65,2.16-3.57,1.14-.92,2.57-1.39,4.28-1.39.39,0,.76.02,1.1.07.35.05.73.11,1.15.21Z\" />\n <path d=\"M199.3,564.7c-2.13,0-4.03-.49-5.68-1.48-1.65-.99-2.95-2.35-3.88-4.09s-1.4-3.77-1.4-6.07.46-4.38,1.38-6.14c.92-1.76,2.18-3.14,3.79-4.14,1.61-1,3.48-1.5,5.61-1.5s3.93.46,5.48,1.37c1.55.91,2.75,2.18,3.61,3.82.86,1.64,1.29,3.56,1.29,5.78v1.59l-18.89.04.09-2.87h14.56c0-1.85-.56-3.34-1.67-4.46-1.11-1.12-2.6-1.68-4.46-1.68-1.41,0-2.62.31-3.63.93-1.01.62-1.77,1.53-2.3,2.73-.53,1.2-.79,2.63-.79,4.3,0,2.67.6,4.72,1.8,6.17,1.2,1.44,2.93,2.16,5.18,2.16,1.65,0,3.01-.33,4.06-1,1.05-.67,1.76-1.64,2.12-2.91h3.97c-.54,2.37-1.7,4.2-3.47,5.51-1.77,1.3-4.03,1.96-6.76,1.96Z\" />\n <path d=\"M218.24,564.15h-4.24v-22.25h3.83l.45,3.41c.69-1.27,1.69-2.27,3-2.98,1.31-.71,2.74-1.07,4.31-1.07,2.89,0,5.02.83,6.4,2.5,1.38,1.67,2.07,3.93,2.07,6.78v13.6h-4.24v-12.65c0-2.24-.48-3.86-1.44-4.85-.96-.99-2.25-1.48-3.88-1.48-1.98,0-3.52.65-4.62,1.96-1.1,1.3-1.65,3.05-1.65,5.23v11.78Z\" />\n <path d=\"M246.14,564.7c-2.34,0-4.19-.62-5.52-1.87-1.34-1.24-2.01-2.87-2.01-4.87s.72-3.66,2.16-4.89c1.44-1.23,3.46-1.95,6.04-2.16l6.94-.55v-.64c0-1.24-.23-2.24-.68-2.98-.45-.74-1.07-1.27-1.85-1.59-.78-.32-1.67-.48-2.66-.48-1.77,0-3.15.37-4.12,1.11-.98.74-1.47,1.8-1.47,3.16h-3.7c0-1.55.39-2.9,1.17-4.05.78-1.15,1.89-2.05,3.31-2.68,1.43-.64,3.09-.96,4.98-.96s3.43.33,4.8.98c1.37.65,2.43,1.64,3.2,2.96.77,1.32,1.15,2.98,1.15,4.98v13.97h-3.61l-.45-3.59c-.57,1.27-1.56,2.28-2.95,3.03-1.4.74-2.98,1.11-4.76,1.11ZM247.36,561.37c2.01,0,3.59-.61,4.73-1.84,1.14-1.23,1.71-2.89,1.71-4.98v-1.18l-5.64.46c-1.86.18-3.21.62-4.04,1.32-.83.7-1.24,1.59-1.24,2.68,0,1.18.4,2.07,1.19,2.66.8.59,1.89.89,3.27.89Z\" />\n </g>\n <g>\n <line x1=\".65\" y1=\"407.52\" x2=\"259.96\" y2=\"389.39\" />\n <rect x=\".34\" y=\"394.11\" width=\"259.94\" height=\"8.7\" transform=\"translate(-27.46 10.05) rotate(-4)\" />\n </g>\n <g>\n <line x1=\".65\" y1=\"607.55\" x2=\"259.96\" y2=\"589.42\" />\n <rect x=\".34\" y=\"594.14\" width=\"259.94\" height=\"8.7\" transform=\"translate(-41.4 10.54) rotate(-4)\" />\n </g>\n <g>\n <line x1=\".3\" y1=\"496.88\" x2=\"259.61\" y2=\"515.01\" />\n <rect x=\"125.61\" y=\"375.98\" width=\"8.7\" height=\"259.94\" transform=\"translate(-383.82 600.29) rotate(-86)\" />\n </g>\n </g>\n </g>\n </BaseSvg>\n);\n\nexport const NdlaLogoText = (props: LogoProps) => (\n <BaseSvg width={126} height={32} viewBox=\"0 0 1104 280\" {...props}>\n <g fill=\"currentColor\">\n <rect width=\"52\" height=\"280\" />\n <polygon points=\"97.15 39.5 52 66 191 279.77 191.12 280 260 280 260 0 207.73 0 207.73 209.54 97.15 39.5\" />\n <path d=\"M997.7,0h-51.51l-105.73,278.52-.46,1.48h52.87l22.45-64.2h112.33l22.45,64.2h53.9L997.7,0ZM1012.95,172.44h-82.25l41.01-105.17,41.24,105.17Z\" />\n <polygon points=\"681.18 0 629 0 629 280 797 280 797 231.99 681.18 231.99 681.18 0\" />\n <path d=\"M432.36,0h-100.36v280h102.98c19.9,0,38.55-3.41,55.61-10.13,16.72-6.72,31.27-16.39,43.32-28.68,12.05-12.18,21.49-27.09,28.09-44.16,6.71-17.41,10.01-36.31,10.01-56.46,0-40.86-13.42-75.92-38.78-101.64C507.87,13.43,472.96,0,432.36,0ZM518.56,140.57c0,28.11-8.07,51.45-23.54,67.61-15.35,16.16-37.64,24.7-64.48,24.7h-47.6V47.12h44.87c27.86,0,50.83,8.65,66.52,24.81,15.92,16.39,24.22,40.07,24.22,68.63Z\" />\n </g>\n </BaseSvg>\n);\n"],"mappings":";;;;;;;;;;;;AAkBA,MAAM,WAAW,EAAE,QAAQ,WAAW,eAAe,aAAa,MAAM,KAAK,SAAS,GAAG,YACvF,iBAAA,GAAA,kBAAA,KAACA,wBAAAA,OAAO,KAAR;CACE,OAAM;CACN,eAAa;CACb,KAAKC,wBAAAA,IAAI,IAAI,EAAE,OAAO,EAAE,QAAQ;CAChC,GAAI;CACJ,CAAA;AAGJ,MAAa,cAAc,UACzB,iBAAA,GAAA,kBAAA,KAAC,SAAD;CAAS,OAAO;CAAK,QAAQ;CAAK,SAAQ;CAAoB,GAAI;WAChE,iBAAA,GAAA,kBAAA,MAAC,KAAD;EAAG,MAAK;YAAR;GACE,iBAAA,GAAA,kBAAA,MAAC,KAAD,EAAA,UAAA,CACE,iBAAA,GAAA,kBAAA,KAAC,QAAD;IAAM,OAAM;IAAK,QAAO;IAAQ,CAAA,EAChC,iBAAA,GAAA,kBAAA,KAAC,WAAD,EAAS,QAAO,0FAA2F,CAAA,CACzG,EAAA,CAAA;GACJ,iBAAA,GAAA,kBAAA,MAA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IAAS,GAAE;IAAS,OAAM;IAAM,QAAO;IAAS,WAAU;IAA0C,CAAA,CAC1G,EAAA,CAAA;GACF,EAAA,CAAA,CACF;;CACI,CAAA;AAGZ,MAAa,gBAAgB,UAC3B,iBAAA,GAAA,kBAAA,KAAC,SAAD;CAAS,OAAO;CAAK,QAAQ;CAAI,SAAQ;CAAe,GAAI;WAC1D,iBAAA,GAAA,kBAAA,MAAC,KAAD;EAAG,MAAK;YAAR;GACE,iBAAA,GAAA,kBAAA,KAAC,QAAD;IAAM,OAAM;IAAK,QAAO;IAAQ,CAAA;GAChC,iBAAA,GAAA,kBAAA,KAAC,WAAD,EAAS,QAAO,0FAA2F,CAAA;GAC3G,iBAAA,GAAA,kBAAA,KAAC,QAAD,EAAM,GAAE,6IAA8I,CAAA;GACtJ,iBAAA,GAAA,kBAAA,KAAC,WAAD,EAAS,QAAO,oEAAqE,CAAA;GACrF,iBAAA,GAAA,kBAAA,KAAC,QAAD,EAAM,GAAE,8YAA+Y,CAAA;GACrZ;;CACI,CAAA"}
package/lib/Pagination.js CHANGED
@@ -1,7 +1,5 @@
1
1
  let _ark_ui_react = require("@ark-ui/react");
2
2
  let _ndla_styled_system_css = require("@ndla/styled-system/css");
3
- let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
4
-
5
3
  //#region src/Pagination.tsx
6
4
  /**
7
5
  * Copyright (c) 2024-present, NDLA.
@@ -10,7 +8,7 @@ let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
10
8
  * LICENSE file in the root directory of this source tree.
11
9
  *
12
10
  */
13
- const { withProvider, withContext } = (0, _ndla_styled_system_jsx.createStyleContext)((0, _ndla_styled_system_css.sva)({
11
+ const { withProvider, withContext } = (0, require("@ndla/styled-system/jsx").createStyleContext)((0, _ndla_styled_system_css.sva)({
14
12
  slots: _ark_ui_react.paginationAnatomy.keys(),
15
13
  base: {
16
14
  root: {
@@ -31,7 +29,6 @@ const PaginationEllipsis = withContext(_ark_ui_react.Pagination.Ellipsis, "ellip
31
29
  const PaginationContext = _ark_ui_react.Pagination.Context;
32
30
  const PaginationPrevTrigger = withContext(_ark_ui_react.Pagination.PrevTrigger, "prevTrigger", { baseComponent: true });
33
31
  const PaginationNextTrigger = withContext(_ark_ui_react.Pagination.NextTrigger, "nextTrigger", { baseComponent: true });
34
-
35
32
  //#endregion
36
33
  exports.PaginationContext = PaginationContext;
37
34
  exports.PaginationEllipsis = PaginationEllipsis;
@@ -39,4 +36,5 @@ exports.PaginationItem = PaginationItem;
39
36
  exports.PaginationNextTrigger = PaginationNextTrigger;
40
37
  exports.PaginationPrevTrigger = PaginationPrevTrigger;
41
38
  exports.PaginationRoot = PaginationRoot;
39
+
42
40
  //# sourceMappingURL=Pagination.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.js","names":["paginationAnatomy","Pagination"],"sources":["../src/Pagination.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Pagination, paginationAnatomy } from \"@ark-ui/react\";\nimport { sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\n\nconst paginationRecipe = sva({\n slots: paginationAnatomy.keys(),\n base: {\n root: {\n display: \"flex\",\n gap: \"xxsmall\",\n justifyContent: \"center\",\n },\n item: {\n fontVariantNumeric: \"tabular-nums\",\n },\n ellipsis: {\n display: \"inline-flex\",\n alignItems: \"center\",\n },\n },\n});\n\nconst { withProvider, withContext } = createStyleContext(paginationRecipe);\n\nexport interface PaginationRootProps extends Pagination.RootProps, StyledProps {\n translations: Pagination.RootProps[\"translations\"];\n}\n\nexport const PaginationRoot = withProvider(Pagination.Root, \"root\", { baseComponent: true });\n\nexport const PaginationItem = withContext(Pagination.Item, \"item\", { baseComponent: true });\n\nexport const PaginationEllipsis = withContext(Pagination.Ellipsis, \"ellipsis\", { baseComponent: true });\n\nexport const PaginationContext = Pagination.Context;\n\nexport const PaginationPrevTrigger = withContext(Pagination.PrevTrigger, \"prevTrigger\", { baseComponent: true });\n\nexport const PaginationNextTrigger = withContext(Pagination.NextTrigger, \"nextTrigger\", { baseComponent: true });\n"],"mappings":";;;;;;;;;;;;AA+BA,MAAM,EAAE,cAAc,iGAlBO;CAC3B,OAAOA,gCAAkB,MAAM;CAC/B,MAAM;EACJ,MAAM;GACJ,SAAS;GACT,KAAK;GACL,gBAAgB;GACjB;EACD,MAAM,EACJ,oBAAoB,gBACrB;EACD,UAAU;GACR,SAAS;GACT,YAAY;GACb;EACF;CACF,CAAC,CAEwE;AAM1E,MAAa,iBAAiB,aAAaC,yBAAW,MAAM,QAAQ,EAAE,eAAe,MAAM,CAAC;AAE5F,MAAa,iBAAiB,YAAYA,yBAAW,MAAM,QAAQ,EAAE,eAAe,MAAM,CAAC;AAE3F,MAAa,qBAAqB,YAAYA,yBAAW,UAAU,YAAY,EAAE,eAAe,MAAM,CAAC;AAEvG,MAAa,oBAAoBA,yBAAW;AAE5C,MAAa,wBAAwB,YAAYA,yBAAW,aAAa,eAAe,EAAE,eAAe,MAAM,CAAC;AAEhH,MAAa,wBAAwB,YAAYA,yBAAW,aAAa,eAAe,EAAE,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Pagination.js","names":["paginationAnatomy","Pagination"],"sources":["../src/Pagination.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Pagination, paginationAnatomy } from \"@ark-ui/react\";\nimport { sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\n\nconst paginationRecipe = sva({\n slots: paginationAnatomy.keys(),\n base: {\n root: {\n display: \"flex\",\n gap: \"xxsmall\",\n justifyContent: \"center\",\n },\n item: {\n fontVariantNumeric: \"tabular-nums\",\n },\n ellipsis: {\n display: \"inline-flex\",\n alignItems: \"center\",\n },\n },\n});\n\nconst { withProvider, withContext } = createStyleContext(paginationRecipe);\n\nexport interface PaginationRootProps extends Pagination.RootProps, StyledProps {\n translations: Pagination.RootProps[\"translations\"];\n}\n\nexport const PaginationRoot = withProvider(Pagination.Root, \"root\", { baseComponent: true });\n\nexport const PaginationItem = withContext(Pagination.Item, \"item\", { baseComponent: true });\n\nexport const PaginationEllipsis = withContext(Pagination.Ellipsis, \"ellipsis\", { baseComponent: true });\n\nexport const PaginationContext = Pagination.Context;\n\nexport const PaginationPrevTrigger = withContext(Pagination.PrevTrigger, \"prevTrigger\", { baseComponent: true });\n\nexport const PaginationNextTrigger = withContext(Pagination.NextTrigger, \"nextTrigger\", { baseComponent: true });\n"],"mappings":";;;;;;;;;;AA+BA,MAAM,EAAE,cAAc,iBAAA,sCAAA,qBAAA,GAAA,wBAAA,KAlBO;CAC3B,OAAOA,cAAAA,kBAAkB,MAAM;CAC/B,MAAM;EACJ,MAAM;GACJ,SAAS;GACT,KAAK;GACL,gBAAgB;GACjB;EACD,MAAM,EACJ,oBAAoB,gBACrB;EACD,UAAU;GACR,SAAS;GACT,YAAY;GACb;EACF;CACF,CAAC,CAEwE;AAM1E,MAAa,iBAAiB,aAAaC,cAAAA,WAAW,MAAM,QAAQ,EAAE,eAAe,MAAM,CAAC;AAE5F,MAAa,iBAAiB,YAAYA,cAAAA,WAAW,MAAM,QAAQ,EAAE,eAAe,MAAM,CAAC;AAE3F,MAAa,qBAAqB,YAAYA,cAAAA,WAAW,UAAU,YAAY,EAAE,eAAe,MAAM,CAAC;AAEvG,MAAa,oBAAoBA,cAAAA,WAAW;AAE5C,MAAa,wBAAwB,YAAYA,cAAAA,WAAW,aAAa,eAAe,EAAE,eAAe,MAAM,CAAC;AAEhH,MAAa,wBAAwB,YAAYA,cAAAA,WAAW,aAAa,eAAe,EAAE,eAAe,MAAM,CAAC"}
package/lib/Popover.js CHANGED
@@ -1,10 +1,9 @@
1
- const require_Text = require('./Text.js');
1
+ const require_Text = require("./Text.js");
2
2
  let _ark_ui_react = require("@ark-ui/react");
3
3
  let _ndla_styled_system_css = require("@ndla/styled-system/css");
4
4
  let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
6
  let react = require("react");
7
-
8
7
  //#region src/Popover.tsx
9
8
  /**
10
9
  * Copyright (c) 2024-present, NDLA.
@@ -74,7 +73,6 @@ const PopoverTitle = ({ textStyle = "title.medium", children, ...rest }) => /* @
74
73
  const PopoverTrigger = withContext(_ark_ui_react.Popover.Trigger, "trigger", { baseComponent: true });
75
74
  const PopoverRootProvider = withRootProvider(_ark_ui_react.Popover.RootProvider);
76
75
  const usePopover = _ark_ui_react.usePopover;
77
-
78
76
  //#endregion
79
77
  exports.PopoverAnchor = PopoverAnchor;
80
78
  exports.PopoverArrow = PopoverArrow;
@@ -91,4 +89,5 @@ exports.PopoverRootProvider = PopoverRootProvider;
91
89
  exports.PopoverTitle = PopoverTitle;
92
90
  exports.PopoverTrigger = PopoverTrigger;
93
91
  exports.usePopover = usePopover;
92
+
94
93
  //# sourceMappingURL=Popover.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","names":["popoverAnatomy","Popover","Heading","_usePopover"],"sources":["../src/Popover.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Popover, popoverAnatomy, usePopover as _usePopover } from \"@ark-ui/react\";\nimport { sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\nimport { forwardRef, type RefAttributes } from \"react\";\nimport { Heading, type TextProps } from \"./Text\";\n\nconst popoverRecipe = sva({\n slots: popoverAnatomy.keys(),\n base: {\n positioner: {\n maxHeight: \"inherit\",\n position: \"relative\",\n },\n content: {\n display: \"flex\",\n flexDirection: \"column\",\n padding: \"medium\",\n background: \"surface.default\",\n borderRadius: \"xsmall\",\n boxShadow: \"xlarge\",\n zIndex: \"popover\",\n maxWidth: \"var(--available-width)\",\n _open: {\n animation: \"fade-shift-in 0.2s ease-out\",\n _motionReduce: {\n animation: \"none\",\n },\n },\n _closed: {\n animation: \"fade-shift-out 0.2s ease-out\",\n _motionReduce: {\n animation: \"none\",\n },\n },\n },\n arrow: {\n \"--arrow-size\": \"sizes.xxsmall\",\n \"--arrow-background\": \"colors.surface.default\",\n },\n },\n});\n\nconst { withRootProvider, withContext } = createStyleContext(popoverRecipe);\n\nexport type PopoverRootProps = Popover.RootProps;\nconst InternalPopoverRoot = withRootProvider(Popover.Root);\n\nexport const PopoverRoot = ({ lazyMount = true, unmountOnExit = true, ...props }: PopoverRootProps) => (\n <InternalPopoverRoot lazyMount={lazyMount} unmountOnExit={unmountOnExit} {...props} />\n);\n\nexport const PopoverAnchor = withContext(Popover.Anchor, \"anchor\", { baseComponent: true });\n\nexport const PopoverArrowStandalone = withContext(Popover.Arrow, \"arrow\", { baseComponent: true });\n\ninterface PopoverArrowProps extends Popover.ArrowTipProps, StyledProps {}\n\nexport const PopoverArrow = (props: PopoverArrowProps) => (\n <PopoverArrowStandalone>\n <PopoverArrowTip {...props} />\n </PopoverArrowStandalone>\n);\n\nexport const PopoverArrowTip = withContext(Popover.ArrowTip, \"arrowTip\", { baseComponent: true });\n\nexport const PopoverCloseTrigger = withContext(Popover.CloseTrigger, \"closeTrigger\", { baseComponent: true });\n\nexport const PopoverContentStandalone = withContext(Popover.Content, \"content\", { baseComponent: true });\n\ninterface PopoverContentProps extends Popover.ContentProps, StyledProps {}\n\nexport const PopoverContent = forwardRef<HTMLDivElement, PopoverContentProps>((props, ref) => (\n <PopoverPositioner>\n <PopoverContentStandalone {...props} ref={ref} />\n </PopoverPositioner>\n));\n\nexport const PopoverDescription = withContext(Popover.Description, \"description\", { baseComponent: true });\n\nexport const PopoverIndicator = withContext(Popover.Indicator, \"indicator\", { baseComponent: true });\n\nexport const PopoverPositioner = withContext(Popover.Positioner, \"positioner\", { baseComponent: true });\n\nconst InternalPopoverTitle = withContext(Popover.Title, \"title\", { baseComponent: true });\n\ninterface PopoverTitleProps\n extends Omit<Popover.TitleProps, \"color\">, TextProps, StyledProps, RefAttributes<HTMLHeadingElement> {}\n\nexport const PopoverTitle = ({ textStyle = \"title.medium\", children, ...rest }: PopoverTitleProps) => (\n <Heading textStyle={textStyle} {...rest} asChild consumeCss>\n <InternalPopoverTitle>{children}</InternalPopoverTitle>\n </Heading>\n);\n\nexport const PopoverTrigger = withContext(Popover.Trigger, \"trigger\", { baseComponent: true });\n\nexport const PopoverRootProvider = withRootProvider(Popover.RootProvider);\n\nexport const usePopover = _usePopover;\n"],"mappings":";;;;;;;;;;;;;;;AAmDA,MAAM,EAAE,kBAAkB,iGApCA;CACxB,OAAOA,6BAAe,MAAM;CAC5B,MAAM;EACJ,YAAY;GACV,WAAW;GACX,UAAU;GACX;EACD,SAAS;GACP,SAAS;GACT,eAAe;GACf,SAAS;GACT,YAAY;GACZ,cAAc;GACd,WAAW;GACX,QAAQ;GACR,UAAU;GACV,OAAO;IACL,WAAW;IACX,eAAe,EACb,WAAW,QACZ;IACF;GACD,SAAS;IACP,WAAW;IACX,eAAe,EACb,WAAW,QACZ;IACF;GACF;EACD,OAAO;GACL,gBAAgB;GAChB,sBAAsB;GACvB;EACF;CACF,CAAC,CAEyE;AAG3E,MAAM,sBAAsB,iBAAiBC,sBAAQ,KAAK;AAE1D,MAAa,eAAe,EAAE,YAAY,MAAM,gBAAgB,MAAM,GAAG,YACvE,2CAAC;CAA+B;CAA0B;CAAe,GAAI;EAAS;AAGxF,MAAa,gBAAgB,YAAYA,sBAAQ,QAAQ,UAAU,EAAE,eAAe,MAAM,CAAC;AAE3F,MAAa,yBAAyB,YAAYA,sBAAQ,OAAO,SAAS,EAAE,eAAe,MAAM,CAAC;AAIlG,MAAa,gBAAgB,UAC3B,2CAAC,oCACC,2CAAC,mBAAgB,GAAI,QAAS,GACP;AAG3B,MAAa,kBAAkB,YAAYA,sBAAQ,UAAU,YAAY,EAAE,eAAe,MAAM,CAAC;AAEjG,MAAa,sBAAsB,YAAYA,sBAAQ,cAAc,gBAAgB,EAAE,eAAe,MAAM,CAAC;AAE7G,MAAa,2BAA2B,YAAYA,sBAAQ,SAAS,WAAW,EAAE,eAAe,MAAM,CAAC;AAIxG,MAAa,wCAAkE,OAAO,QACpF,2CAAC,+BACC,2CAAC;CAAyB,GAAI;CAAY;EAAO,GAC/B,CACpB;AAEF,MAAa,qBAAqB,YAAYA,sBAAQ,aAAa,eAAe,EAAE,eAAe,MAAM,CAAC;AAE1G,MAAa,mBAAmB,YAAYA,sBAAQ,WAAW,aAAa,EAAE,eAAe,MAAM,CAAC;AAEpG,MAAa,oBAAoB,YAAYA,sBAAQ,YAAY,cAAc,EAAE,eAAe,MAAM,CAAC;AAEvG,MAAM,uBAAuB,YAAYA,sBAAQ,OAAO,SAAS,EAAE,eAAe,MAAM,CAAC;AAKzF,MAAa,gBAAgB,EAAE,YAAY,gBAAgB,UAAU,GAAG,WACtE,2CAACC;CAAmB;CAAW,GAAI;CAAM;CAAQ;WAC/C,2CAAC,wBAAsB,WAAgC;EAC/C;AAGZ,MAAa,iBAAiB,YAAYD,sBAAQ,SAAS,WAAW,EAAE,eAAe,MAAM,CAAC;AAE9F,MAAa,sBAAsB,iBAAiBA,sBAAQ,aAAa;AAEzE,MAAa,aAAaE"}
1
+ {"version":3,"file":"Popover.js","names":["popoverAnatomy","Popover","Heading","_usePopover"],"sources":["../src/Popover.tsx"],"sourcesContent":["/**\n * Copyright (c) 2024-present, NDLA.\n *\n * This source code is licensed under the GPLv3 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { Popover, popoverAnatomy, usePopover as _usePopover } from \"@ark-ui/react\";\nimport { sva } from \"@ndla/styled-system/css\";\nimport { createStyleContext } from \"@ndla/styled-system/jsx\";\nimport type { StyledProps } from \"@ndla/styled-system/types\";\nimport { forwardRef, type RefAttributes } from \"react\";\nimport { Heading, type TextProps } from \"./Text\";\n\nconst popoverRecipe = sva({\n slots: popoverAnatomy.keys(),\n base: {\n positioner: {\n maxHeight: \"inherit\",\n position: \"relative\",\n },\n content: {\n display: \"flex\",\n flexDirection: \"column\",\n padding: \"medium\",\n background: \"surface.default\",\n borderRadius: \"xsmall\",\n boxShadow: \"xlarge\",\n zIndex: \"popover\",\n maxWidth: \"var(--available-width)\",\n _open: {\n animation: \"fade-shift-in 0.2s ease-out\",\n _motionReduce: {\n animation: \"none\",\n },\n },\n _closed: {\n animation: \"fade-shift-out 0.2s ease-out\",\n _motionReduce: {\n animation: \"none\",\n },\n },\n },\n arrow: {\n \"--arrow-size\": \"sizes.xxsmall\",\n \"--arrow-background\": \"colors.surface.default\",\n },\n },\n});\n\nconst { withRootProvider, withContext } = createStyleContext(popoverRecipe);\n\nexport type PopoverRootProps = Popover.RootProps;\nconst InternalPopoverRoot = withRootProvider(Popover.Root);\n\nexport const PopoverRoot = ({ lazyMount = true, unmountOnExit = true, ...props }: PopoverRootProps) => (\n <InternalPopoverRoot lazyMount={lazyMount} unmountOnExit={unmountOnExit} {...props} />\n);\n\nexport const PopoverAnchor = withContext(Popover.Anchor, \"anchor\", { baseComponent: true });\n\nexport const PopoverArrowStandalone = withContext(Popover.Arrow, \"arrow\", { baseComponent: true });\n\ninterface PopoverArrowProps extends Popover.ArrowTipProps, StyledProps {}\n\nexport const PopoverArrow = (props: PopoverArrowProps) => (\n <PopoverArrowStandalone>\n <PopoverArrowTip {...props} />\n </PopoverArrowStandalone>\n);\n\nexport const PopoverArrowTip = withContext(Popover.ArrowTip, \"arrowTip\", { baseComponent: true });\n\nexport const PopoverCloseTrigger = withContext(Popover.CloseTrigger, \"closeTrigger\", { baseComponent: true });\n\nexport const PopoverContentStandalone = withContext(Popover.Content, \"content\", { baseComponent: true });\n\ninterface PopoverContentProps extends Popover.ContentProps, StyledProps {}\n\nexport const PopoverContent = forwardRef<HTMLDivElement, PopoverContentProps>((props, ref) => (\n <PopoverPositioner>\n <PopoverContentStandalone {...props} ref={ref} />\n </PopoverPositioner>\n));\n\nexport const PopoverDescription = withContext(Popover.Description, \"description\", { baseComponent: true });\n\nexport const PopoverIndicator = withContext(Popover.Indicator, \"indicator\", { baseComponent: true });\n\nexport const PopoverPositioner = withContext(Popover.Positioner, \"positioner\", { baseComponent: true });\n\nconst InternalPopoverTitle = withContext(Popover.Title, \"title\", { baseComponent: true });\n\ninterface PopoverTitleProps\n extends Omit<Popover.TitleProps, \"color\">, TextProps, StyledProps, RefAttributes<HTMLHeadingElement> {}\n\nexport const PopoverTitle = ({ textStyle = \"title.medium\", children, ...rest }: PopoverTitleProps) => (\n <Heading textStyle={textStyle} {...rest} asChild consumeCss>\n <InternalPopoverTitle>{children}</InternalPopoverTitle>\n </Heading>\n);\n\nexport const PopoverTrigger = withContext(Popover.Trigger, \"trigger\", { baseComponent: true });\n\nexport const PopoverRootProvider = withRootProvider(Popover.RootProvider);\n\nexport const usePopover = _usePopover;\n"],"mappings":";;;;;;;;;;;;;;AAmDA,MAAM,EAAE,kBAAkB,iBAAA,GAAA,wBAAA,qBAAA,GAAA,wBAAA,KApCA;CACxB,OAAOA,cAAAA,eAAe,MAAM;CAC5B,MAAM;EACJ,YAAY;GACV,WAAW;GACX,UAAU;GACX;EACD,SAAS;GACP,SAAS;GACT,eAAe;GACf,SAAS;GACT,YAAY;GACZ,cAAc;GACd,WAAW;GACX,QAAQ;GACR,UAAU;GACV,OAAO;IACL,WAAW;IACX,eAAe,EACb,WAAW,QACZ;IACF;GACD,SAAS;IACP,WAAW;IACX,eAAe,EACb,WAAW,QACZ;IACF;GACF;EACD,OAAO;GACL,gBAAgB;GAChB,sBAAsB;GACvB;EACF;CACF,CAAC,CAEyE;AAG3E,MAAM,sBAAsB,iBAAiBC,cAAAA,QAAQ,KAAK;AAE1D,MAAa,eAA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,kBAAA,KAACC,aAAAA,SAAD;CAAoB;CAAW,GAAI;CAAM,SAAA;CAAQ,YAAA;WAC/C,iBAAA,GAAA,kBAAA,KAAC,sBAAD,EAAuB,UAAgC,CAAA;CAC/C,CAAA;AAGZ,MAAa,iBAAiB,YAAYD,cAAAA,QAAQ,SAAS,WAAW,EAAE,eAAe,MAAM,CAAC;AAE9F,MAAa,sBAAsB,iBAAiBA,cAAAA,QAAQ,aAAa;AAEzE,MAAa,aAAaE,cAAAA"}
package/lib/RadioGroup.js CHANGED
@@ -1,10 +1,9 @@
1
- const require_Text = require('./Text.js');
1
+ const require_Text = require("./Text.js");
2
2
  let _ark_ui_react = require("@ark-ui/react");
3
3
  let _ndla_styled_system_css = require("@ndla/styled-system/css");
4
4
  let _ndla_styled_system_jsx = require("@ndla/styled-system/jsx");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
6
  let react = require("react");
7
-
8
7
  //#region src/RadioGroup.tsx
9
8
  /**
10
9
  * Copyright (c) 2024-present, NDLA.
@@ -119,7 +118,6 @@ const RadioGroupLabel = (0, react.forwardRef)(({ textStyle = "label.large", font
119
118
  })
120
119
  }));
121
120
  const RadioGroupItemHiddenInput = _ark_ui_react.RadioGroup.ItemHiddenInput;
122
-
123
121
  //#endregion
124
122
  exports.RadioGroupIndicator = RadioGroupIndicator;
125
123
  exports.RadioGroupItem = RadioGroupItem;
@@ -128,4 +126,5 @@ exports.RadioGroupItemHiddenInput = RadioGroupItemHiddenInput;
128
126
  exports.RadioGroupItemText = RadioGroupItemText;
129
127
  exports.RadioGroupLabel = RadioGroupLabel;
130
128
  exports.RadioGroupRoot = RadioGroupRoot;
129
+
131
130
  //# sourceMappingURL=RadioGroup.js.map