@ogcio/design-system-react 1.31.0 → 1.32.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 (87) hide show
  1. package/dist/Heading.d.ts +5 -0
  2. package/dist/Heading.js +22 -0
  3. package/dist/alert/alert.d.ts +3 -0
  4. package/dist/alert/alert.js +46 -61
  5. package/dist/atoms/{DsButton.d.ts → Button.d.ts} +3 -3
  6. package/dist/atoms/{DsButton.js → Button.js} +20 -35
  7. package/dist/atoms/heading/H1.d.ts +3 -0
  8. package/dist/atoms/heading/H1.js +20 -0
  9. package/dist/atoms/heading/H2.d.ts +3 -0
  10. package/dist/atoms/heading/H2.js +20 -0
  11. package/dist/atoms/heading/H3.d.ts +3 -0
  12. package/dist/atoms/heading/H3.js +20 -0
  13. package/dist/atoms/heading/H4.d.ts +3 -0
  14. package/dist/atoms/heading/H4.js +20 -0
  15. package/dist/atoms/heading/H5.d.ts +3 -0
  16. package/dist/atoms/heading/H5.js +20 -0
  17. package/dist/atoms/heading/H6.d.ts +3 -0
  18. package/dist/atoms/heading/H6.js +20 -0
  19. package/dist/atoms/heading/index.d.ts +9 -0
  20. package/dist/atoms/heading/index.js +18 -0
  21. package/dist/atoms/heading/styles.d.ts +65 -0
  22. package/dist/atoms/heading/styles.js +17 -0
  23. package/dist/atoms/heading/types.d.ts +15 -0
  24. package/dist/atoms/heading/types.js +11 -0
  25. package/dist/atoms/heading/utils.d.ts +2 -0
  26. package/dist/atoms/heading/utils.js +5 -0
  27. package/dist/atoms/icons/ArrowLeft.d.ts +3 -0
  28. package/dist/atoms/icons/ArrowLeft.js +23 -0
  29. package/dist/atoms/icons/ArrowRight.d.ts +3 -0
  30. package/dist/atoms/icons/ArrowRight.js +23 -0
  31. package/dist/atoms/icons/CheckCircle.d.ts +3 -0
  32. package/dist/atoms/icons/CheckCircle.js +23 -0
  33. package/dist/atoms/icons/Error.d.ts +3 -0
  34. package/dist/atoms/icons/Error.js +23 -0
  35. package/dist/atoms/icons/FirstPage.d.ts +3 -0
  36. package/dist/atoms/icons/FirstPage.js +23 -0
  37. package/dist/atoms/icons/Info.d.ts +3 -0
  38. package/dist/atoms/icons/Info.js +23 -0
  39. package/dist/atoms/icons/KeyboardArrowLeft.d.ts +3 -0
  40. package/dist/atoms/icons/KeyboardArrowLeft.js +23 -0
  41. package/dist/atoms/icons/KeyboardArrowRight.d.ts +3 -0
  42. package/dist/atoms/icons/KeyboardArrowRight.js +23 -0
  43. package/dist/atoms/icons/LastPage.d.ts +3 -0
  44. package/dist/atoms/icons/LastPage.js +23 -0
  45. package/dist/atoms/icons/Warning.d.ts +3 -0
  46. package/dist/atoms/icons/Warning.js +23 -0
  47. package/dist/atoms/icons/index.d.ts +12 -2
  48. package/dist/atoms/icons/index.js +30 -10
  49. package/dist/atoms/icons/logos/LogoBlack.js +1 -1
  50. package/dist/atoms/icons/logos/LogoGoldGreen.js +1 -1
  51. package/dist/atoms/icons/logos/LogoGoldWhite.js +8 -8
  52. package/dist/atoms/icons/logos/LogoHarpBlack.js +1 -1
  53. package/dist/atoms/icons/logos/LogoWhite.js +1 -1
  54. package/dist/atoms/index.d.ts +2 -1
  55. package/dist/atoms/index.js +48 -12
  56. package/dist/atoms/storybook/Heading.meta.d.ts +60 -0
  57. package/dist/atoms/storybook/Heading.meta.js +70 -0
  58. package/dist/atoms/storybook/Icons.meta.d.ts +51 -0
  59. package/dist/atoms/storybook/Icons.meta.js +130 -0
  60. package/dist/atoms/storybook/InsetText.meta.d.ts +52 -0
  61. package/dist/atoms/storybook/InsetText.meta.js +64 -0
  62. package/dist/atoms/storybook/Logos.meta.d.ts +35 -0
  63. package/dist/atoms/storybook/Logos.meta.js +54 -0
  64. package/dist/breadcrumbs/breadcrumbs.js +20 -19
  65. package/dist/header/components/header-menu.js +21 -21
  66. package/dist/header/components/header-search.js +4 -4
  67. package/dist/icon/icon.js +85 -63
  68. package/dist/icon/icons.d.ts +1 -1
  69. package/dist/icons/index.d.ts +1 -1
  70. package/dist/icons/index.js +19 -10
  71. package/dist/index-Bh2cTIps.js +33899 -0
  72. package/dist/index.d.ts +1 -1
  73. package/dist/index.js +1 -1
  74. package/dist/input-text/input-text.js +1 -1
  75. package/dist/input-text/type.d.ts +1 -1
  76. package/dist/modal/modal.d.ts +1 -1
  77. package/dist/modal/modal.js +1 -1
  78. package/dist/pagination/pagination.js +139 -135
  79. package/dist/paragraph/paragraph.d.ts +1 -1
  80. package/dist/paragraph/paragraph.js +13 -11
  81. package/dist/side-nav/side-nav.js +4 -4
  82. package/dist/side-nav/types.d.ts +1 -1
  83. package/dist/styles.css +1 -1
  84. package/dist/table/table-pagination.js +17 -13
  85. package/package.json +6 -5
  86. package/dist/heading/heading.d.ts +0 -150
  87. package/dist/heading/heading.js +0 -50
