@medway-ui/core 1.53.0 → 1.53.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/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 +2 -2
- 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.1 · 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.1 · Generated 2026-12-03
|
|
5
5
|
|
|
6
6
|
All components require React 18+ and are client components (`"use client"`).
|
|
7
7
|
|
|
@@ -8,11 +8,11 @@ interface CardCalendarProps extends ComponentProps<"div"> {
|
|
|
8
8
|
busy?: boolean;
|
|
9
9
|
asChild?: boolean;
|
|
10
10
|
}
|
|
11
|
-
interface CardCalendarTitleProps extends ComponentProps<"
|
|
11
|
+
interface CardCalendarTitleProps extends ComponentProps<"span"> {
|
|
12
12
|
icon?: ReactNode;
|
|
13
13
|
}
|
|
14
14
|
declare function CardCalendar({ className, specialty, size, done, busy, asChild, ...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
|
-
declare function CardCalendarTime({ className, ...props }: ComponentProps<"
|
|
16
|
+
declare function CardCalendarTime({ className, ...props }: ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export { CardCalendar, CardCalendarTime, CardCalendarTitle };
|
|
18
18
|
export type { CardCalendarProps, CardCalendarSize, CardCalendarSpecialty, CardCalendarTitleProps, };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
"use client";
|
|
3
|
-
"use strict";var
|
|
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;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
"use client";
|
|
3
|
-
import{jsx as c,jsxs as
|
|
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};
|