@ogcio/design-system-react 1.12.0 → 1.12.2

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 (39) hide show
  1. package/dist/accordion/accordion-item.js +1 -1
  2. package/dist/alert/alert.js +1 -1
  3. package/dist/autocomplete/autocomplete.js +4 -4
  4. package/dist/button-group/button-group.js +44 -44
  5. package/dist/card/card-next.js +28 -28
  6. package/dist/combo-box/dropdown-item.js +30 -30
  7. package/dist/drawer/drawer.content.js +6 -6
  8. package/dist/drawer/drawer.js +8 -8
  9. package/dist/error-text/error-text.js +1 -1
  10. package/dist/forms/form-field/form-field.js +1 -1
  11. package/dist/forms/form-field-with-tag/form-field-with-tag.js +1 -1
  12. package/dist/heading/heading.js +1 -1
  13. package/dist/hint-text/hint-text.js +1 -1
  14. package/dist/icon/icon.js +32 -32
  15. package/dist/{index-CB-zPpNk.js → index-DNkhmzZp.js} +44 -44
  16. package/dist/index-ntYL1VRC.js +64 -0
  17. package/dist/input-checkbox/input-checkbox.js +13 -13
  18. package/dist/input-password/input-password.d.ts +2 -1
  19. package/dist/input-password/input-password.js +30 -26
  20. package/dist/input-radio/input-radio.js +15 -15
  21. package/dist/label/label.js +1 -1
  22. package/dist/link/link.js +1 -1
  23. package/dist/list/list.js +2 -2
  24. package/dist/modal/modal.content.js +1 -1
  25. package/dist/modal/modal.js +3 -3
  26. package/dist/popover/popover.js +466 -464
  27. package/dist/primitives/anchor.js +1 -1
  28. package/dist/progress-bar/progress-bar.js +8 -8
  29. package/dist/progress-stepper/progress-stepper.js +10 -10
  30. package/dist/score-select/score-select.js +29 -29
  31. package/dist/side-nav/side-nav.js +23 -23
  32. package/dist/spinner/spinner.js +1 -1
  33. package/dist/stack/stack.js +2 -2
  34. package/dist/table/table.js +1 -1
  35. package/dist/textarea/textarea.js +7 -7
  36. package/dist/toast/ds-toast.js +1 -1
  37. package/dist/tooltip/tooltip.js +1 -1
  38. package/package.json +5 -6
  39. package/dist/index-2sRBqKFV.js +0 -78
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { jsx as t, Fragment as c, jsxs as o } from "react/jsx-runtime";
2
+ import { jsx as e, Fragment as c, jsxs as o } from "react/jsx-runtime";
3
3
  import { useId as p } from "react";
4
4
  import { cn as n } from "../cn.js";
5
5
  import { HintText as u } from "../hint-text/hint-text.js";
6
6
  import { InputText as f } from "../input-text/input-text.js";
7
7
  import { Label as h } from "../label/label.js";
8
- import { Input as v } from "../primitives/input.js";
8
+ import { Input as x } from "../primitives/input.js";
9
9
  import { InputRadioSizeEnum as d } from "./types.js";