@@ -1,24 +1,26 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  function w({
3
- as: e = "p",
4
- size: a = "md",
3
+ as: a = "p",
4
+ size: e = "md",
5
5
  align: r = "start",
6
6
  whitespace: t = "normal",
7
7
  children: s,
8
- style: i,
9
- className: p,
8
+ style: p,
9
+ className: i,
10
10
  id: n,
11
11
  ariaLabel: c,
12
12
  dataTestid: g
13
13
  }) {
14
14
  const u = (() => {
15
- switch (a) {
15
+ switch (e) {
16
+ case "xl":
17
+ return a === "p" ? "gi-paragraph-xl" : "gi-span-xl";
16
18
  case "lg":
17
- return e === "p" ? "gi-paragraph-lg" : "gi-span-lg";
19
+ return a === "p" ? "gi-paragraph-lg" : "gi-span-lg";
18
20
  case "sm":
19
- return e === "p" ? "gi-paragraph-sm" : "gi-span-sm";
21
+ return a === "p" ? "gi-paragraph-sm" : "gi-span-sm";
20
22
  default:
21
- return e === "p" ? "gi-paragraph-md" : "gi-span-md";
23
+ return a === "p" ? "gi-paragraph-md" : "gi-span-md";
22
24
  }
23
25
  })(), l = (() => {
24
26
  switch (r) {
@@ -44,11 +46,11 @@ function w({
44
46
  }
45
47
  })();
46
48
  return /* @__PURE__ */ m(
47
- e,
49
+ a,
48
50
  {
49
- className: `${u} ${l} ${h} ${p || ""}`,
51
+ className: `${u} ${l} ${h} ${i || ""}`,
50
52
  "aria-label": c,
51
- style: i,
53
+ style: p,
52
54
  id: n,
53
55
  "data-testid": g,
54
56
  children: s
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsxs as x, Fragment as R, jsx as s } from "react/jsx-runtime";
3
3
  import r, { memo as k, useEffect as V, useCallback as g, useState as $ } from "react";
4
- import { Button as q } from "../button/button.js";
4
+ import q from "../Heading.js";
5
+ import { Button as A } from "../button/button.js";
5
6
  import { cn as m } from "../cn.js";
6
- import { Heading as A } from "../heading/heading.js";
7
7
  import { Icon as z } from "../icon/icon.js";
8
8
  import { Link as G } from "../link/link.js";
9
9
  import { Paragraph as J } from "../paragraph/paragraph.js";
@@ -105,7 +105,7 @@ const C = r.createContext(
105
105
  )
106
106
  }
107
107
  ) : /* @__PURE__ */ s(
108
- q,
108
+ A,
109
109
  {
110
110
  variant: "flat",
111
111
  appearance: "dark",
@@ -168,7 +168,7 @@ const C = r.createContext(
168
168
  if (!r.useContext(C))
169
169
  throw new Error("SideNavHeading must be used within a SideNav");
170
170
  return /* @__PURE__ */ s(
171
- A,
171
+ q,
172
172
  {
173
173
  ...e,
174
174
  as: "h5",
@@ -1,4 +1,4 @@
1
- import { HeadingProps } from '../heading/heading.js';
1
+ import { Props as HeadingProps } from '../Heading.js';
2
2
  import { IconId } from '../icon/icon.js';
3
3
  export type SideNavItemProps = {
4
4
  value: string;