@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 +1 -1
- package/COMPONENTS_SUMMARY.md +1 -1
- package/dist/COMPONENTS.md +1 -1
- package/dist/COMPONENTS_SUMMARY.md +1 -1
- package/dist/components/CardCalendar.d.ts +1 -1
- package/dist/components/CardCalendar.js +1 -1
- package/dist/components/CardCalendar.mjs +1 -1
- package/package.json +1 -1
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.
|
|
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
|
|
package/COMPONENTS_SUMMARY.md
CHANGED
package/dist/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.
|
|
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
|
|
|
@@ -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"),
|
|
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
|
|
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};
|