cortex-react-components 1.12.0 → 1.12.1
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/{chunk-LKMZ5ROU.mjs → chunk-CQHNH3XJ.mjs} +1 -1
- package/dist/{chunk-IPHHUHS3.mjs → chunk-D43ENVPX.mjs} +1 -1
- package/dist/{chunk-WMZYFRHZ.mjs → chunk-FEBVOLWP.mjs} +1 -1
- package/dist/{chunk-LBKMUSVR.mjs → chunk-IE2A7UT3.mjs} +1 -1
- package/dist/chunk-LQZTCLMG.mjs +3 -0
- package/dist/{chunk-DSTWQW3O.mjs → chunk-O6V6PM4N.mjs} +1 -1
- package/dist/{chunk-JG5NJABD.mjs → chunk-W3RZEXMT.mjs} +1 -1
- package/dist/components/Cards/EventCard.js +1 -1
- package/dist/components/Cards/EventCard.mjs +1 -1
- package/dist/components/Cards/EventCard.stories.js +1 -1
- package/dist/components/Cards/EventCard.stories.mjs +1 -1
- package/dist/components/Cards/index.js +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Pages/Documentation.mjs +1 -1
- package/dist/components/Pages/Documentation.stories.mjs +1 -1
- package/dist/components/Pages/IndexPage.mjs +1 -1
- package/dist/components/Pages/IndexPage.stories.mjs +1 -1
- package/dist/components/Pages/Intranet.js +1 -1
- package/dist/components/Pages/Intranet.mjs +1 -1
- package/dist/components/Pages/Intranet.stories.js +1 -1
- package/dist/components/Pages/Intranet.stories.mjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
- package/dist/chunk-OD4RCKMK.mjs +0 -3
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "cortex-react-components",
|
|
3
3
|
"author": "Cortex Reply",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "1.12.
|
|
5
|
+
"version": "1.12.1",
|
|
6
6
|
"description": "A library of React components with styles. Designed to seamlessly integrate with React and Next.js.",
|
|
7
7
|
"license": "MPL-2.0",
|
|
8
8
|
"main": "./dist/index.js",
|
package/dist/chunk-OD4RCKMK.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import{a as l,b as m,c as d}from"./chunk-SBM5HULF.mjs";import{b as p}from"./chunk-Q6SEVCRG.mjs";import{a as w,b as v,c as b,e as g}from"./chunk-D76EO57Z.mjs";import{CalendarDays as h,Cake as y,Award as C,PartyPopper as N}from"lucide-react";import{jsx as a,jsxs as e}from"react/jsx-runtime";function k({eventType:r="birthday",date:s="",title:n="",description:o="",avatarSrc:c}){let f=t=>{switch(t){case"birthday":return a(y,{className:"h-4 w-4"});case"workAnniversary":return a(C,{className:"h-4 w-4"});case"companyEvent":return a(N,{className:"h-4 w-4"});default:return a(h,{className:"h-4 w-4"})}},i=t=>{switch(t){case"birthday":return"from-brand-one-500 to-brand-one-800";case"workAnniversary":return"from-brand-two-500 to-brand-two-700";case"companyEvent":return"from-brand-two-300 to-brand-two-700";default:return"from-gray-500 to-slate-500"}};return e(w,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${i(r)}`,children:[e(v,{className:"flex flex-row items-center gap-3 text-white",children:[c&&e(l,{className:"h-14 w-14 border-2 border-white",children:[a(m,{src:c,alt:n||"Event"}),a(d,{className:"bg-white text-gray-900",children:n?n.charAt(0).toUpperCase():"?"})]}),e("div",{className:"flex flex-col",children:[a(b,{className:"text-xl",children:n||"Untitled Event"}),e("p",{className:"text-sm text-white/80",children:[a(h,{className:"mr-1 inline-block h-4 w-4"}),s?new Date(s).toLocaleDateString():"Date not specified"]})]})]}),e(g,{className:"bg-white bg-opacity-80 p-4",children:[o&&a("p",{className:"mb-2 text-sm text-gray-700",children:o}),e(p,{variant:"secondary",className:`bg-gradient-to-br ${i(r)} text-white/80`,children:[f(r),a("span",{className:"ml-1",children:r?r.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "):"Event"})]})]})]})}export{k as a};
|