@datacrest/dcuikit 0.1.3 → 0.1.4
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/build/components/Molecule/Message/index.d.ts +1 -0
- package/build/index.css +1 -1
- package/build/index.esm.css +1 -1
- package/build/index.esm.js +1 -1
- package/build/index.esm.js.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/tsconfig.prod.tsbuildinfo +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the ISC license.
|
|
18
18
|
* See the LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/const Oe=e.forwardRef((({color:t="currentColor",size:r=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:i="",children:a,iconNode:l,...s},c)=>e.createElement("svg",{ref:c,...we,width:r,height:r,stroke:t,strokeWidth:o?24*Number(n)/Number(r):n,className:be("lucide",i),...s},[...l.map((([t,r])=>e.createElement(t,r))),...Array.isArray(a)?a:[a]]))),xe=(t,r)=>{const n=e.forwardRef((({className:n,...o},i)=>{return e.createElement(Oe,{ref:i,iconNode:r,className:be(`lucide-${a=ge(t),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,n),...o});var a}));return n.displayName=ge(t),n},Ee=xe("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),je=xe("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),ke=xe("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Pe=xe("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Ce=xe("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Se=xe("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Ne=xe("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),ze=xe("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Te=xe("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Le=xe("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),Re=xe("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),Me=xe("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Ie=xe("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]),De=xe("search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Ae=xe("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),We=({loading:t,children:r,iconLeft:n,iconRight:o})=>e.createElement("div",{className:ve("flex items-center justify-center gap-2 transition-all duration-300",t?"opacity-0":"opacity-100")},n&&e.createElement("span",{className:"flex-shrink-0"},n),e.createElement("span",{className:"relative z-10"},r),o&&e.createElement("span",{className:"flex-shrink-0"},o)),_e=e.forwardRef((({iconLeft:t,iconRight:r,variant:n="primary",displayType:o="default",status:i="accepted",size:a="medium",loading:l=!1,disabled:s=!1,dataTestId:c,fluid:u=!1,className:f,...d},p)=>{const m=ve("group relative inline-flex items-center justify-center font-medium","rounded-md ring-offset-background transition-all duration-300","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50 disabled:border-input","before:absolute before:inset-0 before:rounded-md before:transition-all before:duration-300","after:absolute after:inset-0 after:rounded-md after:transition-all after:duration-300"),y={
|
|
19
|
+
*/const Oe=e.forwardRef((({color:t="currentColor",size:r=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:i="",children:a,iconNode:l,...s},c)=>e.createElement("svg",{ref:c,...we,width:r,height:r,stroke:t,strokeWidth:o?24*Number(n)/Number(r):n,className:be("lucide",i),...s},[...l.map((([t,r])=>e.createElement(t,r))),...Array.isArray(a)?a:[a]]))),xe=(t,r)=>{const n=e.forwardRef((({className:n,...o},i)=>{return e.createElement(Oe,{ref:i,iconNode:r,className:be(`lucide-${a=ge(t),a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,n),...o});var a}));return n.displayName=ge(t),n},Ee=xe("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),je=xe("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),ke=xe("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Pe=xe("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Ce=xe("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Se=xe("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Ne=xe("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),ze=xe("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Te=xe("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Le=xe("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),Re=xe("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),Me=xe("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Ie=xe("loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]),De=xe("search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Ae=xe("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),We=({loading:t,children:r,iconLeft:n,iconRight:o})=>e.createElement("div",{className:ve("flex items-center justify-center gap-2 transition-all duration-300",t?"opacity-0":"opacity-100")},n&&e.createElement("span",{className:"flex-shrink-0"},n),e.createElement("span",{className:"relative z-10"},r),o&&e.createElement("span",{className:"flex-shrink-0"},o)),_e=e.forwardRef((({iconLeft:t,iconRight:r,variant:n="primary",displayType:o="default",status:i="accepted",size:a="medium",loading:l=!1,disabled:s=!1,dataTestId:c,fluid:u=!1,className:f,...d},p)=>{const m=ve("group relative inline-flex items-center justify-center font-medium","rounded-md ring-offset-background transition-all duration-300","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50 disabled:border-input","before:absolute before:inset-0 before:rounded-md before:transition-all before:duration-300","after:absolute after:inset-0 after:rounded-md after:transition-all after:duration-300"),y={primary:ve("bg-primary text-primary-foreground","border border-primary","shadow-[0_2px_10px] shadow-primary/30 dark:shadow-primary/20","hover:shadow-[0_8px_25px] hover:shadow-primary/40 dark:hover:shadow-primary/30","hover:bg-primary/90 hover:border-primary","active:shadow-[0_2px_6px] active:shadow-primary/30 dark:active:shadow-primary/20","before:bg-[radial-gradient(800px_circle_at_var(--mouse-x)_var(--mouse-y),transparent_40%)]","after:bg-gradient-to-t after:from-black/10 after:to-transparent"),secondary:ve("bg-gradient-to-br from-card via-card/95 to-card/90 text-card-foreground","border border-primary/30 dark:border-primary/20","shadow-[0_4px_20px] shadow-card/30 dark:shadow-card/20","hover:shadow-[0_8px_35px] hover:shadow-card/40 dark:hover:shadow-card/30","hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/90 hover:border-primary/60","active:shadow-[0_2px_10px] active:shadow-card/30 active:translate-y-[1px]"),tertiary:ve("bg-background text-foreground dark:bg-muted","border-2 border-primary/40 dark:border-primary/30","shadow-[0_2px_10px] shadow-foreground/5 dark:shadow-background/5","hover:border-primary hover:bg-accent dark:hover:bg-muted/90","hover:shadow-[0_8px_25px] hover:shadow-foreground/10 dark:hover:shadow-background/10","active:bg-accent/90 dark:active:bg-muted/80","before:bg-[radial-gradient(800px_circle_at_var(--mouse-x)_var(--mouse-y),transparent_40%)]","after:bg-gradient-to-b after:from-white/40 after:to-transparent dark:after:from-white/10"),danger:ve("bg-destructive text-destructive-foreground","border border-destructive","shadow-[0_2px_10px] shadow-destructive/30 dark:shadow-destructive/20","hover:shadow-[0_8px_25px] hover:shadow-destructive/40 dark:hover:shadow-destructive/30","hover:bg-destructive/90 hover:border-destructive/90","active:shadow-[0_2px_6px] active:shadow-destructive/30 dark:active:shadow-destructive/20","before:bg-[radial-gradient(800px_circle_at_var(--mouse-x)_var(--mouse-y),transparent_40%)]","after:bg-gradient-to-t after:from-black/10 after:to-transparent"),warning:ve("bg-warning text-warning-foreground","border border-primary/50 dark:border-primary/40","shadow-[0_2px_10px] shadow-warning/30 dark:shadow-warning/20","hover:shadow-[0_8px_25px] hover:shadow-warning/40 dark:hover:shadow-warning/30","hover:bg-warning/90 hover:border-primary","active:shadow-[0_2px_6px] active:shadow-warning/30 dark:active:shadow-warning/20","before:bg-[radial-gradient(800px_circle_at_var(--mouse-x)_var(--mouse-y),transparent_40%)]","after:bg-gradient-to-t after:from-black/10 after:to-transparent"),harford:ve("bg-[#043d5a] text-primary-foreground","border border-[#043d5a]","shadow-[0_2px_10px] shadow-[#043d5a]/30 dark:shadow-[#043d5a]/20","hover:shadow-[0_8px_25px] hover:shadow-[#043d5a]/40 dark:hover:shadow-[#043d5a]/30","hover:bg-[#043d5a]/90 hover:border-[#043d5a]","active:shadow-[0_2px_6px] active:shadow-[#043d5a]/30 dark:active:shadow-[#043d5a]/20","before:bg-[radial-gradient(800px_circle_at_var(--mouse-x)_var(--mouse-y),transparent_40%)]","after:bg-gradient-to-t after:from-black/10 after:to-transparent"),link:ve("text-primary dark:text-primary/90 underline-offset-4","hover:text-primary/90 dark:hover:text-primary/80 hover:underline","bg-transparent border-none shadow-none","active:text-primary/80 dark:active:text-primary/70","before:hidden after:hidden")};return e.createElement("button",{...d,ref:p,disabled:l||s,"data-test-id":c,onMouseMove:e=>{const t=e.currentTarget,r=t.getBoundingClientRect(),n=e.clientX-r.left,o=e.clientY-r.top;t.style.setProperty("--mouse-x",`${n}px`),t.style.setProperty("--mouse-y",`${o}px`)},className:ve(m,"default"===o?ve(y[n],{small:"h-8 px-3 text-sm",medium:"h-10 px-4 py-2",large:"h-12 px-6 text-lg"}[a]):ve({primary:"bg-primary text-primary-foreground border border-primary shadow py-0.5 px-2.5 text-xs font-medium",secondary:"bg-secondary text-secondary-foreground border border-secondary shadow py-0.5 px-2.5 text-xs font-medium",tertiary:"bg-muted text-muted-foreground border border-muted-foreground/30 shadow py-0.5 px-2.5 text-xs font-medium",danger:"bg-destructive text-destructive-foreground border border-destructive shadow py-0.5 px-2.5 text-xs font-medium",warning:"bg-warning text-warning-foreground border border-warning shadow py-0.5 px-2.5 text-xs font-medium",harford:"bg-[#043d5a] text-primary-foreground border border-[#043d5a] shadow py-0.5 px-2.5 text-xs font-medium",link:"bg-primary text-primary-foreground border border-primary shadow py-0.5 px-2.5 text-xs font-medium underline underline-offset-2"}[n],"accepted"!==i&&{accepted:"",pending:"bg-amber-500 text-amber-50 border-amber-600"}[i]),u&&"w-full","default"===o&&"active:scale-[0.98] transition-transform duration-300",f)},l&&"badge"!==o&&e.createElement("div",{className:"absolute inset-0 flex items-center justify-center"},e.createElement(Me,{className:"h-5 w-5 animate-spin"})),e.createElement(We,{loading:l,iconLeft:t,iconRight:r},d.children))}));
|
|
20
20
|
/**
|
|
21
21
|
* @license lucide-react v0.487.0 - ISC
|
|
22
22
|
*
|