@ndla/primitives 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/LICENSE +674 -0
  2. package/dist/panda.buildinfo.json +426 -0
  3. package/dist/styles.css +1738 -0
  4. package/es/Accordion.js +103 -0
  5. package/es/ArticleLists.js +106 -0
  6. package/es/Badge.js +55 -0
  7. package/es/BlockQuote.js +49 -0
  8. package/es/Button.js +211 -0
  9. package/es/Checkbox.js +118 -0
  10. package/es/Dialog.js +329 -0
  11. package/es/ExpandableBox.js +55 -0
  12. package/es/FieldErrorMessage.js +44 -0
  13. package/es/FieldHelper.js +37 -0
  14. package/es/FormControl.js +163 -0
  15. package/es/FramedContent.js +54 -0
  16. package/es/Icon.js +71 -0
  17. package/es/Input.js +159 -0
  18. package/es/Label.js +104 -0
  19. package/es/Menu.js +171 -0
  20. package/es/MessageBox.js +57 -0
  21. package/es/NdlaLogo.js +284 -0
  22. package/es/Pagination.js +37 -0
  23. package/es/Popover.js +78 -0
  24. package/es/RadioGroup.js +136 -0
  25. package/es/Skeleton.js +31 -0
  26. package/es/Slider.js +102 -0
  27. package/es/Spinner.js +54 -0
  28. package/es/Switch.js +130 -0
  29. package/es/Table.js +75 -0
  30. package/es/Text.js +54 -0
  31. package/es/Toast.js +82 -0
  32. package/es/Tooltip.js +59 -0
  33. package/es/createStyleContext.js +62 -0
  34. package/es/index.js +19 -0
  35. package/lib/Accordion.d.ts +17 -0
  36. package/lib/Accordion.js +109 -0
  37. package/lib/ArticleLists.d.ts +20 -0
  38. package/lib/ArticleLists.js +115 -0
  39. package/lib/Badge.d.ts +33 -0
  40. package/lib/Badge.js +62 -0
  41. package/lib/BlockQuote.d.ts +28 -0
  42. package/lib/BlockQuote.js +56 -0
  43. package/lib/Button.d.ts +131 -0
  44. package/lib/Button.js +217 -0
  45. package/lib/Checkbox.d.ts +15 -0
  46. package/lib/Checkbox.js +125 -0
  47. package/lib/Dialog.d.ts +107 -0
  48. package/lib/Dialog.js +338 -0
  49. package/lib/ExpandableBox.d.ts +12 -0
  50. package/lib/ExpandableBox.js +63 -0
  51. package/lib/FieldErrorMessage.d.ts +11 -0
  52. package/lib/FieldErrorMessage.js +50 -0
  53. package/lib/FieldHelper.d.ts +11 -0
  54. package/lib/FieldHelper.js +43 -0
  55. package/lib/FormControl.d.ts +65 -0
  56. package/lib/FormControl.js +173 -0
  57. package/lib/FramedContent.d.ts +32 -0
  58. package/lib/FramedContent.js +61 -0
  59. package/lib/Icon.d.ts +37 -0
  60. package/lib/Icon.js +78 -0
  61. package/lib/Input.d.ts +20 -0
  62. package/lib/Input.js +165 -0
  63. package/lib/Label.d.ts +16 -0
  64. package/lib/Label.js +110 -0
  65. package/lib/Menu.d.ts +25 -0
  66. package/lib/Menu.js +179 -0
  67. package/lib/MessageBox.d.ts +33 -0
  68. package/lib/MessageBox.js +64 -0
  69. package/lib/NdlaLogo.d.ts +15 -0
  70. package/lib/NdlaLogo.js +293 -0
  71. package/lib/Pagination.d.ts +14 -0
  72. package/lib/Pagination.js +43 -0
  73. package/lib/Popover.d.ts +22 -0
  74. package/lib/Popover.js +87 -0
  75. package/lib/RadioGroup.d.ts +19 -0
  76. package/lib/RadioGroup.js +143 -0
  77. package/lib/Skeleton.d.ts +11 -0
  78. package/lib/Skeleton.js +38 -0
  79. package/lib/Slider.d.ts +17 -0
  80. package/lib/Slider.js +109 -0
  81. package/lib/Spinner.d.ts +26 -0
  82. package/lib/Spinner.js +61 -0
  83. package/lib/Switch.d.ts +21 -0
  84. package/lib/Switch.js +137 -0
  85. package/lib/Table.d.ts +10 -0
  86. package/lib/Table.js +82 -0
  87. package/lib/Text.d.ts +24 -0
  88. package/lib/Text.js +62 -0
  89. package/lib/Toast.d.ts +18 -0
  90. package/lib/Toast.js +90 -0
  91. package/lib/Tooltip.d.ts +16 -0
  92. package/lib/Tooltip.js +65 -0
  93. package/lib/createStyleContext.d.ts +27 -0
  94. package/lib/createStyleContext.js +69 -0
  95. package/lib/index.d.ts +28 -0
  96. package/lib/index.js +130 -0
  97. package/package.json +48 -0
