demio-ui 1.0.13 → 1.0.15
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.
- package/dist/cjs/index.css +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/types/src/components/Modal/Modal.d.ts +3 -2
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/src/components/Modal/Modal.d.ts +3 -2
- package/dist/types.d.ts +6 -6
- package/package.json +1 -1
|
@@ -3,7 +3,8 @@ type Props = {
|
|
|
3
3
|
children: string | React.ReactNode;
|
|
4
4
|
open: boolean;
|
|
5
5
|
onOpenChange: (open: boolean) => void;
|
|
6
|
-
title?: string;
|
|
6
|
+
title?: string | React.ReactNode;
|
|
7
|
+
hideCloseButton?: boolean;
|
|
7
8
|
};
|
|
8
9
|
/**
|
|
9
10
|
- Focus is automatically trapped when modal.
|
|
@@ -11,5 +12,5 @@ type Props = {
|
|
|
11
12
|
- Esc closes the component automatically.
|
|
12
13
|
- [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
|
|
13
14
|
**/
|
|
14
|
-
declare function Modal({ children, open, onOpenChange, title }: Props): React.JSX.Element;
|
|
15
|
+
declare function Modal({ children, open, onOpenChange, title, hideCloseButton }: Props): React.JSX.Element;
|
|
15
16
|
export default Modal;
|
package/dist/types.d.ts
CHANGED
|
@@ -23,7 +23,8 @@ type Props$6 = {
|
|
|
23
23
|
children: string | React__default.ReactNode;
|
|
24
24
|
open: boolean;
|
|
25
25
|
onOpenChange: (open: boolean) => void;
|
|
26
|
-
title?: string;
|
|
26
|
+
title?: string | React__default.ReactNode;
|
|
27
|
+
hideCloseButton?: boolean;
|
|
27
28
|
};
|
|
28
29
|
/**
|
|
29
30
|
- Focus is automatically trapped when modal.
|
|
@@ -31,7 +32,7 @@ type Props$6 = {
|
|
|
31
32
|
- Esc closes the component automatically.
|
|
32
33
|
- [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
|
|
33
34
|
**/
|
|
34
|
-
declare function Modal({ children, open, onOpenChange, title }: Props$6): React__default.JSX.Element;
|
|
35
|
+
declare function Modal({ children, open, onOpenChange, title, hideCloseButton }: Props$6): React__default.JSX.Element;
|
|
35
36
|
|
|
36
37
|
type TabsRootProps = {
|
|
37
38
|
value: string;
|
|
@@ -359,9 +360,8 @@ function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : func
|
|
|
359
360
|
var SvgInfo = function SvgInfo(props) {
|
|
360
361
|
return /*#__PURE__*/React.createElement("svg", _extends$g({
|
|
361
362
|
xmlns: "http://www.w3.org/2000/svg",
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
fill: "none"
|
|
363
|
+
fill: "none",
|
|
364
|
+
viewBox: "0 0 24 24"
|
|
365
365
|
}, props), /*#__PURE__*/React.createElement("mask", {
|
|
366
366
|
id: "info_svg__a",
|
|
367
367
|
width: 24,
|
|
@@ -379,7 +379,7 @@ var SvgInfo = function SvgInfo(props) {
|
|
|
379
379
|
mask: "url(#info_svg__a)"
|
|
380
380
|
}, /*#__PURE__*/React.createElement("path", {
|
|
381
381
|
fill: "#2C3336",
|
|
382
|
-
d: "M12 16.
|
|
382
|
+
d: "M12 16.75a.726.726 0 0 0 .535-.216.726.726 0 0 0 .215-.534v-4.25a.726.726 0 0 0-.216-.534A.727.727 0 0 0 12 11a.725.725 0 0 0-.535.216.726.726 0 0 0-.215.534V16c0 .212.072.39.216.534a.726.726 0 0 0 .534.216Zm0-7.462a.78.78 0 0 0 .575-.232.781.781 0 0 0 .233-.575.782.782 0 0 0-.232-.576.782.782 0 0 0-.576-.232.781.781 0 0 0-.575.232.782.782 0 0 0-.233.576c0 .229.078.42.232.575a.781.781 0 0 0 .576.232Zm.002 12.212a9.255 9.255 0 0 1-3.705-.748 9.598 9.598 0 0 1-3.018-2.03 9.591 9.591 0 0 1-2.03-3.016 9.245 9.245 0 0 1-.749-3.704c0-1.314.25-2.55.748-3.705a9.597 9.597 0 0 1 2.03-3.018 9.592 9.592 0 0 1 3.016-2.03 9.245 9.245 0 0 1 3.704-.749c1.314 0 2.55.25 3.705.748a9.597 9.597 0 0 1 3.018 2.03 9.592 9.592 0 0 1 2.03 3.016 9.245 9.245 0 0 1 .749 3.704c0 1.314-.25 2.55-.748 3.705a9.598 9.598 0 0 1-2.03 3.018 9.592 9.592 0 0 1-3.016 2.03 9.245 9.245 0 0 1-3.704.749ZM12 20c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"
|
|
383
383
|
}))));
|
|
384
384
|
};
|
|
385
385
|
|