@progress/kendo-themes-html 14.4.0-dev.2 → 14.4.0-dev.4
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/cjs/agent-response/agent-step.js +1 -0
- package/dist/cjs/agent-response/chain-of-thought.spec.js +1 -0
- package/dist/cjs/agent-response/reasoning.spec.js +1 -0
- package/dist/cjs/agent-response/templates/chain-of-thought-expanded.js +1 -0
- package/dist/cjs/agent-response/templates/chain-of-thought-normal.js +1 -0
- package/dist/cjs/agent-response/templates/reasoning-expanded.js +1 -0
- package/dist/cjs/agent-response/templates/reasoning-normal.js +1 -0
- package/dist/cjs/agent-response/templates/tool-call-expanded.js +1 -0
- package/dist/cjs/agent-response/templates/tool-call-normal.js +1 -0
- package/dist/cjs/agent-response/thought.spec.js +1 -0
- package/dist/cjs/agent-response/tool-call.spec.js +1 -0
- package/dist/cjs/checkpoint/checkpoint.spec.js +1 -0
- package/dist/cjs/checkpoint/templates/checkpoint-normal.js +1 -0
- package/dist/cjs/citation/citation-popover.spec.js +1 -0
- package/dist/cjs/citation/citation.spec.js +1 -0
- package/dist/cjs/citation/templates/citation-normal.js +1 -0
- package/dist/cjs/citation/templates/citation-opened.js +1 -0
- package/dist/cjs/datetime-selector/datetime-selector.spec.js +1 -1
- package/dist/cjs/datetimepicker/datetimepicker.spec.js +1 -1
- package/dist/cjs/datetimepicker/demos/datetimepicker.js +1 -1
- package/dist/cjs/datetimepicker/templates/datetimepicker-adaptive.js +1 -1
- package/dist/cjs/datetimepicker/templates/datetimepicker-disabled.js +1 -1
- package/dist/cjs/datetimepicker/templates/datetimepicker-invalid.js +1 -1
- package/dist/cjs/datetimepicker/templates/datetimepicker-normal.js +1 -1
- package/dist/cjs/datetimepicker/templates/datetimepicker-popup.js +1 -1
- package/dist/cjs/gantt/demos/gantt.js +1 -1
- package/dist/cjs/gantt/templates/gantt-normal.js +1 -1
- package/dist/cjs/gantt/templates/gantt-row-reordering.js +1 -1
- package/dist/cjs/gantt/templates/gantt-with-tooltip.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-crop.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-normal.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-resize.js +1 -1
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/popover/popover.spec.js +1 -1
- package/dist/cjs/scheduler/demos/scheduler.js +1 -1
- package/dist/cjs/scheduler/scheduler-toolbar.spec.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-agenda.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-day.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-agenda.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-day.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-horizontal-grouping.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-month.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-timeline.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-vertical-grouping.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-week.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-year.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-horizontal-grouping.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-month.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-timeline.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-vertical-grouping.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-week.js +1 -1
- package/dist/cjs/segmented-control/segmented-control-button.spec.js +1 -1
- package/dist/cjs/segmented-control/templates/segmented-control-disabled.js +1 -1
- package/dist/cjs/segmented-control/templates/segmented-control-icons.js +1 -1
- package/dist/cjs/segmented-control/templates/segmented-control-normal.js +1 -1
- package/dist/cjs/segmented-control/templates/segmented-control-stretched.js +1 -1
- package/dist/cjs/segmented-control/templates/segmented-control-text.js +1 -1
- package/dist/esm/agent-response/agent-step.mjs +1 -0
- package/dist/esm/agent-response/chain-of-thought.spec.mjs +1 -0
- package/dist/esm/agent-response/reasoning.spec.mjs +1 -0
- package/dist/esm/agent-response/templates/chain-of-thought-expanded.mjs +1 -0
- package/dist/esm/agent-response/templates/chain-of-thought-normal.mjs +1 -0
- package/dist/esm/agent-response/templates/reasoning-expanded.mjs +1 -0
- package/dist/esm/agent-response/templates/reasoning-normal.mjs +1 -0
- package/dist/esm/agent-response/templates/tool-call-expanded.mjs +1 -0
- package/dist/esm/agent-response/templates/tool-call-normal.mjs +1 -0
- package/dist/esm/agent-response/thought.spec.mjs +1 -0
- package/dist/esm/agent-response/tool-call.spec.mjs +1 -0
- package/dist/esm/checkpoint/checkpoint.spec.mjs +1 -0
- package/dist/esm/checkpoint/templates/checkpoint-normal.mjs +1 -0
- package/dist/esm/citation/citation-popover.spec.mjs +1 -0
- package/dist/esm/citation/citation.spec.mjs +1 -0
- package/dist/esm/citation/templates/citation-normal.mjs +1 -0
- package/dist/esm/citation/templates/citation-opened.mjs +1 -0
- package/dist/esm/datetime-selector/datetime-selector.spec.mjs +1 -1
- package/dist/esm/datetimepicker/datetimepicker.spec.mjs +1 -1
- package/dist/esm/datetimepicker/demos/datetimepicker.mjs +1 -1
- package/dist/esm/datetimepicker/templates/datetimepicker-adaptive.mjs +1 -1
- package/dist/esm/datetimepicker/templates/datetimepicker-disabled.mjs +1 -1
- package/dist/esm/datetimepicker/templates/datetimepicker-invalid.mjs +1 -1
- package/dist/esm/datetimepicker/templates/datetimepicker-normal.mjs +1 -1
- package/dist/esm/datetimepicker/templates/datetimepicker-popup.mjs +1 -1
- package/dist/esm/gantt/demos/gantt.mjs +1 -1
- package/dist/esm/gantt/templates/gantt-normal.mjs +1 -1
- package/dist/esm/gantt/templates/gantt-row-reordering.mjs +1 -1
- package/dist/esm/gantt/templates/gantt-with-tooltip.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-crop.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-normal.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-resize.mjs +1 -1
- package/dist/esm/index.mjs +8 -8
- package/dist/esm/popover/demos/popover.mjs +1 -1
- package/dist/esm/popover/popover.spec.mjs +1 -1
- package/dist/esm/popover/templates/popover-normal.mjs +1 -1
- package/dist/esm/scheduler/demos/scheduler.mjs +1 -1
- package/dist/esm/scheduler/scheduler-toolbar.spec.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-agenda.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-day.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-agenda.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-day.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-horizontal-grouping.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-month.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-timeline.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-vertical-grouping.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-week.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-year.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-horizontal-grouping.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-month.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-timeline.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-vertical-grouping.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-week.mjs +1 -1
- package/dist/esm/segmented-control/segmented-control-button.spec.mjs +1 -1
- package/dist/esm/segmented-control/templates/segmented-control-disabled.mjs +1 -1
- package/dist/esm/segmented-control/templates/segmented-control-icons.mjs +1 -1
- package/dist/esm/segmented-control/templates/segmented-control-normal.mjs +1 -1
- package/dist/esm/segmented-control/templates/segmented-control-stretched.mjs +1 -1
- package/dist/esm/segmented-control/templates/segmented-control-text.mjs +1 -1
- package/dist/types/agent-response/agent-step.d.ts +48 -0
- package/dist/types/agent-response/chain-of-thought.spec.d.ts +20 -0
- package/dist/types/agent-response/constants.d.ts +2 -0
- package/dist/types/agent-response/index.d.ts +10 -0
- package/dist/types/agent-response/reasoning.spec.d.ts +20 -0
- package/dist/types/agent-response/templates/chain-of-thought-expanded.d.ts +1 -0
- package/dist/types/agent-response/templates/chain-of-thought-normal.d.ts +1 -0
- package/dist/types/agent-response/templates/reasoning-expanded.d.ts +1 -0
- package/dist/types/agent-response/templates/reasoning-normal.d.ts +1 -0
- package/dist/types/agent-response/templates/tool-call-expanded.d.ts +1 -0
- package/dist/types/agent-response/templates/tool-call-normal.d.ts +1 -0
- package/dist/types/agent-response/thought.spec.d.ts +33 -0
- package/dist/types/agent-response/tool-call.spec.d.ts +21 -0
- package/dist/types/checkpoint/checkpoint.spec.d.ts +18 -0
- package/dist/types/checkpoint/constants.d.ts +2 -0
- package/dist/types/checkpoint/index.d.ts +2 -0
- package/dist/types/checkpoint/templates/checkpoint-normal.d.ts +1 -0
- package/dist/types/citation/citation-popover.spec.d.ts +22 -0
- package/dist/types/citation/citation.spec.d.ts +16 -0
- package/dist/types/citation/constants.d.ts +2 -0
- package/dist/types/citation/index.d.ts +4 -0
- package/dist/types/citation/templates/citation-normal.d.ts +1 -0
- package/dist/types/citation/templates/citation-opened.d.ts +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/popover/popover.spec.d.ts +2 -2
- package/dist/types/segmented-control/segmented-control-button.spec.d.ts +1 -0
- package/dist/types/segmented-control/segmented-control.spec.d.ts +5 -3
- package/package.json +2 -2
- package/src/agent-response/agent-step.tsx +113 -0
- package/src/agent-response/chain-of-thought.spec.tsx +45 -0
- package/src/agent-response/constants.ts +2 -0
- package/src/agent-response/index.ts +10 -0
- package/src/agent-response/reasoning.spec.tsx +46 -0
- package/src/agent-response/templates/chain-of-thought-expanded.tsx +9 -0
- package/src/agent-response/templates/chain-of-thought-normal.tsx +3 -0
- package/src/agent-response/templates/reasoning-expanded.tsx +7 -0
- package/src/agent-response/templates/reasoning-normal.tsx +3 -0
- package/src/agent-response/templates/tool-call-expanded.tsx +15 -0
- package/src/agent-response/templates/tool-call-normal.tsx +3 -0
- package/src/agent-response/tests/chain-of-thought.tsx +46 -0
- package/src/agent-response/tests/reasoning.tsx +21 -0
- package/src/agent-response/tests/tool-call.tsx +69 -0
- package/src/agent-response/thought.spec.tsx +96 -0
- package/src/agent-response/tool-call.spec.tsx +46 -0
- package/src/checkpoint/checkpoint.spec.tsx +52 -0
- package/src/checkpoint/constants.ts +2 -0
- package/src/checkpoint/index.ts +2 -0
- package/src/checkpoint/templates/checkpoint-normal.tsx +8 -0
- package/src/checkpoint/tests/checkpoint.tsx +42 -0
- package/src/citation/citation-popover.spec.tsx +71 -0
- package/src/citation/citation.spec.tsx +45 -0
- package/src/citation/constants.ts +2 -0
- package/src/citation/index.ts +4 -0
- package/src/citation/templates/citation-normal.tsx +3 -0
- package/src/citation/templates/citation-opened.tsx +20 -0
- package/src/citation/tests/citation.tsx +53 -0
- package/src/index.ts +3 -0
- package/src/popover/popover.spec.tsx +3 -3
- package/src/segmented-control/segmented-control-button.spec.tsx +2 -0
- package/src/segmented-control/segmented-control.spec.tsx +5 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=(...o)=>o.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?l(...e):typeof e=="object"?Object.keys(e).map((a,i)=>e[i]||e[a]&&a||null).filter(a=>a!==null).join(" "):e).filter(e=>!!e).join(" ");var h=(o,e)=>l({[`${o}-xs`]:e.size==="xsmall",[`${o}-sm`]:e.size==="small",[`${o}-md`]:e.size==="medium",[`${o}-lg`]:e.size==="large",[`${o}-xl`]:e.size==="xlarge",[`${o}-xxl`]:e.size==="xxlarge",[`${o}-xxxl`]:e.size==="xxxlarge"},{[`${o}-${e.fillMode}`]:e.fillMode},{[`${o}-${e.themeColor}`]:e.themeColor},{"k-rounded-sm":e.rounded==="small","k-rounded-md":e.rounded==="medium","k-rounded-lg":e.rounded==="large","k-rounded-full":e.rounded==="full","k-rounded-none":e.rounded==="none"});var n={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},u={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},y={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},g={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},t={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},k={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};import{Fragment as Ae,jsx as Y}from"react/jsx-runtime";var P="k-font-icon",xe=[],ve={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info]},he={},I=o=>{let{size:e,themeColor:a,icon:i,rotate:r,flip:c,...p}=o;return i?Y("span",{...p,className:l(o.className,P,h(P,{size:e}),{[`k-i-${i}`]:i,[`k-color-${a}`]:a,[`k-rotate-${r}`]:r,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"}),"aria-hidden":"true"}):Y(Ae,{})};I.states=xe;I.options=ve;I.className=P;I.defaultOptions=he;var Z=I;import{Fragment as be,jsx as $}from"react/jsx-runtime";var H="k-svg-icon",ye=[],Ne={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info],variant:[g.outline,g.solid,g.duotone]},F={viewBox:"0 0 24 24",variant:g.outline},S=o=>{let{size:e,themeColor:a,rotate:i,flip:r,viewBox:c=F.viewBox,variant:p=F.variant,icon:s,...x}=o;if(!s)return $(be,{});if(s==="none")return $("span",{...x,className:l(o.className,H,h("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let N=typeof s=="object"&&s.name&&s.name,v=typeof s=="object"?p&&s.variants?.[p]||s.variants?.outline||s.content:void 0;return $("span",{...x,className:l(o.className,H,h("k-icon",{size:e}),{[`k-svg-i-${N}`]:N,[`k-color-${a}`]:a,[`k-rotate-${i}`]:i,"k-flip-h":r==="h"||r==="both","k-flip-v":r==="v"||r==="both"}),"aria-hidden":"true",children:$("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof s=="object"?s.viewBox:c,dangerouslySetInnerHTML:v!==void 0?{__html:v}:void 0,children:s?void 0:o.children})})};S.states=ye;S.options=Ne;S.className=H;S.defaultOptions=F;var G=S;import*as V from"@progress/kendo-svg-icons";var j="icon",ee="icons";import{useContext as Ee}from"react";import{createContext as Ce}from"react";var oe=Ce({iconsType:"svg"});import{Fragment as te,jsx as _}from"react/jsx-runtime";var w="k-icon",Me=o=>o.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),ke=[],Te={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info],variant:[g.outline,g.solid,g.duotone]},D={viewBox:"0 0 24 24",type:"svg",variant:g.outline},m=o=>{let{iconsType:e}=Ee(oe),{size:a,themeColor:i,icon:r,type:c=e||D.type,rotate:p,flip:s,viewBox:x=D.viewBox,variant:N=D.variant,...v}=o;if(!r)return _(te,{});if((e||c)==="svg"){if(r==="none")return _(G,{...v,className:l(o.className,w),icon:r,size:a,variant:N});let K=V[r]?r:Me(`${r}-icon`);return V[K]?_(G,{...v,className:l(o.className,w),icon:V[K],size:a,themeColor:i,rotate:p,flip:s,viewBox:x,variant:N}):_(te,{})}return _(Z,{...v,className:l(o.className,w),icon:r,size:a,themeColor:i,rotate:p,flip:s})};m.states=ke;m.options=Te;m.defaultOptions=D;m.className=w;m.moduleName=j;m.folderName=ee;var U="badge",ne=U;import{jsx as Se}from"react/jsx-runtime";var B="k-badge",Oe=[],Ie={size:[n.undefined,n.small,n.medium,n.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[y.undefined,y.solid,y.outline],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.info,t.success,t.warning,t.error]},ae={cutoutBorder:!1},d=o=>{let{size:e,fillMode:a,themeColor:i,cutoutBorder:r=ae.cutoutBorder,rounded:c,position:p,align:s,...x}=o;return Se("span",{...x,className:l(o.className,B,h(B,{size:e,rounded:c,fillMode:a,themeColor:i}),{[`${B}-${p}`]:p,[`k-${s}`]:s,[`${B}-border-cutout`]:r}),children:o.children})};d.states=Oe;d.options=Ie;d.className=B;d.defaultOptions=ae;d.moduleName=U;d.folderName=ne;import{jsx as _o}from"react/jsx-runtime";import{jsx as Ko}from"react/jsx-runtime";var q="avatar",se=q;import{jsx as re}from"react/jsx-runtime";var L="k-avatar";var _e=[k.hover,k.focus,k.active,k.selected,k.disabled],Be={size:[n.undefined,n.small,n.medium,n.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[y.undefined,y.solid,y.outline],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary]},X={type:"text",border:!1},f=o=>{let{size:e,rounded:a,fillMode:i,themeColor:r,type:c=X.type,border:p=X.border,...s}=o;return re("div",{...s,className:l(o.className,L,h(L,{size:e,rounded:a,fillMode:i,themeColor:r}),{[`${L}-bordered`]:p}),children:re("span",{className:`${L}-${c}`,children:o.children})})};f.states=_e;f.options=Be;f.className=L;f.defaultOptions=X;f.moduleName=q;f.folderName=se;var b=f;import{jsx as Le}from"react/jsx-runtime";var z=o=>Le(b,{type:"icon",...o});import{jsx as ze}from"react/jsx-runtime";var ie=o=>ze(b,{type:"text",...o});import{jsx as Re}from"react/jsx-runtime";var le=o=>Re(b,{type:"image",...o});import{jsx as et}from"react/jsx-runtime";import{jsx as R}from"react/jsx-runtime";var Ke=f.options,$e=f.states,we={...f.defaultOptions,variant:"image"},De=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],Pe=[],T=o=>{let{variant:e,...a}=o;switch(e){case"icon":return R(z,{...a,children:R(m,{icon:"star"})});case"text":return R(ie,{...a,children:"JO"});default:return R(le,{...a,children:R("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};T.options=Ke;T.states=$e;T.variants=De;T.defaultOptions=we;T.modifiers=Pe;T.className=f.className;import{jsx as C,jsxs as de}from"react/jsx-runtime";var He={...d.options,cutoutBorder:{type:"boolean"}},Fe=d.states,me={...d.defaultOptions,themeColor:"error",variant:"icon"},Ge=[{name:"icon",title:"Icon Badge"},{name:"text",title:"Text Badge"}],O=o=>{let{variant:e,...a}={...me,...o},i={};return e==="text"?de("div",{className:"k-badge-container",children:[C(z,{children:C(m,{icon:"user"})}),C(d,{align:"bottom-end",position:"edge",...a,...i,children:"26"})]}):de("div",{className:"k-badge-container",children:[C(z,{children:C(m,{icon:"user"})}),C(d,{align:"bottom-end",position:"edge",...a,...i,children:C(m,{icon:"minus"})})]})};O.options=He;O.states=Fe;O.variants=Ge;O.defaultOptions=me;O.modifiers=[];O.className=d.className;var J="agent-response",ce=J;import{Fragment as pe,jsx as A,jsxs as E}from"react/jsx-runtime";var ue="k-thought",Ve=[],Ue={},fe={completed:!1},M=o=>{let{icon:e,label:a,labelClassName:i,secondaryLabel:r,linesAdded:c,linesRemoved:p,time:s,status:x,statusThemeColor:N="success",statusIcon:v,completed:W=fe.completed,className:K,children:Q,...ge}=o;return E("div",{...ge,className:l(K,ue,{"k-thought-completed":W}),children:[e&&A("span",{className:"k-agent-step-icon-col",children:A(m,{icon:e,size:"small",className:"k-agent-step-icon"})}),E("span",{className:"k-agent-step-content",children:[a&&A("span",{className:l("k-agent-step-label",i),children:a}),r&&E(pe,{children:[A("span",{className:"k-agent-step-sep",children:"\xB7"}),A("span",{className:"k-agent-step-secondary",children:r})]}),c&&E("span",{className:"k-agent-step-added",children:["+",c]}),p&&E("span",{className:"k-agent-step-removed",children:["-",p]}),s&&E(pe,{children:[A("span",{className:"k-agent-step-sep",children:"\xB7"}),A("span",{className:"k-agent-step-time",children:s})]}),x&&E(d,{size:"small",themeColor:N,rounded:"full",children:[v&&A(m,{icon:v,size:"small"}),x]}),Q&&A("div",{className:"k-agent-step-body",children:Q})]})]})};M.states=Ve;M.options=Ue;M.className=ue;M.defaultOptions=fe;M.moduleName=J;M.folderName=ce;var Lt=M;export{ue as THOUGHT_CLASSNAME,M as Thought,Lt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=(...o)=>o.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?l(...e):typeof e=="object"?Object.keys(e).map((a,r)=>e[r]||e[a]&&a||null).filter(a=>a!==null).join(" "):e).filter(e=>!!e).join(" ");var A=(o,e)=>l({[`${o}-xs`]:e.size==="xsmall",[`${o}-sm`]:e.size==="small",[`${o}-md`]:e.size==="medium",[`${o}-lg`]:e.size==="large",[`${o}-xl`]:e.size==="xlarge",[`${o}-xxl`]:e.size==="xxlarge",[`${o}-xxxl`]:e.size==="xxxlarge"},{[`${o}-${e.fillMode}`]:e.fillMode},{[`${o}-${e.themeColor}`]:e.themeColor},{"k-rounded-sm":e.rounded==="small","k-rounded-md":e.rounded==="medium","k-rounded-lg":e.rounded==="large","k-rounded-full":e.rounded==="full","k-rounded-none":e.rounded==="none"});var n={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},u={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},h={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},g={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},t={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},O={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};import{Fragment as Ce,jsx as ee}from"react/jsx-runtime";var U="k-font-icon",be=[],ye={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info]},Ee={},_=o=>{let{size:e,themeColor:a,icon:r,rotate:i,flip:p,...c}=o;return r?ee("span",{...c,className:l(o.className,U,A(U,{size:e}),{[`k-i-${r}`]:r,[`k-color-${a}`]:a,[`k-rotate-${i}`]:i,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"}),"aria-hidden":"true"}):ee(Ce,{})};_.states=be;_.options=ye;_.className=U;_.defaultOptions=Ee;var oe=_;import{Fragment as Te,jsx as $}from"react/jsx-runtime";var q="k-svg-icon",Me=[],ke={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info],variant:[g.outline,g.solid,g.duotone]},X={viewBox:"0 0 24 24",variant:g.outline},L=o=>{let{size:e,themeColor:a,rotate:r,flip:i,viewBox:p=X.viewBox,variant:c=X.variant,icon:s,...x}=o;if(!s)return $(Te,{});if(s==="none")return $("span",{...x,className:l(o.className,q,A("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let E=typeof s=="object"&&s.name&&s.name,v=typeof s=="object"?c&&s.variants?.[c]||s.variants?.outline||s.content:void 0;return $("span",{...x,className:l(o.className,q,A("k-icon",{size:e}),{[`k-svg-i-${E}`]:E,[`k-color-${a}`]:a,[`k-rotate-${r}`]:r,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:$("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof s=="object"?s.viewBox:p,dangerouslySetInnerHTML:v!==void 0?{__html:v}:void 0,children:s?void 0:o.children})})};L.states=Me;L.options=ke;L.className=q;L.defaultOptions=X;var J=L;import*as W from"@progress/kendo-svg-icons";var te="icon",ne="icons";import{useContext as Se}from"react";import{createContext as Oe}from"react";var ae=Oe({iconsType:"svg"});import{Fragment as se,jsx as B}from"react/jsx-runtime";var w="k-icon",Ie=o=>o.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),_e=[],Le={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info],variant:[g.outline,g.solid,g.duotone]},H={viewBox:"0 0 24 24",type:"svg",variant:g.outline},d=o=>{let{iconsType:e}=Se(ae),{size:a,themeColor:r,icon:i,type:p=e||H.type,rotate:c,flip:s,viewBox:x=H.viewBox,variant:E=H.variant,...v}=o;if(!i)return B(se,{});if((e||p)==="svg"){if(i==="none")return B(J,{...v,className:l(o.className,w),icon:i,size:a,variant:E});let T=W[i]?i:Ie(`${i}-icon`);return W[T]?B(J,{...v,className:l(o.className,w),icon:W[T],size:a,themeColor:r,rotate:c,flip:s,viewBox:x,variant:E}):B(se,{})}return B(oe,{...v,className:l(o.className,w),icon:i,size:a,themeColor:r,rotate:c,flip:s})};d.states=_e;d.options=Le;d.defaultOptions=H;d.className=w;d.moduleName=te;d.folderName=ne;var Q="badge",re=Q;import{jsx as ze}from"react/jsx-runtime";var R="k-badge",Be=[],Re={size:[n.undefined,n.small,n.medium,n.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[h.undefined,h.solid,h.outline],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.info,t.success,t.warning,t.error]},ie={cutoutBorder:!1},m=o=>{let{size:e,fillMode:a,themeColor:r,cutoutBorder:i=ie.cutoutBorder,rounded:p,position:c,align:s,...x}=o;return ze("span",{...x,className:l(o.className,R,A(R,{size:e,rounded:p,fillMode:a,themeColor:r}),{[`${R}-${c}`]:c,[`k-${s}`]:s,[`${R}-border-cutout`]:i}),children:o.children})};m.states=Be;m.options=Re;m.className=R;m.defaultOptions=ie;m.moduleName=Q;m.folderName=re;import{jsx as $o}from"react/jsx-runtime";import{jsx as Vo}from"react/jsx-runtime";var Y="avatar",le=Y;import{jsx as de}from"react/jsx-runtime";var z="k-avatar";var Ke=[O.hover,O.focus,O.active,O.selected,O.disabled],Pe={size:[n.undefined,n.small,n.medium,n.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[h.undefined,h.solid,h.outline],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary]},Z={type:"text",border:!1},f=o=>{let{size:e,rounded:a,fillMode:r,themeColor:i,type:p=Z.type,border:c=Z.border,...s}=o;return de("div",{...s,className:l(o.className,z,A(z,{size:e,rounded:a,fillMode:r,themeColor:i}),{[`${z}-bordered`]:c}),children:de("span",{className:`${z}-${p}`,children:o.children})})};f.states=Ke;f.options=Pe;f.className=z;f.defaultOptions=Z;f.moduleName=Y;f.folderName=le;var C=f;import{jsx as De}from"react/jsx-runtime";var K=o=>De(C,{type:"icon",...o});import{jsx as $e}from"react/jsx-runtime";var me=o=>$e(C,{type:"text",...o});import{jsx as we}from"react/jsx-runtime";var pe=o=>we(C,{type:"image",...o});import{jsx as lt}from"react/jsx-runtime";import{jsx as P}from"react/jsx-runtime";var He=f.options,Fe=f.states,Ge={...f.defaultOptions,variant:"image"},Ve=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],Ue=[],S=o=>{let{variant:e,...a}=o;switch(e){case"icon":return P(K,{...a,children:P(d,{icon:"star"})});case"text":return P(me,{...a,children:"JO"});default:return P(pe,{...a,children:P("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};S.options=He;S.states=Fe;S.variants=Ve;S.defaultOptions=Ge;S.modifiers=Ue;S.className=f.className;import{jsx as M,jsxs as ce}from"react/jsx-runtime";var qe={...m.options,cutoutBorder:{type:"boolean"}},Xe=m.states,ue={...m.defaultOptions,themeColor:"error",variant:"icon"},Je=[{name:"icon",title:"Icon Badge"},{name:"text",title:"Text Badge"}],I=o=>{let{variant:e,...a}={...ue,...o},r={};return e==="text"?ce("div",{className:"k-badge-container",children:[M(K,{children:M(d,{icon:"user"})}),M(m,{align:"bottom-end",position:"edge",...a,...r,children:"26"})]}):ce("div",{className:"k-badge-container",children:[M(K,{children:M(d,{icon:"user"})}),M(m,{align:"bottom-end",position:"edge",...a,...r,children:M(d,{icon:"minus"})})]})};I.options=qe;I.states=Xe;I.variants=Je;I.defaultOptions=ue;I.modifiers=[];I.className=m.className;var D="agent-response",F=D;import{Fragment as fe,jsx as N,jsxs as b}from"react/jsx-runtime";var ge="k-agent-step",We=[],Qe={},G={expandable:!1,expanded:!1,completed:!1},y=o=>{let{icon:e,label:a,labelClassName:r,secondaryLabel:i,linesAdded:p,linesRemoved:c,time:s,status:x,statusThemeColor:E="success",statusIcon:v,expandable:V=G.expandable,expanded:T=G.expanded,completed:Ae=G.completed,className:Ne,children:j,...he}=o;return b("div",{...he,className:l(Ne,ge,{"k-agent-completed":Ae}),children:[b("button",{className:"k-agent-step-head","aria-expanded":V?T:void 0,children:[e&&N(d,{icon:e,size:"small",className:"k-agent-step-icon"}),b("span",{className:"k-agent-step-content",children:[a&&N("span",{className:l("k-agent-step-label",r),children:a}),i&&b(fe,{children:[N("span",{className:"k-agent-step-sep",children:"\xB7"}),N("span",{className:"k-agent-step-secondary",children:i})]}),p&&b("span",{className:"k-agent-step-added",children:["+",p]}),c&&b("span",{className:"k-agent-step-removed",children:["-",c]}),s&&b(fe,{children:[N("span",{className:"k-agent-step-sep",children:"\xB7"}),N("span",{className:"k-agent-step-time",children:s})]}),x&&b(m,{size:"small",themeColor:E,rounded:"full",children:[v&&N(d,{icon:v,size:"small"}),x]}),V&&N(d,{icon:T?"chevron-up":"chevron-right",size:"small",className:"k-agent-step-expand"})]})]}),T&&j&&N("div",{className:"k-agent-step-body",children:j})]})};y.states=We;y.options=Qe;y.className=ge;y.defaultOptions=G;y.moduleName=D;y.folderName=F;import{jsx as je}from"react/jsx-runtime";var xe="k-tool-call",Ye=[],Ze={},ve={icon:"wrench"},k=o=>{let{icon:e=ve.icon,className:a,...r}=o;return je(y,{...r,icon:e,className:l(a,xe)})};k.states=Ye;k.options=Ze;k.className=xe;k.defaultOptions=ve;k.moduleName=D;k.folderName=F;var Xt=k;export{xe as TOOL_CALL_CLASSNAME,k as ToolCall,Xt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=(...o)=>o.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?i(...e):typeof e=="object"?Object.keys(e).map((t,r)=>e[r]||e[t]&&t||null).filter(t=>t!==null).join(" "):e).filter(e=>!!e).join(" ");var l="checkpoint",d=l;import{jsx as s,jsxs as f}from"react/jsx-runtime";var a="k-checkpoint",u=[],m={},x={},n=o=>{let{className:e,children:t,visible:r,...c}=o;return f("div",{...c,className:i(e,a,{"k-checkpoint-visible":r===!0}),children:[s("span",{className:"k-checkpoint-line","aria-hidden":"true"}),t,s("span",{className:"k-checkpoint-line","aria-hidden":"true"})]})};n.states=u;n.options=m;n.className=a;n.defaultOptions=x;n.moduleName=l;n.folderName=d;var A=n;export{a as CHECKPOINT_CLASSNAME,n as Checkpoint,A as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c=(...o)=>o.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?c(...e):typeof e=="object"?Object.keys(e).map((r,a)=>e[a]||e[r]&&r||null).filter(r=>r!==null).join(" "):e).filter(e=>!!e).join(" ");var y=(o,e)=>c({[`${o}-xs`]:e.size==="xsmall",[`${o}-sm`]:e.size==="small",[`${o}-md`]:e.size==="medium",[`${o}-lg`]:e.size==="large",[`${o}-xl`]:e.size==="xlarge",[`${o}-xxl`]:e.size==="xxlarge",[`${o}-xxxl`]:e.size==="xxxlarge"},{[`${o}-${e.fillMode}`]:e.fillMode},{[`${o}-${e.themeColor}`]:e.themeColor},{"k-rounded-sm":e.rounded==="small","k-rounded-md":e.rounded==="medium","k-rounded-lg":e.rounded==="large","k-rounded-full":e.rounded==="full","k-rounded-none":e.rounded==="none"}),J=(o,e)=>{let{valid:r,invalid:a,hover:i,focus:d,checked:m,active:l,selected:g,disabled:x,indeterminate:p,loading:w,empty:v,readonly:z,highlighted:H,...O}=e;return c({"k-valid":r,"k-invalid":a,"k-hover":i,"k-focus":d,"k-checked":m,"k-active":l,"k-selected":g,"k-disabled":x,"k-indeterminate":p&&!m,"k-loading":w,"k-empty":v,"k-readonly":z,"k-highlighted":H},Object.keys(O).reduce((u,N)=>(N.startsWith("k-")?u[N]=O[N]:u[`k-${N}`]=O[N],u),{}))};function Q(o,e){if(!e)return{};let r=Array.isArray(e)?e:[e];return Object.fromEntries(r.map(a=>[`k-${a}`,!0]))}var n={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},b={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},C={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},f={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},t={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},k={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var P="checkpoint",X=P;import{jsx as Y,jsxs as be}from"react/jsx-runtime";var Z="k-checkpoint",ve=[],Ne={},ye={},T=o=>{let{className:e,children:r,visible:a,...i}=o;return be("div",{...i,className:c(e,Z,{"k-checkpoint-visible":a===!0}),children:[Y("span",{className:"k-checkpoint-line","aria-hidden":"true"}),r,Y("span",{className:"k-checkpoint-line","aria-hidden":"true"})]})};T.states=ve;T.options=Ne;T.className=Z;T.defaultOptions=ye;T.moduleName=P;T.folderName=X;var j=T;import{Fragment as Oe,jsx as ee}from"react/jsx-runtime";var $="k-font-icon",Ce=[],ke={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info]},Te={},M=o=>{let{size:e,themeColor:r,icon:a,rotate:i,flip:d,...m}=o;return a?ee("span",{...m,className:c(o.className,$,y($,{size:e}),{[`k-i-${a}`]:a,[`k-color-${r}`]:r,[`k-rotate-${i}`]:i,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"}),"aria-hidden":"true"}):ee(Oe,{})};M.states=Ce;M.options=ke;M.className=$;M.defaultOptions=Te;var oe=M;import{Fragment as Me,jsx as L}from"react/jsx-runtime";var D="k-svg-icon",Ie=[],Be={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info],variant:[f.outline,f.solid,f.duotone]},F={viewBox:"0 0 24 24",variant:f.outline},A=o=>{let{size:e,themeColor:r,rotate:a,flip:i,viewBox:d=F.viewBox,variant:m=F.variant,icon:l,...g}=o;if(!l)return L(Me,{});if(l==="none")return L("span",{...g,className:c(o.className,D,y("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let x=typeof l=="object"&&l.name&&l.name,p=typeof l=="object"?m&&l.variants?.[m]||l.variants?.outline||l.content:void 0;return L("span",{...g,className:c(o.className,D,y("k-icon",{size:e}),{[`k-svg-i-${x}`]:x,[`k-color-${r}`]:r,[`k-rotate-${a}`]:a,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:L("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:d,dangerouslySetInnerHTML:p!==void 0?{__html:p}:void 0,children:l?void 0:o.children})})};A.states=Ie;A.options=Be;A.className=D;A.defaultOptions=F;var U=A;import*as V from"@progress/kendo-svg-icons";var te="icon",ne="icons";import{useContext as Ee}from"react";import{createContext as Ae}from"react";var re=Ae({iconsType:"svg"});import{Fragment as ie,jsx as E}from"react/jsx-runtime";var K="k-icon",Se=o=>o.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),we=[],ze={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info],variant:[f.outline,f.solid,f.duotone]},R={viewBox:"0 0 24 24",type:"svg",variant:f.outline},h=o=>{let{iconsType:e}=Ee(re),{size:r,themeColor:a,icon:i,type:d=e||R.type,rotate:m,flip:l,viewBox:g=R.viewBox,variant:x=R.variant,...p}=o;if(!i)return E(ie,{});if((e||d)==="svg"){if(i==="none")return E(U,{...p,className:c(o.className,K),icon:i,size:r,variant:x});let v=V[i]?i:Se(`${i}-icon`);return V[v]?E(U,{...p,className:c(o.className,K),icon:V[v],size:r,themeColor:a,rotate:m,flip:l,viewBox:g,variant:x}):E(ie,{})}return E(oe,{...p,className:c(o.className,K),icon:i,size:r,themeColor:a,rotate:m,flip:l})};h.states=we;h.options=ze;h.defaultOptions=R;h.className=K;h.moduleName=te;h.folderName=ne;var G="button",se=G;import{Fragment as ae,jsx as I,jsxs as le}from"react/jsx-runtime";var S="k-button",_e=["icon-button"],Le=[k.hover,k.focus,k.active,k.selected,k.disabled,k.generating],Ke={size:[n.undefined,n.xsmall,n.small,n.medium,n.large],rounded:[b.undefined,b.none,b.small,b.medium,b.large,b.full],fillMode:[C.undefined,C.solid,C.flat,C.outline,C.clear,C.link],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info,t.inverse]},q={showArrow:!1,arrowIconName:"chevron-down"},s=o=>{let{as:e="button",size:r,rounded:a,fillMode:i,themeColor:d,showArrow:m=q.showArrow,arrowIconName:l=q.arrowIconName,variant:g,hover:x,focus:p,active:w,selected:v,disabled:z,togglable:H,ariaDisabled:O,icon:u,iconSize:N,text:_,iconClassName:pe,className:fe,...xe}=o,he=u!=null,ge=o.children!==void 0;return le(e,{className:c(fe,S,Q(S,g),y(S,{size:r,rounded:a,fillMode:i,themeColor:d}),J(S,{hover:x,focus:p,active:w,disabled:z||O,selected:v}),{"k-icon-button":!_&&!ge&&he}),"aria-pressed":H?v?"true":"false":void 0,...xe,"aria-disabled":O?"true":void 0,disabled:z||void 0,children:[typeof u=="string"&&u&&I(h,{className:c(pe,"k-button-icon"),icon:u,size:N}),u&&typeof u!="string"&&I(ae,{children:u}),_?le(ae,{children:[_&&I("span",{className:"k-button-text",children:_}),o.children]}):o.children&&I("span",{className:"k-button-text",children:o.children}),m&&I("span",{className:"k-menu-button-arrow k-button-arrow",children:I(h,{icon:l})})]})};s.states=Le;s.options=Ke;s.variants=_e;s.className=S;s.defaultOptions=q;s.moduleName=G;s.folderName=se;import{jsx as Re}from"react/jsx-runtime";var ce=o=>Re(s,{icon:"folder",...o,"aria-label":o["aria-label"]||"Folder",children:void 0});import{jsx as He}from"react/jsx-runtime";var de=o=>He(s,{icon:"folder",children:"Button",...o});import{jsx as Pe}from"react/jsx-runtime";var me=o=>Pe(s,{children:"Button",...o});import{jsx as W}from"react/jsx-runtime";var $e=s.options,De=s.states,Fe={...s.defaultOptions,variant:"text"},Ue=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ve=[],B=o=>{let{variant:e,...r}=o;switch(e){case"icon-only":return W(ce,{...r,icon:"star"});case"icon-and-text":return W(de,{...r,icon:"star",children:"Button"});default:return W(me,{...r,children:"Button"})}};B.options=$e;B.states=De;B.variants=Ue;B.defaultOptions=Fe;B.modifiers=Ve;B.className=s.className;import{jsx as ue}from"react/jsx-runtime";var rt=o=>ue(j,{visible:!0,...o,children:ue(s,{text:"Restore Checkpoint",fillMode:"flat",size:"small"})});export{rt as CheckpointNormal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=(...t)=>t.filter(o=>o!==!0&&!!o).map(o=>Array.isArray(o)?l(...o):typeof o=="object"?Object.keys(o).map((r,e)=>o[e]||o[r]&&r||null).filter(r=>r!==null).join(" "):o).filter(o=>!!o).join(" ");var B=(t,o)=>l({[`${t}-xs`]:o.size==="xsmall",[`${t}-sm`]:o.size==="small",[`${t}-md`]:o.size==="medium",[`${t}-lg`]:o.size==="large",[`${t}-xl`]:o.size==="xlarge",[`${t}-xxl`]:o.size==="xxlarge",[`${t}-xxxl`]:o.size==="xxxlarge"},{[`${t}-${o.fillMode}`]:o.fillMode},{[`${t}-${o.themeColor}`]:o.themeColor},{"k-rounded-sm":o.rounded==="small","k-rounded-md":o.rounded==="medium","k-rounded-lg":o.rounded==="large","k-rounded-full":o.rounded==="full","k-rounded-none":o.rounded==="none"}),W=(t,o)=>{let{valid:r,invalid:e,hover:i,focus:c,checked:p,active:d,selected:A,disabled:g,indeterminate:h,loading:$,empty:P,readonly:V,highlighted:et,...I}=o;return l({"k-valid":r,"k-invalid":e,"k-hover":i,"k-focus":c,"k-checked":p,"k-active":d,"k-selected":A,"k-disabled":g,"k-indeterminate":h&&!p,"k-loading":$,"k-empty":P,"k-readonly":V,"k-highlighted":et},Object.keys(I).reduce((v,E)=>(E.startsWith("k-")?v[E]=I[E]:v[`k-${E}`]=I[E],v),{}))};function Ot(t,o){if(!o)return{};let r=Array.isArray(o)?o:[o];return Object.fromEntries(r.map(e=>[`k-${e}`,!0]))}var s={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},_={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},b={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},a={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},M={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"},yt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var nt={};function At(t){return nt[t]=(nt[t]||0)+1,`k-${t}-${nt[t]}`}import{Fragment as ao,jsx as Tt}from"react/jsx-runtime";var rt="k-font-icon",no=[],ro={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[a.undefined,a.base,a.primary,a.secondary,a.tertiary,a.success,a.warning,a.error,a.info]},io={},K=t=>{let{size:o,themeColor:r,icon:e,rotate:i,flip:c,...p}=t;return e?Tt("span",{...p,className:l(t.className,rt,B(rt,{size:o}),{[`k-i-${e}`]:e,[`k-color-${r}`]:r,[`k-rotate-${i}`]:i,"k-flip-h":c==="h"||c==="both","k-flip-v":c==="v"||c==="both"}),"aria-hidden":"true"}):Tt(ao,{})};K.states=no;K.options=ro;K.className=rt;K.defaultOptions=io;var Ct=K;import{Fragment as co,jsx as X}from"react/jsx-runtime";var it="k-svg-icon",so=[],lo={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[a.undefined,a.base,a.primary,a.secondary,a.tertiary,a.success,a.warning,a.error,a.info],variant:[b.outline,b.solid,b.duotone]},at={viewBox:"0 0 24 24",variant:b.outline},D=t=>{let{size:o,themeColor:r,rotate:e,flip:i,viewBox:c=at.viewBox,variant:p=at.variant,icon:d,...A}=t;if(!d)return X(co,{});if(d==="none")return X("span",{...A,className:l(t.className,it,B("k-icon",{size:o}),"k-none"),"aria-hidden":"true"});let g=typeof d=="object"&&d.name&&d.name,h=typeof d=="object"?p&&d.variants?.[p]||d.variants?.outline||d.content:void 0;return X("span",{...A,className:l(t.className,it,B("k-icon",{size:o}),{[`k-svg-i-${g}`]:g,[`k-color-${r}`]:r,[`k-rotate-${e}`]:e,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:X("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof d=="object"?d.viewBox:c,dangerouslySetInnerHTML:h!==void 0?{__html:h}:void 0,children:d?void 0:t.children})})};D.states=so;D.options=lo;D.className=it;D.defaultOptions=at;var st=D;import*as lt from"@progress/kendo-svg-icons";var Pt="icon",Et="icons";import{useContext as po}from"react";import{createContext as mo}from"react";var _t=mo({iconsType:"svg"});import{Fragment as kt,jsx as U}from"react/jsx-runtime";var q="k-icon",uo=t=>t.replace(/([-_][a-z0-9])/gi,o=>o.toUpperCase().replace("-","").replace("_","")),fo=[],No={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[a.undefined,a.base,a.primary,a.secondary,a.tertiary,a.success,a.warning,a.error,a.info],variant:[b.outline,b.solid,b.duotone]},Q={viewBox:"0 0 24 24",type:"svg",variant:b.outline},O=t=>{let{iconsType:o}=po(_t),{size:r,themeColor:e,icon:i,type:c=o||Q.type,rotate:p,flip:d,viewBox:A=Q.viewBox,variant:g=Q.variant,...h}=t;if(!i)return U(kt,{});if((o||c)==="svg"){if(i==="none")return U(st,{...h,className:l(t.className,q),icon:i,size:r,variant:g});let P=lt[i]?i:uo(`${i}-icon`);return lt[P]?U(st,{...h,className:l(t.className,q),icon:lt[P],size:r,themeColor:e,rotate:p,flip:d,viewBox:A,variant:g}):U(kt,{})}return U(Ct,{...h,className:l(t.className,q),icon:i,size:r,themeColor:e,rotate:p,flip:d})};O.states=fo;O.options=No;O.defaultOptions=Q;O.className=q;O.moduleName=Pt;O.folderName=Et;var ct="button",It=ct;import{Fragment as Lt,jsx as L,jsxs as St}from"react/jsx-runtime";var z="k-button",xo=["icon-button"],vo=[M.hover,M.focus,M.active,M.selected,M.disabled,M.generating],ho={size:[s.undefined,s.xsmall,s.small,s.medium,s.large],rounded:[_.undefined,_.none,_.small,_.medium,_.large,_.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[a.undefined,a.base,a.primary,a.secondary,a.tertiary,a.success,a.warning,a.error,a.info,a.inverse]},dt={showArrow:!1,arrowIconName:"chevron-down"},n=t=>{let{as:o="button",size:r,rounded:e,fillMode:i,themeColor:c,showArrow:p=dt.showArrow,arrowIconName:d=dt.arrowIconName,variant:A,hover:g,focus:h,active:$,selected:P,disabled:V,togglable:et,ariaDisabled:I,icon:v,iconSize:E,text:J,iconClassName:Zt,className:jt,...to}=t,oo=v!=null,eo=t.children!==void 0;return St(o,{className:l(jt,z,Ot(z,A),B(z,{size:r,rounded:e,fillMode:i,themeColor:c}),W(z,{hover:g,focus:h,active:$,disabled:V||I,selected:P}),{"k-icon-button":!J&&!eo&&oo}),"aria-pressed":et?P?"true":"false":void 0,...to,"aria-disabled":I?"true":void 0,disabled:V||void 0,children:[typeof v=="string"&&v&&L(O,{className:l(Zt,"k-button-icon"),icon:v,size:E}),v&&typeof v!="string"&&L(Lt,{children:v}),J?St(Lt,{children:[J&&L("span",{className:"k-button-text",children:J}),t.children]}):t.children&&L("span",{className:"k-button-text",children:t.children}),p&&L("span",{className:"k-menu-button-arrow k-button-arrow",children:L(O,{icon:d})})]})};n.states=vo;n.options=ho;n.variants=xo;n.className=z;n.defaultOptions=dt;n.moduleName=ct;n.folderName=It;import{jsx as bo}from"react/jsx-runtime";var G=t=>bo(n,{icon:"folder",...t,"aria-label":t["aria-label"]||"Folder",children:void 0});import{jsx as go}from"react/jsx-runtime";var Rt=t=>go(n,{icon:"folder",children:"Button",...t});import{jsx as Bo}from"react/jsx-runtime";var wt=t=>Bo(n,{children:"Button",...t});import{jsx as mt}from"react/jsx-runtime";var Mo=n.options,Oo=n.states,yo={...n.defaultOptions,variant:"text"},Ao=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],To=[],S=t=>{let{variant:o,...r}=t;switch(o){case"icon-only":return mt(G,{...r,icon:"star"});case"icon-and-text":return mt(Rt,{...r,icon:"star",children:"Button"});default:return mt(wt,{...r,children:"Button"})}};S.options=Mo;S.states=Oo;S.variants=Ao;S.defaultOptions=yo;S.modifiers=To;S.className=n.className;var pt="button",Kt=pt;import{jsx as _o}from"react/jsx-runtime";var H="k-button-group",Co=[M.disabled],Po={fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link]},Eo={},m=t=>{let{fillMode:o,disabled:r,stretched:e,...i}=t;return _o("div",{role:"group",...i,className:l(t.className,H,B(H,{fillMode:o}),W(H,{disabled:r}),{[`${H}-stretched`]:e}),...r&&{"aria-disabled":"true"},children:t.children})};m.states=Co;m.options=Po;m.className=H;m.defaultOptions=Eo;m.moduleName=pt;m.folderName=Kt;import{Fragment as hn,jsx as vn,jsxs as bn}from"react/jsx-runtime";import{Fragment as An,jsx as yn,jsxs as Tn}from"react/jsx-runtime";import{Fragment as In,jsx as kn,jsxs as Ln}from"react/jsx-runtime";import{Fragment as Un,jsx as Dn,jsxs as zn}from"react/jsx-runtime";import{Fragment as Jn,jsx as Vn,jsxs as Wn}from"react/jsx-runtime";import{Fragment as jn,jsx as Zn,jsxs as tr}from"react/jsx-runtime";import{jsx as y,jsxs as ut}from"react/jsx-runtime";var ko={...n.options,...m.options},Io=n.states,Lo={...n.defaultOptions,...m.defaultOptions,variant:"text-button"},So=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],Ro=[],R=t=>{let{variant:o,className:r,...e}=t;return o==="icon-button"?ut(m,{fillMode:e.fillMode,className:r,children:[y(n,{...e,icon:"star"}),y(n,{...e,icon:"star"}),y(n,{...e,icon:"star"})]}):o==="icon-text-button"?ut(m,{fillMode:e.fillMode,className:r,children:[y(n,{...e,icon:"star",children:"First"}),y(n,{...e,icon:"star",children:"Middle"}),y(n,{...e,icon:"star",children:"Last"})]}):ut(m,{fillMode:e.fillMode,className:r,children:[y(n,{...e,children:"First"}),y(n,{...e,children:"Middle"}),y(n,{...e,children:"Last"})]})};R.options=ko;R.states=Io;R.variants=So;R.defaultOptions=Lo;R.modifiers=Ro;R.className=m.className;var ft="citation",Dt=ft;var Nt="popup",Ut=Nt;import{jsx as zt}from"react/jsx-runtime";var Gt="k-animation-container",wo=[],Ko={},xt={positionMode:"absolute",shown:!0},T=t=>{let{positionMode:o=xt.positionMode,shown:r=xt.shown,animationStyle:e,offset:i,...c}=t;return zt("div",{...c,style:{...i,...t.style},className:l(t.className,Gt,{"k-animation-container-shown":r,"k-animation-container-fixed":o==="fixed"}),children:zt("div",{className:"k-child-animation-container",style:e,children:t.children})})};T.states=wo;T.options=Ko;T.className=Gt;T.defaultOptions=xt;T.moduleName=Nt;T.folderName=Ut;var vt="popup",Ht=vt;import{jsx as Ft}from"react/jsx-runtime";var $t="k-popup",Do=[],Uo={},Vt={positionMode:"absolute"},C=t=>{let{offset:o,positionMode:r=Vt.positionMode,animationStyle:e,containerClassName:i,containerRole:c,containerAriaLabel:p,...d}=t;return Ft(T,{positionMode:r,offset:o,animationStyle:e,className:i,role:c,"aria-label":p,children:Ft("div",{...d,className:l(t.className,$t),children:t.children})})};C.states=Do;C.options=Uo;C.className=$t;C.defaultOptions=Vt;C.moduleName=vt;C.folderName=Ht;var ht="popover",Jt=ht;import{Fragment as Fo,jsx as Y,jsxs as Wt}from"react/jsx-runtime";var Xt="k-popover",zo=[],Go={},Ho={},u=t=>{let{callout:o,title:r,body:e,id:i=At("popover"),...c}=t;return Wt(C,{...c,className:l(t.className,Xt),role:"dialog",id:i,"aria-labelledby":r?`${i}-header`:void 0,"aria-describedby":e?`${i}-body`:void 0,children:[o&&Y("div",{className:l("k-popover-callout",{[`k-callout-${yt.calloutMap[o]||o}`]:o})}),Wt("div",{className:"k-popover-inner",children:[r&&Y("div",{className:"k-popover-header",id:`${i}-header`,children:r}),e&&Y("div",{className:"k-popover-body",id:`${i}-body`,children:e}),Y(Fo,{children:t.children})]})]})};u.states=zo;u.options=Go;u.className=Xt;u.defaultOptions=Ho;u.moduleName=ht;u.folderName=Jt;var bt="action-buttons",qt=bt;import{jsx as Jo}from"react/jsx-runtime";var Z="k-actions",$o=[],Vo={},gt={alignment:"start",orientation:"horizontal"},N=t=>{let{alignment:o=gt.alignment,orientation:r=gt.orientation,...e}=t;return Jo("div",{...e,className:l(Z,{[`${Z}-${o}`]:o,[`${Z}-${r}`]:r},t.className),children:t.children})};N.states=$o;N.options=Vo;N.className=Z;N.defaultOptions=gt;N.moduleName=bt;N.folderName=qt;import{Fragment as Wo,jsx as j,jsxs as Xo}from"react/jsx-runtime";var F=t=>j(u,{title:"Title",body:j(Wo,{children:"Body content"}),children:Xo(N,{className:"k-popover-actions",alignment:"stretched",children:[j(n,{fillMode:"flat",children:"Action"}),j(n,{fillMode:"flat",themeColor:"primary",children:"Primary"})]}),...t});import{Fragment as jo,jsx as x,jsxs as tt}from"react/jsx-runtime";var qo=u.options,Qo=u.states,Qt={...u.defaultOptions,variant:"bottom"},Yo=[{name:"bottom",title:"Callout bottom"},{name:"left",title:"Callout left"},{name:"top",title:"Callout top"},{name:"right",title:"Callout right"}],Zo=[{name:"title",title:"With title"},{name:"content",title:"With content"}],w=t=>{let{variant:o,modifiers:r,...e}={...Qt,...t},i={title:"Popover title",body:x(jo,{children:"The popover component is a UI element that displays additional content or options when an anchor element is hovered, clicked, or focused."})};switch(Object.keys(r||{}).forEach(c=>{switch(c){case"title":i.title=r?.[c]?i.title:"";break;case"content":i.body=r?.[c]?i.body:void 0;break;default:break}}),o){case"left":return x(F,{...e,...i,style:{width:"217px",position:"relative",overflow:"visible"},callout:"left",children:tt(N,{className:"k-popover-actions",alignment:"stretched",children:[x(n,{children:"Action"}),x(n,{themeColor:"primary",children:"Primary"})]})});case"right":return x(F,{...e,...i,style:{width:"217px",position:"relative",overflow:"visible"},callout:"right",children:tt(N,{className:"k-popover-actions",alignment:"stretched",children:[x(n,{children:"Action"}),x(n,{themeColor:"primary",children:"Primary"})]})});case"top":return x(F,{...e,...i,style:{width:"217px",position:"relative",overflow:"visible"},callout:"top",children:tt(N,{className:"k-popover-actions",alignment:"stretched",children:[x(n,{children:"Action"}),x(n,{themeColor:"primary",children:"Primary"})]})});default:return x(F,{...e,...i,style:{width:"217px",position:"relative",overflow:"visible"},callout:"bottom",children:tt(N,{className:"k-popover-actions",alignment:"stretched",children:[x(n,{children:"Action"}),x(n,{themeColor:"primary",children:"Primary"})]})})}};w.options=qo;w.states=Qo;w.variants=Yo;w.defaultOptions=Qt;w.modifiers=Zo;w.className=u.className;import{Fragment as ee,jsx as Mt,jsxs as Bt}from"react/jsx-runtime";var Yt="k-citation-popover",te=[],oe={},ot={currentView:1,pageIndex:1,totalPages:6},k=t=>{let{body:o,currentView:r=ot.currentView,pageIndex:e=ot.pageIndex,totalPages:i=ot.totalPages,className:c,children:p,...d}=t;return Mt(u,{...d,className:l(c,Yt),style:{"--kendo-citation-popover-view-current":r},title:Bt(ee,{children:[Bt("span",{className:"k-citation-pages",children:[e,"/",i]}),Bt(m,{fillMode:"flat",children:[Mt(G,{icon:"arrow-left",fillMode:"flat",size:"small","aria-label":"Previous"}),Mt(G,{icon:"arrow-right",fillMode:"flat",size:"small","aria-label":"Next"})]})]}),body:o,children:p})};k.states=te;k.options=oe;k.className=Yt;k.defaultOptions=ot;k.moduleName=ft;k.folderName=Dt;var pi=k;export{Yt as CITATION_POPOVER_CLASSNAME,k as CitationPopover,pi as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=(...o)=>o.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?l(...e):typeof e=="object"?Object.keys(e).map((r,a)=>e[a]||e[r]&&r||null).filter(r=>r!==null).join(" "):e).filter(e=>!!e).join(" ");var g=(o,e)=>l({[`${o}-xs`]:e.size==="xsmall",[`${o}-sm`]:e.size==="small",[`${o}-md`]:e.size==="medium",[`${o}-lg`]:e.size==="large",[`${o}-xl`]:e.size==="xlarge",[`${o}-xxl`]:e.size==="xxlarge",[`${o}-xxxl`]:e.size==="xxxlarge"},{[`${o}-${e.fillMode}`]:e.fillMode},{[`${o}-${e.themeColor}`]:e.themeColor},{"k-rounded-sm":e.rounded==="small","k-rounded-md":e.rounded==="medium","k-rounded-lg":e.rounded==="large","k-rounded-full":e.rounded==="full","k-rounded-none":e.rounded==="none"}),me=(o,e)=>{let{valid:r,invalid:a,hover:i,focus:m,checked:p,active:s,selected:y,disabled:A,indeterminate:x,loading:B,empty:E,readonly:L,highlighted:U,...K}=e;return l({"k-valid":r,"k-invalid":a,"k-hover":i,"k-focus":m,"k-checked":p,"k-active":s,"k-selected":y,"k-disabled":A,"k-indeterminate":x&&!p,"k-loading":B,"k-empty":E,"k-readonly":L,"k-highlighted":U},Object.keys(K).reduce((j,R)=>(R.startsWith("k-")?j[R]=K[R]:j[`k-${R}`]=K[R],j),{}))};var n={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},M={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},b={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},t={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},v={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};import{Fragment as Le,jsx as ce}from"react/jsx-runtime";var ee="k-font-icon",Ie=[],Oe={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info]},Ee={},P=o=>{let{size:e,themeColor:r,icon:a,rotate:i,flip:m,...p}=o;return a?ce("span",{...p,className:l(o.className,ee,g(ee,{size:e}),{[`k-i-${a}`]:a,[`k-color-${r}`]:r,[`k-rotate-${i}`]:i,"k-flip-h":m==="h"||m==="both","k-flip-v":m==="v"||m==="both"}),"aria-hidden":"true"}):ce(Le,{})};P.states=Ie;P.options=Oe;P.className=ee;P.defaultOptions=Ee;var de=P;import{Fragment as Se,jsx as G}from"react/jsx-runtime";var oe="k-svg-icon",ke=[],Te={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info],variant:[b.outline,b.solid,b.duotone]},te={viewBox:"0 0 24 24",variant:b.outline},H=o=>{let{size:e,themeColor:r,rotate:a,flip:i,viewBox:m=te.viewBox,variant:p=te.variant,icon:s,...y}=o;if(!s)return G(Se,{});if(s==="none")return G("span",{...y,className:l(o.className,oe,g("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let A=typeof s=="object"&&s.name&&s.name,x=typeof s=="object"?p&&s.variants?.[p]||s.variants?.outline||s.content:void 0;return G("span",{...y,className:l(o.className,oe,g("k-icon",{size:e}),{[`k-svg-i-${A}`]:A,[`k-color-${r}`]:r,[`k-rotate-${a}`]:a,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:G("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof s=="object"?s.viewBox:m,dangerouslySetInnerHTML:x!==void 0?{__html:x}:void 0,children:s?void 0:o.children})})};H.states=ke;H.options=Te;H.className=oe;H.defaultOptions=te;var ne=H;import*as ae from"@progress/kendo-svg-icons";var fe="icon",ue="icons";import{useContext as ze}from"react";import{createContext as _e}from"react";var he=_e({iconsType:"svg"});import{Fragment as xe,jsx as w}from"react/jsx-runtime";var X="k-icon",Ke=o=>o.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),Re=[],Pe={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info],variant:[b.outline,b.solid,b.duotone]},q={viewBox:"0 0 24 24",type:"svg",variant:b.outline},u=o=>{let{iconsType:e}=ze(he),{size:r,themeColor:a,icon:i,type:m=e||q.type,rotate:p,flip:s,viewBox:y=q.viewBox,variant:A=q.variant,...x}=o;if(!i)return w(xe,{});if((e||m)==="svg"){if(i==="none")return w(ne,{...x,className:l(o.className,X),icon:i,size:r,variant:A});let E=ae[i]?i:Ke(`${i}-icon`);return ae[E]?w(ne,{...x,className:l(o.className,X),icon:ae[E],size:r,themeColor:a,rotate:p,flip:s,viewBox:y,variant:A}):w(xe,{})}return w(de,{...x,className:l(o.className,X),icon:i,size:r,themeColor:a,rotate:p,flip:s})};u.states=Re;u.options=Pe;u.defaultOptions=q;u.className=X;u.moduleName=fe;u.folderName=ue;import{jsx as J}from"react/jsx-runtime";var He="k-chip-action";var N=o=>{let{type:e,...r}=o,a;switch(e){case"remove":a=J(u,{icon:"x-circle",size:"small"});break;case"more":a=J(u,{icon:"more-vertical",size:"small"});break;default:return J(u,{icon:e,size:"small"})}return J("span",{...r,className:l(o.className,He,`k-chip-${e}-action`),children:a})};var ie="avatar",ve=ie;import{jsx as Ce}from"react/jsx-runtime";var D="k-avatar";var we=[v.hover,v.focus,v.active,v.selected,v.disabled],De={size:[n.undefined,n.small,n.medium,n.large],rounded:[f.undefined,f.none,f.small,f.medium,f.large,f.full],fillMode:[M.undefined,M.solid,M.outline],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary]},re={type:"text",border:!1},h=o=>{let{size:e,rounded:r,fillMode:a,themeColor:i,type:m=re.type,border:p=re.border,...s}=o;return Ce("div",{...s,className:l(o.className,D,g(D,{size:e,rounded:r,fillMode:a,themeColor:i}),{[`${D}-bordered`]:p}),children:Ce("span",{className:`${D}-${m}`,children:o.children})})};h.states=we;h.options=De;h.className=D;h.defaultOptions=re;h.moduleName=ie;h.folderName=ve;var I=h;import{jsx as $e}from"react/jsx-runtime";var Ae=o=>$e(I,{type:"icon",...o});import{jsx as Fe}from"react/jsx-runtime";var ge=o=>Fe(I,{type:"text",...o});import{jsx as Ve}from"react/jsx-runtime";var ye=o=>Ve(I,{type:"image",...o});import{jsx as ut}from"react/jsx-runtime";import{jsx as $}from"react/jsx-runtime";var Be=h.options,Ue=h.states,Ge={...h.defaultOptions,variant:"image"},Xe=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],qe=[],k=o=>{let{variant:e,...r}=o;switch(e){case"icon":return $(Ae,{...r,children:$(u,{icon:"star"})});case"text":return $(ge,{...r,children:"JO"});default:return $(ye,{...r,children:$("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};k.options=Be;k.states=Ue;k.variants=Xe;k.defaultOptions=Ge;k.modifiers=qe;k.className=h.className;var F="chip",W=F,Q="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";import{jsx as T,jsxs as Qe}from"react/jsx-runtime";var Y="k-chip",Je=[v.hover,v.focus,v.active,v.selected,v.disabled],We={size:[n.undefined,n.small,n.medium,n.large],rounded:[f.undefined,f.none,f.small,f.medium,f.large,f.full],fillMode:[M.undefined,M.solid,M.outline],themeColor:[t.undefined,t.base,t.success,t.warning,t.error,t.info]},be={avatarImage:"/packages/html/assets/avatar.jpg"},c=o=>{let{size:e,rounded:r,fillMode:a,themeColor:i,text:m,icon:p,actions:s,showAvatar:y,avatarImage:A=be.avatarImage,hover:x,focus:B,active:E,selected:L,disabled:U,...K}=o;return Qe("div",{...K,className:l(o.className,Y,g(Y,{size:e,rounded:r,fillMode:a,themeColor:i}),me(Y,{hover:x,focus:B,active:E,disabled:U,selected:L})),role:o.role||"button","aria-pressed":o.role==="option"?void 0:L?"true":"false",...o.role==="option"&&L!==void 0&&{"aria-selected":L?"true":"false"},"aria-disabled":U?"true":void 0,children:[p&&T(u,{className:"k-chip-icon",icon:p,size:"small"}),y&&T(h,{className:"k-chip-avatar",type:"image",children:T("img",{src:A,alt:""})}),T("span",{className:"k-chip-content",children:o.children?o.children:m&&T("span",{className:"k-chip-label",children:m})}),s&&T("span",{className:"k-chip-actions",children:s})]})};c.states=Je;c.options=We;c.className=Y;c.defaultOptions=be;c.moduleName=F;c.folderName=W;var C=c;import{jsx as eo}from"react/jsx-runtime";var se="k-chip-list",Ye=[],Ze={size:[n.undefined,n.small,n.medium,n.large]},je={},d=o=>{let{size:e,multiselectable:r,ariaLabel:a,...i}=o;return eo("div",{...i,className:l(o.className,se,g(se,{size:e})),role:o.role||"listbox","aria-label":o.role==="none"?void 0:a||"chip list","aria-orientation":o.role==="none"?void 0:"horizontal","aria-multiselectable":r?"true":void 0,children:o.children})};d.states=Ye;d.options=Ze;d.className=se;d.defaultOptions=je;d.moduleName=F;d.folderName=W;import{jsx as Ut}from"react/jsx-runtime";import{jsx as Jt}from"react/jsx-runtime";import{jsx as oo}from"react/jsx-runtime";var Z=o=>oo(C,{text:"text",...o});import{jsx as tn}from"react/jsx-runtime";import{jsx as sn}from"react/jsx-runtime";import{Fragment as fn,jsx as dn,jsxs as un}from"react/jsx-runtime";import{jsx as An,jsxs as gn}from"react/jsx-runtime";import{jsx as In,jsxs as On}from"react/jsx-runtime";import{jsx as _n,jsxs as zn}from"react/jsx-runtime";import{jsx as S,jsxs as so}from"react/jsx-runtime";var to={...C.options,...d.options},no=[],ao=d.states,io={...C.defaultOptions,...d.defaultOptions},ro=[{name:"icon",title:"Icon",type:"boolean"},{name:"actions",title:"Actions",type:"boolean"},{name:"avatar",title:"Avatar",type:"boolean"}],_=o=>{let{modifiers:e,className:r,...a}=o,i=e?.icon,m=e?.actions,p=e?.avatar,s=p?Q:void 0;return so(d,{size:a.size,className:r,children:[S(Z,{...a,role:"option","aria-selected":"false","aria-pressed":void 0,icon:i?"star":void 0,actions:m?S(N,{type:"remove"}):void 0,showAvatar:p,avatarImage:s,children:"Chip"}),S(Z,{...a,role:"option","aria-selected":"false","aria-pressed":void 0,icon:i?"star":void 0,actions:m?S(N,{type:"remove"}):void 0,showAvatar:p,avatarImage:s,children:"Chip"}),S(Z,{...a,role:"option","aria-selected":"false","aria-pressed":void 0,icon:i?"star":void 0,actions:m?S(N,{type:"remove"}):void 0,showAvatar:p,avatarImage:s,children:"Chip"})]})};_.options=to;_.states=ao;_.variants=no;_.defaultOptions=io;_.modifiers=ro;_.className=d.className;import{jsx as le}from"react/jsx-runtime";var lo=c.states,po=c.defaultOptions,mo=c.options,co=[],fo=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],z=o=>{let{modifiers:e,...r}=o,a={};return Object.keys(e||{}).forEach(i=>{switch(i){case"icon":a.icon=e?.[i]?"arrow-down":void 0;break;case"avatar":a.showAvatar=!!e?.[i],a.avatarImage=e?.[i]?Q:void 0;break;case"more-options":a.actions||(a.actions=[]),a.actions[0]=e?.[i]?le(N,{type:"more"}):void 0;break;case"remove-icon":a.actions||(a.actions=[]),a.actions[1]=e?.[i]?le(N,{type:"remove"}):void 0;break;default:break}}),le(c,{...r,...a,children:"Chip component"})};z.options=mo;z.states=lo;z.variants=co;z.defaultOptions=po;z.modifiers=fo;z.className=c.className;var pe="citation",Ne=pe;import{jsx as xo}from"react/jsx-runtime";var Me="k-citation",uo=[],ho={},V={icon:"globe",size:"small",fillMode:"outline",rounded:"full"},O=o=>{let{domain:e,count:r,text:a,icon:i=V.icon,size:m=V.size,fillMode:p=V.fillMode,rounded:s=V.rounded,className:y,...A}=o,x=a??[e,r?`+${r}`:void 0].filter(Boolean).join(" ");return xo(c,{...A,text:x,icon:i,size:m,fillMode:p,rounded:s,className:l(y,Me)})};O.states=uo;O.options=ho;O.className=Me;O.defaultOptions=V;O.moduleName=pe;O.folderName=Ne;var va=O;export{Me as CITATION_CLASSNAME,O as Citation,va as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=(...e)=>e.filter(o=>o!==!0&&!!o).map(o=>Array.isArray(o)?l(...o):typeof o=="object"?Object.keys(o).map((r,i)=>o[i]||o[r]&&r||null).filter(r=>r!==null).join(" "):o).filter(o=>!!o).join(" ");var g=(e,o)=>l({[`${e}-xs`]:o.size==="xsmall",[`${e}-sm`]:o.size==="small",[`${e}-md`]:o.size==="medium",[`${e}-lg`]:o.size==="large",[`${e}-xl`]:o.size==="xlarge",[`${e}-xxl`]:o.size==="xxlarge",[`${e}-xxxl`]:o.size==="xxxlarge"},{[`${e}-${o.fillMode}`]:o.fillMode},{[`${e}-${o.themeColor}`]:o.themeColor},{"k-rounded-sm":o.rounded==="small","k-rounded-md":o.rounded==="medium","k-rounded-lg":o.rounded==="large","k-rounded-full":o.rounded==="full","k-rounded-none":o.rounded==="none"}),me=(e,o)=>{let{valid:r,invalid:i,hover:a,focus:m,checked:p,active:s,selected:y,disabled:A,indeterminate:x,loading:B,empty:E,readonly:k,highlighted:U,...K}=o;return l({"k-valid":r,"k-invalid":i,"k-hover":a,"k-focus":m,"k-checked":p,"k-active":s,"k-selected":y,"k-disabled":A,"k-indeterminate":x&&!p,"k-loading":B,"k-empty":E,"k-readonly":k,"k-highlighted":U},Object.keys(K).reduce((j,R)=>(R.startsWith("k-")?j[R]=K[R]:j[`k-${R}`]=K[R],j),{}))};var n={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},M={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},N={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},t={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},C={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};import{Fragment as Le,jsx as ce}from"react/jsx-runtime";var ee="k-font-icon",Oe=[],Ee={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info]},ke={},P=e=>{let{size:o,themeColor:r,icon:i,rotate:a,flip:m,...p}=e;return i?ce("span",{...p,className:l(e.className,ee,g(ee,{size:o}),{[`k-i-${i}`]:i,[`k-color-${r}`]:r,[`k-rotate-${a}`]:a,"k-flip-h":m==="h"||m==="both","k-flip-v":m==="v"||m==="both"}),"aria-hidden":"true"}):ce(Le,{})};P.states=Oe;P.options=Ee;P.className=ee;P.defaultOptions=ke;var de=P;import{Fragment as _e,jsx as G}from"react/jsx-runtime";var oe="k-svg-icon",Te=[],Se={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info],variant:[N.outline,N.solid,N.duotone]},te={viewBox:"0 0 24 24",variant:N.outline},H=e=>{let{size:o,themeColor:r,rotate:i,flip:a,viewBox:m=te.viewBox,variant:p=te.variant,icon:s,...y}=e;if(!s)return G(_e,{});if(s==="none")return G("span",{...y,className:l(e.className,oe,g("k-icon",{size:o}),"k-none"),"aria-hidden":"true"});let A=typeof s=="object"&&s.name&&s.name,x=typeof s=="object"?p&&s.variants?.[p]||s.variants?.outline||s.content:void 0;return G("span",{...y,className:l(e.className,oe,g("k-icon",{size:o}),{[`k-svg-i-${A}`]:A,[`k-color-${r}`]:r,[`k-rotate-${i}`]:i,"k-flip-h":a==="h"||a==="both","k-flip-v":a==="v"||a==="both"}),"aria-hidden":"true",children:G("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof s=="object"?s.viewBox:m,dangerouslySetInnerHTML:x!==void 0?{__html:x}:void 0,children:s?void 0:e.children})})};H.states=Te;H.options=Se;H.className=oe;H.defaultOptions=te;var ne=H;import*as ie from"@progress/kendo-svg-icons";var fe="icon",ue="icons";import{useContext as Ke}from"react";import{createContext as ze}from"react";var he=ze({iconsType:"svg"});import{Fragment as xe,jsx as w}from"react/jsx-runtime";var X="k-icon",Re=e=>e.replace(/([-_][a-z0-9])/gi,o=>o.toUpperCase().replace("-","").replace("_","")),Pe=[],He={size:[n.undefined,n.xsmall,n.small,n.medium,n.large,n.xlarge,n.xxlarge,n.xxxlarge],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary,t.success,t.warning,t.error,t.info],variant:[N.outline,N.solid,N.duotone]},q={viewBox:"0 0 24 24",type:"svg",variant:N.outline},u=e=>{let{iconsType:o}=Ke(he),{size:r,themeColor:i,icon:a,type:m=o||q.type,rotate:p,flip:s,viewBox:y=q.viewBox,variant:A=q.variant,...x}=e;if(!a)return w(xe,{});if((o||m)==="svg"){if(a==="none")return w(ne,{...x,className:l(e.className,X),icon:a,size:r,variant:A});let E=ie[a]?a:Re(`${a}-icon`);return ie[E]?w(ne,{...x,className:l(e.className,X),icon:ie[E],size:r,themeColor:i,rotate:p,flip:s,viewBox:y,variant:A}):w(xe,{})}return w(de,{...x,className:l(e.className,X),icon:a,size:r,themeColor:i,rotate:p,flip:s})};u.states=Pe;u.options=He;u.defaultOptions=q;u.className=X;u.moduleName=fe;u.folderName=ue;import{jsx as J}from"react/jsx-runtime";var we="k-chip-action";var b=e=>{let{type:o,...r}=e,i;switch(o){case"remove":i=J(u,{icon:"x-circle",size:"small"});break;case"more":i=J(u,{icon:"more-vertical",size:"small"});break;default:return J(u,{icon:o,size:"small"})}return J("span",{...r,className:l(e.className,we,`k-chip-${o}-action`),children:i})};var ae="avatar",Ce=ae;import{jsx as ve}from"react/jsx-runtime";var D="k-avatar";var De=[C.hover,C.focus,C.active,C.selected,C.disabled],$e={size:[n.undefined,n.small,n.medium,n.large],rounded:[f.undefined,f.none,f.small,f.medium,f.large,f.full],fillMode:[M.undefined,M.solid,M.outline],themeColor:[t.undefined,t.base,t.primary,t.secondary,t.tertiary]},re={type:"text",border:!1},h=e=>{let{size:o,rounded:r,fillMode:i,themeColor:a,type:m=re.type,border:p=re.border,...s}=e;return ve("div",{...s,className:l(e.className,D,g(D,{size:o,rounded:r,fillMode:i,themeColor:a}),{[`${D}-bordered`]:p}),children:ve("span",{className:`${D}-${m}`,children:e.children})})};h.states=De;h.options=$e;h.className=D;h.defaultOptions=re;h.moduleName=ae;h.folderName=Ce;var I=h;import{jsx as Fe}from"react/jsx-runtime";var Ae=e=>Fe(I,{type:"icon",...e});import{jsx as Ve}from"react/jsx-runtime";var ge=e=>Ve(I,{type:"text",...e});import{jsx as Be}from"react/jsx-runtime";var ye=e=>Be(I,{type:"image",...e});import{jsx as xt}from"react/jsx-runtime";import{jsx as $}from"react/jsx-runtime";var Ue=h.options,Ge=h.states,Xe={...h.defaultOptions,variant:"image"},qe=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],Je=[],L=e=>{let{variant:o,...r}=e;switch(o){case"icon":return $(Ae,{...r,children:$(u,{icon:"star"})});case"text":return $(ge,{...r,children:"JO"});default:return $(ye,{...r,children:$("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};L.options=Ue;L.states=Ge;L.variants=qe;L.defaultOptions=Xe;L.modifiers=Je;L.className=h.className;var F="chip",W=F,Q="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";import{jsx as T,jsxs as Ye}from"react/jsx-runtime";var Y="k-chip",We=[C.hover,C.focus,C.active,C.selected,C.disabled],Qe={size:[n.undefined,n.small,n.medium,n.large],rounded:[f.undefined,f.none,f.small,f.medium,f.large,f.full],fillMode:[M.undefined,M.solid,M.outline],themeColor:[t.undefined,t.base,t.success,t.warning,t.error,t.info]},Ne={avatarImage:"/packages/html/assets/avatar.jpg"},c=e=>{let{size:o,rounded:r,fillMode:i,themeColor:a,text:m,icon:p,actions:s,showAvatar:y,avatarImage:A=Ne.avatarImage,hover:x,focus:B,active:E,selected:k,disabled:U,...K}=e;return Ye("div",{...K,className:l(e.className,Y,g(Y,{size:o,rounded:r,fillMode:i,themeColor:a}),me(Y,{hover:x,focus:B,active:E,disabled:U,selected:k})),role:e.role||"button","aria-pressed":e.role==="option"?void 0:k?"true":"false",...e.role==="option"&&k!==void 0&&{"aria-selected":k?"true":"false"},"aria-disabled":U?"true":void 0,children:[p&&T(u,{className:"k-chip-icon",icon:p,size:"small"}),y&&T(h,{className:"k-chip-avatar",type:"image",children:T("img",{src:A,alt:""})}),T("span",{className:"k-chip-content",children:e.children?e.children:m&&T("span",{className:"k-chip-label",children:m})}),s&&T("span",{className:"k-chip-actions",children:s})]})};c.states=We;c.options=Qe;c.className=Y;c.defaultOptions=Ne;c.moduleName=F;c.folderName=W;var v=c;import{jsx as oo}from"react/jsx-runtime";var se="k-chip-list",Ze=[],je={size:[n.undefined,n.small,n.medium,n.large]},eo={},d=e=>{let{size:o,multiselectable:r,ariaLabel:i,...a}=e;return oo("div",{...a,className:l(e.className,se,g(se,{size:o})),role:e.role||"listbox","aria-label":e.role==="none"?void 0:i||"chip list","aria-orientation":e.role==="none"?void 0:"horizontal","aria-multiselectable":r?"true":void 0,children:e.children})};d.states=Ze;d.options=je;d.className=se;d.defaultOptions=eo;d.moduleName=F;d.folderName=W;import{jsx as Xt}from"react/jsx-runtime";import{jsx as Qt}from"react/jsx-runtime";import{jsx as to}from"react/jsx-runtime";var Z=e=>to(v,{text:"text",...e});import{jsx as an}from"react/jsx-runtime";import{jsx as pn}from"react/jsx-runtime";import{Fragment as hn,jsx as un,jsxs as xn}from"react/jsx-runtime";import{jsx as yn,jsxs as Nn}from"react/jsx-runtime";import{jsx as En,jsxs as kn}from"react/jsx-runtime";import{jsx as Kn,jsxs as Rn}from"react/jsx-runtime";import{jsx as S,jsxs as lo}from"react/jsx-runtime";var no={...v.options,...d.options},io=[],ao=d.states,ro={...v.defaultOptions,...d.defaultOptions},so=[{name:"icon",title:"Icon",type:"boolean"},{name:"actions",title:"Actions",type:"boolean"},{name:"avatar",title:"Avatar",type:"boolean"}],_=e=>{let{modifiers:o,className:r,...i}=e,a=o?.icon,m=o?.actions,p=o?.avatar,s=p?Q:void 0;return lo(d,{size:i.size,className:r,children:[S(Z,{...i,role:"option","aria-selected":"false","aria-pressed":void 0,icon:a?"star":void 0,actions:m?S(b,{type:"remove"}):void 0,showAvatar:p,avatarImage:s,children:"Chip"}),S(Z,{...i,role:"option","aria-selected":"false","aria-pressed":void 0,icon:a?"star":void 0,actions:m?S(b,{type:"remove"}):void 0,showAvatar:p,avatarImage:s,children:"Chip"}),S(Z,{...i,role:"option","aria-selected":"false","aria-pressed":void 0,icon:a?"star":void 0,actions:m?S(b,{type:"remove"}):void 0,showAvatar:p,avatarImage:s,children:"Chip"})]})};_.options=no;_.states=ao;_.variants=io;_.defaultOptions=ro;_.modifiers=so;_.className=d.className;import{jsx as le}from"react/jsx-runtime";var po=c.states,mo=c.defaultOptions,co=c.options,fo=[],uo=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],z=e=>{let{modifiers:o,...r}=e,i={};return Object.keys(o||{}).forEach(a=>{switch(a){case"icon":i.icon=o?.[a]?"arrow-down":void 0;break;case"avatar":i.showAvatar=!!o?.[a],i.avatarImage=o?.[a]?Q:void 0;break;case"more-options":i.actions||(i.actions=[]),i.actions[0]=o?.[a]?le(b,{type:"more"}):void 0;break;case"remove-icon":i.actions||(i.actions=[]),i.actions[1]=o?.[a]?le(b,{type:"remove"}):void 0;break;default:break}}),le(c,{...r,...i,children:"Chip component"})};z.options=co;z.states=po;z.variants=fo;z.defaultOptions=mo;z.modifiers=uo;z.className=c.className;var pe="citation",be=pe;import{jsx as Co}from"react/jsx-runtime";var Me="k-citation",ho=[],xo={},V={icon:"globe",size:"small",fillMode:"outline",rounded:"full"},O=e=>{let{domain:o,count:r,text:i,icon:a=V.icon,size:m=V.size,fillMode:p=V.fillMode,rounded:s=V.rounded,className:y,...A}=e,x=i??[o,r?`+${r}`:void 0].filter(Boolean).join(" ");return Co(c,{...A,text:x,icon:a,size:m,fillMode:p,rounded:s,className:l(y,Me)})};O.states=ho;O.options=xo;O.className=Me;O.defaultOptions=V;O.moduleName=pe;O.folderName=be;var Ie=O;import{jsx as vo}from"react/jsx-runtime";var Ni=e=>vo(Ie,{domain:"some-link.com",count:5,...e});export{Ni as CitationNormal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=(...t)=>t.filter(o=>o!==!0&&!!o).map(o=>Array.isArray(o)?l(...o):typeof o=="object"?Object.keys(o).map((n,e)=>o[e]||o[n]&&n||null).filter(n=>n!==null).join(" "):o).filter(o=>!!o).join(" ");var N=(t,o)=>l({[`${t}-xs`]:o.size==="xsmall",[`${t}-sm`]:o.size==="small",[`${t}-md`]:o.size==="medium",[`${t}-lg`]:o.size==="large",[`${t}-xl`]:o.size==="xlarge",[`${t}-xxl`]:o.size==="xxlarge",[`${t}-xxxl`]:o.size==="xxxlarge"},{[`${t}-${o.fillMode}`]:o.fillMode},{[`${t}-${o.themeColor}`]:o.themeColor},{"k-rounded-sm":o.rounded==="small","k-rounded-md":o.rounded==="medium","k-rounded-lg":o.rounded==="large","k-rounded-full":o.rounded==="full","k-rounded-none":o.rounded==="none"}),F=(t,o)=>{let{valid:n,invalid:e,hover:a,focus:p,checked:d,active:m,selected:T,disabled:y,indeterminate:b,loading:U,empty:L,readonly:I,highlighted:G,...S}=o;return l({"k-valid":n,"k-invalid":e,"k-hover":a,"k-focus":p,"k-checked":d,"k-active":m,"k-selected":T,"k-disabled":y,"k-indeterminate":b&&!d,"k-loading":U,"k-empty":L,"k-readonly":I,"k-highlighted":G},Object.keys(S).reduce((E,w)=>(w.startsWith("k-")?E[w]=S[w]:E[`k-${w}`]=S[w],E),{}))};function Qt(t,o){if(!o)return{};let n=Array.isArray(o)?o:[o];return Object.fromEntries(n.map(e=>[`k-${e}`,!0]))}var s={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},u={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},c={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},B={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},i={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},f={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"},Yt={calloutMap:{top:"n",bottom:"s",left:"w",right:"e"},orientationMap:{vertical:"vstack",horizontal:"hstack"}};var Et={};function Zt(t){return Et[t]=(Et[t]||0)+1,`k-${t}-${Et[t]}`}import{Fragment as $o,jsx as jt}from"react/jsx-runtime";var Pt="k-font-icon",Uo=[],Go={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[i.undefined,i.base,i.primary,i.secondary,i.tertiary,i.success,i.warning,i.error,i.info]},Fo={},tt=t=>{let{size:o,themeColor:n,icon:e,rotate:a,flip:p,...d}=t;return e?jt("span",{...d,className:l(t.className,Pt,N(Pt,{size:o}),{[`k-i-${e}`]:e,[`k-color-${n}`]:n,[`k-rotate-${a}`]:a,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"}),"aria-hidden":"true"}):jt($o,{})};tt.states=Uo;tt.options=Go;tt.className=Pt;tt.defaultOptions=Fo;var to=tt;import{Fragment as Jo,jsx as ut}from"react/jsx-runtime";var Bt="k-svg-icon",Vo=[],Xo={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[i.undefined,i.base,i.primary,i.secondary,i.tertiary,i.success,i.warning,i.error,i.info],variant:[B.outline,B.solid,B.duotone]},Lt={viewBox:"0 0 24 24",variant:B.outline},ot=t=>{let{size:o,themeColor:n,rotate:e,flip:a,viewBox:p=Lt.viewBox,variant:d=Lt.variant,icon:m,...T}=t;if(!m)return ut(Jo,{});if(m==="none")return ut("span",{...T,className:l(t.className,Bt,N("k-icon",{size:o}),"k-none"),"aria-hidden":"true"});let y=typeof m=="object"&&m.name&&m.name,b=typeof m=="object"?d&&m.variants?.[d]||m.variants?.outline||m.content:void 0;return ut("span",{...T,className:l(t.className,Bt,N("k-icon",{size:o}),{[`k-svg-i-${y}`]:y,[`k-color-${n}`]:n,[`k-rotate-${e}`]:e,"k-flip-h":a==="h"||a==="both","k-flip-v":a==="v"||a==="both"}),"aria-hidden":"true",children:ut("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof m=="object"?m.viewBox:p,dangerouslySetInnerHTML:b!==void 0?{__html:b}:void 0,children:m?void 0:t.children})})};ot.states=Vo;ot.options=Xo;ot.className=Bt;ot.defaultOptions=Lt;var It=ot;import*as _t from"@progress/kendo-svg-icons";var oo="icon",eo="icons";import{useContext as qo}from"react";import{createContext as Wo}from"react";var no=Wo({iconsType:"svg"});import{Fragment as ao,jsx as et}from"react/jsx-runtime";var ft="k-icon",Qo=t=>t.replace(/([-_][a-z0-9])/gi,o=>o.toUpperCase().replace("-","").replace("_","")),Yo=[],Zo={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[i.undefined,i.base,i.primary,i.secondary,i.tertiary,i.success,i.warning,i.error,i.info],variant:[B.outline,B.solid,B.duotone]},ht={viewBox:"0 0 24 24",type:"svg",variant:B.outline},v=t=>{let{iconsType:o}=qo(no),{size:n,themeColor:e,icon:a,type:p=o||ht.type,rotate:d,flip:m,viewBox:T=ht.viewBox,variant:y=ht.variant,...b}=t;if(!a)return et(ao,{});if((o||p)==="svg"){if(a==="none")return et(It,{...b,className:l(t.className,ft),icon:a,size:n,variant:y});let L=_t[a]?a:Qo(`${a}-icon`);return _t[L]?et(It,{...b,className:l(t.className,ft),icon:_t[L],size:n,themeColor:e,rotate:d,flip:m,viewBox:T,variant:y}):et(ao,{})}return et(to,{...b,className:l(t.className,ft),icon:a,size:n,themeColor:e,rotate:d,flip:m})};v.states=Yo;v.options=Zo;v.defaultOptions=ht;v.className=ft;v.moduleName=oo;v.folderName=eo;import{jsx as vt}from"react/jsx-runtime";var jo="k-chip-action";var _=t=>{let{type:o,...n}=t,e;switch(o){case"remove":e=vt(v,{icon:"x-circle",size:"small"});break;case"more":e=vt(v,{icon:"more-vertical",size:"small"});break;default:return vt(v,{icon:o,size:"small"})}return vt("span",{...n,className:l(t.className,jo,`k-chip-${o}-action`),children:e})};var kt="avatar",io=kt;import{jsx as ro}from"react/jsx-runtime";var nt="k-avatar";var te=[f.hover,f.focus,f.active,f.selected,f.disabled],oe={size:[s.undefined,s.small,s.medium,s.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[c.undefined,c.solid,c.outline],themeColor:[i.undefined,i.base,i.primary,i.secondary,i.tertiary]},St={type:"text",border:!1},M=t=>{let{size:o,rounded:n,fillMode:e,themeColor:a,type:p=St.type,border:d=St.border,...m}=t;return ro("div",{...m,className:l(t.className,nt,N(nt,{size:o,rounded:n,fillMode:e,themeColor:a}),{[`${nt}-bordered`]:d}),children:ro("span",{className:`${nt}-${p}`,children:t.children})})};M.states=te;M.options=oe;M.className=nt;M.defaultOptions=St;M.moduleName=kt;M.folderName=io;var D=M;import{jsx as ee}from"react/jsx-runtime";var so=t=>ee(D,{type:"icon",...t});import{jsx as ne}from"react/jsx-runtime";var lo=t=>ne(D,{type:"text",...t});import{jsx as ae}from"react/jsx-runtime";var po=t=>ae(D,{type:"image",...t});import{jsx as Na}from"react/jsx-runtime";import{jsx as at}from"react/jsx-runtime";var ie=M.options,re=M.states,se={...M.defaultOptions,variant:"image"},le=[{name:"image",title:"Image"},{name:"icon",title:"Icon Avatar"},{name:"text",title:"Text Avatar"}],pe=[],$=t=>{let{variant:o,...n}=t;switch(o){case"icon":return at(so,{...n,children:at(v,{icon:"star"})});case"text":return at(lo,{...n,children:"JO"});default:return at(po,{...n,children:at("img",{src:"https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg"})})}};$.options=ie;$.states=re;$.variants=le;$.defaultOptions=se;$.modifiers=pe;$.className=M.className;var it="chip",Nt=it,xt="https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg";import{jsx as V,jsxs as ce}from"react/jsx-runtime";var Ct="k-chip",me=[f.hover,f.focus,f.active,f.selected,f.disabled],de={size:[s.undefined,s.small,s.medium,s.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[c.undefined,c.solid,c.outline],themeColor:[i.undefined,i.base,i.success,i.warning,i.error,i.info]},mo={avatarImage:"/packages/html/assets/avatar.jpg"},x=t=>{let{size:o,rounded:n,fillMode:e,themeColor:a,text:p,icon:d,actions:m,showAvatar:T,avatarImage:y=mo.avatarImage,hover:b,focus:U,active:L,selected:I,disabled:G,...S}=t;return ce("div",{...S,className:l(t.className,Ct,N(Ct,{size:o,rounded:n,fillMode:e,themeColor:a}),F(Ct,{hover:b,focus:U,active:L,disabled:G,selected:I})),role:t.role||"button","aria-pressed":t.role==="option"?void 0:I?"true":"false",...t.role==="option"&&I!==void 0&&{"aria-selected":I?"true":"false"},"aria-disabled":G?"true":void 0,children:[d&&V(v,{className:"k-chip-icon",icon:d,size:"small"}),T&&V(M,{className:"k-chip-avatar",type:"image",children:V("img",{src:y,alt:""})}),V("span",{className:"k-chip-content",children:t.children?t.children:p&&V("span",{className:"k-chip-label",children:p})}),m&&V("span",{className:"k-chip-actions",children:m})]})};x.states=me;x.options=de;x.className=Ct;x.defaultOptions=mo;x.moduleName=it;x.folderName=Nt;var P=x;import{jsx as ve}from"react/jsx-runtime";var Kt="k-chip-list",ue=[],fe={size:[s.undefined,s.small,s.medium,s.large]},he={},C=t=>{let{size:o,multiselectable:n,ariaLabel:e,...a}=t;return ve("div",{...a,className:l(t.className,Kt,N(Kt,{size:o})),role:t.role||"listbox","aria-label":t.role==="none"?void 0:e||"chip list","aria-orientation":t.role==="none"?void 0:"horizontal","aria-multiselectable":n?"true":void 0,children:t.children})};C.states=ue;C.options=fe;C.className=Kt;C.defaultOptions=he;C.moduleName=it;C.folderName=Nt;import{jsx as Ja}from"react/jsx-runtime";import{jsx as Ya}from"react/jsx-runtime";import{jsx as Ne}from"react/jsx-runtime";var At=t=>Ne(P,{text:"text",...t});import{jsx as ii}from"react/jsx-runtime";import{jsx as pi}from"react/jsx-runtime";import{Fragment as hi,jsx as fi,jsxs as vi}from"react/jsx-runtime";import{jsx as bi,jsxs as Mi}from"react/jsx-runtime";import{jsx as Ei,jsxs as Pi}from"react/jsx-runtime";import{jsx as Si,jsxs as Ki}from"react/jsx-runtime";import{jsx as X,jsxs as ye}from"react/jsx-runtime";var xe={...P.options,...C.options},Ce=[],Ae=C.states,be={...P.defaultOptions,...C.defaultOptions},Me=[{name:"icon",title:"Icon",type:"boolean"},{name:"actions",title:"Actions",type:"boolean"},{name:"avatar",title:"Avatar",type:"boolean"}],J=t=>{let{modifiers:o,className:n,...e}=t,a=o?.icon,p=o?.actions,d=o?.avatar,m=d?xt:void 0;return ye(C,{size:e.size,className:n,children:[X(At,{...e,role:"option","aria-selected":"false","aria-pressed":void 0,icon:a?"star":void 0,actions:p?X(_,{type:"remove"}):void 0,showAvatar:d,avatarImage:m,children:"Chip"}),X(At,{...e,role:"option","aria-selected":"false","aria-pressed":void 0,icon:a?"star":void 0,actions:p?X(_,{type:"remove"}):void 0,showAvatar:d,avatarImage:m,children:"Chip"}),X(At,{...e,role:"option","aria-selected":"false","aria-pressed":void 0,icon:a?"star":void 0,actions:p?X(_,{type:"remove"}):void 0,showAvatar:d,avatarImage:m,children:"Chip"})]})};J.options=xe;J.states=Ae;J.variants=Ce;J.defaultOptions=be;J.modifiers=Me;J.className=C.className;import{jsx as Rt}from"react/jsx-runtime";var ge=x.states,Oe=x.defaultOptions,Te=x.options,Ee=[],Pe=[{name:"icon",title:"Icon"},{name:"avatar",title:"Avatar"},{name:"remove-icon",title:"`Remove` Icon"},{name:"more-options",title:"`More options` Icon"}],W=t=>{let{modifiers:o,...n}=t,e={};return Object.keys(o||{}).forEach(a=>{switch(a){case"icon":e.icon=o?.[a]?"arrow-down":void 0;break;case"avatar":e.showAvatar=!!o?.[a],e.avatarImage=o?.[a]?xt:void 0;break;case"more-options":e.actions||(e.actions=[]),e.actions[0]=o?.[a]?Rt(_,{type:"more"}):void 0;break;case"remove-icon":e.actions||(e.actions=[]),e.actions[1]=o?.[a]?Rt(_,{type:"remove"}):void 0;break;default:break}}),Rt(x,{...n,...e,children:"Chip component"})};W.options=Te;W.states=ge;W.variants=Ee;W.defaultOptions=Oe;W.modifiers=Pe;W.className=x.className;var rt="citation",bt=rt;import{jsx as Ie}from"react/jsx-runtime";var co="k-citation",Be=[],Le={},st={icon:"globe",size:"small",fillMode:"outline",rounded:"full"},z=t=>{let{domain:o,count:n,text:e,icon:a=st.icon,size:p=st.size,fillMode:d=st.fillMode,rounded:m=st.rounded,className:T,...y}=t,b=e??[o,n?`+${n}`:void 0].filter(Boolean).join(" ");return Ie(x,{...y,text:b,icon:a,size:p,fillMode:d,rounded:m,className:l(T,co)})};z.states=Be;z.options=Le;z.className=co;z.defaultOptions=st;z.moduleName=rt;z.folderName=bt;var uo=z;var wt="button",fo=wt;import{Fragment as ho,jsx as q,jsxs as vo}from"react/jsx-runtime";var lt="k-button",_e=["icon-button"],ke=[f.hover,f.focus,f.active,f.selected,f.disabled,f.generating],Se={size:[s.undefined,s.xsmall,s.small,s.medium,s.large],rounded:[u.undefined,u.none,u.small,u.medium,u.large,u.full],fillMode:[c.undefined,c.solid,c.flat,c.outline,c.clear,c.link],themeColor:[i.undefined,i.base,i.primary,i.secondary,i.tertiary,i.success,i.warning,i.error,i.info,i.inverse]},Dt={showArrow:!1,arrowIconName:"chevron-down"},r=t=>{let{as:o="button",size:n,rounded:e,fillMode:a,themeColor:p,showArrow:d=Dt.showArrow,arrowIconName:m=Dt.arrowIconName,variant:T,hover:y,focus:b,active:U,selected:L,disabled:I,togglable:G,ariaDisabled:S,icon:E,iconSize:w,text:ct,iconClassName:Ro,className:wo,...Do}=t,zo=E!=null,Ho=t.children!==void 0;return vo(o,{className:l(wo,lt,Qt(lt,T),N(lt,{size:n,rounded:e,fillMode:a,themeColor:p}),F(lt,{hover:y,focus:b,active:U,disabled:I||S,selected:L}),{"k-icon-button":!ct&&!Ho&&zo}),"aria-pressed":G?L?"true":"false":void 0,...Do,"aria-disabled":S?"true":void 0,disabled:I||void 0,children:[typeof E=="string"&&E&&q(v,{className:l(Ro,"k-button-icon"),icon:E,size:w}),E&&typeof E!="string"&&q(ho,{children:E}),ct?vo(ho,{children:[ct&&q("span",{className:"k-button-text",children:ct}),t.children]}):t.children&&q("span",{className:"k-button-text",children:t.children}),d&&q("span",{className:"k-menu-button-arrow k-button-arrow",children:q(v,{icon:m})})]})};r.states=ke;r.options=Se;r.variants=_e;r.className=lt;r.defaultOptions=Dt;r.moduleName=wt;r.folderName=fo;import{jsx as Ke}from"react/jsx-runtime";var pt=t=>Ke(r,{icon:"folder",...t,"aria-label":t["aria-label"]||"Folder",children:void 0});import{jsx as Re}from"react/jsx-runtime";var No=t=>Re(r,{icon:"folder",children:"Button",...t});import{jsx as we}from"react/jsx-runtime";var xo=t=>we(r,{children:"Button",...t});import{jsx as zt}from"react/jsx-runtime";var De=r.options,ze=r.states,He={...r.defaultOptions,variant:"text"},Ue=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ge=[],Q=t=>{let{variant:o,...n}=t;switch(o){case"icon-only":return zt(pt,{...n,icon:"star"});case"icon-and-text":return zt(No,{...n,icon:"star",children:"Button"});default:return zt(xo,{...n,children:"Button"})}};Q.options=De;Q.states=ze;Q.variants=Ue;Q.defaultOptions=He;Q.modifiers=Ge;Q.className=r.className;var Ht="button",Co=Ht;import{jsx as Xe}from"react/jsx-runtime";var mt="k-button-group",Fe=[f.disabled],$e={fillMode:[c.undefined,c.solid,c.flat,c.outline,c.clear,c.link]},Ve={},h=t=>{let{fillMode:o,disabled:n,stretched:e,...a}=t;return Xe("div",{role:"group",...a,className:l(t.className,mt,N(mt,{fillMode:o}),F(mt,{disabled:n}),{[`${mt}-stretched`]:e}),...n&&{"aria-disabled":"true"},children:t.children})};h.states=Fe;h.options=$e;h.className=mt;h.defaultOptions=Ve;h.moduleName=Ht;h.folderName=Co;import{Fragment as as,jsx as ns,jsxs as is}from"react/jsx-runtime";import{Fragment as ds,jsx as ms,jsxs as cs}from"react/jsx-runtime";import{Fragment as xs,jsx as Ns,jsxs as Cs}from"react/jsx-runtime";import{Fragment as Os,jsx as gs,jsxs as Ts}from"react/jsx-runtime";import{Fragment as _s,jsx as Is,jsxs as ks}from"react/jsx-runtime";import{Fragment as zs,jsx as Ds,jsxs as Hs}from"react/jsx-runtime";import{jsx as k,jsxs as Ut}from"react/jsx-runtime";var Je={...r.options,...h.options},We=r.states,qe={...r.defaultOptions,...h.defaultOptions,variant:"text-button"},Qe=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],Ye=[],Y=t=>{let{variant:o,className:n,...e}=t;return o==="icon-button"?Ut(h,{fillMode:e.fillMode,className:n,children:[k(r,{...e,icon:"star"}),k(r,{...e,icon:"star"}),k(r,{...e,icon:"star"})]}):o==="icon-text-button"?Ut(h,{fillMode:e.fillMode,className:n,children:[k(r,{...e,icon:"star",children:"First"}),k(r,{...e,icon:"star",children:"Middle"}),k(r,{...e,icon:"star",children:"Last"})]}):Ut(h,{fillMode:e.fillMode,className:n,children:[k(r,{...e,children:"First"}),k(r,{...e,children:"Middle"}),k(r,{...e,children:"Last"})]})};Y.options=Je;Y.states=We;Y.variants=Qe;Y.defaultOptions=qe;Y.modifiers=Ye;Y.className=h.className;var Gt="popup",Ao=Gt;import{jsx as bo}from"react/jsx-runtime";var Mo="k-animation-container",Ze=[],je={},Ft={positionMode:"absolute",shown:!0},K=t=>{let{positionMode:o=Ft.positionMode,shown:n=Ft.shown,animationStyle:e,offset:a,...p}=t;return bo("div",{...p,style:{...a,...t.style},className:l(t.className,Mo,{"k-animation-container-shown":n,"k-animation-container-fixed":o==="fixed"}),children:bo("div",{className:"k-child-animation-container",style:e,children:t.children})})};K.states=Ze;K.options=je;K.className=Mo;K.defaultOptions=Ft;K.moduleName=Gt;K.folderName=Ao;var $t="popup",yo=$t;import{jsx as go}from"react/jsx-runtime";var Oo="k-popup",tn=[],on={},To={positionMode:"absolute"},R=t=>{let{offset:o,positionMode:n=To.positionMode,animationStyle:e,containerClassName:a,containerRole:p,containerAriaLabel:d,...m}=t;return go(K,{positionMode:n,offset:o,animationStyle:e,className:a,role:p,"aria-label":d,children:go("div",{...m,className:l(t.className,Oo),children:t.children})})};R.states=tn;R.options=on;R.className=Oo;R.defaultOptions=To;R.moduleName=$t;R.folderName=yo;var Vt="popover",Eo=Vt;import{Fragment as rn,jsx as Mt,jsxs as Po}from"react/jsx-runtime";var Bo="k-popover",en=[],nn={},an={},A=t=>{let{callout:o,title:n,body:e,id:a=Zt("popover"),...p}=t;return Po(R,{...p,className:l(t.className,Bo),role:"dialog",id:a,"aria-labelledby":n?`${a}-header`:void 0,"aria-describedby":e?`${a}-body`:void 0,children:[o&&Mt("div",{className:l("k-popover-callout",{[`k-callout-${Yt.calloutMap[o]||o}`]:o})}),Po("div",{className:"k-popover-inner",children:[n&&Mt("div",{className:"k-popover-header",id:`${a}-header`,children:n}),e&&Mt("div",{className:"k-popover-body",id:`${a}-body`,children:e}),Mt(rn,{children:t.children})]})]})};A.states=en;A.options=nn;A.className=Bo;A.defaultOptions=an;A.moduleName=Vt;A.folderName=Eo;var Xt="action-buttons",Lo=Xt;import{jsx as pn}from"react/jsx-runtime";var yt="k-actions",sn=[],ln={},Jt={alignment:"start",orientation:"horizontal"},g=t=>{let{alignment:o=Jt.alignment,orientation:n=Jt.orientation,...e}=t;return pn("div",{...e,className:l(yt,{[`${yt}-${o}`]:o,[`${yt}-${n}`]:n},t.className),children:t.children})};g.states=sn;g.options=ln;g.className=yt;g.defaultOptions=Jt;g.moduleName=Xt;g.folderName=Lo;import{Fragment as mn,jsx as gt,jsxs as dn}from"react/jsx-runtime";var dt=t=>gt(A,{title:"Title",body:gt(mn,{children:"Body content"}),children:dn(g,{className:"k-popover-actions",alignment:"stretched",children:[gt(r,{fillMode:"flat",children:"Action"}),gt(r,{fillMode:"flat",themeColor:"primary",children:"Primary"})]}),...t});import{Fragment as vn,jsx as O,jsxs as Ot}from"react/jsx-runtime";var cn=A.options,un=A.states,Io={...A.defaultOptions,variant:"bottom"},fn=[{name:"bottom",title:"Callout bottom"},{name:"left",title:"Callout left"},{name:"top",title:"Callout top"},{name:"right",title:"Callout right"}],hn=[{name:"title",title:"With title"},{name:"content",title:"With content"}],Z=t=>{let{variant:o,modifiers:n,...e}={...Io,...t},a={title:"Popover title",body:O(vn,{children:"The popover component is a UI element that displays additional content or options when an anchor element is hovered, clicked, or focused."})};switch(Object.keys(n||{}).forEach(p=>{switch(p){case"title":a.title=n?.[p]?a.title:"";break;case"content":a.body=n?.[p]?a.body:void 0;break;default:break}}),o){case"left":return O(dt,{...e,...a,style:{width:"217px",position:"relative",overflow:"visible"},callout:"left",children:Ot(g,{className:"k-popover-actions",alignment:"stretched",children:[O(r,{children:"Action"}),O(r,{themeColor:"primary",children:"Primary"})]})});case"right":return O(dt,{...e,...a,style:{width:"217px",position:"relative",overflow:"visible"},callout:"right",children:Ot(g,{className:"k-popover-actions",alignment:"stretched",children:[O(r,{children:"Action"}),O(r,{themeColor:"primary",children:"Primary"})]})});case"top":return O(dt,{...e,...a,style:{width:"217px",position:"relative",overflow:"visible"},callout:"top",children:Ot(g,{className:"k-popover-actions",alignment:"stretched",children:[O(r,{children:"Action"}),O(r,{themeColor:"primary",children:"Primary"})]})});default:return O(dt,{...e,...a,style:{width:"217px",position:"relative",overflow:"visible"},callout:"bottom",children:Ot(g,{className:"k-popover-actions",alignment:"stretched",children:[O(r,{children:"Action"}),O(r,{themeColor:"primary",children:"Primary"})]})})}};Z.options=cn;Z.states=un;Z.variants=fn;Z.defaultOptions=Io;Z.modifiers=hn;Z.className=A.className;import{Fragment as Cn,jsx as qt,jsxs as Wt}from"react/jsx-runtime";var _o="k-citation-popover",Nn=[],xn={},Tt={currentView:1,pageIndex:1,totalPages:6},H=t=>{let{body:o,currentView:n=Tt.currentView,pageIndex:e=Tt.pageIndex,totalPages:a=Tt.totalPages,className:p,children:d,...m}=t;return qt(A,{...m,className:l(p,_o),style:{"--kendo-citation-popover-view-current":n},title:Wt(Cn,{children:[Wt("span",{className:"k-citation-pages",children:[e,"/",a]}),Wt(h,{fillMode:"flat",children:[qt(pt,{icon:"arrow-left",fillMode:"flat",size:"small","aria-label":"Previous"}),qt(pt,{icon:"arrow-right",fillMode:"flat",size:"small","aria-label":"Next"})]})]}),body:o,children:d})};H.states=Nn;H.options=xn;H.className=_o;H.defaultOptions=Tt;H.moduleName=rt;H.folderName=bt;var ko=H;import{Fragment as So,jsx as j,jsxs as Ko}from"react/jsx-runtime";var op=t=>Ko(So,{children:[j(uo,{domain:"some-link.com",count:5,selected:!0,...t}),j(ko,{body:Ko(So,{children:[j("div",{className:"k-citation-popover-view",children:j("div",{children:"View 1"})}),j("div",{className:"k-citation-popover-view",children:j("div",{children:"View 2"})})]})})]});export{op as CitationOpened};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var l=(...t)=>t.filter(a=>a!==!0&&!!a).map(a=>Array.isArray(a)?l(...a):typeof a=="object"?Object.keys(a).map((o,n)=>a[n]||a[o]&&o||null).filter(o=>o!==null).join(" "):a).filter(a=>!!a).join(" ");var v=(t,a)=>l({[`${t}-xs`]:a.size==="xsmall",[`${t}-sm`]:a.size==="small",[`${t}-md`]:a.size==="medium",[`${t}-lg`]:a.size==="large",[`${t}-xl`]:a.size==="xlarge",[`${t}-xxl`]:a.size==="xxlarge",[`${t}-xxxl`]:a.size==="xxxlarge"},{[`${t}-${a.fillMode}`]:a.fillMode},{[`${t}-${a.themeColor}`]:a.themeColor},{"k-rounded-sm":a.rounded==="small","k-rounded-md":a.rounded==="medium","k-rounded-lg":a.rounded==="large","k-rounded-full":a.rounded==="full","k-rounded-none":a.rounded==="none"}),X=(t,a)=>{let{valid:o,invalid:n,hover:i,focus:s,checked:p,active:c,selected:f,disabled:x,indeterminate:y,loading:A,empty:I,readonly:re,highlighted:Ne,...$}=a;return l({"k-valid":o,"k-invalid":n,"k-hover":i,"k-focus":s,"k-checked":p,"k-active":c,"k-selected":f,"k-disabled":x,"k-indeterminate":y&&!p,"k-loading":A,"k-empty":I,"k-readonly":re,"k-highlighted":Ne},Object.keys($).reduce((L,K)=>(K.startsWith("k-")?L[K]=$[K]:L[`k-${K}`]=$[K],L),{}))};function At(t,a){if(!a)return{};let o=Array.isArray(a)?a:[a];return Object.fromEntries(o.map(n=>[`k-${n}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},j={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},ee={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},F={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},u={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},h={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var Ze={};function ie(t){return Ze[t]=(Ze[t]||0)+1,`k-${t}-${Ze[t]}`}var je="action-buttons",vt=je;import{jsx as Ia}from"react/jsx-runtime";var _e="k-actions",La=[],Oa={},et={alignment:"start",orientation:"horizontal"},H=t=>{let{alignment:a=et.alignment,orientation:o=et.orientation,...n}=t;return Ia("div",{...n,className:l(_e,{[`${_e}-${a}`]:a,[`${_e}-${o}`]:o},t.className),children:t.children})};H.states=La;H.options=Oa;H.className=_e;H.defaultOptions=et;H.moduleName=je;H.folderName=vt;import{Fragment as Ha,jsx as St}from"react/jsx-runtime";var tt="k-font-icon",_a=[],Da={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info]},Ba={},ye=t=>{let{size:a,themeColor:o,icon:n,rotate:i,flip:s,...p}=t;return n?St("span",{...p,className:l(t.className,tt,v(tt,{size:a}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true"}):St(Ha,{})};ye.states=_a;ye.options=Da;ye.className=tt;ye.defaultOptions=Ba;var Mt=ye;import{Fragment as Pa,jsx as De}from"react/jsx-runtime";var at="k-svg-icon",Ka=[],za={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[F.outline,F.solid,F.duotone]},ot={viewBox:"0 0 24 24",variant:F.outline},we=t=>{let{size:a,themeColor:o,rotate:n,flip:i,viewBox:s=ot.viewBox,variant:p=ot.variant,icon:c,...f}=t;if(!c)return De(Pa,{});if(c==="none")return De("span",{...f,className:l(t.className,at,v("k-icon",{size:a}),"k-none"),"aria-hidden":"true"});let x=typeof c=="object"&&c.name&&c.name,y=typeof c=="object"?p&&c.variants?.[p]||c.variants?.outline||c.content:void 0;return De("span",{...f,className:l(t.className,at,v("k-icon",{size:a}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:De("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:s,dangerouslySetInnerHTML:y!==void 0?{__html:y}:void 0,children:c?void 0:t.children})})};we.states=Ka;we.options=za;we.className=at;we.defaultOptions=ot;var nt=we;import*as lt from"@progress/kendo-svg-icons";var Rt="icon",Lt="icons";import{useContext as Va}from"react";import{createContext as Fa}from"react";var Ot=Fa({iconsType:"svg"});import{Fragment as It,jsx as he}from"react/jsx-runtime";var Be="k-icon",Ua=t=>t.replace(/([-_][a-z0-9])/gi,a=>a.toUpperCase().replace("-","").replace("_","")),Wa=[],$a={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[F.outline,F.solid,F.duotone]},He={viewBox:"0 0 24 24",type:"svg",variant:F.outline},z=t=>{let{iconsType:a}=Va(Ot),{size:o,themeColor:n,icon:i,type:s=a||He.type,rotate:p,flip:c,viewBox:f=He.viewBox,variant:x=He.variant,...y}=t;if(!i)return he(It,{});if((a||s)==="svg"){if(i==="none")return he(nt,{...y,className:l(t.className,Be),icon:i,size:o,variant:x});let I=lt[i]?i:Ua(`${i}-icon`);return lt[I]?he(nt,{...y,className:l(t.className,Be),icon:lt[I],size:o,themeColor:n,rotate:p,flip:c,viewBox:f,variant:x}):he(It,{})}return he(Mt,{...y,className:l(t.className,Be),icon:i,size:o,themeColor:n,rotate:p,flip:c})};z.states=Wa;z.options=$a;z.defaultOptions=He;z.className=Be;z.moduleName=Rt;z.folderName=Lt;var rt="button",_t=rt;import{Fragment as Dt,jsx as se,jsxs as Bt}from"react/jsx-runtime";var ke="k-button",Ja=["icon-button"],Ga=[h.hover,h.focus,h.active,h.selected,h.disabled,h.generating],Ya={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[j.undefined,j.none,j.small,j.medium,j.large,j.full],fillMode:[ee.undefined,ee.solid,ee.flat,ee.outline,ee.clear,ee.link],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.inverse]},it={showArrow:!1,arrowIconName:"chevron-down"},N=t=>{let{as:a="button",size:o,rounded:n,fillMode:i,themeColor:s,showArrow:p=it.showArrow,arrowIconName:c=it.arrowIconName,variant:f,hover:x,focus:y,active:A,selected:I,disabled:re,togglable:Ne,ariaDisabled:$,icon:L,iconSize:K,text:Te,iconClassName:Oe,className:be,...Qe}=t,Ie=L!=null,Ra=t.children!==void 0;return Bt(a,{className:l(be,ke,At(ke,f),v(ke,{size:o,rounded:n,fillMode:i,themeColor:s}),X(ke,{hover:x,focus:y,active:A,disabled:re||$,selected:I}),{"k-icon-button":!Te&&!Ra&&Ie}),"aria-pressed":Ne?I?"true":"false":void 0,...Qe,"aria-disabled":$?"true":void 0,disabled:re||void 0,children:[typeof L=="string"&&L&&se(z,{className:l(Oe,"k-button-icon"),icon:L,size:K}),L&&typeof L!="string"&&se(Dt,{children:L}),Te?Bt(Dt,{children:[Te&&se("span",{className:"k-button-text",children:Te}),t.children]}):t.children&&se("span",{className:"k-button-text",children:t.children}),p&&se("span",{className:"k-menu-button-arrow k-button-arrow",children:se(z,{icon:c})})]})};N.states=Ga;N.options=Ya;N.variants=Ja;N.className=ke;N.defaultOptions=it;N.moduleName=rt;N.folderName=_t;import{jsx as Xa}from"react/jsx-runtime";var Ht=t=>Xa(N,{icon:"folder",...t,"aria-label":t["aria-label"]||"Folder",children:void 0});import{jsx as qa}from"react/jsx-runtime";var Kt=t=>qa(N,{icon:"folder",children:"Button",...t});import{jsx as Qa}from"react/jsx-runtime";var zt=t=>Qa(N,{children:"Button",...t});import{jsx as st}from"react/jsx-runtime";var Za=N.options,ja=N.states,eo={...N.defaultOptions,variant:"text"},to=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ao=[],de=t=>{let{variant:a,...o}=t;switch(a){case"icon-only":return st(Ht,{...o,icon:"star"});case"icon-and-text":return st(Kt,{...o,icon:"star",children:"Button"});default:return st(zt,{...o,children:"Button"})}};de.options=Za;de.states=ja;de.variants=to;de.defaultOptions=eo;de.modifiers=ao;de.className=N.className;import{jsx as oo}from"react/jsx-runtime";var Pt="k-calendar-view",dt={orientation:"horizontal",calendarView:"month"},Ke=t=>{let{orientation:a=dt.orientation,calendarView:o=dt.calendarView,gridRole:n,ariaLabelledBy:i,...s}=t;return oo("div",{...s,className:l(t.className,Pt,`k-calendar-${o}view`,"k-align-items-start","k-justify-content-center",{"k-hstack":a==="horizontal","k-vstack":a==="vertical"}),...n?{role:"grid","aria-labelledby":i,tabIndex:0}:{},children:t.children})};Ke.className=Pt;Ke.defaultOptions=dt;import{jsx as ge,jsxs as Ft}from"react/jsx-runtime";var Vt="k-calendar-header",no={size:[r.undefined,r.small,r.medium,r.large]},Ee={calendarTitleText:"October 2021",showToday:!0,showNavigationButtons:!0,orientation:"horizontal"},te=t=>{let{calendarTitleText:a=Ee.calendarTitleText,showToday:o=Ee.showToday,showNavigationButtons:n=Ee.showNavigationButtons,orientation:i=Ee.orientation,size:s,calendarView:p,dir:c,titleId:f,...x}=t,y=c==="rtl"?"chevron-right":"chevron-left",A=c==="rtl"?"chevron-left":"chevron-right",I=f||ie("calendar-title");return Ft("div",{...x,className:l(t.className,Vt,{"k-vstack":i==="vertical"}),children:[ge(N,{disabled:p==="century",className:"k-calendar-title",text:a,size:s,fillMode:"flat",themeColor:"primary",id:I,tabIndex:-1,"aria-label":`Navigate to parent view: ${a}`,...p==="century"?{"aria-disabled":"true"}:{}}),ge("span",{className:"k-spacer"}),Ft("span",{className:"k-calendar-nav",children:[n&&ge(N,{className:"k-calendar-nav-prev",icon:y,size:s,fillMode:"flat",tabIndex:-1,"aria-label":"Navigate to previous view"}),o&&ge(N,{size:s,fillMode:"flat",className:"k-calendar-nav-today",tabIndex:-1,children:"Today"}),n&&ge(N,{className:"k-calendar-nav-next",icon:A,size:s,fillMode:"flat",tabIndex:-1,"aria-label":"Navigate to next view"})]})]})};te.options=no;te.className=Vt;te.defaultOptions=Ee;import{jsx as Ut}from"react/jsx-runtime";var Wt="k-calendar-footer",lo={size:[r.undefined,r.small,r.medium,r.large]},$t={calendarFooterText:"Tuesday, October 12, 2021"},Ae=t=>{let{size:a,calendarFooterText:o=$t.calendarFooterText,...n}=t;return Ut("div",{...n,className:l(t.className,Wt),children:Ut(N,{size:a,fillMode:"flat",themeColor:"primary",className:"k-calendar-nav-today",children:o})})};Ae.options=lo;Ae.className=Wt;Ae.defaultOptions=$t;var S="calendar",M=S;import{jsx as mt,jsxs as so}from"react/jsx-runtime";var ct="k-calendar",ro=[],io={size:[r.undefined,r.small,r.medium,r.large]},ve={showCalendarHeader:!0,orientation:"horizontal",calendarView:"month",calendarTitleText:"October 2021"},w=t=>{let{size:a,orientation:o=ve.orientation,calendarView:n=ve.calendarView,calendarTitleText:i=ve.calendarTitleText,showCalendarHeader:s=ve.showCalendarHeader,showWeek:p,showCalendarFooter:c,calendarFooterText:f,dir:x,...y}=t,A=ie("calendar-title");return so("div",{...y,dir:x,className:l(t.className,ct,v(ct,{size:a}),{"k-week-number":p}),children:[s&&mt(te,{calendarView:n,showToday:!c,calendarTitleText:i,orientation:o,size:a,dir:x,titleId:A}),mt(Ke,{calendarView:n,orientation:o,gridRole:!0,ariaLabelledBy:A,children:t.children}),c&&mt(Ae,{calendarFooterText:f,size:a})]})};w.states=ro;w.options=io;w.className=ct;w.defaultOptions=ve;w.moduleName=S;w.folderName=M;import{jsx as po}from"react/jsx-runtime";var Jt="k-calendar-container",mo=[],co={},Co={},me=t=>{let{...a}=t;return po("div",{...a,className:l(t.className,Jt),children:t.children})};me.states=mo;me.options=co;me.className=Jt;me.defaultOptions=Co;me.moduleName=S;me.folderName=M;import{Fragment as xo,jsx as ce,jsxs as fo}from"react/jsx-runtime";var uo=[h.hover,h.focus,h.active,h.selected,h.disabled],e=t=>{let{text:a,headerCell:o,today:n,weekend:i,showOtherMonth:s,weekCell:p,rangeStart:c,rangeMid:f,rangeEnd:x,dayIndicator:y,empty:A,hover:I,focus:re,active:Ne,selected:$,disabled:L,...K}=t,Oe=`k-calendar-${o?"th":"td"}`,be=[t.className,Oe,X(Oe,{hover:I,focus:re,active:Ne,selected:$,disabled:L}),{"k-today":n,"k-weekend":i,"k-other-month":s,"k-alt":p,"k-range-start":c,"k-range-mid":f,"k-range-end":x,"k-empty":A}],Qe={Su:"Sunday",Mo:"Monday",Tu:"Tuesday",We:"Wednesday",Th:"Thursday",Fr:"Friday",Sa:"Saturday",W:"Week number"};if(o){let Ie=a?Qe[a]||a:void 0;return ce("th",{...K,className:l(be),role:"columnheader",scope:"col","aria-label":Ie,children:p?ce("span",{className:"k-sr-only",children:Ie}):a})}return p?ce("td",{...K,className:l(be),children:a}):ce("td",{...K,className:l(be),role:"gridcell",...$?{"aria-selected":"true"}:{},...L?{"aria-disabled":"true"}:{},children:A&&!s?ce(xo,{children:"\xA0"}):fo("span",{className:"k-link",children:[a,y&&ce("span",{className:"k-day-indicator"})]})})};e.states=uo;import{jsx as Ct,jsxs as No}from"react/jsx-runtime";var Gt="k-calendar-thead",Yt={cellsText:["Su","Mo","Tu","We","Th","Fr","Sa"]},q=t=>{let{showWeek:a,cellsText:o=Yt.cellsText,...n}=t;return Ct("thead",{...n,className:l(t.className,Gt),role:"rowgroup",children:No("tr",{className:"k-calendar-tr",role:"row",children:[a&&Ct(e,{weekCell:!0,headerCell:!0,text:"W"}),o.map((i,s)=>Ct(e,{text:i,headerCell:!0},s))]})})};q.className=Gt;q.moduleName=null;q.folderName=null;q.defaultOptions=Yt;import{jsx as To}from"react/jsx-runtime";var Xt="k-calendar-tbody",E=t=>{let{...a}=t;return To("tbody",{...a,className:l(t.className,Xt),role:"rowgroup",children:t.children})};E.className=Xt;E.moduleName=S;E.folderName=M;import{jsx as pt,jsxs as yo}from"react/jsx-runtime";var bo="k-calendar-table",V=t=>{let{calendarCaption:a,showTableHead:o,showWeek:n,ariaLabelledBy:i,ariaActiveDescendant:s,gridRole:p,...c}=t;return yo("table",{...c,className:l(t.className,bo),...p?{role:"grid","aria-labelledby":i,"aria-activedescendant":s,tabIndex:0}:{role:"none"},children:[a&&pt("caption",{className:"k-calendar-caption",children:a}),o&&pt(q,{showWeek:n}),pt(E,{children:t.children})]})};import{jsx as ut,jsxs as qt}from"react/jsx-runtime";var Qt="k-calendar-navigation",Se=t=>qt("div",{...t,className:l(t.className,Qt),children:[ut("span",{className:"k-calendar-navigation-highlight"}),qt("div",{className:"k-content k-scrollable",children:[ut("ul",{className:"k-reset",children:t.children}),ut("div",{className:"k-scrollable-placeholder",style:{height:"1000px"}})]})]});Se.className=Qt;Se.moduleName=S;Se.folderName=M;import{jsx as ho}from"react/jsx-runtime";var wo="k-calendar-table",xt=t=>{let{tableRole:a="none",ariaLabelledBy:o,...n}=t;return ho("table",{...n,className:l(t.className,wo),role:a,...o?{"aria-labelledby":o}:{},...a==="grid"?{tabIndex:0}:{},children:t.children})};import{jsx as P,jsxs as ze}from"react/jsx-runtime";var Zt="k-calendar-view",Ce={orientation:"vertical",calendarView:"month",headerText:"April 2018",showWeekdays:!0,showNavigationButtons:!1},pe=t=>{let{orientation:a=Ce.orientation,calendarView:o=Ce.calendarView,headerText:n=Ce.headerText,showWeekdays:i=Ce.showWeekdays,showNavigationButtons:s=Ce.showNavigationButtons,showWeekNumbers:p,weekdayCellsText:c,gridLabelledBy:f,...x}=t;return ze("div",{...x,className:l(Zt,`k-calendar-${o}view`,t.className,{"k-hstack":a==="horizontal","k-vstack":a==="vertical"}),children:[P(te,{showNavigationButtons:s,calendarTitleText:n,orientation:"horizontal"}),i&&ze(xt,{className:"k-calendar-weekdays",tableRole:"table",children:[ze("colgroup",{children:[P("col",{}),P("col",{}),P("col",{}),P("col",{}),P("col",{}),P("col",{}),P("col",{})]}),P(q,{cellsText:c,showWeek:p})]}),ze("div",{className:"k-content k-scrollable",role:"none",children:[P(xt,{tableRole:"grid",ariaLabelledBy:f,children:t.children}),P("div",{className:"k-scrollable-placeholder",style:{height:"1000px"}})]})]})};pe.className=Zt;pe.defaultOptions=Ce;pe.moduleName=S;pe.folderName=M;import{jsx as Pe,jsxs as vo}from"react/jsx-runtime";var jt="k-calendar-infinite",ko={size:[r.undefined,r.small,r.medium,r.large]},go=["Aug","Sep","Oct","Nov","Dec","2021","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","2022","Feb","Mar","Apr","May","Jun","Jul"],Eo={2021:"marker",2022:"marker"},Ao=(t,a)=>t.map((o,n)=>Pe("li",{children:Pe("span",{className:a[o]==="marker"?"k-calendar-navigation-marker":void 0,children:o})},n)),Me={showNavigation:!0,calendarView:"month",navigationItems:go,navigationMarkerConfig:Eo},k=t=>{let{size:a,showNavigation:o=Me.showNavigation,calendarView:n=Me.calendarView,navigationItems:i=Me.navigationItems,navigationMarkerConfig:s=Me.navigationMarkerConfig,calendarTitleText:p,showWeekdays:c,showWeekNumbers:f,showNavigationButtons:x,calendarWeekdays:y,...A}=t,I=ie("calendar-infinite-title");return vo("div",{...A,className:l(t.className,"k-calendar",jt,v("k-calendar",{size:a})),children:[o&&Pe(Se,{children:Ao(i,s)}),Pe(pe,{calendarView:n,headerText:p,showWeekdays:c,showWeekNumbers:f,showNavigationButtons:x,orientation:"vertical",weekdayCellsText:y,gridLabelledBy:I,children:t.children})]})};k.options=ko;k.className=jt;k.defaultOptions=Me;k.moduleName=S;k.folderName=M;import{jsx as So}from"react/jsx-runtime";var ea="k-calendar-tr",d=t=>{let{...a}=t;return So("tr",{...a,className:l(t.className,ea),role:"row",children:t.children})};d.className=ea;d.moduleName=S;d.folderName=M;import{jsx as Mo}from"react/jsx-runtime";var ta="k-calendar-caption",R=t=>{let{text:a,scope:o,colSpan:n,rowSpan:i,...s}=t;return Mo("th",{...s,scope:o,colSpan:n,rowSpan:i,className:l(t.className,ta),children:a})};R.className=ta;R.moduleName=S;R.folderName=M;import{jsx as _,jsxs as Fe}from"react/jsx-runtime";var aa=({showOtherCentury:t,...a})=>_(w,{calendarView:"century",calendarTitleText:"2000 - 2099",children:Fe(V,{children:[Fe(d,{children:[_(e,{text:"1990 - 1999"}),_(e,{text:"2000 - 2009"}),_(e,{text:"2010 - 2019",today:!0}),_(e,{text:"2020 - 2029"})]}),Fe(d,{children:[_(e,{text:"2030 - 2039"}),_(e,{text:"2040 - 2049"}),_(e,{text:"2050 - 2059"}),_(e,{text:"2060 - 2069"})]}),Fe(d,{children:[_(e,{text:"2070 - 2079"}),_(e,{text:"2080 - 2089"}),_(e,{text:"2090 - 2099"}),_(e,{text:"2100 - 2109",empty:!t})]})]}),...a});import{jsx as D,jsxs as Ve}from"react/jsx-runtime";var oa=({showOtherDecade:t,...a})=>D(w,{calendarView:"decade",calendarTitleText:"2020 - 2029",children:Ve(V,{children:[Ve(d,{children:[D(e,{text:"2019",empty:!t}),D(e,{text:"2020"}),D(e,{text:"2021",today:!0}),D(e,{text:"2022"})]}),Ve(d,{children:[D(e,{text:"2023"}),D(e,{text:"2024"}),D(e,{text:"2025"}),D(e,{text:"2026"})]}),Ve(d,{children:[D(e,{text:"2027"}),D(e,{text:"2028"}),D(e,{text:"2029"}),D(e,{text:"2030",empty:!t})]})]}),...a});import{jsx as C,jsxs as ae}from"react/jsx-runtime";var Ue=({showCaptions:t,showOtherMonth:a,...o})=>C(w,{calendarView:"month",children:ae(V,{calendarCaption:t&&"October 2021",showTableHead:!0,children:[ae(d,{children:[C(e,{text:"26",showOtherMonth:a,empty:!a,weekend:a}),C(e,{text:"27",showOtherMonth:a,empty:!a}),C(e,{text:"28",showOtherMonth:a,empty:!a}),C(e,{text:"29",showOtherMonth:a,empty:!a}),C(e,{text:"30",showOtherMonth:a,empty:!a}),C(e,{text:"1"}),C(e,{text:"2",weekend:!0})]}),ae(d,{children:[C(e,{text:"3",weekend:!0}),C(e,{text:"4"}),C(e,{text:"5"}),C(e,{text:"6"}),C(e,{text:"7"}),C(e,{text:"8"}),C(e,{text:"9",weekend:!0})]}),ae(d,{children:[C(e,{text:"10",weekend:!0}),C(e,{text:"11"}),C(e,{text:"12",today:!0}),C(e,{text:"13"}),C(e,{text:"14"}),C(e,{text:"15"}),C(e,{text:"16",weekend:!0})]}),ae(d,{children:[C(e,{text:"17",weekend:!0}),C(e,{text:"18"}),C(e,{text:"19"}),C(e,{text:"20"}),C(e,{text:"21"}),C(e,{text:"22"}),C(e,{text:"23",weekend:!0})]}),ae(d,{children:[C(e,{text:"24",weekend:!0}),C(e,{text:"25"}),C(e,{text:"26"}),C(e,{text:"27"}),C(e,{text:"28"}),C(e,{text:"29"}),C(e,{text:"30",weekend:!0})]}),ae(d,{children:[C(e,{text:"31",weekend:!0}),C(e,{text:"1",showOtherMonth:a,empty:!a}),C(e,{text:"2",showOtherMonth:a,empty:!a}),C(e,{text:"3",showOtherMonth:a,empty:!a}),C(e,{text:"4",showOtherMonth:a,empty:!a}),C(e,{text:"5",showOtherMonth:a,empty:!a}),C(e,{text:"6",showOtherMonth:a,empty:!a,weekend:a})]})]}),...o});import{jsx as Xr,jsxs as qr}from"react/jsx-runtime";import{jsx as B,jsxs as We}from"react/jsx-runtime";var na=t=>B(w,{calendarView:"year",calendarTitleText:"2019",children:We(V,{children:[We(d,{children:[B(e,{text:"Jan"}),B(e,{text:"Feb"}),B(e,{text:"Mar"}),B(e,{text:"Apr"})]}),We(d,{children:[B(e,{text:"May"}),B(e,{text:"Jun"}),B(e,{text:"Jul"}),B(e,{text:"Au"})]}),We(d,{children:[B(e,{text:"Sep"}),B(e,{text:"Oct",today:!0}),B(e,{text:"Nov"}),B(e,{text:"Dec"})]})]}),...t});import{Fragment as Ro,jsx as m,jsxs as J}from"react/jsx-runtime";var la=({firstCaption:t="January 2021",secondCaption:a="February 2021",...o})=>m(k,{calendarTitleText:"January 2021",children:J(Ro,{children:[J("colgroup",{children:[m("col",{}),m("col",{}),m("col",{}),m("col",{}),m("col",{}),m("col",{}),m("col",{})]}),J(E,{children:[m(d,{"aria-hidden":"true",children:m(R,{scope:"col",colSpan:7,text:t})}),J(d,{children:[m(e,{empty:!0}),m(e,{empty:!0}),m(e,{empty:!0}),m(e,{empty:!0}),m(e,{empty:!0}),m(e,{text:"1"}),m(e,{text:"2",weekend:!0})]}),J(d,{children:[m(e,{text:"3",weekend:!0}),m(e,{text:"4"}),m(e,{text:"5"}),m(e,{text:"6"}),m(e,{text:"7"}),m(e,{text:"8"}),m(e,{text:"9",weekend:!0})]}),J(d,{children:[m(e,{text:"10",weekend:!0}),m(e,{text:"11"}),m(e,{text:"12"}),m(e,{text:"13"}),m(e,{text:"14"}),m(e,{text:"15"}),m(e,{text:"16",weekend:!0})]}),J(d,{children:[m(e,{text:"17",weekend:!0}),m(e,{text:"18"}),m(e,{text:"19"}),m(e,{text:"20"}),m(e,{text:"21"}),m(e,{text:"22"}),m(e,{text:"23",weekend:!0})]}),J(d,{children:[m(e,{text:"24",weekend:!0}),m(e,{text:"25"}),m(e,{text:"26"}),m(e,{text:"27"}),m(e,{text:"28"}),m(e,{text:"29"}),m(e,{text:"30",weekend:!0})]}),J(d,{children:[m(e,{text:"31",weekend:!0}),m(e,{empty:!0}),m(e,{empty:!0}),m(e,{empty:!0}),m(e,{empty:!0}),m(e,{empty:!0}),m(e,{empty:!0})]})]}),m(E,{children:m(d,{"aria-hidden":"true",children:m(R,{scope:"col",colSpan:7,text:a})})})]}),...o});import{Fragment as Lo,jsx as T,jsxs as U}from"react/jsx-runtime";var ra=({firstCaption:t="2021",secondCaption:a="2022",...o})=>T(k,{calendarView:"year",showWeekdays:!1,calendarTitleText:"2021",navigationItems:["2016","2017","2018","2019","2020","2021","2022","2023","2024","2025","2026","2027","2028","2029","2030","2031","2032","2033","2034","2035","2036","2037","2038","2039","2040","2041","2042"],navigationMarkerConfig:{2021:"marker",2030:"marker",2040:"marker"},children:U(Lo,{children:[U("colgroup",{children:[T("col",{}),T("col",{}),T("col",{}),T("col",{})]}),U(E,{children:[T(d,{"aria-hidden":"true",children:T(R,{scope:"col",colSpan:4,text:t})}),U(d,{children:[T(e,{text:"Jan",today:!0}),T(e,{text:"Feb"}),T(e,{text:"Mar"}),T(e,{text:"Apr"})]}),U(d,{children:[T(e,{text:"May"}),T(e,{text:"Jun"}),T(e,{text:"Jul"}),T(e,{text:"Aug"})]}),U(d,{children:[T(e,{text:"Sep"}),T(e,{text:"Oct"}),T(e,{text:"Nov"}),T(e,{text:"Dec"})]})]}),U(E,{children:[T(d,{"aria-hidden":"true",children:T(R,{scope:"col",colSpan:4,text:a})}),U(d,{children:[T(e,{text:"Jan"}),T(e,{text:"Feb"}),T(e,{text:"Mar"}),T(e,{text:"Apr"})]}),U(d,{children:[T(e,{text:"May"}),T(e,{text:"Jun"}),T(e,{text:"Jul"}),T(e,{text:"Aug"})]}),U(d,{children:[T(e,{text:"Sep"}),T(e,{text:"Oct"}),T(e,{text:"Nov"}),T(e,{text:"Dec"})]})]})]}),...o});import{Fragment as Oo,jsx as b,jsxs as W}from"react/jsx-runtime";var ia=({firstCaption:t="2020 - 2029",secondCaption:a="2030 - 2039",...o})=>b(k,{calendarView:"decade",showWeekdays:!1,calendarTitleText:"2020 - 2029",navigationItems:["1970","1980","1990","2000","2010","2020","2030","2040","2050","2060","2070","2080","2090"],navigationMarkerConfig:{2020:"marker"},children:W(Oo,{children:[W("colgroup",{children:[b("col",{}),b("col",{}),b("col",{}),b("col",{})]}),W(E,{children:[b(d,{"aria-hidden":"true",children:b(R,{scope:"col",colSpan:4,text:t})}),W(d,{children:[b(e,{text:"2020",today:!0}),b(e,{text:"2021"}),b(e,{text:"2022"}),b(e,{text:"2023"})]}),W(d,{children:[b(e,{text:"2024"}),b(e,{text:"2025"}),b(e,{text:"2026"}),b(e,{text:"2027"})]}),W(d,{children:[b(e,{text:"2028"}),b(e,{text:"2029"}),b(e,{empty:!0}),b(e,{empty:!0})]})]}),W(E,{children:[b(d,{"aria-hidden":"true",children:b(R,{scope:"col",colSpan:4,text:a})}),W(d,{children:[b(e,{text:"2030"}),b(e,{text:"2031"}),b(e,{text:"2032"}),b(e,{text:"2033"})]}),W(d,{children:[b(e,{text:"2034"}),b(e,{text:"2035"}),b(e,{text:"2036"}),b(e,{text:"2037"})]}),W(d,{children:[b(e,{text:"2038"}),b(e,{text:"2039"}),b(e,{empty:!0}),b(e,{empty:!0})]})]})]}),...o});import{Fragment as Io,jsx as g,jsxs as ue}from"react/jsx-runtime";var sa=({firstCaption:t="2000 - 2099",...a})=>g(k,{calendarView:"century",showWeekdays:!1,calendarTitleText:"2000 - 2099",navigationItems:["1900","2000"],navigationMarkerConfig:{2e3:"marker"},children:ue(Io,{children:[ue("colgroup",{children:[g("col",{}),g("col",{}),g("col",{}),g("col",{})]}),ue(E,{children:[g(d,{"aria-hidden":"true",children:g(R,{scope:"col",colSpan:4,text:t})}),ue(d,{children:[g(e,{text:"1900 - 1999"}),g(e,{text:"2000 - 2009"}),g(e,{text:"2010 - 2019"}),g(e,{text:"2020 - 2029"})]}),ue(d,{children:[g(e,{text:"2030 - 2039"}),g(e,{text:"2040 - 2049"}),g(e,{text:"2050 - 2059"}),g(e,{text:"2060 - 2069"})]}),ue(d,{children:[g(e,{text:"2070 - 2079"}),g(e,{text:"2080 - 2089"}),g(e,{text:"2090 - 2099"}),g(e,{empty:!0})]})]})]}),...a});import{Fragment as Ni,jsx as xi,jsxs as fi}from"react/jsx-runtime";import{jsx as wi,jsxs as hi}from"react/jsx-runtime";import{Fragment as Si,jsx as Ai,jsxs as vi}from"react/jsx-runtime";import{jsx as $e}from"react/jsx-runtime";var _o=w.options,Do=w.states,da={...w.defaultOptions,variant:"month"},Bo=[{name:"month",title:"Month View"},{name:"year",title:"Year View"},{name:"decade",title:"Decade View"},{name:"century",title:"Century View"}],Ho=[{name:"footer",title:"Calendar Footer"},{name:"other",title:"Show other cells"}],xe=t=>{let{variant:a,modifiers:o,...n}={...da,...t},i={showCalendarFooter:!1};Object.keys(o||{}).forEach(x=>{switch(x){case"other":i.showOtherMonth=!!o?.[x],i.showOtherCentury=!!o?.[x],i.showOtherDecade=!!o?.[x];break;case"footer":i.showCalendarFooter=!!o?.[x];break;default:return}});let{showOtherMonth:s,showOtherDecade:p,showOtherCentury:c,showCalendarFooter:f}=i;switch(a){case"century":return $e(aa,{size:n.size,showOtherCentury:c,showCalendarFooter:f});case"decade":return $e(oa,{size:n.size,showOtherDecade:p,showCalendarFooter:f});case"year":return $e(na,{calendarTitleText:"2021",size:n.size,showCalendarFooter:f});default:return $e(Ue,{size:n.size,showOtherMonth:s,showCalendarFooter:f})}};xe.options=_o;xe.states=Do;xe.variants=Bo;xe.defaultOptions=da;xe.modifiers=Ho;xe.className=w.className;import{jsx as Je}from"react/jsx-runtime";var Ko=k.options,zo=k.states,ma={...k.defaultOptions,variant:"month"},Po=[{name:"month",title:"Month View"},{name:"year",title:"Year View"},{name:"decade",title:"Decade View"},{name:"century",title:"Century View"}],Fo=[{name:"footer",title:"Calendar Footer"},{name:"other",title:"Show other cells"}],fe=t=>{let{variant:a,modifiers:o,...n}={...ma,...t},i={showCalendarFooter:!1};Object.keys(o||{}).forEach(x=>{switch(x){case"other":i.showOtherMonth=!!o?.[x],i.showOtherCentury=!!o?.[x],i.showOtherDecade=!!o?.[x];break;case"footer":i.showCalendarFooter=!!o?.[x];break;default:return}});let{showOtherMonth:s,showOtherDecade:p,showOtherCentury:c,showCalendarFooter:f}=i;switch(a){case"century":return Je(sa,{size:n.size,showOtherCentury:c,showCalendarFooter:f});case"decade":return Je(ia,{size:n.size,showOtherDecade:p,showCalendarFooter:f});case"year":return Je(ra,{size:n.size,showCalendarFooter:f});default:return Je(la,{size:n.size,showOtherMonth:s,showCalendarFooter:f})}};fe.options=Ko;fe.states=zo;fe.variants=Po;fe.defaultOptions=ma;fe.modifiers=Fo;fe.className=k.className;var ft="segmented-control",ca=ft,Ca="segmented-control-button",pa="segmented-control";import{jsx as Wo,jsxs as $o}from"react/jsx-runtime";var Ge="k-segmented-control",Vo=[],Uo={size:[r.undefined,r.small,r.medium,r.large]},oe=t=>{let{size:a,stretched:o,children:n,thumbStyles:i,...s}=t;return $o("div",{...s,className:l(t.className,Ge,v(Ge,{size:a}),{[`${Ge}-stretched`]:o}),role:"group",children:[Wo("div",{className:"k-segmented-control-thumb","aria-hidden":"true",style:i}),n]})};oe.states=Vo;oe.options=Uo;oe.className=Ge;oe.moduleName=ft;oe.folderName=ca;import{jsx as ua,jsxs as Xo}from"react/jsx-runtime";var Nt="k-segmented-control-button",Jo=[h.selected,h.hover,h.focus,h.disabled],Go={},Yo={},G=t=>{let{hover:a,focus:o,selected:n,disabled:i,icon:s,text:p,iconClassName:c,...f}=t;return Xo("button",{...f,className:l(t.className,Nt,X(Nt,{hover:a,focus:o,disabled:i,selected:n})),"aria-pressed":n?"true":"false","aria-disabled":i?"true":void 0,children:[s&&ua(z,{className:l(c,"k-segmented-control-button-icon"),icon:s}),(p||t.children)&&ua("span",{className:"k-segmented-control-button-text",children:p||t.children})]})};G.states=Jo;G.options=Go;G.className=Nt;G.defaultOptions=Yo;G.moduleName=Ca;G.folderName=pa;import{Fragment as Bs,jsx as Ds,jsxs as Hs}from"react/jsx-runtime";import{Fragment as Us,jsx as Vs,jsxs as Ws}from"react/jsx-runtime";import{Fragment as qs,jsx as Xs,jsxs as Qs}from"react/jsx-runtime";import{Fragment as od,jsx as ad,jsxs as nd}from"react/jsx-runtime";import{Fragment as md,jsx as dd,jsxs as cd}from"react/jsx-runtime";var xa="time-selector",fa="timeselector";import{Fragment as Na,jsx as qe,jsxs as Ta}from"react/jsx-runtime";var Tt="k-timeselector",qo=[],Qo={size:[r.undefined,r.small,r.medium,r.large]},Zo={},Q=t=>{let{size:a,header:o,fastSelection:n,columns:i,focusedColumn:s,...p}=t,c=i.map(function(f,x){let y=!1,A=!0;return f===s&&(y=!0),(x===0||f==="tt")&&(A=!1),qe(bt,{type:f,focus:y,separator:A},x)});return Ta("div",{...p,className:l(t.className,Tt,v(Tt,{size:a})),role:"group","aria-label":"Time selector",children:[qe(Na,{children:o}),qe(Na,{children:n}),Ta("div",{className:"k-time-list-container",children:[qe("span",{className:"k-time-highlight"}),c]})]})};Q.states=qo;Q.options=Qo;Q.className=Tt;Q.defaultOptions=Zo;Q.moduleName=xa;Q.folderName=fa;import{Fragment as en,jsx as ne,jsxs as yt}from"react/jsx-runtime";var jo=[h.focus],bt=t=>{let{type:a,focus:o,separator:n,...i}=t,s,p=["00","01","02","03","04","05","06","07","08","09"];switch(a){case"dd":s="Day";break;case"HH":s="Hour";break;case"mm":s="Minute";break;case"ss":s="Second";break;case"SSS":s="Millisecond",p=["000","001","002","003","004","005","006","007","008","009"];break;case"tt":s="AM/PM",p=["AM","PM"];break;default:s="Column Name";break}let c=p.map((f,x)=>ne("li",{className:"k-item",role:"option","aria-selected":"false",children:ne("span",{children:f})},x));return yt(en,{children:[n&&ne("div",{className:"k-time-separator",children:":"}),yt("div",{...i,className:l(t.className,"k-time-list-wrapper",X("k-time-list-wrapper",{focus:o})),children:[ne("span",{className:"k-title",children:s}),ne("div",{className:"k-time-list",role:"listbox","aria-label":s,children:yt("div",{className:"k-content k-scrollable k-time-container",children:[ne("ul",{className:"k-reset",style:{transform:"translateY(97px)"},role:"none",children:c}),ne("div",{className:"k-scrollable-placeholder"})]})})]})]})};bt.states=jo;import{jsx as an,jsxs as on}from"react/jsx-runtime";var tn="k-time-header",Re=t=>{let{title:a,...o}=t;return on("div",{...o,className:l(t.className,tn),children:[a!=null&&an("span",{className:"k-title",children:a}),t.children]})};import{jsx as Hd,jsxs as Kd}from"react/jsx-runtime";var wt="popup",ba=wt;import{jsx as ya}from"react/jsx-runtime";var wa="k-animation-container",nn=[],ln={},ht={positionMode:"absolute",shown:!0},Z=t=>{let{positionMode:a=ht.positionMode,shown:o=ht.shown,animationStyle:n,offset:i,...s}=t;return ya("div",{...s,style:{...i,...t.style},className:l(t.className,wa,{"k-animation-container-shown":o,"k-animation-container-fixed":a==="fixed"}),children:ya("div",{className:"k-child-animation-container",style:n,children:t.children})})};Z.states=nn;Z.options=ln;Z.className=wa;Z.defaultOptions=ht;Z.moduleName=wt;Z.folderName=ba;var kt="popup",ha=kt;import{jsx as ka}from"react/jsx-runtime";var ga="k-popup",rn=[],sn={},Ea={positionMode:"absolute"},Y=t=>{let{offset:a,positionMode:o=Ea.positionMode,animationStyle:n,containerClassName:i,containerRole:s,containerAriaLabel:p,...c}=t;return ka(Z,{positionMode:o,offset:a,animationStyle:n,className:i,role:s,"aria-label":p,children:ka("div",{...c,className:l(t.className,ga),children:t.children})})};Y.states=rn;Y.options=sn;Y.className=ga;Y.defaultOptions=Ea;Y.moduleName=kt;Y.folderName=ha;import{Fragment as dm,jsx as im,jsxs as sm}from"react/jsx-runtime";import{Fragment as bm,jsx as Nm,jsxs as Tm}from"react/jsx-runtime";import{Fragment as Mm,jsx as vm,jsxs as Sm}from"react/jsx-runtime";var va="date-time-picker",Sa="datetimepicker";import{Fragment as Ma,jsx as O,jsxs as Le}from"react/jsx-runtime";var gt="k-datetime-wrap",dn=[],mn={size:[r.undefined,r.small,r.medium,r.large]},Et={tab:"date",actionButtons:!0},le=t=>{let{size:a,tab:o=Et.tab,actionButtons:n=Et.actionButtons,dir:i,...s}=t;return Le("div",{...s,className:l(t.className,gt,{"k-date-tab":o==="date","k-time-tab":o==="time"},v(gt,{size:a})),role:"group","aria-label":"Date and time selector",children:[O("div",{className:"k-datetime-buttongroup",children:Le(oe,{stretched:!0,thumbStyles:o==="date"?{width:"50%"}:{width:"50%",left:"50%"},size:a,children:[O(G,{selected:o==="date",children:"Date"}),O(G,{selected:o==="time",children:"Time"})]})}),O("div",{className:"k-datetime-selector",children:o==="time"?Le(Ma,{children:[O("div",{className:"k-datetime-calendar-wrap"}),O("div",{className:"k-datetime-time-wrap",children:O(Q,{size:a,columns:["HH","mm","ss","tt"],focusedColumn:"mm",header:O(Re,{title:"10:00:00 AM",children:O(N,{size:a,fillMode:"flat",className:"k-time-now",children:"Now"})})})})]}):Le(Ma,{children:[O("div",{className:"k-datetime-calendar-wrap",children:O(Ue,{size:a,showOtherMonth:!0,dir:i})}),O("div",{className:"k-datetime-time-wrap"})]})}),n&&Le(H,{className:"k-datetime-footer",alignment:"stretched",children:[O(N,{size:a,themeColor:"primary",className:"k-time-accept",children:"Set"}),O(N,{size:a,className:"k-time-cancel",children:"Cancel"})]})]})};le.states=dn;le.options=mn;le.className=gt;le.defaultOptions=Et;le.moduleName=va;le.folderName=Sa;var Gm=le;export{le as DateTimeSelector,Gm as default};
|
|
1
|
+
var l=(...t)=>t.filter(a=>a!==!0&&!!a).map(a=>Array.isArray(a)?l(...a):typeof a=="object"?Object.keys(a).map((o,n)=>a[n]||a[o]&&o||null).filter(o=>o!==null).join(" "):a).filter(a=>!!a).join(" ");var v=(t,a)=>l({[`${t}-xs`]:a.size==="xsmall",[`${t}-sm`]:a.size==="small",[`${t}-md`]:a.size==="medium",[`${t}-lg`]:a.size==="large",[`${t}-xl`]:a.size==="xlarge",[`${t}-xxl`]:a.size==="xxlarge",[`${t}-xxxl`]:a.size==="xxxlarge"},{[`${t}-${a.fillMode}`]:a.fillMode},{[`${t}-${a.themeColor}`]:a.themeColor},{"k-rounded-sm":a.rounded==="small","k-rounded-md":a.rounded==="medium","k-rounded-lg":a.rounded==="large","k-rounded-full":a.rounded==="full","k-rounded-none":a.rounded==="none"}),X=(t,a)=>{let{valid:o,invalid:n,hover:i,focus:s,checked:p,active:c,selected:f,disabled:x,indeterminate:y,loading:A,empty:I,readonly:re,highlighted:Ne,...$}=a;return l({"k-valid":o,"k-invalid":n,"k-hover":i,"k-focus":s,"k-checked":p,"k-active":c,"k-selected":f,"k-disabled":x,"k-indeterminate":y&&!p,"k-loading":A,"k-empty":I,"k-readonly":re,"k-highlighted":Ne},Object.keys($).reduce((L,K)=>(K.startsWith("k-")?L[K]=$[K]:L[`k-${K}`]=$[K],L),{}))};function At(t,a){if(!a)return{};let o=Array.isArray(a)?a:[a];return Object.fromEntries(o.map(n=>[`k-${n}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},j={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},ee={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},F={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},u={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},h={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var Ze={};function ie(t){return Ze[t]=(Ze[t]||0)+1,`k-${t}-${Ze[t]}`}var je="action-buttons",vt=je;import{jsx as Ia}from"react/jsx-runtime";var _e="k-actions",La=[],Oa={},et={alignment:"start",orientation:"horizontal"},H=t=>{let{alignment:a=et.alignment,orientation:o=et.orientation,...n}=t;return Ia("div",{...n,className:l(_e,{[`${_e}-${a}`]:a,[`${_e}-${o}`]:o},t.className),children:t.children})};H.states=La;H.options=Oa;H.className=_e;H.defaultOptions=et;H.moduleName=je;H.folderName=vt;import{Fragment as Ha,jsx as St}from"react/jsx-runtime";var tt="k-font-icon",_a=[],Da={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info]},Ba={},ye=t=>{let{size:a,themeColor:o,icon:n,rotate:i,flip:s,...p}=t;return n?St("span",{...p,className:l(t.className,tt,v(tt,{size:a}),{[`k-i-${n}`]:n,[`k-color-${o}`]:o,[`k-rotate-${i}`]:i,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true"}):St(Ha,{})};ye.states=_a;ye.options=Da;ye.className=tt;ye.defaultOptions=Ba;var Mt=ye;import{Fragment as Pa,jsx as De}from"react/jsx-runtime";var at="k-svg-icon",Ka=[],za={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[F.outline,F.solid,F.duotone]},ot={viewBox:"0 0 24 24",variant:F.outline},we=t=>{let{size:a,themeColor:o,rotate:n,flip:i,viewBox:s=ot.viewBox,variant:p=ot.variant,icon:c,...f}=t;if(!c)return De(Pa,{});if(c==="none")return De("span",{...f,className:l(t.className,at,v("k-icon",{size:a}),"k-none"),"aria-hidden":"true"});let x=typeof c=="object"&&c.name&&c.name,y=typeof c=="object"?p&&c.variants?.[p]||c.variants?.outline||c.content:void 0;return De("span",{...f,className:l(t.className,at,v("k-icon",{size:a}),{[`k-svg-i-${x}`]:x,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:De("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:s,dangerouslySetInnerHTML:y!==void 0?{__html:y}:void 0,children:c?void 0:t.children})})};we.states=Ka;we.options=za;we.className=at;we.defaultOptions=ot;var nt=we;import*as lt from"@progress/kendo-svg-icons";var Rt="icon",Lt="icons";import{useContext as Va}from"react";import{createContext as Fa}from"react";var Ot=Fa({iconsType:"svg"});import{Fragment as It,jsx as he}from"react/jsx-runtime";var Be="k-icon",Ua=t=>t.replace(/([-_][a-z0-9])/gi,a=>a.toUpperCase().replace("-","").replace("_","")),Wa=[],$a={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info],variant:[F.outline,F.solid,F.duotone]},He={viewBox:"0 0 24 24",type:"svg",variant:F.outline},z=t=>{let{iconsType:a}=Va(Ot),{size:o,themeColor:n,icon:i,type:s=a||He.type,rotate:p,flip:c,viewBox:f=He.viewBox,variant:x=He.variant,...y}=t;if(!i)return he(It,{});if((a||s)==="svg"){if(i==="none")return he(nt,{...y,className:l(t.className,Be),icon:i,size:o,variant:x});let I=lt[i]?i:Ua(`${i}-icon`);return lt[I]?he(nt,{...y,className:l(t.className,Be),icon:lt[I],size:o,themeColor:n,rotate:p,flip:c,viewBox:f,variant:x}):he(It,{})}return he(Mt,{...y,className:l(t.className,Be),icon:i,size:o,themeColor:n,rotate:p,flip:c})};z.states=Wa;z.options=$a;z.defaultOptions=He;z.className=Be;z.moduleName=Rt;z.folderName=Lt;var rt="button",_t=rt;import{Fragment as Dt,jsx as se,jsxs as Bt}from"react/jsx-runtime";var ke="k-button",Ja=["icon-button"],Ga=[h.hover,h.focus,h.active,h.selected,h.disabled,h.generating],Ya={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[j.undefined,j.none,j.small,j.medium,j.large,j.full],fillMode:[ee.undefined,ee.solid,ee.flat,ee.outline,ee.clear,ee.link],themeColor:[u.undefined,u.base,u.primary,u.secondary,u.tertiary,u.success,u.warning,u.error,u.info,u.inverse]},it={showArrow:!1,arrowIconName:"chevron-down"},N=t=>{let{as:a="button",size:o,rounded:n,fillMode:i,themeColor:s,showArrow:p=it.showArrow,arrowIconName:c=it.arrowIconName,variant:f,hover:x,focus:y,active:A,selected:I,disabled:re,togglable:Ne,ariaDisabled:$,icon:L,iconSize:K,text:Te,iconClassName:Oe,className:be,...Qe}=t,Ie=L!=null,Ra=t.children!==void 0;return Bt(a,{className:l(be,ke,At(ke,f),v(ke,{size:o,rounded:n,fillMode:i,themeColor:s}),X(ke,{hover:x,focus:y,active:A,disabled:re||$,selected:I}),{"k-icon-button":!Te&&!Ra&&Ie}),"aria-pressed":Ne?I?"true":"false":void 0,...Qe,"aria-disabled":$?"true":void 0,disabled:re||void 0,children:[typeof L=="string"&&L&&se(z,{className:l(Oe,"k-button-icon"),icon:L,size:K}),L&&typeof L!="string"&&se(Dt,{children:L}),Te?Bt(Dt,{children:[Te&&se("span",{className:"k-button-text",children:Te}),t.children]}):t.children&&se("span",{className:"k-button-text",children:t.children}),p&&se("span",{className:"k-menu-button-arrow k-button-arrow",children:se(z,{icon:c})})]})};N.states=Ga;N.options=Ya;N.variants=Ja;N.className=ke;N.defaultOptions=it;N.moduleName=rt;N.folderName=_t;import{jsx as Xa}from"react/jsx-runtime";var Ht=t=>Xa(N,{icon:"folder",...t,"aria-label":t["aria-label"]||"Folder",children:void 0});import{jsx as qa}from"react/jsx-runtime";var Kt=t=>qa(N,{icon:"folder",children:"Button",...t});import{jsx as Qa}from"react/jsx-runtime";var zt=t=>Qa(N,{children:"Button",...t});import{jsx as st}from"react/jsx-runtime";var Za=N.options,ja=N.states,eo={...N.defaultOptions,variant:"text"},to=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ao=[],de=t=>{let{variant:a,...o}=t;switch(a){case"icon-only":return st(Ht,{...o,icon:"star"});case"icon-and-text":return st(Kt,{...o,icon:"star",children:"Button"});default:return st(zt,{...o,children:"Button"})}};de.options=Za;de.states=ja;de.variants=to;de.defaultOptions=eo;de.modifiers=ao;de.className=N.className;import{jsx as oo}from"react/jsx-runtime";var Pt="k-calendar-view",dt={orientation:"horizontal",calendarView:"month"},Ke=t=>{let{orientation:a=dt.orientation,calendarView:o=dt.calendarView,gridRole:n,ariaLabelledBy:i,...s}=t;return oo("div",{...s,className:l(t.className,Pt,`k-calendar-${o}view`,"k-align-items-start","k-justify-content-center",{"k-hstack":a==="horizontal","k-vstack":a==="vertical"}),...n?{role:"grid","aria-labelledby":i,tabIndex:0}:{},children:t.children})};Ke.className=Pt;Ke.defaultOptions=dt;import{jsx as ge,jsxs as Ft}from"react/jsx-runtime";var Vt="k-calendar-header",no={size:[r.undefined,r.small,r.medium,r.large]},Ee={calendarTitleText:"October 2021",showToday:!0,showNavigationButtons:!0,orientation:"horizontal"},te=t=>{let{calendarTitleText:a=Ee.calendarTitleText,showToday:o=Ee.showToday,showNavigationButtons:n=Ee.showNavigationButtons,orientation:i=Ee.orientation,size:s,calendarView:p,dir:c,titleId:f,...x}=t,y=c==="rtl"?"chevron-right":"chevron-left",A=c==="rtl"?"chevron-left":"chevron-right",I=f||ie("calendar-title");return Ft("div",{...x,className:l(t.className,Vt,{"k-vstack":i==="vertical"}),children:[ge(N,{disabled:p==="century",className:"k-calendar-title",text:a,size:s,fillMode:"flat",themeColor:"primary",id:I,tabIndex:-1,"aria-label":`Navigate to parent view: ${a}`,...p==="century"?{"aria-disabled":"true"}:{}}),ge("span",{className:"k-spacer"}),Ft("span",{className:"k-calendar-nav",children:[n&&ge(N,{className:"k-calendar-nav-prev",icon:y,size:s,fillMode:"flat",tabIndex:-1,"aria-label":"Navigate to previous view"}),o&&ge(N,{size:s,fillMode:"flat",className:"k-calendar-nav-today",tabIndex:-1,children:"Today"}),n&&ge(N,{className:"k-calendar-nav-next",icon:A,size:s,fillMode:"flat",tabIndex:-1,"aria-label":"Navigate to next view"})]})]})};te.options=no;te.className=Vt;te.defaultOptions=Ee;import{jsx as Ut}from"react/jsx-runtime";var Wt="k-calendar-footer",lo={size:[r.undefined,r.small,r.medium,r.large]},$t={calendarFooterText:"Tuesday, October 12, 2021"},Ae=t=>{let{size:a,calendarFooterText:o=$t.calendarFooterText,...n}=t;return Ut("div",{...n,className:l(t.className,Wt),children:Ut(N,{size:a,fillMode:"flat",themeColor:"primary",className:"k-calendar-nav-today",children:o})})};Ae.options=lo;Ae.className=Wt;Ae.defaultOptions=$t;var S="calendar",M=S;import{jsx as mt,jsxs as so}from"react/jsx-runtime";var ct="k-calendar",ro=[],io={size:[r.undefined,r.small,r.medium,r.large]},ve={showCalendarHeader:!0,orientation:"horizontal",calendarView:"month",calendarTitleText:"October 2021"},w=t=>{let{size:a,orientation:o=ve.orientation,calendarView:n=ve.calendarView,calendarTitleText:i=ve.calendarTitleText,showCalendarHeader:s=ve.showCalendarHeader,showWeek:p,showCalendarFooter:c,calendarFooterText:f,dir:x,...y}=t,A=ie("calendar-title");return so("div",{...y,dir:x,className:l(t.className,ct,v(ct,{size:a}),{"k-week-number":p}),children:[s&&mt(te,{calendarView:n,showToday:!c,calendarTitleText:i,orientation:o,size:a,dir:x,titleId:A}),mt(Ke,{calendarView:n,orientation:o,gridRole:!0,ariaLabelledBy:A,children:t.children}),c&&mt(Ae,{calendarFooterText:f,size:a})]})};w.states=ro;w.options=io;w.className=ct;w.defaultOptions=ve;w.moduleName=S;w.folderName=M;import{jsx as po}from"react/jsx-runtime";var Jt="k-calendar-container",mo=[],co={},Co={},me=t=>{let{...a}=t;return po("div",{...a,className:l(t.className,Jt),children:t.children})};me.states=mo;me.options=co;me.className=Jt;me.defaultOptions=Co;me.moduleName=S;me.folderName=M;import{Fragment as xo,jsx as ce,jsxs as fo}from"react/jsx-runtime";var uo=[h.hover,h.focus,h.active,h.selected,h.disabled],e=t=>{let{text:a,headerCell:o,today:n,weekend:i,showOtherMonth:s,weekCell:p,rangeStart:c,rangeMid:f,rangeEnd:x,dayIndicator:y,empty:A,hover:I,focus:re,active:Ne,selected:$,disabled:L,...K}=t,Oe=`k-calendar-${o?"th":"td"}`,be=[t.className,Oe,X(Oe,{hover:I,focus:re,active:Ne,selected:$,disabled:L}),{"k-today":n,"k-weekend":i,"k-other-month":s,"k-alt":p,"k-range-start":c,"k-range-mid":f,"k-range-end":x,"k-empty":A}],Qe={Su:"Sunday",Mo:"Monday",Tu:"Tuesday",We:"Wednesday",Th:"Thursday",Fr:"Friday",Sa:"Saturday",W:"Week number"};if(o){let Ie=a?Qe[a]||a:void 0;return ce("th",{...K,className:l(be),role:"columnheader",scope:"col","aria-label":Ie,children:p?ce("span",{className:"k-sr-only",children:Ie}):a})}return p?ce("td",{...K,className:l(be),children:a}):ce("td",{...K,className:l(be),role:"gridcell",...$?{"aria-selected":"true"}:{},...L?{"aria-disabled":"true"}:{},children:A&&!s?ce(xo,{children:"\xA0"}):fo("span",{className:"k-link",children:[a,y&&ce("span",{className:"k-day-indicator"})]})})};e.states=uo;import{jsx as Ct,jsxs as No}from"react/jsx-runtime";var Gt="k-calendar-thead",Yt={cellsText:["Su","Mo","Tu","We","Th","Fr","Sa"]},q=t=>{let{showWeek:a,cellsText:o=Yt.cellsText,...n}=t;return Ct("thead",{...n,className:l(t.className,Gt),role:"rowgroup",children:No("tr",{className:"k-calendar-tr",role:"row",children:[a&&Ct(e,{weekCell:!0,headerCell:!0,text:"W"}),o.map((i,s)=>Ct(e,{text:i,headerCell:!0},s))]})})};q.className=Gt;q.moduleName=null;q.folderName=null;q.defaultOptions=Yt;import{jsx as To}from"react/jsx-runtime";var Xt="k-calendar-tbody",E=t=>{let{...a}=t;return To("tbody",{...a,className:l(t.className,Xt),role:"rowgroup",children:t.children})};E.className=Xt;E.moduleName=S;E.folderName=M;import{jsx as pt,jsxs as yo}from"react/jsx-runtime";var bo="k-calendar-table",V=t=>{let{calendarCaption:a,showTableHead:o,showWeek:n,ariaLabelledBy:i,ariaActiveDescendant:s,gridRole:p,...c}=t;return yo("table",{...c,className:l(t.className,bo),...p?{role:"grid","aria-labelledby":i,"aria-activedescendant":s,tabIndex:0}:{role:"none"},children:[a&&pt("caption",{className:"k-calendar-caption",children:a}),o&&pt(q,{showWeek:n}),pt(E,{children:t.children})]})};import{jsx as ut,jsxs as qt}from"react/jsx-runtime";var Qt="k-calendar-navigation",Se=t=>qt("div",{...t,className:l(t.className,Qt),children:[ut("span",{className:"k-calendar-navigation-highlight"}),qt("div",{className:"k-content k-scrollable",children:[ut("ul",{className:"k-reset",children:t.children}),ut("div",{className:"k-scrollable-placeholder",style:{height:"1000px"}})]})]});Se.className=Qt;Se.moduleName=S;Se.folderName=M;import{jsx as ho}from"react/jsx-runtime";var wo="k-calendar-table",xt=t=>{let{tableRole:a="none",ariaLabelledBy:o,...n}=t;return ho("table",{...n,className:l(t.className,wo),role:a,...o?{"aria-labelledby":o}:{},...a==="grid"?{tabIndex:0}:{},children:t.children})};import{jsx as P,jsxs as ze}from"react/jsx-runtime";var Zt="k-calendar-view",Ce={orientation:"vertical",calendarView:"month",headerText:"April 2018",showWeekdays:!0,showNavigationButtons:!1},pe=t=>{let{orientation:a=Ce.orientation,calendarView:o=Ce.calendarView,headerText:n=Ce.headerText,showWeekdays:i=Ce.showWeekdays,showNavigationButtons:s=Ce.showNavigationButtons,showWeekNumbers:p,weekdayCellsText:c,gridLabelledBy:f,...x}=t;return ze("div",{...x,className:l(Zt,`k-calendar-${o}view`,t.className,{"k-hstack":a==="horizontal","k-vstack":a==="vertical"}),children:[P(te,{showNavigationButtons:s,calendarTitleText:n,orientation:"horizontal"}),i&&ze(xt,{className:"k-calendar-weekdays",tableRole:"table",children:[ze("colgroup",{children:[P("col",{}),P("col",{}),P("col",{}),P("col",{}),P("col",{}),P("col",{}),P("col",{})]}),P(q,{cellsText:c,showWeek:p})]}),ze("div",{className:"k-content k-scrollable",role:"none",children:[P(xt,{tableRole:"grid",ariaLabelledBy:f,children:t.children}),P("div",{className:"k-scrollable-placeholder",style:{height:"1000px"}})]})]})};pe.className=Zt;pe.defaultOptions=Ce;pe.moduleName=S;pe.folderName=M;import{jsx as Pe,jsxs as vo}from"react/jsx-runtime";var jt="k-calendar-infinite",ko={size:[r.undefined,r.small,r.medium,r.large]},go=["Aug","Sep","Oct","Nov","Dec","2021","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","2022","Feb","Mar","Apr","May","Jun","Jul"],Eo={2021:"marker",2022:"marker"},Ao=(t,a)=>t.map((o,n)=>Pe("li",{children:Pe("span",{className:a[o]==="marker"?"k-calendar-navigation-marker":void 0,children:o})},n)),Me={showNavigation:!0,calendarView:"month",navigationItems:go,navigationMarkerConfig:Eo},k=t=>{let{size:a,showNavigation:o=Me.showNavigation,calendarView:n=Me.calendarView,navigationItems:i=Me.navigationItems,navigationMarkerConfig:s=Me.navigationMarkerConfig,calendarTitleText:p,showWeekdays:c,showWeekNumbers:f,showNavigationButtons:x,calendarWeekdays:y,...A}=t,I=ie("calendar-infinite-title");return vo("div",{...A,className:l(t.className,"k-calendar",jt,v("k-calendar",{size:a})),children:[o&&Pe(Se,{children:Ao(i,s)}),Pe(pe,{calendarView:n,headerText:p,showWeekdays:c,showWeekNumbers:f,showNavigationButtons:x,orientation:"vertical",weekdayCellsText:y,gridLabelledBy:I,children:t.children})]})};k.options=ko;k.className=jt;k.defaultOptions=Me;k.moduleName=S;k.folderName=M;import{jsx as So}from"react/jsx-runtime";var ea="k-calendar-tr",d=t=>{let{...a}=t;return So("tr",{...a,className:l(t.className,ea),role:"row",children:t.children})};d.className=ea;d.moduleName=S;d.folderName=M;import{jsx as Mo}from"react/jsx-runtime";var ta="k-calendar-caption",R=t=>{let{text:a,scope:o,colSpan:n,rowSpan:i,...s}=t;return Mo("th",{...s,scope:o,colSpan:n,rowSpan:i,className:l(t.className,ta),children:a})};R.className=ta;R.moduleName=S;R.folderName=M;import{jsx as _,jsxs as Fe}from"react/jsx-runtime";var aa=({showOtherCentury:t,...a})=>_(w,{calendarView:"century",calendarTitleText:"2000 - 2099",children:Fe(V,{children:[Fe(d,{children:[_(e,{text:"1990 - 1999"}),_(e,{text:"2000 - 2009"}),_(e,{text:"2010 - 2019",today:!0}),_(e,{text:"2020 - 2029"})]}),Fe(d,{children:[_(e,{text:"2030 - 2039"}),_(e,{text:"2040 - 2049"}),_(e,{text:"2050 - 2059"}),_(e,{text:"2060 - 2069"})]}),Fe(d,{children:[_(e,{text:"2070 - 2079"}),_(e,{text:"2080 - 2089"}),_(e,{text:"2090 - 2099"}),_(e,{text:"2100 - 2109",empty:!t})]})]}),...a});import{jsx as D,jsxs as Ve}from"react/jsx-runtime";var oa=({showOtherDecade:t,...a})=>D(w,{calendarView:"decade",calendarTitleText:"2020 - 2029",children:Ve(V,{children:[Ve(d,{children:[D(e,{text:"2019",empty:!t}),D(e,{text:"2020"}),D(e,{text:"2021",today:!0}),D(e,{text:"2022"})]}),Ve(d,{children:[D(e,{text:"2023"}),D(e,{text:"2024"}),D(e,{text:"2025"}),D(e,{text:"2026"})]}),Ve(d,{children:[D(e,{text:"2027"}),D(e,{text:"2028"}),D(e,{text:"2029"}),D(e,{text:"2030",empty:!t})]})]}),...a});import{jsx as C,jsxs as ae}from"react/jsx-runtime";var Ue=({showCaptions:t,showOtherMonth:a,...o})=>C(w,{calendarView:"month",children:ae(V,{calendarCaption:t&&"October 2021",showTableHead:!0,children:[ae(d,{children:[C(e,{text:"26",showOtherMonth:a,empty:!a,weekend:a}),C(e,{text:"27",showOtherMonth:a,empty:!a}),C(e,{text:"28",showOtherMonth:a,empty:!a}),C(e,{text:"29",showOtherMonth:a,empty:!a}),C(e,{text:"30",showOtherMonth:a,empty:!a}),C(e,{text:"1"}),C(e,{text:"2",weekend:!0})]}),ae(d,{children:[C(e,{text:"3",weekend:!0}),C(e,{text:"4"}),C(e,{text:"5"}),C(e,{text:"6"}),C(e,{text:"7"}),C(e,{text:"8"}),C(e,{text:"9",weekend:!0})]}),ae(d,{children:[C(e,{text:"10",weekend:!0}),C(e,{text:"11"}),C(e,{text:"12",today:!0}),C(e,{text:"13"}),C(e,{text:"14"}),C(e,{text:"15"}),C(e,{text:"16",weekend:!0})]}),ae(d,{children:[C(e,{text:"17",weekend:!0}),C(e,{text:"18"}),C(e,{text:"19"}),C(e,{text:"20"}),C(e,{text:"21"}),C(e,{text:"22"}),C(e,{text:"23",weekend:!0})]}),ae(d,{children:[C(e,{text:"24",weekend:!0}),C(e,{text:"25"}),C(e,{text:"26"}),C(e,{text:"27"}),C(e,{text:"28"}),C(e,{text:"29"}),C(e,{text:"30",weekend:!0})]}),ae(d,{children:[C(e,{text:"31",weekend:!0}),C(e,{text:"1",showOtherMonth:a,empty:!a}),C(e,{text:"2",showOtherMonth:a,empty:!a}),C(e,{text:"3",showOtherMonth:a,empty:!a}),C(e,{text:"4",showOtherMonth:a,empty:!a}),C(e,{text:"5",showOtherMonth:a,empty:!a}),C(e,{text:"6",showOtherMonth:a,empty:!a,weekend:a})]})]}),...o});import{jsx as Xr,jsxs as qr}from"react/jsx-runtime";import{jsx as B,jsxs as We}from"react/jsx-runtime";var na=t=>B(w,{calendarView:"year",calendarTitleText:"2019",children:We(V,{children:[We(d,{children:[B(e,{text:"Jan"}),B(e,{text:"Feb"}),B(e,{text:"Mar"}),B(e,{text:"Apr"})]}),We(d,{children:[B(e,{text:"May"}),B(e,{text:"Jun"}),B(e,{text:"Jul"}),B(e,{text:"Au"})]}),We(d,{children:[B(e,{text:"Sep"}),B(e,{text:"Oct",today:!0}),B(e,{text:"Nov"}),B(e,{text:"Dec"})]})]}),...t});import{Fragment as Ro,jsx as m,jsxs as J}from"react/jsx-runtime";var la=({firstCaption:t="January 2021",secondCaption:a="February 2021",...o})=>m(k,{calendarTitleText:"January 2021",children:J(Ro,{children:[J("colgroup",{children:[m("col",{}),m("col",{}),m("col",{}),m("col",{}),m("col",{}),m("col",{}),m("col",{})]}),J(E,{children:[m(d,{"aria-hidden":"true",children:m(R,{scope:"col",colSpan:7,text:t})}),J(d,{children:[m(e,{empty:!0}),m(e,{empty:!0}),m(e,{empty:!0}),m(e,{empty:!0}),m(e,{empty:!0}),m(e,{text:"1"}),m(e,{text:"2",weekend:!0})]}),J(d,{children:[m(e,{text:"3",weekend:!0}),m(e,{text:"4"}),m(e,{text:"5"}),m(e,{text:"6"}),m(e,{text:"7"}),m(e,{text:"8"}),m(e,{text:"9",weekend:!0})]}),J(d,{children:[m(e,{text:"10",weekend:!0}),m(e,{text:"11"}),m(e,{text:"12"}),m(e,{text:"13"}),m(e,{text:"14"}),m(e,{text:"15"}),m(e,{text:"16",weekend:!0})]}),J(d,{children:[m(e,{text:"17",weekend:!0}),m(e,{text:"18"}),m(e,{text:"19"}),m(e,{text:"20"}),m(e,{text:"21"}),m(e,{text:"22"}),m(e,{text:"23",weekend:!0})]}),J(d,{children:[m(e,{text:"24",weekend:!0}),m(e,{text:"25"}),m(e,{text:"26"}),m(e,{text:"27"}),m(e,{text:"28"}),m(e,{text:"29"}),m(e,{text:"30",weekend:!0})]}),J(d,{children:[m(e,{text:"31",weekend:!0}),m(e,{empty:!0}),m(e,{empty:!0}),m(e,{empty:!0}),m(e,{empty:!0}),m(e,{empty:!0}),m(e,{empty:!0})]})]}),m(E,{children:m(d,{"aria-hidden":"true",children:m(R,{scope:"col",colSpan:7,text:a})})})]}),...o});import{Fragment as Lo,jsx as T,jsxs as U}from"react/jsx-runtime";var ra=({firstCaption:t="2021",secondCaption:a="2022",...o})=>T(k,{calendarView:"year",showWeekdays:!1,calendarTitleText:"2021",navigationItems:["2016","2017","2018","2019","2020","2021","2022","2023","2024","2025","2026","2027","2028","2029","2030","2031","2032","2033","2034","2035","2036","2037","2038","2039","2040","2041","2042"],navigationMarkerConfig:{2021:"marker",2030:"marker",2040:"marker"},children:U(Lo,{children:[U("colgroup",{children:[T("col",{}),T("col",{}),T("col",{}),T("col",{})]}),U(E,{children:[T(d,{"aria-hidden":"true",children:T(R,{scope:"col",colSpan:4,text:t})}),U(d,{children:[T(e,{text:"Jan",today:!0}),T(e,{text:"Feb"}),T(e,{text:"Mar"}),T(e,{text:"Apr"})]}),U(d,{children:[T(e,{text:"May"}),T(e,{text:"Jun"}),T(e,{text:"Jul"}),T(e,{text:"Aug"})]}),U(d,{children:[T(e,{text:"Sep"}),T(e,{text:"Oct"}),T(e,{text:"Nov"}),T(e,{text:"Dec"})]})]}),U(E,{children:[T(d,{"aria-hidden":"true",children:T(R,{scope:"col",colSpan:4,text:a})}),U(d,{children:[T(e,{text:"Jan"}),T(e,{text:"Feb"}),T(e,{text:"Mar"}),T(e,{text:"Apr"})]}),U(d,{children:[T(e,{text:"May"}),T(e,{text:"Jun"}),T(e,{text:"Jul"}),T(e,{text:"Aug"})]}),U(d,{children:[T(e,{text:"Sep"}),T(e,{text:"Oct"}),T(e,{text:"Nov"}),T(e,{text:"Dec"})]})]})]}),...o});import{Fragment as Oo,jsx as b,jsxs as W}from"react/jsx-runtime";var ia=({firstCaption:t="2020 - 2029",secondCaption:a="2030 - 2039",...o})=>b(k,{calendarView:"decade",showWeekdays:!1,calendarTitleText:"2020 - 2029",navigationItems:["1970","1980","1990","2000","2010","2020","2030","2040","2050","2060","2070","2080","2090"],navigationMarkerConfig:{2020:"marker"},children:W(Oo,{children:[W("colgroup",{children:[b("col",{}),b("col",{}),b("col",{}),b("col",{})]}),W(E,{children:[b(d,{"aria-hidden":"true",children:b(R,{scope:"col",colSpan:4,text:t})}),W(d,{children:[b(e,{text:"2020",today:!0}),b(e,{text:"2021"}),b(e,{text:"2022"}),b(e,{text:"2023"})]}),W(d,{children:[b(e,{text:"2024"}),b(e,{text:"2025"}),b(e,{text:"2026"}),b(e,{text:"2027"})]}),W(d,{children:[b(e,{text:"2028"}),b(e,{text:"2029"}),b(e,{empty:!0}),b(e,{empty:!0})]})]}),W(E,{children:[b(d,{"aria-hidden":"true",children:b(R,{scope:"col",colSpan:4,text:a})}),W(d,{children:[b(e,{text:"2030"}),b(e,{text:"2031"}),b(e,{text:"2032"}),b(e,{text:"2033"})]}),W(d,{children:[b(e,{text:"2034"}),b(e,{text:"2035"}),b(e,{text:"2036"}),b(e,{text:"2037"})]}),W(d,{children:[b(e,{text:"2038"}),b(e,{text:"2039"}),b(e,{empty:!0}),b(e,{empty:!0})]})]})]}),...o});import{Fragment as Io,jsx as g,jsxs as ue}from"react/jsx-runtime";var sa=({firstCaption:t="2000 - 2099",...a})=>g(k,{calendarView:"century",showWeekdays:!1,calendarTitleText:"2000 - 2099",navigationItems:["1900","2000"],navigationMarkerConfig:{2e3:"marker"},children:ue(Io,{children:[ue("colgroup",{children:[g("col",{}),g("col",{}),g("col",{}),g("col",{})]}),ue(E,{children:[g(d,{"aria-hidden":"true",children:g(R,{scope:"col",colSpan:4,text:t})}),ue(d,{children:[g(e,{text:"1900 - 1999"}),g(e,{text:"2000 - 2009"}),g(e,{text:"2010 - 2019"}),g(e,{text:"2020 - 2029"})]}),ue(d,{children:[g(e,{text:"2030 - 2039"}),g(e,{text:"2040 - 2049"}),g(e,{text:"2050 - 2059"}),g(e,{text:"2060 - 2069"})]}),ue(d,{children:[g(e,{text:"2070 - 2079"}),g(e,{text:"2080 - 2089"}),g(e,{text:"2090 - 2099"}),g(e,{empty:!0})]})]})]}),...a});import{Fragment as Ni,jsx as xi,jsxs as fi}from"react/jsx-runtime";import{jsx as wi,jsxs as hi}from"react/jsx-runtime";import{Fragment as Si,jsx as Ai,jsxs as vi}from"react/jsx-runtime";import{jsx as $e}from"react/jsx-runtime";var _o=w.options,Do=w.states,da={...w.defaultOptions,variant:"month"},Bo=[{name:"month",title:"Month View"},{name:"year",title:"Year View"},{name:"decade",title:"Decade View"},{name:"century",title:"Century View"}],Ho=[{name:"footer",title:"Calendar Footer"},{name:"other",title:"Show other cells"}],xe=t=>{let{variant:a,modifiers:o,...n}={...da,...t},i={showCalendarFooter:!1};Object.keys(o||{}).forEach(x=>{switch(x){case"other":i.showOtherMonth=!!o?.[x],i.showOtherCentury=!!o?.[x],i.showOtherDecade=!!o?.[x];break;case"footer":i.showCalendarFooter=!!o?.[x];break;default:return}});let{showOtherMonth:s,showOtherDecade:p,showOtherCentury:c,showCalendarFooter:f}=i;switch(a){case"century":return $e(aa,{size:n.size,showOtherCentury:c,showCalendarFooter:f});case"decade":return $e(oa,{size:n.size,showOtherDecade:p,showCalendarFooter:f});case"year":return $e(na,{calendarTitleText:"2021",size:n.size,showCalendarFooter:f});default:return $e(Ue,{size:n.size,showOtherMonth:s,showCalendarFooter:f})}};xe.options=_o;xe.states=Do;xe.variants=Bo;xe.defaultOptions=da;xe.modifiers=Ho;xe.className=w.className;import{jsx as Je}from"react/jsx-runtime";var Ko=k.options,zo=k.states,ma={...k.defaultOptions,variant:"month"},Po=[{name:"month",title:"Month View"},{name:"year",title:"Year View"},{name:"decade",title:"Decade View"},{name:"century",title:"Century View"}],Fo=[{name:"footer",title:"Calendar Footer"},{name:"other",title:"Show other cells"}],fe=t=>{let{variant:a,modifiers:o,...n}={...ma,...t},i={showCalendarFooter:!1};Object.keys(o||{}).forEach(x=>{switch(x){case"other":i.showOtherMonth=!!o?.[x],i.showOtherCentury=!!o?.[x],i.showOtherDecade=!!o?.[x];break;case"footer":i.showCalendarFooter=!!o?.[x];break;default:return}});let{showOtherMonth:s,showOtherDecade:p,showOtherCentury:c,showCalendarFooter:f}=i;switch(a){case"century":return Je(sa,{size:n.size,showOtherCentury:c,showCalendarFooter:f});case"decade":return Je(ia,{size:n.size,showOtherDecade:p,showCalendarFooter:f});case"year":return Je(ra,{size:n.size,showCalendarFooter:f});default:return Je(la,{size:n.size,showOtherMonth:s,showCalendarFooter:f})}};fe.options=Ko;fe.states=zo;fe.variants=Po;fe.defaultOptions=ma;fe.modifiers=Fo;fe.className=k.className;var ft="segmented-control",ca=ft,Ca="segmented-control-button",pa="segmented-control";import{jsx as Wo,jsxs as $o}from"react/jsx-runtime";var Ge="k-segmented-control",Vo=[],Uo={size:[r.undefined,r.small,r.medium,r.large]},oe=t=>{let{size:a,stretched:o,children:n,thumbStyles:i,...s}=t;return $o("div",{...s,className:l(t.className,Ge,v(Ge,{size:a}),{[`${Ge}-stretched`]:o}),role:"group",children:[Wo("div",{className:"k-segmented-control-thumb","aria-hidden":"true",style:i}),n]})};oe.states=Vo;oe.options=Uo;oe.className=Ge;oe.moduleName=ft;oe.folderName=ca;import{jsx as ua,jsxs as Xo}from"react/jsx-runtime";var Nt="k-segmented-control-button",Jo=[h.selected,h.hover,h.focus,h.disabled],Go={},Yo={},G=t=>{let{hover:a,focus:o,selected:n,disabled:i,icon:s,text:p,iconClassName:c,...f}=t;return Xo("button",{...f,className:l(t.className,Nt,X(Nt,{hover:a,focus:o,disabled:i,selected:n})),"aria-pressed":n?"true":"false","aria-disabled":i?"true":void 0,tabIndex:n?0:-1,children:[s&&ua(z,{className:l(c,"k-segmented-control-button-icon"),icon:s}),(p||t.children)&&ua("span",{className:"k-segmented-control-button-text",children:p||t.children})]})};G.states=Jo;G.options=Go;G.className=Nt;G.defaultOptions=Yo;G.moduleName=Ca;G.folderName=pa;import{Fragment as Bs,jsx as Ds,jsxs as Hs}from"react/jsx-runtime";import{Fragment as Us,jsx as Vs,jsxs as Ws}from"react/jsx-runtime";import{Fragment as qs,jsx as Xs,jsxs as Qs}from"react/jsx-runtime";import{Fragment as od,jsx as ad,jsxs as nd}from"react/jsx-runtime";import{Fragment as md,jsx as dd,jsxs as cd}from"react/jsx-runtime";var xa="time-selector",fa="timeselector";import{Fragment as Na,jsx as qe,jsxs as Ta}from"react/jsx-runtime";var Tt="k-timeselector",qo=[],Qo={size:[r.undefined,r.small,r.medium,r.large]},Zo={},Q=t=>{let{size:a,header:o,fastSelection:n,columns:i,focusedColumn:s,...p}=t,c=i.map(function(f,x){let y=!1,A=!0;return f===s&&(y=!0),(x===0||f==="tt")&&(A=!1),qe(bt,{type:f,focus:y,separator:A},x)});return Ta("div",{...p,className:l(t.className,Tt,v(Tt,{size:a})),role:"group","aria-label":"Time selector",children:[qe(Na,{children:o}),qe(Na,{children:n}),Ta("div",{className:"k-time-list-container",children:[qe("span",{className:"k-time-highlight"}),c]})]})};Q.states=qo;Q.options=Qo;Q.className=Tt;Q.defaultOptions=Zo;Q.moduleName=xa;Q.folderName=fa;import{Fragment as en,jsx as ne,jsxs as yt}from"react/jsx-runtime";var jo=[h.focus],bt=t=>{let{type:a,focus:o,separator:n,...i}=t,s,p=["00","01","02","03","04","05","06","07","08","09"];switch(a){case"dd":s="Day";break;case"HH":s="Hour";break;case"mm":s="Minute";break;case"ss":s="Second";break;case"SSS":s="Millisecond",p=["000","001","002","003","004","005","006","007","008","009"];break;case"tt":s="AM/PM",p=["AM","PM"];break;default:s="Column Name";break}let c=p.map((f,x)=>ne("li",{className:"k-item",role:"option","aria-selected":"false",children:ne("span",{children:f})},x));return yt(en,{children:[n&&ne("div",{className:"k-time-separator",children:":"}),yt("div",{...i,className:l(t.className,"k-time-list-wrapper",X("k-time-list-wrapper",{focus:o})),children:[ne("span",{className:"k-title",children:s}),ne("div",{className:"k-time-list",role:"listbox","aria-label":s,children:yt("div",{className:"k-content k-scrollable k-time-container",children:[ne("ul",{className:"k-reset",style:{transform:"translateY(97px)"},role:"none",children:c}),ne("div",{className:"k-scrollable-placeholder"})]})})]})]})};bt.states=jo;import{jsx as an,jsxs as on}from"react/jsx-runtime";var tn="k-time-header",Re=t=>{let{title:a,...o}=t;return on("div",{...o,className:l(t.className,tn),children:[a!=null&&an("span",{className:"k-title",children:a}),t.children]})};import{jsx as Hd,jsxs as Kd}from"react/jsx-runtime";var wt="popup",ba=wt;import{jsx as ya}from"react/jsx-runtime";var wa="k-animation-container",nn=[],ln={},ht={positionMode:"absolute",shown:!0},Z=t=>{let{positionMode:a=ht.positionMode,shown:o=ht.shown,animationStyle:n,offset:i,...s}=t;return ya("div",{...s,style:{...i,...t.style},className:l(t.className,wa,{"k-animation-container-shown":o,"k-animation-container-fixed":a==="fixed"}),children:ya("div",{className:"k-child-animation-container",style:n,children:t.children})})};Z.states=nn;Z.options=ln;Z.className=wa;Z.defaultOptions=ht;Z.moduleName=wt;Z.folderName=ba;var kt="popup",ha=kt;import{jsx as ka}from"react/jsx-runtime";var ga="k-popup",rn=[],sn={},Ea={positionMode:"absolute"},Y=t=>{let{offset:a,positionMode:o=Ea.positionMode,animationStyle:n,containerClassName:i,containerRole:s,containerAriaLabel:p,...c}=t;return ka(Z,{positionMode:o,offset:a,animationStyle:n,className:i,role:s,"aria-label":p,children:ka("div",{...c,className:l(t.className,ga),children:t.children})})};Y.states=rn;Y.options=sn;Y.className=ga;Y.defaultOptions=Ea;Y.moduleName=kt;Y.folderName=ha;import{Fragment as dm,jsx as im,jsxs as sm}from"react/jsx-runtime";import{Fragment as bm,jsx as Nm,jsxs as Tm}from"react/jsx-runtime";import{Fragment as Mm,jsx as vm,jsxs as Sm}from"react/jsx-runtime";var va="date-time-picker",Sa="datetimepicker";import{Fragment as Ma,jsx as O,jsxs as Le}from"react/jsx-runtime";var gt="k-datetime-wrap",dn=[],mn={size:[r.undefined,r.small,r.medium,r.large]},Et={tab:"date",actionButtons:!0},le=t=>{let{size:a,tab:o=Et.tab,actionButtons:n=Et.actionButtons,dir:i,...s}=t;return Le("div",{...s,className:l(t.className,gt,{"k-date-tab":o==="date","k-time-tab":o==="time"},v(gt,{size:a})),role:"group","aria-label":"Date and time selector",children:[O("div",{className:"k-datetime-buttongroup",children:Le(oe,{stretched:!0,thumbStyles:o==="date"?{width:"50%"}:{width:"50%",left:"50%"},size:a,children:[O(G,{selected:o==="date",children:"Date"}),O(G,{selected:o==="time",children:"Time"})]})}),O("div",{className:"k-datetime-selector",children:o==="time"?Le(Ma,{children:[O("div",{className:"k-datetime-calendar-wrap"}),O("div",{className:"k-datetime-time-wrap",children:O(Q,{size:a,columns:["HH","mm","ss","tt"],focusedColumn:"mm",header:O(Re,{title:"10:00:00 AM",children:O(N,{size:a,fillMode:"flat",className:"k-time-now",children:"Now"})})})})]}):Le(Ma,{children:[O("div",{className:"k-datetime-calendar-wrap",children:O(Ue,{size:a,showOtherMonth:!0,dir:i})}),O("div",{className:"k-datetime-time-wrap"})]})}),n&&Le(H,{className:"k-datetime-footer",alignment:"stretched",children:[O(N,{size:a,themeColor:"primary",className:"k-time-accept",children:"Set"}),O(N,{size:a,className:"k-time-cancel",children:"Cancel"})]})]})};le.states=dn;le.options=mn;le.className=gt;le.defaultOptions=Et;le.moduleName=va;le.folderName=Sa;var Gm=le;export{le as DateTimeSelector,Gm as default};
|