package/es/NdlaLogo.js ADDED
@@ -0,0 +1,284 @@
1
+ /**
2
+ * Copyright (c) 2024-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ import { css, cx } from "@ndla/styled-system/css";
10
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
+ const BaseSvg = _ref => {
12
+ let {
13
+ color = "primary",
14
+ className,
15
+ ...props
16
+ } = _ref;
17
+ return /*#__PURE__*/_jsx("svg", {
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ className: cx(css({
20
+ color
21
+ }), className),
22
+ ...props
23
+ });
24
+ };
25
+ export const NdlaLogoEn = props => /*#__PURE__*/_jsx(BaseSvg, {
26
+ width: 163,
27
+ height: 383,
28
+ viewBox: "0 0 260.46 612.26",
29
+ ...props,
30
+ children: /*#__PURE__*/_jsxs("g", {
31
+ fill: "currentColor",
32
+ children: [/*#__PURE__*/_jsxs("g", {
33
+ children: [/*#__PURE__*/_jsx("rect", {
34
+ width: "52",
35
+ height: "280"
36
+ }), /*#__PURE__*/_jsx("polygon", {
37
+ 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"
38
+ })]
39
+ }), /*#__PURE__*/_jsxs("g", {
40
+ children: [/*#__PURE__*/_jsx("path", {
41
+ 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"
42
+ }), /*#__PURE__*/_jsx("path", {
43
+ 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"
44
+ }), /*#__PURE__*/_jsx("path", {
45
+ 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"
46
+ }), /*#__PURE__*/_jsx("path", {
47
+ 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"
48
+ }), /*#__PURE__*/_jsx("path", {
49
+ 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"
50
+ }), /*#__PURE__*/_jsx("path", {
51
+ 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"
52
+ }), /*#__PURE__*/_jsx("path", {
53
+ 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"
54
+ }), /*#__PURE__*/_jsx("path", {
55
+ 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"
56
+ }), /*#__PURE__*/_jsx("path", {
57
+ 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"
58
+ })]
59
+ }), /*#__PURE__*/_jsxs("g", {
60
+ children: [/*#__PURE__*/_jsx("path", {
61
+ 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"
62
+ }), /*#__PURE__*/_jsx("path", {
63
+ 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"
64
+ }), /*#__PURE__*/_jsx("path", {
65
+ 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"
66
+ }), /*#__PURE__*/_jsx("path", {
67
+ 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"
68
+ }), /*#__PURE__*/_jsx("path", {
69
+ 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"
70
+ }), /*#__PURE__*/_jsx("path", {
71
+ 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"
72
+ }), /*#__PURE__*/_jsx("path", {
73
+ d: "M109.26,465.52h-3.88v-30.62h3.88v30.62Z"
74
+ })]
75
+ }), /*#__PURE__*/_jsxs("g", {
76
+ children: [/*#__PURE__*/_jsx("path", {
77
+ d: "M5.5,563.52H1.62v-30.62h3.88v30.62Z"
78
+ }), /*#__PURE__*/_jsx("path", {
79
+ 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"
80
+ }), /*#__PURE__*/_jsx("path", {
81
+ 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"
82
+ }), /*#__PURE__*/_jsx("path", {
83
+ 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"
84
+ }), /*#__PURE__*/_jsx("path", {
85
+ 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"
86
+ }), /*#__PURE__*/_jsx("path", {
87
+ 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"
88
+ }), /*#__PURE__*/_jsx("path", {
89
+ 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"
90
+ }), /*#__PURE__*/_jsx("path", {
91
+ 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"
92
+ }), /*#__PURE__*/_jsx("path", {
93
+ 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"
94
+ }), /*#__PURE__*/_jsx("path", {
95
+ 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"
96
+ }), /*#__PURE__*/_jsx("path", {
97
+ 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"
98
+ }), /*#__PURE__*/_jsx("path", {
99
+ 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"
100
+ }), /*#__PURE__*/_jsx("path", {
101
+ 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"
102
+ })]
103
+ }), /*#__PURE__*/_jsxs("g", {
104
+ children: [/*#__PURE__*/_jsx("line", {
105
+ x1: ".85",
106
+ y1: "407.89",
107
+ x2: "260.16",
108
+ y2: "389.76"
109
+ }), /*#__PURE__*/_jsx("rect", {
110
+ x: ".53",
111
+ y: "394.48",
112
+ width: "259.94",
113
+ height: "8.7",
114
+ transform: "translate(-27.48 10.07) rotate(-4)"
115
+ })]
116
+ }), /*#__PURE__*/_jsxs("g", {
117
+ children: [/*#__PURE__*/_jsx("line", {
118
+ x1: ".85",
119
+ y1: "607.92",
120
+ x2: "260.16",
121
+ y2: "589.79"
122
+ }), /*#__PURE__*/_jsx("rect", {
123
+ x: ".53",
124
+ y: "594.51",
125
+ width: "259.94",
126
+ height: "8.7",
127
+ transform: "translate(-41.42 10.55) rotate(-4)"
128
+ })]
129
+ }), /*#__PURE__*/_jsxs("g", {
130
+ children: [/*#__PURE__*/_jsx("line", {
131
+ x1: ".5",
132
+ y1: "497.25",
133
+ x2: "259.81",
134
+ y2: "515.38"
135
+ }), /*#__PURE__*/_jsx("rect", {
136
+ x: "125.8",
137
+ y: "376.35",
138
+ width: "8.7",
139
+ height: "259.94",
140
+ transform: "translate(-384.01 600.83) rotate(-86)"
141
+ })]
142
+ })]
143
+ })
144
+ });
145
+ export const NdlaLogoNb = props => /*#__PURE__*/_jsx(BaseSvg, {
146
+ width: 163,
147
+ height: 383,
148
+ viewBox: "0 0 260.29 611.89",
149
+ ...props,
150
+ children: /*#__PURE__*/_jsxs("g", {
151
+ fill: "currentColor",
152
+ children: [/*#__PURE__*/_jsxs("g", {
153
+ children: [/*#__PURE__*/_jsx("rect", {
154
+ x: ".29",
155
+ width: "52",
156
+ height: "280"
157
+ }), /*#__PURE__*/_jsx("polygon", {
158
+ 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"
159
+ })]
160
+ }), /*#__PURE__*/_jsxs("g", {
161
+ children: [/*#__PURE__*/_jsxs("g", {
162
+ children: [/*#__PURE__*/_jsx("path", {
163
+ 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"
164
+ }), /*#__PURE__*/_jsx("path", {
165
+ 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"
166
+ }), /*#__PURE__*/_jsx("path", {
167
+ 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"
168
+ }), /*#__PURE__*/_jsx("path", {
169
+ 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"
170
+ }), /*#__PURE__*/_jsx("path", {
171
+ 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"
172
+ }), /*#__PURE__*/_jsx("path", {
173
+ 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"
174
+ }), /*#__PURE__*/_jsx("path", {
175
+ 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"
176
+ }), /*#__PURE__*/_jsx("path", {
177
+ d: "M167.68,365.65h-4.25v-33.49h4.25v33.49Z"
178
+ })]
179
+ }), /*#__PURE__*/_jsxs("g", {
180
+ children: [/*#__PURE__*/_jsx("path", {
181
+ 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"
182
+ }), /*#__PURE__*/_jsx("path", {
183
+ 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"
184
+ }), /*#__PURE__*/_jsx("path", {
185
+ 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"
186
+ }), /*#__PURE__*/_jsx("path", {
187
+ 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"
188
+ }), /*#__PURE__*/_jsx("path", {
189
+ 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"
190
+ }), /*#__PURE__*/_jsx("path", {
191
+ 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"
192
+ }), /*#__PURE__*/_jsx("path", {
193
+ d: "M119.33,465.15h-4.24v-33.49h4.24v33.49Z"
194
+ })]
195
+ }), /*#__PURE__*/_jsxs("g", {
196
+ children: [/*#__PURE__*/_jsx("path", {
197
+ d: "M5.94,564.15H1.7v-33.49h4.24v33.49Z"
198
+ }), /*#__PURE__*/_jsx("path", {
199
+ 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"
200
+ }), /*#__PURE__*/_jsx("path", {
201
+ 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"
202
+ }), /*#__PURE__*/_jsx("path", {
203
+ 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"
204
+ }), /*#__PURE__*/_jsx("path", {
205
+ 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"
206
+ }), /*#__PURE__*/_jsx("path", {
207
+ 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"
208
+ }), /*#__PURE__*/_jsx("path", {
209
+ 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"
210
+ }), /*#__PURE__*/_jsx("path", {
211
+ 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"
212
+ }), /*#__PURE__*/_jsx("path", {
213
+ 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"
214
+ }), /*#__PURE__*/_jsx("path", {
215
+ 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"
216
+ }), /*#__PURE__*/_jsx("path", {
217
+ 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"
218
+ }), /*#__PURE__*/_jsx("path", {
219
+ 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"
220
+ })]
221
+ }), /*#__PURE__*/_jsxs("g", {
222
+ children: [/*#__PURE__*/_jsx("line", {
223
+ x1: ".65",
224
+ y1: "407.52",
225
+ x2: "259.96",
226
+ y2: "389.39"
227
+ }), /*#__PURE__*/_jsx("rect", {
228
+ x: ".34",
229
+ y: "394.11",
230
+ width: "259.94",
231
+ height: "8.7",
232
+ transform: "translate(-27.46 10.05) rotate(-4)"
233
+ })]
234
+ }), /*#__PURE__*/_jsxs("g", {
235
+ children: [/*#__PURE__*/_jsx("line", {
236
+ x1: ".65",
237
+ y1: "607.55",
238
+ x2: "259.96",
239
+ y2: "589.42"
240
+ }), /*#__PURE__*/_jsx("rect", {
241
+ x: ".34",
242
+ y: "594.14",
243
+ width: "259.94",
244
+ height: "8.7",
245
+ transform: "translate(-41.4 10.54) rotate(-4)"
246
+ })]
247
+ }), /*#__PURE__*/_jsxs("g", {
248
+ children: [/*#__PURE__*/_jsx("line", {
249
+ x1: ".3",
250
+ y1: "496.88",
251
+ x2: "259.61",
252
+ y2: "515.01"
253
+ }), /*#__PURE__*/_jsx("rect", {
254
+ x: "125.61",
255
+ y: "375.98",
256
+ width: "8.7",
257
+ height: "259.94",
258
+ transform: "translate(-383.82 600.29) rotate(-86)"
259
+ })]
260
+ })]
261
+ })]
262
+ })
263
+ });
264
+ export const NdlaLogoText = props => /*#__PURE__*/_jsx(BaseSvg, {
265
+ width: 126,
266
+ height: 32,
267
+ viewBox: "0 0 1104 280",
268
+ ...props,
269
+ children: /*#__PURE__*/_jsxs("g", {
270
+ fill: "currentColor",
271
+ children: [/*#__PURE__*/_jsx("rect", {
272
+ width: "52",
273
+ height: "280"
274
+ }), /*#__PURE__*/_jsx("polygon", {
275
+ 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"
276
+ }), /*#__PURE__*/_jsx("path", {
277
+ 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"
278
+ }), /*#__PURE__*/_jsx("polygon", {
279
+ points: "681.18 0 629 0 629 280 797 280 797 231.99 681.18 231.99 681.18 0"
280
+ }), /*#__PURE__*/_jsx("path", {
281
+ 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"
282
+ })]
283
+ })
284
+ });
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Copyright (c) 2024-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ import { paginationAnatomy } from "@ark-ui/anatomy";
10
+ import { Pagination } from "@ark-ui/react";
11
+ import { sva } from "@ndla/styled-system/css";
12
+ import { createStyleContext } from "./createStyleContext";
13
+ const paginationRecipe = sva({
14
+ slots: paginationAnatomy.keys(),
15
+ base: {
16
+ root: {
17
+ display: "flex",
18
+ gap: "xxsmall"
19
+ },
20
+ item: {
21
+ fontVariantNumeric: "tabular-nums"
22
+ },
23
+ ellipsis: {
24
+ display: "inline-flex",
25
+ alignItems: "center"
26
+ }
27
+ }
28
+ });
29
+ const {
30
+ withProvider,
31
+ withContext
32
+ } = createStyleContext(paginationRecipe);
33
+ export const PaginationRoot = withProvider(Pagination.Root, "root");
34
+ export const PaginationItem = withContext(Pagination.Item, "item");
35
+ export const PaginationEllipsis = withContext(Pagination.Ellipsis, "ellipsis");
36
+ export const PaginationPrevTrigger = withContext(Pagination.PrevTrigger, "prevTrigger");
37
+ export const PaginationNextTrigger = withContext(Pagination.NextTrigger, "nextTrigger");
package/es/Popover.js ADDED
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Copyright (c) 2024-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ import { popoverAnatomy } from "@ark-ui/anatomy";
10
+ import { Popover } from "@ark-ui/react";
11
+ import { sva } from "@ndla/styled-system/css";
12
+ import { createStyleContext } from "./createStyleContext";
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ const popoverRecipe = sva({
15
+ slots: popoverAnatomy.keys(),
16
+ base: {
17
+ positioner: {
18
+ position: "relative"
19
+ },
20
+ content: {
21
+ display: "flex",
22
+ flexDirection: "column",
23
+ padding: "medium",
24
+ background: "surface.default",
25
+ borderRadius: "xsmall",
26
+ boxShadow: "xlarge",
27
+ zIndex: "popover",
28
+ maxWidth: "var(--available-width)",
29
+ _open: {
30
+ animation: "fade-shift-in 0.2s ease-out"
31
+ },
32
+ _closed: {
33
+ animation: "fade-shift-out 0.2s ease-out"
34
+ }
35
+ },
36
+ arrow: {
37
+ "--arrow-size": "sizes.xxsmall",
38
+ "--arrow-background": "colors.surface.default"
39
+ }
40
+ }
41
+ });
42
+ const {
43
+ withRootProvider,
44
+ withContext
45
+ } = createStyleContext(popoverRecipe);
46
+ const InternalPopoverRoot = withRootProvider(Popover.Root);
47
+ export const PopoverRoot = _ref => {
48
+ let {
49
+ lazyMount = true,
50
+ unmountOnExit = true,
51
+ ...props
52
+ } = _ref;
53
+ return /*#__PURE__*/_jsx(InternalPopoverRoot, {
54
+ lazyMount: lazyMount,
55
+ unmountOnExit: unmountOnExit,
56
+ ...props
57
+ });
58
+ };
59
+ export const PopoverAnchor = withContext(Popover.Anchor, "anchor");
60
+ export const PopoverArrowStandalone = withContext(Popover.Arrow, "arrow");
61
+ export const PopoverArrow = props => /*#__PURE__*/_jsx(PopoverArrowStandalone, {
62
+ children: /*#__PURE__*/_jsx(PopoverArrowTip, {
63
+ ...props
64
+ })
65
+ });
66
+ export const PopoverArrowTip = withContext(Popover.ArrowTip, "arrowTip");
67
+ export const PopoverCloseTrigger = withContext(Popover.CloseTrigger, "closeTrigger");
68
+ export const PopoverContentStandalone = withContext(Popover.Content, "content");
69
+ export const PopoverContent = props => /*#__PURE__*/_jsx(PopoverPositioner, {
70
+ children: /*#__PURE__*/_jsx(PopoverContentStandalone, {
71
+ ...props
72
+ })
73
+ });
74
+ export const PopoverDescription = withContext(Popover.Description, "description");
75
+ export const PopoverIndicator = withContext(Popover.Indicator, "indicator");
76
+ export const PopoverPositioner = withContext(Popover.Positioner, "positioner");
77
+ export const PopoverTitle = withContext(Popover.Title, "title");
78
+ export const PopoverTrigger = withContext(Popover.Trigger, "trigger");
@@ -0,0 +1,136 @@
1
+ /**
2
+ * Copyright (c) 2024-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ import { forwardRef } from "react";
10
+ import { radioGroupAnatomy } from "@ark-ui/anatomy";
11
+ import { RadioGroup } from "@ark-ui/react";
12
+ import { sva } from "@ndla/styled-system/css";
13
+ import { createStyleContext } from "./createStyleContext";
14
+ import { useFormControl } from "./FormControl";
15
+ import { Label } from "./Label";
16
+ import { Text } from "./Text";
17
+ import { jsx as _jsx } from "react/jsx-runtime";
18
+ const radioGroupRecipe = sva({
19
+ slots: radioGroupAnatomy.keys(),
20
+ base: {
21
+ root: {
22
+ display: "flex",
23
+ flexWrap: "wrap",
24
+ position: "relative",
25
+ gap: "small",
26
+ _vertical: {
27
+ flexDirection: "column"
28
+ },
29
+ _horizontal: {
30
+ flexDirection: "row"
31
+ }
32
+ },
33
+ itemControl: {
34
+ background: "surface.default",
35
+ borderColor: "stroke.subtle",
36
+ borderRadius: "full",
37
+ borderWidth: "2px",
38
+ width: "medium",
39
+ height: "medium",
40
+ outlineStyle: "solid",
41
+ outlineWidth: "4px",
42
+ outlineOffset: "-6px",
43
+ outlineColor: "surface.default",
44
+ transitionDuration: "normal",
45
+ transitionProperty: "background, border-color, box-shadow",
46
+ transitionTimingFunction: "default",
47
+ _hover: {
48
+ boxShadow: "0 0 0 4px var(--shadow-color)",
49
+ boxShadowColor: "surface.actionSubtle.hover.strong"
50
+ },
51
+ _checked: {
52
+ background: "stroke.default",
53
+ borderColor: "stroke.default"
54
+ },
55
+ _disabled: {
56
+ borderColor: "stroke.disabled",
57
+ _hover: {
58
+ borderColor: "stroke.disabled",
59
+ boxShadow: "none"
60
+ }
61
+ }
62
+ },
63
+ item: {
64
+ display: "flex",
65
+ alignItems: "center",
66
+ cursor: "pointer",
67
+ gap: "xxsmall",
68
+ _disabled: {
69
+ cursor: "not-allowed"
70
+ },
71
+ "&:has(input:focus-visible)": {
72
+ outline: "2px solid",
73
+ outlineOffset: "4xsmall",
74
+ outlineColor: "stroke.default",
75
+ borderRadius: "xsmall"
76
+ }
77
+ },
78
+ itemText: {
79
+ _hover: {
80
+ color: "text.action"
81
+ },
82
+ _disabled: {
83
+ color: "text.disabled",
84
+ _hover: {
85
+ color: "text.disabled"
86
+ }
87
+ }
88
+ }
89
+ }
90
+ });
91
+ const {
92
+ withProvider,
93
+ withContext
94
+ } = createStyleContext(radioGroupRecipe);
95
+ const InternalRadioGroupRoot = withProvider(RadioGroup.Root, "root");
96
+ export const RadioGroupRoot = /*#__PURE__*/forwardRef((props, ref) => {
97
+ const field = useFormControl(props);
98
+ return /*#__PURE__*/_jsx(InternalRadioGroupRoot, {
99
+ ...field,
100
+ ref: ref
101
+ });
102
+ });
103
+ export const RadioGroupIndicator = withContext(RadioGroup.Indicator, "indicator");
104
+ export const RadioGroupItemControl = withContext(RadioGroup.ItemControl, "itemControl");
105
+ export const RadioGroupItem = withContext(RadioGroup.Item, "item");
106
+ const InternalRadioGroupItemText = withContext(RadioGroup.ItemText, "itemText");
107
+ export const RadioGroupItemText = _ref => {
108
+ let {
109
+ textStyle = "label.medium",
110
+ ...props
111
+ } = _ref;
112
+ return /*#__PURE__*/_jsx(InternalRadioGroupItemText, {
113
+ asChild: true,
114
+ children: /*#__PURE__*/_jsx(Text, {
115
+ as: "span",
116
+ textStyle: textStyle,
117
+ ...props
118
+ })
119
+ });
120
+ };
121
+ export const InternalRadioGroupLabel = withContext(RadioGroup.Label, "label");
122
+ export const RadioGroupLabel = /*#__PURE__*/forwardRef((_ref2, ref) => {
123
+ let {
124
+ textStyle = "label.large",
125
+ ...props
126
+ } = _ref2;
127
+ return /*#__PURE__*/_jsx(InternalRadioGroupLabel, {
128
+ ref: ref,
129
+ asChild: true,
130
+ children: /*#__PURE__*/_jsx(Label, {
131
+ textStyle: textStyle,
132
+ ...props
133
+ })
134
+ });
135
+ });
136
+ export const RadioGroupItemHiddenInput = RadioGroup.ItemHiddenInput;
package/es/Skeleton.js ADDED
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright (c) 2024-present, NDLA.
3
+ *
4
+ * This source code is licensed under the GPLv3 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ */
8
+
9
+ import { ark } from "@ark-ui/react";
10
+ import { styled } from "@ndla/styled-system/jsx";
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
+ const StyledDiv = styled(ark.div, {
13
+ base: {
14
+ animation: "skeleton-pulse",
15
+ backgroundColor: "surface.disabled",
16
+ backgroundClip: "padding-box",
17
+ borderRadius: "xsmall",
18
+ color: "transparent",
19
+ cursor: "default",
20
+ pointerEvents: "none",
21
+ userSelect: "none",
22
+ "&::before, &::after, *": {
23
+ visibility: "hidden"
24
+ }
25
+ }
26
+ });
27
+ export const Skeleton = props => {
28
+ return /*#__PURE__*/_jsx(StyledDiv, {
29
+ ...props
30
+ });
31
+ };