@tipp/ui 1.1.16 → 1.1.17
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/atoms/dialog.cjs +94 -1
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.d.cts +16 -1
- package/dist/atoms/dialog.d.ts +16 -1
- package/dist/atoms/dialog.js +1 -1
- package/dist/atoms/drawer.cjs +1 -1
- package/dist/atoms/drawer.cjs.map +1 -1
- package/dist/atoms/drawer.js +1 -1
- package/dist/atoms/field-error-wrapper.js +2 -2
- package/dist/atoms/index.cjs +160 -106
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.d.cts +2 -1
- package/dist/atoms/index.d.ts +2 -1
- package/dist/atoms/index.js +54 -54
- package/dist/atoms/pagination.js +3 -3
- package/dist/chunk-6FOHEAYC.js +130 -0
- package/dist/chunk-6FOHEAYC.js.map +1 -0
- package/dist/chunk-A4DWJXWY.js +91 -0
- package/dist/chunk-A4DWJXWY.js.map +1 -0
- package/dist/chunk-DGSXVSV3.js +67 -0
- package/dist/chunk-DGSXVSV3.js.map +1 -0
- package/dist/chunk-DUR7OGOH.js +67 -0
- package/dist/chunk-DUR7OGOH.js.map +1 -0
- package/dist/chunk-E7MPO4YR.js +123 -0
- package/dist/chunk-E7MPO4YR.js.map +1 -0
- package/dist/chunk-FUMEEFXM.js +67 -0
- package/dist/chunk-FUMEEFXM.js.map +1 -0
- package/dist/chunk-G54PVBQV.js +44 -0
- package/dist/chunk-G54PVBQV.js.map +1 -0
- package/dist/chunk-GPT25Y5H.js +59 -0
- package/dist/chunk-GPT25Y5H.js.map +1 -0
- package/dist/chunk-HMP3DMRR.js +59 -0
- package/dist/chunk-HMP3DMRR.js.map +1 -0
- package/dist/chunk-HRIQWMQV.js +67 -0
- package/dist/chunk-HRIQWMQV.js.map +1 -0
- package/dist/chunk-IIU2TK3X.js +130 -0
- package/dist/chunk-IIU2TK3X.js.map +1 -0
- package/dist/chunk-J36GXXB6.js +130 -0
- package/dist/chunk-J36GXXB6.js.map +1 -0
- package/dist/chunk-KCAEAISO.js +67 -0
- package/dist/chunk-KCAEAISO.js.map +1 -0
- package/dist/chunk-NUOU5BAA.js +63 -0
- package/dist/chunk-NUOU5BAA.js.map +1 -0
- package/dist/chunk-O67MZISK.js +41 -0
- package/dist/chunk-O67MZISK.js.map +1 -0
- package/dist/chunk-OFTAZGRK.js +40 -0
- package/dist/chunk-OFTAZGRK.js.map +1 -0
- package/dist/chunk-OGNKHAGV.js +43 -0
- package/dist/chunk-OGNKHAGV.js.map +1 -0
- package/dist/chunk-WBZ7Y7QK.js +60 -0
- package/dist/chunk-WBZ7Y7QK.js.map +1 -0
- package/dist/chunk-YODYECIW.js +59 -0
- package/dist/chunk-YODYECIW.js.map +1 -0
- package/dist/chunk-ZXFSKIXI.js +60 -0
- package/dist/chunk-ZXFSKIXI.js.map +1 -0
- package/dist/chunk-ZZXCFJOT.js +59 -0
- package/dist/chunk-ZZXCFJOT.js.map +1 -0
- package/dist/index.cjs +251 -197
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +39 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +66 -66
- package/dist/molecules/date-picker/index.js +2 -2
- package/dist/molecules/expand-table/index.js +24 -24
- package/dist/molecules/expand-table/row.js +23 -23
- package/dist/molecules/index.js +26 -26
- package/dist/molecules/navigation.js +24 -24
- package/dist/utils/index.js +3 -3
- package/package.json +3 -3
- package/src/atoms/dialog.tsx +69 -1
- package/src/atoms/drawer.tsx +2 -2
package/dist/atoms/dialog.cjs
CHANGED
|
@@ -1,8 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
3
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
6
37
|
var __export = (target, all) => {
|
|
7
38
|
for (var name in all)
|
|
8
39
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -15,15 +46,77 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
46
|
}
|
|
16
47
|
return to;
|
|
17
48
|
};
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
+
mod
|
|
56
|
+
));
|
|
18
57
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
58
|
|
|
20
59
|
// src/atoms/dialog.tsx
|
|
21
60
|
var dialog_exports = {};
|
|
22
61
|
__export(dialog_exports, {
|
|
23
|
-
Dialog: () =>
|
|
62
|
+
Dialog: () => Dialog
|
|
24
63
|
});
|
|
25
64
|
module.exports = __toCommonJS(dialog_exports);
|
|
65
|
+
var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
66
|
+
var import_react_icons = require("@radix-ui/react-icons");
|
|
26
67
|
var import_themes = require("@radix-ui/themes");
|
|
68
|
+
var import_react = require("react");
|
|
69
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
70
|
+
function Content2(props) {
|
|
71
|
+
const _a = props, { children, style = {} } = _a, rest = __objRest(_a, ["children", "style"]);
|
|
72
|
+
const containerRef = (0, import_react.useRef)(null);
|
|
73
|
+
(0, import_react.useEffect)(() => {
|
|
74
|
+
containerRef.current = document.getElementsByClassName("radix-themes")[0];
|
|
75
|
+
}, []);
|
|
76
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadixDialog.Portal, { container: containerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadixDialog.Overlay, { className: "DialogOverlay", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
77
|
+
RadixDialog.Content,
|
|
78
|
+
__spreadProps(__spreadValues({
|
|
79
|
+
className: "DialogContent",
|
|
80
|
+
style: __spreadValues({}, style)
|
|
81
|
+
}, rest), {
|
|
82
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_themes.Flex, { direction: "column", style: { position: "relative" }, children: [
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
84
|
+
RadixDialog.Close,
|
|
85
|
+
{
|
|
86
|
+
asChild: true,
|
|
87
|
+
style: { zIndex: 9999, position: "absolute", right: 0, top: 0 },
|
|
88
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_themes.IconButton, { variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_icons.Cross1Icon, {}) })
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
children
|
|
92
|
+
] })
|
|
93
|
+
})
|
|
94
|
+
) }) });
|
|
95
|
+
}
|
|
96
|
+
function Close2(_a) {
|
|
97
|
+
var _b = _a, {
|
|
98
|
+
children
|
|
99
|
+
} = _b, rest = __objRest(_b, [
|
|
100
|
+
"children"
|
|
101
|
+
]);
|
|
102
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
103
|
+
}
|
|
104
|
+
function Trigger2(_a) {
|
|
105
|
+
var _b = _a, {
|
|
106
|
+
children
|
|
107
|
+
} = _b, rest = __objRest(_b, [
|
|
108
|
+
"children"
|
|
109
|
+
]);
|
|
110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
111
|
+
}
|
|
112
|
+
var Dialog = {
|
|
113
|
+
Root: RadixDialog.Root,
|
|
114
|
+
Trigger: Trigger2,
|
|
115
|
+
Content: Content2,
|
|
116
|
+
Close: Close2,
|
|
117
|
+
Description: RadixDialog.Description,
|
|
118
|
+
Title: RadixDialog.Title
|
|
119
|
+
};
|
|
27
120
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
121
|
0 && (module.exports = {
|
|
29
122
|
Dialog
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/atoms/dialog.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"sources":["../../src/atoms/dialog.tsx"],"sourcesContent":["import * as RadixDialog from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { Flex, IconButton } from '@radix-ui/themes';\nimport { useEffect, useRef } from 'react';\n\nfunction Content(props: RadixDialog.DialogContentProps): React.ReactElement {\n const { children, style = {}, ...rest } = props;\n\n const containerRef = useRef<Element | null>(null);\n\n useEffect(() => {\n containerRef.current = document.getElementsByClassName('radix-themes')[0];\n }, []);\n\n return (\n <RadixDialog.Portal container={containerRef.current}>\n <RadixDialog.Overlay className=\"DialogOverlay\">\n <RadixDialog.Content\n className=\"DialogContent\"\n style={{ ...style }}\n {...rest}\n >\n <Flex direction=\"column\" style={{ position: 'relative' }}>\n <RadixDialog.Close\n asChild\n style={{ zIndex: 9999, position: 'absolute', right: 0, top: 0 }}\n >\n <IconButton variant=\"ghost\">\n <Cross1Icon />\n </IconButton>\n </RadixDialog.Close>\n {children}\n </Flex>\n </RadixDialog.Content>\n </RadixDialog.Overlay>\n </RadixDialog.Portal>\n );\n}\n\nfunction Close({\n children,\n ...rest\n}: RadixDialog.DialogCloseProps): React.ReactElement {\n return (\n <RadixDialog.Close asChild {...rest}>\n {children}\n </RadixDialog.Close>\n );\n}\n\nfunction Trigger({\n children,\n ...rest\n}: RadixDialog.DialogTriggerProps): React.ReactElement {\n return (\n <RadixDialog.Trigger asChild {...rest}>\n {children}\n </RadixDialog.Trigger>\n );\n}\n\nexport const Dialog = {\n Root: RadixDialog.Root,\n Trigger,\n Content,\n Close,\n Description: RadixDialog.Description,\n Title: RadixDialog.Title,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA6B;AAC7B,yBAA2B;AAC3B,oBAAiC;AACjC,mBAAkC;AAmBxB;AAjBV,SAASA,SAAQ,OAA2D;AAC1E,QAA0C,YAAlC,YAAU,QAAQ,CAAC,EAN7B,IAM4C,IAAT,iBAAS,IAAT,CAAzB,YAAU;AAElB,QAAM,mBAAe,qBAAuB,IAAI;AAEhD,8BAAU,MAAM;AACd,iBAAa,UAAU,SAAS,uBAAuB,cAAc,EAAE,CAAC;AAAA,EAC1E,GAAG,CAAC,CAAC;AAEL,SACE,4CAAa,oBAAZ,EAAmB,WAAW,aAAa,SAC1C,sDAAa,qBAAZ,EAAoB,WAAU,iBAC7B;AAAA,IAAa;AAAA,IAAZ;AAAA,MACC,WAAU;AAAA,MACV,OAAO,mBAAK;AAAA,OACR,OAHL;AAAA,MAKC,uDAAC,sBAAK,WAAU,UAAS,OAAO,EAAE,UAAU,WAAW,GACrD;AAAA;AAAA,UAAa;AAAA,UAAZ;AAAA,YACC,SAAO;AAAA,YACP,OAAO,EAAE,QAAQ,MAAM,UAAU,YAAY,OAAO,GAAG,KAAK,EAAE;AAAA,YAE9D,sDAAC,4BAAW,SAAQ,SAClB,sDAAC,iCAAW,GACd;AAAA;AAAA,QACF;AAAA,QACC;AAAA,SACH;AAAA;AAAA,EACF,GACF,GACF;AAEJ;AAEA,SAASC,OAAM,IAGsC;AAHtC,eACb;AAAA;AAAA,EAxCF,IAuCe,IAEV,iBAFU,IAEV;AAAA,IADH;AAAA;AAGA,SACE,4CAAa,mBAAZ,+BAAkB,SAAO,QAAK,OAA9B,EACE,WACH;AAEJ;AAEA,SAASC,SAAQ,IAGsC;AAHtC,eACf;AAAA;AAAA,EAnDF,IAkDiB,IAEZ,iBAFY,IAEZ;AAAA,IADH;AAAA;AAGA,SACE,4CAAa,qBAAZ,+BAAoB,SAAO,QAAK,OAAhC,EACE,WACH;AAEJ;AAEO,IAAM,SAAS;AAAA,EACpB,MAAkB;AAAA,EAClB,SAAAA;AAAA,EACA,SAAAF;AAAA,EACA,OAAAC;AAAA,EACA,aAAyB;AAAA,EACzB,OAAmB;AACrB;","names":["Content","Close","Trigger"]}
|
package/dist/atoms/dialog.d.cts
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import * as Dialog$1 from '@radix-ui/react-dialog';
|
|
3
|
+
|
|
4
|
+
declare function Content(props: Dialog$1.DialogContentProps): React.ReactElement;
|
|
5
|
+
declare function Close({ children, ...rest }: Dialog$1.DialogCloseProps): React.ReactElement;
|
|
6
|
+
declare function Trigger({ children, ...rest }: Dialog$1.DialogTriggerProps): React.ReactElement;
|
|
7
|
+
declare const Dialog: {
|
|
8
|
+
Root: react.FC<Dialog$1.DialogProps>;
|
|
9
|
+
Trigger: typeof Trigger;
|
|
10
|
+
Content: typeof Content;
|
|
11
|
+
Close: typeof Close;
|
|
12
|
+
Description: react.ForwardRefExoticComponent<Dialog$1.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
13
|
+
Title: react.ForwardRefExoticComponent<Dialog$1.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { Dialog };
|
package/dist/atoms/dialog.d.ts
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import * as Dialog$1 from '@radix-ui/react-dialog';
|
|
3
|
+
|
|
4
|
+
declare function Content(props: Dialog$1.DialogContentProps): React.ReactElement;
|
|
5
|
+
declare function Close({ children, ...rest }: Dialog$1.DialogCloseProps): React.ReactElement;
|
|
6
|
+
declare function Trigger({ children, ...rest }: Dialog$1.DialogTriggerProps): React.ReactElement;
|
|
7
|
+
declare const Dialog: {
|
|
8
|
+
Root: react.FC<Dialog$1.DialogProps>;
|
|
9
|
+
Trigger: typeof Trigger;
|
|
10
|
+
Content: typeof Content;
|
|
11
|
+
Close: typeof Close;
|
|
12
|
+
Description: react.ForwardRefExoticComponent<Dialog$1.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
13
|
+
Title: react.ForwardRefExoticComponent<Dialog$1.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { Dialog };
|
package/dist/atoms/dialog.js
CHANGED
package/dist/atoms/drawer.cjs
CHANGED
|
@@ -115,7 +115,7 @@ function Content2(props) {
|
|
|
115
115
|
const _a = props, { position = "right", className, children } = _a, rest = __objRest(_a, ["position", "className", "children"]);
|
|
116
116
|
const containerRef = (0, import_react.useRef)(null);
|
|
117
117
|
(0, import_react.useEffect)(() => {
|
|
118
|
-
containerRef.current = document.
|
|
118
|
+
containerRef.current = document.getElementsByClassName("radix-themes")[0];
|
|
119
119
|
}, []);
|
|
120
120
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Dialog.Portal, { container: containerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(ThemeProvider, { children: [
|
|
121
121
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Dialog.Overlay, { className: "DrawerOverlay" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/atoms/drawer.tsx","../../src/theme/theme-provider.tsx","../../src/atoms/toast.tsx","../../src/atoms/icon-button.tsx"],"sourcesContent":["import React, { useEffect, useRef } from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\nimport { ThemeProvider } from '../theme/theme-provider';\nimport { ToastContainer } from './toast';\n\nexport function Root(props: Dialog.DialogProps): React.ReactNode {\n return <Dialog.Root {...props} />;\n}\n\ntype ContentProps = Dialog.DialogContentProps & {\n /** Drawer가 붙는 위치, 기본값 right */\n position?: 'left' | 'right' | 'bottom' | 'top';\n};\n\nexport function Content(props: ContentProps): React.ReactNode {\n const { position = 'right', className, children, ...rest } = props;\n\n const containerRef = useRef<
|
|
1
|
+
{"version":3,"sources":["../../src/atoms/drawer.tsx","../../src/theme/theme-provider.tsx","../../src/atoms/toast.tsx","../../src/atoms/icon-button.tsx"],"sourcesContent":["import React, { useEffect, useRef } from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\nimport { ThemeProvider } from '../theme/theme-provider';\nimport { ToastContainer } from './toast';\n\nexport function Root(props: Dialog.DialogProps): React.ReactNode {\n return <Dialog.Root {...props} />;\n}\n\ntype ContentProps = Dialog.DialogContentProps & {\n /** Drawer가 붙는 위치, 기본값 right */\n position?: 'left' | 'right' | 'bottom' | 'top';\n};\n\nexport function Content(props: ContentProps): React.ReactNode {\n const { position = 'right', className, children, ...rest } = props;\n\n const containerRef = useRef<Element | null>(null);\n\n useEffect(() => {\n containerRef.current = document.getElementsByClassName('radix-themes')[0];\n }, []);\n\n return (\n <Dialog.Portal container={containerRef.current}>\n <ThemeProvider>\n <Dialog.Overlay className=\"DrawerOverlay\" />\n <Dialog.Content\n className={`DrawerContent ${position} ${className || ''}`}\n {...rest}\n >\n <ToastContainer />\n {children}\n </Dialog.Content>\n </ThemeProvider>\n </Dialog.Portal>\n );\n}\n\nexport function Trigger(props: Dialog.DialogTriggerProps): React.ReactNode {\n return <Dialog.Trigger asChild {...props} />;\n}\n\nexport const Drawer = {\n Root: Dialog.Root,\n Trigger,\n Content,\n Close: Dialog.Close,\n Title: Dialog.Title,\n Description: Dialog.Description,\n};\n","import React from 'react';\nimport { Theme } from '@radix-ui/themes';\n\ntype ThemeProps = React.ComponentProps<typeof Theme>;\n\ninterface ThemeProviderProps extends ThemeProps {\n children: React.ReactNode;\n}\n\nexport function ThemeProvider(props: ThemeProviderProps): React.ReactElement {\n return <Theme accentColor=\"iris\" radius=\"medium\" {...props} />;\n}\n","import { Cross1Icon } from '@radix-ui/react-icons';\nimport type { Theme, ToastContainerProps, TypeOptions } from 'react-toastify';\nimport { ToastContainer as ToastifyToastContainer } from 'react-toastify';\nimport { IconButton } from './icon-button';\n\nexport { toast } from 'react-toastify';\n\ninterface CloseButtonProps {\n closeToast: (e: React.MouseEvent<HTMLElement>) => void;\n type: TypeOptions;\n ariaLabel?: string;\n theme: Theme;\n}\nfunction CloseButton({ closeToast }: CloseButtonProps): React.ReactNode {\n return (\n <IconButton color=\"gray\" onClick={closeToast} variant=\"ghost\">\n <Cross1Icon />\n </IconButton>\n );\n}\n\nexport function ToastContainer(props: ToastContainerProps): React.ReactElement {\n return (\n <ToastifyToastContainer\n autoClose={5000}\n closeButton={CloseButton}\n closeOnClick\n draggable\n hideProgressBar\n newestOnTop\n pauseOnFocusLoss\n pauseOnHover\n position=\"bottom-right\"\n rtl={false}\n {...props}\n />\n );\n}\n","export { IconButton, type IconButtonProps } from '@radix-ui/themes';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iBAAAA;AAAA,EAAA;AAAA,cAAAC;AAAA,EAAA,eAAAC;AAAA;AAAA;AAAA,mBAAyC;AACzC,aAAwB;;;ACAxB,oBAAsB;AASb;AADF,SAAS,cAAc,OAA+C;AAC3E,SAAO,4CAAC,sCAAM,aAAY,QAAO,QAAO,YAAa,MAAO;AAC9D;;;ACXA,yBAA2B;AAE3B,4BAAyD;;;ACFzD,IAAAC,iBAAiD;;;ADKjD,IAAAC,yBAAsB;AAWhB,IAAAC,sBAAA;AAHN,SAAS,YAAY,EAAE,WAAW,GAAsC;AACtE,SACE,6CAAC,6BAAW,OAAM,QAAO,SAAS,YAAY,SAAQ,SACpD,uDAAC,iCAAW,GACd;AAEJ;AAEO,SAAS,eAAe,OAAgD;AAC7E,SACE;AAAA,IAAC,sBAAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,MACX,aAAa;AAAA,MACb,cAAY;AAAA,MACZ,WAAS;AAAA,MACT,iBAAe;AAAA,MACf,aAAW;AAAA,MACX,kBAAgB;AAAA,MAChB,cAAY;AAAA,MACZ,UAAS;AAAA,MACT,KAAK;AAAA,OACD;AAAA,EACN;AAEJ;;;AF/BS,IAAAC,sBAAA;AADF,SAASC,MAAK,OAA4C;AAC/D,SAAO,6CAAQ,aAAP,mBAAgB,MAAO;AACjC;AAOO,SAASC,SAAQ,OAAsC;AAC5D,QAA6D,YAArD,aAAW,SAAS,WAAW,SAfzC,IAe+D,IAAT,iBAAS,IAAT,CAA5C,YAAoB,aAAW;AAEvC,QAAM,mBAAe,qBAAuB,IAAI;AAEhD,8BAAU,MAAM;AACd,iBAAa,UAAU,SAAS,uBAAuB,cAAc,EAAE,CAAC;AAAA,EAC1E,GAAG,CAAC,CAAC;AAEL,SACE,6CAAQ,eAAP,EAAc,WAAW,aAAa,SACrC,wDAAC,iBACC;AAAA,iDAAQ,gBAAP,EAAe,WAAU,iBAAgB;AAAA,IAC1C;AAAA,MAAQ;AAAA,MAAP;AAAA,QACC,WAAW,iBAAiB,QAAQ,IAAI,aAAa,EAAE;AAAA,SACnD,OAFL;AAAA,QAIC;AAAA,uDAAC,kBAAe;AAAA,UACf;AAAA;AAAA;AAAA,IACH;AAAA,KACF,GACF;AAEJ;AAEO,SAASC,SAAQ,OAAmD;AACzE,SAAO,6CAAQ,gBAAP,iBAAe,SAAO,QAAK,MAAO;AAC5C;AAEO,IAAM,SAAS;AAAA,EACpB,MAAa;AAAA,EACb,SAAAA;AAAA,EACA,SAAAD;AAAA,EACA,OAAc;AAAA,EACd,OAAc;AAAA,EACd,aAAoB;AACtB;","names":["Content","Root","Trigger","import_themes","import_react_toastify","import_jsx_runtime","ToastifyToastContainer","import_jsx_runtime","Root","Content","Trigger"]}
|
package/dist/atoms/drawer.js
CHANGED