@medway-ui/core 1.53.1 → 1.53.2

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/COMPONENTS.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @medway-ui/core — Component Reference
2
2
 
3
3
  > **Auto-generated — do not edit manually.**
4
- > Package `@medway-ui/core` · v1.53.1 · Generated 2026-12-03
4
+ > Package `@medway-ui/core` · v1.53.2 · Generated 2026-12-03
5
5
 
6
6
  All components require React 18+ and are client components (`"use client"`).
7
7
 
@@ -1,6 +1,6 @@
1
1
  # @medway-ui/core — Component Summary
2
2
 
3
- > v1.53.1 · For the full prop/variant reference see `COMPONENTS.md`.
3
+ > v1.53.2 · For the full prop/variant reference see `COMPONENTS.md`.
4
4
 
5
5
  ## Components
6
6
 
@@ -1,7 +1,7 @@
1
1
  # @medway-ui/core — Component Reference
2
2
 
3
3
  > **Auto-generated — do not edit manually.**
4
- > Package `@medway-ui/core` · v1.53.1 · Generated 2026-12-03
4
+ > Package `@medway-ui/core` · v1.53.2 · Generated 2026-12-03
5
5
 
6
6
  All components require React 18+ and are client components (`"use client"`).
7
7
 
@@ -1,6 +1,6 @@
1
1
  # @medway-ui/core — Component Summary
2
2
 
3
- > v1.53.1 · For the full prop/variant reference see `COMPONENTS.md`.
3
+ > v1.53.2 · For the full prop/variant reference see `COMPONENTS.md`.
4
4
 
5
5
  ## Components
6
6
 
