@sudobility/scheduling-components 1.0.11 → 2.0.0
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/index.d.ts +0 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +251 -594
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
- package/dist/calendar.d.ts +0 -44
- package/dist/calendar.d.ts.map +0 -1
- package/dist/date-range-picker.d.ts +0 -50
- package/dist/date-range-picker.d.ts.map +0 -1
- package/dist/relative-time.d.ts +0 -34
- package/dist/relative-time.d.ts.map +0 -1
- package/dist/time-slot-picker.d.ts +0 -33
- package/dist/time-slot-picker.d.ts.map +0 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(b
|
|
1
|
+
(function(m,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react"),require("@sudobility/components")):typeof define=="function"&&define.amd?define(["exports","react","@sudobility/components"],b):(m=typeof globalThis<"u"?globalThis:m||self,b(m.Components={},m.React,m.components))})(this,(function(m,b,f){"use strict";var k={exports:{}},p={};var O;function V(){if(O)return p;O=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function s(u,o,a){var x=null;if(a!==void 0&&(x=""+a),o.key!==void 0&&(x=""+o.key),"key"in o){a={};for(var g in o)g!=="key"&&(a[g]=o[g])}else a=o;return o=a.ref,{$$typeof:n,type:u,key:x,ref:o!==void 0?o:null,props:a}}return p.Fragment=l,p.jsx=s,p.jsxs=s,p}var v={};var P;function z(){return P||(P=1,process.env.NODE_ENV!=="production"&&(function(){function n(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case ae:return"Profiler";case te:return"StrictMode";case le:return"Suspense";case ie:return"SuspenseList";case de:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case re:return"Portal";case se:return e.displayName||"Context";case ne:return(e._context.displayName||"Context")+".Consumer";case oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ce:return t=e.displayName||null,t!==null?t:n(e.type)||"Memo";case E:t=e._payload,e=e._init;try{return n(e(t))}catch{}}return null}function l(e){return""+e}function s(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var i=t.error,c=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",c),l(e)}}function u(e){if(e===_)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===E)return"<...>";try{var t=n(e);return t?"<"+t+">":"<...>"}catch{return"<...>"}}function o(){var e=N.A;return e===null?null:e.getOwner()}function a(){return Error("react-stack-top-frame")}function x(e){if(Y.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function i(){F||(F=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}function h(){var e=n(this.type);return M[e]||(M[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function ee(e,t,i,c,j,T){var d=i.ref;return e={$$typeof:L,type:e,key:t,props:i,_owner:c},(d!==void 0?d:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:h}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:T}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function A(e,t,i,c,j,T){var d=t.children;if(d!==void 0)if(c)if(fe(d)){for(c=0;c<d.length;c++)C(d[c]);Object.freeze&&Object.freeze(d)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else C(d);if(Y.call(t,"key")){d=n(e);var y=Object.keys(t).filter(function(me){return me!=="key"});c=0<y.length?"{key: someKey, "+y.join(": ..., ")+": ...}":"{key: someKey}",$[d+c]||(y=0<y.length?"{"+y.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,k,v,L,v),re[v+k]=!0)}if(v=null,m!==void 0&&(a(m),v=""+m),p(s)&&(a(s.key),v=""+s.key),"key"in s){m={};for(var X in s)X!=="key"&&(m[X]=s[X])}else m=s;return v&&c(m,typeof e=="function"?e.displayName||e.name||"Unknown":e),U(e,v,m,u(),J,G)}function j(e){N(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===h&&(e._payload.status==="fulfilled"?N(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function N(e){return typeof e=="object"&&e!==null&&e.$$typeof===E}var T=D,E=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),o=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),w=Symbol.for("react.client.reference"),A=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,S=Array.isArray,F=console.createTask?console.createTask:function(){return null};T={react_stack_bottom_frame:function(e){return e()}};var V,B={},K=T.react_stack_bottom_frame.bind(T,n)(),ee=F(g(n)),re={};I.Fragment=M,I.jsx=function(e,s,m){var k=1e4>A.recentlyCreatedOwnerStacks++;return R(e,s,m,!1,k?Error("react-stack-top-frame"):K,k?F(g(e)):ee)},I.jsxs=function(e,s,m){var k=1e4>A.recentlyCreatedOwnerStacks++;return R(e,s,m,!0,k?Error("react-stack-top-frame"):K,k?F(g(e)):ee)}})()),I}var Q;function ae(){return Q||(Q=1,process.env.NODE_ENV==="production"?z.exports=te():z.exports=ne()),z.exports}var r=ae();const se=({value:t,onChange:i,minDate:a,maxDate:g,disabledDates:u=[],showOutsideDays:n=!0,className:p})=>{const[c,y]=D.useState(t||new Date),U=o=>{const x=o.getFullYear(),C=o.getMonth();return new Date(x,C+1,0).getDate()},R=o=>{const x=o.getFullYear(),C=o.getMonth();return new Date(x,C,1).getDay()},j=(o,x)=>o.getFullYear()===x.getFullYear()&&o.getMonth()===x.getMonth()&&o.getDate()===x.getDate(),N=o=>a&&o<a||g&&o>g?!0:u.some(x=>j(o,x)),T=()=>{y(new Date(c.getFullYear(),c.getMonth()-1))},E=()=>{y(new Date(c.getFullYear(),c.getMonth()+1))},M=(()=>{const o=c.getFullYear(),x=c.getMonth(),C=U(c),l=R(c),d=[];if(n){const h=U(new Date(o,x-1));for(let _=l-1;_>=0;_--)d.push(new Date(o,x-1,h-_))}else for(let h=0;h<l;h++)d.push(null);for(let h=1;h<=C;h++)d.push(new Date(o,x,h));if(n){const h=42-d.length;for(let _=1;_<=h;_++)d.push(new Date(o,x+1,_))}return d})(),O=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],W=o=>{!o||N(o)||i(o)},q=c.toLocaleDateString("en-US",{month:"long",year:"numeric"});return r.jsxs("div",{className:f.cn("bg-white dark:bg-gray-900 rounded-lg p-4",p),children:[r.jsxs("div",{className:"flex items-center justify-between mb-4",children:[r.jsx("button",{onClick:T,className:"p-2 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-md transition-colors","aria-label":"Previous month",children:r.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),r.jsx("h2",{className:"text-base font-semibold text-gray-900 dark:text-white",children:q}),r.jsx("button",{onClick:E,className:"p-2 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-md transition-colors","aria-label":"Next month",children:r.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]}),r.jsx("div",{className:"grid grid-cols-7 gap-1 mb-2",children:O.map(o=>r.jsx("div",{className:"text-center text-xs font-medium text-gray-600 dark:text-gray-400 py-2",children:o},o))}),r.jsx("div",{className:"grid grid-cols-7 gap-1",children:M.map((o,x)=>{if(!o)return r.jsx("div",{className:"aspect-square"},x);const C=o.getMonth()===c.getMonth(),l=t&&j(o,t),d=j(o,new Date),h=N(o);return r.jsx("button",{onClick:()=>W(o),disabled:h,className:f.cn("aspect-square flex items-center justify-center rounded-md text-sm transition-colors","hover:bg-gray-100 dark:hover:bg-gray-800","disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent",C?"text-gray-900 dark:text-white":"text-gray-400 dark:text-gray-600",l&&"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600",d&&!l&&"border-2 border-blue-600 dark:border-blue-400"),children:o.getDate()},x)})})]})},oe=({value:t,onChange:i,minDate:a,maxDate:g,disabledDates:u=[],months:n=2,className:p})=>{const[c,y]=D.useState(new Date),[U,R]=D.useState(null),j=(l,d)=>l.getFullYear()===d.getFullYear()&&l.getMonth()===d.getMonth()&&l.getDate()===d.getDate(),N=l=>a&&l<a||g&&l>g?!0:u.some(d=>j(l,d)),T=l=>{if(!t.start||!t.end&&!U)return!1;const d=t.end||U;return d?l>t.start&&l<d:!1},E=l=>t.start?j(l,t.start):!1,P=l=>t.end?j(l,t.end):!1,M=l=>{N(l)||(!t.start||t.start&&t.end?i({start:l,end:null}):l<t.start?i({start:l,end:t.start}):i({start:t.start,end:l}))},O=l=>{const d=l.getFullYear(),h=l.getMonth();return new Date(d,h+1,0).getDate()},W=l=>{const d=l.getFullYear(),h=l.getMonth();return new Date(d,h,1).getDay()},q=l=>{const d=new Date(c.getFullYear(),c.getMonth()+l),h=d.getFullYear(),_=d.getMonth(),w=O(d),A=W(d),Y=[];for(let S=0;S<A;S++)Y.push(null);for(let S=1;S<=w;S++)Y.push(new Date(h,_,S));return{days:Y,monthName:d.toLocaleDateString("en-US",{month:"long",year:"numeric"})}},o=()=>{y(new Date(c.getFullYear(),c.getMonth()-1))},x=()=>{y(new Date(c.getFullYear(),c.getMonth()+1))},C=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];return r.jsxs("div",{className:f.cn("bg-white dark:bg-gray-900 rounded-lg p-4",p),children:[r.jsxs("div",{className:"flex items-center justify-between mb-4",children:[r.jsx("button",{onClick:o,className:"p-2 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-md transition-colors","aria-label":"Previous month",children:r.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),r.jsx("button",{onClick:x,className:"p-2 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-md transition-colors","aria-label":"Next month",children:r.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]}),r.jsx("div",{className:"grid gap-4",style:{gridTemplateColumns:`repeat(${n}, 1fr)`},children:Array.from({length:n},(l,d)=>{const{days:h,monthName:_}=q(d);return r.jsxs("div",{children:[r.jsx("h3",{className:"text-base font-semibold text-gray-900 dark:text-white mb-4 text-center",children:_}),r.jsx("div",{className:"grid grid-cols-7 gap-1 mb-2",children:C.map(w=>r.jsx("div",{className:"text-center text-xs font-medium text-gray-600 dark:text-gray-400 py-2",children:w},w))}),r.jsx("div",{className:"grid grid-cols-7 gap-1",children:h.map((w,A)=>{if(!w)return r.jsx("div",{className:"aspect-square"},A);const Y=N(w),S=E(w),F=P(w),V=T(w),B=j(w,new Date);return r.jsx("button",{onClick:()=>M(w),onMouseEnter:()=>R(w),onMouseLeave:()=>R(null),disabled:Y,className:f.cn("aspect-square flex items-center justify-center rounded-md text-sm transition-colors relative","disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent",V&&"bg-blue-100 dark:bg-blue-900/30",(S||F)&&"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600",!S&&!F&&!V&&"hover:bg-gray-100 dark:hover:bg-gray-800",B&&!S&&!F&&"border-2 border-blue-600 dark:border-blue-400"),children:w.getDate()},A)})})]},d)})}),(t.start||t.end)&&r.jsx("div",{className:"mt-4 pt-4 border-t border-gray-200 dark:border-gray-700",children:r.jsxs("div",{className:"flex items-center justify-between text-sm",children:[r.jsxs("div",{children:[r.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"Start: "}),r.jsx("span",{className:"font-medium text-gray-900 dark:text-white",children:t.start?.toLocaleDateString()||"Not selected"})]}),r.jsxs("div",{children:[r.jsx("span",{className:"text-gray-600 dark:text-gray-400",children:"End: "}),r.jsx("span",{className:"font-medium text-gray-900 dark:text-white",children:t.end?.toLocaleDateString()||"Not selected"})]})]})})]})},le=({className:t,children:i,disabled:a})=>r.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",a&&"opacity-50 cursor-not-allowed",t),role:"region","aria-label":"InterviewScheduler",children:i||"InterviewScheduler Component"}),ie=({className:t,children:i,disabled:a=!1,onClick:g})=>r.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",t),onClick:a?void 0:g,role:"region","aria-label":"UmeetingUscheduler",children:i||"UmeetingUscheduler Component"}),ce=({className:t,children:i,disabled:a})=>r.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",a&&"opacity-50 cursor-not-allowed",t),role:"region","aria-label":"PortSchedule",children:i||"PortSchedule Component"}),de=({date:t,showTooltip:i=!0,updateInterval:a=0,className:g})=>{const[,u]=D.useState(0),n=D.useMemo(()=>t instanceof Date?t:new Date(t),[t]);D.useEffect(()=>{if(a===0)return;const U=setInterval(()=>{u(R=>R+1)},a*1e3);return()=>clearInterval(U)},[a]);const c=(()=>{const R=new Date().getTime()-n.getTime(),j=Math.floor(R/1e3),N=Math.floor(j/60),T=Math.floor(N/60),E=Math.floor(T/24),P=Math.floor(E/7),M=Math.floor(E/30),O=Math.floor(E/365);return j<60?"just now":N<60?`${N} ${N===1?"minute":"minutes"} ago`:T<24?`${T} ${T===1?"hour":"hours"} ago`:E<7?`${E} ${E===1?"day":"days"} ago`:P<4?`${P} ${P===1?"week":"weeks"} ago`:M<12?`${M} ${M===1?"month":"months"} ago`:`${O} ${O===1?"year":"years"} ago`})(),y=n.toLocaleString();return r.jsx("time",{dateTime:n.toISOString(),title:i?y:void 0,className:f.cn(g),children:c})},ue=({className:t,children:i,disabled:a=!1,onClick:g})=>r.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",t),onClick:a?void 0:g,role:"region","aria-label":"UscheduleUtimeline",children:i||"UscheduleUtimeline Component"}),ge=({className:t,children:i,disabled:a=!1,onClick:g})=>r.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",t),onClick:a?void 0:g,role:"region","aria-label":"UsentimentUindicator",children:i||"UsentimentUindicator Component"}),he=({className:t,children:i,disabled:a=!1,onClick:g})=>r.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",t),onClick:a?void 0:g,role:"region","aria-label":"UtimeUslotUpicker",children:i||"UtimeUslotUpicker Component"}),fe=({events:t,align:i="left",showConnectors:a=!0,className:g})=>r.jsx("div",{className:f.cn("relative",g),children:t.map((u,n)=>{const p=n===t.length-1,c=u.color||"#3b82f6";return r.jsxs("div",{className:f.cn("relative flex gap-4 pb-8",i==="center"&&"justify-center",i==="right"&&"justify-end"),children:[a&&!p&&r.jsx("div",{className:"absolute left-4 top-8 w-0.5 h-full bg-gray-300 dark:bg-gray-600",style:i==="center"?{left:"50%"}:i==="right"?{right:"2rem"}:void 0}),r.jsx("div",{className:"relative z-10 flex-shrink-0",children:u.icon?r.jsx("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-white",style:{backgroundColor:c},children:u.icon}):r.jsx("div",{className:"w-4 h-4 rounded-full border-4 border-white dark:border-gray-900",style:{backgroundColor:c}})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[r.jsx("h4",{className:"font-semibold text-gray-900 dark:text-white",children:u.title}),u.timestamp&&r.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:u.timestamp})]}),u.description&&r.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:u.description})]})]},u.id)})}),me=({items:t,orientation:i="vertical",className:a})=>{const g={completed:"bg-green-500 border-green-500",active:"bg-blue-500 border-blue-500",pending:"bg-gray-300 dark:bg-gray-600 border-gray-300 dark:border-gray-600",error:"bg-red-500 border-red-500"},u={completed:"text-white",active:"text-white",pending:"text-gray-500 dark:text-gray-400",error:"text-white"};return i==="horizontal"?r.jsx("div",{className:f.cn("w-full overflow-x-auto",a),children:r.jsx("div",{className:"flex items-start min-w-max px-4",children:t.map((n,p)=>{const c=p===t.length-1,y=n.status||"pending";return r.jsxs(D.Fragment,{children:[r.jsxs("div",{className:"flex flex-col items-center",children:[r.jsx("div",{className:f.cn("w-10 h-10 rounded-full flex items-center justify-center border-2",g[y]),children:n.icon?r.jsx("span",{className:f.cn("w-5 h-5",u[y]),children:n.icon}):y==="completed"?r.jsx("svg",{className:"w-5 h-5 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})}):null}),r.jsxs("div",{className:"mt-4 text-center max-w-[200px]",children:[r.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:n.title}),n.description&&r.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400 mt-1",children:n.description}),n.timestamp&&r.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-500 mt-1",children:n.timestamp})]})]}),!c&&r.jsx("div",{className:"flex-shrink-0 w-16 h-0.5 bg-gray-300 dark:bg-gray-700 mt-5 mx-2 relative",children:r.jsx("div",{className:f.cn("absolute left-0 top-0 h-full transition-all duration-300",y==="completed"?"w-full bg-green-500":"w-0")})})]},n.id)})})}):r.jsx("div",{className:f.cn("w-full",a),children:r.jsx("div",{className:"space-y-4",children:t.map((n,p)=>{const c=p===t.length-1,y=n.status||"pending";return r.jsxs("div",{className:"flex gap-4",children:[r.jsxs("div",{className:"flex flex-col items-center",children:[r.jsx("div",{className:f.cn("w-10 h-10 rounded-full flex items-center justify-center border-2 flex-shrink-0",g[y]),children:n.icon?r.jsx("span",{className:f.cn("w-5 h-5",u[y]),children:n.icon}):y==="completed"?r.jsx("svg",{className:"w-5 h-5 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})}):null}),!c&&r.jsx("div",{className:"w-0.5 flex-1 min-h-[32px] bg-gray-300 dark:bg-gray-700 relative mt-2",children:r.jsx("div",{className:f.cn("absolute top-0 left-0 w-full transition-all duration-300",y==="completed"?"h-full bg-green-500":"h-0")})})]}),r.jsx("div",{className:"flex-1 pb-4",children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:n.title}),n.description&&r.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mt-1",children:n.description})]}),n.timestamp&&r.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-500 ml-4 flex-shrink-0",children:n.timestamp})]})})]},n.id)})})})},xe=({className:t,children:i,disabled:a=!1,onClick:g})=>r.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",a&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",t),onClick:a?void 0:g,role:"region","aria-label":"UworkUcalendar",children:i||"UworkUcalendar Component"});b.Calendar=se,b.DateRangePicker=oe,b.InterviewScheduler=le,b.PortSchedule=ce,b.RelativeTime=de,b.Timeline=me,b.TimelineVertical=fe,b.UmeetingUscheduler=ie,b.UscheduleUtimeline=ue,b.UsentimentUindicator=ge,b.UtimeUslotUpicker=he,b.UworkUcalendar=xe,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}));
|
|
6
|
+
<%s key={someKey} {...props} />`,c,d,y,d),$[d+c]=!0)}if(d=null,i!==void 0&&(s(i),d=""+i),x(t)&&(s(t.key),d=""+t.key),"key"in t){i={};for(var S in t)S!=="key"&&(i[S]=t[S])}else i=t;return d&&g(i,typeof e=="function"?e.displayName||e.name||"Unknown":e),ee(e,d,i,o(),j,T)}function C(e){I(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===E&&(e._payload.status==="fulfilled"?I(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function I(e){return typeof e=="object"&&e!==null&&e.$$typeof===L}var w=b,L=Symbol.for("react.transitional.element"),re=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),ne=Symbol.for("react.consumer"),se=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),ue=Symbol.for("react.client.reference"),N=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,fe=Array.isArray,R=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(e){return e()}};var F,M={},D=w.react_stack_bottom_frame.bind(w,a)(),W=R(u(a)),$={};v.Fragment=_,v.jsx=function(e,t,i){var c=1e4>N.recentlyCreatedOwnerStacks++;return A(e,t,i,!1,c?Error("react-stack-top-frame"):D,c?R(u(e)):W)},v.jsxs=function(e,t,i){var c=1e4>N.recentlyCreatedOwnerStacks++;return A(e,t,i,!0,c?Error("react-stack-top-frame"):D,c?R(u(e)):W)}})()),v}var U;function q(){return U||(U=1,process.env.NODE_ENV==="production"?k.exports=V():k.exports=z()),k.exports}var r=q();const J=({className:n,children:l,disabled:s})=>r.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",s&&"opacity-50 cursor-not-allowed",n),role:"region","aria-label":"InterviewScheduler",children:l||"InterviewScheduler Component"}),G=({className:n,children:l,disabled:s=!1,onClick:u})=>r.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",s&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",n),onClick:s?void 0:u,role:"region","aria-label":"UmeetingUscheduler",children:l||"UmeetingUscheduler Component"}),X=({className:n,children:l,disabled:s})=>r.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",s&&"opacity-50 cursor-not-allowed",n),role:"region","aria-label":"PortSchedule",children:l||"PortSchedule Component"}),B=({className:n,children:l,disabled:s=!1,onClick:u})=>r.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",s&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",n),onClick:s?void 0:u,role:"region","aria-label":"UscheduleUtimeline",children:l||"UscheduleUtimeline Component"}),H=({className:n,children:l,disabled:s=!1,onClick:u})=>r.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",s&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",n),onClick:s?void 0:u,role:"region","aria-label":"UsentimentUindicator",children:l||"UsentimentUindicator Component"}),Z=({events:n,align:l="left",showConnectors:s=!0,className:u})=>r.jsx("div",{className:f.cn("relative",u),children:n.map((o,a)=>{const x=a===n.length-1,g=o.color||"#3b82f6";return r.jsxs("div",{className:f.cn("relative flex gap-4 pb-8",l==="center"&&"justify-center",l==="right"&&"justify-end"),children:[s&&!x&&r.jsx("div",{className:"absolute left-4 top-8 w-0.5 h-full bg-gray-300 dark:bg-gray-600",style:l==="center"?{left:"50%"}:l==="right"?{right:"2rem"}:void 0}),r.jsx("div",{className:"relative z-10 flex-shrink-0",children:o.icon?r.jsx("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-white",style:{backgroundColor:g},children:o.icon}):r.jsx("div",{className:"w-4 h-4 rounded-full border-4 border-white dark:border-gray-900",style:{backgroundColor:g}})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[r.jsx("h4",{className:"font-semibold text-gray-900 dark:text-white",children:o.title}),o.timestamp&&r.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:o.timestamp})]}),o.description&&r.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:o.description})]})]},o.id)})}),Q=({items:n,orientation:l="vertical",className:s})=>{const u={completed:"bg-green-500 border-green-500",active:"bg-blue-500 border-blue-500",pending:"bg-gray-300 dark:bg-gray-600 border-gray-300 dark:border-gray-600",error:"bg-red-500 border-red-500"},o={completed:"text-white",active:"text-white",pending:"text-gray-500 dark:text-gray-400",error:"text-white"};return l==="horizontal"?r.jsx("div",{className:f.cn("w-full overflow-x-auto",s),children:r.jsx("div",{className:"flex items-start min-w-max px-4",children:n.map((a,x)=>{const g=x===n.length-1,h=a.status||"pending";return r.jsxs(b.Fragment,{children:[r.jsxs("div",{className:"flex flex-col items-center",children:[r.jsx("div",{className:f.cn("w-10 h-10 rounded-full flex items-center justify-center border-2",u[h]),children:a.icon?r.jsx("span",{className:f.cn("w-5 h-5",o[h]),children:a.icon}):h==="completed"?r.jsx("svg",{className:"w-5 h-5 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})}):null}),r.jsxs("div",{className:"mt-4 text-center max-w-[200px]",children:[r.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:a.title}),a.description&&r.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400 mt-1",children:a.description}),a.timestamp&&r.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-500 mt-1",children:a.timestamp})]})]}),!g&&r.jsx("div",{className:"flex-shrink-0 w-16 h-0.5 bg-gray-300 dark:bg-gray-700 mt-5 mx-2 relative",children:r.jsx("div",{className:f.cn("absolute left-0 top-0 h-full transition-all duration-300",h==="completed"?"w-full bg-green-500":"w-0")})})]},a.id)})})}):r.jsx("div",{className:f.cn("w-full",s),children:r.jsx("div",{className:"space-y-4",children:n.map((a,x)=>{const g=x===n.length-1,h=a.status||"pending";return r.jsxs("div",{className:"flex gap-4",children:[r.jsxs("div",{className:"flex flex-col items-center",children:[r.jsx("div",{className:f.cn("w-10 h-10 rounded-full flex items-center justify-center border-2 flex-shrink-0",u[h]),children:a.icon?r.jsx("span",{className:f.cn("w-5 h-5",o[h]),children:a.icon}):h==="completed"?r.jsx("svg",{className:"w-5 h-5 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})}):null}),!g&&r.jsx("div",{className:"w-0.5 flex-1 min-h-[32px] bg-gray-300 dark:bg-gray-700 relative mt-2",children:r.jsx("div",{className:f.cn("absolute top-0 left-0 w-full transition-all duration-300",h==="completed"?"h-full bg-green-500":"h-0")})})]}),r.jsx("div",{className:"flex-1 pb-4",children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:a.title}),a.description&&r.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mt-1",children:a.description})]}),a.timestamp&&r.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-500 ml-4 flex-shrink-0",children:a.timestamp})]})})]},a.id)})})})},K=({className:n,children:l,disabled:s=!1,onClick:u})=>r.jsx("div",{className:f.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",s&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",n),onClick:s?void 0:u,role:"region","aria-label":"UworkUcalendar",children:l||"UworkUcalendar Component"});m.InterviewScheduler=J,m.PortSchedule=X,m.Timeline=Q,m.TimelineVertical=Z,m.UmeetingUscheduler=G,m.UscheduleUtimeline=B,m.UsentimentUindicator=H,m.UworkUcalendar=K,Object.defineProperty(m,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
package/dist/calendar.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface CalendarProps {
|
|
3
|
-
/** Selected date */
|
|
4
|
-
value?: Date;
|
|
5
|
-
/** Change handler */
|
|
6
|
-
onChange: (date: Date) => void;
|
|
7
|
-
/** Minimum selectable date */
|
|
8
|
-
minDate?: Date;
|
|
9
|
-
/** Maximum selectable date */
|
|
10
|
-
maxDate?: Date;
|
|
11
|
-
/** Disabled dates */
|
|
12
|
-
disabledDates?: Date[];
|
|
13
|
-
/** Show outside days */
|
|
14
|
-
showOutsideDays?: boolean;
|
|
15
|
-
/** Additional className */
|
|
16
|
-
className?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Calendar Component
|
|
20
|
-
*
|
|
21
|
-
* Interactive calendar for date selection.
|
|
22
|
-
* Supports min/max dates and disabled dates.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```tsx
|
|
26
|
-
* <Calendar
|
|
27
|
-
* value={selectedDate}
|
|
28
|
-
* onChange={setSelectedDate}
|
|
29
|
-
* minDate={new Date()}
|
|
30
|
-
* />
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```tsx
|
|
35
|
-
* <Calendar
|
|
36
|
-
* value={date}
|
|
37
|
-
* onChange={handleDateChange}
|
|
38
|
-
* disabledDates={blockedDates}
|
|
39
|
-
* showOutsideDays={false}
|
|
40
|
-
* />
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
export declare const Calendar: React.FC<CalendarProps>;
|
|
44
|
-
//# sourceMappingURL=calendar.d.ts.map
|
package/dist/calendar.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../src/calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,MAAM,WAAW,aAAa;IAC5B,oBAAoB;IACpB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,qBAAqB;IACrB,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,8BAA8B;IAC9B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,qBAAqB;IACrB,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC;IACvB,wBAAwB;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA0M5C,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface DateRange {
|
|
3
|
-
/** Start date */
|
|
4
|
-
start: Date | null;
|
|
5
|
-
/** End date */
|
|
6
|
-
end: Date | null;
|
|
7
|
-
}
|
|
8
|
-
export interface DateRangePickerProps {
|
|
9
|
-
/** Selected date range */
|
|
10
|
-
value: DateRange;
|
|
11
|
-
/** Change handler */
|
|
12
|
-
onChange: (range: DateRange) => void;
|
|
13
|
-
/** Minimum selectable date */
|
|
14
|
-
minDate?: Date;
|
|
15
|
-
/** Maximum selectable date */
|
|
16
|
-
maxDate?: Date;
|
|
17
|
-
/** Disabled dates */
|
|
18
|
-
disabledDates?: Date[];
|
|
19
|
-
/** Number of months to show */
|
|
20
|
-
months?: number;
|
|
21
|
-
/** Additional className */
|
|
22
|
-
className?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* DateRangePicker Component
|
|
26
|
-
*
|
|
27
|
-
* Date range picker with start and end date selection.
|
|
28
|
-
* Displays multiple months side by side.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```tsx
|
|
32
|
-
* <DateRangePicker
|
|
33
|
-
* value={dateRange}
|
|
34
|
-
* onChange={setDateRange}
|
|
35
|
-
* months={2}
|
|
36
|
-
* />
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```tsx
|
|
41
|
-
* <DateRangePicker
|
|
42
|
-
* value={range}
|
|
43
|
-
* onChange={handleRangeChange}
|
|
44
|
-
* minDate={new Date()}
|
|
45
|
-
* disabledDates={blockedDates}
|
|
46
|
-
* />
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
export declare const DateRangePicker: React.FC<DateRangePickerProps>;
|
|
50
|
-
//# sourceMappingURL=date-range-picker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-range-picker.d.ts","sourceRoot":"","sources":["../src/date-range-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,MAAM,WAAW,SAAS;IACxB,iBAAiB;IACjB,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,eAAe;IACf,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC,0BAA0B;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB,qBAAqB;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC,8BAA8B;IAC9B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,8BAA8B;IAC9B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,qBAAqB;IACrB,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC;IACvB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgQ1D,CAAC"}
|
package/dist/relative-time.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface RelativeTimeProps {
|
|
3
|
-
/** Date to display */
|
|
4
|
-
date: Date | string | number;
|
|
5
|
-
/** Show full date on hover */
|
|
6
|
-
showTooltip?: boolean;
|
|
7
|
-
/** Update interval in seconds (0 to disable) */
|
|
8
|
-
updateInterval?: number;
|
|
9
|
-
/** Additional className */
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* RelativeTime Component
|
|
14
|
-
*
|
|
15
|
-
* Displays relative time (e.g., "2 hours ago", "just now").
|
|
16
|
-
* Optionally shows full timestamp on hover and auto-updates.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* <RelativeTime date={new Date()} />
|
|
21
|
-
* <RelativeTime date="2024-01-15T10:30:00Z" showTooltip />
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```tsx
|
|
26
|
-
* <RelativeTime
|
|
27
|
-
* date={message.timestamp}
|
|
28
|
-
* updateInterval={60}
|
|
29
|
-
* showTooltip
|
|
30
|
-
* />
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare const RelativeTime: React.FC<RelativeTimeProps>;
|
|
34
|
-
//# sourceMappingURL=relative-time.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"relative-time.d.ts","sourceRoot":"","sources":["../src/relative-time.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,iBAAiB;IAChC,sBAAsB;IACtB,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;IAC7B,8BAA8B;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAkEpD,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UtimeUslotUpicker Component
|
|
3
|
-
*
|
|
4
|
-
* A reusable UtimeUslotUpicker component with full dark mode support.
|
|
5
|
-
* Optimized for accessibility and AI-assisted development.
|
|
6
|
-
*
|
|
7
|
-
* @component
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* <UtimeUslotUpicker className="custom-class" />
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* This component supports:
|
|
15
|
-
* - Light and dark themes automatically
|
|
16
|
-
* - Responsive design
|
|
17
|
-
* - Accessibility features
|
|
18
|
-
* - TypeScript type safety
|
|
19
|
-
*
|
|
20
|
-
* @see {@link https://docs.example.com/components/time-slot-picker}
|
|
21
|
-
*/
|
|
22
|
-
export interface UtimeUslotUpickerProps {
|
|
23
|
-
/** Additional CSS classes */
|
|
24
|
-
className?: string;
|
|
25
|
-
/** Component children */
|
|
26
|
-
children?: React.ReactNode;
|
|
27
|
-
/** Disabled state */
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
/** Callback when component is interacted with */
|
|
30
|
-
onClick?: () => void;
|
|
31
|
-
}
|
|
32
|
-
export declare const UtimeUslotUpicker: ({ className, children, disabled, onClick, }: UtimeUslotUpickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
//# sourceMappingURL=time-slot-picker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"time-slot-picker.d.ts","sourceRoot":"","sources":["../src/time-slot-picker.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,sBAAsB;IACrC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,iBAAiB,GAAI,6CAK/B,sBAAsB,4CAmBxB,CAAC"}
|