10
- const x = (r) => {
10
+ const v = (r) => {
11
11
  let i = "gi-input-radio-medium";
12
12
  return r === d.Large && (i = "gi-input-radio-large"), r === d.Small && (i = "gi-input-radio-small"), i;
13
13
  }, y = (r) => {
@@ -17,20 +17,20 @@ const x = (r) => {
17
17
  label: r,
18
18
  hint: i,
19
19
  id: s,
20
- size: e = "md",
20
+ size: t = "md",
21
21
  conditionalInput: a,
22
22
  checked: l,
23
23
  ...g
24
24
  }) => {
25
25
  const m = s ?? p();
26
- return /* @__PURE__ */ t(c, { children: /* @__PURE__ */ o("div", { className: "gi-input-radio-container", children: [
27
- /* @__PURE__ */ t(
28
- v,
26
+ return /* @__PURE__ */ e(c, { children: /* @__PURE__ */ o("div", { className: "gi-input-radio-container", children: [
27
+ /* @__PURE__ */ e(
28
+ x,
29
29
  {
30
30
  type: "radio",
31
31
  id: m,
32
32
  checked: l,
33
- className: x(e),
33
+ className: v(t),
34
34
  "aria-describedby": i ? `${m}-hint` : void 0,
35
35
  "aria-required": a ? "true" : "false",
36
36
  ...g
@@ -40,20 +40,20 @@ const x = (r) => {
40
40
  "div",
41
41
  {
42
42
  className: n({
43
- "gi-mt-1": e === "md",
44
- "gi-mt-2": e === "lg"
43
+ "gi-mt-1": t === "md",
44
+ "gi-mt-2": t === "lg"
45
45
  }),
46
46
  children: [
47
- /* @__PURE__ */ t(h, { htmlFor: m, text: r || "", size: e }),
48
- (i || a) && /* @__PURE__ */ t("div", { className: "gi-radio-conditional-divider-container", children: /* @__PURE__ */ o("div", { children: [
49
- i && /* @__PURE__ */ t(u, { text: i, size: e }),
50
- a && /* @__PURE__ */ t(
47
+ /* @__PURE__ */ e(h, { htmlFor: m, text: r || "", size: t }),
48
+ (i || a) && /* @__PURE__ */ e("div", { className: "gi-radio-conditional-divider-container", children: /* @__PURE__ */ o("div", { children: [
49
+ i && /* @__PURE__ */ e(u, { text: i, size: t }),
50
+ a && /* @__PURE__ */ e(
51
51
  "div",
52
52
  {
53
53
  className: n("gi-mt-3", {
54
54
  "gi-hidden": !l
55
55
  }),
56
- children: /* @__PURE__ */ t(f, { ...a })
56
+ children: /* @__PURE__ */ e(f, { ...a })
57
57
  }
58
58
  )
59
59
  ] }) })
@@ -1,6 +1,6 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as r } from "react";
3
- import { c as o } from "../index-CB-zPpNk.js";
3
+ import { c as o } from "../index-DNkhmzZp.js";
4
4
  const d = {
5
5
  Small: "sm",
6
6
  Medium: "md",
package/dist/link/link.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as S, Fragment as b } from "react/jsx-runtime";
2
- import { a as j } from "../index-2sRBqKFV.js";
2
+ import { a as j } from "../index-ntYL1VRC.js";
3
3
  import { forwardRef as w } from "react";
4
4
  import { getVariantAppearanceClass as I, getSizeClass as L } from "../button/helpers.js";
5
5
  import { cn as A } from "../cn.js";
package/dist/list/list.js CHANGED
@@ -21,7 +21,7 @@ const s = {
21
21
  }
22
22
  return i && e.push("gi-list-spaced"), e.join(" ");
23
23
  };
24
- function c({
24
+ function o({
25
25
  items: i,
26
26
  type: t = s.None,
27
27
  spaced: e,
@@ -39,6 +39,6 @@ function c({
39
39
  );
40
40
  }
41
41
  export {
42
- c as List,
42
+ o as List,
43
43
  s as ListTypeEnum
44
44
  };
@@ -1,4 +1,4 @@
1
- import { jsxs as i, jsx as t, Fragment as r } from "react/jsx-runtime";
1
+ import { jsxs as i, Fragment as r, jsx as t } from "react/jsx-runtime";
2
2
  import { Button as o } from "../button/button.js";
3
3
  import { ModalTitle as e, ModalBody as a, ModalFooter as n } from "./modal.js";
4
4
  const c = /* @__PURE__ */ i(r, { children: [
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { jsx as r, jsxs as p, Fragment as T } from "react/jsx-runtime";
3
- import { useState as x, cloneElement as f, isValidElement as k, Children as F } from "react";
3
+ import { Children as x, cloneElement as f, isValidElement as k, useState as F } from "react";
4
4
  import { Button as A } from "../button/button.js";
5
5
  import { cn as s } from "../cn.js";
6
6
  import { Heading as I } from "../heading/heading.js";
@@ -63,7 +63,7 @@ const v = (e, a, t) => {
63
63
  dataTestId: u,
64
64
  ...y
65
65
  }) => {
66
- const h = F.toArray(o), C = h.find(
66
+ const h = x.toArray(o), C = h.find(
67
67
  (l) => v(M, "ModalTitle", l)
68
68
  ), N = h.find(
69
69
  (l) => v(_, "ModalFooter", l)
@@ -194,7 +194,7 @@ const v = (e, a, t) => {
194
194
  startsOpen: t,
195
195
  ...n
196
196
  }) => {
197
- const [i, c] = x(!!t), d = () => c(!0), m = () => c(!1), o = f(a, {
197
+ const [i, c] = F(!!t), d = () => c(!0), m = () => c(!1), o = f(a, {
198
198
  "data-testid": "modal-trigger-button-container",
199
199
  "aria-haspopup": "dialog",
200
200
  onClick: d