@@ -11,7 +11,7 @@ interface CardCalendarProps extends ComponentProps<"div"> {
11
11
  interface CardCalendarTitleProps extends ComponentProps<"span"> {
12
12
  icon?: ReactNode;
13
13
  }
14
- declare function CardCalendar({ className, specialty, size, done, busy, asChild, ...props }: CardCalendarProps): import("react/jsx-runtime").JSX.Element;
14
+ declare function CardCalendar({ className, specialty, size, done, busy, asChild, children, ...props }: CardCalendarProps): import("react/jsx-runtime").JSX.Element;
15
15
  declare function CardCalendarTitle({ className, icon, children, ...props }: CardCalendarTitleProps): import("react/jsx-runtime").JSX.Element;
16
16
  declare function CardCalendarTime({ className, ...props }: ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
17
17
  export { CardCalendar, CardCalendarTime, CardCalendarTitle };
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  "use client";
3
- "use strict";var d=require("react/jsx-runtime"),j=require("radix-ui"),v=require("react"),s=require("../lib/utils.js"),k=Object.defineProperty,C=Object.defineProperties,N=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,y=(a,r,e)=>r in a?k(a,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[r]=e,p=(a,r)=>{for(var e in r||(r={}))f.call(r,e)&&y(a,e,r[e]);if(b)for(var e of b(r))x.call(r,e)&&y(a,e,r[e]);return a},O=(a,r)=>C(a,N(r)),m=(a,r)=>{var e={};for(var n in a)f.call(a,n)&&r.indexOf(n)<0&&(e[n]=a[n]);if(a!=null&&b)for(var n of b(a))r.indexOf(n)<0&&x.call(a,n)&&(e[n]=a[n]);return e};const h=v.createContext({specialty:"default",size:"md",done:!1,busy:!1}),w={default:"[--card-calendar-blur-1:var(--color-gradient-neutral-blur-3)] [--card-calendar-blur-2:var(--color-gradient-neutral-blur-2)] [--card-calendar-blur-3:var(--color-gradient-neutral-blur-3)]",cm:"[--card-calendar-blur-1:var(--color-gradient-cm-blur-1)] [--card-calendar-blur-2:var(--color-gradient-cm-blur-2)] [--card-calendar-blur-3:var(--color-gradient-cm-blur-3)]",go:"[--card-calendar-blur-1:var(--color-gradient-go-blur-1)] [--card-calendar-blur-2:var(--color-gradient-go-blur-2)] [--card-calendar-blur-3:var(--color-gradient-go-blur-3)]",cir:"[--card-calendar-blur-1:var(--color-gradient-cir-blur-1)] [--card-calendar-blur-2:var(--color-gradient-cir-blur-2)] [--card-calendar-blur-3:var(--color-gradient-cir-blur-3)]",ped:"[--card-calendar-blur-1:var(--color-gradient-ped-blur-1)] [--card-calendar-blur-2:var(--color-gradient-ped-blur-2)] [--card-calendar-blur-3:var(--color-gradient-ped-blur-3)]",prev:"[--card-calendar-blur-1:var(--color-gradient-prev-blur-1)] [--card-calendar-blur-2:var(--color-gradient-prev-blur-2)] [--card-calendar-blur-3:var(--color-gradient-prev-blur-3)]"},z={default:"[--card-calendar-done:var(--color-gray-background-soft-emphasis)]",cm:"[--card-calendar-done:var(--color-cm-background-soft-emphasis)]",go:"[--card-calendar-done:var(--color-go-background-soft-emphasis)]",cir:"[--card-calendar-done:var(--color-cir-background-soft-emphasis)]",ped:"[--card-calendar-done:var(--color-ped-background-soft-emphasis)]",prev:"[--card-calendar-done:var(--color-prev-background-soft-emphasis)]"},P={default:"text-primary-foreground",cm:"text-cm-foreground",go:"text-go-foreground",cir:"text-cir-foreground",ped:"text-ped-foreground",prev:"text-prev-foreground"},q="bg-surface-card [background-image:linear-gradient(-32deg,transparent_50%,color-mix(in_srgb,var(--card-calendar-blur-3)_4%,transparent)_100%),linear-gradient(32deg,transparent_50%,color-mix(in_srgb,var(--card-calendar-blur-2)_8%,transparent)_100%),linear-gradient(0deg,transparent_50%,color-mix(in_srgb,var(--card-calendar-blur-1)_32%,transparent)_100%),linear-gradient(var(--card-calendar-done,transparent),var(--card-calendar-done,transparent))]",S="before:pointer-events-none before:absolute before:inset-0 before:-z-10 before:[background-image:repeating-linear-gradient(135deg,var(--color-gray-stroke-muted)_0_1px,transparent_1px_7.07px)]";function D(){return v.useContext(h)}function T(a){var r=a,{className:e,specialty:n="default",size:t="md",done:c=!1,busy:l=!1,asChild:i=!1}=r,u=m(r,["className","specialty","size","done","busy","asChild"]);const g=i?j.Slot.Slot:"div",o=l?"default":n,_=v.useMemo(()=>({specialty:o,size:t,done:c,busy:l}),[o,t,c,l]);return d.jsx(h.Provider,{value:_,children:d.jsx(g,p({"data-slot":"card-calendar","data-specialty":o,"data-size":t,"data-done":c||void 0,"data-busy":l||void 0,className:s.cn("relative isolate flex min-w-0 flex-col gap-1 overflow-hidden rounded-md px-3 py-2 ring-1 ring-inset ring-gray-stroke-muted",t==="md"?"justify-start":"[justify-content:safe_center]",w[o],c&&z[o],q,l&&S,e)},u))})}function E(a){var r=a,{className:e,icon:n,children:t}=r,c=m(r,["className","icon","children"]);const{specialty:l,size:i,done:u,busy:g}=D();return d.jsxs("span",O(p({"data-slot":"card-calendar-title",className:s.cn("flex min-w-0 items-start gap-2 font-medium",i==="md"?"text-sm leading-sm":"text-xs leading-xs",g?"text-primary-foreground-muted":P[l],e)},c),{children:[d.jsxs("span",{className:s.cn("min-w-0 flex-1 truncate",u&&"line-through"),children:[t,u&&d.jsx("span",{className:"sr-only",children:", conclu\xEDdo"})]}),n&&d.jsx("span",{"data-slot":"card-calendar-icon","aria-hidden":!0,className:s.cn("flex shrink-0 [&_svg]:[stroke-width:1.6]",i==="md"?"[&_svg]:size-5":"[&_svg]:size-4",g&&"text-primary-foreground"),children:n})]}))}function I(a){var r=a,{className:e}=r,n=m(r,["className"]);return d.jsx("span",p({"data-slot":"card-calendar-time",className:s.cn("block truncate text-xs font-semibold leading-xs text-primary-foreground-muted",e)},n))}exports.CardCalendar=T,exports.CardCalendarTime=I,exports.CardCalendarTitle=E;
3
+ "use strict";var d=require("react/jsx-runtime"),m=require("radix-ui"),v=require("react"),z=require("../hooks/use-id.js"),u=require("../lib/utils.js"),_=Object.defineProperty,$=Object.defineProperties,P=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,h=(e,r,a)=>r in e?_(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a,f=(e,r)=>{for(var a in r||(r={}))x.call(r,a)&&h(e,a,r[a]);if(b)for(var a of b(r))y.call(r,a)&&h(e,a,r[a]);return e},j=(e,r)=>$(e,P(r)),g=(e,r)=>{var a={};for(var l in e)x.call(e,l)&&r.indexOf(l)<0&&(a[l]=e[l]);if(e!=null&&b)for(var l of b(e))r.indexOf(l)<0&&y.call(e,l)&&(a[l]=e[l]);return a};const k=v.createContext({specialty:"default",size:"md",done:!1,busy:!1}),q={default:"[--card-calendar-blur-1:var(--color-gradient-neutral-blur-3)] [--card-calendar-blur-2:var(--color-gradient-neutral-blur-2)] [--card-calendar-blur-3:var(--color-gradient-neutral-blur-3)]",cm:"[--card-calendar-blur-1:var(--color-gradient-cm-blur-1)] [--card-calendar-blur-2:var(--color-gradient-cm-blur-2)] [--card-calendar-blur-3:var(--color-gradient-cm-blur-3)]",go:"[--card-calendar-blur-1:var(--color-gradient-go-blur-1)] [--card-calendar-blur-2:var(--color-gradient-go-blur-2)] [--card-calendar-blur-3:var(--color-gradient-go-blur-3)]",cir:"[--card-calendar-blur-1:var(--color-gradient-cir-blur-1)] [--card-calendar-blur-2:var(--color-gradient-cir-blur-2)] [--card-calendar-blur-3:var(--color-gradient-cir-blur-3)]",ped:"[--card-calendar-blur-1:var(--color-gradient-ped-blur-1)] [--card-calendar-blur-2:var(--color-gradient-ped-blur-2)] [--card-calendar-blur-3:var(--color-gradient-ped-blur-3)]",prev:"[--card-calendar-blur-1:var(--color-gradient-prev-blur-1)] [--card-calendar-blur-2:var(--color-gradient-prev-blur-2)] [--card-calendar-blur-3:var(--color-gradient-prev-blur-3)]"},S={default:"[--card-calendar-done:var(--color-gray-background-soft-emphasis)]",cm:"[--card-calendar-done:var(--color-cm-background-soft-emphasis)]",go:"[--card-calendar-done:var(--color-go-background-soft-emphasis)]",cir:"[--card-calendar-done:var(--color-cir-background-soft-emphasis)]",ped:"[--card-calendar-done:var(--color-ped-background-soft-emphasis)]",prev:"[--card-calendar-done:var(--color-prev-background-soft-emphasis)]"},I={default:"text-primary-foreground",cm:"text-cm-foreground",go:"text-go-foreground",cir:"text-cir-foreground",ped:"text-ped-foreground",prev:"text-prev-foreground"},D="bg-surface-card [background-image:linear-gradient(var(--card-calendar-done,transparent),var(--card-calendar-done,transparent))]",N=[{key:"top",variable:"--card-calendar-blur-1",opacity:.32,from:{x:0,y:.5},to:{x:0,y:0}},{key:"right",variable:"--card-calendar-blur-2",opacity:.08,from:{x:.2777,y:-.1025},to:{x:.8801,y:-.3248}},{key:"left",variable:"--card-calendar-blur-3",opacity:.04,from:{x:.6025,y:.2229},to:{x:0,y:0}}],E="before:pointer-events-none before:absolute before:inset-0 before:-z-10 before:[background-image:repeating-linear-gradient(135deg,var(--color-gray-stroke-muted)_0_1px,transparent_1px_7.07px)]";function T(){return v.useContext(k)}function A({id:e}){return d.jsxs("svg",{"aria-hidden":!0,"data-slot":"card-calendar-glow",preserveAspectRatio:"none",className:"pointer-events-none absolute inset-0 -z-20 size-full",children:[d.jsx("defs",{children:N.map(({key:r,variable:a,opacity:l,from:t,to:o})=>d.jsxs("linearGradient",{id:`${e}-${r}`,x1:t.x,y1:t.y,x2:o.x,y2:o.y,children:[d.jsx("stop",{offset:"0",style:{stopColor:"var(--color-surface-card)",stopOpacity:0}}),d.jsx("stop",{offset:"1",style:{stopColor:`var(${a})`,stopOpacity:l}})]},r))}),N.map(({key:r})=>d.jsx("rect",{width:"100%",height:"100%",fill:`url(#${e}-${r})`},r))]})}function G(e){var r=e,{className:a,specialty:l="default",size:t="md",done:o=!1,busy:c=!1,asChild:n=!1,children:s}=r,p=g(r,["className","specialty","size","done","busy","asChild","children"]);const O=`card-calendar-${z.useId().replace(/[^\w-]/g,"")}`,C=n?m.Slot.Slot:"div",i=c?"default":l,w=v.useMemo(()=>({specialty:i,size:t,done:o,busy:c}),[i,t,o,c]);return d.jsx(k.Provider,{value:w,children:d.jsxs(C,j(f({"data-slot":"card-calendar","data-specialty":i,"data-size":t,"data-done":o||void 0,"data-busy":c||void 0,className:u.cn("relative isolate flex min-w-0 flex-col gap-1 overflow-hidden rounded-md px-3 py-2 ring-1 ring-inset ring-gray-stroke-muted",t==="md"?"justify-start":"[justify-content:safe_center]",q[i],o&&S[i],D,c&&E,a)},p),{children:[d.jsx(A,{id:O}),n?d.jsx(m.Slot.Slottable,{children:s}):s]}))})}function R(e){var r=e,{className:a,icon:l,children:t}=r,o=g(r,["className","icon","children"]);const{specialty:c,size:n,done:s,busy:p}=T();return d.jsxs("span",j(f({"data-slot":"card-calendar-title",className:u.cn("flex min-w-0 items-start gap-2 font-medium",n==="md"?"text-sm leading-sm":"text-xs leading-xs",p?"text-primary-foreground-muted":I[c],a)},o),{children:[d.jsxs("span",{className:u.cn("min-w-0 flex-1 truncate",s&&"line-through"),children:[t,s&&d.jsx("span",{className:"sr-only",children:", conclu\xEDdo"})]}),l&&d.jsx("span",{"data-slot":"card-calendar-icon","aria-hidden":!0,className:u.cn("flex shrink-0 [&_svg]:[stroke-width:1.6]",n==="md"?"[&_svg]:size-5":"[&_svg]:size-4",p&&"text-primary-foreground"),children:l})]}))}function U(e){var r=e,{className:a}=r,l=g(r,["className"]);return d.jsx("span",f({"data-slot":"card-calendar-time",className:u.cn("block truncate text-xs font-semibold leading-xs text-primary-foreground-muted",a)},l))}exports.CardCalendar=G,exports.CardCalendarTime=U,exports.CardCalendarTitle=R;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  "use client";
3
- import{jsx as c,jsxs as f}from"react/jsx-runtime";import{Slot as k}from"radix-ui";import{createContext as C,useMemo as N,useContext as O}from"react";import{cn as i}from"../lib/utils.mjs";var j=Object.defineProperty,w=Object.defineProperties,z=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,y=(a,r,e)=>r in a?j(a,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[r]=e,p=(a,r)=>{for(var e in r||(r={}))v.call(r,e)&&y(a,e,r[e]);if(b)for(var e of b(r))x.call(r,e)&&y(a,e,r[e]);return a},P=(a,r)=>w(a,z(r)),m=(a,r)=>{var e={};for(var n in a)v.call(a,n)&&r.indexOf(n)<0&&(e[n]=a[n]);if(a!=null&&b)for(var n of b(a))r.indexOf(n)<0&&x.call(a,n)&&(e[n]=a[n]);return e};const h=C({specialty:"default",size:"md",done:!1,busy:!1}),S={default:"[--card-calendar-blur-1:var(--color-gradient-neutral-blur-3)] [--card-calendar-blur-2:var(--color-gradient-neutral-blur-2)] [--card-calendar-blur-3:var(--color-gradient-neutral-blur-3)]",cm:"[--card-calendar-blur-1:var(--color-gradient-cm-blur-1)] [--card-calendar-blur-2:var(--color-gradient-cm-blur-2)] [--card-calendar-blur-3:var(--color-gradient-cm-blur-3)]",go:"[--card-calendar-blur-1:var(--color-gradient-go-blur-1)] [--card-calendar-blur-2:var(--color-gradient-go-blur-2)] [--card-calendar-blur-3:var(--color-gradient-go-blur-3)]",cir:"[--card-calendar-blur-1:var(--color-gradient-cir-blur-1)] [--card-calendar-blur-2:var(--color-gradient-cir-blur-2)] [--card-calendar-blur-3:var(--color-gradient-cir-blur-3)]",ped:"[--card-calendar-blur-1:var(--color-gradient-ped-blur-1)] [--card-calendar-blur-2:var(--color-gradient-ped-blur-2)] [--card-calendar-blur-3:var(--color-gradient-ped-blur-3)]",prev:"[--card-calendar-blur-1:var(--color-gradient-prev-blur-1)] [--card-calendar-blur-2:var(--color-gradient-prev-blur-2)] [--card-calendar-blur-3:var(--color-gradient-prev-blur-3)]"},D={default:"[--card-calendar-done:var(--color-gray-background-soft-emphasis)]",cm:"[--card-calendar-done:var(--color-cm-background-soft-emphasis)]",go:"[--card-calendar-done:var(--color-go-background-soft-emphasis)]",cir:"[--card-calendar-done:var(--color-cir-background-soft-emphasis)]",ped:"[--card-calendar-done:var(--color-ped-background-soft-emphasis)]",prev:"[--card-calendar-done:var(--color-prev-background-soft-emphasis)]"},T={default:"text-primary-foreground",cm:"text-cm-foreground",go:"text-go-foreground",cir:"text-cir-foreground",ped:"text-ped-foreground",prev:"text-prev-foreground"},E="bg-surface-card [background-image:linear-gradient(-32deg,transparent_50%,color-mix(in_srgb,var(--card-calendar-blur-3)_4%,transparent)_100%),linear-gradient(32deg,transparent_50%,color-mix(in_srgb,var(--card-calendar-blur-2)_8%,transparent)_100%),linear-gradient(0deg,transparent_50%,color-mix(in_srgb,var(--card-calendar-blur-1)_32%,transparent)_100%),linear-gradient(var(--card-calendar-done,transparent),var(--card-calendar-done,transparent))]",I="before:pointer-events-none before:absolute before:inset-0 before:-z-10 before:[background-image:repeating-linear-gradient(135deg,var(--color-gray-stroke-muted)_0_1px,transparent_1px_7.07px)]";function B(){return O(h)}function L(a){var r=a,{className:e,specialty:n="default",size:l="md",done:o=!1,busy:d=!1,asChild:s=!1}=r,u=m(r,["className","specialty","size","done","busy","asChild"]);const g=s?k.Slot:"div",t=d?"default":n,_=N(()=>({specialty:t,size:l,done:o,busy:d}),[t,l,o,d]);return c(h.Provider,{value:_,children:c(g,p({"data-slot":"card-calendar","data-specialty":t,"data-size":l,"data-done":o||void 0,"data-busy":d||void 0,className:i("relative isolate flex min-w-0 flex-col gap-1 overflow-hidden rounded-md px-3 py-2 ring-1 ring-inset ring-gray-stroke-muted",l==="md"?"justify-start":"[justify-content:safe_center]",S[t],o&&D[t],E,d&&I,e)},u))})}function M(a){var r=a,{className:e,icon:n,children:l}=r,o=m(r,["className","icon","children"]);const{specialty:d,size:s,done:u,busy:g}=B();return f("span",P(p({"data-slot":"card-calendar-title",className:i("flex min-w-0 items-start gap-2 font-medium",s==="md"?"text-sm leading-sm":"text-xs leading-xs",g?"text-primary-foreground-muted":T[d],e)},o),{children:[f("span",{className:i("min-w-0 flex-1 truncate",u&&"line-through"),children:[l,u&&c("span",{className:"sr-only",children:", conclu\xEDdo"})]}),n&&c("span",{"data-slot":"card-calendar-icon","aria-hidden":!0,className:i("flex shrink-0 [&_svg]:[stroke-width:1.6]",s==="md"?"[&_svg]:size-5":"[&_svg]:size-4",g&&"text-primary-foreground"),children:n})]}))}function R(a){var r=a,{className:e}=r,n=m(r,["className"]);return c("span",p({"data-slot":"card-calendar-time",className:i("block truncate text-xs font-semibold leading-xs text-primary-foreground-muted",e)},n))}export{L as CardCalendar,R as CardCalendarTime,M as CardCalendarTitle};
3
+ import{jsx as o,jsxs as u}from"react/jsx-runtime";import{Slot as v}from"radix-ui";import{createContext as z,useMemo as _,useContext as P}from"react";import{useId as $}from"../hooks/use-id.mjs";import{cn as p}from"../lib/utils.mjs";var S=Object.defineProperty,D=Object.defineProperties,E=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,h=(a,r,e)=>r in a?S(a,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[r]=e,m=(a,r)=>{for(var e in r||(r={}))y.call(r,e)&&h(a,e,r[e]);if(f)for(var e of f(r))x.call(r,e)&&h(a,e,r[e]);return a},k=(a,r)=>D(a,E(r)),g=(a,r)=>{var e={};for(var l in a)y.call(a,l)&&r.indexOf(l)<0&&(e[l]=a[l]);if(a!=null&&f)for(var l of f(a))r.indexOf(l)<0&&x.call(a,l)&&(e[l]=a[l]);return e};const N=z({specialty:"default",size:"md",done:!1,busy:!1}),I={default:"[--card-calendar-blur-1:var(--color-gradient-neutral-blur-3)] [--card-calendar-blur-2:var(--color-gradient-neutral-blur-2)] [--card-calendar-blur-3:var(--color-gradient-neutral-blur-3)]",cm:"[--card-calendar-blur-1:var(--color-gradient-cm-blur-1)] [--card-calendar-blur-2:var(--color-gradient-cm-blur-2)] [--card-calendar-blur-3:var(--color-gradient-cm-blur-3)]",go:"[--card-calendar-blur-1:var(--color-gradient-go-blur-1)] [--card-calendar-blur-2:var(--color-gradient-go-blur-2)] [--card-calendar-blur-3:var(--color-gradient-go-blur-3)]",cir:"[--card-calendar-blur-1:var(--color-gradient-cir-blur-1)] [--card-calendar-blur-2:var(--color-gradient-cir-blur-2)] [--card-calendar-blur-3:var(--color-gradient-cir-blur-3)]",ped:"[--card-calendar-blur-1:var(--color-gradient-ped-blur-1)] [--card-calendar-blur-2:var(--color-gradient-ped-blur-2)] [--card-calendar-blur-3:var(--color-gradient-ped-blur-3)]",prev:"[--card-calendar-blur-1:var(--color-gradient-prev-blur-1)] [--card-calendar-blur-2:var(--color-gradient-prev-blur-2)] [--card-calendar-blur-3:var(--color-gradient-prev-blur-3)]"},T={default:"[--card-calendar-done:var(--color-gray-background-soft-emphasis)]",cm:"[--card-calendar-done:var(--color-cm-background-soft-emphasis)]",go:"[--card-calendar-done:var(--color-go-background-soft-emphasis)]",cir:"[--card-calendar-done:var(--color-cir-background-soft-emphasis)]",ped:"[--card-calendar-done:var(--color-ped-background-soft-emphasis)]",prev:"[--card-calendar-done:var(--color-prev-background-soft-emphasis)]"},A={default:"text-primary-foreground",cm:"text-cm-foreground",go:"text-go-foreground",cir:"text-cir-foreground",ped:"text-ped-foreground",prev:"text-prev-foreground"},G="bg-surface-card [background-image:linear-gradient(var(--card-calendar-done,transparent),var(--card-calendar-done,transparent))]",O=[{key:"top",variable:"--card-calendar-blur-1",opacity:.32,from:{x:0,y:.5},to:{x:0,y:0}},{key:"right",variable:"--card-calendar-blur-2",opacity:.08,from:{x:.2777,y:-.1025},to:{x:.8801,y:-.3248}},{key:"left",variable:"--card-calendar-blur-3",opacity:.04,from:{x:.6025,y:.2229},to:{x:0,y:0}}],B="before:pointer-events-none before:absolute before:inset-0 before:-z-10 before:[background-image:repeating-linear-gradient(135deg,var(--color-gray-stroke-muted)_0_1px,transparent_1px_7.07px)]";function M(){return P(N)}function R({id:a}){return u("svg",{"aria-hidden":!0,"data-slot":"card-calendar-glow",preserveAspectRatio:"none",className:"pointer-events-none absolute inset-0 -z-20 size-full",children:[o("defs",{children:O.map(({key:r,variable:e,opacity:l,from:d,to:t})=>u("linearGradient",{id:`${a}-${r}`,x1:d.x,y1:d.y,x2:t.x,y2:t.y,children:[o("stop",{offset:"0",style:{stopColor:"var(--color-surface-card)",stopOpacity:0}}),o("stop",{offset:"1",style:{stopColor:`var(${e})`,stopOpacity:l}})]},r))}),O.map(({key:r})=>o("rect",{width:"100%",height:"100%",fill:`url(#${a}-${r})`},r))]})}function U(a){var r=a,{className:e,specialty:l="default",size:d="md",done:t=!1,busy:c=!1,asChild:n=!1,children:i}=r,b=g(r,["className","specialty","size","done","busy","asChild","children"]);const C=`card-calendar-${$().replace(/[^\w-]/g,"")}`,w=n?v.Slot:"div",s=c?"default":l,j=_(()=>({specialty:s,size:d,done:t,busy:c}),[s,d,t,c]);return o(N.Provider,{value:j,children:u(w,k(m({"data-slot":"card-calendar","data-specialty":s,"data-size":d,"data-done":t||void 0,"data-busy":c||void 0,className:p("relative isolate flex min-w-0 flex-col gap-1 overflow-hidden rounded-md px-3 py-2 ring-1 ring-inset ring-gray-stroke-muted",d==="md"?"justify-start":"[justify-content:safe_center]",I[s],t&&T[s],G,c&&B,e)},b),{children:[o(R,{id:C}),n?o(v.Slottable,{children:i}):i]}))})}function V(a){var r=a,{className:e,icon:l,children:d}=r,t=g(r,["className","icon","children"]);const{specialty:c,size:n,done:i,busy:b}=M();return u("span",k(m({"data-slot":"card-calendar-title",className:p("flex min-w-0 items-start gap-2 font-medium",n==="md"?"text-sm leading-sm":"text-xs leading-xs",b?"text-primary-foreground-muted":A[c],e)},t),{children:[u("span",{className:p("min-w-0 flex-1 truncate",i&&"line-through"),children:[d,i&&o("span",{className:"sr-only",children:", conclu\xEDdo"})]}),l&&o("span",{"data-slot":"card-calendar-icon","aria-hidden":!0,className:p("flex shrink-0 [&_svg]:[stroke-width:1.6]",n==="md"?"[&_svg]:size-5":"[&_svg]:size-4",b&&"text-primary-foreground"),children:l})]}))}function Y(a){var r=a,{className:e}=r,l=g(r,["className"]);return o("span",m({"data-slot":"card-calendar-time",className:p("block truncate text-xs font-semibold leading-xs text-primary-foreground-muted",e)},l))}export{U as CardCalendar,Y as CardCalendarTime,V as CardCalendarTitle};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medway-ui/core",
3
- "version": "1.53.1",
3
+ "version": "1.53.2",
4
4
  "private": false,
5
5
  "description": "Biblioteca de componentes e assets para o sistema Medway",
6
6
  "author": "Alekcarvalho",