@ogcio/design-system-react 1.31.1 → 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 (82) 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/index.d.ts +2 -1
  50. package/dist/atoms/index.js +48 -12
  51. package/dist/atoms/storybook/Heading.meta.d.ts +60 -0
  52. package/dist/atoms/storybook/Heading.meta.js +70 -0
  53. package/dist/atoms/storybook/Icons.meta.d.ts +51 -0
  54. package/dist/atoms/storybook/Icons.meta.js +130 -0
  55. package/dist/atoms/storybook/InsetText.meta.d.ts +52 -0
  56. package/dist/atoms/storybook/InsetText.meta.js +64 -0
  57. package/dist/atoms/storybook/Logos.meta.d.ts +35 -0
  58. package/dist/atoms/storybook/Logos.meta.js +54 -0
  59. package/dist/breadcrumbs/breadcrumbs.js +20 -19
  60. package/dist/header/components/header-menu.js +21 -21
  61. package/dist/header/components/header-search.js +4 -4
  62. package/dist/icon/icon.js +85 -63
  63. package/dist/icon/icons.d.ts +1 -1
  64. package/dist/icons/index.d.ts +1 -1
  65. package/dist/icons/index.js +19 -10
  66. package/dist/index-Bh2cTIps.js +33899 -0
  67. package/dist/index.d.ts +1 -1
  68. package/dist/index.js +1 -1
  69. package/dist/input-text/input-text.js +1 -1
  70. package/dist/input-text/type.d.ts +1 -1
  71. package/dist/modal/modal.d.ts +1 -1
  72. package/dist/modal/modal.js +1 -1
  73. package/dist/pagination/pagination.js +139 -135
  74. package/dist/paragraph/paragraph.d.ts +1 -1
  75. package/dist/paragraph/paragraph.js +13 -11
  76. package/dist/side-nav/side-nav.js +4 -4
  77. package/dist/side-nav/types.d.ts +1 -1
  78. package/dist/styles.css +1 -1
  79. package/dist/table/table-pagination.js +17 -13
  80. package/package.json +7 -6
  81. package/dist/heading/heading.d.ts +0 -150
  82. package/dist/heading/heading.js +0 -50
package/dist/icon/icon.js CHANGED
@@ -1,98 +1,120 @@
1
1
  "use client";
2
- import { jsx as m } from "react/jsx-runtime";
2
+ import { jsx as s } from "react/jsx-runtime";
3
3
  import { forwardRef as u } from "react";
