@zimyo/ui 1.2.0 → 1.3.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.
- package/dist/Accordion/index.esm.js +5 -218
- package/dist/Accordion/index.js +5 -225
- package/dist/Badge/index.d.ts +29 -0
- package/dist/Badge/index.esm.js +1 -0
- package/dist/Badge/index.js +1 -0
- package/dist/Button/index.esm.js +1 -13
- package/dist/Button/index.js +1 -18
- package/dist/Card/index.esm.js +1 -36
- package/dist/Card/index.js +1 -38
- package/dist/Input/index.d.ts +18 -0
- package/dist/Input/index.esm.js +26 -0
- package/dist/Input/index.js +26 -0
- package/dist/Modal/index.d.ts +11 -9
- package/dist/Modal/index.esm.js +5 -123
- package/dist/Modal/index.js +5 -128
- package/dist/Notice/index.d.ts +19 -0
- package/dist/Notice/index.esm.js +26 -0
- package/dist/Notice/index.js +26 -0
- package/dist/Popover/index.esm.js +1 -22
- package/dist/Popover/index.js +1 -27
- package/dist/RadioGroup/index.esm.js +1 -91
- package/dist/RadioGroup/index.js +1 -96
- package/dist/Select/index.d.ts +15 -13
- package/dist/Select/index.esm.js +5 -173
- package/dist/Select/index.js +5 -178
- package/dist/Switch/index.esm.js +1 -9
- package/dist/Switch/index.js +1 -14
- package/dist/Tabs/index.esm.js +1 -202
- package/dist/Tabs/index.js +1 -207
- package/dist/Typography/index.esm.js +1 -57
- package/dist/Typography/index.js +1 -66
- package/dist/index.d.ts +120 -39
- package/dist/index.esm.js +5 -739
- package/dist/index.js +5 -762
- package/dist/theme/index.esm.js +1 -234
- package/dist/theme/index.js +1 -239
- package/package.json +33 -3
- package/dist/TextInput/index.d.ts +0 -18
- package/dist/TextInput/index.esm.js +0 -33
- package/dist/TextInput/index.js +0 -38
package/dist/Modal/index.esm.js
CHANGED
|
@@ -1,144 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Typography, useTheme, Dialog, DialogTitle, IconButton, DialogContent, DialogActions } from '@mui/material';
|
|
3
|
-
import { forwardRef, createElement } from 'react';
|
|
4
|
-
|
|
1
|
+
import{jsx as e,jsxs as o}from"react/jsx-runtime";import*as r from"react";import{forwardRef as t,createElement as s}from"react";import{Typography as a,Slide as n,useMediaQuery as l,Dialog as i,IconButton as d,DialogContent as c,DialogActions as m}from"@mui/material";import"uuid";
|
|
5
2
|
/**
|
|
6
3
|
* @license lucide-react v0.525.0 - ISC
|
|
7
4
|
*
|
|
8
5
|
* This source code is licensed under the ISC license.
|
|
9
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
13
|
-
const toCamelCase = (string) => string.replace(
|
|
14
|
-
/^([A-Z])|[\s-_]+(\w)/g,
|
|
15
|
-
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
16
|
-
);
|
|
17
|
-
const toPascalCase = (string) => {
|
|
18
|
-
const camelCase = toCamelCase(string);
|
|
19
|
-
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
20
|
-
};
|
|
21
|
-
const mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
22
|
-
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
23
|
-
}).join(" ").trim();
|
|
24
|
-
const hasA11yProp = (props) => {
|
|
25
|
-
for (const prop in props) {
|
|
26
|
-
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
|
|
7
|
+
*/const p=e=>{const o=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,o,r)=>r?r.toUpperCase():o.toLowerCase()))(e);return o.charAt(0).toUpperCase()+o.slice(1)},u=(...e)=>e.filter((e,o,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===o).join(" ").trim(),f=e=>{for(const o in e)if(o.startsWith("aria-")||"role"===o||"title"===o)return!0};
|
|
32
8
|
/**
|
|
33
9
|
* @license lucide-react v0.525.0 - ISC
|
|
34
10
|
*
|
|
35
11
|
* This source code is licensed under the ISC license.
|
|
36
12
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
13
|
*/
|
|
38
|
-
|
|
39
|
-
var defaultAttributes = {
|
|
40
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
41
|
-
width: 24,
|
|
42
|
-
height: 24,
|
|
43
|
-
viewBox: "0 0 24 24",
|
|
44
|
-
fill: "none",
|
|
45
|
-
stroke: "currentColor",
|
|
46
|
-
strokeWidth: 2,
|
|
47
|
-
strokeLinecap: "round",
|
|
48
|
-
strokeLinejoin: "round"
|
|
49
|
-
};
|
|
50
|
-
|
|
14
|
+
var b={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
|
|
51
15
|
/**
|
|
52
16
|
* @license lucide-react v0.525.0 - ISC
|
|
53
17
|
*
|
|
54
18
|
* This source code is licensed under the ISC license.
|
|
55
19
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
const Icon = forwardRef(
|
|
60
|
-
({
|
|
61
|
-
color = "currentColor",
|
|
62
|
-
size = 24,
|
|
63
|
-
strokeWidth = 2,
|
|
64
|
-
absoluteStrokeWidth,
|
|
65
|
-
className = "",
|
|
66
|
-
children,
|
|
67
|
-
iconNode,
|
|
68
|
-
...rest
|
|
69
|
-
}, ref) => createElement(
|
|
70
|
-
"svg",
|
|
71
|
-
{
|
|
72
|
-
ref,
|
|
73
|
-
...defaultAttributes,
|
|
74
|
-
width: size,
|
|
75
|
-
height: size,
|
|
76
|
-
stroke: color,
|
|
77
|
-
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
78
|
-
className: mergeClasses("lucide", className),
|
|
79
|
-
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
80
|
-
...rest
|
|
81
|
-
},
|
|
82
|
-
[
|
|
83
|
-
...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
|
|
84
|
-
...Array.isArray(children) ? children : [children]
|
|
85
|
-
]
|
|
86
|
-
)
|
|
87
|
-
);
|
|
88
|
-
|
|
20
|
+
*/const g=t(({color:e="currentColor",size:o=24,strokeWidth:r=2,absoluteStrokeWidth:t,className:a="",children:n,iconNode:l,...i},d)=>s("svg",{ref:d,...b,width:o,height:o,stroke:e,strokeWidth:t?24*Number(r)/Number(o):r,className:u("lucide",a),...!n&&!f(i)&&{"aria-hidden":"true"},...i},[...l.map(([e,o])=>s(e,o)),...Array.isArray(n)?n:[n]])),h=((e,o)=>{const r=t(({className:r,...t},a)=>{return s(g,{ref:a,iconNode:o,className:u(`lucide-${n=p(e),n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...t});var n});return r.displayName=p(e),r})("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);
|
|
89
21
|
/**
|
|
90
22
|
* @license lucide-react v0.525.0 - ISC
|
|
91
23
|
*
|
|
92
24
|
* This source code is licensed under the ISC license.
|
|
93
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
const createLucideIcon = (iconName, iconNode) => {
|
|
98
|
-
const Component = forwardRef(
|
|
99
|
-
({ className, ...props }, ref) => createElement(Icon, {
|
|
100
|
-
ref,
|
|
101
|
-
iconNode,
|
|
102
|
-
className: mergeClasses(
|
|
103
|
-
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
104
|
-
`lucide-${iconName}`,
|
|
105
|
-
className
|
|
106
|
-
),
|
|
107
|
-
...props
|
|
108
|
-
})
|
|
109
|
-
);
|
|
110
|
-
Component.displayName = toPascalCase(iconName);
|
|
111
|
-
return Component;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @license lucide-react v0.525.0 - ISC
|
|
116
|
-
*
|
|
117
|
-
* This source code is licensed under the ISC license.
|
|
118
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
const __iconNode = [
|
|
123
|
-
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
124
|
-
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
125
|
-
];
|
|
126
|
-
const X = createLucideIcon("x", __iconNode);
|
|
127
|
-
|
|
128
|
-
const Heading = ({ level = 1, ...props }) => {
|
|
129
|
-
const variant = `h${level}`;
|
|
130
|
-
return (jsx(Typography, { variant: variant, component: props.component || `h${level}`, fontWeight: 600, gutterBottom: true, ...props }));
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
const Modal = ({ open, onClose, title, content, actions, fullWidth = true, maxWidth = 'sm', ...rest }) => {
|
|
134
|
-
const theme = useTheme();
|
|
135
|
-
return (jsxs(Dialog, { open: open, onClose: onClose, fullWidth: fullWidth, maxWidth: maxWidth, scroll: "body", PaperProps: {
|
|
136
|
-
sx: {
|
|
137
|
-
borderRadius: 1.5,
|
|
138
|
-
p: 1,
|
|
139
|
-
backgroundColor: theme.palette.background.paper,
|
|
140
|
-
},
|
|
141
|
-
}, ...rest, children: [!!title && (jsxs(DialogTitle, { sx: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' }, children: [jsx(Heading, { level: 6, children: title }), jsx(IconButton, { edge: "end", onClick: onClose, children: jsx(X, { size: 18, strokeWidth: 2 }) })] })), !!content && jsx(DialogContent, { dividers: true, children: content }), !!actions && jsx(DialogActions, { children: actions })] }));
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
export { Modal, Modal as default };
|
|
26
|
+
*/function x(e){var o,r,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(o=0;o<s;o++)e[o]&&(r=x(e[o]))&&(t&&(t+=" "),t+=r)}else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}const k=e=>{const o=z(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),w(r,o)||v(e)},getConflictingClassGroupIds:(e,o)=>{const s=r[e]||[];return o&&t[e]?[...s,...t[e]]:s}}},w=(e,o)=>{if(0===e.length)return o.classGroupId;const r=e[0],t=o.nextPart.get(r),s=t?w(e.slice(1),t):void 0;if(s)return s;if(0===o.validators.length)return;const a=e.join("-");return o.validators.find(({validator:e})=>e(a))?.classGroupId},y=/^\[(.+)\]$/,v=e=>{if(y.test(e)){const o=y.exec(e)[1],r=o?.substring(0,o.indexOf(":"));if(r)return"arbitrary.."+r}},z=e=>{const{theme:o,classGroups:r}=e,t={nextPart:new Map,validators:[]};for(const e in r)N(r[e],t,e,o);return t},N=(e,o,r,t)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?o:C(o,e)).classGroupId=r)}if("function"==typeof e)return j(e)?void N(e(t),o,r,t):void o.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,s])=>{N(s,C(o,e),r,t)})})},C=(e,o)=>{let r=e;return o.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},j=e=>e.isThemeGetter,M=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,r=new Map,t=new Map;const s=(s,a)=>{r.set(s,a),o++,o>e&&(o=0,t=r,r=new Map)};return{get(e){let o=r.get(e);return void 0!==o?o:void 0!==(o=t.get(e))?(s(e,o),o):void 0},set(e,o){r.has(e)?r.set(e,o):s(e,o)}}},G=e=>{const{prefix:o,experimentalParseClassName:r}=e;let t=e=>{const o=[];let r,t=0,s=0,a=0;for(let n=0;n<e.length;n++){let l=e[n];if(0===t&&0===s){if(":"===l){o.push(e.slice(a,n)),a=n+1;continue}if("/"===l){r=n;continue}}"["===l?t++:"]"===l?t--:"("===l?s++:")"===l&&s--}const n=0===o.length?e:e.substring(a),l=P(n);return{modifiers:o,hasImportantModifier:l!==n,baseClassName:l,maybePostfixModifierPosition:r&&r>a?r-a:void 0}};if(o){const e=o+":",r=t;t=o=>o.startsWith(e)?r(o.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(r){const e=t;t=o=>r({className:o,parseClassName:e})}return t},P=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,I=e=>{const o=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const r=[];let t=[];return e.forEach(e=>{"["===e[0]||o[e]?(r.push(...t.sort(),e),t=[]):t.push(e)}),r.push(...t.sort()),r}},W=/\s+/;function $(){let e,o,r=0,t="";for(;r<arguments.length;)(e=arguments[r++])&&(o=A(e))&&(t&&(t+=" "),t+=o);return t}const A=e=>{if("string"==typeof e)return e;let o,r="";for(let t=0;t<e.length;t++)e[t]&&(o=A(e[t]))&&(r&&(r+=" "),r+=o);return r};function E(e,...o){let r,t,s,a=function(l){const i=o.reduce((e,o)=>o(e),e());return r=(e=>({cache:M(e.cacheSize),parseClassName:G(e),sortModifiers:I(e),...k(e)}))(i),t=r.cache.get,s=r.cache.set,a=n,n(l)};function n(e){const o=t(e);if(o)return o;const a=((e,o)=>{const{parseClassName:r,getClassGroupId:t,getConflictingClassGroupIds:s,sortModifiers:a}=o,n=[],l=e.trim().split(W);let i="";for(let e=l.length-1;e>=0;e-=1){const o=l[e],{isExternal:d,modifiers:c,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:u}=r(o);if(d){i=o+(i.length>0?" "+i:i);continue}let f=!!u,b=t(f?p.substring(0,u):p);if(!b){if(!f){i=o+(i.length>0?" "+i:i);continue}if(b=t(p),!b){i=o+(i.length>0?" "+i:i);continue}f=!1}const g=a(c).join(":"),h=m?g+"!":g,x=h+b;if(n.includes(x))continue;n.push(x);const k=s(b,f);for(let e=0;e<k.length;++e){const o=k[e];n.push(h+o)}i=o+(i.length>0?" "+i:i)}return i})(e,r);return s(e,a),a}return function(){return a($.apply(null,arguments))}}const S=e=>{const o=o=>o[e]||[];return o.isThemeGetter=!0,o},L=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,O=/^\((?:(\w[\w-]*):)?(.+)\)$/i,T=/^\d+\/\d+$/,_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,q=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,B=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,U=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Z=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>T.test(e),D=e=>!!e&&!Number.isNaN(Number(e)),F=e=>!!e&&Number.isInteger(Number(e)),H=e=>e.endsWith("%")&&D(e.slice(0,-1)),J=e=>_.test(e),K=()=>!0,Q=e=>q.test(e)&&!B.test(e),V=()=>!1,X=e=>U.test(e),Y=e=>Z.test(e),ee=e=>!re(e)&&!ie(e),oe=e=>be(e,ke,V),re=e=>L.test(e),te=e=>be(e,we,Q),se=e=>be(e,ye,D),ae=e=>be(e,he,V),ne=e=>be(e,xe,Y),le=e=>be(e,ze,X),ie=e=>O.test(e),de=e=>ge(e,we),ce=e=>ge(e,ve),me=e=>ge(e,he),pe=e=>ge(e,ke),ue=e=>ge(e,xe),fe=e=>ge(e,ze,!0),be=(e,o,r)=>{const t=L.exec(e);return!!t&&(t[1]?o(t[1]):r(t[2]))},ge=(e,o,r=!1)=>{const t=O.exec(e);return!!t&&(t[1]?o(t[1]):r)},he=e=>"position"===e||"percentage"===e,xe=e=>"image"===e||"url"===e,ke=e=>"length"===e||"size"===e||"bg-size"===e,we=e=>"length"===e,ye=e=>"number"===e,ve=e=>"family-name"===e,ze=e=>"shadow"===e,Ne=E(()=>{const e=S("color"),o=S("font"),r=S("text"),t=S("font-weight"),s=S("tracking"),a=S("leading"),n=S("breakpoint"),l=S("container"),i=S("spacing"),d=S("radius"),c=S("shadow"),m=S("inset-shadow"),p=S("text-shadow"),u=S("drop-shadow"),f=S("blur"),b=S("perspective"),g=S("aspect"),h=S("ease"),x=S("animate"),k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ie,re],w=()=>[ie,re,i],y=()=>[R,"full","auto",...w()],v=()=>[F,"none","subgrid",ie,re],z=()=>["auto",{span:["full",F,ie,re]},F,ie,re],N=()=>[F,"auto",ie,re],C=()=>["auto","min","max","fr",ie,re],j=()=>["auto",...w()],M=()=>[R,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],G=()=>[e,ie,re],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",me,ae,{position:[ie,re]}],I=()=>["auto","cover","contain",pe,oe,{size:[ie,re]}],W=()=>[H,de,te],$=()=>["","none","full",d,ie,re],A=()=>["",D,de,te],E=()=>[D,H,me,ae],L=()=>["","none",f,ie,re],O=()=>["none",D,ie,re],T=()=>["none",D,ie,re],_=()=>[D,ie,re],q=()=>[R,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[J],breakpoint:[J],color:[K],container:[J],"drop-shadow":[J],ease:["in","out","in-out"],font:[ee],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[J],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[J],shadow:[J],spacing:["px",D],text:[J],"text-shadow":[J],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",R,re,ie,g]}],container:["container"],columns:[{columns:[D,re,ie,l]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:y()}],"inset-x":[{"inset-x":y()}],"inset-y":[{"inset-y":y()}],start:[{start:y()}],end:[{end:y()}],top:[{top:y()}],right:[{right:y()}],bottom:[{bottom:y()}],left:[{left:y()}],visibility:["visible","invisible","collapse"],z:[{z:[F,"auto",ie,re]}],basis:[{basis:[R,"full","auto",l,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[D,R,"auto","initial","none",re]}],grow:[{grow:["",D,ie,re]}],shrink:[{shrink:["",D,ie,re]}],order:[{order:[F,"first","last","none",ie,re]}],"grid-cols":[{"grid-cols":v()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":v()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[l,"screen",...M()]}],"min-w":[{"min-w":[l,"screen","none",...M()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[n]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",r,de,te]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,ie,se]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",H,re]}],"font-family":[{font:[ce,re,o]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ie,re]}],"line-clamp":[{"line-clamp":[D,"none",ie,se]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",ie,re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[D,"from-font","auto",ie,te]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[D,"auto",ie,re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie,re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},F,ie,re],radial:["",ie,re],conic:[F,ie,re]},ue,ne]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":A()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[D,ie,re]}],"outline-w":[{outline:["",D,de,te]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",c,fe,le]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",m,fe,le]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[D,te]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",p,fe,le]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[D,ie,re]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[D]}],"mask-image-linear-from-pos":[{"mask-linear-from":E()}],"mask-image-linear-to-pos":[{"mask-linear-to":E()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":E()}],"mask-image-t-to-pos":[{"mask-t-to":E()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":E()}],"mask-image-r-to-pos":[{"mask-r-to":E()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":E()}],"mask-image-b-to-pos":[{"mask-b-to":E()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":E()}],"mask-image-l-to-pos":[{"mask-l-to":E()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":E()}],"mask-image-x-to-pos":[{"mask-x-to":E()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":E()}],"mask-image-y-to-pos":[{"mask-y-to":E()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[ie,re]}],"mask-image-radial-from-pos":[{"mask-radial-from":E()}],"mask-image-radial-to-pos":[{"mask-radial-to":E()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[D]}],"mask-image-conic-from-pos":[{"mask-conic-from":E()}],"mask-image-conic-to-pos":[{"mask-conic-to":E()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,re]}],filter:[{filter:["","none",ie,re]}],blur:[{blur:L()}],brightness:[{brightness:[D,ie,re]}],contrast:[{contrast:[D,ie,re]}],"drop-shadow":[{"drop-shadow":["","none",u,fe,le]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",D,ie,re]}],"hue-rotate":[{"hue-rotate":[D,ie,re]}],invert:[{invert:["",D,ie,re]}],saturate:[{saturate:[D,ie,re]}],sepia:[{sepia:["",D,ie,re]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,re]}],"backdrop-blur":[{"backdrop-blur":L()}],"backdrop-brightness":[{"backdrop-brightness":[D,ie,re]}],"backdrop-contrast":[{"backdrop-contrast":[D,ie,re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",D,ie,re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D,ie,re]}],"backdrop-invert":[{"backdrop-invert":["",D,ie,re]}],"backdrop-opacity":[{"backdrop-opacity":[D,ie,re]}],"backdrop-saturate":[{"backdrop-saturate":[D,ie,re]}],"backdrop-sepia":[{"backdrop-sepia":["",D,ie,re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[D,"initial",ie,re]}],ease:[{ease:["linear","initial",h,ie,re]}],delay:[{delay:[D,ie,re]}],animate:[{animate:["none",x,ie,re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,ie,re]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:O()}],"rotate-x":[{"rotate-x":O()}],"rotate-y":[{"rotate-y":O()}],"rotate-z":[{"rotate-z":O()}],scale:[{scale:T()}],"scale-x":[{"scale-x":T()}],"scale-y":[{"scale-y":T()}],"scale-z":[{"scale-z":T()}],"scale-3d":["scale-3d"],skew:[{skew:_()}],"skew-x":[{"skew-x":_()}],"skew-y":[{"skew-y":_()}],transform:[{transform:[ie,re,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:q()}],"translate-x":[{"translate-x":q()}],"translate-y":[{"translate-y":q()}],"translate-z":[{"translate-z":q()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie,re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie,re]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[D,de,te,se]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Ce(...e){return Ne(function(){for(var e,o,r=0,t="",s=arguments.length;r<s;r++)(e=arguments[r])&&(o=x(e))&&(t&&(t+=" "),t+=o);return t}(e))}const je=o=>e(a,{variant:"body2",component:o.component||"span",color:"text.disabled",...o}),Me=r.forwardRef(function(o,r){return e(n,{direction:"up",ref:r,...o})}),Ge=({open:r,onClose:t,title:s,description:a,children:n,actions:p,showCloseIcon:u=!0,maxWidth:f="sm",fullWidth:b=!0,fullScreen:g=!1,className:x})=>{const k=l("(max-width:600px)");return o(i,{open:r,onClose:t,TransitionComponent:Me,maxWidth:f,fullWidth:b,fullScreen:k||g,scroll:"body",PaperProps:{className:Ce("bg-background rounded-md shadow-lg border border-border",x)},children:[(s||u)&&o("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border",children:[s&&o("div",{className:"p-0 m-0 !text-base font-bold",children:[s,a&&e(je,{component:"div",className:"mt-1.5",children:a})]}),u&&e(d,{onClick:t,size:"small",className:"ml-auto flex text-muted-foreground hover:text-foreground",children:e(h,{className:"w-5 h-5"})})]}),e(c,{className:Ce("px-5 py-4 overflow-y-auto max-h-[70vh]"),children:n}),p&&e(m,{className:"px-5 py-3 border-t border-border",children:p})]})};export{Ge as Modal,Ge as default};
|
package/dist/Modal/index.js
CHANGED
|
@@ -1,149 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var material = require('@mui/material');
|
|
7
|
-
var react = require('react');
|
|
8
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),o=require("@mui/material");function t(e){var r=Object.create(null);return e&&Object.keys(e).forEach(function(o){if("default"!==o){var t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,t.get?t:{enumerable:!0,get:function(){return e[o]}})}}),r.default=e,Object.freeze(r)}require("uuid");var s=t(r);
|
|
9
2
|
/**
|
|
10
3
|
* @license lucide-react v0.525.0 - ISC
|
|
11
4
|
*
|
|
12
5
|
* This source code is licensed under the ISC license.
|
|
13
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
17
|
-
const toCamelCase = (string) => string.replace(
|
|
18
|
-
/^([A-Z])|[\s-_]+(\w)/g,
|
|
19
|
-
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
20
|
-
);
|
|
21
|
-
const toPascalCase = (string) => {
|
|
22
|
-
const camelCase = toCamelCase(string);
|
|
23
|
-
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
24
|
-
};
|
|
25
|
-
const mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
26
|
-
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
27
|
-
}).join(" ").trim();
|
|
28
|
-
const hasA11yProp = (props) => {
|
|
29
|
-
for (const prop in props) {
|
|
30
|
-
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
7
|
+
*/const a=e=>{const r=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,o)=>o?o.toUpperCase():r.toLowerCase()))(e);return r.charAt(0).toUpperCase()+r.slice(1)},n=(...e)=>e.filter((e,r,o)=>Boolean(e)&&""!==e.trim()&&o.indexOf(e)===r).join(" ").trim(),l=e=>{for(const r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0};
|
|
36
8
|
/**
|
|
37
9
|
* @license lucide-react v0.525.0 - ISC
|
|
38
10
|
*
|
|
39
11
|
* This source code is licensed under the ISC license.
|
|
40
12
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
13
|
*/
|
|
42
|
-
|
|
43
|
-
var defaultAttributes = {
|
|
44
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
45
|
-
width: 24,
|
|
46
|
-
height: 24,
|
|
47
|
-
viewBox: "0 0 24 24",
|
|
48
|
-
fill: "none",
|
|
49
|
-
stroke: "currentColor",
|
|
50
|
-
strokeWidth: 2,
|
|
51
|
-
strokeLinecap: "round",
|
|
52
|
-
strokeLinejoin: "round"
|
|
53
|
-
};
|
|
54
|
-
|
|
14
|
+
var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
|
|
55
15
|
/**
|
|
56
16
|
* @license lucide-react v0.525.0 - ISC
|
|
57
17
|
*
|
|
58
18
|
* This source code is licensed under the ISC license.
|
|
59
19
|
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
const Icon = react.forwardRef(
|
|
64
|
-
({
|
|
65
|
-
color = "currentColor",
|
|
66
|
-
size = 24,
|
|
67
|
-
strokeWidth = 2,
|
|
68
|
-
absoluteStrokeWidth,
|
|
69
|
-
className = "",
|
|
70
|
-
children,
|
|
71
|
-
iconNode,
|
|
72
|
-
...rest
|
|
73
|
-
}, ref) => react.createElement(
|
|
74
|
-
"svg",
|
|
75
|
-
{
|
|
76
|
-
ref,
|
|
77
|
-
...defaultAttributes,
|
|
78
|
-
width: size,
|
|
79
|
-
height: size,
|
|
80
|
-
stroke: color,
|
|
81
|
-
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
82
|
-
className: mergeClasses("lucide", className),
|
|
83
|
-
...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
|
|
84
|
-
...rest
|
|
85
|
-
},
|
|
86
|
-
[
|
|
87
|
-
...iconNode.map(([tag, attrs]) => react.createElement(tag, attrs)),
|
|
88
|
-
...Array.isArray(children) ? children : [children]
|
|
89
|
-
]
|
|
90
|
-
)
|
|
91
|
-
);
|
|
92
|
-
|
|
20
|
+
*/const d=r.forwardRef(({color:e="currentColor",size:o=24,strokeWidth:t=2,absoluteStrokeWidth:s,className:a="",children:d,iconNode:c,...m},p)=>r.createElement("svg",{ref:p,...i,width:o,height:o,stroke:e,strokeWidth:s?24*Number(t)/Number(o):t,className:n("lucide",a),...!d&&!l(m)&&{"aria-hidden":"true"},...m},[...c.map(([e,o])=>r.createElement(e,o)),...Array.isArray(d)?d:[d]])),c=((e,o)=>{const t=r.forwardRef(({className:t,...s},l)=>{return r.createElement(d,{ref:l,iconNode:o,className:n(`lucide-${i=a(e),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,t),...s});var i});return t.displayName=a(e),t})("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);
|
|
93
21
|
/**
|
|
94
22
|
* @license lucide-react v0.525.0 - ISC
|
|
95
23
|
*
|
|
96
24
|
* This source code is licensed under the ISC license.
|
|
97
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
const createLucideIcon = (iconName, iconNode) => {
|
|
102
|
-
const Component = react.forwardRef(
|
|
103
|
-
({ className, ...props }, ref) => react.createElement(Icon, {
|
|
104
|
-
ref,
|
|
105
|
-
iconNode,
|
|
106
|
-
className: mergeClasses(
|
|
107
|
-
`lucide-${toKebabCase(toPascalCase(iconName))}`,
|
|
108
|
-
`lucide-${iconName}`,
|
|
109
|
-
className
|
|
110
|
-
),
|
|
111
|
-
...props
|
|
112
|
-
})
|
|
113
|
-
);
|
|
114
|
-
Component.displayName = toPascalCase(iconName);
|
|
115
|
-
return Component;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @license lucide-react v0.525.0 - ISC
|
|
120
|
-
*
|
|
121
|
-
* This source code is licensed under the ISC license.
|
|
122
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const __iconNode = [
|
|
127
|
-
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
128
|
-
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
129
|
-
];
|
|
130
|
-
const X = createLucideIcon("x", __iconNode);
|
|
131
|
-
|
|
132
|
-
const Heading = ({ level = 1, ...props }) => {
|
|
133
|
-
const variant = `h${level}`;
|
|
134
|
-
return (jsxRuntime.jsx(material.Typography, { variant: variant, component: props.component || `h${level}`, fontWeight: 600, gutterBottom: true, ...props }));
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
const Modal = ({ open, onClose, title, content, actions, fullWidth = true, maxWidth = 'sm', ...rest }) => {
|
|
138
|
-
const theme = material.useTheme();
|
|
139
|
-
return (jsxRuntime.jsxs(material.Dialog, { open: open, onClose: onClose, fullWidth: fullWidth, maxWidth: maxWidth, scroll: "body", PaperProps: {
|
|
140
|
-
sx: {
|
|
141
|
-
borderRadius: 1.5,
|
|
142
|
-
p: 1,
|
|
143
|
-
backgroundColor: theme.palette.background.paper,
|
|
144
|
-
},
|
|
145
|
-
}, ...rest, children: [!!title && (jsxRuntime.jsxs(material.DialogTitle, { sx: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' }, children: [jsxRuntime.jsx(Heading, { level: 6, children: title }), jsxRuntime.jsx(material.IconButton, { edge: "end", onClick: onClose, children: jsxRuntime.jsx(X, { size: 18, strokeWidth: 2 }) })] })), !!content && jsxRuntime.jsx(material.DialogContent, { dividers: true, children: content }), !!actions && jsxRuntime.jsx(material.DialogActions, { children: actions })] }));
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
exports.Modal = Modal;
|
|
149
|
-
exports.default = Modal;
|
|
26
|
+
*/function m(e){var r,o,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(o=m(e[r]))&&(t&&(t+=" "),t+=o)}else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}const p=e=>{const r=g(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{const o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),u(o,r)||b(e)},getConflictingClassGroupIds:(e,r)=>{const s=o[e]||[];return r&&t[e]?[...s,...t[e]]:s}}},u=(e,r)=>{if(0===e.length)return r.classGroupId;const o=e[0],t=r.nextPart.get(o),s=t?u(e.slice(1),t):void 0;if(s)return s;if(0===r.validators.length)return;const a=e.join("-");return r.validators.find(({validator:e})=>e(a))?.classGroupId},f=/^\[(.+)\]$/,b=e=>{if(f.test(e)){const r=f.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},g=e=>{const{theme:r,classGroups:o}=e,t={nextPart:new Map,validators:[]};for(const e in o)h(o[e],t,e,r);return t},h=(e,r,o,t)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?r:x(r,e)).classGroupId=o)}if("function"==typeof e)return k(e)?void h(e(t),r,o,t):void r.validators.push({validator:e,classGroupId:o});Object.entries(e).forEach(([e,s])=>{h(s,x(r,e),o,t)})})},x=(e,r)=>{let o=e;return r.split("-").forEach(e=>{o.nextPart.has(e)||o.nextPart.set(e,{nextPart:new Map,validators:[]}),o=o.nextPart.get(e)}),o},k=e=>e.isThemeGetter,w=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,t=new Map;const s=(s,a)=>{o.set(s,a),r++,r>e&&(r=0,t=o,o=new Map)};return{get(e){let r=o.get(e);return void 0!==r?r:void 0!==(r=t.get(e))?(s(e,r),r):void 0},set(e,r){o.has(e)?o.set(e,r):s(e,r)}}},y=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=e=>{const r=[];let o,t=0,s=0,a=0;for(let n=0;n<e.length;n++){let l=e[n];if(0===t&&0===s){if(":"===l){r.push(e.slice(a,n)),a=n+1;continue}if("/"===l){o=n;continue}}"["===l?t++:"]"===l?t--:"("===l?s++:")"===l&&s--}const n=0===r.length?e:e.substring(a),l=v(n);return{modifiers:r,hasImportantModifier:l!==n,baseClassName:l,maybePostfixModifierPosition:o&&o>a?o-a:void 0}};if(r){const e=r+":",o=t;t=r=>r.startsWith(e)?o(r.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(o){const e=t;t=r=>o({className:r,parseClassName:e})}return t},v=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,z=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const o=[];let t=[];return e.forEach(e=>{"["===e[0]||r[e]?(o.push(...t.sort(),e),t=[]):t.push(e)}),o.push(...t.sort()),o}},j=/\s+/;function N(){let e,r,o=0,t="";for(;o<arguments.length;)(e=arguments[o++])&&(r=C(e))&&(t&&(t+=" "),t+=r);return t}const C=e=>{if("string"==typeof e)return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=C(e[t]))&&(o&&(o+=" "),o+=r);return o};function M(e,...r){let o,t,s,a=function(l){const i=r.reduce((e,r)=>r(e),e());return o=(e=>({cache:w(e.cacheSize),parseClassName:y(e),sortModifiers:z(e),...p(e)}))(i),t=o.cache.get,s=o.cache.set,a=n,n(l)};function n(e){const r=t(e);if(r)return r;const a=((e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:s,sortModifiers:a}=r,n=[],l=e.trim().split(j);let i="";for(let e=l.length-1;e>=0;e-=1){const r=l[e],{isExternal:d,modifiers:c,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:u}=o(r);if(d){i=r+(i.length>0?" "+i:i);continue}let f=!!u,b=t(f?p.substring(0,u):p);if(!b){if(!f){i=r+(i.length>0?" "+i:i);continue}if(b=t(p),!b){i=r+(i.length>0?" "+i:i);continue}f=!1}const g=a(c).join(":"),h=m?g+"!":g,x=h+b;if(n.includes(x))continue;n.push(x);const k=s(b,f);for(let e=0;e<k.length;++e){const r=k[e];n.push(h+r)}i=r+(i.length>0?" "+i:i)}return i})(e,o);return s(e,a),a}return function(){return a(N.apply(null,arguments))}}const P=e=>{const r=r=>r[e]||[];return r.isThemeGetter=!0,r},G=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,I=/^\((?:(\w[\w-]*):)?(.+)\)$/i,W=/^\d+\/\d+$/,$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,O=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,A=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,q=e=>W.test(e),_=e=>!!e&&!Number.isNaN(Number(e)),D=e=>!!e&&Number.isInteger(Number(e)),L=e=>e.endsWith("%")&&_(e.slice(0,-1)),T=e=>$.test(e),B=()=>!0,R=e=>E.test(e)&&!O.test(e),U=()=>!1,Z=e=>A.test(e),Q=e=>S.test(e),F=e=>!J(e)&&!re(e),H=e=>ie(e,pe,U),J=e=>G.test(e),K=e=>ie(e,ue,R),V=e=>ie(e,fe,_),X=e=>ie(e,ce,U),Y=e=>ie(e,me,Q),ee=e=>ie(e,ge,Z),re=e=>I.test(e),oe=e=>de(e,ue),te=e=>de(e,be),se=e=>de(e,ce),ae=e=>de(e,pe),ne=e=>de(e,me),le=e=>de(e,ge,!0),ie=(e,r,o)=>{const t=G.exec(e);return!!t&&(t[1]?r(t[1]):o(t[2]))},de=(e,r,o=!1)=>{const t=I.exec(e);return!!t&&(t[1]?r(t[1]):o)},ce=e=>"position"===e||"percentage"===e,me=e=>"image"===e||"url"===e,pe=e=>"length"===e||"size"===e||"bg-size"===e,ue=e=>"length"===e,fe=e=>"number"===e,be=e=>"family-name"===e,ge=e=>"shadow"===e,he=M(()=>{const e=P("color"),r=P("font"),o=P("text"),t=P("font-weight"),s=P("tracking"),a=P("leading"),n=P("breakpoint"),l=P("container"),i=P("spacing"),d=P("radius"),c=P("shadow"),m=P("inset-shadow"),p=P("text-shadow"),u=P("drop-shadow"),f=P("blur"),b=P("perspective"),g=P("aspect"),h=P("ease"),x=P("animate"),k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",re,J],w=()=>[re,J,i],y=()=>[q,"full","auto",...w()],v=()=>[D,"none","subgrid",re,J],z=()=>["auto",{span:["full",D,re,J]},D,re,J],j=()=>[D,"auto",re,J],N=()=>["auto","min","max","fr",re,J],C=()=>["auto",...w()],M=()=>[q,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],G=()=>[e,re,J],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",se,X,{position:[re,J]}],W=()=>["auto","cover","contain",ae,H,{size:[re,J]}],$=()=>[L,oe,K],E=()=>["","none","full",d,re,J],O=()=>["",_,oe,K],A=()=>[_,L,se,X],S=()=>["","none",f,re,J],R=()=>["none",_,re,J],U=()=>["none",_,re,J],Z=()=>[_,re,J],Q=()=>[q,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[T],breakpoint:[T],color:[B],container:[T],"drop-shadow":[T],ease:["in","out","in-out"],font:[F],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[T],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[T],shadow:[T],spacing:["px",_],text:[T],"text-shadow":[T],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",q,J,re,g]}],container:["container"],columns:[{columns:[_,J,re,l]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:y()}],"inset-x":[{"inset-x":y()}],"inset-y":[{"inset-y":y()}],start:[{start:y()}],end:[{end:y()}],top:[{top:y()}],right:[{right:y()}],bottom:[{bottom:y()}],left:[{left:y()}],visibility:["visible","invisible","collapse"],z:[{z:[D,"auto",re,J]}],basis:[{basis:[q,"full","auto",l,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_,q,"auto","initial","none",J]}],grow:[{grow:["",_,re,J]}],shrink:[{shrink:["",_,re,J]}],order:[{order:[D,"first","last","none",re,J]}],"grid-cols":[{"grid-cols":v()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":v()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[l,"screen",...M()]}],"min-w":[{"min-w":[l,"screen","none",...M()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[n]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",o,oe,K]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,re,V]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",L,J]}],"font-family":[{font:[te,J,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,re,J]}],"line-clamp":[{"line-clamp":[_,"none",re,V]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":["none",re,J]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,J]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[_,"from-font","auto",re,K]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[_,"auto",re,J]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,J]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re,J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},D,re,J],radial:["",re,J],conic:[D,re,J]},ne,Y]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:O()}],"border-w-x":[{"border-x":O()}],"border-w-y":[{"border-y":O()}],"border-w-s":[{"border-s":O()}],"border-w-e":[{"border-e":O()}],"border-w-t":[{"border-t":O()}],"border-w-r":[{"border-r":O()}],"border-w-b":[{"border-b":O()}],"border-w-l":[{"border-l":O()}],"divide-x":[{"divide-x":O()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[_,re,J]}],"outline-w":[{outline:["",_,oe,K]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",c,le,ee]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",m,le,ee]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[_,K]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":O()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",p,le,ee]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[_,re,J]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[re,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[_]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,J]}],filter:[{filter:["","none",re,J]}],blur:[{blur:S()}],brightness:[{brightness:[_,re,J]}],contrast:[{contrast:[_,re,J]}],"drop-shadow":[{"drop-shadow":["","none",u,le,ee]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",_,re,J]}],"hue-rotate":[{"hue-rotate":[_,re,J]}],invert:[{invert:["",_,re,J]}],saturate:[{saturate:[_,re,J]}],sepia:[{sepia:["",_,re,J]}],"backdrop-filter":[{"backdrop-filter":["","none",re,J]}],"backdrop-blur":[{"backdrop-blur":S()}],"backdrop-brightness":[{"backdrop-brightness":[_,re,J]}],"backdrop-contrast":[{"backdrop-contrast":[_,re,J]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_,re,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_,re,J]}],"backdrop-invert":[{"backdrop-invert":["",_,re,J]}],"backdrop-opacity":[{"backdrop-opacity":[_,re,J]}],"backdrop-saturate":[{"backdrop-saturate":[_,re,J]}],"backdrop-sepia":[{"backdrop-sepia":["",_,re,J]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,J]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_,"initial",re,J]}],ease:[{ease:["linear","initial",h,re,J]}],delay:[{delay:[_,re,J]}],animate:[{animate:["none",x,re,J]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,re,J]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:R()}],"rotate-x":[{"rotate-x":R()}],"rotate-y":[{"rotate-y":R()}],"rotate-z":[{"rotate-z":R()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:Z()}],"skew-x":[{"skew-x":Z()}],"skew-y":[{"skew-y":Z()}],transform:[{transform:[re,J,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Q()}],"translate-x":[{"translate-x":Q()}],"translate-y":[{"translate-y":Q()}],"translate-z":[{"translate-z":Q()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",re,J]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re,J]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[_,oe,K,V]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function xe(...e){return he(function(){for(var e,r,o=0,t="",s=arguments.length;o<s;o++)(e=arguments[o])&&(r=m(e))&&(t&&(t+=" "),t+=r);return t}(e))}const ke=r=>e.jsx(o.Typography,{variant:"body2",component:r.component||"span",color:"text.disabled",...r}),we=s.forwardRef(function(r,t){return e.jsx(o.Slide,{direction:"up",ref:t,...r})}),ye=({open:r,onClose:t,title:s,description:a,children:n,actions:l,showCloseIcon:i=!0,maxWidth:d="sm",fullWidth:m=!0,fullScreen:p=!1,className:u})=>{const f=o.useMediaQuery("(max-width:600px)");return e.jsxs(o.Dialog,{open:r,onClose:t,TransitionComponent:we,maxWidth:d,fullWidth:m,fullScreen:f||p,scroll:"body",PaperProps:{className:xe("bg-background rounded-md shadow-lg border border-border",u)},children:[(s||i)&&e.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border",children:[s&&e.jsxs("div",{className:"p-0 m-0 !text-base font-bold",children:[s,a&&e.jsx(ke,{component:"div",className:"mt-1.5",children:a})]}),i&&e.jsx(o.IconButton,{onClick:t,size:"small",className:"ml-auto flex text-muted-foreground hover:text-foreground",children:e.jsx(c,{className:"w-5 h-5"})})]}),e.jsx(o.DialogContent,{className:xe("px-5 py-4 overflow-y-auto max-h-[70vh]"),children:n}),l&&e.jsx(o.DialogActions,{className:"px-5 py-3 border-t border-border",children:l})]})};exports.Modal=ye,exports.default=ye;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type NoticeVariant = 'success' | 'error' | 'warning' | 'info';
|
|
4
|
+
type NoticeSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
type NoticeStyleType = 'contained' | 'outlined';
|
|
6
|
+
interface NoticeProps {
|
|
7
|
+
title?: string;
|
|
8
|
+
message: string;
|
|
9
|
+
variant?: NoticeVariant;
|
|
10
|
+
size?: NoticeSize;
|
|
11
|
+
styleType?: NoticeStyleType;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
showCloseIcon?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const Notice: React.FC<NoticeProps>;
|
|
17
|
+
|
|
18
|
+
export { Notice, Notice as default };
|
|
19
|
+
export type { NoticeProps };
|