@cfx-dev/ui-components 2.1.6 → 2.1.7

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.
@@ -1 +1 @@
1
- ._root_1u329_1{flex-shrink:0;position:relative;display:flex;flex-direction:column;max-width:calc((var(--width) - var(--offset-safezone) * 2) * 1);min-width:calc(var(--quant) * 100);max-height:calc((var(--height) - var(--offset-safezone) * 2) * 1);padding:calc(var(--quant) * 6);background-color:var(--color-modal-background);border-radius:var(--border-radius-small);overflow:hidden;animation-name:_modal-appearance_1u329_1;animation-duration:.2s}@keyframes _modal-appearance_1u329_1{0%{opacity:0;transform:scale(.75)}to{opacity:1;transform:scale(1)}}._root_1u329_1 ._close_1u329_26{position:absolute;top:calc(var(--quant) * 2);right:calc(var(--quant) * 2.5);z-index:1}._root_1u329_1 ._header_1u329_32{display:flex;flex-direction:column;gap:calc(var(--quant) * 2.5);padding-bottom:calc(var(--quant) * 4)}._root_1u329_1 ._footer_1u329_38{padding-top:calc(var(--quant) * 6)}
1
+ ._root_1hqka_1{flex-shrink:0;position:relative;display:flex;flex-direction:column;max-width:calc((var(--width) - var(--offset-safezone) * 2) * 1);min-width:calc(var(--quant) * 100);max-height:calc((var(--height) - var(--offset-safezone) * 2) * 1);padding:calc(var(--quant) * 6);background-color:var(--color-modal-background);border-radius:var(--border-radius-small);overflow:hidden;animation-name:_modal-appearance_1hqka_1;animation-duration:.2s}@keyframes _modal-appearance_1hqka_1{0%{opacity:0;transform:scale(.75)}to{opacity:1;transform:scale(1)}}._root_1hqka_1 ._close_1hqka_26{position:absolute;top:calc(var(--quant) * 2);right:calc(var(--quant) * 2.5);z-index:1}._root_1hqka_1 ._header_1hqka_32{display:flex;flex-direction:column;gap:calc(var(--quant) * 2.5);padding-bottom:calc(var(--quant) * 4)}._root_1hqka_1 ._header_1hqka_32 a{border-bottom:1px solid rgba(var(--color-secondary),1);font-weight:700}._root_1hqka_1 ._footer_1hqka_42{padding-top:calc(var(--quant) * 6)}
@@ -19,6 +19,6 @@ export declare namespace Modal {
19
19
  }
20
20
  export interface ModalHeaderProps {
21
21
  title: string;
22
- description?: string;
22
+ description?: React.ReactNode;
23
23
  }
24
24
  export type ModalFooterProps = ButtonBarProps;
@@ -1,21 +1,21 @@
1
1
  import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
- import C from "react";
2
+ import u from "react";
3
3
  import "../Button/Button.js";
4
- import { ButtonBar as N } from "../Button/ButtonBar.js";
4
+ import { ButtonBar as C } from "../Button/ButtonBar.js";
5
5
  import "../Button/LinkButton.js";
6
- import k from "../IconButton/IconButton.js";
6
+ import N from "../IconButton/IconButton.js";
7
7
  import { Overlay as t } from "../Overlay/Overlay.js";
8
8
  import { Text as d } from "../Text/Text.js";
9
9
  import { clsx as m } from "../../utils/clsx.js";
10
10
  import "../../utils/hooks/useGlobalKeyboardEvent.js";
11
11
  import { useKeyboardClose as y } from "../../utils/hooks/useKeyboardClose.js";
12
12
  import "../../index-2hJuj4UN.js";
13
- import '../../assets/Modal.css';const B = "_root_1u329_1", x = "_close_1u329_26", g = "_header_1u329_32", v = "_footer_1u329_38", s = {
13
+ import '../../assets/Modal.css';const B = "_root_1hqka_1", q = "_close_1hqka_26", x = "_header_1hqka_32", g = "_footer_1hqka_42", s = {
14
14
  root: B,
15
- "modal-appearance": "_modal-appearance_1u329_1",
16
- close: x,
17
- header: g,
18
- footer: v
15
+ "modal-appearance": "_modal-appearance_1hqka_1",
16
+ close: q,
17
+ header: x,
18
+ footer: g
19
19
  };
20
20
  function p(l) {
21
21
  const {
@@ -23,17 +23,17 @@ function p(l) {
23
23
  children: a,
24
24
  className: e,
25
25
  backdropClassName: f,
26
- contentClassName: u,
26
+ contentClassName: h,
27
27
  ariaDescribedby: _,
28
28
  ariaLabelledby: b,
29
29
  disableBackdropClose: i = !1,
30
- disableFocusLock: h = !1
31
- } = l, n = C.useCallback(() => {
30
+ disableFocusLock: k = !1
31
+ } = l, n = u.useCallback(() => {
32
32
  i || !o || o();
33
33
  }, [o, i]);
34
34
  return y(n), /* @__PURE__ */ c(t, { children: [
35
35
  /* @__PURE__ */ r(t.Backdrop, { onClick: n, className: f }),
36
- /* @__PURE__ */ r(t.Content, { className: u, disableFocusLock: h, children: /* @__PURE__ */ c(
36
+ /* @__PURE__ */ r(t.Content, { className: h, disableFocusLock: k, children: /* @__PURE__ */ c(
37
37
  "div",
38
38
  {
39
39
  role: "dialog",
@@ -41,7 +41,7 @@ function p(l) {
41
41
  "aria-labelledby": b,
42
42
  className: m(s.root, e),
43
43
  children: [
44
- !!o && /* @__PURE__ */ r(k, { className: s.close, name: "Close", onClick: o }),
44
+ !!o && /* @__PURE__ */ r(N, { className: s.close, name: "Close", onClick: o }),
45
45
  a
46
46
  ]
47
47
  }
@@ -77,7 +77,7 @@ p.Footer = function(o) {
77
77
  className: a,
78
78
  ...e
79
79
  } = o;
80
- return /* @__PURE__ */ r(N, { ...e, className: m(s.footer, a) });
80
+ return /* @__PURE__ */ r(C, { ...e, className: m(s.footer, a) });
81
81
  };
82
82
  export {
83
83
  p as Modal
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cfx-dev/ui-components",
3
3
  "private": false,
4
- "version": "2.1.6",
4
+ "version": "2.1.7",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "dist/main.js",