4
- import x from "../atoms/icons/KeyboardArrowDown.js";
5
- import h from "../atoms/icons/KeyboardArrowUp.js";
6
- import w from "../atoms/icons/Close.js";
7
- import I from "../atoms/icons/Visibility.js";
8
- import S from "../atoms/icons/VisibilityOff.js";
9
- import { cn as l } from "../cn.js";
10
- import v from "./svgs/bluesky.js";
11
- import A from "./svgs/facebook.js";
12
- import R from "./svgs/instagram.js";
13
- import z from "./svgs/linkedin.js";
14
- import T from "./svgs/placeholder.js";
15
- import V from "./svgs/threads.js";
16
- import D from "./svgs/tiktok.js";
17
- import E from "./svgs/x.js";
18
- import F from "./svgs/youtube.js";
19
- const d = {
4
+ import x from "../atoms/icons/Close.js";
5
+ import A from "../atoms/icons/Visibility.js";
6
+ import I from "../atoms/icons/VisibilityOff.js";
7
+ import l from "../atoms/icons/KeyboardArrowLeft.js";
8
+ import p from "../atoms/icons/KeyboardArrowRight.js";
9
+ import v from "../atoms/icons/KeyboardArrowDown.js";
10
+ import R from "../atoms/icons/KeyboardArrowUp.js";
11
+ import L from "../atoms/icons/ArrowLeft.js";
12
+ import S from "../atoms/icons/ArrowRight.js";
13
+ import K from "../atoms/icons/FirstPage.js";
14
+ import P from "../atoms/icons/LastPage.js";
15
+ import z from "../atoms/icons/Info.js";
16
+ import E from "../atoms/icons/Error.js";
17
+ import F from "../atoms/icons/Warning.js";
18
+ import T from "../atoms/icons/CheckCircle.js";
19
+ import { cn as f } from "../cn.js";
20
+ import V from "./svgs/bluesky.js";
21
+ import D from "./svgs/facebook.js";
22
+ import G from "./svgs/instagram.js";
23
+ import N from "./svgs/linkedin.js";
24
+ import O from "./svgs/placeholder.js";
25
+ import Y from "./svgs/threads.js";
26
+ import $ from "./svgs/tiktok.js";
27
+ import j from "./svgs/x.js";
28
+ import B from "./svgs/youtube.js";
29
+ const g = {
20
30
  sm: "16px",
21
31
  md: "24px",
22
32
  lg: "32px",
23
33
  xl: "48px"
24
- }, G = {
25
- social_bluesky: { Component: v, disabledClass: "gi-stroke-gray-700" },
26
- social_facebook: { Component: A, disabledClass: "gi-stroke-gray-700" },
34
+ }, M = {
35
+ social_bluesky: { Component: V, disabledClass: "gi-stroke-gray-700" },
36
+ social_facebook: { Component: D, disabledClass: "gi-stroke-gray-700" },
27
37
  social_instagram: {
28
- Component: R,
38
+ Component: G,
29
39
  disabledClass: "gi-stroke-gray-700"
30
40
  },
31
- social_linkedin: { Component: z, disabledClass: "gi-stroke-gray-700" },
32
- social_threads: { Component: V, disabledClass: "gi-stroke-gray-700" },
33
- social_tiktok: { Component: D, disabledClass: "gi-stroke-gray-700" },
34
- social_x: { Component: E, disabledClass: "gi-stroke-gray-700" },
35
- social_youtube: { Component: F, disabledClass: "gi-stroke-gray-700" },
36
- placeholder: { Component: T },
37
- keyboard_arrow_down: { Component: x },
38
- keyboard_arrow_up: { Component: h },
39
- close: { Component: w },
40
- visibility: { Component: I },
41
- visibility_off: { Component: S }
42
- }, W = u(
41
+ social_linkedin: { Component: N, disabledClass: "gi-stroke-gray-700" },
42
+ social_threads: { Component: Y, disabledClass: "gi-stroke-gray-700" },
43
+ social_tiktok: { Component: $, disabledClass: "gi-stroke-gray-700" },
44
+ social_x: { Component: j, disabledClass: "gi-stroke-gray-700" },
45
+ social_youtube: { Component: B, disabledClass: "gi-stroke-gray-700" },
46
+ placeholder: { Component: O },
47
+ keyboard_arrow_down: { Component: v },
48
+ keyboard_arrow_up: { Component: R },
49
+ close: { Component: x },
50
+ visibility: { Component: A },
51
+ visibility_off: { Component: I },
52
+ info: { Component: z },
53
+ error: { Component: E },
54
+ warning: { Component: F },
55
+ check_circle: { Component: T },
56
+ keyboard_arrow_left: { Component: l },
57
+ keyboard_arrow_right: { Component: p },
58
+ chevron_left: { Component: l },
59
+ chevron_right: { Component: p },
60
+ arrow_left_alt: { Component: L },
61
+ arrow_right_alt: { Component: S },
62
+ first_page: { Component: K },
63
+ last_page: { Component: P }
64
+ }, ho = u(
43
65
  ({
44
- icon: r,
45
- size: g = "md",
46
- filled: p,
47
- disabled: s,
66
+ icon: i,
67
+ size: d = "md",
68
+ filled: C,
69
+ disabled: e,
48
70
  ariaHidden: c,
49
- ariaLabel: e,
71
+ ariaLabel: n,
50
72
  inline: o,
51
- className: a,
52
- onClick: f,
53
- useFontIcon: C,
54
- ...i
55
- }, b) => {
56
- const t = d[g] ?? d.md, n = G[String(r)];
57
- if (n && !C) {
58
- const { Component: k, disabledClass: y } = n, _ = l(
73
+ className: m,
74
+ onClick: b,
75
+ useFontIcon: k,
76
+ ...r
77
+ }, y) => {
78
+ const t = g[d] ?? g.md, a = M[String(i)];
79
+ if (a && !k) {
80
+ const { Component: _, disabledClass: h } = a, w = f(
59
81
  { "gi-block": !o, "gi-inline-block": o },
60
82
  "gi-shrink-0",
61
- s && (y || "gi-fill-gray-700"),
62
- a
83
+ e && (h || "gi-fill-gray-700"),
84
+ m
63
85
  );
64
- return /* @__PURE__ */ m(k, { size: t, className: _ });
86
+ return /* @__PURE__ */ s(_, { size: t, className: w });
65
87
  }
66
- return /* @__PURE__ */ m(
88
+ return /* @__PURE__ */ s(
67
89
  "span",
68
90
  {
69
91
  "aria-hidden": c,
70
- "aria-label": e,
92
+ "aria-label": n,
71
93
  "data-testid": "govie-icon",
72
- ...i,
73
- ref: b,
74
- onClick: f,
75
- role: e ? "img" : "presentation",
76
- className: l(
94
+ ...r,
95
+ ref: y,
96
+ onClick: b,
97
+ role: n ? "img" : "presentation",
98
+ className: f(
77
99
  {
78
100
  "gi-block": !o,
79
101
  "gi-inline-block": o,
80
- "gi-text-gray-700": s
102
+ "gi-text-gray-700": e
81
103
  },
82
104
  "material-symbols-outlined",
83
- a
105
+ m
84
106
  ),
85
107
  style: {
86
108
  fontSize: t,
87
- fontVariationSettings: `'FILL' ${p ? 1 : 0}, 'wght' 400, 'GRAD' 0, 'opsz' ${t}`,
88
- ...i == null ? void 0 : i.style
109
+ fontVariationSettings: `'FILL' ${C ? 1 : 0}, 'wght' 400, 'GRAD' 0, 'opsz' ${t}`,
110
+ ...r == null ? void 0 : r.style
89
111
  },
90
- children: r
112
+ children: i
91
113
  }
92
114
  );
93
115
  }
94
116
  );
95
117
  export {
96
- W as Icon,
97
- W as default
118
+ ho as Icon,
119
+ ho as default
98
120
  };
@@ -1,2 +1,2 @@
1
1
  export declare const iconIds: readonly ["accessibility_new", "add_circle", "apps", "arrow_back", "arrow_downward", "arrow_drop_down", "arrow_drop_up", "arrow_forward", "arrow_left_alt", "arrow_outward", "arrow_right_alt", "arrow_upward", "attach_file", "block", "call", "cancel", "candlestick_chart", "chat_bubble", "check", "check_circle", "chevron_left", "chevron_right", "child_care", "close", "content_copy", "credit_card", "delete", "directions_car", "do_not_disturb_on", "download", "edit", "error", "event", "filter_list", "health_and_safety", "home", "info", "keyboard_arrow_down", "keyboard_arrow_up", "link", "location_on", "login", "logout", "mail", "menu", "mic", "more_horiz", "more_vert", "open_in_new", "person", "person_cancel", "person_check", "refresh", "search", "send", "settings", "sort", "space_dashboard", "sync", "swap_vert", "thumb_down", "thumb_up", "unfold_more", "upload", "visibility", "visibility_off", "warning", "work", "social_bluesky", "social_facebook", "social_instagram", "social_linkedin", "social_threads", "social_tiktok", "social_x", "social_youtube", "placeholder", "first_page", "last_page"];
2
- export declare const Icons: ("search" | "link" | "sort" | "menu" | "keyboard_arrow_down" | "keyboard_arrow_up" | "close" | "visibility" | "accessibility_new" | "add_circle" | "apps" | "arrow_back" | "arrow_downward" | "arrow_drop_down" | "arrow_drop_up" | "arrow_forward" | "arrow_left_alt" | "arrow_outward" | "arrow_right_alt" | "arrow_upward" | "attach_file" | "block" | "call" | "cancel" | "candlestick_chart" | "chat_bubble" | "check" | "check_circle" | "chevron_left" | "chevron_right" | "child_care" | "content_copy" | "credit_card" | "delete" | "directions_car" | "do_not_disturb_on" | "download" | "edit" | "error" | "event" | "filter_list" | "health_and_safety" | "home" | "info" | "location_on" | "login" | "logout" | "mail" | "mic" | "more_horiz" | "more_vert" | "open_in_new" | "person" | "person_cancel" | "person_check" | "refresh" | "send" | "settings" | "space_dashboard" | "sync" | "swap_vert" | "thumb_down" | "thumb_up" | "unfold_more" | "upload" | "visibility_off" | "warning" | "work" | "social_bluesky" | "social_facebook" | "social_instagram" | "social_linkedin" | "social_threads" | "social_tiktok" | "social_x" | "social_youtube" | "placeholder" | "first_page" | "last_page")[];
2
+ export declare const Icons: ("search" | "link" | "sort" | "menu" | "close" | "visibility" | "keyboard_arrow_down" | "keyboard_arrow_up" | "first_page" | "last_page" | "info" | "error" | "warning" | "check_circle" | "accessibility_new" | "add_circle" | "apps" | "arrow_back" | "arrow_downward" | "arrow_drop_down" | "arrow_drop_up" | "arrow_forward" | "arrow_left_alt" | "arrow_outward" | "arrow_right_alt" | "arrow_upward" | "attach_file" | "block" | "call" | "cancel" | "candlestick_chart" | "chat_bubble" | "check" | "chevron_left" | "chevron_right" | "child_care" | "content_copy" | "credit_card" | "delete" | "directions_car" | "do_not_disturb_on" | "download" | "edit" | "event" | "filter_list" | "health_and_safety" | "home" | "location_on" | "login" | "logout" | "mail" | "mic" | "more_horiz" | "more_vert" | "open_in_new" | "person" | "person_cancel" | "person_check" | "refresh" | "send" | "settings" | "space_dashboard" | "sync" | "swap_vert" | "thumb_down" | "thumb_up" | "unfold_more" | "upload" | "visibility_off" | "work" | "social_bluesky" | "social_facebook" | "social_instagram" | "social_linkedin" | "social_threads" | "social_tiktok" | "social_x" | "social_youtube" | "placeholder")[];
@@ -1 +1 @@
1
- export { Close, KeyboardArrowDown, KeyboardArrowUp, Visibility, VisibilityOff, } from '../atoms/icons';
1
+ export { Close, KeyboardArrowDown, KeyboardArrowUp, Visibility, VisibilityOff, CheckCircle, Error, Info, Warning, } from '../atoms/icons';
@@ -1,12 +1,21 @@
1
- import { default as e } from "../atoms/icons/KeyboardArrowDown.js";
2
- import { default as f } from "../atoms/icons/KeyboardArrowUp.js";
3
- import { default as i } from "../atoms/icons/Close.js";
4
- import { default as s } from "../atoms/icons/Visibility.js";
5
- import { default as p } from "../atoms/icons/VisibilityOff.js";
1
+ import { default as a } from "../atoms/icons/Close.js";
2
+ import { default as t } from "../atoms/icons/Visibility.js";
3
+ import { default as s } from "../atoms/icons/VisibilityOff.js";
4
+ import "react/jsx-runtime";
5
+ import { default as i } from "../atoms/icons/KeyboardArrowDown.js";
6
+ import { default as m } from "../atoms/icons/KeyboardArrowUp.js";
7
+ import { default as x } from "../atoms/icons/Info.js";
8
+ import { default as n } from "../atoms/icons/Error.js";
9
+ import { default as w } from "../atoms/icons/Warning.js";
10
+ import { default as c } from "../atoms/icons/CheckCircle.js";
6
11
  export {
7
- i as Close,
8
- e as KeyboardArrowDown,
9
- f as KeyboardArrowUp,
10
- s as Visibility,
11
- p as VisibilityOff
12
+ c as CheckCircle,
13
+ a as Close,
14
+ n as Error,
15
+ x as Info,
16
+ i as KeyboardArrowDown,
17
+ m as KeyboardArrowUp,
18
+ t as Visibility,
19
+ s as VisibilityOff,
20
+ w as Warning
12
21
  };